sqllogictest
Artifact Content
Not logged in

Artifact 025167a2419729e0d59b49e62d0e889e96c92207:


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
SELEC