hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-0
SELECT - CASE - - 15 WHEN + 7 * + + 51 + 14 * + + COUNT( - 34 ) THEN + - 46 END + + + 21 AS col2, 46 AS col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-0
SELECT - CASE - - 15 WHEN + 7 * + + 51 + 14 * + + COUNT ( - 34 ) THEN + - 46 END + + + 21 AS col2, 46 AS col1
----
NULL
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1
SELECT DISTINCT 50 + + - COALESCE ( 38, - 81 + 80 DIV - 51 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT 50 + + - COALESCE ( 38, - 81 + 80 / - 51 ) AS col0
----
12

query I rowsort
SELECT DISTINCT 62 + - + 58
----
4

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

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

query I rowsort
SELECT ALL 97 + + 84
----
181

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6
SELECT ALL - 72 DIV 98 * - 98 DIV + 78 DIV - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL - 72 / 98 * - 98 / + 78 / - 57 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7
SELECT - COUNT( * ) + + CASE - 35 WHEN - 41 THEN + COUNT( * ) ELSE - 46 + 19 END + - 25 + - 6 - - 46 + + - 24 * 2 * COALESCE ( 66, - COUNT( * ) DIV 61 - NULLIF ( + 81, - + COUNT( * ) ), + ( + ( - - 21 ) ) + 52 )
----
-3181

skipif mysql # not compatible
query I rowsort label-7
SELECT - COUNT ( * ) + + CASE - 35 WHEN - 41 THEN + COUNT ( * ) ELSE - 46 + 19 END + - 25 + - 6 - - 46 + + - 24 * 2 * COALESCE ( 66, - COUNT ( * ) / 61 - NULLIF ( + 81, - + COUNT ( * ) ), + ( + ( - - 21 ) ) + 52 )
----
-3181

query II rowsort
SELECT DISTINCT 48 - - 99, ( + 71 ) - + - 18 AS col1
----
147
89

query I rowsort
SELECT + 65 * - 2 AS col0
----
-130

query I rowsort
SELECT - 71 * 23 AS col2
----
-1633

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT - - ( 54 ) + MAX( + 30 ) + ( + + 92 ) col1
----
176

skipif mysql # not compatible
query I rowsort label-11
SELECT - - ( 54 ) + MAX ( + 30 ) + ( + + 92 ) col1
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-12
SELECT ALL + ( - + COALESCE ( + COUNT( * ), - CAST( NULL AS SIGNED ) + + 20 * + COUNT( * ) * - 2 ) ) AS col0, + 66
----
-1
66

skipif mysql # not compatible
query II rowsort label-12
SELECT ALL + ( - + COALESCE ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) + + 20 * + COUNT ( * ) * - 2 ) ) AS col0, + 66
----
-1
66

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT ALL - + ( + 41 ) * 97 + - - COALESCE ( + NULLIF ( + 52, - 31 + - 59 ), - 82 * MAX( DISTINCT + 31 ) * - 94 + + + 35 )
----
-3925

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL - + ( + 41 ) * 97 + - - COALESCE ( + NULLIF ( + 52, - 31 + - 59 ), - 82 * MAX ( DISTINCT + 31 ) * - 94 + + + 35 )
----
-3925

query I rowsort
SELECT - + 66 * - 78 AS col2
----
5148

onlyif mysql # aggregate syntax: 
query II rowsort label-15
SELECT ALL - 61 * 49 * 83 * - 37 AS col2, - 34 + + - SUM( DISTINCT 64 ) col0
----
9179219
-98

skipif mysql # not compatible
query II rowsort label-15
SELECT ALL - 61 * 49 * 83 * - 37 AS col2, - 34 + + - SUM ( DISTINCT 64 ) col0
----
9179219
-98

query I rowsort
SELECT - + 99 * - - 32 + ( ( - ( - 62 ) ) )
----
-3106

query I rowsort
SELECT + 18 * 97 * - 58
----
-101268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT COUNT( * ) * COALESCE ( - COALESCE ( - 92, - 98 * COUNT( * ) * + 48 / 65 * + COUNT( * ) / - 81 * + 92 ), COUNT( * ) ) * - 2 * - + 17 * COUNT( * ) + - AVG ( + 92 ) / + + SUM( ALL 84 ) - + 91 - + CAST( NULL AS SIGNED ) + + 88 + - ( - - 54 ) * 74 * + 69 * 55 * + 70 / + AVG ( ALL 8 ) + - MAX( - 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-18
SELECT COUNT ( * ) * COALESCE ( - COALESCE ( - 92, - 98 * COUNT ( * ) * + 48 / 65 * + COUNT ( * ) / - 81 * + 92 ), COUNT ( * ) ) * - 2 * - + 17 * COUNT ( * ) + - AVG ( + 92 ) / + + SUM ( ALL 84 ) - + 91 - + CAST ( NULL AS INTEGER ) + + 88 + - ( - - 54 ) * 74 * + 69 * 55 * + 70 / + AVG ( ALL 8 ) + - MAX ( - 83 )
----
NULL

query I rowsort
SELECT + + 34 + NULLIF ( + 75, + 60 ) col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT ALL - + COUNT( * ) * 59 + + 10 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL - + COUNT ( * ) * 59 + + 10 AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-21
SELECT - SUM( + CAST( NULL AS SIGNED ) ) * - 32 * - + 23 + - + NULLIF ( COUNT( * ), + 46 / + ( + CASE - 86 WHEN + - 42 THEN - 45 WHEN + - 3 * - 97 THEN NULL ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-21
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) * - 32 * - + 23 + - + NULLIF ( COUNT ( * ), + 46 / + ( + CASE - 86 WHEN + - 42 THEN - 45 WHEN + - 3 * - 97 THEN NULL ELSE NULL END ) )
----
NULL

query I rowsort
SELECT DISTINCT 29 * - - 51
----
1479

query I rowsort
SELECT ALL 45 * - 37 + - 52 AS col0
----
-1717

query I rowsort
SELECT - 3 * - 17
----
51

query I rowsort
SELECT - 79 - + 40
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT + 49 * - COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-26
SELECT + 49 * - COUNT ( * ) AS col2
----
-49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT ALL MIN( - 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL MIN ( - 88 ) AS col2
----
-88

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

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

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

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

query I rowsort
SELECT 50 * - 55 AS col0
----
-2750

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-32
SELECT COALESCE ( + - 50, + COUNT( * ) * - ( + NULLIF ( - + COUNT( * ), - 25 + 68 ) ) DIV + 8 ) * + 27 AS col0, 95 + - 69 + - 66
----
-1350
-40

skipif mysql # not compatible
query II rowsort label-32
SELECT COALESCE ( + - 50, + COUNT ( * ) * - ( + NULLIF ( - + COUNT ( * ), - 25 + 68 ) ) / + 8 ) * + 27 AS col0, 95 + - 69 + - 66
----
-1350
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT 79 + + 50 * MIN( ALL - 25 )
----
-1171

skipif mysql # not compatible
query I rowsort label-34
SELECT 79 + + 50 * MIN ( ALL - 25 )
----
-1171

query I rowsort
SELECT DISTINCT 6 * - 53 AS col1
----
-318

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

query I rowsort
SELECT DISTINCT + 32 * - 6 * 38 col0
----
-7296

query I rowsort
SELECT ALL - 9 + + 34 AS col1
----
25

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

skipif mysql # not compatible
query I rowsort label-39
SELECT + 71 / + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT DISTINCT - COUNT( * ) + + 25 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT - COUNT ( * ) + + 25 AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-41
SELECT - 73 DIV CAST( 36 AS SIGNED ) + + 73 + + + 4 AS col2, 41
----
75
41

skipif mysql # not compatible
query II rowsort label-41
SELECT - 73 / CAST ( 36 AS INTEGER ) + + 73 + + + 4 AS col2, 41
----
75
41

onlyif mysql # DIV for integer division: 
query I rowsort label-42
SELECT + 38 + - 35 * 99 DIV + 50 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-42
SELECT + 38 + - 35 * 99 / + 50 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT - CASE - + 34 WHEN + 74 + + 76 * - COALESCE ( 45, + + COUNT( * ), + COUNT( * ) * 8 ) THEN + ( 52 ) / - - 43 END * - SUM( ALL 74 ) * - - ( + ( + 40 ) ) + + ( COALESCE ( 82, + 46 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-43
SELECT - CASE - + 34 WHEN + 74 + + 76 * - COALESCE ( 45, + + COUNT ( * ), + COUNT ( * ) * 8 ) THEN + ( 52 ) / - - 43 END * - SUM ( ALL 74 ) * - - ( + ( + 40 ) ) + + ( COALESCE ( 82, + 46 ) )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-45
SELECT + COALESCE ( + - 47, 83 DIV - - ( - 1 ) DIV 48 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-45
SELECT + COALESCE ( + - 47, 83 / - - ( - 1 ) / 48 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT ALL 35 + NULLIF ( - - 35, + COUNT( * ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL 35 + NULLIF ( - - 35, + COUNT ( * ) ) AS col2
----
70

query I rowsort
SELECT DISTINCT - 55 + + 29 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-48
SELECT ALL + - 6 + 7 + + + 39 * - COUNT( * ) * NULLIF ( - 81, 37 - + + 87 * - COUNT( * ) * - 17 - - 12 ) + 80 + + 76 AS col2, + COUNT( * ) AS col2
----
3316
1

skipif mysql # not compatible
query II rowsort label-48
SELECT ALL + - 6 + 7 + + + 39 * - COUNT ( * ) * NULLIF ( - 81, 37 - + + 87 * - COUNT ( * ) * - 17 - - 12 ) + 80 + + 76 AS col2, + COUNT ( * ) AS col2
----
3316
1

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT ALL + COALESCE ( - COUNT( + + 79 ), + + 85 ) * - 44
----
44

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL + COALESCE ( - COUNT ( + + 79 ), + + 85 ) * - 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT 99 + + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-50
SELECT 99 + + COUNT ( * )
----
100

query II rowsort
SELECT 98 AS col2, 25 * - + 97 col0
----
98
-2425

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT ALL + 17 - + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL + 17 - + COUNT ( * )
----
16

query I rowsort
SELECT 71 * - + 67
----
-4757

query II rowsort
SELECT + 19 AS col1, 7 * 5 AS col2
----
19
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-55
SELECT 45 + + CAST( + + 19 AS SIGNED ) + - 36 + + 91
----
119

skipif mysql # not compatible
query I rowsort label-55
SELECT 45 + + CAST ( + + 19 AS INTEGER ) + - 36 + + 91
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT DISTINCT - MAX( 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT - MAX ( 8 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-57
SELECT DISTINCT - 86 AS col0, COUNT( * ) + + 79
----
-86
80

skipif mysql # not compatible
query II rowsort label-57
SELECT DISTINCT - 86 AS col0, COUNT ( * ) + + 79
----
-86
80

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ALL - MAX( 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL - MAX ( 63 ) AS col2
----
-63

query I rowsort
SELECT 61 * - 97
----
-5917

query II rowsort
SELECT - 30 AS col2, - 27
----
-30
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-61
SELECT DISTINCT + 99 - + + 52 + - 72 DIV + 71
----
46

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT + 99 - + + 52 + - 72 / + 71
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL MIN( 64 ) * + 74
----
4736

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL MIN ( 64 ) * + 74
----
4736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-63
SELECT ALL + 82 * + CAST( + - 63 AS SIGNED ) AS col0
----
-5166

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL + 82 * + CAST ( + - 63 AS INTEGER ) AS col0
----
-5166

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT 51 DIV - 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-64
SELECT 51 / - 77 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT 89 + - 42 * + COUNT( * ) * - MIN( ALL + 68 ) + 93 AS col0
----
3038

skipif mysql # not compatible
query I rowsort label-65
SELECT 89 + - 42 * + COUNT ( * ) * - MIN ( ALL + 68 ) + 93 AS col0
----
3038

query I rowsort
SELECT 96 * - - 23
----
2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-67
SELECT ALL - 9 * - NULLIF ( - COUNT( * ), - + 72 * + ( - + ( + - 85 ) ) + 24 * + MIN( ALL 98 ) * - CAST( + - CAST( + 20 AS SIGNED ) AS SIGNED ) + + + 27 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL - 9 * - NULLIF ( - COUNT ( * ), - + 72 * + ( - + ( + - 85 ) ) + 24 * + MIN ( ALL 98 ) * - CAST ( + - CAST ( + 20 AS INTEGER ) AS INTEGER ) + + + 27 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-68
SELECT ALL 97, - NULLIF ( + NULLIF ( - COUNT( * ), + - 33 ), + + COUNT( - 14 ) ) * 19 AS col2
----
97
19

skipif mysql # not compatible
query II rowsort label-68
SELECT ALL 97, - NULLIF ( + NULLIF ( - COUNT ( * ), + - 33 ), + + COUNT ( - 14 ) ) * 19 AS col2
----
97
19

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT 76 + MIN( ALL - 81 )
----
-5

skipif mysql # not compatible
query I rowsort label-69
SELECT 76 + MIN ( ALL - 81 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT 85 + MIN( + 94 )
----
179

skipif mysql # not compatible
query I rowsort label-70
SELECT 85 + MIN ( + 94 )
----
179

query I rowsort
SELECT ALL 47 + - 69 AS col0
----
-22

query II rowsort
SELECT - 59 AS col1, + 59 * 33
----
-59
1947

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-73
SELECT ( - 25 ) + 87 DIV - COUNT( * ), - ( + - 17 ) col2
----
-112
17

skipif mysql # not compatible
query II rowsort label-73
SELECT ( - 25 ) + 87 / - COUNT ( * ), - ( + - 17 ) col2
----
-112
17

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

skipif mysql # not compatible
query I rowsort label-74
SELECT - - ( + MIN ( + 58 ) )
----
58

query I rowsort
SELECT ALL - 78 + 22 AS col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-76
SELECT 7 + 7 + ( + - 67 ) * - CAST( - 8 AS SIGNED ) * + NULLIF ( + 37, 9 ) * ( - 16 )
----
317326

skipif mysql # not compatible
query I rowsort label-76
SELECT 7 + 7 + ( + - 67 ) * - CAST ( - 8 AS INTEGER ) * + NULLIF ( + 37, 9 ) * ( - 16 )
----
317326

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-77
SELECT + CAST( NULL AS DECIMAL ) * - + 48 + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-77
SELECT + CAST ( NULL AS REAL ) * - + 48 + - 33
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 26 * + 5 col1, NULLIF ( - 68, - - 92 ) AS col2
----
-130
-68

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

onlyif mysql # DIV for integer division: 
query I rowsort label-81
SELECT + + ( - ( - 1 ) ) DIV + + 80 + + 10 + - 24
----
-14

skipif mysql # not compatible
query I rowsort label-81
SELECT + + ( - ( - 1 ) ) / + + 80 + + 10 + - 24
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT 55 * + 95 + + - COUNT( DISTINCT - 23 )
----
5224

skipif mysql # not compatible
query I rowsort label-82
SELECT 55 * + 95 + + - COUNT ( DISTINCT - 23 )
----
5224

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT + 29 * - CASE + ( - 20 ) WHEN - 86 THEN NULL ELSE - COUNT( * ) + + + NULLIF ( - + COUNT( * ), - - 15 ) END * + 71 AS col0
----
4118

skipif mysql # not compatible
query I rowsort label-83
SELECT + 29 * - CASE + ( - 20 ) WHEN - 86 THEN NULL ELSE - COUNT ( * ) + + + NULLIF ( - + COUNT ( * ), - - 15 ) END * + 71 AS col0
----
4118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-84
SELECT ALL + COUNT( * ) DIV + + NULLIF ( - COUNT( * ), - 29 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL + COUNT ( * ) / + + NULLIF ( - COUNT ( * ), - 29 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT DISTINCT + NULLIF ( + - 20, - 20 ) - - + 25 + + - 64 + - + 34 + COUNT( ALL 11 ) * + + 62 - 47 * + + MIN( + 13 ) * - - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT + NULLIF ( + - 20, - 20 ) - - + 25 + + - 64 + - + 34 + COUNT ( ALL 11 ) * + + 62 - 47 * + + MIN ( + 13 ) * - - 24
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-86
SELECT + MIN( DISTINCT - CAST( - 36 AS SIGNED ) ) col1
----
36

skipif mysql # not compatible
query I rowsort label-86
SELECT + MIN ( DISTINCT - CAST ( - 36 AS INTEGER ) ) col1
----
36

query II rowsort
SELECT 80 + + 9 AS col0, 3 * - 62 * - - 13
----
89
-2418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-88
SELECT SUM( ALL - CAST( + 33 AS SIGNED ) ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-88
SELECT SUM ( ALL - CAST ( + 33 AS INTEGER ) ) col2
----
-33

query I rowsort
SELECT ALL + 86 * - 96 * 94
----
-776064

query I rowsort
SELECT 70 * - 39 * 0 col0
----
0

query I rowsort
SELECT ALL 32 * + 59 AS col2
----
1888

query II rowsort
SELECT DISTINCT + ( - 62 ) AS col1, - 55
----
-62
-55

query I rowsort
SELECT DISTINCT 67 * - 64 AS col1
----
-4288

onlyif mysql # aggregate syntax: 
query II rowsort label-94
SELECT + CASE - + 21 WHEN + NULLIF ( + + 91, + COUNT( * ) ) + - 23 * - ( + + ( - - 96 ) ) THEN + ( 93 ) + 32 * - COUNT( * ) END + + COUNT( + 72 ) + + 17 - - COUNT( * ), 96 * CASE 31 WHEN + COUNT( * ) THEN 99 - 62 WHEN - 79 THEN + 8 ELSE 74 END col2
----
NULL
7104

skipif mysql # not compatible
query II rowsort label-94
SELECT + CASE - + 21 WHEN + NULLIF ( + + 91, + COUNT ( * ) ) + - 23 * - ( + + ( - - 96 ) ) THEN + ( 93 ) + 32 * - COUNT ( * ) END + + COUNT ( + 72 ) + + 17 - - COUNT ( * ), 96 * CASE 31 WHEN + COUNT ( * ) THEN 99 - 62 WHEN - 79 THEN + 8 ELSE 74 END col2
----
NULL
7104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-95
SELECT - CAST( + ( - COALESCE ( + 49, 50 * + - 42, + 7 ) ) AS SIGNED ) * - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-95
SELECT - CAST ( + ( - COALESCE ( + 49, 50 * + - 42, + 7 ) ) AS INTEGER ) * - COUNT ( * )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-96
SELECT - CAST( NULL AS SIGNED ) - CASE + 36 WHEN + + COUNT( * ) * NULLIF ( + 3, - + COUNT( * ) * - 27 ) THEN + + 45 * 73 END * + 37 + 46 * - - 41 + - 30 - - - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-96
SELECT - CAST ( NULL AS INTEGER ) - CASE + 36 WHEN + + COUNT ( * ) * NULLIF ( + 3, - + COUNT ( * ) * - 27 ) THEN + + 45 * 73 END * + 37 + 46 * - - 41 + - 30 - - - 0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-98
SELECT - 60 DIV COUNT( * ) * + 55 AS col1
----
-3300

skipif mysql # not compatible
query I rowsort label-98
SELECT - 60 / COUNT ( * ) * + 55 AS col1
----
-3300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-99
SELECT ALL 66 + - COUNT( * ) + 1 * - - 50 * - 97 AS col2, - CAST( NULL AS SIGNED ) + - 13 * + MAX( DISTINCT 86 ) AS col0
----
-4785
NULL

skipif mysql # not compatible
query II rowsort label-99
SELECT ALL 66 + - COUNT ( * ) + 1 * - - 50 * - 97 AS col2, - CAST ( NULL AS INTEGER ) + - 13 * + MAX ( DISTINCT 86 ) AS col0
----
-4785
NULL

query I rowsort
SELECT ALL - 24 + - 81 + + 34 + + 84 + - - COALESCE ( 51, + 88, + + 0 + + - 83 ) AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT ALL - 51 DIV - + 24 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL - 51 / - + 24 AS col1
----
2

query I rowsort
SELECT - 30 * + - 91
----
2730

query I rowsort
SELECT ALL + 82 + 6 * + 75 + - - 85
----
617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-104
SELECT COALESCE ( 55, 70, + - COUNT( * ) + + 80 + + CAST( 70 AS SIGNED ) * - + ( - 15 ) * 57 DIV 26 * + 89 * - + SUM( DISTINCT + 69 ) )
----
55

skipif mysql # not compatible
query I rowsort label-104
SELECT COALESCE ( 55, 70, + - COUNT ( * ) + + 80 + + CAST ( 70 AS INTEGER ) * - + ( - 15 ) * 57 / 26 * + 89 * - + SUM ( DISTINCT + 69 ) )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT - 6 * MAX( + + 79 )
----
-474

skipif mysql # not compatible
query I rowsort label-105
SELECT - 6 * MAX ( + + 79 )
----
-474

query III rowsort
SELECT ALL + 88 + 20 AS col2, + 24 AS col1, 53 * + ( - 21 ) + - - 9 * 30 + - 96 AS col0
----
108
24
-939

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-107
SELECT - NULLIF ( CAST( NULL AS SIGNED ), - 35 * - 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-107
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), - 35 * - 95 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 66 - 60
----
-126

query II rowsort
SELECT - + 61 * + 67, 57 AS col1
----
-4087
57

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

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

query I rowsort
SELECT - 13 * + + 6 + + 28 + - COALESCE ( - 23, - - 37 - + + 37 ) + 11
----
-16

query II rowsort
SELECT - 22 + + + 69 + - NULLIF ( + 50, + - 27 / - 46 ) * - 16 AS col2, + 70 + + - 72
----
847
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT + 17 * - ( + + COUNT( * ) ) - + 41
----
-58

skipif mysql # not compatible
query I rowsort label-113
SELECT + 17 * - ( + + COUNT ( * ) ) - + 41
----
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-114
SELECT DISTINCT + SUM( - CASE + CAST( NULL AS DECIMAL ) WHEN + + 48 THEN NULL ELSE + - 51 + - 61 + - 28 * 17 * - 68 END )
----
-32256

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT + SUM ( - CASE + CAST ( NULL AS REAL ) WHEN + + 48 THEN NULL ELSE + - 51 + - 61 + - 28 * 17 * - 68 END )
----
-32256

query I rowsort
SELECT + 36 + + 51 + + 26
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL + ( - NULLIF ( + - MAX( - 70 ), 73 / - 14 ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL + ( - NULLIF ( + - MAX ( - 70 ), 73 / - 14 ) ) AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-117
SELECT DISTINCT + 57 * - 52 * - 40 DIV + CAST( + COUNT( * ) AS SIGNED ) - + COUNT( * ) AS col2
----
118559

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT + 57 * - 52 * - 40 / + CAST ( + COUNT ( * ) AS INTEGER ) - + COUNT ( * ) AS col2
----
118559

query I rowsort
SELECT 18 * - - 8 + - 45 + 89
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT ALL 32 * - 9 * + - COUNT( * ) AS col1
----
288

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL 32 * - 9 * + - COUNT ( * ) AS col1
----
288

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

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

query I rowsort
SELECT + 73 * 57
----
4161

query I rowsort
SELECT + 79 + - 13 AS col1
----
66

query II rowsort
SELECT ALL + 25 AS col0, 27 AS col0
----
25
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-124
SELECT + COUNT( - 86 ) DIV - - NULLIF ( + COUNT( * ), 35 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-124
SELECT + COUNT ( - 86 ) / - - NULLIF ( + COUNT ( * ), 35 ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT + COUNT( * ) + + 18 * 76 + - - 54 AS col1
----
1423

skipif mysql # not compatible
query I rowsort label-126
SELECT + COUNT ( * ) + + 18 * 76 + - - 54 AS col1
----
1423

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT MIN( DISTINCT - 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-127
SELECT MIN ( DISTINCT - 65 ) AS col1
----
-65

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-129
SELECT ALL - ( 94 ) * 21 * - 85 * + ( + - 83 ) + + - COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL - ( 94 ) * 21 * - 85 * + ( + - 83 ) + + - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT DISTINCT - NULLIF ( - - 1, COUNT( ALL - 82 ) + - 77 + 60 * - 14 ) * - 55 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT - NULLIF ( - - 1, COUNT ( ALL - 82 ) + - 77 + 60 * - 14 ) * - 55 AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-131
SELECT DISTINCT 12 + + - CAST( 1 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-131
SELECT DISTINCT 12 + + - CAST ( 1 AS INTEGER )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-132
SELECT ALL ( 92 ) + - + 19 + 24 - + 54 DIV 25 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL ( 92 ) + - + 19 + 24 - + 54 / 25 AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-133
SELECT - + 13 AS col0, CAST( 77 AS SIGNED ) + - - NULLIF ( - + 21, + - 3 / - - 8 - - 17 ) * - 31
----
-13
728

skipif mysql # not compatible
query II rowsort label-133
SELECT - + 13 AS col0, CAST ( 77 AS INTEGER ) + - - NULLIF ( - + 21, + - 3 / - - 8 - - 17 ) * - 31
----
-13
728

query I rowsort
SELECT + 82 * + - 23
----
-1886

query I rowsort
SELECT - + 3 col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-136
SELECT + + CAST( - 85 AS SIGNED ) + + - SUM( + 54 )
----
-139

skipif mysql # not compatible
query I rowsort label-136
SELECT + + CAST ( - 85 AS INTEGER ) + + - SUM ( + 54 )
----
-139

query I rowsort
SELECT - - 81 + - 91 - 15 + - - CASE - + 77 WHEN + 15 THEN + + 47 * 9 END * + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT DISTINCT + - MAX( - - 89 ) - + + 1 col1
----
-90

skipif mysql # not compatible
query I rowsort label-138
SELECT DISTINCT + - MAX ( - - 89 ) - + + 1 col1
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-139
SELECT DISTINCT - 79 * 30 * - 56 + COUNT( * ) + - COUNT( * ) DIV - 72 - - 95
----
132816

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT - 79 * 30 * - 56 + COUNT ( * ) + - COUNT ( * ) / - 72 - - 95
----
132816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-140
SELECT DISTINCT - + 32 DIV + 46 + - - ( - NULLIF ( - - COUNT( * ), - 87 ) ) DIV + 40 * + COUNT( * ) - - 93
----
93

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT - + 32 / + 46 + - - ( - NULLIF ( - - COUNT ( * ), - 87 ) ) / + 40 * + COUNT ( * ) - - 93
----
93

query I rowsort
SELECT DISTINCT + - 70 - + - 86
----
16

query I rowsort
SELECT + 84 * + 35 AS col2
----
2940

query I rowsort
SELECT - 54 + - NULLIF ( + - ( + 80 ), 31 ) - + + 93 * - COALESCE ( - 85, - 21 ) AS col1
----
-7879

query I rowsort
SELECT ALL - 35 * + - 95 * + 76
----
252700

query I rowsort
SELECT ALL + 76 - 58 + NULLIF ( ( - - 84 ), + 81 - 22 - - 82 + + + 80 + + 27 ) - + + 0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT - SUM( + - 33 ) + - ( - ( - 18 ) )
----
15

skipif mysql # not compatible
query I rowsort label-146
SELECT - SUM ( + - 33 ) + - ( - ( - 18 ) )
----
15

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

skipif mysql # not compatible
query I rowsort label-147
SELECT - + NULLIF ( + - 30, - COUNT ( * ) ) AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-148
SELECT - 81 DIV - 18 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-148
SELECT - 81 / - 18 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-149
SELECT + - 85, + SUM( DISTINCT - + 53 ) AS col0
----
-85
-53

skipif mysql # not compatible
query II rowsort label-149
SELECT + - 85, + SUM ( DISTINCT - + 53 ) AS col0
----
-85
-53

query I rowsort
SELECT ALL + + 90 col2
----
90

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-152
SELECT 73 * - - 50, + CAST( NULL AS DECIMAL ) AS col0
----
3650
NULL

skipif mysql # not compatible
query II rowsort label-152
SELECT 73 * - - 50, + CAST ( NULL AS REAL ) AS col0
----
3650
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-153
SELECT 63 DIV COUNT( ALL + - 59 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-153
SELECT 63 / COUNT ( ALL + - 59 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL 78 * + MIN( DISTINCT - - 43 ) * - + 55 + 59 AS col1
----
-184411

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL 78 * + MIN ( DISTINCT - - 43 ) * - + 55 + 59 AS col1
----
-184411

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

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL + 23 + COUNT ( * ) AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT DISTINCT - 69 DIV + COALESCE ( - + 23, - - 53, + + ( + 41 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT - 69 / + COALESCE ( - + 23, - - 53, + + ( + 41 ) ) AS col2
----
3

query I rowsort
SELECT ALL - 51 * 72
----
-3672

query I rowsort
SELECT ALL + 96 + 28
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-159
SELECT ALL - MAX( ALL + CAST( - 43 AS SIGNED ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL - MAX ( ALL + CAST ( - 43 AS INTEGER ) ) AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-160
SELECT DISTINCT 36 + - + 62 - + MIN( - 24 ) * - + 67 * 17 * 64 + + + COUNT( ALL - 71 ) col1, - 59 * 56 - - COUNT( * ) DIV - 99 AS col0
----
-1749529
-3304

skipif mysql # not compatible
query II rowsort label-160
SELECT DISTINCT 36 + - + 62 - + MIN ( - 24 ) * - + 67 * 17 * 64 + + + COUNT ( ALL - 71 ) col1, - 59 * 56 - - COUNT ( * ) / - 99 AS col0
----
-1749529
-3304

query I rowsort
SELECT 24 * + + 16 AS col2
----
384

query I rowsort
SELECT ALL 71 + 83
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-163
SELECT ALL - 91 DIV ( - - 29 ) + + - NULLIF ( + 77, 83 )
----
-80

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL - 91 / ( - - 29 ) + + - NULLIF ( + 77, 83 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT MAX( DISTINCT + + 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-164
SELECT MAX ( DISTINCT + + 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT + 64 * - - 52 + + 72 + - MIN( ALL + + 91 ) col0
----
3309

skipif mysql # not compatible
query I rowsort label-165
SELECT + 64 * - - 52 + + 72 + - MIN ( ALL + + 91 ) col0
----
3309

query I rowsort
SELECT ALL + 21 - 11 * 40
----
-419

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-167
SELECT - 29 - - + 80 + COUNT( DISTINCT 17 ) * 40 DIV 40 * + 12 * + 12
----
195

skipif mysql # not compatible
query I rowsort label-167
SELECT - 29 - - + 80 + COUNT ( DISTINCT 17 ) * 40 / 40 * + 12 * + 12
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT ALL COUNT( * ) - + - COUNT( DISTINCT 53 )
----
2

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL COUNT ( * ) - + - COUNT ( DISTINCT 53 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-169
SELECT + 82 * + 48 AS col2, COUNT( DISTINCT + 82 ) AS col2
----
3936
1

skipif mysql # not compatible
query II rowsort label-169
SELECT + 82 * + 48 AS col2, COUNT ( DISTINCT + 82 ) AS col2
----
3936
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-170
SELECT CASE 78 WHEN + - CAST( + CAST( CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS DECIMAL ) AS SIGNED ) THEN NULL WHEN - 80 THEN - 3 + + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-170
SELECT CASE 78 WHEN + - CAST ( + CAST ( CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS REAL ) AS INTEGER ) THEN NULL WHEN - 80 THEN - 3 + + 53 END
----
NULL

query II rowsort
SELECT + 96 + 43 AS col0, + 31 AS col1
----
139
31

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT - CASE - ( - - 64 ) WHEN 39 + - - 14 THEN - SUM( DISTINCT - + 67 ) * + - 44 + - 76 + - ( + 77 ) * 67 WHEN + ( 63 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT - CASE - ( - - 64 ) WHEN 39 + - - 14 THEN - SUM ( DISTINCT - + 67 ) * + - 44 + - 76 + - ( + 77 ) * 67 WHEN + ( 63 ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 45 * + ( + + 56 ) * - 92 * 45 + + + 65 AS col2
----
10432865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-174
SELECT DISTINCT + CASE - 79 WHEN - COUNT( * ) THEN 47 * - 90 ELSE NULL END AS col2, 72 * + CAST( + 87 AS SIGNED ) * - COUNT( * ) * - COUNT( * ) * 15 + COALESCE ( + - 35, 56 * - 6 - + 55 + + 62 + + + 46 * 83 * - COUNT( * ) * - CAST( NULL AS SIGNED ) ) + + ( 99 ) AS col2
----
NULL
94024

skipif mysql # not compatible
query II rowsort label-174
SELECT DISTINCT + CASE - 79 WHEN - COUNT ( * ) THEN 47 * - 90 ELSE NULL END AS col2, 72 * + CAST ( + 87 AS INTEGER ) * - COUNT ( * ) * - COUNT ( * ) * 15 + COALESCE ( + - 35, 56 * - 6 - + 55 + + 62 + + + 46 * 83 * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) ) + + ( 99 ) AS col2
----
NULL
94024

query I rowsort
SELECT DISTINCT COALESCE ( + 19, 14, + 85, - 65 ) AS col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-176
SELECT ALL + NULLIF ( + 34, + 39 + + 4 * - 10 / CAST( NULL AS SIGNED ) ) + 80 * + 37 * + - 92 + 39 + 76 - - - 86 + + 47 AS col1
----
-272210

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL + NULLIF ( + 34, + 39 + + 4 * - 10 / CAST ( NULL AS INTEGER ) ) + 80 * + 37 * + - 92 + 39 + 76 - - - 86 + + 47 AS col1
----
-272210

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT 80 * + CASE 98 WHEN - 70 / - + 80 * + 43 + + 60 - COUNT( * ) + + + 40 THEN + - 81 WHEN + + 41 * MAX( + 73 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-177
SELECT 80 * + CASE 98 WHEN - 70 / - + 80 * + 43 + + 60 - COUNT ( * ) + + + 40 THEN + - 81 WHEN + + 41 * MAX ( + 73 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-178
SELECT ALL + 54 DIV + - NULLIF ( - 59, + + COUNT( * ) ) * - - 44
----
0

skipif mysql # not compatible
query I rowsort label-178
SELECT ALL + 54 / + - NULLIF ( - 59, + + COUNT ( * ) ) * - - 44
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-179
SELECT MIN( 17 ) DIV COALESCE ( + 33, + 65, - 18 DIV - 64 ) + + - 35 DIV - + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-179
SELECT MIN ( 17 ) / COALESCE ( + 33, + 65, - 18 / - 64 ) + + - 35 / - + 82 AS col1
----
0

query I rowsort
SELECT ALL - 64 + - 7
----
-71

query I rowsort
SELECT ALL 49 + + - 29 col0
----
20

query I rowsort
SELECT DISTINCT - 82 * - 32
----
2624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-183
SELECT ALL + 91 + + + COUNT( + 68 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL + 91 + + + COUNT ( + 68 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-184
SELECT DISTINCT - NULLIF ( ( + - MAX( - 43 ) ), + MAX( DISTINCT - + ( - + 37 ) ) * 88 ) col0, - 26 AS col0
----
-43
-26

skipif mysql # not compatible
query II rowsort label-184
SELECT DISTINCT - NULLIF ( ( + - MAX ( - 43 ) ), + MAX ( DISTINCT - + ( - + 37 ) ) * 88 ) col0, - 26 AS col0
----
-43
-26

query I rowsort
SELECT ALL - 64 + - - 77 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT DISTINCT - 46 + + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT - 46 + + COUNT ( * )
----
-45

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

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT - MIN ( 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT 65 * + COUNT( * ) + 86 + - - NULLIF ( - 26, + ( - - 52 ) * + 20 + 47 )
----
125

skipif mysql # not compatible
query I rowsort label-188
SELECT 65 * + COUNT ( * ) + 86 + - - NULLIF ( - 26, + ( - - 52 ) * + 20 + 47 )
----
125

query I rowsort
SELECT 95 * + 22
----
2090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-190
SELECT 4 + + CAST( NULL AS SIGNED ) + AVG ( 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-190
SELECT 4 + + CAST ( NULL AS INTEGER ) + AVG ( 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT ALL NULLIF ( COALESCE ( + 31, - 26 + + + 73 + - + 52 ), - COUNT( * ) * - 82 * - 23 * + + 45 / COUNT( * ) ) * 53 AS col1
----
1643

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL NULLIF ( COALESCE ( + 31, - 26 + + + 73 + - + 52 ), - COUNT ( * ) * - 82 * - 23 * + + 45 / COUNT ( * ) ) * 53 AS col1
----
1643

query I rowsort
SELECT 14 + - 74
----
-60

query I rowsort
SELECT ALL + 29 - - 81
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT - MAX( ALL - - 57 ) * 64
----
-3648

skipif mysql # not compatible
query I rowsort label-194
SELECT - MAX ( ALL - - 57 ) * 64
----
-3648

onlyif mysql # DIV for integer division: 
query I rowsort label-195
SELECT ALL + - 91 DIV + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL + - 91 / + 98 AS col0
----
0

query II rowsort
SELECT ALL ( - 33 ) - 9 AS col0, 52 + + - 31 + - 16
----
-42
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-197
SELECT ALL + NULLIF ( 1, - CAST( NULL AS SIGNED ) ) * - MIN( DISTINCT + - 45 ) * 35 AS col1
----
1575

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL + NULLIF ( 1, - CAST ( NULL AS INTEGER ) ) * - MIN ( DISTINCT + - 45 ) * 35 AS col1
----
1575

query I rowsort
SELECT DISTINCT - ( - 95 ) - - - 40 + - 80 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT ALL MIN( + 75 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL MIN ( + 75 ) AS col1
----
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-201
SELECT + NULLIF ( - 40, - 41 * - 11 - + + 75 + + CAST( NULL AS SIGNED ) )
----
-40

skipif mysql # not compatible
query I rowsort label-201
SELECT + NULLIF ( - 40, - 41 * - 11 - + + 75 + + CAST ( NULL AS INTEGER ) )
----
-40

query I rowsort
SELECT 58 + - 95
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-203
SELECT COALESCE ( + 2, - + 24 ) DIV 62 * - 6 DIV - 84 * 27 * + COUNT( * ) * + 78 * + 9 + - 59 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-203
SELECT COALESCE ( + 2, - + 24 ) / 62 * - 6 / - 84 * 27 * + COUNT ( * ) * + 78 * + 9 + - 59 AS col1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-204
SELECT + ( + + 94 ) DIV + 9 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-204
SELECT + ( + + 94 ) / + 9 AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-205
SELECT ALL 6 DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL 6 / 25
----
0

query I rowsort
SELECT 76 + - 40 AS col2
----
36

query I rowsort
SELECT 35 * + 61 col0
----
2135

query I rowsort
SELECT - 89 + 19 + - + 34 - - 77 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT DISTINCT - ( + - CASE COUNT( DISTINCT - 22 ) WHEN - 36 - + + MIN( + 78 ) * 2 THEN 92 * + COUNT( - + 71 ) WHEN - + 29 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT - ( + - CASE COUNT ( DISTINCT - 22 ) WHEN - 36 - + + MIN ( + 78 ) * 2 THEN 92 * + COUNT ( - + 71 ) WHEN - + 29 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL 72 + 31
----
103

query I rowsort
SELECT ALL 46 * + 63 AS col2
----
2898

query I rowsort
SELECT + 16 * - ( - 56 ) + - 89
----
807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-213
SELECT DISTINCT CAST( CASE 75 WHEN 26 * + 89 THEN - 61 ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-213
SELECT DISTINCT CAST ( CASE 75 WHEN 26 * + 89 THEN - 61 ELSE NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT + - MAX( - 58 ) + + 23
----
81

skipif mysql # not compatible
query I rowsort label-214
SELECT + - MAX ( - 58 ) + + 23
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT ALL - 91 + - MAX( 33 )
----
-124

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL - 91 + - MAX ( 33 )
----
-124

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-216
SELECT ALL + 33 * - CASE - 32 WHEN + 15 THEN CASE - - ( - 45 ) WHEN + MAX( DISTINCT + - 89 ) * + SUM( - 28 ) - + 45 THEN NULL WHEN + CASE + - CAST( NULL AS DECIMAL ) WHEN ( - + 22 ) THEN NULL WHEN + 73 + 51 THEN + 61 + - - 41 END THEN COUNT( DISTINCT 50 ) END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-216
SELECT ALL + 33 * - CASE - 32 WHEN + 15 THEN CASE - - ( - 45 ) WHEN + MAX ( DISTINCT + - 89 ) * + SUM ( - 28 ) - + 45 THEN NULL WHEN + CASE + - CAST ( NULL AS REAL ) WHEN ( - + 22 ) THEN NULL WHEN + 73 + 51 THEN + 61 + - - 41 END THEN COUNT ( DISTINCT 50 ) END END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT DISTINCT COALESCE ( - COUNT( * ), 17 ) + 14
----
13

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT COALESCE ( - COUNT ( * ), 17 ) + 14
----
13

query I rowsort
SELECT ALL 61 + 87 AS col0
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-219
SELECT - COUNT( * ) AS col0, - 90 + - NULLIF ( - 32, + 0 * - 35 * + - 10 ) AS col1
----
-1
-58

skipif mysql # not compatible
query II rowsort label-219
SELECT - COUNT ( * ) AS col0, - 90 + - NULLIF ( - 32, + 0 * - 35 * + - 10 ) AS col1
----
-1
-58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-221
SELECT + COALESCE ( + 49, - 18 + - 9 * - 0 * + AVG ( DISTINCT + 87 ) DIV + 6 + + - 75 ) * 54 + + 22 * + 33 AS col1
----
3372

skipif mysql # not compatible
query I rowsort label-221
SELECT + COALESCE ( + 49, - 18 + - 9 * - 0 * + AVG ( DISTINCT + 87 ) / + 6 + + - 75 ) * 54 + + 22 * + 33 AS col1
----
3372

query I rowsort
SELECT ALL + 27 * + 54 + + 31
----
1489

query I rowsort
SELECT ALL 39 * - - 68 + - - 80 AS col1
----
2732

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT DISTINCT NULLIF ( 50, - - 75 + - - CASE + 78 WHEN - + 39 THEN NULL WHEN + ( 0 ) * 47 / - 22 + - SUM( 19 ) + - 10 + + ( - 4 ) THEN + 5 ELSE NULL END - 85 * - + COALESCE ( + 21, - - 77, - 52 * - 0 ) ) * 29 - + 21 + + 2
----
1431

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT NULLIF ( 50, - - 75 + - - CASE + 78 WHEN - + 39 THEN NULL WHEN + ( 0 ) * 47 / - 22 + - SUM ( 19 ) + - 10 + + ( - 4 ) THEN + 5 ELSE NULL END - 85 * - + COALESCE ( + 21, - - 77, - 52 * - 0 ) ) * 29 - + 21 + + 2
----
1431

query I rowsort
SELECT - 90 * + + COALESCE ( - 89, + ( 5 ) + - 13, - 85 )
----
8010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-226
SELECT ALL + NULLIF ( 89, - COUNT( * ) + 84 + + 45 ) * 26 * - MAX( DISTINCT CAST( NULL AS SIGNED ) ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL + NULLIF ( 89, - COUNT ( * ) + 84 + + 45 ) * 26 * - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( + 13, + NULLIF ( - + 98, - + 97 / + 62 * + 96 ) ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT - MAX( + 13 ) * 36 * - 90 - 12
----
42108

skipif mysql # not compatible
query I rowsort label-228
SELECT - MAX ( + 13 ) * 36 * - 90 - 12
----
42108

query I rowsort
SELECT DISTINCT + ( - 61 ) * + 50 + - 84 AS col2
----
-3134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-230
SELECT ALL - COUNT( * ) * - COALESCE ( + + 93, - 53 * COALESCE ( - 87, + 96 ) * + CAST( - 36 AS SIGNED ) ) * - - 47 AS col0
----
4371

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL - COUNT ( * ) * - COALESCE ( + + 93, - 53 * COALESCE ( - 87, + 96 ) * + CAST ( - 36 AS INTEGER ) ) * - - 47 AS col0
----
4371

query I rowsort
SELECT + 54 * - + 79 AS col0
----
-4266

query I rowsort
SELECT - 59 * - + 9 AS col0
----
531

query I rowsort
SELECT DISTINCT + ( 35 ) * - - 76 col2
----
2660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-234
SELECT ALL COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2, CASE - CAST( NULL AS SIGNED ) WHEN + + COUNT( * ) * + 29 THEN NULL WHEN + 90 THEN + COUNT( - 58 ) + + 1 ELSE NULL END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-234
SELECT ALL COUNT ( * ) * CAST ( NULL AS REAL ) AS col2, CASE - CAST ( NULL AS INTEGER ) WHEN + + COUNT ( * ) * + 29 THEN NULL WHEN + 90 THEN + COUNT ( - 58 ) + + 1 ELSE NULL END AS col0
----
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-235
SELECT - - ( 68 ) * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-236
SELECT DISTINCT + + COALESCE ( COALESCE ( - 33, + 19, + - COUNT( * ) * 57 * - COUNT( * ) - - - 21 + - 21 DIV - + COUNT( * ) + 80 ), 12 )
----
-33

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT + + COALESCE ( COALESCE ( - 33, + 19, + - COUNT ( * ) * 57 * - COUNT ( * ) - - - 21 + - 21 / - + COUNT ( * ) + 80 ), 12 )
----
-33

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

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

query I rowsort
SELECT ( - - 49 ) AS col1
----
49

query II rowsort
SELECT - + 57, - 33 AS col2
----
-57
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-240
SELECT ALL + - CAST( NULL AS SIGNED ) / + 24, + 54 AS col0
----
NULL
54

skipif mysql # not compatible
query II rowsort label-240
SELECT ALL + - CAST ( NULL AS INTEGER ) / + 24, + 54 AS col0
----
NULL
54

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-242
SELECT - 81, 39 + + NULLIF ( 56, COALESCE ( - + COUNT( + 31 ), + - ( - 80 ) ) ) * ( 69 ) AS col0
----
-81
3903

skipif mysql # not compatible
query II rowsort label-242
SELECT - 81, 39 + + NULLIF ( 56, COALESCE ( - + COUNT ( + 31 ), + - ( - 80 ) ) ) * ( 69 ) AS col0
----
-81
3903

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT 9 * - COUNT( * ) + NULLIF ( - 35, - 58 + - 15 * 27 ) + 22
----
-22

skipif mysql # not compatible
query I rowsort label-243
SELECT 9 * - COUNT ( * ) + NULLIF ( - 35, - 58 + - 15 * 27 ) + 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT ALL COALESCE ( NULLIF ( - 22, - 91 + 17 * + COUNT( * ) ), - COUNT( * ) )
----
-22

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL COALESCE ( NULLIF ( - 22, - 91 + 17 * + COUNT ( * ) ), - COUNT ( * ) )
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT ALL + + 21 + + 32 * 22 DIV 33 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL + + 21 + + 32 * 22 / 33 AS col0
----
42

query II rowsort
SELECT - ( + 52 ) AS col1, 94 AS col1
----
-52
94

query I rowsort
SELECT ALL - 6 + 22 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT DISTINCT + CASE + - 95 WHEN + COUNT( * ) THEN + 65 WHEN - - 35 THEN - + 36 ELSE + 67 + + - 17 END + SUM( - - 81 )
----
131

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT + CASE + - 95 WHEN + COUNT ( * ) THEN + 65 WHEN - - 35 THEN - + 36 ELSE + 67 + + - 17 END + SUM ( - - 81 )
----
131

query I rowsort
SELECT + - 68 + + - 4
----
-72

query II rowsort
SELECT ALL - 19 AS col2, 18 * - 9 AS col0
----
-19
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-251
SELECT DISTINCT NULLIF ( + - NULLIF ( - ( - ( 32 ) ), - 86 / - 28 * + 59 ), - CAST( NULL AS SIGNED ) )
----
-32

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT NULLIF ( + - NULLIF ( - ( - ( 32 ) ), - 86 / - 28 * + 59 ), - CAST ( NULL AS INTEGER ) )
----
-32

query I rowsort
SELECT ALL 6 + + + 0 * + 71 * + 14 + + 24 AS col0
----
30

query II rowsort
SELECT + 77, 73 AS col2
----
77
73

query I rowsort
SELECT - 26 + 13 + + 69 + - 49 * - NULLIF ( + 35, 78 ) col2
----
1771

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

skipif mysql # not compatible
query I rowsort label-255
SELECT + 32 * COUNT ( * ) * 36 / - + 44 AS col1
----
-26

query II rowsort
SELECT DISTINCT ( - - 65 ) AS col1, 57
----
65
57

onlyif mysql # DIV for integer division: 
query I rowsort label-257
SELECT DISTINCT 55 + 70 - 91 + - 60 * + 84 DIV - ( - - 99 ) DIV 99 * - + 92
----
34

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT 55 + 70 - 91 + - 60 * + 84 / - ( - - 99 ) / 99 * - + 92
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-258
SELECT DISTINCT - 19 DIV - 40 * + COUNT( * ) AS col1, 95 DIV + CASE + - COUNT( * ) WHEN + 25 THEN NULL WHEN + 25 + + - 27 THEN + 46 END AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-258
SELECT DISTINCT - 19 / - 40 * + COUNT ( * ) AS col1, 95 / + CASE + - COUNT ( * ) WHEN + 25 THEN NULL WHEN + 25 + + - 27 THEN + 46 END AS col0
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-259
SELECT ALL CAST( + 31 AS SIGNED ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL CAST ( + 31 AS INTEGER ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-260
SELECT DISTINCT - 10 + + 23, 2 + + + COUNT( * ) AS col2
----
13
3

skipif mysql # not compatible
query II rowsort label-260
SELECT DISTINCT - 10 + + 23, 2 + + + COUNT ( * ) AS col2
----
13
3

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT DISTINCT MIN( + 85 ) - + 62 * 95
----
-5805

skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT MIN ( + 85 ) - + 62 * 95
----
-5805

query I rowsort
SELECT + 72 * + 45
----
3240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-263
SELECT - ( + AVG ( + CAST( NULL AS SIGNED ) ) ) + - NULLIF ( 4, + 38 ) * - + 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT - ( + AVG ( + CAST ( NULL AS INTEGER ) ) ) + - NULLIF ( 4, + 38 ) * - + 22 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-264
SELECT CAST( NULL AS SIGNED ) / - + COALESCE ( - 51, - - 35 ) + - 74 AS col1, ( - 0 ) + - MIN( + + 74 ) AS col0
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-264
SELECT CAST ( NULL AS INTEGER ) / - + COALESCE ( - 51, - - 35 ) + - 74 AS col1, ( - 0 ) + - MIN ( + + 74 ) AS col0
----
NULL
-74

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

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

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

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

query I rowsort
SELECT + 54 + - + ( + - 59 ) AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT DISTINCT CASE - - 21 WHEN COUNT( - + 52 ) THEN + - 19 WHEN + 94 THEN NULL ELSE - 3 * 80 + + + 19 * 35 * 23 + - 77 END * - 12 + - + 92 - + COUNT( * )
----
-179829

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT CASE - - 21 WHEN COUNT ( - + 52 ) THEN + - 19 WHEN + 94 THEN NULL ELSE - 3 * 80 + + + 19 * 35 * 23 + - 77 END * - 12 + - + 92 - + COUNT ( * )
----
-179829

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT 38 * + + COUNT( * ) + 52 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-269
SELECT 38 * + + COUNT ( * ) + 52 AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-270
SELECT + 24 DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-270
SELECT + 24 / 38
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-271
SELECT CAST( + 54 AS SIGNED ) AS col0, 1 col2
----
54
1

skipif mysql # not compatible
query II rowsort label-271
SELECT CAST ( + 54 AS INTEGER ) AS col0, 1 col2
----
54
1

query I rowsort
SELECT ALL + + COALESCE ( + 29, + ( 88 ) )
----
29

query I rowsort
SELECT + + 79 * + + 46
----
3634

onlyif mysql # DIV for integer division: 
query I rowsort label-274
SELECT + 21 DIV - 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-274
SELECT + 21 / - 59 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-275
SELECT - MIN( + 4 ) DIV + ( + 24 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-275
SELECT - MIN ( + 4 ) / + ( + 24 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-276
SELECT 24 * + 59 + 28 + - 4 DIV + - COUNT( + 72 ) DIV + + COUNT( * )
----
1448

skipif mysql # not compatible
query I rowsort label-276
SELECT 24 * + 59 + 28 + - 4 / + - COUNT ( + 72 ) / + + COUNT ( * )
----
1448

query I rowsort
SELECT + 48 * 17 + - + 20 - + 11 AS col1
----
785

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-278
SELECT + + MIN( DISTINCT - 86 ) DIV 83 col2
----
-1

skipif mysql # not compatible
query I rowsort label-278
SELECT + + MIN ( DISTINCT - 86 ) / 83 col2
----
-1

query I rowsort
SELECT ALL + + 60 * 37 * + 72 * - 98
----
-15664320

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT DISTINCT - ( - ( 35 ) ) * - MIN( - - 73 ) + 67
----
-2488

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT - ( - ( 35 ) ) * - MIN ( - - 73 ) + 67
----
-2488

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT ALL - COUNT( ALL - 72 ) + + - 51
----
-52

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL - COUNT ( ALL - 72 ) + + - 51
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT DISTINCT CASE 36 WHEN + 12 THEN + MAX( - ( - 27 ) ) * + + NULLIF ( + CASE WHEN NULL IS NULL THEN - 10 ELSE NULL END, - AVG ( ALL - 69 ) * - 52 / 30 ) END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-282
SELECT DISTINCT CASE 36 WHEN + 12 THEN + MAX ( - ( - 27 ) ) * + + NULLIF ( + CASE WHEN NULL IS NULL THEN - 10 ELSE NULL END, - AVG ( ALL - 69 ) * - 52 / 30 ) END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-283
SELECT ALL - - 48 + - 86 - + + COUNT( * ) DIV + 90 * - + 81 * + 12
----
-38

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL - - 48 + - 86 - + + COUNT ( * ) / + 90 * - + 81 * + 12
----
-38

query I rowsort
SELECT ALL + + 85 + - 87 + + + 80 AS col2
----
78

query I rowsort
SELECT - + NULLIF ( + 76, + - 10 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ALL - COUNT( * ) + - 24 + 94 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL - COUNT ( * ) + - 24 + 94 AS col1
----
69

query I rowsort
SELECT DISTINCT - + 43 * - - 18 AS col2
----
-774

query I rowsort
SELECT ALL NULLIF ( 53, + 95 )
----
53

query II rowsort
SELECT 54 + + - 42, - 21 + - 40 * + + 83 AS col0
----
12
-3341

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

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT ALL - 5 * + MIN( + 63 ) * - 16 + + + 45
----
5085

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL - 5 * + MIN ( + 63 ) * - 16 + + + 45
----
5085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-292
SELECT DISTINCT + 78 - - + 9 + + 55 + + NULLIF ( + COALESCE ( - CAST( NULL AS SIGNED ), + 51, + 67 * 61 * - ( + ( - 49 ) ) + - 53 + 99 + - - 32 + + + 48 * 96 * + ( 89 ) * + 40 DIV + - 96 DIV - 66 * + - 89 + + MAX( ALL + 14 ) ), + - 5 ) * + 36 * + 44 col1, + COUNT( - 81 ) + ( - 18 ) + + - COUNT( * ) * + CAST( NULL AS SIGNED ) col2
----
80926
NULL

skipif mysql # not compatible
query II rowsort label-292
SELECT DISTINCT + 78 - - + 9 + + 55 + + NULLIF ( + COALESCE ( - CAST ( NULL AS INTEGER ), + 51, + 67 * 61 * - ( + ( - 49 ) ) + - 53 + 99 + - - 32 + + + 48 * 96 * + ( 89 ) * + 40 / + - 96 / - 66 * + - 89 + + MAX ( ALL + 14 ) ), + - 5 ) * + 36 * + 44 col1, + COUNT ( - 81 ) + ( - 18 ) + + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) col2
----
80926
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-293
SELECT DISTINCT - 23 * - CAST( - 23 AS SIGNED ) col1, 64 AS col2
----
-529
64

skipif mysql # not compatible
query II rowsort label-293
SELECT DISTINCT - 23 * - CAST ( - 23 AS INTEGER ) col1, 64 AS col2
----
-529
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-294
SELECT COUNT( * ) + 41 + + 85 DIV + 20 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-294
SELECT COUNT ( * ) + 41 + + 85 / + 20 AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-295
SELECT DISTINCT + 60 - - 3 + + + COUNT( * ) + 93 DIV + + 16
----
69

skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT + 60 - - 3 + + + COUNT ( * ) + 93 / + + 16
----
69

query I rowsort
SELECT 14 + + 29 AS col2
----
43

query II rowsort
SELECT DISTINCT 29 AS col2, 77 * - ( 85 ) AS col1
----
29
-6545

query I rowsort
SELECT 33 * - 13
----
-429

query I rowsort
SELECT 40 + - 98 * + ( 43 )
----
-4174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-300
SELECT ALL COUNT( * ) DIV - 9
----
0

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL COUNT ( * ) / - 9
----
0

query I rowsort
SELECT 23 * 32 AS col0
----
736

onlyif mysql # DIV for integer division: 
query I rowsort label-302
SELECT ALL - 70 DIV - + 5
----
14

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL - 70 / - + 5
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-303
SELECT DISTINCT - 7 AS col0, SUM( 42 )
----
-7
42

skipif mysql # not compatible
query II rowsort label-303
SELECT DISTINCT - 7 AS col0, SUM ( 42 )
----
-7
42

query I rowsort
SELECT DISTINCT 24 * + - 26 col1
----
-624

query II rowsort
SELECT 45 AS col2, 40 AS col1
----
45
40

query I rowsort
SELECT 64 * - - 49 * + 55 AS col2
----
172480

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT ALL 49 + + COALESCE ( + 35, + 24, ( - 78 ) + 37 DIV 17 )
----
84

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL 49 + + COALESCE ( + 35, + 24, ( - 78 ) + 37 / 17 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT 51 - - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-308
SELECT 51 - - COUNT ( * )
----
52

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

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

query II rowsort
SELECT DISTINCT - 78 * - 43 + - 78 AS col0, - 79 + 10 - + - 44 * - 72 * - 91 * 50 * + - 9 + - - 68
----
3276
-129729601

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT ALL - 72 + + - COUNT( * ) + + SUM( DISTINCT 6 ) + 65 * 90 * + 13 AS col0
----
75983

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL - 72 + + - COUNT ( * ) + + SUM ( DISTINCT 6 ) + 65 * 90 * + 13 AS col0
----
75983

query I rowsort
SELECT 43 * 63 AS col2
----
2709

query I rowsort
SELECT ALL - 61 + + 14 AS col0
----
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT DISTINCT - 28 + - + COALESCE ( + COUNT( ALL ( + - 48 ) ), - 83, + 17, - + 94 - + + ( - MAX( - 6 ) ) + - ( - 53 ) + 76 + + + 19 * + + 59 ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT - 28 + - + COALESCE ( + COUNT ( ALL ( + - 48 ) ), - 83, + 17, - + 94 - + + ( - MAX ( - 6 ) ) + - ( - 53 ) + 76 + + + 19 * + + 59 ) col0
----
-29

query I rowsort
SELECT ALL - - 45 + - 62
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT + + MAX( ALL + 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-317
SELECT + + MAX ( ALL + 8 ) AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-318
SELECT ALL - + CASE + ( + - 74 ) WHEN - + 8 + + ( + 4 ) * + 4 THEN - 64 - + 8 + CAST( - 56 AS SIGNED ) ELSE + + 91 END AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL - + CASE + ( + - 74 ) WHEN - + 8 + + ( + 4 ) * + 4 THEN - 64 - + 8 + CAST ( - 56 AS INTEGER ) ELSE + + 91 END AS col1
----
-91

query I rowsort
SELECT ALL 79 + - 55
----
24

query I rowsort
SELECT 89 * - 55 AS col0
----
-4895

query I rowsort
SELECT 92 + + 74 * - 0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-322
SELECT ALL - SUM( - - CAST( + 53 AS SIGNED ) ) - + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL - SUM ( - - CAST ( + 53 AS INTEGER ) ) - + COUNT ( * )
----
-54

query I rowsort
SELECT 69 * + - 60 * + ( - 25 )
----
103500

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT ALL 3 * MIN( - - 2 ) * 52 AS col2
----
312

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL 3 * MIN ( - - 2 ) * 52 AS col2
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT ALL + NULLIF ( + 41, - - NULLIF ( - - 45, - COUNT( * ) / - 8 ) ) - 59
----
-18

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL + NULLIF ( + 41, - - NULLIF ( - - 45, - COUNT ( * ) / - 8 ) ) - 59
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-326
SELECT - SUM( ALL + + 96 ) AS col0, 2
----
-96
2

skipif mysql # not compatible
query II rowsort label-326
SELECT - SUM ( ALL + + 96 ) AS col0, 2
----
-96
2

query I rowsort
SELECT 18 + + 14
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT 88 * + - COUNT( * ) * - 56 AS col2
----
4928

skipif mysql # not compatible
query I rowsort label-328
SELECT 88 * + - COUNT ( * ) * - 56 AS col2
----
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT 95 - MAX( + ( - - 65 ) ) * 33 * + - CASE + 96 WHEN 23 * + 72 THEN NULL ELSE + 4 END AS col1
----
8675

skipif mysql # not compatible
query I rowsort label-329
SELECT 95 - MAX ( + ( - - 65 ) ) * 33 * + - CASE + 96 WHEN 23 * + 72 THEN NULL ELSE + 4 END AS col1
----
8675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-330
SELECT 4 + + 1 + - + 48 + 18 / + 98 + + 66 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-330
SELECT 4 + + 1 + - + 48 + 18 / + 98 + + 66 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-331
SELECT ALL - 74 * - - 21 * - ( - 20 ) AS col0, + CAST( NULL AS SIGNED ) / - - COUNT( + 32 ) / + 36
----
-31080
NULL

skipif mysql # not compatible
query II rowsort label-331
SELECT ALL - 74 * - - 21 * - ( - 20 ) AS col0, + CAST ( NULL AS INTEGER ) / - - COUNT ( + 32 ) / + 36
----
-31080
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT 14 * CASE + - 18 WHEN + 94 / + MIN( DISTINCT 34 ) THEN + + ( - CASE - 19 WHEN - 68 * + + COALESCE ( 26, + 35 ) THEN - - 90 ELSE NULL END ) + + 41 + + - COUNT( * ) + COUNT( * ) * 90 ELSE - + 66 END AS col2
----
-924

skipif mysql # not compatible
query I rowsort label-332
SELECT 14 * CASE + - 18 WHEN + 94 / + MIN ( DISTINCT 34 ) THEN + + ( - CASE - 19 WHEN - 68 * + + COALESCE ( 26, + 35 ) THEN - - 90 ELSE NULL END ) + + 41 + + - COUNT ( * ) + COUNT ( * ) * 90 ELSE - + 66 END AS col2
----
-924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-333
SELECT DISTINCT - CASE 94 WHEN MIN( ALL - + 68 ) THEN - 58 * - ( 59 ) END / - - CAST( - 93 AS SIGNED ) * - - 97, - 62 + + 98 / + - CAST( NULL AS SIGNED ) * + + 29 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-333
SELECT DISTINCT - CASE 94 WHEN MIN ( ALL - + 68 ) THEN - 58 * - ( 59 ) END / - - CAST ( - 93 AS INTEGER ) * - - 97, - 62 + + 98 / + - CAST ( NULL AS INTEGER ) * + + 29 AS col1
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-334
SELECT 33 DIV - ( - - 15 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-334
SELECT 33 / - ( - - 15 ) AS col1
----
-2

query I rowsort
SELECT 39 - + + ( - ( + 31 ) ) AS col2
----
70

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

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

query I rowsort
SELECT 13 + + 21 * + 42 AS col1
----
895

onlyif mysql # DIV for integer division: 
query I rowsort label-338
SELECT 23 DIV - 36 * + 69
----
0

skipif mysql # not compatible
query I rowsort label-338
SELECT 23 / - 36 * + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT ALL + SUM( + - 94 ) * - - 23 * COUNT( * ) + COUNT( - + 77 ) * + 38 col2
----
-2124

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL + SUM ( + - 94 ) * - - 23 * COUNT ( * ) + COUNT ( - + 77 ) * + 38 col2
----
-2124

query I rowsort
SELECT NULLIF ( - 69, - 21 ) AS col2
----
-69

query II rowsort
SELECT 78 * + 41 * + 97 * - 34 AS col1, 14
----
-10547004
14

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

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL - - SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-343
SELECT 21 DIV 50 + + NULLIF ( 13, - - 60 ) AS col0, 90 AS col0
----
13
90

skipif mysql # not compatible
query II rowsort label-343
SELECT 21 / 50 + + NULLIF ( 13, - - 60 ) AS col0, 90 AS col0
----
13
90

query I rowsort
SELECT + 66 + - 40 col2
----
26

query II rowsort
SELECT ( + + 10 ) AS col2, 88
----
10
88

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL 1 * - COUNT( * ) + + 30 + + COUNT( * ) * + ( 44 ) * + 68 * - 33
----
-98707

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL 1 * - COUNT ( * ) + + 30 + + COUNT ( * ) * + ( 44 ) * + 68 * - 33
----
-98707

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-350
SELECT ALL + 97 * CAST( + - 17 AS SIGNED ) * + 28 + NULLIF ( + 88, + + 3 ) * - + 1 - 59 - 85
----
-46404

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL + 97 * CAST ( + - 17 AS INTEGER ) * + 28 + NULLIF ( + 88, + + 3 ) * - + 1 - 59 - 85
----
-46404

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-351
SELECT DISTINCT CASE + 92 WHEN + + COALESCE ( AVG ( 52 ), + - 18 + + 24 + + - NULLIF ( + - 87, + COUNT( * ) ) * + 60 * - 43 - + 33 + + + COUNT( * ) / - 13 - ( 64 ) + 75 * - 28, 82 + + - 78 + CAST( NULL AS DECIMAL ) ) + + 32 + + 99 THEN - 35 * 29 - + 79 WHEN - - 29 * - + NULLIF ( 62, + 13 + + - 36 * - 86 * + - 67 ) THEN NULL END * - + 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT CASE + 92 WHEN + + COALESCE ( AVG ( 52 ), + - 18 + + 24 + + - NULLIF ( + - 87, + COUNT ( * ) ) * + 60 * - 43 - + 33 + + + COUNT ( * ) / - 13 - ( 64 ) + 75 * - 28, 82 + + - 78 + CAST ( NULL AS REAL ) ) + + 32 + + 99 THEN - 35 * 29 - + 79 WHEN - - 29 * - + NULLIF ( 62, + 13 + + - 36 * - 86 * + - 67 ) THEN NULL END * - + 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT + + 94 * 58 * + COUNT( ALL - - 8 ) AS col0
----
5452

skipif mysql # not compatible
query I rowsort label-352
SELECT + + 94 * 58 * + COUNT ( ALL - - 8 ) AS col0
----
5452

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT DISTINCT - 72 * - NULLIF ( 97, 89 / 16 ) * - + COALESCE ( + MIN( ALL + 12 ), - COUNT( * ) )
----
-83808

skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT - 72 * - NULLIF ( 97, 89 / 16 ) * - + COALESCE ( + MIN ( ALL + 12 ), - COUNT ( * ) )
----
-83808

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

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

query I rowsort
SELECT DISTINCT + 56 * - 7 * - 11 AS col2
----
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT ALL 13 - - MAX( DISTINCT - 32 )
----
-19

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL 13 - - MAX ( DISTINCT - 32 )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-357
SELECT + 82 * SUM( DISTINCT - + 42 ) DIV 95 + CAST( 3 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-357
SELECT + 82 * SUM ( DISTINCT - + 42 ) / 95 + CAST ( 3 AS INTEGER )
----
-33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT + 67 * - COUNT( DISTINCT + 3 )
----
-67

skipif mysql # not compatible
query I rowsort label-359
SELECT + 67 * - COUNT ( DISTINCT + 3 )
----
-67

query II rowsort
SELECT ALL 19 AS col2, 46 * - 93 * 98
----
19
-419244

query I rowsort
SELECT + 37 * + - 81 * + 40
----
-119880

query I rowsort
SELECT + 55 + 40
----
95

query I rowsort
SELECT + 14 - + - 56
----
70

query I rowsort
SELECT + 31 + + 58
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL COUNT( * ) * - CASE - + 31 WHEN + 16 * + 42 THEN NULL WHEN - 49 THEN NULL ELSE - 95 END * 55 * + - 4 AS col2
----
-20900

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL COUNT ( * ) * - CASE - + 31 WHEN + 16 * + 42 THEN NULL WHEN - 49 THEN NULL ELSE - 95 END * 55 * + - 4 AS col2
----
-20900

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

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

query II rowsort
SELECT - 86, 96 AS col2
----
-86
96

query I rowsort
SELECT DISTINCT 48 + 21
----
69

query I rowsort
SELECT + 71 * - 76
----
-5396

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT ALL SUM( DISTINCT - 49 ) + + 28
----
-21

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL SUM ( DISTINCT - 49 ) + + 28
----
-21

query I rowsort
SELECT - ( - 69 ) col0
----
69

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

skipif mysql # not compatible
query I rowsort label-372
SELECT - ( COUNT ( * ) ) + - + 34 + + - 78 AS col2
----
-113

query I rowsort
SELECT ALL + 44 + - 55
----
-11

query I rowsort
SELECT + 41 * 88 AS col0
----
3608

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL COUNT( * ) + - 49 + + 30 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL COUNT ( * ) + - 49 + + 30 AS col1
----
-18

query I rowsort
SELECT ALL NULLIF ( 59, + AVG ( - ( 84 ) ) )
----
59

query I rowsort
SELECT DISTINCT + 26 + - 23 * - 8
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-378
SELECT ALL 52 DIV + 41 + - 29 * 94
----
-2725

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL 52 / + 41 + - 29 * 94
----
-2725

onlyif mysql # DIV for integer division: 
query I rowsort label-379
SELECT ALL 58 DIV 39 + 94 * 46
----
4325

skipif mysql # not compatible
query I rowsort label-379
SELECT ALL 58 / 39 + 94 * 46
----
4325

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT - COALESCE ( 96, 54 * CASE + 71 * 79 WHEN - 83 - - 53 * + 78 THEN COUNT( * ) WHEN 74 * - 57 THEN NULL ELSE NULL END ) * 54 AS col0
----
-5184

skipif mysql # not compatible
query I rowsort label-380
SELECT - COALESCE ( 96, 54 * CASE + 71 * 79 WHEN - 83 - - 53 * + 78 THEN COUNT ( * ) WHEN 74 * - 57 THEN NULL ELSE NULL END ) * 54 AS col0
----
-5184

query I rowsort
SELECT ALL + 35 * - 28
----
-980

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-384
SELECT - ( + 60 ) DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-384
SELECT - ( + 60 ) / 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-385
SELECT ALL 95 DIV SUM( ALL 68 * 53 ) - + 83
----
-83

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL 95 / SUM ( ALL 68 * 53 ) - + 83
----
-83

query I rowsort
SELECT - ( + 28 ) * 80
----
-2240

query I rowsort
SELECT + 20 * - 78 - 68
----
-1628

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

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

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

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

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

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

query I rowsort
SELECT ALL ( + COALESCE ( 91, + 58 ) ) * 26
----
2366

query I rowsort
SELECT ALL 9 * 39
----
351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-393
SELECT - MAX( DISTINCT 59 ) * COALESCE ( - 57 + - COUNT( * ) * - 96, + 13 DIV + 59, - 66 ) - + 28 AS col1
----
-2329

skipif mysql # not compatible
query I rowsort label-393
SELECT - MAX ( DISTINCT 59 ) * COALESCE ( - 57 + - COUNT ( * ) * - 96, + 13 / + 59, - 66 ) - + 28 AS col1
----
-2329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-394
SELECT COALESCE ( - 56, - CASE 54 WHEN CASE 54 WHEN CAST( 0 AS SIGNED ) THEN - COUNT( * ) WHEN 88 THEN NULL END * - 36 THEN 62 ELSE 66 END )
----
-56

skipif mysql # not compatible
query I rowsort label-394
SELECT COALESCE ( - 56, - CASE 54 WHEN CASE 54 WHEN CAST ( 0 AS INTEGER ) THEN - COUNT ( * ) WHEN 88 THEN NULL END * - 36 THEN 62 ELSE 66 END )
----
-56

query I rowsort
SELECT + 44 * 21
----
924

query I rowsort
SELECT ALL COALESCE ( - 1, - 37 ) * - 81 AS col2
----
81

query I rowsort
SELECT - 55 * COALESCE ( 1, + 86, 52 )
----
-55

query I rowsort
SELECT DISTINCT + 1 * - 0 AS col2
----
0

query I rowsort
SELECT - NULLIF ( - ( - 37 ), - 46 * + 92 ) AS col1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-400
SELECT + 8 * ( 21 DIV 43 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-400
SELECT + 8 * ( 21 / 43 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-401
SELECT ALL - NULLIF ( - 45, + COALESCE ( - 93, + 7 * - 23 ) ) * - AVG ( ALL 5 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL - NULLIF ( - 45, + COALESCE ( - 93, + 7 * - 23 ) ) * - AVG ( ALL 5 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT MAX( + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-402
SELECT MAX ( + 62 )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-403
SELECT ALL 95 + ( - 4 ) DIV + 58 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL 95 + ( - 4 ) / + 58 AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-404
SELECT - 72 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-404
SELECT - 72 / 80
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-405
SELECT ALL CAST( + 89 AS SIGNED ) + + CASE - 41 - + 68 WHEN - 37 THEN 72 WHEN - COUNT( ALL - 4 ) * + 41 THEN - 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL CAST ( + 89 AS INTEGER ) + + CASE - 41 - + 68 WHEN - 37 THEN 72 WHEN - COUNT ( ALL - 4 ) * + 41 THEN - 23 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-406
SELECT DISTINCT CAST( NULL AS SIGNED ) / + ( 12 / - 52 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( 12 / - 52 ) col2
----
NULL

query I rowsort
SELECT + 65 - + 93 AS col0
----
-28

query I rowsort
SELECT ALL 36 * 59
----
2124

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT + COUNT( * ) + - 11 * + 83
----
-912

skipif mysql # not compatible
query I rowsort label-409
SELECT + COUNT ( * ) + - 11 * + 83
----
-912

query I rowsort
SELECT DISTINCT 71 + 2 AS col0
----
73

query I rowsort
SELECT ALL 29 + 43
----
72

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-413
SELECT ALL - CAST( + 52 AS SIGNED ) * 47 AS col2
----
-2444

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL - CAST ( + 52 AS INTEGER ) * 47 AS col2
----
-2444

query I rowsort
SELECT DISTINCT 0 - 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT ALL 5 - COUNT( - NULLIF ( + 27, + 47 ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL 5 - COUNT ( - NULLIF ( + 27, + 47 ) ) AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-416
SELECT CAST( COUNT( * ) AS SIGNED ) + - 6
----
-5

skipif mysql # not compatible
query I rowsort label-416
SELECT CAST ( COUNT ( * ) AS INTEGER ) + - 6
----
-5

query I rowsort
SELECT ALL ( 22 ) - 45
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT + - 32 DIV - ( - NULLIF ( - 73, - AVG ( 81 ) ) ) + - 75
----
-75

skipif mysql # not compatible
query I rowsort label-418
SELECT + - 32 / - ( - NULLIF ( - 73, - AVG ( 81 ) ) ) + - 75
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT SUM( - 59 ) * 52 AS col0
----
-3068

skipif mysql # not compatible
query I rowsort label-419
SELECT SUM ( - 59 ) * 52 AS col0
----
-3068

query I rowsort
SELECT 97 + 24 AS col1
----
121

query I rowsort
SELECT + 51 * 40 + 11 AS col2
----
2051

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT ALL + - NULLIF ( + MAX( ALL - 68 ), 26 ) - + 7 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-422
SELECT ALL + - NULLIF ( + MAX ( ALL - 68 ), 26 ) - + 7 AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-423
SELECT COUNT( * ) DIV - 25 + + 51 * 6
----
306

skipif mysql # not compatible
query I rowsort label-423
SELECT COUNT ( * ) / - 25 + + 51 * 6
----
306

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-424
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 94
----
NULL

query I rowsort
SELECT ALL + + 67 * 40
----
2680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-426
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN 59 * CAST( + 51 * 97 AS SIGNED ) THEN 80 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-426
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN 59 * CAST ( + 51 * 97 AS INTEGER ) THEN 80 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 6 * 5
----
30

query I rowsort
SELECT 54 * 17
----
918

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

query I rowsort
SELECT - 78 + 86 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT DISTINCT - + MAX( ALL 70 ) * 10
----
-700

skipif mysql # not compatible
query I rowsort label-431
SELECT DISTINCT - + MAX ( ALL 70 ) * 10
----
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT ALL - CASE + ( + CASE + 25 WHEN 64 THEN NULL WHEN ( - 69 ) - + 51 THEN NULL ELSE 32 END ) WHEN + 64 * 55 + COUNT( * ) THEN NULL WHEN 59 * 98 THEN - 97 * - 64 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL - CASE + ( + CASE + 25 WHEN 64 THEN NULL WHEN ( - 69 ) - + 51 THEN NULL ELSE 32 END ) WHEN + 64 * 55 + COUNT ( * ) THEN NULL WHEN 59 * 98 THEN - 97 * - 64 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT 6 * - ( 27 ) + - MAX( ALL 3 + + 13 ) col1
----
-178

skipif mysql # not compatible
query I rowsort label-433
SELECT 6 * - ( 27 ) + - MAX ( ALL 3 + + 13 ) col1
----
-178

query I rowsort
SELECT ALL + 15 * + - 70 * 57 AS col1
----
-59850

query I rowsort
SELECT 14 * + 83 AS col2
----
1162

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-437
SELECT ALL - 15 DIV - 80 * - 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL - 15 / - 80 * - 20 AS col0
----
0

query I rowsort
SELECT DISTINCT - ( 66 ) AS col2
----
-66

query I rowsort
SELECT DISTINCT 37 * + 28
----
1036

query I rowsort
SELECT ALL 96 + + 69
----
165

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

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

query I rowsort
SELECT DISTINCT + 70 + + + 2 + 16 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT COUNT( * ) * - 52 + + 61
----
9

skipif mysql # not compatible
query I rowsort label-443
SELECT COUNT ( * ) * - 52 + + 61
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL + MAX( + 54 ) + + 69 * 17 AS col0
----
1227

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL + MAX ( + 54 ) + + 69 * 17 AS col0
----
1227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-445
SELECT ALL + COALESCE ( - + COALESCE ( + 70, 99, AVG ( DISTINCT + 48 ) ), CASE - 85 WHEN AVG ( ALL + 10 ) THEN - CAST( NULL AS SIGNED ) WHEN + 21 + + 16 * COUNT( * ) THEN 70 + 66 END ) + 3 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL + COALESCE ( - + COALESCE ( + 70, 99, AVG ( DISTINCT + 48 ) ), CASE - 85 WHEN AVG ( ALL + 10 ) THEN - CAST ( NULL AS INTEGER ) WHEN + 21 + + 16 * COUNT ( * ) THEN 70 + 66 END ) + 3 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 29 + + 98 col2
----
127

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

skipif mysql # not compatible
query I rowsort label-447
SELECT 39 + - 44 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT COUNT( * ) - COALESCE ( - 39, - NULLIF ( - 90, 40 ), COUNT( * ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-448
SELECT COUNT ( * ) - COALESCE ( - 39, - NULLIF ( - 90, 40 ), COUNT ( * ) ) AS col0
----
40

query I rowsort
SELECT ALL 30 + - 82
----
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT DISTINCT - ( + MIN( 48 ) ) - COALESCE ( 92, - 48 * - 63 + COUNT( + 60 ) )
----
-140

skipif mysql # not compatible
query I rowsort label-451
SELECT DISTINCT - ( + MIN ( 48 ) ) - COALESCE ( 92, - 48 * - 63 + COUNT ( + 60 ) )
----
-140

query I rowsort
SELECT 67 * + 37 AS col2
----
2479

query I rowsort
SELECT ( + + CASE + 86 WHEN + 64 + 95 THEN - 89 ELSE + ( 44 ) END ) AS col1
----
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT - COUNT( * ) + - - COALESCE ( 51, NULLIF ( 99, + ( + COUNT( * ) ) ) ) * + 72 AS col1
----
3671

skipif mysql # not compatible
query I rowsort label-455
SELECT - COUNT ( * ) + - - COALESCE ( 51, NULLIF ( 99, + ( + COUNT ( * ) ) ) ) * + 72 AS col1
----
3671

query I rowsort
SELECT - ( + 42 ) * 85
----
-3570

onlyif mysql # DIV for integer division: 
query I rowsort label-457
SELECT ALL - 62 DIV - - ( 35 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL - 62 / - - ( 35 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-458
SELECT 64 DIV + + 66 * + ( + 79 )
----
0

skipif mysql # not compatible
query I rowsort label-458
SELECT 64 / + + 66 * + ( + 79 )
----
0

query I rowsort
SELECT DISTINCT 34 * ( 44 ) + 34 AS col0
----
1530

onlyif mysql # DIV for integer division: 
query I rowsort label-460
SELECT ALL + 18 DIV 76 * 54
----
0

skipif mysql # not compatible
query I rowsort label-460
SELECT ALL + 18 / 76 * 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT 12 * + MIN( + 59 ) * 57
----
40356

skipif mysql # not compatible
query I rowsort label-461
SELECT 12 * + MIN ( + 59 ) * 57
----
40356

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL COUNT( ALL - 76 ) * + 11
----
11

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL COUNT ( ALL - 76 ) * + 11
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-463
SELECT 43 DIV COUNT( * ) - + 26
----
17

skipif mysql # not compatible
query I rowsort label-463
SELECT 43 / COUNT ( * ) - + 26
----
17

query I rowsort
SELECT DISTINCT + 69 * + + ( - 55 ) AS col1
----
-3795

query I rowsort
SELECT 92 + - 44 * 94
----
-4044

query I rowsort
SELECT DISTINCT ( - + 6 ) * + 11
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT 12 * + 79 * + 65 - 70 * + COUNT( * ) AS col1
----
61550

skipif mysql # not compatible
query I rowsort label-467
SELECT 12 * + 79 * + 65 - 70 * + COUNT ( * ) AS col1
----
61550

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT ALL + MAX( 12 ) + - 32
----
-20

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL + MAX ( 12 ) + - 32
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT + 19 * - COUNT( * ) - ( 33 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-469
SELECT + 19 * - COUNT ( * ) - ( 33 ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL - 11 + + 88 - + 49 * + NULLIF ( + COUNT( * ), - ( 56 ) )
----
28

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL - 11 + + 88 - + 49 * + NULLIF ( + COUNT ( * ), - ( 56 ) )
----
28

query I rowsort
SELECT 6 * - 30 - 71 AS col2
----
-251

query I rowsort
SELECT 14 * 65 * + 77 AS col1
----
70070

query I rowsort
SELECT DISTINCT 38 + - - 91
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-474
SELECT DISTINCT - COALESCE ( + + COUNT( + 9 ), + 28 - - ( 21 + 71 * + CASE + 60 WHEN - MAX( DISTINCT - 60 ) THEN NULL WHEN - 4 / + 26 THEN NULL ELSE 70 END ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT - COALESCE ( + + COUNT ( + 9 ), + 28 - - ( 21 + 71 * + CASE + 60 WHEN - MAX ( DISTINCT - 60 ) THEN NULL WHEN - 4 / + 26 THEN NULL ELSE 70 END ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 75 + - 27 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT DISTINCT NULLIF ( - 13, - COALESCE ( - 94, - 43 * 72 ) ) + - COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT NULLIF ( - 13, - COALESCE ( - 94, - 43 * 72 ) ) + - COUNT ( * ) AS col2
----
-14

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

skipif mysql # not compatible
query I rowsort label-477
SELECT - COUNT ( * ) * + 23 + - 34 AS col0
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT 57 * MAX( 43 ) / - 54 - CASE 61 + MIN( + 23 + 63 ) WHEN - COUNT( * ) THEN 16 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-479
SELECT 57 * MAX ( 43 ) / - 54 - CASE 61 + MIN ( + 23 + 63 ) WHEN - COUNT ( * ) THEN 16 END col0
----
NULL

query I rowsort
SELECT ALL - ( - + 55 ) * - 47 * 59 col2
----
-152515

query I rowsort
SELECT ALL + 57 + + + 1
----
58

query I rowsort
SELECT 33 + - 83
----
-50

query I rowsort
SELECT DISTINCT - 94 + 29 + + + 30 * + 22
----
595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-484
SELECT 57 * + 68 + - ( - 18 ) + - 44 DIV COUNT( * ) AS col2
----
3850

skipif mysql # not compatible
query I rowsort label-484
SELECT 57 * + 68 + - ( - 18 ) + - 44 / COUNT ( * ) AS col2
----
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT ALL CASE AVG ( ALL 55 ) WHEN 64 THEN NULL WHEN 82 * - ( + 89 ) THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL CASE AVG ( ALL 55 ) WHEN 64 THEN NULL WHEN 82 * - ( + 89 ) THEN COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT - 82 + 89 AS col2
----
7

query I rowsort
SELECT DISTINCT + 76 - ( 49 ) * + 74 col1
----
-3550

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT + MIN( + 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-488
SELECT + MIN ( + 85 ) AS col0
----
85

query I rowsort
SELECT - - 61 - 6 + CASE CASE - 78 WHEN + 81 THEN - 55 * - 82 END WHEN + 54 THEN 88 + + 6 END * + 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-490
SELECT - 35 AS col2, MIN( - 71 ) AS col0
----
-35
-71

skipif mysql # not compatible
query II rowsort label-490
SELECT - 35 AS col2, MIN ( - 71 ) AS col0
----
-35
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT - + ( + COUNT( * ) ) + 23 + 71
----
93

skipif mysql # not compatible
query I rowsort label-491
SELECT - + ( + COUNT ( * ) ) + 23 + 71
----
93

query I rowsort
SELECT - + 28 * + - 43 AS col2
----
1204

query I rowsort
SELECT + + 22 * - - 63 * 44
----
60984

query I rowsort
SELECT ALL 23 * + 32 AS col2
----
736

query I rowsort
SELECT - 11 * + - ( + ( + 12 ) )
----
132

query I rowsort
SELECT + + 45 - + 99 + + 14 * + 33 AS col2
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT - CASE WHEN NOT ( 94 ) BETWEEN ( NULL ) AND AVG ( 22 ) THEN COUNT( * ) ELSE 28 * - 6 END + + COUNT( 84 )
----
0

skipif mysql # not compatible
query I rowsort label-497
SELECT - CASE WHEN NOT ( 94 ) BETWEEN ( NULL ) AND AVG ( 22 ) THEN COUNT ( * ) ELSE 28 * - 6 END + + COUNT ( 84 )
----
0

query I rowsort
SELECT + - 70 - + - 65 AS col2
----
-5

query I rowsort
SELECT + ( + 71 ) AS col1
----
71

query I rowsort
SELECT - - 1 * + + CASE + 16 WHEN 31 THEN NULL WHEN 75 THEN NULL ELSE 98 END
----
98

query I rowsort
SELECT + + 95 + + - 71 + - - 54 AS col0
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT COALESCE ( - COUNT( * ), + 94 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-503
SELECT COALESCE ( - COUNT ( * ), + 94 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-504
SELECT ALL - 51 * + - COUNT( * ) * 18 DIV 6 + 8
----
161

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL - 51 * + - COUNT ( * ) * 18 / 6 + 8
----
161

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

skipif mysql # not compatible
query I rowsort label-505
SELECT - - CAST ( NULL AS REAL ) + 56 AS col0
----
NULL

query I rowsort
SELECT + 13 + + 43 + - - 69 + 10 col2
----
135

query I rowsort
SELECT ALL 52 * ( + + 81 ) * 58 + 64
----
244360

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT ALL + + 73 * + 53 * - - COUNT( * ) + 36 * CASE 35 + - 69 WHEN - 60 THEN 62 / NULLIF ( 35, - 91 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL + + 73 * + 53 * - - COUNT ( * ) + 36 * CASE 35 + - 69 WHEN - 60 THEN 62 / NULLIF ( 35, - 91 ) END AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( 68, + 97 ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-510
SELECT ALL + 88 * - CAST( NULL AS SIGNED ) + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL + 88 * - CAST ( NULL AS INTEGER ) + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT + 85 * + MIN( ALL + - 18 ) * 99
----
-151470

skipif mysql # not compatible
query I rowsort label-511
SELECT + 85 * + MIN ( ALL + - 18 ) * 99
----
-151470

query I rowsort
SELECT - 96 + + - 10 + + 53 * 13 - + 23 * + 77 AS col1
----
-1188

query I rowsort
SELECT + 55 * - 26 * + 57 AS col1
----
-81510

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT + 61 + + 14 * + COUNT( - 25 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-514
SELECT + 61 + + 14 * + COUNT ( - 25 ) AS col0
----
75

query I rowsort
SELECT ALL 67 * + - 73
----
-4891

query I rowsort
SELECT CASE - 63 WHEN + AVG ( ALL - 35 ) * 26 THEN NULL WHEN 35 THEN ( 61 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-517
SELECT DISTINCT + 5 * - 57 * + COUNT( * ) * + - 13 + NULLIF ( CAST( NULL AS DECIMAL ), 27 * + 6 - 71 ) * - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT + 5 * - 57 * + COUNT ( * ) * + - 13 + NULLIF ( CAST ( NULL AS REAL ), 27 * + 6 - 71 ) * - 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT + CASE + 2 WHEN - 38 / - + 39 / - 21 THEN + 97 - 45 * ( + SUM( DISTINCT + 64 ) ) ELSE + 24 END
----
24

skipif mysql # not compatible
query I rowsort label-518
SELECT + CASE + 2 WHEN - 38 / - + 39 / - 21 THEN + 97 - 45 * ( + SUM ( DISTINCT + 64 ) ) ELSE + 24 END
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-519
SELECT CASE - ( 83 ) WHEN - NULLIF ( MAX( - 62 ), 85 + + 94 ) * 2 THEN NULL WHEN - 42 + 57 THEN NULL ELSE COUNT( * ) + 91 DIV 60 END AS col0
----
2

skipif mysql # not compatible
query I rowsort label-519
SELECT CASE - ( 83 ) WHEN - NULLIF ( MAX ( - 62 ), 85 + + 94 ) * 2 THEN NULL WHEN - 42 + 57 THEN NULL ELSE COUNT ( * ) + 91 / 60 END AS col0
----
2

query I rowsort
SELECT 62 * + - 32 + 43 AS col0
----
-1941

query I rowsort
SELECT ALL - 72 * 32 - - NULLIF ( - 6, 93 )
----
-2310

query II rowsort
SELECT + 25 * + 97 AS col2, - 49
----
2425
-49

query I rowsort
SELECT 80 * + 64 + - + 67
----
5053

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT ALL + 95 * COALESCE ( + 76, MAX( + 16 ) + - 58, SUM( ALL 12 ) ) - - 64 AS col0
----
7284

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL + 95 * COALESCE ( + 76, MAX ( + 16 ) + - 58, SUM ( ALL 12 ) ) - - 64 AS col0
----
7284

query I rowsort
SELECT + 95 * - - 20 * - 34 AS col2
----
-64600

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT ALL - 81 * - COUNT( * ) * 73 * - 86
----
-508518

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL - 81 * - COUNT ( * ) * 73 * - 86
----
-508518

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-527
SELECT ALL 36 * - - CAST( NULL AS SIGNED ) - - - CAST( NULL AS DECIMAL ) * + NULLIF ( 1, ( - ( 87 ) ) + + 36 ) + 48 * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL 36 * - - CAST ( NULL AS INTEGER ) - - - CAST ( NULL AS REAL ) * + NULLIF ( 1, ( - ( 87 ) ) + + 36 ) + 48 * - 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-528
SELECT COUNT( CAST( NULL AS SIGNED ) ) AS col0, 33 DIV + 31 AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-528
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) AS col0, 33 / + 31 AS col2
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-529
SELECT + CAST( + COUNT( * ) AS SIGNED ) * + - 20 + + 72 + 43 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-529
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * + - 20 + + 72 + 43 AS col1
----
95

query I rowsort
SELECT ALL 53 * + 82
----
4346

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT + 59 * + SUM( - - CASE + 93 WHEN 73 THEN - 3 + 84 ELSE - 60 END )
----
-3540

skipif mysql # not compatible
query I rowsort label-531
SELECT + 59 * + SUM ( - - CASE + 93 WHEN 73 THEN - 3 + 84 ELSE - 60 END )
----
-3540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-532
SELECT ALL 71 * - 47 DIV SUM( - 98 ) DIV 51 col2
----
0

skipif mysql # not compatible
query I rowsort label-532
SELECT ALL 71 * - 47 / SUM ( - 98 ) / 51 col2
----
0

query I rowsort
SELECT + 54 + - - 73
----
127

query I rowsort
SELECT ALL 28 * - + 66 + 85 * + + 49 * - 59
----
-247583

query I rowsort
SELECT DISTINCT - NULLIF ( - - 87, + 81 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-536
SELECT - CAST( + + NULLIF ( + ( 88 ), COUNT( * ) ) AS SIGNED ) / + CASE - 41 WHEN + COUNT( * ) THEN 83 WHEN 23 THEN NULL WHEN 39 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-536
SELECT - CAST ( + + NULLIF ( + ( 88 ), COUNT ( * ) ) AS INTEGER ) / + CASE - 41 WHEN + COUNT ( * ) THEN 83 WHEN 23 THEN NULL WHEN 39 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT ALL + + 27 + - COUNT( * ) + 94 + - + 79 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL + + 27 + - COUNT ( * ) + 94 + - + 79 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT - - 74 + COUNT( * ) + - - 32 - + MIN( ALL - ( 27 ) ) AS col1
----
134

skipif mysql # not compatible
query I rowsort label-538
SELECT - - 74 + COUNT ( * ) + - - 32 - + MIN ( ALL - ( 27 ) ) AS col1
----
134

query I rowsort
SELECT - + 99 + 92 + - 16 col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-540
SELECT ALL + - SUM( - 77 ) DIV + + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL + - SUM ( - 77 ) / + + 82 AS col1
----
0

query I rowsort
SELECT - - 24 + - ( + 72 ) + - + 90
----
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-542
SELECT ALL - - 48 + - 26 DIV - + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL - - 48 + - 26 / - + COUNT ( * ) AS col2
----
74

query I rowsort
SELECT DISTINCT + - 85 + + - 6
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-544
SELECT DISTINCT - 28 * 66 AS col2, - COUNT( * ) * + 95
----
-1848
-95

skipif mysql # not compatible
query II rowsort label-544
SELECT DISTINCT - 28 * 66 AS col2, - COUNT ( * ) * + 95
----
-1848
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-545
SELECT ALL - - COUNT( DISTINCT + ( + - 34 ) ) * + ( COALESCE ( + CASE 83 WHEN + 86 - - CAST( + 58 AS SIGNED ) THEN 65 ELSE NULL END, 87 + + 26, 18 ) ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL - - COUNT ( DISTINCT + ( + - 34 ) ) * + ( COALESCE ( + CASE 83 WHEN + 86 - - CAST ( + 58 AS INTEGER ) THEN 65 ELSE NULL END, 87 + + 26, 18 ) ) AS col2
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-546
SELECT ALL - + ( COALESCE ( - 72, - CASE NULLIF ( + 48, 52 ) WHEN 54 * NULLIF ( 6, + 7 * 58 + + 14 ) THEN NULL WHEN ( - 25 ) THEN - 3 + 84 ELSE 19 END + COUNT( * ) ) ) + - 31 * CAST( 86 AS SIGNED ) col1
----
-2594

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL - + ( COALESCE ( - 72, - CASE NULLIF ( + 48, 52 ) WHEN 54 * NULLIF ( 6, + 7 * 58 + + 14 ) THEN NULL WHEN ( - 25 ) THEN - 3 + 84 ELSE 19 END + COUNT ( * ) ) ) + - 31 * CAST ( 86 AS INTEGER ) col1
----
-2594

query I rowsort
SELECT ALL + CASE + - ( + ( + 95 ) ) WHEN - 61 / 21 THEN NULL WHEN ( + 90 ) THEN NULL ELSE 91 END
----
91

query I rowsort
SELECT + 61 * + - 33
----
-2013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-549
SELECT CAST( - - 56 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-549
SELECT CAST ( - - 56 AS INTEGER )
----
56

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-551
SELECT ALL ( 91 ) DIV 66
----
1

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL ( 91 ) / 66
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT - 21 * + 40 * - 8 - - COUNT( * ) + + 77 AS col2
----
6798

skipif mysql # not compatible
query I rowsort label-552
SELECT - 21 * + 40 * - 8 - - COUNT ( * ) + + 77 AS col2
----
6798

onlyif mysql # DIV for integer division: 
query I rowsort label-553
SELECT ALL 37 DIV - + 24
----
-1

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL 37 / - + 24
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT DISTINCT - ( - MAX( DISTINCT + - 37 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT - ( - MAX ( DISTINCT + - 37 ) )
----
-37

query I rowsort
SELECT DISTINCT 72 * - 16
----
-1152

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-556
SELECT ALL + CAST( - + COALESCE ( + + ( + CAST( NULL AS SIGNED ) ), - 98 * - CAST( NULL AS SIGNED ) + 63, NULLIF ( - 59, - 34 ) - 87 ) AS SIGNED ) DIV 67
----
2

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL + CAST ( - + COALESCE ( + + ( + CAST ( NULL AS INTEGER ) ), - 98 * - CAST ( NULL AS INTEGER ) + 63, NULLIF ( - 59, - 34 ) - 87 ) AS INTEGER ) / 67
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT DISTINCT - MIN( + 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT - MIN ( + 44 ) AS col1
----
-44

query II rowsort
SELECT ALL - 32 col0, + 60
----
-32
60

query I rowsort
SELECT 68 * + 5 AS col1
----
340

query II rowsort
SELECT + 38, 70 AS col1
----
38
70

onlyif mysql # aggregate syntax: 
query II rowsort label-561
SELECT 76, - ( + + CASE - + 9 WHEN 71 - 76 / 98 THEN MIN( - ( - 77 ) ) ELSE 4 + 20 * 71 END ) AS col0
----
76
-1424

skipif mysql # not compatible
query II rowsort label-561
SELECT 76, - ( + + CASE - + 9 WHEN 71 - 76 / 98 THEN MIN ( - ( - 77 ) ) ELSE 4 + 20 * 71 END ) AS col0
----
76
-1424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-562
SELECT + CASE + + 81 WHEN + - 8 THEN NULL WHEN + - COUNT( DISTINCT + 58 ) THEN 85 * + 78 WHEN CAST( + ( COUNT( * ) ) AS SIGNED ) THEN NULL END * 6 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-562
SELECT + CASE + + 81 WHEN + - 8 THEN NULL WHEN + - COUNT ( DISTINCT + 58 ) THEN 85 * + 78 WHEN CAST ( + ( COUNT ( * ) ) AS INTEGER ) THEN NULL END * 6 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-563
SELECT CAST( - - 55 AS SIGNED ) * - 91
----
-5005

skipif mysql # not compatible
query I rowsort label-563
SELECT CAST ( - - 55 AS INTEGER ) * - 91
----
-5005

query I rowsort
SELECT 58 * + 40 * 29 AS col0
----
67280

query I rowsort
SELECT 67 + - 4 + - 88 AS col1
----
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT ALL + COUNT( + 23 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL + COUNT ( + 23 ) AS col1
----
1

query I rowsort
SELECT ALL NULLIF ( + 36, 60 ) AS col1
----
36

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

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

query I rowsort
SELECT ALL - + 88 + - 17 + + 28
----
-77

query I rowsort
SELECT ALL + + 25 * + 85 + 20
----
2145

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT CASE + 93 WHEN + MAX( DISTINCT 58 ) * - COALESCE ( 51, 1, 1 + - 39, CASE + 45 WHEN + 8 THEN NULL WHEN + 44 THEN + 97 ELSE 76 END ) - + 48 THEN NULL WHEN NULLIF ( 93, + AVG ( 30 ) ) + 21 * - COUNT( * ) THEN 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-572
SELECT CASE + 93 WHEN + MAX ( DISTINCT 58 ) * - COALESCE ( 51, 1, 1 + - 39, CASE + 45 WHEN + 8 THEN NULL WHEN + 44 THEN + 97 ELSE 76 END ) - + 48 THEN NULL WHEN NULLIF ( 93, + AVG ( 30 ) ) + 21 * - COUNT ( * ) THEN 74 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT 97 + 41 AS col0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT - 2 * - CASE - - 22 WHEN 63 - - COUNT( * ) THEN - 18 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-575
SELECT - 2 * - CASE - - 22 WHEN 63 - - COUNT ( * ) THEN - 18 END AS col2
----
NULL

query I rowsort
SELECT ALL 85 + 90 + 4 * - 49 col0
----
-21

query I rowsort
SELECT - ( - 21 ) + 25 * 40 + 45 + 46
----
1112

onlyif mysql # aggregate syntax: 
query II rowsort label-578
SELECT - 68 + - 8 - + COUNT( * ) AS col1, + 82 AS col2
----
-77
82

skipif mysql # not compatible
query II rowsort label-578
SELECT - 68 + - 8 - + COUNT ( * ) AS col1, + 82 AS col2
----
-77
82

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

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

query I rowsort
SELECT ALL + 87 + + - ( - 4 )
----
91

query I rowsort
SELECT + 95 + - 72
----
23

query I rowsort
SELECT ALL + - 8 + ( - - 49 ) * + 21 AS col1
----
1021

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

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

query I rowsort
SELECT ALL - 32 + - 64 AS col1
----
-96

query I rowsort
SELECT - 18 - + + 21 AS col1
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-586
SELECT ALL - - ( 92 ) DIV + + 42 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - - ( 92 ) / + + 42 AS col0
----
2

query I rowsort
SELECT 36 + 93 + + - 22 col2
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-588
SELECT - NULLIF ( + + 84, + ( + ( + + 20 ) ) * + 24 + COUNT( * ) + + 16 * 52 ) / - CAST( NULL AS SIGNED ) + + 43 * - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-588
SELECT - NULLIF ( + + 84, + ( + ( + + 20 ) ) * + 24 + COUNT ( * ) + + 16 * 52 ) / - CAST ( NULL AS INTEGER ) + + 43 * - 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT 33 + MIN( + 25 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-589
SELECT 33 + MIN ( + 25 ) AS col2
----
58

query I rowsort
SELECT ALL + 98 * - ( - 54 ) AS col1
----
5292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-591
SELECT - 54 * COUNT( * ) + - 49 DIV - - 73
----
-54

skipif mysql # not compatible
query I rowsort label-591
SELECT - 54 * COUNT ( * ) + - 49 / - - 73
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-592
SELECT 49 * 61 DIV 83
----
36

skipif mysql # not compatible
query I rowsort label-592
SELECT 49 * 61 / 83
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT SUM( ALL - ( + 83 ) ) * 25 + 91 + + + 96 AS col2
----
-1888

skipif mysql # not compatible
query I rowsort label-593
SELECT SUM ( ALL - ( + 83 ) ) * 25 + 91 + + + 96 AS col2
----
-1888

query II rowsort
SELECT ALL - 32 col2, + 51
----
-32
51

onlyif mysql # DIV for integer division: 
query I rowsort label-595
SELECT + 4 DIV + 98 + - 24 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-595
SELECT + 4 / + 98 + - 24 AS col0
----
-24

query I rowsort
SELECT 39 * + 60 * - + 86 AS col0
----
-201240

query II rowsort
SELECT + 33, 36 - - 70 AS col1
----
33
106

onlyif mysql # aggregate syntax: 
query II rowsort label-598
SELECT 53, + COUNT( ALL + 3 ) + - - 32 * COUNT( * ) AS col0
----
53
33

skipif mysql # not compatible
query II rowsort label-598
SELECT 53, + COUNT ( ALL + 3 ) + - - 32 * COUNT ( * ) AS col0
----
53
33

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT CASE 69 WHEN + ( + 27 ) THEN NULL ELSE - + 90 * + 32 + 19 END * ( 64 * + COUNT( * ) - SUM( DISTINCT - 92 ) * 76 ) AS col0
----
-20187216

skipif mysql # not compatible
query I rowsort label-599
SELECT CASE 69 WHEN + ( + 27 ) THEN NULL ELSE - + 90 * + 32 + 19 END * ( 64 * + COUNT ( * ) - SUM ( DISTINCT - 92 ) * 76 ) AS col0
----
-20187216

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT 54 * + 51 * + MIN( ALL + 54 ) + + COUNT( * ) AS col2
----
148717

skipif mysql # not compatible
query I rowsort label-600
SELECT 54 * + 51 * + MIN ( ALL + 54 ) + + COUNT ( * ) AS col2
----
148717

onlyif mysql # DIV for integer division: 
query I rowsort label-601
SELECT 83 DIV - 78
----
-1

skipif mysql # not compatible
query I rowsort label-601
SELECT 83 / - 78
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-602
SELECT ALL + CAST( - 65 AS SIGNED ) * + + 59 * + - 11 * - 64 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL + CAST ( - 65 AS INTEGER ) * + + 59 * + - 11 * - 64 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 35 - + NULLIF ( 42, + 41 ) + + 18
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-604
SELECT - COUNT( * ) DIV + CAST( + - 77 AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-604
SELECT - COUNT ( * ) / + CAST ( + - 77 AS INTEGER ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT DISTINCT + MIN( + 48 ) + 26 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-605
SELECT DISTINCT + MIN ( + 48 ) + 26 AS col0
----
74

query II rowsort
SELECT - 10, - 23 + + 58 col1
----
-10
35

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT - 99 + + COUNT( * ) * - 75
----
-174

skipif mysql # not compatible
query I rowsort label-607
SELECT - 99 + + COUNT ( * ) * - 75
----
-174

query I rowsort
SELECT ALL - ( + - 41 ) + + ( 96 ) col1
----
137

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

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT - CASE - 82 WHEN 50 THEN NULL WHEN - 45 * - 37 + 63 THEN + COUNT( * ) ELSE 0 + - 46 END
----
46

skipif mysql # not compatible
query I rowsort label-610
SELECT - CASE - 82 WHEN 50 THEN NULL WHEN - 45 * - 37 + 63 THEN + COUNT ( * ) ELSE 0 + - 46 END
----
46

query II rowsort
SELECT ALL 33 AS col2, - 54 AS col1
----
33
-54

query I rowsort
SELECT + 66 * + 74 AS col0
----
4884

query I rowsort
SELECT ALL + + 64 + 37 - + - 28 col0
----
129

query II rowsort
SELECT DISTINCT 0 AS col0, + 53 * + - 20 * 23 AS col1
----
0
-24380

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT ALL 19 + - COUNT( - - 84 )
----
18

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL 19 + - COUNT ( - - 84 )
----
18

query I rowsort
SELECT ALL - 78 * + 27
----
-2106

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-618
SELECT - COALESCE ( - - 38, + + 92 ) + + COALESCE ( + + ( 67 ), 94 * 0 + COALESCE ( - CAST( + 68 AS SIGNED ), - SUM( + 58 ) + 99 ), - 67 * - 36 )
----
29

skipif mysql # not compatible
query I rowsort label-618
SELECT - COALESCE ( - - 38, + + 92 ) + + COALESCE ( + + ( 67 ), 94 * 0 + COALESCE ( - CAST ( + 68 AS INTEGER ), - SUM ( + 58 ) + 99 ), - 67 * - 36 )
----
29

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

skipif mysql # not compatible
query II rowsort label-619
SELECT 26, COUNT ( + 29 ) AS col1
----
26
1

onlyif mysql # DIV for integer division: 
query I rowsort label-620
SELECT - 15 + - 7 DIV 18
----
-15

skipif mysql # not compatible
query I rowsort label-620
SELECT - 15 + - 7 / 18
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT - - SUM( DISTINCT + 29 ) * 31
----
899

skipif mysql # not compatible
query I rowsort label-621
SELECT - - SUM ( DISTINCT + 29 ) * 31
----
899

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT DISTINCT 61 * + + COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT 61 * + + COUNT ( * ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT - NULLIF ( - COALESCE ( - + 44, + 8 + + - 23, + 42 ), + + COUNT( * ) * 0 )
----
-44

skipif mysql # not compatible
query I rowsort label-623
SELECT - NULLIF ( - COALESCE ( - + 44, + 8 + + - 23, + 42 ), + + COUNT ( * ) * 0 )
----
-44

query I rowsort
SELECT ALL 8 * + - 60 AS col2
----
-480

query I rowsort
SELECT + 20 * 49
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT ALL MAX( DISTINCT 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL MAX ( DISTINCT 79 ) AS col2
----
79

query I rowsort
SELECT COALESCE ( - 11, + - 87 + - 31 - + 15 * - + 46 )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT + 84 DIV + 82 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-628
SELECT + 84 / + 82 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT + COUNT( * ) + + + 99
----
100

skipif mysql # not compatible
query I rowsort label-629
SELECT + COUNT ( * ) + + + 99
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT + MIN( ALL 19 ) * + - 36 * - COUNT( * ) * + 28 * - 9
----
-172368

skipif mysql # not compatible
query I rowsort label-630
SELECT + MIN ( ALL 19 ) * + - 36 * - COUNT ( * ) * + 28 * - 9
----
-172368

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT - ( + + 17 ) * COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-631
SELECT - ( + + 17 ) * COUNT ( * ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT - 24 * - CASE + 95 WHEN - + 88 THEN NULL WHEN CASE - COALESCE ( + + 89, ( + 99 ) * - 12 + 42 ) WHEN 13 * 85 THEN + 19 ELSE NULL END * 24 + - CASE 41 WHEN + 61 THEN 22 WHEN - 66 THEN NULLIF ( - COUNT( 49 ), - 21 - COALESCE ( + 77, - NULLIF ( - 40, - ( 92 ) ) ) ) END THEN - SUM( 28 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-632
SELECT - 24 * - CASE + 95 WHEN - + 88 THEN NULL WHEN CASE - COALESCE ( + + 89, ( + 99 ) * - 12 + 42 ) WHEN 13 * 85 THEN + 19 ELSE NULL END * 24 + - CASE 41 WHEN + 61 THEN 22 WHEN - 66 THEN NULLIF ( - COUNT ( 49 ), - 21 - COALESCE ( + 77, - NULLIF ( - 40, - ( 92 ) ) ) ) END THEN - SUM ( 28 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-633
SELECT ALL - 31 DIV - 91, MIN( + 61 ) col0
----
0
61

skipif mysql # not compatible
query II rowsort label-633
SELECT ALL - 31 / - 91, MIN ( + 61 ) col0
----
0
61

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT CASE - 77 WHEN MIN( ALL + 77 ) THEN NULL WHEN + - COUNT( * ) * 0 * - ( - 47 ) + - 68 THEN - 95 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT CASE - 77 WHEN MIN ( ALL + 77 ) THEN NULL WHEN + - COUNT ( * ) * 0 * - ( - 47 ) + - 68 THEN - 95 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL - 22 * + - 8 AS col1
----
176

query I rowsort
SELECT DISTINCT + 3 * 75 * - 57 + 26 AS col0
----
-12799

query I rowsort
SELECT ALL + 59 * - - 60 AS col0
----
3540

onlyif mysql # DIV for integer division: 
query I rowsort label-639
SELECT ( - 46 ) DIV + - 54 + 42
----
42

skipif mysql # not compatible
query I rowsort label-639
SELECT ( - 46 ) / + - 54 + 42
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-640
SELECT DISTINCT + COALESCE ( COUNT( * ), - CAST( - + 83 AS SIGNED ), CAST( + - 61 AS SIGNED ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-640
SELECT DISTINCT + COALESCE ( COUNT ( * ), - CAST ( - + 83 AS INTEGER ), CAST ( + - 61 AS INTEGER ) ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-641
SELECT - CAST( + + 32 AS SIGNED ) + - CAST( + + 38 AS SIGNED ) + + 69 + - + 54 * ( + 15 ) + 79 AS col1
----
-732

skipif mysql # not compatible
query I rowsort label-641
SELECT - CAST ( + + 32 AS INTEGER ) + - CAST ( + + 38 AS INTEGER ) + + 69 + - + 54 * ( + 15 ) + 79 AS col1
----
-732

query I rowsort
SELECT ALL + 32 * + 2 + - 75
----
-11

query I rowsort
SELECT NULLIF ( 66, + 45 ) col1
----
66

query I rowsort
SELECT ALL - 59 * 70 AS col1
----
-4130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-645
SELECT ALL 5 * + - 29 * - 58 + + 8 DIV - - ( - - 12 ) + - ( COUNT( * ) ) * 97 AS col2
----
8313

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL 5 * + - 29 * - 58 + + 8 / - - ( - - 12 ) + - ( COUNT ( * ) ) * 97 AS col2
----
8313

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT + 46 * + COUNT( * ) + + 67 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-646
SELECT + 46 * + COUNT ( * ) + + 67 AS col2
----
113

query II rowsort
SELECT - ( + + 22 ) AS col0, 88 AS col0
----
-22
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-648
SELECT + + COALESCE ( - CASE 4 WHEN + 20 * 36 + - + ( - CAST( + AVG ( DISTINCT + 29 ) AS SIGNED ) ) THEN - 19 END, - ( + 26 ), 97 + + 42 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-648
SELECT + + COALESCE ( - CASE 4 WHEN + 20 * 36 + - + ( - CAST ( + AVG ( DISTINCT + 29 ) AS INTEGER ) ) THEN - 19 END, - ( + 26 ), 97 + + 42 ) AS col2
----
-26

query I rowsort
SELECT ALL - - 94 * + - 50 + - 60 col2
----
-4760

query I rowsort
SELECT DISTINCT 12 * + 62 + 1 * - + 53 + + 31
----
722

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-651
SELECT DISTINCT + + CAST( + 41 AS SIGNED ) * + + CAST( + 51 AS SIGNED ) * + 81 * - - COALESCE ( - 81, 56, - 15 DIV 36 ) + + 41
----
-13719010

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT + + CAST ( + 41 AS INTEGER ) * + + CAST ( + 51 AS INTEGER ) * + 81 * - - COALESCE ( - 81, 56, - 15 / 36 ) + + 41
----
-13719010

query I rowsort
SELECT ALL 3 - - 13
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT ALL NULLIF ( + - 95, - 31 ) * + - 46 + - COUNT( * ) + - 48 AS col0
----
4321

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL NULLIF ( + - 95, - 31 ) * + - 46 + - COUNT ( * ) + - 48 AS col0
----
4321

query I rowsort
SELECT - 77 * 47 * - 37 AS col2
----
133903

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT + - 85 DIV + 34 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-655
SELECT + - 85 / + 34 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-656
SELECT - + 16 + CAST( NULLIF ( + NULLIF ( + + 59, - MAX( DISTINCT - 73 ) * + 20 ), + COALESCE ( 27, 37 ) ) AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-656
SELECT - + 16 + CAST ( NULLIF ( + NULLIF ( + + 59, - MAX ( DISTINCT - 73 ) * + 20 ), + COALESCE ( 27, 37 ) ) AS INTEGER )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-657
SELECT ALL 74 * COUNT( * ) + - CAST( NULL AS SIGNED ) / 13 + - CASE 44 WHEN - 38 THEN NULL ELSE 45 END * + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL 74 * COUNT ( * ) + - CAST ( NULL AS INTEGER ) / 13 + - CASE 44 WHEN - 38 THEN NULL ELSE 45 END * + 14 AS col1
----
NULL

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

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

query II rowsort
SELECT - + 66 * - - 43 col1, - 16 AS col2
----
-2838
-16

query I rowsort
SELECT - 66 + 34 AS col1
----
-32

query II rowsort
SELECT + 2 + + 74 + - + 86 AS col1, 13
----
-10
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-662
SELECT DISTINCT CAST( NULL AS DECIMAL ), - MAX( COALESCE ( + 78, + 72 ) ) AS col0
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-662
SELECT DISTINCT CAST ( NULL AS REAL ), - MAX ( COALESCE ( + 78, + 72 ) ) AS col0
----
NULL
-78

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT ALL 11, + 82 * - COUNT( * ) AS col2
----
11
-82

skipif mysql # not compatible
query II rowsort label-664
SELECT ALL 11, + 82 * - COUNT ( * ) AS col2
----
11
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT - COALESCE ( CASE - 22 WHEN - - 34 THEN NULL ELSE CASE + - 30 WHEN 62 THEN + COALESCE ( + COALESCE ( 76, - 55 + - 4 ), 80 * COUNT( * ) ) WHEN 55 THEN NULL WHEN - 52 THEN NULL END * + 89 + 54 END, 97 + 17 * 0 ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-665
SELECT - COALESCE ( CASE - 22 WHEN - - 34 THEN NULL ELSE CASE + - 30 WHEN 62 THEN + COALESCE ( + COALESCE ( 76, - 55 + - 4 ), 80 * COUNT ( * ) ) WHEN 55 THEN NULL WHEN - 52 THEN NULL END * + 89 + 54 END, 97 + 17 * 0 ) col2
----
-97

query I rowsort
SELECT DISTINCT 8 * + 56 col1
----
448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-667
SELECT - 66 + + 42 * - - CAST( NULL AS SIGNED ), 73 * + COUNT( * ) + + 58 AS col1
----
NULL
131

skipif mysql # not compatible
query II rowsort label-667
SELECT - 66 + + 42 * - - CAST ( NULL AS INTEGER ), 73 * + COUNT ( * ) + + 58 AS col1
----
NULL
131

query I rowsort
SELECT + 43 * 86 AS col1
----
3698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-669
SELECT + 48 + COUNT( * ) * + 98 DIV 65 + + 75
----
124

skipif mysql # not compatible
query I rowsort label-669
SELECT + 48 + COUNT ( * ) * + 98 / 65 + + 75
----
124

query I rowsort
SELECT ALL 54 * + + ( + + 22 )
----
1188

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-671
SELECT - NULLIF ( - 75, + COUNT( * ) ) AS col2, CAST( NULL AS DECIMAL ) * + 68
----
75
NULL

skipif mysql # not compatible
query II rowsort label-671
SELECT - NULLIF ( - 75, + COUNT ( * ) ) AS col2, CAST ( NULL AS REAL ) * + 68
----
75
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-672
SELECT + 30 DIV - - 87 col1
----
0

skipif mysql # not compatible
query I rowsort label-672
SELECT + 30 / - - 87 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-673
SELECT + COUNT( * ) * + 55 DIV - - 91 * 99 + - 64 * + 75
----
-4800

skipif mysql # not compatible
query I rowsort label-673
SELECT + COUNT ( * ) * + 55 / - - 91 * 99 + - 64 * + 75
----
-4800

query I rowsort
SELECT DISTINCT + ( - 57 ) AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-675
SELECT CAST( - 21 AS SIGNED ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-675
SELECT CAST ( - 21 AS INTEGER ) AS col2
----
-21

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

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

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

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

query I rowsort
SELECT + NULLIF ( 57, - 37 )
----
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-679
SELECT 0, + 7 * NULLIF ( - 12, 78 * + 47 ) + + - COALESCE ( 26, CAST( NULL AS SIGNED ) DIV + 47, + 42 * + 28 - - 28 ) col0
----
0
-110

skipif mysql # not compatible
query II rowsort label-679
SELECT 0, + 7 * NULLIF ( - 12, 78 * + 47 ) + + - COALESCE ( 26, CAST ( NULL AS INTEGER ) / + 47, + 42 * + 28 - - 28 ) col0
----
0
-110

query II rowsort
SELECT 6 AS col1, 20 AS col2
----
6
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-681
SELECT 55 * - + NULLIF ( + ( + - 62 ), - + 75 * - - MAX( DISTINCT - 3 ) ) + + 37 * COUNT( DISTINCT - CAST( 70 AS DECIMAL ) )
----
3447

skipif mysql # not compatible
query I rowsort label-681
SELECT 55 * - + NULLIF ( + ( + - 62 ), - + 75 * - - MAX ( DISTINCT - 3 ) ) + + 37 * COUNT ( DISTINCT - CAST ( 70 AS REAL ) )
----
3447

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT DISTINCT + SUM( DISTINCT + 11 ) * + 13 + + - 55 * - - 97 - - 31 - - COUNT( DISTINCT + 75 ) AS col1
----
-5160

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT + SUM ( DISTINCT + 11 ) * + 13 + + - 55 * - - 97 - - 31 - - COUNT ( DISTINCT + 75 ) AS col1
----
-5160

query II rowsort
SELECT ALL + 85 AS col0, 34
----
85
34

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT - ( + 37 ) * - MAX( ALL + 97 ) AS col0
----
3589

skipif mysql # not compatible
query I rowsort label-684
SELECT - ( + 37 ) * - MAX ( ALL + 97 ) AS col0
----
3589

query I rowsort
SELECT ALL - + 14 * + - 90 col0
----
1260

query II rowsort
SELECT ALL + 21 AS col1, + 38 AS col1
----
21
38

query II rowsort
SELECT DISTINCT + - 96 AS col0, 57
----
-96
57

query I rowsort
SELECT - + ( 73 ) + - 66 + ( + - 82 )
----
-221

query II rowsort
SELECT 62 col2, 72 - - 79
----
62
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-690
SELECT + CAST( + - 1 AS SIGNED ) + 92 + + - ( + CAST( + ( 76 ) AS SIGNED ) ) - COUNT( * ) * 2 * 92 col2
----
-169

skipif mysql # not compatible
query I rowsort label-690
SELECT + CAST ( + - 1 AS INTEGER ) + 92 + + - ( + CAST ( + ( 76 ) AS INTEGER ) ) - COUNT ( * ) * 2 * 92 col2
----
-169

query I rowsort
SELECT NULLIF ( 51, + 64 ) AS col0
----
51

query I rowsort
SELECT 90 * 84 + - + 84 col1
----
7476

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT ALL SUM( - 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL SUM ( - 87 ) AS col2
----
-87

query II rowsort
SELECT ALL + + 46 * + 16 * - 62, 49 AS col0
----
-45632
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-696
SELECT ALL + CAST( - 15 AS SIGNED ) / CASE - - 56 WHEN + ( - + 93 ) * + 88 / 25 THEN + 9 WHEN COALESCE ( 32, 9 * 10 ) THEN NULL WHEN ( + 18 ) + 75 THEN NULL WHEN + 30 / 84 THEN 61 + 39 END * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL + CAST ( - 15 AS INTEGER ) / CASE - - 56 WHEN + ( - + 93 ) * + 88 / 25 THEN + 9 WHEN COALESCE ( 32, 9 * 10 ) THEN NULL WHEN ( + 18 ) + 75 THEN NULL WHEN + 30 / 84 THEN 61 + 39 END * 21
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-697
SELECT 42 * 40 DIV COUNT( * )
----
1680

skipif mysql # not compatible
query I rowsort label-697
SELECT 42 * 40 / COUNT ( * )
----
1680

query I rowsort
SELECT 51 * + 9
----
459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-699
SELECT ALL 7 + CAST( - - 75 AS SIGNED ) col1
----
82

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL 7 + CAST ( - - 75 AS INTEGER ) col1
----
82

query I rowsort
SELECT DISTINCT - 77 * + 12
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT 77 * - + COUNT( * ) * - 62
----
4774

skipif mysql # not compatible
query I rowsort label-701
SELECT 77 * - + COUNT ( * ) * - 62
----
4774

query I rowsort
SELECT ALL + 4 + + ( + 83 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT DISTINCT - COUNT( ALL - + 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-703
SELECT DISTINCT - COUNT ( ALL - + 78 )
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-705
SELECT CASE - - MAX( DISTINCT + + 17 ) WHEN COUNT( * ) + 80 + - CAST( - - COUNT( * ) AS SIGNED ) / + AVG ( DISTINCT + 79 ) THEN NULL ELSE 67 END + + 8 * 50
----
467

skipif mysql # not compatible
query I rowsort label-705
SELECT CASE - - MAX ( DISTINCT + + 17 ) WHEN COUNT ( * ) + 80 + - CAST ( - - COUNT ( * ) AS INTEGER ) / + AVG ( DISTINCT + 79 ) THEN NULL ELSE 67 END + + 8 * 50
----
467

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT DISTINCT 0 * ( + COUNT( DISTINCT - + 93 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT 0 * ( + COUNT ( DISTINCT - + 93 ) ) col2
----
0

query II rowsort
SELECT - 96 * - 29, 32 AS col0
----
2784
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-708
SELECT - 78 * ( + CAST( - 94 AS SIGNED ) ) * + 48 * - - 32 + 9 - 51 * + ( ( 49 ) ) - COUNT( * ) * + 96 * 58
----
11253894

skipif mysql # not compatible
query I rowsort label-708
SELECT - 78 * ( + CAST ( - 94 AS INTEGER ) ) * + 48 * - - 32 + 9 - 51 * + ( ( 49 ) ) - COUNT ( * ) * + 96 * 58
----
11253894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-709
SELECT DISTINCT 84 * - 88 * - - ( - CASE + 35 WHEN 53 THEN + NULLIF ( ( 99 ), - 53 ) * + 48 ELSE - ( CAST( NULL AS SIGNED ) ) END ) * - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT 84 * - 88 * - - ( - CASE + 35 WHEN 53 THEN + NULLIF ( ( 99 ), - 53 ) * + 48 ELSE - ( CAST ( NULL AS INTEGER ) ) END ) * - 63 AS col2
----
NULL

query I rowsort
SELECT 56 + - + ( - 68 )
----
124

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-711
SELECT CASE CAST( NULL AS DECIMAL ) WHEN - 25 THEN NULL ELSE + 20 END * + SUM( ALL + 90 )
----
1800

skipif mysql # not compatible
query I rowsort label-711
SELECT CASE CAST ( NULL AS REAL ) WHEN - 25 THEN NULL ELSE + 20 END * + SUM ( ALL + 90 )
----
1800

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-712
SELECT ALL + 29 * + + AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) - + - CAST( NULL AS SIGNED ) * - 77 * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL + 29 * + + AVG ( DISTINCT - CAST ( NULL AS REAL ) ) - + - CAST ( NULL AS INTEGER ) * - 77 * - 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-713
SELECT ALL - NULLIF ( + CASE - COUNT( * ) WHEN 85 + + 66 - MIN( 81 ) THEN - 10 * - 33 ELSE CAST( NULL AS DECIMAL ) END, - CASE ( - 64 ) WHEN - 7 * + CAST( + 94 AS SIGNED ) THEN 58 + 23 END * + 89 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL - NULLIF ( + CASE - COUNT ( * ) WHEN 85 + + 66 - MIN ( 81 ) THEN - 10 * - 33 ELSE CAST ( NULL AS REAL ) END, - CASE ( - 64 ) WHEN - 7 * + CAST ( + 94 AS INTEGER ) THEN 58 + 23 END * + 89 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-714
SELECT - + CAST( NULL AS SIGNED ) * - + 93 - - + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-714
SELECT - + CAST ( NULL AS INTEGER ) * - + 93 - - + 37 AS col0
----
NULL

query I rowsort
SELECT 67 * + 68 * 19
----
86564

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT 59 / - CASE + + 53 WHEN 93 * + 89 * - - ( MIN( ALL ( COALESCE ( 75, + 81 + 88, - 78 ) ) ) ) - 60 THEN - MIN( ALL + 80 ) WHEN - 22 THEN NULL WHEN - 47 THEN 91 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-716
SELECT 59 / - CASE + + 53 WHEN 93 * + 89 * - - ( MIN ( ALL ( COALESCE ( 75, + 81 + 88, - 78 ) ) ) ) - 60 THEN - MIN ( ALL + 80 ) WHEN - 22 THEN NULL WHEN - 47 THEN 91 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-717
SELECT - 95 DIV 58 + 97 + + + ( + - 87 ) DIV + 57
----
95

skipif mysql # not compatible
query I rowsort label-717
SELECT - 95 / 58 + 97 + + + ( + - 87 ) / + 57
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-718
SELECT + 35 * - 69 * + CASE + 97 WHEN + 98 * - 92 THEN + CAST( + + 18 AS SIGNED ) * - 92 ELSE + 46 END
----
-111090

skipif mysql # not compatible
query I rowsort label-718
SELECT + 35 * - 69 * + CASE + 97 WHEN + 98 * - 92 THEN + CAST ( + + 18 AS INTEGER ) * - 92 ELSE + 46 END
----
-111090

query I rowsort
SELECT 50 * 98 + - 5
----
4895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-720
SELECT DISTINCT - 94 * CASE + 83 WHEN + + 87 THEN 15 / + - 76 + - CAST( NULL AS SIGNED ) + 88 * 31 * 95 + 25 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT - 94 * CASE + 83 WHEN + + 87 THEN 15 / + - 76 + - CAST ( NULL AS INTEGER ) + 88 * 31 * 95 + 25 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-721
SELECT COALESCE ( + 54, + - 2 ) + ( + ( - 49 ) ) / ( - CAST( NULL AS SIGNED ) ) AS col1, + ( COUNT( * ) )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-721
SELECT COALESCE ( + 54, + - 2 ) + ( + ( - 49 ) ) / ( - CAST ( NULL AS INTEGER ) ) AS col1, + ( COUNT ( * ) )
----
NULL
1

query I rowsort
SELECT ALL + 62 * NULLIF ( + + 24, + 60 * 81 ) * + - 99 AS col1
----
-147312

query I rowsort
SELECT ALL + 35 + + + 26 AS col1
----
61

query II rowsort
SELECT 58 + - 48 * + 14 AS col2, + 34 * - 72
----
-614
-2448

query II rowsort
SELECT 6, 26 AS col1
----
6
26

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT 67 + + NULLIF ( + + 14, COUNT( DISTINCT - 1 ) + - + 99 + + 18 ) + 48 AS col1
----
129

skipif mysql # not compatible
query I rowsort label-726
SELECT 67 + + NULLIF ( + + 14, COUNT ( DISTINCT - 1 ) + - + 99 + + 18 ) + 48 AS col1
----
129

query I rowsort
SELECT DISTINCT - 90 + - + NULLIF ( 51, + 7 + + 94 / - 22 ) col2
----
-141

query I rowsort
SELECT ALL + 0 + 19 * + - 63 AS col1
----
-1197

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT 86 + + MAX( - - 66 ) - 46 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-729
SELECT 86 + + MAX ( - - 66 ) - 46 AS col2
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT ALL - 73 + - - 85 + - + 84 DIV + 82 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL - 73 + - - 85 + - + 84 / + 82 AS col1
----
11

query I rowsort
SELECT DISTINCT + 18 + 24
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-732
SELECT 67 DIV + - ( CASE - - 61 WHEN 10 THEN NULL WHEN MAX( + 38 ) THEN NULL WHEN 94 THEN NULL ELSE - 45 END )
----
1

skipif mysql # not compatible
query I rowsort label-732
SELECT 67 / + - ( CASE - - 61 WHEN 10 THEN NULL WHEN MAX ( + 38 ) THEN NULL WHEN 94 THEN NULL ELSE - 45 END )
----
1

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

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

query I rowsort
SELECT 73 * + - 77 AS col0
----
-5621

query I rowsort
SELECT 12 + 46
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-736
SELECT DISTINCT - COUNT( * ) * + 47 DIV ( - 48 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT - COUNT ( * ) * + 47 / ( - 48 ) AS col0
----
0

query I rowsort
SELECT ALL + 73 - - 39
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT 92 DIV - 52 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-738
SELECT 92 / - 52 AS col0
----
-1

query I rowsort
SELECT ( + + 57 ) * - 75 AS col2
----
-4275

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-740
SELECT 2 + + - ( - CAST( + + 75 AS SIGNED ) ) DIV - + 57 + 96 + - + 60 + 75
----
112

skipif mysql # not compatible
query I rowsort label-740
SELECT 2 + + - ( - CAST ( + + 75 AS INTEGER ) ) / - + 57 + 96 + - + 60 + 75
----
112

query I rowsort
SELECT DISTINCT + + 5 * - + 82 + - 13
----
-423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-742
SELECT - CAST( + 1 AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-742
SELECT - CAST ( + 1 AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-743
SELECT - CAST( MAX( DISTINCT 26 ) AS DECIMAL ) * CAST( NULL AS SIGNED ) * 50 + - + SUM( ALL 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-743
SELECT - CAST ( MAX ( DISTINCT 26 ) AS REAL ) * CAST ( NULL AS INTEGER ) * 50 + - + SUM ( ALL 15 )
----
NULL

query I rowsort
SELECT + - 23 * - ( + 73 )
----
1679

query II rowsort
SELECT + 52 AS col1, - 84
----
52
-84

query I rowsort
SELECT + 34 * + - 26 + + - 71 + 34
----
-921

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-747
SELECT + - 62 + - - COUNT( * ) * - 39 + + 49 - - 4 AS col2, - COUNT( * ) DIV 64 + 93 + 85 AS col1
----
-48
178

skipif mysql # not compatible
query II rowsort label-747
SELECT + - 62 + - - COUNT ( * ) * - 39 + + 49 - - 4 AS col2, - COUNT ( * ) / 64 + 93 + 85 AS col1
----
-48
178

query I rowsort
SELECT ALL - 21 * - + 23 * - - 43 + 67
----
20836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-749
SELECT + MIN( + - CAST( 5 AS SIGNED ) ), 73 col0
----
-5
73

skipif mysql # not compatible
query II rowsort label-749
SELECT + MIN ( + - CAST ( 5 AS INTEGER ) ), 73 col0
----
-5
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-750
SELECT ALL SUM( + CAST( NULL AS DECIMAL ) ) + - + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL SUM ( + CAST ( NULL AS REAL ) ) + - + 96 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT + 46 * - 65 + - COUNT( * ) AS col1
----
-2991

skipif mysql # not compatible
query I rowsort label-752
SELECT + 46 * - 65 + - COUNT ( * ) AS col1
----
-2991

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

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

query I rowsort
SELECT ALL 31 + + 18 col0
----
49

query I rowsort
SELECT + 37 * + + 83
----
3071

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-756
SELECT + NULLIF ( + + COUNT( * ), COALESCE ( + 33, 90 ) * + 47 / - CASE + CASE - 12 WHEN - 72 * + 11 + - COUNT( + 36 ) * - 42 THEN - 78 END WHEN 29 / - CAST( NULL AS DECIMAL ) THEN NULL WHEN 66 * 17 THEN 50 END + 87 ) * + 89
----
89

skipif mysql # not compatible
query I rowsort label-756
SELECT + NULLIF ( + + COUNT ( * ), COALESCE ( + 33, 90 ) * + 47 / - CASE + CASE - 12 WHEN - 72 * + 11 + - COUNT ( + 36 ) * - 42 THEN - 78 END WHEN 29 / - CAST ( NULL AS REAL ) THEN NULL WHEN 66 * 17 THEN 50 END + 87 ) * + 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT DISTINCT MAX( + - 94 ) col2
----
-94

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT MAX ( + - 94 ) col2
----
-94

query I rowsort
SELECT ALL 95 + - ( - 24 ) AS col2
----
119

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

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

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

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

query I rowsort
SELECT DISTINCT 89 * + 84 col2
----
7476

onlyif mysql # aggregate syntax: 
query II rowsort label-762
SELECT DISTINCT COUNT( * ), - 19 - - CASE + 66 WHEN - + 80 THEN + 85 + - + 36 + COUNT( * ) ELSE + 61 END * + 3 + 52 * + 46 AS col0
----
1
2556

skipif mysql # not compatible
query II rowsort label-762
SELECT DISTINCT COUNT ( * ), - 19 - - CASE + 66 WHEN - + 80 THEN + 85 + - + 36 + COUNT ( * ) ELSE + 61 END * + 3 + 52 * + 46 AS col0
----
1
2556

query I rowsort
SELECT - ( 54 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-764
SELECT + COUNT( * ) - NULLIF ( - CAST( + 15 AS SIGNED ), + + 67 ) col1
----
16

skipif mysql # not compatible
query I rowsort label-764
SELECT + COUNT ( * ) - NULLIF ( - CAST ( + 15 AS INTEGER ), + + 67 ) col1
----
16

query I rowsort
SELECT ALL CASE + + 22 WHEN - 99 THEN + + 23 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT ALL MIN( ALL 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL MIN ( ALL 74 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-767
SELECT - + 24, COUNT( * ) * + 4 AS col2
----
-24
4

skipif mysql # not compatible
query II rowsort label-767
SELECT - + 24, COUNT ( * ) * + 4 AS col2
----
-24
4

query I rowsort
SELECT - + 35 * + 25
----
-875

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT ALL - 24 * ( + - COUNT( * ) ) + + MAX( ALL + 26 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL - 24 * ( + - COUNT ( * ) ) + + MAX ( ALL + 26 ) AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT ALL - 13 DIV + 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL - 13 / + 41 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT + - COUNT( * ) * - 70 * 40 AS col0
----
2800

skipif mysql # not compatible
query I rowsort label-771
SELECT + - COUNT ( * ) * - 70 * 40 AS col0
----
2800

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

query I rowsort
SELECT - + 3 * + 89 + 4 AS col0
----
-263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-774
SELECT DISTINCT + - 49 * - CAST( 32 AS SIGNED ) + - ( - COUNT( * ) ) AS col0
----
1569

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT + - 49 * - CAST ( 32 AS INTEGER ) + - ( - COUNT ( * ) ) AS col0
----
1569

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT 8 * COUNT( DISTINCT 17 ) + 86
----
94

skipif mysql # not compatible
query I rowsort label-775
SELECT 8 * COUNT ( DISTINCT 17 ) + 86
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT ALL + - 18 * - 87 + - + COUNT( * ) AS col1
----
1565

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL + - 18 * - 87 + - + COUNT ( * ) AS col1
----
1565

query I rowsort
SELECT ALL 2 * 87 + - + 9 + 30 * + + 51 AS col0
----
1695

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT ALL COUNT( * ) * - 2 + 99 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-778
SELECT ALL COUNT ( * ) * - 2 + 99 AS col1
----
97

query II rowsort
SELECT + + 52 AS col2, + 35 AS col0
----
52
35

query II rowsort
SELECT + 54 col0, - 42 col1
----
54
-42

query I rowsort
SELECT + + 50 * + 8
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT ALL - 73 * - 26 + 72 + - COUNT( * ) + - SUM( + 32 )
----
1937

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL - 73 * - 26 + 72 + - COUNT ( * ) + - SUM ( + 32 )
----
1937

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT - COUNT( * ) - MAX( DISTINCT + + 86 )
----
-87

skipif mysql # not compatible
query I rowsort label-783
SELECT - COUNT ( * ) - MAX ( DISTINCT + + 86 )
----
-87

query I rowsort
SELECT NULLIF ( - + CASE NULLIF ( + 75, - 42 ) WHEN - - 0 + + + 92 THEN NULL WHEN 24 THEN NULL ELSE + + 85 END, - ( + 11 ) * + 60 / 81 )
----
-85

query I rowsort
SELECT DISTINCT + COALESCE ( - 9, ( - - 6 ) ) col2
----
-9

query I rowsort
SELECT + 79 * + NULLIF ( - ( 10 ), + 62 * - 79 ) + 26
----
-764

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT ALL ( 19 ) * 21 + + COUNT( * ) col2
----
400

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL ( 19 ) * 21 + + COUNT ( * ) col2
----
400

query I rowsort
SELECT ALL 98 * - + CASE 35 WHEN + 97 THEN NULL WHEN - - 22 * + + 89 THEN NULL WHEN - 83 THEN - 29 + + 9 + - COALESCE ( 74, + 1, 72 ) ELSE NULL END + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT ALL + COUNT( * ) * 80 - - 58 + + 14 - - + ( - + 73 )
----
79

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + COUNT ( * ) * 80 - - 58 + + 14 - - + ( - + 73 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-790
SELECT CAST( NULL AS SIGNED ) * 80 - + ( - - 79 ) + 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT CAST ( NULL AS INTEGER ) * 80 - + ( - - 79 ) + 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT DISTINCT 89 * - MIN( + 25 ) * - NULLIF ( - 21, + 74 * + MIN( ALL + 13 ) / - 55 + + 16 + - + 80 ) col0
----
-46725

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT 89 * - MIN ( + 25 ) * - NULLIF ( - 21, + 74 * + MIN ( ALL + 13 ) / - 55 + + 16 + - + 80 ) col0
----
-46725

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT - CASE - - 17 WHEN - 94 * - 73 THEN NULL WHEN 57 THEN + COUNT( * ) + + 49 + + + 33 ELSE NULL END + 13 + + MAX( - 6 ) + + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-792
SELECT - CASE - - 17 WHEN - 94 * - 73 THEN NULL WHEN 57 THEN + COUNT ( * ) + + 49 + + + 33 ELSE NULL END + 13 + + MAX ( - 6 ) + + 65 AS col1
----
NULL

query I rowsort
SELECT + 30 + - 85 AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-794
SELECT ALL 42 - + CAST( - + COUNT( * ) AS SIGNED ) * ( + + 49 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL 42 - + CAST ( - + COUNT ( * ) AS INTEGER ) * ( + + 49 ) AS col1
----
91

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

skipif mysql # not compatible
query I rowsort label-795
SELECT + 48 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT COUNT( ALL 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-796
SELECT COUNT ( ALL 74 ) AS col0
----
1

query I rowsort
SELECT + 0 + + 92
----
92

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

query I rowsort
SELECT + 52 + - CASE 95 WHEN 35 THEN + + 37 * + 35 ELSE - NULLIF ( + 77, + 2 ) * - - 19 + 26 END
----
1489

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT ALL ( + + CASE + - CASE MAX( - + 71 ) WHEN - + 36 / + - 5 - - + 33 + COALESCE ( - - MAX( - 52 ), 30 - + 8 ) * 88 THEN 38 + - 27 WHEN 33 + + 34 THEN 87 END WHEN + 89 + - 78 THEN 80 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL ( + + CASE + - CASE MAX ( - + 71 ) WHEN - + 36 / + - 5 - - + 33 + COALESCE ( - - MAX ( - 52 ), 30 - + 8 ) * 88 THEN 38 + - 27 WHEN 33 + + 34 THEN 87 END WHEN + 89 + - 78 THEN 80 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT + 70 + - 4 + + ( + + COUNT( * ) ) * - - 72 + + + 0 * 55 + COUNT( * ) AS col1
----
139

skipif mysql # not compatible
query I rowsort label-801
SELECT + 70 + - 4 + + ( + + COUNT ( * ) ) * - - 72 + + + 0 * 55 + COUNT ( * ) AS col1
----
139

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

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

query I rowsort
SELECT ALL 73 * + 25 * - 78 - + 20 AS col1
----
-142370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-804
SELECT CASE - 75 WHEN - 6 + - 4 THEN + - CAST( + 66 AS SIGNED ) * - COUNT( * ) + + 20 + + 87 - 79 END * - SUM( - - 56 ) + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-804
SELECT CASE - 75 WHEN - 6 + - 4 THEN + - CAST ( + 66 AS INTEGER ) * - COUNT ( * ) + + 20 + + 87 - 79 END * - SUM ( - - 56 ) + 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT - CASE COUNT( * ) WHEN - 38 + + 31 - + + 33 THEN + 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-805
SELECT - CASE COUNT ( * ) WHEN - 38 + + 31 - + + 33 THEN + 1 END AS col0
----
NULL

query I rowsort
SELECT ( + + 28 ) + - 32 AS col1
----
-4

query I rowsort
SELECT DISTINCT + 48 + + - 2
----
46

query II rowsort
SELECT DISTINCT + 90 + 59 AS col1, - 5 + + 48 * - 41 + COALESCE ( 44, 63 ) AS col0
----
149
-1929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-809
SELECT DISTINCT - 68 + - - CAST( + - 37 AS SIGNED ) AS col1
----
-105

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT - 68 + - - CAST ( + - 37 AS INTEGER ) AS col1
----
-105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT ALL 75 + + - 63 + - NULLIF ( - 11, + COUNT( * ) ) + + COUNT( ALL - 26 ) + + - 96 * + 6 + + + COUNT( * ) AS col1
----
-551

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL 75 + + - 63 + - NULLIF ( - 11, + COUNT ( * ) ) + + COUNT ( ALL - 26 ) + + - 96 * + 6 + + + COUNT ( * ) AS col1
----
-551

onlyif mysql # aggregate syntax: 
query II rowsort label-812
SELECT + + CASE - 39 WHEN - - 46 THEN + + COUNT( * ) + - 27 * + 64 / - 16 ELSE NULL END, - ( - - 29 ) + - MAX( DISTINCT 93 ) AS col0
----
NULL
-122

skipif mysql # not compatible
query II rowsort label-812
SELECT + + CASE - 39 WHEN - - 46 THEN + + COUNT ( * ) + - 27 * + 64 / - 16 ELSE NULL END, - ( - - 29 ) + - MAX ( DISTINCT 93 ) AS col0
----
NULL
-122

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-814
SELECT COALESCE ( + 14, + COUNT( ALL + COALESCE ( - 49, + CAST( 54 AS DECIMAL ), + COALESCE ( 54, - + 35 ), + - 6 ) ) ) + - 80
----
-66

skipif mysql # not compatible
query I rowsort label-814
SELECT COALESCE ( + 14, + COUNT ( ALL + COALESCE ( - 49, + CAST ( 54 AS REAL ), + COALESCE ( 54, - + 35 ), + - 6 ) ) ) + - 80
----
-66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT DISTINCT - 74 + + 62 + + COUNT( DISTINCT + - 34 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT - 74 + + 62 + + COUNT ( DISTINCT + - 34 ) AS col1
----
-11

query I rowsort
SELECT ALL + 16 + ( - - ( + - 97 ) ) + - 1 AS col1
----
-82

query I rowsort
SELECT 59 * + 11 AS col1
----
649

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT + 38 * COALESCE ( - COALESCE ( 44, 84 + + COALESCE ( + 83, + + NULLIF ( + - 95, - + 64 * - 15 * - - 28 * - + 17 * - 24 ) * 20 ) ), 55, + 88 * 31 - COUNT( * ) ) + - 5 AS col0
----
-1677

skipif mysql # not compatible
query I rowsort label-819
SELECT + 38 * COALESCE ( - COALESCE ( 44, 84 + + COALESCE ( + 83, + + NULLIF ( + - 95, - + 64 * - 15 * - - 28 * - + 17 * - 24 ) * 20 ) ), 55, + 88 * 31 - COUNT ( * ) ) + - 5 AS col0
----
-1677

query I rowsort
SELECT DISTINCT + 4 - - ( - + ( + 60 ) ) AS col0
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-821
SELECT 77 + + 88 DIV COUNT( * ) AS col1
----
165

skipif mysql # not compatible
query I rowsort label-821
SELECT 77 + + 88 / COUNT ( * ) AS col1
----
165

query I rowsort
SELECT DISTINCT - 4 - 30
----
-34

query I rowsort
SELECT DISTINCT - 31 * - 54
----
1674

query I rowsort
SELECT 93 + + - 83
----
10

query I rowsort
SELECT 96 * + 72 AS col1
----
6912

onlyif mysql # DIV for integer division: 
query II rowsort label-826
SELECT 14, - 59 DIV + 96 col1
----
14
0

skipif mysql # not compatible
query II rowsort label-826
SELECT 14, - 59 / + 96 col1
----
14
0

onlyif mysql # aggregate syntax: 
query II rowsort label-827
SELECT 22 AS col0, COALESCE ( + 99, 10 - NULLIF ( - 23, - CASE SUM( + 81 ) WHEN 95 THEN - 28 END ) * COUNT( * ) )
----
22
99

skipif mysql # not compatible
query II rowsort label-827
SELECT 22 AS col0, COALESCE ( + 99, 10 - NULLIF ( - 23, - CASE SUM ( + 81 ) WHEN 95 THEN - 28 END ) * COUNT ( * ) )
----
22
99

onlyif mysql # aggregate syntax: 
query II rowsort label-828
SELECT - COUNT( * ) * - ( - + COUNT( * ) ) + - COUNT( + + ( 61 ) ), 76 AS col0
----
-2
76

skipif mysql # not compatible
query II rowsort label-828
SELECT - COUNT ( * ) * - ( - + COUNT ( * ) ) + - COUNT ( + + ( 61 ) ), 76 AS col0
----
-2
76

query I rowsort
SELECT 86 * 96 AS col1
----
8256

query I rowsort
SELECT 21 + 85 AS col1
----
106

query II rowsort
SELECT ALL 81 AS col0, + 17
----
81
17

query I rowsort
SELECT 11 * - - 28 AS col0
----
308

onlyif mysql # aggregate syntax: 
query II rowsort label-833
SELECT DISTINCT 89 AS col0, - COUNT( * ) * + 84
----
89
-84

skipif mysql # not compatible
query II rowsort label-833
SELECT DISTINCT 89 AS col0, - COUNT ( * ) * + 84
----
89
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT DISTINCT - 69 * + - COUNT( * ) * - MIN( ALL - - ( 54 ) )
----
-3726

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT - 69 * + - COUNT ( * ) * - MIN ( ALL - - ( 54 ) )
----
-3726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-835
SELECT COUNT( * ) DIV - NULLIF ( + - 91, + + 64 * + + 73 * CASE COUNT( * ) WHEN - SUM( ALL - 53 ) * + ( + - 33 ) + - - COUNT( 46 ) + + 53 * 4 + + 53 THEN 3 ELSE + 33 END + 66 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-835
SELECT COUNT ( * ) / - NULLIF ( + - 91, + + 64 * + + 73 * CASE COUNT ( * ) WHEN - SUM ( ALL - 53 ) * + ( + - 33 ) + - - COUNT ( 46 ) + + 53 * 4 + + 53 THEN 3 ELSE + 33 END + 66 ) AS col0
----
0

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

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

query I rowsort
SELECT 1 * 81
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT - 63 - + + COUNT( * ) - - SUM( + 30 )
----
-34

skipif mysql # not compatible
query I rowsort label-839
SELECT - 63 - + + COUNT ( * ) - - SUM ( + 30 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT ALL 7 + 7 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL 7 + 7 * - COUNT ( * )
----
0

query I rowsort
SELECT ALL 46 + + 22
----
68

query I rowsort
SELECT ALL - 80 + - 85
----
-165

query I rowsort
SELECT ( - ( + 53 ) ) + + 36
----
-17

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-845
SELECT + 56 + + - MAX( - CAST( + 85 AS SIGNED ) ) AS col2
----
141

skipif mysql # not compatible
query I rowsort label-845
SELECT + 56 + + - MAX ( - CAST ( + 85 AS INTEGER ) ) AS col2
----
141

query I rowsort
SELECT ALL 9 + + 8
----
17

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

skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT + COUNT ( * ) - - 3 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT ALL - NULLIF ( - COUNT( * ), + 54 + - ( 72 ) )
----
1

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL - NULLIF ( - COUNT ( * ), + 54 + - ( 72 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-849
SELECT - 0 AS col1, - 42 + + + COUNT( * ) AS col0
----
0
-41

skipif mysql # not compatible
query II rowsort label-849
SELECT - 0 AS col1, - 42 + + + COUNT ( * ) AS col0
----
0
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-850
SELECT DISTINCT - 42 - - 9 + + 83 - CAST( NULL AS SIGNED ) + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-850
SELECT DISTINCT - 42 - - 9 + + 83 - CAST ( NULL AS INTEGER ) + + 83
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-851
SELECT + - COUNT( * ), COALESCE ( + 51, + 68, - + COUNT( * ) ) col2
----
-1
51

skipif mysql # not compatible
query II rowsort label-851
SELECT + - COUNT ( * ), COALESCE ( + 51, + 68, - + COUNT ( * ) ) col2
----
-1
51

onlyif mysql # aggregate syntax: 
query II rowsort label-852
SELECT CASE - 23 WHEN + MAX( - 72 ) * + - 82 / 89 + + 16 THEN 17 END / - 5 col0, + 76 AS col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-852
SELECT CASE - 23 WHEN + MAX ( - 72 ) * + - 82 / 89 + + 16 THEN 17 END / - 5 col0, + 76 AS col1
----
NULL
76

onlyif mysql # DIV for integer division: 
query I rowsort label-853
SELECT DISTINCT + 73 DIV - 15
----
-4

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT + 73 / - 15
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-854
SELECT ( - - MAX( ALL + - 74 ) ) DIV - 12 AS col1, + 52 + 19
----
6
71

skipif mysql # not compatible
query II rowsort label-854
SELECT ( - - MAX ( ALL + - 74 ) ) / - 12 AS col1, + 52 + 19
----
6
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-855
SELECT 21 * + CAST( 17 AS SIGNED ) AS col0
----
357

skipif mysql # not compatible
query I rowsort label-855
SELECT 21 * + CAST ( 17 AS INTEGER ) AS col0
----
357

query II rowsort
SELECT 92 - - - 45 col1, - 56 * ( - 79 )
----
47
4424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-857
SELECT DISTINCT 30 * + COUNT( * ) * + 1 * CAST( - 13 AS SIGNED )
----
-390

skipif mysql # not compatible
query I rowsort label-857
SELECT DISTINCT 30 * + COUNT ( * ) * + 1 * CAST ( - 13 AS INTEGER )
----
-390

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

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

query I rowsort
SELECT 11 * + - 50 * + 90
----
-49500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-860
SELECT ALL + CAST( NULL AS SIGNED ) / + 26, - MIN( DISTINCT - - 58 ) * 88 * - + 98 + + ( - 83 ) * + 2 AS col1
----
NULL
500026

skipif mysql # not compatible
query II rowsort label-860
SELECT ALL + CAST ( NULL AS INTEGER ) / + 26, - MIN ( DISTINCT - - 58 ) * 88 * - + 98 + + ( - 83 ) * + 2 AS col1
----
NULL
500026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-861
SELECT ALL COALESCE ( - 18, - + CAST( - 99 AS SIGNED ), 27 )
----
-18

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL COALESCE ( - 18, - + CAST ( - 99 AS INTEGER ), 27 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT SUM( - ( - 6 ) ) + + 97 col1
----
103

skipif mysql # not compatible
query I rowsort label-862
SELECT SUM ( - ( - 6 ) ) + + 97 col1
----
103

query I rowsort
SELECT - 41 + 17 AS col1
----
-24

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

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

query I rowsort
SELECT 20 * 52 + ( - 12 ) AS col1
----
1028

query I rowsort
SELECT + 23 * - 9 * + ( + 87 ) AS col0
----
-18009

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT NULLIF ( - COUNT( * ), - - 50 * 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-867
SELECT NULLIF ( - COUNT ( * ), - - 50 * 58 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT ALL + 90 + - + COUNT( + - 65 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL + 90 + - + COUNT ( + - 65 ) AS col1
----
89

query I rowsort
SELECT ALL + 9 + - - 75
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT + - COUNT( * ) + + 11
----
10

skipif mysql # not compatible
query I rowsort label-871
SELECT + - COUNT ( * ) + + 11
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-872
SELECT ALL + NULLIF ( - - 72, + COALESCE ( + ( 86 ), - + 74 ) ) + COUNT( ALL CAST( NULL AS SIGNED ) )
----
72

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL + NULLIF ( - - 72, + COALESCE ( + ( 86 ), - + 74 ) ) + COUNT ( ALL CAST ( NULL AS INTEGER ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT + MAX( + 88 ) + - 15
----
73

skipif mysql # not compatible
query I rowsort label-873
SELECT + MAX ( + 88 ) + - 15
----
73

query I rowsort
SELECT COALESCE ( 62, 56 + 81 ) AS col0
----
62

query I rowsort
SELECT DISTINCT + - 79 + 10
----
-69

query I rowsort
SELECT + 37 + 2 + 62 col2
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-877
SELECT DISTINCT + 46 - - - CAST( + + ( 26 ) AS SIGNED ) DIV 5 + COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT + 46 - - - CAST ( + + ( 26 ) AS INTEGER ) / 5 + COUNT ( * ) AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-878
SELECT + - CAST( NULL AS SIGNED ) * + MIN( - ( - + 85 ) ), 91 + - - 57 AS col1
----
NULL
148

skipif mysql # not compatible
query II rowsort label-878
SELECT + - CAST ( NULL AS INTEGER ) * + MIN ( - ( - + 85 ) ), 91 + - - 57 AS col1
----
NULL
148

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-880
SELECT DISTINCT + CASE + - 61 WHEN COUNT( ALL - 16 ) THEN - 58 + - CASE - 15 WHEN - 30 THEN NULL WHEN + - ( - COALESCE ( 27, 98, + 96 / 19 - + CASE + CAST( 33 AS SIGNED ) WHEN 2 - + COUNT( * ) THEN - 62 + + 77 END ) ) THEN CASE - 72 WHEN + COUNT( - ( + 32 ) ) THEN 54 - - 27 END END ELSE NULL END * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT + CASE + - 61 WHEN COUNT ( ALL - 16 ) THEN - 58 + - CASE - 15 WHEN - 30 THEN NULL WHEN + - ( - COALESCE ( 27, 98, + 96 / 19 - + CASE + CAST ( 33 AS INTEGER ) WHEN 2 - + COUNT ( * ) THEN - 62 + + 77 END ) ) THEN CASE - 72 WHEN + COUNT ( - ( + 32 ) ) THEN 54 - - 27 END END ELSE NULL END * 72
----
NULL

query II rowsort
SELECT - 37 - - - 40 + - 58 col2, 0 AS col1
----
-135
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-882
SELECT + COALESCE ( SUM( ALL - CAST( 77 AS SIGNED ) ), + 31 + - 44 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-882
SELECT + COALESCE ( SUM ( ALL - CAST ( 77 AS INTEGER ) ), + 31 + - 44 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT CASE - COUNT( * ) WHEN 96 THEN NULL WHEN - + 8 + 96 THEN + 93 + - + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-883
SELECT CASE - COUNT ( * ) WHEN 96 THEN NULL WHEN - + 8 + 96 THEN + 93 + - + 93 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT 77 * COUNT( * ) + + 11
----
88

skipif mysql # not compatible
query I rowsort label-884
SELECT 77 * COUNT ( * ) + + 11
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-885
SELECT CASE ( 81 ) WHEN COUNT( * ) + - 98 - + 50 THEN - 38 WHEN + CASE - 2 WHEN + 22 + - 12 + + ( - 49 ) * - 97 + - SUM( 78 ) * - 60 THEN NULL WHEN 50 THEN NULL WHEN 16 THEN + CAST( 48 AS SIGNED ) ELSE NULL END * 41 THEN + 38 + + 97 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-885
SELECT CASE ( 81 ) WHEN COUNT ( * ) + - 98 - + 50 THEN - 38 WHEN + CASE - 2 WHEN + 22 + - 12 + + ( - 49 ) * - 97 + - SUM ( 78 ) * - 60 THEN NULL WHEN 50 THEN NULL WHEN 16 THEN + CAST ( 48 AS INTEGER ) ELSE NULL END * 41 THEN + 38 + + 97 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 25 * - 3
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-887
SELECT + COALESCE ( + ( - 58 ), + 44 ) * - CAST( - + 39 AS SIGNED ) * + 53 * + - 8 - - CASE + - 82 WHEN 79 THEN NULL WHEN - - ( - + 33 ) THEN + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-887
SELECT + COALESCE ( + ( - 58 ), + 44 ) * - CAST ( - + 39 AS INTEGER ) * + 53 * + - 8 - - CASE + - 82 WHEN 79 THEN NULL WHEN - - ( - + 33 ) THEN + 19 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT CASE ( - + 13 ) WHEN 40 + 20 - - ( - 77 ) THEN + 13 WHEN + + MAX( + 50 ) THEN + 30 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-888
SELECT CASE ( - + 13 ) WHEN 40 + 20 - - ( - 77 ) THEN + 13 WHEN + + MAX ( + 50 ) THEN + 30 END AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( + 48, - + 72, - 67 + 49 * + 69 * 64 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT NULLIF ( + 97, - COUNT( * ) - 0 + COUNT( * ) * 70 )
----
97

skipif mysql # not compatible
query I rowsort label-890
SELECT NULLIF ( + 97, - COUNT ( * ) - 0 + COUNT ( * ) * 70 )
----
97

query I rowsort
SELECT DISTINCT 72 * - + 41 col0
----
-2952

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-893
SELECT - 91 * CASE 27 WHEN + 62 THEN + ( 12 ) + CAST( - 61 AS DECIMAL ) ELSE NULL END + - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-893
SELECT - 91 * CASE 27 WHEN + 62 THEN + ( 12 ) + CAST ( - 61 AS REAL ) ELSE NULL END + - 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-894
SELECT ALL + COUNT( * ) DIV - 81 * - 63
----
0

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL + COUNT ( * ) / - 81 * - 63
----
0

query I rowsort
SELECT ALL + 25 * - + 25 + 92 AS col2
----
-533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-896
SELECT + CAST( 49 AS SIGNED ) * 87 AS col2
----
4263

skipif mysql # not compatible
query I rowsort label-896
SELECT + CAST ( 49 AS INTEGER ) * 87 AS col2
----
4263

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT MAX( + 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-897
SELECT MAX ( + 9 ) AS col1
----
9

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

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL ( + 45 ) * + 92 / + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-899
SELECT + 17 / - + 93
----
0

query I rowsort
SELECT + 35 * + 33 AS col1
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT ALL - COUNT( * ) * 65 + - 61
----
-126

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL - COUNT ( * ) * 65 + - 61
----
-126

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-902
SELECT ALL - CAST( NULL AS SIGNED ) * + - 6 + + 23 + + COALESCE ( - 82, - CAST( NULL AS DECIMAL ) ) - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 6 + + 23 + + COALESCE ( - 82, - CAST ( NULL AS REAL ) ) - 81 AS col2
----
NULL

query I rowsort
SELECT ALL - 35 * + 0
----
0

query II rowsort
SELECT ALL + 4 AS col1, - 27
----
4
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-905
SELECT DISTINCT - + 6 DIV 90 col2
----
0

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT - + 6 / 90 col2
----
0

query I rowsort
SELECT - NULLIF ( + + 66, - 56 )
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT ALL + - 1 * + CASE WHEN 21 NOT IN ( - CASE - 18 WHEN 50 THEN - 51 END, + 46, COUNT( * ) * + 18 + MAX( DISTINCT - - 45 ) ) THEN + 21 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL + - 1 * + CASE WHEN 21 NOT IN ( - CASE - 18 WHEN 50 THEN - 51 END, + 46, COUNT ( * ) * + 18 + MAX ( DISTINCT - - 45 ) ) THEN + 21 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT - + COUNT( * ) - 73 * + 90 + + MIN( - 70 )
----
-6641

skipif mysql # not compatible
query I rowsort label-909
SELECT - + COUNT ( * ) - 73 * + 90 + + MIN ( - 70 )
----
-6641

query I rowsort
SELECT - - 48 - - + 60 AS col0
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-911
SELECT DISTINCT + + COUNT( * ) DIV + 31 * - 66
----
0

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT + + COUNT ( * ) / + 31 * - 66
----
0

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

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

query I rowsort
SELECT - 97 * + + 54 AS col0
----
-5238

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT - COALESCE ( + COALESCE ( 92, + COUNT( * ) ), COUNT( * ) * + 87, 77 ) + 53 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-914
SELECT - COALESCE ( + COALESCE ( 92, + COUNT ( * ) ), COUNT ( * ) * + 87, 77 ) + 53 AS col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-915
SELECT - 44 DIV - 95 - - 36
----
36

skipif mysql # not compatible
query I rowsort label-915
SELECT - 44 / - 95 - - 36
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-916
SELECT ALL + 41, CAST( 51 AS SIGNED ) col1
----
41
51

skipif mysql # not compatible
query II rowsort label-916
SELECT ALL + 41, CAST ( 51 AS INTEGER ) col1
----
41
51

query I rowsort
SELECT - 31 * 21 * - + 94
----
61194

query I rowsort
SELECT + 37 * + + 51 col0
----
1887

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT ALL 78 DIV - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL 78 / - 89 AS col1
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( + - 56, + - 75 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT + 77 * - CASE - - 70 WHEN 92 THEN 37 WHEN - 49 THEN NULL WHEN - + 78 * COUNT( * ) - - + AVG ( DISTINCT - 93 ) * - + 64 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-921
SELECT + 77 * - CASE - - 70 WHEN 92 THEN 37 WHEN - 49 THEN NULL WHEN - + 78 * COUNT ( * ) - - + AVG ( DISTINCT - 93 ) * - + 64 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-922
SELECT ALL - 48 / + 84 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL - 48 / + 84 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 65 + + 7 * 8 * 5 AS col2
----
215

query I rowsort
SELECT DISTINCT 77 + 73
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT ( - - MAX( - + 47 ) ) * + COALESCE ( - CASE 86 WHEN + 28 + - 43 + + 43 * 38 THEN 34 WHEN + + 33 THEN NULL WHEN 17 THEN NULL END, - + ( 87 ) ) AS col0
----
4089

skipif mysql # not compatible
query I rowsort label-925
SELECT ( - - MAX ( - + 47 ) ) * + COALESCE ( - CASE 86 WHEN + 28 + - 43 + + 43 * 38 THEN 34 WHEN + + 33 THEN NULL WHEN 17 THEN NULL END, - + ( 87 ) ) AS col0
----
4089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-926
SELECT 29 * - ( CAST( - - 94 AS SIGNED ) ) + 58
----
-2668

skipif mysql # not compatible
query I rowsort label-926
SELECT 29 * - ( CAST ( - - 94 AS INTEGER ) ) + 58
----
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT DISTINCT ( COUNT( * ) ) * - 60 + - 24
----
-84

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT ( COUNT ( * ) ) * - 60 + - 24
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-928
SELECT 62 AS col2, CASE WHEN NOT - 6 IN ( + COUNT( * ) ) THEN + COUNT( * ) - + - COUNT( ALL - - 96 ) END
----
62
2

skipif mysql # not compatible
query II rowsort label-928
SELECT 62 AS col2, CASE WHEN NOT - 6 IN ( + COUNT ( * ) ) THEN + COUNT ( * ) - + - COUNT ( ALL - - 96 ) END
----
62
2

query II rowsort
SELECT + 88 AS col2, 10 * - - 97 AS col2
----
88
970

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-931
SELECT ALL ( - + CAST( CASE 15 WHEN + SUM( - + 44 ) THEN + 19 ELSE NULL END AS SIGNED ) ) + 20 * + 90 + MIN( ALL + 93 ) * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL ( - + CAST ( CASE 15 WHEN + SUM ( - + 44 ) THEN + 19 ELSE NULL END AS INTEGER ) ) + 20 * + 90 + MIN ( ALL + 93 ) * - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT DISTINCT ( - + COALESCE ( 49, - + 18 * 91 * + - COUNT( * ) + 55 * - 30 ) ) * 18 * + 1
----
-882

skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT ( - + COALESCE ( 49, - + 18 * 91 * + - COUNT ( * ) + 55 * - 30 ) ) * 18 * + 1
----
-882

query I rowsort
SELECT ALL 99 + - 69 + + 11 + 54
----
95

query I rowsort
SELECT ALL - COALESCE ( + - NULLIF ( + + 50, - 48 / 61 ), 64 )
----
50

query II rowsort
SELECT + + 31, 11 * + 85 col2
----
31
935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT DISTINCT 17 + 66 + + - 91 + - + 58 * - COALESCE ( - CASE WHEN NOT NULL NOT IN ( 54, - ( + CAST( 32 AS SIGNED ) ) + - 26 ) THEN + + 37 + + 83 WHEN NOT 5 NOT BETWEEN NULL AND + 92 * - 9 - 43 THEN NULL END, 17 ) AS col1
----
978

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT 17 + 66 + + - 91 + - + 58 * - COALESCE ( - CASE WHEN NOT NULL NOT IN ( 54, - ( + CAST ( 32 AS INTEGER ) ) + - 26 ) THEN + + 37 + + 83 WHEN NOT 5 NOT BETWEEN NULL AND + 92 * - 9 - 43 THEN NULL END, 17 ) AS col1
----
978

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT 65 + + 83 + + 63 DIV - ( 70 )
----
148

skipif mysql # not compatible
query I rowsort label-937
SELECT 65 + + 83 + + 63 / - ( 70 )
----
148

query I rowsort
SELECT + ( + 38 ) * - - 20 - + 35 AS col2
----
725

query I rowsort
SELECT 24 * - + 61 col2
----
-1464

query I rowsort
SELECT 54 - - 78
----
132

query I rowsort
SELECT DISTINCT 57 * - + ( 25 )
----
-1425

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-942
SELECT - CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-943
SELECT ALL COUNT( * ) DIV 26 * - - 59
----
0

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL COUNT ( * ) / 26 * - - 59
----
0

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

query I rowsort
SELECT DISTINCT - 55 * + 18 + - 92 + - COALESCE ( + + ( + 52 ), 94 + + 8 * - 87 )
----
-1134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT DISTINCT NULLIF ( + 77, - COUNT( * ) ) * - 50 * COALESCE ( - 86, COUNT( * ) * + 47 ) + COUNT( * )
----
331101

skipif mysql # not compatible
query I rowsort label-947
SELECT DISTINCT NULLIF ( + 77, - COUNT ( * ) ) * - 50 * COALESCE ( - 86, COUNT ( * ) * + 47 ) + COUNT ( * )
----
331101

query II rowsort
SELECT - 85 AS col2, 61
----
-85
61

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

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

query I rowsort
SELECT 3 + - 74 + 28
----
-43

query II rowsort
SELECT ALL + 46 AS col1, - 52
----
46
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT + COUNT( * ) + - CASE + 35 WHEN + + ( - 37 ) + - 52 - COUNT( * ) THEN NULL WHEN 39 THEN NULL WHEN - 85 THEN - 19 + + - 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-952
SELECT + COUNT ( * ) + - CASE + 35 WHEN + + ( - 37 ) + - 52 - COUNT ( * ) THEN NULL WHEN 39 THEN NULL WHEN - 85 THEN - 19 + + - 6 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-954
SELECT 22 * COUNT( * ), 19 * + 21 * - 74 * 36 + + 31 AS col1
----
22
-1062905

skipif mysql # not compatible
query II rowsort label-954
SELECT 22 * COUNT ( * ), 19 * + 21 * - 74 * 36 + + 31 AS col1
----
22
-1062905

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT DISTINCT - 41 * + + SUM( ALL 68 ) AS col2
----
-2788

skipif mysql # not compatible
query I rowsort label-955
SELECT DISTINCT - 41 * + + SUM ( ALL 68 ) AS col2
----
-2788

query I rowsort
SELECT DISTINCT - 69 + - 90
----
-159

query I rowsort
SELECT DISTINCT + 14 + 7 AS col1
----
21

query I rowsort
SELECT ALL - NULLIF ( - 54, + ( - 51 ) ) * - 67
----
-3618

onlyif mysql # aggregate syntax: 
query II rowsort label-959
SELECT 12 * + + 42 col1, COUNT( * ) AS col2
----
504
1

skipif mysql # not compatible
query II rowsort label-959
SELECT 12 * + + 42 col1, COUNT ( * ) AS col2
----
504
1

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT ALL - SUM( ALL - 83 ) + 93
----
176

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL - SUM ( ALL - 83 ) + 93
----
176

query II rowsort
SELECT ALL + 96 + + 48 AS col1, - 47
----
144
-47

query I rowsort
SELECT 95 - + 98 AS col2
----
-3

query II rowsort
SELECT ALL - 24 * + 58 AS col0, 77
----
-1392
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-964
SELECT 51 DIV - COALESCE ( + 15, - ( + 43 ) * 96 * + ( + NULLIF ( + COUNT( * ), + MIN( ALL 42 ) ) ) ) + 55 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-964
SELECT 51 / - COALESCE ( + 15, - ( + 43 ) * 96 * + ( + NULLIF ( + COUNT ( * ), + MIN ( ALL 42 ) ) ) ) + 55 AS col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-965
SELECT NULLIF ( 9, 87 * - ( SUM( DISTINCT 15 ) ) ) + + 47 * - + 65 AS col1, 54 - + 68 * + 57 col1
----
-3046
-3822

skipif mysql # not compatible
query II rowsort label-965
SELECT NULLIF ( 9, 87 * - ( SUM ( DISTINCT 15 ) ) ) + + 47 * - + 65 AS col1, 54 - + 68 * + 57 col1
----
-3046
-3822

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-966
SELECT 52 * + ( + + 3 ) + + 62 + 33 * - - CAST( NULL AS SIGNED ) * - + ( - - 25 ) AS col1, 51 * + 99
----
NULL
5049

skipif mysql # not compatible
query II rowsort label-966
SELECT 52 * + ( + + 3 ) + + 62 + 33 * - - CAST ( NULL AS INTEGER ) * - + ( - - 25 ) AS col1, 51 * + 99
----
NULL
5049

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-967
SELECT COUNT( * ) - + 89 DIV 12 + - - 38
----
32

skipif mysql # not compatible
query I rowsort label-967
SELECT COUNT ( * ) - + 89 / 12 + - - 38
----
32

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

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT - MAX ( - 76 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-969
SELECT ALL + ( + 63 ) + 21 + 42 / CAST( NULL AS SIGNED ) + + - 4 * - NULLIF ( + 34, + + MIN( DISTINCT 11 ) * + 37 - - 8 ) AS col0, - 79 AS col2
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-969
SELECT ALL + ( + 63 ) + 21 + 42 / CAST ( NULL AS INTEGER ) + + - 4 * - NULLIF ( + 34, + + MIN ( DISTINCT 11 ) * + 37 - - 8 ) AS col0, - 79 AS col2
----
NULL
-79

query I rowsort
SELECT ALL 58 * - 34 col0
----
-1972

onlyif mysql # DIV for integer division: 
query II rowsort label-971
SELECT ALL - ( 62 ) DIV - 80 AS col1, - 16 AS col0
----
0
-16

skipif mysql # not compatible
query II rowsort label-971
SELECT ALL - ( 62 ) / - 80 AS col1, - 16 AS col0
----
0
-16

query I rowsort
SELECT DISTINCT + 34 - - - 49 AS col0
----
-15

query I rowsort
SELECT ALL - 53 * 19 * + 37 * + - 93 + - - 54
----
3465141

query I rowsort
SELECT ALL - 17 * 94
----
-1598

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT + NULLIF ( + 25, - MAX( + 3 ) + + - 59 )
----
25

skipif mysql # not compatible
query I rowsort label-977
SELECT + NULLIF ( + 25, - MAX ( + 3 ) + + - 59 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT - COALESCE ( 58, 13 DIV - 68 * + 0 ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-978
SELECT - COALESCE ( 58, 13 / - 68 * + 0 ) col2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-979
SELECT - COALESCE ( - ( 17 ), + 91 * 40 * + 47 - - COUNT( DISTINCT - 48 ) + 87 DIV - + 31 ) * 27 + 3 AS col2, + 79 - - 86
----
462
165

skipif mysql # not compatible
query II rowsort label-979
SELECT - COALESCE ( - ( 17 ), + 91 * 40 * + 47 - - COUNT ( DISTINCT - 48 ) + 87 / - + 31 ) * 27 + 3 AS col2, + 79 - - 86
----
462
165

query I rowsort
SELECT ALL 76 + 78 * + 71 + ( - - 1 ) AS col2
----
5615

onlyif mysql # aggregate syntax: 
query II rowsort label-981
SELECT ALL 20 + + 73 - - 88 * - NULLIF ( - 19, AVG ( - - 20 ) ) AS col0, - 24 - 50 * 45 * ( + - 0 ) * 63 + + COUNT( * ) + - 67 * + NULLIF ( 25, 56 ) + - 95 AS col1
----
1765
-1793

skipif mysql # not compatible
query II rowsort label-981
SELECT ALL 20 + + 73 - - 88 * - NULLIF ( - 19, AVG ( - - 20 ) ) AS col0, - 24 - 50 * 45 * ( + - 0 ) * 63 + + COUNT ( * ) + - 67 * + NULLIF ( 25, 56 ) + - 95 AS col1
----
1765
-1793

query I rowsort
SELECT 97 - 35
----
62

query II rowsort
SELECT ALL 99 col1, 30 AS col1
----
99
30

query I rowsort
SELECT DISTINCT 8 + + 78 / + CASE - 40 WHEN - 26 THEN + 55 * + - 12 WHEN + 28 + + 84 THEN + - ( - - 64 ) * - 71 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-985
SELECT - CASE COUNT( * ) WHEN + 75 THEN + MIN( 64 ) WHEN - COUNT( * ) * - 20 * - 36 + - 32 / + 75 + - - 48 + + + 68 THEN + + 45 ELSE NULL END AS col0, - 74 + + - 62 AS col2
----
NULL
-136

skipif mysql # not compatible
query II rowsort label-985
SELECT - CASE COUNT ( * ) WHEN + 75 THEN + MIN ( 64 ) WHEN - COUNT ( * ) * - 20 * - 36 + - 32 / + 75 + - - 48 + + + 68 THEN + + 45 ELSE NULL END AS col0, - 74 + + - 62 AS col2
----
NULL
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT ALL 43 + + - 18 * - COUNT( * ) * 77 AS col0
----
1429

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL 43 + + - 18 * - COUNT ( * ) * 77 AS col0
----
1429

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT DISTINCT COUNT( * ) * - 90 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT COUNT ( * ) * - 90 AS col0
----
-90

query I rowsort
SELECT ALL 60 * + 91 AS col2
----
5460

query I rowsort
SELECT + 66 * 15 AS col1
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT + ( + COUNT( * ) ) + + 20
----
21

skipif mysql # not compatible
query I rowsort label-990
SELECT + ( + COUNT ( * ) ) + + 20
----
21

query I rowsort
SELECT - 30 - 18 AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-992
SELECT - CASE - - ( + + 72 ) WHEN 83 + - 45 THEN - 29 / + - COUNT( * ) * - - 95 * - ( + + 58 ) * + 52 WHEN - + 44 / - 12 * - + CASE 50 WHEN + 48 THEN + 14 WHEN 76 / CAST( NULL AS SIGNED ) THEN NULL ELSE 89 + - 51 END - + 63 / 21 THEN 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT - CASE - - ( + + 72 ) WHEN 83 + - 45 THEN - 29 / + - COUNT ( * ) * - - 95 * - ( + + 58 ) * + 52 WHEN - + 44 / - 12 * - + CASE 50 WHEN + 48 THEN + 14 WHEN 76 / CAST ( NULL AS INTEGER ) THEN NULL ELSE 89 + - 51 END - + 63 / 21 THEN 45 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-993
SELECT - 48 DIV 5
----
-9

skipif mysql # not compatible
query I rowsort label-993
SELECT - 48 / 5
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-994
SELECT 65 DIV + 82 * - + NULLIF ( - 90, + 32 ) - + - 41 col1, 19
----
41
19

skipif mysql # not compatible
query II rowsort label-994
SELECT 65 / + 82 * - + NULLIF ( - 90, + 32 ) - + - 41 col1, 19
----
41
19

query I rowsort
SELECT ALL + 44 * 78 * 20 + - + 0
----
68640

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT COALESCE ( SUM( + 42 ), - - COUNT( * ) * - 59 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-996
SELECT COALESCE ( SUM ( + 42 ), - - COUNT ( * ) * - 59 ) AS col1
----
42

query I rowsort
SELECT 66 * + 34 + - - 19 AS col2
----
2263

query I rowsort
SELECT ALL - 93 * - + 26 AS col0
----
2418

query I rowsort
SELECT ALL - 17 * 31 - - 70
----
-457

query I rowsort
SELECT - 52 + - - 7
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT NULLIF ( + MAX( DISTINCT + ( + 84 ) ), - - 78 )
----
84

skipif mysql # not compatible
query I rowsort label-1001
SELECT NULLIF ( + MAX ( DISTINCT + ( + 84 ) ), - - 78 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-1002
SELECT COALESCE ( - + NULLIF ( 58, + COUNT( * ) * - 91 ), 39 - - + 8 + - 21 ) col0, + 50
----
-58
50

skipif mysql # not compatible
query II rowsort label-1002
SELECT COALESCE ( - + NULLIF ( 58, + COUNT ( * ) * - 91 ), 39 - - + 8 + - 21 ) col0, + 50
----
-58
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + 3 * + - 99 + + + 33 * - COUNT( * ) + ( 85 ) * 79 AS col1
----
6385

skipif mysql # not compatible
query I rowsort label-1003
SELECT + 3 * + - 99 + + + 33 * - COUNT ( * ) + ( 85 ) * 79 AS col1
----
6385

query I rowsort
SELECT - ( 75 ) * - 37
----
2775

query I rowsort
SELECT + 61 * + 98 * 5 AS col2
----
29890

query II rowsort
SELECT ALL + - ( + + CASE - + 57 WHEN + 44 / - 82 THEN - - 34 WHEN + 58 THEN 17 ELSE NULL END ) AS col1, + 92 AS col0
----
NULL
92

query II rowsort
SELECT ALL + 84 AS col0, - 79 col0
----
84
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1008
SELECT DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * MIN( + - 90 ) AS col2, COUNT( * ) * ( + 86 ) AS col2
----
NULL
86

skipif mysql # not compatible
query II rowsort label-1008
SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * MIN ( + - 90 ) AS col2, COUNT ( * ) * ( + 86 ) AS col2
----
NULL
86

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1010
SELECT ALL + COALESCE ( COUNT( * ), - 22 + + - 76 ) DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL + COALESCE ( COUNT ( * ), - 22 + + - 76 ) / + 39
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1011
SELECT - + 35 + - 86 DIV - - 95 * 47
----
-35

skipif mysql # not compatible
query I rowsort label-1011
SELECT - + 35 + - 86 / - - 95 * 47
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT + - MIN( DISTINCT + 98 ) col0
----
-98

skipif mysql # not compatible
query I rowsort label-1012
SELECT + - MIN ( DISTINCT + 98 ) col0
----
-98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1014
SELECT + + 86 DIV - 21 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-1014
SELECT + + 86 / - 21 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT ALL + 80 DIV + 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL + 80 / + 50 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT - 94 + - + 97 DIV - CASE 4 WHEN + 37 THEN - 4 ELSE + 78 + 47 END AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-1016
SELECT - 94 + - + 97 / - CASE 4 WHEN + 37 THEN - 4 ELSE + 78 + 47 END AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT + 63 - - 38 * - - MIN( ALL + 79 ) AS col0
----
3065

skipif mysql # not compatible
query I rowsort label-1017
SELECT + 63 - - 38 * - - MIN ( ALL + 79 ) AS col0
----
3065

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT - COUNT( * ) + - 52 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-1018
SELECT - COUNT ( * ) + - 52 AS col1
----
-53

query I rowsort
SELECT + ( - - 52 ) + 34
----
86

query II rowsort
SELECT - 3 AS col2, 42
----
-3
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT + 90 + - COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-1021
SELECT + 90 + - COUNT ( * ) AS col0
----
89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT DISTINCT + + 60 + + SUM( DISTINCT 75 )
----
135

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT + + 60 + + SUM ( DISTINCT 75 )
----
135

query I rowsort
SELECT ALL - ( + 35 ) + 94
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1025
SELECT + + 59 + + CASE 51 WHEN + 29 - - 26 * - - 6 * + 14 / - 2 * + 37 * + 89 * + - 16 * + CAST( - 23 AS SIGNED ) THEN + 55 + + 42 * 14 ELSE NULL END AS col0, 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-1025
SELECT + + 59 + + CASE 51 WHEN + 29 - - 26 * - - 6 * + 14 / - 2 * + 37 * + 89 * + - 16 * + CAST ( - 23 AS INTEGER ) THEN + 55 + + 42 * 14 ELSE NULL END AS col0, 73
----
NULL
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1026
SELECT ALL + + 10 + - 75 DIV + + 57 col0
----
9

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL + + 10 + - 75 / + + 57 col0
----
9

query I rowsort
SELECT DISTINCT - 42 * + + 9 * - - 9
----
-3402

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL 19 + - COUNT( * ) * 71 * + 74 * - 33
----
173401

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL 19 + - COUNT ( * ) * 71 * + 74 * - 33
----
173401

onlyif mysql # DIV for integer division: 
query I rowsort label-1029
SELECT + 1 DIV - 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1029
SELECT + 1 / - 42 AS col0
----
0

query I rowsort
SELECT + 7 + + 22
----
29

query I rowsort
SELECT + 83 + - - ( + - 75 ) col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT DISTINCT 18 - + - CASE 72 WHEN + ( ( + 72 ) ) THEN - - AVG ( ALL 5 ) * + CASE + 65 WHEN - MIN( ALL - 60 ) * - ( - 1 ) * COUNT( * ) THEN - + 81 + - 66 * + 40 WHEN 59 THEN NULL END + + 54 ELSE - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT 18 - + - CASE 72 WHEN + ( ( + 72 ) ) THEN - - AVG ( ALL 5 ) * + CASE + 65 WHEN - MIN ( ALL - 60 ) * - ( - 1 ) * COUNT ( * ) THEN - + 81 + - 66 * + 40 WHEN 59 THEN NULL END + + 54 ELSE - 27 END
----
NULL

query II rowsort
SELECT ALL 83 * + 87 AS col2, + 59 - + - 10
----
7221
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT + COALESCE ( 71, - 92 * + + COUNT( * ) ) * 10
----
710

skipif mysql # not compatible
query I rowsort label-1034
SELECT + COALESCE ( 71, - 92 * + + COUNT ( * ) ) * 10
----
710

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1036
SELECT - 17 * 13 col0, - 41 * - CAST( NULL AS SIGNED ) * 71 * - 19 * + - 66 + + 1 * - + 53
----
-221
NULL

skipif mysql # not compatible
query II rowsort label-1036
SELECT - 17 * 13 col0, - 41 * - CAST ( NULL AS INTEGER ) * 71 * - 19 * + - 66 + + 1 * - + 53
----
-221
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1037
SELECT CAST( - - 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-1037
SELECT CAST ( - - 45 AS INTEGER )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1038
SELECT + + 47 * - 81 + 68 / + + CAST( NULL AS SIGNED ) * - + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT + + 47 * - 81 + 68 / + + CAST ( NULL AS INTEGER ) * - + 77 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT + + 56 * - - NULLIF ( + MAX( ALL 81 ), + - 59 * ( - + 23 ) )
----
4536

skipif mysql # not compatible
query I rowsort label-1039
SELECT + + 56 * - - NULLIF ( + MAX ( ALL 81 ), + - 59 * ( - + 23 ) )
----
4536

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1041
SELECT DISTINCT + SUM( DISTINCT 84 ) AS col0, COUNT( ALL 73 ) DIV - - NULLIF ( - - 88, + ( - + ( 61 ) ) * - + 22 * - - 25 )
----
84
0

skipif mysql # not compatible
query II rowsort label-1041
SELECT DISTINCT + SUM ( DISTINCT 84 ) AS col0, COUNT ( ALL 73 ) / - - NULLIF ( - - 88, + ( - + ( 61 ) ) * - + 22 * - - 25 )
----
84
0

query I rowsort
SELECT - - 81 - - 46 + 75
----
202

query I rowsort
SELECT - 34 + - 7 AS col1
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-1044
SELECT DISTINCT + 68 * 92 DIV 87 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT + 68 * 92 / 87 AS col0
----
71

query II rowsort
SELECT DISTINCT 0 * 99 - + 26 + - 7, - 40 AS col1
----
-33
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1046
SELECT - CAST( - 98 AS SIGNED ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1046
SELECT - CAST ( - 98 AS INTEGER ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL + COUNT( 43 ) * 88 * + 11 + - 37 AS col1
----
931

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + COUNT ( 43 ) * 88 * + 11 + - 37 AS col1
----
931

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT DISTINCT + 88 * - - 85 + 80 - - 17 + COUNT( * ) + 1 * 28 * - 30
----
6738

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT + 88 * - - 85 + 80 - - 17 + COUNT ( * ) + 1 * 28 * - 30
----
6738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1049
SELECT ALL + AVG ( CAST( NULL AS SIGNED ) ) * 16 + + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL + AVG ( CAST ( NULL AS INTEGER ) ) * 16 + + - 80
----
NULL

query I rowsort
SELECT ALL 94 + + + 37
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT COALESCE ( + NULLIF ( 6, 34 ), - 0 ) * SUM( - 2 )
----
-12

skipif mysql # not compatible
query I rowsort label-1051
SELECT COALESCE ( + NULLIF ( 6, 34 ), - 0 ) * SUM ( - 2 )
----
-12

query I rowsort
SELECT 95 + + 69 AS col2
----
164

query I rowsort
SELECT 5 + + 54
----
59

query I rowsort
SELECT ALL - 65 - + 99 + - + 88
----
-252

query I rowsort
SELECT 11 * 95 AS col0
----
1045

query I rowsort
SELECT 47 * 37 col0
----
1739

onlyif mysql # aggregate syntax: 
query II rowsort label-1057
SELECT 21 - - - 47 + - 6 * - SUM( - 60 ) AS col2, 43
----
-386
43

skipif mysql # not compatible
query II rowsort label-1057
SELECT 21 - - - 47 + - 6 * - SUM ( - 60 ) AS col2, 43
----
-386
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1058
SELECT ALL ( + + 37 ) * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL ( + + 37 ) * + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 20 * + 50 AS col2
----
1000

query II rowsort
SELECT - 19, 64 + 97 AS col2
----
-19
161

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1062
SELECT COALESCE ( + - 95, 90 - + 6, - 24, + COALESCE ( + - 71, + + ( - 95 ) ) * + COUNT( * ) DIV COALESCE ( 21, + SUM( DISTINCT + 35 ) ) ) * - - 37 * - 23 DIV - + COUNT( * )
----
-80845

skipif mysql # not compatible
query I rowsort label-1062
SELECT COALESCE ( + - 95, 90 - + 6, - 24, + COALESCE ( + - 71, + + ( - 95 ) ) * + COUNT ( * ) / COALESCE ( 21, + SUM ( DISTINCT + 35 ) ) ) * - - 37 * - 23 / - + COUNT ( * )
----
-80845

query I rowsort
SELECT 20 + 73
----
93

query II rowsort
SELECT DISTINCT - 7, + 58 * + - 5 * + NULLIF ( - 28, + 73 + + + 13 ) AS col2
----
-7
8120

query II rowsort
SELECT ALL - 10 AS col1, 85 col2
----
-10
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL 93 * - COUNT( * ) col1
----
-93

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL 93 * - COUNT ( * ) col1
----
-93

query I rowsort
SELECT - 82 * + - 94 * - + 38 - - + 36 AS col1
----
-292868

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1068
SELECT DISTINCT SUM( ALL + + 67 ) DIV COALESCE ( + + NULLIF ( + 12, + - 89 ), + 25 + - + ( - COUNT( * ) ) + + 42 * + ( MIN( DISTINCT + 22 ) ) * + 62 + - COUNT( + - 32 ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT SUM ( ALL + + 67 ) / COALESCE ( + + NULLIF ( + 12, + - 89 ), + 25 + - + ( - COUNT ( * ) ) + + 42 * + ( MIN ( DISTINCT + 22 ) ) * + 62 + - COUNT ( + - 32 ) ) AS col1
----
5

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

query I rowsort
SELECT DISTINCT - + 35 col1
----
-35

query II rowsort
SELECT DISTINCT - + 74 AS col1, - 39
----
-74
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1072
SELECT ALL - CAST( NULL AS SIGNED ) + + NULLIF ( + 14, + 93 - - - 32 ) * - COUNT( * ) * - 73 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT ALL - CAST ( NULL AS INTEGER ) + + NULLIF ( + 14, + 93 - - - 32 ) * - COUNT ( * ) * - 73 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT + 15 * 55 * + - COUNT( - 98 ) + - - 77
----
-748

skipif mysql # not compatible
query I rowsort label-1073
SELECT + 15 * 55 * + - COUNT ( - 98 ) + - - 77
----
-748

query I rowsort
SELECT DISTINCT + 22 + + ( - - ( 37 ) ) * - 93 AS col2
----
-3419

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

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

query I rowsort
SELECT ALL - 47 + 92 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT + SUM( - + 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-1077
SELECT + SUM ( - + 39 ) AS col0
----
-39

query I rowsort
SELECT ALL - 98 + 57 AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1079
SELECT 3 + COALESCE ( + CAST( NULL AS SIGNED ), 18 * - CAST( NULL AS SIGNED ) + + COALESCE ( - - 1, - - 92 * - 69 - - 87 * - 32 * + + 68 + + + ( + - 10 ) + + 37 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1079
SELECT 3 + COALESCE ( + CAST ( NULL AS INTEGER ), 18 * - CAST ( NULL AS INTEGER ) + + COALESCE ( - - 1, - - 92 * - 69 - - 87 * - 32 * + + 68 + + + ( + - 10 ) + + 37 ) )
----
NULL

query I rowsort
SELECT ALL 81 + - - 2 AS col2
----
83

query I rowsort
SELECT - 39 * - 25 + - + 52 AS col2
----
923

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

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

query I rowsort
SELECT 82 + 29
----
111

query I rowsort
SELECT - 27 * - 63 - 8 AS col1
----
1693

query I rowsort
SELECT + 92 + 90 AS col0
----
182

query I rowsort
SELECT 72 + + 19
----
91

query I rowsort
SELECT ALL + 46 * + 48
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT DISTINCT - ( 78 ) * - + MIN( - - 54 ) AS col0
----
4212

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT - ( 78 ) * - + MIN ( - - 54 ) AS col0
----
4212

query II rowsort
SELECT DISTINCT 53 AS col0, - 85
----
53
-85

query I rowsort
SELECT 40 + - 91 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1091
SELECT ALL - 34 DIV - COUNT( + 21 )
----
34

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL - 34 / - COUNT ( + 21 )
----
34

query I rowsort
SELECT 46 * + 81 * - 73 AS col2
----
-271998

query II rowsort
SELECT ALL 70 AS col1, + 13 + - + 8 AS col1
----
70
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1094
SELECT 3 AS col2, 15 + - - 11 * - 10 + 22 * + + 63 * - + 24 - - COUNT( * ) + + 50 + + COUNT( * ) DIV 5 AS col0
----
3
-33308

skipif mysql # not compatible
query II rowsort label-1094
SELECT 3 AS col2, 15 + - - 11 * - 10 + 22 * + + 63 * - + 24 - - COUNT ( * ) + + 50 + + COUNT ( * ) / 5 AS col0
----
3
-33308

query I rowsort
SELECT 56 * + 57
----
3192

query II rowsort
SELECT DISTINCT 76 col0, - 6 AS col1
----
76
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT CASE - NULLIF ( + - COALESCE ( + 18, - 30 * - SUM( + - 82 ) + - 72 - 44 + - + 87 ), - 42 ) WHEN + 89 THEN + - COUNT( * ) WHEN + MIN( - + 50 ) THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1097
SELECT CASE - NULLIF ( + - COALESCE ( + 18, - 30 * - SUM ( + - 82 ) + - 72 - 44 + - + 87 ), - 42 ) WHEN + 89 THEN + - COUNT ( * ) WHEN + MIN ( - + 50 ) THEN NULL END + COUNT ( * )
----
NULL

query I rowsort
SELECT 46 * ( - ( + 48 ) )
----
-2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1099
SELECT ALL + 62 * COALESCE ( 76, - 94 ) * NULLIF ( + CAST( + 33 AS SIGNED ), MAX( ALL + + CAST( - + 45 AS SIGNED ) ) + - 73 * + CASE - CASE 81 WHEN 27 THEN + 64 * + COUNT( * ) END WHEN - - CAST( 32 AS SIGNED ) + - 71 THEN + CAST( NULL AS SIGNED ) * 11 END * 15 ) + + 96
----
155592

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL + 62 * COALESCE ( 76, - 94 ) * NULLIF ( + CAST ( + 33 AS INTEGER ), MAX ( ALL + + CAST ( - + 45 AS INTEGER ) ) + - 73 * + CASE - CASE 81 WHEN 27 THEN + 64 * + COUNT ( * ) END WHEN - - CAST ( 32 AS INTEGER ) + - 71 THEN + CAST ( NULL AS INTEGER ) * 11 END * 15 ) + + 96
----
155592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1100
SELECT DISTINCT - 26 + 55 + + CAST( NULL AS SIGNED ) / + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT - 26 + 55 + + CAST ( NULL AS INTEGER ) / + 97 AS col1
----
NULL

query II rowsort
SELECT ALL + 72 * - 97 AS col0, + 34 col1
----
-6984
34

query I rowsort
SELECT CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE + - 9 END + - 54 AS col2
----
-63

query II rowsort
SELECT + 81, + 67 col1
----
81
67

query I rowsort
SELECT ALL - - 24 col0
----
24

query I rowsort
SELECT ALL 71 * + + 25 + + - 7 AS col2
----
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT + + MAX( + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-1106
SELECT + + MAX ( + 99 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1107
SELECT MAX( ALL + - 98 ) - - CAST( NULL AS SIGNED ) col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1108
SELECT + CASE - ( ( COALESCE ( + NULLIF ( + 33, + - 21 ), - - 47 ) ) ) WHEN - COUNT( * ) THEN - CAST( NULL AS SIGNED ) + - 7 END AS col1, 61 * + 7 AS col2
----
NULL
427

skipif mysql # not compatible
query II rowsort label-1108
SELECT + CASE - ( ( COALESCE ( + NULLIF ( + 33, + - 21 ), - - 47 ) ) ) WHEN - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) + - 7 END AS col1, 61 * + 7 AS col2
----
NULL
427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1109
SELECT - 67 * + 17 + COALESCE ( + 99, + + COUNT( * ) + 29 ) - 67 + + COUNT( - + 33 ) DIV + - COUNT( * ) + + 52 - - 96 + + + 3 * - 91 * 54 * + 31 * - 62 AS col2
----
28333164

skipif mysql # not compatible
query I rowsort label-1109
SELECT - 67 * + 17 + COALESCE ( + 99, + + COUNT ( * ) + 29 ) - 67 + + COUNT ( - + 33 ) / + - COUNT ( * ) + + 52 - - 96 + + + 3 * - 91 * 54 * + 31 * - 62 AS col2
----
28333164

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1111
SELECT - - ( - 73 ) DIV MIN( DISTINCT 64 ) * - 95 + - 28 + + COUNT( * ) + - - ( + 27 )
----
95

skipif mysql # not compatible
query I rowsort label-1111
SELECT - - ( - 73 ) / MIN ( DISTINCT 64 ) * - 95 + - 28 + + COUNT ( * ) + - - ( + 27 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT NULLIF ( + + COUNT( * ), - 58 + 45 ) * + 33 * 25
----
825

skipif mysql # not compatible
query I rowsort label-1112
SELECT NULLIF ( + + COUNT ( * ), - 58 + 45 ) * + 33 * 25
----
825

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

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

query I rowsort
SELECT ALL - 66 * + + 0 + 38 - + 83
----
-45

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

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

query II rowsort
SELECT DISTINCT - 69 col1, 0 + + 62 * + 13 + + 66 * - 24
----
-69
-778

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1117
SELECT ALL - 28, - COALESCE ( CAST( NULL AS SIGNED ), 80 ) AS col1
----
-28
-80

skipif mysql # not compatible
query II rowsort label-1117
SELECT ALL - 28, - COALESCE ( CAST ( NULL AS INTEGER ), 80 ) AS col1
----
-28
-80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1119
SELECT ALL - 57 DIV 90 * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL - 57 / 90 * + COUNT ( * ) AS col1
----
0

query II rowsort
SELECT DISTINCT - + 75 AS col0, 13
----
-75
13

onlyif mysql # aggregate syntax: 
query II rowsort label-1121
SELECT ALL + MAX( DISTINCT 76 ) * - CASE - - COUNT( * ) WHEN ( - 77 ) THEN - ( - + 53 ) END - + 67, + 20 * + ( + 25 ) AS col1
----
NULL
500

skipif mysql # not compatible
query II rowsort label-1121
SELECT ALL + MAX ( DISTINCT 76 ) * - CASE - - COUNT ( * ) WHEN ( - 77 ) THEN - ( - + 53 ) END - + 67, + 20 * + ( + 25 ) AS col1
----
NULL
500

query II rowsort
SELECT ALL + 20 AS col1, - 63 AS col2
----
20
-63

query I rowsort
SELECT ALL + ( - 49 ) col0
----
-49

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

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

query II rowsort
SELECT + - 97 * 56 * - - 95 + - 28 AS col1, 36
----
-516068
36

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

skipif mysql # not compatible
query II rowsort label-1126
SELECT - COUNT ( * ) col0, + 46 col1
----
-1
46

query I rowsort
SELECT ALL ( - 89 ) - - 13 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ALL + ( - MIN( 2 ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL + ( - MIN ( 2 ) ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT - + 1 * SUM( ALL + + ( - 34 ) ) + + 23 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1129
SELECT - + 1 * SUM ( ALL + + ( - 34 ) ) + + 23 AS col2
----
57

query I rowsort
SELECT + 78 * 42 AS col1
----
3276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1131
SELECT ALL MAX( - 31 ) DIV + 74 * + + 32 + - 5 * 46 AS col0
----
-230

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL MAX ( - 31 ) / + 74 * + + 32 + - 5 * 46 AS col0
----
-230

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT + 96 DIV 9 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1132
SELECT + 96 / 9 AS col1
----
10

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

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

query I rowsort
SELECT - 24 * - 95 AS col0
----
2280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1135
SELECT + 36 + - MIN( - 69 ) - + 16 + COUNT( * ) + - + 12 + + - CAST( - SUM( ALL - - 98 ) AS SIGNED ) AS col0
----
176

skipif mysql # not compatible
query I rowsort label-1135
SELECT + 36 + - MIN ( - 69 ) - + 16 + COUNT ( * ) + - + 12 + + - CAST ( - SUM ( ALL - - 98 ) AS INTEGER ) AS col0
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1136
SELECT - CASE - - CAST( 0 AS SIGNED ) WHEN + + 41 THEN + - ( 44 ) WHEN - - COALESCE ( + + 14, - COALESCE ( 29, 38 ), - COALESCE ( - + ( 26 ), 32 ) ) THEN + + 71 ELSE 4 * - - SUM( + - COALESCE ( + 38, - + 61 DIV 55 * 32 ) ) - + MAX( 98 + + 17 ) END AS col1
----
267

skipif mysql # not compatible
query I rowsort label-1136
SELECT - CASE - - CAST ( 0 AS INTEGER ) WHEN + + 41 THEN + - ( 44 ) WHEN - - COALESCE ( + + 14, - COALESCE ( 29, 38 ), - COALESCE ( - + ( 26 ), 32 ) ) THEN + + 71 ELSE 4 * - - SUM ( + - COALESCE ( + 38, - + 61 / 55 * 32 ) ) - + MAX ( 98 + + 17 ) END AS col1
----
267

query I rowsort
SELECT + 88 + - - COALESCE ( - + 54, + + 64 )
----
34

query I rowsort
SELECT DISTINCT - 30 + + - 4
----
-34

query I rowsort
SELECT ALL + 76 + + - 90
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1140
SELECT - CASE - 37 WHEN COUNT( * ) THEN NULLIF ( - 6, 60 ) + + 36 + + 25 WHEN + 10 THEN NULL ELSE NULL END - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1140
SELECT - CASE - 37 WHEN COUNT ( * ) THEN NULLIF ( - 6, 60 ) + + 36 + + 25 WHEN + 10 THEN NULL ELSE NULL END - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 58 - + + NULLIF ( - 45, 60 ) + 30 AS col2
----
17

query I rowsort
SELECT DISTINCT - 31 + 57
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1143
SELECT DISTINCT - 85 DIV + ( + 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT - 85 / + ( + 45 )
----
-1

query I rowsort
SELECT + - 8 + + 65 - + 40
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT - + COUNT( * ) + 98 - 98 + + + 33 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1145
SELECT - + COUNT ( * ) + 98 - 98 + + + 33 AS col1
----
32

query I rowsort
SELECT - + 27 - 22
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1147
SELECT DISTINCT + + CASE + 55 WHEN - 39 * - 24 THEN 46 + + 85 + + CAST( NULL AS SIGNED ) DIV + 88 + 84 + - CAST( 69 AS SIGNED ) * + 47 WHEN 90 * 54 THEN + COALESCE ( + 71, - 9 ) + NULLIF ( COUNT( * ), + 26 ) ELSE - 64 END * + ( COUNT( * ) ) * 44 col1
----
-2816

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT + + CASE + 55 WHEN - 39 * - 24 THEN 46 + + 85 + + CAST ( NULL AS INTEGER ) / + 88 + 84 + - CAST ( 69 AS INTEGER ) * + 47 WHEN 90 * 54 THEN + COALESCE ( + 71, - 9 ) + NULLIF ( COUNT ( * ), + 26 ) ELSE - 64 END * + ( COUNT ( * ) ) * 44 col1
----
-2816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1148
SELECT - - COUNT( * ) / 93 + - 65 + - - 13 / - ( CAST( NULL AS SIGNED ) ) / - 63 + - MAX( ALL - 76 ) - 69 + + CAST( + - 93 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1148
SELECT - - COUNT ( * ) / 93 + - 65 + - - 13 / - ( CAST ( NULL AS INTEGER ) ) / - 63 + - MAX ( ALL - 76 ) - 69 + + CAST ( + - 93 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1149
SELECT ALL - - 91 / 52 / - + MIN( - - 77 ) * - CAST( NULL AS SIGNED ) + - 72 + - - CAST( CAST( + 36 AS SIGNED ) AS SIGNED ) * + COUNT( * ) AS col1, 31 + - 35 * - - CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1149
SELECT ALL - - 91 / 52 / - + MIN ( - - 77 ) * - CAST ( NULL AS INTEGER ) + - 72 + - - CAST ( CAST ( + 36 AS INTEGER ) AS INTEGER ) * + COUNT ( * ) AS col1, 31 + - 35 * - - CAST ( NULL AS REAL )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1150
SELECT + NULLIF ( + 21, + - 97 + - + CASE - COALESCE ( CAST( NULL AS SIGNED ), - - NULLIF ( - 52, - + 21 - - - 66 ), - 78 + + - 19 ) WHEN + 2 THEN + - 88 WHEN + 39 THEN NULL END * - 40 + + - 85 * + 32 )
----
21

skipif mysql # not compatible
query I rowsort label-1150
SELECT + NULLIF ( + 21, + - 97 + - + CASE - COALESCE ( CAST ( NULL AS INTEGER ), - - NULLIF ( - 52, - + 21 - - - 66 ), - 78 + + - 19 ) WHEN + 2 THEN + - 88 WHEN + 39 THEN NULL END * - 40 + + - 85 * + 32 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1151
SELECT + + CAST( NULL AS SIGNED ) / - SUM( + ( + ( + 0 ) ) ) + - 86 + - 17 - + 60 + + - 86 - 52 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1151
SELECT + + CAST ( NULL AS INTEGER ) / - SUM ( + ( + ( + 0 ) ) ) + - 86 + - 17 - + 60 + + - 86 - 52 * + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT + 47 DIV + - 97 - + 58
----
-58

skipif mysql # not compatible
query I rowsort label-1152
SELECT + 47 / + - 97 - + 58
----
-58

query I rowsort
SELECT - 55 * 40 + - 2 AS col2
----
-2202

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

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

query I rowsort
SELECT ALL 84 * + 1
----
84

query II rowsort
SELECT ALL + 4, 92 AS col1
----
4
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT + ( - CASE - 68 WHEN COUNT( ALL 93 ) THEN - 99 ELSE 89 END ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-1157
SELECT + ( - CASE - 68 WHEN COUNT ( ALL 93 ) THEN - 99 ELSE 89 END ) AS col1
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-1158
SELECT + 25 + + 71 DIV 49 * - + ( 36 ) + - 34
----
-45

skipif mysql # not compatible
query I rowsort label-1158
SELECT + 25 + + 71 / 49 * - + ( 36 ) + - 34
----
-45

query I rowsort
SELECT - 36 + - 46
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT + COUNT( * ) * 47 + 13 + - 49 - + 98 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-1160
SELECT + COUNT ( * ) * 47 + 13 + - 49 - + 98 AS col1
----
-87

query I rowsort
SELECT ALL NULLIF ( + + 39, + 2 + + 59 + + 2 ) * - + 16
----
-624

query I rowsort
SELECT - NULLIF ( - 79, + 39 * + - ( 87 ) ) AS col1
----
79

query I rowsort
SELECT + 18 + - 99 AS col0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT + 89 DIV - 16 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1164
SELECT + 89 / - 16 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT + CASE + 19 WHEN - NULLIF ( - + ( - 29 ), MAX( 54 ) ) THEN 69 * + COUNT( * ) END + - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1165
SELECT + CASE + 19 WHEN - NULLIF ( - + ( - 29 ), MAX ( 54 ) ) THEN 69 * + COUNT ( * ) END + - 28 AS col2
----
NULL

query I rowsort
SELECT + 65 * - 20 AS col2
----
-1300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1167
SELECT ALL COUNT( - CAST( 46 AS SIGNED ) ) * + 37 + + ( + 94 )
----
131

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL COUNT ( - CAST ( 46 AS INTEGER ) ) * + 37 + + ( + 94 )
----
131

query I rowsort
SELECT + 82 + + - 49 AS col2
----
33

query I rowsort
SELECT ALL 88 * + + 10 * + 75
----
66000

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT + CASE + 54 WHEN 40 THEN NULL ELSE + 32 * 2 END + + 62 + + 1 + COUNT( * ) * + + 42
----
169

skipif mysql # not compatible
query I rowsort label-1171
SELECT + CASE + 54 WHEN 40 THEN NULL ELSE + 32 * 2 END + + 62 + + 1 + COUNT ( * ) * + + 42
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1172
SELECT ALL - 17 + 68 * 51 * + CAST( + - ( + + 95 ) AS SIGNED ) + + 45 AS col2
----
-329432

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL - 17 + 68 * 51 * + CAST ( + - ( + + 95 ) AS INTEGER ) + + 45 AS col2
----
-329432

query I rowsort
SELECT + 35 + - 92 * - 63 AS col1
----
5831

query I rowsort
SELECT ALL 41 + + 17 * - 18 AS col1
----
-265

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT ALL MAX( 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL MAX ( 50 ) AS col0
----
50

query I rowsort
SELECT - 89 + + + 57 + + 58
----
26

query I rowsort
SELECT ALL 59 * - 82 AS col1
----
-4838

query II rowsort
SELECT DISTINCT + COALESCE ( + - 46, 71 + + 2 + - + 27 ) + - 28 AS col1, - 76 + - - 84
----
-74
8

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT ALL + COUNT( * ) - 8
----
-7

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL + COUNT ( * ) - 8
----
-7

query I rowsort
SELECT - 64 + - 48
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1183
SELECT DISTINCT + 68 - - COUNT( * ) DIV - + 15 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + 68 - - COUNT ( * ) / - + 15 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT DISTINCT - SUM( DISTINCT + - 32 ) * + ( + 40 )
----
1280

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT - SUM ( DISTINCT + - 32 ) * + ( + 40 )
----
1280

query I rowsort
SELECT ALL + 41 - - 87 * ( - + 48 ) col0
----
-4135

query I rowsort
SELECT 1 * - - 85
----
85

query II rowsort
SELECT ALL - 91 AS col0, - 16 AS col2
----
-91
-16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1189
SELECT ALL + - ( - 73 ) DIV + + 45 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL + - ( - 73 ) / + + 45 AS col2
----
1

query I rowsort
SELECT 80 * + 16 AS col2
----
1280

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1192
SELECT COUNT( * ) * + + 31 * + 25 AS col0, 9 AS col2
----
775
9

skipif mysql # not compatible
query II rowsort label-1192
SELECT COUNT ( * ) * + + 31 * + 25 AS col0, 9 AS col2
----
775
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT ALL - - 36 * 8 + + MAX( ALL + 97 ) + + 46
----
431

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL - - 36 * 8 + + MAX ( ALL + 97 ) + + 46
----
431

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT ALL + 14 * + COUNT( * ) col0
----
14

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL + 14 * + COUNT ( * ) col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1196
SELECT DISTINCT + CAST( + 76 AS SIGNED ) * + - 57 * + 94 AS col2
----
-407208

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT + CAST ( + 76 AS INTEGER ) * + - 57 * + 94 AS col2
----
-407208

query I rowsort
SELECT ALL + 48 + - 72 + 66 + - 65
----
-23

query II rowsort
SELECT 30 * + 37 AS col2, 12
----
1110
12

query I rowsort
SELECT DISTINCT + 30 + - 86 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT ALL - 75 + + + 31 * - CASE + 46 WHEN - COUNT( * ) THEN NULL WHEN - + 42 THEN NULL WHEN 87 THEN + 17 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL - 75 + + + 31 * - CASE + 46 WHEN - COUNT ( * ) THEN NULL WHEN - + 42 THEN NULL WHEN 87 THEN + 17 END AS col0
----
NULL

query I rowsort
SELECT ALL 77 + - 7 AS col0
----
70

query I rowsort
SELECT 55 * + 7
----
385

query I rowsort
SELECT DISTINCT 94 * - 36
----
-3384

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT DISTINCT + 30 + - 83 * - - SUM( DISTINCT - + 86 ) AS col2
----
7168

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT + 30 + - 83 * - - SUM ( DISTINCT - + 86 ) AS col2
----
7168

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT ALL COUNT( * ) * + COUNT( * ) * + 14 * 28 * + 47 AS col1
----
18424

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL COUNT ( * ) * + COUNT ( * ) * + 14 * 28 * + 47 AS col1
----
18424

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT CASE - + 72 WHEN - 58 - 8 THEN 67 * - 10 / 47 + - 24 / + - ( + 44 ) END / 75 * - - MIN( 53 ) * - 88 * 18 + + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1206
SELECT CASE - + 72 WHEN - 58 - 8 THEN 67 * - 10 / 47 + - 24 / + - ( + 44 ) END / 75 * - - MIN ( 53 ) * - 88 * 18 + + + 82
----
NULL

query I rowsort
SELECT ALL + 13 + - 93 + + 76
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT 55 + - SUM( DISTINCT + 20 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1208
SELECT 55 + - SUM ( DISTINCT + 20 ) AS col1
----
35

query I rowsort
SELECT ALL 93 * - 18 * + 29
----
-48546

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT COUNT( + 20 ) + - - NULLIF ( 67, + COUNT( * ) - - 25 )
----
68

skipif mysql # not compatible
query I rowsort label-1210
SELECT COUNT ( + 20 ) + - - NULLIF ( 67, + COUNT ( * ) - - 25 )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1211
SELECT ( + 94 ) * - 84 * 29 + + 46 AS col2, NULLIF ( COALESCE ( + 21, + 1 * + - 42 ), - + COUNT( * ) ) AS col2
----
-228938
21

skipif mysql # not compatible
query II rowsort label-1211
SELECT ( + 94 ) * - 84 * 29 + + 46 AS col2, NULLIF ( COALESCE ( + 21, + 1 * + - 42 ), - + COUNT ( * ) ) AS col2
----
-228938
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT COUNT( * ) * + MAX( DISTINCT - - 91 ) col0
----
91

skipif mysql # not compatible
query I rowsort label-1212
SELECT COUNT ( * ) * + MAX ( DISTINCT - - 91 ) col0
----
91

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

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL - COUNT ( * ) - + 49 / ( + + 34 )
----
-2

query I rowsort
SELECT ALL + 31 - + - 41
----
72

query I rowsort
SELECT 47 - - + 49 + + 16 AS col1
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-1216
SELECT ALL 79 DIV + 98 - - - 57 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL 79 / + 98 - - - 57 AS col0
----
-57

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1218
SELECT - 33 + - COUNT( * ) AS col1, 58 AS col0
----
-34
58

skipif mysql # not compatible
query II rowsort label-1218
SELECT - 33 + - COUNT ( * ) AS col1, 58 AS col0
----
-34
58

query I rowsort
SELECT + 3 - 78
----
-75

query I rowsort
SELECT ALL - NULLIF ( - 28, 93 * - - 24 + - - 0 ) * 88 AS col0
----
2464

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

query II rowsort
SELECT ALL - 18 * - 45 AS col2, + 31 AS col2
----
810
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1223
SELECT ALL - + COALESCE ( + 71, - CAST( - 83 AS SIGNED ) ) col1
----
-71

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL - + COALESCE ( + 71, - CAST ( - 83 AS INTEGER ) ) col1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT + + COALESCE ( - 45, + 80 DIV - 58 )
----
-45

skipif mysql # not compatible
query I rowsort label-1224
SELECT + + COALESCE ( - 45, + 80 / - 58 )
----
-45

query I rowsort
SELECT DISTINCT + 85 * + - 61
----
-5185

query I rowsort
SELECT - 92 * - + 64 AS col2
----
5888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1227
SELECT ALL MIN( - ( + 76 ) ) + COALESCE ( - MAX( 52 ), 14 ) DIV 88
----
-76

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL MIN ( - ( + 76 ) ) + COALESCE ( - MAX ( 52 ), 14 ) / 88
----
-76

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1231
SELECT 7 DIV - 28 - + MAX( ALL + + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-1231
SELECT 7 / - 28 - + MAX ( ALL + + 45 )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-1232
SELECT 80 * + + ( 34 ) + + 89 * - 45 col0, + COUNT( * ) AS col0
----
-1285
1

skipif mysql # not compatible
query II rowsort label-1232
SELECT 80 * + + ( 34 ) + + 89 * - 45 col0, + COUNT ( * ) AS col0
----
-1285
1

query I rowsort
SELECT 65 * 37 * 22 AS col0
----
52910

query I rowsort
SELECT ALL + 44 + 58
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1235
SELECT - 13 * + CASE + CAST( + - 43 AS SIGNED ) WHEN + - 75 THEN NULL WHEN - - COUNT( + 24 ) * - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - 22 + - - 25 THEN - ( - COUNT( DISTINCT - ( - + 88 ) ) ) ELSE NULL END + ( + 61 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1235
SELECT - 13 * + CASE + CAST ( + - 43 AS INTEGER ) WHEN + - 75 THEN NULL WHEN - - COUNT ( + 24 ) * - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 22 + - - 25 THEN - ( - COUNT ( DISTINCT - ( - + 88 ) ) ) ELSE NULL END + ( + 61 ) AS col1
----
NULL

query I rowsort
SELECT ALL 71 + - - 55
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT 55 + COUNT( * ) * + ( - COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-1237
SELECT 55 + COUNT ( * ) * + ( - COUNT ( * ) )
----
54

query I rowsort
SELECT DISTINCT - 71 * 14
----
-994

query I rowsort
SELECT ALL + 17 + 63 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT 65 + - - COUNT( * ) * - 28 col2
----
37

skipif mysql # not compatible
query I rowsort label-1240
SELECT 65 + - - COUNT ( * ) * - 28 col2
----
37

query I rowsort
SELECT ALL + 44 + + 41 + - - 51
----
136

query I rowsort
SELECT 17 * 87 + 79 col0
----
1558

query I rowsort
SELECT ALL - 81 + + - 32
----
-113

query I rowsort
SELECT ALL - 44 + - 42 + ( + 60 ) * 36
----
2074

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT 84 + + SUM( + 58 ) col1
----
142

skipif mysql # not compatible
query I rowsort label-1245
SELECT 84 + + SUM ( + 58 ) col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT 55 * 26 * + + ( COUNT( ALL 16 ) )
----
1430

skipif mysql # not compatible
query I rowsort label-1246
SELECT 55 * 26 * + + ( COUNT ( ALL 16 ) )
----
1430

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ALL + 8 * - COALESCE ( - COUNT( * ), + 87 )
----
8

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL + 8 * - COALESCE ( - COUNT ( * ), + 87 )
----
8

query I rowsort
SELECT DISTINCT + 99 - - - 76 - + ( 79 ) * 31
----
-2426

query I rowsort
SELECT 80 * - 81
----
-6480

query I rowsort
SELECT DISTINCT + COALESCE ( - 47, + 47 - - - 90 ) * + 69 * - 74 * + 72
----
17278704

query I rowsort
SELECT ALL 68 * + 61 * + 47
----
194956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1252
SELECT ALL + 74 - ( 1 ) + - COALESCE ( 39, 84 DIV 75 + - MAX( DISTINCT + 21 ) + - NULLIF ( - COUNT( * ), - - AVG ( DISTINCT + - 44 ) * - 78 - - 34 + - - 5 * - 47 + - + 31 ) + - 47 ) * 70 * - 74
----
202093

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL + 74 - ( 1 ) + - COALESCE ( 39, 84 / 75 + - MAX ( DISTINCT + 21 ) + - NULLIF ( - COUNT ( * ), - - AVG ( DISTINCT + - 44 ) * - 78 - - 34 + - - 5 * - 47 + - + 31 ) + - 47 ) * 70 * - 74
----
202093

query I rowsort
SELECT - - CASE + 33 WHEN 21 THEN + 82 ELSE NULL END * + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT DISTINCT + ( + 63 ) * + - COUNT( * ) * + 91 + + 31 - - + 66
----
-5636

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT + ( + 63 ) * + - COUNT ( * ) * + 91 + + 31 - - + 66
----
-5636

onlyif mysql # DIV for integer division: 
query I rowsort label-1255
SELECT ALL - - 57 * 92 DIV + 93
----
56

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL - - 57 * 92 / + 93
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1256
SELECT - + ( + - COALESCE ( - CAST( 0 AS SIGNED ), 81, + COUNT( * ) - + 79 + COUNT( ALL + - 3 ) + - 48 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1256
SELECT - + ( + - COALESCE ( - CAST ( 0 AS INTEGER ), 81, + COUNT ( * ) - + 79 + COUNT ( ALL + - 3 ) + - 48 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1257
SELECT 16, CASE + 66 WHEN - 35 * - 67 * 61 - + - NULLIF ( - + 51, + + CASE + 82 WHEN + CAST( 41 AS SIGNED ) THEN 17 * 66 * - CASE - + 41 WHEN + 61 * 24 - - ( + + COUNT( * ) ) THEN + + 57 ELSE - - 94 + + CAST( + 25 AS SIGNED ) * + 17 END - 31 * - 56 END ) + + 16 THEN - 78 ELSE 16 END AS col0
----
16
16

skipif mysql # not compatible
query II rowsort label-1257
SELECT 16, CASE + 66 WHEN - 35 * - 67 * 61 - + - NULLIF ( - + 51, + + CASE + 82 WHEN + CAST ( 41 AS INTEGER ) THEN 17 * 66 * - CASE - + 41 WHEN + 61 * 24 - - ( + + COUNT ( * ) ) THEN + + 57 ELSE - - 94 + + CAST ( + 25 AS INTEGER ) * + 17 END - 31 * - 56 END ) + + 16 THEN - 78 ELSE 16 END AS col0
----
16
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1258
SELECT - COALESCE ( - + 2, + 90, 33 + + - ( 74 ) + - COUNT( DISTINCT - 43 ) + - 92, - - CAST( + + 30 AS SIGNED ) * 95 ) DIV NULLIF ( NULLIF ( 95, - - 69 ), 73 ) + 84 * - + 22 AS col0
----
-1848

skipif mysql # not compatible
query I rowsort label-1258
SELECT - COALESCE ( - + 2, + 90, 33 + + - ( 74 ) + - COUNT ( DISTINCT - 43 ) + - 92, - - CAST ( + + 30 AS INTEGER ) * 95 ) / NULLIF ( NULLIF ( 95, - - 69 ), 73 ) + 84 * - + 22 AS col0
----
-1848

query I rowsort
SELECT ALL - - 65 * - 60 * + 65 AS col1
----
-253500

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT DISTINCT + - 3 * - 22 + + - 76 * + + MAX( - - 69 ) col0
----
-5178

skipif mysql # not compatible
query I rowsort label-1260
SELECT DISTINCT + - 3 * - 22 + + - 76 * + + MAX ( - - 69 ) col0
----
-5178

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

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 47 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1262
SELECT DISTINCT - 14 + + + 1 - 96 DIV - + COUNT( * ) - + - 26 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-1262
SELECT DISTINCT - 14 + + + 1 - 96 / - + COUNT ( * ) - + - 26 AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT DISTINCT 97 + - + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT 97 + - + COUNT ( * )
----
96

query I rowsort
SELECT + - ( - 21 ) + - 52
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL - COALESCE ( - + 1, + 39 ) * + 59 + - - COUNT( - - 22 )
----
60

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL - COALESCE ( - + 1, + 39 ) * + 59 + - - COUNT ( - - 22 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1266
SELECT - + 1 * - + CASE + + 17 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN COALESCE ( CAST( - 50 AS SIGNED ), 13 * + + 35 + + + 15 * 19 - - 52 + 52 * + 36 + 76 + - 11 ) + - 58 THEN + - COUNT( * ) + + AVG ( - CAST( NULL AS SIGNED ) ) + + - 54 / + 19 + - + 92 WHEN - + 47 * 61 + 17 / 64 THEN NULL ELSE NULL END + + 41 * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-1266
SELECT - + 1 * - + CASE + + 17 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN COALESCE ( CAST ( - 50 AS INTEGER ), 13 * + + 35 + + + 15 * 19 - - 52 + 52 * + 36 + 76 + - 11 ) + - 58 THEN + - COUNT ( * ) + + AVG ( - CAST ( NULL AS INTEGER ) ) + + - 54 / + 19 + - + 92 WHEN - + 47 * 61 + 17 / 64 THEN NULL ELSE NULL END + + 41 * + 77
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1267
SELECT + + ( - + 37 ) * CAST( NULL AS SIGNED ) - - COUNT( * ) + - 42 * - 3 + + CASE + + 14 WHEN + ( + - 4 ) * - COUNT( 9 ) + + 17 THEN 91 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1267
SELECT + + ( - + 37 ) * CAST ( NULL AS INTEGER ) - - COUNT ( * ) + - 42 * - 3 + + CASE + + 14 WHEN + ( + - 4 ) * - COUNT ( 9 ) + + 17 THEN 91 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1268
SELECT 11 DIV + 3 + + 63 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1268
SELECT 11 / + 3 + + 63 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT ALL 21 * NULLIF ( + MIN( - 27 ), 61 * 17 + 71 ) + - ( + 20 ) * + COUNT( * )
----
-587

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL 21 * NULLIF ( + MIN ( - 27 ), 61 * 17 + 71 ) + - ( + 20 ) * + COUNT ( * )
----
-587

query I rowsort
SELECT + 7 * - - 49 col2
----
343

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT + CASE - COUNT( * ) WHEN - ( - - 89 ) THEN 26 WHEN + 85 * + 19 * + - 55 + - 71 + + 47 * + 78 + - - 66 THEN + + 33 + + NULLIF ( + 16, 52 / + - CASE + + 65 WHEN - - 49 THEN NULL WHEN - 93 + 48 + - + 74 / + NULLIF ( - 14, - 18 ) * 24 + MIN( NULLIF ( - 94, 5 + 61 ) ) THEN + 19 END ) ELSE - COALESCE ( 4, + 76 * + 80 + - 22 ) END AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-1271
SELECT + CASE - COUNT ( * ) WHEN - ( - - 89 ) THEN 26 WHEN + 85 * + 19 * + - 55 + - 71 + + 47 * + 78 + - - 66 THEN + + 33 + + NULLIF ( + 16, 52 / + - CASE + + 65 WHEN - - 49 THEN NULL WHEN - 93 + 48 + - + 74 / + NULLIF ( - 14, - 18 ) * 24 + MIN ( NULLIF ( - 94, 5 + 61 ) ) THEN + 19 END ) ELSE - COALESCE ( 4, + 76 * + 80 + - 22 ) END AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1272
SELECT DISTINCT - 55 * 63 + + CASE 54 WHEN + 93 THEN 65 DIV 84 ELSE - 79 DIV - 77 END
----
-3464

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT - 55 * 63 + + CASE 54 WHEN + 93 THEN 65 / 84 ELSE - 79 / - 77 END
----
-3464

query I rowsort
SELECT CASE - 32 WHEN - 50 THEN + 63 + 20 WHEN + 11 * - 4 + - 27 THEN NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 97, 16 AS col1
----
97
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1275
SELECT CASE - 65 WHEN - ( ( - ( 75 ) ) ) * - - 78 + - - 47 THEN NULL WHEN + CAST( NULL AS SIGNED ) - - 0 + - 36 * 75 THEN NULL WHEN - 48 * + - 67 THEN 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1275
SELECT CASE - 65 WHEN - ( ( - ( 75 ) ) ) * - - 78 + - - 47 THEN NULL WHEN + CAST ( NULL AS INTEGER ) - - 0 + - 36 * 75 THEN NULL WHEN - 48 * + - 67 THEN 28 END
----
NULL

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

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

query I rowsort
SELECT COALESCE ( ( - 39 ), 56 )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT + 24 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-1278
SELECT + 24 / 34
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT - 29 * COUNT( * ) col1, COUNT( * )
----
-29
1

skipif mysql # not compatible
query II rowsort label-1279
SELECT - 29 * COUNT ( * ) col1, COUNT ( * )
----
-29
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1280
SELECT + 73 col2, 45 * - 79 DIV COUNT( * ) col2
----
73
-3555

skipif mysql # not compatible
query II rowsort label-1280
SELECT + 73 col2, 45 * - 79 / COUNT ( * ) col2
----
73
-3555

query I rowsort
SELECT - 6 * 24 AS col0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT MAX( DISTINCT - - 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1282
SELECT MAX ( DISTINCT - - 83 ) AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1283
SELECT + 93 DIV 11 * - - 21
----
168

skipif mysql # not compatible
query I rowsort label-1283
SELECT + 93 / 11 * - - 21
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1284
SELECT DISTINCT 17 DIV + + COALESCE ( - 59, MIN( DISTINCT 6 ) * + AVG ( ALL - 99 ) + 71 * + MIN( + 31 ), ( - + 97 ) + - 97, + 98 )
----
0

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT 17 / + + COALESCE ( - 59, MIN ( DISTINCT 6 ) * + AVG ( ALL - 99 ) + 71 * + MIN ( + 31 ), ( - + 97 ) + - 97, + 98 )
----
0

query I rowsort
SELECT ALL - 23 * 54 AS col1
----
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT DISTINCT + ( + COALESCE ( - 85, - 71 ) ) * - COALESCE ( - + 53, - CASE + 15 WHEN 28 * 30 THEN - 86 WHEN + 18 + - COUNT( * ) THEN 68 END ) * - 72 AS col2
----
324360

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT + ( + COALESCE ( - 85, - 71 ) ) * - COALESCE ( - + 53, - CASE + 15 WHEN 28 * 30 THEN - 86 WHEN + 18 + - COUNT ( * ) THEN 68 END ) * - 72 AS col2
----
324360

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

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT COUNT ( ALL + 42 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT + - NULLIF ( + + 72, - 75 + - + 80 ) + + - COUNT( * ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-1288
SELECT + - NULLIF ( + + 72, - 75 + - + 80 ) + + - COUNT ( * ) AS col0
----
-73

query I rowsort
SELECT - + 17 * 77 AS col0
----
-1309

query I rowsort
SELECT ALL - + 5 * + 17 * - 28 - - + ( + 84 ) AS col0
----
2464

query I rowsort
SELECT + + 48 + + 13 AS col2
----
61

query I rowsort
SELECT - 58 - + COALESCE ( - + 34, 90 + - NULLIF ( - 84, + 39 - 44 ) ) AS col1
----
-24

query II rowsort
SELECT - - 73 + + - 5 + - 10 + + 98, + 70 col0
----
156
70

query II rowsort
SELECT - + 99 AS col0, + 17 AS col0
----
-99
17

query I rowsort
SELECT - 80 * - 97
----
7760

query II rowsort
SELECT ALL + 71 + + 10 AS col1, 25
----
81
25

query I rowsort
SELECT - ( + - 18 ) + - 37 + - + 65 + + + 39 * + 54 AS col1
----
2022

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1298
SELECT ALL - + CAST( NULL AS SIGNED ) * - 80 * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 80 * 82
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1299
SELECT - 51 + + - 81 + + CAST( + - 76 AS SIGNED ) + - 42 AS col1
----
-250

skipif mysql # not compatible
query I rowsort label-1299
SELECT - 51 + + - 81 + + CAST ( + - 76 AS INTEGER ) + - 42 AS col1
----
-250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1300
SELECT ALL COALESCE ( CAST( - 16 AS SIGNED ), 51, + - 67 DIV + 1 * - - 68 * CASE - SUM( - CASE - 25 WHEN + 51 THEN - - 36 END ) WHEN + - 56 DIV 54 + + - 76 DIV - COUNT( * ) * - 0 + - SUM( DISTINCT + 98 ) THEN + ( 16 ) DIV 7 ELSE - 56 END ) AS col1, + ( 38 ) + 43
----
-16
81

skipif mysql # not compatible
query II rowsort label-1300
SELECT ALL COALESCE ( CAST ( - 16 AS INTEGER ), 51, + - 67 / + 1 * - - 68 * CASE - SUM ( - CASE - 25 WHEN + 51 THEN - - 36 END ) WHEN + - 56 / 54 + + - 76 / - COUNT ( * ) * - 0 + - SUM ( DISTINCT + 98 ) THEN + ( 16 ) / 7 ELSE - 56 END ) AS col1, + ( 38 ) + 43
----
-16
81

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

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT COUNT ( * ) + - - 94 AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1302
SELECT - CAST( - COALESCE ( COUNT( * ), - COUNT( * ) ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1302
SELECT - CAST ( - COALESCE ( COUNT ( * ), - COUNT ( * ) ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT - NULLIF ( - MAX( 35 ), - 70 )
----
35

skipif mysql # not compatible
query I rowsort label-1303
SELECT - NULLIF ( - MAX ( 35 ), - 70 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT ALL - 35 + NULLIF ( 70, 52 * - COALESCE ( - + 13, + ( COUNT( 92 ) ) ) )
----
35

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL - 35 + NULLIF ( 70, 52 * - COALESCE ( - + 13, + ( COUNT ( 92 ) ) ) )
----
35

query I rowsort
SELECT - - 72 + 37
----
109

query I rowsort
SELECT DISTINCT + 44 + + 21 AS col2
----
65

query I rowsort
SELECT ALL - 86 * - - 90 AS col0
----
-7740

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT NULLIF ( + COUNT( * ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT NULLIF ( + COUNT ( * ), + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1309
SELECT ALL 24 DIV + 14 + - 52 - - 26 * + + COUNT( * ) - + 94 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL 24 / + 14 + - 52 - - 26 * + + COUNT ( * ) - + 94 AS col0
----
-119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1310
SELECT DISTINCT - 10 DIV - MIN( DISTINCT + + 42 ) + - 93
----
-93

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT - 10 / - MIN ( DISTINCT + + 42 ) + - 93
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-1311
SELECT ALL 54 DIV + - ( - 99 )
----
0

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL 54 / + - ( - 99 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT DISTINCT + COALESCE ( - - COUNT( * ), + + 42 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT + COALESCE ( - - COUNT ( * ), + + 42 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1313
SELECT - 48 + CASE + - 10 WHEN - + 90 / COUNT( DISTINCT - 20 ) * 22 / - 89 * + + COALESCE ( 11, + - MAX( ALL + 96 ) ) + - - 17 * + 63 * - 70 + + - 40 THEN NULL WHEN - 38 * - 78 + - + 80 THEN - 51 * + 77 + 54 ELSE NULL END, - 25 AS col1
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-1313
SELECT - 48 + CASE + - 10 WHEN - + 90 / COUNT ( DISTINCT - 20 ) * 22 / - 89 * + + COALESCE ( 11, + - MAX ( ALL + 96 ) ) + - - 17 * + 63 * - 70 + + - 40 THEN NULL WHEN - 38 * - 78 + - + 80 THEN - 51 * + 77 + 54 ELSE NULL END, - 25 AS col1
----
NULL
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT - COUNT( * ) + + + MAX( ALL 7 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1315
SELECT - COUNT ( * ) + + + MAX ( ALL 7 ) AS col0
----
6

query I rowsort
SELECT + ( + 56 ) - 63 + - 13 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT + 88 * + SUM( 25 ) AS col1
----
2200

skipif mysql # not compatible
query I rowsort label-1317
SELECT + 88 * + SUM ( 25 ) AS col1
----
2200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1318
SELECT 54 * + 24 * + CAST( NULLIF ( + + COUNT( * ), + 60 + + - 35 - - 99 + + 86 ) AS SIGNED ) + - 27
----
1269

skipif mysql # not compatible
query I rowsort label-1318
SELECT 54 * + 24 * + CAST ( NULLIF ( + + COUNT ( * ), + 60 + + - 35 - - 99 + + 86 ) AS INTEGER ) + - 27
----
1269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1319
SELECT ALL 47 DIV - 29 - - 39 + + NULLIF ( 55, - - 87 ) * - 70 + - - 39 * - MAX( + 77 )
----
-6815

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL 47 / - 29 - - 39 + + NULLIF ( 55, - - 87 ) * - 70 + - - 39 * - MAX ( + 77 )
----
-6815

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1320
SELECT + CAST( - 51 AS SIGNED ) * - ( + + 33 ) + + - 72 col0
----
1611

skipif mysql # not compatible
query I rowsort label-1320
SELECT + CAST ( - 51 AS INTEGER ) * - ( + + 33 ) + + - 72 col0
----
1611

query I rowsort
SELECT + 52 * 60 AS col2
----
3120

query II rowsort
SELECT ALL 64 * + - 56, 1 AS col1
----
-3584
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT 90 + + + 85 + + COUNT( * ) * + 46
----
221

skipif mysql # not compatible
query I rowsort label-1323
SELECT 90 + + + 85 + + COUNT ( * ) * + 46
----
221

query I rowsort
SELECT ALL 76 * + + 16
----
1216

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1325
SELECT ( - ( 37 ) ) + CASE - COUNT( * ) WHEN + CAST( NULL AS DECIMAL ) + 63 + - 84 THEN NULL WHEN - ( 80 ) + - 33 + - 96 THEN 10 ELSE + 85 + 79 * + + 45 * 88 END + COUNT( * )
----
312889

skipif mysql # not compatible
query I rowsort label-1325
SELECT ( - ( 37 ) ) + CASE - COUNT ( * ) WHEN + CAST ( NULL AS REAL ) + 63 + - 84 THEN NULL WHEN - ( 80 ) + - 33 + - 96 THEN 10 ELSE + 85 + 79 * + + 45 * 88 END + COUNT ( * )
----
312889

query I rowsort
SELECT ALL - CASE - + 86 WHEN - 75 THEN + - 23 WHEN 5 * - - 26 - - 34 - + 87 THEN NULL WHEN - 27 + 19 THEN - 96 END
----
NULL

query I rowsort
SELECT 91 * + 5 * 39 + 44
----
17789

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT - 29 DIV + 54 + - 99 - + 60 AS col2
----
-159

skipif mysql # not compatible
query I rowsort label-1328
SELECT - 29 / + 54 + - 99 - + 60 AS col2
----
-159

query I rowsort
SELECT 91 + + 84 AS col0
----
175

onlyif mysql # DIV for integer division: 
query I rowsort label-1330
SELECT - 56 + + 1 DIV 17
----
-56

skipif mysql # not compatible
query I rowsort label-1330
SELECT - 56 + + 1 / 17
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1331
SELECT SUM( DISTINCT - 92 ) DIV + + 37 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1331
SELECT SUM ( DISTINCT - 92 ) / + + 37 AS col2
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT - - NULLIF ( - - 84, - + 71 + - 39 / - - ( - MIN( ALL ( - - 11 ) ) ) )
----
84

skipif mysql # not compatible
query I rowsort label-1333
SELECT - - NULLIF ( - - 84, - + 71 + - 39 / - - ( - MIN ( ALL ( - - 11 ) ) ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT ALL - COALESCE ( + 51, - 18 ) + + - CASE 63 WHEN - 8 + + + NULLIF ( + COUNT( * ), - SUM( DISTINCT - ( + 27 ) ) + + 47 * + + 14 / + 88 ) + + 35 + - - ( - 97 ) * 88 THEN + + 12 WHEN 39 THEN + 13 END + + - 50 + 79 * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL - COALESCE ( + 51, - 18 ) + + - CASE 63 WHEN - 8 + + + NULLIF ( + COUNT ( * ), - SUM ( DISTINCT - ( + 27 ) ) + + 47 * + + 14 / + 88 ) + + 35 + - - ( - 97 ) * 88 THEN + + 12 WHEN 39 THEN + 13 END + + - 50 + 79 * - 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1335
SELECT ALL - CAST( NULL AS DECIMAL ) / - 46 + + ( 90 ) + 49 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL - CAST ( NULL AS REAL ) / - 46 + + ( 90 ) + 49 + - COUNT ( * ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1337
SELECT COUNT( * ) + - 96 + + 74 DIV - + 76 * + COUNT( + 68 )
----
-95

skipif mysql # not compatible
query I rowsort label-1337
SELECT COUNT ( * ) + - 96 + + 74 / - + 76 * + COUNT ( + 68 )
----
-95

query I rowsort
SELECT 55 + - 68 * - 53
----
3659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1339
SELECT DISTINCT - CAST( NULL AS SIGNED ) - NULLIF ( + 31, + COUNT( * ) ) + - - COUNT( * ) * - 75 * - 77 * + COUNT( * ) * - ( - 76 ) + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - NULLIF ( + 31, + COUNT ( * ) ) + - - COUNT ( * ) * - 75 * - 77 * + COUNT ( * ) * - ( - 76 ) + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT 65 + + 43 * + ( - COUNT( * ) )
----
22

skipif mysql # not compatible
query I rowsort label-1340
SELECT 65 + + 43 * + ( - COUNT ( * ) )
----
22

query I rowsort
SELECT ALL + 58 * 55 AS col1
----
3190

query II rowsort
SELECT ALL 52, + 25 AS col2
----
52
25

query I rowsort
SELECT DISTINCT + 67 * - 96
----
-6432

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1344
SELECT COUNT( ALL - 78 ) * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1344
SELECT COUNT ( ALL - 78 ) * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1345
SELECT 20 AS col0, COALESCE ( - - NULLIF ( 58, 18 ), - COUNT( * ) ) * - 46 * + 57 AS col0
----
20
-152076

skipif mysql # not compatible
query II rowsort label-1345
SELECT 20 AS col0, COALESCE ( - - NULLIF ( 58, 18 ), - COUNT ( * ) ) * - 46 * + 57 AS col0
----
20
-152076

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1346
SELECT - 62 DIV 46 + - COALESCE ( + + COALESCE ( 73, + COUNT( - 29 ) + - 11 - - 78 ), 94 )
----
-74

skipif mysql # not compatible
query I rowsort label-1346
SELECT - 62 / 46 + - COALESCE ( + + COALESCE ( 73, + COUNT ( - 29 ) + - 11 - - 78 ), 94 )
----
-74

query I rowsort
SELECT ALL + 49 * - + 32
----
-1568

query I rowsort
SELECT DISTINCT - ( 33 ) col0
----
-33

query I rowsort
SELECT DISTINCT + 68 * + 26
----
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT ALL - 95 * + 72 * + NULLIF ( - COUNT( * ), + 17 * + COUNT( DISTINCT + + 38 ) * - 14 + - - COUNT( * ) + + 47 + MAX( + + 30 ) + - COUNT( * ) - COUNT( DISTINCT + 34 ) - + COUNT( * ) - + 65 + + 3 * + 15 / - - 28 + - - MAX( ALL + + ( 44 ) ) * + - 20 * - - NULLIF ( 5, + + 71 ) + + 52 + + 27 / + 11 )
----
6840

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL - 95 * + 72 * + NULLIF ( - COUNT ( * ), + 17 * + COUNT ( DISTINCT + + 38 ) * - 14 + - - COUNT ( * ) + + 47 + MAX ( + + 30 ) + - COUNT ( * ) - COUNT ( DISTINCT + 34 ) - + COUNT ( * ) - + 65 + + 3 * + 15 / - - 28 + - - MAX ( ALL + + ( 44 ) ) * + - 20 * - - NULLIF ( 5, + + 71 ) + + 52 + + 27 / + 11 )
----
6840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1351
SELECT ALL ( 8 ) DIV COUNT( * ) + - ( MAX( DISTINCT - + 63 ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL ( 8 ) / COUNT ( * ) + - ( MAX ( DISTINCT - + 63 ) ) AS col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1352
SELECT ALL + 23 DIV COUNT( * ) * 51
----
1173

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL + 23 / COUNT ( * ) * 51
----
1173

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

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

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

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

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

query I rowsort
SELECT + 84 * + 68 AS col0
----
5712

query I rowsort
SELECT ALL - CASE WHEN 30 IS NOT NULL THEN - - 26 ELSE NULL END + 7
----
-19

query I rowsort
SELECT DISTINCT - ( + + 64 ) + - + 17
----
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT ALL + 71 + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL + 71 + COUNT ( * )
----
72

query I rowsort
SELECT - 67 * - + 90 * 75 - 26
----
452224

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

query II rowsort
SELECT ALL 60, 92 + 23 AS col2
----
60
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT - + MAX( DISTINCT 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1364
SELECT - + MAX ( DISTINCT 21 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-1365
SELECT DISTINCT + MIN( + 79 ) * + COUNT( * ) * CASE 80 WHEN - ( 81 ) THEN NULL WHEN 79 THEN + - CASE - 61 WHEN + ( - + 46 ) / - + 94 - + 83 THEN NULL WHEN - + COUNT( ALL ( 1 ) ) * + + 54 THEN NULL ELSE 52 END END, - 48 AS col0
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-1365
SELECT DISTINCT + MIN ( + 79 ) * + COUNT ( * ) * CASE 80 WHEN - ( 81 ) THEN NULL WHEN 79 THEN + - CASE - 61 WHEN + ( - + 46 ) / - + 94 - + 83 THEN NULL WHEN - + COUNT ( ALL ( 1 ) ) * + + 54 THEN NULL ELSE 52 END END, - 48 AS col0
----
NULL
-48

query I rowsort
SELECT 95 + - 98 + + + 43 AS col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1367
SELECT - COUNT( * ), 55 * + 46 * - 14 AS col2
----
-1
-35420

skipif mysql # not compatible
query II rowsort label-1367
SELECT - COUNT ( * ), 55 * + 46 * - 14 AS col2
----
-1
-35420

onlyif mysql # aggregate syntax: 
query II rowsort label-1368
SELECT MIN( + 34 ) - - SUM( ALL - 78 ) col0, 37 AS col0
----
-44
37

skipif mysql # not compatible
query II rowsort label-1368
SELECT MIN ( + 34 ) - - SUM ( ALL - 78 ) col0, 37 AS col0
----
-44
37

query I rowsort
SELECT ALL ( 20 ) AS col1
----
20

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

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

query I rowsort
SELECT + 69 - + + 5 + - 98 * + + 79 + + + 35 AS col0
----
-7643

query II rowsort
SELECT ALL - 75, - 25 AS col2
----
-75
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1373
SELECT DISTINCT COALESCE ( + 22, + + 98 - - + 49 DIV + 34 + - - 39 + 85, - 26 * + + ( - - 97 ) + + ( 8 ) * - 81 ) DIV + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT COALESCE ( + 22, + + 98 - - + 49 / + 34 + - - 39 + 85, - 26 * + + ( - - 97 ) + + ( 8 ) * - 81 ) / + 77 AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1375
SELECT DISTINCT CAST( + - AVG ( ALL - 25 ) AS SIGNED ) - + 76 + 58 * 29 + - + 77 * + 30 AS col0
----
-679

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT CAST ( + - AVG ( ALL - 25 ) AS INTEGER ) - + 76 + 58 * 29 + - + 77 * + 30 AS col0
----
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL + SUM( - + 52 ) * + - ( MAX( 60 ) ) AS col0
----
3120

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL + SUM ( - + 52 ) * + - ( MAX ( 60 ) ) AS col0
----
3120

onlyif mysql # aggregate syntax: 
query II rowsort label-1377
SELECT ALL 56 AS col2, + 7 + 1 + + - ( + + COUNT( * ) ) + - 80 * - 76 * + + 17 + - COUNT( * ) AS col1
----
56
103366

skipif mysql # not compatible
query II rowsort label-1377
SELECT ALL 56 AS col2, + 7 + 1 + + - ( + + COUNT ( * ) ) + - 80 * - 76 * + + 17 + - COUNT ( * ) AS col1
----
56
103366

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

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

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

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL MAX ( 14 )
----
14

query II rowsort
SELECT 75 * + NULLIF ( - 14, + + 46 ), 95 AS col0
----
-1050
95

query I rowsort
SELECT ALL 42 * + + 6
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT 84 * - NULLIF ( - COUNT( DISTINCT - - 88 ), + 94 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1382
SELECT 84 * - NULLIF ( - COUNT ( DISTINCT - - 88 ), + 94 ) AS col1
----
84

query I rowsort
SELECT DISTINCT + 81 - + ( + 58 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT ( CASE 11 WHEN 47 THEN NULL WHEN + 98 THEN + - COUNT( * ) WHEN + 86 + - 76 THEN NULL ELSE NULL END ) * + 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1384
SELECT ( CASE 11 WHEN 47 THEN NULL WHEN + 98 THEN + - COUNT ( * ) WHEN + 86 + - 76 THEN NULL ELSE NULL END ) * + 85 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 0 * - + 12 AS col2
----
0

query I rowsort
SELECT - 71 - + - 50 + + + 80 AS col0
----
59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1389
SELECT ALL + COUNT( * ) * + - CAST( NULL AS SIGNED ) / - - CASE 82 WHEN - + 80 + ( - - 57 ) + + 6 * + 57 + - 64 * 43 * 66 THEN - + 46 + + 96 + 53 / - + 7 + 13 WHEN 91 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) / - - CASE 82 WHEN - + 80 + ( - - 57 ) + + 6 * + 57 + - 64 * 43 * 66 THEN - + 46 + + 96 + 53 / - + 7 + 13 WHEN 91 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1390
SELECT ALL 51 * - - MIN( 14 ) + - 20 AS col1, + 7 AS col2
----
694
7

skipif mysql # not compatible
query II rowsort label-1390
SELECT ALL 51 * - - MIN ( 14 ) + - 20 AS col1, + 7 AS col2
----
694
7

query I rowsort
SELECT 19 * - - 47 - + + 37
----
856

query I rowsort
SELECT ALL + 19 * + - 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT ALL + COUNT( DISTINCT + + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL + COUNT ( DISTINCT + + 65 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1394
SELECT - 93 - + COUNT( * ) DIV 91 * - 34 * COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-1394
SELECT - 93 - + COUNT ( * ) / 91 * - 34 * COUNT ( * ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT ALL + ( - 95 ) * + CASE - + 6 WHEN + MIN( - + 53 ) - - 36 THEN - 5 + + 0 ELSE NULL END * + SUM( ALL 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL + ( - 95 ) * + CASE - + 6 WHEN + MIN ( - + 53 ) - - 36 THEN - 5 + + 0 ELSE NULL END * + SUM ( ALL 99 )
----
NULL

query I rowsort
SELECT ALL + 75 * - 43 + - 22 * + COALESCE ( - 3, + 7 )
----
-3159

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1398
SELECT DISTINCT + + CAST( + CAST( - 26 AS SIGNED ) AS SIGNED ) * 30 * + ( + 95 ) + 73
----
-74027

skipif mysql # not compatible
query I rowsort label-1398
SELECT DISTINCT + + CAST ( + CAST ( - 26 AS INTEGER ) AS INTEGER ) * 30 * + ( + 95 ) + 73
----
-74027

query I rowsort
SELECT ALL - - 16 * - ( + - 1 ) + - 18 + - + 29
----
-31

query I rowsort
SELECT DISTINCT + + 50 * - 89 + + 42 AS col2
----
-4408

query I rowsort
SELECT + - 53 + - 96
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT + + 79 + - 56 + - 16 DIV 82 * - 87 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1402
SELECT + + 79 + - 56 + - 16 / 82 * - 87 AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1403
SELECT DISTINCT 32 * - + 24 * - 0 + - - COUNT( * ) * - - CASE + COUNT( * ) WHEN + 77 * + - 74 DIV + NULLIF ( + - 62, 93 ) + 5 + + 27 + - 53 THEN + 20 DIV 54 WHEN + 69 + - COUNT( * ) THEN NULL ELSE + 80 - - - ( - 2 ) * - NULLIF ( - 36, - - 40 ) END * 65 - COUNT( * ) AS col0
----
9879

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT 32 * - + 24 * - 0 + - - COUNT ( * ) * - - CASE + COUNT ( * ) WHEN + 77 * + - 74 / + NULLIF ( + - 62, 93 ) + 5 + + 27 + - 53 THEN + 20 / 54 WHEN + 69 + - COUNT ( * ) THEN NULL ELSE + 80 - - - ( - 2 ) * - NULLIF ( - 36, - - 40 ) END * 65 - COUNT ( * ) AS col0
----
9879

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT ALL MAX( ALL + 49 ) * 9
----
441

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL MAX ( ALL + 49 ) * 9
----
441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1405
SELECT + 20 * COUNT( * ) DIV + 42 + ( - - COUNT( - 58 ) ) AS col2
----
1

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

query I rowsort
SELECT ALL 60 * + 59
----
3540

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT ALL 1 * - - COUNT( ALL - - 48 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL 1 * - - COUNT ( ALL - - 48 ) AS col0
----
1

query II rowsort
SELECT + NULLIF ( - 88, - + 60 * + 99 ) + - 68 * - - 51 AS col2, - 83
----
-3556
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT + 84 - COUNT( * ) - - 7 * ( + + 46 ) + - - 62 + - CASE - SUM( + - 45 ) WHEN + 22 THEN NULL WHEN - 4 / 4 * 29 - - 82 + - 50 * 17 - - 15 THEN - 9 END + 27 / + - 28 * + - SUM( ALL - - 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1410
SELECT + 84 - COUNT ( * ) - - 7 * ( + + 46 ) + - - 62 + - CASE - SUM ( + - 45 ) WHEN + 22 THEN NULL WHEN - 4 / 4 * 29 - - 82 + - 50 * 17 - - 15 THEN - 9 END + 27 / + - 28 * + - SUM ( ALL - - 53 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1411
SELECT + 77 DIV - + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1411
SELECT + 77 / - + 82 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1412
SELECT ALL 89 DIV - 90 * - 2 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL 89 / - 90 * - 2 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT DISTINCT SUM( DISTINCT 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1413
SELECT DISTINCT SUM ( DISTINCT 18 ) AS col0
----
18

query I rowsort
SELECT ALL - 95 * - 13 col1
----
1235

query I rowsort
SELECT ALL 53 + 73 AS col2
----
126

query I rowsort
SELECT + 23 * + - 96 * - 81 AS col2
----
178848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1417
SELECT - CASE - 83 WHEN + COALESCE ( + 5, - + 94 ) THEN - + 63 ELSE SUM( + - 11 ) * + 25 + - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT - CASE - 83 WHEN + COALESCE ( + 5, - + 94 ) THEN - + 63 ELSE SUM ( + - 11 ) * + 25 + - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1418
SELECT CAST( + ( CASE + ( - 88 ) WHEN + - 50 - 43 * + 71 THEN NULL WHEN 83 / + 44 * + + 47 THEN + + ( 59 ) + 63 END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1418
SELECT CAST ( + ( CASE + ( - 88 ) WHEN + - 50 - 43 * + 71 THEN NULL WHEN 83 / + 44 * + + 47 THEN + + ( 59 ) + 63 END ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1419
SELECT CAST( + ( + - COUNT( * ) ) AS SIGNED ) AS col1, + 25 + + 70 * - + ( + - 33 ) AS col1
----
-1
2335

skipif mysql # not compatible
query II rowsort label-1419
SELECT CAST ( + ( + - COUNT ( * ) ) AS INTEGER ) AS col1, + 25 + + 70 * - + ( + - 33 ) AS col1
----
-1
2335

query I rowsort
SELECT 23 * - 54 * + 90 + - + 43
----
-111823

query I rowsort
SELECT ALL CASE 67 WHEN 96 THEN + 28 * + - 79 WHEN + 76 THEN NULL END * - 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT DISTINCT + CASE + 41 WHEN + 37 THEN + - 72 + - 99 + - ( + 9 ) * + 19 + + 81 + - 28 * + + MAX( + 23 ) - + + 37 * - + 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT + CASE + 41 WHEN + 37 THEN + - 72 + - 99 + - ( + 9 ) * + 19 + + 81 + - 28 * + + MAX ( + 23 ) - + + 37 * - + 96 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1423
SELECT ALL + 38 DIV + 64 + + 21 * + + 72 col0
----
1512

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL + 38 / + 64 + + 21 * + + 72 col0
----
1512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1424
SELECT + CAST( + 16 AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1424
SELECT + CAST ( + 16 AS INTEGER ) AS col1
----
16

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

skipif mysql # not compatible
query I rowsort label-1425
SELECT MIN ( DISTINCT 58 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1426
SELECT 63 * - + ( + 8 ) * + 29 - CAST( NULL AS SIGNED ), 75 AS col1
----
NULL
75

skipif mysql # not compatible
query II rowsort label-1426
SELECT 63 * - + ( + 8 ) * + 29 - CAST ( NULL AS INTEGER ), 75 AS col1
----
NULL
75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1428
SELECT DISTINCT - 52 DIV - + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT - 52 / - + 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1429
SELECT + + CASE + 57 WHEN + 32 * 54 + - + 4 THEN NULL ELSE - CASE + + 53 WHEN + + 93 * + 9 THEN MIN( DISTINCT + - 35 ) WHEN - 1 * 56 / - 86 + - 98 + + + 33 THEN - + 56 END END - 42 AS col1, 81
----
NULL
81

skipif mysql # not compatible
query II rowsort label-1429
SELECT + + CASE + 57 WHEN + 32 * 54 + - + 4 THEN NULL ELSE - CASE + + 53 WHEN + + 93 * + 9 THEN MIN ( DISTINCT + - 35 ) WHEN - 1 * 56 / - 86 + - 98 + + + 33 THEN - + 56 END END - 42 AS col1, 81
----
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1430
SELECT ALL - CAST( NULL AS SIGNED ) * + 9 - + - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL - CAST ( NULL AS INTEGER ) * + 9 - + - 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1431
SELECT - COUNT( ALL + CASE 12 WHEN - + 34 THEN NULL ELSE 15 END ) * 71, 22 col1
----
-71
22

skipif mysql # not compatible
query II rowsort label-1431
SELECT - COUNT ( ALL + CASE 12 WHEN - + 34 THEN NULL ELSE 15 END ) * 71, 22 col1
----
-71
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT DISTINCT - - 78 * ( + 69 ) + + - CAST( - 13 AS SIGNED ) * + 42 AS col0
----
5928

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT - - 78 * ( + 69 ) + + - CAST ( - 13 AS INTEGER ) * + 42 AS col0
----
5928

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT - 91 - + NULLIF ( 30, 92 + - - 49 ) + - COUNT( * )
----
-122

skipif mysql # not compatible
query I rowsort label-1433
SELECT - 91 - + NULLIF ( 30, 92 + - - 49 ) + - COUNT ( * )
----
-122

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

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

query I rowsort
SELECT - + 31 * + 34 + 37 + - 60 - + 70 * 17 * - + 55 + 61 * 41
----
66874

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

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

query I rowsort
SELECT - + 98 * - 34
----
3332

query I rowsort
SELECT - + 86 + + + 24
----
-62

query I rowsort
SELECT - 80 * - - 79 AS col2
----
-6320

query I rowsort
SELECT - ( + - 92 ) * + - 98 AS col1
----
-9016

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

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

query I rowsort
SELECT + 66 - + + 32
----
34

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1444
SELECT ALL 89 + MAX( - 8 ) * 2 DIV - + 83
----
89

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL 89 + MAX ( - 8 ) * 2 / - + 83
----
89

query II rowsort
SELECT 44, - 28 + 18 AS col0
----
44
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-1446
SELECT ALL 3, + SUM( - + 99 ) + - 85 * + 59 AS col0
----
3
-5114

skipif mysql # not compatible
query II rowsort label-1446
SELECT ALL 3, + SUM ( - + 99 ) + - 85 * + 59 AS col0
----
3
-5114

onlyif mysql # aggregate syntax: 
query II rowsort label-1447
SELECT MAX( + 1 ) + - SUM( - + 48 ) col0, 40 - 58 + 92 AS col1
----
49
74

skipif mysql # not compatible
query II rowsort label-1447
SELECT MAX ( + 1 ) + - SUM ( - + 48 ) col0, 40 - 58 + 92 AS col1
----
49
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1448
SELECT DISTINCT 0 + - - NULLIF ( 18, + 49 * + CAST( 60 AS SIGNED ) ), + 20 AS col0
----
18
20

skipif mysql # not compatible
query II rowsort label-1448
SELECT DISTINCT 0 + - - NULLIF ( 18, + 49 * + CAST ( 60 AS INTEGER ) ), + 20 AS col0
----
18
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1449
SELECT 9 DIV + 20
----
0

skipif mysql # not compatible
query I rowsort label-1449
SELECT 9 / + 20
----
0

query I rowsort
SELECT 80 + 53 AS col2
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-1451
SELECT 79 AS col2, 14 * - MIN( - 27 ) AS col0
----
79
378

skipif mysql # not compatible
query II rowsort label-1451
SELECT 79 AS col2, 14 * - MIN ( - 27 ) AS col0
----
79
378

query II rowsort
SELECT - 23, 89 AS col1
----
-23
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1453
SELECT DISTINCT NULLIF ( - + COALESCE ( + 93, - 82 + - 49 + - - 18 DIV ( - + 34 ) ), CAST( NULL AS SIGNED ) DIV + + 89 * + - 92 ) + - 2
----
-95

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT NULLIF ( - + COALESCE ( + 93, - 82 + - 49 + - - 18 / ( - + 34 ) ), CAST ( NULL AS INTEGER ) / + + 89 * + - 92 ) + - 2
----
-95

query II rowsort
SELECT 60 AS col0, - 64 AS col2
----
60
-64

query I rowsort
SELECT ALL ( - - 98 ) + 77
----
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1456
SELECT 18 * + COALESCE ( ( ( - ( - 87 ) ) ), 60 DIV + + MIN( 75 ) ) AS col1, 95
----
1566
95

skipif mysql # not compatible
query II rowsort label-1456
SELECT 18 * + COALESCE ( ( ( - ( - 87 ) ) ), 60 / + + MIN ( 75 ) ) AS col1, 95
----
1566
95

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

query I rowsort
SELECT ALL - 72 - - - 92 AS col0
----
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-1459
SELECT DISTINCT - 14 DIV - + 72 * 84 + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT - 14 / - + 72 * 84 + 23 AS col0
----
23

query I rowsort
SELECT 1 + + 55
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1461
SELECT - CAST( NULL AS SIGNED ) / + + 26 - 9 + 68 - + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1461
SELECT - CAST ( NULL AS INTEGER ) / + + 26 - 9 + 68 - + 32 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 65 * - + 13
----
-845

query I rowsort
SELECT 17 * + 35 + + 47 col0
----
642

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT 91 - - ( COALESCE ( + COUNT( * ), COUNT( 61 ) ) ) + 30 + - 39 + - - 83 * 9 AS col2
----
830

skipif mysql # not compatible
query I rowsort label-1464
SELECT 91 - - ( COALESCE ( + COUNT ( * ), COUNT ( 61 ) ) ) + 30 + - 39 + - - 83 * 9 AS col2
----
830

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

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL - CAST ( NULL AS INTEGER ) - + - 60 AS col2
----
NULL

query II rowsort
SELECT 35, 47 AS col1
----
35
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1467
SELECT CASE ( - 48 ) WHEN + ( - 84 ) + + - ( - - 24 ) THEN NULL ELSE - 46 + + - 20 END + - 31 / - - COUNT( DISTINCT + 84 ) / + MAX( - CAST( NULL AS SIGNED ) ) - - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT CASE ( - 48 ) WHEN + ( - 84 ) + + - ( - - 24 ) THEN NULL ELSE - 46 + + - 20 END + - 31 / - - COUNT ( DISTINCT + 84 ) / + MAX ( - CAST ( NULL AS INTEGER ) ) - - 79 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1468
SELECT DISTINCT - + NULLIF ( 60, - CAST( NULL AS SIGNED ) / + NULLIF ( - - 51, + 52 ) * + - 50 + - 82 - 71 * + ( + - 74 ) * + + 89 + + - 68 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT - + NULLIF ( 60, - CAST ( NULL AS INTEGER ) / + NULLIF ( - - 51, + 52 ) * + - 50 + - 82 - 71 * + ( + - 74 ) * + + 89 + + - 68 ) AS col0
----
-60

query I rowsort
SELECT + 89 + ( + ( + 71 ) ) + + 71 * 28 AS col0
----
2148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1470
SELECT DISTINCT - ( - 97 ), - COALESCE ( 16, - 55 * - 56 + CAST( 0 AS SIGNED ) * MIN( - 46 ) ) - + 14 * - 30 * + COUNT( * ) AS col2
----
97
404

skipif mysql # not compatible
query II rowsort label-1470
SELECT DISTINCT - ( - 97 ), - COALESCE ( 16, - 55 * - 56 + CAST ( 0 AS INTEGER ) * MIN ( - 46 ) ) - + 14 * - 30 * + COUNT ( * ) AS col2
----
97
404

query I rowsort
SELECT ALL - + COALESCE ( + 64, - ( - 28 ), - + 72 ) * 58
----
-3712

query I rowsort
SELECT + 78 * 51 + + COALESCE ( + 67, + 1 ) AS col0
----
4045

query I rowsort
SELECT DISTINCT - 13 + - - 78 AS col0
----
65

query I rowsort
SELECT ALL - 4 + - 31 col2
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT 0 + 1 * - 38 DIV + 42 * + - 50
----
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT 0 + 1 * - 38 / + 42 * + - 50
----
0

query I rowsort
SELECT 3 * 35 AS col1
----
105

query I rowsort
SELECT ALL + 5 + + 2
----
7

query I rowsort
SELECT 93 - 36
----
57

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT ALL + 60 + + 46 DIV 2 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL + 60 + + 46 / 2 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT 15 + - 52 * - - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-1481
SELECT 15 + - 52 * - - COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT COUNT( * ) + - 27 * - 6 AS col0
----
163

skipif mysql # not compatible
query I rowsort label-1482
SELECT COUNT ( * ) + - 27 * - 6 AS col0
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT ALL + MAX( - 66 ) - + 85
----
-151

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL + MAX ( - 66 ) - + 85
----
-151

onlyif mysql # aggregate syntax: 
query II rowsort label-1484
SELECT ALL COUNT( * ) * - 85 AS col2, SUM( - 43 )
----
-85
-43

skipif mysql # not compatible
query II rowsort label-1484
SELECT ALL COUNT ( * ) * - 85 AS col2, SUM ( - 43 )
----
-85
-43

query I rowsort
SELECT ALL 46 - - 64 - - - ( + 54 ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1486
SELECT DISTINCT - CASE - - 43 WHEN COUNT( * ) * - 71 + - 3 + + + COUNT( * ) - + 96 * 59 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 27 + + 58 END * + CASE - - 85 WHEN - + 51 * + MIN( - - 32 ) + - - COUNT( * ) THEN 11 END + + COUNT( * ) + - - 46, + COALESCE ( - - 58, 54 * + - 8 + 14 * CAST( - ( + COUNT( DISTINCT - 19 ) ) AS SIGNED ) ) AS col2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-1486
SELECT DISTINCT - CASE - - 43 WHEN COUNT ( * ) * - 71 + - 3 + + + COUNT ( * ) - + 96 * 59 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 27 + + 58 END * + CASE - - 85 WHEN - + 51 * + MIN ( - - 32 ) + - - COUNT ( * ) THEN 11 END + + COUNT ( * ) + - - 46, + COALESCE ( - - 58, 54 * + - 8 + 14 * CAST ( - ( + COUNT ( DISTINCT - 19 ) ) AS INTEGER ) ) AS col2
----
NULL
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1487
SELECT - COALESCE ( - 14, + COUNT( * ) ), 0 AS col2
----
14
0

skipif mysql # not compatible
query II rowsort label-1487
SELECT - COALESCE ( - 14, + COUNT ( * ) ), 0 AS col2
----
14
0

query I rowsort
SELECT + 79 + + + 37 + - 32 AS col0
----
84

query I rowsort
SELECT 29 * + - CASE - 37 WHEN + 67 THEN - 10 END * + 66 + - 13
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1490
SELECT ALL - - CASE + 26 WHEN + + 25 THEN - 4 WHEN + 58 - - 86 / - NULLIF ( + ( 66 ), 99 ) THEN NULL WHEN - AVG ( DISTINCT + 42 ) THEN NULL END AS col0, - COUNT( * ) - 52 AS col1
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-1490
SELECT ALL - - CASE + 26 WHEN + + 25 THEN - 4 WHEN + 58 - - 86 / - NULLIF ( + ( 66 ), 99 ) THEN NULL WHEN - AVG ( DISTINCT + 42 ) THEN NULL END AS col0, - COUNT ( * ) - 52 AS col1
----
NULL
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1491
SELECT + COUNT( * ) DIV + 33 + 79 - + - 42
----
121

skipif mysql # not compatible
query I rowsort label-1491
SELECT + COUNT ( * ) / + 33 + 79 - + - 42
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1492
SELECT ALL - + COALESCE ( - 89, - 6 + + COUNT( * ), CAST( - ( - 56 ) AS SIGNED ) * + ( + 57 ) ) col0
----
89

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL - + COALESCE ( - 89, - 6 + + COUNT ( * ), CAST ( - ( - 56 ) AS INTEGER ) * + ( + 57 ) ) col0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-1493
SELECT DISTINCT 74 * 4 + + 47 + - + 8 - - - 44 * + - COALESCE ( COUNT( + - 20 ), - 89 + - 75 * - 46 + - 97 * 47 ) AS col1, COUNT( * ) + - COUNT( DISTINCT 23 ) * + 58
----
379
-57

skipif mysql # not compatible
query II rowsort label-1493
SELECT DISTINCT 74 * 4 + + 47 + - + 8 - - - 44 * + - COALESCE ( COUNT ( + - 20 ), - 89 + - 75 * - 46 + - 97 * 47 ) AS col1, COUNT ( * ) + - COUNT ( DISTINCT 23 ) * + 58
----
379
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-1494
SELECT DISTINCT 99 DIV - 69
----
-1

skipif mysql # not compatible
query I rowsort label-1494
SELECT DISTINCT 99 / - 69
----
-1

query I rowsort
SELECT DISTINCT - + 38 col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1496
SELECT ALL 17 * + 49 + + 40 * - - 96 * + - COUNT( * ) * + CAST( ( + COALESCE ( - 16, COUNT( * ) * - 82 + + - 18 + + MIN( - CAST( NULL AS SIGNED ) ) ) ) AS SIGNED )
----
62273

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL 17 * + 49 + + 40 * - - 96 * + - COUNT ( * ) * + CAST ( ( + COALESCE ( - 16, COUNT ( * ) * - 82 + + - 18 + + MIN ( - CAST ( NULL AS INTEGER ) ) ) ) AS INTEGER )
----
62273

query II rowsort
SELECT - 86 * 96 AS col1, - 58
----
-8256
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT - NULLIF ( 16, + ( - CASE - - 40 WHEN - 2 * - - 11 THEN NULL WHEN + + 72 THEN - + COUNT( DISTINCT - 55 ) END ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-1498
SELECT - NULLIF ( 16, + ( - CASE - - 40 WHEN - 2 * - - 11 THEN NULL WHEN + + 72 THEN - + COUNT ( DISTINCT - 55 ) END ) ) AS col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-1499
SELECT 23 DIV 63 + - 85 DIV - - ( + + 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-1499
SELECT 23 / 63 + - 85 / - - ( + + 81 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT ALL 83 + - 55 * + ( - + CASE - + COALESCE ( + 94, + ( + + 83 ) + COUNT( * ) ) WHEN - - 47 THEN - - 37 + + ( 64 ) + + 42 WHEN - 76 THEN NULL ELSE - 8 END ) col2
----
-357

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL 83 + - 55 * + ( - + CASE - + COALESCE ( + 94, + ( + + 83 ) + COUNT ( * ) ) WHEN - - 47 THEN - - 37 + + ( 64 ) + + 42 WHEN - 76 THEN NULL ELSE - 8 END ) col2
----
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT ALL 45 * - + 82 * + - COUNT( * ) + + 17 AS col1
----
3707

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL 45 * - + 82 * + - COUNT ( * ) + + 17 AS col1
----
3707

query I rowsort
SELECT ALL - 9 + 2 col1
----
-7

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

query I rowsort
SELECT + 7 + - + 5 col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1505
SELECT + 71 + - COALESCE ( + CAST( + - 92 AS SIGNED ), + + 29 + 61 - + 77 ) - + 50 AS col1, + CAST( NULL AS SIGNED )
----
113
NULL

skipif mysql # not compatible
query II rowsort label-1505
SELECT + 71 + - COALESCE ( + CAST ( + - 92 AS INTEGER ), + + 29 + 61 - + 77 ) - + 50 AS col1, + CAST ( NULL AS INTEGER )
----
113
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT - COALESCE ( + COUNT( * ), - 81, - - 25 + - 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-1506
SELECT - COALESCE ( + COUNT ( * ), - 81, - - 25 + - 80 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1507
SELECT + 64 * ( - NULLIF ( 48, + NULLIF ( 7, CAST( - 86 AS SIGNED ) / + - 94 ) / + 40 + - COUNT( * ) * + 49 ) )
----
-3072

skipif mysql # not compatible
query I rowsort label-1507
SELECT + 64 * ( - NULLIF ( 48, + NULLIF ( 7, CAST ( - 86 AS INTEGER ) / + - 94 ) / + 40 + - COUNT ( * ) * + 49 ) )
----
-3072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1508
SELECT DISTINCT CASE WHEN NOT - CAST( NULL AS SIGNED ) IS NULL THEN NULL ELSE + ( - 21 ) END AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1508
SELECT DISTINCT CASE WHEN NOT - CAST ( NULL AS INTEGER ) IS NULL THEN NULL ELSE + ( - 21 ) END AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1509
SELECT ALL COALESCE ( - + 42, - CAST( + SUM( DISTINCT + NULLIF ( - 85, - 61 ) ) AS SIGNED ) )
----
-42

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL COALESCE ( - + 42, - CAST ( + SUM ( DISTINCT + NULLIF ( - 85, - 61 ) ) AS INTEGER ) )
----
-42

query I rowsort
SELECT - 17 + + 20 col0
----
3

query I rowsort
SELECT DISTINCT NULLIF ( + ( - + 96 ), - 75 )
----
-96

query I rowsort
SELECT DISTINCT + 29 - + - 22 AS col1
----
51

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

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT SUM ( DISTINCT 16 )
----
16

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1515
SELECT + 22 + + + 1 + + ( CAST( NULL AS SIGNED ) ) * - + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1515
SELECT + 22 + + + 1 + + ( CAST ( NULL AS INTEGER ) ) * - + 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT DISTINCT + + MIN( ALL + - 87 ) - COUNT( * ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT + + MIN ( ALL + - 87 ) - COUNT ( * ) AS col0
----
-88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT MIN( ALL - 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-1518
SELECT MIN ( ALL - 72 ) AS col0
----
-72

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1520
SELECT ALL 88 * CAST( + ( + 6 ) AS SIGNED ) AS col0
----
528

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL 88 * CAST ( + ( + 6 ) AS INTEGER ) AS col0
----
528

query I rowsort
SELECT + + 64 * + + 57 + + 67 + - 96 + - 1 AS col2
----
3618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1522
SELECT - COALESCE ( - - MAX( DISTINCT 15 ), - 34, 2 ) / 24 / + 17 + + - COUNT( * ) + CAST( NULL AS SIGNED ) + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1522
SELECT - COALESCE ( - - MAX ( DISTINCT 15 ), - 34, 2 ) / 24 / + 17 + + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1523
SELECT ALL + 92 * + COUNT( * ) + 46 + + 7 + - - 67 + + COUNT( * ) * + + 61 + 64 DIV - 86 * MIN( + + 77 ) AS col0
----
273

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL + 92 * + COUNT ( * ) + 46 + + 7 + - - 67 + + COUNT ( * ) * + + 61 + 64 / - 86 * MIN ( + + 77 ) AS col0
----
273

query I rowsort
SELECT - - 74 + - 93
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT + COUNT( * ) * - 4 + + ( + MIN( + - 54 ) ) + + COUNT( ALL + 67 )
----
-57

skipif mysql # not compatible
query I rowsort label-1525
SELECT + COUNT ( * ) * - 4 + + ( + MIN ( + - 54 ) ) + + COUNT ( ALL + 67 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT + - 94 - MIN( DISTINCT - 71 )
----
-23

skipif mysql # not compatible
query I rowsort label-1526
SELECT + - 94 - MIN ( DISTINCT - 71 )
----
-23

query I rowsort
SELECT - - 24 * + 27 AS col1
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT DISTINCT MAX( ALL - 24 ) * - 69 * - - 46 + - + 79
----
76097

skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT MAX ( ALL - 24 ) * - 69 * - - 46 + - + 79
----
76097

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL - 91 * 67 - - COALESCE ( 7, - 88 * + 98 + + SUM( 27 ), 24 * + 22 * + 11 - - 75 ) + SUM( ALL - - 89 )
----
-6001

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL - 91 * 67 - - COALESCE ( 7, - 88 * + 98 + + SUM ( 27 ), 24 * + 22 * + 11 - - 75 ) + SUM ( ALL - - 89 )
----
-6001

query I rowsort
SELECT CASE - 49 WHEN - 93 THEN 36 WHEN - 60 + 18 * + ( + - 76 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1531
SELECT 77 * 51 + 76 + + MAX( 54 ) * + 13 * CAST( NULL AS DECIMAL ) + + COUNT( * ) * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT 77 * 51 + 76 + + MAX ( 54 ) * + 13 * CAST ( NULL AS REAL ) + + COUNT ( * ) * 44
----
NULL

query I rowsort
SELECT + ( - + CASE + 52 WHEN - 33 + + 98 + - 39 THEN + 4 ELSE - 30 END )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT CASE + 96 WHEN + 5 * + - COALESCE ( - 40, 99 ) THEN NULL WHEN COUNT( DISTINCT - - 28 ) THEN + 57 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1533
SELECT CASE + 96 WHEN + 5 * + - COALESCE ( - 40, 99 ) THEN NULL WHEN COUNT ( DISTINCT - - 28 ) THEN + 57 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1534
SELECT + 12 + - 18 + - 54 DIV - + COUNT( * ) AS col1, 28
----
48
28

skipif mysql # not compatible
query II rowsort label-1534
SELECT + 12 + - 18 + - 54 / - + COUNT ( * ) AS col1, 28
----
48
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT MIN( DISTINCT 78 ) col2
----
78

skipif mysql # not compatible
query I rowsort label-1535
SELECT MIN ( DISTINCT 78 ) col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT DISTINCT + MAX( ALL 35 ) * - + 77 - + - ( + 75 ) - + 15 * 92 * 29 * - 34
----
1358060

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT + MAX ( ALL 35 ) * - + 77 - + - ( + 75 ) - + 15 * 92 * 29 * - 34
----
1358060

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT + 35 + 29 * 10 * - - ( + 61 ) - - COUNT( * )
----
17726

skipif mysql # not compatible
query I rowsort label-1537
SELECT + 35 + 29 * 10 * - - ( + 61 ) - - COUNT ( * )
----
17726

query I rowsort
SELECT + 5 * + 77 * 12 * 10
----
46200

onlyif mysql # aggregate syntax: 
query II rowsort label-1539
SELECT + COUNT( * ) * + 13 AS col2, ( 46 ) AS col1
----
13
46

skipif mysql # not compatible
query II rowsort label-1539
SELECT + COUNT ( * ) * + 13 AS col2, ( 46 ) AS col1
----
13
46

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

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

query I rowsort
SELECT + 81 - - 22 + + 57 * - 6 * - 75
----
25753

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT - 4 + 61 + SUM( DISTINCT - 67 )
----
-10

skipif mysql # not compatible
query I rowsort label-1542
SELECT - 4 + 61 + SUM ( DISTINCT - 67 )
----
-10

query I rowsort
SELECT - 75 + ( 5 ) AS col2
----
-70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1545
SELECT DISTINCT - 91 * CAST( + ( 64 ) AS SIGNED ) + + SUM( DISTINCT - - COALESCE ( - - 32, 50, + 72 DIV - 46 + - + 50 - - 84 + + 46 ) )
----
-5792

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT - 91 * CAST ( + ( 64 ) AS INTEGER ) + + SUM ( DISTINCT - - COALESCE ( - - 32, 50, + 72 / - 46 + - + 50 - - 84 + + 46 ) )
----
-5792

query I rowsort
SELECT DISTINCT 20 * + 50 AS col2
----
1000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1547
SELECT + + 16 / + 47 * 39 * - + 4 + 35 / + + 83 + + - 72 + CAST( NULL AS SIGNED ) * 81 + + 69 + - 15 * 49 + + - 38 - - 11 * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT + + 16 / + 47 * 39 * - + 4 + 35 / + + 83 + + - 72 + CAST ( NULL AS INTEGER ) * 81 + + 69 + - 15 * 49 + + - 38 - - 11 * 0 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1548
SELECT 94 DIV 43 + 19 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1548
SELECT 94 / 43 + 19 AS col1
----
21

query I rowsort
SELECT 37 + - - 12 + + 6 + 81 + + 77
----
213

query I rowsort
SELECT ALL + - ( - - 83 ) + - 88 - + 70
----
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT + + CASE + 88 WHEN + 53 + + 58 THEN + CASE - CASE - 10 WHEN - 43 * + MIN( 83 ) THEN NULL WHEN + - COUNT( * ) + + 83 THEN + 97 END WHEN COALESCE ( - + 61, + + 31 / 39 ) THEN - + 3 / 23 + - + ( - 59 ) ELSE - 80 + + 89 END / - 14 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1551
SELECT + + CASE + 88 WHEN + 53 + + 58 THEN + CASE - CASE - 10 WHEN - 43 * + MIN ( 83 ) THEN NULL WHEN + - COUNT ( * ) + + 83 THEN + 97 END WHEN COALESCE ( - + 61, + + 31 / 39 ) THEN - + 3 / 23 + - + ( - 59 ) ELSE - 80 + + 89 END / - 14 ELSE NULL END AS col0
----
NULL

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

query I rowsort
SELECT ALL - NULLIF ( - 73, - 20 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT + - 58 * COUNT( * ) * - 98 - - 87
----
5771

skipif mysql # not compatible
query I rowsort label-1554
SELECT + - 58 * COUNT ( * ) * - 98 - - 87
----
5771

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1555
SELECT CAST( NULL AS DECIMAL ) * - - 2 - - - 26 + + 93 * - + 37 * 62 * + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1555
SELECT CAST ( NULL AS REAL ) * - - 2 - - - 26 + + 93 * - + 37 * 62 * + 92 AS col0
----
NULL

query I rowsort
SELECT 93 + 72
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT ( - COUNT( DISTINCT 95 ) ) * - 69 + + 89 * 74 * 76 col2
----
500605

skipif mysql # not compatible
query I rowsort label-1557
SELECT ( - COUNT ( DISTINCT 95 ) ) * - 69 + + 89 * 74 * 76 col2
----
500605

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1558
SELECT COUNT( + - 15 ) * 75 DIV - 27 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1558
SELECT COUNT ( + - 15 ) * 75 / - 27 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT 2 + + - 22 * COUNT( * ) * + 88
----
-1934

skipif mysql # not compatible
query I rowsort label-1559
SELECT 2 + + - 22 * COUNT ( * ) * + 88
----
-1934

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT DISTINCT + COALESCE ( NULLIF ( COUNT( * ), 37 ), 98 * 84 + + 79 + + ( - 99 ) * + ( COUNT( ALL 57 ) ) * + 94 ) - - 9
----
10

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT + COALESCE ( NULLIF ( COUNT ( * ), 37 ), 98 * 84 + + 79 + + ( - 99 ) * + ( COUNT ( ALL 57 ) ) * + 94 ) - - 9
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT - 58 * - + 9 - + SUM( ALL 12 )
----
510

skipif mysql # not compatible
query I rowsort label-1561
SELECT - 58 * - + 9 - + SUM ( ALL 12 )
----
510

query II rowsort
SELECT ALL - 99, - 31 AS col1
----
-99
-31

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT 8 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-1564
SELECT 8 / - 74
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1565
SELECT CASE 69 WHEN 16 THEN NULL WHEN MIN( - - 2 ) THEN NULL ELSE + ( 38 ) + 65 END * - 3 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1565
SELECT CASE 69 WHEN 16 THEN NULL WHEN MIN ( - - 2 ) THEN NULL ELSE + ( 38 ) + 65 END * - 3 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1566
SELECT ALL AVG ( + + 94 ) * + 42 * + 86 + + - NULLIF ( CAST( NULL AS SIGNED ), COALESCE ( - - COUNT( * ), - 58 + 96 / + COUNT( * ), + + ( - 43 ) + - - 5 + + 48 / + 73 + + 37 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL AVG ( + + 94 ) * + 42 * + 86 + + - NULLIF ( CAST ( NULL AS INTEGER ), COALESCE ( - - COUNT ( * ), - 58 + 96 / + COUNT ( * ), + + ( - 43 ) + - - 5 + + 48 / + 73 + + 37 ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT 34 DIV + 72 * - + ( ( - 4 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1567
SELECT 34 / + 72 * - + ( ( - 4 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT COALESCE ( - 71, COUNT( * ) ) * 72 AS col0
----
-5112

skipif mysql # not compatible
query I rowsort label-1568
SELECT COALESCE ( - 71, COUNT ( * ) ) * 72 AS col0
----
-5112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1569
SELECT ALL - NULLIF ( ( COUNT( ALL - + 85 ) ), + 70 * + MIN( + 84 ) - + COALESCE ( ( - 56 ), CAST( NULL AS SIGNED ) ) - - 59 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL - NULLIF ( ( COUNT ( ALL - + 85 ) ), + 70 * + MIN ( + 84 ) - + COALESCE ( ( - 56 ), CAST ( NULL AS INTEGER ) ) - - 59 ) AS col1
----
-1

query I rowsort
SELECT + 30 + + 84 AS col1
----
114

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

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL CAST ( NULL AS INTEGER ) + 98 AS col0
----
NULL

query I rowsort
SELECT 24 + 27 AS col2
----
51

query I rowsort
SELECT 70 + - 48 AS col2
----
22

query I rowsort
SELECT - 6 + - COALESCE ( 75, - 24 ) - - 78 + - 21
----
-24

query I rowsort
SELECT 60 * + + 60 * - 83 AS col1
----
-298800

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT 62 + - - NULLIF ( - 24, - 15 / - SUM( - 59 ) ) - + 25 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1576
SELECT 62 + - - NULLIF ( - 24, - 15 / - SUM ( - 59 ) ) - + 25 AS col0
----
13

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

query I rowsort
SELECT DISTINCT 93 + 32 AS col0
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1579
SELECT ALL - ( + SUM( DISTINCT + 11 ) ) + - + CAST( + - 1 AS SIGNED ) AS col1, - CASE - + 11 WHEN + 10 + - - AVG ( ALL - + 2 ) + + 43 + - 15 THEN ( - COUNT( * ) ) * CAST( 22 AS SIGNED ) * MIN( 78 ) + 91 END * - 72 + + + 39 AS col2
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-1579
SELECT ALL - ( + SUM ( DISTINCT + 11 ) ) + - + CAST ( + - 1 AS INTEGER ) AS col1, - CASE - + 11 WHEN + 10 + - - AVG ( ALL - + 2 ) + + 43 + - 15 THEN ( - COUNT ( * ) ) * CAST ( 22 AS INTEGER ) * MIN ( 78 ) + 91 END * - 72 + + + 39 AS col2
----
-10
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1580
SELECT COUNT( * ) + - CAST( + - COUNT( * ) AS SIGNED ) * 69
----
70

skipif mysql # not compatible
query I rowsort label-1580
SELECT COUNT ( * ) + - CAST ( + - COUNT ( * ) AS INTEGER ) * 69
----
70

query I rowsort
SELECT ALL + 86 * - 9 + - 56 AS col1
----
-830

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT ALL - CASE 41 WHEN - 95 / - NULLIF ( - COUNT( * ), - 61 + - 17 ) * - 86 + 81 / COUNT( * ) THEN + 20 * + - 63 WHEN 43 THEN + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL - CASE 41 WHEN - 95 / - NULLIF ( - COUNT ( * ), - 61 + - 17 ) * - 86 + 81 / COUNT ( * ) THEN + 20 * + - 63 WHEN 43 THEN + 96 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1583
SELECT + + 26 * - + NULLIF ( 48, - 83 * + CAST( 62 AS SIGNED ) ) + - + CASE 37 WHEN - - COUNT( * ) THEN + + 81 WHEN - 46 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1583
SELECT + + 26 * - + NULLIF ( 48, - 83 * + CAST ( 62 AS INTEGER ) ) + - + CASE 37 WHEN - - COUNT ( * ) THEN + + 81 WHEN - 46 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1584
SELECT ALL - + MIN( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1585
SELECT 42 DIV - - COUNT( * ) * + + COUNT( DISTINCT - 42 ) + - 47 + + 47 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-1585
SELECT 42 / - - COUNT ( * ) * + + COUNT ( DISTINCT - 42 ) + - 47 + + 47 AS col0
----
42

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

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

query I rowsort
SELECT 19 + - 96
----
-77

query I rowsort
SELECT 62 * - + 31
----
-1922

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1590
SELECT - 22 + + 19 * - 7 * - - 88 * + - 2 * 84 + 46 + - + COALESCE ( + - 77, - 76 ) + + + 38 * - ( - 46 ) + - 1 + - CAST( NULL AS SIGNED ) * + - 91 + + - 29 / NULLIF ( 57, + 84 ) * - 69 * + + 93 / + 92 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT - 22 + + 19 * - 7 * - - 88 * + - 2 * 84 + 46 + - + COALESCE ( + - 77, - 76 ) + + + 38 * - ( - 46 ) + - 1 + - CAST ( NULL AS INTEGER ) * + - 91 + + - 29 / NULLIF ( 57, + 84 ) * - 69 * + + 93 / + 92 * - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - CASE 32 WHEN - 59 THEN + ( 82 ) + + ( - + 96 ) END AS col2
----
NULL

query I rowsort
SELECT ( + + 57 ) * + + 69 + 79 AS col1
----
4012

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1593
SELECT DISTINCT - 32 DIV - CAST( 38 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT - 32 / - CAST ( 38 AS INTEGER )
----
0

query II rowsort
SELECT DISTINCT 12 - + 74 AS col1, 58
----
-62
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1595
SELECT 12 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1595
SELECT 12 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT 18 + - 71 AS col2
----
-53

query II rowsort
SELECT ALL - 54, 77 AS col1
----
-54
77

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

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

query I rowsort
SELECT 34 * - 85 AS col1
----
-2890

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT DISTINCT - CASE + 69 WHEN - 93 + - + COUNT( * ) THEN 49 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT - CASE + 69 WHEN - 93 + - + COUNT ( * ) THEN 49 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT 24 + - COUNT( * ) + + - 80
----
-57

skipif mysql # not compatible
query I rowsort label-1602
SELECT 24 + - COUNT ( * ) + + - 80
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1603
SELECT SUM( - - 1 ) + + CAST( NULL AS SIGNED ) - 38 + + - 12 * + - 37 * SUM( DISTINCT 51 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1603
SELECT SUM ( - - 1 ) + + CAST ( NULL AS INTEGER ) - 38 + + - 12 * + - 37 * SUM ( DISTINCT 51 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1604
SELECT ALL 22 + - CAST( + + COALESCE ( - 69, + AVG ( DISTINCT + 99 ) DIV 80, 30 + - COALESCE ( 3, + 51, + - 7 + NULLIF ( + 51, + 48 * - CASE - 44 WHEN - 56 + 40 THEN NULL WHEN - 53 DIV + - CAST( - + 0 AS SIGNED ) DIV + + 34 THEN NULL ELSE - + 63 END ) ) ) AS SIGNED ) * - CASE + COUNT( * ) WHEN - 98 * - CAST( NULL AS SIGNED ) THEN NULL ELSE - - 41 DIV + ( + 30 ) + - 92 - - + 90 END + 44 * 54 + 63 AS col0
----
2530

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL 22 + - CAST ( + + COALESCE ( - 69, + AVG ( DISTINCT + 99 ) / 80, 30 + - COALESCE ( 3, + 51, + - 7 + NULLIF ( + 51, + 48 * - CASE - 44 WHEN - 56 + 40 THEN NULL WHEN - 53 / + - CAST ( - + 0 AS INTEGER ) / + + 34 THEN NULL ELSE - + 63 END ) ) ) AS INTEGER ) * - CASE + COUNT ( * ) WHEN - 98 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE - - 41 / + ( + 30 ) + - 92 - - + 90 END + 44 * 54 + 63 AS col0
----
2530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1605
SELECT 38 AS col0, + CAST( NULL AS SIGNED ) * - COALESCE ( CAST( NULL AS SIGNED ), - 1, + 32, - 20 ) * + COALESCE ( + - MIN( + 36 ), + 31 ) col0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-1605
SELECT 38 AS col0, + CAST ( NULL AS INTEGER ) * - COALESCE ( CAST ( NULL AS INTEGER ), - 1, + 32, - 20 ) * + COALESCE ( + - MIN ( + 36 ), + 31 ) col0
----
38
NULL

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

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

query I rowsort
SELECT + 15 * - + 5 + 81 AS col2
----
6

query I rowsort
SELECT ALL 54 * - 89 * - 25 AS col2
----
120150

query I rowsort
SELECT 5 + + 1 col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT ALL - - MAX( + 45 ) + ( - 35 ) * + COUNT( DISTINCT + 76 )
----
10

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL - - MAX ( + 45 ) + ( - 35 ) * + COUNT ( DISTINCT + 76 )
----
10

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

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

query I rowsort
SELECT - 81 - - 45 + - 60
----
-96

query I rowsort
SELECT ALL 20 * - - 91
----
1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1614
SELECT - + CAST( + ( + + ( MIN( - 31 ) ) ) AS SIGNED ) DIV + 36 * 27 + - 70
----
-70

skipif mysql # not compatible
query I rowsort label-1614
SELECT - + CAST ( + ( + + ( MIN ( - 31 ) ) ) AS INTEGER ) / + 36 * 27 + - 70
----
-70

query I rowsort
SELECT + + 81 + 95 col0
----
176

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

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

query II rowsort
SELECT DISTINCT - 5 col0, - 35 + - - ( - 71 )
----
-5
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1618
SELECT ALL - 57 * 88 AS col1, CAST( - 66 AS SIGNED ) * 16 - + CASE + + 40 WHEN + 95 + 23 + COUNT( * ) + - 65 + 86 * + AVG ( - + 61 ) * + 88 THEN - 83 + - 34 + + 6 * 67 END
----
-5016
NULL

skipif mysql # not compatible
query II rowsort label-1618
SELECT ALL - 57 * 88 AS col1, CAST ( - 66 AS INTEGER ) * 16 - + CASE + + 40 WHEN + 95 + 23 + COUNT ( * ) + - 65 + 86 * + AVG ( - + 61 ) * + 88 THEN - 83 + - 34 + + 6 * 67 END
----
-5016
NULL

query II rowsort
SELECT DISTINCT + 82, + 65 * - 90 * + + COALESCE ( - 18, - 41 * - 86 + + - 28 + + 3 ) col2
----
82
105300

query I rowsort
SELECT - 97 * 44 col1
----
-4268

query II rowsort
SELECT - - 46 AS col1, - 28 AS col0
----
46
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT + + ( - SUM( - ( - 40 ) ) ) * 4 AS col1
----
-160

skipif mysql # not compatible
query I rowsort label-1622
SELECT + + ( - SUM ( - ( - 40 ) ) ) * 4 AS col1
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1623
SELECT ALL + 36 AS col2, COALESCE ( - - CASE - ( - + 3 ) WHEN + ( - 96 ) + 58 THEN NULL WHEN - CASE COUNT( * ) WHEN - 42 THEN - 98 END THEN CAST( - 84 AS SIGNED ) ELSE + COUNT( * ) END, 39 ) + - COUNT( * )
----
36
0

skipif mysql # not compatible
query II rowsort label-1623
SELECT ALL + 36 AS col2, COALESCE ( - - CASE - ( - + 3 ) WHEN + ( - 96 ) + 58 THEN NULL WHEN - CASE COUNT ( * ) WHEN - 42 THEN - 98 END THEN CAST ( - 84 AS INTEGER ) ELSE + COUNT ( * ) END, 39 ) + - COUNT ( * )
----
36
0

query I rowsort
SELECT + COALESCE ( 26, 32 * + 84 * - 46 * - 32 * + 68 + 74 + - 85 + - + 29 * 70 * + COALESCE ( - 1, 69 * + 18 ) + - 61 + 76, ( + 22 ), + 8 * - 9 + + - 58 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1625
SELECT ALL MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * + 77 * 66 * - 29 AS col0, - 97 + + - 67 * - 40 AS col2
----
NULL
2583

skipif mysql # not compatible
query II rowsort label-1625
SELECT ALL MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 77 * 66 * - 29 AS col0, - 97 + + - 67 * - 40 AS col2
----
NULL
2583

query I rowsort
SELECT + 66 * 38
----
2508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1627
SELECT + CASE + + CAST( NULL AS SIGNED ) WHEN 41 THEN + SUM( ALL + 43 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1627
SELECT + CASE + + CAST ( NULL AS INTEGER ) WHEN 41 THEN + SUM ( ALL + 43 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1628
SELECT CASE + 30 WHEN + + 48 THEN + ( - - CAST( - COUNT( * ) AS SIGNED ) ) + - 21 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1628
SELECT CASE + 30 WHEN + + 48 THEN + ( - - CAST ( - COUNT ( * ) AS INTEGER ) ) + - 21 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 36 * + 34 * + 34 * - 87 AS col2
----
-3620592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1630
SELECT NULLIF ( + 11, + - CAST( 65 AS SIGNED ) + + 75 )
----
11

skipif mysql # not compatible
query I rowsort label-1630
SELECT NULLIF ( + 11, + - CAST ( 65 AS INTEGER ) + + 75 )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1631
SELECT 47 * 81 - + 27 DIV + ( 24 ) + - + 69
----
3737

skipif mysql # not compatible
query I rowsort label-1631
SELECT 47 * 81 - + 27 / + ( 24 ) + - + 69
----
3737

query II rowsort
SELECT - 12 * - 49, 63 AS col0
----
588
63

query II rowsort
SELECT - 70 * - - 18, 64 AS col1
----
-1260
64

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1636
SELECT CASE - + 50 WHEN + - 16 THEN NULL WHEN - COUNT( * ) * + 75 THEN - ( 77 ) * 75 END, - 14 AS col0
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-1636
SELECT CASE - + 50 WHEN + - 16 THEN NULL WHEN - COUNT ( * ) * + 75 THEN - ( 77 ) * 75 END, - 14 AS col0
----
NULL
-14

query I rowsort
SELECT - 62 * - 19 * + 66 * - 40 + + 83 AS col0
----
-3109837

onlyif mysql # DIV for integer division: 
query I rowsort label-1638
SELECT ALL + 84 DIV + - 44 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL + 84 / + - 44 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1639
SELECT COALESCE ( + - 92, 89, + CAST( + - COUNT( * ) AS SIGNED ) + + 22 - + MIN( - - 2 ) * - 72 )
----
-92

skipif mysql # not compatible
query I rowsort label-1639
SELECT COALESCE ( + - 92, 89, + CAST ( + - COUNT ( * ) AS INTEGER ) + + 22 - + MIN ( - - 2 ) * - 72 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1640
SELECT 84 * + 14 * - + 84 - - + CASE + COUNT( * ) WHEN + ( - - COUNT( * ) ) + CAST( NULL AS SIGNED ) THEN NULL WHEN - 59 + 65 + 66 THEN + - 51 + 90 + + 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1640
SELECT 84 * + 14 * - + 84 - - + CASE + COUNT ( * ) WHEN + ( - - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 59 + 65 + 66 THEN + - 51 + 90 + + 22 END
----
NULL

query I rowsort
SELECT - 46 * - - 97 * 43
----
-191866

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT DISTINCT + 59 * + MIN( + 49 ) * - + COALESCE ( - 77, 78 * - - 68 ) + 63 AS col1
----
222670

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT + 59 * + MIN ( + 49 ) * - + COALESCE ( - 77, 78 * - - 68 ) + 63 AS col1
----
222670

query I rowsort
SELECT - 12 + + ( - NULLIF ( 89, 0 ) ) AS col2
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1644
SELECT ALL 83 * - 76 + - ( - + CAST( NULL AS SIGNED ) ) + + ( + ( + ( 72 ) ) ) - - + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL 83 * - 76 + - ( - + CAST ( NULL AS INTEGER ) ) + + ( + ( + ( 72 ) ) ) - - + 22 AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( 8 ) AS col2
----
8

query I rowsort
SELECT + + 90 * - + 62
----
-5580

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

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

query I rowsort
SELECT DISTINCT - 63 + + + 50
----
-13

query I rowsort
SELECT - - 52 - - - 66
----
-14

query I rowsort
SELECT ALL + + 58 + + + ( 6 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT ALL - 72 + + ( - COUNT( * ) ) * + 3 + + 65
----
-10

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL - 72 + + ( - COUNT ( * ) ) * + 3 + + 65
----
-10

query I rowsort
SELECT DISTINCT + - 16 * CASE - 37 WHEN + 88 - - - 36 THEN 3 END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1654
SELECT ALL CAST( CASE - CASE + 93 WHEN - - 45 THEN MIN( ALL + 80 ) WHEN CAST( 78 AS SIGNED ) * - NULLIF ( - - 46, COUNT( * ) + NULLIF ( 6, - + 18 ) ) * - 7 + - NULLIF ( + - 56, - COUNT( - 14 ) * 0 * - 19 * - 59 - 73 + - 91 ) + - ( + 89 ) THEN - 65 + 72 END WHEN ( - - 20 ) + - + 12 THEN + 27 - + COUNT( * ) DIV - COUNT( * ) * - 24 * COUNT( * ) WHEN 87 * 28 THEN NULL ELSE 91 END AS SIGNED ) DIV + ( 91 * 96 + - 58 )
----
0

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL CAST ( CASE - CASE + 93 WHEN - - 45 THEN MIN ( ALL + 80 ) WHEN CAST ( 78 AS INTEGER ) * - NULLIF ( - - 46, COUNT ( * ) + NULLIF ( 6, - + 18 ) ) * - 7 + - NULLIF ( + - 56, - COUNT ( - 14 ) * 0 * - 19 * - 59 - 73 + - 91 ) + - ( + 89 ) THEN - 65 + 72 END WHEN ( - - 20 ) + - + 12 THEN + 27 - + COUNT ( * ) / - COUNT ( * ) * - 24 * COUNT ( * ) WHEN 87 * 28 THEN NULL ELSE 91 END AS INTEGER ) / + ( 91 * 96 + - 58 )
----
0

query I rowsort
SELECT + - 25 * - - 13
----
-325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1656
SELECT - - 14 + + COUNT( * ) DIV + 82 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1656
SELECT - - 14 + + COUNT ( * ) / + 82 AS col2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1657
SELECT + - 9 DIV - + 80 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1657
SELECT + - 9 / - + 80 + - COUNT ( * )
----
-1

query I rowsort
SELECT - - 64 + - 67
----
-3

query I rowsort
SELECT - 26 + - 70 * + 10 * + 86
----
-60226

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT DISTINCT - COUNT( ALL + 90 ) * 90 + - 44 AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT - COUNT ( ALL + 90 ) * 90 + - 44 AS col2
----
-134

query I rowsort
SELECT - 89 * 75 col0
----
-6675

onlyif mysql # aggregate syntax: 
query II rowsort label-1662
SELECT DISTINCT + 79, 46 * + COUNT( * ) * NULLIF ( - - 36, + + 44 * - 28 - COUNT( DISTINCT + 61 ) * + COUNT( * ) ) AS col0
----
79
1656

skipif mysql # not compatible
query II rowsort label-1662
SELECT DISTINCT + 79, 46 * + COUNT ( * ) * NULLIF ( - - 36, + + 44 * - 28 - COUNT ( DISTINCT + 61 ) * + COUNT ( * ) ) AS col0
----
79
1656

onlyif mysql # DIV for integer division: 
query I rowsort label-1663
SELECT ALL + 25 DIV + 85 + + 50 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL + 25 / + 85 + + 50 AS col0
----
50

query I rowsort
SELECT + 59 * + 67 AS col0
----
3953

query I rowsort
SELECT DISTINCT + ( 96 ) AS col2
----
96

query I rowsort
SELECT DISTINCT 5 * + + 94 AS col2
----
470

query I rowsort
SELECT + CASE + 83 WHEN + - CASE - 77 WHEN + 55 THEN - 1 WHEN 35 THEN + - 43 END THEN NULL WHEN ( + + 72 ) THEN + 22 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1668
SELECT DISTINCT - + CAST( - COUNT( DISTINCT - - CAST( 24 AS SIGNED ) ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT - + CAST ( - COUNT ( DISTINCT - - CAST ( 24 AS INTEGER ) ) AS INTEGER ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1669
SELECT CAST( NULL AS DECIMAL ) / - + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1669
SELECT CAST ( NULL AS REAL ) / - + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT DISTINCT - COUNT( * ) * - - 20 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1670
SELECT DISTINCT - COUNT ( * ) * - - 20 AS col0
----
-20

query I rowsort
SELECT ALL - + 56 - + 80 + + 11 + + + 64
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-1672
SELECT - 78, COUNT( DISTINCT - 49 ) * + 68 + - COUNT( * ) * + 16 - - 94 AS col1
----
-78
146

skipif mysql # not compatible
query II rowsort label-1672
SELECT - 78, COUNT ( DISTINCT - 49 ) * + 68 + - COUNT ( * ) * + 16 - - 94 AS col1
----
-78
146

query II rowsort
SELECT ALL 89 col1, 5 * + + 54 AS col1
----
89
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1674
SELECT DISTINCT 60 DIV MIN( DISTINCT + 13 ) + + + 51 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT 60 / MIN ( DISTINCT + 13 ) + + + 51 AS col2
----
55

query I rowsort
SELECT DISTINCT - ( + 62 ) - 26
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL MAX( DISTINCT - 99 ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL MAX ( DISTINCT - 99 ) col0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-1677
SELECT ALL + COUNT( * ) - + - 11 + - 86 * + - 97 + + + NULLIF ( - 72, - 43 ) * - 86, - 75 AS col1
----
14546
-75

skipif mysql # not compatible
query II rowsort label-1677
SELECT ALL + COUNT ( * ) - + - 11 + - 86 * + - 97 + + + NULLIF ( - 72, - 43 ) * - 86, - 75 AS col1
----
14546
-75

query I rowsort
SELECT + 52 * 83 * - 87
----
-375492

query I rowsort
SELECT DISTINCT + - 14 * 96 * + 31
----
-41664

query I rowsort
SELECT 14 + 7 AS col0
----
21

query I rowsort
SELECT + 49 * + - 73
----
-3577

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL + - 39 * ( 1 ) * - 41 * ( - NULLIF ( + 54, COUNT( * ) + - + 2 + ( - - 94 ) ) ) AS col1
----
-86346

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL + - 39 * ( 1 ) * - 41 * ( - NULLIF ( + 54, COUNT ( * ) + - + 2 + ( - - 94 ) ) ) AS col1
----
-86346

query II rowsort
SELECT DISTINCT + ( 18 ) * - 70 AS col1, 78
----
-1260
78

query I rowsort
SELECT - 15 * + 35 AS col1
----
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT ALL + COALESCE ( - - 54, + COUNT( * ) * - - 86, + + 91 + - 11 ) * + 85
----
4590

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL + COALESCE ( - - 54, + COUNT ( * ) * - - 86, + + 91 + - 11 ) * + 85
----
4590

query I rowsort
SELECT - CASE - ( + + ( - - 8 ) ) WHEN 0 THEN + 50 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL COUNT( DISTINCT + 44 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL COUNT ( DISTINCT + 44 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1688
SELECT COUNT( * ) * + + 3, + 97 + 16 AS col0
----
3
113

skipif mysql # not compatible
query II rowsort label-1688
SELECT COUNT ( * ) * + + 3, + 97 + 16 AS col0
----
3
113

onlyif mysql # DIV for integer division: 
query I rowsort label-1689
SELECT 27 DIV + + ( + + 66 )
----
0

skipif mysql # not compatible
query I rowsort label-1689
SELECT 27 / + + ( + + 66 )
----
0

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

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL - ( + - 17 ) + - - COUNT ( * ) AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT DISTINCT - ( + + 75 ) DIV - + 14 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT - ( + + 75 ) / - + 14 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT ALL + MAX( ALL + CAST( NULL AS SIGNED ) ) + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + MAX ( ALL + CAST ( NULL AS INTEGER ) ) + 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT DISTINCT 64 * 79 * + COALESCE ( + SUM( 13 ), + 30 ) AS col2
----
65728

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT 64 * 79 * + COALESCE ( + SUM ( 13 ), + 30 ) AS col2
----
65728

query I rowsort
SELECT DISTINCT + ( - - 43 ) + + 68
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-1695
SELECT ALL - SUM( + 58 ) * - ( - 78 ) AS col0, ( - 59 )
----
-4524
-59

skipif mysql # not compatible
query II rowsort label-1695
SELECT ALL - SUM ( + 58 ) * - ( - 78 ) AS col0, ( - 59 )
----
-4524
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1696
SELECT ALL + 21 + + 10 + - 3 DIV + + 71 * - CAST( 70 AS SIGNED ) + 86 * + 88 + 95, + MIN( + 90 ) AS col2
----
7694
90

skipif mysql # not compatible
query II rowsort label-1696
SELECT ALL + 21 + + 10 + - 3 / + + 71 * - CAST ( 70 AS INTEGER ) + 86 * + 88 + 95, + MIN ( + 90 ) AS col2
----
7694
90

query I rowsort
SELECT 30 * - + NULLIF ( 17, - 89 / 89 ) + - - 16 * - ( - + ( - 2 ) ) * + - 44 - + 84
----
814

onlyif mysql # aggregate syntax: 
query II rowsort label-1698
SELECT COUNT( * ) * - - 36 * - + 50 + - 46 col1, 39
----
-1846
39

skipif mysql # not compatible
query II rowsort label-1698
SELECT COUNT ( * ) * - - 36 * - + 50 + - 46 col1, 39
----
-1846
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1699
SELECT + COUNT( * ) DIV - 62 + - 76 DIV + 82 + - 44 + - COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1699
SELECT + COUNT ( * ) / - 62 + - 76 / + 82 + - 44 + - COUNT ( * ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ( MIN( ( + 20 ) ) ) * COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-1700
SELECT ( MIN ( ( + 20 ) ) ) * COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT + MAX( DISTINCT - 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1701
SELECT + MAX ( DISTINCT - 22 ) AS col2
----
-22

query I rowsort
SELECT 83 * - + 80 AS col0
----
-6640

query I rowsort
SELECT ALL + 13 * + 13 AS col0
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1704
SELECT DISTINCT NULLIF ( + NULLIF ( + CAST( 19 AS SIGNED ), - 19 + - 59 + - 55 * + 40 ), COALESCE ( - MAX( ALL + 90 ), - 64, - - 98 ) ) - + - 54 + + 40 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT NULLIF ( + NULLIF ( + CAST ( 19 AS INTEGER ), - 19 + - 59 + - 55 * + 40 ), COALESCE ( - MAX ( ALL + 90 ), - 64, - - 98 ) ) - + - 54 + + 40 AS col1
----
113

query I rowsort
SELECT ALL - 69 - + 49 + + - 33 AS col1
----
-151

query I rowsort
SELECT - 6 * - + 3
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT + 41 * COUNT( ALL - - 87 ) + + - COUNT( * ) + - 25 col2
----
15

skipif mysql # not compatible
query I rowsort label-1707
SELECT + 41 * COUNT ( ALL - - 87 ) + + - COUNT ( * ) + - 25 col2
----
15

query I rowsort
SELECT + 42 * - + 51
----
-2142

query I rowsort
SELECT - 45 * + - 21 - - - 0 AS col1
----
945

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

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT - MIN ( DISTINCT - 25 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT ALL - 37 DIV + 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL - 37 / + 41 AS col1
----
0

query II rowsort
SELECT + 8 * NULLIF ( 59, + 40 ), 96 AS col1
----
472
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1713
SELECT DISTINCT 78 / 99 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT 78 / 99 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ALL SUM( DISTINCT - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL SUM ( DISTINCT - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT COUNT( * ) + - ( - 56 ) + - 15 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-1715
SELECT COUNT ( * ) + - ( - 56 ) + - 15 AS col0
----
42

query I rowsort
SELECT ALL + ( 48 ) + - 56 * 57
----
-3144

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1717
SELECT CAST( NULL AS DECIMAL ) + CASE + 47 WHEN + + 28 / - 12 + - - 87 - 90 THEN + - 93 WHEN + 59 + + CAST( - + 77 AS SIGNED ) THEN NULL END - + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-1717
SELECT CAST ( NULL AS REAL ) + CASE + 47 WHEN + + 28 / - 12 + - - 87 - 90 THEN + - 93 WHEN + 59 + + CAST ( - + 77 AS INTEGER ) THEN NULL END - + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT 53 - + + MAX( DISTINCT 65 ) * - ( 11 ) + + 78 AS col2
----
846

skipif mysql # not compatible
query I rowsort label-1718
SELECT 53 - + + MAX ( DISTINCT 65 ) * - ( 11 ) + + 78 AS col2
----
846

query I rowsort
SELECT ALL - 97 * + 89 col1
----
-8633

query I rowsort
SELECT ALL 41 + - 16 + - + 92 * + 30 AS col1
----
-2735

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT DISTINCT COUNT( * ) + - 3 - + 24 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT COUNT ( * ) + - 3 - + 24 AS col2
----
-26

query I rowsort
SELECT ALL + 25 + + 89 * + 34 + - 84
----
2967

query I rowsort
SELECT 33 * + 39 AS col0
----
1287

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1725
SELECT NULLIF ( - COUNT( * ), 9 ), - 10 * + 31 * - 53 AS col1
----
-1
16430

skipif mysql # not compatible
query II rowsort label-1725
SELECT NULLIF ( - COUNT ( * ), 9 ), - 10 * + 31 * - 53 AS col1
----
-1
16430

onlyif mysql # DIV for integer division: 
query I rowsort label-1726
SELECT ALL - 62 DIV + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL - 62 / + 81 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1727
SELECT - 69 DIV 41 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1727
SELECT - 69 / 41 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT - 75 + - 27 + + COUNT( * ) * + COUNT( * )
----
-101

skipif mysql # not compatible
query I rowsort label-1728
SELECT - 75 + - 27 + + COUNT ( * ) * + COUNT ( * )
----
-101

query I rowsort
SELECT - 87 * 9 AS col1
----
-783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1730
SELECT + 49 * - 18 + - 11 * + + 99 + + 56 * - - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1730
SELECT + 49 * - 18 + - 11 * + + 99 + + 56 * - - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT DISTINCT - 35 * - COUNT( * ) * 28
----
980

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT - 35 * - COUNT ( * ) * 28
----
980

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

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL + - 72 * - + 22 + - COUNT ( * ) col1
----
1583

query I rowsort
SELECT DISTINCT - + 10 * 51 * 6
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT + - COUNT( + 34 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1734
SELECT + - COUNT ( + 34 ) col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-1735
SELECT + 63 AS col2, - 56 DIV 52 * 15
----
63
-15

skipif mysql # not compatible
query II rowsort label-1735
SELECT + 63 AS col2, - 56 / 52 * 15
----
63
-15

query II rowsort
SELECT + 63 AS col0, - COALESCE ( + 75, - 68, + + 8 ) * + 87 - - - 79
----
63
-6604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1737
SELECT ALL + CASE - 97 WHEN 23 * COUNT( * ) THEN - CAST( NULL AS SIGNED ) - - + 87 WHEN - 85 THEN 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL + CASE - 97 WHEN 23 * COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) - - + 87 WHEN - 85 THEN 6 END
----
NULL

query I rowsort
SELECT - + 52 * - + 54 AS col0
----
2808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1739
SELECT ALL 23 + + - CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) * - + 24 * - 23 / COUNT( * ) + + + COUNT( * ) + 75 - - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL 23 + + - CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) * - + 24 * - 23 / COUNT ( * ) + + + COUNT ( * ) + 75 - - 99 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1740
SELECT - + NULLIF ( + CAST( NULL AS SIGNED ), 77 ) * + 9 / CAST( NULL AS SIGNED ) + 44 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1740
SELECT - + NULLIF ( + CAST ( NULL AS INTEGER ), 77 ) * + 9 / CAST ( NULL AS INTEGER ) + 44 + - - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT ALL - 97 DIV 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL - 97 / 98 AS col0
----
0

query I rowsort
SELECT ALL 89 + - 42
----
47

query I rowsort
SELECT + 83 * + + 39 AS col1
----
3237

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1744
SELECT + 89 + - CASE - COUNT( * ) WHEN + 54 - - - 41 THEN + - 80 * - 50 ELSE + + COALESCE ( 11, + + COUNT( * ) - - 38 * 72 DIV 14 + 11 ) END, + COUNT( * ) * 56 * + 10 AS col0
----
78
560

skipif mysql # not compatible
query II rowsort label-1744
SELECT + 89 + - CASE - COUNT ( * ) WHEN + 54 - - - 41 THEN + - 80 * - 50 ELSE + + COALESCE ( 11, + + COUNT ( * ) - - 38 * 72 / 14 + 11 ) END, + COUNT ( * ) * 56 * + 10 AS col0
----
78
560

onlyif mysql # aggregate syntax: 
query II rowsort label-1745
SELECT + ( - - 37 ) + 28 * 22 AS col2, MIN( + 63 )
----
653
63

skipif mysql # not compatible
query II rowsort label-1745
SELECT + ( - - 37 ) + 28 * 22 AS col2, MIN ( + 63 )
----
653
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1746
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 87 * + ( + ( + COALESCE ( - 20, + - MAX( + + 91 ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 87 * + ( + ( + COALESCE ( - 20, + - MAX ( + + 91 ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1747
SELECT DISTINCT 48 col0, - COUNT( * ) + + - NULLIF ( + 8, - - ( - + 10 ) ) + COUNT( * ) + 73 AS col1
----
48
65

skipif mysql # not compatible
query II rowsort label-1747
SELECT DISTINCT 48 col0, - COUNT ( * ) + + - NULLIF ( + 8, - - ( - + 10 ) ) + COUNT ( * ) + 73 AS col1
----
48
65

query I rowsort
SELECT + 29 * - 13 AS col2
----
-377

query I rowsort
SELECT ALL 35 + ( 65 )
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-1750
SELECT + 17 - + 63 col0, + NULLIF ( - COALESCE ( MAX( + 62 ), - 55 ), + 71 * - - 83 ) - + 0 * - COUNT( DISTINCT - 92 ) AS col0
----
-46
-62

skipif mysql # not compatible
query II rowsort label-1750
SELECT + 17 - + 63 col0, + NULLIF ( - COALESCE ( MAX ( + 62 ), - 55 ), + 71 * - - 83 ) - + 0 * - COUNT ( DISTINCT - 92 ) AS col0
----
-46
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1751
SELECT + 93 - + + 40 AS col1, COUNT( * ) - - + 41 + - CAST( NULL AS SIGNED ) + + - COUNT( * ) * + 65 * + COUNT( * ) AS col2
----
53
NULL

skipif mysql # not compatible
query II rowsort label-1751
SELECT + 93 - + + 40 AS col1, COUNT ( * ) - - + 41 + - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) * + 65 * + COUNT ( * ) AS col2
----
53
NULL

query I rowsort
SELECT - 99 * 46 * COALESCE ( + + 84, + - COALESCE ( 37, + + 57 ) ) AS col0
----
-382536

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

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

query II rowsort
SELECT + 33 AS col0, 64
----
33
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1755
SELECT ALL 32 DIV + 18 - + 21 * - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL 32 / + 18 - + 21 * - COUNT ( * )
----
22

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

skipif mysql # not compatible
query II rowsort label-1756
SELECT DISTINCT + + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER )
----
NULL
NULL

query II rowsort
SELECT ALL + 2, 84 AS col0
----
2
84

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

skipif mysql # not compatible
query I rowsort label-1758
SELECT - + SUM ( - 14 ) + + COUNT ( * ) AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1759
SELECT ALL + + CAST( - 25 AS SIGNED ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL + + CAST ( - 25 AS INTEGER ) AS col0
----
-25

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1761
SELECT ALL - 92 DIV + 27
----
-3

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL - 92 / + 27
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1762
SELECT COUNT( * ) AS col2, CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1762
SELECT COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1763
SELECT DISTINCT + + 63 * + NULLIF ( + + CAST( - COUNT( * ) AS SIGNED ), - 19 + - CAST( NULL AS SIGNED ) ) * + 97 + - + 73
----
-6184

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT + + 63 * + NULLIF ( + + CAST ( - COUNT ( * ) AS INTEGER ), - 19 + - CAST ( NULL AS INTEGER ) ) * + 97 + - + 73
----
-6184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1764
SELECT DISTINCT + - 15 * 32 + CAST( 53 AS SIGNED ) * - 84 AS col0
----
-4932

skipif mysql # not compatible
query I rowsort label-1764
SELECT DISTINCT + - 15 * 32 + CAST ( 53 AS INTEGER ) * - 84 AS col0
----
-4932

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT ALL + COUNT( * ) * + + 95 + - 0 + - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL + COUNT ( * ) * + + 95 + - 0 + - COUNT ( * )
----
94

query I rowsort
SELECT - + 43 * - - 8 * - 76 + - - 45 AS col0
----
26189

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ALL + - 65 * + - MAX( ALL - + 77 )
----
-5005

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL + - 65 * + - MAX ( ALL - + 77 )
----
-5005

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1768
SELECT DISTINCT + + 9 * + 96 + - COUNT( DISTINCT - - 42 ) - - - 17 * - - 72 + + COUNT( * ) AS col1, 82 DIV 61 col2
----
-360
1

skipif mysql # not compatible
query II rowsort label-1768
SELECT DISTINCT + + 9 * + 96 + - COUNT ( DISTINCT - - 42 ) - - - 17 * - - 72 + + COUNT ( * ) AS col1, 82 / 61 col2
----
-360
1

query I rowsort
SELECT - + 29 - + 31 + - 60 + + ( - + 0 )
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1770
SELECT - - CASE + - 90 WHEN - ( - - COALESCE ( - 24, CAST( - SUM( ALL 59 ) AS SIGNED ) + - 19 + 61, + - 35 * + - ( + ( 76 ) ) + - ( + COUNT( DISTINCT 1 ) ) ) ) * + - CASE + 90 WHEN - COALESCE ( + 88, ( + - 29 ) ) THEN NULL WHEN - 36 THEN CAST( NULLIF ( - - 85, - + MIN( DISTINCT + 10 ) + 31 ) AS SIGNED ) END THEN NULL ELSE + - 26 END + + COUNT( ALL - 23 ) * + 21 + - - 55 * + COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1770
SELECT - - CASE + - 90 WHEN - ( - - COALESCE ( - 24, CAST ( - SUM ( ALL 59 ) AS INTEGER ) + - 19 + 61, + - 35 * + - ( + ( 76 ) ) + - ( + COUNT ( DISTINCT 1 ) ) ) ) * + - CASE + 90 WHEN - COALESCE ( + 88, ( + - 29 ) ) THEN NULL WHEN - 36 THEN CAST ( NULLIF ( - - 85, - + MIN ( DISTINCT + 10 ) + 31 ) AS INTEGER ) END THEN NULL ELSE + - 26 END + + COUNT ( ALL - 23 ) * + 21 + - - 55 * + COUNT ( * ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-1771
SELECT - + COALESCE ( 27, - 63 + - COUNT( * ) ) AS col1, 6
----
-27
6

skipif mysql # not compatible
query II rowsort label-1771
SELECT - + COALESCE ( 27, - 63 + - COUNT ( * ) ) AS col1, 6
----
-27
6

query I rowsort
SELECT + 66 * + 49
----
3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1773
SELECT - COUNT( - + 98 ) - - 33 + - + 61 + - COUNT( * ) + + - 69 * + CASE - 60 WHEN NULLIF ( - ( + 22 ), CAST( NULL AS SIGNED ) ) THEN NULL WHEN + - 12 + 15 THEN ( AVG ( ALL 17 ) ) * 23 - - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1773
SELECT - COUNT ( - + 98 ) - - 33 + - + 61 + - COUNT ( * ) + + - 69 * + CASE - 60 WHEN NULLIF ( - ( + 22 ), CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + - 12 + 15 THEN ( AVG ( ALL 17 ) ) * 23 - - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT + 30 - - ( 70 ) AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT + CASE 75 WHEN 59 * 40 * - + 22 * 25 THEN NULL WHEN + 67 THEN + - 42 WHEN - + COUNT( * ) + - 40 / + ( ( - + 34 ) ) * + 4 THEN NULL END + + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT + CASE 75 WHEN 59 * 40 * - + 22 * 25 THEN NULL WHEN + 67 THEN + - 42 WHEN - + COUNT ( * ) + - 40 / + ( ( - + 34 ) ) * + 4 THEN NULL END + + - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT ALL - 25 - - ( 5 ) + - + COUNT( * ) * - - 87 * + + 24
----
-2108

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL - 25 - - ( 5 ) + - + COUNT ( * ) * - - 87 * + + 24
----
-2108

query I rowsort
SELECT - 18 + - 49 * - + 37
----
1795

query I rowsort
SELECT ALL 88 * + + ( + - 7 )
----
-616

query I rowsort
SELECT DISTINCT 47 - 71 AS col2
----
-24

query II rowsort
SELECT 88 - + + 71, 87 AS col2
----
17
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT CASE 99 WHEN COALESCE ( + + NULLIF ( + 85, 99 + + 34 ), - NULLIF ( - 86, + ( 85 ) ) ) THEN NULL WHEN 85 THEN NULL ELSE 24 + 63 END * - 29 * - COUNT( * )
----
2523

skipif mysql # not compatible
query I rowsort label-1781
SELECT CASE 99 WHEN COALESCE ( + + NULLIF ( + 85, 99 + + 34 ), - NULLIF ( - 86, + ( 85 ) ) ) THEN NULL WHEN 85 THEN NULL ELSE 24 + 63 END * - 29 * - COUNT ( * )
----
2523

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT ALL + CASE - + 98 WHEN 49 THEN - COUNT( * ) END * - 52 + + 38 / 84
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL + CASE - + 98 WHEN 49 THEN - COUNT ( * ) END * - 52 + + 38 / 84
----
NULL

query II rowsort
SELECT 78 + - 52 AS col2, 41 * - + 14 AS col0
----
26
-574

query I rowsort
SELECT ( + 85 ) + - 8 AS col1
----
77

query I rowsort
SELECT ALL COALESCE ( - ( + 36 ), - + 4 ) * 20
----
-720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1786
SELECT DISTINCT 39 DIV ( MAX( + 82 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT 39 / ( MAX ( + 82 ) ) AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT + CASE - NULLIF ( - COUNT( * ), - ( + MAX( + 47 ) ) ) WHEN - + MAX( + 23 ) THEN + 72 ELSE - + 43 END AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1788
SELECT + CASE - NULLIF ( - COUNT ( * ), - ( + MAX ( + 47 ) ) ) WHEN - + MAX ( + 23 ) THEN + 72 ELSE - + 43 END AS col1
----
-43

query I rowsort
SELECT ALL 55 * - + 67 col1
----
-3685

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT DISTINCT - 63 * + - NULLIF ( + COUNT( * ), + ( + 65 ) ) + + + 51 col0
----
114

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT - 63 * + - NULLIF ( + COUNT ( * ), + ( + 65 ) ) + + + 51 col0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT DISTINCT - 99 + - + 6 DIV 96 * - 94 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT - 99 + - + 6 / 96 * - 94 AS col0
----
-99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1793
SELECT ALL 22 * CASE + - 87 WHEN 13 THEN NULL ELSE + 18 END DIV + 65 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL 22 * CASE + - 87 WHEN 13 THEN NULL ELSE + 18 END / + 65 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT DISTINCT COUNT( * ) + - - 60 * - 82 * + 8 * 40 AS col1
----
-1574399

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT COUNT ( * ) + - - 60 * - 82 * + 8 * 40 AS col1
----
-1574399

query I rowsort
SELECT DISTINCT + 8 + - 40 + ( + 72 )
----
40

query I rowsort
SELECT DISTINCT + 38 + + 79 AS col0
----
117

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

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

query I rowsort
SELECT 9 - - 78 + 4 AS col1
----
91

query I rowsort
SELECT ( + 84 ) * - 15 * 27 AS col0
----
-34020

query I rowsort
SELECT ALL 29 + + 75
----
104

query I rowsort
SELECT ALL + 38 - - 53
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1802
SELECT 47 * + SUM( ALL - - 95 ), + 80 + + COUNT( * ) * 62 AS col1
----
4465
142

skipif mysql # not compatible
query II rowsort label-1802
SELECT 47 * + SUM ( ALL - - 95 ), + 80 + + COUNT ( * ) * 62 AS col1
----
4465
142

query I rowsort
SELECT ALL + 66 * 35
----
2310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1804
SELECT 56 * - + SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1804
SELECT 56 * - + SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 39 - - 24 AS col2
----
63

query I rowsort
SELECT 37 * - + 10
----
-370

query I rowsort
SELECT 46 * - 42
----
-1932

query II rowsort
SELECT ALL 53, 52 AS col1
----
53
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1809
SELECT SUM( ALL 1 ) + 45 + + 73 + - 5 DIV - - 41, 51 col1
----
119
51

skipif mysql # not compatible
query II rowsort label-1809
SELECT SUM ( ALL 1 ) + 45 + + 73 + - 5 / - - 41, 51 col1
----
119
51

query I rowsort
SELECT ALL 34 * 90 AS col0
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT 68 - + COUNT( 46 )
----
67

skipif mysql # not compatible
query I rowsort label-1811
SELECT 68 - + COUNT ( 46 )
----
67

query III rowsort
SELECT - 29 AS col2, 33 * - + COALESCE ( 28, + 35 ) * + 83 AS col1, + + 10
----
-29
-76692
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1813
SELECT ALL + 36 + - COUNT( * ) / - ( + - 88 ) * - 70 + + - CAST( NULL AS SIGNED ), 73 - + COUNT( DISTINCT - 60 ) AS col0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-1813
SELECT ALL + 36 + - COUNT ( * ) / - ( + - 88 ) * - 70 + + - CAST ( NULL AS INTEGER ), 73 - + COUNT ( DISTINCT - 60 ) AS col0
----
NULL
72

query I rowsort
SELECT - 0 * - 22 * + 16
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1815
SELECT DISTINCT + 42 * COUNT( * ) DIV - - 56 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT + 42 * COUNT ( * ) / - - 56 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL - - COUNT( 33 ) * 85 * COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL - - COUNT ( 33 ) * 85 * COUNT ( * )
----
85

query I rowsort
SELECT ALL - + 6 col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) + - ( SUM( 65 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + - ( SUM ( 65 ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT COUNT( * ) * 97 col2
----
97

skipif mysql # not compatible
query I rowsort label-1819
SELECT COUNT ( * ) * 97 col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT - - 6 * 68 * - - 69 + - COUNT( DISTINCT + 45 ) + - + 23
----
28128

skipif mysql # not compatible
query I rowsort label-1820
SELECT - - 6 * 68 * - - 69 + - COUNT ( DISTINCT + 45 ) + - + 23
----
28128

query II rowsort
SELECT ALL - - 56, 75 + - ( - + NULLIF ( - 28, - - 78 ) ) AS col1
----
56
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT 24 + MAX( - - 31 )
----
55

skipif mysql # not compatible
query I rowsort label-1822
SELECT 24 + MAX ( - - 31 )
----
55

query I rowsort
SELECT + 6 * 58 - - 35 + + - 16 AS col0
----
367

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT + + MAX( + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-1824
SELECT + + MAX ( + 11 )
----
11

query I rowsort
SELECT 70 + 42 + - - COALESCE ( - NULLIF ( - 56, - - 26 ), + + 70 * 76 + 63 * - 30, 72 ) + + 83 - + ( + 23 ) * - 78
----
2045

query I rowsort
SELECT ALL 13 - + 10 AS col1
----
3

query I rowsort
SELECT ALL - 57 * + - 65 col2
----
3705

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT DISTINCT 40 * + COUNT( * ) col0
----
40

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT 40 * + COUNT ( * ) col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1829
SELECT + 66 * SUM( ALL 16 ) + 79, 14 AS col1
----
1135
14

skipif mysql # not compatible
query II rowsort label-1829
SELECT + 66 * SUM ( ALL 16 ) + 79, 14 AS col1
----
1135
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT ALL - ( - - CASE + 63 WHEN 73 / - + COUNT( * ) THEN - 76 + - + 13 * - COALESCE ( - - 27, + 98 ) * 38 + 13 ELSE - 74 END )
----
74

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL - ( - - CASE + 63 WHEN 73 / - + COUNT ( * ) THEN - 76 + - + 13 * - COALESCE ( - - 27, + 98 ) * 38 + 13 ELSE - 74 END )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT + 94 + MAX( - - 81 )
----
175

skipif mysql # not compatible
query I rowsort label-1831
SELECT + 94 + MAX ( - - 81 )
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1832
SELECT - CAST( ( - 27 ) AS SIGNED ) * + 73 * + 29 AS col0, - MIN( + 15 )
----
57159
-15

skipif mysql # not compatible
query II rowsort label-1832
SELECT - CAST ( ( - 27 ) AS INTEGER ) * + 73 * + 29 AS col0, - MIN ( + 15 )
----
57159
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-1833
SELECT - CASE - MIN( - 87 ) WHEN + COUNT( * ) THEN + 58 * + MAX( + 96 ) + - 65 - - + 63 END, 63 AS col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-1833
SELECT - CASE - MIN ( - 87 ) WHEN + COUNT ( * ) THEN + 58 * + MAX ( + 96 ) + - 65 - - + 63 END, 63 AS col0
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT ALL MAX( DISTINCT 34 )
----
34

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL MAX ( DISTINCT 34 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1835
SELECT ALL 29 DIV - 70 AS col0, - COUNT( * ) * + - MIN( DISTINCT - CAST( 57 AS SIGNED ) )
----
0
-57

skipif mysql # not compatible
query II rowsort label-1835
SELECT ALL 29 / - 70 AS col0, - COUNT ( * ) * + - MIN ( DISTINCT - CAST ( 57 AS INTEGER ) )
----
0
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1836
SELECT - 40 - + MAX( CAST( NULL AS SIGNED ) ) * + - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1836
SELECT - 40 - + MAX ( CAST ( NULL AS INTEGER ) ) * + - 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT DISTINCT - 90 * - COUNT( ALL - + 8 )
----
90

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT - 90 * - COUNT ( ALL - + 8 )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1838
SELECT + 87 DIV + 45 AS col2, SUM( DISTINCT - 73 )
----
1
-73

skipif mysql # not compatible
query II rowsort label-1838
SELECT + 87 / + 45 AS col2, SUM ( DISTINCT - 73 )
----
1
-73

query I rowsort
SELECT - 93 * 4
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT - 87 - + - COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-1840
SELECT - 87 - + - COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL - 72 + - + SUM( ALL - 94 ) + 77 + - - 74 AS col2
----
173

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL - 72 + - + SUM ( ALL - 94 ) + 77 + - - 74 AS col2
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT - 57 + - CASE - CASE + + 36 WHEN - - 17 THEN NULL WHEN 33 + + ( + 36 ) THEN + 6 WHEN - - 38 - - 47 + - COUNT( * ) - + + ( - COALESCE ( - - 20, + NULLIF ( 24, - AVG ( ALL 49 ) ) ) ) - + ( 40 ) * + 54 + - 46 * + + 80 + + 89 * - 27 + - - 34 THEN NULL ELSE NULL END WHEN - + COUNT( * ) THEN - 98 ELSE NULL END - - ( + - COALESCE ( - 92, - + 41 ) ) * - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1842
SELECT - 57 + - CASE - CASE + + 36 WHEN - - 17 THEN NULL WHEN 33 + + ( + 36 ) THEN + 6 WHEN - - 38 - - 47 + - COUNT ( * ) - + + ( - COALESCE ( - - 20, + NULLIF ( 24, - AVG ( ALL 49 ) ) ) ) - + ( 40 ) * + 54 + - 46 * + + 80 + + 89 * - 27 + - - 34 THEN NULL ELSE NULL END WHEN - + COUNT ( * ) THEN - 98 ELSE NULL END - - ( + - COALESCE ( - 92, - + 41 ) ) * - + 90
----
NULL

query I rowsort
SELECT - 63 - 64 AS col0
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1844
SELECT - COUNT( DISTINCT 72 ) + + + 30 * - - 22 + - 69 + + 2 DIV 94
----
590

skipif mysql # not compatible
query I rowsort label-1844
SELECT - COUNT ( DISTINCT 72 ) + + + 30 * - - 22 + - 69 + + 2 / 94
----
590

query I rowsort
SELECT ALL + 74 + + 97 + 66
----
237

query I rowsort
SELECT ALL - 5 + - + 1 AS col0
----
-6

query I rowsort
SELECT ALL + 13 + 45 AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1848
SELECT - 67 / + CAST( NULL AS SIGNED ) / - 68 + - 29 + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT - 67 / + CAST ( NULL AS INTEGER ) / - 68 + - 29 + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL + 16 * 99 + 21 + + - MAX( DISTINCT - - 69 ) col2
----
1536

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL + 16 * 99 + 21 + + - MAX ( DISTINCT - - 69 ) col2
----
1536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1850
SELECT DISTINCT - + 96 * + 62 + + + COALESCE ( + COALESCE ( - 33, - - COUNT( * ), - - 77, + 95 DIV - ( - + 39 ) ), - 96, + + 9 ), + ( + ( - - 69 ) ) * 94 DIV - CAST( ( - 47 ) AS SIGNED ) AS col0
----
-5985
138

skipif mysql # not compatible
query II rowsort label-1850
SELECT DISTINCT - + 96 * + 62 + + + COALESCE ( + COALESCE ( - 33, - - COUNT ( * ), - - 77, + 95 / - ( - + 39 ) ), - 96, + + 9 ), + ( + ( - - 69 ) ) * 94 / - CAST ( ( - 47 ) AS INTEGER ) AS col0
----
-5985
138

query I rowsort
SELECT + 61 + + - 43 * - - 6
----
-197

query I rowsort
SELECT - 1 * + - 40 AS col0
----
40

query I rowsort
SELECT - + 92 * + 30 * - + 22
----
60720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1854
SELECT DISTINCT SUM( - 12 ) DIV + 62 * + 44 * - COUNT( * ) * - + 25
----
0

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT SUM ( - 12 ) / + 62 * + 44 * - COUNT ( * ) * - + 25
----
0

query I rowsort
SELECT DISTINCT + - ( + - 61 ) AS col2
----
61

query I rowsort
SELECT - 3 * 7 * + 35 AS col1
----
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT + 73 * + 36 + COUNT( * )
----
2629

skipif mysql # not compatible
query I rowsort label-1857
SELECT + 73 * + 36 + COUNT ( * )
----
2629

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1858
SELECT - MAX( 87 ) * COUNT( * ) DIV 25 + + 54 * - - 78 + 25
----
4234

skipif mysql # not compatible
query I rowsort label-1858
SELECT - MAX ( 87 ) * COUNT ( * ) / 25 + + 54 * - - 78 + 25
----
4234

query I rowsort
SELECT + 53 - ( - - 65 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT DISTINCT + CASE - 71 WHEN + - CAST( NULL AS SIGNED ) * - 34 + + 81 THEN NULL WHEN NULLIF ( 67, + - 95 / + + 25 ) - - ( - 27 ) * - 53 THEN + 60 WHEN + 69 THEN - 30 ELSE + + CASE + ( COUNT( * ) ) WHEN 53 + - 98 THEN - MAX( 52 ) WHEN - 55 THEN - 48 * 60 * - 56 WHEN - 40 THEN NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT + CASE - 71 WHEN + - CAST ( NULL AS INTEGER ) * - 34 + + 81 THEN NULL WHEN NULLIF ( 67, + - 95 / + + 25 ) - - ( - 27 ) * - 53 THEN + 60 WHEN + 69 THEN - 30 ELSE + + CASE + ( COUNT ( * ) ) WHEN 53 + - 98 THEN - MAX ( 52 ) WHEN - 55 THEN - 48 * 60 * - 56 WHEN - 40 THEN NULL END END AS col0
----
NULL

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1864
SELECT ALL 35 * - 39 + - + ( 48 ) + + 68 AS col2, AVG ( + NULLIF ( + 45, + 25 ) ) + + 63 + 30 / + 45 + + + CAST( NULL AS SIGNED ) - 44 - + CAST( - COUNT( * ) AS SIGNED ) * + + 48 + + 95 * - SUM( + + 46 )
----
-1345
NULL

skipif mysql # not compatible
query II rowsort label-1864
SELECT ALL 35 * - 39 + - + ( 48 ) + + 68 AS col2, AVG ( + NULLIF ( + 45, + 25 ) ) + + 63 + 30 / + 45 + + + CAST ( NULL AS INTEGER ) - 44 - + CAST ( - COUNT ( * ) AS INTEGER ) * + + 48 + + 95 * - SUM ( + + 46 )
----
-1345
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT SUM( DISTINCT + 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1865
SELECT SUM ( DISTINCT + 30 ) AS col1
----
30

query II rowsort
SELECT - CASE + 67 WHEN + 10 + 72 THEN 62 END AS col0, + 62 * + + 53 AS col1
----
NULL
3286

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT - 69 DIV - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1867
SELECT - 69 / - 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1868
SELECT ALL 75 + - COUNT( * ) + 23, 15 * 1 * 93 * - NULLIF ( + 60, + NULLIF ( + - 9, + + 54 ) * + 11 ) * - 42 * - COUNT( * ) + + 67 AS col0
----
97
-3515333

skipif mysql # not compatible
query II rowsort label-1868
SELECT ALL 75 + - COUNT ( * ) + 23, 15 * 1 * 93 * - NULLIF ( + 60, + NULLIF ( + - 9, + + 54 ) * + 11 ) * - 42 * - COUNT ( * ) + + 67 AS col0
----
97
-3515333

query I rowsort
SELECT + 81 * + 44 * + 12 AS col0
----
42768

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT - 87 + + + COUNT( * ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-1870
SELECT - 87 + + + COUNT ( * ) AS col2
----
-86

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

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

query II rowsort
SELECT 81 col0, 22
----
81
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT - 63 + + 12 - + MIN( - ( + 13 ) ) + - 32 * + COUNT( * ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-1873
SELECT - 63 + + 12 - + MIN ( - ( + 13 ) ) + - 32 * + COUNT ( * ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT ALL + COUNT( * ) + - - COALESCE ( ( 31 ), - 88 ) - - + 22 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL + COUNT ( * ) + - - COALESCE ( ( 31 ), - 88 ) - - + 22 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1875
SELECT + 51 * COUNT( * ) * + 38, + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
1938
NULL

skipif mysql # not compatible
query II rowsort label-1875
SELECT + 51 * COUNT ( * ) * + 38, + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
1938
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1876
SELECT - ( - CASE 78 WHEN - + 47 THEN SUM( DISTINCT + 67 ) END ) AS col1, - 79
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-1876
SELECT - ( - CASE 78 WHEN - + 47 THEN SUM ( DISTINCT + 67 ) END ) AS col1, - 79
----
NULL
-79

query I rowsort
SELECT ALL ( - 39 ) + 76 AS col1
----
37

query II rowsort
SELECT - + 38 AS col2, 57 * 66 * 98 AS col0
----
-38
368676

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT SUM( - - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-1879
SELECT SUM ( - - 91 )
----
91

query I rowsort
SELECT DISTINCT + + 93 * - 18 AS col1
----
-1674

query I rowsort
SELECT + - 87 - + 81
----
-168

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1882
SELECT - - AVG ( + - COALESCE ( 91, - 26 / + + ( 6 ) + - 15 + - 26 ) ) / - CAST( NULL AS SIGNED ) * CAST( + CAST( + 37 AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1882
SELECT - - AVG ( + - COALESCE ( 91, - 26 / + + ( 6 ) + - 15 + - 26 ) ) / - CAST ( NULL AS INTEGER ) * CAST ( + CAST ( + 37 AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT - + ( - 27 ) + - 93 AS col2
----
-66

query I rowsort
SELECT - + 7 * 36
----
-252

query I rowsort
SELECT DISTINCT + NULLIF ( + + 90, + 77 + - 73 / AVG ( ALL + ( - 20 ) ) )
----
90

query I rowsort
SELECT ALL - NULLIF ( - 29, - - ( + NULLIF ( + 73, - 77 / - - 68 - + - 95 * + + ( - 97 ) ) ) * 79 + - 76 * + 99 ) * + 70 AS col1
----
2030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1887
SELECT + COUNT( * ) DIV - 93 * + - 64 - - - 67 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1887
SELECT + COUNT ( * ) / - 93 * + - 64 - - - 67 AS col0
----
-67

query II rowsort
SELECT ALL - 75 * 39 + NULLIF ( - ( + 93 ), 26 ) AS col0, + 53
----
-3018
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1889
SELECT ALL - ( - - CAST( NULL AS SIGNED ) ) AS col0, - 50 * 92 DIV 65
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-1889
SELECT ALL - ( - - CAST ( NULL AS INTEGER ) ) AS col0, - 50 * 92 / 65
----
NULL
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1890
SELECT - 57 DIV - + 22 * + - COUNT( * ) + + + 68 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1890
SELECT - 57 / - + 22 * + - COUNT ( * ) + + + 68 AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1891
SELECT 56 AS col0, CAST( NULL AS SIGNED ) AS col2
----
56
NULL

skipif mysql # not compatible
query II rowsort label-1891
SELECT 56 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
56
NULL

query II rowsort
SELECT + 85 AS col2, 46 * 79
----
85
3634

query I rowsort
SELECT 56 + - - 33
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT COUNT( * ) * - 78 - + 95
----
-173

skipif mysql # not compatible
query I rowsort label-1894
SELECT COUNT ( * ) * - 78 - + 95
----
-173

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL 11 + + + MAX( ALL - 34 )
----
-23

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL 11 + + + MAX ( ALL - 34 )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1897
SELECT AVG ( 79 ) * - CAST( NULL AS SIGNED ) / - 58 * 75 + + 39 * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT AVG ( 79 ) * - CAST ( NULL AS INTEGER ) / - 58 * 75 + + 39 * 54
----
NULL

query I rowsort
SELECT DISTINCT + 99 + 78 * - 62 AS col2
----
-4737

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

query II rowsort
SELECT 28, + 54 AS col1
----
28
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT 97 * + - ( + COUNT( * ) ) * - 72 * - 3 + 87 * 96 - - + 15
----
-12585

skipif mysql # not compatible
query I rowsort label-1901
SELECT 97 * + - ( + COUNT ( * ) ) * - 72 * - 3 + 87 * 96 - - + 15
----
-12585

onlyif mysql # aggregate syntax: 
query II rowsort label-1902
SELECT + 60 AS col1, 7 + + + MAX( ALL - 0 )
----
60
7

skipif mysql # not compatible
query II rowsort label-1902
SELECT + 60 AS col1, 7 + + + MAX ( ALL - 0 )
----
60
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL 75 + + 97 * + + MIN( ALL - + 26 ) * 50 AS col2
----
-126025

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL 75 + + 97 * + + MIN ( ALL - + 26 ) * 50 AS col2
----
-126025

query I rowsort
SELECT 22 * - 19 AS col1
----
-418

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

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

query II rowsort
SELECT ALL 70 AS col2, + 27
----
70
27

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

query I rowsort
SELECT ALL + 73 + 53
----
126

query II rowsort
SELECT ALL 4 * + - 55, 1 AS col2
----
-220
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1910
SELECT DISTINCT 76 AS col1, + 35 * + COALESCE ( - 13, + 92 DIV + - CAST( NULL AS SIGNED ) ) * + ( + 18 ) col2
----
76
-8190

skipif mysql # not compatible
query II rowsort label-1910
SELECT DISTINCT 76 AS col1, + 35 * + COALESCE ( - 13, + 92 / + - CAST ( NULL AS INTEGER ) ) * + ( + 18 ) col2
----
76
-8190

query I rowsort
SELECT ALL 22 + - 6 AS col2
----
16

query I rowsort
SELECT DISTINCT 33 + - + 78 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT - 3 + CASE COUNT( * ) WHEN 80 THEN NULL WHEN - 41 THEN + 36 + 60 ELSE NULL END + - + 89 * + ( + MIN( - 38 ) ) * ( - - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT - 3 + CASE COUNT ( * ) WHEN 80 THEN NULL WHEN - 41 THEN + 36 + 60 ELSE NULL END + - + 89 * + ( + MIN ( - 38 ) ) * ( - - 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT ALL - SUM( + - 25 ) - + 26 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL - SUM ( + - 25 ) - + 26 AS col2
----
-1

query II rowsort
SELECT DISTINCT 78 AS col1, 90 col2
----
78
90

query I rowsort
SELECT 37 + + - 60 * 16 AS col2
----
-923

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ( - + COUNT( DISTINCT + 30 ) ) - + 75
----
-76

skipif mysql # not compatible
query I rowsort label-1917
SELECT ( - + COUNT ( DISTINCT + 30 ) ) - + 75
----
-76

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

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

query I rowsort
SELECT - 52 - + + 78
----
-130

query I rowsort
SELECT 60 * - 90 + - 27
----
-5427

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

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

query I rowsort
SELECT - 10 * - - 34 * 55 AS col1
----
-18700

query I rowsort
SELECT ALL + 81 * 50
----
4050

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

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

query I rowsort
SELECT 86 * + + CASE 32 WHEN - - 6 THEN 54 + - ( + 88 ) ELSE 23 END
----
1978

query I rowsort
SELECT ALL - 45 * + 21
----
-945

query I rowsort
SELECT 9 + - + 42
----
-33

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1929
SELECT ALL CAST( - 8 AS SIGNED ) + + + 87
----
79

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL CAST ( - 8 AS INTEGER ) + + + 87
----
79

query I rowsort
SELECT ALL 12 + 54 AS col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1931
SELECT DISTINCT - ( + + COUNT( * ) ) AS col0, + 53 * + - 70 AS col2
----
-1
-3710

skipif mysql # not compatible
query II rowsort label-1931
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col0, + 53 * + - 70 AS col2
----
-1
-3710

query I rowsort
SELECT ALL - 3 + + + 57 * - - 70 AS col1
----
3987

query I rowsort
SELECT ALL + NULLIF ( - 4, - 54 ) + - - 96 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT 88 + - COUNT( * ) + - - 13 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-1934
SELECT 88 + - COUNT ( * ) + - - 13 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT ALL - 13 + COALESCE ( + CASE + 26 WHEN - - SUM( DISTINCT - 15 ) + 6 + + 71 THEN + - CASE - 15 WHEN + 31 THEN - + 71 END END, 96, - + 67 ) * + 59
----
5651

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL - 13 + COALESCE ( + CASE + 26 WHEN - - SUM ( DISTINCT - 15 ) + 6 + + 71 THEN + - CASE - 15 WHEN + 31 THEN - + 71 END END, 96, - + 67 ) * + 59
----
5651

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

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

query I rowsort
SELECT 81 - + + 1 AS col2
----
80

query I rowsort
SELECT - 33 * - 3 + + 19 + 65 AS col0
----
183

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

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

query I rowsort
SELECT DISTINCT + 95 * - - 5 AS col2
----
475

query I rowsort
SELECT DISTINCT - ( - 54 ) AS col2
----
54

query I rowsort
SELECT - 70 * 66 + + CASE - 40 WHEN - + 26 THEN NULL ELSE - - 91 END AS col1
----
-4529

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT DISTINCT + 68 - - 32 * + 82 * COUNT( * ) + + 69 + + 97 * CASE + 86 WHEN + - 2 THEN NULL WHEN + 33 THEN + 82 ELSE - - 89 END + - + 98 * + - 13 + + + 73 * + 72
----
17924

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT + 68 - - 32 * + 82 * COUNT ( * ) + + 69 + + 97 * CASE + 86 WHEN + - 2 THEN NULL WHEN + 33 THEN + 82 ELSE - - 89 END + - + 98 * + - 13 + + + 73 * + 72
----
17924

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT 22 + + COUNT( DISTINCT - 14 ) + - + 70
----
-47

skipif mysql # not compatible
query I rowsort label-1944
SELECT 22 + + COUNT ( DISTINCT - 14 ) + - + 70
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-1945
SELECT 75 * 69, COUNT( DISTINCT + 95 ) + + - CASE - COUNT( * ) WHEN MIN( ALL 78 ) THEN - COUNT( * ) - + 60 * + 74 END * + 40 col2
----
5175
NULL

skipif mysql # not compatible
query II rowsort label-1945
SELECT 75 * 69, COUNT ( DISTINCT + 95 ) + + - CASE - COUNT ( * ) WHEN MIN ( ALL 78 ) THEN - COUNT ( * ) - + 60 * + 74 END * + 40 col2
----
5175
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1946
SELECT 6 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-1946
SELECT 6 / 52
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1947
SELECT - - CAST( + 57 AS SIGNED ) col0, - 70 AS col1
----
57
-70

skipif mysql # not compatible
query II rowsort label-1947
SELECT - - CAST ( + 57 AS INTEGER ) col0, - 70 AS col1
----
57
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1948
SELECT DISTINCT - 93 DIV - COUNT( * ) + - + 20 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT - 93 / - COUNT ( * ) + - + 20 AS col2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT + 28 DIV + ( - 37 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1949
SELECT + 28 / + ( - 37 ) AS col2
----
0

query I rowsort
SELECT 42 + 98
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1951
SELECT ALL CAST( NULL AS SIGNED ) - + ( 70 ) * ( - + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL CAST ( NULL AS INTEGER ) - + ( 70 ) * ( - + 87 )
----
NULL

query I rowsort
SELECT ALL - ( + 82 ) * + 93 AS col2
----
-7626

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

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

query II rowsort
SELECT + 69 - + - 66 AS col1, 63
----
135
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1955
SELECT ALL + 75 + - - 28 AS col2, COUNT( * ) AS col2
----
103
1

skipif mysql # not compatible
query II rowsort label-1955
SELECT ALL + 75 + - - 28 AS col2, COUNT ( * ) AS col2
----
103
1

query I rowsort
SELECT + 10 * 62
----
620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1957
SELECT DISTINCT COALESCE ( + - CAST( + - MAX( ALL 80 ) AS SIGNED ), - 74 / CASE - - SUM( ALL + - ( + 26 ) ) WHEN + 22 * + 53 THEN + 75 WHEN 15 THEN NULL END ) * 77 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT COALESCE ( + - CAST ( + - MAX ( ALL 80 ) AS INTEGER ), - 74 / CASE - - SUM ( ALL + - ( + 26 ) ) WHEN + 22 * + 53 THEN + 75 WHEN 15 THEN NULL END ) * 77 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 55 * 60 + + + 99 col1
----
3399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1959
SELECT DISTINCT 23 * CAST( 11 AS SIGNED ) + + 85 AS col2, 62 + COALESCE ( - ( COUNT( * ) ), - 72 ) AS col1
----
338
61

skipif mysql # not compatible
query II rowsort label-1959
SELECT DISTINCT 23 * CAST ( 11 AS INTEGER ) + + 85 AS col2, 62 + COALESCE ( - ( COUNT ( * ) ), - 72 ) AS col1
----
338
61

query I rowsort
SELECT NULLIF ( - 16, 32 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1961
SELECT ALL 98 * - CAST( NULL AS DECIMAL ) + - + CASE 94 WHEN + - COUNT( * ) * - AVG ( ALL - ( + ( 5 ) ) ) THEN + - 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL 98 * - CAST ( NULL AS REAL ) + - + CASE 94 WHEN + - COUNT ( * ) * - AVG ( ALL - ( + ( 5 ) ) ) THEN + - 55 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1962
SELECT COUNT ( * ) / 66 + - 10
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-1963
SELECT ALL 40 * + ( 55 ) AS col1, ( + COUNT( * ) ) * + COALESCE ( - 87, + - COUNT( * ), - MIN( + 12 ) )
----
2200
-87

skipif mysql # not compatible
query II rowsort label-1963
SELECT ALL 40 * + ( 55 ) AS col1, ( + COUNT ( * ) ) * + COALESCE ( - 87, + - COUNT ( * ), - MIN ( + 12 ) )
----
2200
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT ALL + MIN( DISTINCT 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL + MIN ( DISTINCT 96 ) AS col1
----
96

query I rowsort
SELECT DISTINCT 58 * + 42
----
2436

onlyif mysql # aggregate syntax: 
query II rowsort label-1966
SELECT NULLIF ( + + 90, + COUNT( * ) ) AS col0, 60
----
90
60

skipif mysql # not compatible
query II rowsort label-1966
SELECT NULLIF ( + + 90, + COUNT ( * ) ) AS col0, 60
----
90
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1967
SELECT DISTINCT 10 * 86 - ( CASE + 66 WHEN + 15 + + - CAST( 0 AS SIGNED ) + + 2 THEN 48 WHEN - 23 THEN + 60 * + 34 - - 96 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT 10 * 86 - ( CASE + 66 WHEN + 15 + + - CAST ( 0 AS INTEGER ) + + 2 THEN 48 WHEN - 23 THEN + 60 * + 34 - - 96 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT ALL + COUNT( DISTINCT + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL + COUNT ( DISTINCT + 30 )
----
1

query I rowsort
SELECT DISTINCT + CASE - - 41 WHEN 99 + + + 18 THEN + - 76 WHEN - 43 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 92 + 87
----
179

query I rowsort
SELECT + 51 * - 22 AS col1
----
-1122

query I rowsort
SELECT - 38 + - 36 AS col1
----
-74

query I rowsort
SELECT DISTINCT + - CASE + - 11 WHEN 93 THEN + 64 ELSE 27 END * - + 88
----
2376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1974
SELECT ALL + + 20 * - - CAST( + 48 AS SIGNED ) col0
----
960

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL + + 20 * - - CAST ( + 48 AS INTEGER ) col0
----
960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT DISTINCT + COUNT( * ) * + + 7 * - - 94
----
658

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT + COUNT ( * ) * + + 7 * - - 94
----
658

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ALL - ( + MIN( - 43 ) ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL - ( + MIN ( - 43 ) ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT DISTINCT SUM( ALL - 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT SUM ( ALL - 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1980
SELECT - - 90 * + 30 * + + COUNT( * ) AS col2, 13 + + 41 * - 1 - ( + - 97 ) + - - ( + COUNT( * ) ) + ( - 35 ) + + 55
----
2700
90

skipif mysql # not compatible
query II rowsort label-1980
SELECT - - 90 * + 30 * + + COUNT ( * ) AS col2, 13 + + 41 * - 1 - ( + - 97 ) + - - ( + COUNT ( * ) ) + ( - 35 ) + + 55
----
2700
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1981
SELECT + COALESCE ( CASE WHEN + 56 >= + + 82 THEN + - ( - 47 ) ELSE - 4 END, + - MIN( ALL - CAST( 3 AS SIGNED ) ) * - 1 * 6 ) + + 35 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1981
SELECT + COALESCE ( CASE WHEN + 56 >= + + 82 THEN + - ( - 47 ) ELSE - 4 END, + - MIN ( ALL - CAST ( 3 AS INTEGER ) ) * - 1 * 6 ) + + 35 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1982
SELECT ALL + - ( - SUM( + - 85 ) ) + - 30 + + COUNT( DISTINCT + + 8 ) AS col1, 19 * - ( + + 99 ) + - 2 * CAST( COUNT( * ) AS SIGNED ) col2
----
-114
-1883

skipif mysql # not compatible
query II rowsort label-1982
SELECT ALL + - ( - SUM ( + - 85 ) ) + - 30 + + COUNT ( DISTINCT + + 8 ) AS col1, 19 * - ( + + 99 ) + - 2 * CAST ( COUNT ( * ) AS INTEGER ) col2
----
-114
-1883

onlyif mysql # DIV for integer division: 
query I rowsort label-1983
SELECT + 28 DIV + 78 col1
----
0

skipif mysql # not compatible
query I rowsort label-1983
SELECT + 28 / + 78 col1
----
0

query I rowsort
SELECT + - 93 - + COALESCE ( 74, + 83 ) + - + 53 + + + 55 + + - 7 * - + 51
----
192

query I rowsort
SELECT ALL + - 40 + - 58 AS col0
----
-98

query I rowsort
SELECT ALL 25 * + + 63 + - 32 - + 73 + 63 AS col0
----
1533

query II rowsort
SELECT - 26, + 37 - - 33 AS col1
----
-26
70

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1989
SELECT + ( + 53 ) + + - 97 + - 70, ( COUNT( * ) ) AS col1
----
-114
1

skipif mysql # not compatible
query II rowsort label-1989
SELECT + ( + 53 ) + + - 97 + - 70, ( COUNT ( * ) ) AS col1
----
-114
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT ALL + 12 * 49 * + COALESCE ( + - 48, 82 * - COALESCE ( - 42, - 99 + - - COUNT( * ) ) ) * 45 - COUNT( * ) AS col0
----
-1270081

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL + 12 * 49 * + COALESCE ( + - 48, 82 * - COALESCE ( - 42, - 99 + - - COUNT ( * ) ) ) * 45 - COUNT ( * ) AS col0
----
-1270081

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT DISTINCT + 3 + + - CASE WHEN NOT MIN( DISTINCT - - 34 ) IS NULL THEN + 32 * 26 + - 44 * - + 62 + + 51 - - COUNT( * ) END
----
-3609

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT + 3 + + - CASE WHEN NOT MIN ( DISTINCT - - 34 ) IS NULL THEN + 32 * 26 + - 44 * - + 62 + + 51 - - COUNT ( * ) END
----
-3609

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT + 53 + 97 + + 64 * - SUM( DISTINCT + - 51 ) AS col2
----
3414

skipif mysql # not compatible
query I rowsort label-1992
SELECT + 53 + 97 + + 64 * - SUM ( DISTINCT + - 51 ) AS col2
----
3414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1993
SELECT + SUM( ALL - - 51 ) + - CAST( NULL AS SIGNED ) + MAX( - 11 ) * 84 / ( - + ( - COALESCE ( + 74, 71 + MIN( - 23 ), 24 + - + 73 - - - COUNT( * ), + 74 ) ) ) - 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1993
SELECT + SUM ( ALL - - 51 ) + - CAST ( NULL AS INTEGER ) + MAX ( - 11 ) * 84 / ( - + ( - COALESCE ( + 74, 71 + MIN ( - 23 ), 24 + - + 73 - - - COUNT ( * ), + 74 ) ) ) - 95 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT ALL 56 DIV 11 - - 12
----
17

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL 56 / 11 - - 12
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1995
SELECT ALL - ( + 13 ) DIV - + 70 + - - 48 + + + 35 + 96 - - COUNT( * )
----
180

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL - ( + 13 ) / - + 70 + - - 48 + + + 35 + 96 - - COUNT ( * )
----
180

query I rowsort
SELECT ALL 81 * + 91
----
7371

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT ALL 93 DIV - - 72 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL 93 / - - 72 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT DISTINCT 10 * - COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT 10 * - COUNT ( * ) AS col0
----
-10

query I rowsort
SELECT - 37 * + + 57 + - 75
----
-2184

query I rowsort
SELECT ALL 45 * 92
----
4140

onlyif mysql # DIV for integer division: 
query I rowsort label-2001
SELECT + 51 DIV - + 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2001
SELECT + 51 / - + 72 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2002
SELECT - 57 DIV - + COALESCE ( + NULLIF ( 3, + + 99 ), ( - 51 ) DIV 98 + + 90 ) AS col0, 42
----
19
42

skipif mysql # not compatible
query II rowsort label-2002
SELECT - 57 / - + COALESCE ( + NULLIF ( 3, + + 99 ), ( - 51 ) / 98 + + 90 ) AS col0, 42
----
19
42

query I rowsort
SELECT + 27 - 58
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT - COUNT( * ) * - + 6 * - + NULLIF ( 13, + 98 )
----
-78

skipif mysql # not compatible
query I rowsort label-2004
SELECT - COUNT ( * ) * - + 6 * - + NULLIF ( 13, + 98 )
----
-78

query I rowsort
SELECT ALL + 23 * - + 39 AS col0
----
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT ALL - 65 * + 51 * 93 + - 49 - + COUNT( * ) AS col2
----
-308345

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL - 65 * + 51 * 93 + - 49 - + COUNT ( * ) AS col2
----
-308345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2007
SELECT + - COUNT( DISTINCT 63 ) DIV + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2007
SELECT + - COUNT ( DISTINCT 63 ) / + COUNT ( * ) col2
----
-1

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

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

query I rowsort
SELECT + + 79 * NULLIF ( + 31, + ( - 15 ) ) AS col2
----
2449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2010
SELECT - + CASE 5 WHEN - - AVG ( DISTINCT - 35 ) / - 16 * 36 * 17 + + - 42 + + 80 THEN 11 - + - COUNT( DISTINCT + + 84 ) + 62 + - - 86 + 24 * - 20 + - 47 + - 23 / - + NULLIF ( - - COUNT( * ), 85 + - + 14 ) * - - CAST( ( + - 85 ) AS SIGNED ) ELSE NULL END * + + 74 + - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT - + CASE 5 WHEN - - AVG ( DISTINCT - 35 ) / - 16 * 36 * 17 + + - 42 + + 80 THEN 11 - + - COUNT ( DISTINCT + + 84 ) + 62 + - - 86 + 24 * - 20 + - 47 + - 23 / - + NULLIF ( - - COUNT ( * ), 85 + - + 14 ) * - - CAST ( ( + - 85 ) AS INTEGER ) ELSE NULL END * + + 74 + - 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT ALL COUNT( ALL 85 ) + COUNT( * ) + + ( - 25 )
----
-23

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL COUNT ( ALL 85 ) + COUNT ( * ) + + ( - 25 )
----
-23

query I rowsort
SELECT - 99 * - 26 AS col2
----
2574

onlyif mysql # aggregate syntax: 
query II rowsort label-2013
SELECT DISTINCT + 49 + + 13 col2, - SUM( ALL + 37 ) AS col0
----
62
-37

skipif mysql # not compatible
query II rowsort label-2013
SELECT DISTINCT + 49 + + 13 col2, - SUM ( ALL + 37 ) AS col0
----
62
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT + 21 + + + COUNT( - NULLIF ( - 47, + 20 ) )
----
22

skipif mysql # not compatible
query I rowsort label-2014
SELECT + 21 + + + COUNT ( - NULLIF ( - 47, + 20 ) )
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-2015
SELECT + 65 * - 28, - 17 * 6 - - 3 DIV + + 79 AS col1
----
-1820
-102

skipif mysql # not compatible
query II rowsort label-2015
SELECT + 65 * - 28, - 17 * 6 - - 3 / + + 79 AS col1
----
-1820
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-2016
SELECT ALL - 47 + - 5 AS col2, + COUNT( * ) AS col2
----
-52
1

skipif mysql # not compatible
query II rowsort label-2016
SELECT ALL - 47 + - 5 AS col2, + COUNT ( * ) AS col2
----
-52
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2017
SELECT - ( + 57 ) AS col1, - CAST( + 92 AS SIGNED ) AS col2
----
-57
-92

skipif mysql # not compatible
query II rowsort label-2017
SELECT - ( + 57 ) AS col1, - CAST ( + 92 AS INTEGER ) AS col2
----
-57
-92

query II rowsort
SELECT - 45 + 4 AS col2, 74 + 71 AS col1
----
-41
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL + COUNT( * ) + - SUM( ALL + 93 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL + COUNT ( * ) + - SUM ( ALL + 93 ) AS col1
----
-92

query I rowsort
SELECT ALL - 54 + + 31 * - 46
----
-1480

query I rowsort
SELECT 71 - + 1 col1
----
70

query I rowsort
SELECT 7 * + 41 AS col1
----
287

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

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL - COUNT ( * ) / - 61 AS col2
----
0

query I rowsort
SELECT 81 + - 57 + - 74 + - - 23
----
-27

query I rowsort
SELECT 90 + + 72 AS col0
----
162

query I rowsort
SELECT ALL - 54 - + - ( ( 64 ) )
----
10

query I rowsort
SELECT 97 * 42
----
4074

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT DISTINCT COUNT( * ) * 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT COUNT ( * ) * 0 AS col1
----
0

query I rowsort
SELECT ALL ( - 8 ) - 83 + - - 4
----
-87

query I rowsort
SELECT 6 * 35
----
210

query II rowsort
SELECT ALL - COALESCE ( + 97, - NULLIF ( - + 2, + 64 ) ), COALESCE ( - 47, + + ( + 65 ), - 29 * + 66 + 73 ) * + 78 - + + 25 AS col2
----
-97
-3691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2032
SELECT 25 + - 38 * - ( + 22 ) + - ( + 10 ) / 11 * + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-2032
SELECT 25 + - 38 * - ( + 22 ) + - ( + 10 ) / 11 * + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * - 31
----
NULL

query I rowsort
SELECT 32 * + 92
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT - 33 * 13 * - 89 * COUNT( * ) * 29 + + - 28 AS col2
----
1107221

skipif mysql # not compatible
query I rowsort label-2034
SELECT - 33 * 13 * - 89 * COUNT ( * ) * 29 + + - 28 AS col2
----
1107221

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT 15 + + - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-2035
SELECT 15 + + - COUNT ( * )
----
14

query I rowsort
SELECT 22 * 19 AS col0
----
418

onlyif mysql # aggregate syntax: 
query II rowsort label-2037
SELECT COUNT( * ) + - - COUNT( ALL - - 87 ) col2, 45 * + + 24 + + 85 AS col2
----
2
1165

skipif mysql # not compatible
query II rowsort label-2037
SELECT COUNT ( * ) + - - COUNT ( ALL - - 87 ) col2, 45 * + + 24 + + 85 AS col2
----
2
1165

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

skipif mysql # not compatible
query II rowsort label-2038
SELECT DISTINCT - 63 AS col2, COUNT ( * ) AS col2
----
-63
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT ALL 92 DIV - 77
----
-1

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL 92 / - 77
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2041
SELECT + ( + CAST( 98 AS SIGNED ) ) * + 92 + 7
----
9023

skipif mysql # not compatible
query I rowsort label-2041
SELECT + ( + CAST ( 98 AS INTEGER ) ) * + 92 + 7
----
9023

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT DISTINCT COUNT( * ) + 70
----
71

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT COUNT ( * ) + 70
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL COUNT( NULLIF ( NULLIF ( + 95, - 83 ), - 1 * + ( - 30 ) ) ) * 37
----
37

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL COUNT ( NULLIF ( NULLIF ( + 95, - 83 ), - 1 * + ( - 30 ) ) ) * 37
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2044
SELECT SUM( - 69 ) DIV 57 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2044
SELECT SUM ( - 69 ) / 57 AS col0
----
-1

query I rowsort
SELECT 37 + 44 * 30
----
1357

query I rowsort
SELECT DISTINCT 91 * - 62
----
-5642

query I rowsort
SELECT ALL 49 + 62 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT + 0 * + COUNT( 48 * + 79 ) + 32
----
32

skipif mysql # not compatible
query I rowsort label-2048
SELECT + 0 * + COUNT ( 48 * + 79 ) + 32
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2049
SELECT ALL 43 + CAST( 95 AS SIGNED ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL 43 + CAST ( 95 AS INTEGER ) AS col0
----
138

query I rowsort
SELECT DISTINCT ( 61 ) * - 88 AS col1
----
-5368

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

query I rowsort
SELECT DISTINCT 48 + 68
----
116

query I rowsort
SELECT 91 + + ( - 13 - - 34 * - 27 ) AS col0
----
-840

query I rowsort
SELECT 62 + - 82 * + 72 col2
----
-5842

query I rowsort
SELECT 0 + - 66 col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2056
SELECT ( SUM( DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) ) + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT ( SUM ( DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) + 90 AS col1
----
NULL

query I rowsort
SELECT ALL - 58 * + 86 AS col1
----
-4988

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT MIN( + 77 ) + + 99 AS col2
----
176

skipif mysql # not compatible
query I rowsort label-2058
SELECT MIN ( + 77 ) + + 99 AS col2
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT 16 + - ( + 87 + + COUNT( - 55 ) ) * 33
----
-2888

skipif mysql # not compatible
query I rowsort label-2059
SELECT 16 + - ( + 87 + + COUNT ( - 55 ) ) * 33
----
-2888

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2063
SELECT DISTINCT - 41 * + MIN( ALL 97 DIV 10 ) AS col1
----
-369

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT - 41 * + MIN ( ALL 97 / 10 ) AS col1
----
-369

query I rowsort
SELECT 25 + - 66 * 24
----
-1559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT 32 * + ( - CAST( NULL AS SIGNED ) / + 87 )
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-2066
SELECT 35 + COUNT ( * ) * - 77 AS col1
----
-42

query I rowsort
SELECT NULLIF ( + 44, + 4 / + 1 )
----
44

query I rowsort
SELECT 41 * + 39 AS col2
----
1599

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT ALL + 96 DIV - 9
----
-10

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL + 96 / - 9
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT MAX( 29 ) + 1 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2070
SELECT MAX ( 29 ) + 1 AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2071
SELECT 22 DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2071
SELECT 22 / 86 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT + COUNT( * ) * - ( - 94 ) + ( + 42 + + NULLIF ( + 96, - 14 + COUNT( * ) * 42 ) * + 16 ) AS col1
----
1672

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT + COUNT ( * ) * - ( - 94 ) + ( + 42 + + NULLIF ( + 96, - 14 + COUNT ( * ) * 42 ) * + 16 ) AS col1
----
1672

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT DISTINCT + COALESCE ( 49, 77 + 84 ) DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT + COALESCE ( 49, 77 + 84 ) / 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT ALL 66 * COUNT( * ) + - 27
----
39

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL 66 * COUNT ( * ) + - 27
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2075
SELECT - - 79 DIV + MIN( - 52 + ( - 53 ) ) + + 42 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2075
SELECT - - 79 / + MIN ( - 52 + ( - 53 ) ) + + 42 AS col1
----
42

query I rowsort
SELECT DISTINCT - 22 * - 49 + 73
----
1151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2077
SELECT + + CASE - ( - 84 ) WHEN - 77 THEN 85 + - 54 WHEN + 64 / CASE + 44 * + ( 5 * 51 ) WHEN 91 + - 94 THEN 77 END THEN - 60 + CAST( - 19 AS SIGNED ) WHEN - 36 - 49 * + 63 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT + + CASE - ( - 84 ) WHEN - 77 THEN 85 + - 54 WHEN + 64 / CASE + 44 * + ( 5 * 51 ) WHEN 91 + - 94 THEN 77 END THEN - 60 + CAST ( - 19 AS INTEGER ) WHEN - 36 - 49 * + 63 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + + 46 + + ( + 84 ) col2
----
130

query I rowsort
SELECT ALL + 15 * - 23 + 60
----
-285

query I rowsort
SELECT DISTINCT - 24 * - 95 AS col2
----
2280

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

query I rowsort
SELECT - 20 * - 20
----
400

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

query I rowsort
SELECT + - 19 * 30 AS col2
----
-570

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

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT + COUNT ( * ) * MAX ( 80 ) AS col1
----
80

query I rowsort
SELECT ALL + 39 - 57
----
-18

query I rowsort
SELECT - 23 - ( - 35 ) AS col1
----
12

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

query I rowsort
SELECT + 36 * - 76 AS col2
----
-2736

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

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

query I rowsort
SELECT + - 20 * - 7
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2092
SELECT DISTINCT + CAST( - 0 AS SIGNED ) * + 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT + CAST ( - 0 AS INTEGER ) * + 96 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT ALL ( + CASE SUM( + 42 ) WHEN 98 * + 53 + NULLIF ( ( ( + COUNT( * ) ) ) + + 40 * - 79, COUNT( * ) - 67 ) * COALESCE ( - 71 * 75, - AVG ( DISTINCT 17 ), 42 ) THEN 5 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL ( + CASE SUM ( + 42 ) WHEN 98 * + 53 + NULLIF ( ( ( + COUNT ( * ) ) ) + + 40 * - 79, COUNT ( * ) - 67 ) * COALESCE ( - 71 * 75, - AVG ( DISTINCT 17 ), 42 ) THEN 5 END )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2094
SELECT + COUNT ( * ) * ( 17 ) / 92
----
0

query I rowsort
SELECT + 70 * - 73 * 77
----
-393470

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT + 52 + + - SUM( DISTINCT + 80 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-2098
SELECT + 52 + + - SUM ( DISTINCT + 80 ) AS col0
----
-28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT + 4 + + 96 + + MAX( - 42 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-2100
SELECT + 4 + + 96 + + MAX ( - 42 ) AS col2
----
58

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

query I rowsort
SELECT ALL 86 + 47 + 33 * + 78
----
2707

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2103
SELECT ALL 93 / - - CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL 93 / - - CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) + 21
----
NULL

query I rowsort
SELECT ALL ( + 14 ) * 3 AS col0
----
42

query I rowsort
SELECT - - 17 + + 34 + + 53
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2106
SELECT ALL + 25 / 49 * ( CASE 42 WHEN 9 THEN 46 - COALESCE ( + 20, 51 * - 0 ) WHEN COUNT( * ) THEN - CASE 25 WHEN + 51 * + 58 + + 66 THEN ( CAST( - COALESCE ( 89, 90, + 4 ) AS SIGNED ) ) ELSE NULL END ELSE NULL END ) + 37 * - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL + 25 / 49 * ( CASE 42 WHEN 9 THEN 46 - COALESCE ( + 20, 51 * - 0 ) WHEN COUNT ( * ) THEN - CASE 25 WHEN + 51 * + 58 + + 66 THEN ( CAST ( - COALESCE ( 89, 90, + 4 ) AS INTEGER ) ) ELSE NULL END ELSE NULL END ) + 37 * - 72 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2108
SELECT ALL 73 DIV + COUNT( * ) + ( - 15 ) * 39
----
-512

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL 73 / + COUNT ( * ) + ( - 15 ) * 39
----
-512

query I rowsort
SELECT - + 60 * + 73 + 87 * - 78
----
-11166

query I rowsort
SELECT DISTINCT - 10 * - 23 + - 43
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT + MAX( + + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2111
SELECT + MAX ( + + 47 ) AS col0
----
47

query I rowsort
SELECT ALL + 71 * 85
----
6035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2113
SELECT - + 65 * - MIN( ALL 44 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2113
SELECT - + 65 * - MIN ( ALL 44 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2114
SELECT ALL + - 94 DIV COUNT( * ) + 30 * 46
----
1286

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL + - 94 / COUNT ( * ) + 30 * 46
----
1286

query I rowsort
SELECT DISTINCT - 38 * + + 88
----
-3344

query I rowsort
SELECT ALL - 79 * + 98
----
-7742

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

skipif mysql # not compatible
query I rowsort label-2117
SELECT DISTINCT 35 * COUNT ( * ) + 15 - + 35 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT + 27 * + + 70 + MIN( DISTINCT + ( + 84 ) )
----
1974

skipif mysql # not compatible
query I rowsort label-2118
SELECT + 27 * + + 70 + MIN ( DISTINCT + ( + 84 ) )
----
1974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2119
SELECT ALL + NULLIF ( - 3, + 90 * + 96 + - NULLIF ( CAST( COUNT( * ) AS SIGNED ), CAST( + 91 AS DECIMAL ) ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL + NULLIF ( - 3, + 90 * + 96 + - NULLIF ( CAST ( COUNT ( * ) AS INTEGER ), CAST ( + 91 AS REAL ) ) ) AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT - 11 * + CAST( - 21 AS SIGNED )
----
231

skipif mysql # not compatible
query I rowsort label-2120
SELECT - 11 * + CAST ( - 21 AS INTEGER )
----
231

query I rowsort
SELECT NULLIF ( 66, 32 )
----
66

query I rowsort
SELECT ALL + NULLIF ( 23, 43 ) * 23
----
529

query I rowsort
SELECT - 20 + - 45 + + 39 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT ALL + - MIN( + 82 ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL + - MIN ( + 82 ) col0
----
-82

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

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

query I rowsort
SELECT + 71 * + 70
----
4970

query I rowsort
SELECT ALL ( ( + 32 ) ) * - 4
----
-128

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

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

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

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

query I rowsort
SELECT + 64 + + ( 77 ) AS col2
----
141

query I rowsort
SELECT - ( - + 12 ) AS col1
----
12

query II rowsort
SELECT DISTINCT 44 AS col1, 23 AS col2
----
44
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2133
SELECT ALL ( - NULLIF ( 4, 59 ) ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL ( - NULLIF ( 4, 59 ) ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2134
SELECT + 17 * - - CAST( + + 6 AS SIGNED ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-2134
SELECT + 17 * - - CAST ( + + 6 AS INTEGER ) AS col1
----
102

query I rowsort
SELECT + 34 + - 18 * 45 AS col1
----
-776

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT ALL NULLIF ( 47, ( - COUNT( * ) ) ) * NULLIF ( 85 * 52, ( + COUNT( * ) ) )
----
207740

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL NULLIF ( 47, ( - COUNT ( * ) ) ) * NULLIF ( 85 * 52, ( + COUNT ( * ) ) )
----
207740

query I rowsort
SELECT - ( - 38 ) AS col1
----
38

query I rowsort
SELECT - ( - 90 ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT COUNT( * ) * + 90 * 67
----
6030

skipif mysql # not compatible
query I rowsort label-2139
SELECT COUNT ( * ) * + 90 * 67
----
6030

query I rowsort
SELECT DISTINCT 45 + - + 2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2141
SELECT 50 + 96 DIV 78 * 56 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-2141
SELECT 50 + 96 / 78 * 56 AS col2
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2142
SELECT ALL 18 AS col0, 38 DIV + 55 + 8 * + COUNT( * ) AS col1
----
18
8

skipif mysql # not compatible
query II rowsort label-2142
SELECT ALL 18 AS col0, 38 / + 55 + 8 * + COUNT ( * ) AS col1
----
18
8

query II rowsort
SELECT 89, 97 + + + 13 + 60 AS col0
----
89
170

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

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

query II rowsort
SELECT - 74, - 56 + - ( 49 ) + - 75 AS col1
----
-74
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-2146
SELECT + 89 + + 95 - + 48 DIV - ( - 76 - - 48 )
----
183

skipif mysql # not compatible
query I rowsort label-2146
SELECT + 89 + + 95 - + 48 / - ( - 76 - - 48 )
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT 74 * + + 57 * + - CASE - CASE WHEN NOT NULL NOT IN ( - 14 ) THEN SUM( DISTINCT 7 ) ELSE 14 END WHEN 77 / 2 THEN NULL ELSE - 86 END * + 5 - - 51
----
1813791

skipif mysql # not compatible
query I rowsort label-2147
SELECT 74 * + + 57 * + - CASE - CASE WHEN NOT NULL NOT IN ( - 14 ) THEN SUM ( DISTINCT 7 ) ELSE 14 END WHEN 77 / 2 THEN NULL ELSE - 86 END * + 5 - - 51
----
1813791

query I rowsort
SELECT ALL - 75 * + - 30
----
2250

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2150
SELECT ALL - + 46, 28 * + + MIN( DISTINCT CASE 12 WHEN 49 THEN + 7 END ) AS col0
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-2150
SELECT ALL - + 46, 28 * + + MIN ( DISTINCT CASE 12 WHEN 49 THEN + 7 END ) AS col0
----
-46
NULL

query I rowsort
SELECT + COALESCE ( + + ( + 30 ), - 90, + 69 )
----
30

query I rowsort
SELECT ALL - 30 * - + 39 * 16 AS col1
----
18720

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT DISTINCT 94 - + - 88 + MAX( DISTINCT - 75 ) AS col2
----
107

skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT 94 - + - 88 + MAX ( DISTINCT - 75 ) AS col2
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2154
SELECT + 50 DIV - 81 + + 30 * - COUNT( * ) + - CASE - 64 WHEN - 83 + + ( - 47 ) THEN NULL ELSE + COALESCE ( 71, COUNT( * ) + + 92 ) + 96 * + 56 END
----
-5477

skipif mysql # not compatible
query I rowsort label-2154
SELECT + 50 / - 81 + + 30 * - COUNT ( * ) + - CASE - 64 WHEN - 83 + + ( - 47 ) THEN NULL ELSE + COALESCE ( 71, COUNT ( * ) + + 92 ) + 96 * + 56 END
----
-5477

query II rowsort
SELECT ALL - - 12, 61 AS col2
----
12
61

query I rowsort
SELECT DISTINCT - 81 * - 34 AS col0
----
2754

onlyif mysql # DIV for integer division: 
query II rowsort label-2157
SELECT + 56 AS col2, 58 DIV + 87 * - 33 AS col0
----
56
0

skipif mysql # not compatible
query II rowsort label-2157
SELECT + 56 AS col2, 58 / + 87 * - 33 AS col0
----
56
0

query I rowsort
SELECT - 65 * + - 79
----
5135

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

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

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT - - 16 / + CAST ( NULL AS INTEGER ) + 68 / - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT - - MIN( DISTINCT - 20 ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT - - MIN ( DISTINCT - 20 ) col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2162
SELECT ALL - COUNT( DISTINCT 62 ) DIV - 21 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL - COUNT ( DISTINCT 62 ) / - 21 * - COUNT ( * ) AS col1
----
0

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

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

query I rowsort
SELECT NULLIF ( - 62, - 23 ) * 2 AS col1
----
-124

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

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

query I rowsort
SELECT ALL - ( + ( 51 ) ) * 93 AS col2
----
-4743

query I rowsort
SELECT 16 * - 15 col0
----
-240

query I rowsort
SELECT ALL - CASE 3 WHEN + 7 THEN - 57 ELSE + 16 + + 38 END
----
-54

query I rowsort
SELECT 90 * - - 87
----
7830

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2170
SELECT COUNT( * ) * + 79 * MIN( - - CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT COUNT ( * ) * + 79 * MIN ( - - CAST ( NULL AS REAL ) ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT 96 - - - 32 DIV + + 89
----
96

skipif mysql # not compatible
query I rowsort label-2171
SELECT 96 - - - 32 / + + 89
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT ALL - MIN( DISTINCT 62 ) + 73 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL - MIN ( DISTINCT 62 ) + 73 AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2173
SELECT DISTINCT + 10 + + COUNT( * ) AS col1, 19 * - + COALESCE ( 27, CAST( NULL AS SIGNED ), - 52 ) * + 38 + 77 AS col2
----
11
-19417

skipif mysql # not compatible
query II rowsort label-2173
SELECT DISTINCT + 10 + + COUNT ( * ) AS col1, 19 * - + COALESCE ( 27, CAST ( NULL AS INTEGER ), - 52 ) * + 38 + 77 AS col2
----
11
-19417

query II rowsort
SELECT 15 * 75 AS col1, - 43 AS col0
----
1125
-43

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT ALL + 65 + 36 DIV NULLIF ( + 45, 41 )
----
65

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL + 65 + 36 / NULLIF ( + 45, 41 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT ALL 93 + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL 93 + COUNT ( * )
----
94

query II rowsort
SELECT ALL 69 + + - 10 AS col2, + 37 * - + 55 AS col1
----
59
-2035

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT 60 DIV - - NULLIF ( - 48, + - 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-2179
SELECT 60 / - - NULLIF ( - 48, + - 86 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT ALL 33 + + 49 + - 18 - COUNT( * ) + - 51 * 42
----
-2079

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL 33 + + 49 + - 18 - COUNT ( * ) + - 51 * 42
----
-2079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2181
SELECT COUNT( * ) + - + 73 + + 94 * - - COUNT( * ) DIV - 1 AS col2
----
-166

skipif mysql # not compatible
query I rowsort label-2181
SELECT COUNT ( * ) + - + 73 + + 94 * - - COUNT ( * ) / - 1 AS col2
----
-166

query I rowsort
SELECT COALESCE ( + - 81, 42 - + + ( 36 ) ) + 22 AS col2
----
-59

query I rowsort
SELECT ALL - 4 * - COALESCE ( - 94, + ( 39 ) )
----
-376

query I rowsort
SELECT DISTINCT - 93 * + 90
----
-8370

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT + 47 DIV - - 38 + 44 - 78 * - 46 * + 21
----
75393

skipif mysql # not compatible
query I rowsort label-2185
SELECT + 47 / - - 38 + 44 - 78 * - 46 * + 21
----
75393

query II rowsort
SELECT + + ( + + 94 ) AS col2, - 28 AS col0
----
94
-28

query I rowsort
SELECT 58 + 81 * 55
----
4513

query II rowsort
SELECT 37 + - - 16 AS col2, 38 + 27
----
53
65

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2190
SELECT - 30 * 48 AS col1, COUNT( * ) * CAST( 11 AS SIGNED )
----
-1440
11

skipif mysql # not compatible
query II rowsort label-2190
SELECT - 30 * 48 AS col1, COUNT ( * ) * CAST ( 11 AS INTEGER )
----
-1440
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2191
SELECT ALL - 36 + 75 + - + COALESCE ( + 76, 45 ) + ( 48 ) DIV 46
----
-36

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL - 36 + 75 + - + COALESCE ( + 76, 45 ) + ( 48 ) / 46
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT + 25 * COUNT( * ) col2
----
25

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT + 25 * COUNT ( * ) col2
----
25

query I rowsort
SELECT 97 * - + 19 + - ( - 18 ) + - 71 AS col2
----
-1896

query I rowsort
SELECT 26 * - + 33 AS col1
----
-858

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2195
SELECT ALL 71 + 89 + + 25 + + + CASE + 68 WHEN COUNT( * ) - + 35 * - 91 THEN ( 40 ) WHEN COUNT( ALL 51 ) THEN + 47 ELSE 57 DIV 56 END + 65 DIV - 21 AS col0
----
183

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL 71 + 89 + + 25 + + + CASE + 68 WHEN COUNT ( * ) - + 35 * - 91 THEN ( 40 ) WHEN COUNT ( ALL 51 ) THEN + 47 ELSE 57 / 56 END + 65 / - 21 AS col0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT 96 + 37 * + + COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-2196
SELECT 96 + 37 * + + COUNT ( * )
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2197
SELECT CAST( NULL AS DECIMAL ) + - + CASE + + CAST( NULL AS SIGNED ) WHEN + + COUNT( * ) THEN + + 98 ELSE NULL END + + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT CAST ( NULL AS REAL ) + - + CASE + + CAST ( NULL AS INTEGER ) WHEN + + COUNT ( * ) THEN + + 98 ELSE NULL END + + 4 AS col1
----
NULL

query I rowsort
SELECT 33 * - 0 + 20
----
20

query I rowsort
SELECT 25 + - 85 AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2200
SELECT ALL ( 63 ) + - 24 DIV - COALESCE ( + CAST( NULL AS SIGNED ), COUNT( * ) * 47 ) * 72 col1
----
63

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL ( 63 ) + - 24 / - COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ) * 47 ) * 72 col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT ALL - 33 + + CAST( - 65 AS SIGNED ) * 97 * - 39
----
245862

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - 33 + + CAST ( - 65 AS INTEGER ) * 97 * - 39
----
245862

query II rowsort
SELECT - 99 + + - 92 * - 4 AS col1, 51 - 5
----
269
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT - NULLIF ( 56, + + 86 * + 50 + - NULLIF ( + MIN( 19 ), + COUNT( * ) ) * 47 )
----
-56

skipif mysql # not compatible
query I rowsort label-2203
SELECT - NULLIF ( 56, + + 86 * + 50 + - NULLIF ( + MIN ( 19 ), + COUNT ( * ) ) * 47 )
----
-56

query II rowsort
SELECT 95 AS col0, 48 AS col0
----
95
48

query I rowsort
SELECT - 28 + + + 83 AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2206
SELECT - 39 * CAST( + 33 AS SIGNED )
----
-1287

skipif mysql # not compatible
query I rowsort label-2206
SELECT - 39 * CAST ( + 33 AS INTEGER )
----
-1287

query II rowsort
SELECT - 45 * - - ( 88 ), - 84 * - - ( 49 ) + 38 col1
----
-3960
-4078

query I rowsort
SELECT - 84 * + 96
----
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL + CASE + 29 WHEN - 81 + SUM( + + 51 ) - + 0 THEN NULL WHEN + 56 + - 33 THEN NULL ELSE 57 * - 51 END AS col1
----
-2907

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL + CASE + 29 WHEN - 81 + SUM ( + + 51 ) - + 0 THEN NULL WHEN + 56 + - 33 THEN NULL ELSE 57 * - 51 END AS col1
----
-2907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2210
SELECT - - COUNT( ALL + - 9 ) * + 96, + 36 * 15 * + CAST( - 92 AS SIGNED ) AS col0
----
96
-49680

skipif mysql # not compatible
query II rowsort label-2210
SELECT - - COUNT ( ALL + - 9 ) * + 96, + 36 * 15 * + CAST ( - 92 AS INTEGER ) AS col0
----
96
-49680

query I rowsort
SELECT + + 86 * - - 89
----
7654

query I rowsort
SELECT - ( - 11 ) + 61 AS col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2213
SELECT DISTINCT + - 82 DIV 27 + - 64 col2
----
-67

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT + - 82 / 27 + - 64 col2
----
-67

query I rowsort
SELECT ALL 31 * - + 52
----
-1612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2215
SELECT ALL + - 4 * - 6 + - 76 DIV - SUM( DISTINCT + 99 ) + 29 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL + - 4 * - 6 + - 76 / - SUM ( DISTINCT + 99 ) + 29 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT NULLIF ( - - ( 99 ), 86 - + 95 + ( - ( + COUNT( * ) ) ) )
----
99

skipif mysql # not compatible
query I rowsort label-2216
SELECT NULLIF ( - - ( 99 ), 86 - + 95 + ( - ( + COUNT ( * ) ) ) )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT - 81 * - CASE - 58 WHEN - + 69 THEN NULL WHEN 24 + COUNT( * ) THEN NULL WHEN + MIN( - 95 ) / - 69 THEN 6 ELSE NULL END + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT - 81 * - CASE - 58 WHEN - + 69 THEN NULL WHEN 24 + COUNT ( * ) THEN NULL WHEN + MIN ( - 95 ) / - 69 THEN 6 ELSE NULL END + 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT + + COUNT( * ) * 54 + COUNT( * ) * + COUNT( * ) col2
----
55

skipif mysql # not compatible
query I rowsort label-2218
SELECT + + COUNT ( * ) * 54 + COUNT ( * ) * + COUNT ( * ) col2
----
55

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

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

query I rowsort
SELECT + - 10 + - 67 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT ALL + 38 * + - 25 + - - 58 * 5 * + 57 + COUNT( * ) col0
----
15581

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL + 38 * + - 25 + - - 58 * 5 * + 57 + COUNT ( * ) col0
----
15581

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

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

query I rowsort
SELECT + 12 - + + 9 AS col2
----
3

query II rowsort
SELECT + ( + 44 ) AS col2, - 14
----
44
-14

query I rowsort
SELECT CASE + AVG ( 52 ) WHEN 58 THEN NULL WHEN - - ( - 35 ) THEN 10 - 80 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2226
SELECT ALL - 43 * 45 + + 39 + - 33 - + - 10 / - + NULLIF ( - 98, 17 * - 45 + + 94 ) + - CAST( NULL AS SIGNED ) * 21 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL - 43 * 45 + + 39 + - 33 - + - 10 / - + NULLIF ( - 98, 17 * - 45 + + 94 ) + - CAST ( NULL AS INTEGER ) * 21 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT ALL COUNT( * ) * - + NULLIF ( + 46, - + 19 ) * MAX( + 51 ) AS col2
----
-2346

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL COUNT ( * ) * - + NULLIF ( + 46, - + 19 ) * MAX ( + 51 ) AS col2
----
-2346

query II rowsort
SELECT + NULLIF ( + ( - + 62 ), + 88 ) AS col2, 18 + 77 * 73 AS col1
----
-62
5639

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT + ( - MAX( ALL - 86 ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-2229
SELECT + ( - MAX ( ALL - 86 ) ) AS col2
----
86

query I rowsort
SELECT + 58 * 45 AS col0
----
2610

query I rowsort
SELECT ALL + 78 * 57 - - 37 AS col1
----
4483

query II rowsort
SELECT - ( 67 ), - 47 AS col0
----
-67
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2233
SELECT - 12 AS col0, + 20 * - SUM( DISTINCT - 74 ) * - CAST( NULL AS SIGNED ) + - + 47 * + ( 88 )
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-2233
SELECT - 12 AS col0, + 20 * - SUM ( DISTINCT - 74 ) * - CAST ( NULL AS INTEGER ) + - + 47 * + ( 88 )
----
-12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT + SUM( 37 ) * + 83 AS col0
----
3071

skipif mysql # not compatible
query I rowsort label-2234
SELECT + SUM ( 37 ) * + 83 AS col0
----
3071

onlyif mysql # DIV for integer division: 
query I rowsort label-2235
SELECT ALL + 3 DIV + + 57 * 17
----
0

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL + 3 / + + 57 * 17
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2236
SELECT + COALESCE ( 26, + 16, + COUNT( * ) ) DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-2236
SELECT + COALESCE ( 26, + 16, + COUNT ( * ) ) / + 43
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2237
SELECT - 23 AS col1, ( + SUM( DISTINCT - CASE 48 WHEN - + 84 THEN + 9 * 26 ELSE NULL END ) )
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-2237
SELECT - 23 AS col1, ( + SUM ( DISTINCT - CASE 48 WHEN - + 84 THEN + 9 * 26 ELSE NULL END ) )
----
-23
NULL

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

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

query I rowsort
SELECT - - 7 - - 1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL - 96 * - COUNT( * ) * + + COALESCE ( + 78, 9 + - 19 * + 94 ) AS col0
----
7488

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - 96 * - COUNT ( * ) * + + COALESCE ( + 78, 9 + - 19 * + 94 ) AS col0
----
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT + + 38 + + + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-2241
SELECT + + 38 + + + COUNT ( * ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT + MIN( ALL - 59 ) col1
----
-59

skipif mysql # not compatible
query I rowsort label-2242
SELECT + MIN ( ALL - 59 ) col1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT - 5 DIV - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2243
SELECT - 5 / - 46 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2244
SELECT - ( CASE 87 WHEN - CAST( + 3 AS SIGNED ) + + 39 THEN NULL WHEN + 36 THEN 16 DIV - 72 ELSE - 79 * 37 END ) AS col2
----
2923

skipif mysql # not compatible
query I rowsort label-2244
SELECT - ( CASE 87 WHEN - CAST ( + 3 AS INTEGER ) + + 39 THEN NULL WHEN + 36 THEN 16 / - 72 ELSE - 79 * 37 END ) AS col2
----
2923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2245
SELECT - 62 + - 12 * + - CAST( - CAST( + CASE - 29 WHEN + 64 THEN + 39 ELSE + MIN( NULLIF ( - 99, 63 ) ) END AS DECIMAL ) AS SIGNED )
----
1126

skipif mysql # not compatible
query I rowsort label-2245
SELECT - 62 + - 12 * + - CAST ( - CAST ( + CASE - 29 WHEN + 64 THEN + 39 ELSE + MIN ( NULLIF ( - 99, 63 ) ) END AS REAL ) AS INTEGER )
----
1126

query I rowsort
SELECT ALL 45 * + + COALESCE ( - 74, 63 ) AS col2
----
-3330

query I rowsort
SELECT - + 80 * - - 42
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ALL + + 96 + ( + 75 ) + - - COUNT( * )
----
172

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL + + 96 + ( + 75 ) + - - COUNT ( * )
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-2249
SELECT - - 20 DIV 98 + + ( - 83 ) + 17
----
-66

skipif mysql # not compatible
query I rowsort label-2249
SELECT - - 20 / 98 + + ( - 83 ) + 17
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2250
SELECT - 21 * COALESCE ( - CASE 26 WHEN - 95 THEN NULL ELSE + - COUNT( * ) END, - 1 DIV + 42 ) DIV 14
----
-1

skipif mysql # not compatible
query I rowsort label-2250
SELECT - 21 * COALESCE ( - CASE 26 WHEN - 95 THEN NULL ELSE + - COUNT ( * ) END, - 1 / + 42 ) / 14
----
-1

query II rowsort
SELECT + 54, 72 AS col2
----
54
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2252
SELECT ALL - 48 DIV + 92 * + 90 * + COUNT( 58 ) + + COUNT( * ) + - 3 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL - 48 / + 92 * + 90 * + COUNT ( 58 ) + + COUNT ( * ) + - 3 AS col1
----
-2

query II rowsort
SELECT + 4 col2, + 76 - - 28
----
4
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2254
SELECT - CASE - - NULLIF ( + 88, + - MIN( + 92 ) + 18 ) WHEN + 86 THEN NULL WHEN - 21 + - ( + NULLIF ( COALESCE ( ( + 71 ), 98 / - 78, 90 ), - 34 ) ) THEN COUNT( * ) + - MAX( - 23 ) ELSE + CAST( NULL AS SIGNED ) END * + 19 + - CAST( + ( 27 ) AS SIGNED ) * + 4 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT - CASE - - NULLIF ( + 88, + - MIN ( + 92 ) + 18 ) WHEN + 86 THEN NULL WHEN - 21 + - ( + NULLIF ( COALESCE ( ( + 71 ), 98 / - 78, 90 ), - 34 ) ) THEN COUNT ( * ) + - MAX ( - 23 ) ELSE + CAST ( NULL AS INTEGER ) END * + 19 + - CAST ( + ( 27 ) AS INTEGER ) * + 4 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2255
SELECT + 54, - 75 * 61 * + COUNT( * ) AS col2
----
54
-4575

skipif mysql # not compatible
query II rowsort label-2255
SELECT + 54, - 75 * 61 * + COUNT ( * ) AS col2
----
54
-4575

onlyif mysql # aggregate syntax: 
query II rowsort label-2256
SELECT ALL + COUNT( * ), + ( - 23 ) + - 92 + 83 * + NULLIF ( + 49, - 98 + 58 ) AS col2
----
1
3952

skipif mysql # not compatible
query II rowsort label-2256
SELECT ALL + COUNT ( * ), + ( - 23 ) + - 92 + 83 * + NULLIF ( + 49, - 98 + 58 ) AS col2
----
1
3952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2257
SELECT DISTINCT + 93 DIV COUNT( ALL 71 ) + + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT + 93 / COUNT ( ALL 71 ) + + + COUNT ( * )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2258
SELECT ALL + COUNT( * ) DIV - 8 + - MAX( ( - CAST( 95 AS SIGNED ) ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL + COUNT ( * ) / - 8 + - MAX ( ( - CAST ( 95 AS INTEGER ) ) ) AS col1
----
95

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT DISTINCT + 60 * 3 DIV + 12
----
15

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT + 60 * 3 / + 12
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2261
SELECT ALL - COUNT( + 10 ), ( + 79 ) * + - CASE + + COUNT( * ) WHEN 47 + CASE MIN( ALL - 43 ) WHEN + ( COUNT( * ) ) THEN NULL ELSE ( + 34 ) END THEN + 67 END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2261
SELECT ALL - COUNT ( + 10 ), ( + 79 ) * + - CASE + + COUNT ( * ) WHEN 47 + CASE MIN ( ALL - 43 ) WHEN + ( COUNT ( * ) ) THEN NULL ELSE ( + 34 ) END THEN + 67 END AS col2
----
-1
NULL

query I rowsort
SELECT 41 - - 42 AS col1
----
83

query I rowsort
SELECT COALESCE ( - 81, + 91 * - 40 + - 78 * + + 30 ) * - 49 * + 95 AS col1
----
377055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT - 98 / + CAST( NULL AS SIGNED ) + + ( + + 56 ) + - 66 * 14 * - + 7 + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT - 98 / + CAST ( NULL AS INTEGER ) + + ( + + 56 ) + - 66 * 14 * - + 7 + - 75
----
NULL

query II rowsort
SELECT 31 + + 72 col1, + 89 AS col2
----
103
89

query I rowsort
SELECT 76 - - + 71 + + 0 - - - 59 + - + 24 * - 33 * - + 91 * + 53
----
-3819728

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL - CASE + 77 WHEN 47 THEN COUNT( * ) / + 27 + 40 WHEN + 4 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL - CASE + 77 WHEN 47 THEN COUNT ( * ) / + 27 + 40 WHEN + 4 THEN NULL ELSE NULL END col0
----
NULL

query I rowsort
SELECT 59 + - - 66 * + 42
----
2831

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT CASE WHEN ( - 0 ) > MAX( ALL + 87 ) THEN - 21 ELSE NULL END * - 66 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2270
SELECT CASE WHEN ( - 0 ) > MAX ( ALL + 87 ) THEN - 21 ELSE NULL END * - 66 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2271
SELECT 63 + - - 1 + - + 67 + - COUNT( * ) DIV - - 54
----
-3

skipif mysql # not compatible
query I rowsort label-2271
SELECT 63 + - - 1 + - + 67 + - COUNT ( * ) / - - 54
----
-3

query I rowsort
SELECT DISTINCT NULLIF ( + + 35, 6 )
----
35

query I rowsort
SELECT - 7 + + + 54
----
47

query I rowsort
SELECT + 16 + 25
----
41

query II rowsort
SELECT 43 * - + 22 * - + 4 AS col0, + 49
----
3784
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2276
SELECT ALL - 20 + 34 * + - CAST( - ( 4 ) AS SIGNED )
----
116

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL - 20 + 34 * + - CAST ( - ( 4 ) AS INTEGER )
----
116

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT + COALESCE ( 41, 62 DIV - + 83 * - 6 ) * - 84 AS col1
----
-3444

skipif mysql # not compatible
query I rowsort label-2279
SELECT + COALESCE ( 41, 62 / - + 83 * - 6 ) * - 84 AS col1
----
-3444

onlyif mysql # DIV for integer division: 
query I rowsort label-2280
SELECT - 23 DIV + 98 * - - 10 + 18
----
18

skipif mysql # not compatible
query I rowsort label-2280
SELECT - 23 / + 98 * - - 10 + 18
----
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2282
SELECT CAST( - 39 AS SIGNED ) + + SUM( 2 ) - 4 + + ( 48 ) * + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2282
SELECT CAST ( - 39 AS INTEGER ) + + SUM ( 2 ) - 4 + + ( 48 ) * + COUNT ( * ) AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2283
SELECT DISTINCT + - 27 + ( - CASE + SUM( DISTINCT + 77 ) WHEN - + ( + - 70 ) THEN 82 DIV 74 + + 68 * 9 WHEN ( + 29 ) THEN NULL ELSE 32 END )
----
-59

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT + - 27 + ( - CASE + SUM ( DISTINCT + 77 ) WHEN - + ( + - 70 ) THEN 82 / 74 + + 68 * 9 WHEN ( + 29 ) THEN NULL ELSE 32 END )
----
-59

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

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

query II rowsort
SELECT DISTINCT - 2, 6 AS col1
----
-2
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2286
SELECT - 32 DIV - - 51 + + ( - 45 ) * + + ( + + COALESCE ( + 82, + MAX( DISTINCT 75 ), + 96 ) ) AS col0
----
-3690

skipif mysql # not compatible
query I rowsort label-2286
SELECT - 32 / - - 51 + + ( - 45 ) * + + ( + + COALESCE ( + 82, + MAX ( DISTINCT 75 ), + 96 ) ) AS col0
----
-3690

query I rowsort
SELECT 51 + + 17
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT MAX( ALL 33 ) * 24 + + ( MAX( ALL 37 ) ) * + + 53 * + ( - 71 ) AS col0
----
-138439

skipif mysql # not compatible
query I rowsort label-2288
SELECT MAX ( ALL 33 ) * 24 + + ( MAX ( ALL 37 ) ) * + + 53 * + ( - 71 ) AS col0
----
-138439

query I rowsort
SELECT ALL - ( - - NULLIF ( + COALESCE ( - 64, 45, + 78 ), - 30 * + + 51 + 33 * 71 ) ) AS col1
----
64

query I rowsort
SELECT 25 * - CASE + 41 WHEN + 29 THEN ( 14 ) WHEN - - 39 THEN NULL ELSE 66 + - 97 * ( 63 ) END * 61
----
9218625

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2291
SELECT 38 AS col2, - NULLIF ( COALESCE ( + 43, + 64, - 13 DIV - ( + COUNT( * ) ) * - 93 + + 69 ), COUNT( 82 ) ) + + 3
----
38
-40

skipif mysql # not compatible
query II rowsort label-2291
SELECT 38 AS col2, - NULLIF ( COALESCE ( + 43, + 64, - 13 / - ( + COUNT ( * ) ) * - 93 + + 69 ), COUNT ( 82 ) ) + + 3
----
38
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT DISTINCT + 29 DIV - 23 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT + 29 / - 23 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2293
SELECT ALL - COUNT( * ), 80 DIV - - ( - 49 )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-2293
SELECT ALL - COUNT ( * ), 80 / - - ( - 49 )
----
-1
-1

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

skipif mysql # not compatible
query I rowsort label-2294
SELECT COUNT ( * ) * + - 17 + + + 85 AS col1
----
68

query I rowsort
SELECT 50 * 28
----
1400

query I rowsort
SELECT ALL - 2 * - 93 AS col2
----
186

onlyif mysql # aggregate syntax: 
query II rowsort label-2297
SELECT ALL - 34 col2, - 97 * - NULLIF ( COUNT( * ), 86 ) + 73
----
-34
170

skipif mysql # not compatible
query II rowsort label-2297
SELECT ALL - 34 col2, - 97 * - NULLIF ( COUNT ( * ), 86 ) + 73
----
-34
170

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT 69 DIV - - 78
----
0

skipif mysql # not compatible
query I rowsort label-2298
SELECT 69 / - - 78
----
0

query I rowsort
SELECT ALL - 12 * + 34 AS col1
----
-408

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2301
SELECT 59 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-2301
SELECT 59 / 84
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT 94 DIV - 11 col1
----
-8

skipif mysql # not compatible
query I rowsort label-2302
SELECT 94 / - 11 col1
----
-8

query I rowsort
SELECT 65 - + 24 AS col2
----
41

query II rowsort
SELECT 80 col2, + ( ( + + 39 ) ) + - + 86 col0
----
80
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2305
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col1, + 16 AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-2305
SELECT DISTINCT + CAST ( NULL AS REAL ) col1, + 16 AS col1
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT + - COUNT( * ) * - - 69 * + 88 - + MAX( + ( - 78 ) ) + + ( - 77 )
----
-6071

skipif mysql # not compatible
query I rowsort label-2306
SELECT + - COUNT ( * ) * - - 69 * + 88 - + MAX ( + ( - 78 ) ) + + ( - 77 )
----
-6071

onlyif mysql # DIV for integer division: 
query II rowsort label-2307
SELECT DISTINCT 4 AS col2, + 84 DIV + 46 + ( - 43 )
----
4
-42

skipif mysql # not compatible
query II rowsort label-2307
SELECT DISTINCT 4 AS col2, + 84 / + 46 + ( - 43 )
----
4
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT DISTINCT COALESCE ( - 44, 17 ) * + - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT COALESCE ( - 44, 17 ) * + - COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT DISTINCT + COUNT( * ) + - 10 * + SUM( ALL - 64 ) AS col0
----
641

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT + COUNT ( * ) + - 10 * + SUM ( ALL - 64 ) AS col0
----
641

query I rowsort
SELECT 81 * - 99
----
-8019

query I rowsort
SELECT ALL 63 + - 45 AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2312
SELECT + 66 AS col0, COUNT( + 19 ) * + - 50 * + 46 + + ( - 31 )
----
66
-2331

skipif mysql # not compatible
query II rowsort label-2312
SELECT + 66 AS col0, COUNT ( + 19 ) * + - 50 * + 46 + + ( - 31 )
----
66
-2331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2313
SELECT - - NULLIF ( - COALESCE ( + + 61, - 20 + + 5 + 74 ), - COUNT( * ) * + 60 * 84 - - COUNT( * ) * - CASE - 11 * 68 WHEN + CAST( NULL AS SIGNED ) + - 40 THEN - 15 END ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-2313
SELECT - - NULLIF ( - COALESCE ( + + 61, - 20 + + 5 + 74 ), - COUNT ( * ) * + 60 * 84 - - COUNT ( * ) * - CASE - 11 * 68 WHEN + CAST ( NULL AS INTEGER ) + - 40 THEN - 15 END ) col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT + 47 + - 41 - + MAX( - 16 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2314
SELECT + 47 + - 41 - + MAX ( - 16 ) AS col2
----
22

query I rowsort
SELECT ALL + 59 + - 69
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-2316
SELECT + 30 * MIN( 99 ) col0, SUM( + + 55 )
----
2970
55

skipif mysql # not compatible
query II rowsort label-2316
SELECT + 30 * MIN ( 99 ) col0, SUM ( + + 55 )
----
2970
55

query I rowsort
SELECT + - 78 + + 44 + 41 AS col2
----
7

query I rowsort
SELECT ALL - 6 * ( - 51 ) AS col1
----
306

query I rowsort
SELECT DISTINCT 6 - + CASE - - 10 WHEN - 45 * 97 THEN + 14 WHEN 17 * - 11 * + 5 THEN NULL END + 2
----
NULL

query I rowsort
SELECT - 35 + - 64 AS col0
----
-99

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

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL COUNT ( * ) / 3 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2322
SELECT + 47 DIV + COALESCE ( - 77, - - MAX( ( - 86 ) ) + - - COUNT( * ), - + 39 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2322
SELECT + 47 / + COALESCE ( - 77, - - MAX ( ( - 86 ) ) + - - COUNT ( * ), - + 39 ) AS col0
----
0

query I rowsort
SELECT - ( 38 ) * 49 + - - 2
----
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL + 43 * + NULLIF ( - 73, COUNT( * ) / + 11 + + 67 + 65 * + - 11 ) col2
----
-3139

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + 43 * + NULLIF ( - 73, COUNT ( * ) / + 11 + + 67 + 65 * + - 11 ) col2
----
-3139

query I rowsort
SELECT - 3 * + 19 + - 52 * + 10 AS col1
----
-577

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT + NULLIF ( + COUNT( * ), 87 * AVG ( - 90 ) / 73 )
----
1

skipif mysql # not compatible
query I rowsort label-2326
SELECT + NULLIF ( + COUNT ( * ), 87 * AVG ( - 90 ) / 73 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2327
SELECT ALL + ( - + 57 ), - MIN( ALL 91 ) + 94 AS col2
----
-57
3

skipif mysql # not compatible
query II rowsort label-2327
SELECT ALL + ( - + 57 ), - MIN ( ALL 91 ) + 94 AS col2
----
-57
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2328
SELECT ALL 99 * 39 * COUNT( * ) * + 63 DIV 7 AS col1
----
34749

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL 99 * 39 * COUNT ( * ) * + 63 / 7 AS col1
----
34749

onlyif mysql # aggregate syntax: 
query II rowsort label-2329
SELECT COALESCE ( - + ( - 15 ), 71 * + 81 ) col2, COUNT( * ) + 23 - + + COUNT( * )
----
15
23

skipif mysql # not compatible
query II rowsort label-2329
SELECT COALESCE ( - + ( - 15 ), 71 * + 81 ) col2, COUNT ( * ) + 23 - + + COUNT ( * )
----
15
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT ALL COUNT( * ) * + CASE CASE - COUNT( * ) WHEN 17 THEN NULL WHEN 24 THEN COALESCE ( - + 89, - + 49 * 1, 55 * - 63, + 26 ) * - COUNT( * ) + - COUNT( * ) * 91 ELSE NULL END WHEN 97 THEN MAX( 58 ) WHEN - 31 * ( + NULLIF ( + 95, + 31 + ( - 56 ) / 16 ) ) THEN + 16 END + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL COUNT ( * ) * + CASE CASE - COUNT ( * ) WHEN 17 THEN NULL WHEN 24 THEN COALESCE ( - + 89, - + 49 * 1, 55 * - 63, + 26 ) * - COUNT ( * ) + - COUNT ( * ) * 91 ELSE NULL END WHEN 97 THEN MAX ( 58 ) WHEN - 31 * ( + NULLIF ( + 95, + 31 + ( - 56 ) / 16 ) ) THEN + 16 END + 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT - CASE - 92 WHEN + 33 + + COUNT( * ) THEN + 97 WHEN 34 THEN - + 2 - - 54 ELSE NULL END - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT - CASE - 92 WHEN + 33 + + COUNT ( * ) THEN + 97 WHEN 34 THEN - + 2 - - 54 ELSE NULL END - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT SUM( ALL + + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-2332
SELECT SUM ( ALL + + 11 ) AS col1
----
11

query I rowsort
SELECT ALL 89 * + 36 + + ( - 3 ) AS col2
----
3201

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT - 33 - + 68 + + + COUNT( * ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-2334
SELECT - 33 - + 68 + + + COUNT ( * ) AS col2
----
-100

query I rowsort
SELECT + - ( - - 53 ) * - + 13 + - + 67
----
622

query I rowsort
SELECT ALL - + 90 * - 90 AS col1
----
8100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2337
SELECT ALL - 80 * + COUNT( * ) + - COUNT( * ) DIV - 66 * - 24 * - 45
----
-80

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL - 80 * + COUNT ( * ) + - COUNT ( * ) / - 66 * - 24 * - 45
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT ALL 95 + + 69 + - COUNT( * ) + - SUM( + 67 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL 95 + + 69 + - COUNT ( * ) + - SUM ( + 67 ) AS col1
----
96

query I rowsort
SELECT - - 18 + 77 * + 92
----
7102

onlyif mysql # aggregate syntax: 
query II rowsort label-2340
SELECT - + COUNT( * ) + 18 + - + 86 * 20, - 40 col0
----
-1703
-40

skipif mysql # not compatible
query II rowsort label-2340
SELECT - + COUNT ( * ) + 18 + - + 86 * 20, - 40 col0
----
-1703
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2341
SELECT - + ( - + ( - 4 ) ) * + 35 + COUNT( * ) + + 49 * - 4 + + ( ( 78 ) ) + 40 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2341
SELECT - + ( - + ( - 4 ) ) * + 35 + COUNT ( * ) + + 49 * - 4 + + ( ( 78 ) ) + 40 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2342
SELECT - + 57 * - COUNT( 71 ) * + ( + COUNT( * ) ) + - CAST( - + 51 AS SIGNED ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-2342
SELECT - + 57 * - COUNT ( 71 ) * + ( + COUNT ( * ) ) + - CAST ( - + 51 AS INTEGER ) AS col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2343
SELECT ALL + ( - 25 ) DIV 66 * - COUNT( ALL - 71 ) + - CAST( - + COUNT( * ) AS SIGNED ) + - - 5
----
6

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL + ( - 25 ) / 66 * - COUNT ( ALL - 71 ) + - CAST ( - + COUNT ( * ) AS INTEGER ) + - - 5
----
6

query I rowsort
SELECT ALL - 36 * + 64
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT - - COUNT( * ) * - - 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2345
SELECT - - COUNT ( * ) * - - 3 AS col2
----
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2347
SELECT - MAX( + + CAST( 79 AS SIGNED ) ) AS col2, ( - + ( + - 94 ) ) * ( - 71 ) AS col1
----
-79
-6674

skipif mysql # not compatible
query II rowsort label-2347
SELECT - MAX ( + + CAST ( 79 AS INTEGER ) ) AS col2, ( - + ( + - 94 ) ) * ( - 71 ) AS col1
----
-79
-6674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2348
SELECT - ( + CAST( - SUM( + 76 ) AS SIGNED ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-2348
SELECT - ( + CAST ( - SUM ( + 76 ) AS INTEGER ) ) AS col0
----
76

query I rowsort
SELECT + 29 * - 89 AS col2
----
-2581

query II rowsort
SELECT + 41 + - 20 + + 19 col1, 43 + 1 + 19 * + 61 + - + 93 * CASE WHEN NOT 62 IS NULL THEN NULL ELSE ( 5 ) END * ( 54 * - 50 ) AS col0
----
40
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2352
SELECT ALL CAST( - + COALESCE ( + COUNT( * ), - - 12 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL CAST ( - + COALESCE ( + COUNT ( * ), - - 12 ) AS INTEGER )
----
-1

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

skipif mysql # not compatible
query I rowsort label-2353
SELECT + 93 / 86
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2354
SELECT CAST( SUM( 35 ) AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-2354
SELECT CAST ( SUM ( 35 ) AS INTEGER )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT ( + 32 ) DIV - 50 + - 66 + + - 65 * 33 AS col2
----
-2211

skipif mysql # not compatible
query I rowsort label-2355
SELECT ( + 32 ) / - 50 + - 66 + + - 65 * 33 AS col2
----
-2211

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT + CASE 51 WHEN - COUNT( DISTINCT - + 10 ) THEN - + 33 ELSE CASE COUNT( * ) WHEN + 22 THEN NULL ELSE 43 END END + - - 28 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-2357
SELECT + CASE 51 WHEN - COUNT ( DISTINCT - + 10 ) THEN - + 33 ELSE CASE COUNT ( * ) WHEN + 22 THEN NULL ELSE 43 END END + - - 28 AS col1
----
71

query I rowsort
SELECT DISTINCT 86 * - + 80
----
-6880

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2360
SELECT + NULLIF ( 16, 64 ) DIV - COUNT( * ) + 40 col2, - 77
----
24
-77

skipif mysql # not compatible
query II rowsort label-2360
SELECT + NULLIF ( 16, 64 ) / - COUNT ( * ) + 40 col2, - 77
----
24
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2361
SELECT DISTINCT + 17 col1, + CAST( + - 62 AS SIGNED ) + - 56 DIV 3 AS col0
----
17
-80

skipif mysql # not compatible
query II rowsort label-2361
SELECT DISTINCT + 17 col1, + CAST ( + - 62 AS INTEGER ) + - 56 / 3 AS col0
----
17
-80

query II rowsort
SELECT ALL 47 * + 93 + - 32, + 19 * 21 AS col1
----
4339
399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2363
SELECT DISTINCT - CASE - NULLIF ( COUNT( - 54 ), + + 92 ) WHEN - 16 THEN NULL ELSE + + 68 - + COUNT( * ) END * + + CASE - 83 WHEN + 30 THEN NULL WHEN + 5 + - 49 * 75 THEN NULL ELSE + 58 + + 73 END + NULLIF ( 74, COUNT( DISTINCT 99 ) + + CAST( NULL AS SIGNED ) )
----
-8703

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT - CASE - NULLIF ( COUNT ( - 54 ), + + 92 ) WHEN - 16 THEN NULL ELSE + + 68 - + COUNT ( * ) END * + + CASE - 83 WHEN + 30 THEN NULL WHEN + 5 + - 49 * 75 THEN NULL ELSE + 58 + + 73 END + NULLIF ( 74, COUNT ( DISTINCT 99 ) + + CAST ( NULL AS INTEGER ) )
----
-8703

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT ALL 21 * 70 * - 40 + + 29 + - 15 * - - 54 + - 88 - - SUM( DISTINCT 0 ) + - - 45
----
-59624

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL 21 * 70 * - 40 + + 29 + - 15 * - - 54 + - 88 - - SUM ( DISTINCT 0 ) + - - 45
----
-59624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2365
SELECT 86 * 83 + 68 DIV - MIN( - - 88 ) * + 57 * + + 21 + + 65 - 92 + + COALESCE ( - 38, 14 ) + COALESCE ( CASE 3 WHEN 71 * - 26 THEN 12 END, 60 ) - 89
----
7044

skipif mysql # not compatible
query I rowsort label-2365
SELECT 86 * 83 + 68 / - MIN ( - - 88 ) * + 57 * + + 21 + + 65 - 92 + + COALESCE ( - 38, 14 ) + COALESCE ( CASE 3 WHEN 71 * - 26 THEN 12 END, 60 ) - 89
----
7044

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT - COUNT( 98 ) * 71 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-2366
SELECT - COUNT ( 98 ) * 71 AS col1
----
-71

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2368
SELECT + CASE - + 72 WHEN - 70 THEN + 76 - - 49 * - CASE + - 33 WHEN 65 THEN + MAX( + 1 ) WHEN 5 THEN NULL END * + AVG ( 97 * - 28 ) WHEN - COALESCE ( + 41, + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) ) THEN NULL ELSE NULL END * 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT + CASE - + 72 WHEN - 70 THEN + 76 - - 49 * - CASE + - 33 WHEN 65 THEN + MAX ( + 1 ) WHEN 5 THEN NULL END * + AVG ( 97 * - 28 ) WHEN - COALESCE ( + 41, + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) THEN NULL ELSE NULL END * 79 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT DISTINCT + + 20 * - - NULLIF ( 51, - COUNT( * ) + - 41 * + - ( 22 ) ) * + + 18 * + 11 - 71 col0
----
201889

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT + + 20 * - - NULLIF ( 51, - COUNT ( * ) + - 41 * + - ( 22 ) ) * + + 18 * + 11 - 71 col0
----
201889

query I rowsort
SELECT DISTINCT + 98 - 43
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2371
SELECT ALL + COUNT( * ), + 27 + - 88 AS col1
----
1
-61

skipif mysql # not compatible
query II rowsort label-2371
SELECT ALL + COUNT ( * ), + 27 + - 88 AS col1
----
1
-61

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

skipif mysql # not compatible
query I rowsort label-2372
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), - COUNT ( * ) ) * + + 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT 0 * 21 * NULLIF ( + 29, - 39 * - 92 ) + + 26 + - SUM( DISTINCT + + 59 )
----
-33

skipif mysql # not compatible
query I rowsort label-2373
SELECT 0 * 21 * NULLIF ( + 29, - 39 * - 92 ) + + 26 + - SUM ( DISTINCT + + 59 )
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2374
SELECT ( + + COUNT( * ) ) * + SUM( 1 ) DIV - 1 col0, + 97 DIV COUNT( + 89 )
----
-1
97

skipif mysql # not compatible
query II rowsort label-2374
SELECT ( + + COUNT ( * ) ) * + SUM ( 1 ) / - 1 col0, + 97 / COUNT ( + 89 )
----
-1
97

query I rowsort
SELECT 34 + 23 + 31
----
88

query I rowsort
SELECT 44 + - 14 col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2377
SELECT ALL 84 col1, COALESCE ( + 46, - MAX( ALL 47 ) ) + - COUNT( * ) AS col1
----
84
45

skipif mysql # not compatible
query II rowsort label-2377
SELECT ALL 84 col1, COALESCE ( + 46, - MAX ( ALL 47 ) ) + - COUNT ( * ) AS col1
----
84
45

query II rowsort
SELECT DISTINCT 37, + 80 AS col1
----
37
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT DISTINCT - 98 + CAST( - 55 AS SIGNED ) AS col1
----
-153

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT - 98 + CAST ( - 55 AS INTEGER ) AS col1
----
-153

query I rowsort
SELECT ALL 45 + ( - + 24 ) AS col2
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2381
SELECT ALL - 26 + + CASE 38 WHEN - - 3 - 21 THEN NULL WHEN - ( + 42 ) - CAST( + - AVG ( ( - 12 ) ) AS DECIMAL ) / - 55 THEN + 16 ELSE 17 END
----
-9

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL - 26 + + CASE 38 WHEN - - 3 - 21 THEN NULL WHEN - ( + 42 ) - CAST ( + - AVG ( ( - 12 ) ) AS REAL ) / - 55 THEN + 16 ELSE 17 END
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT ALL 91 + + 28 DIV + 42
----
91

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL 91 + + 28 / + 42
----
91

query I rowsort
SELECT + 24 * - 94
----
-2256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2384
SELECT - 33 + - + COUNT( * ) DIV + 55 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-2384
SELECT - 33 + - + COUNT ( * ) / + 55 AS col0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2385
SELECT DISTINCT - 54 DIV - 23 + + + 91 * - 11 AS col1
----
-999

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT - 54 / - 23 + + + 91 * - 11 AS col1
----
-999

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2386
SELECT ALL NULLIF ( 33, + + 42 * ( + + 15 ) + - MAX( - 60 ) + - 56 - CAST( NULL AS SIGNED ) + CAST( + 8 AS SIGNED ) + 72 / MIN( ALL + 89 - 61 ) ) * - 39
----
-1287

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL NULLIF ( 33, + + 42 * ( + + 15 ) + - MAX ( - 60 ) + - 56 - CAST ( NULL AS INTEGER ) + CAST ( + 8 AS INTEGER ) + 72 / MIN ( ALL + 89 - 61 ) ) * - 39
----
-1287

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2388
SELECT 41 * + 89 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT 41 * + 89 + - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL + 30 * + - COUNT ( * ) + COUNT ( * ) * - 80 AS col0
----
-110

query I rowsort
SELECT - 22 * - 83 + - - 62 * 72 + - 73 AS col1
----
6217

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL - ( COUNT( 36 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL - ( COUNT ( 36 ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 1 * 92 * - + 11
----
-1012

query I rowsort
SELECT ALL 19 * - - 84 * + 86 + - 53 AS col1
----
137203

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT - 6 * 70 DIV + 66 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2394
SELECT - 6 * 70 / + 66 AS col0
----
-6

query I rowsort
SELECT 12 * - + 73 AS col0
----
-876

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT - 90 + COALESCE ( + SUM( - 90 ), - 46 ) + + + 29 * + + 38
----
922

skipif mysql # not compatible
query I rowsort label-2396
SELECT - 90 + COALESCE ( + SUM ( - 90 ), - 46 ) + + + 29 * + + 38
----
922

query I rowsort
SELECT - CASE WHEN NOT - 91 IS NOT NULL THEN NULL ELSE - 47 END
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2398
SELECT DISTINCT 47 + 13 DIV - MIN( ALL - 24 ) + - 75 + + MIN( - 21 ) * 64 + - + 62 DIV + - 83
----
-1372

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT 47 + 13 / - MIN ( ALL - 24 ) + - 75 + + MIN ( - 21 ) * 64 + - + 62 / + - 83
----
-1372

onlyif mysql # DIV for integer division: 
query II rowsort label-2399
SELECT 50 DIV - 30 col0, 54
----
-1
54

skipif mysql # not compatible
query II rowsort label-2399
SELECT 50 / - 30 col0, 54
----
-1
54

query I rowsort
SELECT DISTINCT - 11 + 34
----
23

query I rowsort
SELECT ALL + 57 + 85
----
142

query I rowsort
SELECT ALL + 84 * ( + 50 ) * - 9
----
-37800

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT COUNT( * ) - - 88 * - - 8 * - ( 49 ) AS col0
----
-34495

skipif mysql # not compatible
query I rowsort label-2403
SELECT COUNT ( * ) - - 88 * - - 8 * - ( 49 ) AS col0
----
-34495

query I rowsort
SELECT DISTINCT + 66 * - + 86 * + + 73 AS col2
----
-414348

query I rowsort
SELECT ALL - 94 + + 5 + 45 AS col1
----
-44

query I rowsort
SELECT 69 - + 81
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT 75 * - MIN( ALL - 61 ) AS col1
----
4575

skipif mysql # not compatible
query I rowsort label-2407
SELECT 75 * - MIN ( ALL - 61 ) AS col1
----
4575

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT DISTINCT + 12 + COUNT( * ) * + + 80 * + 26
----
2092

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT + 12 + COUNT ( * ) * + + 80 * + 26
----
2092

onlyif mysql # DIV for integer division: 
query I rowsort label-2409
SELECT ALL - COALESCE ( 4, 79 ) DIV 30
----
0

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL - COALESCE ( 4, 79 ) / 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT NULLIF ( + CASE - 38 WHEN - 7 * - COUNT( * ) * - 33 THEN + - 26 WHEN - ( - 71 ) THEN NULL WHEN - 10 * + CASE ( + 10 ) WHEN 15 / - 36 THEN MAX( 24 ) / - COUNT( * ) END THEN NULL END, + 54 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2410
SELECT NULLIF ( + CASE - 38 WHEN - 7 * - COUNT ( * ) * - 33 THEN + - 26 WHEN - ( - 71 ) THEN NULL WHEN - 10 * + CASE ( + 10 ) WHEN 15 / - 36 THEN MAX ( 24 ) / - COUNT ( * ) END THEN NULL END, + 54 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2411
SELECT ALL ( + 55 ) * 80 + + COUNT( * ) DIV COUNT( * ) col0
----
4401

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL ( + 55 ) * 80 + + COUNT ( * ) / COUNT ( * ) col0
----
4401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2412
SELECT ALL + CAST( + NULLIF ( + + 92, - COUNT( * ) ) AS DECIMAL ) * CASE 69 WHEN + - 80 THEN - + 46 * CAST( NULL AS SIGNED ) + + COUNT( * ) + + 94 / - COUNT( 60 ) WHEN 64 THEN NULL END - + ( 60 ) * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL + CAST ( + NULLIF ( + + 92, - COUNT ( * ) ) AS REAL ) * CASE 69 WHEN + - 80 THEN - + 46 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 94 / - COUNT ( 60 ) WHEN 64 THEN NULL END - + ( 60 ) * - 95
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT - COUNT( * ) * - 56 * 53 - - 93
----
3061

skipif mysql # not compatible
query I rowsort label-2414
SELECT - COUNT ( * ) * - 56 * 53 - - 93
----
3061

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT - 88 * + 81 * - COUNT( * ) AS col1
----
7128

skipif mysql # not compatible
query I rowsort label-2415
SELECT - 88 * + 81 * - COUNT ( * ) AS col1
----
7128

query I rowsort
SELECT ALL + - 80 col0
----
-80

query II rowsort
SELECT DISTINCT + - 12 * + - ( - 20 ) * - - 70 * - 63, - 95 / + - 27 + + - CASE 74 WHEN + 9 THEN + 15 END * 41 AS col2
----
1058400
NULL

query I rowsort
SELECT - 91 * - + 61
----
5551

query I rowsort
SELECT + 60 * + - 90
----
-5400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2420
SELECT ALL - 49 / - 47 * - + 13 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL - 49 / - 47 * - + 13 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2421
SELECT + + COALESCE ( 14, - 12, 87 ) DIV 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2421
SELECT + + COALESCE ( 14, - 12, 87 ) / 83 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-2422
SELECT + - COUNT ( * ) / + 51 col2
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( - 28, - 49, + + 39 ) + 10
----
-18

query I rowsort
SELECT ALL + ( 5 ) + + + 95
----
100

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

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL + 24 + + COUNT ( * ) AS col1
----
25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2427
SELECT ALL ( 42 ) + - ( COUNT( DISTINCT - - ( - CAST( + - 95 AS SIGNED ) ) ) )
----
41

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL ( 42 ) + - ( COUNT ( DISTINCT - - ( - CAST ( + - 95 AS INTEGER ) ) ) )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2428
SELECT ALL CAST( NULL AS SIGNED ) * 25 / 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL CAST ( NULL AS INTEGER ) * 25 / 80 AS col1
----
NULL

query I rowsort
SELECT ALL - 25 + - 78
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT + 70 - + + COALESCE ( + COUNT( * ), + - 0, - + 44 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2430
SELECT + 70 - + + COALESCE ( + COUNT ( * ), + - 0, - + 44 ) AS col2
----
69

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

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL 35 + + COUNT ( * ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT + COUNT( * ) + + 40 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2432
SELECT + COUNT ( * ) + + 40 AS col0
----
41

query II rowsort
SELECT + ( + 33 ) - + 78 AS col1, + 72
----
-45
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2434
SELECT 65 AS col1, COUNT( + + 39 ) + - CAST( NULL AS SIGNED ) AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-2434
SELECT 65 AS col1, COUNT ( + + 39 ) + - CAST ( NULL AS INTEGER ) AS col0
----
65
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2435
SELECT - COUNT( * ) + - CAST( + 78 AS SIGNED ) - - 64
----
-15

skipif mysql # not compatible
query I rowsort label-2435
SELECT - COUNT ( * ) + - CAST ( + 78 AS INTEGER ) - - 64
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2436
SELECT ALL 29 + + + 53 + - CAST( ( + - COALESCE ( - 85, 44 * - 13 + + COUNT( * ) + 82 - - 91 * 55 / - 39 * COUNT( ALL 38 ), + ( + 42 ) * 14 + 57 ) ) AS SIGNED ) - - 2 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL 29 + + + 53 + - CAST ( ( + - COALESCE ( - 85, 44 * - 13 + + COUNT ( * ) + 82 - - 91 * 55 / - 39 * COUNT ( ALL 38 ), + ( + 42 ) * 14 + 57 ) ) AS INTEGER ) - - 2 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2437
SELECT - COALESCE ( CAST( NULL AS SIGNED ), + 32 - + 91 * + 78, + 44 ), 10 * - + 33 AS col0
----
7066
-330

skipif mysql # not compatible
query II rowsort label-2437
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), + 32 - + 91 * + 78, + 44 ), 10 * - + 33 AS col0
----
7066
-330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2438
SELECT + ( AVG ( DISTINCT - 83 ) ) + - + CAST( NULL AS SIGNED ) + - + 43 * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT + ( AVG ( DISTINCT - 83 ) ) + - + CAST ( NULL AS INTEGER ) + - + 43 * - 1
----
NULL

query II rowsort
SELECT 17 AS col2, - 26 col1
----
17
-26

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

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL MIN ( - 91 )
----
-91

query I rowsort
SELECT DISTINCT 34 + + + COALESCE ( 13, + 47 )
----
47

query I rowsort
SELECT ALL 93 + 87
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL 69 - + NULLIF ( - + 62, 89 ) * ( + - 13 ) + - + COUNT( - - 34 )
----
-738

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL 69 - + NULLIF ( - + 62, 89 ) * ( + - 13 ) + - + COUNT ( - - 34 )
----
-738

query I rowsort
SELECT - 80 * - 27
----
2160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2445
SELECT ALL 86 DIV - ( - COUNT( * ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL 86 / - ( - COUNT ( * ) ) AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT ALL + AVG ( 13 ) - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL + AVG ( 13 ) - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 16 AS col0, 73
----
16
73

query I rowsort
SELECT - 33 + + 58 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2449
SELECT + 44 * + CAST( CASE CAST( NULL AS SIGNED ) WHEN 91 + + CAST( NULL AS SIGNED ) THEN NULL WHEN + + COALESCE ( + 85, + + COUNT( * ) * - 28 ) * - CAST( + 74 AS SIGNED ) + COUNT( * ) THEN - 47 + 31 ELSE + 60 END AS SIGNED ) AS col1
----
2640

skipif mysql # not compatible
query I rowsort label-2449
SELECT + 44 * + CAST ( CASE CAST ( NULL AS INTEGER ) WHEN 91 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + + COALESCE ( + 85, + + COUNT ( * ) * - 28 ) * - CAST ( + 74 AS INTEGER ) + COUNT ( * ) THEN - 47 + 31 ELSE + 60 END AS INTEGER ) AS col1
----
2640

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2451
SELECT ALL - COUNT( DISTINCT 30 ) DIV + - 57 - MIN( ALL ( + 65 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL - COUNT ( DISTINCT 30 ) / + - 57 - MIN ( ALL ( + 65 ) )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2452
SELECT - + 12 * + + CAST( NULL AS SIGNED ) * + 23 + + MAX( 74 ) - CAST( - 44 AS SIGNED ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT - + 12 * + + CAST ( NULL AS INTEGER ) * + 23 + + MAX ( 74 ) - CAST ( - 44 AS INTEGER ) * 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2453
SELECT - - 10 DIV + 14
----
0

skipif mysql # not compatible
query I rowsort label-2453
SELECT - - 10 / + 14
----
0

query I rowsort
SELECT DISTINCT - 52 * + + 29
----
-1508

onlyif mysql # aggregate syntax: 
query II rowsort label-2455
SELECT ALL + COUNT( * ) * - + 30 * + - 55 + 31 AS col2, 64
----
1681
64

skipif mysql # not compatible
query II rowsort label-2455
SELECT ALL + COUNT ( * ) * - + 30 * + - 55 + 31 AS col2, 64
----
1681
64

query II rowsort
SELECT DISTINCT + 8 AS col0, + 86 col1
----
8
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT - + 33 + CAST( 5 AS SIGNED ) - - 34 + - 27
----
-21

skipif mysql # not compatible
query I rowsort label-2457
SELECT - + 33 + CAST ( 5 AS INTEGER ) - - 34 + - 27
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT - COUNT( * ) * + 19 + + 4 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2458
SELECT - COUNT ( * ) * + 19 + + 4 AS col2
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2459
SELECT - - 64 * + + ( - 86 ) AS col1, + CAST( NULL AS DECIMAL ) AS col2
----
-5504
NULL

skipif mysql # not compatible
query II rowsort label-2459
SELECT - - 64 * + + ( - 86 ) AS col1, + CAST ( NULL AS REAL ) AS col2
----
-5504
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT - - 12 * ( 55 ) + - + 63 * + 77 + + MAX( DISTINCT + 57 )
----
-4134

skipif mysql # not compatible
query I rowsort label-2460
SELECT - - 12 * ( 55 ) + - + 63 * + 77 + + MAX ( DISTINCT + 57 )
----
-4134

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT - - 72 + 49 * + NULLIF ( + 75, + + 70 + - 97 / + - COALESCE ( - 72, - 60 + COUNT( * ) ) - + - 59 ) * + MIN( + 80 ) * - 22
----
-6467928

skipif mysql # not compatible
query I rowsort label-2462
SELECT - - 72 + 49 * + NULLIF ( + 75, + + 70 + - 97 / + - COALESCE ( - 72, - 60 + COUNT ( * ) ) - + - 59 ) * + MIN ( + 80 ) * - 22
----
-6467928

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT - 97 + - 36 * + 1 + + 49 * - 29 * + COUNT( * )
----
-1554

skipif mysql # not compatible
query I rowsort label-2463
SELECT - 97 + - 36 * + 1 + + 49 * - 29 * + COUNT ( * )
----
-1554

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT DISTINCT - - COUNT( * ) * + + 23 + COUNT( * ) * ( - ( + - 95 ) ) + - - NULLIF ( 18, 63 )
----
136

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT - - COUNT ( * ) * + + 23 + COUNT ( * ) * ( - ( + - 95 ) ) + - - NULLIF ( 18, 63 )
----
136

query I rowsort
SELECT - - 75 * 23 + + - ( 80 ) + + 37
----
1682

query I rowsort
SELECT ALL - - 98 * 78 + ( + 22 )
----
7666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2467
SELECT - 24 * ( - 37 ) + + - 84 - - 54 * - COUNT( * ) + + - 15 + COUNT( * ) + + NULLIF ( + - 69, + AVG ( DISTINCT 38 ) * 60 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2467
SELECT - 24 * ( - 37 ) + + - 84 - - 54 * - COUNT ( * ) + + - 15 + COUNT ( * ) + + NULLIF ( + - 69, + AVG ( DISTINCT 38 ) * 60 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2468
SELECT + - CASE COUNT( * ) WHEN + 29 * - 37 - - COUNT( * ) THEN 38 * + + CAST( NULL AS SIGNED ) * - 82 ELSE NULL END, - 2 AS col1
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-2468
SELECT + - CASE COUNT ( * ) WHEN + 29 * - 37 - - COUNT ( * ) THEN 38 * + + CAST ( NULL AS INTEGER ) * - 82 ELSE NULL END, - 2 AS col1
----
NULL
-2

query I rowsort
SELECT DISTINCT - - 42 * 55 * 20
----
46200

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT + CASE + 12 WHEN + - 72 THEN - + 39 ELSE NULL END + 5 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT + CASE + 12 WHEN + - 72 THEN - + 39 ELSE NULL END + 5 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT + 47 + + + 95 + - COUNT( * ) * + + 68 * + COUNT( * ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-2471
SELECT + 47 + + + 95 + - COUNT ( * ) * + + 68 * + COUNT ( * ) AS col0
----
74

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

skipif mysql # not compatible
query I rowsort label-2472
SELECT + CAST ( NULL AS INTEGER ) + - + 78 + 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2473
SELECT ALL 82 * 46 + + CAST( - + 41 AS SIGNED ) AS col1, - 52 + 95 - - 67 * + COUNT( * )
----
3731
110

skipif mysql # not compatible
query II rowsort label-2473
SELECT ALL 82 * 46 + + CAST ( - + 41 AS INTEGER ) AS col1, - 52 + 95 - - 67 * + COUNT ( * )
----
3731
110

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT + 11 DIV - + ( 91 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2474
SELECT + 11 / - + ( 91 ) col2
----
0

query I rowsort
SELECT ALL 23 * 38
----
874

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2476
SELECT DISTINCT - 49 DIV + + CASE + + 42 WHEN 28 * + - ( - ( + CAST( + - 11 AS DECIMAL ) ) ) DIV + 78 THEN COUNT( * ) + + AVG ( DISTINCT - CASE + - 57 WHEN - + 8 THEN NULL ELSE - 51 END ) + 9 ELSE 65 END * + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT - 49 / + + CASE + + 42 WHEN 28 * + - ( - ( + CAST ( + - 11 AS REAL ) ) ) / + 78 THEN COUNT ( * ) + + AVG ( DISTINCT - CASE + - 57 WHEN - + 8 THEN NULL ELSE - 51 END ) + 9 ELSE 65 END * + 36 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2477
SELECT ALL + 94 - + 83, COUNT( * ) + - 88 AS col2
----
11
-87

skipif mysql # not compatible
query II rowsort label-2477
SELECT ALL + 94 - + 83, COUNT ( * ) + - 88 AS col2
----
11
-87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL COUNT( 67 ) - + - COUNT( ALL 55 ) + - 34 * COUNT( * ) * - 16 * 68 col0
----
36994

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL COUNT ( 67 ) - + - COUNT ( ALL 55 ) + - 34 * COUNT ( * ) * - 16 * 68 col0
----
36994

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

query I rowsort
SELECT + 57 * + 9 * - - 10
----
5130

query I rowsort
SELECT DISTINCT 80 * - - ( + - 0 ) AS col0
----
0

query II rowsort
SELECT - ( - 62 ) AS col0, 67 * - - 35 * 94 AS col0
----
62
220430

query I rowsort
SELECT + 51 + + + 25 - + 56 - - 89 - - + 80 col1
----
189

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2487
SELECT ALL NULLIF ( CAST( + 42 AS SIGNED ), - - COUNT( * ) ) AS col2, ( + 46 ) AS col1
----
42
46

skipif mysql # not compatible
query II rowsort label-2487
SELECT ALL NULLIF ( CAST ( + 42 AS INTEGER ), - - COUNT ( * ) ) AS col2, ( + 46 ) AS col1
----
42
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT - 79 * - - COUNT( * ) + + + 87 + - 89 * COUNT( + + 90 ) * + - 51 - 90 + - 37 * 43 * 20
----
-27363

skipif mysql # not compatible
query I rowsort label-2488
SELECT - 79 * - - COUNT ( * ) + + + 87 + - 89 * COUNT ( + + 90 ) * + - 51 - 90 + - 37 * 43 * 20
----
-27363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2489
SELECT + CAST( NULL AS SIGNED ) * 63, 76 + - 14 - + + SUM( + 36 ) * + COUNT( * ) + - + 98 * + + 69 AS col1
----
NULL
-6736

skipif mysql # not compatible
query II rowsort label-2489
SELECT + CAST ( NULL AS INTEGER ) * 63, 76 + - 14 - + + SUM ( + 36 ) * + COUNT ( * ) + - + 98 * + + 69 AS col1
----
NULL
-6736

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

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

query I rowsort
SELECT ALL - - 44 * + NULLIF ( 59, - 28 )
----
2596

query I rowsort
SELECT 20 * - - 30
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT + + 71 * - 5 + 12 + - COUNT( * ) * 79
----
-422

skipif mysql # not compatible
query I rowsort label-2493
SELECT + + 71 * - 5 + 12 + - COUNT ( * ) * 79
----
-422

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2494
SELECT ALL - 57 + + 98, CAST( - ( - 94 ) AS SIGNED ) AS col0
----
41
94

skipif mysql # not compatible
query II rowsort label-2494
SELECT ALL - 57 + + 98, CAST ( - ( - 94 ) AS INTEGER ) AS col0
----
41
94

query I rowsort
SELECT ALL 65 + - 12
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-2496
SELECT - 9 DIV - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2496
SELECT - 9 / - 95 AS col1
----
0

query I rowsort
SELECT ALL + 66 + 80 AS col2
----
146

query II rowsort
SELECT + 18 * - 49 AS col1, - 33 - 79 AS col0
----
-882
-112

query I rowsort
SELECT DISTINCT - + CASE + + ( 12 ) WHEN + 73 THEN NULL ELSE + 19 END AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2500
SELECT DISTINCT + - AVG ( DISTINCT - 76 ) + + - 27 * + 84 * - COUNT( * ) / - + 46 * + 19 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT + - AVG ( DISTINCT - 76 ) + + - 27 * + 84 * - COUNT ( * ) / - + 46 * + 19 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT - NULLIF ( 45, + + COUNT( 58 ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-2501
SELECT - NULLIF ( 45, + + COUNT ( 58 ) ) AS col0
----
-45

query I rowsort
SELECT ALL + 25 + - + 73
----
-48

query II rowsort
SELECT ALL - 18, 98 AS col1
----
-18
98

query I rowsort
SELECT 35 * + - CASE - - 49 WHEN + 95 + + 91 THEN - CASE - 88 WHEN - + 16 / - 20 / + - 42 + + 34 * + 66 THEN NULL WHEN + 84 * + + 42 THEN + 36 * 0 END END + NULLIF ( 19, + AVG ( DISTINCT 21 ) * 45 ) / 43
----
NULL

query I rowsort
SELECT 59 - 71 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL - COUNT( * ) * - 25 * + + SUM( 71 )
----
1775

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - COUNT ( * ) * - 25 * + + SUM ( 71 )
----
1775

query I rowsort
SELECT ALL - 62 - - 17 - 17 col2
----
-62

query I rowsort
SELECT 85 * 80 * 37 AS col2
----
251600

query I rowsort
SELECT DISTINCT - 53 * + - 7
----
371

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

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

query I rowsort
SELECT 78 + + + 64
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT COUNT( * ) + + + 89 - CASE - 80 WHEN - 94 / 33 - - + 13 * + 83 + - - 56 THEN NULL WHEN + 28 + - - 8 THEN - 33 END + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT COUNT ( * ) + + + 89 - CASE - 80 WHEN - 94 / 33 - - + 13 * + 83 + - - 56 THEN NULL WHEN + 28 + - - 8 THEN - 33 END + + 47
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL COUNT ( * ) / - 65 AS col2
----
0

query I rowsort
SELECT 3 + + 14 col0
----
17

query II rowsort
SELECT 39 * NULLIF ( 12, - 89 / - 87 ) AS col1, + 47 col0
----
468
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT DISTINCT CASE - 84 WHEN 84 * ( - 37 ) THEN - NULLIF ( NULLIF ( + 98, + + SUM( 51 ) + + COUNT( * ) ), + 3 ) WHEN + + ( - ( - + 93 ) ) + + COUNT( * ) THEN NULL END * + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT CASE - 84 WHEN 84 * ( - 37 ) THEN - NULLIF ( NULLIF ( + 98, + + SUM ( 51 ) + + COUNT ( * ) ), + 3 ) WHEN + + ( - ( - + 93 ) ) + + COUNT ( * ) THEN NULL END * + 12 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT COUNT( * ) + COUNT( * ) + - + 11
----
-9

skipif mysql # not compatible
query I rowsort label-2518
SELECT COUNT ( * ) + COUNT ( * ) + - + 11
----
-9

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

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL + COUNT ( * ) / - 29
----
0

query I rowsort
SELECT ALL + 77 + - + 8 AS col0
----
69

query I rowsort
SELECT ALL - 13 * - 22 * + - 31 * + 63 AS col0
----
-558558

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

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT 56 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2523
SELECT DISTINCT AVG ( ALL CAST( NULL AS DECIMAL ) ) + + 44, 72 AS col1
----
NULL
72

skipif mysql # not compatible
query II rowsort label-2523
SELECT DISTINCT AVG ( ALL CAST ( NULL AS REAL ) ) + + 44, 72 AS col1
----
NULL
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2524
SELECT + - 4 AS col1, + MAX( DISTINCT - 1 ) DIV + MIN( DISTINCT - + 41 ) * ( - 53 ) AS col1
----
-4
0

skipif mysql # not compatible
query II rowsort label-2524
SELECT + - 4 AS col1, + MAX ( DISTINCT - 1 ) / + MIN ( DISTINCT - + 41 ) * ( - 53 ) AS col1
----
-4
0

query I rowsort
SELECT DISTINCT - 70 + 92 * + 96 * - + 72 * - 82 AS col2
----
52144058

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT ALL + COUNT( * ) * + NULLIF ( - - 88, + - 38 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL + COUNT ( * ) * + NULLIF ( - - 88, + - 38 ) AS col0
----
88

query I rowsort
SELECT DISTINCT - ( - 82 ) + - - 87 + 13 + 26 * + 12
----
494

query I rowsort
SELECT 40 * + 11 + - 6 * + + 73 + - 55
----
-53

query I rowsort
SELECT ALL 99 - - 50
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL - 76 * SUM( - 35 ) + + + MIN( + + 85 )
----
2745

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL - 76 * SUM ( - 35 ) + + + MIN ( + + 85 )
----
2745

query II rowsort
SELECT - 39, 63 AS col0
----
-39
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ( COUNT( * ) ) + + + 40 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2533
SELECT ( COUNT ( * ) ) + + + 40 AS col0
----
41

query I rowsort
SELECT 98 + 18 AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT 69 + - - MIN( - 52 ) - 95 + + 46
----
-32

skipif mysql # not compatible
query I rowsort label-2535
SELECT 69 + - - MIN ( - 52 ) - 95 + + 46
----
-32

query I rowsort
SELECT ALL 76 * 28
----
2128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2537
SELECT 85 * CAST( + 40 AS SIGNED ) AS col2
----
3400

skipif mysql # not compatible
query I rowsort label-2537
SELECT 85 * CAST ( + 40 AS INTEGER ) AS col2
----
3400

query I rowsort
SELECT 94 * + 75 AS col0
----
7050

query II rowsort
SELECT 97 * 22, ( + - 81 ) + + 21 AS col2
----
2134
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2540
SELECT ALL COUNT( * ) DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL COUNT ( * ) / 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT 4 + COUNT( - 68 )
----
5

skipif mysql # not compatible
query I rowsort label-2541
SELECT 4 + COUNT ( - 68 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2542
SELECT - COALESCE ( + ( 34 ), 35 * CAST( NULL AS SIGNED ) + + 10 + - - 62 DIV 87 * + COUNT( * ) * - 55, 70 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-2542
SELECT - COALESCE ( + ( 34 ), 35 * CAST ( NULL AS INTEGER ) + + 10 + - - 62 / 87 * + COUNT ( * ) * - 55, 70 ) AS col2
----
-34

query I rowsort
SELECT 13 + + CASE + - NULLIF ( - ( + 94 ), + 60 ) WHEN 86 THEN + 13 * - + 65 ELSE NULL END + 29
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2544
SELECT CASE + 98 WHEN + MIN( + ( ( 53 ) ) ) * + CAST( NULL AS SIGNED ) * + + 3 THEN - 70 WHEN + - 78 * - ( - 17 ) + + + 61 THEN NULL ELSE NULL END * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT CASE + 98 WHEN + MIN ( + ( ( 53 ) ) ) * + CAST ( NULL AS INTEGER ) * + + 3 THEN - 70 WHEN + - 78 * - ( - 17 ) + + + 61 THEN NULL ELSE NULL END * + 18
----
NULL

query II rowsort
SELECT - 2, - 20 + 73 AS col0
----
-2
53

query I rowsort
SELECT ALL + ( + 15 ) * 12 AS col0
----
180

query II rowsort
SELECT 13 AS col2, 27 AS col0
----
13
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT DISTINCT + 87 * 76 * MAX( ALL + 94 )
----
621528

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT + 87 * 76 * MAX ( ALL + 94 )
----
621528

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT ALL COALESCE ( - - 52, + COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL COALESCE ( - - 52, + COUNT ( * ) )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2550
SELECT ALL + COUNT( * ) + COUNT( * ) DIV 4 + COUNT( * ) + - 96
----
-94

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL + COUNT ( * ) + COUNT ( * ) / 4 + COUNT ( * ) + - 96
----
-94

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

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

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

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

query I rowsort
SELECT + 88 * + - 68
----
-5984

onlyif mysql # aggregate syntax: 
query II rowsort label-2554
SELECT DISTINCT - SUM( 4 ), MIN( 58 ) AS col2
----
-4
58

skipif mysql # not compatible
query II rowsort label-2554
SELECT DISTINCT - SUM ( 4 ), MIN ( 58 ) AS col2
----
-4
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2556
SELECT ALL ( + COALESCE ( - + 78, + + 55 DIV - 2, + 68 + - 48 ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL ( + COALESCE ( - + 78, + + 55 / - 2, + 68 + - 48 ) ) AS col1
----
-78

query I rowsort
SELECT - COALESCE ( + - 47, - 31 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT - - COUNT( * ) - + COUNT( * ) * 94
----
-93

skipif mysql # not compatible
query I rowsort label-2558
SELECT - - COUNT ( * ) - + COUNT ( * ) * 94
----
-93

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

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

query I rowsort
SELECT ALL - 41 * + - 95 col0
----
3895

query II rowsort
SELECT + - 50 AS col0, - ( 56 ) AS col2
----
-50
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2562
SELECT DISTINCT - + 1 * - COUNT( * ) + - + 98 + - 35 * CASE WHEN NOT 70 > ( - 66 + + ( - COUNT( * ) ) * + MAX( 91 ) + - NULLIF ( + 46, + + 30 ) ) THEN - 96 + + 71 ELSE 95 + - 23 END DIV + 56 + - 72 col1
----
-214

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT - + 1 * - COUNT ( * ) + - + 98 + - 35 * CASE WHEN NOT 70 > ( - 66 + + ( - COUNT ( * ) ) * + MAX ( 91 ) + - NULLIF ( + 46, + + 30 ) ) THEN - 96 + + 71 ELSE 95 + - 23 END / + 56 + - 72 col1
----
-214

query I rowsort
SELECT DISTINCT + 69 * 3 - ( + 53 ) AS col2
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2564
SELECT ALL COUNT( ALL + 8 ) * - - 18 + + 23 - 52 + + ( + + 53 ) * + 33 - 15 DIV - - 78 * - 94
----
1738

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL COUNT ( ALL + 8 ) * - - 18 + + 23 - 52 + + ( + + 53 ) * + 33 - 15 / - - 78 * - 94
----
1738

query II rowsort
SELECT ALL + 32 AS col0, 57 AS col1
----
32
57

query II rowsort
SELECT + 95 AS col2, + 4 * + 95
----
95
380

query I rowsort
SELECT + NULLIF ( - 91, - + 79 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT + 71 * + 81 + + + COUNT( - 64 ) * + - 70 + + 13 * - 87
----
4550

skipif mysql # not compatible
query I rowsort label-2568
SELECT + 71 * + 81 + + + COUNT ( - 64 ) * + - 70 + + 13 * - 87
----
4550

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2570
SELECT ALL + NULLIF ( + ( - SUM( DISTINCT 94 ) ), - 92 * - - 88 ), COUNT( * ) DIV - NULLIF ( - - 38, 22 ) AS col0
----
-94
0

skipif mysql # not compatible
query II rowsort label-2570
SELECT ALL + NULLIF ( + ( - SUM ( DISTINCT 94 ) ), - 92 * - - 88 ), COUNT ( * ) / - NULLIF ( - - 38, 22 ) AS col0
----
-94
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT CASE - 92 WHEN 18 THEN NULL WHEN 91 THEN NULL WHEN MAX( DISTINCT - ( + 69 ) ) THEN + + ( 93 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT CASE - 92 WHEN 18 THEN NULL WHEN 91 THEN NULL WHEN MAX ( DISTINCT - ( + 69 ) ) THEN + + ( 93 ) END
----
NULL

query II rowsort
SELECT ALL 14 * + - 97 * + + 53 - - ( + + 80 ) + + - 82 * - 75 AS col1, 73 col0
----
-65744
73

query I rowsort
SELECT + ( 88 ) * - 23
----
-2024

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2574
SELECT + CAST( + 97 AS SIGNED ) DIV - 83 - + ( - - 61 ) * + + 53
----
-3234

skipif mysql # not compatible
query I rowsort label-2574
SELECT + CAST ( + 97 AS INTEGER ) / - 83 - + ( - - 61 ) * + + 53
----
-3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2575
SELECT + ( - COUNT( * ) ) AS col1, - CAST( ( - - 45 ) AS SIGNED ) * + 89 + - + 67 - + 74 + - 18 * 98
----
-1
-5910

skipif mysql # not compatible
query II rowsort label-2575
SELECT + ( - COUNT ( * ) ) AS col1, - CAST ( ( - - 45 ) AS INTEGER ) * + 89 + - + 67 - + 74 + - 18 * 98
----
-1
-5910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2576
SELECT DISTINCT COUNT( * ) DIV + 67 * - 92 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT COUNT ( * ) / + 67 * - 92 / - COUNT ( * )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2578
SELECT + ( + COUNT( * ) ) + 22 + 89 - + 67 + 23 * - 26, 22 * COALESCE ( - 24, - - CASE ( + 70 ) WHEN + 11 THEN - - CAST( NULL AS SIGNED ) END + + - SUM( DISTINCT 81 ) ) * 35 AS col1
----
-553
-18480

skipif mysql # not compatible
query II rowsort label-2578
SELECT + ( + COUNT ( * ) ) + 22 + 89 - + 67 + 23 * - 26, 22 * COALESCE ( - 24, - - CASE ( + 70 ) WHEN + 11 THEN - - CAST ( NULL AS INTEGER ) END + + - SUM ( DISTINCT 81 ) ) * 35 AS col1
----
-553
-18480

query I rowsort
SELECT 9 * 85 + - 77 AS col0
----
688

query I rowsort
SELECT 0 * + + 24 + + 23 + + + 36
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2581
SELECT ALL 4 * COUNT( * ) DIV + 94 * - 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL 4 * COUNT ( * ) / + 94 * - 37 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2582
SELECT DISTINCT 31 * - 78 + CAST( + - 58 AS SIGNED ) + + + ( + 55 ) + + 81 * - - CAST( + 77 AS SIGNED )
----
3816

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT 31 * - 78 + CAST ( + - 58 AS INTEGER ) + + + ( + 55 ) + + 81 * - - CAST ( + 77 AS INTEGER )
----
3816

query I rowsort
SELECT ALL 56 + + ( 26 )
----
82

query I rowsort
SELECT DISTINCT - 28 + + - 56 * 93 * + - 81 + - - 60
----
421880

query I rowsort
SELECT ALL + 73 + + 36
----
109

query II rowsort
SELECT - 44 - + 35 AS col2, + 81
----
-79
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT - 46 + - + CASE + ( MAX( + 10 ) ) WHEN + COUNT( + 30 ) THEN NULL ELSE - + 73 * + - 62 END AS col1
----
-4572

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT - 46 + - + CASE + ( MAX ( + 10 ) ) WHEN + COUNT ( + 30 ) THEN NULL ELSE - + 73 * + - 62 END AS col1
----
-4572

onlyif mysql # aggregate syntax: 
query II rowsort label-2588
SELECT + 3 + 30 AS col2, + MAX( ALL + 60 ) + - 18 * 21
----
33
-318

skipif mysql # not compatible
query II rowsort label-2588
SELECT + 3 + 30 AS col2, + MAX ( ALL + 60 ) + - 18 * 21
----
33
-318

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT - CASE - MIN( - 59 ) WHEN + 82 THEN NULL WHEN + 40 THEN NULL WHEN + 87 THEN NULLIF ( - 97, + 11 ) * - + 2 ELSE - 34 + + 90 END + + - 99 AS col2
----
-155

skipif mysql # not compatible
query I rowsort label-2589
SELECT - CASE - MIN ( - 59 ) WHEN + 82 THEN NULL WHEN + 40 THEN NULL WHEN + 87 THEN NULLIF ( - 97, + 11 ) * - + 2 ELSE - 34 + + 90 END + + - 99 AS col2
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL - 94 + + COUNT( * ) + + + COALESCE ( + - 42, + COUNT( * ) ) + + 33 * + 65
----
2010

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL - 94 + + COUNT ( * ) + + + COALESCE ( + - 42, + COUNT ( * ) ) + + 33 * + 65
----
2010

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT ALL + COUNT( * ) + - 16 + - ( + - 29 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL + COUNT ( * ) + - 16 + - ( + - 29 ) AS col1
----
14

query I rowsort
SELECT - 34 * - 50 + + 91 col1
----
1791

query II rowsort
SELECT DISTINCT + - 75 * + + 65 AS col0, - 25 AS col1
----
-4875
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2594
SELECT DISTINCT NULLIF ( - CAST( - 85 AS SIGNED ), - 92 )
----
85

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT NULLIF ( - CAST ( - 85 AS INTEGER ), - 92 )
----
85

query I rowsort
SELECT ALL 18 + + 18
----
36

query II rowsort
SELECT DISTINCT ( - + 43 ) AS col1, - 70 * + 39
----
-43
-2730

query I rowsort
SELECT ALL - 1 - 28 col0
----
-29

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2599
SELECT - NULLIF ( + COUNT( * ), + 41 - 6 ) DIV + - 21
----
0

skipif mysql # not compatible
query I rowsort label-2599
SELECT - NULLIF ( + COUNT ( * ), + 41 - 6 ) / + - 21
----
0

query II rowsort
SELECT - 89 * 48 AS col2, - 81
----
-4272
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2601
SELECT - - 4 + - + 38 + - 83 col2, - CAST( + 1 AS SIGNED ) + 89 col1
----
-117
88

skipif mysql # not compatible
query II rowsort label-2601
SELECT - - 4 + - + 38 + - 83 col2, - CAST ( + 1 AS INTEGER ) + 89 col1
----
-117
88

query I rowsort
SELECT - NULLIF ( + - 13, 27 )
----
13

query I rowsort
SELECT - 2 + 88 col0
----
86

query I rowsort
SELECT + - 49 * - COALESCE ( + ( 11 ), 12 ) * + - 1 + - 16 AS col0
----
-555

query I rowsort
SELECT 38 * - 13 + - 72 * + 39 AS col2
----
-3302

query I rowsort
SELECT - + 79 * - + 98
----
7742

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT DISTINCT + CASE - COUNT( * ) WHEN - 73 THEN - 50 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT + CASE - COUNT ( * ) WHEN - 73 THEN - 50 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2608
SELECT ALL 59 * - + SUM( DISTINCT + + 95 ) AS col1, + 31 * + + 69 + - + 60 + + 51 * 14 + + - CAST( 98 AS SIGNED ) * + 9 + - - 20
----
-5605
1931

skipif mysql # not compatible
query II rowsort label-2608
SELECT ALL 59 * - + SUM ( DISTINCT + + 95 ) AS col1, + 31 * + + 69 + - + 60 + + 51 * 14 + + - CAST ( 98 AS INTEGER ) * + 9 + - - 20
----
-5605
1931

query I rowsort
SELECT - 64 + 94 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2610
SELECT ALL - 3 DIV 67 * COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL - 3 / 67 * COUNT ( * ) col0
----
0

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

query I rowsort
SELECT DISTINCT - 94 * + - 68 AS col2
----
6392

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2613
SELECT - 78 * 40 + + 25, + MAX( + 13 ) DIV 9 + - 35 + - - COUNT( * ) * + 18 AS col2
----
-3095
-16

skipif mysql # not compatible
query II rowsort label-2613
SELECT - 78 * 40 + + 25, + MAX ( + 13 ) / 9 + - 35 + - - COUNT ( * ) * + 18 AS col2
----
-3095
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2614
SELECT ALL NULLIF ( + CAST( NULL AS SIGNED ), - - 93 ) + - MAX( DISTINCT - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), - - 93 ) + - MAX ( DISTINCT - 14 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2615
SELECT + 40 AS col2, 27 DIV 80 + + NULLIF ( + 58, + - 63 * + + CASE - - 25 WHEN ( + + COUNT( * ) ) THEN ( - 21 ) WHEN + 62 THEN 89 ELSE NULL END + - COALESCE ( + 9, - 18 ) * - - 75 ) + - ( 3 ) col0
----
40
55

skipif mysql # not compatible
query II rowsort label-2615
SELECT + 40 AS col2, 27 / 80 + + NULLIF ( + 58, + - 63 * + + CASE - - 25 WHEN ( + + COUNT ( * ) ) THEN ( - 21 ) WHEN + 62 THEN 89 ELSE NULL END + - COALESCE ( + 9, - 18 ) * - - 75 ) + - ( 3 ) col0
----
40
55

query II rowsort
SELECT DISTINCT ( 85 ) + - 96, - 94 AS col0
----
-11
-94

query I rowsort
SELECT ( - + 31 ) * - 28 AS col2
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT ALL + COUNT( * ) + COUNT( DISTINCT + - 30 ) + - 85 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL + COUNT ( * ) + COUNT ( DISTINCT + - 30 ) + - 85 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-2619
SELECT ALL - 64 AS col1, SUM( DISTINCT - 67 ) * + 77 * + 32 + + COUNT( * ) + - 72 + - 92
----
-64
-165251

skipif mysql # not compatible
query II rowsort label-2619
SELECT ALL - 64 AS col1, SUM ( DISTINCT - 67 ) * + 77 * + 32 + + COUNT ( * ) + - 72 + - 92
----
-64
-165251

query I rowsort
SELECT 3 * - CASE - 57 WHEN + 87 + + - 47 THEN 20 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 68 + - 41
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2622
SELECT + ( - 27 ) DIV - + COALESCE ( + 4, - + ( + - 27 ) ) * + COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2622
SELECT + ( - 27 ) / - + COALESCE ( + 4, - + ( + - 27 ) ) * + COUNT ( * ) AS col0
----
6

query I rowsort
SELECT ALL + 65 + - 52 * - 88 col0
----
4641

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT - 79 * + 15 DIV + + 1
----
-1185

skipif mysql # not compatible
query I rowsort label-2624
SELECT - 79 * + 15 / + + 1
----
-1185

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2625
SELECT DISTINCT + ( - 87 ) * - 29 + - 66 col1, - COUNT( * ) * - ( + COUNT( * ) ) DIV 20 AS col2
----
2457
0

skipif mysql # not compatible
query II rowsort label-2625
SELECT DISTINCT + ( - 87 ) * - 29 + - 66 col1, - COUNT ( * ) * - ( + COUNT ( * ) ) / 20 AS col2
----
2457
0

query II rowsort
SELECT DISTINCT - 12 AS col0, 79
----
-12
79

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

skipif mysql # not compatible
query I rowsort label-2627
SELECT - 37 / COUNT ( * ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL 6 - COUNT( ALL 68 )
----
5

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL 6 - COUNT ( ALL 68 )
----
5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT DISTINCT - + ( + 10 ) DIV + 72 + - 32
----
-32

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT - + ( + 10 ) / + 72 + - 32
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT + 3 + + COALESCE ( + COUNT( * ), 84, + MIN( - 5 ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2631
SELECT + 3 + + COALESCE ( + COUNT ( * ), 84, + MIN ( - 5 ) ) AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT 79 DIV - + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2632
SELECT 79 / - + 83 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2633
SELECT ALL - 38 DIV - - 1 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL - 38 / - - 1 AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2634
SELECT + COUNT( * ) * 56 + - ( + 52 ), ( + 6 ) / + CAST( NULL AS DECIMAL ) * 2 AS col0
----
4
NULL

skipif mysql # not compatible
query II rowsort label-2634
SELECT + COUNT ( * ) * 56 + - ( + 52 ), ( + 6 ) / + CAST ( NULL AS REAL ) * 2 AS col0
----
4
NULL

query I rowsort
SELECT 12 * 2 + 39 AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT DISTINCT - - 56 * + CAST( + - ( + 27 ) AS SIGNED ) col2
----
-1512

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT - - 56 * + CAST ( + - ( + 27 ) AS INTEGER ) col2
----
-1512

query II rowsort
SELECT - 90 AS col2, 74 + 30
----
-90
104

query I rowsort
SELECT - 53 - - ( 44 )
----
-9

query I rowsort
SELECT ALL + 86 * - 72 + - 56
----
-6248

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2640
SELECT DISTINCT - 53 * + CAST( NULL AS DECIMAL ) - + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT - 53 * + CAST ( NULL AS REAL ) - + + 73
----
NULL

query I rowsort
SELECT 98 * - 76 AS col2
----
-7448

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL - NULLIF ( - - 56, + 19 / + 6 + - 65 - - - 51 + COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL - NULLIF ( - - 56, + 19 / + 6 + - 65 - - - 51 + COUNT ( * ) )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT DISTINCT - MIN( - 27 ) + + 84 + - COALESCE ( - COUNT( * ), - 20, + 43 ) * MAX( ALL - 88 ) + + 20 * - - 17 - 34
----
329

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT - MIN ( - 27 ) + + 84 + - COALESCE ( - COUNT ( * ), - 20, + 43 ) * MAX ( ALL - 88 ) + + 20 * - - 17 - 34
----
329

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT 88 DIV + 57
----
1

skipif mysql # not compatible
query I rowsort label-2644
SELECT 88 / + 57
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT 23 * COUNT( * ) * + 54 AS col0
----
1242

skipif mysql # not compatible
query I rowsort label-2645
SELECT 23 * COUNT ( * ) * + 54 AS col0
----
1242

query I rowsort
SELECT ALL - 72 + + + 45
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT 36 * COUNT( * ) * 19 - 2 AS col1
----
682

skipif mysql # not compatible
query I rowsort label-2647
SELECT 36 * COUNT ( * ) * 19 - 2 AS col1
----
682

query I rowsort
SELECT DISTINCT - 91 + 67 * 22 + + 45
----
1428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2649
SELECT ALL - CAST( - SUM( DISTINCT + 74 ) AS SIGNED ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL - CAST ( - SUM ( DISTINCT + 74 ) AS INTEGER ) AS col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2650
SELECT ALL - NULLIF ( ( + 41 ), - - 85 ) * MAX( DISTINCT - 45 ) * + + 70 + 4 DIV NULLIF ( - 65, + 56 ) AS col2
----
129150

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL - NULLIF ( ( + 41 ), - - 85 ) * MAX ( DISTINCT - 45 ) * + + 70 + 4 / NULLIF ( - 65, + 56 ) AS col2
----
129150

onlyif mysql # DIV for integer division: 
query I rowsort label-2651
SELECT 13 DIV - 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2651
SELECT 13 / - 26 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2652
SELECT ALL - MIN( 95 ) + 46 DIV + - 66, + 5 AS col2
----
-95
5

skipif mysql # not compatible
query II rowsort label-2652
SELECT ALL - MIN ( 95 ) + 46 / + - 66, + 5 AS col2
----
-95
5

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

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

query I rowsort
SELECT ALL + 46 * - - 40
----
1840

query II rowsort
SELECT 3 + - 91, - 18 * - 35 col1
----
-88
630

query I rowsort
SELECT 38 * 58 AS col1
----
2204

onlyif mysql # aggregate syntax: 
query II rowsort label-2657
SELECT 12 + + + COUNT( * ) + - 35 + - - 47 AS col1, MAX( - + 84 ) AS col2
----
25
-84

skipif mysql # not compatible
query II rowsort label-2657
SELECT 12 + + + COUNT ( * ) + - 35 + - - 47 AS col1, MAX ( - + 84 ) AS col2
----
25
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT ALL - 74 + - SUM( - COALESCE ( + 32, - + 43 * 40, + - 17 ) ) AS col2, + 55 AS col2
----
-42
55

skipif mysql # not compatible
query II rowsort label-2658
SELECT ALL - 74 + - SUM ( - COALESCE ( + 32, - + 43 * 40, + - 17 ) ) AS col2, + 55 AS col2
----
-42
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT - CAST( ( - + 32 ) AS SIGNED ) * 24 + + + 53
----
821

skipif mysql # not compatible
query I rowsort label-2659
SELECT - CAST ( ( - + 32 ) AS INTEGER ) * 24 + + + 53
----
821

query I rowsort
SELECT ALL ( 35 ) - + NULLIF ( + 63, 40 ) + 8 AS col0
----
-20

query I rowsort
SELECT DISTINCT + 67 - - 47 + 57 AS col2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT DISTINCT COUNT( DISTINCT - 40 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT COUNT ( DISTINCT - 40 ) AS col0
----
1

query I rowsort
SELECT - 35 + - 31 * + - 97
----
2972

query I rowsort
SELECT + 44 * - 31
----
-1364

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT ALL - NULLIF ( CASE - COUNT( * ) WHEN + 10 THEN - 81 / + COALESCE ( + + ( - + 72 ), 2, + CASE - COUNT( * ) WHEN 60 * + ( COUNT( DISTINCT + 39 ) ) * - + COUNT( DISTINCT - 87 ) - 86 - - + ( + 74 ) - - 30 * - 39 THEN NULL ELSE 28 END * - ( - 20 + 31 ) ) END, 29 + 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL - NULLIF ( CASE - COUNT ( * ) WHEN + 10 THEN - 81 / + COALESCE ( + + ( - + 72 ), 2, + CASE - COUNT ( * ) WHEN 60 * + ( COUNT ( DISTINCT + 39 ) ) * - + COUNT ( DISTINCT - 87 ) - 86 - - + ( + 74 ) - - 30 * - 39 THEN NULL ELSE 28 END * - ( - 20 + 31 ) ) END, 29 + 29 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2666
SELECT CAST ( NULL AS INTEGER ) + - NULLIF ( - - COUNT ( * ), 31 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT DISTINCT - 9 DIV - - 13 + - 96 - + 12 AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT - 9 / - - 13 + - 96 - + 12 AS col0
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2668
SELECT ALL 40 - + - 65 * + 47 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL 40 - + - 65 * + 47 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT - COALESCE ( SUM( DISTINCT 49 ), - 98 * + - 87, - COUNT( * ) * ( - + ( - - 19 ) ) ) * + 25
----
-1225

skipif mysql # not compatible
query I rowsort label-2669
SELECT - COALESCE ( SUM ( DISTINCT 49 ), - 98 * + - 87, - COUNT ( * ) * ( - + ( - - 19 ) ) ) * + 25
----
-1225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2670
SELECT - MAX( ALL + CAST( - COALESCE ( CAST( - + 71 AS SIGNED ), + + 23 + - + 13 * + 50 * - 53 * - 52 * - 29 ) AS SIGNED ) ) + + MAX( - CAST( + CASE - + 55 WHEN - 55 THEN 26 WHEN 12 + + 9 THEN NULL END AS SIGNED ) ) - COUNT( * ) DIV + CAST( 43 AS SIGNED ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-2670
SELECT - MAX ( ALL + CAST ( - COALESCE ( CAST ( - + 71 AS INTEGER ), + + 23 + - + 13 * + 50 * - 53 * - 52 * - 29 ) AS INTEGER ) ) + + MAX ( - CAST ( + CASE - + 55 WHEN - 55 THEN 26 WHEN 12 + + 9 THEN NULL END AS INTEGER ) ) - COUNT ( * ) / + CAST ( 43 AS INTEGER ) col0
----
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL + CASE AVG ( DISTINCT + 22 ) WHEN - + 9 THEN NULL ELSE + COUNT( * ) + - ( - + 71 ) END
----
72

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL + CASE AVG ( DISTINCT + 22 ) WHEN - + 9 THEN NULL ELSE + COUNT ( * ) + - ( - + 71 ) END
----
72

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

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

query I rowsort
SELECT ALL - 15 * + 7 + 42 AS col1
----
-63

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2676
SELECT DISTINCT COUNT( * ) * - - ( CAST( - 11 AS SIGNED ) ) + 36 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT COUNT ( * ) * - - ( CAST ( - 11 AS INTEGER ) ) + 36 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT ALL - - COUNT( ALL - 48 ) + + + 4
----
5

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL - - COUNT ( ALL - 48 ) + + + 4
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2678
SELECT ALL + + 91 DIV - + 6
----
-15

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL + + 91 / - + 6
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT 27 - + - 43 * + 6 + + - MAX( ALL 41 ) AS col1
----
244

skipif mysql # not compatible
query I rowsort label-2679
SELECT 27 - + - 43 * + 6 + + - MAX ( ALL 41 ) AS col1
----
244

query I rowsort
SELECT + 29 + - - 50 AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2681
SELECT ALL 41 + - + MAX( 4 ) + CASE - + 85 WHEN - - 70 + - 98 THEN - - CAST( NULL AS SIGNED ) ELSE NULL END - + ( - 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL 41 + - + MAX ( 4 ) + CASE - + 85 WHEN - - 70 + - 98 THEN - - CAST ( NULL AS INTEGER ) ELSE NULL END - + ( - 87 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT COALESCE ( + 86, - - 67, - - ( NULLIF ( 3, - ( + CASE 68 WHEN - - COALESCE ( + - 13, 20 + - 82 ) THEN - - COALESCE ( - MAX( ALL - 24 ), 86, + - COUNT( * ) ) END ) * + NULLIF ( 72, - COUNT( * ) * COALESCE ( - ( + 61 ) * - 43, - 12 * 62, - 32 ) ) + + 3 ) ) + 92 * 95 )
----
86

skipif mysql # not compatible
query I rowsort label-2682
SELECT COALESCE ( + 86, - - 67, - - ( NULLIF ( 3, - ( + CASE 68 WHEN - - COALESCE ( + - 13, 20 + - 82 ) THEN - - COALESCE ( - MAX ( ALL - 24 ), 86, + - COUNT ( * ) ) END ) * + NULLIF ( 72, - COUNT ( * ) * COALESCE ( - ( + 61 ) * - 43, - 12 * 62, - 32 ) ) + + 3 ) ) + 92 * 95 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2683
SELECT + CAST( NULL AS SIGNED ) + 74 + - 73 * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT + CAST ( NULL AS INTEGER ) + 74 + - 73 * - 8
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2684
SELECT 41 * - - 85 + + + COUNT( * ) DIV + + 21 * 45 - 12 AS col1
----
3473

skipif mysql # not compatible
query I rowsort label-2684
SELECT 41 * - - 85 + + + COUNT ( * ) / + + 21 * 45 - 12 AS col1
----
3473

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT - ( + - 45 ) DIV - 98 + + 69
----
69

skipif mysql # not compatible
query I rowsort label-2685
SELECT - ( + - 45 ) / - 98 + + 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL SUM( + 15 ) * - - 64 + - - 81 * ( - COUNT( * ) ) AS col1
----
879

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL SUM ( + 15 ) * - - 64 + - - 81 * ( - COUNT ( * ) ) AS col1
----
879

onlyif mysql # aggregate syntax: 
query II rowsort label-2687
SELECT ALL + 76 * - - SUM( ALL + ( - 79 ) ) + - + COUNT( * ), - 3 AS col2
----
-6005
-3

skipif mysql # not compatible
query II rowsort label-2687
SELECT ALL + 76 * - - SUM ( ALL + ( - 79 ) ) + - + COUNT ( * ), - 3 AS col2
----
-6005
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2689
SELECT ALL + 27 * + MIN( DISTINCT - CAST( + + CAST( + CASE 73 WHEN - 88 THEN NULL ELSE - - 89 END AS SIGNED ) AS SIGNED ) ) * NULLIF ( - + 54, 22 ) + 58
----
129820

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL + 27 * + MIN ( DISTINCT - CAST ( + + CAST ( + CASE 73 WHEN - 88 THEN NULL ELSE - - 89 END AS INTEGER ) AS INTEGER ) ) * NULLIF ( - + 54, 22 ) + 58
----
129820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2690
SELECT - 69 + 14 - - + 6 * - + 67 * + COUNT( * ) DIV + ( + + COUNT( * ) ) + - 0 AS col1
----
-457

skipif mysql # not compatible
query I rowsort label-2690
SELECT - 69 + 14 - - + 6 * - + 67 * + COUNT ( * ) / + ( + + COUNT ( * ) ) + - 0 AS col1
----
-457

query I rowsort
SELECT DISTINCT 75 * - + 57 AS col2
----
-4275

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT CASE - + 23 WHEN - 74 * - + 19 + + COUNT( DISTINCT 34 ) THEN + - 22 - + - ( 12 ) + + 22 - + 62 / - + 50 * - - 87 * - COUNT( * ) * - + 7 + + NULLIF ( + - 27, 48 * - 20 ) * + + 80 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT CASE - + 23 WHEN - 74 * - + 19 + + COUNT ( DISTINCT 34 ) THEN + - 22 - + - ( 12 ) + + 22 - + 62 / - + 50 * - - 87 * - COUNT ( * ) * - + 7 + + NULLIF ( + - 27, 48 * - 20 ) * + + 80 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT - 25 * - CASE - - 58 WHEN + MAX( DISTINCT 48 ) + + 27 THEN - + 11 ELSE 87 END + + - 79
----
2096

skipif mysql # not compatible
query I rowsort label-2694
SELECT - 25 * - CASE - - 58 WHEN + MAX ( DISTINCT 48 ) + + 27 THEN - + 11 ELSE 87 END + + - 79
----
2096

query I rowsort
SELECT ALL - 50 * 24 * + 6 - 82 AS col0
----
-7282

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT + CASE ( COUNT( * ) ) WHEN - - 22 THEN 41 * - - 73 + + 45 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT + CASE ( COUNT ( * ) ) WHEN - - 22 THEN 41 * - - 73 + + 45 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2698
SELECT DISTINCT + 99, COUNT( - 11 ) * - 59 AS col1
----
99
-59

skipif mysql # not compatible
query II rowsort label-2698
SELECT DISTINCT + 99, COUNT ( - 11 ) * - 59 AS col1
----
99
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-2699
SELECT ALL + 15 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL + 15 / + 98
----
0

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

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

query I rowsort
SELECT ALL + 82 * 44 AS col2
----
3608

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2702
SELECT - ( + 82 ) DIV - 51, COUNT( * ) col1
----
1
1

skipif mysql # not compatible
query II rowsort label-2702
SELECT - ( + 82 ) / - 51, COUNT ( * ) col1
----
1
1

query I rowsort
SELECT ALL + 71 * 81
----
5751

query I rowsort
SELECT DISTINCT + 55 * + 16
----
880

query I rowsort
SELECT - 85 * 57
----
-4845

query I rowsort
SELECT - + 41 - - 7 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT + + COUNT( * ) * 67 * 90 + - + 77 AS col2
----
5953

skipif mysql # not compatible
query I rowsort label-2707
SELECT + + COUNT ( * ) * 67 * 90 + - + 77 AS col2
----
5953

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

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

query II rowsort
SELECT ALL + 98 AS col2, 29 AS col1
----
98
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT DISTINCT + SUM( DISTINCT - 12 ) + - CASE COUNT( * ) WHEN + ( - CASE 7 WHEN 51 THEN - 85 WHEN + + 17 + 95 * 67 * 53 * 71 + - 12 THEN - 60 END ) / + 72 THEN - 21 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT + SUM ( DISTINCT - 12 ) + - CASE COUNT ( * ) WHEN + ( - CASE 7 WHEN 51 THEN - 85 WHEN + + 17 + 95 * 67 * 53 * 71 + - 12 THEN - 60 END ) / + 72 THEN - 21 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL - ( 72 ) AS col1
----
-72

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

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

query II rowsort
SELECT + 44 * - + 90 * + + 14 AS col0, - 65 + - - 50
----
-55440
-15

query I rowsort
SELECT ALL + 70 + ( - 80 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT DISTINCT + COUNT( * ) * + + CASE - 67 WHEN + 20 THEN NULL WHEN + + COUNT( * ) THEN - 27 END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT + COUNT ( * ) * + + CASE - 67 WHEN + 20 THEN NULL WHEN + + COUNT ( * ) THEN - 27 END + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + - 72 + 3 + - ( + 0 )
----
-69

query I rowsort
SELECT - ( - - 95 ) + 5
----
-90

query I rowsort
SELECT + 71 - - 7
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL - NULLIF ( COUNT( * ), - 81 ) + + 34 + - 34 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL - NULLIF ( COUNT ( * ), - 81 ) + + 34 + - 34 col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2722
SELECT - ( + ( ( + COUNT( * ) ) ) ) col1, COUNT( * ) + 2 + 78 * COUNT( ALL - 73 )
----
-1
81

skipif mysql # not compatible
query II rowsort label-2722
SELECT - ( + ( ( + COUNT ( * ) ) ) ) col1, COUNT ( * ) + 2 + 78 * COUNT ( ALL - 73 )
----
-1
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2723
SELECT + 99 DIV 71, MAX( 75 ) AS col0
----
1
75

skipif mysql # not compatible
query II rowsort label-2723
SELECT + 99 / 71, MAX ( 75 ) AS col0
----
1
75

query I rowsort
SELECT ALL + 73 + - + 69
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2725
SELECT ALL CAST( NULL AS SIGNED ), - 93 * 48 + - 12 AS col1
----
NULL
-4476

skipif mysql # not compatible
query II rowsort label-2725
SELECT ALL CAST ( NULL AS INTEGER ), - 93 * 48 + - 12 AS col1
----
NULL
-4476

query I rowsort
SELECT ALL 87 + 42 + + 30
----
159

query I rowsort
SELECT DISTINCT 99 * - 79 AS col0
----
-7821

onlyif mysql # aggregate syntax: 
query II rowsort label-2728
SELECT ALL + 58 AS col2, COUNT( * ) * + + 44 + + 57 AS col1
----
58
101

skipif mysql # not compatible
query II rowsort label-2728
SELECT ALL + 58 AS col2, COUNT ( * ) * + + 44 + + 57 AS col1
----
58
101

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2730
SELECT ALL + CASE + 33 WHEN CAST( NULL AS SIGNED ) + 88 THEN - 12 * MAX( ALL + + 5 ) * + 73 - + 52 WHEN - 38 / - - 76 THEN - 59 * - - 59 END / 13 * - 67 * + 62 - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL + CASE + 33 WHEN CAST ( NULL AS INTEGER ) + 88 THEN - 12 * MAX ( ALL + + 5 ) * + 73 - + 52 WHEN - 38 / - - 76 THEN - 59 * - - 59 END / 13 * - 67 * + 62 - - 7
----
NULL

query I rowsort
SELECT + CASE + 54 WHEN - 60 * + - 62 THEN + 68 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT CAST( - 99 AS SIGNED ) AS col2
----
-99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2733
SELECT ALL - 6 DIV + - 82 - 17 * 60 - 42 AS col1
----
-1062

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL - 6 / + - 82 - 17 * 60 - 42 AS col1
----
-1062

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

skipif mysql # not compatible
query I rowsort label-2734
SELECT + 33 / + 58
----
0

query II rowsort
SELECT + 49 col1, + 54
----
49
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2736
SELECT - 83 DIV + 53 - + + 24 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2736
SELECT - 83 / + 53 - + + 24 AS col0
----
-25

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

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

query I rowsort
SELECT DISTINCT + 29 * 99 AS col2
----
2871

query II rowsort
SELECT ALL + 77 AS col1, + 66
----
77
66

query I rowsort
SELECT ( + 3 ) col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2741
SELECT + SUM( + 56 ) * NULLIF ( - COUNT( * ), CAST( NULL AS SIGNED ) ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2741
SELECT + SUM ( + 56 ) * NULLIF ( - COUNT ( * ), CAST ( NULL AS INTEGER ) ) AS col1
----
-56

query I rowsort
SELECT DISTINCT ( + 84 ) * 62
----
5208

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT - 70 * + 8 - 40 - + 7 * COUNT( * ) * + 35
----
-845

skipif mysql # not compatible
query I rowsort label-2743
SELECT - 70 * + 8 - 40 - + 7 * COUNT ( * ) * + 35
----
-845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT ALL CAST( 79 AS SIGNED ) * - - 10 * + 25 AS col2
----
19750

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL CAST ( 79 AS INTEGER ) * - - 10 * + 25 AS col2
----
19750

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT + MAX( DISTINCT + - 17 ) + + 64
----
47

skipif mysql # not compatible
query I rowsort label-2745
SELECT + MAX ( DISTINCT + - 17 ) + + 64
----
47

query I rowsort
SELECT + - COALESCE ( 80, - 9 ) * - 47
----
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ( 74 ) * + 40 + + 52 + + + COUNT( * )
----
3013

skipif mysql # not compatible
query I rowsort label-2747
SELECT ( 74 ) * + 40 + + 52 + + + COUNT ( * )
----
3013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2748
SELECT - CASE - 46 WHEN - 14 THEN NULL WHEN 87 / - - ( + CAST( NULL AS SIGNED ) ) THEN + - 7 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT - CASE - 46 WHEN - 14 THEN NULL WHEN 87 / - - ( + CAST ( NULL AS INTEGER ) ) THEN + - 7 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2749
SELECT - 74, CAST( NULL AS SIGNED ) AS col1
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-2749
SELECT - 74, CAST ( NULL AS INTEGER ) AS col1
----
-74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT + + ( - + SUM( ALL - + 32 ) ) * 85 + 66 + + MAX( + 74 )
----
2860

skipif mysql # not compatible
query I rowsort label-2750
SELECT + + ( - + SUM ( ALL - + 32 ) ) * 85 + 66 + + MAX ( + 74 )
----
2860

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2752
SELECT ALL - 41 * + + COUNT( * ) DIV + 99 + + - ( ( + - 86 ) ) * ( 73 ) AS col0
----
6278

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL - 41 * + + COUNT ( * ) / + 99 + + - ( ( + - 86 ) ) * ( 73 ) AS col0
----
6278

query I rowsort
SELECT - + 96 + - + 72 AS col0
----
-168

query II rowsort
SELECT ALL + 54 col0, 49 AS col2
----
54
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT - - 21 + - COUNT( * ) + - ( + 75 ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-2755
SELECT - - 21 + - COUNT ( * ) + - ( + 75 ) col0
----
-55

query I rowsort
SELECT ALL + 10 * + - ( - - 16 ) + + - 25 AS col1
----
-185

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2757
SELECT DISTINCT CAST( + 3 AS SIGNED ) AS col2, - 67 * - CAST( NULL AS DECIMAL ) AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2757
SELECT DISTINCT CAST ( + 3 AS INTEGER ) AS col2, - 67 * - CAST ( NULL AS REAL ) AS col0
----
3
NULL

query I rowsort
SELECT DISTINCT - 77 * - CASE + 63 WHEN 35 THEN - 21 END AS col2
----
NULL

query I rowsort
SELECT - - 19 * + 78
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT 36 * + - COUNT( ALL - 5 ) * - 65 * + 93 AS col0
----
217620

skipif mysql # not compatible
query I rowsort label-2760
SELECT 36 * + - COUNT ( ALL - 5 ) * - 65 * + 93 AS col0
----
217620

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2761
SELECT - CASE + - CASE 41 WHEN - 64 THEN + 92 / MIN( ALL - 59 ) + - 73 * - + 16 ELSE NULL END WHEN - - 38 / - + CAST( - NULLIF ( - + 66, - 45 / ( - + 57 ) + + NULLIF ( 83, - 16 - 62 ) ) AS DECIMAL ) + - 90 THEN + 86 * COUNT( * ) + - ( 55 ) WHEN 55 + 56 * 29 THEN + 47 + 95 WHEN 15 THEN NULL END + 82 * - AVG ( ALL + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT - CASE + - CASE 41 WHEN - 64 THEN + 92 / MIN ( ALL - 59 ) + - 73 * - + 16 ELSE NULL END WHEN - - 38 / - + CAST ( - NULLIF ( - + 66, - 45 / ( - + 57 ) + + NULLIF ( 83, - 16 - 62 ) ) AS REAL ) + - 90 THEN + 86 * COUNT ( * ) + - ( 55 ) WHEN 55 + 56 * 29 THEN + 47 + 95 WHEN 15 THEN NULL END + 82 * - AVG ( ALL + 57 )
----
NULL

query I rowsort
SELECT ALL - - 7 * - 66 * + 33 AS col2
----
-15246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2763
SELECT + 64 DIV COUNT( * ), + 2 - + CAST( NULL AS SIGNED ) AS col1
----
64
NULL

skipif mysql # not compatible
query II rowsort label-2763
SELECT + 64 / COUNT ( * ), + 2 - + CAST ( NULL AS INTEGER ) AS col1
----
64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT 26 + COUNT( * ) * 31 + - + 58
----
-1

skipif mysql # not compatible
query I rowsort label-2764
SELECT 26 + COUNT ( * ) * 31 + - + 58
----
-1

query I rowsort
SELECT ALL + 75 + 10
----
85

query II rowsort
SELECT 87, 99 AS col2
----
87
99

query I rowsort
SELECT ALL + - 94 + ( ( + 35 ) ) col0
----
-59

query II rowsort
SELECT 7 * - 27 AS col0, + 67 * 64 AS col0
----
-189
4288

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2770
SELECT DISTINCT ( + - 37 ) - - - COUNT( * ) * - - 88 * - COUNT( * ), 35 AS col1
----
51
35

skipif mysql # not compatible
query II rowsort label-2770
SELECT DISTINCT ( + - 37 ) - - - COUNT ( * ) * - - 88 * - COUNT ( * ), 35 AS col1
----
51
35

query I rowsort
SELECT DISTINCT + 59 - 47
----
12

query I rowsort
SELECT NULLIF ( - 65, + 41 + + ( 42 ) ) * - + 46
----
2990

query II rowsort
SELECT 3 + + + 49 AS col0, 30
----
52
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2774
SELECT NULLIF ( + 20, 58 * CAST( NULL AS SIGNED ) * + ( - 81 ) ) - 47 AS col2, - CAST( + + 58 AS SIGNED )
----
-27
-58

skipif mysql # not compatible
query II rowsort label-2774
SELECT NULLIF ( + 20, 58 * CAST ( NULL AS INTEGER ) * + ( - 81 ) ) - 47 AS col2, - CAST ( + + 58 AS INTEGER )
----
-27
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2775
SELECT DISTINCT + COUNT( * ) - + 77 AS col0, - 70 / + COALESCE ( + 22, + - 42 ) * 42 * + - CASE + 30 WHEN - 28 * ( 42 ) THEN NULL WHEN 5 + - - 50 + - + 91 * - 64 - AVG ( - 25 ) * + - COUNT( * ) THEN + 34 * + COALESCE ( + + COUNT( * ), - 98 ) END + + 16
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-2775
SELECT DISTINCT + COUNT ( * ) - + 77 AS col0, - 70 / + COALESCE ( + 22, + - 42 ) * 42 * + - CASE + 30 WHEN - 28 * ( 42 ) THEN NULL WHEN 5 + - - 50 + - + 91 * - 64 - AVG ( - 25 ) * + - COUNT ( * ) THEN + 34 * + COALESCE ( + + COUNT ( * ), - 98 ) END + + 16
----
-76
NULL

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

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

query I rowsort
SELECT - 11 * - 56 + - 63 + + + 39 AS col0
----
592

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2779
SELECT COUNT( * ) * 44 + + 30 AS col0, - 45 + + 73 AS col0
----
74
28

skipif mysql # not compatible
query II rowsort label-2779
SELECT COUNT ( * ) * 44 + + 30 AS col0, - 45 + + 73 AS col0
----
74
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2780
SELECT ALL - COUNT( * ) * - + 60, 10 AS col2
----
60
10

skipif mysql # not compatible
query II rowsort label-2780
SELECT ALL - COUNT ( * ) * - + 60, 10 AS col2
----
60
10

query I rowsort
SELECT DISTINCT 85 * 3
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL COALESCE ( 87, + 8 * - 70, - SUM( DISTINCT + 65 ) ) * 71 + 18 AS col1
----
6195

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL COALESCE ( 87, + 8 * - 70, - SUM ( DISTINCT + 65 ) ) * 71 + 18 AS col1
----
6195

onlyif mysql # DIV for integer division: 
query I rowsort label-2783
SELECT 67 DIV NULLIF ( + 14, 25 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2783
SELECT 67 / NULLIF ( + 14, 25 ) AS col2
----
4

query I rowsort
SELECT + 43 * - + 18 * 7 + ( ( + 23 ) ) AS col2
----
-5395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2785
SELECT CAST( NULL AS SIGNED ) / 38 * COUNT( * ) / + - 38 + + - 34 * - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT CAST ( NULL AS INTEGER ) / 38 * COUNT ( * ) / + - 38 + + - 34 * - 78 AS col0
----
NULL

query I rowsort
SELECT + 55 * - + 55 + + + 10
----
-3015

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2787
SELECT COUNT( * ) DIV - + 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT COUNT ( * ) / - + 53 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2789
SELECT ALL + 5 + + 43 + + COUNT( * ) - 60 + 74 * COALESCE ( + COUNT( * ), 6, - 41 + - + COALESCE ( - 41, + CAST( - - 40 AS SIGNED ) ) + - NULLIF ( + 39, - 62 ) DIV + 62 + 74 ), + 19 * + ( - + 58 ) + - + ( + NULLIF ( - 46, + 23 + + 71 ) ) AS col2
----
63
-1056

skipif mysql # not compatible
query II rowsort label-2789
SELECT ALL + 5 + + 43 + + COUNT ( * ) - 60 + 74 * COALESCE ( + COUNT ( * ), 6, - 41 + - + COALESCE ( - 41, + CAST ( - - 40 AS INTEGER ) ) + - NULLIF ( + 39, - 62 ) / + 62 + 74 ), + 19 * + ( - + 58 ) + - + ( + NULLIF ( - 46, + 23 + + 71 ) ) AS col2
----
63
-1056

query I rowsort
SELECT ALL 20 + - 89
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-2791
SELECT DISTINCT - 72 + 17 AS col1, - COUNT( * )
----
-55
-1

skipif mysql # not compatible
query II rowsort label-2791
SELECT DISTINCT - 72 + 17 AS col1, - COUNT ( * )
----
-55
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT + COUNT( * ) + + + 32 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT + COUNT ( * ) + + + 32 AS col2
----
33

query I rowsort
SELECT ALL - 39 + - 2
----
-41

query II rowsort
SELECT DISTINCT + 81 * + 95 AS col0, 86
----
7695
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2795
SELECT ALL 87 + + - COUNT( * ) * - - 39 * + COUNT( ALL - CAST( NULL AS SIGNED ) ) + + 64 AS col1
----
151

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL 87 + + - COUNT ( * ) * - - 39 * + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + 64 AS col1
----
151

query II rowsort
SELECT DISTINCT 91 + 47 AS col0, 86 AS col1
----
138
86

onlyif mysql # aggregate syntax: 
query II rowsort label-2797
SELECT + COUNT( ALL + 11 ) AS col2, + 44 AS col0
----
1
44

skipif mysql # not compatible
query II rowsort label-2797
SELECT + COUNT ( ALL + 11 ) AS col2, + 44 AS col0
----
1
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT + NULLIF ( + + 68, 20 * + - 22 - - CAST( 69 AS SIGNED ) )
----
68

skipif mysql # not compatible
query I rowsort label-2798
SELECT + NULLIF ( + + 68, 20 * + - 22 - - CAST ( 69 AS INTEGER ) )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2799
SELECT COUNT( - 86 ) DIV - ( - - 22 )
----
0

skipif mysql # not compatible
query I rowsort label-2799
SELECT COUNT ( - 86 ) / - ( - - 22 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL + COUNT( * ) + - 79 * - 39 AS col2
----
3082

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL + COUNT ( * ) + - 79 * - 39 AS col2
----
3082

query II rowsort
SELECT - 6 - + 13 col2, 80
----
-19
80

query I rowsort
SELECT - ( - + 34 ) * 79 + 84 col0
----
2770

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

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL - COUNT ( * ) / + COUNT ( * ) * - - COUNT ( * )
----
-1

query II rowsort
SELECT ALL 17, 9 + - 79 AS col0
----
17
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-2805
SELECT ALL 71 AS col2, 39 * + + COUNT( * ) * + COUNT( * ) + - 21
----
71
18

skipif mysql # not compatible
query II rowsort label-2805
SELECT ALL 71 AS col2, 39 * + + COUNT ( * ) * + COUNT ( * ) + - 21
----
71
18

query II rowsort
SELECT ALL 72 AS col2, - 51
----
72
-51

query I rowsort
SELECT 32 * + 20 AS col2
----
640

onlyif mysql # aggregate syntax: 
query II rowsort label-2808
SELECT DISTINCT - COUNT( * ) - - - 56 + - 61, 8 * 34 + + - 70 + - + 52 + - MAX( + 95 ) AS col2
----
-118
55

skipif mysql # not compatible
query II rowsort label-2808
SELECT DISTINCT - COUNT ( * ) - - - 56 + - 61, 8 * 34 + + - 70 + - + 52 + - MAX ( + 95 ) AS col2
----
-118
55

query II rowsort
SELECT ALL 80 AS col2, 24 AS col1
----
80
24

query I rowsort
SELECT 58 * - 89 AS col0
----
-5162

query I rowsort
SELECT DISTINCT + 38 * + - 14 AS col1
----
-532

query I rowsort
SELECT 57 * + 71
----
4047

onlyif mysql # aggregate syntax: 
query II rowsort label-2813
SELECT ALL COUNT( * ) AS col2, 16 * + 28 AS col2
----
1
448

skipif mysql # not compatible
query II rowsort label-2813
SELECT ALL COUNT ( * ) AS col2, 16 * + 28 AS col2
----
1
448

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2814
SELECT COUNT( * ) AS col2, - 68 * ( - 68 ) DIV - 28
----
1
-165

skipif mysql # not compatible
query II rowsort label-2814
SELECT COUNT ( * ) AS col2, - 68 * ( - 68 ) / - 28
----
1
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-2815
SELECT ALL - NULLIF ( + + 84, + + 3 ), + COUNT( * ) + + - COUNT( * ) col1
----
-84
0

skipif mysql # not compatible
query II rowsort label-2815
SELECT ALL - NULLIF ( + + 84, + + 3 ), + COUNT ( * ) + + - COUNT ( * ) col1
----
-84
0

query II rowsort
SELECT ALL - 12 col1, 83 AS col0
----
-12
83

query I rowsort
SELECT 47 * 62 AS col0
----
2914

query II rowsort
SELECT 82 * 40 * ( - 47 ), + 66 AS col0
----
-154160
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT + 99 * - - 2 - - 18 - + - COALESCE ( - 38, 1 - - 43 - SUM( DISTINCT - 83 ) ) + 54
----
232

skipif mysql # not compatible
query I rowsort label-2819
SELECT + 99 * - - 2 - - 18 - + - COALESCE ( - 38, 1 - - 43 - SUM ( DISTINCT - 83 ) ) + 54
----
232

onlyif mysql # DIV for integer division: 
query II rowsort label-2820
SELECT + + 71 AS col1, 67 DIV - + 88
----
71
0

skipif mysql # not compatible
query II rowsort label-2820
SELECT + + 71 AS col1, 67 / - + 88
----
71
0

query I rowsort
SELECT ALL + 40 * 42 + + ( + + 45 ) AS col2
----
1725

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT + 11 DIV - - 65 + + 75 - - + 96 col0
----
171

skipif mysql # not compatible
query I rowsort label-2822
SELECT + 11 / - - 65 + + 75 - - + 96 col0
----
171

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

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL - + 40 / - + COUNT ( * )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2824
SELECT COUNT( * ) - - 29 + + COUNT( * ) * MAX( 66 ) + 46 - CASE NULLIF ( 57, 88 + - SUM( - 23 ) ) WHEN 31 * + NULLIF ( - NULLIF ( - 46, 31 ), + + SUM( - 76 ) * 35 * - + 1 + COUNT( * ) ) / 46 - + ( + 80 ) * 38 THEN CAST( NULL AS SIGNED ) WHEN ( - 0 ) + - 74 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT COUNT ( * ) - - 29 + + COUNT ( * ) * MAX ( 66 ) + 46 - CASE NULLIF ( 57, 88 + - SUM ( - 23 ) ) WHEN 31 * + NULLIF ( - NULLIF ( - 46, 31 ), + + SUM ( - 76 ) * 35 * - + 1 + COUNT ( * ) ) / 46 - + ( + 80 ) * 38 THEN CAST ( NULL AS INTEGER ) WHEN ( - 0 ) + - 74 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT + MAX( DISTINCT - - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-2825
SELECT + MAX ( DISTINCT - - 20 )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2826
SELECT + CASE 99 WHEN + + COUNT( * ) THEN COUNT( * ) END col2, - 86 - - 66 AS col1
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-2826
SELECT + CASE 99 WHEN + + COUNT ( * ) THEN COUNT ( * ) END col2, - 86 - - 66 AS col1
----
NULL
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-2827
SELECT ALL - COUNT( * ) * - COUNT( * ) + - - 93 AS col2, + 61 AS col0
----
94
61

skipif mysql # not compatible
query II rowsort label-2827
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + - - 93 AS col2, + 61 AS col0
----
94
61

query I rowsort
SELECT 88 * 30 - 66 - 97 - - + 76
----
2553

query II rowsort
SELECT ALL + 14 AS col0, 24 col1
----
14
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT - + COUNT( * ) + - 49
----
-50

skipif mysql # not compatible
query I rowsort label-2830
SELECT - + COUNT ( * ) + - 49
----
-50

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

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

query I rowsort
SELECT + 77 * - ( + 4 ) AS col1
----
-308

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2833
SELECT + NULLIF ( + 22, - CAST( NULL AS SIGNED ) + - - 24 + - - 84 ) * 63 AS col0, - CAST( + + 80 AS SIGNED ) + 14 AS col0
----
1386
-66

skipif mysql # not compatible
query II rowsort label-2833
SELECT + NULLIF ( + 22, - CAST ( NULL AS INTEGER ) + - - 24 + - - 84 ) * 63 AS col0, - CAST ( + + 80 AS INTEGER ) + 14 AS col0
----
1386
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-2834
SELECT DISTINCT + 16 DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT + 16 / 79 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2835
SELECT + COALESCE ( 90, + - 41, 93 ) * - 8 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT + COALESCE ( 90, + - 41, 93 ) * - 8 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 4 + 39 * + 25
----
979

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

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

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

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

query I rowsort
SELECT + - 86 * 68 * 84
----
-491232

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL - ( - 81 ) * COUNT( * ) col1
----
81

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL - ( - 81 ) * COUNT ( * ) col1
----
81

query I rowsort
SELECT DISTINCT 76 - + - 30
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT 60 * - - COUNT( * ) + 57
----
117

skipif mysql # not compatible
query I rowsort label-2842
SELECT 60 * - - COUNT ( * ) + 57
----
117

query I rowsort
SELECT ALL 11 * ( - 85 ) AS col0
----
-935

query I rowsort
SELECT + 17 * - - 29
----
493

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT - CASE + - 50 WHEN - + MAX( DISTINCT + 18 ) * + ( - 42 ) THEN 44 * - CASE WHEN ( 90 ) IS NULL THEN 20 / + ( - + NULLIF ( 3, - 56 ) ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2846
SELECT - CASE + - 50 WHEN - + MAX ( DISTINCT + 18 ) * + ( - 42 ) THEN 44 * - CASE WHEN ( 90 ) IS NULL THEN 20 / + ( - + NULLIF ( 3, - 56 ) ) END ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2847
SELECT ALL COUNT( + 65 ), - 16 / - - 93 * CAST( NULL AS SIGNED ) * - - 69 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2847
SELECT ALL COUNT ( + 65 ), - 16 / - - 93 * CAST ( NULL AS INTEGER ) * - - 69 AS col1
----
1
NULL

query II rowsort
SELECT + 10 + + 62, 89 AS col0
----
72
89

query I rowsort
SELECT - NULLIF ( + 26, + 61 * + ( 60 ) )
----
-26

query I rowsort
SELECT ALL 75 * + 66
----
4950

query I rowsort
SELECT + 87 + 89 * + 48 AS col2
----
4359

onlyif mysql # DIV for integer division: 
query I rowsort label-2852
SELECT DISTINCT - 79 DIV - 49
----
1

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT - 79 / - 49
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT DISTINCT - 70 DIV 38
----
-1

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT - 70 / 38
----
-1

query I rowsort
SELECT ALL - 52 + 68 - + + 78 AS col0
----
-62

query I rowsort
SELECT + 27 + - - 34
----
61

query I rowsort
SELECT - 33 + + - 95 AS col0
----
-128

query I rowsort
SELECT ALL + 61 * + ( - + 24 )
----
-1464

onlyif mysql # DIV for integer division: 
query I rowsort label-2858
SELECT + 3 DIV 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2858
SELECT + 3 / 74 AS col0
----
0

query II rowsort
SELECT - 85 * + 22, 61 AS col1
----
-1870
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2860
SELECT DISTINCT 38 DIV 72 DIV + 35 + - - COUNT( * ) DIV - 65
----
0

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT 38 / 72 / + 35 + - - COUNT ( * ) / - 65
----
0

query II rowsort
SELECT ALL + ( 15 ) AS col0, - 50
----
15
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT DISTINCT 25 * + COUNT( * ) + 69 + COALESCE ( + COUNT( * ), + NULLIF ( - - 11, + 22 ) )
----
95

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT 25 * + COUNT ( * ) + 69 + COALESCE ( + COUNT ( * ), + NULLIF ( - - 11, + 22 ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT - NULLIF ( - 26, + 45 * + MAX( ALL + NULLIF ( + 50, - 20 ) ) / 41 )
----
26

skipif mysql # not compatible
query I rowsort label-2863
SELECT - NULLIF ( - 26, + 45 * + MAX ( ALL + NULLIF ( + 50, - 20 ) ) / 41 )
----
26

query I rowsort
SELECT + 35 + + 13 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL - 87 * - ( - + COUNT( * ) ) * SUM( DISTINCT 95 ) AS col2
----
-8265

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - 87 * - ( - + COUNT ( * ) ) * SUM ( DISTINCT 95 ) AS col2
----
-8265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2866
SELECT DISTINCT + - SUM( DISTINCT 82 ) DIV 60 * - 91
----
91

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT + - SUM ( DISTINCT 82 ) / 60 * - 91
----
91

query I rowsort
SELECT ALL + - 21 * 37 - - - 57 AS col0
----
-834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2868
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0, - 17 * - - 73
----
NULL
-1241

skipif mysql # not compatible
query II rowsort label-2868
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0, - 17 * - - 73
----
NULL
-1241

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT - 54 - + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-2869
SELECT - 54 - + COUNT ( * )
----
-55

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2873
SELECT - 17 DIV - 10 * - 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2873
SELECT - 17 / - 10 * - 1 AS col2
----
-1

query I rowsort
SELECT + 99 * + 63 * - 61
----
-380457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2875
SELECT ALL CAST( - 24 AS SIGNED ) DIV - COUNT( * ) * - + ( COUNT( * ) ) - + 17 + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL CAST ( - 24 AS INTEGER ) / - COUNT ( * ) * - + ( COUNT ( * ) ) - + 17 + COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL 81 * + 17 * - COALESCE ( COUNT( * ), - 9 )
----
-1377

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL 81 * + 17 * - COALESCE ( COUNT ( * ), - 9 )
----
-1377

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2878
SELECT + 46 - + COUNT( * ) * 80 DIV + - 54
----
47

skipif mysql # not compatible
query I rowsort label-2878
SELECT + 46 - + COUNT ( * ) * 80 / + - 54
----
47

query I rowsort
SELECT ALL 57 * + 15
----
855

query I rowsort
SELECT + 63 * - 83 AS col0
----
-5229

query I rowsort
SELECT DISTINCT 75 + + 71
----
146

query I rowsort
SELECT - ( - NULLIF ( + 5, + 96 ) ) AS col1
----
5

query I rowsort
SELECT ALL 51 + + - 24
----
27

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

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

query I rowsort
SELECT ALL 21 * - 58 AS col1
----
-1218

query I rowsort
SELECT ALL 15 + - + 95 AS col0
----
-80

query I rowsort
SELECT ALL 74 + 36 col0
----
110

query I rowsort
SELECT ALL NULLIF ( - 14, 76 ) AS col2
----
-14

query I rowsort
SELECT ALL 79 + 72
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2890
SELECT ALL + CAST( NULL AS SIGNED ) / + + 81 * - 26 - - + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL + CAST ( NULL AS INTEGER ) / + + 81 * - 26 - - + 30 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + + 28 / + 82 AS col2
----
NULL

query I rowsort
SELECT ALL + - 40 + + - 49 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT - 9 + + 68 + + + COALESCE ( + - 28, + 70, - COUNT( * ) ) + + 54 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-2893
SELECT - 9 + + 68 + + + COALESCE ( + - 28, + 70, - COUNT ( * ) ) + + 54 AS col0
----
85

query I rowsort
SELECT - 83 * + 28 * + 19 AS col0
----
-44156

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT + CASE + 53 WHEN + COUNT( * ) THEN + 17 + + + 3 + - COUNT( * ) * - + 60 * - 83 * 23 * + 27 * COUNT( * ) + MIN( + 61 ) WHEN 54 * + + 29 THEN + 60 WHEN 73 THEN NULL END / 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT + CASE + 53 WHEN + COUNT ( * ) THEN + 17 + + + 3 + - COUNT ( * ) * - + 60 * - 83 * 23 * + 27 * COUNT ( * ) + MIN ( + 61 ) WHEN 54 * + + 29 THEN + 60 WHEN 73 THEN NULL END / 29 AS col0
----
NULL

query I rowsort
SELECT + 32 * - 53 * + - 57
----
96672

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT DISTINCT + 49 * - 35 * + - COUNT( * ) + + 86 col2
----
1801

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT + 49 * - 35 * + - COUNT ( * ) + + 86 col2
----
1801

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL - SUM( + 98 ) - + 56 AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL - SUM ( + 98 ) - + 56 AS col1
----
-154

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2899
SELECT + 64 / + CAST( NULL AS SIGNED ) - + + 81 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT + 64 / + CAST ( NULL AS INTEGER ) - + + 81 + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2900
SELECT ALL 42 - - CAST( + COUNT( * ) AS SIGNED ) AS col2, 76 AS col1
----
43
76

skipif mysql # not compatible
query II rowsort label-2900
SELECT ALL 42 - - CAST ( + COUNT ( * ) AS INTEGER ) AS col2, 76 AS col1
----
43
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT - 81 * SUM( - 78 ) * + - 96 + + 3 + - + 31 + + 38 + 75
----
-606443

skipif mysql # not compatible
query I rowsort label-2901
SELECT - 81 * SUM ( - 78 ) * + - 96 + + 3 + - + 31 + + 38 + 75
----
-606443

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT DISTINCT + CASE + + 2 WHEN - 31 * + - MIN( - 85 ) * + 17 * - COUNT( * ) * + 9 + + 46 + + COUNT( * ) * - - 22 THEN NULL ELSE - MIN( - 7 ) * - 50 + COUNT( * ) - - 20 * - ( + COUNT( * ) ) END * 98 * + 5 + - ( - - ( 3 ) ) + + COUNT( DISTINCT + 52 ) * + 17 AS col1
----
-180796

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT + CASE + + 2 WHEN - 31 * + - MIN ( - 85 ) * + 17 * - COUNT ( * ) * + 9 + + 46 + + COUNT ( * ) * - - 22 THEN NULL ELSE - MIN ( - 7 ) * - 50 + COUNT ( * ) - - 20 * - ( + COUNT ( * ) ) END * 98 * + 5 + - ( - - ( 3 ) ) + + COUNT ( DISTINCT + 52 ) * + 17 AS col1
----
-180796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2904
SELECT - COALESCE ( - 32, SUM( DISTINCT - 71 ) ) + + - CAST( NULL AS SIGNED ) + + COUNT( * ) + - - COUNT( * ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT - COALESCE ( - 32, SUM ( DISTINCT - 71 ) ) + + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - - COUNT ( * ) * + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2905
SELECT - 76 * + 40 * CAST( + - 35 AS DECIMAL ) - MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT - 76 * + 40 * CAST ( + - 35 AS REAL ) - MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 48 * + - 71 AS col0
----
-3408

query I rowsort
SELECT 5 + - 65
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT + 22 - + 26 DIV - MIN( + 81 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-2908
SELECT + 22 - + 26 / - MIN ( + 81 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT COUNT( - 75 ) + CASE + 77 WHEN + 78 THEN NULL ELSE 38 END + - 60 + 60
----
39

skipif mysql # not compatible
query I rowsort label-2909
SELECT COUNT ( - 75 ) + CASE + 77 WHEN + 78 THEN NULL ELSE 38 END + - 60 + 60
----
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2910
SELECT ALL + CAST( + + 71 AS SIGNED ) DIV + - 26 - - 7 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL + CAST ( + + 71 AS INTEGER ) / + - 26 - - 7 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2911
SELECT + 66, + COUNT( - 59 ) + + CAST( - CASE 97 WHEN 72 * + MAX( DISTINCT + + 76 ) + - 54 THEN - 59 END AS SIGNED ) col2
----
66
NULL

skipif mysql # not compatible
query II rowsort label-2911
SELECT + 66, + COUNT ( - 59 ) + + CAST ( - CASE 97 WHEN 72 * + MAX ( DISTINCT + + 76 ) + - 54 THEN - 59 END AS INTEGER ) col2
----
66
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2912
SELECT COUNT( + 62 ) * 23 * - 76 AS col2, COUNT( * ) + + 98 AS col1
----
-1748
99

skipif mysql # not compatible
query II rowsort label-2912
SELECT COUNT ( + 62 ) * 23 * - 76 AS col2, COUNT ( * ) + + 98 AS col1
----
-1748
99

query I rowsort
SELECT DISTINCT 16 + + 37 + + 80 - + 32
----
101

query I rowsort
SELECT 51 + 63 AS col1
----
114

query I rowsort
SELECT 28 + 83 + 54 * - 88
----
-4641

onlyif mysql # aggregate syntax: 
query II rowsort label-2916
SELECT - 87 AS col1, SUM( 82 )
----
-87
82

skipif mysql # not compatible
query II rowsort label-2916
SELECT - 87 AS col1, SUM ( 82 )
----
-87
82

query II rowsort
SELECT - 69 * + 79 + + ( + + 69 ), + ( 18 ) + 8 AS col2
----
-5382
26

query I rowsort
SELECT ALL 15 + + 32 AS col1
----
47

query II rowsort
SELECT ALL 74 + - 83 AS col0, + 14 + + 59 AS col2
----
-9
73

query II rowsort
SELECT 76 col1, + ( 28 )
----
76
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT DISTINCT 9 DIV COUNT( * ) * - 47 AS col1
----
-423

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT 9 / COUNT ( * ) * - 47 AS col1
----
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT SUM( ( 31 ) ) + 23 * - 72 * + - 79
----
130855

skipif mysql # not compatible
query I rowsort label-2922
SELECT SUM ( ( 31 ) ) + 23 * - 72 * + - 79
----
130855

query I rowsort
SELECT ALL + 89 + + 32 + - 70
----
51

query I rowsort
SELECT ALL 61 + + + 33 * + 74 * 41 AS col2
----
100183

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT ALL 84 * - + ( 9 ) * - - COALESCE ( - 84, + COUNT( * ) * + 3 )
----
63504

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL 84 * - + ( 9 ) * - - COALESCE ( - 84, + COUNT ( * ) * + 3 )
----
63504

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL COUNT( ( 14 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL COUNT ( ( 14 ) ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2927
SELECT COALESCE ( - - COALESCE ( - CAST( NULL AS SIGNED ), COUNT( * ) + 23 ), - - 14 * COUNT( * ) ) + COALESCE ( + 8, + + 93 )
----
32

skipif mysql # not compatible
query I rowsort label-2927
SELECT COALESCE ( - - COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( * ) + 23 ), - - 14 * COUNT ( * ) ) + COALESCE ( + 8, + + 93 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2928
SELECT + CAST( + - 69 AS SIGNED ), 66 col1
----
-69
66

skipif mysql # not compatible
query II rowsort label-2928
SELECT + CAST ( + - 69 AS INTEGER ), 66 col1
----
-69
66

query I rowsort
SELECT + ( - 77 ) + 44
----
-33

query I rowsort
SELECT ALL - 20 * - 67 col1
----
1340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2931
SELECT CAST( COALESCE ( + 0, 6 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2931
SELECT CAST ( COALESCE ( + 0, 6 ) AS INTEGER ) AS col2
----
0

query I rowsort
SELECT DISTINCT + 93 * + 57 + + ( 19 ) AS col2
----
5320

query I rowsort
SELECT 94 + 54 + 38 * 62
----
2504

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT ALL - CASE + 61 WHEN - 5 * + 57 + - 27 + + 27 + NULLIF ( 93, + COUNT( * ) ) THEN 66 WHEN 66 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL - CASE + 61 WHEN - 5 * + 57 + - 27 + + 27 + NULLIF ( 93, + COUNT ( * ) ) THEN 66 WHEN 66 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT 40 * - - 41 * 46 + + 44 + 7 + + 4 - 29 * + - 35 col0
----
76510

query I rowsort
SELECT - 45 * 80
----
-3600

query I rowsort
SELECT 20 * + + 66
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT ALL + 92 * MAX( + 15 )
----
1380

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL + 92 * MAX ( + 15 )
----
1380

query I rowsort
SELECT ALL - 37 + - - 56 - 43
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT 41 * + MAX( DISTINCT - - 93 )
----
3813

skipif mysql # not compatible
query I rowsort label-2940
SELECT 41 * + MAX ( DISTINCT - - 93 )
----
3813

query I rowsort
SELECT ALL 52 + + + 5 + 19 AS col2
----
76

query I rowsort
SELECT DISTINCT ( - - 32 ) * - 9 + + 65
----
-223

query I rowsort
SELECT 51 * 46 AS col0
----
2346

query I rowsort
SELECT ALL + 65 + - - 68
----
133

query I rowsort
SELECT 73 + 82 + - + 48 AS col1
----
107

query I rowsort
SELECT ALL - 2 + - 14 AS col0
----
-16

query I rowsort
SELECT DISTINCT + 48 * - + 37
----
-1776

query I rowsort
SELECT DISTINCT - 21 + + 81 * + + ( - - 20 )
----
1599

query I rowsort
SELECT ALL + 30 * - 92
----
-2760

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2950
SELECT DISTINCT CASE + 54 WHEN + CAST( + 62 AS DECIMAL ) DIV 97 * 4 + COALESCE ( + + 69, 40 + 69, - 71 - - 24 + 29 ) + - COUNT( * ) THEN NULL ELSE - - 14 DIV + 65 * + 7 + - + 22 * - - 4 + - 43 END
----
-131

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT CASE + 54 WHEN + CAST ( + 62 AS REAL ) / 97 * 4 + COALESCE ( + + 69, 40 + 69, - 71 - - 24 + 29 ) + - COUNT ( * ) THEN NULL ELSE - - 14 / + 65 * + 7 + - + 22 * - - 4 + - 43 END
----
-131

query I rowsort
SELECT 76 - 97
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT ALL + 3 + + - CAST( + 23 AS SIGNED ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + 3 + + - CAST ( + 23 AS INTEGER ) AS col2
----
-20

query I rowsort
SELECT DISTINCT - 48 * + 76 * - + CASE + + 23 WHEN + - 1 THEN + + 57 ELSE NULL END * - + 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL MIN( DISTINCT - + 34 ) - - ( 41 )
----
7

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL MIN ( DISTINCT - + 34 ) - - ( 41 )
----
7

query II rowsort
SELECT - 26 * + - 93, - 24 AS col2
----
2418
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-2956
SELECT ALL - 30 * - - 46, 28 DIV + 67 AS col0
----
-1380
0

skipif mysql # not compatible
query II rowsort label-2956
SELECT ALL - 30 * - - 46, 28 / + 67 AS col0
----
-1380
0

query I rowsort
SELECT ALL + 24 - + + 25
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2959
SELECT ALL + + COALESCE ( + + 61, 23 DIV - 26 + + 4 * - CAST( NULL AS SIGNED ) ) - - ( 72 ) DIV - 39 col2
----
60

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL + + COALESCE ( + + 61, 23 / - 26 + + 4 * - CAST ( NULL AS INTEGER ) ) - - ( 72 ) / - 39 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT - COUNT( * ) / CASE - + 24 WHEN - COUNT( * ) THEN NULL WHEN + - ( - 26 ) * + CASE COALESCE ( + 88, + 67, + 58 ) WHEN + + 99 THEN NULL WHEN - ( + - 86 ) THEN + 18 * - + 11 ELSE NULL END * - ( + COUNT( * ) ) * 49 THEN - 64 END * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT - COUNT ( * ) / CASE - + 24 WHEN - COUNT ( * ) THEN NULL WHEN + - ( - 26 ) * + CASE COALESCE ( + 88, + 67, + 58 ) WHEN + + 99 THEN NULL WHEN - ( + - 86 ) THEN + 18 * - + 11 ELSE NULL END * - ( + COUNT ( * ) ) * 49 THEN - 64 END * 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2961
SELECT ALL + 83 * - - COUNT( * ) + + 38 - MAX( DISTINCT 32 ) DIV - 34 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL + 83 * - - COUNT ( * ) + + 38 - MAX ( DISTINCT 32 ) / - 34 AS col1
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2962
SELECT ALL - COALESCE ( - + COUNT( * ), - - CAST( NULL AS SIGNED ) * - 3 ) * - 37 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL - COALESCE ( - + COUNT ( * ), - - CAST ( NULL AS INTEGER ) * - 3 ) * - 37 AS col0
----
-37

query I rowsort
SELECT - + 34 + 6
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2964
SELECT + - CASE - 37 WHEN + 94 * - - ( - COUNT( * ) ) * - 61 * - 18 * 12 - CAST( 4 AS SIGNED ) THEN 42 END * - + 39 + - - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2964
SELECT + - CASE - 37 WHEN + 94 * - - ( - COUNT ( * ) ) * - 61 * - 18 * 12 - CAST ( 4 AS INTEGER ) THEN 42 END * - + 39 + - - 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2965
SELECT - 18 * - - COALESCE ( - 72, 64 DIV 39, - 73 ) + - 42 * - COUNT( * ) AS col2
----
1338

skipif mysql # not compatible
query I rowsort label-2965
SELECT - 18 * - - COALESCE ( - 72, 64 / 39, - 73 ) + - 42 * - COUNT ( * ) AS col2
----
1338

query I rowsort
SELECT ALL 60 * - 52
----
-3120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2967
SELECT DISTINCT + ( - + CASE + COALESCE ( CAST( NULL AS SIGNED ), 9, - 61 ) WHEN + 20 THEN NULL ELSE - 49 END ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT + ( - + CASE + COALESCE ( CAST ( NULL AS INTEGER ), 9, - 61 ) WHEN + 20 THEN NULL ELSE - 49 END ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT ALL + + 26 * 37 + - COUNT( * )
----
961

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL + + 26 * 37 + - COUNT ( * )
----
961

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT + CASE + + 29 WHEN - 69 THEN NULL ELSE 35 * + + 61 - + - SUM( ALL - - 40 ) END - - 67 col2
----
2242

skipif mysql # not compatible
query I rowsort label-2969
SELECT + CASE + + 29 WHEN - 69 THEN NULL ELSE 35 * + + 61 - + - SUM ( ALL - - 40 ) END - - 67 col2
----
2242

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ALL - - 9 * COALESCE ( + - 67, + SUM( ALL - ( + 62 ) ) ) AS col0
----
-603

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL - - 9 * COALESCE ( + - 67, + SUM ( ALL - ( + 62 ) ) ) AS col0
----
-603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2971
SELECT ALL - 57 * 48 * + - CAST( + ( - 89 ) AS SIGNED ) + + - 2 AS col1
----
-243506

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL - 57 * 48 * + - CAST ( + ( - 89 ) AS INTEGER ) + + - 2 AS col1
----
-243506

query I rowsort
SELECT DISTINCT + 70 * - + 92 * 25 + + + 32 - - - ( + 45 )
----
-161013

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL - 37 * CASE + 46 WHEN 93 THEN NULL WHEN + - COUNT( * ) THEN + 39 WHEN 87 + - 32 THEN NULL END + + NULLIF ( - + 14, + - 69 / - CASE - 70 WHEN + 39 * - 47 THEN + - ( + 86 ) + + 31 + 31 ELSE NULL END * + COUNT( * ) - - 0 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL - 37 * CASE + 46 WHEN 93 THEN NULL WHEN + - COUNT ( * ) THEN + 39 WHEN 87 + - 32 THEN NULL END + + NULLIF ( - + 14, + - 69 / - CASE - 70 WHEN + 39 * - 47 THEN + - ( + 86 ) + + 31 + 31 ELSE NULL END * + COUNT ( * ) - - 0 ) AS col2
----
NULL

query I rowsort
SELECT + 11 + + 86 * - 98 AS col0
----
-8417

query I rowsort
SELECT + 99 * - - 67 - 53 AS col2
----
6580

onlyif mysql # aggregate syntax: 
query II rowsort label-2976
SELECT COUNT( * ) * + + COUNT( * ) * ( + - 60 ) + - CASE WHEN NOT NULL BETWEEN 93 AND NULL THEN NULL ELSE + - 18 END, - 37 - - 78 + + COUNT( * ) * - + 42 AS col1
----
-42
-1

skipif mysql # not compatible
query II rowsort label-2976
SELECT COUNT ( * ) * + + COUNT ( * ) * ( + - 60 ) + - CASE WHEN NOT NULL BETWEEN 93 AND NULL THEN NULL ELSE + - 18 END, - 37 - - 78 + + COUNT ( * ) * - + 42 AS col1
----
-42
-1

query I rowsort
SELECT - 93 - 92
----
-185

query I rowsort
SELECT DISTINCT 33 * 10
----
330

query I rowsort
SELECT ALL + 61 * - - 91 AS col0
----
5551

query II rowsort
SELECT ALL 30 * 93 + 15 AS col0, + 52 * - 60
----
2805
-3120

query II rowsort
SELECT + 57 + - 39 + - 24 AS col0, - 73 AS col2
----
-6
-73

query I rowsort
SELECT ALL 62 * 56
----
3472

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

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT + ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2986
SELECT DISTINCT + 90 - - - NULLIF ( + CAST( + 90 AS SIGNED ), + 54 )
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT + 90 - - - NULLIF ( + CAST ( + 90 AS INTEGER ), + 54 )
----
0

query I rowsort
SELECT + 14 + - 2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL CASE + + 62 WHEN + COUNT( * ) + - 12 + - + 34 - - + 92 * - - 20 THEN + - 10 * - COUNT( DISTINCT - - 31 ) WHEN - 54 * - - 53 THEN 74 + 20 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL CASE + + 62 WHEN + COUNT ( * ) + - 12 + - + 34 - - + 92 * - - 20 THEN + - 10 * - COUNT ( DISTINCT - - 31 ) WHEN - 54 * - - 53 THEN 74 + 20 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 2 * + 69 + + 83 + - 2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2990
SELECT - + 98 + - 87 * - 35 * + + 23 - 90 DIV - 69
----
69938

skipif mysql # not compatible
query I rowsort label-2990
SELECT - + 98 + - 87 * - 35 * + + 23 - 90 / - 69
----
69938

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT - - 23 + + 21 + 96 * + + 90 * + - 20 * + - COUNT( * ) col2
----
172844

skipif mysql # not compatible
query I rowsort label-2992
SELECT - - 23 + + 21 + 96 * + + 90 * + - 20 * + - COUNT ( * ) col2
----
172844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2993
SELECT - + 48 + - - 8 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT - + 48 + - - 8 * - - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT - 48 - + 44 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT - SUM( ALL + + 42 ) + - - 70 * - 2 col0
----
-182

skipif mysql # not compatible
query I rowsort label-2996
SELECT - SUM ( ALL + + 42 ) + - - 70 * - 2 col0
----
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2997
SELECT - 61 + + 19 * - COUNT( * ) / - - CASE + CAST( - CAST( - CASE 71 WHEN + + 84 THEN + 32 WHEN SUM( - + 26 ) THEN NULL WHEN - - 77 THEN NULL ELSE NULL END AS SIGNED ) AS SIGNED ) WHEN - - 35 THEN MIN( ALL - - 33 ) + - ( - + 87 ) + + 27 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2997
SELECT - 61 + + 19 * - COUNT ( * ) / - - CASE + CAST ( - CAST ( - CASE 71 WHEN + + 84 THEN + 32 WHEN SUM ( - + 26 ) THEN NULL WHEN - - 77 THEN NULL ELSE NULL END AS INTEGER ) AS INTEGER ) WHEN - - 35 THEN MIN ( ALL - - 33 ) + - ( - + 87 ) + + 27 END AS col1
----
NULL

query I rowsort
SELECT - 19 * + 7 * + 85 * + 31
----
-350455

query I rowsort
SELECT + 88 + + 92
----
180

query I rowsort
SELECT - + 97 + + - 40 * + 29 AS col2
----
-1257

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

skipif mysql # not compatible
query I rowsort label-3001
SELECT - - 22 + - 29 * - 51 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3002
SELECT - - 72 DIV 30
----
2

skipif mysql # not compatible
query I rowsort label-3002
SELECT - - 72 / 30
----
2

query II rowsort
SELECT - 11 * + 37 col1, 85
----
-407
85

query II rowsort
SELECT + 17 + - 86, - 88 AS col1
----
-69
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT + COUNT( * ) * - 39 + + + 83 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3005
SELECT + COUNT ( * ) * - 39 + + + 83 AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3006
SELECT + MIN( + 87 ) AS col2, 68 * 53
----
87
3604

skipif mysql # not compatible
query II rowsort label-3006
SELECT + MIN ( + 87 ) AS col2, 68 * 53
----
87
3604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3007
SELECT + CAST( - AVG ( - 6 ) AS SIGNED ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3007
SELECT + CAST ( - AVG ( - 6 ) AS INTEGER ) AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3008
SELECT ( + ( - 80 ) ) DIV + + 55 + + - 91 DIV + 31 * + + COUNT( * ) + - + 57
----
-60

skipif mysql # not compatible
query I rowsort label-3008
SELECT ( + ( - 80 ) ) / + + 55 + + - 91 / + 31 * + + COUNT ( * ) + - + 57
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - 81 * COUNT( * ) * - 41
----
3321

skipif mysql # not compatible
query I rowsort label-3009
SELECT - 81 * COUNT ( * ) * - 41
----
3321

query I rowsort
SELECT DISTINCT - 48 * - 38 AS col2
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT MIN( ALL 83 ) * 90 AS col2
----
7470

skipif mysql # not compatible
query I rowsort label-3011
SELECT MIN ( ALL 83 ) * 90 AS col2
----
7470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3012
SELECT ( 25 ) * CAST( + SUM( + 83 ) AS SIGNED ) - + ( 3 ) + - 25 * - 26 * - - COUNT( * ) AS col1
----
2722

skipif mysql # not compatible
query I rowsort label-3012
SELECT ( 25 ) * CAST ( + SUM ( + 83 ) AS INTEGER ) - + ( 3 ) + - 25 * - 26 * - - COUNT ( * ) AS col1
----
2722

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3013
SELECT NULLIF ( - MIN( ALL 24 ), 41 ) DIV - 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3013
SELECT NULLIF ( - MIN ( ALL 24 ), 41 ) / - 43 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3014
SELECT ALL 9 / - COUNT( * ) * 53 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL 9 / - COUNT ( * ) * 53 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT NULLIF ( + 9, 71 ) + + 5 + + 73 + COUNT( * ) + + 52
----
140

skipif mysql # not compatible
query I rowsort label-3015
SELECT NULLIF ( + 9, 71 ) + + 5 + + 73 + COUNT ( * ) + + 52
----
140

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT + 0 - - - MAX( + 61 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3017
SELECT + 0 - - - MAX ( + 61 ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ALL SUM( DISTINCT + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL SUM ( DISTINCT + 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT DISTINCT ( - + ( + + 35 ) ) * COUNT( * ) * - 6 AS col1
----
210

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT ( - + ( + + 35 ) ) * COUNT ( * ) * - 6 AS col1
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-3020
SELECT 0 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-3020
SELECT 0 / 86
----
0

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

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL 92 + + 42 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT DISTINCT + ( + 30 ) * COUNT( * ) + - 66
----
-36

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT + ( + 30 ) * COUNT ( * ) + - 66
----
-36

query I rowsort
SELECT DISTINCT ( + - 86 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT DISTINCT + COUNT( ALL + - 47 ) + - - 96
----
97

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT + COUNT ( ALL + - 47 ) + - - 96
----
97

query I rowsort
SELECT ALL - 31 + + + 27
----
-4

query I rowsort
SELECT 49 * + 59 + 34 * - 76 * 52 AS col1
----
-131477

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3027
SELECT ALL CAST( - 18 AS SIGNED ) AS col2, NULLIF ( + 37, - 56 ) AS col2
----
-18
37

skipif mysql # not compatible
query II rowsort label-3027
SELECT ALL CAST ( - 18 AS INTEGER ) AS col2, NULLIF ( + 37, - 56 ) AS col2
----
-18
37

query II rowsort
SELECT DISTINCT + + NULLIF ( + - 81, 34 ) * - + 21 * + 90 AS col2, 11 AS col2
----
153090
11

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

query I rowsort
SELECT 67 * - 87 * + - 86 AS col1
----
501294

query I rowsort
SELECT ALL + 33 * + 18 AS col0
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT COUNT( * ) * + 43 + + + 17 + 27 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3032
SELECT COUNT ( * ) * + 43 + + + 17 + 27 AS col1
----
87

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

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 19
----
NULL

query I rowsort
SELECT 66 + - 40 + + 46 * + 73 + - + 66 AS col2
----
3318

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT 80 * + 74 + + 16 + - 73 + + 2 * + - NULLIF ( 78, 52 ) DIV - - 74 AS col0
----
5861

skipif mysql # not compatible
query I rowsort label-3036
SELECT 80 * + 74 + + 16 + - 73 + + 2 * + - NULLIF ( 78, 52 ) / - - 74 AS col0
----
5861

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT 66 + + 86 * + + SUM( ALL - - 24 ) AS col1
----
2130

skipif mysql # not compatible
query I rowsort label-3037
SELECT 66 + + 86 * + + SUM ( ALL - - 24 ) AS col1
----
2130

query I rowsort
SELECT - 52 * + 7 - - + 66 AS col2
----
-298

onlyif mysql # aggregate syntax: 
query II rowsort label-3039
SELECT DISTINCT - 17 * 58 * - 67, + ( + - COUNT( * ) ) + - 29 AS col2
----
66062
-30

skipif mysql # not compatible
query II rowsort label-3039
SELECT DISTINCT - 17 * 58 * - 67, + ( + - COUNT ( * ) ) + - 29 AS col2
----
66062
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3040
SELECT COUNT( * ) + - 21 * + CAST( NULL AS SIGNED ) * + 15 * - - NULLIF ( + - 19, - 95 ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3040
SELECT COUNT ( * ) + - 21 * + CAST ( NULL AS INTEGER ) * + 15 * - - NULLIF ( + - 19, - 95 ) * - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT 82 * + COUNT( DISTINCT + - 67 )
----
82

skipif mysql # not compatible
query I rowsort label-3041
SELECT 82 * + COUNT ( DISTINCT + - 67 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3042
SELECT COUNT( * ) * - ( - CAST( - 98 AS SIGNED ) )
----
-98

skipif mysql # not compatible
query I rowsort label-3042
SELECT COUNT ( * ) * - ( - CAST ( - 98 AS INTEGER ) )
----
-98

query I rowsort
SELECT ALL 3 * - 62 * + - ( - 30 )
----
-5580

query I rowsort
SELECT DISTINCT + 26 * 52
----
1352

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3045
SELECT + 7 col0, 41 + - 83 DIV - COUNT( * )
----
7
124

skipif mysql # not compatible
query II rowsort label-3045
SELECT + 7 col0, 41 + - 83 / - COUNT ( * )
----
7
124

query I rowsort
SELECT ALL - 96 + - 70 * 70
----
-4996

onlyif mysql # aggregate syntax: 
query II rowsort label-3047
SELECT DISTINCT - 43 AS col0, + 21 + + - COUNT( * )
----
-43
20

skipif mysql # not compatible
query II rowsort label-3047
SELECT DISTINCT - 43 AS col0, + 21 + + - COUNT ( * )
----
-43
20

query I rowsort
SELECT + 48 + - 7
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT + 57 DIV - + 31 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3049
SELECT + 57 / - + 31 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3050
SELECT DISTINCT + COALESCE ( 24, - COUNT( * ) ) DIV + + 12 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3050
SELECT DISTINCT + COALESCE ( 24, - COUNT ( * ) ) / + + 12 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3051
SELECT + NULLIF ( - 87, + CAST( ( COUNT( * ) ) AS SIGNED ) * - MAX( DISTINCT + ( + + CAST( - + 78 AS SIGNED ) ) ) + - MAX( DISTINCT + 86 ) + + 51 + - - ( - CASE - + ( - + 33 ) WHEN - + 89 THEN - 49 ELSE NULL END ) * + 47 * - 88 ) * 2 * + 5
----
-870

skipif mysql # not compatible
query I rowsort label-3051
SELECT + NULLIF ( - 87, + CAST ( ( COUNT ( * ) ) AS INTEGER ) * - MAX ( DISTINCT + ( + + CAST ( - + 78 AS INTEGER ) ) ) + - MAX ( DISTINCT + 86 ) + + 51 + - - ( - CASE - + ( - + 33 ) WHEN - + 89 THEN - 49 ELSE NULL END ) * + 47 * - 88 ) * 2 * + 5
----
-870

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3052
SELECT ALL 82 AS col0, 12 + + + 74 * CAST( - 94 AS SIGNED ) col0
----
82
-6944

skipif mysql # not compatible
query II rowsort label-3052
SELECT ALL 82 AS col0, 12 + + + 74 * CAST ( - 94 AS INTEGER ) col0
----
82
-6944

onlyif mysql # DIV for integer division: 
query II rowsort label-3053
SELECT - 23 + NULLIF ( 83, + 87 ) + - + 86, 13 DIV + 56 + - + 67 AS col0
----
-26
-67

skipif mysql # not compatible
query II rowsort label-3053
SELECT - 23 + NULLIF ( 83, + 87 ) + - + 86, 13 / + 56 + - + 67 AS col0
----
-26
-67

query I rowsort
SELECT ALL 93 + + 83 AS col1
----
176

query I rowsort
SELECT 63 + 92
----
155

query I rowsort
SELECT ALL + + 6 + + + 12
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ( + 80 ) + + NULLIF ( - - 50, - NULLIF ( + 34, + 36 ) * + - 5 * - 8 + + 93 + - - 27 / COUNT( * ) + + 91 - + 21 ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-3057
SELECT ( + 80 ) + + NULLIF ( - - 50, - NULLIF ( + 34, + 36 ) * + - 5 * - 8 + + 93 + - - 27 / COUNT ( * ) + + 91 - + 21 ) AS col1
----
130

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

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

query I rowsort
SELECT - COALESCE ( - - 75, - 24 ) col1
----
-75

query I rowsort
SELECT 40 + + 98
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-3061
SELECT + 64 * - + COUNT( * ) * + COALESCE ( + 42, + 96 ) AS col2, 6
----
-2688
6

skipif mysql # not compatible
query II rowsort label-3061
SELECT + 64 * - + COUNT ( * ) * + COALESCE ( + 42, + 96 ) AS col2, 6
----
-2688
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ALL - MAX( ALL - 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL - MAX ( ALL - 86 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3063
SELECT NULLIF ( - NULLIF ( - 0, - + 32 ), - - 29 * 73 + 19 + - - 37 / 55 / - 87 ) * + - COUNT( * ) AS col1, + 88 AS col0
----
0
88

skipif mysql # not compatible
query II rowsort label-3063
SELECT NULLIF ( - NULLIF ( - 0, - + 32 ), - - 29 * 73 + 19 + - - 37 / 55 / - 87 ) * + - COUNT ( * ) AS col1, + 88 AS col0
----
0
88

query I rowsort
SELECT 57 + 4
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3065
SELECT ALL + 2 * 52 DIV 94
----
1

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL + 2 * 52 / 94
----
1

query II rowsort
SELECT + 28 AS col2, - 51 col0
----
28
-51

query I rowsort
SELECT - ( + + 78 ) * - 4 * - 96
----
-29952

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

skipif mysql # not compatible
query I rowsort label-3068
SELECT - CAST ( NULL AS INTEGER ) / 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT 76 * + 40 + - COUNT( * )
----
3039

skipif mysql # not compatible
query I rowsort label-3069
SELECT 76 * + 40 + - COUNT ( * )
----
3039

query I rowsort
SELECT + COALESCE ( - 14, - ( + 85 ), - - 6 )
----
-14

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3072
SELECT + 94 AS col0, ( + 2 ) * + + 11 + - COUNT( - 29 ) AS col0
----
94
21

skipif mysql # not compatible
query II rowsort label-3072
SELECT + 94 AS col0, ( + 2 ) * + + 11 + - COUNT ( - 29 ) AS col0
----
94
21

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

skipif mysql # not compatible
query I rowsort label-3073
SELECT - 97 / - COUNT ( * )
----
97

query I rowsort
SELECT - 56 + 59 * + 59
----
3425

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT ALL + SUM( - 17 ) col0
----
-17

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL + SUM ( - 17 ) col0
----
-17

query I rowsort
SELECT ALL 74 * - 31
----
-2294

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT 98 * - MAX( 78 ) + - 21
----
-7665

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT 98 * - MAX ( 78 ) + - 21
----
-7665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3078
SELECT ALL - COUNT( * ) DIV NULLIF ( 99, + 86 + - - CAST( + - 0 AS SIGNED ) + - 27 )
----
0

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - COUNT ( * ) / NULLIF ( 99, + 86 + - - CAST ( + - 0 AS INTEGER ) + - 27 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT 4 * + COUNT( * ) + + - 56 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3079
SELECT 4 * + COUNT ( * ) + + - 56 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT DISTINCT - 91 * + COUNT( * ) + - 31
----
-122

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT - 91 * + COUNT ( * ) + - 31
----
-122

query I rowsort
SELECT - + 67 - + + ( - 34 ) * 11
----
307

onlyif mysql # DIV for integer division: 
query I rowsort label-3082
SELECT ALL - 56 DIV - 84 * + ( + 59 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL - 56 / - 84 * + ( + 59 ) AS col0
----
0

query II rowsort
SELECT - 15 AS col1, 90 AS col0
----
-15
90

query I rowsort
SELECT + COALESCE ( 26, + 84, - 23 + - + 39 * + - 31 ) + + 34 AS col0
----
60

query I rowsort
SELECT DISTINCT - + 14 * - + 56 * - ( - 96 ) + + + 72 - + 32
----
75304

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT + 41 + + 72 * + NULLIF ( - COUNT( * ), - 13 * + 55 * + - 34 * 53 + - 39 + + 32 )
----
-31

skipif mysql # not compatible
query I rowsort label-3086
SELECT + 41 + + 72 * + NULLIF ( - COUNT ( * ), - 13 * + 55 * + - 34 * 53 + - 39 + + 32 )
----
-31

query II rowsort
SELECT 15 AS col0, ( 25 ) col1
----
15
25

query I rowsort
SELECT ALL + + 75 * - 80
----
-6000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3089
SELECT DISTINCT 93 AS col0, - 49 - 12 * CASE WHEN ( NULL ) <> + 11 THEN NULL WHEN 98 IN ( COUNT( * ), 81 ) THEN + - CAST( - AVG ( + - CAST( NULL AS SIGNED ) ) AS SIGNED ) END + + + 8
----
93
NULL

skipif mysql # not compatible
query II rowsort label-3089
SELECT DISTINCT 93 AS col0, - 49 - 12 * CASE WHEN ( NULL ) <> + 11 THEN NULL WHEN 98 IN ( COUNT ( * ), 81 ) THEN + - CAST ( - AVG ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) END + + + 8
----
93
NULL

query II rowsort
SELECT - 98 - + NULLIF ( 4, + 88 ) * - + 92 + 97 AS col0, + 36 AS col0
----
367
36

query I rowsort
SELECT - CASE - 64 WHEN - 72 THEN 42 * ( + 13 ) WHEN 55 THEN 98 WHEN 30 THEN - 20 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3092
SELECT - 83, + 61 * 88 * - MIN( ALL 71 ) AS col1
----
-83
-381128

skipif mysql # not compatible
query II rowsort label-3092
SELECT - 83, + 61 * 88 * - MIN ( ALL 71 ) AS col1
----
-83
-381128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3093
SELECT + - 10 * 88 AS col0, 11 + + CAST( NULL AS SIGNED ) + + 43 - + 86 * + 93 * - 46 * + COUNT( * ) AS col0
----
-880
NULL

skipif mysql # not compatible
query II rowsort label-3093
SELECT + - 10 * 88 AS col0, 11 + + CAST ( NULL AS INTEGER ) + + 43 - + 86 * + 93 * - 46 * + COUNT ( * ) AS col0
----
-880
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3095
SELECT + 34 col2, COUNT( * ) + - + ( + + COUNT( * ) ) * + COUNT( * ) - + - 43 DIV COUNT( * ) * - - 81 AS col2
----
34
3483

skipif mysql # not compatible
query II rowsort label-3095
SELECT + 34 col2, COUNT ( * ) + - + ( + + COUNT ( * ) ) * + COUNT ( * ) - + - 43 / COUNT ( * ) * - - 81 AS col2
----
34
3483

query I rowsort
SELECT - 96 - - 64 * - + 56 AS col1
----
-3680

query II rowsort
SELECT - + 1 AS col2, 20 + 57
----
-1
77

query II rowsort
SELECT DISTINCT 35 - - 51, 13 AS col2
----
86
13

query I rowsort
SELECT ALL 28 * - 22
----
-616

query I rowsort
SELECT + 10 * - 94 AS col2
----
-940

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT + 28 - + 63 + - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-3102
SELECT + 28 - + 63 + - COUNT ( * )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT + CAST( 49 AS SIGNED ) * + 70 * + ( 42 ) - + + 93
----
143967

skipif mysql # not compatible
query I rowsort label-3103
SELECT + CAST ( 49 AS INTEGER ) * + 70 * + ( 42 ) - + + 93
----
143967

query I rowsort
SELECT ALL 92 * 50 AS col1
----
4600

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT + ( 96 ) * + 99 + + - COUNT( * ) - - + 59
----
9562

skipif mysql # not compatible
query I rowsort label-3105
SELECT + ( 96 ) * + 99 + + - COUNT ( * ) - - + 59
----
9562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3106
SELECT + 7 DIV 71 + - ( CAST( ( COUNT( * ) ) AS SIGNED ) ) + - - 78 + 12 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3106
SELECT + 7 / 71 + - ( CAST ( ( COUNT ( * ) ) AS INTEGER ) ) + - - 78 + 12 AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3107
SELECT + COUNT( * ) DIV + 19 + + 32 * + COUNT( * ) - - 72
----
104

skipif mysql # not compatible
query I rowsort label-3107
SELECT + COUNT ( * ) / + 19 + + 32 * + COUNT ( * ) - - 72
----
104

query I rowsort
SELECT 18 * + 31 + + 7
----
565

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3109
SELECT ALL 69 DIV - 25 + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL 69 / - 25 + - COUNT ( * )
----
-3

query I rowsort
SELECT ( + + 26 ) col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3111
SELECT - CASE - + ( - - 50 ) WHEN COUNT( * ) THEN NULL ELSE + 48 END * + 78 + 45 DIV COUNT( * ) DIV + ( - MAX( ( 34 ) ) ) + 48 AS col0
----
-3697

skipif mysql # not compatible
query I rowsort label-3111
SELECT - CASE - + ( - - 50 ) WHEN COUNT ( * ) THEN NULL ELSE + 48 END * + 78 + 45 / COUNT ( * ) / + ( - MAX ( ( 34 ) ) ) + 48 AS col0
----
-3697

onlyif mysql # aggregate syntax: 
query II rowsort label-3112
SELECT + COALESCE ( + 36, 29 * + - 68, - COUNT( * ) * + - 80 * - - 22 ) + 99 AS col0, + 73
----
135
73

skipif mysql # not compatible
query II rowsort label-3112
SELECT + COALESCE ( + 36, 29 * + - 68, - COUNT ( * ) * + - 80 * - - 22 ) + 99 AS col0, + 73
----
135
73

query I rowsort
SELECT + + 21 + - + 15 + - 43 - - 78 + + - 59 * - 26 * + + 96 + 66 * - 15 + + 52
----
146367

query I rowsort
SELECT DISTINCT - + 37 * 95 + 74 col0
----
-3441

query I rowsort
SELECT - 69 * - ( - CASE + ( - 35 ) WHEN + 41 + 59 THEN + 71 END )
----
NULL

query I rowsort
SELECT + + COALESCE ( + 73, 30 + 39 * 24 )
----
73

query I rowsort
SELECT DISTINCT + 79 * - ( - 21 ) - 42 * 21 AS col2
----
777

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

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

query I rowsort
SELECT + ( + 92 ) + - ( 70 ) * - 55 AS col2
----
3942

query I rowsort
SELECT ALL - 59 * - 84 AS col2
----
4956

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT - + NULLIF ( + + ( 86 ), + COUNT( * ) + + - 89 * + AVG ( ALL - 53 ) - + 82 ) + - 73 * 47 * - + 8
----
27362

skipif mysql # not compatible
query I rowsort label-3121
SELECT - + NULLIF ( + + ( 86 ), + COUNT ( * ) + + - 89 * + AVG ( ALL - 53 ) - + 82 ) + - 73 * 47 * - + 8
----
27362

query I rowsort
SELECT DISTINCT - 15 * 66
----
-990

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

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

query II rowsort
SELECT ALL 14, 28 * + 10 AS col0
----
14
280

query I rowsort
SELECT DISTINCT - 3 * 38 AS col2
----
-114

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3126
SELECT 95 DIV - CAST( 6 AS SIGNED ) col1, 80 * + 18 + + + 92 + + 39 AS col0
----
-15
1571

skipif mysql # not compatible
query II rowsort label-3126
SELECT 95 / - CAST ( 6 AS INTEGER ) col1, 80 * + 18 + + + 92 + + 39 AS col0
----
-15
1571

query I rowsort
SELECT 1 + + 38 - + - 96 + + 72 * + 34 AS col2
----
2583

query I rowsort
SELECT ( + 12 ) + + 8
----
20

query II rowsort
SELECT 42 col2, COALESCE ( - 50, + - 41, + 49 ) col1
----
42
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3130
SELECT 85 DIV - + COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-3130
SELECT 85 / - + COUNT ( * ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT ALL - 85 + + COUNT( + + 90 ) + + CASE 61 WHEN - COUNT( * ) + + 33 + - - COALESCE ( - ( - ( + 54 ) ), - - SUM( - 18 ) * + NULLIF ( + 70, - 53 / - 18 ), - 62 + + - 19 - 79 * + 47 ) + - 56 * + 26 * 67 THEN - + 40 ELSE NULL END * + - ( - NULLIF ( + 40, COUNT( * ) * 26 ) ) * - + NULLIF ( COALESCE ( - MIN( - 42 ), + 12 / 32 ), + 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL - 85 + + COUNT ( + + 90 ) + + CASE 61 WHEN - COUNT ( * ) + + 33 + - - COALESCE ( - ( - ( + 54 ) ), - - SUM ( - 18 ) * + NULLIF ( + 70, - 53 / - 18 ), - 62 + + - 19 - 79 * + 47 ) + - 56 * + 26 * 67 THEN - + 40 ELSE NULL END * + - ( - NULLIF ( + 40, COUNT ( * ) * 26 ) ) * - + NULLIF ( COALESCE ( - MIN ( - 42 ), + 12 / 32 ), + 86 )
----
NULL

query I rowsort
SELECT DISTINCT + 31 + + + CASE 75 WHEN - + 86 THEN 88 * 77 END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3134
SELECT ALL + 13 + + - 38 DIV COUNT( * ) AS col0, 16 DIV - 51 AS col1
----
-25
0

skipif mysql # not compatible
query II rowsort label-3134
SELECT ALL + 13 + + - 38 / COUNT ( * ) AS col0, 16 / - 51 AS col1
----
-25
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3135
SELECT COUNT( * ) DIV - ( - 49 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3135
SELECT COUNT ( * ) / - ( - 49 ) AS col0
----
0

query II rowsort
SELECT + 1 AS col0, - 18 * + 50 + - 86 AS col0
----
1
-986

query II rowsort
SELECT ALL - 65 AS col0, 27 col2
----
-65
27

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

skipif mysql # not compatible
query I rowsort label-3138
SELECT COUNT ( * ) / + - 71 AS col1
----
0

query II rowsort
SELECT 93 AS col1, 73
----
93
73

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3141
SELECT + + COUNT( * ), COALESCE ( ( - COALESCE ( - - 11, + COUNT( * ) ) ), - 81 DIV + 85 ) * - 17 AS col2
----
1
187

skipif mysql # not compatible
query II rowsort label-3141
SELECT + + COUNT ( * ), COALESCE ( ( - COALESCE ( - - 11, + COUNT ( * ) ) ), - 81 / + 85 ) * - 17 AS col2
----
1
187

query I rowsort
SELECT 77 + + 99 * 93 * COALESCE ( - 9, - + NULLIF ( - 58, + 68 * + COALESCE ( 94, - + 47 ) ) * + - 35 * + 73 )
----
-82786

query II rowsort
SELECT DISTINCT - 21, 5 AS col1
----
-21
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT DISTINCT - - 75 * - + 57 * - SUM( - + 76 ) AS col2
----
-324900

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT - - 75 * - + 57 * - SUM ( - + 76 ) AS col2
----
-324900

query II rowsort
SELECT + 11 AS col0, 38 + + - 73
----
11
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT + 25 * COUNT( DISTINCT ( + 37 ) ) + - 97 + MAX( ALL - 40 ) + + - 19 * - + 1
----
-93

skipif mysql # not compatible
query I rowsort label-3146
SELECT + 25 * COUNT ( DISTINCT ( + 37 ) ) + - 97 + MAX ( ALL - 40 ) + + - 19 * - + 1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT - 3 * + ( 14 ) * - COUNT( * ) - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-3147
SELECT - 3 * + ( 14 ) * - COUNT ( * ) - COUNT ( * )
----
41

query I rowsort
SELECT DISTINCT - - ( + 59 ) AS col0
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT ALL - + 33 - ( - - COUNT( * ) ) * - 19 - - COUNT( * ) * + + COUNT( * ) + COUNT( * ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL - + 33 - ( - - COUNT ( * ) ) * - 19 - - COUNT ( * ) * + + COUNT ( * ) + COUNT ( * ) col0
----
-12

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

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

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

skipif mysql # not compatible
query I rowsort label-3152
SELECT CAST ( NULL AS INTEGER ) * CAST ( + 48 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3153
SELECT ALL - NULLIF ( MIN( + 33 ), + 98 + + CAST( 79 AS SIGNED ) + COUNT( ALL + 77 ) + + 65 ), - 73 AS col1
----
-33
-73

skipif mysql # not compatible
query II rowsort label-3153
SELECT ALL - NULLIF ( MIN ( + 33 ), + 98 + + CAST ( 79 AS INTEGER ) + COUNT ( ALL + 77 ) + + 65 ), - 73 AS col1
----
-33
-73

query I rowsort
SELECT 18 * 70
----
1260

query I rowsort
SELECT 86 * 51 * 65 AS col0
----
285090

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3157
SELECT ( + + 13 ) DIV + 25 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3157
SELECT ( + + 13 ) / + 25 + - COUNT ( * )
----
-1

query I rowsort
SELECT 2 * 58 AS col0
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT 82 - + + CAST( NULL AS SIGNED ) * - 84 + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT 82 - + + CAST ( NULL AS INTEGER ) * - 84 + - 63
----
NULL

query I rowsort
SELECT DISTINCT - 72 * 31
----
-2232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT ALL - 54 + - CAST( + 91 AS SIGNED ) AS col0
----
-145

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL - 54 + - CAST ( + 91 AS INTEGER ) AS col0
----
-145

query I rowsort
SELECT 1 * 22 AS col2
----
22

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

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

query I rowsort
SELECT ALL - 54 + 83 AS col2
----
29

query I rowsort
SELECT 91 + + 57 AS col2
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3166
SELECT 26 - + CAST( + 79 AS SIGNED ) + - - ( - 69 ) AS col1, - SUM( DISTINCT 29 ) + 56 * + SUM( ALL + + ( - 10 ) ) * + 35 + - CASE + 94 WHEN - + 26 - + 41 THEN - 1 WHEN + - 12 THEN - 61 + + - COALESCE ( - - 36, 84, 39 * 12 ) END * + 0 + 93 col1
----
-122
NULL

skipif mysql # not compatible
query II rowsort label-3166
SELECT 26 - + CAST ( + 79 AS INTEGER ) + - - ( - 69 ) AS col1, - SUM ( DISTINCT 29 ) + 56 * + SUM ( ALL + + ( - 10 ) ) * + 35 + - CASE + 94 WHEN - + 26 - + 41 THEN - 1 WHEN + - 12 THEN - 61 + + - COALESCE ( - - 36, 84, 39 * 12 ) END * + 0 + 93 col1
----
-122
NULL

query II rowsort
SELECT 16 * + + 56, 7 AS col1
----
896
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ALL + 44 * - + 9 * COUNT( * )
----
-396

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL + 44 * - + 9 * COUNT ( * )
----
-396

query II rowsort
SELECT ALL - 35 * - - 42 * + + 13 - - 41, 18 + + 59 AS col0
----
-19069
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT 92 * - - 38 * COUNT( * ) AS col0
----
3496

skipif mysql # not compatible
query I rowsort label-3171
SELECT 92 * - - 38 * COUNT ( * ) AS col0
----
3496

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ALL - COUNT( - 79 ) * 65 * - 67 - - - 31 + 71
----
4395

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL - COUNT ( - 79 ) * 65 * - 67 - - - 31 + 71
----
4395

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

skipif mysql # not compatible
query I rowsort label-3173
SELECT - MAX ( ALL 72 )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-3174
SELECT + 1 + - + 0 DIV 32 col2
----
1

skipif mysql # not compatible
query I rowsort label-3174
SELECT + 1 + - + 0 / 32 col2
----
1

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3176
SELECT + 40 * + - 73 + - - 37 - CASE 69 WHEN - CAST( ( 3 ) AS DECIMAL ) * 52 * - 31 + - - 14 * 97 + 59 THEN + ( - 56 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT + 40 * + - 73 + - - 37 - CASE 69 WHEN - CAST ( ( 3 ) AS REAL ) * 52 * - 31 + - - 14 * 97 + 59 THEN + ( - 56 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 14 + + + 66 col1
----
80

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

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

query I rowsort
SELECT DISTINCT - - 14 * + 51 AS col1
----
714

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3180
SELECT + CASE + CAST( NULL AS DECIMAL ) WHEN 69 / 35 THEN MIN( + 27 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT + CASE + CAST ( NULL AS REAL ) WHEN 69 / 35 THEN MIN ( + 27 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT + 81 + + COUNT( * ) col0
----
82

skipif mysql # not compatible
query I rowsort label-3181
SELECT + 81 + + COUNT ( * ) col0
----
82

query I rowsort
SELECT + - 59 + + 98 * + + 16
----
1509

query I rowsort
SELECT - COALESCE ( 83, + - CASE + + ( 11 ) WHEN 64 THEN + - 37 ELSE NULL END * 90 ) AS col0
----
-83

query I rowsort
SELECT DISTINCT 11 + 27 + 18 AS col1
----
56

query I rowsort
SELECT ALL 69 * + 4
----
276

onlyif mysql # aggregate syntax: 
query II rowsort label-3186
SELECT - 81 * + + SUM( - + 58 ) AS col0, 33 + - + 50 AS col1
----
4698
-17

skipif mysql # not compatible
query II rowsort label-3186
SELECT - 81 * + + SUM ( - + 58 ) AS col0, 33 + - + 50 AS col1
----
4698
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-3187
SELECT - COALESCE ( - 91, + + COUNT( * ) ) AS col2, 92 + NULLIF ( 53, + - COUNT( * ) )
----
91
145

skipif mysql # not compatible
query II rowsort label-3187
SELECT - COALESCE ( - 91, + + COUNT ( * ) ) AS col2, 92 + NULLIF ( 53, + - COUNT ( * ) )
----
91
145

query I rowsort
SELECT + 69 + - 64 - - 5 - 94 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL 33 * - 79 * + - COUNT( * )
----
2607

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL 33 * - 79 * + - COUNT ( * )
----
2607

query I rowsort
SELECT + 45 + - + 11
----
34

query I rowsort
SELECT - 21 + + 33 AS col2
----
12

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

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL + CAST ( + 23 AS INTEGER ) / + 54
----
0

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

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL MIN ( - - 81 )
----
81

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

skipif mysql # not compatible
query I rowsort label-3194
SELECT + CAST ( NULL AS REAL ) / 48 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT - 15 + + COUNT( * ) * COUNT( * ) * 21 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3195
SELECT - 15 + + COUNT ( * ) * COUNT ( * ) * 21 AS col2
----
6

query II rowsort
SELECT - 40, 70 * - COALESCE ( - 72, + 61 + 49 ) + 52 col1
----
-40
5092

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT ALL - ( - 44 ) - - - 30 + - 87 DIV 9 + 24 * 11 DIV 81 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL - ( - 44 ) - - - 30 + - 87 / 9 + 24 * 11 / 81 AS col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3199
SELECT - CASE + 83 WHEN + COUNT( * ) * 8 + 50 THEN NULL WHEN AVG ( DISTINCT - 9 ) * + + 67 + - 14 THEN - 8 * + 85 + + NULLIF ( 52, - - 11 + 83 + + - 64 ) * 65 - - COUNT( * ) * + 95 END + - + 41 AS col1, 92 + - 86 + - ( + 92 ) AS col1
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-3199
SELECT - CASE + 83 WHEN + COUNT ( * ) * 8 + 50 THEN NULL WHEN AVG ( DISTINCT - 9 ) * + + 67 + - 14 THEN - 8 * + 85 + + NULLIF ( 52, - - 11 + 83 + + - 64 ) * 65 - - COUNT ( * ) * + 95 END + - + 41 AS col1, 92 + - 86 + - ( + 92 ) AS col1
----
NULL
-86

query I rowsort
SELECT - 55 * - 38 AS col1
----
2090

query I rowsort
SELECT DISTINCT + + 66 * 42
----
2772

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

skipif mysql # not compatible
query I rowsort label-3202
SELECT - - 76 * COUNT ( ALL - + 39 ) + + 52 / - 67 AS col2
----
76

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

skipif mysql # not compatible
query I rowsort label-3203
SELECT - COUNT ( * ) * - 91 / COUNT ( * )
----
91

query I rowsort
SELECT + 94 * - 76 * + - 59
----
421496

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL 82 * + COALESCE ( COALESCE ( + 69, - 43 * - SUM( DISTINCT - 67 ) * 65 * - 1 + + 19 + + + 18 * + - 16 - 94, + - 29 ), - 73 ) * + 47 * 53 - + 90 * 99 AS col1
----
14085168

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL 82 * + COALESCE ( COALESCE ( + 69, - 43 * - SUM ( DISTINCT - 67 ) * 65 * - 1 + + 19 + + + 18 * + - 16 - 94, + - 29 ), - 73 ) * + 47 * 53 - + 90 * 99 AS col1
----
14085168

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT - + 49 + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3206
SELECT - + 49 + COUNT ( * ) AS col2
----
-48

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

query I rowsort
SELECT - 40 * - 52 AS col0
----
2080

query I rowsort
SELECT + NULLIF ( 89, + 13 / + 31 ) + - 31
----
58

query I rowsort
SELECT + + 50 * - + 92 * - + 32 * 98
----
14425600

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL + 76 * - SUM( DISTINCT + 20 ) * 68 + 56
----
-103304

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL + 76 * - SUM ( DISTINCT + 20 ) * 68 + 56
----
-103304

query I rowsort
SELECT + ( - 22 ) * - 76
----
1672

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( + - 30, 56 * + 9 * - 8 ) * 16 * + - 42 AS col0
----
20160

query I rowsort
SELECT ALL 78 * + 66 * + + 90 + 89
----
463409

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3218
SELECT DISTINCT 33 AS col0, + 13 DIV + 88 + + - 58 AS col2
----
33
-58

skipif mysql # not compatible
query II rowsort label-3218
SELECT DISTINCT 33 AS col0, + 13 / + 88 + + - 58 AS col2
----
33
-58

query I rowsort
SELECT - ( + - 95 ) AS col1
----
95

query I rowsort
SELECT + 38 * - - CASE - 62 WHEN - 54 + + + 66 THEN + 59 ELSE NULL END / 12
----
NULL

query I rowsort
SELECT + 56 - + 48 AS col0
----
8

query I rowsort
SELECT ALL ( + 28 ) - - ( 47 ) + 59 * - 26
----
-1459

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT SUM( ALL + + 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT SUM ( ALL + + 94 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT + - ( ( - + COUNT( * ) ) ) + - + 39 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3224
SELECT + - ( ( - + COUNT ( * ) ) ) + - + 39 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3225
SELECT - 56 - - + COALESCE ( - - COUNT( * ), + - COALESCE ( - 99, - ( - 27 ) ) + - COUNT( + 39 ) + + 20 * - 48 * - - CAST( NULL AS SIGNED ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3225
SELECT - 56 - - + COALESCE ( - - COUNT ( * ), + - COALESCE ( - 99, - ( - 27 ) ) + - COUNT ( + 39 ) + + 20 * - 48 * - - CAST ( NULL AS INTEGER ) ) AS col1
----
-55

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT + 9 / + 72 * - - 35 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT + 9 / + 72 * - - 35 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3228
SELECT - - 40 DIV + 44 + + + 76 + + - COUNT( * ) * - + 85 col0
----
161

skipif mysql # not compatible
query I rowsort label-3228
SELECT - - 40 / + 44 + + + 76 + + - COUNT ( * ) * - + 85 col0
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-3229
SELECT ALL + COUNT( * ) col0, - 11 + - 30
----
1
-41

skipif mysql # not compatible
query II rowsort label-3229
SELECT ALL + COUNT ( * ) col0, - 11 + - 30
----
1
-41

query I rowsort
SELECT ALL - - 26 + 98
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3231
SELECT ALL - + 5 AS col2, + 57 DIV + NULLIF ( - MIN( + 23 ), - + 27 ) col2
----
-5
-2

skipif mysql # not compatible
query II rowsort label-3231
SELECT ALL - + 5 AS col2, + 57 / + NULLIF ( - MIN ( + 23 ), - + 27 ) col2
----
-5
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3232
SELECT + + MIN( DISTINCT + + 93 ) AS col1, 14 * + 60
----
93
840

skipif mysql # not compatible
query II rowsort label-3232
SELECT + + MIN ( DISTINCT + + 93 ) AS col1, 14 * + 60
----
93
840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3233
SELECT DISTINCT 14 + ( - 33 ) + + COALESCE ( + 85, + 97 DIV 25 + - 1, - 35 ) + 94 - + COUNT( * ) * COUNT( * ) * - + 95 DIV + 96 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT 14 + ( - 33 ) + + COALESCE ( + 85, + 97 / 25 + - 1, - 35 ) + 94 - + COUNT ( * ) * COUNT ( * ) * - + 95 / + 96 AS col2
----
160

query I rowsort
SELECT 45 * + 20 + - + 58 + - 21 * 41
----
-19

query I rowsort
SELECT ALL - 40 + + 2 + + + 84 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT DISTINCT + SUM( ALL - - 58 ) * + CASE WHEN NOT 12 BETWEEN NULL AND + 95 THEN - 52 / + AVG ( ALL + ( 14 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT + SUM ( ALL - - 58 ) * + CASE WHEN NOT 12 BETWEEN NULL AND + 95 THEN - 52 / + AVG ( ALL + ( 14 ) ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT CAST( 88 AS SIGNED ) * 19 AS col2
----
1672

skipif mysql # not compatible
query I rowsort label-3237
SELECT CAST ( 88 AS INTEGER ) * 19 AS col2
----
1672

query II rowsort
SELECT + + 16 AS col2, 45 * - 78
----
16
-3510

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3240
SELECT 62 + + + 9 + - 72 DIV - 4 + + + 74 AS col1
----
163

skipif mysql # not compatible
query I rowsort label-3240
SELECT 62 + + + 9 + - 72 / - 4 + + + 74 AS col1
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT - ( + + COUNT( + 57 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT - ( + + COUNT ( + 57 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3242
SELECT DISTINCT - 23, CAST( - 2 AS SIGNED ) + + 79 AS col0
----
-23
77

skipif mysql # not compatible
query II rowsort label-3242
SELECT DISTINCT - 23, CAST ( - 2 AS INTEGER ) + + 79 AS col0
----
-23
77

query I rowsort
SELECT ALL 16 * + 75 AS col2
----
1200

query I rowsort
SELECT DISTINCT - 13 * 12
----
-156

query I rowsort
SELECT NULLIF ( + 5, + 94 ) - + 22
----
-17

query I rowsort
SELECT DISTINCT + 50 * 16 AS col1
----
800

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT 1 + + - SUM( DISTINCT - 22 ) * - 77 AS col0
----
-1693

skipif mysql # not compatible
query I rowsort label-3247
SELECT 1 + + - SUM ( DISTINCT - 22 ) * - 77 AS col0
----
-1693

query I rowsort
SELECT 36 + ( - + 55 )
----
-19

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

skipif mysql # not compatible
query I rowsort label-3249
SELECT COUNT ( * ) + + + COUNT ( * ) / 30 AS col0
----
1

query I rowsort
SELECT ( - + 21 ) + + - 42 + + 6
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-3251
SELECT COUNT( * ) + - 45 col1, 57 AS col0
----
-44
57

skipif mysql # not compatible
query II rowsort label-3251
SELECT COUNT ( * ) + - 45 col1, 57 AS col0
----
-44
57

query I rowsort
SELECT 55 * - + 6
----
-330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3253
SELECT MIN( DISTINCT + 64 ) + + SUM( + 67 ) - + 62 + 95 * - 23 DIV - + COUNT( DISTINCT + ( 25 ) )
----
2254

skipif mysql # not compatible
query I rowsort label-3253
SELECT MIN ( DISTINCT + 64 ) + + SUM ( + 67 ) - + 62 + 95 * - 23 / - + COUNT ( DISTINCT + ( 25 ) )
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT ALL COUNT( * ) * - 94 * 80
----
-7520

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL COUNT ( * ) * - 94 * 80
----
-7520

query I rowsort
SELECT 38 * - 82 - + - 42
----
-3074

query I rowsort
SELECT ALL + 4 + 77 * + 37 - 80
----
2773

query II rowsort
SELECT ALL - 93 * + - 29, 18 AS col0
----
2697
18

query I rowsort
SELECT ALL - 35 + - CASE + 29 WHEN - 70 THEN 73 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT ALL - 44 + - + NULLIF ( COUNT( * ), + COUNT( * ) ) * + ( COUNT( 86 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL - 44 + - + NULLIF ( COUNT ( * ), + COUNT ( * ) ) * + ( COUNT ( 86 ) ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3261
SELECT ALL COUNT( * ) + - CASE + MIN( + CAST( + ( 83 ) AS DECIMAL ) ) WHEN - 56 THEN 17 * + COUNT( * ) END * - 5 + + 82 + - + ( 79 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL COUNT ( * ) + - CASE + MIN ( + CAST ( + ( 83 ) AS REAL ) ) WHEN - 56 THEN 17 * + COUNT ( * ) END * - 5 + + 82 + - + ( 79 ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3262
SELECT - COUNT ( ALL + - 18 ) * + 73 AS col2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT ALL 39 DIV + 15 + + - 78
----
-76

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL 39 / + 15 + + - 78
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-3264
SELECT 87 * MAX( - - 93 ) AS col1, 50 col1
----
8091
50

skipif mysql # not compatible
query II rowsort label-3264
SELECT 87 * MAX ( - - 93 ) AS col1, 50 col1
----
8091
50

query I rowsort
SELECT DISTINCT - + 62 col1
----
-62

query I rowsort
SELECT ALL - - 7 + 71 + - + 97 * + - 4 * - 16 * - 34
----
211150

onlyif mysql # aggregate syntax: 
query II rowsort label-3267
SELECT + COUNT( * ) * CASE - 17 WHEN + 79 THEN - - 54 + - NULLIF ( + 24, - + SUM( ALL - + NULLIF ( - ( - 9 ), - + 94 * + + 67 ) ) + COUNT( * ) ) ELSE + COUNT( * ) * + 30 * 15 END - + - 29, 70 AS col1
----
479
70

skipif mysql # not compatible
query II rowsort label-3267
SELECT + COUNT ( * ) * CASE - 17 WHEN + 79 THEN - - 54 + - NULLIF ( + 24, - + SUM ( ALL - + NULLIF ( - ( - 9 ), - + 94 * + + 67 ) ) + COUNT ( * ) ) ELSE + COUNT ( * ) * + 30 * 15 END - + - 29, 70 AS col1
----
479
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3268
SELECT 48 * NULLIF ( + - ( + 29 ), 39 ) + + 36 - + CAST( + 51 AS SIGNED ) AS col2
----
-1407

skipif mysql # not compatible
query I rowsort label-3268
SELECT 48 * NULLIF ( + - ( + 29 ), 39 ) + + 36 - + CAST ( + 51 AS INTEGER ) AS col2
----
-1407

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT DISTINCT - CASE + - 56 WHEN 84 THEN NULL WHEN - 22 * + + 15 * - 97 * COUNT( ALL - + 37 ) THEN + AVG ( DISTINCT + + 42 ) WHEN + - 1 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT - CASE + - 56 WHEN 84 THEN NULL WHEN - 22 * + + 15 * - 97 * COUNT ( ALL - + 37 ) THEN + AVG ( DISTINCT + + 42 ) WHEN + - 1 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT 85 * + - MAX( DISTINCT - 92 ) AS col2
----
7820

skipif mysql # not compatible
query I rowsort label-3270
SELECT 85 * + - MAX ( DISTINCT - 92 ) AS col2
----
7820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3271
SELECT 20 * + - COALESCE ( + - 25, - CAST( - 8 AS SIGNED ) * + - 6 ) col1
----
500

skipif mysql # not compatible
query I rowsort label-3271
SELECT 20 * + - COALESCE ( + - 25, - CAST ( - 8 AS INTEGER ) * + - 6 ) col1
----
500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3272
SELECT ALL - 27 * CAST( - - 44 AS SIGNED ) * CAST( NULL AS SIGNED ) / - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL - 27 * CAST ( - - 44 AS INTEGER ) * CAST ( NULL AS INTEGER ) / - - 49
----
NULL

query II rowsort
SELECT + 20 * - + 65 + + 97 AS col2, 56
----
-1203
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3274
SELECT 36 + 48 DIV - 59 AS col0, SUM( ALL - 26 ) * + - 30 + 41 + COUNT( - 38 ) col1
----
36
822

skipif mysql # not compatible
query II rowsort label-3274
SELECT 36 + 48 / - 59 AS col0, SUM ( ALL - 26 ) * + - 30 + 41 + COUNT ( - 38 ) col1
----
36
822

onlyif mysql # aggregate syntax: 
query III rowsort label-3275
SELECT 36 * COUNT( * ) - 97 AS col2, 94 AS col1, 16 * + - 53 * + 90 * + 60 + - 8 AS col2
----
-61
94
-4579208

skipif mysql # not compatible
query III rowsort label-3275
SELECT 36 * COUNT ( * ) - 97 AS col2, 94 AS col1, 16 * + - 53 * + 90 * + 60 + - 8 AS col2
----
-61
94
-4579208

query I rowsort
SELECT 10 * + 29 AS col0
----
290

query I rowsort
SELECT 46 + + 20
----
66

query I rowsort
SELECT 29 + + 60
----
89

query I rowsort
SELECT ALL - 64 * 10
----
-640

query I rowsort
SELECT 36 * + 99 AS col1
----
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL SUM( ALL - NULLIF ( - - 17, 19 ) ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL SUM ( ALL - NULLIF ( - - 17, 19 ) ) AS col0
----
-17

query II rowsort
SELECT DISTINCT 62 * ( - 62 ) AS col1, 64 AS col0
----
-3844
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3283
SELECT - 44 * + - ( COUNT( 17 ) ) - + NULLIF ( 21, SUM( ALL CAST( NULL AS SIGNED ) ) + - - 45 ) * - + CASE - 72 WHEN + 74 * 5 THEN NULL WHEN - - ( + MAX( 50 ) ) + - 31 THEN + 85 * - COUNT( * ) * - - 62 * 79 ELSE - - 8 * - 9 - + 89 + 40 END + - + 79
----
-2576

skipif mysql # not compatible
query I rowsort label-3283
SELECT - 44 * + - ( COUNT ( 17 ) ) - + NULLIF ( 21, SUM ( ALL CAST ( NULL AS INTEGER ) ) + - - 45 ) * - + CASE - 72 WHEN + 74 * 5 THEN NULL WHEN - - ( + MAX ( 50 ) ) + - 31 THEN + 85 * - COUNT ( * ) * - - 62 * 79 ELSE - - 8 * - 9 - + 89 + 40 END + - + 79
----
-2576

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

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

query I rowsort
SELECT 26 + - 81
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3286
SELECT CASE CAST( NULL AS SIGNED ) WHEN CAST( + 35 AS DECIMAL ) THEN NULL WHEN + - CAST( - 12 AS SIGNED ) THEN + NULLIF ( + 98, + 43 / - ( + CASE - - 3 WHEN - 4 THEN NULL WHEN 64 THEN NULL ELSE - 33 * 97 * + 43 + 8 - + COUNT( * ) END ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT CASE CAST ( NULL AS INTEGER ) WHEN CAST ( + 35 AS REAL ) THEN NULL WHEN + - CAST ( - 12 AS INTEGER ) THEN + NULLIF ( + 98, + 43 / - ( + CASE - - 3 WHEN - 4 THEN NULL WHEN 64 THEN NULL ELSE - 33 * 97 * + 43 + 8 - + COUNT ( * ) END ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT + 51 / CAST( NULL AS SIGNED ) / - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT + 51 / CAST ( NULL AS INTEGER ) / - + 26
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ALL + + 18 * ( - - 30 ) + + SUM( DISTINCT + - 24 )
----
516

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL + + 18 * ( - - 30 ) + + SUM ( DISTINCT + - 24 )
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL - + SUM( DISTINCT + - 38 ) + 19 - - 81 AS col0
----
138

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL - + SUM ( DISTINCT + - 38 ) + 19 - - 81 AS col0
----
138

query I rowsort
SELECT DISTINCT + 6 + - 59 + + 49 + - + 11 + + 46 * + 55 * 4 AS col0
----
10105

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

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

query I rowsort
SELECT + 31 * + 71
----
2201

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT - 71 + + + CASE - COALESCE ( + SUM( DISTINCT 25 ), - COUNT( * ) / + 98 ) WHEN 62 THEN + NULLIF ( + 91, - 96 ) END * + - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT - 71 + + + CASE - COALESCE ( + SUM ( DISTINCT 25 ), - COUNT ( * ) / + 98 ) WHEN 62 THEN + NULLIF ( + 91, - 96 ) END * + - 70 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3295
SELECT - NULLIF ( CAST( NULL AS DECIMAL ), + CASE COUNT( * ) WHEN - - ( - CASE + AVG ( 47 ) WHEN - 61 + 62 THEN NULL ELSE + 92 END ) THEN + 53 WHEN - ( 98 ) * MIN( DISTINCT - + 62 ) + 98 + - CAST( NULL AS SIGNED ) - 62 THEN NULL ELSE NULL END / + 59 * - MAX( + - 45 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3295
SELECT - NULLIF ( CAST ( NULL AS REAL ), + CASE COUNT ( * ) WHEN - - ( - CASE + AVG ( 47 ) WHEN - 61 + 62 THEN NULL ELSE + 92 END ) THEN + 53 WHEN - ( 98 ) * MIN ( DISTINCT - + 62 ) + 98 + - CAST ( NULL AS INTEGER ) - 62 THEN NULL ELSE NULL END / + 59 * - MAX ( + - 45 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT ALL NULLIF ( - 99, 61 * + + MIN( ALL + 17 ) ) + + + COALESCE ( + 44, - - 84 ) * - 82 AS col0
----
-3707

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL NULLIF ( - 99, 61 * + + MIN ( ALL + 17 ) ) + + + COALESCE ( + 44, - - 84 ) * - 82 AS col0
----
-3707

onlyif mysql # aggregate syntax: 
query II rowsort label-3297
SELECT - 84 + - MIN( ALL 54 ) AS col2, 6 * 8 + + COUNT( * ) AS col1
----
-138
49

skipif mysql # not compatible
query II rowsort label-3297
SELECT - 84 + - MIN ( ALL 54 ) AS col2, 6 * 8 + + COUNT ( * ) AS col1
----
-138
49

query II rowsort
SELECT + - ( + 85 ) - + + 21, 6 * 11 col1
----
-106
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT COALESCE ( + 91, 21 + - 59 - - ( + + COUNT( * ) ) + - 98 * - 90 * - 13 + 85 * COUNT( * ) * - 3 * - + 44, + 14 * + 41 * 94 * + COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-3299
SELECT COALESCE ( + 91, 21 + - 59 - - ( + + COUNT ( * ) ) + - 98 * - 90 * - 13 + 85 * COUNT ( * ) * - 3 * - + 44, + 14 * + 41 * 94 * + COUNT ( * ) )
----
91

query II rowsort
SELECT 73 AS col1, 49 * + 18 AS col0
----
73
882

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL - + ( + COUNT( * ) ) * - - CASE + 53 WHEN - 78 * + 91 THEN 54 WHEN 45 THEN NULL END - 99 - - 97 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL - + ( + COUNT ( * ) ) * - - CASE + 53 WHEN - 78 * + 91 THEN 54 WHEN 45 THEN NULL END - 99 - - 97 col0
----
NULL

query I rowsort
SELECT DISTINCT - 99 * - 53
----
5247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3303
SELECT ALL - + CAST( - 55 AS SIGNED ) * + SUM( DISTINCT - 67 )
----
-3685

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL - + CAST ( - 55 AS INTEGER ) * + SUM ( DISTINCT - 67 )
----
-3685

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT COUNT( * ) * - 7 + + + COUNT( * ) - - 46 col1
----
40

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT COUNT ( * ) * - 7 + + + COUNT ( * ) - - 46 col1
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT - COUNT( * ) * + 95 + - 74 AS col0
----
-169

skipif mysql # not compatible
query I rowsort label-3306
SELECT - COUNT ( * ) * + 95 + - 74 AS col0
----
-169

query I rowsort
SELECT CASE 28 WHEN + 80 THEN 22 + 55 WHEN 60 THEN NULL END col1
----
NULL

query I rowsort
SELECT + 75 * + - 34
----
-2550

onlyif mysql # DIV for integer division: 
query I rowsort label-3309
SELECT + 63 DIV + 46 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3309
SELECT + 63 / + 46 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT - COUNT( - - 14 ) * - - 15 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-3310
SELECT - COUNT ( - - 14 ) * - - 15 AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3311
SELECT DISTINCT COALESCE ( 41, 33, 3, 37 ) DIV - ( - 53 )
----
0

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT COALESCE ( 41, 33, 3, 37 ) / - ( - 53 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3312
SELECT ALL 97 * 44, CAST( + + 28 AS SIGNED ) AS col1
----
4268
28

skipif mysql # not compatible
query II rowsort label-3312
SELECT ALL 97 * 44, CAST ( + + 28 AS INTEGER ) AS col1
----
4268
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3313
SELECT DISTINCT + MIN( DISTINCT + 99 ) col0, COUNT( * ) * 21 DIV + 25 * - 28 * 89 * 59
----
99
0

skipif mysql # not compatible
query II rowsort label-3313
SELECT DISTINCT + MIN ( DISTINCT + 99 ) col0, COUNT ( * ) * 21 / + 25 * - 28 * 89 * 59
----
99
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3314
SELECT + 21 + - 23 - + + 39 + 97 * - + 74 AS col0, CAST( NULL AS SIGNED ) col1
----
-7219
NULL

skipif mysql # not compatible
query II rowsort label-3314
SELECT + 21 + - 23 - + + 39 + 97 * - + 74 AS col0, CAST ( NULL AS INTEGER ) col1
----
-7219
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3315
SELECT + CASE - 79 WHEN - 30 THEN NULL WHEN + CAST( + - 45 AS SIGNED ) + + 14 / - 4 THEN - + 5 ELSE + - 92 END AS col1, - COUNT( * )
----
-92
-1

skipif mysql # not compatible
query II rowsort label-3315
SELECT + CASE - 79 WHEN - 30 THEN NULL WHEN + CAST ( + - 45 AS INTEGER ) + + 14 / - 4 THEN - + 5 ELSE + - 92 END AS col1, - COUNT ( * )
----
-92
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT ALL + 75 * 81 * ( - 37 ) + - COUNT( * ) AS col1
----
-224776

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL + 75 * 81 * ( - 37 ) + - COUNT ( * ) AS col1
----
-224776

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT - 75 + + 38 * COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-3318
SELECT - 75 + + 38 * COUNT ( * )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3319
SELECT ALL CAST( + 83 AS SIGNED ) + + 53 * 44 AS col2
----
2415

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL CAST ( + 83 AS INTEGER ) + + 53 * 44 AS col2
----
2415

query I rowsort
SELECT - 2 + + 80 AS col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3321
SELECT DISTINCT + NULLIF ( + COUNT( * ), - CAST( - 13 AS SIGNED ) ) DIV + 46 * + 89
----
0

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT + NULLIF ( + COUNT ( * ), - CAST ( - 13 AS INTEGER ) ) / + 46 * + 89
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3322
SELECT - + 22 * - 2 * 8 + + + 98, ( - - COUNT( + 34 ) ) - - - CAST( + ( - + 11 ) AS SIGNED ) col0
----
450
12

skipif mysql # not compatible
query II rowsort label-3322
SELECT - + 22 * - 2 * 8 + + + 98, ( - - COUNT ( + 34 ) ) - - - CAST ( + ( - + 11 ) AS INTEGER ) col0
----
450
12

query I rowsort
SELECT - - 16 * - + 23 * + + 47
----
-17296

query I rowsort
SELECT DISTINCT + 11 * + + 3 AS col2
----
33

query I rowsort
SELECT - + 41 + 0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3326
SELECT DISTINCT - + 77 * + - COUNT( * ) - 83 + - MAX( DISTINCT + ( - + 0 ) ) * + + 54 AS col1, - 75 AS col2
----
-6
-75

skipif mysql # not compatible
query II rowsort label-3326
SELECT DISTINCT - + 77 * + - COUNT ( * ) - 83 + - MAX ( DISTINCT + ( - + 0 ) ) * + + 54 AS col1, - 75 AS col2
----
-6
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT ALL + NULLIF ( + COUNT( * ), + + 90 ) * + + 71 - - 29
----
100

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL + NULLIF ( + COUNT ( * ), + + 90 ) * + + 71 - - 29
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-3328
SELECT DISTINCT - ( + 37 ) * + + MIN( DISTINCT - + 43 ), 88 AS col0
----
1591
88

skipif mysql # not compatible
query II rowsort label-3328
SELECT DISTINCT - ( + 37 ) * + + MIN ( DISTINCT - + 43 ), 88 AS col0
----
1591
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT ALL COALESCE ( 38, - - 43 + - COUNT( * ) + + NULLIF ( + + 91, - - MIN( ALL 13 ) ) * + COUNT( * ), - 26 )
----
38

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL COALESCE ( 38, - - 43 + - COUNT ( * ) + + NULLIF ( + + 91, - - MIN ( ALL 13 ) ) * + COUNT ( * ), - 26 )
----
38

query I rowsort
SELECT - + 89 + + + 42 + - 13 AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3331
SELECT DISTINCT + CAST( 66 AS SIGNED ) AS col1, + 74 * - 99 AS col0
----
66
-7326

skipif mysql # not compatible
query II rowsort label-3331
SELECT DISTINCT + CAST ( 66 AS INTEGER ) AS col1, + 74 * - 99 AS col0
----
66
-7326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3332
SELECT + - 15 * + 58 - - 78 - CAST( NULL AS SIGNED ) / - COUNT( CAST( NULL AS SIGNED ) ) * - ( - 50 ) + + 34 + - - CAST( NULL AS SIGNED ) / ( 41 ) * 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT + - 15 * + 58 - - 78 - CAST ( NULL AS INTEGER ) / - COUNT ( CAST ( NULL AS INTEGER ) ) * - ( - 50 ) + + 34 + - - CAST ( NULL AS INTEGER ) / ( 41 ) * 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT - COUNT( * ) * 80 - - + MAX( ALL 15 )
----
-65

skipif mysql # not compatible
query I rowsort label-3333
SELECT - COUNT ( * ) * 80 - - + MAX ( ALL 15 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ALL + CASE + COUNT( * ) WHEN - - 42 THEN NULL WHEN + - 4 THEN + ( - 64 ) * + 51 ELSE + - 28 + 67 * - 42 + + 77 END AS col1
----
-2765

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL + CASE + COUNT ( * ) WHEN - - 42 THEN NULL WHEN + - 4 THEN + ( - 64 ) * + 51 ELSE + - 28 + 67 * - 42 + + 77 END AS col1
----
-2765

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3335
SELECT + CASE 14 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - + 57 + + + 33 + + 87 END DIV - 21 - + + 45
----
-48

skipif mysql # not compatible
query I rowsort label-3335
SELECT + CASE 14 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - + 57 + + + 33 + + 87 END / - 21 - + + 45
----
-48

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

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

query I rowsort
SELECT + 93 + - 66 + + 96 * - - 89
----
8571

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT CASE + 61 WHEN 21 THEN + MAX( DISTINCT + 1 ) WHEN + 44 THEN - 45 + + 59 WHEN - + COUNT( * ) THEN NULL ELSE - - 73 END * - - 81 col2
----
5913

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT CASE + 61 WHEN 21 THEN + MAX ( DISTINCT + 1 ) WHEN + 44 THEN - 45 + + 59 WHEN - + COUNT ( * ) THEN NULL ELSE - - 73 END * - - 81 col2
----
5913

onlyif mysql # aggregate syntax: 
query II rowsort label-3339
SELECT ALL + ( + NULLIF ( + MAX( - + 0 ), + 16 ) ) AS col1, + 49 * + 73 * - 15 col2
----
0
-53655

skipif mysql # not compatible
query II rowsort label-3339
SELECT ALL + ( + NULLIF ( + MAX ( - + 0 ), + 16 ) ) AS col1, + 49 * + 73 * - 15 col2
----
0
-53655

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT + 57 + - 34 + + - 32 + - 66 + - 42 * 68 DIV - 75 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3340
SELECT + 57 + - 34 + + - 32 + - 66 + - 42 * 68 / - 75 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3341
SELECT DISTINCT + SUM( DISTINCT + 96 ) * - + 43 AS col2, + 27
----
-4128
27

skipif mysql # not compatible
query II rowsort label-3341
SELECT DISTINCT + SUM ( DISTINCT + 96 ) * - + 43 AS col2, + 27
----
-4128
27

query I rowsort
SELECT ( - - 12 ) col2
----
12

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

skipif mysql # not compatible
query II rowsort label-3343
SELECT ALL ( COUNT ( * ) ) * 44 AS col2, 32
----
44
32

query I rowsort
SELECT - 21 * 23 col2
----
-483

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3345
SELECT - 80 + ( - + COALESCE ( COUNT( * ), - - ( 56 ) * - 76 ) ) + CAST( NULL AS DECIMAL ) * 32 + ( + 26 ) * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT - 80 + ( - + COALESCE ( COUNT ( * ), - - ( 56 ) * - 76 ) ) + CAST ( NULL AS REAL ) * 32 + ( + 26 ) * - 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT DISTINCT + COUNT( * ) * ( 54 ) * 89 + + SUM( DISTINCT - 93 ) + + COUNT( * ) + + 71
----
4785

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT + COUNT ( * ) * ( 54 ) * 89 + + SUM ( DISTINCT - 93 ) + + COUNT ( * ) + + 71
----
4785

onlyif mysql # aggregate syntax: 
query II rowsort label-3347
SELECT - 73 * + + COUNT( * ) + - 73 * 7 - + + 49, + 22 + - 30 + + 22 col2
----
-633
14

skipif mysql # not compatible
query II rowsort label-3347
SELECT - 73 * + + COUNT ( * ) + - 73 * 7 - + + 49, + 22 + - 30 + + 22 col2
----
-633
14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3348
SELECT + ( CASE - 0 WHEN - 48 THEN NULL ELSE + 43 * COUNT( * ) END ) + + 22 + - 31 + + CAST( + CASE - - 63 WHEN + 27 * - 97 + + NULLIF ( - + 55, - 31 ) * - COUNT( * ) THEN + 92 ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT + ( CASE - 0 WHEN - 48 THEN NULL ELSE + 43 * COUNT ( * ) END ) + + 22 + - 31 + + CAST ( + CASE - - 63 WHEN + 27 * - 97 + + NULLIF ( - + 55, - 31 ) * - COUNT ( * ) THEN + 92 ELSE NULL END AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT ALL 36 * 7 + + CAST( - 82 AS SIGNED ) * 82 col1
----
-6472

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL 36 * 7 + + CAST ( - 82 AS INTEGER ) * 82 col1
----
-6472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3350
SELECT DISTINCT 2 DIV - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT 2 / - COUNT ( * ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3351
SELECT DISTINCT CAST( NULL AS SIGNED ) + + SUM( ALL - 62 ) AS col0, + MAX( - CAST( NULL AS DECIMAL ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3351
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + SUM ( ALL - 62 ) AS col0, + MAX ( - CAST ( NULL AS REAL ) )
----
NULL
NULL

query I rowsort
SELECT ALL 37 + 77 col1
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-3353
SELECT 61 DIV - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3353
SELECT 61 / - 95 AS col1
----
0

query I rowsort
SELECT ALL 49 + + 78
----
127

query I rowsort
SELECT ALL + + 55 + + 54 col1
----
109

query I rowsort
SELECT DISTINCT 65 * + 55 * + 90 * + 21
----
6756750

query I rowsort
SELECT + 39 - - 41 * 98 AS col2
----
4057

onlyif mysql # aggregate syntax: 
query II rowsort label-3358
SELECT 47 + - - 28 * COUNT( * ) AS col1, 76 - - ( 97 ) col1
----
75
173

skipif mysql # not compatible
query II rowsort label-3358
SELECT 47 + - - 28 * COUNT ( * ) AS col1, 76 - - ( 97 ) col1
----
75
173

query I rowsort
SELECT - 22 * + + 82 + 99 * - 99 AS col1
----
-11605

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL 92 * + + 39 + + 49 * + COUNT( * ) + + COUNT( * ) col0
----
3638

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL 92 * + + 39 + + 49 * + COUNT ( * ) + + COUNT ( * ) col0
----
3638

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL 49 * COUNT( * ) + 39
----
88

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL 49 * COUNT ( * ) + 39
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL + COALESCE ( - 87, - 36 - + 57 - - 15 + - COUNT( * ) + - 66 ) - - NULLIF ( - MAX( - + 2 ), 12 + + NULLIF ( - COUNT( * ), + 0 * + + 89 + + - AVG ( DISTINCT 52 ) ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + COALESCE ( - 87, - 36 - + 57 - - 15 + - COUNT ( * ) + - 66 ) - - NULLIF ( - MAX ( - + 2 ), 12 + + NULLIF ( - COUNT ( * ), + 0 * + + 89 + + - AVG ( DISTINCT 52 ) ) ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT 62 + NULLIF ( + 57, + SUM( - + ( 57 ) ) ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-3363
SELECT 62 + NULLIF ( + 57, + SUM ( - + ( 57 ) ) ) AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ALL + - 87 * - ( + MIN( DISTINCT - 81 ) ) AS col0
----
-7047

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL + - 87 * - ( + MIN ( DISTINCT - 81 ) ) AS col0
----
-7047

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3365
SELECT DISTINCT + - SUM( 5 ) DIV + - 33 AS col0, - 67
----
0
-67

skipif mysql # not compatible
query II rowsort label-3365
SELECT DISTINCT + - SUM ( 5 ) / + - 33 AS col0, - 67
----
0
-67

query I rowsort
SELECT 95 + + ( + + 47 ) * + - COALESCE ( - 32, + + 11 * + 36, 51 * + 70 )
----
1599

query I rowsort
SELECT ALL - 5 * + 23 col1
----
-115

query I rowsort
SELECT 41 + + 52 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT 85 - + COALESCE ( + - 57, - 28 * COUNT( * ), + 66 ) * + 19 * - - MIN( + 1 ) AS col2
----
1168

skipif mysql # not compatible
query I rowsort label-3369
SELECT 85 - + COALESCE ( + - 57, - 28 * COUNT ( * ), + 66 ) * + 19 * - - MIN ( + 1 ) AS col2
----
1168

query II rowsort
SELECT ALL - - 95 * - 8 * + 5, 80 col2
----
-3800
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3371
SELECT COUNT( DISTINCT 23 ) DIV 36 * - 96
----
0

skipif mysql # not compatible
query I rowsort label-3371
SELECT COUNT ( DISTINCT 23 ) / 36 * - 96
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3372
SELECT 4 + + 30 * - - MIN( - 47 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT 4 + + 30 * - - MIN ( - 47 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 39 - 68
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT ALL + NULLIF ( - COALESCE ( ( - + 69 ), + + ( - MAX( ALL + 21 ) ) ), + - 57 ) * + 22 + MAX( - 30 )
----
1488

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL + NULLIF ( - COALESCE ( ( - + 69 ), + + ( - MAX ( ALL + 21 ) ) ), + - 57 ) * + 22 + MAX ( - 30 )
----
1488

query I rowsort
SELECT 10 * + 97
----
970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3376
SELECT DISTINCT + COALESCE ( + - 54, + NULLIF ( 3, - 62 / + - 51 - - + 88 ), + 26 * + CAST( + 14 AS SIGNED ) ) * - COUNT( - 15 )
----
54

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT + COALESCE ( + - 54, + NULLIF ( 3, - 62 / + - 51 - - + 88 ), + 26 * + CAST ( + 14 AS INTEGER ) ) * - COUNT ( - 15 )
----
54

onlyif mysql # DIV for integer division: 
query III rowsort label-3377
SELECT ALL + 77 + + 1 AS col2, 31 DIV + + 92, 90 + - 36 * 66 AS col2
----
78
0
-2286

skipif mysql # not compatible
query III rowsort label-3377
SELECT ALL + 77 + + 1 AS col2, 31 / + + 92, 90 + - 36 * 66 AS col2
----
78
0
-2286

query I rowsort
SELECT 29 + - + 14 AS col2
----
15

query I rowsort
SELECT ALL + 5 * + ( COALESCE ( + - 32, ( 78 ) ) ) col2
----
-160

query I rowsort
SELECT ALL + ( 23 ) + 28
----
51

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

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

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

skipif mysql # not compatible
query I rowsort label-3382
SELECT - COUNT ( * ) / - COUNT ( * ) + + - 8
----
-7

query I rowsort
SELECT DISTINCT + 60 + 70 + 98
----
228

query I rowsort
SELECT ( - 43 ) + + 73 AS col2
----
30

query II rowsort
SELECT 39 AS col0, 61 * + 62 AS col0
----
39
3782

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

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

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL 61 + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT 34 * + - ( - 44 ) + - 54 + 90 DIV - 92 * - - 59
----
1442

skipif mysql # not compatible
query I rowsort label-3388
SELECT 34 * + - ( - 44 ) + - 54 + 90 / - 92 * - - 59
----
1442

query II rowsort
SELECT DISTINCT - CASE - 83 WHEN 10 THEN - 87 + 56 END + - 79 AS col1, 30 * - 41 * 80
----
NULL
-98400

query I rowsort
SELECT ALL - 43 * - 75 * - 84 AS col2
----
-270900

query I rowsort
SELECT ALL 31 - - - 19 AS col0
----
12

query III rowsort
SELECT ALL - ( - 82 ), - 74 + 22 AS col1, + 18 AS col1
----
82
-52
18

query II rowsort
SELECT ALL - - 54 AS col0, + 58 col2
----
54
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3394
SELECT 69 + 3 + + COUNT( - ( 22 ) ) * + - ( + + COALESCE ( + - 26, + 38, - + 26 * + 96 DIV + - SUM( + 55 ) * - - MAX( - 43 ) + - + 56 ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3394
SELECT 69 + 3 + + COUNT ( - ( 22 ) ) * + - ( + + COALESCE ( + - 26, + 38, - + 26 * + 96 / + - SUM ( + 55 ) * - - MAX ( - 43 ) + - + 56 ) ) AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3395
SELECT - 93 - COALESCE ( + 25, - 5 ) - - 18 * - COALESCE ( - 44, + - 70 DIV + - 10 )
----
674

skipif mysql # not compatible
query I rowsort label-3395
SELECT - 93 - COALESCE ( + 25, - 5 ) - - 18 * - COALESCE ( - 44, + - 70 / + - 10 )
----
674

query I rowsort
SELECT 28 * - 57 + + 67
----
-1529

query I rowsort
SELECT - 40 * + 86 + 19 AS col1
----
-3421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3398
SELECT AVG ( - 82 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT AVG ( - 82 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT ALL + 94 - + SUM( + + 46 )
----
48

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL + 94 - + SUM ( + + 46 )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3400
SELECT ALL SUM( DISTINCT - + ( + + 13 ) ) DIV 18 + - + 41
----
-41

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL SUM ( DISTINCT - + ( + + 13 ) ) / 18 + - + 41
----
-41

query II rowsort
SELECT 8 * + - 47 AS col0, ( + + 63 ) AS col1
----
-376
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3402
SELECT ALL 67 AS col1, 95 + - CASE COALESCE ( + 28, + + 39, + COUNT( * ) ) WHEN - 53 THEN - 10 * + + 46 + - 62 ELSE 49 END - - 30 col0
----
67
76

skipif mysql # not compatible
query II rowsort label-3402
SELECT ALL 67 AS col1, 95 + - CASE COALESCE ( + 28, + + 39, + COUNT ( * ) ) WHEN - 53 THEN - 10 * + + 46 + - 62 ELSE 49 END - - 30 col0
----
67
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3403
SELECT ALL + 44 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL + 44 / 84
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT CAST( NULL AS SIGNED ) + - 41 + + - 95 - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT CAST ( NULL AS INTEGER ) + - 41 + + - 95 - 60
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL - COUNT ( * ) / 20 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3406
SELECT + SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) + + + 33 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT + SUM ( DISTINCT + CAST ( NULL AS REAL ) ) + + + 33 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT ALL + 0 DIV + 42 - ( 25 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL + 0 / + 42 - ( 25 ) AS col2
----
-25

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

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT - SUM ( ( - 32 ) )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3409
SELECT ALL 12, MIN( - + 97 ) * + 65 + - 7 AS col0
----
12
-6312

skipif mysql # not compatible
query II rowsort label-3409
SELECT ALL 12, MIN ( - + 97 ) * + 65 + - 7 AS col0
----
12
-6312

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT ALL 83 * + 39 + COUNT( * )
----
3238

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL 83 * + 39 + COUNT ( * )
----
3238

query II rowsort
SELECT 36 AS col2, 33
----
36
33

query II rowsort
SELECT - - 10 AS col0, 79 AS col1
----
10
79

query I rowsort
SELECT - 36 + - ( + 61 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT 56 * + - 89 * - 62 * - + NULLIF ( - 61, 16 * - 14 + + 88 + - CAST( NULL AS SIGNED ) ) AS col1
----
18849488

skipif mysql # not compatible
query I rowsort label-3414
SELECT 56 * + - 89 * - 62 * - + NULLIF ( - 61, 16 * - 14 + + 88 + - CAST ( NULL AS INTEGER ) ) AS col1
----
18849488

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT COUNT( * ) + + + MIN( - 73 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-3415
SELECT COUNT ( * ) + + + MIN ( - 73 ) AS col0
----
-72

query II rowsort
SELECT 73 col1, 60
----
73
60

query I rowsort
SELECT DISTINCT - 26 + - 74
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT ALL + COUNT( * ) + - + MIN( - - 31 ) + 6 + + 76 + + 36 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL + COUNT ( * ) + - + MIN ( - - 31 ) + 6 + + 76 + + 36 AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT 29 * - 22 / AVG ( ALL CAST( NULL AS SIGNED ) ) * - + 2 - - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3419
SELECT 29 * - 22 / AVG ( ALL CAST ( NULL AS INTEGER ) ) * - + 2 - - 67
----
NULL

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

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

query I rowsort
SELECT DISTINCT 39 + - 34 + + 8 * 87 AS col2
----
701

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3422
SELECT ALL + 9 * 22 + + 12 AS col1, - 64 + + CAST( NULL AS DECIMAL ) * - 16 + - 16 + + COUNT( * ) * + 40
----
210
NULL

skipif mysql # not compatible
query II rowsort label-3422
SELECT ALL + 9 * 22 + + 12 AS col1, - 64 + + CAST ( NULL AS REAL ) * - 16 + - 16 + + COUNT ( * ) * + 40
----
210
NULL

query I rowsort
SELECT 10 * - 52 - 67 + 58 * - - 30 AS col1
----
1153

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT - 28 DIV - 75 - - 61 * + 80
----
4880

skipif mysql # not compatible
query I rowsort label-3424
SELECT - 28 / - 75 - - 61 * + 80
----
4880

query II rowsort
SELECT ALL - COALESCE ( + 91, - - 30 ) AS col2, + 94 AS col2
----
-91
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3426
SELECT - 50 * + - COUNT( * ), - CASE + + 82 WHEN - 25 THEN - - 12 END * + 87 + - 62 / + CAST( NULL AS DECIMAL ) + - 19 * - 59 * CAST( NULL AS SIGNED ) + + 61 AS col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-3426
SELECT - 50 * + - COUNT ( * ), - CASE + + 82 WHEN - 25 THEN - - 12 END * + 87 + - 62 / + CAST ( NULL AS REAL ) + - 19 * - 59 * CAST ( NULL AS INTEGER ) + + 61 AS col2
----
50
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT ALL 65 * + + NULLIF ( + 90, + - 88 ) + + + 19 / + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL 65 * + + NULLIF ( + 90, + - 88 ) + + + 19 / + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT COALESCE ( - CAST( NULL AS SIGNED ), + 83, 4 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3428
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), + 83, 4 ) AS col1
----
83

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

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL + COUNT ( - - 87 ) * - ( - 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT 47 * + MAX( ALL + + 20 ) - + + ( + 33 )
----
907

skipif mysql # not compatible
query I rowsort label-3430
SELECT 47 * + MAX ( ALL + + 20 ) - + + ( + 33 )
----
907

query I rowsort
SELECT DISTINCT + 56 * + 9 AS col0
----
504

query I rowsort
SELECT + - 29 + + CASE + 90 WHEN + - 4 / 52 / 82 + + - 46 THEN + 20 / + 75 * - 30 ELSE NULL END + + 97 * + 64 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 83 * 42 AS col2
----
3486

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

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

query I rowsort
SELECT - + 10 * 60
----
-600

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3436
SELECT DISTINCT - 71 * + + 0 + CASE + CAST( NULL AS DECIMAL ) WHEN - COUNT( * ) THEN + 92 * 68 * + 25 ELSE 88 END
----
88

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT - 71 * + + 0 + CASE + CAST ( NULL AS REAL ) WHEN - COUNT ( * ) THEN + 92 * 68 * + 25 ELSE 88 END
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-3437
SELECT - 28 DIV - 62 AS col0, + 1 * + ( - ( 15 ) ) col2
----
0
-15

skipif mysql # not compatible
query II rowsort label-3437
SELECT - 28 / - 62 AS col0, + 1 * + ( - ( 15 ) ) col2
----
0
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL - ( - + MAX( + 12 ) ) * + 86 + - 58 * + 75
----
-3318

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL - ( - + MAX ( + 12 ) ) * + 86 + - 58 * + 75
----
-3318

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - 74, + 89 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT COUNT( 74 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3441
SELECT COUNT ( 74 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3442
SELECT ALL - CAST( - - 99 AS SIGNED ), COUNT( * ) + + 2 col0
----
-99
3

skipif mysql # not compatible
query II rowsort label-3442
SELECT ALL - CAST ( - - 99 AS INTEGER ), COUNT ( * ) + + 2 col0
----
-99
3

query I rowsort
SELECT - - 83 + + - 31 AS col0
----
52

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3445
SELECT ALL + 97 + + - 94 + - 62 + - - COUNT( * ) * - + COUNT( * ) DIV - 27 col1
----
-59

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL + 97 + + - 94 + - 62 + - - COUNT ( * ) * - + COUNT ( * ) / - 27 col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3446
SELECT DISTINCT - 39 * - CAST( NULL AS SIGNED ) * + 85 - + - MIN( - + 61 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT - 39 * - CAST ( NULL AS INTEGER ) * + 85 - + - MIN ( - + 61 ) col2
----
NULL

query I rowsort
SELECT + 16 + - 19 AS col1
----
-3

query I rowsort
SELECT ALL 28 * 23
----
644

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT COUNT( * ) + - 92 - + 87 * + 30 * + - 44 + 61 - 34 + 2
----
114778

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT COUNT ( * ) + - 92 - + 87 * + 30 * + - 44 + 61 - 34 + 2
----
114778

query I rowsort
SELECT ALL 98 + 27 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT - ( - ( ( + COUNT( ALL + 24 ) ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3451
SELECT - ( - ( ( + COUNT ( ALL + 24 ) ) ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3452
SELECT - ( + NULLIF ( COUNT( DISTINCT 75 ), 30 + - - CAST( - 31 AS SIGNED ) * - AVG ( ALL - - 99 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3452
SELECT - ( + NULLIF ( COUNT ( DISTINCT 75 ), 30 + - - CAST ( - 31 AS INTEGER ) * - AVG ( ALL - - 99 ) ) )
----
-1

query II rowsort
SELECT + 57 + 35 + + + 27, + 39 AS col2
----
119
39

query I rowsort
SELECT ALL 68 * - 48 AS col2
----
-3264

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3455
SELECT - 24 col0, - COALESCE ( + 7, + 24 * - 96 + 54 + COUNT( * ) ) DIV - + 75 col2
----
-24
0

skipif mysql # not compatible
query II rowsort label-3455
SELECT - 24 col0, - COALESCE ( + 7, + 24 * - 96 + 54 + COUNT ( * ) ) / - + 75 col2
----
-24
0

query II rowsort
SELECT DISTINCT 86 + + + ( 44 ), 84 AS col0
----
130
84

query I rowsort
SELECT DISTINCT 97 * - 86
----
-8342

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3458
SELECT ALL 92 DIV 58 - + + 64 - 24 * COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL 92 / 58 - + + 64 - 24 * COUNT ( * ) AS col1
----
-87

query II rowsort
SELECT DISTINCT + 93 col2, 51
----
93
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3460
SELECT ALL + COUNT( * ), + SUM( ALL + 72 ) col1
----
1
72

skipif mysql # not compatible
query II rowsort label-3460
SELECT ALL + COUNT ( * ), + SUM ( ALL + 72 ) col1
----
1
72

query I rowsort
SELECT + 91 * - + 38 * - - 4 * - 18
----
248976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3462
SELECT - MIN( DISTINCT - 8 ) * CAST( 34 AS SIGNED ) + + - 34 AS col0
----
238

skipif mysql # not compatible
query I rowsort label-3462
SELECT - MIN ( DISTINCT - 8 ) * CAST ( 34 AS INTEGER ) + + - 34 AS col0
----
238

query I rowsort
SELECT 70 * - - 93 + - - 12
----
6522

query I rowsort
SELECT ( - NULLIF ( + 57, 73 + - 49 * 61 / 89 ) ) AS col1
----
-57

query II rowsort
SELECT + 1 col2, - 41 + 80 + + + 88
----
1
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT ALL + 94 * + 78 * + - COUNT( * )
----
-7332

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + 94 * + 78 * + - COUNT ( * )
----
-7332

query I rowsort
SELECT - 89 * + - 7
----
623

query I rowsort
SELECT DISTINCT CASE - 9 WHEN 27 + 57 + - + 80 THEN - 97 WHEN + 30 * 97 THEN NULL END * + 30 * - - 95 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3469
SELECT - 42 + + 6 * CAST( NULL AS SIGNED ) * + + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3469
SELECT - 42 + + 6 * CAST ( NULL AS INTEGER ) * + + 80 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3470
SELECT DISTINCT + 19, + 5 + - - CAST( + + 18 AS SIGNED ) AS col2
----
19
23

skipif mysql # not compatible
query II rowsort label-3470
SELECT DISTINCT + 19, + 5 + - - CAST ( + + 18 AS INTEGER ) AS col2
----
19
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT DISTINCT - 75 * 16 * + 16 AS col1, COUNT( * ) + - - 64
----
-19200
65

skipif mysql # not compatible
query II rowsort label-3471
SELECT DISTINCT - 75 * 16 * + 16 AS col1, COUNT ( * ) + - - 64
----
-19200
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3472
SELECT DISTINCT + 95 DIV - ( ( 12 ) ) + - 10
----
-17

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT + 95 / - ( ( 12 ) ) + - 10
----
-17

query I rowsort
SELECT + 80 * - 94 + + + 16 * + 35 * 41
----
15440

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT - + SUM( DISTINCT + + 45 ) + NULLIF ( ( - 96 ), + 89 + + - 49 ) AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-3474
SELECT - + SUM ( DISTINCT + + 45 ) + NULLIF ( ( - 96 ), + 89 + + - 49 ) AS col2
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-3475
SELECT DISTINCT + 88 AS col0, COUNT( * ) * 73 - COUNT( * )
----
88
72

skipif mysql # not compatible
query II rowsort label-3475
SELECT DISTINCT + 88 AS col0, COUNT ( * ) * 73 - COUNT ( * )
----
88
72

query II rowsort
SELECT - - 87 * - 51 * + 8 AS col2, + 56 AS col1
----
-35496
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT - - 81 + + - MIN( ALL - + 8 ) * - 64 AS col1
----
-431

skipif mysql # not compatible
query I rowsort label-3477
SELECT - - 81 + + - MIN ( ALL - + 8 ) * - 64 AS col1
----
-431

onlyif mysql # aggregate syntax: 
query II rowsort label-3478
SELECT - 97 * + - 15 + - 34, NULLIF ( - 33, COUNT( * ) * - 1 * + COUNT( 91 ) ) col1
----
1421
-33

skipif mysql # not compatible
query II rowsort label-3478
SELECT - 97 * + - 15 + - 34, NULLIF ( - 33, COUNT ( * ) * - 1 * + COUNT ( 91 ) ) col1
----
1421
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3479
SELECT NULLIF ( - + 82, + 44 * + SUM( + - ( + 77 ) ) + + - MAX( - 45 ) ) AS col1, 2
----
-82
2

skipif mysql # not compatible
query II rowsort label-3479
SELECT NULLIF ( - + 82, + 44 * + SUM ( + - ( + 77 ) ) + + - MAX ( - 45 ) ) AS col1, 2
----
-82
2

query II rowsort
SELECT DISTINCT - 68, + 86 AS col2
----
-68
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL NULLIF ( + 72, - 95 * - 42 * - COUNT( * ) * - 69 )
----
72

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL NULLIF ( + 72, - 95 * - 42 * - COUNT ( * ) * - 69 )
----
72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3483
SELECT - 5 * - 84, + 63 * + - COUNT( * ) AS col2
----
420
-63

skipif mysql # not compatible
query II rowsort label-3483
SELECT - 5 * - 84, + 63 * + - COUNT ( * ) AS col2
----
420
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT CASE + 83 WHEN + 56 * + 37 + + + NULLIF ( 61, + 71 + + 44 - - - 64 * 62 ) + + COUNT( * ) THEN NULL ELSE - - 47 END + + 34
----
81

skipif mysql # not compatible
query I rowsort label-3484
SELECT CASE + 83 WHEN + 56 * + 37 + + + NULLIF ( 61, + 71 + + 44 - - - 64 * 62 ) + + COUNT ( * ) THEN NULL ELSE - - 47 END + + 34
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT 35 * + 8 * + COUNT( + 75 )
----
280

skipif mysql # not compatible
query I rowsort label-3485
SELECT 35 * + 8 * + COUNT ( + 75 )
----
280

query I rowsort
SELECT 74 + 63
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-3487
SELECT ALL 45 - + 35 AS col2, COUNT( * )
----
10
1

skipif mysql # not compatible
query II rowsort label-3487
SELECT ALL 45 - + 35 AS col2, COUNT ( * )
----
10
1

query I rowsort
SELECT ALL 21 - - 87 AS col2
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3489
SELECT ALL 39 * + CAST( NULL AS SIGNED ) AS col1, - 74 AS col2
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-3489
SELECT ALL 39 * + CAST ( NULL AS INTEGER ) AS col1, - 74 AS col2
----
NULL
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3490
SELECT ALL 15 * + 41 * - MAX( - - 74 ) AS col0, 53 AS col0
----
-45510
53

skipif mysql # not compatible
query II rowsort label-3490
SELECT ALL 15 * + 41 * - MAX ( - - 74 ) AS col0, 53 AS col0
----
-45510
53

query I rowsort
SELECT DISTINCT 32 * 65
----
2080

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3493
SELECT SUM( DISTINCT 92 ) * 26 + - 6 DIV - CAST( + 85 AS SIGNED ) + + ( SUM( - - 68 ) ) - + 47 AS col2
----
2413

skipif mysql # not compatible
query I rowsort label-3493
SELECT SUM ( DISTINCT 92 ) * 26 + - 6 / - CAST ( + 85 AS INTEGER ) + + ( SUM ( - - 68 ) ) - + 47 AS col2
----
2413

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT SUM( 38 ) * 99
----
3762

skipif mysql # not compatible
query I rowsort label-3494
SELECT SUM ( 38 ) * 99
----
3762

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL 79 * - MIN( 42 ) AS col2
----
-3318

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL 79 * - MIN ( 42 ) AS col2
----
-3318

query I rowsort
SELECT DISTINCT 14 * + - 35 col2
----
-490

query II rowsort
SELECT ALL 86 * + 58 AS col0, 37 + 86 + - NULLIF ( - ( 93 ), + 4 ) * - 16 + - - 63
----
4988
-1302

query II rowsort
SELECT ALL - COALESCE ( - 21, - + 77 * - 64, - 9 + - 65 * - 72 ) AS col1, 57 + + 36 AS col2
----
21
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT - COALESCE ( - NULLIF ( - + COUNT( * ), ( + NULLIF ( - 80, - + COUNT( DISTINCT + 34 ) * - COUNT( * ) ) ) * - 9 ), - 67, 72 * - + 79 * 9 + 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-3499
SELECT - COALESCE ( - NULLIF ( - + COUNT ( * ), ( + NULLIF ( - 80, - + COUNT ( DISTINCT + 34 ) * - COUNT ( * ) ) ) * - 9 ), - 67, 72 * - + 79 * 9 + 21 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT + SUM( DISTINCT + 20 ) * + 56 - 44
----
1076

skipif mysql # not compatible
query I rowsort label-3500
SELECT + SUM ( DISTINCT + 20 ) * + 56 - 44
----
1076

query I rowsort
SELECT ALL + 71 + 62
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT ALL - CASE + COALESCE ( ( - - 16 ), 62 ) WHEN - MAX( 9 ) THEN 6 WHEN + 59 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL - CASE + COALESCE ( ( - - 16 ), 62 ) WHEN - MAX ( 9 ) THEN 6 WHEN + 59 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3503
SELECT + - 34 * - - 90 + NULLIF ( CAST( NULL AS SIGNED ), - 28 * - 77 / + 45 * COALESCE ( + 31, - + COUNT( * ), - - 36 ) ) + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT + - 34 * - - 90 + NULLIF ( CAST ( NULL AS INTEGER ), - 28 * - 77 / + 45 * COALESCE ( + 31, - + COUNT ( * ), - - 36 ) ) + + 42
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3504
SELECT CASE + - ( - + ( - ( + - CAST( MIN( 30 ) AS SIGNED ) ) ) ) WHEN 97 * + 54 * + 85 + + + 50 THEN - 26 ELSE NULL END AS col2, 57 * - - 20
----
NULL
1140

skipif mysql # not compatible
query II rowsort label-3504
SELECT CASE + - ( - + ( - ( + - CAST ( MIN ( 30 ) AS INTEGER ) ) ) ) WHEN 97 * + 54 * + 85 + + + 50 THEN - 26 ELSE NULL END AS col2, 57 * - - 20
----
NULL
1140

onlyif mysql # aggregate syntax: 
query II rowsort label-3505
SELECT 16 * COUNT( * ) AS col0, + 77 + + + ( 37 ) AS col1
----
16
114

skipif mysql # not compatible
query II rowsort label-3505
SELECT 16 * COUNT ( * ) AS col0, + 77 + + + ( 37 ) AS col1
----
16
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3506
SELECT - CASE + COUNT( * ) WHEN 6 * + + CAST( NULL AS DECIMAL ) THEN NULL ELSE + 44 END * - ( + 29 ), - 8 * - CAST( + 2 AS SIGNED ) AS col0
----
1276
16

skipif mysql # not compatible
query II rowsort label-3506
SELECT - CASE + COUNT ( * ) WHEN 6 * + + CAST ( NULL AS REAL ) THEN NULL ELSE + 44 END * - ( + 29 ), - 8 * - CAST ( + 2 AS INTEGER ) AS col0
----
1276
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3507
SELECT ALL - - 49 + - 9 * CAST( + COUNT( * ) AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL - - 49 + - 9 * CAST ( + COUNT ( * ) AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT + - MIN( + 22 ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-3508
SELECT + - MIN ( + 22 ) col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT DISTINCT - NULLIF ( - 19, + COUNT( * ) ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT - NULLIF ( - 19, + COUNT ( * ) ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-3510
SELECT ALL COALESCE ( - + 98, - ( - 50 ) - COUNT( * ) * 59 + 92 ) * - + 27 + 46 AS col0, + 36 AS col2
----
2692
36

skipif mysql # not compatible
query II rowsort label-3510
SELECT ALL COALESCE ( - + 98, - ( - 50 ) - COUNT ( * ) * 59 + 92 ) * - + 27 + 46 AS col0, + 36 AS col2
----
2692
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3511
SELECT + 55 * + + 69 - - 63 DIV - MAX( 7 ) AS col0
----
3786

skipif mysql # not compatible
query I rowsort label-3511
SELECT + 55 * + + 69 - - 63 / - MAX ( 7 ) AS col0
----
3786

query I rowsort
SELECT ALL + 70 + + + 91
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-3513
SELECT ALL + 6 DIV - 25 * - 7 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL + 6 / - 25 * - 7 AS col0
----
0

query I rowsort
SELECT DISTINCT - 48 + COALESCE ( - + 32, 9 - - - 3 + - 21 * + ( 3 ), 26 * + 2 * - + 99 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT 62 * + 53 * + - 41 * + 71 + - COALESCE ( + 75, + 42 ) - 49 * + - 52 * - COUNT( * )
----
-9568169

skipif mysql # not compatible
query I rowsort label-3515
SELECT 62 * + 53 * + - 41 * + 71 + - COALESCE ( + 75, + 42 ) - 49 * + - 52 * - COUNT ( * )
----
-9568169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3516
SELECT 39 + + COUNT( * ) + - CAST( + CASE + - 15 WHEN + 81 THEN NULL ELSE - AVG ( + 94 ) + + + ( + + 14 ) END AS SIGNED ), 39 AS col2
----
120
39

skipif mysql # not compatible
query II rowsort label-3516
SELECT 39 + + COUNT ( * ) + - CAST ( + CASE + - 15 WHEN + 81 THEN NULL ELSE - AVG ( + 94 ) + + + ( + + 14 ) END AS INTEGER ), 39 AS col2
----
120
39

query I rowsort
SELECT ALL + 15 - - 59
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT 54 - + COUNT( ALL 30 )
----
53

skipif mysql # not compatible
query I rowsort label-3518
SELECT 54 - + COUNT ( ALL 30 )
----
53

query I rowsort
SELECT ALL + 88 * - + 42
----
-3696

query I rowsort
SELECT ALL + 15 - - 68 + + - 76 + + 44
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT MAX( + + 91 ) * + + 81 + ( CASE - 88 WHEN - - ( - 64 ) / - - 51 THEN - - 79 WHEN + - ( - + 6 ) + - 46 * + 20 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT MAX ( + + 91 ) * + + 81 + ( CASE - 88 WHEN - - ( - 64 ) / - - 51 THEN - - 79 WHEN + - ( - + 6 ) + - 46 * + 20 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3522
SELECT 73 + MIN( ALL + 36 ) DIV - MAX( ALL + 11 )
----
70

skipif mysql # not compatible
query I rowsort label-3522
SELECT 73 + MIN ( ALL + 36 ) / - MAX ( ALL + 11 )
----
70

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

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

query I rowsort
SELECT 99 - 98
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3526
SELECT MAX( + 54 ) + 3 AS col1, COUNT( * )
----
57
1

skipif mysql # not compatible
query II rowsort label-3526
SELECT MAX ( + 54 ) + 3 AS col1, COUNT ( * )
----
57
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3527
SELECT DISTINCT 33 * 71 + - + 49 AS col0, - 70 DIV + 72 col2
----
2294
0

skipif mysql # not compatible
query II rowsort label-3527
SELECT DISTINCT 33 * 71 + - + 49 AS col0, - 70 / + 72 col2
----
2294
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3528
SELECT + 58 DIV COUNT( * ) + ( 99 ) col0
----
157

skipif mysql # not compatible
query I rowsort label-3528
SELECT + 58 / COUNT ( * ) + ( 99 ) col0
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3529
SELECT ALL - + 54 AS col2, - MIN( 75 ) + - 30 DIV - 10 + + - CASE - 74 WHEN - MAX( ALL + NULLIF ( + 63, - 73 ) ) * - + 87 DIV 69 THEN NULL ELSE - 5 END
----
-54
-67

skipif mysql # not compatible
query II rowsort label-3529
SELECT ALL - + 54 AS col2, - MIN ( 75 ) + - 30 / - 10 + + - CASE - 74 WHEN - MAX ( ALL + NULLIF ( + 63, - 73 ) ) * - + 87 / 69 THEN NULL ELSE - 5 END
----
-54
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT + - 5 * + 87 * - - 21 + - NULLIF ( - 41, 51 - + ( 69 ) / 64 * COUNT( * ) * - 62 ) + - 89 * - 95
----
-639

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT + - 5 * + 87 * - - 21 + - NULLIF ( - 41, 51 - + ( 69 ) / 64 * COUNT ( * ) * - 62 ) + - 89 * - 95
----
-639

query I rowsort
SELECT + ( 22 ) + - 64 col1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3532
SELECT - 37 DIV 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3532
SELECT - 37 / 46 AS col2
----
0

query I rowsort
SELECT + + COALESCE ( - 85, + - 89 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL + 73 * - + COALESCE ( + - 22, + 87 * + - COUNT( * ) ) + + - 4
----
1602

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL + 73 * - + COALESCE ( + - 22, + 87 * + - COUNT ( * ) ) + + - 4
----
1602

query I rowsort
SELECT + 1 * 14 + + 40 + + + 31
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3536
SELECT + 3 col1, CASE + + 17 WHEN + COALESCE ( - 61, + 61 + - 42 + CAST( NULL AS SIGNED ), + 4 ) THEN NULL ELSE - + 58 * - + 51 + + COUNT( * ) END + 92 * - - 31 - - 69 - 35 AS col0
----
3
5845

skipif mysql # not compatible
query II rowsort label-3536
SELECT + 3 col1, CASE + + 17 WHEN + COALESCE ( - 61, + 61 + - 42 + CAST ( NULL AS INTEGER ), + 4 ) THEN NULL ELSE - + 58 * - + 51 + + COUNT ( * ) END + 92 * - - 31 - - 69 - 35 AS col0
----
3
5845

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT - COUNT( * ) + - 23 + - 38 + + 52 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3537
SELECT - COUNT ( * ) + - 23 + - 38 + + 52 AS col2
----
-10

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

query I rowsort
SELECT - + 14 * + 10 + 19
----
-121

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

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

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

query I rowsort
SELECT DISTINCT + 66 - 66 - 24 + - 51
----
-75

query I rowsort
SELECT + 11 * + COALESCE ( - 40, + - 1 ) AS col0
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT 77 + - ( COUNT( * ) ) * 7 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-3544
SELECT 77 + - ( COUNT ( * ) ) * 7 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT + - MAX( ALL NULLIF ( - - 30, - 51 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-3545
SELECT + - MAX ( ALL NULLIF ( - - 30, - 51 ) )
----
-30

query I rowsort
SELECT - - 63 + - + 94 AS col0
----
-31

query I rowsort
SELECT ALL - 83 * + - 5 * + + 76 AS col1
----
31540

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT + 51 DIV - ( 10 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3548
SELECT + 51 / - ( 10 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT - CASE + 43 WHEN + 36 + + 97 + - 41 + + 10 * - 92 * 43 + - 63 THEN + 68 WHEN COUNT( * ) THEN + 80 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT - CASE + 43 WHEN + 36 + + 97 + - 41 + + 10 * - 92 * 43 + - 63 THEN + 68 WHEN COUNT ( * ) THEN + 80 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 75 * - 25 AS col0
----
-1875

onlyif mysql # aggregate syntax: 
query II rowsort label-3551
SELECT DISTINCT MAX( - + 43 ) AS col1, 25 * + ( + + 95 )
----
-43
2375

skipif mysql # not compatible
query II rowsort label-3551
SELECT DISTINCT MAX ( - + 43 ) AS col1, 25 * + ( + + 95 )
----
-43
2375

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

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) * COUNT ( * )
----
NULL

query II rowsort
SELECT ALL 10 * - - 75, - 31 + + 23 AS col1
----
750
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3554
SELECT DISTINCT 68 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT 68 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3555
SELECT 10 col1, - 46 + + + 50 + - + 1 + + - CASE + 19 WHEN + COALESCE ( - COUNT( * ), + 96 + - COUNT( * ) * + - 13 - 14 ) THEN - + COALESCE ( 80, + + 81 * + 24 + + 56 ) - + - 85 ELSE + ( - 70 ) END
----
10
73

skipif mysql # not compatible
query II rowsort label-3555
SELECT 10 col1, - 46 + + + 50 + - + 1 + + - CASE + 19 WHEN + COALESCE ( - COUNT ( * ), + 96 + - COUNT ( * ) * + - 13 - 14 ) THEN - + COALESCE ( 80, + + 81 * + 24 + + 56 ) - + - 85 ELSE + ( - 70 ) END
----
10
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT - COALESCE ( COUNT( * ), - COALESCE ( + + ( COUNT( 57 ) ), 71 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3556
SELECT - COALESCE ( COUNT ( * ), - COALESCE ( + + ( COUNT ( 57 ) ), 71 ) )
----
-1

query II rowsort
SELECT - ( + 5 ) col1, 29 AS col1
----
-5
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL MAX( DISTINCT - 23 ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL MAX ( DISTINCT - 23 ) col2
----
-23

query I rowsort
SELECT - 67 * - 79 AS col2
----
5293

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL NULLIF ( 75, - 53 * - COUNT( * ) ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL NULLIF ( 75, - 53 * - COUNT ( * ) ) AS col1
----
75

query II rowsort
SELECT 10, + 36 AS col0
----
10
36

query I rowsort
SELECT ALL - 12 + + ( + 85 ) AS col0
----
73

query I rowsort
SELECT DISTINCT - 39 + + 75 + + 23
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3564
SELECT ALL + 48 * - CASE + + ( + 19 ) WHEN 75 THEN NULL WHEN + 80 + - - 85 THEN CAST( NULL AS SIGNED ) - COUNT( * ) WHEN + 57 + - - ( + 38 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL + 48 * - CASE + + ( + 19 ) WHEN 75 THEN NULL WHEN + 80 + - - 85 THEN CAST ( NULL AS INTEGER ) - COUNT ( * ) WHEN + 57 + - - ( + 38 ) THEN NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 76 + + - 68 AS col2, 55 + - - 67 col1
----
8
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3566
SELECT DISTINCT - COUNT( * ) + - 76 + + 37 + CAST( 66 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT - COUNT ( * ) + - 76 + + 37 + CAST ( 66 AS INTEGER )
----
26

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT - + 77 * COALESCE ( + NULLIF ( + 34, - - 2 * - COUNT( * ) + NULLIF ( + CASE - 17 WHEN + - 73 - - COUNT( - 83 ) THEN + + 49 - - 46 / 29 END, - - NULLIF ( - 58, + - 82 - + - 4 + + + ( 75 ) * + + 87 ) * - 89 ) ), + + 92 + + - 79 * 44 ) col1, + 48 - + 27
----
-2618
21

skipif mysql # not compatible
query II rowsort label-3568
SELECT - + 77 * COALESCE ( + NULLIF ( + 34, - - 2 * - COUNT ( * ) + NULLIF ( + CASE - 17 WHEN + - 73 - - COUNT ( - 83 ) THEN + + 49 - - 46 / 29 END, - - NULLIF ( - 58, + - 82 - + - 4 + + + ( 75 ) * + + 87 ) * - 89 ) ), + + 92 + + - 79 * 44 ) col1, + 48 - + 27
----
-2618
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL - 55 * - 91 - SUM( ALL + - 55 ) - + 6 + + 46
----
5100

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL - 55 * - 91 - SUM ( ALL + - 55 ) - + 6 + + 46
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT - - 49 * + 48 + COUNT( * ) * 58 - + + CASE - 22 WHEN + 86 / - COUNT( * ) * 88 + + 29 THEN + MIN( DISTINCT - 94 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT - - 49 * + 48 + COUNT ( * ) * 58 - + + CASE - 22 WHEN + 86 / - COUNT ( * ) * 88 + + 29 THEN + MIN ( DISTINCT - 94 ) ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3571
SELECT 41 AS col2, ( - 70 ) * - 30 + - + ( + 84 ) + + 30 + + ( - - 67 ) + + CAST( - 62 AS SIGNED ) * COUNT( * )
----
41
2051

skipif mysql # not compatible
query II rowsort label-3571
SELECT 41 AS col2, ( - 70 ) * - 30 + - + ( + 84 ) + + 30 + + ( - - 67 ) + + CAST ( - 62 AS INTEGER ) * COUNT ( * )
----
41
2051

onlyif mysql # aggregate syntax: 
query II rowsort label-3572
SELECT ALL - 96 * - - 0 + 41 + + NULLIF ( COUNT( * ), 93 ), MIN( DISTINCT 84 ) AS col0
----
42
84

skipif mysql # not compatible
query II rowsort label-3572
SELECT ALL - 96 * - - 0 + 41 + + NULLIF ( COUNT ( * ), 93 ), MIN ( DISTINCT 84 ) AS col0
----
42
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3573
SELECT DISTINCT - - 24 * + CAST( - 97 AS SIGNED ) + + 97 AS col2
----
-2231

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT - - 24 * + CAST ( - 97 AS INTEGER ) + + 97 AS col2
----
-2231

query II rowsort
SELECT 22 AS col1, 44
----
22
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL - 3 * - COUNT( * ) - - 20
----
23

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - 3 * - COUNT ( * ) - - 20
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3576
SELECT DISTINCT 69 * + CASE + COUNT( ALL 49 ) WHEN - MAX( + - 79 ) THEN NULL ELSE - + 24 END - + CAST( + - 42 AS SIGNED )
----
-1614

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT 69 * + CASE + COUNT ( ALL 49 ) WHEN - MAX ( + - 79 ) THEN NULL ELSE - + 24 END - + CAST ( + - 42 AS INTEGER )
----
-1614

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3577
SELECT DISTINCT - 11 DIV - - 68 + 56 * + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT - 11 / - - 68 + 56 * + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3578
SELECT + - COUNT( ALL 44 ) DIV - - 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3578
SELECT + - COUNT ( ALL 44 ) / - - 32 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - 8 * MIN( + 47 ) - - 86 AS col2
----
-290

skipif mysql # not compatible
query I rowsort label-3580
SELECT - 8 * MIN ( + 47 ) - - 86 AS col2
----
-290

query II rowsort
SELECT + 10 * + 35 AS col2, - 58 AS col0
----
350
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT SUM( ALL - 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3582
SELECT SUM ( ALL - 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT + 80 * COUNT( * ) * - NULLIF ( - - 86, - + 42 ) * - 91
----
626080

skipif mysql # not compatible
query I rowsort label-3583
SELECT + 80 * COUNT ( * ) * - NULLIF ( - - 86, - + 42 ) * - 91
----
626080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3584
SELECT - CAST( + NULLIF ( + 49, + 90 * - 27 ) AS SIGNED ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3584
SELECT - CAST ( + NULLIF ( + 49, + 90 * - 27 ) AS INTEGER ) AS col0
----
-49

query I rowsort
SELECT + 44 + + NULLIF ( - - 51, + 19 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT MAX( DISTINCT 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3586
SELECT MAX ( DISTINCT 9 ) AS col2
----
9

query I rowsort
SELECT + ( - 95 ) + + 65 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT ALL 26 + - + MAX( DISTINCT - ( 98 ) )
----
124

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL 26 + - + MAX ( DISTINCT - ( 98 ) )
----
124

query II rowsort
SELECT - ( - 62 ) AS col0, 78
----
62
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3590
SELECT + COUNT( * ) + - 28 + - 20 + - COUNT( * ) + - 29 + 23 - 56, 53 AS col2
----
-110
53

skipif mysql # not compatible
query II rowsort label-3590
SELECT + COUNT ( * ) + - 28 + - 20 + - COUNT ( * ) + - 29 + 23 - 56, 53 AS col2
----
-110
53

query I rowsort
SELECT ALL 20 * - 65
----
-1300

query I rowsort
SELECT ALL ( - 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT + COUNT( DISTINCT - 11 ) + + 91 + - 95 * 23
----
-2093

skipif mysql # not compatible
query I rowsort label-3593
SELECT + COUNT ( DISTINCT - 11 ) + + 91 + - 95 * 23
----
-2093

query I rowsort
SELECT + - ( 51 ) + - - 15
----
-36

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3596
SELECT - + COUNT( * ) + 30 AS col0, - 68 AS col2
----
29
-68

skipif mysql # not compatible
query II rowsort label-3596
SELECT - + COUNT ( * ) + 30 AS col0, - 68 AS col2
----
29
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT DISTINCT + MAX( 19 )
----
19

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT + MAX ( 19 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3599
SELECT - ( + 37 ) + 59 * + + COUNT( * ) * + COUNT( * ) + - COUNT( * ) * 76 + 30 + 86 + + COALESCE ( ( + 12 ), + MIN( - + 30 ) DIV - 22, + 0 DIV + SUM( - 55 ) * - 79 + - 6 + + - 84 ) * + 89 AS col1
----
1130

skipif mysql # not compatible
query I rowsort label-3599
SELECT - ( + 37 ) + 59 * + + COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) * 76 + 30 + 86 + + COALESCE ( ( + 12 ), + MIN ( - + 30 ) / - 22, + 0 / + SUM ( - 55 ) * - 79 + - 6 + + - 84 ) * + 89 AS col1
----
1130

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT DISTINCT - COUNT( * ) * - SUM( ALL + 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT - COUNT ( * ) * - SUM ( ALL + 66 ) AS col2
----
66

query I rowsort
SELECT - 26 + + 24 + 16 - - + 72 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT + 58 - - - MIN( - - 27 ) * - COUNT( ALL + 94 ) * - 94 AS col0
----
-2480

skipif mysql # not compatible
query I rowsort label-3602
SELECT + 58 - - - MIN ( - - 27 ) * - COUNT ( ALL + 94 ) * - 94 AS col0
----
-2480

query I rowsort
SELECT DISTINCT + + 37 - + 68 col0
----
-31

query I rowsort
SELECT + 2 + - 38
----
-36

query I rowsort
SELECT + 76 + - 9 * 86 * + 48 * + + 24
----
-891572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3606
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + CAST( 57 AS SIGNED ) - + 0 - + 82 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + CAST ( 57 AS INTEGER ) - + 0 - + 82 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT ALL - MAX( DISTINCT 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL - MAX ( DISTINCT 96 )
----
-96

query I rowsort
SELECT 56 * 52 * + 86 + + 5 AS col2
----
250437

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3609
SELECT ALL 75 * 81 DIV 76, - SUM( ALL - + ( + 13 ) ) col1
----
79
13

skipif mysql # not compatible
query II rowsort label-3609
SELECT ALL 75 * 81 / 76, - SUM ( ALL - + ( + 13 ) ) col1
----
79
13

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

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL + 56 / + 41
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3611
SELECT 19 AS col0, COUNT( ALL + 27 ) * + COUNT( * ) AS col1
----
19
1

skipif mysql # not compatible
query II rowsort label-3611
SELECT 19 AS col0, COUNT ( ALL + 27 ) * + COUNT ( * ) AS col1
----
19
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3612
SELECT 54 col2, 79 + - 0 + 85 DIV 18 + + 13 * - - 1 - MAX( ALL + 84 ) DIV - 61 AS col2
----
54
97

skipif mysql # not compatible
query II rowsort label-3612
SELECT 54 col2, 79 + - 0 + 85 / 18 + + 13 * - - 1 - MAX ( ALL + 84 ) / - 61 AS col2
----
54
97

query I rowsort
SELECT ALL - 93 + 57 AS col1
----
-36

query II rowsort
SELECT DISTINCT + 38 * 8 * + - 65 AS col0, 41 * - 52
----
-19760
-2132

query II rowsort
SELECT 35 AS col2, 26 + - ( 65 ) AS col1
----
35
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3616
SELECT + COUNT( * ) * + - 44 / - - ( 92 ) + - CASE 59 WHEN - 26 THEN NULL ELSE + + 27 * + NULLIF ( 31, ( - ( - + COUNT( * ) ) ) + + 60 + - 7 + - 12 * + 69 * - CASE + 29 WHEN - 52 * + 41 + 47 THEN - 42 * 56 / + - 10 ELSE NULL END * - CASE + 58 WHEN + + 8 THEN - 46 WHEN - 52 THEN NULL ELSE NULL END / + 15 + + - COUNT( ALL + - 55 ) ) / + 22 - - COUNT( * ) + CAST( NULL AS SIGNED ) END + + + 51 + - + 54 col2, 54 * - + 16
----
NULL
-864

skipif mysql # not compatible
query II rowsort label-3616
SELECT + COUNT ( * ) * + - 44 / - - ( 92 ) + - CASE 59 WHEN - 26 THEN NULL ELSE + + 27 * + NULLIF ( 31, ( - ( - + COUNT ( * ) ) ) + + 60 + - 7 + - 12 * + 69 * - CASE + 29 WHEN - 52 * + 41 + 47 THEN - 42 * 56 / + - 10 ELSE NULL END * - CASE + 58 WHEN + + 8 THEN - 46 WHEN - 52 THEN NULL ELSE NULL END / + 15 + + - COUNT ( ALL + - 55 ) ) / + 22 - - COUNT ( * ) + CAST ( NULL AS INTEGER ) END + + + 51 + - + 54 col2, 54 * - + 16
----
NULL
-864

query II rowsort
SELECT ALL - 34 AS col2, 63
----
-34
63

query II rowsort
SELECT - 73 col0, + 14 + - - 28 AS col1
----
-73
42

query I rowsort
SELECT 73 * 33 AS col1
----
2409

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

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL - 93 + - COUNT ( * ) AS col0
----
-94

query I rowsort
SELECT DISTINCT + 39 + 14
----
53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3623
SELECT ALL COALESCE ( COALESCE ( + COALESCE ( - 58, + MAX( 80 ) ), - CAST( NULL AS SIGNED ) ), 25 + - - 87 * + 40 * - COALESCE ( + 12, + COUNT( DISTINCT 42 ) - + 91 ) - + 1 * + COUNT( * ) + 44 * + COUNT( * ) * - 70 DIV + - 46, - 11 + - - 96 + + 21 ) + + 26 - + 24 DIV 58 * MIN( - 83 ) * - 91 col0
----
-32

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL COALESCE ( COALESCE ( + COALESCE ( - 58, + MAX ( 80 ) ), - CAST ( NULL AS INTEGER ) ), 25 + - - 87 * + 40 * - COALESCE ( + 12, + COUNT ( DISTINCT 42 ) - + 91 ) - + 1 * + COUNT ( * ) + 44 * + COUNT ( * ) * - 70 / + - 46, - 11 + - - 96 + + 21 ) + + 26 - + 24 / 58 * MIN ( - 83 ) * - 91 col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT - 82 AS col1, COUNT( - - 93 ) + + 37
----
-82
38

skipif mysql # not compatible
query II rowsort label-3624
SELECT - 82 AS col1, COUNT ( - - 93 ) + + 37
----
-82
38

query I rowsort
SELECT ALL - 67 * NULLIF ( - - 56, + 20 * + 48 )
----
-3752

query II rowsort
SELECT ALL 38 AS col2, 95 AS col1
----
38
95

query II rowsort
SELECT - 90 AS col1, 81 AS col2
----
-90
81

query II rowsort
SELECT 73 AS col0, + 6
----
73
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3629
SELECT ALL COUNT( ALL + 89 ) + - + COUNT( * ), 54 * - ( 85 ) + - - 46 * 41 AS col0
----
0
-2704

skipif mysql # not compatible
query II rowsort label-3629
SELECT ALL COUNT ( ALL + 89 ) + - + COUNT ( * ), 54 * - ( 85 ) + - - 46 * 41 AS col0
----
0
-2704

query I rowsort
SELECT ALL 49 + - + 11 + + + 0 AS col1
----
38

query I rowsort
SELECT 88 * + 43
----
3784

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3633
SELECT - 55, MAX( 47 ) AS col2
----
-55
47

skipif mysql # not compatible
query II rowsort label-3633
SELECT - 55, MAX ( 47 ) AS col2
----
-55
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3634
SELECT DISTINCT - COUNT( * ), 6 + - - 48 - - 21 * + 61 * 28 AS col2
----
-1
35922

skipif mysql # not compatible
query II rowsort label-3634
SELECT DISTINCT - COUNT ( * ), 6 + - - 48 - - 21 * + 61 * 28 AS col2
----
-1
35922

query II rowsort
SELECT DISTINCT + 36 - + ( + 76 ) AS col0, - 20
----
-40
-20

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

skipif mysql # not compatible
query I rowsort label-3636
SELECT - MAX ( ALL 23 )
----
-23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3638
SELECT DISTINCT CAST( + 3 AS SIGNED ) * + - 77 + + COUNT( * ) AS col1
----
-230

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT CAST ( + 3 AS INTEGER ) * + - 77 + + COUNT ( * ) AS col1
----
-230

query II rowsort
SELECT DISTINCT - 81 - 3 + 90 * - + 90 * - 29 + 63 AS col0, + 99 AS col2
----
234879
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3640
SELECT COUNT( * ) * - 91 * - 89 AS col0, - 54
----
8099
-54

skipif mysql # not compatible
query II rowsort label-3640
SELECT COUNT ( * ) * - 91 * - 89 AS col0, - 54
----
8099
-54

query I rowsort
SELECT ALL + ( - - 65 ) * + - ( - ( + 99 ) )
----
6435

query I rowsort
SELECT + 63 - + 54 - - - 91
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT COUNT( ALL - 26 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3643
SELECT COUNT ( ALL - 26 ) AS col0
----
1

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

skipif mysql # not compatible
query II rowsort label-3644
SELECT CAST ( NULL AS INTEGER ) AS col0, - 16
----
NULL
-16

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3646
SELECT ALL 16 / - + CASE + 91 WHEN - - COUNT( * ) * + 97 - - 67 THEN - - CAST( 46 AS SIGNED ) WHEN - 96 THEN NULL END * - 8 * + + NULLIF ( - COUNT( * ), - 62 ) + + 57 + + COUNT( * ) * + 41 AS col0, NULLIF ( - - 71, - COUNT( * ) )
----
NULL
71

skipif mysql # not compatible
query II rowsort label-3646
SELECT ALL 16 / - + CASE + 91 WHEN - - COUNT ( * ) * + 97 - - 67 THEN - - CAST ( 46 AS INTEGER ) WHEN - 96 THEN NULL END * - 8 * + + NULLIF ( - COUNT ( * ), - 62 ) + + 57 + + COUNT ( * ) * + 41 AS col0, NULLIF ( - - 71, - COUNT ( * ) )
----
NULL
71

query I rowsort
SELECT - 56 + + + 3 col2
----
-53

query I rowsort
SELECT 32 * + 65 + 61 - + 80
----
2061

query I rowsort
SELECT ALL - 24 + 8 AS col1
----
-16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3651
SELECT 83 DIV + + 6 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3651
SELECT 83 / + + 6 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT ALL + 25 + + + MAX( DISTINCT + 61 ) + + 10 * ( - COALESCE ( - + 19, 92 * + + MIN( 80 ) * - - 75 + - 41 ) )
----
276

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL + 25 + + + MAX ( DISTINCT + 61 ) + + 10 * ( - COALESCE ( - + 19, 92 * + + MIN ( 80 ) * - - 75 + - 41 ) )
----
276

query I rowsort
SELECT DISTINCT + 53 * - + 68 AS col1
----
-3604

query I rowsort
SELECT ALL - 62 + + + 19 AS col2
----
-43

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

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

query I rowsort
SELECT ALL - COALESCE ( + + 9, + 12 + + 24, 61 ) AS col1
----
-9

query I rowsort
SELECT DISTINCT - 80 + - 45
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3658
SELECT ALL ( - CAST( - 17 AS SIGNED ) ) * + 66 AS col1
----
1122

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL ( - CAST ( - 17 AS INTEGER ) ) * + 66 AS col1
----
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL - COUNT( ALL + 9 ) + - 9
----
-10

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL - COUNT ( ALL + 9 ) + - 9
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3660
SELECT 88 + - 47 * + - ( + 33 ) AS col0, + COALESCE ( - - 9, + COUNT( * ), - - 57 ) * - 93 + + 64 * - + 91 * + 43 DIV + - COUNT( * )
----
1639
249595

skipif mysql # not compatible
query II rowsort label-3660
SELECT 88 + - 47 * + - ( + 33 ) AS col0, + COALESCE ( - - 9, + COUNT ( * ), - - 57 ) * - 93 + + 64 * - + 91 * + 43 / + - COUNT ( * )
----
1639
249595

query I rowsort
SELECT - 23 * - 97 * - 95 - + 51 * + 71 * + + 70
----
-465415

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL + MAX( NULLIF ( + - 22, - 36 ) ) * + 2
----
-44

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL + MAX ( NULLIF ( + - 22, - 36 ) ) * + 2
----
-44

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3665
SELECT ALL 98 - 5 AS col0, 62 DIV 88
----
93
0

skipif mysql # not compatible
query II rowsort label-3665
SELECT ALL 98 - 5 AS col0, 62 / 88
----
93
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT SUM( + - ( 46 ) ) + 59 + - - CAST( - COUNT( * ) AS SIGNED ) + - CASE + 93 WHEN - 59 / + 15 THEN COUNT( * ) END + - 79 + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3666
SELECT SUM ( + - ( 46 ) ) + 59 + - - CAST ( - COUNT ( * ) AS INTEGER ) + - CASE + 93 WHEN - 59 / + 15 THEN COUNT ( * ) END + - 79 + - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT + 81 + - 90 * - COUNT( * ) * - - 29 * - 15 * + - MAX( ALL 41 )
----
1605231

skipif mysql # not compatible
query I rowsort label-3667
SELECT + 81 + - 90 * - COUNT ( * ) * - - 29 * - 15 * + - MAX ( ALL 41 )
----
1605231

query I rowsort
SELECT - 48 * - + 3 * + 45
----
6480

onlyif mysql # aggregate syntax: 
query II rowsort label-3669
SELECT + 17 * + 83 AS col2, COUNT( * ) AS col1
----
1411
1

skipif mysql # not compatible
query II rowsort label-3669
SELECT + 17 * + 83 AS col2, COUNT ( * ) AS col1
----
1411
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT NULLIF ( + 81, + CASE - 51 WHEN + 90 THEN + - COUNT( * ) ELSE NULL END * + 63 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3670
SELECT NULLIF ( + 81, + CASE - 51 WHEN + 90 THEN + - COUNT ( * ) ELSE NULL END * + 63 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3671
SELECT + 44 + - 21 col2, + 32 + NULLIF ( + + 10, + COUNT( * ) + - 70 + - + 11 ) * - 61 AS col1
----
23
-578

skipif mysql # not compatible
query II rowsort label-3671
SELECT + 44 + - 21 col2, + 32 + NULLIF ( + + 10, + COUNT ( * ) + - 70 + - + 11 ) * - 61 AS col1
----
23
-578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3672
SELECT + + 11 * + + ( - - NULLIF ( - 32, + - 25 ) ) * - CAST( NULL AS SIGNED ) * + ( - CAST( NULL AS SIGNED ) ) * 87 + + - 42 + - - 5 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT + + 11 * + + ( - - NULLIF ( - 32, + - 25 ) ) * - CAST ( NULL AS INTEGER ) * + ( - CAST ( NULL AS INTEGER ) ) * 87 + + - 42 + - - 5 + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + - NULLIF ( + 34, AVG ( 13 ) )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3674
SELECT + COUNT( * ) * - 94 + 23 * CAST( NULL AS SIGNED ) * + 51 * + COUNT( * ) * + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT + COUNT ( * ) * - 94 + 23 * CAST ( NULL AS INTEGER ) * + 51 * + COUNT ( * ) * + + 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3675
SELECT CASE 8 WHEN - ( + - 48 ) THEN NULL WHEN + 52 THEN - 75 * - + COALESCE ( - 76, + 80 * + CAST( COUNT( ALL - 87 ) AS SIGNED ) + - ( - 74 ) * + MAX( - + 1 ) ) - + 71 WHEN + SUM( DISTINCT 84 ) * + SUM( - - 22 ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT CASE 8 WHEN - ( + - 48 ) THEN NULL WHEN + 52 THEN - 75 * - + COALESCE ( - 76, + 80 * + CAST ( COUNT ( ALL - 87 ) AS INTEGER ) + - ( - 74 ) * + MAX ( - + 1 ) ) - + 71 WHEN + SUM ( DISTINCT 84 ) * + SUM ( - - 22 ) THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3676
SELECT + 39 + ( + CAST( - 87 AS SIGNED ) ) * - + COUNT( * ) + + 54
----
180

skipif mysql # not compatible
query I rowsort label-3676
SELECT + 39 + ( + CAST ( - 87 AS INTEGER ) ) * - + COUNT ( * ) + + 54
----
180

query I rowsort
SELECT + 95 * 83 + + 95 AS col2
----
7980

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT CASE ( CASE ( + 53 ) WHEN + 94 THEN - - 56 + - - 25 END ) WHEN - NULLIF ( + 84, 24 * + + 60 + - 80 ) + + 87 + - 25 / + 49 THEN - NULLIF ( COUNT( + COALESCE ( - 91, - 3 ) ), 92 ) * + - 99 WHEN + COALESCE ( + 86, - + 13 ) * - 92 * + 70 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT CASE ( CASE ( + 53 ) WHEN + 94 THEN - - 56 + - - 25 END ) WHEN - NULLIF ( + 84, 24 * + + 60 + - 80 ) + + 87 + - 25 / + 49 THEN - NULLIF ( COUNT ( + COALESCE ( - 91, - 3 ) ), 92 ) * + - 99 WHEN + COALESCE ( + 86, - + 13 ) * - 92 * + 70 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 63 col1, + 30
----
63
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3680
SELECT + ( - 70 ) * - 77 - - 31 / - + 68 * - - 45 / - CAST( NULL AS DECIMAL ) / + - 9 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3680
SELECT + ( - 70 ) * - 77 - - 31 / - + 68 * - - 45 / - CAST ( NULL AS REAL ) / + - 9 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3681
SELECT DISTINCT + COALESCE ( - 55, + 47 + 87 ) * 2 DIV + 12 - - + 50 * - - 95
----
4741

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT + COALESCE ( - 55, + 47 + 87 ) * 2 / + 12 - - + 50 * - - 95
----
4741

query I rowsort
SELECT ALL + 4 * + 54
----
216

query I rowsort
SELECT - 49 * + 85 AS col1
----
-4165

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT DISTINCT CASE COUNT( * ) WHEN + - COUNT( ALL - 14 ) THEN + 27 * - 93 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT CASE COUNT ( * ) WHEN + - COUNT ( ALL - 14 ) THEN + 27 * - 93 END AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3686
SELECT DISTINCT + COALESCE ( 10, + 3 ) - 27 DIV 89
----
10

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT + COALESCE ( 10, + 3 ) - 27 / 89
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT ALL - 59 DIV COALESCE ( 30, 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - 59 / COALESCE ( 30, 54 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT DISTINCT COALESCE ( 87, SUM( + ( 37 ) ) * 46 )
----
87

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT COALESCE ( 87, SUM ( + ( 37 ) ) * 46 )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3689
SELECT ALL CASE WHEN ( NULL ) IS NOT NULL THEN + 6 WHEN - COUNT( * ) / + ( - CASE + ( ( - CAST( NULL AS SIGNED ) ) ) WHEN ( ( 80 ) ) THEN + 32 ELSE 54 END ) BETWEEN ( NULLIF ( AVG ( 59 ), 94 ) ) + - 75 AND NULL THEN - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL CASE WHEN ( NULL ) IS NOT NULL THEN + 6 WHEN - COUNT ( * ) / + ( - CASE + ( ( - CAST ( NULL AS INTEGER ) ) ) WHEN ( ( 80 ) ) THEN + 32 ELSE 54 END ) BETWEEN ( NULLIF ( AVG ( 59 ), 94 ) ) + - 75 AND NULL THEN - 11 END
----
NULL

query I rowsort
SELECT - 54 * 58 AS col0
----
-3132

query I rowsort
SELECT - 65 - - 60 AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT - 71 DIV - 2
----
35

skipif mysql # not compatible
query I rowsort label-3692
SELECT - 71 / - 2
----
35

query I rowsort
SELECT - 59 * + 54
----
-3186

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT - 18 * COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3694
SELECT - 18 * COUNT ( * ) AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3695
SELECT - COALESCE ( COUNT( * ), 75 + CAST( NULL AS SIGNED ) DIV - 17 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3695
SELECT - COALESCE ( COUNT ( * ), 75 + CAST ( NULL AS INTEGER ) / - 17 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 24 + - 86 col1
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-3697
SELECT ALL 6 * + COALESCE ( + 71 DIV + 30, + 71 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL 6 * + COALESCE ( + 71 / + 30, + 71 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL + 97 * + SUM( 94 ) AS col2
----
9118

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + 97 * + SUM ( 94 ) AS col2
----
9118

query I rowsort
SELECT DISTINCT - ( 33 ) + - 77
----
-110

query I rowsort
SELECT DISTINCT 58 + 35 * COALESCE ( - 31 + - 98, 62 * - ( 24 * - 78 ) )
----
-4457

query I rowsort
SELECT ALL + 70 + + 21
----
91

query I rowsort
SELECT - 52 + 29 col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3703
SELECT + 35 DIV + COUNT( * ) + 64 * 56
----
3619

skipif mysql # not compatible
query I rowsort label-3703
SELECT + 35 / + COUNT ( * ) + 64 * 56
----
3619

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

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 99 + + 28 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT ALL 98 DIV - 63 + 19
----
18

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL 98 / - 63 + 19
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3706
SELECT + CASE + COALESCE ( AVG ( - 13 ), 96 + + 28 ) WHEN + 38 THEN - CAST( NULL AS DECIMAL ) / + 96 WHEN 91 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT + CASE + COALESCE ( AVG ( - 13 ), 96 + + 28 ) WHEN + 38 THEN - CAST ( NULL AS REAL ) / + 96 WHEN 91 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3707
SELECT ALL 4 DIV 52 + + ( 82 ) * - 18 AS col0
----
-1476

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL 4 / 52 + + ( 82 ) * - 18 AS col0
----
-1476

query I rowsort
SELECT + 98 * + 11 AS col1
----
1078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3709
SELECT ALL - 34 / - CASE 15 WHEN ( + NULLIF ( + 55, 27 + 83 ) ) + + 28 THEN NULL WHEN 30 THEN NULL WHEN + 21 THEN NULL WHEN - 97 THEN + CAST( NULL AS SIGNED ) * 77 + + 54 / 40 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL - 34 / - CASE 15 WHEN ( + NULLIF ( + 55, 27 + 83 ) ) + + 28 THEN NULL WHEN 30 THEN NULL WHEN + 21 THEN NULL WHEN - 97 THEN + CAST ( NULL AS INTEGER ) * 77 + + 54 / 40 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3710
SELECT ALL ( - 89 ) DIV + 79 - - 66 * + 72
----
4751

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL ( - 89 ) / + 79 - - 66 * + 72
----
4751

query I rowsort
SELECT - 62 * - CASE COALESCE ( - 23, + ( ( 76 ) ), 48 - 3 ) WHEN + 63 THEN - 96 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT + 79 - - COALESCE ( - COUNT( * ), 39 * - COUNT( * ) ) * 73 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3712
SELECT + 79 - - COALESCE ( - COUNT ( * ), 39 * - COUNT ( * ) ) * 73 AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3713
SELECT + 85 DIV 63 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3713
SELECT + 85 / 63 AS col0
----
1

query I rowsort
SELECT + 61 * + 70
----
4270

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT DISTINCT + COUNT( + COALESCE ( 53, - 50 * + 99, - 96 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT + COUNT ( + COALESCE ( 53, - 50 * + 99, - 96 ) ) col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL + MAX( ALL 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + MAX ( ALL 20 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT - 15 * + 0 - - COUNT( * ) * 68
----
68

skipif mysql # not compatible
query I rowsort label-3719
SELECT - 15 * + 0 - - COUNT ( * ) * 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT DISTINCT + CASE + 10 WHEN - 30 * - 29 + COUNT( ALL - 35 ) THEN + 26 WHEN NULLIF ( + 60, - 6 ) * - 36 THEN - 88 + + 12 / - MAX( 16 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT + CASE + 10 WHEN - 30 * - 29 + COUNT ( ALL - 35 ) THEN + 26 WHEN NULLIF ( + 60, - 6 ) * - 36 THEN - 88 + + 12 / - MAX ( 16 ) END
----
NULL

query I rowsort
SELECT + 2 - 96
----
-94

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3723
SELECT + 8 * 81 + COUNT( * ) DIV + 20 AS col1
----
648

skipif mysql # not compatible
query I rowsort label-3723
SELECT + 8 * 81 + COUNT ( * ) / + 20 AS col1
----
648

query I rowsort
SELECT 11 * - 51 AS col1
----
-561

query I rowsort
SELECT 14 + 14 AS col0
----
28

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

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

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

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

query I rowsort
SELECT ALL + 66 * ( + 12 )
----
792

query I rowsort
SELECT ( - 26 ) + - 6 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT 55 * COUNT( 4 ) - - 21 col0
----
76

skipif mysql # not compatible
query I rowsort label-3730
SELECT 55 * COUNT ( 4 ) - - 21 col0
----
76

query I rowsort
SELECT 91 * 53
----
4823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT + 43 + 1 * CAST( NULL AS SIGNED ) AS col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT DISTINCT + 22 * - CAST( ( 77 ) AS SIGNED ) AS col1
----
-1694

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT + 22 * - CAST ( ( 77 ) AS INTEGER ) AS col1
----
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ALL - COUNT( * ) + - COUNT( * ) * 10
----
-11

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL - COUNT ( * ) + - COUNT ( * ) * 10
----
-11

query I rowsort
SELECT 83 + 9 * + 44 AS col1
----
479

query I rowsort
SELECT ALL + 30 + + 10 col1
----
40

query I rowsort
SELECT DISTINCT + 72 + + 2 AS col2
----
74

query I rowsort
SELECT ALL - 50 + - 75 * - 44
----
3250

query I rowsort
SELECT - 93 + 82
----
-11

query I rowsort
SELECT ALL - 39 + 15 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT CASE COUNT( * ) WHEN - CASE 42 WHEN + ( + 0 ) THEN - 93 WHEN 11 + MIN( - ( - 4 ) - - 67 * 5 ) THEN NULL END + 29 THEN NULL ELSE + 28 * + MIN( 50 ) + 25 END + 2 col1
----
1427

skipif mysql # not compatible
query I rowsort label-3741
SELECT CASE COUNT ( * ) WHEN - CASE 42 WHEN + ( + 0 ) THEN - 93 WHEN 11 + MIN ( - ( - 4 ) - - 67 * 5 ) THEN NULL END + 29 THEN NULL ELSE + 28 * + MIN ( 50 ) + 25 END + 2 col1
----
1427

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT 29 DIV 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3742
SELECT 29 / 66 AS col0
----
0

query I rowsort
SELECT DISTINCT - 56 + - 83 col2
----
-139

query I rowsort
SELECT ALL + 98 * + 58 AS col0
----
5684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3745
SELECT ALL + CASE - - 73 WHEN 17 + ( - COUNT( * ) ) THEN 80 WHEN COUNT( ALL - 23 ) / 14 THEN CASE ( CASE 38 WHEN + ( + CAST( NULL AS SIGNED ) ) THEN + COALESCE ( 86, + AVG ( DISTINCT 79 ) ) ELSE NULL END ) WHEN NULLIF ( + 88, + SUM( DISTINCT + 22 ) - 62 ) * 22 THEN 82 * MIN( 58 ) - - COUNT( * ) ELSE NULL END * + 1 END + + CAST( + 91 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + CASE - - 73 WHEN 17 + ( - COUNT ( * ) ) THEN 80 WHEN COUNT ( ALL - 23 ) / 14 THEN CASE ( CASE 38 WHEN + ( + CAST ( NULL AS INTEGER ) ) THEN + COALESCE ( 86, + AVG ( DISTINCT 79 ) ) ELSE NULL END ) WHEN NULLIF ( + 88, + SUM ( DISTINCT + 22 ) - 62 ) * 22 THEN 82 * MIN ( 58 ) - - COUNT ( * ) ELSE NULL END * + 1 END + + CAST ( + 91 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 21 * + 39 AS col0
----
-819

query I rowsort
SELECT DISTINCT + 94 - + + 41 AS col0
----
53

query I rowsort
SELECT 18 * - 20 * - 2 col0
----
720

onlyif mysql # DIV for integer division: 
query I rowsort label-3749
SELECT - 11 DIV - 40 + + 79 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3749
SELECT - 11 / - 40 + + 79 AS col1
----
79

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

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

query I rowsort
SELECT 8 * 86
----
688

query I rowsort
SELECT 14 + - 40 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT COUNT( * ) * + + 92 * - 87 AS col0
----
-8004

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT COUNT ( * ) * + + 92 * - 87 AS col0
----
-8004

onlyif mysql # DIV for integer division: 
query I rowsort label-3754
SELECT DISTINCT - 86 DIV + + 96
----
0

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT - 86 / + + 96
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT 26 + + + NULLIF ( - MAX( - 87 ), + ( 5 ) ) + 30 * 26 * + MIN( ALL - 48 ) AS col0
----
-37327

skipif mysql # not compatible
query I rowsort label-3757
SELECT 26 + + + NULLIF ( - MAX ( - 87 ), + ( 5 ) ) + 30 * 26 * + MIN ( ALL - 48 ) AS col0
----
-37327

onlyif mysql # DIV for integer division: 
query I rowsort label-3758
SELECT + 75 DIV - NULLIF ( 86, 33 )
----
0

skipif mysql # not compatible
query I rowsort label-3758
SELECT + 75 / - NULLIF ( 86, 33 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3759
SELECT DISTINCT - NULLIF ( - ( 31 ), + MIN( ALL CAST( NULL AS SIGNED ) ) ) DIV COUNT( ALL + ( 48 ) ) col1
----
31

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT - NULLIF ( - ( 31 ), + MIN ( ALL CAST ( NULL AS INTEGER ) ) ) / COUNT ( ALL + ( 48 ) ) col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3760
SELECT - 41 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-3760
SELECT - 41 / 47
----
0

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

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

query I rowsort
SELECT ALL ( - + COALESCE ( 87, - 0 ) ) AS col1
----
-87

query I rowsort
SELECT ALL 94 + 88 AS col0
----
182

query I rowsort
SELECT ALL - 43 + 47 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT + COUNT( 97 ) * 46
----
46

skipif mysql # not compatible
query I rowsort label-3765
SELECT + COUNT ( 97 ) * 46
----
46

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

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

query I rowsort
SELECT - COALESCE ( 51, + 20 ) + 25 * - 83 col2
----
-2126

query I rowsort
SELECT ALL - + 21 + - - 31 AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3769
SELECT - 66 * + COUNT( CAST( 58 AS SIGNED ) )
----
-66

skipif mysql # not compatible
query I rowsort label-3769
SELECT - 66 * + COUNT ( CAST ( 58 AS INTEGER ) )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3770
SELECT ALL 36 * CASE - MAX( + 64 ) WHEN + COALESCE ( 61, 54 + + 30, + ( - COUNT( * ) ) * 58 ) * 48 + + 45 * 18 THEN - 23 ELSE 6 DIV + 33 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL 36 * CASE - MAX ( + 64 ) WHEN + COALESCE ( 61, 54 + + 30, + ( - COUNT ( * ) ) * 58 ) * 48 + + 45 * 18 THEN - 23 ELSE 6 / + 33 END AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT DISTINCT + NULLIF ( COUNT( 84 ), - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT + NULLIF ( COUNT ( 84 ), - 25 )
----
1

query I rowsort
SELECT 89 + + + 75 - + 39
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT DISTINCT 22 - - - 19 * - - SUM( 26 ) * + 76 AS col1
----
-37522

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT 22 - - - 19 * - - SUM ( 26 ) * + 76 AS col1
----
-37522

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

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

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

query I rowsort
SELECT ( - ( + 41 ) ) * - 35 AS col2
----
1435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3777
SELECT 24 + ( 60 ) + CAST( COALESCE ( COUNT( * ), COUNT( * ) + SUM( DISTINCT + 23 ) * COUNT( * ) ) + + 17 AS SIGNED ) * 97
----
1830

skipif mysql # not compatible
query I rowsort label-3777
SELECT 24 + ( 60 ) + CAST ( COALESCE ( COUNT ( * ), COUNT ( * ) + SUM ( DISTINCT + 23 ) * COUNT ( * ) ) + + 17 AS INTEGER ) * 97
----
1830

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL + 45 * + COUNT( * ) col0
----
45

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + 45 * + COUNT ( * ) col0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3780
SELECT 8 DIV 22 * 84 col0
----
0

skipif mysql # not compatible
query I rowsort label-3780
SELECT 8 / 22 * 84 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3781
SELECT ALL COUNT( * ) DIV - SUM( ALL + 32 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL COUNT ( * ) / - SUM ( ALL + 32 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3782
SELECT DISTINCT - 46 AS col2, MAX( ALL + 31 ) * + 43 AS col1
----
-46
1333

skipif mysql # not compatible
query II rowsort label-3782
SELECT DISTINCT - 46 AS col2, MAX ( ALL + 31 ) * + 43 AS col1
----
-46
1333

query I rowsort
SELECT 17 * - + 26
----
-442

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT DISTINCT - CAST( - - 96 AS SIGNED ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT - CAST ( - - 96 AS INTEGER ) AS col2
----
-96

query I rowsort
SELECT - 49 * ( - NULLIF ( - 94, 99 ) ) AS col0
----
-4606

query I rowsort
SELECT - 55 * 30
----
-1650

query I rowsort
SELECT ALL + 47 * 0 * + - 25 + - 69 * + 37 AS col0
----
-2553

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

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

query I rowsort
SELECT - 43 + - 85 - + - 9 * 94
----
718

query I rowsort
SELECT - 12 * 45 AS col1
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT NULLIF ( 60, + + 57 * SUM( - 11 * 83 ) )
----
60

skipif mysql # not compatible
query I rowsort label-3792
SELECT NULLIF ( 60, + + 57 * SUM ( - 11 * 83 ) )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3793
SELECT ALL - + COUNT( * ) * + 55 + - - 4 DIV - ( 31 DIV + 9 )
----
-56

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL - + COUNT ( * ) * + 55 + - - 4 / - ( 31 / + 9 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL ( + + SUM( ALL + 9 ) ) * SUM( ALL + 52 * 77 ) + ( + 0 )
----
36036

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL ( + + SUM ( ALL + 9 ) ) * SUM ( ALL + 52 * 77 ) + ( + 0 )
----
36036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3795
SELECT ALL + 72 + CAST( COUNT( * ) AS SIGNED ) * 26
----
98

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL + 72 + CAST ( COUNT ( * ) AS INTEGER ) * 26
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT + - COUNT( * ) AS col0, 86 * - COUNT( * ) + 49 col1
----
-1
-37

skipif mysql # not compatible
query II rowsort label-3796
SELECT + - COUNT ( * ) AS col0, 86 * - COUNT ( * ) + 49 col1
----
-1
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3797
SELECT - 61 * - CASE - CAST( - 34 AS SIGNED ) WHEN COUNT( DISTINCT + 38 ) + 88 THEN + 69 WHEN + AVG ( DISTINCT 15 ) THEN 8 END + - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3797
SELECT - 61 * - CASE - CAST ( - 34 AS INTEGER ) WHEN COUNT ( DISTINCT + 38 ) + 88 THEN + 69 WHEN + AVG ( DISTINCT 15 ) THEN 8 END + - 96 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3798
SELECT DISTINCT + 87, 78 + + CAST( NULL AS SIGNED ) * - 79 AS col0
----
87
NULL

skipif mysql # not compatible
query II rowsort label-3798
SELECT DISTINCT + 87, 78 + + CAST ( NULL AS INTEGER ) * - 79 AS col0
----
87
NULL

query I rowsort
SELECT - 14 + + 33 AS col0
----
19

query I rowsort
SELECT - ( - 36 ) + - 10 AS col2
----
26

query I rowsort
SELECT + 98 - + 0
----
98

query I rowsort
SELECT DISTINCT - 20 * + 24 col2
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT + + SUM( + + 6 ) * - + 40 * - ( MAX( + 31 ) )
----
7440

skipif mysql # not compatible
query I rowsort label-3803
SELECT + + SUM ( + + 6 ) * - + 40 * - ( MAX ( + 31 ) )
----
7440

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3804
SELECT DISTINCT + COALESCE ( - - ( + 88 ), CAST( NULL AS SIGNED ) ) DIV 36
----
2

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT + COALESCE ( - - ( + 88 ), CAST ( NULL AS INTEGER ) ) / 36
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3805
SELECT DISTINCT + - 40 - - 61 + NULLIF ( - 1, MAX( ALL 57 ) ) DIV + MIN( - 69 * 55 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT + - 40 - - 61 + NULLIF ( - 1, MAX ( ALL 57 ) ) / + MIN ( - 69 * 55 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL + NULLIF ( + 78, + - COUNT( 60 ) ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL + NULLIF ( + 78, + - COUNT ( 60 ) ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT + 51 + - MIN( 76 ) * + + ( - COUNT( * ) ) * + 92 AS col1
----
7043

skipif mysql # not compatible
query I rowsort label-3807
SELECT + 51 + - MIN ( 76 ) * + + ( - COUNT ( * ) ) * + 92 AS col1
----
7043

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT + SUM( - ( + - 9 ) ) * - 2
----
-18

skipif mysql # not compatible
query I rowsort label-3808
SELECT + SUM ( - ( + - 9 ) ) * - 2
----
-18

query II rowsort
SELECT + 69 * 0 AS col2, - 36
----
0
-36

query I rowsort
SELECT - 21 + 86
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL COUNT( * ) * - - 79 * + 90 AS col2
----
7110

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL COUNT ( * ) * - - 79 * + 90 AS col2
----
7110

query I rowsort
SELECT + ( - 21 ) * - 73 + - 82
----
1451

query I rowsort
SELECT ALL 39 * 70 AS col0
----
2730

query II rowsort
SELECT - ( + 98 ), - 38 AS col2
----
-98
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT ALL CASE WHEN NULL IS NULL OR NOT 74 <> + 66 THEN 39 WHEN NOT 36 + + 99 = SUM( DISTINCT 42 ) * - 45 + + 39 * 93 THEN NULL ELSE - 33 END col2
----
39

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL CASE WHEN NULL IS NULL OR NOT 74 <> + 66 THEN 39 WHEN NOT 36 + + 99 = SUM ( DISTINCT 42 ) * - 45 + + 39 * 93 THEN NULL ELSE - 33 END col2
----
39

query I rowsort
SELECT + 3 + - - 72
----
75

query I rowsort
SELECT DISTINCT + CASE + + 82 WHEN + 61 + 73 + + 64 * + 86 THEN + 76 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3818
SELECT DISTINCT + MAX( DISTINCT - CAST( - + 67 AS SIGNED ) )
----
67

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

query I rowsort
SELECT 68 * 6 * - 40 * + + 24 + - 80
----
-391760

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT - 40 * - 58 + COALESCE ( 59, - 71, 40 ) * COUNT( * )
----
2379

skipif mysql # not compatible
query I rowsort label-3820
SELECT - 40 * - 58 + COALESCE ( 59, - 71, 40 ) * COUNT ( * )
----
2379

query I rowsort
SELECT - CASE 20 WHEN + CASE AVG ( + 82 ) WHEN + 89 THEN - 98 / 83 ELSE NULL END THEN - 9 END - ( - 48 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT 41 DIV 11 * + 95 + 19
----
304

skipif mysql # not compatible
query I rowsort label-3822
SELECT 41 / 11 * + 95 + 19
----
304

query I rowsort
SELECT ALL + 14 * 89 AS col2
----
1246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3824
SELECT + COUNT( * ) DIV + 63 DIV - + 12 col0
----
0

skipif mysql # not compatible
query I rowsort label-3824
SELECT + COUNT ( * ) / + 63 / - + 12 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3825
SELECT ALL - 26 * + 53 + + CAST( NULL AS SIGNED ) + - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL - 26 * + 53 + + CAST ( NULL AS INTEGER ) + - - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT - - 23 * - 0 * - - 69 * ( - 25 ) * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3826
SELECT - - 23 * - 0 * - - 69 * ( - 25 ) * + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 7 * - 71 * + 36 + 43
----
-17849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT - CAST( NULL AS SIGNED ) + + - NULLIF ( + 90, - + 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT - CAST ( NULL AS INTEGER ) + + - NULLIF ( + 90, - + 27 ) AS col0
----
NULL

query I rowsort
SELECT + 85 * 4
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT + COALESCE ( - COUNT( * ), + 38 + + COUNT( DISTINCT 13 ), + 70 + - 94 ) * + 38 + - 31 * COALESCE ( - 65 + - 19, 97 + - 10 )
----
2566

skipif mysql # not compatible
query I rowsort label-3830
SELECT + COALESCE ( - COUNT ( * ), + 38 + + COUNT ( DISTINCT 13 ), + 70 + - 94 ) * + 38 + - 31 * COALESCE ( - 65 + - 19, 97 + - 10 )
----
2566

query I rowsort
SELECT - + 55 * COALESCE ( - 54, + - 49 )
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL + + COUNT( DISTINCT - 35 )
----
1

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL + + COUNT ( DISTINCT - 35 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL - COUNT( * ) * - - COUNT( ALL + - 10 ) * - 60 + - 36 * + 65
----
-2280

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL - COUNT ( * ) * - - COUNT ( ALL + - 10 ) * - 60 + - 36 * + 65
----
-2280

onlyif mysql # aggregate syntax: 
query II rowsort label-3834
SELECT - + COUNT( * ) * 7, + 39 AS col2
----
-7
39

skipif mysql # not compatible
query II rowsort label-3834
SELECT - + COUNT ( * ) * 7, + 39 AS col2
----
-7
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT DISTINCT + COUNT( - NULLIF ( - - 69, ( - 24 ) ) ) * + 44
----
44

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT + COUNT ( - NULLIF ( - - 69, ( - 24 ) ) ) * + 44
----
44

query I rowsort
SELECT - - 61 * + + 26 + 90 AS col0
----
1676

onlyif mysql # DIV for integer division: 
query I rowsort label-3837
SELECT - NULLIF ( 70, + 23 ) DIV + 62 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3837
SELECT - NULLIF ( 70, + 23 ) / + 62 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT - COUNT( * ) - 61 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-3838
SELECT - COUNT ( * ) - 61 AS col2
----
-62

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

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

query I rowsort
SELECT - 16 - + 5 + - + 45
----
-66

query I rowsort
SELECT + 9 * 5 AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3842
SELECT ALL 80 / ( + CASE + 46 WHEN - 61 THEN 54 * - 97 + - CAST( NULL AS SIGNED ) * - 1 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL 80 / ( + CASE + 46 WHEN - 61 THEN 54 * - 97 + - CAST ( NULL AS INTEGER ) * - 1 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3843
SELECT + 3 * - - ( - + 79 ), + 58 - COUNT( * ) + 54 col1
----
-237
111

skipif mysql # not compatible
query II rowsort label-3843
SELECT + 3 * - - ( - + 79 ), + 58 - COUNT ( * ) + 54 col1
----
-237
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3844
SELECT COALESCE ( + 76, - 71, - SUM( DISTINCT 85 ) DIV COUNT( * ) + 38 * 77, 45 + + 15 ) - 73 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3844
SELECT COALESCE ( + 76, - 71, - SUM ( DISTINCT 85 ) / COUNT ( * ) + 38 * 77, 45 + + 15 ) - 73 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT ( + - 59 ) + + - NULLIF ( 38, - - 44 + + COUNT( * ) * 42 ) - - 49
----
-48

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT ( + - 59 ) + + - NULLIF ( 38, - - 44 + + COUNT ( * ) * 42 ) - - 49
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT NULLIF ( + 77, - - 64 ) + + MIN( ALL + - 63 )
----
14

skipif mysql # not compatible
query I rowsort label-3846
SELECT NULLIF ( + 77, - - 64 ) + + MIN ( ALL + - 63 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3847
SELECT CAST( - 25 AS SIGNED ) + COUNT( * ) + - ( - 55 ) + 60 DIV - 62 * - MAX( - 90 )
----
31

skipif mysql # not compatible
query I rowsort label-3847
SELECT CAST ( - 25 AS INTEGER ) + COUNT ( * ) + - ( - 55 ) + 60 / - 62 * - MAX ( - 90 )
----
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT 72 + + COALESCE ( - 41, - 81 + ( COUNT( DISTINCT - 8 ) ) + + ( - 58 ) * - ( - 18 ) )
----
31

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT 72 + + COALESCE ( - 41, - 81 + ( COUNT ( DISTINCT - 8 ) ) + + ( - 58 ) * - ( - 18 ) )
----
31

query I rowsort
SELECT DISTINCT ( - 71 ) + + 93 * + 40 AS col0
----
3649

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

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL 7 + - COUNT ( * ) AS col2
----
6

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

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

query I rowsort
SELECT DISTINCT 73 + - 70 AS col2
----
3

query I rowsort
SELECT NULLIF ( + 55, - 30 - - 47 )
----
55

query I rowsort
SELECT ALL ( 69 ) + - 23
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT 83 + 1 - + - 44 * MAX( 76 )
----
3428

skipif mysql # not compatible
query I rowsort label-3856
SELECT 83 + 1 - + - 44 * MAX ( 76 )
----
3428

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT DISTINCT - CASE + 5 WHEN ( + COUNT( * ) ) THEN NULL ELSE - 77 + ( 14 ) END AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT - CASE + 5 WHEN ( + COUNT ( * ) ) THEN NULL ELSE - 77 + ( 14 ) END AS col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3859
SELECT - 6 * - + MAX( ALL - 77 ) - - 48 + - 8 + COUNT( * ) DIV + 74 + - 86 * 81 AS col2
----
-7388

skipif mysql # not compatible
query I rowsort label-3859
SELECT - 6 * - + MAX ( ALL - 77 ) - - 48 + - 8 + COUNT ( * ) / + 74 + - 86 * 81 AS col2
----
-7388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3860
SELECT CAST( - ( + - 9 ) AS SIGNED ) / - CASE + 37 WHEN 83 + - 5 THEN 44 WHEN - 19 * - 6 THEN COUNT( * ) * + CAST( NULL AS SIGNED ) END - + COUNT( + 45 ) * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT CAST ( - ( + - 9 ) AS INTEGER ) / - CASE + 37 WHEN 83 + - 5 THEN 44 WHEN - 19 * - 6 THEN COUNT ( * ) * + CAST ( NULL AS INTEGER ) END - + COUNT ( + 45 ) * 42
----
NULL

query I rowsort
SELECT DISTINCT - 73 * + 36
----
-2628

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT DISTINCT + MIN( ALL 18 ) - - 91 * 55 AS col1
----
5023

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT + MIN ( ALL 18 ) - - 91 * 55 AS col1
----
5023

query I rowsort
SELECT ALL - 40 * - 66 + + 83 AS col2
----
2723

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT 52 - - 23 - + 87 DIV - 90 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3864
SELECT 52 - - 23 - + 87 / - 90 AS col0
----
75

query II rowsort
SELECT 98 + 89 + - - 48 AS col1, - 66 + - 9 + - 5 AS col1
----
235
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3866
SELECT ALL - + CAST( + - AVG ( + + 31 ) AS SIGNED ) AS col2, 8 + + + COUNT( * ) + + COUNT( * ) AS col1
----
31
10

skipif mysql # not compatible
query II rowsort label-3866
SELECT ALL - + CAST ( + - AVG ( + + 31 ) AS INTEGER ) AS col2, 8 + + + COUNT ( * ) + + COUNT ( * ) AS col1
----
31
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT ( 44 ) * + COUNT( * ) * COUNT( * ) * 54 + 18 AS col2
----
2394

skipif mysql # not compatible
query I rowsort label-3867
SELECT ( 44 ) * + COUNT ( * ) * COUNT ( * ) * 54 + 18 AS col2
----
2394

query I rowsort
SELECT DISTINCT + 37 * + - 7 * CASE + + 47 WHEN + 89 THEN NULL ELSE + 43 END * 23
----
-256151

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT 27 - - COUNT( * ) + - 11 col0
----
17

skipif mysql # not compatible
query I rowsort label-3871
SELECT 27 - - COUNT ( * ) + - 11 col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3872
SELECT DISTINCT + COUNT( * ) + + CAST( 84 AS SIGNED ) - + + 19 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT + COUNT ( * ) + + CAST ( 84 AS INTEGER ) - + + 19 AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3873
SELECT ALL 61 AS col0, CASE - 94 WHEN - + MIN( - 33 ) + 59 THEN 75 * COALESCE ( 28, - SUM( ALL - 23 ) ) + CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) END
----
61
NULL

skipif mysql # not compatible
query II rowsort label-3873
SELECT ALL 61 AS col0, CASE - 94 WHEN - + MIN ( - 33 ) + 59 THEN 75 * COALESCE ( 28, - SUM ( ALL - 23 ) ) + CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) END
----
61
NULL

query I rowsort
SELECT 27 + + 6 + - - 77 * - 76
----
-5819

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3876
SELECT 33 DIV + - CAST( + 18 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3876
SELECT 33 / + - CAST ( + 18 AS INTEGER )
----
-1

query I rowsort
SELECT ALL - ( - 80 ) + + 66 + - 27
----
119

query I rowsort
SELECT 14 + - + 64 col2
----
-50

query I rowsort
SELECT 17 * 26
----
442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3880
SELECT 23 + - 45 * + - COALESCE ( + 88, - + 48 DIV + AVG ( + 74 ) + 82 * + MAX( COALESCE ( 41, + 52 * 13, + 80 ) ) )
----
3983

skipif mysql # not compatible
query I rowsort label-3880
SELECT 23 + - 45 * + - COALESCE ( + 88, - + 48 / + AVG ( + 74 ) + 82 * + MAX ( COALESCE ( 41, + 52 * 13, + 80 ) ) )
----
3983

onlyif mysql # DIV for integer division: 
query I rowsort label-3881
SELECT 59 DIV ( + ( ( - 46 ) ) ) * 2 + + 23
----
21

skipif mysql # not compatible
query I rowsort label-3881
SELECT 59 / ( + ( ( - 46 ) ) ) * 2 + + 23
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3882
SELECT DISTINCT 33, 50 / + CAST( NULL AS SIGNED ) AS col2
----
33
NULL

skipif mysql # not compatible
query II rowsort label-3882
SELECT DISTINCT 33, 50 / + CAST ( NULL AS INTEGER ) AS col2
----
33
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT DISTINCT + MIN( ALL - - ( + 52 ) ) * NULLIF ( - 21, + - 30 ) + + 67
----
-1025

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT + MIN ( ALL - - ( + 52 ) ) * NULLIF ( - 21, + - 30 ) + + 67
----
-1025

query I rowsort
SELECT 49 + - - 23 AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3886
SELECT DISTINCT 25 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT 25 / + 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3887
SELECT + + CASE 25 WHEN - CASE - - 20 WHEN - 68 + CAST( NULL AS SIGNED ) + COALESCE ( SUM( - 26 ), 13 * + CAST( NULL AS SIGNED ) ) * COUNT( ( - 95 ) ) THEN - 11 WHEN 58 THEN - ( - COUNT( * ) ) ELSE NULL END THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT + + CASE 25 WHEN - CASE - - 20 WHEN - 68 + CAST ( NULL AS INTEGER ) + COALESCE ( SUM ( - 26 ), 13 * + CAST ( NULL AS INTEGER ) ) * COUNT ( ( - 95 ) ) THEN - 11 WHEN 58 THEN - ( - COUNT ( * ) ) ELSE NULL END THEN CAST ( NULL AS INTEGER ) END
----
NULL

query II rowsort
SELECT ALL - + 84 AS col1, 84 + 11 AS col0
----
-84
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT - NULLIF ( 98, + MAX( DISTINCT + 65 ) ) * - 62 + - NULLIF ( 28, + 14 - 73 ) * COUNT( * )
----
6048

skipif mysql # not compatible
query I rowsort label-3889
SELECT - NULLIF ( 98, + MAX ( DISTINCT + 65 ) ) * - 62 + - NULLIF ( 28, + 14 - 73 ) * COUNT ( * )
----
6048

query I rowsort
SELECT DISTINCT 6 * - - 59
----
354

query I rowsort
SELECT + 58 * - 34 * ( - 58 ) * 16 + 38 + 7 * 11 + 81 col1
----
1830212

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT 75 + - + COUNT( * ) - + 14
----
60

skipif mysql # not compatible
query I rowsort label-3893
SELECT 75 + - + COUNT ( * ) - + 14
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT DISTINCT - 33 * - COUNT( * ) - 75
----
-42

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT - 33 * - COUNT ( * ) - 75
----
-42

query I rowsort
SELECT + 66 * - 13 - + + 90 + - 13 + + 57
----
-904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3896
SELECT ALL CAST( + - 4 AS SIGNED ) * 86 * + - 66
----
22704

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL CAST ( + - 4 AS INTEGER ) * 86 * + - 66
----
22704

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

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

query I rowsort
SELECT ALL - ( + - 96 ) col2
----
96

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

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

query I rowsort
SELECT + 57 * + 16 col2
----
912

query II rowsort
SELECT + 41, + 59 AS col2
----
41
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT ALL 36 / - CAST( NULL AS SIGNED ) + - 28 / - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL 36 / - CAST ( NULL AS INTEGER ) + - 28 / - 12
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3903
SELECT ALL - + COUNT( * ) AS col2, - 20 * - 59 AS col0
----
-1
1180

skipif mysql # not compatible
query II rowsort label-3903
SELECT ALL - + COUNT ( * ) AS col2, - 20 * - 59 AS col0
----
-1
1180

query II rowsort
SELECT DISTINCT - + 84 AS col0, - 30
----
-84
-30

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

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

query I rowsort
SELECT ALL - 17 + - 54 + 96 * + 5 AS col2
----
409

onlyif mysql # DIV for integer division: 
query I rowsort label-3907
SELECT ALL 16 DIV + 3
----
5

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL 16 / + 3
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3908
SELECT DISTINCT 9 + - 74 + + 18 DIV 48
----
-65

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT 9 + - 74 + + 18 / 48
----
-65

query I rowsort
SELECT - 38 * + COALESCE ( - 32, + 26, + - 29 * + ( + 52 ) )
----
1216

query I rowsort
SELECT + 50 - - 65 AS col2
----
115

query I rowsort
SELECT + 26 - - 42 * 99 + - ( 70 ) + 51
----
4165

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL COUNT( - CASE - + 66 WHEN + 39 * 81 THEN NULL WHEN + NULLIF ( + 51, 79 ) THEN + 94 END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL COUNT ( - CASE - + 66 WHEN + 39 * 81 THEN NULL WHEN + NULLIF ( + 51, 79 ) THEN + 94 END ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 10 + 24 + - + 33 + + 85 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL + 55 + 11 - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + 55 + 11 - COUNT ( * )
----
65

query II rowsort
SELECT - 72 - - 77, + 9 AS col2
----
5
9

query I rowsort
SELECT ALL - 83 * - + 78 AS col1
----
6474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3917
SELECT ALL - 92 - - - 77 DIV MIN( - 28 )
----
-90

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - 92 - - - 77 / MIN ( - 28 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT - - MIN( - 95 ) * ( 51 ) * + ( - + 98 )
----
474810

skipif mysql # not compatible
query I rowsort label-3918
SELECT - - MIN ( - 95 ) * ( 51 ) * + ( - + 98 )
----
474810

query I rowsort
SELECT - - 44 * 38 * + NULLIF ( - - 64, 8 * + + AVG ( DISTINCT + - 56 ) ) - + 24 AS col0
----
106984

onlyif mysql # aggregate syntax: 
query II rowsort label-3920
SELECT + COUNT( * ) + 22 AS col2, - 89
----
23
-89

skipif mysql # not compatible
query II rowsort label-3920
SELECT + COUNT ( * ) + 22 AS col2, - 89
----
23
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT - 78 * - + 14 + - + SUM( ALL - 86 ) AS col1
----
1178

skipif mysql # not compatible
query I rowsort label-3921
SELECT - 78 * - + 14 + - + SUM ( ALL - 86 ) AS col1
----
1178

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3923
SELECT - - 48 * - - 58 DIV + COUNT( * ) + - + ( - COUNT( * ) )
----
2785

skipif mysql # not compatible
query I rowsort label-3923
SELECT - - 48 * - - 58 / + COUNT ( * ) + - + ( - COUNT ( * ) )
----
2785

query I rowsort
SELECT - 81 + 21 AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3925
SELECT ALL - COALESCE ( - + COUNT( * ), NULLIF ( - COUNT( * ), - COUNT( * ) ) + - - ( 32 ) ) * 28 + CASE + 27 WHEN - ( + 50 ) * 20 + 77 * CAST( CAST( - 48 AS SIGNED ) AS SIGNED ) THEN NULL WHEN - 33 / NULLIF ( 69, - 56 * - 85 + - 32 * 85 ) THEN 3 ELSE + 76 + + 88 END * 18 AS col2
----
2980

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL - COALESCE ( - + COUNT ( * ), NULLIF ( - COUNT ( * ), - COUNT ( * ) ) + - - ( 32 ) ) * 28 + CASE + 27 WHEN - ( + 50 ) * 20 + 77 * CAST ( CAST ( - 48 AS INTEGER ) AS INTEGER ) THEN NULL WHEN - 33 / NULLIF ( 69, - 56 * - 85 + - 32 * 85 ) THEN 3 ELSE + 76 + + 88 END * 18 AS col2
----
2980

query I rowsort
SELECT - 47 * + 15 - 51
----
-756

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

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

query I rowsort
SELECT ALL + 69 * + 1 + 20 + - 70 + + - ( 82 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT + 86 - COALESCE ( + COUNT( * ), 62 + - 36 ) * + + 21 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3929
SELECT + 86 - COALESCE ( + COUNT ( * ), 62 + - 36 ) * + + 21 AS col2
----
65

query II rowsort
SELECT ALL + 88 AS col0, + 8 AS col2
----
88
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL + COUNT( * ) * + - 7 + + - 29 + 73 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL + COUNT ( * ) * + - 7 + + - 29 + 73 AS col0
----
37

query I rowsort
SELECT + 63 + 63
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3933
SELECT CASE - - 23 WHEN + CAST( 34 AS SIGNED ) THEN + 78 ELSE - 17 END, - 75 AS col0
----
-17
-75

skipif mysql # not compatible
query II rowsort label-3933
SELECT CASE - - 23 WHEN + CAST ( 34 AS INTEGER ) THEN + 78 ELSE - 17 END, - 75 AS col0
----
-17
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT - 87 * + ( - + 62 ) * 13 + + + 79 + - - COUNT( * ) col1
----
70202

skipif mysql # not compatible
query I rowsort label-3934
SELECT - 87 * + ( - + 62 ) * 13 + + + 79 + - - COUNT ( * ) col1
----
70202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3935
SELECT - NULLIF ( + + 93, 71 ) * - 68 + - ( - AVG ( + NULLIF ( - - 79, CAST( NULL AS SIGNED ) * 60 ) ) ) + 85 * 68 * + MIN( ALL CAST( NULL AS SIGNED ) / + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT - NULLIF ( + + 93, 71 ) * - 68 + - ( - AVG ( + NULLIF ( - - 79, CAST ( NULL AS INTEGER ) * 60 ) ) ) + 85 * 68 * + MIN ( ALL CAST ( NULL AS INTEGER ) / + 24 )
----
NULL

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

query I rowsort
SELECT + 27 + - + 89
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3938
SELECT 86 * 21 * - + ( - 60 ) - + ( + COUNT( * ) ) DIV - 6 * - 85 AS col2
----
108360

skipif mysql # not compatible
query I rowsort label-3938
SELECT 86 * 21 * - + ( - 60 ) - + ( + COUNT ( * ) ) / - 6 * - 85 AS col2
----
108360

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT + 3 + SUM( DISTINCT - 27 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3939
SELECT + 3 + SUM ( DISTINCT - 27 ) AS col0
----
-24

query I rowsort
SELECT ALL - 16 * + 25 + 39 * - 23 + + - ( + 2 )
----
-1299

query I rowsort
SELECT + 20 * + - 69 AS col0
----
-1380

query I rowsort
SELECT ALL 91 - + 27 AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3943
SELECT DISTINCT + 69 * - 52 * + - 86 AS col0, + MIN( ALL NULLIF ( 52, - 84 ) ) * - + ( 55 ) + COALESCE ( + 58, + NULLIF ( 67, - 91 ) ) col2
----
308568
-2802

skipif mysql # not compatible
query II rowsort label-3943
SELECT DISTINCT + 69 * - 52 * + - 86 AS col0, + MIN ( ALL NULLIF ( 52, - 84 ) ) * - + ( 55 ) + COALESCE ( + 58, + NULLIF ( 67, - 91 ) ) col2
----
308568
-2802

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT 20 - MAX( DISTINCT + 50 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT 20 - MAX ( DISTINCT + 50 ) AS col1
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT ALL MAX( ALL ( 67 ) ) - - 38
----
105

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL MAX ( ALL ( 67 ) ) - - 38
----
105

query II rowsort
SELECT 6, + 53 * - + 20 AS col2
----
6
-1060

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT + CASE + 8 WHEN - + 55 THEN 40 * + - MIN( DISTINCT + 27 ) * + - 94 * - + COUNT( * ) END + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT + CASE + 8 WHEN - + 55 THEN 40 * + - MIN ( DISTINCT + 27 ) * + - 94 * - + COUNT ( * ) END + - 63
----
NULL

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

query I rowsort
SELECT ALL + CASE 19 WHEN - - 98 / + ( + 85 ) - 18 THEN NULL WHEN - 48 THEN + - 90 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT - CASE - - 81 WHEN + + 80 THEN NULL WHEN + 19 / + 34 THEN + 14 ELSE NULL END + - MIN( 95 ) * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3952
SELECT - CASE - - 81 WHEN + + 80 THEN NULL WHEN + 19 / + 34 THEN + 14 ELSE NULL END + - MIN ( 95 ) * 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT + CASE WHEN + 88 IS NOT NULL THEN 90 * - 43 * + COALESCE ( - 73, - 47, + COUNT( * ) ) + - 38 END AS col2
----
282472

skipif mysql # not compatible
query I rowsort label-3953
SELECT + CASE WHEN + 88 IS NOT NULL THEN 90 * - 43 * + COALESCE ( - 73, - 47, + COUNT ( * ) ) + - 38 END AS col2
----
282472

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3955
SELECT + AVG ( CASE - + CAST( NULL AS SIGNED ) WHEN + 66 THEN NULL WHEN + - 26 THEN - - 94 ELSE NULL END ) * - AVG ( ALL + 16 ) + ( 20 - 19 * - CASE + COUNT( * ) / COUNT( ALL CAST( 34 AS SIGNED ) ) + - 26 WHEN - 55 + 39 / 4 THEN NULL WHEN COUNT( * ) + - 95 THEN + 78 WHEN + 28 THEN NULL END ) + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT + AVG ( CASE - + CAST ( NULL AS INTEGER ) WHEN + 66 THEN NULL WHEN + - 26 THEN - - 94 ELSE NULL END ) * - AVG ( ALL + 16 ) + ( 20 - 19 * - CASE + COUNT ( * ) / COUNT ( ALL CAST ( 34 AS INTEGER ) ) + - 26 WHEN - 55 + 39 / 4 THEN NULL WHEN COUNT ( * ) + - 95 THEN + 78 WHEN + 28 THEN NULL END ) + 26
----
NULL

query II rowsort
SELECT + 19 AS col0, ( - 47 )
----
19
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3957
SELECT + COALESCE ( - - 41, - 39, 73 + - - 36 + + - COALESCE ( + 72, CAST( + 37 AS SIGNED ) ) + 29 * + 48 ) / ( 12 + CAST( NULL AS SIGNED ) / - COALESCE ( - 78, 66 ) ) + - CASE 94 WHEN - 9 THEN NULL WHEN - COALESCE ( - 94, - 22 ) THEN 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT + COALESCE ( - - 41, - 39, 73 + - - 36 + + - COALESCE ( + 72, CAST ( + 37 AS INTEGER ) ) + 29 * + 48 ) / ( 12 + CAST ( NULL AS INTEGER ) / - COALESCE ( - 78, 66 ) ) + - CASE 94 WHEN - 9 THEN NULL WHEN - COALESCE ( - 94, - 22 ) THEN 49 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT - MAX( + 96 ) * - - 64 + 89 AS col1
----
-6055

skipif mysql # not compatible
query I rowsort label-3958
SELECT - MAX ( + 96 ) * - - 64 + 89 AS col1
----
-6055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3959
SELECT DISTINCT + 89 * + - CASE + + 69 WHEN + 95 * CAST( - COALESCE ( + 29, + - MAX( ALL 5 ), 35 ) AS SIGNED ) + - 22 THEN + 88 END + 61 * - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT + 89 * + - CASE + + 69 WHEN + 95 * CAST ( - COALESCE ( + 29, + - MAX ( ALL 5 ), 35 ) AS INTEGER ) + - 22 THEN + 88 END + 61 * - 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3960
SELECT ALL 24 DIV 2 + - MAX( DISTINCT + + 61 ) + + - 58 AS col2
----
-107

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL 24 / 2 + - MAX ( DISTINCT + + 61 ) + + - 58 AS col2
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT - + 20 + + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-3961
SELECT - + 20 + + COUNT ( * )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3962
SELECT ALL + CAST( NULL AS SIGNED ) + + 89 * 63 AS col2, 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3962
SELECT ALL + CAST ( NULL AS INTEGER ) + + 89 * 63 AS col2, 0
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3963
SELECT ALL - CASE + 12 WHEN - NULLIF ( - 70, - CAST( - 26 AS SIGNED ) * 93 ) * - + ( + + 21 ) THEN NULL WHEN - COUNT( + 70 ) THEN 93 END + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL - CASE + 12 WHEN - NULLIF ( - 70, - CAST ( - 26 AS INTEGER ) * 93 ) * - + ( + + 21 ) THEN NULL WHEN - COUNT ( + 70 ) THEN 93 END + 12
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3964
SELECT DISTINCT + 0 DIV - 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT + 0 / - 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3965
SELECT ALL - CASE AVG ( ALL - 37 ) WHEN - 67 + - - 90 THEN + 43 - + 18 ELSE NULL END, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3965
SELECT ALL - CASE AVG ( ALL - 37 ) WHEN - 67 + - - 90 THEN + 43 - + 18 ELSE NULL END, + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT MAX( DISTINCT 70 ) + - 26 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3966
SELECT MAX ( DISTINCT 70 ) + - 26 AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT DISTINCT ( - 80 ) - - 30 DIV - 68 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT ( - 80 ) - - 30 / - 68 AS col1
----
-80

query I rowsort
SELECT DISTINCT + 10 * 23 AS col1
----
230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3969
SELECT 58 + + - MIN( ALL + 28 ) DIV + 78 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3969
SELECT 58 + + - MIN ( ALL + 28 ) / + 78 AS col2
----
58

query I rowsort
SELECT 42 - ( + - 38 ) * 77
----
2968

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT ALL + NULLIF ( - SUM( - 18 ), - 82 - 65 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL + NULLIF ( - SUM ( - 18 ), - 82 - 65 ) AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3972
SELECT ALL 0 * + COALESCE ( - COUNT( * ), - - 41 DIV 75 - - 95 - 51 + + 39 + - 34 * 65, - 61 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL 0 * + COALESCE ( - COUNT ( * ), - - 41 / 75 - - 95 - 51 + + 39 + - 34 * 65, - 61 ) AS col2
----
0

query I rowsort
SELECT - 70 * - 47 + 56 * - - 22 - + ( + + 46 ) + + + 66 * + 64 * + CASE 85 WHEN + 62 THEN 59 * - 70 WHEN - 65 THEN NULL END + - CASE + 71 WHEN 21 + 59 THEN NULL ELSE - 54 + 80 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT ALL 57 * ( 90 ) - + - 0 DIV 8
----
5130

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL 57 * ( 90 ) - + - 0 / 8
----
5130

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT + 36 * + + COALESCE ( + COALESCE ( + 65, 99 * 85 ), - + 58 + - 99, + COUNT( ALL + 63 ) ) col1
----
2340

skipif mysql # not compatible
query I rowsort label-3975
SELECT + 36 * + + COALESCE ( + COALESCE ( + 65, 99 * 85 ), - + 58 + - 99, + COUNT ( ALL + 63 ) ) col1
----
2340

onlyif mysql # DIV for integer division: 
query I rowsort label-3976
SELECT ALL + 21 + - - 11 DIV - 22
----
21

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL + 21 + - - 11 / - 22
----
21

query I rowsort
SELECT 52 * - 34
----
-1768

query I rowsort
SELECT - 54 + + 32 + 4 AS col1
----
-18

query I rowsort
SELECT ALL - + 63 + 61 + - 58 AS col0
----
-60

query I rowsort
SELECT + + 44 col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3981
SELECT ALL - COUNT( ALL 35 ) + - CAST( NULL AS DECIMAL ) / - + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL - COUNT ( ALL 35 ) + - CAST ( NULL AS REAL ) / - + 57 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3982
SELECT DISTINCT - 2 + - + COUNT( * ), 15 + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3982
SELECT DISTINCT - 2 + - + COUNT ( * ), 15 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT DISTINCT - MAX( + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT - MAX ( + 0 ) AS col1
----
0

query I rowsort
SELECT ALL - + 88 + 26
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3985
SELECT ALL 69 + - COALESCE ( - 45, + + COALESCE ( + - 63, 38 * 7 * - - 27, + 81 ) * - CASE - 73 WHEN 29 THEN NULL WHEN + ( 89 ) * 52 THEN NULL ELSE SUM( DISTINCT + 78 ) + SUM( 65 ) END, 94 * COUNT( * ) + - 33, - 16 * NULLIF ( + MAX( DISTINCT - 64 ), CASE 42 WHEN CASE MIN( 25 ) WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE - 36 END * - COUNT( * ) + - 38 THEN 35 / 59 ELSE COALESCE ( CASE + 41 WHEN COUNT( * ) + 39 THEN + 45 END, 36 ) END * - CAST( + AVG ( DISTINCT 47 ) + 54 * - 64 AS SIGNED ) ) ) + + 23 * CASE - 15 WHEN + 13 + 77 * - 90 THEN 83 WHEN 18 THEN NULL END * - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL 69 + - COALESCE ( - 45, + + COALESCE ( + - 63, 38 * 7 * - - 27, + 81 ) * - CASE - 73 WHEN 29 THEN NULL WHEN + ( 89 ) * 52 THEN NULL ELSE SUM ( DISTINCT + 78 ) + SUM ( 65 ) END, 94 * COUNT ( * ) + - 33, - 16 * NULLIF ( + MAX ( DISTINCT - 64 ), CASE 42 WHEN CASE MIN ( 25 ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 36 END * - COUNT ( * ) + - 38 THEN 35 / 59 ELSE COALESCE ( CASE + 41 WHEN COUNT ( * ) + 39 THEN + 45 END, 36 ) END * - CAST ( + AVG ( DISTINCT 47 ) + 54 * - 64 AS INTEGER ) ) ) + + 23 * CASE - 15 WHEN + 13 + 77 * - 90 THEN 83 WHEN 18 THEN NULL END * - 99 AS col0
----
NULL

query II rowsort
SELECT + + ( + - 98 ) * 1 + + 45 AS col2, + 70
----
-53
70

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

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

query I rowsort
SELECT ALL + 95 * + - 26 AS col0
----
-2470

query II rowsort
SELECT 17 + + 17 + COALESCE ( - 57, - 7 * - 90 ), 68 AS col2
----
-23
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3990
SELECT 52 * + CAST( NULL AS SIGNED ) / ( - - 77 ) * - 35 + - 31 - NULLIF ( ( + 31 ), + 78 - 2 * - 94 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT 52 * + CAST ( NULL AS INTEGER ) / ( - - 77 ) * - 35 + - 31 - NULLIF ( ( + 31 ), + 78 - 2 * - 94 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 23 - - - 70 + - 23 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT DISTINCT - MAX( ALL + + 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT - MAX ( ALL + + 51 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT DISTINCT + COUNT( * ) - + 42 * - 23 * 34 AS col1
----
32845

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT + COUNT ( * ) - + 42 * - 23 * 34 AS col1
----
32845

query I rowsort
SELECT ALL - ( + + NULLIF ( 31, + 81 ) ) AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT 52 + - 23 * - - 9 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT 52 + - 23 * - - 9 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 26 * - 83 AS col1
----
-2158

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3997
SELECT 61 + - 98 * CAST( NULL AS SIGNED ) AS col0, + 93 AS col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-3997
SELECT 61 + - 98 * CAST ( NULL AS INTEGER ) AS col0, + 93 AS col1
----
NULL
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3998
SELECT 68 DIV + 96 * 61
----
0

skipif mysql # not compatible
query I rowsort label-3998
SELECT 68 / + 96 * 61
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT DISTINCT - 51 DIV - - 41
----
-1

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT - 51 / - - 41
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT COUNT( - 41 ) + - - CASE 93 WHEN + 76 THEN - + 88 ELSE + MAX( - 12 ) END * + + 70 AS col2
----
-839

skipif mysql # not compatible
query I rowsort label-4000
SELECT COUNT ( - 41 ) + - - CASE 93 WHEN + 76 THEN - + 88 ELSE + MAX ( - 12 ) END * + + 70 AS col2
----
-839

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT AVG ( - 28 ) * + CASE - ( + NULLIF ( - 0, - 19 ) ) WHEN + 62 * + 19 + - 11 + 2 THEN 39 + - CAST( NULL AS SIGNED ) / - 94 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT AVG ( - 28 ) * + CASE - ( + NULLIF ( - 0, - 19 ) ) WHEN + 62 * + 19 + - 11 + 2 THEN 39 + - CAST ( NULL AS INTEGER ) / - 94 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4002
SELECT ALL - 34 + COUNT( * ) * NULLIF ( + 88, + COUNT( * ) DIV + - 37 * - 8 * - 63 ), CASE 55 WHEN - AVG ( DISTINCT - ( 25 ) ) THEN NULL WHEN + MIN( + 88 ) + - SUM( ALL - 95 ) THEN NULL WHEN 71 * 51 - 0 THEN NULL ELSE - COALESCE ( - 40, - 36 DIV 37 + - 63 * 13, + 86 + ( 21 ) ) END * 79 AS col1
----
54
3160

skipif mysql # not compatible
query II rowsort label-4002
SELECT ALL - 34 + COUNT ( * ) * NULLIF ( + 88, + COUNT ( * ) / + - 37 * - 8 * - 63 ), CASE 55 WHEN - AVG ( DISTINCT - ( 25 ) ) THEN NULL WHEN + MIN ( + 88 ) + - SUM ( ALL - 95 ) THEN NULL WHEN 71 * 51 - 0 THEN NULL ELSE - COALESCE ( - 40, - 36 / 37 + - 63 * 13, + 86 + ( 21 ) ) END * 79 AS col1
----
54
3160

onlyif mysql # aggregate syntax: 
query II rowsort label-4003
SELECT ALL COUNT( 3 ) + 46 AS col1, + 72 AS col0
----
47
72

skipif mysql # not compatible
query II rowsort label-4003
SELECT ALL COUNT ( 3 ) + 46 AS col1, + 72 AS col0
----
47
72

query I rowsort
SELECT - 58 + - - 63 - 80 AS col2
----
-75

query I rowsort
SELECT ALL + 16 * 38
----
608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4006
SELECT DISTINCT + 58 + 52 DIV NULLIF ( - SUM( - 60 ), - - 61 )
----
58

skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT + 58 + 52 / NULLIF ( - SUM ( - 60 ), - - 61 )
----
58

query I rowsort
SELECT 57 + + 27 - - COALESCE ( - + 59, 69 ) * + 64 * - - 56
----
-211372

query II rowsort
SELECT ALL - 25 + + 95 + 80 + + 0 + - 77 AS col1, 37
----
73
37

query I rowsort
SELECT + 20 + + 17
----
37

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

query I rowsort
SELECT - NULLIF ( 13, + - 8 + + 85 / + 74 ) AS col1
----
-13

query I rowsort
SELECT - 34 + + + 27 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4013
SELECT - NULLIF ( + 22, 34 ) * - ( - 38 ) AS col2, 54 * - 94 + + + COUNT( * ) col1
----
-836
-5075

skipif mysql # not compatible
query II rowsort label-4013
SELECT - NULLIF ( + 22, 34 ) * - ( - 38 ) AS col2, 54 * - 94 + + + COUNT ( * ) col1
----
-836
-5075

query I rowsort
SELECT DISTINCT 73 + + + 34 + + + 27
----
134

query I rowsort
SELECT 67 + - - 66 + - 42 * - + 70
----
3073

query I rowsort
SELECT ALL + 64 + - - ( - 68 )
----
-4

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

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

query I rowsort
SELECT DISTINCT + 31 + + - 54 * - - 33 - + 64 * 72
----
-6359

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4020
SELECT DISTINCT 94 col0, 67 + - + CASE + + 26 WHEN - - CAST( + + 63 AS SIGNED ) * + 36 + + - 54 * - 23 THEN NULL WHEN - 49 THEN NULL WHEN 93 THEN + 35 END + + MAX( ALL - 49 ) col1
----
94
NULL

skipif mysql # not compatible
query II rowsort label-4020
SELECT DISTINCT 94 col0, 67 + - + CASE + + 26 WHEN - - CAST ( + + 63 AS INTEGER ) * + 36 + + - 54 * - 23 THEN NULL WHEN - 49 THEN NULL WHEN 93 THEN + 35 END + + MAX ( ALL - 49 ) col1
----
94
NULL

query I rowsort
SELECT DISTINCT 76 * - 34
----
-2584

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

skipif mysql # not compatible
query I rowsort label-4022
SELECT + + COUNT ( * ) * COUNT ( * ) / + 8 col0
----
0

query I rowsort
SELECT - - 79 * + - 51
----
-4029

query II rowsort
SELECT DISTINCT + 59 AS col2, - 79 * + + 77 AS col0
----
59
-6083

query I rowsort
SELECT ALL ( + 58 ) * - - 58
----
3364

query II rowsort
SELECT ALL + 72 AS col1, 71 * + 82 col2
----
72
5822

query I rowsort
SELECT CASE + - 29 WHEN 60 THEN 27 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT CASE - - COUNT( DISTINCT + 15 ) WHEN - + ( - 70 ) * + - 29 * 18 + - COUNT( * ) + - + 60 THEN + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT CASE - - COUNT ( DISTINCT + 15 ) WHEN - + ( - 70 ) * + - 29 * 18 + - COUNT ( * ) + - + 60 THEN + + COUNT ( * ) END
----
NULL

query II rowsort
SELECT + 67 AS col2, 18 * + + 77 + - 48
----
67
1338

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

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

query I rowsort
SELECT + ( - + 32 ) AS col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4032
SELECT - ( + - CAST( - 51 AS SIGNED ) ) + + 44 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-4032
SELECT - ( + - CAST ( - 51 AS INTEGER ) ) + + 44 AS col0
----
-7

query I rowsort
SELECT ALL + NULLIF ( + 85, - 54 )
----
85

query I rowsort
SELECT DISTINCT - 24 * + 76 + + + 91 AS col1
----
-1733

query I rowsort
SELECT DISTINCT 31 * 22 * COALESCE ( 82, + + 97 )
----
55924

query I rowsort
SELECT ALL + 53 * - 78 + + 45 AS col2
----
-4089

query I rowsort
SELECT - + 34 + - 75 * + - 23 AS col1
----
1691

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT DISTINCT - 29 + + SUM( DISTINCT + + 0 ) + - - 73
----
44

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT - 29 + + SUM ( DISTINCT + + 0 ) + - - 73
----
44

query II rowsort
SELECT - 37, 19 AS col1
----
-37
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT - + CASE + 14 WHEN COALESCE ( + - 52, - 89, - ( - 87 ) * COUNT( * ) - 10 ) * COUNT( * ) * - 9 * + 98 + + 34 THEN - 28 WHEN 86 THEN 58 * - 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT - + CASE + 14 WHEN COALESCE ( + - 52, - 89, - ( - 87 ) * COUNT ( * ) - 10 ) * COUNT ( * ) * - 9 * + 98 + + 34 THEN - 28 WHEN 86 THEN 58 * - 36 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4041
SELECT - + 90 - + CAST( + + 54 AS SIGNED )
----
-144

skipif mysql # not compatible
query I rowsort label-4041
SELECT - + 90 - + CAST ( + + 54 AS INTEGER )
----
-144

query I rowsort
SELECT - - 15 + 62 col0
----
77

query I rowsort
SELECT ALL + + 30 + - - COALESCE ( + 96, + 66 )
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4044
SELECT ALL - ( ( - 87 ) ) + - CAST( - 73 AS SIGNED ) + - 56 * + COUNT( * )
----
104

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL - ( ( - 87 ) ) + - CAST ( - 73 AS INTEGER ) + - 56 * + COUNT ( * )
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT ALL - + 17 * + ( - 45 ) * - 62 - - - NULLIF ( + 50, + COUNT( * ) ) + - + 42 * - - ( NULLIF ( ( COUNT( * ) ), COUNT( * ) / 96 + 75 ) ) col2
----
-47522

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL - + 17 * + ( - 45 ) * - 62 - - - NULLIF ( + 50, + COUNT ( * ) ) + - + 42 * - - ( NULLIF ( ( COUNT ( * ) ), COUNT ( * ) / 96 + 75 ) ) col2
----
-47522

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT CASE 52 WHEN - ( - 30 ) - + - MIN( - 44 ) THEN + COUNT( * ) * - + 91 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT CASE 52 WHEN - ( - 30 ) - + - MIN ( - 44 ) THEN + COUNT ( * ) * - + 91 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT - + COALESCE ( - COALESCE ( + COUNT( * ), - 34, + 30 * + - 41 * 57 + - 29 ), + 92 + 78 + - 36 - 32 )
----
1

skipif mysql # not compatible
query I rowsort label-4047
SELECT - + COALESCE ( - COALESCE ( + COUNT ( * ), - 34, + 30 * + - 41 * 57 + - 29 ), + 92 + 78 + - 36 - 32 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4048
SELECT - + 89 * 74 DIV - - 4 + + SUM( ALL - 34 ) * - 71 - CAST( - 63 AS SIGNED ) AS col1
----
831

skipif mysql # not compatible
query I rowsort label-4048
SELECT - + 89 * 74 / - - 4 + + SUM ( ALL - 34 ) * - 71 - CAST ( - 63 AS INTEGER ) AS col1
----
831

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

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

query I rowsort
SELECT DISTINCT + 19 - - 57 AS col1
----
76

query II rowsort
SELECT - 44 AS col1, 61 AS col1
----
-44
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT - ( - 11 ) - - SUM( ( 83 ) ) + - - 20 - - 50
----
164

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT - ( - 11 ) - - SUM ( ( 83 ) ) + - - 20 - - 50
----
164

query I rowsort
SELECT ALL COALESCE ( + 81, - 68 )
----
81

query I rowsort
SELECT DISTINCT + NULLIF ( - 51, + 40 * 71 ) - 61
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4055
SELECT CAST( + 37 AS SIGNED ) AS col2, 37 * - + ( - COUNT( * ) ) * + + 23
----
37
851

skipif mysql # not compatible
query II rowsort label-4055
SELECT CAST ( + 37 AS INTEGER ) AS col2, 37 * - + ( - COUNT ( * ) ) * + + 23
----
37
851

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4056
SELECT CAST( + 92 AS SIGNED ) AS col2, - ( - - 62 )
----
92
-62

skipif mysql # not compatible
query II rowsort label-4056
SELECT CAST ( + 92 AS INTEGER ) AS col2, - ( - - 62 )
----
92
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4057
SELECT 60 / - 47 * - + CAST( NULL AS SIGNED ) / ( - - 69 ) + 38 * - COUNT( * ) AS col0, 80 + - 12 * + - 28 AS col2
----
NULL
416

skipif mysql # not compatible
query II rowsort label-4057
SELECT 60 / - 47 * - + CAST ( NULL AS INTEGER ) / ( - - 69 ) + 38 * - COUNT ( * ) AS col0, 80 + - 12 * + - 28 AS col2
----
NULL
416

onlyif mysql # DIV for integer division: 
query II rowsort label-4058
SELECT ALL 32 * 2 DIV + 29 col2, 60
----
2
60

skipif mysql # not compatible
query II rowsort label-4058
SELECT ALL 32 * 2 / + 29 col2, 60
----
2
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT + 38 + - 53 + - + 49 * - MIN( + 26 ) - 58 AS col2
----
1201

skipif mysql # not compatible
query I rowsort label-4059
SELECT + 38 + - 53 + - + 49 * - MIN ( + 26 ) - 58 AS col2
----
1201

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

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

query I rowsort
SELECT + 14 + 96 + - 45
----
65

query I rowsort
SELECT + 32 * 66
----
2112

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

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT - ( 59 ) / - 57 + COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT 55 * - 54 * 22 * - + 8 * 83
----
43385760

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT + 67 + - MIN( - + 91 )
----
158

skipif mysql # not compatible
query I rowsort label-4065
SELECT + 67 + - MIN ( - + 91 )
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4066
SELECT ALL 63 * + + 67 + CAST( + COUNT( - 83 ) AS SIGNED ) * 70 + - + NULLIF ( - 81, + 48 ) AS col2
----
4372

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL 63 * + + 67 + CAST ( + COUNT ( - 83 ) AS INTEGER ) * 70 + - + NULLIF ( - 81, + 48 ) AS col2
----
4372

query I rowsort
SELECT ( + - 91 ) * + + 47 + 2 + + - 28 + + + 59 * - 48 - - + 30 AS col1
----
-7105

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ( MAX( 56 ) )
----
56

skipif mysql # not compatible
query I rowsort label-4068
SELECT ( MAX ( 56 ) )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT + 31 * CAST( NULL AS SIGNED ) * 89 * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT + 31 * CAST ( NULL AS INTEGER ) * 89 * 99
----
NULL

query II rowsort
SELECT ALL 0 * - - COALESCE ( + 97, - - 21 ) + + 26, 67 AS col1
----
26
67

query I rowsort
SELECT NULLIF ( 64, - 41 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4072
SELECT - 90 * + - 11 + + CASE 84 WHEN + MIN( DISTINCT 37 ) * + CASE ( - CAST( NULL AS SIGNED ) ) WHEN + 22 THEN + 19 WHEN CAST( 93 AS SIGNED ) * - 71 THEN COUNT( * ) * - 9 - SUM( DISTINCT 97 ) END THEN + 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT - 90 * + - 11 + + CASE 84 WHEN + MIN ( DISTINCT 37 ) * + CASE ( - CAST ( NULL AS INTEGER ) ) WHEN + 22 THEN + 19 WHEN CAST ( 93 AS INTEGER ) * - 71 THEN COUNT ( * ) * - 9 - SUM ( DISTINCT 97 ) END THEN + 28 END AS col2
----
NULL

query I rowsort
SELECT ALL - 6 * - + 16 + + 38 AS col1
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4074
SELECT + 93 + + 24 + 94 AS col2, - COUNT( - ( - 19 ) ) * 72 DIV - 77 col2
----
211
0

skipif mysql # not compatible
query II rowsort label-4074
SELECT + 93 + + 24 + 94 AS col2, - COUNT ( - ( - 19 ) ) * 72 / - 77 col2
----
211
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT + SUM( ALL 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4075
SELECT + SUM ( ALL 38 ) AS col1
----
38

query I rowsort
SELECT - 76 + - 83 AS col0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT ALL + COUNT( + 28 ) - - 62
----
63

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL + COUNT ( + 28 ) - - 62
----
63

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT DISTINCT NULLIF ( + 67, + 36 * - + NULLIF ( + ( + ( 39 ) ), - - 73 ) + - 24 * - + 41 * + CAST( NULL AS SIGNED ) * + + 78 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT NULLIF ( + 67, + 36 * - + NULLIF ( + ( + ( 39 ) ), - - 73 ) + - 24 * - + 41 * + CAST ( NULL AS INTEGER ) * + + 78 ) AS col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4080
SELECT - 79 * 67 + COUNT( * ) * 91 DIV + COUNT( + 96 ) + - - 10 AS col0, + COUNT( * ) + NULLIF ( + COUNT( * ), + 6 )
----
-5192
2

skipif mysql # not compatible
query II rowsort label-4080
SELECT - 79 * 67 + COUNT ( * ) * 91 / + COUNT ( + 96 ) + - - 10 AS col0, + COUNT ( * ) + NULLIF ( + COUNT ( * ), + 6 )
----
-5192
2

query I rowsort
SELECT - 23 * - 69
----
1587

query I rowsort
SELECT + 32 + 19 + + + CASE + + 3 WHEN + 97 THEN - 12 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT ALL - SUM( ALL + 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL - SUM ( ALL + 56 ) AS col1
----
-56

query I rowsort
SELECT CASE + 39 WHEN + + 55 THEN - - 41 END + - 76 + - + 98 + + 29 / - 75 * 93 + 33 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4085
SELECT 45 * + - ( NULLIF ( 26, - - 9 + - + SUM( DISTINCT - ( + 18 ) ) / + 62 * + + COUNT( * ) ) ) * - 44 * + 40 * - 46 - - CASE 53 WHEN 24 THEN COALESCE ( + 57, - CAST( NULL AS SIGNED ) * + 14, - CASE ( - 58 ) WHEN - COUNT( * ) THEN + COUNT( * ) / - 40 + 69 ELSE NULL END * - 95 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4085
SELECT 45 * + - ( NULLIF ( 26, - - 9 + - + SUM ( DISTINCT - ( + 18 ) ) / + 62 * + + COUNT ( * ) ) ) * - 44 * + 40 * - 46 - - CASE 53 WHEN 24 THEN COALESCE ( + 57, - CAST ( NULL AS INTEGER ) * + 14, - CASE ( - 58 ) WHEN - COUNT ( * ) THEN + COUNT ( * ) / - 40 + 69 ELSE NULL END * - 95 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL - - ( 75 ) * 78 - + 6 - + - COUNT( + ( 92 ) ) AS col0
----
5845

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL - - ( 75 ) * 78 - + 6 - + - COUNT ( + ( 92 ) ) AS col0
----
5845

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

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

query II rowsort
SELECT DISTINCT 1 AS col1, - 34 * 22 AS col0
----
1
-748

query II rowsort
SELECT 17 AS col0, 11 AS col1
----
17
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4090
SELECT 37 * 78 + + CAST( NULL AS SIGNED ) * - - COUNT( ALL + ( + + 9 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT 37 * 78 + + CAST ( NULL AS INTEGER ) * - - COUNT ( ALL + ( + + 9 ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4091
SELECT DISTINCT - COALESCE ( - - 18, + + 51 ), 45 DIV + 51 AS col0
----
-18
0

skipif mysql # not compatible
query II rowsort label-4091
SELECT DISTINCT - COALESCE ( - - 18, + + 51 ), 45 / + 51 AS col0
----
-18
0

query II rowsort
SELECT DISTINCT - 13 col1, + 50 * + 8
----
-13
400

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ALL + 38 + - + NULLIF ( 36, + COUNT( * ) + - ( + - 95 ) ) * - + 27 * 0 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL + 38 + - + NULLIF ( 36, + COUNT ( * ) + - ( + - 95 ) ) * - + 27 * 0 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT DISTINCT + 47 + - - NULLIF ( - 3, 86 / 70 + COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT + 47 + - - NULLIF ( - 3, 86 / 70 + COUNT ( * ) )
----
44

query II rowsort
SELECT + 71 col1, + 75 AS col1
----
71
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT COUNT( ALL + 32 ) * 50
----
50

skipif mysql # not compatible
query I rowsort label-4096
SELECT COUNT ( ALL + 32 ) * 50
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4097
SELECT ALL - ( + ( + 20 ) ) AS col2, - NULLIF ( - - 25, 84 + - CASE 27 WHEN 94 * + 91 DIV - 27 + + - 17 THEN COALESCE ( - COALESCE ( 20, 99 ), - 45 ) * - 6 WHEN - 32 THEN NULL WHEN + COUNT( * ) * - 2 + ( - MAX( + 29 ) + + 30 * + 41 ) * + 15 THEN NULL ELSE NULL END ) DIV 22 AS col0
----
-20
-1

skipif mysql # not compatible
query II rowsort label-4097
SELECT ALL - ( + ( + 20 ) ) AS col2, - NULLIF ( - - 25, 84 + - CASE 27 WHEN 94 * + 91 / - 27 + + - 17 THEN COALESCE ( - COALESCE ( 20, 99 ), - 45 ) * - 6 WHEN - 32 THEN NULL WHEN + COUNT ( * ) * - 2 + ( - MAX ( + 29 ) + + 30 * + 41 ) * + 15 THEN NULL ELSE NULL END ) / 22 AS col0
----
-20
-1

query I rowsort
SELECT ALL 43 + + 65
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT MIN( ALL - 68 ) * + + 45 AS col2
----
-3060

skipif mysql # not compatible
query I rowsort label-4099
SELECT MIN ( ALL - 68 ) * + + 45 AS col2
----
-3060

query II rowsort
SELECT + 39 AS col1, 82 * + 52 col0
----
39
4264

query I rowsort
SELECT ALL 36 * 50
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT 42 / + + 38 * - 26 * - 9 + + CASE + + 72 WHEN - SUM( 6 ) * - - 9 THEN NULL WHEN - ( + 66 ) THEN COUNT( * ) END - + COALESCE ( 46, - 62 ) / - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT 42 / + + 38 * - 26 * - 9 + + CASE + + 72 WHEN - SUM ( 6 ) * - - 9 THEN NULL WHEN - ( + 66 ) THEN COUNT ( * ) END - + COALESCE ( 46, - 62 ) / - 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4103
SELECT + CASE - 10 WHEN + 56 * - ( + MIN( ALL + 68 ) ) + + COALESCE ( - 84, + CASE + - 5 WHEN + 18 THEN 72 * - - 93 WHEN - 70 THEN NULL WHEN - COUNT( * ) THEN + 89 * - 3 END ) THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT + CASE - 10 WHEN + 56 * - ( + MIN ( ALL + 68 ) ) + + COALESCE ( - 84, + CASE + - 5 WHEN + 18 THEN 72 * - - 93 WHEN - 70 THEN NULL WHEN - COUNT ( * ) THEN + 89 * - 3 END ) THEN - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - 93 - - + 33
----
-60

query I rowsort
SELECT ALL + 13 - - + ( - 26 )
----
-13

query I rowsort
SELECT 65 - - 10 AS col1
----
75

query I rowsort
SELECT 11 * 99 * - - 23 AS col2
----
25047

query I rowsort
SELECT ALL 24 - + 3
----
21

query II rowsort
SELECT 39, - 30 AS col1
----
39
-30

query I rowsort
SELECT 90 + + + 71 AS col0
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT COUNT( * ) * + - NULLIF ( + + 15, - 75 )
----
-15

skipif mysql # not compatible
query I rowsort label-4111
SELECT COUNT ( * ) * + - NULLIF ( + + 15, - 75 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4112
SELECT CAST( NULL AS SIGNED ) * COALESCE ( 29, + COUNT( * ) - 3, 33 ) - + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT CAST ( NULL AS INTEGER ) * COALESCE ( 29, + COUNT ( * ) - 3, 33 ) - + 94 AS col0
----
NULL

query I rowsort
SELECT + 86 + NULLIF ( 89, + 41 * + 23 + 10 )
----
175

query I rowsort
SELECT DISTINCT + 28 * - 38 * + COALESCE ( - 15, 9 )
----
15960

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL 13 * MAX( DISTINCT + - 48 ) AS col0
----
-624

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL 13 * MAX ( DISTINCT + - 48 ) AS col0
----
-624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4116
SELECT 0, CASE ( 97 ) WHEN 53 THEN + 33 ELSE NULL END / - + CAST( + COUNT( * ) AS SIGNED ) / + 61 + + 59 - + - 20 * + + 56 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4116
SELECT 0, CASE ( 97 ) WHEN 53 THEN + 33 ELSE NULL END / - + CAST ( + COUNT ( * ) AS INTEGER ) / + 61 + + 59 - + - 20 * + + 56 AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4117
SELECT DISTINCT + 67 + SUM( DISTINCT - 79 ), + 94 AS col1
----
-12
94

skipif mysql # not compatible
query II rowsort label-4117
SELECT DISTINCT + 67 + SUM ( DISTINCT - 79 ), + 94 AS col1
----
-12
94

query II rowsort
SELECT ALL + NULLIF ( - 58, + 43 ), + 99 AS col2
----
-58
99

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

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

query I rowsort
SELECT 62 * + ( - 1 ) AS col1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4121
SELECT CAST( NULL AS DECIMAL ) - 51 AS col1, + CASE - 40 WHEN 15 THEN NULL WHEN + COUNT( * ) THEN - 56 - COUNT( * ) ELSE NULL END + + - 94 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4121
SELECT CAST ( NULL AS REAL ) - 51 AS col1, + CASE - 40 WHEN 15 THEN NULL WHEN + COUNT ( * ) THEN - 56 - COUNT ( * ) ELSE NULL END + + - 94 AS col1
----
NULL
NULL

query I rowsort
SELECT ALL - 6 + + + 96 - - + 90 AS col2
----
180

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

skipif mysql # not compatible
query I rowsort label-4123
SELECT 52 / ( - COUNT ( * ) )
----
-52

query I rowsort
SELECT 87 * - 28 * + 82
----
-199752

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4125
SELECT 61 * - - CAST( NULL AS DECIMAL ) * 66 / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4125
SELECT 61 * - - CAST ( NULL AS REAL ) * 66 / 40
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT ( + 61 ) DIV + 28 - + - 70 col1
----
72

skipif mysql # not compatible
query I rowsort label-4126
SELECT ( + 61 ) / + 28 - + - 70 col1
----
72

query I rowsort
SELECT ALL - NULLIF ( - 7, + 88 + 31 + + 47 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL 49 * 74 + + ( 17 ) + - 92 + + 21 + - MAX( DISTINCT 5 ) AS col1
----
3567

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL 49 * 74 + + ( 17 ) + - 92 + + 21 + - MAX ( DISTINCT 5 ) AS col1
----
3567

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT 43 DIV 45 + - ( - 10 ) DIV - 28 - - 85 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4129
SELECT 43 / 45 + - ( - 10 ) / - 28 - - 85 AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4130
SELECT COUNT( * ) / - ( + + COALESCE ( - 74, - 43, + 49 ) ) * + - 75 + COUNT( * ) + + 67 / 56 + + 61 / COUNT( * ) + + - 94 + - 72 + 90 / ( 46 + MIN( - 68 ) ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT COUNT ( * ) / - ( + + COALESCE ( - 74, - 43, + 49 ) ) * + - 75 + COUNT ( * ) + + 67 / 56 + + 61 / COUNT ( * ) + + - 94 + - 72 + 90 / ( 46 + MIN ( - 68 ) ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4131
SELECT NULLIF ( + CASE 53 WHEN + + 92 THEN - - 57 END, - 0 ) * + 41 col1, - 64 * ( COALESCE ( + 59, - SUM( DISTINCT 21 ) ) )
----
NULL
-3776

skipif mysql # not compatible
query II rowsort label-4131
SELECT NULLIF ( + CASE 53 WHEN + + 92 THEN - - 57 END, - 0 ) * + 41 col1, - 64 * ( COALESCE ( + 59, - SUM ( DISTINCT 21 ) ) )
----
NULL
-3776

onlyif mysql # aggregate syntax: 
query II rowsort label-4132
SELECT MAX( 54 ) col2, - COUNT( ALL - 16 ) AS col1
----
54
-1

skipif mysql # not compatible
query II rowsort label-4132
SELECT MAX ( 54 ) col2, - COUNT ( ALL - 16 ) AS col1
----
54
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4134
SELECT + + 26 * + - 28 * - - NULLIF ( - 45, AVG ( 28 ) ) + + - 55 * - 88 * - ( - MIN( + 5 ) ) - + 51 + - + 15 * COUNT( DISTINCT + COALESCE ( - 40, ( - CAST( + 18 AS SIGNED ) ) * + 91 ) ) * 93 * ( 26 DIV 32 + + 50 ) AS col2
----
-12841

skipif mysql # not compatible
query I rowsort label-4134
SELECT + + 26 * + - 28 * - - NULLIF ( - 45, AVG ( 28 ) ) + + - 55 * - 88 * - ( - MIN ( + 5 ) ) - + 51 + - + 15 * COUNT ( DISTINCT + COALESCE ( - 40, ( - CAST ( + 18 AS INTEGER ) ) * + 91 ) ) * 93 * ( 26 / 32 + + 50 ) AS col2
----
-12841

query I rowsort
SELECT ALL + 12 * + 20 - - - 32 AS col1
----
208

query II rowsort
SELECT ALL + - ( - 33 ) AS col0, 42 * 55
----
33
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT + - 45 * + + 74 * MAX( DISTINCT - 16 )
----
53280

skipif mysql # not compatible
query I rowsort label-4137
SELECT + - 45 * + + 74 * MAX ( DISTINCT - 16 )
----
53280

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4139
SELECT ALL - 90 * + COALESCE ( - ( - 58 ), 65 * + 52, 63 DIV 90 * + + 65 + - COALESCE ( - COUNT( * ), - 4 + - + COUNT( * ) + - ( - CAST( - MAX( ALL - 51 ) AS SIGNED ) ), + 49 ) ) * + 6 AS col0
----
-31320

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL - 90 * + COALESCE ( - ( - 58 ), 65 * + 52, 63 / 90 * + + 65 + - COALESCE ( - COUNT ( * ), - 4 + - + COUNT ( * ) + - ( - CAST ( - MAX ( ALL - 51 ) AS INTEGER ) ), + 49 ) ) * + 6 AS col0
----
-31320

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT - COUNT( * ) * - 86 col1
----
86

skipif mysql # not compatible
query I rowsort label-4140
SELECT - COUNT ( * ) * - 86 col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT DISTINCT + 88 * - - ( 0 ) * + + 52 + - 55 * - 56 * + 15 * - + NULLIF ( - COUNT( * ), - - 59 * - COUNT( * ) ) AS col2
----
46200

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT + 88 * - - ( 0 ) * + + 52 + - 55 * - 56 * + 15 * - + NULLIF ( - COUNT ( * ), - - 59 * - COUNT ( * ) ) AS col2
----
46200

query I rowsort
SELECT DISTINCT - 38 + + 35 col0
----
-3

query I rowsort
SELECT ALL - 5 + 60 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT - MAX( 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-4144
SELECT - MAX ( 53 )
----
-53

query I rowsort
SELECT ALL 33 + 52 * 59 AS col2
----
3101

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4147
SELECT DISTINCT 27 + COUNT( * ) + + - 50 AS col0, 81 * - 35
----
-22
-2835

skipif mysql # not compatible
query II rowsort label-4147
SELECT DISTINCT 27 + COUNT ( * ) + + - 50 AS col0, 81 * - 35
----
-22
-2835

query II rowsort
SELECT 80, 78 AS col1
----
80
78

query I rowsort
SELECT ALL - 2 + 13 col1
----
11

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

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

query I rowsort
SELECT + 44 * + ( - 51 )
----
-2244

query I rowsort
SELECT - 61 + + 39 + 62 * 61 AS col0
----
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL 67 + + COUNT( * ) col2
----
68

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL 67 + + COUNT ( * ) col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4154
SELECT - ( + CASE - + 63 WHEN + 47 THEN SUM( 52 ) * + 40 DIV + - 50 + COUNT( * ) ELSE 75 END ) + - 27 * 23
----
-696

skipif mysql # not compatible
query I rowsort label-4154
SELECT - ( + CASE - + 63 WHEN + 47 THEN SUM ( 52 ) * + 40 / + - 50 + COUNT ( * ) ELSE 75 END ) + - 27 * 23
----
-696

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4155
SELECT + 25 DIV NULLIF ( - 71, COUNT( - - 0 ) ), 42 * + 90 DIV 10 * + 17 + + 53 AS col0
----
0
6479

skipif mysql # not compatible
query II rowsort label-4155
SELECT + 25 / NULLIF ( - 71, COUNT ( - - 0 ) ), 42 * + 90 / 10 * + 17 + + 53 AS col0
----
0
6479

query I rowsort
SELECT - 31 + 95
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4157
SELECT ALL + 33 DIV - 77 * + 15 - - 4 col0
----
4

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL + 33 / - 77 * + 15 - - 4 col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL + SUM( DISTINCT + ( - + 72 ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + SUM ( DISTINCT + ( - + 72 ) ) AS col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4159
SELECT DISTINCT - - 8 * - - 65 DIV + 63, + COALESCE ( + 39, + 69 * - 99 * - - 5 * - - 37 ) + + - CAST( NULL AS SIGNED ) AS col0
----
8
NULL

skipif mysql # not compatible
query II rowsort label-4159
SELECT DISTINCT - - 8 * - - 65 / + 63, + COALESCE ( + 39, + 69 * - 99 * - - 5 * - - 37 ) + + - CAST ( NULL AS INTEGER ) AS col0
----
8
NULL

query I rowsort
SELECT + + 22 * - 74 * + 6 AS col1
----
-9768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4161
SELECT 68 AS col0, - COUNT( * ) - + CAST( NULL AS SIGNED ) AS col2, + COUNT( * ) AS col1
----
68
NULL
1

skipif mysql # not compatible
query III rowsort label-4161
SELECT 68 AS col0, - COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) AS col1
----
68
NULL
1

query I rowsort
SELECT - 32 * + 98
----
-3136

query I rowsort
SELECT ALL - 94 * - + 29 AS col2
----
2726

query II rowsort
SELECT 12 AS col0, - 75 AS col1
----
12
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT ALL - 50 * + 52 * - - CAST( + + 10 AS SIGNED ) * + 56 + + 84 AS col2
----
-1455916

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL - 50 * + 52 * - - CAST ( + + 10 AS INTEGER ) * + 56 + + 84 AS col2
----
-1455916

query I rowsort
SELECT ALL - - 66 * 89 col0
----
5874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4167
SELECT - + 73 + - - COUNT( * ) DIV - COUNT( * ) + - + 49 col1
----
-123

skipif mysql # not compatible
query I rowsort label-4167
SELECT - + 73 + - - COUNT ( * ) / - COUNT ( * ) + - + 49 col1
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT DISTINCT - 51 DIV 40 + 53 + 27 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT - 51 / 40 + 53 + 27 AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4169
SELECT + + NULLIF ( + 16, + NULLIF ( + MAX( + 36 ), + 39 + + 89 ) - SUM( - 69 ) * + 45 ) * + - ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT + + NULLIF ( + 16, + NULLIF ( + MAX ( + 36 ), + 39 + + 89 ) - SUM ( - 69 ) * + 45 ) * + - ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4170
SELECT - 1 DIV + 35 + + COALESCE ( - + COUNT( * ), + 55 ) AS col2, 58 AS col1, + - 53
----
-1
58
-53

skipif mysql # not compatible
query III rowsort label-4170
SELECT - 1 / + 35 + + COALESCE ( - + COUNT ( * ), + 55 ) AS col2, 58 AS col1, + - 53
----
-1
58
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT COUNT( ALL 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4171
SELECT COUNT ( ALL 95 ) AS col0
----
1

query I rowsort
SELECT - NULLIF ( + - 17, - 65 ) * + - 94 * - + 46 AS col0
----
73508

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

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL - CAST ( NULL AS INTEGER ) + - 49
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4174
SELECT - COALESCE ( + 4, - - 76 DIV + - 25, 9 * + ( + 34 ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4174
SELECT - COALESCE ( + 4, - - 76 / + - 25, 9 * + ( + 34 ) ) AS col0
----
-4

query I rowsort
SELECT ALL - 43 * + + 67 col2
----
-2881

query I rowsort
SELECT DISTINCT + 88 + 18 AS col2
----
106

query I rowsort
SELECT DISTINCT - 34 + 69
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT ALL MIN( ALL ( - 26 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL MIN ( ALL ( - 26 ) )
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4179
SELECT 71 col0, NULLIF ( + - 9, + 49 ) * - 34 * + - NULLIF ( 62, 5 - - 58 + + + COUNT( * ) )
----
71
-18972

skipif mysql # not compatible
query II rowsort label-4179
SELECT 71 col0, NULLIF ( + - 9, + 49 ) * - 34 * + - NULLIF ( 62, 5 - - 58 + + + COUNT ( * ) )
----
71
-18972

query I rowsort
SELECT ALL 67 - + 22
----
45

query II rowsort
SELECT - 49 - 70 AS col0, - ( - + ( - 56 ) )
----
-119
-56

query II rowsort
SELECT 52 AS col0, 46 AS col0
----
52
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4183
SELECT - CAST( + 7 AS SIGNED ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-4183
SELECT - CAST ( + 7 AS INTEGER ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT + NULLIF ( 7, - 38 + + COALESCE ( COUNT( * ), + COUNT( * ), + NULLIF ( COUNT( * ), - SUM( + - 25 ) ) / - - 24 + + - 7 ) ) - + 2 + - + 43
----
-38

skipif mysql # not compatible
query I rowsort label-4184
SELECT + NULLIF ( 7, - 38 + + COALESCE ( COUNT ( * ), + COUNT ( * ), + NULLIF ( COUNT ( * ), - SUM ( + - 25 ) ) / - - 24 + + - 7 ) ) - + 2 + - + 43
----
-38

query I rowsort
SELECT + 90 * - 77 col2
----
-6930

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL 13 - + 74 * COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL 13 - + 74 * COUNT ( * ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4187
SELECT ALL 78 AS col0, MAX( + + COALESCE ( + + 89, - + 98 ) ) + 39 + + 23 - - 14
----
78
165

skipif mysql # not compatible
query II rowsort label-4187
SELECT ALL 78 AS col0, MAX ( + + COALESCE ( + + 89, - + 98 ) ) + 39 + + 23 - - 14
----
78
165

query II rowsort
SELECT - 79 col1, 85 AS col2
----
-79
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4189
SELECT ALL 80, - NULLIF ( - MIN( DISTINCT 52 ), + ( - 76 ) * - CAST( NULL AS SIGNED ) ) col1
----
80
52

skipif mysql # not compatible
query II rowsort label-4189
SELECT ALL 80, - NULLIF ( - MIN ( DISTINCT 52 ), + ( - 76 ) * - CAST ( NULL AS INTEGER ) ) col1
----
80
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ( 34 ) - - + MAX( DISTINCT + - 23 ) * - 99 AS col2
----
2311

skipif mysql # not compatible
query I rowsort label-4190
SELECT ( 34 ) - - + MAX ( DISTINCT + - 23 ) * - 99 AS col2
----
2311

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT COUNT( * ) - + 35 + + - 57 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-4191
SELECT COUNT ( * ) - + 35 + + - 57 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4192
SELECT COUNT( * ) * - 13 AS col0, NULLIF ( + 69, - 58 / 54 * - 3 ) + + - 38
----
-13
31

skipif mysql # not compatible
query II rowsort label-4192
SELECT COUNT ( * ) * - 13 AS col0, NULLIF ( + 69, - 58 / 54 * - 3 ) + + - 38
----
-13
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4193
SELECT + COUNT( * ) * + MIN( - ( + 8 ) ) AS col1, 69 + - 13 DIV 41 - + + COALESCE ( - + 67, - 1 )
----
-8
136

skipif mysql # not compatible
query II rowsort label-4193
SELECT + COUNT ( * ) * + MIN ( - ( + 8 ) ) AS col1, 69 + - 13 / 41 - + + COALESCE ( - + 67, - 1 )
----
-8
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4194
SELECT + 35 DIV 79 + + 92 + COUNT( + 92 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4194
SELECT + 35 / 79 + + 92 + COUNT ( + 92 ) AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4195
SELECT - CAST( NULL AS SIGNED ) / + COUNT( * ) * - + 67 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT - CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - + 67 * 42
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + + 56, + 66 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT 96 + + + ( - + CASE - 48 WHEN - 37 - + 83 * + - 81 THEN + - 44 * - + 84 ELSE NULL END ) * ( CASE COUNT( * ) WHEN - + 76 + + + 91 THEN - 82 * - NULLIF ( 75, 28 * - ( 42 * + 60 ) ) * - 44 END ) * + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT 96 + + + ( - + CASE - 48 WHEN - 37 - + 83 * + - 81 THEN + - 44 * - + 84 ELSE NULL END ) * ( CASE COUNT ( * ) WHEN - + 76 + + + 91 THEN - 82 * - NULLIF ( 75, 28 * - ( 42 * + 60 ) ) * - 44 END ) * + 32 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT 54 DIV - 43 + 5 + - + 0 - - + 81 - 84
----
1

skipif mysql # not compatible
query I rowsort label-4198
SELECT 54 / - 43 + 5 + - + 0 - - + 81 - 84
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT DISTINCT - 63 + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT - 63 + - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL - 4 + - + 75 AS col0
----
-79

query I rowsort
SELECT 65 + - - ( + 64 ) + 68
----
197

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4202
SELECT ALL - 9 AS col1, - CAST( NULL AS SIGNED ) AS col2, + + 13 * 98 + - + 53 col1
----
-9
NULL
1221

skipif mysql # not compatible
query III rowsort label-4202
SELECT ALL - 9 AS col1, - CAST ( NULL AS INTEGER ) AS col2, + + 13 * 98 + - + 53 col1
----
-9
NULL
1221

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL - + MIN( DISTINCT - 19 ) + + 10
----
29

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - + MIN ( DISTINCT - 19 ) + + 10
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4204
SELECT + 81 AS col1, + COUNT( ALL + 91 ) + 1 AS col2
----
81
2

skipif mysql # not compatible
query II rowsort label-4204
SELECT + 81 AS col1, + COUNT ( ALL + 91 ) + 1 AS col2
----
81
2

query I rowsort
SELECT DISTINCT - 22 + 98 + + + 97
----
173

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4206
SELECT ALL - - 15, CAST( NULL AS DECIMAL ) AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-4206
SELECT ALL - - 15, CAST ( NULL AS REAL ) AS col0
----
15
NULL

query I rowsort
SELECT ALL - - 88 + - - ( - - NULLIF ( - 99, + AVG ( ALL - 39 ) ) ) + + 68 AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4208
SELECT - CAST( + - MIN( - 20 ) AS SIGNED ) * + - 60, 72 AS col1
----
1200
72

skipif mysql # not compatible
query II rowsort label-4208
SELECT - CAST ( + - MIN ( - 20 ) AS INTEGER ) * + - 60, 72 AS col1
----
1200
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4209
SELECT + 93, + SUM( DISTINCT + - 30 ) AS col1
----
93
-30

skipif mysql # not compatible
query II rowsort label-4209
SELECT + 93, + SUM ( DISTINCT + - 30 ) AS col1
----
93
-30

query I rowsort
SELECT 71 * - ( + 83 )
----
-5893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4211
SELECT 77 + - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) / + 30 + - - 31 AS col1
----
76
NULL

skipif mysql # not compatible
query II rowsort label-4211
SELECT 77 + - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) / + 30 + - - 31 AS col1
----
76
NULL

query I rowsort
SELECT DISTINCT - 2 - - - 76 + - - 45 - + - 14 AS col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT 90 DIV + 16
----
5

skipif mysql # not compatible
query I rowsort label-4213
SELECT 90 / + 16
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4214
SELECT 61 * + CAST( - - 5 AS SIGNED ) * 22 AS col0
----
6710

skipif mysql # not compatible
query I rowsort label-4214
SELECT 61 * + CAST ( - - 5 AS INTEGER ) * 22 AS col0
----
6710

onlyif mysql # DIV for integer division: 
query I rowsort label-4215
SELECT ALL + 75 DIV - 30 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL + 75 / - 30 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4216
SELECT 77 + - + COUNT( * ) AS col1, 81 - + + COUNT( * ) AS col2
----
76
80

skipif mysql # not compatible
query II rowsort label-4216
SELECT 77 + - + COUNT ( * ) AS col1, 81 - + + COUNT ( * ) AS col2
----
76
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT 12 - - MAX( ALL 79 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4217
SELECT 12 - - MAX ( ALL 79 ) AS col2
----
91

query II rowsort
SELECT ALL 72 * + 27 AS col0, - 95 * 41 * + 33 col1
----
1944
-128535

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4219
SELECT COUNT( * ) DIV + 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4219
SELECT COUNT ( * ) / + 66 AS col0
----
0

query I rowsort
SELECT DISTINCT - 94 * - + 39 AS col0
----
3666

onlyif mysql # DIV for integer division: 
query II rowsort label-4221
SELECT 15 * + 67, - 23 + 18 DIV - + 32 * 12 * 61 AS col2
----
1005
-23

skipif mysql # not compatible
query II rowsort label-4221
SELECT 15 * + 67, - 23 + 18 / - + 32 * 12 * 61 AS col2
----
1005
-23

query I rowsort
SELECT ALL - 85 * - + 41 col2
----
3485

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT 21 + 42 + + 88 + - + COUNT( * ) * - - SUM( DISTINCT + - 1 ) AS col0
----
152

skipif mysql # not compatible
query I rowsort label-4223
SELECT 21 + 42 + + 88 + - + COUNT ( * ) * - - SUM ( DISTINCT + - 1 ) AS col0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ( 94 ) + - MAX( - - 1 ) * - COUNT( * ) col1
----
95

skipif mysql # not compatible
query I rowsort label-4224
SELECT ( 94 ) + - MAX ( - - 1 ) * - COUNT ( * ) col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4225
SELECT - NULLIF ( 85, - - CAST( NULL AS SIGNED ) * 43 ) * ( - + 68 ) AS col0
----
5780

skipif mysql # not compatible
query I rowsort label-4225
SELECT - NULLIF ( 85, - - CAST ( NULL AS INTEGER ) * 43 ) * ( - + 68 ) AS col0
----
5780

query II rowsort
SELECT ALL 74 + + 27 AS col1, + 32
----
101
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT DISTINCT - - MAX( DISTINCT - + 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT - - MAX ( DISTINCT - + 26 ) AS col2
----
-26

query I rowsort
SELECT DISTINCT - 66 + - + 52
----
-118

query I rowsort
SELECT ALL + 53 + + 53 AS col1
----
106

query I rowsort
SELECT DISTINCT + 95 + + 89 + + - 0 * - 81 + - 25
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT ALL + ( + 15 ) * - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL + ( + 15 ) * - COUNT ( * )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4232
SELECT - 38 DIV - + CAST( COUNT( * ) AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-4232
SELECT - 38 / - + CAST ( COUNT ( * ) AS INTEGER )
----
38

query I rowsort
SELECT - 7 * - 97 + - - 31 AS col1
----
710

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT DISTINCT - COUNT( DISTINCT - ( 75 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - COUNT ( DISTINCT - ( 75 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT ALL CASE - + 35 WHEN + 14 THEN NULL ELSE + 76 END + - - NULLIF ( 9, MAX( ALL + 1 ) ) + - MIN( 87 ) * - COUNT( * ) - + - 37
----
209

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL CASE - + 35 WHEN + 14 THEN NULL ELSE + 76 END + - - NULLIF ( 9, MAX ( ALL + 1 ) ) + - MIN ( 87 ) * - COUNT ( * ) - + - 37
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT ALL 4 + + + SUM( 41 )
----
45

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL 4 + + + SUM ( 41 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4237
SELECT - + 18 * - COUNT( * ) + + COUNT( * ) - COUNT( - + NULLIF ( + 17, - - ( CAST( - ( + 25 ) AS SIGNED ) ) + - 22 + ( - - 26 ) * + 73 ) ) * - + 86 * COALESCE ( CAST( NULL AS SIGNED ), 37 ) AS col2
----
3201

skipif mysql # not compatible
query I rowsort label-4237
SELECT - + 18 * - COUNT ( * ) + + COUNT ( * ) - COUNT ( - + NULLIF ( + 17, - - ( CAST ( - ( + 25 ) AS INTEGER ) ) + - 22 + ( - - 26 ) * + 73 ) ) * - + 86 * COALESCE ( CAST ( NULL AS INTEGER ), 37 ) AS col2
----
3201

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT COUNT( * ) * + 33 * 85
----
2805

skipif mysql # not compatible
query I rowsort label-4238
SELECT COUNT ( * ) * + 33 * 85
----
2805

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT + COUNT( DISTINCT + 13 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4239
SELECT + COUNT ( DISTINCT + 13 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4240
SELECT + 87 * - COUNT( 29 ) AS col0, - 47 - 26 + 46 AS col0
----
-87
-27

skipif mysql # not compatible
query II rowsort label-4240
SELECT + 87 * - COUNT ( 29 ) AS col0, - 47 - 26 + 46 AS col0
----
-87
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT + 68 / + COALESCE ( + 39, - - 87 * - 50, 29 * 12 + 84 ) / + COUNT( * ) + 98 * + - NULLIF ( + 28, - 86 - - 19 ) + - CASE ( + ( - 67 ) ) WHEN 18 * 63 THEN + 17 END + - MIN( 14 + 81 ) * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT + 68 / + COALESCE ( + 39, - - 87 * - 50, 29 * 12 + 84 ) / + COUNT ( * ) + 98 * + - NULLIF ( + 28, - 86 - - 19 ) + - CASE ( + ( - 67 ) ) WHEN 18 * 63 THEN + 17 END + - MIN ( 14 + 81 ) * + 53
----
NULL

query I rowsort
SELECT ALL - ( + - 1 ) - - - 18 * + - 58
----
1045

query I rowsort
SELECT 83 * 28 AS col1
----
2324

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ALL + COUNT( * ) * 52 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL + COUNT ( * ) * 52 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL - 88 - + 94 + + 19 + - COUNT( * ) AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL - 88 - + 94 + + 19 + - COUNT ( * ) AS col1
----
-164

query I rowsort
SELECT 80 - - 15
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4247
SELECT ALL - 16 AS col1, - 90 * + MIN( DISTINCT + 11 )
----
-16
-990

skipif mysql # not compatible
query II rowsort label-4247
SELECT ALL - 16 AS col1, - 90 * + MIN ( DISTINCT + 11 )
----
-16
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-4248
SELECT DISTINCT - COUNT( * ), + MIN( DISTINCT 16 ) AS col2
----
-1
16

skipif mysql # not compatible
query II rowsort label-4248
SELECT DISTINCT - COUNT ( * ), + MIN ( DISTINCT 16 ) AS col2
----
-1
16

onlyif mysql # DIV for integer division: 
query II rowsort label-4249
SELECT + 14 * + 78 - + 3 DIV + + 24 AS col0, - 27 * + 62 * - 77 AS col0
----
1092
128898

skipif mysql # not compatible
query II rowsort label-4249
SELECT + 14 * + 78 - + 3 / + + 24 AS col0, - 27 * + 62 * - 77 AS col0
----
1092
128898

query II rowsort
SELECT DISTINCT + 98 * - ( - 71 ) AS col1, - 14 AS col0
----
6958
-14

query I rowsort
SELECT 6 * - 8
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT ALL SUM( DISTINCT + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL SUM ( DISTINCT + 70 )
----
70

query I rowsort
SELECT - ( - 0 ) * 5 * + 25 - 52 AS col1
----
-52

query I rowsort
SELECT ALL COALESCE ( + + 52, + - 71 * 80 * 49 )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT DISTINCT + 26 DIV + - 42 col0
----
0

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT + 26 / + - 42 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4256
SELECT DISTINCT COALESCE ( - CAST( CAST( - 93 AS SIGNED ) AS SIGNED ), + - COUNT( * ) * - 7 DIV - - 3 DIV + - 85 + ( + 81 ) ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT COALESCE ( - CAST ( CAST ( - 93 AS INTEGER ) AS INTEGER ), + - COUNT ( * ) * - 7 / - - 3 / + - 85 + ( + 81 ) ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT - 48 * - + COUNT( * ) * + - 99
----
-4752

skipif mysql # not compatible
query I rowsort label-4257
SELECT - 48 * - + COUNT ( * ) * + - 99
----
-4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4258
SELECT DISTINCT + COALESCE ( - - COUNT( DISTINCT - 29 ), - 2 * MIN( + 33 ) + - AVG ( ALL - - 48 ), + + ( - NULLIF ( - - 81, + - 66 ) ) ) DIV - NULLIF ( + 40, + CAST( NULL AS SIGNED ) ) * - ( - 73 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT + COALESCE ( - - COUNT ( DISTINCT - 29 ), - 2 * MIN ( + 33 ) + - AVG ( ALL - - 48 ), + + ( - NULLIF ( - - 81, + - 66 ) ) ) / - NULLIF ( + 40, + CAST ( NULL AS INTEGER ) ) * - ( - 73 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT - 36 - - 86 + - - COUNT( * ) * 83 * + 34
----
2872

skipif mysql # not compatible
query I rowsort label-4259
SELECT - 36 - - 86 + - - COUNT ( * ) * 83 * + 34
----
2872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT + - CAST( NULL AS SIGNED ) * - 96 * - CAST( NULL AS SIGNED ) * - - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT + - CAST ( NULL AS INTEGER ) * - 96 * - CAST ( NULL AS INTEGER ) * - - 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT ALL - - MIN( DISTINCT 98 ) + + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL - - MIN ( DISTINCT 98 ) + + COUNT ( * )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT - - CAST( 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-4262
SELECT - - CAST ( 61 AS INTEGER )
----
61

query I rowsort
SELECT ALL - - 72 + - - 60
----
132

query II rowsort
SELECT ALL + 82 AS col1, 28 + 40 AS col2
----
82
68

query I rowsort
SELECT ALL + 62 + 97
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4266
SELECT ALL 95 + - - 79 + 19 * + AVG ( + CAST( NULL AS SIGNED ) ) * 77 + - 71 * - - ( + - 77 ) * + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL 95 + - - 79 + 19 * + AVG ( + CAST ( NULL AS INTEGER ) ) * 77 + - 71 * - - ( + - 77 ) * + 12 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4267
SELECT - MIN( ALL + 71 ) - + 88, COALESCE ( + + 20, + 95, - 65 ) AS col2
----
-159
20

skipif mysql # not compatible
query II rowsort label-4267
SELECT - MIN ( ALL + 71 ) - + 88, COALESCE ( + + 20, + 95, - 65 ) AS col2
----
-159
20

query I rowsort
SELECT ALL - - 59 * + + 95 AS col1
----
5605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4269
SELECT ALL - CAST( - + COUNT( ALL - - CASE - ( + - 78 ) WHEN - - 47 * 32 THEN NULL ELSE 22 * - + 87 END ) AS SIGNED ) * - + 88 * - COALESCE ( + 61, + ( - 67 ) ) + + NULLIF ( - 34, CAST( + + 56 AS SIGNED ) ) + COUNT( * ) + 72 AS col1
----
5407

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL - CAST ( - + COUNT ( ALL - - CASE - ( + - 78 ) WHEN - - 47 * 32 THEN NULL ELSE 22 * - + 87 END ) AS INTEGER ) * - + 88 * - COALESCE ( + 61, + ( - 67 ) ) + + NULLIF ( - 34, CAST ( + + 56 AS INTEGER ) ) + COUNT ( * ) + 72 AS col1
----
5407

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT - 78 - + 31 * + + 61 * + 43 + - - COUNT( * )
----
-81390

skipif mysql # not compatible
query I rowsort label-4270
SELECT - 78 - + 31 * + + 61 * + 43 + - - COUNT ( * )
----
-81390

query I rowsort
SELECT ALL + 71 * - - 35
----
2485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT - 1 / - NULLIF ( - 63, COUNT( * ) * - - COUNT( * ) ) - - MIN( ALL 98 ) * 0 * - NULLIF ( - 97, - - 17 * + CAST( - 5 AS SIGNED ) ) + + 99 + + 86 + 17 + - 82 / CASE + 46 WHEN + 13 + COUNT( * ) THEN NULL WHEN + 91 + CAST( NULL AS SIGNED ) THEN - 93 + ( + 93 ) WHEN 58 - 15 / 13 THEN + 13 ELSE CASE - 52 WHEN - 80 * + 12 THEN + 24 WHEN + 1 * 6 + COUNT( * ) THEN - 52 / 70 END END * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT - 1 / - NULLIF ( - 63, COUNT ( * ) * - - COUNT ( * ) ) - - MIN ( ALL 98 ) * 0 * - NULLIF ( - 97, - - 17 * + CAST ( - 5 AS INTEGER ) ) + + 99 + + 86 + 17 + - 82 / CASE + 46 WHEN + 13 + COUNT ( * ) THEN NULL WHEN + 91 + CAST ( NULL AS INTEGER ) THEN - 93 + ( + 93 ) WHEN 58 - 15 / 13 THEN + 13 ELSE CASE - 52 WHEN - 80 * + 12 THEN + 24 WHEN + 1 * 6 + COUNT ( * ) THEN - 52 / 70 END END * + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT + MAX( + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-4273
SELECT + MAX ( + 19 )
----
19

query I rowsort
SELECT ALL 97 * 85 + 72 - + + 39
----
8278

query I rowsort
SELECT - + 41 + + + 61 + - ( - - 68 ) + - 7 col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4276
SELECT 36 DIV - - 17 + - 56 - + MAX( ALL + 38 ) * 42 AS col0
----
-1650

skipif mysql # not compatible
query I rowsort label-4276
SELECT 36 / - - 17 + - 56 - + MAX ( ALL + 38 ) * 42 AS col0
----
-1650

query II rowsort
SELECT - 27 AS col2, - 22 AS col1
----
-27
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4278
SELECT + + 57 * + COUNT( - - 62 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT + + 57 * + COUNT ( - - 62 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT + 81 * + + 55 + + - MAX( ( - 12 ) ) AS col0
----
4467

skipif mysql # not compatible
query I rowsort label-4279
SELECT + 81 * + + 55 + + - MAX ( ( - 12 ) ) AS col0
----
4467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT - CAST( NULL AS SIGNED ) / - - CAST( - 60 AS SIGNED ) + + 14 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT - CAST ( NULL AS INTEGER ) / - - CAST ( - 60 AS INTEGER ) + + 14 col2
----
NULL

query II rowsort
SELECT ALL + - 55 AS col2, ( 74 ) AS col0
----
-55
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT ALL 9 * 4 DIV + - CASE + COUNT( * ) WHEN + + COUNT( * ) THEN - - 50 END - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL 9 * 4 / + - CASE + COUNT ( * ) WHEN + + COUNT ( * ) THEN - - 50 END - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT ALL COUNT( * ) * - 25 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL COUNT ( * ) * - 25 AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT + CAST( NULL AS SIGNED ) + - 91 + + 20 + - - 54 * - + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT + CAST ( NULL AS INTEGER ) + - 91 + + 20 + - - 54 * - + 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4285
SELECT ALL COUNT( 80 ) * - - COUNT( * ) AS col0, - 5 col0
----
1
-5

skipif mysql # not compatible
query II rowsort label-4285
SELECT ALL COUNT ( 80 ) * - - COUNT ( * ) AS col0, - 5 col0
----
1
-5

query II rowsort
SELECT + 15 * + 9 AS col2, 44 AS col0
----
135
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT MIN( DISTINCT - - 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-4287
SELECT MIN ( DISTINCT - - 23 ) AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4288
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), - + 18 ) + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), - + 18 ) + + 22
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4289
SELECT + 79 DIV - 52 AS col1, 81 AS col1
----
-1
81

skipif mysql # not compatible
query II rowsort label-4289
SELECT + 79 / - 52 AS col1, 81 AS col1
----
-1
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT ALL - ( - 1 ) DIV 97 DIV - 4 - + ( + + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL - ( - 1 ) / 97 / - 4 - + ( + + 29 )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4291
SELECT - ( - CASE - ( + - 30 ) WHEN + 63 + + + 26 THEN COUNT( * ) * + + 25 ELSE 28 + - 29 - 33 - - 99 END ) AS col2, 41
----
65
41

skipif mysql # not compatible
query II rowsort label-4291
SELECT - ( - CASE - ( + - 30 ) WHEN + 63 + + + 26 THEN COUNT ( * ) * + + 25 ELSE 28 + - 29 - 33 - - 99 END ) AS col2, 41
----
65
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT + 72 + + MAX( ALL + 13 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4292
SELECT + 72 + + MAX ( ALL + 13 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT MAX( ALL 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4293
SELECT MAX ( ALL 27 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT 49 * + + COUNT( * ) + - 6 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4294
SELECT 49 * + + COUNT ( * ) + - 6 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL 55 + + - CASE 43 WHEN + + MAX( + - 28 ) THEN - + 90 WHEN 88 + + - 69 THEN NULL WHEN + + ( + CASE WHEN NOT 27 BETWEEN NULL AND - 82 * AVG ( - 75 ) + + 80 * + 42 / + - 90 + + 72 THEN 95 * + 88 END ) THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL 55 + + - CASE 43 WHEN + + MAX ( + - 28 ) THEN - + 90 WHEN 88 + + - 69 THEN NULL WHEN + + ( + CASE WHEN NOT 27 BETWEEN NULL AND - 82 * AVG ( - 75 ) + + 80 * + 42 / + - 90 + + 72 THEN 95 * + 88 END ) THEN NULL ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT - 25 * + CASE + - 99 WHEN - 69 THEN + COUNT( * ) + - 36 + - - 78 * + 97 + + CAST( - - COUNT( * ) AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT - 25 * + CASE + - 99 WHEN - 69 THEN + COUNT ( * ) + - 36 + - - 78 * + 97 + + CAST ( - - COUNT ( * ) AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL NULLIF ( 85, + 63 * - COUNT( * ) ) + + 64 * + 45
----
2965

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL NULLIF ( 85, + 63 * - COUNT ( * ) ) + + 64 * + 45
----
2965

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT + 37 + 97 + + - SUM( + 50 ) - - 40 + ( 64 ) + 5 + - 82 * 58 AS col1
----
-4563

skipif mysql # not compatible
query I rowsort label-4298
SELECT + 37 + 97 + + - SUM ( + 50 ) - - 40 + ( 64 ) + 5 + - 82 * 58 AS col1
----
-4563

query I rowsort
SELECT - 19 - - 44 + - ( - + 5 )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT ALL + CAST( NULL AS SIGNED ) * 55 * - - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL + CAST ( NULL AS INTEGER ) * 55 * - - 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT ALL CASE + ( 73 ) WHEN 86 THEN NULL ELSE - 81 END + COUNT( * ) * + ( + 29 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL CASE + ( 73 ) WHEN 86 THEN NULL ELSE - 81 END + COUNT ( * ) * + ( + 29 ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT DISTINCT + 8 + + + 33 + + - CASE + - SUM( ALL + 28 ) WHEN 50 THEN ( - ( 23 ) ) END + + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT + 8 + + + 33 + + - CASE + - SUM ( ALL + 28 ) WHEN 50 THEN ( - ( 23 ) ) END + + 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL - ( - 52 ) + 14 + + COUNT( * ) - 78 + 7 - + - 97 * + + 76
----
7368

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL - ( - 52 ) + 14 + + COUNT ( * ) - 78 + 7 - + - 97 * + + 76
----
7368

query I rowsort
SELECT - - 81 + 2 AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT - + NULLIF ( + - 38, - ( + 92 ) ) + 6 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT - + NULLIF ( + - 38, - ( + 92 ) ) + 6 + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL + 25 + + - COUNT( * ) * + - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL + 25 + + - COUNT ( * ) * + - COUNT ( * )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4307
SELECT - MAX( - - 52 ) AS col2, + 95 * + + SUM( - + CAST( NULL AS SIGNED ) )
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-4307
SELECT - MAX ( - - 52 ) AS col2, + 95 * + + SUM ( - + CAST ( NULL AS INTEGER ) )
----
-52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT - + ( NULLIF ( - 99, - + 99 ) ) + + 68 * + 42 / - - 82 + MAX( ALL + 84 ) + - 7 * + 49 * + + MIN( DISTINCT 40 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT - + ( NULLIF ( - 99, - + 99 ) ) + + 68 * + 42 / - - 82 + MAX ( ALL + 84 ) + - 7 * + 49 * + + MIN ( DISTINCT 40 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT ALL - - SUM( + + 62 ) + + 40 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL - - SUM ( + + 62 ) + + 40 AS col1
----
102

query I rowsort
SELECT - 98 * - 8
----
784

query I rowsort
SELECT DISTINCT - 34 * ( 34 ) AS col1
----
-1156

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT - COALESCE ( - COUNT( * ), + 31 ) * + 86 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4312
SELECT - COALESCE ( - COUNT ( * ), + 31 ) * + 86 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT + 53 * - ( - COUNT( * ) ) * - 7 + CASE - 80 WHEN 8 THEN 73 + + + 3 + - SUM( - 63 ) + + 46 + - - 60 * + 29 - - 48 * - 15 END + - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT + 53 * - ( - COUNT ( * ) ) * - 7 + CASE - 80 WHEN 8 THEN 73 + + + 3 + - SUM ( - 63 ) + + 46 + - - 60 * + 29 - - 48 * - 15 END + - - 41
----
NULL

query I rowsort
SELECT ALL - + 82 * - 1 AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4315
SELECT ALL + - NULLIF ( + 85, 93 + + 65 + 88 - 23 * + COALESCE ( CASE - 68 WHEN - + 43 * + + 76 / - - 52 * + 59 THEN - 54 WHEN - COUNT( * ) THEN ( + 79 ) ELSE + 50 * - CAST( COUNT( * ) AS SIGNED ) + - 14 END, - AVG ( ALL 75 ) * + 4 + + 2 / COUNT( * ) ) + 55 * 31 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + - NULLIF ( + 85, 93 + + 65 + 88 - 23 * + COALESCE ( CASE - 68 WHEN - + 43 * + + 76 / - - 52 * + 59 THEN - 54 WHEN - COUNT ( * ) THEN ( + 79 ) ELSE + 50 * - CAST ( COUNT ( * ) AS INTEGER ) + - 14 END, - AVG ( ALL 75 ) * + 4 + + 2 / COUNT ( * ) ) + 55 * 31 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT - + 4 * - COUNT( 66 ) * + MAX( ALL + 99 ) + - 39 AS col0
----
357

skipif mysql # not compatible
query I rowsort label-4316
SELECT - + 4 * - COUNT ( 66 ) * + MAX ( ALL + 99 ) + - 39 AS col0
----
357

query I rowsort
SELECT ALL + + CASE - 91 WHEN - + 9 THEN NULL WHEN - 26 THEN 62 ELSE NULL END * + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL - COUNT( * ) * - 57
----
57

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL - COUNT ( * ) * - 57
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT + - CASE - 79 WHEN - 5 THEN NULL ELSE - CAST( - 45 AS SIGNED ) END AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-4319
SELECT + - CASE - 79 WHEN - 5 THEN NULL ELSE - CAST ( - 45 AS INTEGER ) END AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4320
SELECT - - COALESCE ( 35, COUNT( * ) * - 66 ) * MIN( + + NULLIF ( 83, + 46 ) ) + + + 57 * - 38 * NULLIF ( - COUNT( * ), - CAST( NULL AS SIGNED ) * - + 80 ) AS col1
----
5071

skipif mysql # not compatible
query I rowsort label-4320
SELECT - - COALESCE ( 35, COUNT ( * ) * - 66 ) * MIN ( + + NULLIF ( 83, + 46 ) ) + + + 57 * - 38 * NULLIF ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) * - + 80 ) AS col1
----
5071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4321
SELECT CAST( CAST( - + 16 AS SIGNED ) AS SIGNED ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4321
SELECT CAST ( CAST ( - + 16 AS INTEGER ) AS INTEGER ) AS col2
----
-16

query I rowsort
SELECT 89 * - 1 * NULLIF ( 46, - - 23 ) - - 4 + - + 43
----
-4133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT CAST( + + 62 AS SIGNED ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4323
SELECT CAST ( + + 62 AS INTEGER ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL - NULLIF ( + 12, ( - + COUNT( * ) ) )
----
-12

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL - NULLIF ( + 12, ( - + COUNT ( * ) ) )
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4325
SELECT AVG ( - + 79 ) * + CAST( NULL AS DECIMAL ) * - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT AVG ( - + 79 ) * + CAST ( NULL AS REAL ) * - 52 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 15 * + 61 col0
----
915

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT DISTINCT COUNT( ALL - 26 ) + + SUM( ALL ( + 27 ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT COUNT ( ALL - 26 ) + + SUM ( ALL ( + 27 ) ) AS col1
----
28

query I rowsort
SELECT ALL 50 * 45 AS col1
----
2250

onlyif mysql # DIV for integer division: 
query I rowsort label-4329
SELECT ALL - 53 DIV + 3 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - 53 / + 3 AS col2
----
-17

query I rowsort
SELECT DISTINCT + 99 + + CASE - 79 WHEN - + 37 THEN NULL WHEN - 14 / + 21 + + + 26 * 67 THEN NULL WHEN ( - 33 ) * + 87 * - - ( + 87 ) THEN + 73 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4331
SELECT - 62 * + 49 - - + 88 AS col1, MIN( ALL + ( 61 ) ) * - - 82 + - COALESCE ( - - 98, 88 * + COUNT( * ) + + 17, - 61 - + 50 - + 69 * NULLIF ( 91, - - 63 ) * COALESCE ( - MAX( - NULLIF ( + 33, 8 + + 56 ) ), + 11, ( 80 ) ) * - 99 ) + + 81 * - 41 col0
----
-2950
1583

skipif mysql # not compatible
query II rowsort label-4331
SELECT - 62 * + 49 - - + 88 AS col1, MIN ( ALL + ( 61 ) ) * - - 82 + - COALESCE ( - - 98, 88 * + COUNT ( * ) + + 17, - 61 - + 50 - + 69 * NULLIF ( 91, - - 63 ) * COALESCE ( - MAX ( - NULLIF ( + 33, 8 + + 56 ) ), + 11, ( 80 ) ) * - 99 ) + + 81 * - 41 col0
----
-2950
1583

query I rowsort
SELECT DISTINCT 96 + + 0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL COUNT( + 67 ) + - - 96 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL COUNT ( + 67 ) + - - 96 AS col1
----
97

query I rowsort
SELECT ALL 14 * - 9 AS col0
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4335
SELECT 2 * + CAST( CASE - CASE - 1 WHEN + + MAX( DISTINCT - 1 ) + - CASE + 14 WHEN + + 80 + + 23 / 35 THEN NULL ELSE 72 END THEN - 19 * 33 * + 58 WHEN + 37 THEN - ( COUNT( * ) ) * + + 47 * 46 END WHEN 68 + 99 THEN 13 * 64 WHEN COALESCE ( 30, 62 * 71 - - 20 * 75 ) THEN + 83 + - 10 * - SUM( ALL - 99 ) END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4335
SELECT 2 * + CAST ( CASE - CASE - 1 WHEN + + MAX ( DISTINCT - 1 ) + - CASE + 14 WHEN + + 80 + + 23 / 35 THEN NULL ELSE 72 END THEN - 19 * 33 * + 58 WHEN + 37 THEN - ( COUNT ( * ) ) * + + 47 * 46 END WHEN 68 + 99 THEN 13 * 64 WHEN COALESCE ( 30, 62 * 71 - - 20 * 75 ) THEN + 83 + - 10 * - SUM ( ALL - 99 ) END AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL ( 74 ) + + - 96 * - 58
----
5642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4337
SELECT CAST( NULL AS SIGNED ) + NULLIF ( 78, - 67 ) + + - 73 + + - 11 * - - 11 * ( + - CASE 89 WHEN - - CAST( NULL AS DECIMAL ) + 11 * - 28 * 59 * - + 3 THEN + 62 * - 52 + - + 0 + 70 ELSE + COUNT( * ) * - 58 END ) * + ( ( COUNT( * ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT CAST ( NULL AS INTEGER ) + NULLIF ( 78, - 67 ) + + - 73 + + - 11 * - - 11 * ( + - CASE 89 WHEN - - CAST ( NULL AS REAL ) + 11 * - 28 * 59 * - + 3 THEN + 62 * - 52 + - + 0 + 70 ELSE + COUNT ( * ) * - 58 END ) * + ( ( COUNT ( * ) ) ) col1
----
NULL

query II rowsort
SELECT ALL 30 col0, 13 AS col2
----
30
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT DISTINCT CAST( NULL AS SIGNED ) + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL COUNT( * ) + + SUM( + + 20 ) + - 15 * - + 53
----
816

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL COUNT ( * ) + + SUM ( + + 20 ) + - 15 * - + 53
----
816

query I rowsort
SELECT ALL 77 + + - 6
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - + ( + COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4342
SELECT - + ( + COUNT ( * ) ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT ALL - 46 DIV + 99 * + 73
----
0

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL - 46 / + 99 * + 73
----
0

query I rowsort
SELECT DISTINCT 12 + + 30 * 87
----
2622

onlyif mysql # aggregate syntax: 
query II rowsort label-4345
SELECT - COUNT( * ) AS col1, - 31 AS col0
----
-1
-31

skipif mysql # not compatible
query II rowsort label-4345
SELECT - COUNT ( * ) AS col1, - 31 AS col0
----
-1
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4346
SELECT - CASE WHEN 67 <= - - SUM( DISTINCT + 4 ) + - MAX( + 92 ) * + 53 + + 12 * 61 * 16 THEN - - 46 DIV + + 59 ELSE NULL END
----
0

skipif mysql # not compatible
query I rowsort label-4346
SELECT - CASE WHEN 67 <= - - SUM ( DISTINCT + 4 ) + - MAX ( + 92 ) * + 53 + + 12 * 61 * 16 THEN - - 46 / + + 59 ELSE NULL END
----
0

query I rowsort
SELECT ALL 30 - - 88 col0
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT - 99 - - CAST( NULL AS SIGNED ) + + CAST( - 11 AS SIGNED ) * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4348
SELECT - 99 - - CAST ( NULL AS INTEGER ) + + CAST ( - 11 AS INTEGER ) * + 0
----
NULL

query I rowsort
SELECT 19 - 20 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4350
SELECT - SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL 57 * COUNT( * ) * + - 2
----
-114

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL 57 * COUNT ( * ) * + - 2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT - 26 + - - COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4352
SELECT - 26 + - - COUNT ( * ) AS col0
----
-25

query I rowsort
SELECT ALL + + 17 - + ( + 38 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4354
SELECT SUM( - 83 ) - MIN( DISTINCT CAST( NULL AS SIGNED ) ) - 14 - - 96 / + CASE + 38 WHEN - + 46 / 91 * ( + MIN( ALL + + 31 ) ) + - 10 THEN - + 49 + CAST( 68 AS DECIMAL ) WHEN + CASE + COUNT( * ) WHEN + 8 * + AVG ( ALL - 55 ) + + 66 / 17 THEN - COUNT( * ) * 60 ELSE - ( + MIN( + ( + ( 10 ) ) ) ) END THEN NULL ELSE 24 + - SUM( 5 + ( - 15 ) ) END * + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT SUM ( - 83 ) - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) - 14 - - 96 / + CASE + 38 WHEN - + 46 / 91 * ( + MIN ( ALL + + 31 ) ) + - 10 THEN - + 49 + CAST ( 68 AS REAL ) WHEN + CASE + COUNT ( * ) WHEN + 8 * + AVG ( ALL - 55 ) + + 66 / 17 THEN - COUNT ( * ) * 60 ELSE - ( + MIN ( + ( + ( 10 ) ) ) ) END THEN NULL ELSE 24 + - SUM ( 5 + ( - 15 ) ) END * + 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT - - NULLIF ( + + MIN( DISTINCT 3 ), - - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - - NULLIF ( + + MIN ( DISTINCT 3 ), - - 3 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT - 99 * - + 24 * 4 + - 49 * + 55 + + - COUNT( * ) + + 13 + - 33 + - 16 * CASE - + MAX( ALL + - 73 ) WHEN - - ( + - 47 ) THEN - - 69 END * - - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT - 99 * - + 24 * 4 + - 49 * + 55 + + - COUNT ( * ) + + 13 + - 33 + - 16 * CASE - + MAX ( ALL + - 73 ) WHEN - - ( + - 47 ) THEN - - 69 END * - - 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT - 43 + - COALESCE ( - + 85, + 6, + ( - + COALESCE ( - - 26, + 43 * + ( + - 69 ) + 20 + 39 + - 66 + - + 23 * - 17 - 14 - COUNT( * ), - 33, - + 60 ) ) + - ( - 24 ) + + 77 * 15 ) * 10 AS col0
----
807

skipif mysql # not compatible
query I rowsort label-4357
SELECT - 43 + - COALESCE ( - + 85, + 6, + ( - + COALESCE ( - - 26, + 43 * + ( + - 69 ) + 20 + 39 + - 66 + - + 23 * - 17 - 14 - COUNT ( * ), - 33, - + 60 ) ) + - ( - 24 ) + + 77 * 15 ) * 10 AS col0
----
807

query II rowsort
SELECT + 24 AS col1, + 88 AS col1
----
24
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT 9 * + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4359
SELECT 9 * + COUNT ( * ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL + CASE - 90 WHEN 36 THEN COUNT( * ) / - + COUNT( * ) + - COUNT( * ) + - 32 + + + 15 + + COUNT( + - 44 ) * 25 WHEN + + 57 THEN NULL END * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + CASE - 90 WHEN 36 THEN COUNT ( * ) / - + COUNT ( * ) + - COUNT ( * ) + - 32 + + + 15 + + COUNT ( + - 44 ) * 25 WHEN + + 57 THEN NULL END * - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ALL - COALESCE ( 98, COUNT( * ) * + 19, + 93 * 94 * - 86 + + SUM( - - 86 ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL - COALESCE ( 98, COUNT ( * ) * + 19, + 93 * 94 * - 86 + + SUM ( - - 86 ) ) AS col0
----
-98

query II rowsort
SELECT + 52, ( - 54 ) - - 60 col0
----
52
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT DISTINCT + COUNT( * ) + + + 31 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT + COUNT ( * ) + + + 31 AS col2
----
32

query I rowsort
SELECT 21 * 19 * 35
----
13965

query II rowsort
SELECT DISTINCT - 63 AS col0, - 58 * + + 27
----
-63
-1566

query I rowsort
SELECT DISTINCT - ( - - 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT 86 * - 69 + 25 * COUNT( * )
----
-5909

skipif mysql # not compatible
query I rowsort label-4367
SELECT 86 * - 69 + 25 * COUNT ( * )
----
-5909

query I rowsort
SELECT 21 + + + 95 - ( + 49 )
----
67

query I rowsort
SELECT DISTINCT ( 96 ) + - - 63
----
159

query I rowsort
SELECT ALL 60 * + + 10 AS col2
----
600

query I rowsort
SELECT ALL 36 + - 16 col1
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-4372
SELECT - 83, - 15 DIV + + 71 AS col2
----
-83
0

skipif mysql # not compatible
query II rowsort label-4372
SELECT - 83, - 15 / + + 71 AS col2
----
-83
0

query I rowsort
SELECT DISTINCT - 5 * + 50 AS col1
----
-250

query I rowsort
SELECT DISTINCT + + 53 - 71 * - 84 + - - 30 AS col0
----
6047

query I rowsort
SELECT 55 + + 54 * - 2 - - 48 + + 95
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4376
SELECT ALL COALESCE ( - 92, - + ( CAST( NULL AS SIGNED ) ), COUNT( * ) ) * CASE 84 WHEN 30 + 86 THEN - 87 END * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL COALESCE ( - 92, - + ( CAST ( NULL AS INTEGER ) ), COUNT ( * ) ) * CASE 84 WHEN 30 + 86 THEN - 87 END * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4377
SELECT - 77 AS col2, 24 DIV - COUNT( ALL - - NULLIF ( - 5, + - 35 * - 88 - + + 53 ) ) AS col0
----
-77
-24

skipif mysql # not compatible
query II rowsort label-4377
SELECT - 77 AS col2, 24 / - COUNT ( ALL - - NULLIF ( - 5, + - 35 * - 88 - + + 53 ) ) AS col0
----
-77
-24

query I rowsort
SELECT - 58 + 60 + + ( + 25 ) + + + 18
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4379
SELECT - 71 * ( - - 72 ) DIV + 84 + 77 + + - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-4379
SELECT - 71 * ( - - 72 ) / + 84 + 77 + + - COUNT ( * )
----
16

onlyif mysql # DIV for integer division: 
query II rowsort label-4380
SELECT ALL + 90, 80 DIV - + 30 AS col0
----
90
-2

skipif mysql # not compatible
query II rowsort label-4380
SELECT ALL + 90, 80 / - + 30 AS col0
----
90
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT COUNT( * ) + - - 73 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4381
SELECT COUNT ( * ) + - - 73 AS col0
----
74

query I rowsort
SELECT ALL + + 73 * + 96 + + - 71 col1
----
6937

query I rowsort
SELECT ALL - + NULLIF ( - 23, + 65 + - + 3 ) * - + 62
----
-1426

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL + SUM( 2 )
----
2

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL + SUM ( 2 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4385
SELECT ALL + CASE + 77 WHEN + + 84 * - 9 * + 93 + + 47 THEN - 82 ELSE - 49 DIV + 8 + 89 * 87 * - - 2 END DIV - 43 + COUNT( * ) - + - 88
----
-271

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL + CASE + 77 WHEN + + 84 * - 9 * + 93 + + 47 THEN - 82 ELSE - 49 / + 8 + 89 * 87 * - - 2 END / - 43 + COUNT ( * ) - + - 88
----
-271

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4386
SELECT - COALESCE ( + + COUNT( * ), 35 DIV + - 26, - + COALESCE ( + COUNT( * ), - 28 - + 95 + - COUNT( * ), - 59 ) + 60 ) + 9 * + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4386
SELECT - COALESCE ( + + COUNT ( * ), 35 / + - 26, - + COALESCE ( + COUNT ( * ), - 28 - + 95 + - COUNT ( * ), - 59 ) + 60 ) + 9 * + COUNT ( * )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT 72 * - - CAST( - - 49 AS SIGNED )
----
3528

skipif mysql # not compatible
query I rowsort label-4387
SELECT 72 * - - CAST ( - - 49 AS INTEGER )
----
3528

query II rowsort
SELECT ALL 34 col0, 86 * - 98 + - - 50 * + 34 - - - 28 AS col2
----
34
-6756

query II rowsort
SELECT ALL + 47, + 28 AS col2
----
47
28

query I rowsort
SELECT - 4 * ( + + 13 ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT - NULLIF ( - 77, 96 * 26 + - 7 * + NULLIF ( + 62, - - 18 ) + COUNT( * ) * - - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-4391
SELECT - NULLIF ( - 77, 96 * 26 + - 7 * + NULLIF ( + 62, - - 18 ) + COUNT ( * ) * - - 77 )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4392
SELECT DISTINCT 41, + 93 / - + 43 * + 86 * + CAST( NULL AS SIGNED ) col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-4392
SELECT DISTINCT 41, + 93 / - + 43 * + 86 * + CAST ( NULL AS INTEGER ) col0
----
41
NULL

query I rowsort
SELECT ALL + COALESCE ( + - ( - 8 ), + + 3 ) * 44
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ALL + 29 * - 4 * MAX( DISTINCT + 19 ) + 18
----
-2186

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + 29 * - 4 * MAX ( DISTINCT + 19 ) + 18
----
-2186

query I rowsort
SELECT DISTINCT 75 * + - 82 + - 75 AS col0
----
-6225

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4396
SELECT + CASE + CASE + 92 WHEN 51 * + - 68 * - 75 THEN + 41 ELSE - 16 END WHEN CAST( NULL AS DECIMAL ) THEN NULL ELSE - 46 + 40 END AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4396
SELECT + CASE + CASE + 92 WHEN 51 * + - 68 * - 75 THEN + 41 ELSE - 16 END WHEN CAST ( NULL AS REAL ) THEN NULL ELSE - 46 + 40 END AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT + COUNT( DISTINCT - ( + NULLIF ( + 45, + + 62 ) ) ) * - 17
----
-17

skipif mysql # not compatible
query I rowsort label-4397
SELECT + COUNT ( DISTINCT - ( + NULLIF ( + 45, + + 62 ) ) ) * - 17
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4398
SELECT CASE + - 57 WHEN + + 27 THEN + + COUNT( * ) * - - 38 END col1, + 92 * - - 74
----
NULL
6808

skipif mysql # not compatible
query II rowsort label-4398
SELECT CASE + - 57 WHEN + + 27 THEN + + COUNT ( * ) * - - 38 END col1, + 92 * - - 74
----
NULL
6808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4399
SELECT ALL + 75 * 40 / - 52 * + 71 + + + 51 + ( CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) ) + + 75 + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL + 75 * 40 / - 52 * + 71 + + + 51 + ( CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) + + 75 + - 98
----
NULL

query I rowsort
SELECT ALL - 92 * - - 97 * + 7 + - + 57 AS col2
----
-62525

query I rowsort
SELECT - 32 * - ( - 60 )
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT + COUNT( + 58 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4402
SELECT + COUNT ( + 58 ) AS col1
----
1

query I rowsort
SELECT NULLIF ( + 83, 12 )
----
83

query I rowsort
SELECT ALL - 65 * + + 36 + + + 31 AS col2
----
-2309

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4405
SELECT - 85 DIV + NULLIF ( - + MIN( - + 24 ), - - ( + 46 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-4405
SELECT - 85 / + NULLIF ( - + MIN ( - + 24 ), - - ( + 46 ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT - ( + 45 ) * + 2 * + - 39 - - COUNT( * ) + + NULLIF ( - - 57, - + 67 * - 20 * + 66 + + + COUNT( DISTINCT + 48 ) ) * + + MIN( ALL - 32 ) * + 54 + + 29 AS col1
----
-94956

skipif mysql # not compatible
query I rowsort label-4406
SELECT - ( + 45 ) * + 2 * + - 39 - - COUNT ( * ) + + NULLIF ( - - 57, - + 67 * - 20 * + 66 + + + COUNT ( DISTINCT + 48 ) ) * + + MIN ( ALL - 32 ) * + 54 + + 29 AS col1
----
-94956

onlyif mysql # aggregate syntax: 
query II rowsort label-4407
SELECT COALESCE ( - ( - SUM( DISTINCT 80 ) ), ( 80 ) * + - 40 + + 96 * 95, + 48 ), - 84 * - 53 + + 90 AS col0
----
80
4542

skipif mysql # not compatible
query II rowsort label-4407
SELECT COALESCE ( - ( - SUM ( DISTINCT 80 ) ), ( 80 ) * + - 40 + + 96 * 95, + 48 ), - 84 * - 53 + + 90 AS col0
----
80
4542

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4408
SELECT ALL + 90 DIV - COUNT( * ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL + 90 / - COUNT ( * ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT SUM( - + ( + 1 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4409
SELECT SUM ( - + ( + 1 ) ) AS col0
----
-1

query I rowsort
SELECT 99 * + 54 * - 42 - + 79 AS col0
----
-224611

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4411
SELECT DISTINCT COUNT( * ) DIV 80 * - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT COUNT ( * ) / 80 * - 52 AS col1
----
0

query I rowsort
SELECT - 49 + 29 + + 5 * + + 88
----
420

query I rowsort
SELECT ALL + ( - + 64 ) * - 84
----
5376

query I rowsort
SELECT - 66 * - 47
----
3102

query I rowsort
SELECT + 13 + - ( CASE - 10 WHEN - ( - 89 ) THEN NULL WHEN + 39 * 26 THEN + 21 END )
----
NULL

query I rowsort
SELECT - 15 * + 72 - 3
----
-1083

query I rowsort
SELECT + 30 * 61 * + 53 AS col1
----
96990

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT 99 * - CASE + 57 WHEN + COUNT( * ) * - 36 THEN 66 * + - 96 * 47 * + 56 + + - COUNT( DISTINCT 29 ) * + 83 * + ( 71 ) WHEN + 69 * + + CASE 23 WHEN - ( ( + 32 ) ) * - + ( 63 ) * + 83 THEN 21 * - 29 ELSE + 59 * 98 END * + 5 - 27 THEN NULL WHEN + ( - 77 ) THEN - 47 * + MAX( ALL - 34 ) END + SUM( - 12 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT 99 * - CASE + 57 WHEN + COUNT ( * ) * - 36 THEN 66 * + - 96 * 47 * + 56 + + - COUNT ( DISTINCT 29 ) * + 83 * + ( 71 ) WHEN + 69 * + + CASE 23 WHEN - ( ( + 32 ) ) * - + ( 63 ) * + 83 THEN 21 * - 29 ELSE + 59 * 98 END * + 5 - 27 THEN NULL WHEN + ( - 77 ) THEN - 47 * + MAX ( ALL - 34 ) END + SUM ( - 12 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL - SUM( DISTINCT + + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL - SUM ( DISTINCT + + 64 )
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-4420
SELECT - - ( - COUNT( * ) ), 78 AS col0
----
-1
78

skipif mysql # not compatible
query II rowsort label-4420
SELECT - - ( - COUNT ( * ) ), 78 AS col0
----
-1
78

query II rowsort
SELECT DISTINCT ( 44 ) AS col2, 74
----
44
74

query I rowsort
SELECT - 36 * - 12
----
432

query I rowsort
SELECT ALL 75 * 3
----
225

query I rowsort
SELECT - + 31 - 64
----
-95

query I rowsort
SELECT ALL - 62 + - + ( - 13 ) * + - 86
----
-1180

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT - - 56 + 90 + ( + 18 ) * - - COUNT( * ) AS col2
----
164

skipif mysql # not compatible
query I rowsort label-4426
SELECT - - 56 + 90 + ( + 18 ) * - - COUNT ( * ) AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - COALESCE ( - SUM( DISTINCT + 40 ), - - 75 + 53 + 15 * - 9 * + - 96 + + 82 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4427
SELECT - COALESCE ( - SUM ( DISTINCT + 40 ), - - 75 + 53 + 15 * - 9 * + - 96 + + 82 ) AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4428
SELECT ALL + COUNT( ALL CAST( 51 AS DECIMAL ) ) + - 62 + - 60 AS col0
----
-121

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL + COUNT ( ALL CAST ( 51 AS REAL ) ) + - 62 + - 60 AS col0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT - + 81 + - COUNT( * ) + + - COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4429
SELECT - + 81 + - COUNT ( * ) + + - COUNT ( * ) AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4430
SELECT DISTINCT ( + 38 ) + + CAST( - 71 AS SIGNED ) AS col2, COUNT( * ) * + ( - COUNT( * ) ) AS col0
----
-33
-1

skipif mysql # not compatible
query II rowsort label-4430
SELECT DISTINCT ( + 38 ) + + CAST ( - 71 AS INTEGER ) AS col2, COUNT ( * ) * + ( - COUNT ( * ) ) AS col0
----
-33
-1

query I rowsort
SELECT + 32 + + 57 AS col0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4432
SELECT + COUNT( * ) AS col1, - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-4432
SELECT + COUNT ( * ) AS col1, - COUNT ( * ) AS col1
----
1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4433
SELECT 67 * - - 69 * + 15 + - CAST( - + NULLIF ( - AVG ( ALL - 38 ), - 78 / + - ( + - 75 ) ) AS SIGNED ) - - 6 AS col2
----
69389

skipif mysql # not compatible
query I rowsort label-4433
SELECT 67 * - - 69 * + 15 + - CAST ( - + NULLIF ( - AVG ( ALL - 38 ), - 78 / + - ( + - 75 ) ) AS INTEGER ) - - 6 AS col2
----
69389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4434
SELECT CAST( ( + + 52 ) AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-4434
SELECT CAST ( ( + + 52 ) AS INTEGER )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT ALL + CASE CAST( NULL AS SIGNED ) WHEN 73 THEN NULL WHEN - 65 THEN + + 74 - + - 53 * + - 11 * + + 54 END / 81 * + + 12 + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL + CASE CAST ( NULL AS INTEGER ) WHEN 73 THEN NULL WHEN - 65 THEN + + 74 - + - 53 * + - 11 * + + 54 END / 81 * + + 12 + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT + 96 + - - COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4436
SELECT + 96 + - - COUNT ( * ) AS col2
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4437
SELECT ALL + 5 DIV + ( - - 17 ) - - 49 + COALESCE ( COUNT( * ), + 86 * + 32 * + 63 + + - COALESCE ( + MAX( + + 66 ), - COUNT( * ) DIV + 15 ) ) * + MIN( + ( + - 37 ) ) col2
----
12

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + 5 / + ( - - 17 ) - - 49 + COALESCE ( COUNT ( * ), + 86 * + 32 * + 63 + + - COALESCE ( + MAX ( + + 66 ), - COUNT ( * ) / + 15 ) ) * + MIN ( + ( + - 37 ) ) col2
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4438
SELECT ALL NULLIF ( 20, CAST( + 94 AS DECIMAL ) ) * 28 AS col1
----
560

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL NULLIF ( 20, CAST ( + 94 AS REAL ) ) * 28 AS col1
----
560

query I rowsort
SELECT ALL + COALESCE ( - ( + ( 66 ) ), - + 67, - - 65 )
----
-66

query I rowsort
SELECT ( + 81 ) AS col2
----
81

query I rowsort
SELECT + 48 * - - 99 + + CASE + + 98 WHEN + COALESCE ( 73, 99, - 46 * 14 ) THEN - 46 - 10 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT - COALESCE ( 76, - ( 48 ) ) * COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-4442
SELECT - COALESCE ( 76, - ( 48 ) ) * COUNT ( * )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4443
SELECT - 11 * - 72 * - 53 + - COUNT( - - CAST( NULL AS SIGNED ) ) AS col0
----
-41976

skipif mysql # not compatible
query I rowsort label-4443
SELECT - 11 * - 72 * - 53 + - COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
-41976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT + - CASE + 64 WHEN - 28 * COUNT( ALL - ( - - 45 ) ) + - COUNT( + 67 ) * + CAST( - 68 AS SIGNED ) THEN - COUNT( 7 ) * 84 WHEN - 57 THEN NULL ELSE + - 66 * + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT + - CASE + 64 WHEN - 28 * COUNT ( ALL - ( - - 45 ) ) + - COUNT ( + 67 ) * + CAST ( - 68 AS INTEGER ) THEN - COUNT ( 7 ) * 84 WHEN - 57 THEN NULL ELSE + - 66 * + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT ALL + 18 * ( - + 28 )
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT + 93 + - 28 - + 42 - + + 54 * + - COUNT( * ) + - 79
----
-2

skipif mysql # not compatible
query I rowsort label-4446
SELECT + 93 + - 28 - + 42 - + + 54 * + - COUNT ( * ) + - 79
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4447
SELECT ALL 62 DIV 61 * 89 * + COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL 62 / 61 * 89 * + COUNT ( * ) AS col2
----
89

query I rowsort
SELECT ALL - - 35 * 5 * NULLIF ( - 89, + 12 )
----
-15575

query I rowsort
SELECT ALL + + 10 * + + 37 * + 99 AS col0
----
36630

query I rowsort
SELECT - - 21 + + - 40 + - 62 * 27
----
-1693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4451
SELECT - 14 * 93 / + + SUM( DISTINCT - + 41 ) - 1 * - CAST( NULL AS SIGNED ) * + 86 + COALESCE ( + - 38, 8, 43 + - + 56 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT - 14 * 93 / + + SUM ( DISTINCT - + 41 ) - 1 * - CAST ( NULL AS INTEGER ) * + 86 + COALESCE ( + - 38, 8, 43 + - + 56 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT - - MAX( DISTINCT + - 14 ) + COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-4452
SELECT - - MAX ( DISTINCT + - 14 ) + COUNT ( * ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-4453
SELECT - 30 AS col0, - COUNT( * ) - + 50 - + - 77 - + - ( 69 ) * 92 * - + 73 AS col0
----
-30
-463378

skipif mysql # not compatible
query II rowsort label-4453
SELECT - 30 AS col0, - COUNT ( * ) - + 50 - + - 77 - + - ( 69 ) * 92 * - + 73 AS col0
----
-30
-463378

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4454
SELECT - 95 + + + CAST( CAST( + - 58 AS DECIMAL ) AS SIGNED ) AS col0
----
-153

skipif mysql # not compatible
query I rowsort label-4454
SELECT - 95 + + + CAST ( CAST ( + - 58 AS REAL ) AS INTEGER ) AS col0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT 63 + - 23 * MIN( ALL + 59 ) * 64 + 28 - MAX( 18 ) - 15 * 69
----
-87810

skipif mysql # not compatible
query I rowsort label-4455
SELECT 63 + - 23 * MIN ( ALL + 59 ) * 64 + 28 - MAX ( 18 ) - 15 * 69
----
-87810

query I rowsort
SELECT - 9 * - 81 AS col0
----
729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4457
SELECT ALL + + NULLIF ( - - 74, + + MIN( DISTINCT 15 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL + + NULLIF ( - - 74, + + MIN ( DISTINCT 15 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4458
SELECT ALL + 68 AS col0, - COUNT( * ) AS col1
----
68
-1

skipif mysql # not compatible
query II rowsort label-4458
SELECT ALL + 68 AS col0, - COUNT ( * ) AS col1
----
68
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4459
SELECT ALL - + 39 + + 83 - 32 - - 3 * - - NULLIF ( - 72, - + 65 * - 32 * + - 68 * + 2 - NULLIF ( - - 13, + 86 * + - 20 + + COUNT( * ) ) ) + + 30 AS col1, + COUNT( * ) col2
----
-174
1

skipif mysql # not compatible
query II rowsort label-4459
SELECT ALL - + 39 + + 83 - 32 - - 3 * - - NULLIF ( - 72, - + 65 * - 32 * + - 68 * + 2 - NULLIF ( - - 13, + 86 * + - 20 + + COUNT ( * ) ) ) + + 30 AS col1, + COUNT ( * ) col2
----
-174
1

query II rowsort
SELECT - 82, + 12 AS col1
----
-82
12

query II rowsort
SELECT 15 + - - 60, 29 * + 37 * - + 45 * - 68 * + 84 + + 33 - - - 27 * - - 73 + + 69 col2
----
75
275802051

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4462
SELECT ALL + COALESCE ( - - 55, - 28, - 79 ) * - - 61 - CASE + - 89 WHEN COUNT( * ) + + 55 THEN - COUNT( * ) WHEN COUNT( * ) * + 42 THEN NULL WHEN - + COALESCE ( + SUM( DISTINCT + 35 ), 16, - MIN( + 42 ) DIV + COUNT( + 75 ) + - - 80 ) * - + NULLIF ( COALESCE ( 94, - COALESCE ( 42, 9 + 76, + 13 + COUNT( * ) ) ), 18 * COUNT( * ) ) * COUNT( ALL + 15 ) + + 13 THEN NULL ELSE MIN( + 21 ) DIV - 69 END AS col1
----
3355

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL + COALESCE ( - - 55, - 28, - 79 ) * - - 61 - CASE + - 89 WHEN COUNT ( * ) + + 55 THEN - COUNT ( * ) WHEN COUNT ( * ) * + 42 THEN NULL WHEN - + COALESCE ( + SUM ( DISTINCT + 35 ), 16, - MIN ( + 42 ) / + COUNT ( + 75 ) + - - 80 ) * - + NULLIF ( COALESCE ( 94, - COALESCE ( 42, 9 + 76, + 13 + COUNT ( * ) ) ), 18 * COUNT ( * ) ) * COUNT ( ALL + 15 ) + + 13 THEN NULL ELSE MIN ( + 21 ) / - 69 END AS col1
----
3355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4463
SELECT NULLIF ( + 66, - 50 + CAST( NULL AS SIGNED ) - - COUNT( * ) * - 8 / - COUNT( ALL - - 11 ) - + 20 ) + - 96 AS col0, + 4
----
-30
4

skipif mysql # not compatible
query II rowsort label-4463
SELECT NULLIF ( + 66, - 50 + CAST ( NULL AS INTEGER ) - - COUNT ( * ) * - 8 / - COUNT ( ALL - - 11 ) - + 20 ) + - 96 AS col0, + 4
----
-30
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT 95 * 90 * - CAST( + 65 AS SIGNED )
----
-555750

skipif mysql # not compatible
query I rowsort label-4464
SELECT 95 * 90 * - CAST ( + 65 AS INTEGER )
----
-555750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4465
SELECT ALL - ( COUNT( * ) ) + + CAST( 41 AS SIGNED ) * - 6 + + ( + COUNT( * ) ) * - 37 AS col1
----
-284

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL - ( COUNT ( * ) ) + + CAST ( 41 AS INTEGER ) * - 6 + + ( + COUNT ( * ) ) * - 37 AS col1
----
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT NULLIF ( - CASE + 31 WHEN - - ( - 69 ) THEN - 94 ELSE NULL END, ( MAX( DISTINCT - 35 ) ) / 96 * - 2 ) - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT NULLIF ( - CASE + 31 WHEN - - ( - 69 ) THEN - 94 ELSE NULL END, ( MAX ( DISTINCT - 35 ) ) / 96 * - 2 ) - + 99
----
NULL

query I rowsort
SELECT 21 * - + 21 * + + 8 AS col1
----
-3528

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT DISTINCT 20 DIV - 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT 20 / - 38 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4469
SELECT ALL 37 DIV + 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL 37 / + 40 AS col1
----
0

query I rowsort
SELECT 14 + + + 78
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4471
SELECT DISTINCT 84 DIV 6 * 55
----
770

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT 84 / 6 * 55
----
770

onlyif mysql # DIV for integer division: 
query I rowsort label-4472
SELECT 65 DIV 61
----
1

skipif mysql # not compatible
query I rowsort label-4472
SELECT 65 / 61
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4473
SELECT CAST( COUNT( * ) AS SIGNED ) * - + COUNT( ALL - - 75 ) + 73 + + 2 + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-4473
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - + COUNT ( ALL - - 75 ) + 73 + + 2 + + COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4474
SELECT DISTINCT - MIN( 17 ) AS col0, + 25 * - 9 + + 76
----
-17
-149

skipif mysql # not compatible
query II rowsort label-4474
SELECT DISTINCT - MIN ( 17 ) AS col0, + 25 * - 9 + + 76
----
-17
-149

onlyif mysql # aggregate syntax: 
query II rowsort label-4475
SELECT ALL 51 * - + COUNT( * ) AS col0, 24
----
-51
24

skipif mysql # not compatible
query II rowsort label-4475
SELECT ALL 51 * - + COUNT ( * ) AS col0, 24
----
-51
24

query I rowsort
SELECT ALL + 55 + - 10 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT 17 * - 65 - COUNT( * ) AS col2
----
-1106

skipif mysql # not compatible
query I rowsort label-4477
SELECT 17 * - 65 - COUNT ( * ) AS col2
----
-1106

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT COALESCE ( 31, - COALESCE ( + 48, + - 86 ) ) / - SUM( DISTINCT + + 30 ) * 6 + - ( + - CASE - - AVG ( DISTINCT + 80 ) WHEN - 13 * + 67 THEN NULL WHEN + - 88 + + 15 THEN - MIN( ALL - 28 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT COALESCE ( 31, - COALESCE ( + 48, + - 86 ) ) / - SUM ( DISTINCT + + 30 ) * 6 + - ( + - CASE - - AVG ( DISTINCT + 80 ) WHEN - 13 * + 67 THEN NULL WHEN + - 88 + + 15 THEN - MIN ( ALL - 28 ) END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4479
SELECT - COUNT( * ) * 52 + + 45 * - ( CAST( NULL AS DECIMAL ) ) + - 77 - - 7 + + ( - 14 ) + MIN( DISTINCT + - 76 ) / - 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT - COUNT ( * ) * 52 + + 45 * - ( CAST ( NULL AS REAL ) ) + - 77 - - 7 + + ( - 14 ) + MIN ( DISTINCT + - 76 ) / - 89 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4480
SELECT ALL CAST( + - AVG ( ALL + 6 ) AS SIGNED ) + + + COUNT( * ) + - + ( - 45 ) * 72 + - CAST( NULL AS DECIMAL ) - - CASE - 14 WHEN - 49 THEN - COUNT( * ) WHEN 54 * - + 85 + + + COUNT( * ) - - + COUNT( * ) + + 57 + - 49 THEN NULL WHEN + COUNT( * ) THEN NULL END * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL CAST ( + - AVG ( ALL + 6 ) AS INTEGER ) + + + COUNT ( * ) + - + ( - 45 ) * 72 + - CAST ( NULL AS REAL ) - - CASE - 14 WHEN - 49 THEN - COUNT ( * ) WHEN 54 * - + 85 + + + COUNT ( * ) - - + COUNT ( * ) + + 57 + - 49 THEN NULL WHEN + COUNT ( * ) THEN NULL END * 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT - 84 + - + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-4481
SELECT - 84 + - + COUNT ( * )
----
-85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4482
SELECT DISTINCT - 29 + 46 DIV - 84 * - CAST( 67 AS SIGNED ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT - 29 + 46 / - 84 * - CAST ( 67 AS INTEGER ) AS col0
----
-29

query I rowsort
SELECT DISTINCT - 12 + - 92 AS col2
----
-104

query I rowsort
SELECT DISTINCT 81 + 74 AS col1
----
155

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4485
SELECT DISTINCT + + 66 * + 58 * + COALESCE ( - 17, - - 59 ) * + COUNT( DISTINCT - 61 ) * - 82 * + 72 + + COUNT( * ) + - SUM( + - 17 ) * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT + + 66 * + 58 * + COALESCE ( - 17, - - 59 ) * + COUNT ( DISTINCT - 61 ) * - 82 * + 72 + + COUNT ( * ) + - SUM ( + - 17 ) * - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT ALL - 79 + + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL - 79 + + COUNT ( * )
----
-78

query I rowsort
SELECT 58 * 32 - - 5 AS col1
----
1861

query I rowsort
SELECT DISTINCT 99 * + + 47 * - 38 AS col2
----
-176814

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4489
SELECT CASE - 71 WHEN + - 29 THEN + 3 + + - 27 + COUNT( * ) * + MAX( DISTINCT 83 ) * - - 63 + 4 + + 4 ELSE NULL END + - 49 + + NULLIF ( - + MAX( + 46 ), + CASE ( + + 92 ) WHEN 27 / - ( - + 81 ) THEN + 45 * - 53 + + 30 + + CAST( NULL AS DECIMAL ) END * 30 ) / 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT CASE - 71 WHEN + - 29 THEN + 3 + + - 27 + COUNT ( * ) * + MAX ( DISTINCT 83 ) * - - 63 + 4 + + 4 ELSE NULL END + - 49 + + NULLIF ( - + MAX ( + 46 ), + CASE ( + + 92 ) WHEN 27 / - ( - + 81 ) THEN + 45 * - 53 + + 30 + + CAST ( NULL AS REAL ) END * 30 ) / 60
----
NULL

query I rowsort
SELECT + 43 * - - 0
----
0

query I rowsort
SELECT ALL - 67 - - 36
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT 31 * - 85 * 55 * + COUNT( * ) AS col0
----
-144925

skipif mysql # not compatible
query I rowsort label-4492
SELECT 31 * - 85 * 55 * + COUNT ( * ) AS col0
----
-144925

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT COUNT( * ) - 40 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-4493
SELECT COUNT ( * ) - 40 AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT DISTINCT NULLIF ( + CAST( NULL AS SIGNED ), + - 38 + - ( + 44 ) ) * 98 + - - 71 + 72 - - 83 - - 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT NULLIF ( + CAST ( NULL AS INTEGER ), + - 38 + - ( + 44 ) ) * 98 + - - 71 + 72 - - 83 - - 64 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 50 - - 73
----
123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4496
SELECT 34 + - - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT 34 + - - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4497
SELECT 40 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4497
SELECT 40 + + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 59 AS col0, 76 * 52 AS col2
----
59
3952

query I rowsort
SELECT 56 * - 69 col1
----
-3864

query II rowsort
SELECT 39 + - 23 + 49 AS col2, - 65 * - - ( + 0 )
----
65
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4501
SELECT ALL - 32 * + COUNT( - + 74 ), 69 AS col1
----
-32
69

skipif mysql # not compatible
query II rowsort label-4501
SELECT ALL - 32 * + COUNT ( - + 74 ), 69 AS col1
----
-32
69

query I rowsort
SELECT 46 * 86
----
3956

query I rowsort
SELECT DISTINCT - 60 * + 23 AS col2
----
-1380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4504
SELECT 78 DIV - COUNT( DISTINCT - + COALESCE ( - CAST( - 96 AS SIGNED ), - 70, + 76 * - + 23 ) ) + 36 + - 13 + + 77 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4504
SELECT 78 / - COUNT ( DISTINCT - + COALESCE ( - CAST ( - 96 AS INTEGER ), - 70, + 76 * - + 23 ) ) + 36 + - 13 + + 77 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL - COUNT( * ) * + + 93
----
-93

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL - COUNT ( * ) * + + 93
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4506
SELECT ALL - 56 * - COUNT( * ) DIV + - 63 + - 18
----
-18

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL - 56 * - COUNT ( * ) / + - 63 + - 18
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT ALL 68 * - ( CAST( NULL AS SIGNED ) ) + 23 * + 73 + + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL 68 * - ( CAST ( NULL AS INTEGER ) ) + 23 * + 73 + + 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT DISTINCT SUM( ALL + ( - 55 ) ) * + - 1 * - + 49 + COALESCE ( + COUNT( DISTINCT + + 44 ), 88 ) - - 72 * - 52
----
-6438

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT SUM ( ALL + ( - 55 ) ) * + - 1 * - + 49 + COALESCE ( + COUNT ( DISTINCT + + 44 ), 88 ) - - 72 * - 52
----
-6438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4509
SELECT + COUNT( * ) * + - COALESCE ( + COUNT( DISTINCT + + 67 ), + CASE WHEN CAST( - - 26 AS DECIMAL ) IS NULL THEN NULL ELSE - CASE + 63 WHEN - 39 THEN + CAST( NULL AS SIGNED ) * + NULLIF ( - 87, - + 17 - + 71 - + + 76 - 25 + - 60 * - 69 / + 31 ) + + 27 END END + + 30 - + 42 + + 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-4509
SELECT + COUNT ( * ) * + - COALESCE ( + COUNT ( DISTINCT + + 67 ), + CASE WHEN CAST ( - - 26 AS REAL ) IS NULL THEN NULL ELSE - CASE + 63 WHEN - 39 THEN + CAST ( NULL AS INTEGER ) * + NULLIF ( - 87, - + 17 - + 71 - + + 76 - 25 + - 60 * - 69 / + 31 ) + + 27 END END + + 30 - + 42 + + 44 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL SUM( DISTINCT + 74 ) + - + COALESCE ( + - 11, 57 ) - + 74 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL SUM ( DISTINCT + 74 ) + - + COALESCE ( + - 11, 57 ) - + 74 AS col2
----
11

query I rowsort
SELECT + - 69 + - 40 + ( - - 4 ) AS col0
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4512
SELECT ALL + - COUNT( * ) + ( + - 29 ) DIV + 82
----
-1

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL + - COUNT ( * ) + ( + - 29 ) / + 82
----
-1

query I rowsort
SELECT ALL + 99 * - + 33 AS col0
----
-3267

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT + + CASE - 38 WHEN 42 + 51 - + 0 THEN NULL WHEN + MIN( DISTINCT + 12 ) * 49 / COUNT( * ) + + - 49 THEN - ( + 40 ) - - CASE 66 WHEN - + ( + 35 ) THEN COUNT( * ) + ( - - 55 ) ELSE NULL END * 32 * COUNT( * ) * - - COUNT( * ) + 29 WHEN - 43 THEN NULL END + + + ( + CASE + CASE 11 WHEN 14 THEN - 34 END WHEN 21 THEN 11 ELSE NULL END ) / COUNT( ALL 0 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT + + CASE - 38 WHEN 42 + 51 - + 0 THEN NULL WHEN + MIN ( DISTINCT + 12 ) * 49 / COUNT ( * ) + + - 49 THEN - ( + 40 ) - - CASE 66 WHEN - + ( + 35 ) THEN COUNT ( * ) + ( - - 55 ) ELSE NULL END * 32 * COUNT ( * ) * - - COUNT ( * ) + 29 WHEN - 43 THEN NULL END + + + ( + CASE + CASE 11 WHEN 14 THEN - 34 END WHEN 21 THEN 11 ELSE NULL END ) / COUNT ( ALL 0 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT 70 * - + SUM( DISTINCT 49 ) * - NULLIF ( - SUM( DISTINCT + + 66 ), - ( - + 92 ) * + - 39 )
----
-226380

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT 70 * - + SUM ( DISTINCT 49 ) * - NULLIF ( - SUM ( DISTINCT + + 66 ), - ( - + 92 ) * + - 39 )
----
-226380

query I rowsort
SELECT ALL NULLIF ( + 0, + - 14 ) + + - 86
----
-86

query I rowsort
SELECT + 13 + + 55
----
68

query I rowsort
SELECT + + 44 * - - 83 AS col0
----
3652

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + 41 + 38 * 85 / - CASE - 68 WHEN + 90 THEN + + CASE - + COUNT( * ) WHEN + 98 THEN - 0 * + 81 END * + 63 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT + 41 + 38 * 85 / - CASE - 68 WHEN + 90 THEN + + CASE - + COUNT ( * ) WHEN + 98 THEN - 0 * + 81 END * + 63 END col1
----
NULL

query II rowsort
SELECT ALL 88 AS col2, 37 AS col0
----
88
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT - NULLIF ( - COALESCE ( + CAST( NULL AS SIGNED ), - 98 * - 43 * - 65 ), + 16 * - ( - 24 ) + + 28 + 48 ) AS col1
----
-273910

skipif mysql # not compatible
query I rowsort label-4521
SELECT - NULLIF ( - COALESCE ( + CAST ( NULL AS INTEGER ), - 98 * - 43 * - 65 ), + 16 * - ( - 24 ) + + 28 + 48 ) AS col1
----
-273910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT + 84 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT + 84 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4523
SELECT - 3 + + + 58 + - 47 DIV + ( - + 53 ) + - 24 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4523
SELECT - 3 + + + 58 + - 47 / + ( - + 53 ) + - 24 AS col1
----
31

query II rowsort
SELECT DISTINCT 37 AS col2, + 83 AS col1
----
37
83

onlyif mysql # aggregate syntax: 
query II rowsort label-4525
SELECT ALL 89 AS col1, 61 - + COUNT( - 63 ) + 96 + - - COUNT( * ) * 98
----
89
254

skipif mysql # not compatible
query II rowsort label-4525
SELECT ALL 89 AS col1, 61 - + COUNT ( - 63 ) + 96 + - - COUNT ( * ) * 98
----
89
254

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL - COUNT( * ) * - + ( - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL - COUNT ( * ) * - + ( - 40 )
----
-40

query I rowsort
SELECT + 50 * 55 AS col2
----
2750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4528
SELECT + 67 DIV COUNT( * ) col2
----
67

skipif mysql # not compatible
query I rowsort label-4528
SELECT + 67 / COUNT ( * ) col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4529
SELECT DISTINCT SUM( - + ( 63 ) ) DIV + + COUNT( * ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT SUM ( - + ( 63 ) ) / + + COUNT ( * ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT CASE - + COUNT( * ) WHEN + 94 THEN + 12 - - ( + - 32 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT CASE - + COUNT ( * ) WHEN + 94 THEN + 12 - - ( + - 32 ) END
----
NULL

query II rowsort
SELECT DISTINCT 5 col2, - 22 AS col1
----
5
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4532
SELECT + 31 DIV 22 * - - MAX( ALL 89 )
----
89

skipif mysql # not compatible
query I rowsort label-4532
SELECT + 31 / 22 * - - MAX ( ALL 89 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4533
SELECT 14, COUNT( * ) * - - 93 AS col2
----
14
93

skipif mysql # not compatible
query II rowsort label-4533
SELECT 14, COUNT ( * ) * - - 93 AS col2
----
14
93

query I rowsort
SELECT ALL - 73 * 40 AS col1
----
-2920

query I rowsort
SELECT + 8 - - 38
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4536
SELECT - CASE + CAST( NULL AS DECIMAL ) WHEN + 43 THEN 89 * + - 63 * + 91 END / 57 * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT - CASE + CAST ( NULL AS REAL ) WHEN + 43 THEN 89 * + - 63 * + 91 END / 57 * - 13
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4537
SELECT ( + - 43 ) AS col0, ( + 68 ) / - 48 + CASE - - 78 WHEN - COUNT( * ) THEN + 48 END * - 65
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-4537
SELECT ( + - 43 ) AS col0, ( + 68 ) / - 48 + CASE - - 78 WHEN - COUNT ( * ) THEN + 48 END * - 65
----
-43
NULL

query I rowsort
SELECT - 77 * + 17 AS col1
----
-1309

onlyif mysql # aggregate syntax: 
query II rowsort label-4539
SELECT ( - - 95 ), + COUNT( * ) + + + 34 AS col1
----
95
35

skipif mysql # not compatible
query II rowsort label-4539
SELECT ( - - 95 ), + COUNT ( * ) + + + 34 AS col1
----
95
35

query I rowsort
SELECT ALL 5 * + + 32 + 10
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4541
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0, 40 AS col0
----
NULL
40

skipif mysql # not compatible
query II rowsort label-4541
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0, 40 AS col0
----
NULL
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4542
SELECT DISTINCT - COALESCE ( + 3, 88 * - 86 - 5 + - 63 * - + 91 * COUNT( * ) - + 90 ) * + 39 + ( COUNT( * ) ), 64 * 55 * ( - 61 ) + + 11 AS col0
----
-116
-214709

skipif mysql # not compatible
query II rowsort label-4542
SELECT DISTINCT - COALESCE ( + 3, 88 * - 86 - 5 + - 63 * - + 91 * COUNT ( * ) - + 90 ) * + 39 + ( COUNT ( * ) ), 64 * 55 * ( - 61 ) + + 11 AS col0
----
-116
-214709

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT - 0 * 28 + - 16 + 20 * + - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-4543
SELECT - 0 * 28 + - 16 + 20 * + - COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL + COUNT( * ) * - 41 + + COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL + COUNT ( * ) * - 41 + + COUNT ( * ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-4545
SELECT + COUNT( * ) AS col0, + 7 + + - 34
----
1
-27

skipif mysql # not compatible
query II rowsort label-4545
SELECT + COUNT ( * ) AS col0, + 7 + + - 34
----
1
-27

query I rowsort
SELECT ALL + 80 * + 96 + 86 AS col0
----
7766

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT ALL - 44 * - NULLIF ( + - 29, 43 / + 11 + + 78 ) + - COUNT( * ) AS col2
----
-1277

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL - 44 * - NULLIF ( + - 29, 43 / + 11 + + 78 ) + - COUNT ( * ) AS col2
----
-1277

query I rowsort
SELECT - 2 * + - 95
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4549
SELECT DISTINCT + CAST( - 14 AS SIGNED ) AS col1, - ( COUNT( + 47 ) ) AS col2
----
-14
-1

skipif mysql # not compatible
query II rowsort label-4549
SELECT DISTINCT + CAST ( - 14 AS INTEGER ) AS col1, - ( COUNT ( + 47 ) ) AS col2
----
-14
-1

query I rowsort
SELECT - + ( 34 ) * + + 60 * - 19 * + 66 AS col0
----
2558160

query I rowsort
SELECT ALL - 27 * - 42 + 4 AS col0
----
1138

query I rowsort
SELECT - - CASE + 50 WHEN + 79 THEN - 89 + AVG ( DISTINCT - 43 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4553
SELECT + 68 - - MAX( - 82 ) AS col2, SUM( DISTINCT - - 38 ) * + 95 + - 34 + 7 + AVG ( 37 ) * - CAST( NULL AS SIGNED ) * 88
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-4553
SELECT + 68 - - MAX ( - 82 ) AS col2, SUM ( DISTINCT - - 38 ) * + 95 + - 34 + 7 + AVG ( 37 ) * - CAST ( NULL AS INTEGER ) * 88
----
-14
NULL

query I rowsort
SELECT ALL - 77 * - 83 * 40
----
255640

onlyif mysql # aggregate syntax: 
query II rowsort label-4555
SELECT MIN( 5 ) AS col0, + NULLIF ( + 20, - 27 + COUNT( DISTINCT 89 ) / - 93 / 5 ) AS col0
----
5
20

skipif mysql # not compatible
query II rowsort label-4555
SELECT MIN ( 5 ) AS col0, + NULLIF ( + 20, - 27 + COUNT ( DISTINCT 89 ) / - 93 / 5 ) AS col0
----
5
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT - ( COUNT( ALL - 72 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4556
SELECT - ( COUNT ( ALL - 72 ) ) AS col1
----
-1

query I rowsort
SELECT - 90 * 59 AS col2
----
-5310

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT + 8 + + COUNT( * ) + 95 * + COUNT( * ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-4558
SELECT + 8 + + COUNT ( * ) + 95 * + COUNT ( * ) AS col1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4559
SELECT - CAST( 41 AS SIGNED ), - 63 AS col1
----
-41
-63

skipif mysql # not compatible
query II rowsort label-4559
SELECT - CAST ( 41 AS INTEGER ), - 63 AS col1
----
-41
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT + 84 + + CASE - 92 WHEN - 27 THEN COUNT( * ) * 64 + + 87 - - - 88 * + 0 - 15 + - 21 - 80 END * - MIN( DISTINCT COALESCE ( + - 36, 33 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT + 84 + + CASE - 92 WHEN - 27 THEN COUNT ( * ) * 64 + + 87 - - - 88 * + 0 - 15 + - 21 - 80 END * - MIN ( DISTINCT COALESCE ( + - 36, 33 ) )
----
NULL

query I rowsort
SELECT ALL 54 + - 45 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT + 36 + - CASE - 17 WHEN + 67 + 38 + + - 3 * + + 99 THEN + 59 + COUNT( * ) * 50 WHEN - 11 THEN - ( - - 3 ) - ( 13 ) + + MAX( DISTINCT - 46 ) * 49 + + 67 + - + MIN( + 83 ) - + 65 * COUNT( * ) ELSE - 25 * + 56 END AS col0
----
1436

skipif mysql # not compatible
query I rowsort label-4562
SELECT + 36 + - CASE - 17 WHEN + 67 + 38 + + - 3 * + + 99 THEN + 59 + COUNT ( * ) * 50 WHEN - 11 THEN - ( - - 3 ) - ( 13 ) + + MAX ( DISTINCT - 46 ) * 49 + + 67 + - + MIN ( + 83 ) - + 65 * COUNT ( * ) ELSE - 25 * + 56 END AS col0
----
1436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4563
SELECT DISTINCT 53 + - 41 / CAST( NULL AS SIGNED ) + + 85 - - 21 * - 50 / + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT 53 + - 41 / CAST ( NULL AS INTEGER ) + + 85 - - 21 * - 50 / + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL 12 + + COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL 12 + + COUNT ( * ) AS col2
----
13

query I rowsort
SELECT ( - + 97 ) * - 84 - 28 col0
----
8120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4566
SELECT CAST( NULL AS SIGNED ) * + - COALESCE ( 71, - 16 + - 86, 18 - - CAST( NULL AS SIGNED ) + - + 24 * + + NULLIF ( + 41, 69 + + + ( - 88 ) + + + ( + + 42 ) ) ) * + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT CAST ( NULL AS INTEGER ) * + - COALESCE ( 71, - 16 + - 86, 18 - - CAST ( NULL AS INTEGER ) + - + 24 * + + NULLIF ( + 41, 69 + + + ( - 88 ) + + + ( + + 42 ) ) ) * + 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT + 37 + + 84 + + 61 + + 1 + + 29 * - - MIN( DISTINCT 45 ) * 81 col2
----
105888

skipif mysql # not compatible
query I rowsort label-4567
SELECT + 37 + + 84 + + 61 + + 1 + + 29 * - - MIN ( DISTINCT 45 ) * 81 col2
----
105888

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT + + 12 * + 45 + - - ( MIN( DISTINCT - - 6 ) ) AS col1
----
546

skipif mysql # not compatible
query I rowsort label-4568
SELECT + + 12 * + 45 + - - ( MIN ( DISTINCT - - 6 ) ) AS col1
----
546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT ALL CAST( NULL AS SIGNED ) - - CAST( + 4 AS SIGNED ) * 21 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL CAST ( NULL AS INTEGER ) - - CAST ( + 4 AS INTEGER ) * 21 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4570
SELECT DISTINCT + 5 * 78 AS col1, + MAX( - 92 ) AS col2
----
390
-92

skipif mysql # not compatible
query II rowsort label-4570
SELECT DISTINCT + 5 * 78 AS col1, + MAX ( - 92 ) AS col2
----
390
-92

query I rowsort
SELECT - 87 + 86 AS col0
----
-1

query I rowsort
SELECT + ( - - 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4573
SELECT ALL - + CASE + COUNT( * ) WHEN + 7 THEN NULL WHEN - COUNT( * ) THEN - - 7 END AS col1, 95 AS col2
----
NULL
95

skipif mysql # not compatible
query II rowsort label-4573
SELECT ALL - + CASE + COUNT ( * ) WHEN + 7 THEN NULL WHEN - COUNT ( * ) THEN - - 7 END AS col1, 95 AS col2
----
NULL
95

query I rowsort
SELECT ( 6 ) * 85 * - ( 26 ) + - 64
----
-13324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4575
SELECT DISTINCT + 89 * - MAX( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT + 89 * - MAX ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4576
SELECT + 96 * + 44 + + CASE + 35 WHEN 0 THEN ( - 64 ) + + COUNT( * ) - + + MAX( DISTINCT ( + + ( + 71 ) ) ) END, + 0 * - + 51 * + 86 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4576
SELECT + 96 * + 44 + + CASE + 35 WHEN 0 THEN ( - 64 ) + + COUNT ( * ) - + + MAX ( DISTINCT ( + + ( + 71 ) ) ) END, + 0 * - + 51 * + 86 AS col0
----
NULL
0

query I rowsort
SELECT 35 + - + 72 * - 90 - - 68 + 91 * - - 39 AS col0
----
10132

query I rowsort
SELECT DISTINCT + - 75 * + ( 31 ) AS col0
----
-2325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT ALL - CAST( - 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL - CAST ( - 22 AS INTEGER )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT 34 DIV 3
----
11

skipif mysql # not compatible
query I rowsort label-4580
SELECT 34 / 3
----
11

query II rowsort
SELECT DISTINCT 38 col0, + 2 AS col0
----
38
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4582
SELECT 24 DIV + SUM( ALL - + 38 ) AS col1, 53, + COUNT( * ) * 62 + - 46 AS col0
----
0
53
16

skipif mysql # not compatible
query III rowsort label-4582
SELECT 24 / + SUM ( ALL - + 38 ) AS col1, 53, + COUNT ( * ) * 62 + - 46 AS col0
----
0
53
16

query I rowsort
SELECT 30 * - 49 AS col1
----
-1470

onlyif mysql # DIV for integer division: 
query I rowsort label-4584
SELECT DISTINCT - 0 DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT - 0 / + 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL + 46 + - MAX( DISTINCT 44 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL + 46 + - MAX ( DISTINCT 44 ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4586
SELECT MAX( ALL + + 63 ) * + SUM( + - CAST( NULL AS SIGNED ) ) * + + 63 / + ( + - 9 ) + - - ( + 6 ) + - 87 * - 3 AS col0, 63
----
NULL
63

skipif mysql # not compatible
query II rowsort label-4586
SELECT MAX ( ALL + + 63 ) * + SUM ( + - CAST ( NULL AS INTEGER ) ) * + + 63 / + ( + - 9 ) + - - ( + 6 ) + - 87 * - 3 AS col0, 63
----
NULL
63

query II rowsort
SELECT 53 AS col2, - 41
----
53
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL - 83 + + CASE WHEN - 54 IN ( + 34, MIN( - 47 ), 68, - ( - 96 ) ) THEN NULL ELSE 85 END * + 33 AS col2
----
2722

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL - 83 + + CASE WHEN - 54 IN ( + 34, MIN ( - 47 ), 68, - ( - 96 ) ) THEN NULL ELSE 85 END * + 33 AS col2
----
2722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4589
SELECT DISTINCT + 28 + - COUNT( CAST( + 82 AS SIGNED ) ) + + + SUM( ALL ( - + 0 ) ) * - 19 + ( + MAX( 55 ) ) AS col0, + 55 + - - 47 col2
----
82
102

skipif mysql # not compatible
query II rowsort label-4589
SELECT DISTINCT + 28 + - COUNT ( CAST ( + 82 AS INTEGER ) ) + + + SUM ( ALL ( - + 0 ) ) * - 19 + ( + MAX ( 55 ) ) AS col0, + 55 + - - 47 col2
----
82
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT 49 * - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-4590
SELECT 49 * - COUNT ( * )
----
-49

query I rowsort
SELECT ALL 12 + - 8 col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4592
SELECT 77, CAST( - - COALESCE ( - ( - 64 ), + - 87 ) AS SIGNED ) * COUNT( * ) AS col1
----
77
64

skipif mysql # not compatible
query II rowsort label-4592
SELECT 77, CAST ( - - COALESCE ( - ( - 64 ), + - 87 ) AS INTEGER ) * COUNT ( * ) AS col1
----
77
64

query I rowsort
SELECT 64 - 24 col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4594
SELECT ALL + - ( - 94 ) + + - 37 * + 2 * - - COUNT( * ) * - 84 AS col1, + COUNT( * )
----
6310
1

skipif mysql # not compatible
query II rowsort label-4594
SELECT ALL + - ( - 94 ) + + - 37 * + 2 * - - COUNT ( * ) * - 84 AS col1, + COUNT ( * )
----
6310
1

query II rowsort
SELECT - 27, COALESCE ( + 52, + - 79, - - 66, 51 ) col0
----
-27
52

query II rowsort
SELECT ALL - 12 col1, 20 AS col2
----
-12
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT + + MIN( ALL - 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-4597
SELECT + + MIN ( ALL - 91 ) AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4598
SELECT ALL - CASE + 89 WHEN 0 THEN - CAST( 21 AS SIGNED ) WHEN COUNT( * ) / 75 * 39 THEN 97 * - COUNT( * ) + - SUM( - 57 ) * - 73 ELSE - 26 END AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL - CASE + 89 WHEN 0 THEN - CAST ( 21 AS INTEGER ) WHEN COUNT ( * ) / 75 * 39 THEN 97 * - COUNT ( * ) + - SUM ( - 57 ) * - 73 ELSE - 26 END AS col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4599
SELECT + 82 DIV - 88 + - - 81 + ( - 22 ) DIV - + ( 97 ) * + + 13 + + + MAX( DISTINCT 34 )
----
115

skipif mysql # not compatible
query I rowsort label-4599
SELECT + 82 / - 88 + - - 81 + ( - 22 ) / - + ( 97 ) * + + 13 + + + MAX ( DISTINCT 34 )
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4600
SELECT + CAST( + 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-4600
SELECT + CAST ( + 77 AS INTEGER )
----
77

query II rowsort
SELECT + + 93 AS col1, - 38 * + - 64 AS col1
----
93
2432

query I rowsort
SELECT ALL - 51 - - + 92 AS col1
----
41

query I rowsort
SELECT 81 * - 91
----
-7371

query I rowsort
SELECT - 93 * 45 + 92 + - - 54 AS col2
----
-4039

query III rowsort
SELECT 83 AS col2, + COALESCE ( + + 71, - 35, 8 ) + 26 AS col1, - 60
----
83
97
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-4606
SELECT 27 * - CASE + COUNT( * ) WHEN - - 11 THEN - 44 WHEN - + 48 * 59 THEN NULL ELSE NULL END + - 96 + MIN( + ( - 98 ) ) AS col0, + COALESCE ( + 18, - + COUNT( * ) ) AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-4606
SELECT 27 * - CASE + COUNT ( * ) WHEN - - 11 THEN - 44 WHEN - + 48 * 59 THEN NULL ELSE NULL END + - 96 + MIN ( + ( - 98 ) ) AS col0, + COALESCE ( + 18, - + COUNT ( * ) ) AS col2
----
NULL
18

query II rowsort
SELECT 20 AS col1, NULLIF ( ( - - 58 ), + 84 * - 16 + 61 + + 11 * - + 89 + 35 ) + + 98 AS col1
----
20
156

query I rowsort
SELECT DISTINCT - 49 * + 13 AS col0
----
-637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4609
SELECT ALL 20 * + 91 + 81 + + ( + + 99 ) + - 63 * + - CAST( + - 21 AS SIGNED ) + - 12 - + 87 col2
----
578

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL 20 * + 91 + 81 + + ( + + 99 ) + - 63 * + - CAST ( + - 21 AS INTEGER ) + - 12 - + 87 col2
----
578

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT 19 + + COUNT( 82 ) col1, - ( - + COUNT( * ) )
----
20
1

skipif mysql # not compatible
query II rowsort label-4610
SELECT 19 + + COUNT ( 82 ) col1, - ( - + COUNT ( * ) )
----
20
1

query I rowsort
SELECT 50 * - 74 * + - 75 + + 0 AS col0
----
277500

query II rowsort
SELECT 63 col0, - 72
----
63
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4613
SELECT ALL - + 77 + CAST( - + 8 AS SIGNED ) AS col2, + COALESCE ( - 62, + MIN( DISTINCT 37 ) ) col0
----
-85
-62

skipif mysql # not compatible
query II rowsort label-4613
SELECT ALL - + 77 + CAST ( - + 8 AS INTEGER ) AS col2, + COALESCE ( - 62, + MIN ( DISTINCT 37 ) ) col0
----
-85
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT - 57 * - 90 + + - COUNT( * ) AS col2
----
5129

skipif mysql # not compatible
query I rowsort label-4614
SELECT - 57 * - 90 + + - COUNT ( * ) AS col2
----
5129

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT DISTINCT + COUNT( * ) * + COUNT( ALL 55 )
----
1

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT + COUNT ( * ) * + COUNT ( ALL 55 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL + 14 + + COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL + 14 + + COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL + 42 + + + 51 * - - COUNT( ALL + 39 )
----
93

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL + 42 + + + 51 * - - COUNT ( ALL + 39 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL - COUNT( * ) + - NULLIF ( MIN( + 51 ), - 4 ) * + + 93
----
-4744

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL - COUNT ( * ) + - NULLIF ( MIN ( + 51 ), - 4 ) * + + 93
----
-4744

onlyif mysql # aggregate syntax: 
query II rowsort label-4619
SELECT 65 - - - 5, 83 + + 30 + - - 60 + + COUNT( * ) AS col2
----
60
174

skipif mysql # not compatible
query II rowsort label-4619
SELECT 65 - - - 5, 83 + + 30 + - - 60 + + COUNT ( * ) AS col2
----
60
174

onlyif mysql # aggregate syntax: 
query II rowsort label-4620
SELECT DISTINCT NULLIF ( - - 82, - 69 - - + 35 + + 30 ), COUNT( * ) AS col2
----
82
1

skipif mysql # not compatible
query II rowsort label-4620
SELECT DISTINCT NULLIF ( - - 82, - 69 - - + 35 + + 30 ), COUNT ( * ) AS col2
----
82
1

query I rowsort
SELECT ALL + 15 + + 10 * + 87
----
885

query I rowsort
SELECT 75 - + 10 col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4623
SELECT - 7 DIV - 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4623
SELECT - 7 / - 64 AS col0
----
0

query I rowsort
SELECT - 19 * 55 * + 41 * - ( 5 ) AS col0
----
214225

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT DISTINCT - 70 DIV + 15
----
-4

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT - 70 / + 15
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4626
SELECT - CASE - 38 WHEN + 81 * 45 + CAST( - + 93 AS SIGNED ) + 87 THEN - 43 END + - - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT - CASE - 38 WHEN + 81 * 45 + CAST ( - + 93 AS INTEGER ) + 87 THEN - 43 END + - - 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT ALL - 52 DIV 39 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL - 52 / 39 AS col1
----
-1

query I rowsort
SELECT - 71 + 26
----
-45

query I rowsort
SELECT ALL - 79 - + + 11
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4630
SELECT - CAST( NULL AS SIGNED ) + - 24 AS col0, + 84 AS col2
----
NULL
84

skipif mysql # not compatible
query II rowsort label-4630
SELECT - CAST ( NULL AS INTEGER ) + - 24 AS col0, + 84 AS col2
----
NULL
84

query I rowsort
SELECT - COALESCE ( - 15, + - 28 ) AS col0
----
15

query I rowsort
SELECT + - 61 + - 75 + - + 81 AS col1
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT - 94 * - + COALESCE ( 74, + COUNT( * ) )
----
6956

skipif mysql # not compatible
query I rowsort label-4633
SELECT - 94 * - + COALESCE ( 74, + COUNT ( * ) )
----
6956

query I rowsort
SELECT - + COALESCE ( 2, 18 )
----
-2

query I rowsort
SELECT DISTINCT + 22 * - 96 * - + 3 AS col1
----
6336

onlyif mysql # DIV for integer division: 
query II rowsort label-4636
SELECT 11 DIV - - 97 * + 34 + - + 57, 1 * - + 73 * - 94 AS col2
----
-57
6862

skipif mysql # not compatible
query II rowsort label-4636
SELECT 11 / - - 97 * + 34 + - + 57, 1 * - + 73 * - 94 AS col2
----
-57
6862

query I rowsort
SELECT + 91 * - + 17
----
-1547

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT MAX( ALL - - 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4638
SELECT MAX ( ALL - - 7 ) AS col0
----
7

query I rowsort
SELECT + COALESCE ( + 87, + 41, 50 )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT + + 34 DIV 79 * 19 * 23 * - 67 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-4640
SELECT + + 34 / 79 * 19 * 23 * - 67 / - 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL - 80 * COUNT( * ) + 85 + + ( - 27 )
----
-22

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL - 80 * COUNT ( * ) + 85 + + ( - 27 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - + 23 * 23 * + COALESCE ( + 3, - 73, + - 62 * 75 + - COUNT( * ) - - COUNT( 86 ) * 63 ) + + 89 * + - 24
----
-3723

skipif mysql # not compatible
query I rowsort label-4642
SELECT - + 23 * 23 * + COALESCE ( + 3, - 73, + - 62 * 75 + - COUNT ( * ) - - COUNT ( 86 ) * 63 ) + + 89 * + - 24
----
-3723

onlyif mysql # aggregate syntax: 
query II rowsort label-4643
SELECT DISTINCT + - 3 * 20 * + 42 * - + 3 + - 68 AS col0, 53 * + 54 * + + MAX( ALL - ( 3 ) ) AS col0
----
7492
-8586

skipif mysql # not compatible
query II rowsort label-4643
SELECT DISTINCT + - 3 * 20 * + 42 * - + 3 + - 68 AS col0, 53 * + 54 * + + MAX ( ALL - ( 3 ) ) AS col0
----
7492
-8586

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT + MAX( ALL + - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-4644
SELECT + MAX ( ALL + - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL - 70 * 49 + + + 39 + + COUNT( * ) + 38 + + 81 * - 51 + + COUNT( + 99 )
----
-7482

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL - 70 * 49 + + + 39 + + COUNT ( * ) + 38 + + 81 * - 51 + + COUNT ( + 99 )
----
-7482

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4646
SELECT - 65 * + - 74 * + 10 + ( - CAST( 3 AS SIGNED ) ), 47 AS col0
----
48097
47

skipif mysql # not compatible
query II rowsort label-4646
SELECT - 65 * + - 74 * + 10 + ( - CAST ( 3 AS INTEGER ) ), 47 AS col0
----
48097
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT COUNT( * ) * - + 2 + - + COUNT( + 36 )
----
-3

skipif mysql # not compatible
query I rowsort label-4647
SELECT COUNT ( * ) * - + 2 + - + COUNT ( + 36 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4648
SELECT ALL CAST( + ( + CASE - 91 WHEN - + 75 * 83 THEN CASE - 14 WHEN - COUNT( + 2 ) + - 44 THEN 1 END END ) AS SIGNED ) * 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL CAST ( + ( + CASE - 91 WHEN - + 75 * 83 THEN CASE - 14 WHEN - COUNT ( + 2 ) + - 44 THEN 1 END END ) AS INTEGER ) * 73 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4649
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS DECIMAL ) * - 3 AS col2, NULLIF ( - 13, - ( - 57 ) ) DIV + ( + 36 ) + + + NULLIF ( + 4, - 96 ) DIV 4
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4649
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS REAL ) * - 3 AS col2, NULLIF ( - 13, - ( - 57 ) ) / + ( + 36 ) + + + NULLIF ( + 4, - 96 ) / 4
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4650
SELECT ALL - 55 DIV - + 59 * 47 * 1
----
0

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL - 55 / - + 59 * 47 * 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT DISTINCT - 60 * + COUNT( * ) + - 61 * 38
----
-2378

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT - 60 * + COUNT ( * ) + - 61 * 38
----
-2378

query I rowsort
SELECT + ( + - 65 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT 47 * + 0 + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4653
SELECT 47 * + 0 + + COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4654
SELECT ALL 39 * 30 + - 99 + + - 11 - + 10 DIV - + 48 * + + 2
----
1060

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL 39 * 30 + - 99 + + - 11 - + 10 / - + 48 * + + 2
----
1060

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT SUM( ALL + 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4655
SELECT SUM ( ALL + 78 ) AS col2
----
78

query I rowsort
SELECT - ( ( - 63 ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - 83 + + COUNT( + 22 )
----
-82

skipif mysql # not compatible
query I rowsort label-4657
SELECT - 83 + + COUNT ( + 22 )
----
-82

query I rowsort
SELECT ALL - 83 * - 1 AS col1
----
83

query I rowsort
SELECT + 95 * - 67 * + 97 * 56 AS col2
----
-34574680

query I rowsort
SELECT - 1 * 36
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT - CAST( 20 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-4661
SELECT - CAST ( 20 AS INTEGER )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT ALL CASE - 79 WHEN + COALESCE ( 24, 26 ) THEN + + 75 / - 7 - + ( + 34 ) ELSE + - 73 + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL CASE - 79 WHEN + COALESCE ( 24, 26 ) THEN + + 75 / - 7 - + ( + 34 ) ELSE + - 73 + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT - ( 8 ) * + + 59 * + - 24 AS col1
----
11328

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT - - 7 * ( - 75 ) DIV - - 49
----
-10

skipif mysql # not compatible
query I rowsort label-4664
SELECT - - 7 * ( - 75 ) / - - 49
----
-10

query II rowsort
SELECT - 62, 31 AS col0
----
-62
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4666
SELECT + + ( 66 ) * + CAST( + NULLIF ( + 73, - 83 + + + 95 + + - ( - 63 ) * + 16 - - CAST( NULL AS SIGNED ) ) AS SIGNED ) + + COUNT( * ) AS col0
----
4819

skipif mysql # not compatible
query I rowsort label-4666
SELECT + + ( 66 ) * + CAST ( + NULLIF ( + 73, - 83 + + + 95 + + - ( - 63 ) * + 16 - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + COUNT ( * ) AS col0
----
4819

query I rowsort
SELECT - - 4 * - + 53 + + 45
----
-167

query II rowsort
SELECT - 57 col2, 61 AS col0
----
-57
61

query I rowsort
SELECT DISTINCT ( 57 ) AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4670
SELECT ALL - - 10 DIV - - 30 + - 58 * - ( + COUNT( * ) ) + - 43
----
15

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL - - 10 / - - 30 + - 58 * - ( + COUNT ( * ) ) + - 43
----
15

query I rowsort
SELECT - + 29 - - + 98 - + 94 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT ALL - ( + - COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL - ( + - COUNT ( * ) ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4673
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) + + CASE - 70 WHEN 95 * 13 THEN - 59 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + CASE - 70 WHEN 95 * 13 THEN - 59 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT DISTINCT - + COUNT( ALL - - 14 ) + 6 + 86 col1
----
91

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT - + COUNT ( ALL - - 14 ) + 6 + 86 col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4675
SELECT ALL + 74 DIV - 41 DIV + COUNT( * ) + + - 22
----
-23

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL + 74 / - 41 / + COUNT ( * ) + + - 22
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT DISTINCT - NULLIF ( 55, + 88 ) * - MAX( CASE + + 35 WHEN 77 THEN - COALESCE ( + CASE 58 WHEN + - 10 THEN 41 ELSE NULL END, 57 ) + + 35 + + 28 * 72 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT - NULLIF ( 55, + 88 ) * - MAX ( CASE + + 35 WHEN 77 THEN - COALESCE ( + CASE 58 WHEN + - 10 THEN 41 ELSE NULL END, 57 ) + + 35 + + 28 * 72 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4677
SELECT - 99 + + + 61 - + NULLIF ( 8, 82 / - - SUM( 37 ) * - + CASE + - CAST( - 15 AS DECIMAL ) WHEN + 56 + 69 THEN NULL WHEN 11 + - + 18 THEN 82 END ) col0, 31 + + 93 AS col2
----
-46
124

skipif mysql # not compatible
query II rowsort label-4677
SELECT - 99 + + + 61 - + NULLIF ( 8, 82 / - - SUM ( 37 ) * - + CASE + - CAST ( - 15 AS REAL ) WHEN + 56 + 69 THEN NULL WHEN 11 + - + 18 THEN 82 END ) col0, 31 + + 93 AS col2
----
-46
124

query I rowsort
SELECT - + 33 * + + 62 * + - 74 - + ( - 37 ) * + 62
----
153698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4679
SELECT CAST( NULLIF ( + - 64, + 3 * - - 86 ) AS SIGNED ), CASE + 60 WHEN - + 13 * + 70 * - + 5 + + - COALESCE ( 18, + 51 + ( - 42 ) + + - 11 * + 28, - 30, + + 42 * + CAST( NULLIF ( + + 40, - 89 / 95 * - COUNT( * ) ) AS DECIMAL ) * 82 + + NULLIF ( + 30, - 45 ) + + COUNT( * ) - ( 17 ) * - COUNT( * ) ) THEN - 19 * + 30 + + 12 * 15 END / 94 AS col2
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-4679
SELECT CAST ( NULLIF ( + - 64, + 3 * - - 86 ) AS INTEGER ), CASE + 60 WHEN - + 13 * + 70 * - + 5 + + - COALESCE ( 18, + 51 + ( - 42 ) + + - 11 * + 28, - 30, + + 42 * + CAST ( NULLIF ( + + 40, - 89 / 95 * - COUNT ( * ) ) AS REAL ) * 82 + + NULLIF ( + 30, - 45 ) + + COUNT ( * ) - ( 17 ) * - COUNT ( * ) ) THEN - 19 * + 30 + + 12 * 15 END / 94 AS col2
----
-64
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4680
SELECT ALL - - 28 DIV + 32 + - COUNT( * ) * - 53 * 83
----
4399

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL - - 28 / + 32 + - COUNT ( * ) * - 53 * 83
----
4399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4681
SELECT ALL + + 62 DIV 25 + + + COUNT( * ) DIV + - 70 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + + 62 / 25 + + + COUNT ( * ) / + - 70 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4682
SELECT ALL + 14 col0, - COUNT( * ) AS col0
----
14
-1

skipif mysql # not compatible
query II rowsort label-4682
SELECT ALL + 14 col0, - COUNT ( * ) AS col0
----
14
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4683
SELECT ALL + 48 DIV - + 5 + MAX( + 2 ), CASE - + 47 WHEN + ( + - 12 ) THEN + + ( - 65 ) ELSE NULL END + - SUM( ALL 56 ) AS col2
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-4683
SELECT ALL + 48 / - + 5 + MAX ( + 2 ), CASE - + 47 WHEN + ( + - 12 ) THEN + + ( - 65 ) ELSE NULL END + - SUM ( ALL 56 ) AS col2
----
-7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT DISTINCT 91 * + - SUM( ALL + 51 ) AS col0
----
-4641

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT 91 * + - SUM ( ALL + 51 ) AS col0
----
-4641

query II rowsort
SELECT + 3 col0, - 17
----
3
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT DISTINCT 55 * - 66 * + ( COUNT( * ) )
----
-3630

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT 55 * - 66 * + ( COUNT ( * ) )
----
-3630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4687
SELECT SUM( + 55 ) * + - CAST( CASE - ( + 82 ) WHEN ( - 19 ) THEN CASE 79 WHEN + 95 THEN NULL ELSE + ( + + 81 ) END WHEN + COALESCE ( + + COUNT( ALL 90 ), CASE - 25 WHEN + COUNT( * ) * AVG ( + 51 ) + CAST( NULL AS SIGNED ) THEN NULL ELSE + 85 END, - - 55 * ( + 51 ) + - + 37 + - 11 ) THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT SUM ( + 55 ) * + - CAST ( CASE - ( + 82 ) WHEN ( - 19 ) THEN CASE 79 WHEN + 95 THEN NULL ELSE + ( + + 81 ) END WHEN + COALESCE ( + + COUNT ( ALL 90 ), CASE - 25 WHEN + COUNT ( * ) * AVG ( + 51 ) + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 85 END, - - 55 * ( + 51 ) + - + 37 + - 11 ) THEN NULL END AS INTEGER )
----
NULL

query II rowsort
SELECT + 60 col1, + ( + 91 )
----
60
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL 90 * + + ( MAX( ALL + 29 ) ) * 78 AS col0
----
203580

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL 90 * + + ( MAX ( ALL + 29 ) ) * 78 AS col0
----
203580

query I rowsort
SELECT DISTINCT + 70 * + 41 AS col1
----
2870

query II rowsort
SELECT DISTINCT 19, - ( + 67 ) AS col2
----
19
-67

query I rowsort
SELECT DISTINCT 95 * 27
----
2565

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL 54 * - - 93 * + - 29 * COUNT( * )
----
-145638

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL 54 * - - 93 * + - 29 * COUNT ( * )
----
-145638

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4694
SELECT ALL 28 AS col1, NULLIF ( + 33, - 81 DIV + 65 + - - 18 + - - 77 * COUNT( * ) ) + - + 73 col2, 77 * 98 * 98 - + 66 DIV - - 86 AS col2
----
28
-40
739508

skipif mysql # not compatible
query III rowsort label-4694
SELECT ALL 28 AS col1, NULLIF ( + 33, - 81 / + 65 + - - 18 + - - 77 * COUNT ( * ) ) + - + 73 col2, 77 * 98 * 98 - + 66 / - - 86 AS col2
----
28
-40
739508

query I rowsort
SELECT 16 * 73 - + - 86 - - - 96
----
1158

query I rowsort
SELECT - 54 + + 9
----
-45

query II rowsort
SELECT - ( - 64 ) AS col2, - 60 * + 62 + - - 92 + + 61 AS col2
----
64
-3567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4698
SELECT SUM( DISTINCT + - 33 ) + - ( + COALESCE ( + + 99, + 55 + - + NULLIF ( 16, - CAST( NULL AS SIGNED ) ) + - - 72 ) ) AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-4698
SELECT SUM ( DISTINCT + - 33 ) + - ( + COALESCE ( + + 99, + 55 + - + NULLIF ( 16, - CAST ( NULL AS INTEGER ) ) + - - 72 ) ) AS col2
----
-132

query I rowsort
SELECT - + CASE + 3 WHEN + + 95 THEN - 67 END
----
NULL

query I rowsort
SELECT + 46 * 89
----
4094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4701
SELECT - - 45 col2, + SUM( DISTINCT - CAST( + 67 AS SIGNED ) )
----
45
-67

skipif mysql # not compatible
query II rowsort label-4701
SELECT - - 45 col2, + SUM ( DISTINCT - CAST ( + 67 AS INTEGER ) )
----
45
-67

query I rowsort
SELECT + 90 + ( 18 ) - 6 * - 41 AS col1
----
354

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT DISTINCT 69 + + CASE - - 46 WHEN 68 THEN NULL WHEN - COALESCE ( + + AVG ( ALL + 21 ), COUNT( * ) ) / 5 * + + 29 + - ( + 29 ) THEN + 23 + + 2 + - + 38 ELSE + 39 END col0
----
108

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT 69 + + CASE - - 46 WHEN 68 THEN NULL WHEN - COALESCE ( + + AVG ( ALL + 21 ), COUNT ( * ) ) / 5 * + + 29 + - ( + 29 ) THEN + 23 + + 2 + - + 38 ELSE + 39 END col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT ALL + MIN( ALL - + 75 ) * + 19
----
-1425

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL + MIN ( ALL - + 75 ) * + 19
----
-1425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4705
SELECT DISTINCT 82 + COUNT( * ) - - + CAST( NULL AS SIGNED ) + + 21 / 20 / ( - CAST( + + COUNT( * ) AS SIGNED ) ) + + 64 * 25 * + + ( 72 ) * 50 * - - COUNT( * ) * 94 + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT 82 + COUNT ( * ) - - + CAST ( NULL AS INTEGER ) + + 21 / 20 / ( - CAST ( + + COUNT ( * ) AS INTEGER ) ) + + 64 * 25 * + + ( 72 ) * 50 * - - COUNT ( * ) * 94 + + 4
----
NULL

query I rowsort
SELECT ALL CASE - 69 WHEN 93 THEN - - 50 * - 15 ELSE NULL END + - + 19 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4707
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 94 * - 34 - + - COUNT( * ) / - + 30 * + 63 / - 53 * + ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 94 * - 34 - + - COUNT ( * ) / - + 30 * + 63 / - 53 * + ( - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT - 31 + 12 * COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4708
SELECT - 31 + 12 * COUNT ( * ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT ALL + COUNT( * ) + - 28 + ( 76 ) * - 51
----
-3903

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL + COUNT ( * ) + - 28 + ( 76 ) * - 51
----
-3903

query I rowsort
SELECT ALL - 12 * - 28
----
336

onlyif mysql # aggregate syntax: 
query II rowsort label-4711
SELECT + CASE - - 60 WHEN COUNT( * ) THEN - 3 END / - - 20 + + + 12 AS col0, + 57 col2
----
NULL
57

skipif mysql # not compatible
query II rowsort label-4711
SELECT + CASE - - 60 WHEN COUNT ( * ) THEN - 3 END / - - 20 + + + 12 AS col0, + 57 col2
----
NULL
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4712
SELECT - 97 DIV - - 39 * COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4712
SELECT - 97 / - - 39 * COUNT ( * )
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4713
SELECT 94 + - + 4 + - 97 * - 40 * - CAST( NULL AS DECIMAL ) * - CASE 61 WHEN 88 THEN NULL ELSE + - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT 94 + - + 4 + - 97 * - 40 * - CAST ( NULL AS REAL ) * - CASE 61 WHEN 88 THEN NULL ELSE + - 12 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4714
SELECT - CAST( NULL AS DECIMAL ) / - 61 * 3 + + - 71 * + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4714
SELECT - CAST ( NULL AS REAL ) / - 61 * 3 + + - 71 * + 40 AS col1
----
NULL

query I rowsort
SELECT ( + - ( + 87 ) )
----
-87

query II rowsort
SELECT + + 71 col2, 92 col2
----
71
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4717
SELECT DISTINCT - 86 AS col1, - CAST( NULL AS SIGNED ) AS col0
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-4717
SELECT DISTINCT - 86 AS col1, - CAST ( NULL AS INTEGER ) AS col0
----
-86
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4718
SELECT DISTINCT 98 + + SUM( NULLIF ( 46, - 14 ) ) * - 73 * 48 AS col2, 66 AS col0
----
-161086
66

skipif mysql # not compatible
query II rowsort label-4718
SELECT DISTINCT 98 + + SUM ( NULLIF ( 46, - 14 ) ) * - 73 * 48 AS col2, 66 AS col0
----
-161086
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL + 55 * - CASE - + 3 WHEN + 76 THEN NULL WHEN 59 THEN - 43 + 59 END / CASE - COUNT( * ) WHEN - - 53 * - - 30 + + 23 + 93 * + 98 * + + 69 THEN - + 52 ELSE + COALESCE ( - 63, - + 66 * - - 41, - + AVG ( - 88 ), + 25 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL + 55 * - CASE - + 3 WHEN + 76 THEN NULL WHEN 59 THEN - 43 + 59 END / CASE - COUNT ( * ) WHEN - - 53 * - - 30 + + 23 + 93 * + 98 * + + 69 THEN - + 52 ELSE + COALESCE ( - 63, - + 66 * - - 41, - + AVG ( - 88 ), + 25 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4720
SELECT ALL + ( + - 96 ) DIV + + 23, + 34 AS col1
----
-4
34

skipif mysql # not compatible
query II rowsort label-4720
SELECT ALL + ( + - 96 ) / + + 23, + 34 AS col1
----
-4
34

query I rowsort
SELECT ALL - 28 - - - 50
----
-78

query I rowsort
SELECT ALL - 83 * + 66
----
-5478

onlyif mysql # aggregate syntax: 
query II rowsort label-4723
SELECT ALL + 28 - - COUNT( * ), + 56 AS col1
----
29
56

skipif mysql # not compatible
query II rowsort label-4723
SELECT ALL + 28 - - COUNT ( * ), + 56 AS col1
----
29
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4724
SELECT + 81 * - CAST( - 31 AS SIGNED ) + COUNT( * ) AS col2
----
2512

skipif mysql # not compatible
query I rowsort label-4724
SELECT + 81 * - CAST ( - 31 AS INTEGER ) + COUNT ( * ) AS col2
----
2512

query I rowsort
SELECT ALL + 83 * - 96
----
-7968

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ( + - 34 ) * NULLIF ( - 30, - 45 * - - 32 * + 95 * - 45 ) * + 27 * + - 22 + + - COUNT( * ) AS col1
----
-605881

skipif mysql # not compatible
query I rowsort label-4726
SELECT ( + - 34 ) * NULLIF ( - 30, - 45 * - - 32 * + 95 * - 45 ) * + 27 * + - 22 + + - COUNT ( * ) AS col1
----
-605881

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT + 24 * MAX( + 56 ) + + COUNT( * ) AS col1
----
1345

skipif mysql # not compatible
query I rowsort label-4727
SELECT + 24 * MAX ( + 56 ) + + COUNT ( * ) AS col1
----
1345

query II rowsort
SELECT ALL + 84 * + 27, 14 AS col0
----
2268
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT 84 + - ( 92 ) + 24 + - 22 - + 92 * - COUNT( * ) * MAX( DISTINCT - + 3 )
----
-282

skipif mysql # not compatible
query I rowsort label-4729
SELECT 84 + - ( 92 ) + 24 + - 22 - + 92 * - COUNT ( * ) * MAX ( DISTINCT - + 3 )
----
-282

query I rowsort
SELECT DISTINCT - NULLIF ( - 33, - 8 * - + 99 ) AS col0
----
33

query I rowsort
SELECT ALL NULLIF ( 6, - ( 14 ) ) * + 51 * - 72
----
-22032

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT COUNT( * ) + + + 53 * 51
----
2704

skipif mysql # not compatible
query I rowsort label-4732
SELECT COUNT ( * ) + + + 53 * 51
----
2704

query I rowsort
SELECT 21 * + + 85 + - 68 AS col0
----
1717

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT + 21 + - 89 + - 33 + + - NULLIF ( + COUNT( * ), - + NULLIF ( ( - 42 ), - + 24 + 44 ) ) * 16 * - 52 * 27
----
22363

skipif mysql # not compatible
query I rowsort label-4734
SELECT + 21 + - 89 + - 33 + + - NULLIF ( + COUNT ( * ), - + NULLIF ( ( - 42 ), - + 24 + 44 ) ) * 16 * - 52 * 27
----
22363

query I rowsort
SELECT - - ( + + 68 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4736
SELECT + 35 + - 45 - - CASE + - 6 WHEN - CAST( NULL AS SIGNED ) THEN - CASE 70 WHEN 41 + + ( + 16 ) THEN - + 21 END END * - CASE 56 WHEN MAX( - CAST( + 60 AS SIGNED ) ) * CAST( - 75 AS DECIMAL ) THEN NULL WHEN 73 THEN - 5 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT + 35 + - 45 - - CASE + - 6 WHEN - CAST ( NULL AS INTEGER ) THEN - CASE 70 WHEN 41 + + ( + 16 ) THEN - + 21 END END * - CASE 56 WHEN MAX ( - CAST ( + 60 AS INTEGER ) ) * CAST ( - 75 AS REAL ) THEN NULL WHEN 73 THEN - 5 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 35 * - 26
----
910

query I rowsort
SELECT DISTINCT 14 * - - 20
----
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4739
SELECT ALL + + 26 + + - CAST( MIN( + 5 ) AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL + + 26 + + - CAST ( MIN ( + 5 ) AS INTEGER )
----
21

query I rowsort
SELECT - 1 * COALESCE ( + 61, + 60 ) AS col1
----
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4741
SELECT ALL 71 + - - CAST( NULL AS DECIMAL ) + - + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL 71 + - - CAST ( NULL AS REAL ) + - + 37 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4742
SELECT CASE 11 WHEN MIN( DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) THEN - - 2 * + 25 * - 3 WHEN - 6 + + 39 + - - 83 / CASE ( - 16 ) WHEN 47 THEN + 37 WHEN - + 7 THEN + + CAST( 4 AS SIGNED ) + - NULLIF ( - 75, + + ( + 59 ) ) WHEN + 80 THEN - - COUNT( DISTINCT + 35 ) * - COUNT( * ) + - CAST( + 72 AS SIGNED ) ELSE NULL END THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4742
SELECT CASE 11 WHEN MIN ( DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) THEN - - 2 * + 25 * - 3 WHEN - 6 + + 39 + - - 83 / CASE ( - 16 ) WHEN 47 THEN + 37 WHEN - + 7 THEN + + CAST ( 4 AS INTEGER ) + - NULLIF ( - 75, + + ( + 59 ) ) WHEN + 80 THEN - - COUNT ( DISTINCT + 35 ) * - COUNT ( * ) + - CAST ( + 72 AS INTEGER ) ELSE NULL END THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL + 52 + - + CASE - 43 WHEN + MAX( DISTINCT - 54 ) / 84 THEN - ( - - 63 ) WHEN 89 THEN 97 - ( - + COALESCE ( 24, COUNT( * ) ) ) + + 9 END * - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL + 52 + - + CASE - 43 WHEN + MAX ( DISTINCT - 54 ) / 84 THEN - ( - - 63 ) WHEN 89 THEN 97 - ( - + COALESCE ( 24, COUNT ( * ) ) ) + + 9 END * - 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL - SUM( 12 ) + - 49
----
-61

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL - SUM ( 12 ) + - 49
----
-61

query I rowsort
SELECT ALL - 92 + + 87 AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4746
SELECT CAST( + 56 AS SIGNED ) * - 16 AS col1, - 82 * ( + - 64 ) AS col2
----
-896
5248

skipif mysql # not compatible
query II rowsort label-4746
SELECT CAST ( + 56 AS INTEGER ) * - 16 AS col1, - 82 * ( + - 64 ) AS col2
----
-896
5248

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4747
SELECT ALL CAST( NULL AS DECIMAL ) * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL CAST ( NULL AS REAL ) * + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL 59 * COUNT( DISTINCT - - 96 ) * COALESCE ( - 79, - 65 * 41 + ( - - COALESCE ( + 63, COUNT( * ) ) ) * + 16 ) - 30 + + MIN( - - 35 ) AS col0
----
-4656

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL 59 * COUNT ( DISTINCT - - 96 ) * COALESCE ( - 79, - 65 * 41 + ( - - COALESCE ( + 63, COUNT ( * ) ) ) * + 16 ) - 30 + + MIN ( - - 35 ) AS col0
----
-4656

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4749
SELECT ALL + NULLIF ( - CASE - 39 WHEN - CAST( - + 33 AS DECIMAL ) * - ( + + COUNT( * ) ) + - MAX( DISTINCT + + 58 ) + + MAX( - 83 ) - + - 48 / - 30 * - - 91 THEN + - 83 ELSE NULL END, - - 79 * - MIN( - + 95 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + NULLIF ( - CASE - 39 WHEN - CAST ( - + 33 AS REAL ) * - ( + + COUNT ( * ) ) + - MAX ( DISTINCT + + 58 ) + + MAX ( - 83 ) - + - 48 / - 30 * - - 91 THEN + - 83 ELSE NULL END, - - 79 * - MIN ( - + 95 ) ) AS col0
----
NULL

query II rowsort
SELECT + 47 AS col0, ( 90 )
----
47
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT CASE 10 WHEN + 54 * + 7 THEN - 97 * + - 24 - - COUNT( * ) + 12 ELSE - 35 + + COUNT( + 99 ) - + 43 + + 40 END
----
-37

skipif mysql # not compatible
query I rowsort label-4751
SELECT CASE 10 WHEN + 54 * + 7 THEN - 97 * + - 24 - - COUNT ( * ) + 12 ELSE - 35 + + COUNT ( + 99 ) - + 43 + + 40 END
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4752
SELECT ALL - 24 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL - 24 / + 57
----
0

query I rowsort
SELECT - 72 * + + 87
----
-6264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4754
SELECT + 20 DIV - - ( - COUNT( * ) ) + - + 1 - - 27 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4754
SELECT + 20 / - - ( - COUNT ( * ) ) + - + 1 - - 27 AS col0
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-4755
SELECT - 25 DIV + 33 * - 72, 55 AS col2
----
0
55

skipif mysql # not compatible
query II rowsort label-4755
SELECT - 25 / + 33 * - 72, 55 AS col2
----
0
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL - 25 / + + AVG ( ALL - CASE 76 WHEN 86 THEN + 58 WHEN 88 THEN NULL WHEN 13 THEN - 5 * + 83 ELSE NULL END ) * + 35 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - 25 / + + AVG ( ALL - CASE 76 WHEN 86 THEN + 58 WHEN 88 THEN NULL WHEN 13 THEN - 5 * + 83 ELSE NULL END ) * + 35 * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL + ( - - NULLIF ( - 26, - + 88 ) ) * + 42 * + COUNT( * ) AS col1
----
-1092

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL + ( - - NULLIF ( - 26, - + 88 ) ) * + 42 * + COUNT ( * ) AS col1
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT + NULLIF ( + 5, 19 ) * + 20 + - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-4758
SELECT + NULLIF ( + 5, 19 ) * + 20 + - COUNT ( * )
----
99

query I rowsort
SELECT ALL - 47 + - 11 AS col0
----
-58

query I rowsort
SELECT ALL - 36 + - - 25 + + 80 * 47 * 70 * + + 10 AS col2
----
2631989

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL + MAX( DISTINCT + 66 ) * + 2 + - SUM( + 1 ) AS col1
----
131

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL + MAX ( DISTINCT + 66 ) * + 2 + - SUM ( + 1 ) AS col1
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4762
SELECT ALL + 56 + - 42 * - CAST( NULL AS SIGNED ) / + ( + + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL + 56 + - 42 * - CAST ( NULL AS INTEGER ) / + ( + + 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4763
SELECT SUM( ALL - ( + 29 ) ), COUNT( * ) * + 88 + - COUNT( * ) + - - COALESCE ( - - 23, + 89 ) AS col0
----
-29
110

skipif mysql # not compatible
query II rowsort label-4763
SELECT SUM ( ALL - ( + 29 ) ), COUNT ( * ) * + 88 + - COUNT ( * ) + - - COALESCE ( - - 23, + 89 ) AS col0
----
-29
110

query I rowsort
SELECT ALL + ( + - 75 ) AS col1
----
-75

query I rowsort
SELECT - + 7 + - 1 AS col2
----
-8

query I rowsort
SELECT - - ( + - 63 ) + + 59
----
-4

query I rowsort
SELECT ALL + + 11 + - 88 + + ( + 22 ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT DISTINCT + 62 * MIN( CAST( NULL AS SIGNED ) ) + - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT + 62 * MIN ( CAST ( NULL AS INTEGER ) ) + - 78 AS col2
----
NULL

query I rowsort
SELECT - 88 + 82
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT + - 91 + CAST( - 98 AS SIGNED ) + - 41
----
-230

skipif mysql # not compatible
query I rowsort label-4770
SELECT + - 91 + CAST ( - 98 AS INTEGER ) + - 41
----
-230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4771
SELECT ALL - 80 - 72 + - ( - 78 ) + + 59 DIV COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL - 80 - 72 + - ( - 78 ) + + 59 / COUNT ( * )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT ALL + NULLIF ( - + COUNT( * ), - + COUNT( + CAST( - 84 AS SIGNED ) ) ) * - 80 + - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL + NULLIF ( - + COUNT ( * ), - + COUNT ( + CAST ( - 84 AS INTEGER ) ) ) * - 80 + - + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT - COUNT( * ) + ( + 95 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-4773
SELECT - COUNT ( * ) + ( + 95 ) col1
----
94

query I rowsort
SELECT + 91 + + + 95
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4775
SELECT + CASE - 59 WHEN - - AVG ( - NULLIF ( + - 56, 46 ) ) * 61 THEN NULL WHEN + 51 THEN - + 84 END * COALESCE ( COUNT( * ), - 68 ) * + - 67 - - + CASE + 12 WHEN 1 + - + 72 THEN NULL WHEN - NULLIF ( MAX( DISTINCT 80 ), + ( 91 ) ) THEN 89 WHEN ( - + 78 ) THEN NULL END AS col2, + 80 DIV + 94 + 23 AS col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-4775
SELECT + CASE - 59 WHEN - - AVG ( - NULLIF ( + - 56, 46 ) ) * 61 THEN NULL WHEN + 51 THEN - + 84 END * COALESCE ( COUNT ( * ), - 68 ) * + - 67 - - + CASE + 12 WHEN 1 + - + 72 THEN NULL WHEN - NULLIF ( MAX ( DISTINCT 80 ), + ( 91 ) ) THEN 89 WHEN ( - + 78 ) THEN NULL END AS col2, + 80 / + 94 + 23 AS col1
----
NULL
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT CAST( + + 66 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-4776
SELECT CAST ( + + 66 AS INTEGER )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4777
SELECT CAST( 73 AS SIGNED ) col0
----
73

skipif mysql # not compatible
query I rowsort label-4777
SELECT CAST ( 73 AS INTEGER ) col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4778
SELECT + 49 * + 3 AS col1, - CASE 85 WHEN + 91 * + + ( - - 33 ) + - 58 * + COUNT( * ) + + 90 THEN COUNT( * ) WHEN - COALESCE ( + + 91, NULLIF ( 87, + 48 ) + 57 + + - 38 + + + 99 ) * - CAST( + 31 AS DECIMAL ) * - - 20 * 51 THEN + 81 END * + 31 + - COUNT( * ) col2
----
147
NULL

skipif mysql # not compatible
query II rowsort label-4778
SELECT + 49 * + 3 AS col1, - CASE 85 WHEN + 91 * + + ( - - 33 ) + - 58 * + COUNT ( * ) + + 90 THEN COUNT ( * ) WHEN - COALESCE ( + + 91, NULLIF ( 87, + 48 ) + 57 + + - 38 + + + 99 ) * - CAST ( + 31 AS REAL ) * - - 20 * 51 THEN + 81 END * + 31 + - COUNT ( * ) col2
----
147
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4779
SELECT DISTINCT - COUNT( * ) * 85 * + SUM( CAST( + 27 AS SIGNED ) )
----
-2295

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT - COUNT ( * ) * 85 * + SUM ( CAST ( + 27 AS INTEGER ) )
----
-2295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4780
SELECT + CAST( + 98 AS SIGNED ) col1
----
98

skipif mysql # not compatible
query I rowsort label-4780
SELECT + CAST ( + 98 AS INTEGER ) col1
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4781
SELECT DISTINCT MIN( + + 96 ) DIV 69 + + 58 + + MIN( DISTINCT 75 ) AS col0
----
134

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT MIN ( + + 96 ) / 69 + + 58 + + MIN ( DISTINCT 75 ) AS col0
----
134

query II rowsort
SELECT + 13 * - 45 col0, 62 AS col1
----
-585
62

query I rowsort
SELECT 57 * 13 + - + 59 AS col0
----
682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT ALL + 75 * + - CAST( NULL AS SIGNED ) + + 58 + - - 49 * + 85 + - + ( + 23 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL + 75 * + - CAST ( NULL AS INTEGER ) + + 58 + - - 49 * + 85 + - + ( + 23 ) AS col0
----
NULL

query I rowsort
SELECT ALL 47 * + + 59 + - 36 AS col0
----
2737

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT ALL + NULLIF ( + + ( + ( + COUNT( * ) ) ), 56 )
----
1

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL + NULLIF ( + + ( + ( + COUNT ( * ) ) ), 56 )
----
1

query I rowsort
SELECT DISTINCT + + 16 * - 77 + 16 AS col2
----
-1216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4788
SELECT DISTINCT + + 17 * - 98 * MIN( DISTINCT 62 ) + + - 96 + - 87 DIV - - 88 * + + 39
----
-103388

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT + + 17 * - 98 * MIN ( DISTINCT 62 ) + + - 96 + - 87 / - - 88 * + + 39
----
-103388

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4789
SELECT ALL + - CASE - 82 WHEN ( 38 ) THEN 77 * 65 + ( - MIN( - 48 ) ) END * 72 + + CAST( NULL AS DECIMAL ) * - 65 * - 75 + - - 53, 0 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4789
SELECT ALL + - CASE - 82 WHEN ( 38 ) THEN 77 * 65 + ( - MIN ( - 48 ) ) END * 72 + + CAST ( NULL AS REAL ) * - 65 * - 75 + - - 53, 0 AS col2
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 28 + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 28 + - 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4791
SELECT ALL NULLIF ( + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ), - - 87 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL NULLIF ( + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ), - - 87 ) AS col0
----
0

query I rowsort
SELECT ALL + + 32 * - - 39 * - 31 - + ( - 11 ) + + 89 + 90 AS col0
----
-38498

query I rowsort
SELECT - 95 * + - 40 AS col1
----
3800

query I rowsort
SELECT ALL + 9 - + COALESCE ( 16, + 79 ) * + 10 AS col1
----
-151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4795
SELECT - 22 DIV - 94 * + MIN( DISTINCT - 53 ) - - 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4795
SELECT - 22 / - 94 * + MIN ( DISTINCT - 53 ) - - 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT CASE - 75 WHEN 87 THEN + 9 / - 91 WHEN + 49 THEN + + 55 * - 5 + - - 88 * 84 * 25 * 31 + - + 7 + 50 + - COUNT( * ) + 58 END * 33 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT CASE - 75 WHEN 87 THEN + 9 / - 91 WHEN + 49 THEN + + 55 * - 5 + - - 88 * 84 * 25 * 31 + - + 7 + 50 + - COUNT ( * ) + 58 END * 33 + COUNT ( * )
----
NULL

query I rowsort
SELECT - 66 + + 56 AS col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4798
SELECT DISTINCT - 42 DIV COUNT( * ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT - 42 / COUNT ( * ) AS col0
----
-42

query I rowsort
SELECT 52 * - 2 * + + 25
----
-2600

query II rowsort
SELECT 57, 79 + 73 AS col0
----
57
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4801
SELECT 58 / + + ( - CASE - + 4 WHEN - - 27 THEN 64 * + CAST( + COALESCE ( NULLIF ( + 93, 37 ), - - AVG ( + ( - 0 ) ) ) AS SIGNED ) * - COUNT( * ) WHEN - 3 THEN + - 79 END ) / + 71 AS col0, + 15 - MAX( + COALESCE ( + - 8, + 74 ) )
----
NULL
23

skipif mysql # not compatible
query II rowsort label-4801
SELECT 58 / + + ( - CASE - + 4 WHEN - - 27 THEN 64 * + CAST ( + COALESCE ( NULLIF ( + 93, 37 ), - - AVG ( + ( - 0 ) ) ) AS INTEGER ) * - COUNT ( * ) WHEN - 3 THEN + - 79 END ) / + 71 AS col0, + 15 - MAX ( + COALESCE ( + - 8, + 74 ) )
----
NULL
23

query I rowsort
SELECT 94 * + + 39
----
3666

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT DISTINCT - 51 DIV - 13 col1
----
3

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT - 51 / - 13 col1
----
3

query I rowsort
SELECT ALL 26 * 6
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-4805
SELECT DISTINCT 95, - COUNT( * ) AS col0
----
95
-1

skipif mysql # not compatible
query II rowsort label-4805
SELECT DISTINCT 95, - COUNT ( * ) AS col0
----
95
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4806
SELECT ALL - 25 + + 98 - + 80 + - + 37 DIV - 25
----
-6

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL - 25 + + 98 - + 80 + - + 37 / - 25
----
-6

query I rowsort
SELECT ALL - 61 * 52 AS col2
----
-3172

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT + ( + 1 ) DIV + + 25 + 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4808
SELECT + ( + 1 ) / + + 25 + 71 AS col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4809
SELECT DISTINCT 25 + - CAST( NULL AS SIGNED ) / 20 + + - MAX( - + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT 25 + - CAST ( NULL AS INTEGER ) / 20 + + - MAX ( - + 32 )
----
NULL

query II rowsort
SELECT 43, 27 AS col0
----
43
27

query II rowsort
SELECT 56 col0, CASE - ( 53 ) WHEN - 5 THEN ( 25 ) / - + 51 END col0
----
56
NULL

query I rowsort
SELECT 9 * + 14
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4813
SELECT DISTINCT 71 + ( - CASE - CASE 28 WHEN + + COUNT( * ) THEN + 57 END WHEN - 86 - - 38 + + ( CASE + 27 WHEN - 26 + + + 63 + - CAST( NULL AS SIGNED ) + 98 / + 51 * - - MIN( DISTINCT + 86 ) * COUNT( * ) + + CASE - 62 WHEN - 46 THEN 90 END * - MIN( + - 59 ) * 25 + + 12 THEN - + 57 END ) THEN - CAST( 40 AS DECIMAL ) * 4 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT 71 + ( - CASE - CASE 28 WHEN + + COUNT ( * ) THEN + 57 END WHEN - 86 - - 38 + + ( CASE + 27 WHEN - 26 + + + 63 + - CAST ( NULL AS INTEGER ) + 98 / + 51 * - - MIN ( DISTINCT + 86 ) * COUNT ( * ) + + CASE - 62 WHEN - 46 THEN 90 END * - MIN ( + - 59 ) * 25 + + 12 THEN - + 57 END ) THEN - CAST ( 40 AS REAL ) * 4 ELSE NULL END )
----
NULL

query II rowsort
SELECT ALL 98 * - 33 * - - 32, 32 AS col0
----
-103488
32

query I rowsort
SELECT DISTINCT + 87 + 3 * - 18
----
33

query I rowsort
SELECT DISTINCT + 29 * + 94 col1
----
2726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4817
SELECT ALL COUNT( DISTINCT - 64 ) * + 18 + - 76 DIV + 97
----
18

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL COUNT ( DISTINCT - 64 ) * + 18 + - 76 / + 97
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT + COUNT( * ) * 81 * + COUNT( * ) + + + 27 + + - 6 * - 40 - - + ( + 70 )
----
418

skipif mysql # not compatible
query I rowsort label-4818
SELECT + COUNT ( * ) * 81 * + COUNT ( * ) + + + 27 + + - 6 * - 40 - - + ( + 70 )
----
418

query I rowsort
SELECT + 57 + - + 44 * - 79
----
3533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4820
SELECT ALL 26 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL 26 - + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT 48 + - ( - + COUNT( * ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4821
SELECT 48 + - ( - + COUNT ( * ) ) AS col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT ALL + 13 DIV - 3
----
-4

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL + 13 / - 3
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT DISTINCT + + 81 * + - COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT + + 81 * + - COUNT ( * ) AS col0
----
-81

query I rowsort
SELECT 27 + + + COALESCE ( 6, + - 39 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4825
SELECT + 6 - CAST( MIN( ALL + - 16 ) AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-4825
SELECT + 6 - CAST ( MIN ( ALL + - 16 ) AS INTEGER )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4826
SELECT COUNT( * ) - - SUM( ALL 5 ) AS col1, 2 DIV COUNT( * )
----
6
2

skipif mysql # not compatible
query II rowsort label-4826
SELECT COUNT ( * ) - - SUM ( ALL 5 ) AS col1, 2 / COUNT ( * )
----
6
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4827
SELECT CAST( NULL AS SIGNED ) * - 64 * - 44 * - COUNT( * ) * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT CAST ( NULL AS INTEGER ) * - 64 * - 44 * - COUNT ( * ) * + 84
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT + 73 + + 10 * 7 + - + 99 * - - COUNT( * ) + - - 98 DIV 12 * 48 - - 55
----
483

skipif mysql # not compatible
query I rowsort label-4828
SELECT + 73 + + 10 * 7 + - + 99 * - - COUNT ( * ) + - - 98 / 12 * 48 - - 55
----
483

onlyif mysql # aggregate syntax: 
query II rowsort label-4829
SELECT DISTINCT 79, - COUNT( * ) * COUNT( * ) AS col2
----
79
-1

skipif mysql # not compatible
query II rowsort label-4829
SELECT DISTINCT 79, - COUNT ( * ) * COUNT ( * ) AS col2
----
79
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4830
SELECT 68 + + + COUNT( * ) - + + 39 DIV - + 70 + 8 + COALESCE ( + 4, + 47 + + + 11 ) + - 59 col0
----
22

skipif mysql # not compatible
query I rowsort label-4830
SELECT 68 + + + COUNT ( * ) - + + 39 / - + 70 + 8 + COALESCE ( + 4, + 47 + + + 11 ) + - 59 col0
----
22

query II rowsort
SELECT 78 + + 54 col1, 57 + + 0
----
132
57

query II rowsort
SELECT ALL 88, + 89 AS col0
----
88
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4833
SELECT 18 AS col0, - CASE - 52 WHEN 75 * - + 48 + 16 * + 26 THEN - + 14 + ( - COUNT( * ) ) ELSE + ( - 20 ) DIV + 1 * + ( - + COUNT( * ) ) - + 52 + + COUNT( * ) END AS col1
----
18
31

skipif mysql # not compatible
query II rowsort label-4833
SELECT 18 AS col0, - CASE - 52 WHEN 75 * - + 48 + 16 * + 26 THEN - + 14 + ( - COUNT ( * ) ) ELSE + ( - 20 ) / + 1 * + ( - + COUNT ( * ) ) - + 52 + + COUNT ( * ) END AS col1
----
18
31

query I rowsort
SELECT DISTINCT + 93 + + 29 * - - 61 AS col1
----
1862

query I rowsort
SELECT ALL - 38 + - 56 + 98 + + ( - 69 ) * - - 3
----
-203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4836
SELECT DISTINCT - 93 + - COUNT( * ) * - CAST( + + 91 AS SIGNED ) AS col2, NULLIF ( - - COUNT( * ), - COUNT( * ) + + 91 + - COUNT( * ) - - AVG ( + 80 ) ) AS col0
----
-2
1

skipif mysql # not compatible
query II rowsort label-4836
SELECT DISTINCT - 93 + - COUNT ( * ) * - CAST ( + + 91 AS INTEGER ) AS col2, NULLIF ( - - COUNT ( * ), - COUNT ( * ) + + 91 + - COUNT ( * ) - - AVG ( + 80 ) ) AS col0
----
-2
1

query II rowsort
SELECT 99 col1, - 92 - + + 22 AS col1
----
99
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT COUNT( * ) + + ( 29 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4838
SELECT COUNT ( * ) + + ( 29 ) AS col2
----
30

query I rowsort
SELECT 77 * + + 46 * 81
----
286902

query I rowsort
SELECT 12 + - ( + ( 21 ) )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4841
SELECT 47 AS col0, 52 DIV - SUM( - - 95 ) + + 84 * + + 67
----
47
5628

skipif mysql # not compatible
query II rowsort label-4841
SELECT 47 AS col0, 52 / - SUM ( - - 95 ) + + 84 * + + 67
----
47
5628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4842
SELECT + 9 AS col2, - COUNT( DISTINCT 90 ) - - - 9 * - + 3 + ( + ( - CAST( 76 AS SIGNED ) ) )
----
9
-50

skipif mysql # not compatible
query II rowsort label-4842
SELECT + 9 AS col2, - COUNT ( DISTINCT 90 ) - - - 9 * - + 3 + ( + ( - CAST ( 76 AS INTEGER ) ) )
----
9
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4843
SELECT DISTINCT + COUNT( + - 18 ) * - 15 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT + COUNT ( + - 18 ) * - 15 - - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 60 * + 55 - - 14 + + + 27 + + 38 * + 11 AS col0, - 26 AS col2
----
-2841
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4845
SELECT DISTINCT + 10 * - 25 * + CAST( NULL AS DECIMAL ) - 51 / + SUM( + 19 ) + + 30 col0, - MIN( DISTINCT + 37 ) * 53
----
NULL
-1961

skipif mysql # not compatible
query II rowsort label-4845
SELECT DISTINCT + 10 * - 25 * + CAST ( NULL AS REAL ) - 51 / + SUM ( + 19 ) + + 30 col0, - MIN ( DISTINCT + 37 ) * 53
----
NULL
-1961

query I rowsort
SELECT 10 * 43 - 92
----
338

query II rowsort
SELECT 75 AS col2, - 62 AS col0
----
75
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-4848
SELECT + 79 DIV + 44
----
1

skipif mysql # not compatible
query I rowsort label-4848
SELECT + 79 / + 44
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4849
SELECT ALL + 25 DIV COUNT( * ) DIV - + 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL + 25 / COUNT ( * ) / - + 47 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4850
SELECT + 88 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT + 88 + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4851
SELECT + 96 * + - CASE - CAST( - 30 AS SIGNED ) WHEN + - 87 THEN 65 WHEN - + COALESCE ( - + 26, CAST( NULL AS SIGNED ) + COUNT( * ) * - 43, - + 79 * + 10 + - + 28 / 16 * - 99 * - 10, + - COUNT( * ) ) * 80 THEN NULL END - COUNT( * ) + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT + 96 * + - CASE - CAST ( - 30 AS INTEGER ) WHEN + - 87 THEN 65 WHEN - + COALESCE ( - + 26, CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 43, - + 79 * + 10 + - + 28 / 16 * - 99 * - 10, + - COUNT ( * ) ) * 80 THEN NULL END - COUNT ( * ) + - 59
----
NULL

query I rowsort
SELECT ALL - 22 - - 45 AS col1
----
23

query I rowsort
SELECT ALL + 42 - + 28 * - ( - + 3 )
----
-42

query II rowsort
SELECT ALL + - 38 AS col2, - 14 * - ( + 28 ) * 96 + + 92 + - NULLIF ( - 75, + ( - + 0 ) / - - 12 + - - 16 )
----
-38
37799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4855
SELECT + - 9 AS col1, ( - + 79 ) * + COUNT( DISTINCT - 44 ) * + 19 * + 65 * CASE + 57 WHEN 71 + + 90 - + + 78 - + COUNT( * ) * + CAST( NULL AS SIGNED ) * MAX( 25 ) * - + 15 * 62 + - + 36 * + 46 * - - 86 THEN NULL WHEN - 64 THEN - 36 + - 81 END + + + 11 / 62 + - 14 - - 31
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-4855
SELECT + - 9 AS col1, ( - + 79 ) * + COUNT ( DISTINCT - 44 ) * + 19 * + 65 * CASE + 57 WHEN 71 + + 90 - + + 78 - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * MAX ( 25 ) * - + 15 * 62 + - + 36 * + 46 * - - 86 THEN NULL WHEN - 64 THEN - 36 + - 81 END + + + 11 / 62 + - 14 - - 31
----
-9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4856
SELECT + CASE 40 WHEN - + 47 THEN NULL ELSE - 95 * - 57 * + 35 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT + CASE 40 WHEN - + 47 THEN NULL ELSE - 95 * - 57 * + 35 END * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( - 27 ) * - - 75
----
2025

query I rowsort
SELECT + - 18 * 84
----
-1512

query I rowsort
SELECT + - 78 * + 84 + - + 11
----
-6563

query II rowsort
SELECT ALL + 75 AS col0, - 47 AS col0
----
75
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4861
SELECT + - 68 / - - CASE + COUNT( * ) WHEN - 31 / COUNT( * ) * + ( - COUNT( * ) ) THEN NULL WHEN - 68 + - NULLIF ( - 6, + 6 * 14 + CAST( + + 77 AS SIGNED ) ) THEN 11 * + 88 + + + 61 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT + - 68 / - - CASE + COUNT ( * ) WHEN - 31 / COUNT ( * ) * + ( - COUNT ( * ) ) THEN NULL WHEN - 68 + - NULLIF ( - 6, + 6 * 14 + CAST ( + + 77 AS INTEGER ) ) THEN 11 * + 88 + + + 61 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - - 62 * 77 + + ( - 98 ) + 2
----
4678

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT + MIN( + 34 ) * 8 AS col2
----
272

skipif mysql # not compatible
query I rowsort label-4863
SELECT + MIN ( + 34 ) * 8 AS col2
----
272

query I rowsort
SELECT ALL 40 * - 22
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT DISTINCT 79 + - - COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT 79 + - - COUNT ( * ) AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT DISTINCT 55 + + + 60 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT 55 + + + 60 * + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT + 61 + - + 18 AS col0
----
43

query I rowsort
SELECT DISTINCT 43 * + 18
----
774

query I rowsort
SELECT DISTINCT - 62 + - 82 AS col2
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-4870
SELECT ALL + COUNT( * ) + - 73 AS col0, 81 + + + ( - - 59 ) + - + 49 * - COALESCE ( + + 64, - MAX( DISTINCT - 63 ), - - 13 ) * ( COUNT( * ) ) AS col2
----
-72
3276

skipif mysql # not compatible
query II rowsort label-4870
SELECT ALL + COUNT ( * ) + - 73 AS col0, 81 + + + ( - - 59 ) + - + 49 * - COALESCE ( + + 64, - MAX ( DISTINCT - 63 ), - - 13 ) * ( COUNT ( * ) ) AS col2
----
-72
3276

query I rowsort
SELECT ALL - 44 + 55
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4872
SELECT + 42 - CAST( NULL AS SIGNED ) AS col2, - CASE WHEN NOT COUNT( * ) IS NULL THEN + 18 END
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-4872
SELECT + 42 - CAST ( NULL AS INTEGER ) AS col2, - CASE WHEN NOT COUNT ( * ) IS NULL THEN + 18 END
----
NULL
-18

query I rowsort
SELECT DISTINCT 7 * 14 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT DISTINCT 66 + + SUM( + CASE 98 WHEN 94 - - 55 THEN NULL ELSE + + 93 END ) * + 26 AS col0
----
2484

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT 66 + + SUM ( + CASE 98 WHEN 94 - - 55 THEN NULL ELSE + + 93 END ) * + 26 AS col0
----
2484

query I rowsort
SELECT ALL 1 - - 1 - 79 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4876
SELECT DISTINCT SUM( DISTINCT 1 ) AS col0, 85
----
1
85

skipif mysql # not compatible
query II rowsort label-4876
SELECT DISTINCT SUM ( DISTINCT 1 ) AS col0, 85
----
1
85

query I rowsort
SELECT - 88 * 62
----
-5456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4878
SELECT ALL - CAST( + 72 AS SIGNED ) * - + ( COUNT( * ) ) - - 84 DIV + 83
----
73

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL - CAST ( + 72 AS INTEGER ) * - + ( COUNT ( * ) ) - - 84 / + 83
----
73

query I rowsort
SELECT - 16 * + + 51 + - 6 AS col0
----
-822

query I rowsort
SELECT - 86 * + 12 AS col2
----
-1032

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT + COUNT( - 53 ) * + - COALESCE ( + COUNT( * ), 77 ) * - - 44 + 67 - - - 31 * + + 82
----
-2519

skipif mysql # not compatible
query I rowsort label-4881
SELECT + COUNT ( - 53 ) * + - COALESCE ( + COUNT ( * ), 77 ) * - - 44 + 67 - - - 31 * + + 82
----
-2519

query I rowsort
SELECT - - 7 * - 8
----
-56

query I rowsort
SELECT ALL + + 73 * - - 92 AS col2
----
6716

query I rowsort
SELECT DISTINCT + - ( - 32 )
----
32

onlyif mysql # aggregate syntax: 
query III rowsort label-4885
SELECT DISTINCT - - 48 * + + 63 AS col1, 33 * - MIN( ALL - - 7 ), + 54 AS col0
----
3024
-231
54

skipif mysql # not compatible
query III rowsort label-4885
SELECT DISTINCT - - 48 * + + 63 AS col1, 33 * - MIN ( ALL - - 7 ), + 54 AS col0
----
3024
-231
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT - - 89 * + SUM( DISTINCT - + 84 ) + - + 74 AS col2
----
-7550

skipif mysql # not compatible
query I rowsort label-4886
SELECT - - 89 * + SUM ( DISTINCT - + 84 ) + - + 74 AS col2
----
-7550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4887
SELECT - 32 * - COUNT( * ) * - 15 - NULLIF ( - CASE - 81 WHEN - COUNT( * ) * + COALESCE ( - 40, ( CAST( - - 65 AS SIGNED ) ) * + 1 * CAST( 79 AS DECIMAL ) ) * 11 THEN + 44 WHEN + - 84 / - 11 + - - COUNT( DISTINCT - 56 ) * - 56 THEN + 53 WHEN + 98 THEN NULL ELSE NULL END, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT - 32 * - COUNT ( * ) * - 15 - NULLIF ( - CASE - 81 WHEN - COUNT ( * ) * + COALESCE ( - 40, ( CAST ( - - 65 AS INTEGER ) ) * + 1 * CAST ( 79 AS REAL ) ) * 11 THEN + 44 WHEN + - 84 / - 11 + - - COUNT ( DISTINCT - 56 ) * - 56 THEN + 53 WHEN + 98 THEN NULL ELSE NULL END, + COUNT ( * ) )
----
NULL

query I rowsort
SELECT + 2 * + - 36
----
-72

query I rowsort
SELECT ALL CASE 25 WHEN + 29 * - 31 - - + ( + + 60 ) * + + 36 * - 2 THEN - - 71 ELSE NULL END * + - 84 + 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4890
SELECT ALL - 10 * + 74 + + COUNT( DISTINCT - 58 ) * + - 13 * + CAST( NULL AS SIGNED ) * MIN( - 67 ) + + COUNT( * ) + 19 * - + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL - 10 * + 74 + + COUNT ( DISTINCT - 58 ) * + - 13 * + CAST ( NULL AS INTEGER ) * MIN ( - 67 ) + + COUNT ( * ) + 19 * - + 11 AS col0
----
NULL

query I rowsort
SELECT ALL + + 94 col1
----
94

query I rowsort
SELECT + 2 - - 0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL COUNT( * ) * 25 * + 21 col0
----
525

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL COUNT ( * ) * 25 * + 21 col0
----
525

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT - COALESCE ( + 95, 71 * - 14 DIV - + CASE - 14 WHEN + 3 * - 75 THEN NULL ELSE - 91 END )
----
-95

skipif mysql # not compatible
query I rowsort label-4894
SELECT - COALESCE ( + 95, 71 * - 14 / - + CASE - 14 WHEN + 3 * - 75 THEN NULL ELSE - 91 END )
----
-95

query I rowsort
SELECT + 55 + + 5 AS col1
----
60

query I rowsort
SELECT + 72 * - 34 AS col2
----
-2448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4897
SELECT 72 AS col2, + ( COUNT( * ) ) - + - CASE + 5 WHEN 73 THEN - ( - - CAST( NULL AS SIGNED ) ) * + 89 + - 84 + + CAST( + + 78 AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) THEN NULL END
----
72
NULL

skipif mysql # not compatible
query II rowsort label-4897
SELECT 72 AS col2, + ( COUNT ( * ) ) - + - CASE + 5 WHEN 73 THEN - ( - - CAST ( NULL AS INTEGER ) ) * + 89 + - 84 + + CAST ( + + 78 AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL END
----
72
NULL

query I rowsort
SELECT + 19 + + 75 - + - 86 AS col1
----
180

query I rowsort
SELECT ALL 25 - - 99 * + 99
----
9826

query I rowsort
SELECT + 36 * 83 AS col0
----
2988

query I rowsort
SELECT + 95 + - ( + 53 ) AS col0
----
42

query II rowsort
SELECT ALL 61 AS col2, + 53 + + 48 * - 23 * - 67
----
61
74021

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT ALL 95 DIV - 52 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL 95 / - 52 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4904
SELECT + 0 * + 19 * 90 DIV + 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4904
SELECT + 0 * + 19 * 90 / + 14 AS col0
----
0

query I rowsort
SELECT - ( - - 92 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4906
SELECT ALL ( + CAST( NULL AS SIGNED ) ) * + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) * + 6 AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 12, 20 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT DISTINCT + - MAX( DISTINCT + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT + - MAX ( DISTINCT + 11 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4909
SELECT DISTINCT + 82 col1, COUNT( * )
----
82
1

skipif mysql # not compatible
query II rowsort label-4909
SELECT DISTINCT + 82 col1, COUNT ( * )
----
82
1

query I rowsort
SELECT ALL - COALESCE ( - + ( - 18 ), + + 61, 22 - - 94 )
----
-18

query II rowsort
SELECT DISTINCT - 72 col2, 37 * - + 92 * + - 93
----
-72
316572

query I rowsort
SELECT + 50 * + + 80
----
4000

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT 33 * + + MAX( - 16 ) AS col2
----
-528

skipif mysql # not compatible
query I rowsort label-4913
SELECT 33 * + + MAX ( - 16 ) AS col2
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT - 23 + - COUNT( - 61 ) - 54 * - + 32 - 3
----
1701

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT - 23 + - COUNT ( - 61 ) - 54 * - + 32 - 3
----
1701

onlyif mysql # DIV for integer division: 
query I rowsort label-4915
SELECT - 16 DIV + 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4915
SELECT - 16 / + 28 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT COUNT( DISTINCT + - 38 ) + + + 53 + + - 4 * + CAST( + MIN( ALL 73 ) AS SIGNED )
----
-238

skipif mysql # not compatible
query I rowsort label-4916
SELECT COUNT ( DISTINCT + - 38 ) + + + 53 + + - 4 * + CAST ( + MIN ( ALL 73 ) AS INTEGER )
----
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL - - NULLIF ( - 66, - 61 * - 53 + + + ( - 18 ) ) + + COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL - - NULLIF ( - 66, - 61 * - 53 + + + ( - 18 ) ) + + COUNT ( * ) AS col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4918
SELECT + 25 * - CAST( NULL AS DECIMAL ) + 2 - 44 * - ( - 95 ) col2, ( - 73 ) - + MIN( ALL 42 )
----
NULL
-115

skipif mysql # not compatible
query II rowsort label-4918
SELECT + 25 * - CAST ( NULL AS REAL ) + 2 - 44 * - ( - 95 ) col2, ( - 73 ) - + MIN ( ALL 42 )
----
NULL
-115

query I rowsort
SELECT DISTINCT - 73 * - 44
----
3212

query I rowsort
SELECT DISTINCT 4 + - 75
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL - - COUNT( ALL 33 ) * + 38
----
38

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL - - COUNT ( ALL 33 ) * + 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL - 29 + + - SUM( ALL + + 42 ) * 93 + + CASE + COUNT( * ) WHEN + 77 THEN 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL - 29 + + - SUM ( ALL + + 42 ) * 93 + + CASE + COUNT ( * ) WHEN + 77 THEN 84 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT - CAST( + 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-4923
SELECT - CAST ( + 92 AS INTEGER )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-4924
SELECT 68 DIV - + 35 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4924
SELECT 68 / - + 35 AS col0
----
-1

query I rowsort
SELECT ALL - ( + 43 ) AS col0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4926
SELECT DISTINCT - 61 + 42 DIV ( + COUNT( * ) ) DIV - + COUNT( DISTINCT + 59 )
----
-103

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT - 61 + 42 / ( + COUNT ( * ) ) / - + COUNT ( DISTINCT + 59 )
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT ALL - COUNT( * ) - ( - - 85 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL - COUNT ( * ) - ( - - 85 ) AS col1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4928
SELECT 93 DIV - 36
----
-2

skipif mysql # not compatible
query I rowsort label-4928
SELECT 93 / - 36
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4929
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * + - 75 * COALESCE ( 41, - 35 ) + - + 52 * + 57 * - 87 + 85
----
254878

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * + - 75 * COALESCE ( 41, - 35 ) + - + 52 * + 57 * - 87 + 85
----
254878

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT ALL - 72 * - ( - 35 ) * COUNT( * ) AS col1
----
-2520

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL - 72 * - ( - 35 ) * COUNT ( * ) AS col1
----
-2520

query I rowsort
SELECT DISTINCT 54 * - 31 col1
----
-1674

query I rowsort
SELECT DISTINCT - 54 * + - 78 AS col1
----
4212

query I rowsort
SELECT - 7 * + 93
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT 38 + 42 - + ( - NULLIF ( - + 2, 22 + - 15 / - - COALESCE ( 65, + + 98, - - 38 ) + - - 35 + - COUNT( * ) * 66 ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4934
SELECT 38 + 42 - + ( - NULLIF ( - + 2, 22 + - 15 / - - COALESCE ( 65, + + 98, - - 38 ) + - - 35 + - COUNT ( * ) * 66 ) ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT - COUNT( - 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT - COUNT ( - 78 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4936
SELECT ALL 4 DIV - + 67 * - 31
----
0

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL 4 / - + 67 * - 31
----
0

query I rowsort
SELECT + 74 * + + 24 * 59
----
104784

query I rowsort
SELECT COALESCE ( - 27, - 57, 28 ) * - 43
----
1161

query I rowsort
SELECT + + ( + 87 )
----
87

query I rowsort
SELECT ALL - 94 + - 11 * 98 + + 93
----
-1079

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT ALL - 36 * - MAX( DISTINCT - 3 ) col2
----
-108

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL - 36 * - MAX ( DISTINCT - 3 ) col2
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4942
SELECT COUNT( * ) DIV - + 78
----
0

skipif mysql # not compatible
query I rowsort label-4942
SELECT COUNT ( * ) / - + 78
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4943
SELECT ( - NULLIF ( + - 95, + 28 + + CASE + 37 WHEN - 8 THEN + - COALESCE ( - + 0, - 57 / - - 23 + - + COALESCE ( + - 16, + 79 + + 48 * + 18, + + SUM( + + 14 ) * - 35 ) + + 7 + + 44 - COUNT( * ) - + 39 - - 92 - + + ( + 61 ) + + - 0 * - 6 + - 21 + + ( + COALESCE ( - + MIN( 32 ), - CASE + 43 WHEN - - 54 THEN - + 10 + NULLIF ( + 96, 77 ) WHEN + 85 THEN + MIN( - 0 ) END ) ), - COALESCE ( 88, + 57 ), ( + 43 ) + CAST( ( COUNT( * ) ) AS SIGNED ) ) WHEN 75 THEN + 66 * 12 + + CAST( NULL AS DECIMAL ) ELSE NULL END * - 1 ) ) * ( 97 + 12 )
----
10355

skipif mysql # not compatible
query I rowsort label-4943
SELECT ( - NULLIF ( + - 95, + 28 + + CASE + 37 WHEN - 8 THEN + - COALESCE ( - + 0, - 57 / - - 23 + - + COALESCE ( + - 16, + 79 + + 48 * + 18, + + SUM ( + + 14 ) * - 35 ) + + 7 + + 44 - COUNT ( * ) - + 39 - - 92 - + + ( + 61 ) + + - 0 * - 6 + - 21 + + ( + COALESCE ( - + MIN ( 32 ), - CASE + 43 WHEN - - 54 THEN - + 10 + NULLIF ( + 96, 77 ) WHEN + 85 THEN + MIN ( - 0 ) END ) ), - COALESCE ( 88, + 57 ), ( + 43 ) + CAST ( ( COUNT ( * ) ) AS INTEGER ) ) WHEN 75 THEN + 66 * 12 + + CAST ( NULL AS REAL ) ELSE NULL END * - 1 ) ) * ( 97 + 12 )
----
10355

query I rowsort
SELECT + ( - - ( + - 13 ) ) AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT ALL - CAST( - 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL - CAST ( - 86 AS INTEGER )
----
86

query I rowsort
SELECT ALL - 44 + 67 AS col1
----
23

query I rowsort
SELECT - 23 * 49 AS col0
----
-1127

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL - CASE + + 99 WHEN + ( - + 65 ) THEN + COUNT( * ) * + 62 ELSE + ( - + COUNT( * ) ) * - 92 + + + 45 END
----
-137

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL - CASE + + 99 WHEN + ( - + 65 ) THEN + COUNT ( * ) * + 62 ELSE + ( - + COUNT ( * ) ) * - 92 + + + 45 END
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT DISTINCT - + 68 + + COUNT( * ) + + COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT - + 68 + + COUNT ( * ) + + COUNT ( * ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ALL + - COUNT( * ) + 77 * + + 93
----
7160

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL + - COUNT ( * ) + 77 * + + 93
----
7160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4951
SELECT CASE 9 WHEN 77 / - - 83 * - 76 - - + 4 + - - NULLIF ( - ( CAST( NULL AS DECIMAL ) ), + 17 ) + - 14 THEN NULL ELSE + + 35 END * - NULLIF ( + 0, COUNT( * ) ) * + 46 - 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4951
SELECT CASE 9 WHEN 77 / - - 83 * - 76 - - + 4 + - - NULLIF ( - ( CAST ( NULL AS REAL ) ), + 17 ) + - 14 THEN NULL ELSE + + 35 END * - NULLIF ( + 0, COUNT ( * ) ) * + 46 - 19 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT 29 * SUM( + 84 ) * 27 + + - 98 + - 40 AS col2
----
65634

skipif mysql # not compatible
query I rowsort label-4952
SELECT 29 * SUM ( + 84 ) * 27 + + - 98 + - 40 AS col2
----
65634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4953
SELECT ALL - COUNT( ALL + - ( 67 ) ) - + 4 + + CASE + 58 WHEN + COALESCE ( - + 65, + 8, + COUNT( * ) ) + COALESCE ( - 99, 94 * - 88 + + + ( + 78 ) - - 67 / - 66 * + + ( - CASE NULLIF ( + 55, - MAX( 76 ) ) WHEN + SUM( - 98 ) THEN NULL WHEN - SUM( 24 ) * 26 - - 92 + 88 * - 96 / - ( + + CAST( NULL AS SIGNED ) ) * 38 THEN + 84 END ) + 22 * MAX( ALL - 30 ), + 54 * SUM( 17 + 74 * + 66 ) + COUNT( + 2 ) ) * - 6 THEN + 64 * - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL - COUNT ( ALL + - ( 67 ) ) - + 4 + + CASE + 58 WHEN + COALESCE ( - + 65, + 8, + COUNT ( * ) ) + COALESCE ( - 99, 94 * - 88 + + + ( + 78 ) - - 67 / - 66 * + + ( - CASE NULLIF ( + 55, - MAX ( 76 ) ) WHEN + SUM ( - 98 ) THEN NULL WHEN - SUM ( 24 ) * 26 - - 92 + 88 * - 96 / - ( + + CAST ( NULL AS INTEGER ) ) * 38 THEN + 84 END ) + 22 * MAX ( ALL - 30 ), + 54 * SUM ( 17 + 74 * + 66 ) + COUNT ( + 2 ) ) * - 6 THEN + 64 * - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4954
SELECT CAST( 25 AS SIGNED ) + 91 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-4954
SELECT CAST ( 25 AS INTEGER ) + 91 AS col2
----
116

query I rowsort
SELECT 96 * COALESCE ( - 44, + 43, 40 )
----
-4224

query I rowsort
SELECT ALL 49 - - 65 AS col0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT ALL - CAST( + 66 AS SIGNED ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL - CAST ( + 66 AS INTEGER ) AS col1
----
-66

query I rowsort
SELECT ALL + 76 - - - 39
----
37

query II rowsort
SELECT DISTINCT 96 AS col1, - 38 col2
----
96
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4960
SELECT 28 DIV + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-4960
SELECT 28 / + COUNT ( * )
----
28

query I rowsort
SELECT ALL + 40 * - 82 AS col0
----
-3280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4962
SELECT ALL - CASE - 13 WHEN + + COUNT( * ) + - - 42 THEN NULL ELSE + - COUNT( + - 86 ) + - 53 - + - CAST( ( + 58 ) AS SIGNED ) DIV + + MIN( DISTINCT + 89 ) END * + + 42
----
2268

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - CASE - 13 WHEN + + COUNT ( * ) + - - 42 THEN NULL ELSE + - COUNT ( + - 86 ) + - 53 - + - CAST ( ( + 58 ) AS INTEGER ) / + + MIN ( DISTINCT + 89 ) END * + + 42
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT 2 + - - 59 * + SUM( + 82 ) * 94 + - 80
----
454694

skipif mysql # not compatible
query I rowsort label-4963
SELECT 2 + - - 59 * + SUM ( + 82 ) * 94 + - 80
----
454694

query I rowsort
SELECT 38 + + - 24
----
14

query I rowsort
SELECT 12 * + + 77 AS col0
----
924

query I rowsort
SELECT 47 + - - 76 AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL COUNT( ALL + ( - + 42 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL COUNT ( ALL + ( - + 42 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4968
SELECT COUNT( + 82 ) DIV 31 * 49 * - + 3
----
0

skipif mysql # not compatible
query I rowsort label-4968
SELECT COUNT ( + 82 ) / 31 * 49 * - + 3
----
0

query I rowsort
SELECT 27 + + 68
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4970
SELECT ALL CASE + + CASE - 41 WHEN + MAX( + 30 ) / + COALESCE ( - + 95, - 57 ) + - + NULLIF ( + 63, - 59 ) THEN + 18 * - + 24 + - CASE - COALESCE ( 91, + ( + + ( + 1 ) ) * CAST( NULL AS DECIMAL ) + - MAX( + + 56 ) ) WHEN - + 74 / + 86 * + 52 THEN - - 88 WHEN - 51 THEN - 47 ELSE NULL END + - + 30 END WHEN CASE + 5 WHEN - 55 * + MIN( DISTINCT + COALESCE ( - 30, 95 ) ) THEN COUNT( * ) END THEN NULL WHEN 83 THEN - COUNT( * ) * + 42 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL CASE + + CASE - 41 WHEN + MAX ( + 30 ) / + COALESCE ( - + 95, - 57 ) + - + NULLIF ( + 63, - 59 ) THEN + 18 * - + 24 + - CASE - COALESCE ( 91, + ( + + ( + 1 ) ) * CAST ( NULL AS REAL ) + - MAX ( + + 56 ) ) WHEN - + 74 / + 86 * + 52 THEN - - 88 WHEN - 51 THEN - 47 ELSE NULL END + - + 30 END WHEN CASE + 5 WHEN - 55 * + MIN ( DISTINCT + COALESCE ( - 30, 95 ) ) THEN COUNT ( * ) END THEN NULL WHEN 83 THEN - COUNT ( * ) * + 42 ELSE NULL END col2
----
NULL

query I rowsort
SELECT 37 + - 53 AS col2
----
-16

query I rowsort
SELECT DISTINCT 0 + + 34 AS col1
----
34

query I rowsort
SELECT DISTINCT 59 + 57 * - 77 * + 35 + 34 + - 42
----
-153564

query I rowsort
SELECT ALL 35 * - 88 AS col0
----
-3080

query II rowsort
SELECT ALL - ( - COALESCE ( 16, - + 76 ) ) + + 79 col1, + 41 + 3
----
95
44

query I rowsort
SELECT ALL 49 + + + 87
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4977
SELECT - + COUNT( * ) + - + CASE + COUNT( * ) WHEN - + 67 * + COUNT( + 0 ) THEN - 58 WHEN + + 86 THEN - + NULLIF ( 33, + COUNT( * ) ) ELSE - + COALESCE ( - COUNT( * ), - 85, + + MIN( DISTINCT + + 25 ) ) END - + COALESCE ( - CASE - 34 WHEN - 59 THEN - 41 + + 77 WHEN 32 THEN CAST( + CAST( 81 AS DECIMAL ) AS SIGNED ) END, 92, - 39 ) - + ( 40 ) AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-4977
SELECT - + COUNT ( * ) + - + CASE + COUNT ( * ) WHEN - + 67 * + COUNT ( + 0 ) THEN - 58 WHEN + + 86 THEN - + NULLIF ( 33, + COUNT ( * ) ) ELSE - + COALESCE ( - COUNT ( * ), - 85, + + MIN ( DISTINCT + + 25 ) ) END - + COALESCE ( - CASE - 34 WHEN - 59 THEN - 41 + + 77 WHEN 32 THEN CAST ( + CAST ( 81 AS REAL ) AS INTEGER ) END, 92, - 39 ) - + ( 40 ) AS col1
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT - 62 * + 6 * + + 15 - COUNT( * )
----
-5581

skipif mysql # not compatible
query I rowsort label-4978
SELECT - 62 * + 6 * + + 15 - COUNT ( * )
----
-5581

query I rowsort
SELECT DISTINCT 11 + 59
----
70

query I rowsort
SELECT ALL + ( + + 9 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT - NULLIF ( + 5, - COUNT( - 41 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-4981
SELECT - NULLIF ( + 5, - COUNT ( - 41 ) )
----
-5

query I rowsort
SELECT ALL + - ( + 21 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT + MAX( + - 18 ) * - 73 + 78
----
1392

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT + MAX ( + - 18 ) * - 73 + 78
----
1392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4984
SELECT + 21 + - COUNT( * ) DIV + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4984
SELECT + 21 + - COUNT ( * ) / + COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT + NULLIF ( 83, - 45 + - - 34 * + - ( + CASE + - COALESCE ( - - 10, - CASE + ( SUM( ALL - + 35 ) ) WHEN + 42 THEN - 52 * - 9 + + 39 + + MAX( 39 ) WHEN - 38 * + - 4 + + - 0 THEN + + 22 * - 23 - - 68 END, + - 5 * 92 + - - 5 * - 45 * - 46 ) WHEN + 18 THEN NULL ELSE 89 - ( - COUNT( * ) ) + 86 END ) * - MAX( ALL - - 17 ) * - 38 + - 82 - - 7 + 46 * COUNT( * ) ) * - 42 + + 98 col1
----
-3388

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT + NULLIF ( 83, - 45 + - - 34 * + - ( + CASE + - COALESCE ( - - 10, - CASE + ( SUM ( ALL - + 35 ) ) WHEN + 42 THEN - 52 * - 9 + + 39 + + MAX ( 39 ) WHEN - 38 * + - 4 + + - 0 THEN + + 22 * - 23 - - 68 END, + - 5 * 92 + - - 5 * - 45 * - 46 ) WHEN + 18 THEN NULL ELSE 89 - ( - COUNT ( * ) ) + 86 END ) * - MAX ( ALL - - 17 ) * - 38 + - 82 - - 7 + 46 * COUNT ( * ) ) * - 42 + + 98 col1
----
-3388

query I rowsort
SELECT ALL + + ( 18 )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT DISTINCT 22 DIV - + 13
----
-1

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT 22 / - + 13
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4988
SELECT DISTINCT - 82 * - + 78 / + + CASE 10 WHEN + + 29 + - COUNT( * ) THEN 34 / - - AVG ( - CAST( - 55 AS SIGNED ) ) WHEN - - 57 + - 57 + 4 THEN NULL END - 10 + - 84 / + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT - 82 * - + 78 / + + CASE 10 WHEN + + 29 + - COUNT ( * ) THEN 34 / - - AVG ( - CAST ( - 55 AS INTEGER ) ) WHEN - - 57 + - 57 + 4 THEN NULL END - 10 + - 84 / + 86
----
NULL

query I rowsort
SELECT + 67 * + 2 AS col0
----
134

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4990
SELECT + CAST( NULL AS DECIMAL ) / - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4990
SELECT + CAST ( NULL AS REAL ) / - 66 AS col2
----
NULL

query I rowsort
SELECT + 37 * 51
----
1887

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT DISTINCT 43 * + + MAX( ALL - 43 )
----
-1849

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT 43 * + + MAX ( ALL - 43 )
----
-1849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4993
SELECT COUNT( - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4993
SELECT COUNT ( - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT + 72 * + - 87 * + + COUNT( * ) * + ( + 38 )
----
-238032

skipif mysql # not compatible
query I rowsort label-4994
SELECT + 72 * + - 87 * + + COUNT ( * ) * + ( + 38 )
----
-238032

onlyif mysql # aggregate syntax: 
query II rowsort label-4995
SELECT MIN( + 17 ) AS col0, - 16 AS col0
----
17
-16

skipif mysql # not compatible
query II rowsort label-4995
SELECT MIN ( + 17 ) AS col0, - 16 AS col0
----
17
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4996
SELECT ALL COUNT( * ) col0, 15 * - 96 AS col0
----
1
-1440

skipif mysql # not compatible
query II rowsort label-4996
SELECT ALL COUNT ( * ) col0, 15 * - 96 AS col0
----
1
-1440

query II rowsort
SELECT - 5 AS col0, 74 AS col1
----
-5
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4998
SELECT ALL 14 AS col1, + CAST( NULL AS SIGNED ) AS col2
----
14
NULL

skipif mysql # not compatible
query II rowsort label-4998
SELECT ALL 14 AS col1, + CAST ( NULL AS INTEGER ) AS col2
----
14
NULL

query I rowsort
SELECT ALL + 82 * + - 39
----
-3198

onlyif mysql # aggregate syntax: 
query II rowsort label-5000
SELECT 12 AS col1, - COUNT( * )
----
12
-1

skipif mysql # not compatible
query II rowsort label-5000
SELECT 12 AS col1, - COUNT ( * )
----
12
-1

query I rowsort
SELECT ALL ( - 27 ) + - 48 + - 4 + 58
----
-21

query I rowsort
SELECT + 94 + 74 AS col0
----
168

query I rowsort
SELECT + 42 * + 56
----
2352

query I rowsort
SELECT + + 80 + + 28
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5005
SELECT - + 74 * 32 DIV - + MIN( 38 ) AS col2, MIN( - - 42 ) * - 35 AS col2
----
62
-1470

skipif mysql # not compatible
query II rowsort label-5005
SELECT - + 74 * 32 / - + MIN ( 38 ) AS col2, MIN ( - - 42 ) * - 35 AS col2
----
62
-1470

query I rowsort
SELECT + NULLIF ( + 28, + 1 )
----
28

query I rowsort
SELECT ALL - 94 + + 48
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-5008
SELECT - - 75, CASE - 38 WHEN 44 * + 66 THEN - MAX( + + 32 ) WHEN - 96 THEN + + 43 END + + 95 AS col0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-5008
SELECT - - 75, CASE - 38 WHEN 44 * + 66 THEN - MAX ( + + 32 ) WHEN - 96 THEN + + 43 END + + 95 AS col0
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT ALL - - 26 + + MAX( DISTINCT - 73 ) + + 35 + - 70
----
-82

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL - - 26 + + MAX ( DISTINCT - 73 ) + + 35 + - 70
----
-82

query I rowsort
SELECT DISTINCT + 66 + - 30 + + 69 AS col0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-5011
SELECT ALL + 3 DIV 38 * 78
----
0

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL + 3 / 38 * 78
----
0

query II rowsort
SELECT + 26, + 23 AS col1
----
26
23

query I rowsort
SELECT DISTINCT 54 * - 32 AS col2
----
-1728

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT - + 78 + + + COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-5014
SELECT - + 78 + + + COUNT ( * )
----
-77

query I rowsort
SELECT - + 73 * + - 71
----
5183

query II rowsort
SELECT + - 34 AS col1, 77
----
-34
77

query II rowsort
SELECT 16, 61 AS col1
----
16
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5018
SELECT ALL + COUNT( * ), 38 AS col2
----
1
38

skipif mysql # not compatible
query II rowsort label-5018
SELECT ALL + COUNT ( * ), 38 AS col2
----
1
38

query II rowsort
SELECT ALL + + 84 * - + 72 AS col1, 16 * - 67 col1
----
-6048
-1072

query I rowsort
SELECT - 99 * - 7
----
693

query I rowsort
SELECT ALL 38 * - ( + 2 )
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5022
SELECT - - 95 - + 80 - - 98 DIV + SUM( DISTINCT COALESCE ( + 21, - 62 + + 7 * - - 35 * - 15 + + 83 ) ) DIV - COUNT( ALL - + 21 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5022
SELECT - - 95 - + 80 - - 98 / + SUM ( DISTINCT COALESCE ( + 21, - 62 + + 7 * - - 35 * - 15 + + 83 ) ) / - COUNT ( ALL - + 21 ) AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5023
SELECT DISTINCT ( 72 ) / CAST( NULL AS SIGNED ) - - + 28 * + + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT ( 72 ) / CAST ( NULL AS INTEGER ) - - + 28 * + + 33 AS col0
----
NULL

query I rowsort
SELECT ALL + - CASE - 78 WHEN - 4 THEN NULL ELSE 13 + - 19 END
----
6

query I rowsort
SELECT + 20 * + - 58
----
-1160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT DISTINCT CAST( NULL AS SIGNED ) / + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + - 7
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5027
SELECT 12 / + CAST( NULL AS SIGNED ) - + 80 + - 54 - + - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT 12 / + CAST ( NULL AS INTEGER ) - + 80 + - 54 - + - 89 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT - CAST( NULL AS SIGNED ) * 73 + + + COUNT( * ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT - CAST ( NULL AS INTEGER ) * 73 + + + COUNT ( * ) + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5029
SELECT ALL ( - COUNT( * ) ) DIV - - 50 col1
----
0

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL ( - COUNT ( * ) ) / - - 50 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT 22 * - COUNT( + 70 ) + - SUM( DISTINCT - 43 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5030
SELECT 22 * - COUNT ( + 70 ) + - SUM ( DISTINCT - 43 ) AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT + 42 DIV 89 * 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT + 42 / 89 * 37 AS col0
----
0

query I rowsort
SELECT + 54 + + - 5 AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5033
SELECT ALL - COUNT( * ) DIV - - 36 col1, - 12 AS col2
----
0
-12

skipif mysql # not compatible
query II rowsort label-5033
SELECT ALL - COUNT ( * ) / - - 36 col1, - 12 AS col2
----
0
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT ALL 24 + - 3 + + + 0 - - - MIN( DISTINCT + 4 ) * + 8
----
-11

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL 24 + - 3 + + + 0 - - - MIN ( DISTINCT + 4 ) * + 8
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT COUNT( * ) + - MAX( + 56 ) + - 51
----
-106

skipif mysql # not compatible
query I rowsort label-5035
SELECT COUNT ( * ) + - MAX ( + 56 ) + - 51
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5036
SELECT DISTINCT CASE - 5 WHEN - CAST( NULL AS SIGNED ) + - ( + 92 ) THEN - + 77 * 98 - + 93 * - COUNT( * ) END + + + 11 * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT CASE - 5 WHEN - CAST ( NULL AS INTEGER ) + - ( + 92 ) THEN - + 77 * 98 - + 93 * - COUNT ( * ) END + + + 11 * + 67
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5037
SELECT ALL 18 + 50 + + SUM( ALL + 3 ) * - 99 * + 11 + - 20 AS col2, COUNT( DISTINCT - + 19 ) * + 11
----
-3219
11

skipif mysql # not compatible
query II rowsort label-5037
SELECT ALL 18 + 50 + + SUM ( ALL + 3 ) * - 99 * + 11 + - 20 AS col2, COUNT ( DISTINCT - + 19 ) * + 11
----
-3219
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5038
SELECT ALL ( SUM( + 84 ) ) + - - 93 + - 46, 92 AS col2
----
131
92

skipif mysql # not compatible
query II rowsort label-5038
SELECT ALL ( SUM ( + 84 ) ) + - - 93 + - 46, 92 AS col2
----
131
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT COUNT( * ) * + - SUM( DISTINCT + 17 ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-5039
SELECT COUNT ( * ) * + - SUM ( DISTINCT + 17 ) col1
----
-17

query I rowsort
SELECT DISTINCT 23 + 55 + - + ( - 86 ) AS col0
----
164

query I rowsort
SELECT 13 + 15
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT - + COALESCE ( - 99, - 17 DIV + 15 * 11 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5042
SELECT - + COALESCE ( - 99, - 17 / + 15 * 11 ) AS col2
----
99

query I rowsort
SELECT - 28 + 86
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT - NULLIF ( 46, - 64 + - - NULLIF ( + 77, + 65 ) + 81 + + 82 * - + 44 * + - COUNT( * ) )
----
-46

skipif mysql # not compatible
query I rowsort label-5044
SELECT - NULLIF ( 46, - 64 + - - NULLIF ( + 77, + 65 ) + 81 + + 82 * - + 44 * + - COUNT ( * ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ALL COUNT( + 54 )
----
1

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL COUNT ( + 54 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL + 57 * + CASE 10 WHEN + 88 THEN - 19 - 22 ELSE COUNT( * ) END + - 3 col0
----
54

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL + 57 * + CASE 10 WHEN + 88 THEN - 19 - 22 ELSE COUNT ( * ) END + - 3 col0
----
54

query II rowsort
SELECT DISTINCT + - 61 * 57 AS col1, 15 AS col1
----
-3477
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5048
SELECT 71 DIV 18 * - 59
----
-177

skipif mysql # not compatible
query I rowsort label-5048
SELECT 71 / 18 * - 59
----
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-5049
SELECT - 17 * - 37 AS col1, + SUM( - 54 ) * - MAX( + ( + 24 ) )
----
629
1296

skipif mysql # not compatible
query II rowsort label-5049
SELECT - 17 * - 37 AS col1, + SUM ( - 54 ) * - MAX ( + ( + 24 ) )
----
629
1296

onlyif mysql # aggregate syntax: 
query II rowsort label-5050
SELECT - MIN( + 5 ), - 1 col0
----
-5
-1

skipif mysql # not compatible
query II rowsort label-5050
SELECT - MIN ( + 5 ), - 1 col0
----
-5
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5051
SELECT DISTINCT - + CAST( + COALESCE ( 98, + 8 ) AS SIGNED ) - - - 72 AS col0, + 35
----
-170
35

skipif mysql # not compatible
query II rowsort label-5051
SELECT DISTINCT - + CAST ( + COALESCE ( 98, + 8 ) AS INTEGER ) - - - 72 AS col0, + 35
----
-170
35

query I rowsort
SELECT - 44 + + 71
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5053
SELECT - CASE - 26 WHEN + + 12 - - 17 THEN NULL ELSE + 64 END DIV - 41 col2
----
1

skipif mysql # not compatible
query I rowsort label-5053
SELECT - CASE - 26 WHEN + + 12 - - 17 THEN NULL ELSE + 64 END / - 41 col2
----
1

query I rowsort
SELECT + 53 * 95 AS col0
----
5035

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT + 92 + COUNT( + 35 )
----
93

skipif mysql # not compatible
query I rowsort label-5055
SELECT + 92 + COUNT ( + 35 )
----
93

query I rowsort
SELECT 41 * + 73 * ( + 48 )
----
143664

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT ALL - CASE - - 19 WHEN + 73 * 46 + 16 THEN 47 END * - ( + 21 ) * - COUNT( * ) * 95 / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL - CASE - - 19 WHEN + 73 * 46 + 16 THEN 47 END * - ( + 21 ) * - COUNT ( * ) * 95 / 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT ALL - + ( - ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL - + ( - ( COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT 22 * + COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-5059
SELECT 22 * + COUNT ( * ) AS col1
----
22

query I rowsort
SELECT ALL - CASE - 50 WHEN - + 2 + + 74 THEN - 50 / 68 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5061
SELECT - 36 * + + 23 + + 84 + - - 17 DIV - 64 * - - ( COUNT( * ) ) AS col0
----
-744

skipif mysql # not compatible
query I rowsort label-5061
SELECT - 36 * + + 23 + + 84 + - - 17 / - 64 * - - ( COUNT ( * ) ) AS col0
----
-744

query I rowsort
SELECT DISTINCT - ( - CASE - - 50 WHEN 40 THEN + 57 WHEN 45 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5063
SELECT COUNT( * ) DIV 77 + + 39 - COUNT( + + 55 ) * - NULLIF ( + 77, 42 )
----
116

skipif mysql # not compatible
query I rowsort label-5063
SELECT COUNT ( * ) / 77 + + 39 - COUNT ( + + 55 ) * - NULLIF ( + 77, 42 )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT ALL - COUNT( DISTINCT + 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL - COUNT ( DISTINCT + 67 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL + COUNT( * ) * - 34 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL + COUNT ( * ) * - 34 AS col0
----
-34

query I rowsort
SELECT 12 * + - 84 * - 22
----
22176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5067
SELECT COALESCE ( + 60, + COUNT( * ) ) + - 67 + - 78 * + 62 + + COALESCE ( + COUNT( * ), + 44 * - 56 + - - 99 * + 21 + - 23 * + 34, + 35 ) DIV - 12 col2
----
-4843

skipif mysql # not compatible
query I rowsort label-5067
SELECT COALESCE ( + 60, + COUNT ( * ) ) + - 67 + - 78 * + 62 + + COALESCE ( + COUNT ( * ), + 44 * - 56 + - - 99 * + 21 + - 23 * + 34, + 35 ) / - 12 col2
----
-4843

onlyif mysql # aggregate syntax: 
query II rowsort label-5068
SELECT 22 AS col2, + ( ( + COUNT( ALL 85 ) ) ) * + - 67
----
22
-67

skipif mysql # not compatible
query II rowsort label-5068
SELECT 22 AS col2, + ( ( + COUNT ( ALL 85 ) ) ) * + - 67
----
22
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5069
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 85 * 13 * + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 85 * 13 * + 12 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5070
SELECT ALL - CASE + + 13 WHEN MAX( DISTINCT + + 76 ) THEN + 65 + - 11 WHEN - - COUNT( ALL 86 ) + 21 + + 61 + - 1 THEN + COUNT( ALL 31 ) END + - ( 1 ) + - MAX( CAST( - 29 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL - CASE + + 13 WHEN MAX ( DISTINCT + + 76 ) THEN + 65 + - 11 WHEN - - COUNT ( ALL 86 ) + 21 + + 61 + - 1 THEN + COUNT ( ALL 31 ) END + - ( 1 ) + - MAX ( CAST ( - 29 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT ALL + 27 * + + 36 * - 56 * + SUM( DISTINCT 55 ) * + + 69 - - 27 AS col2
----
-206569413

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL + 27 * + + 36 * - 56 * + SUM ( DISTINCT 55 ) * + + 69 - - 27 AS col2
----
-206569413

query II rowsort
SELECT 37 * + 25 * - - 24 col1, + 18 AS col2
----
22200
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5073
SELECT + 10 AS col2, COUNT( - ( 14 ) ) DIV 93 * - 73 + + 12 - - CASE + + 85 WHEN SUM( ALL + 16 ) + + 42 + - 20 + - 38 + - 24 * - 76 * + - ( - CAST( + CASE + + ( 12 ) WHEN + 61 THEN + - 80 * 78 END AS SIGNED ) ) * + 81 - - 68 + 8 + + ( ( + 33 ) ) * - 61 * AVG ( + 85 ) * + CAST( NULL AS SIGNED ) * + 48 THEN NULL WHEN 61 THEN 98 ELSE - 57 + 46 * 71 + 85 DIV + + 56 END AS col0
----
10
3222

skipif mysql # not compatible
query II rowsort label-5073
SELECT + 10 AS col2, COUNT ( - ( 14 ) ) / 93 * - 73 + + 12 - - CASE + + 85 WHEN SUM ( ALL + 16 ) + + 42 + - 20 + - 38 + - 24 * - 76 * + - ( - CAST ( + CASE + + ( 12 ) WHEN + 61 THEN + - 80 * 78 END AS INTEGER ) ) * + 81 - - 68 + 8 + + ( ( + 33 ) ) * - 61 * AVG ( + 85 ) * + CAST ( NULL AS INTEGER ) * + 48 THEN NULL WHEN 61 THEN 98 ELSE - 57 + 46 * 71 + 85 / + + 56 END AS col0
----
10
3222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5074
SELECT ALL - CAST( + - MAX( ALL - 85 ) AS SIGNED ) + - NULLIF ( - 14, + CAST( + 36 AS DECIMAL ) ) * + + 65
----
825

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL - CAST ( + - MAX ( ALL - 85 ) AS INTEGER ) + - NULLIF ( - 14, + CAST ( + 36 AS REAL ) ) * + + 65
----
825

query I rowsort
SELECT 27 * + 61 col0
----
1647

onlyif mysql # aggregate syntax: 
query II rowsort label-5076
SELECT ALL - 8 AS col2, - COALESCE ( + + 49, - 73 + - 46 + - ( MIN( DISTINCT + 97 ) ) * - 69 * 29 )
----
-8
-49

skipif mysql # not compatible
query II rowsort label-5076
SELECT ALL - 8 AS col2, - COALESCE ( + + 49, - 73 + - 46 + - ( MIN ( DISTINCT + 97 ) ) * - 69 * 29 )
----
-8
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT + 7 * 84 + COUNT( * ) AS col0
----
589

skipif mysql # not compatible
query I rowsort label-5077
SELECT + 7 * 84 + COUNT ( * ) AS col0
----
589

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT DISTINCT + NULLIF ( + 12, + 84 * + 5 + + - 2 ) * + MAX( ALL - 79 )
----
-948

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT + NULLIF ( + 12, + 84 * + 5 + + - 2 ) * + MAX ( ALL - 79 )
----
-948

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT ALL + ( + - 66 ) - + + COUNT( DISTINCT + 34 )
----
-67

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + ( + - 66 ) - + + COUNT ( DISTINCT + 34 )
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT DISTINCT - 8 DIV 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT - 8 / 11 AS col1
----
0

query I rowsort
SELECT ALL 48 - - - 50 AS col1
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5082
SELECT ALL - 27 AS col2, + CAST( NULL AS DECIMAL ) - + 81 AS col1
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-5082
SELECT ALL - 27 AS col2, + CAST ( NULL AS REAL ) - + 81 AS col1
----
-27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT COUNT( * ) * - + 86
----
-86

skipif mysql # not compatible
query I rowsort label-5083
SELECT COUNT ( * ) * - + 86
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5084
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, + 40 AS col1
----
NULL
40

skipif mysql # not compatible
query II rowsort label-5084
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, + 40 AS col1
----
NULL
40

query II rowsort
SELECT - - 7, + 54 AS col0
----
7
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5086
SELECT ALL 51 AS col0, COUNT( * )
----
51
1

skipif mysql # not compatible
query II rowsort label-5086
SELECT ALL 51 AS col0, COUNT ( * )
----
51
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL CASE + COUNT( * ) WHEN - - 10 THEN NULL ELSE 64 END AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL CASE + COUNT ( * ) WHEN - - 10 THEN NULL ELSE 64 END AS col2
----
64

query I rowsort
SELECT 55 + 34
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5089
SELECT ALL MIN( - 28 ) DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL MIN ( - 28 ) / 33
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5090
SELECT - COUNT( * ) DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5090
SELECT - COUNT ( * ) / 81 AS col2
----
0

query I rowsort
SELECT + 56 * + 8 AS col1
----
448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5092
SELECT COALESCE ( COALESCE ( + - 70, - 67 ), + CASE - COUNT( * ) WHEN - 3 THEN - + 1 DIV - 70 WHEN + 57 THEN - - NULLIF ( - COALESCE ( + + 51, + 97 ), - + COUNT( * ) ) * + 3 + - 67 * - 72 + + 59 END * - 58 * COUNT( * ) * + 81 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-5092
SELECT COALESCE ( COALESCE ( + - 70, - 67 ), + CASE - COUNT ( * ) WHEN - 3 THEN - + 1 / - 70 WHEN + 57 THEN - - NULLIF ( - COALESCE ( + + 51, + 97 ), - + COUNT ( * ) ) * + 3 + - 67 * - 72 + + 59 END * - 58 * COUNT ( * ) * + 81 ) AS col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5093
SELECT 31 DIV + CAST( CAST( - + ( NULLIF ( + 47, - + 3 ) ) AS SIGNED ) AS SIGNED ) * 68 - - 70 + CAST( - 83 AS SIGNED ) + - + 47 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-5093
SELECT 31 / + CAST ( CAST ( - + ( NULLIF ( + 47, - + 3 ) ) AS INTEGER ) AS INTEGER ) * 68 - - 70 + CAST ( - 83 AS INTEGER ) + - + 47 AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5094
SELECT ALL - MIN( 30 ) * - + 91 DIV + 7 + + 48 AS col2
----
438

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL - MIN ( 30 ) * - + 91 / + 7 + + 48 AS col2
----
438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5095
SELECT 12 / + - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT 12 / + - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5096
SELECT 47 DIV - - 59 AS col2, + 88 DIV + + 82 AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-5096
SELECT 47 / - - 59 AS col2, + 88 / + + 82 AS col1
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5097
SELECT ALL + CAST( NULL AS SIGNED ) * + + 89 + - 63 - ( - 3 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 89 + - 63 - ( - 3 ) AS col2
----
NULL

query I rowsort
SELECT 57 * + 24 AS col0
----
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL - 92 * 41 + - + COUNT( * ) * - 55 AS col2
----
-3717

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL - 92 * 41 + - + COUNT ( * ) * - 55 AS col2
----
-3717

query I rowsort
SELECT + 55 - 30
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT DISTINCT + ( - MAX( - + 35 ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + ( - MAX ( - + 35 ) ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT DISTINCT + 48 * + ( - - 40 ) * - COUNT( * ) * + 86 * - - 25 + + - 57
----
-4128057

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT + 48 * + ( - - 40 ) * - COUNT ( * ) * + 86 * - - 25 + + - 57
----
-4128057

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5103
SELECT ALL - 50 / - CAST( NULL AS SIGNED ) * ( + 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL - 50 / - CAST ( NULL AS INTEGER ) * ( + 40 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 15 * + 42 + - + 97
----
-727

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT DISTINCT + ( 82 ) * + MIN( - 69 ) - + COALESCE ( + + 46, 99 ) + + 9 + - 93
----
-5788

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT + ( 82 ) * + MIN ( - 69 ) - + COALESCE ( + + 46, 99 ) + + 9 + - 93
----
-5788

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5106
SELECT + 95 + - 11 + - 22 + 0 * - + 37 DIV + MAX( - 20 ) AS col1, 52 * - 45
----
62
-2340

skipif mysql # not compatible
query II rowsort label-5106
SELECT + 95 + - 11 + - 22 + 0 * - + 37 / + MAX ( - 20 ) AS col1, 52 * - 45
----
62
-2340

query I rowsort
SELECT - 77 - 61 AS col2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT + COUNT( DISTINCT 32 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5108
SELECT + COUNT ( DISTINCT 32 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL - 60 * - ( + SUM( 72 ) )
----
4320

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL - 60 * - ( + SUM ( 72 ) )
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT DISTINCT - 79 * - NULLIF ( - - 40, + COUNT( * ) ) AS col1
----
3160

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT - 79 * - NULLIF ( - - 40, + COUNT ( * ) ) AS col1
----
3160

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT + SUM( DISTINCT - - 1 ) * ( 65 ) + + ( + 86 )
----
151

skipif mysql # not compatible
query I rowsort label-5111
SELECT + SUM ( DISTINCT - - 1 ) * ( 65 ) + + ( + 86 )
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT - 76 + - - 26 * - COUNT( * )
----
-102

skipif mysql # not compatible
query I rowsort label-5112
SELECT - 76 + - - 26 * - COUNT ( * )
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5113
SELECT ALL + MIN( ALL - CAST( - - 93 AS SIGNED ) ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL + MIN ( ALL - CAST ( - - 93 AS INTEGER ) ) AS col1
----
-93

query I rowsort
SELECT + 8 * - - 23
----
184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5115
SELECT DISTINCT SUM( 77 ) DIV + - SUM( DISTINCT + 23 ) + - COUNT( * ) DIV - - 32 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT SUM ( 77 ) / + - SUM ( DISTINCT + 23 ) + - COUNT ( * ) / - - 32 AS col1
----
-3

query I rowsort
SELECT - + 99 * + + 11
----
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT ALL - COUNT( * ) * - - 9 col1
----
-9

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL - COUNT ( * ) * - - 9 col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5118
SELECT ALL 4 * + 64 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL 4 * + 64 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 74 * 9 * + 88 + - 89 + + 72 + + 24 AS col2
----
58615

query I rowsort
SELECT ALL 18 * 94 * 85 AS col1
----
143820

query I rowsort
SELECT + 88 * + 32 + + 59 col0
----
2875

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT + 92 * + + COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-5122
SELECT + 92 * + + COUNT ( * ) AS col0
----
92

query I rowsort
SELECT DISTINCT - 11 * + 43 * + 92 * 92 * 46 AS col1
----
-184159712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5124
SELECT - + COUNT( * ) + + - COALESCE ( ( 87 ), - NULLIF ( + 91, 94 / - - 57 - + ( - 75 ) - - + 68 / 75 * + + 96 / + COUNT( DISTINCT + ( 40 ) ) + - - NULLIF ( + 7, 20 / + 5 ) * ( 51 ) / + 52 * - CAST( + COALESCE ( + 96, 90 ) AS SIGNED ) / + 47 + - 63 ) ) + + + CAST( + 43 AS SIGNED ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5124
SELECT - + COUNT ( * ) + + - COALESCE ( ( 87 ), - NULLIF ( + 91, 94 / - - 57 - + ( - 75 ) - - + 68 / 75 * + + 96 / + COUNT ( DISTINCT + ( 40 ) ) + - - NULLIF ( + 7, 20 / + 5 ) * ( 51 ) / + 52 * - CAST ( + COALESCE ( + 96, 90 ) AS INTEGER ) / + 47 + - 63 ) ) + + + CAST ( + 43 AS INTEGER ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT CASE + 59 WHEN - - 95 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN - 50 * + + ( 9 ) + - - 91 THEN NULL ELSE MAX( 50 ) - - NULLIF ( 9, - - 22 ) END AS col0
----
59

skipif mysql # not compatible
query I rowsort label-5125
SELECT CASE + 59 WHEN - - 95 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN - 50 * + + ( 9 ) + - - 91 THEN NULL ELSE MAX ( 50 ) - - NULLIF ( 9, - - 22 ) END AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT - - 73 * + COUNT( * ) + - 95 - - 11
----
-11

skipif mysql # not compatible
query I rowsort label-5126
SELECT - - 73 * + COUNT ( * ) + - 95 - - 11
----
-11

query I rowsort
SELECT + - 67 + - + 10 * 15 AS col1
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL ( 61 ) + - + 59 + ( - COUNT( * ) ) * + 59 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL ( 61 ) + - + 59 + ( - COUNT ( * ) ) * + 59 AS col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-5129
SELECT ALL 32 + 52 DIV + 84 + - 39
----
-7

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL 32 + 52 / + 84 + - 39
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT - NULLIF ( - 67, - MAX( - + 42 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5130
SELECT - NULLIF ( - 67, - MAX ( - + 42 ) ) AS col2
----
67

query I rowsort
SELECT ALL - 27 * + 60
----
-1620

query I rowsort
SELECT + 55 + + 44 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT + COUNT( * ) + - ( + 19 ) * 99 * + 48 col2
----
-90287

skipif mysql # not compatible
query I rowsort label-5133
SELECT + COUNT ( * ) + - ( + 19 ) * 99 * + 48 col2
----
-90287

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5134
SELECT ALL - COUNT( * ) DIV COUNT( * ) DIV + 99 * - 25 + + - COUNT( * ) AS col1, 29 * 10 + 43 AS col2
----
-1
333

skipif mysql # not compatible
query II rowsort label-5134
SELECT ALL - COUNT ( * ) / COUNT ( * ) / + 99 * - 25 + + - COUNT ( * ) AS col1, 29 * 10 + 43 AS col2
----
-1
333

query I rowsort
SELECT ALL 1 * - - 61
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT ALL 71 DIV - 51 + COALESCE ( + - 9, - - ( + + 13 ) ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL 71 / - 51 + COALESCE ( + - 9, - - ( + + 13 ) ) AS col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5137
SELECT DISTINCT COUNT( * ) DIV + + 89 * + ( - 73 ) * + COUNT( * ) * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT COUNT ( * ) / + + 89 * + ( - 73 ) * + COUNT ( * ) * + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 55 * - + 94 * + 67 + 74
----
-346316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5139
SELECT - AVG ( DISTINCT + 51 ) * CAST( NULL AS SIGNED ) * - 28 / - 17 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT - AVG ( DISTINCT + 51 ) * CAST ( NULL AS INTEGER ) * - 28 / - 17 + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 66 * + 59 AS col0
----
3894

query I rowsort
SELECT DISTINCT 0 * + 64 AS col1
----
0

query I rowsort
SELECT ALL ( - 73 ) * + 11
----
-803

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT - 47 * - + SUM( ALL + 9 ) AS col2
----
423

skipif mysql # not compatible
query I rowsort label-5143
SELECT - 47 * - + SUM ( ALL + 9 ) AS col2
----
423

query I rowsort
SELECT ALL + 69 * - 37
----
-2553

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT + 17 * + 14 - + + 97 - + SUM( - 15 ) AS col0
----
156

skipif mysql # not compatible
query I rowsort label-5145
SELECT + 17 * + 14 - + + 97 - + SUM ( - 15 ) AS col0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-5146
SELECT + NULLIF ( + - 9, - 6 + + NULLIF ( + + 89, 93 ) + - + 70 / 30 * - - 85 + - 29 + - COUNT( * ) * - 12 * + - 67 ) col1, 31 * - 27
----
-9
-837

skipif mysql # not compatible
query II rowsort label-5146
SELECT + NULLIF ( + - 9, - 6 + + NULLIF ( + + 89, 93 ) + - + 70 / 30 * - - 85 + - 29 + - COUNT ( * ) * - 12 * + - 67 ) col1, 31 * - 27
----
-9
-837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5147
SELECT - + 45 * + CAST( + + 44 AS SIGNED ) + - 62 AS col2
----
-2042

skipif mysql # not compatible
query I rowsort label-5147
SELECT - + 45 * + CAST ( + + 44 AS INTEGER ) + - 62 AS col2
----
-2042

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT ALL - COUNT( * ) * 12
----
-12

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL - COUNT ( * ) * 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT - 6 * - ( + ( + - COUNT( * ) ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-5149
SELECT - 6 * - ( + ( + - COUNT ( * ) ) ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT + 29 * 72 * - 39 - 66 + 83 + - ( 43 ) * - 77 * + + COUNT( * )
----
-78104

skipif mysql # not compatible
query I rowsort label-5150
SELECT + 29 * 72 * - 39 - 66 + 83 + - ( 43 ) * - 77 * + + COUNT ( * )
----
-78104

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5151
SELECT ALL MAX( ALL - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL MAX ( ALL - - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT ALL + + 41 * + 78 + - + 59 DIV + + 68
----
3198

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL + + 41 * + 78 + - + 59 / + + 68
----
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - 63 * - CASE + 97 WHEN ( + COUNT( * ) ) THEN NULL WHEN - 20 THEN - COALESCE ( + + 8, 24 ) * + + 32 + 55 * - + 74 + - 77 + + 72 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT - 63 * - CASE + 97 WHEN ( + COUNT ( * ) ) THEN NULL WHEN - 20 THEN - COALESCE ( + + 8, 24 ) * + + 32 + 55 * - + 74 + - 77 + + 72 END AS col2
----
NULL

query I rowsort
SELECT ALL + 73 * - COALESCE ( - COALESCE ( 73, + 5 ), + ( + 27 ) ) * 94 + 8
----
500934

onlyif mysql # DIV for integer division: 
query I rowsort label-5155
SELECT - + 62 DIV 50
----
-1

skipif mysql # not compatible
query I rowsort label-5155
SELECT - + 62 / 50
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT ALL - ( - CASE + + ( COUNT( + 23 ) ) WHEN - 75 / 25 * 40 THEN 24 + + 57 + 46 * + 42 * + - 78 * - - 46 + 87 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL - ( - CASE + + ( COUNT ( + 23 ) ) WHEN - 75 / 25 * 40 THEN 24 + + 57 + 46 * + 42 * + - 78 * - - 46 + 87 END ) AS col0
----
NULL

query I rowsort
SELECT ALL - 82 + + - 6
----
-88

query I rowsort
SELECT - - 18 + - 87 * 11 + 65 AS col0
----
-874

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5159
SELECT - 38 / 33 * 98 * + 28 * - CASE - 57 WHEN + CAST( NULL AS DECIMAL ) THEN + 36 * 33 + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT - 38 / 33 * 98 * + 28 * - CASE - 57 WHEN + CAST ( NULL AS REAL ) THEN + 36 * 33 + 80 END
----
NULL

query I rowsort
SELECT + COALESCE ( - 96, - 92 ) + - 54 AS col1
----
-150

query I rowsort
SELECT DISTINCT + ( + 46 ) + - 12 AS col2
----
34

query I rowsort
SELECT ( - 14 ) col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5163
SELECT + COUNT( * ) * + ( 62 ), - CAST( NULL AS SIGNED ) - - + COUNT( * ) + + - 75 * 26 + - COALESCE ( 23, 46, + - 35 + + 42 + + - 17 - + 30 ) col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-5163
SELECT + COUNT ( * ) * + ( 62 ), - CAST ( NULL AS INTEGER ) - - + COUNT ( * ) + + - 75 * 26 + - COALESCE ( 23, 46, + - 35 + + 42 + + - 17 - + 30 ) col2
----
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ALL - - 20 + - - 63 * SUM( ALL - + 51 )
----
-3193

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL - - 20 + - - 63 * SUM ( ALL - + 51 )
----
-3193

query II rowsort
SELECT DISTINCT 25 AS col2, + 26 AS col0
----
25
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT DISTINCT 84 + - + MAX( ALL 78 ) col2
----
6

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT 84 + - + MAX ( ALL 78 ) col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT COUNT( * ) + + NULLIF ( - 64, - + 94 ) - - 20
----
-43

skipif mysql # not compatible
query I rowsort label-5167
SELECT COUNT ( * ) + + NULLIF ( - 64, - + 94 ) - - 20
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5168
SELECT ALL + CAST( - + 18 AS SIGNED ) * + ( + 34 ) * CASE - 60 WHEN - 57 THEN 74 WHEN - 96 * - 79 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL + CAST ( - + 18 AS INTEGER ) * + ( + 34 ) * CASE - 60 WHEN - 57 THEN 74 WHEN - 96 * - 79 THEN NULL END AS col1
----
NULL

query II rowsort
SELECT ALL 39, ( + - 88 ) AS col1
----
39
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5170
SELECT ALL - CAST( - 52 AS SIGNED ) * - + 38 * + 76
----
-150176

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL - CAST ( - 52 AS INTEGER ) * - + 38 * + 76
----
-150176

query I rowsort
SELECT 27 + + 5 * 18 + - 3
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5172
SELECT + 53 DIV + 13 - - COUNT( * ) + - 29 + - 10 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-5172
SELECT + 53 / + 13 - - COUNT ( * ) + - 29 + - 10 AS col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-5173
SELECT ALL 12 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL 12 / + 51
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5174
SELECT DISTINCT COUNT( * ) * - 20 * + + 76 * - + COUNT( * ) AS col0, 94
----
1520
94

skipif mysql # not compatible
query II rowsort label-5174
SELECT DISTINCT COUNT ( * ) * - 20 * + + 76 * - + COUNT ( * ) AS col0, 94
----
1520
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT SUM( 87 ) * - 60 AS col2
----
-5220

skipif mysql # not compatible
query I rowsort label-5175
SELECT SUM ( 87 ) * - 60 AS col2
----
-5220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5176
SELECT ( - 35 ) * - COUNT( ALL ( CAST( + 0 AS SIGNED ) ) ) + + 86
----
121

skipif mysql # not compatible
query I rowsort label-5176
SELECT ( - 35 ) * - COUNT ( ALL ( CAST ( + 0 AS INTEGER ) ) ) + + 86
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5177
SELECT ALL - 29 * - + COUNT( * ) DIV 45 - + 48 - - ( - COUNT( * ) ) * - + 48
----
0

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL - 29 * - + COUNT ( * ) / 45 - + 48 - - ( - COUNT ( * ) ) * - + 48
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5178
SELECT + 77 * 16 + + 0 * - COUNT( * ) + COUNT( * ) + - - 94 + 20 DIV + 6 + - COUNT( * ), COUNT( * ) AS col1
----
1329
1

skipif mysql # not compatible
query II rowsort label-5178
SELECT + 77 * 16 + + 0 * - COUNT ( * ) + COUNT ( * ) + - - 94 + 20 / + 6 + - COUNT ( * ), COUNT ( * ) AS col1
----
1329
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT - CASE - MAX( - 21 ) WHEN - 95 THEN NULL ELSE - 83 END - + ( - - 28 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5179
SELECT - CASE - MAX ( - 21 ) WHEN - 95 THEN NULL ELSE - 83 END - + ( - - 28 ) AS col2
----
55

query II rowsort
SELECT + 73, 32 AS col1
----
73
32

query I rowsort
SELECT - 67 - 80 * - ( 35 ) + 86 + + 31 AS col1
----
2850

query I rowsort
SELECT - 11 * - 27 * 36 AS col2
----
10692

query I rowsort
SELECT 82 * + + 12 - - 87 AS col0
----
1071

query II rowsort
SELECT DISTINCT - + 59, - 55 AS col2
----
-59
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT DISTINCT 99 + MAX( + - 26 )
----
73

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT 99 + MAX ( + - 26 )
----
73

query I rowsort
SELECT ALL - COALESCE ( + 32, + - 40 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT - - 43 * + 13 + - COUNT( * )
----
558

skipif mysql # not compatible
query I rowsort label-5187
SELECT - - 43 * + 13 + - COUNT ( * )
----
558

onlyif mysql # DIV for integer division: 
query I rowsort label-5188
SELECT ALL + 3 + - 25 + 17 DIV - ( + 64 )
----
-22

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL + 3 + - 25 + 17 / - ( + 64 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5189
SELECT 33 * - 99 + 70 + - 87 - + - 81 + + 31 / - - COALESCE ( 27, - + 60 + 50, - 94 + 0, - - 15 ) * + 52 + - COUNT( * ) * - MAX( DISTINCT + 10 ) * + 19 * - + 80 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5189
SELECT 33 * - 99 + 70 + - 87 - + - 81 + + 31 / - - COALESCE ( 27, - + 60 + 50, - 94 + 0, - - 15 ) * + 52 + - COUNT ( * ) * - MAX ( DISTINCT + 10 ) * + 19 * - + 80 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + + 97 + 59 + - 10 * - 32 AS col2
----
476

query I rowsort
SELECT - 83 + - + 15 - - 87
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT 30 + 98 + 4 * - 4 * + + ( + 93 ) + COUNT( * ) * + - 86
----
-1446

skipif mysql # not compatible
query I rowsort label-5192
SELECT 30 + 98 + 4 * - 4 * + + ( + 93 ) + COUNT ( * ) * + - 86
----
-1446

onlyif mysql # aggregate syntax: 
query II rowsort label-5193
SELECT - + COUNT( * ), 15 * - + NULLIF ( + COUNT( * ), + 42 ) AS col0
----
-1
-15

skipif mysql # not compatible
query II rowsort label-5193
SELECT - + COUNT ( * ), 15 * - + NULLIF ( + COUNT ( * ), + 42 ) AS col0
----
-1
-15

query II rowsort
SELECT 57 AS col1, 54 + 52
----
57
106

query I rowsort
SELECT - 10 + 28
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT DISTINCT COUNT( * ) + 51 * - 84 * - - 93 AS col1
----
-398411

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT COUNT ( * ) + 51 * - 84 * - - 93 AS col1
----
-398411

query I rowsort
SELECT ALL + 63 * - ( - 90 )
----
5670

query I rowsort
SELECT 37 + - 86
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT DISTINCT + 54 - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT + 54 - COUNT ( * )
----
53

query I rowsort
SELECT DISTINCT - 91 - - - NULLIF ( - 12, + 43 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT ALL MAX( ALL 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5201
SELECT ALL MAX ( ALL 32 ) AS col2
----
32

query I rowsort
SELECT 27 + 79
----
106

query I rowsort
SELECT 30 - + 60 * - 21 * + 98 col1
----
123510

query I rowsort
SELECT 46 * + 54 AS col0
----
2484

query I rowsort
SELECT ALL - 73 - - 31
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT DISTINCT - 19 DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT - 19 / - 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL MAX( - - 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL MAX ( - - 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT 62 + - + COALESCE ( - 72, 45 ) - + + COUNT( ALL - 71 ) col2
----
133

skipif mysql # not compatible
query I rowsort label-5208
SELECT 62 + - + COALESCE ( - 72, 45 ) - + + COUNT ( ALL - 71 ) col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT 65 - - + COALESCE ( - 80, - MIN( - 30 ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5209
SELECT 65 - - + COALESCE ( - 80, - MIN ( - 30 ) ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL 12 * COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL 12 * COUNT ( * )
----
12

query I rowsort
SELECT DISTINCT 30 * - 32
----
-960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5212
SELECT DISTINCT - 19 * + 94 DIV - - COUNT( * )
----
-1786

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT - 19 * + 94 / - - COUNT ( * )
----
-1786

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5213
SELECT 91 DIV - + 4, 83 col2, - - CAST( NULL AS SIGNED ) AS col0
----
-22
83
NULL

skipif mysql # not compatible
query III rowsort label-5213
SELECT 91 / - + 4, 83 col2, - - CAST ( NULL AS INTEGER ) AS col0
----
-22
83
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5214
SELECT ALL - 2 * COUNT( * ) * - - 11, 52 + + 7 * 59 * - - COUNT( + 79 ) AS col2
----
-22
465

skipif mysql # not compatible
query II rowsort label-5214
SELECT ALL - 2 * COUNT ( * ) * - - 11, 52 + + 7 * 59 * - - COUNT ( + 79 ) AS col2
----
-22
465

onlyif mysql # aggregate syntax: 
query II rowsort label-5215
SELECT DISTINCT + 47 * - COUNT( * ) AS col2, 21 AS col0
----
-47
21

skipif mysql # not compatible
query II rowsort label-5215
SELECT DISTINCT + 47 * - COUNT ( * ) AS col2, 21 AS col0
----
-47
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT SUM( 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5216
SELECT SUM ( 73 ) AS col0
----
73

query I rowsort
SELECT 50 + - + 49 * 3 col2
----
-97

query II rowsort
SELECT + ( + 0 ), 47 * 7 AS col2
----
0
329

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT ALL - COALESCE ( - COUNT( DISTINCT - 23 ), + - COUNT( * ) ) + + - 57
----
-56

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL - COALESCE ( - COUNT ( DISTINCT - 23 ), + - COUNT ( * ) ) + + - 57
----
-56

query I rowsort
SELECT DISTINCT 66 + 74
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5221
SELECT DISTINCT - CASE + 10 WHEN - CAST( NULL AS SIGNED ) THEN + 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT - CASE + 10 WHEN - CAST ( NULL AS INTEGER ) THEN + 58 END
----
NULL

query I rowsort
SELECT DISTINCT 10 + - - 75 AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT 9 - + - 30 DIV - - ( 44 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5223
SELECT 9 - + - 30 / - - ( 44 ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT + + SUM( DISTINCT 30 )
----
30

skipif mysql # not compatible
query I rowsort label-5224
SELECT + + SUM ( DISTINCT 30 )
----
30

query I rowsort
SELECT + + ( 73 )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT 55 DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-5226
SELECT 55 / 47
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT ALL - 91 + + CASE - 44 WHEN ( 65 ) THEN NULL WHEN + 43 * + + NULLIF ( - 83, - + 62 ) / 24 THEN - 39 * SUM( - + 52 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL - 91 + + CASE - 44 WHEN ( 65 ) THEN NULL WHEN + 43 * + + NULLIF ( - 83, - + 62 ) / 24 THEN - 39 * SUM ( - + 52 ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT + + COALESCE ( 49, - - SUM( DISTINCT - 93 ) * + 77 * + CASE WHEN NOT 49 IS NOT NULL THEN - ( - 61 ) END - + - COUNT( * ) + 1 * + 24 )
----
49

skipif mysql # not compatible
query I rowsort label-5228
SELECT + + COALESCE ( 49, - - SUM ( DISTINCT - 93 ) * + 77 * + CASE WHEN NOT 49 IS NOT NULL THEN - ( - 61 ) END - + - COUNT ( * ) + 1 * + 24 )
----
49

query I rowsort
SELECT ALL - 41 + - 7
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT COUNT( * ) * + - COUNT( * ) - 28 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-5230
SELECT COUNT ( * ) * + - COUNT ( * ) - 28 AS col2
----
-29

query I rowsort
SELECT ALL + 30 * - 87
----
-2610

query I rowsort
SELECT + 79 + + 10 AS col2
----
89

query I rowsort
SELECT - 84 * - - 11 * + 29
----
-26796

query I rowsort
SELECT + 55 + 2 AS col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5235
SELECT - CASE + - 44 WHEN + 61 + + ( + + 50 ) + + + 45 THEN - + 92 - 81 * 95 WHEN + SUM( + 65 ) THEN NULL END AS col2, - 83 AS col2
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-5235
SELECT - CASE + - 44 WHEN + 61 + + ( + + 50 ) + + + 45 THEN - + 92 - 81 * 95 WHEN + SUM ( + 65 ) THEN NULL END AS col2, - 83 AS col2
----
NULL
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-5236
SELECT - ( 68 ) + + - 0 AS col1, ( + COUNT( * ) ) col2
----
-68
1

skipif mysql # not compatible
query II rowsort label-5236
SELECT - ( 68 ) + + - 0 AS col1, ( + COUNT ( * ) ) col2
----
-68
1

query I rowsort
SELECT - 37 - + - 60
----
23

query I rowsort
SELECT ALL + 33 * - 23 col0
----
-759

onlyif mysql # aggregate syntax: 
query II rowsort label-5239
SELECT DISTINCT COUNT( * ), + 21 AS col1
----
1
21

skipif mysql # not compatible
query II rowsort label-5239
SELECT DISTINCT COUNT ( * ), + 21 AS col1
----
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT - COUNT( * ) + + 82 * 59 + + MAX( - COALESCE ( + 69, + 33 ) ) AS col1
----
4768

skipif mysql # not compatible
query I rowsort label-5240
SELECT - COUNT ( * ) + + 82 * 59 + + MAX ( - COALESCE ( + 69, + 33 ) ) AS col1
----
4768

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT - COUNT( * ) * - + 74
----
74

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT - COUNT ( * ) * - + 74
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5242
SELECT DISTINCT CASE - 39 WHEN 47 THEN - 44 WHEN + + 67 THEN NULL WHEN + COUNT( * ) THEN NULL END AS col1, 52
----
NULL
52

skipif mysql # not compatible
query II rowsort label-5242
SELECT DISTINCT CASE - 39 WHEN 47 THEN - 44 WHEN + + 67 THEN NULL WHEN + COUNT ( * ) THEN NULL END AS col1, 52
----
NULL
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5243
SELECT ALL NULLIF ( CAST( NULL AS DECIMAL ), + 12 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL NULLIF ( CAST ( NULL AS REAL ), + 12 ) AS col0
----
NULL

query I rowsort
SELECT - 95 * - 79
----
7505

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5245
SELECT + MAX( DISTINCT 32 ) + + - 58 - 9 DIV + - 48 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-5245
SELECT + MAX ( DISTINCT 32 ) + + - 58 - 9 / + - 48 AS col2
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5246
SELECT 30 col2, 17 DIV COUNT( * ) - + - COUNT( * ) AS col0
----
30
18

skipif mysql # not compatible
query II rowsort label-5246
SELECT 30 col2, 17 / COUNT ( * ) - + - COUNT ( * ) AS col0
----
30
18

query I rowsort
SELECT - 59 * + 22 AS col2
----
-1298

query I rowsort
SELECT - 64 * 17 col0
----
-1088

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL + NULLIF ( 19, - + COUNT( * ) ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL + NULLIF ( 19, - + COUNT ( * ) ) AS col1
----
19

query I rowsort
SELECT - 89 - 40 col1
----
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-5251
SELECT + COUNT( * ), 33 AS col1
----
1
33

skipif mysql # not compatible
query II rowsort label-5251
SELECT + COUNT ( * ), 33 AS col1
----
1
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5252
SELECT 41 * 79 DIV 76 + - ( 16 ) + + + 33 * 0 * - 62 * 56 + - 29 + COUNT( * ) + 98
----
96

skipif mysql # not compatible
query I rowsort label-5252
SELECT 41 * 79 / 76 + - ( 16 ) + + + 33 * 0 * - 62 * 56 + - 29 + COUNT ( * ) + 98
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL + 85 * + COUNT( * ) + + + 98 + 6 * + ( + - 82 ) * - + 45 * 50 AS col0
----
1107183

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL + 85 * + COUNT ( * ) + + + 98 + 6 * + ( + - 82 ) * - + 45 * 50 AS col0
----
1107183

query I rowsort
SELECT - - 34 * - - 66 + + 40 * + 86
----
5684

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5255
SELECT ALL - + 76 * + + 62 * - 26 + 75 + 21 * + COUNT( * ) + + 78 DIV - 34 + 15 * 19
----
122891

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL - + 76 * + + 62 * - 26 + 75 + 21 * + COUNT ( * ) + + 78 / - 34 + 15 * 19
----
122891

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL + + 88 * - MIN( 67 ) + - 17
----
-5913

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL + + 88 * - MIN ( 67 ) + - 17
----
-5913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5257
SELECT - + 80 + + - 46 + + 76 + - 89 - - CAST( - NULLIF ( - 70, 9 / + 64 * - - 32 * + CASE WHEN 31 IS NULL THEN + - NULLIF ( 9, - + 83 ) ELSE 96 END + + + 76 * + ( COUNT( * ) ) * + COALESCE ( 44, + + 99 / - 79 + + 42 ) ) AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-5257
SELECT - + 80 + + - 46 + + 76 + - 89 - - CAST ( - NULLIF ( - 70, 9 / + 64 * - - 32 * + CASE WHEN 31 IS NULL THEN + - NULLIF ( 9, - + 83 ) ELSE 96 END + + + 76 * + ( COUNT ( * ) ) * + COALESCE ( 44, + + 99 / - 79 + + 42 ) ) AS INTEGER )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT + + 5 * + - 56 + + COUNT( * ) + + 58 * - 76
----
-4687

skipif mysql # not compatible
query I rowsort label-5258
SELECT + + 5 * + - 56 + + COUNT ( * ) + + 58 * - 76
----
-4687

query I rowsort
SELECT + - 0 - - 65 AS col0
----
65

query I rowsort
SELECT ALL + 95 * - 22 + ( - ( - 49 ) ) * + - 12
----
-2678

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT - COUNT( * ) * + + 15 + - + 60 col1
----
-75

skipif mysql # not compatible
query I rowsort label-5261
SELECT - COUNT ( * ) * + + 15 + - + 60 col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5262
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 2 - + + CAST( + 97 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 2 - + + CAST ( + 97 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - ( 6 ) col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT - COALESCE ( + 10, + - COUNT( * ) ) + - ( 25 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-5264
SELECT - COALESCE ( + 10, + - COUNT ( * ) ) + - ( 25 ) AS col2
----
-35

query I rowsort
SELECT ALL ( 19 ) * 40
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT + + 73 * - 76 * - + 9 * + COUNT( DISTINCT + 73 ) AS col0
----
49932

skipif mysql # not compatible
query I rowsort label-5266
SELECT + + 73 * - 76 * - + 9 * + COUNT ( DISTINCT + 73 ) AS col0
----
49932

query I rowsort
SELECT DISTINCT + + ( + 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT - CASE - COUNT( * ) WHEN - 66 THEN NULL WHEN + - ( - - 44 ) + - - COALESCE ( - COUNT( * ), COUNT( * ) / 53, + 32 / - - 1 + + 63 ) THEN - 58 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT - CASE - COUNT ( * ) WHEN - 66 THEN NULL WHEN + - ( - - 44 ) + - - COALESCE ( - COUNT ( * ), COUNT ( * ) / 53, + 32 / - - 1 + + 63 ) THEN - 58 END AS col2
----
NULL

query I rowsort
SELECT - 96 + 96 * + 72 * + + 57 AS col1
----
393888

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT + 61 + - COUNT( * ) * + + COUNT( * ) + + 2 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5270
SELECT + 61 + - COUNT ( * ) * + + COUNT ( * ) + + 2 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL 67 * COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL 67 * COUNT ( * ) AS col0
----
67

query II rowsort
SELECT - 73 * 98, 65 AS col1
----
-7154
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5273
SELECT MAX( ALL + - CAST( 98 AS SIGNED ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-5273
SELECT MAX ( ALL + - CAST ( 98 AS INTEGER ) ) AS col0
----
-98

query II rowsort
SELECT DISTINCT 66 * 24, + 99 AS col2
----
1584
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5275
SELECT + MAX( ALL + 99 ) DIV 64
----
1

skipif mysql # not compatible
query I rowsort label-5275
SELECT + MAX ( ALL + 99 ) / 64
----
1

query I rowsort
SELECT ALL 1 + + 97 + + + 83 AS col2
----
181

query I rowsort
SELECT + 6 + + 3 + - 60 * - 49
----
2949

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT ALL - 2 + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL - 2 + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5279
SELECT + 53 + 80 + + 14 * 85 AS col1, - ( + COUNT( * ) )
----
1323
-1

skipif mysql # not compatible
query II rowsort label-5279
SELECT + 53 + 80 + + 14 * 85 AS col1, - ( + COUNT ( * ) )
----
1323
-1

query I rowsort
SELECT + 86 + 10 * COALESCE ( 85, + 33 ) + + 60
----
996

query I rowsort
SELECT + 91 - + 97
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT ALL 61 * COUNT( * ) - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL 61 * COUNT ( * ) - - COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT + SUM( + 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT + SUM ( + 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT + + NULLIF ( + 84, + MIN( 6 ) )
----
84

skipif mysql # not compatible
query I rowsort label-5284
SELECT + + NULLIF ( + 84, + MIN ( 6 ) )
----
84

query I rowsort
SELECT + 57 * - 66
----
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT + - MAX( 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5286
SELECT + - MAX ( 47 ) AS col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5287
SELECT + + COUNT( * ) DIV + 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5287
SELECT + + COUNT ( * ) / + 11 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT + 82 * + - COUNT( * ) + 40 col2
----
-42

skipif mysql # not compatible
query I rowsort label-5288
SELECT + 82 * + - COUNT ( * ) + 40 col2
----
-42

query II rowsort
SELECT 36 + + 21 AS col2, + 5 * + 14
----
57
70

query I rowsort
SELECT - ( 12 ) + + 11 + + - 45
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT ALL - - 99 DIV 69 - 90
----
-89

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - - 99 / 69 - 90
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5292
SELECT NULLIF ( COUNT( * ), - 44 * - CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5292
SELECT NULLIF ( COUNT ( * ), - 44 * - CAST ( NULL AS INTEGER ) )
----
1

query I rowsort
SELECT DISTINCT + + 49 - 11
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5294
SELECT DISTINCT + + 32 DIV + - 78 + - 26 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT + + 32 / + - 78 + - 26 AS col1
----
-26

query I rowsort
SELECT DISTINCT - + 95 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-5296
SELECT ALL + COUNT( * ) * - 79, - CASE 62 WHEN + - ( 42 ) THEN - + NULLIF ( COUNT( * ), COUNT( * ) * 84 / 4 - + 27 ) END AS col0
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-5296
SELECT ALL + COUNT ( * ) * - 79, - CASE 62 WHEN + - ( 42 ) THEN - + NULLIF ( COUNT ( * ), COUNT ( * ) * 84 / 4 - + 27 ) END AS col0
----
-79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT + COUNT( * ) * - 29 - CASE - 31 WHEN - 22 * 95 * + 15 THEN NULL WHEN 79 THEN 58 ELSE NULL END + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT + COUNT ( * ) * - 29 - CASE - 31 WHEN - 22 * 95 * + 15 THEN NULL WHEN 79 THEN 58 ELSE NULL END + + 85
----
NULL

query I rowsort
SELECT + 11 * + 26 - - 23 - + 98 * - 21 - 18
----
2349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT CAST( NULL AS SIGNED ) * 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT CAST ( NULL AS INTEGER ) * 43 AS col2
----
NULL

query I rowsort
SELECT + 96 + - 9 AS col2
----
87

query I rowsort
SELECT 46 * 42
----
1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5302
SELECT 82 * + - CAST( NULL AS SIGNED ) * - - COALESCE ( + + 18, 86 + + - 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5302
SELECT 82 * + - CAST ( NULL AS INTEGER ) * - - COALESCE ( + + 18, 86 + + - 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT DISTINCT - ( - COUNT( * ) ) * 8 + + 49
----
57

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT - ( - COUNT ( * ) ) * 8 + + 49
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5304
SELECT DISTINCT - 33 + - + CASE COUNT( * ) WHEN 19 * - 68 THEN 21 * + 76 * + 58 + + - COUNT( * ) END - - + 93 + + + AVG ( + - 48 ) + + MIN( + 81 ) * - COUNT( 31 ) + + + 97 * + 46 AS col1, 15
----
NULL
15

skipif mysql # not compatible
query II rowsort label-5304
SELECT DISTINCT - 33 + - + CASE COUNT ( * ) WHEN 19 * - 68 THEN 21 * + 76 * + 58 + + - COUNT ( * ) END - - + 93 + + + AVG ( + - 48 ) + + MIN ( + 81 ) * - COUNT ( 31 ) + + + 97 * + 46 AS col1, 15
----
NULL
15

query I rowsort
SELECT ALL - 15 + 33 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT 55 + - + 66 * COUNT( * ) + + - 29 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5306
SELECT 55 + - + 66 * COUNT ( * ) + + - 29 AS col0
----
-40

query I rowsort
SELECT 62 * + 72 AS col0
----
4464

query I rowsort
SELECT 0 - + + 97 + 22 * - 40 AS col2
----
-977

onlyif mysql # aggregate syntax: 
query II rowsort label-5309
SELECT ALL COUNT( * ) + + - 67 * - + 8 AS col1, - 47 + COALESCE ( - 69, - 82 ) - 6 * - ( - 62 ) * - COUNT( * ) + + 78 AS col1
----
537
334

skipif mysql # not compatible
query II rowsort label-5309
SELECT ALL COUNT ( * ) + + - 67 * - + 8 AS col1, - 47 + COALESCE ( - 69, - 82 ) - 6 * - ( - 62 ) * - COUNT ( * ) + + 78 AS col1
----
537
334

query I rowsort
SELECT ALL 6 + + 92 col2
----
98

query II rowsort
SELECT ALL 68 AS col1, 55 + 53
----
68
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT ALL COUNT( * ) + - 33 * - 77 AS col0
----
2542

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL COUNT ( * ) + - 33 * - 77 AS col0
----
2542

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT DISTINCT ( 40 ) DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT ( 40 ) / - 98 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5314
SELECT 87 + - 4 DIV 1 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5314
SELECT 87 + - 4 / 1 AS col0
----
83

query I rowsort
SELECT ( 68 ) * 52 AS col0
----
3536

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5316
SELECT CAST( NULL AS DECIMAL ) / 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5316
SELECT CAST ( NULL AS REAL ) / 20 AS col0
----
NULL

query I rowsort
SELECT 12 * - 92 AS col0
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT ALL - MAX( + 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL - MAX ( + 42 ) AS col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT CAST( NULL AS SIGNED ) - + 45 * + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT CAST ( NULL AS INTEGER ) - + 45 * + 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT COUNT( * ) * - 53 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5320
SELECT COUNT ( * ) * - 53 AS col2
----
-53

query I rowsort
SELECT 8 * - 23 + - 70 AS col0
----
-254

query I rowsort
SELECT 50 * + 76
----
3800

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT COUNT( * ) + 67 col2
----
68

skipif mysql # not compatible
query I rowsort label-5323
SELECT COUNT ( * ) + 67 col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5324
SELECT - 15 DIV COALESCE ( + 27, + ( + 75 ) * 56 ) + - COUNT( DISTINCT - 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-5324
SELECT - 15 / COALESCE ( + 27, + ( + 75 ) * 56 ) + - COUNT ( DISTINCT - 7 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5325
SELECT 82 * - COALESCE ( - 93, + SUM( DISTINCT 36 ) + - ( + 94 - - 89 ) DIV - COUNT( * ), NULLIF ( - 84, - 19 + + 94 ) ) AS col1
----
7626

skipif mysql # not compatible
query I rowsort label-5325
SELECT 82 * - COALESCE ( - 93, + SUM ( DISTINCT 36 ) + - ( + 94 - - 89 ) / - COUNT ( * ), NULLIF ( - 84, - 19 + + 94 ) ) AS col1
----
7626

query I rowsort
SELECT 56 + - 21 AS col0
----
35

query I rowsort
SELECT 66 + + 47 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL + 74 * + COALESCE ( 18, - COUNT( * ) ) AS col1
----
1332

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL + 74 * + COALESCE ( 18, - COUNT ( * ) ) AS col1
----
1332

onlyif mysql # DIV for integer division: 
query I rowsort label-5329
SELECT 72 DIV 2
----
36

skipif mysql # not compatible
query I rowsort label-5329
SELECT 72 / 2
----
36

query I rowsort
SELECT DISTINCT + 1 + - 45
----
-44

query I rowsort
SELECT ALL - 46 + - 9
----
-55

query I rowsort
SELECT DISTINCT + 56 * + 3
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT 85 + + MAX( ALL 3 )
----
88

skipif mysql # not compatible
query I rowsort label-5333
SELECT 85 + + MAX ( ALL 3 )
----
88

query I rowsort
SELECT ALL + 74 * 36 AS col0
----
2664

query I rowsort
SELECT 62 + 5 col2
----
67

query I rowsort
SELECT 0 + 79
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5337
SELECT 75 DIV 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5337
SELECT 75 / 92 AS col0
----
0

query I rowsort
SELECT NULLIF ( 19, 87 ) + 0
----
19

query I rowsort
SELECT ALL + 84 + + 8
----
92

query I rowsort
SELECT ALL + 11 * + 40
----
440

query I rowsort
SELECT 6 + 68 AS col2
----
74

query I rowsort
SELECT ALL - 39 + 95
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL + COUNT( DISTINCT 9 ) - - 72 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL + COUNT ( DISTINCT 9 ) - - 72 AS col0
----
73

query I rowsort
SELECT - 26 - 12 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT + COUNT( 79 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5345
SELECT + COUNT ( 79 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5346
SELECT NULLIF ( NULLIF ( + 86, COALESCE ( CAST( NULL AS SIGNED ), 58 ) + CASE 96 WHEN + 11 * - 27 THEN SUM( + 50 ) END / 10 ), - SUM( DISTINCT - 49 ) ) + 69 AS col2
----
155

skipif mysql # not compatible
query I rowsort label-5346
SELECT NULLIF ( NULLIF ( + 86, COALESCE ( CAST ( NULL AS INTEGER ), 58 ) + CASE 96 WHEN + 11 * - 27 THEN SUM ( + 50 ) END / 10 ), - SUM ( DISTINCT - 49 ) ) + 69 AS col2
----
155

query I rowsort
SELECT + 9 * 70 AS col2
----
630

query I rowsort
SELECT + - 13 + 9 col0
----
-4

query I rowsort
SELECT ALL + 7 * 52
----
364

query I rowsort
SELECT - - 27 + 63 AS col1
----
90

query I rowsort
SELECT + - 69 * 25 AS col1
----
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ALL + MIN( ALL ( 44 ) ) * COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL + MIN ( ALL ( 44 ) ) * COUNT ( * )
----
44

query I rowsort
SELECT + + CASE 61 WHEN - 44 + - 25 / - 52 THEN - 10 WHEN 36 + 18 THEN NULL END + 87 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5354
SELECT DISTINCT COALESCE ( + 54, + NULLIF ( 72, 46 * - COUNT( * ) + + 38 ) + COALESCE ( + CAST( NULL AS SIGNED ), - COUNT( * ) DIV - COUNT( * ) ) )
----
54

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT COALESCE ( + 54, + NULLIF ( 72, 46 * - COUNT ( * ) + + 38 ) + COALESCE ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) / - COUNT ( * ) ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT DISTINCT + SUM( 13 )
----
13

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT + SUM ( 13 )
----
13

query I rowsort
SELECT + 25 * 21
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + - COUNT( * ) + - 15
----
-16

skipif mysql # not compatible
query I rowsort label-5357
SELECT + - COUNT ( * ) + - 15
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT ALL - 31 / CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL - 31 / CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + ( ( + 48 ) )
----
48

query I rowsort
SELECT DISTINCT 38 * 85 * - 28 AS col0
----
-90440

query I rowsort
SELECT ALL ( + - 80 ) * + 58 + 42
----
-4598

query I rowsort
SELECT + ( ( 58 ) )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT COUNT( * ) * + 40 - + 51 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5363
SELECT COUNT ( * ) * + 40 - + 51 AS col2
----
-11

query I rowsort
SELECT - 48 * 40
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT COUNT( DISTINCT 15 )
----
1

skipif mysql # not compatible
query I rowsort label-5365
SELECT COUNT ( DISTINCT 15 )
----
1

query I rowsort
SELECT - 85 * - 94 + 86 AS col2
----
8076

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT DISTINCT 35 * + - 7 - MIN( DISTINCT + 41 - 94 ) col2
----
-192

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT 35 * + - 7 - MIN ( DISTINCT + 41 - 94 ) col2
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT DISTINCT - COALESCE ( - 1, - COUNT( * ), 23 ) * - 30
----
-30

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT - COALESCE ( - 1, - COUNT ( * ), 23 ) * - 30
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5369
SELECT - 65 + - - 39 DIV + 16
----
-63

skipif mysql # not compatible
query I rowsort label-5369
SELECT - 65 + - - 39 / + 16
----
-63

query I rowsort
SELECT ALL 70 - 87
----
-17

query I rowsort
SELECT + ( - 63 ) + 56 * - 99
----
-5607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5372
SELECT - CAST( - + NULLIF ( 84, 27 ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-5372
SELECT - CAST ( - + NULLIF ( 84, 27 ) AS INTEGER )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT + COUNT( * ) + - - 27 - + 85 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-5373
SELECT + COUNT ( * ) + - - 27 - + 85 AS col1
----
-57

query I rowsort
SELECT - 93 - + 6
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5375
SELECT - + COUNT( * ) * + + 2 * + MIN( - ( 6 ) ) - COUNT( * ) DIV - 8 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-5375
SELECT - + COUNT ( * ) * + + 2 * + MIN ( - ( 6 ) ) - COUNT ( * ) / - 8 AS col0
----
12

query I rowsort
SELECT - - 42 * - ( + ( - 65 ) ) + - 58
----
2672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT - - 84 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT - - 84 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 78 * + 17 AS col2
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - - 73 * + - COUNT( * ) - + 54 * + 62 AS col1
----
-3421

skipif mysql # not compatible
query I rowsort label-5379
SELECT - - 73 * + - COUNT ( * ) - + 54 * + 62 AS col1
----
-3421

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT ALL + 67 * - + 44 + COUNT( * ) * ( 75 ) AS col1
----
-2873

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL + 67 * - + 44 + COUNT ( * ) * ( 75 ) AS col1
----
-2873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT - + CAST( - 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-5381
SELECT - + CAST ( - 23 AS INTEGER )
----
23

query I rowsort
SELECT - - 23 + - 71
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT - CASE - 61 WHEN + 99 + + 42 THEN 34 * 25 WHEN CASE + 74 WHEN 54 * 51 THEN NULL WHEN 93 * + 40 THEN NULL ELSE 86 + CASE + 55 WHEN 77 * + 11 + NULLIF ( - 63, + 60 ) THEN NULL WHEN - 74 THEN NULL WHEN 71 THEN - CASE 9 WHEN + 4 THEN 55 WHEN 11 + 48 THEN 68 - 54 * - 89 END END END - 20 / + COUNT( * ) THEN 2 * 62 WHEN COUNT( * ) + 2 * 3 THEN + COUNT( + 71 ) END * 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT - CASE - 61 WHEN + 99 + + 42 THEN 34 * 25 WHEN CASE + 74 WHEN 54 * 51 THEN NULL WHEN 93 * + 40 THEN NULL ELSE 86 + CASE + 55 WHEN 77 * + 11 + NULLIF ( - 63, + 60 ) THEN NULL WHEN - 74 THEN NULL WHEN 71 THEN - CASE 9 WHEN + 4 THEN 55 WHEN 11 + 48 THEN 68 - 54 * - 89 END END END - 20 / + COUNT ( * ) THEN 2 * 62 WHEN COUNT ( * ) + 2 * 3 THEN + COUNT ( + 71 ) END * 65 AS col0
----
NULL

query I rowsort
SELECT - - 21 + - 3 + + CASE 4 WHEN - AVG ( DISTINCT - 23 ) THEN NULL ELSE + 92 END * - 38
----
-3478

query I rowsort
SELECT + COALESCE ( - - 12, - ( 64 ) * + COALESCE ( + 0, + 66 * - 35 ) ) * - 66
----
-792

query I rowsort
SELECT ALL - COALESCE ( - 89, 38 + + 30 ) AS col0
----
89

query I rowsort
SELECT - + 46 + 14 AS col1
----
-32

query I rowsort
SELECT - - ( + 44 ) + + 47
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT ALL - 37 DIV 67 + 14
----
14

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - 37 / 67 + 14
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5390
SELECT - COUNT( DISTINCT + 13 ) DIV - NULLIF ( CAST( 62 AS SIGNED ), 65 ) - + 5
----
-5

skipif mysql # not compatible
query I rowsort label-5390
SELECT - COUNT ( DISTINCT + 13 ) / - NULLIF ( CAST ( 62 AS INTEGER ), 65 ) - + 5
----
-5

query I rowsort
SELECT DISTINCT + - ( - 44 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5392
SELECT ALL - 87 DIV 7 * 12 + + COUNT( ALL 81 ) AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL - 87 / 7 * 12 + + COUNT ( ALL 81 ) AS col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT + + COUNT( + ( 65 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5393
SELECT + + COUNT ( + ( 65 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5394
SELECT ALL + 8 DIV - 16 + - 63
----
-63

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL + 8 / - 16 + - 63
----
-63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5395
SELECT ( + 84 ) DIV 5 + CAST( - 54 AS SIGNED ) * 91
----
-4898

skipif mysql # not compatible
query I rowsort label-5395
SELECT ( + 84 ) / 5 + CAST ( - 54 AS INTEGER ) * 91
----
-4898

query I rowsort
SELECT + COALESCE ( + 4, - 93 * - 30 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT + ( + MAX( ALL + 8 ) ) - + 37 * - 12 AS col0
----
452

skipif mysql # not compatible
query I rowsort label-5397
SELECT + ( + MAX ( ALL + 8 ) ) - + 37 * - 12 AS col0
----
452

onlyif mysql # DIV for integer division: 
query I rowsort label-5398
SELECT 20 * + 16 + 11 DIV - 93
----
320

skipif mysql # not compatible
query I rowsort label-5398
SELECT 20 * + 16 + 11 / - 93
----
320

query I rowsort
SELECT + 48 + - NULLIF ( - - 1, 81 ) * 15
----
33

query I rowsort
SELECT - 60 * - 97 * + - 74 * 38
----
-16365840

query I rowsort
SELECT - 81 * - 83 * + - ( 9 ) * + 14 + 2
----
-847096

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT ALL 94 * 61 + + - COUNT( - ( + 88 ) ) * - 13 col0
----
5747

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL 94 * 61 + + - COUNT ( - ( + 88 ) ) * - 13 col0
----
5747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT + CASE - 23 WHEN - 88 + 29 THEN + CAST( 50 AS SIGNED ) WHEN 73 THEN NULL ELSE 56 END AS col2
----
56

skipif mysql # not compatible
query I rowsort label-5403
SELECT + CASE - 23 WHEN - 88 + 29 THEN + CAST ( 50 AS INTEGER ) WHEN 73 THEN NULL ELSE 56 END AS col2
----
56

query I rowsort
SELECT DISTINCT 56 * + + 96 - - 31
----
5407

query I rowsort
SELECT ALL ( - 28 ) * - + 60 * 60 col0
----
100800

query I rowsort
SELECT + 89 + 62 AS col2
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5407
SELECT ALL CAST( NULL AS SIGNED ) * - + NULLIF ( + 96, - 75 ) - - ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL CAST ( NULL AS INTEGER ) * - + NULLIF ( + 96, - 75 ) - - ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT ( + - 56 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT - COUNT( * ) * + 7 + + 68 col0
----
61

skipif mysql # not compatible
query I rowsort label-5409
SELECT - COUNT ( * ) * + 7 + + 68 col0
----
61

query II rowsort
SELECT ALL + 80 AS col0, ( - 39 ) AS col0
----
80
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5411
SELECT + 53 * 93 / + CASE + COUNT( * ) WHEN - 80 THEN + 78 * - AVG ( DISTINCT - 41 ) WHEN 32 + - ( CAST( 35 AS SIGNED ) ) * COALESCE ( - 24 * - 11, 82 ) THEN NULL END * - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT + 53 * 93 / + CASE + COUNT ( * ) WHEN - 80 THEN + 78 * - AVG ( DISTINCT - 41 ) WHEN 32 + - ( CAST ( 35 AS INTEGER ) ) * COALESCE ( - 24 * - 11, 82 ) THEN NULL END * - 38 AS col2
----
NULL

query I rowsort
SELECT + 59 * + 61 * + 31
----
111569

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT 96 + + ( - + MIN( - 53 ) )
----
149

skipif mysql # not compatible
query I rowsort label-5413
SELECT 96 + + ( - + MIN ( - 53 ) )
----
149

query I rowsort
SELECT DISTINCT 82 * 71
----
5822

query I rowsort
SELECT 44 + + 93 col2
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5416
SELECT - 30 * 38 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT - 30 * 38 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT ALL 0 * - + MIN( 2 ) * 73 + 24 * + ( + 97 ) AS col1
----
2328

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL 0 * - + MIN ( 2 ) * 73 + 24 * + ( + 97 ) AS col1
----
2328

query I rowsort
SELECT 36 + - 76 + + 21
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT DISTINCT - - 40 * - CAST( 53 AS SIGNED ) * - 69 col2
----
146280

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT - - 40 * - CAST ( 53 AS INTEGER ) * - 69 col2
----
146280

query II rowsort
SELECT 48 AS col2, - 39 AS col1
----
48
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT - + CASE + MAX( DISTINCT + 53 ) WHEN + 27 THEN 84 WHEN + 80 + - 4 THEN - 51 * + 19 WHEN + ( 63 ) * + 99 THEN - 76 + 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5421
SELECT - + CASE + MAX ( DISTINCT + 53 ) WHEN + 27 THEN 84 WHEN + 80 + - 4 THEN - 51 * + 19 WHEN + ( 63 ) * + 99 THEN - 76 + 6 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5422
SELECT - 30, - CAST( NULL AS SIGNED ) + + COUNT( * ) + - 73 AS col2
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-5422
SELECT - 30, - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - 73 AS col2
----
-30
NULL

query I rowsort
SELECT + 33 * + - 5
----
-165

query I rowsort
SELECT 59 + - 60 + + CASE 63 WHEN 53 + + 45 THEN NULL WHEN - 95 - - 44 THEN 69 + 23 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - - COALESCE ( - 30, 28 ) + - 32 AS col0
----
-62

query I rowsort
SELECT + 47 * - 32 - + - 15 AS col2
----
-1489

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT DISTINCT - + ( + SUM( - + 29 ) ) * COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT - + ( + SUM ( - + 29 ) ) * COUNT ( * )
----
29

query I rowsort
SELECT DISTINCT + 62 + - 8 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ALL + COUNT( * ) + + 12 * + + ( COUNT( * ) )
----
13

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL + COUNT ( * ) + + 12 * + + ( COUNT ( * ) )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5430
SELECT ALL - 40 + - - 27 * - NULLIF ( - 27, + ( COUNT( * ) ) / - CAST( + COUNT( * ) / 6 + - 97 / ( + 77 + + CAST( NULL AS SIGNED ) ) AS DECIMAL ) ) * 42 AS col2
----
30578

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL - 40 + - - 27 * - NULLIF ( - 27, + ( COUNT ( * ) ) / - CAST ( + COUNT ( * ) / 6 + - 97 / ( + 77 + + CAST ( NULL AS INTEGER ) ) AS REAL ) ) * 42 AS col2
----
30578

query I rowsort
SELECT ALL + 48 + - 31 * + 17
----
-479

query I rowsort
SELECT ALL - 87 + + 16 * + 39
----
537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5433
SELECT 56 * + + CAST( + - 27 AS SIGNED )
----
-1512

skipif mysql # not compatible
query I rowsort label-5433
SELECT 56 * + + CAST ( + - 27 AS INTEGER )
----
-1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5434
SELECT DISTINCT - MIN( 13 ) + - - CAST( NULL AS SIGNED ) - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5434
SELECT DISTINCT - MIN ( 13 ) + - - CAST ( NULL AS INTEGER ) - 78
----
NULL

query I rowsort
SELECT ALL + 15 + - + 91 - 93 AS col0
----
-169

query I rowsort
SELECT DISTINCT - 43 * - 38 * NULLIF ( - - 79, - 46 + 23 ) AS col2
----
129086

query I rowsort
SELECT DISTINCT - 70 - + + 17 + + + ( - - CASE 74 WHEN - CASE WHEN ( NULL ) IS NULL THEN + 97 ELSE NULL END THEN + 43 WHEN - 89 THEN NULL ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( + + 74 ) AS col2
----
-74

query I rowsort
SELECT DISTINCT ( 95 ) - 54
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT + SUM( 37 ) * + ( - MAX( ALL + 11 ) ) - + COUNT( * ) * 38 col2
----
-445

skipif mysql # not compatible
query I rowsort label-5440
SELECT + SUM ( 37 ) * + ( - MAX ( ALL + 11 ) ) - + COUNT ( * ) * 38 col2
----
-445

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5441
SELECT COUNT( * ) DIV + - COUNT( * ), 65 AS col2
----
-1
65

skipif mysql # not compatible
query II rowsort label-5441
SELECT COUNT ( * ) / + - COUNT ( * ), 65 AS col2
----
-1
65

query I rowsort
SELECT 0 + + 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT 80 * - 89 + - 29 + - COUNT( * )
----
-7150

skipif mysql # not compatible
query I rowsort label-5443
SELECT 80 * - 89 + - 29 + - COUNT ( * )
----
-7150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5444
SELECT COUNT( * ) DIV 56 * 88
----
0

skipif mysql # not compatible
query I rowsort label-5444
SELECT COUNT ( * ) / 56 * 88
----
0

query I rowsort
SELECT DISTINCT - ( + COALESCE ( + 65, + + 85, 78 * 26 ) ) col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT - ( + CAST( - + 58 AS SIGNED ) )
----
58

skipif mysql # not compatible
query I rowsort label-5446
SELECT - ( + CAST ( - + 58 AS INTEGER ) )
----
58

query I rowsort
SELECT + COALESCE ( + - 6, - + 54, - - 19 ) AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5448
SELECT ALL COALESCE ( ( ( - 95 ) ), + CAST( NULL AS SIGNED ) ) + + 46
----
-49

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL COALESCE ( ( ( - 95 ) ), + CAST ( NULL AS INTEGER ) ) + + 46
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5449
SELECT - 4 * - + 31 + - 28 DIV 39 DIV 82 + + 49
----
173

skipif mysql # not compatible
query I rowsort label-5449
SELECT - 4 * - + 31 + - 28 / 39 / 82 + + 49
----
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5450
SELECT - - 22 * 53 DIV + 6 + COUNT( * ) AS col1
----
195

skipif mysql # not compatible
query I rowsort label-5450
SELECT - - 22 * 53 / + 6 + COUNT ( * ) AS col1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT DISTINCT 57 + + CASE + 58 WHEN + 11 THEN NULL ELSE - COUNT( * ) END
----
56

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT 57 + + CASE + 58 WHEN + 11 THEN NULL ELSE - COUNT ( * ) END
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL - NULLIF ( + MAX( ALL - - 63 ), - 93 - 34 * COUNT( * ) ) + + 13
----
-50

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL - NULLIF ( + MAX ( ALL - - 63 ), - 93 - 34 * COUNT ( * ) ) + + 13
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - NULLIF ( - 76, + COUNT( * ) + - - 30 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5453
SELECT - NULLIF ( - 76, + COUNT ( * ) + - - 30 ) AS col1
----
76

query I rowsort
SELECT DISTINCT + 32 + + ( + 29 ) col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL + MAX( DISTINCT - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL + MAX ( DISTINCT - 72 )
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5456
SELECT ( + 28 ) DIV - - MAX( DISTINCT - 43 ) * + 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5456
SELECT ( + 28 ) / - - MAX ( DISTINCT - 43 ) * + 27 AS col1
----
0

query I rowsort
SELECT DISTINCT + 52 + 58
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT - + COUNT( ALL - + 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-5458
SELECT - + COUNT ( ALL - + 2 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5459
SELECT ALL - ( - COALESCE ( 76, - 80, 79 ) ) DIV 22
----
3

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL - ( - COALESCE ( 76, - 80, 79 ) ) / 22
----
3

query I rowsort
SELECT 33 + 65
----
98

query I rowsort
SELECT - 3 * - 83 AS col1
----
249

query I rowsort
SELECT 65 + ( 33 ) + - 21 + - - 45
----
122

query I rowsort
SELECT 1 * 64
----
64

query I rowsort
SELECT ALL + 29 * 53 * 64
----
98368

query I rowsort
SELECT DISTINCT 60 * 44
----
2640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5466
SELECT - CASE - - 61 WHEN + 83 * - - COALESCE ( - + 23, + MIN( 55 ) + ( 30 ) ) THEN 64 DIV + 12 + 26 ELSE NULLIF ( 44, 20 ) * - 69 END * 34 + COUNT( * ) * 12
----
103236

skipif mysql # not compatible
query I rowsort label-5466
SELECT - CASE - - 61 WHEN + 83 * - - COALESCE ( - + 23, + MIN ( 55 ) + ( 30 ) ) THEN 64 / + 12 + 26 ELSE NULLIF ( 44, 20 ) * - 69 END * 34 + COUNT ( * ) * 12
----
103236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT ALL - CAST( 51 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL - CAST ( 51 AS INTEGER )
----
-51

query I rowsort
SELECT DISTINCT - NULLIF ( - + 69, - - 87 * + + 17 + - + 40 * - 22 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT MIN( DISTINCT - 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5469
SELECT MIN ( DISTINCT - 69 ) AS col0
----
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5470
SELECT 19 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT 19 + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( + - 12 )
----
12

query I rowsort
SELECT - 59 + + + 61 AS col0
----
2

query I rowsort
SELECT - 35 + ( - - 70 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL + MIN( + - 96 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL + MIN ( + - 96 ) AS col1
----
-96

query I rowsort
SELECT - 47 * + - 49
----
2303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5476
SELECT DISTINCT + COUNT( * ) AS col0, + 83 - + COUNT( * ) * + 26 * + - 5 + + CAST( NULL AS SIGNED ) * - 52
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5476
SELECT DISTINCT + COUNT ( * ) AS col0, + 83 - + COUNT ( * ) * + 26 * + - 5 + + CAST ( NULL AS INTEGER ) * - 52
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5477
SELECT ALL + CAST( + 72 AS SIGNED ) * - 57 AS col2
----
-4104

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL + CAST ( + 72 AS INTEGER ) * - 57 AS col2
----
-4104

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT - 99 + 53 - - 75 * - COUNT( + 53 ) - - 26
----
-95

skipif mysql # not compatible
query I rowsort label-5478
SELECT - 99 + 53 - - 75 * - COUNT ( + 53 ) - - 26
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-5479
SELECT ALL + 22 DIV + 67 * 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL + 22 / + 67 * 91 AS col0
----
0

query I rowsort
SELECT - 17 * + 41
----
-697

query I rowsort
SELECT DISTINCT + 47 * 81
----
3807

query I rowsort
SELECT - 88 + 65 - - 24 AS col2
----
1

query I rowsort
SELECT DISTINCT + 97 + - 9 * - - 35
----
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT - COUNT( * ) + + + 72
----
71

skipif mysql # not compatible
query I rowsort label-5484
SELECT - COUNT ( * ) + + + 72
----
71

query I rowsort
SELECT + 76 + - 32 col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5486
SELECT - 14 AS col2, + COUNT( * ) * - COUNT( * )
----
-14
-1

skipif mysql # not compatible
query II rowsort label-5486
SELECT - 14 AS col2, + COUNT ( * ) * - COUNT ( * )
----
-14
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL - CASE - MIN( ALL - ( - 98 ) ) WHEN 83 + - 46 * 32 THEN MIN( DISTINCT + 10 ) - + 40 END + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL - CASE - MIN ( ALL - ( - 98 ) ) WHEN 83 + - 46 * 32 THEN MIN ( DISTINCT + 10 ) - + 40 END + 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT - MIN( + + 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-5488
SELECT - MIN ( + + 17 )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5489
SELECT ALL + 73 + + + 42 * + 16 * - 60 + - + 28 DIV 41
----
-40247

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL + 73 + + + 42 * + 16 * - 60 + - + 28 / 41
----
-40247

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT - + COUNT( - + COALESCE ( + - 62, - 79 ) ) + + + 16 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5490
SELECT - + COUNT ( - + COALESCE ( + - 62, - 79 ) ) + + + 16 AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5491
SELECT + 51 + - 89 DIV - COUNT( * ) AS col0
----
140

skipif mysql # not compatible
query I rowsort label-5491
SELECT + 51 + - 89 / - COUNT ( * ) AS col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT + + 34 * 50 + + COUNT( * ) * + 3 * + 95 * 3
----
2555

skipif mysql # not compatible
query I rowsort label-5492
SELECT + + 34 * 50 + + COUNT ( * ) * + 3 * + 95 * 3
----
2555

query I rowsort
SELECT + ( + 76 ) + 47 col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT - 4 * 55 - + + 41 + - COUNT( * ) * - 81 * - 82 + - 68
----
-6971

skipif mysql # not compatible
query I rowsort label-5494
SELECT - 4 * 55 - + + 41 + - COUNT ( * ) * - 81 * - 82 + - 68
----
-6971

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT + + COUNT( * ) + 43
----
44

skipif mysql # not compatible
query I rowsort label-5495
SELECT + + COUNT ( * ) + 43
----
44

query I rowsort
SELECT + - 51 + + 52 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT ALL MIN( DISTINCT - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL MIN ( DISTINCT - 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT - COUNT( + 94 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5498
SELECT - COUNT ( + 94 ) AS col2
----
-1

query I rowsort
SELECT + 26 + - 57
----
-31

query I rowsort
SELECT DISTINCT + 70 - - 13
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT + ( - - COUNT( * ) ) * - - 56
----
56

skipif mysql # not compatible
query I rowsort label-5501
SELECT + ( - - COUNT ( * ) ) * - - 56
----
56

query I rowsort
SELECT - CASE - 98 WHEN + - 91 THEN - - 51 / - 96 END
----
NULL

query I rowsort
SELECT ALL 19 - - 11 AS col2
----
30

query II rowsort
SELECT ALL 26, - 62 AS col2
----
26
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT + 66 * - 15 * + MAX( ALL + 22 ) col2
----
-21780

skipif mysql # not compatible
query I rowsort label-5505
SELECT + 66 * - 15 * + MAX ( ALL + 22 ) col2
----
-21780

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5506
SELECT + 83 DIV - CAST( 53 AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5506
SELECT + 83 / - CAST ( 53 AS INTEGER ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5507
SELECT + COALESCE ( CASE WHEN NOT ( NULL ) = ( NULL ) THEN - COUNT( * ) ELSE - 98 - - CAST( NULL AS SIGNED ) END, - 42, 1 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5507
SELECT + COALESCE ( CASE WHEN NOT ( NULL ) = ( NULL ) THEN - COUNT ( * ) ELSE - 98 - - CAST ( NULL AS INTEGER ) END, - 42, 1 ) AS col1
----
-42

query II rowsort
SELECT + 40, + ( + 71 ) AS col0
----
40
71

query II rowsort
SELECT ALL + 61 AS col1, + 22
----
61
22

query I rowsort
SELECT + ( 34 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT DISTINCT 71 * COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT 71 * COUNT ( * ) AS col1
----
71

query II rowsort
SELECT ALL + 51, - 84 * - - 47 + - 99 - + 35 * + 52 AS col0
----
51
-5867

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL + NULLIF ( + + 83, - - 30 ) * - 15 * - MAX( 26 ) * COUNT( DISTINCT 95 ) + - 98 AS col0
----
32272

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + NULLIF ( + + 83, - - 30 ) * - 15 * - MAX ( 26 ) * COUNT ( DISTINCT 95 ) + - 98 AS col0
----
32272

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT - MAX( DISTINCT 42 ) * - 14 + 66
----
654

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT - MAX ( DISTINCT 42 ) * - 14 + 66
----
654

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT ALL + COALESCE ( + COUNT( * ), - COUNT( * ), - 15 )
----
1

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL + COALESCE ( + COUNT ( * ), - COUNT ( * ), - 15 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5516
SELECT DISTINCT + 8 * + - CAST( NULL AS SIGNED ) + COALESCE ( MAX( + ( - + 38 ) ), + 66 + 42, + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT + 8 * + - CAST ( NULL AS INTEGER ) + COALESCE ( MAX ( + ( - + 38 ) ), + 66 + 42, + 66 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5517
SELECT ALL + 25 * 91 * + - 81 + - 75, MIN( + 4 ) AS col0
----
-184350
4

skipif mysql # not compatible
query II rowsort label-5517
SELECT ALL + 25 * 91 * + - 81 + - 75, MIN ( + 4 ) AS col0
----
-184350
4

query I rowsort
SELECT 27 * 34 * 96 + + 17 AS col2
----
88145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5519
SELECT - + NULLIF ( + + 53, - 97 + 60 ) * 50 * COUNT( * ) DIV + 76 + + 45 + - 80 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-5519
SELECT - + NULLIF ( + + 53, - 97 + 60 ) * 50 * COUNT ( * ) / + 76 + + 45 + - 80 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-5520
SELECT ALL + + 16 AS col0, CASE - 21 WHEN - - 30 / + 86 THEN - 97 * 9 ELSE + COUNT( 2 ) END * 29
----
16
29

skipif mysql # not compatible
query II rowsort label-5520
SELECT ALL + + 16 AS col0, CASE - 21 WHEN - - 30 / + 86 THEN - 97 * 9 ELSE + COUNT ( 2 ) END * 29
----
16
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT - 90 + - MIN( ALL + 12 )
----
-102

skipif mysql # not compatible
query I rowsort label-5521
SELECT - 90 + - MIN ( ALL + 12 )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT SUM( DISTINCT - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-5522
SELECT SUM ( DISTINCT - 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT DISTINCT - COUNT( * ) * - 73 * + 73 + + + ( + - 92 ) + COUNT( * ) * ( 23 * + 1 ) AS col1
----
5260

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT - COUNT ( * ) * - 73 * + 73 + + + ( + - 92 ) + COUNT ( * ) * ( 23 * + 1 ) AS col1
----
5260

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT DISTINCT + + 70 * + MIN( DISTINCT + + 24 ) + + 48 AS col2
----
1728

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT + + 70 * + MIN ( DISTINCT + + 24 ) + + 48 AS col2
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT ALL 91 * - COALESCE ( + + 40, 78, + + COUNT( * ) ) + + 67 * 93
----
2591

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL 91 * - COALESCE ( + + 40, 78, + + COUNT ( * ) ) + + 67 * 93
----
2591

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT + 82 * - 91 * + COUNT( * ) - + 49 AS col1
----
-7511

skipif mysql # not compatible
query I rowsort label-5526
SELECT + 82 * - 91 * + COUNT ( * ) - + 49 AS col1
----
-7511

onlyif mysql # DIV for integer division: 
query I rowsort label-5527
SELECT DISTINCT + - 11 * 18 DIV + - 29 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT + - 11 * 18 / + - 29 AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5528
SELECT ALL + + 61 * + 11 + - - CASE + 82 WHEN - 95 THEN 4 * - 16 + + 51 WHEN + 89 - - 15 THEN - CAST( SUM( - 7 ) AS SIGNED ) + - 24 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL + + 61 * + 11 + - - CASE + 82 WHEN - 95 THEN 4 * - 16 + + 51 WHEN + 89 - - 15 THEN - CAST ( SUM ( - 7 ) AS INTEGER ) + - 24 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5529
SELECT ALL - CAST( NULL AS SIGNED ) * + + 85 - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 85 - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 36 * COALESCE ( + + 18, - 34 ) AS col2
----
-648

onlyif mysql # aggregate syntax: 
query II rowsort label-5531
SELECT ALL 66 AS col2, + ( + CASE - 57 WHEN 91 + - 72 THEN NULL WHEN COUNT( * ) + 13 THEN - 91 * + ( - 97 * - 93 ) END )
----
66
NULL

skipif mysql # not compatible
query II rowsort label-5531
SELECT ALL 66 AS col2, + ( + CASE - 57 WHEN 91 + - 72 THEN NULL WHEN COUNT ( * ) + 13 THEN - 91 * + ( - 97 * - 93 ) END )
----
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT + - ( 64 ) - + COALESCE ( + + MAX( + 23 ), - ( 98 ) * 33 + COUNT( * ) ) + 65 * - 40 AS col2
----
-2687

skipif mysql # not compatible
query I rowsort label-5532
SELECT + - ( 64 ) - + COALESCE ( + + MAX ( + 23 ), - ( 98 ) * 33 + COUNT ( * ) ) + 65 * - 40 AS col2
----
-2687

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5533
SELECT DISTINCT - 58 DIV COUNT( * ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT - 58 / COUNT ( * ) AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5534
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col1, - 24 DIV - 41 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-5534
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - 24 / - 41 AS col0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5535
SELECT DISTINCT - 11 DIV + 26 * MAX( - 77 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT - 11 / + 26 * MAX ( - 77 ) col1
----
0

query I rowsort
SELECT NULLIF ( - - 97, 18 ) * + + 81
----
7857

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT MIN( DISTINCT - - 46 ) + 32
----
78

skipif mysql # not compatible
query I rowsort label-5537
SELECT MIN ( DISTINCT - - 46 ) + 32
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ( COUNT( ALL 47 ) ) - + - ( - + 21 ) + + 11
----
-9

skipif mysql # not compatible
query I rowsort label-5538
SELECT ( COUNT ( ALL 47 ) ) - + - ( - + 21 ) + + 11
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT ALL CASE + 84 WHEN + ( - + 10 ) + - MIN( + 26 ) THEN + 47 WHEN 47 THEN - 28 END * + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL CASE + 84 WHEN + ( - + 10 ) + - MIN ( + 26 ) THEN + 47 WHEN 47 THEN - 28 END * + 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5540
SELECT ALL CAST( NULL AS SIGNED ) + - + 14 AS col1, 58 / - 31 * - ( + 2 ) * + MAX( 64 ) + + 58 * 29 + - CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5540
SELECT ALL CAST ( NULL AS INTEGER ) + - + 14 AS col1, 58 / - 31 * - ( + 2 ) * + MAX ( 64 ) + + 58 * 29 + - CAST ( NULL AS REAL )
----
NULL
NULL

query I rowsort
SELECT ALL - CASE + 22 WHEN - 40 THEN NULL ELSE ( + - ( - 47 ) ) END + + 64 * 4
----
209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5542
SELECT COUNT( * ) + CAST( - - COUNT( * ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-5542
SELECT COUNT ( * ) + CAST ( - - COUNT ( * ) AS INTEGER )
----
2

query I rowsort
SELECT ALL 82 + + ( + 9 ) * + - 88
----
-710

query I rowsort
SELECT 54 + ( - 5 ) AS col0
----
49

query I rowsort
SELECT 25 * - 68
----
-1700

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT 60 + - COUNT( * ) * - + CASE - + 92 WHEN 92 + - 25 THEN + + 75 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT 60 + - COUNT ( * ) * - + CASE - + 92 WHEN 92 + - 25 THEN + + 75 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT ALL + 97 * - 84 * MAX( - - 74 ) AS col1
----
-602952

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL + 97 * - 84 * MAX ( - - 74 ) AS col1
----
-602952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT ALL - CASE 57 WHEN - 51 THEN + COALESCE ( + 24, - - NULLIF ( - + CAST( 80 AS SIGNED ), NULLIF ( 98, 62 * 29 ) * 36 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL - CASE 57 WHEN - 51 THEN + COALESCE ( + 24, - - NULLIF ( - + CAST ( 80 AS INTEGER ), NULLIF ( 98, 62 * 29 ) * 36 ) ) END AS col1
----
NULL

query I rowsort
SELECT + 75 * 93 AS col2
----
6975

query I rowsort
SELECT + 35 * + 3 + 87
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT ALL 27 + 96 + - - COUNT( * ) AS col1
----
124

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL 27 + 96 + - - COUNT ( * ) AS col1
----
124

query I rowsort
SELECT ALL 67 * ( 90 ) AS col1
----
6030

query I rowsort
SELECT DISTINCT + 45 * + 88 + + 22 col1
----
3982

query I rowsort
SELECT ALL 94 - 23 * 61
----
-1309

query I rowsort
SELECT ALL 7 - - 88
----
95

query I rowsort
SELECT 8 - - + 73 AS col2
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5557
SELECT CAST( NULL AS DECIMAL ) + - 39 + - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT CAST ( NULL AS REAL ) + - 39 + - 68 AS col0
----
NULL

query I rowsort
SELECT - ( + - 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT + 74 + + + 15 + - + MAX( DISTINCT 29 ) * - 92 + + 55 * - COUNT( * ) * 12 AS col2
----
2097

skipif mysql # not compatible
query I rowsort label-5559
SELECT + 74 + + + 15 + - + MAX ( DISTINCT 29 ) * - 92 + + 55 * - COUNT ( * ) * 12 AS col2
----
2097

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT - 13 * + COUNT( * ) col0
----
-13

skipif mysql # not compatible
query I rowsort label-5560
SELECT - 13 * + COUNT ( * ) col0
----
-13

query I rowsort
SELECT ALL - 29 * - ( - 81 )
----
-2349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5562
SELECT + 49 + 54 * - COUNT( * ) + COALESCE ( COUNT( * ), - 28, - + 33 DIV - 46, 23 )
----
-4

skipif mysql # not compatible
query I rowsort label-5562
SELECT + 49 + 54 * - COUNT ( * ) + COALESCE ( COUNT ( * ), - 28, - + 33 / - 46, 23 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT ALL - COUNT( * ) * - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL - COUNT ( * ) * - COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5564
SELECT ALL 68, + COUNT( * ) AS col1
----
68
1

skipif mysql # not compatible
query II rowsort label-5564
SELECT ALL 68, + COUNT ( * ) AS col1
----
68
1

query II rowsort
SELECT - 72 AS col2, - 61 col0
----
-72
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5566
SELECT 19 DIV - MAX( DISTINCT + ( - - 24 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5566
SELECT 19 / - MAX ( DISTINCT + ( - - 24 ) )
----
0

query I rowsort
SELECT ALL - 98 * - - 74
----
-7252

query I rowsort
SELECT 90 * + 39 AS col2
----
3510

query I rowsort
SELECT 26 + 75 + + 14 AS col2
----
115

query II rowsort
SELECT 44 AS col2, 89 + + + 98 * - 85
----
44
-8241

query II rowsort
SELECT 14 AS col2, - 69
----
14
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT 9 DIV NULLIF ( 53, + 78 )
----
0

skipif mysql # not compatible
query I rowsort label-5572
SELECT 9 / NULLIF ( 53, + 78 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL - 62 + + COALESCE ( MAX( ( 32 ) ), - + 31 ) + + - 2 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - 62 + + COALESCE ( MAX ( ( 32 ) ), - + 31 ) + + - 2 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT 16 * + 5 * - + 20 * - 37 * - ( - - 1 ) * COUNT( 32 ) * ( 99 * + 63 + - COUNT( * ) )
----
-369171200

skipif mysql # not compatible
query I rowsort label-5574
SELECT 16 * + 5 * - + 20 * - 37 * - ( - - 1 ) * COUNT ( 32 ) * ( 99 * + 63 + - COUNT ( * ) )
----
-369171200

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL + NULLIF ( - 82, + - 75 + - ( 76 ) + + 40 ) + 11 - - SUM( CASE 55 WHEN - 44 THEN NULL ELSE 79 END ) col1
----
8

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL + NULLIF ( - 82, + - 75 + - ( 76 ) + + 40 ) + 11 - - SUM ( CASE 55 WHEN - 44 THEN NULL ELSE 79 END ) col1
----
8

query I rowsort
SELECT DISTINCT - 81 + - 67
----
-148

query II rowsort
SELECT DISTINCT 95 AS col2, - 82
----
95
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5578
SELECT 35 DIV + 76 * + + 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5578
SELECT 35 / + 76 * + + 56 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT ALL - ( + - 84 ) + - COUNT( * ) + + - 37
----
46

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL - ( + - 84 ) + - COUNT ( * ) + + - 37
----
46

query I rowsort
SELECT 15 - - 68 * + 47 * - ( + COALESCE ( + 28, + 95 ) ) + - ( 17 )
----
-89490

onlyif mysql # DIV for integer division: 
query II rowsort label-5581
SELECT DISTINCT - 86 AS col2, + 42 * + + ( 83 ) - 28 DIV + - 10
----
-86
3488

skipif mysql # not compatible
query II rowsort label-5581
SELECT DISTINCT - 86 AS col2, + 42 * + + ( 83 ) - 28 / + - 10
----
-86
3488

onlyif mysql # aggregate syntax: 
query II rowsort label-5582
SELECT COUNT( * ) AS col2, - 74 + - - 82
----
1
8

skipif mysql # not compatible
query II rowsort label-5582
SELECT COUNT ( * ) AS col2, - 74 + - - 82
----
1
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5583
SELECT ALL 11 * + COUNT( * ) * - + 79 * + ( + 59 ) * 42 AS col1, ( - 66 ) AS col2
----
-2153382
-66

skipif mysql # not compatible
query II rowsort label-5583
SELECT ALL 11 * + COUNT ( * ) * - + 79 * + ( + 59 ) * 42 AS col1, ( - 66 ) AS col2
----
-2153382
-66

query I rowsort
SELECT DISTINCT - - 70 * - ( - + 13 )
----
910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5585
SELECT ALL 12 - - - 33 DIV + COUNT( ALL + ( - 24 ) ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL 12 - - - 33 / + COUNT ( ALL + ( - 24 ) ) col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT + + ( + - ( + - ( - MAX( + ( 63 ) ) ) ) ) * 58 - 95 + + 31 * 10 AS col2
----
-3439

skipif mysql # not compatible
query I rowsort label-5586
SELECT + + ( + - ( + - ( - MAX ( + ( 63 ) ) ) ) ) * 58 - 95 + + 31 * 10 AS col2
----
-3439

onlyif mysql # DIV for integer division: 
query II rowsort label-5587
SELECT ALL - 94 col1, - CASE + 99 WHEN 22 THEN 57 * 45 DIV - - 86 + + - 45 WHEN - 13 THEN NULL ELSE - 25 END * + 4 AS col2
----
-94
100

skipif mysql # not compatible
query II rowsort label-5587
SELECT ALL - 94 col1, - CASE + 99 WHEN 22 THEN 57 * 45 / - - 86 + + - 45 WHEN - 13 THEN NULL ELSE - 25 END * + 4 AS col2
----
-94
100

query II rowsort
SELECT ALL - - 20 * - 27 - - + 56 AS col2, - 6 AS col1
----
-484
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT DISTINCT + - COUNT( - 4 ) - 39 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT + - COUNT ( - 4 ) - 39 AS col2
----
-40

query II rowsort
SELECT ALL - 84, - 72 * - + 26 col0
----
-84
1872

query I rowsort
SELECT ALL - ( - 44 ) - 89 AS col2
----
-45

query I rowsort
SELECT + CASE - 16 WHEN - + 77 THEN NULL WHEN + - 44 THEN - 89 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT NULLIF ( SUM( ALL + 82 ), 81 * - COALESCE ( + MAX( + - 23 ), + 42 / 82 ) + 13 ) * 54 + + ( + 92 ) AS col2
----
4520

skipif mysql # not compatible
query I rowsort label-5593
SELECT NULLIF ( SUM ( ALL + 82 ), 81 * - COALESCE ( + MAX ( + - 23 ), + 42 / 82 ) + 13 ) * 54 + + ( + 92 ) AS col2
----
4520

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT + 31 * COALESCE ( + - COUNT( * ), - ( + 22 ), - 47 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-5594
SELECT + 31 * COALESCE ( + - COUNT ( * ), - ( + 22 ), - 47 ) AS col2
----
-31

query I rowsort
SELECT COALESCE ( - - 25, - + 63 ) + + + ( - + 89 ) * 63 AS col0
----
-5582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5596
SELECT + - 19 * - 31 * + 14 + + + ( - 69 ) DIV 79 * + - 40 - - + COUNT( * ) + + 89 * + SUM( + 52 )
----
12875

skipif mysql # not compatible
query I rowsort label-5596
SELECT + - 19 * - 31 * + 14 + + + ( - 69 ) / 79 * + - 40 - - + COUNT ( * ) + + 89 * + SUM ( + 52 )
----
12875

query I rowsort
SELECT DISTINCT + 91 * - 54 AS col1
----
-4914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5598
SELECT + 88 + - + 27 + ( - CAST( - - 31 AS SIGNED ) )
----
30

skipif mysql # not compatible
query I rowsort label-5598
SELECT + 88 + - + 27 + ( - CAST ( - - 31 AS INTEGER ) )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5599
SELECT ALL 67 / - CAST( NULL AS SIGNED ) * - COUNT( * ) * 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL 67 / - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 2 AS col0
----
NULL

query I rowsort
SELECT ALL 41 * - 17
----
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT COUNT( * ) * - 65
----
-65

skipif mysql # not compatible
query I rowsort label-5601
SELECT COUNT ( * ) * - 65
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-5602
SELECT ALL - + 81 AS col0, + 1 + + 68 * + 20 * + ( + 14 ) * + 25 + 52 + + MAX( 63 ) * + 60 AS col1
----
-81
479833

skipif mysql # not compatible
query II rowsort label-5602
SELECT ALL - + 81 AS col0, + 1 + + 68 * + 20 * + ( + 14 ) * + 25 + 52 + + MAX ( 63 ) * + 60 AS col1
----
-81
479833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5603
SELECT DISTINCT 85 * + 90 * 13 DIV COUNT( * ) * - COUNT( * ) * + + 60 + ( - 29 )
----
-5967029

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT 85 * + 90 * 13 / COUNT ( * ) * - COUNT ( * ) * + + 60 + ( - 29 )
----
-5967029

query I rowsort
SELECT DISTINCT - + 90 col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5605
SELECT ALL - + CASE 57 WHEN - - NULLIF ( - CASE + MIN( DISTINCT 58 ) WHEN + 14 + + COUNT( 69 ) + - 33 THEN 97 + + 65 END, + CAST( COUNT( * ) AS SIGNED ) ) / 84 THEN NULL WHEN - 11 + - CASE - CAST( NULL AS SIGNED ) WHEN 21 THEN 41 * + 57 ELSE NULL END THEN 13 * 0 + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL - + CASE 57 WHEN - - NULLIF ( - CASE + MIN ( DISTINCT 58 ) WHEN + 14 + + COUNT ( 69 ) + - 33 THEN 97 + + 65 END, + CAST ( COUNT ( * ) AS INTEGER ) ) / 84 THEN NULL WHEN - 11 + - CASE - CAST ( NULL AS INTEGER ) WHEN 21 THEN 41 * + 57 ELSE NULL END THEN 13 * 0 + - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ( + - NULLIF ( 36, + + ( 9 ) + 53 ) ) * + 64 - + 70 + 80 AS col2
----
-2294

query I rowsort
SELECT ALL - 39 * 19
----
-741

query I rowsort
SELECT + 78 - 80 + - 3
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5609
SELECT - COUNT( - + 50 ), + 50 AS col1
----
-1
50

skipif mysql # not compatible
query II rowsort label-5609
SELECT - COUNT ( - + 50 ), + 50 AS col1
----
-1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL COUNT( * ) + + + 94
----
95

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL COUNT ( * ) + + + 94
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT + 31 * - NULLIF ( - - 0, + 41 * 41 + - + COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5611
SELECT + 31 * - NULLIF ( - - 0, + 41 * 41 + - + COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT ALL - MIN( ALL + - 64 ) + 41 * COUNT( * ) * - ( - 61 )
----
2565

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL - MIN ( ALL + - 64 ) + 41 * COUNT ( * ) * - ( - 61 )
----
2565

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5613
SELECT + 24 - CAST( 42 AS SIGNED ) * - 34 AS col0, CASE 51 WHEN + - 45 THEN - 98 ELSE NULL END + + + 82
----
1452
NULL

skipif mysql # not compatible
query II rowsort label-5613
SELECT + 24 - CAST ( 42 AS INTEGER ) * - 34 AS col0, CASE 51 WHEN + - 45 THEN - 98 ELSE NULL END + + + 82
----
1452
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5614
SELECT DISTINCT COUNT( - - 44 ) AS col0, - ( + ( - - 13 ) ) * + - 57 * 83 - - + 92 + + 56 AS col1
----
1
61651

skipif mysql # not compatible
query II rowsort label-5614
SELECT DISTINCT COUNT ( - - 44 ) AS col0, - ( + ( - - 13 ) ) * + - 57 * 83 - - + 92 + + 56 AS col1
----
1
61651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5615
SELECT ALL 6 + 22 DIV 30 - + 81 DIV + - COUNT( * ) * + COUNT( ALL - - 83 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL 6 + 22 / 30 - + 81 / + - COUNT ( * ) * + COUNT ( ALL - - 83 ) AS col0
----
87

query I rowsort
SELECT DISTINCT - 49 + + 68 - - - 69 + + 72 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5617
SELECT ALL - SUM( DISTINCT ( + + 86 ) ) * + 98 - - CAST( 17 AS SIGNED ) + + - 12 * + 6 AS col2
----
-8483

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL - SUM ( DISTINCT ( + + 86 ) ) * + 98 - - CAST ( 17 AS INTEGER ) + + - 12 * + 6 AS col2
----
-8483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5618
SELECT DISTINCT SUM( + ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT SUM ( + ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT DISTINCT - ( - 15 ) * 38 * + - 69 + - - COALESCE ( SUM( 69 ), - 33 )
----
-39261

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT - ( - 15 ) * 38 * + - 69 + - - COALESCE ( SUM ( 69 ), - 33 )
----
-39261

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT - 47 - - ( + COUNT( * ) ) + + - 62 * 24 AS col1
----
-1534

skipif mysql # not compatible
query I rowsort label-5620
SELECT - 47 - - ( + COUNT ( * ) ) + + - 62 * 24 AS col1
----
-1534

query I rowsort
SELECT - 17 + 82
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5622
SELECT - COUNT( * ) DIV - + 12
----
0

skipif mysql # not compatible
query I rowsort label-5622
SELECT - COUNT ( * ) / - + 12
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5623
SELECT ALL + 32 - 57 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL + 32 - 57 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5624
SELECT DISTINCT COALESCE ( - 62, + 54 * - 66 * - COUNT( * ) - - 27, - - 72 ) * CAST( + + CAST( 5 AS SIGNED ) AS SIGNED ) AS col0
----
-310

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT COALESCE ( - 62, + 54 * - 66 * - COUNT ( * ) - - 27, - - 72 ) * CAST ( + + CAST ( 5 AS INTEGER ) AS INTEGER ) AS col0
----
-310

query I rowsort
SELECT - 11 + - - 38
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5626
SELECT DISTINCT + CASE + - 23 WHEN - ( - AVG ( DISTINCT - 47 ) ) THEN 27 DIV - 28 - + COUNT( * ) WHEN 75 THEN NULL ELSE + 58 + 4 END DIV COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT + CASE + - 23 WHEN - ( - AVG ( DISTINCT - 47 ) ) THEN 27 / - 28 - + COUNT ( * ) WHEN 75 THEN NULL ELSE + 58 + 4 END / COUNT ( * ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT DISTINCT + - MAX( + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT + - MAX ( + 54 )
----
-54

query I rowsort
SELECT + 29 + - 56 * - - 42 AS col0
----
-2323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5629
SELECT ALL - 35 * COALESCE ( - NULLIF ( + ( - COALESCE ( - + 58, - + 41 * + 49 * 10 ) ), 47 * + COUNT( * ) + - ( + 46 ) * ( + 97 ) ), - SUM( ALL - 59 ), - CAST( 56 AS SIGNED ) * 55 )
----
2030

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL - 35 * COALESCE ( - NULLIF ( + ( - COALESCE ( - + 58, - + 41 * + 49 * 10 ) ), 47 * + COUNT ( * ) + - ( + 46 ) * ( + 97 ) ), - SUM ( ALL - 59 ), - CAST ( 56 AS INTEGER ) * 55 )
----
2030

query I rowsort
SELECT DISTINCT - + 48 * 1 + - 3 - - ( - 25 ) + - + 44
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-5631
SELECT + - 74 * 12 DIV - 23 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5631
SELECT + - 74 * 12 / - 23 AS col0
----
38

query I rowsort
SELECT DISTINCT + + CASE + - 88 WHEN - 10 THEN 60 + - 60 ELSE 4 + 60 END AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL - COUNT( 69 ) * + 95 + - + 42 + + 36
----
-101

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL - COUNT ( 69 ) * + 95 + - + 42 + + 36
----
-101

query I rowsort
SELECT - ( - 12 ) * 25 col0
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT SUM( - - 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5635
SELECT SUM ( - - 51 ) AS col0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT + 31 DIV + 21
----
1

skipif mysql # not compatible
query I rowsort label-5636
SELECT + 31 / + 21
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT DISTINCT - NULLIF ( + + COUNT( * ), CASE + 21 WHEN 86 / - 93 * - + 9 THEN NULL WHEN + 61 * - 6 * - 37 + + 29 THEN - 0 * - 73 - 41 ELSE NULL END ) * 94 + - 78 * - 21
----
1544

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT - NULLIF ( + + COUNT ( * ), CASE + 21 WHEN 86 / - 93 * - + 9 THEN NULL WHEN + 61 * - 6 * - 37 + + 29 THEN - 0 * - 73 - 41 ELSE NULL END ) * 94 + - 78 * - 21
----
1544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5638
SELECT DISTINCT + 89 DIV COUNT( * ) * + 95
----
8455

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT + 89 / COUNT ( * ) * + 95
----
8455

onlyif mysql # DIV for integer division: 
query I rowsort label-5639
SELECT DISTINCT ( 16 ) * 22 + + 80 + 54 - - - 5 + + 14 + + 1 + + + 63 * + 57 * + COALESCE ( 88, - 50 ) * 25 DIV 2 col1
----
3950596

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT ( 16 ) * 22 + + 80 + 54 - - - 5 + + 14 + + 1 + + + 63 * + 57 * + COALESCE ( 88, - 50 ) * 25 / 2 col1
----
3950596

query I rowsort
SELECT + 84 * 87
----
7308

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL COUNT( ALL + + 38 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL COUNT ( ALL + + 38 ) AS col2
----
1

query I rowsort
SELECT - 2 * 71 + - 44 AS col0
----
-186

query I rowsort
SELECT DISTINCT COALESCE ( + - 8, - 80, ( COALESCE ( - 33, + 22 ) ) - + 50 ) + - 90 AS col0
----
-98

query II rowsort
SELECT ALL 32 AS col2, + ( - + 30 )
----
32
-30

query I rowsort
SELECT ALL - 63 + + - 96 + - 41 * + 32 AS col2
----
-1471

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT - CASE + COALESCE ( + - 76, + COUNT( * ), - 41 ) WHEN - AVG ( - 86 ) THEN - 60 * - - 12 WHEN COUNT( * ) THEN 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT - CASE + COALESCE ( + - 76, + COUNT ( * ), - 41 ) WHEN - AVG ( - 86 ) THEN - 60 * - - 12 WHEN COUNT ( * ) THEN 59 END
----
NULL

query I rowsort
SELECT ALL 29 - + 52 AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5648
SELECT - CAST( - + 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-5648
SELECT - CAST ( - + 26 AS INTEGER )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT + COUNT( * ) * 48 * + 46 AS col2
----
2208

skipif mysql # not compatible
query I rowsort label-5649
SELECT + COUNT ( * ) * 48 * + 46 AS col2
----
2208

query I rowsort
SELECT DISTINCT + 27 * + 8
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5651
SELECT DISTINCT 61 AS col1, CAST( NULL AS SIGNED ) + + 12 AS col2
----
61
NULL

skipif mysql # not compatible
query II rowsort label-5651
SELECT DISTINCT 61 AS col1, CAST ( NULL AS INTEGER ) + + 12 AS col2
----
61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ALL COUNT( ALL - 8 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL COUNT ( ALL - 8 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT DISTINCT MIN( + - 65 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT MIN ( + - 65 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT - 86 * - COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5654
SELECT - 86 * - COUNT ( * ) AS col0
----
86

query I rowsort
SELECT + 30 - + 79 col1
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5656
SELECT - COUNT( * ) * 27 + + + COUNT( * ) DIV 20
----
-27

skipif mysql # not compatible
query I rowsort label-5656
SELECT - COUNT ( * ) * 27 + + + COUNT ( * ) / 20
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-5657
SELECT ALL + - 52 * - MIN( + 31 ) * - - 10 - + 61 AS col1, - 30 AS col1
----
16059
-30

skipif mysql # not compatible
query II rowsort label-5657
SELECT ALL + - 52 * - MIN ( + 31 ) * - - 10 - + 61 AS col1, - 30 AS col1
----
16059
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5658
SELECT - SUM( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5658
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5659
SELECT + - NULLIF ( + 80, - 64 + - + 90 ) DIV + 67
----
-1

skipif mysql # not compatible
query I rowsort label-5659
SELECT + - NULLIF ( + 80, - 64 + - + 90 ) / + 67
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5660
SELECT DISTINCT + - 1 AS col0, - ( - SUM( ALL - 11 ) )
----
-1
-11

skipif mysql # not compatible
query II rowsort label-5660
SELECT DISTINCT + - 1 AS col0, - ( - SUM ( ALL - 11 ) )
----
-1
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT - + SUM( DISTINCT - 94 ) * + 52 + + 81
----
4969

skipif mysql # not compatible
query I rowsort label-5661
SELECT - + SUM ( DISTINCT - 94 ) * + 52 + + 81
----
4969

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5662
SELECT ALL - COUNT( - + 81 ) DIV + 24 + + ( 41 ) + - + COUNT( * ) * + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL - COUNT ( - + 81 ) / + 24 + + ( 41 ) + - + COUNT ( * ) * + + COUNT ( * )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5663
SELECT ALL + 42 DIV COUNT( ALL + + 98 ) * + 4 - 84 * + 69 AS col0
----
-5628

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL + 42 / COUNT ( ALL + + 98 ) * + 4 - 84 * + 69 AS col0
----
-5628

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT DISTINCT + + ( MAX( ALL + 44 ) )
----
44

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT + + ( MAX ( ALL + 44 ) )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5665
SELECT ALL - MAX( - 71 ) + - CAST( - 50 AS SIGNED ) * - 96 * - - COUNT( + 94 ) AS col1
----
-4729

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL - MAX ( - 71 ) + - CAST ( - 50 AS INTEGER ) * - 96 * - - COUNT ( + 94 ) AS col1
----
-4729

query II rowsort
SELECT ALL + + 73 + 21 - - 78 AS col1, 60
----
172
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5667
SELECT + 64 * - 50 + 85 + + - ( + 18 ) + - 35 * - - 81 DIV - COUNT( * ) AS col2
----
-298

skipif mysql # not compatible
query I rowsort label-5667
SELECT + 64 * - 50 + 85 + + - ( + 18 ) + - 35 * - - 81 / - COUNT ( * ) AS col2
----
-298

onlyif mysql # aggregate syntax: 
query II rowsort label-5668
SELECT + 68 * ( + 55 ), - NULLIF ( 85, - 36 * + ( MIN( + 68 ) ) ) - + 13 * 10 AS col0
----
3740
-215

skipif mysql # not compatible
query II rowsort label-5668
SELECT + 68 * ( + 55 ), - NULLIF ( 85, - 36 * + ( MIN ( + 68 ) ) ) - + 13 * 10 AS col0
----
3740
-215

onlyif mysql # DIV for integer division: 
query I rowsort label-5669
SELECT 54 + - - 37 + - 59 DIV + + 55
----
90

skipif mysql # not compatible
query I rowsort label-5669
SELECT 54 + - - 37 + - 59 / + + 55
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5670
SELECT COUNT( * ) * + CAST( NULL AS DECIMAL ) - COALESCE ( 18, + 12, - 3 + CAST( COUNT( * ) AS SIGNED ) * 93 + ( + 74 ) + + ( 0 ) * 91 ) - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5670
SELECT COUNT ( * ) * + CAST ( NULL AS REAL ) - COALESCE ( 18, + 12, - 3 + CAST ( COUNT ( * ) AS INTEGER ) * 93 + ( + 74 ) + + ( 0 ) * 91 ) - 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT - 43 * 47 + + COUNT( + 59 ) + + 30 - - 1
----
-1989

skipif mysql # not compatible
query I rowsort label-5671
SELECT - 43 * 47 + + COUNT ( + 59 ) + + 30 - - 1
----
-1989

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT COUNT( * ) * - + 68
----
-68

skipif mysql # not compatible
query I rowsort label-5672
SELECT COUNT ( * ) * - + 68
----
-68

query I rowsort
SELECT ALL + 3 * - ( 30 ) AS col0
----
-90

query I rowsort
SELECT DISTINCT ( - 98 ) + - 57
----
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT - 98 * 57 + 71 DIV 41 AS col0
----
-5585

skipif mysql # not compatible
query I rowsort label-5675
SELECT - 98 * 57 + 71 / 41 AS col0
----
-5585

onlyif mysql # aggregate syntax: 
query II rowsort label-5676
SELECT COUNT( * ) * - 92 AS col1, - ( 64 ) AS col0
----
-92
-64

skipif mysql # not compatible
query II rowsort label-5676
SELECT COUNT ( * ) * - 92 AS col1, - ( 64 ) AS col0
----
-92
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT COUNT( * ) + + + 64 + - 7 col2
----
58

skipif mysql # not compatible
query I rowsort label-5677
SELECT COUNT ( * ) + + + 64 + - 7 col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5678
SELECT 73 AS col2, CAST( NULL AS SIGNED ) * - + 62
----
73
NULL

skipif mysql # not compatible
query II rowsort label-5678
SELECT 73 AS col2, CAST ( NULL AS INTEGER ) * - + 62
----
73
NULL

query I rowsort
SELECT ALL 88 * + 6 * + 83 * 17 col1
----
745008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5680
SELECT COALESCE ( + ( + NULLIF ( + ( 27 ), + COUNT( * ) - - 63 ) ), CASE - + 23 WHEN - 17 * 13 * - 73 + + CAST( NULL AS SIGNED ) + COUNT( * ) * COALESCE ( - COALESCE ( + 84, + CAST( NULL AS SIGNED ) - - 6 ) * 24 + 84, CAST( NULL AS SIGNED ) ) THEN + 74 END + 48 ) * - 15 AS col1
----
-405

skipif mysql # not compatible
query I rowsort label-5680
SELECT COALESCE ( + ( + NULLIF ( + ( 27 ), + COUNT ( * ) - - 63 ) ), CASE - + 23 WHEN - 17 * 13 * - 73 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) * COALESCE ( - COALESCE ( + 84, + CAST ( NULL AS INTEGER ) - - 6 ) * 24 + 84, CAST ( NULL AS INTEGER ) ) THEN + 74 END + 48 ) * - 15 AS col1
----
-405

onlyif mysql # DIV for integer division: 
query I rowsort label-5681
SELECT ALL + 41 DIV + 44 * 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL + 41 / + 44 * 83 AS col1
----
0

query I rowsort
SELECT ALL 6 * + 98
----
588

onlyif mysql # DIV for integer division: 
query I rowsort label-5683
SELECT DISTINCT - 32 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT - 32 / - 68
----
0

query II rowsort
SELECT ALL 56 col1, 6 - 2 * + - 26
----
56
58

query I rowsort
SELECT ALL 52 * 52
----
2704

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT DISTINCT 11 * + - COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT 11 * + - COUNT ( * ) AS col2
----
-11

query I rowsort
SELECT 40 + 14 * 69 AS col1
----
1006

query I rowsort
SELECT ALL + 28 * + 67
----
1876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5689
SELECT + 84 - + CAST( NULL AS SIGNED ) - - NULLIF ( + COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5689
SELECT + 84 - + CAST ( NULL AS INTEGER ) - - NULLIF ( + COUNT ( * ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5690
SELECT 28 + COUNT( * ) AS col0, COALESCE ( - SUM( DISTINCT + 73 ), + 43 + 14 + + 3 ) AS col1
----
29
-73

skipif mysql # not compatible
query II rowsort label-5690
SELECT 28 + COUNT ( * ) AS col0, COALESCE ( - SUM ( DISTINCT + 73 ), + 43 + 14 + + 3 ) AS col1
----
29
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT COUNT( + 95 ) - + + 41
----
-40

skipif mysql # not compatible
query I rowsort label-5691
SELECT COUNT ( + 95 ) - + + 41
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT + COALESCE ( + COUNT( * ), + 66 + + - 17 ) + - - 72 * - + 89 * + 55 + - 79 AS col2
----
-352518

skipif mysql # not compatible
query I rowsort label-5692
SELECT + COALESCE ( + COUNT ( * ), + 66 + + - 17 ) + - - 72 * - + 89 * + 55 + - 79 AS col2
----
-352518

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5693
SELECT + 24, COALESCE ( - 81, - 84, + - ( + + 39 ) DIV + ( - 89 ) DIV + 76 - + 89 - - - COUNT( * ) DIV - 75 ) AS col1
----
24
-81

skipif mysql # not compatible
query II rowsort label-5693
SELECT + 24, COALESCE ( - 81, - 84, + - ( + + 39 ) / + ( - 89 ) / + 76 - + 89 - - - COUNT ( * ) / - 75 ) AS col1
----
24
-81

query I rowsort
SELECT ALL - 93 + - 91 + + 38
----
-146

query I rowsort
SELECT 51 + - 14 * + 28 AS col1
----
-341

query I rowsort
SELECT ALL - - ( - - 66 )
----
66

query I rowsort
SELECT ALL 47 + + 85 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT DISTINCT + COUNT( ALL - 35 ) + + 13 col2
----
14

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT + COUNT ( ALL - 35 ) + + 13 col2
----
14

query I rowsort
SELECT + + ( - 98 ) col0
----
-98

query I rowsort
SELECT 90 + - 66 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT ALL - 52 + - + COUNT( * ) - + 89 AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL - 52 + - + COUNT ( * ) - + 89 AS col0
----
-142

query I rowsort
SELECT 77 * + 24 * 60 AS col1
----
110880

query I rowsort
SELECT 8 + - 11 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5704
SELECT CAST( 10 AS SIGNED ) + - 49 DIV + 79 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5704
SELECT CAST ( 10 AS INTEGER ) + - 49 / + 79 AS col0
----
10

query I rowsort
SELECT 91 * + 14 + + 66 AS col0
----
1340

query I rowsort
SELECT 0 * + + ( + - 36 )
----
0

query I rowsort
SELECT ALL + 11 + + 80 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT DISTINCT - MAX( ALL + - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT - MAX ( ALL + - 36 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5709
SELECT ALL - ( + ( COUNT( * ) ) ) DIV + 20 + + 67
----
67

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL - ( + ( COUNT ( * ) ) ) / + 20 + + 67
----
67

query II rowsort
SELECT 18 - + 15 + - + 37 * - 72 * 99, - 5 AS col1
----
263739
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT 25 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5711
SELECT 25 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT COUNT( * ) * 2 + - - 78 + + 24
----
104

skipif mysql # not compatible
query I rowsort label-5712
SELECT COUNT ( * ) * 2 + - - 78 + + 24
----
104

query I rowsort
SELECT ALL + 45 * + - 57 * 65 * + 35 * 79 AS col2
----
-460994625

query I rowsort
SELECT DISTINCT + 27 * - - 59 AS col1
----
1593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5715
SELECT DISTINCT + CASE + 46 WHEN - + CAST( NULL AS SIGNED ) THEN - 61 + - 16 END * - + COUNT( * ) * - 54 col2, + 49 * - - 6 AS col1
----
NULL
294

skipif mysql # not compatible
query II rowsort label-5715
SELECT DISTINCT + CASE + 46 WHEN - + CAST ( NULL AS INTEGER ) THEN - 61 + - 16 END * - + COUNT ( * ) * - 54 col2, + 49 * - - 6 AS col1
----
NULL
294

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL + ( + 19 ) * COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL + ( + 19 ) * COUNT ( * )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5717
SELECT 63 - + NULLIF ( - COUNT( * ), + COALESCE ( + 24, + + 60, COUNT( * ) * + ( - ( MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) ) ) + + CAST( NULL AS SIGNED ) + - COUNT( 82 ) ) * 81 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5717
SELECT 63 - + NULLIF ( - COUNT ( * ), + COALESCE ( + 24, + + 60, COUNT ( * ) * + ( - ( MIN ( DISTINCT + CAST ( NULL AS REAL ) ) ) ) + + CAST ( NULL AS INTEGER ) + - COUNT ( 82 ) ) * 81 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT ALL COUNT( DISTINCT - + 26 )
----
1

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL COUNT ( DISTINCT - + 26 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT 43 * + COUNT( DISTINCT - + 26 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-5719
SELECT 43 * + COUNT ( DISTINCT - + 26 ) AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5720
SELECT ALL - COALESCE ( - 4, + - 56 ) DIV - - 16
----
0

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL - COALESCE ( - 4, + - 56 ) / - - 16
----
0

query I rowsort
SELECT 43 * - 63
----
-2709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5722
SELECT 87 + - CAST( NULL AS SIGNED ) / 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5722
SELECT 87 + - CAST ( NULL AS INTEGER ) / 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT DISTINCT + CASE - 20 WHEN - + 22 THEN NULL WHEN + 89 * 43 * + + COUNT( * ) * + + 71 + + 67 THEN + 92 * 80 ELSE NULL END + 46 + 80 + COUNT( * ) * - 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5723
SELECT DISTINCT + CASE - 20 WHEN - + 22 THEN NULL WHEN + 89 * 43 * + + COUNT ( * ) * + + 71 + + 67 THEN + 92 * 80 ELSE NULL END + 46 + 80 + COUNT ( * ) * - 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL 78 + SUM( ALL - ( + 44 ) )
----
34

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL 78 + SUM ( ALL - ( + 44 ) )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5725
SELECT DISTINCT 83 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT 83 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5726
SELECT ALL - 47 + 96 DIV + + 83 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL - 47 + 96 / + + 83 AS col0
----
-46

query I rowsort
SELECT ALL - ( - + 29 ) AS col2
----
29

query I rowsort
SELECT ALL - 56 + + 18
----
-38

query I rowsort
SELECT - + 76 - + 81
----
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5730
SELECT + - COUNT( * ) - + + CASE 61 WHEN 93 THEN + SUM( + - CAST( 61 AS SIGNED ) ) WHEN 73 + + 34 + - 54 * COUNT( * ) THEN NULL END + - 34 * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT + - COUNT ( * ) - + + CASE 61 WHEN 93 THEN + SUM ( + - CAST ( 61 AS INTEGER ) ) WHEN 73 + + 34 + - 54 * COUNT ( * ) THEN NULL END + - 34 * - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT + 11 * + 38 + + COUNT( * ) * - - 17 * 76
----
1710

skipif mysql # not compatible
query I rowsort label-5731
SELECT + 11 * + 38 + + COUNT ( * ) * - - 17 * 76
----
1710

query I rowsort
SELECT DISTINCT + ( + - 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT DISTINCT - + 32 * - ( - + COUNT( * ) ) + - 41 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT - + 32 * - ( - + COUNT ( * ) ) + - 41 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL + 1 * + - NULLIF ( + 30, + 66 * + + COUNT( * ) / - 73 + - 44 + COUNT( 76 ) ) * 26 - - + 61 col0
----
-719

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL + 1 * + - NULLIF ( + 30, + 66 * + + COUNT ( * ) / - 73 + - 44 + COUNT ( 76 ) ) * 26 - - + 61 col0
----
-719

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT ALL + + NULLIF ( - COUNT( * ), 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL + + NULLIF ( - COUNT ( * ), 50 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT + 48 * 83 * - + COUNT( * ) AS col1
----
-3984

skipif mysql # not compatible
query I rowsort label-5736
SELECT + 48 * 83 * - + COUNT ( * ) AS col1
----
-3984

query I rowsort
SELECT + 54 * + + 13 AS col1
----
702

query II rowsort
SELECT + 74 AS col0, - 48 AS col2
----
74
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT ALL + MAX( ALL - + 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL + MAX ( ALL - + 19 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT 49 * 82 - + 93 * + + NULLIF ( - + COUNT( * ), - 90 / 39 )
----
4111

skipif mysql # not compatible
query I rowsort label-5740
SELECT 49 * 82 - + 93 * + + NULLIF ( - + COUNT ( * ), - 90 / 39 )
----
4111

query I rowsort
SELECT ALL - 13 * 49
----
-637

query I rowsort
SELECT + 18 * - 17
----
-306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5743
SELECT - 24 * ( + - CASE + 35 WHEN + CAST( NULL AS SIGNED ) THEN - 89 * 90 + + 55 - ( - 11 ) * - 81 / - 50 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT - 24 * ( + - CASE + 35 WHEN + CAST ( NULL AS INTEGER ) THEN - 89 * 90 + + 55 - ( - 11 ) * - 81 / - 50 END )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 86, - + COALESCE ( + 9, - + 4 ) ) AS col1
----
-86

query I rowsort
SELECT DISTINCT + ( - + 22 )
----
-22

query I rowsort
SELECT - ( 59 ) + + 14
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5747
SELECT - COUNT( * ) DIV - 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5747
SELECT - COUNT ( * ) / - 34 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5748
SELECT + 52 + - COUNT( * ) - + + MIN( - + 32 ) DIV 94 - 66 + + 48 - + + 93 + - COALESCE ( 47, 12 ) * COUNT( DISTINCT - 15 ) * - 66 AS col2
----
3042

skipif mysql # not compatible
query I rowsort label-5748
SELECT + 52 + - COUNT ( * ) - + + MIN ( - + 32 ) / 94 - 66 + + 48 - + + 93 + - COALESCE ( 47, 12 ) * COUNT ( DISTINCT - 15 ) * - 66 AS col2
----
3042

onlyif mysql # DIV for integer division: 
query I rowsort label-5749
SELECT DISTINCT + 69 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT + 69 / + 95 AS col0
----
0

query I rowsort
SELECT ALL NULLIF ( 52, ( 41 ) * 77 )
----
52

query I rowsort
SELECT - - 15 - 65 - + 41 * + + 31
----
-1321

query II rowsort
SELECT + 36 AS col1, 27 AS col1
----
36
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT ALL - - COUNT( * ) + + 44 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL - - COUNT ( * ) + + 44 AS col0
----
45

query I rowsort
SELECT ALL - - 16 * - - 39 AS col2
----
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5755
SELECT DISTINCT - 18 + 85 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT - 18 + 85 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT ALL MAX( DISTINCT - 5 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL MAX ( DISTINCT - 5 ) AS col1
----
-5

query I rowsort
SELECT ALL - - 41 + + - 66
----
-25

query II rowsort
SELECT - - 12 AS col1, + 66 + 46 AS col2
----
12
112

query I rowsort
SELECT - 12 + - + 16
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-5760
SELECT ALL - COUNT( * ) AS col2, - 24 AS col2
----
-1
-24

skipif mysql # not compatible
query II rowsort label-5760
SELECT ALL - COUNT ( * ) AS col2, - 24 AS col2
----
-1
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT + 95 - COALESCE ( - 60, - COUNT( * ) ) AS col2
----
155

skipif mysql # not compatible
query I rowsort label-5761
SELECT + 95 - COALESCE ( - 60, - COUNT ( * ) ) AS col2
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT - - COUNT( * ) * 11 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5762
SELECT - - COUNT ( * ) * 11 AS col1
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5763
SELECT - 39 + - 12 + CASE - - COALESCE ( + 49, + ( - - 33 ) ) WHEN + 32 THEN NULL WHEN + 21 THEN + 47 WHEN 78 THEN CAST( 18 AS DECIMAL ) END * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5763
SELECT - 39 + - 12 + CASE - - COALESCE ( + 49, + ( - - 33 ) ) WHEN + 32 THEN NULL WHEN + 21 THEN + 47 WHEN 78 THEN CAST ( 18 AS REAL ) END * 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5764
SELECT ALL + CAST( NULL AS SIGNED ) - + 17 * - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL + CAST ( NULL AS INTEGER ) - + 17 * - 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT - MAX( + 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-5765
SELECT - MAX ( + 24 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5766
SELECT ALL + 58 / + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL + 58 / + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5767
SELECT ALL - 53 * - CAST( NULL AS SIGNED ) + + - 99 AS col1, 14 col1
----
NULL
14

skipif mysql # not compatible
query II rowsort label-5767
SELECT ALL - 53 * - CAST ( NULL AS INTEGER ) + + - 99 AS col1, 14 col1
----
NULL
14

query I rowsort
SELECT DISTINCT + + 24 * - 48
----
-1152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5769
SELECT - + 75 / + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1, 90 * - 51 - - 97
----
NULL
-4493

skipif mysql # not compatible
query II rowsort label-5769
SELECT - + 75 / + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1, 90 * - 51 - - 97
----
NULL
-4493

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT + MIN( 84 ) * 37 * + 4
----
12432

skipif mysql # not compatible
query I rowsort label-5770
SELECT + MIN ( 84 ) * 37 * + 4
----
12432

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5771
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / - + 0 - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT + CAST ( NULL AS REAL ) / - + 0 - 13
----
NULL

query I rowsort
SELECT - 42 + - NULLIF ( - 23, - 31 * 36 * - - 10 ) AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5773
SELECT + NULLIF ( + - 94, CAST( + COUNT( * ) AS SIGNED ) ) + - 14 - - COUNT( * ) + - COUNT( * ) + + 78 + 40 * - 49 * CAST( + + 15 AS SIGNED ) * + - 41 + + 37 - 3 * 83 + 33
----
1205191

skipif mysql # not compatible
query I rowsort label-5773
SELECT + NULLIF ( + - 94, CAST ( + COUNT ( * ) AS INTEGER ) ) + - 14 - - COUNT ( * ) + - COUNT ( * ) + + 78 + 40 * - 49 * CAST ( + + 15 AS INTEGER ) * + - 41 + + 37 - 3 * 83 + 33
----
1205191

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT + CASE 97 WHEN + - 4 THEN NULL WHEN - - COALESCE ( COUNT( * ), - MIN( 69 ) ) THEN NULL ELSE - 75 + + + 88 END
----
13

skipif mysql # not compatible
query I rowsort label-5774
SELECT + CASE 97 WHEN + - 4 THEN NULL WHEN - - COALESCE ( COUNT ( * ), - MIN ( 69 ) ) THEN NULL ELSE - 75 + + + 88 END
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT ALL + AVG ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL + AVG ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 59 * - - 50
----
2950

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT + MIN( + - 6 ) + 9 * ( + + COUNT( + + 37 ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5777
SELECT + MIN ( + - 6 ) + 9 * ( + + COUNT ( + + 37 ) ) AS col0
----
3

query II rowsort
SELECT ( - 35 ) AS col1, 23 AS col2
----
-35
23

query I rowsort
SELECT + 47 * + 75 + 11 AS col2
----
3536

query II rowsort
SELECT + 11 - - 46 + + 26 + - 4, 38 AS col2
----
79
38

query I rowsort
SELECT COALESCE ( 27, - 47 ) col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5782
SELECT ALL 23 * - - CAST( 69 AS SIGNED ) AS col2
----
1587

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL 23 * - - CAST ( 69 AS INTEGER ) AS col2
----
1587

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT + 66 * + 28 + + COALESCE ( + 52, + 65, + 32 ) - + + 73 - - COUNT( * ) * - ( COUNT( * ) )
----
1826

skipif mysql # not compatible
query I rowsort label-5783
SELECT + 66 * + 28 + + COALESCE ( + 52, + 65, + 32 ) - + + 73 - - COUNT ( * ) * - ( COUNT ( * ) )
----
1826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5784
SELECT DISTINCT COUNT( * ) * - COALESCE ( 60, COUNT( * ) + - 87 + + 19 - + SUM( - - 35 ) / + 50 ) + + 5 + - - ( - ( - 84 ) ) * 88 + 50 * 57 * - ( CAST( NULL AS SIGNED ) * - 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT COUNT ( * ) * - COALESCE ( 60, COUNT ( * ) + - 87 + + 19 - + SUM ( - - 35 ) / + 50 ) + + 5 + - - ( - ( - 84 ) ) * 88 + 50 * 57 * - ( CAST ( NULL AS INTEGER ) * - 53 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5785
SELECT ALL CASE - 48 WHEN + + 29 THEN + COUNT( * ) ELSE + 3 END, COUNT( * ) AS col0
----
3
1

skipif mysql # not compatible
query II rowsort label-5785
SELECT ALL CASE - 48 WHEN + + 29 THEN + COUNT ( * ) ELSE + 3 END, COUNT ( * ) AS col0
----
3
1

query I rowsort
SELECT ALL 87 * + - 87 * + + 76
----
-575244

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT + - ( ( + - 59 ) ) * + ( + COUNT( * ) ) + + + 68
----
127

skipif mysql # not compatible
query I rowsort label-5787
SELECT + - ( ( + - 59 ) ) * + ( + COUNT ( * ) ) + + + 68
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5788
SELECT ALL - COALESCE ( + 62, - + MAX( - 67 ), - CASE - 46 WHEN 35 * + COUNT( * ) * - + COUNT( * ) * + - COUNT( * ) * + - 48 THEN - 4 DIV - + 65 * 38 END, - COUNT( * ) + 52 )
----
-62

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL - COALESCE ( + 62, - + MAX ( - 67 ), - CASE - 46 WHEN 35 * + COUNT ( * ) * - + COUNT ( * ) * + - COUNT ( * ) * + - 48 THEN - 4 / - + 65 * 38 END, - COUNT ( * ) + 52 )
----
-62

query I rowsort
SELECT 3 + + + 5
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5790
SELECT ALL COUNT( * ) + + 59 - + 28 DIV - + 40 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL COUNT ( * ) + + 59 - + 28 / - + 40 AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5791
SELECT ALL + 25 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL + 25 / 68
----
0

query I rowsort
SELECT 37 * - + 58 + - - 92
----
-2054

query I rowsort
SELECT 26 + + 27
----
53

query I rowsort
SELECT - 71 * - 51
----
3621

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT ALL + MAX( ALL + 33 ) * COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL + MAX ( ALL + 33 ) * COUNT ( * )
----
33

query I rowsort
SELECT - NULLIF ( + 42, 57 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5797
SELECT COUNT( ALL - - 59 ) + + 99 * + 14 col2, + COUNT( * ) AS col1
----
1387
1

skipif mysql # not compatible
query II rowsort label-5797
SELECT COUNT ( ALL - - 59 ) + + 99 * + 14 col2, + COUNT ( * ) AS col1
----
1387
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT DISTINCT - - MIN( 80 ) - 88 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-5798
SELECT DISTINCT - - MIN ( 80 ) - 88 AS col2
----
-8

query I rowsort
SELECT ALL - 29 * 56 * 19
----
-30856

query I rowsort
SELECT NULLIF ( + 46, - 3 + - 66 ) AS col0
----
46

query I rowsort
SELECT 31 - - 46 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT - SUM( ALL + ( + ( 19 ) ) ) * + 2 + - COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-5802
SELECT - SUM ( ALL + ( + ( 19 ) ) ) * + 2 + - COUNT ( * ) AS col1
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5803
SELECT - COALESCE ( + 86, + + 63 + 43 * + 62, 1 * + 92 ) - 19 * + CAST( NULL AS DECIMAL ) * - 52 + + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT - COALESCE ( + 86, + + 63 + 43 * + 62, 1 * + 92 ) - 19 * + CAST ( NULL AS REAL ) * - 52 + + 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5804
SELECT - MAX( DISTINCT 91 ) AS col1, + 21 col1
----
-91
21

skipif mysql # not compatible
query II rowsort label-5804
SELECT - MAX ( DISTINCT 91 ) AS col1, + 21 col1
----
-91
21

query I rowsort
SELECT 25 * 27 AS col0
----
675

query I rowsort
SELECT 28 + - + 64 col0
----
-36

query I rowsort
SELECT 38 * + + 16 * - - 51 AS col1
----
31008

query I rowsort
SELECT ALL + 86 * + 77 * + 7
----
46354

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT ALL - CASE COUNT( * ) WHEN - 22 THEN + - NULLIF ( - 96, - 6 / - + CASE + + 32 WHEN 4 THEN NULL ELSE + + 14 END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL - CASE COUNT ( * ) WHEN - 22 THEN + - NULLIF ( - 96, - 6 / - + CASE + + 32 WHEN 4 THEN NULL ELSE + + 14 END ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT ALL - CASE - + CASE WHEN NULL NOT BETWEEN 41 AND NULL THEN + + COUNT( ALL + - 10 ) ELSE - - COUNT( * ) END WHEN 76 THEN NULL ELSE + - SUM( ALL - 41 ) * COUNT( * ) * + 73 * - 51 END + + 41
----
152684

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL - CASE - + CASE WHEN NULL NOT BETWEEN 41 AND NULL THEN + + COUNT ( ALL + - 10 ) ELSE - - COUNT ( * ) END WHEN 76 THEN NULL ELSE + - SUM ( ALL - 41 ) * COUNT ( * ) * + 73 * - 51 END + + 41
----
152684

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT MIN( + - 47 ) - 79 + + 87 * 44 * - 32 + - - 8 AS col2
----
-122614

skipif mysql # not compatible
query I rowsort label-5811
SELECT MIN ( + - 47 ) - 79 + + 87 * 44 * - 32 + - - 8 AS col2
----
-122614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5812
SELECT 73 + + CASE + CAST( NULL AS SIGNED ) WHEN - - 62 + - ( - 95 ) THEN CASE + - 64 WHEN - ( + ( - 69 ) ) THEN NULL WHEN - 45 THEN NULL WHEN + 12 THEN NULL ELSE + COUNT( * ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT 73 + + CASE + CAST ( NULL AS INTEGER ) WHEN - - 62 + - ( - 95 ) THEN CASE + - 64 WHEN - ( + ( - 69 ) ) THEN NULL WHEN - 45 THEN NULL WHEN + 12 THEN NULL ELSE + COUNT ( * ) END ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 23 + + - 45 + + 88 AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5814
SELECT DISTINCT + 69 * + + NULLIF ( 21, - 42 * - + 58 / + CASE - 51 WHEN + - COALESCE ( - - 88, COUNT( * ), - ( - + 24 ) ) THEN 3 * 2 + 47 WHEN + 40 THEN 22 * CAST( ( ( + 19 ) ) AS SIGNED ) END * - 29 ) AS col0
----
1449

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT + 69 * + + NULLIF ( 21, - 42 * - + 58 / + CASE - 51 WHEN + - COALESCE ( - - 88, COUNT ( * ), - ( - + 24 ) ) THEN 3 * 2 + 47 WHEN + 40 THEN 22 * CAST ( ( ( + 19 ) ) AS INTEGER ) END * - 29 ) AS col0
----
1449

query I rowsort
SELECT ALL - 14 + + 31 * - 14
----
-448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5816
SELECT + 43 DIV 58 * - ( 16 ) DIV - COUNT( * ) + + COUNT( + 35 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5816
SELECT + 43 / 58 * - ( 16 ) / - COUNT ( * ) + + COUNT ( + 35 ) + COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5817
SELECT CAST( - 1 AS SIGNED ) DIV - ( + ( - SUM( ALL + + 27 ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5817
SELECT CAST ( - 1 AS INTEGER ) / - ( + ( - SUM ( ALL + + 27 ) ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT DISTINCT COUNT( * ) + + + 63
----
64

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT COUNT ( * ) + + + 63
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5819
SELECT ALL 17 + + MAX( DISTINCT + 13 ), + 19 AS col0
----
30
19

skipif mysql # not compatible
query II rowsort label-5819
SELECT ALL 17 + + MAX ( DISTINCT + 13 ), + 19 AS col0
----
30
19

query I rowsort
SELECT ALL 76 + 41
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT DISTINCT + 97 + + - 25 * + 27 * 40 * - SUM( - 79 ) + - 87 * 9 + 3
----
-2133683

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT + 97 + + - 25 * + 27 * 40 * - SUM ( - 79 ) + - 87 * 9 + 3
----
-2133683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5822
SELECT 72 * NULLIF ( - + COUNT( * ), - + CAST( NULL AS SIGNED ) )
----
-72

skipif mysql # not compatible
query I rowsort label-5822
SELECT 72 * NULLIF ( - + COUNT ( * ), - + CAST ( NULL AS INTEGER ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT ALL 84 + MAX( + 52 ) AS col0
----
136

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL 84 + MAX ( + 52 ) AS col0
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5824
SELECT COUNT( DISTINCT + ( - 78 ) ) + - CAST( - - MAX( 1 ) AS SIGNED ) + + - 81 - COALESCE ( + - CAST( + 53 AS SIGNED ), - 68 ) * 88 * + 84 AS col2
----
391695

skipif mysql # not compatible
query I rowsort label-5824
SELECT COUNT ( DISTINCT + ( - 78 ) ) + - CAST ( - - MAX ( 1 ) AS INTEGER ) + + - 81 - COALESCE ( + - CAST ( + 53 AS INTEGER ), - 68 ) * 88 * + 84 AS col2
----
391695

query I rowsort
SELECT + ( - 90 ) * + - 9 + + + 60
----
870

query I rowsort
SELECT - ( - ( - 28 ) ) - 95
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-5827
SELECT + 35 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-5827
SELECT + 35 / - 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5828
SELECT DISTINCT CASE 0 WHEN + CAST( - - COALESCE ( 73, + ( - - 51 ) ) AS SIGNED ) THEN CASE + 28 WHEN 22 THEN - 86 WHEN + + SUM( ALL 32 ) THEN NULL ELSE + COUNT( * ) / - + 54 + - 49 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT CASE 0 WHEN + CAST ( - - COALESCE ( 73, + ( - - 51 ) ) AS INTEGER ) THEN CASE + 28 WHEN 22 THEN - 86 WHEN + + SUM ( ALL 32 ) THEN NULL ELSE + COUNT ( * ) / - + 54 + - 49 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT DISTINCT MAX( DISTINCT - - 76 )
----
76

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT MAX ( DISTINCT - - 76 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5830
SELECT + MIN( DISTINCT + 43 ) * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT + MIN ( DISTINCT + 43 ) * - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5831
SELECT DISTINCT - CAST( - + 55 AS SIGNED ) col2
----
55

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT - CAST ( - + 55 AS INTEGER ) col2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5832
SELECT ALL - 92 DIV 4 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL - 92 / 4 AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5833
SELECT + 10 + 8 DIV 79 col1, + COUNT( * )
----
10
1

skipif mysql # not compatible
query II rowsort label-5833
SELECT + 10 + 8 / 79 col1, + COUNT ( * )
----
10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT 90 - - MIN( - 50 ) * COUNT( * ) * - 31 + - 48
----
1592

skipif mysql # not compatible
query I rowsort label-5834
SELECT 90 - - MIN ( - 50 ) * COUNT ( * ) * - 31 + - 48
----
1592

query I rowsort
SELECT + 94 - + - 71
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT ( + 27 ) * - 21 * - MIN( + + 43 ) + + 95 AS col0
----
24476

skipif mysql # not compatible
query I rowsort label-5836
SELECT ( + 27 ) * - 21 * - MIN ( + + 43 ) + + 95 AS col0
----
24476

onlyif mysql # aggregate syntax: 
query II rowsort label-5837
SELECT 1, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5837
SELECT 1, + COUNT ( * )
----
1
1

query I rowsort
SELECT DISTINCT - 45 + + + 21 AS col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5839
SELECT DISTINCT 19 + COUNT( * ) + + 45 + - 52 + 76 - - 26 DIV - 41 * - + 52 * - - NULLIF ( + 58, ( - 44 ) DIV 20 + - 16 * - 68 + + 58 * 9 )
----
89

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT 19 + COUNT ( * ) + + 45 + - 52 + 76 - - 26 / - 41 * - + 52 * - - NULLIF ( + 58, ( - 44 ) / 20 + - 16 * - 68 + + 58 * 9 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-5840
SELECT ALL - ( + COUNT( ALL + - ( - 54 ) ) ) AS col1, 91 * + SUM( ALL 8 ) * + 26 AS col1
----
-1
18928

skipif mysql # not compatible
query II rowsort label-5840
SELECT ALL - ( + COUNT ( ALL + - ( - 54 ) ) ) AS col1, 91 * + SUM ( ALL 8 ) * + 26 AS col1
----
-1
18928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5841
SELECT ALL 21 * CAST( NULL AS SIGNED ) + - CAST( - - 59 AS SIGNED ) * - 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL 21 * CAST ( NULL AS INTEGER ) + - CAST ( - - 59 AS INTEGER ) * - 62 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT MAX( + 4 ) * + 49 + 58
----
254

skipif mysql # not compatible
query I rowsort label-5842
SELECT MAX ( + 4 ) * + 49 + 58
----
254

query I rowsort
SELECT ALL + 58 * - 12 + + + 3 AS col0
----
-693

query I rowsort
SELECT DISTINCT + 0 * + 96 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5845
SELECT + 40 DIV - + COALESCE ( + COALESCE ( - 81, - + 43 * + + CASE 62 WHEN - CASE + ( - 23 ) WHEN 88 + 19 * - - ( 75 ) * - 98 + - + SUM( - 45 ) THEN NULL WHEN 88 THEN ( 41 ) * 60 END THEN 13 END * + 19 + - 53 * 29 - ( COUNT( * ) - 79 DIV 28 ) ), COUNT( * ), + 71 ) + 49 * COUNT( * ) col2
----
49

skipif mysql # not compatible
query I rowsort label-5845
SELECT + 40 / - + COALESCE ( + COALESCE ( - 81, - + 43 * + + CASE 62 WHEN - CASE + ( - 23 ) WHEN 88 + 19 * - - ( 75 ) * - 98 + - + SUM ( - 45 ) THEN NULL WHEN 88 THEN ( 41 ) * 60 END THEN 13 END * + 19 + - 53 * 29 - ( COUNT ( * ) - 79 / 28 ) ), COUNT ( * ), + 71 ) + 49 * COUNT ( * ) col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT COUNT( 47 )
----
1

skipif mysql # not compatible
query I rowsort label-5846
SELECT COUNT ( 47 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL - NULLIF ( - + COUNT( * ), + ( 8 ) * + - 24 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL - NULLIF ( - + COUNT ( * ), + ( 8 ) * + - 24 ) AS col1
----
1

query I rowsort
SELECT 59 + 8 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT 63 * - 87 * + COUNT( * )
----
-5481

skipif mysql # not compatible
query I rowsort label-5849
SELECT 63 * - 87 * + COUNT ( * )
----
-5481

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL - NULLIF ( COUNT( * ), - 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL - NULLIF ( COUNT ( * ), - 48 )
----
-1

query I rowsort
SELECT ALL ( 10 ) * + + ( + + 96 ) + + - 40 + + - 73 * + ( + 54 ) AS col2
----
-3022

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5852
SELECT DISTINCT + 38 * - - CAST( NULL AS SIGNED ) / + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT + 38 * - - CAST ( NULL AS INTEGER ) / + + 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5853
SELECT ALL - COALESCE ( COUNT( * ), - CAST( + - CASE - - 96 WHEN - - 45 THEN + - 88 END AS SIGNED ), - 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL - COALESCE ( COUNT ( * ), - CAST ( + - CASE - - 96 WHEN - - 45 THEN + - 88 END AS INTEGER ), - 52 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5854
SELECT DISTINCT 70 * CAST( - + AVG ( - 23 ) AS SIGNED ) + + ( + 15 )
----
1625

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT 70 * CAST ( - + AVG ( - 23 ) AS INTEGER ) + + ( + 15 )
----
1625

query I rowsort
SELECT ALL 70 * - 54
----
-3780

query I rowsort
SELECT - 75 + + 87 * + - 53 - + + 44 AS col0
----
-4730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5857
SELECT + + 3 * 92 * + 48 + + 88 + - NULLIF ( + 50, - + SUM( - CAST( NULL AS SIGNED ) ) ) * - 55 * 4
----
24336

skipif mysql # not compatible
query I rowsort label-5857
SELECT + + 3 * 92 * + 48 + + 88 + - NULLIF ( + 50, - + SUM ( - CAST ( NULL AS INTEGER ) ) ) * - 55 * 4
----
24336

query II rowsort
SELECT - 11, 30 * + + COALESCE ( + 60, + - 13, - + 20 * 80 + 3 ) * - CASE 94 WHEN - 22 THEN + 71 END * - 95 + 65 AS col0
----
-11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT - - 34 - + COUNT( * ) * + - 4
----
38

skipif mysql # not compatible
query I rowsort label-5859
SELECT - - 34 - + COUNT ( * ) * + - 4
----
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5860
SELECT ALL NULLIF ( + 38, + + CAST( NULL AS DECIMAL ) ) - + 89 * 66 AS col2
----
-5836

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL NULLIF ( + 38, + + CAST ( NULL AS REAL ) ) - + 89 * 66 AS col2
----
-5836

query I rowsort
SELECT - 92 * 42 * - 19
----
73416

query II rowsort
SELECT ALL + 56 AS col1, - 67 * 27
----
56
-1809

query I rowsort
SELECT - - 26 + 31
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT - COUNT( * ) * + 59 - 27
----
-86

skipif mysql # not compatible
query I rowsort label-5864
SELECT - COUNT ( * ) * + 59 - 27
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-5865
SELECT ALL - COUNT( * ), + 52 AS col2
----
-1
52

skipif mysql # not compatible
query II rowsort label-5865
SELECT ALL - COUNT ( * ), + 52 AS col2
----
-1
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5866
SELECT DISTINCT 63 * + COUNT( * ) * - 51 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT 63 * + COUNT ( * ) * - 51 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5867
SELECT ALL - ( CASE + + 91 WHEN - COUNT( * ) + - 86 / + - ( - - 90 ) THEN - 38 / 0 END ), + MIN( ALL - 36 ) col0
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-5867
SELECT ALL - ( CASE + + 91 WHEN - COUNT ( * ) + - 86 / + - ( - - 90 ) THEN - 38 / 0 END ), + MIN ( ALL - 36 ) col0
----
NULL
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT + + COUNT( * ) * - COALESCE ( 56, COUNT( * ), - + 54 + + + CASE + 87 WHEN + - MAX( DISTINCT NULLIF ( - - 23, - 91 ) ) THEN - 87 END ) + 55
----
-1

skipif mysql # not compatible
query I rowsort label-5868
SELECT + + COUNT ( * ) * - COALESCE ( 56, COUNT ( * ), - + 54 + + + CASE + 87 WHEN + - MAX ( DISTINCT NULLIF ( - - 23, - 91 ) ) THEN - 87 END ) + 55
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5869
SELECT ALL CASE - CASE - + 46 WHEN - 50 THEN NULL ELSE 50 * + CAST( - 82 AS SIGNED ) + - 3 * - - 69 END WHEN - 58 THEN NULL WHEN + COUNT( * ) THEN + COUNT( * ) WHEN + 7 THEN NULL ELSE - - 21 END AS col0, 81 DIV + NULLIF ( - 33, - 96 - + NULLIF ( 44, - 32 ) ) AS col1
----
21
-2

skipif mysql # not compatible
query II rowsort label-5869
SELECT ALL CASE - CASE - + 46 WHEN - 50 THEN NULL ELSE 50 * + CAST ( - 82 AS INTEGER ) + - 3 * - - 69 END WHEN - 58 THEN NULL WHEN + COUNT ( * ) THEN + COUNT ( * ) WHEN + 7 THEN NULL ELSE - - 21 END AS col0, 81 / + NULLIF ( - 33, - 96 - + NULLIF ( 44, - 32 ) ) AS col1
----
21
-2

query II rowsort
SELECT 99 AS col0, - 71 AS col2
----
99
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5871
SELECT + + CASE WHEN NULL NOT IN ( 92, 94 ) THEN - 65 ELSE NULL END / - + COUNT( * ) + + 64 + - - NULLIF ( + COUNT( * ), CAST( NULL AS DECIMAL ) * 58 - - 54 + - - CASE + + 89 WHEN - 14 THEN + + 38 WHEN - 77 + 94 THEN 36 ELSE NULL END / 84 - MIN( DISTINCT + 96 ) * COUNT( * ) ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT + + CASE WHEN NULL NOT IN ( 92, 94 ) THEN - 65 ELSE NULL END / - + COUNT ( * ) + + 64 + - - NULLIF ( + COUNT ( * ), CAST ( NULL AS REAL ) * 58 - - 54 + - - CASE + + 89 WHEN - 14 THEN + + 38 WHEN - 77 + 94 THEN 36 ELSE NULL END / 84 - MIN ( DISTINCT + 96 ) * COUNT ( * ) ) + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 78 + - 99
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT ALL SUM( ALL - + CASE - 84 WHEN - 31 THEN + - ( + 48 ) + 64 END ) + - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL SUM ( ALL - + CASE - 84 WHEN - 31 THEN + - ( + 48 ) + 64 END ) + - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT - NULLIF ( ( - - 58 ), + COALESCE ( - COUNT( * ), + 47 ) + + ( + - 44 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-5874
SELECT - NULLIF ( ( - - 58 ), + COALESCE ( - COUNT ( * ), + 47 ) + + ( + - 44 ) )
----
-58

query I rowsort
SELECT ALL 78 * + - 6 AS col2
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT ALL + 95 + - 32 + MIN( - 58 ) * - COUNT( * ) * 23
----
1397

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL + 95 + - 32 + MIN ( - 58 ) * - COUNT ( * ) * 23
----
1397

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT DISTINCT - 41 + COUNT( * ) + + - COALESCE ( + - COUNT( * ), - 59 + 67, - 76 ) * + 87 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT - 41 + COUNT ( * ) + + - COALESCE ( + - COUNT ( * ), - 59 + 67, - 76 ) * + 87 AS col2
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-5878
SELECT DISTINCT 71 + + 31 AS col1, 52 DIV - 46 AS col1
----
102
-1

skipif mysql # not compatible
query II rowsort label-5878
SELECT DISTINCT 71 + + 31 AS col1, 52 / - 46 AS col1
----
102
-1

query II rowsort
SELECT + 36 - + + 11 AS col2, 22
----
25
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5880
SELECT ALL 48 DIV - + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL 48 / - + 66 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5881
SELECT ALL 6 + - - 21 DIV 24 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL 6 + - - 21 / 24 AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5882
SELECT + COUNT( * ) + 39 + - - 64 * + ( 72 ), COUNT( * ) + + 18 AS col2
----
4648
19

skipif mysql # not compatible
query II rowsort label-5882
SELECT + COUNT ( * ) + 39 + - - 64 * + ( 72 ), COUNT ( * ) + + 18 AS col2
----
4648
19

query I rowsort
SELECT + CASE - ( + 84 ) WHEN + - 70 THEN NULL ELSE 91 END
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5884
SELECT - SUM( + 20 ) DIV 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-5884
SELECT - SUM ( + 20 ) / 72 col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5885
SELECT ALL 12 DIV + - 97 AS col2, 33
----
0
33

skipif mysql # not compatible
query II rowsort label-5885
SELECT ALL 12 / + - 97 AS col2, 33
----
0
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5886
SELECT + ( - + 17 ), COUNT( * ) AS col0
----
-17
1

skipif mysql # not compatible
query II rowsort label-5886
SELECT + ( - + 17 ), COUNT ( * ) AS col0
----
-17
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5887
SELECT CASE + MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) WHEN + + 88 THEN + 42 WHEN + 14 THEN NULL ELSE + + 89 + - 5 END DIV - 65 + - MIN( - - 23 ) - + 31 * 35
----
-1109

skipif mysql # not compatible
query I rowsort label-5887
SELECT CASE + MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) WHEN + + 88 THEN + 42 WHEN + 14 THEN NULL ELSE + + 89 + - 5 END / - 65 + - MIN ( - - 23 ) - + 31 * 35
----
-1109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5888
SELECT ALL + CAST( NULLIF ( - + COUNT( * ), - AVG ( - 98 ) * + 24 * + CAST( NULL AS SIGNED ) / - - CASE + 42 WHEN ( SUM( DISTINCT + 33 ) ) THEN - 42 * 94 END ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL + CAST ( NULLIF ( - + COUNT ( * ), - AVG ( - 98 ) * + 24 * + CAST ( NULL AS INTEGER ) / - - CASE + 42 WHEN ( SUM ( DISTINCT + 33 ) ) THEN - 42 * 94 END ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT - 35 - - COUNT( * ) * 63
----
28

skipif mysql # not compatible
query I rowsort label-5889
SELECT - 35 - - COUNT ( * ) * 63
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL 72 * + COUNT( * ) - 91 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL 72 * + COUNT ( * ) - 91 AS col2
----
-19

query I rowsort
SELECT + 46 * NULLIF ( 47, - 46 ) col2
----
2162

query I rowsort
SELECT ALL - 52 * - 43
----
2236

query II rowsort
SELECT + + 63 + 74 col1, + 6 AS col2
----
137
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT - COALESCE ( + 73, 80 DIV 28 + - NULLIF ( 67, 77 ) ) * - 55 AS col2
----
4015

skipif mysql # not compatible
query I rowsort label-5894
SELECT - COALESCE ( + 73, 80 / 28 + - NULLIF ( 67, 77 ) ) * - 55 AS col2
----
4015

query I rowsort
SELECT DISTINCT + ( + COALESCE ( - 8, + + 1 ) ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT - 90 * - + COUNT( * ) col1
----
90

skipif mysql # not compatible
query I rowsort label-5896
SELECT - 90 * - + COUNT ( * ) col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5897
SELECT ALL - 86 * ( + - 45 ) DIV 88 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL - 86 * ( + - 45 ) / 88 AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5898
SELECT CASE - 20 WHEN - 46 + + + CAST( NULL AS SIGNED ) + - 16 * COUNT( * ) * 81 THEN + 91 + 33 WHEN 66 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5898
SELECT CASE - 20 WHEN - 46 + + + CAST ( NULL AS INTEGER ) + - 16 * COUNT ( * ) * 81 THEN + 91 + 33 WHEN 66 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT ALL - NULLIF ( - + 85, - 97 + + 85 ) * + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL - NULLIF ( - + 85, - 97 + + 85 ) * + COUNT ( * )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5901
SELECT - - 36 DIV - 99 * + + 65
----
0

skipif mysql # not compatible
query I rowsort label-5901
SELECT - - 36 / - 99 * + + 65
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5902
SELECT ALL - + 15 * - CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL - + 15 * - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
15

query I rowsort
SELECT - 65 + 70 + + 31 - 58
----
-22

query I rowsort
SELECT - 40 * - 97 + + + 74 * 69 AS col0
----
8986

query I rowsort
SELECT - 79 + + 67 AS col1
----
-12

query II rowsort
SELECT DISTINCT + 34 * 20 AS col0, 54 * - + 88 col0
----
680
-4752

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT - ( + + 11 ) * - 45 + - COUNT( * )
----
494

skipif mysql # not compatible
query I rowsort label-5907
SELECT - ( + + 11 ) * - 45 + - COUNT ( * )
----
494

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT + ( - 93 ) * - COUNT( * ) - - 96 AS col2
----
189

skipif mysql # not compatible
query I rowsort label-5908
SELECT + ( - 93 ) * - COUNT ( * ) - - 96 AS col2
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT DISTINCT + - 73 + - - 96 - + + CASE + COALESCE ( - ( + 93 ), 93 / CASE + - 38 WHEN COUNT( * ) * 60 + - + COUNT( * ) / - + NULLIF ( CASE + 10 WHEN - 38 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE + 77 END, - 61 ) + - 15 THEN NULL ELSE 50 END, 93 * + 48 + - 98, - ( 89 ) ) WHEN - COUNT( * ) * + 23 + + 63 THEN 37 + 51 WHEN 24 + 49 THEN NULL END + 31 * SUM( 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT + - 73 + - - 96 - + + CASE + COALESCE ( - ( + 93 ), 93 / CASE + - 38 WHEN COUNT ( * ) * 60 + - + COUNT ( * ) / - + NULLIF ( CASE + 10 WHEN - 38 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE + 77 END, - 61 ) + - 15 THEN NULL ELSE 50 END, 93 * + 48 + - 98, - ( 89 ) ) WHEN - COUNT ( * ) * + 23 + + 63 THEN 37 + 51 WHEN 24 + 49 THEN NULL END + 31 * SUM ( 96 )
----
NULL

query I rowsort
SELECT - - 4 + 70 col1
----
74

query I rowsort
SELECT + 48 + + 31 AS col0
----
79

query II rowsort
SELECT 29 AS col0, + 61 + - 73
----
29
-12

query I rowsort
SELECT ALL + 27 + - + 92 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT - COUNT( * ) + 97 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5914
SELECT - COUNT ( * ) + 97 AS col2
----
96

query I rowsort
SELECT ALL 7 * - + 52
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT + 18 - + 1 * + + 24 * - COUNT( * ) + - 56 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5916
SELECT + 18 - + 1 * + + 24 * - COUNT ( * ) + - 56 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-5917
SELECT DISTINCT + 10 - MIN( + + 72 ), - 54 * + + 1 * - 84 AS col0
----
-62
4536

skipif mysql # not compatible
query II rowsort label-5917
SELECT DISTINCT + 10 - MIN ( + + 72 ), - 54 * + + 1 * - 84 AS col0
----
-62
4536

query I rowsort
SELECT DISTINCT 23 * + 45 AS col1
----
1035

query I rowsort
SELECT 68 * 91 AS col1
----
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT COUNT( * ) * + 42 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5920
SELECT COUNT ( * ) * + 42 AS col0
----
42

query II rowsort
SELECT ALL - 39 AS col1, + 54
----
-39
54

query I rowsort
SELECT 84 + - 49
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5923
SELECT ALL COUNT( * ) DIV - 57 * MIN( DISTINCT - + 47 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL COUNT ( * ) / - 57 * MIN ( DISTINCT - + 47 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5924
SELECT + 61 * - 57 + + COUNT( * ) AS col0, 54 AS col1
----
-3476
54

skipif mysql # not compatible
query II rowsort label-5924
SELECT + 61 * - 57 + + COUNT ( * ) AS col0, 54 AS col1
----
-3476
54

query I rowsort
SELECT + 61 * + 46 - + 52 AS col0
----
2754

onlyif mysql # aggregate syntax: 
query II rowsort label-5926
SELECT ALL - COUNT( * ), - 13 + + - 10 + 28 * + 12 col1
----
-1
313

skipif mysql # not compatible
query II rowsort label-5926
SELECT ALL - COUNT ( * ), - 13 + + - 10 + 28 * + 12 col1
----
-1
313

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5927
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1, 33 + 66 AS col1
----
NULL
99

skipif mysql # not compatible
query II rowsort label-5927
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, 33 + 66 AS col1
----
NULL
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5928
SELECT - 59 DIV CAST( - 70 AS SIGNED ) * + MIN( ALL - + 97 ) + - - 92 + + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-5928
SELECT - 59 / CAST ( - 70 AS INTEGER ) * + MIN ( ALL - + 97 ) + - - 92 + + COUNT ( * ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT MAX( + 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5929
SELECT MAX ( + 9 ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL - MIN( + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL - MIN ( + 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT - MAX( ALL - 56 ) + - - 7 col2
----
63

skipif mysql # not compatible
query I rowsort label-5931
SELECT - MAX ( ALL - 56 ) + - - 7 col2
----
63

query II rowsort
SELECT + - 6 AS col2, ( - - 63 ) - 2
----
-6
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5933
SELECT + 58 AS col2, COUNT( * ) AS col0
----
58
1

skipif mysql # not compatible
query II rowsort label-5933
SELECT + 58 AS col2, COUNT ( * ) AS col0
----
58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT + SUM( DISTINCT - 64 ) * 26 * + 98 * + 87 AS col0
----
-14187264

skipif mysql # not compatible
query I rowsort label-5934
SELECT + SUM ( DISTINCT - 64 ) * 26 * + 98 * + 87 AS col0
----
-14187264

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT + - COALESCE ( - - ( - COUNT( * ) ), - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5935
SELECT + - COALESCE ( - - ( - COUNT ( * ) ), - - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5936
SELECT 75 * - - 22 - + 77 AS col1, - ( + COUNT( * ) ) + - + COALESCE ( - COUNT( * ), - 71 ) * 70
----
1573
69

skipif mysql # not compatible
query II rowsort label-5936
SELECT 75 * - - 22 - + 77 AS col1, - ( + COUNT ( * ) ) + - + COALESCE ( - COUNT ( * ), - 71 ) * 70
----
1573
69

query I rowsort
SELECT ALL - + 99 + + 1
----
-98

query I rowsort
SELECT 54 - + - 58
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT ALL - 96 + - + ( - COUNT( * ) )
----
-95

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL - 96 + - + ( - COUNT ( * ) )
----
-95

query I rowsort
SELECT DISTINCT + 41 + - + 37
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5941
SELECT 53 DIV + 26
----
2

skipif mysql # not compatible
query I rowsort label-5941
SELECT 53 / + 26
----
2

query I rowsort
SELECT ALL - 69 * 78
----
-5382

onlyif mysql # DIV for integer division: 
query I rowsort label-5943
SELECT 98 + 94 DIV + 58
----
99

skipif mysql # not compatible
query I rowsort label-5943
SELECT 98 + 94 / + 58
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5944
SELECT 79 DIV + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5944
SELECT 79 / + 95 AS col1
----
0

query I rowsort
SELECT 88 * + - ( - 2 )
----
176

query I rowsort
SELECT 78 - + 90 + + - 78 AS col1
----
-90

query I rowsort
SELECT 14 * + 66 AS col1
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT COUNT( + 48 ) + - 53 col1
----
-52

skipif mysql # not compatible
query I rowsort label-5948
SELECT COUNT ( + 48 ) + - 53 col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5949
SELECT ALL - COALESCE ( - 88, - + 46 + - CAST( NULL AS SIGNED ) ) AS col2, - 90
----
88
-90

skipif mysql # not compatible
query II rowsort label-5949
SELECT ALL - COALESCE ( - 88, - + 46 + - CAST ( NULL AS INTEGER ) ) AS col2, - 90
----
88
-90

query I rowsort
SELECT 3 * + 46
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT DISTINCT + 8 * - - COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT + 8 * - - COUNT ( * ) AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5952
SELECT ALL - + COALESCE ( + 27, - 13, + 36 DIV + - 73 ) col1
----
-27

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL - + COALESCE ( + 27, - 13, + 36 / + - 73 ) col1
----
-27

query II rowsort
SELECT 41 * + - 44 AS col1, 22 AS col2
----
-1804
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT ALL MAX( DISTINCT 83 ) + + COUNT( * ) + - ( ( 17 ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL MAX ( DISTINCT 83 ) + + COUNT ( * ) + - ( ( 17 ) ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT + 52 + + + 67 * + MIN( ALL 40 ) AS col1
----
2732

skipif mysql # not compatible
query I rowsort label-5955
SELECT + 52 + + + 67 * + MIN ( ALL 40 ) AS col1
----
2732

query I rowsort
SELECT + ( + - 43 ) * + 96 AS col1
----
-4128

query I rowsort
SELECT ALL - 65 + + 44
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5958
SELECT CAST( - 2 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-5958
SELECT CAST ( - 2 AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT 90 * + COUNT( * ) * + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-5959
SELECT 90 * + COUNT ( * ) * + COUNT ( * )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5960
SELECT + 89 * - + 70 + COUNT( * ) * + MIN( + CAST( NULL AS SIGNED ) ) * + 62 * - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5960
SELECT + 89 * - + 70 + COUNT ( * ) * + MIN ( + CAST ( NULL AS INTEGER ) ) * + 62 * - + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT DISTINCT + NULLIF ( + - 78, - 84 ) * COUNT( * ) * + 32 AS col2
----
-2496

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT + NULLIF ( + - 78, - 84 ) * COUNT ( * ) * + 32 AS col2
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT ALL + ( - COUNT( * ) ) + + 75 * - - 83
----
6224

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL + ( - COUNT ( * ) ) + + 75 * - - 83
----
6224

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT + 50 + + COUNT( * ) + 12 + - 53 + - ( ( + 42 ) ) * - 60
----
2530

skipif mysql # not compatible
query I rowsort label-5963
SELECT + 50 + + COUNT ( * ) + 12 + - 53 + - ( ( + 42 ) ) * - 60
----
2530

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT DISTINCT + 91 * - ( + - COUNT( * ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT + 91 * - ( + - COUNT ( * ) ) AS col0
----
91

query I rowsort
SELECT 53 + + - 43 AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5966
SELECT 92 * + ( ( + 29 ) ) * - NULLIF ( 1, - MIN( DISTINCT - - 0 ) ), + ( + 93 ) * + - COALESCE ( - 75, COUNT( * ) ) AS col2
----
-2668
6975

skipif mysql # not compatible
query II rowsort label-5966
SELECT 92 * + ( ( + 29 ) ) * - NULLIF ( 1, - MIN ( DISTINCT - - 0 ) ), + ( + 93 ) * + - COALESCE ( - 75, COUNT ( * ) ) AS col2
----
-2668
6975

query II rowsort
SELECT ALL ( - + 32 ) * - 82 AS col2, + 55 AS col1
----
2624
55

query I rowsort
SELECT DISTINCT 54 - - - 60 + + + 33 AS col0
----
27

query I rowsort
SELECT - 83 + 23 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5970
SELECT ALL 23, + COUNT( * ) - 82 * - 78 col2
----
23
6397

skipif mysql # not compatible
query II rowsort label-5970
SELECT ALL 23, + COUNT ( * ) - 82 * - 78 col2
----
23
6397

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ALL + SUM( + + 15 ) * - 75
----
-1125

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL + SUM ( + + 15 ) * - 75
----
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT - COUNT( * ) + - MIN( + - ( - + 29 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-5972
SELECT - COUNT ( * ) + - MIN ( + - ( - + 29 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT + ( - 40 ) * + COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-5973
SELECT + ( - 40 ) * + COUNT ( * ) AS col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-5974
SELECT - 29 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-5974
SELECT - 29 / 88
----
0

query I rowsort
SELECT ALL + 93 * - + 10 AS col0
----
-930

query I rowsort
SELECT ALL - 29 * + 85 AS col1
----
-2465

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5977
SELECT - 93 DIV + ( - 76 ), ( - 28 ) - + ( - MIN( 75 ) ) * COALESCE ( - 91, - + 72 ) + - ( 98 ) AS col1
----
1
-6951

skipif mysql # not compatible
query II rowsort label-5977
SELECT - 93 / + ( - 76 ), ( - 28 ) - + ( - MIN ( 75 ) ) * COALESCE ( - 91, - + 72 ) + - ( 98 ) AS col1
----
1
-6951

query I rowsort
SELECT DISTINCT - 57 + + 92 + - - 92 * - 98
----
-8981

onlyif mysql # DIV for integer division: 
query I rowsort label-5979
SELECT DISTINCT - 48 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT - 48 / + 50
----
0

query I rowsort
SELECT ALL - 75 + - - 78 AS col2
----
3

query I rowsort
SELECT - 46 + + 26 + + + 54 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ALL - COUNT( ALL + - 10 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL - COUNT ( ALL + - 10 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT ALL - 25 * - - 40 + 98 + + COUNT( * ) AS col0
----
-901

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL - 25 * - - 40 + 98 + + COUNT ( * ) AS col0
----
-901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5984
SELECT - 29 DIV + ( SUM( DISTINCT + 30 ) ) + + - 20 * + COALESCE ( + ( - SUM( DISTINCT - + 64 ) ), - 65 * 97 DIV COALESCE ( - 50, ( - + 48 ) ) + + 47 + 85 ) + - COUNT( * )
----
-1281

skipif mysql # not compatible
query I rowsort label-5984
SELECT - 29 / + ( SUM ( DISTINCT + 30 ) ) + + - 20 * + COALESCE ( + ( - SUM ( DISTINCT - + 64 ) ), - 65 * 97 / COALESCE ( - 50, ( - + 48 ) ) + + 47 + 85 ) + - COUNT ( * )
----
-1281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5985
SELECT + CASE 60 WHEN + CAST( COUNT( * ) AS SIGNED ) THEN 82 + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5985
SELECT + CASE 60 WHEN + CAST ( COUNT ( * ) AS INTEGER ) THEN 82 + 66 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5986
SELECT - CAST( NULL AS SIGNED ) + + ( 98 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5986
SELECT - CAST ( NULL AS INTEGER ) + + ( 98 ) AS col1
----
NULL

query II rowsort
SELECT - - 74 * - 15 * 47 AS col1, + ( + 36 )
----
-52170
36

query I rowsort
SELECT ALL + 45 * + + 67 + 82
----
3097

query I rowsort
SELECT ALL - 9 * - 14 * + + 31 + + 74
----
3980

query I rowsort
SELECT + 72 * 48
----
3456

query I rowsort
SELECT ALL + + 28 * - 46 * + + 42 AS col1
----
-54096

query II rowsort
SELECT + - 17 + + + NULLIF ( + 12, - AVG ( DISTINCT + 45 ) ) AS col2, 30 AS col2
----
-5
30

query II rowsort
SELECT ALL + - 80 * - 57 - - 51 + 2 + 31 AS col1, - 85 + 88 + 32 * - 0
----
4644
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5994
SELECT - + 47 * 56 DIV ( + 34 )
----
-77

skipif mysql # not compatible
query I rowsort label-5994
SELECT - + 47 * 56 / ( + 34 )
----
-77

query II rowsort
SELECT + 27 AS col1, 23 AS col2
----
27
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5996
SELECT + 24 * + - 64 * + CASE + + 59 WHEN - 76 THEN + 31 ELSE + 22 * 94 * - 59 + 61 + + COUNT( * ) END + + - ( + COUNT( * ) ) + - 78 DIV + 12 + + - 49 * - 82
----
187319211

skipif mysql # not compatible
query I rowsort label-5996
SELECT + 24 * + - 64 * + CASE + + 59 WHEN - 76 THEN + 31 ELSE + 22 * 94 * - 59 + 61 + + COUNT ( * ) END + + - ( + COUNT ( * ) ) + - 78 / + 12 + + - 49 * - 82
----
187319211

query I rowsort
SELECT + + 92 * + 36 * COALESCE ( - + 55, - 18 ) + - 67 - 62 * + - 8 * - 45 AS col2
----
-204547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5998
SELECT ALL CAST( NULL AS SIGNED ) / + + 28 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL CAST ( NULL AS INTEGER ) / + + 28 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5999
SELECT + COALESCE ( + 10, + 61, - - 61 * + CAST( NULL AS SIGNED ) )
----
10

skipif mysql # not compatible
query I rowsort label-5999
SELECT + COALESCE ( + 10, + 61, - - 61 * + CAST ( NULL AS INTEGER ) )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6000
SELECT + 42 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-6000
SELECT + 42 / 74
----
0

query II rowsort
SELECT ALL + 6 * + 54 AS col0, 16 + - 49 * - - ( 98 ) AS col0
----
324
-4786

query II rowsort
SELECT ALL 42 * - 59 * + - 20 * + 21 AS col1, 27
----
1040760
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6003
SELECT - CAST( NULL AS SIGNED ), 30 + - 49 * - COUNT( * ) AS col2
----
NULL
79

skipif mysql # not compatible
query II rowsort label-6003
SELECT - CAST ( NULL AS INTEGER ), 30 + - 49 * - COUNT ( * ) AS col2
----
NULL
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT - COALESCE ( + 71, - + COALESCE ( + + 39, - + 32 * - COUNT( * ) ), - 44 )
----
-71

skipif mysql # not compatible
query I rowsort label-6004
SELECT - COALESCE ( + 71, - + COALESCE ( + + 39, - + 32 * - COUNT ( * ) ), - 44 )
----
-71

query I rowsort
SELECT - 88 * 55 * + 78 AS col2
----
-377520

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT ALL CASE - 29 WHEN - ( + COUNT( * ) ) * - 60 * + 49 + COUNT( * ) + 92 + + 56 THEN - 40 * + 46 + - AVG ( + - 41 ) ELSE NULL END * - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL CASE - 29 WHEN - ( + COUNT ( * ) ) * - 60 * + 49 + COUNT ( * ) + 92 + + 56 THEN - 40 * + 46 + - AVG ( + - 41 ) ELSE NULL END * - - 68
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6007
SELECT ALL COUNT( * ) AS col0, 82 + + - CAST( - 10 AS SIGNED ) col0, - 38
----
1
92
-38

skipif mysql # not compatible
query III rowsort label-6007
SELECT ALL COUNT ( * ) AS col0, 82 + + - CAST ( - 10 AS INTEGER ) col0, - 38
----
1
92
-38

query I rowsort
SELECT ALL COALESCE ( + 40, 29 * + + 94 )
----
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6009
SELECT DISTINCT 44, 4 * NULLIF ( + COUNT( ALL - CAST( NULL AS DECIMAL ) ), 90 - + 83 ) - + + 58 AS col0
----
44
-58

skipif mysql # not compatible
query II rowsort label-6009
SELECT DISTINCT 44, 4 * NULLIF ( + COUNT ( ALL - CAST ( NULL AS REAL ) ), 90 - + 83 ) - + + 58 AS col0
----
44
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT ALL + CASE 50 WHEN - AVG ( DISTINCT + 18 ) THEN NULL ELSE + 84 END + + NULLIF ( + COUNT( * ), 13 * + + SUM( + - 43 ) + - 41 * - + COUNT( * ) ) + - 94 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL + CASE 50 WHEN - AVG ( DISTINCT + 18 ) THEN NULL ELSE + 84 END + + NULLIF ( + COUNT ( * ), 13 * + + SUM ( + - 43 ) + - 41 * - + COUNT ( * ) ) + - 94 AS col1
----
-9

query I rowsort
SELECT + 70 - ( - + 16 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT DISTINCT 93 + + SUM( - 37 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT 93 + + SUM ( - 37 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6013
SELECT - 55, + 57 + + - ( - + COUNT( 44 ) ) AS col1
----
-55
58

skipif mysql # not compatible
query II rowsort label-6013
SELECT - 55, + 57 + + - ( - + COUNT ( 44 ) ) AS col1
----
-55
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6014
SELECT - 22 * CAST( NULL AS DECIMAL ) * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6014
SELECT - 22 * CAST ( NULL AS REAL ) * - 21
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6015
SELECT ALL 28 + - COUNT( DISTINCT + 9 ) + 64 - 16 * - 94 * - 35 AS col0, 54 * + 49
----
-52549
2646

skipif mysql # not compatible
query II rowsort label-6015
SELECT ALL 28 + - COUNT ( DISTINCT + 9 ) + 64 - 16 * - 94 * - 35 AS col0, 54 * + 49
----
-52549
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT - COUNT( DISTINCT + 92 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6016
SELECT - COUNT ( DISTINCT + 92 ) AS col1
----
-1

query I rowsort
SELECT - - ( + 29 ) AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-6018
SELECT + - 78 + - + 3 + 67 DIV ( + 85 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-6018
SELECT + - 78 + - + 3 + 67 / ( + 85 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-6019
SELECT ALL 37, - COUNT( * ) col2
----
37
-1

skipif mysql # not compatible
query II rowsort label-6019
SELECT ALL 37, - COUNT ( * ) col2
----
37
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6020
SELECT + NULLIF ( - 5, + 27 ) + + - 5 * + + ( - + 52 ), SUM( ALL - 28 ) AS col0
----
255
-28

skipif mysql # not compatible
query II rowsort label-6020
SELECT + NULLIF ( - 5, + 27 ) + + - 5 * + + ( - + 52 ), SUM ( ALL - 28 ) AS col0
----
255
-28

query I rowsort
SELECT - 90 * + - 88
----
7920

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT - 10 * + - 55 + - + 57 + - - COUNT( * ) - + 63
----
431

skipif mysql # not compatible
query I rowsort label-6022
SELECT - 10 * + - 55 + - + 57 + - - COUNT ( * ) - + 63
----
431

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL + 6 * - + CASE WHEN ( 37 IN ( 2 + - 0 + COUNT( * ) * - ( - 51 ), 14 * + 87 ) ) THEN NULL ELSE + COUNT( * ) * + 15 END AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL + 6 * - + CASE WHEN ( 37 IN ( 2 + - 0 + COUNT ( * ) * - ( - 51 ), 14 * + 87 ) ) THEN NULL ELSE + COUNT ( * ) * + 15 END AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT - + COALESCE ( - - 64, - 39 + + - COALESCE ( - - 41, - + 86 - - 49 ) ) * - + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-6024
SELECT - + COALESCE ( - - 64, - 39 + + - COALESCE ( - - 41, - + 86 - - 49 ) ) * - + COUNT ( * )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6025
SELECT DISTINCT + 69 DIV ( 2 ) + + 89 - 87 - + 20 - - 93 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT + 69 / ( 2 ) + + 89 - 87 - + 20 - - 93 AS col1
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT + - CAST( + 76 AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-6026
SELECT + - CAST ( + 76 AS INTEGER ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6027
SELECT - + CAST( - 68 AS SIGNED ) + - - 27 + COUNT( * ) + + 63
----
159

skipif mysql # not compatible
query I rowsort label-6027
SELECT - + CAST ( - 68 AS INTEGER ) + - - 27 + COUNT ( * ) + + 63
----
159

query II rowsort
SELECT + ( - + 59 ) col1, + 41 + 13 AS col1
----
-59
54

onlyif mysql # DIV for integer division: 
query II rowsort label-6029
SELECT - 33, + 63 DIV + ( - 7 ) AS col2
----
-33
-9

skipif mysql # not compatible
query II rowsort label-6029
SELECT - 33, + 63 / + ( - 7 ) AS col2
----
-33
-9

query II rowsort
SELECT + 5 AS col2, - 93 col0
----
5
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-6031
SELECT - COUNT( * ) AS col2, 74 AS col0
----
-1
74

skipif mysql # not compatible
query II rowsort label-6031
SELECT - COUNT ( * ) AS col2, 74 AS col0
----
-1
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6032
SELECT + 56 AS col0, COUNT( * ) * - 50 AS col1
----
56
-50

skipif mysql # not compatible
query II rowsort label-6032
SELECT + 56 AS col0, COUNT ( * ) * - 50 AS col1
----
56
-50

query I rowsort
SELECT ALL - + ( 57 ) AS col0
----
-57

query I rowsort
SELECT ALL 3 * + 40
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL - COUNT( * ) * - SUM( - - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL - COUNT ( * ) * - SUM ( - - 66 )
----
66

query I rowsort
SELECT DISTINCT 95 * - + 64 AS col1
----
-6080

query I rowsort
SELECT ALL - COALESCE ( 85, + + 99 + - + 87 ) AS col1
----
-85

query I rowsort
SELECT 62 * 46 AS col1
----
2852

query I rowsort
SELECT 98 * 89 col1
----
8722

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT 69 + 62 + - COUNT( * ) + + 46 col2
----
176

skipif mysql # not compatible
query I rowsort label-6040
SELECT 69 + 62 + - COUNT ( * ) + + 46 col2
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT NULLIF ( - 15, + 90 ) - + + COUNT( DISTINCT + + 58 ) * + + COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6041
SELECT NULLIF ( - 15, + 90 ) - + + COUNT ( DISTINCT + + 58 ) * + + COUNT ( * ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT 38 * 37 + + COUNT( * ) col1
----
1407

skipif mysql # not compatible
query I rowsort label-6042
SELECT 38 * 37 + + COUNT ( * ) col1
----
1407

query I rowsort
SELECT 23 - 68 - + 31 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT ALL ( + 98 ) + COUNT( * ) + + 28 - - 73 * - + CASE + 92 WHEN 16 THEN 71 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL ( + 98 ) + COUNT ( * ) + + 28 - - 73 * - + CASE + 92 WHEN 16 THEN 71 END AS col0
----
NULL

query II rowsort
SELECT DISTINCT 47 * + 77, + 17 AS col2
----
3619
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6046
SELECT 7 DIV - + 44 AS col0, COUNT( ALL - 26 )
----
0
1

skipif mysql # not compatible
query II rowsort label-6046
SELECT 7 / - + 44 AS col0, COUNT ( ALL - 26 )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL - 75 + - 0 + - - 32 + + ( ( + 66 ) ) * + + MIN( DISTINCT + ( + 46 ) ) * + 83
----
251945

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL - 75 + - 0 + - - 32 + + ( ( + 66 ) ) * + + MIN ( DISTINCT + ( + 46 ) ) * + 83
----
251945

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT 13 + + - COUNT( DISTINCT - 84 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6048
SELECT 13 + + - COUNT ( DISTINCT - 84 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT DISTINCT MAX( + 40 ) * - 82 col2
----
-3280

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT MAX ( + 40 ) * - 82 col2
----
-3280

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6050
SELECT ALL CAST( NULL AS DECIMAL ) + + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL CAST ( NULL AS REAL ) + + 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT ( 26 ) + + - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-6051
SELECT ( 26 ) + + - COUNT ( * )
----
25

query I rowsort
SELECT DISTINCT 87 * + + 62
----
5394

query I rowsort
SELECT 42 + + 22
----
64

query II rowsort
SELECT DISTINCT - 80 + 13 AS col2, - 74
----
-67
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6055
SELECT - CASE + 51 WHEN + 29 * - + 38 / + 41 THEN - - ( + 8 ) END, CAST( NULL AS SIGNED ) * + + 19 * - COUNT( * ) * + 18 * + + ( 60 ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6055
SELECT - CASE + 51 WHEN + 29 * - + 38 / + 41 THEN - - ( + 8 ) END, CAST ( NULL AS INTEGER ) * + + 19 * - COUNT ( * ) * + 18 * + + ( 60 ) AS col1
----
NULL
NULL

query I rowsort
SELECT ALL + COALESCE ( 72, - - 36 ) + + + 38 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT 18 * 3 * - MAX( DISTINCT 48 )
----
-2592

skipif mysql # not compatible
query I rowsort label-6057
SELECT 18 * 3 * - MAX ( DISTINCT 48 )
----
-2592

query I rowsort
SELECT ALL - ( - - 97 ) * + 66 col2
----
-6402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6059
SELECT ALL - + CAST( + + 3 AS SIGNED ) * - + 46 col2
----
138

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL - + CAST ( + + 3 AS INTEGER ) * - + 46 col2
----
138

query II rowsort
SELECT + 54 * + 68 col2, - 34 AS col1
----
3672
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-6061
SELECT 98 * + - 5, - COUNT( * ) * 97 AS col1
----
-490
-97

skipif mysql # not compatible
query II rowsort label-6061
SELECT 98 * + - 5, - COUNT ( * ) * 97 AS col1
----
-490
-97

query I rowsort
SELECT + 30 + + 64 AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6063
SELECT DISTINCT - - 36 * - COUNT( * ) - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT - - 36 * - COUNT ( * ) - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6064
SELECT DISTINCT 8 DIV - - ( COUNT( * ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT 8 / - - ( COUNT ( * ) ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL - + SUM( DISTINCT + + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL - + SUM ( DISTINCT + + 60 )
----
-60

query I rowsort
SELECT DISTINCT + 1 * ( 12 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT 98 + + COUNT( * ) + - + ( 61 ) + - 46 - - 57 * - 72 AS col0
----
-4112

skipif mysql # not compatible
query I rowsort label-6067
SELECT 98 + + COUNT ( * ) + - + ( 61 ) + - 46 - - 57 * - 72 AS col0
----
-4112

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT + SUM( + + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-6068
SELECT + SUM ( + + 52 )
----
52

query I rowsort
SELECT ALL - 6 + - 84 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT 33 * + + COUNT( * ) + 30 + - 77 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-6070
SELECT 33 * + + COUNT ( * ) + 30 + - 77 AS col2
----
-14

query II rowsort
SELECT 42 AS col2, - ( - 18 )
----
42
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT ALL - ( MIN( ALL 65 ) ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL - ( MIN ( ALL 65 ) ) col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6073
SELECT ALL - CAST( - 42 AS SIGNED ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL - CAST ( - 42 AS INTEGER ) AS col0
----
42

query II rowsort
SELECT + 82, + 75 col2
----
82
75

query I rowsort
SELECT ALL + 43 + + + 91 AS col1
----
134

query I rowsort
SELECT DISTINCT - 89 + + + 78
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT ALL COUNT( * ) + - + 65 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL COUNT ( * ) + - + 65 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ALL - MAX( 73 ) + CASE + COALESCE ( + SUM( DISTINCT + - 31 ), - 77 ) WHEN - 30 THEN - 59 + + + CASE AVG ( DISTINCT 12 ) WHEN + + 76 + - 15 * 59 * - 21 * + 9 THEN COUNT( - - 18 ) + + ( + 90 ) + - 4 + - COUNT( * ) WHEN + 10 THEN - 8 ELSE NULL END + 62 ELSE NULL END - + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL - MAX ( 73 ) + CASE + COALESCE ( + SUM ( DISTINCT + - 31 ), - 77 ) WHEN - 30 THEN - 59 + + + CASE AVG ( DISTINCT 12 ) WHEN + + 76 + - 15 * 59 * - 21 * + 9 THEN COUNT ( - - 18 ) + + ( + 90 ) + - 4 + - COUNT ( * ) WHEN + 10 THEN - 8 ELSE NULL END + 62 ELSE NULL END - + 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT ALL SUM( + 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL SUM ( + 58 ) AS col0
----
58

query II rowsort
SELECT - 93 AS col0, 94 * - + 84 AS col2
----
-93
-7896

query I rowsort
SELECT 3 - + 87 AS col0
----
-84

query II rowsort
SELECT 56 AS col1, 83
----
56
83

query I rowsort
SELECT ALL - 44 + 35
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT - 53 * - COALESCE ( + 59, SUM( ALL - 20 ), - 68 ) - 5
----
3122

skipif mysql # not compatible
query I rowsort label-6084
SELECT - 53 * - COALESCE ( + 59, SUM ( ALL - 20 ), - 68 ) - 5
----
3122

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6085
SELECT ALL 7 col2, CAST( - 45 AS SIGNED )
----
7
-45

skipif mysql # not compatible
query II rowsort label-6085
SELECT ALL 7 col2, CAST ( - 45 AS INTEGER )
----
7
-45

query II rowsort
SELECT DISTINCT 21 AS col2, - 79
----
21
-79

query I rowsort
SELECT DISTINCT ( + 46 ) * - 74 * + 6 AS col1
----
-20424

query I rowsort
SELECT ALL 69 * - 80
----
-5520

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6089
SELECT - 61 AS col0, 83 + - 89 * 63 * + CAST( - + 78 AS SIGNED ) AS col0
----
-61
437429

skipif mysql # not compatible
query II rowsort label-6089
SELECT - 61 AS col0, 83 + - 89 * 63 * + CAST ( - + 78 AS INTEGER ) AS col0
----
-61
437429

query I rowsort
SELECT NULLIF ( - + 21, + - 19 ) * + - 51 AS col0
----
1071

query I rowsort
SELECT 13 * - 90
----
-1170

onlyif mysql # aggregate syntax: 
query II rowsort label-6092
SELECT ALL + 24 * SUM( 51 ), - 7 col2
----
1224
-7

skipif mysql # not compatible
query II rowsort label-6092
SELECT ALL + 24 * SUM ( 51 ), - 7 col2
----
1224
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6093
SELECT CASE - CAST( NULL AS SIGNED ) WHEN + 41 / 90 * - 29 + + - 10 / + 5 * - - 56 THEN NULL WHEN - 84 THEN - - 39 WHEN - 10 + 81 THEN NULL ELSE NULL END + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN + 41 / 90 * - 29 + + - 10 / + 5 * - - 56 THEN NULL WHEN - 84 THEN - - 39 WHEN - 10 + 81 THEN NULL ELSE NULL END + 68
----
NULL

query I rowsort
SELECT + 19 + + 81 * + 96
----
7795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6095
SELECT + - CASE - ( ( - - 79 ) ) WHEN + 33 * 88 THEN 86 + - CAST( - - 1 AS SIGNED ) / 22 * + - 17 - SUM( - + 4 ) + 99 ELSE NULL END - - 23 - + 14 + 58 + COUNT( * ) * + - 20 * + 92 * + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT + - CASE - ( ( - - 79 ) ) WHEN + 33 * 88 THEN 86 + - CAST ( - - 1 AS INTEGER ) / 22 * + - 17 - SUM ( - + 4 ) + 99 ELSE NULL END - - 23 - + 14 + 58 + COUNT ( * ) * + - 20 * + 92 * + 78 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6096
SELECT ALL - CASE + COUNT( * ) WHEN 96 * + 1 THEN NULL WHEN COUNT( DISTINCT COALESCE ( - - COALESCE ( - + 59, + 1 ), 14 ) ) THEN NULL WHEN + 66 THEN - CAST( - 90 AS SIGNED ) + AVG ( DISTINCT 78 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL - CASE + COUNT ( * ) WHEN 96 * + 1 THEN NULL WHEN COUNT ( DISTINCT COALESCE ( - - COALESCE ( - + 59, + 1 ), 14 ) ) THEN NULL WHEN + 66 THEN - CAST ( - 90 AS INTEGER ) + AVG ( DISTINCT 78 ) END
----
NULL

query I rowsort
SELECT + + 69 * 38 AS col0
----
2622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6098
SELECT ALL + - 33 DIV + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL + - 33 / + COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT + 68 + - + COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6099
SELECT + 68 + - + COUNT ( * ) AS col1
----
67

query I rowsort
SELECT DISTINCT + + 42 col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6101
SELECT - 13 DIV - 19 * + + ( + 60 )
----
0

skipif mysql # not compatible
query I rowsort label-6101
SELECT - 13 / - 19 * + + ( + 60 )
----
0

query I rowsort
SELECT ALL 70 * 71 + + 62 + 85 col2
----
5117

query I rowsort
SELECT + 82 * + 20 + - 41 AS col0
----
1599

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6104
SELECT + COALESCE ( + 31, - - 58 * + 50 + - + COALESCE ( - 55, + 56 - + + 69 + - 38 DIV - CASE 21 WHEN - CASE 22 WHEN + 20 THEN + 14 WHEN + 72 THEN NULL END THEN 57 WHEN + NULLIF ( + 8, + - 18 ) + 79 * - 22 THEN - - MAX( - + 26 ) ELSE NULL END, - COUNT( * ) + + 74 ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6104
SELECT + COALESCE ( + 31, - - 58 * + 50 + - + COALESCE ( - 55, + 56 - + + 69 + - 38 / - CASE 21 WHEN - CASE 22 WHEN + 20 THEN + 14 WHEN + 72 THEN NULL END THEN 57 WHEN + NULLIF ( + 8, + - 18 ) + 79 * - 22 THEN - - MAX ( - + 26 ) ELSE NULL END, - COUNT ( * ) + + 74 ) ) AS col1
----
31

query I rowsort
SELECT NULLIF ( + 44, + 25 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT DISTINCT - 97 * + COUNT( * ) + 1 - + COUNT( * ) * - 82
----
-14

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT - 97 * + COUNT ( * ) + 1 - + COUNT ( * ) * - 82
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6107
SELECT ALL + COALESCE ( - 17, - - 4 * 10 ) * - SUM( + 47 ) - - 52 * + CAST( 41 AS SIGNED ) AS col2
----
2931

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL + COALESCE ( - 17, - - 4 * 10 ) * - SUM ( + 47 ) - - 52 * + CAST ( 41 AS INTEGER ) AS col2
----
2931

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6108
SELECT + ( + - COUNT( * ) ) DIV - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6108
SELECT + ( + - COUNT ( * ) ) / - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT MAX( - + 6 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-6109
SELECT MAX ( - + 6 ) AS col1
----
-6

query I rowsort
SELECT ALL + 98 * - 54 + - ( 4 )
----
-5296

query II rowsort
SELECT DISTINCT 76 * - 71 col0, 19
----
-5396
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT MAX( ALL + - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-6112
SELECT MAX ( ALL + - 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT + ( MAX( DISTINCT 10 ) )
----
10

skipif mysql # not compatible
query I rowsort label-6113
SELECT + ( MAX ( DISTINCT 10 ) )
----
10

query I rowsort
SELECT + 11 + + - 45 * + 95
----
-4264

query I rowsort
SELECT - 63 + - 46 * 78
----
-3651

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT MAX( ALL - 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-6116
SELECT MAX ( ALL - 75 ) AS col1
----
-75

query I rowsort
SELECT ALL + + 86 * - + 59 - + 26 AS col1
----
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT - 9 + + MAX( 77 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6118
SELECT - 9 + + MAX ( 77 ) AS col1
----
68

query I rowsort
SELECT ALL + - 70 * - 46 AS col0
----
3220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6120
SELECT - 23 + + - 14 * + + COUNT( * ) DIV + MIN( DISTINCT + ( - 27 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-6120
SELECT - 23 + + - 14 * + + COUNT ( * ) / + MIN ( DISTINCT + ( - 27 ) )
----
-23

query I rowsort
SELECT - ( + 17 ) + - + 98
----
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-6122
SELECT - + ( ( 12 ) ) DIV - - 54
----
0

skipif mysql # not compatible
query I rowsort label-6122
SELECT - + ( ( 12 ) ) / - - 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT - - 58 * - - 63 / - 23 + 52 + + CASE - + 68 WHEN + + 91 THEN - 41 WHEN + ( + - 6 ) + - COUNT( * ) THEN NULL END / + - 23 * - - NULLIF ( 98, + + 72 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6123
SELECT - - 58 * - - 63 / - 23 + 52 + + CASE - + 68 WHEN + + 91 THEN - 41 WHEN + ( + - 6 ) + - COUNT ( * ) THEN NULL END / + - 23 * - - NULLIF ( 98, + + 72 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6124
SELECT - CAST( + 26 AS SIGNED ), 59 AS col2
----
-26
59

skipif mysql # not compatible
query II rowsort label-6124
SELECT - CAST ( + 26 AS INTEGER ), 59 AS col2
----
-26
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT - + CAST( AVG ( DISTINCT 19 ) AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-6125
SELECT - + CAST ( AVG ( DISTINCT 19 ) AS INTEGER )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6126
SELECT - 12 DIV + MIN( 19 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6126
SELECT - 12 / + MIN ( 19 ) col1
----
0

query I rowsort
SELECT ALL 69 * - 97 + - 30 AS col2
----
-6723

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT + - CASE + 91 WHEN - 97 - - 89 - - 36 + + + 74 * + COALESCE ( 62, - AVG ( DISTINCT 65 ) ) * + 70 + - - MIN( 45 ) + - ( - + MIN( + 4 ) ) / - 42 / 15 THEN - ( 1 ) + - MIN( ALL COALESCE ( - + 16, + + 22, 94 + 68 ) ) WHEN + 47 * 16 THEN NULL END * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT + - CASE + 91 WHEN - 97 - - 89 - - 36 + + + 74 * + COALESCE ( 62, - AVG ( DISTINCT 65 ) ) * + 70 + - - MIN ( 45 ) + - ( - + MIN ( + 4 ) ) / - 42 / 15 THEN - ( 1 ) + - MIN ( ALL COALESCE ( - + 16, + + 22, 94 + 68 ) ) WHEN + 47 * 16 THEN NULL END * + 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6129
SELECT ALL 89 DIV - 26 - - - 99 + - 27 + 70 * - - 36 * 30 + - COUNT( * ) + + 87
----
75557

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL 89 / - 26 - - - 99 + - 27 + 70 * - - 36 * 30 + - COUNT ( * ) + + 87
----
75557

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6130
SELECT - 14 + + COUNT( * ) DIV + + 13 * - + 81 * 20 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-6130
SELECT - 14 + + COUNT ( * ) / + + 13 * - + 81 * 20 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6131
SELECT + CASE + 83 WHEN + 43 THEN + - CAST( - ( NULLIF ( + 43, + 53 ) ) AS DECIMAL ) END * + + 75 - - CAST( - COUNT( * ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT + CASE + 83 WHEN + 43 THEN + - CAST ( - ( NULLIF ( + 43, + 53 ) ) AS REAL ) END * + + 75 - - CAST ( - COUNT ( * ) AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6132
SELECT - 28 DIV 8 DIV + 27 + 88 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6132
SELECT - 28 / 8 / + 27 + 88 AS col1
----
88

query I rowsort
SELECT + COALESCE ( + 22, + 17 - + 43 ) AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6134
SELECT ALL COUNT( * ) DIV - COUNT( * ) + + 10 * - 52
----
-521

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL COUNT ( * ) / - COUNT ( * ) + + 10 * - 52
----
-521

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT + ( - COUNT( ALL + - 72 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6135
SELECT + ( - COUNT ( ALL + - 72 ) ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6136
SELECT ALL + 54 DIV - 18 + 79 - COUNT( * ) + + 37 + - 3 + COUNT( * ) * + + 40 * - COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL + 54 / - 18 + 79 - COUNT ( * ) + + 37 + - 3 + COUNT ( * ) * + + 40 * - COUNT ( * ) AS col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6137
SELECT - 65 DIV + + MIN( ALL 36 ) + - + 94 + 55 col2, 81 + + 72 AS col2
----
-40
153

skipif mysql # not compatible
query II rowsort label-6137
SELECT - 65 / + + MIN ( ALL 36 ) + - + 94 + 55 col2, 81 + + 72 AS col2
----
-40
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6138
SELECT + 47 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6138
SELECT + 47 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6139
SELECT + CASE - + 76 WHEN - COUNT( * ) * + - CAST( COUNT( * ) AS SIGNED ) - + COALESCE ( - + 60, + - 8 ) THEN NULL WHEN + AVG ( DISTINCT + - 69 ) / + 2 + + 16 THEN 22 + - 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6139
SELECT + CASE - + 76 WHEN - COUNT ( * ) * + - CAST ( COUNT ( * ) AS INTEGER ) - + COALESCE ( - + 60, + - 8 ) THEN NULL WHEN + AVG ( DISTINCT + - 69 ) / + 2 + + 16 THEN 22 + - 29 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT ( COALESCE ( + - 1, - - COUNT( DISTINCT - 29 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6140
SELECT ( COALESCE ( + - 1, - - COUNT ( DISTINCT - 29 ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT - CASE + - 72 WHEN MAX( DISTINCT 1 ) THEN + + 41 / + COALESCE ( - COUNT( * ), 60 * ( + 91 ) - - 85 - 16 ) + - 96 ELSE NULL END * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6141
SELECT - CASE + - 72 WHEN MAX ( DISTINCT 1 ) THEN + + 41 / + COALESCE ( - COUNT ( * ), 60 * ( + 91 ) - - 85 - 16 ) + - 96 ELSE NULL END * - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT + COUNT( * ) * + - ( 53 ) + + + SUM( 30 )
----
-23

skipif mysql # not compatible
query I rowsort label-6142
SELECT + COUNT ( * ) * + - ( 53 ) + + + SUM ( 30 )
----
-23

query I rowsort
SELECT + 40 * - - 48 * - 48 * + 38 AS col1
----
-3502080

query I rowsort
SELECT ALL 63 * 25
----
1575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6145
SELECT ALL 68 * + - 66 * COUNT( * ) + - - CAST( NULL AS SIGNED ) * - 61 / + 98 - 30 * COUNT( * ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL 68 * + - 66 * COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * - 61 / + 98 - 30 * COUNT ( * ) + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + + 68 * 49 * + - 64 AS col1
----
-213248

query I rowsort
SELECT + - 9 * - 26 + + + 41
----
275

query I rowsort
SELECT - - 4 * + + 61 AS col0
----
244

onlyif mysql # DIV for integer division: 
query II rowsort label-6149
SELECT + 60 - - - ( - - 69 ) * - 78 + 71 AS col1, + 16 DIV - 9 AS col2
----
5513
-1

skipif mysql # not compatible
query II rowsort label-6149
SELECT + 60 - - - ( - - 69 ) * - 78 + 71 AS col1, + 16 / - 9 AS col2
----
5513
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6150
SELECT - COALESCE ( MIN( DISTINCT + 96 ), + COUNT( * ), - 70 * + 34 ) DIV - 14 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6150
SELECT - COALESCE ( MIN ( DISTINCT + 96 ), + COUNT ( * ), - 70 * + 34 ) / - 14 AS col2
----
6

query I rowsort
SELECT - + ( 44 ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-6152
SELECT + 79 AS col1, + 12 DIV + + 4 col1
----
79
3

skipif mysql # not compatible
query II rowsort label-6152
SELECT + 79 AS col1, + 12 / + + 4 col1
----
79
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6153
SELECT - CAST( NULL AS DECIMAL ) * 16 * - 32 AS col2, - 15
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-6153
SELECT - CAST ( NULL AS REAL ) * 16 * - 32 AS col2, - 15
----
NULL
-15

query II rowsort
SELECT DISTINCT + 13 + 3 + + - 59 AS col2, 26
----
-43
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT 11 - - + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-6155
SELECT 11 - - + COUNT ( * )
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6156
SELECT 42 / - 68 + + + ( NULLIF ( + 27, - 94 * - 12 + + 73 * + 15 + + ( 1 ) - - + ( - - 69 ) + 4 - 98 / + 45 + - 22 ) ) * - ( MAX( DISTINCT - 0 ) ) + CAST( NULL AS DECIMAL ) + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6156
SELECT 42 / - 68 + + + ( NULLIF ( + 27, - 94 * - 12 + + 73 * + 15 + + ( 1 ) - - + ( - - 69 ) + 4 - 98 / + 45 + - 22 ) ) * - ( MAX ( DISTINCT - 0 ) ) + CAST ( NULL AS REAL ) + + 82
----
NULL

query I rowsort
SELECT DISTINCT + + 50 + + - 59
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6158
SELECT 91 + - 26 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6158
SELECT 91 + - 26 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6159
SELECT - 17 + 33 + + MIN( DISTINCT - 68 ) + + + AVG ( ALL - 28 ) * 98 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6159
SELECT - 17 + 33 + + MIN ( DISTINCT - 68 ) + + + AVG ( ALL - 28 ) * 98 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6160
SELECT ALL + 20 + + 49 + - - MIN( 71 ) + + 79 + 56, + 29 AS col0
----
275
29

skipif mysql # not compatible
query II rowsort label-6160
SELECT ALL + 20 + + 49 + - - MIN ( 71 ) + + 79 + 56, + 29 AS col0
----
275
29

query I rowsort
SELECT DISTINCT + ( 29 ) + - 80 AS col2
----
-51

query I rowsort
SELECT DISTINCT - NULLIF ( - 59, - 94 ) AS col1
----
59

query I rowsort
SELECT DISTINCT 83 * 85 col1
----
7055

query I rowsort
SELECT 26 + + 8 AS col0
----
34

query I rowsort
SELECT 97 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT ALL - 12 * + COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL - 12 * + COUNT ( * ) AS col0
----
-12

query I rowsort
SELECT 3 - - 58 AS col0
----
61

query I rowsort
SELECT - 35 * + - 88 + - 38 col0
----
3042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6169
SELECT ( + COUNT( * ) ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6169
SELECT ( + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( - 90 ) * + 57 - 52 AS col0
----
-5182

query II rowsort
SELECT ALL - 87 AS col1, + 64 * - 62
----
-87
-3968

query II rowsort
SELECT + 35, 63 * - 34 AS col2
----
35
-2142

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT ALL - COUNT( + 45 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL - COUNT ( + 45 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL + MAX( DISTINCT + 68 ) - - 18
----
86

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + MAX ( DISTINCT + 68 ) - - 18
----
86

query II rowsort
SELECT 53 AS col2, 37 col2
----
53
37

query II rowsort
SELECT ALL - 3 AS col0, 64 + - + 79 AS col2
----
-3
-15

query II rowsort
SELECT COALESCE ( + - 83, + - 10 ) - + ( - - 83 ) * 75 AS col0, + 6 AS col2
----
-6308
6

query I rowsort
SELECT DISTINCT + ( + + 12 ) * + 94
----
1128

onlyif mysql # aggregate syntax: 
query II rowsort label-6179
SELECT COUNT( * ) - + 90, + 55 AS col0
----
-89
55

skipif mysql # not compatible
query II rowsort label-6179
SELECT COUNT ( * ) - + 90, + 55 AS col0
----
-89
55

onlyif mysql # DIV for integer division: 
query II rowsort label-6180
SELECT + 4, - NULLIF ( - 13, + 40 ) DIV - 55 col2
----
4
0

skipif mysql # not compatible
query II rowsort label-6180
SELECT + 4, - NULLIF ( - 13, + 40 ) / - 55 col2
----
4
0

query I rowsort
SELECT ALL - - ( + + ( + COALESCE ( + - 37, + 5, + 23 + 10 ) ) ) col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6182
SELECT + 49 DIV - + COUNT( * ) * COUNT( * ) + 33
----
-16

skipif mysql # not compatible
query I rowsort label-6182
SELECT + 49 / - + COUNT ( * ) * COUNT ( * ) + 33
----
-16

query I rowsort
SELECT 77 * 18 AS col2
----
1386

onlyif mysql # aggregate syntax: 
query II rowsort label-6184
SELECT COUNT( * ) - - 92, - 41 AS col0
----
93
-41

skipif mysql # not compatible
query II rowsort label-6184
SELECT COUNT ( * ) - - 92, - 41 AS col0
----
93
-41

query I rowsort
SELECT ALL + NULLIF ( + + 59, 87 + + 37 ) * 65
----
3835

query II rowsort
SELECT ALL - 67, + 87 AS col2
----
-67
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6187
SELECT 57 + 47 + 90 + + - ( 96 ) DIV - + COUNT( * ) + 57 + + - 10 AS col0
----
337

skipif mysql # not compatible
query I rowsort label-6187
SELECT 57 + 47 + 90 + + - ( 96 ) / - + COUNT ( * ) + 57 + + - 10 AS col0
----
337

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT ALL + 87 + + ( + COALESCE ( 97, - MIN( + - 97 ) ) )
----
184

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL + 87 + + ( + COALESCE ( 97, - MIN ( + - 97 ) ) )
----
184

query I rowsort
SELECT + 7 + - + 64 + + - 1 * - 15 AS col0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6190
SELECT ALL + CAST( NULL AS SIGNED ) * 17 * - + 62 + - 22 * + ( + 23 ) * 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL + CAST ( NULL AS INTEGER ) * 17 * - + 62 + - 22 * + ( + 23 ) * 86 AS col1
----
NULL

query II rowsort
SELECT - 8 AS col0, 62
----
-8
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT + COALESCE ( 83, + + MAX( DISTINCT - 48 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6192
SELECT + COALESCE ( 83, + + MAX ( DISTINCT - 48 ) ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL COUNT( * ) + - ( - 39 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL COUNT ( * ) + - ( - 39 ) AS col2
----
40

query I rowsort
SELECT - ( - 20 ) + - 1 col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6195
SELECT - + 59 AS col1, COUNT( * ) DIV - - 20 AS col1
----
-59
0

skipif mysql # not compatible
query II rowsort label-6195
SELECT - + 59 AS col1, COUNT ( * ) / - - 20 AS col1
----
-59
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT NULLIF ( + - 44, COUNT( * ) )
----
-44

skipif mysql # not compatible
query I rowsort label-6196
SELECT NULLIF ( + - 44, COUNT ( * ) )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT + MIN( + - 81 ) + + + 80
----
-1

skipif mysql # not compatible
query I rowsort label-6197
SELECT + MIN ( + - 81 ) + + + 80
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6198
SELECT ALL + MIN( DISTINCT - 47 ) + CASE + MIN( DISTINCT - 89 ) WHEN - - 64 THEN - CAST( NULL AS DECIMAL ) - + 77 / 97 / + - 18 + - 58 + - MAX( 4 ) WHEN + 36 THEN - 29 ELSE NULL END - - 49 * - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL + MIN ( DISTINCT - 47 ) + CASE + MIN ( DISTINCT - 89 ) WHEN - - 64 THEN - CAST ( NULL AS REAL ) - + 77 / 97 / + - 18 + - 58 + - MAX ( 4 ) WHEN + 36 THEN - 29 ELSE NULL END - - 49 * - + 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6199
SELECT - - CAST( NULL AS SIGNED ), - 78 AS col1
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-6199
SELECT - - CAST ( NULL AS INTEGER ), - 78 AS col1
----
NULL
-78

query I rowsort
SELECT DISTINCT - 69 + + 52 col1
----
-17

query II rowsort
SELECT 17 * 68 AS col1, + 12 + 10 AS col1
----
1156
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT ALL - COUNT( * ) * 76 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL - COUNT ( * ) * 76 AS col0
----
-76

query I rowsort
SELECT 23 + - 81 * 77
----
-6214

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT - COUNT( + ( + 11 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6204
SELECT - COUNT ( + ( + 11 ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 5 * - 64 * 4 - 94
----
-1374

query II rowsort
SELECT 6 * + + 83, 66 AS col0
----
498
66

query I rowsort
SELECT 42 * + COALESCE ( + 70, 40 ) AS col1
----
2940

onlyif mysql # aggregate syntax: 
query II rowsort label-6208
SELECT ALL - ( 99 ) AS col2, COUNT( * ) AS col1
----
-99
1

skipif mysql # not compatible
query II rowsort label-6208
SELECT ALL - ( 99 ) AS col2, COUNT ( * ) AS col1
----
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT ALL + 28 * SUM( - ( 36 ) ) * 57 - + 98 AS col0
----
-57554

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL + 28 * SUM ( - ( 36 ) ) * 57 - + 98 AS col0
----
-57554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6210
SELECT - NULLIF ( + COUNT( * ), + 36 + - + 24 ) DIV + COUNT( * ) + 17 + COUNT( * ) + + + 30 - - 48 DIV - 95
----
47

skipif mysql # not compatible
query I rowsort label-6210
SELECT - NULLIF ( + COUNT ( * ), + 36 + - + 24 ) / + COUNT ( * ) + 17 + COUNT ( * ) + + + 30 - - 48 / - 95
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT ALL 28 * - - COUNT( * ) col0
----
28

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL 28 * - - COUNT ( * ) col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT 57 + - COUNT( * ) + 81 col2
----
137

skipif mysql # not compatible
query I rowsort label-6212
SELECT 57 + - COUNT ( * ) + 81 col2
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6213
SELECT ALL - MAX( DISTINCT + - 14 ) DIV + 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL - MAX ( DISTINCT + - 14 ) / + 28 AS col0
----
0

query I rowsort
SELECT 31 * ( + ( + 22 ) )
----
682

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT DISTINCT + 63 * ( 18 ) * MIN( + 8 ) * + + COALESCE ( - 80, 31 * - + 69 ) - - 28
----
-725732

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT + 63 * ( 18 ) * MIN ( + 8 ) * + + COALESCE ( - 80, 31 * - + 69 ) - - 28
----
-725732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6216
SELECT COUNT( ALL + CAST( NULL AS SIGNED ) ) DIV - 24 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6216
SELECT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) / - 24 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6217
SELECT - + COALESCE ( - + 70, - 86, COALESCE ( - - 48, + - 82 * 24 + - - 56 + - - AVG ( ALL + + 13 ) * 88 ) ) * - CASE CAST( NULL AS SIGNED ) WHEN - 52 * 41 THEN NULL WHEN COUNT( * ) * - - NULLIF ( 12, + 37 ) THEN NULLIF ( 18, - 94 ) + + - 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6217
SELECT - + COALESCE ( - + 70, - 86, COALESCE ( - - 48, + - 82 * 24 + - - 56 + - - AVG ( ALL + + 13 ) * 88 ) ) * - CASE CAST ( NULL AS INTEGER ) WHEN - 52 * 41 THEN NULL WHEN COUNT ( * ) * - - NULLIF ( 12, + 37 ) THEN NULLIF ( 18, - 94 ) + + - 40 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6218
SELECT ALL - - 83 + - CAST( NULL AS SIGNED ) * + - 82 - + 79 + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL - - 83 + - CAST ( NULL AS INTEGER ) * + - 82 - + 79 + + 68
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6219
SELECT ALL - 16 + 20 AS col0, - 7 * + COUNT( * ) + + + CAST( - NULLIF ( + - 98, - - 30 + + 77 ) AS SIGNED ) + - - COUNT( ALL + ( + 11 ) ) AS col2
----
4
92

skipif mysql # not compatible
query II rowsort label-6219
SELECT ALL - 16 + 20 AS col0, - 7 * + COUNT ( * ) + + + CAST ( - NULLIF ( + - 98, - - 30 + + 77 ) AS INTEGER ) + - - COUNT ( ALL + ( + 11 ) ) AS col2
----
4
92

query I rowsort
SELECT + 92 * 83 + - + 49 * 54 * + + 32 + + - 6 - 87 AS col0
----
-77129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6221
SELECT - MAX( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6221
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT - - CASE - 13 WHEN COUNT( * ) THEN - 74 * 42 - + 22 + 34 END - - + SUM( + 68 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT - - CASE - 13 WHEN COUNT ( * ) THEN - 74 * 42 - + 22 + 34 END - - + SUM ( + 68 ) AS col0
----
NULL

query I rowsort
SELECT + + 0 - - 95 col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6224
SELECT - CASE + ( + 4 ) WHEN + CAST( NULL AS SIGNED ) THEN 71 * - 94 + 36 + + COUNT( * ) / + + 12 + 1 + - - 26 * - 55 END AS col1, ( + CAST( NULL AS SIGNED ) ) + - COUNT( * ) + 38 + - 98 / 33 / - 71 * 32 / - 43 * COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6224
SELECT - CASE + ( + 4 ) WHEN + CAST ( NULL AS INTEGER ) THEN 71 * - 94 + 36 + + COUNT ( * ) / + + 12 + 1 + - - 26 * - 55 END AS col1, ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + 38 + - 98 / 33 / - 71 * 32 / - 43 * COUNT ( * )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6225
SELECT + - ( + 39 ) DIV + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-6225
SELECT + - ( + 39 ) / + COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT ALL - 20 - + COUNT( * ) + 39 * 48
----
1851

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL - 20 - + COUNT ( * ) + 39 * 48
----
1851

query I rowsort
SELECT + 94 * 95
----
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT ALL + 39 - - 86 - - 6 + + + MIN( ALL - 15 ) + 62
----
178

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL + 39 - - 86 - - 6 + + + MIN ( ALL - 15 ) + 62
----
178

query I rowsort
SELECT ALL - 70 * + 71 * 62
----
-308140

query I rowsort
SELECT + 31 - 4
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL 13 - ( MAX( - + 6 ) ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL 13 - ( MAX ( - + 6 ) ) AS col1
----
19

query I rowsort
SELECT + 95 + + 84 - 97 AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6233
SELECT - 0 DIV - 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6233
SELECT - 0 / - 29 AS col0
----
0

query I rowsort
SELECT + 12 * - 64
----
-768

query II rowsort
SELECT + 71 + - 44 * - - 74, 26 + 80 * + 4 * 77 AS col0
----
-3185
24666

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT - NULLIF ( - 17, - + 10 - - + COUNT( * ) - COUNT( * ) ) col2
----
17

skipif mysql # not compatible
query I rowsort label-6236
SELECT - NULLIF ( - 17, - + 10 - - + COUNT ( * ) - COUNT ( * ) ) col2
----
17

query I rowsort
SELECT + 47 + + + 82
----
129

query I rowsort
SELECT ALL - 94 * - 78 * 30
----
219960

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT + 41 * - COUNT( + 21 ) col0
----
-41

skipif mysql # not compatible
query I rowsort label-6239
SELECT + 41 * - COUNT ( + 21 ) col0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-6240
SELECT + 14 DIV + 97 * - + 90 + + 56 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6240
SELECT + 14 / + 97 * - + 90 + + 56 AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6241
SELECT ALL + CASE + ( + 45 ) WHEN CAST( 26 AS DECIMAL ) THEN + 98 WHEN + + COUNT( * ) THEN NULL ELSE - 59 END AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL + CASE + ( + 45 ) WHEN CAST ( 26 AS REAL ) THEN + 98 WHEN + + COUNT ( * ) THEN NULL ELSE - 59 END AS col1
----
-59

query I rowsort
SELECT + 5 * - + 11
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT - COUNT( * ) * 41 * + 69
----
-2829

skipif mysql # not compatible
query I rowsort label-6243
SELECT - COUNT ( * ) * 41 * + 69
----
-2829

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL 76 * + + COUNT( * ) + NULLIF ( 48, + + 5 ) col1
----
124

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL 76 * + + COUNT ( * ) + NULLIF ( 48, + + 5 ) col1
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6245
SELECT + 52 col2, 68 + - 31 + SUM( DISTINCT - CAST( NULL AS SIGNED ) )
----
52
NULL

skipif mysql # not compatible
query II rowsort label-6245
SELECT + 52 col2, 68 + - 31 + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
52
NULL

query I rowsort
SELECT DISTINCT 19 * + 42 * + 1 * - 95
----
-75810

query II rowsort
SELECT - 62 - + ( - - 68 ), 80 AS col2
----
-130
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT DISTINCT - 68 * 58 * COUNT( * ) + + MIN( + - ( - 10 ) ) + + + 35 AS col1
----
-3899

skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT - 68 * 58 * COUNT ( * ) + + MIN ( + - ( - 10 ) ) + + + 35 AS col1
----
-3899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6249
SELECT - CAST( 14 AS SIGNED ) * - + ( + 50 ) + - - 32 + + COUNT( * )
----
733

skipif mysql # not compatible
query I rowsort label-6249
SELECT - CAST ( 14 AS INTEGER ) * - + ( + 50 ) + - - 32 + + COUNT ( * )
----
733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6250
SELECT DISTINCT + COALESCE ( + COUNT( * ), + - CAST( NULL AS SIGNED ) ) DIV - - 29 * + COALESCE ( - ( + 23 ), - 97 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT + COALESCE ( + COUNT ( * ), + - CAST ( NULL AS INTEGER ) ) / - - 29 * + COALESCE ( - ( + 23 ), - 97 ) AS col0
----
0

query I rowsort
SELECT + NULLIF ( + 77, - + 46 ) AS col2
----
77

query II rowsort
SELECT - + 4 + - - 95 * + + 55, + 45 + 29 AS col1
----
5221
74

query I rowsort
SELECT + + 98 * - ( 1 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + 19
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6255
SELECT ALL - COALESCE ( + - 52, + 26 * + ( + 89 ) ) * - 35, + 39 DIV 30 * - 9 * - 60 AS col0
----
-1820
540

skipif mysql # not compatible
query II rowsort label-6255
SELECT ALL - COALESCE ( + - 52, + 26 * + ( + 89 ) ) * - 35, + 39 / 30 * - 9 * - 60 AS col0
----
-1820
540

query I rowsort
SELECT + 26 - - 97 + + 34 AS col2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT + MIN( - 5 ) * - 34 + - SUM( - 13 ) + - + 49 + + 6
----
140

skipif mysql # not compatible
query I rowsort label-6257
SELECT + MIN ( - 5 ) * - 34 + - SUM ( - 13 ) + - + 49 + + 6
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL + COUNT( * ) * 93 - + 32 * + MIN( 55 ) AS col0
----
-1667

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL + COUNT ( * ) * 93 - + 32 * + MIN ( 55 ) AS col0
----
-1667

query I rowsort
SELECT - 92 * + + 22 AS col0
----
-2024

query I rowsort
SELECT DISTINCT - NULLIF ( + 98, - 97 )
----
-98

query I rowsort
SELECT DISTINCT - ( 21 ) * + + 9
----
-189

query I rowsort
SELECT ALL NULLIF ( - 83, 80 + 44 * - 11 * + 63 ) AS col2
----
-83

query I rowsort
SELECT + 19 + - 26
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6264
SELECT ALL + + 88 - + + 68 DIV + COUNT( * ) + + - ( ( 22 ) ) * + - 57 * + - 21, COUNT( * ) AS col0
----
-26314
1

skipif mysql # not compatible
query II rowsort label-6264
SELECT ALL + + 88 - + + 68 / + COUNT ( * ) + + - ( ( 22 ) ) * + - 57 * + - 21, COUNT ( * ) AS col0
----
-26314
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT - COALESCE ( - COALESCE ( - 27, + COUNT( * ) * + NULLIF ( - 33, + COUNT( * ) ) ), + 96 + COUNT( * ), - + COALESCE ( - 8, - ( - 35 ) ) * + 25 - 96 + + 1 ) * - 16 AS col1
----
432

skipif mysql # not compatible
query I rowsort label-6265
SELECT - COALESCE ( - COALESCE ( - 27, + COUNT ( * ) * + NULLIF ( - 33, + COUNT ( * ) ) ), + 96 + COUNT ( * ), - + COALESCE ( - 8, - ( - 35 ) ) * + 25 - 96 + + 1 ) * - 16 AS col1
----
432

query II rowsort
SELECT + 24 * + + 69 AS col2, - 40 AS col2
----
1656
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT - CASE - 27 WHEN - + COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN - 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6267
SELECT - CASE - 27 WHEN - + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN - 61 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT + MAX( DISTINCT - 10 ) + + 58
----
48

skipif mysql # not compatible
query I rowsort label-6268
SELECT + MAX ( DISTINCT - 10 ) + + 58
----
48

query I rowsort
SELECT + 89 + + 5 col2
----
94

query I rowsort
SELECT - NULLIF ( + + 9, + 17 ) col1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6271
SELECT DISTINCT 6 + ( - 56 ) - - 85 + + + CAST( NULL AS DECIMAL ) * - - AVG ( + 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT 6 + ( - 56 ) - - 85 + + + CAST ( NULL AS REAL ) * - - AVG ( + 58 ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT ( 47 ) * - 15 * + - 67 AS col1, 19 AS col0
----
47235
19

query I rowsort
SELECT + 35 + + 18 - + - 27 * - 75 + 15 AS col1
----
-1957

onlyif mysql # aggregate syntax: 
query II rowsort label-6274
SELECT - CASE 63 WHEN COUNT( * ) THEN NULL ELSE - 92 END AS col2, 26 AS col0
----
92
26

skipif mysql # not compatible
query II rowsort label-6274
SELECT - CASE 63 WHEN COUNT ( * ) THEN NULL ELSE - 92 END AS col2, 26 AS col0
----
92
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6275
SELECT + ( - 87 ) + ( COALESCE ( + COUNT( * ), + CASE - 72 WHEN + + CAST( NULL AS SIGNED ) THEN + COUNT( * ) WHEN - + COUNT( * ) THEN NULL END, 12 * - 11 + + 42 + SUM( - 71 ) ) ) * + 7 + - 33 col2
----
-113

skipif mysql # not compatible
query I rowsort label-6275
SELECT + ( - 87 ) + ( COALESCE ( + COUNT ( * ), + CASE - 72 WHEN + + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) WHEN - + COUNT ( * ) THEN NULL END, 12 * - 11 + + 42 + SUM ( - 71 ) ) ) * + 7 + - 33 col2
----
-113

query II rowsort
SELECT ALL 93 + - 70 AS col0, ( - - 6 ) * - - 97
----
23
582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6277
SELECT 18 DIV + ( - COUNT( * ) ) + + NULLIF ( + + 24, + 61 * 83 - 0 + 23 * 60 * 27 + ( + ( - 30 ) ) ) + + ( + - 83 ) * - COUNT( * ) * + 94 * 2 DIV + + COUNT( * ) AS col2
----
15610

skipif mysql # not compatible
query I rowsort label-6277
SELECT 18 / + ( - COUNT ( * ) ) + + NULLIF ( + + 24, + 61 * 83 - 0 + 23 * 60 * 27 + ( + ( - 30 ) ) ) + + ( + - 83 ) * - COUNT ( * ) * + 94 * 2 / + + COUNT ( * ) AS col2
----
15610

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6278
SELECT CAST( 6 AS SIGNED ) DIV - 18
----
0

skipif mysql # not compatible
query I rowsort label-6278
SELECT CAST ( 6 AS INTEGER ) / - 18
----
0

query I rowsort
SELECT ALL 87 + - - 28
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-6280
SELECT DISTINCT 12 + 21, COUNT( * ) AS col0
----
33
1

skipif mysql # not compatible
query II rowsort label-6280
SELECT DISTINCT 12 + 21, COUNT ( * ) AS col0
----
33
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6281
SELECT 94 DIV 88 + - + 88 * 73 col1
----
-6423

skipif mysql # not compatible
query I rowsort label-6281
SELECT 94 / 88 + - + 88 * 73 col1
----
-6423

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT ALL - 88 + + MIN( DISTINCT + - 32 ) AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL - 88 + + MIN ( DISTINCT + - 32 ) AS col1
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6283
SELECT + CASE 99 WHEN + COALESCE ( 97, + - 29 ) * + MAX( ALL 35 ) THEN NULL WHEN 49 THEN + COUNT( * ) * - - 44 DIV + COUNT( * ) * - 57 ELSE - - 48 END + + + COUNT( * ) col1, 99
----
49
99

skipif mysql # not compatible
query II rowsort label-6283
SELECT + CASE 99 WHEN + COALESCE ( 97, + - 29 ) * + MAX ( ALL 35 ) THEN NULL WHEN 49 THEN + COUNT ( * ) * - - 44 / + COUNT ( * ) * - 57 ELSE - - 48 END + + + COUNT ( * ) col1, 99
----
49
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6284
SELECT + + ( + AVG ( - - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT + + ( + AVG ( - - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT COUNT( * ) * - 78 + + + 28 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6285
SELECT COUNT ( * ) * - 78 + + + 28 AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6286
SELECT + + CASE + + 55 WHEN + + 70 THEN 38 * - - CAST( + COUNT( * ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT + + CASE + + 55 WHEN + + 70 THEN 38 * - - CAST ( + COUNT ( * ) AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT - - 78 - - 70
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT DISTINCT - 36 * + 92 * + COUNT( * )
----
-3312

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT - 36 * + 92 * + COUNT ( * )
----
-3312

query I rowsort
SELECT DISTINCT - + ( ( - + 67 ) ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT DISTINCT 41 - - MIN( DISTINCT + 67 ) * COUNT( * ) + - - ( - - 29 ) col1
----
137

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT 41 - - MIN ( DISTINCT + 67 ) * COUNT ( * ) + - - ( - - 29 ) col1
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-6291
SELECT DISTINCT + 81 DIV - 72 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT + 81 / - 72 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT ALL - MAX( + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL - MAX ( + 32 )
----
-32

query I rowsort
SELECT + 34 * 46 + + 38 - + - 36 * - 23
----
774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6294
SELECT - 43 DIV - COUNT( * ) + - NULLIF ( ( + 37 ), + ( + 52 ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6294
SELECT - 43 / - COUNT ( * ) + - NULLIF ( ( + 37 ), + ( + 52 ) ) AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6295
SELECT 11 DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-6295
SELECT 11 / + 64
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6296
SELECT DISTINCT - + 23 DIV + - 45 + - 45
----
-45

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT - + 23 / + - 45 + - 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT 42 * 86 * COUNT( * )
----
3612

skipif mysql # not compatible
query I rowsort label-6297
SELECT 42 * 86 * COUNT ( * )
----
3612

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT 45 * - + MIN( + 31 ) AS col1
----
-1395

skipif mysql # not compatible
query I rowsort label-6298
SELECT 45 * - + MIN ( + 31 ) AS col1
----
-1395

query I rowsort
SELECT 16 - + 0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT 22 / - + 8 / + CASE + 58 WHEN - - 17 * + + COUNT( * ) THEN - 9 WHEN + + 37 THEN NULL ELSE NULL END * - - 49 / 67 + - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6300
SELECT 22 / - + 8 / + CASE + 58 WHEN - - 17 * + + COUNT ( * ) THEN - 9 WHEN + + 37 THEN NULL ELSE NULL END * - - 49 / 67 + - 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT ALL + ( + - NULLIF ( + COUNT( * ), - 78 ) ) * - - 93 col1
----
-93

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + ( + - NULLIF ( + COUNT ( * ), - 78 ) ) * - - 93 col1
----
-93

query I rowsort
SELECT ALL - 67 + + - 3
----
-70

query I rowsort
SELECT ALL 53 + + + 89
----
142

query I rowsort
SELECT ALL + 95 * - 76 AS col2
----
-7220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6305
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 12 / - 39 * - ( + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 12 / - 39 * - ( + 30 )
----
NULL

query I rowsort
SELECT 61 - - 42 + + - 22 * - + 54 AS col2
----
1291

query I rowsort
SELECT ALL - 22 + 20 AS col0
----
-2

query I rowsort
SELECT 51 + + + 41 * 9 AS col2
----
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT ALL - CAST( NULL AS SIGNED ) + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL - CAST ( NULL AS INTEGER ) + + 17
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6310
SELECT ALL COUNT( * ) * 7 * + - 48 * COUNT( * ) * - 16 AS col1, + 90 DIV - 56 AS col2
----
5376
-1

skipif mysql # not compatible
query II rowsort label-6310
SELECT ALL COUNT ( * ) * 7 * + - 48 * COUNT ( * ) * - 16 AS col1, + 90 / - 56 AS col2
----
5376
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6311
SELECT ALL + 59 DIV + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL + 59 / + 68 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6312
SELECT DISTINCT - 5 + + + MAX( - CAST( NULL AS SIGNED ) ), 18 AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-6312
SELECT DISTINCT - 5 + + + MAX ( - CAST ( NULL AS INTEGER ) ), 18 AS col0
----
NULL
18

query I rowsort
SELECT DISTINCT + ( + 4 ) + - 79 + + 45 AS col1
----
-30

query I rowsort
SELECT ALL + 59 * + 80
----
4720

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT + - CASE - 29 WHEN - 5 THEN 33 WHEN MAX( + + 58 ) THEN NULL WHEN - 28 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6315
SELECT + - CASE - 29 WHEN - 5 THEN 33 WHEN MAX ( + + 58 ) THEN NULL WHEN - 28 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6316
SELECT + - CASE - 24 WHEN - + 78 THEN NULL ELSE 70 * - - 93 * - + 82 - - CAST( NULL AS SIGNED ) END * NULLIF ( MAX( ALL + 0 ), - 69 ) - - 4 - + COUNT( * ) / - ( - - 82 ) + + 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6316
SELECT + - CASE - 24 WHEN - + 78 THEN NULL ELSE 70 * - - 93 * - + 82 - - CAST ( NULL AS INTEGER ) END * NULLIF ( MAX ( ALL + 0 ), - 69 ) - - 4 - + COUNT ( * ) / - ( - - 82 ) + + 39 col0
----
NULL

query I rowsort
SELECT 47 * + + 66 AS col0
----
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT - ( - 29 ) + + NULLIF ( + 24, COUNT( * ) ) - - 90 * + 4 + 84
----
497

skipif mysql # not compatible
query I rowsort label-6318
SELECT - ( - 29 ) + + NULLIF ( + 24, COUNT ( * ) ) - - 90 * + 4 + 84
----
497

query I rowsort
SELECT ( + 82 ) - - 5 * + 63 + + 53 + + 36 AS col1
----
486

query I rowsort
SELECT + ( + + 74 ) * - 87
----
-6438

query I rowsort
SELECT ALL + 52 * + 31 * 45 AS col2
----
72540

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT - ( + 87 ) * - + COUNT( * ) + 0
----
87

skipif mysql # not compatible
query I rowsort label-6322
SELECT - ( + 87 ) * - + COUNT ( * ) + 0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT 36 + NULLIF ( - NULLIF ( - 94, - - 56 / COUNT( * ) ), - 37 + - 15 )
----
130

skipif mysql # not compatible
query I rowsort label-6323
SELECT 36 + NULLIF ( - NULLIF ( - 94, - - 56 / COUNT ( * ) ), - 37 + - 15 )
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6324
SELECT + 31 * COALESCE ( 34, - COUNT( * ) ) + + 74 AS col2, 15 DIV - + ( 15 ) AS col2
----
1128
-1

skipif mysql # not compatible
query II rowsort label-6324
SELECT + 31 * COALESCE ( 34, - COUNT ( * ) ) + + 74 AS col2, 15 / - + ( 15 ) AS col2
----
1128
-1

query I rowsort
SELECT 95 + - 46 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT - COUNT( * ) + 15 + - + 87 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-6326
SELECT - COUNT ( * ) + 15 + - + 87 AS col1
----
-73

query I rowsort
SELECT COALESCE ( + - 88, 17 )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6328
SELECT - 25 * - CAST( NULL AS SIGNED ) + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6328
SELECT - 25 * - CAST ( NULL AS INTEGER ) + + 68
----
NULL

query I rowsort
SELECT + 24 - - 17 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT ALL - COUNT( 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL - COUNT ( 25 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6331
SELECT + MAX( DISTINCT CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6331
SELECT + MAX ( DISTINCT CAST ( NULL AS REAL ) ) AS col1
----
NULL

query II rowsort
SELECT 2 AS col2, 47
----
2
47

query I rowsort
SELECT ALL NULLIF ( 72, + 20 - - 78 ) + 12 * ( - + 35 ) col1
----
-348

onlyif mysql # DIV for integer division: 
query II rowsort label-6334
SELECT DISTINCT 89 + + 48 + + 79 DIV + 82 * - 20 + 26 DIV + 10 AS col0, + 85 DIV + + 39
----
139
2

skipif mysql # not compatible
query II rowsort label-6334
SELECT DISTINCT 89 + + 48 + + 79 / + 82 * - 20 + 26 / + 10 AS col0, + 85 / + + 39
----
139
2

onlyif mysql # DIV for integer division: 
query II rowsort label-6335
SELECT ALL 64 AS col0, - 37 DIV - + 93
----
64
0

skipif mysql # not compatible
query II rowsort label-6335
SELECT ALL 64 AS col0, - 37 / - + 93
----
64
0

query I rowsort
SELECT 51 + + 37 AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6337
SELECT ALL 18 AS col0, + 20 DIV + + COUNT( * )
----
18
20

skipif mysql # not compatible
query II rowsort label-6337
SELECT ALL 18 AS col0, + 20 / + + COUNT ( * )
----
18
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6338
SELECT 57 DIV 50 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6338
SELECT 57 / 50 AS col2
----
1

query II rowsort
SELECT - 74 AS col1, 3
----
-74
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6340
SELECT ALL + 90 + - 57 + 5 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL + 90 + - 57 + 5 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 36 + + 15
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT - 82 * + SUM( ( + 33 ) ) * ( + 68 ) * ( + + 21 )
----
-3864168

skipif mysql # not compatible
query I rowsort label-6342
SELECT - 82 * + SUM ( ( + 33 ) ) * ( + 68 ) * ( + + 21 )
----
-3864168

query I rowsort
SELECT - 99 + + + 47 * 14 AS col0
----
559

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT DISTINCT - 18 + - + CASE - 58 WHEN + 85 THEN NULL WHEN + 4 THEN + 67 * - - ( + - 73 ) + - + 15 END * + CASE - 14 WHEN - COUNT( * ) THEN - COUNT( * ) + 78 END / - + COUNT( DISTINCT - 19 ) - ( + - 41 ) + - 57 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT - 18 + - + CASE - 58 WHEN + 85 THEN NULL WHEN + 4 THEN + 67 * - - ( + - 73 ) + - + 15 END * + CASE - 14 WHEN - COUNT ( * ) THEN - COUNT ( * ) + 78 END / - + COUNT ( DISTINCT - 19 ) - ( + - 41 ) + - 57 col0
----
NULL

query I rowsort
SELECT ALL + 64 * + + 28 AS col2
----
1792

query II rowsort
SELECT - 85 AS col2, 0 * 62 AS col1
----
-85
0

query I rowsort
SELECT DISTINCT + 46 * 32 * 26
----
38272

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT DISTINCT - 19 + + MAX( DISTINCT - 46 )
----
-65

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT - 19 + + MAX ( DISTINCT - 46 )
----
-65

query I rowsort
SELECT ALL + 64 * 34 * + 13 * 35 AS col2
----
990080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6350
SELECT - CAST( NULL AS SIGNED ) + - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT - CAST ( NULL AS INTEGER ) + - 65 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6351
SELECT ALL MAX( + - CAST( + 53 AS SIGNED ) ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL MAX ( + - CAST ( + 53 AS INTEGER ) ) AS col0
----
-53

query I rowsort
SELECT + 56 + 9 AS col2
----
65

query II rowsort
SELECT ALL 27, - 78 AS col1
----
27
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT DISTINCT + 76 * + COUNT( * ) - + 36 - - ( 90 ) - + + NULLIF ( - - COUNT( * ), COUNT( * ) ) * - COALESCE ( + - 81, 64 + - 67 ) * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT + 76 * + COUNT ( * ) - + 36 - - ( 90 ) - + + NULLIF ( - - COUNT ( * ), COUNT ( * ) ) * - COALESCE ( + - 81, 64 + - 67 ) * - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT ALL - 47 * - - COUNT( * ) * + - 77
----
3619

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL - 47 * - - COUNT ( * ) * + - 77
----
3619

onlyif mysql # aggregate syntax: 
query II rowsort label-6356
SELECT + + COUNT( * ), 55 * + - 80 AS col2
----
1
-4400

skipif mysql # not compatible
query II rowsort label-6356
SELECT + + COUNT ( * ), 55 * + - 80 AS col2
----
1
-4400

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT ALL + CASE ( + - 72 ) WHEN + 98 THEN + 47 / - NULLIF ( + COUNT( * ), - ( - 7 ) ) WHEN - CASE - 79 WHEN + + 59 THEN NULL ELSE + ( 80 ) END / 86 / COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL + CASE ( + - 72 ) WHEN + 98 THEN + 47 / - NULLIF ( + COUNT ( * ), - ( - 7 ) ) WHEN - CASE - 79 WHEN + + 59 THEN NULL ELSE + ( 80 ) END / 86 / COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6358
SELECT ALL + 82 AS col1, 83 * - ( - ( + - COALESCE ( + + 54, 21 * - COUNT( * ) ) ) ) * + + 57 + 17 + - - 13 * - NULLIF ( - ( - + 45 ), + 61 * + + MIN( 37 ) ) + 46 + 4 + - COUNT( * ) * + - 3
----
82
-255989

skipif mysql # not compatible
query II rowsort label-6358
SELECT ALL + 82 AS col1, 83 * - ( - ( + - COALESCE ( + + 54, 21 * - COUNT ( * ) ) ) ) * + + 57 + 17 + - - 13 * - NULLIF ( - ( - + 45 ), + 61 * + + MIN ( 37 ) ) + 46 + 4 + - COUNT ( * ) * + - 3
----
82
-255989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6359
SELECT - 53 * CASE + 58 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - + 11 ELSE NULL END + + 77 + + 17 * 34 + + - COUNT( * ) + - + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT - 53 * CASE + 58 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - + 11 ELSE NULL END + + 77 + + 17 * 34 + + - COUNT ( * ) + - + 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6360
SELECT + 12 AS col2, COUNT( * ) AS col1
----
12
1

skipif mysql # not compatible
query II rowsort label-6360
SELECT + 12 AS col2, COUNT ( * ) AS col1
----
12
1

query I rowsort
SELECT ALL 42 * + 36 AS col1
----
1512

query I rowsort
SELECT + NULLIF ( - 57, + 32 ) AS col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6363
SELECT - 16 DIV COUNT( * ) + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-6363
SELECT - 16 / COUNT ( * ) + COUNT ( * )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6364
SELECT + - ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6364
SELECT + - ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 99 * - 97 + + - 2
----
-9605

query I rowsort
SELECT ALL + + ( - 48 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6367
SELECT ALL + 71 DIV + 28 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL + 71 / + 28 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT + 24 * CASE 15 WHEN + - 76 THEN NULL ELSE - + 5 END * + - ( CASE + ( + + 8 ) WHEN COUNT( * ) * - - ( - 27 ) - + - 60 THEN - + 44 + + 60 WHEN 94 THEN NULL ELSE - + 74 - - 22 + + + 48 END ) AS col2
----
-480

skipif mysql # not compatible
query I rowsort label-6368
SELECT + 24 * CASE 15 WHEN + - 76 THEN NULL ELSE - + 5 END * + - ( CASE + ( + + 8 ) WHEN COUNT ( * ) * - - ( - 27 ) - + - 60 THEN - + 44 + + 60 WHEN 94 THEN NULL ELSE - + 74 - - 22 + + + 48 END ) AS col2
----
-480

query I rowsort
SELECT ALL 5 * + 18 + - 46
----
44

query I rowsort
SELECT + NULLIF ( + 68, + ( - 71 ) ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT SUM( ALL + + 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6371
SELECT SUM ( ALL + + 5 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT SUM( ( - + 90 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-6372
SELECT SUM ( ( - + 90 ) )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-6373
SELECT 40 * 29 + + - 59 + + 62 + - - COUNT( * ) AS col0, - 57
----
1164
-57

skipif mysql # not compatible
query II rowsort label-6373
SELECT 40 * 29 + + - 59 + + 62 + - - COUNT ( * ) AS col0, - 57
----
1164
-57

query I rowsort
SELECT + 94 * 30 AS col1
----
2820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6375
SELECT ALL - MIN( ALL 83 ) * - COUNT( * ) * - ( + 39 ) + + ( 67 ) * COUNT( * ) - - CAST( 58 AS SIGNED )
----
-3112

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL - MIN ( ALL 83 ) * - COUNT ( * ) * - ( + 39 ) + + ( 67 ) * COUNT ( * ) - - CAST ( 58 AS INTEGER )
----
-3112

query I rowsort
SELECT ALL 76 + - 77 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6377
SELECT - CASE 72 WHEN + + CASE - - 95 WHEN - + 9 THEN 69 END + - - 97 THEN 35 + - 75 + - COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN + 79 * NULLIF ( COUNT( + NULLIF ( + ( 1 ), + 98 / + 8 * + CAST( 74 AS SIGNED ) ) ), + 66 * + + 4 / 23 - - ( + + CASE - 24 WHEN - COALESCE ( - + COUNT( * ), + + 8 + + 96 * + + 43, 28 ) + + 88 THEN 6 / COUNT( * ) WHEN - 34 / + 88 + + 89 THEN NULL ELSE NULL END ) ) THEN - COUNT( * ) END * + 74 - SUM( ALL + 2 ) * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT - CASE 72 WHEN + + CASE - - 95 WHEN - + 9 THEN 69 END + - - 97 THEN 35 + - 75 + - COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN + 79 * NULLIF ( COUNT ( + NULLIF ( + ( 1 ), + 98 / + 8 * + CAST ( 74 AS INTEGER ) ) ), + 66 * + + 4 / 23 - - ( + + CASE - 24 WHEN - COALESCE ( - + COUNT ( * ), + + 8 + + 96 * + + 43, 28 ) + + 88 THEN 6 / COUNT ( * ) WHEN - 34 / + 88 + + 89 THEN NULL ELSE NULL END ) ) THEN - COUNT ( * ) END * + 74 - SUM ( ALL + 2 ) * - 30
----
NULL

query I rowsort
SELECT + 58 + 14 + - 51 - - - 54 AS col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6379
SELECT ALL CAST( NULL AS SIGNED ) + - 14 * - + 5 + - + COUNT( - 8 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL CAST ( NULL AS INTEGER ) + - 14 * - + 5 + - + COUNT ( - 8 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT DISTINCT MIN( DISTINCT 83 ) * + + COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT MIN ( DISTINCT 83 ) * + + COUNT ( * ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT ALL - 5 - - + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL - 5 - - + COUNT ( * )
----
-4

query I rowsort
SELECT ALL - 5 - - 56 AS col1
----
51

query I rowsort
SELECT - 98 * 49 AS col2
----
-4802

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT + - MAX( - + 18 ) + - + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-6384
SELECT + - MAX ( - + 18 ) + - + COUNT ( * )
----
17

query II rowsort
SELECT - 6 * - - 20 col0, + NULLIF ( 92, 0 + 23 ) AS col2
----
-120
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6386
SELECT ALL 76 DIV - - 49, - 40 + ( 43 ) + ( - + COUNT( * ) ) AS col1
----
1
2

skipif mysql # not compatible
query II rowsort label-6386
SELECT ALL 76 / - - 49, - 40 + ( 43 ) + ( - + COUNT ( * ) ) AS col1
----
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6387
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6388
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT - - CAST ( NULL AS REAL ) * - 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT - + NULLIF ( + + COUNT( * ), + 62 ) * - 66
----
66

skipif mysql # not compatible
query I rowsort label-6389
SELECT - + NULLIF ( + + COUNT ( * ), + 62 ) * - 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT + MAX( 52 ) - - + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-6390
SELECT + MAX ( 52 ) - - + COUNT ( * )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6391
SELECT ALL + + COUNT( - CAST( + 8 AS SIGNED ) ) DIV - - 98 + + + 83, 56 AS col0
----
83
56

skipif mysql # not compatible
query II rowsort label-6391
SELECT ALL + + COUNT ( - CAST ( + 8 AS INTEGER ) ) / - - 98 + + + 83, 56 AS col0
----
83
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT 69 * COUNT( * ) * + ( - + 62 ) + - + 56 * 12 - 63 + - 74 AS col2
----
-5087

skipif mysql # not compatible
query I rowsort label-6392
SELECT 69 * COUNT ( * ) * + ( - + 62 ) + - + 56 * 12 - 63 + - 74 AS col2
----
-5087

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6393
SELECT ALL + + 70 / - ( + 15 ) * - - COUNT( * ) + + + CAST( NULL AS SIGNED ) - - 86 + + + COUNT( * ) / 79 * - AVG ( ALL - + CAST( - 38 AS DECIMAL ) ) + + 93 col1, - 20
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-6393
SELECT ALL + + 70 / - ( + 15 ) * - - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) - - 86 + + + COUNT ( * ) / 79 * - AVG ( ALL - + CAST ( - 38 AS REAL ) ) + + 93 col1, - 20
----
NULL
-20

onlyif mysql # aggregate syntax: 
query III rowsort label-6394
SELECT ALL + SUM( - 40 ) AS col1, + 66 AS col0, - + 30 * + + 82
----
-40
66
-2460

skipif mysql # not compatible
query III rowsort label-6394
SELECT ALL + SUM ( - 40 ) AS col1, + 66 AS col0, - + 30 * + + 82
----
-40
66
-2460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6395
SELECT - 36 + + CAST( NULL AS SIGNED ) * + 74 + + NULLIF ( COUNT( * ), + 99 ) + - 34 + + 17 / MAX( 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6395
SELECT - 36 + + CAST ( NULL AS INTEGER ) * + 74 + + NULLIF ( COUNT ( * ), + 99 ) + - 34 + + 17 / MAX ( 41 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT DISTINCT + CASE - 3 WHEN - MIN( DISTINCT 91 ) THEN - COUNT( * ) WHEN - 73 / 16 + AVG ( 10 ) + 95 * - ( - COUNT( * ) ) * + COUNT( - 23 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT + CASE - 3 WHEN - MIN ( DISTINCT 91 ) THEN - COUNT ( * ) WHEN - 73 / 16 + AVG ( 10 ) + 95 * - ( - COUNT ( * ) ) * + COUNT ( - 23 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6397
SELECT ALL + 98 DIV 89
----
1

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL + 98 / 89
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT DISTINCT + CASE - - ( 93 ) WHEN 34 THEN NULL WHEN - COUNT( + 53 ) THEN - COALESCE ( + 78, + + 2 * 7 + + 90 + + 84 ) WHEN - + 52 + 17 * + 93 / - - 46 THEN NULL ELSE NULL END / 94 / - - 87 + + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT + CASE - - ( 93 ) WHEN 34 THEN NULL WHEN - COUNT ( + 53 ) THEN - COALESCE ( + 78, + + 2 * 7 + + 90 + + 84 ) WHEN - + 52 + 17 * + 93 / - - 46 THEN NULL ELSE NULL END / 94 / - - 87 + + 62 AS col0
----
NULL

query I rowsort
SELECT + ( - 77 ) * + 41 + + 22
----
-3135

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL + 36 + 70 * - - MIN( - + 42 ) AS col0
----
-2904

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL + 36 + 70 * - - MIN ( - + 42 ) AS col0
----
-2904

query I rowsort
SELECT 32 + + - 28
----
4

query II rowsort
SELECT 70 + + + ( + + 16 ), + 25 AS col1
----
86
25

query I rowsort
SELECT 41 + - - 80
----
121

query II rowsort
SELECT 75, - 78 col2
----
75
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL + NULLIF ( 25, + 37 ) - MAX( DISTINCT - 73 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL + NULLIF ( 25, + 37 ) - MAX ( DISTINCT - 73 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT ( + COUNT( * ) ) + + 66 + 25
----
92

skipif mysql # not compatible
query I rowsort label-6406
SELECT ( + COUNT ( * ) ) + + 66 + 25
----
92

query II rowsort
SELECT ALL 34, - 91 AS col2
----
34
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT 57 * COUNT( ALL - - 89 )
----
57

skipif mysql # not compatible
query I rowsort label-6408
SELECT 57 * COUNT ( ALL - - 89 )
----
57

query I rowsort
SELECT DISTINCT 45 * 27
----
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT COALESCE ( + - MIN( ALL - 24 ), - COUNT( * ) + - 87 + - 3 ) * COUNT( * ) col0
----
24

skipif mysql # not compatible
query I rowsort label-6410
SELECT COALESCE ( + - MIN ( ALL - 24 ), - COUNT ( * ) + - 87 + - 3 ) * COUNT ( * ) col0
----
24

query I rowsort
SELECT ALL 80 * + 9 col2
----
720

query I rowsort
SELECT DISTINCT 92 * 30 * 83 AS col1
----
229080

query II rowsort
SELECT - - 86 AS col2, - 37 AS col1
----
86
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT DISTINCT - MAX( DISTINCT 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT - MAX ( DISTINCT 62 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT DISTINCT + CAST( - 41 AS SIGNED ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT + CAST ( - 41 AS INTEGER ) AS col0
----
-41

query I rowsort
SELECT ALL 74 * 53 AS col2
----
3922

onlyif mysql # DIV for integer division: 
query I rowsort label-6417
SELECT 11 DIV + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6417
SELECT 11 / + 97 AS col1
----
0

query I rowsort
SELECT ALL - 54 + + 14 + + 86 AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6419
SELECT DISTINCT 19 DIV - COUNT( * ) + + 12 + + 16
----
9

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT 19 / - COUNT ( * ) + + 12 + + 16
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT ALL + COUNT( * ) + + 67 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL + COUNT ( * ) + + 67 AS col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6421
SELECT 34 DIV 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6421
SELECT 34 / 90 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6422
SELECT ALL NULLIF ( + COUNT( * ), + NULLIF ( + 30, - CAST( NULL AS SIGNED ) * 64 ) * - + 15 * + + CASE + COUNT( DISTINCT + 2 ) WHEN - - COUNT( * ) + - ( + 53 ) THEN NULL WHEN - 52 THEN - + 18 / + COUNT( ALL 63 ) WHEN + 19 / ( - 76 ) THEN + 76 END ) + + 9 col2
----
10

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL NULLIF ( + COUNT ( * ), + NULLIF ( + 30, - CAST ( NULL AS INTEGER ) * 64 ) * - + 15 * + + CASE + COUNT ( DISTINCT + 2 ) WHEN - - COUNT ( * ) + - ( + 53 ) THEN NULL WHEN - 52 THEN - + 18 / + COUNT ( ALL 63 ) WHEN + 19 / ( - 76 ) THEN + 76 END ) + + 9 col2
----
10

query II rowsort
SELECT 41, - 1 AS col0
----
41
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT ALL - 69 * 53 * - COUNT( ALL 8 ) * + SUM( + - ( 29 ) ) * - + 79 - - COUNT( * ) + 14 * - COUNT( * ) AS col2
----
8378174

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL - 69 * 53 * - COUNT ( ALL 8 ) * + SUM ( + - ( 29 ) ) * - + 79 - - COUNT ( * ) + 14 * - COUNT ( * ) AS col2
----
8378174

query I rowsort
SELECT DISTINCT + 10 + + 36
----
46

query I rowsort
SELECT ALL - - 10 + 71 AS col0
----
81

query I rowsort
SELECT 67 * 89 - + - NULLIF ( - 63, - ( 54 ) ) col2
----
5900

query II rowsort
SELECT 41 * - - 92, 48 col1
----
3772
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT 77 * + - SUM( ALL - + 8 ) AS col0
----
616

skipif mysql # not compatible
query I rowsort label-6429
SELECT 77 * + - SUM ( ALL - + 8 ) AS col0
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT DISTINCT + 22 - + 77 + - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT + 22 - + 77 + - COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT DISTINCT - MAX( ALL + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT - MAX ( ALL + 71 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT ALL + 5 - + MAX( + - 89 ) * + 14 AS col0
----
1251

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL + 5 - + MAX ( + - 89 ) * + 14 AS col0
----
1251

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL - COALESCE ( NULLIF ( - - 61, - - 99 + - 6 ), NULLIF ( - + MAX( DISTINCT + 41 ), + 45 ) + 15 * - + MAX( DISTINCT 95 ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL - COALESCE ( NULLIF ( - - 61, - - 99 + - 6 ), NULLIF ( - + MAX ( DISTINCT + 41 ), + 45 ) + 15 * - + MAX ( DISTINCT 95 ) ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT DISTINCT COUNT( + 21 ) * 36 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT COUNT ( + 21 ) * 36 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT ALL + 14 * + - 76 * + COUNT( * ) AS col2
----
-1064

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL + 14 * + - 76 * + COUNT ( * ) AS col2
----
-1064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6436
SELECT ALL + 5 - 49 + + COUNT( * ) * 59 DIV - - 89 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL + 5 - 49 + + COUNT ( * ) * 59 / - - 89 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT + COUNT( * ) * 0 + + 3 + - 94 * + 22
----
-2065

skipif mysql # not compatible
query I rowsort label-6437
SELECT + COUNT ( * ) * 0 + + 3 + - 94 * + 22
----
-2065

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT COUNT( 26 ) * + 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-6438
SELECT COUNT ( 26 ) * + 87 AS col0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6439
SELECT DISTINCT + 97 * + + 3 AS col1, 72 + + 54 * + 40 + - + CAST( NULL AS SIGNED ) AS col1
----
291
NULL

skipif mysql # not compatible
query II rowsort label-6439
SELECT DISTINCT + 97 * + + 3 AS col1, 72 + + 54 * + 40 + - + CAST ( NULL AS INTEGER ) AS col1
----
291
NULL

query I rowsort
SELECT ALL - 42 * - 15 AS col2
----
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6441
SELECT ALL CASE - 47 WHEN + + CASE 20 WHEN - 84 + - + 86 THEN NULL WHEN + - 73 + + 80 * 83 + - 53 THEN + 81 + COALESCE ( + 53, + + 74 ) END THEN + 59 * - MAX( - - CAST( 99 AS SIGNED ) ) + 43 WHEN 43 * 14 * - CAST( NULL AS SIGNED ) THEN + 36 WHEN - 61 THEN COALESCE ( 79, - 7 - 36 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL CASE - 47 WHEN + + CASE 20 WHEN - 84 + - + 86 THEN NULL WHEN + - 73 + + 80 * 83 + - 53 THEN + 81 + COALESCE ( + 53, + + 74 ) END THEN + 59 * - MAX ( - - CAST ( 99 AS INTEGER ) ) + 43 WHEN 43 * 14 * - CAST ( NULL AS INTEGER ) THEN + 36 WHEN - 61 THEN COALESCE ( 79, - 7 - 36 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6442
SELECT ALL + + ( - COUNT( * ) ) + SUM( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL + + ( - COUNT ( * ) ) + SUM ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 16 + - 47 col0, 21
----
-63
21

onlyif mysql # aggregate syntax: 
query II rowsort label-6444
SELECT COUNT( * ) + + COUNT( * ) AS col2, - 62 AS col1
----
2
-62

skipif mysql # not compatible
query II rowsort label-6444
SELECT COUNT ( * ) + + COUNT ( * ) AS col2, - 62 AS col1
----
2
-62

query II rowsort
SELECT ALL - ( - + 4 ) AS col1, 53 AS col0
----
4
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT 39 + + 67 + - COALESCE ( 77, 67 * COUNT( * ) * - 27 ) * 81
----
-6131

skipif mysql # not compatible
query I rowsort label-6446
SELECT 39 + + 67 + - COALESCE ( 77, 67 * COUNT ( * ) * - 27 ) * 81
----
-6131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6447
SELECT ALL - CAST( NULL AS SIGNED ) + + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL - CAST ( NULL AS INTEGER ) + + 38 AS col2
----
NULL

query I rowsort
SELECT ALL 8 + - - 95
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT SUM( + - 74 ) * - + 87
----
6438

skipif mysql # not compatible
query I rowsort label-6449
SELECT SUM ( + - 74 ) * - + 87
----
6438

query I rowsort
SELECT DISTINCT 26 + 37 + + 90 * 16
----
1503

query I rowsort
SELECT ALL + 42 + + 16 * - 28
----
-406

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6452
SELECT CAST( NULL AS DECIMAL ) + + - 54 - 61 * + + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT CAST ( NULL AS REAL ) + + - 54 - 61 * + + 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT ALL - ( 87 ) * 60 + - 81 + - ( + COUNT( * ) ) + - + 72
----
-5374

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL - ( 87 ) * 60 + - 81 + - ( + COUNT ( * ) ) + - + 72
----
-5374

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT NULLIF ( + ( + + MAX( DISTINCT + 21 ) ), + - 20 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6454
SELECT NULLIF ( + ( + + MAX ( DISTINCT + 21 ) ), + - 20 ) AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6455
SELECT MIN( + 75 ) * - 88 DIV - COUNT( * ) + + + SUM( + 15 ) col1
----
6615

skipif mysql # not compatible
query I rowsort label-6455
SELECT MIN ( + 75 ) * - 88 / - COUNT ( * ) + + + SUM ( + 15 ) col1
----
6615

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT - 89 - CASE COUNT( - 18 ) WHEN - ( + CASE - + 81 WHEN + 91 + 80 THEN + COUNT( * ) / + 28 + 15 WHEN + 80 * + + ( - 11 ) THEN NULL END ) THEN NULL WHEN - 37 + 44 + + 93 + - 96 + - - 25 * 33 * 3 THEN - COUNT( * ) END - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6456
SELECT - 89 - CASE COUNT ( - 18 ) WHEN - ( + CASE - + 81 WHEN + 91 + 80 THEN + COUNT ( * ) / + 28 + 15 WHEN + 80 * + + ( - 11 ) THEN NULL END ) THEN NULL WHEN - 37 + 44 + + 93 + - 96 + - - 25 * 33 * 3 THEN - COUNT ( * ) END - - 87
----
NULL

query II rowsort
SELECT DISTINCT + 93 col0, 72 AS col0
----
93
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6458
SELECT - 53 DIV + COUNT( DISTINCT + NULLIF ( - - 97, + - ( + 15 ) ) )
----
-53

skipif mysql # not compatible
query I rowsort label-6458
SELECT - 53 / + COUNT ( DISTINCT + NULLIF ( - - 97, + - ( + 15 ) ) )
----
-53

query I rowsort
SELECT DISTINCT 59 * + 48
----
2832

query I rowsort
SELECT DISTINCT 76 * - + 10 AS col0
----
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT DISTINCT + NULLIF ( + COUNT( DISTINCT + - CASE + 70 WHEN 50 THEN NULL WHEN + 78 * - ( - 65 ) THEN + + 85 END ), 81 + - ( + - 86 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT + NULLIF ( + COUNT ( DISTINCT + - CASE + 70 WHEN 50 THEN NULL WHEN + 78 * - ( - 65 ) THEN + + 85 END ), 81 + - ( + - 86 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6462
SELECT + COALESCE ( 34, - 49 + - + 42 - + 25 DIV + + 90 DIV + NULLIF ( + - 9, 53 * - - COUNT( * ) + + ( 65 ) DIV + COUNT( * ) + CAST( NULL AS SIGNED ) ) * + 20 )
----
34

skipif mysql # not compatible
query I rowsort label-6462
SELECT + COALESCE ( 34, - 49 + - + 42 - + 25 / + + 90 / + NULLIF ( + - 9, 53 * - - COUNT ( * ) + + ( 65 ) / + COUNT ( * ) + CAST ( NULL AS INTEGER ) ) * + 20 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT SUM( DISTINCT 18 ) col0
----
18

skipif mysql # not compatible
query I rowsort label-6463
SELECT SUM ( DISTINCT 18 ) col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT COUNT( DISTINCT 91 )
----
1

skipif mysql # not compatible
query I rowsort label-6464
SELECT COUNT ( DISTINCT 91 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT - 99 * - SUM( ( 95 ) ) * - - 9 * + 57
----
4824765

skipif mysql # not compatible
query I rowsort label-6465
SELECT - 99 * - SUM ( ( 95 ) ) * - - 9 * + 57
----
4824765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6466
SELECT ALL + ( COUNT( DISTINCT - 38 ) ) AS col0, + COALESCE ( + 75, + ( - 24 ) + - - 46 + MAX( - + 81 ), + 25 ) - + 53 * + + 93 + 57 + - 24 * - ( - CAST( NULL AS SIGNED ) ) * 91 / - ( 8 ) / + 87 + CASE - + 30 WHEN + ( NULLIF ( 75, - - NULLIF ( - - 38, + + 68 ) * 55 * + COUNT( * ) * 61 + NULLIF ( + + 83, 48 ) ) ) * + 80 THEN 22 * + 45 + + 63 END + - 7 / + 10
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6466
SELECT ALL + ( COUNT ( DISTINCT - 38 ) ) AS col0, + COALESCE ( + 75, + ( - 24 ) + - - 46 + MAX ( - + 81 ), + 25 ) - + 53 * + + 93 + 57 + - 24 * - ( - CAST ( NULL AS INTEGER ) ) * 91 / - ( 8 ) / + 87 + CASE - + 30 WHEN + ( NULLIF ( 75, - - NULLIF ( - - 38, + + 68 ) * 55 * + COUNT ( * ) * 61 + NULLIF ( + + 83, 48 ) ) ) * + 80 THEN 22 * + 45 + + 63 END + - 7 / + 10
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT DISTINCT + COUNT( + + ( 93 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT + COUNT ( + + ( 93 ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6468
SELECT - CAST( - - SUM( DISTINCT - 55 ) AS SIGNED ) * - COALESCE ( 60, - 12 ) AS col1
----
-3300

skipif mysql # not compatible
query I rowsort label-6468
SELECT - CAST ( - - SUM ( DISTINCT - 55 ) AS INTEGER ) * - COALESCE ( 60, - 12 ) AS col1
----
-3300

query I rowsort
SELECT DISTINCT + COALESCE ( + - 23, 49, - 91 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT DISTINCT + ( 6 ) * 71 * + MAX( ALL - + 99 ) + - SUM( DISTINCT - 18 ) AS col2
----
-42156

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT + ( 6 ) * 71 * + MAX ( ALL - + 99 ) + - SUM ( DISTINCT - 18 ) AS col2
----
-42156

query I rowsort
SELECT ALL + 83 + 62 AS col2
----
145

query I rowsort
SELECT DISTINCT - 70 * + 58
----
-4060

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT - 13 + - 9 * - + 21 + - + ( - 7 ) + + 18 + + COUNT( * ) * - 74
----
127

skipif mysql # not compatible
query I rowsort label-6473
SELECT - 13 + - 9 * - + 21 + - + ( - 7 ) + + 18 + + COUNT ( * ) * - 74
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6474
SELECT ALL - CAST( NULL AS SIGNED ) + 84 + + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL - CAST ( NULL AS INTEGER ) + 84 + + 86 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6475
SELECT - + CASE 41 WHEN + + 1 - + 53 * + 36 THEN 84 * + 59 WHEN + ( CAST( NULL AS SIGNED ) ) THEN - 36 * + CASE 82 WHEN - - 71 THEN + 30 WHEN + ( + 30 ) * + - AVG ( ALL 62 ) THEN - 8 * - 95 * + 5 / + 62 WHEN - CAST( - 78 AS SIGNED ) THEN NULL ELSE 96 + - NULLIF ( + 36, - - 82 + - COUNT( * ) ) + 41 + - 75 END + + 73 * + 45 + - 83 + - SUM( - CAST( NULL AS DECIMAL ) ) END + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6475
SELECT - + CASE 41 WHEN + + 1 - + 53 * + 36 THEN 84 * + 59 WHEN + ( CAST ( NULL AS INTEGER ) ) THEN - 36 * + CASE 82 WHEN - - 71 THEN + 30 WHEN + ( + 30 ) * + - AVG ( ALL 62 ) THEN - 8 * - 95 * + 5 / + 62 WHEN - CAST ( - 78 AS INTEGER ) THEN NULL ELSE 96 + - NULLIF ( + 36, - - 82 + - COUNT ( * ) ) + 41 + - 75 END + + 73 * + 45 + - 83 + - SUM ( - CAST ( NULL AS REAL ) ) END + - 84
----
NULL

query II rowsort
SELECT ALL 9 AS col1, - 77 AS col1
----
9
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT ALL - MIN( ALL + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL - MIN ( ALL + 0 )
----
0

query II rowsort
SELECT ALL + 13 + - - 54 * 0 AS col1, + 38
----
13
38

onlyif mysql # aggregate syntax: 
query II rowsort label-6479
SELECT DISTINCT - - MAX( DISTINCT - 89 ) + + 88, 90 col1
----
-1
90

skipif mysql # not compatible
query II rowsort label-6479
SELECT DISTINCT - - MAX ( DISTINCT - 89 ) + + 88, 90 col1
----
-1
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6480
SELECT DISTINCT + AVG ( 26 ) + - 93 + - + COUNT( * ) / - CAST( NULL AS SIGNED ) * + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT + AVG ( 26 ) + - 93 + - + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * + - 14
----
NULL

query I rowsort
SELECT + 25 + - - 83
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT DISTINCT CAST( + COALESCE ( + 67, + - 44 * + 21 / - NULLIF ( - 64, - 52 ) ) AS SIGNED ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT CAST ( + COALESCE ( + 67, + - 44 * + 21 / - NULLIF ( - 64, - 52 ) ) AS INTEGER ) AS col2
----
67

query I rowsort
SELECT - - ( 26 ) * 49
----
1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6484
SELECT ALL + MAX( DISTINCT - CAST( 48 AS SIGNED ) ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL + MAX ( DISTINCT - CAST ( 48 AS INTEGER ) ) AS col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6485
SELECT DISTINCT CAST( NULL AS SIGNED ) * + CAST( - 1 AS SIGNED ) + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + CAST ( - 1 AS INTEGER ) + 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6486
SELECT ALL 1 DIV + + 91 - + 75 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL 1 / + + 91 - + 75 AS col2
----
-75

query I rowsort
SELECT + 12 * + - 75
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT ALL 18 * MAX( + 11 ) col2
----
198

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL 18 * MAX ( + 11 ) col2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT ALL 35 * MAX( ALL - 48 )
----
-1680

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL 35 * MAX ( ALL - 48 )
----
-1680

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6490
SELECT ALL + COUNT( * ) AS col0, CAST( NULL AS DECIMAL ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6490
SELECT ALL + COUNT ( * ) AS col0, CAST ( NULL AS REAL ) AS col2
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6491
SELECT DISTINCT 23 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT 23 / - 43
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6492
SELECT ALL - COUNT( * ) * 61 DIV + ( 28 )
----
-2

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL - COUNT ( * ) * 61 / + ( 28 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6493
SELECT + CAST( - 95 AS SIGNED ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-6493
SELECT + CAST ( - 95 AS INTEGER ) AS col1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6494
SELECT + CAST( 14 AS SIGNED ) col0
----
14

skipif mysql # not compatible
query I rowsort label-6494
SELECT + CAST ( 14 AS INTEGER ) col0
----
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6495
SELECT ALL 0 * + ( 73 ) + 62 - - 50 + 21 + 69 + + 43 * + 57 * + 67 * - + 46 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL 0 * + ( 73 ) + 62 - - 50 + 21 + 69 + + 43 * + 57 * + 67 * - + 46 - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6496
SELECT + CAST( - ( + - 53 ) AS SIGNED ) + 53 + - + 81 * + 59
----
-4673

skipif mysql # not compatible
query I rowsort label-6496
SELECT + CAST ( - ( + - 53 ) AS INTEGER ) + 53 + - + 81 * + 59
----
-4673

onlyif mysql # DIV for integer division: 
query I rowsort label-6497
SELECT COALESCE ( 19, + - 55, + 39 * + 41 * 88 DIV - + 86 * - 80 )
----
19

skipif mysql # not compatible
query I rowsort label-6497
SELECT COALESCE ( 19, + - 55, + 39 * + 41 * 88 / - + 86 * - 80 )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-6498
SELECT ALL + + COUNT( * ) * - - COALESCE ( COALESCE ( + - 93, - 27, 68 ), - + 35 ) + ( - 64 ) * 33 * 28 AS col0, 59
----
-59229
59

skipif mysql # not compatible
query II rowsort label-6498
SELECT ALL + + COUNT ( * ) * - - COALESCE ( COALESCE ( + - 93, - 27, 68 ), - + 35 ) + ( - 64 ) * 33 * 28 AS col0, 59
----
-59229
59

query II rowsort
SELECT DISTINCT + 89 AS col2, - 95 AS col0
----
89
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT MIN( + 60 ) col0
----
60

skipif mysql # not compatible
query I rowsort label-6500
SELECT MIN ( + 60 ) col0
----
60

query I rowsort
SELECT ALL + - 15 * 99 + + + 0 + - ( + 75 )
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT + + 2 + - MAX( ALL - 50 )
----
52

skipif mysql # not compatible
query I rowsort label-6502
SELECT + + 2 + - MAX ( ALL - 50 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT - - COUNT( * ) + - 63
----
-62

skipif mysql # not compatible
query I rowsort label-6503
SELECT - - COUNT ( * ) + - 63
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6504
SELECT ALL CAST( - MIN( + - 80 ) AS SIGNED ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL CAST ( - MIN ( + - 80 ) AS INTEGER ) AS col1
----
80

query II rowsort
SELECT 11 col0, - 50
----
11
-50

query I rowsort
SELECT ALL - 90 * - 26 + - 15
----
2325

onlyif mysql # DIV for integer division: 
query I rowsort label-6507
SELECT ALL + - 33 - 40 + - ( 75 ) DIV + 67 col0
----
-74

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL + - 33 - 40 + - ( 75 ) / + 67 col0
----
-74

query I rowsort
SELECT - ( + + 32 ) + - + 8
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT ALL MAX( DISTINCT + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL MAX ( DISTINCT + 21 )
----
21

query I rowsort
SELECT - 14 + + + 96 + 76 + - 16 + - 99 AS col0
----
43

query I rowsort
SELECT ALL - ( + 88 ) * - 49
----
4312

query I rowsort
SELECT + 53 * - 40
----
-2120

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT - - SUM( ALL + 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6513
SELECT - - SUM ( ALL + 28 ) AS col2
----
28

query I rowsort
SELECT + 80 + + 9 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT ALL - - 36 * - COUNT( * ) + + ( - - COUNT( * ) ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL - - 36 * - COUNT ( * ) + + ( - - COUNT ( * ) ) AS col1
----
-35

query I rowsort
SELECT DISTINCT - 87 * - - 4 AS col2
----
-348

onlyif mysql # DIV for integer division: 
query I rowsort label-6517
SELECT ALL 24 DIV 4 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL 24 / 4 AS col0
----
6

query II rowsort
SELECT 76 - - + 51 AS col0, 23 AS col2
----
127
23

query I rowsort
SELECT 79 * + + 43 AS col0
----
3397

query I rowsort
SELECT 66 + - + 6 + 90
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6521
SELECT ALL 64 + 49 DIV ( - - COUNT( ALL - 51 ) ) * 93 + + COUNT( * ) * + 30 + + - COALESCE ( - + 61, - MIN( DISTINCT 61 ) ) DIV + 71 - + 17 - - 29 col2, - 45 * - - 76
----
4663
-3420

skipif mysql # not compatible
query II rowsort label-6521
SELECT ALL 64 + 49 / ( - - COUNT ( ALL - 51 ) ) * 93 + + COUNT ( * ) * + 30 + + - COALESCE ( - + 61, - MIN ( DISTINCT 61 ) ) / + 71 - + 17 - - 29 col2, - 45 * - - 76
----
4663
-3420

query I rowsort
SELECT DISTINCT - 1 + + + 64
----
63

query I rowsort
SELECT ALL 17 * + - 98 * - + ( - 2 ) AS col1
----
-3332

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT 95 + + 59 - + 81 + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-6524
SELECT 95 + + 59 - + 81 + COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT DISTINCT + COUNT( * ) + CASE - - 96 WHEN 32 THEN + MAX( 67 ) + - + 52 + - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT + COUNT ( * ) + CASE - - 96 WHEN 32 THEN + MAX ( 67 ) + - + 52 + - - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT ALL ( + + NULLIF ( + + 56, - - 35 * - + 45 + 65 - SUM( DISTINCT + + 18 ) ) ) + MAX( - - 94 ) * - 55 + - 43 + - 60
----
-5217

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL ( + + NULLIF ( + + 56, - - 35 * - + 45 + 65 - SUM ( DISTINCT + + 18 ) ) ) + MAX ( - - 94 ) * - 55 + - 43 + - 60
----
-5217

query I rowsort
SELECT ( + 16 ) + + 84 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT ALL 81 * - + NULLIF ( + + COUNT( * ), - - 73 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL 81 * - + NULLIF ( + + COUNT ( * ), - - 73 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT 84 * - 91 * - + 56 * - 29 * COUNT( * ) + + 74
----
-12413782

skipif mysql # not compatible
query I rowsort label-6529
SELECT 84 * - 91 * - + 56 * - 29 * COUNT ( * ) + + 74
----
-12413782

query I rowsort
SELECT ALL ( - 63 ) + - 25
----
-88

query I rowsort
SELECT ALL - 37 + 57 * + 24 - ( 70 )
----
1261

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT + COUNT( * ) * 48 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6532
SELECT + COUNT ( * ) * 48 AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6533
SELECT COALESCE ( + 61, - + 74 DIV - 49 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-6533
SELECT COALESCE ( + 61, - + 74 / - 49 ) AS col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-6534
SELECT ALL 32 - 60 DIV + 92
----
32

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL 32 - 60 / + 92
----
32

query I rowsort
SELECT DISTINCT + 18 - - - 9
----
9

query I rowsort
SELECT ALL - 96 * + 24 * - 98 * - 97
----
-21901824

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT + 84 * + COUNT( * ) * + 28 AS col1
----
2352

skipif mysql # not compatible
query I rowsort label-6537
SELECT + 84 * + COUNT ( * ) * + 28 AS col1
----
2352

query I rowsort
SELECT DISTINCT 59 * 12 AS col2
----
708

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT - - CASE COUNT( * ) WHEN - 57 - 6 * + 96 THEN NULL WHEN - NULLIF ( - + 2, - - COUNT( * ) ) + 89 THEN 34 + + 75 WHEN + - 53 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT - - CASE COUNT ( * ) WHEN - 57 - 6 * + 96 THEN NULL WHEN - NULLIF ( - + 2, - - COUNT ( * ) ) + 89 THEN 34 + + 75 WHEN + - 53 THEN + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 72 * - + ( - - 62 )
----
-4464

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL - ( + + COUNT( * ) ) * - 94 + + 98
----
192

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL - ( + + COUNT ( * ) ) * - 94 + + 98
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT + 51 * SUM( 72 ) - - NULLIF ( + 97, + + COUNT( * ) ) AS col2
----
3769

skipif mysql # not compatible
query I rowsort label-6542
SELECT + 51 * SUM ( 72 ) - - NULLIF ( + 97, + + COUNT ( * ) ) AS col2
----
3769

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6543
SELECT ALL NULLIF ( COALESCE ( + + CAST( 71 AS SIGNED ), - 39 ), 25 + + + 72 )
----
71

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL NULLIF ( COALESCE ( + + CAST ( 71 AS INTEGER ), - 39 ), 25 + + + 72 )
----
71

query I rowsort
SELECT 76 + + 46 AS col0
----
122

query II rowsort
SELECT 19 col0, 38 * - 60
----
19
-2280

onlyif mysql # aggregate syntax: 
query II rowsort label-6546
SELECT - 6 AS col1, NULLIF ( + COUNT( 52 ), 24 + + + COUNT( * ) * + 59 * + 4 )
----
-6
1

skipif mysql # not compatible
query II rowsort label-6546
SELECT - 6 AS col1, NULLIF ( + COUNT ( 52 ), 24 + + + COUNT ( * ) * + 59 * + 4 )
----
-6
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6547
SELECT - COUNT( * ) col2, + 57
----
-1
57

skipif mysql # not compatible
query II rowsort label-6547
SELECT - COUNT ( * ) col2, + 57
----
-1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT 95 + 59 * - - 22 + - 28 * - COUNT( * ) * - - ( + SUM( + - 49 ) ) - + 10
----
11

skipif mysql # not compatible
query I rowsort label-6548
SELECT 95 + 59 * - - 22 + - 28 * - COUNT ( * ) * - - ( + SUM ( + - 49 ) ) - + 10
----
11

query I rowsort
SELECT ALL - 14 + - - 40 col1
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6550
SELECT 5 DIV + 19
----
0

skipif mysql # not compatible
query I rowsort label-6550
SELECT 5 / + 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT 76 * - + COUNT( * ) * - ( + ( + - 41 ) )
----
-3116

skipif mysql # not compatible
query I rowsort label-6551
SELECT 76 * - + COUNT ( * ) * - ( + ( + - 41 ) )
----
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT DISTINCT MIN( ALL + + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT MIN ( ALL + + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT ALL - 86 * - 87 + - + 46 * + CASE - 85 WHEN - 47 THEN 54 - - + 21 END * - COUNT( 27 ) + + - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL - 86 * - 87 + - + 46 * + CASE - 85 WHEN - 47 THEN 54 - - + 21 END * - COUNT ( 27 ) + + - 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6554
SELECT COUNT( * ), + COUNT( * ) - 18 * - - COUNT( * ) + 95 * - 42 AS col1
----
1
-4007

skipif mysql # not compatible
query II rowsort label-6554
SELECT COUNT ( * ), + COUNT ( * ) - 18 * - - COUNT ( * ) + 95 * - 42 AS col1
----
1
-4007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6555
SELECT ALL 42 * SUM( + 98 ) + 58 DIV - 28 AS col2
----
4114

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL 42 * SUM ( + 98 ) + 58 / - 28 AS col2
----
4114

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT 1 * ( - COUNT( * ) ) * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6556
SELECT 1 * ( - COUNT ( * ) ) * + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT DISTINCT - NULLIF ( + 33, - COUNT( - + 77 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT - NULLIF ( + 33, - COUNT ( - + 77 ) )
----
-33

query I rowsort
SELECT ALL - ( - 33 ) AS col1
----
33

query I rowsort
SELECT DISTINCT - 76 * - - 75 + - + ( 96 )
----
-5796

query I rowsort
SELECT 91 * - 48
----
-4368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6561
SELECT DISTINCT - CAST( - 35 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT - CAST ( - 35 AS INTEGER ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT ALL + 43 * - - ( + + 98 ) + + + COUNT( * ) AS col0
----
4215

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL + 43 * - - ( + + 98 ) + + + COUNT ( * ) AS col0
----
4215

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT 16 * COUNT( * ) - - ( + ( 74 ) ) + + 23 - - 32 * + ( + SUM( + 21 ) )
----
785

skipif mysql # not compatible
query I rowsort label-6563
SELECT 16 * COUNT ( * ) - - ( + ( 74 ) ) + + 23 - - 32 * + ( + SUM ( + 21 ) )
----
785

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT MIN( - + 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-6564
SELECT MIN ( - + 17 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT + MAX( - 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6565
SELECT + MAX ( - 44 ) AS col2
----
-44

query II rowsort
SELECT ALL - - 58 AS col0, 98
----
58
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL 63 * + SUM( ALL - 70 ) * + 22
----
-97020

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL 63 * + SUM ( ALL - 70 ) * + 22
----
-97020

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL + - 37 - + - 24 - SUM( - 86 ) * - ( - 31 ) + - - 0 * 9 * NULLIF ( + COALESCE ( 49, + 77 * - 63 ), 50 )
----
2653

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL + - 37 - + - 24 - SUM ( - 86 ) * - ( - 31 ) + - - 0 * 9 * NULLIF ( + COALESCE ( 49, + 77 * - 63 ), 50 )
----
2653

query I rowsort
SELECT + 42 * - + 96 AS col2
----
-4032

query I rowsort
SELECT ALL + 14 * + 86
----
1204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6571
SELECT - - COUNT( * ) * ( + COALESCE ( + ( 55 ), - 34, 49, - 25 DIV - + 6 DIV - 49 ) ) + + 56 * 18 * - 88
----
-88649

skipif mysql # not compatible
query I rowsort label-6571
SELECT - - COUNT ( * ) * ( + COALESCE ( + ( 55 ), - 34, 49, - 25 / - + 6 / - 49 ) ) + + 56 * 18 * - 88
----
-88649

query I rowsort
SELECT + 62 + - 62 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6573
SELECT + - 93 DIV - 25 + + - ( + ( + COUNT( * ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-6573
SELECT + - 93 / - 25 + + - ( + ( + COUNT ( * ) ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT DISTINCT + 82 * COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT + 82 * COUNT ( * ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT + - 43 + - + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-6575
SELECT + - 43 + - + COUNT ( * )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6576
SELECT ALL + COUNT( * ) * + - ( 33 ) + ( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL + COUNT ( * ) * + - ( 33 ) + ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6577
SELECT + ( 52 ) DIV - + COUNT( * ), + CASE + 72 WHEN + 69 * 92 + + 94 THEN 57 - - + 33 END AS col0
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-6577
SELECT + ( 52 ) / - + COUNT ( * ), + CASE + 72 WHEN + 69 * 92 + + 94 THEN 57 - - + 33 END AS col0
----
-52
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6578
SELECT + COUNT( * ) DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-6578
SELECT + COUNT ( * ) / 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT ALL 12 + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL 12 + + COUNT ( * )
----
13

query I rowsort
SELECT ALL 89 + - 62
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT + MIN( - 90 ) - - - 86 AS col2
----
-176

skipif mysql # not compatible
query I rowsort label-6581
SELECT + MIN ( - 90 ) - - - 86 AS col2
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT - COALESCE ( + - 71, + - 83, - 3, + + COUNT( * ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6582
SELECT - COALESCE ( + - 71, + - 83, - 3, + + COUNT ( * ) ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT + 71 + + - COUNT( * ) * + - 19 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6583
SELECT + 71 + + - COUNT ( * ) * + - 19 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL MIN( + + 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL MIN ( + + 43 ) AS col0
----
43

query I rowsort
SELECT + NULLIF ( - 72, + 30 ) * + 1
----
-72

query I rowsort
SELECT ALL 11 + - 19 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6587
SELECT DISTINCT SUM( ALL - 17 ) AS col1, 3 * - - 25 col2
----
-17
75

skipif mysql # not compatible
query II rowsort label-6587
SELECT DISTINCT SUM ( ALL - 17 ) AS col1, 3 * - - 25 col2
----
-17
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6588
SELECT ALL - 83 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL - 83 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6589
SELECT - 17 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT - 17 - + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT + COUNT( * ) + - + 40
----
-39

skipif mysql # not compatible
query I rowsort label-6590
SELECT + COUNT ( * ) + - + 40
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-6591
SELECT ( - ( - MIN( DISTINCT - 34 ) ) ), COUNT( * ) - + + COUNT( * ) AS col1
----
-34
0

skipif mysql # not compatible
query II rowsort label-6591
SELECT ( - ( - MIN ( DISTINCT - 34 ) ) ), COUNT ( * ) - + + COUNT ( * ) AS col1
----
-34
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6592
SELECT ALL + 99 * + NULLIF ( + + 92, - 84 ) * + 22 + + + 57 DIV 17 AS col2, COUNT( * ) + - 69 + 0
----
200379
-68

skipif mysql # not compatible
query II rowsort label-6592
SELECT ALL + 99 * + NULLIF ( + + 92, - 84 ) * + 22 + + + 57 / 17 AS col2, COUNT ( * ) + - 69 + 0
----
200379
-68

query I rowsort
SELECT + 81 + + 3 * 16 AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL + SUM( + 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL + SUM ( + 78 ) AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT ALL + CAST( ( 88 ) AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + CAST ( ( 88 ) AS INTEGER )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6596
SELECT ALL NULLIF ( - 29, - 20 ) * + CASE + CAST( NULL AS DECIMAL ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + - 23 THEN - COUNT( * ) ELSE NULL END / 90 + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL NULLIF ( - 29, - 20 ) * + CASE + CAST ( NULL AS REAL ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + - 23 THEN - COUNT ( * ) ELSE NULL END / 90 + - 33
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6597
SELECT ALL + CAST( 86 AS SIGNED ) AS col1, ( 3 ) + 67
----
86
70

skipif mysql # not compatible
query II rowsort label-6597
SELECT ALL + CAST ( 86 AS INTEGER ) AS col1, ( 3 ) + 67
----
86
70

query I rowsort
SELECT - + 24 + - 43
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT - - 65 * COUNT( * ) + - COALESCE ( + 77, + ( + 5 ) + ( 44 ) * + 42 - - 56 + + 45 * 30 * - - 23 * - - 72 + 64, - + COALESCE ( - 59, - ( + NULLIF ( + 20, AVG ( + 54 ) ) ) * + COUNT( * ) ) ) + 64 * - 69
----
-4428

skipif mysql # not compatible
query I rowsort label-6599
SELECT - - 65 * COUNT ( * ) + - COALESCE ( + 77, + ( + 5 ) + ( 44 ) * + 42 - - 56 + + 45 * 30 * - - 23 * - - 72 + 64, - + COALESCE ( - 59, - ( + NULLIF ( + 20, AVG ( + 54 ) ) ) * + COUNT ( * ) ) ) + 64 * - 69
----
-4428

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT NULLIF ( - 32, + 64 ) * + 47 + 54 * COUNT( * ) * 13 - - 65 AS col0
----
-737

skipif mysql # not compatible
query I rowsort label-6600
SELECT NULLIF ( - 32, + 64 ) * + 47 + 54 * COUNT ( * ) * 13 - - 65 AS col0
----
-737

query II rowsort
SELECT - 6 * - 33 AS col0, 33
----
198
33

query I rowsort
SELECT - 76 * + 51
----
-3876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6603
SELECT + + COALESCE ( - 43, + SUM( - - CAST( + 96 AS SIGNED ) ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6603
SELECT + + COALESCE ( - 43, + SUM ( - - CAST ( + 96 AS INTEGER ) ) ) AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6604
SELECT ALL + ( CAST( - CASE 43 WHEN + - CAST( NULL AS SIGNED ) THEN 73 + + + 68 + - + CAST( NULL AS SIGNED ) - + COUNT( * ) WHEN - 84 * - - 15 * - 34 + - 29 + - 67 / - MAX( 80 ) * 10 * - ( 81 ) + + 90 * - - 67 + 41 - CASE - 19 WHEN + + MAX( ALL + 56 ) THEN 18 + + 41 WHEN - 28 - + 23 THEN - AVG ( + - 41 ) * 52 ELSE + COUNT( * ) * - 79 END * + - COUNT( * ) * MAX( - 37 ) THEN NULL END AS SIGNED ) ) * - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL + ( CAST ( - CASE 43 WHEN + - CAST ( NULL AS INTEGER ) THEN 73 + + + 68 + - + CAST ( NULL AS INTEGER ) - + COUNT ( * ) WHEN - 84 * - - 15 * - 34 + - 29 + - 67 / - MAX ( 80 ) * 10 * - ( 81 ) + + 90 * - - 67 + 41 - CASE - 19 WHEN + + MAX ( ALL + 56 ) THEN 18 + + 41 WHEN - 28 - + 23 THEN - AVG ( + - 41 ) * 52 ELSE + COUNT ( * ) * - 79 END * + - COUNT ( * ) * MAX ( - 37 ) THEN NULL END AS INTEGER ) ) * - 1 AS col0
----
NULL

query I rowsort
SELECT - + 97 * 69 - + 25
----
-6718

query I rowsort
SELECT DISTINCT + 76 * - + 9 + - 64 AS col1
----
-748

query I rowsort
SELECT ALL + + 17 * 23 + - 67
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT DISTINCT - CASE 90 WHEN + + 2 THEN - - SUM( + 6 ) / - 66 - - NULLIF ( + 81, 93 - MAX( ALL - 93 ) + 61 * 74 + - 98 ) * COUNT( * ) END * 50 - + - 14 + - 89 + + 44 * - 8 * - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT - CASE 90 WHEN + + 2 THEN - - SUM ( + 6 ) / - 66 - - NULLIF ( + 81, 93 - MAX ( ALL - 93 ) + 61 * 74 + - 98 ) * COUNT ( * ) END * 50 - + - 14 + - 89 + + 44 * - 8 * - 61 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6609
SELECT ALL + COUNT( * ) * + - 36 DIV + - CAST( + + COALESCE ( + 8, 73 * 20 + - 77 * + 27 + 5, - + 84 ) AS SIGNED ) + - 87 * + 23
----
-1997

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL + COUNT ( * ) * + - 36 / + - CAST ( + + COALESCE ( + 8, 73 * 20 + - 77 * + 27 + 5, - + 84 ) AS INTEGER ) + - 87 * + 23
----
-1997

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT ALL 48 + NULLIF ( + MAX( 30 ), + COUNT( * ) + - 35 )
----
78

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL 48 + NULLIF ( + MAX ( 30 ), + COUNT ( * ) + - 35 )
----
78

query II rowsort
SELECT ALL 51, - 15 + + 82 AS col1
----
51
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6612
SELECT ALL 41 DIV 55 col0
----
0

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL 41 / 55 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT DISTINCT 59 + - CASE NULLIF ( + + CASE + 86 WHEN + + COUNT( * ) * + COUNT( * ) * - 77 THEN NULL WHEN 61 * - 59 + + + ( 20 ) - + SUM( + 42 ) + 28 THEN + - 80 ELSE NULL END, - 14 * - 68 / - ( - 64 ) ) WHEN 91 THEN NULL WHEN + 56 THEN + + 13 * + - ( + 2 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT 59 + - CASE NULLIF ( + + CASE + 86 WHEN + + COUNT ( * ) * + COUNT ( * ) * - 77 THEN NULL WHEN 61 * - 59 + + + ( 20 ) - + SUM ( + 42 ) + 28 THEN + - 80 ELSE NULL END, - 14 * - 68 / - ( - 64 ) ) WHEN 91 THEN NULL WHEN + 56 THEN + + 13 * + - ( + 2 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6614
SELECT ALL 5 DIV - 77 * - + 94 col1
----
0

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL 5 / - 77 * - + 94 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT ALL MIN( ALL + 24 ) - 32 * - COUNT( * ) * MAX( DISTINCT 43 ) * + 28
----
38552

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL MIN ( ALL + 24 ) - 32 * - COUNT ( * ) * MAX ( DISTINCT 43 ) * + 28
----
38552

query I rowsort
SELECT ALL 58 * - + 99 AS col2
----
-5742

query I rowsort
SELECT + 64 * - - 29 col0
----
1856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6618
SELECT + 81 / + + 79 / + + CAST( NULL AS SIGNED ) * + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6618
SELECT + 81 / + + 79 / + + CAST ( NULL AS INTEGER ) * + - 6
----
NULL

query I rowsort
SELECT + 40 * - - 14
----
560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6620
SELECT + CAST( NULL AS SIGNED ), - 92 * 48 AS col2
----
NULL
-4416

skipif mysql # not compatible
query II rowsort label-6620
SELECT + CAST ( NULL AS INTEGER ), - 92 * 48 AS col2
----
NULL
-4416

query I rowsort
SELECT ALL - 89 / - CASE - 25 WHEN - - 45 THEN - 61 END - + 74
----
NULL

query I rowsort
SELECT ALL + ( + 24 ) AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6623
SELECT DISTINCT - CAST( + + 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT - CAST ( + + 81 AS INTEGER )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT - 81 * COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-6624
SELECT - 81 * COUNT ( * )
----
-81

query I rowsort
SELECT ( 69 ) * - - 93
----
6417

onlyif mysql # DIV for integer division: 
query I rowsort label-6626
SELECT - 73 DIV 59 - 32 - + + 84 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-6626
SELECT - 73 / 59 - 32 - + + 84 AS col2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT + + SUM( + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-6627
SELECT + + SUM ( + 2 )
----
2

query I rowsort
SELECT ALL - - 94 * + - 60 AS col1
----
-5640

onlyif mysql # aggregate syntax: 
query II rowsort label-6629
SELECT ALL + 37 * + 74 * - 76 AS col2, + COUNT( + + 44 )
----
-208088
1

skipif mysql # not compatible
query II rowsort label-6629
SELECT ALL + 37 * + 74 * - 76 AS col2, + COUNT ( + + 44 )
----
-208088
1

query I rowsort
SELECT + NULLIF ( 23, - ( - 36 ) ) col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT DISTINCT + 4 * - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT + 4 * - COUNT ( * )
----
-4

query I rowsort
SELECT 48 - - 68 AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT - MAX( - 2 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-6633
SELECT - MAX ( - 2 ) col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6634
SELECT ( + + 17 ) * + CASE + - 2 WHEN + COUNT( DISTINCT + 67 ) + + + CAST( + + 4 AS SIGNED ) + ( 81 ) THEN NULL WHEN COUNT( * ) THEN NULL WHEN + CAST( + - 63 AS SIGNED ) DIV + ( - - 31 ) THEN NULL ELSE NULLIF ( - 15, - 23 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6634
SELECT ( + + 17 ) * + CASE + - 2 WHEN + COUNT ( DISTINCT + 67 ) + + + CAST ( + + 4 AS INTEGER ) + ( 81 ) THEN NULL WHEN COUNT ( * ) THEN NULL WHEN + CAST ( + - 63 AS INTEGER ) / + ( - - 31 ) THEN NULL ELSE NULLIF ( - 15, - 23 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6635
SELECT DISTINCT + 80 + + 85 * COUNT( * ) AS col1, + CASE + - 11 WHEN 89 / + MAX( ALL CASE + 66 WHEN + ( - 9 ) THEN + + 57 ELSE + 1 END ) / - 1 + - - 92 + - MAX( + 79 ) * + - 26 THEN + - ( - ( + + CAST( + COUNT( * ) AS SIGNED ) ) ) * - - COUNT( * ) END * - 27 * - + COUNT( * ) * - 36 * + 24
----
165
NULL

skipif mysql # not compatible
query II rowsort label-6635
SELECT DISTINCT + 80 + + 85 * COUNT ( * ) AS col1, + CASE + - 11 WHEN 89 / + MAX ( ALL CASE + 66 WHEN + ( - 9 ) THEN + + 57 ELSE + 1 END ) / - 1 + - - 92 + - MAX ( + 79 ) * + - 26 THEN + - ( - ( + + CAST ( + COUNT ( * ) AS INTEGER ) ) ) * - - COUNT ( * ) END * - 27 * - + COUNT ( * ) * - 36 * + 24
----
165
NULL

query I rowsort
SELECT ALL - 21 + 20 col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6637
SELECT + 6 * + + 29 + - ( - 2 ) + - + 20 + + 43 DIV + COUNT( ALL - 85 ) * ( + COUNT( * ) )
----
199

skipif mysql # not compatible
query I rowsort label-6637
SELECT + 6 * + + 29 + - ( - 2 ) + - + 20 + + 43 / + COUNT ( ALL - 85 ) * ( + COUNT ( * ) )
----
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6638
SELECT - + CAST( + ( + + SUM( 70 ) ) AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-6638
SELECT - + CAST ( + ( + + SUM ( 70 ) ) AS INTEGER )
----
-70

query I rowsort
SELECT 58 * 65 col1
----
3770

query I rowsort
SELECT DISTINCT + 83 + + 26
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT DISTINCT - 37 * + 70 * + COUNT( * ) * + - 65 col2
----
168350

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT - 37 * + 70 * + COUNT ( * ) * + - 65 col2
----
168350

query I rowsort
SELECT 89 + + - 25
----
64

query I rowsort
SELECT ALL 18 * - COALESCE ( 14, 65 ) AS col1
----
-252

query II rowsort
SELECT DISTINCT 10 AS col2, - 44 AS col0
----
10
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT DISTINCT + 83 - + - 32 - MIN( DISTINCT - ( - - 83 ) )
----
198

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT + 83 - + - 32 - MIN ( DISTINCT - ( - - 83 ) )
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6646
SELECT ALL - COALESCE ( - 13, + + CAST( + - 50 AS SIGNED ) * - - MAX( + + 47 ) * - 17, + + 25 * + 35 - 60 + 25 * - 7 ) * 4 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL - COALESCE ( - 13, + + CAST ( + - 50 AS INTEGER ) * - - MAX ( + + 47 ) * - 17, + + 25 * + 35 - 60 + 25 * - 7 ) * 4 AS col0
----
52

query II rowsort
SELECT - 70 AS col1, NULLIF ( - ( + 2 ), + 89 ) AS col2
----
-70
-2

query I rowsort
SELECT 1 + - - 87
----
88

query I rowsort
SELECT 4 * + 51 AS col1
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT 10 + ( - SUM( + 1 ) ) + 35 - 57 * - - 40 * 23 + - 55 + + - 9 * - 98 + COUNT( * ) * - 89 AS col2
----
-51658

skipif mysql # not compatible
query I rowsort label-6650
SELECT 10 + ( - SUM ( + 1 ) ) + 35 - 57 * - - 40 * 23 + - 55 + + - 9 * - 98 + COUNT ( * ) * - 89 AS col2
----
-51658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6651
SELECT DISTINCT SUM( ALL + - 12 ) DIV CAST( + ( - 92 ) AS SIGNED ) * - 21 + - - ( + ( 99 ) ) - - 2
----
101

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT SUM ( ALL + - 12 ) / CAST ( + ( - 92 ) AS INTEGER ) * - 21 + - - ( + ( 99 ) ) - - 2
----
101

query III rowsort
SELECT ALL 84 AS col1, 88 AS col1, - - 33
----
84
88
33

query II rowsort
SELECT DISTINCT 86 AS col1, 99 + 15 * - 50 + + 93 AS col0
----
86
-558

query I rowsort
SELECT 36 - - ( + 32 ) col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ( + COUNT( * ) ) - 50
----
-49

skipif mysql # not compatible
query I rowsort label-6655
SELECT ( + COUNT ( * ) ) - 50
----
-49

query II rowsort
SELECT ALL 95 AS col2, + ( - + 13 ) * - 7 AS col1
----
95
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6657
SELECT 55 + ( + + 28 ) + COUNT( * ) AS col2, 85
----
84
85

skipif mysql # not compatible
query II rowsort label-6657
SELECT 55 + ( + + 28 ) + COUNT ( * ) AS col2, 85
----
84
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT + SUM( ALL 82 ) * - 13 + - + 50 AS col2
----
-1116

skipif mysql # not compatible
query I rowsort label-6658
SELECT + SUM ( ALL 82 ) * - 13 + - + 50 AS col2
----
-1116

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT - COUNT( * ) * + COUNT( * ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6659
SELECT - COUNT ( * ) * + COUNT ( * ) + - COUNT ( * )
----
-2

query I rowsort
SELECT DISTINCT 27 * 49
----
1323

query I rowsort
SELECT ALL - 77 + + 94
----
17

query II rowsort
SELECT 93 + + 11 AS col1, 0 col2
----
104
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT ALL 54 + - - 35 * + COUNT( * ) * + NULLIF ( + - COALESCE ( + + 58, + MIN( + 60 ) + - COUNT( * ) * - - 61 ), + - 12 * 34 ) AS col2
----
-1976

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL 54 + - - 35 * + COUNT ( * ) * + NULLIF ( + - COALESCE ( + + 58, + MIN ( + 60 ) + - COUNT ( * ) * - - 61 ), + - 12 * 34 ) AS col2
----
-1976

query II rowsort
SELECT DISTINCT - 96 AS col0, - 32 AS col2
----
-96
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6665
SELECT DISTINCT - + CASE COUNT( * ) WHEN - COUNT( * ) THEN - 87 * - CASE + - 99 WHEN - + 21 * + SUM( 83 ) + MAX( ALL - 77 ) * + 28 - - CASE + COALESCE ( - CASE COALESCE ( + CAST( NULL AS SIGNED ), COUNT( * ), 35 ) WHEN - + 7 + + 37 THEN - + 83 * - 47 ELSE + 65 + + 50 END, 18, + 33 + 80 ) WHEN + 85 THEN - 55 END * - ( + 57 ) * 82 - - 18 + + + 32 THEN - - 1 END + + - 45 + 62 * - - 13 WHEN 95 THEN + 50 WHEN 43 THEN NULL WHEN COUNT( * ) / + 98 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT - + CASE COUNT ( * ) WHEN - COUNT ( * ) THEN - 87 * - CASE + - 99 WHEN - + 21 * + SUM ( 83 ) + MAX ( ALL - 77 ) * + 28 - - CASE + COALESCE ( - CASE COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ), 35 ) WHEN - + 7 + + 37 THEN - + 83 * - 47 ELSE + 65 + + 50 END, 18, + 33 + 80 ) WHEN + 85 THEN - 55 END * - ( + 57 ) * 82 - - 18 + + + 32 THEN - - 1 END + + - 45 + 62 * - - 13 WHEN 95 THEN + 50 WHEN 43 THEN NULL WHEN COUNT ( * ) / + 98 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT 73 * - COUNT( * ) * SUM( DISTINCT + ( + - ( - 12 ) ) ) AS col1
----
-876

skipif mysql # not compatible
query I rowsort label-6666
SELECT 73 * - COUNT ( * ) * SUM ( DISTINCT + ( + - ( - 12 ) ) ) AS col1
----
-876

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT + + MIN( + 24 ) * COUNT( * ) + + ( - - 76 ) + - MAX( ALL - 19 ) + - 24
----
95

skipif mysql # not compatible
query I rowsort label-6667
SELECT + + MIN ( + 24 ) * COUNT ( * ) + + ( - - 76 ) + - MAX ( ALL - 19 ) + - 24
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6668
SELECT + 78 + 54 DIV + 17 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-6668
SELECT + 78 + 54 / + 17 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT + COUNT( * ) * + SUM( - + 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-6669
SELECT + COUNT ( * ) * + SUM ( - + 57 )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT ALL + + 87 + 37 + - 17 + 37 DIV ( - ( - + 96 ) ) col1
----
107

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL + + 87 + 37 + - 17 + 37 / ( - ( - + 96 ) ) col1
----
107

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6671
SELECT ALL CAST( NULL AS DECIMAL ) + - 45 + - COALESCE ( + 16, + - 80 * - 58, + + COUNT( * ) + - + MIN( DISTINCT - 90 ) + 77 * 93 ) + - - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL CAST ( NULL AS REAL ) + - 45 + - COALESCE ( + 16, + - 80 * - 58, + + COUNT ( * ) + - + MIN ( DISTINCT - 90 ) + 77 * 93 ) + - - 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT DISTINCT - 31 * COUNT( - - 40 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT - 31 * COUNT ( - - 40 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-6673
SELECT DISTINCT + CASE - + NULLIF ( 44, 39 ) WHEN - - 82 * - + 50 / - + 56 THEN NULL WHEN + - 51 * - 16 THEN - + ( + 9 ) / - - COALESCE ( - 94, + + 0 ) WHEN - + 8 THEN + + 84 ELSE NULL END + + + MAX( + - ( - 40 ) ) AS col2, 75
----
NULL
75

skipif mysql # not compatible
query II rowsort label-6673
SELECT DISTINCT + CASE - + NULLIF ( 44, 39 ) WHEN - - 82 * - + 50 / - + 56 THEN NULL WHEN + - 51 * - 16 THEN - + ( + 9 ) / - - COALESCE ( - 94, + + 0 ) WHEN - + 8 THEN + + 84 ELSE NULL END + + + MAX ( + - ( - 40 ) ) AS col2, 75
----
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT ALL 30 * + CAST( - + 52 AS SIGNED ) AS col1
----
-1560

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL 30 * + CAST ( - + 52 AS INTEGER ) AS col1
----
-1560

query II rowsort
SELECT ALL 88 * - + 19 AS col0, 68 AS col0
----
-1672
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT - SUM( DISTINCT + + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-6676
SELECT - SUM ( DISTINCT + + 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT 20 + - + 68 + - - ( + CASE 38 WHEN - COUNT( * ) THEN NULL WHEN - 58 + + CASE - 77 WHEN - ( + + 19 ) THEN NULL ELSE 91 END THEN - - 52 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6677
SELECT 20 + - + 68 + - - ( + CASE 38 WHEN - COUNT ( * ) THEN NULL WHEN - 58 + + CASE - 77 WHEN - ( + + 19 ) THEN NULL ELSE 91 END THEN - - 52 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6678
SELECT DISTINCT + 79 DIV 68 AS col1, + 23 AS col1
----
1
23

skipif mysql # not compatible
query II rowsort label-6678
SELECT DISTINCT + 79 / 68 AS col1, + 23 AS col1
----
1
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT 88 * - 0 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6679
SELECT 88 * - 0 + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6680
SELECT 4 - + SUM( ALL + NULLIF ( - 13, ( + - 64 ) + + 4 ) ) + + ( + 25 ) + - SUM( - 75 ) * 40 * - CAST( NULL AS DECIMAL ) * - 94 * + + 67 * 7 + 65 / + COUNT( DISTINCT 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT 4 - + SUM ( ALL + NULLIF ( - 13, ( + - 64 ) + + 4 ) ) + + ( + 25 ) + - SUM ( - 75 ) * 40 * - CAST ( NULL AS REAL ) * - 94 * + + 67 * 7 + 65 / + COUNT ( DISTINCT 25 )
----
NULL

query II rowsort
SELECT 10 + - 85, - 56 + + + 72 AS col2
----
-75
16

query II rowsort
SELECT 14 - 42 col0, ( + 37 ) + - 53 AS col2
----
-28
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT ALL - SUM( 51 ) * - + 60 * + 20
----
61200

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL - SUM ( 51 ) * - + 60 * + 20
----
61200

query I rowsort
SELECT DISTINCT - ( - + 19 ) * 66
----
1254

query I rowsort
SELECT - 98 * + - 1
----
98

query I rowsort
SELECT ALL - 89 * + 61
----
-5429

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL COUNT( ALL - 45 )
----
1

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL COUNT ( ALL - 45 )
----
1

query I rowsort
SELECT + CASE WHEN NOT + 96 IS NOT NULL THEN - 68 ELSE NULL END + - 60
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 60, - 11 ) AS col0
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-6690
SELECT - 51 DIV - 94 AS col2, 11 * - 53 + + 55
----
0
-528

skipif mysql # not compatible
query II rowsort label-6690
SELECT - 51 / - 94 AS col2, 11 * - 53 + + 55
----
0
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT + 42 + + - SUM( + - 90 ) * - 98 AS col2
----
-8778

skipif mysql # not compatible
query I rowsort label-6691
SELECT + 42 + + - SUM ( + - 90 ) * - 98 AS col2
----
-8778

query I rowsort
SELECT ALL NULLIF ( + 4, + 27 ) + + 9
----
13

query I rowsort
SELECT DISTINCT + 48 + - CASE + + 10 WHEN 32 THEN + 96 ELSE 33 END AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT ALL 2 * + + 71 + + 60 * 21 + - 2 + - NULLIF ( 60, - 88 ) * - 52 + + + 28 + + + COUNT( * ) AS col1
----
4549

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL 2 * + + 71 + + 60 * 21 + - 2 + - NULLIF ( 60, - 88 ) * - 52 + + + 28 + + + COUNT ( * ) AS col1
----
4549

query I rowsort
SELECT ALL + - COALESCE ( - 17, - 42 ) AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6696
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( - 73 ) + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( - 73 ) + - 16
----
NULL

query I rowsort
SELECT ALL 10 * + - 33 + + 75 + - 74 * + - 76 AS col2
----
5369

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT DISTINCT - 21 * - 74 - - COUNT( DISTINCT + 20 )
----
1555

skipif mysql # not compatible
query I rowsort label-6698
SELECT DISTINCT - 21 * - 74 - - COUNT ( DISTINCT + 20 )
----
1555

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT ALL 35 * - COUNT( * ) + + 37 + - COUNT( * ) * - 14
----
16

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL 35 * - COUNT ( * ) + + 37 + - COUNT ( * ) * - 14
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6700
SELECT + - 84 DIV ( - 55 ) - - 85 col0
----
86

skipif mysql # not compatible
query I rowsort label-6700
SELECT + - 84 / ( - 55 ) - - 85 col0
----
86

query I rowsort
SELECT + 71 * - COALESCE ( + 72, - 42 )
----
-5112

query I rowsort
SELECT + 15 - - + 9
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT ALL + MIN( - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL + MIN ( - 44 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6704
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COALESCE ( + 24, 34 * 22 - + 93 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COALESCE ( + 24, 34 * 22 - + 93 ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 24 * + + 12 - - 47 AS col0
----
335

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT DISTINCT + + MAX( + + 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT + + MAX ( + + 19 ) AS col1
----
19

query I rowsort
SELECT + 71 + 30 + + + 42 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT + 77 - + SUM( ALL NULLIF ( 73, + - 94 ) ) + 19 * + CASE + 61 WHEN - 0 * - 52 / + 54 - + 26 - 42 * - - 6 THEN 36 WHEN - NULLIF ( 49, + + 96 ) THEN + + 51 + - 9 END * - + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6708
SELECT + 77 - + SUM ( ALL NULLIF ( 73, + - 94 ) ) + 19 * + CASE + 61 WHEN - 0 * - 52 / + 54 - + 26 - 42 * - - 6 THEN 36 WHEN - NULLIF ( 49, + + 96 ) THEN + + 51 + - 9 END * - + 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ALL COUNT( 75 ) * - + 39 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL COUNT ( 75 ) * - + 39 AS col2
----
-39

query I rowsort
SELECT + 17 + 71 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT ALL COUNT( * ) * + 90 col2
----
90

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL COUNT ( * ) * + 90 col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT MAX( + NULLIF ( 11, 52 ) )
----
11

skipif mysql # not compatible
query I rowsort label-6712
SELECT MAX ( + NULLIF ( 11, 52 ) )
----
11

query II rowsort
SELECT ALL NULLIF ( - 63, - 41 ), + 60 AS col2
----
-63
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6714
SELECT + 98 + - ( - 94 ), + MAX( - 15 ) col0
----
192
-15

skipif mysql # not compatible
query II rowsort label-6714
SELECT + 98 + - ( - 94 ), + MAX ( - 15 ) col0
----
192
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT + 75 * - - MIN( DISTINCT + - 66 )
----
-4950

skipif mysql # not compatible
query I rowsort label-6715
SELECT + 75 * - - MIN ( DISTINCT + - 66 )
----
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6716
SELECT - CAST( NULLIF ( - 68, 77 ) AS SIGNED ), 78 * + ( + + 0 ) * 65 AS col0
----
68
0

skipif mysql # not compatible
query II rowsort label-6716
SELECT - CAST ( NULLIF ( - 68, 77 ) AS INTEGER ), 78 * + ( + + 0 ) * 65 AS col0
----
68
0

query I rowsort
SELECT ALL + 31 + + 61 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6718
SELECT + COUNT( DISTINCT 72 ) + - ( + + 28 ), - 38 DIV - 72 + CAST( + ( - - 50 ) AS SIGNED ) AS col2
----
-27
50

skipif mysql # not compatible
query II rowsort label-6718
SELECT + COUNT ( DISTINCT 72 ) + - ( + + 28 ), - 38 / - 72 + CAST ( + ( - - 50 ) AS INTEGER ) AS col2
----
-27
50

query II rowsort
SELECT - - ( 86 ) + - 53, + 58 AS col2
----
33
58

onlyif mysql # DIV for integer division: 
query II rowsort label-6720
SELECT DISTINCT - + 50 + - 28 * + + 63 AS col2, 12 DIV + + 4 AS col1
----
-1814
3

skipif mysql # not compatible
query II rowsort label-6720
SELECT DISTINCT - + 50 + - 28 * + + 63 AS col2, 12 / + + 4 AS col1
----
-1814
3

query I rowsort
SELECT ALL + 86 * + NULLIF ( 96, + - 32 + + - 22 )
----
8256

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6722
SELECT ALL + + 75 + - NULLIF ( - + CAST( - 35 AS SIGNED ), + - 84 ) + + 40 AS col0, + 98 AS col0
----
80
98

skipif mysql # not compatible
query II rowsort label-6722
SELECT ALL + + 75 + - NULLIF ( - + CAST ( - 35 AS INTEGER ), + - 84 ) + + 40 AS col0, + 98 AS col0
----
80
98

query I rowsort
SELECT - 6 - + + 62 * + - 67
----
4148

onlyif mysql # DIV for integer division: 
query I rowsort label-6724
SELECT - 50 + 53 DIV - 94 - - - 73 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-6724
SELECT - 50 + 53 / - 94 - - - 73 AS col0
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6725
SELECT - 20 + + 72 / - CASE - COUNT( * ) WHEN + COUNT( * ) / + MIN( DISTINCT - 3 ) * + 32 THEN + ( + CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6725
SELECT - 20 + + 72 / - CASE - COUNT ( * ) WHEN + COUNT ( * ) / + MIN ( DISTINCT - 3 ) * + 32 THEN + ( + CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6726
SELECT ALL + - COUNT( * ), 80 AS col0
----
-1
80

skipif mysql # not compatible
query II rowsort label-6726
SELECT ALL + - COUNT ( * ), 80 AS col0
----
-1
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT COUNT( * ) * - + 93 + - 44 + + 19
----
-118

skipif mysql # not compatible
query I rowsort label-6727
SELECT COUNT ( * ) * - + 93 + - 44 + + 19
----
-118

query I rowsort
SELECT ( + 90 ) col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT - - 79 + - - COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-6729
SELECT - - 79 + - - COUNT ( * ) AS col0
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6730
SELECT DISTINCT + 9 * + AVG ( - CAST( NULL AS DECIMAL ) ) + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT + 9 * + AVG ( - CAST ( NULL AS REAL ) ) + - 60
----
NULL

query I rowsort
SELECT - + 4 * + NULLIF ( + 93, + 82 )
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT + 36 + - 55 + 65 / - CASE - COUNT( * ) WHEN - 98 THEN NULL WHEN - 18 THEN NULL WHEN + ( + 90 ) THEN - 82 END / COUNT( * ) * - 21 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT + 36 + - 55 + 65 / - CASE - COUNT ( * ) WHEN - 98 THEN NULL WHEN - 18 THEN NULL WHEN + ( + 90 ) THEN - 82 END / COUNT ( * ) * - 21 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6733
SELECT + - CAST( NULL AS SIGNED ), + 34 * - 26 + - COUNT( + 64 ) * - 71 col2
----
NULL
-813

skipif mysql # not compatible
query II rowsort label-6733
SELECT + - CAST ( NULL AS INTEGER ), + 34 * - 26 + - COUNT ( + 64 ) * - 71 col2
----
NULL
-813

query II rowsort
SELECT - 11 * - 79 + - 35 AS col1, - 70 AS col2
----
834
-70

query II rowsort
SELECT DISTINCT + 79 * - 70 AS col1, 14
----
-5530
14

query I rowsort
SELECT - 18 * 30 + + 82
----
-458

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT - 65 DIV 18 col1
----
-3

skipif mysql # not compatible
query I rowsort label-6737
SELECT - 65 / 18 col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6738
SELECT + 71 DIV + + 21 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6738
SELECT + 71 / + + 21 AS col1
----
3

query I rowsort
SELECT + 29 + - 30 + - ( - + 8 ) AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6740
SELECT ALL COUNT( * ) * - 46 * + MAX( + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL COUNT ( * ) * - 46 * + MAX ( + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ALL + NULLIF ( COUNT( * ), + + 21 )
----
1

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL + NULLIF ( COUNT ( * ), + + 21 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT + NULLIF ( + 39, - 97 - + + MAX( + + 95 ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6742
SELECT + NULLIF ( + 39, - 97 - + + MAX ( + + 95 ) ) AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6743
SELECT ALL + ( - - 79 ) * - COALESCE ( + ( 97 ), - - 89 ) DIV - COUNT( * ) AS col1
----
7663

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL + ( - - 79 ) * - COALESCE ( + ( 97 ), - - 89 ) / - COUNT ( * ) AS col1
----
7663

query I rowsort
SELECT NULLIF ( - + 37, + + 37 ) * - 14 AS col0
----
518

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT ALL 23 + - + 68 - - - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL 23 + - + 68 - - - COUNT ( * )
----
-46

query I rowsort
SELECT 45 + 11
----
56

query II rowsort
SELECT DISTINCT 28 + - 3 + + 43 + 4, - 41 AS col0
----
72
-41

query I rowsort
SELECT 35 + 13 * + 6
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6749
SELECT ALL + 20 + + MAX( - 12 ) + - + NULLIF ( - 61, COALESCE ( + - 67, + 1 * + 55 ) ) + + 39 DIV + - 47 * - - MIN( + - 61 )
----
69

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL + 20 + + MAX ( - 12 ) + - + NULLIF ( - 61, COALESCE ( + - 67, + 1 * + 55 ) ) + + 39 / + - 47 * - - MIN ( + - 61 )
----
69

query I rowsort
SELECT ALL - 98 + 25 AS col0
----
-73

query I rowsort
SELECT DISTINCT + 40 + - - 65 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT COUNT( * ) + ( + - 14 )
----
-13

skipif mysql # not compatible
query I rowsort label-6752
SELECT COUNT ( * ) + ( + - 14 )
----
-13

query I rowsort
SELECT DISTINCT COALESCE ( 72, + 26 * + 80 * - 90 ) AS col2
----
72

query II rowsort
SELECT ALL - 38 - - - 65 - 31 + 91 col2, + 89
----
-43
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6755
SELECT + MAX( + 2 ) DIV + + 37 * + SUM( ALL + 27 ) + 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6755
SELECT + MAX ( + 2 ) / + + 37 * + SUM ( ALL + 27 ) + 83 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6756
SELECT ALL - - 43 * + + CAST( - CASE + 68 WHEN - - 74 THEN - - 87 WHEN - COUNT( * ) THEN NULL WHEN - 13 + - SUM( DISTINCT - - 63 ) THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL - - 43 * + + CAST ( - CASE + 68 WHEN - - 74 THEN - - 87 WHEN - COUNT ( * ) THEN NULL WHEN - 13 + - SUM ( DISTINCT - - 63 ) THEN NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT + ( + - 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT + - NULLIF ( + + COUNT( * ), MAX( + 76 ) - 47 + 83 * + 53 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6758
SELECT + - NULLIF ( + + COUNT ( * ), MAX ( + 76 ) - 47 + 83 * + 53 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6759
SELECT ALL + 53 * + 54 - + + 28 + + 90 + + 4 DIV - 89 + + + 11, + 99 * + 63 AS col0
----
2935
6237

skipif mysql # not compatible
query II rowsort label-6759
SELECT ALL + 53 * + 54 - + + 28 + + 90 + + 4 / - 89 + + + 11, + 99 * + 63 AS col0
----
2935
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT + + COUNT( * ) * + 10 + - 2 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6760
SELECT + + COUNT ( * ) * + 10 + - 2 AS col1
----
8

query I rowsort
SELECT DISTINCT + + 38 * + 54 col1
----
2052

query I rowsort
SELECT ( + - COALESCE ( + + 1, - 50 ) ) * + 7 * 54 - 32
----
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT 4 - + MIN( ALL - 69 )
----
73

skipif mysql # not compatible
query I rowsort label-6763
SELECT 4 - + MIN ( ALL - 69 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT 11 * + COUNT( * ) + - 56 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-6764
SELECT 11 * + COUNT ( * ) + - 56 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT ALL - 75 + COUNT( ALL + + 85 )
----
-74

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL - 75 + COUNT ( ALL + + 85 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT DISTINCT - MIN( ( 11 ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT - MIN ( ( 11 ) ) AS col0
----
-11

query I rowsort
SELECT DISTINCT 23 + 87 AS col2
----
110

query I rowsort
SELECT ALL 82 + 82
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT - COUNT( * ) * - 89 * - 11 - + + 31
----
-1010

skipif mysql # not compatible
query I rowsort label-6769
SELECT - COUNT ( * ) * - 89 * - 11 - + + 31
----
-1010

query I rowsort
SELECT ALL - CASE + - 37 WHEN + - 56 * + 13 * - + 12 THEN - 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT DISTINCT - COUNT( * ) + 60
----
59

skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT - COUNT ( * ) + 60
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT 49 - + COUNT( * ) + - + 96 + - 75 * + 64 * - 57 AS col2
----
273552

skipif mysql # not compatible
query I rowsort label-6772
SELECT 49 - + COUNT ( * ) + - + 96 + - 75 * + 64 * - 57 AS col2
----
273552

onlyif mysql # DIV for integer division: 
query I rowsort label-6773
SELECT 55 DIV + ( 54 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6773
SELECT 55 / + ( 54 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6774
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 19 + - 7 * + - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 19 + - 7 * + - 35 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6775
SELECT ALL + CASE 2 WHEN + 62 + + 55 THEN NULL WHEN - - 22 / + ( + + 17 ) - 7 * + CASE + 89 WHEN + 84 THEN - 37 ELSE 11 END + 79 * 2 THEN + ( + 46 ) ELSE NULL END + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL + CASE 2 WHEN + 62 + + 55 THEN NULL WHEN - - 22 / + ( + + 17 ) - 7 * + CASE + 89 WHEN + 84 THEN - 37 ELSE 11 END + 79 * 2 THEN + ( + 46 ) ELSE NULL END + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT 39 + - COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6776
SELECT 39 + - COUNT ( * ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT ALL - COUNT( * ) + - + 25 + - 72
----
-98

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL - COUNT ( * ) + - + 25 + - 72
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT 16 * COUNT( * ) * 19 AS col1
----
304

skipif mysql # not compatible
query I rowsort label-6778
SELECT 16 * COUNT ( * ) * 19 AS col1
----
304

query I rowsort
SELECT 47 + 67 AS col0
----
114

query I rowsort
SELECT 24 + - 63 AS col1
----
-39

query I rowsort
SELECT 16 + + NULLIF ( + - 23, - ( + - ( - + ( + 33 ) ) ) )
----
-7

query I rowsort
SELECT 62 + 52
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT ALL COUNT( * ) * COUNT( DISTINCT + 57 )
----
1

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL COUNT ( * ) * COUNT ( DISTINCT + 57 )
----
1

query I rowsort
SELECT DISTINCT - 15 * + 46 + + + 56 col1
----
-634

query I rowsort
SELECT + 4 + ( + 60 )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6786
SELECT 54 DIV COALESCE ( + - 57, + + 10 - - 70 DIV 74 ) + + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-6786
SELECT 54 / COALESCE ( + - 57, + + 10 - - 70 / 74 ) + + - 8
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6787
SELECT ALL CAST( - + MIN( DISTINCT 77 ) AS SIGNED ) * + - 64 AS col1
----
4928

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL CAST ( - + MIN ( DISTINCT 77 ) AS INTEGER ) * + - 64 AS col1
----
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT NULLIF ( - - MAX( - 95 ), + COUNT( * ) + - + 68 + + COUNT( * ) * + 19 / 9 ) * - COALESCE ( + 69, + 96 )
----
6555

skipif mysql # not compatible
query I rowsort label-6788
SELECT NULLIF ( - - MAX ( - 95 ), + COUNT ( * ) + - + 68 + + COUNT ( * ) * + 19 / 9 ) * - COALESCE ( + 69, + 96 )
----
6555

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ( - + 87 ) + - COUNT( * ) * COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-6789
SELECT ( - + 87 ) + - COUNT ( * ) * COUNT ( * )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6790
SELECT 72 DIV + - 8
----
-9

skipif mysql # not compatible
query I rowsort label-6790
SELECT 72 / + - 8
----
-9

query I rowsort
SELECT - COALESCE ( 51, 12 * 99 * 80 ) col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT COUNT( * ) + + NULLIF ( + + ( 59 ), - MIN( - 94 ) )
----
60

skipif mysql # not compatible
query I rowsort label-6792
SELECT COUNT ( * ) + + NULLIF ( + + ( 59 ), - MIN ( - 94 ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT ALL - CASE - + CASE + + COUNT( * ) WHEN - ( + - 99 ) * - + 76 * - + 5 + - + 36 / - 44 * - COUNT( * ) THEN NULL WHEN + 72 THEN - - 33 ELSE NULL END WHEN - 92 THEN - 76 * - - 7 - + 84 * 95 WHEN - 45 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL - CASE - + CASE + + COUNT ( * ) WHEN - ( + - 99 ) * - + 76 * - + 5 + - + 36 / - 44 * - COUNT ( * ) THEN NULL WHEN + 72 THEN - - 33 ELSE NULL END WHEN - 92 THEN - 76 * - - 7 - + 84 * 95 WHEN - 45 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6794
SELECT + 71 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6794
SELECT + 71 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 62 * 39 AS col2
----
2418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6796
SELECT + CAST( NULL AS SIGNED ) * 15 * + 48 / - + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6796
SELECT + CAST ( NULL AS INTEGER ) * 15 * + 48 / - + 49 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6797
SELECT NULLIF ( + + 46, 35 ) * CAST( NULL AS DECIMAL ) + - 91 * 45 + 98 + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT NULLIF ( + + 46, 35 ) * CAST ( NULL AS REAL ) + - 91 * 45 + 98 + 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6798
SELECT ALL - CAST( + 78 AS SIGNED ) * - 58 * - 87 DIV + COUNT( DISTINCT - ( - 2 ) ) + + - ( 97 ) * - + 69
----
-386895

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL - CAST ( + 78 AS INTEGER ) * - 58 * - 87 / + COUNT ( DISTINCT - ( - 2 ) ) + + - ( 97 ) * - + 69
----
-386895

query I rowsort
SELECT + NULLIF ( - 27, - + 25 )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6800
SELECT - 94 DIV - + COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-6800
SELECT - 94 / - + COUNT ( * ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6801
SELECT ALL - 41 * CAST( + 59 AS SIGNED ) + 58 DIV 63 * + + 2 AS col1, 17 AS col0
----
-2419
17

skipif mysql # not compatible
query II rowsort label-6801
SELECT ALL - 41 * CAST ( + 59 AS INTEGER ) + 58 / 63 * + + 2 AS col1, 17 AS col0
----
-2419
17

query I rowsort
SELECT - 88 + - 11 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT SUM( - + ( + 38 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-6803
SELECT SUM ( - + ( + 38 ) )
----
-38

query I rowsort
SELECT - 40 + - 61 + 33 * + - 30 + + + 85 + - 56 + 13 * + 11
----
-919

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT - COUNT( * ) + + 72 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6805
SELECT - COUNT ( * ) + + 72 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT DISTINCT + NULLIF ( - SUM( ALL + + 35 ), - COUNT( * ) ) * 9 + COUNT( * ) - - + 0 - - + 2 * + + 76
----
-162

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT + NULLIF ( - SUM ( ALL + + 35 ), - COUNT ( * ) ) * 9 + COUNT ( * ) - - + 0 - - + 2 * + + 76
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6807
SELECT ALL - 37 * 60 DIV - + ( 11 ) + + - MAX( DISTINCT + NULLIF ( - 55, + - 61 * - 52 ) ) + - - 55 AS col0
----
311

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL - 37 * 60 / - + ( 11 ) + + - MAX ( DISTINCT + NULLIF ( - 55, + - 61 * - 52 ) ) + - - 55 AS col0
----
311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6808
SELECT ALL + CASE - + CAST( NULL AS SIGNED ) WHEN 59 THEN NULL WHEN 99 THEN - 31 + CAST( - COUNT( * ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL + CASE - + CAST ( NULL AS INTEGER ) WHEN 59 THEN NULL WHEN 99 THEN - 31 + CAST ( - COUNT ( * ) AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT - MIN( DISTINCT - - 26 ) * - 63 * - 38
----
-62244

skipif mysql # not compatible
query I rowsort label-6809
SELECT - MIN ( DISTINCT - - 26 ) * - 63 * - 38
----
-62244

query I rowsort
SELECT + 86 + + + NULLIF ( ( - - 15 ), + 1 )
----
101

onlyif mysql # DIV for integer division: 
query II rowsort label-6811
SELECT ALL + + 1 - - 55 DIV + NULLIF ( + + NULLIF ( - 11, + - 14 ), 5 ), 56 DIV + 26 + 23 AS col1
----
-4
25

skipif mysql # not compatible
query II rowsort label-6811
SELECT ALL + + 1 - - 55 / + NULLIF ( + + NULLIF ( - 11, + - 14 ), 5 ), 56 / + 26 + 23 AS col1
----
-4
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6812
SELECT - + 32 * - 70 DIV - - ( - COUNT( * ) ) + 31 * 3 AS col0
----
-2147

skipif mysql # not compatible
query I rowsort label-6812
SELECT - + 32 * - 70 / - - ( - COUNT ( * ) ) + 31 * 3 AS col0
----
-2147

query I rowsort
SELECT + CASE 80 WHEN + + 2 THEN - 80 * + + AVG ( + ( + 87 ) ) * + 21 END * + - 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6814
SELECT - 43 - 75 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6814
SELECT - 43 - 75 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 83 * ( 99 )
----
8217

query I rowsort
SELECT DISTINCT + ( - 24 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT ALL + - 9 * + COUNT( ALL - - ( - CASE - + CASE - 57 WHEN + 54 - + + 23 + 41 * + - 55 * - 23 THEN NULL WHEN 11 THEN 24 + 42 - 33 ELSE + 72 END WHEN + 58 THEN + 26 END ) ) + + 53 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL + - 9 * + COUNT ( ALL - - ( - CASE - + CASE - 57 WHEN + 54 - + + 23 + 41 * + - 55 * - 23 THEN NULL WHEN 11 THEN 24 + 42 - 33 ELSE + 72 END WHEN + 58 THEN + 26 END ) ) + + 53 AS col0
----
53

query I rowsort
SELECT - 66 * + + ( 74 ) * 5 * - 39
----
952380

onlyif mysql # DIV for integer division: 
query I rowsort label-6819
SELECT ALL - 55 DIV - 54
----
1

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL - 55 / - 54
----
1

query I rowsort
SELECT DISTINCT ( + 4 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-6821
SELECT DISTINCT COUNT( * ) AS col1, - SUM( DISTINCT + 58 )
----
1
-58

skipif mysql # not compatible
query II rowsort label-6821
SELECT DISTINCT COUNT ( * ) AS col1, - SUM ( DISTINCT + 58 )
----
1
-58

query II rowsort
SELECT ALL - 97 col0, + 81 AS col2
----
-97
81

query I rowsort
SELECT - + 31 * 67 col2
----
-2077

query I rowsort
SELECT + 15 * 43 AS col1
----
645

query II rowsort
SELECT DISTINCT + 74 AS col0, 7 AS col2
----
74
7

query I rowsort
SELECT ALL 12 + + + 12 AS col0
----
24

query I rowsort
SELECT + 82 * - 86
----
-7052

query I rowsort
SELECT ALL - 59 + - ( 84 ) AS col2
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT ALL + COUNT( * ) / - 1 + - 75 + - 7 * + 37 + + NULLIF ( + 26, + + 3 + + CASE 97 WHEN 93 / + + 91 THEN - 76 / 64 + - 99 END - + 47 ) / CASE + 85 WHEN - 14 * - - 76 / - - 77 THEN - 41 - 22 + - + 77 WHEN + + COUNT( * ) * - + 54 + - - 59 / 9 THEN + 11 * + 3 END * - - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL + COUNT ( * ) / - 1 + - 75 + - 7 * + 37 + + NULLIF ( + 26, + + 3 + + CASE 97 WHEN 93 / + + 91 THEN - 76 / 64 + - 99 END - + 47 ) / CASE + 85 WHEN - 14 * - - 76 / - - 77 THEN - 41 - 22 + - + 77 WHEN + + COUNT ( * ) * - + 54 + - - 59 / 9 THEN + 11 * + 3 END * - - 21
----
NULL

query I rowsort
SELECT + 88 * + 44 AS col0
----
3872

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ( - SUM( DISTINCT 91 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-6831
SELECT ( - SUM ( DISTINCT 91 ) )
----
-91

query II rowsort
SELECT ( 50 ) col1, - 92
----
50
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL - 93 * 26 - - + COUNT( * )
----
-2417

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL - 93 * 26 - - + COUNT ( * )
----
-2417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6834
SELECT CASE + 99 WHEN - CAST( NULLIF ( + 35, - + 75 + 22 ) AS SIGNED ) THEN - 3 WHEN + 83 / 73 THEN NULL WHEN - - 40 THEN - 86 ELSE + COUNT( * ) + 51 - + 93 END * + CASE + 86 WHEN 14 + + CASE - - 1 WHEN - - CAST( 77 AS SIGNED ) THEN + 33 END + - ( + + 76 ) + 2 * - - COALESCE ( - - 67, + COUNT( * ) + COALESCE ( + 47, - - 77, 19 * + COUNT( * ) - + 4 ) + - 73 * 2, COUNT( * ) ) THEN + 12 ELSE 74 END * - COUNT( DISTINCT 90 ) - + 34 + MAX( + - 30 ) AS col2
----
2970

skipif mysql # not compatible
query I rowsort label-6834
SELECT CASE + 99 WHEN - CAST ( NULLIF ( + 35, - + 75 + 22 ) AS INTEGER ) THEN - 3 WHEN + 83 / 73 THEN NULL WHEN - - 40 THEN - 86 ELSE + COUNT ( * ) + 51 - + 93 END * + CASE + 86 WHEN 14 + + CASE - - 1 WHEN - - CAST ( 77 AS INTEGER ) THEN + 33 END + - ( + + 76 ) + 2 * - - COALESCE ( - - 67, + COUNT ( * ) + COALESCE ( + 47, - - 77, 19 * + COUNT ( * ) - + 4 ) + - 73 * 2, COUNT ( * ) ) THEN + 12 ELSE 74 END * - COUNT ( DISTINCT 90 ) - + 34 + MAX ( + - 30 ) AS col2
----
2970

query I rowsort
SELECT ALL 67 * - 79 - - 85
----
-5208

query I rowsort
SELECT DISTINCT + COALESCE ( 89, + 81 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT + 85 * 55 - + - COUNT( DISTINCT 58 )
----
4676

skipif mysql # not compatible
query I rowsort label-6837
SELECT + 85 * 55 - + - COUNT ( DISTINCT 58 )
----
4676

onlyif mysql # aggregate syntax: 
query II rowsort label-6838
SELECT 86 * + 88 * MIN( DISTINCT + 24 ) + + 35 + - 99 * + + 21 AS col1, - ( - - 13 ) AS col2
----
179588
-13

skipif mysql # not compatible
query II rowsort label-6838
SELECT 86 * + 88 * MIN ( DISTINCT + 24 ) + + 35 + - 99 * + + 21 AS col1, - ( - - 13 ) AS col2
----
179588
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT - MIN( DISTINCT 26 ) - + 33 * - ( 0 ) * 51
----
-26

skipif mysql # not compatible
query I rowsort label-6839
SELECT - MIN ( DISTINCT 26 ) - + 33 * - ( 0 ) * 51
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-6840
SELECT ALL - 14 * 75 AS col2, - ( + 46 ) * MAX( ALL + + 79 )
----
-1050
-3634

skipif mysql # not compatible
query II rowsort label-6840
SELECT ALL - 14 * 75 AS col2, - ( + 46 ) * MAX ( ALL + + 79 )
----
-1050
-3634

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6841
SELECT + 62 * - CAST( NULL AS SIGNED ) AS col1, - ( 27 )
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-6841
SELECT + 62 * - CAST ( NULL AS INTEGER ) AS col1, - ( 27 )
----
NULL
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-6842
SELECT - - ( - 22 ) + + SUM( ALL - + 24 ) + + - 80 * - 38 * + - 30, + COUNT( * ) * - 18 AS col2
----
-91246
-18

skipif mysql # not compatible
query II rowsort label-6842
SELECT - - ( - 22 ) + + SUM ( ALL - + 24 ) + + - 80 * - 38 * + - 30, + COUNT ( * ) * - 18 AS col2
----
-91246
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT ALL + MIN( ALL - + NULLIF ( + - 94, - - 56 * + 94 ) )
----
94

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL + MIN ( ALL - + NULLIF ( + - 94, - - 56 * + 94 ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT DISTINCT + + CASE + + 62 WHEN ( - + 63 ) THEN + + 4 WHEN - - COUNT( * ) THEN NULL ELSE 47 END
----
47

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT + + CASE + + 62 WHEN ( - + 63 ) THEN + + 4 WHEN - - COUNT ( * ) THEN NULL ELSE 47 END
----
47

query II rowsort
SELECT - - 70 * - 7, - 61 col1
----
-490
-61

query I rowsort
SELECT - 41 + + + 16
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6847
SELECT - - COUNT( * ) / + + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6847
SELECT - - COUNT ( * ) / + + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT + 3 + - 45 - + 61 * - - 31 - 6 * COUNT( * )
----
-1939

skipif mysql # not compatible
query I rowsort label-6848
SELECT + 3 + - 45 - + 61 * - - 31 - 6 * COUNT ( * )
----
-1939

query I rowsort
SELECT - + ( + - 16 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6850
SELECT - CAST( NULL AS SIGNED ) + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT - CAST ( NULL AS INTEGER ) + + 32
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6851
SELECT - 30 DIV + 98 AS col0, 96 * + 22
----
0
2112

skipif mysql # not compatible
query II rowsort label-6851
SELECT - 30 / + 98 AS col0, 96 * + 22
----
0
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT - COUNT( * ) * + 2 * - 29 * + 62 AS col2
----
3596

skipif mysql # not compatible
query I rowsort label-6852
SELECT - COUNT ( * ) * + 2 * - 29 * + 62 AS col2
----
3596

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT DISTINCT + COUNT( * ) * + 5 - - - 27 + 39
----
17

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT + COUNT ( * ) * + 5 - - - 27 + 39
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT ALL - CASE - COUNT( * ) WHEN - 29 * + 74 + + ( - COUNT( * ) ) THEN - 83 ELSE NULL END + - ( ( COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL - CASE - COUNT ( * ) WHEN - 29 * + 74 + + ( - COUNT ( * ) ) THEN - 83 ELSE NULL END + - ( ( COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6855
SELECT - - 68 + - 23 + - + 8 * + 16 * 83 AS col1, 61 DIV MIN( - 69 ) AS col2
----
-10579
0

skipif mysql # not compatible
query II rowsort label-6855
SELECT - - 68 + - 23 + - + 8 * + 16 * 83 AS col1, 61 / MIN ( - 69 ) AS col2
----
-10579
0

query I rowsort
SELECT ALL - 63 + + 15 + + + 69 AS col2
----
21

query I rowsort
SELECT ALL - 83 + - 70 * + 57 AS col1
----
-4073

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT DISTINCT + 72 * + COUNT( * ) * + - COUNT( * ) * - 59 col2
----
4248

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT + 72 * + COUNT ( * ) * + - COUNT ( * ) * - 59 col2
----
4248

query I rowsort
SELECT 25 + + 2 AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6860
SELECT - 93, 4 + ( - COUNT( * ) ) DIV - CASE - COUNT( * ) WHEN + 61 THEN NULL ELSE + 45 END AS col2
----
-93
4

skipif mysql # not compatible
query II rowsort label-6860
SELECT - 93, 4 + ( - COUNT ( * ) ) / - CASE - COUNT ( * ) WHEN + 61 THEN NULL ELSE + 45 END AS col2
----
-93
4

query II rowsort
SELECT ALL 94 AS col2, 14
----
94
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT ALL + ( + 38 ) + - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL + ( + 38 ) + - COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-6863
SELECT 30 AS col0, + COUNT( * ) * ( + - 8 )
----
30
-8

skipif mysql # not compatible
query II rowsort label-6863
SELECT 30 AS col0, + COUNT ( * ) * ( + - 8 )
----
30
-8

query I rowsort
SELECT 58 + + 54
----
112

query I rowsort
SELECT 29 + - - 31 + - - 47 AS col2
----
107

query II rowsort
SELECT + 8 AS col1, 56 AS col2
----
8
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT + 32 * - - COUNT( * ) + 54 + + COUNT( - - 21 ) * - 28 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-6867
SELECT + 32 * - - COUNT ( * ) + 54 + + COUNT ( - - 21 ) * - 28 AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6868
SELECT + 19 AS col0, - COUNT( * ) + + COALESCE ( + + 37, 87 )
----
19
36

skipif mysql # not compatible
query II rowsort label-6868
SELECT + 19 AS col0, - COUNT ( * ) + + COALESCE ( + + 37, 87 )
----
19
36

query II rowsort
SELECT 63 AS col1, + ( + + 92 )
----
63
92

query II rowsort
SELECT ALL - 3 AS col1, + 97 + - 70
----
-3
27

query I rowsort
SELECT + 19 * - 87 + 91 + 32
----
-1530

query II rowsort
SELECT 64 * 25 * - 42, + 62 + 95 col1
----
-67200
157

onlyif mysql # aggregate syntax: 
query II rowsort label-6873
SELECT DISTINCT - COUNT( * ) col0, 26 * + 95 col0
----
-1
2470

skipif mysql # not compatible
query II rowsort label-6873
SELECT DISTINCT - COUNT ( * ) col0, 26 * + 95 col0
----
-1
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT MAX( 45 ) * + - 54 AS col0
----
-2430

skipif mysql # not compatible
query I rowsort label-6874
SELECT MAX ( 45 ) * + - 54 AS col0
----
-2430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6875
SELECT DISTINCT + + CAST( 52 AS SIGNED ) * SUM( DISTINCT + 44 ) * + + 76
----
173888

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT + + CAST ( 52 AS INTEGER ) * SUM ( DISTINCT + 44 ) * + + 76
----
173888

onlyif mysql # aggregate syntax: 
query II rowsort label-6876
SELECT + 1, - COUNT( ALL + 52 ) + 68 AS col2
----
1
67

skipif mysql # not compatible
query II rowsort label-6876
SELECT + 1, - COUNT ( ALL + 52 ) + 68 AS col2
----
1
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT - 57 + + COUNT( DISTINCT - - 53 ) col0
----
-56

skipif mysql # not compatible
query I rowsort label-6877
SELECT - 57 + + COUNT ( DISTINCT - - 53 ) col0
----
-56

query II rowsort
SELECT 11, + 40 AS col2
----
11
40

query II rowsort
SELECT ALL 91 AS col1, ( - 95 ) AS col1
----
91
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6881
SELECT CAST( - MIN( ALL - - 17 ) AS SIGNED ) * - - 82 AS col2
----
-1394

skipif mysql # not compatible
query I rowsort label-6881
SELECT CAST ( - MIN ( ALL - - 17 ) AS INTEGER ) * - - 82 AS col2
----
-1394

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT ALL + 92 + + CASE - 52 WHEN + - CASE 70 WHEN - 27 * - 39 + - - MAX( DISTINCT - CASE - 40 WHEN + 49 * - 88 THEN + 41 * + + NULLIF ( + 4, - 57 ) * 64 ELSE + - 81 END ) THEN - 62 * + 21 END THEN - - 3 + + - ( - 93 ) + - 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL + 92 + + CASE - 52 WHEN + - CASE 70 WHEN - 27 * - 39 + - - MAX ( DISTINCT - CASE - 40 WHEN + 49 * - 88 THEN + 41 * + + NULLIF ( + 4, - 57 ) * 64 ELSE + - 81 END ) THEN - 62 * + 21 END THEN - - 3 + + - ( - 93 ) + - 62 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - - 17 + + 60
----
77

query I rowsort
SELECT ALL 34 + - 40
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT 49 DIV - - 5 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6885
SELECT 49 / - - 5 AS col2
----
9

query II rowsort
SELECT 20 * + - 40, + 96 AS col0
----
-800
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6887
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / + + CASE + 12 WHEN - 55 THEN NULL ELSE - - MIN( DISTINCT + 40 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT + CAST ( NULL AS REAL ) / + + CASE + 12 WHEN - 55 THEN NULL ELSE - - MIN ( DISTINCT + 40 ) END AS col1
----
NULL

query I rowsort
SELECT 32 * - NULLIF ( + 34, 29 + - 62 * - + 44 )
----
-1088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6889
SELECT ALL - 85 * - + CASE 9 WHEN + CAST( + - 80 AS SIGNED ) THEN NULL WHEN - 13 / ( - 11 ) / - 13 * + CAST( COUNT( * ) AS SIGNED ) + - + 96 + + COUNT( * ) + - 22 + + COUNT( * ) + - 38 THEN - + 4 * - + 85 ELSE + + 71 * + - 24 * MAX( - - 94 ) END AS col1, + 21 col0
----
-13614960
21

skipif mysql # not compatible
query II rowsort label-6889
SELECT ALL - 85 * - + CASE 9 WHEN + CAST ( + - 80 AS INTEGER ) THEN NULL WHEN - 13 / ( - 11 ) / - 13 * + CAST ( COUNT ( * ) AS INTEGER ) + - + 96 + + COUNT ( * ) + - 22 + + COUNT ( * ) + - 38 THEN - + 4 * - + 85 ELSE + + 71 * + - 24 * MAX ( - - 94 ) END AS col1, + 21 col0
----
-13614960
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT ALL + 13 - - - SUM( ( + 50 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL + 13 - - - SUM ( ( + 50 ) )
----
-37

query I rowsort
SELECT DISTINCT + 40 * 21 AS col0
----
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6892
SELECT ALL - CAST( - SUM( - 67 ) AS SIGNED ) * ( - 37 )
----
2479

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL - CAST ( - SUM ( - 67 ) AS INTEGER ) * ( - 37 )
----
2479

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT 64 DIV - + 57 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6893
SELECT 64 / - + 57 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT 45 * + - COUNT( - 70 ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-6894
SELECT 45 * + - COUNT ( - 70 ) col2
----
-45

query I rowsort
SELECT 22 * + ( - - 55 ) + 99 + + 27 AS col1
----
1336

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT MAX( DISTINCT ( - 80 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-6896
SELECT MAX ( DISTINCT ( - 80 ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT + 77 / - - CASE + 69 WHEN + + 97 THEN NULL WHEN + - 82 THEN - 37 + - 40 + - ( - MIN( - ( + 71 ) ) ) * 20 / - COUNT( * ) + 84 - + 23 + - - 29 END * - MIN( DISTINCT + 74 ) / - + 97 - 22 * - + 25 + + 60 * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6897
SELECT + 77 / - - CASE + 69 WHEN + + 97 THEN NULL WHEN + - 82 THEN - 37 + - 40 + - ( - MIN ( - ( + 71 ) ) ) * 20 / - COUNT ( * ) + 84 - + 23 + - - 29 END * - MIN ( DISTINCT + 74 ) / - + 97 - 22 * - + 25 + + 60 * 52
----
NULL

query I rowsort
SELECT 73 + - NULLIF ( + 6, - + 32 * 98 + + AVG ( DISTINCT 6 ) ) + + 78 AS col2
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6899
SELECT ALL ( - CAST( - ( 44 ) AS SIGNED ) ) * + 99 AS col1
----
4356

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL ( - CAST ( - ( 44 ) AS INTEGER ) ) * + 99 AS col1
----
4356

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT + + SUM( DISTINCT + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-6900
SELECT + + SUM ( DISTINCT + 28 )
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-6901
SELECT 85 + + 2 AS col0, - 96 DIV + 84 - + 9 + 11
----
87
1

skipif mysql # not compatible
query II rowsort label-6901
SELECT 85 + + 2 AS col0, - 96 / + 84 - + 9 + 11
----
87
1

query I rowsort
SELECT - 98 * - - 68 - - 84
----
-6580

query I rowsort
SELECT ALL + 98 * - + 77 - - 22
----
-7524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6904
SELECT 16 / + - ( - COUNT( * ) ) + - CAST( NULL AS SIGNED ) * 71 * - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6904
SELECT 16 / + - ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) * 71 * - - 81
----
NULL

query I rowsort
SELECT 75 + 23
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6906
SELECT ALL + 7 + + - 88, + MAX( ALL 4 ) AS col2
----
-81
4

skipif mysql # not compatible
query II rowsort label-6906
SELECT ALL + 7 + + - 88, + MAX ( ALL 4 ) AS col2
----
-81
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6907
SELECT + 21 DIV 37 + + 33
----
33

skipif mysql # not compatible
query I rowsort label-6907
SELECT + 21 / 37 + + 33
----
33

query II rowsort
SELECT + + 68 + + 1, ( - CASE - 20 WHEN - 45 THEN 44 ELSE 56 * + 26 * + ( 85 ) END ) AS col0
----
69
-123760

onlyif mysql # DIV for integer division: 
query I rowsort label-6909
SELECT ALL 79 DIV - + 69
----
-1

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL 79 / - + 69
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6910
SELECT NULLIF ( + + CAST( + 27 AS SIGNED ), - 18 )
----
27

skipif mysql # not compatible
query I rowsort label-6910
SELECT NULLIF ( + + CAST ( + 27 AS INTEGER ), - 18 )
----
27

query I rowsort
SELECT DISTINCT ( 71 ) + 37
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT - - 39 * + 99 + 32 * - COUNT( * )
----
3829

skipif mysql # not compatible
query I rowsort label-6912
SELECT - - 39 * + 99 + 32 * - COUNT ( * )
----
3829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6913
SELECT + - 86 * + CAST( + - 14 AS SIGNED ) AS col1
----
1204

skipif mysql # not compatible
query I rowsort label-6913
SELECT + - 86 * + CAST ( + - 14 AS INTEGER ) AS col1
----
1204

query I rowsort
SELECT DISTINCT - 80 + - 54 + COALESCE ( - 1, + 42 ) * - 78
----
-56

query I rowsort
SELECT + + 16 + 26
----
42

query I rowsort
SELECT + 53 + - 29 AS col2
----
24

query I rowsort
SELECT + 29 + - 81 AS col1
----
-52

query I rowsort
SELECT + 5 + + - 65 + - 93
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL MAX( ALL - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL MAX ( ALL - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT - COUNT( 26 ) + + 40 + - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-6920
SELECT - COUNT ( 26 ) + + 40 + - - COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT - COUNT( ALL - 73 ) + - ( + 67 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-6921
SELECT - COUNT ( ALL - 73 ) + - ( + 67 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT - NULLIF ( + 35, - 4 + + COUNT( * ) / + + COUNT( * ) - - 86 / - COALESCE ( 20, + 18, - 89 + - AVG ( DISTINCT + 8 ) * + 6 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-6922
SELECT - NULLIF ( + 35, - 4 + + COUNT ( * ) / + + COUNT ( * ) - - 86 / - COALESCE ( 20, + 18, - 89 + - AVG ( DISTINCT + 8 ) * + 6 ) )
----
-35

query I rowsort
SELECT - 75 + - - 66 col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT + 87 * MIN( ALL + + 17 ) * + 7 AS col1
----
10353

skipif mysql # not compatible
query I rowsort label-6924
SELECT + 87 * MIN ( ALL + + 17 ) * + 7 AS col1
----
10353

query I rowsort
SELECT - ( 40 ) + - NULLIF ( - 21, + 14 + - 54 + - 61 * 4 + - + 37 + + 88 )
----
-19

query II rowsort
SELECT 93 AS col2, + ( - 11 )
----
93
-11

query II rowsort
SELECT - 73 AS col0, 93
----
-73
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT DISTINCT MAX( ALL + 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT MAX ( ALL + 90 ) AS col1
----
90

query I rowsort
SELECT ALL - 55 * + + 46 AS col2
----
-2530

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT ( COUNT( - + 29 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6930
SELECT ( COUNT ( - + 29 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 37 * + 7 AS col2
----
-259

query I rowsort
SELECT ALL + 82 * 21
----
1722

query I rowsort
SELECT - ( + 61 ) * - 27 col0
----
1647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6934
SELECT DISTINCT + CAST( 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT + CAST ( 99 AS INTEGER )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6935
SELECT - CAST( 8 AS SIGNED ) * COUNT( * ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-6935
SELECT - CAST ( 8 AS INTEGER ) * COUNT ( * ) col0
----
-8

query I rowsort
SELECT DISTINCT - 37 * ( - 19 ) AS col0
----
703

query I rowsort
SELECT - ( + 7 ) * 65
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT - COUNT( ALL 58 ) * - CASE 72 WHEN MAX( - 36 ) THEN + 6 + + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6938
SELECT - COUNT ( ALL 58 ) * - CASE 72 WHEN MAX ( - 36 ) THEN + 6 + + 57 END
----
NULL

query I rowsort
SELECT DISTINCT 47 * + 87 + - 52
----
4037

query I rowsort
SELECT - 32 * COALESCE ( 77, + 14 + + COALESCE ( + 48, 16 + 34 ) * 3, 33 * 13 ) AS col2
----
-2464

query I rowsort
SELECT 92 * + 58 + 11 AS col0
----
5347

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6942
SELECT ALL + 36 * 37 + COUNT( * ) DIV COUNT( * ) AS col2
----
1333

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL + 36 * 37 + COUNT ( * ) / COUNT ( * ) AS col2
----
1333

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT COALESCE ( + CASE 85 WHEN COUNT( * ) + COUNT( * ) * - 16 THEN NULL ELSE COUNT( * ) END, - COALESCE ( - 10, 39 - - 27 * + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6943
SELECT COALESCE ( + CASE 85 WHEN COUNT ( * ) + COUNT ( * ) * - 16 THEN NULL ELSE COUNT ( * ) END, - COALESCE ( - 10, 39 - - 27 * + COUNT ( * ) ) )
----
1

query I rowsort
SELECT - 43 + - 41
----
-84

query I rowsort
SELECT - 2 * - 10 col0
----
20

query I rowsort
SELECT ALL 13 * 10
----
130

query I rowsort
SELECT 84 * 19 + 46 * 43
----
3574

query I rowsort
SELECT ALL 59 * + ( 28 ) + - 56
----
1596

query I rowsort
SELECT + 72 * + 46
----
3312

query I rowsort
SELECT + 89 + - 49 * + 36
----
-1675

query I rowsort
SELECT DISTINCT 12 * 51
----
612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6952
SELECT + 24 DIV COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6952
SELECT + 24 / COUNT ( * ) AS col2
----
24

query I rowsort
SELECT - 36 * + 12 col1
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT + 42 + + CASE - 69 WHEN 32 * 82 THEN ( + NULLIF ( COALESCE ( + 21, + 42 ), 28 ) ) * COUNT( * ) WHEN - 13 * SUM( DISTINCT 84 ) + 97 THEN 43 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT + 42 + + CASE - 69 WHEN 32 * 82 THEN ( + NULLIF ( COALESCE ( + 21, + 42 ), 28 ) ) * COUNT ( * ) WHEN - 13 * SUM ( DISTINCT 84 ) + 97 THEN 43 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT DISTINCT - COALESCE ( + 34, + ( - 38 ) * 15 + COUNT( * ) ) * 85 AS col0
----
-2890

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT - COALESCE ( + 34, + ( - 38 ) * 15 + COUNT ( * ) ) * 85 AS col0
----
-2890

onlyif mysql # DIV for integer division: 
query I rowsort label-6956
SELECT ALL 0 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL 0 / - 79
----
0

query I rowsort
SELECT + 6 * 48
----
288

query I rowsort
SELECT DISTINCT 35 * 66 AS col2
----
2310

onlyif mysql # DIV for integer division: 
query I rowsort label-6959
SELECT DISTINCT COALESCE ( CASE 95 WHEN - 6 THEN + CASE 42 WHEN 8 THEN - 49 ELSE NULL END WHEN + 31 * - 86 THEN NULL END, 83 + - 74, 95 DIV 98 ) DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT COALESCE ( CASE 95 WHEN - 6 THEN + CASE 42 WHEN 8 THEN - 49 ELSE NULL END WHEN + 31 * - 86 THEN NULL END, 83 + - 74, 95 / 98 ) / 39
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6960
SELECT + COUNT( ALL 42 ) DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-6960
SELECT + COUNT ( ALL 42 ) / 98
----
0

query I rowsort
SELECT - 70 * 28
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT DISTINCT 63 + COUNT( * ) * 52
----
115

skipif mysql # not compatible
query I rowsort label-6962
SELECT DISTINCT 63 + COUNT ( * ) * 52
----
115

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6963
SELECT ALL NULLIF ( CAST( NULL AS DECIMAL ), + CAST( NULL AS DECIMAL ) * - 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL NULLIF ( CAST ( NULL AS REAL ), + CAST ( NULL AS REAL ) * - 75 )
----
NULL

query I rowsort
SELECT ALL 98 + + 11 AS col1
----
109

query I rowsort
SELECT DISTINCT 57 * - 52 AS col0
----
-2964

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT ALL + 36 DIV - 33 + - 1
----
-2

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL + 36 / - 33 + - 1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6967
SELECT ALL - 96 DIV COUNT( CASE - 10 WHEN + 0 THEN NULL WHEN + 99 THEN + 33 DIV - 45 + + 59 * - CAST( NULL AS SIGNED ) ELSE 6 + + 11 * 74 END ) + + 23 * 85
----
1859

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL - 96 / COUNT ( CASE - 10 WHEN + 0 THEN NULL WHEN + 99 THEN + 33 / - 45 + + 59 * - CAST ( NULL AS INTEGER ) ELSE 6 + + 11 * 74 END ) + + 23 * 85
----
1859

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6968
SELECT COUNT( * ) DIV 20 + + 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6968
SELECT COUNT ( * ) / 20 + + 40 AS col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6969
SELECT DISTINCT 55 DIV 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT 55 / 56 AS col0
----
0

query I rowsort
SELECT DISTINCT + 79 + + 96 AS col2
----
175

query I rowsort
SELECT ALL + + 22 * 54
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT DISTINCT - SUM( ALL + 77 ) * 32
----
-2464

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT - SUM ( ALL + 77 ) * 32
----
-2464

query I rowsort
SELECT 52 * - 79 + + 76 AS col2
----
-4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6974
SELECT ALL - ( COALESCE ( ( + COALESCE ( + ( NULLIF ( ( COUNT( * ) ), MAX( DISTINCT 11 ) / + CAST( NULL AS SIGNED ) ) ), COUNT( * ), + COUNT( * ) ) ), 14 - 19, 85 ) ) - 12
----
-13

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL - ( COALESCE ( ( + COALESCE ( + ( NULLIF ( ( COUNT ( * ) ), MAX ( DISTINCT 11 ) / + CAST ( NULL AS INTEGER ) ) ), COUNT ( * ), + COUNT ( * ) ) ), 14 - 19, 85 ) ) - 12
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT ALL + + COUNT( * ) - - 96 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL + + COUNT ( * ) - - 96 AS col2
----
97

query I rowsort
SELECT 15 * 46
----
690

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT MIN( - ( - 67 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6977
SELECT MIN ( - ( - 67 ) ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT + COUNT( * ) + COUNT( * ) * + 60 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-6978
SELECT + COUNT ( * ) + COUNT ( * ) * + 60 AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6979
SELECT COALESCE ( + 55, 11 * - 65 - COALESCE ( 46 - 93, + MAX( + 88 ) DIV + 6, 69 ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6979
SELECT COALESCE ( + 55, 11 * - 65 - COALESCE ( 46 - 93, + MAX ( + 88 ) / + 6, 69 ) ) AS col2
----
55

query I rowsort
SELECT + 57 + 25
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT COUNT( * ) - 79 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-6981
SELECT COUNT ( * ) - 79 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT - COUNT( * ) * 85 col0
----
-85

skipif mysql # not compatible
query I rowsort label-6982
SELECT - COUNT ( * ) * 85 col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT DISTINCT - 72 * - 92 * COUNT( * )
----
6624

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT - 72 * - 92 * COUNT ( * )
----
6624

query I rowsort
SELECT 58 * - + 90
----
-5220

query I rowsort
SELECT 64 - 94 + + 98
----
68

query I rowsort
SELECT DISTINCT - 81 * 60 col1
----
-4860

onlyif mysql # DIV for integer division: 
query I rowsort label-6987
SELECT 90 * 46 DIV 47 + + 20 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-6987
SELECT 90 * 46 / 47 + + 20 AS col2
----
108

query I rowsort
SELECT 48 * ( 28 )
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT MIN( ALL - 2 ) * + 13 col1
----
-26

skipif mysql # not compatible
query I rowsort label-6989
SELECT MIN ( ALL - 2 ) * + 13 col1
----
-26

query I rowsort
SELECT 54 + + 52
----
106

query I rowsort
SELECT 64 + - 37 AS col1
----
27

query I rowsort
SELECT ALL + 64 * - 62
----
-3968

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT DISTINCT - 9 + - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT - 9 + - COUNT ( * )
----
-10

query I rowsort
SELECT ALL + 55 + - 49 * 70
----
-3375

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ALL 86 + + - 35 + 79 * - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL 86 + + - 35 + 79 * - COUNT ( * )
----
-28

query I rowsort
SELECT 83 + - 8 AS col0
----
75

query I rowsort
SELECT ALL - 91 + - + 86 + - 35 col2
----
-212

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT CASE - + 58 WHEN - 94 THEN - CASE 79 WHEN - 91 THEN - ( 65 ) * COUNT( * ) + 29 WHEN NULLIF ( 59, 46 + COALESCE ( + MIN( DISTINCT 7 ), - 16, + 99 + 25 ) ) * - COUNT( * ) THEN + 30 END * ( - 77 / - NULLIF ( + 42 / 29, - 3 + 11 ) ) END + + 66 * COUNT( + 35 * - 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6998
SELECT CASE - + 58 WHEN - 94 THEN - CASE 79 WHEN - 91 THEN - ( 65 ) * COUNT ( * ) + 29 WHEN NULLIF ( 59, 46 + COALESCE ( + MIN ( DISTINCT 7 ), - 16, + 99 + 25 ) ) * - COUNT ( * ) THEN + 30 END * ( - 77 / - NULLIF ( + 42 / 29, - 3 + 11 ) ) END + + 66 * COUNT ( + 35 * - 56 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6999
SELECT ALL 92 DIV + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL 92 / + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT 73 * - + ( COUNT( * ) )
----
-73

skipif mysql # not compatible
query I rowsort label-7000
SELECT 73 * - + ( COUNT ( * ) )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT 8 + + 33 - - 10 * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-7001
SELECT 8 + + 33 - - 10 * COUNT ( * )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7002
SELECT DISTINCT 85 + + + 80 + 18 DIV 72 * 4 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT 85 + + + 80 + 18 / 72 * 4 AS col2
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-7003
SELECT ALL COALESCE ( + - 8, 2 DIV + ( - 3 ), 8 * - 40 ) + 36
----
28

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL COALESCE ( + - 8, 2 / + ( - 3 ), 8 * - 40 ) + 36
----
28

query I rowsort
SELECT - 26 + + + 84
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7005
SELECT + 65 * 98 DIV 28 - SUM( - 97 ) * + 39
----
4010

skipif mysql # not compatible
query I rowsort label-7005
SELECT + 65 * 98 / 28 - SUM ( - 97 ) * + 39
----
4010

query I rowsort
SELECT ALL + 20 * + + 54 * 6
----
6480

query I rowsort
SELECT DISTINCT 44 + - 16
----
28

query I rowsort
SELECT ALL - 50 - 43 AS col1
----
-93

query I rowsort
SELECT - 1 * + - 72 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT ( + SUM( ALL - 75 ) ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7010
SELECT ( + SUM ( ALL - 75 ) ) AS col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7011
SELECT 29 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-7011
SELECT 29 / 97
----
0

query I rowsort
SELECT ALL 11 - 43
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT ( + - NULLIF ( + 67, + COUNT( * ) * - 26 ) ) + 4 * + 28
----
45

skipif mysql # not compatible
query I rowsort label-7013
SELECT ( + - NULLIF ( + 67, + COUNT ( * ) * - 26 ) ) + 4 * + 28
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7014
SELECT DISTINCT ( + 34 ) DIV 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7014
SELECT DISTINCT ( + 34 ) / 56 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7015
SELECT ALL - CAST( COUNT( 90 ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL - CAST ( COUNT ( 90 ) AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7016
SELECT DISTINCT + COUNT( * ) * + - ( + CAST( - 28 AS SIGNED ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7016
SELECT DISTINCT + COUNT ( * ) * + - ( + CAST ( - 28 AS INTEGER ) ) AS col0
----
28

query II rowsort
SELECT 17, CASE 49 WHEN 93 THEN 36 WHEN 12 THEN NULL ELSE NULL END AS col2
----
17
NULL

query I rowsort
SELECT ALL - 95 * 40
----
-3800

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT 74 + COUNT( - 83 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-7019
SELECT 74 + COUNT ( - 83 ) AS col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7020
SELECT 48 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-7020
SELECT 48 / - 58
----
0

query I rowsort
SELECT 83 + - + 93 + + 97 - - 79 AS col1
----
166

query I rowsort
SELECT ALL - 22 + - 93
----
-115

query I rowsort
SELECT 93 * - 48 AS col0
----
-4464

query II rowsort
SELECT 9 AS col0, 28
----
9
28

query I rowsort
SELECT ALL - 96 + + + 37
----
-59

query I rowsort
SELECT ALL - 23 + - - 86 col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT 83 * + 98 * + COUNT( 97 )
----
8134

skipif mysql # not compatible
query I rowsort label-7027
SELECT 83 * + 98 * + COUNT ( 97 )
----
8134

query I rowsort
SELECT ALL + 23 + + + ( - 26 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT DISTINCT MAX( - - 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT MAX ( - - 64 ) AS col0
----
64

query I rowsort
SELECT ALL - 96 + - - 6
----
-90

query II rowsort
SELECT - 23 AS col1, - 81
----
-23
-81

query I rowsort
SELECT ALL + 33 * + 99 col0
----
3267

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT 73 DIV + 9 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7033
SELECT 73 / + 9 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT COUNT( * ) * + 98
----
98

skipif mysql # not compatible
query I rowsort label-7034
SELECT COUNT ( * ) * + 98
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7035
SELECT ALL - 60 + ( 13 ) + - CAST( NULL AS SIGNED ) * + CASE - 3 WHEN + 96 / + 9 THEN 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL - 60 + ( 13 ) + - CAST ( NULL AS INTEGER ) * + CASE - 3 WHEN + 96 / + 9 THEN 5 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT 89 - + ( COUNT( * ) )
----
88

skipif mysql # not compatible
query I rowsort label-7036
SELECT 89 - + ( COUNT ( * ) )
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-7037
SELECT 28 AS col2, 56 DIV - 40 + - 32 AS col0
----
28
-33

skipif mysql # not compatible
query II rowsort label-7037
SELECT 28 AS col2, 56 / - 40 + - 32 AS col0
----
28
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT - MAX( + + 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-7038
SELECT - MAX ( + + 57 )
----
-57

query I rowsort
SELECT DISTINCT - 79 - 23
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL - + 51 - + 38 * - MAX( - 62 ) AS col1
----
-2407

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - + 51 - + 38 * - MAX ( - 62 ) AS col1
----
-2407

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL COUNT( * ) - - 55 * - - 41 + - ( + 62 - - 0 )
----
2194

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL COUNT ( * ) - - 55 * - - 41 + - ( + 62 - - 0 )
----
2194

query I rowsort
SELECT + 85 * - + 16 * + 33
----
-44880

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT ALL MIN( DISTINCT + + 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL MIN ( DISTINCT + + 5 ) AS col1
----
5

query I rowsort
SELECT - 29 + + 29 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7045
SELECT - + 37 DIV COUNT( * ) - MIN( DISTINCT - 54 ) - COUNT( * ) * - COUNT( * ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-7045
SELECT - + 37 / COUNT ( * ) - MIN ( DISTINCT - 54 ) - COUNT ( * ) * - COUNT ( * ) AS col1
----
18

query I rowsort
SELECT + 80 * + - 72 + 17 + 4
----
-5739

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7047
SELECT - + COALESCE ( - + 34, - 37 * - COUNT( * ), 30 * 4 ) DIV 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7047
SELECT - + COALESCE ( - + 34, - 37 * - COUNT ( * ), 30 * 4 ) / 82 AS col2
----
0

query I rowsort
SELECT + - 27 * - 11 AS col2
----
297

query I rowsort
SELECT - - 58 * - - NULLIF ( 85, 45 + 99 )
----
4930

query I rowsort
SELECT + + 53 * + + 48 * 16 * - 6
----
-244224

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT + COUNT( + - 45 )
----
1

skipif mysql # not compatible
query I rowsort label-7051
SELECT + COUNT ( + - 45 )
----
1

query II rowsort
SELECT ALL + 65, 44 * + 56 AS col0
----
65
2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7053
SELECT + - 9 + 14 DIV - + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-7053
SELECT + - 9 + 14 / - + COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-7054
SELECT + + COUNT( * ), - 72 + - 27 * - COUNT( * ) AS col2
----
1
-45

skipif mysql # not compatible
query II rowsort label-7054
SELECT + + COUNT ( * ), - 72 + - 27 * - COUNT ( * ) AS col2
----
1
-45

query I rowsort
SELECT + ( + 91 ) * 44 + 35 + 9 * ( + 43 * - 85 ) AS col0
----
-28856

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT MIN( + 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7056
SELECT MIN ( + 26 ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7057
SELECT - CAST( NULL AS SIGNED ) + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT - CAST ( NULL AS INTEGER ) + + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL 64 * + - COALESCE ( - 74, + 34 ) + - COUNT( * )
----
4735

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL 64 * + - COALESCE ( - 74, + 34 ) + - COUNT ( * )
----
4735

query I rowsort
SELECT DISTINCT + 25 * + + 97 + + - 77 + + + 24 * + 0
----
2348

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT DISTINCT - 41 * MAX( - 95 ) * 72 + + ( 25 )
----
280465

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT - 41 * MAX ( - 95 ) * 72 + + ( 25 )
----
280465

query I rowsort
SELECT ALL 32 * - 44 * 91 + - 76 - 74
----
-128278

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT ALL 81 DIV COALESCE ( 86, + - 89 DIV + 58 ) * 2 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL 81 / COALESCE ( 86, + - 89 / + 58 ) * 2 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7063
SELECT ALL - CASE + 70 WHEN COUNT( * ) / - - CAST( NULL AS SIGNED ) THEN CAST( NULL AS SIGNED ) + - 17 ELSE NULL END * - 73 + + 10 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL - CASE + 70 WHEN COUNT ( * ) / - - CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) + - 17 ELSE NULL END * - 73 + + 10 col2
----
NULL

query I rowsort
SELECT - ( - - 12 ) - - 92
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT - 45 * - COUNT( * ) col2
----
45

skipif mysql # not compatible
query I rowsort label-7065
SELECT - 45 * - COUNT ( * ) col2
----
45

query I rowsort
SELECT + ( + 81 ) + + 5
----
86

query I rowsort
SELECT DISTINCT CASE + 50 WHEN + 73 THEN NULL ELSE + - 47 + + 16 * 64 END
----
977

query I rowsort
SELECT ALL 33 - + - 5 AS col0
----
38

query II rowsort
SELECT ALL ( 35 ), 32 * + - 8 AS col2
----
35
-256

onlyif mysql # DIV for integer division: 
query I rowsort label-7070
SELECT - 3 + + 1 + + 43 DIV - 17 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7070
SELECT - 3 + + 1 + + 43 / - 17 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL COUNT( * ) - 95
----
-94

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL COUNT ( * ) - 95
----
-94

query I rowsort
SELECT DISTINCT + ( 41 ) AS col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7073
SELECT ALL - 28 - + - CAST( - 79 AS SIGNED )
----
-107

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL - 28 - + - CAST ( - 79 AS INTEGER )
----
-107

query I rowsort
SELECT DISTINCT + 70 * - 19
----
-1330

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT - SUM( - + 9 ) * 83 * + ( - 35 ) * 71 + 3
----
-1856292

skipif mysql # not compatible
query I rowsort label-7075
SELECT - SUM ( - + 9 ) * 83 * + ( - 35 ) * 71 + 3
----
-1856292

query I rowsort
SELECT - + 48 + + - 76 col2
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT - + 4 * - MAX( - 28 )
----
-112

skipif mysql # not compatible
query I rowsort label-7077
SELECT - + 4 * - MAX ( - 28 )
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT - + 98 + + SUM( + 45 ) + + 43 + - 6 col1
----
-16

skipif mysql # not compatible
query I rowsort label-7078
SELECT - + 98 + + SUM ( + 45 ) + + 43 + - 6 col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7079
SELECT DISTINCT - 65 * - + 99 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT - 65 * - + 99 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT ALL - 32 * COUNT( * ) + - - 60 + - 26 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL - 32 * COUNT ( * ) + - - 60 + - 26 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7081
SELECT - - 21 DIV COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-7081
SELECT - - 21 / COUNT ( * )
----
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7082
SELECT DISTINCT - - 11 DIV - 73 + + 47 * + ( - 99 ) + - CAST( - 64 AS SIGNED ) * + 75 col2
----
147

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT - - 11 / - 73 + + 47 * + ( - 99 ) + - CAST ( - 64 AS INTEGER ) * + 75 col2
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7083
SELECT DISTINCT COUNT( * ) DIV + - 52 + - 79
----
-79

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT COUNT ( * ) / + - 52 + - 79
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT + NULLIF ( + NULLIF ( - + 7, - CASE + 56 WHEN 45 / 68 - + 32 * ( - SUM( + ( + 26 ) ) + 36 * + 93 ) THEN - 52 END * - 74 ), 56 - - 28 * 76 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-7084
SELECT + NULLIF ( + NULLIF ( - + 7, - CASE + 56 WHEN 45 / 68 - + 32 * ( - SUM ( + ( + 26 ) ) + 36 * + 93 ) THEN - 52 END * - 74 ), 56 - - 28 * 76 ) AS col0
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-7085
SELECT - + 61 DIV - 21, 53 * + 16 * + 17 AS col0
----
2
14416

skipif mysql # not compatible
query II rowsort label-7085
SELECT - + 61 / - 21, 53 * + 16 * + 17 AS col0
----
2
14416

onlyif mysql # DIV for integer division: 
query I rowsort label-7086
SELECT DISTINCT + 24 DIV - 76 * + 17 * + 79 + - 16 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT + 24 / - 76 * + 17 * + 79 + - 16 AS col0
----
-16

query I rowsort
SELECT ( - 18 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT ALL COUNT( * ) / + - CASE MAX( 31 ) WHEN - + ( - MIN( DISTINCT + 10 ) ) * 30 THEN + 18 * MAX( 55 ) + + 53 WHEN 40 + 67 * - 34 THEN - 11 * 0 WHEN 20 THEN NULL END + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL COUNT ( * ) / + - CASE MAX ( 31 ) WHEN - + ( - MIN ( DISTINCT + 10 ) ) * 30 THEN + 18 * MAX ( 55 ) + + 53 WHEN 40 + 67 * - 34 THEN - 11 * 0 WHEN 20 THEN NULL END + 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT - COUNT( * ) + - COUNT( * ) - + 49 + + 63 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7089
SELECT - COUNT ( * ) + - COUNT ( * ) - + 49 + + 63 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT DISTINCT - 97 * + - 98 * 86 * - COUNT( * ) * + - ( SUM( 74 ) ) + 98 * - 83
----
60488050

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT - 97 * + - 98 * 86 * - COUNT ( * ) * + - ( SUM ( 74 ) ) + 98 * - 83
----
60488050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7091
SELECT + CAST( NULL AS SIGNED ) + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT + CAST ( NULL AS INTEGER ) + + 77
----
NULL

query I rowsort
SELECT DISTINCT - 50 * + 14
----
-700

query I rowsort
SELECT ALL 75 * + CASE - 42 WHEN - + 46 * - 79 THEN 57 END
----
NULL

query I rowsort
SELECT NULLIF ( + 1, 61 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT + 63 + - MAX( ( + - 92 ) )
----
155

skipif mysql # not compatible
query I rowsort label-7095
SELECT + 63 + - MAX ( ( + - 92 ) )
----
155

query I rowsort
SELECT + 39 + + 25
----
64

query I rowsort
SELECT 89 * + + 31 AS col1
----
2759

query I rowsort
SELECT ALL 33 - + 80 AS col0
----
-47

query I rowsort
SELECT ALL - 61 - + - 7
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7100
SELECT DISTINCT 27 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT 27 / + CAST ( NULL AS INTEGER )
----
NULL

query III rowsort
SELECT - 88, 39 * - 8 col0, - 39 col2
----
-88
-312
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT ALL - 88 * - - ( COUNT( * ) ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL - 88 * - - ( COUNT ( * ) ) AS col2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT - ( - + ( + CAST( - 62 AS SIGNED ) ) ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-7103
SELECT - ( - + ( + CAST ( - 62 AS INTEGER ) ) ) AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7104
SELECT ALL CAST( 98 AS SIGNED ) * + 33 AS col1, 71 + + 78
----
3234
149

skipif mysql # not compatible
query II rowsort label-7104
SELECT ALL CAST ( 98 AS INTEGER ) * + 33 AS col1, 71 + + 78
----
3234
149

query I rowsort
SELECT 38 * + 47 AS col1
----
1786

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT - COUNT( * ) - 18 - + + 31 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-7106
SELECT - COUNT ( * ) - 18 - + + 31 AS col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7107
SELECT - 3 DIV 75 * - 51 * COUNT( * ) + + 97 + 81
----
178

skipif mysql # not compatible
query I rowsort label-7107
SELECT - 3 / 75 * - 51 * COUNT ( * ) + + 97 + 81
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT - SUM( 98 ) - - 70 + + ( ( + 34 ) ) * 30 AS col2
----
992

skipif mysql # not compatible
query I rowsort label-7108
SELECT - SUM ( 98 ) - - 70 + + ( ( + 34 ) ) * 30 AS col2
----
992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7109
SELECT DISTINCT + 45 + - 83 + + 61 * + MIN( - ( CAST( - 86 AS SIGNED ) ) ) * MAX( 4 ) + NULLIF ( - 94 + 22, + 67 * + 9 ) * - 79
----
26634

skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT + 45 + - 83 + + 61 * + MIN ( - ( CAST ( - 86 AS INTEGER ) ) ) * MAX ( 4 ) + NULLIF ( - 94 + 22, + 67 * + 9 ) * - 79
----
26634

query I rowsort
SELECT ALL + + 29 + - - 60
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT DISTINCT - - SUM( 14 ) + + - 97
----
-83

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT - - SUM ( 14 ) + + - 97
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT - 10 - - + COUNT( * ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7112
SELECT - 10 - - + COUNT ( * ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT ALL - ( - + ( 20 ) ) * - - 79 * + + COUNT( * ) AS col1
----
1580

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL - ( - + ( 20 ) ) * - - 79 * + + COUNT ( * ) AS col1
----
1580

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT COALESCE ( MAX( DISTINCT 58 ), - + 98 )
----
58

skipif mysql # not compatible
query I rowsort label-7114
SELECT COALESCE ( MAX ( DISTINCT 58 ), - + 98 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT - - 92 + + - MIN( DISTINCT 20 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT - - 92 + + - MIN ( DISTINCT 20 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT ALL - COUNT( * ) + - + 37 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL - COUNT ( * ) + - + 37 AS col2
----
-38

query II rowsort
SELECT 67 + 54 AS col1, - 84
----
121
-84

query I rowsort
SELECT ALL - 36 * 22
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT DISTINCT - COALESCE ( MIN( ALL 28 ), + 16, + + COUNT( * ) + + - 50 * 49 )
----
-28

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT - COALESCE ( MIN ( ALL 28 ), + 16, + + COUNT ( * ) + + - 50 * 49 )
----
-28

query I rowsort
SELECT 77 + 58 col0
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7121
SELECT 33 col0, + COUNT( * ) DIV - - 26
----
33
0

skipif mysql # not compatible
query II rowsort label-7121
SELECT 33 col0, + COUNT ( * ) / - - 26
----
33
0

query I rowsort
SELECT ALL - ( - ( + 45 ) ) AS col1
----
45

query I rowsort
SELECT ALL - 9 - 44 + + ( + 96 ) * - - 92
----
8779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7124
SELECT + NULLIF ( + + 58, + 27 ) * + + CAST( 34 AS SIGNED ) + + COUNT( * ) * - 80 AS col2
----
1892

skipif mysql # not compatible
query I rowsort label-7124
SELECT + NULLIF ( + + 58, + 27 ) * + + CAST ( 34 AS INTEGER ) + + COUNT ( * ) * - 80 AS col2
----
1892

query II rowsort
SELECT 14, - 10 col2
----
14
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT COUNT( * ) + + - 27 col1
----
-26

skipif mysql # not compatible
query I rowsort label-7126
SELECT COUNT ( * ) + + - 27 col1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-7127
SELECT ALL + 74 DIV 39 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL + 74 / 39 AS col2
----
1

query I rowsort
SELECT 82 * - 79
----
-6478

query I rowsort
SELECT ALL + 65 * 42
----
2730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT DISTINCT - 29 - CAST( + + 35 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT - 29 - CAST ( + + 35 AS INTEGER )
----
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-7131
SELECT DISTINCT - 40 AS col1, - 63 DIV - 63
----
-40
1

skipif mysql # not compatible
query II rowsort label-7131
SELECT DISTINCT - 40 AS col1, - 63 / - 63
----
-40
1

query II rowsort
SELECT DISTINCT - 79, 65 + + + 84 AS col1
----
-79
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT ALL 74 * + - COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL 74 * + - COUNT ( * ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT DISTINCT MIN( - ( + + 21 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT MIN ( - ( + + 21 ) )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7135
SELECT + 10 * - NULLIF ( + 36, - COUNT( * ) ) + + 0 * + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT + 10 * - NULLIF ( + 36, - COUNT ( * ) ) + + 0 * + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT 36 * - MAX( - 63 )
----
2268

skipif mysql # not compatible
query I rowsort label-7136
SELECT 36 * - MAX ( - 63 )
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT 60 + - 10 + + + 82 * + ( + 63 ) * + COUNT( * ) AS col2
----
5216

skipif mysql # not compatible
query I rowsort label-7137
SELECT 60 + - 10 + + + 82 * + ( + 63 ) * + COUNT ( * ) AS col2
----
5216

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT + 18 + - COUNT( * ) - 94 * + - NULLIF ( - 80, - - 25 / 78 + 38 * - 79 ) AS col2
----
-7503

skipif mysql # not compatible
query I rowsort label-7138
SELECT + 18 + - COUNT ( * ) - 94 * + - NULLIF ( - 80, - - 25 / 78 + 38 * - 79 ) AS col2
----
-7503

query II rowsort
SELECT - 18 AS col1, - 42 AS col2
----
-18
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7140
SELECT ALL - 76 + + - 15 DIV + 83 col2
----
-76

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL - 76 + + - 15 / + 83 col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT MAX( DISTINCT - 65 ) + 24
----
-41

skipif mysql # not compatible
query I rowsort label-7141
SELECT MAX ( DISTINCT - 65 ) + 24
----
-41

query I rowsort
SELECT DISTINCT 10 + - 77 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL ( COUNT( ALL + 3 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL ( COUNT ( ALL + 3 ) )
----
1

query I rowsort
SELECT DISTINCT 24 + 14 AS col1
----
38

query I rowsort
SELECT ALL + 16 + 89 * - 84 AS col2
----
-7460

query I rowsort
SELECT DISTINCT + 57 + + 64 AS col0
----
121

query II rowsort
SELECT - 8, + ( - 27 ) * + 15 AS col2
----
-8
-405

onlyif mysql # aggregate syntax: 
query II rowsort label-7148
SELECT ALL + 96 AS col2, COUNT( * ) * - 52
----
96
-52

skipif mysql # not compatible
query II rowsort label-7148
SELECT ALL + 96 AS col2, COUNT ( * ) * - 52
----
96
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT DISTINCT 69 * - 49 * 45 * 9 + + COUNT( * ) + - 30 + - COUNT( * ) * 9 col0
----
-1369343

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT 69 * - 49 * 45 * 9 + + COUNT ( * ) + - 30 + - COUNT ( * ) * 9 col0
----
-1369343

onlyif mysql # DIV for integer division: 
query I rowsort label-7150
SELECT - 8 + - + 94 + - - 83 DIV - 66 AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-7150
SELECT - 8 + - + 94 + - - 83 / - 66 AS col0
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-7151
SELECT ALL + COUNT( * ) + + 25 AS col1, - 84
----
26
-84

skipif mysql # not compatible
query II rowsort label-7151
SELECT ALL + COUNT ( * ) + + 25 AS col1, - 84
----
26
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-7152
SELECT 78 DIV + - 30
----
-2

skipif mysql # not compatible
query I rowsort label-7152
SELECT 78 / + - 30
----
-2

query I rowsort
SELECT DISTINCT 35 * 30 AS col2
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT SUM( DISTINCT 26 ) * - CASE - + 48 WHEN - 32 THEN - - 83 + COUNT( * ) WHEN 37 - - 37 * ( SUM( 6 ) * 33 + 40 ) THEN NULL END + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT SUM ( DISTINCT 26 ) * - CASE - + 48 WHEN - 32 THEN - - 83 + COUNT ( * ) WHEN 37 - - 37 * ( SUM ( 6 ) * 33 + 40 ) THEN NULL END + 35 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7155
SELECT ALL CASE 51 WHEN + + 91 + + + ( + 81 ) - + 31 + 12 + + 44 THEN NULL WHEN + CASE + AVG ( DISTINCT 18 ) WHEN 67 + 15 * 12 THEN 73 ELSE COALESCE ( - 23, COUNT( - 43 ) * 51, 42 * COUNT( 97 ) ) + 76 END + 64 THEN CAST( + CAST( - ( + 0 ) AS SIGNED ) AS DECIMAL ) END * + 51 - - COUNT( * ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL CASE 51 WHEN + + 91 + + + ( + 81 ) - + 31 + 12 + + 44 THEN NULL WHEN + CASE + AVG ( DISTINCT 18 ) WHEN 67 + 15 * 12 THEN 73 ELSE COALESCE ( - 23, COUNT ( - 43 ) * 51, 42 * COUNT ( 97 ) ) + 76 END + 64 THEN CAST ( + CAST ( - ( + 0 ) AS INTEGER ) AS REAL ) END * + 51 - - COUNT ( * ) / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7156
SELECT COUNT( DISTINCT 61 ) AS col2, 82 * + 31 * 5 * 38 AS col0
----
1
482980

skipif mysql # not compatible
query II rowsort label-7156
SELECT COUNT ( DISTINCT 61 ) AS col2, 82 * + 31 * 5 * 38 AS col0
----
1
482980

onlyif mysql # DIV for integer division: 
query I rowsort label-7157
SELECT 78 DIV 79 - 24
----
-24

skipif mysql # not compatible
query I rowsort label-7157
SELECT 78 / 79 - 24
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT 2 * 47 * + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-7158
SELECT 2 * 47 * + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7159
SELECT + CASE + 69 WHEN - AVG ( 85 ) * - - MAX( - + 61 ) THEN + COUNT( * ) WHEN - 63 THEN NULL ELSE - 76 - + 18 DIV 10 END
----
-77

skipif mysql # not compatible
query I rowsort label-7159
SELECT + CASE + 69 WHEN - AVG ( 85 ) * - - MAX ( - + 61 ) THEN + COUNT ( * ) WHEN - 63 THEN NULL ELSE - 76 - + 18 / 10 END
----
-77

query I rowsort
SELECT 8 + - COALESCE ( 32, - 59 )
----
-24

query I rowsort
SELECT 69 * + - 5 * - + 26 * - 34 + - 62 + + + 7 + - COALESCE ( 37, 87 + + ( 10 ) ) * 47
----
-306774

query I rowsort
SELECT - ( + + 89 ) + + 22 * - - 95
----
2001

query II rowsort
SELECT 79 * + - NULLIF ( 77, - 20 ) - + 29 AS col0, 49 + + 25 AS col1
----
-6112
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7164
SELECT DISTINCT + 88 * CASE + - COUNT( ALL - 87 ) WHEN - ( - ( - AVG ( DISTINCT - 27 ) ) ) / - ( CAST( NULL AS SIGNED ) / COALESCE ( 44, + 43 ) ) THEN NULL WHEN + 35 THEN NULL ELSE - SUM( DISTINCT 64 ) END * - CASE 21 * - 89 WHEN 47 * - 55 THEN NULL WHEN 56 * 60 THEN - CAST( MIN( + 40 ) AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT + 88 * CASE + - COUNT ( ALL - 87 ) WHEN - ( - ( - AVG ( DISTINCT - 27 ) ) ) / - ( CAST ( NULL AS INTEGER ) / COALESCE ( 44, + 43 ) ) THEN NULL WHEN + 35 THEN NULL ELSE - SUM ( DISTINCT 64 ) END * - CASE 21 * - 89 WHEN 47 * - 55 THEN NULL WHEN 56 * 60 THEN - CAST ( MIN ( + 40 ) AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT - 80 * 72 AS col2
----
-5760

query I rowsort
SELECT 34 * - 97 + + - 32
----
-3330

onlyif mysql # aggregate syntax: 
query II rowsort label-7167
SELECT - 44 * - COUNT( * ) col0, - 23 * 50
----
44
-1150

skipif mysql # not compatible
query II rowsort label-7167
SELECT - 44 * - COUNT ( * ) col0, - 23 * 50
----
44
-1150

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT - SUM( DISTINCT ( 15 ) ) + - 25 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-7168
SELECT - SUM ( DISTINCT ( 15 ) ) + - 25 AS col1
----
-40

query I rowsort
SELECT - - ( 21 ) * - 40 AS col0
----
-840

onlyif mysql # aggregate syntax: 
query II rowsort label-7170
SELECT ALL - + 17 + + - 94, COUNT( * ) * - 68 AS col1
----
-111
-68

skipif mysql # not compatible
query II rowsort label-7170
SELECT ALL - + 17 + + - 94, COUNT ( * ) * - 68 AS col1
----
-111
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7171
SELECT - AVG ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT - AVG ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7172
SELECT ALL + + 38 DIV - 2 AS col2, 96 AS col2
----
-19
96

skipif mysql # not compatible
query II rowsort label-7172
SELECT ALL + + 38 / - 2 AS col2, 96 AS col2
----
-19
96

query I rowsort
SELECT DISTINCT 55 * - 42 * 83 AS col1
----
-191730

query I rowsort
SELECT ALL + - 25 + - 28
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7175
SELECT DISTINCT - 98 + + 49 + + + 68 DIV 86 col1
----
-49

skipif mysql # not compatible
query I rowsort label-7175
SELECT DISTINCT - 98 + + 49 + + + 68 / 86 col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT DISTINCT + 87 + + COUNT( * ) + + - 87 * + 52
----
-4436

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT + 87 + + COUNT ( * ) + + - 87 * + 52
----
-4436

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT - ( - 10 ) + + MIN( 1 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-7177
SELECT - ( - 10 ) + + MIN ( 1 ) AS col0
----
11

query I rowsort
SELECT ALL + 53 * + ( + 46 )
----
2438

onlyif mysql # aggregate syntax: 
query II rowsort label-7179
SELECT DISTINCT - COUNT( * ) + 15, 54 AS col1
----
14
54

skipif mysql # not compatible
query II rowsort label-7179
SELECT DISTINCT - COUNT ( * ) + 15, 54 AS col1
----
14
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7180
SELECT - MIN( - 64 ), + COUNT( ALL + ( - - 53 ) ) + 56 AS col1
----
64
57

skipif mysql # not compatible
query II rowsort label-7180
SELECT - MIN ( - 64 ), + COUNT ( ALL + ( - - 53 ) ) + 56 AS col1
----
64
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT - SUM( + - NULLIF ( 76, - 80 ) )
----
76

skipif mysql # not compatible
query I rowsort label-7181
SELECT - SUM ( + - NULLIF ( 76, - 80 ) )
----
76

query I rowsort
SELECT + - 98 - - 27 + + ( 95 ) AS col1
----
24

query II rowsort
SELECT + + 24 - - - 96 AS col1, + 95
----
-72
95

query I rowsort
SELECT - + 39 col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7185
SELECT + ( + ( + + MAX( CAST( 27 AS SIGNED ) ) ) ) + - - 25 + - 45 - 24 + - 76 DIV 52 * 83
----
-100

skipif mysql # not compatible
query I rowsort label-7185
SELECT + ( + ( + + MAX ( CAST ( 27 AS INTEGER ) ) ) ) + - - 25 + - 45 - 24 + - 76 / 52 * 83
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7186
SELECT ALL SUM( DISTINCT + CAST( - ( - + 37 ) AS SIGNED ) ) * 71 DIV + COUNT( * )
----
2627

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL SUM ( DISTINCT + CAST ( - ( - + 37 ) AS INTEGER ) ) * 71 / + COUNT ( * )
----
2627

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT + ( + CASE + 94 WHEN + 2 + + - AVG ( ALL - 72 ) THEN + 66 ELSE NULL END ) * + + 89 * SUM( DISTINCT 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7187
SELECT + ( + CASE + 94 WHEN + 2 + + - AVG ( ALL - 72 ) THEN + 66 ELSE NULL END ) * + + 89 * SUM ( DISTINCT 96 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7188
SELECT 83 * - MAX( DISTINCT + 84 ) + + 69, COUNT( 92 ) AS col2
----
-6903
1

skipif mysql # not compatible
query II rowsort label-7188
SELECT 83 * - MAX ( DISTINCT + 84 ) + + 69, COUNT ( 92 ) AS col2
----
-6903
1

query I rowsort
SELECT + 23 - - 32
----
55

query I rowsort
SELECT + COALESCE ( + 38, - 74 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7191
SELECT 83 * + 91 + MAX( - COALESCE ( - - 51, 99 + + 92, 56 ) ) DIV 90 AS col2
----
7553

skipif mysql # not compatible
query I rowsort label-7191
SELECT 83 * + 91 + MAX ( - COALESCE ( - - 51, 99 + + 92, 56 ) ) / 90 AS col2
----
7553

query I rowsort
SELECT ALL 16 * + + 81 AS col2
----
1296

query I rowsort
SELECT DISTINCT 75 * - 36 AS col0
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT + 87 + - MIN( ALL 35 ) * + 5
----
-88

skipif mysql # not compatible
query I rowsort label-7194
SELECT + 87 + - MIN ( ALL 35 ) * + 5
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT ALL + COUNT( ALL 23 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL + COUNT ( ALL 23 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7196
SELECT ( + ( + - ( + - 39 ) ) ), 79 DIV + + 26 * + COALESCE ( COUNT( * ), + COUNT( * ) DIV - 28 ) col2
----
39
3

skipif mysql # not compatible
query II rowsort label-7196
SELECT ( + ( + - ( + - 39 ) ) ), 79 / + + 26 * + COALESCE ( COUNT ( * ), + COUNT ( * ) / - 28 ) col2
----
39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT ALL + 57 * - - 9 + + 89 + MIN( ALL - 73 )
----
529

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL + 57 * - - 9 + + 89 + MIN ( ALL - 73 )
----
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7198
SELECT + 38 + 76 + COALESCE ( - 96, + ( + 57 ), - CAST( NULL AS SIGNED ) * + 10 * + CAST( NULL AS SIGNED ) + ( - ( 73 ) ) ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-7198
SELECT + 38 + 76 + COALESCE ( - 96, + ( + 57 ), - CAST ( NULL AS INTEGER ) * + 10 * + CAST ( NULL AS INTEGER ) + ( - ( 73 ) ) ) AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7199
SELECT DISTINCT + NULLIF ( - CASE + 99 WHEN - + 41 + CAST( - - ( - ( + MAX( DISTINCT - 60 ) ) ) AS SIGNED ) + 30 * + AVG ( ALL + 77 ) THEN 59 * 50 WHEN - 94 + 99 * - 54 THEN 54 * COUNT( * ) ELSE NULL END, ( 70 ) * 78 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT DISTINCT + NULLIF ( - CASE + 99 WHEN - + 41 + CAST ( - - ( - ( + MAX ( DISTINCT - 60 ) ) ) AS INTEGER ) + 30 * + AVG ( ALL + 77 ) THEN 59 * 50 WHEN - 94 + 99 * - 54 THEN 54 * COUNT ( * ) ELSE NULL END, ( 70 ) * 78 ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7200
SELECT DISTINCT + + 0 * - 93 / 30 * 45 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT + + 0 * - 93 / 30 * 45 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 37 * + - 87 + COALESCE ( + - 42, - 82 ) AS col0
----
-3261

query II rowsort
SELECT DISTINCT + 87, - 68 col0
----
87
-68

query I rowsort
SELECT - + CASE 25 WHEN + 76 THEN - 0 WHEN - 38 * - - 86 THEN + 69 ELSE NULL END - 35 * - 3 AS col2
----
NULL

query I rowsort
SELECT ALL + 42 * + 86 AS col0
----
3612

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT ALL 74 * - - MAX( - 52 )
----
-3848

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL 74 * - - MAX ( - 52 )
----
-3848

query I rowsort
SELECT ALL - - 18 - + 17 col1
----
1

query I rowsort
SELECT DISTINCT - + 68 - + 67
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7208
SELECT + 47 + - 87 * + CASE 87 WHEN + - ( - 18 ) THEN - COUNT( * ) + - + 39 WHEN + + 65 THEN MAX( - CAST( NULL AS SIGNED ) ) ELSE + COUNT( * ) DIV 28 END col1
----
47

skipif mysql # not compatible
query I rowsort label-7208
SELECT + 47 + - 87 * + CASE 87 WHEN + - ( - 18 ) THEN - COUNT ( * ) + - + 39 WHEN + + 65 THEN MAX ( - CAST ( NULL AS INTEGER ) ) ELSE + COUNT ( * ) / 28 END col1
----
47

query I rowsort
SELECT DISTINCT + 87 * - ( - 92 )
----
8004

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT MAX( 13 ) * + 83 * 33
----
35607

skipif mysql # not compatible
query I rowsort label-7210
SELECT MAX ( 13 ) * + 83 * 33
----
35607

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT ( - MAX( 13 ) ) * 43 + + 61
----
-498

skipif mysql # not compatible
query I rowsort label-7211
SELECT ( - MAX ( 13 ) ) * 43 + + 61
----
-498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7212
SELECT COUNT( * ) + - CAST( - + 85 AS SIGNED ) * 54 AS col0
----
4591

skipif mysql # not compatible
query I rowsort label-7212
SELECT COUNT ( * ) + - CAST ( - + 85 AS INTEGER ) * 54 AS col0
----
4591

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT ALL 99 / - CAST( NULL AS SIGNED ) / - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL 99 / - CAST ( NULL AS INTEGER ) / - 29
----
NULL

query I rowsort
SELECT 6 * - - 43 + COALESCE ( - 59, + 48 + - 84 ) * + 74
----
-4108

query I rowsort
SELECT DISTINCT 16 * 95 AS col1
----
1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7216
SELECT 98 * - - ( + CASE - 17 WHEN - + 75 * - 56 + + + 85 THEN NULL ELSE CAST( 98 AS SIGNED ) * 23 + COUNT( * ) END )
----
220990

skipif mysql # not compatible
query I rowsort label-7216
SELECT 98 * - - ( + CASE - 17 WHEN - + 75 * - 56 + + + 85 THEN NULL ELSE CAST ( 98 AS INTEGER ) * 23 + COUNT ( * ) END )
----
220990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7217
SELECT ( + 43 ) + - - 92 + CAST( NULL AS DECIMAL ) + 55 * - 78 * 30 * 62 - 71 + - CASE 94 + - 92 WHEN CAST( 68 AS SIGNED ) THEN 22 END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7217
SELECT ( + 43 ) + - - 92 + CAST ( NULL AS REAL ) + 55 * - 78 * 30 * 62 - 71 + - CASE 94 + - 92 WHEN CAST ( 68 AS INTEGER ) THEN 22 END * - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT ( - - 54 ) + - 41 AS col2
----
13

query I rowsort
SELECT ALL 15 * 88 * + ( 91 ) AS col2
----
120120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT ALL CAST( + 63 AS SIGNED ) + - + 70 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL CAST ( + 63 AS INTEGER ) + - + 70 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT ALL COALESCE ( + + 72, + ( - 83 ) + - + 47 + - 35 - - 20 + 60 * + - 92 * 36 ) * + COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL COALESCE ( + + 72, + ( - 83 ) + - + 47 + - 35 - - 20 + 60 * + - 92 * 36 ) * + COUNT ( * ) AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7222
SELECT ALL CAST( NULL AS SIGNED ) + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL CAST ( NULL AS INTEGER ) + 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7223
SELECT ALL 85 DIV - - COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL 85 / - - COUNT ( * ) AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7224
SELECT COUNT( * ) / + 68 * + 69 + - + 32 + - 29 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT COUNT ( * ) / + 68 * + 69 + - + 32 + - 29 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7225
SELECT DISTINCT - - 37 + - CAST( + 57 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT - - 37 + - CAST ( + 57 AS INTEGER )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-7226
SELECT ALL + MIN( - 39 ) + + ( + 43 ), ( - 93 ) + + 41 col0
----
4
-52

skipif mysql # not compatible
query II rowsort label-7226
SELECT ALL + MIN ( - 39 ) + + ( + 43 ), ( - 93 ) + + 41 col0
----
4
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT + COUNT( ALL + 42 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7227
SELECT + COUNT ( ALL + 42 ) col0
----
1

query I rowsort
SELECT ALL - + ( + + 5 ) AS col2
----
-5

query I rowsort
SELECT + 38 * + + 87 + + 32 col1
----
3338

query I rowsort
SELECT 4 + + - 28 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT ALL COUNT( * ) - - 13
----
14

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL COUNT ( * ) - - 13
----
14

query I rowsort
SELECT ALL - + COALESCE ( - - 0, + + 1 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 4 - + - 16 AS col0
----
12

query I rowsort
SELECT - 5 * + 8 * 6 AS col1
----
-240

query I rowsort
SELECT ALL + 76 - - 55 * + - 60
----
-3224

onlyif mysql # aggregate syntax: 
query II rowsort label-7236
SELECT ALL - COUNT( - 55 ) col2, 2 AS col0
----
-1
2

skipif mysql # not compatible
query II rowsort label-7236
SELECT ALL - COUNT ( - 55 ) col2, 2 AS col0
----
-1
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7237
SELECT ALL + - ( + 68 ) - + COUNT( * ) - + - 40 AS col2, - 78 AS col1
----
-29
-78

skipif mysql # not compatible
query II rowsort label-7237
SELECT ALL + - ( + 68 ) - + COUNT ( * ) - + - 40 AS col2, - 78 AS col1
----
-29
-78

query I rowsort
SELECT 63 + - 39 AS col2
----
24

query I rowsort
SELECT 55 + ( 78 )
----
133

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7240
SELECT ALL - 46 DIV + NULLIF ( CAST( - 66 AS SIGNED ), + 58 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL - 46 / + NULLIF ( CAST ( - 66 AS INTEGER ), + 58 ) AS col1
----
0

query I rowsort
SELECT 92 - - 32 AS col0
----
124

query I rowsort
SELECT ALL - NULLIF ( + 99, - + 89 / 43 + + - 99 ) * ( 28 ) AS col1
----
-2772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7243
SELECT ALL - COUNT( * ) DIV + + COALESCE ( - 65, 99 )
----
0

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL - COUNT ( * ) / + + COALESCE ( - 65, 99 )
----
0

query I rowsort
SELECT 11 + + 3 AS col2
----
14

query II rowsort
SELECT ALL 1, + 97 AS col1
----
1
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7246
SELECT ALL - ( + 28 ) * - - ( + 61 ) * + CAST( + 81 AS DECIMAL ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL - ( + 28 ) * - - ( + 61 ) * + CAST ( + 81 AS REAL ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7247
SELECT - 60 col0, COUNT( * ) AS col0
----
-60
1

skipif mysql # not compatible
query II rowsort label-7247
SELECT - 60 col0, COUNT ( * ) AS col0
----
-60
1

query I rowsort
SELECT 1 + - + 3 AS col1
----
-2

query I rowsort
SELECT 37 - 42 AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7250
SELECT DISTINCT + 69 * - 84 / - + 42 + + + COUNT( - 1 ) - - - COUNT( DISTINCT 55 ) * CASE - 47 WHEN 17 - CASE CAST( NULL AS SIGNED ) WHEN 95 THEN COUNT( * ) WHEN COUNT( * ) THEN - ( - 18 ) ELSE - COUNT( * ) END * 86 THEN NULL WHEN + 6 THEN - 50 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT + 69 * - 84 / - + 42 + + + COUNT ( - 1 ) - - - COUNT ( DISTINCT 55 ) * CASE - 47 WHEN 17 - CASE CAST ( NULL AS INTEGER ) WHEN 95 THEN COUNT ( * ) WHEN COUNT ( * ) THEN - ( - 18 ) ELSE - COUNT ( * ) END * 86 THEN NULL WHEN + 6 THEN - 50 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7251
SELECT ALL - 86 * 57 + 37 + MAX( DISTINCT + + 3 ) * 14 * + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL - 86 * 57 + 37 + MAX ( DISTINCT + + 3 ) * 14 * + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 68 + - 62
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7253
SELECT COUNT( * ) + ( - CAST( NULL AS SIGNED ) ) - 4 - - 77 * + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT COUNT ( * ) + ( - CAST ( NULL AS INTEGER ) ) - 4 - - 77 * + 15 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT COUNT( - + 50 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7254
SELECT COUNT ( - + 50 ) AS col2
----
1

query I rowsort
SELECT 58 * - - ( - 96 ) + 40 AS col1
----
-5528

query I rowsort
SELECT ALL 62 * + 27
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT MAX( DISTINCT - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-7257
SELECT MAX ( DISTINCT - 32 )
----
-32

query I rowsort
SELECT 27 * 13 + - 57 + - 26 + 86 + + - NULLIF ( - - 43, - 83 )
----
311

query II rowsort
SELECT ALL - 40 AS col1, - 78 + + + 38 AS col0
----
-40
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7260
SELECT - - 86 DIV - + 89 + CAST( COALESCE ( - 51, + 72 * + COUNT( * ) + + - 98, + 36 + + NULLIF ( + CASE - COUNT( * ) WHEN 29 DIV 51 THEN NULL ELSE 3 * 41 END, 11 * ( - 32 ) - - 27 ) ) AS SIGNED ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-7260
SELECT - - 86 / - + 89 + CAST ( COALESCE ( - 51, + 72 * + COUNT ( * ) + + - 98, + 36 + + NULLIF ( + CASE - COUNT ( * ) WHEN 29 / 51 THEN NULL ELSE 3 * 41 END, 11 * ( - 32 ) - - 27 ) ) AS INTEGER ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT DISTINCT CASE 90 WHEN - 28 THEN NULL WHEN + - 23 + - 11 * + COUNT( * ) THEN NULL WHEN + COUNT( * ) THEN - - 46 ELSE + COUNT( * ) END - - 42 * - 47
----
-1973

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT CASE 90 WHEN - 28 THEN NULL WHEN + - 23 + - 11 * + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) THEN - - 46 ELSE + COUNT ( * ) END - - 42 * - 47
----
-1973

query I rowsort
SELECT ALL 1 - + 48
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-7263
SELECT + 55 AS col1, SUM( DISTINCT 50 ) + 61
----
55
111

skipif mysql # not compatible
query II rowsort label-7263
SELECT + 55 AS col1, SUM ( DISTINCT 50 ) + 61
----
55
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT DISTINCT + - 76 * + MAX( + 99 ) AS col1
----
-7524

skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT + - 76 * + MAX ( + 99 ) AS col1
----
-7524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7265
SELECT 22 / - CAST( NULL AS SIGNED ) + MAX( DISTINCT 24 ) + + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7265
SELECT 22 / - CAST ( NULL AS INTEGER ) + MAX ( DISTINCT 24 ) + + - 50
----
NULL

query I rowsort
SELECT DISTINCT - - 33 AS col2
----
33

query I rowsort
SELECT DISTINCT - + 86 col1
----
-86

query I rowsort
SELECT + 25 + - + 26 * + - 93
----
2443

query I rowsort
SELECT 32 + 55
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7270
SELECT CAST( - - 90 AS SIGNED ) * + COUNT( * ) * + COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-7270
SELECT CAST ( - - 90 AS INTEGER ) * + COUNT ( * ) * + COUNT ( * ) AS col2
----
90

query I rowsort
SELECT ( + 74 ) * + + 16 * 81 + 24 - 43 AS col0
----
95885

onlyif mysql # aggregate syntax: 
query II rowsort label-7272
SELECT + 48 + - 60 + - - 61 * - COUNT( 32 ), ( 82 ) * - 94 + - 97 AS col1
----
-73
-7805

skipif mysql # not compatible
query II rowsort label-7272
SELECT + 48 + - 60 + - - 61 * - COUNT ( 32 ), ( 82 ) * - 94 + - 97 AS col1
----
-73
-7805

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT + 5 * 71 + - + 70 * + COUNT( * )
----
285

skipif mysql # not compatible
query I rowsort label-7273
SELECT + 5 * 71 + - + 70 * + COUNT ( * )
----
285

query I rowsort
SELECT DISTINCT 52 * + + 33 AS col2
----
1716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7275
SELECT + 64 + NULLIF ( 43, SUM( - - 1 ) + - 54 ) + + 86 + - 26 DIV 4 AS col2
----
187

skipif mysql # not compatible
query I rowsort label-7275
SELECT + 64 + NULLIF ( 43, SUM ( - - 1 ) + - 54 ) + + 86 + - 26 / 4 AS col2
----
187

query I rowsort
SELECT DISTINCT 87 + + + 0 AS col1
----
87

query I rowsort
SELECT ALL COALESCE ( + + 70, + 99 * NULLIF ( + 76, + - 58 ) * - 62, + 3 * - NULLIF ( + 16, 95 ) ) + ( + 78 ) AS col1
----
148

query II rowsort
SELECT - COALESCE ( + 0, + 1, 82 ) AS col1, 48 * 92 AS col2
----
0
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ALL COUNT( * ) + - + 66
----
-65

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL COUNT ( * ) + - + 66
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT + 28 * - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-7280
SELECT + 28 * - - COUNT ( * )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7281
SELECT - 34 + - - CAST( NULL AS SIGNED ) - 77 + 54 / + 13 * + COUNT( * ) col2, 65 * - 46
----
NULL
-2990

skipif mysql # not compatible
query II rowsort label-7281
SELECT - 34 + - - CAST ( NULL AS INTEGER ) - 77 + 54 / + 13 * + COUNT ( * ) col2, 65 * - 46
----
NULL
-2990

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7282
SELECT ALL SUM( + 60 ) AS col0, 47 DIV - 9 - + 78 - + 72 DIV 19
----
60
-86

skipif mysql # not compatible
query II rowsort label-7282
SELECT ALL SUM ( + 60 ) AS col0, 47 / - 9 - + 78 - + 72 / 19
----
60
-86

query I rowsort
SELECT - 10 + 62 + 89 AS col1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT ALL - 52 + + COUNT( * ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL - 52 + + COUNT ( * ) AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7285
SELECT DISTINCT + ( - 70 ) DIV - 73 * + + MIN( - 70 ) * - MAX( DISTINCT - 5 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7285
SELECT DISTINCT + ( - 70 ) / - 73 * + + MIN ( - 70 ) * - MAX ( DISTINCT - 5 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7286
SELECT DISTINCT COUNT( * ) AS col2, + 98 AS col1
----
1
98

skipif mysql # not compatible
query II rowsort label-7286
SELECT DISTINCT COUNT ( * ) AS col2, + 98 AS col1
----
1
98

query I rowsort
SELECT DISTINCT 45 + - 62
----
-17

query I rowsort
SELECT - 74 * + CASE + - 71 WHEN - 74 THEN NULL WHEN + + 47 THEN NULL ELSE - 37 END * - 0 AS col1
----
0

query I rowsort
SELECT ALL - 65 * + COALESCE ( - 2, - 72 - 45 ) - - - 89 col0
----
41

query I rowsort
SELECT 90 * 9 - + 64 AS col1
----
746

query I rowsort
SELECT NULLIF ( - + 16, 3 )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7292
SELECT DISTINCT CASE + 77 WHEN + 10 THEN + 46 WHEN CAST( NULL AS SIGNED ) THEN - + 50 / - 8 ELSE NULL END * + 19 + 23 + 8 - + CASE 30 WHEN 78 - 84 THEN ( NULLIF ( - 40, - 93 * 37 ) ) + 35 WHEN 83 THEN NULL ELSE - 8 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT CASE + 77 WHEN + 10 THEN + 46 WHEN CAST ( NULL AS INTEGER ) THEN - + 50 / - 8 ELSE NULL END * + 19 + 23 + 8 - + CASE 30 WHEN 78 - 84 THEN ( NULLIF ( - 40, - 93 * 37 ) ) + 35 WHEN 83 THEN NULL ELSE - 8 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT + - MAX( - + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-7293
SELECT + - MAX ( - + 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT - - 31 * - COUNT( * ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-7294
SELECT - - 31 * - COUNT ( * ) col2
----
-31

query II rowsort
SELECT DISTINCT + - 34 AS col0, + 33 * 21 - + 37
----
-34
656

query I rowsort
SELECT DISTINCT - 88 * + 64 + ( + 94 ) + - 90 - - - 46 * - - 34 - 24 AS col2
----
-7216

query II rowsort
SELECT - 94, - 34 AS col1
----
-94
-34

query II rowsort
SELECT ALL + 65 AS col2, 27 AS col0
----
65
27

query II rowsort
SELECT ALL + + 57 AS col2, 89
----
57
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT ALL COUNT( * ) * + 86 * - 34
----
-2924

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL COUNT ( * ) * + 86 * - 34
----
-2924

query I rowsort
SELECT ALL + - ( + 67 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-7302
SELECT + COUNT( * ), + 69 AS col2
----
1
69

skipif mysql # not compatible
query II rowsort label-7302
SELECT + COUNT ( * ), + 69 AS col2
----
1
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7303
SELECT + 23 DIV + 32, - COUNT( * ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-7303
SELECT + 23 / + 32, - COUNT ( * ) AS col2
----
0
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7304
SELECT + 18 AS col0, + 62 * + + COUNT( * ) AS col0
----
18
62

skipif mysql # not compatible
query II rowsort label-7304
SELECT + 18 AS col0, + 62 * + + COUNT ( * ) AS col0
----
18
62

query I rowsort
SELECT - 3 * + 89 - 72 * 85 * + + 49 AS col1
----
-300147

query I rowsort
SELECT ALL - 73 * 87 + 30
----
-6321

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7307
SELECT + - ( + NULLIF ( + CAST( NULL AS SIGNED ), + - 17 / ( - 83 ) / 64 + - 11 ) ) * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT + - ( + NULLIF ( + CAST ( NULL AS INTEGER ), + - 17 / ( - 83 ) / 64 + - 11 ) ) * 66
----
NULL

query I rowsort
SELECT ALL + 33 * - 79 AS col0
----
-2607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7309
SELECT DISTINCT - 30 * - + 65 * CAST( NULL AS SIGNED ) + + - 23 - + COUNT( ALL + 51 ) / - + 60 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT - 30 * - + 65 * CAST ( NULL AS INTEGER ) + + - 23 - + COUNT ( ALL + 51 ) / - + 60 col1
----
NULL

query I rowsort
SELECT ALL + 29 * + 23
----
667

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT DISTINCT 11 + - + 95 - + NULLIF ( + 65, + - AVG ( - - 74 ) * - + 22 ) * 58 * - MAX( DISTINCT 72 )
----
271356

skipif mysql # not compatible
query I rowsort label-7311
SELECT DISTINCT 11 + - + 95 - + NULLIF ( + 65, + - AVG ( - - 74 ) * - + 22 ) * 58 * - MAX ( DISTINCT 72 )
----
271356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7312
SELECT ALL CAST( - SUM( + + 43 ) AS SIGNED ) + - - 38
----
-5

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL CAST ( - SUM ( + + 43 ) AS INTEGER ) + - - 38
----
-5

query I rowsort
SELECT + 40 * - + 69 AS col1
----
-2760

onlyif mysql # aggregate syntax: 
query II rowsort label-7314
SELECT + 28 + 91 + + COUNT( * ) AS col0, 46 AS col2
----
120
46

skipif mysql # not compatible
query II rowsort label-7314
SELECT + 28 + 91 + + COUNT ( * ) AS col0, 46 AS col2
----
120
46

query I rowsort
SELECT + 10 * + - 26 * 18 col0
----
-4680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7316
SELECT DISTINCT NULLIF ( + 55, SUM( ALL - 71 ) * - 44 ) * - 82 + - CAST( NULL AS SIGNED ) + + 86 / + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT NULLIF ( + 55, SUM ( ALL - 71 ) * - 44 ) * - 82 + - CAST ( NULL AS INTEGER ) + + 86 / + 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT ALL 92 + + 86 * - + CASE + + 26 WHEN 38 THEN NULL WHEN + COUNT( * ) / - + 53 THEN - 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL 92 + + 86 * - + CASE + + 26 WHEN 38 THEN NULL WHEN + COUNT ( * ) / - + 53 THEN - 47 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7318
SELECT ALL 69 * + + 36 DIV COUNT( * ) * - 85 AS col1
----
-211140

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL 69 * + + 36 / COUNT ( * ) * - 85 AS col1
----
-211140

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT + 74 + + SUM( ( + + 42 ) ) + - - COUNT( * ) * 23
----
139

skipif mysql # not compatible
query I rowsort label-7319
SELECT + 74 + + SUM ( ( + + 42 ) ) + - - COUNT ( * ) * 23
----
139

query I rowsort
SELECT ALL + 85 * 69 * 86
----
504390

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7321
SELECT DISTINCT CASE 75 WHEN - SUM( + ( 82 ) ) THEN 82 / 41 * - 12 * CAST( - 63 AS DECIMAL ) * - - 61 + COUNT( * ) + + 63 * - 5 + + 86 END * + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT DISTINCT CASE 75 WHEN - SUM ( + ( 82 ) ) THEN 82 / 41 * - 12 * CAST ( - 63 AS REAL ) * - - 61 + COUNT ( * ) + + 63 * - 5 + + 86 END * + 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT ALL NULLIF ( - 79, - MIN( ALL - 54 ) ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL NULLIF ( - 79, - MIN ( ALL - 54 ) ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT - 20 - + 24 + - 85 + - 14 - - 91 + ( - 3 ) * COUNT( * ) * + 21 AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-7323
SELECT - 20 - + 24 + - 85 + - 14 - - 91 + ( - 3 ) * COUNT ( * ) * + 21 AS col0
----
-115

query I rowsort
SELECT DISTINCT + COALESCE ( - + 10, 40 + + - 92 )
----
-10

query II rowsort
SELECT + + 61 * + - 16 * 26 AS col2, + 15
----
-25376
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7326
SELECT ALL + - MIN( ALL - CAST( NULL AS SIGNED ) ) / + - 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL + - MIN ( ALL - CAST ( NULL AS INTEGER ) ) / + - 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT + - COUNT( ALL - 17 ) * - - 75 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-7327
SELECT + - COUNT ( ALL - 17 ) * - - 75 AS col0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7328
SELECT DISTINCT + + 1 * 66 DIV + + 86 AS col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-7328
SELECT DISTINCT + + 1 * 66 / + + 86 AS col2, COUNT ( * )
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7329
SELECT - 80 * + CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) - + 35
----
-115

skipif mysql # not compatible
query I rowsort label-7329
SELECT - 80 * + CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) - + 35
----
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-7330
SELECT ALL 50 DIV + + 3
----
16

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL 50 / + + 3
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7331
SELECT ALL + 25 * - COUNT( * ), 55 + 23 AS col2
----
-25
78

skipif mysql # not compatible
query II rowsort label-7331
SELECT ALL + 25 * - COUNT ( * ), 55 + 23 AS col2
----
-25
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT - MAX( DISTINCT + + 78 ) * MAX( 25 ) * + 38 * + + COUNT( * ) - - + COUNT( * )
----
-74099

skipif mysql # not compatible
query I rowsort label-7332
SELECT - MAX ( DISTINCT + + 78 ) * MAX ( 25 ) * + 38 * + + COUNT ( * ) - - + COUNT ( * )
----
-74099

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT + - 55 * - 14 + - + 97 + + COALESCE ( + COUNT( * ), + 9 )
----
674

skipif mysql # not compatible
query I rowsort label-7333
SELECT + - 55 * - 14 + - + 97 + + COALESCE ( + COUNT ( * ), + 9 )
----
674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7334
SELECT + 47 + + 5 + + CAST( - 61 AS SIGNED ) + - MAX( DISTINCT + 41 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-7334
SELECT + 47 + + 5 + + CAST ( - 61 AS INTEGER ) + - MAX ( DISTINCT + 41 ) AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7335
SELECT ALL + - ( + 82 ) * + + 41 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL + - ( + 82 ) * + + 41 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT + 30 * + - 84 + + COUNT( + 52 ) AS col0
----
-2519

skipif mysql # not compatible
query I rowsort label-7336
SELECT + 30 * + - 84 + + COUNT ( + 52 ) AS col0
----
-2519

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7337
SELECT - 83 + - 4 * CAST( 32 AS SIGNED ) - + SUM( - CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7337
SELECT - 83 + - 4 * CAST ( 32 AS INTEGER ) - + SUM ( - CAST ( NULL AS REAL ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7338
SELECT ALL + + 4 * + - CAST( NULL AS SIGNED ) * - 57 * + + AVG ( ALL 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL + + 4 * + - CAST ( NULL AS INTEGER ) * - 57 * + + AVG ( ALL 91 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7339
SELECT DISTINCT - SUM( DISTINCT - CAST( + 67 AS SIGNED ) )
----
67

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT - SUM ( DISTINCT - CAST ( + 67 AS INTEGER ) )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7340
SELECT ALL CAST( NULL AS SIGNED ) * - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL CAST ( NULL AS INTEGER ) * - - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT COUNT( * ) + 71 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-7341
SELECT COUNT ( * ) + 71 AS col2
----
72

query I rowsort
SELECT 92 * + 19 * + 83 AS col1
----
145084

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT COALESCE ( 40, - NULLIF ( - - COUNT( * ), + + 87 ) * COUNT( * ) * + COUNT( * ) - + 28 * + + 98 * - - 87 - + - 3 ) + 30 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-7343
SELECT COALESCE ( 40, - NULLIF ( - - COUNT ( * ), + + 87 ) * COUNT ( * ) * + COUNT ( * ) - + 28 * + + 98 * - - 87 - + - 3 ) + 30 AS col1
----
70

query I rowsort
SELECT 37 + + - 12
----
25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7345
SELECT ALL + CAST( + 73 AS SIGNED ) * + ( + + 16 ) + - + 24 DIV 1 + - - 97
----
1241

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL + CAST ( + 73 AS INTEGER ) * + ( + + 16 ) + - + 24 / 1 + - - 97
----
1241

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT COUNT( * ) * - 80 * - 86 * + CASE 66 WHEN + + MIN( ALL 88 ) THEN - - NULLIF ( - 23, + 66 + 67 ) * 61 * - 2 + COALESCE ( + NULLIF ( 5, COUNT( * ) * - ( - 40 ) ) + + 23, - 4 + + COUNT( * ) * + 51 ) + 69 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT COUNT ( * ) * - 80 * - 86 * + CASE 66 WHEN + + MIN ( ALL 88 ) THEN - - NULLIF ( - 23, + 66 + 67 ) * 61 * - 2 + COALESCE ( + NULLIF ( 5, COUNT ( * ) * - ( - 40 ) ) + + 23, - 4 + + COUNT ( * ) * + 51 ) + 69 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7347
SELECT 27 + - 86 DIV - + 61 AS col0, - NULLIF ( + 72, 20 + 90 )
----
28
-72

skipif mysql # not compatible
query II rowsort label-7347
SELECT 27 + - 86 / - + 61 AS col0, - NULLIF ( + 72, 20 + 90 )
----
28
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT 36 + - MAX( DISTINCT COALESCE ( + 98, + - 99 ) ) + - - 59 * - 54 - + 72 AS col1
----
-3320

skipif mysql # not compatible
query I rowsort label-7348
SELECT 36 + - MAX ( DISTINCT COALESCE ( + 98, + - 99 ) ) + - - 59 * - 54 - + 72 AS col1
----
-3320

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT 43 * - CASE - 40 WHEN - - MIN( ALL + 33 ) THEN NULL WHEN 43 - - + 50 * 91 THEN + 44 - - - 38 ELSE 69 * - 46 + 35 END col0
----
134977

skipif mysql # not compatible
query I rowsort label-7349
SELECT 43 * - CASE - 40 WHEN - - MIN ( ALL + 33 ) THEN NULL WHEN 43 - - + 50 * 91 THEN + 44 - - - 38 ELSE 69 * - 46 + 35 END col0
----
134977

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL + NULLIF ( + CASE + ( + 5 ) WHEN + + 91 THEN + AVG ( + 44 ) END, - - ( - 53 ) - - - 7 * - 50 ) * 84 * + 66 / NULLIF ( 50 / COUNT( DISTINCT 96 * + ( - 73 ) ), + 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + NULLIF ( + CASE + ( + 5 ) WHEN + + 91 THEN + AVG ( + 44 ) END, - - ( - 53 ) - - - 7 * - 50 ) * 84 * + 66 / NULLIF ( 50 / COUNT ( DISTINCT 96 * + ( - 73 ) ), + 29 )
----
NULL

query II rowsort
SELECT 66 AS col1, 18 AS col1
----
66
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT 55 * 31 * COUNT( * ) AS col2
----
1705

skipif mysql # not compatible
query I rowsort label-7352
SELECT 55 * 31 * COUNT ( * ) AS col2
----
1705

query I rowsort
SELECT DISTINCT ( 62 ) - - 13 + 80 * - - 32 * 26 AS col1
----
66635

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT ( - COUNT( DISTINCT 3 ) ) + - + 43 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-7354
SELECT ( - COUNT ( DISTINCT 3 ) ) + - + 43 AS col0
----
-44

query II rowsort
SELECT - 78 AS col0, - 45 col1
----
-78
-45

query II rowsort
SELECT - 73, 59 * 88 + + 19 + CASE + 50 WHEN ( - + 39 ) * 1 THEN + 58 END * 67 AS col0
----
-73
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7357
SELECT ALL COALESCE ( - 17, 16 ) * CAST( + - COUNT( * ) AS SIGNED ) * + + 5 - COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL COALESCE ( - 17, 16 ) * CAST ( + - COUNT ( * ) AS INTEGER ) * + + 5 - COUNT ( * ) AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7358
SELECT + 78 DIV - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-7358
SELECT + 78 / - COUNT ( * )
----
-78

query I rowsort
SELECT + NULLIF ( + 2, 7 + - 6 ) AS col1
----
2

query I rowsort
SELECT 83 * - 94 + + 2 + - - 26
----
-7774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7361
SELECT ALL 84 + + NULLIF ( - - COUNT( + + 83 ), + 65 + + ( + 9 ) + + ( - COUNT( * ) ) ) + + 72 * - 10 / - CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL 84 + + NULLIF ( - - COUNT ( + + 83 ), + 65 + + ( + 9 ) + + ( - COUNT ( * ) ) ) + + 72 * - 10 / - CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7362
SELECT + 80 AS col1, - 20 DIV - 5
----
80
4

skipif mysql # not compatible
query II rowsort label-7362
SELECT + 80 AS col1, - 20 / - 5
----
80
4

query II rowsort
SELECT + + 22 AS col2, + ( - + 93 ) AS col2
----
22
-93

query I rowsort
SELECT DISTINCT - - 31 + + 41 + - 56 * - 81
----
4608

query I rowsort
SELECT DISTINCT - 94 + 50
----
-44

query I rowsort
SELECT + 38 * + + 45
----
1710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7367
SELECT + COUNT( * ) DIV + - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7367
SELECT + COUNT ( * ) / + - 32 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7368
SELECT 76 DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7368
SELECT 76 / - 98 AS col0
----
0

query I rowsort
SELECT DISTINCT - 50 * + 90
----
-4500

query I rowsort
SELECT 37 * NULLIF ( 46, + - 65 + + 62 )
----
1702

query I rowsort
SELECT ALL - 57 - 68
----
-125

onlyif mysql # DIV for integer division: 
query I rowsort label-7372
SELECT 20 * ( + 67 ) DIV 88 DIV + 36 - 37 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-7372
SELECT 20 * ( + 67 ) / 88 / + 36 - 37 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL COUNT( DISTINCT - - 78 )
----
1

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL COUNT ( DISTINCT - - 78 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT DISTINCT COUNT( 75 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT COUNT ( 75 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7375
SELECT 52 * - + CAST( NULL AS SIGNED ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7375
SELECT 52 * - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7376
SELECT 62 - - 56 + + - 49 + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7376
SELECT 62 - - 56 + + - 49 + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL COUNT( ALL - 18 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL COUNT ( ALL - 18 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7378
SELECT ALL - 67 DIV + - 32, 99 AS col0
----
2
99

skipif mysql # not compatible
query II rowsort label-7378
SELECT ALL - 67 / + - 32, 99 AS col0
----
2
99

query I rowsort
SELECT 36 + + 70 - 69 col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT 42 * + CASE + 9 WHEN 70 THEN + + 21 * - COUNT( * ) + - + COUNT( * ) WHEN - 6 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7380
SELECT 42 * + CASE + 9 WHEN 70 THEN + + 21 * - COUNT ( * ) + - + COUNT ( * ) WHEN - 6 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7381
SELECT 45 + + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7381
SELECT 45 + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT ALL COUNT( + ( - + 91 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL COUNT ( + ( - + 91 ) ) AS col1
----
1

query I rowsort
SELECT ALL 79 * 77 AS col1
----
6083

onlyif mysql # DIV for integer division: 
query I rowsort label-7384
SELECT 61 + - - 8 DIV 18 * - 29 - + 49 + - 31 DIV + 60 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7384
SELECT 61 + - - 8 / 18 * - 29 - + 49 + - 31 / + 60 AS col0
----
12

query I rowsort
SELECT DISTINCT - + 67 * 5
----
-335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7386
SELECT 73 * COUNT( * ) * + 60 + - + 2 + + + 38 DIV - + COUNT( * )
----
4340

skipif mysql # not compatible
query I rowsort label-7386
SELECT 73 * COUNT ( * ) * + 60 + - + 2 + + + 38 / - + COUNT ( * )
----
4340

query I rowsort
SELECT ALL - 89 + - 55
----
-144

query I rowsort
SELECT - + ( 5 ) AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7389
SELECT - 2 DIV + 79 col2
----
0

skipif mysql # not compatible
query I rowsort label-7389
SELECT - 2 / + 79 col2
----
0

query I rowsort
SELECT - - 9 + 2
----
11

query I rowsort
SELECT - 15 * + 61 col1
----
-915

query I rowsort
SELECT + 89 + - 70 AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7393
SELECT DISTINCT + CAST( - ( MIN( ALL 20 ) ) AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT + CAST ( - ( MIN ( ALL 20 ) ) AS INTEGER )
----
-20

query I rowsort
SELECT ALL + 18 * - 66 + 84 + + 13
----
-1091

query I rowsort
SELECT ALL + - 28 * 45 + - 76
----
-1336

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT + + COUNT( * ) * + - 78 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-7396
SELECT + + COUNT ( * ) * + - 78 AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7397
SELECT ALL - 89 * + 77 + - + CAST( NULL AS SIGNED ) + CAST( + 27 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - 89 * + 77 + - + CAST ( NULL AS INTEGER ) + CAST ( + 27 AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL + 82 * - COUNT( * ) - - 10
----
-72

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL + 82 * - COUNT ( * ) - - 10
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT SUM( DISTINCT - 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7399
SELECT SUM ( DISTINCT - 49 ) AS col0
----
-49

query I rowsort
SELECT ALL + 24 * + - 47 + - + 9
----
-1137

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT + 1 - + + MIN( DISTINCT 85 )
----
-84

skipif mysql # not compatible
query I rowsort label-7401
SELECT + 1 - + + MIN ( DISTINCT 85 )
----
-84

query I rowsort
SELECT DISTINCT + - ( + + 80 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-7403
SELECT ALL 75 * - 29 col0, 26 + + 30 - 57 * - COUNT( * )
----
-2175
113

skipif mysql # not compatible
query II rowsort label-7403
SELECT ALL 75 * - 29 col0, 26 + + 30 - 57 * - COUNT ( * )
----
-2175
113

onlyif mysql # DIV for integer division: 
query I rowsort label-7404
SELECT + 14 DIV 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7404
SELECT + 14 / 15 AS col2
----
0

query I rowsort
SELECT - 19 + 26 AS col1
----
7

query I rowsort
SELECT + 23 + - + 85 * - + 33
----
2828

query II rowsort
SELECT + 82 * + ( - 9 ), - 70 * 26 AS col0
----
-738
-1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7408
SELECT 25 * - COUNT( * ) + + ( + - 92 ) + NULLIF ( + + 46, CASE 14 WHEN + 33 * - 33 THEN - COUNT( * ) * + MIN( ALL + ( - - 67 ) ) END / + MIN( ALL - 9 ) * CAST( 15 * CASE + 65 * - 97 WHEN 71 - + 51 THEN - 75 * + 39 ELSE + COUNT( * ) * + 82 END AS SIGNED ) - 22 ) - - 40 * 41 AS col2
----
1569

skipif mysql # not compatible
query I rowsort label-7408
SELECT 25 * - COUNT ( * ) + + ( + - 92 ) + NULLIF ( + + 46, CASE 14 WHEN + 33 * - 33 THEN - COUNT ( * ) * + MIN ( ALL + ( - - 67 ) ) END / + MIN ( ALL - 9 ) * CAST ( 15 * CASE + 65 * - 97 WHEN 71 - + 51 THEN - 75 * + 39 ELSE + COUNT ( * ) * + 82 END AS INTEGER ) - 22 ) - - 40 * 41 AS col2
----
1569

onlyif mysql # DIV for integer division: 
query I rowsort label-7409
SELECT DISTINCT - 52 DIV - 6
----
8

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT - 52 / - 6
----
8

query I rowsort
SELECT ALL + COALESCE ( - - 3, - 8 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7411
SELECT - CASE - 6 WHEN + 68 * - 50 * 8 THEN - - ( - 88 ) ELSE + 91 + COUNT( * ) END * - + 50 + + + COUNT( * ) - 21 + + - CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) / 51 * - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT - CASE - 6 WHEN + 68 * - 50 * 8 THEN - - ( - 88 ) ELSE + 91 + COUNT ( * ) END * - + 50 + + + COUNT ( * ) - 21 + + - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) / 51 * - 82 AS col2
----
NULL

query I rowsort
SELECT ALL - 35 * - - 29
----
-1015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7413
SELECT + 51 + - 4 DIV + SUM( CAST( - - 8 AS SIGNED ) ) col1
----
51

skipif mysql # not compatible
query I rowsort label-7413
SELECT + 51 + - 4 / + SUM ( CAST ( - - 8 AS INTEGER ) ) col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7414
SELECT ALL + 26 * 30 * + CAST( + 73 AS SIGNED ) AS col2
----
56940

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL + 26 * 30 * + CAST ( + 73 AS INTEGER ) AS col2
----
56940

onlyif mysql # DIV for integer division: 
query I rowsort label-7415
SELECT - 69 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-7415
SELECT - 69 / - 87
----
0

query I rowsort
SELECT - NULLIF ( - + 51, + 96 * 64 - - + 67 * 6 + 33 ) AS col0
----
51

query I rowsort
SELECT - 45 + 92 AS col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7418
SELECT - COUNT( * ) DIV + + MAX( - 42 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7418
SELECT - COUNT ( * ) / + + MAX ( - 42 ) AS col1
----
0

query I rowsort
SELECT ALL + 35 * - 17
----
-595

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT SUM( - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-7420
SELECT SUM ( - 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT - 98 + + + COUNT( * ) * - 43 * - COUNT( ( - 44 ) ) * - 19 - + COUNT( * )
----
-916

skipif mysql # not compatible
query I rowsort label-7421
SELECT - 98 + + + COUNT ( * ) * - 43 * - COUNT ( ( - 44 ) ) * - 19 - + COUNT ( * )
----
-916

onlyif mysql # aggregate syntax: 
query II rowsort label-7422
SELECT ALL - 63 * - + ( + COUNT( * ) ), - 88 AS col0
----
63
-88

skipif mysql # not compatible
query II rowsort label-7422
SELECT ALL - 63 * - + ( + COUNT ( * ) ), - 88 AS col0
----
63
-88

query II rowsort
SELECT - 73 col2, + NULLIF ( + 5, 62 / + + 95 ) + + - 33
----
-73
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7424
SELECT ALL - 36 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL - 36 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 63 * - 1 * + - 74 * + 47 AS col2
----
-219114

query I rowsort
SELECT - 79 * - 43 AS col2
----
3397

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7427
SELECT 23 AS col1, 18 DIV + 10, ( - - 62 ) + - 53 + + ( + + 60 ) - + 18 * + 42 DIV - 53 DIV CASE 36 WHEN 34 THEN - 7 WHEN - 63 + + COALESCE ( 35, - COUNT( * ), SUM( ALL CAST( NULL AS SIGNED ) ) - 75 ) THEN NULL END col1
----
23
1
NULL

skipif mysql # not compatible
query III rowsort label-7427
SELECT 23 AS col1, 18 / + 10, ( - - 62 ) + - 53 + + ( + + 60 ) - + 18 * + 42 / - 53 / CASE 36 WHEN 34 THEN - 7 WHEN - 63 + + COALESCE ( 35, - COUNT ( * ), SUM ( ALL CAST ( NULL AS INTEGER ) ) - 75 ) THEN NULL END col1
----
23
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7428
SELECT + 77 - + CASE 93 WHEN + 14 * 35 * + 48 + - 23 * - AVG ( - - 25 ) THEN NULL WHEN 17 + + + 62 * - - 93 * + - 63 - + ( 19 ) THEN NULL ELSE 53 DIV + 55 END AS col2
----
77

skipif mysql # not compatible
query I rowsort label-7428
SELECT + 77 - + CASE 93 WHEN + 14 * 35 * + 48 + - 23 * - AVG ( - - 25 ) THEN NULL WHEN 17 + + + 62 * - - 93 * + - 63 - + ( 19 ) THEN NULL ELSE 53 / + 55 END AS col2
----
77

query I rowsort
SELECT DISTINCT - 10 + 62
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7430
SELECT DISTINCT + + 52 + COUNT( * ) + + 38 - + 4 * COUNT( * ) / 5 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT + + 52 + COUNT ( * ) + + 38 - + 4 * COUNT ( * ) / 5 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7431
SELECT ALL - + CASE + 97 WHEN - 56 THEN NULL WHEN - 11 THEN + 63 + 8 WHEN + + 95 * + + 87 * COALESCE ( - 31, COUNT( * ) / + + 3 ) THEN + 94 END + + NULLIF ( - COUNT( 38 ), CAST( 42 AS SIGNED ) ) + + MIN( 94 + + 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL - + CASE + 97 WHEN - 56 THEN NULL WHEN - 11 THEN + 63 + 8 WHEN + + 95 * + + 87 * COALESCE ( - 31, COUNT ( * ) / + + 3 ) THEN + 94 END + + NULLIF ( - COUNT ( 38 ), CAST ( 42 AS INTEGER ) ) + + MIN ( 94 + + 86 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7432
SELECT ALL + CASE + 85 WHEN 20 THEN NULL ELSE 92 * ( + - COUNT( * ) ) * + NULLIF ( 45, + 26 ) + - 35 END DIV - 99 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL + CASE + 85 WHEN 20 THEN NULL ELSE 92 * ( + - COUNT ( * ) ) * + NULLIF ( 45, + 26 ) + - 35 END / - 99 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT - - MIN( DISTINCT 64 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-7433
SELECT - - MIN ( DISTINCT 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT - ( + + 21 ) + + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-7434
SELECT - ( + + 21 ) + + COUNT ( * )
----
-20

query I rowsort
SELECT DISTINCT - - 60 + + + 12 * - + 17 * 24
----
-4836

onlyif mysql # DIV for integer division: 
query I rowsort label-7436
SELECT ALL + 16 + - 1 DIV - 25 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL + 16 + - 1 / - 25 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT + ( - + ( + - SUM( 19 ) ) ) / + 35 - + - 58 + + 33 * 44 / 87 * + + COUNT( * ) + 80 + + + 40 + - - CASE + NULLIF ( + - 90, 25 + 66 / + 80 ) WHEN - ( - 46 ) / 84 + - 3 THEN + CASE - 2 WHEN - 84 / 44 THEN - 15 ELSE NULL END END + 43 * + 59 * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT + ( - + ( + - SUM ( 19 ) ) ) / + 35 - + - 58 + + 33 * 44 / 87 * + + COUNT ( * ) + 80 + + + 40 + - - CASE + NULLIF ( + - 90, 25 + 66 / + 80 ) WHEN - ( - 46 ) / 84 + - 3 THEN + CASE - 2 WHEN - 84 / 44 THEN - 15 ELSE NULL END END + 43 * + 59 * - 30
----
NULL

query II rowsort
SELECT 21 col0, + 44
----
21
44

query I rowsort
SELECT + 90 * - 42
----
-3780

query II rowsort
SELECT + + ( 55 ) + - 48 AS col0, - 90
----
7
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT + SUM( + + 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7441
SELECT + SUM ( + + 53 ) AS col2
----
53

query I rowsort
SELECT ALL + ( - 56 ) col1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7443
SELECT DISTINCT + MIN( - CAST( - 36 AS SIGNED ) )
----
36

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT + MIN ( - CAST ( - 36 AS INTEGER ) )
----
36

query II rowsort
SELECT ALL 70 * + 92 col2, 26 AS col1
----
6440
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT ( MAX( DISTINCT 74 ) ) col0
----
74

skipif mysql # not compatible
query I rowsort label-7445
SELECT ( MAX ( DISTINCT 74 ) ) col0
----
74

query I rowsort
SELECT + ( - + 26 ) AS col2
----
-26

query I rowsort
SELECT - 22 * - 99 AS col2
----
2178

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT ALL COALESCE ( + COUNT( * ), + - 72 ) * - - 22 * + - 38 * - 53 * - 40 AS col1
----
-1772320

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL COALESCE ( + COUNT ( * ), + - 72 ) * - - 22 * + - 38 * - 53 * - 40 AS col1
----
-1772320

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT + NULLIF ( + COUNT( * ), 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7449
SELECT + NULLIF ( + COUNT ( * ), 73 ) AS col1
----
1

query I rowsort
SELECT + 92 * 23 * + + 71
----
150236

query I rowsort
SELECT + CASE - 2 WHEN + 61 + - 55 THEN 63 / - + 66 + - - 32 + + 64 / - 28 * + 74 + 26 * - 43 * + - 61 * 57 * 80 + + 65 END * - 85
----
NULL

query I rowsort
SELECT + 94 * + 92 - - 7 * + 40 col2
----
8928

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT ALL + 18 * COUNT( * ) + - 33 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL + 18 * COUNT ( * ) + - 33 AS col0
----
-15

query I rowsort
SELECT ALL NULLIF ( + 72, + 90 ) AS col2
----
72

query I rowsort
SELECT ALL 94 * - + 48 * + 59 + + + 53 + - + 6 AS col2
----
-266161

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT ALL 19 * - 98 + + NULLIF ( 21, SUM( DISTINCT + + 76 ) ) col2
----
-1841

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL 19 * - 98 + + NULLIF ( 21, SUM ( DISTINCT + + 76 ) ) col2
----
-1841

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT SUM( DISTINCT + NULLIF ( 58, + + 18 + - + 36 ) )
----
58

skipif mysql # not compatible
query I rowsort label-7457
SELECT SUM ( DISTINCT + NULLIF ( 58, + + 18 + - + 36 ) )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT DISTINCT + CASE + + COUNT( * ) WHEN + + 15 + + 87 + - 61 * + 34 THEN NULL ELSE + 70 + + 84 END + + 12 AS col2
----
166

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT + CASE + + COUNT ( * ) WHEN + + 15 + + 87 + - 61 * + 34 THEN NULL ELSE + 70 + + 84 END + + 12 AS col2
----
166

query II rowsort
SELECT 32 * 58 + + 50 - - 73, 27 * 13 AS col2
----
1979
351

query II rowsort
SELECT - 28 col1, + 4
----
-28
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7461
SELECT ALL 20 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL 20 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 75 + + ( + + 18 ) + - 76 AS col1
----
-133

query I rowsort
SELECT 2 - + 44 + + + 11 + + 38 + - 10 * + 95
----
-943

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7464
SELECT - COALESCE ( - - 90, ( - MAX( - 21 ) ) DIV + 20 + - 42, - 90 + 67 + + + 44 )
----
-90

skipif mysql # not compatible
query I rowsort label-7464
SELECT - COALESCE ( - - 90, ( - MAX ( - 21 ) ) / + 20 + - 42, - 90 + 67 + + + 44 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT + COUNT( + 51 ) * SUM( + 92 ) * + + 35 + - 59
----
3161

skipif mysql # not compatible
query I rowsort label-7465
SELECT + COUNT ( + 51 ) * SUM ( + 92 ) * + + 35 + - 59
----
3161

query II rowsort
SELECT - - 95 AS col0, - 42 - - NULLIF ( + - ( + 25 ), - 82 ) AS col2
----
95
-67

query I rowsort
SELECT ALL + 6 + - 26 * - + 91 AS col0
----
2372

query I rowsort
SELECT - - CASE + 94 WHEN - ( - + 8 ) THEN - 58 ELSE - - 23 END col1
----
23

query I rowsort
SELECT ALL 8 - ( 73 )
----
-65

query I rowsort
SELECT 20 + + 90 * 70 AS col1
----
6320

query II rowsort
SELECT 51 * + 98 AS col1, 58 + - 83 - 39 * + - 7 AS col1
----
4998
248

query II rowsort
SELECT ALL 60, - 8 AS col0
----
60
-8

query II rowsort
SELECT - 71 AS col2, + 56
----
-71
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT - NULLIF ( + 82, + COUNT( * ) - 26 )
----
-82

skipif mysql # not compatible
query I rowsort label-7474
SELECT - NULLIF ( + 82, + COUNT ( * ) - 26 )
----
-82

query II rowsort
SELECT DISTINCT 27 AS col0, 90
----
27
90

query I rowsort
SELECT ALL + COALESCE ( 26, - 48 ) * - - ( - - 72 ) AS col2
----
1872

query II rowsort
SELECT ALL - - 82 - - 39 col1, - 63
----
121
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT DISTINCT + MAX( + - 49 ) * + COUNT( * ) * SUM( DISTINCT - 69 ) AS col1
----
3381

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT + MAX ( + - 49 ) * + COUNT ( * ) * SUM ( DISTINCT - 69 ) AS col1
----
3381

query II rowsort
SELECT ALL - - 80, - 20 * + 16 AS col1
----
80
-320

query I rowsort
SELECT 8 * 29 - + + 33
----
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7481
SELECT COALESCE ( 34, - 23 * + + CAST( + 50 AS SIGNED ) + + 25 * + COUNT( DISTINCT - - 28 ), + COUNT( * ) ) DIV - + COUNT( * ) + - + 74, 3 AS col2
----
-108
3

skipif mysql # not compatible
query II rowsort label-7481
SELECT COALESCE ( 34, - 23 * + + CAST ( + 50 AS INTEGER ) + + 25 * + COUNT ( DISTINCT - - 28 ), + COUNT ( * ) ) / - + COUNT ( * ) + - + 74, 3 AS col2
----
-108
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7482
SELECT DISTINCT + CAST( + COALESCE ( - CAST( NULL AS DECIMAL ), 11 * + + 65 * + + 42 + - - 18 ) AS SIGNED ) * - 39
----
-1171872

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT + CAST ( + COALESCE ( - CAST ( NULL AS REAL ), 11 * + + 65 * + + 42 + - - 18 ) AS INTEGER ) * - 39
----
-1171872

query I rowsort
SELECT 62 * + + NULLIF ( - ( 42 ), - 55 ) + + - 57 AS col0
----
-2661

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT + MAX( DISTINCT + + 40 ) * - + COUNT( * ) * + - 30 - + 86 - + 84 * + - 54 + - 96 + 64 col1
----
5618

skipif mysql # not compatible
query I rowsort label-7484
SELECT + MAX ( DISTINCT + + 40 ) * - + COUNT ( * ) * + - 30 - + 86 - + 84 * + - 54 + - 96 + 64 col1
----
5618

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ALL - NULLIF ( + COUNT( * ), 79 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL - NULLIF ( + COUNT ( * ), 79 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT 52 + + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-7486
SELECT 52 + + COUNT ( * ) AS col0
----
53

query I rowsort
SELECT ALL 56 + 44
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7488
SELECT NULLIF ( - CASE - - 42 WHEN + 76 THEN + CASE - + 58 WHEN + - 79 * + NULLIF ( - + CAST( NULL AS SIGNED ), + 62 * + 94 + - 66 + 1 - + - 4 - - + 27 / - 37 ) THEN + + 68 + - 21 ELSE 7 * 14 END END, COUNT( * ) ) * - 66 + - 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT NULLIF ( - CASE - - 42 WHEN + 76 THEN + CASE - + 58 WHEN + - 79 * + NULLIF ( - + CAST ( NULL AS INTEGER ), + 62 * + 94 + - 66 + 1 - + - 4 - - + 27 / - 37 ) THEN + + 68 + - 21 ELSE 7 * 14 END END, COUNT ( * ) ) * - 66 + - 12 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7489
SELECT CASE - 24 WHEN - MIN( + 20 ) THEN 98 + - - COUNT( * ) * COALESCE ( - NULLIF ( + 14, - 27 ), MIN( - - 90 ) + 62, + 88 * + 83 + 96 ) - - COUNT( * ) ELSE + 3 * NULLIF ( - 32, - COALESCE ( 74, + 3 ) - - 90 / 42 ) END + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7489
SELECT CASE - 24 WHEN - MIN ( + 20 ) THEN 98 + - - COUNT ( * ) * COALESCE ( - NULLIF ( + 14, - 27 ), MIN ( - - 90 ) + 62, + 88 * + 83 + 96 ) - - COUNT ( * ) ELSE + 3 * NULLIF ( - 32, - COALESCE ( 74, + 3 ) - - 90 / 42 ) END + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 51 * - - 54 * + ( + 58 ) col0
----
159732

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT DISTINCT 79 + + + NULLIF ( + SUM( ALL 83 ), - - NULLIF ( - 77, + 47 ) ) + ( - COUNT( * ) )
----
161

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT 79 + + + NULLIF ( + SUM ( ALL 83 ), - - NULLIF ( - 77, + 47 ) ) + ( - COUNT ( * ) )
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT DISTINCT ( - - CASE AVG ( DISTINCT - - 32 ) WHEN 95 THEN 10 * 23 + - + COUNT( * ) ELSE 66 END ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT ( - - CASE AVG ( DISTINCT - - 32 ) WHEN 95 THEN 10 * 23 + - + COUNT ( * ) ELSE 66 END ) AS col0
----
66

query I rowsort
SELECT DISTINCT - 8 - 68
----
-76

query I rowsort
SELECT ( + 95 ) * - - ( + + 10 ) * + + 94 + - 5 AS col2
----
89295

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT MIN( 84 ) * - 91 AS col2
----
-7644

skipif mysql # not compatible
query I rowsort label-7495
SELECT MIN ( 84 ) * - 91 AS col2
----
-7644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7496
SELECT 96 + COALESCE ( + + CAST( NULL AS SIGNED ), - 39 + + COUNT( * ) + - 70 * + + 14 * + ( + 80 ) * - 88 * - SUM( DISTINCT - 75 ) + - 41 + - + COALESCE ( - 43, 17, - - 75 ) + NULLIF ( - 97, - ( + 66 ) ), - ( 17 ) * - 52 - + 5 ) + - COUNT( * ) DIV + 91 * + 70
----
517439963

skipif mysql # not compatible
query I rowsort label-7496
SELECT 96 + COALESCE ( + + CAST ( NULL AS INTEGER ), - 39 + + COUNT ( * ) + - 70 * + + 14 * + ( + 80 ) * - 88 * - SUM ( DISTINCT - 75 ) + - 41 + - + COALESCE ( - 43, 17, - - 75 ) + NULLIF ( - 97, - ( + 66 ) ), - ( 17 ) * - 52 - + 5 ) + - COUNT ( * ) / + 91 * + 70
----
517439963

query I rowsort
SELECT ALL 41 * ( - 66 )
----
-2706

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT - SUM( DISTINCT 22 ) * 19 AS col2
----
-418

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT - SUM ( DISTINCT 22 ) * 19 AS col2
----
-418

onlyif mysql # aggregate syntax: 
query II rowsort label-7499
SELECT ALL - COUNT( DISTINCT 56 ) AS col0, 52 AS col0
----
-1
52

skipif mysql # not compatible
query II rowsort label-7499
SELECT ALL - COUNT ( DISTINCT 56 ) AS col0, 52 AS col0
----
-1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT DISTINCT - 31 * + CASE COALESCE ( - COUNT( * ), + 63 / 67 * - + COUNT( * ) - + + 77 ) WHEN 91 THEN - COUNT( DISTINCT 70 ) WHEN + 94 THEN 77 ELSE NULL END * - COALESCE ( + - 97, 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT DISTINCT - 31 * + CASE COALESCE ( - COUNT ( * ), + 63 / 67 * - + COUNT ( * ) - + + 77 ) WHEN 91 THEN - COUNT ( DISTINCT 70 ) WHEN + 94 THEN 77 ELSE NULL END * - COALESCE ( + - 97, 58 )
----
NULL

query II rowsort
SELECT + 47 + - 87, 77 * + 99 AS col2
----
-40
7623

query I rowsort
SELECT DISTINCT + ( + + 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT ALL - MIN( DISTINCT + 54 ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL - MIN ( DISTINCT + 54 ) col1
----
-54

query I rowsort
SELECT 62 + - ( + 77 ) + - 60
----
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-7505
SELECT DISTINCT - 97 AS col2, ( - 37 ) DIV - 20
----
-97
1

skipif mysql # not compatible
query II rowsort label-7505
SELECT DISTINCT - 97 AS col2, ( - 37 ) / - 20
----
-97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7506
SELECT 71 + NULLIF ( + SUM( 58 ), - 91 + - + 76 ) AS col0, + 31 AS col1
----
129
31

skipif mysql # not compatible
query II rowsort label-7506
SELECT 71 + NULLIF ( + SUM ( 58 ), - 91 + - + 76 ) AS col0, + 31 AS col1
----
129
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL + 80 * - MAX( 51 ) + COUNT( * ) * COUNT( * )
----
-4079

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL + 80 * - MAX ( 51 ) + COUNT ( * ) * COUNT ( * )
----
-4079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7508
SELECT DISTINCT + CASE 20 WHEN 81 * - + 83 + 61 + + 1 * + - ( COALESCE ( + 86, + 20 ) ) + + - 89 * + 9 * + - 45 THEN - COUNT( * ) + 58 + 79 * + 56 + - CAST( NULL AS SIGNED ) ELSE NULL END * - 24 + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT + CASE 20 WHEN 81 * - + 83 + 61 + + 1 * + - ( COALESCE ( + 86, + 20 ) ) + + - 89 * + 9 * + - 45 THEN - COUNT ( * ) + 58 + 79 * + 56 + - CAST ( NULL AS INTEGER ) ELSE NULL END * - 24 + - 40
----
NULL

query I rowsort
SELECT ALL 43 * 96 * - 84 + + COALESCE ( 2, - 97 ) + - - 94
----
-346656

query I rowsort
SELECT ALL + 64 * 51 + + 12
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT DISTINCT 17 * 29 + + + COUNT( * ) * - 7 AS col1
----
486

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT 17 * 29 + + + COUNT ( * ) * - 7 AS col1
----
486

query II rowsort
SELECT ALL + 45, 34 * + 98 AS col1
----
45
3332

query II rowsort
SELECT + 13 AS col2, 15 * - + 40
----
13
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT ALL 80 * - + NULLIF ( - 75, + 83 + + 62 * - 12 ) * + - 15 * + SUM( + 47 ) + 48 + 96 * - 86 AS col1
----
-4238208

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL 80 * - + NULLIF ( - 75, + 83 + + 62 * - 12 ) * + - 15 * + SUM ( + 47 ) + 48 + 96 * - 86 AS col1
----
-4238208

onlyif mysql # aggregate syntax: 
query II rowsort label-7515
SELECT - 50 - 28 * + 65 + + 56 + - 96 + COUNT( * ) AS col2, 16 AS col1
----
-1909
16

skipif mysql # not compatible
query II rowsort label-7515
SELECT - 50 - 28 * + 65 + + 56 + - 96 + COUNT ( * ) AS col2, 16 AS col1
----
-1909
16

onlyif mysql # DIV for integer division: 
query II rowsort label-7516
SELECT - 56 * 40 DIV + 71 AS col1, + 21
----
-31
21

skipif mysql # not compatible
query II rowsort label-7516
SELECT - 56 * 40 / + 71 AS col1, + 21
----
-31
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT - COUNT( * ) * - 9 * - 74
----
-666

skipif mysql # not compatible
query I rowsort label-7517
SELECT - COUNT ( * ) * - 9 * - 74
----
-666

query I rowsort
SELECT ALL + ( + + 16 ) AS col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7519
SELECT + 9 DIV 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7519
SELECT + 9 / 28 AS col1
----
0

query I rowsort
SELECT - 20 * 70 * + 9
----
-12600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7521
SELECT DISTINCT - 60 DIV - COALESCE ( MIN( - 48 ), - + CAST( + - 77 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT - 60 / - COALESCE ( MIN ( - 48 ), - + CAST ( + - 77 AS INTEGER ) ) AS col1
----
-1

query II rowsort
SELECT DISTINCT + + 19, + 54 AS col1
----
19
54

query I rowsort
SELECT - - ( - 54 ) - + 79
----
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT ALL - 79 - - 45 + COUNT( * ) + + + CAST( NULL AS SIGNED ) + + MIN( DISTINCT 65 ) * - COUNT( * ) * - 94 + - - CAST( NULL AS SIGNED ) + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL - 79 - - 45 + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT 65 ) * - COUNT ( * ) * - 94 + - - CAST ( NULL AS INTEGER ) + + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT - COALESCE ( - 98, + COALESCE ( MIN( DISTINCT - 44 ), + 53, - COUNT( * ) * 75 ) )
----
98

skipif mysql # not compatible
query I rowsort label-7525
SELECT - COALESCE ( - 98, + COALESCE ( MIN ( DISTINCT - 44 ), + 53, - COUNT ( * ) * 75 ) )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7526
SELECT - - 23 + + AVG ( + 6 ) - 41 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT - - 23 + + AVG ( + 6 ) - 41 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT + COUNT( * ) - 36 * 87
----
-3131

skipif mysql # not compatible
query I rowsort label-7527
SELECT + COUNT ( * ) - 36 * 87
----
-3131

query I rowsort
SELECT - 82 * 69 + 25 AS col2
----
-5633

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT - SUM( DISTINCT - - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-7529
SELECT - SUM ( DISTINCT - - 72 )
----
-72

query I rowsort
SELECT DISTINCT ( - 72 ) AS col1
----
-72

query II rowsort
SELECT - - 14, 84 AS col2
----
14
84

query I rowsort
SELECT + + 8 + + 69 AS col0
----
77

query I rowsort
SELECT ALL - COALESCE ( 95, + ( - - 40 ) )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7534
SELECT + - 33 + + CASE WHEN 38 IS NOT NULL THEN - - COUNT( * ) / + ( + CAST( NULL AS SIGNED ) ) * - ( + 91 ) + - MAX( DISTINCT 40 ) + + + 93 / + + NULLIF ( 5, - 66 ) * - 90 * + 78 + + 56 - + 73 END + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT + - 33 + + CASE WHEN 38 IS NOT NULL THEN - - COUNT ( * ) / + ( + CAST ( NULL AS INTEGER ) ) * - ( + 91 ) + - MAX ( DISTINCT 40 ) + + + 93 / + + NULLIF ( 5, - 66 ) * - 90 * + 78 + + 56 - + 73 END + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT ALL - ( 91 ) * 71 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL - ( 91 ) * 71 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7536
SELECT + + 16 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-7536
SELECT + + 16 / + 78
----
0

query I rowsort
SELECT ALL NULLIF ( - 30, 75 * - 53 ) + 89
----
59

query I rowsort
SELECT ALL + 53 + + 39 AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7539
SELECT + 41 + 14 - + 46 + + CAST( + + COALESCE ( 64, - ( - 69 ) * 96 * - CAST( - 46 AS SIGNED ) - + + 45 ) AS SIGNED ) * MAX( DISTINCT - - COALESCE ( - - 50, - + 97, + + 63 ) )
----
3209

skipif mysql # not compatible
query I rowsort label-7539
SELECT + 41 + 14 - + 46 + + CAST ( + + COALESCE ( 64, - ( - 69 ) * 96 * - CAST ( - 46 AS INTEGER ) - + + 45 ) AS INTEGER ) * MAX ( DISTINCT - - COALESCE ( - - 50, - + 97, + + 63 ) )
----
3209

query I rowsort
SELECT + 99 * + 38
----
3762

query II rowsort
SELECT - ( - 46 ) AS col1, + ( + + 65 ) * + 26 AS col2
----
46
1690

query I rowsort
SELECT ALL 11 * - 73 AS col2
----
-803

onlyif mysql # DIV for integer division: 
query II rowsort label-7543
SELECT + 17 DIV - 41, - 31 + - 32 + + 62 AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-7543
SELECT + 17 / - 41, - 31 + - 32 + + 62 AS col1
----
0
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7544
SELECT + 23 DIV 39 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7544
SELECT + 23 / 39 * COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7545
SELECT - ( + COUNT( * ) ) + + - CAST( + 61 AS SIGNED ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-7545
SELECT - ( + COUNT ( * ) ) + + - CAST ( + 61 AS INTEGER ) col0
----
-62

query I rowsort
SELECT - CASE - + 78 WHEN + + 4 THEN + 69 WHEN - 11 THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT + ( - MAX( + - 31 ) )
----
31

skipif mysql # not compatible
query I rowsort label-7547
SELECT + ( - MAX ( + - 31 ) )
----
31

query I rowsort
SELECT ALL 51 * 2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL COUNT( * ) * 70 + + 33
----
103

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL COUNT ( * ) * 70 + + 33
----
103

query I rowsort
SELECT + 9 * + 95 AS col1
----
855

onlyif mysql # DIV for integer division: 
query I rowsort label-7551
SELECT 73 DIV 97 + - - 86
----
86

skipif mysql # not compatible
query I rowsort label-7551
SELECT 73 / 97 + - - 86
----
86

query I rowsort
SELECT DISTINCT 50 * 45 + + 42
----
2292

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT + NULLIF ( - COUNT( * ), - - 92 + 87 ) + + - 32 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-7553
SELECT + NULLIF ( - COUNT ( * ), - - 92 + 87 ) + + - 32 AS col1
----
-33

query I rowsort
SELECT - 44 * + 65 + + - 36
----
-2896

query I rowsort
SELECT DISTINCT + NULLIF ( + - 71, 82 - 94 + + 58 + - 60 * 23 * + + 42 * 49 * 57 / + - 25 )
----
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-7556
SELECT - 97 + 98 + + - 11 + - 24, 52 DIV 18 AS col2
----
-34
2

skipif mysql # not compatible
query II rowsort label-7556
SELECT - 97 + 98 + + - 11 + - 24, 52 / 18 AS col2
----
-34
2

query I rowsort
SELECT ALL + ( - 11 ) AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7558
SELECT ALL + COALESCE ( - 51, - - 75, 61 ) * - - 74 + - 72 * + CAST( 72 AS SIGNED ) - - SUM( 71 ) AS col0
----
-8887

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL + COALESCE ( - 51, - - 75, 61 ) * - - 74 + - 72 * + CAST ( 72 AS INTEGER ) - - SUM ( 71 ) AS col0
----
-8887

query I rowsort
SELECT - 0 * 11
----
0

query I rowsort
SELECT - + 64 + - 93
----
-157

query I rowsort
SELECT - - 89 * - + 29 AS col2
----
-2581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7562
SELECT - - MIN( 63 ) * + 55 / + - CAST( NULL AS SIGNED ) + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7562
SELECT - - MIN ( 63 ) * + 55 / + - CAST ( NULL AS INTEGER ) + 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7563
SELECT - 84 DIV - 64 - - 66
----
67

skipif mysql # not compatible
query I rowsort label-7563
SELECT - 84 / - 64 - - 66
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7564
SELECT ALL + - 63 DIV + - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL + - 63 / + - COUNT ( * )
----
63

query I rowsort
SELECT ( - + 19 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT ALL - COUNT( * ) + + 39 * - - 12 AS col0
----
467

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL - COUNT ( * ) + + 39 * - - 12 AS col0
----
467

query I rowsort
SELECT ALL 46 * + 86 AS col0
----
3956

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT - COUNT( * ) * 89 * + 96
----
-8544

skipif mysql # not compatible
query I rowsort label-7568
SELECT - COUNT ( * ) * 89 * + 96
----
-8544

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT DISTINCT - - 34 + + CASE - - 33 WHEN 39 * + + 44 * 12 + - 88 THEN COUNT( * ) ELSE NULL END * + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT - - 34 + + CASE - - 33 WHEN 39 * + + 44 * 12 + - 88 THEN COUNT ( * ) ELSE NULL END * + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT ALL - 82 + + + COALESCE ( 51, - - 45 * + - 53 + CAST( 12 AS SIGNED ) * - 86, 40 ) * - + 1 col0
----
-133

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL - 82 + + + COALESCE ( 51, - - 45 * + - 53 + CAST ( 12 AS INTEGER ) * - 86, 40 ) * - + 1 col0
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT - + MIN( 84 ) * 81
----
-6804

skipif mysql # not compatible
query I rowsort label-7571
SELECT - + MIN ( 84 ) * 81
----
-6804

query I rowsort
SELECT + 82 * 55 AS col0
----
4510

query I rowsort
SELECT ALL 5 + - 3
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7574
SELECT ALL CAST( 55 AS SIGNED ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL CAST ( 55 AS INTEGER ) AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7575
SELECT + CASE + 95 WHEN - COUNT( * ) + - 91 THEN 61 + - 91 WHEN + 0 * - 23 * + COALESCE ( + 8, 27 / - 10 ) * - + 5 THEN NULL WHEN - 83 * - COUNT( * ) * - 46 + COALESCE ( + 50, - + COALESCE ( ( 87 ), COUNT( * ) ) + 27, CASE + 18 WHEN + 7 * 28 THEN NULL ELSE ( NULLIF ( 77, - 57 ) ) / + 40 END ) * - 41 THEN 9 END + + COUNT( + 7 + - CAST( 13 + + 95 * + 94 AS SIGNED ) * - 4 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT + CASE + 95 WHEN - COUNT ( * ) + - 91 THEN 61 + - 91 WHEN + 0 * - 23 * + COALESCE ( + 8, 27 / - 10 ) * - + 5 THEN NULL WHEN - 83 * - COUNT ( * ) * - 46 + COALESCE ( + 50, - + COALESCE ( ( 87 ), COUNT ( * ) ) + 27, CASE + 18 WHEN + 7 * 28 THEN NULL ELSE ( NULLIF ( 77, - 57 ) ) / + 40 END ) * - 41 THEN 9 END + + COUNT ( + 7 + - CAST ( 13 + + 95 * + 94 AS INTEGER ) * - 4 ) AS col2
----
NULL

query I rowsort
SELECT + 46 - 76 * + 36 col2
----
-2690

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL 57 / - 8 * + CASE + 65 WHEN - + COUNT( * ) THEN 52 WHEN + 38 THEN NULL WHEN - ( 57 ) THEN + 97 - + 2 * CASE 75 WHEN - - 50 THEN NULL ELSE COUNT( * ) * + 2 / 42 END END * + 37 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL 57 / - 8 * + CASE + 65 WHEN - + COUNT ( * ) THEN 52 WHEN + 38 THEN NULL WHEN - ( 57 ) THEN + 97 - + 2 * CASE 75 WHEN - - 50 THEN NULL ELSE COUNT ( * ) * + 2 / 42 END END * + 37 col0
----
NULL

query I rowsort
SELECT ALL - 4 + - 20
----
-24

query I rowsort
SELECT CASE 55 WHEN - 14 + 23 THEN - 9 + + + 12 ELSE + + NULLIF ( - + 53, + 13 ) + + 77 + + 37 END * + + 69
----
4209

onlyif mysql # aggregate syntax: 
query II rowsort label-7580
SELECT + 11 AS col1, - MAX( + 16 ) * + 81 + + + 55 - 25
----
11
-1266

skipif mysql # not compatible
query II rowsort label-7580
SELECT + 11 AS col1, - MAX ( + 16 ) * + 81 + + + 55 - 25
----
11
-1266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7581
SELECT COUNT( 56 ) * + 9 DIV + 17 col0
----
0

skipif mysql # not compatible
query I rowsort label-7581
SELECT COUNT ( 56 ) * + 9 / + 17 col0
----
0

query I rowsort
SELECT DISTINCT 3 * - - 66
----
198

query I rowsort
SELECT - 19 * - - 97 AS col1
----
-1843

query I rowsort
SELECT 95 * + + 81 * 75
----
577125

query I rowsort
SELECT 82 - - 84 AS col1
----
166

onlyif mysql # DIV for integer division: 
query II rowsort label-7586
SELECT + 56, 98 DIV - ( - - ( - + 18 ) ) AS col0
----
56
5

skipif mysql # not compatible
query II rowsort label-7586
SELECT + 56, 98 / - ( - - ( - + 18 ) ) AS col0
----
56
5

query I rowsort
SELECT + 41 + - + 48 AS col0
----
-7

query I rowsort
SELECT 74 * - COALESCE ( 17, 21, - - 40 * - + 91 + 16 - + - 0 + + 16 )
----
-1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7589
SELECT CAST( - ( + 23 ) AS SIGNED ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7589
SELECT CAST ( - ( + 23 ) AS INTEGER ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT COUNT( * ) * + 31 * - + 80 - - COUNT( * )
----
-2479

skipif mysql # not compatible
query I rowsort label-7590
SELECT COUNT ( * ) * + 31 * - + 80 - - COUNT ( * )
----
-2479

query I rowsort
SELECT ALL + 55 * - 52 + + 43 AS col1
----
-2817

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL - 97 + COUNT( * ) + + 83
----
-13

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL - 97 + COUNT ( * ) + + 83
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7593
SELECT - CAST( NULL AS SIGNED ) / 51 * + 47, + 33 AS col2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-7593
SELECT - CAST ( NULL AS INTEGER ) / 51 * + 47, + 33 AS col2
----
NULL
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7594
SELECT - 57 + - COALESCE ( + CAST( + 14 AS SIGNED ), + 56 + - - 58 + + 7 DIV - NULLIF ( - + COUNT( * ), + ( 33 ) ), 13 ) - ( + 62 ) * - + 43 + - 90 + - 17 col0
----
2488

skipif mysql # not compatible
query I rowsort label-7594
SELECT - 57 + - COALESCE ( + CAST ( + 14 AS INTEGER ), + 56 + - - 58 + + 7 / - NULLIF ( - + COUNT ( * ), + ( 33 ) ), 13 ) - ( + 62 ) * - + 43 + - 90 + - 17 col0
----
2488

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT 23 + - MIN( ALL + - 49 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7595
SELECT 23 + - MIN ( ALL + - 49 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT + COUNT( * ) - + + 28
----
-27

skipif mysql # not compatible
query I rowsort label-7596
SELECT + COUNT ( * ) - + + 28
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7597
SELECT + 84 + + - 5 * + CAST( + - 70 AS SIGNED ) * - SUM( ALL - - 80 ) * + 7 - + CAST( NULL AS SIGNED ) + 27 + + COUNT( * ) + NULLIF ( - 37, + + 3 + 51 ) * + - 0 * + SUM( ALL 80 ) - 15 + 51 * + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7597
SELECT + 84 + + - 5 * + CAST ( + - 70 AS INTEGER ) * - SUM ( ALL - - 80 ) * + 7 - + CAST ( NULL AS INTEGER ) + 27 + + COUNT ( * ) + NULLIF ( - 37, + + 3 + 51 ) * + - 0 * + SUM ( ALL 80 ) - 15 + 51 * + 67 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 59 * + + 96 col2
----
5664

query II rowsort
SELECT - 32 col0, + 84
----
-32
84

query II rowsort
SELECT ALL 88, 62 + - 68 AS col0
----
88
-6

query II rowsort
SELECT 31 AS col0, 23 AS col0
----
31
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7602
SELECT ALL 90, + 96 + + + COUNT( * ) AS col1
----
90
97

skipif mysql # not compatible
query II rowsort label-7602
SELECT ALL 90, + 96 + + + COUNT ( * ) AS col1
----
90
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7603
SELECT 39, 64 * - - ( - COUNT( ALL + - 96 ) ) * - + COUNT( * ) * 28 * 17 AS col2
----
39
30464

skipif mysql # not compatible
query II rowsort label-7603
SELECT 39, 64 * - - ( - COUNT ( ALL + - 96 ) ) * - + COUNT ( * ) * 28 * 17 AS col2
----
39
30464

query I rowsort
SELECT 51 + + + 81 * 43 AS col1
----
3534

query II rowsort
SELECT 12 AS col0, + 67 AS col2
----
12
67

query I rowsort
SELECT 61 + + 66
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT COUNT( * ) + - ( + + COALESCE ( - + ( + 68 ), + + ( + 88 ) ) ) + - CAST( - + 85 AS SIGNED ) * + 34
----
2959

skipif mysql # not compatible
query I rowsort label-7607
SELECT COUNT ( * ) + - ( + + COALESCE ( - + ( + 68 ), + + ( + 88 ) ) ) + - CAST ( - + 85 AS INTEGER ) * + 34
----
2959

query II rowsort
SELECT 26 AS col1, + NULLIF ( - 31, ( 41 ) )
----
26
-31

query I rowsort
SELECT DISTINCT + 0 * ( - + 64 ) AS col1
----
0

query I rowsort
SELECT 90 * - + 65
----
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT ALL + 82 * + SUM( ALL + 56 ) AS col1
----
4592

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL + 82 * + SUM ( ALL + 56 ) AS col1
----
4592

query I rowsort
SELECT 5 + - CASE - 53 WHEN - 96 THEN NULL WHEN - 98 THEN NULL ELSE + 48 END AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT + 73 * 42 + + COUNT( * ) - - + ( - 48 ) * - 75
----
6667

skipif mysql # not compatible
query I rowsort label-7613
SELECT + 73 * 42 + + COUNT ( * ) - - + ( - 48 ) * - 75
----
6667

onlyif mysql # aggregate syntax: 
query II rowsort label-7614
SELECT ALL - + 56, - MAX( + - 85 ) + + + 3 + + 68 * - 55 AS col2
----
-56
-3652

skipif mysql # not compatible
query II rowsort label-7614
SELECT ALL - + 56, - MAX ( + - 85 ) + + + 3 + + 68 * - 55 AS col2
----
-56
-3652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7615
SELECT - - NULLIF ( - 97, - 12 ) DIV 17 - - 28 - - 45 * MIN( DISTINCT - - 37 ) * + 52 + - 67 * - 81 + - 19 * + 10 + + 0
----
91840

skipif mysql # not compatible
query I rowsort label-7615
SELECT - - NULLIF ( - 97, - 12 ) / 17 - - 28 - - 45 * MIN ( DISTINCT - - 37 ) * + 52 + - 67 * - 81 + - 19 * + 10 + + 0
----
91840

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ALL 78 * + 22 * CASE - 49 WHEN + 4 + - - COUNT( * ) * 62 + + - 17 THEN NULL ELSE - COALESCE ( - - 21, + COUNT( * ) ) * - 76 END * - - 29 AS col0
----
79423344

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL 78 * + 22 * CASE - 49 WHEN + 4 + - - COUNT ( * ) * 62 + + - 17 THEN NULL ELSE - COALESCE ( - - 21, + COUNT ( * ) ) * - 76 END * - - 29 AS col0
----
79423344

onlyif mysql # aggregate syntax: 
query III rowsort label-7617
SELECT + NULLIF ( + 42, - - SUM( - + 14 ) ), + COALESCE ( + 42, - 22, COALESCE ( 98, + 93 * - ( 9 ) + - 87 ) * 19 * + - 13 * + - 83 * - + 90 * + 18 ) * 1 AS col1, + - 80 * COUNT( ALL + 91 ) AS col1
----
42
42
-80

skipif mysql # not compatible
query III rowsort label-7617
SELECT + NULLIF ( + 42, - - SUM ( - + 14 ) ), + COALESCE ( + 42, - 22, COALESCE ( 98, + 93 * - ( 9 ) + - 87 ) * 19 * + - 13 * + - 83 * - + 90 * + 18 ) * 1 AS col1, + - 80 * COUNT ( ALL + 91 ) AS col1
----
42
42
-80

query I rowsort
SELECT ALL 36 * 26 * ( + - 74 ) AS col0
----
-69264

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT DISTINCT - COUNT( * ) + 12 * 90 * - CASE + 98 WHEN MAX( 52 ) + + + MAX( DISTINCT - - 23 ) THEN - + COUNT( * ) * + 65 ELSE NULL END + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT - COUNT ( * ) + 12 * 90 * - CASE + 98 WHEN MAX ( 52 ) + + + MAX ( DISTINCT - - 23 ) THEN - + COUNT ( * ) * + 65 ELSE NULL END + 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7620
SELECT ALL NULLIF ( - COUNT( * ), - + 27 * - 38 / + 80 ) + COUNT( * ) + CASE - - CASE + - 34 WHEN + + CAST( NULL AS SIGNED ) * - 64 THEN - 24 ELSE - 27 END WHEN 26 THEN NULL WHEN - - CAST( NULL AS SIGNED ) + - 20 - + 21 + + - ( 74 ) + 43 + - 38 + 60 THEN NULL ELSE COUNT( * ) * + 77 END
----
77

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL NULLIF ( - COUNT ( * ), - + 27 * - 38 / + 80 ) + COUNT ( * ) + CASE - - CASE + - 34 WHEN + + CAST ( NULL AS INTEGER ) * - 64 THEN - 24 ELSE - 27 END WHEN 26 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) + - 20 - + 21 + + - ( 74 ) + 43 + - 38 + 60 THEN NULL ELSE COUNT ( * ) * + 77 END
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7621
SELECT - 89 + MIN( DISTINCT ( - + COALESCE ( + - 2, 33 ) ) ) col1, + 70 DIV + + 64 + - + NULLIF ( - 72, 24 ) * + ( - COUNT( * ) ) * - 65
----
-87
4681

skipif mysql # not compatible
query II rowsort label-7621
SELECT - 89 + MIN ( DISTINCT ( - + COALESCE ( + - 2, 33 ) ) ) col1, + 70 / + + 64 + - + NULLIF ( - 72, 24 ) * + ( - COUNT ( * ) ) * - 65
----
-87
4681

onlyif mysql # aggregate syntax: 
query II rowsort label-7622
SELECT ALL + COUNT( * ) + - + 78 + - ( + 51 ) + 61 * - 76, - 4 AS col2
----
-4764
-4

skipif mysql # not compatible
query II rowsort label-7622
SELECT ALL + COUNT ( * ) + - + 78 + - ( + 51 ) + 61 * - 76, - 4 AS col2
----
-4764
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7623
SELECT + + 43 AS col0, COUNT( * ) AS col0
----
43
1

skipif mysql # not compatible
query II rowsort label-7623
SELECT + + 43 AS col0, COUNT ( * ) AS col0
----
43
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7624
SELECT ALL - + 81, - CAST( NULL AS DECIMAL ) * + 69 AS col0
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-7624
SELECT ALL - + 81, - CAST ( NULL AS REAL ) * + 69 AS col0
----
-81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7625
SELECT + 55 * - CAST( + COALESCE ( 52, - 60 * + 4 * COUNT( 68 ) ) AS SIGNED ) DIV 13 * - + ( + 77 ) AS col1, - ( + + COUNT( * ) ) - - ( NULLIF ( + ( + COUNT( * ) ), + 30 ) ) - 2 + + 75
----
16940
73

skipif mysql # not compatible
query II rowsort label-7625
SELECT + 55 * - CAST ( + COALESCE ( 52, - 60 * + 4 * COUNT ( 68 ) ) AS INTEGER ) / 13 * - + ( + 77 ) AS col1, - ( + + COUNT ( * ) ) - - ( NULLIF ( + ( + COUNT ( * ) ), + 30 ) ) - 2 + + 75
----
16940
73

query II rowsort
SELECT 35 + + 13 AS col2, 62 * + - 65 AS col0
----
48
-4030

query I rowsort
SELECT DISTINCT 4 + + 15 AS col1
----
19

query I rowsort
SELECT ALL 8 + + 43
----
51

query II rowsort
SELECT 21 col2, 83 AS col0
----
21
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT DISTINCT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) - CAST( + 40 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) - CAST ( + 40 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7631
SELECT - 64 + - 30 * - 31 AS col0, COALESCE ( + - COUNT( * ), + ( + - 46 ) ) AS col0
----
866
-1

skipif mysql # not compatible
query II rowsort label-7631
SELECT - 64 + - 30 * - 31 AS col0, COALESCE ( + - COUNT ( * ), + ( + - 46 ) ) AS col0
----
866
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7632
SELECT DISTINCT - COUNT( * ) - + 89 * - 22 * + CAST( NULL AS SIGNED ) + + 50 AS col2, + 30 * - 25 * 86
----
NULL
-64500

skipif mysql # not compatible
query II rowsort label-7632
SELECT DISTINCT - COUNT ( * ) - + 89 * - 22 * + CAST ( NULL AS INTEGER ) + + 50 AS col2, + 30 * - 25 * 86
----
NULL
-64500

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT - ( - MAX( ALL 16 ) ) * - + ( + + 52 )
----
-832

skipif mysql # not compatible
query I rowsort label-7633
SELECT - ( - MAX ( ALL 16 ) ) * - + ( + + 52 )
----
-832

query I rowsort
SELECT + 10 - + - 98 * 72
----
7066

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT - COALESCE ( - - CASE NULLIF ( 57, + CASE - 5 WHEN 22 THEN NULL ELSE - 61 END * + 60 ) WHEN - 0 + 99 THEN + ( - - 1 ) * + 33 WHEN + ( SUM( DISTINCT - 75 ) ) * + - ( - 79 ) - 60 * + + MIN( 66 ) * - 0 THEN NULL END, COUNT( * ), 22 * + 39 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7635
SELECT - COALESCE ( - - CASE NULLIF ( 57, + CASE - 5 WHEN 22 THEN NULL ELSE - 61 END * + 60 ) WHEN - 0 + 99 THEN + ( - - 1 ) * + 33 WHEN + ( SUM ( DISTINCT - 75 ) ) * + - ( - 79 ) - 60 * + + MIN ( 66 ) * - 0 THEN NULL END, COUNT ( * ), 22 * + 39 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT + ( + 58 ) * COUNT( * ) + + 71 AS col1
----
129

skipif mysql # not compatible
query I rowsort label-7636
SELECT + ( + 58 ) * COUNT ( * ) + + 71 AS col1
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7637
SELECT - 10 + CASE 90 WHEN + + ( - 71 ) THEN NULL WHEN 49 THEN NULL WHEN + 82 THEN + + 60 / - - 31 + - - CAST( NULL AS SIGNED ) ELSE NULL END + - 73 + - 57 - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7637
SELECT - 10 + CASE 90 WHEN + + ( - 71 ) THEN NULL WHEN 49 THEN NULL WHEN + 82 THEN + + 60 / - - 31 + - - CAST ( NULL AS INTEGER ) ELSE NULL END + - 73 + - 57 - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7638
SELECT - 56 DIV - 44, 87 AS col2
----
1
87

skipif mysql # not compatible
query II rowsort label-7638
SELECT - 56 / - 44, 87 AS col2
----
1
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7639
SELECT ALL - COUNT( * ) DIV - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL - COUNT ( * ) / - 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT - 74 + 64 * + COUNT( * ) * + - SUM( DISTINCT + + 25 ) + + + 36 AS col1
----
-1638

skipif mysql # not compatible
query I rowsort label-7640
SELECT - 74 + 64 * + COUNT ( * ) * + - SUM ( DISTINCT + + 25 ) + + + 36 AS col1
----
-1638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7641
SELECT - ( MAX( ALL - 54 ) ) - ( 28 ) + + 3 + - 36 * + 58 * - 77 + - - 16 AS col2, - MIN( ALL + 72 ) * + - ( 51 ) + 38 * - + ( + - NULLIF ( COUNT( * ), - CAST( 34 AS SIGNED ) ) ) AS col1
----
160821
3710

skipif mysql # not compatible
query II rowsort label-7641
SELECT - ( MAX ( ALL - 54 ) ) - ( 28 ) + + 3 + - 36 * + 58 * - 77 + - - 16 AS col2, - MIN ( ALL + 72 ) * + - ( 51 ) + 38 * - + ( + - NULLIF ( COUNT ( * ), - CAST ( 34 AS INTEGER ) ) ) AS col1
----
160821
3710

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT DISTINCT MIN( DISTINCT - - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT MIN ( DISTINCT - - 9 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT ( CASE + 35 WHEN 51 THEN + - 8 - - 28 WHEN - 18 * + 90 THEN NULL WHEN COALESCE ( + NULLIF ( - 38, - 63 ), COUNT( * ) ) THEN - 42 ELSE - COALESCE ( - 52, 45 ) + - 38 END )
----
14

skipif mysql # not compatible
query I rowsort label-7643
SELECT ( CASE + 35 WHEN 51 THEN + - 8 - - 28 WHEN - 18 * + 90 THEN NULL WHEN COALESCE ( + NULLIF ( - 38, - 63 ), COUNT ( * ) ) THEN - 42 ELSE - COALESCE ( - 52, 45 ) + - 38 END )
----
14

query II rowsort
SELECT + 69 * - 37 + + 35 AS col1, 43
----
-2518
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT - 2 * + COUNT( * ) * - + 48 col2
----
96

skipif mysql # not compatible
query I rowsort label-7645
SELECT - 2 * + COUNT ( * ) * - + 48 col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT ALL + - 69 * + + COALESCE ( + - 87, 31 * + MAX( ALL 40 ) ) * 53 * - 90
----
-28634310

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL + - 69 * + + COALESCE ( + - 87, 31 * + MAX ( ALL 40 ) ) * 53 * - 90
----
-28634310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7648
SELECT ALL + 76 * + 86 + + - COUNT( * ) DIV - 81 AS col1
----
6536

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL + 76 * + 86 + + - COUNT ( * ) / - 81 AS col1
----
6536

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT - - MAX( DISTINCT + 62 ) * 85 AS col2
----
5270

skipif mysql # not compatible
query I rowsort label-7649
SELECT - - MAX ( DISTINCT + 62 ) * 85 AS col2
----
5270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7650
SELECT ALL + - 63 * COUNT( * ) + + 69 + 59 + - - 62 + + 91 * 90 - - MAX( + - 47 ) * - - CAST( NULL AS SIGNED ) * + - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL + - 63 * COUNT ( * ) + + 69 + 59 + - - 62 + + 91 * 90 - - MAX ( + - 47 ) * - - CAST ( NULL AS INTEGER ) * + - 5 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7651
SELECT - - 33 DIV 60 - - + 41, 80 AS col2
----
41
80

skipif mysql # not compatible
query II rowsort label-7651
SELECT - - 33 / 60 - - + 41, 80 AS col2
----
41
80

query II rowsort
SELECT + ( + 73 ), 98 AS col1
----
73
98

query I rowsort
SELECT - - 64 - - 50 + - 51
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7654
SELECT + 9 * + - COUNT( * ), - 70 AS col2
----
-9
-70

skipif mysql # not compatible
query II rowsort label-7654
SELECT + 9 * + - COUNT ( * ), - 70 AS col2
----
-9
-70

query I rowsort
SELECT + 23 * - 93 + - - 32 AS col0
----
-2107

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT ALL + 97 * - 60 + - + 30 + COUNT( * ) - + SUM( + 28 ) * - + 65 * - + 74 AS col2
----
-140529

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL + 97 * - 60 + - + 30 + COUNT ( * ) - + SUM ( + 28 ) * - + 65 * - + 74 AS col2
----
-140529

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT DISTINCT 97 * COUNT( * ) * - 14 AS col2
----
-1358

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT 97 * COUNT ( * ) * - 14 AS col2
----
-1358

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT ALL - + 85 DIV COALESCE ( - + 12, 61 ) * + ( - - 44 ) AS col0
----
308

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL - + 85 / COALESCE ( - + 12, 61 ) * + ( - - 44 ) AS col0
----
308

query I rowsort
SELECT + + ( 69 ) - - 91 AS col0
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7660
SELECT ALL COUNT( * ) * + - MIN( DISTINCT + 80 ) DIV SUM( - 49 ) - - 35 + - - ( 57 )
----
93

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL COUNT ( * ) * + - MIN ( DISTINCT + 80 ) / SUM ( - 49 ) - - 35 + - - ( 57 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-7661
SELECT + - 48 - 28, CASE - MAX( DISTINCT + 82 ) WHEN - + COUNT( * ) * - 83 THEN + 12 WHEN - COUNT( * ) + - 73 * 54 THEN + CASE - 81 WHEN - COALESCE ( + 94, + 73, + AVG ( DISTINCT - - 73 ) ) - - 71 * + 60 THEN NULL WHEN - 24 - + 33 THEN - COUNT( * ) END * 79 END + - 55 / + 69 AS col0
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-7661
SELECT + - 48 - 28, CASE - MAX ( DISTINCT + 82 ) WHEN - + COUNT ( * ) * - 83 THEN + 12 WHEN - COUNT ( * ) + - 73 * 54 THEN + CASE - 81 WHEN - COALESCE ( + 94, + 73, + AVG ( DISTINCT - - 73 ) ) - - 71 * + 60 THEN NULL WHEN - 24 - + 33 THEN - COUNT ( * ) END * 79 END + - 55 / + 69 AS col0
----
-76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT ALL + COUNT( - 16 ) * + - COUNT( * ) * 58 * + ( - - 93 ) - + - 40 + 99 * + 49
----
-503

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL + COUNT ( - 16 ) * + - COUNT ( * ) * 58 * + ( - - 93 ) - + - 40 + 99 * + 49
----
-503

query I rowsort
SELECT + + 73 + - 36
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7664
SELECT + CAST( NULL AS SIGNED ) * + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7664
SELECT + CAST ( NULL AS INTEGER ) * + + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT COUNT( ALL + 84 )
----
1

skipif mysql # not compatible
query I rowsort label-7665
SELECT COUNT ( ALL + 84 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7666
SELECT + 87 + COUNT( * ) + + 43 AS col2, 29 col1
----
131
29

skipif mysql # not compatible
query II rowsort label-7666
SELECT + 87 + COUNT ( * ) + + 43 AS col2, 29 col1
----
131
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7667
SELECT + ( - 2 ) + - 72 DIV - 57
----
-1

skipif mysql # not compatible
query I rowsort label-7667
SELECT + ( - 2 ) + - 72 / - 57
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT ALL MIN( DISTINCT + 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL MIN ( DISTINCT + 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT ALL SUM( DISTINCT + + 37 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL SUM ( DISTINCT + + 37 ) AS col1
----
37

query I rowsort
SELECT ALL - 28 * + 58 * + 26 col0
----
-42224

onlyif mysql # aggregate syntax: 
query II rowsort label-7671
SELECT + 33 + COUNT( * ) * - 54, 67 + + 69 col0
----
-21
136

skipif mysql # not compatible
query II rowsort label-7671
SELECT + 33 + COUNT ( * ) * - 54, 67 + + 69 col0
----
-21
136

query I rowsort
SELECT + 50 * + - 78
----
-3900

query I rowsort
SELECT + 9 + + - ( - - 25 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT ALL COUNT( * ) + - 89
----
-88

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL COUNT ( * ) + - 89
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT + 14 + - COUNT( * ) - 88
----
-75

skipif mysql # not compatible
query I rowsort label-7675
SELECT + 14 + - COUNT ( * ) - 88
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-7676
SELECT - 20 * COUNT( * ) * 85 * + 39, - 18 col1
----
-66300
-18

skipif mysql # not compatible
query II rowsort label-7676
SELECT - 20 * COUNT ( * ) * 85 * + 39, - 18 col1
----
-66300
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT DISTINCT - 10 + + - 65 + - MIN( - + 88 ) * - - 75 * COUNT( * ) * + 40 * + 6 * 80 AS col0
----
126719925

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT - 10 + + - 65 + - MIN ( - + 88 ) * - - 75 * COUNT ( * ) * + 40 * + 6 * 80 AS col0
----
126719925

query I rowsort
SELECT + 91 * 5 col1
----
455

query II rowsort
SELECT ALL + ( 16 ) + - 73 AS col1, - 30 AS col0
----
-57
-30

query I rowsort
SELECT - 8 / 75 / + 90 + - - 48 + - 78 + CASE - 85 WHEN + 80 THEN 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT - + MAX( DISTINCT - 64 ) + - 50 col0
----
14

skipif mysql # not compatible
query I rowsort label-7681
SELECT - + MAX ( DISTINCT - 64 ) + - 50 col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7682
SELECT DISTINCT + - 36 col0, COALESCE ( - MIN( + 54 ), + 91 ) * - CASE + + 85 WHEN + - 40 THEN NULL ELSE - + 40 END
----
-36
-2160

skipif mysql # not compatible
query II rowsort label-7682
SELECT DISTINCT + - 36 col0, COALESCE ( - MIN ( + 54 ), + 91 ) * - CASE + + 85 WHEN + - 40 THEN NULL ELSE - + 40 END
----
-36
-2160

onlyif mysql # aggregate syntax: 
query II rowsort label-7683
SELECT + + 41 AS col2, + NULLIF ( + 81, + 77 * + COALESCE ( COALESCE ( - - MIN( + 60 ), + COALESCE ( + 63, + + CASE - + 94 WHEN - 21 THEN NULL WHEN - ( 51 ) * + 17 THEN NULL ELSE 30 END + 49 ) ), + + 40, - 48 ) * 61 + + 1 )
----
41
81

skipif mysql # not compatible
query II rowsort label-7683
SELECT + + 41 AS col2, + NULLIF ( + 81, + 77 * + COALESCE ( COALESCE ( - - MIN ( + 60 ), + COALESCE ( + 63, + + CASE - + 94 WHEN - 21 THEN NULL WHEN - ( 51 ) * + 17 THEN NULL ELSE 30 END + 49 ) ), + + 40, - 48 ) * 61 + + 1 )
----
41
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT - 24 + + SUM( DISTINCT - 54 )
----
-78

skipif mysql # not compatible
query I rowsort label-7684
SELECT - 24 + + SUM ( DISTINCT - 54 )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT ALL 12 DIV - + 88 + - 25 - - 89
----
64

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL 12 / - + 88 + - 25 - - 89
----
64

query I rowsort
SELECT COALESCE ( - 80, 80, + 51 ) col1
----
-80

query I rowsort
SELECT - + 38 + NULLIF ( + + 18, - 0 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT - - 27 * CASE 0 WHEN + MIN( 95 ) * 54 + + - 57 THEN + - NULLIF ( 33, - 10 ) ELSE + COUNT( - 23 ) END
----
27

skipif mysql # not compatible
query I rowsort label-7688
SELECT - - 27 * CASE 0 WHEN + MIN ( 95 ) * 54 + + - 57 THEN + - NULLIF ( 33, - 10 ) ELSE + COUNT ( - 23 ) END
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT CAST( + 53 AS SIGNED ) * - + 33 + - 0
----
-1749

skipif mysql # not compatible
query I rowsort label-7689
SELECT CAST ( + 53 AS INTEGER ) * - + 33 + - 0
----
-1749

query I rowsort
SELECT ALL - 71 - + 21 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT + 87 + - COUNT( * ) col0
----
86

skipif mysql # not compatible
query I rowsort label-7691
SELECT + 87 + - COUNT ( * ) col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7692
SELECT - 88 col0, COALESCE ( + ( + COUNT( * ) ), - 38 ) + - 63 + - + 26 AS col2
----
-88
-88

skipif mysql # not compatible
query II rowsort label-7692
SELECT - 88 col0, COALESCE ( + ( + COUNT ( * ) ), - 38 ) + - 63 + - + 26 AS col2
----
-88
-88

query II rowsort
SELECT ALL - - 70, 34 AS col2
----
70
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7694
SELECT DISTINCT - 41 DIV + + 28
----
-1

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT - 41 / + + 28
----
-1

query I rowsort
SELECT 74 * + 17 * - 4
----
-5032

onlyif mysql # DIV for integer division: 
query I rowsort label-7696
SELECT ALL - 59 DIV + ( 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL - 59 / + ( 36 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7697
SELECT 80 / + - CASE + 61 WHEN + COUNT( * ) + + 94 THEN - + 35 + + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT 80 / + - CASE + 61 WHEN + COUNT ( * ) + + 94 THEN - + 35 + + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 92 * 55
----
5060

onlyif mysql # DIV for integer division: 
query I rowsort label-7699
SELECT DISTINCT - 41 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT - 41 / 67
----
0

query I rowsort
SELECT CASE + 30 WHEN ( 27 ) * 37 - 78 + + 46 THEN 24 WHEN 39 THEN NULL END + + 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7701
SELECT MAX( DISTINCT + 84 ) * - COALESCE ( COALESCE ( + 46, - 7 DIV 27 - + ( + 72 ) + + 71 ), + - COUNT( ALL + 20 ) * + + 41, + - COUNT( * ) ), + 10 - + - 14 AS col1
----
-3864
24

skipif mysql # not compatible
query II rowsort label-7701
SELECT MAX ( DISTINCT + 84 ) * - COALESCE ( COALESCE ( + 46, - 7 / 27 - + ( + 72 ) + + 71 ), + - COUNT ( ALL + 20 ) * + + 41, + - COUNT ( * ) ), + 10 - + - 14 AS col1
----
-3864
24

query I rowsort
SELECT ALL + 23 * + - 78 * + - 76 AS col2
----
136344

query I rowsort
SELECT ALL 33 + - ( 38 )
----
-5

query I rowsort
SELECT 89 - + 54 * ( 61 ) AS col0
----
-3205

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT NULLIF ( NULLIF ( 91, + + COUNT( * ) ), 29 ) + + 95
----
186

skipif mysql # not compatible
query I rowsort label-7705
SELECT NULLIF ( NULLIF ( 91, + + COUNT ( * ) ), 29 ) + + 95
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT DISTINCT COALESCE ( 38, 72 * + COUNT( * ) ) + MIN( DISTINCT - 88 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT COALESCE ( 38, 72 * + COUNT ( * ) ) + MIN ( DISTINCT - 88 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-7707
SELECT ALL + 97 + + COUNT( * ) * + 29 + - 25 * + + 24 + - - 49 * 49 * + ( - 56 ) * - 82 AS col0, 41
----
11024918
41

skipif mysql # not compatible
query II rowsort label-7707
SELECT ALL + 97 + + COUNT ( * ) * + 29 + - 25 * + + 24 + - - 49 * 49 * + ( - 56 ) * - 82 AS col0, 41
----
11024918
41

query I rowsort
SELECT ALL ( - 64 ) + 54 AS col1
----
-10

query I rowsort
SELECT - 28 * + 78 + - + 28 * 96 * - 23 + + 35
----
59675

query I rowsort
SELECT + 32 - 52
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT ALL ( - - CAST( - - 88 AS SIGNED ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL ( - - CAST ( - - 88 AS INTEGER ) ) AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7712
SELECT DISTINCT - 60 DIV SUM( - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT - 60 / SUM ( - 57 )
----
1

query I rowsort
SELECT - 85 * - 50 AS col0
----
4250

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL 25 * + COUNT( * ) + + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL 25 * + COUNT ( * ) + + COUNT ( * )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7715
SELECT + 94 DIV - 5 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7715
SELECT + 94 / - 5 AS col1
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7716
SELECT ( ( + 16 ) ) DIV - + MIN( - 70 ) * - 15 + + - 90 * 78 AS col2
----
-7020

skipif mysql # not compatible
query I rowsort label-7716
SELECT ( ( + 16 ) ) / - + MIN ( - 70 ) * - 15 + + - 90 * 78 AS col2
----
-7020

query I rowsort
SELECT + CASE + - 32 WHEN - - ( + - 0 ) THEN - - ( + 4 ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7718
SELECT ALL - CAST( + 1 AS SIGNED ) * - 90 DIV + 40, COALESCE ( 14, COUNT( * ) * - 8 ) AS col2
----
2
14

skipif mysql # not compatible
query II rowsort label-7718
SELECT ALL - CAST ( + 1 AS INTEGER ) * - 90 / + 40, COALESCE ( 14, COUNT ( * ) * - 8 ) AS col2
----
2
14

query I rowsort
SELECT DISTINCT 96 - 61 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT SUM( ALL 97 )
----
97

skipif mysql # not compatible
query I rowsort label-7720
SELECT SUM ( ALL 97 )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7721
SELECT + 49 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-7721
SELECT + 49 / 56
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT DISTINCT - 84 DIV + 3
----
-28

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT - 84 / + 3
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT 43 * - 76 * COALESCE ( + 33, ( + + COALESCE ( + + 64, + 5 * + 90 * - + NULLIF ( NULLIF ( 42, 24 + + 49 ), 23 ) + 92 ) ) + + 46 ) * + - 96 * - COUNT( * ) + - - 56 + + 33
----
-10352935

skipif mysql # not compatible
query I rowsort label-7723
SELECT 43 * - 76 * COALESCE ( + 33, ( + + COALESCE ( + + 64, + 5 * + 90 * - + NULLIF ( NULLIF ( 42, 24 + + 49 ), 23 ) + 92 ) ) + + 46 ) * + - 96 * - COUNT ( * ) + - - 56 + + 33
----
-10352935

onlyif mysql # aggregate syntax: 
query II rowsort label-7724
SELECT + COUNT( * ) + - + 25 AS col1, 67 AS col0
----
-24
67

skipif mysql # not compatible
query II rowsort label-7724
SELECT + COUNT ( * ) + - + 25 AS col1, 67 AS col0
----
-24
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT + COUNT( ALL 56 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7725
SELECT + COUNT ( ALL 56 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7726
SELECT MAX( ALL + 40 ) * - + ( + 61 ) * + NULLIF ( - 60, - COUNT( * ) DIV + 21 + + 40 + + ( 63 ) + - COALESCE ( AVG ( 1 ), COUNT( ALL - ( 58 ) ) * + 23 ) ) - + - 22 * + 25 DIV + COUNT( * ) + 27 + - 47
----
146930

skipif mysql # not compatible
query I rowsort label-7726
SELECT MAX ( ALL + 40 ) * - + ( + 61 ) * + NULLIF ( - 60, - COUNT ( * ) / + 21 + + 40 + + ( 63 ) + - COALESCE ( AVG ( 1 ), COUNT ( ALL - ( 58 ) ) * + 23 ) ) - + - 22 * + 25 / + COUNT ( * ) + 27 + - 47
----
146930

query I rowsort
SELECT 71 * COALESCE ( ( - 41 ), - - 37, - 47 )
----
-2911

query I rowsort
SELECT DISTINCT 28 * - + 33 AS col0
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL - MIN( - 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL - MIN ( - 5 ) AS col1
----
5

query I rowsort
SELECT 90 - ( 25 ) * - 1
----
115

query I rowsort
SELECT 99 + 83 AS col0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT DISTINCT + 83 + - 49 * - MIN( ALL + 6 )
----
377

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT + 83 + - 49 * - MIN ( ALL + 6 )
----
377

query I rowsort
SELECT 92 * NULLIF ( - 4, + 64 ) + 87 - - 18 * + 85 AS col2
----
1249

query I rowsort
SELECT 89 + - + 46
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT 99 + + + 15 + 12 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7735
SELECT 99 + + + 15 + 12 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT COUNT( * ) - - + 99 col1
----
100

skipif mysql # not compatible
query I rowsort label-7736
SELECT COUNT ( * ) - - + 99 col1
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-7737
SELECT DISTINCT + 11 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT + 11 / + 95
----
0

query I rowsort
SELECT DISTINCT + 90 * + - 53
----
-4770

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT ALL - COUNT( * ) * - COUNT( DISTINCT + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL - COUNT ( * ) * - COUNT ( DISTINCT + 19 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7740
SELECT - CASE 46 WHEN - - 35 THEN NULL WHEN - - COUNT( * ) THEN NULL WHEN - CAST( - + CASE + 45 WHEN + 3 * - + 73 * 67 THEN 23 ELSE NULL END AS DECIMAL ) * - + 2 THEN - + ( - 52 ) WHEN + 1 THEN - 82 + NULLIF ( - - 15, ( + + 5 ) * 5 + + 4 - + 80 + + 23 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT - CASE 46 WHEN - - 35 THEN NULL WHEN - - COUNT ( * ) THEN NULL WHEN - CAST ( - + CASE + 45 WHEN + 3 * - + 73 * 67 THEN 23 ELSE NULL END AS REAL ) * - + 2 THEN - + ( - 52 ) WHEN + 1 THEN - 82 + NULLIF ( - - 15, ( + + 5 ) * 5 + + 4 - + 80 + + 23 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT + COUNT( ALL + 38 ) * - 95 + - 64 + - - 16 AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-7741
SELECT + COUNT ( ALL + 38 ) * - 95 + - 64 + - - 16 AS col1
----
-143

query I rowsort
SELECT 79 * + + 33 * + 10 * - 39 + 75
----
-1016655

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT + 66 + - - 2 + - ( + - COUNT( * ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-7743
SELECT + 66 + - - 2 + - ( + - COUNT ( * ) ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT DISTINCT COUNT( + 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT COUNT ( + 82 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT + - 70 * + NULLIF ( + 50, - 5 * + + SUM( - 63 ) ) + - 61 + + + 86 * 84 * + + COUNT( * ) AS col2
----
3663

skipif mysql # not compatible
query I rowsort label-7745
SELECT + - 70 * + NULLIF ( + 50, - 5 * + + SUM ( - 63 ) ) + - 61 + + + 86 * 84 * + + COUNT ( * ) AS col2
----
3663

query I rowsort
SELECT ALL 45 * - 4 - + - 22 AS col1
----
-158

query I rowsort
SELECT ALL 86 * + + 30
----
2580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7748
SELECT - + COUNT( * ) * - + 6 + - - 82 + ( + - MIN( DISTINCT + - 30 ) ) + 61 * + - NULLIF ( + COUNT( DISTINCT - 87 ), 13 ) * + 37 + CAST( + - 60 AS SIGNED ) * CAST( - - 55 AS SIGNED ) + + 22
----
-5417

skipif mysql # not compatible
query I rowsort label-7748
SELECT - + COUNT ( * ) * - + 6 + - - 82 + ( + - MIN ( DISTINCT + - 30 ) ) + 61 * + - NULLIF ( + COUNT ( DISTINCT - 87 ), 13 ) * + 37 + CAST ( + - 60 AS INTEGER ) * CAST ( - - 55 AS INTEGER ) + + 22
----
-5417

query II rowsort
SELECT + 17, 39 AS col0
----
17
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7750
SELECT 75 DIV - 97 + + - COUNT( + 40 ) - - 76 * + 71 * - 81 * - COUNT( * ) col0
----
437075

skipif mysql # not compatible
query I rowsort label-7750
SELECT 75 / - 97 + + - COUNT ( + 40 ) - - 76 * + 71 * - 81 * - COUNT ( * ) col0
----
437075

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7751
SELECT ALL + - 48 AS col0, - CAST( NULL AS SIGNED )
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-7751
SELECT ALL + - 48 AS col0, - CAST ( NULL AS INTEGER )
----
-48
NULL

query I rowsort
SELECT + + 0 * - 78 AS col1
----
0

query I rowsort
SELECT DISTINCT 28 * - 20
----
-560

query I rowsort
SELECT ALL 87 * - + 18
----
-1566

onlyif mysql # aggregate syntax: 
query II rowsort label-7755
SELECT + COUNT( * ) * 74 + COALESCE ( - 50, COUNT( * ), + 33 ), + 50 * 77 AS col1
----
24
3850

skipif mysql # not compatible
query II rowsort label-7755
SELECT + COUNT ( * ) * 74 + COALESCE ( - 50, COUNT ( * ), + 33 ), + 50 * 77 AS col1
----
24
3850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7756
SELECT ALL 60 * CAST( NULL AS SIGNED ) / ( 36 ) / - 84 + + - 38 + + 41 + + 39 + - COUNT( * ) * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL 60 * CAST ( NULL AS INTEGER ) / ( 36 ) / - 84 + + - 38 + + 41 + + 39 + - COUNT ( * ) * 69
----
NULL

query I rowsort
SELECT - 86 * + 69
----
-5934

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT + COUNT( DISTINCT 90 ) * + + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7758
SELECT + COUNT ( DISTINCT 90 ) * + + 57 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7759
SELECT + CASE + + 12 WHEN + 59 * 37 THEN - CAST( + 75 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT + CASE + + 12 WHEN + 59 * 37 THEN - CAST ( + 75 AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7760
SELECT 97 * + CAST( NULL AS SIGNED ) + MIN( 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT 97 * + CAST ( NULL AS INTEGER ) + MIN ( 75 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7761
SELECT MIN( - + 73 ) col1, + 33 * 1 AS col1
----
-73
33

skipif mysql # not compatible
query II rowsort label-7761
SELECT MIN ( - + 73 ) col1, + 33 * 1 AS col1
----
-73
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7762
SELECT ALL 56 + CAST( + 69 AS SIGNED )
----
125

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL 56 + CAST ( + 69 AS INTEGER )
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT ALL MAX( + - 23 ) * - - COALESCE ( - 24, 29 + - + 13 ) * + + COUNT( * ) * + 71 AS col2
----
39192

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL MAX ( + - 23 ) * - - COALESCE ( - 24, 29 + - + 13 ) * + + COUNT ( * ) * + 71 AS col2
----
39192

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT DISTINCT + 6 * + COUNT( * ) * 10
----
60

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT + 6 * + COUNT ( * ) * 10
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-7765
SELECT DISTINCT - CASE + 1 WHEN - COUNT( + 38 ) * 64 + - 78 + 45 * MIN( DISTINCT + 76 ) THEN - 70 + - 62 * - 94 - - 45 + - + COUNT( * ) ELSE 52 END - 79 AS col2, - 64
----
-131
-64

skipif mysql # not compatible
query II rowsort label-7765
SELECT DISTINCT - CASE + 1 WHEN - COUNT ( + 38 ) * 64 + - 78 + 45 * MIN ( DISTINCT + 76 ) THEN - 70 + - 62 * - 94 - - 45 + - + COUNT ( * ) ELSE 52 END - 79 AS col2, - 64
----
-131
-64

query I rowsort
SELECT ALL - 34 - 35 * - - 34 AS col0
----
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT - + 22 - + 83 + COUNT( * ) * ( + COUNT( * ) )
----
-104

skipif mysql # not compatible
query I rowsort label-7767
SELECT - + 22 - + 83 + COUNT ( * ) * ( + COUNT ( * ) )
----
-104

query II rowsort
SELECT - + 16 * + 83 AS col2, - 55
----
-1328
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7769
SELECT - CAST( NULL AS SIGNED ) + - NULLIF ( - + 1, 20 ) + + + 19 - + - CASE - COUNT( * ) WHEN - - 82 * 95 + + 76 THEN NULL WHEN ( + 67 ) THEN + 53 ELSE NULL END * + ( - - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT - CAST ( NULL AS INTEGER ) + - NULLIF ( - + 1, 20 ) + + + 19 - + - CASE - COUNT ( * ) WHEN - - 82 * 95 + + 76 THEN NULL WHEN ( + 67 ) THEN + 53 ELSE NULL END * + ( - - 41 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7770
SELECT DISTINCT 66, - NULLIF ( - CAST( NULL AS SIGNED ), 53 + - - 79 ) * + 69 * + - 4 * - MAX( ALL 73 ) col1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-7770
SELECT DISTINCT 66, - NULLIF ( - CAST ( NULL AS INTEGER ), 53 + - - 79 ) * + 69 * + - 4 * - MAX ( ALL 73 ) col1
----
66
NULL

query II rowsort
SELECT DISTINCT 83 AS col2, 96 AS col0
----
83
96

query I rowsort
SELECT + ( ( - 71 ) ) AS col2
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7773
SELECT - COUNT( * ) * - + 96 DIV 33
----
2

skipif mysql # not compatible
query I rowsort label-7773
SELECT - COUNT ( * ) * - + 96 / 33
----
2

query I rowsort
SELECT ALL + ( - + 69 )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-7775
SELECT - - 95 DIV - 21 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7775
SELECT - - 95 / - 21 AS col2
----
-4

query I rowsort
SELECT + - 90 * 52 * - 75
----
351000

onlyif mysql # aggregate syntax: 
query II rowsort label-7777
SELECT - 95 AS col0, - NULLIF ( - - ( - COUNT( * ) ), + 19 + + - 58 ) AS col1
----
-95
1

skipif mysql # not compatible
query II rowsort label-7777
SELECT - 95 AS col0, - NULLIF ( - - ( - COUNT ( * ) ), + 19 + + - 58 ) AS col1
----
-95
1

query II rowsort
SELECT DISTINCT + - 32 AS col1, 87 + - 85 AS col2
----
-32
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7779
SELECT - CAST( NULL AS SIGNED ) * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT - CAST ( NULL AS INTEGER ) * + 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7780
SELECT ALL - COALESCE ( 36, - 3, + + CAST( 19 AS SIGNED ) DIV - COUNT( * ) + + - 81 * - - 85 ) DIV + 38 + - - COALESCE ( + 41, 95 ) DIV - 43 * + 78
----
0

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL - COALESCE ( 36, - 3, + + CAST ( 19 AS INTEGER ) / - COUNT ( * ) + + - 81 * - - 85 ) / + 38 + - - COALESCE ( + 41, 95 ) / - 43 * + 78
----
0

query II rowsort
SELECT + 80 AS col1, - 21 - - 76 AS col1
----
80
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7782
SELECT DISTINCT ( - 33 ) DIV - 14 + + - SUM( ALL - 32 ) * - 59 AS col0
----
-1886

skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT ( - 33 ) / - 14 + + - SUM ( ALL - 32 ) * - 59 AS col0
----
-1886

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT ALL 87 * + 98 + CASE 26 WHEN MAX( 12 ) THEN - - 50 WHEN - + 41 * 2 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL 87 * + 98 + CASE 26 WHEN MAX ( 12 ) THEN - - 50 WHEN - + 41 * 2 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7784
SELECT - COUNT( * ) + - CAST( 37 AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-7784
SELECT - COUNT ( * ) + - CAST ( 37 AS INTEGER )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7785
SELECT + CAST( + NULLIF ( 55, 13 ) AS SIGNED ) + - 36 * + - CASE + AVG ( - 91 ) WHEN - 20 + COUNT( * ) * - NULLIF ( 19, 93 ) THEN + - 0 WHEN - 70 THEN + ( 60 ) / + 99 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7785
SELECT + CAST ( + NULLIF ( 55, 13 ) AS INTEGER ) + - 36 * + - CASE + AVG ( - 91 ) WHEN - 20 + COUNT ( * ) * - NULLIF ( 19, 93 ) THEN + - 0 WHEN - 70 THEN + ( 60 ) / + 99 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7786
SELECT ALL COALESCE ( + COUNT( + - 86 ), + - COUNT( * ), ( + 33 ) DIV 84 ) * + + 25 * + + 56 - - 30 AS col1
----
1430

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL COALESCE ( + COUNT ( + - 86 ), + - COUNT ( * ), ( + 33 ) / 84 ) * + + 25 * + + 56 - - 30 AS col1
----
1430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7787
SELECT CAST( NULL AS SIGNED ) * NULLIF ( CASE + 6 WHEN 20 THEN NULL WHEN 81 + - - COUNT( * ) + 69 THEN NULL ELSE + COUNT( * ) END, + 82 * + - 25 + 60 - 33 ) + + - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7787
SELECT CAST ( NULL AS INTEGER ) * NULLIF ( CASE + 6 WHEN 20 THEN NULL WHEN 81 + - - COUNT ( * ) + 69 THEN NULL ELSE + COUNT ( * ) END, + 82 * + - 25 + 60 - 33 ) + + - 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT + ( + NULLIF ( + COUNT( * ), + 4 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7788
SELECT + ( + NULLIF ( + COUNT ( * ), + 4 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7789
SELECT - 18 * + CASE 19 WHEN - - ( - COALESCE ( - - 50, CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN + 28 * 57 THEN 22 - + + 88 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7789
SELECT - 18 * + CASE 19 WHEN - - ( - COALESCE ( - - 50, CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN + 28 * 57 THEN 22 - + + 88 END + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 76 * + 16 + - 34
----
1182

query I rowsort
SELECT + 68 * + ( + 30 )
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT ALL 74 * + - CASE - 23 WHEN 97 + 94 * + + 2 THEN - 30 * + - CASE + - 87 WHEN NULLIF ( - 31, - COUNT( * ) * + 82 - - 76 ) - MIN( - 12 ) * - - 24 THEN NULL ELSE + 63 / + 51 * 38 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL 74 * + - CASE - 23 WHEN 97 + 94 * + + 2 THEN - 30 * + - CASE + - 87 WHEN NULLIF ( - 31, - COUNT ( * ) * + 82 - - 76 ) - MIN ( - 12 ) * - - 24 THEN NULL ELSE + 63 / + 51 * 38 END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL + MIN( DISTINCT + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL + MIN ( DISTINCT + 98 )
----
98

query I rowsort
SELECT + 20 + + - 26
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7795
SELECT + 32 * 78, 36 + - - CASE COUNT( * ) WHEN + + 23 THEN CAST( NULL AS SIGNED ) * - + 98 + CAST( NULL AS SIGNED ) + - - 75 END * + + 49 * + - COALESCE ( - + 60, + - 9 + + 70, - 62 * + + MAX( 27 ) + - MAX( DISTINCT + + 18 ) ) AS col2
----
2496
NULL

skipif mysql # not compatible
query II rowsort label-7795
SELECT + 32 * 78, 36 + - - CASE COUNT ( * ) WHEN + + 23 THEN CAST ( NULL AS INTEGER ) * - + 98 + CAST ( NULL AS INTEGER ) + - - 75 END * + + 49 * + - COALESCE ( - + 60, + - 9 + + 70, - 62 * + + MAX ( 27 ) + - MAX ( DISTINCT + + 18 ) ) AS col2
----
2496
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT - MAX( 20 ) * + - ( 44 ) + + - COUNT( * )
----
879

skipif mysql # not compatible
query I rowsort label-7796
SELECT - MAX ( 20 ) * + - ( 44 ) + + - COUNT ( * )
----
879

query I rowsort
SELECT + 8 + 22 * + 94 AS col0
----
2076

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT ALL COUNT( 66 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL COUNT ( 66 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT MAX( - ( - 95 ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-7799
SELECT MAX ( - ( - 95 ) ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT - MIN( + + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-7800
SELECT - MIN ( + + 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT - COALESCE ( 74, + + COUNT( 92 ) ) - - 47 + + - 1
----
-28

skipif mysql # not compatible
query I rowsort label-7801
SELECT - COALESCE ( 74, + + COUNT ( 92 ) ) - - 47 + + - 1
----
-28

query I rowsort
SELECT ALL + 49 * - + ( + - 96 ) AS col0
----
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT DISTINCT MAX( + 98 ) * + 82 AS col1
----
8036

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT MAX ( + 98 ) * + 82 AS col1
----
8036

onlyif mysql # DIV for integer division: 
query I rowsort label-7804
SELECT + 10 * + NULLIF ( + 14, + - 39 - 57 ) * + - COALESCE ( + + 44, 21, - 96 DIV + 7, 12 * - - 5 )
----
-6160

skipif mysql # not compatible
query I rowsort label-7804
SELECT + 10 * + NULLIF ( + 14, + - 39 - 57 ) * + - COALESCE ( + + 44, 21, - 96 / + 7, 12 * - - 5 )
----
-6160

query I rowsort
SELECT ALL 80 * + 1 col2
----
80

query I rowsort
SELECT - 63 + ( 36 ) - 53 AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7807
SELECT DISTINCT COALESCE ( 36, - - 25 * + COUNT( * ) - - 50 ) col0, + CASE - - 52 WHEN - + 15 / + 1 - + 74 / 77 THEN - 57 * + + 90 + + 62 ELSE NULL END - + + CAST( NULL AS SIGNED ) * 34 AS col0
----
36
NULL

skipif mysql # not compatible
query II rowsort label-7807
SELECT DISTINCT COALESCE ( 36, - - 25 * + COUNT ( * ) - - 50 ) col0, + CASE - - 52 WHEN - + 15 / + 1 - + 74 / 77 THEN - 57 * + + 90 + + 62 ELSE NULL END - + + CAST ( NULL AS INTEGER ) * 34 AS col0
----
36
NULL

query II rowsort
SELECT - 77 + + ( + 17 ) AS col0, + 61
----
-60
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT 98 + - 36 - + CASE - 55 WHEN - - 14 THEN - - COALESCE ( COUNT( * ), ( + COUNT( * ) ) ) END * + - COALESCE ( - + 39, - - 91 ) * ( - NULLIF ( COUNT( * ), - ( + + 50 ) + + 65 * - 43 + 91 * - 54 + + + 80 ) ) / - COUNT( * ) * 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT 98 + - 36 - + CASE - 55 WHEN - - 14 THEN - - COALESCE ( COUNT ( * ), ( + COUNT ( * ) ) ) END * + - COALESCE ( - + 39, - - 91 ) * ( - NULLIF ( COUNT ( * ), - ( + + 50 ) + + 65 * - 43 + 91 * - 54 + + + 80 ) ) / - COUNT ( * ) * 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT 57 + 35 * + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-7810
SELECT 57 + 35 * + COUNT ( * )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7811
SELECT - 4 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-7811
SELECT - 4 / - 49
----
0

query I rowsort
SELECT + ( 12 ) + - 83 * + 7 * - 96 * + 11 * + 74
----
45401676

onlyif mysql # DIV for integer division: 
query II rowsort label-7813
SELECT DISTINCT - COALESCE ( 35, ( - - 61 ) DIV - 51 + + 68 ) + 25 AS col1, 65 DIV 15 * - - 9
----
-10
36

skipif mysql # not compatible
query II rowsort label-7813
SELECT DISTINCT - COALESCE ( 35, ( - - 61 ) / - 51 + + 68 ) + 25 AS col1, 65 / 15 * - - 9
----
-10
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT DISTINCT - COUNT( DISTINCT + - 46 ) + - SUM( DISTINCT - + 81 ) * 44
----
3563

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT - COUNT ( DISTINCT + - 46 ) + - SUM ( DISTINCT - + 81 ) * 44
----
3563

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT 96 * 55 * + 90 + - CASE 45 WHEN + 47 THEN 51 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7815
SELECT 96 * 55 * + 90 + - CASE 45 WHEN + 47 THEN 51 * COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7816
SELECT ALL - CAST( + 88 AS SIGNED ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL - CAST ( + 88 AS INTEGER ) AS col2
----
-88

query II rowsort
SELECT 35 AS col1, - 86
----
35
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT DISTINCT + COUNT( * ) * - - 9
----
9

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT + COUNT ( * ) * - - 9
----
9

query II rowsort
SELECT 59 AS col2, - ( 88 )
----
59
-88

query I rowsort
SELECT ALL + 34 - 67 col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7821
SELECT 67, CAST( NULL AS SIGNED ) * 79 AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-7821
SELECT 67, CAST ( NULL AS INTEGER ) * 79 AS col2
----
67
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7822
SELECT DISTINCT - 82 AS col0, 41 + 52 * - 63 + COALESCE ( - - 32, + + 98, - 86 * + ( - - NULLIF ( + 56, - - 4 ) ) ) DIV - + 45 AS col0
----
-82
-3235

skipif mysql # not compatible
query II rowsort label-7822
SELECT DISTINCT - 82 AS col0, 41 + 52 * - 63 + COALESCE ( - - 32, + + 98, - 86 * + ( - - NULLIF ( + 56, - - 4 ) ) ) / - + 45 AS col0
----
-82
-3235

query II rowsort
SELECT ALL - 88 AS col1, + 7 AS col1
----
-88
7

query II rowsort
SELECT + 66, 60 * COALESCE ( + 67, + 53 ) * - + 5 * + 58 AS col1
----
66
-1165800

query I rowsort
SELECT DISTINCT 55 * 87 * - 81 AS col0
----
-387585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7826
SELECT ALL CASE + 66 WHEN + 80 * + - AVG ( + ( + 22 ) ) * 86 - - 22 + CAST( NULL AS SIGNED ) THEN + 41 + + 0 + + + 70 + + - MAX( ALL - 32 ) + + + 64 * + 81 - - 77 ELSE + 2 * MAX( - ( 15 ) ) + 15 END
----
-15

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL CASE + 66 WHEN + 80 * + - AVG ( + ( + 22 ) ) * 86 - - 22 + CAST ( NULL AS INTEGER ) THEN + 41 + + 0 + + + 70 + + - MAX ( ALL - 32 ) + + + 64 * + 81 - - 77 ELSE + 2 * MAX ( - ( 15 ) ) + 15 END
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7827
SELECT 81, - 58 DIV + SUM( + 62 ) + 85 AS col1
----
81
85

skipif mysql # not compatible
query II rowsort label-7827
SELECT 81, - 58 / + SUM ( + 62 ) + 85 AS col1
----
81
85

query I rowsort
SELECT DISTINCT - 50 * + 7
----
-350

query I rowsort
SELECT DISTINCT 51 * - - 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT ALL CAST( NULL AS SIGNED ) / + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL CAST ( NULL AS INTEGER ) / + 54 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7831
SELECT - MAX( + CAST( NULL AS SIGNED ) ) + 66 * MIN( - 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7831
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) + 66 * MIN ( - 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT DISTINCT - SUM( 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-7832
SELECT DISTINCT - SUM ( 89 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT - COUNT( * ) * - 1 * - + COUNT( * ) + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7833
SELECT - COUNT ( * ) * - 1 * - + COUNT ( * ) + + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-7834
SELECT - ( - - CAST( NULL AS DECIMAL ) ) - + 25, COUNT( * ) AS col2, - 63 AS col1
----
NULL
1
-63

skipif mysql # not compatible
query III rowsort label-7834
SELECT - ( - - CAST ( NULL AS REAL ) ) - + 25, COUNT ( * ) AS col2, - 63 AS col1
----
NULL
1
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT + 44 + - 89 + + 37 * COUNT( DISTINCT + 81 ) * 29 AS col0
----
1028

skipif mysql # not compatible
query I rowsort label-7835
SELECT + 44 + - 89 + + 37 * COUNT ( DISTINCT + 81 ) * 29 AS col0
----
1028

query I rowsort
SELECT DISTINCT + 76 + 27 AS col0
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7837
SELECT ALL - COUNT( * ) + - 28 DIV ( - - 32 ) * - COUNT( * ) * + 97 + 33 DIV + 54, + COUNT( * ) - + 59 + - 59 AS col2
----
-1
-117

skipif mysql # not compatible
query II rowsort label-7837
SELECT ALL - COUNT ( * ) + - 28 / ( - - 32 ) * - COUNT ( * ) * + 97 + 33 / + 54, + COUNT ( * ) - + 59 + - 59 AS col2
----
-1
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL - 43 + - COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL - 43 + - COUNT ( * ) AS col2
----
-44

query I rowsort
SELECT DISTINCT 80 + 9 + - 0 * - 78 AS col1
----
89

query I rowsort
SELECT DISTINCT - 94 + 3
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT ALL ( + COUNT( * ) ) * + 99
----
99

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL ( + COUNT ( * ) ) * + 99
----
99

query II rowsort
SELECT - 81, COALESCE ( + 1, + - 14 - + 1 ) col2
----
-81
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7843
SELECT - 92 AS col2, - COUNT( * )
----
-92
-1

skipif mysql # not compatible
query II rowsort label-7843
SELECT - 92 AS col2, - COUNT ( * )
----
-92
-1

query I rowsort
SELECT 12 * NULLIF ( 31, + - 16 * - ( 33 ) ) + + 9 AS col0
----
381

query I rowsort
SELECT DISTINCT + 70 * - - 73 + 31 AS col1
----
5141

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT 28 * - 86 * COUNT( * ) AS col0
----
-2408

skipif mysql # not compatible
query I rowsort label-7846
SELECT 28 * - 86 * COUNT ( * ) AS col0
----
-2408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7847
SELECT DISTINCT - CASE + COUNT( * ) WHEN - 95 THEN NULL WHEN + + AVG ( ALL 83 ) THEN + CASE NULLIF ( 58, CAST( NULL AS SIGNED ) ) WHEN + + COUNT( * ) THEN - ( 21 ) * 22 + - MAX( ALL + - CAST( NULL AS SIGNED ) ) * - 71 WHEN + 67 THEN NULL END WHEN - 93 * + - 67 / 95 THEN NULL ELSE + 79 END
----
-79

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT - CASE + COUNT ( * ) WHEN - 95 THEN NULL WHEN + + AVG ( ALL 83 ) THEN + CASE NULLIF ( 58, CAST ( NULL AS INTEGER ) ) WHEN + + COUNT ( * ) THEN - ( 21 ) * 22 + - MAX ( ALL + - CAST ( NULL AS INTEGER ) ) * - 71 WHEN + 67 THEN NULL END WHEN - 93 * + - 67 / 95 THEN NULL ELSE + 79 END
----
-79

query I rowsort
SELECT 5 * - + 46
----
-230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7849
SELECT - COALESCE ( 16, - 93 * + ( 89 ) * - 66 * - 9 DIV MIN( - - ( - + 16 ) ) DIV - 90 - - 90 DIV COUNT( DISTINCT - 88 ) - - 32, - - 95 * 87 ) DIV + + 50 - - - 38 + + - MIN( - 36 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7849
SELECT - COALESCE ( 16, - 93 * + ( 89 ) * - 66 * - 9 / MIN ( - - ( - + 16 ) ) / - 90 - - 90 / COUNT ( DISTINCT - 88 ) - - 32, - - 95 * 87 ) / + + 50 - - - 38 + + - MIN ( - 36 ) AS col1
----
-2

query II rowsort
SELECT 18 * 19 AS col0, - 65
----
342
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-7851
SELECT ALL - 74 DIV - + 15 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL - 74 / - + 15 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT DISTINCT - 20 * - + COALESCE ( + NULLIF ( + - 17, - + 30 * + 58 - + - 90 ), 60, + + COUNT( * ) * - 19 ) AS col0
----
-340

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT - 20 * - + COALESCE ( + NULLIF ( + - 17, - + 30 * + 58 - + - 90 ), 60, + + COUNT ( * ) * - 19 ) AS col0
----
-340

query I rowsort
SELECT 5 * + 23 AS col2
----
115

query I rowsort
SELECT 8 * - 57 AS col2
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT 43 * + 77 * 26 * SUM( - - 21 ) * + ( 50 ) AS col1
----
90390300

skipif mysql # not compatible
query I rowsort label-7855
SELECT 43 * + 77 * 26 * SUM ( - - 21 ) * + ( 50 ) AS col1
----
90390300

query I rowsort
SELECT 14 + + 37
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7857
SELECT 50 DIV + ( - ( + + 32 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7857
SELECT 50 / + ( - ( + + 32 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7858
SELECT 24 + 75 * - 45 - - CAST( NULL AS SIGNED ) + - COUNT( * ) - CAST( NULL AS SIGNED ) + - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT 24 + 75 * - 45 - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) - CAST ( NULL AS INTEGER ) + - 84 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7859
SELECT 30 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7859
SELECT 30 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT SUM( DISTINCT 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7860
SELECT SUM ( DISTINCT 76 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT DISTINCT - 85 * - COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT - 85 * - COUNT ( * ) AS col0
----
85

query I rowsort
SELECT ALL + CASE + 24 WHEN 45 THEN - 95 + - 5 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7863
SELECT ALL - COUNT( 67 ) * - - CASE - + COALESCE ( - 39, + 30 + - 97, - 51 * - + 84 * - 69 ) WHEN ( - 37 ) + + + 13 THEN + 17 DIV - - 4 * - CASE 89 WHEN - 84 THEN 54 END * + + 52 * COUNT( * ) - - 14 + - - MAX( + - 71 ) ELSE 41 + + COUNT( * ) END
----
-42

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL - COUNT ( 67 ) * - - CASE - + COALESCE ( - 39, + 30 + - 97, - 51 * - + 84 * - 69 ) WHEN ( - 37 ) + + + 13 THEN + 17 / - - 4 * - CASE 89 WHEN - 84 THEN 54 END * + + 52 * COUNT ( * ) - - 14 + - - MAX ( + - 71 ) ELSE 41 + + COUNT ( * ) END
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7864
SELECT ALL COUNT( * ) + - 74 + - 26 * 21 DIV - 54 col1
----
-63

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL COUNT ( * ) + - 74 + - 26 * 21 / - 54 col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7865
SELECT DISTINCT + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, - 53 + 86 - + 17 + + 69
----
NULL
85

skipif mysql # not compatible
query II rowsort label-7865
SELECT DISTINCT + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, - 53 + 86 - + 17 + + 69
----
NULL
85

query I rowsort
SELECT ALL - ( + 89 ) + 98 col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT ALL CASE - 53 WHEN + 28 * + 60 + 82 THEN NULL ELSE + 22 * + - ( MAX( DISTINCT 76 ) ) - - - 35 END AS col0
----
-1707

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL CASE - 53 WHEN + 28 * + 60 + 82 THEN NULL ELSE + 22 * + - ( MAX ( DISTINCT 76 ) ) - - - 35 END AS col0
----
-1707

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL MAX( ALL - 68 ) + 40 + + - 20 * + + 16 AS col2
----
-348

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL MAX ( ALL - 68 ) + 40 + + - 20 * + + 16 AS col2
----
-348

query I rowsort
SELECT - + 33 + + - 96 + 30 + - - 2 * 22 * 24 * - - 18 * 46
----
874269

query I rowsort
SELECT + + 27 - - + 1
----
28

query I rowsort
SELECT + 86 * - + 16 + - 6
----
-1382

onlyif mysql # aggregate syntax: 
query II rowsort label-7872
SELECT DISTINCT - COALESCE ( + - 2, + - 90 + - - 73, - - 34 - + ( - - 41 ) + + - CASE + 6 WHEN + + 90 * 96 * 87 * - 64 THEN NULL WHEN ( + 44 ) THEN - - COUNT( * ) END ) + - COUNT( * ) AS col0, - 50 + - - COUNT( * )
----
1
-49

skipif mysql # not compatible
query II rowsort label-7872
SELECT DISTINCT - COALESCE ( + - 2, + - 90 + - - 73, - - 34 - + ( - - 41 ) + + - CASE + 6 WHEN + + 90 * 96 * 87 * - 64 THEN NULL WHEN ( + 44 ) THEN - - COUNT ( * ) END ) + - COUNT ( * ) AS col0, - 50 + - - COUNT ( * )
----
1
-49

query I rowsort
SELECT DISTINCT + 45 + + 44
----
89

query I rowsort
SELECT - 52 * - 93 + - 43 - - + 77 * - - 79
----
10876

query I rowsort
SELECT + + 90 + - 14
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT + MIN( ALL + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-7876
SELECT + MIN ( ALL + 69 )
----
69

query I rowsort
SELECT + 45 - - 2 - + 86 AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7878
SELECT + CAST( 28 AS SIGNED ) + - - COALESCE ( 63, + 12 ) + + 20 + - 65 + 41 * - ( - - 64 ) * - 97 / - CAST( NULL AS SIGNED ) * - 19 + AVG ( DISTINCT 80 ), 37 AS col1
----
NULL
37

skipif mysql # not compatible
query II rowsort label-7878
SELECT + CAST ( 28 AS INTEGER ) + - - COALESCE ( 63, + 12 ) + + 20 + - 65 + 41 * - ( - - 64 ) * - 97 / - CAST ( NULL AS INTEGER ) * - 19 + AVG ( DISTINCT 80 ), 37 AS col1
----
NULL
37

query I rowsort
SELECT ALL 46 * + - 92 AS col2
----
-4232

query I rowsort
SELECT - NULLIF ( 85, 81 + - 70 )
----
-85

query I rowsort
SELECT + 69 + - - 68 AS col1
----
137

query I rowsort
SELECT DISTINCT - ( + 88 ) * - + 37 * - 30 * - - 72
----
-7032960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT ALL COUNT( + CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT ALL 10 * - - 22 AS col2
----
220

query I rowsort
SELECT + 21 + + + 16 + 72 AS col2
----
109

query I rowsort
SELECT + CASE 17 WHEN 27 THEN NULL WHEN + 69 THEN NULL WHEN + - 55 THEN + 34 + - 18 ELSE - + 10 END AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT + CASE 90 WHEN 5 * + 15 THEN + COALESCE ( + + COUNT( * ), - 52 / - - 71 + + - 27, - + 55 * - 35, - - 53 ) * + + ( 1 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7887
SELECT + CASE 90 WHEN 5 * + 15 THEN + COALESCE ( + + COUNT ( * ), - 52 / - - 71 + + - 27, - + 55 * - 35, - - 53 ) * + + ( 1 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7888
SELECT - 74 * + + SUM( ALL 52 ) AS col1, COUNT( * ) AS col2
----
-3848
1

skipif mysql # not compatible
query II rowsort label-7888
SELECT - 74 * + + SUM ( ALL 52 ) AS col1, COUNT ( * ) AS col2
----
-3848
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT + ( - 48 ) * 88 + - SUM( DISTINCT - 19 )
----
-4205

skipif mysql # not compatible
query I rowsort label-7889
SELECT + ( - 48 ) * 88 + - SUM ( DISTINCT - 19 )
----
-4205

onlyif mysql # DIV for integer division: 
query I rowsort label-7890
SELECT DISTINCT + 16 DIV + + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT + 16 / + + 83 AS col1
----
0

query I rowsort
SELECT - 38 * + 86 AS col2
----
-3268

query II rowsort
SELECT DISTINCT + 81, + 89 AS col0
----
81
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT DISTINCT + 99 * - COUNT( * ) * + 34
----
-3366

skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT + 99 * - COUNT ( * ) * + 34
----
-3366

query I rowsort
SELECT ALL 29 * - 37 + 76
----
-997

query I rowsort
SELECT - 68 * ( ( + 1 ) )
----
-68

query II rowsort
SELECT + - ( - ( + 35 ) ) AS col1, - 66
----
35
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT - 30 + + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-7897
SELECT - 30 + + COUNT ( * )
----
-29

query I rowsort
SELECT - - 62 * - 47 AS col2
----
-2914

query I rowsort
SELECT DISTINCT NULLIF ( - + 4, + 30 * 90 ) AS col2
----
-4

query I rowsort
SELECT ALL 25 * + + 36 + ( + - 76 )
----
824

query I rowsort
SELECT DISTINCT 62 * 72 * + - 29 + - - 67 AS col1
----
-129389

query I rowsort
SELECT - - 79 + - 47 * + 50 * - - 1
----
-2271

query I rowsort
SELECT DISTINCT - NULLIF ( - ( - 87 ), + 52 ) * - - 27 + 81 + + 47 + - + 6
----
-2227

onlyif mysql # aggregate syntax: 
query II rowsort label-7904
SELECT - + ( - 11 ) + + 68 * + 11 * - 5, NULLIF ( - 71, + NULLIF ( + - ( 90 ), CASE WHEN NULL > ( NULL ) THEN - NULLIF ( + COUNT( - 53 ), - - 7 - - 11 ) WHEN NOT NULL <= MAX( ( + + 76 ) ) * + 71 THEN + + CASE - + 69 WHEN + - 74 THEN NULL WHEN + 1 - - + 86 * 78 THEN NULL ELSE 54 END ELSE + COUNT( ALL 78 ) END * + 95 ) ) col0
----
-3729
-71

skipif mysql # not compatible
query II rowsort label-7904
SELECT - + ( - 11 ) + + 68 * + 11 * - 5, NULLIF ( - 71, + NULLIF ( + - ( 90 ), CASE WHEN NULL > ( NULL ) THEN - NULLIF ( + COUNT ( - 53 ), - - 7 - - 11 ) WHEN NOT NULL <= MAX ( ( + + 76 ) ) * + 71 THEN + + CASE - + 69 WHEN + - 74 THEN NULL WHEN + 1 - - + 86 * 78 THEN NULL ELSE 54 END ELSE + COUNT ( ALL 78 ) END * + 95 ) ) col0
----
-3729
-71

query I rowsort
SELECT - - 60 + + 83 AS col0
----
143

query I rowsort
SELECT + + 55 * - 40 * + 0 AS col0
----
0

query I rowsort
SELECT DISTINCT - ( - - 74 )
----
-74

query I rowsort
SELECT ALL 17 * + 9
----
153

query I rowsort
SELECT - 52 * 12 * - + 31
----
19344

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT DISTINCT 82 AS col0, + 60 * - SUM( ALL + 44 ) + + - 68 * + + COUNT( * ) * ( - - 40 )
----
82
-5360

skipif mysql # not compatible
query II rowsort label-7910
SELECT DISTINCT 82 AS col0, + 60 * - SUM ( ALL + 44 ) + + - 68 * + + COUNT ( * ) * ( - - 40 )
----
82
-5360

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7911
SELECT + 4 - - 73 col0, - ( + 23 ) DIV + COUNT( ALL - - 45 ) col2
----
77
-23

skipif mysql # not compatible
query II rowsort label-7911
SELECT + 4 - - 73 col0, - ( + 23 ) / + COUNT ( ALL - - 45 ) col2
----
77
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7912
SELECT - 33 - 3 + - + COUNT( * ) DIV + + MAX( - 5 ) + 77 * + - 9
----
-729

skipif mysql # not compatible
query I rowsort label-7912
SELECT - 33 - 3 + - + COUNT ( * ) / + + MAX ( - 5 ) + 77 * + - 9
----
-729

query I rowsort
SELECT - 92 * - 27 * + - 75
----
-186300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7914
SELECT - CAST( NULL AS SIGNED ), 55 AS col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-7914
SELECT - CAST ( NULL AS INTEGER ), 55 AS col1
----
NULL
55

onlyif mysql # DIV for integer division: 
query II rowsort label-7915
SELECT ALL 41 AS col2, 1 DIV - 7 AS col1
----
41
0

skipif mysql # not compatible
query II rowsort label-7915
SELECT ALL 41 AS col2, 1 / - 7 AS col1
----
41
0

query I rowsort
SELECT - 10 - - + 77
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT - CASE + + COUNT( * ) WHEN - + ( - - 48 ) + - 42 / + 53 THEN NULL WHEN ( + 95 ) THEN NULL WHEN - 45 + + 24 * - 85 THEN - 82 + 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT - CASE + + COUNT ( * ) WHEN - + ( - - 48 ) + - 42 / + 53 THEN NULL WHEN ( + 95 ) THEN NULL WHEN - 45 + + 24 * - 85 THEN - 82 + 65 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT COUNT( * ) * - - ( 10 )
----
10

skipif mysql # not compatible
query I rowsort label-7918
SELECT COUNT ( * ) * - - ( 10 )
----
10

query I rowsort
SELECT DISTINCT 91 + 39
----
130

query I rowsort
SELECT ALL 50 + - 76 * - + 68 * 25 AS col1
----
129250

query I rowsort
SELECT 49 - + 64 AS col2
----
-15

query I rowsort
SELECT ALL 26 + 97 + - 36 AS col2
----
87

query I rowsort
SELECT DISTINCT - 58 + + + 3 - - 75 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT DISTINCT 55 + + - COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT 55 + + - COUNT ( * ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7925
SELECT 40 / 94 * + + 98 * + - ( 21 ) * - + ( - CASE + + 7 WHEN + - COUNT( * ) + + + ( - COUNT( * ) ) / 39 THEN - 20 ELSE NULL END ) + + + 73, + 33 AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-7925
SELECT 40 / 94 * + + 98 * + - ( 21 ) * - + ( - CASE + + 7 WHEN + - COUNT ( * ) + + + ( - COUNT ( * ) ) / 39 THEN - 20 ELSE NULL END ) + + + 73, + 33 AS col0
----
NULL
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT CAST( + 80 AS SIGNED ) * + + 43
----
3440

skipif mysql # not compatible
query I rowsort label-7926
SELECT CAST ( + 80 AS INTEGER ) * + + 43
----
3440

query I rowsort
SELECT ALL 90 + 50
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-7928
SELECT + 53, + ( - COUNT( * ) ) AS col0
----
53
-1

skipif mysql # not compatible
query II rowsort label-7928
SELECT + 53, + ( - COUNT ( * ) ) AS col0
----
53
-1

query I rowsort
SELECT - 69 * - - 1 + - - 2 col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7930
SELECT - 88 - + + 7 + - 89 - 56 * - 6 + + 31 AS col1, 62 - + + 29 + + 83 + + + CAST( + COUNT( * ) AS SIGNED ) * + + 79 * - + 71 AS col1
----
183
-5493

skipif mysql # not compatible
query II rowsort label-7930
SELECT - 88 - + + 7 + - 89 - 56 * - 6 + + 31 AS col1, 62 - + + 29 + + 83 + + + CAST ( + COUNT ( * ) AS INTEGER ) * + + 79 * - + 71 AS col1
----
183
-5493

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT + - 66 * 33 * + SUM( DISTINCT 24 ) + - 39 - - + 88 * 1 AS col1
----
-52223

skipif mysql # not compatible
query I rowsort label-7931
SELECT + - 66 * 33 * + SUM ( DISTINCT 24 ) + - 39 - - + 88 * 1 AS col1
----
-52223

query II rowsort
SELECT ALL 2 + 48 AS col1, 10 AS col1
----
50
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7933
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) / - + 17 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT + - CAST ( NULL AS REAL ) / - + 17 + + COUNT ( * )
----
NULL

query III rowsort
SELECT ALL - 31 + - 42 + - - 60 + - + 99 * + - ( - 45 ), COALESCE ( - - 57, + 11 ) AS col2, 92 AS col2
----
-4468
57
92

query II rowsort
SELECT 5, + 54 AS col1
----
5
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7936
SELECT DISTINCT 47 DIV COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT 47 / COUNT ( * )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7937
SELECT + CAST( NULL AS SIGNED ) AS col2, 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-7937
SELECT + CAST ( NULL AS INTEGER ) AS col2, 84
----
NULL
84

query I rowsort
SELECT ALL - - ( - - 36 ) * 76
----
2736

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7939
SELECT 90 DIV + 86 - 39 + + 75 AS col0, 79 * 29 * + - 66 * COUNT( * ) AS col2
----
37
-151206

skipif mysql # not compatible
query II rowsort label-7939
SELECT 90 / + 86 - 39 + + 75 AS col0, 79 * 29 * + - 66 * COUNT ( * ) AS col2
----
37
-151206

query I rowsort
SELECT - 4 * + 31 + + 54
----
-70

query I rowsort
SELECT ALL + - 85 * - 99
----
8415

query II rowsort
SELECT + 83 col2, - 46 * + 97
----
83
-4462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT ALL + 93 * - + CAST( - 54 AS SIGNED )
----
5022

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL + 93 * - + CAST ( - 54 AS INTEGER )
----
5022

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT ALL - NULLIF ( + 69, - + COUNT( * ) * - + 6 + + CASE - - 8 WHEN - 9 THEN - - 24 WHEN + 66 - + 9 THEN NULL END )
----
-69

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL - NULLIF ( + 69, - + COUNT ( * ) * - + 6 + + CASE - - 8 WHEN - 9 THEN - - 24 WHEN + 66 - + 9 THEN NULL END )
----
-69

query I rowsort
SELECT ALL + 79 * + - 88 * - + 25
----
173800

query I rowsort
SELECT 8 * - - 29
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT COUNT( * ) * + - 96
----
-96

skipif mysql # not compatible
query I rowsort label-7947
SELECT COUNT ( * ) * + - 96
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT 14 + + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-7948
SELECT 14 + + COUNT ( * )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT DISTINCT + 34 DIV + + 54 * 55
----
0

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT + 34 / + + 54 * 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7950
SELECT 24 + + 80 - 42 * MIN( + 94 ) * + 77 + 94 + - 0 * - + CAST( - 35 AS SIGNED ) * - + 16
----
-303798

skipif mysql # not compatible
query I rowsort label-7950
SELECT 24 + + 80 - 42 * MIN ( + 94 ) * + 77 + 94 + - 0 * - + CAST ( - 35 AS INTEGER ) * - + 16
----
-303798

query I rowsort
SELECT 59 - - + 84 col0
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7952
SELECT ALL + COALESCE ( + + 75, ( - 81 ), - + CAST( NULL AS SIGNED ) * - 39 + 17 + 45 - + + MAX( DISTINCT + 31 ) * + 80 ) + - - 91 AS col2
----
166

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL + COALESCE ( + + 75, ( - 81 ), - + CAST ( NULL AS INTEGER ) * - 39 + 17 + 45 - + + MAX ( DISTINCT + 31 ) * + 80 ) + - - 91 AS col2
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT DISTINCT - 89 + COUNT( * ) + 1 col2
----
-87

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT - 89 + COUNT ( * ) + 1 col2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT ALL 50 + - CAST( NULL AS SIGNED ) * - ( 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL 50 + - CAST ( NULL AS INTEGER ) * - ( 91 )
----
NULL

query II rowsort
SELECT 49 + - + 91, 76 col1
----
-42
76

query I rowsort
SELECT 59 + + + 43
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-7957
SELECT SUM( ALL + + 98 ) AS col0, 41
----
98
41

skipif mysql # not compatible
query II rowsort label-7957
SELECT SUM ( ALL + + 98 ) AS col0, 41
----
98
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ( COUNT( * ) ) * - 77 - + 51 + - ( 98 ) AS col2
----
-226

skipif mysql # not compatible
query I rowsort label-7958
SELECT ( COUNT ( * ) ) * - 77 - + 51 + - ( 98 ) AS col2
----
-226

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7959
SELECT 49 * - MIN( DISTINCT - + 62 ) * + ( + ( + CAST( NULL AS SIGNED ) ) ) * + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7959
SELECT 49 * - MIN ( DISTINCT - + 62 ) * + ( + ( + CAST ( NULL AS INTEGER ) ) ) * + 25 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT ALL 8 DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL 8 / + 26
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7961
SELECT SUM( ALL - 43 ) * 49 AS col0, MAX( + 27 ) + + + 42
----
-2107
69

skipif mysql # not compatible
query II rowsort label-7961
SELECT SUM ( ALL - 43 ) * 49 AS col0, MAX ( + 27 ) + + + 42
----
-2107
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7962
SELECT + + 62 * + MIN( DISTINCT + 2 ) * + ( + + CAST( NULL AS SIGNED ) ) * - 68 + - COUNT( * ) + - + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT + + 62 * + MIN ( DISTINCT + 2 ) * + ( + + CAST ( NULL AS INTEGER ) ) * - 68 + - COUNT ( * ) + - + 4 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 82 + + - 30 col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7964
SELECT CAST( NULL AS SIGNED ) * SUM( ALL - - 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT CAST ( NULL AS INTEGER ) * SUM ( ALL - - 70 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 16 * - 81 AS col2
----
-1296

query II rowsort
SELECT + + ( 43 ) AS col0, + 73
----
43
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7967
SELECT 12 * 87 + + COUNT( CAST( NULL AS DECIMAL ) ) DIV 50 AS col0
----
1044

skipif mysql # not compatible
query I rowsort label-7967
SELECT 12 * 87 + + COUNT ( CAST ( NULL AS REAL ) ) / 50 AS col0
----
1044

query I rowsort
SELECT 56 * + - 5
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT + 49 * + + ( - CASE + + 2 WHEN + 99 + 80 THEN NULL WHEN 85 * + + 95 - - 25 THEN NULL ELSE NULLIF ( COALESCE ( + 98, - - 10, - SUM( + 42 ) - + - 87 ), - 9 * 10 ) * 56 + + COUNT( * ) - 70 * + - 37 + - - COALESCE ( ( 5 ), - - 54 ) + + 30 END ) - 69 + 89
----
-397566

skipif mysql # not compatible
query I rowsort label-7969
SELECT + 49 * + + ( - CASE + + 2 WHEN + 99 + 80 THEN NULL WHEN 85 * + + 95 - - 25 THEN NULL ELSE NULLIF ( COALESCE ( + 98, - - 10, - SUM ( + 42 ) - + - 87 ), - 9 * 10 ) * 56 + + COUNT ( * ) - 70 * + - 37 + - - COALESCE ( ( 5 ), - - 54 ) + + 30 END ) - 69 + 89
----
-397566

query I rowsort
SELECT ALL - COALESCE ( + + 52, + 81 ) AS col1
----
-52

query I rowsort
SELECT ALL + 22 * 25 AS col2
----
550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7972
SELECT ALL - CAST( + 21 AS SIGNED ) DIV + - 22 + - 55 DIV COUNT( * ) + + - ( COUNT( * ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL - CAST ( + 21 AS INTEGER ) / + - 22 + - 55 / COUNT ( * ) + + - ( COUNT ( * ) ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-7973
SELECT DISTINCT + CASE - 65 WHEN - COUNT( - + 69 ) THEN - 33 ELSE NULL END, - CASE + 82 WHEN - + ( + - CASE + + 35 WHEN + 68 THEN - COALESCE ( MAX( ALL + 49 ), 17 - + + 84 ) + + COUNT( * ) + - + AVG ( + 69 ) - - 4 * 30 + 61 * + 82 * + COUNT( * ) + - 41 * 52 WHEN - + 98 / + 76 + + 75 THEN - - 72 END ) + 62 THEN NULL WHEN 43 THEN - 47 ELSE + 37 + 84 END + - CASE WHEN NOT + 22 + 43 >= NULL THEN - 27 ELSE NULL END * - 15
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7973
SELECT DISTINCT + CASE - 65 WHEN - COUNT ( - + 69 ) THEN - 33 ELSE NULL END, - CASE + 82 WHEN - + ( + - CASE + + 35 WHEN + 68 THEN - COALESCE ( MAX ( ALL + 49 ), 17 - + + 84 ) + + COUNT ( * ) + - + AVG ( + 69 ) - - 4 * 30 + 61 * + 82 * + COUNT ( * ) + - 41 * 52 WHEN - + 98 / + 76 + + 75 THEN - - 72 END ) + 62 THEN NULL WHEN 43 THEN - 47 ELSE + 37 + 84 END + - CASE WHEN NOT + 22 + 43 >= NULL THEN - 27 ELSE NULL END * - 15
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7974
SELECT DISTINCT 69 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT 69 / 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT 44 DIV - 37 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7975
SELECT 44 / - 37 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT 14 * 10 * - - COUNT( * ) AS col2
----
140

skipif mysql # not compatible
query I rowsort label-7976
SELECT 14 * 10 * - - COUNT ( * ) AS col2
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7977
SELECT ( - CAST( CAST( 91 AS SIGNED ) AS SIGNED ) ) + + + 34
----
-57

skipif mysql # not compatible
query I rowsort label-7977
SELECT ( - CAST ( CAST ( 91 AS INTEGER ) AS INTEGER ) ) + + + 34
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT ALL + CAST( NULL AS SIGNED ) * + 92 * + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL + CAST ( NULL AS INTEGER ) * + 92 * + - 5
----
NULL

query I rowsort
SELECT - CASE + 11 WHEN + 72 THEN NULL WHEN - - 96 * 64 * + 35 THEN NULL ELSE + 77 * - 99 - 72 + + 21 END
----
7674

onlyif mysql # DIV for integer division: 
query I rowsort label-7980
SELECT - 63 DIV + 17 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7980
SELECT - 63 / + 17 AS col2
----
-3

query I rowsort
SELECT ALL 68 + 99
----
167

query I rowsort
SELECT ALL - 75 + + 76
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT ALL + 12 + - + 12 + + 1 + + + 27 * 81 + + 93 DIV 20
----
2192

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL + 12 + - + 12 + + 1 + + + 27 * 81 + + 93 / 20
----
2192

onlyif mysql # aggregate syntax: 
query II rowsort label-7984
SELECT DISTINCT - 57 + 78 * 16 AS col2, 96 * + 54 * ( + - COALESCE ( - 31, + 94, + - ( 45 ) ) ) - - 58 + 48 + + 95 * - COALESCE ( COUNT( * ), - 26, 26, - 87 ) + + 85 * + 59 - + 28 + - COUNT( * ) * - 50 * 29 AS col2
----
1191
167152

skipif mysql # not compatible
query II rowsort label-7984
SELECT DISTINCT - 57 + 78 * 16 AS col2, 96 * + 54 * ( + - COALESCE ( - 31, + 94, + - ( 45 ) ) ) - - 58 + 48 + + 95 * - COALESCE ( COUNT ( * ), - 26, 26, - 87 ) + + 85 * + 59 - + 28 + - COUNT ( * ) * - 50 * 29 AS col2
----
1191
167152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7985
SELECT DISTINCT CASE SUM( ALL - CASE - 59 WHEN 59 THEN NULL WHEN 62 THEN NULL ELSE + 86 END ) WHEN 50 THEN NULL ELSE + 76 + 6 + 98 * COALESCE ( + COALESCE ( - 5, + 18 DIV + 5 - 87 + 91 * + 16, + - 79 + 29 + 78 + + 71 * + 90 * 69 ), - - COALESCE ( 78, - + COALESCE ( - 21, - CASE - - 88 WHEN - + 91 THEN NULL ELSE + 80 + 99 END ) ) * COUNT( - 66 + 37 * - ( - 38 ) ) + - 65, 91 * 2 + + COUNT( * ), - 62 ) DIV 78 END col0
----
76

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT CASE SUM ( ALL - CASE - 59 WHEN 59 THEN NULL WHEN 62 THEN NULL ELSE + 86 END ) WHEN 50 THEN NULL ELSE + 76 + 6 + 98 * COALESCE ( + COALESCE ( - 5, + 18 / + 5 - 87 + 91 * + 16, + - 79 + 29 + 78 + + 71 * + 90 * 69 ), - - COALESCE ( 78, - + COALESCE ( - 21, - CASE - - 88 WHEN - + 91 THEN NULL ELSE + 80 + 99 END ) ) * COUNT ( - 66 + 37 * - ( - 38 ) ) + - 65, 91 * 2 + + COUNT ( * ), - 62 ) / 78 END col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7986
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - COUNT( * ) + + + 25 * 7 * + 37 * + + ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) + + + 25 * 7 * + 37 * + + ( - COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - 12 + 60 * - ( - + 89 )
----
5328

onlyif mysql # aggregate syntax: 
query III rowsort label-7988
SELECT - 20 - + + 13 + ( + 85 ) * + ( COUNT( * ) ) AS col1, - COUNT( - 44 ) + + 63, + 65 * + - 13 + 78 AS col2
----
52
62
-767

skipif mysql # not compatible
query III rowsort label-7988
SELECT - 20 - + + 13 + ( + 85 ) * + ( COUNT ( * ) ) AS col1, - COUNT ( - 44 ) + + 63, + 65 * + - 13 + 78 AS col2
----
52
62
-767

query II rowsort
SELECT - 62 AS col2, + 33 AS col0
----
-62
33

query I rowsort
SELECT ALL - 86 * + 70 * + + 79
----
-475580

query I rowsort
SELECT + 78 * 57
----
4446

query I rowsort
SELECT DISTINCT - 68 * 11 AS col0
----
-748

query II rowsort
SELECT + + 55, - 16 * - - 85 * + 49 AS col0
----
55
-66640

query II rowsort
SELECT - 4 AS col0, - ( - 75 ) AS col2
----
-4
75

query I rowsort
SELECT ALL 53 * + 98
----
5194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7996
SELECT ALL - COUNT( 91 ) * - COUNT( * ) * - + COUNT( * ) DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL - COUNT ( 91 ) * - COUNT ( * ) * - + COUNT ( * ) / - 51
----
0

query I rowsort
SELECT ALL + ( + + 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT DISTINCT - + 56 * + + MAX( - 24 ) col2
----
1344

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT - + 56 * + + MAX ( - 24 ) col2
----
1344

query I rowsort
SELECT - 80 + + 79
----
-1

query II rowsort
SELECT + + 94 AS col1, + 31 AS col2
----
94
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8001
SELECT + 97 DIV 88 + + + 59
----
60

skipif mysql # not compatible
query I rowsort label-8001
SELECT + 97 / 88 + + + 59
----
60

query I rowsort
SELECT + + 17 * + + 19
----
323

query I rowsort
SELECT - - 48 + 16 AS col0
----
64

query I rowsort
SELECT + + 68 - 84 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT 98 * 82 * - - 95 * COUNT( * ) * - + 9 + 40
----
-6870740

skipif mysql # not compatible
query I rowsort label-8005
SELECT 98 * 82 * - - 95 * COUNT ( * ) * - + 9 + 40
----
-6870740

onlyif mysql # aggregate syntax: 
query II rowsort label-8006
SELECT ALL + + 69 AS col0, + 56 * MIN( ALL + - ( 17 ) ) * - 46 col2
----
69
43792

skipif mysql # not compatible
query II rowsort label-8006
SELECT ALL + + 69 AS col0, + 56 * MIN ( ALL + - ( 17 ) ) * - 46 col2
----
69
43792

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT + 39 * - 37 + + 88 * - COUNT( * ) * SUM( + 34 ) - - 73 AS col1
----
-4362

skipif mysql # not compatible
query I rowsort label-8007
SELECT + 39 * - 37 + + 88 * - COUNT ( * ) * SUM ( + 34 ) - - 73 AS col1
----
-4362

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT ALL + - CASE + - 63 WHEN + - 8 * + - COUNT( * ) THEN NULL ELSE + + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL + - CASE + - 63 WHEN + - 8 * + - COUNT ( * ) THEN NULL ELSE + + COUNT ( * ) END
----
-1

query II rowsort
SELECT DISTINCT + 70, + 4 col0
----
70
4

query I rowsort
SELECT - 5 * 36 * + - 97
----
17460

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT + + NULLIF ( - + 0, 12 ) * + 97 + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8011
SELECT + + NULLIF ( - + 0, 12 ) * + 97 + + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL - 12 * NULLIF ( - 64, - 64 ) + + 66
----
NULL

query I rowsort
SELECT DISTINCT 54 * + - 81 AS col0
----
-4374

query I rowsort
SELECT - ( + + 21 )
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-8015
SELECT + 87 * + 92 AS col2, + 3 + + 7 DIV - - 88
----
8004
3

skipif mysql # not compatible
query II rowsort label-8015
SELECT + 87 * + 92 AS col2, + 3 + + 7 / - - 88
----
8004
3

query I rowsort
SELECT + 92 * 28 AS col0
----
2576

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT COUNT( + - 24 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8017
SELECT COUNT ( + - 24 ) col1
----
1

query I rowsort
SELECT ALL 74 + + 90 + + 46
----
210

query I rowsort
SELECT - ( 45 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT + 57 - SUM( ALL - 14 ) + - + 75 + - + 72 * COUNT( + 70 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-8020
SELECT + 57 - SUM ( ALL - 14 ) + - + 75 + - + 72 * COUNT ( + 70 ) AS col0
----
-76

query I rowsort
SELECT + COALESCE ( 44, + ( - 70 ), + - 70 ) + + CASE - + 79 WHEN - 5 / + ( - 30 ) THEN NULL ELSE - 14 * + ( - 61 ) * + 28 + + 22 - + ( + - 9 ) END AS col1
----
23987

query I rowsort
SELECT - NULLIF ( 63, + 40 )
----
-63

query I rowsort
SELECT ALL 15 + - 18 * - 90 AS col2
----
1635

query I rowsort
SELECT + 21 + 46 * 45 * + 14
----
29001

query I rowsort
SELECT DISTINCT 32 * - 80
----
-2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT + 97 + + + 45 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT + 97 + + + 45 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 3 - + 56 AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8028
SELECT - CASE WHEN NOT NULL < - COUNT( * ) THEN - 99 * 79 * - 73 - + + 47 WHEN NOT COALESCE ( + 40, CAST( + - COALESCE ( + 97, + AVG ( - - 97 ) * 47 - - 12, + 2 ) AS DECIMAL ), - + 1 ) * + 54 + MIN( + - 37 ) IS NULL THEN NULL END * + + COALESCE ( + + 44, + 33, - 38 * + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8028
SELECT - CASE WHEN NOT NULL < - COUNT ( * ) THEN - 99 * 79 * - 73 - + + 47 WHEN NOT COALESCE ( + 40, CAST ( + - COALESCE ( + 97, + AVG ( - - 97 ) * 47 - - 12, + 2 ) AS REAL ), - + 1 ) * + 54 + MIN ( + - 37 ) IS NULL THEN NULL END * + + COALESCE ( + + 44, + 33, - 38 * + - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 54 * - - 38 * 74 AS col0
----
151848

query I rowsort
SELECT + AVG ( DISTINCT + 4 ) + + CASE 20 WHEN - ( + 87 ) THEN - 85 + - 85 WHEN + 88 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8031
SELECT + 67 + COUNT( * ) col1, + COUNT( * )
----
68
1

skipif mysql # not compatible
query II rowsort label-8031
SELECT + 67 + COUNT ( * ) col1, + COUNT ( * )
----
68
1

query I rowsort
SELECT DISTINCT 72 * - 62 * 60
----
-267840

query I rowsort
SELECT - ( + 55 ) + - 22 AS col2
----
-77

query I rowsort
SELECT - - 38 + + 79 + 14 + + - 29 * 3 * - 78 + - 48 AS col1
----
6869

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT + + 27 * - CASE - - ( - COUNT( * ) ) WHEN 3 / + COUNT( * ) - ( + COALESCE ( 28, - 58 * 9 * + + 80 * + + 40 ) ) - 61 THEN 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT + + 27 * - CASE - - ( - COUNT ( * ) ) WHEN 3 / + COUNT ( * ) - ( + COALESCE ( 28, - 58 * 9 * + + 80 * + + 40 ) ) - 61 THEN 66 ELSE NULL END
----
NULL

query II rowsort
SELECT - + 63 + + 0 AS col1, 46
----
-63
46

query I rowsort
SELECT - - 88 * - - 85 + 82
----
7562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8038
SELECT + - ( - COUNT( * ) ), + 42 + + + CAST( NULL AS SIGNED ) - 76 + + + 75 * 31 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8038
SELECT + - ( - COUNT ( * ) ), + 42 + + + CAST ( NULL AS INTEGER ) - 76 + + + 75 * 31 AS col0
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8039
SELECT - MAX( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) * + ( - 88 ) + 85 + + ( 4 ) + + 20 + + 44 + + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8039
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) * + ( - 88 ) + 85 + + ( 4 ) + + 20 + + 44 + + 99 AS col0
----
NULL

query II rowsort
SELECT + NULLIF ( 27, - 9 / - 61 + 2 ) col0, ( 62 ) * - 49
----
27
-3038

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8041
SELECT - + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT - + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + + 19
----
NULL

query I rowsort
SELECT - + 27 * + - 75 * 25 AS col2
----
50625

query I rowsort
SELECT NULLIF ( + 4, + - 30 + - 27 * 24 * + 81 ) AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8044
SELECT ALL - ( COUNT( * ) ) DIV + + 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL - ( COUNT ( * ) ) / + + 24 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8045
SELECT ALL - + 25 / - + 63 - + 97 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL - + 25 / - + 63 - + 97 + - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 50 * + + 69
----
-3450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8047
SELECT ALL + CAST( NULL AS SIGNED ) * - + 11 - + - ( - MIN( ALL + 12 ) ) + + CAST( NULL AS DECIMAL ) * - + 75 * - - 46 + 65 + + 78 * + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 11 - + - ( - MIN ( ALL + 12 ) ) + + CAST ( NULL AS REAL ) * - + 75 * - - 46 + 65 + + 78 * + 8 AS col1
----
NULL

query I rowsort
SELECT - - 58 * + - 99 - + 64 + + 31 * + 24 - - COALESCE ( + - 7, - 52 ) AS col1
----
-5069

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT ALL - - COUNT( ALL - 21 )
----
1

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL - - COUNT ( ALL - 21 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8050
SELECT DISTINCT - CASE + 91 WHEN + 82 + 54 + 44 + + - CAST( - ( - - 76 ) AS SIGNED ) + 4 + + + 66 + COALESCE ( + 91, + 59 + - + 81, + 5 ) * 80 + - + 82 THEN - ( 75 ) + - 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT - CASE + 91 WHEN + 82 + 54 + 44 + + - CAST ( - ( - - 76 ) AS INTEGER ) + 4 + + + 66 + COALESCE ( + 91, + 59 + - + 81, + 5 ) * 80 + - + 82 THEN - ( 75 ) + - 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT ALL 34 + 95 + ( - COUNT( * ) )
----
128

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL 34 + 95 + ( - COUNT ( * ) )
----
128

query II rowsort
SELECT DISTINCT - 11 AS col1, 46
----
-11
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT DISTINCT - 30 + - COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT - 30 + - COUNT ( * ) AS col0
----
-31

query I rowsort
SELECT ALL 27 * + + 81 AS col1
----
2187

query II rowsort
SELECT 59 + - - 91 - - 46, 16 AS col2
----
196
16

query II rowsort
SELECT 33 AS col0, 27
----
33
27

query II rowsort
SELECT ALL 74 - - 62 * 5 col1, 30
----
384
30

query I rowsort
SELECT 43 * + - 24 AS col2
----
-1032

query I rowsort
SELECT 52 + - 75 * 82 * - 58
----
356752

query II rowsort
SELECT 84, 96 AS col2
----
84
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8061
SELECT 94 + - + 44 * - + 34 AS col2, CAST( NULL AS SIGNED ) AS col0
----
1590
NULL

skipif mysql # not compatible
query II rowsort label-8061
SELECT 94 + - + 44 * - + 34 AS col2, CAST ( NULL AS INTEGER ) AS col0
----
1590
NULL

query I rowsort
SELECT DISTINCT 85 - ( - + 55 ) col2
----
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8063
SELECT 72 DIV - ( + COUNT( * ) ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-8063
SELECT 72 / - ( + COUNT ( * ) ) col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT - 58 - + 40 + + MAX( ALL + + ( + 35 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-8064
SELECT - 58 - + 40 + + MAX ( ALL + + ( + 35 ) )
----
-63

query I rowsort
SELECT 62 * 98 * 70
----
425320

query II rowsort
SELECT DISTINCT 95, - 74 AS col1
----
95
-74

query I rowsort
SELECT ALL 2 * 98 * 19 + 41
----
3765

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT - 71 - + NULLIF ( - + COUNT( * ), - - 91 + + 89 + + COUNT( * ) * + + 28 ) + - + 7
----
-77

skipif mysql # not compatible
query I rowsort label-8068
SELECT - 71 - + NULLIF ( - + COUNT ( * ), - - 91 + + 89 + + COUNT ( * ) * + + 28 ) + - + 7
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT + 46 * + 99 * - CASE 77 WHEN - COALESCE ( 27, + 34 + 13 ) * 27 THEN NULL ELSE + + 46 * - + COUNT( * ) END AS col0
----
209484

skipif mysql # not compatible
query I rowsort label-8069
SELECT + 46 * + 99 * - CASE 77 WHEN - COALESCE ( 27, + 34 + 13 ) * 27 THEN NULL ELSE + + 46 * - + COUNT ( * ) END AS col0
----
209484

query II rowsort
SELECT - - 10 AS col0, + 40 AS col2
----
10
40

query I rowsort
SELECT 41 * - - ( + + ( + - 71 ) )
----
-2911

query II rowsort
SELECT - 12 * + 35 * + 93, 91 AS col1
----
-39060
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8073
SELECT DISTINCT 86 + - COUNT( ALL + 30 ) + + CAST( - - 78 AS SIGNED )
----
163

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT 86 + - COUNT ( ALL + 30 ) + + CAST ( - - 78 AS INTEGER )
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT ALL - 96 + + 54 + 39 * 32 * COUNT( * ) - + COUNT( * )
----
1205

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL - 96 + + 54 + 39 * 32 * COUNT ( * ) - + COUNT ( * )
----
1205

query I rowsort
SELECT DISTINCT - NULLIF ( - - 79, - ( 28 ) + + + 64 - + - 50 ) AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8076
SELECT + CAST( - - 91 AS SIGNED ) * 82 AS col2
----
7462

skipif mysql # not compatible
query I rowsort label-8076
SELECT + CAST ( - - 91 AS INTEGER ) * 82 AS col2
----
7462

query I rowsort
SELECT ( - + 38 ) col1
----
-38

query I rowsort
SELECT ALL - - 71 + - - 76 col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT 59 + - - COUNT( * ) col2
----
60

skipif mysql # not compatible
query I rowsort label-8079
SELECT 59 + - - COUNT ( * ) col2
----
60

query I rowsort
SELECT ALL + 60 + 69 * 17 AS col0
----
1233

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT - 75 * - - CASE - + COUNT( - - 18 ) WHEN - + NULLIF ( 79, - + 52 ) THEN NULL WHEN - 31 THEN NULL ELSE - 7 * - - 99 END + + 29 * + + ( 92 ) * - 33 AS col0
----
-36069

skipif mysql # not compatible
query I rowsort label-8081
SELECT - 75 * - - CASE - + COUNT ( - - 18 ) WHEN - + NULLIF ( 79, - + 52 ) THEN NULL WHEN - 31 THEN NULL ELSE - 7 * - - 99 END + + 29 * + + ( 92 ) * - 33 AS col0
----
-36069

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8082
SELECT ALL + + 58 * + ( - - 63 ) * - 45 * - 56, CAST( + 50 AS SIGNED ) * 24 col0
----
9208080
1200

skipif mysql # not compatible
query II rowsort label-8082
SELECT ALL + + 58 * + ( - - 63 ) * - 45 * - 56, CAST ( + 50 AS INTEGER ) * 24 col0
----
9208080
1200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8083
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, + CAST( NULL AS SIGNED ) - + 16 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8083
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) - + 16 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8084
SELECT ALL - COUNT( * ) col0, 8 * - 21 col2
----
-1
-168

skipif mysql # not compatible
query II rowsort label-8084
SELECT ALL - COUNT ( * ) col0, 8 * - 21 col2
----
-1
-168

query I rowsort
SELECT DISTINCT + 71 * - 21 AS col2
----
-1491

query I rowsort
SELECT 43 * - ( - 74 )
----
3182

query I rowsort
SELECT - 43 * 32 + - 58
----
-1434

query II rowsort
SELECT - 44 AS col0, 37 * 71
----
-44
2627

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8089
SELECT 58 + - 22 * + + COUNT( * ) - 95 + 95 DIV 89 * 10 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-8089
SELECT 58 + - 22 * + + COUNT ( * ) - 95 + 95 / 89 * 10 AS col1
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8090
SELECT ALL - 27 DIV MAX( + + 55 ) * 5 * 93
----
0

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL - 27 / MAX ( + + 55 ) * 5 * 93
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8091
SELECT 68 * + + COUNT( * ), MIN( + - 43 ) * ( - - 19 ) + + ( + 71 ) AS col0
----
68
-746

skipif mysql # not compatible
query II rowsort label-8091
SELECT 68 * + + COUNT ( * ), MIN ( + - 43 ) * ( - - 19 ) + + ( + 71 ) AS col0
----
68
-746

onlyif mysql # aggregate syntax: 
query II rowsort label-8092
SELECT ALL 2, - COUNT( 60 ) * - 52 * 53 AS col2
----
2
2756

skipif mysql # not compatible
query II rowsort label-8092
SELECT ALL 2, - COUNT ( 60 ) * - 52 * 53 AS col2
----
2
2756

query I rowsort
SELECT ALL 20 - - - 36 - 41 AS col0
----
-57

query I rowsort
SELECT 78 * + 88 * NULLIF ( + 27, - 63 + + - 98 )
----
185328

onlyif mysql # DIV for integer division: 
query I rowsort label-8095
SELECT DISTINCT - 36 DIV ( + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT - 36 / ( + 88 )
----
0

query I rowsort
SELECT 93 + - 63 AS col2
----
30

query I rowsort
SELECT 67 * - 19 AS col1
----
-1273

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT 74 + + NULLIF ( + COUNT( * ), + - 37 + 44 + 10 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-8098
SELECT 74 + + NULLIF ( + COUNT ( * ), + - 37 + 44 + 10 ) AS col0
----
75

query II rowsort
SELECT ALL + 89 AS col1, 71 AS col0
----
89
71

query I rowsort
SELECT - 69 + + 41 + + 23
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT 56 + + MAX( DISTINCT + - ( + + 10 ) ) + - 62 * 90 + 20 AS col0
----
-5514

skipif mysql # not compatible
query I rowsort label-8101
SELECT 56 + + MAX ( DISTINCT + - ( + + 10 ) ) + - 62 * 90 + 20 AS col0
----
-5514

onlyif mysql # aggregate syntax: 
query II rowsort label-8102
SELECT - COUNT( * ) AS col0, + 54
----
-1
54

skipif mysql # not compatible
query II rowsort label-8102
SELECT - COUNT ( * ) AS col0, + 54
----
-1
54

query I rowsort
SELECT ALL + 0 + - - 31
----
31

query I rowsort
SELECT + 5 + + + 79
----
84

query I rowsort
SELECT ALL - 25 + - 1 - ( 69 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT - 19 + + COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-8106
SELECT - 19 + + COUNT ( * ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT ALL 89 + COUNT( - - 8 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL 89 + COUNT ( - - 8 ) AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8108
SELECT DISTINCT - COUNT( * ) AS col2, CAST( + 57 AS SIGNED )
----
-1
57

skipif mysql # not compatible
query II rowsort label-8108
SELECT DISTINCT - COUNT ( * ) AS col2, CAST ( + 57 AS INTEGER )
----
-1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT - ( + 30 ) * + COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8109
SELECT - ( + 30 ) * + COUNT ( * ) AS col1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8110
SELECT DISTINCT - 23 DIV - + 30
----
0

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT - 23 / - + 30
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8111
SELECT + ( + 4 ) DIV - 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-8111
SELECT + ( + 4 ) / - 82 col2
----
0

query I rowsort
SELECT + - 67 * - 38 AS col1
----
2546

query I rowsort
SELECT ALL 83 * 71 - + + 8 + - 40 * 65 AS col2
----
3285

onlyif mysql # DIV for integer division: 
query II rowsort label-8114
SELECT + 16 DIV + 39, + 42 AS col2
----
0
42

skipif mysql # not compatible
query II rowsort label-8114
SELECT + 16 / + 39, + 42 AS col2
----
0
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT + 4 * - MIN( - 66 ) AS col0
----
264

skipif mysql # not compatible
query I rowsort label-8115
SELECT + 4 * - MIN ( - 66 ) AS col0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT MAX( - 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-8116
SELECT MAX ( - 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT + 39 * - + 3 - + 45 + + ( COUNT( * ) ) + - 26 * + 21 + + - 21 + + + 69 AS col0
----
-659

skipif mysql # not compatible
query I rowsort label-8117
SELECT + 39 * - + 3 - + 45 + + ( COUNT ( * ) ) + - 26 * + 21 + + - 21 + + + 69 AS col0
----
-659

query I rowsort
SELECT DISTINCT + 49 * 17 * 81 * + 90 AS col2
----
6072570

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8119
SELECT - CAST( NULL AS DECIMAL ) * ( 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8119
SELECT - CAST ( NULL AS REAL ) * ( 57 )
----
NULL

query I rowsort
SELECT ALL - 22 * 30
----
-660

query I rowsort
SELECT - 44 + + ( + 21 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT ALL MAX( + 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL MAX ( + 86 ) AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8123
SELECT CAST( - + 49 AS SIGNED ) * - + COUNT( * ) * - 28 - - + 49 * + 79 AS col1
----
2499

skipif mysql # not compatible
query I rowsort label-8123
SELECT CAST ( - + 49 AS INTEGER ) * - + COUNT ( * ) * - 28 - - + 49 * + 79 AS col1
----
2499

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL - 32 * + MAX( + - 76 ) AS col1
----
2432

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL - 32 * + MAX ( + - 76 ) AS col1
----
2432

onlyif mysql # DIV for integer division: 
query I rowsort label-8125
SELECT + 90 DIV - - 9
----
10

skipif mysql # not compatible
query I rowsort label-8125
SELECT + 90 / - - 9
----
10

query I rowsort
SELECT - 96 * - 28 * - + 12
----
-32256

query I rowsort
SELECT ALL - 23 * + - NULLIF ( - + 21, 14 ) AS col1
----
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT DISTINCT - 5 + + - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT - 5 + + - COUNT ( * )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8129
SELECT - + 90 DIV - 14
----
6

skipif mysql # not compatible
query I rowsort label-8129
SELECT - + 90 / - 14
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL - MIN( - 75 ) + - - COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL - MIN ( - 75 ) + - - COUNT ( * ) AS col1
----
76

query I rowsort
SELECT - - ( + 26 ) * - + 43 * 17
----
-19006

query I rowsort
SELECT DISTINCT - + 5 + 29
----
24

query I rowsort
SELECT ALL 20 + + - 57 AS col1
----
-37

query I rowsort
SELECT - 90 * - 60 * + 26
----
140400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8135
SELECT ALL - 18 + - CASE 26 WHEN + COUNT( * ) THEN NULL ELSE + ( 95 ) * + - 81 END * - CAST( NULL AS DECIMAL ) + + CAST( + COUNT( * ) AS SIGNED ) + - + ( - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL - 18 + - CASE 26 WHEN + COUNT ( * ) THEN NULL ELSE + ( 95 ) * + - 81 END * - CAST ( NULL AS REAL ) + + CAST ( + COUNT ( * ) AS INTEGER ) + - + ( - 55 )
----
NULL

query I rowsort
SELECT - 3 * 43 * 37 AS col2
----
-4773

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT - CASE + 13 WHEN 66 THEN NULL WHEN AVG ( ALL - 58 ) * + CASE + 58 WHEN MIN( ALL + - 91 ) + - COUNT( * ) * 89 THEN NULL ELSE 76 * + 2 - 88 END + - 1 * 8 * + CASE - CASE - + ( + 2 ) WHEN - 59 THEN - 34 END WHEN 87 * 60 + - 83 THEN NULL WHEN - 77 * - - ( - 15 ) + + 90 / + 22 + - - 31 * + + 94 THEN + - ( - - 45 ) / + AVG ( + 99 ) END THEN + - 44 / + 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8137
SELECT - CASE + 13 WHEN 66 THEN NULL WHEN AVG ( ALL - 58 ) * + CASE + 58 WHEN MIN ( ALL + - 91 ) + - COUNT ( * ) * 89 THEN NULL ELSE 76 * + 2 - 88 END + - 1 * 8 * + CASE - CASE - + ( + 2 ) WHEN - 59 THEN - 34 END WHEN 87 * 60 + - 83 THEN NULL WHEN - 77 * - - ( - 15 ) + + 90 / + 22 + - - 31 * + + 94 THEN + - ( - - 45 ) / + AVG ( + 99 ) END THEN + - 44 / + 59 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8138
SELECT - - 63 - - CAST( NULL AS SIGNED ), - CASE + 8 WHEN + 3 * + 46 * - 22 THEN + - 66 ELSE NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8138
SELECT - - 63 - - CAST ( NULL AS INTEGER ), - CASE + 8 WHEN + 3 * + 46 * - 22 THEN + - 66 ELSE NULL END AS col1
----
NULL
NULL

query I rowsort
SELECT - ( 11 ) col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8140
SELECT ALL + + 92 * + CAST( NULL AS SIGNED ) * + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL + + 92 * + CAST ( NULL AS INTEGER ) * + 87 AS col0
----
NULL

query I rowsort
SELECT - + ( + 40 ) + - 17
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT + - 82 * - - 69 * COUNT( * ) + - - ( 19 ) AS col2
----
-5639

skipif mysql # not compatible
query I rowsort label-8142
SELECT + - 82 * - - 69 * COUNT ( * ) + - - ( 19 ) AS col2
----
-5639

onlyif mysql # aggregate syntax: 
query II rowsort label-8143
SELECT ALL - 77 * + COUNT( * ), + 31 * + - 82 * 0 AS col1
----
-77
0

skipif mysql # not compatible
query II rowsort label-8143
SELECT ALL - 77 * + COUNT ( * ), + 31 * + - 82 * 0 AS col1
----
-77
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8144
SELECT ALL + 2 + + MAX( DISTINCT + 90 ) * 17 + + 3 DIV + + 74 + - 67 col1, + CAST( NULL AS DECIMAL ) * COUNT( * ) AS col1
----
1465
NULL

skipif mysql # not compatible
query II rowsort label-8144
SELECT ALL + 2 + + MAX ( DISTINCT + 90 ) * 17 + + 3 / + + 74 + - 67 col1, + CAST ( NULL AS REAL ) * COUNT ( * ) AS col1
----
1465
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT DISTINCT + MAX( DISTINCT - + 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT + MAX ( DISTINCT - + 54 ) AS col2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8146
SELECT DISTINCT + + COUNT( + 19 ) DIV NULLIF ( 77, 51 - - - 75 ) DIV 72 + - + 37 + + 48 DIV + ( - 53 ) DIV COUNT( * ) + - 41 - - COUNT( DISTINCT + - 74 ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-8146
SELECT DISTINCT + + COUNT ( + 19 ) / NULLIF ( 77, 51 - - - 75 ) / 72 + - + 37 + + 48 / + ( - 53 ) / COUNT ( * ) + - 41 - - COUNT ( DISTINCT + - 74 ) col1
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8147
SELECT - 4 * - 12 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-8147
SELECT - 4 * - 12 / - 59
----
0

query I rowsort
SELECT + 10 * + - 67
----
-670

query I rowsort
SELECT ALL 51 * 25 AS col0
----
1275

query I rowsort
SELECT + 63 - - 44 * + 57
----
2571

query I rowsort
SELECT + ( + ( 81 ) )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8152
SELECT DISTINCT MIN( + 7 ) * - 4 AS col1, 63 AS col2
----
-28
63

skipif mysql # not compatible
query II rowsort label-8152
SELECT DISTINCT MIN ( + 7 ) * - 4 AS col1, 63 AS col2
----
-28
63

query I rowsort
SELECT ALL + CASE - AVG ( - 39 ) WHEN + 20 THEN + 26 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 9 * - 45 AS col2
----
-405

query I rowsort
SELECT COALESCE ( + 31, - + ( - + 85 ), 57 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT CASE ( + ( 63 ) ) WHEN - - 46 THEN 57 * 35 * - NULLIF ( COUNT( * ), - 14 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT CASE ( + ( 63 ) ) WHEN - - 46 THEN 57 * 35 * - NULLIF ( COUNT ( * ), - 14 ) END
----
NULL

query I rowsort
SELECT COALESCE ( + 80, + 15 )
----
80

query II rowsort
SELECT + ( 2 ) + - 86 + + 19 * 83 - 86 + + 43 + - - 14 AS col0, + 12 AS col2
----
1464
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT ALL ( ( - - COUNT( * ) ) ) * 97 * 35 + 21
----
3416

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL ( ( - - COUNT ( * ) ) ) * 97 * 35 + 21
----
3416

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT ALL - 1 * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL - 1 * + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8161
SELECT DISTINCT + + ( - + 6 ) * 96 + - 76 DIV + + 21 * COUNT( * ) + 20 - 9 DIV - + 19 * 69
----
-559

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT + + ( - + 6 ) * 96 + - 76 / + + 21 * COUNT ( * ) + 20 - 9 / - + 19 * 69
----
-559

query II rowsort
SELECT - 41, + 40 AS col0
----
-41
40

query I rowsort
SELECT ALL 48 * + + 76
----
3648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT + - 67 + + ( 34 ) + - CAST( - 28 AS SIGNED ) * 19
----
499

skipif mysql # not compatible
query I rowsort label-8164
SELECT + - 67 + + ( 34 ) + - CAST ( - 28 AS INTEGER ) * 19
----
499

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT - - MAX( - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-8165
SELECT - - MAX ( - 48 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8166
SELECT + 40 + + 83 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT + 40 + + 83 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 34 * - 23 AS col0
----
-782

query II rowsort
SELECT ALL 87 AS col1, 86 + - 39 + + 33
----
87
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8169
SELECT ALL + - 52 DIV + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL + - 52 / + COUNT ( * )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT ALL MAX( ALL 71 )
----
71

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL MAX ( ALL 71 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8171
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) / - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) / - 85
----
NULL

query I rowsort
SELECT + ( ( - 21 ) ) + - + 94 AS col0
----
-115

query II rowsort
SELECT 81, CASE - 35 WHEN - 43 THEN - + ( + 45 ) ELSE + 46 * 28 * - - 54 END AS col1
----
81
69552

query I rowsort
SELECT ALL - 67 * - - ( - - 8 )
----
-536

query I rowsort
SELECT DISTINCT + 12 - - + 80 col2
----
92

query I rowsort
SELECT DISTINCT - 49 * - ( - 39 ) AS col1
----
-1911

onlyif mysql # aggregate syntax: 
query II rowsort label-8177
SELECT 68 * + 6, 22 * + NULLIF ( - + COUNT( * ), 17 ) * + - COUNT( * ) + - ( 18 ) AS col1
----
408
4

skipif mysql # not compatible
query II rowsort label-8177
SELECT 68 * + 6, 22 * + NULLIF ( - + COUNT ( * ), 17 ) * + - COUNT ( * ) + - ( 18 ) AS col1
----
408
4

query I rowsort
SELECT DISTINCT - 49 * - 94 AS col1
----
4606

query I rowsort
SELECT ALL 97 + + 79 AS col2
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT ALL 15 DIV + + 59 * + + 28
----
0

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL 15 / + + 59 * + + 28
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT 59 * - - 4 * + - ( - CAST( NULL AS SIGNED ) ) + + - 93 + - 32 + + CASE + 72 WHEN + 72 + + 21 * + 52 THEN + 28 / + 60 * 32 END * + COALESCE ( 82, - 80 ) * - - 35 - - 65 * - - 72 + - + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT 59 * - - 4 * + - ( - CAST ( NULL AS INTEGER ) ) + + - 93 + - 32 + + CASE + 72 WHEN + 72 + + 21 * + 52 THEN + 28 / + 60 * 32 END * + COALESCE ( 82, - 80 ) * - - 35 - - 65 * - - 72 + - + 22 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 23 + + 77 + - 41 * 9 * + ( + 69 )
----
-25407

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT ALL 61 + COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL 61 + COUNT ( * ) AS col0
----
62

query II rowsort
SELECT 84 * + 56, 48 col1
----
4704
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT COUNT( * ) * + + 38 - - - 64 + - + 59 * + - 78 AS col0
----
4576

skipif mysql # not compatible
query I rowsort label-8185
SELECT COUNT ( * ) * + + 38 - - - 64 + - + 59 * + - 78 AS col0
----
4576

query I rowsort
SELECT ALL + 5 + + 14 - + + 68 AS col2
----
-49

query I rowsort
SELECT DISTINCT 90 * 3
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT ALL 7 + - - MAX( + 60 )
----
67

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL 7 + - - MAX ( + 60 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT DISTINCT MAX( + 68 ) + 2 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT MAX ( + 68 ) + 2 AS col2
----
70

query I rowsort
SELECT DISTINCT ( - + 5 ) * + ( + 52 ) * 50
----
-13000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8191
SELECT ALL + COUNT( * ) + + 93 * 5 - + COALESCE ( - 42, + CASE ( 10 ) WHEN - + 44 * + + 17 * + - 19 + 57 THEN + - 63 * 37 * COUNT( * ) + - 74 END DIV + COUNT( * ) + + + 78 * - 96 ) AS col1
----
508

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL + COUNT ( * ) + + 93 * 5 - + COALESCE ( - 42, + CASE ( 10 ) WHEN - + 44 * + + 17 * + - 19 + 57 THEN + - 63 * 37 * COUNT ( * ) + - 74 END / + COUNT ( * ) + + + 78 * - 96 ) AS col1
----
508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8192
SELECT - - ( - COALESCE ( - 27, + 42 DIV - 33 + SUM( DISTINCT + 60 ) ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8192
SELECT - - ( - COALESCE ( - 27, + 42 / - 33 + SUM ( DISTINCT + 60 ) ) ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT COUNT( ( 48 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8193
SELECT COUNT ( ( 48 ) )
----
1

query I rowsort
SELECT - 8 + + 4 * 44 AS col2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT DISTINCT COUNT( * ) - - 43
----
44

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT COUNT ( * ) - - 43
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT DISTINCT - 44 * + COUNT( * ) * + SUM( 55 )
----
-2420

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT - 44 * + COUNT ( * ) * + SUM ( 55 )
----
-2420

query I rowsort
SELECT 72 * - + 19 AS col1
----
-1368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT - CAST( + + 81 AS SIGNED ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-8198
SELECT - CAST ( + + 81 AS INTEGER ) AS col1
----
-81

query II rowsort
SELECT DISTINCT + 94 * + + 21, 81 + - 40 AS col1
----
1974
41

query I rowsort
SELECT + 32 + - 49 AS col2
----
-17

query I rowsort
SELECT - 41 - + 4
----
-45

query I rowsort
SELECT ( - 61 ) * + 85 * + 1 AS col1
----
-5185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8203
SELECT + CAST( NULL AS SIGNED ) * + 55 + + - 53 + + COUNT( + 47 ) * - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT + CAST ( NULL AS INTEGER ) * + 55 + + - 53 + + COUNT ( + 47 ) * - 61 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8204
SELECT - 54 + + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT - 54 + + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT - 24 DIV - 72 * + 34
----
0

skipif mysql # not compatible
query I rowsort label-8205
SELECT - 24 / - 72 * + 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT 28 + - + 59 * - + MAX( - 47 ) + + 40 + - - 10 - + NULLIF ( - 37, + + 92 ) + + 49
----
-2609

skipif mysql # not compatible
query I rowsort label-8206
SELECT 28 + - + 59 * - + MAX ( - 47 ) + + 40 + - - 10 - + NULLIF ( - 37, + + 92 ) + + 49
----
-2609

onlyif mysql # aggregate syntax: 
query II rowsort label-8207
SELECT 31, 24 + + + COALESCE ( - - 4, + - COUNT( * ) ) * - 50 AS col0
----
31
-176

skipif mysql # not compatible
query II rowsort label-8207
SELECT 31, 24 + + + COALESCE ( - - 4, + - COUNT ( * ) ) * - 50 AS col0
----
31
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT 62 + COUNT( * ) col2
----
63

skipif mysql # not compatible
query I rowsort label-8208
SELECT 62 + COUNT ( * ) col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8209
SELECT ALL CAST( NULL AS SIGNED ) * - 20 * + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL CAST ( NULL AS INTEGER ) * - 20 * + + 35
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8210
SELECT 99 DIV + - 30 - - + 2
----
-1

skipif mysql # not compatible
query I rowsort label-8210
SELECT 99 / + - 30 - - + 2
----
-1

query I rowsort
SELECT 87 - - - 82
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT + MIN( + 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-8212
SELECT + MIN ( + 97 ) AS col1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8213
SELECT 94 DIV 92 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8213
SELECT 94 / 92 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8214
SELECT - 89 DIV 50 * 22 + - 61 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8214
SELECT - 89 / 50 * 22 + - 61 AS col2
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8215
SELECT ALL - CAST( NULL AS DECIMAL ), CAST( NULL AS DECIMAL ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8215
SELECT ALL - CAST ( NULL AS REAL ), CAST ( NULL AS REAL ) AS col0
----
NULL
NULL

query I rowsort
SELECT 22 - + 80
----
-58

query I rowsort
SELECT ALL 38 * - + 45 * 82 + - + 40 * ( 75 ) AS col1
----
-143220

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * + 64 * - + 56 col0
----
-3584

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * + 64 * - + 56 col0
----
-3584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8219
SELECT ALL COALESCE ( + COUNT( * ), 72 * - + 33 + ( 3 ) * - CAST( NULL AS SIGNED ), + - ( - 92 ) * + 28 ) + + - 97 * - - 73 + + 77 * 88 + - COUNT( * ) + - - 54 + - + 75 * - - 8 AS col1, - 15
----
-851
-15

skipif mysql # not compatible
query II rowsort label-8219
SELECT ALL COALESCE ( + COUNT ( * ), 72 * - + 33 + ( 3 ) * - CAST ( NULL AS INTEGER ), + - ( - 92 ) * + 28 ) + + - 97 * - - 73 + + 77 * 88 + - COUNT ( * ) + - - 54 + - + 75 * - - 8 AS col1, - 15
----
-851
-15

query I rowsort
SELECT 12 * 41 AS col1
----
492

query I rowsort
SELECT ALL + 1 * + + 48
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8222
SELECT 22 + - COUNT( * ) + - - 83 DIV CAST( 27 AS SIGNED ), 60 AS col0
----
24
60

skipif mysql # not compatible
query II rowsort label-8222
SELECT 22 + - COUNT ( * ) + - - 83 / CAST ( 27 AS INTEGER ), 60 AS col0
----
24
60

query I rowsort
SELECT ALL - 30 - - 80
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8224
SELECT ALL + + 85 - + 7 * - 47 - - 15 DIV + MAX( DISTINCT + - 76 ) AS col0
----
414

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL + + 85 - + 7 * - 47 - - 15 / + MAX ( DISTINCT + - 76 ) AS col0
----
414

query I rowsort
SELECT - - 41 * - 43 + - - 93 AS col1
----
-1670

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8226
SELECT DISTINCT - 39 DIV 71 * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT - 39 / 71 * + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - + 75 + 83 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT - - COALESCE ( + 40, COUNT( * ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8228
SELECT - - COALESCE ( + 40, COUNT ( * ) ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8229
SELECT ALL 66 * + CAST( NULL AS SIGNED ) * 43 - - - COALESCE ( - 48, - + 88 * + - 50 + + 45 ) AS col0, 35 - - - 65 + - 63 AS col1
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-8229
SELECT ALL 66 * + CAST ( NULL AS INTEGER ) * 43 - - - COALESCE ( - 48, - + 88 * + - 50 + + 45 ) AS col0, 35 - - - 65 + - 63 AS col1
----
NULL
-93

query I rowsort
SELECT - - 1 + + 56
----
57

query I rowsort
SELECT ALL - 90 * - 70 * 89 * + - 66
----
-37006200

onlyif mysql # DIV for integer division: 
query I rowsort label-8232
SELECT DISTINCT + - 43 DIV + + 84
----
0

skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT + - 43 / + + 84
----
0

query I rowsort
SELECT + + 9 + - 51 + - 13
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT + - 51 DIV + 69 * - - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8234
SELECT + - 51 / + 69 * - - 94 AS col0
----
0

query I rowsort
SELECT ALL - 45 * + - 16
----
720

onlyif mysql # aggregate syntax: 
query II rowsort label-8236
SELECT + + ( - NULLIF ( + COUNT( * ), - 52 * 9 * - + MIN( COALESCE ( - 99, + 29 ) ) * + + 93 + + - ( + - 0 ) + - 77 ) ) * + NULLIF ( + - COUNT( * ), + 44 ) + - NULLIF ( - 34, - + 46 ) * - 1 AS col2, 29 + 16 + + 5 + - 8 * + - 44
----
-33
402

skipif mysql # not compatible
query II rowsort label-8236
SELECT + + ( - NULLIF ( + COUNT ( * ), - 52 * 9 * - + MIN ( COALESCE ( - 99, + 29 ) ) * + + 93 + + - ( + - 0 ) + - 77 ) ) * + NULLIF ( + - COUNT ( * ), + 44 ) + - NULLIF ( - 34, - + 46 ) * - 1 AS col2, 29 + 16 + + 5 + - 8 * + - 44
----
-33
402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT - - CAST( - CAST( 43 AS SIGNED ) AS SIGNED ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-8237
SELECT - - CAST ( - CAST ( 43 AS INTEGER ) AS INTEGER ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-8238
SELECT ALL 55 * + 54 - + 71, + CASE + + CASE + 80 WHEN + + 89 THEN - 46 / - + 28 + + - 35 - + + COALESCE ( COUNT( * ), + COUNT( * ) ) END WHEN - 83 THEN ( - COUNT( - 80 ) ) END col2
----
2899
NULL

skipif mysql # not compatible
query II rowsort label-8238
SELECT ALL 55 * + 54 - + 71, + CASE + + CASE + 80 WHEN + + 89 THEN - 46 / - + 28 + + - 35 - + + COALESCE ( COUNT ( * ), + COUNT ( * ) ) END WHEN - 83 THEN ( - COUNT ( - 80 ) ) END col2
----
2899
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8239
SELECT + 29 DIV - - SUM( DISTINCT 11 )
----
2

skipif mysql # not compatible
query I rowsort label-8239
SELECT + 29 / - - SUM ( DISTINCT 11 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8240
SELECT + COUNT( + - 24 ) + + - COUNT( * ) + - CAST( - 52 AS SIGNED ) AS col1, 49 AS col0
----
52
49

skipif mysql # not compatible
query II rowsort label-8240
SELECT + COUNT ( + - 24 ) + + - COUNT ( * ) + - CAST ( - 52 AS INTEGER ) AS col1, 49 AS col0
----
52
49

query I rowsort
SELECT + + 68 + 71 + 56 * 65 + - ( 11 ) AS col2
----
3768

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT - - 93 + + MAX( ALL 10 ) * - 15
----
-57

skipif mysql # not compatible
query I rowsort label-8242
SELECT - - 93 + + MAX ( ALL 10 ) * - 15
----
-57

query II rowsort
SELECT ALL 18, + 80 AS col0
----
18
80

query II rowsort
SELECT 79, - 54 AS col0
----
79
-54

query I rowsort
SELECT ALL + 4 + 62 * + - 29 AS col2
----
-1794

query I rowsort
SELECT DISTINCT + 95 * - 0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8247
SELECT DISTINCT 51 + + NULLIF ( 91, + CAST( - CAST( + 21 AS SIGNED ) AS DECIMAL ) )
----
142

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT 51 + + NULLIF ( 91, + CAST ( - CAST ( + 21 AS INTEGER ) AS REAL ) )
----
142

query I rowsort
SELECT ALL 86 + + 30 - - 11
----
127

query II rowsort
SELECT 73 col2, + 55
----
73
55

query II rowsort
SELECT ( COALESCE ( + 72, - 25 ) ) AS col2, 48
----
72
48

query I rowsort
SELECT + COALESCE ( + + 93, 27 + - 88 ) AS col1
----
93

query I rowsort
SELECT ALL - 64 * 43 + + NULLIF ( 3, 19 * + - 63 + - - 87 - 80 ) AS col0
----
-2749

onlyif mysql # DIV for integer division: 
query I rowsort label-8253
SELECT - 59 * - 44 + 17 DIV 12
----
2597

skipif mysql # not compatible
query I rowsort label-8253
SELECT - 59 * - 44 + 17 / 12
----
2597

query I rowsort
SELECT ( - - 96 ) AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT ALL - 48 * CAST( - 16 AS SIGNED ) + - 4
----
764

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL - 48 * CAST ( - 16 AS INTEGER ) + - 4
----
764

query I rowsort
SELECT - 14 * - 69
----
966

onlyif mysql # DIV for integer division: 
query I rowsort label-8257
SELECT ALL - 33 DIV ( 91 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL - 33 / ( 91 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT - 40 * + + 99 + 59 + - - 24 + COUNT( DISTINCT + + 60 ) * - 82 + 51 AS col2
----
-3908

skipif mysql # not compatible
query I rowsort label-8258
SELECT - 40 * + + 99 + 59 + - - 24 + COUNT ( DISTINCT + + 60 ) * - 82 + 51 AS col2
----
-3908

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT - 84 * - + SUM( 63 ) * + COUNT( * ) AS col0
----
5292

skipif mysql # not compatible
query I rowsort label-8259
SELECT - 84 * - + SUM ( 63 ) * + COUNT ( * ) AS col0
----
5292

query I rowsort
SELECT - 50 * + + 13 - + ( - 41 ) AS col2
----
-609

query I rowsort
SELECT ALL + 10 * 34 * 93 AS col2
----
31620

query II rowsort
SELECT DISTINCT + 42, + 81 + + + NULLIF ( - 10, NULLIF ( + + NULLIF ( - 22, - 48 ), + 38 ) ) AS col2
----
42
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT 46 * - + 46 - - + COUNT( 66 ) AS col2
----
-2115

skipif mysql # not compatible
query I rowsort label-8263
SELECT 46 * - + 46 - - + COUNT ( 66 ) AS col2
----
-2115

query II rowsort
SELECT ALL + 30 AS col2, 11 * ( + 45 ) AS col1
----
30
495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8265
SELECT ALL + 60 * - - 0 * + 6 + 25 + 91 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL + 60 * - - 0 * + 6 + 25 + 91 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT - - 55 * + CAST( - 80 AS SIGNED ) + - + 89 + 90 AS col1
----
-4399

skipif mysql # not compatible
query I rowsort label-8266
SELECT - - 55 * + CAST ( - 80 AS INTEGER ) + - + 89 + 90 AS col1
----
-4399

query I rowsort
SELECT ALL + 49 * 17
----
833

query II rowsort
SELECT 95 AS col2, NULLIF ( + 28, + - 50 ) * + + 93 * + + 48 + - 39 AS col2
----
95
124953

query I rowsort
SELECT DISTINCT COALESCE ( + - 43, - + 98 ) AS col0
----
-43

query I rowsort
SELECT - 0 * + NULLIF ( - 21, 58 * + 12 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8271
SELECT DISTINCT 95 AS col0, COALESCE ( - SUM( + + 22 ), 57 * - 86 ) DIV + 35
----
95
0

skipif mysql # not compatible
query II rowsort label-8271
SELECT DISTINCT 95 AS col0, COALESCE ( - SUM ( + + 22 ), 57 * - 86 ) / + 35
----
95
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT MAX( + + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-8272
SELECT MAX ( + + 62 )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT + + CAST( NULL AS SIGNED ) / CAST( - + 30 AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT + + CAST ( NULL AS INTEGER ) / CAST ( - + 30 AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT ALL - - 65 DIV - 55 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL - - 65 / - 55 AS col2
----
-1

query I rowsort
SELECT - + 28 * - 56
----
1568

query I rowsort
SELECT ALL NULLIF ( + 82, + - 34 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8277
SELECT ALL CASE 83 WHEN - + 28 + + - COUNT( * ) THEN NULL WHEN - - 84 / 71 + CAST( NULL AS SIGNED ) THEN - CASE - + 67 WHEN - 12 - AVG ( ALL 84 ) THEN + COUNT( * ) WHEN NULLIF ( 72, + 98 ) * - - 79 + - 9 + - - 67 * + 9 THEN NULL END * + 12 ELSE - 21 END + - 55 col1
----
-76

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL CASE 83 WHEN - + 28 + + - COUNT ( * ) THEN NULL WHEN - - 84 / 71 + CAST ( NULL AS INTEGER ) THEN - CASE - + 67 WHEN - 12 - AVG ( ALL 84 ) THEN + COUNT ( * ) WHEN NULLIF ( 72, + 98 ) * - - 79 + - 9 + - - 67 * + 9 THEN NULL END * + 12 ELSE - 21 END + - 55 col1
----
-76

query II rowsort
SELECT - + 42 AS col2, - 68 * - ( + 9 ) * 67 - 22 * 12 AS col2
----
-42
40740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8279
SELECT + + COUNT( + - 25 ) DIV - + 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8279
SELECT + + COUNT ( + - 25 ) / - + 45 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8280
SELECT ALL - - 73 + + NULLIF ( COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ), + 75 ) DIV + - 5
----
73

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL - - 73 + + NULLIF ( COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ), + 75 ) / + - 5
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8281
SELECT + 28 * + 36 * - + CAST( NULL AS SIGNED ) * + 98 * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT + 28 * + 36 * - + CAST ( NULL AS INTEGER ) * + 98 * + 37
----
NULL

query I rowsort
SELECT ALL + 36 + + + 13 + - 86
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8283
SELECT + 80 / CAST( NULL AS SIGNED ) / - + 86, + 70 AS col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-8283
SELECT + 80 / CAST ( NULL AS INTEGER ) / - + 86, + 70 AS col0
----
NULL
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8284
SELECT DISTINCT 45 * 0 AS col1, COUNT( * ) + + 54 * + - 74
----
0
-3995

skipif mysql # not compatible
query II rowsort label-8284
SELECT DISTINCT 45 * 0 AS col1, COUNT ( * ) + + 54 * + - 74
----
0
-3995

onlyif mysql # aggregate syntax: 
query II rowsort label-8285
SELECT + COUNT( * ) + 74 + + COUNT( * ), - 67 col1
----
76
-67

skipif mysql # not compatible
query II rowsort label-8285
SELECT + COUNT ( * ) + 74 + + COUNT ( * ), - 67 col1
----
76
-67

query I rowsort
SELECT DISTINCT + 19 * + 56 AS col1
----
1064

query I rowsort
SELECT ALL ( + 41 ) + - 82 + - 36
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8288
SELECT + 97 + - 52 DIV - + SUM( + 65 ) * + MAX( CAST( + 69 AS SIGNED ) )
----
97

skipif mysql # not compatible
query I rowsort label-8288
SELECT + 97 + - 52 / - + SUM ( + 65 ) * + MAX ( CAST ( + 69 AS INTEGER ) )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8289
SELECT + 14 - + CASE + - 16 WHEN - + 7 * 3 + + 52 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8289
SELECT + 14 - + CASE + - 16 WHEN - + 7 * 3 + + 52 THEN CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8290
SELECT ALL - CAST( NULL AS SIGNED ) * - - 61 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 61 col1
----
NULL

query II rowsort
SELECT + 90 + 77, 1 AS col1
----
167
1

query I rowsort
SELECT ALL 96 * - + 7
----
-672

query I rowsort
SELECT 93 * - 7 AS col0
----
-651

query I rowsort
SELECT DISTINCT 31 * - 24 AS col1
----
-744

onlyif mysql # DIV for integer division: 
query I rowsort label-8295
SELECT 83 DIV 59 + 23 col0
----
24

skipif mysql # not compatible
query I rowsort label-8295
SELECT 83 / 59 + 23 col0
----
24

query II rowsort
SELECT 12 + - - 12 AS col0, 77
----
24
77

query I rowsort
SELECT 47 * + 98 AS col0
----
4606

onlyif mysql # DIV for integer division: 
query I rowsort label-8298
SELECT 39 * - 19 DIV - + 79 DIV 13 * + 15 col0
----
0

skipif mysql # not compatible
query I rowsort label-8298
SELECT 39 * - 19 / - + 79 / 13 * + 15 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8299
SELECT - + 89 * NULLIF ( - 60, - - 34 ) - - - 81 / - + 52 + + - COUNT( * ) + CAST( NULL AS SIGNED ) / - - 1 / - NULLIF ( + - SUM( DISTINCT - + 73 ), - - 95 + + - CAST( - + ( - + COUNT( * ) ) AS SIGNED ) + - COUNT( * ) + COALESCE ( + + 82, - ( - MAX( 47 ) ), + 1 * 61 + 87 + 3 * + 53 ) * - 7 ) + - + 92 + + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT - + 89 * NULLIF ( - 60, - - 34 ) - - - 81 / - + 52 + + - COUNT ( * ) + CAST ( NULL AS INTEGER ) / - - 1 / - NULLIF ( + - SUM ( DISTINCT - + 73 ), - - 95 + + - CAST ( - + ( - + COUNT ( * ) ) AS INTEGER ) + - COUNT ( * ) + COALESCE ( + + 82, - ( - MAX ( 47 ) ), + 1 * 61 + 87 + 3 * + 53 ) * - 7 ) + - + 92 + + 49 AS col0
----
NULL

query I rowsort
SELECT ALL - ( 46 ) - ( + 57 ) AS col1
----
-103

query I rowsort
SELECT DISTINCT - 12 * + - 94
----
1128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8302
SELECT - 18 DIV - COUNT( * ) AS col1, - 48
----
18
-48

skipif mysql # not compatible
query II rowsort label-8302
SELECT - 18 / - COUNT ( * ) AS col1, - 48
----
18
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT DISTINCT - + COUNT( * ) * + 99 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT - + COUNT ( * ) * + 99 AS col2
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8304
SELECT ALL ( + + 67 ) DIV 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL ( + + 67 ) / 65 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT + 84 DIV - 31 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8305
SELECT + 84 / - 31 AS col1
----
-2

query I rowsort
SELECT 54 * - 40
----
-2160

query I rowsort
SELECT ALL + - 13 + - - 7 + - 44 AS col1
----
-50

query I rowsort
SELECT DISTINCT + - 1 + - 54
----
-55

query I rowsort
SELECT - ( - 25 ) + ( - - 60 ) AS col2
----
85

query I rowsort
SELECT ALL + 2 + - 11
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8311
SELECT DISTINCT - + 71 + + ( + CASE ( 11 ) WHEN 74 THEN NULL ELSE + CAST( NULL AS SIGNED ) END ) * 41 - + ( + + COUNT( * ) ) - - COUNT( * ) * 20 AS col0, - ( - 25 ) AS col0
----
NULL
25

skipif mysql # not compatible
query II rowsort label-8311
SELECT DISTINCT - + 71 + + ( + CASE ( 11 ) WHEN 74 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END ) * 41 - + ( + + COUNT ( * ) ) - - COUNT ( * ) * 20 AS col0, - ( - 25 ) AS col0
----
NULL
25

query I rowsort
SELECT ALL - 22 + 93 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT 3 + + SUM( - 89 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-8313
SELECT 3 + + SUM ( - 89 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT ALL - 11 + - - NULLIF ( + - 63, + + COUNT( ALL + + 77 ) ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL - 11 + - - NULLIF ( + - 63, + + COUNT ( ALL + + 77 ) ) col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8315
SELECT 12 col0, ( + CAST( NULL AS SIGNED ) ) * - 86
----
12
NULL

skipif mysql # not compatible
query II rowsort label-8315
SELECT 12 col0, ( + CAST ( NULL AS INTEGER ) ) * - 86
----
12
NULL

query I rowsort
SELECT 13 + 80 AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8317
SELECT DISTINCT 88 col0, CAST( NULL AS SIGNED ) * - 75 AS col1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-8317
SELECT DISTINCT 88 col0, CAST ( NULL AS INTEGER ) * - 75 AS col1
----
88
NULL

query II rowsort
SELECT - 89, + 55 AS col1
----
-89
55

query I rowsort
SELECT DISTINCT - 60 - + - 21
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8320
SELECT ALL - COALESCE ( COUNT( * ), - + 19 DIV - - COUNT( * ) ) - + ( - 23 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL - COALESCE ( COUNT ( * ), - + 19 / - - COUNT ( * ) ) - + ( - 23 ) AS col2
----
22

query I rowsort
SELECT 2 * - + 68
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT COUNT( * ) * + 38 * + ( + 84 )
----
3192

skipif mysql # not compatible
query I rowsort label-8322
SELECT COUNT ( * ) * + 38 * + ( + 84 )
----
3192

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT - NULLIF ( + - COALESCE ( COUNT( * ), + - 62, 85 ), + - 13 ) * NULLIF ( + 41, COUNT( + - CASE + + 42 WHEN 33 + - 72 THEN - 95 END ) + 56 * + 9 * - + 83 - - COUNT( * ) + + 38 / 66 ) + - + 12 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-8323
SELECT - NULLIF ( + - COALESCE ( COUNT ( * ), + - 62, 85 ), + - 13 ) * NULLIF ( + 41, COUNT ( + - CASE + + 42 WHEN 33 + - 72 THEN - 95 END ) + 56 * + 9 * - + 83 - - COUNT ( * ) + + 38 / 66 ) + - + 12 AS col1
----
29

query I rowsort
SELECT 28 * + 73 * + 60 * + 61
----
7481040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8325
SELECT ALL - + NULLIF ( CAST( + + 61 AS SIGNED ), ( 55 ) - - MIN( ALL - 50 ) ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL - + NULLIF ( CAST ( + + 61 AS INTEGER ), ( 55 ) - - MIN ( ALL - 50 ) ) AS col2
----
-61

query I rowsort
SELECT ALL - 27 * - 10
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT 22 * + - MAX( DISTINCT + 27 ) + COUNT( * ) + - 67 AS col1
----
-660

skipif mysql # not compatible
query I rowsort label-8327
SELECT 22 * + - MAX ( DISTINCT + 27 ) + COUNT ( * ) + - 67 AS col1
----
-660

query II rowsort
SELECT + - 92, 19 AS col2
----
-92
19

query II rowsort
SELECT ALL - + 99 col2, 9 AS col0
----
-99
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8330
SELECT MIN( DISTINCT - + ( - - 64 ) ) AS col1, + 14 * - 68
----
-64
-952

skipif mysql # not compatible
query II rowsort label-8330
SELECT MIN ( DISTINCT - + ( - - 64 ) ) AS col1, + 14 * - 68
----
-64
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT + COUNT( * ) * - + 13
----
-13

skipif mysql # not compatible
query I rowsort label-8331
SELECT + COUNT ( * ) * - + 13
----
-13

query I rowsort
SELECT - 91 * + + 58
----
-5278

query I rowsort
SELECT - + 13 * - - 35 * + 61 - + COALESCE ( - 91, 95 * - 59 + - 39 ) + + ( + + 58 ) * + 82
----
-22908

query II rowsort
SELECT + - 2, + 76 col1
----
-2
76

query I rowsort
SELECT + 9 + 32
----
41

query I rowsort
SELECT ALL - ( - 9 ) + - 35 + 19
----
-7

query I rowsort
SELECT - ( - - 60 ) AS col1
----
-60

query I rowsort
SELECT + ( - - 16 )
----
16

query I rowsort
SELECT 60 * - - 66 - + + 82 * 42 + 62 AS col0
----
578

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT CASE - 99 WHEN - COUNT( * ) THEN 16 * - - NULLIF ( COUNT( 24 ), CASE - 40 WHEN COALESCE ( - COUNT( * ), - 56 ) - + 34 THEN AVG ( + + 52 ) END ) * 15 WHEN 67 THEN - + 71 + + - 5 + - 3 * + 3 * + + COALESCE ( - COALESCE ( - + 79, + 75 ), 92 + - 9 ) + - 53 + - + ( + 12 ) * - - 59 + + 53 + - 27 - 1 * + NULLIF ( + 44, 10 + 75 * - - NULLIF ( - 40, + COUNT( - 58 ) ) ) END * + COUNT( * ) + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8340
SELECT CASE - 99 WHEN - COUNT ( * ) THEN 16 * - - NULLIF ( COUNT ( 24 ), CASE - 40 WHEN COALESCE ( - COUNT ( * ), - 56 ) - + 34 THEN AVG ( + + 52 ) END ) * 15 WHEN 67 THEN - + 71 + + - 5 + - 3 * + 3 * + + COALESCE ( - COALESCE ( - + 79, + 75 ), 92 + - 9 ) + - 53 + - + ( + 12 ) * - - 59 + + 53 + - 27 - 1 * + NULLIF ( + 44, 10 + 75 * - - NULLIF ( - 40, + COUNT ( - 58 ) ) ) END * + COUNT ( * ) + 19 AS col0
----
NULL

query I rowsort
SELECT ALL + 45 * 99 * + 70 AS col2
----
311850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8342
SELECT ( - - 88 ) DIV + + 72 + - MIN( - 55 )
----
56

skipif mysql # not compatible
query I rowsort label-8342
SELECT ( - - 88 ) / + + 72 + - MIN ( - 55 )
----
56

query II rowsort
SELECT - COALESCE ( - 48, - 87, + 52 ) col1, + 27 - + NULLIF ( 32, - + 28 )
----
48
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT ALL - MIN( DISTINCT 13 ) - + + 23
----
-36

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL - MIN ( DISTINCT 13 ) - + + 23
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT ALL SUM( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL SUM ( - 32 )
----
-32

query I rowsort
SELECT 12 - + 73 AS col2
----
-61

query I rowsort
SELECT ALL - 74 * + + 60 AS col1
----
-4440

query I rowsort
SELECT - 79 + + 65
----
-14

query I rowsort
SELECT - 55 + - + 78 AS col2
----
-133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8350
SELECT ALL + COUNT( * ) DIV - - SUM( DISTINCT - 13 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL + COUNT ( * ) / - - SUM ( DISTINCT - 13 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8351
SELECT - 49 DIV + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8351
SELECT - 49 / + 57 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT DISTINCT SUM( ALL + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT SUM ( ALL + 11 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT DISTINCT - + 82 * COUNT( * ) + + 16
----
-66

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT - + 82 * COUNT ( * ) + + 16
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8354
SELECT ALL - 16 * 5 + + 33 * - 23 + - COALESCE ( - 55, 18 + - 27, - MIN( DISTINCT + 63 ) ) + - - 37 * + 80 / + CAST( NULL AS SIGNED ) / + 71 * + - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL - 16 * 5 + + 33 * - 23 + - COALESCE ( - 55, 18 + - 27, - MIN ( DISTINCT + 63 ) ) + - - 37 * + 80 / + CAST ( NULL AS INTEGER ) / + 71 * + - 85 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8355
SELECT + + CASE + 63 WHEN - COUNT( * ) - - 58 + CASE WHEN + 31 BETWEEN + - SUM( DISTINCT - + 40 ) AND + + ( + + 64 ) * - COUNT( * ) * + - 10 THEN - MAX( DISTINCT + 17 ) WHEN - 15 + + - AVG ( DISTINCT + + 71 ) - - NULLIF ( + 63, COALESCE ( + 49, 73 ) ) * + 59 - 92 >= 24 + + 47 * - 44 * 69 AND NOT NULL IS NOT NULL THEN 54 * + + 61 ELSE 27 END - - + 41 * - 47 - CAST( NULL AS DECIMAL ) THEN - - 58 WHEN - ( - + COUNT( * ) ) + ( + + COUNT( * ) ) * - 79 THEN NULL ELSE NULL END * - 17 * - CAST( + 3 AS SIGNED ) + + 86 + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT + + CASE + 63 WHEN - COUNT ( * ) - - 58 + CASE WHEN + 31 BETWEEN + - SUM ( DISTINCT - + 40 ) AND + + ( + + 64 ) * - COUNT ( * ) * + - 10 THEN - MAX ( DISTINCT + 17 ) WHEN - 15 + + - AVG ( DISTINCT + + 71 ) - - NULLIF ( + 63, COALESCE ( + 49, 73 ) ) * + 59 - 92 >= 24 + + 47 * - 44 * 69 AND NOT NULL IS NOT NULL THEN 54 * + + 61 ELSE 27 END - - + 41 * - 47 - CAST ( NULL AS REAL ) THEN - - 58 WHEN - ( - + COUNT ( * ) ) + ( + + COUNT ( * ) ) * - 79 THEN NULL ELSE NULL END * - 17 * - CAST ( + 3 AS INTEGER ) + + 86 + + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL + MAX( - + 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL + MAX ( - + 40 ) AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8357
SELECT ALL + ( COUNT( * ) ) * - 30 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL + ( COUNT ( * ) ) * - 30 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8358
SELECT ALL + 58 * + - SUM( DISTINCT - 96 ) / - CAST( NULL AS SIGNED ) + + 88 - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL + 58 * + - SUM ( DISTINCT - 96 ) / - CAST ( NULL AS INTEGER ) + + 88 - 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8359
SELECT ALL + CAST( NULL AS DECIMAL ) * + 92 + - 86 - - COUNT( * ) + + - 37 * - SUM( - 28 ) * + 58 - 36 + + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL + CAST ( NULL AS REAL ) * + 92 + - 86 - - COUNT ( * ) + + - 37 * - SUM ( - 28 ) * + 58 - 36 + + 46 AS col2
----
NULL

query I rowsort
SELECT 14 * + - 83 + 84 col1
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT + 34 * - 54 * COUNT( * ) AS col0
----
-1836

skipif mysql # not compatible
query I rowsort label-8361
SELECT + 34 * - 54 * COUNT ( * ) AS col0
----
-1836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8362
SELECT + ( - COUNT( * ) ) + + 25 * - 38 * + + 98 / - + 20 - + 63 * + CAST( NULL AS SIGNED ) AS col1, 4 AS col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-8362
SELECT + ( - COUNT ( * ) ) + + 25 * - 38 * + + 98 / - + 20 - + 63 * + CAST ( NULL AS INTEGER ) AS col1, 4 AS col2
----
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT + 21 + - ( + CASE + 52 WHEN COUNT( + 29 ) + - + 31 THEN NULL WHEN COUNT( * ) THEN - 94 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT + 21 + - ( + CASE + 52 WHEN COUNT ( + 29 ) + - + 31 THEN NULL WHEN COUNT ( * ) THEN - 94 END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 86 - + - 92 AS col1
----
178

query I rowsort
SELECT + 98 * + ( - 40 ) * 50 AS col2
----
-196000

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL SUM( + - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL SUM ( + - 77 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8367
SELECT MAX( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT MAX ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8368
SELECT + CAST( ( 24 ) AS SIGNED ) * - + 30 AS col1
----
-720

skipif mysql # not compatible
query I rowsort label-8368
SELECT + CAST ( ( 24 ) AS INTEGER ) * - + 30 AS col1
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT - 67 + - COUNT( * ) - - COUNT( * ) * + + 81
----
13

skipif mysql # not compatible
query I rowsort label-8369
SELECT - 67 + - COUNT ( * ) - - COUNT ( * ) * + + 81
----
13

query I rowsort
SELECT - 44 + - 78 + 80
----
-42

query II rowsort
SELECT DISTINCT + 97 * 71 * + - 47 AS col2, + ( 8 ) col0
----
-323689
8

query I rowsort
SELECT + 32 * + 33 AS col2
----
1056

query II rowsort
SELECT + 8 * + - 91 * ( + + 69 ) * - 3 AS col0, 29 + - 13 AS col0
----
150696
16

query I rowsort
SELECT - 98 * 40 AS col1
----
-3920

query I rowsort
SELECT DISTINCT + - 82 + - 35 AS col0
----
-117

query I rowsort
SELECT ALL - 41 + 57
----
16

query I rowsort
SELECT + 51 - 53
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT + NULLIF ( + - 23, - SUM( DISTINCT + 44 ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-8378
SELECT + NULLIF ( + - 23, - SUM ( DISTINCT + 44 ) ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT - 64 * - COUNT( * ) * + - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-8379
SELECT - 64 * - COUNT ( * ) * + - COUNT ( * )
----
-64

query I rowsort
SELECT DISTINCT + + 56 * 30 * - + 42 col0
----
-70560

onlyif mysql # DIV for integer division: 
query I rowsort label-8381
SELECT - + 12 DIV 53 col2
----
0

skipif mysql # not compatible
query I rowsort label-8381
SELECT - + 12 / 53 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT DISTINCT + SUM( + - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT + SUM ( + - 49 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8383
SELECT ALL 44 DIV - 70 * - + 47 + + - COUNT( * ) + 35 + - 12 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL 44 / - 70 * - + 47 + + - COUNT ( * ) + 35 + - 12 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT 20 * - CASE - - COUNT( * ) WHEN - CASE + 4 WHEN 34 + - 10 * - - 27 THEN 61 ELSE - 34 END THEN + - 5 WHEN + 35 THEN NULL END - - 4 + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8384
SELECT 20 * - CASE - - COUNT ( * ) WHEN - CASE + 4 WHEN 34 + - 10 * - - 27 THEN 61 ELSE - 34 END THEN + - 5 WHEN + 35 THEN NULL END - - 4 + + 85
----
NULL

query II rowsort
SELECT ALL + 22 AS col1, + 16 + - 86 AS col2
----
22
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT - 27 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-8386
SELECT - 27 / + 73
----
0

query I rowsort
SELECT - 67 * + 81 * + + 93 AS col0
----
-504711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8388
SELECT ALL - 23 * 51 + - 57 + - + MIN( ALL - 71 ) DIV - + COUNT( * )
----
-1301

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL - 23 * 51 + - 57 + - + MIN ( ALL - 71 ) / - + COUNT ( * )
----
-1301

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8389
SELECT ALL 52 DIV + 60 - + 46 + + + 67 DIV 96 - MAX( - 28 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL 52 / + 60 - + 46 + + + 67 / 96 - MAX ( - 28 ) AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8390
SELECT + + COUNT( ALL - + CASE 28 WHEN + CAST( + - 24 AS SIGNED ) THEN + + 74 WHEN + NULLIF ( - + 23, + 94 ) THEN NULL ELSE NULL END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8390
SELECT + + COUNT ( ALL - + CASE 28 WHEN + CAST ( + - 24 AS INTEGER ) THEN + + 74 WHEN + NULLIF ( - + 23, + 94 ) THEN NULL ELSE NULL END ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT 85 * + NULLIF ( + SUM( - 5 ), + SUM( - + 59 ) + - CASE + 47 WHEN + 91 THEN - + ( + COALESCE ( + - MAX( 3 ), + 11 + + - 75 + + 20 / - 99 + + SUM( - - 89 ) ) ) + 19 END ) * - COUNT( ( - 43 ) ) + - 36 * 42 * - 21 * - + 24 + 83 - - 11
----
-761529

skipif mysql # not compatible
query I rowsort label-8391
SELECT 85 * + NULLIF ( + SUM ( - 5 ), + SUM ( - + 59 ) + - CASE + 47 WHEN + 91 THEN - + ( + COALESCE ( + - MAX ( 3 ), + 11 + + - 75 + + 20 / - 99 + + SUM ( - - 89 ) ) ) + 19 END ) * - COUNT ( ( - 43 ) ) + - 36 * 42 * - 21 * - + 24 + 83 - - 11
----
-761529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8392
SELECT + - MIN( - 50 ) DIV ( + + 1 ) * - + 84 - 85 AS col2
----
-4285

skipif mysql # not compatible
query I rowsort label-8392
SELECT + - MIN ( - 50 ) / ( + + 1 ) * - + 84 - 85 AS col2
----
-4285

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT ALL + MAX( ALL - - 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL + MAX ( ALL - - 78 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8394
SELECT - + 68 * - 68 * - 5, - COUNT( * ) AS col0
----
-23120
-1

skipif mysql # not compatible
query II rowsort label-8394
SELECT - + 68 * - 68 * - 5, - COUNT ( * ) AS col0
----
-23120
-1

query I rowsort
SELECT ( - + NULLIF ( + 46, + 90 * 37 ) ) AS col2
----
-46

query II rowsort
SELECT DISTINCT + 35 AS col1, + 52 AS col1
----
35
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8397
SELECT ( + + SUM( DISTINCT + CAST( + + 9 AS SIGNED ) ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8397
SELECT ( + + SUM ( DISTINCT + CAST ( + + 9 AS INTEGER ) ) ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT CASE + MIN( ALL 81 ) WHEN - NULLIF ( - 76, + 36 * + 88 ) * COUNT( * ) + - + 43 THEN - 99 * 2 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8398
SELECT CASE + MIN ( ALL 81 ) WHEN - NULLIF ( - 76, + 36 * + 88 ) * COUNT ( * ) + - + 43 THEN - 99 * 2 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 86 * - - 17 * + + 39 AS col0
----
57018

query II rowsort
SELECT 38, 70 * 96 AS col0
----
38
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT COUNT( * ) * ( 53 ) col0
----
53

skipif mysql # not compatible
query I rowsort label-8401
SELECT COUNT ( * ) * ( 53 ) col0
----
53

query I rowsort
SELECT ( + - 36 ) * - 12 + + + 52 AS col0
----
484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8403
SELECT 52 AS col2, 33 + + COALESCE ( + 15, 18 + 73 * CAST( + 83 AS SIGNED ) ) * - MIN( ALL NULLIF ( 7, 50 / 94 ) )
----
52
-72

skipif mysql # not compatible
query II rowsort label-8403
SELECT 52 AS col2, 33 + + COALESCE ( + 15, 18 + 73 * CAST ( + 83 AS INTEGER ) ) * - MIN ( ALL NULLIF ( 7, 50 / 94 ) )
----
52
-72

query II rowsort
SELECT 87 AS col1, + 9 AS col1
----
87
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8405
SELECT DISTINCT CAST( - 70 AS SIGNED ) * + 91
----
-6370

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT CAST ( - 70 AS INTEGER ) * + 91
----
-6370

onlyif mysql # DIV for integer division: 
query I rowsort label-8406
SELECT ALL - 84 + - - 6 + - - 57 + 7 DIV + 67 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL - 84 + - - 6 + - - 57 + 7 / + 67 AS col1
----
-21

query I rowsort
SELECT DISTINCT + ( - 61 ) * + 56
----
-3416

query I rowsort
SELECT ALL 20 + + + 77 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT NULLIF ( 38, + COUNT( * ) ) - - 60 * - - 25 AS col2
----
1538

skipif mysql # not compatible
query I rowsort label-8409
SELECT NULLIF ( 38, + COUNT ( * ) ) - - 60 * - - 25 AS col2
----
1538

onlyif mysql # aggregate syntax: 
query II rowsort label-8410
SELECT 21 + - 99 + MAX( - 99 ) * - ( - - 74 ) AS col2, - 19
----
7248
-19

skipif mysql # not compatible
query II rowsort label-8410
SELECT 21 + - 99 + MAX ( - 99 ) * - ( - - 74 ) AS col2, - 19
----
7248
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8411
SELECT ( - CAST( COUNT( * ) AS SIGNED ) ) * + 21 AS col1, 3 * 46
----
-21
138

skipif mysql # not compatible
query II rowsort label-8411
SELECT ( - CAST ( COUNT ( * ) AS INTEGER ) ) * + 21 AS col1, 3 * 46
----
-21
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL + ( COUNT( * ) ) + - 32 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL + ( COUNT ( * ) ) + - 32 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT - - ( MIN( 85 ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8413
SELECT - - ( MIN ( 85 ) ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT 78 + + 8 * 91 * - COUNT( * )
----
-650

skipif mysql # not compatible
query I rowsort label-8414
SELECT 78 + + 8 * 91 * - COUNT ( * )
----
-650

query I rowsort
SELECT + 18 - 65 * 6 * - ( + ( + + 92 ) )
----
35898

query I rowsort
SELECT ALL 88 * + 56 AS col1
----
4928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8417
SELECT DISTINCT COUNT( * ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT COUNT ( * ) / + 92
----
0

query I rowsort
SELECT + 76 + + 93 + 96 AS col0
----
265

query I rowsort
SELECT ALL - 30 - 96
----
-126

onlyif mysql # DIV for integer division: 
query II rowsort label-8420
SELECT - 37 AS col2, - 8 DIV 79
----
-37
0

skipif mysql # not compatible
query II rowsort label-8420
SELECT - 37 AS col2, - 8 / 79
----
-37
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT DISTINCT - 27 * - + 37 + - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT - 27 * - + 37 + - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT + + CASE + 81 WHEN - 89 / CASE 60 WHEN + + 89 / - + 50 * - 54 THEN + + 97 + + 35 + + 29 WHEN - - 80 THEN + 72 WHEN + ( - 48 ) - - 38 THEN NULL ELSE - 83 END THEN NULL WHEN + + COUNT( * ) * - - 90 THEN NULL ELSE - + 75 END AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-8422
SELECT + + CASE + 81 WHEN - 89 / CASE 60 WHEN + + 89 / - + 50 * - 54 THEN + + 97 + + 35 + + 29 WHEN - - 80 THEN + 72 WHEN + ( - 48 ) - - 38 THEN NULL ELSE - 83 END THEN NULL WHEN + + COUNT ( * ) * - - 90 THEN NULL ELSE - + 75 END AS col1
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8423
SELECT - 20 DIV COUNT( * ) + - 62
----
-82

skipif mysql # not compatible
query I rowsort label-8423
SELECT - 20 / COUNT ( * ) + - 62
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8424
SELECT ALL + CAST( ( + 11 ) AS SIGNED ) - + + 0 * - 23 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL + CAST ( ( + 11 ) AS INTEGER ) - + + 0 * - 23 AS col0
----
11

query II rowsort
SELECT 26 * + 88, ( + 35 ) AS col1
----
2288
35

query II rowsort
SELECT - 11, - 7 * - 17 AS col1
----
-11
119

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT DISTINCT - SUM( DISTINCT 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-8427
SELECT DISTINCT - SUM ( DISTINCT 81 )
----
-81

query I rowsort
SELECT ALL - - 87 * + 10 + COALESCE ( 19, + 27 ) AS col0
----
889

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8429
SELECT - 61 * - 68 - + + CAST( NULL AS DECIMAL ) + + - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT - 61 * - 68 - + + CAST ( NULL AS REAL ) + + - 86 AS col0
----
NULL

query I rowsort
SELECT 87 * + - 76 AS col1
----
-6612

query I rowsort
SELECT 22 * + - 44
----
-968

query I rowsort
SELECT DISTINCT + ( + - 66 ) * - 83 * - + 55 AS col2
----
-301290

query I rowsort
SELECT 51 * 86 + - + 13 + - - 81 * - 72 + - 25 AS col1
----
-1484

query I rowsort
SELECT 47 - 54 AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8435
SELECT ALL - CAST( 83 AS SIGNED ), - 82 AS col1
----
-83
-82

skipif mysql # not compatible
query II rowsort label-8435
SELECT ALL - CAST ( 83 AS INTEGER ), - 82 AS col1
----
-83
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT 21 + MIN( - - 60 ) - + - ( - - 47 )
----
128

skipif mysql # not compatible
query I rowsort label-8436
SELECT 21 + MIN ( - - 60 ) - + - ( - - 47 )
----
128

query I rowsort
SELECT ALL 20 + - 33
----
-13

query I rowsort
SELECT ALL + ( - + 59 ) + - 74
----
-133

query I rowsort
SELECT DISTINCT - 7 + - - 93
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT ALL + CAST( 67 AS SIGNED ) + - 41 * + 81 AS col1
----
-3254

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL + CAST ( 67 AS INTEGER ) + - 41 * + 81 AS col1
----
-3254

query II rowsort
SELECT 66 + - 76 AS col0, 24
----
-10
24

query II rowsort
SELECT 37 * + - 42, 84 AS col1
----
-1554
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT ALL - SUM( - 7 ) * - ( NULLIF ( 65, - - 74 * - + 61 ) ) * + 94 col1
----
-42770

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL - SUM ( - 7 ) * - ( NULLIF ( 65, - - 74 * - + 61 ) ) * + 94 col1
----
-42770

query I rowsort
SELECT DISTINCT - CASE - 66 WHEN - 96 THEN - - 90 * + ( - ( + 21 ) ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 23 * - 65 * + - 62 AS col1
----
-92690

query I rowsort
SELECT ALL 99 - + 36 + - 17
----
46

query II rowsort
SELECT ALL 43 * + 16 AS col0, 79
----
688
79

query I rowsort
SELECT ( 69 ) * 4 AS col2
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT ALL - 98 - + MAX( DISTINCT + 71 )
----
-169

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL - 98 - + MAX ( DISTINCT + 71 )
----
-169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8450
SELECT + CAST( NULL AS SIGNED ) - + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8450
SELECT + CAST ( NULL AS INTEGER ) - + 21
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8451
SELECT - COUNT( * ) DIV 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8451
SELECT - COUNT ( * ) / 70 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8452
SELECT ALL 88 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL 88 / - 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT - COUNT( * ) * 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8453
SELECT - COUNT ( * ) * 30 AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8454
SELECT ALL - COUNT( * ) DIV - 39 * + 24 * + - COALESCE ( COUNT( * ), - 34, + MIN( DISTINCT 91 ) * + + COUNT( * ) ) - 82
----
-82

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL - COUNT ( * ) / - 39 * + 24 * + - COALESCE ( COUNT ( * ), - 34, + MIN ( DISTINCT 91 ) * + + COUNT ( * ) ) - 82
----
-82

query I rowsort
SELECT ALL - - 84 * 64 col0
----
5376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8456
SELECT - 89 * + - 56 - + ( - COUNT( + - 22 ) ) DIV + 91 AS col2
----
4984

skipif mysql # not compatible
query I rowsort label-8456
SELECT - 89 * + - 56 - + ( - COUNT ( + - 22 ) ) / + 91 AS col2
----
4984

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT - 94 * - - 63 + + - COUNT( * )
----
-5923

skipif mysql # not compatible
query I rowsort label-8457
SELECT - 94 * - - 63 + + - COUNT ( * )
----
-5923

query I rowsort
SELECT ALL 57 * 88 AS col0
----
5016

query I rowsort
SELECT - 68 * - + 5 AS col2
----
340

query I rowsort
SELECT ALL + 63 * - - 76 + 34 + - 7 * - - 78
----
4276

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT SUM( - - 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-8461
SELECT SUM ( - - 95 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-8462
SELECT 65 * + COUNT( * ) * - COUNT( * ) * + 42 + - NULLIF ( + - 84, - + 41 ) + + 41 AS col2, + 78 col2
----
-2605
78

skipif mysql # not compatible
query II rowsort label-8462
SELECT 65 * + COUNT ( * ) * - COUNT ( * ) * + 42 + - NULLIF ( + - 84, - + 41 ) + + 41 AS col2, + 78 col2
----
-2605
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT + 32 * - + COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-8463
SELECT + 32 * - + COUNT ( * ) AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8464
SELECT ALL - MIN( DISTINCT - CAST( - NULLIF ( 83, + - COALESCE ( 83, - - ( + + NULLIF ( + 27, + - 37 ) ) * + 83 ) ) AS SIGNED ) ) * + - COUNT( * ) + + - 19 + - COUNT( * ) * - COUNT( ALL + 31 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL - MIN ( DISTINCT - CAST ( - NULLIF ( 83, + - COALESCE ( 83, - - ( + + NULLIF ( + 27, + - 37 ) ) * + 83 ) ) AS INTEGER ) ) * + - COUNT ( * ) + + - 19 + - COUNT ( * ) * - COUNT ( ALL + 31 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT ALL NULLIF ( - ( 61 ), 63 ) * - COUNT( * ) * 20 + - + 98
----
1122

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL NULLIF ( - ( 61 ), 63 ) * - COUNT ( * ) * 20 + - + 98
----
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT DISTINCT + COUNT( * ) + - 9 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT + COUNT ( * ) + - 9 AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8467
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8468
SELECT - CAST( NULL AS SIGNED ) * + 62 - + 99 - NULLIF ( + COUNT( * ), - - ( + 23 ) ) + 69 + - 7 / 84 * - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8468
SELECT - CAST ( NULL AS INTEGER ) * + 62 - + 99 - NULLIF ( + COUNT ( * ), - - ( + 23 ) ) + 69 + - 7 / 84 * - 94 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8469
SELECT - 51 col2, + ( + - CAST( NULL AS SIGNED ) ) AS col1
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-8469
SELECT - 51 col2, + ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
-51
NULL

query I rowsort
SELECT - 66 - + - 11
----
-55

query I rowsort
SELECT ALL - 94 * 57 AS col1
----
-5358

query I rowsort
SELECT - 43 - 12
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-8473
SELECT 49, + 46 * + SUM( DISTINCT - - 25 ) AS col0
----
49
1150

skipif mysql # not compatible
query II rowsort label-8473
SELECT 49, + 46 * + SUM ( DISTINCT - - 25 ) AS col0
----
49
1150

query II rowsort
SELECT - 62 AS col1, - 63 AS col1
----
-62
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT - - NULLIF ( - + 12, 91 + - SUM( DISTINCT - 36 ) ) - + - 64 - - - NULLIF ( - + COUNT( * ), + 26 + - COUNT( * ) * - 16 + 71 )
----
53

skipif mysql # not compatible
query I rowsort label-8475
SELECT - - NULLIF ( - + 12, 91 + - SUM ( DISTINCT - 36 ) ) - + - 64 - - - NULLIF ( - + COUNT ( * ), + 26 + - COUNT ( * ) * - 16 + 71 )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-8476
SELECT - + 38 + - 41 * 30 AS col2, COUNT( * )
----
-1268
1

skipif mysql # not compatible
query II rowsort label-8476
SELECT - + 38 + - 41 * 30 AS col2, COUNT ( * )
----
-1268
1

query I rowsort
SELECT - + ( - - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT + 89 * MAX( - ( + 62 ) ) AS col0
----
-5518

skipif mysql # not compatible
query I rowsort label-8478
SELECT + 89 * MAX ( - ( + 62 ) ) AS col0
----
-5518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8479
SELECT - 33 + + ( - 46 ) + COALESCE ( - 6, 67, - NULLIF ( COUNT( * ), + - COUNT( * ) ) + 53 ) DIV - 63 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-8479
SELECT - 33 + + ( - 46 ) + COALESCE ( - 6, 67, - NULLIF ( COUNT ( * ), + - COUNT ( * ) ) + 53 ) / - 63 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL + SUM( 64 )
----
64

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL + SUM ( 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8481
SELECT - 47 + - 35 + CAST( NULL AS SIGNED ) + + - COUNT( + 97 ) * - + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT - 47 + - 35 + CAST ( NULL AS INTEGER ) + + - COUNT ( + 97 ) * - + 14 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8482
SELECT - - 56 * 7 * + CAST( - 58 AS SIGNED )
----
-22736

skipif mysql # not compatible
query I rowsort label-8482
SELECT - - 56 * 7 * + CAST ( - 58 AS INTEGER )
----
-22736

query I rowsort
SELECT - 60 + + 22 * - 27 col2
----
-654

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT - - 78 * - CASE - + COUNT( * ) WHEN - + 21 THEN + 59 + + + COUNT( * ) / - 82 - SUM( ALL - ( 6 ) ) END + - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT - - 78 * - CASE - + COUNT ( * ) WHEN - + 21 THEN + 59 + + + COUNT ( * ) / - 82 - SUM ( ALL - ( 6 ) ) END + - 69 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8485
SELECT ALL CAST( 74 AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL CAST ( 74 AS INTEGER ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8486
SELECT DISTINCT - 4, COALESCE ( - - NULLIF ( + 54, - 5 / - CASE - 64 WHEN + 63 THEN NULL ELSE - + COUNT( * ) * - - ( - - 12 ) END ), + 15 ) AS col0
----
-4
54

skipif mysql # not compatible
query II rowsort label-8486
SELECT DISTINCT - 4, COALESCE ( - - NULLIF ( + 54, - 5 / - CASE - 64 WHEN + 63 THEN NULL ELSE - + COUNT ( * ) * - - ( - - 12 ) END ), + 15 ) AS col0
----
-4
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT DISTINCT 61 * - + 12 - + - COUNT( * ) + - + 29 AS col0
----
-760

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT 61 * - + 12 - + - COUNT ( * ) + - + 29 AS col0
----
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT DISTINCT + COUNT( DISTINCT + + ( - CASE WHEN NOT - 61 <= - - 47 THEN - 76 ELSE NULL END ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8488
SELECT DISTINCT + COUNT ( DISTINCT + + ( - CASE WHEN NOT - 61 <= - - 47 THEN - 76 ELSE NULL END ) ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8489
SELECT ALL + 19 DIV + 36 + ( - 3 ) AS col2, + 54
----
-3
54

skipif mysql # not compatible
query II rowsort label-8489
SELECT ALL + 19 / + 36 + ( - 3 ) AS col2, + 54
----
-3
54

query I rowsort
SELECT ALL 3 * + + ( 94 )
----
282

query I rowsort
SELECT ALL - 42 * - 7 + + 6 AS col2
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8492
SELECT DISTINCT + MIN( ALL + + 41 ) * 14 - + COALESCE ( 63, + - COUNT( * ), - 18 + + 69 + - - 48 / - 78 ) * - CAST( NULL AS SIGNED ) + + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT + MIN ( ALL + + 41 ) * 14 - + COALESCE ( 63, + - COUNT ( * ), - 18 + + 69 + - - 48 / - 78 ) * - CAST ( NULL AS INTEGER ) + + + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL + COALESCE ( + COUNT( * ), 5 )
----
1

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL + COALESCE ( + COUNT ( * ), 5 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT - 14 * 86 + MIN( DISTINCT ( + 72 ) )
----
-1132

skipif mysql # not compatible
query I rowsort label-8494
SELECT - 14 * 86 + MIN ( DISTINCT ( + 72 ) )
----
-1132

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT DISTINCT - 25 * 92 + + COUNT( * ) AS col1
----
-2299

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT - 25 * 92 + + COUNT ( * ) AS col1
----
-2299

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8496
SELECT ( + NULLIF ( + CASE 0 WHEN - - COUNT( * ) DIV - + NULLIF ( - - 13, 16 * + 25 DIV + + 45 * - - 89 + + + 17 + + COUNT( ALL + 15 ) * + + 70 DIV + 17 * 84 + - 40 * 84 ) THEN NULL ELSE - - 68 * 52 * 48 END, - + NULLIF ( - - CAST( NULL AS DECIMAL ), 51 ) * + 61 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8496
SELECT ( + NULLIF ( + CASE 0 WHEN - - COUNT ( * ) / - + NULLIF ( - - 13, 16 * + 25 / + + 45 * - - 89 + + + 17 + + COUNT ( ALL + 15 ) * + + 70 / + 17 * 84 + - 40 * 84 ) THEN NULL ELSE - - 68 * 52 * 48 END, - + NULLIF ( - - CAST ( NULL AS REAL ), 51 ) * + 61 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8497
SELECT + 79 + - COALESCE ( NULLIF ( 17, COALESCE ( + COUNT( * ), + - 12 * - CAST( NULL AS DECIMAL ) + + + 92 * - 98 - - MAX( DISTINCT - + 21 ) * - 64 + - CAST( - 85 AS SIGNED ) + 95 ) ), + COUNT( * ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8497
SELECT + 79 + - COALESCE ( NULLIF ( 17, COALESCE ( + COUNT ( * ), + - 12 * - CAST ( NULL AS REAL ) + + + 92 * - 98 - - MAX ( DISTINCT - + 21 ) * - 64 + - CAST ( - 85 AS INTEGER ) + 95 ) ), + COUNT ( * ) ) AS col2
----
62

query I rowsort
SELECT + ( + 96 ) AS col0
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-8499
SELECT - ( + + 83 ) * 20 DIV + 52 + + 81, - 22 AS col2
----
50
-22

skipif mysql # not compatible
query II rowsort label-8499
SELECT - ( + + 83 ) * 20 / + 52 + + 81, - 22 AS col2
----
50
-22

query I rowsort
SELECT + 25 * + 49 * + + 8 AS col1
----
9800

query I rowsort
SELECT - 57 * + 40 * 92 + 15
----
-209745

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT ALL 88 * - 48 * - ( 32 ) - + + COUNT( * ) + + MAX( + 77 ) + - SUM( - - 70 ) * 8 AS col0
----
134684

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL 88 * - 48 * - ( 32 ) - + + COUNT ( * ) + + MAX ( + 77 ) + - SUM ( - - 70 ) * 8 AS col0
----
134684

onlyif mysql # DIV for integer division: 
query I rowsort label-8503
SELECT ALL + 35 DIV + 37 * + 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL + 35 / + 37 * + 15 AS col2
----
0

query I rowsort
SELECT - 37 + - 86 AS col0
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8505
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8506
SELECT DISTINCT + 89 DIV 26 + COUNT( + CAST( + 93 AS SIGNED ) ) + - 22
----
-18

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT + 89 / 26 + COUNT ( + CAST ( + 93 AS INTEGER ) ) + - 22
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT ALL - 37 * + COUNT( DISTINCT + 89 ) - - + 33 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL - 37 * + COUNT ( DISTINCT + 89 ) - - + 33 AS col0
----
-4

query I rowsort
SELECT + 95 * + + 79 AS col2
----
7505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8509
SELECT - 64 + - 71 * - - ( CASE - 7 WHEN 32 THEN - - CAST( NULL AS SIGNED ) WHEN 58 - - - 57 THEN COUNT( * ) WHEN COUNT( * ) * - CAST( + 72 AS SIGNED ) + - 44 + + 33 * - ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) - + 8 * + 20 + - + ( - 71 ) + + 50 + 88 / - 93 * 32 * + - COUNT( * ) + 61 - + NULLIF ( + 13, 27 * + - 26 + + 16 ) THEN NULL END ) * + - 18 * - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8509
SELECT - 64 + - 71 * - - ( CASE - 7 WHEN 32 THEN - - CAST ( NULL AS INTEGER ) WHEN 58 - - - 57 THEN COUNT ( * ) WHEN COUNT ( * ) * - CAST ( + 72 AS INTEGER ) + - 44 + + 33 * - ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) - + 8 * + 20 + - + ( - 71 ) + + 50 + 88 / - 93 * 32 * + - COUNT ( * ) + 61 - + NULLIF ( + 13, 27 * + - 26 + + 16 ) THEN NULL END ) * + - 18 * - 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8510
SELECT + COUNT( * ) DIV + 21 + - 44 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8510
SELECT + COUNT ( * ) / + 21 + - 44 AS col0
----
-44

query I rowsort
SELECT DISTINCT + + 55 * - 63 * + ( + 50 ) + + + 82 + 67
----
-173101

query I rowsort
SELECT - - NULLIF ( - 17, - + 82 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8513
SELECT - - ( + ( + NULLIF ( - CAST( + - 58 AS SIGNED ), + 54 ) ) ) * + COUNT( * ) - + - 91
----
149

skipif mysql # not compatible
query I rowsort label-8513
SELECT - - ( + ( + NULLIF ( - CAST ( + - 58 AS INTEGER ), + 54 ) ) ) * + COUNT ( * ) - + - 91
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8514
SELECT DISTINCT + 57 DIV + 59 AS col0, 47 * + - MAX( DISTINCT 96 ) + 4
----
0
-4508

skipif mysql # not compatible
query II rowsort label-8514
SELECT DISTINCT + 57 / + 59 AS col0, 47 * + - MAX ( DISTINCT 96 ) + 4
----
0
-4508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8515
SELECT - - MAX( 77 ) / 74 + - 49 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT - - MAX ( 77 ) / 74 + - 49 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8516
SELECT ALL + - 13 + - + COUNT( * ) + 48 * 43 * COUNT( * ) * COUNT( - + CAST( NULL AS SIGNED ) ) DIV ( + COUNT( * ) )
----
-14

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL + - 13 + - + COUNT ( * ) + 48 * 43 * COUNT ( * ) * COUNT ( - + CAST ( NULL AS INTEGER ) ) / ( + COUNT ( * ) )
----
-14

query I rowsort
SELECT ALL - 66 + - - 38 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-8518
SELECT + MAX( - - 83 ) AS col1, - 15 col2
----
83
-15

skipif mysql # not compatible
query II rowsort label-8518
SELECT + MAX ( - - 83 ) AS col1, - 15 col2
----
83
-15

query I rowsort
SELECT - 47 - - 25 AS col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8520
SELECT 1 DIV - 26 - - + COUNT( * ) * + 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8520
SELECT 1 / - 26 - - + COUNT ( * ) * + 90 AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8521
SELECT DISTINCT - CASE - 78 WHEN + + 76 THEN - CAST( + COUNT( * ) AS SIGNED ) - + + 17 WHEN 36 THEN + 58 + 3 + + 97 / - 61 * - - 58 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT - CASE - 78 WHEN + + 76 THEN - CAST ( + COUNT ( * ) AS INTEGER ) - + + 17 WHEN 36 THEN + 58 + 3 + + 97 / - 61 * - - 58 END AS col0
----
NULL

query I rowsort
SELECT ALL ( + 11 ) * 38 + - 94 AS col1
----
324

query II rowsort
SELECT 45 AS col0, 22 * 56
----
45
1232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8524
SELECT ALL + 93 * CAST( - 28 AS SIGNED ) AS col2
----
-2604

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL + 93 * CAST ( - 28 AS INTEGER ) AS col2
----
-2604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8525
SELECT ALL - COALESCE ( - MAX( 38 ), - + CASE - + ( 89 ) WHEN + + 85 / + CAST( - + COUNT( * ) AS SIGNED ) THEN + 8 + 75 + 1 * + - 17 - - 63 END ) + - 9 col1, + 13 + MIN( DISTINCT + + 30 ) - - + CASE + 4 WHEN - 93 - - COUNT( * ) THEN - - SUM( + - 42 ) WHEN - ( + 84 ) * 27 + - 59 THEN NULL END col1, 5
----
29
NULL
5

skipif mysql # not compatible
query III rowsort label-8525
SELECT ALL - COALESCE ( - MAX ( 38 ), - + CASE - + ( 89 ) WHEN + + 85 / + CAST ( - + COUNT ( * ) AS INTEGER ) THEN + 8 + 75 + 1 * + - 17 - - 63 END ) + - 9 col1, + 13 + MIN ( DISTINCT + + 30 ) - - + CASE + 4 WHEN - 93 - - COUNT ( * ) THEN - - SUM ( + - 42 ) WHEN - ( + 84 ) * 27 + - 59 THEN NULL END col1, 5
----
29
NULL
5

query I rowsort
SELECT DISTINCT + 84 + 43 AS col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT 47 + COALESCE ( - ( COUNT( * ) ), - - COUNT( * ), + - 50 )
----
46

skipif mysql # not compatible
query I rowsort label-8527
SELECT 47 + COALESCE ( - ( COUNT ( * ) ), - - COUNT ( * ), + - 50 )
----
46

query I rowsort
SELECT DISTINCT - 20 + 93 * - 93 + 76 AS col1
----
-8593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8529
SELECT ALL - CAST( + 80 AS SIGNED ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL - CAST ( + 80 AS INTEGER ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT 60 - - COUNT( + - 75 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8530
SELECT 60 - - COUNT ( + - 75 ) AS col0
----
61

query I rowsort
SELECT 37 * + - 78
----
-2886

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT NULLIF ( 24, + + 32 ) * - COUNT( + + CASE 8 WHEN + 19 THEN NULL WHEN + + 3 THEN + 67 END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8532
SELECT NULLIF ( 24, + + 32 ) * - COUNT ( + + CASE 8 WHEN + 19 THEN NULL WHEN + + 3 THEN + 67 END ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8533
SELECT CAST( 91 AS SIGNED ) * ( - 50 ) col1
----
-4550

skipif mysql # not compatible
query I rowsort label-8533
SELECT CAST ( 91 AS INTEGER ) * ( - 50 ) col1
----
-4550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8534
SELECT ALL - CASE - - 14 WHEN - 35 + - - COUNT( 14 ) + - CASE - + CAST( NULL AS SIGNED ) WHEN 52 THEN - 1 * 22 WHEN - 52 - + 80 + + 49 + + 55 THEN - - ( + 77 ) + 46 END / + 75 * AVG ( DISTINCT ( - - 0 ) ) THEN NULL WHEN - 31 * + - 32 * + 23 - + - 93 + + COALESCE ( 12, - 84 ) + + COUNT( * ) / + + 17 * + CASE - - 4 WHEN - ( 54 ) * + 99 THEN - 20 WHEN + 45 - NULLIF ( - 29, 79 * - 81 * + 60 * - 67 + + 11 + + COUNT( * ) ) THEN - 46 END THEN - + CAST( - ( - 70 ) AS SIGNED ) WHEN - 51 THEN NULL ELSE - 81 END AS col1
----
81

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL - CASE - - 14 WHEN - 35 + - - COUNT ( 14 ) + - CASE - + CAST ( NULL AS INTEGER ) WHEN 52 THEN - 1 * 22 WHEN - 52 - + 80 + + 49 + + 55 THEN - - ( + 77 ) + 46 END / + 75 * AVG ( DISTINCT ( - - 0 ) ) THEN NULL WHEN - 31 * + - 32 * + 23 - + - 93 + + COALESCE ( 12, - 84 ) + + COUNT ( * ) / + + 17 * + CASE - - 4 WHEN - ( 54 ) * + 99 THEN - 20 WHEN + 45 - NULLIF ( - 29, 79 * - 81 * + 60 * - 67 + + 11 + + COUNT ( * ) ) THEN - 46 END THEN - + CAST ( - ( - 70 ) AS INTEGER ) WHEN - 51 THEN NULL ELSE - 81 END AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL - CASE COUNT( * ) WHEN - 32 THEN NULL WHEN 69 * + 35 THEN NULL ELSE - 73 END AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL - CASE COUNT ( * ) WHEN - 32 THEN NULL WHEN 69 * + 35 THEN NULL ELSE - 73 END AS col1
----
73

query I rowsort
SELECT ALL 90 * + NULLIF ( - + 62, - 64 + - 64 ) AS col0
----
-5580

query I rowsort
SELECT 66 * + - 89 AS col0
----
-5874

query I rowsort
SELECT DISTINCT 19 * 1 col0
----
19

query I rowsort
SELECT ALL 83 * - 12 * - 38 AS col2
----
37848

query I rowsort
SELECT ALL 95 * + 5 AS col0
----
475

query I rowsort
SELECT DISTINCT 13 * ( + 63 )
----
819

query I rowsort
SELECT ( 62 ) * 9
----
558

query I rowsort
SELECT ALL 47 * 57
----
2679

query I rowsort
SELECT 81 + - 30 AS col1
----
51

query I rowsort
SELECT DISTINCT 94 * 6 col0
----
564

query I rowsort
SELECT DISTINCT 53 + 8
----
61

query I rowsort
SELECT ALL 12 + - CASE 32 WHEN + ( 88 ) + - 2 * + 37 THEN 79 END
----
NULL

query I rowsort
SELECT DISTINCT + 87 + 28
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8549
SELECT COUNT( * ) - + COUNT( * ) DIV + 96 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8549
SELECT COUNT ( * ) - + COUNT ( * ) / + 96 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8550
SELECT ( + CAST( 40 AS SIGNED ) ) + 76
----
116

skipif mysql # not compatible
query I rowsort label-8550
SELECT ( + CAST ( 40 AS INTEGER ) ) + 76
----
116

query I rowsort
SELECT 16 - 65 AS col1
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8552
SELECT ALL CASE + 31 WHEN + 50 THEN - MAX( + 70 ) ELSE + 59 + 25 END DIV - 27
----
-3

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL CASE + 31 WHEN + 50 THEN - MAX ( + 70 ) ELSE + 59 + 25 END / - 27
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8553
SELECT 25 + + 3 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT 25 + + 3 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8554
SELECT DISTINCT + COALESCE ( - 85, 28 DIV + 2 ) + + ( 54 )
----
-31

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT + COALESCE ( - 85, 28 / + 2 ) + + ( 54 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ALL - 69 + MAX( - 68 + 96 ) * - 92
----
-2645

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL - 69 + MAX ( - 68 + 96 ) * - 92
----
-2645

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT 6 + - COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8556
SELECT 6 + - COUNT ( * ) AS col2
----
5

query I rowsort
SELECT 15 + + 54 AS col0
----
69

query I rowsort
SELECT DISTINCT 80 * + 19 AS col2
----
1520

query I rowsort
SELECT ALL 98 + 74 AS col2
----
172

query I rowsort
SELECT 31 * 42
----
1302

onlyif mysql # DIV for integer division: 
query I rowsort label-8561
SELECT DISTINCT - 24 DIV + 52 col1
----
0

skipif mysql # not compatible
query I rowsort label-8561
SELECT DISTINCT - 24 / + 52 col1
----
0

query I rowsort
SELECT 50 + 2 * - 48
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT DISTINCT - CASE COUNT( - 75 ) WHEN - 38 * 69 + 55 THEN + 34 * - MAX( + 92 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT - CASE COUNT ( - 75 ) WHEN - 38 * 69 + 55 THEN + 34 * - MAX ( + 92 ) END
----
NULL

query I rowsort
SELECT + 43 * + 14 + 97 AS col0
----
699

query I rowsort
SELECT 31 * - 44
----
-1364

query I rowsort
SELECT 47 + 70
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8567
SELECT DISTINCT NULLIF ( COUNT( - 40 ), 1 * 48 ) * CAST( NULL AS SIGNED ) - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT DISTINCT NULLIF ( COUNT ( - 40 ), 1 * 48 ) * CAST ( NULL AS INTEGER ) - 73
----
NULL

query I rowsort
SELECT ALL + 35 * 14 AS col2
----
490

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8569
SELECT ALL - COUNT( CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - COUNT ( CAST ( NULL AS REAL ) )
----
0

query I rowsort
SELECT DISTINCT - 44 * 71
----
-3124

query I rowsort
SELECT 75 * + 59
----
4425

query I rowsort
SELECT ALL - 35 * 80
----
-2800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT CAST( + 29 AS SIGNED ) * 39 + - 39 AS col2
----
1092

skipif mysql # not compatible
query I rowsort label-8573
SELECT CAST ( + 29 AS INTEGER ) * 39 + - 39 AS col2
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT MIN( ALL 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-8574
SELECT MIN ( ALL 70 ) AS col2
----
70

query I rowsort
SELECT ALL - COALESCE ( 59, + 59 ) AS col1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8576
SELECT + 77 DIV - 14 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-8576
SELECT + 77 / - 14 AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8577
SELECT ( CAST( NULL AS SIGNED ) ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT ( CAST ( NULL AS INTEGER ) ) * 83
----
NULL

query I rowsort
SELECT ALL + 40 + 21 AS col0
----
61

query I rowsort
SELECT 13 - - 90
----
103

query I rowsort
SELECT + 60 * - 85 AS col2
----
-5100

query I rowsort
SELECT DISTINCT - - 72 + + 74 AS col0
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-8582
SELECT ALL 43 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL 43 / - 56
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8583
SELECT 61 DIV 42
----
1

skipif mysql # not compatible
query I rowsort label-8583
SELECT 61 / 42
----
1

query I rowsort
SELECT ALL - 79 + COALESCE ( 66, + 44 * 86 ) col0
----
-13

query I rowsort
SELECT + 26 * 20
----
520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT ALL CAST( + 61 AS SIGNED ) + + 99
----
160

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL CAST ( + 61 AS INTEGER ) + + 99
----
160

query I rowsort
SELECT + + 93 + - 60
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL 10 + - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL 10 + - COUNT ( * )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8589
SELECT - - COUNT( * ) DIV 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8589
SELECT - - COUNT ( * ) / 66 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8590
SELECT + + 44 + - ( + CAST( 27 AS SIGNED ) ) col0
----
17

skipif mysql # not compatible
query I rowsort label-8590
SELECT + + 44 + - ( + CAST ( 27 AS INTEGER ) ) col0
----
17

query I rowsort
SELECT ALL - 38 + - 70 AS col0
----
-108

query I rowsort
SELECT + ( COALESCE ( 11, + 97 * + 15 ) ) col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT + - ( - 27 ) + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-8593
SELECT + - ( - 27 ) + COUNT ( * )
----
28

query I rowsort
SELECT ALL + 63 + - 45 * 82
----
-3627

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT DISTINCT + 5 + + 73 * COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT + 5 + + 73 * COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT DISTINCT - COUNT( * ) + 42 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT - COUNT ( * ) + 42 AS col2
----
41

query I rowsort
SELECT DISTINCT + 61 * 50
----
3050

query I rowsort
SELECT ALL 12 - + 45
----
-33

query I rowsort
SELECT + 86 * 39 col0
----
3354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT + 56 + - 38 + ( - 81 ) * CAST( NULL AS SIGNED ) * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT + 56 + - 38 + ( - 81 ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT DISTINCT 27 DIV + 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT 27 / + 62 AS col2
----
0

query I rowsort
SELECT - NULLIF ( 0, - 13 * 98 ) AS col1
----
0

query I rowsort
SELECT ALL 44 - + - 49 + 77 * - 54
----
-4065

query I rowsort
SELECT + 50 * + 32 AS col2
----
1600

query I rowsort
SELECT - 56 * - - 28
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT + COUNT( * ) - - MIN( + 71 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8606
SELECT + COUNT ( * ) - - MIN ( + 71 ) AS col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8607
SELECT DISTINCT 91 DIV 44
----
2

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT 91 / 44
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT + 20 * - - 15 * + COUNT( * ) AS col0
----
300

skipif mysql # not compatible
query I rowsort label-8608
SELECT + 20 * - - 15 * + COUNT ( * ) AS col0
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT ALL COUNT( * ) * - COALESCE ( COALESCE ( - 67, 15 ), + 20 )
----
67

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL COUNT ( * ) * - COALESCE ( COALESCE ( - 67, 15 ), + 20 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT ALL CAST( + COALESCE ( 24, - CASE + 35 WHEN 35 - + 71 * + 29 THEN 62 WHEN + ( 69 ) THEN NULL END, + NULLIF ( - 93, 26 * - 17 + 73 * 41 ) * - 59 ) AS SIGNED ) * - 49 AS col2
----
-1176

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL CAST ( + COALESCE ( 24, - CASE + 35 WHEN 35 - + 71 * + 29 THEN 62 WHEN + ( 69 ) THEN NULL END, + NULLIF ( - 93, 26 * - 17 + 73 * 41 ) * - 59 ) AS INTEGER ) * - 49 AS col2
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8612
SELECT ALL - 76 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL - 76 / + 99
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8613
SELECT - MIN( ALL + - 38 ) DIV COUNT( ALL + 87 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-8613
SELECT - MIN ( ALL + - 38 ) / COUNT ( ALL + 87 ) AS col0
----
38

query I rowsort
SELECT + 84 * + + ( + 22 )
----
1848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8615
SELECT CAST( NULL AS SIGNED ) * - - 66 + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT CAST ( NULL AS INTEGER ) * - - 66 + - 13
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8616
SELECT SUM( DISTINCT - - 2 ) DIV 28 - - NULLIF ( 15, 54 ) * 28 AS col2
----
420

skipif mysql # not compatible
query I rowsort label-8616
SELECT SUM ( DISTINCT - - 2 ) / 28 - - NULLIF ( 15, 54 ) * 28 AS col2
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT + 60 * + ( + COUNT( * ) ) col2
----
60

skipif mysql # not compatible
query I rowsort label-8617
SELECT + 60 * + ( + COUNT ( * ) ) col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT - 66 * - - COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8618
SELECT - 66 * - - COUNT ( * ) AS col2
----
-66

query I rowsort
SELECT COALESCE ( + 35, 86 ) AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8620
SELECT COALESCE ( - + 86, - 60, + 95 DIV 64 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-8620
SELECT COALESCE ( - + 86, - 60, + 95 / 64 ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT COALESCE ( NULLIF ( - 84, - ( 58 ) ), + COUNT( * ) )
----
-84

skipif mysql # not compatible
query I rowsort label-8621
SELECT COALESCE ( NULLIF ( - 84, - ( 58 ) ), + COUNT ( * ) )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT DISTINCT 32 * + COUNT( + 32 ) + ( - 76 + + 8 ) + + 93 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT 32 * + COUNT ( + 32 ) + ( - 76 + + 8 ) + + 93 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT DISTINCT + 10 * - - 49 * + COUNT( * ) - COUNT( * ) * - 49 + + COUNT( * )
----
540

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT + 10 * - - 49 * + COUNT ( * ) - COUNT ( * ) * - 49 + + COUNT ( * )
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL + - ( + 17 ) * COUNT( * ) + - 70 * 24
----
-1697

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL + - ( + 17 ) * COUNT ( * ) + - 70 * 24
----
-1697

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT CASE WHEN 4 NOT IN ( 65 + + 23 / - 44 ) THEN NULL ELSE CASE - 43 WHEN NULLIF ( CASE 68 WHEN COUNT( * ) / 65 THEN NULL WHEN 46 THEN NULL ELSE COUNT( * ) END, - 83 ) * + 3 THEN 29 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT CASE WHEN 4 NOT IN ( 65 + + 23 / - 44 ) THEN NULL ELSE CASE - 43 WHEN NULLIF ( CASE 68 WHEN COUNT ( * ) / 65 THEN NULL WHEN 46 THEN NULL ELSE COUNT ( * ) END, - 83 ) * + 3 THEN 29 END END AS col0
----
NULL

query I rowsort
SELECT ALL + ( - 35 ) * 5 + 12 AS col1
----
-163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8627
SELECT - 0 - - 16 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT - 0 - - 16 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8628
SELECT DISTINCT - COALESCE ( + COUNT( * ), 87 DIV MIN( + 68 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT - COALESCE ( + COUNT ( * ), 87 / MIN ( + 68 ) )
----
-1

query I rowsort
SELECT ALL - - 82 * + 11 - - 42
----
944

query I rowsort
SELECT 38 * 96 + 13 * 84 + 8 AS col2
----
4748

onlyif mysql # DIV for integer division: 
query I rowsort label-8631
SELECT ALL - ( 98 ) - - 80 DIV - 44
----
-99

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL - ( 98 ) - - 80 / - 44
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8632
SELECT DISTINCT + 74 DIV + - 8 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT + 74 / + - 8 AS col2
----
-9

query I rowsort
SELECT + COALESCE ( + NULLIF ( 74, + 57 ), 5 ) * + 85 AS col1
----
6290

query I rowsort
SELECT + - 46 - + + 2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT - 89 * - 4 + MAX( DISTINCT - 94 ) AS col2
----
262

skipif mysql # not compatible
query I rowsort label-8635
SELECT - 89 * - 4 + MAX ( DISTINCT - 94 ) AS col2
----
262

query I rowsort
SELECT + 63 - - 29 + + - 65 * - 58
----
3862

query I rowsort
SELECT - 74 * - 7
----
518

onlyif mysql # aggregate syntax: 
query II rowsort label-8638
SELECT 74, 56 - + NULLIF ( + 49, COUNT( * ) ) AS col0
----
74
7

skipif mysql # not compatible
query II rowsort label-8638
SELECT 74, 56 - + NULLIF ( + 49, COUNT ( * ) ) AS col0
----
74
7

query I rowsort
SELECT DISTINCT 86 * - - 63 AS col1
----
5418

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT - MAX( DISTINCT 98 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-8640
SELECT - MAX ( DISTINCT 98 ) AS col2
----
-98

query I rowsort
SELECT + 27 + - 60
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT DISTINCT CAST( - + 8 AS SIGNED ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT CAST ( - + 8 AS INTEGER ) AS col2
----
-8

query II rowsort
SELECT 69 AS col1, 78
----
69
78

query I rowsort
SELECT + 79 + + NULLIF ( - - 66, - 52 ) * 79 AS col1
----
5293

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT ALL MIN( DISTINCT NULLIF ( - 82, + 57 ) ) * - 92
----
7544

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL MIN ( DISTINCT NULLIF ( - 82, + 57 ) ) * - 92
----
7544

query I rowsort
SELECT + 96 * + 25
----
2400

query II rowsort
SELECT 85 col0, 27 AS col1
----
85
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT + MAX( 64 ) + + ( - 78 )
----
-14

skipif mysql # not compatible
query I rowsort label-8648
SELECT + MAX ( 64 ) + + ( - 78 )
----
-14

query II rowsort
SELECT DISTINCT + 17 AS col0, 95 * + 88 * + 98 AS col1
----
17
819280

onlyif mysql # DIV for integer division: 
query I rowsort label-8650
SELECT + 61 DIV - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8650
SELECT + 61 / - 67 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8651
SELECT ALL CAST( NULL AS SIGNED ) / + COUNT( * ) + - + CASE + CAST( CASE - 27 WHEN 17 THEN + MAX( ALL 97 ) ELSE - 30 * - 92 + 20 END AS SIGNED ) WHEN + 87 THEN 89 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL CAST ( NULL AS INTEGER ) / + COUNT ( * ) + - + CASE + CAST ( CASE - 27 WHEN 17 THEN + MAX ( ALL 97 ) ELSE - 30 * - 92 + 20 END AS INTEGER ) WHEN + 87 THEN 89 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 90 * + 76 * - 5 AS col2
----
-34200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8653
SELECT MIN( + 65 ) DIV + MAX( 51 ) + 93
----
94

skipif mysql # not compatible
query I rowsort label-8653
SELECT MIN ( + 65 ) / + MAX ( 51 ) + 93
----
94

query II rowsort
SELECT DISTINCT + 42 AS col1, 76 AS col2
----
42
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8655
SELECT ALL 77 DIV + - COALESCE ( 86, + 48 ) + - 22
----
-22

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL 77 / + - COALESCE ( 86, + 48 ) + - 22
----
-22

query I rowsort
SELECT ALL - 32 + - 92 col0
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT ALL + ( + 44 ) * - 29 * + MAX( ALL NULLIF ( + 55, + 69 ) ) AS col1
----
-70180

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL + ( + 44 ) * - 29 * + MAX ( ALL NULLIF ( + 55, + 69 ) ) AS col1
----
-70180

query I rowsort
SELECT - - 55 * 65 - + 51 + 13 + - 85
----
3452

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8659
SELECT DISTINCT + 41 DIV - CAST( - + 58 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT + 41 / - CAST ( - + 58 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8660
SELECT ALL SUM( COALESCE ( 85, + 8 DIV 74 - 6 * - 65 ) ) + - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL SUM ( COALESCE ( 85, + 8 / 74 - 6 * - 65 ) ) + - COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT - 31 + 68 + - - COUNT( * ) col1
----
38

skipif mysql # not compatible
query I rowsort label-8661
SELECT - 31 + 68 + - - COUNT ( * ) col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT ALL + 97 + + COUNT( * ) - 58 - 95 * + 7
----
-625

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL + 97 + + COUNT ( * ) - 58 - 95 * + 7
----
-625

query I rowsort
SELECT 55 + 83 * + - 57
----
-4676

query II rowsort
SELECT + 42 AS col2, - 27
----
42
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8665
SELECT - 75 * + CAST( NULL AS SIGNED ) + - 55 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT - 75 * + CAST ( NULL AS INTEGER ) + - 55 + - COUNT ( * )
----
NULL

query I rowsort
SELECT - 58 * 40 + 18 * 7 AS col1
----
-2194

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT ( - COUNT( * ) ) - COUNT( * ) + + 52 * + COALESCE ( + MIN( DISTINCT + 25 ) * - 7, 60 + 42, - COUNT( * ) ) AS col2
----
-9102

skipif mysql # not compatible
query I rowsort label-8667
SELECT ( - COUNT ( * ) ) - COUNT ( * ) + + 52 * + COALESCE ( + MIN ( DISTINCT + 25 ) * - 7, 60 + 42, - COUNT ( * ) ) AS col2
----
-9102

query I rowsort
SELECT + 97 + 21
----
118

query I rowsort
SELECT ALL - ( - 58 ) - - + 1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8670
SELECT ALL - + 66 - - 77 DIV COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL - + 66 - - 77 / COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT 24 * SUM( + 46 )
----
1104

skipif mysql # not compatible
query I rowsort label-8671
SELECT 24 * SUM ( + 46 )
----
1104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8672
SELECT DISTINCT - ( + - COALESCE ( - + 16, - ( COUNT( * ) ) ) ) * + ( 61 DIV + 39 + + 79 )
----
-1280

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT - ( + - COALESCE ( - + 16, - ( COUNT ( * ) ) ) ) * + ( 61 / + 39 + + 79 )
----
-1280

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT ALL - COUNT( DISTINCT - 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL - COUNT ( DISTINCT - 96 )
----
-1

query I rowsort
SELECT ALL + - 0 * + ( + + 1 ) * 21 AS col1
----
0

query II rowsort
SELECT 7 col0, - 90 * + 80 AS col1
----
7
-7200

query I rowsort
SELECT ALL + 95 - + 25 * 49 AS col2
----
-1130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8677
SELECT 3 * + 7 * CASE COUNT( * ) WHEN - 33 THEN 9 * 95 WHEN + CAST( - 5 AS SIGNED ) - 20 * + 52 THEN - 96 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8677
SELECT 3 * + 7 * CASE COUNT ( * ) WHEN - 33 THEN 9 * 95 WHEN + CAST ( - 5 AS INTEGER ) - 20 * + 52 THEN - 96 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT SUM( - ( - - 55 ) ) * + 72 AS col0
----
-3960

skipif mysql # not compatible
query I rowsort label-8678
SELECT SUM ( - ( - - 55 ) ) * + 72 AS col0
----
-3960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8679
SELECT ALL - 49 + - MAX( ( - + 84 ) ) DIV 88
----
-49

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL - 49 + - MAX ( ( - + 84 ) ) / 88
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT DISTINCT COUNT( * ) * + - COALESCE ( 22, - 49 ) * + 97
----
-2134

skipif mysql # not compatible
query I rowsort label-8680
SELECT DISTINCT COUNT ( * ) * + - COALESCE ( 22, - 49 ) * + 97
----
-2134

query I rowsort
SELECT 46 * - + 42 AS col1
----
-1932

query I rowsort
SELECT ALL + 76 * 78
----
5928

query I rowsort
SELECT ( 76 ) + + COALESCE ( - 58, + 89 ) AS col0
----
18

query I rowsort
SELECT ALL 31 + 11
----
42

query II rowsort
SELECT ALL 49 + - + 84, 96 col1
----
-35
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT DISTINCT 84 + + - MIN( COALESCE ( 61, + 48 + + 52 ) ) * 74
----
-4430

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT 84 + + - MIN ( COALESCE ( 61, + 48 + + 52 ) ) * 74
----
-4430

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT DISTINCT COUNT( * ) + + + 16
----
17

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT COUNT ( * ) + + + 16
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT DISTINCT + COUNT( * ) + - 68 * - 18 * 47 AS col2
----
57529

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT + COUNT ( * ) + - 68 * - 18 * 47 AS col2
----
57529

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT 59 * - 25 * SUM( + - 12 ) col1
----
17700

skipif mysql # not compatible
query I rowsort label-8689
SELECT 59 * - 25 * SUM ( + - 12 ) col1
----
17700

onlyif mysql # DIV for integer division: 
query I rowsort label-8690
SELECT 90 DIV 55 * + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8690
SELECT 90 / 55 * + 57 AS col0
----
57

query I rowsort
SELECT ALL - 0 + 87 + 61 + - 9 + 99
----
238

query I rowsort
SELECT + CASE - 75 WHEN + 49 THEN + 21 * 93 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT COALESCE ( 44, + COUNT( * ) + + 48 ) * + 24 AS col1
----
1056

skipif mysql # not compatible
query I rowsort label-8693
SELECT COALESCE ( 44, + COUNT ( * ) + + 48 ) * + 24 AS col1
----
1056

query I rowsort
SELECT ALL - 51 * 38
----
-1938

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8695
SELECT ALL - + COALESCE ( + 68, + + 3 DIV 6 * + NULLIF ( - CASE 59 WHEN + ( + 79 ) + 94 THEN 61 WHEN 26 * + ( 63 ) + 80 * - NULLIF ( COUNT( * ) + - 34, - 93 ) THEN NULL WHEN 57 THEN NULL ELSE NULL END, + 68 + + 74 ) + 8 DIV - 62, - 18 * - COUNT( * ) + - COUNT( * ) )
----
-68

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL - + COALESCE ( + 68, + + 3 / 6 * + NULLIF ( - CASE 59 WHEN + ( + 79 ) + 94 THEN 61 WHEN 26 * + ( 63 ) + 80 * - NULLIF ( COUNT ( * ) + - 34, - 93 ) THEN NULL WHEN 57 THEN NULL ELSE NULL END, + 68 + + 74 ) + 8 / - 62, - 18 * - COUNT ( * ) + - COUNT ( * ) )
----
-68

query I rowsort
SELECT + 95 * - - 93 AS col1
----
8835

onlyif mysql # DIV for integer division: 
query I rowsort label-8697
SELECT - ( + 68 ) DIV ( 10 ) + 80
----
74

skipif mysql # not compatible
query I rowsort label-8697
SELECT - ( + 68 ) / ( 10 ) + 80
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8698
SELECT - 51 * 62 * 66 + + + 46 + - MAX( + NULLIF ( 3, 33 + + 9 ) ) DIV + 6 AS col2
----
-208646

skipif mysql # not compatible
query I rowsort label-8698
SELECT - 51 * 62 * 66 + + + 46 + - MAX ( + NULLIF ( 3, 33 + + 9 ) ) / + 6 AS col2
----
-208646

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL - NULLIF ( + + COUNT( * ), 46 / - 14 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL - NULLIF ( + + COUNT ( * ), 46 / - 14 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8700
SELECT + ( + + 53 ) DIV COUNT( * ) DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8700
SELECT + ( + + 53 ) / COUNT ( * ) / + 89 AS col1
----
0

query I rowsort
SELECT 87 + + 40 + 23 + - COALESCE ( 5, 47 - + 25 * 0, 64 * - 51 ) * 94 * + 12
----
-5490

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT + MAX( + 57 ) * + + 28
----
1596

skipif mysql # not compatible
query I rowsort label-8702
SELECT + MAX ( + 57 ) * + + 28
----
1596

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8703
SELECT 40 + + + COUNT( * ) + NULLIF ( + - CAST( NULL AS DECIMAL ), - - 35 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT 40 + + + COUNT ( * ) + NULLIF ( + - CAST ( NULL AS REAL ), - - 35 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8704
SELECT 50 + - ( - COUNT( * ) ) AS col2, CAST( + + 73 AS SIGNED ) * + 74
----
51
5402

skipif mysql # not compatible
query II rowsort label-8704
SELECT 50 + - ( - COUNT ( * ) ) AS col2, CAST ( + + 73 AS INTEGER ) * + 74
----
51
5402

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT ALL + 7 * - 45 * COUNT( * ) * - COUNT( * )
----
315

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL + 7 * - 45 * COUNT ( * ) * - COUNT ( * )
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT 56 * MIN( ALL - - 35 ) AS col0
----
1960

skipif mysql # not compatible
query I rowsort label-8706
SELECT 56 * MIN ( ALL - - 35 ) AS col0
----
1960

query I rowsort
SELECT DISTINCT + 89 * - 11 * + + 80 AS col1
----
-78320

query I rowsort
SELECT 69 * + 92 AS col2
----
6348

query I rowsort
SELECT ALL + 17 + + 33
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8710
SELECT CAST( NULL AS DECIMAL ) / + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8710
SELECT CAST ( NULL AS REAL ) / + 60
----
NULL

query I rowsort
SELECT DISTINCT + 99 + 27 AS col0
----
126

query I rowsort
SELECT ALL - 44 + + 90 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT MAX( - 49 ) + 40 + 15 + - 46 * + 61
----
-2800

skipif mysql # not compatible
query I rowsort label-8713
SELECT MAX ( - 49 ) + 40 + 15 + - 46 * + 61
----
-2800

query I rowsort
SELECT 75 + - 16 AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8715
SELECT - CAST( 54 AS SIGNED ) + + + COALESCE ( 90, + CAST( 79 AS SIGNED ) ) - 77 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8715
SELECT - CAST ( 54 AS INTEGER ) + + + COALESCE ( 90, + CAST ( 79 AS INTEGER ) ) - 77 AS col2
----
-41

query I rowsort
SELECT ALL + 82 + 37
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-8717
SELECT ALL + 45 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL + 45 / + 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT DISTINCT 36 * COUNT( * ) * 20 col1
----
720

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT 36 * COUNT ( * ) * 20 col1
----
720

query I rowsort
SELECT DISTINCT - 55 + 42 col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-8720
SELECT + COUNT( * ) AS col2, + ( + - 9 )
----
1
-9

skipif mysql # not compatible
query II rowsort label-8720
SELECT + COUNT ( * ) AS col2, + ( + - 9 )
----
1
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT - - COUNT( * ) * - 93 - - 22 * - COUNT( * )
----
-115

skipif mysql # not compatible
query I rowsort label-8721
SELECT - - COUNT ( * ) * - 93 - - 22 * - COUNT ( * )
----
-115

query I rowsort
SELECT ALL + 11 * 33
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT + + SUM( 39 ) * - 59 + + + COUNT( * )
----
-2300

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT + + SUM ( 39 ) * - 59 + + + COUNT ( * )
----
-2300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8724
SELECT ALL + MIN( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL + MIN ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8725
SELECT + MIN( + + CAST( - 82 AS SIGNED ) ) * 62 AS col1
----
-5084

skipif mysql # not compatible
query I rowsort label-8725
SELECT + MIN ( + + CAST ( - 82 AS INTEGER ) ) * 62 AS col1
----
-5084

query I rowsort
SELECT DISTINCT + ( - 4 ) AS col0
----
-4

query I rowsort
SELECT + - 59 + 22 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL + + MIN( DISTINCT + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL + + MIN ( DISTINCT + 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT + + MAX( ALL - 84 ) * - 84 * + 69
----
486864

skipif mysql # not compatible
query I rowsort label-8729
SELECT + + MAX ( ALL - 84 ) * - 84 * + 69
----
486864

query I rowsort
SELECT + + 84 + + 60 AS col2
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT - CAST( NULL AS SIGNED ) * - + 40 * + + 29 / 30 + 82 * + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT - CAST ( NULL AS INTEGER ) * - + 40 * + + 29 / 30 + 82 * + 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8732
SELECT ALL + 24 AS col1, - COUNT( * ) DIV 33 AS col0
----
24
0

skipif mysql # not compatible
query II rowsort label-8732
SELECT ALL + 24 AS col1, - COUNT ( * ) / 33 AS col0
----
24
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8733
SELECT + 56 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-8733
SELECT + 56 / - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT ALL NULLIF ( - 57, - 51 / - + 68 / 1 * 38 - 19 * + 30 - 52 ) * - COUNT( * ) + - ( + 37 )
----
20

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL NULLIF ( - 57, - 51 / - + 68 / 1 * 38 - 19 * + 30 - 52 ) * - COUNT ( * ) + - ( + 37 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT 10 * - 78 + + COUNT( * ) - 59 * + + 94 * 21 AS col0
----
-117245

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT 10 * - 78 + + COUNT ( * ) - 59 * + + 94 * 21 AS col0
----
-117245

query II rowsort
SELECT ALL 21, 21
----
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT - ( + CAST( + ( - 50 ) AS SIGNED ) ) + 64
----
114

skipif mysql # not compatible
query I rowsort label-8737
SELECT - ( + CAST ( + ( - 50 ) AS INTEGER ) ) + 64
----
114

query I rowsort
SELECT - COALESCE ( - 19, + + 67 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8739
SELECT - 26 DIV + ( 8 )
----
-3

skipif mysql # not compatible
query I rowsort label-8739
SELECT - 26 / + ( 8 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8740
SELECT ALL + 86 + + 41 DIV + 4 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL + 86 + + 41 / + 4 AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8741
SELECT 95, - COUNT( * ) + + - 53 AS col2
----
95
-54

skipif mysql # not compatible
query II rowsort label-8741
SELECT 95, - COUNT ( * ) + + - 53 AS col2
----
95
-54

query I rowsort
SELECT ALL 72 + + 92 AS col2
----
164

query I rowsort
SELECT - 84 * - 20 col1
----
1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT DISTINCT 7 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT 7 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL MIN( ALL 80 )
----
80

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL MIN ( ALL 80 )
----
80

query I rowsort
SELECT - 77 + - 48 AS col2
----
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT - 36 * + + 38 AS col1, + 88 - - COUNT( * ) AS col2
----
-1368
89

skipif mysql # not compatible
query II rowsort label-8747
SELECT - 36 * + + 38 AS col1, + 88 - - COUNT ( * ) AS col2
----
-1368
89

query I rowsort
SELECT ALL - 50 * - - ( 88 ) AS col1
----
-4400

query I rowsort
SELECT + 48 * + 63 AS col0
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - CASE - 16 WHEN + SUM( + 70 ) * + 28 * + 39 THEN - ( - 70 ) WHEN + COUNT( * ) - 72 THEN NULL ELSE NULL END + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT - CASE - 16 WHEN + SUM ( + 70 ) * + 28 * + 39 THEN - ( - 70 ) WHEN + COUNT ( * ) - 72 THEN NULL ELSE NULL END + 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT ALL NULLIF ( + CAST( NULL AS SIGNED ), - 94 ) * 57 / 58 + CAST( NULL AS SIGNED ) / 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), - 94 ) * 57 / 58 + CAST ( NULL AS INTEGER ) / 85 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT DISTINCT + CAST( - 55 AS SIGNED ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT + CAST ( - 55 AS INTEGER ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT - 55 + + CASE - NULLIF ( - 23, - 13 ) WHEN - 58 * - 90 + + 57 THEN 91 * COUNT( * ) ELSE NULL END + - NULLIF ( 53 + - 5 * 13, 25 ) * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT - 55 + + CASE - NULLIF ( - 23, - 13 ) WHEN - 58 * - 90 + + 57 THEN 91 * COUNT ( * ) ELSE NULL END + - NULLIF ( 53 + - 5 * 13, 25 ) * - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ALL + - 94 col2
----
-94

query II rowsort
SELECT ALL + + 33, 30 + + 15 - + - 95 AS col1
----
33
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8756
SELECT - + SUM( - COALESCE ( - - 38, - 81 ) ) DIV 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8756
SELECT - + SUM ( - COALESCE ( - - 38, - 81 ) ) / 54 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8757
SELECT ALL - 68 * - + 89, COUNT( * ) - + - 97 AS col2
----
6052
98

skipif mysql # not compatible
query II rowsort label-8757
SELECT ALL - 68 * - + 89, COUNT ( * ) - + - 97 AS col2
----
6052
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8758
SELECT DISTINCT - 57 DIV 39 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT - 57 / 39 AS col0
----
-1

query I rowsort
SELECT ALL + + 61 col2
----
61

query I rowsort
SELECT + - ( - + 86 )
----
86

query II rowsort
SELECT + + 22, - 88 AS col0
----
22
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8762
SELECT - 1 DIV - 78 * - 94 - - 92 - - 20
----
112

skipif mysql # not compatible
query I rowsort label-8762
SELECT - 1 / - 78 * - 94 - - 92 - - 20
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT - - 19 / - ( - CASE - MAX( - 48 ) WHEN - - COUNT( * ) * + COUNT( * ) THEN + 0 / 40 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8763
SELECT - - 19 / - ( - CASE - MAX ( - 48 ) WHEN - - COUNT ( * ) * + COUNT ( * ) THEN + 0 / 40 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8764
SELECT + 13 * - 39 + + + COUNT( DISTINCT + 58 ) DIV NULLIF ( - - 19, 82 ) * ( 93 * - 0 ) AS col2
----
-507

skipif mysql # not compatible
query I rowsort label-8764
SELECT + 13 * - 39 + + + COUNT ( DISTINCT + 58 ) / NULLIF ( - - 19, 82 ) * ( 93 * - 0 ) AS col2
----
-507

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8765
SELECT ALL - - ( + 83 ) DIV + COUNT( * ) + COUNT( * ) * - 60 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL - - ( + 83 ) / + COUNT ( * ) + COUNT ( * ) * - 60 AS col2
----
23

query II rowsort
SELECT + 68 AS col2, CASE - 8 WHEN - - 22 THEN NULL ELSE 94 + - 29 END + - 67 AS col2
----
68
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8767
SELECT + 27 * + 68 * + COUNT( * ) / + CASE + 47 WHEN COUNT( * ) THEN NULL WHEN - 51 THEN - 69 WHEN - AVG ( ALL CAST( + 52 AS DECIMAL ) ) THEN NULL ELSE NULL END + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT + 27 * + 68 * + COUNT ( * ) / + CASE + 47 WHEN COUNT ( * ) THEN NULL WHEN - 51 THEN - 69 WHEN - AVG ( ALL CAST ( + 52 AS REAL ) ) THEN NULL ELSE NULL END + - 2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8768
SELECT 69 * 20 + - CAST( + 98 AS SIGNED ) + - 34
----
1248

skipif mysql # not compatible
query I rowsort label-8768
SELECT 69 * 20 + - CAST ( + 98 AS INTEGER ) + - 34
----
1248

query II rowsort
SELECT ALL + - 40 AS col1, 29
----
-40
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8770
SELECT ALL 67 * - 45 + + 80 + - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-2936

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL 67 * - 45 + + 80 + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-2936

query I rowsort
SELECT DISTINCT - 30 * + 78 + NULLIF ( - 59, - 30 ) AS col2
----
-2399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8772
SELECT ALL 81 * - - 88 DIV - COUNT( * ) + - 12 + COUNT( * ) DIV + + 91
----
-7140

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL 81 * - - 88 / - COUNT ( * ) + - 12 + COUNT ( * ) / + + 91
----
-7140

query II rowsort
SELECT ( + 81 ), 13 AS col0
----
81
13

query I rowsort
SELECT ALL + ( - 43 )
----
-43

query II rowsort
SELECT + 50 * 6, COALESCE ( - - 83, + 76 ) * 83 * 61 * 28 + 11 AS col0
----
300
11766423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8776
SELECT + CAST( - + 1 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8776
SELECT + CAST ( - + 1 AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT ALL 25 * + 89 + 26 * + 54 AS col0
----
3629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8778
SELECT ALL 26 * CAST( - ( 33 ) AS SIGNED )
----
-858

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL 26 * CAST ( - ( 33 ) AS INTEGER )
----
-858

onlyif mysql # DIV for integer division: 
query II rowsort label-8779
SELECT DISTINCT - 72 DIV - - 92 AS col2, - 7 * + 40
----
0
-280

skipif mysql # not compatible
query II rowsort label-8779
SELECT DISTINCT - 72 / - - 92 AS col2, - 7 * + 40
----
0
-280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8780
SELECT 94 + - + CAST( NULL AS SIGNED ) * + + ( 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT 94 + - + CAST ( NULL AS INTEGER ) * + + ( 77 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT DISTINCT COUNT( * ) - - - 1 + - ( + COALESCE ( - 52, - - 37, + 57 ) ) * ( CASE + 10 WHEN 59 THEN - COALESCE ( + 41, 44, 31 + COUNT( * ) ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT COUNT ( * ) - - - 1 + - ( + COALESCE ( - 52, - - 37, + 57 ) ) * ( CASE + 10 WHEN 59 THEN - COALESCE ( + 41, 44, 31 + COUNT ( * ) ) END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8782
SELECT CAST( NULL AS SIGNED ) + 63 * + CAST( + 35 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8782
SELECT CAST ( NULL AS INTEGER ) + 63 * + CAST ( + 35 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT MIN( ALL - - 48 ) * 10
----
480

skipif mysql # not compatible
query I rowsort label-8783
SELECT MIN ( ALL - - 48 ) * 10
----
480

onlyif mysql # DIV for integer division: 
query I rowsort label-8784
SELECT 35 * 12 DIV 32 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8784
SELECT 35 * 12 / 32 AS col0
----
13

query I rowsort
SELECT ALL COALESCE ( - - 19, + ( + 41 ) )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8786
SELECT - 39 + - + 68 col1, + 4 / - CASE 82 WHEN - NULLIF ( 29, - 74 / COUNT( DISTINCT 15 * ( + 35 ) ) ) / 10 THEN + COUNT( * ) * - COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN NULL END + 74 AS col1
----
-107
NULL

skipif mysql # not compatible
query II rowsort label-8786
SELECT - 39 + - + 68 col1, + 4 / - CASE 82 WHEN - NULLIF ( 29, - 74 / COUNT ( DISTINCT 15 * ( + 35 ) ) ) / 10 THEN + COUNT ( * ) * - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL END + 74 AS col1
----
-107
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8787
SELECT ALL - - ( + - ( 74 ) ) * - CAST( NULL AS SIGNED ) * - + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL - - ( + - ( 74 ) ) * - CAST ( NULL AS INTEGER ) * - + 97 AS col2
----
NULL

query I rowsort
SELECT + 48 * - - 66 AS col2
----
3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8789
SELECT - CAST( ( + 85 ) AS SIGNED ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-8789
SELECT - CAST ( ( + 85 ) AS INTEGER ) AS col2
----
-85

query II rowsort
SELECT + 75 + - 37 AS col0, + 24 + + - 30 AS col2
----
38
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8791
SELECT - 14 * 86 DIV 65 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8791
SELECT - 14 * 86 / 65 AS col2
----
-18

query I rowsort
SELECT ALL + + 28 + 86
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT - 20 * + 45 + COUNT( * ) AS col0
----
-899

skipif mysql # not compatible
query I rowsort label-8793
SELECT - 20 * + 45 + COUNT ( * ) AS col0
----
-899

query I rowsort
SELECT ALL - ( - + 90 ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8795
SELECT + 64 + 55 * + - 11 * + CAST( - AVG ( + 52 ) AS SIGNED ) DIV + - COUNT( * ) + 53
----
-31343

skipif mysql # not compatible
query I rowsort label-8795
SELECT + 64 + 55 * + - 11 * + CAST ( - AVG ( + 52 ) AS INTEGER ) / + - COUNT ( * ) + 53
----
-31343

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL - 76 + - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL - 76 + - COUNT ( * )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8797
SELECT ALL - 12 DIV - + 77 + - + 66 + 95 * 86 + + - 29
----
8075

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL - 12 / - + 77 + - + 66 + 95 * 86 + + - 29
----
8075

query II rowsort
SELECT ALL + + 40 + + + 99, 1 + - - 30 col1
----
139
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8799
SELECT + + MAX( - 44 ) * + + 45 + - - 59 * 67 AS col2, + 13 DIV 71 AS col1
----
1973
0

skipif mysql # not compatible
query II rowsort label-8799
SELECT + + MAX ( - 44 ) * + + 45 + - - 59 * 67 AS col2, + 13 / 71 AS col1
----
1973
0

query I rowsort
SELECT ( - - 45 ) col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8801
SELECT 15 * 37 + 0 + CAST( 37 AS SIGNED ) * - - NULLIF ( - + MAX( ALL - 82 ), NULLIF ( 1, 28 ) + + 84 * 89 ) * - 58
----
-175417

skipif mysql # not compatible
query I rowsort label-8801
SELECT 15 * 37 + 0 + CAST ( 37 AS INTEGER ) * - - NULLIF ( - + MAX ( ALL - 82 ), NULLIF ( 1, 28 ) + + 84 * 89 ) * - 58
----
-175417

query I rowsort
SELECT ALL - 12 + + - 63 AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8803
SELECT ALL + 58 DIV + CAST( - 90 AS SIGNED ) * + 59 + 41 + ( + 68 ) AS col1
----
109

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL + 58 / + CAST ( - 90 AS INTEGER ) * + 59 + 41 + ( + 68 ) AS col1
----
109

query I rowsort
SELECT DISTINCT - 3 + - 70 + 4 * - 73 AS col2
----
-365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8805
SELECT DISTINCT + 40 * - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT + 40 * - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT 65 * + 8 AS col0
----
520

query I rowsort
SELECT 69 * + + 65 AS col2
----
4485

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT DISTINCT - MAX( - 51 ) - - - 34
----
17

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT - MAX ( - 51 ) - - - 34
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8809
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 18 AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-8809
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 18 AS col0
----
NULL
18

query I rowsort
SELECT ALL - 86 - 71 + + ( - 48 ) * + 94 AS col1
----
-4669

query I rowsort
SELECT ALL - ( - 85 ) AS col1
----
85

query II rowsort
SELECT 20, - 37 - + - 23 AS col1
----
20
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT 10 * + COUNT( + COALESCE ( - 20, 35 / - 8, + 0 ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8813
SELECT 10 * + COUNT ( + COALESCE ( - 20, 35 / - 8, + 0 ) ) AS col1
----
10

query II rowsort
SELECT ALL 40, + 20 * + 29 - + 80 AS col1
----
40
500

query I rowsort
SELECT 81 * - 58
----
-4698

query II rowsort
SELECT 34 AS col1, 42 + + 98
----
34
140

query II rowsort
SELECT ALL 6 AS col2, + 39 - - 66 AS col2
----
6
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT ALL - COUNT( * ) * COUNT( * ) * + 39 + COALESCE ( + 63, + 61 * + + 11 ) + + 14 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL - COUNT ( * ) * COUNT ( * ) * + 39 + COALESCE ( + 63, + 61 * + + 11 ) + + 14 AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8819
SELECT - 32 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8819
SELECT - 32 / 82
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT ALL + CAST( + 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL + CAST ( + 19 AS INTEGER )
----
19

query I rowsort
SELECT DISTINCT - 90 * - 74
----
6660

query I rowsort
SELECT ALL COALESCE ( - 6, - 74 + 71 ) * 55
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT MAX( ALL - 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8823
SELECT MAX ( ALL - 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-8824
SELECT + 82 * + COUNT( * ) * - + 32 AS col0, 75 col2
----
-2624
75

skipif mysql # not compatible
query II rowsort label-8824
SELECT + 82 * + COUNT ( * ) * - + 32 AS col0, 75 col2
----
-2624
75

query I rowsort
SELECT - ( + 92 ) AS col1
----
-92

query I rowsort
SELECT DISTINCT 0 + - + 5 AS col2
----
-5

query I rowsort
SELECT + 39 - - 90
----
129

query I rowsort
SELECT ALL + COALESCE ( - - 13, - 79 ) col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT + NULLIF ( 88, + 77 + - COALESCE ( 25, - - MIN( DISTINCT - ( + + 59 ) ) ) / - 16 ) * 22
----
1936

skipif mysql # not compatible
query I rowsort label-8829
SELECT + NULLIF ( 88, + 77 + - COALESCE ( 25, - - MIN ( DISTINCT - ( + + 59 ) ) ) / - 16 ) * 22
----
1936

query I rowsort
SELECT ALL 18 + + 30
----
48

query I rowsort
SELECT DISTINCT - 83 * - - 70 AS col2
----
-5810

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT ALL 0 * + 28 * - COUNT( * ) + 13 + 57 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL 0 * + 28 * - COUNT ( * ) + 13 + 57 AS col0
----
70

query II rowsort
SELECT + 64 AS col0, - 15
----
64
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-8834
SELECT ALL - 67 AS col0, + ( + ( + COUNT( * ) ) ) AS col0
----
-67
1

skipif mysql # not compatible
query II rowsort label-8834
SELECT ALL - 67 AS col0, + ( + ( + COUNT ( * ) ) ) AS col0
----
-67
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8835
SELECT ALL + 60 * 45 * - - 12 * CAST( NULL AS DECIMAL ) + - + CAST( + + 86 AS DECIMAL ) + + CAST( + + 12 AS SIGNED ) + 92 * AVG ( - ( + 47 ) ) + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL + 60 * 45 * - - 12 * CAST ( NULL AS REAL ) + - + CAST ( + + 86 AS REAL ) + + CAST ( + + 12 AS INTEGER ) + 92 * AVG ( - ( + 47 ) ) + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL + 54 * - - NULLIF ( + 39, ( + COALESCE ( - 53, - - ( - + 99 ), + 97 / + ( 39 ), COUNT( * ) + 94 ) ) ) AS col2
----
2106

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL + 54 * - - NULLIF ( + 39, ( + COALESCE ( - 53, - - ( - + 99 ), + 97 / + ( 39 ), COUNT ( * ) + 94 ) ) ) AS col2
----
2106

query I rowsort
SELECT DISTINCT 62 * - + 13
----
-806

query II rowsort
SELECT ALL 97 * - 17 AS col0, + 54 AS col0
----
-1649
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8839
SELECT DISTINCT + 9 DIV + + 51
----
0

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT + 9 / + + 51
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT DISTINCT + 0 DIV - - 81 * + + 87 * - 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT + 0 / - - 81 * + + 87 * - 53 AS col2
----
0

query I rowsort
SELECT - 43 * - + 34 AS col2
----
1462

query I rowsort
SELECT ALL + NULLIF ( + - 24, + + 87 + + 1 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8843
SELECT 27 * CAST( NULL AS SIGNED ) * 72 + - 86 * - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT 27 * CAST ( NULL AS INTEGER ) * 72 + - 86 * - + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT - COUNT( * ) * - ( - - 48 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8844
SELECT - COUNT ( * ) * - ( - - 48 ) AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT - CAST( NULL AS SIGNED ) * 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT - CAST ( NULL AS INTEGER ) * 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL + 91 * + COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL + 91 * + COUNT ( * ) AS col1
----
91

query II rowsort
SELECT - 25 + - + 56 * + 71 * + 19 AS col1, 2 AS col1
----
-75569
2

query I rowsort
SELECT ALL + 19 * 41
----
779

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT - 19 * - NULLIF ( - - 13, - + 99 + MIN( + + 56 ) ) col0
----
247

skipif mysql # not compatible
query I rowsort label-8849
SELECT - 19 * - NULLIF ( - - 13, - + 99 + MIN ( + + 56 ) ) col0
----
247

query I rowsort
SELECT 28 * + 82 * - - 92 + 39 * 16 + - + 62
----
211794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8851
SELECT - 21 + COUNT( * ) DIV 26 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8851
SELECT - 21 + COUNT ( * ) / 26 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8852
SELECT DISTINCT MAX( ALL + - 1 ) AS col2, 57 AS col1
----
-1
57

skipif mysql # not compatible
query II rowsort label-8852
SELECT DISTINCT MAX ( ALL + - 1 ) AS col2, 57 AS col1
----
-1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT - + 56 * COUNT( ALL 36 )
----
-56

skipif mysql # not compatible
query I rowsort label-8853
SELECT - + 56 * COUNT ( ALL 36 )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8854
SELECT DISTINCT + 28 + 19 DIV - - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT + 28 + 19 / - - COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT - 87 * 62 * COUNT( * ) AS col0
----
-5394

skipif mysql # not compatible
query I rowsort label-8855
SELECT - 87 * 62 * COUNT ( * ) AS col0
----
-5394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8856
SELECT ALL + + 74 + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL + + 74 + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT - CASE 52 WHEN - 91 * - NULLIF ( + 35, + + 45 - - 75 + - 56 + ( + 7 ) * SUM( ALL + 42 * - 35 + - 58 ) ) THEN - 61 - 43 * 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT - CASE 52 WHEN - 91 * - NULLIF ( + 35, + + 45 - - 75 + - 56 + ( + 7 ) * SUM ( ALL + 42 * - 35 + - 58 ) ) THEN - 61 - 43 * 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT + - ( + - 92 ) + SUM( + 12 )
----
104

skipif mysql # not compatible
query I rowsort label-8858
SELECT + - ( + - 92 ) + SUM ( + 12 )
----
104

query I rowsort
SELECT DISTINCT + - ( - 48 ) + + - 31
----
17

query I rowsort
SELECT + - 82 + - 12 + - 22 AS col2
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-8861
SELECT DISTINCT + - 32 DIV + 20 col1
----
-1

skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT + - 32 / + 20 col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8862
SELECT ALL + CAST( - MAX( ALL - 2 ) AS SIGNED ) + ( + 85 ) + ( + + ( - 86 ) ) * - - 51 * 64 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL + CAST ( - MAX ( ALL - 2 ) AS INTEGER ) + ( + 85 ) + ( + + ( - 86 ) ) * - - 51 * 64 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8863
SELECT ALL 90 + 80 DIV MIN( DISTINCT 69 )
----
91

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL 90 + 80 / MIN ( DISTINCT 69 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT + 60 * + - 37 * + COUNT( * ) col1
----
-2220

skipif mysql # not compatible
query I rowsort label-8864
SELECT + 60 * + - 37 * + COUNT ( * ) col1
----
-2220

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL - 85 * + + COUNT( * ) + 99 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL - 85 * + + COUNT ( * ) + 99 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT + ( - 12 ) + + CASE 40 WHEN - - ( - SUM( - 71 ) ) THEN + + 88 + + - ( + 69 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8866
SELECT + ( - 12 ) + + CASE 40 WHEN - - ( - SUM ( - 71 ) ) THEN + + 88 + + - ( + 69 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL - SUM( 41 ) - - 30 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL - SUM ( 41 ) - - 30 AS col1
----
-11

query II rowsort
SELECT - CASE WHEN NOT 42 IS NULL THEN NULL ELSE 49 END AS col2, - 49 AS col1
----
NULL
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8869
SELECT DISTINCT 51 DIV 32 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT 51 / 32 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8870
SELECT - CAST( + 39 AS SIGNED ) * - 19 * - - 15 * - 41 + + 57 DIV - NULLIF ( - 84, - 30 * - + COUNT( * ) + + NULLIF ( - 86, + NULLIF ( 27, SUM( 65 ) * 95 ) * ( + 92 * 62 ) ) ) col2
----
-455715

skipif mysql # not compatible
query I rowsort label-8870
SELECT - CAST ( + 39 AS INTEGER ) * - 19 * - - 15 * - 41 + + 57 / - NULLIF ( - 84, - 30 * - + COUNT ( * ) + + NULLIF ( - 86, + NULLIF ( 27, SUM ( 65 ) * 95 ) * ( + 92 * 62 ) ) ) col2
----
-455715

query I rowsort
SELECT + ( - - 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-8872
SELECT ALL + 39 AS col2, - COALESCE ( + + 60, - COUNT( * ), + 21 )
----
39
-60

skipif mysql # not compatible
query II rowsort label-8872
SELECT ALL + 39 AS col2, - COALESCE ( + + 60, - COUNT ( * ), + 21 )
----
39
-60

query I rowsort
SELECT ( - - ( + 55 ) )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8874
SELECT 23 * - 26 / CASE - 6 WHEN - COALESCE ( 88, - 33 * + - 94 + 35 ) * + 34 THEN 3 + - MIN( CAST( NULL AS SIGNED ) + 35 * 9 ) WHEN 46 THEN NULL WHEN 87 / + 51 THEN + COUNT( * ) ELSE 50 - CAST( NULL AS SIGNED ) * + COUNT( * ) END + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8874
SELECT 23 * - 26 / CASE - 6 WHEN - COALESCE ( 88, - 33 * + - 94 + 35 ) * + 34 THEN 3 + - MIN ( CAST ( NULL AS INTEGER ) + 35 * 9 ) WHEN 46 THEN NULL WHEN 87 / + 51 THEN + COUNT ( * ) ELSE 50 - CAST ( NULL AS INTEGER ) * + COUNT ( * ) END + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 37 + 0 * + 80 * - 65 AS col2
----
-37

query I rowsort
SELECT ALL NULLIF ( 86, + ( - + 99 ) - 32 + - + AVG ( DISTINCT + + 94 ) ) * - 79
----
-6794

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT DISTINCT ( 27 ) * + 44 + - - COUNT( * )
----
1189

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT ( 27 ) * + 44 + - - COUNT ( * )
----
1189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8878
SELECT CASE + COUNT( * ) WHEN - + COUNT( * ) + - - COUNT( * ) + - - 57 THEN COUNT( + 13 ) - - + 0 * - + 4 WHEN + 74 THEN NULL ELSE 65 DIV - ( 93 * - COUNT( * ) ) END
----
0

skipif mysql # not compatible
query I rowsort label-8878
SELECT CASE + COUNT ( * ) WHEN - + COUNT ( * ) + - - COUNT ( * ) + - - 57 THEN COUNT ( + 13 ) - - + 0 * - + 4 WHEN + 74 THEN NULL ELSE 65 / - ( 93 * - COUNT ( * ) ) END
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8879
SELECT NULLIF ( - - 98, + COUNT( * ) ) AS col0, 93 - 14 AS col0
----
98
79

skipif mysql # not compatible
query II rowsort label-8879
SELECT NULLIF ( - - 98, + COUNT ( * ) ) AS col0, 93 - 14 AS col0
----
98
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT - 54 * COUNT( * ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-8880
SELECT - 54 * COUNT ( * ) AS col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8881
SELECT + - CASE - - 52 WHEN 1 / + 22 + + + ( + 82 ) THEN + + 68 WHEN 66 + ( + - COUNT( * ) ) THEN NULL WHEN CASE WHEN ( 96 ) > NULL THEN - 85 ELSE NULL END THEN - CASE 16 WHEN ( COUNT( * ) ) THEN NULL ELSE 15 END + + ( 9 + ( - 82 - NULLIF ( - COUNT( DISTINCT - 23 ) - COUNT( * ), COUNT( * ) * + CAST( NULL AS SIGNED ) ) ) / - 35 ) ELSE NULL END / + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT + - CASE - - 52 WHEN 1 / + 22 + + + ( + 82 ) THEN + + 68 WHEN 66 + ( + - COUNT ( * ) ) THEN NULL WHEN CASE WHEN ( 96 ) > NULL THEN - 85 ELSE NULL END THEN - CASE 16 WHEN ( COUNT ( * ) ) THEN NULL ELSE 15 END + + ( 9 + ( - 82 - NULLIF ( - COUNT ( DISTINCT - 23 ) - COUNT ( * ), COUNT ( * ) * + CAST ( NULL AS INTEGER ) ) ) / - 35 ) ELSE NULL END / + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT - - 46 * COUNT( + 39 )
----
46

skipif mysql # not compatible
query I rowsort label-8882
SELECT - - 46 * COUNT ( + 39 )
----
46

query I rowsort
SELECT ALL - 46 * + - 70 + + 70 AS col2
----
3290

onlyif mysql # aggregate syntax: 
query II rowsort label-8884
SELECT ALL + 49 * 48 * + + 8 AS col0, COUNT( * ) AS col1
----
18816
1

skipif mysql # not compatible
query II rowsort label-8884
SELECT ALL + 49 * 48 * + + 8 AS col0, COUNT ( * ) AS col1
----
18816
1

query I rowsort
SELECT DISTINCT - 38 + - 9 AS col2
----
-47

query I rowsort
SELECT ALL + 89 * - 98 AS col0
----
-8722

query I rowsort
SELECT - + NULLIF ( - + NULLIF ( ( 77 ), - + 9 ), 48 )
----
77

query I rowsort
SELECT - - 50 + - 21
----
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8889
SELECT - CASE 4 WHEN - 29 / + MIN( 8 ) + 12 THEN - 47 WHEN 54 * - 92 * - 52 THEN + COALESCE ( 92, 54 ) + - 14 ELSE NULL END + CAST( NULL AS DECIMAL ) * 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8889
SELECT - CASE 4 WHEN - 29 / + MIN ( 8 ) + 12 THEN - 47 WHEN 54 * - 92 * - 52 THEN + COALESCE ( 92, 54 ) + - 14 ELSE NULL END + CAST ( NULL AS REAL ) * 4 AS col0
----
NULL

query I rowsort
SELECT ALL - + 67 - - 33
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT - 24 * + - COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-8891
SELECT - 24 * + - COUNT ( * ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT - SUM( - + 42 ) col0
----
42

skipif mysql # not compatible
query I rowsort label-8892
SELECT - SUM ( - + 42 ) col0
----
42

query I rowsort
SELECT ALL 62 * 91
----
5642

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT 94 * + + 6 * - COUNT( * )
----
-564

skipif mysql # not compatible
query I rowsort label-8894
SELECT 94 * + + 6 * - COUNT ( * )
----
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL - 27 * + CASE COUNT( * ) WHEN + - 61 / + + NULLIF ( + COUNT( * ), - - 65 + - - NULLIF ( - NULLIF ( - COUNT( * ), - 47 * + CASE - 20 WHEN - 37 + + 38 THEN 56 WHEN 40 / - 94 THEN 57 * - 0 + - 26 ELSE 23 + - 73 END ), 65 + 45 ) ) + + MIN( - 5 ) THEN + 34 WHEN + 44 * - 70 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL - 27 * + CASE COUNT ( * ) WHEN + - 61 / + + NULLIF ( + COUNT ( * ), - - 65 + - - NULLIF ( - NULLIF ( - COUNT ( * ), - 47 * + CASE - 20 WHEN - 37 + + 38 THEN 56 WHEN 40 / - 94 THEN 57 * - 0 + - 26 ELSE 23 + - 73 END ), 65 + 45 ) ) + + MIN ( - 5 ) THEN + 34 WHEN + 44 * - 70 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT + 69 AS col2, + 98
----
69
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT 84 * COALESCE ( - - COALESCE ( + - COUNT( * ), - CASE 39 WHEN + - 16 + + 59 THEN 15 + COUNT( * ) END * 95 - NULLIF ( 95 + COUNT( * ), - 73 ) ), 99 * + 89, - 68 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8897
SELECT 84 * COALESCE ( - - COALESCE ( + - COUNT ( * ), - CASE 39 WHEN + - 16 + + 59 THEN 15 + COUNT ( * ) END * 95 - NULLIF ( 95 + COUNT ( * ), - 73 ) ), 99 * + 89, - 68 ) AS col2
----
-84

query I rowsort
SELECT 19 * + NULLIF ( 51, + - 57 )
----
969

onlyif mysql # aggregate syntax: 
query II rowsort label-8899
SELECT COUNT( * ) - + 35 AS col0, - 44 * + 5
----
-34
-220

skipif mysql # not compatible
query II rowsort label-8899
SELECT COUNT ( * ) - + 35 AS col0, - 44 * + 5
----
-34
-220

query I rowsort
SELECT ( 72 ) * 15 - - + COALESCE ( - 98, 87, + 7 ) + - 2 AS col0
----
980

onlyif mysql # DIV for integer division: 
query II rowsort label-8901
SELECT + 93, + 32 DIV + 2 + - 77 AS col0
----
93
-61

skipif mysql # not compatible
query II rowsort label-8901
SELECT + 93, + 32 / + 2 + - 77 AS col0
----
93
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8902
SELECT COUNT( * ) - + + 15 DIV + 18 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8902
SELECT COUNT ( * ) - + + 15 / + 18 AS col1
----
1

query II rowsort
SELECT 44 - + 66 AS col0, + 0
----
-22
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8904
SELECT ALL 54 + CAST( NULL AS SIGNED ) + - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL 54 + CAST ( NULL AS INTEGER ) + - 63 AS col2
----
NULL

query II rowsort
SELECT + 4, 26 AS col1
----
4
26

query I rowsort
SELECT ALL 95 + 52 * - 17 AS col0
----
-789

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT + SUM( DISTINCT 93 )
----
93

skipif mysql # not compatible
query I rowsort label-8907
SELECT + SUM ( DISTINCT 93 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8908
SELECT 14 + - 57 - + 14 DIV - - 61 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8908
SELECT 14 + - 57 - + 14 / - - 61 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT ALL + 78 * - ( - COUNT( * ) ) * - SUM( ALL - - 74 ) AS col1
----
-5772

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL + 78 * - ( - COUNT ( * ) ) * - SUM ( ALL - - 74 ) AS col1
----
-5772

query I rowsort
SELECT - ( + 79 ) + 97
----
18

query I rowsort
SELECT ALL - 9 + + 79 AS col2
----
70

query I rowsort
SELECT DISTINCT 66 * - - 15
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT ALL - + 6 - + COALESCE ( + 82, - MIN( ALL + + 74 ) ) * ( - COALESCE ( + - 64, - COUNT( * ) ) ) - + 35 * + 98 * 90 + + 46 * COUNT( * )
----
-313908

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL - + 6 - + COALESCE ( + 82, - MIN ( ALL + + 74 ) ) * ( - COALESCE ( + - 64, - COUNT ( * ) ) ) - + 35 * + 98 * 90 + + 46 * COUNT ( * )
----
-313908

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT + COUNT( * ) * 99 * + 47 + + 21 * COUNT( * )
----
4674

skipif mysql # not compatible
query I rowsort label-8914
SELECT + COUNT ( * ) * 99 * + 47 + + 21 * COUNT ( * )
----
4674

query II rowsort
SELECT ALL + 80 AS col2, + 22 * - + 13
----
80
-286

onlyif mysql # aggregate syntax: 
query II rowsort label-8916
SELECT - 71 col0, - MAX( - + 77 )
----
-71
77

skipif mysql # not compatible
query II rowsort label-8916
SELECT - 71 col0, - MAX ( - + 77 )
----
-71
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8917
SELECT ALL ( SUM( DISTINCT - 9 ) ) DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL ( SUM ( DISTINCT - 9 ) ) / - 55
----
0

query I rowsort
SELECT 75 + - - 51 * - - 72 + + 15
----
3762

query I rowsort
SELECT ALL + 93 - 66 AS col0
----
27

query I rowsort
SELECT DISTINCT - - 64 * 24 AS col0
----
1536

onlyif mysql # DIV for integer division: 
query I rowsort label-8921
SELECT - 8 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-8921
SELECT - 8 / - 90
----
0

query I rowsort
SELECT ALL - NULLIF ( + + 8, 44 ) * - 94 * + 68 + - - 84 AS col1
----
51220

query I rowsort
SELECT + 17 * - - 10 * + 94
----
15980

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT 96 * + - 37 + + + MIN( DISTINCT - 21 ) AS col2
----
-3573

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT 96 * + - 37 + + + MIN ( DISTINCT - 21 ) AS col2
----
-3573

query I rowsort
SELECT DISTINCT - NULLIF ( 9, - 4 * - + 94 - - - 78 * + 61 ) * - - 55 * + 42
----
-20790

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT DISTINCT - 41 * + - COUNT( * ) * - - 71 AS col1
----
2911

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - 41 * + - COUNT ( * ) * - - 71 AS col1
----
2911

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8927
SELECT 4 * 92 DIV 97 DIV - 83 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8927
SELECT 4 * 92 / 97 / - 83 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT 75 + + MAX( - 27 ) * - + 89
----
2478

skipif mysql # not compatible
query I rowsort label-8928
SELECT 75 + + MAX ( - 27 ) * - + 89
----
2478

query I rowsort
SELECT DISTINCT - ( 18 ) AS col1
----
-18

query I rowsort
SELECT ALL - 96 + + ( - + 7 ) AS col0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT 60 DIV - 26 + + 90 + + + ( - 89 ) + + 92
----
91

skipif mysql # not compatible
query I rowsort label-8931
SELECT 60 / - 26 + + 90 + + + ( - 89 ) + + 92
----
91

query I rowsort
SELECT 9 + + + 22 AS col1
----
31

query I rowsort
SELECT DISTINCT + 51 + 24
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8934
SELECT DISTINCT COUNT( * ) + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT COUNT ( * ) + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 78 + - 0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT MIN( + + 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8936
SELECT MIN ( + + 78 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8937
SELECT ALL + 6 * - 82, - SUM( DISTINCT ( - - 23 ) ) * 11 * + - 1 + - 9 + - 30 - 3 AS col2
----
-492
211

skipif mysql # not compatible
query II rowsort label-8937
SELECT ALL + 6 * - 82, - SUM ( DISTINCT ( - - 23 ) ) * 11 * + - 1 + - 9 + - 30 - 3 AS col2
----
-492
211

query II rowsort
SELECT 54 + + 42, + 61 AS col0
----
96
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8939
SELECT + 63 DIV 50 DIV - 14 + - 13 * - 75 + - MAX( ALL - 88 ) - - 85 * - 47 * ( + + 58 )
----
-230647

skipif mysql # not compatible
query I rowsort label-8939
SELECT + 63 / 50 / - 14 + - 13 * - 75 + - MAX ( ALL - 88 ) - - 85 * - 47 * ( + + 58 )
----
-230647

onlyif mysql # DIV for integer division: 
query I rowsort label-8940
SELECT ALL + 13 * - - 27 + + COALESCE ( 4, - 40 ) DIV + 31
----
351

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL + 13 * - - 27 + + COALESCE ( 4, - 40 ) / + 31
----
351

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT COUNT( * ) * - + 31 + - 93
----
-124

skipif mysql # not compatible
query I rowsort label-8941
SELECT COUNT ( * ) * - + 31 + - 93
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT ALL 29 - 76 * + MIN( ALL + 97 )
----
-7343

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL 29 - 76 * + MIN ( ALL + 97 )
----
-7343

onlyif mysql # aggregate syntax: 
query II rowsort label-8943
SELECT DISTINCT - MAX( 92 ), 65 AS col0
----
-92
65

skipif mysql # not compatible
query II rowsort label-8943
SELECT DISTINCT - MAX ( 92 ), 65 AS col0
----
-92
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT DISTINCT - - NULLIF ( - 50, + + 74 + MAX( ( - 49 ) ) ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT - - NULLIF ( - 50, + + 74 + MAX ( ( - 49 ) ) ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT - COUNT( DISTINCT 7 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8945
SELECT - COUNT ( DISTINCT 7 ) AS col1
----
-1

query I rowsort
SELECT - - NULLIF ( + 99, + 70 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT + - COUNT( * ) * + + 3 * - + COALESCE ( + - 68, + 90 ) * - COUNT( * ) AS col0
----
204

skipif mysql # not compatible
query I rowsort label-8947
SELECT + - COUNT ( * ) * + + 3 * - + COALESCE ( + - 68, + 90 ) * - COUNT ( * ) AS col0
----
204

query I rowsort
SELECT ALL - 6 * - + 56 AS col1
----
336

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8949
SELECT ALL CAST( 54 AS SIGNED ), - 52 AS col2
----
54
-52

skipif mysql # not compatible
query II rowsort label-8949
SELECT ALL CAST ( 54 AS INTEGER ), - 52 AS col2
----
54
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + NULLIF ( - COUNT( ( + ( 8 ) ) ), - + ( + 37 ) * + 20 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8950
SELECT + NULLIF ( - COUNT ( ( + ( 8 ) ) ), - + ( + 37 ) * + 20 ) col0
----
-1

query I rowsort
SELECT + 72 + - 87
----
-15

query I rowsort
SELECT - 21 - + ( + + 43 )
----
-64

query I rowsort
SELECT - 97 * - 78 col1
----
7566

query II rowsort
SELECT 83 AS col1, 5
----
83
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8955
SELECT - 14 / + CASE CAST( NULL AS SIGNED ) WHEN + CAST( + 86 AS SIGNED ) + - 51 THEN - + COALESCE ( - 59, - 4 - - MAX( DISTINCT - 59 ) + - MAX( ALL 40 ), 8 / - 30 ) + + 4 END * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT - 14 / + CASE CAST ( NULL AS INTEGER ) WHEN + CAST ( + 86 AS INTEGER ) + - 51 THEN - + COALESCE ( - 59, - 4 - - MAX ( DISTINCT - 59 ) + - MAX ( ALL 40 ), 8 / - 30 ) + + 4 END * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 2 * - - 1
----
2

query I rowsort
SELECT + 61 + - 76 AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT - 79 DIV - 23 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8958
SELECT - 79 / - 23 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT ALL + 75 * + - 6 + + 40 * + ( - COUNT( * ) )
----
-490

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL + 75 * + - 6 + + 40 * + ( - COUNT ( * ) )
----
-490

query I rowsort
SELECT - 72 * + 30 AS col0
----
-2160

query I rowsort
SELECT ( - 47 ) col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT ( ( + COUNT( + - 76 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8962
SELECT ( ( + COUNT ( + - 76 ) ) ) AS col1
----
1

query I rowsort
SELECT - 36 - 93
----
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-8964
SELECT ( - + ( + 92 ) ) AS col1, COUNT( * ) * 51 AS col2
----
-92
51

skipif mysql # not compatible
query II rowsort label-8964
SELECT ( - + ( + 92 ) ) AS col1, COUNT ( * ) * 51 AS col2
----
-92
51

query I rowsort
SELECT COALESCE ( - 17, + 64 ) col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT - 12 - + SUM( DISTINCT - 21 ) * COUNT( * ) + 49
----
58

skipif mysql # not compatible
query I rowsort label-8966
SELECT - 12 - + SUM ( DISTINCT - 21 ) * COUNT ( * ) + 49
----
58

query I rowsort
SELECT ALL + 62 * 84
----
5208

onlyif mysql # aggregate syntax: 
query II rowsort label-8968
SELECT DISTINCT + - COUNT( * ) col2, MAX( DISTINCT 34 )
----
-1
34

skipif mysql # not compatible
query II rowsort label-8968
SELECT DISTINCT + - COUNT ( * ) col2, MAX ( DISTINCT 34 )
----
-1
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT + - COUNT( ALL + 20 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8969
SELECT + - COUNT ( ALL + 20 ) AS col1
----
-1

query I rowsort
SELECT - 88 * - 31 + + 97 col0
----
2825

onlyif mysql # DIV for integer division: 
query I rowsort label-8971
SELECT - - 83 * - 4 * - 63 + + 18 + - 16 - - 17 DIV - - 54 * 63
----
20918

skipif mysql # not compatible
query I rowsort label-8971
SELECT - - 83 * - 4 * - 63 + + 18 + - 16 - - 17 / - - 54 * 63
----
20918

query I rowsort
SELECT - 97 - - ( + - ( + 1 ) ) - - 13
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT ALL + + 23 * + CASE - - 94 WHEN + + 70 + - 22 THEN NULL ELSE + 90 * - COUNT( * ) END
----
-2070

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL + + 23 * + CASE - - 94 WHEN + + 70 + - 22 THEN NULL ELSE + 90 * - COUNT ( * ) END
----
-2070

query I rowsort
SELECT - 52 * - 84 + - 95 - 6
----
4267

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT + + 32 - + - COALESCE ( - COUNT( + 90 ), - 45, + 52 )
----
31

skipif mysql # not compatible
query I rowsort label-8975
SELECT + + 32 - + - COALESCE ( - COUNT ( + 90 ), - 45, + 52 )
----
31

query I rowsort
SELECT DISTINCT + 68 * - + 81 AS col1
----
-5508

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8977
SELECT - + 46 DIV + 1 - COUNT( * ) AS col2, SUM( + + 66 ) AS col2
----
-47
66

skipif mysql # not compatible
query II rowsort label-8977
SELECT - + 46 / + 1 - COUNT ( * ) AS col2, SUM ( + + 66 ) AS col2
----
-47
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT + + 41 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-8978
SELECT + + 41 / + 71
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8979
SELECT ALL + 2, COUNT( * ) col1
----
2
1

skipif mysql # not compatible
query II rowsort label-8979
SELECT ALL + 2, COUNT ( * ) col1
----
2
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8980
SELECT - - MIN( DISTINCT - + 88 ) + + ( - + COUNT( * ) ) AS col1, CAST( - 6 AS SIGNED ) + + + 90 AS col0
----
-89
84

skipif mysql # not compatible
query II rowsort label-8980
SELECT - - MIN ( DISTINCT - + 88 ) + + ( - + COUNT ( * ) ) AS col1, CAST ( - 6 AS INTEGER ) + + + 90 AS col0
----
-89
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ALL - MIN( + + COALESCE ( - 81, + 47 ) ) * - ( 9 ) AS col1
----
-729

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL - MIN ( + + COALESCE ( - 81, + 47 ) ) * - ( 9 ) AS col1
----
-729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8982
SELECT DISTINCT + 8 * + - 78 * + 55 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT + 8 * + - 78 * + 55 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT DISTINCT + 52 * - + COUNT( * ) * + COUNT( * ) - - + ( - + 25 )
----
-77

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT + 52 * - + COUNT ( * ) * + COUNT ( * ) - - + ( - + 25 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT + MAX( ALL - 20 ) + + 21 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT + MAX ( ALL - 20 ) + + 21 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8985
SELECT - COUNT( * ), 47 + 68 + + 16 DIV - MIN( + 14 ) AS col0
----
-1
114

skipif mysql # not compatible
query II rowsort label-8985
SELECT - COUNT ( * ), 47 + 68 + + 16 / - MIN ( + 14 ) AS col0
----
-1
114

onlyif mysql # aggregate syntax: 
query II rowsort label-8986
SELECT - COUNT( 2 ) col0, - 53 * CASE + - ( CASE - 67 WHEN + - 94 THEN - 15 WHEN + 49 + + + 94 * + 3 + - - 18 * COALESCE ( + 95, 15, MIN( ALL - 99 ) ) + - 4 * 25 THEN NULL END ) WHEN - 83 * 43 THEN 43 * 83 WHEN + 72 THEN NULL ELSE NULL END / - 99
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8986
SELECT - COUNT ( 2 ) col0, - 53 * CASE + - ( CASE - 67 WHEN + - 94 THEN - 15 WHEN + 49 + + + 94 * + 3 + - - 18 * COALESCE ( + 95, 15, MIN ( ALL - 99 ) ) + - 4 * 25 THEN NULL END ) WHEN - 83 * 43 THEN 43 * 83 WHEN + 72 THEN NULL ELSE NULL END / - 99
----
-1
NULL

query I rowsort
SELECT + 39 * 61 * 76 AS col2
----
180804

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT DISTINCT COUNT( * ) + - 22
----
-21

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT COUNT ( * ) + - 22
----
-21

query I rowsort
SELECT ALL 21 + - 75 AS col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8990
SELECT ALL SUM( DISTINCT - 74 ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL SUM ( DISTINCT - 74 ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8991
SELECT ALL + COUNT( * ) * 27 DIV + 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL + COUNT ( * ) * 27 / + 46 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8992
SELECT DISTINCT - 51 + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT - 51 + + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT DISTINCT COUNT( - 84 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT COUNT ( - 84 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8994
SELECT - CAST( - 75 AS SIGNED ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-8994
SELECT - CAST ( - 75 AS INTEGER ) AS col2
----
75

query I rowsort
SELECT ALL + 33 + + 97 col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT + COUNT( * ) * + 38 * 26
----
988

skipif mysql # not compatible
query I rowsort label-8996
SELECT + COUNT ( * ) * + 38 * 26
----
988

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT - ( MAX( - ( - 55 ) ) )
----
-55

skipif mysql # not compatible
query I rowsort label-8997
SELECT - ( MAX ( - ( - 55 ) ) )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8998
SELECT 34 DIV + 68 + 92 - - 39 * COALESCE ( + - 68, 39 ) * 4 AS col2
----
-10516

skipif mysql # not compatible
query I rowsort label-8998
SELECT 34 / + 68 + 92 - - 39 * COALESCE ( + - 68, 39 ) * 4 AS col2
----
-10516

onlyif mysql # DIV for integer division: 
query I rowsort label-8999
SELECT ALL 51 DIV + 47 - 63 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL 51 / + 47 - 63 AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9000
SELECT CAST( + 98 AS SIGNED ) AS col0, + 88
----
98
88

skipif mysql # not compatible
query II rowsort label-9000
SELECT CAST ( + 98 AS INTEGER ) AS col0, + 88
----
98
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9001
SELECT DISTINCT - 58 DIV - ( 33 ) - - - 57 DIV - - COUNT( * ) + - 81 DIV 89 AS col1, 55 * CAST( - - 46 AS SIGNED ) * + 2 col1
----
-56
5060

skipif mysql # not compatible
query II rowsort label-9001
SELECT DISTINCT - 58 / - ( 33 ) - - - 57 / - - COUNT ( * ) + - 81 / 89 AS col1, 55 * CAST ( - - 46 AS INTEGER ) * + 2 col1
----
-56
5060

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT - MIN( 15 ) * + CASE - - 79 WHEN + + MIN( ALL - 38 ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9002
SELECT - MIN ( 15 ) * + CASE - - 79 WHEN + + MIN ( ALL - 38 ) THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT COUNT( + 49 )
----
1

skipif mysql # not compatible
query I rowsort label-9003
SELECT COUNT ( + 49 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT + SUM( - + 88 ) * - - 23 + + - 88
----
-2112

skipif mysql # not compatible
query I rowsort label-9004
SELECT + SUM ( - + 88 ) * - - 23 + + - 88
----
-2112

query I rowsort
SELECT - 85 * - 26
----
2210

onlyif mysql # DIV for integer division: 
query I rowsort label-9006
SELECT + ( 95 ) DIV - 25 + - 48 + + 55 * + 87 + 13 * 37 AS col2
----
5215

skipif mysql # not compatible
query I rowsort label-9006
SELECT + ( 95 ) / - 25 + - 48 + + 55 * + 87 + 13 * 37 AS col2
----
5215

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT + MAX( + 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-9007
SELECT + MAX ( + 67 ) AS col1
----
67

query I rowsort
SELECT 81 + + ( - - 84 ) AS col0
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9009
SELECT + 28 * - + 23 + + NULLIF ( 16, - + 73 * 33 ) + - - CAST( - + CAST( + - 53 AS SIGNED ) AS SIGNED )
----
-575

skipif mysql # not compatible
query I rowsort label-9009
SELECT + 28 * - + 23 + + NULLIF ( 16, - + 73 * 33 ) + - - CAST ( - + CAST ( + - 53 AS INTEGER ) AS INTEGER )
----
-575

query I rowsort
SELECT DISTINCT - + ( + 88 )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9011
SELECT ALL + + 45 * - 0 + 11 - - CAST( NULL AS SIGNED ) / + 86 + + SUM( - 49 ) AS col2, 76 AS col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-9011
SELECT ALL + + 45 * - 0 + 11 - - CAST ( NULL AS INTEGER ) / + 86 + + SUM ( - 49 ) AS col2, 76 AS col1
----
NULL
76

query I rowsort
SELECT 7 * + 18
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL + + 28 + - 72 * COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL + + 28 + - 72 * COUNT ( * ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT DISTINCT + 23 + - 93 * - 54 + + COUNT( * )
----
5046

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT + 23 + - 93 * - 54 + + COUNT ( * )
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT COUNT( * ) - 57 - - - ( - 45 )
----
-11

skipif mysql # not compatible
query I rowsort label-9015
SELECT COUNT ( * ) - 57 - - - ( - 45 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT + CASE + 73 WHEN + - 38 THEN NULL WHEN + 32 * - MIN( + 50 ) + - + COUNT( * ) THEN 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT + CASE + 73 WHEN + - 38 THEN NULL WHEN + 32 * - MIN ( + 50 ) + - + COUNT ( * ) THEN 50 END
----
NULL

query I rowsort
SELECT 30 * 36
----
1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9018
SELECT - - 63 * - 9 + 29 + - + 42 + ( - 44 ) + - 32 * - COUNT( * ) + - 83 AS col2, 69 DIV 23 * + MAX( - 30 ) AS col2
----
-675
-90

skipif mysql # not compatible
query II rowsort label-9018
SELECT - - 63 * - 9 + 29 + - + 42 + ( - 44 ) + - 32 * - COUNT ( * ) + - 83 AS col2, 69 / 23 * + MAX ( - 30 ) AS col2
----
-675
-90

query I rowsort
SELECT DISTINCT - - 3 + 66
----
69

query I rowsort
SELECT ALL + - 40 + + + 15 + - 72 * - + 11 + + 14
----
781

query I rowsort
SELECT 3 - 74 AS col2
----
-71

query II rowsort
SELECT ALL 9 AS col1, - 5
----
9
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9023
SELECT DISTINCT 32 DIV + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT 32 / + COUNT ( * )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9024
SELECT DISTINCT ( - CAST( + - COUNT( * ) AS SIGNED ) ) + - 11 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT ( - CAST ( + - COUNT ( * ) AS INTEGER ) ) + - 11 AS col2
----
-10

query I rowsort
SELECT 29 * + - 84 AS col2
----
-2436

query I rowsort
SELECT 3 + - - 88 AS col1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9027
SELECT NULLIF ( - + 58, - - CAST( - + 21 AS SIGNED ) / ( - 93 ) * - 30 * + + 55 * 17 * + 14 ) + 43
----
-15

skipif mysql # not compatible
query I rowsort label-9027
SELECT NULLIF ( - + 58, - - CAST ( - + 21 AS INTEGER ) / ( - 93 ) * - 30 * + + 55 * 17 * + 14 ) + 43
----
-15

query I rowsort
SELECT 48 - + 23
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-9029
SELECT - 30 AS col0, + 1 DIV 63 AS col1
----
-30
0

skipif mysql # not compatible
query II rowsort label-9029
SELECT - 30 AS col0, + 1 / 63 AS col1
----
-30
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9030
SELECT ALL CAST( 77 AS SIGNED ) - - 93 + ( - - 75 ) * + ( 97 ) AS col1
----
7445

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL CAST ( 77 AS INTEGER ) - - 93 + ( - - 75 ) * + ( 97 ) AS col1
----
7445

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT COUNT( * ) * - NULLIF ( + - 25, - 34 * - + 38 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-9031
SELECT COUNT ( * ) * - NULLIF ( + - 25, - 34 * - + 38 ) AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9032
SELECT 38 + 47 * + + CAST( NULL AS SIGNED ) * - - 45 + - 80 * - COALESCE ( NULLIF ( + 54, - - 97 * + ( - 51 ) * - CAST( NULL AS SIGNED ) ), + 73 * + - 20 * - 91, + COUNT( * ) * + 87 ) * + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT 38 + 47 * + + CAST ( NULL AS INTEGER ) * - - 45 + - 80 * - COALESCE ( NULLIF ( + 54, - - 97 * + ( - 51 ) * - CAST ( NULL AS INTEGER ) ), + 73 * + - 20 * - 91, + COUNT ( * ) * + 87 ) * + COUNT ( * ) col2
----
NULL

query II rowsort
SELECT ALL 40, 91 * ( - + 5 ) * ( + 1 ) + 39 AS col0
----
40
-416

query I rowsort
SELECT DISTINCT 89 * 30
----
2670

query I rowsort
SELECT - 90 * + 3 * + 37 * - 18 + + 6 - + 27 * ( + + 77 ) + - - 36 * 24
----
178611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9036
SELECT CASE + 57 WHEN + CAST( + 67 AS SIGNED ) THEN ( 21 ) WHEN + NULLIF ( - - MAX( - 57 ), - COALESCE ( + MAX( 3 ), + + 42 ) * + + ( - MAX( + 63 ) ) ) + 35 * - 49 THEN - 76 / 66 END / + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9036
SELECT CASE + 57 WHEN + CAST ( + 67 AS INTEGER ) THEN ( 21 ) WHEN + NULLIF ( - - MAX ( - 57 ), - COALESCE ( + MAX ( 3 ), + + 42 ) * + + ( - MAX ( + 63 ) ) ) + 35 * - 49 THEN - 76 / 66 END / + 97
----
NULL

query I rowsort
SELECT + ( + + ( - + COALESCE ( + - 87, - + 54 - + + 19 ) ) ) * 3 AS col1
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT COUNT( * ) - + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9038
SELECT COUNT ( * ) - + COUNT ( * ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT 96 * COUNT( * ) * - - 31 + - + 22
----
2954

skipif mysql # not compatible
query I rowsort label-9039
SELECT 96 * COUNT ( * ) * - - 31 + - + 22
----
2954

query I rowsort
SELECT 83 - + 5 AS col1
----
78

query I rowsort
SELECT DISTINCT + ( - ( 52 ) ) * + - 6 AS col1
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ALL ( + 39 ) + - MIN( + - 88 ) col0
----
127

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL ( + 39 ) + - MIN ( + - 88 ) col0
----
127

query I rowsort
SELECT ALL + 49 + 42
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9044
SELECT 75 DIV + + COALESCE ( + COUNT( * ), + + 49, + 36 + 53 ) + COUNT( + CASE + 94 WHEN - CAST( - 84 AS SIGNED ) THEN + 52 DIV 27 * + - 86 + + - 74 WHEN ( 7 ) THEN + 73 * 45 + 24 ELSE NULL END ) col1
----
75

skipif mysql # not compatible
query I rowsort label-9044
SELECT 75 / + + COALESCE ( + COUNT ( * ), + + 49, + 36 + 53 ) + COUNT ( + CASE + 94 WHEN - CAST ( - 84 AS INTEGER ) THEN + 52 / 27 * + - 86 + + - 74 WHEN ( 7 ) THEN + 73 * 45 + 24 ELSE NULL END ) col1
----
75

query I rowsort
SELECT ALL - + 80 + 3 AS col2
----
-77

query I rowsort
SELECT + 92 * + 92 + - 46 AS col1
----
8418

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT ALL - 25 + + 89 - 97 * - COUNT( * ) col2
----
161

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL - 25 + + 89 - 97 * - COUNT ( * ) col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + 5 * SUM( - - 58 ) + + 10
----
300

skipif mysql # not compatible
query I rowsort label-9048
SELECT + 5 * SUM ( - - 58 ) + + 10
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT - ( - COALESCE ( + NULLIF ( - 28, 93 ), 88 ) ) - - CASE + 83 WHEN + 78 THEN COUNT( * ) WHEN + MIN( 12 ) * + - 79 THEN + 49 * 8 + + 21 * 98 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9049
SELECT - ( - COALESCE ( + NULLIF ( - 28, 93 ), 88 ) ) - - CASE + 83 WHEN + 78 THEN COUNT ( * ) WHEN + MIN ( 12 ) * + - 79 THEN + 49 * 8 + + 21 * 98 END + COUNT ( * )
----
NULL

query I rowsort
SELECT - 9 * + - 36 * - - 45 + + 39 AS col2
----
14619

query I rowsort
SELECT ALL - - ( + 7 )
----
7

query I rowsort
SELECT DISTINCT 9 + 2
----
11

query I rowsort
SELECT ALL 68 + + + 0 * - 19 + + 71
----
139

query I rowsort
SELECT ALL + CASE + 26 WHEN - 52 THEN - 74 END - 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9055
SELECT 3 * - 58 col0, MIN( - 98 )
----
-174
-98

skipif mysql # not compatible
query II rowsort label-9055
SELECT 3 * - 58 col0, MIN ( - 98 )
----
-174
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9056
SELECT 38 + 91 + + - COALESCE ( + 76, - 99 ) DIV - ( - + 87 ) - + COUNT( * ) + + + 43 AS col0, 2 * - 67
----
171
-134

skipif mysql # not compatible
query II rowsort label-9056
SELECT 38 + 91 + + - COALESCE ( + 76, - 99 ) / - ( - + 87 ) - + COUNT ( * ) + + + 43 AS col0, 2 * - 67
----
171
-134

query I rowsort
SELECT 9 + 1 col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9058
SELECT ALL - CAST( NULL AS SIGNED ) - - + MIN( DISTINCT 82 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL - CAST ( NULL AS INTEGER ) - - + MIN ( DISTINCT 82 ) AS col0
----
NULL

query I rowsort
SELECT 28 * + - 9 AS col1
----
-252

query I rowsort
SELECT 35 + - + 99
----
-64

query I rowsort
SELECT 38 * - - 13
----
494

query I rowsort
SELECT 44 + + + 51
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT MIN( DISTINCT - 37 ) * 97
----
-3589

skipif mysql # not compatible
query I rowsort label-9063
SELECT MIN ( DISTINCT - 37 ) * 97
----
-3589

query I rowsort
SELECT 34 + 58 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT ALL CASE 70 WHEN + 62 * 77 THEN NULL WHEN COUNT( * ) THEN + 5 * 91 + - 6 + 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL CASE 70 WHEN + 62 * 77 THEN NULL WHEN COUNT ( * ) THEN + 5 * 91 + - 6 + 99 ELSE NULL END
----
NULL

query I rowsort
SELECT - 7 * - - 29 AS col1
----
-203

query I rowsort
SELECT + 77 + - 57 AS col1
----
20

query I rowsort
SELECT - - 34 + + 4
----
38

query I rowsort
SELECT DISTINCT - + 93 * 2 + - NULLIF ( + 94, - 90 - + 37 + - + 14 - + + 38 * - + ( - 84 ) * - 18 ) + - 32 col2
----
-312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9070
SELECT ALL + + COUNT( * ) * MIN( DISTINCT - - 65 ) * - 88 + + CAST( NULL AS SIGNED ) + + ( - - 67 ) - + 29 + 30 + - - 67 + - - 62 * - 79 / - + COUNT( * ) * - - CASE 73 WHEN - ( - 1 ) * AVG ( DISTINCT 50 ) + + 76 * 14 THEN - 66 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL + + COUNT ( * ) * MIN ( DISTINCT - - 65 ) * - 88 + + CAST ( NULL AS INTEGER ) + + ( - - 67 ) - + 29 + 30 + - - 67 + - - 62 * - 79 / - + COUNT ( * ) * - - CASE 73 WHEN - ( - 1 ) * AVG ( DISTINCT 50 ) + + 76 * 14 THEN - 66 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT - NULLIF ( - COUNT( * ), - + NULLIF ( 3, + + COUNT( * ) ) ) * + 80 + 88 AS col2
----
168

skipif mysql # not compatible
query I rowsort label-9071
SELECT - NULLIF ( - COUNT ( * ), - + NULLIF ( 3, + + COUNT ( * ) ) ) * + 80 + 88 AS col2
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9072
SELECT ALL 48 * - CASE 90 WHEN + 53 THEN COALESCE ( + 55, + 16, - 41 ) / - - 21 ELSE NULL END + 51 + - 40 / + COUNT( * ) * - CASE + 11 WHEN + 38 + + - 62 THEN NULL ELSE ( COUNT( * ) ) + CASE + MIN( ALL - 95 ) + NULLIF ( 25, + CAST( 40 AS SIGNED ) + - COUNT( * ) ) * - 84 WHEN - 90 + + 82 * + 48 THEN 79 ELSE NULL END END + - 78 + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL 48 * - CASE 90 WHEN + 53 THEN COALESCE ( + 55, + 16, - 41 ) / - - 21 ELSE NULL END + 51 + - 40 / + COUNT ( * ) * - CASE + 11 WHEN + 38 + + - 62 THEN NULL ELSE ( COUNT ( * ) ) + CASE + MIN ( ALL - 95 ) + NULLIF ( 25, + CAST ( 40 AS INTEGER ) + - COUNT ( * ) ) * - 84 WHEN - 90 + + 82 * + 48 THEN 79 ELSE NULL END END + - 78 + 72
----
NULL

query I rowsort
SELECT - COALESCE ( + 76, - 79 )
----
-76

query I rowsort
SELECT + 6 + - + 73 * 42 * + 72 + 29 + + 95
----
-220622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9075
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + COUNT( * ) + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + COUNT ( * ) + + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ALL + 13 * - MAX( ALL + 11 ) AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL + 13 * - MAX ( ALL + 11 ) AS col2
----
-143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9077
SELECT + + ( + 84 ) DIV - 47 + - - COUNT( + 31 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9077
SELECT + + ( + 84 ) / - 47 + - - COUNT ( + 31 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9078
SELECT ALL 69 * MIN( DISTINCT CASE 65 WHEN + - 66 THEN + CAST( NULL AS SIGNED ) WHEN + 70 THEN + 2 ELSE - 79 END ) DIV COUNT( * ) + COUNT( * ) - + - 43 + - - 10 DIV - 24 AS col0
----
-5407

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL 69 * MIN ( DISTINCT CASE 65 WHEN + - 66 THEN + CAST ( NULL AS INTEGER ) WHEN + 70 THEN + 2 ELSE - 79 END ) / COUNT ( * ) + COUNT ( * ) - + - 43 + - - 10 / - 24 AS col0
----
-5407

query I rowsort
SELECT + 82 * + + 92 AS col1
----
7544

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT + NULLIF ( - COUNT( * ), - - 4 - - 36 + ( - COUNT( * ) ) * + 74 + + + 47 + + 70 / + 91 + + + 92 * - COALESCE ( + + NULLIF ( - 52, ( - - 27 ) ), + 25 ) * 44 / 93 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9080
SELECT + NULLIF ( - COUNT ( * ), - - 4 - - 36 + ( - COUNT ( * ) ) * + 74 + + + 47 + + 70 / + 91 + + + 92 * - COALESCE ( + + NULLIF ( - 52, ( - - 27 ) ), + 25 ) * 44 / 93 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL + 65 * 64 * MAX( - 85 ) - - - 53 + - 87 - + 31 * 83 AS col0
----
-356313

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL + 65 * 64 * MAX ( - 85 ) - - - 53 + - 87 - + 31 * 83 AS col0
----
-356313

onlyif mysql # aggregate syntax: 
query II rowsort label-9082
SELECT ALL COUNT( * ) * + 10 AS col2, - 77 col0
----
10
-77

skipif mysql # not compatible
query II rowsort label-9082
SELECT ALL COUNT ( * ) * + 10 AS col2, - 77 col0
----
10
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9083
SELECT + 26 - + ( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9083
SELECT + 26 - + ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9084
SELECT + 32 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-9084
SELECT + 32 / 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT + 44 * + + COUNT( DISTINCT + NULLIF ( + 37, + 50 ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-9085
SELECT + 44 * + + COUNT ( DISTINCT + NULLIF ( + 37, + 50 ) ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT + 20 * + SUM( + ( ( - 46 ) ) )
----
-920

skipif mysql # not compatible
query I rowsort label-9086
SELECT + 20 * + SUM ( + ( ( - 46 ) ) )
----
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT 74 * - 94 + 54 * + - 46 * + - NULLIF ( CASE + - COUNT( * ) WHEN - - 27 THEN NULL WHEN + 51 THEN + CASE + COUNT( * ) WHEN 82 THEN + 82 WHEN - 5 + - + 25 / - 16 + - 69 THEN NULL ELSE 81 - + 47 END * - 0 END, NULLIF ( - COUNT( ( + ( + COALESCE ( - 61, - 54 * - 39 + 37 * 38 ) ) ) ), - 53 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT 74 * - 94 + 54 * + - 46 * + - NULLIF ( CASE + - COUNT ( * ) WHEN - - 27 THEN NULL WHEN + 51 THEN + CASE + COUNT ( * ) WHEN 82 THEN + 82 WHEN - 5 + - + 25 / - 16 + - 69 THEN NULL ELSE 81 - + 47 END * - 0 END, NULLIF ( - COUNT ( ( + ( + COALESCE ( - 61, - 54 * - 39 + 37 * 38 ) ) ) ), - 53 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT - ( + NULLIF ( COUNT( * ), + 65 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9088
SELECT - ( + NULLIF ( COUNT ( * ), + 65 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT 84 * - + COUNT( ALL 94 ) - 40 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-9089
SELECT 84 * - + COUNT ( ALL 94 ) - 40 AS col1
----
-124

query I rowsort
SELECT ALL - 84 * 34 AS col1
----
-2856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT - 42 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT - 42 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT - MAX( DISTINCT - + 36 ) + + - COUNT( + 21 ) col0
----
35

skipif mysql # not compatible
query I rowsort label-9092
SELECT - MAX ( DISTINCT - + 36 ) + + - COUNT ( + 21 ) col0
----
35

query II rowsort
SELECT - ( - 13 ), + 35 AS col2
----
13
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9094
SELECT ALL CASE 27 WHEN - CAST( 48 AS SIGNED ) / + 96 * - ( + MAX( + 72 ) ) THEN - - MIN( ALL - - 57 ) WHEN + - 8 * COUNT( * ) + + 5 THEN - COUNT( * ) * - 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL CASE 27 WHEN - CAST ( 48 AS INTEGER ) / + 96 * - ( + MAX ( + 72 ) ) THEN - - MIN ( ALL - - 57 ) WHEN + - 8 * COUNT ( * ) + + 5 THEN - COUNT ( * ) * - 48 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 85 * 76 AS col0
----
-6460

onlyif mysql # DIV for integer division: 
query I rowsort label-9096
SELECT - 6 DIV - 65 * - 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9096
SELECT - 6 / - 65 * - 28 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT - COUNT( * ) * + NULLIF ( - - 0, 92 + + + 51 + ( 81 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9097
SELECT - COUNT ( * ) * + NULLIF ( - - 0, 92 + + + 51 + ( 81 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT ALL COUNT( ALL + 27 ) + - ( + - ( - ( + 69 ) ) )
----
-68

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL COUNT ( ALL + 27 ) + - ( + - ( - ( + 69 ) ) )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9099
SELECT - ( + - 78 ) DIV - + 49
----
-1

skipif mysql # not compatible
query I rowsort label-9099
SELECT - ( + - 78 ) / - + 49
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9100
SELECT ALL + COUNT( * ) + ( CAST( NULL AS SIGNED ) ) * ( - ( COUNT( * ) ) ) * - - MAX( + - 90 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL + COUNT ( * ) + ( CAST ( NULL AS INTEGER ) ) * ( - ( COUNT ( * ) ) ) * - - MAX ( + - 90 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL 80 + - ( - + MAX( ALL + - 17 ) ) + 42 * + 88 AS col1
----
3759

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL 80 + - ( - + MAX ( ALL + - 17 ) ) + 42 * + 88 AS col1
----
3759

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT + NULLIF ( + NULLIF ( COUNT( * ), - 94 * - 65 + + 41 * - 45 * + - 35 ), + - 45 + - - ( + 35 ) * + COUNT( * ) ) * - - 48 * + ( - COUNT( 83 ) ) * - NULLIF ( 98, - 63 ) + 46 * 49 + - NULLIF ( 67 + + NULLIF ( 55, 53 ), 85 ) * - 4 AS col1
----
7446

skipif mysql # not compatible
query I rowsort label-9102
SELECT + NULLIF ( + NULLIF ( COUNT ( * ), - 94 * - 65 + + 41 * - 45 * + - 35 ), + - 45 + - - ( + 35 ) * + COUNT ( * ) ) * - - 48 * + ( - COUNT ( 83 ) ) * - NULLIF ( 98, - 63 ) + 46 * 49 + - NULLIF ( 67 + + NULLIF ( 55, 53 ), 85 ) * - 4 AS col1
----
7446

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9103
SELECT + 25 DIV + COUNT( * ) + 7 + COUNT( * ) DIV + 62 * + 68 + - 40 + - - 38 * 32 * + 75 + + ( + 78 )
----
91270

skipif mysql # not compatible
query I rowsort label-9103
SELECT + 25 / + COUNT ( * ) + 7 + COUNT ( * ) / + 62 * + 68 + - 40 + - - 38 * 32 * + 75 + + ( + 78 )
----
91270

query II rowsort
SELECT + + 72 * 60 AS col2, - ( - 73 ) * - + 15 + - 18
----
4320
-1113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9105
SELECT ALL - 15 DIV 15 + - + 69 + + - ( 11 ) DIV + - ( + COUNT( * ) )
----
-59

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL - 15 / 15 + - + 69 + + - ( 11 ) / + - ( + COUNT ( * ) )
----
-59

query I rowsort
SELECT + NULLIF ( 90, 64 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT - - 86 - + COUNT( ALL 27 )
----
85

skipif mysql # not compatible
query I rowsort label-9107
SELECT - - 86 - + COUNT ( ALL 27 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT - 25 * + 66 + - MIN( - 90 ) + + AVG ( ALL + - 66 ) * 62 * 3 / CASE COUNT( ALL - 48 ) WHEN + COUNT( * ) * 90 * - + MAX( ALL - + 81 ) * + - 38 + - + 58 - - NULLIF ( - MIN( ALL - 84 ) + + NULLIF ( + 50, 38 ), ( 33 ) ) - - 32 THEN ( COUNT( + 30 ) ) * 27 WHEN 53 + + 36 THEN NULL END * 51 + + 69 * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9108
SELECT - 25 * + 66 + - MIN ( - 90 ) + + AVG ( ALL + - 66 ) * 62 * 3 / CASE COUNT ( ALL - 48 ) WHEN + COUNT ( * ) * 90 * - + MAX ( ALL - + 81 ) * + - 38 + - + 58 - - NULLIF ( - MIN ( ALL - 84 ) + + NULLIF ( + 50, 38 ), ( 33 ) ) - - 32 THEN ( COUNT ( + 30 ) ) * 27 WHEN 53 + + 36 THEN NULL END * 51 + + 69 * - 77
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9109
SELECT ALL - 86 DIV COUNT( * ) * COALESCE ( NULLIF ( + + 0, - + 20 ), - 72 ) - - + 25 - - 17 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL - 86 / COUNT ( * ) * COALESCE ( NULLIF ( + + 0, - + 20 ), - 72 ) - - + 25 - - 17 AS col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT ALL + - 1 DIV ( + + 30 ) * - - 52 * + + 91 - + 86
----
-86

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL + - 1 / ( + + 30 ) * - - 52 * + + 91 - + 86
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9111
SELECT + - SUM( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9111
SELECT + - SUM ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9112
SELECT DISTINCT + NULLIF ( + - CAST( NULL AS SIGNED ), - + 13 * - 49 * + 55 + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT + NULLIF ( + - CAST ( NULL AS INTEGER ), - + 13 * - 49 * + 55 + 77 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9113
SELECT ALL + 14 * 67 + - 38 - - + 46 + - + NULLIF ( - NULLIF ( 83, + - 50 * - COALESCE ( + ( + MIN( DISTINCT + 95 ) ), + 67 + - COALESCE ( + 77, - SUM( 0 ) + - 97 ) / ( 57 + - 69 ), - 16 * - 22 + - 76 ) * - 1 + + 99 * 17 + CAST( + 29 + + MIN( 48 ) AS DECIMAL ) ), COUNT( * ) ) AS col0
----
1029

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL + 14 * 67 + - 38 - - + 46 + - + NULLIF ( - NULLIF ( 83, + - 50 * - COALESCE ( + ( + MIN ( DISTINCT + 95 ) ), + 67 + - COALESCE ( + 77, - SUM ( 0 ) + - 97 ) / ( 57 + - 69 ), - 16 * - 22 + - 76 ) * - 1 + + 99 * 17 + CAST ( + 29 + + MIN ( 48 ) AS REAL ) ), COUNT ( * ) ) AS col0
----
1029

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9114
SELECT 51 * 56 + 27 DIV - - 1 - + 0 + 81 + + - MAX( + 13 ) * + NULLIF ( - 58, - 62 )
----
3718

skipif mysql # not compatible
query I rowsort label-9114
SELECT 51 * 56 + 27 / - - 1 - + 0 + 81 + + - MAX ( + 13 ) * + NULLIF ( - 58, - 62 )
----
3718

query I rowsort
SELECT + 32 - + 6 + + - 2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9116
SELECT ALL - 44 * + - ( + 83 ) DIV COUNT( * ) - + 2
----
3650

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL - 44 * + - ( + 83 ) / COUNT ( * ) - + 2
----
3650

query II rowsort
SELECT - 20 * + + 1 * + NULLIF ( + ( 34 ), + - 15 * + 32 * 84 + + - 84 ) AS col0, - 59 AS col1
----
-680
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9118
SELECT + COUNT( * ) * - COALESCE ( SUM( + ( 12 ) ), + 22 * CAST( - COUNT( * ) AS SIGNED ) * + 57 * - COALESCE ( 21, + 83 + - 50 + - + 42 DIV 36 ) * - MIN( + 3 ) * 9 + - MIN( DISTINCT 1 ) + 9 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9118
SELECT + COUNT ( * ) * - COALESCE ( SUM ( + ( 12 ) ), + 22 * CAST ( - COUNT ( * ) AS INTEGER ) * + 57 * - COALESCE ( 21, + 83 + - 50 + - + 42 / 36 ) * - MIN ( + 3 ) * 9 + - MIN ( DISTINCT 1 ) + 9 ) AS col2
----
-12

query I rowsort
SELECT + 97 + - 75 + - - 45 * 2 AS col1
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-9120
SELECT ALL 67 DIV + + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL 67 / + + 95 AS col0
----
0

query I rowsort
SELECT + 73 + - 35 * + 90 + - 31
----
-3108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9122
SELECT - CAST( ( 90 ) AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-9122
SELECT - CAST ( ( 90 ) AS INTEGER )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT - NULLIF ( - 63, - + COUNT( * ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-9123
SELECT - NULLIF ( - 63, - + COUNT ( * ) ) AS col2
----
63

query I rowsort
SELECT 44 + + 78 + 2 + - - NULLIF ( - + 55, 47 ) + - - 64 col0
----
133

onlyif mysql # DIV for integer division: 
query II rowsort label-9125
SELECT 78, 56 DIV + + 11 + - 19 AS col0
----
78
-14

skipif mysql # not compatible
query II rowsort label-9125
SELECT 78, 56 / + + 11 + - 19 AS col0
----
78
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT ALL 95 + - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL 95 + - COUNT ( * )
----
94

query I rowsort
SELECT DISTINCT 6 + + 23 AS col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9128
SELECT DISTINCT - - 49 + - - ( - + 1 ) DIV + 38
----
49

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT - - 49 + - - ( - + 1 ) / + 38
----
49

query I rowsort
SELECT ALL - 62 + - + 22 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT DISTINCT ( - MAX( DISTINCT + 83 ) ) + + + 27 + - + 77 + + 75
----
-58

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT ( - MAX ( DISTINCT + 83 ) ) + + + 27 + - + 77 + + 75
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT DISTINCT + 71 + + - 9 * COUNT( * ) col2
----
62

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT + 71 + + - 9 * COUNT ( * ) col2
----
62

query II rowsort
SELECT - 20 AS col2, + 89
----
-20
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT ALL + MAX( - + COALESCE ( + 76, 18 * 38 * + 78, + 48 ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL + MAX ( - + COALESCE ( + 76, 18 * 38 * + 78, + 48 ) ) AS col2
----
-76

query I rowsort
SELECT - + ( + - 91 ) col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9135
SELECT CAST( + MIN( + + 64 ) AS SIGNED ) + - 9 * - - 23 AS col0
----
-143

skipif mysql # not compatible
query I rowsort label-9135
SELECT CAST ( + MIN ( + + 64 ) AS INTEGER ) + - 9 * - - 23 AS col0
----
-143

query I rowsort
SELECT 37 + + 96 + + 76 AS col1
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT + 19 * - 46 + 30 + NULLIF ( 74, - 42 * + ( - COUNT( * ) ) + - SUM( DISTINCT + NULLIF ( - 62, + 70 * + 8 ) ) )
----
-770

skipif mysql # not compatible
query I rowsort label-9137
SELECT + 19 * - 46 + 30 + NULLIF ( 74, - 42 * + ( - COUNT ( * ) ) + - SUM ( DISTINCT + NULLIF ( - 62, + 70 * + 8 ) ) )
----
-770

query I rowsort
SELECT - NULLIF ( 92, 65 ) + + 88
----
-4

query I rowsort
SELECT ALL 97 - 36 AS col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-9140
SELECT ALL - - COUNT( * ) AS col2, + 26
----
1
26

skipif mysql # not compatible
query II rowsort label-9140
SELECT ALL - - COUNT ( * ) AS col2, + 26
----
1
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9141
SELECT ALL - 55 - + - 73 * - 47 AS col1, 57 + COUNT( * ) col2
----
-3486
58

skipif mysql # not compatible
query II rowsort label-9141
SELECT ALL - 55 - + - 73 * - 47 AS col1, 57 + COUNT ( * ) col2
----
-3486
58

query II rowsort
SELECT DISTINCT - + 20, 23 + - 82 AS col1
----
-20
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9143
SELECT 40 * 31 - 57 DIV - - 85 * + 94 + - + COALESCE ( - + CAST( NULL AS SIGNED ), + 25 - - - 94, + SUM( ALL - 85 ) * - + 18 ) + + 99 * MIN( DISTINCT + + 30 )
----
4279

skipif mysql # not compatible
query I rowsort label-9143
SELECT 40 * 31 - 57 / - - 85 * + 94 + - + COALESCE ( - + CAST ( NULL AS INTEGER ), + 25 - - - 94, + SUM ( ALL - 85 ) * - + 18 ) + + 99 * MIN ( DISTINCT + + 30 )
----
4279

onlyif mysql # aggregate syntax: 
query II rowsort label-9144
SELECT + NULLIF ( + 42, - - 96 * SUM( ALL + + 64 ) + - 23 + + - 86 ) * COUNT( * ), 62 * 76 AS col2
----
42
4712

skipif mysql # not compatible
query II rowsort label-9144
SELECT + NULLIF ( + 42, - - 96 * SUM ( ALL + + 64 ) + - 23 + + - 86 ) * COUNT ( * ), 62 * 76 AS col2
----
42
4712

query I rowsort
SELECT DISTINCT + 2 * - - ( - 8 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT ALL 61 * + SUM( 28 )
----
1708

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL 61 * + SUM ( 28 )
----
1708

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT SUM( 16 ) * 31 * + 28 AS col2
----
13888

skipif mysql # not compatible
query I rowsort label-9147
SELECT SUM ( 16 ) * 31 * + 28 AS col2
----
13888

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT ALL + ( + 34 ) * + 44 * COUNT( * )
----
1496

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL + ( + 34 ) * + 44 * COUNT ( * )
----
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL - MIN( - - ( - + 51 ) ) + - + 86
----
-35

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL - MIN ( - - ( - + 51 ) ) + - + 86
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT 37 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT 37 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9151
SELECT 44 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-9151
SELECT 44 / 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9152
SELECT + 18 * - COUNT( * ) + ( + 21 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT + 18 * - COUNT ( * ) + ( + 21 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 19 + + 72
----
91

query I rowsort
SELECT ( - 40 ) - - 87
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT ALL - 2 * CASE CASE - 67 WHEN - 78 THEN + 92 * 61 + + 2 WHEN + + 10 THEN NULL ELSE NULL END WHEN - 50 THEN + 42 WHEN - + ( + 77 ) * + - 21 + 60 THEN + MIN( 92 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL - 2 * CASE CASE - 67 WHEN - 78 THEN + 92 * 61 + + 2 WHEN + + 10 THEN NULL ELSE NULL END WHEN - 50 THEN + 42 WHEN - + ( + 77 ) * + - 21 + 60 THEN + MIN ( 92 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 44 * + 23 + + 33
----
1045

query I rowsort
SELECT ALL 83 + - + 94 + + 27
----
16

query I rowsort
SELECT - COALESCE ( + - 62, - 77 ) AS col1
----
62

query II rowsort
SELECT 27 * + 99 * - 53 * 2 col2, + 70 col2
----
-283338
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT DISTINCT COUNT( * ) + - 60 + - + 85 * 55 * + 74
----
-346009

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT COUNT ( * ) + - 60 + - + 85 * 55 * + 74
----
-346009

query I rowsort
SELECT ALL + 41 * + NULLIF ( 88, NULLIF ( 80, - - 52 + + + 26 ) - + 45 ) col1
----
3608

query I rowsort
SELECT + 50 - 45 * 86
----
-3820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9163
SELECT DISTINCT + COUNT( * ) * 38 + CASE - COUNT( * ) WHEN COUNT( ALL 13 ) * + COUNT( * ) THEN - 74 + + MAX( ALL + - 49 ) ELSE + + 26 DIV - 29 END + 81 + - 94 * - 63 + 11 + + 60 * - 55 - + 12 + - 76 * 64
----
-2124

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT + COUNT ( * ) * 38 + CASE - COUNT ( * ) WHEN COUNT ( ALL 13 ) * + COUNT ( * ) THEN - 74 + + MAX ( ALL + - 49 ) ELSE + + 26 / - 29 END + 81 + - 94 * - 63 + 11 + + 60 * - 55 - + 12 + - 76 * 64
----
-2124

query I rowsort
SELECT ALL 86 * + ( 20 )
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT DISTINCT + 67 * - NULLIF ( - COUNT( * ), - - COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT + 67 * - NULLIF ( - COUNT ( * ), - - COUNT ( * ) )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9166
SELECT + CASE + 36 WHEN - - ( - + 74 ) * + 10 + - 52 THEN NULL WHEN - CAST( NULL AS SIGNED ) - 21 THEN - 75 END * MIN( - 38 ) + + 81 + 18 + + 25 + ( - ( - 38 ) ) - + 34 * + MIN( + 13 ) * + 17 * 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9166
SELECT + CASE + 36 WHEN - - ( - + 74 ) * + 10 + - 52 THEN NULL WHEN - CAST ( NULL AS INTEGER ) - 21 THEN - 75 END * MIN ( - 38 ) + + 81 + 18 + + 25 + ( - ( - 38 ) ) - + 34 * + MIN ( + 13 ) * + 17 * 25 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9167
SELECT ALL 31 / - 24 + + - 0 + ( - 12 ) * - NULLIF ( CASE - - 86 WHEN - 46 * - 6 THEN NULL WHEN COUNT( * ) THEN + COUNT( * ) + NULLIF ( - CAST( - - COUNT( * ) AS SIGNED ), + 7 * 86 + CASE - - 26 WHEN 92 THEN NULL WHEN + 8 * 34 + AVG ( ALL 5 ) THEN 37 + 94 * ( - 76 * + COUNT( * ) ) WHEN 42 THEN NULL END ) * 53 END, 4 ) + + 64 * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL 31 / - 24 + + - 0 + ( - 12 ) * - NULLIF ( CASE - - 86 WHEN - 46 * - 6 THEN NULL WHEN COUNT ( * ) THEN + COUNT ( * ) + NULLIF ( - CAST ( - - COUNT ( * ) AS INTEGER ), + 7 * 86 + CASE - - 26 WHEN 92 THEN NULL WHEN + 8 * 34 + AVG ( ALL 5 ) THEN 37 + 94 * ( - 76 * + COUNT ( * ) ) WHEN 42 THEN NULL END ) * 53 END, 4 ) + + 64 * 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9168
SELECT 13 * + - CAST( NULL AS SIGNED ) * SUM( DISTINCT + 91 ) * - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT 13 * + - CAST ( NULL AS INTEGER ) * SUM ( DISTINCT + 91 ) * - 71 AS col1
----
NULL

query I rowsort
SELECT 28 + 9 * 44 * - - 71 AS col0
----
28144

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT - ( - + 57 ) * + NULLIF ( - + NULLIF ( - ( 31 ), 75 + - ( - 85 ) ), - ( + COUNT( * ) ) ) + + ( + 12 ) + + - COUNT( * ) AS col2
----
1778

skipif mysql # not compatible
query I rowsort label-9170
SELECT - ( - + 57 ) * + NULLIF ( - + NULLIF ( - ( 31 ), 75 + - ( - 85 ) ), - ( + COUNT ( * ) ) ) + + ( + 12 ) + + - COUNT ( * ) AS col2
----
1778

query I rowsort
SELECT DISTINCT 38 * - 95
----
-3610

query I rowsort
SELECT DISTINCT + 12 * 48 * - 35 + 9 + + 88 AS col1
----
-20063

query I rowsort
SELECT 57 + + - 66
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9174
SELECT ALL - 79 * - 87 + COUNT( * ) + 33 + 92 + - - 31 * + COUNT( * ) + - 59 + - - 58 DIV + 72 * + 28 * - 68
----
6971

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL - 79 * - 87 + COUNT ( * ) + 33 + 92 + - - 31 * + COUNT ( * ) + - 59 + - - 58 / + 72 * + 28 * - 68
----
6971

onlyif mysql # DIV for integer division: 
query I rowsort label-9175
SELECT ( 67 ) + + 59 + + - 10 DIV COALESCE ( - - ( + - 15 ), + + 70 )
----
126

skipif mysql # not compatible
query I rowsort label-9175
SELECT ( 67 ) + + 59 + + - 10 / COALESCE ( - - ( + - 15 ), + + 70 )
----
126

query I rowsort
SELECT 25 * - - 79 * - + 15 + - 17 + + 75 col0
----
-29567

onlyif mysql # DIV for integer division: 
query I rowsort label-9177
SELECT ALL - 53 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL - 53 / + 82
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( - - 78, + 72 ) col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9179
SELECT - SUM( - 58 ) * + CAST( - + 70 AS SIGNED ) AS col0
----
-4060

skipif mysql # not compatible
query I rowsort label-9179
SELECT - SUM ( - 58 ) * + CAST ( - + 70 AS INTEGER ) AS col0
----
-4060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9180
SELECT DISTINCT + 80 + + 67 + + + 59 + 39 * + CAST( - 76 AS SIGNED )
----
-2758

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT + 80 + + 67 + + + 59 + 39 * + CAST ( - 76 AS INTEGER )
----
-2758

query I rowsort
SELECT ALL - 26 + + 94
----
68

query I rowsort
SELECT DISTINCT + NULLIF ( 83, 41 ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT - ( - + 95 ) + + MIN( + - 37 ) + + ( - + 61 ) * - COUNT( * ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-9183
SELECT - ( - + 95 ) + + MIN ( + - 37 ) + + ( - + 61 ) * - COUNT ( * ) AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT ALL + SUM( - 97 ) * + 44
----
-4268

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL + SUM ( - 97 ) * + 44
----
-4268

onlyif mysql # aggregate syntax: 
query II rowsort label-9185
SELECT COUNT( * ) col0, + 5 AS col1
----
1
5

skipif mysql # not compatible
query II rowsort label-9185
SELECT COUNT ( * ) col0, + 5 AS col1
----
1
5

query I rowsort
SELECT DISTINCT + 81 + + 68 + 96 - ( - 6 ) col0
----
251

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9187
SELECT - ( CAST( NULL AS SIGNED ) ) * - + ( + + NULLIF ( + 81, - + 89 / - CAST( 85 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9187
SELECT - ( CAST ( NULL AS INTEGER ) ) * - + ( + + NULLIF ( + 81, - + 89 / - CAST ( 85 AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT - 30 * - MAX( DISTINCT - + 62 ) AS col0
----
-1860

skipif mysql # not compatible
query I rowsort label-9188
SELECT - 30 * - MAX ( DISTINCT - + 62 ) AS col0
----
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT - COUNT( * ) + + ( - + 99 ) - - 28 * - 75 AS col1
----
-2200

skipif mysql # not compatible
query I rowsort label-9189
SELECT - COUNT ( * ) + + ( - + 99 ) - - 28 * - 75 AS col1
----
-2200

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT DISTINCT - COUNT( + - 40 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT - COUNT ( + - 40 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT - COUNT( - 74 ) * 76 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9191
SELECT - COUNT ( - 74 ) * 76 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT - - ( ( - 93 ) ) + - 65 + - COUNT( * ) * + SUM( - 64 )
----
-94

skipif mysql # not compatible
query I rowsort label-9192
SELECT - - ( ( - 93 ) ) + - 65 + - COUNT ( * ) * + SUM ( - 64 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9193
SELECT DISTINCT - 68 - - - CAST( NULL AS SIGNED ) - 60 * + 86 + + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT - 68 - - - CAST ( NULL AS INTEGER ) - 60 * + 86 + + 64 AS col2
----
NULL

query I rowsort
SELECT - + 99 + - + CASE - - 87 WHEN - 86 + + 63 THEN + 30 + + 1 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9195
SELECT - + 41 DIV + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9195
SELECT - + 41 / + 84 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9196
SELECT ALL - 30 * - COUNT( * ) DIV + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL - 30 * - COUNT ( * ) / + 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT + - 24 + - MIN( + 16 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9197
SELECT + - 24 + - MIN ( + 16 ) AS col1
----
-40

query II rowsort
SELECT - - 0 AS col1, 18 + 49
----
0
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9199
SELECT + - 74 DIV 19 + - - 62 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9199
SELECT + - 74 / 19 + - - 62 AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT - 76 * - - CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) / - + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT - 76 * - - CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) / - + 32 AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( + 70, 14 * + 46 - - - 98 * - 30 ) + - - 91
----
161

query I rowsort
SELECT DISTINCT + 36 * + 35
----
1260

query I rowsort
SELECT ALL + 3 + - 31
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT ALL CAST( + ( + 32 ) AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL CAST ( + ( + 32 ) AS INTEGER )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT ALL + 33 * + 80 + - MIN( 49 ) AS col0
----
2591

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL + 33 * + 80 + - MIN ( 49 ) AS col0
----
2591

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT DISTINCT - + 97 DIV - + 10 + + 4
----
13

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT - + 97 / - + 10 + + 4
----
13

query II rowsort
SELECT ( 11 ) AS col1, + 33 * 24
----
11
792

query I rowsort
SELECT + 26 * + 13 col0
----
338

query I rowsort
SELECT + 38 * - 70 * 2 AS col1
----
-5320

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9210
SELECT ( - NULLIF ( - 10, + COUNT( * ) + - ( - NULLIF ( 10, CAST( NULL AS DECIMAL ) * 52 * - + 54 + - 5 * 93 ) ) ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9210
SELECT ( - NULLIF ( - 10, + COUNT ( * ) + - ( - NULLIF ( 10, CAST ( NULL AS REAL ) * 52 * - + 54 + - 5 * 93 ) ) ) ) AS col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9211
SELECT + 90 DIV 24 col1
----
3

skipif mysql # not compatible
query I rowsort label-9211
SELECT + 90 / 24 col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9212
SELECT - 96 + - 21 * CAST( NULL AS SIGNED ) / 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT - 96 + - 21 * CAST ( NULL AS INTEGER ) / 53 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9213
SELECT ( + CASE + ( 66 ) WHEN - COUNT( * ) THEN CAST( - COUNT( * ) AS DECIMAL ) + + + NULLIF ( + - 26, - 75 ) + + 49 * + 67 END ) AS col1, CAST( NULL AS SIGNED ) + - COUNT( * ) + - 80 col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9213
SELECT ( + CASE + ( 66 ) WHEN - COUNT ( * ) THEN CAST ( - COUNT ( * ) AS REAL ) + + + NULLIF ( + - 26, - 75 ) + + 49 * + 67 END ) AS col1, CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - 80 col2
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9214
SELECT ALL CAST( - 45 AS SIGNED ) * + - NULLIF ( 44, + 54 ) + - 28 + - + COUNT( * ) * - + 97
----
2049

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL CAST ( - 45 AS INTEGER ) * + - NULLIF ( 44, + 54 ) + - 28 + - + COUNT ( * ) * - + 97
----
2049

query I rowsort
SELECT + ( ( - + 31 ) ) AS col2
----
-31

query I rowsort
SELECT ALL 48 * + - 98 AS col2
----
-4704

query II rowsort
SELECT ALL + 43 AS col0, - 5 AS col0
----
43
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT DISTINCT 83 * MAX( DISTINCT 10 )
----
830

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT 83 * MAX ( DISTINCT 10 )
----
830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9219
SELECT COALESCE ( + - 22, - CAST( - - 37 AS SIGNED ) - + 35 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9219
SELECT COALESCE ( + - 22, - CAST ( - - 37 AS INTEGER ) - + 35 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT + ( COUNT( * ) ) + - 75 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-9220
SELECT + ( COUNT ( * ) ) + - 75 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT - 6 * - - NULLIF ( + 77, COUNT( * ) )
----
-462

skipif mysql # not compatible
query I rowsort label-9221
SELECT - 6 * - - NULLIF ( + 77, COUNT ( * ) )
----
-462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9222
SELECT DISTINCT + - COUNT( * ) DIV + 37 + 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT + - COUNT ( * ) / + 37 + 9 AS col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT - - 19 DIV - 28 * + 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9223
SELECT - - 19 / - 28 * + 19 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9224
SELECT ALL - NULLIF ( + COUNT( * ), ( + 11 ) ) AS col0, 89
----
-1
89

skipif mysql # not compatible
query II rowsort label-9224
SELECT ALL - NULLIF ( + COUNT ( * ), ( + 11 ) ) AS col0, 89
----
-1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT - + COUNT( * ) * + - MAX( ALL 6 )
----
6

skipif mysql # not compatible
query I rowsort label-9225
SELECT - + COUNT ( * ) * + - MAX ( ALL 6 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9226
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 54 * + COUNT( * )
----
NULL
54

skipif mysql # not compatible
query II rowsort label-9226
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 54 * + COUNT ( * )
----
NULL
54

query II rowsort
SELECT DISTINCT 16, - 28 + 40 AS col1
----
16
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT DISTINCT - - 24 * - COUNT( * ) + 92 + 85 + + + 13
----
166

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT - - 24 * - COUNT ( * ) + 92 + 85 + + + 13
----
166

query I rowsort
SELECT ALL - ( - 44 ) * 69 * - 17 + - 58 * - 35 + - 11 AS col2
----
-49593

query I rowsort
SELECT - 7 * + - 42 AS col0
----
294

onlyif mysql # aggregate syntax: 
query II rowsort label-9231
SELECT + COUNT( * ) AS col2, 86 * 35 * - + 32
----
1
-96320

skipif mysql # not compatible
query II rowsort label-9231
SELECT + COUNT ( * ) AS col2, 86 * 35 * - + 32
----
1
-96320

query I rowsort
SELECT - CASE - 35 WHEN + 22 * 15 THEN + 29 ELSE 56 END + + - 85
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9233
SELECT - 95, + 59 + + - ( - COALESCE ( - COALESCE ( - - 65, + - CAST( NULL AS SIGNED ) ), - CAST( NULL AS SIGNED ) ) ) AS col1
----
-95
-6

skipif mysql # not compatible
query II rowsort label-9233
SELECT - 95, + 59 + + - ( - COALESCE ( - COALESCE ( - - 65, + - CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) ) ) AS col1
----
-95
-6

query I rowsort
SELECT - 34 - - 37
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9235
SELECT + COALESCE ( + 41, - 83 + + COUNT( * ) DIV + 53 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9235
SELECT + COALESCE ( + 41, - 83 + + COUNT ( * ) / + 53 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT ALL + CASE + 25 WHEN - ( + 89 ) THEN NULL WHEN + 2 THEN + MAX( - - 53 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL + CASE + 25 WHEN - ( + 89 ) THEN NULL WHEN + 2 THEN + MAX ( - - 53 ) END
----
NULL

query II rowsort
SELECT ALL 18 AS col0, - 14 AS col0
----
18
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT DISTINCT - 24 + + COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT - 24 + + COUNT ( * ) AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9239
SELECT DISTINCT + 70 + COUNT( * ) + 80 * - - CAST( - 52 AS SIGNED )
----
-4089

skipif mysql # not compatible
query I rowsort label-9239
SELECT DISTINCT + 70 + COUNT ( * ) + 80 * - - CAST ( - 52 AS INTEGER )
----
-4089

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9240
SELECT 47 + - ( - 26 ) DIV COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-9240
SELECT 47 + - ( - 26 ) / COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT 63 + 40 AS col2, + 2 * + MAX( DISTINCT + 49 ) col2
----
103
98

skipif mysql # not compatible
query II rowsort label-9241
SELECT 63 + 40 AS col2, + 2 * + MAX ( DISTINCT + 49 ) col2
----
103
98

query I rowsort
SELECT DISTINCT - 80 * - 83
----
6640

query I rowsort
SELECT ALL 42 - + 38 AS col1
----
4

query I rowsort
SELECT 88 * + + 39 * 46 AS col1
----
157872

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT COUNT( * ) + - + 0 + + + 17 * - 22 AS col0
----
-373

skipif mysql # not compatible
query I rowsort label-9245
SELECT COUNT ( * ) + - + 0 + + + 17 * - 22 AS col0
----
-373

query II rowsort
SELECT 78 * 59 col1, + 81 AS col1
----
4602
81

query I rowsort
SELECT DISTINCT 30 * 44
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL - COUNT( DISTINCT + NULLIF ( - 37, - 51 + - - 73 + + 34 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL - COUNT ( DISTINCT + NULLIF ( - 37, - 51 + - - 73 + + 34 ) )
----
-1

query I rowsort
SELECT + 56 + + ( - 31 ) * ( - 10 )
----
366

query I rowsort
SELECT ALL 95 * - + 44 AS col1
----
-4180

query I rowsort
SELECT DISTINCT 34 * - + 2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT - 76 * 81 * + - 18 + + + COUNT( * ) AS col2
----
110809

skipif mysql # not compatible
query I rowsort label-9252
SELECT - 76 * 81 * + - 18 + + + COUNT ( * ) AS col2
----
110809

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT + 31 + ( MAX( DISTINCT + 81 ) ) * + 15 * - 82 AS col2
----
-99599

skipif mysql # not compatible
query I rowsort label-9253
SELECT + 31 + ( MAX ( DISTINCT + 81 ) ) * + 15 * - 82 AS col2
----
-99599

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT + NULLIF ( + 29, + ( + 30 ) ) + COUNT( * ) * - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-9254
SELECT + NULLIF ( + 29, + ( + 30 ) ) + COUNT ( * ) * - COUNT ( * ) AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9255
SELECT ALL + 36 + + CAST( - + 55 AS SIGNED ) + - CAST( NULL AS SIGNED ) * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL + 36 + + CAST ( - + 55 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * - 57
----
NULL

query I rowsort
SELECT ALL 41 + + 68 * + 61
----
4189

query I rowsort
SELECT DISTINCT + 8 + 37 AS col2
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9258
SELECT - 94 + + + 54 + - COUNT( * ) + 43 * 52 * + + 59 * - 12, + 71 AS col0
----
-1583129
71

skipif mysql # not compatible
query II rowsort label-9258
SELECT - 94 + + + 54 + - COUNT ( * ) + 43 * 52 * + + 59 * - 12, + 71 AS col0
----
-1583129
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9259
SELECT ALL CASE NULLIF ( - - 68, + 34 ) WHEN + SUM( ALL + - CAST( NULL AS SIGNED ) ) THEN NULL ELSE - 1 END + 27 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL CASE NULLIF ( - - 68, + 34 ) WHEN + SUM ( ALL + - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - 1 END + 27 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL - MIN( - 75 ) + + 90 + + + MIN( DISTINCT 54 )
----
219

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL - MIN ( - 75 ) + + 90 + + + MIN ( DISTINCT 54 )
----
219

query I rowsort
SELECT DISTINCT - ( - + 42 ) * - ( - 10 )
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT MIN( 89 ) col2
----
89

skipif mysql # not compatible
query I rowsort label-9262
SELECT MIN ( 89 ) col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT MIN( DISTINCT + 83 ) + + + 33 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-9263
SELECT MIN ( DISTINCT + 83 ) + + + 33 AS col2
----
116

query II rowsort
SELECT 32 AS col0, 49 + - + 25 AS col0
----
32
24

query I rowsort
SELECT 37 * - 69
----
-2553

query I rowsort
SELECT 73 + - NULLIF ( + 48, + + 31 * + - 12 - - 81 ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9267
SELECT 82 + + - COUNT( * ) + CAST( 43 AS SIGNED )
----
124

skipif mysql # not compatible
query I rowsort label-9267
SELECT 82 + + - COUNT ( * ) + CAST ( 43 AS INTEGER )
----
124

query I rowsort
SELECT ALL - 94 + 82
----
-12

query II rowsort
SELECT - 10 AS col0, + ( - + 64 ) AS col0
----
-10
-64

query I rowsort
SELECT ALL + ( + 69 ) * - 18 * + ( 93 ) AS col1
----
-115506

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9271
SELECT DISTINCT - COUNT( * ) - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT - COUNT ( * ) - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT DISTINCT MAX( ALL - + 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT MAX ( ALL - + 71 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT DISTINCT - NULLIF ( - SUM( + 40 ), + 33 )
----
40

skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT - NULLIF ( - SUM ( + 40 ), + 33 )
----
40

query I rowsort
SELECT DISTINCT - NULLIF ( - 34, - - 1 - + 44 - - 68 * - 15 ) AS col1
----
34

query II rowsort
SELECT DISTINCT - 50 AS col1, ( 4 ) * + 1 col2
----
-50
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL COUNT( * ) - - 68 - + 24 * 71 AS col2
----
-1635

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL COUNT ( * ) - - 68 - + 24 * 71 AS col2
----
-1635

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT DISTINCT + 22 DIV + + NULLIF ( + - 66, 96 + + - 6 * + 2 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT + 22 / + + NULLIF ( + - 66, 96 + + - 6 * + 2 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL + COUNT( * ) * + 24
----
24

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL + COUNT ( * ) * + 24
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9279
SELECT COUNT( * ) AS col2, + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-9279
SELECT COUNT ( * ) AS col2, + COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT ALL 89 * - 7
----
-623

query I rowsort
SELECT ALL + 4 * 43 AS col2
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-9282
SELECT ALL - 68 AS col0, - COUNT( * ) + + ( + COUNT( * ) )
----
-68
0

skipif mysql # not compatible
query II rowsort label-9282
SELECT ALL - 68 AS col0, - COUNT ( * ) + + ( + COUNT ( * ) )
----
-68
0

query I rowsort
SELECT ALL + + 16 * + ( + 50 ) + + 65 + + 50 * - 65 * + 19 * + 61
----
-3765885

query I rowsort
SELECT + ( + NULLIF ( + 21, - 90 ) ) * - 10
----
-210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9285
SELECT 38, 87 - 43 - - 43 * - 46 * - CAST( - COUNT( * ) AS SIGNED ) + - - 88 AS col2
----
38
-1846

skipif mysql # not compatible
query II rowsort label-9285
SELECT 38, 87 - 43 - - 43 * - 46 * - CAST ( - COUNT ( * ) AS INTEGER ) + - - 88 AS col2
----
38
-1846

query II rowsort
SELECT DISTINCT - 47, - 8 AS col2
----
-47
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT + 20 + + + COUNT( * ) col0
----
21

skipif mysql # not compatible
query I rowsort label-9287
SELECT + 20 + + + COUNT ( * ) col0
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-9288
SELECT + 84 col0, + ( + 32 ) DIV + 43 - + ( - + 54 ) - + - 73 AS col2
----
84
127

skipif mysql # not compatible
query II rowsort label-9288
SELECT + 84 col0, + ( + 32 ) / + 43 - + ( - + 54 ) - + - 73 AS col2
----
84
127

query I rowsort
SELECT - 29 * - 30 AS col0
----
870

onlyif mysql # aggregate syntax: 
query II rowsort label-9290
SELECT 67 + COUNT( * ) + - 52 col2, 45 - + - 57 * + 42
----
16
2439

skipif mysql # not compatible
query II rowsort label-9290
SELECT 67 + COUNT ( * ) + - 52 col2, 45 - + - 57 * + 42
----
16
2439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9291
SELECT CAST( - + 91 AS SIGNED ) * - - CAST( - MIN( ALL - 33 ) AS SIGNED )
----
-3003

skipif mysql # not compatible
query I rowsort label-9291
SELECT CAST ( - + 91 AS INTEGER ) * - - CAST ( - MIN ( ALL - 33 ) AS INTEGER )
----
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT DISTINCT 30 + + - COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT 30 + + - COUNT ( * ) AS col0
----
29

query I rowsort
SELECT - + COALESCE ( + + 21, - NULLIF ( 60, 29 * + 0 + - + 18 ) - - 70, 54 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ALL - COUNT( * ) + - + 34 - + 38 + + - COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL - COUNT ( * ) + - + 34 - + 38 + + - COUNT ( * ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9295
SELECT CASE ( + + 40 ) WHEN 10 - - + 40 THEN + + 74 ELSE NULL END, ( 40 ) / - 14 * + + 47 - 78 + 47 * + CASE + 91 WHEN - 94 + - 32 / + ( - 23 ) THEN 74 * 62 + - NULLIF ( + - COUNT( * ), + ( 66 ) ) * - 7 END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9295
SELECT CASE ( + + 40 ) WHEN 10 - - + 40 THEN + + 74 ELSE NULL END, ( 40 ) / - 14 * + + 47 - 78 + 47 * + CASE + 91 WHEN - 94 + - 32 / + ( - 23 ) THEN 74 * 62 + - NULLIF ( + - COUNT ( * ), + ( 66 ) ) * - 7 END AS col0
----
NULL
NULL

query I rowsort
SELECT ALL + + 15 + - 3 * - + 58 + - ( 0 ) AS col2
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL CASE MIN( + + 33 ) WHEN + - 12 THEN 63 * - + 2 + - 95 - COUNT( * ) * + 94 * + 88 / MIN( ALL - + 85 ) / - COUNT( DISTINCT + 18 ) * + ( - - 51 ) * - - 77 * COUNT( * ) + - COUNT( DISTINCT + 76 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL CASE MIN ( + + 33 ) WHEN + - 12 THEN 63 * - + 2 + - 95 - COUNT ( * ) * + 94 * + 88 / MIN ( ALL - + 85 ) / - COUNT ( DISTINCT + 18 ) * + ( - - 51 ) * - - 77 * COUNT ( * ) + - COUNT ( DISTINCT + 76 ) END AS col2
----
NULL

query I rowsort
SELECT - ( + - 24 ) AS col1
----
24

query I rowsort
SELECT - - 85 * + + 46
----
3910

query I rowsort
SELECT ALL 26 + - 58 + - + 90 - 69 + + 27 AS col2
----
-164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9301
SELECT + 85 DIV + MIN( 31 )
----
2

skipif mysql # not compatible
query I rowsort label-9301
SELECT + 85 / + MIN ( 31 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL 91 - MAX( ALL + 55 )
----
36

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL 91 - MAX ( ALL + 55 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL 67 - - + COUNT( * ) * 59
----
126

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL 67 - - + COUNT ( * ) * 59
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-9304
SELECT ALL COALESCE ( - - ( + 5 ), + COUNT( + - 40 ) ), - 95 AS col1
----
5
-95

skipif mysql # not compatible
query II rowsort label-9304
SELECT ALL COALESCE ( - - ( + 5 ), + COUNT ( + - 40 ) ), - 95 AS col1
----
5
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT + COUNT( * ) * COUNT( DISTINCT - 78 ) * 55
----
55

skipif mysql # not compatible
query I rowsort label-9305
SELECT + COUNT ( * ) * COUNT ( DISTINCT - 78 ) * 55
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9306
SELECT + COALESCE ( - - 54, - 87 ) + + 28 + + ( - CAST( NULL AS SIGNED ) ) + + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9306
SELECT + COALESCE ( - - 54, - 87 ) + + 28 + + ( - CAST ( NULL AS INTEGER ) ) + + 91 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9307
SELECT - CAST( NULL AS SIGNED ) - - 69 + + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9307
SELECT - CAST ( NULL AS INTEGER ) - - 69 + + - 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9308
SELECT 36 / 49 / - 12 + 47 + + - 24 * + - 69 + - 21 - CASE + + 45 WHEN MAX( ALL - 71 ) * 5 THEN + 13 / - 58 * MIN( 5 ) + - 88 + 5 + - CASE 61 WHEN + - 55 THEN NULL ELSE + 55 END * - + 93 + + + 39 * + CAST( COUNT( * ) AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT 36 / 49 / - 12 + 47 + + - 24 * + - 69 + - 21 - CASE + + 45 WHEN MAX ( ALL - 71 ) * 5 THEN + 13 / - 58 * MIN ( 5 ) + - 88 + 5 + - CASE 61 WHEN + - 55 THEN NULL ELSE + 55 END * - + 93 + + + 39 * + CAST ( COUNT ( * ) AS INTEGER ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - ( - 51 ) + + 63
----
114

query I rowsort
SELECT DISTINCT + ( + 9 ) AS col1
----
9

query I rowsort
SELECT DISTINCT + 18 * + 41
----
738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9312
SELECT ALL + CAST( + - 87 AS SIGNED ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL + CAST ( + - 87 AS INTEGER ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT - 59 * + 44 * - 67 + COUNT( * )
----
173933

skipif mysql # not compatible
query I rowsort label-9313
SELECT - 59 * + 44 * - 67 + COUNT ( * )
----
173933

query I rowsort
SELECT ALL + ( - 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9315
SELECT - 65 DIV SUM( ALL 13 ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-9315
SELECT - 65 / SUM ( ALL 13 ) col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT ALL - 57 * + COUNT( * ) + - 26 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL - 57 * + COUNT ( * ) + - 26 AS col1
----
-83

query I rowsort
SELECT - - 96 * - 68 AS col0
----
-6528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9318
SELECT - 74 + + + 0 DIV + 88 * - + 21 DIV - + COUNT( 67 ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-9318
SELECT - 74 + + + 0 / + 88 * - + 21 / - + COUNT ( 67 ) col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9319
SELECT - 13 DIV + CAST( + 38 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9319
SELECT - 13 / + CAST ( + 38 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9320
SELECT DISTINCT - + 40 * - 55 + - 67 + + + CAST( - 80 AS SIGNED ) * + CAST( NULL AS SIGNED ) * - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT - + 40 * - 55 + - 67 + + + CAST ( - 80 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - 6 AS col1
----
NULL

query I rowsort
SELECT + - 0 * + + 33 + 3
----
3

query I rowsort
SELECT 41 * 90 + 73
----
3763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9323
SELECT ALL + - CAST( NULL AS SIGNED ) * 45 * - 23 + - 21 + - + 34 * - + 88 / CAST( NULL AS SIGNED ) + 15 / - - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL + - CAST ( NULL AS INTEGER ) * 45 * - 23 + - 21 + - + 34 * - + 88 / CAST ( NULL AS INTEGER ) + 15 / - - 99 AS col0
----
NULL

query I rowsort
SELECT ALL - 42 * + 24 + 34 col0
----
-974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT DISTINCT + + 46 * 59 - + 74 + CAST( 16 AS SIGNED ) - 86 + - 35
----
2535

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT + + 46 * 59 - + 74 + CAST ( 16 AS INTEGER ) - 86 + - 35
----
2535

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9326
SELECT - + CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT - + CAST ( + + CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT - 43 + - + 25 + 18
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9328
SELECT DISTINCT - 93 - 18 DIV 87 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT - 93 - 18 / 87 AS col1
----
-93

query I rowsort
SELECT DISTINCT 20 * 61
----
1220

query I rowsort
SELECT DISTINCT 73 - + 95 col2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT + 8 DIV + COALESCE ( + 89, - 15 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9331
SELECT + 8 / + COALESCE ( + 89, - 15 ) AS col2
----
0

query I rowsort
SELECT ALL 19 * 76 AS col1
----
1444

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT - 7 + + + SUM( ALL - 8 )
----
-15

skipif mysql # not compatible
query I rowsort label-9333
SELECT - 7 + + + SUM ( ALL - 8 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT ALL MIN( + 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL MIN ( + 70 ) AS col2
----
70

query I rowsort
SELECT + 78 * + 5 * - + 39 * - 50 AS col0
----
760500

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9336
SELECT - 83 + CASE - 84 WHEN 93 * + - CAST( NULL AS DECIMAL ) + - COUNT( * ) THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9336
SELECT - 83 + CASE - 84 WHEN 93 * + - CAST ( NULL AS REAL ) + - COUNT ( * ) THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - ( + 6 ) col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9338
SELECT + CAST( + - ( + 44 ) AS SIGNED ) * + 59 AS col2
----
-2596

skipif mysql # not compatible
query I rowsort label-9338
SELECT + CAST ( + - ( + 44 ) AS INTEGER ) * + 59 AS col2
----
-2596

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT ALL + COUNT( * ) + - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL + COUNT ( * ) + - + COUNT ( * )
----
0

query I rowsort
SELECT + 48 * - 39 AS col0
----
-1872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9341
SELECT DISTINCT COUNT( * ) DIV 1 + - 76 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT COUNT ( * ) / 1 + - 76 AS col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9342
SELECT + 2 * + 93 DIV - 15 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-9342
SELECT + 2 * + 93 / - 15 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT - 72 * 69 + - 12 * - 35 + COUNT( * ) AS col2
----
-4547

skipif mysql # not compatible
query I rowsort label-9343
SELECT - 72 * 69 + - 12 * - 35 + COUNT ( * ) AS col2
----
-4547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9344
SELECT ALL + 24 DIV - 42 * - 6 + - + COALESCE ( 75, SUM( + 68 ) ) + + COUNT( * ) + + COALESCE ( + + COUNT( * ), - 93 ) AS col2, NULLIF ( CAST( NULL AS SIGNED ), + 50 ) DIV + 1 * - COALESCE ( + 61, 44, COUNT( * ) ) + - + ( 50 ) AS col1
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-9344
SELECT ALL + 24 / - 42 * - 6 + - + COALESCE ( 75, SUM ( + 68 ) ) + + COUNT ( * ) + + COALESCE ( + + COUNT ( * ), - 93 ) AS col2, NULLIF ( CAST ( NULL AS INTEGER ), + 50 ) / + 1 * - COALESCE ( + 61, 44, COUNT ( * ) ) + - + ( 50 ) AS col1
----
-73
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9345
SELECT DISTINCT - - 43 / - + COALESCE ( + - CASE 77 WHEN - - 84 THEN + 80 * + COALESCE ( 7, - 96 + - - 94 * + 38 ) ELSE AVG ( 72 ) END, + + 49 / - 74 * 55, 63 ) * + CAST( NULL AS DECIMAL ) + - 56 - + 57 + 14 + - + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT - - 43 / - + COALESCE ( + - CASE 77 WHEN - - 84 THEN + 80 * + COALESCE ( 7, - 96 + - - 94 * + 38 ) ELSE AVG ( 72 ) END, + + 49 / - 74 * 55, 63 ) * + CAST ( NULL AS REAL ) + - 56 - + 57 + 14 + - + 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT ALL + + MIN( 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL + + MIN ( 24 ) AS col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT ALL + + 99 DIV 38 + 55
----
57

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL + + 99 / 38 + 55
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9348
SELECT ALL + 79 * + - NULLIF ( - 79, 37 ) + - - 51 AS col2, + 4 * COALESCE ( + 99, - 26 + + 89 DIV + 90, - COUNT( * ) * + 42 * + + 91 ) + - 37 * + 87 * 4
----
6292
-12480

skipif mysql # not compatible
query II rowsort label-9348
SELECT ALL + 79 * + - NULLIF ( - 79, 37 ) + - - 51 AS col2, + 4 * COALESCE ( + 99, - 26 + + 89 / + 90, - COUNT ( * ) * + 42 * + + 91 ) + - 37 * + 87 * 4
----
6292
-12480

query I rowsort
SELECT DISTINCT + ( 26 ) col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9350
SELECT ALL - + 81 - + - 12 * + 63 + - 12 - - 55 * + CAST( 69 AS SIGNED )
----
4458

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL - + 81 - + - 12 * + 63 + - 12 - - 55 * + CAST ( 69 AS INTEGER )
----
4458

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT - 74 * 36 + + COUNT( * ) col1
----
-2663

skipif mysql # not compatible
query I rowsort label-9351
SELECT - 74 * 36 + + COUNT ( * ) col1
----
-2663

query I rowsort
SELECT + NULLIF ( + 41, + 14 )
----
41

query I rowsort
SELECT 53 + - 87
----
-34

query I rowsort
SELECT + 97 + - 71 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT ALL - ( COUNT( * ) ) * CASE - - 11 WHEN - - 84 THEN + + 19 ELSE + COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL - ( COUNT ( * ) ) * CASE - - 11 WHEN - - 84 THEN + + 19 ELSE + COUNT ( * ) END AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9356
SELECT DISTINCT - - 39 DIV 33 * - 60 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT - - 39 / 33 * - 60 AS col0
----
-60

query I rowsort
SELECT ALL COALESCE ( + - CASE - + 53 WHEN + 40 THEN NULL WHEN - + 38 THEN + - 13 END, - 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT COUNT( * ) * - 20 + + 27 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9358
SELECT COUNT ( * ) * - 20 + + 27 AS col1
----
7

query I rowsort
SELECT ALL - 7 * - - 95 AS col1
----
-665

query I rowsort
SELECT DISTINCT - 53 * + 45
----
-2385

query I rowsort
SELECT 76 + + - 65 + 54 AS col2
----
65

query II rowsort
SELECT DISTINCT 54, 30 AS col1
----
54
30

query II rowsort
SELECT - 61 AS col1, 47 AS col0
----
-61
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9364
SELECT 62 AS col2, COUNT( * ) * - COUNT( * ) AS col2
----
62
-1

skipif mysql # not compatible
query II rowsort label-9364
SELECT 62 AS col2, COUNT ( * ) * - COUNT ( * ) AS col2
----
62
-1

query I rowsort
SELECT 1 * - - 69 AS col1
----
69

query I rowsort
SELECT 72 * + 89
----
6408

onlyif mysql # aggregate syntax: 
query II rowsort label-9367
SELECT ALL 69, - COUNT( * ) AS col1
----
69
-1

skipif mysql # not compatible
query II rowsort label-9367
SELECT ALL 69, - COUNT ( * ) AS col1
----
69
-1

query II rowsort
SELECT 43 col0, 31 AS col2
----
43
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL MAX( ALL - - 94 ) + 36 * 87
----
3226

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL MAX ( ALL - - 94 ) + 36 * 87
----
3226

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT COUNT( - 70 ) - - 94 + - + CASE 98 WHEN 72 THEN 54 WHEN ( - ( COALESCE ( 61, - - 4 + COUNT( * ), - 6 + - 91 + + - 69 ) ) ) * + - 77 + + 32 THEN + + 68 + + - 66 WHEN - - 90 THEN NULL WHEN 18 + + ( + 60 ) THEN NULL ELSE + 99 END * + - MIN( DISTINCT 86 ) * + 73 AS col2
----
621617

skipif mysql # not compatible
query I rowsort label-9370
SELECT COUNT ( - 70 ) - - 94 + - + CASE 98 WHEN 72 THEN 54 WHEN ( - ( COALESCE ( 61, - - 4 + COUNT ( * ), - 6 + - 91 + + - 69 ) ) ) * + - 77 + + 32 THEN + + 68 + + - 66 WHEN - - 90 THEN NULL WHEN 18 + + ( + 60 ) THEN NULL ELSE + 99 END * + - MIN ( DISTINCT 86 ) * + 73 AS col2
----
621617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9371
SELECT ALL 66 + COUNT( * ) / + COUNT( * ) * - + 37 * 48 / 17 * - + CAST( NULL AS SIGNED ) / - - 24 * 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL 66 + COUNT ( * ) / + COUNT ( * ) * - + 37 * 48 / 17 * - + CAST ( NULL AS INTEGER ) / - - 24 * 97 AS col1
----
NULL

query I rowsort
SELECT 97 - - 86 AS col2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT DISTINCT - MIN( + NULLIF ( + 47, + - ( + 58 ) ) ) + - 15 * + 44 * - COUNT( * ) AS col2
----
613

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT - MIN ( + NULLIF ( + 47, + - ( + 58 ) ) ) + - 15 * + 44 * - COUNT ( * ) AS col2
----
613

query I rowsort
SELECT 16 * 21 * + - 52
----
-17472

query I rowsort
SELECT ALL 30 + - + ( + + 16 )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9376
SELECT 87 + 68 - - - 33 * - 22, CAST( NULL AS SIGNED ) AS col1
----
881
NULL

skipif mysql # not compatible
query II rowsort label-9376
SELECT 87 + 68 - - - 33 * - 22, CAST ( NULL AS INTEGER ) AS col1
----
881
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9377
SELECT CAST( NULL AS SIGNED ) - 52 * + 76 * - 93 * + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT CAST ( NULL AS INTEGER ) - 52 * + 76 * - 93 * + 23 AS col1
----
NULL

query I rowsort
SELECT + 56 * - + 60
----
-3360

onlyif mysql # aggregate syntax: 
query II rowsort label-9379
SELECT DISTINCT - 91, MAX( ALL + + 95 ) AS col1
----
-91
95

skipif mysql # not compatible
query II rowsort label-9379
SELECT DISTINCT - 91, MAX ( ALL + + 95 ) AS col1
----
-91
95

query II rowsort
SELECT 50 + 88 AS col1, + 84 + + - 31 + - 24 * + 3 AS col0
----
138
-19

query II rowsort
SELECT ALL - 94 AS col1, + CASE WHEN NOT NULL BETWEEN - 63 AND + 63 THEN 82 + + 70 * - CASE - 50 WHEN 96 * + 0 * + 17 THEN + 51 * - 0 ELSE 48 + - 13 END END
----
-94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT ALL - 19 + + MIN( ALL 96 )
----
77

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL - 19 + + MIN ( ALL 96 )
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9383
SELECT DISTINCT - + MIN( ALL - NULLIF ( + 75, - 76 * - 94 - + 2 ) ), 47 + NULLIF ( MAX( DISTINCT + 25 ), + 31 ) AS col1
----
75
72

skipif mysql # not compatible
query II rowsort label-9383
SELECT DISTINCT - + MIN ( ALL - NULLIF ( + 75, - 76 * - 94 - + 2 ) ), 47 + NULLIF ( MAX ( DISTINCT + 25 ), + 31 ) AS col1
----
75
72

query I rowsort
SELECT ALL - - 21 * + + 49 AS col0
----
1029

query I rowsort
SELECT 88 + + - 13
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT ALL 19 - - COUNT( - 81 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL 19 - - COUNT ( - 81 ) AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9387
SELECT + 59, - 91 * - - CAST( 86 AS SIGNED ) - - COUNT( * ) + + + 11 + + 79 DIV COUNT( * ) * + 73 + - ( + 19 ) AS col0
----
59
-2066

skipif mysql # not compatible
query II rowsort label-9387
SELECT + 59, - 91 * - - CAST ( 86 AS INTEGER ) - - COUNT ( * ) + + + 11 + + 79 / COUNT ( * ) * + 73 + - ( + 19 ) AS col0
----
59
-2066

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT NULLIF ( - + 35, 63 * - SUM( - 20 ) ) * - 40 AS col1
----
1400

skipif mysql # not compatible
query I rowsort label-9388
SELECT NULLIF ( - + 35, 63 * - SUM ( - 20 ) ) * - 40 AS col1
----
1400

query I rowsort
SELECT + 72 + - 38 - 58 AS col2
----
-24

query I rowsort
SELECT ALL - 67 * + 76 + - + ( + - 72 ) + 55 + - 68
----
-5033

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9391
SELECT + - CAST( - 41 AS SIGNED ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9391
SELECT + - CAST ( - 41 AS INTEGER ) AS col1
----
41

query I rowsort
SELECT DISTINCT - - 64 AS col1
----
64

query II rowsort
SELECT ALL - 1 AS col0, 81 + - 54
----
-1
27

query II rowsort
SELECT + 38 * 27 + + + 59 * - 56, + 54 AS col1
----
-2278
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT + NULLIF ( - 26, COUNT( * ) ) * - 68 * + 33 + + + 42
----
58386

skipif mysql # not compatible
query I rowsort label-9395
SELECT + NULLIF ( - 26, COUNT ( * ) ) * - 68 * + 33 + + + 42
----
58386

query I rowsort
SELECT DISTINCT - 74 * + 30 AS col2
----
-2220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9397
SELECT ALL - 76 DIV - MIN( DISTINCT + 68 )
----
1

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL - 76 / - MIN ( DISTINCT + 68 )
----
1

query I rowsort
SELECT 63 + - - 5
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT 72 * + 16 * - ( 77 ) * + COUNT( * ) * + COUNT( * )
----
-88704

skipif mysql # not compatible
query I rowsort label-9399
SELECT 72 * + 16 * - ( 77 ) * + COUNT ( * ) * + COUNT ( * )
----
-88704

query I rowsort
SELECT 8 + - 46 col0
----
-38

query I rowsort
SELECT 82 * + - 10 * - 61
----
50020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9402
SELECT 88 + - CAST( NULL AS SIGNED ) + + - 25 * CAST( + SUM( DISTINCT + + 7 ) AS DECIMAL ) * + + COUNT( + 64 ) * - - 4 - + + 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9402
SELECT 88 + - CAST ( NULL AS INTEGER ) + + - 25 * CAST ( + SUM ( DISTINCT + + 7 ) AS REAL ) * + + COUNT ( + 64 ) * - - 4 - + + 8 col0
----
NULL

query II rowsort
SELECT ALL + 77 * + 17 AS col2, 75 col1
----
1309
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT 1 - ( + - COUNT( * ) ) + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-9404
SELECT 1 - ( + - COUNT ( * ) ) + COUNT ( * )
----
3

query I rowsort
SELECT ALL + 41 + + 98 + + 78 + - 66
----
151

query I rowsort
SELECT 32 + - + 24 AS col2
----
8

query I rowsort
SELECT + + 52 * + + 21
----
1092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9408
SELECT + - 19 * 31 * - ( - + ( + ( 34 ) ) ) / CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) * 99 + 52 - + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT + - 19 * 31 * - ( - + ( + ( 34 ) ) ) / CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) * 99 + 52 - + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT CAST( + ( - ( 49 ) ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-9409
SELECT CAST ( + ( - ( 49 ) ) AS INTEGER )
----
-49

query I rowsort
SELECT - 95 * + 40 AS col2
----
-3800

onlyif mysql # DIV for integer division: 
query I rowsort label-9411
SELECT 67 DIV 87 - - - 98 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-9411
SELECT 67 / 87 - - - 98 AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9412
SELECT ALL - 86 / COUNT( * ) * + 27 * - 57 + + 68 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL - 86 / COUNT ( * ) * + 27 * - 57 + + 68 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ALL + MAX( + 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL + MAX ( + 54 ) AS col2
----
54

query I rowsort
SELECT - 26 * + + 13 + + 0
----
-338

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT MIN( ALL - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-9415
SELECT MIN ( ALL - 7 )
----
-7

query I rowsort
SELECT + 85 + + 59
----
144

query II rowsort
SELECT + 1, 46 AS col2
----
1
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9418
SELECT ALL + 37 AS col1, - NULLIF ( - 41, + COUNT( * ) * - - SUM( 46 ) + 1 + + + COUNT( * ) * - NULLIF ( + - 46, + + 21 ) * - 85 ) DIV + 62 + 60 * 46
----
37
2760

skipif mysql # not compatible
query II rowsort label-9418
SELECT ALL + 37 AS col1, - NULLIF ( - 41, + COUNT ( * ) * - - SUM ( 46 ) + 1 + + + COUNT ( * ) * - NULLIF ( + - 46, + + 21 ) * - 85 ) / + 62 + 60 * 46
----
37
2760

query I rowsort
SELECT - 84 * 25
----
-2100

query I rowsort
SELECT DISTINCT 19 + + - 86 AS col1
----
-67

query I rowsort
SELECT - 31 * + - 74 * 28 + + 38 * - 82 + + - 69
----
61047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9422
SELECT ALL CASE - 10 WHEN - 14 * + + 58 * SUM( - 88 ) THEN - 16 WHEN - 55 * - ( 1 ) + 0 * - ( + 39 ) * + 2 + + ( - - 57 ) - + COUNT( * ) * + + COUNT( * ) + + CAST( NULL AS SIGNED ) + + 91 / + 55 * + - 35 * + - 50 * + 98 + + CASE - - 44 WHEN 76 THEN NULL WHEN + + 71 THEN + ( ( 0 ) ) WHEN - 76 / 90 THEN - 85 + 59 ELSE - COUNT( * ) END THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL CASE - 10 WHEN - 14 * + + 58 * SUM ( - 88 ) THEN - 16 WHEN - 55 * - ( 1 ) + 0 * - ( + 39 ) * + 2 + + ( - - 57 ) - + COUNT ( * ) * + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 91 / + 55 * + - 35 * + - 50 * + 98 + + CASE - - 44 WHEN 76 THEN NULL WHEN + + 71 THEN + ( ( 0 ) ) WHEN - 76 / 90 THEN - 85 + 59 ELSE - COUNT ( * ) END THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9423
SELECT - 48 * 52 * + 67 col1, + 16 * ( - MAX( + + 82 ) ) + + 56 + COUNT( * ) DIV + COUNT( * )
----
-167232
-1255

skipif mysql # not compatible
query II rowsort label-9423
SELECT - 48 * 52 * + 67 col1, + 16 * ( - MAX ( + + 82 ) ) + + 56 + COUNT ( * ) / + COUNT ( * )
----
-167232
-1255

onlyif mysql # aggregate syntax: 
query II rowsort label-9424
SELECT ALL SUM( ALL - 38 ) + - 71 col2, - ( + + 72 ) AS col2
----
-109
-72

skipif mysql # not compatible
query II rowsort label-9424
SELECT ALL SUM ( ALL - 38 ) + - 71 col2, - ( + + 72 ) AS col2
----
-109
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT ALL 13 + - MIN( DISTINCT + 25 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL 13 + - MIN ( DISTINCT + 25 ) AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9426
SELECT + 36 - CAST( - 50 AS SIGNED ) DIV + COALESCE ( - 75, - - COUNT( * ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9426
SELECT + 36 - CAST ( - 50 AS INTEGER ) / + COALESCE ( - 75, - - COUNT ( * ) ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL SUM( - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL SUM ( - 12 )
----
-12

query I rowsort
SELECT - 18 * - 85
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT ALL COALESCE ( - ( - + MIN( 64 ) ), - 79, - - 26 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL COALESCE ( - ( - + MIN ( 64 ) ), - 79, - - 26 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT - MIN( ALL - + 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9430
SELECT - MIN ( ALL - + 66 ) AS col0
----
66

query I rowsort
SELECT ALL + ( - 31 ) - 42
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT DISTINCT + COUNT( * ) * 76 * 59 AS col1
----
4484

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT + COUNT ( * ) * 76 * 59 AS col1
----
4484

query I rowsort
SELECT ALL - NULLIF ( + - 37, 94 ) col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT - COUNT( 92 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9434
SELECT - COUNT ( 92 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT DISTINCT + COUNT( * ) * + + 62 * - + 87 * 49 AS col2
----
-264306

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT + COUNT ( * ) * + + 62 * - + 87 * 49 AS col2
----
-264306

query I rowsort
SELECT - + 11 + + 30 + 5 * + + 94
----
489

query II rowsort
SELECT + 88 AS col2, 82 + - + 99 AS col0
----
88
-17

query I rowsort
SELECT - 71 + - - 94 + + + 73 AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9439
SELECT ALL - CASE - + COUNT( * ) WHEN + COUNT( ALL 46 ) * 28 + + + 97 THEN - 76 * 9 - + 12 + - ( CAST( NULL AS SIGNED ) ) * + - 91 * + + 86 - - - 22 + - 38 / + COUNT( - 16 ) * + SUM( ALL - - 63 ) + + + 85 + - 95 / - 10 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL - CASE - + COUNT ( * ) WHEN + COUNT ( ALL 46 ) * 28 + + + 97 THEN - 76 * 9 - + 12 + - ( CAST ( NULL AS INTEGER ) ) * + - 91 * + + 86 - - - 22 + - 38 / + COUNT ( - 16 ) * + SUM ( ALL - - 63 ) + + + 85 + - 95 / - 10 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT - 84 + - MAX( + + 91 ) - - - 8 - + - MAX( - 65 ) * + 72 AS col1
----
-4863

skipif mysql # not compatible
query I rowsort label-9440
SELECT - 84 + - MAX ( + + 91 ) - - - 8 - + - MAX ( - 65 ) * + 72 AS col1
----
-4863

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT - MIN( DISTINCT + 99 ) * + COUNT( * ) * - 69 + - ( + 17 ) col2
----
6814

skipif mysql # not compatible
query I rowsort label-9441
SELECT - MIN ( DISTINCT + 99 ) * + COUNT ( * ) * - 69 + - ( + 17 ) col2
----
6814

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT + - NULLIF ( - 54, + 85 * + - COUNT( * ) ) * + - 79 + 94
----
-4172

skipif mysql # not compatible
query I rowsort label-9442
SELECT + - NULLIF ( - 54, + 85 * + - COUNT ( * ) ) * + - 79 + 94
----
-4172

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT DISTINCT + - CASE - 80 WHEN COUNT( * ) THEN 79 * + COUNT( * ) / + 0 + 84 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT DISTINCT + - CASE - 80 WHEN COUNT ( * ) THEN 79 * + COUNT ( * ) / + 0 + 84 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 85 * - 48
----
4080

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9445
SELECT DISTINCT + 2 AS col0, + ( + 67 ) * - + 91 + - ( + + CASE - - 16 WHEN + CAST( 29 AS SIGNED ) THEN + 71 / + 21 + 30 - + CAST( - 87 AS SIGNED ) + - - 20 ELSE + CAST( NULL AS SIGNED ) END ) col0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-9445
SELECT DISTINCT + 2 AS col0, + ( + 67 ) * - + 91 + - ( + + CASE - - 16 WHEN + CAST ( 29 AS INTEGER ) THEN + 71 / + 21 + 30 - + CAST ( - 87 AS INTEGER ) + - - 20 ELSE + CAST ( NULL AS INTEGER ) END ) col0
----
2
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9446
SELECT + + 46 + - 87 + 91 + 15 * COALESCE ( - - 52, + 1, - NULLIF ( - 76, - COUNT( * ) ) + - 48 * - CAST( - AVG ( DISTINCT - 25 ) AS SIGNED ) ) * 49 + + CAST( NULL AS DECIMAL ) + - 44 * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT + + 46 + - 87 + 91 + 15 * COALESCE ( - - 52, + 1, - NULLIF ( - 76, - COUNT ( * ) ) + - 48 * - CAST ( - AVG ( DISTINCT - 25 ) AS INTEGER ) ) * 49 + + CAST ( NULL AS REAL ) + - 44 * - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT - NULLIF ( 48, COALESCE ( + - ( - 7 ), 85, - 83 + + 71 ) / - 55 + + + COUNT( * ) + - COUNT( * ) * ( - SUM( + 3 ) ) ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-9447
SELECT - NULLIF ( 48, COALESCE ( + - ( - 7 ), 85, - 83 + + 71 ) / - 55 + + + COUNT ( * ) + - COUNT ( * ) * ( - SUM ( + 3 ) ) ) AS col2
----
-48

query II rowsort
SELECT - 29 AS col2, 66 AS col2
----
-29
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9449
SELECT ALL + 24 * - + 74 + + + COUNT( * ) + + 50 * 54 * - + ( - 69 ) - + 0 AS col1, ( 20 ) AS col2
----
184525
20

skipif mysql # not compatible
query II rowsort label-9449
SELECT ALL + 24 * - + 74 + + + COUNT ( * ) + + 50 * 54 * - + ( - 69 ) - + 0 AS col1, ( 20 ) AS col2
----
184525
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT - 96 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT - 96 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + + 54, + 35 * 41 AS col0
----
54
1435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9452
SELECT + CAST( 53 AS SIGNED ) + + - 21 col0
----
32

skipif mysql # not compatible
query I rowsort label-9452
SELECT + CAST ( 53 AS INTEGER ) + + - 21 col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9453
SELECT - CAST( - 85 AS SIGNED ) * - + ( - + 77 ) + - - ( CASE + 95 WHEN - COUNT( * ) - CAST( NULL AS SIGNED ) THEN + + 43 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9453
SELECT - CAST ( - 85 AS INTEGER ) * - + ( - + 77 ) + - - ( CASE + 95 WHEN - COUNT ( * ) - CAST ( NULL AS INTEGER ) THEN + + 43 ELSE NULL END )
----
NULL

query I rowsort
SELECT + COALESCE ( 23, - 32 * - - ( + 2 ) * ( - - 44 ) - + 90 ) col1
----
23

query I rowsort
SELECT ( - 67 ) AS col0
----
-67

query I rowsort
SELECT ALL + COALESCE ( + + 67, 46, + 11 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-9457
SELECT DISTINCT 34 * 92 + - 90 + - 76 + 35, - COUNT( * ) AS col0
----
2997
-1

skipif mysql # not compatible
query II rowsort label-9457
SELECT DISTINCT 34 * 92 + - 90 + - 76 + 35, - COUNT ( * ) AS col0
----
2997
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9458
SELECT ALL 43 DIV 39 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL 43 / 39 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9459
SELECT + 49 + - - 15 + + 84 DIV - + MAX( ALL + + 72 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-9459
SELECT + 49 + - - 15 + + 84 / - + MAX ( ALL + + 72 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9460
SELECT ALL 8 * + 23 + - - MAX( ALL 12 ) AS col2, - 75 + - 13 AS col1
----
196
-88

skipif mysql # not compatible
query II rowsort label-9460
SELECT ALL 8 * + 23 + - - MAX ( ALL 12 ) AS col2, - 75 + - 13 AS col1
----
196
-88

query I rowsort
SELECT ALL 77 * + 74 + + COALESCE ( + + 73, + 50 ) AS col2
----
5771

onlyif mysql # DIV for integer division: 
query I rowsort label-9462
SELECT DISTINCT 72 DIV + 23 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT 72 / + 23 AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT + 27 * + CAST( 7 AS SIGNED ) + + - CAST( NULL AS SIGNED ) + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT + 27 * + CAST ( 7 AS INTEGER ) + + - CAST ( NULL AS INTEGER ) + - 38
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9464
SELECT + 95 - + 28 DIV 24 + + ( + 94 ) AS col0
----
188

skipif mysql # not compatible
query I rowsort label-9464
SELECT + 95 - + 28 / 24 + + ( + 94 ) AS col0
----
188

query I rowsort
SELECT + 1 * - 28 * ( 73 ) * 41
----
-83804

query I rowsort
SELECT + 13 + 73
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT CASE + ( COUNT( * ) ) WHEN + COUNT( * ) - 23 - 21 THEN 35 WHEN - ( + 20 ) THEN + - 96 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT CASE + ( COUNT ( * ) ) WHEN + COUNT ( * ) - 23 - 21 THEN 35 WHEN - ( + 20 ) THEN + - 96 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT - ( + ( MAX( ALL 39 ) ) )
----
-39

skipif mysql # not compatible
query I rowsort label-9468
SELECT - ( + ( MAX ( ALL 39 ) ) )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT - SUM( DISTINCT + - 41 ) + + ( - + 35 )
----
6

skipif mysql # not compatible
query I rowsort label-9469
SELECT - SUM ( DISTINCT + - 41 ) + + ( - + 35 )
----
6

query I rowsort
SELECT ALL - 81 * + 22 - - 76
----
-1706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9471
SELECT + 83 + + + ( + - COUNT( * ) ) + - CASE - NULLIF ( - 16, + SUM( + 17 ) ) WHEN + CASE + 23 WHEN - 66 + - 34 + + 60 * + CAST( + - 3 AS DECIMAL ) + CASE + 62 WHEN 13 THEN 89 WHEN ( 16 ) THEN NULL WHEN + - ( - 80 ) THEN + 89 ELSE - 40 END THEN + SUM( + + 16 ) * + + COUNT( * ) + - 73 * + 16 + 7 * ( + 43 ) WHEN 81 + - 76 / + 87 THEN NULL ELSE NULL END * + COALESCE ( NULLIF ( COUNT( * ), CAST( NULL AS DECIMAL ) / - 10 ) - + SUM( ALL CAST( NULL AS SIGNED ) ), + 96 + + 21 ) THEN NULL WHEN 88 THEN 54 * 23 + 44 END * + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT + 83 + + + ( + - COUNT ( * ) ) + - CASE - NULLIF ( - 16, + SUM ( + 17 ) ) WHEN + CASE + 23 WHEN - 66 + - 34 + + 60 * + CAST ( + - 3 AS REAL ) + CASE + 62 WHEN 13 THEN 89 WHEN ( 16 ) THEN NULL WHEN + - ( - 80 ) THEN + 89 ELSE - 40 END THEN + SUM ( + + 16 ) * + + COUNT ( * ) + - 73 * + 16 + 7 * ( + 43 ) WHEN 81 + - 76 / + 87 THEN NULL ELSE NULL END * + COALESCE ( NULLIF ( COUNT ( * ), CAST ( NULL AS REAL ) / - 10 ) - + SUM ( ALL CAST ( NULL AS INTEGER ) ), + 96 + + 21 ) THEN NULL WHEN 88 THEN 54 * 23 + 44 END * + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9472
SELECT + 41 * + 7, - 97 * 32 + - + 77 DIV - 38 + ( - COUNT( * ) ) col0
----
287
-3103

skipif mysql # not compatible
query II rowsort label-9472
SELECT + 41 * + 7, - 97 * 32 + - + 77 / - 38 + ( - COUNT ( * ) ) col0
----
287
-3103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9473
SELECT - COALESCE ( - 5, + COALESCE ( 56, - + ( - - COUNT( * ) ) DIV COUNT( * ) * 19 ) + ( + 96 ) DIV + 19, - NULLIF ( - NULLIF ( - 97, + 68 ), - 97 * MIN( 28 ) ), 16 - - + 14 + 74 * + + 23, 14 ) + 78 * - 76 AS col0
----
-5923

skipif mysql # not compatible
query I rowsort label-9473
SELECT - COALESCE ( - 5, + COALESCE ( 56, - + ( - - COUNT ( * ) ) / COUNT ( * ) * 19 ) + ( + 96 ) / + 19, - NULLIF ( - NULLIF ( - 97, + 68 ), - 97 * MIN ( 28 ) ), 16 - - + 14 + 74 * + + 23, 14 ) + 78 * - 76 AS col0
----
-5923

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT MIN( - 20 ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-9474
SELECT MIN ( - 20 ) col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9475
SELECT ALL + CASE + COALESCE ( + + 22, + - 90 ) WHEN + + 31 THEN - 35 + + AVG ( ALL - 27 ) + - - CAST( NULL AS SIGNED ) * 60 + + 93 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL + CASE + COALESCE ( + + 22, + - 90 ) WHEN + + 31 THEN - 35 + + AVG ( ALL - 27 ) + - - CAST ( NULL AS INTEGER ) * 60 + + 93 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9476
SELECT DISTINCT - 47 * - + 61 - + - ( + + 26 ) + - + COALESCE ( 44, ( COALESCE ( - 14, - - CAST( + 99 AS SIGNED ) DIV - 41 ) ) DIV + CASE + 96 WHEN ( 65 ) THEN NULL ELSE + + CASE 39 WHEN - 39 THEN + + 5 * CAST( + 88 AS SIGNED ) END END + - - 1, - COUNT( * ) * + 19 * - 45 - 95 * - - COUNT( ALL - ( 32 ) ) + + 70, 37 ) - + 14 AS col2
----
2835

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT - 47 * - + 61 - + - ( + + 26 ) + - + COALESCE ( 44, ( COALESCE ( - 14, - - CAST ( + 99 AS INTEGER ) / - 41 ) ) / + CASE + 96 WHEN ( 65 ) THEN NULL ELSE + + CASE 39 WHEN - 39 THEN + + 5 * CAST ( + 88 AS INTEGER ) END END + - - 1, - COUNT ( * ) * + 19 * - 45 - 95 * - - COUNT ( ALL - ( 32 ) ) + + 70, 37 ) - + 14 AS col2
----
2835

query I rowsort
SELECT DISTINCT + 89 * - 59 AS col0
----
-5251

query I rowsort
SELECT ALL - 30 + 90 AS col2
----
60

query I rowsort
SELECT ALL 74 * 60 AS col0
----
4440

query II rowsort
SELECT ALL + + 60 + 5 AS col0, - 92 AS col2
----
65
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT ALL + CAST( NULL AS SIGNED ) + + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL + CAST ( NULL AS INTEGER ) + + 52 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 86 * - 84 AS col1, 20 AS col1
----
7224
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9483
SELECT - MIN( DISTINCT - + 58 ), 88 + 29 * - SUM( - 36 ) - + 11 AS col0
----
58
1121

skipif mysql # not compatible
query II rowsort label-9483
SELECT - MIN ( DISTINCT - + 58 ), 88 + 29 * - SUM ( - 36 ) - + 11 AS col0
----
58
1121

query I rowsort
SELECT ALL - + 55 + 18 * + 67
----
1151

query I rowsort
SELECT + ( + + 66 ) AS col1
----
66

query I rowsort
SELECT ALL + 90 + + + 8
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9487
SELECT ALL COUNT( * ) + + 93 DIV 58 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL COUNT ( * ) + + 93 / 58 AS col2
----
2

query I rowsort
SELECT 1 - - + 24
----
25

query I rowsort
SELECT ALL - 55 + - + 19 + + + 40 col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL 19 * + COUNT( ALL + + 55 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL 19 * + COUNT ( ALL + + 55 ) AS col1
----
19

query I rowsort
SELECT ALL - 46 * - 48 AS col2
----
2208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9492
SELECT 88 DIV - COUNT( * ) col0
----
-88

skipif mysql # not compatible
query I rowsort label-9492
SELECT 88 / - COUNT ( * ) col0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9493
SELECT + NULLIF ( + 5, - ( 8 ) ) * - 62 * - 80 + CASE + + 52 WHEN + COUNT( * ) THEN ( - 43 ) * + 46 DIV COUNT( ALL - + 59 ) WHEN + MIN( - 33 ) THEN - - 92 * + - NULLIF ( - 33, + - 97 + 35 ) ELSE + + COUNT( * ) + 89 * - 17 + - - 71 END + - COUNT( * ) AS col0
----
23358

skipif mysql # not compatible
query I rowsort label-9493
SELECT + NULLIF ( + 5, - ( 8 ) ) * - 62 * - 80 + CASE + + 52 WHEN + COUNT ( * ) THEN ( - 43 ) * + 46 / COUNT ( ALL - + 59 ) WHEN + MIN ( - 33 ) THEN - - 92 * + - NULLIF ( - 33, + - 97 + 35 ) ELSE + + COUNT ( * ) + 89 * - 17 + - - 71 END + - COUNT ( * ) AS col0
----
23358

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT DISTINCT - NULLIF ( + 28, - COUNT( - 44 ) / - ( - 74 ) ) * 30
----
-840

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT - NULLIF ( + 28, - COUNT ( - 44 ) / - ( - 74 ) ) * 30
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT COUNT( * ) * - ( 7 ) * + + MAX( ALL + 15 ) + - 97 * + 18 col1
----
-1851

skipif mysql # not compatible
query I rowsort label-9495
SELECT COUNT ( * ) * - ( 7 ) * + + MAX ( ALL + 15 ) + - 97 * + 18 col1
----
-1851

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT DISTINCT - 28 * + + COUNT( ALL 41 )
----
-28

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT - 28 * + + COUNT ( ALL 41 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT 26 * - COALESCE ( - + COUNT( * ), - - 48, + 52 + - ( - 91 ) ) col2
----
26

skipif mysql # not compatible
query I rowsort label-9497
SELECT 26 * - COALESCE ( - + COUNT ( * ), - - 48, + 52 + - ( - 91 ) ) col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9498
SELECT ALL COUNT( ( - - 8 ) ) DIV 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL COUNT ( ( - - 8 ) ) / 82 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL COUNT( * ) - - 83 + + 67
----
151

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL COUNT ( * ) - - 83 + + 67
----
151

query I rowsort
SELECT ALL 6 * - 28 col0
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9501
SELECT ALL COUNT( * ) DIV - + 6 * + 18 col2, - 63
----
0
-63

skipif mysql # not compatible
query II rowsort label-9501
SELECT ALL COUNT ( * ) / - + 6 * + 18 col2, - 63
----
0
-63

query I rowsort
SELECT - 0 * - 41 AS col0
----
0

query II rowsort
SELECT ALL - 53 AS col0, 74 AS col0
----
-53
74

query I rowsort
SELECT - + ( - + NULLIF ( 69, + 90 * - - 50 ) ) col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL - 40 + - - COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL - 40 + - - COUNT ( * ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT MIN( 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT MIN ( 79 ) AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9507
SELECT - CAST( - COALESCE ( 26, 74, ( - 27 ) ) AS SIGNED ) AS col1, 9 + + - 13 * + - 94
----
26
1231

skipif mysql # not compatible
query II rowsort label-9507
SELECT - CAST ( - COALESCE ( 26, 74, ( - 27 ) ) AS INTEGER ) AS col1, 9 + + - 13 * + - 94
----
26
1231

query I rowsort
SELECT ALL 19 + - 12 + + 80 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT - 89 + + 20 * + MAX( ALL + + 44 ) col0
----
791

skipif mysql # not compatible
query I rowsort label-9509
SELECT - 89 + + 20 * + MAX ( ALL + + 44 ) col0
----
791

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT ALL - 90 * 22 + 79 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL - 90 * 22 + 79 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT 11 + - COUNT( ALL - + 36 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9511
SELECT 11 + - COUNT ( ALL - + 36 ) AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9512
SELECT ALL - + MAX( - - 52 ) + - 81 + + + 40 + + + 91 DIV - - 48 AS col1, CAST( - 77 AS SIGNED ) - + 20 + - COUNT( * )
----
-92
-98

skipif mysql # not compatible
query II rowsort label-9512
SELECT ALL - + MAX ( - - 52 ) + - 81 + + + 40 + + + 91 / - - 48 AS col1, CAST ( - 77 AS INTEGER ) - + 20 + - COUNT ( * )
----
-92
-98

query I rowsort
SELECT DISTINCT - ( + 64 ) + + + 77 AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9514
SELECT ALL MAX( + 15 ) + COUNT( * ) AS col1, 92
----
16
92

skipif mysql # not compatible
query II rowsort label-9514
SELECT ALL MAX ( + 15 ) + COUNT ( * ) AS col1, 92
----
16
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT CASE + 80 WHEN - COUNT( * ) THEN NULL WHEN - 22 THEN 31 + - - 35 ELSE NULL END + + + 12 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT CASE + 80 WHEN - COUNT ( * ) THEN NULL WHEN - 22 THEN 31 + - - 35 ELSE NULL END + + + 12 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9516
SELECT + 82 + 29 + + + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT + 82 + 29 + + + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 15 * - 80 + + 27 col2
----
-1173

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT DISTINCT - - NULLIF ( 30, - MAX( ALL 78 ) * - + 18 )
----
30

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT - - NULLIF ( 30, - MAX ( ALL 78 ) * - + 18 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL - COUNT( * ) * 39
----
-39

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL - COUNT ( * ) * 39
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9520
SELECT ALL COUNT( * ) * - + 60 + + - COUNT( * ) + - + 1 DIV + - COALESCE ( - + 99, + - 34 * + 93 * + 82 * 76 * + 27 ) * - 18 * + 75 + + - 88 + + 38 - + NULLIF ( + ( 83 ), SUM( 15 ) )
----
-194

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL COUNT ( * ) * - + 60 + + - COUNT ( * ) + - + 1 / + - COALESCE ( - + 99, + - 34 * + 93 * + 82 * 76 * + 27 ) * - 18 * + 75 + + - 88 + + 38 - + NULLIF ( + ( 83 ), SUM ( 15 ) )
----
-194

query I rowsort
SELECT 17 * 43 AS col2
----
731

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT 91 * - + COUNT( * ) * - + 34 col0
----
3094

skipif mysql # not compatible
query I rowsort label-9522
SELECT 91 * - + COUNT ( * ) * - + 34 col0
----
3094

query I rowsort
SELECT 97 + - + 17 - 52
----
28

query I rowsort
SELECT 36 + - 79 AS col2
----
-43

query I rowsort
SELECT 60 * + 80 * + 14 + + 37 + - 72
----
67165

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT ALL + 10 * + COUNT( * ) - - 12
----
22

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL + 10 * + COUNT ( * ) - - 12
----
22

query I rowsort
SELECT 16 * + - 60
----
-960

query I rowsort
SELECT - 59 + 0 AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9529
SELECT DISTINCT + CASE WHEN NULL NOT BETWEEN COALESCE ( 34, - + ( + 21 ) ) AND + - AVG ( CAST( NULL AS SIGNED ) ) + + CAST( - 1 AS SIGNED ) - - COUNT( * ) THEN + 85 + + 39 + - - 12 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT + CASE WHEN NULL NOT BETWEEN COALESCE ( 34, - + ( + 21 ) ) AND + - AVG ( CAST ( NULL AS INTEGER ) ) + + CAST ( - 1 AS INTEGER ) - - COUNT ( * ) THEN + 85 + + 39 + - - 12 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9530
SELECT DISTINCT + 42 - + 61 + 54 - 45 - 66 DIV + 21
----
-13

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT + 42 - + 61 + 54 - 45 - 66 / + 21
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-9531
SELECT COUNT( * ) AS col0, COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-9531
SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT - 24 + - 0
----
-24

query I rowsort
SELECT - 82 - - 51
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT - COUNT( * ) * NULLIF ( + 99, + 92 + 9 / - ( - 60 ) ) + COALESCE ( - 64, - 58 )
----
-163

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT - COUNT ( * ) * NULLIF ( + 99, + 92 + 9 / - ( - 60 ) ) + COALESCE ( - 64, - 58 )
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT ALL CASE + 37 WHEN + COALESCE ( - - 87, - 55 ) THEN CASE - + 59 WHEN - 8 THEN 61 WHEN - COALESCE ( 39, - 33 + - 49 ) THEN - MIN( - 16 ) * 82 + 41 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL CASE + 37 WHEN + COALESCE ( - - 87, - 55 ) THEN CASE - + 59 WHEN - 8 THEN 61 WHEN - COALESCE ( 39, - 33 + - 49 ) THEN - MIN ( - 16 ) * 82 + 41 END ELSE NULL END
----
NULL

query I rowsort
SELECT - 60 + 83 AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9537
SELECT DISTINCT + 52 * + 12, - MAX( - 11 ) AS col2
----
624
11

skipif mysql # not compatible
query II rowsort label-9537
SELECT DISTINCT + 52 * + 12, - MAX ( - 11 ) AS col2
----
624
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT + 73 + COUNT( * ) * 66 + 87 * - - 11 AS col2
----
1096

skipif mysql # not compatible
query I rowsort label-9538
SELECT + 73 + COUNT ( * ) * 66 + 87 * - - 11 AS col2
----
1096

query I rowsort
SELECT DISTINCT + ( + 38 ) col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9540
SELECT DISTINCT - 61 + + COUNT( * ) - - MAX( ALL + + 66 ) AS col1, - 86 + - + 31 + 47 * - 62 AS col1
----
6
-3031

skipif mysql # not compatible
query II rowsort label-9540
SELECT DISTINCT - 61 + + COUNT ( * ) - - MAX ( ALL + + 66 ) AS col1, - 86 + - + 31 + 47 * - 62 AS col1
----
6
-3031

query II rowsort
SELECT + 52 AS col2, - 4 col0
----
52
-4

query I rowsort
SELECT + + 17 + 65
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9543
SELECT - - COUNT( * ) DIV + + 65 * - - 13 + - 88 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-9543
SELECT - - COUNT ( * ) / + + 65 * - - 13 + - 88 AS col1
----
-88

query I rowsort
SELECT + - 42 + 48
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT ALL + ( 3 ) * MIN( ALL - + 61 ) AS col1
----
-183

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL + ( 3 ) * MIN ( ALL - + 61 ) AS col1
----
-183

query II rowsort
SELECT - ( ( - ( - 72 ) ) ) AS col2, + NULLIF ( - 48, - - 38 )
----
-72
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9547
SELECT ALL 19 + + CAST( NULL AS SIGNED ) / COUNT( * ) * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL 19 + + CAST ( NULL AS INTEGER ) / COUNT ( * ) * + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL - COALESCE ( 85, - - 68 ) - - COUNT( * ) + - + 41 + - 76
----
-201

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL - COALESCE ( 85, - - 68 ) - - COUNT ( * ) + - + 41 + - 76
----
-201

query II rowsort
SELECT ALL 42, + 36 AS col2
----
42
36

query I rowsort
SELECT - NULLIF ( - 6, - 91 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT DISTINCT 55 * + MIN( - - 49 )
----
2695

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT 55 * + MIN ( - - 49 )
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT + CASE 75 WHEN + 34 * COUNT( * ) THEN NULL WHEN - 95 + 52 THEN - 80 WHEN + 89 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9552
SELECT + CASE 75 WHEN + 34 * COUNT ( * ) THEN NULL WHEN - 95 + 52 THEN - 80 WHEN + 89 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9553
SELECT + 72 + + 61 + + - 37 + 77 - - + COUNT( * ) DIV 87 DIV 56
----
173

skipif mysql # not compatible
query I rowsort label-9553
SELECT + 72 + + 61 + + - 37 + 77 - - + COUNT ( * ) / 87 / 56
----
173

query II rowsort
SELECT ( + 30 ) AS col1, + 51 AS col0
----
30
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9555
SELECT MAX( - - 20 ) DIV - 89 + - 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9555
SELECT MAX ( - - 20 ) / - 89 + - 27 AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9556
SELECT + 66 * - COUNT( * ), - 2 * + 57 DIV - 19 AS col2, MAX( DISTINCT + + 99 ) * + - 85 AS col1
----
-66
6
-8415

skipif mysql # not compatible
query III rowsort label-9556
SELECT + 66 * - COUNT ( * ), - 2 * + 57 / - 19 AS col2, MAX ( DISTINCT + + 99 ) * + - 85 AS col1
----
-66
6
-8415

onlyif mysql # aggregate syntax: 
query II rowsort label-9557
SELECT DISTINCT AVG ( ALL + CASE 30 WHEN + 32 * + 0 THEN - + 46 WHEN 93 + 54 * + - 77 THEN + 7 * - 86 * + 67 * - 37 * - 42 END ) / + 99 + - SUM( + 85 ), + 72 + ( - + 40 ) * + + 72 + + + COUNT( * ) AS col2
----
NULL
-2807

skipif mysql # not compatible
query II rowsort label-9557
SELECT DISTINCT AVG ( ALL + CASE 30 WHEN + 32 * + 0 THEN - + 46 WHEN 93 + 54 * + - 77 THEN + 7 * - 86 * + 67 * - 37 * - 42 END ) / + 99 + - SUM ( + 85 ), + 72 + ( - + 40 ) * + + 72 + + + COUNT ( * ) AS col2
----
NULL
-2807

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT + 19 - - - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-9558
SELECT + 19 - - - COUNT ( * )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9559
SELECT ALL COALESCE ( COUNT( * ), 88 DIV 2 + 38 + 8, + 33 ) * - + NULLIF ( - 32, 73 * - 7 ) * - ( + 6 ) * + 36 * - - 19 + COUNT( * )
----
-131327

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL COALESCE ( COUNT ( * ), 88 / 2 + 38 + 8, + 33 ) * - + NULLIF ( - 32, 73 * - 7 ) * - ( + 6 ) * + 36 * - - 19 + COUNT ( * )
----
-131327

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT ALL + NULLIF ( 63, - 57 * + 70 * + 95 + + + COUNT( ALL + 43 ) ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL + NULLIF ( 63, - 57 * + 70 * + 95 + + + COUNT ( ALL + 43 ) ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT - COUNT( * ) * ( - 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9561
SELECT - COUNT ( * ) * ( - 46 ) AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9562
SELECT ALL ( 59 ) * 74 AS col1, MAX( + CAST( + - 65 AS SIGNED ) )
----
4366
-65

skipif mysql # not compatible
query II rowsort label-9562
SELECT ALL ( 59 ) * 74 AS col1, MAX ( + CAST ( + - 65 AS INTEGER ) )
----
4366
-65

query I rowsort
SELECT ALL 18 * 39
----
702

query II rowsort
SELECT + ( + 3 ) col1, 98
----
3
98

query I rowsort
SELECT - 76 * COALESCE ( + 94, + ( - 8 ) ) + + 97 AS col2
----
-7047

query I rowsort
SELECT - ( - 80 ) + - - 70
----
150

onlyif mysql # DIV for integer division: 
query II rowsort label-9567
SELECT DISTINCT + NULLIF ( + 76, - 22 * 63 + + + 0 ) AS col2, 12 DIV - - 63 AS col1
----
76
0

skipif mysql # not compatible
query II rowsort label-9567
SELECT DISTINCT + NULLIF ( + 76, - 22 * 63 + + + 0 ) AS col2, 12 / - - 63 AS col1
----
76
0

query I rowsort
SELECT + 76 * - 95 AS col0
----
-7220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT - CAST( NULL AS SIGNED ) - - ( + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT - CAST ( NULL AS INTEGER ) - - ( + 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT ALL ( - + COALESCE ( - COUNT( ALL 69 ), - 89 * 47 ) ) * + 90 + + + SUM( - 57 )
----
33

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL ( - + COALESCE ( - COUNT ( ALL 69 ), - 89 * 47 ) ) * + 90 + + + SUM ( - 57 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9571
SELECT DISTINCT + CAST( + 17 AS SIGNED ) * 38 + MIN( DISTINCT - 25 )
----
621

skipif mysql # not compatible
query I rowsort label-9571
SELECT DISTINCT + CAST ( + 17 AS INTEGER ) * 38 + MIN ( DISTINCT - 25 )
----
621

query I rowsort
SELECT - - 12 * 80 + - - COALESCE ( + 98, + 77 ) * - ( + ( - 15 ) ) AS col1
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL - 79 * + 60 + - - COUNT( * ) + + 36
----
-4703

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL - 79 * + 60 + - - COUNT ( * ) + + 36
----
-4703

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT ALL COUNT( * ) * + 55 + + 15 + - 88 + + - 97 + + COUNT( * )
----
-114

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL COUNT ( * ) * + 55 + + 15 + - 88 + + - 97 + + COUNT ( * )
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT - COUNT( * ) + 85 + - - 74 AS col0
----
158

skipif mysql # not compatible
query I rowsort label-9575
SELECT - COUNT ( * ) + 85 + - - 74 AS col0
----
158

query I rowsort
SELECT - 93 * 2 AS col1
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT DISTINCT + + 11 * - CAST( - ( - - 43 ) AS SIGNED ) + + + 75 + - NULLIF ( CAST( 3 AS SIGNED ), - 50 ) + 31 * - 52 - + - 45 * + 79
----
2488

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT + + 11 * - CAST ( - ( - - 43 ) AS INTEGER ) + + + 75 + - NULLIF ( CAST ( 3 AS INTEGER ), - 50 ) + 31 * - 52 - + - 45 * + 79
----
2488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9578
SELECT ALL - 66 + + - 67 AS col0, 34 * + CASE + + COUNT( ALL - + CAST( NULL AS SIGNED ) ) WHEN + - 2 THEN 98 END * + + 44 AS col0
----
-133
NULL

skipif mysql # not compatible
query II rowsort label-9578
SELECT ALL - 66 + + - 67 AS col0, 34 * + CASE + + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) WHEN + - 2 THEN 98 END * + + 44 AS col0
----
-133
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT ALL + 7 * + - COUNT( * ) - 16 * - + 29 - + CASE 46 WHEN - + 37 * + 9 THEN + 57 WHEN + + 66 THEN - - 86 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL + 7 * + - COUNT ( * ) - 16 * - + 29 - + CASE 46 WHEN - + 37 * + 9 THEN + 57 WHEN + + 66 THEN - - 86 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9580
SELECT + 21 DIV - 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9580
SELECT + 21 / - 27 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9581
SELECT DISTINCT - CAST( - - ( 8 ) AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT - CAST ( - - ( 8 ) AS INTEGER )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT - - COUNT( * ) - + 75
----
-74

skipif mysql # not compatible
query I rowsort label-9582
SELECT - - COUNT ( * ) - + 75
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL + - 69 * COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL + - 69 * COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9584
SELECT ALL + 25 DIV 65, COUNT( ALL 94 ) * - MIN( + + 36 ) AS col0
----
0
-36

skipif mysql # not compatible
query II rowsort label-9584
SELECT ALL + 25 / 65, COUNT ( ALL 94 ) * - MIN ( + + 36 ) AS col0
----
0
-36

query II rowsort
SELECT + - 61 + + + 15 - 17 AS col2, - 78 AS col1
----
-63
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT - - 50 + + - COUNT( * ) * - 66
----
116

skipif mysql # not compatible
query I rowsort label-9586
SELECT - - 50 + + - COUNT ( * ) * - 66
----
116

query I rowsort
SELECT + 2 - 75
----
-73

query I rowsort
SELECT - 73 + - 91 AS col2
----
-164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT + 79 - + + 30 + - + CAST( 27 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9589
SELECT + 79 - + + 30 + - + CAST ( 27 AS INTEGER ) AS col0
----
22

query I rowsort
SELECT - 90 * - 93 * + - 73 * - 37
----
22607370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9591
SELECT - 49 + 47 + + COUNT( * ) DIV 27
----
-2

skipif mysql # not compatible
query I rowsort label-9591
SELECT - 49 + 47 + + COUNT ( * ) / 27
----
-2

query I rowsort
SELECT + 55 + 45
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT COUNT( * ) + + - 98
----
-97

skipif mysql # not compatible
query I rowsort label-9593
SELECT COUNT ( * ) + + - 98
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9594
SELECT DISTINCT - COUNT( * ) AS col2, 78 AS col2
----
-1
78

skipif mysql # not compatible
query II rowsort label-9594
SELECT DISTINCT - COUNT ( * ) AS col2, 78 AS col2
----
-1
78

query II rowsort
SELECT ( - 36 ) * + 67 + + 52 AS col0, 57
----
-2360
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9596
SELECT 89, - 10 * - COUNT( * ) DIV 69 * + 63 AS col2
----
89
0

skipif mysql # not compatible
query II rowsort label-9596
SELECT 89, - 10 * - COUNT ( * ) / 69 * + 63 AS col2
----
89
0

query I rowsort
SELECT + ( + - 25 ) * + 93 + + 9 + + - 8 AS col0
----
-2324

query I rowsort
SELECT DISTINCT 29 + + 61
----
90

query I rowsort
SELECT ALL 88 + 90 + 13 * - - 88 * 55 + 20 * - - 63
----
64358

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9600
SELECT ALL 64 + - ( - COUNT( * ) ) + + + 81 DIV 98 + - + 75 * + - 4
----
365

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL 64 + - ( - COUNT ( * ) ) + + + 81 / 98 + - + 75 * + - 4
----
365

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT COUNT( ( - 87 ) ) * - - 77 + - 85 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9601
SELECT COUNT ( ( - 87 ) ) * - - 77 + - 85 AS col1
----
-8

query II rowsort
SELECT DISTINCT - - 67, 61 * - 90 * + - 42 col0
----
67
230580

query II rowsort
SELECT DISTINCT ( + 46 ) + 23 AS col2, + 59
----
69
59

query I rowsort
SELECT DISTINCT + + 63 + 7
----
70

query I rowsort
SELECT 17 + 98 * + 21 * 31
----
63815

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9606
SELECT ALL 25 + + + 37 + COUNT( ALL - CAST( - - 67 AS SIGNED ) ) * - + 65 DIV + 45
----
61

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL 25 + + + 37 + COUNT ( ALL - CAST ( - - 67 AS INTEGER ) ) * - + 65 / + 45
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9607
SELECT + 47, + 3 * - CASE 25 WHEN - ( + SUM( DISTINCT + 54 ) ) * CASE - 79 WHEN + NULLIF ( + NULLIF ( + 43, COUNT( * ) - + + 11 ), - COALESCE ( + COUNT( * ), COUNT( * ) * 85 + + 38 ) * + CAST( 93 AS SIGNED ) + - COUNT( * ) * 28 / + 39 + ( + 50 ) ) THEN + MIN( + + 87 ) ELSE + + 88 END - COUNT( * ) THEN + CASE 18 WHEN - ( - 31 ) + - 38 THEN NULL WHEN ( 16 ) * - COUNT( * ) THEN ( COUNT( * ) ) END * - COUNT( * ) END AS col1
----
47
NULL

skipif mysql # not compatible
query II rowsort label-9607
SELECT + 47, + 3 * - CASE 25 WHEN - ( + SUM ( DISTINCT + 54 ) ) * CASE - 79 WHEN + NULLIF ( + NULLIF ( + 43, COUNT ( * ) - + + 11 ), - COALESCE ( + COUNT ( * ), COUNT ( * ) * 85 + + 38 ) * + CAST ( 93 AS INTEGER ) + - COUNT ( * ) * 28 / + 39 + ( + 50 ) ) THEN + MIN ( + + 87 ) ELSE + + 88 END - COUNT ( * ) THEN + CASE 18 WHEN - ( - 31 ) + - 38 THEN NULL WHEN ( 16 ) * - COUNT ( * ) THEN ( COUNT ( * ) ) END * - COUNT ( * ) END AS col1
----
47
NULL

query I rowsort
SELECT + 99 * - 19 AS col1
----
-1881

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9609
SELECT CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) * + + 6 + + CAST( - 40 AS DECIMAL ) + + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT CAST ( CAST ( NULL AS REAL ) AS REAL ) * + + 6 + + CAST ( - 40 AS REAL ) + + 89 AS col2
----
NULL

query I rowsort
SELECT ALL 52 * 71
----
3692

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT + 91 + + - ( + + 54 ) - ( - 22 ) * - - COUNT( * ) * + 53
----
1203

skipif mysql # not compatible
query I rowsort label-9611
SELECT + 91 + + - ( + + 54 ) - ( - 22 ) * - - COUNT ( * ) * + 53
----
1203

query I rowsort
SELECT 56 * - - 2 AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT 86 + + 89 - - 34 * + MIN( 89 ) AS col0
----
3201

skipif mysql # not compatible
query I rowsort label-9613
SELECT 86 + + 89 - - 34 * + MIN ( 89 ) AS col0
----
3201

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL - 20 - + + SUM( - + 50 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL - 20 - + + SUM ( - + 50 ) AS col0
----
30

query I rowsort
SELECT + 44 + + 71
----
115

query II rowsort
SELECT - COALESCE ( 38, - 29 ) AS col1, - 9
----
-38
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL - CASE + + 90 WHEN 15 + COUNT( * ) THEN NULL WHEN CASE + NULLIF ( - COUNT( * ), + - 44 ) WHEN + 47 THEN - COUNT( * ) / + + 81 WHEN + 61 THEN - 57 * 77 / - COUNT( + 7 ) + - COUNT( * ) ELSE + COUNT( DISTINCT 65 ) END * + - ( - 85 ) THEN - 96 + + MIN( 80 ) + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - CASE + + 90 WHEN 15 + COUNT ( * ) THEN NULL WHEN CASE + NULLIF ( - COUNT ( * ), + - 44 ) WHEN + 47 THEN - COUNT ( * ) / + + 81 WHEN + 61 THEN - 57 * 77 / - COUNT ( + 7 ) + - COUNT ( * ) ELSE + COUNT ( DISTINCT 65 ) END * + - ( - 85 ) THEN - 96 + + MIN ( 80 ) + COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT - 98, 88 AS col0
----
-98
88

query I rowsort
SELECT ALL ( + - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT SUM( ALL - + 50 ) + 62 + - 6 * ( + 10 ) * 4 * 38 + 29
----
-9079

skipif mysql # not compatible
query I rowsort label-9620
SELECT SUM ( ALL - + 50 ) + 62 + - 6 * ( + 10 ) * 4 * 38 + 29
----
-9079

query I rowsort
SELECT ALL + + 33 * 65 - - ( - 6 ) AS col2
----
2139

onlyif mysql # aggregate syntax: 
query II rowsort label-9622
SELECT ALL 93 AS col0, - NULLIF ( - 68, + ( + + COUNT( * ) ) / + 91 / + + 90 + COUNT( * ) )
----
93
68

skipif mysql # not compatible
query II rowsort label-9622
SELECT ALL 93 AS col0, - NULLIF ( - 68, + ( + + COUNT ( * ) ) / + 91 / + + 90 + COUNT ( * ) )
----
93
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT - 24 * - + 36 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT - 24 * - + 36 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT - 94 * - ( + ( 33 ) ) * 35 + + - COUNT( ALL 93 ) + + - 10 * 80
----
107769

skipif mysql # not compatible
query I rowsort label-9624
SELECT - 94 * - ( + ( 33 ) ) * 35 + + - COUNT ( ALL 93 ) + + - 10 * 80
----
107769

query II rowsort
SELECT - - 58 AS col1, 9 AS col1
----
58
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9626
SELECT ALL + - COUNT( * ) * + ( - + COUNT( * ) ) DIV - 34 * - 37 - - 2 col2, + 56
----
2
56

skipif mysql # not compatible
query II rowsort label-9626
SELECT ALL + - COUNT ( * ) * + ( - + COUNT ( * ) ) / - 34 * - 37 - - 2 col2, + 56
----
2
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9627
SELECT 7 * + 23 AS col0, + CAST( - CAST( + + 74 AS SIGNED ) AS SIGNED ) AS col2
----
161
-74

skipif mysql # not compatible
query II rowsort label-9627
SELECT 7 * + 23 AS col0, + CAST ( - CAST ( + + 74 AS INTEGER ) AS INTEGER ) AS col2
----
161
-74

query I rowsort
SELECT DISTINCT + 82 * - 71 AS col1
----
-5822

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT - 10 * + MIN( DISTINCT - ( + 54 ) ) * 70 + + 40 col0
----
37840

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT - 10 * + MIN ( DISTINCT - ( + 54 ) ) * 70 + + 40 col0
----
37840

query I rowsort
SELECT 20 * + 58 col2
----
1160

query I rowsort
SELECT DISTINCT - CASE + 61 WHEN ( 8 ) THEN NULL WHEN 57 + + 10 THEN - 74 END + 4 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9632
SELECT DISTINCT 90 DIV NULLIF ( + 8, + 18 )
----
11

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT 90 / NULLIF ( + 8, + 18 )
----
11

query I rowsort
SELECT 45 * - 28
----
-1260

query I rowsort
SELECT ALL - 65 + + + 14
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9635
SELECT 29 DIV 42 - - 65
----
65

skipif mysql # not compatible
query I rowsort label-9635
SELECT 29 / 42 - - 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT 2 * COUNT( * ) * + 85 * + 90 + + 23
----
15323

skipif mysql # not compatible
query I rowsort label-9636
SELECT 2 * COUNT ( * ) * + 85 * + 90 + + 23
----
15323

query I rowsort
SELECT 70 * + 97
----
6790

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9638
SELECT ( 56 ) DIV + NULLIF ( - 36, 45 + 33 - + 57 ) + - CAST( - 98 AS SIGNED ) + - + CAST( + - 5 AS SIGNED ) * 3
----
112

skipif mysql # not compatible
query I rowsort label-9638
SELECT ( 56 ) / + NULLIF ( - 36, 45 + 33 - + 57 ) + - CAST ( - 98 AS INTEGER ) + - + CAST ( + - 5 AS INTEGER ) * 3
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT ALL 47 + + COUNT( * ) + 78 * NULLIF ( - 72, - 93 ) AS col2
----
-5568

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL 47 + + COUNT ( * ) + 78 * NULLIF ( - 72, - 93 ) AS col2
----
-5568

query I rowsort
SELECT ALL - ( - ( 45 ) )
----
45

query I rowsort
SELECT ALL 23 + + 27 + + 48 - - - 10 AS col0
----
88

query I rowsort
SELECT DISTINCT - 21 + + 64
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9643
SELECT 35 + - ( + MIN( - 4 ) ) + - COUNT( * ) * - ( - 90 ) + COALESCE ( + - NULLIF ( - ( - 21 ), 99 * + 36 ), CAST( NULL AS SIGNED ) + + - COUNT( * ) ) - + 47 + + 83 + - 69 DIV - - 67 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9643
SELECT 35 + - ( + MIN ( - 4 ) ) + - COUNT ( * ) * - ( - 90 ) + COALESCE ( + - NULLIF ( - ( - 21 ), 99 * + 36 ), CAST ( NULL AS INTEGER ) + + - COUNT ( * ) ) - + 47 + + 83 + - 69 / - - 67 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT - ( + + COUNT( DISTINCT 49 ) ) * + NULLIF ( 3, - - 42 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9644
SELECT - ( + + COUNT ( DISTINCT 49 ) ) * + NULLIF ( 3, - - 42 ) AS col1
----
-3

query I rowsort
SELECT ALL - NULLIF ( 95, - 53 ) AS col0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT ALL - + CAST( - 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL - + CAST ( - 99 AS INTEGER )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9647
SELECT DISTINCT + 47 DIV 29 + 45 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT + 47 / 29 + 45 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL - COUNT( * ) * + - 68 * + 91 * + - 43 * + 41
----
-10909444

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL - COUNT ( * ) * + - 68 * + 91 * + - 43 * + 41
----
-10909444

query I rowsort
SELECT DISTINCT + 97 * + + 36 * - 81 + 61 AS col1
----
-282791

query II rowsort
SELECT + 22 + + + 77 AS col1, 80 AS col1
----
99
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT + 67 - - ( - COUNT( * ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9651
SELECT + 67 - - ( - COUNT ( * ) ) AS col1
----
66

query II rowsort
SELECT ALL 47 AS col2, 79 AS col1
----
47
79

query II rowsort
SELECT + 43 + + - 93 - + + 10 - - 35 + - 2 col1, - 37 + + 97 AS col0
----
-27
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL COUNT( ALL + + 80 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL COUNT ( ALL + + 80 ) col0
----
1

query I rowsort
SELECT ALL - 69 + - 45 AS col0
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-9656
SELECT ALL CASE 23 WHEN COUNT( * ) THEN - 33 WHEN - 4 / + + 75 THEN + NULLIF ( - CASE + 67 WHEN + + 33 * + ( - 84 ) + - + COUNT( * ) THEN ( - 55 ) ELSE NULL END, - + 10 ) ELSE NULL END, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9656
SELECT ALL CASE 23 WHEN COUNT ( * ) THEN - 33 WHEN - 4 / + + 75 THEN + NULLIF ( - CASE + 67 WHEN + + 33 * + ( - 84 ) + - + COUNT ( * ) THEN ( - 55 ) ELSE NULL END, - + 10 ) ELSE NULL END, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT - 96 + + 47 + - MIN( 20 ) * + + 97 AS col1
----
-1989

skipif mysql # not compatible
query I rowsort label-9657
SELECT - 96 + + 47 + - MIN ( 20 ) * + + 97 AS col1
----
-1989

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT ALL COUNT( - 32 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL COUNT ( - 32 ) AS col2
----
1

query I rowsort
SELECT + 83 + - 63 AS col0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9660
SELECT - 89 - - 80 DIV - - 87 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-9660
SELECT - 89 - - 80 / - - 87 AS col0
----
-89

query I rowsort
SELECT ALL + COALESCE ( - - 50, - 69 ) + + - 63
----
-13

query II rowsort
SELECT - 60 + + - 60 * - 69, - 72 + 71 * + - 81 * + - 5 * 69 * - 51 AS col0
----
4080
-101188917

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9663
SELECT - CASE - 95 WHEN + - CAST( 55 AS DECIMAL ) + + 55 * + COUNT( * ) * - + 6 THEN - COUNT( * ) END + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT - CASE - 95 WHEN + - CAST ( 55 AS REAL ) + + 55 * + COUNT ( * ) * - + 6 THEN - COUNT ( * ) END + - - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT - 36 DIV 32
----
-1

skipif mysql # not compatible
query I rowsort label-9664
SELECT - 36 / 32
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9665
SELECT ALL - 34 + - - 32 DIV - 5 col1, 74 AS col2
----
-40
74

skipif mysql # not compatible
query II rowsort label-9665
SELECT ALL - 34 + - - 32 / - 5 col1, 74 AS col2
----
-40
74

query I rowsort
SELECT ( ( + 5 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT + 14 * + 22 + - - COUNT( * ) AS col2
----
309

skipif mysql # not compatible
query I rowsort label-9667
SELECT + 14 * + 22 + - - COUNT ( * ) AS col2
----
309

query I rowsort
SELECT COALESCE ( - 66, 46 + - 94 )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9669
SELECT ALL 32 * + 75 + + COALESCE ( 87, 18 ) + ( ( CAST( 82 AS SIGNED ) ) ) * + 42 AS col1
----
5931

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL 32 * + 75 + + COALESCE ( 87, 18 ) + ( ( CAST ( 82 AS INTEGER ) ) ) * + 42 AS col1
----
5931

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9670
SELECT - CAST( + 44 AS SIGNED ) + + COUNT( * ), 9 + + + COUNT( * ) - - 55 * 2 AS col2
----
-43
120

skipif mysql # not compatible
query II rowsort label-9670
SELECT - CAST ( + 44 AS INTEGER ) + + COUNT ( * ), 9 + + + COUNT ( * ) - - 55 * 2 AS col2
----
-43
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9671
SELECT COALESCE ( + + 78, - 89, 1 DIV - 36 * - + COUNT( * ) + + ( 20 ) + 61 + 16, - NULLIF ( 58, + + 87 + - ( + - 99 ) + + - 33 * 43 * - CAST( 93 AS SIGNED ) * - 18 ) ), - 48 AS col1
----
78
-48

skipif mysql # not compatible
query II rowsort label-9671
SELECT COALESCE ( + + 78, - 89, 1 / - 36 * - + COUNT ( * ) + + ( 20 ) + 61 + 16, - NULLIF ( 58, + + 87 + - ( + - 99 ) + + - 33 * 43 * - CAST ( 93 AS INTEGER ) * - 18 ) ), - 48 AS col1
----
78
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-9672
SELECT + + NULLIF ( - + 27, - - 46 ) col1, - MIN( - ( - 35 ) )
----
-27
-35

skipif mysql # not compatible
query II rowsort label-9672
SELECT + + NULLIF ( - + 27, - - 46 ) col1, - MIN ( - ( - 35 ) )
----
-27
-35

query I rowsort
SELECT ALL + + NULLIF ( 32, 52 )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT - - 81 DIV 48 * - 63 col2
----
-63

skipif mysql # not compatible
query I rowsort label-9674
SELECT - - 81 / 48 * - 63 col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT DISTINCT 4 * SUM( - 36 ) - - + 18 col0
----
-126

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT 4 * SUM ( - 36 ) - - + 18 col0
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-9676
SELECT ALL - 87 * - - 95 * 83 - + 11 + + - 36 DIV - + 55 * + + 96 * - 72 - - + 56
----
-685950

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - 87 * - - 95 * 83 - + 11 + + - 36 / - + 55 * + + 96 * - 72 - - + 56
----
-685950

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT ALL + - CASE - 89 WHEN - 81 * COUNT( * ) * - 24 THEN + + 45 + + + COALESCE ( + 1, - CASE + MAX( + 24 ) WHEN COALESCE ( + - 45, - 80 / + ( + 66 ) + 15 ) + + 90 - + 35 + + 8 * 6 THEN 49 * ( - 98 ) + + 27 + + 48 * + ( 19 ) * + - ( - 88 ) ELSE NULL END * - ( - 53 ), + ( + 26 ) * + 42 / 28 + - 94 ) WHEN 67 THEN + 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL + - CASE - 89 WHEN - 81 * COUNT ( * ) * - 24 THEN + + 45 + + + COALESCE ( + 1, - CASE + MAX ( + 24 ) WHEN COALESCE ( + - 45, - 80 / + ( + 66 ) + 15 ) + + 90 - + 35 + + 8 * 6 THEN 49 * ( - 98 ) + + 27 + + 48 * + ( 19 ) * + - ( - 88 ) ELSE NULL END * - ( - 53 ), + ( + 26 ) * + 42 / 28 + - 94 ) WHEN 67 THEN + 68 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9678
SELECT - 31 * ( + - CAST( + 39 AS SIGNED ) ) * - - COUNT( * )
----
1209

skipif mysql # not compatible
query I rowsort label-9678
SELECT - 31 * ( + - CAST ( + 39 AS INTEGER ) ) * - - COUNT ( * )
----
1209

query I rowsort
SELECT ALL 70 * - 2
----
-140

query I rowsort
SELECT + - 23 + - 84
----
-107

query I rowsort
SELECT ALL - - 25 * - + 46 * + 3
----
-3450

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9682
SELECT + - ( - + CAST( NULL AS DECIMAL ) ) * + ( + 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT + - ( - + CAST ( NULL AS REAL ) ) * + ( + 93 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9683
SELECT - COALESCE ( - + 43, + - SUM( 83 ), 50 * - + 29 + - 24 + + + 66 * MAX( + + 71 ) * + 66 + + 63 DIV - 1, 53 + + ( - 81 ) ) * - COALESCE ( 33, 63, - ( + 91 ) ) + - - 20 DIV + - COUNT( * ) + - - 3
----
-1436

skipif mysql # not compatible
query I rowsort label-9683
SELECT - COALESCE ( - + 43, + - SUM ( 83 ), 50 * - + 29 + - 24 + + + 66 * MAX ( + + 71 ) * + 66 + + 63 / - 1, 53 + + ( - 81 ) ) * - COALESCE ( 33, 63, - ( + 91 ) ) + - - 20 / + - COUNT ( * ) + - - 3
----
-1436

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT + 89 + 75 * - NULLIF ( + COUNT( * ), + 6 * 25 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9684
SELECT + 89 + 75 * - NULLIF ( + COUNT ( * ), + 6 * 25 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9685
SELECT ALL - 16 AS col0, 93 + + COUNT( * ) + + 39 + - - ( + + 42 )
----
-16
175

skipif mysql # not compatible
query II rowsort label-9685
SELECT ALL - 16 AS col0, 93 + + COUNT ( * ) + + 39 + - - ( + + 42 )
----
-16
175

query I rowsort
SELECT + + 13 * - - 80 * + - 57 AS col1
----
-59280

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT DISTINCT COUNT( DISTINCT 61 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT COUNT ( DISTINCT 61 ) AS col0
----
1

query II rowsort
SELECT ALL 14 + + + 9, + ( - 56 ) col1
----
23
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9689
SELECT + 20 * COALESCE ( MAX( ALL - 65 ), + 32 * - 68 * - COUNT( * ) ) DIV 88 DIV 5, 42 * - 82 AS col1
----
-2
-3444

skipif mysql # not compatible
query II rowsort label-9689
SELECT + 20 * COALESCE ( MAX ( ALL - 65 ), + 32 * - 68 * - COUNT ( * ) ) / 88 / 5, 42 * - 82 AS col1
----
-2
-3444

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT - NULLIF ( + 54, CASE + 93 WHEN - COUNT( * ) THEN - 59 + - + 88 END ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9690
SELECT - NULLIF ( + 54, CASE + 93 WHEN - COUNT ( * ) THEN - 59 + - + 88 END ) AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9691
SELECT - CAST( + - 65 AS SIGNED ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9691
SELECT - CAST ( + - 65 AS INTEGER ) AS col0
----
65

query I rowsort
SELECT + 84 * + COALESCE ( - 35, ( 26 ) ) AS col2
----
-2940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9693
SELECT + SUM( ALL 48 ) + - 5 / - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT + SUM ( ALL 48 ) + - 5 / - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 54 * + - 33
----
-1782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9695
SELECT + 60 * CAST( + ( + 51 ) AS SIGNED ) AS col0
----
3060

skipif mysql # not compatible
query I rowsort label-9695
SELECT + 60 * CAST ( + ( + 51 ) AS INTEGER ) AS col0
----
3060

query I rowsort
SELECT ALL 72 + - 19
----
53

query II rowsort
SELECT 76, 20 * - - 44 AS col2
----
76
880

query I rowsort
SELECT ALL 48 + - 72
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT DISTINCT ( + + 1 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT ( + + 1 ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9700
SELECT ALL NULLIF ( + 15, + MAX( + - 75 ) ), 71 AS col2
----
15
71

skipif mysql # not compatible
query II rowsort label-9700
SELECT ALL NULLIF ( + 15, + MAX ( + - 75 ) ), 71 AS col2
----
15
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL CASE - + 85 WHEN 61 / - 67 * 46 * + 15 THEN 95 WHEN - COUNT( * ) + - 29 * + - 65 THEN + - 57 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL CASE - + 85 WHEN 61 / - 67 * 46 * + 15 THEN 95 WHEN - COUNT ( * ) + - 29 * + - 65 THEN + - 57 END AS col0
----
NULL

query II rowsort
SELECT 0 AS col1, - 14 - 43
----
0
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9703
SELECT ALL 12 - - ( - 0 ) + - 26 DIV 92 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL 12 - - ( - 0 ) + - 26 / 92 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT - COUNT( * ) * + - 84
----
84

skipif mysql # not compatible
query I rowsort label-9704
SELECT - COUNT ( * ) * + - 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT ALL + COALESCE ( 71, COUNT( * ) )
----
71

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL + COALESCE ( 71, COUNT ( * ) )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9706
SELECT + 15, 24 * - CAST( NULL AS SIGNED ) + 11 AS col2
----
15
NULL

skipif mysql # not compatible
query II rowsort label-9706
SELECT + 15, 24 * - CAST ( NULL AS INTEGER ) + 11 AS col2
----
15
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9707
SELECT - MAX( ALL 34 ) * 34 + + + ( - - ( MIN( 70 ) ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT - MAX ( ALL 34 ) * 34 + + + ( - - ( MIN ( 70 ) ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9708
SELECT - 49 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-9708
SELECT - 49 / - 95
----
0

query I rowsort
SELECT ALL - - 2 * - 36 AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9710
SELECT ALL CAST( 51 AS DECIMAL ) * 44 + - + 39 - + COUNT( * ) + - 40 - - 87 + + 55 + - - 85 - COALESCE ( - NULLIF ( - 23, - 63 ), - COUNT( * ) - 98 * 71 ) * - + 72 * + NULLIF ( MAX( + + CAST( NULL AS SIGNED ) ), - 70 ) + + 99 * COUNT( * ) / - 78 * 49 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL CAST ( 51 AS REAL ) * 44 + - + 39 - + COUNT ( * ) + - 40 - - 87 + + 55 + - - 85 - COALESCE ( - NULLIF ( - 23, - 63 ), - COUNT ( * ) - 98 * 71 ) * - + 72 * + NULLIF ( MAX ( + + CAST ( NULL AS INTEGER ) ), - 70 ) + + 99 * COUNT ( * ) / - 78 * 49 col0
----
NULL

query II rowsort
SELECT + 16 AS col0, - 51
----
16
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9712
SELECT ALL + 82, COUNT( * ) * + 59 AS col2
----
82
59

skipif mysql # not compatible
query II rowsort label-9712
SELECT ALL + 82, COUNT ( * ) * + 59 AS col2
----
82
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9713
SELECT DISTINCT + + MAX( ALL + 76 ) col1, - 33 + + + 37
----
76
4

skipif mysql # not compatible
query II rowsort label-9713
SELECT DISTINCT + + MAX ( ALL + 76 ) col1, - 33 + + + 37
----
76
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT - 29 + + COUNT( * ) + MAX( DISTINCT 77 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-9714
SELECT - 29 + + COUNT ( * ) + MAX ( DISTINCT 77 ) AS col2
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-9715
SELECT ALL + 31 AS col0, 32 DIV ( + 95 ) AS col1
----
31
0

skipif mysql # not compatible
query II rowsort label-9715
SELECT ALL + 31 AS col0, 32 / ( + 95 ) AS col1
----
31
0

query I rowsort
SELECT + - ( - + 7 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9717
SELECT - - COUNT( * ) / 7 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT - - COUNT ( * ) / 7 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9718
SELECT ALL + - 21 AS col1, 53 * COUNT( * ) AS col2
----
-21
53

skipif mysql # not compatible
query II rowsort label-9718
SELECT ALL + - 21 AS col1, 53 * COUNT ( * ) AS col2
----
-21
53

query I rowsort
SELECT - 90 * - + CASE + 78 WHEN - AVG ( + + ( 37 ) ) THEN NULL WHEN + 87 THEN 43 END AS col2
----
NULL

query II rowsort
SELECT 27, - 97 AS col2
----
27
-97

query I rowsort
SELECT + - COALESCE ( + 81, 60 * - 26 + 53 ) AS col2
----
-81

query I rowsort
SELECT + 78 - - + COALESCE ( - 80, + 93 + - 99 ) AS col1
----
-2

query I rowsort
SELECT ALL + 48 * - 0 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9724
SELECT 43 DIV NULLIF ( - ( - - 56 ), + SUM( + 72 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9724
SELECT 43 / NULLIF ( - ( - - 56 ), + SUM ( + 72 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9725
SELECT ALL + CAST( NULL AS SIGNED ) + 65 + + MIN( ALL 54 ) * - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL + CAST ( NULL AS INTEGER ) + 65 + + MIN ( ALL 54 ) * - 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT + COUNT( * ) - + + 29
----
-28

skipif mysql # not compatible
query I rowsort label-9726
SELECT + COUNT ( * ) - + + 29
----
-28

query I rowsort
SELECT DISTINCT + + 84 * + 67
----
5628

query I rowsort
SELECT ALL - 45 + - - ( - 86 )
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ALL - 81 + - COUNT( - 44 )
----
-82

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL - 81 + - COUNT ( - 44 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT ALL 32 + + + MAX( 16 ) + + 78 AS col1
----
126

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL 32 + + + MAX ( 16 ) + + 78 AS col1
----
126

query I rowsort
SELECT 45 * - 96
----
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT 16 + COUNT( - 49 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-9732
SELECT 16 + COUNT ( - 49 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT ALL - ( COUNT( * ) ) + 41 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL - ( COUNT ( * ) ) + 41 AS col0
----
40

query I rowsort
SELECT - 19 * ( + - 66 ) + - + 13 + - 54
----
1187

query II rowsort
SELECT ALL 72 + + - 1 AS col1, + 8 AS col0
----
71
8

query I rowsort
SELECT ALL 24 * + 27 AS col0
----
648

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9737
SELECT 70 + - + ( + 3 ) + - + CAST( NULL AS DECIMAL ) + + 31 + COUNT( * ) + 72 * + CASE - - COUNT( * ) WHEN - 69 * + - 39 + 27 THEN NULL WHEN 92 * + 28 THEN NULL ELSE - 34 * - - 45 END + + 60 * - + 76, + 13 AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-9737
SELECT 70 + - + ( + 3 ) + - + CAST ( NULL AS REAL ) + + 31 + COUNT ( * ) + 72 * + CASE - - COUNT ( * ) WHEN - 69 * + - 39 + 27 THEN NULL WHEN 92 * + 28 THEN NULL ELSE - 34 * - - 45 END + + 60 * - + 76, + 13 AS col2
----
NULL
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9738
SELECT DISTINCT 71 DIV SUM( + 30 ) AS col1, - 67 * 74
----
2
-4958

skipif mysql # not compatible
query II rowsort label-9738
SELECT DISTINCT 71 / SUM ( + 30 ) AS col1, - 67 * 74
----
2
-4958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9739
SELECT ( 33 ) + NULLIF ( - 51, 86 - + ( + 85 ) * - - 92 ) + 4 + - CASE - - 51 WHEN - 49 * + 92 THEN NULL ELSE CAST( + 22 AS SIGNED ) END col1
----
-36

skipif mysql # not compatible
query I rowsort label-9739
SELECT ( 33 ) + NULLIF ( - 51, 86 - + ( + 85 ) * - - 92 ) + 4 + - CASE - - 51 WHEN - 49 * + 92 THEN NULL ELSE CAST ( + 22 AS INTEGER ) END col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9740
SELECT COUNT( ALL + 36 ) DIV + + 97
----
0

skipif mysql # not compatible
query I rowsort label-9740
SELECT COUNT ( ALL + 36 ) / + + 97
----
0

query I rowsort
SELECT ( 34 ) * 98 AS col2
----
3332

query I rowsort
SELECT 60 + - 30 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT SUM( ALL - - 49 ) + + 18 * + + 99 + + - COALESCE ( 37, - 32, - - ( 84 ) * + + 69, - 35 * - NULLIF ( ( + 73 ), + - 37 * - + COUNT( * ) ) ) AS col2
----
1794

skipif mysql # not compatible
query I rowsort label-9743
SELECT SUM ( ALL - - 49 ) + + 18 * + + 99 + + - COALESCE ( 37, - 32, - - ( 84 ) * + + 69, - 35 * - NULLIF ( ( + 73 ), + - 37 * - + COUNT ( * ) ) ) AS col2
----
1794

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9744
SELECT 17 / - CASE - CAST( NULL AS DECIMAL ) WHEN - MIN( ALL + - 70 ) * - 33 - - 72 * - + 55 THEN + 99 * + 23 END * COUNT( * ) - + ( 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9744
SELECT 17 / - CASE - CAST ( NULL AS REAL ) WHEN - MIN ( ALL + - 70 ) * - 33 - - 72 * - + 55 THEN + 99 * + 23 END * COUNT ( * ) - + ( 88 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9745
SELECT ALL - 42 * 42 + CAST( NULL AS SIGNED ) + + + COUNT( * ) + - 88 AS col1, COUNT( * ) - - - 66 DIV + COUNT( * ) AS col0
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-9745
SELECT ALL - 42 * 42 + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + - 88 AS col1, COUNT ( * ) - - - 66 / + COUNT ( * ) AS col0
----
NULL
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL COUNT( * ) * + + 14 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL COUNT ( * ) * + + 14 AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9747
SELECT + CASE - + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) * 10 + CASE - - 96 WHEN + 17 + - 56 THEN - 43 END * 8 DIV - COUNT( * ) THEN + 67 + - - COUNT( 96 ) WHEN + + 32 THEN + - 88 ELSE NULL END * - AVG ( DISTINCT 89 ), COALESCE ( 96, + 31 + 94 + - + 46 DIV + COUNT( ALL - 57 ), + 38 ) * - 64 + - - 20 AS col2
----
NULL
-6124

skipif mysql # not compatible
query II rowsort label-9747
SELECT + CASE - + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) * 10 + CASE - - 96 WHEN + 17 + - 56 THEN - 43 END * 8 / - COUNT ( * ) THEN + 67 + - - COUNT ( 96 ) WHEN + + 32 THEN + - 88 ELSE NULL END * - AVG ( DISTINCT 89 ), COALESCE ( 96, + 31 + 94 + - + 46 / + COUNT ( ALL - 57 ), + 38 ) * - 64 + - - 20 AS col2
----
NULL
-6124

query I rowsort
SELECT ALL - + COALESCE ( - + 55, - 83 ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9749
SELECT ALL + 4 DIV + 24
----
0

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL + 4 / + 24
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9750
SELECT 9 * - 32 col1, COALESCE ( - 11, + - SUM( + + CAST( - 82 AS SIGNED ) ) ) col1
----
-288
-11

skipif mysql # not compatible
query II rowsort label-9750
SELECT 9 * - 32 col1, COALESCE ( - 11, + - SUM ( + + CAST ( - 82 AS INTEGER ) ) ) col1
----
-288
-11

query II rowsort
SELECT - NULLIF ( 17, - + CASE - + 12 WHEN + 72 + - ( + 77 ) THEN 48 WHEN + 14 THEN NULL ELSE NULL END - - 24 + + 49 - - + ( + 35 ) * - + 90 * + 94 ) * - 81 * - ( 69 ) + 82 - 51 - 73 * 8 * 22 AS col2, - 42
----
-107830
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT ALL - MAX( DISTINCT 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL - MAX ( DISTINCT 25 )
----
-25

query I rowsort
SELECT + + NULLIF ( + + 38, - 95 * - 60 + - 59 - 90 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9754
SELECT DISTINCT 76 + - CAST( NULL AS SIGNED ) + COUNT( * ) * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT 76 + - CAST ( NULL AS INTEGER ) + COUNT ( * ) * 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9755
SELECT ALL + - CASE + 55 WHEN + CAST( + + CAST( - 93 AS SIGNED ) AS SIGNED ) * 15 THEN - 94 END + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL + - CASE + 55 WHEN + CAST ( + + CAST ( - 93 AS INTEGER ) AS INTEGER ) * 15 THEN - 94 END + 7 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9756
SELECT DISTINCT - 94 + + + 13 DIV + 6
----
-92

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT - 94 + + + 13 / + 6
----
-92

query II rowsort
SELECT ALL + - 90 + - + 23 AS col1, + 54 * + 14 - 15 + - + 96
----
-113
645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9758
SELECT 26 * - CAST( + 64 AS SIGNED )
----
-1664

skipif mysql # not compatible
query I rowsort label-9758
SELECT 26 * - CAST ( + 64 AS INTEGER )
----
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT DISTINCT - COUNT( DISTINCT + - 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT - COUNT ( DISTINCT + - 17 )
----
-1

query I rowsort
SELECT 70 + + 74
----
144

query I rowsort
SELECT 41 * + + 66
----
2706

query I rowsort
SELECT DISTINCT - 93 * + 94
----
-8742

query I rowsort
SELECT DISTINCT - 20 - - 70 col0
----
50

query I rowsort
SELECT 54 * 71 * 82 AS col2
----
314388

query I rowsort
SELECT ALL - 75 * - 74
----
5550

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT 60 DIV - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9766
SELECT 60 / - 69 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL - COUNT( * ) - - 36
----
35

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL - COUNT ( * ) - - 36
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT MAX( ALL 83 ) * + + 76
----
6308

skipif mysql # not compatible
query I rowsort label-9768
SELECT MAX ( ALL 83 ) * + + 76
----
6308

query I rowsort
SELECT DISTINCT + 30 * - - 85 AS col0
----
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT MIN( + 58 ) * - - 89 AS col0
----
5162

skipif mysql # not compatible
query I rowsort label-9770
SELECT MIN ( + 58 ) * - - 89 AS col0
----
5162

query II rowsort
SELECT 25 AS col2, 20
----
25
20

query I rowsort
SELECT 66 * + - 22
----
-1452

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT MAX( - - 19 ) * - 97
----
-1843

skipif mysql # not compatible
query I rowsort label-9773
SELECT MAX ( - - 19 ) * - 97
----
-1843

onlyif mysql # aggregate syntax: 
query II rowsort label-9774
SELECT DISTINCT COUNT( * ), - 41 * + - 37 AS col0
----
1
1517

skipif mysql # not compatible
query II rowsort label-9774
SELECT DISTINCT COUNT ( * ), - 41 * + - 37 AS col0
----
1
1517

query I rowsort
SELECT 24 * + - 41
----
-984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9776
SELECT ALL + CAST( NULL AS SIGNED ) + - + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL + CAST ( NULL AS INTEGER ) + - + 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT - 50 + - MIN( DISTINCT 38 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-9777
SELECT - 50 + - MIN ( DISTINCT 38 ) AS col0
----
-88

query II rowsort
SELECT + + 88 AS col1, 74
----
88
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9779
SELECT 4 + COUNT( * ) + COUNT( * ) * + 43 * 99 DIV 83 DIV + ( + + 19 )
----
7

skipif mysql # not compatible
query I rowsort label-9779
SELECT 4 + COUNT ( * ) + COUNT ( * ) * + 43 * 99 / 83 / + ( + + 19 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9780
SELECT - SUM( ALL + 28 ) DIV + - 6 - + 2 + 90 * - 62 * - - COALESCE ( + CAST( + 96 AS SIGNED ), - SUM( - 41 ) )
----
-535678

skipif mysql # not compatible
query I rowsort label-9780
SELECT - SUM ( ALL + 28 ) / + - 6 - + 2 + 90 * - 62 * - - COALESCE ( + CAST ( + 96 AS INTEGER ), - SUM ( - 41 ) )
----
-535678

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9781
SELECT ( + - 72 ) DIV + 65 - - - 76 * + CAST( - + 67 AS SIGNED )
----
5091

skipif mysql # not compatible
query I rowsort label-9781
SELECT ( + - 72 ) / + 65 - - - 76 * + CAST ( - + 67 AS INTEGER )
----
5091

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT + COUNT( * ) * + - 78 + + 50 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-9782
SELECT + COUNT ( * ) * + - 78 + + 50 AS col0
----
-28

query II rowsort
SELECT 56, - 13 + - 8 + + 57 AS col2
----
56
36

query II rowsort
SELECT 81, 13 * 57 AS col0
----
81
741

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL + 31 * - ( - - COUNT( * ) ) + 5
----
-26

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL + 31 * - ( - - COUNT ( * ) ) + 5
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9786
SELECT DISTINCT + + 27 * + + NULLIF ( - ( 51 ), + 20 * + 0 + - 64 ) + CAST( NULL AS SIGNED ) - + COUNT( * ) * - 40 + 28 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT + + 27 * + + NULLIF ( - ( 51 ), + 20 * + 0 + - 64 ) + CAST ( NULL AS INTEGER ) - + COUNT ( * ) * - 40 + 28 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT ALL - 23 * - + MIN( - + 75 ) + - 76 AS col2
----
-1801

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL - 23 * - + MIN ( - + 75 ) + - 76 AS col2
----
-1801

onlyif mysql # DIV for integer division: 
query II rowsort label-9788
SELECT + 9 DIV + 50 * 32, + 48 AS col2
----
0
48

skipif mysql # not compatible
query II rowsort label-9788
SELECT + 9 / + 50 * 32, + 48 AS col2
----
0
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT + + 76 + + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-9789
SELECT + + 76 + + COUNT ( * )
----
77

query I rowsort
SELECT + - 48 - 86
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT + + MIN( DISTINCT 87 )
----
87

skipif mysql # not compatible
query I rowsort label-9791
SELECT + + MIN ( DISTINCT 87 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9792
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) + + 18 + + + 9 AS col1, ( - 15 ) AS col2
----
28
-15

skipif mysql # not compatible
query II rowsort label-9792
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) + + 18 + + + 9 AS col1, ( - 15 ) AS col2
----
28
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT COUNT( 81 )
----
1

skipif mysql # not compatible
query I rowsort label-9793
SELECT COUNT ( 81 )
----
1

query I rowsort
SELECT ALL + 6 * - 80 AS col0
----
-480

query I rowsort
SELECT + 55 - COALESCE ( - 37, + 82 ) AS col1
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9796
SELECT ALL 95 * + 20, + CAST( NULL AS DECIMAL ) AS col0
----
1900
NULL

skipif mysql # not compatible
query II rowsort label-9796
SELECT ALL 95 * + 20, + CAST ( NULL AS REAL ) AS col0
----
1900
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT + 19 + - COUNT( * ) * 0
----
19

skipif mysql # not compatible
query I rowsort label-9797
SELECT + 19 + - COUNT ( * ) * 0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9798
SELECT - 59 * ( - 27 ) DIV COUNT( DISTINCT 68 ) * - + 70 + - + 7 col1
----
-111517

skipif mysql # not compatible
query I rowsort label-9798
SELECT - 59 * ( - 27 ) / COUNT ( DISTINCT 68 ) * - + 70 + - + 7 col1
----
-111517

query I rowsort
SELECT + 71 + + + 84 AS col2
----
155

query I rowsort
SELECT ALL CASE - 51 WHEN - + 8 * + 45 THEN NULL WHEN - 0 + + 94 + + 63 / + 36 * 63 * + - 82 THEN NULL ELSE + 14 END AS col2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9801
SELECT - COALESCE ( 69, + - 71 ) + + 69 + 71 DIV COUNT( * ) + - COALESCE ( - + 85, 19, + - ( - 99 ) + + ( 50 ) * - - 20 ) + - + 70 - + 40 * + 31 + NULLIF ( 93, - - COUNT( * ) DIV - 92 ) * + COUNT( * ) + + 90 DIV + - 91, 10 AS col1
----
-1061
10

skipif mysql # not compatible
query II rowsort label-9801
SELECT - COALESCE ( 69, + - 71 ) + + 69 + 71 / COUNT ( * ) + - COALESCE ( - + 85, 19, + - ( - 99 ) + + ( 50 ) * - - 20 ) + - + 70 - + 40 * + 31 + NULLIF ( 93, - - COUNT ( * ) / - 92 ) * + COUNT ( * ) + + 90 / + - 91, 10 AS col1
----
-1061
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT - ( COUNT( * ) ) * 94 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-9802
SELECT - ( COUNT ( * ) ) * 94 AS col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9803
SELECT - 23 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT - 23 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 44 * + 41 AS col2
----
-1804

query I rowsort
SELECT - 41 + - 99
----
-140

query I rowsort
SELECT ALL + 81 + 97 + - 75 - - 14
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9807
SELECT - CAST( NULL AS SIGNED ) + + + 89, 51 AS col0
----
NULL
51

skipif mysql # not compatible
query II rowsort label-9807
SELECT - CAST ( NULL AS INTEGER ) + + + 89, 51 AS col0
----
NULL
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9808
SELECT ALL + 72 * + 17 AS col0, - COUNT( * ) AS col0
----
1224
-1

skipif mysql # not compatible
query II rowsort label-9808
SELECT ALL + 72 * + 17 AS col0, - COUNT ( * ) AS col0
----
1224
-1

query I rowsort
SELECT DISTINCT + - 66 + + - 91 AS col1
----
-157

query I rowsort
SELECT - NULLIF ( 28, + 32 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT ALL + NULLIF ( COUNT( * ), 5 - + 96 ) + + 79
----
80

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL + NULLIF ( COUNT ( * ), 5 - + 96 ) + + 79
----
80

query I rowsort
SELECT + - 15 + + ( + + 67 )
----
52

query I rowsort
SELECT DISTINCT - ( - 69 ) + ( + 60 ) + 27 AS col0
----
156

query I rowsort
SELECT - + 46 * 93 * + 6 AS col2
----
-25668

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT + + 40 + MIN( DISTINCT - 27 )
----
13

skipif mysql # not compatible
query I rowsort label-9815
SELECT + + 40 + MIN ( DISTINCT - 27 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL 10 + + COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL 10 + + COUNT ( * ) AS col1
----
11

query I rowsort
SELECT ALL 14 + 54
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9818
SELECT ALL + COUNT( * ) / 51 * - 78 * + + 66 + CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL + COUNT ( * ) / 51 * - 78 * + + 66 + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + - NULLIF ( - + 16, + + 76 ) AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9820
SELECT - COALESCE ( - - 29, - 73 ) DIV + + 62 + + - 43 * 30
----
-1290

skipif mysql # not compatible
query I rowsort label-9820
SELECT - COALESCE ( - - 29, - 73 ) / + + 62 + + - 43 * 30
----
-1290

query I rowsort
SELECT + - 14 * 58 * + + 86 + 18 col1
----
-69814

query I rowsort
SELECT DISTINCT - 75 * + 57 + - - 36
----
-4239

query I rowsort
SELECT + 37 * - 24
----
-888

query I rowsort
SELECT 38 * 27 + + 89
----
1115

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT DISTINCT - COALESCE ( + COUNT( * ), - ( - 8 ) + + 7 * + 94 ) * - + 27
----
27

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT - COALESCE ( + COUNT ( * ), - ( - 8 ) + + 7 * + 94 ) * - + 27
----
27

query I rowsort
SELECT ALL + 47 * 35 * - 98
----
-161210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9827
SELECT + ( COUNT( * ) ) + + - 99 * - 59 * + 82 + - + MIN( - 53 ) + 52 + 92 DIV 77 + + 53 AS col2
----
479122

skipif mysql # not compatible
query I rowsort label-9827
SELECT + ( COUNT ( * ) ) + + - 99 * - 59 * + 82 + - + MIN ( - 53 ) + 52 + 92 / 77 + + 53 AS col2
----
479122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9828
SELECT + MAX( + ( - 68 ) ) DIV + + CAST( ( 86 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9828
SELECT + MAX ( + ( - 68 ) ) / + + CAST ( ( 86 ) AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9829
SELECT ALL 1 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL 1 / - 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT + COUNT( * ) + + 89 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9830
SELECT + COUNT ( * ) + + 89 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT + MIN( - + 37 ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-9831
SELECT + MIN ( - + 37 ) col1
----
-37

query I rowsort
SELECT + 78 * + - 26
----
-2028

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT + COALESCE ( - MAX( + 38 ), - - 87 + 71 ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-9833
SELECT + COALESCE ( - MAX ( + 38 ), - - 87 + 71 ) col0
----
-38

query I rowsort
SELECT + ( - 27 ) * 33 + - 90
----
-981

query I rowsort
SELECT ALL 42 * + + 56
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT + 48 * + COUNT( 73 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9836
SELECT + 48 * + COUNT ( 73 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT CASE + 59 WHEN - + 19 + 36 * COUNT( * ) THEN NULL WHEN + - COUNT( DISTINCT + - 9 ) THEN - AVG ( DISTINCT - 73 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT CASE + 59 WHEN - + 19 + 36 * COUNT ( * ) THEN NULL WHEN + - COUNT ( DISTINCT + - 9 ) THEN - AVG ( DISTINCT - 73 ) END
----
NULL

query I rowsort
SELECT ALL - 29 * - 18 + 46 AS col0
----
568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT - CAST( - + 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-9839
SELECT - CAST ( - + 19 AS INTEGER )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT + COUNT( * ) * + MIN( DISTINCT 15 )
----
15

skipif mysql # not compatible
query I rowsort label-9840
SELECT + COUNT ( * ) * + MIN ( DISTINCT 15 )
----
15

query I rowsort
SELECT ALL ( 7 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL + COUNT( * ) * - 67 + - 37 col0
----
-104

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL + COUNT ( * ) * - 67 + - 37 col0
----
-104

query I rowsort
SELECT ALL 68 * - - ( 48 ) * - + 42 + + 30 * 74
----
-134868

query I rowsort
SELECT + - 25 - 63
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9845
SELECT + 46 DIV + + ( - - 71 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9845
SELECT + 46 / + + ( - - 71 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9846
SELECT ALL 15 + CAST( - MAX( - ( + 16 ) ) AS SIGNED ) + + - COALESCE ( - 15, 24 ) * - - COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL 15 + CAST ( - MAX ( - ( + 16 ) ) AS INTEGER ) + + - COALESCE ( - 15, 24 ) * - - COUNT ( * ) AS col1
----
46

query I rowsort
SELECT - 55 * + + 94 AS col2
----
-5170

query II rowsort
SELECT ALL NULLIF ( 59, 44 ), 12 AS col1
----
59
12

onlyif mysql # DIV for integer division: 
query II rowsort label-9849
SELECT DISTINCT 42 DIV ( - 9 ) AS col0, 91 * ( - 24 ) col1
----
-4
-2184

skipif mysql # not compatible
query II rowsort label-9849
SELECT DISTINCT 42 / ( - 9 ) AS col0, 91 * ( - 24 ) col1
----
-4
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL - 29 - - ( + + 66 ) * + + 78 * 83 + - ( - 71 ) + + 2 + SUM( DISTINCT - + 66 ) - - 51 * 93 * 76 * 59 AS col2
----
21694874

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL - 29 - - ( + + 66 ) * + + 78 * 83 + - ( - 71 ) + + 2 + SUM ( DISTINCT - + 66 ) - - 51 * 93 * 76 * 59 AS col2
----
21694874

query I rowsort
SELECT + ( - + 11 ) + - - ( - 33 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9852
SELECT - - CAST( NULL AS SIGNED ) AS col1, - ( + 19 ) * - 40
----
NULL
760

skipif mysql # not compatible
query II rowsort label-9852
SELECT - - CAST ( NULL AS INTEGER ) AS col1, - ( + 19 ) * - 40
----
NULL
760

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT + 62 + - + COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9853
SELECT + 62 + - + COUNT ( * ) AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9854
SELECT 68 DIV 51 * + 33 - + 0 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9854
SELECT 68 / 51 * + 33 - + 0 AS col2
----
33

query I rowsort
SELECT COALESCE ( + 12, - 1 + + + 58 * - + 51 + - + 71 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9856
SELECT - 79 DIV + + 69 + + 53 + - COUNT( * ) * + - 74 AS col1
----
126

skipif mysql # not compatible
query I rowsort label-9856
SELECT - 79 / + + 69 + + 53 + - COUNT ( * ) * + - 74 AS col1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT DISTINCT - - 54 * - - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT - - 54 * - - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-9858
SELECT + 42 AS col2, - COUNT( - 88 ) AS col2
----
42
-1

skipif mysql # not compatible
query II rowsort label-9858
SELECT + 42 AS col2, - COUNT ( - 88 ) AS col2
----
42
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT DISTINCT 61 * - - 71 * + COUNT( * ) AS col2
----
4331

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT 61 * - - 71 * + COUNT ( * ) AS col2
----
4331

onlyif mysql # DIV for integer division: 
query I rowsort label-9860
SELECT 44 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-9860
SELECT 44 / + 50
----
0

query I rowsort
SELECT 80 * - 39
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT + COUNT( * ) * - 45 - - 99 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9862
SELECT + COUNT ( * ) * - 45 - - 99 AS col0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT DISTINCT + 71 * + CAST( 73 AS SIGNED ) AS col1
----
5183

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT + 71 * + CAST ( 73 AS INTEGER ) AS col1
----
5183

query II rowsort
SELECT + 60 AS col0, + 72 + 45 AS col0
----
60
117

query I rowsort
SELECT 70 * 84
----
5880

query I rowsort
SELECT ALL 60 * - ( - + 27 )
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT 85 - + ( COUNT( * ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9867
SELECT 85 - + ( COUNT ( * ) ) AS col2
----
84

query II rowsort
SELECT ALL + 54 * - 77 col0, ( 2 ) AS col1
----
-4158
2

query I rowsort
SELECT DISTINCT - 99 + 7 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT 5 * - SUM( 54 )
----
-270

skipif mysql # not compatible
query I rowsort label-9870
SELECT 5 * - SUM ( 54 )
----
-270

onlyif mysql # DIV for integer division: 
query II rowsort label-9871
SELECT 78 AS col1, + 79 DIV - 9 AS col0
----
78
-8

skipif mysql # not compatible
query II rowsort label-9871
SELECT 78 AS col1, + 79 / - 9 AS col0
----
78
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT COUNT( ALL + 98 ) + 45 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9872
SELECT COUNT ( ALL + 98 ) + 45 AS col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9873
SELECT CAST( NULL AS SIGNED ) - + 71 + - 72 * 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9873
SELECT CAST ( NULL AS INTEGER ) - + 71 + - 72 * 51 AS col0
----
NULL

query II rowsort
SELECT ALL 87 AS col1, 54 col1
----
87
54

query I rowsort
SELECT - 86 - - 35 + + + 50 * ( 60 )
----
2949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9876
SELECT ALL + MAX( + COALESCE ( + 94, ( - 99 ) ) ) + + ( + COALESCE ( + 83, - - 7 - + - COALESCE ( - 46, 88 * 16 + 74 * + CAST( 12 AS SIGNED ) - 73 - - COALESCE ( CAST( + - 55 AS SIGNED ), - COUNT( * ) ) + + 74 * + - 45 DIV + 78 - - NULLIF ( - 72, COUNT( * ) * + COUNT( * ) + CAST( + CASE - + 30 WHEN + 56 THEN NULL ELSE - - COUNT( * ) END AS SIGNED ) + + 70 * + 61 ) * - - 53 ) + + 73 ) ) col2
----
177

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL + MAX ( + COALESCE ( + 94, ( - 99 ) ) ) + + ( + COALESCE ( + 83, - - 7 - + - COALESCE ( - 46, 88 * 16 + 74 * + CAST ( 12 AS INTEGER ) - 73 - - COALESCE ( CAST ( + - 55 AS INTEGER ), - COUNT ( * ) ) + + 74 * + - 45 / + 78 - - NULLIF ( - 72, COUNT ( * ) * + COUNT ( * ) + CAST ( + CASE - + 30 WHEN + 56 THEN NULL ELSE - - COUNT ( * ) END AS INTEGER ) + + 70 * + 61 ) * - - 53 ) + + 73 ) ) col2
----
177

query I rowsort
SELECT + 52 + - + 36
----
16

query I rowsort
SELECT ALL + 2 * 71 * - - 50 AS col0
----
7100

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT DISTINCT 31 - MIN( - 45 ) - ( - + 29 )
----
105

skipif mysql # not compatible
query I rowsort label-9879
SELECT DISTINCT 31 - MIN ( - 45 ) - ( - + 29 )
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9880
SELECT + 79 + 49 * - + 40 * 11 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9880
SELECT + 79 + 49 * - + 40 * 11 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 19 * - 56 AS col0, + 81 + + + 30
----
1064
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT 56 * - COUNT( * ) + + 59 - - 58
----
61

skipif mysql # not compatible
query I rowsort label-9882
SELECT 56 * - COUNT ( * ) + + 59 - - 58
----
61

query II rowsort
SELECT ALL 65 AS col2, 81
----
65
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT 48 + + + MAX( ALL - + 17 )
----
31

skipif mysql # not compatible
query I rowsort label-9884
SELECT 48 + + + MAX ( ALL - + 17 )
----
31

query II rowsort
SELECT 79 * 59, 2 AS col2
----
4661
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9886
SELECT DISTINCT + 75 DIV 13 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT + 75 / 13 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT ALL MAX( 9 )
----
9

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL MAX ( 9 )
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9888
SELECT 27 DIV - 94 + - 15 + COALESCE ( 40, ( - 70 ) * + + CAST( NULL AS SIGNED ) ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-9888
SELECT 27 / - 94 + - 15 + COALESCE ( 40, ( - 70 ) * + + CAST ( NULL AS INTEGER ) ) AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9889
SELECT 58 + CAST( + 91 AS SIGNED ) + + + 36 AS col2, 84
----
185
84

skipif mysql # not compatible
query II rowsort label-9889
SELECT 58 + CAST ( + 91 AS INTEGER ) + + + 36 AS col2, 84
----
185
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT 73 * + + MIN( + 99 )
----
7227

skipif mysql # not compatible
query I rowsort label-9890
SELECT 73 * + + MIN ( + 99 )
----
7227

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT COUNT( 18 )
----
1

skipif mysql # not compatible
query I rowsort label-9891
SELECT COUNT ( 18 )
----
1

query I rowsort
SELECT ALL - NULLIF ( 37, 42 ) AS col1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9893
SELECT ALL 73 * - 6 + + 74 DIV + 81 * 98 col2
----
-438

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL 73 * - 6 + + 74 / + 81 * 98 col2
----
-438

onlyif mysql # aggregate syntax: 
query II rowsort label-9894
SELECT + 98 * - 35 * 21 * - + SUM( + 61 ) + ( MAX( + 86 ) ) - - - 23 + 75, 71 * - 76 * MIN( ALL 85 ) AS col1
----
4393968
-458660

skipif mysql # not compatible
query II rowsort label-9894
SELECT + 98 * - 35 * 21 * - + SUM ( + 61 ) + ( MAX ( + 86 ) ) - - - 23 + 75, 71 * - 76 * MIN ( ALL 85 ) AS col1
----
4393968
-458660

query II rowsort
SELECT DISTINCT - ( - - 84 ), 44 AS col1
----
-84
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9896
SELECT ALL - 85 + + 64 DIV - 72 + 7 + ( + - 85 ) + + 36 + COUNT( * ) * + CASE + 70 WHEN - COUNT( * ) * + + CAST( NULL AS SIGNED ) + + + 33 + + 27 THEN - ( + ( 64 ) ) ELSE - COUNT( * ) + + 82 + - 25 + - 68 END AS col0
----
-139

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL - 85 + + 64 / - 72 + 7 + ( + - 85 ) + + 36 + COUNT ( * ) * + CASE + 70 WHEN - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + + + 33 + + 27 THEN - ( + ( 64 ) ) ELSE - COUNT ( * ) + + 82 + - 25 + - 68 END AS col0
----
-139

query I rowsort
SELECT 95 + - 28 col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT ALL - 13 + + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL - 13 + + COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9899
SELECT COUNT( * ) + - COUNT( DISTINCT + ( - - 16 ) ) + + + CASE 25 WHEN - 3 * - 68 THEN NULL ELSE + 97 + - ( - - 14 ) END DIV + + 57 * + COUNT( - 72 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9899
SELECT COUNT ( * ) + - COUNT ( DISTINCT + ( - - 16 ) ) + + + CASE 25 WHEN - 3 * - 68 THEN NULL ELSE + 97 + - ( - - 14 ) END / + + 57 * + COUNT ( - 72 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9900
SELECT DISTINCT + 40 DIV + 33
----
1

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT + 40 / + 33
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT 13 * - + 88 * 72 + - COUNT( * ) AS col1
----
-82369

skipif mysql # not compatible
query I rowsort label-9901
SELECT 13 * - + 88 * 72 + - COUNT ( * ) AS col1
----
-82369

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL + COUNT( * ) * 26
----
26

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL + COUNT ( * ) * 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT - COUNT( + 61 ) * + 88 - - - 0 + - 21 + - 89 AS col2
----
-198

skipif mysql # not compatible
query I rowsort label-9903
SELECT - COUNT ( + 61 ) * + 88 - - - 0 + - 21 + - 89 AS col2
----
-198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9904
SELECT - - CASE + + COUNT( * ) WHEN - + 85 THEN NULL WHEN + 30 * + + 57 + + + CAST( NULL AS SIGNED ) THEN + COUNT( * ) ELSE 24 + + 70 END AS col0
----
94

skipif mysql # not compatible
query I rowsort label-9904
SELECT - - CASE + + COUNT ( * ) WHEN - + 85 THEN NULL WHEN + 30 * + + 57 + + + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) ELSE 24 + + 70 END AS col0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9905
SELECT - SUM( + 33 ) AS col0, + 80
----
-33
80

skipif mysql # not compatible
query II rowsort label-9905
SELECT - SUM ( + 33 ) AS col0, + 80
----
-33
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9906
SELECT - - 42 DIV 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9906
SELECT - - 42 / 86 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT ALL - COALESCE ( + 81, CAST( + + 23 AS SIGNED ) * + 20 ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL - COALESCE ( + 81, CAST ( + + 23 AS INTEGER ) * + 20 ) col2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9908
SELECT ALL + + 4 - - SUM( DISTINCT 23 ) - + 60 * + 97, 19 AS col0
----
-5793
19

skipif mysql # not compatible
query II rowsort label-9908
SELECT ALL + + 4 - - SUM ( DISTINCT 23 ) - + 60 * + 97, 19 AS col0
----
-5793
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9909
SELECT - 3 - - + CASE - 46 WHEN 47 + - 76 + 12 - + NULLIF ( + 40, + + 55 + + + 22 ) THEN + 87 + - 24 ELSE + 28 DIV - 24 * + - COUNT( * ) - - MIN( - 0 ) END
----
-2

skipif mysql # not compatible
query I rowsort label-9909
SELECT - 3 - - + CASE - 46 WHEN 47 + - 76 + 12 - + NULLIF ( + 40, + + 55 + + + 22 ) THEN + 87 + - 24 ELSE + 28 / - 24 * + - COUNT ( * ) - - MIN ( - 0 ) END
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9910
SELECT + 73 * - 5, - COUNT( * ) col1
----
-365
-1

skipif mysql # not compatible
query II rowsort label-9910
SELECT + 73 * - 5, - COUNT ( * ) col1
----
-365
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9911
SELECT DISTINCT CASE - 4 WHEN - + 14 - + 94 THEN NULL WHEN + 29 * + 53 THEN + CASE - 71 WHEN 72 THEN - MIN( + + 95 ) * + 52 * 22 * + 88 + + + CASE COUNT( * ) WHEN - 44 THEN + 22 / + 71 END - + 33 - + + 33 ELSE NULL END * COUNT( * ) * + - 53 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + NULLIF ( + 61, COUNT( * ) * 87 ) END AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT CASE - 4 WHEN - + 14 - + 94 THEN NULL WHEN + 29 * + 53 THEN + CASE - 71 WHEN 72 THEN - MIN ( + + 95 ) * + 52 * 22 * + 88 + + + CASE COUNT ( * ) WHEN - 44 THEN + 22 / + 71 END - + 33 - + + 33 ELSE NULL END * COUNT ( * ) * + - 53 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + NULLIF ( + 61, COUNT ( * ) * 87 ) END AS col0
----
61

query I rowsort
SELECT + + ( + 75 ) * 80 + - 57
----
5943

onlyif mysql # aggregate syntax: 
query II rowsort label-9913
SELECT + - 40 * 74 * - - 66 col1, MAX( ALL + 97 )
----
-195360
97

skipif mysql # not compatible
query II rowsort label-9913
SELECT + - 40 * 74 * - - 66 col1, MAX ( ALL + 97 )
----
-195360
97

query I rowsort
SELECT ALL NULLIF ( 80, + 23 - ( 5 ) )
----
80

query II rowsort
SELECT ALL - 96 * - 37 AS col0, 74 + - CASE + + AVG ( ALL + + 79 ) WHEN 60 THEN NULL WHEN - 70 THEN + + 18 ELSE NULL END - + 36
----
3552
NULL

query I rowsort
SELECT ALL 49 * - - ( - 99 ) AS col1
----
-4851

onlyif mysql # aggregate syntax: 
query II rowsort label-9917
SELECT - COUNT( * ), + 49 AS col0
----
-1
49

skipif mysql # not compatible
query II rowsort label-9917
SELECT - COUNT ( * ), + 49 AS col0
----
-1
49

onlyif mysql # aggregate syntax: 
query III rowsort label-9918
SELECT ALL 90 + COUNT( * ) + + + 39 AS col2, 55, 51 AS col0
----
130
55
51

skipif mysql # not compatible
query III rowsort label-9918
SELECT ALL 90 + COUNT ( * ) + + + 39 AS col2, 55, 51 AS col0
----
130
55
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT + ( - - COUNT( * ) ) * - 3
----
-3

skipif mysql # not compatible
query I rowsort label-9919
SELECT + ( - - COUNT ( * ) ) * - 3
----
-3

query I rowsort
SELECT + ( 29 ) * - 98 + - + COALESCE ( + 0, 9 ) AS col2
----
-2842

query I rowsort
SELECT ALL 75 * - + 27 + + 18 * 99
----
-243

query I rowsort
SELECT - ( 45 ) * - + 69
----
3105

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT + 6 - + - 32 * COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-9923
SELECT + 6 - + - 32 * COUNT ( * ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT + ( SUM( - - 50 ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9924
SELECT + ( SUM ( - - 50 ) ) AS col2
----
50

query I rowsort
SELECT - 88 * + 36 col1
----
-3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9926
SELECT COALESCE ( + - COALESCE ( + 89, - + 12 + 80 * - + NULLIF ( - + 61, - CAST( NULL AS SIGNED ) + + CAST( - 61 AS DECIMAL ) - + COALESCE ( 70, + MIN( ALL 46 ) ) * - COUNT( * ) ) ), + 72 )
----
-89

skipif mysql # not compatible
query I rowsort label-9926
SELECT COALESCE ( + - COALESCE ( + 89, - + 12 + 80 * - + NULLIF ( - + 61, - CAST ( NULL AS INTEGER ) + + CAST ( - 61 AS REAL ) - + COALESCE ( 70, + MIN ( ALL 46 ) ) * - COUNT ( * ) ) ), + 72 )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-9927
SELECT ALL COUNT( * ) * + 75 * + 64 AS col2, + 1 AS col1
----
4800
1

skipif mysql # not compatible
query II rowsort label-9927
SELECT ALL COUNT ( * ) * + 75 * + 64 AS col2, + 1 AS col1
----
4800
1

query I rowsort
SELECT - 52 - + 76
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT DISTINCT + ( - CASE + + 30 WHEN 51 / - 53 THEN 31 ELSE - - COUNT( 29 ) END )
----
-1

skipif mysql # not compatible
query I rowsort label-9929
SELECT DISTINCT + ( - CASE + + 30 WHEN 51 / - 53 THEN 31 ELSE - - COUNT ( 29 ) END )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9930
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 49 / 65 * + 74, - MAX( DISTINCT + - 39 ) + COUNT( * ) + - 35 + - 12 + + + 53 / CAST( NULL AS SIGNED ) / + 39 / - 33 * CASE - ( + SUM( - 14 ) ) WHEN - ( 66 ) - + - 47 + COALESCE ( + 2, + - CASE - 1 WHEN 70 THEN - 73 + - 35 WHEN 67 THEN NULL END, + ( CAST( - 91 AS SIGNED ) ) ) + - ( - - ( + 49 ) ) THEN - 54 ELSE 25 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9930
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 49 / 65 * + 74, - MAX ( DISTINCT + - 39 ) + COUNT ( * ) + - 35 + - 12 + + + 53 / CAST ( NULL AS INTEGER ) / + 39 / - 33 * CASE - ( + SUM ( - 14 ) ) WHEN - ( 66 ) - + - 47 + COALESCE ( + 2, + - CASE - 1 WHEN 70 THEN - 73 + - 35 WHEN 67 THEN NULL END, + ( CAST ( - 91 AS INTEGER ) ) ) + - ( - - ( + 49 ) ) THEN - 54 ELSE 25 END
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9931
SELECT - + 13 * - COUNT( * ) DIV + 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9931
SELECT - + 13 * - COUNT ( * ) / + 70 AS col2
----
0

query I rowsort
SELECT - 61 * + 39 * 82 + + 42 + 13 + - ( 98 )
----
-195121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9933
SELECT ALL - 41 DIV + - 47 + + 84 + - - NULLIF ( - + NULLIF ( - COUNT( * ), + 43 ), + 99 * 74 + + COUNT( * ) ) * MIN( DISTINCT + 76 )
----
160

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL - 41 / + - 47 + + 84 + - - NULLIF ( - + NULLIF ( - COUNT ( * ), + 43 ), + 99 * 74 + + COUNT ( * ) ) * MIN ( DISTINCT + 76 )
----
160

query II rowsort
SELECT - - 36 + - COALESCE ( + 36, - 43 ), + 87 AS col2
----
0
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT - - 30 - + ( + - 82 ) * - 5 * + NULLIF ( - COUNT( * ), MAX( 92 ) ) * 72 col1
----
29550

skipif mysql # not compatible
query I rowsort label-9935
SELECT - - 30 - + ( + - 82 ) * - 5 * + NULLIF ( - COUNT ( * ), MAX ( 92 ) ) * 72 col1
----
29550

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT - MIN( DISTINCT 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-9936
SELECT - MIN ( DISTINCT 99 )
----
-99

query I rowsort
SELECT - 64 + 57 AS col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9938
SELECT + - COUNT( * ) DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9938
SELECT + - COUNT ( * ) / + COUNT ( * )
----
-1

query I rowsort
SELECT ALL + - 85 + + - ( + 29 ) / 81 * + 94 / + CASE - - 41 WHEN + + 0 + 58 THEN NULL WHEN + - 50 / - - 9 THEN + 84 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - + ( + 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT + NULLIF ( - 26, COUNT( DISTINCT - - 87 ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9941
SELECT + NULLIF ( - 26, COUNT ( DISTINCT - - 87 ) ) AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9942
SELECT - 73 + CAST( - + 55 AS SIGNED ) col0
----
-128

skipif mysql # not compatible
query I rowsort label-9942
SELECT - 73 + CAST ( - + 55 AS INTEGER ) col0
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9943
SELECT ALL - 30 + NULLIF ( + CAST( NULL AS SIGNED ), + 77 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL - 30 + NULLIF ( + CAST ( NULL AS INTEGER ), + 77 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL 37 + 43 - - 67 + - - 71 * - COUNT( * ) * + 8 AS col2
----
-421

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL 37 + 43 - - 67 + - - 71 * - COUNT ( * ) * + 8 AS col2
----
-421

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT DISTINCT + 12 + + + MIN( 49 ) + 18 * + 87 AS col0
----
1627

skipif mysql # not compatible
query I rowsort label-9945
SELECT DISTINCT + 12 + + + MIN ( 49 ) + 18 * + 87 AS col0
----
1627

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT + 19 + - 10 * 42 + + - 11 * + CASE 53 WHEN 36 THEN + 28 WHEN 62 + + + SUM( DISTINCT 4 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT + 19 + - 10 * 42 + + - 11 * + CASE 53 WHEN 36 THEN + 28 WHEN 62 + + + SUM ( DISTINCT 4 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 65 * + NULLIF ( - 6, - - 5 ) AS col2
----
-390

query I rowsort
SELECT ALL 77 * 48 AS col0
----
3696

query I rowsort
SELECT 30 + - 15 * - + ( - 92 )
----
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT DISTINCT COUNT( * ) - - - CASE + 30 WHEN + 78 + - COUNT( * ) + - 36 / - COUNT( * ) THEN + 2 WHEN - 24 * - 36 THEN NULL END + + 18 * COUNT( * ) * - 67 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT COUNT ( * ) - - - CASE + 30 WHEN + 78 + - COUNT ( * ) + - 36 / - COUNT ( * ) THEN + 2 WHEN - 24 * - 36 THEN NULL END + + 18 * COUNT ( * ) * - 67 + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9951
SELECT DISTINCT 64 DIV + - CAST( - 62 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT 64 / + - CAST ( - 62 AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL - MAX( 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL - MAX ( 29 )
----
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9953
SELECT - 51 DIV 85 + CAST( - 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-9953
SELECT - 51 / 85 + CAST ( - 66 AS INTEGER )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9954
SELECT ALL 93 DIV - - 10 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL 93 / - - 10 AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9955
SELECT DISTINCT 97 DIV + 3
----
32

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT 97 / + 3
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT + COALESCE ( - + COALESCE ( + 70, 43 ), COUNT( * ) + - + NULLIF ( + - COUNT( * ), + 79 * - - 40 ) ) * + MAX( + 10 )
----
-700

skipif mysql # not compatible
query I rowsort label-9956
SELECT + COALESCE ( - + COALESCE ( + 70, 43 ), COUNT ( * ) + - + NULLIF ( + - COUNT ( * ), + 79 * - - 40 ) ) * + MAX ( + 10 )
----
-700

query I rowsort
SELECT DISTINCT - 12 * + - 67 AS col2
----
804

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9958
SELECT 54 + + COALESCE ( + 12, NULLIF ( 35, + CAST( NULL AS DECIMAL ) ), + COUNT( * ) * - + 91 * + 64 ) * 26 AS col0
----
366

skipif mysql # not compatible
query I rowsort label-9958
SELECT 54 + + COALESCE ( + 12, NULLIF ( 35, + CAST ( NULL AS REAL ) ), + COUNT ( * ) * - + 91 * + 64 ) * 26 AS col0
----
366

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ALL - + COUNT( * ) * + + ( MIN( DISTINCT + - 36 ) )
----
36

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL - + COUNT ( * ) * + + ( MIN ( DISTINCT + - 36 ) )
----
36

query I rowsort
SELECT DISTINCT + ( 1 ) * + 23
----
23

query I rowsort
SELECT DISTINCT - 52 * + 78 * + 87 AS col1
----
-352872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9962
SELECT ALL + 18 * NULLIF ( + COALESCE ( + 99, - + SUM( ALL + 42 ) + - 16 ), 76 - 15 ) DIV - ( + 10 ) + 25 AS col0
----
-153

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL + 18 * NULLIF ( + COALESCE ( + 99, - + SUM ( ALL + 42 ) + - 16 ), 76 - 15 ) / - ( + 10 ) + 25 AS col0
----
-153

query I rowsort
SELECT - CASE 79 WHEN - ( + + 89 ) + + - 26 THEN - CASE + 16 WHEN 84 THEN NULL WHEN + 38 THEN NULL ELSE 58 * + 96 END * 74 WHEN - - 19 THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT 12 - + SUM( DISTINCT + 43 )
----
-31

skipif mysql # not compatible
query I rowsort label-9964
SELECT 12 - + SUM ( DISTINCT + 43 )
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9965
SELECT ALL + 94 + + - 36, + 98 * + CAST( NULL AS SIGNED ) * - 32 AS col0, - - 86 AS col1
----
58
NULL
86

skipif mysql # not compatible
query III rowsort label-9965
SELECT ALL + 94 + + - 36, + 98 * + CAST ( NULL AS INTEGER ) * - 32 AS col0, - - 86 AS col1
----
58
NULL
86

query I rowsort
SELECT + 28 + - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT - 98 * 59 * SUM( ALL 68 ) + - 18 * - 23 AS col2
----
-392762

skipif mysql # not compatible
query I rowsort label-9967
SELECT - 98 * 59 * SUM ( ALL 68 ) + - 18 * - 23 AS col2
----
-392762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9968
SELECT ALL - 53 DIV - SUM( - 90 )
----
0

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL - 53 / - SUM ( - 90 )
----
0

query I rowsort
SELECT ALL + 98 + - 93 AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9970
SELECT DISTINCT - 44 + - + 51 DIV 4
----
-56

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT - 44 + - + 51 / 4
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT ALL - CASE - NULLIF ( - - 2, - + 50 * - 71 ) WHEN 66 * + 53 * - - 10 THEN + 1 * - 28 * 8 + + - ( SUM( 55 ) ) WHEN 86 * - COUNT( * ) * 26 - - COUNT( * ) THEN - + 30 END + + COUNT( * ) + - + 1 + 19 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL - CASE - NULLIF ( - - 2, - + 50 * - 71 ) WHEN 66 * + 53 * - - 10 THEN + 1 * - 28 * 8 + + - ( SUM ( 55 ) ) WHEN 86 * - COUNT ( * ) * 26 - - COUNT ( * ) THEN - + 30 END + + COUNT ( * ) + - + 1 + 19 col2
----
NULL

query I rowsort
SELECT 89 - + 9 col0
----
80

query I rowsort
SELECT ALL - 26 * - - 67 AS col0
----
-1742

query I rowsort
SELECT DISTINCT + 72 * 49
----
3528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9975
SELECT 98 - + COUNT( * ) - - + 39 DIV - NULLIF ( - + 94, - 55 + - 99 * - + 48 DIV + 44 * NULLIF ( - 50, - 4 ) ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9975
SELECT 98 - + COUNT ( * ) - - + 39 / - NULLIF ( - + 94, - 55 + - 99 * - + 48 / + 44 * NULLIF ( - 50, - 4 ) ) AS col1
----
97

query I rowsort
SELECT 79 * + + 23
----
1817

query I rowsort
SELECT 88 + - 25
----
63

query I rowsort
SELECT DISTINCT - ( 82 )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9979
SELECT DISTINCT - 18 - 14 DIV + + COUNT( * ) col1, 74 + + 57 + + + 98 DIV + 10 + + - 62 * + + 36 AS col2
----
-32
-2092

skipif mysql # not compatible
query II rowsort label-9979
SELECT DISTINCT - 18 - 14 / + + COUNT ( * ) col1, 74 + + 57 + + + 98 / + 10 + + - 62 * + + 36 AS col2
----
-32
-2092

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT DISTINCT - COUNT( * ) * 9 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT - COUNT ( * ) * 9 AS col2
----
-9

query I rowsort
SELECT DISTINCT 17 - - 88
----
105

query I rowsort
SELECT 4 * + - 79
----
-316

query I rowsort
SELECT 39 * - - 46
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT - 56 - - + 28 * MAX( ALL - 99 )
----
-2828

skipif mysql # not compatible
query I rowsort label-9984
SELECT - 56 - - + 28 * MAX ( ALL - 99 )
----
-2828

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9985
SELECT DISTINCT + SUM( 76 ) + + 81 AS col0, 81 + + 82 - ( + 18 ) + + ( COUNT( * ) ) + - 44 * SUM( + 54 ) DIV - + 50 + + - 37 * - 17 AS col0
----
157
822

skipif mysql # not compatible
query II rowsort label-9985
SELECT DISTINCT + SUM ( 76 ) + + 81 AS col0, 81 + + 82 - ( + 18 ) + + ( COUNT ( * ) ) + - 44 * SUM ( + 54 ) / - + 50 + + - 37 * - 17 AS col0
----
157
822

query I rowsort
SELECT DISTINCT - - ( + 52 ) AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9987
SELECT 71 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-9987
SELECT 71 / - 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9988
SELECT ALL - MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) + 86 * 46 / + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - MAX ( DISTINCT + CAST ( NULL AS REAL ) ) + 86 * 46 / + - 33
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT + 19 - + ( + - 45 ) - - CAST( - ( + 28 ) AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-9989
SELECT + 19 - + ( + - 45 ) - - CAST ( - ( + 28 ) AS INTEGER )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT ALL - COUNT( ALL + - 92 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL - COUNT ( ALL + - 92 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT DISTINCT 11 + - + 90 * + CAST( 15 AS SIGNED )
----
-1339

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT 11 + - + 90 * + CAST ( 15 AS INTEGER )
----
-1339

query I rowsort
SELECT ALL 16 + + 13 col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9993
SELECT - CASE - + 30 WHEN 58 - - 64 THEN NULL ELSE + + CAST( NULL AS SIGNED ) * - AVG ( - 92 ) END + - COUNT( * ) + - - 2 / - 55 * 43 AS col0, - 19
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-9993
SELECT - CASE - + 30 WHEN 58 - - 64 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) * - AVG ( - 92 ) END + - COUNT ( * ) + - - 2 / - 55 * 43 AS col0, - 19
----
NULL
-19

query I rowsort
SELECT 27 + - COALESCE ( + 81, - 39 + 52 * + 18 ) + 62 + + 69 + + - 80 col0
----
-3

query I rowsort
SELECT - 69 - 88 col0
----
-157

query I rowsort
SELECT ALL 38 * - 50 * 3
----
-5700

query I rowsort
SELECT 19 + + 43 + - 5 AS col0
----
57

query I rowsort
SELECT ALL 96 + - 31
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT DISTINCT COUNT( * ) + + 58
----
59

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT COUNT ( * ) + + 58
----
59

