sqllogictest
Artifact Content
Not logged in

Artifact 7e4b4b7658a9e99f1fc737791295d94299791923:


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 I rowsort label-0
SELECT - 97 * + ( - 97 ) + 48 + - COUNT( * ) + 84 * + 28 * 43 * + 20 * ( + - NULLIF ( - 15, - 9 ) )
----
30350256

skipif mysql # not compatible
query I rowsort label-0
SELECT - 97 * + ( - 97 ) + 48 + - COUNT ( * ) + 84 * + 28 * 43 * + 20 * ( + - NULLIF ( - 15, - 9 ) )
----
30350256

query II rowsort
SELECT ALL + 17 AS col2, 42
----
17
42

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3
SELECT DISTINCT + + 96 AS col0, + MIN( DISTINCT 50 ) AS col1
----
96
50

skipif mysql # not compatible
query II rowsort label-3
SELECT DISTINCT + + 96 AS col0, + MIN ( DISTINCT 50 ) AS col1
----
96
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4
SELECT DISTINCT 64 * ( - + 83 ) + - 88 + + + COUNT( * ) * - 77 DIV 55 AS col1
----
-5401

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT 64 * ( - + 83 ) + - 88 + + + COUNT ( * ) * - 77 / 55 AS col1
----
-5401

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

query II rowsort
SELECT 86 AS col2, - 5 * + 36 + 68 + - 61
----
86
-173

onlyif mysql # aggregate syntax: 
query II rowsort label-7
SELECT DISTINCT - SUM( - 33 ) * - 62 AS col2, 19 AS col0
----
-2046
19

skipif mysql # not compatible
query II rowsort label-7
SELECT DISTINCT - SUM ( - 33 ) * - 62 AS col2, 19 AS col0
----
-2046
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT - + 28 * + ( - 98 ) + 86 * - - 96 + - 51 + - 38 * MAX( ALL 60 )
----
8669

skipif mysql # not compatible
query I rowsort label-8
SELECT - + 28 * + ( - 98 ) + 86 * - - 96 + - 51 + - 38 * MAX ( ALL 60 )
----
8669

query I rowsort
SELECT + + 33 * - 20 AS col1
----
-660

query I rowsort
SELECT - + 27 * + 49 AS col1
----
-1323

query I rowsort
SELECT + 46 + 87 - + + 42 AS col0
----
91

query I rowsort
SELECT - 20 + + 37 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT COALESCE ( + 93, + 90 * + 28 * + NULLIF ( + + 91, - 53 * + + COUNT( + + 12 ) - + + NULLIF ( - 23, - - 27 ) ) * - 7 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-13
SELECT COALESCE ( + 93, + 90 * + 28 * + NULLIF ( + + 91, - 53 * + + COUNT ( + + 12 ) - + + NULLIF ( - 23, - - 27 ) ) * - 7 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT + + MAX( + NULLIF ( - - 0, - 65 * - + 33 * + + 47 * - + 90 ) )
----
0

skipif mysql # not compatible
query I rowsort label-14
SELECT + + MAX ( + NULLIF ( - - 0, - 65 * - + 33 * + + 47 * - + 90 ) )
----
0

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

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

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

query I rowsort
SELECT ALL - 28 * - + 80
----
2240

onlyif mysql # DIV for integer division: 
query I rowsort label-18
SELECT DISTINCT 20 * 67 DIV - 90
----
-14

skipif mysql # not compatible
query I rowsort label-18
SELECT DISTINCT 20 * 67 / - 90
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-19
SELECT + 43 - CAST( + 69 AS SIGNED ) + - 46 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-19
SELECT + 43 - CAST ( + 69 AS INTEGER ) + - 46 AS col1
----
-72

onlyif mysql # DIV for integer division: 
query II rowsort label-20
SELECT - 49 DIV + 8, + 45 * - 78 + + 66 col1
----
-6
-3444

skipif mysql # not compatible
query II rowsort label-20
SELECT - 49 / + 8, + 45 * - 78 + + 66 col1
----
-6
-3444

query I rowsort
SELECT + 60 * - 43 col2
----
-2580

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

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

query I rowsort
SELECT - ( + - 30 ) + - - 15
----
45

query I rowsort
SELECT ALL + 56 + 41 AS col2
----
97

query II rowsort
SELECT ALL + 39 + - - 24 AS col2, 28 * - 89
----
63
-2492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-26
SELECT DISTINCT ( CAST( + 9 AS SIGNED ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT ( CAST ( + 9 AS INTEGER ) ) AS col0
----
9

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

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL + 30 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 7 * + 56, 68 AS col2
----
-392
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-29
SELECT ALL - 57 + - COALESCE ( - 70, COUNT( ALL - - 55 ) * + 58 + + + 65 - - COUNT( * ) + + + 36 + + 51 ) + - - COUNT( * ) * 5 * - COUNT( DISTINCT - + 98 ) AS col2, COUNT( 60 ) DIV + + 28 + COUNT( * ) - - 90 * ( + 19 )
----
8
1711

skipif mysql # not compatible
query II rowsort label-29
SELECT ALL - 57 + - COALESCE ( - 70, COUNT ( ALL - - 55 ) * + 58 + + + 65 - - COUNT ( * ) + + + 36 + + 51 ) + - - COUNT ( * ) * 5 * - COUNT ( DISTINCT - + 98 ) AS col2, COUNT ( 60 ) / + + 28 + COUNT ( * ) - - 90 * ( + 19 )
----
8
1711

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-30
SELECT DISTINCT - 12 + + COUNT( * ) - + + 41 + + ( - 81 ) + 63 * + - 79 + 40 * - 84, - 55 DIV - + 40 AS col1
----
-8470
1

skipif mysql # not compatible
query II rowsort label-30
SELECT DISTINCT - 12 + + COUNT ( * ) - + + 41 + + ( - 81 ) + 63 * + - 79 + 40 * - 84, - 55 / - + 40 AS col1
----
-8470
1

query I rowsort
SELECT ALL 94 + + 30 - 26
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT - 71 * - + COUNT( * ) * - 75 AS col2
----
-5325

skipif mysql # not compatible
query I rowsort label-32
SELECT - 71 * - + COUNT ( * ) * - 75 AS col2
----
-5325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-33
SELECT - CAST( + + 35 AS SIGNED ) + 64
----
29

skipif mysql # not compatible
query I rowsort label-33
SELECT - CAST ( + + 35 AS INTEGER ) + 64
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-34
SELECT DISTINCT - 27 * 25 * - 74 + + COUNT( * ) AS col0, 64 * + + 78 col1
----
49951
4992

skipif mysql # not compatible
query II rowsort label-34
SELECT DISTINCT - 27 * 25 * - 74 + + COUNT ( * ) AS col0, 64 * + + 78 col1
----
49951
4992

onlyif mysql # DIV for integer division: 
query I rowsort label-35
SELECT DISTINCT - 3 DIV 9 + + 96 + 29 * 42 AS col1
----
1314

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT - 3 / 9 + + 96 + 29 * 42 AS col1
----
1314

onlyif mysql # DIV for integer division: 
query I rowsort label-36
SELECT DISTINCT 16 DIV - 36 + 29 + + 21 + + 95 col0
----
145

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT 16 / - 36 + 29 + + 21 + + 95 col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT ALL CASE + MIN( 6 ) WHEN + 64 + 99 THEN NULL WHEN + + ( + 97 ) / - COUNT( * ) THEN - - 22 END / + + 70 / + - 15 * 65 + - - 78 - - 50 * - - 65 + + COUNT( DISTINCT - 61 ) + + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL CASE + MIN ( 6 ) WHEN + 64 + 99 THEN NULL WHEN + + ( + 97 ) / - COUNT ( * ) THEN - - 22 END / + + 70 / + - 15 * 65 + - - 78 - - 50 * - - 65 + + COUNT ( DISTINCT - 61 ) + + + 91
----
NULL

query I rowsort
SELECT - - 72 * + NULLIF ( - 72, 3 + 21 + - + 60 * + 4 - 91 )
----
-5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-39
SELECT DISTINCT - 67 * CASE - 17 WHEN + COUNT( * ) + + AVG ( DISTINCT + 11 ) THEN + - 28 + - - 17 WHEN + 47 + - 34 * ( - CAST( - CAST( + - CAST( - 33 AS SIGNED ) AS SIGNED ) AS SIGNED ) ) * + 75 THEN NULL END * - 99 AS col0, - 70 AS col2
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-39
SELECT DISTINCT - 67 * CASE - 17 WHEN + COUNT ( * ) + + AVG ( DISTINCT + 11 ) THEN + - 28 + - - 17 WHEN + 47 + - 34 * ( - CAST ( - CAST ( + - CAST ( - 33 AS INTEGER ) AS INTEGER ) AS INTEGER ) ) * + 75 THEN NULL END * - 99 AS col0, - 70 AS col2
----
NULL
-70

query I rowsort
SELECT DISTINCT + - ( 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL + COUNT( DISTINCT + 69 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL + COUNT ( DISTINCT + 69 ) AS col1
----
1

query I rowsort
SELECT 62 * + + 5 - + 79 * 61
----
-4509

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-43
SELECT + MIN( ALL - - CAST( + 56 AS SIGNED ) ) DIV + 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-43
SELECT + MIN ( ALL - - CAST ( + 56 AS INTEGER ) ) / + 63 AS col1
----
0

query I rowsort
SELECT + 4 * + 19
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-45
SELECT + 48 + CAST( - NULLIF ( - + 34, 25 ) AS SIGNED ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-45
SELECT + 48 + CAST ( - NULLIF ( - + 34, 25 ) AS INTEGER ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT ALL - - 17 * CASE + - 97 WHEN ( 38 ) + 9 * + + 82 * - + 65 * MAX( - ( - + 58 ) ) / 99 + 49 THEN - 73 * + COUNT( * ) * 34 ELSE NULL END + COUNT( * ) + - 32 - - 80 + - COALESCE ( - 59 - ( 96 ), 19 ) * - 29 * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL - - 17 * CASE + - 97 WHEN ( 38 ) + 9 * + + 82 * - + 65 * MAX ( - ( - + 58 ) ) / 99 + 49 THEN - 73 * + COUNT ( * ) * 34 ELSE NULL END + COUNT ( * ) + - 32 - - 80 + - COALESCE ( - 59 - ( 96 ), 19 ) * - 29 * 2
----
NULL

query I rowsort
SELECT ALL 15 * + + 22
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT - CASE - COUNT( * ) WHEN 26 + COUNT( ALL 75 ) + + 66 + - 73 + - ( + - CASE - 98 WHEN - 18 * + - 2 THEN + COUNT( * ) END ) + + SUM( ALL + 63 ) + + ( - 40 ) * + + 3 THEN - + 59 - - 48 * 26 END * 17 - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT - CASE - COUNT ( * ) WHEN 26 + COUNT ( ALL 75 ) + + 66 + - 73 + - ( + - CASE - 98 WHEN - 18 * + - 2 THEN + COUNT ( * ) END ) + + SUM ( ALL + 63 ) + + ( - 40 ) * + + 3 THEN - + 59 - - 48 * 26 END * 17 - - COUNT ( * ) AS col1
----
NULL

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

query I rowsort
SELECT + 43 + - + 5 + - 0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT SUM( ALL - - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-51
SELECT SUM ( ALL - - 68 )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-52
SELECT DISTINCT - 37 * 40 + + ( - COUNT( * ) ) * + + 42, - 50 AS col0
----
-1522
-50

skipif mysql # not compatible
query II rowsort label-52
SELECT DISTINCT - 37 * 40 + + ( - COUNT ( * ) ) * + + 42, - 50 AS col0
----
-1522
-50

query I rowsort
SELECT + 19 + 25 + - CASE WHEN + 49 IS NOT NULL THEN NULL ELSE 56 * + 20 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT - 25 - - + MAX( - 5 )
----
-30

skipif mysql # not compatible
query I rowsort label-54
SELECT - 25 - - + MAX ( - 5 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-55
SELECT - 43 * + CAST( NULL AS SIGNED ) * - 70, 52 AS col1
----
NULL
52

skipif mysql # not compatible
query II rowsort label-55
SELECT - 43 * + CAST ( NULL AS INTEGER ) * - 70, 52 AS col1
----
NULL
52

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT DISTINCT NULLIF ( - 9, COUNT( * ) + + 62 * - ( - 59 ) + - + 76 * - + 82 )
----
-9

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT NULLIF ( - 9, COUNT ( * ) + + 62 * - ( - 59 ) + - + 76 * - + 82 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT DISTINCT MIN( + + 49 ) + + 74 + - 72 + COUNT( - 92 )
----
52

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT MIN ( + + 49 ) + + 74 + - 72 + COUNT ( - 92 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-58
SELECT ALL - 98 + - + MIN( + 81 ), CAST( NULL AS SIGNED ) + COUNT( * ) col2
----
-179
NULL

skipif mysql # not compatible
query II rowsort label-58
SELECT ALL - 98 + - + MIN ( + 81 ), CAST ( NULL AS INTEGER ) + COUNT ( * ) col2
----
-179
NULL

query I rowsort
SELECT + 7 * - + 14
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-60
SELECT DISTINCT NULLIF ( - 84, - 95 + + - 66 + + + 39 * COUNT( * ) ) + CAST( NULL AS SIGNED ) / + - 85 - + 70 * - 36 * - + ( + - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT NULLIF ( - 84, - 95 + + - 66 + + + 39 * COUNT ( * ) ) + CAST ( NULL AS INTEGER ) / + - 85 - + 70 * - 36 * - + ( + - 51 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-61
SELECT ALL AVG ( DISTINCT CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL AVG ( DISTINCT CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-62
SELECT - CAST( - 44 AS SIGNED ) * 99 AS col0
----
4356

skipif mysql # not compatible
query I rowsort label-62
SELECT - CAST ( - 44 AS INTEGER ) * 99 AS col0
----
4356

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT ALL - COUNT( * ) + + COUNT( - - 89 ) + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL - COUNT ( * ) + + COUNT ( - - 89 ) + - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL 65 + - 55 AS col1
----
10

query I rowsort
SELECT ALL - 35 * 14
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT 63 + + - 8 * ( COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-66
SELECT 63 + + - 8 * ( COUNT ( * ) )
----
55

query I rowsort
SELECT ALL - 82 + - - ( - 77 )
----
-159

query I rowsort
SELECT 98 + + 35 AS col0
----
133

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

skipif mysql # not compatible
query I rowsort label-69
SELECT MIN ( - + 98 )
----
-98

query I rowsort
SELECT ALL + + 14 - + 46 + + 44 AS col1
----
12

query I rowsort
SELECT ALL - ( - 1 ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-72
SELECT + 30 * 9 * + + 72 - + 13 + - + 38 - - CAST( NULL AS DECIMAL ) - - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-72
SELECT + 30 * 9 * + + 72 - + 13 + - + 38 - - CAST ( NULL AS REAL ) - - 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-73
SELECT ALL + + 22 - + COALESCE ( - 38, - - ( 9 ) * SUM( ALL - - 62 ) ) + + - 40 + 22 + - 19 + COUNT( * ) / + CASE CASE + - 9 WHEN - 24 THEN + ( + 19 ) END WHEN - 57 THEN - 31 + + - ( COUNT( ALL CAST( 39 AS SIGNED ) ) ) WHEN + 51 / + 51 THEN 39 + COUNT( * ) ELSE NULL END * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL + + 22 - + COALESCE ( - 38, - - ( 9 ) * SUM ( ALL - - 62 ) ) + + - 40 + 22 + - 19 + COUNT ( * ) / + CASE CASE + - 9 WHEN - 24 THEN + ( + 19 ) END WHEN - 57 THEN - 31 + + - ( COUNT ( ALL CAST ( 39 AS INTEGER ) ) ) WHEN + 51 / + 51 THEN 39 + COUNT ( * ) ELSE NULL END * + 76
----
NULL

query II rowsort
SELECT ALL - 80, + 50 AS col2
----
-80
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-75
SELECT MIN( + 29 ) * + + SUM( DISTINCT - 40 ) + 97 * + 1 * - SUM( DISTINCT CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-75
SELECT MIN ( + 29 ) * + + SUM ( DISTINCT - 40 ) + 97 * + 1 * - SUM ( DISTINCT CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-76
SELECT 97 * + - CASE 6 WHEN + 66 + - CAST( NULL AS SIGNED ) * 58 - + - ( 15 ) - + 48 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-76
SELECT 97 * + - CASE 6 WHEN + 66 + - CAST ( NULL AS INTEGER ) * 58 - + - ( 15 ) - + 48 THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-77
SELECT DISTINCT - + COUNT( * ) AS col1, - MIN( + 39 )
----
-1
-39

skipif mysql # not compatible
query II rowsort label-77
SELECT DISTINCT - + COUNT ( * ) AS col1, - MIN ( + 39 )
----
-1
-39

query I rowsort
SELECT 59 * - 41 AS col2
----
-2419

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT + ( - SUM( ALL - 85 ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-80
SELECT + ( - SUM ( ALL - 85 ) ) AS col1
----
85

query I rowsort
SELECT 38 * 97 + + 46 * - + 97 * - - 71 - 52 AS col0
----
-313168

query I rowsort
SELECT ALL + + 67 * 73 AS col0
----
4891

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT DISTINCT - MAX( - - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT - MAX ( - - 23 ) AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-84
SELECT 15 + 25 * + CAST( NULL AS SIGNED ) + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-84
SELECT 15 + 25 * + CAST ( NULL AS INTEGER ) + 34
----
NULL

query I rowsort
SELECT DISTINCT + + 92 * + 38 AS col0
----
3496

query I rowsort
SELECT ALL + ( - 90 ) + 38 - - ( - + 75 ) col0
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT ALL - MAX( - 51 ) + + + 6 * - 93 * - ( - + 13 ) + + 18 * + 55 * - + 25 AS col0
----
-31953

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL - MAX ( - 51 ) + + + 6 * - 93 * - ( - + 13 ) + + 18 * + 55 * - + 25 AS col0
----
-31953

query II rowsort
SELECT + 19 AS col1, + 54 AS col2
----
19
54

query I rowsort
SELECT 28 + + 58 col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT CASE - + 28 WHEN + 18 THEN - ( + 20 ) WHEN + - NULLIF ( CASE 99 WHEN 89 + + + 10 THEN 80 END, - + 97 ) THEN NULL ELSE 21 END + - + 79 * - + COUNT( * ) + SUM( ALL 3 )
----
103

skipif mysql # not compatible
query I rowsort label-90
SELECT CASE - + 28 WHEN + 18 THEN - ( + 20 ) WHEN + - NULLIF ( CASE 99 WHEN 89 + + + 10 THEN 80 END, - + 97 ) THEN NULL ELSE 21 END + - + 79 * - + COUNT ( * ) + SUM ( ALL 3 )
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-91
SELECT ALL 31 DIV MAX( ( - 50 ) )
----
0

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL 31 / MAX ( ( - 50 ) )
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-93
SELECT ALL 25 + + SUM( DISTINCT - + CAST( - - 60 AS SIGNED ) )
----
-35

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL 25 + + SUM ( DISTINCT - + CAST ( - - 60 AS INTEGER ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT DISTINCT - MAX( 21 ) + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT - MAX ( 21 ) + COUNT ( * )
----
-20

query I rowsort
SELECT + 32 * + - 4 + + - 9 * + 39 + - 45 AS col2
----
-524

query I rowsort
SELECT 66 * + + ( + 65 ) AS col0
----
4290

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

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

query II rowsort
SELECT 56 AS col2, - 66 AS col0
----
56
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-99
SELECT DISTINCT 59 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-99
SELECT DISTINCT 59 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 8 + - 35 AS col2
----
-27

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-102
SELECT ALL 40 DIV + 78 AS col1, ( + 98 )
----
0
98

skipif mysql # not compatible
query II rowsort label-102
SELECT ALL 40 / + 78 AS col1, ( + 98 )
----
0
98

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT 43 / + CASE - 12 WHEN - + COUNT( + - 84 ) THEN + 95 + + 19 END * - + COUNT( * ) + 45 + - - 9 + + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-103
SELECT 43 / + CASE - 12 WHEN - + COUNT ( + - 84 ) THEN + 95 + + 19 END * - + COUNT ( * ) + 45 + - - 9 + + 92 AS col0
----
NULL

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

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

query II rowsort
SELECT DISTINCT 74 AS col1, + 13
----
74
13

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT 23 - - - 37 DIV - + 21 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-106
SELECT 23 - - - 37 / - + 21 AS col1
----
24

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

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

query II rowsort
SELECT 80 AS col0, - NULLIF ( + 17, - 79 )
----
80
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-109
SELECT - 64 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-109
SELECT - 64 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 15 * 63 * + + ( + 90 ) AS col1
----
85050

onlyif mysql # DIV for integer division: 
query II rowsort label-111
SELECT ALL - 76 * - 74 - + - 28 DIV + 69 AS col0, + 31 AS col2
----
5624
31

skipif mysql # not compatible
query II rowsort label-111
SELECT ALL - 76 * - 74 - + - 28 / + 69 AS col0, + 31 AS col2
----
5624
31

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

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

query II rowsort
SELECT ALL - 94 AS col0, 72 * - 6 * - 9 AS col0
----
-94
3888

onlyif mysql # DIV for integer division: 
query I rowsort label-114
SELECT ALL + - 65 * + - 53 * - 26 + 79 DIV 60 + + 44 + 45 AS col1
----
-89480

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL + - 65 * + - 53 * - 26 + 79 / 60 + + 44 + 45 AS col1
----
-89480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-115
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 9 + COUNT( * ) * + 23 * - MAX( ALL - 36 ) * 74 + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 9 + COUNT ( * ) * + 23 * - MAX ( ALL - 36 ) * 74 + - 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-116
SELECT - 19 * 42 + - CAST( - + 55 AS SIGNED ) AS col2
----
-743

skipif mysql # not compatible
query I rowsort label-116
SELECT - 19 * 42 + - CAST ( - + 55 AS INTEGER ) AS col2
----
-743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-117
SELECT ALL + COUNT( * ) + 44 * - 48 DIV - COUNT( ALL - 87 ) AS col0
----
2113

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL + COUNT ( * ) + 44 * - 48 / - COUNT ( ALL - 87 ) AS col0
----
2113

query I rowsort
SELECT 28 * + 2 AS col1
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-119
SELECT DISTINCT + 15 * - - 99 AS col1, 97 * - 11 DIV - COUNT( ALL - 79 )
----
1485
1067

skipif mysql # not compatible
query II rowsort label-119
SELECT DISTINCT + 15 * - - 99 AS col1, 97 * - 11 / - COUNT ( ALL - 79 )
----
1485
1067

query I rowsort
SELECT ALL + 97 + + 32
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-121
SELECT ALL - 43 + + COUNT( * ) AS col0, - 14 * 44 + - - COUNT( * ) DIV + + 23
----
-42
-616

skipif mysql # not compatible
query II rowsort label-121
SELECT ALL - 43 + + COUNT ( * ) AS col0, - 14 * 44 + - - COUNT ( * ) / + + 23
----
-42
-616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-122
SELECT NULLIF ( - MAX( DISTINCT + - 92 ), + 83 ) * - - CAST( NULL AS SIGNED ) - 54 * - - 70 AS col0, COUNT( * ) * - ( - 72 )
----
NULL
72

skipif mysql # not compatible
query II rowsort label-122
SELECT NULLIF ( - MAX ( DISTINCT + - 92 ), + 83 ) * - - CAST ( NULL AS INTEGER ) - 54 * - - 70 AS col0, COUNT ( * ) * - ( - 72 )
----
NULL
72

query II rowsort
SELECT ALL + 80 + 5 AS col0, 26
----
85
26

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT + COUNT( * ) * 90 + + 33 AS col2
----
123

skipif mysql # not compatible
query I rowsort label-124
SELECT + COUNT ( * ) * 90 + + 33 AS col2
----
123

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

query I rowsort
SELECT ALL + 80 - - 34 + 55 AS col1
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-127
SELECT + 65 * + 50 * + - MIN( ALL - ( + 16 ) ) + CAST( NULL AS SIGNED ) + - 10 + - 93, + CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-127
SELECT + 65 * + 50 * + - MIN ( ALL - ( + 16 ) ) + CAST ( NULL AS INTEGER ) + - 10 + - 93, + CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT + 12 - + 60 + CASE + 8 WHEN - ( - + 61 ) THEN NULL ELSE + COUNT( * ) * + MIN( DISTINCT + 86 ) - + + 23 END + 30 * + SUM( DISTINCT - 88 ) AS col0
----
-2625

skipif mysql # not compatible
query I rowsort label-128
SELECT + 12 - + 60 + CASE + 8 WHEN - ( - + 61 ) THEN NULL ELSE + COUNT ( * ) * + MIN ( DISTINCT + 86 ) - + + 23 END + 30 * + SUM ( DISTINCT - 88 ) AS col0
----
-2625

query I rowsort
SELECT ALL NULLIF ( + 59, - 15 / - + 40 + - 23 + 22 )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-130
SELECT DISTINCT 77 DIV + - 61
----
-1

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT 77 / + - 61
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-131
SELECT - 0 * 81 DIV 24 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-131
SELECT - 0 * 81 / 24 / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT ALL COUNT( + - 98 ) - - - 79 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL COUNT ( + - 98 ) - - - 79 AS col0
----
-78

query I rowsort
SELECT + 12 + + - 69 * + - 78 AS col0
----
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT DISTINCT + 88 * - COALESCE ( 77, + CASE MIN( ( 23 ) ) WHEN + 14 THEN - NULLIF ( + + 45, CASE - 53 WHEN + ( - + 69 ) THEN 27 + - 26 ELSE NULL END ) WHEN + 67 - + 33 * - - 60 THEN NULL ELSE 15 END * + - 21 * - + COUNT( * ) ) * - 6 - 47
----
40609

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT + 88 * - COALESCE ( 77, + CASE MIN ( ( 23 ) ) WHEN + 14 THEN - NULLIF ( + + 45, CASE - 53 WHEN + ( - + 69 ) THEN 27 + - 26 ELSE NULL END ) WHEN + 67 - + 33 * - - 60 THEN NULL ELSE 15 END * + - 21 * - + COUNT ( * ) ) * - 6 - 47
----
40609

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT - + NULLIF ( 25, - + 24 ) + + - 91 * - + 43 * - COUNT( * )
----
-3938

skipif mysql # not compatible
query I rowsort label-135
SELECT - + NULLIF ( 25, - + 24 ) + + - 91 * - + 43 * - COUNT ( * )
----
-3938

query I rowsort
SELECT + + 60 * - + 40
----
-2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-137
SELECT - - 49 + + + CASE + 55 WHEN + - ( 67 ) + 24 * 5 THEN NULL WHEN - + COUNT( * ) * - CAST( NULL AS SIGNED ) + - COALESCE ( + 63, - + 85, - - 32 - - COUNT( * ) ) THEN - 53 WHEN 18 THEN NULL WHEN - 45 THEN + + NULLIF ( AVG ( DISTINCT - - 85 ), - NULLIF ( + - MAX( ALL - 90 ), 62 ) + - 46 ) ELSE NULL END + 51 * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-137
SELECT - - 49 + + + CASE + 55 WHEN + - ( 67 ) + 24 * 5 THEN NULL WHEN - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - COALESCE ( + 63, - + 85, - - 32 - - COUNT ( * ) ) THEN - 53 WHEN 18 THEN NULL WHEN - 45 THEN + + NULLIF ( AVG ( DISTINCT - - 85 ), - NULLIF ( + - MAX ( ALL - 90 ), 62 ) + - 46 ) ELSE NULL END + 51 * - 63
----
NULL

query I rowsort
SELECT + 43 - 10 + 65 * + 84 AS col2
----
5493

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT DISTINCT 13 * SUM( ALL - + COALESCE ( - 9, - + 62 ) ) * - - NULLIF ( - 27, + - 74 + + 58 + + + COUNT( * ) * - 60 * + + 45 ) * + COALESCE ( - MIN( ALL 23 ), - + 8 * 1 ) + + - COUNT( * ) + - 43 + 93 + - + 35 + - + 18 * COUNT( * ) AS col1
----
72653

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT 13 * SUM ( ALL - + COALESCE ( - 9, - + 62 ) ) * - - NULLIF ( - 27, + - 74 + + 58 + + + COUNT ( * ) * - 60 * + + 45 ) * + COALESCE ( - MIN ( ALL 23 ), - + 8 * 1 ) + + - COUNT ( * ) + - 43 + 93 + - + 35 + - + 18 * COUNT ( * ) AS col1
----
72653

query I rowsort
SELECT ALL CASE 16 WHEN + 12 THEN 41 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-141
SELECT + + 8 + - 43, COUNT( * ) AS col1
----
-35
1

skipif mysql # not compatible
query II rowsort label-141
SELECT + + 8 + - 43, COUNT ( * ) AS col1
----
-35
1

query I rowsort
SELECT ALL + - 66 * + + 6 + + - 58 * - 83 AS col0
----
4418

query I rowsort
SELECT + + 73 * + - 13 * 86
----
-81614

query II rowsort
SELECT ALL 43 * + + 71, 42 AS col1
----
3053
42

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

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

query I rowsort
SELECT ( + 24 ) AS col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-147
SELECT + 97 DIV 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-147
SELECT + 97 / 60 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-148
SELECT DISTINCT + 18, - ( + 22 ) - - COUNT( - 62 ) AS col0
----
18
-21

skipif mysql # not compatible
query II rowsort label-148
SELECT DISTINCT + 18, - ( + 22 ) - - COUNT ( - 62 ) AS col0
----
18
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-149
SELECT ALL 37 * 65 + - 66 * CAST( AVG ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) * + ( + COALESCE ( + 22, - 4 + 68 ) ) + - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL 37 * 65 + - 66 * CAST ( AVG ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + ( + COALESCE ( + 22, - 4 + 68 ) ) + - 61 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-150
SELECT CASE - + COUNT( * ) WHEN 15 THEN 27 WHEN + 0 + - - 21 - 61 * + + 33 + 20 * + 64 / + 66 * 17 + - ( + COALESCE ( + 55, - 59 * + + 29 + COUNT( * ) - + + 14, 43 + ( + - 13 ) * 64 ) ) / + CAST( NULL AS SIGNED ) THEN NULL ELSE - COALESCE ( MAX( ALL 71 ), 95, - 1, 85 ) - - ( - 21 ) END
----
-92

skipif mysql # not compatible
query I rowsort label-150
SELECT CASE - + COUNT ( * ) WHEN 15 THEN 27 WHEN + 0 + - - 21 - 61 * + + 33 + 20 * + 64 / + 66 * 17 + - ( + COALESCE ( + 55, - 59 * + + 29 + COUNT ( * ) - + + 14, 43 + ( + - 13 ) * 64 ) ) / + CAST ( NULL AS INTEGER ) THEN NULL ELSE - COALESCE ( MAX ( ALL 71 ), 95, - 1, 85 ) - - ( - 21 ) END
----
-92

query I rowsort
SELECT ALL ( 10 ) * 2 AS col0
----
20

query I rowsort
SELECT NULLIF ( + + 13, 9 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT + SUM( DISTINCT 69 ) * + 84 AS col0
----
5796

skipif mysql # not compatible
query I rowsort label-153
SELECT + SUM ( DISTINCT 69 ) * + 84 AS col0
----
5796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-154
SELECT CASE 94 WHEN + + CAST( NULL AS SIGNED ) + 77 THEN - + 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-154
SELECT CASE 94 WHEN + + CAST ( NULL AS INTEGER ) + 77 THEN - + 77 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT + 48 + + 81 + + COUNT( * )
----
130

skipif mysql # not compatible
query I rowsort label-155
SELECT + 48 + + 81 + + COUNT ( * )
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-156
SELECT + CAST( - ( 90 ) AS SIGNED ), - ( + COUNT( * ) ) AS col2
----
-90
-1

skipif mysql # not compatible
query II rowsort label-156
SELECT + CAST ( - ( 90 ) AS INTEGER ), - ( + COUNT ( * ) ) AS col2
----
-90
-1

query I rowsort
SELECT - 13 + - 68
----
-81

query I rowsort
SELECT ALL + 76 * 53 col0
----
4028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-159
SELECT DISTINCT + 67 * - - CASE SUM( - 99 ) WHEN - 68 THEN - 78 WHEN 8 - 62 * 44 + + ( - 29 ) THEN NULL ELSE 75 * SUM( DISTINCT 77 ) * + + 22 * + - 9 * SUM( - + CAST( NULL AS SIGNED ) ) * 77 + COALESCE ( + 80, 10 + COUNT( * ) + - 90 ) * 9 END / 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT + 67 * - - CASE SUM ( - 99 ) WHEN - 68 THEN - 78 WHEN 8 - 62 * 44 + + ( - 29 ) THEN NULL ELSE 75 * SUM ( DISTINCT 77 ) * + + 22 * + - 9 * SUM ( - + CAST ( NULL AS INTEGER ) ) * 77 + COALESCE ( + 80, 10 + COUNT ( * ) + - 90 ) * 9 END / 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-160
SELECT DISTINCT 47 DIV + - COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT 47 / + - COUNT ( * ) AS col2
----
-47

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-163
SELECT - 77 / 57 / - CAST( NULL AS DECIMAL ) * COUNT( * ) / + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT - 77 / 57 / - CAST ( NULL AS REAL ) * COUNT ( * ) / + - 96
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT - + 64 + - SUM( DISTINCT - 52 )
----
-12

skipif mysql # not compatible
query I rowsort label-165
SELECT - + 64 + - SUM ( DISTINCT - 52 )
----
-12

query I rowsort
SELECT - - 90 * - 18 AS col1
----
-1620

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

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

query I rowsort
SELECT - + 20 - + + 39
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-169
SELECT + 41 + - - MAX( - + 67 ) + - - 83 DIV - 29 * - COUNT( * ) * - + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-169
SELECT + 41 + - - MAX ( - + 67 ) + - - 83 / - 29 * - COUNT ( * ) * - + COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT NULLIF ( - + COUNT( * ), - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-170
SELECT NULLIF ( - + COUNT ( * ), - - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-171
SELECT ALL - + 52 DIV - 42 * + COUNT( * ), + 29 + 22 * - - 89 - + 40 AS col2
----
1
1947

skipif mysql # not compatible
query II rowsort label-171
SELECT ALL - + 52 / - 42 * + COUNT ( * ), + 29 + 22 * - - 89 - + 40 AS col2
----
1
1947

onlyif mysql # DIV for integer division: 
query I rowsort label-172
SELECT - ( - 51 ) DIV + 98 * 85 * - 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-172
SELECT - ( - 51 ) / + 98 * 85 * - 23 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL - + 27 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 43 + 63
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT - 49 AS col0, COUNT( ALL + + 59 )
----
-49
1

skipif mysql # not compatible
query II rowsort label-175
SELECT - 49 AS col0, COUNT ( ALL + + 59 )
----
-49
1

query I rowsort
SELECT DISTINCT + - 98 + - 95 AS col0
----
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT ALL - 93 * + NULLIF ( - COUNT( * ), - 78 / SUM( DISTINCT 57 ) * - MAX( 0 ) + + + 5 + ( - 70 ) ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL - 93 * + NULLIF ( - COUNT ( * ), - 78 / SUM ( DISTINCT 57 ) * - MAX ( 0 ) + + + 5 + ( - 70 ) ) AS col2
----
93

query I rowsort
SELECT + - 88 * - 90 * 34 * - 67
----
-18041760

onlyif mysql # DIV for integer division: 
query I rowsort label-179
SELECT ALL + - 48 + - 0 DIV + 11
----
-48

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL + - 48 + - 0 / + 11
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT - SUM( 12 ) - + 38 col1
----
-50

skipif mysql # not compatible
query I rowsort label-180
SELECT - SUM ( 12 ) - + 38 col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-181
SELECT COALESCE ( + + COUNT( + - CAST( - + 1 AS DECIMAL ) ), - COALESCE ( + + MIN( 58 ), - 89 * - ( - + ( - ( COUNT( * ) ) ) ) * 10 + - - 51 * - 93 + - 58 ) )
----
1

skipif mysql # not compatible
query I rowsort label-181
SELECT COALESCE ( + + COUNT ( + - CAST ( - + 1 AS REAL ) ), - COALESCE ( + + MIN ( 58 ), - 89 * - ( - + ( - ( COUNT ( * ) ) ) ) * 10 + - - 51 * - 93 + - 58 ) )
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT - COUNT( * ) * NULLIF ( - 72, + 24 )
----
72

skipif mysql # not compatible
query I rowsort label-183
SELECT - COUNT ( * ) * NULLIF ( - 72, + 24 )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-184
SELECT + CAST( + 25 AS SIGNED ) * - 72 * + 1 AS col2
----
-1800

skipif mysql # not compatible
query I rowsort label-184
SELECT + CAST ( + 25 AS INTEGER ) * - 72 * + 1 AS col2
----
-1800

query II rowsort
SELECT ALL + - 45 AS col2, 52 + - 52 AS col2
----
-45
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-186
SELECT ALL + CASE 66 WHEN - - 47 THEN NULL WHEN - 64 THEN NULLIF ( - + CAST( NULL AS DECIMAL ), - 27 * + 69 + - 44 ) * CAST( NULL AS SIGNED ) / + + 80 * - ( + 60 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL + CASE 66 WHEN - - 47 THEN NULL WHEN - 64 THEN NULLIF ( - + CAST ( NULL AS REAL ), - 27 * + 69 + - 44 ) * CAST ( NULL AS INTEGER ) / + + 80 * - ( + 60 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-187
SELECT ALL ( + - 84 ) / + CAST( NULL AS SIGNED ) + - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL ( + - 84 ) / + CAST ( NULL AS INTEGER ) + - 81 AS col1
----
NULL

query I rowsort
SELECT COALESCE ( 33, - 88, - - 37 ) * 36 * 87 - + + ( - - NULLIF ( - + 95, + ( 87 ) ) ) AS col2
----
103451

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-189
SELECT ALL 2 DIV - MAX( DISTINCT - 12 ) * 3
----
0

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL 2 / - MAX ( DISTINCT - 12 ) * 3
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-190
SELECT ALL 37 * + + COALESCE ( + - 26, + + 65 * - ( - 18 ) + + 11 + MAX( - 85 ) * + 34 * 38 * COUNT( * ) DIV + - 12 )
----
-962

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL 37 * + + COALESCE ( + - 26, + + 65 * - ( - 18 ) + + 11 + MAX ( - 85 ) * + 34 * 38 * COUNT ( * ) / + - 12 )
----
-962

query I rowsort
SELECT ALL 49 - 86 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT 66 + + SUM( + + 79 ) AS col0
----
145

skipif mysql # not compatible
query I rowsort label-192
SELECT 66 + + SUM ( + + 79 ) AS col0
----
145

query I rowsort
SELECT 72 * - 77 * - 64
----
354816

query I rowsort
SELECT 8 * 47 AS col2
----
376

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL 7 * + COUNT( - 3 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL 7 * + COUNT ( - 3 ) AS col0
----
7

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

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

query I rowsort
SELECT 17 * - - 30 + - 48 AS col2
----
462

query I rowsort
SELECT 7 * - 23 * 17 AS col0
----
-2737

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT COUNT( * ) * - - 63 - 55 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-199
SELECT COUNT ( * ) * - - 63 - 55 AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-200
SELECT + NULLIF ( CAST( NULL AS SIGNED ), + 81 ) * + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-200
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), + 81 ) * + 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT MAX( ALL 41 ) + - ( 58 ) + - COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-201
SELECT MAX ( ALL 41 ) + - ( 58 ) + - COUNT ( * ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT ALL - + 25 * MIN( ALL + - 52 ) + ( - 49 )
----
1251

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL - + 25 * MIN ( ALL + - 52 ) + ( - 49 )
----
1251

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

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

query I rowsort
SELECT - 92 - - + 31 * - NULLIF ( + - ( + 5 ), - 76 ) AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-205
SELECT DISTINCT - 56 * + COUNT( * ) * + 39 DIV + + COUNT( * ), 73 col0
----
-2184
73

skipif mysql # not compatible
query II rowsort label-205
SELECT DISTINCT - 56 * + COUNT ( * ) * + 39 / + + COUNT ( * ), 73 col0
----
-2184
73

query I rowsort
SELECT ALL + 97 + 81 AS col0
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-207
SELECT ALL + - ( + + 88 ) + + + 34 DIV 26 * 36
----
-52

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL + - ( + + 88 ) + + + 34 / 26 * 36
----
-52

query II rowsort
SELECT - 58 + - + 38 AS col1, 13
----
-96
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-209
SELECT + 41 - - 74 - + 57 * - - 46 AS col2, 66 * + 40 + 51 + 67 DIV + 15 + - 42 + - COUNT( * ) AS col2
----
-2507
2652

skipif mysql # not compatible
query II rowsort label-209
SELECT + 41 - - 74 - + 57 * - - 46 AS col2, 66 * + 40 + 51 + 67 / + 15 + - 42 + - COUNT ( * ) AS col2
----
-2507
2652

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT 15 + MIN( DISTINCT - COALESCE ( + - 39, - 20 ) ) * - 56 + - COUNT( * ) + - 10
----
-2180

skipif mysql # not compatible
query I rowsort label-210
SELECT 15 + MIN ( DISTINCT - COALESCE ( + - 39, - 20 ) ) * - 56 + - COUNT ( * ) + - 10
----
-2180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-211
SELECT ALL - 71 - + - 56, + 15 * - CAST( NULL AS SIGNED ) * - CAST( + 63 AS SIGNED ) * - CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col0
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-211
SELECT ALL - 71 - + - 56, + 15 * - CAST ( NULL AS INTEGER ) * - CAST ( + 63 AS INTEGER ) * - CAST ( NULL AS REAL ) * + COUNT ( * ) AS col0
----
-15
NULL

query I rowsort
SELECT 57 + COALESCE ( 4, 80, - 4 ) AS col2
----
61

query I rowsort
SELECT DISTINCT 3 * - 60
----
-180

query I rowsort
SELECT ALL 61 * + 61
----
3721

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT NULLIF ( + - 41, + 9 * + + 66 * - - 54 ) * + MAX( + - 16 ) + + + 90 col2
----
746

skipif mysql # not compatible
query I rowsort label-215
SELECT NULLIF ( + - 41, + 9 * + + 66 * - - 54 ) * + MAX ( + - 16 ) + + + 90 col2
----
746

query I rowsort
SELECT ALL - 11 - + 12 AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-217
SELECT + COUNT( * ) DIV - - COUNT( * ) + + + 86, + 75 AS col2
----
87
75

skipif mysql # not compatible
query II rowsort label-217
SELECT + COUNT ( * ) / - - COUNT ( * ) + + + 86, + 75 AS col2
----
87
75

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT DISTINCT - 93 * + 78 * MIN( + - 64 ) * - 27
----
-12534912

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT - 93 * + 78 * MIN ( + - 64 ) * - 27
----
-12534912

query I rowsort
SELECT 86 + - 31
----
55

query I rowsort
SELECT 92 + - - 21 AS col1
----
113

query I rowsort
SELECT 63 * 74 * - - 93
----
433566

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-222
SELECT ( + 57 ) + 1 AS col2, 28 * + - 31 + + 49 / 33 / - CAST( NULL AS SIGNED ) * - - 48 / + 71
----
58
NULL

skipif mysql # not compatible
query II rowsort label-222
SELECT ( + 57 ) + 1 AS col2, 28 * + - 31 + + 49 / 33 / - CAST ( NULL AS INTEGER ) * - - 48 / + 71
----
58
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-223
SELECT 82 * 81 * - 97 * + + CAST( NULL AS SIGNED ) * - - SUM( ALL + 16 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-223
SELECT 82 * 81 * - 97 * + + CAST ( NULL AS INTEGER ) * - - SUM ( ALL + 16 ) col0
----
NULL

query I rowsort
SELECT ALL - 76 * 49 AS col1
----
-3724

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-225
SELECT DISTINCT 30 DIV - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT 30 / - COUNT ( * )
----
-30

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-227
SELECT DISTINCT 94 DIV COUNT( * ) * COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT 94 / COUNT ( * ) * COUNT ( * )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-228
SELECT COALESCE ( - 16, - 43, - 89 * + - 39 ) * 62 + - + 77 + - MIN( ALL - 18 ) - - + CAST( NULL AS SIGNED ) * - COUNT( * ) + + 0 * + 25 / 21
----
NULL

skipif mysql # not compatible
query I rowsort label-228
SELECT COALESCE ( - 16, - 43, - 89 * + - 39 ) * 62 + - + 77 + - MIN ( ALL - 18 ) - - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 0 * + 25 / 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT + MAX( + 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-229
SELECT + MAX ( + 50 ) AS col0
----
50

query I rowsort
SELECT - 44 * + 83 + - - 20
----
-3632

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT ALL - COUNT( * ) + - - 95 * + COUNT( * ) col0
----
94

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL - COUNT ( * ) + - - 95 * + COUNT ( * ) col0
----
94

query I rowsort
SELECT DISTINCT + 49 + 76 AS col1
----
125

query II rowsort
SELECT - 90 + - ( - + 36 ) AS col0, 48
----
-54
48

query I rowsort
SELECT ALL - 16 + + 23 * + 93 * + 49 AS col0
----
104795

query I rowsort
SELECT + 56 * + 90 AS col2
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT - CASE MAX( ALL + 46 ) WHEN + COUNT( * ) THEN ( + - 67 ) * - 97 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT - CASE MAX ( ALL + 46 ) WHEN + COUNT ( * ) THEN ( + - 67 ) * - 97 END AS col2
----
NULL

query II rowsort
SELECT 82 col2, + 79
----
82
79

query II rowsort
SELECT DISTINCT 29 AS col1, + 73
----
29
73

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

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

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

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

query I rowsort
SELECT - 10 * - 20
----
200

query I rowsort
SELECT ALL 73 * + + 75 * + 25 col1
----
136875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-243
SELECT - NULLIF ( + 48, + CAST( NULL AS SIGNED ) ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-243
SELECT - NULLIF ( + 48, + CAST ( NULL AS INTEGER ) ) AS col0
----
-48

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-246
SELECT DISTINCT + COALESCE ( + 68, - NULLIF ( - + ( + ( + 26 ) ), - 9 ) * - MAX( DISTINCT 26 ) * - + 80 + + + 56 + - - ( - + 92 ) + - 81 DIV + + 7 + COUNT( * ) * + - ( - 88 ) )
----
68

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT + COALESCE ( + 68, - NULLIF ( - + ( + ( + 26 ) ), - 9 ) * - MAX ( DISTINCT 26 ) * - + 80 + + + 56 + - - ( - + 92 ) + - 81 / + + 7 + COUNT ( * ) * + - ( - 88 ) )
----
68

query I rowsort
SELECT - ( + 1 ) * 56
----
-56

query I rowsort
SELECT COALESCE ( - - 74, + - 36 * + 55 + 93, 0 ) AS col1
----
74

query I rowsort
SELECT DISTINCT + 8 * + 3
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT ALL - COALESCE ( - - 7, + 70 ) * - 92 * - COUNT( * ) AS col0
----
-644

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL - COALESCE ( - - 7, + 70 ) * - 92 * - COUNT ( * ) AS col0
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT ALL - 15 * - COUNT( * ) + + + 92
----
107

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL - 15 * - COUNT ( * ) + + + 92
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT COUNT( * ) * + - 89 + + + 8 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-252
SELECT COUNT ( * ) * + - 89 + + + 8 AS col1
----
-81

query I rowsort
SELECT ALL - 45 * - 19 AS col0
----
855

onlyif mysql # DIV for integer division: 
query I rowsort label-254
SELECT + 73 DIV 44 + + + ( 75 ) + 32 col1
----
108

skipif mysql # not compatible
query I rowsort label-254
SELECT + 73 / 44 + + + ( 75 ) + 32 col1
----
108

query II rowsort
SELECT + 2 AS col0, 36
----
2
36

query I rowsort
SELECT COALESCE ( - 95, COALESCE ( - 13, ( 13 ) * - 86 * + + 23 * - 62 ) ) AS col1
----
-95

query I rowsort
SELECT ALL 16 * 60 - + - 85 + - 45
----
1000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-258
SELECT DISTINCT + ( COALESCE ( - 9, + CAST( NULL AS SIGNED ) + + COUNT( * ) - + 7 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-258
SELECT DISTINCT + ( COALESCE ( - 9, + CAST ( NULL AS INTEGER ) + + COUNT ( * ) - + 7 ) )
----
-9

query II rowsort
SELECT ALL + 37 AS col1, - 19
----
37
-19

query II rowsort
SELECT + - COALESCE ( - 67, - 58 + + 36 ) col2, + 65
----
67
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-261
SELECT + COUNT( ALL - - 24 ) + - 76 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-261
SELECT + COUNT ( ALL - - 24 ) + - 76 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT - + 6 * - + 94 + + - 56 + NULLIF ( + - COUNT( * ), + 50 ) AS col2
----
507

skipif mysql # not compatible
query I rowsort label-262
SELECT - + 6 * - + 94 + + - 56 + NULLIF ( + - COUNT ( * ), + 50 ) AS col2
----
507

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT - COALESCE ( - 89, + - COUNT( * ), + + 79 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-263
SELECT - COALESCE ( - 89, + - COUNT ( * ), + + 79 ) AS col2
----
89

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

query I rowsort
SELECT ALL 93 - + 24
----
69

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

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

query I rowsort
SELECT + + ( + - 33 ) - - + 42 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT ALL + 43 - COUNT( * ) + - 92 col2
----
-50

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL + 43 - COUNT ( * ) + - 92 col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-269
SELECT ALL - 79 DIV - SUM( DISTINCT 4 )
----
19

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - 79 / - SUM ( DISTINCT 4 )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-270
SELECT - + 22, + 8 + COUNT( * ) * + 58 AS col1
----
-22
66

skipif mysql # not compatible
query II rowsort label-270
SELECT - + 22, + 8 + COUNT ( * ) * + 58 AS col1
----
-22
66

query I rowsort
SELECT ALL - 63 - - 24
----
-39

query I rowsort
SELECT + 32 + 72
----
104

query II rowsort
SELECT - 38 - - + 10 AS col2, + 15 * - - 64 + + 5 AS col2
----
-28
965

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT - ( + 50 ) * - 49 * - - COUNT( * ) * + CASE + 92 WHEN 4 THEN + SUM( - 23 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT - ( + 50 ) * - 49 * - - COUNT ( * ) * + CASE + 92 WHEN 4 THEN + SUM ( - 23 ) END
----
NULL

query I rowsort
SELECT - 14 - + ( + 51 ) + + ( + 62 )
----
-3

query I rowsort
SELECT + 2 + - - 81
----
83

query I rowsort
SELECT + ( 73 ) * 5
----
365

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT ALL + COUNT( * ) + + ( - - 47 ) + - 74 + - NULLIF ( - - 21, - 1 ) + + + 3
----
-44

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL + COUNT ( * ) + + ( - - 47 ) + - 74 + - NULLIF ( - - 21, - 1 ) + + + 3
----
-44

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

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

query I rowsort
SELECT - 54 + - - 30 AS col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-281
SELECT + ( - + SUM( DISTINCT - + 52 ) ) DIV + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-281
SELECT + ( - + SUM ( DISTINCT - + 52 ) ) / + 59 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-282
SELECT - 69 DIV COUNT( 3 ) + - - 8
----
-61

skipif mysql # not compatible
query I rowsort label-282
SELECT - 69 / COUNT ( 3 ) + - - 8
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT ALL - CASE 36 WHEN - COUNT( * ) THEN NULL WHEN 57 * + 35 - + + 37 / 66 THEN - ( 38 ) ELSE NULL END / + NULLIF ( + ( + - 87 ), + COALESCE ( + 77, + 91 * 44 + - - 94 * 15, + - 90 ) ) + 64 + - SUM( ALL + 69 ) * - ( - 36 ) + + - COALESCE ( - 16, + 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL - CASE 36 WHEN - COUNT ( * ) THEN NULL WHEN 57 * + 35 - + + 37 / 66 THEN - ( 38 ) ELSE NULL END / + NULLIF ( + ( + - 87 ), + COALESCE ( + 77, + 91 * 44 + - - 94 * 15, + - 90 ) ) + 64 + - SUM ( ALL + 69 ) * - ( - 36 ) + + - COALESCE ( - 16, + 55 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-284
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col1, COUNT( * )
----
1
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT - COUNT( * ) + + COUNT( * ) + + 82 * - - 20 AS col0
----
1640

skipif mysql # not compatible
query I rowsort label-286
SELECT - COUNT ( * ) + + COUNT ( * ) + + 82 * - - 20 AS col0
----
1640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-287
SELECT ALL + - 34 DIV - COUNT( * ) + 37
----
71

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL + - 34 / - COUNT ( * ) + 37
----
71

onlyif mysql # DIV for integer division: 
query II rowsort label-288
SELECT ALL - 90 DIV ( 94 ) AS col0, + 63
----
0
63

skipif mysql # not compatible
query II rowsort label-288
SELECT ALL - 90 / ( 94 ) AS col0, + 63
----
0
63

query I rowsort
SELECT - - CASE - ( 97 ) WHEN + 78 * + - 25 THEN 66 * - 58 ELSE NULL END + + 27 col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-291
SELECT - - 35 - CAST( - 0 AS SIGNED ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-291
SELECT - - 35 - CAST ( - 0 AS INTEGER ) AS col1
----
35

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

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

query I rowsort
SELECT + 99 * - - 92
----
9108

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT DISTINCT + - 47 * + + COALESCE ( MIN( ALL + 82 ), 46 + COUNT( * ) ) * + + COUNT( * ) * + 98 AS col2
----
-377692

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT + - 47 * + + COALESCE ( MIN ( ALL + 82 ), 46 + COUNT ( * ) ) * + + COUNT ( * ) * + 98 AS col2
----
-377692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-295
SELECT - 65 * - COUNT( * ) * - 10 / CAST( COUNT( * ) AS SIGNED ) + 76 + + CASE - 28 WHEN - + 49 THEN NULL WHEN - 49 THEN + 78 + + COALESCE ( - 9, - + NULLIF ( NULLIF ( - 46, + 8 * + 55 ), 35 ) * + 34 - - ( - COALESCE ( + 20, - - 42, ( + 25 ) ) ), - MIN( - 97 ) * + 90 ) + 18 WHEN + 95 THEN NULL END - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-295
SELECT - 65 * - COUNT ( * ) * - 10 / CAST ( COUNT ( * ) AS INTEGER ) + 76 + + CASE - 28 WHEN - + 49 THEN NULL WHEN - 49 THEN + 78 + + COALESCE ( - 9, - + NULLIF ( NULLIF ( - 46, + 8 * + 55 ), 35 ) * + 34 - - ( - COALESCE ( + 20, - - 42, ( + 25 ) ) ), - MIN ( - 97 ) * + 90 ) + 18 WHEN + 95 THEN NULL END - 73
----
NULL

query I rowsort
SELECT + ( + 18 ) * + + 60 + 99 + 45 + 15 AS col1
----
1239

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT DISTINCT + MIN( DISTINCT - 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT + MIN ( DISTINCT - 58 ) AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-298
SELECT + CAST( + 44 AS SIGNED ) + COUNT( 94 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-298
SELECT + CAST ( + 44 AS INTEGER ) + COUNT ( 94 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT DISTINCT - SUM( DISTINCT - 45 ) * - 64 AS col0
----
-2880

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT - SUM ( DISTINCT - 45 ) * - 64 AS col0
----
-2880

query I rowsort
SELECT 66 * + 24
----
1584

query I rowsort
SELECT 2 + ( - 26 ) + - 3 AS col1
----
-27

query I rowsort
SELECT ALL 79 * - - 3
----
237

onlyif mysql # aggregate syntax: 
query II rowsort label-303
SELECT DISTINCT - 35 * + COUNT( + 86 ) AS col1, 63 col1
----
-35
63

skipif mysql # not compatible
query II rowsort label-303
SELECT DISTINCT - 35 * + COUNT ( + 86 ) AS col1, 63 col1
----
-35
63

query I rowsort
SELECT ALL 72 + + NULLIF ( - 64, 66 * + NULLIF ( - 37, + 82 ) + + 22 - - - 48 ) * + 49 AS col0
----
-3064

query I rowsort
SELECT 92 * + 94
----
8648

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-306
SELECT ALL 84 * CAST( NULL AS DECIMAL ) * + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL 84 * CAST ( NULL AS REAL ) * + 76 AS col1
----
NULL

query I rowsort
SELECT ALL 43 * + + 34
----
1462

query II rowsort
SELECT - 29 AS col2, 45 AS col0
----
-29
45

query I rowsort
SELECT ALL 36 + + + 29 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT 82 - MAX( DISTINCT - - 1 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-310
SELECT 82 - MAX ( DISTINCT - - 1 ) AS col0
----
81

query II rowsort
SELECT ALL 88 AS col1, - 61 AS col2
----
88
-61

query II rowsort
SELECT + 95, ( - - ( - 20 ) ) AS col1
----
95
-20

query I rowsort
SELECT DISTINCT 35 + - 9 + 71 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT ALL + COALESCE ( 26, NULLIF ( 36, - COUNT( * ) * + COUNT( * ) ), - 32 ) + - 40 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL + COALESCE ( 26, NULLIF ( 36, - COUNT ( * ) * + COUNT ( * ) ), - 32 ) + - 40 AS col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-315
SELECT - ( - - 52 ) DIV + - 97 - - 25 + COUNT( * ) * - - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-315
SELECT - ( - - 52 ) / + - 97 - - 25 + COUNT ( * ) * - - COUNT ( * )
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT - 86 * COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-317
SELECT - 86 * COUNT ( * )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-318
SELECT ALL 26 * + CAST( MAX( DISTINCT + 61 ) AS SIGNED ) AS col1
----
1586

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL 26 * + CAST ( MAX ( DISTINCT + 61 ) AS INTEGER ) AS col1
----
1586

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-320
SELECT - 78 * 74 + 82 + CASE 79 WHEN 3 * - 68 * + 92 THEN + 6 END + - CAST( + 54 AS SIGNED ) + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT - 78 * 74 + 82 + CASE 79 WHEN 3 * - 68 * + 92 THEN + 6 END + - CAST ( + 54 AS INTEGER ) + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 84 * + + 55 - + 14 AS col1
----
4606

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT DISTINCT 15 - 23 * - 34 + + COUNT( * ) AS col1
----
798

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT 15 - 23 * - 34 + + COUNT ( * ) AS col1
----
798

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-324
SELECT - 86 DIV + + 51
----
-1

skipif mysql # not compatible
query I rowsort label-324
SELECT - 86 / + + 51
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-325
SELECT + 25 + + CAST( NULL AS SIGNED ) * - + 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-325
SELECT + 25 + + CAST ( NULL AS INTEGER ) * - + 47 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-326
SELECT COUNT( * ) + - + 34 + 4 DIV - 98 * 75 col1
----
-33

skipif mysql # not compatible
query I rowsort label-326
SELECT COUNT ( * ) + - + 34 + 4 / - 98 * 75 col1
----
-33

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

query I rowsort
SELECT 76 * + 48 AS col0
----
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT 82 - 39 + - + COUNT( * ) - + 57 + - 76
----
-91

skipif mysql # not compatible
query I rowsort label-329
SELECT 82 - 39 + - + COUNT ( * ) - + 57 + - 76
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-330
SELECT DISTINCT - 49 * + 44, - COUNT( * ) * - ( SUM( - 36 ) ) AS col1
----
-2156
-36

skipif mysql # not compatible
query II rowsort label-330
SELECT DISTINCT - 49 * + 44, - COUNT ( * ) * - ( SUM ( - 36 ) ) AS col1
----
-2156
-36

query I rowsort
SELECT 92 + - 99 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT 82 + - SUM( ALL + + 77 ) + - SUM( DISTINCT - 41 )
----
46

skipif mysql # not compatible
query I rowsort label-332
SELECT 82 + - SUM ( ALL + + 77 ) + - SUM ( DISTINCT - 41 )
----
46

query I rowsort
SELECT 91 + - + 50
----
41

query I rowsort
SELECT 27 - - 45 col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-335
SELECT DISTINCT - 4 DIV + 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT - 4 / + 25 AS col2
----
0

query I rowsort
SELECT DISTINCT ( + 18 ) * 2 + + 94 + - 1
----
129

query I rowsort
SELECT 17 + ( + - 90 ) AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-338
SELECT DISTINCT 88 * - 12 DIV + COUNT( * ) AS col1
----
-1056

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT 88 * - 12 / + COUNT ( * ) AS col1
----
-1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-339
SELECT COUNT( * ) * + - 65, 29 DIV 27 AS col1
----
-65
1

skipif mysql # not compatible
query II rowsort label-339
SELECT COUNT ( * ) * + - 65, 29 / 27 AS col1
----
-65
1

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT COUNT( * ) / + 32 + + 1 + 60 * ( - ( + 83 ) ) + CASE - 65 WHEN - COUNT( * ) THEN + + MIN( ALL 26 ) WHEN + 66 + - - 92 THEN NULL ELSE NULL END + + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-340
SELECT COUNT ( * ) / + 32 + + 1 + 60 * ( - ( + 83 ) ) + CASE - 65 WHEN - COUNT ( * ) THEN + + MIN ( ALL 26 ) WHEN + 66 + - - 92 THEN NULL ELSE NULL END + + 61 AS col2
----
NULL

query I rowsort
SELECT - 84 * - 59 AS col2
----
4956

query I rowsort
SELECT 25 * + 82 AS col0
----
2050

query I rowsort
SELECT + CASE + AVG ( + 49 ) WHEN 95 * 32 THEN + 85 + 12 * + 68 - 1 END AS col1
----
NULL

query I rowsort
SELECT + ( - + 66 ) + ( + 33 ) AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-345
SELECT NULLIF ( - 14, CAST( 45 AS SIGNED ) ) * + ( - 84 ) col1
----
1176

skipif mysql # not compatible
query I rowsort label-345
SELECT NULLIF ( - 14, CAST ( 45 AS INTEGER ) ) * + ( - 84 ) col1
----
1176

query II rowsort
SELECT ALL - + ( + 34 ) * + 78 * + 5 col2, 73
----
-13260
73

query I rowsort
SELECT + 56 + + ( - 23 ) AS col2
----
33

query I rowsort
SELECT ALL 44 * - 58 - - - 94
----
-2646

query I rowsort
SELECT + ( + - 52 ) - + - 58 + 36 + - ( + - 16 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-350
SELECT + MAX( ALL 44 ) AS col0, - 40 / + CAST( NULL AS SIGNED ) * - 52
----
44
NULL

skipif mysql # not compatible
query II rowsort label-350
SELECT + MAX ( ALL 44 ) AS col0, - 40 / + CAST ( NULL AS INTEGER ) * - 52
----
44
NULL

query II rowsort
SELECT + - 1 * 98 + + 20 + - 51, + ( + 12 ) AS col1
----
-129
12

query I rowsort
SELECT + - 42 - - 75
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-353
SELECT ALL - - CAST( 41 AS SIGNED ) + - SUM( ALL - ( - 73 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL - - CAST ( 41 AS INTEGER ) + - SUM ( ALL - ( - 73 ) )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-354
SELECT CAST( + 9 AS SIGNED ) * + 2 - - 84 + - 44 * + 90 AS col2
----
-3858

skipif mysql # not compatible
query I rowsort label-354
SELECT CAST ( + 9 AS INTEGER ) * + 2 - - 84 + - 44 * + 90 AS col2
----
-3858

query I rowsort
SELECT - ( - - 30 ) - - 25
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-356
SELECT ALL + MAX( - + CAST( NULL AS SIGNED ) ) * + CASE + - 7 WHEN + + ( ( - + 61 ) ) THEN NULL ELSE + 35 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL + MAX ( - + CAST ( NULL AS INTEGER ) ) * + CASE + - 7 WHEN + + ( ( - + 61 ) ) THEN NULL ELSE + 35 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-357
SELECT - 55 + - - 84 - - + ( + + NULLIF ( - 84, + MIN( - 50 ) * 38 ) ) DIV 16 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-357
SELECT - 55 + - - 84 - - + ( + + NULLIF ( - 84, + MIN ( - 50 ) * 38 ) ) / 16 AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-358
SELECT ALL 61 + + COUNT( * ) * + 64 * + ( + 77 ) col2, 28 * + 76
----
4989
2128

skipif mysql # not compatible
query II rowsort label-358
SELECT ALL 61 + + COUNT ( * ) * + 64 * + ( + 77 ) col2, 28 * + 76
----
4989
2128

query II rowsort
SELECT + 43 * + 0 * - 47, + 9 col0
----
0
9

onlyif mysql # DIV for integer division: 
query I rowsort label-360
SELECT - 49 + COALESCE ( 36, - 99 DIV 60 ) + - COALESCE ( 59, + - 48 DIV + 11, 4, + 73 ) * + 78
----
-4615

skipif mysql # not compatible
query I rowsort label-360
SELECT - 49 + COALESCE ( 36, - 99 / 60 ) + - COALESCE ( 59, + - 48 / + 11, 4, + 73 ) * + 78
----
-4615

query II rowsort
SELECT 99 AS col0, 92 AS col0
----
99
92

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT ALL - ( + 50 ) * - CASE - CASE - + 69 WHEN + 41 / + 11 - + + CASE + 17 WHEN 27 + - 83 THEN NULL ELSE - 95 END THEN ( - CASE + 43 WHEN - - COUNT( * ) THEN NULL ELSE 10 END ) END WHEN 26 THEN - + 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL - ( + 50 ) * - CASE - CASE - + 69 WHEN + 41 / + 11 - + + CASE + 17 WHEN 27 + - 83 THEN NULL ELSE - 95 END THEN ( - CASE + 43 WHEN - - COUNT ( * ) THEN NULL ELSE 10 END ) END WHEN 26 THEN - + 87 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT DISTINCT SUM( DISTINCT - 62 ) - - - 13 + + 36
----
-39

skipif mysql # not compatible
query I rowsort label-363
SELECT DISTINCT SUM ( DISTINCT - 62 ) - - - 13 + + 36
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT DISTINCT 18 * CASE 29 WHEN 50 THEN 95 WHEN + CASE AVG ( - 57 ) WHEN AVG ( 37 ) * - - 89 * - 96 * COUNT( * ) THEN - 80 + MIN( + 41 ) + 44 END / + 46 + CASE + SUM( DISTINCT 21 ) WHEN - - 36 / - 98 THEN - 68 ELSE NULL END THEN 64 WHEN 11 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT 18 * CASE 29 WHEN 50 THEN 95 WHEN + CASE AVG ( - 57 ) WHEN AVG ( 37 ) * - - 89 * - 96 * COUNT ( * ) THEN - 80 + MIN ( + 41 ) + 44 END / + 46 + CASE + SUM ( DISTINCT 21 ) WHEN - - 36 / - 98 THEN - 68 ELSE NULL END THEN 64 WHEN 11 THEN NULL END
----
NULL

query I rowsort
SELECT ALL ( + 59 ) col0
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT ALL - COUNT( * ) * 11 * + + 69 col1
----
-759

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL - COUNT ( * ) * 11 * + + 69 col1
----
-759

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

query I rowsort
SELECT DISTINCT COALESCE ( + - 61, - 9 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT - 53 - + + COALESCE ( 61, 30, + 94 ) * COUNT( * ) * - 60 AS col1
----
3607

skipif mysql # not compatible
query I rowsort label-370
SELECT - 53 - + + COALESCE ( 61, 30, + 94 ) * COUNT ( * ) * - 60 AS col1
----
3607

query I rowsort
SELECT - 12 * 4 AS col2
----
-48

query I rowsort
SELECT - 29 - + + 69
----
-98

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-374
SELECT - - CAST( NULL AS SIGNED ) + CAST( 5 AS DECIMAL ) + - MAX( ALL - 60 ) * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-374
SELECT - - CAST ( NULL AS INTEGER ) + CAST ( 5 AS REAL ) + - MAX ( ALL - 60 ) * 11 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-376
SELECT DISTINCT + 1 AS col2, SUM( DISTINCT 76 )
----
1
76

skipif mysql # not compatible
query II rowsort label-376
SELECT DISTINCT + 1 AS col2, SUM ( DISTINCT 76 )
----
1
76

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT ALL + 51 DIV + - 63
----
0

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL + 51 / + - 63
----
0

query I rowsort
SELECT ALL + + 40 * 62 + + 96 * - 78 + - + 6 + 87
----
-4927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-379
SELECT + - COUNT( + 3 ) DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-379
SELECT + - COUNT ( + 3 ) / + 28
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT ALL - + 27 * - ( 49 ) AS col2, 37 * COUNT( * ) AS col1
----
1323
37

skipif mysql # not compatible
query II rowsort label-380
SELECT ALL - + 27 * - ( 49 ) AS col2, 37 * COUNT ( * ) AS col1
----
1323
37

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

onlyif mysql # aggregate syntax: 
query II rowsort label-382
SELECT + COALESCE ( + - 72, 89 ) * - CASE - ( + 61 ) WHEN COUNT( * ) THEN - 52 / - 91 WHEN 24 THEN - 6 ELSE NULL END * + 7 * 60 + - + 8 + + 66 AS col0, - 62 + COUNT( * ) * + + MAX( 10 ) + + 58 * 18 - + + 38
----
NULL
954

skipif mysql # not compatible
query II rowsort label-382
SELECT + COALESCE ( + - 72, 89 ) * - CASE - ( + 61 ) WHEN COUNT ( * ) THEN - 52 / - 91 WHEN 24 THEN - 6 ELSE NULL END * + 7 * 60 + - + 8 + + 66 AS col0, - 62 + COUNT ( * ) * + + MAX ( 10 ) + + 58 * 18 - + + 38
----
NULL
954

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT - + 71 + + COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-383
SELECT - + 71 + + COUNT ( * ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT DISTINCT 2 * + + 84 * + COUNT( * ) * - 39 + + 6 + - - 45 + 60 + - 3 * - - 76 - - - COUNT( * ) * COUNT( * ) * + - 70
----
-6599

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT 2 * + + 84 * + COUNT ( * ) * - 39 + + 6 + - - 45 + 60 + - 3 * - - 76 - - - COUNT ( * ) * COUNT ( * ) * + - 70
----
-6599

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-385
SELECT + 56 * + + 18 + - COUNT( * ) * + - 90 * - - 46 + - CAST( NULL AS DECIMAL ) / - 85 + - - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-385
SELECT + 56 * + + 18 + - COUNT ( * ) * + - 90 * - - 46 + - CAST ( NULL AS REAL ) / - 85 + - - 47 AS col0
----
NULL

query I rowsort
SELECT ALL 54 * 90 + + + 32
----
4892

query I rowsort
SELECT CASE - 18 WHEN - 8 * 89 THEN + AVG ( ALL + 27 ) + - - ( - 14 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-388
SELECT + COALESCE ( CAST( NULL AS SIGNED ), - - 21 * CASE - - 77 WHEN + COUNT( * ) THEN NULL ELSE - 55 / - CAST( NULL AS SIGNED ) END ) + - CAST( NULL AS SIGNED ) * - 70 + + - AVG ( DISTINCT + 43 ) - + 77 + 76 / + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-388
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), - - 21 * CASE - - 77 WHEN + COUNT ( * ) THEN NULL ELSE - 55 / - CAST ( NULL AS INTEGER ) END ) + - CAST ( NULL AS INTEGER ) * - 70 + + - AVG ( DISTINCT + 43 ) - + 77 + 76 / + 31
----
NULL

query I rowsort
SELECT + COALESCE ( 73, - NULLIF ( - 88, + - 73 ) )
----
73

query II rowsort
SELECT + 19 + - 56 AS col0, + ( - 6 ) AS col2
----
-37
-6

query I rowsort
SELECT NULLIF ( 56, + + ( + 22 ) ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT - 84 * + CASE - 25 WHEN - MIN( - 65 ) THEN 12 / + 23 * ( + MAX( DISTINCT - 12 ) ) * 33 WHEN 56 THEN - 15 * + - 79 + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-392
SELECT - 84 * + CASE - 25 WHEN - MIN ( - 65 ) THEN 12 / + 23 * ( + MAX ( DISTINCT - 12 ) ) * 33 WHEN 56 THEN - 15 * + - 79 + 91 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT ALL - 1 * 10 - + CASE + NULLIF ( + 26, COUNT( * ) * - + 75 ) WHEN + - 54 THEN NULL WHEN - - 67 / - 26 + 17 + + 18 + + - ( - - 53 ) * + + ( + 87 ) THEN 92 + COUNT( * ) WHEN 43 THEN - AVG ( + 24 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL - 1 * 10 - + CASE + NULLIF ( + 26, COUNT ( * ) * - + 75 ) WHEN + - 54 THEN NULL WHEN - - 67 / - 26 + 17 + + 18 + + - ( - - 53 ) * + + ( + 87 ) THEN 92 + COUNT ( * ) WHEN 43 THEN - AVG ( + 24 ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT + 89 - + - 75 + 48 * - - 94 * + + 30
----
135524

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

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

query I rowsort
SELECT + 65 + - - 57 + + 77 + + ( + 10 ) * + 42
----
619

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

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT + 53 + + COUNT( * ) * 48 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-399
SELECT + 53 + + COUNT ( * ) * 48 AS col0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-400
SELECT + 12 DIV 82 * 60 * + 41
----
0

skipif mysql # not compatible
query I rowsort label-400
SELECT + 12 / 82 * 60 * + 41
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT DISTINCT + COUNT( * ) * + 55 * 77
----
4235

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT + COUNT ( * ) * + 55 * 77
----
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT ALL - 69 * + - COUNT( * ) * - - 37 AS col2
----
2553

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL - 69 * + - COUNT ( * ) * - - 37 AS col2
----
2553

query I rowsort
SELECT + 6 + + + 3 + + 84
----
93

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

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

query I rowsort
SELECT - 82 + ( 11 )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-407
SELECT - + COUNT( * ) col1, ( - COUNT( * ) ) + - ( - 94 ) DIV - 10
----
-1
-10

skipif mysql # not compatible
query II rowsort label-407
SELECT - + COUNT ( * ) col1, ( - COUNT ( * ) ) + - ( - 94 ) / - 10
----
-1
-10

query I rowsort
SELECT + 2 + + 95
----
97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-410
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT NULLIF ( - 40, 78 ) + COUNT( + 48 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-411
SELECT NULLIF ( - 40, 78 ) + COUNT ( + 48 ) AS col2
----
-39

query III rowsort
SELECT ALL - - 22 AS col0, - 49, - 64 + 21 AS col1
----
22
-49
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT 3 + + 80 + + COUNT( * ) * 3 * 12
----
119

skipif mysql # not compatible
query I rowsort label-413
SELECT 3 + + 80 + + COUNT ( * ) * 3 * 12
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT DISTINCT + SUM( 76 ) + + COUNT( * ) - + - 0 + COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT + SUM ( 76 ) + + COUNT ( * ) - + - 0 + COUNT ( * ) AS col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-415
SELECT + 79 DIV + + ( - MAX( - 19 ) ) + - 22 + + - ( - 30 ) * + 63
----
1872

skipif mysql # not compatible
query I rowsort label-415
SELECT + 79 / + + ( - MAX ( - 19 ) ) + - 22 + + - ( - 30 ) * + 63
----
1872

query I rowsort
SELECT ALL - - 20 + + ( 58 )
----
78

query I rowsort
SELECT 75 * + 98 AS col1
----
7350

query I rowsort
SELECT 11 * + 87
----
957

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT COUNT( * ) * - 68 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-419
SELECT COUNT ( * ) * - 68 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT - 86 * COUNT( * ) + 68 * + - 31 - + 99 * + COUNT( * ) + - 20 + + + NULLIF ( + 55, + - 47 + + 2 ) * + 79
----
2032

skipif mysql # not compatible
query I rowsort label-420
SELECT - 86 * COUNT ( * ) + 68 * + - 31 - + 99 * + COUNT ( * ) + - 20 + + + NULLIF ( + 55, + - 47 + + 2 ) * + 79
----
2032

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT DISTINCT ( - CASE - 22 WHEN - 91 - - COALESCE ( + 49, + 12 ) THEN 74 END ) * - CASE - - COUNT( * ) WHEN + - 32 THEN NULL WHEN - - COUNT( * ) + 24 * + - 54 THEN 43 END * - 99 * + COUNT( * ) * + 67 + - - COUNT( DISTINCT ( 7 ) ) * 4 * - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT ( - CASE - 22 WHEN - 91 - - COALESCE ( + 49, + 12 ) THEN 74 END ) * - CASE - - COUNT ( * ) WHEN + - 32 THEN NULL WHEN - - COUNT ( * ) + 24 * + - 54 THEN 43 END * - 99 * + COUNT ( * ) * + 67 + - - COUNT ( DISTINCT ( 7 ) ) * 4 * - 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT ALL 6 - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-422
SELECT ALL 6 - COUNT ( * )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-423
SELECT DISTINCT ( - COUNT( * ) ) * - CAST( NULL AS SIGNED ) * - + MAX( COALESCE ( + - 78, 71, + 35 / 30 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT ( - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) * - + MAX ( COALESCE ( + - 78, 71, + 35 / 30 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-424
SELECT CAST( ( + 34 ) AS SIGNED ) * 57
----
1938

skipif mysql # not compatible
query I rowsort label-424
SELECT CAST ( ( + 34 ) AS INTEGER ) * 57
----
1938

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

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

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

skipif mysql # not compatible
query I rowsort label-426
SELECT DISTINCT ( COALESCE ( - - COUNT ( * ), + COUNT ( * ) ) ) * 49
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-427
SELECT 45 DIV + + 48
----
0

skipif mysql # not compatible
query I rowsort label-427
SELECT 45 / + + 48
----
0

query I rowsort
SELECT ALL 64 + + 82 AS col0
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-429
SELECT DISTINCT ( 60 ) + - - 68 DIV - - 91
----
60

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT ( 60 ) + - - 68 / - - 91
----
60

query I rowsort
SELECT ALL + 71 + 17 + + + 60 AS col0
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-431
SELECT + 44 DIV + - 94 * 76 * - - 29
----
0

skipif mysql # not compatible
query I rowsort label-431
SELECT + 44 / + - 94 * 76 * - - 29
----
0

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

skipif mysql # not compatible
query I rowsort label-432
SELECT CAST ( NULL AS INTEGER ) * + 51 + ( + 91 )
----
NULL

query I rowsort
SELECT 28 + + 48
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT + CASE - + 54 WHEN NULLIF ( - 55, COUNT( * ) ) THEN - - COUNT( * ) + - 4 * COUNT( * ) WHEN - 17 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-434
SELECT + CASE - + 54 WHEN NULLIF ( - 55, COUNT ( * ) ) THEN - - COUNT ( * ) + - 4 * COUNT ( * ) WHEN - 17 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT ALL + ( COUNT( - 28 ) ) * + 81 + 86 + 86 + + 72 + 98
----
423

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL + ( COUNT ( - 28 ) ) * + 81 + 86 + 86 + + 72 + 98
----
423

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT ALL - + 52 * 11 + + 89 DIV - 31 AS col2
----
-574

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL - + 52 * 11 + + 89 / - 31 AS col2
----
-574

query I rowsort
SELECT + 43 + - - 75 AS col0
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-438
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + + 80 + + 60 - - ( ( + 35 ) ) * + 11 + - 34 + - 96 - + + 16 + 58 * + 65 * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-438
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + 80 + + 60 - - ( ( + 35 ) ) * + 11 + - 34 + - 96 - + + 16 + 58 * + 65 * + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT 20 * - - 55 + COUNT( * ) * 62
----
1162

skipif mysql # not compatible
query I rowsort label-439
SELECT 20 * - - 55 + COUNT ( * ) * 62
----
1162

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT DISTINCT - SUM( 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT - SUM ( 88 )
----
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-441
SELECT 94 + COALESCE ( + CASE + - 77 WHEN + 34 THEN 90 + - 46 END, + + COALESCE ( + - 2, - + 12, + 45 ) ) * CAST( NULL AS DECIMAL ) * ( - + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-441
SELECT 94 + COALESCE ( + CASE + - 77 WHEN + 34 THEN 90 + - 46 END, + + COALESCE ( + - 2, - + 12, + 45 ) ) * CAST ( NULL AS REAL ) * ( - + 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT - COUNT( * ) * + 78 * COUNT( * ) * - - 89 - - 85
----
-6857

skipif mysql # not compatible
query I rowsort label-442
SELECT - COUNT ( * ) * + 78 * COUNT ( * ) * - - 89 - - 85
----
-6857

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

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

query I rowsort
SELECT ALL - COALESCE ( + 5, - 95 ) * + 37 AS col0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT DISTINCT - CASE - 7 WHEN 76 + - COALESCE ( COUNT( * ), 67 * + 95 ) THEN - MAX( - 78 ) * + 7 END - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-445
SELECT DISTINCT - CASE - 7 WHEN 76 + - COALESCE ( COUNT ( * ), 67 * + 95 ) THEN - MAX ( - 78 ) * + 7 END - 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-446
SELECT ALL - 41 * ( ( - 58 ) ) AS col2, 33 + CASE + - SUM( - - ( 71 ) ) WHEN + 26 THEN 13 END + + AVG ( DISTINCT 90 ) + - ( 9 ) - - ( + - 97 ) col0
----
2378
NULL

skipif mysql # not compatible
query II rowsort label-446
SELECT ALL - 41 * ( ( - 58 ) ) AS col2, 33 + CASE + - SUM ( - - ( 71 ) ) WHEN + 26 THEN 13 END + + AVG ( DISTINCT 90 ) + - ( 9 ) - - ( + - 97 ) col0
----
2378
NULL

query I rowsort
SELECT 0 * - 78 * - 94 AS col1
----
0

query I rowsort
SELECT 10 * 15 AS col0
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-449
SELECT ALL - CAST( - 64 AS SIGNED ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL - CAST ( - 64 AS INTEGER ) AS col1
----
64

query II rowsort
SELECT + 83 AS col2, 60 + - - 42 col0
----
83
102

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT 55 DIV - 63 col0
----
0

skipif mysql # not compatible
query I rowsort label-451
SELECT 55 / - 63 col0
----
0

query I rowsort
SELECT 61 * 79
----
4819

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT - 69 * 24 + 25 + - - 39 * - 88 + + COUNT( DISTINCT + 89 ) AS col0
----
-5062

skipif mysql # not compatible
query I rowsort label-453
SELECT - 69 * 24 + 25 + - - 39 * - 88 + + COUNT ( DISTINCT + 89 ) AS col0
----
-5062

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-454
SELECT - 6 * + AVG ( DISTINCT + 6 ) * - - 48 - + 11 + 4 / - - NULLIF ( 96, - 3 - - - 60 * COUNT( * ) * + 93 ) * 52 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-454
SELECT - 6 * + AVG ( DISTINCT + 6 ) * - - 48 - + 11 + 4 / - - NULLIF ( 96, - 3 - - - 60 * COUNT ( * ) * + 93 ) * 52 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + 51 + - - 79 AS col2
----
130

query I rowsort
SELECT ALL COALESCE ( - 66, - - COALESCE ( - 77, 76 * + 56 + + 2 ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT ALL 47 + - COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL 47 + - COUNT ( * ) AS col0
----
46

query I rowsort
SELECT - 37 + + 55 + - 45 AS col0
----
-27

query I rowsort
SELECT DISTINCT + ( - 14 ) AS col1
----
-14

query I rowsort
SELECT ALL 81 + - 99
----
-18

query I rowsort
SELECT - - 34 + + + 42 col1
----
76

query I rowsort
SELECT + + ( 29 ) + - 6
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT + + 53 + - + COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-463
SELECT + + 53 + - + COUNT ( * ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT ALL COUNT( + 44 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL COUNT ( + 44 ) AS col1
----
1

query II rowsort
SELECT DISTINCT 0 AS col2, - 28 col1
----
0
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-466
SELECT DISTINCT + COUNT( * ) - + + 97 + - - 8 * - 54 * + CAST( + CASE 82 WHEN 26 THEN NULL WHEN MAX( DISTINCT - + 52 ) THEN - 36 ELSE NULL END AS DECIMAL ) / 71 + + + 38 * + 50 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT + COUNT ( * ) - + + 97 + - - 8 * - 54 * + CAST ( + CASE 82 WHEN 26 THEN NULL WHEN MAX ( DISTINCT - + 52 ) THEN - 36 ELSE NULL END AS REAL ) / 71 + + + 38 * + 50 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-467
SELECT ALL 44 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL 44 / 58
----
0

query I rowsort
SELECT + 14 + + 14 + + 1 col2
----
29

query I rowsort
SELECT ALL 84 - + + 18 + - 7 AS col1
----
59

query I rowsort
SELECT + + 1 * - 74 * 34 AS col1
----
-2516

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-471
SELECT - COUNT( * ) AS col0, 35 DIV - ( - 96 ) AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-471
SELECT - COUNT ( * ) AS col0, 35 / - ( - 96 ) AS col0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-472
SELECT ALL 11 DIV + - 58
----
0

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL 11 / + - 58
----
0

query I rowsort
SELECT + + ( + - 29 ) + + 26 + ( - 87 ) + + ( + + 30 ) * 12 - + 58 AS col2
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT DISTINCT 29 * + 30 * - SUM( DISTINCT - - 40 )
----
-34800

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT 29 * + 30 * - SUM ( DISTINCT - - 40 )
----
-34800

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT ALL - 71 * MAX( DISTINCT 50 ) AS col1, - COUNT( * ) * - 52 col2
----
-3550
52

skipif mysql # not compatible
query II rowsort label-475
SELECT ALL - 71 * MAX ( DISTINCT 50 ) AS col1, - COUNT ( * ) * - 52 col2
----
-3550
52

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT + NULLIF ( 22, + COUNT( * ) + - + 99 ) col1
----
22

skipif mysql # not compatible
query I rowsort label-476
SELECT + NULLIF ( 22, + COUNT ( * ) + - + 99 ) col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-477
SELECT DISTINCT - 54 * - - 7 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT - 54 * - - 7 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT ALL + COUNT( - 93 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL + COUNT ( - 93 ) AS col0
----
1

query II rowsort
SELECT ALL 55 * - 16 AS col0, + 1 - + 0 AS col2
----
-880
1

query I rowsort
SELECT - 66 + - + 54 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT COALESCE ( - - MAX( DISTINCT - 79 ), - + 55 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-481
SELECT COALESCE ( - - MAX ( DISTINCT - 79 ), - + 55 ) AS col1
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-482
SELECT - 42 + + 37 + 49 + + SUM( + 57 ) DIV COALESCE ( + MAX( DISTINCT + 36 ), - - 69, + COALESCE ( - 37, AVG ( ALL - 93 ), 73 + - + 66 ) )
----
45

skipif mysql # not compatible
query I rowsort label-482
SELECT - 42 + + 37 + 49 + + SUM ( + 57 ) / COALESCE ( + MAX ( DISTINCT + 36 ), - - 69, + COALESCE ( - 37, AVG ( ALL - 93 ), 73 + - + 66 ) )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT ALL + MIN( + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL + MIN ( + 12 )
----
12

query I rowsort
SELECT - 19 * + + 3 * + 41
----
-2337

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-486
SELECT COALESCE ( - - CAST( NULL AS SIGNED ), + - NULLIF ( 80, CAST( NULL AS SIGNED ) * - 1 - - AVG ( DISTINCT + 69 ) - 83 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-486
SELECT COALESCE ( - - CAST ( NULL AS INTEGER ), + - NULLIF ( 80, CAST ( NULL AS INTEGER ) * - 1 - - AVG ( DISTINCT + 69 ) - 83 ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT + 3 * - + CASE + 60 WHEN + COUNT( * ) THEN NULL WHEN - NULLIF ( + 95, - ( 52 ) + - 56 * + 35 + + 77 * + COUNT( * ) * 70 + - 77 ) THEN 64 * + - 69 + + 13 END + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-487
SELECT + 3 * - + CASE + 60 WHEN + COUNT ( * ) THEN NULL WHEN - NULLIF ( + 95, - ( 52 ) + - 56 * + 35 + + 77 * + COUNT ( * ) * 70 + - 77 ) THEN 64 * + - 69 + + 13 END + + 97
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT DISTINCT - ( + - 22 ) * + + ( + COUNT( * ) ) + 3 + 49 col1
----
74

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT - ( + - 22 ) * + + ( + COUNT ( * ) ) + 3 + 49 col1
----
74

query I rowsort
SELECT DISTINCT - 92 * + - 38 col0
----
3496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-491
SELECT ALL 27 * + 89 + - 85 + - + 20 / - SUM( - CAST( NULL AS SIGNED ) ) + - - 14 * - COUNT( * ) + + COUNT( * ) + 51 AS col0, - 52 AS col0
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-491
SELECT ALL 27 * + 89 + - 85 + - + 20 / - SUM ( - CAST ( NULL AS INTEGER ) ) + - - 14 * - COUNT ( * ) + + COUNT ( * ) + 51 AS col0, - 52 AS col0
----
NULL
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-492
SELECT ALL - COUNT( * ) * - NULLIF ( 69, + CAST( - + 25 AS SIGNED ) + + MAX( + 46 ) ) AS col2, 49 + 91
----
69
140

skipif mysql # not compatible
query II rowsort label-492
SELECT ALL - COUNT ( * ) * - NULLIF ( 69, + CAST ( - + 25 AS INTEGER ) + + MAX ( + 46 ) ) AS col2, 49 + 91
----
69
140

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-494
SELECT NULLIF ( - MIN( ALL + 93 ), + + COALESCE ( ( - 83 ), + CAST( NULL AS SIGNED ) / - ( - + COUNT( * ) ) ) - 90 * + - 0 ) col2
----
-93

skipif mysql # not compatible
query I rowsort label-494
SELECT NULLIF ( - MIN ( ALL + 93 ), + + COALESCE ( ( - 83 ), + CAST ( NULL AS INTEGER ) / - ( - + COUNT ( * ) ) ) - 90 * + - 0 ) col2
----
-93

query I rowsort
SELECT + + 57 + - 97 AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-496
SELECT + 18 + COALESCE ( - 65, + 78 + - CAST( - + 42 AS SIGNED ) + + NULLIF ( + 4, - 39 - - - 97 ) ) * 23 + + COUNT( * ) + - ( + 61 ) col1, - MAX( ALL + + CAST( NULL AS SIGNED ) )
----
-1537
NULL

skipif mysql # not compatible
query II rowsort label-496
SELECT + 18 + COALESCE ( - 65, + 78 + - CAST ( - + 42 AS INTEGER ) + + NULLIF ( + 4, - 39 - - - 97 ) ) * 23 + + COUNT ( * ) + - ( + 61 ) col1, - MAX ( ALL + + CAST ( NULL AS INTEGER ) )
----
-1537
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-497
SELECT ALL + + 6 DIV - COUNT( 46 )
----
-6

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL + + 6 / - COUNT ( 46 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT DISTINCT - + 26 - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT - + 26 - COUNT ( * )
----
-27

query II rowsort
SELECT DISTINCT + 75 - 79 AS col2, + 89 + + 41
----
-4
130

onlyif mysql # aggregate syntax: 
query II rowsort label-500
SELECT - MAX( ALL + 39 ), - 66 * + - 64 AS col2
----
-39
4224

skipif mysql # not compatible
query II rowsort label-500
SELECT - MAX ( ALL + 39 ), - 66 * + - 64 AS col2
----
-39
4224

query I rowsort
SELECT - 42 + + 2 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT - + COUNT( 52 ) - 40 + - + 95 * - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-502
SELECT - + COUNT ( 52 ) - 40 + - + 95 * - COUNT ( * )
----
54

query I rowsort
SELECT + + 56 * + 14 + - 16
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT - - NULLIF ( COUNT( * ), + 40 )
----
1

skipif mysql # not compatible
query I rowsort label-504
SELECT - - NULLIF ( COUNT ( * ), + 40 )
----
1

query I rowsort
SELECT ALL - 90 * + 75 col0
----
-6750

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

skipif mysql # not compatible
query I rowsort label-506
SELECT - COUNT ( * ) * 13 - + 46 AS col2
----
-59

query I rowsort
SELECT + 67 * + + 3
----
201

query I rowsort
SELECT - 37 * - 66 AS col2
----
2442

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-510
SELECT ALL - ( - 66 ) DIV - COUNT( * ) + 1 + + - 77 * 87
----
-6764

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL - ( - 66 ) / - COUNT ( * ) + 1 + + - 77 * 87
----
-6764

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

skipif mysql # not compatible
query I rowsort label-511
SELECT + COUNT ( * ) / - 37 AS col1
----
0

query I rowsort
SELECT + 31 * - + 88 * 74
----
-201872

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT 14 DIV + 29 + - 78 + + - 53 DIV 49
----
-79

skipif mysql # not compatible
query I rowsort label-513
SELECT 14 / + 29 + - 78 + + - 53 / 49
----
-79

query I rowsort
SELECT + 7 * - 76
----
-532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-515
SELECT COALESCE ( 50, - 80 - - 85 + 53 * + 53 - + COUNT( * ) * CAST( NULL AS SIGNED ) ) + - 85
----
-35

skipif mysql # not compatible
query I rowsort label-515
SELECT COALESCE ( 50, - 80 - - 85 + 53 * + 53 - + COUNT ( * ) * CAST ( NULL AS INTEGER ) ) + - 85
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-516
SELECT ALL 77 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-516
SELECT ALL 77 * - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT 36 + + + ( + - 89 ) + - 5
----
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-518
SELECT ALL 48 + - CAST( NULL AS DECIMAL ) + - + COUNT( - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL 48 + - CAST ( NULL AS REAL ) + - + COUNT ( - 30 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-519
SELECT ALL - 6 + - NULLIF ( + 48, + + 11 * CASE WHEN - COUNT( * ) NOT IN ( + CAST( + 86 AS SIGNED ) * - ( 24 ) * - 33 + + - 88, + CASE SUM( ALL 24 ) WHEN + 55 * + + 37 THEN - 86 * 33 WHEN + 15 * + + CAST( - 56 AS SIGNED ) * + 93 * + - 78 * + + 34 + - 44 + 24 + + 26 - + 80 + CASE - 80 WHEN - 2 * 68 - + 58 + - COUNT( * ) * + 78 THEN NULL ELSE + 51 * + COUNT( + 69 ) END - + 87 * 96 + - COALESCE ( CAST( NULL AS SIGNED ), COALESCE ( NULLIF ( - COUNT( * ), COUNT( * ) ), CAST( NULL AS SIGNED ), CAST( 5 AS SIGNED ) / SUM( - 64 + 81 ) + 46 ), COUNT( * ) ) THEN NULL WHEN 82 THEN NULL END + 90 ) THEN + COUNT( * ) ELSE NULL END ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL - 6 + - NULLIF ( + 48, + + 11 * CASE WHEN - COUNT ( * ) NOT IN ( + CAST ( + 86 AS INTEGER ) * - ( 24 ) * - 33 + + - 88, + CASE SUM ( ALL 24 ) WHEN + 55 * + + 37 THEN - 86 * 33 WHEN + 15 * + + CAST ( - 56 AS INTEGER ) * + 93 * + - 78 * + + 34 + - 44 + 24 + + 26 - + 80 + CASE - 80 WHEN - 2 * 68 - + 58 + - COUNT ( * ) * + 78 THEN NULL ELSE + 51 * + COUNT ( + 69 ) END - + 87 * 96 + - COALESCE ( CAST ( NULL AS INTEGER ), COALESCE ( NULLIF ( - COUNT ( * ), COUNT ( * ) ), CAST ( NULL AS INTEGER ), CAST ( 5 AS INTEGER ) / SUM ( - 64 + 81 ) + 46 ), COUNT ( * ) ) THEN NULL WHEN 82 THEN NULL END + 90 ) THEN + COUNT ( * ) ELSE NULL END ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT SUM( DISTINCT + 36 ) * + 63 * - 21 AS col0
----
-47628

skipif mysql # not compatible
query I rowsort label-520
SELECT SUM ( DISTINCT + 36 ) * + 63 * - 21 AS col0
----
-47628

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT DISTINCT MAX( DISTINCT + 99 ) + - - 45
----
144

skipif mysql # not compatible
query I rowsort label-521
SELECT DISTINCT MAX ( DISTINCT + 99 ) + - - 45
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT DISTINCT COUNT( * ) + - 94
----
-93

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT COUNT ( * ) + - 94
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT ALL 35 + + CASE 0 WHEN + 92 * + ( - 83 ) THEN + MIN( ALL - 48 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL 35 + + CASE 0 WHEN + 92 * + ( - 83 ) THEN + MIN ( ALL - 48 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT COUNT( * ) + 28
----
29

skipif mysql # not compatible
query I rowsort label-524
SELECT COUNT ( * ) + 28
----
29

query II rowsort
SELECT 15 AS col2, - 36 col1
----
15
-36

query I rowsort
SELECT 51 + 32 AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-527
SELECT 77 DIV 75 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-527
SELECT 77 / 75 AS col0
----
1

query I rowsort
SELECT - 46 + - 19 col2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-529
SELECT DISTINCT 20 - 80 DIV 73 col0
----
19

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT 20 - 80 / 73 col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT DISTINCT - CASE - 24 WHEN 27 THEN + ( COUNT( * ) ) + 67 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT - CASE - 24 WHEN 27 THEN + ( COUNT ( * ) ) + 67 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-531
SELECT 57 + 57 * + CAST( + 16 AS SIGNED ) AS col2
----
969

skipif mysql # not compatible
query I rowsort label-531
SELECT 57 + 57 * + CAST ( + 16 AS INTEGER ) AS col2
----
969

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-532
SELECT ALL + 45 DIV + COUNT( * ) + - - 17 AS col2, COALESCE ( + 5, - 73 * ( - - 35 ), 28, - ( 91 ) * + COUNT( * ) * + 16 + 84 + - 86 )
----
62
5

skipif mysql # not compatible
query II rowsort label-532
SELECT ALL + 45 / + COUNT ( * ) + - - 17 AS col2, COALESCE ( + 5, - 73 * ( - - 35 ), 28, - ( 91 ) * + COUNT ( * ) * + 16 + 84 + - 86 )
----
62
5

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT DISTINCT + 29 * 97 + + COUNT( * )
----
2814

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT + 29 * 97 + + COUNT ( * )
----
2814

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT ( 37 ) * - 64 * COALESCE ( + COUNT( * ), 8 + - + 12 ) AS col0
----
-2368

skipif mysql # not compatible
query I rowsort label-535
SELECT ( 37 ) * - 64 * COALESCE ( + COUNT ( * ), 8 + - + 12 ) AS col0
----
-2368

query I rowsort
SELECT + 96 + - + 78 col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-537
SELECT ALL + ( - 54 ) * + - COALESCE ( - 17, + + 62 * - COUNT( * ) DIV + SUM( + 63 ) * - 7 * - 9 + + SUM( DISTINCT - + 43 ) * 11 ) + - + 92 + - + 41 col1, 62 AS col2
----
-1051
62

skipif mysql # not compatible
query II rowsort label-537
SELECT ALL + ( - 54 ) * + - COALESCE ( - 17, + + 62 * - COUNT ( * ) / + SUM ( + 63 ) * - 7 * - 9 + + SUM ( DISTINCT - + 43 ) * 11 ) + - + 92 + - + 41 col1, 62 AS col2
----
-1051
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-538
SELECT - 62 * - CASE + - MIN( ALL + CAST( NULL AS SIGNED ) ) WHEN + + 45 THEN - 89 ELSE - 88 END + 4 * - MAX( DISTINCT CAST( NULL AS SIGNED ) ) * + - 42 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-538
SELECT - 62 * - CASE + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) WHEN + + 45 THEN - 89 ELSE - 88 END + 4 * - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * + - 42 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-539
SELECT + MAX( DISTINCT - 36 ) DIV + - 67 AS col2, 50 * - 88
----
0
-4400

skipif mysql # not compatible
query II rowsort label-539
SELECT + MAX ( DISTINCT - 36 ) / + - 67 AS col2, 50 * - 88
----
0
-4400

query II rowsort
SELECT 21 col1, 37 * + 18
----
21
666

query II rowsort
SELECT ALL - - 82 * 68 + + - 55 AS col1, - 85 AS col1
----
5521
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-542
SELECT ALL NULLIF ( ( - CASE - 78 WHEN + + COUNT( * ) THEN - + 84 - - + 81 END ), 44 ) AS col2, 44
----
NULL
44

skipif mysql # not compatible
query II rowsort label-542
SELECT ALL NULLIF ( ( - CASE - 78 WHEN + + COUNT ( * ) THEN - + 84 - - + 81 END ), 44 ) AS col2, 44
----
NULL
44

onlyif mysql # DIV for integer division: 
query I rowsort label-543
SELECT DISTINCT - NULLIF ( - 18, + 82 DIV + 33 * ( 23 ) * 34 * 2 * + 61 + 34 ) + - 95 + + + 34 DIV 61
----
-77

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT - NULLIF ( - 18, + 82 / + 33 * ( 23 ) * 34 * 2 * + 61 + 34 ) + - 95 + + + 34 / 61
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-544
SELECT DISTINCT + COUNT( * ) + + - ( - 64 ) + + + SUM( - ( 10 ) ) AS col0, - SUM( DISTINCT - NULLIF ( - 97, - - COALESCE ( - 48, - 52, - + 15 * - - 66 * 89 * 97 ) ) ) AS col1
----
55
-97

skipif mysql # not compatible
query II rowsort label-544
SELECT DISTINCT + COUNT ( * ) + + - ( - 64 ) + + + SUM ( - ( 10 ) ) AS col0, - SUM ( DISTINCT - NULLIF ( - 97, - - COALESCE ( - 48, - 52, - + 15 * - - 66 * 89 * 97 ) ) ) AS col1
----
55
-97

query I rowsort
SELECT ALL - 82 + 64 * + 28 AS col1
----
1710

query I rowsort
SELECT 26 + + 9 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT DISTINCT 95 + + NULLIF ( - COUNT( * ), - 96 )
----
94

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT 95 + + NULLIF ( - COUNT ( * ), - 96 )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-548
SELECT + 76, + ( + COUNT( - 91 ) ) DIV - 24 AS col0
----
76
0

skipif mysql # not compatible
query II rowsort label-548
SELECT + 76, + ( + COUNT ( - 91 ) ) / - 24 AS col0
----
76
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-549
SELECT ALL + COALESCE ( 75, + 89 * 24 - 74, - 49 DIV - ( 68 ) + ( COUNT( * ) ) ) * 58 AS col1
----
4350

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL + COALESCE ( 75, + 89 * 24 - 74, - 49 / - ( 68 ) + ( COUNT ( * ) ) ) * 58 AS col1
----
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT ALL - MIN( 23 ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL - MIN ( 23 ) col0
----
-23

query I rowsort
SELECT ( + 7 ) + - + 74
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-552
SELECT DISTINCT 53 DIV + - 61
----
0

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT 53 / + - 61
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-553
SELECT + 44 AS col1, - 21 * 97 + + COUNT( * ) + - - 31
----
44
-2005

skipif mysql # not compatible
query II rowsort label-553
SELECT + 44 AS col1, - 21 * 97 + + COUNT ( * ) + - - 31
----
44
-2005

query I rowsort
SELECT ALL 88 * - 47
----
-4136

query I rowsort
SELECT DISTINCT 65 * - 97 + - 8 AS col2
----
-6313

query I rowsort
SELECT ALL + 60 * + 52
----
3120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-557
SELECT + + COALESCE ( + 71, - 20, + 13 - + + COALESCE ( 51, - 28 DIV - 34 + + ( + COUNT( * ) ) * COUNT( * ), - 65 * 4 ), + 76 * 68 - + CASE + 12 WHEN + 0 THEN NULL WHEN + 44 * 56 * + 0 DIV + - 63 + 43 THEN - CAST( NULL AS SIGNED ) + + 20 END )
----
71

skipif mysql # not compatible
query I rowsort label-557
SELECT + + COALESCE ( + 71, - 20, + 13 - + + COALESCE ( 51, - 28 / - 34 + + ( + COUNT ( * ) ) * COUNT ( * ), - 65 * 4 ), + 76 * 68 - + CASE + 12 WHEN + 0 THEN NULL WHEN + 44 * 56 * + 0 / + - 63 + 43 THEN - CAST ( NULL AS INTEGER ) + + 20 END )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-558
SELECT ALL + 16 * - ( - COUNT( - 98 ) ) * ( + 70 ) * + 38 + 56 + + 13 + + + 47 * 41 + - + CASE + CAST( + 98 AS SIGNED ) WHEN + - CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) THEN 72 * + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) * - 56 - 35 WHEN COUNT( + 48 ) THEN 65 END * + 22 + 48 + - + CASE - 83 WHEN - 65 THEN NULL WHEN + 48 THEN + + NULLIF ( + CAST( 21 AS SIGNED ), 79 * + - 14 / + - MAX( + 83 ) - - 14 ) / - 89 ELSE NULL END * - ( 29 + 57 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL + 16 * - ( - COUNT ( - 98 ) ) * ( + 70 ) * + 38 + 56 + + 13 + + + 47 * 41 + - + CASE + CAST ( + 98 AS INTEGER ) WHEN + - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) THEN 72 * + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) * - 56 - 35 WHEN COUNT ( + 48 ) THEN 65 END * + 22 + 48 + - + CASE - 83 WHEN - 65 THEN NULL WHEN + 48 THEN + + NULLIF ( + CAST ( 21 AS INTEGER ), 79 * + - 14 / + - MAX ( + 83 ) - - 14 ) / - 89 ELSE NULL END * - ( 29 + 57 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-559
SELECT ALL 36 * SUM( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL 36 * SUM ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 59 * + 5 AS col0
----
295

query I rowsort
SELECT - 94 * - - 3
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT DISTINCT SUM( ALL + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT SUM ( ALL + 11 )
----
11

query I rowsort
SELECT - 60 * + - 22 AS col2
----
1320

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-564
SELECT ALL + - CAST( NULL AS DECIMAL ) * + 75 * + 5 * - COUNT( * ) + 89 + + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL + - CAST ( NULL AS REAL ) * + 75 * + 5 * - COUNT ( * ) + 89 + + 92 AS col0
----
NULL

query I rowsort
SELECT ALL + 15 + 43
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-566
SELECT - - 20 AS col0, - COALESCE ( 38, + CASE + AVG ( - - 87 ) WHEN - COALESCE ( + + 86, + 28, + + 86, + - 33 * - 69 ) THEN NULL WHEN - 95 * + 12 THEN - - 12 + + ( + 39 ) * + + 7 * + 64 ELSE NULL END * - 40 DIV 4 - - COUNT( * ) DIV + SUM( DISTINCT - + 5 ) - + MAX( ALL 49 ) + + 37 * - 72 + - 19 ) + 83 AS col0
----
20
45

skipif mysql # not compatible
query II rowsort label-566
SELECT - - 20 AS col0, - COALESCE ( 38, + CASE + AVG ( - - 87 ) WHEN - COALESCE ( + + 86, + 28, + + 86, + - 33 * - 69 ) THEN NULL WHEN - 95 * + 12 THEN - - 12 + + ( + 39 ) * + + 7 * + 64 ELSE NULL END * - 40 / 4 - - COUNT ( * ) / + SUM ( DISTINCT - + 5 ) - + MAX ( ALL 49 ) + + 37 * - 72 + - 19 ) + 83 AS col0
----
20
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-567
SELECT ALL - COALESCE ( COUNT( ALL - - 53 ), - + 2, + - 68 ) DIV + 52 + + 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL - COALESCE ( COUNT ( ALL - - 53 ), - + 2, + - 68 ) / + 52 + + 15 AS col0
----
15

query I rowsort
SELECT DISTINCT ( - 2 ) + NULLIF ( - 81, - 12 )
----
-83

query II rowsort
SELECT - 99 AS col0, + 52
----
-99
52

query I rowsort
SELECT NULLIF ( 46, ( - 69 ) ) + - 49 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-571
SELECT ALL + 41 * + - COALESCE ( - - 88, CAST( NULL AS SIGNED ) )
----
-3608

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL + 41 * + - COALESCE ( - - 88, CAST ( NULL AS INTEGER ) )
----
-3608

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT 20 + 6 + + MIN( DISTINCT 68 ) * ( + NULLIF ( + 85, + + 69 ) )
----
5806

skipif mysql # not compatible
query I rowsort label-572
SELECT 20 + 6 + + MIN ( DISTINCT 68 ) * ( + NULLIF ( + 85, + + 69 ) )
----
5806

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT - 96 - + + MAX( ALL + 56 ) col0
----
-152

skipif mysql # not compatible
query I rowsort label-573
SELECT - 96 - + + MAX ( ALL + 56 ) col0
----
-152

query I rowsort
SELECT ALL + ( + 97 ) + - 20
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT - 66 + + + 14 + - ( + 88 ) + - 57 * COUNT( ALL + 93 ) + + 1
----
-196

skipif mysql # not compatible
query I rowsort label-575
SELECT - 66 + + + 14 + - ( + 88 ) + - 57 * COUNT ( ALL + 93 ) + + 1
----
-196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-576
SELECT - 42 + - - CAST( COUNT( * ) AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-576
SELECT - 42 + - - CAST ( COUNT ( * ) AS INTEGER )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT ALL - 51 + SUM( ALL - + 35 )
----
-86

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL - 51 + SUM ( ALL - + 35 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-578
SELECT DISTINCT + 17 * + + 34 * + CASE - NULLIF ( + AVG ( - NULLIF ( + - 42, 81 ) ), 34 ) WHEN - MAX( ALL + - 71 ) THEN + - COALESCE ( + 88, - - 51 * + CAST( - 9 AS SIGNED ), + + 70 ) + - COUNT( * ) END + - COUNT( * ) * - - 84 AS col0, 88 col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-578
SELECT DISTINCT + 17 * + + 34 * + CASE - NULLIF ( + AVG ( - NULLIF ( + - 42, 81 ) ), 34 ) WHEN - MAX ( ALL + - 71 ) THEN + - COALESCE ( + 88, - - 51 * + CAST ( - 9 AS INTEGER ), + + 70 ) + - COUNT ( * ) END + - COUNT ( * ) * - - 84 AS col0, 88 col0
----
NULL
88

query I rowsort
SELECT ALL - 34 * 2 + 77 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT NULLIF ( 2, - 21 + - 5 * + COUNT( * ) + COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-580
SELECT NULLIF ( 2, - 21 + - 5 * + COUNT ( * ) + COUNT ( * ) )
----
2

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

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

query I rowsort
SELECT - ( - 21 ) * + - 19 * - 51 + - - 79 + - - CASE - + 38 WHEN + - 99 * - 9 + + 78 THEN - 96 WHEN + 61 + - 42 + 31 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-583
SELECT DISTINCT - 62 * + CAST( ( - CASE - 80 WHEN + - 25 THEN + ( CAST( - COUNT( * ) AS SIGNED ) ) WHEN - 58 THEN + ( - + 71 ) WHEN - 21 THEN NULL END ) AS SIGNED ) * 56 + + 0 * + AVG ( + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT - 62 * + CAST ( ( - CASE - 80 WHEN + - 25 THEN + ( CAST ( - COUNT ( * ) AS INTEGER ) ) WHEN - 58 THEN + ( - + 71 ) WHEN - 21 THEN NULL END ) AS INTEGER ) * 56 + + 0 * + AVG ( + 5 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-584
SELECT + - 51 DIV COUNT( ALL - 63 ) * - 47 + + COUNT( * )
----
2398

skipif mysql # not compatible
query I rowsort label-584
SELECT + - 51 / COUNT ( ALL - 63 ) * - 47 + + COUNT ( * )
----
2398

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

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

query I rowsort
SELECT - - 49 + - + 78 * COALESCE ( + + NULLIF ( 76, - 12 + - 76 ), + 38 ) * - + ( + 64 ) AS col2
----
379441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-587
SELECT - COALESCE ( - + 50, 51 ) DIV - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-587
SELECT - COALESCE ( - + 50, 51 ) / - COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-588
SELECT ALL + COUNT( + - 26 ) DIV - 32, + 89 AS col0
----
0
89

skipif mysql # not compatible
query II rowsort label-588
SELECT ALL + COUNT ( + - 26 ) / - 32, + 89 AS col0
----
0
89

query I rowsort
SELECT - + 74 + - 82 * 56 * - 67
----
307590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-590
SELECT + + CASE MAX( 21 ) WHEN - - 89 THEN + COUNT( * ) WHEN - - 77 THEN + 57 ELSE + 73 END - + - MIN( CAST( NULL AS SIGNED ) ) + + 5 / - + ( + 66 ) * - 96 / - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-590
SELECT + + CASE MAX ( 21 ) WHEN - - 89 THEN + COUNT ( * ) WHEN - - 77 THEN + 57 ELSE + 73 END - + - MIN ( CAST ( NULL AS INTEGER ) ) + + 5 / - + ( + 66 ) * - 96 / - - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT + 91 * - ( + + CASE + + ( - 72 ) WHEN 49 + + - 92 THEN - COUNT( * ) + 65 ELSE 26 + + - 0 END )
----
-2366

skipif mysql # not compatible
query I rowsort label-591
SELECT + 91 * - ( + + CASE + + ( - 72 ) WHEN 49 + + - 92 THEN - COUNT ( * ) + 65 ELSE 26 + + - 0 END )
----
-2366

query II rowsort
SELECT + + 24 + 11 AS col1, - 10
----
35
-10

query I rowsort
SELECT ALL 84 + + ( 59 ) AS col2
----
143

query I rowsort
SELECT DISTINCT 23 * 0
----
0

query I rowsort
SELECT ALL - 44 + - 43 AS col0
----
-87

query I rowsort
SELECT ALL - 64 + 75 + + - 25 + + - 64 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT + ( + 70 ) + - - MAX( DISTINCT 81 ) * + + NULLIF ( + 13, - 24 ) * COUNT( * ) + - 20 AS col1
----
1103

skipif mysql # not compatible
query I rowsort label-597
SELECT + ( + 70 ) + - - MAX ( DISTINCT 81 ) * + + NULLIF ( + 13, - 24 ) * COUNT ( * ) + - 20 AS col1
----
1103

query I rowsort
SELECT - 8 + - 96 AS col0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT - COUNT( DISTINCT + - 81 ) + - 46 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-599
SELECT - COUNT ( DISTINCT + - 81 ) + - 46 AS col1
----
-47

query I rowsort
SELECT + 66 * + 13 AS col0
----
858

query I rowsort
SELECT ALL 72 + + 45
----
117

query I rowsort
SELECT ALL - 83 + - 67 AS col0
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-603
SELECT 88 AS col2, ( - COUNT( * ) )
----
88
-1

skipif mysql # not compatible
query II rowsort label-603
SELECT 88 AS col2, ( - COUNT ( * ) )
----
88
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-604
SELECT ALL + 19 + COUNT( * ) DIV - + 43 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL + 19 + COUNT ( * ) / - + 43 AS col0
----
19

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-606
SELECT ALL 64 AS col0, + 72 * ( - COUNT( * ) ) * + 3 AS col1
----
64
-216

skipif mysql # not compatible
query II rowsort label-606
SELECT ALL 64 AS col0, + 72 * ( - COUNT ( * ) ) * + 3 AS col1
----
64
-216

query I rowsort
SELECT DISTINCT ( - - 57 ) - - 45 col0
----
102

query I rowsort
SELECT ALL - 47 * 58
----
-2726

query I rowsort
SELECT DISTINCT 60 * + - 66 AS col1
----
-3960

query I rowsort
SELECT - 6 * + 33
----
-198

query I rowsort
SELECT ALL - 47 * + 37 AS col0
----
-1739

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT + 18 + + + 23 + + COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-612
SELECT + 18 + + + 23 + + COUNT ( * ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT ALL MIN( DISTINCT 55 ) * - 52 AS col2
----
-2860

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL MIN ( DISTINCT 55 ) * - 52 AS col2
----
-2860

query I rowsort
SELECT DISTINCT 17 * + 41 AS col0
----
697

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-615
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-615
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 22
----
NULL
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-616
SELECT - CAST( NULL AS SIGNED ) * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-616
SELECT - CAST ( NULL AS INTEGER ) * 23
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 88, - 95, - 58 * - - 85 + COALESCE ( - 62, + 2 ) - - + 85 * + 16, + + ( 97 ) )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-618
SELECT + 48 DIV + + 38 + 84 + + - COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-618
SELECT + 48 / + + 38 + 84 + + - COUNT ( * ) AS col0
----
84

query I rowsort
SELECT DISTINCT + ( - 99 )
----
-99

query I rowsort
SELECT - 79 * + NULLIF ( - - 55, + - 67 ) - + 93 AS col1
----
-4438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-621
SELECT - + 89 * - - 33 - CAST( 33 AS SIGNED ) col0
----
-2970

skipif mysql # not compatible
query I rowsort label-621
SELECT - + 89 * - - 33 - CAST ( 33 AS INTEGER ) col0
----
-2970

query II rowsort
SELECT + 92, 63 AS col1
----
92
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-623
SELECT + - 1 AS col0, COUNT( * ) + - 79 DIV 67 + - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-623
SELECT + - 1 AS col0, COUNT ( * ) + - 79 / 67 + - COUNT ( * )
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT - COALESCE ( COUNT( * ), - + COUNT( * ) + + 61, - ( + 75 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-624
SELECT - COALESCE ( COUNT ( * ), - + COUNT ( * ) + + 61, - ( + 75 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT SUM( + + 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-625
SELECT SUM ( + + 98 ) AS col0
----
98

query I rowsort
SELECT - + 28 * - - 63
----
-1764

query I rowsort
SELECT ALL - 17 * 33 + - - ( + 67 ) AS col1
----
-494

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-629
SELECT DISTINCT + 98 * - 13 + + + 92 * - CAST( NULL AS SIGNED ) + + 17 * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT + 98 * - 13 + + + 92 * - CAST ( NULL AS INTEGER ) + + 17 * - 31
----
NULL

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

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

query I rowsort
SELECT ALL - ( + 67 ) AS col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-632
SELECT CAST( - ( - 18 ) AS SIGNED ) AS col1, + CAST( NULL AS SIGNED ) / - - 72 + + 24 AS col2
----
18
NULL

skipif mysql # not compatible
query II rowsort label-632
SELECT CAST ( - ( - 18 ) AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) / - - 72 + + 24 AS col2
----
18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT DISTINCT 20 + - COUNT( * ) - + 10
----
9

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT 20 + - COUNT ( * ) - + 10
----
9

query I rowsort
SELECT ALL 78 + - 30 + - 65 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT COUNT( * ) * - 79 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-635
SELECT COUNT ( * ) * - 79 AS col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-636
SELECT DISTINCT + ( + SUM( - - 83 ) ) DIV - 45 * - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT + ( + SUM ( - - 83 ) ) / - 45 * - COUNT ( * ) col0
----
1

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

skipif mysql # not compatible
query I rowsort label-637
SELECT 45 - + CAST ( + 33 AS INTEGER ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-638
SELECT DISTINCT 84 - + NULLIF ( 33, - CASE - 12 WHEN 2 THEN - 6 WHEN 15 THEN - CAST( - COUNT( ALL + 20 ) AS SIGNED ) + + COUNT( * ) END + + 50 )
----
51

skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT 84 - + NULLIF ( 33, - CASE - 12 WHEN 2 THEN - 6 WHEN 15 THEN - CAST ( - COUNT ( ALL + 20 ) AS INTEGER ) + + COUNT ( * ) END + + 50 )
----
51

query I rowsort
SELECT 35 * + 82 * - ( + 87 ) AS col2
----
-249690

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT DISTINCT 36 * - COUNT( * ) * - 52
----
1872

skipif mysql # not compatible
query I rowsort label-640
SELECT DISTINCT 36 * - COUNT ( * ) * - 52
----
1872

query I rowsort
SELECT 54 + + 87 + 14 AS col1
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT 90 - - 48 DIV + 66 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-642
SELECT 90 - - 48 / + 66 AS col1
----
90

query I rowsort
SELECT 60 * - ( - + 80 )
----
4800

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

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL - COUNT ( * ) * - + 45 / 87 * 33
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-645
SELECT + 44 DIV - ( 75 ) + ( ( 94 ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-645
SELECT + 44 / - ( 75 ) + ( ( 94 ) ) AS col0
----
94

query I rowsort
SELECT 99 + - + 16 * - + 52 AS col0
----
931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-647
SELECT ALL 5 * - 25 * CAST( 61 AS SIGNED ) * 52 + - - 34 + - + 28 AS col2
----
-396494

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL 5 * - 25 * CAST ( 61 AS INTEGER ) * 52 + - - 34 + - + 28 AS col2
----
-396494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-648
SELECT - ( + 78 ) AS col0, + ( + - CAST( NULL AS SIGNED ) ) + - + 62 + 21 + - + 99 * - MIN( DISTINCT + 10 ) AS col0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-648
SELECT - ( + 78 ) AS col0, + ( + - CAST ( NULL AS INTEGER ) ) + - + 62 + 21 + - + 99 * - MIN ( DISTINCT + 10 ) AS col0
----
-78
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-649
SELECT CAST( - 46 AS SIGNED ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-649
SELECT CAST ( - 46 AS INTEGER ) AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-650
SELECT - 99 DIV - - 42 + + - 16 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-650
SELECT - 99 / - - 42 + + - 16 AS col2
----
-18

query I rowsort
SELECT DISTINCT + 30 + - 77 * + 42 + + 65
----
-3139

query I rowsort
SELECT DISTINCT 87 + - 94
----
-7

query I rowsort
SELECT ( - 25 ) - - 60
----
35

query I rowsort
SELECT + 49 * + 25
----
1225

query I rowsort
SELECT + 14 * + 71 + + 48
----
1042

query I rowsort
SELECT ALL + + 35 + 96 + + 57 * 23
----
1442

query I rowsort
SELECT 5 + 44 AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-658
SELECT - 18 * - 47 * - CAST( NULL AS SIGNED ) * - 11 * + COALESCE ( - - 60, + 74 + - + 91, + - 70 ) * + + 81 / - CASE + SUM( - 28 ) WHEN + + 34 THEN + 79 * + SUM( ALL + 80 ) WHEN - - 19 THEN + 32 END / - SUM( ALL + 72 ) * AVG ( + + 92 ) + + + 56 - + MIN( DISTINCT ( - + 72 ) ) * + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-658
SELECT - 18 * - 47 * - CAST ( NULL AS INTEGER ) * - 11 * + COALESCE ( - - 60, + 74 + - + 91, + - 70 ) * + + 81 / - CASE + SUM ( - 28 ) WHEN + + 34 THEN + 79 * + SUM ( ALL + 80 ) WHEN - - 19 THEN + 32 END / - SUM ( ALL + 72 ) * AVG ( + + 92 ) + + + 56 - + MIN ( DISTINCT ( - + 72 ) ) * + 65 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-659
SELECT ALL - 61 * 18 * COALESCE ( - 40, 18 + + CAST( NULL AS SIGNED ), + ( + 69 ) ) + - 32 * 86 + - + 52
----
41116

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL - 61 * 18 * COALESCE ( - 40, 18 + + CAST ( NULL AS INTEGER ), + ( + 69 ) ) + - 32 * 86 + - + 52
----
41116

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-660
SELECT - COUNT( * ) + + 37 AS col0, 7 DIV + + 93 AS col0
----
36
0

skipif mysql # not compatible
query II rowsort label-660
SELECT - COUNT ( * ) + + 37 AS col0, 7 / + + 93 AS col0
----
36
0

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT 95 - COUNT( * ) * 63
----
32

skipif mysql # not compatible
query I rowsort label-661
SELECT 95 - COUNT ( * ) * 63
----
32

query I rowsort
SELECT ALL - - 22 * - 42 * - + 59
----
54516

onlyif mysql # aggregate syntax: 
query II rowsort label-663
SELECT - - COUNT( * ) * 13 + 85 * - COUNT( * ) + - 2 + 49 + + 75 * - + 80 + + + 15, COUNT( * ) AS col0
----
-6010
1

skipif mysql # not compatible
query II rowsort label-663
SELECT - - COUNT ( * ) * 13 + 85 * - COUNT ( * ) + - 2 + 49 + + 75 * - + 80 + + + 15, COUNT ( * ) AS col0
----
-6010
1

query I rowsort
SELECT ALL - 12 * + + ( - 51 ) AS col2
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT DISTINCT - 37 - - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT - 37 - - COUNT ( * )
----
-36

query I rowsort
SELECT DISTINCT 90 - - 8
----
98

query I rowsort
SELECT ALL + 65 * + 57 * - 16
----
-59280

query II rowsort
SELECT 13 AS col0, 18 AS col1
----
13
18

query I rowsort
SELECT 35 * 14 AS col0
----
490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-670
SELECT ALL COUNT( * ), - 82 * - 98 + CAST( 80 AS SIGNED ) + 32 + 24 AS col1
----
1
8172

skipif mysql # not compatible
query II rowsort label-670
SELECT ALL COUNT ( * ), - 82 * - 98 + CAST ( 80 AS INTEGER ) + 32 + 24 AS col1
----
1
8172

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT CASE - 33 WHEN + 88 + + 84 THEN NULL WHEN + 6 THEN NULL WHEN - MAX( - 81 ) THEN NULL ELSE + 11 END * 33 * - + 79 * + ( + 45 )
----
-1290465

skipif mysql # not compatible
query I rowsort label-671
SELECT CASE - 33 WHEN + 88 + + 84 THEN NULL WHEN + 6 THEN NULL WHEN - MAX ( - 81 ) THEN NULL ELSE + 11 END * 33 * - + 79 * + ( + 45 )
----
-1290465

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT CASE - 20 WHEN + 0 THEN - COUNT( * ) * - COALESCE ( - + 80, - - 44 + + - 77 + + 85, - - COUNT( * ) ) * + - 78 - - COALESCE ( + COUNT( - 27 ), - - MIN( 41 ) * 50 * - 53 + 36 / - 21 ) END + - ( - + ( + 33 ) ) * COUNT( * ) * + ( + 76 ) + + 88 + 4 * 34 * 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT CASE - 20 WHEN + 0 THEN - COUNT ( * ) * - COALESCE ( - + 80, - - 44 + + - 77 + + 85, - - COUNT ( * ) ) * + - 78 - - COALESCE ( + COUNT ( - 27 ), - - MIN ( 41 ) * 50 * - 53 + 36 / - 21 ) END + - ( - + ( + 33 ) ) * COUNT ( * ) * + ( + 76 ) + + 88 + 4 * 34 * 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-673
SELECT - 25 AS col0, 72 - - ( - COUNT( * ) ) * - 71 * - 0 AS col0
----
-25
72

skipif mysql # not compatible
query II rowsort label-673
SELECT - 25 AS col0, 72 - - ( - COUNT ( * ) ) * - 71 * - 0 AS col0
----
-25
72

query I rowsort
SELECT 70 * - + 32
----
-2240

onlyif mysql # DIV for integer division: 
query I rowsort label-675
SELECT ALL + 30 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL + 30 / - 43
----
0

query I rowsort
SELECT ALL 17 * ( + 13 ) AS col0
----
221

query I rowsort
SELECT ALL - 57 * - 19 AS col0
----
1083

query I rowsort
SELECT 60 * 91
----
5460

query I rowsort
SELECT 95 * 34
----
3230

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

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

query I rowsort
SELECT DISTINCT 64 * 80
----
5120

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT ALL COUNT( * ) + - - CASE + 87 WHEN - 7 - + 93 + + 18 + + 59 + CASE + 81 WHEN COUNT( * ) + - 71 THEN 11 / + 98 * - 74 - 19 WHEN 2 THEN 2 ELSE NULL END + - 89 THEN 13 ELSE NULL END + 73 + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL COUNT ( * ) + - - CASE + 87 WHEN - 7 - + 93 + + 18 + + 59 + CASE + 81 WHEN COUNT ( * ) + - 71 THEN 11 / + 98 * - 74 - 19 WHEN 2 THEN 2 ELSE NULL END + - 89 THEN 13 ELSE NULL END + 73 + 87
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-683
SELECT ALL 82 + CAST( - 41 AS SIGNED ) + + 29 + - SUM( ALL 98 ) * - + COUNT( * ) + + 48 * - 35 AS col2
----
-1512

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL 82 + CAST ( - 41 AS INTEGER ) + + 29 + - SUM ( ALL 98 ) * - + COUNT ( * ) + + 48 * - 35 AS col2
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT - 70 + - COUNT( DISTINCT 27 ) * - + COUNT( * ) col2
----
-69

skipif mysql # not compatible
query I rowsort label-684
SELECT - 70 + - COUNT ( DISTINCT 27 ) * - + COUNT ( * ) col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-685
SELECT ALL CASE - - 98 WHEN + 44 THEN NULL ELSE 73 END * - + 31 - + COUNT( * ) + 45 + + ( + - 21 ) DIV + 17
----
-2220

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL CASE - - 98 WHEN + 44 THEN NULL ELSE 73 END * - + 31 - + COUNT ( * ) + 45 + + ( + - 21 ) / + 17
----
-2220

query I rowsort
SELECT ALL + 33 * + - 72 + - 4 AS col1
----
-2380

onlyif mysql # aggregate syntax: 
query II rowsort label-687
SELECT ALL + 76 * - - 39 * 31 + + 34 + 32 col2, + COUNT( - 48 ) - ( 76 ) * + - 83 * 5 + - COUNT( * ) + + 64
----
91950
31604

skipif mysql # not compatible
query II rowsort label-687
SELECT ALL + 76 * - - 39 * 31 + + 34 + 32 col2, + COUNT ( - 48 ) - ( 76 ) * + - 83 * 5 + - COUNT ( * ) + + 64
----
91950
31604

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT DISTINCT + CASE + 60 WHEN - - 81 THEN NULL WHEN + + MIN( - NULLIF ( - 64, - 62 ) ) THEN - ( - 83 ) * - 54 * - + CASE WHEN NULL IS NOT NULL THEN - 22 END WHEN - + 82 THEN NULL END * - MIN( - + 85 ) * MIN( + 82 ) * - 30 * + 18 - 76 + - 19 + 91 + - + 98 + + 24 * + 76 + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT + CASE + 60 WHEN - - 81 THEN NULL WHEN + + MIN ( - NULLIF ( - 64, - 62 ) ) THEN - ( - 83 ) * - 54 * - + CASE WHEN NULL IS NOT NULL THEN - 22 END WHEN - + 82 THEN NULL END * - MIN ( - + 85 ) * MIN ( + 82 ) * - 30 * + 18 - 76 + - 19 + 91 + - + 98 + + 24 * + 76 + + 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-689
SELECT ALL + CASE 61 WHEN - 11 + 77 THEN + 26 - - - COUNT( 51 ) ELSE NULL END / - - 95, + 62 AS col0
----
NULL
62

skipif mysql # not compatible
query II rowsort label-689
SELECT ALL + CASE 61 WHEN - 11 + 77 THEN + 26 - - - COUNT ( 51 ) ELSE NULL END / - - 95, + 62 AS col0
----
NULL
62

query I rowsort
SELECT 41 + - + 36 AS col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-691
SELECT ALL + 30, 57 + + 66 + SUM( DISTINCT + 64 ) AS col1
----
30
187

skipif mysql # not compatible
query II rowsort label-691
SELECT ALL + 30, 57 + + 66 + SUM ( DISTINCT + 64 ) AS col1
----
30
187

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT + SUM( DISTINCT + COALESCE ( - 96, 76, + 24 - 54 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-692
SELECT + SUM ( DISTINCT + COALESCE ( - 96, 76, + 24 - 54 ) )
----
-96

query I rowsort
SELECT + ( 22 ) * 7 * - 41
----
-6314

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-694
SELECT DISTINCT - 96 * 6 * 23 * - 44 - - - 93 AS col1, COUNT( * ) DIV + COUNT( * ) AS col1
----
582819
1

skipif mysql # not compatible
query II rowsort label-694
SELECT DISTINCT - 96 * 6 * 23 * - 44 - - - 93 AS col1, COUNT ( * ) / + COUNT ( * ) AS col1
----
582819
1

query I rowsort
SELECT DISTINCT - ( + - 82 ) * + - 8 - + 99 + - 35 * + 68 AS col1
----
-3135

query I rowsort
SELECT ALL + COALESCE ( + 87, + - 22 )
----
87

query II rowsort
SELECT ALL + 69 AS col0, - 93
----
69
-93

query I rowsort
SELECT + - 35 * - 6 + + ( - - 58 ) - - 37 AS col2
----
305

onlyif mysql # DIV for integer division: 
query I rowsort label-699
SELECT ALL + 24 DIV 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL + 24 / 58 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-700
SELECT - - 19 DIV + - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-700
SELECT - - 19 / + - 92 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-701
SELECT DISTINCT + - NULLIF ( - 56, 17 * - COUNT( * ) - + 65 * - CAST( 71 AS SIGNED ) * + 63 )
----
56

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT + - NULLIF ( - 56, 17 * - COUNT ( * ) - + 65 * - CAST ( 71 AS INTEGER ) * + 63 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT ALL + + MIN( 87 )
----
87

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL + + MIN ( 87 )
----
87

query I rowsort
SELECT ALL COALESCE ( - 12, + 68 ) - 97 - + 57 AS col2
----
-166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-704
SELECT ALL 2 DIV - NULLIF ( + - ( 81 ), COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL 2 / - NULLIF ( + - ( 81 ), COUNT ( * ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-705
SELECT + NULLIF ( + - 23, + COALESCE ( + 35, 44, - - COUNT( * ), 80 ) ) AS col1, + 79
----
-23
79

skipif mysql # not compatible
query II rowsort label-705
SELECT + NULLIF ( + - 23, + COALESCE ( + 35, 44, - - COUNT ( * ), 80 ) ) AS col1, + 79
----
-23
79

query I rowsort
SELECT + 25 - - ( + 3 )
----
28

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

query II rowsort
SELECT - 58 col0, + 24
----
-58
24

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT - 37 * - 66 - - MAX( ALL 20 ) AS col0
----
2462

skipif mysql # not compatible
query I rowsort label-709
SELECT - 37 * - 66 - - MAX ( ALL 20 ) AS col0
----
2462

query II rowsort
SELECT 4, 4
----
4
4

onlyif mysql # DIV for integer division: 
query II rowsort label-711
SELECT - 15 AS col1, - 78 DIV - + 83
----
-15
0

skipif mysql # not compatible
query II rowsort label-711
SELECT - 15 AS col1, - 78 / - + 83
----
-15
0

query I rowsort
SELECT ALL + 34 * + 88 AS col0
----
2992

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

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL COUNT ( DISTINCT + 92 ) AS col0
----
1

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

query I rowsort
SELECT - 47 - + 26
----
-73

query I rowsort
SELECT ALL + 98 + + + 82 * - 84 + + 91 AS col0
----
-6699

query I rowsort
SELECT ALL + 26 * ( - 92 )
----
-2392

query I rowsort
SELECT DISTINCT NULLIF ( - 82, + 9 / 58 + - 29 ) AS col2
----
-82

query I rowsort
SELECT - 94 + + + 34
----
-60

query I rowsort
SELECT ALL - 53 + - 1 + 17 AS col0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-721
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - - 49 + + + ( - 42 ) * + 15 + - 86 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-721
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 49 + + + ( - 42 ) * + 15 + - 86 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT - COUNT( - 14 ) + 53 - 46 * - 90 AS col2
----
4192

skipif mysql # not compatible
query I rowsort label-723
SELECT - COUNT ( - 14 ) + 53 - 46 * - 90 AS col2
----
4192

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT ALL ( MAX( ALL - COALESCE ( + + 18, - - 68 + - + 2 ) ) ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL ( MAX ( ALL - COALESCE ( + + 18, - - 68 + - + 2 ) ) ) AS col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-725
SELECT - + COALESCE ( - - 33, + - AVG ( - COALESCE ( - 46, - 34, - + 83 ) ) * + 38 DIV + 94 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-725
SELECT - + COALESCE ( - - 33, + - AVG ( - COALESCE ( - 46, - 34, - + 83 ) ) * + 38 / + 94 ) AS col0
----
-33

query I rowsort
SELECT ALL + + 31 + 67
----
98

query II rowsort
SELECT ALL - + 68 + 3 AS col1, 6
----
-65
6

query I rowsort
SELECT ALL 21 + 37
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT ALL + 71 + MAX( 44 ) * + 50 + - - 50 col0
----
2321

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL + 71 + MAX ( 44 ) * + 50 + - - 50 col0
----
2321

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-731
SELECT ALL - 86 * + + 72 DIV - COUNT( * ) col1
----
6192

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL - 86 * + + 72 / - COUNT ( * ) col1
----
6192

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT ( - + MIN( ALL - 56 ) )
----
56

skipif mysql # not compatible
query I rowsort label-733
SELECT ( - + MIN ( ALL - 56 ) )
----
56

query I rowsort
SELECT ALL - 94 * + - 84 + - 89
----
7807

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT - - MIN( - 42 ) + 30 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-735
SELECT - - MIN ( - 42 ) + 30 AS col1
----
-12

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

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT - 78 * + COUNT ( * ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT ALL - + 2 * + 36 - 35 + 79 - + - COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL - + 2 * + 36 - 35 + 79 - + - COUNT ( * ) AS col2
----
-27

query I rowsort
SELECT ALL + - ( + - AVG ( DISTINCT - + ( - CASE + 62 WHEN + - 58 THEN + 97 WHEN + 34 THEN NULL ELSE NULL END ) ) ) AS col1
----
NULL

query I rowsort
SELECT + - 89 * + 87 AS col1
----
-7743

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT + COUNT( * ) + + 64 * 8
----
513

skipif mysql # not compatible
query I rowsort label-740
SELECT + COUNT ( * ) + + 64 * 8
----
513

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

onlyif mysql # aggregate syntax: 
query II rowsort label-742
SELECT 21 AS col0, COUNT( * ) * - 78 * 5 AS col0
----
21
-390

skipif mysql # not compatible
query II rowsort label-742
SELECT 21 AS col0, COUNT ( * ) * - 78 * 5 AS col0
----
21
-390

query II rowsort
SELECT + 2, 55 AS col2
----
2
55

query I rowsort
SELECT + 25 + + 56 - - + 67 + 99 * - + 52 AS col1
----
-5000

query I rowsort
SELECT + 84 * 62 AS col0
----
5208

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-746
SELECT + 90 * - - 78 col1, + 93 * MAX( DISTINCT 87 ) DIV - COUNT( * ) + NULLIF ( + - 69, 68 ) AS col0
----
7020
-8160

skipif mysql # not compatible
query II rowsort label-746
SELECT + 90 * - - 78 col1, + 93 * MAX ( DISTINCT 87 ) / - COUNT ( * ) + NULLIF ( + - 69, 68 ) AS col0
----
7020
-8160

onlyif mysql # aggregate syntax: 
query II rowsort label-747
SELECT ALL 96 * NULLIF ( + - 31, 54 + - 22 ), + COUNT( * ) AS col0
----
-2976
1

skipif mysql # not compatible
query II rowsort label-747
SELECT ALL 96 * NULLIF ( + - 31, 54 + - 22 ), + COUNT ( * ) AS col0
----
-2976
1

query I rowsort
SELECT + 2 + - 16 * + 86
----
-1374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-749
SELECT 56 * + 68 - 41 * ( CAST( - ( - 45 ) AS SIGNED ) )
----
1963

skipif mysql # not compatible
query I rowsort label-749
SELECT 56 * + 68 - 41 * ( CAST ( - ( - 45 ) AS INTEGER ) )
----
1963

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-750
SELECT SUM( ALL - - 73 ) * 90 * + COUNT( * ) * + CAST( NULL AS DECIMAL ) - 53 + + - 34 * - 89 - 37 * - CAST( NULL AS DECIMAL ) + - 22 + - - 28 - - - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-750
SELECT SUM ( ALL - - 73 ) * 90 * + COUNT ( * ) * + CAST ( NULL AS REAL ) - 53 + + - 34 * - 89 - 37 * - CAST ( NULL AS REAL ) + - 22 + - - 28 - - - 35
----
NULL

query I rowsort
SELECT ALL 7 * - 28 + + - 7 + - 99 + - 21
----
-323

query I rowsort
SELECT ALL 54 * - - NULLIF ( - + 74, + 57 )
----
-3996

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT DISTINCT MAX( ALL 22 )
----
22

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT MAX ( ALL 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT ALL 6 + - + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL 6 + - + COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-755
SELECT ALL - MIN( + + 9 ) + NULLIF ( + 23, + COUNT( * ) ) AS col0, 45 + 0 + + MIN( - - 77 ) * 37 + + 97 AS col1
----
14
2991

skipif mysql # not compatible
query II rowsort label-755
SELECT ALL - MIN ( + + 9 ) + NULLIF ( + 23, + COUNT ( * ) ) AS col0, 45 + 0 + + MIN ( - - 77 ) * 37 + + 97 AS col1
----
14
2991

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-756
SELECT + CAST( - 60 AS SIGNED ) * - ( + ( + 51 ) ) * - 29 * + + MAX( DISTINCT - 98 ) + - ( CAST( - 40 AS SIGNED ) ) - - - 85, - 3 AS col1
----
8696475
-3

skipif mysql # not compatible
query II rowsort label-756
SELECT + CAST ( - 60 AS INTEGER ) * - ( + ( + 51 ) ) * - 29 * + + MAX ( DISTINCT - 98 ) + - ( CAST ( - 40 AS INTEGER ) ) - - - 85, - 3 AS col1
----
8696475
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-757
SELECT ALL + CASE + + 21 WHEN 95 THEN + CAST( NULL AS SIGNED ) ELSE - 11 END * - 8 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL + CASE + + 21 WHEN 95 THEN + CAST ( NULL AS INTEGER ) ELSE - 11 END * - 8 AS col0
----
88

query II rowsort
SELECT DISTINCT + ( 80 ) + + + 99 AS col0, 49
----
179
49

query I rowsort
SELECT ALL - 0 + + - 95 AS col1
----
-95

query I rowsort
SELECT ALL - 89 * 98 AS col0
----
-8722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-761
SELECT - CASE - 1 WHEN - CAST( 80 AS SIGNED ) THEN - + 2 WHEN 86 + - - CAST( NULL AS SIGNED ) * + - COUNT( - + 22 ) - 59 + - + 4 + - - 22 + - 78 + 24 + 31 * + 60 * - 39 * + 76 * + - 38 THEN + - NULLIF ( + 97, + 10 ) * - ( + + 10 ) + 64 + + 2 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT - CASE - 1 WHEN - CAST ( 80 AS INTEGER ) THEN - + 2 WHEN 86 + - - CAST ( NULL AS INTEGER ) * + - COUNT ( - + 22 ) - 59 + - + 4 + - - 22 + - 78 + 24 + 31 * + 60 * - 39 * + 76 * + - 38 THEN + - NULLIF ( + 97, + 10 ) * - ( + + 10 ) + 64 + + 2 END AS col1
----
NULL

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

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

query II rowsort
SELECT 81 * + 19 AS col2, 9 + - 85 col1
----
1539
-76

query I rowsort
SELECT + 15 * NULLIF ( + - 61, - 42 + - + NULLIF ( - 76, + 22 + - 19 ) ) AS col0
----
-915

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT ALL - COUNT( DISTINCT 14 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL - COUNT ( DISTINCT 14 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-766
SELECT ALL - + 41 DIV CAST( 66 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL - + 41 / CAST ( 66 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-767
SELECT ALL - + 15 * CAST( ( - - 65 ) AS SIGNED ) * + 84 * + 48 * + + COUNT( * ), + SUM( ( + CAST( NULL AS SIGNED ) ) ) / - - 3 * COUNT( * ) AS col2
----
-3931200
NULL

skipif mysql # not compatible
query II rowsort label-767
SELECT ALL - + 15 * CAST ( ( - - 65 ) AS INTEGER ) * + 84 * + 48 * + + COUNT ( * ), + SUM ( ( + CAST ( NULL AS INTEGER ) ) ) / - - 3 * COUNT ( * ) AS col2
----
-3931200
NULL

query I rowsort
SELECT DISTINCT + - NULLIF ( + - 94, 11 ) - - + 1 + - + 30
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-769
SELECT 2 / - CASE + 22 WHEN + COALESCE ( 24, - 10, - - NULLIF ( 44, + + NULLIF ( - 43, - 67 ) * - - 70 + + ( + + 77 ) ) ) THEN + 36 - CAST( - - 94 AS SIGNED ) + 27 END * + 56 + COUNT( * ) + + 8 + COUNT( * ) - + - 31 * - 15 / - 46 * - NULLIF ( 77, - + 41 - 40 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT 2 / - CASE + 22 WHEN + COALESCE ( 24, - 10, - - NULLIF ( 44, + + NULLIF ( - 43, - 67 ) * - - 70 + + ( + + 77 ) ) ) THEN + 36 - CAST ( - - 94 AS INTEGER ) + 27 END * + 56 + COUNT ( * ) + + 8 + COUNT ( * ) - + - 31 * - 15 / - 46 * - NULLIF ( 77, - + 41 - 40 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT 29 * - COUNT( * ) * + 26 AS col1
----
-754

skipif mysql # not compatible
query I rowsort label-770
SELECT 29 * - COUNT ( * ) * + 26 AS col1
----
-754

query I rowsort
SELECT ALL + - 36 * 15 + 21 col2
----
-519

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT 24 * COUNT( * ) + - 48 * - + 28
----
1368

skipif mysql # not compatible
query I rowsort label-772
SELECT 24 * COUNT ( * ) + - 48 * - + 28
----
1368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-773
SELECT ALL - CAST( 23 AS SIGNED ) * 41 * - CAST( - AVG ( - COALESCE ( + 11, + ( 92 ), - 49 ) ) AS SIGNED ) AS col2
----
10373

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL - CAST ( 23 AS INTEGER ) * 41 * - CAST ( - AVG ( - COALESCE ( + 11, + ( 92 ), - 49 ) ) AS INTEGER ) AS col2
----
10373

query I rowsort
SELECT DISTINCT 7 + + ( + 83 ) AS col0
----
90

query I rowsort
SELECT ALL 42 + - 3 * 89 - 91
----
-316

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT DISTINCT 60 * + 32 * + ( - CASE - 90 WHEN - - 77 THEN NULL WHEN + COUNT( * ) / + - COUNT( * ) * + + 83 * NULLIF ( - ( + ( - COUNT( * ) ) ), 15 / + 48 * + 6 * + 80 ) THEN 55 ELSE 0 END ) * - - 25
----
0

skipif mysql # not compatible
query I rowsort label-776
SELECT DISTINCT 60 * + 32 * + ( - CASE - 90 WHEN - - 77 THEN NULL WHEN + COUNT ( * ) / + - COUNT ( * ) * + + 83 * NULLIF ( - ( + ( - COUNT ( * ) ) ), 15 / + 48 * + 6 * + 80 ) THEN 55 ELSE 0 END ) * - - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT DISTINCT 71 + - - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT 71 + - - COUNT ( * )
----
72

query II rowsort
SELECT 42 AS col0, 70
----
42
70

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT DISTINCT 48 + COUNT( DISTINCT - + 5 )
----
49

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT 48 + COUNT ( DISTINCT - + 5 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT ALL 6 + 83 DIV - - 53
----
7

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL 6 + 83 / - - 53
----
7

query I rowsort
SELECT 70 - - 5
----
75

query I rowsort
SELECT ALL 59 * + 42 * + ( 7 ) * + 31 AS col2
----
537726

onlyif mysql # aggregate syntax: 
query II rowsort label-783
SELECT 72, - COUNT( - 96 ) + ( - - 14 ) * + + 32 AS col2
----
72
447

skipif mysql # not compatible
query II rowsort label-783
SELECT 72, - COUNT ( - 96 ) + ( - - 14 ) * + + 32 AS col2
----
72
447

query I rowsort
SELECT ALL - 36 - + 64 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT COUNT( * ) - + 25 * 75
----
-1874

skipif mysql # not compatible
query I rowsort label-785
SELECT COUNT ( * ) - + 25 * 75
----
-1874

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT DISTINCT - 2 - + 57 * - - 4 + - COUNT( * ) * - 5
----
-225

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT - 2 - + 57 * - - 4 + - COUNT ( * ) * - 5
----
-225

query II rowsort
SELECT - NULLIF ( + + 37, - - 67 ), + 97 AS col2
----
-37
97

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-790
SELECT CAST( NULL AS SIGNED ) / + 1 / + + 87 * - + COUNT( * ) + + CAST( NULL AS SIGNED ) + + 36 / + 25 - + - 30 * 50 AS col2, - 92
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-790
SELECT CAST ( NULL AS INTEGER ) / + 1 / + + 87 * - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 36 / + 25 - + - 30 * 50 AS col2, - 92
----
NULL
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT MIN( ALL - 69 ) + 55 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-791
SELECT MIN ( ALL - 69 ) + 55 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT DISTINCT + MAX( DISTINCT - 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT + MAX ( DISTINCT - 3 ) AS col0
----
-3

query I rowsort
SELECT ALL 27 - 51 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT NULLIF ( - 2, + - 89 / - ( + + 49 ) * COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-794
SELECT NULLIF ( - 2, + - 89 / - ( + + 49 ) * COUNT ( * ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT ALL - + 13 - + SUM( DISTINCT 52 )
----
-65

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL - + 13 - + SUM ( DISTINCT 52 )
----
-65

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

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

query II rowsort
SELECT ALL - + 90 AS col0, - 79 * + 85 * - + 84 * - - 11
----
-90
6204660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-798
SELECT + - COALESCE ( + COUNT( * ), + - CASE 98 WHEN - - 1 THEN NULL WHEN 13 + + 72 * + - COALESCE ( - 27, + 38 DIV + NULLIF ( + - COALESCE ( - + 44, - + NULLIF ( - 62, - CASE + - 93 WHEN COUNT( * ) - - 78 - CASE MAX( DISTINCT + 8 ) WHEN - CAST( - 61 AS SIGNED ) * + MIN( DISTINCT - 6 ) THEN NULL WHEN 10 THEN - + 91 * - 48 * 72 DIV - 15 + 69 DIV + 12 DIV - CASE 87 WHEN - 30 THEN 28 * + COUNT( ALL + CAST( NULL AS DECIMAL ) ) DIV - 41 END END DIV - + 93 THEN - 2 + - 57 - - 50 * - 48 * + CAST( NULL AS SIGNED ) END ) ), 46 ) ) - - NULLIF ( - 86, - COUNT( * ) DIV + 54 ) THEN + 71 * NULLIF ( - COALESCE ( + 31, + 23 ) DIV COUNT( * ), + NULLIF ( COUNT( * ), - 81 ) ) WHEN 11 + 28 THEN NULL ELSE + 16 + CASE 47 WHEN ( - MAX( + 93 ) ) THEN + ( + COUNT( * ) ) END END ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-798
SELECT + - COALESCE ( + COUNT ( * ), + - CASE 98 WHEN - - 1 THEN NULL WHEN 13 + + 72 * + - COALESCE ( - 27, + 38 / + NULLIF ( + - COALESCE ( - + 44, - + NULLIF ( - 62, - CASE + - 93 WHEN COUNT ( * ) - - 78 - CASE MAX ( DISTINCT + 8 ) WHEN - CAST ( - 61 AS INTEGER ) * + MIN ( DISTINCT - 6 ) THEN NULL WHEN 10 THEN - + 91 * - 48 * 72 / - 15 + 69 / + 12 / - CASE 87 WHEN - 30 THEN 28 * + COUNT ( ALL + CAST ( NULL AS REAL ) ) / - 41 END END / - + 93 THEN - 2 + - 57 - - 50 * - 48 * + CAST ( NULL AS INTEGER ) END ) ), 46 ) ) - - NULLIF ( - 86, - COUNT ( * ) / + 54 ) THEN + 71 * NULLIF ( - COALESCE ( + 31, + 23 ) / COUNT ( * ), + NULLIF ( COUNT ( * ), - 81 ) ) WHEN 11 + 28 THEN NULL ELSE + 16 + CASE 47 WHEN ( - MAX ( + 93 ) ) THEN + ( + COUNT ( * ) ) END END ) AS col1
----
-1

query I rowsort
SELECT - + 90 * - + 7 + - 58
----
572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-800
SELECT DISTINCT - - 8 col1, 74 - - MAX( DISTINCT CAST( NULL AS SIGNED ) )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-800
SELECT DISTINCT - - 8 col1, 74 - - MAX ( DISTINCT CAST ( NULL AS INTEGER ) )
----
8
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT DISTINCT + 84 + + 27 DIV 23
----
85

skipif mysql # not compatible
query I rowsort label-801
SELECT DISTINCT + 84 + + 27 / 23
----
85

query I rowsort
SELECT ALL - 29 + - + 0 AS col1
----
-29

query I rowsort
SELECT ALL + 75 * 80
----
6000

query I rowsort
SELECT ALL + 2 + + 15
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT DISTINCT MIN( DISTINCT ( - 89 ) ) * - - COALESCE ( + - 60, - - 98 ) AS col2
----
5340

skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT MIN ( DISTINCT ( - 89 ) ) * - - COALESCE ( + - 60, - - 98 ) AS col2
----
5340

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT ALL 19 + COALESCE ( + MAX( - 17 ), + 23 )
----
2

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL 19 + COALESCE ( + MAX ( - 17 ), + 23 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT 66 * - - 87 + COUNT( * ) AS col2
----
5743

skipif mysql # not compatible
query I rowsort label-807
SELECT 66 * - - 87 + COUNT ( * ) AS col2
----
5743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-808
SELECT ALL - 30 + 87 AS col0, COUNT( * ) + - + 34 * COALESCE ( COUNT( * ), + - 7 + - 58 + - 44, 30, - ( - COUNT( * ) ) DIV + COUNT( * ), + + CAST( NULL AS SIGNED ) + - 35 * + 89 ) * - 70 col0
----
57
2381

skipif mysql # not compatible
query II rowsort label-808
SELECT ALL - 30 + 87 AS col0, COUNT ( * ) + - + 34 * COALESCE ( COUNT ( * ), + - 7 + - 58 + - 44, 30, - ( - COUNT ( * ) ) / + COUNT ( * ), + + CAST ( NULL AS INTEGER ) + - 35 * + 89 ) * - 70 col0
----
57
2381

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-809
SELECT ALL + 67 + - 39 DIV + + 16 + MIN( 91 ) * - + 1 * - COUNT( * ) * - 7 AS col0
----
-572

skipif mysql # not compatible
query I rowsort label-809
SELECT ALL + 67 + - 39 / + + 16 + MIN ( 91 ) * - + 1 * - COUNT ( * ) * - 7 AS col0
----
-572

query I rowsort
SELECT 70 + 92 AS col1
----
162

onlyif mysql # DIV for integer division: 
query II rowsort label-811
SELECT 15 - 64, - 78 DIV 63 col0
----
-49
-1

skipif mysql # not compatible
query II rowsort label-811
SELECT 15 - 64, - 78 / 63 col0
----
-49
-1

query I rowsort
SELECT DISTINCT - 94 * 31
----
-2914

query I rowsort
SELECT + 24 * - 45 + - 40 * + 50 AS col0
----
-3080

query I rowsort
SELECT ALL + 67 + + + 98
----
165

query I rowsort
SELECT 98 + - 51 AS col0
----
47

query I rowsort
SELECT 5 * - 97
----
-485

onlyif mysql # aggregate syntax: 
query II rowsort label-817
SELECT ALL MIN( + + 75 ) AS col1, + ( + + MAX( + 83 ) ) + + 83 + - + 8 AS col2
----
75
158

skipif mysql # not compatible
query II rowsort label-817
SELECT ALL MIN ( + + 75 ) AS col1, + ( + + MAX ( + 83 ) ) + + 83 + - + 8 AS col2
----
75
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-818
SELECT NULLIF ( - + 33, + - 87 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-818
SELECT NULLIF ( - + 33, + - 87 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT ALL 17 - 42 + + 34 + + 93 * - - COUNT( - CASE - ( 24 ) WHEN - 22 THEN + 58 * - 42 END ) * - 66
----
9

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL 17 - 42 + + 34 + + 93 * - - COUNT ( - CASE - ( 24 ) WHEN - 22 THEN + 58 * - 42 END ) * - 66
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-820
SELECT ALL - MIN( DISTINCT - 1 ) AS col0, - 49 AS col0
----
1
-49

skipif mysql # not compatible
query II rowsort label-820
SELECT ALL - MIN ( DISTINCT - 1 ) AS col0, - 49 AS col0
----
1
-49

query II rowsort
SELECT ( - - 75 ) AS col1, - 71 AS col0
----
75
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-822
SELECT + 97 DIV - 42 + - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-822
SELECT + 97 / - 42 + - - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-823
SELECT ALL 67 * - ( 39 ) * + 63 * - + 98, - COUNT( * ) * - MIN( - 30 ) col2
----
16132662
-30

skipif mysql # not compatible
query II rowsort label-823
SELECT ALL 67 * - ( 39 ) * + 63 * - + 98, - COUNT ( * ) * - MIN ( - 30 ) col2
----
16132662
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-824
SELECT + - COUNT( * ) + + 30 AS col0, - 83 + ( + + COUNT( ALL + 22 ) ) AS col2
----
29
-82

skipif mysql # not compatible
query II rowsort label-824
SELECT + - COUNT ( * ) + + 30 AS col0, - 83 + ( + + COUNT ( ALL + 22 ) ) AS col2
----
29
-82

query I rowsort
SELECT DISTINCT + + 7 * + 53 AS col2
----
371

query I rowsort
SELECT + 55 * + 90 AS col0
----
4950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-827
SELECT + - CASE - COUNT( * ) WHEN - + 22 * - 74 * MIN( 21 ) THEN 87 + 98 DIV 54 DIV + - 19 + + 49 WHEN 88 THEN + 46 ELSE - 87 END DIV + 97 col0
----
0

skipif mysql # not compatible
query I rowsort label-827
SELECT + - CASE - COUNT ( * ) WHEN - + 22 * - 74 * MIN ( 21 ) THEN 87 + 98 / 54 / + - 19 + + 49 WHEN 88 THEN + 46 ELSE - 87 END / + 97 col0
----
0

query I rowsort
SELECT ALL - 46 * + 10 AS col2
----
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT ALL COUNT( * ) * + + 35 + + + 62
----
97

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL COUNT ( * ) * + + 35 + + + 62
----
97

query I rowsort
SELECT + 86 + - 43 + + 51 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT - - COUNT( 31 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-831
SELECT - - COUNT ( 31 ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT + 0 + + 30 * + 32 + + MIN( ALL 62 ) - - 13 AS col0
----
1035

skipif mysql # not compatible
query I rowsort label-833
SELECT + 0 + + 30 * + 32 + + MIN ( ALL 62 ) - - 13 AS col0
----
1035

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-834
SELECT ALL 83 + - ( - - 55 ) + - 82, - ( CAST( NULL AS SIGNED ) ) * - 65 * - 0 - 97 + - CAST( + + 22 AS DECIMAL ) / - 34 - - 89 - + - 93 / + 38 AS col0
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-834
SELECT ALL 83 + - ( - - 55 ) + - 82, - ( CAST ( NULL AS INTEGER ) ) * - 65 * - 0 - 97 + - CAST ( + + 22 AS REAL ) / - 34 - - 89 - + - 93 / + 38 AS col0
----
-54
NULL

query I rowsort
SELECT + 53 + + ( + ( 11 ) ) AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-836
SELECT 67 DIV + COUNT( * ) - - - CAST( - - 18 AS SIGNED ) * - 46 + + 24 * - 3 * - + 95 * 0 * + + 10 * + 88 - 79 + 50
----
866

skipif mysql # not compatible
query I rowsort label-836
SELECT 67 / + COUNT ( * ) - - - CAST ( - - 18 AS INTEGER ) * - 46 + + 24 * - 3 * - + 95 * 0 * + + 10 * + 88 - 79 + 50
----
866

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-837
SELECT ALL - 36 * - COUNT( * ) + + - 54 + - CAST( NULL AS DECIMAL ) * + + 69 / 81
----
NULL

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL - 36 * - COUNT ( * ) + + - 54 + - CAST ( NULL AS REAL ) * + + 69 / 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL 69 * + 19 * - 17 * 81 + + + MIN( ALL 19 ) * 43 * + COALESCE ( + 10, + + ( + - 10 ) ) + 92 col2
----
-1796985

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL 69 * + 19 * - 17 * 81 + + + MIN ( ALL 19 ) * 43 * + COALESCE ( + 10, + + ( + - 10 ) ) + 92 col2
----
-1796985

query I rowsort
SELECT ALL + ( 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT DISTINCT - MAX( DISTINCT - - 41 ) * + 17 + 60 + 60 * - 68
----
-4717

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT - MAX ( DISTINCT - - 41 ) * + 17 + 60 + 60 * - 68
----
-4717

query I rowsort
SELECT NULLIF ( - 50, - + 25 ) AS col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-842
SELECT NULLIF ( + + 31, + + 4 + - + CAST( NULL AS SIGNED ) )
----
31

skipif mysql # not compatible
query I rowsort label-842
SELECT NULLIF ( + + 31, + + 4 + - + CAST ( NULL AS INTEGER ) )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-843
SELECT ALL + CAST( + 91 AS SIGNED ) * - 28 - + - 88 AS col2
----
-2460

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL + CAST ( + 91 AS INTEGER ) * - 28 - + - 88 AS col2
----
-2460

query I rowsort
SELECT - 59 * + - 32
----
1888

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT DISTINCT + NULLIF ( 2, - COUNT( * ) * + 42 ) * + 29 + 74 + - 4 AS col0
----
128

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT + NULLIF ( 2, - COUNT ( * ) * + 42 ) * + 29 + 74 + - 4 AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ALL - 46 * - - 8 - NULLIF ( COUNT( * ), + 36 + - 30 )
----
-369

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL - 46 * - - 8 - NULLIF ( COUNT ( * ), + 36 + - 30 )
----
-369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-847
SELECT - CAST( NULL AS SIGNED ) / - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-847
SELECT - CAST ( NULL AS INTEGER ) / - 9
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-848
SELECT - 99 - COUNT( * ) - + - 2 DIV + 14
----
-100

skipif mysql # not compatible
query I rowsort label-848
SELECT - 99 - COUNT ( * ) - + - 2 / + 14
----
-100

query I rowsort
SELECT - 5 * 90 AS col2
----
-450

query I rowsort
SELECT DISTINCT - 64 * - + 62
----
3968

query I rowsort
SELECT - 26 * - + 94 - + - 92 AS col2
----
2536

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

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

query I rowsort
SELECT - - 72 + 75
----
147

query II rowsort
SELECT ALL - 66 AS col1, + ( 70 ) + + 67
----
-66
137

query I rowsort
SELECT DISTINCT + + 5 * 21
----
105

query I rowsort
SELECT DISTINCT - COALESCE ( + + 40, - - 62 )
----
-40

query I rowsort
SELECT ALL ( - ( + - 57 ) ) * 55
----
3135

query I rowsort
SELECT - + 37 + + 33
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-859
SELECT DISTINCT - 7, + CASE - COUNT( ALL 63 ) WHEN 65 * + 24 THEN + 37 + + 83 WHEN 52 + 26 + 17 * - - 42 / - CAST( + + 58 AS SIGNED ) THEN NULL ELSE ( + 25 ) END AS col1
----
-7
25

skipif mysql # not compatible
query II rowsort label-859
SELECT DISTINCT - 7, + CASE - COUNT ( ALL 63 ) WHEN 65 * + 24 THEN + 37 + + 83 WHEN 52 + 26 + 17 * - - 42 / - CAST ( + + 58 AS INTEGER ) THEN NULL ELSE ( + 25 ) END AS col1
----
-7
25

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT + MIN( DISTINCT 80 ) + + 66 + 4 AS col2
----
150

skipif mysql # not compatible
query I rowsort label-860
SELECT + MIN ( DISTINCT 80 ) + + 66 + 4 AS col2
----
150

query I rowsort
SELECT DISTINCT CASE - + 35 WHEN - - 50 THEN NULL WHEN - ( + 3 ) THEN + + 67 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - + 72, 44 * - 74 / - AVG ( DISTINCT + + 13 ) + 4 / + 5 ) + + 40
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-863
SELECT ALL 72 + 60 * + 38 + 78 + - 40 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL 72 + 60 * + 38 + 78 + - 40 + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-864
SELECT - - MIN ( ALL - 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT ALL + ( + 25 ) * + COALESCE ( + MAX( + 36 ), + 17 )
----
900

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL + ( + 25 ) * + COALESCE ( + MAX ( + 36 ), + 17 )
----
900

query I rowsort
SELECT ALL + 74 + + 51
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-867
SELECT - 83 col1, + SUM( DISTINCT + 65 )
----
-83
65

skipif mysql # not compatible
query II rowsort label-867
SELECT - 83 col1, + SUM ( DISTINCT + 65 )
----
-83
65

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT + COUNT( * ) + - - 19 * ( - 58 ) AS col0
----
-1101

skipif mysql # not compatible
query I rowsort label-868
SELECT + COUNT ( * ) + - - 19 * ( - 58 ) AS col0
----
-1101

query I rowsort
SELECT + 78 * - + 2 col1
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT ALL 83 / CAST( NULL AS SIGNED ) * 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL 83 / CAST ( NULL AS INTEGER ) * 86 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-871
SELECT CAST( NULL AS SIGNED ) * + ( + 71 ) + + - 90 * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-871
SELECT CAST ( NULL AS INTEGER ) * + ( + 71 ) + + - 90 * 36 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-872
SELECT + NULLIF ( - 81, - 88 * - - COUNT( * ) + + ( + - NULLIF ( - COALESCE ( - ( - 73 ), + CAST( NULL AS SIGNED ) - CAST( - + ( 20 ) AS SIGNED ) + + + 57 - + 29, + 81 - MAX( - 29 ) - 43 + 9 * - - 75 + + ( 30 ) * COALESCE ( - - 14, 49, 74 ) / + 11 ), - 26 ) ) + - 54 + + 23 ) * - 3 AS col0
----
243

skipif mysql # not compatible
query I rowsort label-872
SELECT + NULLIF ( - 81, - 88 * - - COUNT ( * ) + + ( + - NULLIF ( - COALESCE ( - ( - 73 ), + CAST ( NULL AS INTEGER ) - CAST ( - + ( 20 ) AS INTEGER ) + + + 57 - + 29, + 81 - MAX ( - 29 ) - 43 + 9 * - - 75 + + ( 30 ) * COALESCE ( - - 14, 49, 74 ) / + 11 ), - 26 ) ) + - 54 + + 23 ) * - 3 AS col0
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT ALL + 29 DIV + 7 - 34
----
-30

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL + 29 / + 7 - 34
----
-30

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-875
SELECT 67 DIV + 22 - 72
----
-69

skipif mysql # not compatible
query I rowsort label-875
SELECT 67 / + 22 - 72
----
-69

query I rowsort
SELECT + 18 * 76 AS col1
----
1368

query I rowsort
SELECT + 35 + - 58
----
-23

query II rowsort
SELECT + 29 AS col0, - 68 AS col2
----
29
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL CASE + - 94 WHEN - + 48 * - 26 THEN 92 / - + CASE 38 WHEN - + 3 / + 86 / - 3 * - COALESCE ( + COUNT( * ), + + 24 * + 18 - - 25 * + 67 + - 6, - - COUNT( ALL - - 89 ) ) / ( - + 40 ) THEN NULL WHEN - + 93 * - COUNT( * ) - - + 80 THEN + 13 END * + + 48 WHEN + 67 + - 98 + + 7 * + + 30 / - 6 * + CASE + 97 WHEN - 27 / 66 THEN + 92 END THEN - - ( - NULLIF ( 88, + 63 + + + 98 ) ) END * + + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL CASE + - 94 WHEN - + 48 * - 26 THEN 92 / - + CASE 38 WHEN - + 3 / + 86 / - 3 * - COALESCE ( + COUNT ( * ), + + 24 * + 18 - - 25 * + 67 + - 6, - - COUNT ( ALL - - 89 ) ) / ( - + 40 ) THEN NULL WHEN - + 93 * - COUNT ( * ) - - + 80 THEN + 13 END * + + 48 WHEN + 67 + - 98 + + 7 * + + 30 / - 6 * + CASE + 97 WHEN - 27 / 66 THEN + 92 END THEN - - ( - NULLIF ( 88, + 63 + + + 98 ) ) END * + + 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT ( - COUNT( * ) ) * + 47 + + ( + 70 ) + 23 * + + 22 col0
----
529

skipif mysql # not compatible
query I rowsort label-880
SELECT ( - COUNT ( * ) ) * + 47 + + ( + 70 ) + 23 * + + 22 col0
----
529

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT DISTINCT - CASE + ( + + 91 ) WHEN - - ( - + 35 ) THEN - COALESCE ( - 22, - 39 ) WHEN - COUNT( * ) * + 99 + + COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT - CASE + ( + + 91 ) WHEN - - ( - + 35 ) THEN - COALESCE ( - 22, - 39 ) WHEN - COUNT ( * ) * + 99 + + COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-883
SELECT ALL - 34, + COALESCE ( - 55, 95 + 28 + - 27 / - ( 19 ) * ( - 17 ) ) + - ( + + CAST( NULL AS SIGNED ) ) AS col2
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-883
SELECT ALL - 34, + COALESCE ( - 55, 95 + 28 + - 27 / - ( 19 ) * ( - 17 ) ) + - ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
-34
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-884
SELECT - CAST( NULL AS DECIMAL ) / COALESCE ( + 60, + COUNT( * ) ) / - - 90 + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-884
SELECT - CAST ( NULL AS REAL ) / COALESCE ( + 60, + COUNT ( * ) ) / - - 90 + - 44
----
NULL

query II rowsort
SELECT DISTINCT - 22 col2, 52 + + 98 AS col1
----
-22
150

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-887
SELECT + 37 DIV - + SUM( - - 87 )
----
0

skipif mysql # not compatible
query I rowsort label-887
SELECT + 37 / - + SUM ( - - 87 )
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-890
SELECT ALL - 30 DIV + 75 - - 68 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL - 30 / + 75 - - 68 AS col1
----
68

query I rowsort
SELECT - 59 + 24
----
-35

query I rowsort
SELECT ALL - 63 * + 59 * - + 15
----
55755

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

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

query I rowsort
SELECT DISTINCT + 72 + ( - ( 52 ) )
----
20

query I rowsort
SELECT ALL 6 + + 67 AS col1
----
73

query II rowsort
SELECT - 56 AS col0, 78 * - 49 AS col0
----
-56
-3822

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

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

query II rowsort
SELECT DISTINCT 42 * + - 17 AS col1, 68 + + 27 AS col1
----
-714
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-899
SELECT 82 - - 65 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + + COUNT( * ) * + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-899
SELECT 82 - - 65 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + COUNT ( * ) * + + 91
----
NULL

query I rowsort
SELECT DISTINCT 95 * + 73 AS col2
----
6935

query I rowsort
SELECT DISTINCT - 54 * - 75 * + 57
----
230850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-902
SELECT 72 DIV + SUM( ALL ( - + 94 ) ) + - COALESCE ( - NULLIF ( 22, - CAST( 14 AS SIGNED ) ), - 2 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-902
SELECT 72 / + SUM ( ALL ( - + 94 ) ) + - COALESCE ( - NULLIF ( 22, - CAST ( 14 AS INTEGER ) ), - 2 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT ALL COUNT( * ) * - - 33 * + CASE 20 WHEN - - 59 THEN NULL WHEN + CASE 90 WHEN - + COALESCE ( 48, 78 + - ( + 98 ), - 33 - + COUNT( * ) * + 7 ) / - 80 THEN 82 WHEN + - 75 / + 17 THEN + 34 * NULLIF ( - 24, - 45 / + 24 * + 41 / + 60 * + SUM( 60 ) / 12 * 32 * 83 + - 81 ) ELSE + 47 END + - 7 + + 64 * + 78 * - 31 / + - ( 13 ) + + + COUNT( * ) THEN 59 WHEN + 20 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL COUNT ( * ) * - - 33 * + CASE 20 WHEN - - 59 THEN NULL WHEN + CASE 90 WHEN - + COALESCE ( 48, 78 + - ( + 98 ), - 33 - + COUNT ( * ) * + 7 ) / - 80 THEN 82 WHEN + - 75 / + 17 THEN + 34 * NULLIF ( - 24, - 45 / + 24 * + 41 / + 60 * + SUM ( 60 ) / 12 * 32 * 83 + - 81 ) ELSE + 47 END + - 7 + + 64 * + 78 * - 31 / + - ( 13 ) + + + COUNT ( * ) THEN 59 WHEN + 20 THEN NULL END col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-904
SELECT DISTINCT COUNT ( * ) / + + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT ALL - MIN( + + 75 ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL - MIN ( + + 75 ) col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-906
SELECT CAST( NULL AS SIGNED ) * + CASE - - COUNT( * ) WHEN 15 - + + COUNT( * ) THEN NULL WHEN COALESCE ( 73, + - COUNT( * ) * - 49 ) / - - 62 + + - 95 THEN NULL WHEN + 41 + - + 3 - + 20 THEN 73 / - 4 * + 46 / + - AVG ( - 42 ) * - 1 * COUNT( * ) + 82 + + - 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-906
SELECT CAST ( NULL AS INTEGER ) * + CASE - - COUNT ( * ) WHEN 15 - + + COUNT ( * ) THEN NULL WHEN COALESCE ( 73, + - COUNT ( * ) * - 49 ) / - - 62 + + - 95 THEN NULL WHEN + 41 + - + 3 - + 20 THEN 73 / - 4 * + 46 / + - AVG ( - 42 ) * - 1 * COUNT ( * ) + 82 + + - 82 END
----
NULL

query II rowsort
SELECT ALL 77 + - 13, + 50 AS col1
----
64
50

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT DISTINCT + NULLIF ( - COUNT( * ), - + 96 ) * - 54
----
54

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT + NULLIF ( - COUNT ( * ), - + 96 ) * - 54
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-909
SELECT ALL + ( CAST( + 80 AS SIGNED ) ) + - 61
----
19

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL + ( CAST ( + 80 AS INTEGER ) ) + - 61
----
19

query I rowsort
SELECT 85 * 3 + + 62 AS col1
----
317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-911
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS SIGNED ) + + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 8 AS col2
----
NULL

query I rowsort
SELECT 64 + - - 84 AS col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT 8 * - 64 + - - ( + + COUNT( * ) ) + 5
----
-506

skipif mysql # not compatible
query I rowsort label-913
SELECT 8 * - 64 + - - ( + + COUNT ( * ) ) + 5
----
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT DISTINCT 89 + MAX( 41 ) AS col0
----
130

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT 89 + MAX ( 41 ) AS col0
----
130

query II rowsort
SELECT 57 + 69 AS col1, 5
----
126
5

query I rowsort
SELECT DISTINCT + 15 + - 91
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-917
SELECT ALL + CAST( - 51 AS SIGNED ) - + COUNT( * ) + + ( 65 ) * + COUNT( * ) * - ( NULLIF ( + ( - + NULLIF ( + 47, 73 - - ( + 52 ) ) ), + - 7 ) )
----
3003

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL + CAST ( - 51 AS INTEGER ) - + COUNT ( * ) + + ( 65 ) * + COUNT ( * ) * - ( NULLIF ( + ( - + NULLIF ( + 47, 73 - - ( + 52 ) ) ), + - 7 ) )
----
3003

onlyif mysql # aggregate syntax: 
query II rowsort label-918
SELECT - ( 22 ) col0, + NULLIF ( - - 47, - MAX( DISTINCT - 46 ) )
----
-22
47

skipif mysql # not compatible
query II rowsort label-918
SELECT - ( 22 ) col0, + NULLIF ( - - 47, - MAX ( DISTINCT - 46 ) )
----
-22
47

query I rowsort
SELECT 36 + 84 - - + 56 + + ( - 45 )
----
131

query I rowsort
SELECT ( - 96 ) * + 41 * - 10
----
39360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-921
SELECT + 82 * + 24 DIV + COUNT( * ) AS col2
----
1968

skipif mysql # not compatible
query I rowsort label-921
SELECT + 82 * + 24 / + COUNT ( * ) AS col2
----
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT ALL + COUNT( * ) - - + 43
----
44

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL + COUNT ( * ) - - + 43
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT 83 + - 29 * 96 * + COUNT( * ) + + 80
----
-2621

skipif mysql # not compatible
query I rowsort label-923
SELECT 83 + - 29 * 96 * + COUNT ( * ) + + 80
----
-2621

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

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

query I rowsort
SELECT 92 + 15
----
107

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

skipif mysql # not compatible
query II rowsort label-926
SELECT ALL COUNT ( * ) AS col0, - 10
----
1
-10

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

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

query II rowsort
SELECT 35 AS col1, - ( 77 ) + 87 AS col1
----
35
10

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT - 95 + - - COUNT( + + 12 ) * ( + 93 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-929
SELECT - 95 + - - COUNT ( + + 12 ) * ( + 93 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-930
SELECT ALL COUNT( * ) AS col1, 8
----
1
8

skipif mysql # not compatible
query II rowsort label-930
SELECT ALL COUNT ( * ) AS col1, 8
----
1
8

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

query I rowsort
SELECT - 71 + 69 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-933
SELECT COALESCE ( - - 93, + COUNT( * ) ), - CASE - 65 WHEN - 12 * - - 51 * - 92 THEN + - 38 / + MIN( ALL + ( + 13 ) ) * + 59 + + COALESCE ( 49, 44, + 18 ) ELSE NULL END AS col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-933
SELECT COALESCE ( - - 93, + COUNT ( * ) ), - CASE - 65 WHEN - 12 * - - 51 * - 92 THEN + - 38 / + MIN ( ALL + ( + 13 ) ) * + 59 + + COALESCE ( 49, 44, + 18 ) ELSE NULL END AS col1
----
93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT ALL + ( + ( MIN( ALL + + 43 ) ) )
----
43

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL + ( + ( MIN ( ALL + + 43 ) ) )
----
43

query I rowsort
SELECT + 64 * - 35
----
-2240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 86 / + - 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 86 / + - 55 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT ALL COUNT( * ) * - NULLIF ( + + 4, + + ( + 59 ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-937
SELECT ALL COUNT ( * ) * - NULLIF ( + + 4, + + ( + 59 ) ) AS col2
----
-4

query II rowsort
SELECT - 29 + + ( - 78 ), + 68 col2
----
-107
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-939
SELECT + 46 + + NULLIF ( CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ), - - COUNT( DISTINCT - 15 ) * + 42 + + - 97 + + + 94 * 81 + + - 36 ) col0, + ( 18 )
----
NULL
18

skipif mysql # not compatible
query II rowsort label-939
SELECT + 46 + + NULLIF ( CAST ( - CAST ( NULL AS INTEGER ) AS REAL ), - - COUNT ( DISTINCT - 15 ) * + 42 + + - 97 + + + 94 * 81 + + - 36 ) col0, + ( 18 )
----
NULL
18

onlyif mysql # aggregate syntax: 
query II rowsort label-940
SELECT DISTINCT - COUNT( * ) * + MIN( DISTINCT + 94 ) * + 69 AS col1, 32 - + 29 * + 31
----
-6486
-867

skipif mysql # not compatible
query II rowsort label-940
SELECT DISTINCT - COUNT ( * ) * + MIN ( DISTINCT + 94 ) * + 69 AS col1, 32 - + 29 * + 31
----
-6486
-867

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT ALL 69 * + - 35 + - 74 AS col1, + COALESCE ( - - COUNT( * ), - - 52 ) * - - ( - 0 ) - - ( - + ( - 53 ) ) AS col2
----
-2489
53

skipif mysql # not compatible
query II rowsort label-941
SELECT ALL 69 * + - 35 + - 74 AS col1, + COALESCE ( - - COUNT ( * ), - - 52 ) * - - ( - 0 ) - - ( - + ( - 53 ) ) AS col2
----
-2489
53

query I rowsort
SELECT + - 93 + 24 + - 56
----
-125

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT - - 24 DIV 99 + + 60 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-943
SELECT - - 24 / 99 + + 60 AS col0
----
60

query II rowsort
SELECT ( + + ( + 99 ) ) AS col2, 34
----
99
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-945
SELECT 44 * - 88 + + - 96 + + 2 - 92 - + 14 + - 96 * + COALESCE ( + 52, 4 * + ( - 29 ) ) + 24 + - CAST( + + 9 AS SIGNED ) DIV COUNT( * ) AS col0
----
-9049

skipif mysql # not compatible
query I rowsort label-945
SELECT 44 * - 88 + + - 96 + + 2 - 92 - + 14 + - 96 * + COALESCE ( + 52, 4 * + ( - 29 ) ) + 24 + - CAST ( + + 9 AS INTEGER ) / COUNT ( * ) AS col0
----
-9049

query I rowsort
SELECT ALL 35 * 56 * 54 + - 61 AS col2
----
105779

query I rowsort
SELECT + 94 + - 19
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-948
SELECT ALL 34 DIV 56 col1
----
0

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL 34 / 56 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-949
SELECT 83 * + 26 * + AVG ( DISTINCT + CAST( + - 82 AS SIGNED ) ) * CAST( NULL AS SIGNED ) + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT 83 * + 26 * + AVG ( DISTINCT + CAST ( + - 82 AS INTEGER ) ) * CAST ( NULL AS INTEGER ) + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT ALL - + 13 * + COUNT( * ) - + 10 + - + 87 + ( - + 81 )
----
-191

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL - + 13 * + COUNT ( * ) - + 10 + - + 87 + ( - + 81 )
----
-191

query II rowsort
SELECT + - NULLIF ( + 25, - 13 ) AS col0, + 89 AS col1
----
-25
89

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT - MAX( + 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-952
SELECT - MAX ( + 13 ) AS col0
----
-13

query II rowsort
SELECT - 90 AS col1, 4
----
-90
4

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

query II rowsort
SELECT - + 35 AS col2, - 8 * + 8 * 96
----
-35
-6144

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-957
SELECT + CAST( NULL AS SIGNED ) * + + COUNT( ALL - 46 ) + + + COUNT( * ) * - - 52 * 69 + - 45 * + 21 * + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-957
SELECT + CAST ( NULL AS INTEGER ) * + + COUNT ( ALL - 46 ) + + + COUNT ( * ) * - - 52 * 69 + - 45 * + 21 * + + 25
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT + CAST( - + COALESCE ( + NULLIF ( + 20, + - 91 ), + 2 + 11, - ( + + CAST( - 21 AS SIGNED ) ) ) AS SIGNED ) + - 94 * - 67
----
6278

skipif mysql # not compatible
query I rowsort label-958
SELECT + CAST ( - + COALESCE ( + NULLIF ( + 20, + - 91 ), + 2 + 11, - ( + + CAST ( - 21 AS INTEGER ) ) ) AS INTEGER ) + - 94 * - 67
----
6278

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-961
SELECT DISTINCT + COUNT( * ) DIV - 72 * + + 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT + COUNT ( * ) / - 72 * + + 2 AS col1
----
0

query I rowsort
SELECT - 12 + - 19 AS col2
----
-31

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

query I rowsort
SELECT DISTINCT COALESCE ( - + 34, - 46, - 31 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-965
SELECT + 76 * + COALESCE ( 74, 45 * - 93 + - ( - 23 ) + NULLIF ( - 39, - NULLIF ( - - COALESCE ( + CASE - CAST( + + MAX( ALL - 66 ) AS SIGNED ) WHEN - 89 THEN - - 0 * 84 - - 9 WHEN CAST( NULL AS SIGNED ) THEN + 46 - + 18 + - - 96 ELSE + 41 END, COUNT( ALL + - 19 ) DIV - - 76 * + - 75, + ( ( 39 ) ) ), COALESCE ( - - 77, + 96 - - + 24 ) * 43 ) ) DIV - - COUNT( * ) ) AS col0
----
5624

skipif mysql # not compatible
query I rowsort label-965
SELECT + 76 * + COALESCE ( 74, 45 * - 93 + - ( - 23 ) + NULLIF ( - 39, - NULLIF ( - - COALESCE ( + CASE - CAST ( + + MAX ( ALL - 66 ) AS INTEGER ) WHEN - 89 THEN - - 0 * 84 - - 9 WHEN CAST ( NULL AS INTEGER ) THEN + 46 - + 18 + - - 96 ELSE + 41 END, COUNT ( ALL + - 19 ) / - - 76 * + - 75, + ( ( 39 ) ) ), COALESCE ( - - 77, + 96 - - + 24 ) * 43 ) ) / - - COUNT ( * ) ) AS col0
----
5624

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ALL - COUNT( * ) * CASE + - 81 WHEN + 9 THEN + 62 END / + 16 * + AVG ( - ( 61 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL - COUNT ( * ) * CASE + - 81 WHEN + 9 THEN + 62 END / + 16 * + AVG ( - ( 61 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT DISTINCT 21 DIV + 81 + - 82
----
-82

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT 21 / + 81 + - 82
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-968
SELECT ALL 90 DIV ( - 18 ) + + - SUM( ALL + + 28 )
----
-33

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL 90 / ( - 18 ) + + - SUM ( ALL + + 28 )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-969
SELECT DISTINCT - 11 DIV + NULLIF ( - 87, + NULLIF ( + + 3, - + 61 * - + 98 * - - 58 + + 71 + + 0 ) ) + + 82 * + 46 AS col0
----
3772

skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT - 11 / + NULLIF ( - 87, + NULLIF ( + + 3, - + 61 * - + 98 * - - 58 + + 71 + + 0 ) ) + + 82 * + 46 AS col0
----
3772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-970
SELECT ALL - - 54 DIV - 46 + - - COUNT( * ) + - 75 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL - - 54 / - 46 + - - COUNT ( * ) + - 75 AS col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-971
SELECT - 75 * COALESCE ( + - 43, - COALESCE ( + + 26, 68, 67 * COUNT( * ) - - 0 + - + 38 + CAST( 31 AS SIGNED ) * - - 78 ) * - 16 ) * 30 + + + ( + + 86 ) - + COALESCE ( - - ( - 24 ), + 89 * 2 + - CAST( 20 AS SIGNED ) + - ( 47 ) * - 60 * + 19 ) - + COUNT( + - 49 ) * + 92 * + ( + + 9 ) * - + 94 + 8 * - + ( - - 91 ), + COUNT( * ) * + - 60 AS col1
----
173964
-60

skipif mysql # not compatible
query II rowsort label-971
SELECT - 75 * COALESCE ( + - 43, - COALESCE ( + + 26, 68, 67 * COUNT ( * ) - - 0 + - + 38 + CAST ( 31 AS INTEGER ) * - - 78 ) * - 16 ) * 30 + + + ( + + 86 ) - + COALESCE ( - - ( - 24 ), + 89 * 2 + - CAST ( 20 AS INTEGER ) + - ( 47 ) * - 60 * + 19 ) - + COUNT ( + - 49 ) * + 92 * + ( + + 9 ) * - + 94 + 8 * - + ( - - 91 ), + COUNT ( * ) * + - 60 AS col1
----
173964
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT - - SUM( ALL + 29 ) * 45 + 35 col2
----
1340

skipif mysql # not compatible
query I rowsort label-972
SELECT - - SUM ( ALL + 29 ) * 45 + 35 col2
----
1340

query I rowsort
SELECT ALL + - 20 * + 52
----
-1040

query I rowsort
SELECT ALL - - 35 * + 97 + 47 - + 14 + - 23 - - 71 AS col2
----
3476

query I rowsort
SELECT - - 96 * + + 92
----
8832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-976
SELECT ALL - 1 * CAST( NULL AS SIGNED ) + - 29 - 87 AS col1, - SUM( - + 89 ) DIV 93 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-976
SELECT ALL - 1 * CAST ( NULL AS INTEGER ) + - 29 - 87 AS col1, - SUM ( - + 89 ) / 93 AS col1
----
NULL
0

query I rowsort
SELECT - + 63 * 13 AS col2
----
-819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-978
SELECT ALL + CAST( - 10 AS SIGNED ) * - COUNT( + + 38 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL + CAST ( - 10 AS INTEGER ) * - COUNT ( + + 38 ) AS col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT + 28 DIV 18 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-979
SELECT + 28 / 18 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL - 71 * COUNT( * ) - ( 87 ) AS col0
----
-158

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL - 71 * COUNT ( * ) - ( 87 ) AS col0
----
-158

query I rowsort
SELECT - 86 * - 37 + + 28
----
3210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-982
SELECT + + ( - - 86 ) DIV - 44 * COUNT( * ) + - - 14
----
13

skipif mysql # not compatible
query I rowsort label-982
SELECT + + ( - - 86 ) / - 44 * COUNT ( * ) + - - 14
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-983
SELECT ALL - NULLIF ( - + 98, + 85 * CAST( NULL AS SIGNED ) )
----
98

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL - NULLIF ( - + 98, + 85 * CAST ( NULL AS INTEGER ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT - + 11 + + - ( + CASE - - COUNT( * ) WHEN 55 THEN NULL ELSE + - 69 + + 66 + + 22 + + COUNT( * ) END ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-984
SELECT - + 11 + + - ( + CASE - - COUNT ( * ) WHEN 55 THEN NULL ELSE + - 69 + + 66 + + 22 + + COUNT ( * ) END ) AS col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-985
SELECT + - 36 + CASE 19 WHEN - + 57 THEN NULL WHEN - 26 THEN - CAST( 68 AS SIGNED ) ELSE NULL END * - - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-985
SELECT + - 36 + CASE 19 WHEN - + 57 THEN NULL WHEN - 26 THEN - CAST ( 68 AS INTEGER ) ELSE NULL END * - - 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-986
SELECT - CASE - 3 WHEN + 89 THEN + - 77 ELSE + + 8 END, NULLIF ( + 69, + 66 * + + NULLIF ( SUM( + 91 ), ( - 52 ) / ( - 38 ) ) ) * 13 + 38 AS col0
----
-8
935

skipif mysql # not compatible
query II rowsort label-986
SELECT - CASE - 3 WHEN + 89 THEN + - 77 ELSE + + 8 END, NULLIF ( + 69, + 66 * + + NULLIF ( SUM ( + 91 ), ( - 52 ) / ( - 38 ) ) ) * 13 + 38 AS col0
----
-8
935

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT DISTINCT SUM( DISTINCT 26 ) col0
----
26

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT SUM ( DISTINCT 26 ) col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT ALL COUNT( * ) * + 67 * ( + + 74 )
----
4958

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL COUNT ( * ) * + 67 * ( + + 74 )
----
4958

query II rowsort
SELECT DISTINCT 0, 41 * - 6 AS col0
----
0
-246

onlyif mysql # DIV for integer division: 
query I rowsort label-990
SELECT 82 + 75 - - 31 * 84 DIV + 11
----
393

skipif mysql # not compatible
query I rowsort label-990
SELECT 82 + 75 - - 31 * 84 / + 11
----
393

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-991
SELECT COALESCE ( - - COUNT( * ), 4 * - - 65 + - 54 + COUNT( * ) ) * 98 DIV 98 * - - 32 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-991
SELECT COALESCE ( - - COUNT ( * ), 4 * - - 65 + - 54 + COUNT ( * ) ) * 98 / 98 * - - 32 AS col0
----
32

query I rowsort
SELECT 7 + + 95
----
102

query I rowsort
SELECT ALL 71 + + - 93 * + 0 AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-994
SELECT DISTINCT 83 + - 66 DIV 81, - COUNT( + - 74 ) AS col2
----
83
-1

skipif mysql # not compatible
query II rowsort label-994
SELECT DISTINCT 83 + - 66 / 81, - COUNT ( + - 74 ) AS col2
----
83
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-996
SELECT ALL + 60 + + + MAX( - 5 ) DIV 6
----
60

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL + 60 + + + MAX ( - 5 ) / 6
----
60

query I rowsort
SELECT DISTINCT 70 + 93 + 47
----
210

query I rowsort
SELECT DISTINCT + 42 * + 80
----
3360

query I rowsort
SELECT ALL - 88 * + 22 AS col0
----
-1936

query I rowsort
SELECT ALL - 15 - 55 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL - NULLIF ( + 30, COUNT( ALL - 22 ) / - 4 )
----
-30

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL - NULLIF ( + 30, COUNT ( ALL - 22 ) / - 4 )
----
-30

query I rowsort
SELECT 74 + 99 col1
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT DISTINCT - NULLIF ( COUNT( * ), + MIN( + 32 ) + - COUNT( * ) * + 47 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT - NULLIF ( COUNT ( * ), + MIN ( + 32 ) + - COUNT ( * ) * + 47 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 70 * + NULLIF ( 73, 52 )
----
5110

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

skipif mysql # not compatible
query I rowsort label-1005
SELECT + CAST ( NULL AS INTEGER ) * 75 + + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT 64 * - SUM( DISTINCT + 45 ) AS col0
----
-2880

skipif mysql # not compatible
query I rowsort label-1006
SELECT 64 * - SUM ( DISTINCT + 45 ) AS col0
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT 99 * ( COUNT( * ) * 30 ) AS col0
----
2970

skipif mysql # not compatible
query I rowsort label-1007
SELECT 99 * ( COUNT ( * ) * 30 ) AS col0
----
2970

query I rowsort
SELECT 2 + 40
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT ALL + 26 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL + 26 / - 45
----
0

query I rowsort
SELECT 89 * + 96
----
8544

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT 2 * CASE + 48 WHEN + 10 THEN - 40 ELSE NULLIF ( COUNT( * ), 64 - 64 ) END AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1011
SELECT 2 * CASE + 48 WHEN + 10 THEN - 40 ELSE NULLIF ( COUNT ( * ), 64 - 64 ) END AS col0
----
2

query I rowsort
SELECT ALL ( + 0 ) * - ( + NULLIF ( + 59, 8 + AVG ( 43 + 1 ) ) + + 26 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT DISTINCT + 8 + - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT + 8 + - COUNT ( * )
----
7

query I rowsort
SELECT 92 * + 37 AS col0
----
3404

query I rowsort
SELECT 27 + ( - 17 ) AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1016
SELECT ALL - CASE WHEN NOT ( NULL ) IS NOT NULL THEN + CAST( COUNT( * ) AS SIGNED ) ELSE NULL END + 63 * + 2
----
125

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL - CASE WHEN NOT ( NULL ) IS NOT NULL THEN + CAST ( COUNT ( * ) AS INTEGER ) ELSE NULL END + 63 * + 2
----
125

query I rowsort
SELECT 14 + 87 * - 31 AS col2
----
-2683

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT DISTINCT + COUNT( * ) + + 94
----
95

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT + COUNT ( * ) + + 94
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1019
SELECT COUNT( * ) * CASE - 52 WHEN + 57 / - 43 THEN COUNT( * ) / - 8 + 60 * - COALESCE ( 22 * 84, 79, COUNT( ALL - CAST( NULL AS SIGNED ) ) / 93 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1019
SELECT COUNT ( * ) * CASE - 52 WHEN + 57 / - 43 THEN COUNT ( * ) / - 8 + 60 * - COALESCE ( 22 * 84, 79, COUNT ( ALL - CAST ( NULL AS INTEGER ) ) / 93 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT ALL SUM( - 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL SUM ( - 81 ) AS col1
----
-81

query I rowsort
SELECT DISTINCT 59 * + 93
----
5487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1022
SELECT DISTINCT COUNT( ALL - CASE 34 WHEN 71 THEN NULL WHEN 2 THEN ( CASE 86 WHEN 8 THEN + 39 ELSE CAST( - 33 AS SIGNED ) END ) + + 59 * + 69 END )
----
0

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT COUNT ( ALL - CASE 34 WHEN 71 THEN NULL WHEN 2 THEN ( CASE 86 WHEN 8 THEN + 39 ELSE CAST ( - 33 AS INTEGER ) END ) + + 59 * + 69 END )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT 17 + - 79 * + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-1023
SELECT 17 + - 79 * + COUNT ( * )
----
-62

query I rowsort
SELECT CASE 21 WHEN 24 THEN NULL WHEN 24 THEN + ( - 58 ) * - 10 END * 60
----
NULL

query I rowsort
SELECT ( + 50 ) + 12
----
62

query I rowsort
SELECT DISTINCT 23 * - 59 AS col2
----
-1357

query I rowsort
SELECT NULLIF ( - 63, AVG ( ALL 49 ) ) * - 38
----
2394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1028
SELECT CAST( 36 AS SIGNED ) * - 91
----
-3276

skipif mysql # not compatible
query I rowsort label-1028
SELECT CAST ( 36 AS INTEGER ) * - 91
----
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT ALL 58 * + MIN( + 39 ) AS col2
----
2262

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL 58 * + MIN ( + 39 ) AS col2
----
2262

query I rowsort
SELECT ALL + ( 80 ) - 46
----
34

query I rowsort
SELECT - 74 * - 73
----
5402

query I rowsort
SELECT ALL - - COALESCE ( - 90, - 9, 92 + 84 * - 9 ) AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-1033
SELECT DISTINCT - 68 DIV 11 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT - 68 / 11 AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1034
SELECT + NULLIF ( - 9, ( 40 ) ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT + NULLIF ( - 9, ( 40 ) ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 19 * 18 - 67 AS col0
----
275

onlyif mysql # DIV for integer division: 
query I rowsort label-1036
SELECT DISTINCT 89 DIV 19 col1
----
4

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT 89 / 19 col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT ALL - + 61 * SUM( + 98 - 57 ) AS col2
----
-2501

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL - + 61 * SUM ( + 98 - 57 ) AS col2
----
-2501

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1039
SELECT ALL 46 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL 46 / - 93
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT DISTINCT - MAX( ALL - CASE - 27 WHEN 25 THEN 52 ELSE NULL END ) * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT - MAX ( ALL - CASE - 27 WHEN 25 THEN 52 ELSE NULL END ) * + 36
----
NULL

query I rowsort
SELECT ALL + 20 * 72 + - 26 AS col1
----
1414

query I rowsort
SELECT 3 * - 60 - - NULLIF ( 92, ( 46 ) + - 68 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT DISTINCT + COALESCE ( COUNT( * ), NULLIF ( + 11, 94 ), 50 + 7, - 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT + COALESCE ( COUNT ( * ), NULLIF ( + 11, 94 ), 50 + 7, - 66 ) AS col2
----
1

query I rowsort
SELECT + + NULLIF ( 15, 44 )
----
15

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

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

query I rowsort
SELECT + COALESCE ( - + 35, - 74 * ( - 52 ), - COALESCE ( 13, - 73 ) )
----
-35

query I rowsort
SELECT DISTINCT - ( + 72 ) + 82 * + 80
----
6488

query I rowsort
SELECT 59 * - + 83 * ( - 47 ) + 5 * + 71
----
230514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1050
SELECT ALL + 32 + + + 28 * - CAST( COUNT( * ) AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL + 32 + + + 28 * - CAST ( COUNT ( * ) AS INTEGER )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT - 36 + - + NULLIF ( - 61, MIN( ALL + 55 ) ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1051
SELECT - 36 + - + NULLIF ( - 61, MIN ( ALL + 55 ) ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL COUNT( * ) + + + ( - 17 ) - + 65
----
-81

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL COUNT ( * ) + + + ( - 17 ) - + 65
----
-81

query I rowsort
SELECT ALL - 59 + + 32 AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1054
SELECT DISTINCT CASE 39 WHEN - 96 THEN - SUM( ( - 58 ) ) * 50 ELSE - CAST( NULL AS SIGNED ) * 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT CASE 39 WHEN - 96 THEN - SUM ( ( - 58 ) ) * 50 ELSE - CAST ( NULL AS INTEGER ) * 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT ALL + ( + MIN( - 22 ) ) + - 11 * - 84 AS col0
----
902

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL + ( + MIN ( - 22 ) ) + - 11 * - 84 AS col0
----
902

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT - 76 + SUM( DISTINCT 53 ) + + 71
----
48

skipif mysql # not compatible
query I rowsort label-1056
SELECT - 76 + SUM ( DISTINCT 53 ) + + 71
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT - 82 + + 85 - MIN( ALL 41 ) * COUNT( * ) * 20
----
-817

skipif mysql # not compatible
query I rowsort label-1057
SELECT - 82 + + 85 - MIN ( ALL 41 ) * COUNT ( * ) * 20
----
-817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1058
SELECT ALL - CAST( - 14 AS SIGNED ) * 75 AS col2
----
1050

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL - CAST ( - 14 AS INTEGER ) * 75 AS col2
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT - CASE + + SUM( 24 ) WHEN 22 / 32 THEN - 7 WHEN + 61 * 68 THEN COUNT( * ) + - 95 / + 22 END + COALESCE ( + 52, 35 + - 71, + ( - COALESCE ( - 42, + 53 ) ) / 10 + 77 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT - CASE + + SUM ( 24 ) WHEN 22 / 32 THEN - 7 WHEN + 61 * 68 THEN COUNT ( * ) + - 95 / + 22 END + COALESCE ( + 52, 35 + - 71, + ( - COALESCE ( - 42, + 53 ) ) / 10 + 77 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT DISTINCT NULLIF ( - MAX( DISTINCT 97 ), 67 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT NULLIF ( - MAX ( DISTINCT 97 ), 67 ) AS col1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT - 46 + 13 DIV - 86 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-1061
SELECT - 46 + 13 / - 86 AS col0
----
-46

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

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1063
SELECT DISTINCT COALESCE ( 40, COUNT( * ) * - ( COUNT( * ) * CAST( + ( 26 ) AS SIGNED ) ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT COALESCE ( 40, COUNT ( * ) * - ( COUNT ( * ) * CAST ( + ( 26 ) AS INTEGER ) ) ) AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1064
SELECT ALL CASE - + 53 WHEN 45 THEN NULL ELSE - 76 + 4 END DIV CASE - ( - NULLIF ( 80, - 59 * - MIN( DISTINCT + 87 * 49 ) + + 97 ) ) + 28 WHEN 58 THEN 29 DIV CASE - 67 WHEN + COUNT( * ) + COUNT( * ) THEN + 1 END WHEN - 72 THEN CASE 26 WHEN 3 THEN - 53 WHEN - COUNT( * ) - CASE 45 WHEN 5 THEN MIN( DISTINCT 65 ) * 24 END THEN 99 END ELSE COALESCE ( - 15, 5 * ( 35 ) ) * 16 + 8 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL CASE - + 53 WHEN 45 THEN NULL ELSE - 76 + 4 END / CASE - ( - NULLIF ( 80, - 59 * - MIN ( DISTINCT + 87 * 49 ) + + 97 ) ) + 28 WHEN 58 THEN 29 / CASE - 67 WHEN + COUNT ( * ) + COUNT ( * ) THEN + 1 END WHEN - 72 THEN CASE 26 WHEN 3 THEN - 53 WHEN - COUNT ( * ) - CASE 45 WHEN 5 THEN MIN ( DISTINCT 65 ) * 24 END THEN 99 END ELSE COALESCE ( - 15, 5 * ( 35 ) ) * 16 + 8 END AS col1
----
0

query I rowsort
SELECT - 58 * + 24 AS col2
----
-1392

query I rowsort
SELECT + - 8 - + - 36 * + 61
----
2188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1067
SELECT - + 39 + + CAST( + 6 AS SIGNED ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-1067
SELECT - + 39 + + CAST ( + 6 AS INTEGER ) AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1068
SELECT - CAST( + - COUNT( ALL - CASE + 79 WHEN - ( + 17 ) * - 17 THEN 41 * - 5 + CAST( NULL AS SIGNED ) * 43 END ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1068
SELECT - CAST ( + - COUNT ( ALL - CASE + 79 WHEN - ( + 17 ) * - 17 THEN 41 * - 5 + CAST ( NULL AS INTEGER ) * 43 END ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1069
SELECT + - CAST( + + 64 AS SIGNED ) + - 86 DIV 84
----
-65

skipif mysql # not compatible
query I rowsort label-1069
SELECT + - CAST ( + + 64 AS INTEGER ) + - 86 / 84
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT - 34 + - + SUM( 17 ) + 66 * 5
----
279

skipif mysql # not compatible
query I rowsort label-1070
SELECT - 34 + - + SUM ( 17 ) + 66 * 5
----
279

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

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

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

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

query I rowsort
SELECT ALL 78 * - 44
----
-3432

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT 73 * CASE + 30 WHEN ( - 91 ) THEN - COUNT( * ) END + - 52 * ( 9 * - ( - COUNT( * ) ) + + 35 * 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT 73 * CASE + 30 WHEN ( - 91 ) THEN - COUNT ( * ) END + - 52 * ( 9 * - ( - COUNT ( * ) ) + + 35 * 54 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT + 17 - - + COUNT( * ) * 12
----
29

skipif mysql # not compatible
query I rowsort label-1075
SELECT + 17 - - + COUNT ( * ) * 12
----
29

query I rowsort
SELECT + ( - + ( ( 90 ) ) ) * 72 + - 93
----
-6573

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT ALL - + 42 * - ( 62 ) + ( + 48 ) * COALESCE ( 97, 42 * COUNT( * ), 16, - 75 + MAX( 48 ) ) AS col2
----
7260

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL - + 42 * - ( 62 ) + ( + 48 ) * COALESCE ( 97, 42 * COUNT ( * ), 16, - 75 + MAX ( 48 ) ) AS col2
----
7260

query I rowsort
SELECT + 75 + 0 col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1079
SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( 95 ) + MIN( + 86 ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( 95 ) + MIN ( + 86 ) / + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + ( - 93 ) * 17 + 16
----
-1565

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT - - 63 * NULLIF ( COUNT( * ), 80 * - 87 )
----
63

skipif mysql # not compatible
query I rowsort label-1081
SELECT - - 63 * NULLIF ( COUNT ( * ), 80 * - 87 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT 57 * COUNT( * ) + 85 * 27
----
2352

skipif mysql # not compatible
query I rowsort label-1082
SELECT 57 * COUNT ( * ) + 85 * 27
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT ALL - + 25 * + 6 * - 37 + + COUNT( * ) * - MIN( - 3 ) AS col0
----
5553

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL - + 25 * + 6 * - 37 + + COUNT ( * ) * - MIN ( - 3 ) AS col0
----
5553

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

query I rowsort
SELECT - 37 * 29 + + 8 * - 14
----
-1185

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT ALL + 61 * COUNT( * ) + - COUNT( ALL - 23 )
----
60

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + 61 * COUNT ( * ) + - COUNT ( ALL - 23 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1087
SELECT + 60 * 66 * CASE CASE + 18 WHEN - 46 THEN - 22 WHEN CASE + MIN( 80 ) WHEN + 57 - - 45 * 40 THEN ( + CAST( NULL AS SIGNED ) ) WHEN + 37 THEN NULL WHEN 86 THEN + 37 * - 20 + 87 END * + CAST( - 19 + - 98 AS SIGNED ) + - 86 THEN + COUNT( * ) + + 45 END WHEN + 69 THEN - 82 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1087
SELECT + 60 * 66 * CASE CASE + 18 WHEN - 46 THEN - 22 WHEN CASE + MIN ( 80 ) WHEN + 57 - - 45 * 40 THEN ( + CAST ( NULL AS INTEGER ) ) WHEN + 37 THEN NULL WHEN 86 THEN + 37 * - 20 + 87 END * + CAST ( - 19 + - 98 AS INTEGER ) + - 86 THEN + COUNT ( * ) + + 45 END WHEN + 69 THEN - 82 END AS col1
----
NULL

query I rowsort
SELECT - 66 * - 36 * + - 21 col1
----
-49896

query I rowsort
SELECT + 36 * - 64 AS col0
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT + ( - + SUM( ALL - 90 ) ) col1
----
90

skipif mysql # not compatible
query I rowsort label-1090
SELECT + ( - + SUM ( ALL - 90 ) ) col1
----
90

query I rowsort
SELECT + 30 * + 70
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT CASE - COALESCE ( + 71, 26 ) WHEN COUNT( * ) - + COUNT( * ) THEN - 58 * 84 WHEN COALESCE ( - COUNT( * ), - 52, 93 * + 98 ) THEN NULL WHEN 37 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1092
SELECT CASE - COALESCE ( + 71, 26 ) WHEN COUNT ( * ) - + COUNT ( * ) THEN - 58 * 84 WHEN COALESCE ( - COUNT ( * ), - 52, 93 * + 98 ) THEN NULL WHEN 37 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 95 * + 39 AS col1
----
3705

query I rowsort
SELECT DISTINCT + 51 * 44 - 40
----
2204

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT + 70 * + 0 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-1095
SELECT + 70 * + 0 / 77
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1096
SELECT - 22 col0, + COUNT( * ) * - - 14
----
-22
14

skipif mysql # not compatible
query II rowsort label-1096
SELECT - 22 col0, + COUNT ( * ) * - - 14
----
-22
14

query I rowsort
SELECT ALL NULLIF ( - 12, 90 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT SUM( 77 )
----
77

skipif mysql # not compatible
query I rowsort label-1098
SELECT SUM ( 77 )
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1099
SELECT - 76 AS col1, 25 * 60 * + COUNT( * ) AS col2
----
-76
1500

skipif mysql # not compatible
query II rowsort label-1099
SELECT - 76 AS col1, 25 * 60 * + COUNT ( * ) AS col2
----
-76
1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1100
SELECT - MIN( DISTINCT + CAST( + 39 AS SIGNED ) ) + 53 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-1100
SELECT - MIN ( DISTINCT + CAST ( + 39 AS INTEGER ) ) + 53 AS col1
----
14

query II rowsort
SELECT - 30 AS col0, + 22 + + 59
----
-30
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT ALL - 29 * - - COALESCE ( SUM( ALL 74 ), + 34 + COUNT( * ) * + 48 )
----
-2146

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL - 29 * - - COALESCE ( SUM ( ALL 74 ), + 34 + COUNT ( * ) * + 48 )
----
-2146

query I rowsort
SELECT - 40 * + - 3
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1104
SELECT - 87 AS col2, - 8 * + ( COUNT( * ) ) + + CAST( + 94 - 96 * 14 AS SIGNED ) AS col2
----
-87
-1258

skipif mysql # not compatible
query II rowsort label-1104
SELECT - 87 AS col2, - 8 * + ( COUNT ( * ) ) + + CAST ( + 94 - 96 * 14 AS INTEGER ) AS col2
----
-87
-1258

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1106
SELECT - - 79 DIV + + 43
----
1

skipif mysql # not compatible
query I rowsort label-1106
SELECT - - 79 / + + 43
----
1

query I rowsort
SELECT + 96 * + 74 AS col0
----
7104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1108
SELECT - 65 + - CAST( NULL AS SIGNED ) * CASE WHEN NOT NULL <= ( NULL ) THEN NULLIF ( + COUNT( * ), 53 * 98 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT - 65 + - CAST ( NULL AS INTEGER ) * CASE WHEN NOT NULL <= ( NULL ) THEN NULLIF ( + COUNT ( * ), 53 * 98 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1109
SELECT + 64 AS col2, 97 + 41 * COUNT( * ) AS col0
----
64
138

skipif mysql # not compatible
query II rowsort label-1109
SELECT + 64 AS col2, 97 + 41 * COUNT ( * ) AS col0
----
64
138

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1110
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, - 2 AS col1
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-1110
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - 2 AS col1
----
NULL
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-1111
SELECT - - 48, + COUNT( * ) * COUNT( * ) * + 61 AS col2
----
48
61

skipif mysql # not compatible
query II rowsort label-1111
SELECT - - 48, + COUNT ( * ) * COUNT ( * ) * + 61 AS col2
----
48
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT - 92 DIV 69 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1112
SELECT - 92 / 69 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT ALL + + 69 + 65 - - - 65 * + COUNT( * ) col2
----
69

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL + + 69 + 65 - - - 65 * + COUNT ( * ) col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT DISTINCT + 80 + MAX( 14 )
----
94

skipif mysql # not compatible
query I rowsort label-1114
SELECT DISTINCT + 80 + MAX ( 14 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT DISTINCT - COUNT( - 97 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT - COUNT ( - 97 ) AS col0
----
-1

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

query I rowsort
SELECT ALL - 67 + 10 + 91 * + 51 AS col0
----
4584

query II rowsort
SELECT + 55 col2, + 26 + - - 79
----
55
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT ALL - SUM( + + 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL - SUM ( + + 10 ) AS col1
----
-10

query I rowsort
SELECT 86 * + NULLIF ( + - 27, + CASE - 46 WHEN 61 THEN NULL ELSE - 10 END * - 51 ) * + 79
----
-183438

query I rowsort
SELECT ALL 92 + - CASE - 47 WHEN - 55 * 94 + 15 THEN 55 END + 29 col2
----
NULL

query I rowsort
SELECT ALL - + 22 * + + 65 * 91 * + 9
----
-1171170

query I rowsort
SELECT ALL + 32 - + 99
----
-67

query II rowsort
SELECT ALL 1 - 72 AS col1, - 5
----
-71
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT - 8 * - 97 - - - 35 * - + COUNT( 4 ) + 19
----
830

skipif mysql # not compatible
query I rowsort label-1125
SELECT - 8 * - 97 - - - 35 * - + COUNT ( 4 ) + 19
----
830

query I rowsort
SELECT 17 + + + 87 * ( - 92 ) AS col0
----
-7987

query I rowsort
SELECT - 8 * 43 + 66
----
-278

query I rowsort
SELECT ( + 27 ) * + 30 AS col1
----
810

onlyif mysql # DIV for integer division: 
query I rowsort label-1129
SELECT DISTINCT ( + 91 ) DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT ( + 91 ) / 98
----
0

query I rowsort
SELECT ALL 35 * + 37 AS col2
----
1295

query I rowsort
SELECT ( - 98 ) * 19
----
-1862

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1132
SELECT ALL CAST( NULL AS SIGNED ) * - 11 AS col2, - ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) * 19 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1132
SELECT ALL CAST ( NULL AS INTEGER ) * - 11 AS col2, - ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) * 19 AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1133
SELECT 67 * 44 AS col1, + MAX( + 73 ) * + 37 + 19 * COUNT( * ) AS col0
----
2948
2720

skipif mysql # not compatible
query II rowsort label-1133
SELECT 67 * 44 AS col1, + MAX ( + 73 ) * + 37 + 19 * COUNT ( * ) AS col0
----
2948
2720

query I rowsort
SELECT DISTINCT 40 * + - 99 AS col1
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT ALL 99 * - COUNT( 52 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL 99 * - COUNT ( 52 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT 87 + - COUNT( * ) * + 26 * - + ( 63 ) + - 26
----
1699

skipif mysql # not compatible
query I rowsort label-1136
SELECT 87 + - COUNT ( * ) * + 26 * - + ( 63 ) + - 26
----
1699

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL + 11 + 41 + - + MIN( + + 32 )
----
20

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL + 11 + 41 + - + MIN ( + + 32 )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1139
SELECT ( 88 ) AS col0, 82 + - MAX( DISTINCT - 43 ) DIV 2
----
88
103

skipif mysql # not compatible
query II rowsort label-1139
SELECT ( 88 ) AS col0, 82 + - MAX ( DISTINCT - 43 ) / 2
----
88
103

query I rowsort
SELECT 93 + 24
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1141
SELECT DISTINCT CASE + 73 WHEN - 81 * MIN( DISTINCT - 31 ) + + ( - 42 + 33 ) THEN CASE 96 WHEN 53 THEN 55 * 48 - + SUM( ALL - 25 ) WHEN 4 THEN NULL ELSE NULL END WHEN + 72 THEN NULL END + ( CAST( + 91 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT CASE + 73 WHEN - 81 * MIN ( DISTINCT - 31 ) + + ( - 42 + 33 ) THEN CASE 96 WHEN 53 THEN 55 * 48 - + SUM ( ALL - 25 ) WHEN 4 THEN NULL ELSE NULL END WHEN + 72 THEN NULL END + ( CAST ( + 91 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1142
SELECT ALL + CAST( - 71 AS SIGNED ) + + 81 + - + ( - CAST( 75 AS SIGNED ) ) * - COUNT( * ) * + 57 AS col2
----
-4265

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL + CAST ( - 71 AS INTEGER ) + + 81 + - + ( - CAST ( 75 AS INTEGER ) ) * - COUNT ( * ) * + 57 AS col2
----
-4265

query I rowsort
SELECT ALL 13 + - 19
----
-6

query II rowsort
SELECT ALL + 18 + 46, 10 col1
----
64
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT 62 - + COUNT( * ) * + 30
----
32

skipif mysql # not compatible
query I rowsort label-1145
SELECT 62 - + COUNT ( * ) * + 30
----
32

query I rowsort
SELECT DISTINCT + 85 + - + 21 + 8
----
72

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

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

query I rowsort
SELECT ALL + ( 4 ) + - + 23 AS col2
----
-19

query I rowsort
SELECT 42 + + 69
----
111

query I rowsort
SELECT + 54 * + 89 + 18 * 78 AS col2
----
6210

query I rowsort
SELECT ALL - 91 * - + 70 - + ( + 81 ) AS col1
----
6289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1152
SELECT ALL + 74 - + - CAST( + 62 AS SIGNED ) + - 28
----
108

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL + 74 - + - CAST ( + 62 AS INTEGER ) + - 28
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT DISTINCT - MAX( ALL - - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-1153
SELECT DISTINCT - MAX ( ALL - - 7 )
----
-7

query I rowsort
SELECT ALL 1 * COALESCE ( - 40, + 5, + - 64 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT COUNT( * ) + COUNT( * ) + - 8 - - 68
----
62

skipif mysql # not compatible
query I rowsort label-1155
SELECT COUNT ( * ) + COUNT ( * ) + - 8 - - 68
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT ALL + 28 DIV + 23
----
1

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL + 28 / + 23
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL - SUM( ALL 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL - SUM ( ALL 1 )
----
-1

query I rowsort
SELECT + 41 * 78 + + + 73 + - ( - NULLIF ( - 69, + 1 ) ) AS col1
----
3202

query I rowsort
SELECT 23 * - - 54 * - - 2 * - 22 * 93
----
-5082264

onlyif mysql # aggregate syntax: 
query II rowsort label-1160
SELECT ALL - 97 AS col2, SUM( 10 ) AS col0
----
-97
10

skipif mysql # not compatible
query II rowsort label-1160
SELECT ALL - 97 AS col2, SUM ( 10 ) AS col0
----
-97
10

query I rowsort
SELECT ALL 59 * + ( 25 )
----
1475

query I rowsort
SELECT DISTINCT + ( + - 94 ) * - - 92
----
-8648

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT ALL + 29 * - SUM( DISTINCT + + 45 )
----
-1305

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL + 29 * - SUM ( DISTINCT + + 45 )
----
-1305

onlyif mysql # aggregate syntax: 
query II rowsort label-1164
SELECT ALL - COUNT( * ) AS col1, 98 * + 48 AS col0
----
-1
4704

skipif mysql # not compatible
query II rowsort label-1164
SELECT ALL - COUNT ( * ) AS col1, 98 * + 48 AS col0
----
-1
4704

onlyif mysql # aggregate syntax: 
query II rowsort label-1165
SELECT - 85 col1, 45 + + CASE - NULLIF ( + 85, COUNT( * ) ) WHEN - 89 THEN 79 * ( + 57 ) END AS col2
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-1165
SELECT - 85 col1, 45 + + CASE - NULLIF ( + 85, COUNT ( * ) ) WHEN - 89 THEN 79 * ( + 57 ) END AS col2
----
-85
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT ( + 68 ) DIV + 40
----
1

skipif mysql # not compatible
query I rowsort label-1166
SELECT ( + 68 ) / + 40
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1167
SELECT CAST( - 25 AS SIGNED ) - + NULLIF ( - - COUNT( * ), + COUNT( * ) * + 4 + 7 * - 11 ) * - MAX( DISTINCT 66 )
----
41

skipif mysql # not compatible
query I rowsort label-1167
SELECT CAST ( - 25 AS INTEGER ) - + NULLIF ( - - COUNT ( * ), + COUNT ( * ) * + 4 + 7 * - 11 ) * - MAX ( DISTINCT 66 )
----
41

query I rowsort
SELECT ALL 44 * - + 64
----
-2816

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT 8 + + COUNT( ALL - 5 )
----
9

skipif mysql # not compatible
query I rowsort label-1169
SELECT 8 + + COUNT ( ALL - 5 )
----
9

query I rowsort
SELECT ALL + ( - + 75 ) + + + 50
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT DISTINCT + 58 * + 68 + - - 58 * + + 73 * NULLIF ( COUNT( * ), 41 )
----
8178

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT + 58 * + 68 + - - 58 * + + 73 * NULLIF ( COUNT ( * ), 41 )
----
8178

query I rowsort
SELECT ALL 67 + - 39
----
28

query II rowsort
SELECT DISTINCT - 28, + 18 AS col0
----
-28
18

query I rowsort
SELECT ALL 10 * + 21 AS col0
----
210

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1175
SELECT + + 19 + - CAST( NULL AS DECIMAL ) + - COUNT( - - 67 ) / + - ( 84 ) / 31 + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1175
SELECT + + 19 + - CAST ( NULL AS REAL ) + - COUNT ( - - 67 ) / + - ( 84 ) / 31 + 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT ALL + COUNT( * ) + ( 12 ) * - - ( + 45 ) col1
----
541

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL + COUNT ( * ) + ( 12 ) * - - ( + 45 ) col1
----
541

query I rowsort
SELECT + 30 * - 24 + + + ( + 40 ) AS col0
----
-680

query I rowsort
SELECT + + 26 + 52
----
78

query I rowsort
SELECT DISTINCT + NULLIF ( - - 39, + AVG ( - 3 ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT ALL + - 22 * COUNT( * ) * 7
----
-154

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL + - 22 * COUNT ( * ) * 7
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1181
SELECT COALESCE ( + MAX( + + CAST( NULL AS SIGNED ) ), 2, - - 31, - + 38 * 15 - 68, + 29 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1181
SELECT COALESCE ( + MAX ( + + CAST ( NULL AS INTEGER ) ), 2, - - 31, - + 38 * 15 - 68, + 29 ) AS col2
----
2

query I rowsort
SELECT + 95 * + 48
----
4560

query I rowsort
SELECT + NULLIF ( 11, + 47 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT ALL + SUM( DISTINCT - 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL + SUM ( DISTINCT - 78 ) AS col0
----
-78

query I rowsort
SELECT COALESCE ( 10, - 46 ) AS col1
----
10

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1187
SELECT 69 DIV 56 - + 3 * + + 44 col0, - 52 * - - 55 * 36
----
-131
-102960

skipif mysql # not compatible
query II rowsort label-1187
SELECT 69 / 56 - + 3 * + + 44 col0, - 52 * - - 55 * 36
----
-131
-102960

query II rowsort
SELECT ALL + 13 AS col0, 15 * - ( + 37 ) AS col1
----
13
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT ALL + NULLIF ( - 92, + CASE WHEN NOT 47 NOT IN ( + SUM( + 26 ) * 1 + + 42 ) THEN NULL ELSE 70 + 64 END * + 25 )
----
-92

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL + NULLIF ( - 92, + CASE WHEN NOT 47 NOT IN ( + SUM ( + 26 ) * 1 + + 42 ) THEN NULL ELSE 70 + 64 END * + 25 )
----
-92

query I rowsort
SELECT COALESCE ( + + 56, - + ( - 75 ) ) AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1191
SELECT ALL COALESCE ( + 79, + CAST( NULL AS SIGNED ) ) * - 82 AS col2, COUNT( * ) AS col2
----
-6478
1

skipif mysql # not compatible
query II rowsort label-1191
SELECT ALL COALESCE ( + 79, + CAST ( NULL AS INTEGER ) ) * - 82 AS col2, COUNT ( * ) AS col2
----
-6478
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1192
SELECT DISTINCT + 90 AS col2, + MIN( - 18 ) AS col2
----
90
-18

skipif mysql # not compatible
query II rowsort label-1192
SELECT DISTINCT + 90 AS col2, + MIN ( - 18 ) AS col2
----
90
-18

query I rowsort
SELECT - 0 * 70 * - 3
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1194
SELECT ALL - 70 DIV + 30 AS col0, 13 AS col2
----
-2
13

skipif mysql # not compatible
query II rowsort label-1194
SELECT ALL - 70 / + 30 AS col0, 13 AS col2
----
-2
13

query I rowsort
SELECT NULLIF ( + + 89, 29 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT ALL COUNT( * ) * - COUNT( * ) + - + 5 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL COUNT ( * ) * - COUNT ( * ) + - + 5 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT + ( - - COUNT( * ) ) * + 46 + - 18 - + 96 + + - 73 AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-1197
SELECT + ( - - COUNT ( * ) ) * + 46 + - 18 - + 96 + + - 73 AS col2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT ALL NULLIF ( + 6, + - 19 ) * COALESCE ( 95, + + 29 + COUNT( * ) ) + 65 + - 60 * COUNT( * )
----
575

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL NULLIF ( + 6, + - 19 ) * COALESCE ( 95, + + 29 + COUNT ( * ) ) + 65 + - 60 * COUNT ( * )
----
575

query I rowsort
SELECT - 64 + - 73 col1
----
-137

query I rowsort
SELECT - 70 - 30 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT NULLIF ( + ( + COUNT( * ) ), - - 89 - + - 68 )
----
1

skipif mysql # not compatible
query I rowsort label-1201
SELECT NULLIF ( + ( + COUNT ( * ) ), - - 89 - + - 68 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT ALL 86 * + 93 * + 15 * - CAST( NULL AS SIGNED ) * + 68 / - 65 + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL 86 * + 93 * + 15 * - CAST ( NULL AS INTEGER ) * + 68 / - 65 + + 12
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1203
SELECT DISTINCT + COUNT( * ), 77 AS col2
----
1
77

skipif mysql # not compatible
query II rowsort label-1203
SELECT DISTINCT + COUNT ( * ), 77 AS col2
----
1
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1204
SELECT DISTINCT 48 * - CAST( NULL AS SIGNED ) + 1 - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT 48 * - CAST ( NULL AS INTEGER ) + 1 - + 82
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1205
SELECT - + COUNT( - 30 ) AS col0, + 58 * 44 * + 54 AS col1
----
-1
137808

skipif mysql # not compatible
query II rowsort label-1205
SELECT - + COUNT ( - 30 ) AS col0, + 58 * 44 * + 54 AS col1
----
-1
137808

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT DISTINCT + SUM( ALL 80 )
----
80

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT + SUM ( ALL 80 )
----
80

query I rowsort
SELECT ALL 55 + + - 65 - - - 47 * 77 col1
----
-3629

query I rowsort
SELECT DISTINCT - 1 + + + 20
----
19

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

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

query I rowsort
SELECT DISTINCT - + 58 - - 70 AS col2
----
12

query I rowsort
SELECT ALL + 35 - - - 19
----
16

query I rowsort
SELECT - + 30 * + + 4 AS col1
----
-120

query I rowsort
SELECT + 75 * - 36 AS col1
----
-2700

query I rowsort
SELECT - 14 + - + 34 col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1215
SELECT DISTINCT + 85 * CAST( + 67 AS SIGNED ) AS col1
----
5695

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT + 85 * CAST ( + 67 AS INTEGER ) AS col1
----
5695

query I rowsort
SELECT ALL - - 16 - 33
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ALL - 52 * + - SUM( - 27 ) AS col0
----
-1404

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL - 52 * + - SUM ( - 27 ) AS col0
----
-1404

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1219
SELECT 53, - 54 DIV + 91 AS col0
----
53
0

skipif mysql # not compatible
query II rowsort label-1219
SELECT 53, - 54 / + 91 AS col0
----
53
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1220
SELECT DISTINCT 29 * + ( + CAST( NULL AS SIGNED ) ) + + 70 AS col0, - 48
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-1220
SELECT DISTINCT 29 * + ( + CAST ( NULL AS INTEGER ) ) + + 70 AS col0, - 48
----
NULL
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1221
SELECT + + 14 DIV 90 * - - 4 * + 4 * 96
----
0

skipif mysql # not compatible
query I rowsort label-1221
SELECT + + 14 / 90 * - - 4 * + 4 * 96
----
0

query I rowsort
SELECT + - 3 * - 74 + NULLIF ( + 31, + 65 )
----
253

query I rowsort
SELECT + 54 * 91
----
4914

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT + ( SUM( + 68 ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-1225
SELECT + ( SUM ( + 68 ) ) AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1226
SELECT DISTINCT CAST( + 49 AS SIGNED ) * + - CAST( - - 23 AS SIGNED )
----
-1127

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT CAST ( + 49 AS INTEGER ) * + - CAST ( - - 23 AS INTEGER )
----
-1127

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT + COUNT( * ) + - + ( + + MIN( DISTINCT + + 71 ) ) + + - ( 76 ) AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-1227
SELECT + COUNT ( * ) + - + ( + + MIN ( DISTINCT + + 71 ) ) + + - ( 76 ) AS col2
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1228
SELECT ALL 70 DIV + 71 + + NULLIF ( - 79, MAX( 58 ) + 78 )
----
-79

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL 70 / + 71 + + NULLIF ( - 79, MAX ( 58 ) + 78 )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1229
SELECT CAST( - 71 AS SIGNED ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-1229
SELECT CAST ( - 71 AS INTEGER ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT + 76 * COUNT( * ) * ( 63 ) AS col1
----
4788

skipif mysql # not compatible
query I rowsort label-1230
SELECT + 76 * COUNT ( * ) * ( 63 ) AS col1
----
4788

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1231
SELECT ALL 64 DIV + 23 + CASE + 4 WHEN - + 69 DIV - ( CAST( NULL AS SIGNED ) ) * 49 THEN NULL WHEN 87 THEN - 93 ELSE - 40 END
----
-38

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL 64 / + 23 + CASE + 4 WHEN - + 69 / - ( CAST ( NULL AS INTEGER ) ) * 49 THEN NULL WHEN 87 THEN - 93 ELSE - 40 END
----
-38

query I rowsort
SELECT + 88 * + 80
----
7040

query I rowsort
SELECT - 94 + + 6 * + 50 * + 36 + - ( - NULLIF ( 58, 94 ) )
----
10764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1234
SELECT NULLIF ( - 49, + 33 / + 89 ) / - MAX( - CAST( NULL AS SIGNED ) ) + - MAX( ( 84 ) ) + 73 * + ( 25 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT NULLIF ( - 49, + 33 / + 89 ) / - MAX ( - CAST ( NULL AS INTEGER ) ) + - MAX ( ( 84 ) ) + 73 * + ( 25 ) AS col0
----
NULL

query I rowsort
SELECT + 58 * 66 * ( + - 86 ) AS col2
----
-329208

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT - ( - COALESCE ( + 42, - 96, - 15 ) ) + - + 70 + - + 31 DIV + 1 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1236
SELECT - ( - COALESCE ( + 42, - 96, - 15 ) ) + - + 70 + - + 31 / + 1 AS col2
----
-59

query I rowsort
SELECT ALL 16 + + - 45 * + - 19
----
871

onlyif mysql # DIV for integer division: 
query II rowsort label-1238
SELECT DISTINCT - - 85 DIV - + 43, 75 + + 52 AS col1
----
-1
127

skipif mysql # not compatible
query II rowsort label-1238
SELECT DISTINCT - - 85 / - + 43, 75 + + 52 AS col1
----
-1
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1239
SELECT - 60 * 14 + - - 37 - - NULLIF ( + NULLIF ( COUNT( * ), 73 * 1 ), CAST( - 72 AS SIGNED ) ) + 44 * - 99 col0
----
-5158

skipif mysql # not compatible
query I rowsort label-1239
SELECT - 60 * 14 + - - 37 - - NULLIF ( + NULLIF ( COUNT ( * ), 73 * 1 ), CAST ( - 72 AS INTEGER ) ) + 44 * - 99 col0
----
-5158

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

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

query I rowsort
SELECT 71 * - - 83 col2
----
5893

query II rowsort
SELECT - 32 + + - 42 AS col1, 14
----
-74
14

query I rowsort
SELECT - CASE - + 98 WHEN 82 * + 47 THEN - 61 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + 22, + 55 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT DISTINCT - 56 * 47 * + MAX( ALL - ( - 54 ) ) col0
----
-142128

skipif mysql # not compatible
query I rowsort label-1245
SELECT DISTINCT - 56 * 47 * + MAX ( ALL - ( - 54 ) ) col0
----
-142128

query I rowsort
SELECT DISTINCT - 45 * CASE + 33 WHEN - ( 38 ) - - 76 THEN - - 45 * + 79 WHEN - 99 * 27 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ALL + ( 31 ) - MAX( ALL 40 )
----
-9

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL + ( 31 ) - MAX ( ALL 40 )
----
-9

query I rowsort
SELECT + 39 * - 50 AS col1
----
-1950

query I rowsort
SELECT ALL - 12 * + 94
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT - 48 + - + SUM( DISTINCT 83 ) + + 44
----
-87

skipif mysql # not compatible
query I rowsort label-1250
SELECT - 48 + - + SUM ( DISTINCT 83 ) + + 44
----
-87

query I rowsort
SELECT DISTINCT - 96 * 83 - + - 48 + - ( + 44 ) AS col0
----
-7964

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT 9 + - COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-1252
SELECT 9 + - COUNT ( * ) AS col1
----
8

query I rowsort
SELECT + 66 - - 13 * - 94 AS col2
----
-1156

query I rowsort
SELECT 55 * + 3 AS col2
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-1255
SELECT DISTINCT 83 DIV + 44 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT 83 / + 44 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT ALL 42 + - + MAX( + + 58 ) + - 5 - + + 84
----
-105

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL 42 + - + MAX ( + + 58 ) + - 5 - + + 84
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1257
SELECT 52 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT 52 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 36 * + + 92 * 99 col2
----
327888

onlyif mysql # aggregate syntax: 
query II rowsort label-1259
SELECT DISTINCT - 35 AS col1, - CASE WHEN NOT NULL NOT IN ( - 27 ) THEN - 79 * + COUNT( * ) * + 29 * 62 END + - 15 AS col0
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-1259
SELECT DISTINCT - 35 AS col1, - CASE WHEN NOT NULL NOT IN ( - 27 ) THEN - 79 * + COUNT ( * ) * + 29 * 62 END + - 15 AS col0
----
-35
NULL

query II rowsort
SELECT DISTINCT - 39, 75 AS col1
----
-39
75

query II rowsort
SELECT 42 + + 41 * + 43 + + - 23 AS col1, 0
----
1782
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1262
SELECT ALL 0 * - + MAX( DISTINCT 5 ) col2, 88 + - 58 + COUNT( - 53 ) * - COUNT( * )
----
0
29

skipif mysql # not compatible
query II rowsort label-1262
SELECT ALL 0 * - + MAX ( DISTINCT 5 ) col2, 88 + - 58 + COUNT ( - 53 ) * - COUNT ( * )
----
0
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT 51 * + - CASE WHEN NOT 1 BETWEEN - MIN( - NULLIF ( - 96, 11 ) ) AND ( COUNT( * ) ) THEN COUNT( DISTINCT - 90 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT 51 * + - CASE WHEN NOT 1 BETWEEN - MIN ( - NULLIF ( - 96, 11 ) ) AND ( COUNT ( * ) ) THEN COUNT ( DISTINCT - 90 ) ELSE NULL END col0
----
NULL

query I rowsort
SELECT 87 * - + 30
----
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL 76 + - MAX( - + 23 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL 76 + - MAX ( - + 23 ) AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1266
SELECT ( - COUNT( ALL - 33 ) ) DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-1266
SELECT ( - COUNT ( ALL - 33 ) ) / + 61
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1267
SELECT ALL 29 + + CAST( - 52 AS SIGNED ) * - 40 AS col0, + CAST( - + 50 AS SIGNED ) - 26 AS col0
----
2109
-76

skipif mysql # not compatible
query II rowsort label-1267
SELECT ALL 29 + + CAST ( - 52 AS INTEGER ) * - 40 AS col0, + CAST ( - + 50 AS INTEGER ) - 26 AS col0
----
2109
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT 77 - + - SUM( ALL + + 22 ) + + 48
----
147

skipif mysql # not compatible
query I rowsort label-1268
SELECT 77 - + - SUM ( ALL + + 22 ) + + 48
----
147

query I rowsort
SELECT DISTINCT 64 + + 88 AS col0
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1270
SELECT ALL 93 + - COALESCE ( + + 28, - 5, + 47 * + 83 * 5 ) DIV - COUNT( * ) AS col1
----
121

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL 93 + - COALESCE ( + + 28, - 5, + 47 * + 83 * 5 ) / - COUNT ( * ) AS col1
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1271
SELECT - 37 + - CASE - CAST( 30 AS SIGNED ) WHEN - + 6 THEN NULL WHEN + - 40 * - + ( + - 77 ) * - 64 THEN COUNT( * ) - 28 * + ( COUNT( * ) ) WHEN COALESCE ( - 37, + 51 - + ( - 8 + CAST( + 99 - + 84 AS SIGNED ) * COALESCE ( - 50 - NULLIF ( 76 + 66, + 93 ), - 4 * 70 ) ), 75 * CAST( NULL AS SIGNED ) ) THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1271
SELECT - 37 + - CASE - CAST ( 30 AS INTEGER ) WHEN - + 6 THEN NULL WHEN + - 40 * - + ( + - 77 ) * - 64 THEN COUNT ( * ) - 28 * + ( COUNT ( * ) ) WHEN COALESCE ( - 37, + 51 - + ( - 8 + CAST ( + 99 - + 84 AS INTEGER ) * COALESCE ( - 50 - NULLIF ( 76 + 66, + 93 ), - 4 * 70 ) ), 75 * CAST ( NULL AS INTEGER ) ) THEN - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1272
SELECT - - 91 * CAST( + 11 AS SIGNED ) * + COUNT( * ) * + 5 - + + ( + 82 ) - - 80 * CASE 5 WHEN CAST( NULL AS SIGNED ) THEN - 10 WHEN + 25 + + 34 THEN + ( - 46 ) - COALESCE ( COUNT( * ), + 13 * 10 + ( 97 ) * SUM( DISTINCT + 73 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1272
SELECT - - 91 * CAST ( + 11 AS INTEGER ) * + COUNT ( * ) * + 5 - + + ( + 82 ) - - 80 * CASE 5 WHEN CAST ( NULL AS INTEGER ) THEN - 10 WHEN + 25 + + 34 THEN + ( - 46 ) - COALESCE ( COUNT ( * ), + 13 * 10 + ( 97 ) * SUM ( DISTINCT + 73 ) ) END AS col0
----
NULL

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

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

query I rowsort
SELECT - 21 - - - 43 + - 39 + 92 AS col0
----
-11

query I rowsort
SELECT ALL 90 - - 85 + - 98 + - 32
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT 85 * + CASE 17 WHEN - + MIN( ALL - 65 ) THEN NULL WHEN + + 5 THEN + 6 / + COALESCE ( - NULLIF ( COUNT( * ), - 49 ), 71, - 21 ) + - 86 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT 85 * + CASE 17 WHEN - + MIN ( ALL - 65 ) THEN NULL WHEN + + 5 THEN + 6 / + COALESCE ( - NULLIF ( COUNT ( * ), - 49 ), 71, - 21 ) + - 86 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 30 * + - ( - 79 ) * + + 12 * + COALESCE ( - 70, + - 9 * + + 22, - 23 - - 70 * + 33 )
----
-1990800

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT ALL - + 13 AS col1, - 5 * + COUNT( * )
----
-13
-5

skipif mysql # not compatible
query II rowsort label-1279
SELECT ALL - + 13 AS col1, - 5 * + COUNT ( * )
----
-13
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1280
SELECT DISTINCT - - 52 AS col1, - SUM( - - 64 )
----
52
-64

skipif mysql # not compatible
query II rowsort label-1280
SELECT DISTINCT - - 52 AS col1, - SUM ( - - 64 )
----
52
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL - 8 * + 96 - COUNT( - - 97 ) - - 1 + 42 * - 50 * + - 17
----
34932

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL - 8 * + 96 - COUNT ( - - 97 ) - - 1 + 42 * - 50 * + - 17
----
34932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1282
SELECT - CAST( 82 AS SIGNED ) + + 44 * - 96 AS col1
----
-4306

skipif mysql # not compatible
query I rowsort label-1282
SELECT - CAST ( 82 AS INTEGER ) + + 44 * - 96 AS col1
----
-4306

query I rowsort
SELECT - 37 + + 60
----
23

query I rowsort
SELECT 34 * + 76
----
2584

query I rowsort
SELECT 93 + + 35 * + 2 * - + 51
----
-3477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1286
SELECT ALL + - 48 DIV - COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL + - 48 / - COUNT ( * ) AS col1
----
48

query I rowsort
SELECT 70 * - 85 + - + 26 AS col1
----
-5976

query I rowsort
SELECT ALL - - 36 + 69 AS col1
----
105

query I rowsort
SELECT DISTINCT - ( + - ( + 90 ) ) + + 45 col0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1290
SELECT ALL + 38 + + 56 AS col0, NULLIF ( + 21, 34 + + 90 * - + ( - CASE - 53 WHEN - ( 7 ) * - 86 THEN 67 + 84 WHEN + AVG ( 72 ) * 43 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - 43 END ) ) AS col2
----
94
21

skipif mysql # not compatible
query II rowsort label-1290
SELECT ALL + 38 + + 56 AS col0, NULLIF ( + 21, 34 + + 90 * - + ( - CASE - 53 WHEN - ( 7 ) * - 86 THEN 67 + 84 WHEN + AVG ( 72 ) * 43 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - 43 END ) ) AS col2
----
94
21

query I rowsort
SELECT ALL - 83 * + 11 AS col2
----
-913

query I rowsort
SELECT ALL - 10 + - + NULLIF ( + - 46, 11 ) AS col2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1293
SELECT DISTINCT + 56 + + 31 DIV - SUM( ALL + NULLIF ( - 66, - 14 ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT + 56 + + 31 / - SUM ( ALL + NULLIF ( - 66, - 14 ) ) AS col0
----
56

query I rowsort
SELECT 42 + 37 AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1295
SELECT 77 + 22 + - + 53 + - SUM( 44 ) * + 96 - + 97 * 99 / + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1295
SELECT 77 + 22 + - + 53 + - SUM ( 44 ) * + 96 - + 97 * 99 / + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL - 38 + 46 * 55 * + + 62 * + COUNT( * )
----
156822

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - 38 + 46 * 55 * + + 62 * + COUNT ( * )
----
156822

query I rowsort
SELECT 87 + + 1 AS col0
----
88

query I rowsort
SELECT 58 * - - 44 col0
----
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT DISTINCT MAX( DISTINCT + ( - 49 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT MAX ( DISTINCT + ( - 49 ) )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1300
SELECT ALL - 11 + + - 86 + + 95 * - + ( - 12 ) * - - COALESCE ( - CAST( NULL AS SIGNED ), + - 33 ) AS col0
----
-37717

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL - 11 + + - 86 + + 95 * - + ( - 12 ) * - - COALESCE ( - CAST ( NULL AS INTEGER ), + - 33 ) AS col0
----
-37717

onlyif mysql # DIV for integer division: 
query II rowsort label-1301
SELECT ALL + 48 DIV - + 88 AS col1, + 21 AS col0
----
0
21

skipif mysql # not compatible
query II rowsort label-1301
SELECT ALL + 48 / - + 88 AS col1, + 21 AS col0
----
0
21

query I rowsort
SELECT ALL - 95 * + + 59 - - 55 col1
----
-5550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1303
SELECT ALL + COUNT( * ) DIV + 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL + COUNT ( * ) / + 33 AS col2
----
0

query I rowsort
SELECT DISTINCT + 30 * - 13 AS col2
----
-390

query I rowsort
SELECT ALL 66 * ( + - 21 )
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT - - 29 * 13 * - 96 * - + 61 + + 82 - + 60 * COUNT( * ) + + 63 * - 0 + - 24 AS col1
----
2207710

skipif mysql # not compatible
query I rowsort label-1306
SELECT - - 29 * 13 * - 96 * - + 61 + + 82 - + 60 * COUNT ( * ) + + 63 * - 0 + - 24 AS col1
----
2207710

onlyif mysql # DIV for integer division: 
query I rowsort label-1307
SELECT - + 92 DIV - 39
----
2

skipif mysql # not compatible
query I rowsort label-1307
SELECT - + 92 / - 39
----
2

query I rowsort
SELECT + + 86 * + 17 - - 37 col2
----
1499

query I rowsort
SELECT + - 17 * - + 10 AS col2
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1310
SELECT + MIN( ALL + CAST( - + 31 AS SIGNED ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-1310
SELECT + MIN ( ALL + CAST ( - + 31 AS INTEGER ) ) AS col2
----
-31

query I rowsort
SELECT + 94 * + - 68
----
-6392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1312
SELECT ALL + - CAST( - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL + - CAST ( - COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT - + 64 * + - 71 - + + NULLIF ( + + 34, + 13 ) AS col1
----
4510

query I rowsort
SELECT + + 85 + + 34
----
119

query I rowsort
SELECT ALL + 4 + 99 * + + 30 AS col0
----
2974

query I rowsort
SELECT ALL + 46 + - - 61 AS col1
----
107

query II rowsort
SELECT + 96 * + 51, - 25 AS col1
----
4896
-25

query I rowsort
SELECT DISTINCT + 2 * + 89 + + - 38 + - 94 + 83 * 88
----
7350

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1319
SELECT ALL 80 + - 89 * - SUM( DISTINCT - - CASE 4 WHEN + + CAST( 94 AS DECIMAL ) THEN + NULLIF ( + 81, 25 + + 8 ) * + 23 ELSE + 4 END ) AS col1
----
436

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL 80 + - 89 * - SUM ( DISTINCT - - CASE 4 WHEN + + CAST ( 94 AS REAL ) THEN + NULLIF ( + 81, 25 + + 8 ) * + 23 ELSE + 4 END ) AS col1
----
436

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT ALL MAX( DISTINCT - 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL MAX ( DISTINCT - 67 ) AS col2
----
-67

query I rowsort
SELECT DISTINCT NULLIF ( - - 25, - 27 + + 7 ) AS col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT + 89 * + 32 DIV + - 8 AS col1
----
-356

skipif mysql # not compatible
query I rowsort label-1322
SELECT + 89 * + 32 / + - 8 AS col1
----
-356

query I rowsort
SELECT DISTINCT 1 + + 33 AS col2
----
34

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

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT AVG ( + ( + - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1325
SELECT DISTINCT - 34 DIV + 48 * - 73
----
0

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT - 34 / + 48 * - 73
----
0

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

query I rowsort
SELECT + 18 * + 27
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT DISTINCT NULLIF ( - + CASE MAX( - 22 ) WHEN + 52 THEN COUNT( * ) WHEN + 49 + - - 8 THEN NULL ELSE NULL END, - ( 52 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT NULLIF ( - + CASE MAX ( - 22 ) WHEN + 52 THEN COUNT ( * ) WHEN + 49 + - - 8 THEN NULL ELSE NULL END, - ( 52 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT ALL MAX( - 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL MAX ( - 38 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL ( + + ( - COALESCE ( + + 65, - 11, - 82 * - + CASE + - 32 WHEN ( + 46 ) * - 75 THEN - 81 WHEN - COALESCE ( 10, + 16 ) THEN NULL ELSE NULL END, COUNT( * ) + - 77 * 10 ) ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL ( + + ( - COALESCE ( + + 65, - 11, - 82 * - + CASE + - 32 WHEN ( + 46 ) * - 75 THEN - 81 WHEN - COALESCE ( 10, + 16 ) THEN NULL ELSE NULL END, COUNT ( * ) + - 77 * 10 ) ) ) AS col0
----
-65

query I rowsort
SELECT DISTINCT + 35 * + + 90 * 55 * + 88 * + + 56 AS col0
----
853776000

query I rowsort
SELECT DISTINCT + 62 - - 77
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT - 64 * - + MIN( DISTINCT - 58 ) col2
----
-3712

skipif mysql # not compatible
query I rowsort label-1333
SELECT - 64 * - + MIN ( DISTINCT - 58 ) col2
----
-3712

query I rowsort
SELECT + ( - 37 ) + 25 AS col2
----
-12

query I rowsort
SELECT DISTINCT + ( + COALESCE ( + 63, + + 92 ) ) AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1336
SELECT + CASE + 79 WHEN + CASE + 99 WHEN - 3 * + - 22 + + - 59 - + + 80 * - 8 * 38 / - 94 THEN 96 ELSE NULL END - 61 THEN NULLIF ( + ( + CAST( NULL AS SIGNED ) ), - COUNT( * ) * + AVG ( + 53 ) ) WHEN - 50 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT + CASE + 79 WHEN + CASE + 99 WHEN - 3 * + - 22 + + - 59 - + + 80 * - 8 * 38 / - 94 THEN 96 ELSE NULL END - 61 THEN NULLIF ( + ( + CAST ( NULL AS INTEGER ) ), - COUNT ( * ) * + AVG ( + 53 ) ) WHEN - 50 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1337
SELECT + 12 DIV 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1337
SELECT + 12 / 54 AS col1
----
0

query I rowsort
SELECT - 56 - + - 26 * - 90 * - 31 * + 19 + 43 AS col2
----
1378247

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1339
SELECT DISTINCT + + CAST( NULL AS SIGNED ), + 75 + - - 71 AS col2
----
NULL
146

skipif mysql # not compatible
query II rowsort label-1339
SELECT DISTINCT + + CAST ( NULL AS INTEGER ), + 75 + - - 71 AS col2
----
NULL
146

query I rowsort
SELECT DISTINCT - 69 * + 99 + + 54 AS col2
----
-6777

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

query I rowsort
SELECT - - 36 + 46
----
82

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

skipif mysql # not compatible
query I rowsort label-1343
SELECT - - COUNT ( * ) / + 11 * - 1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1344
SELECT + 14 DIV 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1344
SELECT + 14 / 16 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1345
SELECT DISTINCT + - 59 * + 94 + + 25 * - + 42 + 80 * - - 44 DIV ( - 44 ) * + + COUNT( * ) + + 77 + - 67 * + 96
----
-13031

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT + - 59 * + 94 + + 25 * - + 42 + 80 * - - 44 / ( - 44 ) * + + COUNT ( * ) + + 77 + - 67 * + 96
----
-13031

query II rowsort
SELECT + 4 AS col1, - 87 * 30
----
4
-2610

query II rowsort
SELECT ALL + - 60 * - 25 + + + 72 AS col1, 70 AS col0
----
1572
70

query I rowsort
SELECT ALL 81 * + - 67 + + - 75 AS col2
----
-5502

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL - - 65 * + + 96 * + COUNT( * )
----
6240

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL - - 65 * + + 96 * + COUNT ( * )
----
6240

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT DISTINCT + 30 * CASE + COALESCE ( - + 44, - COUNT( * ) ) WHEN - 95 THEN - + 47 / 16 + - - 24 + + 56 / + COUNT( * ) + + COUNT( * ) * NULLIF ( AVG ( ALL + ( 33 ) ), COALESCE ( + 50, MAX( ALL - 41 ), NULLIF ( - 54, 22 ) * COUNT( * ) ) ) END + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT + 30 * CASE + COALESCE ( - + 44, - COUNT ( * ) ) WHEN - 95 THEN - + 47 / 16 + - - 24 + + 56 / + COUNT ( * ) + + COUNT ( * ) * NULLIF ( AVG ( ALL + ( 33 ) ), COALESCE ( + 50, MAX ( ALL - 41 ), NULLIF ( - 54, 22 ) * COUNT ( * ) ) ) END + 30 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1351
SELECT + 85 + 30 DIV + + 66 col1, - 63
----
85
-63

skipif mysql # not compatible
query II rowsort label-1351
SELECT + 85 + 30 / + + 66 col1, - 63
----
85
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT ALL - + NULLIF ( + 59, COUNT( * ) ) * 71 * - 32 * 47 * + - 49 + - 51 - - 37 + ( 37 ) AS col1
----
-308712521

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL - + NULLIF ( + 59, COUNT ( * ) ) * 71 * - 32 * 47 * + - 49 + - 51 - - 37 + ( 37 ) AS col1
----
-308712521

query I rowsort
SELECT ALL + - CASE 51 WHEN - COALESCE ( 26, 67 * + 77 ) + + + 31 THEN - 56 * + + 41 - - 94 ELSE NULL END * + 76 + 61 AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - - 31, + 70 ) * 70 * - 12 + 91 * - 74
----
19306

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1356
SELECT + 65 + - + 48 DIV - SUM( - 56 ) AS col0, + CAST( NULL AS DECIMAL ) AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-1356
SELECT + 65 + - + 48 / - SUM ( - 56 ) AS col0, + CAST ( NULL AS REAL ) AS col0
----
65
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1357
SELECT ALL 16 * - 88 + + SUM( ALL + CAST( NULL AS DECIMAL ) ) + + 7 + - 56 + 41 * + + 38 + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL 16 * - 88 + + SUM ( ALL + CAST ( NULL AS REAL ) ) + + 7 + - 56 + 41 * + + 38 + 60 AS col0
----
NULL

query I rowsort
SELECT ALL 53 * + 37 AS col2
----
1961

onlyif mysql # aggregate syntax: 
query II rowsort label-1359
SELECT + 59 + - 6 + + COUNT( * ) * - 45, ( - 40 ) col0
----
8
-40

skipif mysql # not compatible
query II rowsort label-1359
SELECT + 59 + - 6 + + COUNT ( * ) * - 45, ( - 40 ) col0
----
8
-40

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

query I rowsort
SELECT DISTINCT 82 * + 74
----
6068

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT DISTINCT 47 - + + 5 * NULLIF ( - 40, + 53 * COUNT( * ) ) AS col1
----
247

skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT 47 - + + 5 * NULLIF ( - 40, + 53 * COUNT ( * ) ) AS col1
----
247

query II rowsort
SELECT ALL 9 AS col1, - 32
----
9
-32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT ALL 17 * + 47 / + + CASE - 66 WHEN + 95 * - + 28 + + 17 * + 16 * + - 88 + 49 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL 17 * + 47 / + + CASE - 66 WHEN + 95 * - + 28 + + 17 * + 16 * + - 88 + 49 THEN + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT DISTINCT 76 - - ( + SUM( - - 22 ) ) - + - 7 * - 87
----
-511

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT 76 - - ( + SUM ( - - 22 ) ) - + - 7 * - 87
----
-511

query II rowsort
SELECT ALL 67 AS col2, 73 - - + 15 * 7
----
67
178

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT ( - 71 ) - SUM( DISTINCT 76 ) * + + 56
----
-4327

skipif mysql # not compatible
query I rowsort label-1368
SELECT ( - 71 ) - SUM ( DISTINCT 76 ) * + + 56
----
-4327

query I rowsort
SELECT 5 * + - 19 AS col1
----
-95

query I rowsort
SELECT 12 + + - 83 + + 97 * - 47 * + 67 col2
----
-305524

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1371
SELECT 75 AS col0, COUNT( * ) DIV + 24 AS col2
----
75
0

skipif mysql # not compatible
query II rowsort label-1371
SELECT 75 AS col0, COUNT ( * ) / + 24 AS col2
----
75
0

query II rowsort
SELECT ALL 78 AS col0, - ( - 12 ) + + 76 * - 48 AS col1
----
78
-3636

query I rowsort
SELECT ( - - 28 ) + - + 85 AS col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-1374
SELECT 95 DIV 71 col1
----
1

skipif mysql # not compatible
query I rowsort label-1374
SELECT 95 / 71 col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1375
SELECT ALL - 85 DIV + SUM( DISTINCT + 92 ) * + 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL - 85 / + SUM ( DISTINCT + 92 ) * + 96 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1376
SELECT + ( - 20 ) * - - COALESCE ( + COUNT( * ), + + COALESCE ( - 78, - CAST( + - 43 AS SIGNED ), - 79 ), - SUM( ALL 23 ) + 33, - 63 - 11 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1376
SELECT + ( - 20 ) * - - COALESCE ( + COUNT ( * ), + + COALESCE ( - 78, - CAST ( + - 43 AS INTEGER ), - 79 ), - SUM ( ALL 23 ) + 33, - 63 - 11 ) AS col0
----
-20

query I rowsort
SELECT ALL + 40 + 98 AS col1
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1378
SELECT + 76 + COUNT( * ) AS col1, 61 DIV - COUNT( * ) AS col1
----
77
-61

skipif mysql # not compatible
query II rowsort label-1378
SELECT + 76 + COUNT ( * ) AS col1, 61 / - COUNT ( * ) AS col1
----
77
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT ALL - 29 * CASE + - 74 WHEN 73 * SUM( ALL - 63 ) + + 7 + 49 * + - 35 + + 38 * + + ( - 78 ) + 63 THEN NULL ELSE + 71 END AS col0
----
-2059

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL - 29 * CASE + - 74 WHEN 73 * SUM ( ALL - 63 ) + + 7 + 49 * + - 35 + + 38 * + + ( - 78 ) + 63 THEN NULL ELSE + 71 END AS col0
----
-2059

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT ALL + + COUNT( * ) + - 4 + + + NULLIF ( + 40, + - 12 )
----
37

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL + + COUNT ( * ) + - 4 + + + NULLIF ( + 40, + - 12 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT + - NULLIF ( + + 16, COUNT( * ) )
----
-16

skipif mysql # not compatible
query I rowsort label-1381
SELECT + - NULLIF ( + + 16, COUNT ( * ) )
----
-16

query I rowsort
SELECT DISTINCT - 96 * - - 78
----
-7488

query I rowsort
SELECT + 33 * - 20 col0
----
-660

query II rowsort
SELECT 26, 75 AS col1
----
26
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT - COUNT( * ) + - - 56 - 46
----
9

skipif mysql # not compatible
query I rowsort label-1385
SELECT - COUNT ( * ) + - - 56 - 46
----
9

query I rowsort
SELECT ALL + + 42 + - 14
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-1387
SELECT ALL - 19 AS col1, 37 DIV 18
----
-19
2

skipif mysql # not compatible
query II rowsort label-1387
SELECT ALL - 19 AS col1, 37 / 18
----
-19
2

query I rowsort
SELECT DISTINCT - + 12 + + 42 col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-1389
SELECT + COUNT( * ) AS col1, 18 * - + NULLIF ( 84, + + 44 )
----
1
-1512

skipif mysql # not compatible
query II rowsort label-1389
SELECT + COUNT ( * ) AS col1, 18 * - + NULLIF ( 84, + + 44 )
----
1
-1512

query I rowsort
SELECT ALL + 63 + + 92 AS col1
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL - - COUNT( * ) * COUNT( 19 )
----
1

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL - - COUNT ( * ) * COUNT ( 19 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1392
SELECT 13, COALESCE ( - - 5, 83 ) * - 46 + - SUM( ALL + 29 ) AS col1
----
13
-259

skipif mysql # not compatible
query II rowsort label-1392
SELECT 13, COALESCE ( - - 5, 83 ) * - 46 + - SUM ( ALL + 29 ) AS col1
----
13
-259

query I rowsort
SELECT - 15 + + 59
----
44

query II rowsort
SELECT DISTINCT - 34 * + - 40, 5 AS col0
----
1360
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT ALL + 79 * 91 * + SUM( DISTINCT 77 )
----
553553

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL + 79 * 91 * + SUM ( DISTINCT 77 )
----
553553

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT ALL COUNT( * ) - + 95 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL COUNT ( * ) - + 95 AS col0
----
-94

query I rowsort
SELECT ALL + 89 * + 43 col1
----
3827

query I rowsort
SELECT 96 * + + 94 AS col1
----
9024

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

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

query I rowsort
SELECT 15 - + 44
----
-29

query I rowsort
SELECT 86 * + + 37
----
3182

query I rowsort
SELECT ALL 64 * + 72 AS col1
----
4608

query I rowsort
SELECT DISTINCT 99 * - 77
----
-7623

query I rowsort
SELECT ALL 16 * + + ( + 89 ) AS col0
----
1424

query I rowsort
SELECT 11 * 38 AS col0
----
418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1406
SELECT ALL - 49 + + + 99 - + CAST( NULL AS SIGNED ) + - 10 + + 37 + 39 / + 55 * - COUNT( * ) * CAST( NULL AS DECIMAL ) * + COUNT( * ) / - 29 * + 6 * - 90 + 50 / 21 * ( - CASE - 9 WHEN + MAX( - 32 ) - + 47 * 24 THEN - 7 + 95 * + CAST( NULL AS SIGNED ) WHEN - 5 * - 69 + 19 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL - 49 + + + 99 - + CAST ( NULL AS INTEGER ) + - 10 + + 37 + 39 / + 55 * - COUNT ( * ) * CAST ( NULL AS REAL ) * + COUNT ( * ) / - 29 * + 6 * - 90 + 50 / 21 * ( - CASE - 9 WHEN + MAX ( - 32 ) - + 47 * 24 THEN - 7 + 95 * + CAST ( NULL AS INTEGER ) WHEN - 5 * - 69 + 19 THEN NULL END )
----
NULL

query I rowsort
SELECT DISTINCT - 91 * ( 86 )
----
-7826

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

skipif mysql # not compatible
query I rowsort label-1408
SELECT COUNT ( * ) / + 35 * + + 13
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1409
SELECT ALL - - ( 9 ) + ( + CASE - + COUNT( * ) WHEN - CAST( - 83 AS SIGNED ) + - + 84 THEN NULL WHEN - 19 / 60 * - + 33 THEN - 8 + + 37 * + 79 END ) * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL - - ( 9 ) + ( + CASE - + COUNT ( * ) WHEN - CAST ( - 83 AS INTEGER ) + - + 84 THEN NULL WHEN - 19 / 60 * - + 33 THEN - 8 + + 37 * + 79 END ) * + 46
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1410
SELECT - CASE - 19 WHEN + - 15 THEN NULL ELSE - 7 END DIV 41 + + 59 + + 59 * - NULLIF ( - COALESCE ( 64, 75 - + + SUM( DISTINCT 99 ) * 45, 42 + 18 * + 52 ), 23 * MIN( ALL 19 * + 40 ) ) AS col0
----
3835

skipif mysql # not compatible
query I rowsort label-1410
SELECT - CASE - 19 WHEN + - 15 THEN NULL ELSE - 7 END / 41 + + 59 + + 59 * - NULLIF ( - COALESCE ( 64, 75 - + + SUM ( DISTINCT 99 ) * 45, 42 + 18 * + 52 ), 23 * MIN ( ALL 19 * + 40 ) ) AS col0
----
3835

query I rowsort
SELECT 55 * + 67
----
3685

query II rowsort
SELECT 13 * + 78 AS col2, - 76 + 55
----
1014
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-1413
SELECT ALL - + ( 7 ) AS col0, SUM( DISTINCT 45 ) AS col1
----
-7
45

skipif mysql # not compatible
query II rowsort label-1413
SELECT ALL - + ( 7 ) AS col0, SUM ( DISTINCT 45 ) AS col1
----
-7
45

query I rowsort
SELECT + 54 + ( - 3 ) col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ALL - CASE 87 WHEN 3 THEN - + 85 * - 0 * - - 62 * NULLIF ( + 89, - 61 * + 67 * - 60 ) WHEN + COUNT( * ) THEN - 10 - COUNT( * ) * + 6 ELSE + 32 * - 28 END * + 18 + + ( - 33 ) AS col1
----
16095

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL - CASE 87 WHEN 3 THEN - + 85 * - 0 * - - 62 * NULLIF ( + 89, - 61 * + 67 * - 60 ) WHEN + COUNT ( * ) THEN - 10 - COUNT ( * ) * + 6 ELSE + 32 * - 28 END * + 18 + + ( - 33 ) AS col1
----
16095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1416
SELECT + NULLIF ( 13, + COUNT( * ) ) * 76 DIV - ( + COUNT( * ) ) + 61
----
-927

skipif mysql # not compatible
query I rowsort label-1416
SELECT + NULLIF ( 13, + COUNT ( * ) ) * 76 / - ( + COUNT ( * ) ) + 61
----
-927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1417
SELECT ALL - 86 * + COUNT( * ) + + 30 - - 85 * - 44 * CASE - + 63 WHEN MIN( + 5 ) THEN 84 END / + + ( CAST( 16 AS SIGNED ) ) * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL - 86 * + COUNT ( * ) + + 30 - - 85 * - 44 * CASE - + 63 WHEN MIN ( + 5 ) THEN 84 END / + + ( CAST ( 16 AS INTEGER ) ) * 22
----
NULL

query I rowsort
SELECT - 20 + - + 26
----
-46

query I rowsort
SELECT 72 + + 2
----
74

query I rowsort
SELECT ALL + - 22 - + 85 * + - 65 * - ( + 66 ) col1
----
-364672

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

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

query II rowsort
SELECT 93 * - + 98 + + - 83, - 81 AS col1
----
-9197
-81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1423
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col0, COUNT( ALL 8 ) + - + ( + + 8 )
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-1423
SELECT DISTINCT + CAST ( NULL AS REAL ) col0, COUNT ( ALL 8 ) + - + ( + + 8 )
----
NULL
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1424
SELECT - CAST( - + COUNT( * ) AS SIGNED ) + - 43 + - + 43 * + 9 / - + 83 + + COALESCE ( + - 97, - CAST( - 30 AS SIGNED ) ) + - + CASE - 11 WHEN - - NULLIF ( - 0, + 61 ) THEN 39 WHEN 71 THEN + 22 * 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1424
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) + - 43 + - + 43 * + 9 / - + 83 + + COALESCE ( + - 97, - CAST ( - 30 AS INTEGER ) ) + - + CASE - 11 WHEN - - NULLIF ( - 0, + 61 ) THEN 39 WHEN 71 THEN + 22 * 90 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL 0 - + 93 / + ( + CAST ( - 93 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1426
SELECT DISTINCT - COUNT( * ) DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT - COUNT ( * ) / - 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT DISTINCT COALESCE ( 63, - ( - - COALESCE ( + COUNT( * ), - + 22 * - ( COALESCE ( + COUNT( * ), + 22, - - 71 ) ) ) ) )
----
63

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT COALESCE ( 63, - ( - - COALESCE ( + COUNT ( * ), - + 22 * - ( COALESCE ( + COUNT ( * ), + 22, - - 71 ) ) ) ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT ALL + CASE - + COUNT( * ) WHEN - - 72 THEN NULL WHEN 57 THEN NULL WHEN ( + 17 ) THEN 48 + + - MIN( 2 ) - - + 44 * - 34 * + 88 * - 60 END * + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL + CASE - + COUNT ( * ) WHEN - - 72 THEN NULL WHEN 57 THEN NULL WHEN ( + 17 ) THEN 48 + + - MIN ( 2 ) - - + 44 * - 34 * + 88 * - 60 END * + 91 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1429
SELECT ALL + COUNT( * ) DIV COUNT( * ) * - 64 * - 5 * - COALESCE ( 73, 34 ) AS col1
----
-23360

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL + COUNT ( * ) / COUNT ( * ) * - 64 * - 5 * - COALESCE ( 73, 34 ) AS col1
----
-23360

onlyif mysql # aggregate syntax: 
query II rowsort label-1430
SELECT - 7, + COUNT( DISTINCT - - 39 ) AS col1
----
-7
1

skipif mysql # not compatible
query II rowsort label-1430
SELECT - 7, + COUNT ( DISTINCT - - 39 ) AS col1
----
-7
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT ( 10 ) * + 67 + - - 90 * 69 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT ( 10 ) * + 67 + - - 90 * 69 + + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 9, 40 AS col0
----
-9
40

query I rowsort
SELECT DISTINCT NULLIF ( + + 50, + 39 )
----
50

query I rowsort
SELECT - 58 * 20 AS col1
----
-1160

onlyif mysql # aggregate syntax: 
query II rowsort label-1436
SELECT ALL + SUM( DISTINCT + + 15 ) * - COUNT( * ) AS col2, + 50 AS col0
----
-15
50

skipif mysql # not compatible
query II rowsort label-1436
SELECT ALL + SUM ( DISTINCT + + 15 ) * - COUNT ( * ) AS col2, + 50 AS col0
----
-15
50

query I rowsort
SELECT ALL - 31 * - 50 AS col1
----
1550

query I rowsort
SELECT + 34 * + 86
----
2924

query I rowsort
SELECT DISTINCT ( + + 66 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL COALESCE ( 98, CASE + COUNT( * ) WHEN - MAX( ALL + 86 ) + 44 THEN - 34 ELSE + 32 END + - 88 * CASE WHEN + 36 IS NOT NULL THEN + 73 WHEN NULL NOT IN ( 9 ) THEN 62 END, - 16 + 45 ) + - 50
----
48

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL COALESCE ( 98, CASE + COUNT ( * ) WHEN - MAX ( ALL + 86 ) + 44 THEN - 34 ELSE + 32 END + - 88 * CASE WHEN + 36 IS NOT NULL THEN + 73 WHEN NULL NOT IN ( 9 ) THEN 62 END, - 16 + 45 ) + - 50
----
48

query I rowsort
SELECT - 22 + - 18
----
-40

query I rowsort
SELECT ALL + 86 + + + 87
----
173

query I rowsort
SELECT - 98 + + 70 AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1444
SELECT ALL COUNT( * ) + + 72 + - - 54, - 19 DIV - ( MIN( DISTINCT - 97 ) ) * - + 73 * + ( - 14 ) * 87 + + SUM( - 66 ) AS col1
----
127
-66

skipif mysql # not compatible
query II rowsort label-1444
SELECT ALL COUNT ( * ) + + 72 + - - 54, - 19 / - ( MIN ( DISTINCT - 97 ) ) * - + 73 * + ( - 14 ) * 87 + + SUM ( - 66 ) AS col1
----
127
-66

query II rowsort
SELECT ALL 83 AS col2, - 62 AS col1
----
83
-62

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

skipif mysql # not compatible
query II rowsort label-1446
SELECT - - 0 AS col1, - COUNT ( * ) col1
----
0
-1

query I rowsort
SELECT + 44 + + - 94 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT - MAX( ALL - NULLIF ( - COALESCE ( - - 48, + - 25 * 55 * 2 * + 72 - - 74, + COALESCE ( + 7, 62 ) * - 81 ), NULLIF ( 29, 20 ) + 73 ) ) * 76 col1
----
-3648

skipif mysql # not compatible
query I rowsort label-1448
SELECT - MAX ( ALL - NULLIF ( - COALESCE ( - - 48, + - 25 * 55 * 2 * + 72 - - 74, + COALESCE ( + 7, 62 ) * - 81 ), NULLIF ( 29, 20 ) + 73 ) ) * 76 col1
----
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT + + NULLIF ( 0, + 79 * + - 35 + NULLIF ( + - 14, - 97 + - 54 + 72 / + 53 ) ) + + 91 + + SUM( + 94 ) + + 11 * 0 AS col0
----
185

skipif mysql # not compatible
query I rowsort label-1449
SELECT + + NULLIF ( 0, + 79 * + - 35 + NULLIF ( + - 14, - 97 + - 54 + 72 / + 53 ) ) + + 91 + + SUM ( + 94 ) + + 11 * 0 AS col0
----
185

query I rowsort
SELECT ALL + 12 + - 57 AS col0
----
-45

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

query I rowsort
SELECT + - 43 + - + 74 - 37 * - - 18 AS col0
----
-783

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT - + 32 + + COUNT( * ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-1454
SELECT - + 32 + + COUNT ( * ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-1455
SELECT - + ( SUM( ALL - 13 ) ), 4 * - 6 - 23 + NULLIF ( - 62, - 63 ) AS col2
----
13
-109

skipif mysql # not compatible
query II rowsort label-1455
SELECT - + ( SUM ( ALL - 13 ) ), 4 * - 6 - 23 + NULLIF ( - 62, - 63 ) AS col2
----
13
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1456
SELECT + + ( + 28 ) + + 57 - - 53 DIV MIN( + 70 ) AS col0, + COUNT( * ) DIV - 56
----
85
0

skipif mysql # not compatible
query II rowsort label-1456
SELECT + + ( + 28 ) + + 57 - - 53 / MIN ( + 70 ) AS col0, + COUNT ( * ) / - 56
----
85
0

query I rowsort
SELECT ALL 64 * + 56 AS col2
----
3584

query II rowsort
SELECT DISTINCT + - 20 * - 8 * + 16 AS col1, + 88 AS col0
----
2560
88

query I rowsort
SELECT DISTINCT + + 95 * + - 26
----
-2470

query I rowsort
SELECT ALL 30 * - + 90 col0
----
-2700

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1461
SELECT ALL + - COUNT( * ), 95 DIV 21 DIV + - ( 83 ) AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-1461
SELECT ALL + - COUNT ( * ), 95 / 21 / + - ( 83 ) AS col1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT CASE - 77 WHEN + 75 THEN + - CASE - 30 WHEN - + 72 THEN - 32 ELSE NULL END WHEN - 77 + + COUNT( * ) * NULLIF ( - 40, - 62 * - - 87 + + 60 ) * 9 THEN + AVG ( ALL 8 ) ELSE + 38 END col2
----
38

skipif mysql # not compatible
query I rowsort label-1462
SELECT CASE - 77 WHEN + 75 THEN + - CASE - 30 WHEN - + 72 THEN - 32 ELSE NULL END WHEN - 77 + + COUNT ( * ) * NULLIF ( - 40, - 62 * - - 87 + + 60 ) * 9 THEN + AVG ( ALL 8 ) ELSE + 38 END col2
----
38

query II rowsort
SELECT DISTINCT + + 53 AS col2, - 17 * - 54 + - + 94 + 93 + + 75 * - 84 - 57 AS col2
----
53
-5440

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

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

query I rowsort
SELECT + + 25 * + - 72 * 46
----
-82800

onlyif mysql # DIV for integer division: 
query II rowsort label-1466
SELECT - 91 DIV - + 30 + + + 71 + - - 77 * + + 85 * - + 95 AS col0, 30 AS col2
----
-621701
30

skipif mysql # not compatible
query II rowsort label-1466
SELECT - 91 / - + 30 + + + 71 + - - 77 * + + 85 * - + 95 AS col0, 30 AS col2
----
-621701
30

query I rowsort
SELECT + - 56 * - - 10
----
-560

query I rowsort
SELECT - - 92 * 69 AS col0
----
6348

onlyif mysql # aggregate syntax: 
query II rowsort label-1469
SELECT DISTINCT + - ( + MIN( 40 ) ), 4 AS col1
----
-40
4

skipif mysql # not compatible
query II rowsort label-1469
SELECT DISTINCT + - ( + MIN ( 40 ) ), 4 AS col1
----
-40
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT ALL COUNT( * ) * - + 69 * + 95 * 9 * + COUNT( 59 ) AS col1
----
-58995

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL COUNT ( * ) * - + 69 * + 95 * 9 * + COUNT ( 59 ) AS col1
----
-58995

query I rowsort
SELECT + ( + - 61 ) + 16
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT DISTINCT 42 DIV + 11
----
3

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT 42 / + 11
----
3

query I rowsort
SELECT DISTINCT + 80 * 79
----
6320

onlyif mysql # DIV for integer division: 
query I rowsort label-1474
SELECT DISTINCT 60 DIV 27
----
2

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT 60 / 27
----
2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1476
SELECT ALL 53 * - COALESCE ( COUNT( * ), + + 49 DIV - 90, 88 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL 53 * - COALESCE ( COUNT ( * ), + + 49 / - 90, 88 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-1477
SELECT MAX( + - 15 ) * 31 - + COUNT( * ) AS col0, + 76 - - + 0
----
-466
76

skipif mysql # not compatible
query II rowsort label-1477
SELECT MAX ( + - 15 ) * 31 - + COUNT ( * ) AS col0, + 76 - - + 0
----
-466
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1478
SELECT COALESCE ( + 54, 29 + - - 73 DIV + + COUNT( * ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-1478
SELECT COALESCE ( + 54, 29 + - - 73 / + + COUNT ( * ) ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT + COUNT( DISTINCT + 54 ) * 64 * + 80
----
5120

skipif mysql # not compatible
query I rowsort label-1479
SELECT + COUNT ( DISTINCT + 54 ) * 64 * + 80
----
5120

query I rowsort
SELECT - 82 + - 92 * + - 26 * 24 * - + 0 * - + 57 AS col1
----
-82

query II rowsort
SELECT DISTINCT 88 * 31, 24 * NULLIF ( - - 39, + 54 ) - - 53 + - 53 * - - 19 AS col2
----
2728
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1482
SELECT + ( CASE CAST( - + 8 AS SIGNED ) WHEN + - 97 * - 42 THEN 58 ELSE + 30 END )
----
30

skipif mysql # not compatible
query I rowsort label-1482
SELECT + ( CASE CAST ( - + 8 AS INTEGER ) WHEN + - 97 * - 42 THEN 58 ELSE + 30 END )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT SUM( ALL - - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-1483
SELECT SUM ( ALL - - 89 )
----
89

query I rowsort
SELECT + 46 * - 68 * 2 * ( - - 58 )
----
-362848

query I rowsort
SELECT ALL - 49 * 20 + + 27
----
-953

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT DISTINCT + CASE 79 WHEN + 49 THEN + 8 END * - COUNT( * ) + - 18 + - 89 - 80 * 47 + + 49 / - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT + CASE 79 WHEN + 49 THEN + 8 END * - COUNT ( * ) + - 18 + - 89 - 80 * 47 + + 49 / - + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT - 99 DIV 24
----
-4

skipif mysql # not compatible
query I rowsort label-1487
SELECT - 99 / 24
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT ALL + 54 + SUM( + 10 )
----
64

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL + 54 + SUM ( + 10 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT DISTINCT + 72 + ( + - MAX( ALL - 95 ) ) - + 51 + 18 * 77 + + 98 - 84
----
1516

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT + 72 + ( + - MAX ( ALL - 95 ) ) - + 51 + 18 * 77 + + 98 - 84
----
1516

onlyif mysql # DIV for integer division: 
query I rowsort label-1490
SELECT + 63 DIV - 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1490
SELECT + 63 / - 50 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1491
SELECT - - 47 DIV + 37 DIV - COUNT( * ) + COUNT( * ) + 43 + 54 * + 21
----
1177

skipif mysql # not compatible
query I rowsort label-1491
SELECT - - 47 / + 37 / - COUNT ( * ) + COUNT ( * ) + 43 + 54 * + 21
----
1177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1492
SELECT ALL + - 98 + - 17 - + 37 * + 22 * + CAST( - - AVG ( DISTINCT 14 ) AS SIGNED ) AS col0
----
-11511

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL + - 98 + - 17 - + 37 * + 22 * + CAST ( - - AVG ( DISTINCT 14 ) AS INTEGER ) AS col0
----
-11511

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT DISTINCT + 8 * - SUM( - + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT + 8 * - SUM ( - + 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT DISTINCT - + COUNT( - 70 ) + + NULLIF ( 88, - 77 ) + NULLIF ( 2, + + 19 * - + 70 - - 74 + - 81 + + + 5 + 5 + + AVG ( ALL - 36 ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1494
SELECT DISTINCT - + COUNT ( - 70 ) + + NULLIF ( 88, - 77 ) + NULLIF ( 2, + + 19 * - + 70 - - 74 + - 81 + + + 5 + 5 + + AVG ( ALL - 36 ) ) AS col2
----
89

query I rowsort
SELECT DISTINCT + + 93 * - 29 AS col0
----
-2697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1496
SELECT ALL + 26 - - CAST( MAX( + 59 ) AS SIGNED ) + + 8 AS col1, - 67 DIV + - 74 AS col0
----
93
0

skipif mysql # not compatible
query II rowsort label-1496
SELECT ALL + 26 - - CAST ( MAX ( + 59 ) AS INTEGER ) + + 8 AS col1, - 67 / + - 74 AS col0
----
93
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT - - CASE - 30 WHEN + 73 THEN 51 * - 48 + + 37 ELSE 81 END + - 17 * + + MAX( DISTINCT + - 90 ) AS col1
----
1611

skipif mysql # not compatible
query I rowsort label-1497
SELECT - - CASE - 30 WHEN + 73 THEN 51 * - 48 + + 37 ELSE 81 END + - 17 * + + MAX ( DISTINCT + - 90 ) AS col1
----
1611

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1498
SELECT + - 56 / - - 32 * + - CAST( NULL AS SIGNED ) + + - 24 AS col2, + 68 * + 7 AS col2
----
NULL
476

skipif mysql # not compatible
query II rowsort label-1498
SELECT + - 56 / - - 32 * + - CAST ( NULL AS INTEGER ) + + - 24 AS col2, + 68 * + 7 AS col2
----
NULL
476

query I rowsort
SELECT - 94 * - + ( - + 61 ) col1
----
-5734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1500
SELECT 10 DIV 37 + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1500
SELECT 10 / 37 + + - COUNT ( * )
----
-1

query I rowsort
SELECT - ( 91 ) + + 29
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1502
SELECT ALL + - 51 * 42 AS col1, 17 + COUNT( * )
----
-2142
18

skipif mysql # not compatible
query II rowsort label-1502
SELECT ALL + - 51 * 42 AS col1, 17 + COUNT ( * )
----
-2142
18

query I rowsort
SELECT ALL ( - + 37 ) * 40 + - 4 AS col0
----
-1484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1504
SELECT DISTINCT + 21 * - CAST( - 51 AS SIGNED ) AS col1
----
1071

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT + 21 * - CAST ( - 51 AS INTEGER ) AS col1
----
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT MIN( DISTINCT + 46 ) + - - 60
----
106

skipif mysql # not compatible
query I rowsort label-1505
SELECT MIN ( DISTINCT + 46 ) + - - 60
----
106

query I rowsort
SELECT CASE - 19 WHEN - + 7 THEN 72 ELSE NULL END / - 43
----
NULL

query I rowsort
SELECT 80 + - 85
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT COUNT( * ) + + + 16 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-1508
SELECT COUNT ( * ) + + + 16 AS col1
----
17

query I rowsort
SELECT 25 + - + 68 AS col0
----
-43

query I rowsort
SELECT ALL 41 + + 94 - - ( - - 78 ) AS col0
----
213

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT NULLIF ( 78, MIN( ALL 95 ) * - + AVG ( DISTINCT - 72 ) ) * 27 + - 83 + - 26 * - COUNT( * )
----
2049

skipif mysql # not compatible
query I rowsort label-1512
SELECT NULLIF ( 78, MIN ( ALL 95 ) * - + AVG ( DISTINCT - 72 ) ) * 27 + - 83 + - 26 * - COUNT ( * )
----
2049

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT ALL 87 + + COUNT( ALL - + 94 )
----
88

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL 87 + + COUNT ( ALL - + 94 )
----
88

query I rowsort
SELECT ALL 93 * 58
----
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT ALL 5 + - + CASE 48 WHEN 17 / 39 + + COALESCE ( - SUM( ALL + 92 ), - NULLIF ( + 56, - + 48 + - 35 * + - 98 ) + 22 + + 85 / - 34 ) * 80 THEN - 53 END * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL 5 + - + CASE 48 WHEN 17 / 39 + + COALESCE ( - SUM ( ALL + 92 ), - NULLIF ( + 56, - + 48 + - 35 * + - 98 ) + 22 + + 85 / - 34 ) * 80 THEN - 53 END * 78
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1517
SELECT COALESCE ( + 79, + + COUNT( * ), + COUNT( * ) ) + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1517
SELECT COALESCE ( + 79, + + COUNT ( * ), + COUNT ( * ) ) + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 11 + + + 47 + - 59 + - 95 + - 66 * + 79 + 53 AS col0
----
-5257

query I rowsort
SELECT ALL 75 + - 56 - - + ( - CASE + COALESCE ( AVG ( + + 64 ), + 20 * + + 15 * + 74 + - 90, 67 + - NULLIF ( 65, 40 ) ) WHEN - 88 THEN NULL WHEN 38 THEN - 98 END ) AS col2
----
NULL

query I rowsort
SELECT ALL ( - 42 ) * - 36 AS col1
----
1512

query I rowsort
SELECT DISTINCT + ( + 3 ) AS col0
----
3

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

skipif mysql # not compatible
query I rowsort label-1522
SELECT - 93 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1523
SELECT ALL MIN( - + 7 ) * 17 * + 26 DIV 13 - + 2 * - COUNT( * ) DIV + COUNT( * ) AS col1
----
-236

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL MIN ( - + 7 ) * 17 * + 26 / 13 - + 2 * - COUNT ( * ) / + COUNT ( * ) AS col1
----
-236

query I rowsort
SELECT ALL + - 70 - + 31
----
-101

query I rowsort
SELECT DISTINCT NULLIF ( ( + + 75 ), - + 69 + + 68 - 3 + + 18 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1526
SELECT + COUNT( * ) * - - COUNT( * ) * + 6, + 18 DIV 1 * ( 72 ) AS col2
----
6
1296

skipif mysql # not compatible
query II rowsort label-1526
SELECT + COUNT ( * ) * - - COUNT ( * ) * + 6, + 18 / 1 * ( 72 ) AS col2
----
6
1296

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

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

query I rowsort
SELECT - 56 + + 28 AS col2
----
-28

query I rowsort
SELECT ALL - + 28 * + 40 col0
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT + 0 * 56 / - CASE - 84 WHEN + 71 THEN + COUNT( 19 ) + - COALESCE ( - 15, + - 29 * - 20 * 46 ) * + COALESCE ( 25, - 90 + + 15 ) * COUNT( * ) + + 5 * + 15 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT + 0 * 56 / - CASE - 84 WHEN + 71 THEN + COUNT ( 19 ) + - COALESCE ( - 15, + - 29 * - 20 * 46 ) * + COALESCE ( 25, - 90 + + 15 ) * COUNT ( * ) + + 5 * + 15 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1531
SELECT 99 DIV - - 65 + + + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-1531
SELECT 99 / - - 65 + + + COUNT ( * ) col2
----
2

query I rowsort
SELECT DISTINCT - - 78 * 1 AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1533
SELECT ALL + + 15 * + - CAST( + 14 AS SIGNED )
----
-210

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL + + 15 * + - CAST ( + 14 AS INTEGER )
----
-210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1534
SELECT ALL MIN( ALL CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT - ( - + 72 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1537
SELECT + 39 AS col0, 10 * + COUNT( * ) * 75
----
39
750

skipif mysql # not compatible
query II rowsort label-1537
SELECT + 39 AS col0, 10 * + COUNT ( * ) * 75
----
39
750

query I rowsort
SELECT 80 * 79
----
6320

query I rowsort
SELECT - 2 * 6 + + + 24
----
12

query II rowsort
SELECT 30, 72 + + - 9 AS col1
----
30
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT ALL COUNT( * ) + + 73 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL COUNT ( * ) + + 73 AS col0
----
74

query I rowsort
SELECT ALL 0 + - 38 + + - 40 + + 58 + + NULLIF ( + - 74, - + 34 ) * - + 20 + + 75 * 10 * + 53 + - 46 * - 27
----
42452

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT 5 * 58 * COUNT( * ) * - COUNT( DISTINCT - 90 )
----
-290

skipif mysql # not compatible
query I rowsort label-1543
SELECT 5 * 58 * COUNT ( * ) * - COUNT ( DISTINCT - 90 )
----
-290

query II rowsort
SELECT ALL - 41, - 87 col2
----
-41
-87

query II rowsort
SELECT + 60, - ( - 13 ) + + 85 AS col2
----
60
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT ALL - SUM( ALL 12 ) + - 2 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL - SUM ( ALL 12 ) + - 2 AS col1
----
-14

query II rowsort
SELECT DISTINCT - 98, 82 AS col1
----
-98
82

query I rowsort
SELECT DISTINCT + 9 + + 11 AS col0
----
20

query II rowsort
SELECT + 71, + 85 col1
----
71
85

query I rowsort
SELECT COALESCE ( + 11, - + 39, - ( - + 23 ) - + - 27 - - + ( + - 49 ) ) + + + NULLIF ( - 52, + 77 + NULLIF ( + 82, + - 48 ) )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1551
SELECT 20 * COUNT( * ) DIV 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1551
SELECT 20 * COUNT ( * ) / 42 AS col2
----
0

query I rowsort
SELECT 56 + 78 AS col1
----
134

query II rowsort
SELECT ALL - 91 AS col0, - 67 * + - 31
----
-91
2077

query II rowsort
SELECT 59 AS col0, 87 AS col2
----
59
87

query II rowsort
SELECT ALL - 34 col0, - 27
----
-34
-27

query I rowsort
SELECT DISTINCT 30 - + - 50 col2
----
80

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1558
SELECT DISTINCT - 31 / + - 40 / - CAST( NULL AS DECIMAL ) + + COUNT( * ) + - - 42 - - + 28 * 18 * + 96 * + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT DISTINCT - 31 / + - 40 / - CAST ( NULL AS REAL ) + + COUNT ( * ) + - - 42 - - + 28 * 18 * + 96 * + 31 AS col2
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1561
SELECT + 14 AS col1, 59 DIV + + 36 col0
----
14
1

skipif mysql # not compatible
query II rowsort label-1561
SELECT + 14 AS col1, 59 / + + 36 col0
----
14
1

query I rowsort
SELECT DISTINCT + 7 * + 54 + + 81 col0
----
459

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT + 98 * + - 82 * + + COUNT( + 85 )
----
-8036

skipif mysql # not compatible
query I rowsort label-1564
SELECT + 98 * + - 82 * + + COUNT ( + 85 )
----
-8036

query II rowsort
SELECT ALL 25, - ( 98 ) AS col1
----
25
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-1566
SELECT ALL + COUNT( * ) AS col2, - 43 + + MIN( + 90 ) AS col2
----
1
47

skipif mysql # not compatible
query II rowsort label-1566
SELECT ALL + COUNT ( * ) AS col2, - 43 + + MIN ( + 90 ) AS col2
----
1
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT DISTINCT MIN( - - 85 ) + - 28 * - 26
----
813

skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT MIN ( - - 85 ) + - 28 * - 26
----
813

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

skipif mysql # not compatible
query II rowsort label-1568
SELECT ALL COUNT ( * ), 54 AS col0
----
1
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1569
SELECT + - 19 * + + CAST( NULL AS SIGNED ) * - - MIN( - - 83 ) * - COUNT( * ) * 37 + - 5 * + - 61 * - 63 * - 33 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1569
SELECT + - 19 * + + CAST ( NULL AS INTEGER ) * - - MIN ( - - 83 ) * - COUNT ( * ) * 37 + - 5 * + - 61 * - 63 * - 33 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1570
SELECT ALL - 13 + - + 52 + - 93 DIV + 62
----
-66

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL - 13 + - + 52 + - 93 / + 62
----
-66

query I rowsort
SELECT + 87 + + 16 AS col2
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-1572
SELECT - + 39 AS col2, 76 + - - COUNT( * )
----
-39
77

skipif mysql # not compatible
query II rowsort label-1572
SELECT - + 39 AS col2, 76 + - - COUNT ( * )
----
-39
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT + NULLIF ( 57, 43 * COUNT( * ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1573
SELECT + NULLIF ( 57, 43 * COUNT ( * ) ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1574
SELECT NULLIF ( CAST( NULL AS SIGNED ), + + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT NULLIF ( CAST ( NULL AS INTEGER ), + + 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT ALL - 33 * + - COUNT( * ) + - 4 + + 87 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL - 33 * + - COUNT ( * ) + - 4 + + 87 AS col2
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1576
SELECT + 60 * COUNT( * ) * - - 47 * COUNT( * ) + + 54 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1576
SELECT + 60 * COUNT ( * ) * - - 47 * COUNT ( * ) + + 54 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT DISTINCT 16 * 34 * COUNT( * ) + 37 * - 1 + + 80 col2
----
587

skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT 16 * 34 * COUNT ( * ) + 37 * - 1 + + 80 col2
----
587

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT ALL + COUNT( * ) * 33 + - 88 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL + COUNT ( * ) * 33 + - 88 AS col2
----
-55

query I rowsort
SELECT DISTINCT - 86 * - 92 * + 89 AS col1
----
704168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT - 46 + + MAX( + 7 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-1581
SELECT - 46 + + MAX ( + 7 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT NULLIF ( + COUNT( * ), 52 / - 2 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1582
SELECT NULLIF ( + COUNT ( * ), 52 / - 2 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1583
SELECT ALL + ( + COUNT( * ) ), - CAST( - 68 AS SIGNED ) AS col1
----
1
68

skipif mysql # not compatible
query II rowsort label-1583
SELECT ALL + ( + COUNT ( * ) ), - CAST ( - 68 AS INTEGER ) AS col1
----
1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT - MIN( DISTINCT + + 43 ) + 82
----
39

skipif mysql # not compatible
query I rowsort label-1584
SELECT - MIN ( DISTINCT + + 43 ) + 82
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT - 69 + - + 53 * - COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1585
SELECT - 69 + - + 53 * - COUNT ( * ) AS col0
----
-16

query I rowsort
SELECT ALL + ( + + ( + 3 ) ) col1
----
3

query I rowsort
SELECT DISTINCT - - 86 * 55
----
4730

query I rowsort
SELECT + - 33 - - 54 AS col2
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-1589
SELECT + 16 DIV - 73, - 3 AS col0
----
0
-3

skipif mysql # not compatible
query II rowsort label-1589
SELECT + 16 / - 73, - 3 AS col0
----
0
-3

query III rowsort
SELECT - 55 + - 13, + 78 AS col0, + - 53 * + 90 + + + 67 * + + 82 AS col0
----
-68
78
724

onlyif mysql # aggregate syntax: 
query II rowsort label-1591
SELECT + + 58 * 28 col1, + 98 + - COUNT( * )
----
1624
97

skipif mysql # not compatible
query II rowsort label-1591
SELECT + + 58 * 28 col1, + 98 + - COUNT ( * )
----
1624
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1592
SELECT - - CAST( - + 13 AS SIGNED ) + 43
----
30

skipif mysql # not compatible
query I rowsort label-1592
SELECT - - CAST ( - + 13 AS INTEGER ) + 43
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-1593
SELECT + + MAX( - + 81 ) + 87 * 13 * - 66, 86 AS col1
----
-74727
86

skipif mysql # not compatible
query II rowsort label-1593
SELECT + + MAX ( - + 81 ) + 87 * 13 * - 66, 86 AS col1
----
-74727
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1594
SELECT DISTINCT 30 DIV - 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT 30 / - 66 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1595
SELECT DISTINCT + 75 + - + 26 + + + 19 + MAX( ALL + 16 ) DIV 95 col0
----
68

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT + 75 + - + 26 + + + 19 + MAX ( ALL + 16 ) / 95 col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1596
SELECT ALL - - 32 + - - 48 * + CAST( + + 38 AS SIGNED )
----
1856

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL - - 32 + - - 48 * + CAST ( + + 38 AS INTEGER )
----
1856

query I rowsort
SELECT ALL 58 + + 34 - 50 col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT + 27 + MIN( 66 ) + + + ( - 53 ) col0
----
40

skipif mysql # not compatible
query I rowsort label-1598
SELECT + 27 + MIN ( 66 ) + + + ( - 53 ) col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1599
SELECT DISTINCT - 26 DIV NULLIF ( - - 4, - - 68 DIV 45 * - NULLIF ( COUNT( * ), + 64 + + 33 * - + 43 * - ( + - COUNT( * ) ) ) ) + 6 - CASE - 32 WHEN + - COUNT( * ) + - ( 6 ) THEN + 56 WHEN 34 * + ( COUNT( 57 ) * + NULLIF ( CASE 44 WHEN + 84 THEN NULL WHEN 47 THEN 91 + + 73 WHEN - 16 THEN 84 END, 94 ) ) THEN NULL ELSE + 35 * + 93 END
----
-3255

skipif mysql # not compatible
query I rowsort label-1599
SELECT DISTINCT - 26 / NULLIF ( - - 4, - - 68 / 45 * - NULLIF ( COUNT ( * ), + 64 + + 33 * - + 43 * - ( + - COUNT ( * ) ) ) ) + 6 - CASE - 32 WHEN + - COUNT ( * ) + - ( 6 ) THEN + 56 WHEN 34 * + ( COUNT ( 57 ) * + NULLIF ( CASE 44 WHEN + 84 THEN NULL WHEN 47 THEN 91 + + 73 WHEN - 16 THEN 84 END, 94 ) ) THEN NULL ELSE + 35 * + 93 END
----
-3255

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT - SUM( 77 ) * - 70 AS col0
----
5390

skipif mysql # not compatible
query I rowsort label-1600
SELECT - SUM ( 77 ) * - 70 AS col0
----
5390

query I rowsort
SELECT ALL + CASE + 2 WHEN AVG ( ALL - 32 ) THEN - 16 * - 92 * - - 45 END
----
NULL

query I rowsort
SELECT DISTINCT 19 + - 76
----
-57

query II rowsort
SELECT ALL 24 + 19 * - - 41 AS col2, + 6 AS col0
----
803
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT ALL SUM( - 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL SUM ( - 52 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-1606
SELECT + 83 * NULLIF ( 92, + MAX( - + 63 ) + COUNT( * ) ) col2, + COUNT( * )
----
7636
1

skipif mysql # not compatible
query II rowsort label-1606
SELECT + 83 * NULLIF ( 92, + MAX ( - + 63 ) + COUNT ( * ) ) col2, + COUNT ( * )
----
7636
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1607
SELECT ALL + 11 DIV COUNT( ALL - 75 ) + - COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL + 11 / COUNT ( ALL - 75 ) + - COUNT ( * ) AS col1
----
10

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1609
SELECT ALL + 73 DIV 47 * - COUNT( * ) * 37 - 65 AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL + 73 / 47 * - COUNT ( * ) * 37 - 65 AS col0
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-1610
SELECT + 47 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-1610
SELECT + 47 / + 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT - 52 * - 90 * - - MIN( - 47 )
----
-219960

skipif mysql # not compatible
query I rowsort label-1611
SELECT - 52 * - 90 * - - MIN ( - 47 )
----
-219960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1612
SELECT + 64 * + CAST( 63 AS SIGNED ) AS col0, - 88 * - 21 AS col1
----
4032
1848

skipif mysql # not compatible
query II rowsort label-1612
SELECT + 64 * + CAST ( 63 AS INTEGER ) AS col0, - 88 * - 21 AS col1
----
4032
1848

query II rowsort
SELECT + 11 AS col1, 44 - + 96
----
11
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-1614
SELECT + 65 AS col1, COUNT( * ) - - 38
----
65
39

skipif mysql # not compatible
query II rowsort label-1614
SELECT + 65 AS col1, COUNT ( * ) - - 38
----
65
39

query I rowsort
SELECT ALL + 9 * - 64 col0
----
-576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1616
SELECT + 16 DIV + + ( + + NULLIF ( - - ( + COUNT( * ) ), + - NULLIF ( - 75, - 55 ) ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1616
SELECT + 16 / + + ( + + NULLIF ( - - ( + COUNT ( * ) ), + - NULLIF ( - 75, - 55 ) ) ) AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1617
SELECT ALL NULLIF ( - - 77, + COUNT( * ) ) DIV - 3, + COUNT( * ) col1
----
-25
1

skipif mysql # not compatible
query II rowsort label-1617
SELECT ALL NULLIF ( - - 77, + COUNT ( * ) ) / - 3, + COUNT ( * ) col1
----
-25
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1618
SELECT + 34 + - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT + 34 + - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1619
SELECT DISTINCT COUNT( * ) DIV NULLIF ( + 31, + + 51 ) * 38 - 45 * 74 AS col0
----
-3330

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT COUNT ( * ) / NULLIF ( + 31, + + 51 ) * 38 - 45 * 74 AS col0
----
-3330

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT ALL ( 41 ) * + 40 * - NULLIF ( - 40, - NULLIF ( - COUNT( * ), - 53 * - 91 ) ) AS col0
----
65600

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL ( 41 ) * + 40 * - NULLIF ( - 40, - NULLIF ( - COUNT ( * ), - 53 * - 91 ) ) AS col0
----
65600

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT ALL + 65 DIV - - 4 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL + 65 / - - 4 AS col2
----
16

query I rowsort
SELECT + 17 + - 10 col0
----
7

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

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

query II rowsort
SELECT 67 AS col2, + 84 AS col2
----
67
84

query II rowsort
SELECT - 92 AS col0, + 47 AS col0
----
-92
47

query II rowsort
SELECT + - 84, - 38 AS col2
----
-84
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT 28 + + + MAX( - 73 ) + + 30 + - 60 * 10 AS col1
----
-615

skipif mysql # not compatible
query I rowsort label-1627
SELECT 28 + + + MAX ( - 73 ) + + 30 + - 60 * 10 AS col1
----
-615

query I rowsort
SELECT + 53 * + 23
----
1219

query I rowsort
SELECT ( 16 ) + + + 68 col1
----
84

query I rowsort
SELECT ALL - - 84 + - - CASE COALESCE ( + 95, - 61 + 80 * - - 75 ) WHEN 81 * + 23 + + + 91 + - + 43 + 77 THEN NULL ELSE 8 + + 26 END
----
118

onlyif mysql # DIV for integer division: 
query II rowsort label-1631
SELECT ALL - 33 AS col2, 46 DIV 11
----
-33
4

skipif mysql # not compatible
query II rowsort label-1631
SELECT ALL - 33 AS col2, 46 / 11
----
-33
4

query I rowsort
SELECT ( - + NULLIF ( - - 38, + ( + 3 ) / + 97 * + ( 79 ) ) ) - 11
----
-49

query I rowsort
SELECT ALL + - 9 * + 66 AS col0
----
-594

query I rowsort
SELECT ALL + ( + CASE - + 99 WHEN - ( - - AVG ( - NULLIF ( - 41, + 24 + 90 ) ) ) THEN - 11 * 93 + - + 59 END ) + + 53 AS col0
----
NULL

query I rowsort
SELECT ALL - 88 + 64
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1636
SELECT ALL + COUNT( - 63 ) + - 32 + + CAST( NULL AS SIGNED ) * 89 + - - 12 * 41 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL + COUNT ( - 63 ) + - 32 + + CAST ( NULL AS INTEGER ) * 89 + - - 12 * 41 col0
----
NULL

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

query II rowsort
SELECT - 22, - 52 AS col2
----
-22
-52

query I rowsort
SELECT ALL 22 + + - 82
----
-60

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

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

query I rowsort
SELECT DISTINCT + 58 + 83 AS col1
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT ALL ( COALESCE ( 46, + + 70 ) ) DIV - + ( 9 ) + 53 + + 24 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL ( COALESCE ( 46, + + 70 ) ) / - + ( 9 ) + 53 + + 24 AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1643
SELECT DISTINCT COUNT( * ) - - 71 + - ( - ( - 30 ) ) * + + COALESCE ( + 40, CAST( NULL AS SIGNED ) * 84 + - ( + 20 ) + - + 48 + + CAST( + 93 AS SIGNED ) * 65 + - COALESCE ( - - COUNT( * ), + 28 ) + ( 0 ) ) + - COUNT( * ) * 20 AS col0
----
-1148

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT COUNT ( * ) - - 71 + - ( - ( - 30 ) ) * + + COALESCE ( + 40, CAST ( NULL AS INTEGER ) * 84 + - ( + 20 ) + - + 48 + + CAST ( + 93 AS INTEGER ) * 65 + - COALESCE ( - - COUNT ( * ), + 28 ) + ( 0 ) ) + - COUNT ( * ) * 20 AS col0
----
-1148

onlyif mysql # aggregate syntax: 
query II rowsort label-1644
SELECT ALL CASE - 25 WHEN + - 72 THEN COUNT( * ) WHEN + + 50 THEN + 79 END - - - 87 AS col2, - 47 * COUNT( * ) + - + 32
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-1644
SELECT ALL CASE - 25 WHEN + - 72 THEN COUNT ( * ) WHEN + + 50 THEN + 79 END - - - 87 AS col2, - 47 * COUNT ( * ) + - + 32
----
NULL
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1645
SELECT COUNT( * ) * - - 4 AS col0, - CAST( NULL AS SIGNED ) col2
----
4
NULL

skipif mysql # not compatible
query II rowsort label-1645
SELECT COUNT ( * ) * - - 4 AS col0, - CAST ( NULL AS INTEGER ) col2
----
4
NULL

query I rowsort
SELECT ( - ( + + 6 ) ) * - 23 * + 49 AS col1
----
6762

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT COUNT( * ) + - 63 * - + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-1648
SELECT COUNT ( * ) + - 63 * - + COUNT ( * ) AS col1
----
64

query I rowsort
SELECT - 70 * + 44 + 8 AS col2
----
-3072

onlyif mysql # DIV for integer division: 
query I rowsort label-1650
SELECT 41 DIV 50 + + 65 DIV - 27 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1650
SELECT 41 / 50 + + 65 / - 27 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1651
SELECT DISTINCT CASE ( COUNT( * ) ) WHEN - ( SUM( - CAST( NULL AS SIGNED ) ) ) * ( + 88 ) * + 11 + - 45 - + 9 + - 2 THEN - 54 * 62 WHEN 70 THEN MIN( DISTINCT - - 52 ) * - MAX( DISTINCT - - 23 ) * + 40 + 62 ELSE 56 END * + 79
----
4424

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT CASE ( COUNT ( * ) ) WHEN - ( SUM ( - CAST ( NULL AS INTEGER ) ) ) * ( + 88 ) * + 11 + - 45 - + 9 + - 2 THEN - 54 * 62 WHEN 70 THEN MIN ( DISTINCT - - 52 ) * - MAX ( DISTINCT - - 23 ) * + 40 + 62 ELSE 56 END * + 79
----
4424

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT COALESCE ( + + 54, 30, - 50 ) + - MIN( DISTINCT + + 54 ) * - 78
----
4266

skipif mysql # not compatible
query I rowsort label-1652
SELECT COALESCE ( + + 54, 30, - 50 ) + - MIN ( DISTINCT + + 54 ) * - 78
----
4266

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT COUNT( * ) * COUNT( * ) * + 0 + + - 5 + - ( - 42 ) * 27 AS col0
----
1129

skipif mysql # not compatible
query I rowsort label-1653
SELECT COUNT ( * ) * COUNT ( * ) * + 0 + + - 5 + - ( - 42 ) * 27 AS col0
----
1129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1654
SELECT COALESCE ( + + 5, + 81, 42 ) * - 96 + 71 * COUNT( * ) * 97 + + + CAST( NULL AS SIGNED ) + - 25 * + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT COALESCE ( + + 5, + 81, 42 ) * - 96 + 71 * COUNT ( * ) * 97 + + + CAST ( NULL AS INTEGER ) + - 25 * + + 7
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1655
SELECT DISTINCT + 69 DIV - ( COUNT( * ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT + 69 / - ( COUNT ( * ) ) AS col2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT 42 DIV + 4 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1656
SELECT 42 / + 4 AS col1
----
10

query I rowsort
SELECT ALL - - ( - 4 ) + + 34 col0
----
30

query I rowsort
SELECT DISTINCT + - 19 * - + 90 * 64 AS col0
----
109440

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT CASE + COUNT( + 85 ) WHEN + 87 THEN - 23 - + 37 - 82 / COUNT( * ) END * - MIN( ALL + + 62 ) + 51 + + 47 - + 72 + - + 91 + - 71 - 96 / + AVG ( ( 82 ) ) + + ( 37 ) + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT CASE + COUNT ( + 85 ) WHEN + 87 THEN - 23 - + 37 - 82 / COUNT ( * ) END * - MIN ( ALL + + 62 ) + 51 + + 47 - + 72 + - + 91 + - 71 - 96 / + AVG ( ( 82 ) ) + + ( 37 ) + + 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1660
SELECT DISTINCT - - 44 + + CASE 15 WHEN - 0 THEN - CASE - CAST( - + 52 AS SIGNED ) WHEN + 58 * - - 51 THEN - 15 * + - 5 + + 76 + + 82 WHEN + 75 - + 34 THEN NULL ELSE SUM( DISTINCT 42 ) END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT - - 44 + + CASE 15 WHEN - 0 THEN - CASE - CAST ( - + 52 AS INTEGER ) WHEN + 58 * - - 51 THEN - 15 * + - 5 + + 76 + + 82 WHEN + 75 - + 34 THEN NULL ELSE SUM ( DISTINCT 42 ) END END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1661
SELECT ALL + 95 + - CAST( - 8 AS SIGNED ) * 16 DIV - 91 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL + 95 + - CAST ( - 8 AS INTEGER ) * 16 / - 91 AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1662
SELECT ALL - CASE - COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN - - SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) WHEN + 84 * ( + 37 ) + + 92 THEN NULL ELSE COUNT( * ) + - 99 DIV - + 32 * - COUNT( * ) END AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL - CASE - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN - - SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) WHEN + 84 * ( + 37 ) + + 92 THEN NULL ELSE COUNT ( * ) + - 99 / - + 32 * - COUNT ( * ) END AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1663
SELECT - 69 * - - ( - ( 95 ) ) * - 5 + - + ( + 80 ) - - 99 + + - 17 + + - COUNT( * ) * + + CAST( - 55 AS DECIMAL ) - 94 + - - 37 + 58 * - COUNT( * ) * - 32 * CAST( NULL AS DECIMAL ) / 46 + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT - 69 * - - ( - ( 95 ) ) * - 5 + - + ( + 80 ) - - 99 + + - 17 + + - COUNT ( * ) * + + CAST ( - 55 AS REAL ) - 94 + - - 37 + 58 * - COUNT ( * ) * - 32 * CAST ( NULL AS REAL ) / 46 + + 87
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT ALL + - MIN( - 6 ) + 11
----
17

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL + - MIN ( - 6 ) + 11
----
17

query I rowsort
SELECT DISTINCT ( + - 87 ) AS col1
----
-87

query I rowsort
SELECT DISTINCT - CASE + 50 WHEN + 8 / 42 + - CASE 60 WHEN + 42 * - - 17 * - 13 * + ( - 39 ) THEN + + ( - 90 ) END + + - 37 THEN - 97 WHEN + 43 THEN - 94 * - 81 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT ALL + - CASE - - 68 WHEN 48 * - 64 THEN 84 * 2 + + 22 * - - 64 * - 29 * CASE - 50 WHEN + - 11 THEN COALESCE ( - + COUNT( DISTINCT + 38 ), - COALESCE ( 35, - - 14 + 95 + 71 * 93, + 68 ) + 55 ) END + + MAX( 32 ) ELSE NULL END - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL + - CASE - - 68 WHEN 48 * - 64 THEN 84 * 2 + + 22 * - - 64 * - 29 * CASE - 50 WHEN + - 11 THEN COALESCE ( - + COUNT ( DISTINCT + 38 ), - COALESCE ( 35, - - 14 + 95 + 71 * 93, + 68 ) + 55 ) END + + MAX ( 32 ) ELSE NULL END - 97
----
NULL

query II rowsort
SELECT DISTINCT 36 AS col0, 51
----
36
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT COUNT( * ) + - + 87 * + 18
----
-1565

skipif mysql # not compatible
query I rowsort label-1670
SELECT COUNT ( * ) + - + 87 * + 18
----
-1565

query I rowsort
SELECT DISTINCT + 27 * 52 AS col2
----
1404

onlyif mysql # aggregate syntax: 
query II rowsort label-1672
SELECT 18 AS col2, COALESCE ( - + 1, + 92 * 95, + SUM( 43 ) ) AS col1
----
18
-1

skipif mysql # not compatible
query II rowsort label-1672
SELECT 18 AS col2, COALESCE ( - + 1, + 92 * 95, + SUM ( 43 ) ) AS col1
----
18
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT CASE 62 WHEN - 5 THEN NULL ELSE COUNT( * ) END + + 86 col0
----
87

skipif mysql # not compatible
query I rowsort label-1673
SELECT CASE 62 WHEN - 5 THEN NULL ELSE COUNT ( * ) END + + 86 col0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT 21 DIV + NULLIF ( + - 89, 91 )
----
0

skipif mysql # not compatible
query I rowsort label-1674
SELECT 21 / + NULLIF ( + - 89, 91 )
----
0

query I rowsort
SELECT 56 * - 31 AS col1
----
-1736

onlyif mysql # aggregate syntax: 
query II rowsort label-1676
SELECT ALL 8, COUNT( * ) AS col1
----
8
1

skipif mysql # not compatible
query II rowsort label-1676
SELECT ALL 8, COUNT ( * ) AS col1
----
8
1

query I rowsort
SELECT 46 * + 50 * - - 66 col0
----
151800

query II rowsort
SELECT ALL - 20 AS col2, 82 AS col0
----
-20
82

query I rowsort
SELECT 59 * 32
----
1888

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT 46 * - 90 - - 55 + 69 + + - ( - MIN( ALL + 50 ) )
----
-3966

skipif mysql # not compatible
query I rowsort label-1680
SELECT 46 * - 90 - - 55 + 69 + + - ( - MIN ( ALL + 50 ) )
----
-3966

onlyif mysql # aggregate syntax: 
query II rowsort label-1681
SELECT + ( - - 20 ) * - COUNT( * ), + 92 * COUNT( * ) AS col1
----
-20
92

skipif mysql # not compatible
query II rowsort label-1681
SELECT + ( - - 20 ) * - COUNT ( * ), + 92 * COUNT ( * ) AS col1
----
-20
92

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT + - 52 * - 32 - - ( - MAX( 92 ) ) * + 59 * COUNT( * )
----
-3764

skipif mysql # not compatible
query I rowsort label-1685
SELECT + - 52 * - 32 - - ( - MAX ( 92 ) ) * + 59 * COUNT ( * )
----
-3764

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

query I rowsort
SELECT - 10 * - 23 AS col0
----
230

query II rowsort
SELECT + 66 * + - ( + 50 ) + - 18 + + 72, 52 AS col2
----
-3246
52

query I rowsort
SELECT + 98 - - 70 * + + 7 * - 77 col1
----
-37632

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT DISTINCT - COUNT( * ) * + 15 * - 7 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT - COUNT ( * ) * + 15 * - 7 AS col0
----
105

query I rowsort
SELECT + 64 * - 61 * - - 53 + - 49 AS col0
----
-206961

query I rowsort
SELECT DISTINCT + 55 * - 92 + + 36 + + 51
----
-4973

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

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

query I rowsort
SELECT DISTINCT 66 * + 64
----
4224

onlyif mysql # DIV for integer division: 
query I rowsort label-1695
SELECT - 77 DIV 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1695
SELECT - 77 / 84 AS col2
----
0

query II rowsort
SELECT 9 AS col2, + 50 + 33 AS col2
----
9
83

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

skipif mysql # not compatible
query II rowsort label-1697
SELECT DISTINCT COUNT ( * ) AS col2, - 1 AS col0
----
1
-1

query I rowsort
SELECT ALL ( + + 29 ) - + 9 AS col1
----
20

query I rowsort
SELECT + 24 * - - CASE - + 91 WHEN - 28 THEN 31 ELSE NULL END * + ( + + 58 ) * - + 83 AS col0
----
NULL

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

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

query I rowsort
SELECT + 0 * - + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT - COUNT( * ) - - - 12 * + 55
----
-661

skipif mysql # not compatible
query I rowsort label-1702
SELECT - COUNT ( * ) - - - 12 * + 55
----
-661

query I rowsort
SELECT DISTINCT NULLIF ( 45, - 80 ) col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT ALL CASE 9 WHEN + COUNT( 88 ) THEN + 53 * - 73 WHEN 65 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL CASE 9 WHEN + COUNT ( 88 ) THEN + 53 * - 73 WHEN 65 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT - 94 - - - MAX( ALL + NULLIF ( - - 82, - 3 ) ) col0
----
-176

skipif mysql # not compatible
query I rowsort label-1705
SELECT - 94 - - - MAX ( ALL + NULLIF ( - - 82, - 3 ) ) col0
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL SUM( DISTINCT - + 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL SUM ( DISTINCT - + 66 ) AS col1
----
-66

query I rowsort
SELECT ALL - 78 * + 96
----
-7488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1708
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 91 AS col2
----
NULL

query I rowsort
SELECT + 58 + - + 96 + - 91
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT - 34 + + 62 + + + CASE - 48 WHEN + 79 + + - 23 + MAX( DISTINCT - ( + ( - + 2 ) ) ) * + 23 THEN ( - COUNT( * ) ) * - - AVG ( + 53 ) * + + 48 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT - 34 + + 62 + + + CASE - 48 WHEN + 79 + + - 23 + MAX ( DISTINCT - ( + ( - + 2 ) ) ) * + 23 THEN ( - COUNT ( * ) ) * - - AVG ( + 53 ) * + + 48 + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT - 40 - - - 96 + + COUNT( * ) - - + 15 + + 45 * + - 90 * + - 9 * 60 AS col2
----
2186880

skipif mysql # not compatible
query I rowsort label-1711
SELECT - 40 - - - 96 + + COUNT ( * ) - - + 15 + + 45 * + - 90 * + - 9 * 60 AS col2
----
2186880

query I rowsort
SELECT ALL - 78 * - 26
----
2028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1713
SELECT DISTINCT + 77 DIV - COALESCE ( + + 29, - 85 * MIN( 46 ), - 83 ) + - 57 * - CAST( NULL AS SIGNED ) * 97 * + + 69 + - 18 * 44 + + 40 AS col0, 60 + + 35 DIV + MIN( 74 ) AS col1
----
NULL
60

skipif mysql # not compatible
query II rowsort label-1713
SELECT DISTINCT + 77 / - COALESCE ( + + 29, - 85 * MIN ( 46 ), - 83 ) + - 57 * - CAST ( NULL AS INTEGER ) * 97 * + + 69 + - 18 * 44 + + 40 AS col0, 60 + + 35 / + MIN ( 74 ) AS col1
----
NULL
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1714
SELECT ALL + 20 DIV 3 * + 47 + - ( + 45 ) AS col2
----
237

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL + 20 / 3 * + 47 + - ( + 45 ) AS col2
----
237

onlyif mysql # aggregate syntax: 
query III rowsort label-1715
SELECT DISTINCT + + COALESCE ( COALESCE ( COUNT( * ), - 71 ), + - 29, + 21 ) AS col2, 87 AS col0, + COUNT( * ) * MIN( + 99 ) AS col0
----
1
87
99

skipif mysql # not compatible
query III rowsort label-1715
SELECT DISTINCT + + COALESCE ( COALESCE ( COUNT ( * ), - 71 ), + - 29, + 21 ) AS col2, 87 AS col0, + COUNT ( * ) * MIN ( + 99 ) AS col0
----
1
87
99

query I rowsort
SELECT ALL 86 * - 54 + - - 11 AS col2
----
-4633

query II rowsort
SELECT + - 51 AS col2, 33 AS col1
----
-51
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT + - NULLIF ( + 17, COUNT( * ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-1718
SELECT + - NULLIF ( + 17, COUNT ( * ) ) AS col2
----
-17

query II rowsort
SELECT + - ( + - 33 ) * + 70 * + 78 AS col0, 71
----
180180
71

query I rowsort
SELECT ALL + 9 * - 7 * + 30 AS col2
----
-1890

query I rowsort
SELECT - - 4 * 74 + + 90
----
386

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT + MAX( DISTINCT - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-1722
SELECT + MAX ( DISTINCT - 89 )
----
-89

query II rowsort
SELECT DISTINCT + - 70 AS col0, 39
----
-70
39

query I rowsort
SELECT ALL - 18 * - 85 * - NULLIF ( - + 16, - 7 * 81 / - 24 * + 28 ) AS col0
----
24480

onlyif mysql # DIV for integer division: 
query I rowsort label-1725
SELECT - - 12 + + 20 DIV + + 43 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1725
SELECT - - 12 + + 20 / + + 43 AS col2
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT ALL + + MIN( - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL + + MIN ( - 42 )
----
-42

query I rowsort
SELECT - 1 * - 95 + - 70 AS col0
----
25

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

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

query I rowsort
SELECT ALL - 74 * 82 * + 57 + - 12
----
-345888

onlyif mysql # aggregate syntax: 
query II rowsort label-1731
SELECT DISTINCT + + 36, SUM( DISTINCT 93 ) + SUM( - 41 ) - 81 * + 13 col2
----
36
-1001

skipif mysql # not compatible
query II rowsort label-1731
SELECT DISTINCT + + 36, SUM ( DISTINCT 93 ) + SUM ( - 41 ) - 81 * + 13 col2
----
36
-1001

query II rowsort
SELECT ALL + 41, 47 AS col0
----
41
47

query I rowsort
SELECT DISTINCT + + ( - 40 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1734
SELECT - CAST( NULL AS SIGNED ) + - - ( + 47 ) + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1734
SELECT - CAST ( NULL AS INTEGER ) + - - ( + 47 ) + + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT + 98 * COUNT( + 65 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-1735
SELECT + 98 * COUNT ( + 65 ) AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1736
SELECT 2 * 13 / + 59 + + 26 * 49 + - + ( 13 ) + - - 99 + + 50 * + - 28 - COALESCE ( + 70, 32, + + 17 * - ( ( 0 ) ) * + 39 * + - 60 + - SUM( ALL - 15 ) ) * CAST( 92 * - 83 - - CASE 28 WHEN + 18 * 91 THEN COUNT( * ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1736
SELECT 2 * 13 / + 59 + + 26 * 49 + - + ( 13 ) + - - 99 + + 50 * + - 28 - COALESCE ( + 70, 32, + + 17 * - ( ( 0 ) ) * + 39 * + - 60 + - SUM ( ALL - 15 ) ) * CAST ( 92 * - 83 - - CASE 28 WHEN + 18 * 91 THEN COUNT ( * ) END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1737
SELECT + 65 * - 54 + CAST( - - 87 AS SIGNED )
----
-3423

skipif mysql # not compatible
query I rowsort label-1737
SELECT + 65 * - 54 + CAST ( - - 87 AS INTEGER )
----
-3423

query I rowsort
SELECT + 41 + + ( + 22 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1739
SELECT + 0 * + NULLIF ( + + 88, - 80 ) * COUNT( * ) * COUNT( * ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT + 0 * + NULLIF ( + + 88, - 80 ) * COUNT ( * ) * COUNT ( * ) / CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT + 18 + - - 43 * ( - 20 ) * - + 52 * 81 * - + 53 + + - 47 AS col0
----
-191982989

query I rowsort
SELECT ALL 88 + - 59
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT + COUNT( + 16 ) + + MIN( ALL + 83 ) * + COALESCE ( 26, - 9 )
----
2159

skipif mysql # not compatible
query I rowsort label-1743
SELECT + COUNT ( + 16 ) + + MIN ( ALL + 83 ) * + COALESCE ( 26, - 9 )
----
2159

query I rowsort
SELECT ALL CASE - + 86 WHEN + 16 THEN - + 17 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL 52 + + 65 AS col0, - 75 * 27
----
117
-2025

onlyif mysql # DIV for integer division: 
query II rowsort label-1746
SELECT + 64 + - + 93 AS col1, - 26 DIV + + 56 * 88 AS col0
----
-29
0

skipif mysql # not compatible
query II rowsort label-1746
SELECT + 64 + - + 93 AS col1, - 26 / + + 56 * 88 AS col0
----
-29
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1747
SELECT NULLIF ( - 9, + 64 ) DIV - + 67 * - - COUNT( * ) * - + 65
----
0

skipif mysql # not compatible
query I rowsort label-1747
SELECT NULLIF ( - 9, + 64 ) / - + 67 * - - COUNT ( * ) * - + 65
----
0

query I rowsort
SELECT 75 + - 67 * + 28
----
-1801

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT 49 * + COUNT( * ) * + 80 AS col1
----
3920

skipif mysql # not compatible
query I rowsort label-1749
SELECT 49 * + COUNT ( * ) * + 80 AS col1
----
3920

query I rowsort
SELECT 84 + + 72 AS col0
----
156

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

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL + COUNT ( * ) + + 77 AS col2
----
78

query I rowsort
SELECT 74 * - + 49
----
-3626

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT ALL - CASE + 17 WHEN + - 12 * - + 3 THEN - - 68 WHEN MAX( ALL - - 31 ) * + + 15 - + 30 THEN + 57 * + + ( + 19 ) * COALESCE ( 52, + NULLIF ( - 6, + 17 ) - - - ( - + 84 ) * + 27 * 64 ) + - 29 * - 65 END * + NULLIF ( + 23 + 90, 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL - CASE + 17 WHEN + - 12 * - + 3 THEN - - 68 WHEN MAX ( ALL - - 31 ) * + + 15 - + 30 THEN + 57 * + + ( + 19 ) * COALESCE ( 52, + NULLIF ( - 6, + 17 ) - - - ( - + 84 ) * + 27 * 64 ) + - 29 * - 65 END * + NULLIF ( + 23 + 90, 71 ) AS col2
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - 30 * - 46 AS col2
----
1380

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1757
SELECT ( + 77 ) * + + ( + 83 ) * 40 + 65 - + CAST( + 51 AS SIGNED ) DIV + 32
----
255704

skipif mysql # not compatible
query I rowsort label-1757
SELECT ( + 77 ) * + + ( + 83 ) * 40 + 65 - + CAST ( + 51 AS INTEGER ) / + 32
----
255704

onlyif mysql # aggregate syntax: 
query II rowsort label-1758
SELECT + 53 * + COUNT( * ), 94 + - + COUNT( * ) * + 2 * + ( 11 ) AS col2
----
53
72

skipif mysql # not compatible
query II rowsort label-1758
SELECT + 53 * + COUNT ( * ), 94 + - + COUNT ( * ) * + 2 * + ( 11 ) AS col2
----
53
72

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

skipif mysql # not compatible
query I rowsort label-1759
SELECT + MIN ( 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT DISTINCT + + COUNT( * ) - - MAX( 16 ) + + 90 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT + + COUNT ( * ) - - MAX ( 16 ) + + 90 AS col1
----
107

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1762
SELECT COUNT( * ) * + + 52 AS col0, SUM( + CAST( NULL AS SIGNED ) )
----
52
NULL

skipif mysql # not compatible
query II rowsort label-1762
SELECT COUNT ( * ) * + + 52 AS col0, SUM ( + CAST ( NULL AS INTEGER ) )
----
52
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT DISTINCT + - 16 / CAST( NULL AS SIGNED ) / + 71 - - + 87 + + + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT + - 16 / CAST ( NULL AS INTEGER ) / + 71 - - + 87 + + + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1764
SELECT COUNT( * ) DIV - - 78 - 85 + - + COUNT( * ) * - COUNT( * ) * - 95 + + COUNT( DISTINCT - 91 ) AS col2, MAX( + 46 )
----
-179
46

skipif mysql # not compatible
query II rowsort label-1764
SELECT COUNT ( * ) / - - 78 - 85 + - + COUNT ( * ) * - COUNT ( * ) * - 95 + + COUNT ( DISTINCT - 91 ) AS col2, MAX ( + 46 )
----
-179
46

query I rowsort
SELECT 2 * + 96 AS col0
----
192

query II rowsort
SELECT 45 + - - 33 AS col0, - 84
----
78
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT + 35 * + - 22 * - 53 * + SUM( + 0 ) * - NULLIF ( - + 97, 96 + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-1767
SELECT + 35 * + - 22 * - 53 * + SUM ( + 0 ) * - NULLIF ( - + 97, 96 + COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT + ( - 11 ) + + 1 * 13 * + - NULLIF ( - COUNT( * ), + COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-1768
SELECT + ( - 11 ) + + 1 * 13 * + - NULLIF ( - COUNT ( * ), + COUNT ( * ) )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1769
SELECT ALL CAST( NULL AS SIGNED ) + + + 83 + 10 AS col0, CASE - 86 WHEN - + 24 - 95 / - COUNT( ALL 74 ) THEN - - 25 * + COALESCE ( 2, - 42 ) ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1769
SELECT ALL CAST ( NULL AS INTEGER ) + + + 83 + 10 AS col0, CASE - 86 WHEN - + 24 - 95 / - COUNT ( ALL 74 ) THEN - - 25 * + COALESCE ( 2, - 42 ) ELSE NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1770
SELECT DISTINCT COUNT( ALL + - 68 ) * + NULLIF ( 98, + 98 ) + 24, 80 * + 17 AS col1
----
NULL
1360

skipif mysql # not compatible
query II rowsort label-1770
SELECT DISTINCT COUNT ( ALL + - 68 ) * + NULLIF ( 98, + 98 ) + 24, 80 * + 17 AS col1
----
NULL
1360

onlyif mysql # DIV for integer division: 
query I rowsort label-1771
SELECT ALL - ( + 19 ) * + 21 - + 27 DIV - 26 AS col1
----
-398

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - ( + 19 ) * + 21 - + 27 / - 26 AS col1
----
-398

query I rowsort
SELECT 40 * + - 63 * 15 AS col2
----
-37800

onlyif mysql # aggregate syntax: 
query II rowsort label-1773
SELECT 60 AS col2, ( 98 ) - + 74 * - 22 * - 37 * NULLIF ( 79, + COUNT( * ) ) AS col1
----
60
-4758546

skipif mysql # not compatible
query II rowsort label-1773
SELECT 60 AS col2, ( 98 ) - + 74 * - 22 * - 37 * NULLIF ( 79, + COUNT ( * ) ) AS col1
----
60
-4758546

query I rowsort
SELECT 30 + - + 69 AS col1
----
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT 39 + + 70 + COUNT( - NULLIF ( - 17, + + 71 * + 13 * + 97 ) )
----
110

skipif mysql # not compatible
query I rowsort label-1776
SELECT 39 + + 70 + COUNT ( - NULLIF ( - 17, + + 71 * + 13 * + 97 ) )
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1777
SELECT MAX( - 87 ) * 59 col1, 54 * - CAST( NULL AS SIGNED ) AS col1
----
-5133
NULL

skipif mysql # not compatible
query II rowsort label-1777
SELECT MAX ( - 87 ) * 59 col1, 54 * - CAST ( NULL AS INTEGER ) AS col1
----
-5133
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1778
SELECT 58, - 19 + - CAST( NULLIF ( + 14, 54 ) AS SIGNED ) AS col2
----
58
-33

skipif mysql # not compatible
query II rowsort label-1778
SELECT 58, - 19 + - CAST ( NULLIF ( + 14, 54 ) AS INTEGER ) AS col2
----
58
-33

query I rowsort
SELECT ALL 98 + + + 41
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT 65 - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-1780
SELECT 65 - COUNT ( * )
----
64

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

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

query I rowsort
SELECT DISTINCT 4 * + 97
----
388

query I rowsort
SELECT ALL 63 - - 14 * 86 * + - 4 col0
----
-4753

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

query I rowsort
SELECT + ( + 63 ) - - COALESCE ( - 23, - 47, 91 ) + - + 61 AS col1
----
-21

query I rowsort
SELECT - 77 * 72 AS col0
----
-5544

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

query II rowsort
SELECT - 51, - 66 * - 28 AS col1
----
-51
1848

query I rowsort
SELECT + 95 + 69 + - 35
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1790
SELECT - 47 DIV + NULLIF ( - 97, + ( - - COUNT( * ) ) ) + + 7, 71 AS col0
----
7
71

skipif mysql # not compatible
query II rowsort label-1790
SELECT - 47 / + NULLIF ( - 97, + ( - - COUNT ( * ) ) ) + + 7, 71 AS col0
----
7
71

query I rowsort
SELECT DISTINCT - - ( + 10 ) col1
----
10

query I rowsort
SELECT 60 + - 76 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-1793
SELECT 64, + COUNT( * ) + + 77 AS col1
----
64
78

skipif mysql # not compatible
query II rowsort label-1793
SELECT 64, + COUNT ( * ) + + 77 AS col1
----
64
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT - 72 * 56 + - - COUNT( * ) * - + 42 * 11
----
-4494

skipif mysql # not compatible
query I rowsort label-1794
SELECT - 72 * 56 + - - COUNT ( * ) * - + 42 * 11
----
-4494

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT + MIN( - 59 ) * - 32
----
1888

skipif mysql # not compatible
query I rowsort label-1795
SELECT + MIN ( - 59 ) * - 32
----
1888

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT + COUNT( * ) * 44 * + 46 * 34 + - COUNT( * ) * - 81 * - 14 + + 19 - + COALESCE ( + COUNT( * ), - + 70, + 26 ) + + 88 + - COUNT( 27 )
----
67787

skipif mysql # not compatible
query I rowsort label-1796
SELECT + COUNT ( * ) * 44 * + 46 * 34 + - COUNT ( * ) * - 81 * - 14 + + 19 - + COALESCE ( + COUNT ( * ), - + 70, + 26 ) + + 88 + - COUNT ( 27 )
----
67787

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1798
SELECT + 42 DIV + ( COALESCE ( - COUNT( * ), 82 ) ) + 1 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-1798
SELECT + 42 / + ( COALESCE ( - COUNT ( * ), 82 ) ) + 1 AS col2
----
-41

query II rowsort
SELECT 70 AS col0, 18 + + 89
----
70
107

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1800
SELECT CAST( NULL AS DECIMAL ) + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT CAST ( NULL AS REAL ) + - 42
----
NULL

query I rowsort
SELECT - 20 * + + 63 AS col2
----
-1260

query I rowsort
SELECT 60 * + + 85 AS col1
----
5100

query I rowsort
SELECT ALL + 74 + - 70
----
4

query I rowsort
SELECT 30 + + 14 + 99
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL CASE + 16 WHEN COUNT( * ) * 34 THEN + 88 END * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL CASE + 16 WHEN COUNT ( * ) * 34 THEN + 88 END * 25
----
NULL

query I rowsort
SELECT DISTINCT 42 + 56
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT DISTINCT + MIN( - 39 ) + 0 * - 50
----
-39

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT + MIN ( - 39 ) + 0 * - 50
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT - 94 * - CASE 43 WHEN + COUNT( * ) THEN - 54 * + 92 WHEN + 31 - MIN( DISTINCT - 58 ) THEN NULL END + + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1808
SELECT - 94 * - CASE 43 WHEN + COUNT ( * ) THEN - 54 * + 92 WHEN + 31 - MIN ( DISTINCT - 58 ) THEN NULL END + + 29 AS col2
----
NULL

query I rowsort
SELECT - ( + + 7 ) - - 74
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1810
SELECT DISTINCT + 46 / CAST( NULL AS SIGNED ) AS col2, + COUNT( * ) + - 92 * 25 AS col1
----
NULL
-2299

skipif mysql # not compatible
query II rowsort label-1810
SELECT DISTINCT + 46 / CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) + - 92 * 25 AS col1
----
NULL
-2299

query I rowsort
SELECT 55 * + 37 + ( NULLIF ( - 69, - + 17 - 84 + + 21 ) ) col0
----
1966

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1812
SELECT DISTINCT CASE - 62 WHEN - 61 * + + 44 THEN NULL WHEN 44 * + COALESCE ( - - 55, + 54 ) * COALESCE ( + 38, ( - ( 98 ) ), 28 + - 31 ) THEN NULL ELSE + - 93 + CAST( NULL AS DECIMAL ) + + ( - 87 ) + + 44 * 83 / ( COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT CASE - 62 WHEN - 61 * + + 44 THEN NULL WHEN 44 * + COALESCE ( - - 55, + 54 ) * COALESCE ( + 38, ( - ( 98 ) ), 28 + - 31 ) THEN NULL ELSE + - 93 + CAST ( NULL AS REAL ) + + ( - 87 ) + + 44 * 83 / ( COUNT ( * ) ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1813
SELECT - 28 + + CAST( + COALESCE ( + 94, - + 1 * + - 74 + + 3 + COUNT( * ) + + - 38 * - + ( - ( + - 85 ) ) ) AS SIGNED ) * - 83 * - COUNT( * ) * - + 39 * + + 68 AS col1
----
-20690932

skipif mysql # not compatible
query I rowsort label-1813
SELECT - 28 + + CAST ( + COALESCE ( + 94, - + 1 * + - 74 + + 3 + COUNT ( * ) + + - 38 * - + ( - ( + - 85 ) ) ) AS INTEGER ) * - 83 * - COUNT ( * ) * - + 39 * + + 68 AS col1
----
-20690932

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT - COUNT( * ) + + - MAX( DISTINCT - + 19 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-1814
SELECT - COUNT ( * ) + + - MAX ( DISTINCT - + 19 ) AS col2
----
18

query I rowsort
SELECT DISTINCT + 74 * + - 26 * + - 38
----
73112

query I rowsort
SELECT - ( + - 55 ) + + - 80 AS col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1817
SELECT ALL + 57 * + + 72 * - - 56 / - + CAST( NULL AS SIGNED ) * - 8 * - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL + 57 * + + 72 * - - 56 / - + CAST ( NULL AS INTEGER ) * - 8 * - - 63
----
NULL

query I rowsort
SELECT + 51 + 44 col2
----
95

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1820
SELECT - 74 * + - 67 + - + 86 DIV + 49 + + 75 AS col1
----
5032

skipif mysql # not compatible
query I rowsort label-1820
SELECT - 74 * + - 67 + - + 86 / + 49 + + 75 AS col1
----
5032

query I rowsort
SELECT + 49 + + 92 AS col1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT ALL - 86 * - COUNT( ALL - 11 )
----
86

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL - 86 * - COUNT ( ALL - 11 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1823
SELECT + - 75 DIV - 35 AS col0, - MAX( DISTINCT 72 ) * + 83
----
2
-5976

skipif mysql # not compatible
query II rowsort label-1823
SELECT + - 75 / - 35 AS col0, - MAX ( DISTINCT 72 ) * + 83
----
2
-5976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1824
SELECT ALL 21 * - CAST( - 23 AS SIGNED )
----
483

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL 21 * - CAST ( - 23 AS INTEGER )
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT DISTINCT - 91 * COUNT( * ) * + - 77 + 76 AS col2
----
7083

skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT - 91 * COUNT ( * ) * + - 77 + 76 AS col2
----
7083

query I rowsort
SELECT ALL - 48 * + 5 + - 94 col2
----
-334

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT ALL + 12 * 98 + - COUNT( * ) + + 74 - + 3 + - SUM( 53 ) + - + 67 * + MIN( 4 ) AS col0
----
925

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL + 12 * 98 + - COUNT ( * ) + + 74 - + 3 + - SUM ( 53 ) + - + 67 * + MIN ( 4 ) AS col0
----
925

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT ALL - ( - + NULLIF ( - + 33, - - NULLIF ( + 82, + 90 ) - + ( - 17 ) + + + 39 / - COUNT( * ) / + CASE - 52 WHEN + ( + 46 ) THEN + + 1 WHEN - 79 THEN + + 14 END * - 84 * + 5 ) ) * - 23 * 47 AS col0
----
35673

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL - ( - + NULLIF ( - + 33, - - NULLIF ( + 82, + 90 ) - + ( - 17 ) + + + 39 / - COUNT ( * ) / + CASE - 52 WHEN + ( + 46 ) THEN + + 1 WHEN - 79 THEN + + 14 END * - 84 * + 5 ) ) * - 23 * 47 AS col0
----
35673

query I rowsort
SELECT + - 23 + - 68 AS col2
----
-91

query I rowsort
SELECT + 40 * + 66 - - NULLIF ( + 97, + + 15 )
----
2737

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

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

query I rowsort
SELECT DISTINCT 46 * - + NULLIF ( - - 36, - - ( - - 36 ) ) * + 84 + - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT ALL COUNT( * ) * - COUNT( * ) + + - COALESCE ( - 29, 95 + ( 79 ), + ( COUNT( * ) ) ) + - 39 * + 88 / + 89 + + 78 * - + CASE CASE WHEN 10 >= ( 88 - MAX( ALL - 20 ) + + 89 ) THEN 83 END WHEN 54 + - ( - + 21 ) * 45 THEN NULL WHEN - 90 THEN 95 * - NULLIF ( - 75, + 82 - + 14 ) + + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL COUNT ( * ) * - COUNT ( * ) + + - COALESCE ( - 29, 95 + ( 79 ), + ( COUNT ( * ) ) ) + - 39 * + 88 / + 89 + + 78 * - + CASE CASE WHEN 10 >= ( 88 - MAX ( ALL - 20 ) + + 89 ) THEN 83 END WHEN 54 + - ( - + 21 ) * 45 THEN NULL WHEN - 90 THEN 95 * - NULLIF ( - 75, + 82 - + 14 ) + + 30 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1834
SELECT MAX( - 58 ) * - + ( 4 ) + + 13 AS col2, 75
----
245
75

skipif mysql # not compatible
query II rowsort label-1834
SELECT MAX ( - 58 ) * - + ( 4 ) + + 13 AS col2, 75
----
245
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1835
SELECT COALESCE ( - 76, - 15 * - 23 + + 2 ), COUNT( * ) AS col2
----
-76
1

skipif mysql # not compatible
query II rowsort label-1835
SELECT COALESCE ( - 76, - 15 * - 23 + + 2 ), COUNT ( * ) AS col2
----
-76
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1836
SELECT ALL 29 * - COALESCE ( + + 9, - 39 * ( - - CAST( - 33 AS SIGNED ) ) ) AS col0
----
-261

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL 29 * - COALESCE ( + + 9, - 39 * ( - - CAST ( - 33 AS INTEGER ) ) ) AS col0
----
-261

onlyif mysql # DIV for integer division: 
query II rowsort label-1837
SELECT DISTINCT 83 * - + 11 * + 38 + 76 - + + 0 col0, COALESCE ( 95, 71, + + 67 * + + 39 DIV + 60 )
----
-34618
95

skipif mysql # not compatible
query II rowsort label-1837
SELECT DISTINCT 83 * - + 11 * + 38 + 76 - + + 0 col0, COALESCE ( 95, 71, + + 67 * + + 39 / + 60 )
----
-34618
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1838
SELECT NULLIF ( 80, - 32 ) col1, COUNT( * ) col0
----
80
1

skipif mysql # not compatible
query II rowsort label-1838
SELECT NULLIF ( 80, - 32 ) col1, COUNT ( * ) col0
----
80
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1839
SELECT ALL 58 * 73 + - 8 / CAST( NULL AS DECIMAL ) / - + 40 * + + 74 * - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL 58 * 73 + - 8 / CAST ( NULL AS REAL ) / - + 40 * + + 74 * - - 87
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1840
SELECT + 87 * - - MAX( CAST( - 0 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1840
SELECT + 87 * - - MAX ( CAST ( - 0 AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT ALL 93 * + + 28
----
2604

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT - 5 DIV + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1842
SELECT - 5 / + 81 AS col2
----
0

query I rowsort
SELECT DISTINCT 28 * 65 AS col2
----
1820

query I rowsort
SELECT ALL + 29 * - 0 - + + 30 AS col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1845
SELECT - 75 DIV - + 61 DIV - ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1845
SELECT - 75 / - + 61 / - ( - + COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT NULLIF ( + - 60, + 87 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query III rowsort label-1847
SELECT + NULLIF ( - - 77, - 9 ) + - + 85 * - 26 col1, 14 AS col1, 13 + + - 24 - - + COUNT( * ) * 59 + 90
----
2287
14
138

skipif mysql # not compatible
query III rowsort label-1847
SELECT + NULLIF ( - - 77, - 9 ) + - + 85 * - 26 col1, 14 AS col1, 13 + + - 24 - - + COUNT ( * ) * 59 + 90
----
2287
14
138

query I rowsort
SELECT - 10 * 13 AS col0
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1849
SELECT ALL - 98 DIV COUNT( * ) * + + 84 * - 64 AS col0
----
526848

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL - 98 / COUNT ( * ) * + + 84 * - 64 AS col0
----
526848

onlyif mysql # DIV for integer division: 
query I rowsort label-1850
SELECT - 39 DIV + 33 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1850
SELECT - 39 / + 33 AS col1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1851
SELECT - - 45 - - - 76 + - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT - - 45 - - - 76 + - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT ALL NULLIF ( 65, + 3 - + 14 + - 42 + - 23 - + + CASE - 9 WHEN - - 6 THEN 62 END * + COUNT( * ) + CASE + 83 WHEN - 38 THEN + + 50 WHEN - - 72 THEN NULL ELSE + 61 END ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL NULLIF ( 65, + 3 - + 14 + - 42 + - 23 - + + CASE - 9 WHEN - - 6 THEN 62 END * + COUNT ( * ) + CASE + 83 WHEN - 38 THEN + + 50 WHEN - - 72 THEN NULL ELSE + 61 END ) AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1853
SELECT ALL - COUNT( + 97 ) DIV - SUM( DISTINCT - 25 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL - COUNT ( + 97 ) / - SUM ( DISTINCT - 25 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1854
SELECT ALL + SUM( DISTINCT 7 ) * 9 + 49 DIV - 31
----
62

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL + SUM ( DISTINCT 7 ) * 9 + 49 / - 31
----
62

query I rowsort
SELECT - 8 * + 45
----
-360

query I rowsort
SELECT - + 21 + - - 67 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT COALESCE ( - 98, - SUM( ALL 51 ) * - + COALESCE ( - 7, - 15 + + 60 * - 90 + - + 22 ) + - 9 + + NULLIF ( - ( + 15 ), + - 97 * + CASE 30 WHEN + + ( + 16 ) THEN NULL WHEN 18 * - + 78 * - 61 / - COUNT( * ) / 86 THEN 71 END ) * COUNT( * ), - MAX( 56 ) )
----
-98

skipif mysql # not compatible
query I rowsort label-1857
SELECT COALESCE ( - 98, - SUM ( ALL 51 ) * - + COALESCE ( - 7, - 15 + + 60 * - 90 + - + 22 ) + - 9 + + NULLIF ( - ( + 15 ), + - 97 * + CASE 30 WHEN + + ( + 16 ) THEN NULL WHEN 18 * - + 78 * - 61 / - COUNT ( * ) / 86 THEN 71 END ) * COUNT ( * ), - MAX ( 56 ) )
----
-98

query I rowsort
SELECT + 35 - - 83
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT - + 18 * - MIN( - 80 )
----
-1440

skipif mysql # not compatible
query I rowsort label-1859
SELECT - + 18 * - MIN ( - 80 )
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT - 79 + - + COUNT( - 37 ) + 35 + - - 25 + - 58
----
-78

skipif mysql # not compatible
query I rowsort label-1860
SELECT - 79 + - + COUNT ( - 37 ) + 35 + - - 25 + - 58
----
-78

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1862
SELECT - 0 DIV - 1 + - 82
----
-82

skipif mysql # not compatible
query I rowsort label-1862
SELECT - 0 / - 1 + - 82
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1863
SELECT DISTINCT - + CASE 36 WHEN - 12 THEN + - 88 WHEN + CAST( NULL AS SIGNED ) + + + 78 * - + 79 THEN NULL ELSE NULL END / - CAST( + + 32 AS SIGNED ) + + 19 - + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT - + CASE 36 WHEN - 12 THEN + - 88 WHEN + CAST ( NULL AS INTEGER ) + + + 78 * - + 79 THEN NULL ELSE NULL END / - CAST ( + + 32 AS INTEGER ) + + 19 - + 88
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1865
SELECT - COUNT( * ) * + ( + + 92 ) DIV + + 69 + 12 + - 25 + + 76 col2, 69 AS col1
----
62
69

skipif mysql # not compatible
query II rowsort label-1865
SELECT - COUNT ( * ) * + ( + + 92 ) / + + 69 + 12 + - 25 + + 76 col2, 69 AS col1
----
62
69

query I rowsort
SELECT 69 * + 84
----
5796

query I rowsort
SELECT 39 + - + 30 AS col2
----
9

query I rowsort
SELECT DISTINCT 47 - + ( 52 )
----
-5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1870
SELECT + 92 AS col2, CAST( NULL AS SIGNED )
----
92
NULL

skipif mysql # not compatible
query II rowsort label-1870
SELECT + 92 AS col2, CAST ( NULL AS INTEGER )
----
92
NULL

query I rowsort
SELECT ALL 82 - ( - NULLIF ( - - 64, 57 ) ) AS col0
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-1872
SELECT ( + 35 ) * - 79 + - - 60, + 29 + - COUNT( * ) AS col0
----
-2705
28

skipif mysql # not compatible
query II rowsort label-1872
SELECT ( + 35 ) * - 79 + - - 60, + 29 + - COUNT ( * ) AS col0
----
-2705
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1873
SELECT CASE 17 WHEN + 40 THEN COUNT( * ) * + - CAST( + MIN( - 74 ) AS SIGNED ) * + 17 - + ( 67 ) - - ( + - 3 ) WHEN 39 + - + 88 THEN NULL END + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT CASE 17 WHEN + 40 THEN COUNT ( * ) * + - CAST ( + MIN ( - 74 ) AS INTEGER ) * + 17 - + ( 67 ) - - ( + - 3 ) WHEN 39 + - + 88 THEN NULL END + 46 AS col0
----
NULL

query I rowsort
SELECT 58 * 35
----
2030

query I rowsort
SELECT 93 * + 35 AS col0
----
3255

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT MIN( - 59 ) * 36 + - + 62 AS col0
----
-2186

skipif mysql # not compatible
query I rowsort label-1876
SELECT MIN ( - 59 ) * 36 + - + 62 AS col0
----
-2186

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT 0 + - - 96 - - COUNT( * ) * + ( - + 14 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-1877
SELECT 0 + - - 96 - - COUNT ( * ) * + ( - + 14 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT DISTINCT 75 * + 98 * ( - - COALESCE ( 89, MAX( DISTINCT - 28 ), + COUNT( * ), MAX( + 64 ) ) )
----
654150

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT 75 * + 98 * ( - - COALESCE ( 89, MAX ( DISTINCT - 28 ), + COUNT ( * ), MAX ( + 64 ) ) )
----
654150

query I rowsort
SELECT 83 * + - 13 AS col2
----
-1079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1880
SELECT 30 * - - CAST( NULL AS SIGNED ) + - ( + 36 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT 30 * - - CAST ( NULL AS INTEGER ) + - ( + 36 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1881
SELECT - 77 AS col1, + COUNT( DISTINCT + + CAST( - + 5 AS DECIMAL ) ) AS col2
----
-77
1

skipif mysql # not compatible
query II rowsort label-1881
SELECT - 77 AS col1, + COUNT ( DISTINCT + + CAST ( - + 5 AS REAL ) ) AS col2
----
-77
1

query I rowsort
SELECT DISTINCT 35 * + - 70 * + 47
----
-115150

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT DISTINCT MAX( DISTINCT + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-1883
SELECT DISTINCT MAX ( DISTINCT + 6 )
----
6

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1886
SELECT COALESCE ( - CAST( - 16 AS SIGNED ), 27 - 36 DIV 48 * 33 * - - 50 * + ( 56 ) + + 77 * + COUNT( * ) + + 7 ) * - + SUM( - + 57 ) AS col2
----
912

skipif mysql # not compatible
query I rowsort label-1886
SELECT COALESCE ( - CAST ( - 16 AS INTEGER ), 27 - 36 / 48 * 33 * - - 50 * + ( 56 ) + + 77 * + COUNT ( * ) + + 7 ) * - + SUM ( - + 57 ) AS col2
----
912

query I rowsort
SELECT + 20 + + - 39
----
-19

query I rowsort
SELECT ALL - + 44 + 2
----
-42

query I rowsort
SELECT + 86 * - 42
----
-3612

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL + 87 * SUM( ( + 43 ) ) AS col2
----
3741

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL + 87 * SUM ( ( + 43 ) ) AS col2
----
3741

query I rowsort
SELECT DISTINCT + - NULLIF ( 61, - - 21 / + 64 * - 48 + 5 ) + + 95 + + - 52 * - - 17
----
-850

query I rowsort
SELECT ALL + 43 + 77 * + 83
----
6434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1893
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - - 87 * + CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - - 87 * + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1894
SELECT - NULLIF ( + MAX( ALL 50 ), CAST( NULL AS SIGNED ) ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1894
SELECT - NULLIF ( + MAX ( ALL 50 ), CAST ( NULL AS INTEGER ) ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL - 52 * + + 89 + + COUNT( * )
----
-4627

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL - 52 * + + 89 + + COUNT ( * )
----
-4627

query II rowsort
SELECT 49 * ( + - 32 ) AS col2, 16 AS col0
----
-1568
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT 60 * + 60 * + 59 + - - COUNT( * ) col2
----
212401

skipif mysql # not compatible
query I rowsort label-1897
SELECT 60 * + 60 * + 59 + - - COUNT ( * ) col2
----
212401

query I rowsort
SELECT DISTINCT + 88 - 40
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT DISTINCT + 15 DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT + 15 / - 75 AS col1
----
0

query I rowsort
SELECT ALL 40 * + + 55 AS col1
----
2200

query II rowsort
SELECT 64 * NULLIF ( - - 45, - 50 * + - 13 ) AS col1, + 97 * + - 8 col1
----
2880
-776

query I rowsort
SELECT - 87 * - ( + 87 ) * + + 79 + + - 48 * + 57 col1
----
595215

query I rowsort
SELECT 3 * - 59 AS col1
----
-177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1904
SELECT COUNT( 32 ) DIV - - COUNT( DISTINCT 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1904
SELECT COUNT ( 32 ) / - - COUNT ( DISTINCT 49 ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1906
SELECT DISTINCT - 44 * - MIN( + 85 ) AS col2, - 55
----
3740
-55

skipif mysql # not compatible
query II rowsort label-1906
SELECT DISTINCT - 44 * - MIN ( + 85 ) AS col2, - 55
----
3740
-55

query I rowsort
SELECT 93 * + 39 AS col0
----
3627

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

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

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

skipif mysql # not compatible
query I rowsort label-1909
SELECT ( MIN ( + - 63 ) )
----
-63

query II rowsort
SELECT DISTINCT + 32 + + 56 * 17 AS col2, 96 + + 69 + - 61
----
984
104

query I rowsort
SELECT - - 11 col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1912
SELECT ALL - CASE - 41 WHEN + + CAST( NULL AS SIGNED ) THEN 88 END + 5 / - 98 * 30 - + 86 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL - CASE - 41 WHEN + + CAST ( NULL AS INTEGER ) THEN 88 END + 5 / - 98 * 30 - + 86 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1913
SELECT CAST( 23 AS SIGNED ) + - - 43 * + MAX( ALL + - 25 )
----
-1052

skipif mysql # not compatible
query I rowsort label-1913
SELECT CAST ( 23 AS INTEGER ) + - - 43 * + MAX ( ALL + - 25 )
----
-1052

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT ALL 87 + + - 47 - - 18 * + 10 * + 32 - + 30 + - 27 - + + ( COALESCE ( - 97, - + COUNT( * ), + COUNT( DISTINCT + 55 ) ) ) AS col2
----
5840

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL 87 + + - 47 - - 18 * + 10 * + 32 - + 30 + - 27 - + + ( COALESCE ( - 97, - + COUNT ( * ), + COUNT ( DISTINCT + 55 ) ) ) AS col2
----
5840

query I rowsort
SELECT ALL + 38 + - 86
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1916
SELECT DISTINCT + 80 + 43 + - 8 DIV + 61 * ( + - ( - 33 ) ) * 78 * 51 + 4 AS col2
----
127

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT + 80 + 43 + - 8 / + 61 * ( + - ( - 33 ) ) * 78 * 51 + 4 AS col2
----
127

query I rowsort
SELECT ALL + 58 + + - 93 + - + 58
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT 83 + + - 5 - + SUM( - 35 ) + + 66 * - - 24
----
1697

skipif mysql # not compatible
query I rowsort label-1918
SELECT 83 + + - 5 - + SUM ( - 35 ) + + 66 * - - 24
----
1697

query I rowsort
SELECT ALL 54 * 88 AS col1
----
4752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1920
SELECT COUNT( * ) + + COUNT( * ) DIV - 29 + + 79
----
80

skipif mysql # not compatible
query I rowsort label-1920
SELECT COUNT ( * ) + + COUNT ( * ) / - 29 + + 79
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT DISTINCT 72 * - CAST( 6 AS SIGNED ) + - 23
----
-455

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT 72 * - CAST ( 6 AS INTEGER ) + - 23
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT + + MAX( ALL - 14 ) + + - 25 * + 6
----
-164

skipif mysql # not compatible
query I rowsort label-1922
SELECT + + MAX ( ALL - 14 ) + + - 25 * + 6
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT ALL CASE WHEN NOT NULL BETWEEN - 94 AND + + COUNT( * ) THEN + 24 + - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL CASE WHEN NOT NULL BETWEEN - 94 AND + + COUNT ( * ) THEN + 24 + - 50 END
----
NULL

query II rowsort
SELECT - - 11 - 75 AS col0, + 69 col2
----
-64
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1925
SELECT - + NULLIF ( CAST( + COALESCE ( - 11, + + 0 ) AS SIGNED ), + 11 ) - - 40 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-1925
SELECT - + NULLIF ( CAST ( + COALESCE ( - 11, + + 0 ) AS INTEGER ), + 11 ) - - 40 AS col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT ALL + 1 DIV 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL + 1 / 42 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1928
SELECT - ( - 50 ) * + 30 AS col0, ( MAX( 58 ) )
----
1500
58

skipif mysql # not compatible
query II rowsort label-1928
SELECT - ( - 50 ) * + 30 AS col0, ( MAX ( 58 ) )
----
1500
58

query I rowsort
SELECT DISTINCT - 35 * + - 23 - + 47 * 2
----
711

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1930
SELECT ALL - 29 * NULLIF ( - - NULLIF ( + 61, - - 35 * - CAST( + 89 AS SIGNED ) / + ( + 48 ) + + - ( - - 26 ) + ( + 41 ) + - - NULLIF ( - 57, - - 67 ) ), + 61 + CAST( 17 AS SIGNED ) ) AS col2, ( 94 ) col0
----
-1769
94

skipif mysql # not compatible
query II rowsort label-1930
SELECT ALL - 29 * NULLIF ( - - NULLIF ( + 61, - - 35 * - CAST ( + 89 AS INTEGER ) / + ( + 48 ) + + - ( - - 26 ) + ( + 41 ) + - - NULLIF ( - 57, - - 67 ) ), + 61 + CAST ( 17 AS INTEGER ) ) AS col2, ( 94 ) col0
----
-1769
94

query II rowsort
SELECT + 35 AS col1, - 14
----
35
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT ALL 70 DIV - 85 col2
----
0

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL 70 / - 85 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT MAX( 75 ) * 69 + + 88 + - - 44 * - 10 AS col2
----
4823

skipif mysql # not compatible
query I rowsort label-1933
SELECT MAX ( 75 ) * 69 + + 88 + - - 44 * - 10 AS col2
----
4823

query I rowsort
SELECT ALL - 29 * + ( COALESCE ( 42, - 81 ) )
----
-1218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1935
SELECT COUNT( * ) * + 66 / + + 42 + ( + 10 ) * COUNT( * ) + - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT COUNT ( * ) * + 66 / + + 42 + ( + 10 ) * COUNT ( * ) + - + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT NULLIF ( 2, + - 0 * - 94 * - 23 + + 12 + - - 4 + - 44 ) AS col2
----
2

query I rowsort
SELECT NULLIF ( - - 7, + - 33 + - + NULLIF ( 36, + 5 ) * + 81 * + 77 ) AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1938
SELECT CASE - - 81 WHEN + - CAST( NULL AS SIGNED ) THEN - SUM( - + 75 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT CASE - - 81 WHEN + - CAST ( NULL AS INTEGER ) THEN - SUM ( - + 75 ) END col0
----
NULL

query II rowsort
SELECT DISTINCT + 25, 8 AS col0
----
25
8

query I rowsort
SELECT DISTINCT 7 * - - 16 + - ( 70 ) AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1941
SELECT ALL + CAST( NULL AS DECIMAL ) * - COUNT( * ) + 62 + + 90 * - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + CAST ( NULL AS REAL ) * - COUNT ( * ) + 62 + + 90 * - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 45 + 92 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT - + 97 * - 44 * + ( + 4 ) * + COALESCE ( + + 19, - - COUNT( * ) * + ( COUNT( * ) ), + 81 * + 1 ) * COUNT( * ) * - 44 * + 69 + - 76 AS col2
----
-984781324

skipif mysql # not compatible
query I rowsort label-1943
SELECT - + 97 * - 44 * + ( + 4 ) * + COALESCE ( + + 19, - - COUNT ( * ) * + ( COUNT ( * ) ), + 81 * + 1 ) * COUNT ( * ) * - 44 * + 69 + - 76 AS col2
----
-984781324

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT + COUNT( ALL 52 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1944
SELECT + COUNT ( ALL 52 ) AS col2
----
1

query I rowsort
SELECT ALL - - 60 * + - 91 AS col2
----
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT + + COUNT( 85 ) + + COALESCE ( + + 82, - 34 + - 77, 62 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1946
SELECT + + COUNT ( 85 ) + + COALESCE ( + + 82, - 34 + - 77, 62 ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL - SUM( DISTINCT - ( - 77 ) ) + - + 89
----
-166

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL - SUM ( DISTINCT - ( - 77 ) ) + - + 89
----
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1948
SELECT + - CAST( NULL AS SIGNED ) + + ( 60 ) + + 62 / CAST( - - COUNT( * ) AS SIGNED ) * - + CAST( + + 32 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT + - CAST ( NULL AS INTEGER ) + + ( 60 ) + + 62 / CAST ( - - COUNT ( * ) AS INTEGER ) * - + CAST ( + + 32 AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 1 AS col2, 17 * 13
----
1
221

onlyif mysql # aggregate syntax: 
query II rowsort label-1950
SELECT - 62 AS col0, - ( - MAX( DISTINCT + 6 ) ) * - 3 - + ( + 35 )
----
-62
-53

skipif mysql # not compatible
query II rowsort label-1950
SELECT - 62 AS col0, - ( - MAX ( DISTINCT + 6 ) ) * - 3 - + ( + 35 )
----
-62
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-1951
SELECT + 18 + - 20 * + 87 AS col1, - MIN( - + 25 ) * - - COUNT( 44 ) - - + 6 + 6 * - COUNT( DISTINCT + 6 )
----
-1722
25

skipif mysql # not compatible
query II rowsort label-1951
SELECT + 18 + - 20 * + 87 AS col1, - MIN ( - + 25 ) * - - COUNT ( 44 ) - - + 6 + 6 * - COUNT ( DISTINCT + 6 )
----
-1722
25

query I rowsort
SELECT + 31 + 89 AS col0
----
120

query I rowsort
SELECT DISTINCT + 2 * 17
----
34

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

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT MIN ( 40 )
----
40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT ALL CAST( + COALESCE ( + 80, - + 1 ) AS SIGNED ) * 82
----
6560

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL CAST ( + COALESCE ( + 80, - + 1 ) AS INTEGER ) * 82
----
6560

onlyif mysql # aggregate syntax: 
query II rowsort label-1957
SELECT DISTINCT MAX( + 82 ) AS col1, 51 col1
----
82
51

skipif mysql # not compatible
query II rowsort label-1957
SELECT DISTINCT MAX ( + 82 ) AS col1, 51 col1
----
82
51

query I rowsort
SELECT DISTINCT 29 * 56 AS col0
----
1624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1959
SELECT - CAST( - 50 AS SIGNED ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1959
SELECT - CAST ( - 50 AS INTEGER ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL CASE + 92 WHEN NULLIF ( - SUM( DISTINCT - 82 ), + 6 ) / + - 97 THEN - 51 + - ( COALESCE ( 2, + 33 ) ) * + ( 75 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL CASE + 92 WHEN NULLIF ( - SUM ( DISTINCT - 82 ), + 6 ) / + - 97 THEN - 51 + - ( COALESCE ( 2, + 33 ) ) * + ( 75 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1961
SELECT + CAST( 36 AS SIGNED ) * - ( 3 ) DIV COUNT( * ) AS col2
----
-108

skipif mysql # not compatible
query I rowsort label-1961
SELECT + CAST ( 36 AS INTEGER ) * - ( 3 ) / COUNT ( * ) AS col2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT 6 * + - COUNT( * ) - + 41 + 26 + - - SUM( ALL 80 ) * - COUNT( * ) * - 55 * - NULLIF ( - ( + + 42 ), + COUNT( * ) ) * - 67 AS col0
----
-12381621

skipif mysql # not compatible
query I rowsort label-1962
SELECT 6 * + - COUNT ( * ) - + 41 + 26 + - - SUM ( ALL 80 ) * - COUNT ( * ) * - 55 * - NULLIF ( - ( + + 42 ), + COUNT ( * ) ) * - 67 AS col0
----
-12381621

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1963
SELECT + 98 DIV - 55 - - - 28 + 67 * - COUNT( * ) * 25 * + 79 AS col2
----
-132354

skipif mysql # not compatible
query I rowsort label-1963
SELECT + 98 / - 55 - - - 28 + 67 * - COUNT ( * ) * 25 * + 79 AS col2
----
-132354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT ALL + NULLIF ( - - CAST( - ( + COUNT( * ) ) AS SIGNED ), + - 70 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL + NULLIF ( - - CAST ( - ( + COUNT ( * ) ) AS INTEGER ), + - 70 ) AS col0
----
-1

query I rowsort
SELECT - 28 + - + 30 * 52 AS col2
----
-1588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1966
SELECT ALL - ( + 53 ) DIV - - 5 + + - 24 + - - 0 + - + COALESCE ( + 54, - 26 ) + + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL - ( + 53 ) / - - 5 + + - 24 + - - 0 + - + COALESCE ( + 54, - 26 ) + + COUNT ( * )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1967
SELECT CAST( + + 53 AS SIGNED ) col2
----
53

skipif mysql # not compatible
query I rowsort label-1967
SELECT CAST ( + + 53 AS INTEGER ) col2
----
53

query I rowsort
SELECT - 92 * + 55
----
-5060

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT DISTINCT 34 DIV 80 * - - 78 + + 74 DIV 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT 34 / 80 * - - 78 + + 74 / 61 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT ALL CAST( NULL AS SIGNED ) / 72 + + + NULLIF ( - 54, + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL CAST ( NULL AS INTEGER ) / 72 + + + NULLIF ( - 54, + 87 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1971
SELECT ALL + 99 DIV - 46 + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL + 99 / - 46 + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - ( + 99 ) * - - 97 + - 63
----
-9666

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1973
SELECT ( CASE + 67 WHEN + 63 * - + 56 * 36 THEN NULL ELSE + - CAST( NULL AS SIGNED ) + 53 * - 47 END ), 26 col0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-1973
SELECT ( CASE + 67 WHEN + 63 * - + 56 * 36 THEN NULL ELSE + - CAST ( NULL AS INTEGER ) + 53 * - 47 END ), 26 col0
----
NULL
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1974
SELECT + COUNT( * ) * - 15, 5 - + 33 * 47 AS col2
----
-15
-1546

skipif mysql # not compatible
query II rowsort label-1974
SELECT + COUNT ( * ) * - 15, 5 - + 33 * 47 AS col2
----
-15
-1546

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT - ( + - COUNT( DISTINCT - 42 ) ) * MAX( - 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-1975
SELECT - ( + - COUNT ( DISTINCT - 42 ) ) * MAX ( - 58 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT - + MAX( ALL - 73 ) * - - 33 AS col0
----
2409

skipif mysql # not compatible
query I rowsort label-1976
SELECT - + MAX ( ALL - 73 ) * - - 33 AS col0
----
2409

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

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

query I rowsort
SELECT ALL + 30 - + 38 AS col1
----
-8

query I rowsort
SELECT 0 + 77 + - 23
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - 32 + + + 13 * + MAX( ALL - ( - 22 ) ) + 58 + 58
----
370

skipif mysql # not compatible
query I rowsort label-1980
SELECT - 32 + + + 13 * + MAX ( ALL - ( - 22 ) ) + 58 + 58
----
370

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT + COUNT( * ) * - + 79 + + 53 * + 84 + ( - 2 ) - COUNT( * ) AS col2, - 2
----
4370
-2

skipif mysql # not compatible
query II rowsort label-1981
SELECT + COUNT ( * ) * - + 79 + + 53 * + 84 + ( - 2 ) - COUNT ( * ) AS col2, - 2
----
4370
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT - MAX( - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-1983
SELECT - MAX ( - 68 )
----
68

query I rowsort
SELECT ALL - - 53 * - 65
----
-3445

onlyif mysql # DIV for integer division: 
query II rowsort label-1985
SELECT ALL + - 91 * + 93 AS col1, - 89 DIV - ( + 65 ) + + 61
----
-8463
62

skipif mysql # not compatible
query II rowsort label-1985
SELECT ALL + - 91 * + 93 AS col1, - 89 / - ( + 65 ) + + 61
----
-8463
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + 82 + 98 + - MAX( 41 )
----
139

skipif mysql # not compatible
query I rowsort label-1986
SELECT + 82 + 98 + - MAX ( 41 )
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-1987
SELECT 78 + + - 21 + 8 DIV + 98 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1987
SELECT 78 + + - 21 + 8 / + 98 AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1988
SELECT 84 DIV - COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-1988
SELECT 84 / - COUNT ( * ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT MAX( ALL 19 ) + - 21
----
-2

skipif mysql # not compatible
query I rowsort label-1989
SELECT MAX ( ALL 19 ) + - 21
----
-2

query I rowsort
SELECT 68 + - 51 col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1991
SELECT COUNT( * ) - CAST( - + COUNT( * ) AS SIGNED ) - - 28 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1991
SELECT COUNT ( * ) - CAST ( - + COUNT ( * ) AS INTEGER ) - - 28 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT DISTINCT COUNT( + 78 ) + - 72 * 91 AS col0
----
-6551

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT COUNT ( + 78 ) + - 72 * 91 AS col0
----
-6551

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1993
SELECT CASE COUNT( ALL + ( - 47 ) ) WHEN + 2 THEN NULL WHEN 9 + - COUNT( * ) THEN NULL WHEN + 80 * + COALESCE ( - 23, + ( COALESCE ( - + SUM( + 35 ), 43 * - 45 ) ), - 77 ) THEN - + 74 - 98 END + - - 70 AS col2, + ( COUNT( + - 60 ) ) * + COUNT( * ) - COUNT( * ) * - 19 DIV - 61 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1993
SELECT CASE COUNT ( ALL + ( - 47 ) ) WHEN + 2 THEN NULL WHEN 9 + - COUNT ( * ) THEN NULL WHEN + 80 * + COALESCE ( - 23, + ( COALESCE ( - + SUM ( + 35 ), 43 * - 45 ) ), - 77 ) THEN - + 74 - 98 END + - - 70 AS col2, + ( COUNT ( + - 60 ) ) * + COUNT ( * ) - COUNT ( * ) * - 19 / - 61 AS col2
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1994
SELECT CAST( NULL AS SIGNED ) + ( MIN( - - 42 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT CAST ( NULL AS INTEGER ) + ( MIN ( - - 42 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1995
SELECT DISTINCT 40 + + 94 * + + 29 col2, - 76 * SUM( - 46 ) AS col2
----
2766
3496

skipif mysql # not compatible
query II rowsort label-1995
SELECT DISTINCT 40 + + 94 * + + 29 col2, - 76 * SUM ( - 46 ) AS col2
----
2766
3496

query I rowsort
SELECT 3 + + 97
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT ALL COUNT( * ) + 27 - + NULLIF ( - MAX( ALL - + ( - 77 ) ), - 20 ) + - 74
----
31

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL COUNT ( * ) + 27 - + NULLIF ( - MAX ( ALL - + ( - 77 ) ), - 20 ) + - 74
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1998
SELECT + COUNT( * ) * + + 71 + + CASE + COALESCE ( 27, - 46 + + COALESCE ( + NULLIF ( + - 22, COALESCE ( + ( 99 ), + 71 ) ), + CAST( - 55 AS DECIMAL ), 20 ) + + 36 ) WHEN + + 40 THEN - COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1998
SELECT + COUNT ( * ) * + + 71 + + CASE + COALESCE ( 27, - 46 + + COALESCE ( + NULLIF ( + - 22, COALESCE ( + ( 99 ), + 71 ) ), + CAST ( - 55 AS REAL ), 20 ) + + 36 ) WHEN + + 40 THEN - COUNT ( * ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT COUNT( * ) / - - 84 / CASE + - 76 WHEN - 61 * - 93 THEN - 56 * + 55 - - 84 + + 22 * - - 68 ELSE NULL END + - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT COUNT ( * ) / - - 84 / CASE + - 76 WHEN - 61 * - 93 THEN - 56 * + 55 - - 84 + + 22 * - - 68 ELSE NULL END + - 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2000
SELECT 34 DIV + NULLIF ( + - COUNT( * ), - 54 )
----
-34

skipif mysql # not compatible
query I rowsort label-2000
SELECT 34 / + NULLIF ( + - COUNT ( * ), - 54 )
----
-34

query I rowsort
SELECT NULLIF ( 44, - 47 ) + 61 - + 14 * 29 * + 56 - - 21
----
-22610

query I rowsort
SELECT DISTINCT - - 79 col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2003
SELECT DISTINCT + 92 DIV - COUNT( * ) + - + COALESCE ( 40, - ( 0 ) + - 48 )
----
-132

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT + 92 / - COUNT ( * ) + - + COALESCE ( 40, - ( 0 ) + - 48 )
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2004
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) * NULLIF ( - 74, 43 ) DIV 33 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) * NULLIF ( - 74, 43 ) / 33 AS col2
----
2

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

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

query I rowsort
SELECT ALL COALESCE ( ( - 8 ), + 65 * - + 67, + + 61 ) * - 23 * + 77 AS col1
----
14168

query I rowsort
SELECT - 64 + 24
----
-40

query I rowsort
SELECT + 73 + - 97 col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2009
SELECT CAST( - 78 AS SIGNED )
----
-78

skipif mysql # not compatible
query I rowsort label-2009
SELECT CAST ( - 78 AS INTEGER )
----
-78

query I rowsort
SELECT 24 * - 72 + - - 42 AS col1
----
-1686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2011
SELECT + NULLIF ( + ( - 75 ), - + COALESCE ( + ( - 54 ), 6 * 47 - + + CAST( NULL AS SIGNED ) + CASE - 55 WHEN + 67 / + 23 + + COUNT( * ) * AVG ( + 26 ) * + + ( + 78 ) THEN NULL WHEN 5 THEN - 54 END, - NULLIF ( 48, + + 41 * + - 8 * + 30 + + - 9 ) + - + 25 ) + COUNT( * ) * + 69 * - CASE NULLIF ( + 66, - 67 * COUNT( * ) + ( 55 ) * 88 ) WHEN + 29 * 85 + + 48 * 58 THEN 82 ELSE NULL END - + COUNT( * ) ) * - SUM( DISTINCT 8 )
----
600

skipif mysql # not compatible
query I rowsort label-2011
SELECT + NULLIF ( + ( - 75 ), - + COALESCE ( + ( - 54 ), 6 * 47 - + + CAST ( NULL AS INTEGER ) + CASE - 55 WHEN + 67 / + 23 + + COUNT ( * ) * AVG ( + 26 ) * + + ( + 78 ) THEN NULL WHEN 5 THEN - 54 END, - NULLIF ( 48, + + 41 * + - 8 * + 30 + + - 9 ) + - + 25 ) + COUNT ( * ) * + 69 * - CASE NULLIF ( + 66, - 67 * COUNT ( * ) + ( 55 ) * 88 ) WHEN + 29 * 85 + + 48 * 58 THEN 82 ELSE NULL END - + COUNT ( * ) ) * - SUM ( DISTINCT 8 )
----
600

query I rowsort
SELECT DISTINCT 9 * + 88 AS col2
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT ALL - MAX( DISTINCT + 72 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL - MAX ( DISTINCT + 72 ) AS col1
----
-72

query I rowsort
SELECT DISTINCT - 41 + 38 col0
----
-3

query II rowsort
SELECT - 28 AS col1, + 33 * - - 0 AS col1
----
-28
0

query II rowsort
SELECT 42, 63 AS col0
----
42
63

query I rowsort
SELECT ALL - 70 * - - 9 AS col2
----
-630

query I rowsort
SELECT ALL + 16 + + 88
----
104

query II rowsort
SELECT 50 AS col1, - 20 * 23 * 97
----
50
-44620

query II rowsort
SELECT - 86 AS col2, 20 col1
----
-86
20

query I rowsort
SELECT 77 * - 27 * + 15
----
-31185

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT 13 + - + 32 DIV 34
----
13

skipif mysql # not compatible
query I rowsort label-2022
SELECT 13 + - + 32 / 34
----
13

query I rowsort
SELECT ALL - 71 * 73
----
-5183

query I rowsort
SELECT ALL + 7 * 77
----
539

query I rowsort
SELECT ALL - 80 + + - ( - 13 )
----
-67

query II rowsort
SELECT 22, - 33 AS col1
----
22
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT 89 * - - CASE CAST( NULL AS SIGNED ) WHEN 26 / + - CAST( NULL AS SIGNED ) + + 3 + + 95 THEN 39 * 84 * - + SUM( + 6 ) WHEN - 13 * - COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT 89 * - - CASE CAST ( NULL AS INTEGER ) WHEN 26 / + - CAST ( NULL AS INTEGER ) + + 3 + + 95 THEN 39 * 84 * - + SUM ( + 6 ) WHEN - 13 * - COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 45 * 18 - - - 60 AS col0
----
750

query I rowsort
SELECT COALESCE ( + - 42, - + 58, + NULLIF ( - 74, + 57 - - - 64 * + ( - 72 ) ) ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT NULLIF ( 66, + 62 + + ( + 67 ) ) + + COALESCE ( + MIN( - 51 ), 5 )
----
15

skipif mysql # not compatible
query I rowsort label-2030
SELECT NULLIF ( 66, + 62 + + ( + 67 ) ) + + COALESCE ( + MIN ( - 51 ), 5 )
----
15

query I rowsort
SELECT 44 + + 24 AS col2
----
68

query I rowsort
SELECT ALL - ( - 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2033
SELECT ALL - ( + COUNT( * ) ) * + 87 + + COUNT( * ) DIV 5 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL - ( + COUNT ( * ) ) * + 87 + + COUNT ( * ) / 5 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT DISTINCT - + CASE - - 80 WHEN + - 82 + + 27 THEN + - 13 * + COUNT( * ) WHEN + + 80 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT - + CASE - - 80 WHEN + - 82 + + 27 THEN + - 13 * + COUNT ( * ) WHEN + + 80 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2035
SELECT ALL + 63 * - + 22 DIV - 11
----
126

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL + 63 * - + 22 / - 11
----
126

query I rowsort
SELECT - 78 * + 26 AS col2
----
-2028

query I rowsort
SELECT + + 19 * + 56 + - 16 * - 69
----
2168

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT + COUNT( ALL - 99 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2038
SELECT + COUNT ( ALL - 99 ) AS col0
----
1

query II rowsort
SELECT DISTINCT + 24, 18 AS col0
----
24
18

query II rowsort
SELECT ALL + 39, - 20 AS col2
----
39
-20

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

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

query I rowsort
SELECT + + 59 * - 83 * - + 97 AS col1
----
475009

onlyif mysql # DIV for integer division: 
query I rowsort label-2043
SELECT ALL 54 DIV ( - + 27 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL 54 / ( - + 27 ) AS col0
----
-2

query II rowsort
SELECT DISTINCT + 4 AS col2, 62 + + 45 * + + ( 26 ) + 89
----
4
1321

onlyif mysql # aggregate syntax: 
query II rowsort label-2045
SELECT - 82 * - 51 - + COUNT( * ) * - 29 AS col2, - 37
----
4211
-37

skipif mysql # not compatible
query II rowsort label-2045
SELECT - 82 * - 51 - + COUNT ( * ) * - 29 AS col2, - 37
----
4211
-37

query I rowsort
SELECT DISTINCT + CASE - - 21 WHEN + 85 * + - 93 THEN NULL WHEN 99 THEN + 93 + 77 + + - 29 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2047
SELECT DISTINCT - 45 + + - CAST( NULL AS SIGNED ) col0, 89 AS col1
----
NULL
89

skipif mysql # not compatible
query II rowsort label-2047
SELECT DISTINCT - 45 + + - CAST ( NULL AS INTEGER ) col0, 89 AS col1
----
NULL
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2048
SELECT ALL 20 DIV + 18 - 19 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL 20 / + 18 - 19 AS col2
----
-18

query I rowsort
SELECT DISTINCT + + ( + 13 ) + + 1 AS col2
----
14

query I rowsort
SELECT DISTINCT COALESCE ( 95, 98 * - - ( 73 ) - - + 99 * + 55 + - 74 + - 14 + 78 * + 66 ) * + 10
----
950

query I rowsort
SELECT + - 32 + + - ( 60 ) col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT - - ( - + COUNT( * ) ) - + - 29
----
28

skipif mysql # not compatible
query I rowsort label-2052
SELECT - - ( - + COUNT ( * ) ) - + - 29
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT ALL 0 + + MAX( DISTINCT + 60 ) * + 56
----
3360

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL 0 + + MAX ( DISTINCT + 60 ) * + 56
----
3360

query I rowsort
SELECT + 6 + - 5 * 46 + 93 AS col1
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2055
SELECT + ( - 65 ) + COALESCE ( + + CAST( NULL AS SIGNED ), - - COUNT( * ) - 3 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-2055
SELECT + ( - 65 ) + COALESCE ( + + CAST ( NULL AS INTEGER ), - - COUNT ( * ) - 3 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL + NULLIF ( + 4, - COUNT( * ) + - + 24 ) + + ( + 60 ) + - - 81 + 75 * + 59 AS col2
----
4570

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL + NULLIF ( + 4, - COUNT ( * ) + - + 24 ) + + ( + 60 ) + - - 81 + 75 * + 59 AS col2
----
4570

query I rowsort
SELECT ALL 64 + - + 23
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT DISTINCT 99 + + COUNT( * ) + + + COUNT( * ) * + 93 AS col0
----
193

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT 99 + + COUNT ( * ) + + + COUNT ( * ) * + 93 AS col0
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT DISTINCT - 21 * COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT - 21 * COUNT ( * )
----
-21

query I rowsort
SELECT - 28 + - + 34 * - - 86 AS col2
----
-2952

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT ALL COALESCE ( - - 89, + 76 * - 86 + MAX( DISTINCT - 56 ) )
----
89

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL COALESCE ( - - 89, + 76 * - 86 + MAX ( DISTINCT - 56 ) )
----
89

query I rowsort
SELECT DISTINCT + ( + - 81 ) * + + 78 AS col1
----
-6318

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT - 10 * - MIN( DISTINCT - + 14 ) * ( - CASE - + 15 WHEN + ( - + 0 ) THEN + 45 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT - 10 * - MIN ( DISTINCT - + 14 ) * ( - CASE - + 15 WHEN + ( - + 0 ) THEN + 45 END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 4 * ( 56 ) AS col2
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ALL - ( - ( + 88 ) ) - - MIN( DISTINCT + + 36 ) * + 46 * - COUNT( - - 44 ) AS col1
----
-1568

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL - ( - ( + 88 ) ) - - MIN ( DISTINCT + + 36 ) * + 46 * - COUNT ( - - 44 ) AS col1
----
-1568

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

skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT + COUNT ( * ) * - 94 AS col0
----
-94

onlyif mysql # DIV for integer division: 
query II rowsort label-2068
SELECT - 62 DIV - 48 col2, 63 DIV - 23
----
1
-2

skipif mysql # not compatible
query II rowsort label-2068
SELECT - 62 / - 48 col2, 63 / - 23
----
1
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2069
SELECT DISTINCT - 59 * 39 * NULLIF ( - ( + CAST( NULL AS SIGNED ) ), 89 * + - 87 ) col1, 62 DIV 15 AS col0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-2069
SELECT DISTINCT - 59 * 39 * NULLIF ( - ( + CAST ( NULL AS INTEGER ) ), 89 * + - 87 ) col1, 62 / 15 AS col0
----
NULL
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2070
SELECT + - 48 / - NULLIF ( - CAST( NULL AS SIGNED ), - 21 * - + 82 + + + 9 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT + - 48 / - NULLIF ( - CAST ( NULL AS INTEGER ), - 21 * - + 82 + + + 9 ) AS col2
----
NULL

query II rowsort
SELECT ALL 43 * 77, 26 AS col1
----
3311
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2072
SELECT DISTINCT - - ( - 90 ) * COUNT( * ) + - + 8 DIV - 54 * + + ( + 2 ) + + - COUNT( * ) + - ( 83 ) + + - 93 AS col2
----
-267

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT - - ( - 90 ) * COUNT ( * ) + - + 8 / - 54 * + + ( + 2 ) + + - COUNT ( * ) + - ( 83 ) + + - 93 AS col2
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT DISTINCT - MAX( ALL + 66 ) * - + MIN( ALL 24 ) * - - ( + + ( 24 ) ) AS col2
----
38016

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT - MAX ( ALL + 66 ) * - + MIN ( ALL 24 ) * - - ( + + ( 24 ) ) AS col2
----
38016

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT ALL + 42 * MIN( DISTINCT + + 55 ) + - 28 col0
----
2282

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL + 42 * MIN ( DISTINCT + + 55 ) + - 28 col0
----
2282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT - 55 * - CAST( 1 AS SIGNED ) + - 69
----
-14

skipif mysql # not compatible
query I rowsort label-2075
SELECT - 55 * - CAST ( 1 AS INTEGER ) + - 69
----
-14

query I rowsort
SELECT ALL - 28 * - 58 + - ( - 60 )
----
1684

query I rowsort
SELECT DISTINCT 96 * - 64 + 54 AS col1
----
-6090

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL - NULLIF ( + + 95, + - 52 + - + 1 + + COUNT( * ) * + 4 ) * - - 2 + + - 44 AS col1
----
-234

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL - NULLIF ( + + 95, + - 52 + - + 1 + + COUNT ( * ) * + 4 ) * - - 2 + + - 44 AS col1
----
-234

query I rowsort
SELECT + 71 + + 89 AS col2
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL MAX( DISTINCT + 57 ) * - 43 + + 74 * - 85 + 22 AS col1
----
-8719

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL MAX ( DISTINCT + 57 ) * - 43 + + 74 * - 85 + 22 AS col1
----
-8719

query I rowsort
SELECT 16 * + 38 + + 39 - 3 * - 66 + - - 44
----
889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2082
SELECT ALL CAST( NULL AS SIGNED ) * - + 39 / + 3 + + 66 / + - COUNT( * ) + - + 48 * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL CAST ( NULL AS INTEGER ) * - + 39 / + 3 + + 66 / + - COUNT ( * ) + - + 48 * - 34
----
NULL

query II rowsort
SELECT ALL 80, + 72 AS col1
----
80
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT + NULLIF ( - + 25, + CASE - 49 WHEN - 67 * + 79 - + COUNT( * ) THEN + 51 + - COUNT( + 8 ) / + + 98 WHEN 6 THEN 42 - + 50 + - - 64 * + + SUM( ALL + - 27 ) - + + ( 37 ) WHEN + 36 THEN - + 34 END ) * - 79
----
1975

skipif mysql # not compatible
query I rowsort label-2084
SELECT + NULLIF ( - + 25, + CASE - 49 WHEN - 67 * + 79 - + COUNT ( * ) THEN + 51 + - COUNT ( + 8 ) / + + 98 WHEN 6 THEN 42 - + 50 + - - 64 * + + SUM ( ALL + - 27 ) - + + ( 37 ) WHEN + 36 THEN - + 34 END ) * - 79
----
1975

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2086
SELECT ALL COUNT( * ) col2, - COUNT( * ) * 86 col0
----
1
-86

skipif mysql # not compatible
query II rowsort label-2086
SELECT ALL COUNT ( * ) col2, - COUNT ( * ) * 86 col0
----
1
-86

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

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

query II rowsort
SELECT - 57, - 37 AS col0
----
-57
-37

query I rowsort
SELECT ALL + ( 53 ) - + 25 * + 81 AS col1
----
-1972

query I rowsort
SELECT + 86 * - - 60
----
5160

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

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

query II rowsort
SELECT ALL 69 AS col2, - 87 AS col1
----
69
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT 43 * - + NULLIF ( - 5, AVG ( - 55 ) * + 7 - CAST( 87 AS SIGNED ) ) AS col2
----
215

skipif mysql # not compatible
query I rowsort label-2093
SELECT 43 * - + NULLIF ( - 5, AVG ( - 55 ) * + 7 - CAST ( 87 AS INTEGER ) ) AS col2
----
215

onlyif mysql # aggregate syntax: 
query II rowsort label-2094
SELECT - 69 AS col0, COUNT( * ) * + 17 - - 92 AS col0
----
-69
109

skipif mysql # not compatible
query II rowsort label-2094
SELECT - 69 AS col0, COUNT ( * ) * + 17 - - 92 AS col0
----
-69
109

query II rowsort
SELECT ALL 81, 82 * + 0 * + + 64 * - - 52 AS col2
----
81
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2096
SELECT DISTINCT + - 36 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT + - 36 / - 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT + 60 + - COUNT( * ) + + 58 * 84
----
4931

skipif mysql # not compatible
query I rowsort label-2097
SELECT + 60 + - COUNT ( * ) + + 58 * 84
----
4931

query II rowsort
SELECT 20 * + - 1 * 41 AS col1, 31
----
-820
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2099
SELECT 64 + - - 27 + - + CASE - 29 WHEN + CAST( + 87 AS SIGNED ) THEN - 10 / + 59 + + COUNT( * ) WHEN ( - MAX( ALL 39 ) ) THEN + 47 * - - NULLIF ( ( - - 8 ), - - 61 * 70 ) * + - 11 + + + 81 + 19 END + + 97 * 42 + + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT 64 + - - 27 + - + CASE - 29 WHEN + CAST ( + 87 AS INTEGER ) THEN - 10 / + 59 + + COUNT ( * ) WHEN ( - MAX ( ALL 39 ) ) THEN + 47 * - - NULLIF ( ( - - 8 ), - - 61 * 70 ) * + - 11 + + + 81 + 19 END + + 97 * 42 + + 88 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL + 48 * + 93 * - 89 + MIN( + 74 )
----
-397222

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL + 48 * + 93 * - 89 + MIN ( + 74 )
----
-397222

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT DISTINCT - + CASE + COUNT( * ) WHEN + - 11 THEN - + 6 WHEN - 29 * 88 + - + 91 + - NULLIF ( + + 30, + - 49 ) THEN + 41 * 20 END + + + 27 + - 16 * 98 * + + COUNT( * ) * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT - + CASE + COUNT ( * ) WHEN + - 11 THEN - + 6 WHEN - 29 * 88 + - + 91 + - NULLIF ( + + 30, + - 49 ) THEN + 41 * 20 END + + + 27 + - 16 * 98 * + + COUNT ( * ) * + 11
----
NULL

query I rowsort
SELECT ALL - 56 + - 79
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2104
SELECT - NULLIF ( + CAST( - 14 AS SIGNED ), + 90 - 33 + - 30 * + 48 + 73 )
----
14

skipif mysql # not compatible
query I rowsort label-2104
SELECT - NULLIF ( + CAST ( - 14 AS INTEGER ), + 90 - 33 + - 30 * + 48 + 73 )
----
14

query I rowsort
SELECT ALL + 96 + + 43 + + + 81 AS col0
----
220

query I rowsort
SELECT 69 * + 61
----
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT DISTINCT + COUNT( - - 92 ) + - 57 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT + COUNT ( - - 92 ) + - 57 AS col1
----
-56

query I rowsort
SELECT + 82 * 5
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT DISTINCT COUNT( * ) * ( - ( + ( - 8 ) ) ) * + 52
----
416

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT COUNT ( * ) * ( - ( + ( - 8 ) ) ) * + 52
----
416

query I rowsort
SELECT DISTINCT 6 - + 79 AS col1
----
-73

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2112
SELECT COUNT( * ) * ( 47 ) + - 75, - 85 * - 27 AS col1
----
-28
2295

skipif mysql # not compatible
query II rowsort label-2112
SELECT COUNT ( * ) * ( 47 ) + - 75, - 85 * - 27 AS col1
----
-28
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT - 39 * COUNT( * ) - - + 35
----
-4

skipif mysql # not compatible
query I rowsort label-2113
SELECT - 39 * COUNT ( * ) - - + 35
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2114
SELECT 2 + + CAST( + 56 AS SIGNED ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-2114
SELECT 2 + + CAST ( + 56 AS INTEGER ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2115
SELECT COUNT( * ) - + - NULLIF ( + CAST( 38 AS SIGNED ), + ( + 38 ) ) / + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2115
SELECT COUNT ( * ) - + - NULLIF ( + CAST ( 38 AS INTEGER ), + ( + 38 ) ) / + 34 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2116
SELECT DISTINCT 98 / - 42 * + CASE - ( - 18 ) WHEN + + 99 THEN + 69 / 32 * - COUNT( * ) * - + 16 - + 18 + + NULLIF ( CASE - - 77 WHEN - + 47 THEN + CAST( NULL AS SIGNED ) END, - 28 ) WHEN + COUNT( * ) THEN NULL ELSE NULL END * + CAST( NULL AS SIGNED ) + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT 98 / - 42 * + CASE - ( - 18 ) WHEN + + 99 THEN + 69 / 32 * - COUNT ( * ) * - + 16 - + 18 + + NULLIF ( CASE - - 77 WHEN - + 47 THEN + CAST ( NULL AS INTEGER ) END, - 28 ) WHEN + COUNT ( * ) THEN NULL ELSE NULL END * + CAST ( NULL AS INTEGER ) + 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT COUNT( * ) + 95 + + ( - - 61 ) * + 85 - + 33
----
5248

skipif mysql # not compatible
query I rowsort label-2117
SELECT COUNT ( * ) + 95 + + ( - - 61 ) * + 85 - + 33
----
5248

query I rowsort
SELECT ALL 33 * + - 91
----
-3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2119
SELECT ALL 62 / - COUNT( * ) * ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL 62 / - COUNT ( * ) * ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2120
SELECT ( - 56 ) * - + 36 - + COUNT( * ), - 32 AS col0
----
2015
-32

skipif mysql # not compatible
query II rowsort label-2120
SELECT ( - 56 ) * - + 36 - + COUNT ( * ), - 32 AS col0
----
2015
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2121
SELECT NULLIF ( + MIN( DISTINCT + 94 ), + MIN( 30 ) ) + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2121
SELECT NULLIF ( + MIN ( DISTINCT + 94 ), + MIN ( 30 ) ) + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2122
SELECT DISTINCT + 85 * - 87 + - - 46 + AVG ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT + 85 * - 87 + - - 46 + AVG ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 23 * + 74 AS col2
----
1702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2124
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 18 - + 70 / - 21 + - 25 + - 26 + - - SUM( - CAST( NULL AS SIGNED ) ) / + NULLIF ( + ( - 16 ), + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 18 - + 70 / - 21 + - 25 + - 26 + - - SUM ( - CAST ( NULL AS INTEGER ) ) / + NULLIF ( + ( - 16 ), + 66 )
----
NULL

query I rowsort
SELECT + 67 * 8 + + + 4
----
540

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

skipif mysql # not compatible
query I rowsort label-2126
SELECT - + CAST ( - - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL - 60 + + - 38 + - 49 col1
----
-147

query I rowsort
SELECT DISTINCT 59 + 5
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT - CASE + - 26 WHEN - 51 + - 22 * + 45 THEN + 14 + + - COUNT( * ) * COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT - CASE + - 26 WHEN - 51 + - 22 * + 45 THEN + 14 + + - COUNT ( * ) * COUNT ( * ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL 86 + - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL 86 + - COUNT ( * )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT 19 * - 75 + + 11 DIV + - 49
----
-1425

skipif mysql # not compatible
query I rowsort label-2131
SELECT 19 * - 75 + + 11 / + - 49
----
-1425

query I rowsort
SELECT - 87 * - - 27 * 82 - + 19 * + + 61 * 62 AS col2
----
-264476

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

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL + + 79 + 18 + CAST ( - + 55 AS INTEGER )
----
42

query II rowsort
SELECT ALL - + 17 * + 54 AS col1, 41
----
-918
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2135
SELECT ALL - + CASE - 16 WHEN + + 84 + - COUNT( * ) * - 65 THEN NULL ELSE + - 36 * - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL - + CASE - 16 WHEN + + 84 + - COUNT ( * ) * - 65 THEN NULL ELSE + - 36 * - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 95 * - + 87 + - + 72
----
-8337

query I rowsort
SELECT ALL - ( - + 83 ) * 56 + + + ( + 62 ) + 6 AS col0
----
4716

query I rowsort
SELECT 53 * 27 + - 75
----
1356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT ALL + 62 * + - CAST( + 15 AS SIGNED )
----
-930

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + 62 * + - CAST ( + 15 AS INTEGER )
----
-930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT 12 + 84 - - 85 DIV + COALESCE ( - + COUNT( * ), + 51 * COUNT( DISTINCT 49 ) * + 33, - 10, - 45 * - 99 + 89 )
----
11

skipif mysql # not compatible
query I rowsort label-2140
SELECT 12 + 84 - - 85 / + COALESCE ( - + COUNT ( * ), + 51 * COUNT ( DISTINCT 49 ) * + 33, - 10, - 45 * - 99 + 89 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL - NULLIF ( + 45, - - COUNT( DISTINCT ( 23 ) ) )
----
-45

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - NULLIF ( + 45, - - COUNT ( DISTINCT ( 23 ) ) )
----
-45

query I rowsort
SELECT 83 * - 1 col0
----
-83

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

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

query I rowsort
SELECT 22 * + 24
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT 28 + + 42 + 60 + - COUNT( * )
----
129

skipif mysql # not compatible
query I rowsort label-2145
SELECT 28 + + 42 + 60 + - COUNT ( * )
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-2146
SELECT ALL - 81 DIV + 40
----
-2

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL - 81 / + 40
----
-2

query I rowsort
SELECT ALL + 17 - + 78
----
-61

query I rowsort
SELECT 9 * 39 AS col2
----
351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2149
SELECT DISTINCT CASE CASE + - 43 WHEN COUNT( * ) THEN 11 * + 43 * + 60 + + 55 WHEN - 76 / MIN( - - COALESCE ( - 32, + 2 / + 11 ) ) + + COUNT( * ) + 64 THEN + CAST( NULL AS SIGNED ) ELSE NULL END WHEN COUNT( * ) * - 59 THEN 99 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT CASE CASE + - 43 WHEN COUNT ( * ) THEN 11 * + 43 * + 60 + + 55 WHEN - 76 / MIN ( - - COALESCE ( - 32, + 2 / + 11 ) ) + + COUNT ( * ) + 64 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END WHEN COUNT ( * ) * - 59 THEN 99 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2150
SELECT DISTINCT COALESCE ( + 42, - 0 ) AS col0, - MAX( DISTINCT 8 ) col2
----
42
-8

skipif mysql # not compatible
query II rowsort label-2150
SELECT DISTINCT COALESCE ( + 42, - 0 ) AS col0, - MAX ( DISTINCT 8 ) col2
----
42
-8

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

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL 57 * + ( - COUNT ( * ) ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT DISTINCT SUM( - 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT SUM ( - 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT DISTINCT - 0 * - - 24 * - MIN( ALL - 10 )
----
0

skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT - 0 * - - 24 * - MIN ( ALL - 10 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT DISTINCT CASE WHEN NOT COALESCE ( + + COUNT( * ), + 5 * 6 - + ( - COUNT( * ) ) - - 59 - + COUNT( * ) ) IS NULL THEN 45 END
----
45

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT CASE WHEN NOT COALESCE ( + + COUNT ( * ), + 5 * 6 - + ( - COUNT ( * ) ) - - 59 - + COUNT ( * ) ) IS NULL THEN 45 END
----
45

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2156
SELECT - 80 * + NULLIF ( + CAST( NULL AS SIGNED ), - 10 * COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2156
SELECT - 80 * + NULLIF ( + CAST ( NULL AS INTEGER ), - 10 * COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT + 85 * + - 57
----
-4845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2158
SELECT ALL + CAST( + + NULLIF ( 13, - NULLIF ( - COUNT( * ), 0 ) ) AS SIGNED ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + CAST ( + + NULLIF ( 13, - NULLIF ( - COUNT ( * ), 0 ) ) AS INTEGER ) AS col2
----
13

query I rowsort
SELECT ALL - 70 + 39 col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT DISTINCT 91 + - - 77 + - + 41 * - 18 * + MIN( - 58 ) AS col1
----
-42636

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT 91 + - - 77 + - + 41 * - 18 * + MIN ( - 58 ) AS col1
----
-42636

query I rowsort
SELECT DISTINCT - 53 + - 48
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT ALL COUNT( * ) + - 87 + 32 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL COUNT ( * ) + - 87 + 32 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT ALL + 31 + - COUNT( * ) * + CASE + COALESCE ( - + 92, - 88 ) WHEN 46 THEN 41 WHEN - 73 THEN + - 31 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL + 31 + - COUNT ( * ) * + CASE + COALESCE ( - + 92, - 88 ) WHEN 46 THEN 41 WHEN - 73 THEN + - 31 END AS col1
----
NULL

query I rowsort
SELECT + 78 - - - 20 + + 73 AS col0
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2165
SELECT + 88 + - 82 + + MIN( 89 ) DIV - SUM( ALL - NULLIF ( + - 2, + 60 * - - CAST( NULL AS SIGNED ) ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2165
SELECT + 88 + - 82 + + MIN ( 89 ) / - SUM ( ALL - NULLIF ( + - 2, + 60 * - - CAST ( NULL AS INTEGER ) ) ) AS col2
----
-38

query I rowsort
SELECT DISTINCT + 98 + + 18 AS col1
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2167
SELECT ALL 75 + COUNT( * ) * CAST( + CASE + COALESCE ( - 77, - ( - + 49 ) ) WHEN - - ( - 83 ) THEN NULL ELSE - 62 END AS SIGNED ) * - - 71
----
-4327

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL 75 + COUNT ( * ) * CAST ( + CASE + COALESCE ( - 77, - ( - + 49 ) ) WHEN - - ( - 83 ) THEN NULL ELSE - 62 END AS INTEGER ) * - - 71
----
-4327

query I rowsort
SELECT - 45 * + 35 AS col1
----
-1575

onlyif mysql # DIV for integer division: 
query I rowsort label-2169
SELECT + + 48 DIV + 31 - NULLIF ( - 55, - 54 * + 71 )
----
56

skipif mysql # not compatible
query I rowsort label-2169
SELECT + + 48 / + 31 - NULLIF ( - 55, - 54 * + 71 )
----
56

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

skipif mysql # not compatible
query I rowsort label-2170
SELECT + ( MAX ( - - 8 ) )
----
8

query I rowsort
SELECT - 85 * + 4 - - 92 + 31 AS col0
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT DISTINCT - 21 * - COUNT( * ) - + ( + + 38 )
----
-17

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT - 21 * - COUNT ( * ) - + ( + + 38 )
----
-17

query II rowsort
SELECT - 62 AS col2, - 62 AS col0
----
-62
-62

query II rowsort
SELECT 45 AS col0, - 94 * - - 56 * - 75 AS col1
----
45
394800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2175
SELECT ALL + - COUNT( * ) * - 19 * + ( COUNT( * ) ) * - 81 + 13 * + CASE CAST( NULL AS DECIMAL ) WHEN - + CAST( NULL AS SIGNED ) * + + ( ( + 91 ) ) THEN - 47 END - - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL + - COUNT ( * ) * - 19 * + ( COUNT ( * ) ) * - 81 + 13 * + CASE CAST ( NULL AS REAL ) WHEN - + CAST ( NULL AS INTEGER ) * + + ( ( + 91 ) ) THEN - 47 END - - 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2176
SELECT SUM( DISTINCT - 49 ) DIV + + ( COUNT( * ) ) - 17
----
-66

skipif mysql # not compatible
query I rowsort label-2176
SELECT SUM ( DISTINCT - 49 ) / + + ( COUNT ( * ) ) - 17
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT ALL + MAX( - - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL + MAX ( - - 0 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2178
SELECT NULLIF ( + CAST( + ( - COALESCE ( + COUNT( 61 ), ( + 97 ) ) ) AS SIGNED ), - 73 * - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2178
SELECT NULLIF ( + CAST ( + ( - COALESCE ( + COUNT ( 61 ), ( + 97 ) ) ) AS INTEGER ), - 73 * - COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2179
SELECT + 11 DIV + CAST( + 55 AS SIGNED ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2179
SELECT + 11 / + CAST ( + 55 AS INTEGER ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2180
SELECT + ( 41 ), MAX( 63 ) + NULLIF ( + 78, COUNT( * ) + - 48 * + 63 * - CASE - 55 WHEN COUNT( 26 ) + COALESCE ( - 1, - 72 * + - 13, 85 * - + 24 ) THEN NULL WHEN 68 * 94 * + + COUNT( * ) THEN + 51 * 92 * + - 93 * + CAST( - + 45 AS SIGNED ) END + + 72 ) AS col0
----
41
141

skipif mysql # not compatible
query II rowsort label-2180
SELECT + ( 41 ), MAX ( 63 ) + NULLIF ( + 78, COUNT ( * ) + - 48 * + 63 * - CASE - 55 WHEN COUNT ( 26 ) + COALESCE ( - 1, - 72 * + - 13, 85 * - + 24 ) THEN NULL WHEN 68 * 94 * + + COUNT ( * ) THEN + 51 * 92 * + - 93 * + CAST ( - + 45 AS INTEGER ) END + + 72 ) AS col0
----
41
141

query II rowsort
SELECT ALL + 47 AS col0, 60 AS col0
----
47
60

query I rowsort
SELECT ALL + ( + - 26 ) AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2183
SELECT - CAST( NULL AS SIGNED ) * MIN( ALL - + 25 ) / 74 - - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT - CAST ( NULL AS INTEGER ) * MIN ( ALL - + 25 ) / 74 - - 53 AS col1
----
NULL

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

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

query I rowsort
SELECT - 63 - + 0 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT ALL + SUM( + + 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL + SUM ( + + 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT DISTINCT + ( - 73 ) * + CASE - - 92 WHEN 15 / + COUNT( * ) + - 42 + - - 86 - - - 98 / - 79 * - 15 THEN - + MIN( DISTINCT - 29 ) + 34 ELSE 35 + + 79 END - + 15 + 74 * + - 6
----
-8781

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT + ( - 73 ) * + CASE - - 92 WHEN 15 / + COUNT ( * ) + - 42 + - - 86 - - - 98 / - 79 * - 15 THEN - + MIN ( DISTINCT - 29 ) + 34 ELSE 35 + + 79 END - + 15 + 74 * + - 6
----
-8781

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT DISTINCT + 98 * - 70 + + 37 + + - COUNT( * )
----
-6824

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT + 98 * - 70 + + 37 + + - COUNT ( * )
----
-6824

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT ALL - COUNT( * ) * - 61 + + MIN( + 44 ) * - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL - COUNT ( * ) * - 61 + + MIN ( + 44 ) * - COUNT ( * )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT - 74 * 22 DIV + ( + 49 ) + + 96 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2190
SELECT - 74 * 22 / + ( + 49 ) + + 96 AS col2
----
63

query I rowsort
SELECT - 92 * 99 AS col2
----
-9108

query I rowsort
SELECT - 4 + 97 * 56 * 37 * - 60 * - COALESCE ( - 80, - 25 )
----
-964723204

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2193
SELECT ALL ( + - COALESCE ( + 9, 48 * - 65 * + 73 DIV + 68 + CAST( NULL AS SIGNED ) + 6 * - 36 + + 0 - - - 60 ) ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL ( + - COALESCE ( + 9, 48 * - 65 * + 73 / + 68 + CAST ( NULL AS INTEGER ) + 6 * - 36 + + 0 - - - 60 ) ) col2
----
-9

query I rowsort
SELECT ALL + 32 + + 10 AS col1
----
42

query II rowsort
SELECT - 56 + + - 46 AS col0, 72 * 59 AS col0
----
-102
4248

query I rowsort
SELECT ALL - 60 + + + COALESCE ( + + 8, - 28 * + 67 )
----
-52

query I rowsort
SELECT ALL + 60 + + 11 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT - MIN( + 35 ) + 14 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-2198
SELECT - MIN ( + 35 ) + 14 AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2199
SELECT ALL + CASE 40 WHEN - ( COUNT( * ) ) THEN NULL WHEN 98 * 25 + - MAX( ALL - 67 ) THEN NULL ELSE - COUNT( * ) * - 19 + - COALESCE ( CAST( + 65 AS SIGNED ), - 74, - + 12 * + + 74 ) END, 25 col2
----
-46
25

skipif mysql # not compatible
query II rowsort label-2199
SELECT ALL + CASE 40 WHEN - ( COUNT ( * ) ) THEN NULL WHEN 98 * 25 + - MAX ( ALL - 67 ) THEN NULL ELSE - COUNT ( * ) * - 19 + - COALESCE ( CAST ( + 65 AS INTEGER ), - 74, - + 12 * + + 74 ) END, 25 col2
----
-46
25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT DISTINCT + 33 + + 24 - 19 * 10 + - + COUNT( * )
----
-134

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT + 33 + + 24 - 19 * 10 + - + COUNT ( * )
----
-134

onlyif mysql # aggregate syntax: 
query II rowsort label-2202
SELECT - ( - 92 ), MIN( + 66 ) AS col2
----
92
66

skipif mysql # not compatible
query II rowsort label-2202
SELECT - ( - 92 ), MIN ( + 66 ) AS col2
----
92
66

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

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

query I rowsort
SELECT ALL + - 37 + + 66 AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2205
SELECT - 38 + 65 + + 76 * + - COUNT( * ) + - ( - 49 ) - - COALESCE ( - 67, COUNT( + 18 ) + 70, - 22 ) * + + COUNT( * ) + + 68 * - 60 + + + 88 * + 70, - CAST( - COUNT( * ) AS SIGNED ) * - + 57 * - + COUNT( * ) AS col2
----
2013
57

skipif mysql # not compatible
query II rowsort label-2205
SELECT - 38 + 65 + + 76 * + - COUNT ( * ) + - ( - 49 ) - - COALESCE ( - 67, COUNT ( + 18 ) + 70, - 22 ) * + + COUNT ( * ) + + 68 * - 60 + + + 88 * + 70, - CAST ( - COUNT ( * ) AS INTEGER ) * - + 57 * - + COUNT ( * ) AS col2
----
2013
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT - - COUNT( * ) * 72 * 38 col0
----
2736

skipif mysql # not compatible
query I rowsort label-2206
SELECT - - COUNT ( * ) * 72 * 38 col0
----
2736

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT + - 14 * - MIN( DISTINCT - 26 )
----
-364

skipif mysql # not compatible
query I rowsort label-2207
SELECT + - 14 * - MIN ( DISTINCT - 26 )
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT DISTINCT + CASE + 79 WHEN + 31 THEN 75 + CASE WHEN NOT + 77 IS NOT NULL THEN - 21 ELSE NULL END WHEN - - 3 * + + 92 THEN - - 98 - + ( 16 ) WHEN + - 55 + - + COUNT( * ) THEN + COALESCE ( + 47, + - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT + CASE + 79 WHEN + 31 THEN 75 + CASE WHEN NOT + 77 IS NOT NULL THEN - 21 ELSE NULL END WHEN - - 3 * + + 92 THEN - - 98 - + ( 16 ) WHEN + - 55 + - + COUNT ( * ) THEN + COALESCE ( + 47, + - COUNT ( * ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2209
SELECT DISTINCT + 64 * - 71 DIV - NULLIF ( COUNT( * ), 75 )
----
4544

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT + 64 * - 71 / - NULLIF ( COUNT ( * ), 75 )
----
4544

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

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL COUNT ( * ) - - + 28 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT - 79 * - ( 35 ) * - 12 + + CASE + 9 WHEN + 83 THEN COUNT( * ) ELSE NULL END + - - 62 * - 46 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2211
SELECT - 79 * - ( 35 ) * - 12 + + CASE + 9 WHEN + 83 THEN COUNT ( * ) ELSE NULL END + - - 62 * - 46 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT DISTINCT - 26 DIV - - 17 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT - 26 / - - 17 AS col1
----
-1

query II rowsort
SELECT ALL + + 71 AS col1, CASE 40 WHEN + 63 THEN + COALESCE ( + ( + 93 ), - + 86 * 54 * + + 79 + + 54 + + 35 ) - - 52 END col0
----
71
NULL

query I rowsort
SELECT + - 87 * - 48
----
4176

onlyif mysql # DIV for integer division: 
query I rowsort label-2215
SELECT ALL - ( + 29 ) DIV - 92 * + 16
----
0

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL - ( + 29 ) / - 92 * + 16
----
0

query I rowsort
SELECT - - 18 * + 99
----
1782

onlyif mysql # DIV for integer division: 
query I rowsort label-2217
SELECT 89 DIV 26 + + 76 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-2217
SELECT 89 / 26 + + 76 AS col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2218
SELECT + 82 DIV + - ( NULLIF ( - + NULLIF ( - NULLIF ( + - 82, - COUNT( * ) ), + 56 * - NULLIF ( - 96, + + 34 ) + 57 ), - + 81 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2218
SELECT + 82 / + - ( NULLIF ( - + NULLIF ( - NULLIF ( + - 82, - COUNT ( * ) ), + 56 * - NULLIF ( - 96, + + 34 ) + 57 ), - + 81 ) )
----
1

query II rowsort
SELECT + 94 + 46 col2, 9 * + 87 + + 42 * + 31
----
140
2085

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2220
SELECT 18 + - 41 * + 54 * SUM( - 57 ) * + MAX( - 39 ) - 15 DIV + 3
----
-4921709

skipif mysql # not compatible
query I rowsort label-2220
SELECT 18 + - 41 * + 54 * SUM ( - 57 ) * + MAX ( - 39 ) - 15 / + 3
----
-4921709

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT - ( 9 ) * - MIN( ALL ( 6 ) ) + 28 * + - 55 * + 9 + COUNT( ALL - - 68 )
----
-13805

skipif mysql # not compatible
query I rowsort label-2221
SELECT - ( 9 ) * - MIN ( ALL ( 6 ) ) + 28 * + - 55 * + 9 + COUNT ( ALL - - 68 )
----
-13805

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT DISTINCT - SUM( 46 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT - SUM ( 46 ) AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT ALL CAST( NULL AS SIGNED ) + - 5 * + 19 * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL CAST ( NULL AS INTEGER ) + - 5 * + 19 * 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT DISTINCT 33 + + + 85 + + 24 - - ( CASE ( + + CASE 91 WHEN - MIN( ALL - 1 ) THEN + + COUNT( ALL + - 43 ) WHEN CAST( + 59 AS SIGNED ) THEN NULL END ) WHEN - 31 THEN NULL WHEN - NULLIF ( - 93, + 34 + 30 ) THEN 34 WHEN + 22 THEN NULL END ) * + COUNT( * ) + + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT 33 + + + 85 + + 24 - - ( CASE ( + + CASE 91 WHEN - MIN ( ALL - 1 ) THEN + + COUNT ( ALL + - 43 ) WHEN CAST ( + 59 AS INTEGER ) THEN NULL END ) WHEN - 31 THEN NULL WHEN - NULLIF ( - 93, + 34 + 30 ) THEN 34 WHEN + 22 THEN NULL END ) * + COUNT ( * ) + + 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL + 28 + + 95 + + SUM( + ( - + 31 ) )
----
92

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL + 28 + + 95 + + SUM ( + ( - + 31 ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT ( - + ( MIN( - 6 ) ) ) * - - 60
----
360

skipif mysql # not compatible
query I rowsort label-2226
SELECT ( - + ( MIN ( - 6 ) ) ) * - - 60
----
360

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2227
SELECT ALL ( - COUNT( * ) ) / CASE + CAST( NULL AS DECIMAL ) WHEN - 82 + - 62 THEN - AVG ( 8 ) END - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL ( - COUNT ( * ) ) / CASE + CAST ( NULL AS REAL ) WHEN - 82 + - 62 THEN - AVG ( 8 ) END - 86
----
NULL

query II rowsort
SELECT DISTINCT + 10 + 71 AS col0, - 5 * + 8 AS col1
----
81
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT DISTINCT COUNT( * ) * 66 * COUNT( * ) * - COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT COUNT ( * ) * 66 * COUNT ( * ) * - COUNT ( * ) AS col1
----
-66

query I rowsort
SELECT 13 - + 62
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2231
SELECT 2 DIV - - ( - 91 ) - 20 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-2231
SELECT 2 / - - ( - 91 ) - 20 AS col0
----
-20

query I rowsort
SELECT - 36 * 6 * 74 * - 60 + + 41 AS col1
----
959081

query I rowsort
SELECT ALL + - 97 * 39 * - - 57
----
-215631

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2235
SELECT 51 * 2 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2235
SELECT 51 * 2 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

query II rowsort
SELECT 81 + + - ( - - NULLIF ( + + 80, - + 34 * 76 * + ( + + ( + 95 ) ) * + ( + 16 ) ) ) + - + 38 AS col2, ( - - 8 ) col2
----
-37
8

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2239
SELECT 38 + + + CASE + 70 WHEN - 31 THEN - 4 WHEN + CASE 53 WHEN - + 75 / - - COUNT( * ) * + 21 * 95 - COUNT( * ) THEN - + COUNT( * ) ELSE NULL END THEN NULL END AS col2, 77
----
NULL
77

skipif mysql # not compatible
query II rowsort label-2239
SELECT 38 + + + CASE + 70 WHEN - 31 THEN - 4 WHEN + CASE 53 WHEN - + 75 / - - COUNT ( * ) * + 21 * 95 - COUNT ( * ) THEN - + COUNT ( * ) ELSE NULL END THEN NULL END AS col2, 77
----
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT - 23 * + COALESCE ( + - COUNT( * ), 17 ) * - - 15 - - ( + - ( - 67 ) ) + - NULLIF ( + - 54, + 88 ) AS col2
----
466

skipif mysql # not compatible
query I rowsort label-2240
SELECT - 23 * + COALESCE ( + - COUNT ( * ), 17 ) * - - 15 - - ( + - ( - 67 ) ) + - NULLIF ( + - 54, + 88 ) AS col2
----
466

query II rowsort
SELECT DISTINCT - 44, COALESCE ( + 30, 49 ) AS col2
----
-44
30

query I rowsort
SELECT DISTINCT + 77 + + 48 AS col1
----
125

query II rowsort
SELECT DISTINCT - 99 AS col1, 77 AS col2
----
-99
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT NULLIF ( + COALESCE ( COUNT( * ), + 99 * - COUNT( * ) * + + 25, - 17 ), - + 6 / - 25 * + - 97 ) * 1 * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2244
SELECT NULLIF ( + COALESCE ( COUNT ( * ), + 99 * - COUNT ( * ) * + + 25, - 17 ), - + 6 / - 25 * + - 97 ) * 1 * + + COUNT ( * )
----
1

query I rowsort
SELECT 47 * 47
----
2209

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2246
SELECT 59 DIV 61 - + + COUNT( * ), 11 AS col1
----
-1
11

skipif mysql # not compatible
query II rowsort label-2246
SELECT 59 / 61 - + + COUNT ( * ), 11 AS col1
----
-1
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2247
SELECT 34 AS col0, - COALESCE ( + 67, - 58 * 39 + + + COUNT( * ) + - - 92, + ( 98 ) - + 56 + - 17 * - 23 + - + 52, - COUNT( ALL + + 99 ) * 64 ) + + ( + ( + ( - NULLIF ( 13, + - 25 + + + CAST( - 78 AS SIGNED ) - + 78 - - - 20 ) ) ) ) + - ( - 26 ) * - + 18 AS col1
----
34
-548

skipif mysql # not compatible
query II rowsort label-2247
SELECT 34 AS col0, - COALESCE ( + 67, - 58 * 39 + + + COUNT ( * ) + - - 92, + ( 98 ) - + 56 + - 17 * - 23 + - + 52, - COUNT ( ALL + + 99 ) * 64 ) + + ( + ( + ( - NULLIF ( 13, + - 25 + + + CAST ( - 78 AS INTEGER ) - + 78 - - - 20 ) ) ) ) + - ( - 26 ) * - + 18 AS col1
----
34
-548

query I rowsort
SELECT ALL 75 * - + 68
----
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT ALL 92 + 21 * - - 35 + - COUNT( * )
----
826

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL 92 + 21 * - - 35 + - COUNT ( * )
----
826

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2250
SELECT 53 AS col0, CAST( + + 25 AS SIGNED ) * - 70 AS col2
----
53
-1750

skipif mysql # not compatible
query II rowsort label-2250
SELECT 53 AS col0, CAST ( + + 25 AS INTEGER ) * - 70 AS col2
----
53
-1750

query I rowsort
SELECT DISTINCT - CASE 80 WHEN 54 - + 48 + - 47 THEN + + 7 / - + 25 / + + 12 + + 93 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT ALL + SUM( ALL + 21 ) * 36 + - - MIN( DISTINCT + 58 ) * + - CASE 1 WHEN + 74 - + - ( 77 ) + - COUNT( * ) - + 11 THEN - ( 99 ) * - - 43 ELSE 45 END + + + 47
----
-1807

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL + SUM ( ALL + 21 ) * 36 + - - MIN ( DISTINCT + 58 ) * + - CASE 1 WHEN + 74 - + - ( 77 ) + - COUNT ( * ) - + 11 THEN - ( 99 ) * - - 43 ELSE 45 END + + + 47
----
-1807

query I rowsort
SELECT DISTINCT 97 + - + 17 + - 58 * + - 6 AS col2
----
428

onlyif mysql # aggregate syntax: 
query II rowsort label-2254
SELECT ALL - 33 AS col2, COUNT( DISTINCT + 16 ) AS col0
----
-33
1

skipif mysql # not compatible
query II rowsort label-2254
SELECT ALL - 33 AS col2, COUNT ( DISTINCT + 16 ) AS col0
----
-33
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT ALL 32 - + SUM( ALL + + 84 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL 32 - + SUM ( ALL + + 84 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT + + 3 * - MAX( - 14 ) + + + 48 - 99
----
-9

skipif mysql # not compatible
query I rowsort label-2257
SELECT + + 3 * - MAX ( - 14 ) + + + 48 - 99
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT - 67 * - COUNT( * ) * 9 col2
----
603

skipif mysql # not compatible
query I rowsort label-2258
SELECT - 67 * - COUNT ( * ) * 9 col2
----
603

query II rowsort
SELECT ALL 18 AS col1, 44
----
18
44

query I rowsort
SELECT 27 + + - 42 AS col0
----
-15

query I rowsort
SELECT + ( - 19 ) * + 45 * - 92 - + + 70 * 49
----
75230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2262
SELECT - ( - 1 ) + + - 44 * + 70 * 4 * + - 73 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT - ( - 1 ) + + - 44 * + 70 * 4 * + - 73 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 34 * - 48
----
-1632

onlyif mysql # aggregate syntax: 
query II rowsort label-2264
SELECT ALL - COALESCE ( + 14, + 72 ), - MIN( DISTINCT - - 63 ) * 26 * - + ( - 96 ) AS col2
----
-14
-157248

skipif mysql # not compatible
query II rowsort label-2264
SELECT ALL - COALESCE ( + 14, + 72 ), - MIN ( DISTINCT - - 63 ) * 26 * - + ( - 96 ) AS col2
----
-14
-157248

query I rowsort
SELECT - + ( 63 ) AS col1
----
-63

query I rowsort
SELECT DISTINCT - 48 * - - 75
----
-3600

query I rowsort
SELECT 96 + - + 45 AS col0
----
51

query I rowsort
SELECT 27 * - 62 AS col0
----
-1674

query I rowsort
SELECT DISTINCT NULLIF ( + 64, - COALESCE ( + - 59, + 69, COALESCE ( + 44, + 0, + + 96 ) ) + + 1 ) * 75 AS col1
----
4800

query I rowsort
SELECT DISTINCT - 98 * 41 AS col1
----
-4018

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT DISTINCT - COALESCE ( 44, + 18 * - MIN( DISTINCT - 25 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT - COALESCE ( 44, + 18 * - MIN ( DISTINCT - 25 ) )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL SUM( DISTINCT - 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL SUM ( DISTINCT - 77 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT NULLIF ( - 57, - AVG ( - + 74 ) + + COUNT( 69 ) ) + + 81 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-2273
SELECT NULLIF ( - 57, - AVG ( - + 74 ) + + COUNT ( 69 ) ) + + 81 AS col1
----
24

query I rowsort
SELECT DISTINCT + - ( + 71 ) + - + 22 + + 45 - + 76 AS col1
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2275
SELECT ALL - + 90 DIV 13 * + MAX( DISTINCT + - 55 )
----
330

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL - + 90 / 13 * + MAX ( DISTINCT + - 55 )
----
330

query I rowsort
SELECT ( + + 1 ) col0
----
1

query I rowsort
SELECT ALL + 4 + + + 97 AS col1
----
101

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

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

query I rowsort
SELECT - 64 + + + 43 col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ALL - 32 * + - CASE + 2 WHEN COALESCE ( - MIN( - 87 ), - + 3 * - - 35 + - 74 + - 47 * + 74 + - 89 + 24 + + 43 + - - 22 + - 64 * 39, - 79 ) * + + ( + - 67 ) + + 63 * 45 THEN - - 62 WHEN - 4 THEN NULL END + - + 36 * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL - 32 * + - CASE + 2 WHEN COALESCE ( - MIN ( - 87 ), - + 3 * - - 35 + - 74 + - 47 * + 74 + - 89 + 24 + + 43 + - - 22 + - 64 * 39, - 79 ) * + + ( + - 67 ) + + 63 * 45 THEN - - 62 WHEN - 4 THEN NULL END + - + 36 * + 20
----
NULL

query I rowsort
SELECT - 56 * + 52 * - 28 + NULLIF ( 1, + - 72 / 25 ) + - 6 AS col2
----
81531

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT DISTINCT + COUNT( 44 ) * - 86
----
-86

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT + COUNT ( 44 ) * - 86
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT 64 / - 88 / - CASE + 63 WHEN + 29 THEN - - 75 + - 52 + + - 85 * + - 17 + - AVG ( DISTINCT - 9 ) WHEN COUNT( * ) + - 51 THEN - COUNT( * ) - + 23 ELSE NULL END * + 39 + + 87 + + 31 * + + 49 + - - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT 64 / - 88 / - CASE + 63 WHEN + 29 THEN - - 75 + - 52 + + - 85 * + - 17 + - AVG ( DISTINCT - 9 ) WHEN COUNT ( * ) + - 51 THEN - COUNT ( * ) - + 23 ELSE NULL END * + 39 + + 87 + + 31 * + + 49 + - - 21 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT 27 * + 49 * + 0 - COUNT( * ) + 32
----
31

skipif mysql # not compatible
query I rowsort label-2284
SELECT 27 * + 49 * + 0 - COUNT ( * ) + 32
----
31

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

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

query I rowsort
SELECT - 33 * + 55 AS col2
----
-1815

query I rowsort
SELECT ALL + 40 * 27 - + 39 * - + 6 + - 29 AS col0
----
1285

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT DISTINCT + ( - NULLIF ( - 62, - - COUNT( * ) * - 5 ) )
----
62

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT + ( - NULLIF ( - 62, - - COUNT ( * ) * - 5 ) )
----
62

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2290
SELECT - + 32 * - 10 + + 29 - - 17 AS col2, + COUNT( ALL - 21 ) + 66 + - + ( + 72 )
----
366
-5

skipif mysql # not compatible
query II rowsort label-2290
SELECT - + 32 * - 10 + + 29 - - 17 AS col2, + COUNT ( ALL - 21 ) + 66 + - + ( + 72 )
----
366
-5

query I rowsort
SELECT + 26 * + - ( - 45 ) * 77 + + 15 + - 50 + 9 * + + 30 + + + 57 * - NULLIF ( + - 84, - 41 * + ( 10 ) + 28 + + - 49 + - CASE 72 WHEN 92 THEN AVG ( - 17 ) ELSE NULL END / + 35 ) * + - 59
----
-192167

query II rowsort
SELECT ALL + 21 * 60 AS col1, 69
----
1260
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2293
SELECT ALL - - 1 * - 61 + 58 / CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL - - 1 * - 61 + 58 / CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT DISTINCT + + 89 * COUNT( * ) * - + 7 AS col1
----
-623

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT + + 89 * COUNT ( * ) * - + 7 AS col1
----
-623

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT + + MAX( ALL - - 12 ) * - 84 * + COUNT( * ) + 80
----
-928

skipif mysql # not compatible
query I rowsort label-2296
SELECT + + MAX ( ALL - - 12 ) * - 84 * + COUNT ( * ) + 80
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT ALL ( - NULLIF ( 1, - - COUNT( * ) * + 79 * - 40 + - 79 * 95 - + - 86 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL ( - NULLIF ( 1, - - COUNT ( * ) * + 79 * - 40 + - 79 * 95 - + - 86 ) )
----
-1

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

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

query I rowsort
SELECT + + 30 - + NULLIF ( - 50, + 88 * - - 61 + 4 ) AS col2
----
80

query I rowsort
SELECT + 4 + - - 55
----
59

query I rowsort
SELECT DISTINCT 73 + + 23
----
96

query I rowsort
SELECT NULLIF ( 36, - 30 )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2303
SELECT ALL 17 + - COUNT( * ) AS col0, ( - - 59 ) AS col0
----
16
59

skipif mysql # not compatible
query II rowsort label-2303
SELECT ALL 17 + - COUNT ( * ) AS col0, ( - - 59 ) AS col0
----
16
59

query I rowsort
SELECT DISTINCT + 75 + 49 AS col0
----
124

query I rowsort
SELECT ALL 1 + 60 AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2306
SELECT - CAST( + + COALESCE ( - COUNT( * ), + 54 * + ( + 76 ) / - 95 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2306
SELECT - CAST ( + + COALESCE ( - COUNT ( * ), + 54 * + ( + 76 ) / - 95 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT ALL 5 + - NULLIF ( - - 78, + - 74 * + COUNT( + 68 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL 5 + - NULLIF ( - - 78, + - 74 * + COUNT ( + 68 ) )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-2308
SELECT ALL 23 + + 86 + - 56 DIV + NULLIF ( 14, + 58 ) AS col0
----
105

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL 23 + + 86 + - 56 / + NULLIF ( 14, + 58 ) AS col0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-2309
SELECT + 29 DIV + 18
----
1

skipif mysql # not compatible
query I rowsort label-2309
SELECT + 29 / + 18
----
1

query II rowsort
SELECT 8 col0, - 21
----
8
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2311
SELECT ALL + COALESCE ( + - 20, 54 + - COUNT( DISTINCT CAST( + 18 AS SIGNED ) ), - 97 )
----
-20

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + COALESCE ( + - 20, 54 + - COUNT ( DISTINCT CAST ( + 18 AS INTEGER ) ), - 97 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2312
SELECT CAST( 64 AS SIGNED ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2312
SELECT CAST ( 64 AS INTEGER ) AS col1
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-2313
SELECT DISTINCT - 28 DIV + 53 - + - 85, 56 AS col1
----
85
56

skipif mysql # not compatible
query II rowsort label-2313
SELECT DISTINCT - 28 / + 53 - + - 85, 56 AS col1
----
85
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2314
SELECT DISTINCT 1 DIV - + 89 - - - 28 - + 9 DIV + COALESCE ( - ( + - 5 ), 26 + - 24 )
----
-29

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT 1 / - + 89 - - - 28 - + 9 / + COALESCE ( - ( + - 5 ), 26 + - 24 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT DISTINCT + COALESCE ( - SUM( 54 ), - 55 )
----
-54

skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT + COALESCE ( - SUM ( 54 ), - 55 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT + COUNT( * ) + - NULLIF ( - - 19, - 70 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2316
SELECT + COUNT ( * ) + - NULLIF ( - - 19, - 70 ) AS col2
----
-18

query I rowsort
SELECT - 80 * 42
----
-3360

query I rowsort
SELECT ALL - 6 * - 43 * + 80 AS col0
----
20640

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT - 91 + - COUNT( * ) - + 71 - + 62 - - 57 * 20
----
915

skipif mysql # not compatible
query I rowsort label-2319
SELECT - 91 + - COUNT ( * ) - + 71 - + 62 - - 57 * 20
----
915

query I rowsort
SELECT ALL - 97 * + 16 AS col0
----
-1552

query I rowsort
SELECT + ( - 35 ) * - 23 + + - 54
----
751

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2323
SELECT - 29 - - 53 DIV 68 + - - 43
----
14

skipif mysql # not compatible
query I rowsort label-2323
SELECT - 29 - - 53 / 68 + - - 43
----
14

query I rowsort
SELECT DISTINCT + - ( - - 22 )
----
-22

query II rowsort
SELECT + 15 AS col2, + 90 AS col0
----
15
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT MAX( 6 ) col2
----
6

skipif mysql # not compatible
query I rowsort label-2326
SELECT MAX ( 6 ) col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2327
SELECT DISTINCT - CAST( - + 23 AS SIGNED ) * - 21 + 80
----
-403

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT - CAST ( - + 23 AS INTEGER ) * - 21 + 80
----
-403

query I rowsort
SELECT - + 34 + - + 43 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT - MIN( ALL - 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2329
SELECT - MIN ( ALL - 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT ALL + 14 * + 4 + + ( + + COUNT( * ) ) + + + COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL + 14 * + 4 + + ( + + COUNT ( * ) ) + + + COUNT ( * ) AS col0
----
58

query I rowsort
SELECT - - 59 + - - 30
----
89

query I rowsort
SELECT 54 * 77 - ( 35 ) AS col2
----
4123

onlyif mysql # aggregate syntax: 
query II rowsort label-2333
SELECT ALL + 48 * - COUNT( * ) * ( ( + CASE + 39 WHEN - 16 THEN + - 27 * + + NULLIF ( + - 23, + 74 + + COUNT( * ) ) WHEN - - 76 THEN NULL ELSE - 93 END ) ) + 44 AS col2, 52 - - 70
----
4508
122

skipif mysql # not compatible
query II rowsort label-2333
SELECT ALL + 48 * - COUNT ( * ) * ( ( + CASE + 39 WHEN - 16 THEN + - 27 * + + NULLIF ( + - 23, + 74 + + COUNT ( * ) ) WHEN - - 76 THEN NULL ELSE - 93 END ) ) + 44 AS col2, 52 - - 70
----
4508
122

onlyif mysql # DIV for integer division: 
query I rowsort label-2334
SELECT - 88 DIV 31
----
-2

skipif mysql # not compatible
query I rowsort label-2334
SELECT - 88 / 31
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2335
SELECT DISTINCT - 15 * 14 * 38 AS col2, + COUNT( * ) * - + 43 col2
----
-7980
-43

skipif mysql # not compatible
query II rowsort label-2335
SELECT DISTINCT - 15 * 14 * 38 AS col2, + COUNT ( * ) * - + 43 col2
----
-7980
-43

query I rowsort
SELECT DISTINCT - 46 + + 26 + 58 * - 96 AS col1
----
-5588

query I rowsort
SELECT ALL - 13 * - 3
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT MAX( DISTINCT + - 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2338
SELECT MAX ( DISTINCT + - 24 ) AS col2
----
-24

query I rowsort
SELECT 74 + 43 AS col0
----
117

query II rowsort
SELECT DISTINCT 21 AS col0, + 73 * - 20 + 30
----
21
-1430

onlyif mysql # aggregate syntax: 
query II rowsort label-2341
SELECT ALL 73 AS col2, - COUNT( * ) col1
----
73
-1

skipif mysql # not compatible
query II rowsort label-2341
SELECT ALL 73 AS col2, - COUNT ( * ) col1
----
73
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2342
SELECT 21 * - - 98 AS col1, - MAX( DISTINCT - + 30 ) col1
----
2058
30

skipif mysql # not compatible
query II rowsort label-2342
SELECT 21 * - - 98 AS col1, - MAX ( DISTINCT - + 30 ) col1
----
2058
30

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

query I rowsort
SELECT 63 * 68 * 39 col2
----
167076

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT ALL 52 * 24 DIV - 63 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL 52 * 24 / - 63 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT 53 + + COUNT( * ) * 14 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2347
SELECT 53 + + COUNT ( * ) * 14 AS col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT CAST( - 81 AS SIGNED ) + + 7
----
-74

skipif mysql # not compatible
query I rowsort label-2348
SELECT CAST ( - 81 AS INTEGER ) + + 7
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT COUNT( * ) + 53 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2349
SELECT COUNT ( * ) + 53 AS col2
----
54

query I rowsort
SELECT DISTINCT 51 * - 88
----
-4488

query I rowsort
SELECT 1 * 57 + - 9
----
48

query I rowsort
SELECT 88 - 24 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT 91 * - + COUNT( * ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-2353
SELECT 91 * - + COUNT ( * ) AS col1
----
-91

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

query I rowsort
SELECT ALL 74 * - 32 AS col2
----
-2368

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT 25 DIV - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2356
SELECT 25 / - 29 AS col2
----
0

query I rowsort
SELECT ALL - + 63 + - 71 AS col2
----
-134

query II rowsort
SELECT - 70, + 3 AS col1
----
-70
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2359
SELECT DISTINCT + - 34 + - CAST( + - 45 AS SIGNED ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT + - 34 + - CAST ( + - 45 AS INTEGER ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL - 69 + + 97 * + NULLIF ( + 63, - - 70 + - - MAX( DISTINCT + - 24 ) + + 32 * + 79 * 23 + + - 96 + 66 * COUNT( DISTINCT + 74 ) + + 75 + + 93 * COUNT( * ) ) AS col1
----
6042

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL - 69 + + 97 * + NULLIF ( + 63, - - 70 + - - MAX ( DISTINCT + - 24 ) + + 32 * + 79 * 23 + + - 96 + 66 * COUNT ( DISTINCT + 74 ) + + 75 + + 93 * COUNT ( * ) ) AS col1
----
6042

query I rowsort
SELECT DISTINCT + 11 + 24 + 68
----
103

query I rowsort
SELECT + + 28 col0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2363
SELECT ALL - COUNT( * ), - 37 + - COUNT( * ) AS col0
----
-1
-38

skipif mysql # not compatible
query II rowsort label-2363
SELECT ALL - COUNT ( * ), - 37 + - COUNT ( * ) AS col0
----
-1
-38

query II rowsort
SELECT + + 58, - 67 AS col0
----
58
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2365
SELECT 74 * + COUNT( * ) DIV - + COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2365
SELECT 74 * + COUNT ( * ) / - + COUNT ( * ) AS col2
----
-74

query I rowsort
SELECT ALL 77 + - 52 - 45
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT ALL - - 83 + 75 + - 2 * + COUNT( * ) * 90
----
-22

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL - - 83 + 75 + - 2 * + COUNT ( * ) * 90
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-2368
SELECT ALL - 94 AS col1, - COUNT( * )
----
-94
-1

skipif mysql # not compatible
query II rowsort label-2368
SELECT ALL - 94 AS col1, - COUNT ( * )
----
-94
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT ALL + COUNT( DISTINCT - + COALESCE ( + 14, + + 3 * - + 9 ) ) + + 54 + 22 + ( - 57 )
----
20

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL + COUNT ( DISTINCT - + COALESCE ( + 14, + + 3 * - + 9 ) ) + + 54 + 22 + ( - 57 )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2370
SELECT ALL + + COUNT( 60 ) DIV SUM( - 40 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL + + COUNT ( 60 ) / SUM ( - 40 ) AS col1
----
0

query I rowsort
SELECT - 52 + 52
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2372
SELECT 1, - 6 + + 23 - COUNT( ALL - ( - 59 ) ) AS col0
----
1
16

skipif mysql # not compatible
query II rowsort label-2372
SELECT 1, - 6 + + 23 - COUNT ( ALL - ( - 59 ) ) AS col0
----
1
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2373
SELECT ALL + - COUNT( * ) - 39 + - - 9 DIV - COUNT( DISTINCT + 33 )
----
-49

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL + - COUNT ( * ) - 39 + - - 9 / - COUNT ( DISTINCT + 33 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT COUNT( - - 92 ) * - + 80 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2374
SELECT COUNT ( - - 92 ) * - + 80 AS col1
----
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-2375
SELECT DISTINCT + 86 * 16, 36 DIV 77 AS col2
----
1376
0

skipif mysql # not compatible
query II rowsort label-2375
SELECT DISTINCT + 86 * 16, 36 / 77 AS col2
----
1376
0

query I rowsort
SELECT ALL 28 * - 23
----
-644

onlyif mysql # aggregate syntax: 
query II rowsort label-2377
SELECT 56 * - 17 AS col0, MAX( DISTINCT + 28 )
----
-952
28

skipif mysql # not compatible
query II rowsort label-2377
SELECT 56 * - 17 AS col0, MAX ( DISTINCT + 28 )
----
-952
28

query I rowsort
SELECT DISTINCT - 24 * - - 37
----
-888

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

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

query II rowsort
SELECT 56 + NULLIF ( 14, - + ( - 42 ) ) AS col0, - 49 * - 95 AS col2
----
70
4655

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT SUM( 16 ) * + - 2 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-2381
SELECT SUM ( 16 ) * + - 2 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT ALL - COALESCE ( - COUNT( * ), - 96 )
----
1

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL - COALESCE ( - COUNT ( * ), - 96 )
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2384
SELECT ALL - COUNT( * ) * + AVG ( + - 94 ) + ( - - 14 ) * - + SUM( DISTINCT + 66 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL - COUNT ( * ) * + AVG ( + - 94 ) + ( - - 14 ) * - + SUM ( DISTINCT + 66 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 21 * 54 + - 5 AS col2
----
1129

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT 67 DIV 55 + 14
----
15

skipif mysql # not compatible
query I rowsort label-2386
SELECT 67 / 55 + 14
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2387
SELECT - COUNT( * ) DIV + COUNT( * ) AS col2, COUNT( * ) + - ( - 92 ) AS col1
----
-1
93

skipif mysql # not compatible
query II rowsort label-2387
SELECT - COUNT ( * ) / + COUNT ( * ) AS col2, COUNT ( * ) + - ( - 92 ) AS col1
----
-1
93

query I rowsort
SELECT 50 + - 24 * - 54 * + - 58 * - - 53 - 81 + - 7 AS col2
----
-3983942

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT SUM( - 7 ) col2
----
-7

skipif mysql # not compatible
query I rowsort label-2390
SELECT SUM ( - 7 ) col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2391
SELECT DISTINCT 40 DIV COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT 40 / COUNT ( * ) AS col0
----
40

query I rowsort
SELECT ALL - 20 * - 57 + + 28 AS col0
----
1168

onlyif mysql # aggregate syntax: 
query II rowsort label-2393
SELECT - 35 * + COUNT( * ) - - - 30, 40 col1
----
-65
40

skipif mysql # not compatible
query II rowsort label-2393
SELECT - 35 * + COUNT ( * ) - - - 30, 40 col1
----
-65
40

query I rowsort
SELECT + - 77 + - 20 AS col0
----
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT + - CASE COUNT( * ) WHEN + 0 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2396
SELECT + - CASE COUNT ( * ) WHEN + 0 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 41 + + 89
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2398
SELECT + CAST( - - 40 AS SIGNED ) * - - 73 col0
----
2920

skipif mysql # not compatible
query I rowsort label-2398
SELECT + CAST ( - - 40 AS INTEGER ) * - - 73 col0
----
2920

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT + 94 + COUNT( * ) + - + 53 - 24 * 45 * + 25 AS col1
----
-26958

skipif mysql # not compatible
query I rowsort label-2399
SELECT + 94 + COUNT ( * ) + - + 53 - 24 * 45 * + 25 AS col1
----
-26958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2400
SELECT ALL CASE 75 WHEN + CAST( - + 81 AS SIGNED ) / + - 75 THEN NULL WHEN - CASE + 76 WHEN 21 THEN - 49 END THEN + 65 + MAX( 17 ) * 25 WHEN - MIN( ALL - - 15 ) THEN 69 + - 97 * - 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL CASE 75 WHEN + CAST ( - + 81 AS INTEGER ) / + - 75 THEN NULL WHEN - CASE + 76 WHEN 21 THEN - 49 END THEN + 65 + MAX ( 17 ) * 25 WHEN - MIN ( ALL - - 15 ) THEN 69 + - 97 * - 53 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL + 9 * - NULLIF ( + + SUM( ALL 55 ), 58 * 6 )
----
-495

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL + 9 * - NULLIF ( + + SUM ( ALL 55 ), 58 * 6 )
----
-495

query I rowsort
SELECT + 82 * + 61 AS col0
----
5002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2403
SELECT + 41 + COALESCE ( - 98, + 14 + COUNT( + 33 ) * 0 + 31 DIV 34 * - 39, + CAST( - 12 AS SIGNED ) * + CAST( NULL AS SIGNED ) ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-2403
SELECT + 41 + COALESCE ( - 98, + 14 + COUNT ( + 33 ) * 0 + 31 / 34 * - 39, + CAST ( - 12 AS INTEGER ) * + CAST ( NULL AS INTEGER ) ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-2404
SELECT ALL 22 AS col1, ( MIN( DISTINCT 70 ) ) * - 88 + 77 * + - ( COUNT( * ) )
----
22
-6237

skipif mysql # not compatible
query II rowsort label-2404
SELECT ALL 22 AS col1, ( MIN ( DISTINCT 70 ) ) * - 88 + 77 * + - ( COUNT ( * ) )
----
22
-6237

query I rowsort
SELECT DISTINCT ( - - 34 ) * - COALESCE ( + 18, + 86 * + 39, - - 91 ) AS col1
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL NULLIF ( - + 80, 36 * + + COUNT( * ) * COUNT( * ) )
----
-80

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL NULLIF ( - + 80, 36 * + + COUNT ( * ) * COUNT ( * ) )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2407
SELECT ALL CASE + 8 WHEN CASE + 48 WHEN - + CAST( NULL AS SIGNED ) THEN + COUNT( * ) * - 43 * + 79 + - COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE - 46 END * - COUNT( * ) THEN 54 - + - ( - 28 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL CASE + 8 WHEN CASE + 48 WHEN - + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) * - 43 * + 79 + - COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE - 46 END * - COUNT ( * ) THEN 54 - + - ( - 28 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT - NULLIF ( - - 45, 81 ) + + + COUNT( * ) + - 58 + - 75 + + COUNT( * ) + + - 87 * 1 * + 22 AS col0
----
-2090

skipif mysql # not compatible
query I rowsort label-2408
SELECT - NULLIF ( - - 45, 81 ) + + + COUNT ( * ) + - 58 + - 75 + + COUNT ( * ) + + - 87 * 1 * + 22 AS col0
----
-2090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2409
SELECT ALL CAST( NULL AS SIGNED ) * 27 * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL CAST ( NULL AS INTEGER ) * 27 * - 42
----
NULL

query I rowsort
SELECT ALL NULLIF ( + + 45, + + 68 * + + 65 + 19 ) AS col2
----
45

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

skipif mysql # not compatible
query I rowsort label-2411
SELECT - CAST ( NULL AS INTEGER ) * - ( - 31 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT - NULLIF ( - NULLIF ( 31, - 62 - - COUNT( * ) ), - 42 - - 13 ) + + COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-2412
SELECT - NULLIF ( - NULLIF ( 31, - 62 - - COUNT ( * ) ), - 42 - - 13 ) + + COUNT ( * ) AS col1
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-2413
SELECT 5, 51 DIV 47 + - 53 AS col1
----
5
-52

skipif mysql # not compatible
query II rowsort label-2413
SELECT 5, 51 / 47 + - 53 AS col1
----
5
-52

query I rowsort
SELECT ALL NULLIF ( - + 47, - 28 * 53 + + 4 )
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-2415
SELECT - SUM( ALL - + 46 ) + - 11 AS col2, + 83 AS col1
----
35
83

skipif mysql # not compatible
query II rowsort label-2415
SELECT - SUM ( ALL - + 46 ) + - 11 AS col2, + 83 AS col1
----
35
83

query I rowsort
SELECT - 57 + 11 + 62 * + 41 * - 94 AS col1
----
-238994

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT - CASE 39 WHEN COUNT( + 63 ) - + + 42 + - 96 * - 3 THEN NULL WHEN - - 31 THEN - 76 * - 15 / + 57 END + - + 55 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2418
SELECT - CASE 39 WHEN COUNT ( + 63 ) - + + 42 + - 96 * - 3 THEN NULL WHEN - - 31 THEN - 76 * - 15 / + 57 END + - + 55 col2
----
NULL

query II rowsort
SELECT DISTINCT 61 AS col1, 67
----
61
67

query I rowsort
SELECT DISTINCT + 93 + - - 15 AS col1
----
108

query I rowsort
SELECT - CASE - 20 WHEN 12 / - 27 + + + 17 * 2 THEN + 33 WHEN 31 THEN + 27 END + ( - 69 ) + - 16 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2422
SELECT ALL 80 DIV + + 95 + - 86
----
-86

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL 80 / + + 95 + - 86
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2423
SELECT DISTINCT COUNT( * ) DIV - 89 * - 46 + 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT COUNT ( * ) / - 89 * - 46 + 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT + NULLIF ( - COUNT( * ), COALESCE ( - - ( - 6 ), - 11 + - 72 * + + NULLIF ( - ( COUNT( * ) ), ( 44 ) ) ) * - AVG ( DISTINCT 12 ) * - 62 + - ( 27 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2424
SELECT + NULLIF ( - COUNT ( * ), COALESCE ( - - ( - 6 ), - 11 + - 72 * + + NULLIF ( - ( COUNT ( * ) ), ( 44 ) ) ) * - AVG ( DISTINCT 12 ) * - 62 + - ( 27 ) ) AS col1
----
-1

query I rowsort
SELECT + - 16 + - 53 * - 15 * - 29 AS col0
----
-23071

query I rowsort
SELECT DISTINCT + COALESCE ( + 45, - 99 + - 30 ) col1
----
45

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

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

query I rowsort
SELECT - 88 * 48 + + 50
----
-4174

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT DISTINCT COUNT( * ) * + 29 - + 34 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT COUNT ( * ) * + 29 - + 34 AS col1
----
-5

query I rowsort
SELECT - - NULLIF ( + 59, + - 20 + - 40 * - 80 ) * 11
----
649

query I rowsort
SELECT + + 14 * - - 6 - + 9 + + 1 AS col2
----
76

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

skipif mysql # not compatible
query I rowsort label-2432
SELECT + MAX ( 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT + - COALESCE ( + + 82, - - COUNT( * ), 37 * - + 17 + + 51 * - 40 * + COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-2433
SELECT + - COALESCE ( + + 82, - - COUNT ( * ), 37 * - + 17 + + 51 * - 40 * + COUNT ( * ) )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2434
SELECT + ( + ( 45 ) ) AS col1, COUNT( + - 18 ) + + 39 DIV + + 8
----
45
5

skipif mysql # not compatible
query II rowsort label-2434
SELECT + ( + ( 45 ) ) AS col1, COUNT ( + - 18 ) + + 39 / + + 8
----
45
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2435
SELECT ALL + 1, COALESCE ( + 7, + 56 + - 10 - + 96 + - 43 * COUNT( * ), + ( - 2 ) DIV 16 ) * + 49 AS col1
----
1
343

skipif mysql # not compatible
query II rowsort label-2435
SELECT ALL + 1, COALESCE ( + 7, + 56 + - 10 - + 96 + - 43 * COUNT ( * ), + ( - 2 ) / 16 ) * + 49 AS col1
----
1
343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2436
SELECT + + 60 AS col1, 92 * - - 80 - + COUNT( * ) - - + NULLIF ( - 48, - - COALESCE ( 37, + ( - 0 ), MAX( + 66 ) + CASE - 84 WHEN - 22 THEN - 64 ELSE NULL END ) ) col0, CAST( NULL AS SIGNED ) AS col2
----
60
7311
NULL

skipif mysql # not compatible
query III rowsort label-2436
SELECT + + 60 AS col1, 92 * - - 80 - + COUNT ( * ) - - + NULLIF ( - 48, - - COALESCE ( 37, + ( - 0 ), MAX ( + 66 ) + CASE - 84 WHEN - 22 THEN - 64 ELSE NULL END ) ) col0, CAST ( NULL AS INTEGER ) AS col2
----
60
7311
NULL

query I rowsort
SELECT + ( - 97 ) * - 9 + 32
----
905

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT COUNT( 94 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2438
SELECT COUNT ( 94 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2439
SELECT ALL 29 DIV - 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL 29 / - 80 AS col1
----
0

query I rowsort
SELECT CASE 30 WHEN + - 32 + + - 26 / + - 89 / 88 - - 25 THEN 1 WHEN 79 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2441
SELECT ALL - 41 DIV ( + 64 ) * + + 91
----
0

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL - 41 / ( + 64 ) * + + 91
----
0

query I rowsort
SELECT + 52 + 1
----
53

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2445
SELECT MAX( - 49 ) AS col2, + COUNT( * ) + + + 55 + + 57 DIV + - 41
----
-49
55

skipif mysql # not compatible
query II rowsort label-2445
SELECT MAX ( - 49 ) AS col2, + COUNT ( * ) + + + 55 + + 57 / + - 41
----
-49
55

query II rowsort
SELECT ALL 87 * + 28 col1, 66 AS col1
----
2436
66

query I rowsort
SELECT DISTINCT + 61 + + 64
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT ALL - COUNT( * ) + + COUNT( 60 )
----
0

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL - COUNT ( * ) + + COUNT ( 60 )
----
0

query I rowsort
SELECT ALL 51 + + 5 AS col2
----
56

query II rowsort
SELECT ALL 44 + + + COALESCE ( - - 41, 63, + 5 ) AS col0, 79 + - 5 + + 13 * + 73 * + 46 col0
----
85
43728

query I rowsort
SELECT + 26 * 61
----
1586

query I rowsort
SELECT DISTINCT ( - ( - + 51 ) )
----
51

query II rowsort
SELECT + - 92 + + 28, 26 - - 64 AS col2
----
-64
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2454
SELECT DISTINCT + 23 + - ( - - 70 ) + - 20 DIV - SUM( ALL + 51 ) - + 21 + 41 * + + 42 * - 34
----
-58616

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT + 23 + - ( - - 70 ) + - 20 / - SUM ( ALL + 51 ) - + 21 + 41 * + + 42 * - 34
----
-58616

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - 73 * + COUNT( * ) * 7 AS col1
----
-511

skipif mysql # not compatible
query I rowsort label-2455
SELECT - 73 * + COUNT ( * ) * 7 AS col1
----
-511

onlyif mysql # DIV for integer division: 
query I rowsort label-2456
SELECT ALL - + 73 DIV + 24 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - + 73 / + 24 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL + COUNT( * ) - + - 42 * + - 19
----
-797

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL + COUNT ( * ) - + - 42 * + - 19
----
-797

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2458
SELECT - 64 DIV 77 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2458
SELECT - 64 / 77 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT + SUM( ALL + 35 ) + + 23 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-2459
SELECT + SUM ( ALL + 35 ) + + 23 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT - 68 * - + 31 - - + COUNT( * ) - + + 82 + 88 * MIN( DISTINCT - + 10 )
----
1147

skipif mysql # not compatible
query I rowsort label-2460
SELECT - 68 * - + 31 - - + COUNT ( * ) - + + 82 + 88 * MIN ( DISTINCT - + 10 )
----
1147

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ( 85 ) * + - 69 * 76 - - MAX( ALL + + 45 ) + + 44 + 73 - - 7 * COUNT( * ) * + - 14
----
-445676

skipif mysql # not compatible
query I rowsort label-2461
SELECT ( 85 ) * + - 69 * 76 - - MAX ( ALL + + 45 ) + + 44 + 73 - - 7 * COUNT ( * ) * + - 14
----
-445676

query I rowsort
SELECT ALL - - NULLIF ( + 6, 15 * + 65 * + - 5 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2463
SELECT DISTINCT - CAST( + + NULLIF ( 90, + 85 ) AS SIGNED ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT - CAST ( + + NULLIF ( 90, + 85 ) AS INTEGER ) AS col1
----
-90

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

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

query I rowsort
SELECT 66 + + 87 col2
----
153

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2467
SELECT + CASE - 71 WHEN + - 19 THEN NULL ELSE + 18 END * + CAST( + 55 AS SIGNED ) + + 50 + - 70
----
970

skipif mysql # not compatible
query I rowsort label-2467
SELECT + CASE - 71 WHEN + - 19 THEN NULL ELSE + 18 END * + CAST ( + 55 AS INTEGER ) + + 50 + - 70
----
970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2468
SELECT - CAST( + 51 AS SIGNED ) * 31 + + + COUNT( * )
----
-1580

skipif mysql # not compatible
query I rowsort label-2468
SELECT - CAST ( + 51 AS INTEGER ) * 31 + + + COUNT ( * )
----
-1580

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT 56 + - - 67 - + 50 - COUNT( * ) * - 18 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-2469
SELECT 56 + - - 67 - + 50 - COUNT ( * ) * - 18 AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2470
SELECT 62 DIV - + 74
----
0

skipif mysql # not compatible
query I rowsort label-2470
SELECT 62 / - + 74
----
0

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

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

query I rowsort
SELECT DISTINCT - 65 * + + 4 AS col2
----
-260

query I rowsort
SELECT ALL 39 + 10 + 63 + - 96 AS col2
----
16

query I rowsort
SELECT DISTINCT 10 + + + 24 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2475
SELECT CAST( + 20 AS SIGNED ) + - 47 + - 54 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-2475
SELECT CAST ( + 20 AS INTEGER ) + - 47 + - 54 AS col0
----
-81

query I rowsort
SELECT 97 * - 5 AS col0
----
-485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2477
SELECT DISTINCT 45 + + NULLIF ( MIN( - + 33 ), - 13 + + - 30 * + 46 DIV - 66 ) DIV + 55
----
45

skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT 45 + + NULLIF ( MIN ( - + 33 ), - 13 + + - 30 * + 46 / - 66 ) / + 55
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2478
SELECT ALL 3 DIV - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL 3 / - 57 AS col0
----
0

query II rowsort
SELECT 86 AS col1, - 53
----
86
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2480
SELECT 87 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT 87 + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT 67 col1, 91
----
67
91

onlyif mysql # DIV for integer division: 
query II rowsort label-2482
SELECT DISTINCT 70 - + - COALESCE ( + - 69, + 62 + + + 39, - 27 DIV + 25 DIV - 29 ) AS col0, - ( - + 12 ) AS col0
----
1
12

skipif mysql # not compatible
query II rowsort label-2482
SELECT DISTINCT 70 - + - COALESCE ( + - 69, + 62 + + + 39, - 27 / + 25 / - 29 ) AS col0, - ( - + 12 ) AS col0
----
1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT NULLIF ( - + COUNT( * ), + + 41 + - 30 * + 3 * ( + 15 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2483
SELECT NULLIF ( - + COUNT ( * ), + + 41 + - 30 * + 3 * ( + 15 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ALL - - 12 * + MIN( DISTINCT + 90 ) * - 15 - + ( + + 24 )
----
-16224

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL - - 12 * + MIN ( DISTINCT + 90 ) * - 15 - + ( + + 24 )
----
-16224

query II rowsort
SELECT + ( + 74 ) + 20 AS col2, + 85 * + + 76 AS col2
----
94
6460

query II rowsort
SELECT - 95 AS col1, + 25
----
-95
25

query I rowsort
SELECT DISTINCT 32 * + + 85 AS col0
----
2720

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

query I rowsort
SELECT ( - 23 ) + + 65 - + - 46 AS col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-2490
SELECT ALL + 59 * - COUNT( DISTINCT 38 ) col1, + 18 * + - 48 AS col2
----
-59
-864

skipif mysql # not compatible
query II rowsort label-2490
SELECT ALL + 59 * - COUNT ( DISTINCT 38 ) col1, + 18 * + - 48 AS col2
----
-59
-864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2491
SELECT CAST( + + 91 AS SIGNED ) * - 96 * - MAX( DISTINCT - ( + 41 ) ) * - + 39 + COUNT( * ) * + 55 + 3
----
13968922

skipif mysql # not compatible
query I rowsort label-2491
SELECT CAST ( + + 91 AS INTEGER ) * - 96 * - MAX ( DISTINCT - ( + 41 ) ) * - + 39 + COUNT ( * ) * + 55 + 3
----
13968922

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2492
SELECT DISTINCT - + CAST( + - 16 AS SIGNED ) DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT - + CAST ( + - 16 AS INTEGER ) / 36
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2493
SELECT + + COALESCE ( 50, - + 84 + + CAST( NULL AS SIGNED ) + + 85 + + 0 DIV 74 * - - 60 * + 98 )
----
50

skipif mysql # not compatible
query I rowsort label-2493
SELECT + + COALESCE ( 50, - + 84 + + CAST ( NULL AS INTEGER ) + + 85 + + 0 / 74 * - - 60 * + 98 )
----
50

query I rowsort
SELECT DISTINCT - ( + - ( 80 ) ) AS col2
----
80

query II rowsort
SELECT 66, + 97 AS col2
----
66
97

query I rowsort
SELECT DISTINCT + + 20 * + + 47 AS col2
----
940

query I rowsort
SELECT DISTINCT + - 3 * 61 + + - 41
----
-224

query I rowsort
SELECT ALL + 93 + 48 AS col0
----
141

query I rowsort
SELECT + 10 * + - 58
----
-580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2500
SELECT 72 DIV ( - - COUNT( * ) ) DIV - + 67 + - 26
----
-27

skipif mysql # not compatible
query I rowsort label-2500
SELECT 72 / ( - - COUNT ( * ) ) / - + 67 + - 26
----
-27

query II rowsort
SELECT 34, + 62 AS col2
----
34
62

query I rowsort
SELECT 46 - + 29 * - - 10 * - + 53 - 90
----
15326

query I rowsort
SELECT ALL - 78 * 82 AS col0
----
-6396

query I rowsort
SELECT ALL + 24 + ( - 89 ) col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2505
SELECT + 78 col1, - CAST( - + COUNT( - - 13 ) AS SIGNED )
----
78
1

skipif mysql # not compatible
query II rowsort label-2505
SELECT + 78 col1, - CAST ( - + COUNT ( - - 13 ) AS INTEGER )
----
78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT DISTINCT - NULLIF ( - COUNT( * ), - NULLIF ( COUNT( ALL - 22 ), + 70 + COUNT( * ) + 55 ) + - 56 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT - NULLIF ( - COUNT ( * ), - NULLIF ( COUNT ( ALL - 22 ), + 70 + COUNT ( * ) + 55 ) + - 56 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2507
SELECT ALL - 7 col1, + ( + COUNT( * ) ) + - 66 AS col2
----
-7
-65

skipif mysql # not compatible
query II rowsort label-2507
SELECT ALL - 7 col1, + ( + COUNT ( * ) ) + - 66 AS col2
----
-7
-65

query II rowsort
SELECT 34 AS col1, 89 * + - 64 + 15 AS col2
----
34
-5681

onlyif mysql # aggregate syntax: 
query II rowsort label-2509
SELECT ALL - 52 col0, COUNT( DISTINCT - 4 ) col0
----
-52
1

skipif mysql # not compatible
query II rowsort label-2509
SELECT ALL - 52 col0, COUNT ( DISTINCT - 4 ) col0
----
-52
1

query I rowsort
SELECT DISTINCT + 6 + - 96 + - 46 + 26 + 21
----
-89

query I rowsort
SELECT ALL 33 * + 99
----
3267

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT 97 + COUNT( DISTINCT 49 ) + MIN( + + 17 ) * - 53 AS col0
----
-803

skipif mysql # not compatible
query I rowsort label-2512
SELECT 97 + COUNT ( DISTINCT 49 ) + MIN ( + + 17 ) * - 53 AS col0
----
-803

query I rowsort
SELECT ALL + 89 + - 45 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT DISTINCT - 34 * - SUM( 42 )
----
1428

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT - 34 * - SUM ( 42 )
----
1428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2515
SELECT DISTINCT 56 - 94 + CAST( NULL AS SIGNED ) + - 46 + SUM( ALL - - 47 ) + 65 / + 88 * - 27 / - - COUNT( * ) * + + 11 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT 56 - 94 + CAST ( NULL AS INTEGER ) + - 46 + SUM ( ALL - - 47 ) + 65 / + 88 * - 27 / - - COUNT ( * ) * + + 11 col2
----
NULL

query I rowsort
SELECT - 62 + 69
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2517
SELECT - 10 AS col1, - COUNT( * ) AS col2
----
-10
-1

skipif mysql # not compatible
query II rowsort label-2517
SELECT - 10 AS col1, - COUNT ( * ) AS col2
----
-10
-1

query I rowsort
SELECT + 85 + - - 30 + 87 * 78 + 14 + + 17 * 89
----
8428

query I rowsort
SELECT DISTINCT 91 - - 28 * + 59
----
1743

query II rowsort
SELECT ALL 63 AS col1, - 42 - 77
----
63
-119

query I rowsort
SELECT + 56 * + - 45 AS col0
----
-2520

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

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

query I rowsort
SELECT DISTINCT - - 68 - - 57 * - ( 94 ) + + 67 AS col1
----
-5223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2524
SELECT + 17 - + 77 + - 56 * - CASE + + COUNT( * ) WHEN - - CASE + COALESCE ( + 13, - 23 * + 65 - + 92 ) WHEN CASE + 69 WHEN ( + SUM( ALL - - 20 ) ) - - 2 + - - 36 THEN NULL WHEN + CASE + - 35 WHEN - MIN( + CAST( NULL AS SIGNED ) ) THEN - 7 * + 76 END THEN + - 51 + COALESCE ( - ( + 46 ), - 82 * + - 39 ) + COUNT( DISTINCT - + 55 ) * + + COUNT( * ) * + CAST( NULL AS SIGNED ) + COALESCE ( 30, 58 * - 70 + - - 17 / + 98 * 73 ) ELSE NULL END THEN + CASE + + 98 WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN - + 84 THEN NULL ELSE - 92 END END + 34 * ( CAST( NULL AS SIGNED ) ) THEN - NULLIF ( + 73, COALESCE ( 73, 74 + 88, + 3 ) * + 17 ) * 80 WHEN 79 THEN - ( 79 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2524
SELECT + 17 - + 77 + - 56 * - CASE + + COUNT ( * ) WHEN - - CASE + COALESCE ( + 13, - 23 * + 65 - + 92 ) WHEN CASE + 69 WHEN ( + SUM ( ALL - - 20 ) ) - - 2 + - - 36 THEN NULL WHEN + CASE + - 35 WHEN - MIN ( + CAST ( NULL AS INTEGER ) ) THEN - 7 * + 76 END THEN + - 51 + COALESCE ( - ( + 46 ), - 82 * + - 39 ) + COUNT ( DISTINCT - + 55 ) * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + COALESCE ( 30, 58 * - 70 + - - 17 / + 98 * 73 ) ELSE NULL END THEN + CASE + + 98 WHEN CAST ( NULL AS REAL ) THEN NULL WHEN - + 84 THEN NULL ELSE - 92 END END + 34 * ( CAST ( NULL AS INTEGER ) ) THEN - NULLIF ( + 73, COALESCE ( 73, 74 + 88, + 3 ) * + 17 ) * 80 WHEN 79 THEN - ( 79 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2525
SELECT + 22 DIV 53 * - 42
----
0

skipif mysql # not compatible
query I rowsort label-2525
SELECT + 22 / 53 * - 42
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2526
SELECT + ( + CAST( NULL AS DECIMAL ) ) * CAST( + MIN( 42 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT + ( + CAST ( NULL AS REAL ) ) * CAST ( + MIN ( 42 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2527
SELECT ALL - COALESCE ( COUNT( * ), - ( - 4 ) ) * + COUNT( * ) + + - 85, SUM( ALL 98 ) AS col0
----
-86
98

skipif mysql # not compatible
query II rowsort label-2527
SELECT ALL - COALESCE ( COUNT ( * ), - ( - 4 ) ) * + COUNT ( * ) + + - 85, SUM ( ALL 98 ) AS col0
----
-86
98

onlyif mysql # DIV for integer division: 
query II rowsort label-2528
SELECT ALL 47 col0, 39 DIV - 87 AS col2
----
47
0

skipif mysql # not compatible
query II rowsort label-2528
SELECT ALL 47 col0, 39 / - 87 AS col2
----
47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT - CASE NULLIF ( + 77, + ( - COUNT( DISTINCT + - 81 ) ) ) WHEN + 27 THEN NULL ELSE 81 END AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-2529
SELECT - CASE NULLIF ( + 77, + ( - COUNT ( DISTINCT + - 81 ) ) ) WHEN + 27 THEN NULL ELSE 81 END AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT - CASE + - 24 WHEN COUNT( * ) * + 0 THEN + 93 * + ( 39 ) WHEN - 47 - + 80 / - ( + + 46 ) * + 71 + - 43 + 37 THEN - COUNT( ALL - 48 ) + - - COUNT( * ) * - 2 WHEN + 8 + - 35 * - 79 * - + 94 + - - 5 THEN NULL END / - 20 - + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2530
SELECT - CASE + - 24 WHEN COUNT ( * ) * + 0 THEN + 93 * + ( 39 ) WHEN - 47 - + 80 / - ( + + 46 ) * + 71 + - 43 + 37 THEN - COUNT ( ALL - 48 ) + - - COUNT ( * ) * - 2 WHEN + 8 + - 35 * - 79 * - + 94 + - - 5 THEN NULL END / - 20 - + + 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL 17 * - 1 + - + ( + COUNT( * ) )
----
-18

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL 17 * - 1 + - + ( + COUNT ( * ) )
----
-18

query I rowsort
SELECT ALL 50 * - ( + - 94 ) AS col2
----
4700

query I rowsort
SELECT ALL - 66 * - 24 + + + 48 + 16
----
1648

onlyif mysql # DIV for integer division: 
query II rowsort label-2534
SELECT DISTINCT + + 68 AS col1, 74 * + 63 DIV 21
----
68
222

skipif mysql # not compatible
query II rowsort label-2534
SELECT DISTINCT + + 68 AS col1, 74 * + 63 / 21
----
68
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2535
SELECT - COUNT( * ) * + NULLIF ( - 0, - COUNT( * ) DIV 20 + + ( - + 0 ) * 75 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT - COUNT ( * ) * + NULLIF ( - 0, - COUNT ( * ) / 20 + + ( - + 0 ) * 75 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT - - 87 DIV - 89 * - - 94 * - + ( + - 12 ) * + 97 + - + 95
----
-95

skipif mysql # not compatible
query I rowsort label-2536
SELECT - - 87 / - 89 * - - 94 * - + ( + - 12 ) * + 97 + - + 95
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT NULLIF ( COUNT( * ), - 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2537
SELECT NULLIF ( COUNT ( * ), - 47 ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-2538
SELECT + 76 + - COUNT ( * ) AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2539
SELECT CAST( NULL AS SIGNED ) / - - 7 - - 7 * + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2539
SELECT CAST ( NULL AS INTEGER ) / - - 7 - - 7 * + 29 AS col2
----
NULL

query I rowsort
SELECT ALL 73 * - + 63 + + 8 * + 49 AS col0
----
-4207

query I rowsort
SELECT 29 * - - 11 + - - 77 AS col0
----
396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2542
SELECT ALL - CAST( + 41 AS SIGNED ) * + 8 * - ( + 93 ) + + - 68 - - 54 * - 8 * + - ( - + COUNT( * ) ) + + ( + COALESCE ( - - MIN( DISTINCT 10 ), + CAST( NULL AS SIGNED ) * 52 ) ) + - 52 + - ( 82 ) DIV + + COUNT( * ) AS col0, COUNT( * )
----
29880
1

skipif mysql # not compatible
query II rowsort label-2542
SELECT ALL - CAST ( + 41 AS INTEGER ) * + 8 * - ( + 93 ) + + - 68 - - 54 * - 8 * + - ( - + COUNT ( * ) ) + + ( + COALESCE ( - - MIN ( DISTINCT 10 ), + CAST ( NULL AS INTEGER ) * 52 ) ) + - 52 + - ( 82 ) / + + COUNT ( * ) AS col0, COUNT ( * )
----
29880
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2543
SELECT - CAST( NULL AS DECIMAL ) + MAX( + ( - - 36 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT - CAST ( NULL AS REAL ) + MAX ( + ( - - 36 ) )
----
NULL

query I rowsort
SELECT - 98 + - - 48 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT DISTINCT + 2 * + COUNT( * ) * + 68
----
136

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT + 2 * + COUNT ( * ) * + 68
----
136

query I rowsort
SELECT ALL - 48 * + - 20 col2
----
960

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2547
SELECT + CAST( + - 16 AS SIGNED ) DIV 38 * 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT + CAST ( + - 16 AS INTEGER ) / 38 * 42 AS col2
----
0

query I rowsort
SELECT - 92 * 52 AS col0
----
-4784

onlyif mysql # aggregate syntax: 
query II rowsort label-2549
SELECT ALL + MIN( - - 40 ) AS col0, ( - 78 ) * + 70 + - + 58 + + 78 AS col2
----
40
-5440

skipif mysql # not compatible
query II rowsort label-2549
SELECT ALL + MIN ( - - 40 ) AS col0, ( - 78 ) * + 70 + - + 58 + + 78 AS col2
----
40
-5440

onlyif mysql # DIV for integer division: 
query I rowsort label-2550
SELECT - 68 * + + 80 * - 55 DIV - 1 AS col1
----
-299200

skipif mysql # not compatible
query I rowsort label-2550
SELECT - 68 * + + 80 * - 55 / - 1 AS col1
----
-299200

onlyif mysql # DIV for integer division: 
query II rowsort label-2551
SELECT ALL ( 5 ) AS col1, 3 DIV 35
----
5
0

skipif mysql # not compatible
query II rowsort label-2551
SELECT ALL ( 5 ) AS col1, 3 / 35
----
5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT ALL CAST( 32 AS SIGNED ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL CAST ( 32 AS INTEGER ) AS col0
----
32

query I rowsort
SELECT - 35 - - 13 * - 81
----
-1088

query I rowsort
SELECT - 53 + 27 * - + 64 * + 82 AS col1
----
-141749

query I rowsort
SELECT - 93 * + 41 AS col2
----
-3813

query I rowsort
SELECT - 62 * + CASE WHEN NOT 32 >= AVG ( + 73 ) * + COALESCE ( + + 74, - 64, - 61, 98 * + 32 ) THEN + 80 * + 55 ELSE NULL END + - 49 AS col1
----
-272849

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL + + 53 * - 96 - - MAX( - 53 ) * + + 14
----
-5830

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL + + 53 * - 96 - - MAX ( - 53 ) * + + 14
----
-5830

query I rowsort
SELECT - + 36 + - + 4 AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2559
SELECT - - 62 + - - 91, 83 * 85 * MAX( DISTINCT CAST( + - 21 AS SIGNED ) ) AS col2
----
153
-148155

skipif mysql # not compatible
query II rowsort label-2559
SELECT - - 62 + - - 91, 83 * 85 * MAX ( DISTINCT CAST ( + - 21 AS INTEGER ) ) AS col2
----
153
-148155

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT + - 56 - + - MAX( + 52 ) + - 30 * + 50 AS col2
----
-1504

skipif mysql # not compatible
query I rowsort label-2560
SELECT + - 56 - + - MAX ( + 52 ) + - 30 * + 50 AS col2
----
-1504

query I rowsort
SELECT DISTINCT 77 + - - 70 + - 91 * - COALESCE ( - 93, - - 20, - + 37 ) * + - 16 - + + 28 AS col2
----
135527

query I rowsort
SELECT ALL 95 + - 68 + + - 86
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2563
SELECT + CASE - - 19 WHEN + 67 THEN NULL WHEN + + 58 * - 77 * - CAST( - + CAST( 62 AS DECIMAL ) AS SIGNED ) - + - 79 * + ( + - COUNT( * ) ) / 23 THEN NULL WHEN 95 THEN - 3 * + COALESCE ( + 53, - COUNT( * ) ) END + - + COUNT( * ) + - + 37 * + 21 * + - 47 + ( + 28 ) / + ( - + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT + CASE - - 19 WHEN + 67 THEN NULL WHEN + + 58 * - 77 * - CAST ( - + CAST ( 62 AS REAL ) AS INTEGER ) - + - 79 * + ( + - COUNT ( * ) ) / 23 THEN NULL WHEN 95 THEN - 3 * + COALESCE ( + 53, - COUNT ( * ) ) END + - + COUNT ( * ) + - + 37 * + 21 * + - 47 + ( + 28 ) / + ( - + 76 )
----
NULL

query I rowsort
SELECT + 78 + + 63 * + + ( 22 )
----
1464

query I rowsort
SELECT - - 60 * - + ( - - 73 )
----
-4380

query II rowsort
SELECT + - 55 * + 8, 44 + 80 col2
----
-440
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT + + COUNT( + 53 ) * 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2567
SELECT + + COUNT ( + 53 ) * 30 AS col0
----
30

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2569
SELECT DISTINCT 63 / CASE + - CAST( + 2 AS DECIMAL ) WHEN - 13 + - 45 THEN NULL WHEN + 97 THEN + - CAST( NULL AS SIGNED ) * 31 * 49 END + MIN( DISTINCT 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT 63 / CASE + - CAST ( + 2 AS REAL ) WHEN - 13 + - 45 THEN NULL WHEN + 97 THEN + - CAST ( NULL AS INTEGER ) * 31 * 49 END + MIN ( DISTINCT 13 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT ALL - 45 DIV 68 + + + 66 * - 3 - + - 62
----
-136

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL - 45 / 68 + + + 66 * - 3 - + - 62
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT DISTINCT + 61 / + 67 - + 99 + 7 * - CASE MAX( ALL 56 ) WHEN - 46 THEN 8 END * + + 31 + 74 / + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT + 61 / + 67 - + 99 + 7 * - CASE MAX ( ALL 56 ) WHEN - 46 THEN 8 END * + + 31 + 74 / + 87 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 87 * - 90 AS col0
----
-7830

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT + ( + 2 ) * - - 8 + MIN( - 15 ) + - 8 * - 2 * - + ( 64 ) col1
----
-1023

skipif mysql # not compatible
query I rowsort label-2573
SELECT + ( + 2 ) * - - 8 + MIN ( - 15 ) + - 8 * - 2 * - + ( 64 ) col1
----
-1023

query II rowsort
SELECT ALL + 45 AS col2, + 74 * + - 80 + ( - - CASE + - 57 WHEN + 3 THEN NULL ELSE - + ( - 1 ) + - 17 END ) AS col1
----
45
-5936

query I rowsort
SELECT DISTINCT 15 - 15 AS col1
----
0

query I rowsort
SELECT ALL - CASE WHEN NULL < 55 THEN 56 + - - 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT - SUM( - - 68 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT - SUM ( - - 68 ) AS col1
----
-68

query I rowsort
SELECT 25 - 81 col2
----
-56

query I rowsort
SELECT 31 + - 86 AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT + 47 / - CAST( NULL AS SIGNED ) * - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT + 47 / - CAST ( NULL AS INTEGER ) * - 85 AS col1
----
NULL

query I rowsort
SELECT ALL - 71 * 8
----
-568

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT SUM( - 85 ) * 24 AS col0
----
-2040

skipif mysql # not compatible
query I rowsort label-2582
SELECT SUM ( - 85 ) * 24 AS col0
----
-2040

onlyif mysql # DIV for integer division: 
query I rowsort label-2583
SELECT ( 81 ) + + 51 DIV + 61
----
81

skipif mysql # not compatible
query I rowsort label-2583
SELECT ( 81 ) + + 51 / + 61
----
81

query I rowsort
SELECT ALL + - 26 + + 49 * + ( + 75 ) AS col2
----
3649

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT - MAX( + - 18 ) col1
----
18

skipif mysql # not compatible
query I rowsort label-2585
SELECT - MAX ( + - 18 ) col1
----
18

query II rowsort
SELECT DISTINCT - - 96 + + 68 + - ( - 27 ) AS col0, 66 AS col0
----
191
66

query I rowsort
SELECT ALL + + NULLIF ( + 40, - + 11 * - 40 ) + - - 0 + + 70 * - - 38 * + 47 AS col2
----
125060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2588
SELECT + COALESCE ( - - COUNT( * ), - 5, - CASE - ( - 47 ) WHEN - AVG ( DISTINCT ( - COALESCE ( 17, - 45 * 56 ) ) ) THEN + + CASE + + CASE - COUNT( * ) WHEN + 57 / + - 92 + - - CAST( + - 62 AS DECIMAL ) - + + COUNT( * ) + + - 22 * - + 72 / - - 4 THEN + COUNT( - - 16 ) / 25 ELSE + COUNT( + - 89 ) / + 19 * - 26 * + + 13 END WHEN 0 THEN NULL WHEN NULLIF ( + 44, - MIN( 67 ) + + AVG ( NULLIF ( - 53, - + 35 ) ) ) THEN 86 * + - 2 * + ( + ( - 58 ) ) + - + ( + COALESCE ( 59, 9 + - 49 ) ) * - 0 ELSE NULL END WHEN COALESCE ( 14, + 61 + 47 / 88 ) + CAST( NULL AS SIGNED ) THEN NULL WHEN + 90 THEN NULL ELSE NULL END ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2588
SELECT + COALESCE ( - - COUNT ( * ), - 5, - CASE - ( - 47 ) WHEN - AVG ( DISTINCT ( - COALESCE ( 17, - 45 * 56 ) ) ) THEN + + CASE + + CASE - COUNT ( * ) WHEN + 57 / + - 92 + - - CAST ( + - 62 AS REAL ) - + + COUNT ( * ) + + - 22 * - + 72 / - - 4 THEN + COUNT ( - - 16 ) / 25 ELSE + COUNT ( + - 89 ) / + 19 * - 26 * + + 13 END WHEN 0 THEN NULL WHEN NULLIF ( + 44, - MIN ( 67 ) + + AVG ( NULLIF ( - 53, - + 35 ) ) ) THEN 86 * + - 2 * + ( + ( - 58 ) ) + - + ( + COALESCE ( 59, 9 + - 49 ) ) * - 0 ELSE NULL END WHEN COALESCE ( 14, + 61 + 47 / 88 ) + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 90 THEN NULL ELSE NULL END ) col2
----
1

query I rowsort
SELECT ALL - - 33 * - 44 AS col1
----
-1452

query I rowsort
SELECT ALL ( 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT ALL + - 54 + + - COUNT( NULLIF ( - 7, + 24 / 2 / + - 30 + - + 46 + - 33 * + 53 + - - 63 ) ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL + - 54 + + - COUNT ( NULLIF ( - 7, + 24 / 2 / + - 30 + - + 46 + - 33 * + 53 + - - 63 ) ) AS col2
----
-55

query I rowsort
SELECT ALL - 20 * + 70
----
-1400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2593
SELECT MAX( DISTINCT - + ( - 77 ) ) - - 4 + - 4 DIV - 57 col1
----
81

skipif mysql # not compatible
query I rowsort label-2593
SELECT MAX ( DISTINCT - + ( - 77 ) ) - - 4 + - 4 / - 57 col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2594
SELECT ( - 62 ) DIV - 64 + MIN( DISTINCT + 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-2594
SELECT ( - 62 ) / - 64 + MIN ( DISTINCT + 82 ) AS col0
----
82

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

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

query I rowsort
SELECT ( - ( + 0 ) ) * + ( - - 52 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2597
SELECT 19 * - NULLIF ( + COUNT( * ), + 1 ), 36 col2
----
NULL
36

skipif mysql # not compatible
query II rowsort label-2597
SELECT 19 * - NULLIF ( + COUNT ( * ), + 1 ), 36 col2
----
NULL
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2598
SELECT 93 DIV + 71 - + 16 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2598
SELECT 93 / + 71 - + 16 AS col2
----
-15

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

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL 75 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT - 2 * - 39 * + - 81 + - + 49 * + CAST( 49 AS SIGNED ) AS col2
----
-8719

skipif mysql # not compatible
query I rowsort label-2600
SELECT - 2 * - 39 * + - 81 + - + 49 * + CAST ( 49 AS INTEGER ) AS col2
----
-8719

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT COALESCE ( 12, - + SUM( DISTINCT + 29 ) * + 85 + - 73 ) * + - 41 * - 27 AS col0
----
13284

skipif mysql # not compatible
query I rowsort label-2601
SELECT COALESCE ( 12, - + SUM ( DISTINCT + 29 ) * + 85 + - 73 ) * + - 41 * - 27 AS col0
----
13284

onlyif mysql # DIV for integer division: 
query I rowsort label-2602
SELECT 3 DIV 35 DIV + 86 + + 45 * - + 91 * + - 15 AS col1
----
61425

skipif mysql # not compatible
query I rowsort label-2602
SELECT 3 / 35 / + 86 + + 45 * - + 91 * + - 15 AS col1
----
61425

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT 32 * CASE + - 15 WHEN COUNT( * ) THEN - MIN( ALL - 82 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT 32 * CASE + - 15 WHEN COUNT ( * ) THEN - MIN ( ALL - 82 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2604
SELECT DISTINCT 32 * - 91 * - - MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT 32 * - 91 * - - MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT - CASE + SUM( ALL + 12 ) WHEN - 78 + + + ( + COUNT( * ) ) THEN NULL WHEN + 55 THEN 70 WHEN + + 43 THEN + - 40 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT - CASE + SUM ( ALL + 12 ) WHEN - 78 + + + ( + COUNT ( * ) ) THEN NULL WHEN + 55 THEN 70 WHEN + + 43 THEN + - 40 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2606
SELECT 20 * - COUNT( * ) + + 7 + - CASE - 67 WHEN - - CAST( NULL AS SIGNED ) THEN + + 88 / - + CAST( NULL AS SIGNED ) + 24 + + + 2 - + 70 * - 57 WHEN - 67 + CAST( - 38 AS SIGNED ) THEN NULL END / - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2606
SELECT 20 * - COUNT ( * ) + + 7 + - CASE - 67 WHEN - - CAST ( NULL AS INTEGER ) THEN + + 88 / - + CAST ( NULL AS INTEGER ) + 24 + + + 2 - + 70 * - 57 WHEN - 67 + CAST ( - 38 AS INTEGER ) THEN NULL END / - 79 AS col1
----
NULL

query I rowsort
SELECT + + 55 * + 99 * 89 + - + 3 + NULLIF ( + - 17, - - 75 )
----
484585

query II rowsort
SELECT DISTINCT + 92 + - 72 AS col2, 60 * + 64
----
20
3840

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2609
SELECT ALL 71 + - CAST( NULL AS DECIMAL ) + - ( + MIN( + - 69 ) ) + + 53 * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL 71 + - CAST ( NULL AS REAL ) + - ( + MIN ( + - 69 ) ) + + 53 * - 75
----
NULL

query I rowsort
SELECT ALL - 59 + 24
----
-35

query I rowsort
SELECT 94 + + 43 AS col2
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT + 47 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-2612
SELECT + 47 / 87
----
0

query I rowsort
SELECT ALL ( + + 42 ) + + 65 AS col2
----
107

query I rowsort
SELECT 74 + - 4 + + 75
----
145

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2615
SELECT ( CAST( NULL AS DECIMAL ) ) * + 50 - + + 70 + + COUNT( * ) + - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT ( CAST ( NULL AS REAL ) ) * + 50 - + + 70 + + COUNT ( * ) + - 98 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2616
SELECT - 13 + 10 + + ( + CAST( - + COUNT( * ) AS SIGNED ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2616
SELECT - 13 + 10 + + ( + CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2617
SELECT COUNT( + 10 ) - ( + 60 ) + - 76 DIV COUNT( * )
----
-135

skipif mysql # not compatible
query I rowsort label-2617
SELECT COUNT ( + 10 ) - ( + 60 ) + - 76 / COUNT ( * )
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2618
SELECT - 27 + 17 + - 94 + - + COUNT( * ) + + 97, - CAST( 76 AS SIGNED ) + 87 col0
----
-8
11

skipif mysql # not compatible
query II rowsort label-2618
SELECT - 27 + 17 + - 94 + - + COUNT ( * ) + + 97, - CAST ( 76 AS INTEGER ) + 87 col0
----
-8
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2619
SELECT ALL 97 * - + 16 * - + 84 + + CAST( NULL AS SIGNED ) AS col2, ( + MAX( 24 ) ) + - - 68 + - 85
----
NULL
7

skipif mysql # not compatible
query II rowsort label-2619
SELECT ALL 97 * - + 16 * - + 84 + + CAST ( NULL AS INTEGER ) AS col2, ( + MAX ( 24 ) ) + - - 68 + - 85
----
NULL
7

query I rowsort
SELECT DISTINCT 1 - - 4
----
5

query I rowsort
SELECT DISTINCT + 47 * + - 26 * - 60
----
73320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2622
SELECT 43 + + 94 * + CASE 21 WHEN - COUNT( * ) + - + 49 + + + CAST( NULL AS SIGNED ) + + ( + 27 ) THEN NULL ELSE 35 END * + 1 + - 98
----
3235

skipif mysql # not compatible
query I rowsort label-2622
SELECT 43 + + 94 * + CASE 21 WHEN - COUNT ( * ) + - + 49 + + + CAST ( NULL AS INTEGER ) + + ( + 27 ) THEN NULL ELSE 35 END * + 1 + - 98
----
3235

onlyif mysql # aggregate syntax: 
query II rowsort label-2623
SELECT - 54 * - ( - - 8 ) + - + 71 * 26, + COUNT( * ) col2
----
-1414
1

skipif mysql # not compatible
query II rowsort label-2623
SELECT - 54 * - ( - - 8 ) + - + 71 * 26, + COUNT ( * ) col2
----
-1414
1

query I rowsort
SELECT 91 + + - NULLIF ( + 35, + - 16 ) + - - 64 AS col0
----
120

query I rowsort
SELECT DISTINCT - 88 * 13 col1
----
-1144

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

skipif mysql # not compatible
query I rowsort label-2626
SELECT 0 + + 39 / - 46 * + COUNT ( * ) + + COUNT ( * ) * 46
----
46

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

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL MAX ( 93 )
----
93

query I rowsort
SELECT - 69 * + + 56 AS col2
----
-3864

query I rowsort
SELECT - 75 + + + 93 + + 15 + + - 97 + - 25 + - + 87 + 96 AS col2
----
-80

query I rowsort
SELECT - 93 * 21 col2
----
-1953

query I rowsort
SELECT ALL - 98 * 96
----
-9408

query II rowsort
SELECT DISTINCT + NULLIF ( 8, + 68 ), + 79 AS col1
----
8
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT DISTINCT - 89 * - + MAX( DISTINCT 40 )
----
3560

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT - 89 * - + MAX ( DISTINCT 40 )
----
3560

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2635
SELECT COALESCE ( COUNT( * ), - 43, + COUNT( DISTINCT + 80 ) DIV NULLIF ( + + 11, COALESCE ( - 74, + + 86 ) * ( - 46 ) * CASE + 56 WHEN - 18 + + - 48 + - ( - 86 ) + + - ( - 59 ) + + 61 * + 78 * 56 * 92 - + 69 * - - 48 * - 46 THEN NULL WHEN + - COUNT( * ) DIV + 13 + 63 * - 86 THEN - 29 * CASE - COUNT( * ) WHEN - - 94 + - ( CASE - 66 WHEN COALESCE ( 21, - 17 ) + + 42 * + 50 THEN NULL ELSE 18 - 82 END ) THEN - 80 END + 15 + + 26 WHEN + CASE + 62 WHEN 99 + ( 95 ) * COUNT( * ) THEN 87 + + 85 * ( - CAST( + 73 AS DECIMAL ) ) WHEN - 79 * ( 62 ) THEN NULL WHEN 31 THEN 18 END THEN NULL ELSE NULL END DIV + 0 + 25 ) + 72 - 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2635
SELECT COALESCE ( COUNT ( * ), - 43, + COUNT ( DISTINCT + 80 ) / NULLIF ( + + 11, COALESCE ( - 74, + + 86 ) * ( - 46 ) * CASE + 56 WHEN - 18 + + - 48 + - ( - 86 ) + + - ( - 59 ) + + 61 * + 78 * 56 * 92 - + 69 * - - 48 * - 46 THEN NULL WHEN + - COUNT ( * ) / + 13 + 63 * - 86 THEN - 29 * CASE - COUNT ( * ) WHEN - - 94 + - ( CASE - 66 WHEN COALESCE ( 21, - 17 ) + + 42 * + 50 THEN NULL ELSE 18 - 82 END ) THEN - 80 END + 15 + + 26 WHEN + CASE + 62 WHEN 99 + ( 95 ) * COUNT ( * ) THEN 87 + + 85 * ( - CAST ( + 73 AS REAL ) ) WHEN - 79 * ( 62 ) THEN NULL WHEN 31 THEN 18 END THEN NULL ELSE NULL END / + 0 + 25 ) + 72 - 1 ) AS col1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT ALL - CASE AVG ( + 33 ) WHEN - AVG ( - 74 ) + + 73 THEN 77 / 20 + + - COUNT( DISTINCT - - 78 ) + 71 END * 90 + - 81 * + ( - AVG ( ALL 98 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL - CASE AVG ( + 33 ) WHEN - AVG ( - 74 ) + + 73 THEN 77 / 20 + + - COUNT ( DISTINCT - - 78 ) + 71 END * 90 + - 81 * + ( - AVG ( ALL 98 ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT ALL NULLIF ( - 57, - 89 ) DIV + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL NULLIF ( - 57, - 89 ) / + 99 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2639
SELECT - 27 DIV - 41 col1
----
0

skipif mysql # not compatible
query I rowsort label-2639
SELECT - 27 / - 41 col1
----
0

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

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

query I rowsort
SELECT NULLIF ( + 13, - - 69 * + - 69 * - + 18 )
----
13

query I rowsort
SELECT + 3 * 72
----
216

query I rowsort
SELECT + 62 * + + 47 AS col2
----
2914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT - CAST( NULL AS SIGNED ) * + + 68 / - 75 - + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT - CAST ( NULL AS INTEGER ) * + + 68 / - 75 - + 15
----
NULL

query I rowsort
SELECT + COALESCE ( ( 28 ), + 22 * 81 ) AS col1
----
28

query I rowsort
SELECT DISTINCT - 38 * 96 + 75 AS col1
----
-3573

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

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

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL 59 * COUNT ( * ) + - 33 AS col2
----
26

query I rowsort
SELECT ALL - 64 * - ( + 36 ) col1
----
2304

query I rowsort
SELECT DISTINCT + 60 * + 79 + 70 * - 83
----
-1070

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT + COUNT( ALL 71 ) * 47 - ( COUNT( * ) + CASE COUNT( * ) + - 84 / - 66 WHEN 13 THEN + 62 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT + COUNT ( ALL 71 ) * 47 - ( COUNT ( * ) + CASE COUNT ( * ) + - 84 / - 66 WHEN 13 THEN + 62 END ) AS col0
----
NULL

query I rowsort
SELECT ALL 19 + 28 AS col2
----
47

query I rowsort
SELECT ALL 78 + ( 37 ) * 66 AS col2
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT - COALESCE ( CASE + 49 WHEN + 50 + + 74 THEN - 74 WHEN 64 THEN COUNT( * ) END, COUNT( * ), + CASE COUNT( ALL - 59 ) WHEN 34 - - 14 THEN NULL ELSE + 89 + + MIN( 59 ) END ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2654
SELECT - COALESCE ( CASE + 49 WHEN + 50 + + 74 THEN - 74 WHEN 64 THEN COUNT ( * ) END, COUNT ( * ), + CASE COUNT ( ALL - 59 ) WHEN 34 - - 14 THEN NULL ELSE + 89 + + MIN ( 59 ) END ) AS col1
----
-1

query I rowsort
SELECT + NULLIF ( 12, 15 + + ( + 79 ) ) * 76
----
912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2656
SELECT - COALESCE ( CAST( - 51 AS SIGNED ), + 97 )
----
51

skipif mysql # not compatible
query I rowsort label-2656
SELECT - COALESCE ( CAST ( - 51 AS INTEGER ), + 97 )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT ALL 65 - + 83 DIV - 22 col1
----
68

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL 65 - + 83 / - 22 col1
----
68

query I rowsort
SELECT - ( - 70 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT + NULLIF ( 54, + MIN( 9 ) / 27 + + 17 ) * 61
----
3294

skipif mysql # not compatible
query I rowsort label-2659
SELECT + NULLIF ( 54, + MIN ( 9 ) / 27 + + 17 ) * 61
----
3294

onlyif mysql # DIV for integer division: 
query I rowsort label-2660
SELECT ALL 12 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL 12 / 70
----
0

query I rowsort
SELECT + 82 + + 8 * - 53 AS col2
----
-342

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT + 11 - COUNT( * ) * + 25 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2663
SELECT + 11 - COUNT ( * ) * + 25 AS col0
----
-14

query I rowsort
SELECT - 76 * 50 AS col1
----
-3800

query I rowsort
SELECT + ( ( - CASE + 14 WHEN + NULLIF ( 13, 81 ) THEN + 9 END ) ) - - 55 AS col1
----
NULL

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

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

query I rowsort
SELECT + 63 + 34 * - 74 AS col1
----
-2453

query I rowsort
SELECT DISTINCT 28 * - 1
----
-28

query I rowsort
SELECT + 40 * 29
----
1160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2670
SELECT - CAST( + 55 AS SIGNED ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2670
SELECT - CAST ( + 55 AS INTEGER ) AS col0
----
-55

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

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

query I rowsort
SELECT ALL 22 * 19
----
418

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT 30 DIV 63 - 82
----
-82

skipif mysql # not compatible
query I rowsort label-2673
SELECT 30 / 63 - 82
----
-82

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2675
SELECT CAST( NULL AS SIGNED ) / - MAX( ALL - COALESCE ( - 13, 25 * 26 + 3, + 30 ) ) + CASE + 16 WHEN ( - 53 ) THEN COALESCE ( CAST( + MIN( ALL 9 ) AS DECIMAL ), - 20 * - ( 43 ) ) * 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT CAST ( NULL AS INTEGER ) / - MAX ( ALL - COALESCE ( - 13, 25 * 26 + 3, + 30 ) ) + CASE + 16 WHEN ( - 53 ) THEN COALESCE ( CAST ( + MIN ( ALL 9 ) AS REAL ), - 20 * - ( 43 ) ) * 34 END AS col1
----
NULL

query I rowsort
SELECT - 86 * 98 AS col0
----
-8428

query I rowsort
SELECT DISTINCT + ( + 40 ) col2
----
40

query I rowsort
SELECT - 49 * + 36 + + 76
----
-1688

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT - SUM( DISTINCT - 86 ) - SUM( DISTINCT - 56 ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-2679
SELECT - SUM ( DISTINCT - 86 ) - SUM ( DISTINCT - 56 ) AS col1
----
142

query I rowsort
SELECT 41 * - 45 + - 12 * + NULLIF ( 99, ( - CASE - 33 WHEN 50 THEN + 30 END ) ) AS col0
----
-3033

query I rowsort
SELECT ALL 32 * + 7 + 12 AS col0
----
236

query I rowsort
SELECT ALL + - NULLIF ( 85, + 42 )
----
-85

query I rowsort
SELECT ALL - + 99 * NULLIF ( - 31, + 60 * - 2 ) + + 16
----
3085

query I rowsort
SELECT + NULLIF ( - 75, 75 ) * ( + 65 + + 82 ) + 45 * - 30
----
-12375

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT DISTINCT - - 34 * COUNT( * ) + - 50 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT - - 34 * COUNT ( * ) + - 50 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT - SUM( 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2686
SELECT - SUM ( 2 ) AS col1
----
-2

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

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

query I rowsort
SELECT - 59 * - COALESCE ( 94, + 14 )
----
5546

query I rowsort
SELECT + 29 * - 83
----
-2407

query I rowsort
SELECT + 31 * 50 + + 79 AS col1
----
1629

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT - 86 / CASE 61 + 41 WHEN 36 THEN ( - COUNT( * ) ) + - NULLIF ( 76, 60 ) WHEN + 44 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT - 86 / CASE 61 + 41 WHEN 36 THEN ( - COUNT ( * ) ) + - NULLIF ( 76, 60 ) WHEN + 44 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + - 38 + ( + 1 )
----
-37

query I rowsort
SELECT - - 27 * 25
----
675

query I rowsort
SELECT ALL + 58 * + 90
----
5220

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

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT + COUNT ( * ) * 66 AS col0
----
66

query I rowsort
SELECT DISTINCT + + 97 * + 30 col2
----
2910

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT SUM( NULLIF ( + 42, - ( 40 ) ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT SUM ( NULLIF ( + 42, - ( 40 ) ) ) AS col2
----
42

query I rowsort
SELECT - 75 * + 71 AS col1
----
-5325

query I rowsort
SELECT 72 + - 67 * + 76
----
-5020

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT + SUM( - 35 ) + + 69 * + 76 AS col2
----
5209

skipif mysql # not compatible
query I rowsort label-2700
SELECT + SUM ( - 35 ) + + 69 * + 76 AS col2
----
5209

query I rowsort
SELECT DISTINCT + 64 * NULLIF ( 31, + 44 )
----
1984

onlyif mysql # DIV for integer division: 
query I rowsort label-2702
SELECT 81 + + 63 DIV + 96
----
81

skipif mysql # not compatible
query I rowsort label-2702
SELECT 81 + + 63 / + 96
----
81

query I rowsort
SELECT 16 - + 10 + - 16 * 37 col0
----
-586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2704
SELECT COALESCE ( - 37, - CAST( + 57 AS SIGNED ), + SUM( ALL 67 ) + - COUNT( * ) ) * - 95
----
3515

skipif mysql # not compatible
query I rowsort label-2704
SELECT COALESCE ( - 37, - CAST ( + 57 AS INTEGER ), + SUM ( ALL 67 ) + - COUNT ( * ) ) * - 95
----
3515

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2705
SELECT ( + 98 ) - - CASE + 9 WHEN - 92 THEN NULL WHEN 62 THEN 23 WHEN COUNT( * ) THEN + 64 ELSE + 94 END DIV 56 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-2705
SELECT ( + 98 ) - - CASE + 9 WHEN - 92 THEN NULL WHEN 62 THEN 23 WHEN COUNT ( * ) THEN + 64 ELSE + 94 END / 56 AS col0
----
99

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

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL COUNT ( * ) + + + 47 AS col1
----
48

query I rowsort
SELECT DISTINCT 81 + - 95
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2708
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2709
SELECT ALL 16 + - COUNT( * ) + + 80 * COALESCE ( 62 DIV COUNT( * ), 71, + 44 * COUNT( * ) ) * + 72
----
357135

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL 16 + - COUNT ( * ) + + 80 * COALESCE ( 62 / COUNT ( * ), 71, + 44 * COUNT ( * ) ) * + 72
----
357135

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT COALESCE ( + - 21, 48 * - COUNT( * ) + 44 * - 98 ) * + 27 AS col1
----
-567

skipif mysql # not compatible
query I rowsort label-2710
SELECT COALESCE ( + - 21, 48 * - COUNT ( * ) + 44 * - 98 ) * + 27 AS col1
----
-567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2711
SELECT DISTINCT CAST( NULL AS SIGNED ) * + MAX( ALL 82 ) * COALESCE ( 94, - 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + MAX ( ALL 82 ) * COALESCE ( 94, - 35 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT COUNT( * ) * - 50 * + 83 + + 2
----
-4148

skipif mysql # not compatible
query I rowsort label-2712
SELECT COUNT ( * ) * - 50 * + 83 + + 2
----
-4148

query I rowsort
SELECT DISTINCT 73 * 87
----
6351

query I rowsort
SELECT DISTINCT + 61 + - - 73 + - 4
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT ALL 60 + + COUNT( * ) col2
----
61

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL 60 + + COUNT ( * ) col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2716
SELECT + 83 * + - CAST( - 70 AS SIGNED ) + ( ( + COALESCE ( 21, + 26, + 69 ) ) ) AS col0
----
5831

skipif mysql # not compatible
query I rowsort label-2716
SELECT + 83 * + - CAST ( - 70 AS INTEGER ) + ( ( + COALESCE ( 21, + 26, + 69 ) ) ) AS col0
----
5831

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

skipif mysql # not compatible
query I rowsort label-2717
SELECT SUM ( + 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT 38 * 82 * - ( + COUNT( 56 ) )
----
-3116

skipif mysql # not compatible
query I rowsort label-2718
SELECT 38 * 82 * - ( + COUNT ( 56 ) )
----
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL + MAX( DISTINCT - - 40 ) - + CASE + 56 - 9 * 66 WHEN ( + COUNT( * ) ) / + 9 THEN 96 + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL + MAX ( DISTINCT - - 40 ) - + CASE + 56 - 9 * 66 WHEN ( + COUNT ( * ) ) / + 9 THEN 96 + 74 END
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - - 5, - 15 + + 1 ) col1
----
-5

query I rowsort
SELECT ALL + 87 - - - ( 64 )
----
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL SUM( + + NULLIF ( 72, 91 ) ) * 48 AS col0
----
3456

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL SUM ( + + NULLIF ( 72, 91 ) ) * 48 AS col0
----
3456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT DISTINCT + + CASE + 83 WHEN + 67 * - 34 - 47 * + 27 THEN NULL WHEN + 28 + - 6 THEN ( + 85 ) * + CAST( NULL AS SIGNED ) END * + 30 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT + + CASE + 83 WHEN + 67 * - 34 - 47 * + 27 THEN NULL WHEN + 28 + - 6 THEN ( + 85 ) * + CAST ( NULL AS INTEGER ) END * + 30 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT + COUNT( * ) + - - 3 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2725
SELECT + COUNT ( * ) + - - 3 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT + 41 * COUNT( * ) - 30 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-2726
SELECT + 41 * COUNT ( * ) - 30 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT ALL - - MAX( - 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL - - MAX ( - 13 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT SUM( 7 ) * 69 AS col0
----
483

skipif mysql # not compatible
query I rowsort label-2728
SELECT SUM ( 7 ) * 69 AS col0
----
483

query I rowsort
SELECT ( 0 ) * ( 30 + + 2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT + 73 * SUM( DISTINCT 90 ) AS col0
----
6570

skipif mysql # not compatible
query I rowsort label-2730
SELECT + 73 * SUM ( DISTINCT 90 ) AS col0
----
6570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2731
SELECT + SUM( + 32 ) DIV - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT + SUM ( + 32 ) / - 80 AS col2
----
0

query I rowsort
SELECT 90 * - - 60
----
5400

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

skipif mysql # not compatible
query I rowsort label-2733
SELECT 26 + + 62 * - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2734
SELECT DISTINCT - NULLIF ( 3, CASE 11 WHEN 48 * 73 - 53 THEN COUNT( * ) * 94 + 1 ELSE - 68 END + + 30 * 56 ) DIV + 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT - NULLIF ( 3, CASE 11 WHEN 48 * 73 - 53 THEN COUNT ( * ) * 94 + 1 ELSE - 68 END + + 30 * 56 ) / + 26 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2735
SELECT DISTINCT 16, 78 * + SUM( ALL 60 ) - CAST( NULL AS SIGNED ) AS col1
----
16
NULL

skipif mysql # not compatible
query II rowsort label-2735
SELECT DISTINCT 16, 78 * + SUM ( ALL 60 ) - CAST ( NULL AS INTEGER ) AS col1
----
16
NULL

query I rowsort
SELECT ALL 11 * - 46 * - 67 AS col2
----
33902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2737
SELECT DISTINCT CASE + NULLIF ( - + 98, 63 * 60 + 13 ) WHEN CAST( 52 AS SIGNED ) * - 6 + CAST( NULL AS SIGNED ) THEN - 26 ELSE NULL END * 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT CASE + NULLIF ( - + 98, 63 * 60 + 13 ) WHEN CAST ( 52 AS INTEGER ) * - 6 + CAST ( NULL AS INTEGER ) THEN - 26 ELSE NULL END * 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT DISTINCT + COUNT( 13 ) + + ( + 92 ) * 79
----
7269

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT + COUNT ( 13 ) + + ( + 92 ) * 79
----
7269

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

query I rowsort
SELECT ALL ( - 39 ) + - 75 + 15 * - 27 AS col2
----
-519

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

skipif mysql # not compatible
query I rowsort label-2741
SELECT COUNT ( * ) * 74 / - 77 AS col1
----
0

query I rowsort
SELECT ALL + 67 + - 69 AS col0
----
-2

query I rowsort
SELECT DISTINCT + 58 + - 52 col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2744
SELECT 6 - - COALESCE ( - NULLIF ( 6, + ( 70 ) + - CASE 83 WHEN - 8 THEN + 91 DIV 53 ELSE NULL END DIV - 44 ), ( 51 ) DIV 78 ) * - 52
----
318

skipif mysql # not compatible
query I rowsort label-2744
SELECT 6 - - COALESCE ( - NULLIF ( 6, + ( 70 ) + - CASE 83 WHEN - 8 THEN + 91 / 53 ELSE NULL END / - 44 ), ( 51 ) / 78 ) * - 52
----
318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2745
SELECT 33 AS col0, CASE + 77 WHEN 33 * - CAST( COUNT( + CAST( 18 AS SIGNED ) ) AS SIGNED ) THEN NULL ELSE CASE CAST( + COALESCE ( + 68, - ( 48 ), 3 ) AS SIGNED ) WHEN MAX( + 6 ) * - 25 + 92 THEN 66 + - ( - NULLIF ( 65, - 50 * 15 ) ) ELSE NULL END END + 49
----
33
NULL

skipif mysql # not compatible
query II rowsort label-2745
SELECT 33 AS col0, CASE + 77 WHEN 33 * - CAST ( COUNT ( + CAST ( 18 AS INTEGER ) ) AS INTEGER ) THEN NULL ELSE CASE CAST ( + COALESCE ( + 68, - ( 48 ), 3 ) AS INTEGER ) WHEN MAX ( + 6 ) * - 25 + 92 THEN 66 + - ( - NULLIF ( 65, - 50 * 15 ) ) ELSE NULL END END + 49
----
33
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT COUNT( * ) - - 79
----
80

skipif mysql # not compatible
query I rowsort label-2747
SELECT COUNT ( * ) - - 79
----
80

query I rowsort
SELECT ( 7 ) * 14 AS col1
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2749
SELECT ALL + 41 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL + 41 + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT 41 * 26 * COUNT( * ) col1
----
1066

skipif mysql # not compatible
query I rowsort label-2750
SELECT 41 * 26 * COUNT ( * ) col1
----
1066

query I rowsort
SELECT ALL 91 * - + 80
----
-7280

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT 60 - + 59 * - COUNT( * )
----
119

skipif mysql # not compatible
query I rowsort label-2752
SELECT 60 - + 59 * - COUNT ( * )
----
119

query I rowsort
SELECT ALL - 62 * 19 - 36 AS col1
----
-1214

query I rowsort
SELECT + NULLIF ( 2, + - 39 ) * 80 AS col2
----
160

query I rowsort
SELECT + - CASE + + 41 WHEN 91 * 9 THEN - AVG ( 31 ) WHEN + ( NULLIF ( 84, 78 * 16 ) ) * + 96 + + 69 THEN NULL WHEN 70 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT ALL + 82 * - + ( + + ( COALESCE ( 95, COUNT( * ), 19 ) ) )
----
-7790

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL + 82 * - + ( + + ( COALESCE ( 95, COUNT ( * ), 19 ) ) )
----
-7790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2757
SELECT 7 DIV COUNT( * ) + - 29 * 82
----
-2371

skipif mysql # not compatible
query I rowsort label-2757
SELECT 7 / COUNT ( * ) + - 29 * 82
----
-2371

query I rowsort
SELECT 94 * + COALESCE ( + - 35, 22 * 24 ) * 89
----
-292810

onlyif mysql # DIV for integer division: 
query I rowsort label-2759
SELECT + 89 * - + 83 + + 6 + 80 DIV - 70
----
-7382

skipif mysql # not compatible
query I rowsort label-2759
SELECT + 89 * - + 83 + + 6 + 80 / - 70
----
-7382

query I rowsort
SELECT DISTINCT + 38 * NULLIF ( - - 78, - 73 + 54 )
----
2964

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2762
SELECT 87 DIV - - 15 - + + 64 * - 58 AS col2
----
3717

skipif mysql # not compatible
query I rowsort label-2762
SELECT 87 / - - 15 - + + 64 * - 58 AS col2
----
3717

onlyif mysql # DIV for integer division: 
query I rowsort label-2763
SELECT ALL - 99 DIV + + 85 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL - 99 / + + 85 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT DISTINCT - + COUNT( - 4 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT - + COUNT ( - 4 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2765
SELECT ALL - CASE + CAST( NULL AS SIGNED ) WHEN + + COUNT( * ) + 58 / 16 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 84 * 79 THEN + CAST( + 80 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL - CASE + CAST ( NULL AS INTEGER ) WHEN + + COUNT ( * ) + 58 / 16 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 84 * 79 THEN + CAST ( + 80 AS INTEGER ) ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2766
SELECT + SUM ( + - ( 72 ) )
----
-72

query I rowsort
SELECT - - 61 + + - ( + + 79 )
----
-18

query II rowsort
SELECT ALL + 22 col0, + 30 + + 15
----
22
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT - 14 * + - 97 * - 36 + COALESCE ( - 22 + CAST( NULL AS SIGNED ), 31, 57, - 6 * - 81 + + CAST( 86 + CASE AVG ( + 52 ) WHEN - 48 THEN + 85 * 69 ELSE NULL END * - 7 AS SIGNED ) / CASE + COUNT( * ) - 89 * 26 WHEN 90 / + 13 + 34 THEN ( - 74 ) + 40 * 70 ELSE 13 + 1 END ) / - CASE + 89 + 61 WHEN 78 THEN CAST( - 23 AS SIGNED ) END + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT - 14 * + - 97 * - 36 + COALESCE ( - 22 + CAST ( NULL AS INTEGER ), 31, 57, - 6 * - 81 + + CAST ( 86 + CASE AVG ( + 52 ) WHEN - 48 THEN + 85 * 69 ELSE NULL END * - 7 AS INTEGER ) / CASE + COUNT ( * ) - 89 * 26 WHEN 90 / + 13 + 34 THEN ( - 74 ) + 40 * 70 ELSE 13 + 1 END ) / - CASE + 89 + 61 WHEN 78 THEN CAST ( - 23 AS INTEGER ) END + 95
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2770
SELECT ALL + - 97 AS col1, CAST( + 25 AS SIGNED ) AS col0
----
-97
25

skipif mysql # not compatible
query II rowsort label-2770
SELECT ALL + - 97 AS col1, CAST ( + 25 AS INTEGER ) AS col0
----
-97
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT SUM( ALL + - ( 70 ) ) * ( MIN( + 74 ) ) + - 51 * + 19 AS col1
----
-6149

skipif mysql # not compatible
query I rowsort label-2771
SELECT SUM ( ALL + - ( 70 ) ) * ( MIN ( + 74 ) ) + - 51 * + 19 AS col1
----
-6149

query I rowsort
SELECT + ( 71 ) + - 79 * - 19 AS col2
----
1572

query I rowsort
SELECT DISTINCT + + 67 + + + 57 + COALESCE ( 45, ( - 9 ), 18 )
----
169

query I rowsort
SELECT ALL - COALESCE ( 11, + 45, - 92 ) + - 51
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT ALL 5 + 92 + - COUNT( * ) + - 34 + 2
----
64

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL 5 + 92 + - COUNT ( * ) + - 34 + 2
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2776
SELECT - 34 + - - 97 AS col2, 31 * + CAST( NULL AS SIGNED ) AS col1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-2776
SELECT - 34 + - - 97 AS col2, 31 * + CAST ( NULL AS INTEGER ) AS col1
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT DISTINCT COUNT( * ) + - + CASE + 23 WHEN + 57 THEN - 93 END / 6 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT COUNT ( * ) + - + CASE + 23 WHEN + 57 THEN - 93 END / 6 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2778
SELECT - 10 + 38 + 95 + + CASE + CAST( NULL AS SIGNED ) WHEN ( 73 ) THEN - COUNT( * ) ELSE 62 END + - 49 * COUNT( * ) * 5
----
-60

skipif mysql # not compatible
query I rowsort label-2778
SELECT - 10 + 38 + 95 + + CASE + CAST ( NULL AS INTEGER ) WHEN ( 73 ) THEN - COUNT ( * ) ELSE 62 END + - 49 * COUNT ( * ) * 5
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-2779
SELECT ALL SUM( DISTINCT - 87 ) AS col2, + 15 * + COUNT( * ) col2
----
-87
15

skipif mysql # not compatible
query II rowsort label-2779
SELECT ALL SUM ( DISTINCT - 87 ) AS col2, + 15 * + COUNT ( * ) col2
----
-87
15

query I rowsort
SELECT - 87 + - + 46 AS col1
----
-133

query I rowsort
SELECT ALL + ( - - 74 ) + + 88 AS col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT + 98 + + COUNT( * ) - 41 + + + ( - COUNT( * ) ) + 25 * + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-2782
SELECT + 98 + + COUNT ( * ) - 41 + + + ( - COUNT ( * ) ) + 25 * + COUNT ( * )
----
82

query I rowsort
SELECT ALL COALESCE ( 81, - 24, 58 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT - 75 + - - COUNT( * ) - + + 5
----
-79

skipif mysql # not compatible
query I rowsort label-2784
SELECT - 75 + - - COUNT ( * ) - + + 5
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2785
SELECT - 51 + CAST( + + 11 AS SIGNED ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2785
SELECT - 51 + CAST ( + + 11 AS INTEGER ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT ALL + ( - - ( - CASE - - 60 WHEN 83 + - COUNT( * ) THEN - NULLIF ( - ( 75 ), + COUNT( * ) ) WHEN + 86 - COUNT( * ) THEN + 21 * + 63 ELSE NULL END ) ) + - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL + ( - - ( - CASE - - 60 WHEN 83 + - COUNT ( * ) THEN - NULLIF ( - ( 75 ), + COUNT ( * ) ) WHEN + 86 - COUNT ( * ) THEN + 21 * + 63 ELSE NULL END ) ) + - 56 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2787
SELECT ALL - 9 DIV + + COALESCE ( 15, + 82 )
----
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL - 9 / + + COALESCE ( 15, + 82 )
----
0

query I rowsort
SELECT DISTINCT - 63 * - 90
----
5670

query I rowsort
SELECT ALL 15 * 85 * + 82 AS col2
----
104550

query I rowsort
SELECT ALL COALESCE ( - 67, - 21, - 24 + - 5 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT DISTINCT - ( COALESCE ( - + 29, - 19 * - 97 ) ) * CASE - ( 14 ) WHEN 18 THEN - 72 WHEN ( - 0 ) + 19 THEN 62 ELSE COALESCE ( - 82, COUNT( * ) * 90 ) END AS col1
----
-2378

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT - ( COALESCE ( - + 29, - 19 * - 97 ) ) * CASE - ( 14 ) WHEN 18 THEN - 72 WHEN ( - 0 ) + 19 THEN 62 ELSE COALESCE ( - 82, COUNT ( * ) * 90 ) END AS col1
----
-2378

query I rowsort
SELECT DISTINCT ( - 24 ) AS col0
----
-24

query I rowsort
SELECT ALL - 9 * 75 * + 99
----
-66825

query I rowsort
SELECT - 85 * - 51
----
4335

query I rowsort
SELECT + 82 * - + 60
----
-4920

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT + + 62 * - 68 + 98 + MIN( ALL - 71 ) AS col0
----
-4189

skipif mysql # not compatible
query I rowsort label-2796
SELECT + + 62 * - 68 + 98 + MIN ( ALL - 71 ) AS col0
----
-4189

query I rowsort
SELECT - - 14 * + 5 * + 10 * - 65 + 9
----
-45491

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT DISTINCT - 9 * 53 - + + MIN( DISTINCT + 70 ) + + ( - 75 ) * - 12 AS col2
----
353

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT - 9 * 53 - + + MIN ( DISTINCT + 70 ) + + ( - 75 ) * - 12 AS col2
----
353

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2799
SELECT DISTINCT + - COALESCE ( + NULLIF ( 4, - ( CAST( + 34 AS SIGNED ) ) ), COALESCE ( 80, 58 ) * + ( 41 DIV 99 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2799
SELECT DISTINCT + - COALESCE ( + NULLIF ( 4, - ( CAST ( + 34 AS INTEGER ) ) ), COALESCE ( 80, 58 ) * + ( 41 / 99 ) )
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT + - COALESCE ( - 96, COUNT( * ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-2801
SELECT + - COALESCE ( - 96, COUNT ( * ) ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT COALESCE ( + - 92, 29 ) * - COUNT( * ) - COUNT( * ) + COALESCE ( - COUNT( * ), 91 ) * 82
----
9

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT COALESCE ( + - 92, 29 ) * - COUNT ( * ) - COUNT ( * ) + COALESCE ( - COUNT ( * ), 91 ) * 82
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ALL + 46 * - - CASE + 94 WHEN + 15 - 11 THEN NULL WHEN - 24 * + 49 THEN 33 + + COUNT( 45 ) ELSE NULL END + + 63 * + ( - 66 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL + 46 * - - CASE + 94 WHEN + 15 - 11 THEN NULL WHEN - 24 * + 49 THEN 33 + + COUNT ( 45 ) ELSE NULL END + + 63 * + ( - 66 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT + 70 * + - 34 - - - 19 + - + COUNT( * ) + - 96 AS col1
----
-2496

skipif mysql # not compatible
query I rowsort label-2805
SELECT + 70 * + - 34 - - - 19 + - + COUNT ( * ) + - 96 AS col1
----
-2496

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

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

query I rowsort
SELECT DISTINCT 36 * - + 75 * 23 + 11 AS col1
----
-62089

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2809
SELECT DISTINCT + MIN( ALL - 29 ) * - COUNT( - 6 ) + CAST( 54 AS SIGNED ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT + MIN ( ALL - 29 ) * - COUNT ( - 6 ) + CAST ( 54 AS INTEGER ) AS col2
----
83

query I rowsort
SELECT 85 * - + 57 - - + 43 AS col2
----
-4802

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL + 66 * SUM( DISTINCT - 40 ) * + 40 + - COUNT( - 24 ) * + 41 AS col0
----
-105641

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL + 66 * SUM ( DISTINCT - 40 ) * + 40 + - COUNT ( - 24 ) * + 41 AS col0
----
-105641

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT ALL + 83 * 10 + + COUNT( * )
----
831

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL + 83 * 10 + + COUNT ( * )
----
831

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT SUM( - - 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2813
SELECT SUM ( - - 15 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT SUM( - - 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2814
SELECT SUM ( - - 70 ) AS col2
----
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL + COUNT( ALL - + 37 ) * + 69 - + 15 * - 0
----
69

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL + COUNT ( ALL - + 37 ) * + 69 - + 15 * - 0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2817
SELECT - CAST( - - 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-2817
SELECT - CAST ( - - 67 AS INTEGER )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT DISTINCT SUM( DISTINCT + + 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT SUM ( DISTINCT + + 50 ) AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT - 21 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-2819
SELECT - 21 / + 87
----
0

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2822
SELECT + 85 - SUM( ALL + - ( - 24 ) ) + - - 77 + 6 DIV 38 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-2822
SELECT + 85 - SUM ( ALL + - ( - 24 ) ) + - - 77 + 6 / 38 AS col1
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT - 61 + 57 + - 20 * - CAST( NULL AS SIGNED ) * - NULLIF ( 62, 16 + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT - 61 + 57 + - 20 * - CAST ( NULL AS INTEGER ) * - NULLIF ( 62, 16 + 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL ( - COALESCE ( + COUNT( - - 84 ), + - 93 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL ( - COALESCE ( + COUNT ( - - 84 ), + - 93 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2825
SELECT - + 44 DIV + + 52 DIV - NULLIF ( COUNT( + - 49 ), 42 )
----
0

skipif mysql # not compatible
query I rowsort label-2825
SELECT - + 44 / + + 52 / - NULLIF ( COUNT ( + - 49 ), 42 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2826
SELECT DISTINCT + 21 DIV + + ( ( 91 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + 21 / + + ( ( 91 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2827
SELECT 25 DIV 23 + 35 * + + COUNT( ALL + 29 )
----
36

skipif mysql # not compatible
query I rowsort label-2827
SELECT 25 / 23 + 35 * + + COUNT ( ALL + 29 )
----
36

query I rowsort
SELECT 47 * - 0 - 74
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT DISTINCT - + CASE COUNT( 54 ) WHEN COUNT( * ) THEN NULL ELSE - + 32 + 59 END + + 81 * 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT - + CASE COUNT ( 54 ) WHEN COUNT ( * ) THEN NULL ELSE - + 32 + 59 END + + 81 * 95 AS col2
----
NULL

query I rowsort
SELECT ALL + - 26 + 87 + - 72 - - - 85
----
-96

query I rowsort
SELECT - 0 * - COALESCE ( - - 0, - + 36, 24 )
----
0

query I rowsort
SELECT ( + - 28 ) * + 96 * - 29 AS col1
----
77952

query I rowsort
SELECT DISTINCT - + 96 + - 36
----
-132

query I rowsort
SELECT ALL + 78 + + 32 AS col2
----
110

query I rowsort
SELECT ALL + - 46 + - COALESCE ( 61, - + 29 + - 2 ) * + 20
----
-1266

query I rowsort
SELECT 65 + 45 col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT DISTINCT - 71 + - COUNT( * ) * - 67 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT - 71 + - COUNT ( * ) * - 67 AS col2
----
-4

query I rowsort
SELECT ALL 52 - + 13
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2839
SELECT DISTINCT COALESCE ( - COALESCE ( - - 76, + COUNT( * ), + + 54 * - CASE + 14 WHEN + ( + 69 ) + 37 THEN - 22 DIV + ( ( - 77 ) ) WHEN 92 THEN CAST( NULL AS SIGNED ) ELSE NULL END ), - CASE ( + 46 ) WHEN - 64 + 55 THEN - 46 + 14 END ) * 65 AS col0
----
-4940

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT COALESCE ( - COALESCE ( - - 76, + COUNT ( * ), + + 54 * - CASE + 14 WHEN + ( + 69 ) + 37 THEN - 22 / + ( ( - 77 ) ) WHEN 92 THEN CAST ( NULL AS INTEGER ) ELSE NULL END ), - CASE ( + 46 ) WHEN - 64 + 55 THEN - 46 + 14 END ) * 65 AS col0
----
-4940

query I rowsort
SELECT 8 * + 50 + ( + 41 ) AS col0
----
441

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

skipif mysql # not compatible
query I rowsort label-2841
SELECT COUNT ( * ) / + 54 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT ALL ( - COALESCE ( + 22, + COUNT( * ) ) ) * + 79
----
-1738

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL ( - COALESCE ( + 22, + COUNT ( * ) ) ) * + 79
----
-1738

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2845
SELECT ALL - 54 - - CAST( NULL AS DECIMAL ) * + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL - 54 - - CAST ( NULL AS REAL ) * + + 95
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2846
SELECT DISTINCT 80, + SUM( DISTINCT - 1 ) * - 54 AS col1
----
80
54

skipif mysql # not compatible
query II rowsort label-2846
SELECT DISTINCT 80, + SUM ( DISTINCT - 1 ) * - 54 AS col1
----
80
54

query I rowsort
SELECT DISTINCT ( - NULLIF ( - 44, + 10 ) ) * 45
----
1980

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2848
SELECT DISTINCT 51 * - CAST( NULL AS SIGNED ) AS col1, + 35 AS col0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-2848
SELECT DISTINCT 51 * - CAST ( NULL AS INTEGER ) AS col1, + 35 AS col0
----
NULL
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT ALL ( - COUNT( * ) ) * - + 76 * - 58
----
-4408

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL ( - COUNT ( * ) ) * - + 76 * - 58
----
-4408

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2850
SELECT ( + CAST( + 17 AS SIGNED ) ) + - 64 AS col2, - 73 * + 97 * 45 AS col0
----
-47
-318645

skipif mysql # not compatible
query II rowsort label-2850
SELECT ( + CAST ( + 17 AS INTEGER ) ) + - 64 AS col2, - 73 * + 97 * 45 AS col0
----
-47
-318645

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2851
SELECT COUNT( ALL - 10 ) * + - 13 + - 55 + - 41 + + 23 DIV + 24
----
-109

skipif mysql # not compatible
query I rowsort label-2851
SELECT COUNT ( ALL - 10 ) * + - 13 + - 55 + - 41 + + 23 / + 24
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT ( - 86 ) * + 99 + - 62 * ( - COALESCE ( 77, + COUNT( * ), - ( 48 ) * ( 71 ) ) ) + - 58
----
-3798

skipif mysql # not compatible
query I rowsort label-2852
SELECT ( - 86 ) * + 99 + - 62 * ( - COALESCE ( 77, + COUNT ( * ), - ( 48 ) * ( 71 ) ) ) + - 58
----
-3798

onlyif mysql # aggregate syntax: 
query II rowsort label-2853
SELECT ALL 97, + COUNT( + 88 ) AS col1
----
97
1

skipif mysql # not compatible
query II rowsort label-2853
SELECT ALL 97, + COUNT ( + 88 ) AS col1
----
97
1

query I rowsort
SELECT ( - 47 ) + 80 AS col1
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT 85 + + + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2856
SELECT 85 + + + COUNT ( * ) AS col0
----
86

query II rowsort
SELECT DISTINCT 56 AS col0, 84 AS col0
----
56
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT MAX( + 73 ) * + - 80 * - 59
----
344560

skipif mysql # not compatible
query I rowsort label-2858
SELECT MAX ( + 73 ) * + - 80 * - 59
----
344560

query I rowsort
SELECT ALL + - 66 * + 57 * + 86 AS col0
----
-323532

query I rowsort
SELECT 92 + - + 21 AS col0
----
71

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

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

query I rowsort
SELECT ALL 4 + + 36 + - + 17 AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2863
SELECT DISTINCT - COUNT( * ) AS col1, 60 DIV + 60 col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-2863
SELECT DISTINCT - COUNT ( * ) AS col1, 60 / + 60 col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT DISTINCT NULLIF ( - + ( - - ( - + 30 ) ), + - 63 - COUNT( * ) )
----
30

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT NULLIF ( - + ( - - ( - + 30 ) ), + - 63 - COUNT ( * ) )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2865
SELECT 41 * + AVG ( 31 ) + NULLIF ( + 25, - 95 ) + + CAST( NULL AS SIGNED ) * + COUNT( * ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2865
SELECT 41 * + AVG ( 31 ) + NULLIF ( + 25, - 95 ) + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT - ( - ( - MAX( - 61 ) ) ) + + 78 * + - 10 col0
----
-719

skipif mysql # not compatible
query I rowsort label-2866
SELECT - ( - ( - MAX ( - 61 ) ) ) + + 78 * + - 10 col0
----
-719

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL + 43 + - - COUNT( * ) * + + 46
----
89

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL + 43 + - - COUNT ( * ) * + + 46
----
89

query I rowsort
SELECT DISTINCT + ( - 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT DISTINCT 2 + - COUNT( * ) + + 73 * + 92
----
6717

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT 2 + - COUNT ( * ) + + 73 * + 92
----
6717

onlyif mysql # aggregate syntax: 
query II rowsort label-2870
SELECT ALL + 7 + ( + 62 ) + - - 76, COUNT( * ) * 45 + 68 AS col0
----
145
113

skipif mysql # not compatible
query II rowsort label-2870
SELECT ALL + 7 + ( + 62 ) + - - 76, COUNT ( * ) * 45 + 68 AS col0
----
145
113

query I rowsort
SELECT DISTINCT - 85 + 57 * 47 AS col1
----
2594

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL + COUNT( * ) + 20 * - + 46 * + + 12 * 22 AS col2
----
-242879

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL + COUNT ( * ) + 20 * - + 46 * + + 12 * 22 AS col2
----
-242879

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT 87 * - ( - MIN( - 46 ) ) - + 11 AS col2
----
-4013

skipif mysql # not compatible
query I rowsort label-2873
SELECT 87 * - ( - MIN ( - 46 ) ) - + 11 AS col2
----
-4013

onlyif mysql # DIV for integer division: 
query I rowsort label-2874
SELECT ALL + 16 DIV - 74 * + 80 + - 97 * + 96 AS col1
----
-9312

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL + 16 / - 74 * + 80 + - 97 * + 96 AS col1
----
-9312

query I rowsort
SELECT - 17 + + 22
----
5

query II rowsort
SELECT + - 79 AS col2, 66 + + 41
----
-79
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT MIN( ALL + - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-2877
SELECT MIN ( ALL + - 50 )
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-2878
SELECT + - COALESCE ( + + 63, + 54 * + + 51 DIV 90 + 43 )
----
-63

skipif mysql # not compatible
query I rowsort label-2878
SELECT + - COALESCE ( + + 63, + 54 * + + 51 / 90 + 43 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT ALL + COUNT( * ) - - ( + - 68 ) * - MAX( - 27 )
----
-1835

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL + COUNT ( * ) - - ( + - 68 ) * - MAX ( - 27 )
----
-1835

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT 9 * + - COALESCE ( - 63, - 25 * + 95 - - MIN( DISTINCT + - 82 ) + COUNT( * ) * 65 )
----
567

skipif mysql # not compatible
query I rowsort label-2880
SELECT 9 * + - COALESCE ( - 63, - 25 * + 95 - - MIN ( DISTINCT + - 82 ) + COUNT ( * ) * 65 )
----
567

query I rowsort
SELECT ALL + COALESCE ( - 30, + 12 ) * - 6 - - - 91 + 45
----
134

query I rowsort
SELECT 22 * + + 69 - + + 30
----
1488

query I rowsort
SELECT 28 + - 21
----
7

query I rowsort
SELECT 35 * - 45
----
-1575

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2886
SELECT COUNT( 62 ) - + 99 + 92 DIV + - 31 - + 52 * + 4 * SUM( ( 65 ) )
----
-13620

skipif mysql # not compatible
query I rowsort label-2886
SELECT COUNT ( 62 ) - + 99 + 92 / + - 31 - + 52 * + 4 * SUM ( ( 65 ) )
----
-13620

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2888
SELECT ALL - CAST( - 0 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - CAST ( - 0 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT ALL + 59 * + - 34
----
-2006

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2890
SELECT COUNT( * ) DIV - 28 AS col0, + ( - COUNT( * ) )
----
0
-1

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

query I rowsort
SELECT ALL 56 * + 22 AS col0
----
1232

query I rowsort
SELECT 53 + - + ( + - 62 ) + - + 10
----
105

query II rowsort
SELECT DISTINCT 91 + + 39 AS col0, + CASE + 75 WHEN + + CASE + - 35 WHEN + COALESCE ( + 56, 64 + + 8 ) THEN + 19 / 94 ELSE NULL END THEN NULL ELSE + 24 + - 54 END AS col0
----
130
-30

query I rowsort
SELECT ALL 26 + 33
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT - 42 * - MIN( DISTINCT - 85 )
----
-3570

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - 42 * - MIN ( DISTINCT - 85 )
----
-3570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2896
SELECT ALL + - COALESCE ( + 85, + 14 + - 66, 37 * + COUNT( * ) * - 79 * CAST( NULL AS SIGNED ), - 8 / - 33 ) + - NULLIF ( 19, COUNT( * ) * - 41 ) * MAX( ALL CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL + - COALESCE ( + 85, + 14 + - 66, 37 * + COUNT ( * ) * - 79 * CAST ( NULL AS INTEGER ), - 8 / - 33 ) + - NULLIF ( 19, COUNT ( * ) * - 41 ) * MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 93 + - 96
----
-3

query I rowsort
SELECT - - 83 + - + 57
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT + - 77 DIV - 11 + - 92 + + 43 col1
----
-42

skipif mysql # not compatible
query I rowsort label-2899
SELECT + - 77 / - 11 + - 92 + + 43 col1
----
-42

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2901
SELECT + + COALESCE ( SUM( ALL - ( 62 ) ), + 56, - + 87 ) * CAST( - 92 AS SIGNED ) * 27
----
154008

skipif mysql # not compatible
query I rowsort label-2901
SELECT + + COALESCE ( SUM ( ALL - ( 62 ) ), + 56, - + 87 ) * CAST ( - 92 AS INTEGER ) * 27
----
154008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2902
SELECT + - CAST( - MAX( + + 68 ) AS SIGNED ) + 98 + + ( 25 ) AS col2
----
191

skipif mysql # not compatible
query I rowsort label-2902
SELECT + - CAST ( - MAX ( + + 68 ) AS INTEGER ) + 98 + + ( 25 ) AS col2
----
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2903
SELECT + 22 + CAST( - 2 AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2903
SELECT + 22 + CAST ( - 2 AS INTEGER ) AS col0
----
20

query II rowsort
SELECT ALL 91 + - 24, 35 * - 74 col2
----
67
-2590

query I rowsort
SELECT + 35 + - - 55 + - 41 + + 41 * - - CASE - 18 WHEN + 84 THEN 78 * + ( + 46 ) END + 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2906
SELECT ALL - - COUNT( 82 ) + MIN( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL - - COUNT ( 82 ) + MIN ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2907
SELECT DISTINCT + - CAST( + 48 AS SIGNED ) * + 88
----
-4224

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT + - CAST ( + 48 AS INTEGER ) * + 88
----
-4224

query II rowsort
SELECT ALL 18 * + 70 AS col0, + 63 + + + 64 + + 18 * - + 95 col0
----
1260
-1583

onlyif mysql # DIV for integer division: 
query I rowsort label-2909
SELECT ALL + ( + 41 ) * - 79 - 2 DIV - + 49 - 77
----
-3316

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL + ( + 41 ) * - 79 - 2 / - + 49 - 77
----
-3316

query II rowsort
SELECT DISTINCT 45 * 50, + 90 AS col1
----
2250
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2911
SELECT CAST( NULL AS SIGNED ) / 67 / - 78 + - + COUNT( * ) + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2911
SELECT CAST ( NULL AS INTEGER ) / 67 / - 78 + - + COUNT ( * ) + - 49
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2912
SELECT + + 15 + - ( - 93 ) AS col1, - NULLIF ( - MAX( DISTINCT - + 32 ), - CAST( 57 AS SIGNED ) ) * - 80
----
108
2560

skipif mysql # not compatible
query II rowsort label-2912
SELECT + + 15 + - ( - 93 ) AS col1, - NULLIF ( - MAX ( DISTINCT - + 32 ), - CAST ( 57 AS INTEGER ) ) * - 80
----
108
2560

query I rowsort
SELECT - 94 * + 80 * + 40 AS col0
----
-300800

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2915
SELECT + 38 + - COALESCE ( - - MIN( - - 25 ), ( + - 34 ) * - 43 + - COUNT( * ) * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - 19 ) * - 14 col0
----
388

skipif mysql # not compatible
query I rowsort label-2915
SELECT + 38 + - COALESCE ( - - MIN ( - - 25 ), ( + - 34 ) * - 43 + - COUNT ( * ) * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - 19 ) * - 14 col0
----
388

query I rowsort
SELECT CASE 72 WHEN - + ( - COALESCE ( - - 0, 78 ) ) THEN - 31 - - 51 WHEN + 62 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2917
SELECT ALL - 54 DIV - 85 * 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL - 54 / - 85 * 19 AS col2
----
0

query I rowsort
SELECT - 28 * 68
----
-1904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2919
SELECT ALL + COALESCE ( + + ( + 82 ), + 47 + - 39 - + + 66 * + CAST( NULL AS SIGNED ) * COUNT( * ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL + COALESCE ( + + ( + 82 ), + 47 + - 39 - + + 66 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT - COUNT( * ) * + - ( 35 ) * 60 AS col2
----
2100

skipif mysql # not compatible
query I rowsort label-2920
SELECT - COUNT ( * ) * + - ( 35 ) * 60 AS col2
----
2100

onlyif mysql # DIV for integer division: 
query I rowsort label-2921
SELECT DISTINCT 69 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT 69 / - 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT - 81 + + - ( - 49 ) * COUNT( * ) - - NULLIF ( - + 72, 94 ) AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-2922
SELECT - 81 + + - ( - 49 ) * COUNT ( * ) - - NULLIF ( - + 72, 94 ) AS col1
----
-104

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2924
SELECT + 36, 94 * - - 37 + + COUNT( * ) - + - 57 AS col1
----
36
3536

skipif mysql # not compatible
query II rowsort label-2924
SELECT + 36, 94 * - - 37 + + COUNT ( * ) - + - 57 AS col1
----
36
3536

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT MAX( ALL + + 10 ) * + SUM( DISTINCT + + 78 ) * - + NULLIF ( + 36, + - 25 + - NULLIF ( - 77, 84 + - 87 ) ) + - 42
----
-28122

skipif mysql # not compatible
query I rowsort label-2926
SELECT MAX ( ALL + + 10 ) * + SUM ( DISTINCT + + 78 ) * - + NULLIF ( + 36, + - 25 + - NULLIF ( - 77, 84 + - 87 ) ) + - 42
----
-28122

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT - NULLIF ( + 58, + - 96 * - 5 * + COUNT( * ) ) + + 71 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2928
SELECT - NULLIF ( + 58, + - 96 * - 5 * + COUNT ( * ) ) + + 71 AS col0
----
13

query I rowsort
SELECT ALL 64 * + 93 + - 99 AS col1
----
5853

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

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL 58 * - COUNT ( * ) + COUNT ( * ) AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2931
SELECT - COUNT( * ) + + - CAST( - 21 AS SIGNED ) * - + ( - COUNT( * ) ) + + 43
----
63

skipif mysql # not compatible
query I rowsort label-2931
SELECT - COUNT ( * ) + + - CAST ( - 21 AS INTEGER ) * - + ( - COUNT ( * ) ) + + 43
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT DISTINCT 32 * - COUNT( * ) + - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT 32 * - COUNT ( * ) + - COUNT ( * )
----
-33

query I rowsort
SELECT ALL - 47 + + 70 + - - ( + - 33 ) + - 50
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT + CASE + + COUNT( ALL + 58 ) WHEN 86 * + 48 + - 89 * - - 60 * - 45 + - 66 - - 8 * 30 THEN ( - 99 ) * + COUNT( * ) ELSE - 75 END AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-2934
SELECT + CASE + + COUNT ( ALL + 58 ) WHEN 86 * + 48 + - 89 * - - 60 * - 45 + - 66 - - 8 * 30 THEN ( - 99 ) * + COUNT ( * ) ELSE - 75 END AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2935
SELECT ALL + + 94 + + 8 * - - COUNT( * ) + + NULLIF ( CAST( NULL AS SIGNED ), 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL + + 94 + + 8 * - - COUNT ( * ) + + NULLIF ( CAST ( NULL AS INTEGER ), 43 )
----
NULL

query II rowsort
SELECT + 10, - 8 * - 4 AS col2
----
10
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2937
SELECT DISTINCT COUNT( * ) AS col2, - 10 + - - 18 AS col0
----
1
8

skipif mysql # not compatible
query II rowsort label-2937
SELECT DISTINCT COUNT ( * ) AS col2, - 10 + - - 18 AS col0
----
1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT - MAX( DISTINCT + 89 ) * + 49 col2
----
-4361

skipif mysql # not compatible
query I rowsort label-2938
SELECT - MAX ( DISTINCT + 89 ) * + 49 col2
----
-4361

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2939
SELECT + CAST( NULL AS SIGNED ) * - 89 * 24 * - 34 * + + 2 / 26 + - + 60 + + 88 * 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT + CAST ( NULL AS INTEGER ) * - 89 * 24 * - 34 * + + 2 / 26 + - + 60 + + 88 * 58 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 82 * - + ( + 81 )
----
-6642

onlyif mysql # aggregate syntax: 
query II rowsort label-2941
SELECT - 11, COUNT( * ) col1
----
-11
1

skipif mysql # not compatible
query II rowsort label-2941
SELECT - 11, COUNT ( * ) col1
----
-11
1

query I rowsort
SELECT + 62 + - 90 + - + 81
----
-109

query I rowsort
SELECT DISTINCT + 18 + - 11 * - 73 * 14 + - 84 * + 54 AS col2
----
6724

query I rowsort
SELECT ALL + 60 + + 92 AS col1
----
152

query I rowsort
SELECT - + 55 * + - NULLIF ( 53, + 10 ) AS col2
----
2915

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT DISTINCT - 49 * - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT - 49 * - COUNT ( * )
----
49

query II rowsort
SELECT DISTINCT + 96 AS col0, - 90
----
96
-90

query II rowsort
SELECT + + 21 * + 91 + 92 col0, 37 + - 79 * + + 22
----
2003
-1701

query I rowsort
SELECT ALL - + 40 * + - 48 AS col0
----
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT DISTINCT + + 77 - + - 31 * + - COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT + + 77 - + - 31 * + - COUNT ( * ) AS col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2951
SELECT - 81 * - + ( + MIN( + 20 ) ) * 77 + + 23 + - + COALESCE ( + 4, + 81 * + COUNT( * ), - COUNT( * ) + 72, + MIN( DISTINCT 27 ) DIV + 96 ) * - 39 AS col0
----
124919

skipif mysql # not compatible
query I rowsort label-2951
SELECT - 81 * - + ( + MIN ( + 20 ) ) * 77 + + 23 + - + COALESCE ( + 4, + 81 * + COUNT ( * ), - COUNT ( * ) + 72, + MIN ( DISTINCT 27 ) / + 96 ) * - 39 AS col0
----
124919

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL COUNT( * ) - 44 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL COUNT ( * ) - 44 AS col2
----
-43

query I rowsort
SELECT - 95 * 45 AS col2
----
-4275

query I rowsort
SELECT NULLIF ( NULLIF ( + 13, + - 16 ), 53 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2955
SELECT - 46, + COUNT( * ) * + SUM( + + 60 ) AS col2
----
-46
60

skipif mysql # not compatible
query II rowsort label-2955
SELECT - 46, + COUNT ( * ) * + SUM ( + + 60 ) AS col2
----
-46
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT DISTINCT - 42 * - ( + MAX( + 36 ) ) * + 37 + + 17 + 48 + + 97
----
56106

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT - 42 * - ( + MAX ( + 36 ) ) * + 37 + + 17 + 48 + + 97
----
56106

onlyif mysql # DIV for integer division: 
query II rowsort label-2957
SELECT ALL - 41 DIV 29 - - - 17 * + 19 AS col0, + NULLIF ( - - 15, - 3 * + 71 )
----
-324
15

skipif mysql # not compatible
query II rowsort label-2957
SELECT ALL - 41 / 29 - - - 17 * + 19 AS col0, + NULLIF ( - - 15, - 3 * + 71 )
----
-324
15

query I rowsort
SELECT + 5 * 92 col2
----
460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2959
SELECT ALL 16 * - - COUNT( * ) DIV + 1
----
16

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL 16 * - - COUNT ( * ) / + 1
----
16

query I rowsort
SELECT DISTINCT 28 * - 68 AS col1
----
-1904

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT + CASE SUM( 71 ) WHEN 20 THEN - 76 * - 9 * - - 18 * - 95 + + - 27 - 69 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT + CASE SUM ( 71 ) WHEN 20 THEN - 76 * - 9 * - - 18 * - 95 + + - 27 - 69 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 63 * - + ( + 62 )
----
-3906

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT + 75 * - - COUNT( * ) * + - ( - 46 ) AS col1
----
3450

skipif mysql # not compatible
query I rowsort label-2963
SELECT + 75 * - - COUNT ( * ) * + - ( - 46 ) AS col1
----
3450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2964
SELECT ALL COUNT( * ) DIV COUNT( DISTINCT - 95 ) + - - 60
----
61

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL COUNT ( * ) / COUNT ( DISTINCT - 95 ) + - - 60
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT - 23 * - - COUNT( * ) - + + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-2965
SELECT - 23 * - - COUNT ( * ) - + + COUNT ( * )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2966
SELECT 96 * - CAST( NULL AS SIGNED ) * - 12 - - COUNT( 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2966
SELECT 96 * - CAST ( NULL AS INTEGER ) * - 12 - - COUNT ( 15 ) AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 91 * - 96 + - + 86 AS col2
----
-8822

query I rowsort
SELECT ALL + NULLIF ( 55, - 48 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ALL 85 * COUNT( * ) * 49 + + + 49 * - - 54 AS col1
----
6811

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL 85 * COUNT ( * ) * 49 + + + 49 * - - 54 AS col1
----
6811

onlyif mysql # aggregate syntax: 
query II rowsort label-2971
SELECT DISTINCT - ( - - COUNT( * ) ), - COUNT( * ) * + 38 AS col0
----
-1
-38

skipif mysql # not compatible
query II rowsort label-2971
SELECT DISTINCT - ( - - COUNT ( * ) ), - COUNT ( * ) * + 38 AS col0
----
-1
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT DISTINCT 14 + 80 + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT 14 + 80 + COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2973
SELECT 94 * + COUNT( * ) AS col2, 69 * + 18 AS col0
----
94
1242

skipif mysql # not compatible
query II rowsort label-2973
SELECT 94 * + COUNT ( * ) AS col2, 69 * + 18 AS col0
----
94
1242

query I rowsort
SELECT ALL + 97 * 5 * + 76
----
36860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2975
SELECT ALL + CAST( - 50 AS SIGNED ) + + 2 + - 81 + - 99 col1
----
-228

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL + CAST ( - 50 AS INTEGER ) + + 2 + - 81 + - 99 col1
----
-228

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT + 46 * + + 63 + 19 + - - SUM( DISTINCT + 6 ) * + 5
----
2947

skipif mysql # not compatible
query I rowsort label-2977
SELECT + 46 * + + 63 + 19 + - - SUM ( DISTINCT + 6 ) * + 5
----
2947

query I rowsort
SELECT DISTINCT - + 54 * + 97
----
-5238

query I rowsort
SELECT ALL - - 87 * + 44 * - 80 - - 16
----
-306224

onlyif mysql # aggregate syntax: 
query II rowsort label-2980
SELECT DISTINCT + - NULLIF ( + + COUNT( * ), - - 56 ) - 93 AS col0, + 78 AS col1
----
-94
78

skipif mysql # not compatible
query II rowsort label-2980
SELECT DISTINCT + - NULLIF ( + + COUNT ( * ), - - 56 ) - 93 AS col0, + 78 AS col1
----
-94
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2981
SELECT ALL + CAST( - MAX( DISTINCT 4 ) AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL + CAST ( - MAX ( DISTINCT 4 ) AS INTEGER )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2982
SELECT + 93 + - 85 DIV + + COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2982
SELECT + 93 + - 85 / + + COUNT ( * ) AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT - 67 * CAST( 42 AS SIGNED )
----
-2814

skipif mysql # not compatible
query I rowsort label-2983
SELECT - 67 * CAST ( 42 AS INTEGER )
----
-2814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2984
SELECT 65 + 48 + - CAST( COUNT( * ) AS SIGNED ) col1
----
112

skipif mysql # not compatible
query I rowsort label-2984
SELECT 65 + 48 + - CAST ( COUNT ( * ) AS INTEGER ) col1
----
112

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

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

query I rowsort
SELECT ALL - 88 * + + 88 * - 19 AS col0
----
147136

query I rowsort
SELECT DISTINCT - 55 * - 57
----
3135

onlyif mysql # aggregate syntax: 
query II rowsort label-2988
SELECT ALL + 44 * - 15 col1, - COUNT( * ) * - 80 * - 79
----
-660
-6320

skipif mysql # not compatible
query II rowsort label-2988
SELECT ALL + 44 * - 15 col1, - COUNT ( * ) * - 80 * - 79
----
-660
-6320

onlyif mysql # aggregate syntax: 
query II rowsort label-2989
SELECT DISTINCT + 45 * - + COUNT( - + 31 ) col0, + COUNT( * ) AS col2
----
-45
1

skipif mysql # not compatible
query II rowsort label-2989
SELECT DISTINCT + 45 * - + COUNT ( - + 31 ) col0, + COUNT ( * ) AS col2
----
-45
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2990
SELECT ALL - CAST( 73 AS SIGNED ) * + 2 + COUNT( * ) DIV + ( - + COUNT( * ) ) + 27
----
-120

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL - CAST ( 73 AS INTEGER ) * + 2 + COUNT ( * ) / + ( - + COUNT ( * ) ) + 27
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2991
SELECT 25 * + CAST( - - ( - + 44 ) AS SIGNED )
----
-1100

skipif mysql # not compatible
query I rowsort label-2991
SELECT 25 * + CAST ( - - ( - + 44 ) AS INTEGER )
----
-1100

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT 60 * - ( + CASE COUNT( * ) WHEN + - 72 THEN NULL WHEN - 38 THEN ( + 38 ) END ) * 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT 60 * - ( + CASE COUNT ( * ) WHEN + - 72 THEN NULL WHEN - 38 THEN ( + 38 ) END ) * 39 AS col2
----
NULL

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

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

query I rowsort
SELECT 44 + - + 43 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT MAX( DISTINCT + 69 ) + - 70 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2995
SELECT MAX ( DISTINCT + 69 ) + - 70 AS col0
----
-1

query I rowsort
SELECT ALL + 28 + + 57 * + ( + 3 ) AS col2
----
199

query II rowsort
SELECT ALL - 24, + 90 AS col1
----
-24
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL + NULLIF ( 69, 69 * + - 47 + - 57 ) + COALESCE ( + + NULLIF ( + 84, + NULLIF ( + + 36, 93 * 79 ) ), - 27, - 49 + ( + ( + 64 ) ) ) - 52 * - COUNT( * )
----
205

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL + NULLIF ( 69, 69 * + - 47 + - 57 ) + COALESCE ( + + NULLIF ( + 84, + NULLIF ( + + 36, 93 * 79 ) ), - 27, - 49 + ( + ( + 64 ) ) ) - 52 * - COUNT ( * )
----
205

query I rowsort
SELECT ALL 27 + - 51
----
-24

query I rowsort
SELECT DISTINCT 38 + - 52 AS col1
----
-14

query I rowsort
SELECT 53 * - + 73 AS col0
----
-3869

query I rowsort
SELECT ALL 73 * 44 * - 41 AS col1
----
-131692

query II rowsort
SELECT DISTINCT - 27, 68 * - - ( - 25 ) AS col1
----
-27
-1700

query I rowsort
SELECT + 18 * + 7 + - 5 + - ( + 81 )
----
40

query I rowsort
SELECT DISTINCT 8 * ( + 2 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT COALESCE ( - 79, - - 83 * SUM( DISTINCT - + 91 ) * - + 4 ) * 90 + - + 80 * - - 87
----
-14070

skipif mysql # not compatible
query I rowsort label-3006
SELECT COALESCE ( - 79, - - 83 * SUM ( DISTINCT - + 91 ) * - + 4 ) * 90 + - + 80 * - - 87
----
-14070

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT MAX( ALL 1 ) * 94 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3007
SELECT MAX ( ALL 1 ) * 94 AS col0
----
94

query I rowsort
SELECT 14 * 78
----
1092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3009
SELECT + 31 * - + NULLIF ( + - 53, - + CAST( NULL AS SIGNED ) ) + + 30 + + 65 * - COUNT( - 29 ) AS col1, + 52 AS col2
----
1608
52

skipif mysql # not compatible
query II rowsort label-3009
SELECT + 31 * - + NULLIF ( + - 53, - + CAST ( NULL AS INTEGER ) ) + + 30 + + 65 * - COUNT ( - 29 ) AS col1, + 52 AS col2
----
1608
52

query I rowsort
SELECT DISTINCT 0 - + 32 AS col0
----
-32

query I rowsort
SELECT ALL - NULLIF ( - + 48, 36 ) col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT + ( - - 87 ) + + COUNT( * ) + - 31
----
57

skipif mysql # not compatible
query I rowsort label-3012
SELECT + ( - - 87 ) + + COUNT ( * ) + - 31
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3013
SELECT ALL + 60 DIV - 96 * - 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL + 60 / - 96 * - 50 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3014
SELECT 31 * + COALESCE ( 13, - 21 * ( + 23 ) * + 7 * - + 14 * COALESCE ( + 42, 91 * - SUM( DISTINCT 89 ) ) DIV - 40 )
----
403

skipif mysql # not compatible
query I rowsort label-3014
SELECT 31 * + COALESCE ( 13, - 21 * ( + 23 ) * + 7 * - + 14 * COALESCE ( + 42, 91 * - SUM ( DISTINCT 89 ) ) / - 40 )
----
403

query I rowsort
SELECT 61 + + - 55 - - 81 * + - 60
----
-4854

onlyif mysql # aggregate syntax: 
query II rowsort label-3016
SELECT - 10 + + 21 - + + 74, + COUNT( * ) AS col2
----
-63
1

skipif mysql # not compatible
query II rowsort label-3016
SELECT - 10 + + 21 - + + 74, + COUNT ( * ) AS col2
----
-63
1

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

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL 85 / + + COUNT ( * ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT - CASE + 23 WHEN 53 THEN + - 46 * + 62 WHEN + - MIN( 18 ) THEN NULL ELSE NULL END * + 54 / COUNT( * ) - + + 68 * + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT - CASE + 23 WHEN 53 THEN + - 46 * + 62 WHEN + - MIN ( 18 ) THEN NULL ELSE NULL END * + 54 / COUNT ( * ) - + + 68 * + 80 AS col2
----
NULL

query I rowsort
SELECT 0 + + + NULLIF ( 89, - 24 ) AS col1
----
89

query I rowsort
SELECT ALL - 8 * + 9 * - 46 * - 42 + - - 52
----
-139052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3021
SELECT COUNT( * ) + - NULLIF ( 63, + + CAST( NULL AS SIGNED ) * - MIN( DISTINCT - - 83 ) / 22 + - 81 * - 63 + + SUM( ALL - 30 ) + - 13 ) * + 93
----
-5858

skipif mysql # not compatible
query I rowsort label-3021
SELECT COUNT ( * ) + - NULLIF ( 63, + + CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT - - 83 ) / 22 + - 81 * - 63 + + SUM ( ALL - 30 ) + - 13 ) * + 93
----
-5858

onlyif mysql # aggregate syntax: 
query II rowsort label-3022
SELECT - MIN( ALL + + ( 34 ) ) col0, NULLIF ( 88, - - 79 ) AS col2
----
-34
88

skipif mysql # not compatible
query II rowsort label-3022
SELECT - MIN ( ALL + + ( 34 ) ) col0, NULLIF ( 88, - - 79 ) AS col2
----
-34
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3023
SELECT - CAST( - - CASE + 49 WHEN 90 THEN NULL ELSE - 16 END AS SIGNED ) col1, - COUNT( * ) AS col1
----
16
-1

skipif mysql # not compatible
query II rowsort label-3023
SELECT - CAST ( - - CASE + 49 WHEN 90 THEN NULL ELSE - 16 END AS INTEGER ) col1, - COUNT ( * ) AS col1
----
16
-1

query I rowsort
SELECT ALL - 58 * + COALESCE ( + 10, 4 * - 10 * 55 * - 19 - 13 + + 70, 13 ) + 76
----
-504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3025
SELECT - + CAST( NULL AS SIGNED ) AS col1, NULLIF ( - ( + - 74 ), 54 * COUNT( * ) - + COUNT( * ) ) DIV 44 DIV COUNT( * ) + - - 38
----
NULL
39

skipif mysql # not compatible
query II rowsort label-3025
SELECT - + CAST ( NULL AS INTEGER ) AS col1, NULLIF ( - ( + - 74 ), 54 * COUNT ( * ) - + COUNT ( * ) ) / 44 / COUNT ( * ) + - - 38
----
NULL
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3026
SELECT ALL 25, CAST( NULL AS SIGNED ) / - COUNT( * ) AS col0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-3026
SELECT ALL 25, CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col0
----
25
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3027
SELECT ALL + COUNT( * ), - COALESCE ( NULLIF ( 3, 89 * - - 3 ), + 70 * 12, - 7 * COUNT( * ) * COUNT( * ) ) AS col2
----
1
-3

skipif mysql # not compatible
query II rowsort label-3027
SELECT ALL + COUNT ( * ), - COALESCE ( NULLIF ( 3, 89 * - - 3 ), + 70 * 12, - 7 * COUNT ( * ) * COUNT ( * ) ) AS col2
----
1
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT - MAX( ALL - 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3028
SELECT - MAX ( ALL - 3 ) AS col0
----
3

query I rowsort
SELECT DISTINCT + 50 + - 30
----
20

query II rowsort
SELECT - 14 AS col2, 13 + + + 19 AS col0
----
-14
32

query I rowsort
SELECT ALL + 32 + + 36 + - ( + 9 ) * - 59 + - 41 + - 81 * - COALESCE ( + - 45, 58, - 26 ) + 32 AS col0
----
-3055

query II rowsort
SELECT 46 AS col1, - 26
----
46
-26

query II rowsort
SELECT + 25 AS col0, 35
----
25
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL - 99 * ( + 70 ) + + - COUNT( ALL - + 98 )
----
-6931

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL - 99 * ( + 70 ) + + - COUNT ( ALL - + 98 )
----
-6931

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3035
SELECT COALESCE ( - 89, + COALESCE ( CAST( - 76 AS SIGNED ), + 27 ) * + 4 * COUNT( * ) * 62 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-3035
SELECT COALESCE ( - 89, + COALESCE ( CAST ( - 76 AS INTEGER ), + 27 ) * + 4 * COUNT ( * ) * 62 ) AS col1
----
-89

query I rowsort
SELECT DISTINCT 52 * NULLIF ( NULLIF ( - + 67, + + NULLIF ( - + AVG ( - 82 ), 36 ) ), 84 * 16 ) * + 51 + 37 * + 65
----
-175279

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT ALL COUNT( * ) * - NULLIF ( - - COUNT( * ), + 51 ) + - 63 * COUNT( * ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL COUNT ( * ) * - NULLIF ( - - COUNT ( * ), + 51 ) + - 63 * COUNT ( * ) AS col2
----
-64

query I rowsort
SELECT NULLIF ( + 64, - 28 - + 39 * ( + 19 ) + + 52 ) AS col0
----
64

query II rowsort
SELECT + 90 AS col1, 91 * + - 67 - + + 5 * - 61 + + - 54 col0
----
90
-5846

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3040
SELECT + 77 * - - ( 17 ) + - 85 * - - 6 + + 79 DIV + + SUM( DISTINCT - ( - 22 ) )
----
802

skipif mysql # not compatible
query I rowsort label-3040
SELECT + 77 * - - ( 17 ) + - 85 * - - 6 + + 79 / + + SUM ( DISTINCT - ( - 22 ) )
----
802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3041
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) * + 2 * - - 80 * ( - 80 ) * - 40 + - 56
----
-512056

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * + 2 * - - 80 * ( - 80 ) * - 40 + - 56
----
-512056

query I rowsort
SELECT ALL + COALESCE ( 72, 65 ) col1
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT + 76 * + 64 + + - COUNT( * )
----
4863

skipif mysql # not compatible
query I rowsort label-3044
SELECT + 76 * + 64 + + - COUNT ( * )
----
4863

onlyif mysql # aggregate syntax: 
query III rowsort label-3045
SELECT COUNT( * ), - 26 col0, + SUM( 21 ) + + 98 + 89 AS col2
----
1
-26
208

skipif mysql # not compatible
query III rowsort label-3045
SELECT COUNT ( * ), - 26 col0, + SUM ( 21 ) + + 98 + 89 AS col2
----
1
-26
208

query I rowsort
SELECT + 82 * - + 84 + - + 8 AS col2
----
-6896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3047
SELECT ALL COUNT( * ) * 82 - + + 6 DIV - 64
----
82

skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL COUNT ( * ) * 82 - + + 6 / - 64
----
82

query I rowsort
SELECT DISTINCT + 31 * - - 5 col0
----
155

query I rowsort
SELECT + NULLIF ( + 60, - 49 * + + 1 / - ( 3 ) + - 50 * + ( - 13 ) * + ( 55 ) )
----
60

query I rowsort
SELECT + 86 * - 75
----
-6450

query I rowsort
SELECT ALL + COALESCE ( + 6, - + NULLIF ( - 93, - 57 ) ) col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3052
SELECT DISTINCT 73 * + 40 + - 78 + + COUNT( * ) + 45 / COUNT( * ) / - 41 - - 54 + - CAST( NULL AS SIGNED ) / 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT 73 * + 40 + - 78 + + COUNT ( * ) + 45 / COUNT ( * ) / - 41 - - 54 + - CAST ( NULL AS INTEGER ) / 82
----
NULL

query I rowsort
SELECT 7 * + - 53 - + + NULLIF ( + 51, 89 ) - - 39 * - 69
----
-3113

query I rowsort
SELECT + + 48 * 77
----
3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3055
SELECT ALL + 37 * - NULLIF ( + - COUNT( DISTINCT - 34 ), - - COALESCE ( + 91, - COUNT( * ) ) ) * 62 * COUNT( * ) + - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL + 37 * - NULLIF ( + - COUNT ( DISTINCT - 34 ), - - COALESCE ( + 91, - COUNT ( * ) ) ) * 62 * COUNT ( * ) + - + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + CASE + 65 WHEN + 75 * 14 * AVG ( ALL + 83 ) + - CASE 96 WHEN 69 THEN - NULLIF ( - - 43, + 28 ) END + + COUNT( * ) * + MAX( + 2 ) - + 40 THEN NULL WHEN + 0 + + 16 THEN SUM( DISTINCT + 67 ) * - 52 ELSE + ( 70 ) END - - 52
----
122

skipif mysql # not compatible
query I rowsort label-3056
SELECT + CASE + 65 WHEN + 75 * 14 * AVG ( ALL + 83 ) + - CASE 96 WHEN 69 THEN - NULLIF ( - - 43, + 28 ) END + + COUNT ( * ) * + MAX ( + 2 ) - + 40 THEN NULL WHEN + 0 + + 16 THEN SUM ( DISTINCT + 67 ) * - 52 ELSE + ( 70 ) END - - 52
----
122

query I rowsort
SELECT - COALESCE ( - 0, + 66 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT DISTINCT + 10 * + COUNT( * ) + + 70
----
80

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT + 10 * + COUNT ( * ) + + 70
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT - COALESCE ( + COUNT( * ), + 53 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3059
SELECT - COALESCE ( + COUNT ( * ), + 53 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3060
SELECT DISTINCT - 55 + 52 DIV - 20 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT - 55 + 52 / - 20 AS col0
----
-57

query I rowsort
SELECT + - 21 + + - 2 AS col1
----
-23

query I rowsort
SELECT + - 16 * - 88 + - 7 - + + 10
----
1391

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT - - NULLIF ( 97, - - 93 + + 73 + - 55 + + MAX( + 46 ) * - 21 * 65 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3064
SELECT - - NULLIF ( 97, - - 93 + + 73 + - 55 + + MAX ( + 46 ) * - 21 * 65 ) AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT ALL + 36 + - + 68 + 77 * + + ( 24 ) * - AVG ( ALL ( - 22 ) ) * - CAST( NULL AS SIGNED ) - 9 * + ( + 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL + 36 + - + 68 + 77 * + + ( 24 ) * - AVG ( ALL ( - 22 ) ) * - CAST ( NULL AS INTEGER ) - 9 * + ( + 3 )
----
NULL

query I rowsort
SELECT + + 30 + + 15 + - 87 + + 55 * + + 77
----
4193

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3067
SELECT - 34 DIV + NULLIF ( - 96, + + 63 + + CAST( 22 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3067
SELECT - 34 / + NULLIF ( - 96, + + 63 + + CAST ( 22 AS INTEGER ) )
----
0

query I rowsort
SELECT ALL 40 + 34
----
74

query I rowsort
SELECT + 46 + + 60 + - 3 AS col1
----
103

query I rowsort
SELECT - 52 * 94 * + - 57 * - + 4
----
-1114464

query I rowsort
SELECT ALL + 28 * 19
----
532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3072
SELECT ALL NULLIF ( 9, 10 + 35 + - - SUM( + 40 ) * + CAST( - 96 AS SIGNED ) + - + 35 / + 12 * - - 9 + + + 80 * COUNT( * ) * - 36 )
----
9

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL NULLIF ( 9, 10 + 35 + - - SUM ( + 40 ) * + CAST ( - 96 AS INTEGER ) + - + 35 / + 12 * - - 9 + + + 80 * COUNT ( * ) * - 36 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT + 98 + COUNT( * ) col2
----
99

skipif mysql # not compatible
query I rowsort label-3073
SELECT + 98 + COUNT ( * ) col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT ALL 4 + + MAX( + 40 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL 4 + + MAX ( + 40 ) AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3075
SELECT DISTINCT 63 * CASE - 91 WHEN - 64 * + 77 THEN NULL WHEN - + ( + CAST( NULL AS SIGNED ) ) * + - CASE + 33 WHEN 8 THEN NULL WHEN - SUM( ALL + 89 ) - - 6 THEN 2 * COUNT( * ) ELSE NULL END + COUNT( * ) + 23 THEN NULL ELSE - 88 DIV - 32 END col2
----
126

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT 63 * CASE - 91 WHEN - 64 * + 77 THEN NULL WHEN - + ( + CAST ( NULL AS INTEGER ) ) * + - CASE + 33 WHEN 8 THEN NULL WHEN - SUM ( ALL + 89 ) - - 6 THEN 2 * COUNT ( * ) ELSE NULL END + COUNT ( * ) + 23 THEN NULL ELSE - 88 / - 32 END col2
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-3076
SELECT ALL + COUNT( * ) + + 66 AS col2, 73
----
67
73

skipif mysql # not compatible
query II rowsort label-3076
SELECT ALL + COUNT ( * ) + + 66 AS col2, 73
----
67
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT - ( - 13 ) + - 95 + - - COALESCE ( - 44, + - 53 ) * + 26 * - + 42 * + - COUNT( * )
----
-48130

skipif mysql # not compatible
query I rowsort label-3077
SELECT - ( - 13 ) + - 95 + - - COALESCE ( - 44, + - 53 ) * + 26 * - + 42 * + - COUNT ( * )
----
-48130

query I rowsort
SELECT ALL 98 * 1 AS col2
----
98

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

skipif mysql # not compatible
query I rowsort label-3079
SELECT + ( SUM ( + + 36 ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT + 73 * 76 * + COUNT( * ) + SUM( DISTINCT + 37 ) + 32
----
5617

skipif mysql # not compatible
query I rowsort label-3080
SELECT + 73 * 76 * + COUNT ( * ) + SUM ( DISTINCT + 37 ) + 32
----
5617

query I rowsort
SELECT + ( 98 ) * - + 18 AS col0
----
-1764

query I rowsort
SELECT - 62 * CASE + + 17 WHEN + 71 + + - 12 THEN NULL ELSE - 11 END
----
682

query I rowsort
SELECT DISTINCT + CASE + 16 WHEN + 46 THEN NULL ELSE + 23 END
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-3084
SELECT DISTINCT - 84 DIV - 21, + 79 AS col2
----
4
79

skipif mysql # not compatible
query II rowsort label-3084
SELECT DISTINCT - 84 / - 21, + 79 AS col2
----
4
79

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

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

query II rowsort
SELECT ALL - + 81 * + 65 AS col1, 45 AS col1
----
-5265
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3087
SELECT - - 27 * - COUNT( * ) + 71 + + 32 * - 58 * - ( CASE - 14 WHEN - + 93 THEN - ( + COALESCE ( 24, ( - AVG ( DISTINCT 44 ) ) DIV 89 + 1, 48 * 31 + + MAX( DISTINCT COALESCE ( CAST( NULL AS SIGNED ), + 22 ) ) ) ) WHEN - 50 THEN + 88 * 90 + 55 ELSE + 34 END ) AS col1
----
63148

skipif mysql # not compatible
query I rowsort label-3087
SELECT - - 27 * - COUNT ( * ) + 71 + + 32 * - 58 * - ( CASE - 14 WHEN - + 93 THEN - ( + COALESCE ( 24, ( - AVG ( DISTINCT 44 ) ) / 89 + 1, 48 * 31 + + MAX ( DISTINCT COALESCE ( CAST ( NULL AS INTEGER ), + 22 ) ) ) ) WHEN - 50 THEN + 88 * 90 + 55 ELSE + 34 END ) AS col1
----
63148

query I rowsort
SELECT + + NULLIF ( - 34, - - 48 )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3089
SELECT - - COUNT( - + 81 ) DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-3089
SELECT - - COUNT ( - + 81 ) / + 31
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3090
SELECT DISTINCT - - AVG ( ALL - 73 ) / + 26 / - MAX( CAST( NULL AS DECIMAL ) ) * AVG ( 70 ) * + 39 / - CAST( NULL AS SIGNED ) * - ( - 33 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT - - AVG ( ALL - 73 ) / + 26 / - MAX ( CAST ( NULL AS REAL ) ) * AVG ( 70 ) * + 39 / - CAST ( NULL AS INTEGER ) * - ( - 33 ) col0
----
NULL

query I rowsort
SELECT ALL + - 89 col0
----
-89

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

query I rowsort
SELECT - 72 + + 36
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT DISTINCT + CAST( + + CASE + 95 WHEN - CAST( 7 AS SIGNED ) THEN NULL ELSE - 19 END AS SIGNED ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT + CAST ( + + CASE + 95 WHEN - CAST ( 7 AS INTEGER ) THEN NULL ELSE - 19 END AS INTEGER ) AS col2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3095
SELECT ALL - 97 * - + 15 * + - MAX( + 84 ) * - 26 + + + 38 + + 38 + + SUM( + 63 ) - 11 DIV - COUNT( * ) * COUNT( * ) - - 17 + 27
----
3177914

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL - 97 * - + 15 * + - MAX ( + 84 ) * - 26 + + + 38 + + 38 + + SUM ( + 63 ) - 11 / - COUNT ( * ) * COUNT ( * ) - - 17 + 27
----
3177914

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

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

query I rowsort
SELECT - 97 * 28 + 58 AS col1
----
-2658

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT ALL + + 74 * - - COUNT( ( + NULLIF ( + - 93, - 23 ) ) ) + 3 + + + 36 + - 23 - + 57
----
33

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL + + 74 * - - COUNT ( ( + NULLIF ( + - 93, - 23 ) ) ) + 3 + + + 36 + - 23 - + 57
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3099
SELECT - MIN( ALL + + 61 ) * + 72 * - ( - + 67 ) AS col2, COUNT( * )
----
-294264
1

skipif mysql # not compatible
query II rowsort label-3099
SELECT - MIN ( ALL + + 61 ) * + 72 * - ( - + 67 ) AS col2, COUNT ( * )
----
-294264
1

query I rowsort
SELECT + 36 + + 21
----
57

query I rowsort
SELECT DISTINCT - 25 * + 27 + - 68 + - 19 AS col0
----
-762

query II rowsort
SELECT DISTINCT 56, - 66 * - - 4 * + 68 * + 23 AS col1
----
56
-412896

query I rowsort
SELECT DISTINCT + ( + - 63 ) + + 78 + 41 AS col1
----
56

query I rowsort
SELECT ALL - 32 + - 20
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT ALL MAX( ALL + 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL MAX ( ALL + 79 ) AS col1
----
79

query I rowsort
SELECT DISTINCT 51 + 90
----
141

query I rowsort
SELECT 79 * - 35 AS col2
----
-2765

query II rowsort
SELECT ALL 22, - 12 col0
----
22
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3109
SELECT DISTINCT 16 DIV - + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT 16 / - + COUNT ( * )
----
-16

query II rowsort
SELECT - 78 col0, + 88
----
-78
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3111
SELECT 95, - COUNT( * ) * COUNT( * ) - - 69 + + + 17 + + COUNT( * ) * - CAST( - 63 AS SIGNED ) AS col0
----
95
148

skipif mysql # not compatible
query II rowsort label-3111
SELECT 95, - COUNT ( * ) * COUNT ( * ) - - 69 + + + 17 + + COUNT ( * ) * - CAST ( - 63 AS INTEGER ) AS col0
----
95
148

query I rowsort
SELECT ALL 50 - - 17
----
67

query I rowsort
SELECT 4 * + - 82 AS col1
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT 14 * 86 * MIN( - + 64 ) AS col0
----
-77056

skipif mysql # not compatible
query I rowsort label-3114
SELECT 14 * 86 * MIN ( - + 64 ) AS col0
----
-77056

query II rowsort
SELECT - 89 AS col2, 72 AS col1
----
-89
72

query I rowsort
SELECT ALL 14 - - 83 * + 45 - - 6 + + - 67 - + + ( - 85 ) * - 48 * - 92 * + + 75
----
28155688

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL - SUM( - - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL - SUM ( - - 30 )
----
-30

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3121
SELECT 16 * - COUNT( * ) + - CAST( NULL AS SIGNED ) * - - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3121
SELECT 16 * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - - 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3122
SELECT 99, - CASE - ( - 86 ) WHEN + 49 + ( + + 85 ) + + 4 + + 48 THEN + 93 / - 23 * + MAX( DISTINCT 83 ) WHEN 11 + 73 * COUNT( * ) THEN NULL WHEN + 1 + 28 THEN NULL END + - 55 / + 23 AS col1
----
99
NULL

skipif mysql # not compatible
query II rowsort label-3122
SELECT 99, - CASE - ( - 86 ) WHEN + 49 + ( + + 85 ) + + 4 + + 48 THEN + 93 / - 23 * + MAX ( DISTINCT 83 ) WHEN 11 + 73 * COUNT ( * ) THEN NULL WHEN + 1 + 28 THEN NULL END + - 55 / + 23 AS col1
----
99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3123
SELECT 32 * - CASE - - 93 WHEN - 46 * 8 * - 17 THEN + COUNT( * ) / + 76 / - 54 ELSE NULL END / - 35 * - - ( CAST( NULL AS SIGNED ) ) + - 62 + COUNT( * ) * 10 + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT 32 * - CASE - - 93 WHEN - 46 * 8 * - 17 THEN + COUNT ( * ) / + 76 / - 54 ELSE NULL END / - 35 * - - ( CAST ( NULL AS INTEGER ) ) + - 62 + COUNT ( * ) * 10 + 94
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3124
SELECT ALL - ( - 81 ) DIV - + 52 + + 53
----
52

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL - ( - 81 ) / - + 52 + + 53
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT + 43 * + COUNT( DISTINCT + 78 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3125
SELECT + 43 * + COUNT ( DISTINCT + 78 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3126
SELECT ALL + 10 + 85 + + 67 + - COUNT( * ) * + 63 * 21 AS col2, + 82 * + + 56 * 49
----
-1161
225008

skipif mysql # not compatible
query II rowsort label-3126
SELECT ALL + 10 + 85 + + 67 + - COUNT ( * ) * + 63 * 21 AS col2, + 82 * + + 56 * 49
----
-1161
225008

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT DISTINCT - CASE + 55 WHEN - 36 THEN NULL ELSE - - COUNT( * ) * + - SUM( 45 ) END + - 95 + + 44 * COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT - CASE + 55 WHEN - 36 THEN NULL ELSE - - COUNT ( * ) * + - SUM ( 45 ) END + - 95 + + 44 * COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ALL + ( MAX( - + 3 ) ) + 34
----
31

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL + ( MAX ( - + 3 ) ) + 34
----
31

query I rowsort
SELECT ALL - 71 * - - 69
----
-4899

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3131
SELECT - CASE + 25 WHEN - + 87 THEN + + ( - 12 ) * - 22 + + CAST( - + COUNT( * ) AS SIGNED ) + 99 * + - 29 * - 9 WHEN - COALESCE ( + + 79, + 46 ) THEN NULL END * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT - CASE + 25 WHEN - + 87 THEN + + ( - 12 ) * - 22 + + CAST ( - + COUNT ( * ) AS INTEGER ) + 99 * + - 29 * - 9 WHEN - COALESCE ( + + 79, + 46 ) THEN NULL END * 26
----
NULL

query II rowsort
SELECT 85 col2, 86
----
85
86

query II rowsort
SELECT + 32, - 91 AS col2
----
32
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL + MIN( - ( + 71 ) ) + 83 col1
----
12

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL + MIN ( - ( + 71 ) ) + 83 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT 88 * + - COALESCE ( + MIN( DISTINCT - 40 ), - 45, - - 78 + - 22 ) - + + 55 * - + 0 * + - COUNT( * ) AS col0
----
3520

skipif mysql # not compatible
query I rowsort label-3135
SELECT 88 * + - COALESCE ( + MIN ( DISTINCT - 40 ), - 45, - - 78 + - 22 ) - + + 55 * - + 0 * + - COUNT ( * ) AS col0
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT MIN( - + 19 ) - - 70 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-3136
SELECT MIN ( - + 19 ) - - 70 AS col2
----
51

query I rowsort
SELECT - + NULLIF ( + 43, 8 ) AS col2
----
-43

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

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL + + 86 / + COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT DISTINCT - 86 + + ( - 59 ) - 98 + + COUNT( * )
----
-242

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT - 86 + + ( - 59 ) - 98 + + COUNT ( * )
----
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT 69 * - MIN( 82 ) AS col0
----
-5658

skipif mysql # not compatible
query I rowsort label-3140
SELECT 69 * - MIN ( 82 ) AS col0
----
-5658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3141
SELECT 53 + + - CASE - 82 WHEN SUM( 2 ) * ( - - 19 ) + - 46 + + + CAST( + ( - + 34 ) AS SIGNED ) THEN NULL WHEN - - 53 * + - 63 + - 66 * + 24 THEN NULL WHEN COALESCE ( 74, - 8 / NULLIF ( - ( 68 ), 73 / ( 72 ) ) ) + - CAST( NULL AS SIGNED ) THEN NULL ELSE - CASE - COUNT( * ) WHEN 9 THEN - 84 END + 81 END * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT 53 + + - CASE - 82 WHEN SUM ( 2 ) * ( - - 19 ) + - 46 + + + CAST ( + ( - + 34 ) AS INTEGER ) THEN NULL WHEN - - 53 * + - 63 + - 66 * + 24 THEN NULL WHEN COALESCE ( 74, - 8 / NULLIF ( - ( 68 ), 73 / ( 72 ) ) ) + - CAST ( NULL AS INTEGER ) THEN NULL ELSE - CASE - COUNT ( * ) WHEN 9 THEN - 84 END + 81 END * 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT 88 - - SUM( - 95 )
----
-7

skipif mysql # not compatible
query I rowsort label-3142
SELECT 88 - - SUM ( - 95 )
----
-7

query I rowsort
SELECT ALL - 1 - ( 70 ) - + 66 * 35 AS col0
----
-2381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3144
SELECT 59 * + COUNT( * ) * + - ( - - CASE - - 12 WHEN - ( 43 ) / - CAST( NULL AS SIGNED ) THEN + + 78 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT 59 * + COUNT ( * ) * + - ( - - CASE - - 12 WHEN - ( 43 ) / - CAST ( NULL AS INTEGER ) THEN + + 78 END )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3146
SELECT 14 * - COALESCE ( - - 46, 15, - 90 * + - COUNT( * ) * + + 43 - - + 66 - + 31 - SUM( - - 32 ) * + 16 + + 52 + 16 + 53 DIV + COUNT( * ) )
----
-644

skipif mysql # not compatible
query I rowsort label-3146
SELECT 14 * - COALESCE ( - - 46, 15, - 90 * + - COUNT ( * ) * + + 43 - - + 66 - + 31 - SUM ( - - 32 ) * + 16 + + 52 + 16 + 53 / + COUNT ( * ) )
----
-644

query I rowsort
SELECT ALL 44 * + - 67 AS col0
----
-2948

query I rowsort
SELECT 97 + - 77 AS col0
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-3149
SELECT 4 DIV ( - ( - 36 ) ) AS col0, 8
----
0
8

skipif mysql # not compatible
query II rowsort label-3149
SELECT 4 / ( - ( - 36 ) ) AS col0, 8
----
0
8

query I rowsort
SELECT 87 * - 21
----
-1827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3151
SELECT ALL MAX( - + 60 ) DIV - - 90 DIV 1 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL MAX ( - + 60 ) / - - 90 / 1 AS col0
----
0

query I rowsort
SELECT 12 * 18 + - + 91 AS col1
----
125

query I rowsort
SELECT DISTINCT 40 * + ( + 97 ) * - 92 * 61 AS col2
----
-21774560

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL + 82 * + COUNT( * ) + + 8
----
90

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL + 82 * + COUNT ( * ) + + 8
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3155
SELECT + 27 DIV 82 * 3 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3155
SELECT + 27 / 82 * 3 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3156
SELECT DISTINCT - + 38 * - 7 + - 23 + COUNT( * ) AS col1, - 8 * - 62 + + 94 DIV - COUNT( * ) AS col1
----
244
402

skipif mysql # not compatible
query II rowsort label-3156
SELECT DISTINCT - + 38 * - 7 + - 23 + COUNT ( * ) AS col1, - 8 * - 62 + + 94 / - COUNT ( * ) AS col1
----
244
402

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT COALESCE ( + - 64, - COUNT( * ) ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-3157
SELECT COALESCE ( + - 64, - COUNT ( * ) ) col1
----
-64

query I rowsort
SELECT + 17 * 10 + + 71 + + - 6 AS col0
----
235

query I rowsort
SELECT NULLIF ( - - 37, - 52 - - 42 ) + + 97
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-3160
SELECT + MAX( 55 ), + 99 * ( - + 21 ) - 49 col0
----
55
-2128

skipif mysql # not compatible
query II rowsort label-3160
SELECT + MAX ( 55 ), + 99 * ( - + 21 ) - 49 col0
----
55
-2128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT ALL + + COALESCE ( - COUNT( * ), + 80 + + 8 ) - COUNT( * ) * + COUNT( DISTINCT 66 ) - - - 91 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL + + COALESCE ( - COUNT ( * ), + 80 + + 8 ) - COUNT ( * ) * + COUNT ( DISTINCT 66 ) - - - 91 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT - SUM( ( 42 ) ) + + + 75 - - + 72 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-3163
SELECT - SUM ( ( 42 ) ) + + + 75 - - + 72 AS col1
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-3164
SELECT + 5 col0, 71 + + 90 + - + 89 + - COUNT( * ) AS col1
----
5
71

skipif mysql # not compatible
query II rowsort label-3164
SELECT + 5 col0, 71 + + 90 + - + 89 + - COUNT ( * ) AS col1
----
5
71

query I rowsort
SELECT DISTINCT + 87 * + - ( COALESCE ( + 58, 81 ) ) * + NULLIF ( + - 22, 54 ) * 42
----
4662504

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL + 69 - + COUNT( * ) * - MIN( + 68 ) + + 55 + + 88 AS col0
----
280

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL + 69 - + COUNT ( * ) * - MIN ( + 68 ) + + 55 + + 88 AS col0
----
280

query I rowsort
SELECT - COALESCE ( + 81, - 52, + 66 )
----
-81

query I rowsort
SELECT - 45 + - - 68
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT DISTINCT MAX( + - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT MAX ( + - 42 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3170
SELECT - NULLIF ( - - COUNT( * ), - 4 ) / 58 + + + 75 - + 38 * + 84 * - CAST( NULL AS SIGNED ) + + + CAST( + 44 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT - NULLIF ( - - COUNT ( * ), - 4 ) / 58 + + + 75 - + 38 * + 84 * - CAST ( NULL AS INTEGER ) + + + CAST ( + 44 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ALL COALESCE ( 78, + 76 - + + 10 + + 39 * - COUNT( * ) * + 41 )
----
78

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL COALESCE ( 78, + 76 - + + 10 + + 39 * - COUNT ( * ) * + 41 )
----
78

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

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT + COUNT ( * ) / 13
----
0

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

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

query II rowsort
SELECT 28 col2, + 34 AS col1
----
28
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT - 62 * COUNT( ALL - 3 )
----
-62

skipif mysql # not compatible
query I rowsort label-3175
SELECT - 62 * COUNT ( ALL - 3 )
----
-62

query I rowsort
SELECT ALL NULLIF ( - - 62, + 83 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT - MAX( DISTINCT 56 ) * 16 + + 73 AS col1
----
-823

skipif mysql # not compatible
query I rowsort label-3177
SELECT - MAX ( DISTINCT 56 ) * 16 + + 73 AS col1
----
-823

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT - MAX( ALL + 67 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-3178
SELECT - MAX ( ALL + 67 ) AS col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3179
SELECT - NULLIF ( COUNT( * ), + 76 + + CASE - - CASE - 38 WHEN 89 * - - NULLIF ( - 29, + 54 + - 28 ) THEN - ( - COUNT( * ) ) WHEN 17 - 48 - - 45 THEN 57 + COALESCE ( - CASE + 85 WHEN 89 THEN CAST( + NULLIF ( COUNT( * ), + 47 ) AS DECIMAL ) / + 42 WHEN 86 THEN NULL ELSE COUNT( * ) END - NULLIF ( - 79, 29 ), - 89 / - 3 ) * + 13 WHEN SUM( DISTINCT + 79 ) THEN 45 END WHEN SUM( - 55 ) THEN NULL ELSE 1 END ) * - 5 col2
----
5

skipif mysql # not compatible
query I rowsort label-3179
SELECT - NULLIF ( COUNT ( * ), + 76 + + CASE - - CASE - 38 WHEN 89 * - - NULLIF ( - 29, + 54 + - 28 ) THEN - ( - COUNT ( * ) ) WHEN 17 - 48 - - 45 THEN 57 + COALESCE ( - CASE + 85 WHEN 89 THEN CAST ( + NULLIF ( COUNT ( * ), + 47 ) AS REAL ) / + 42 WHEN 86 THEN NULL ELSE COUNT ( * ) END - NULLIF ( - 79, 29 ), - 89 / - 3 ) * + 13 WHEN SUM ( DISTINCT + 79 ) THEN 45 END WHEN SUM ( - 55 ) THEN NULL ELSE 1 END ) * - 5 col2
----
5

query I rowsort
SELECT + 32 * + 40 * 15
----
19200

onlyif mysql # aggregate syntax: 
query II rowsort label-3181
SELECT 28 AS col0, 0 + - COUNT( 49 )
----
28
-1

skipif mysql # not compatible
query II rowsort label-3181
SELECT 28 AS col0, 0 + - COUNT ( 49 )
----
28
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3182
SELECT 63 AS col2, 19 + COUNT( DISTINCT 2 )
----
63
20

skipif mysql # not compatible
query II rowsort label-3182
SELECT 63 AS col2, 19 + COUNT ( DISTINCT 2 )
----
63
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT ALL + COUNT( * ) + - COALESCE ( COUNT( * ), - 31 ) + - - 28 * + + 14 * + MAX( ALL + 91 ) + - 63 AS col2
----
35609

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL + COUNT ( * ) + - COALESCE ( COUNT ( * ), - 31 ) + - - 28 * + + 14 * + MAX ( ALL + 91 ) + - 63 AS col2
----
35609

query I rowsort
SELECT - - 90 - + 64
----
26

query II rowsort
SELECT - 60 AS col1, 97 * 77 - + 90 AS col1
----
-60
7379

query II rowsort
SELECT DISTINCT + + 74 AS col0, + ( + + ( + 15 ) ) * - 67 + 71 AS col2
----
74
-934

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT DISTINCT - 20 * + MAX( + 49 ) + + 96
----
-884

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT - 20 * + MAX ( + 49 ) + + 96
----
-884

onlyif mysql # aggregate syntax: 
query II rowsort label-3188
SELECT + 77 * + 15 + + 7 + - - 35 + + 11, + 12 - + - CASE + SUM( ALL - 85 ) WHEN + COUNT( * ) + 89 * 16 THEN + COUNT( * ) + + + COUNT( * ) END col2
----
1208
NULL

skipif mysql # not compatible
query II rowsort label-3188
SELECT + 77 * + 15 + + 7 + - - 35 + + 11, + 12 - + - CASE + SUM ( ALL - 85 ) WHEN + COUNT ( * ) + 89 * 16 THEN + COUNT ( * ) + + + COUNT ( * ) END col2
----
1208
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3189
SELECT DISTINCT 40 DIV 20
----
2

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT 40 / 20
----
2

query I rowsort
SELECT + - 88 * + 34
----
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT - 23 * ( - COUNT( * ) ) * + + 55 + - 62 + ( - 67 )
----
1136

skipif mysql # not compatible
query I rowsort label-3191
SELECT - 23 * ( - COUNT ( * ) ) * + + 55 + - 62 + ( - 67 )
----
1136

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT - COUNT( * ) * - 83 * - 33 + COUNT( * ) - - - 42
----
-2780

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT - COUNT ( * ) * - 83 * - 33 + COUNT ( * ) - - - 42
----
-2780

query I rowsort
SELECT DISTINCT + ( + NULLIF ( 38, 68 ) ) * 96 + + 23 + - 26 * - 52 - - 31
----
5054

query II rowsort
SELECT DISTINCT + NULLIF ( 26, + 77 ) col2, 81 AS col1
----
26
81

query I rowsort
SELECT + 68 * - 89 AS col2
----
-6052

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

query I rowsort
SELECT DISTINCT 89 * + + ( + - 6 ) - - 98
----
-436

query II rowsort
SELECT ALL + 27, - 72 + - 24 + - 39 * + 53 * + - 73 + ( 71 ) * - 16 + - + ( 0 ) AS col0
----
27
149659

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

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

query II rowsort
SELECT + 61 AS col2, 63
----
61
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3201
SELECT + 7 * + + 53 - - 50 + COUNT( * ) AS col2, 11 AS col2
----
422
11

skipif mysql # not compatible
query II rowsort label-3201
SELECT + 7 * + + 53 - - 50 + COUNT ( * ) AS col2, 11 AS col2
----
422
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT CASE + SUM( DISTINCT - 7 ) WHEN 13 THEN NULL WHEN 15 THEN - COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT CASE + SUM ( DISTINCT - 7 ) WHEN 13 THEN NULL WHEN 15 THEN - COUNT ( * ) END col1
----
NULL

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

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

query I rowsort
SELECT ALL + 38 * ( 42 ) AS col1
----
1596

query I rowsort
SELECT ALL COALESCE ( - 67, + 19 )
----
-67

query I rowsort
SELECT ALL 38 * 88 + + 40
----
3384

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

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL + ( - 11 ) + - COUNT ( * ) AS col1
----
-12

query I rowsort
SELECT - 79 - - 25 * - 81 * 39 col0
----
-79054

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT ALL MAX( ALL 6 ) * 84 AS col0
----
504

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL MAX ( ALL 6 ) * 84 AS col0
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT + MIN( ALL - - 33 ) + 66
----
99

skipif mysql # not compatible
query I rowsort label-3210
SELECT + MIN ( ALL - - 33 ) + 66
----
99

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3212
SELECT - COUNT( * ) DIV 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3212
SELECT - COUNT ( * ) / 57 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3213
SELECT + 44 + 5 + + 56 + 37 + + 96 DIV + - 65
----
141

skipif mysql # not compatible
query I rowsort label-3213
SELECT + 44 + 5 + + 56 + 37 + + 96 / + - 65
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT - MAX( - 50 )
----
50

skipif mysql # not compatible
query I rowsort label-3214
SELECT - MAX ( - 50 )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3215
SELECT ALL - 48 + 29 DIV - + 67 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL - 48 + 29 / - + 67 AS col0
----
-48

query I rowsort
SELECT - 20 + - 96 AS col2
----
-116

query I rowsort
SELECT ALL 26 + + ( 57 ) col1
----
83

query I rowsort
SELECT - 96 + - 49 AS col1
----
-145

query II rowsort
SELECT DISTINCT - 63, 97 + - ( 11 ) * - 73 AS col2
----
-63
900

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - 14 + - 6 * 26 - + COUNT( * ) AS col1
----
-171

skipif mysql # not compatible
query I rowsort label-3220
SELECT - 14 + - 6 * 26 - + COUNT ( * ) AS col1
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL + + CASE + 6 WHEN 17 + + 8 THEN 0 * + + 62 WHEN - 97 + - - 29 THEN NULL ELSE NULL END + + + COUNT( * ) * 61 + + 29 - 54 * + 29 + + 92 / - ( + 26 ) * - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL + + CASE + 6 WHEN 17 + + 8 THEN 0 * + + 62 WHEN - 97 + - - 29 THEN NULL ELSE NULL END + + + COUNT ( * ) * 61 + + 29 - 54 * + 29 + + 92 / - ( + 26 ) * - 61 AS col1
----
NULL

query II rowsort
SELECT - + 37, 59 AS col1
----
-37
59

query I rowsort
SELECT ALL + 84 + + 80 + - 58 - 90
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3224
SELECT - + SUM( ALL + 64 ) + 54 + 18 DIV + - 40 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-3224
SELECT - + SUM ( ALL + 64 ) + 54 + 18 / + - 40 AS col1
----
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT - COALESCE ( + - COUNT( * ), - + COUNT( * ) + - + 23, - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-3226
SELECT - COALESCE ( + - COUNT ( * ), - + COUNT ( * ) + - + 23, - 99 )
----
1

query I rowsort
SELECT - - 3 + - 99 + + 16 * 4 AS col0
----
-32

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

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

query I rowsort
SELECT ALL + - 42 * + + 23
----
-966

onlyif mysql # aggregate syntax: 
query II rowsort label-3230
SELECT + 89 AS col2, 28 + - COUNT( * )
----
89
27

skipif mysql # not compatible
query II rowsort label-3230
SELECT + 89 AS col2, 28 + - COUNT ( * )
----
89
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3231
SELECT + + 55, 41 DIV + - 95 - COUNT( * ) * + - 23 * 77 AS col1
----
55
1771

skipif mysql # not compatible
query II rowsort label-3231
SELECT + + 55, 41 / + - 95 - COUNT ( * ) * + - 23 * 77 AS col1
----
55
1771

query I rowsort
SELECT ALL + - 0 * + + 92 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3233
SELECT + + MAX( DISTINCT + 40 ) * - CAST( - - 55 AS SIGNED ) + 63 DIV NULLIF ( - SUM( ALL + 69 ), + 51 + 78 ) + - 6 col0, 29 + COALESCE ( ( + 9 ), COUNT( DISTINCT 78 ) ) + - ( 82 ) * - ( 87 ) AS col0
----
-2206
7172

skipif mysql # not compatible
query II rowsort label-3233
SELECT + + MAX ( DISTINCT + 40 ) * - CAST ( - - 55 AS INTEGER ) + 63 / NULLIF ( - SUM ( ALL + 69 ), + 51 + 78 ) + - 6 col0, 29 + COALESCE ( ( + 9 ), COUNT ( DISTINCT 78 ) ) + - ( 82 ) * - ( 87 ) AS col0
----
-2206
7172

query II rowsort
SELECT DISTINCT - - 31 AS col0, 85 AS col0
----
31
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3235
SELECT ALL 52 DIV 62 * - 98
----
0

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL 52 / 62 * - 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3236
SELECT COUNT( * ) * + 92 + + + MAX( + 94 ) + + CAST( + 74 AS SIGNED ) AS col0
----
260

skipif mysql # not compatible
query I rowsort label-3236
SELECT COUNT ( * ) * + 92 + + + MAX ( + 94 ) + + CAST ( + 74 AS INTEGER ) AS col0
----
260

query I rowsort
SELECT + 40 * + + 58 * + 46 + - 67
----
106653

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

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

query II rowsort
SELECT 88 + + 63, 7 * + 78 * 89 AS col1
----
151
48594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3240
SELECT ALL 22 * 86 AS col2, NULLIF ( + CASE + - 43 WHEN + 77 - 96 - + ( + COUNT( * ) ) * - 10 * + + 50 - - - COUNT( * ) THEN + CASE NULLIF ( - 70, + CAST( NULL AS SIGNED ) ) WHEN - - SUM( ALL - 37 ) - + 9 THEN + 24 WHEN + MIN( + 48 ) THEN NULL END ELSE 57 END, 58 * + 62 )
----
1892
57

skipif mysql # not compatible
query II rowsort label-3240
SELECT ALL 22 * 86 AS col2, NULLIF ( + CASE + - 43 WHEN + 77 - 96 - + ( + COUNT ( * ) ) * - 10 * + + 50 - - - COUNT ( * ) THEN + CASE NULLIF ( - 70, + CAST ( NULL AS INTEGER ) ) WHEN - - SUM ( ALL - 37 ) - + 9 THEN + 24 WHEN + MIN ( + 48 ) THEN NULL END ELSE 57 END, 58 * + 62 )
----
1892
57

query I rowsort
SELECT CASE - 20 WHEN 26 THEN + 61 * + - ( - - 56 ) * - 76 ELSE NULL END * + - 72
----
NULL

query I rowsort
SELECT - NULLIF ( + 6, - - 26 ) * + 95 * 55 + - 95 AS col2
----
-31445

onlyif mysql # aggregate syntax: 
query II rowsort label-3243
SELECT ALL 38 + + - 8, 82 + 62 + + 25 + + - 23 * COUNT( * ) AS col1
----
30
146

skipif mysql # not compatible
query II rowsort label-3243
SELECT ALL 38 + + - 8, 82 + 62 + + 25 + + - 23 * COUNT ( * ) AS col1
----
30
146

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3244
SELECT ALL CAST( NULL AS SIGNED ) + 82 AS col2, 20 + - 25 * + 70
----
NULL
-1730

skipif mysql # not compatible
query II rowsort label-3244
SELECT ALL CAST ( NULL AS INTEGER ) + 82 AS col2, 20 + - 25 * + 70
----
NULL
-1730

query I rowsort
SELECT ALL - 44 + 53
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT DISTINCT - ( - 91 ) * 76 + COUNT( * )
----
6917

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT - ( - 91 ) * 76 + COUNT ( * )
----
6917

query I rowsort
SELECT ALL 78 + - 56 + + 83
----
105

query I rowsort
SELECT DISTINCT 72 + + 3 + - - 69
----
144

query I rowsort
SELECT 8 - 92 + 77 AS col2
----
-7

query I rowsort
SELECT DISTINCT + 43 * - - 14 + - ( - 29 ) AS col2
----
631

onlyif mysql # DIV for integer division: 
query I rowsort label-3251
SELECT 98 DIV 24
----
4

skipif mysql # not compatible
query I rowsort label-3251
SELECT 98 / 24
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3252
SELECT 85 * - 73 AS col1, - COUNT( * )
----
-6205
-1

skipif mysql # not compatible
query II rowsort label-3252
SELECT 85 * - 73 AS col1, - COUNT ( * )
----
-6205
-1

query I rowsort
SELECT 29 * 84 * - + 23 * + - 46
----
2577288

query I rowsort
SELECT ALL + 52 - - 28 - 11
----
69

query I rowsort
SELECT - 87 - 16
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3256
SELECT DISTINCT 75 * COUNT( * ) AS col1, + CASE CASE + + COALESCE ( 43, - 4 ) WHEN - 74 THEN - + 15 / + + 7 END WHEN 30 * 21 + - 80 THEN NULL WHEN 29 - + 28 * 51 + - 67 + - 65 * - CAST( 31 - 7 AS SIGNED ) THEN NULL ELSE 47 * 13 END + CASE CAST( + 95 AS SIGNED ) WHEN 8 THEN 14 WHEN 4 THEN NULL END
----
75
NULL

skipif mysql # not compatible
query II rowsort label-3256
SELECT DISTINCT 75 * COUNT ( * ) AS col1, + CASE CASE + + COALESCE ( 43, - 4 ) WHEN - 74 THEN - + 15 / + + 7 END WHEN 30 * 21 + - 80 THEN NULL WHEN 29 - + 28 * 51 + - 67 + - 65 * - CAST ( 31 - 7 AS INTEGER ) THEN NULL ELSE 47 * 13 END + CASE CAST ( + 95 AS INTEGER ) WHEN 8 THEN 14 WHEN 4 THEN NULL END
----
75
NULL

query I rowsort
SELECT DISTINCT ( + - 84 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL + COALESCE ( COUNT( * ), NULLIF ( + + 13, 83 ) + - 21 + + 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL + COALESCE ( COUNT ( * ), NULLIF ( + + 13, 83 ) + - 21 + + 60 ) AS col0
----
1

query I rowsort
SELECT + 81 + + 13 col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3260
SELECT + 56 * 46 + + ( + 31 ) - 57 + + - 79 * 63 * + 19 * + 13 * - ( - COALESCE ( - CAST( NULL AS SIGNED ), + + CAST( NULL AS SIGNED ) + - 63 ) ) * + - AVG ( + - 24 ) + - 34 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3260
SELECT + 56 * 46 + + ( + 31 ) - 57 + + - 79 * 63 * + 19 * + 13 * - ( - COALESCE ( - CAST ( NULL AS INTEGER ), + + CAST ( NULL AS INTEGER ) + - 63 ) ) * + - AVG ( + - 24 ) + - 34 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT 34 * - ( + 11 ) + - - 45 * - MAX( ALL + 56 ) AS col0
----
-2894

skipif mysql # not compatible
query I rowsort label-3261
SELECT 34 * - ( + 11 ) + - - 45 * - MAX ( ALL + 56 ) AS col0
----
-2894

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3262
SELECT ALL - MIN( 81 ) col0, 89 DIV - 92 * + 48 + + + 63 - + 24 + 46
----
-81
85

skipif mysql # not compatible
query II rowsort label-3262
SELECT ALL - MIN ( 81 ) col0, 89 / - 92 * + 48 + + + 63 - + 24 + 46
----
-81
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT + CASE - 73 WHEN + + 97 + CASE COUNT( * ) WHEN - 49 + + 22 * - - 36 THEN NULL WHEN 2 THEN NULL ELSE - COUNT( 45 ) END + + - 55 * + + 58 THEN NULL WHEN + 0 / 33 + COALESCE ( - + 29, COALESCE ( - 50, ( 98 ) * 22, + ( 65 ) * 89 ), ( CASE - 6 WHEN - 36 THEN NULL WHEN + COUNT( * ) THEN 67 WHEN 3 * + 45 + + COALESCE ( + 47, - 32 * 7, - COUNT( * ) * - 53 ) THEN 22 + 79 END ) ) THEN + 41 * NULLIF ( 82, 50 ) + 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT + CASE - 73 WHEN + + 97 + CASE COUNT ( * ) WHEN - 49 + + 22 * - - 36 THEN NULL WHEN 2 THEN NULL ELSE - COUNT ( 45 ) END + + - 55 * + + 58 THEN NULL WHEN + 0 / 33 + COALESCE ( - + 29, COALESCE ( - 50, ( 98 ) * 22, + ( 65 ) * 89 ), ( CASE - 6 WHEN - 36 THEN NULL WHEN + COUNT ( * ) THEN 67 WHEN 3 * + 45 + + COALESCE ( + 47, - 32 * 7, - COUNT ( * ) * - 53 ) THEN 22 + 79 END ) ) THEN + 41 * NULLIF ( 82, 50 ) + 11 END
----
NULL

query I rowsort
SELECT 78 * 3
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT 97 DIV + NULLIF ( + 22, 84 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3265
SELECT 97 / + NULLIF ( + 22, 84 ) AS col0
----
4

query I rowsort
SELECT ALL 98 + - + 91 - - 51 + - - 70 - + 18 * 21
----
-250

query I rowsort
SELECT 23 * - 99 * - ( - - 79 )
----
179883

query I rowsort
SELECT NULLIF ( + 56, + + 11 ) * - 67
----
-3752

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT ALL NULLIF ( - + COUNT( * ), - 1 * 96 ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL NULLIF ( - + COUNT ( * ), - 1 * 96 ) + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3270
SELECT COUNT( * ) - - + MAX( 37 ), + 50 AS col1
----
38
50

skipif mysql # not compatible
query II rowsort label-3270
SELECT COUNT ( * ) - - + MAX ( 37 ), + 50 AS col1
----
38
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + MAX( DISTINCT - - 12 )
----
12

skipif mysql # not compatible
query I rowsort label-3271
SELECT + MAX ( DISTINCT - - 12 )
----
12

query I rowsort
SELECT 13 + + + 2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3273
SELECT ALL COUNT( * ) * + - 29 * + CAST( - - 80 AS SIGNED ) * - 86 AS col0
----
199520

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL COUNT ( * ) * + - 29 * + CAST ( - - 80 AS INTEGER ) * - 86 AS col0
----
199520

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT DISTINCT - 3 DIV 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT - 3 / 41 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT ALL + 49 + + - SUM( + 17 ) * 20 * + 16 AS col0
----
-5391

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL + 49 + + - SUM ( + 17 ) * 20 * + 16 AS col0
----
-5391

query I rowsort
SELECT DISTINCT 26 * - 12 col1
----
-312

query I rowsort
SELECT ALL 84 - 61
----
23

query II rowsort
SELECT 68 AS col1, - 1 * + 11 AS col0
----
68
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT 48 - + CASE - 32 WHEN + + 29 THEN - - NULLIF ( - + 73, + 64 * 49 * COUNT( * ) ) / + - COUNT( * ) * - 46 * - COUNT( * ) + + COUNT( * ) WHEN - 30 * - 87 THEN - 77 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT 48 - + CASE - 32 WHEN + + 29 THEN - - NULLIF ( - + 73, + 64 * 49 * COUNT ( * ) ) / + - COUNT ( * ) * - 46 * - COUNT ( * ) + + COUNT ( * ) WHEN - 30 * - 87 THEN - 77 END AS col1
----
NULL

query II rowsort
SELECT ALL 6 col0, 41
----
6
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT + CASE - - ( + + 3 ) WHEN 76 + + 49 + + 88 - - COUNT( * ) + - 80 THEN - 19 - + 41 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT + CASE - - ( + + 3 ) WHEN 76 + + 49 + + 88 - - COUNT ( * ) + - 80 THEN - 19 - + 41 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3282
SELECT + 71 + - MIN( ALL - 26 ) DIV - ( - - 26 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3282
SELECT + 71 + - MIN ( ALL - 26 ) / - ( - - 26 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT + + COUNT( * ) + + 90
----
91

skipif mysql # not compatible
query I rowsort label-3283
SELECT + + COUNT ( * ) + + 90
----
91

query I rowsort
SELECT ALL + NULLIF ( 26, + 49 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT DISTINCT - - CASE ( + 68 ) WHEN + ( 0 ) THEN + 29 ELSE - MAX( ALL - 26 ) END * - + 68 + 64 AS col2
----
-1704

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT - - CASE ( + 68 ) WHEN + ( 0 ) THEN + 29 ELSE - MAX ( ALL - 26 ) END * - + 68 + 64 AS col2
----
-1704

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

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

query I rowsort
SELECT + 35 + - 33 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3288
SELECT + 74 * 94 DIV + 15 + COUNT( * )
----
464

skipif mysql # not compatible
query I rowsort label-3288
SELECT + 74 * 94 / + 15 + COUNT ( * )
----
464

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT - + 43 * + + COUNT( * ) * + 48 + - 62
----
-2126

skipif mysql # not compatible
query I rowsort label-3289
SELECT - + 43 * + + COUNT ( * ) * + 48 + - 62
----
-2126

query I rowsort
SELECT DISTINCT + 38 * - 8 * + 67
----
-20368

query II rowsort
SELECT - 9, + 36 - + 63 - - - 20 AS col1
----
-9
-47

query II rowsort
SELECT - 20 AS col0, + 25 AS col1
----
-20
25

query I rowsort
SELECT ALL 31 * ( - 23 ) AS col1
----
-713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3294
SELECT - CASE + - 1 WHEN - 6 * + CASE SUM( ALL - 40 ) WHEN + 36 * 73 - - - MAX( 68 ) * CAST( 11 AS SIGNED ) / + 60 THEN - - 66 ELSE NULL END + - COUNT( * ) THEN NULL WHEN + - 58 THEN NULL WHEN - + ( 75 ) THEN - 53 + 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT - CASE + - 1 WHEN - 6 * + CASE SUM ( ALL - 40 ) WHEN + 36 * 73 - - - MAX ( 68 ) * CAST ( 11 AS INTEGER ) / + 60 THEN - - 66 ELSE NULL END + - COUNT ( * ) THEN NULL WHEN + - 58 THEN NULL WHEN - + ( 75 ) THEN - 53 + 16 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT + MAX( DISTINCT + - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-3295
SELECT + MAX ( DISTINCT + - 79 )
----
-79

query I rowsort
SELECT DISTINCT + 27 * + 77 + + - 46 + - + 46 AS col2
----
1987

query I rowsort
SELECT + 75 * 74 * 47
----
260850

query I rowsort
SELECT 79 * + - 46 + 45
----
-3589

query I rowsort
SELECT COALESCE ( - 17, - 13 ) AS col2
----
-17

query I rowsort
SELECT - 57 + 90 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT COALESCE ( - 88, - - SUM( 96 ) * - - 94, + + 52 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3301
SELECT COALESCE ( - 88, - - SUM ( 96 ) * - - 94, + + 52 ) AS col2
----
-88

query I rowsort
SELECT - 94 * - 5 + 78 AS col0
----
548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT ALL - CAST( + + 42 AS SIGNED ) * + 38
----
-1596

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL - CAST ( + + 42 AS INTEGER ) * + 38
----
-1596

query I rowsort
SELECT DISTINCT + NULLIF ( 0, + - 41 ) * 52 - + - 60 * + - ( - 30 ) AS col0
----
1800

onlyif mysql # aggregate syntax: 
query II rowsort label-3305
SELECT ALL 31 * + - COUNT( * ) * + ( - 72 ) - + COUNT( * ) AS col1, + 83 AS col1
----
2231
83

skipif mysql # not compatible
query II rowsort label-3305
SELECT ALL 31 * + - COUNT ( * ) * + ( - 72 ) - + COUNT ( * ) AS col1, + 83 AS col1
----
2231
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT - COUNT( 99 ) + - 87 * 45 col0
----
-3916

skipif mysql # not compatible
query I rowsort label-3306
SELECT - COUNT ( 99 ) + - 87 * 45 col0
----
-3916

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL - CASE - - ( + SUM( - 5 ) ) WHEN 33 THEN - 68 + + 56 END * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - CASE - - ( + SUM ( - 5 ) ) WHEN 33 THEN - 68 + + 56 END * + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT DISTINCT ( + MAX( DISTINCT - - ( - 35 ) ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT ( + MAX ( DISTINCT - - ( - 35 ) ) ) AS col0
----
-35

query II rowsort
SELECT ALL ( + - 13 ) AS col0, 10 + - 59 AS col2
----
-13
-49

query I rowsort
SELECT CASE 12 WHEN - 54 THEN - - 98 END AS col1
----
NULL

query I rowsort
SELECT - 47 * + 28 + 19 AS col0
----
-1297

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT DISTINCT - - CASE + COUNT( * ) WHEN 38 + - 99 THEN NULL WHEN + - 41 THEN + + 48 ELSE NULL END - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT - - CASE + COUNT ( * ) WHEN 38 + - 99 THEN NULL WHEN + - 41 THEN + + 48 ELSE NULL END - + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL CASE + 82 WHEN - 80 THEN + + CASE - 72 WHEN - - 42 THEN NULL WHEN + - 84 THEN + MAX( ALL 7 ) ELSE NULL END * 18 * - 47 + - ( - + 14 ) WHEN 63 + - ( + ( + 12 ) ) + + AVG ( DISTINCT - 95 ) * - 57 * 2 THEN 67 + 6 END / 14 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL CASE + 82 WHEN - 80 THEN + + CASE - 72 WHEN - - 42 THEN NULL WHEN + - 84 THEN + MAX ( ALL 7 ) ELSE NULL END * 18 * - 47 + - ( - + 14 ) WHEN 63 + - ( + ( + 12 ) ) + + AVG ( DISTINCT - 95 ) * - 57 * 2 THEN 67 + 6 END / 14 col1
----
NULL

query II rowsort
SELECT ALL - 61 * - 31 AS col0, - 21 * + - 39
----
1891
819

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3315
SELECT + CAST( + 95 AS SIGNED ) DIV + - 32
----
-2

skipif mysql # not compatible
query I rowsort label-3315
SELECT + CAST ( + 95 AS INTEGER ) / + - 32
----
-2

query I rowsort
SELECT - - 7 col2
----
7

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

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

query I rowsort
SELECT + - 73 + - + 84 AS col0
----
-157

query I rowsort
SELECT ALL + 9 * - - 36 AS col0
----
324

query II rowsort
SELECT + + 98 * - + 6 AS col1, 63 + + - 4
----
-588
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT + - COALESCE ( 86, + 8 ) - COUNT( DISTINCT + 51 ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-3321
SELECT + - COALESCE ( 86, + 8 ) - COUNT ( DISTINCT + 51 ) col1
----
-87

query I rowsort
SELECT ALL 25 + + - ( + 35 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3323
SELECT DISTINCT + - 51 + ( + COUNT( * ) ) - - - 2 + COUNT( ALL - 19 ) * + 63 DIV CASE COUNT( * ) WHEN 58 THEN NULL WHEN + 85 THEN - CASE + ( ( 16 ) ) WHEN - COUNT( * ) THEN + MAX( 85 ) WHEN - 18 THEN NULL ELSE + COUNT( DISTINCT 46 ) * 75 END ELSE 61 END AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT + - 51 + ( + COUNT ( * ) ) - - - 2 + COUNT ( ALL - 19 ) * + 63 / CASE COUNT ( * ) WHEN 58 THEN NULL WHEN + 85 THEN - CASE + ( ( 16 ) ) WHEN - COUNT ( * ) THEN + MAX ( 85 ) WHEN - 18 THEN NULL ELSE + COUNT ( DISTINCT 46 ) * 75 END ELSE 61 END AS col1
----
-51

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

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

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

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

query I rowsort
SELECT ALL 82 + + + 11
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3327
SELECT ALL + 88 DIV + COUNT( * ) + - 23 * + 72 + - - 96 col0
----
-1472

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL + 88 / + COUNT ( * ) + - 23 * + 72 + - - 96 col0
----
-1472

query I rowsort
SELECT + 81 * + 82 AS col1
----
6642

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

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

query I rowsort
SELECT + ( 77 ) * - 9 col1
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT DISTINCT + MIN( ALL - + 43 ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT + MIN ( ALL - + 43 ) col0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3332
SELECT ALL - 78 DIV + COUNT( 23 ) * + - 1 DIV - COUNT( * ) - - 28 + + COALESCE ( + 2, + + 15, + 63 ) * - ( 90 ) - - ( - SUM( DISTINCT - + 57 ) ) AS col0
----
-173

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL - 78 / + COUNT ( 23 ) * + - 1 / - COUNT ( * ) - - 28 + + COALESCE ( + 2, + + 15, + 63 ) * - ( 90 ) - - ( - SUM ( DISTINCT - + 57 ) ) AS col0
----
-173

query II rowsort
SELECT ALL + 3 col0, 39 AS col0
----
3
39

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT - 64 * - 67 + 70 + + - 76 * MIN( ALL - - 48 ) * - + 42 AS col0
----
157574

skipif mysql # not compatible
query I rowsort label-3336
SELECT - 64 * - 67 + 70 + + - 76 * MIN ( ALL - - 48 ) * - + 42 AS col0
----
157574

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

query I rowsort
SELECT 58 * - 12 + - + ( + 71 )
----
-767

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3340
SELECT 38 + COUNT( ALL - 26 ) col2, - 65 AS col2
----
39
-65

skipif mysql # not compatible
query II rowsort label-3340
SELECT 38 + COUNT ( ALL - 26 ) col2, - 65 AS col2
----
39
-65

query I rowsort
SELECT 83 + ( - + ( + + 96 ) ) AS col0
----
-13

query I rowsort
SELECT 84 * 83 * + + 10 + - - 62 AS col0
----
69782

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT - CASE + 33 WHEN + 15 * + 4 + 28 + 22 + AVG ( DISTINCT + + 16 ) THEN NULL WHEN + + COUNT( * ) THEN NULL WHEN - 66 * - - 38 THEN 68 ELSE NULL END * - 51 + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT - CASE + 33 WHEN + 15 * + 4 + 28 + 22 + AVG ( DISTINCT + + 16 ) THEN NULL WHEN + + COUNT ( * ) THEN NULL WHEN - 66 * - - 38 THEN 68 ELSE NULL END * - 51 + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL - COUNT( * ) + + 74 + + 80
----
153

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL - COUNT ( * ) + + 74 + + 80
----
153

query I rowsort
SELECT + 33 + + - 92 AS col2
----
-59

query II rowsort
SELECT DISTINCT + 57 col1, - 22
----
57
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3347
SELECT + 30 + + NULLIF ( 13, - 80 / - 75 ) - - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - - 15 / + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT + 30 + + NULLIF ( 13, - 80 / - 75 ) - - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - - 15 / + 76 AS col0
----
NULL

query II rowsort
SELECT ALL + 88 + 16 + + 64 * + + 72 * + 65, 26 col1
----
299624
26

query I rowsort
SELECT - 83 + 82 * - 99 AS col2
----
-8201

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

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

skipif mysql # not compatible
query I rowsort label-3351
SELECT - 97 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL - COUNT( * ) + + - 67 * - 48
----
3215

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL - COUNT ( * ) + + - 67 * - 48
----
3215

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT DISTINCT CASE 85 WHEN + 27 + MAX( + + ( + 69 ) ) + + - 82 * + 82 + + - 12 + COUNT( * ) THEN - + 30 * - - CASE + + 10 WHEN - 8 THEN NULL ELSE 36 + 68 + 8 * + 11 END + + 12 * - ( 19 ) + - 54 WHEN ( + 16 ) + 13 THEN NULL ELSE + 58 END * 98 AS col1
----
5684

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT CASE 85 WHEN + 27 + MAX ( + + ( + 69 ) ) + + - 82 * + 82 + + - 12 + COUNT ( * ) THEN - + 30 * - - CASE + + 10 WHEN - 8 THEN NULL ELSE 36 + 68 + 8 * + 11 END + + 12 * - ( 19 ) + - 54 WHEN ( + 16 ) + 13 THEN NULL ELSE + 58 END * 98 AS col1
----
5684

query I rowsort
SELECT + ( + 78 ) + + 14 - - 39 - 85 AS col2
----
46

query I rowsort
SELECT 81 * - COALESCE ( - 46, - 25 ) col1
----
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT COUNT( * ) + - 80
----
-79

skipif mysql # not compatible
query I rowsort label-3356
SELECT COUNT ( * ) + - 80
----
-79

query I rowsort
SELECT 26 + + + 60 + ( - 97 ) AS col2
----
-11

query I rowsort
SELECT ALL 22 - + 37 + 96 * - 70 * + 68 AS col1
----
-456975

query II rowsort
SELECT ALL - 78, - 50 * 12 * - - 71 * - 91 AS col2
----
-78
3876600

onlyif mysql # DIV for integer division: 
query I rowsort label-3360
SELECT - 48 DIV + - 98 + 88 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-3360
SELECT - 48 / + - 98 + 88 AS col0
----
88

query I rowsort
SELECT ALL + 17 * + - 11 col1
----
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3362
SELECT ALL CAST( 38 AS SIGNED ) * - - 32
----
1216

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL CAST ( 38 AS INTEGER ) * - - 32
----
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT COALESCE ( - COUNT( * ), 57 ) * + 27
----
-27

skipif mysql # not compatible
query I rowsort label-3363
SELECT COALESCE ( - COUNT ( * ), 57 ) * + 27
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3364
SELECT + 30, - 75 * + 10 + + COUNT( * ) col2
----
30
-749

skipif mysql # not compatible
query II rowsort label-3364
SELECT + 30, - 75 * + 10 + + COUNT ( * ) col2
----
30
-749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT DISTINCT ( + 33 ) / + ( - - 33 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT ( + 33 ) / + ( - - 33 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT 54 * + 78 + + 1 + + 80 - + + CASE + 90 WHEN 76 THEN - 55 WHEN + 19 * + 30 + + + 58 THEN 3 * - + COUNT( * ) * 2 END * - 54 * + - ( + 2 ) / + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT 54 * + 78 + + 1 + + 80 - + + CASE + 90 WHEN 76 THEN - 55 WHEN + 19 * + 30 + + + 58 THEN 3 * - + COUNT ( * ) * 2 END * - 54 * + - ( + 2 ) / + COUNT ( * ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3367
SELECT 73 + + 37 + + 20 DIV + 88 * + 44 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-3367
SELECT 73 + + 37 + + 20 / + 88 * + 44 AS col1
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT ALL CAST( NULL AS SIGNED ) * 11 * 56 AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT 30 * + + 58 AS col1
----
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT + MAX( DISTINCT 75 ) + COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-3370
SELECT + MAX ( DISTINCT 75 ) + COUNT ( * ) AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3371
SELECT CAST( COUNT( * ) AS SIGNED ) * 46 + 94 * 28 AS col0
----
2678

skipif mysql # not compatible
query I rowsort label-3371
SELECT CAST ( COUNT ( * ) AS INTEGER ) * 46 + 94 * 28 AS col0
----
2678

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT + COUNT( DISTINCT - - 28 ) * - 24 + + 44 + 88 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-3372
SELECT + COUNT ( DISTINCT - - 28 ) * - 24 + + 44 + 88 AS col1
----
108

query II rowsort
SELECT ALL + 64 AS col0, 86
----
64
86

query II rowsort
SELECT - ( - 36 ), + 26 AS col2
----
36
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3375
SELECT 67 + 21 + - 44 DIV + - 89 col1
----
88

skipif mysql # not compatible
query I rowsort label-3375
SELECT 67 + 21 + - 44 / + - 89 col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3376
SELECT - 76 AS col2, 1 * + + MAX( ALL - + 50 ) col0
----
-76
-50

skipif mysql # not compatible
query II rowsort label-3376
SELECT - 76 AS col2, 1 * + + MAX ( ALL - + 50 ) col0
----
-76
-50

query II rowsort
SELECT - 93 AS col0, 20 + 96 + 79
----
-93
195

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3380
SELECT + CASE + 8 WHEN 47 THEN - ( + CASE - COUNT( * ) WHEN + SUM( - + 81 ) - 53 THEN NULL WHEN - 25 * - COUNT( * ) + - + 18 THEN - 11 + - + 25 ELSE + ( + + 50 ) + - 55 * + + CAST( - 99 AS SIGNED ) END ) * + 45 + ( - 81 ) WHEN 85 THEN + 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT + CASE + 8 WHEN 47 THEN - ( + CASE - COUNT ( * ) WHEN + SUM ( - + 81 ) - 53 THEN NULL WHEN - 25 * - COUNT ( * ) + - + 18 THEN - 11 + - + 25 ELSE + ( + + 50 ) + - 55 * + + CAST ( - 99 AS INTEGER ) END ) * + 45 + ( - 81 ) WHEN 85 THEN + 63 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL - + COUNT( * ) + - + MAX( DISTINCT 79 ) * 38
----
-3003

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL - + COUNT ( * ) + - + MAX ( DISTINCT 79 ) * 38
----
-3003

query I rowsort
SELECT ( - ( - 3 ) ) col2
----
3

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

skipif mysql # not compatible
query I rowsort label-3383
SELECT + COUNT ( * ) + 90 AS col1
----
91

query I rowsort
SELECT 16 * 8 AS col1
----
128

query I rowsort
SELECT - 56 * - 79 AS col2
----
4424

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL SUM( - - 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL SUM ( - - 15 ) AS col2
----
15

query I rowsort
SELECT 7 - 12 - 7 + + 58 AS col2
----
46

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

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT COUNT ( ALL + + 92 ) AS col0
----
1

query I rowsort
SELECT 16 - + NULLIF ( - 13, - 33 ) + + 36 * 2
----
101

query I rowsort
SELECT ALL 68 * + 18 * + + ( 14 )
----
17136

query I rowsort
SELECT 32 * + 75 AS col0
----
2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3392
SELECT CASE - CASE + 81 WHEN 86 * + 53 THEN 38 * + - 87 + + COUNT( * ) - - ( - 61 ) - 62 * + 29 END WHEN 11 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT CASE - CASE + 81 WHEN 86 * + 53 THEN 38 * + - 87 + + COUNT ( * ) - - ( - 61 ) - 62 * + 29 END WHEN 11 THEN CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT NULLIF ( + 82, + - 43 ) AS col1
----
82

query I rowsort
SELECT - 14 * 78 * + - 38 AS col0
----
41496

query I rowsort
SELECT + ( - 73 ) * - 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3396
SELECT DISTINCT 31 * + COUNT( * ) * - 86 + + + COUNT( ALL - + 49 ) + - ( + + CAST( NULL AS DECIMAL ) ) - ( + 26 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT 31 * + COUNT ( * ) * - 86 + + + COUNT ( ALL - + 49 ) + - ( + + CAST ( NULL AS REAL ) ) - ( + 26 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL + ( + + COUNT( - - 83 ) ) * COUNT( 54 )
----
1

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL + ( + + COUNT ( - - 83 ) ) * COUNT ( 54 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3398
SELECT DISTINCT + MAX( CASE 30 WHEN - + CAST( NULL AS SIGNED ) THEN + 85 WHEN + 76 THEN 99 ELSE - + 63 END ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT + MAX ( CASE 30 WHEN - + CAST ( NULL AS INTEGER ) THEN + 85 WHEN + 76 THEN 99 ELSE - + 63 END ) AS col2
----
-63

query I rowsort
SELECT 82 * + + NULLIF ( + 39, + - 27 ) * - ( - 67 ) + - 83
----
214183

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT ALL 73 * + + 88 + MAX( + 71 )
----
6495

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL 73 * + + 88 + MAX ( + 71 )
----
6495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3402
SELECT ALL - - 57 DIV COUNT( * ) + - 27 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL - - 57 / COUNT ( * ) + - 27 AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3403
SELECT + - 41 + + 5 DIV + 87, COUNT( * ) col2
----
-41
1

skipif mysql # not compatible
query II rowsort label-3403
SELECT + - 41 + + 5 / + 87, COUNT ( * ) col2
----
-41
1

query I rowsort
SELECT DISTINCT + 77 * 17
----
1309

query I rowsort
SELECT + 74 * + 9
----
666

query I rowsort
SELECT ALL - CASE + 25 WHEN - 24 THEN + 94 - + 11 + - 72 ELSE + 96 END col0
----
-96

query I rowsort
SELECT + 32 + + + 84 col0
----
116

query I rowsort
SELECT + 1 + - 95
----
-94

query I rowsort
SELECT - + 84 * - + 50
----
4200

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

query I rowsort
SELECT - 28 + + 60 col0
----
32

query I rowsort
SELECT + 81 + - + 57 + + - 88 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT + 98 * + CASE - 29 WHEN - 27 THEN 38 WHEN + 61 THEN - COUNT( - 41 ) END * 25 * + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT + 98 * + CASE - 29 WHEN - 27 THEN 38 WHEN + 61 THEN - COUNT ( - 41 ) END * 25 * + 33 AS col0
----
NULL

query I rowsort
SELECT - 57 + + - 40 * + ( - 94 ) + + 32 AS col2
----
3735

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL CASE + 31 WHEN - + COALESCE ( + 81, + 82, + + ( + AVG ( 53 ) ) / - - 4 * NULLIF ( + + 91, + - 57 - COUNT( * ) + + 4 + + 90 ) - - ( + - 55 ) + - 54 ) THEN + - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL CASE + 31 WHEN - + COALESCE ( + 81, + 82, + + ( + AVG ( 53 ) ) / - - 4 * NULLIF ( + + 91, + - 57 - COUNT ( * ) + + 4 + + 90 ) - - ( + - 55 ) + - 54 ) THEN + - COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT SUM( ALL + CASE WHEN NOT + 23 IS NULL THEN + 74 ELSE NULL END ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT SUM ( ALL + CASE WHEN NOT + 23 IS NULL THEN + 74 ELSE NULL END ) AS col0
----
74

query I rowsort
SELECT + 62 + + 75 AS col0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT ALL CASE - 78 WHEN - + 43 THEN 71 + 23 WHEN + COUNT( * ) THEN + 3 + + - 86 * 10 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL CASE - 78 WHEN - + 43 THEN 71 + 23 WHEN + COUNT ( * ) THEN + 3 + + - 86 * 10 ELSE NULL END col1
----
NULL

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

query I rowsort
SELECT - 3 + - 79 AS col0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT - 20 DIV + ( - 6 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3421
SELECT - 20 / + ( - 6 ) AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3422
SELECT ALL 83 DIV + + 42 + + ( - 43 ) + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL 83 / + + 42 + + ( - 43 ) + + COUNT ( * )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3423
SELECT CAST( NULL AS SIGNED ) AS col2, + MIN( + 50 ) + + - MIN( ALL - 24 ) + - 66 DIV 25
----
NULL
72

skipif mysql # not compatible
query II rowsort label-3423
SELECT CAST ( NULL AS INTEGER ) AS col2, + MIN ( + 50 ) + + - MIN ( ALL - 24 ) + - 66 / 25
----
NULL
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT DISTINCT + 26 DIV ( + 4 ) + 89 * - 98 * + - 62
----
540770

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT + 26 / ( + 4 ) + 89 * - 98 * + - 62
----
540770

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ALL - 0 * + COUNT( DISTINCT - 95 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL - 0 * + COUNT ( DISTINCT - 95 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT CASE + 68 WHEN 77 THEN - 89 ELSE - CASE 21 WHEN + + 64 * - 40 + + MIN( + - 87 ) + + - 92 - + 96 THEN - 52 + 68 END + 78 END * - COUNT( - - 6 ) * - 35 * + COUNT( * ) + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT CASE + 68 WHEN 77 THEN - 89 ELSE - CASE 21 WHEN + + 64 * - 40 + + MIN ( + - 87 ) + + - 92 - + 96 THEN - 52 + 68 END + 78 END * - COUNT ( - - 6 ) * - 35 * + COUNT ( * ) + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3427
SELECT ALL + 93 DIV + + 24 + - 23 + 1 + - SUM( 84 )
----
-103

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL + 93 / + + 24 + - 23 + 1 + - SUM ( 84 )
----
-103

query I rowsort
SELECT DISTINCT - 82 * - + COALESCE ( 85, 96 + + 98 ) * + 46 AS col0
----
320620

query I rowsort
SELECT DISTINCT + ( - 71 ) AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3430
SELECT + + 79 / - COUNT( + NULLIF ( + - 33, + CAST( NULL AS SIGNED ) ) ) + - - COALESCE ( - 53, COUNT( * ), + COUNT( + 88 ) + + - 30 + + MIN( DISTINCT - + 87 ) ) * 88 * COUNT( * ) / + 26 * + - 97 + - + COUNT( * ) * CASE + 15 WHEN + - 88 + - - 74 / - + 9 THEN NULL WHEN - 12 THEN - 50 ELSE NULL END + - NULLIF ( 55, SUM( DISTINCT 50 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT + + 79 / - COUNT ( + NULLIF ( + - 33, + CAST ( NULL AS INTEGER ) ) ) + - - COALESCE ( - 53, COUNT ( * ), + COUNT ( + 88 ) + + - 30 + + MIN ( DISTINCT - + 87 ) ) * 88 * COUNT ( * ) / + 26 * + - 97 + - + COUNT ( * ) * CASE + 15 WHEN + - 88 + - - 74 / - + 9 THEN NULL WHEN - 12 THEN - 50 ELSE NULL END + - NULLIF ( 55, SUM ( DISTINCT 50 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL - 42 * ( COUNT( + 21 ) ) + + 17 * - 72
----
-1266

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL - 42 * ( COUNT ( + 21 ) ) + + 17 * - 72
----
-1266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3432
SELECT - CAST( + 72 AS SIGNED ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-3432
SELECT - CAST ( + 72 AS INTEGER ) col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT - + 64 * SUM( 1 ) + + 18 + - 27 * + 77 * + 91 * - 54 * - ( + - COALESCE ( - - 22, - 22, - 57, + COALESCE ( ( + - 89 ), 86 ) + + 88 + 88 ) ) + + 85
----
224756571

skipif mysql # not compatible
query I rowsort label-3433
SELECT - + 64 * SUM ( 1 ) + + 18 + - 27 * + 77 * + 91 * - 54 * - ( + - COALESCE ( - - 22, - 22, - 57, + COALESCE ( ( + - 89 ), 86 ) + + 88 + 88 ) ) + + 85
----
224756571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3434
SELECT ALL - + CAST( - SUM( + 79 ) AS SIGNED ) * - 50 AS col2
----
-3950

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL - + CAST ( - SUM ( + 79 ) AS INTEGER ) * - 50 AS col2
----
-3950

query I rowsort
SELECT DISTINCT - 48 * + 89 AS col0
----
-4272

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

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT + ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 2 * 89
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT + - 4 * COUNT( * ) * - 35 * - - 9 + - + 84 * - NULLIF ( - 8, COUNT( * ) * - SUM( ALL - - 85 ) ) * - NULLIF ( - + COUNT( * ), + MAX( + - 63 ) * + COUNT( * ) * - 38 + + SUM( + + 76 ) - + - ( + 7 ) * - 36 / + 9 )
----
588

skipif mysql # not compatible
query I rowsort label-3438
SELECT + - 4 * COUNT ( * ) * - 35 * - - 9 + - + 84 * - NULLIF ( - 8, COUNT ( * ) * - SUM ( ALL - - 85 ) ) * - NULLIF ( - + COUNT ( * ), + MAX ( + - 63 ) * + COUNT ( * ) * - 38 + + SUM ( + + 76 ) - + - ( + 7 ) * - 36 / + 9 )
----
588

query II rowsort
SELECT ALL + + 42 AS col1, 49
----
42
49

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

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

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

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

query II rowsort
SELECT - 12 AS col2, - 79
----
-12
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3443
SELECT - - COUNT( * ) - - + 74 + 34 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-3444
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT DISTINCT + - 96 * - - ( - NULLIF ( - 40, + CAST( NULL AS SIGNED ) ) ) - - + 18 AS col2
----
-3822

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT + - 96 * - - ( - NULLIF ( - 40, + CAST ( NULL AS INTEGER ) ) ) - - + 18 AS col2
----
-3822

query I rowsort
SELECT DISTINCT - 5 * - + 78 col1
----
390

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

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

query I rowsort
SELECT + 98 * - 72 * + 50
----
-352800

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT COUNT( * ) * - 13 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT COUNT ( * ) * - 13 AS col0
----
-13

query I rowsort
SELECT ALL 63 * 83 * 38 AS col2
----
198702

query I rowsort
SELECT + 75 * 43 * + 81
----
261225

onlyif mysql # DIV for integer division: 
query I rowsort label-3452
SELECT + 62 DIV + - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3452
SELECT + 62 / + - 88 AS col1
----
0

query I rowsort
SELECT + 39 * 1 AS col0
----
39

query I rowsort
SELECT 58 + - - 28 * 70 AS col1
----
2018

query I rowsort
SELECT DISTINCT 50 + - - 32 AS col2
----
82

query II rowsort
SELECT ALL 85 + 14, + 74 * - NULLIF ( 75, + 35 ) col0
----
99
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT 41 - + - COALESCE ( + - NULLIF ( + - ( 58 ), 64 ), - ( + - NULLIF ( - - 60, - AVG ( + + 27 ) / + 28 ) ) * + COUNT( * ) * + 77 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-3457
SELECT 41 - + - COALESCE ( + - NULLIF ( + - ( 58 ), 64 ), - ( + - NULLIF ( - - 60, - AVG ( + + 27 ) / + 28 ) ) * + COUNT ( * ) * + 77 ) AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT DISTINCT ( - + 38 ) + + 4 DIV - 79 col2
----
-38

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT ( - + 38 ) + + 4 / - 79 col2
----
-38

query I rowsort
SELECT DISTINCT 14 + - - 65 + - 68 AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3460
SELECT DISTINCT - 14 + - 38 * + 44 + + COUNT( * ), - 61 * 2 AS col2
----
-1685
-122

skipif mysql # not compatible
query II rowsort label-3460
SELECT DISTINCT - 14 + - 38 * + 44 + + COUNT ( * ), - 61 * 2 AS col2
----
-1685
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-3461
SELECT ALL COUNT( * ) + + + 68 AS col1, 66 AS col2
----
69
66

skipif mysql # not compatible
query II rowsort label-3461
SELECT ALL COUNT ( * ) + + + 68 AS col1, 66 AS col2
----
69
66

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

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL - 96 + - COUNT ( * ) AS col2
----
-97

query I rowsort
SELECT DISTINCT 84 + - 45
----
39

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

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

query I rowsort
SELECT 22 * - 77 * + 19 col0
----
-32186

query I rowsort
SELECT DISTINCT + 61 - + 21 * - 94 * - ( 31 )
----
-61133

query I rowsort
SELECT 45 * + 98 AS col0
----
4410

onlyif mysql # aggregate syntax: 
query II rowsort label-3468
SELECT ALL + - 89 * - SUM( ( - 53 ) ) * - 27 AS col0, CASE - 1 WHEN + 11 THEN NULL WHEN + - 61 / - + 59 * - ( - 91 ) THEN - - 89 - + 33 END * ( 50 ) * - 31 col0
----
127359
NULL

skipif mysql # not compatible
query II rowsort label-3468
SELECT ALL + - 89 * - SUM ( ( - 53 ) ) * - 27 AS col0, CASE - 1 WHEN + 11 THEN NULL WHEN + - 61 / - + 59 * - ( - 91 ) THEN - - 89 - + 33 END * ( 50 ) * - 31 col0
----
127359
NULL

query I rowsort
SELECT NULLIF ( + + 22, 0 ) + + 40 * + 57 * 8 AS col0
----
18262

query II rowsort
SELECT + - 73 * - 91 + + 9 + - 49 AS col2, 61 AS col2
----
6603
61

query I rowsort
SELECT 70 * 88
----
6160

query I rowsort
SELECT 1 + - 36 * + NULLIF ( 16, + 51 )
----
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT + COUNT( * ) * + 66 + - - CASE - 88 WHEN + 18 THEN - 17 - - 98 * - 78 + - 73 * + 49 END + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT + COUNT ( * ) * + 66 + - - CASE - 88 WHEN + 18 THEN - 17 - - 98 * - 78 + - 73 * + 49 END + 83 AS col2
----
NULL

query I rowsort
SELECT 35 + - 28 col2
----
7

query I rowsort
SELECT 42 + - 77 + 59 col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT 16 * - MAX( DISTINCT + 5 ) * 38 col1
----
-3040

skipif mysql # not compatible
query I rowsort label-3476
SELECT 16 * - MAX ( DISTINCT + 5 ) * 38 col1
----
-3040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3477
SELECT MAX( DISTINCT - 86 ) + + 20, ( CAST( NULL AS SIGNED ) ) AS col2
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-3477
SELECT MAX ( DISTINCT - 86 ) + + 20, ( CAST ( NULL AS INTEGER ) ) AS col2
----
-66
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3478
SELECT MIN( ALL - + 4 ) * + 28 AS col1, 33 AS col0
----
-112
33

skipif mysql # not compatible
query II rowsort label-3478
SELECT MIN ( ALL - + 4 ) * + 28 AS col1, 33 AS col0
----
-112
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT ( + COUNT( * ) ) + + 4 * - 14 + - 59
----
-114

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT ( + COUNT ( * ) ) + + 4 * - 14 + - 59
----
-114

query I rowsort
SELECT ALL 9 + 19 col0
----
28

query II rowsort
SELECT - 17 AS col0, + 59 AS col0
----
-17
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3482
SELECT COUNT( * ) + + - 81 DIV - COUNT( * ), 36 * - + COUNT( * ) AS col1
----
82
-36

skipif mysql # not compatible
query II rowsort label-3482
SELECT COUNT ( * ) + + - 81 / - COUNT ( * ), 36 * - + COUNT ( * ) AS col1
----
82
-36

query I rowsort
SELECT ALL 3 * 4
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3484
SELECT COUNT( * ) DIV - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3484
SELECT COUNT ( * ) / - 93 AS col0
----
0

query I rowsort
SELECT DISTINCT + 27 + - CASE 45 WHEN + ( - 94 ) THEN NULL ELSE 81 END * - ( + - ( 3 ) ) AS col2
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL - ( + COUNT( * ) ) + + - 10 + 87 - + + 9 + + 37 * - CASE - MAX( + + 22 ) WHEN + + 72 THEN NULL WHEN ( - CASE 8 WHEN + ( + + 50 ) * 21 + 84 + - ( - 16 ) / - 13 THEN NULL ELSE - + 6 * + + 54 + - 76 END ) - + 1 THEN - 22 END * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL - ( + COUNT ( * ) ) + + - 10 + 87 - + + 9 + + 37 * - CASE - MAX ( + + 22 ) WHEN + + 72 THEN NULL WHEN ( - CASE 8 WHEN + ( + + 50 ) * 21 + 84 + - ( - 16 ) / - 13 THEN NULL ELSE - + 6 * + + 54 + - 76 END ) - + 1 THEN - 22 END * 90
----
NULL

query I rowsort
SELECT DISTINCT 97 + 70 AS col2
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT DISTINCT COUNT( * ) * - 54
----
-54

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT COUNT ( * ) * - 54
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3489
SELECT CAST( + 94 AS SIGNED ) + - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-3489
SELECT CAST ( + 94 AS INTEGER ) + - COUNT ( * )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3490
SELECT CASE - 7 WHEN + 57 THEN NULL WHEN + ( + 30 ) THEN CAST( NULL AS SIGNED ) WHEN + 43 THEN - 59 END * MIN( - 55 ) * - 62 * 82 - COUNT( * ) + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3490
SELECT CASE - 7 WHEN + 57 THEN NULL WHEN + ( + 30 ) THEN CAST ( NULL AS INTEGER ) WHEN + 43 THEN - 59 END * MIN ( - 55 ) * - 62 * 82 - COUNT ( * ) + - 80
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT ALL 37 DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL 37 / - 65 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL 96 - + NULLIF ( + - COUNT( * ), - 41 )
----
97

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL 96 - + NULLIF ( + - COUNT ( * ), - 41 )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3493
SELECT + + 42 DIV + 48 + SUM( 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3493
SELECT + + 42 / + 48 + SUM ( 92 ) AS col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3494
SELECT DISTINCT - + COALESCE ( + 26, + CASE + - 13 WHEN + 19 THEN NULL WHEN - 84 * 64 THEN + - 63 WHEN + 88 - + + 97 DIV - 33 THEN 49 DIV - COUNT( * ) * 47 END ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT - + COALESCE ( + 26, + CASE + - 13 WHEN + 19 THEN NULL WHEN - 84 * 64 THEN + - 63 WHEN + 88 - + + 97 / - 33 THEN 49 / - COUNT ( * ) * 47 END ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL - MAX( + + 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL - MAX ( + + 26 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3496
SELECT 21 + - - MIN( ALL - + 67 ) AS col0, 10
----
-46
10

skipif mysql # not compatible
query II rowsort label-3496
SELECT 21 + - - MIN ( ALL - + 67 ) AS col0, 10
----
-46
10

query II rowsort
SELECT DISTINCT - 39 AS col1, 27 + + 90 AS col1
----
-39
117

query I rowsort
SELECT ALL + 99 * + 26
----
2574

query I rowsort
SELECT 36 + - 65 AS col1
----
-29

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

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT 39 * + 84
----
3276

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3502
SELECT ALL - - MIN( DISTINCT - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL - - MIN ( DISTINCT - - CAST ( NULL AS REAL ) )
----
NULL

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

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

query I rowsort
SELECT + 48 * - - 84 - - 93 col0
----
4125

onlyif mysql # DIV for integer division: 
query I rowsort label-3505
SELECT ALL + - 70 DIV + - 86 + 81 * + 49
----
3969

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL + - 70 / + - 86 + 81 * + 49
----
3969

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3507
SELECT COALESCE ( + + 90, - SUM( DISTINCT + - 85 ) * COUNT( * ) ) * 64 AS col0, 98 * - COUNT( * ) + 11 col0
----
5760
-87

skipif mysql # not compatible
query II rowsort label-3507
SELECT COALESCE ( + + 90, - SUM ( DISTINCT + - 85 ) * COUNT ( * ) ) * 64 AS col0, 98 * - COUNT ( * ) + 11 col0
----
5760
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3508
SELECT 16 DIV 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3508
SELECT 16 / 68 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3509
SELECT - 28 * 94 DIV COUNT( * ) AS col0
----
-2632

skipif mysql # not compatible
query I rowsort label-3509
SELECT - 28 * 94 / COUNT ( * ) AS col0
----
-2632

query I rowsort
SELECT - 98 * 80 AS col0
----
-7840

onlyif mysql # aggregate syntax: 
query II rowsort label-3511
SELECT - 15 - - 89, + ( 49 ) + + - COUNT( * ) * - - 21 AS col1
----
74
28

skipif mysql # not compatible
query II rowsort label-3511
SELECT - 15 - - 89, + ( 49 ) + + - COUNT ( * ) * - - 21 AS col1
----
74
28

query II rowsort
SELECT ALL 80 + + 40 AS col2, 63
----
120
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT DISTINCT + COUNT( DISTINCT 16 ) + - - COUNT( * ) + - 94 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT + COUNT ( DISTINCT 16 ) + - - COUNT ( * ) + - 94 AS col0
----
-92

query I rowsort
SELECT ALL + 13 + + + 75
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3515
SELECT ALL + ( - - 41 ) + 87 + - COUNT( * ) + - NULLIF ( - 13, + 41 * + CAST( 2 AS SIGNED ) + 99 ) + + + COUNT( * ) * - - 66 DIV 87
----
140

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL + ( - - 41 ) + 87 + - COUNT ( * ) + - NULLIF ( - 13, + 41 * + CAST ( 2 AS INTEGER ) + 99 ) + + + COUNT ( * ) * - - 66 / 87
----
140

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3516
SELECT ALL 56 + + 8 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL 56 + + 8 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3517
SELECT - COUNT( * ) + 31 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3517
SELECT - COUNT ( * ) + 31 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + 92 ) - 81 * + + 91 col2
----
-7463

query I rowsort
SELECT + ( + 65 ) + 33 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL + MAX( DISTINCT 54 ) - + 83
----
-29

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL + MAX ( DISTINCT 54 ) - + 83
----
-29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3522
SELECT + 8 * 89 AS col0, + CAST( 74 AS SIGNED ) AS col0
----
712
74

skipif mysql # not compatible
query II rowsort label-3522
SELECT + 8 * 89 AS col0, + CAST ( 74 AS INTEGER ) AS col0
----
712
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT DISTINCT NULLIF ( - 72, + COUNT( * ) )
----
-72

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT NULLIF ( - 72, + COUNT ( * ) )
----
-72

query I rowsort
SELECT DISTINCT + 96 - - - 58
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL MAX( DISTINCT + 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL MAX ( DISTINCT + 55 ) AS col1
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT + - 83 * + 95 + + - MAX( ALL 80 ) - + 94 + 43 * + COUNT( DISTINCT 46 )
----
-8016

skipif mysql # not compatible
query I rowsort label-3527
SELECT + - 83 * + 95 + + - MAX ( ALL 80 ) - + 94 + 43 * + COUNT ( DISTINCT 46 )
----
-8016

query II rowsort
SELECT 95 AS col0, - 95 AS col0
----
95
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-3529
SELECT - + 69 AS col1, COALESCE ( MIN( 34 ), - COUNT( * ) ) + + - 71
----
-69
-37

skipif mysql # not compatible
query II rowsort label-3529
SELECT - + 69 AS col1, COALESCE ( MIN ( 34 ), - COUNT ( * ) ) + + - 71
----
-69
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3530
SELECT + 64 / + COUNT( * ) * 15 * - - 77 + + CAST( NULL AS SIGNED ) - 88 + + 55 * - + 68 - + + 75 + - + COUNT( * ) - - + NULLIF ( + + ( + - NULLIF ( MAX( + 11 ), COUNT( * ) ) ), + SUM( + 62 ) ) + - + 53 + ( 0 ) + - 10 * - + 50 * + - 94 * 22 * - CAST( 63 AS SIGNED ) / + CAST( ( 85 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT + 64 / + COUNT ( * ) * 15 * - - 77 + + CAST ( NULL AS INTEGER ) - 88 + + 55 * - + 68 - + + 75 + - + COUNT ( * ) - - + NULLIF ( + + ( + - NULLIF ( MAX ( + 11 ), COUNT ( * ) ) ), + SUM ( + 62 ) ) + - + 53 + ( 0 ) + - 10 * - + 50 * + - 94 * 22 * - CAST ( 63 AS INTEGER ) / + CAST ( ( 85 ) AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3532
SELECT - - SUM( + 63 ) DIV 99 - + CAST( - 49 AS SIGNED ) col0
----
49

skipif mysql # not compatible
query I rowsort label-3532
SELECT - - SUM ( + 63 ) / 99 - + CAST ( - 49 AS INTEGER ) col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3533
SELECT - CASE CAST( 70 AS SIGNED ) WHEN - CAST( + + NULLIF ( - 75, + 57 + - 68 ) AS SIGNED ) THEN NULL ELSE 84 END * - 3 AS col0
----
252

skipif mysql # not compatible
query I rowsort label-3533
SELECT - CASE CAST ( 70 AS INTEGER ) WHEN - CAST ( + + NULLIF ( - 75, + 57 + - 68 ) AS INTEGER ) THEN NULL ELSE 84 END * - 3 AS col0
----
252

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3535
SELECT + 96 DIV + 16 * COUNT( + 22 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3535
SELECT + 96 / + 16 * COUNT ( + 22 ) AS col1
----
6

query II rowsort
SELECT + - 84, + 91 * - 48 AS col0
----
-84
-4368

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL + + 0 * 38 * - 2 * - - 75 + + ( - NULLIF ( 47, - 88 ) ) - + COUNT( * ) + CASE - 31 WHEN + + 48 THEN + 75 ELSE NULL END * + + 97 * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL + + 0 * 38 * - 2 * - - 75 + + ( - NULLIF ( 47, - 88 ) ) - + COUNT ( * ) + CASE - 31 WHEN + + 48 THEN + 75 ELSE NULL END * + + 97 * + 8
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3539
SELECT + COUNT( * ) * + 91 - + - 59 DIV + 79
----
91

skipif mysql # not compatible
query I rowsort label-3539
SELECT + COUNT ( * ) * + 91 - + - 59 / + 79
----
91

query I rowsort
SELECT DISTINCT + - 11 AS col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT ALL - 78 * - COALESCE ( 76, 74 ) DIV 38 - - 70 + - 60 * + 31 + - + 74 AS col2
----
-1708

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL - 78 * - COALESCE ( 76, 74 ) / 38 - - 70 + - 60 * + 31 + - + 74 AS col2
----
-1708

query II rowsort
SELECT - 98 AS col1, 70 AS col0
----
-98
70

query I rowsort
SELECT + NULLIF ( 1, - + 88 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT + 16 + 75 * - SUM( ALL - 69 )
----
5191

skipif mysql # not compatible
query I rowsort label-3544
SELECT + 16 + 75 * - SUM ( ALL - 69 )
----
5191

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT DISTINCT - 16 * + NULLIF ( + - COUNT( * ), + 42 ) + + COALESCE ( 2, 75 ) + + + 41 * + + 93 + + 34
----
3865

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT - 16 * + NULLIF ( + - COUNT ( * ), + 42 ) + + COALESCE ( 2, 75 ) + + + 41 * + + 93 + + 34
----
3865

query II rowsort
SELECT ALL + ( + 77 ) * + - 70 + + ( + 72 ) col1, COALESCE ( - - 84, + 15 + - 29 )
----
-5318
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT COUNT( * ) * + 0 + + 43 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-3547
SELECT COUNT ( * ) * + 0 + + 43 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT + MAX( NULLIF ( 39, - - 71 ) ) * + 23 + 4 AS col2
----
901

skipif mysql # not compatible
query I rowsort label-3548
SELECT + MAX ( NULLIF ( 39, - - 71 ) ) * + 23 + 4 AS col2
----
901

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL 11 * + MAX( DISTINCT 88 ) + - 28 col1
----
940

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL 11 * + MAX ( DISTINCT 88 ) + - 28 col1
----
940

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

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

query I rowsort
SELECT + 50 * 20 AS col2
----
1000

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT - ( + 10 ) + - MIN( ALL + 36 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3552
SELECT - ( + 10 ) + - MIN ( ALL + 36 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT ALL + 10 - + + SUM( ALL 80 ) + - ( - - 1 ) * + 94
----
-164

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL + 10 - + + SUM ( ALL 80 ) + - ( - - 1 ) * + 94
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT DISTINCT 25 * - + NULLIF ( + + MIN( - + 21 ), + 14 * - 30 - 77 * + 3 ) AS col0
----
525

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT 25 * - + NULLIF ( + + MIN ( - + 21 ), + 14 * - 30 - 77 * + 3 ) AS col0
----
525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3555
SELECT DISTINCT CAST( - 7 AS SIGNED ) AS col1, - 13 + + COUNT( * ) AS col1
----
-7
-12

skipif mysql # not compatible
query II rowsort label-3555
SELECT DISTINCT CAST ( - 7 AS INTEGER ) AS col1, - 13 + + COUNT ( * ) AS col1
----
-7
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3556
SELECT DISTINCT + 92 * + - ( 56 ), + MIN( + ( + + 85 ) ) AS col1
----
-5152
85

skipif mysql # not compatible
query II rowsort label-3556
SELECT DISTINCT + 92 * + - ( 56 ), + MIN ( + ( + + 85 ) ) AS col1
----
-5152
85

query I rowsort
SELECT ALL NULLIF ( - - 26, + ( + 36 ) ) AS col2
----
26

query I rowsort
SELECT - 0 * 71 AS col1
----
0

query I rowsort
SELECT - 39 + + - 97 + - 33
----
-169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT - - 21 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3560
SELECT - - 21 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT - COUNT( DISTINCT + 23 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3561
SELECT - COUNT ( DISTINCT + 23 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT - - 77 * 68 + + 36 + - + COUNT( * )
----
5271

skipif mysql # not compatible
query I rowsort label-3562
SELECT - - 77 * 68 + + 36 + - + COUNT ( * )
----
5271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3563
SELECT - + CASE 12 WHEN SUM( DISTINCT 33 ) THEN + - 47 * 26 * + 38 + - 62 + - + 51 + - 98 * + 38 - - + NULLIF ( - CAST( + 96 AS SIGNED ), - 74 / + COUNT( * ) ) WHEN - 22 * - 88 + + 73 / + + 52 * MAX( + 84 ) + - 85 THEN NULL ELSE NULL END + - - 34 * - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3563
SELECT - + CASE 12 WHEN SUM ( DISTINCT 33 ) THEN + - 47 * 26 * + 38 + - 62 + - + 51 + - 98 * + 38 - - + NULLIF ( - CAST ( + 96 AS INTEGER ), - 74 / + COUNT ( * ) ) WHEN - 22 * - 88 + + 73 / + + 52 * MAX ( + 84 ) + - 85 THEN NULL ELSE NULL END + - - 34 * - - 94
----
NULL

query II rowsort
SELECT ALL + 91 + + 82, + 19 AS col1
----
173
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3565
SELECT ALL - COUNT( * ) DIV - ( 99 ) AS col0, - 89 - 18 * + 66 + CASE - - COUNT( ALL - 61 ) WHEN - 29 * 21 * - 52 + 37 THEN + MAX( + 46 ) * - 20 END AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3565
SELECT ALL - COUNT ( * ) / - ( 99 ) AS col0, - 89 - 18 * + 66 + CASE - - COUNT ( ALL - 61 ) WHEN - 29 * 21 * - 52 + 37 THEN + MAX ( + 46 ) * - 20 END AS col0
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3566
SELECT ALL - + 34 / 46 * + + 20 * - CAST( NULL AS SIGNED ) + ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL - + 34 / 46 * + + 20 * - CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3567
SELECT - MIN( - 82 ) * - 75 / 47 + + + COUNT( ALL - 24 ) * - COUNT( * ) * + CAST( NULL AS SIGNED ) * 16 + 39, - 3 AS col1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-3567
SELECT - MIN ( - 82 ) * - 75 / 47 + + + COUNT ( ALL - 24 ) * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 16 + 39, - 3 AS col1
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT 78 * + COUNT( ALL - 20 )
----
78

skipif mysql # not compatible
query I rowsort label-3568
SELECT 78 * + COUNT ( ALL - 20 )
----
78

query I rowsort
SELECT + 52 + 95 AS col2
----
147

query I rowsort
SELECT ALL + 64 + 76 AS col1
----
140

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3572
SELECT + - COALESCE ( CAST( 82 AS SIGNED ), + 89 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-3572
SELECT + - COALESCE ( CAST ( 82 AS INTEGER ), + 89 ) AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3573
SELECT 55 * - COUNT( * ) / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT 55 * - COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT MAX( - 62 ) * + COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-3574
SELECT MAX ( - 62 ) * + COUNT ( * ) AS col1
----
-62

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

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL 86 + + COUNT ( * ) AS col2
----
87

query I rowsort
SELECT 41 * + 94
----
3854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3577
SELECT ALL - CAST( NULL AS SIGNED ) + 20 - + + COUNT( * ) + + + 15 + 64 + + 28 / - 88 * - 61 + + 4 * + + 54 * - COUNT( * ) + + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL - CAST ( NULL AS INTEGER ) + 20 - + + COUNT ( * ) + + + 15 + 64 + + 28 / - 88 * - 61 + + 4 * + + 54 * - COUNT ( * ) + + 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT DISTINCT 21 + + 59 - COALESCE ( + COUNT( * ), - 87, + - 91 ) * - 7 * 24 + - + 76 col1
----
172

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT 21 + + 59 - COALESCE ( + COUNT ( * ), - 87, + - 91 ) * - 7 * 24 + - + 76 col1
----
172

query I rowsort
SELECT ALL 80 + - + 10 AS col2
----
70

query II rowsort
SELECT + 10 AS col0, + ( 20 ) * + - 23 + + 40
----
10
-420

query I rowsort
SELECT 67 * - 64
----
-4288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3582
SELECT DISTINCT 85 - + CAST( - COUNT( * ) AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT 85 - + CAST ( - COUNT ( * ) AS INTEGER )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT 57 * MIN( DISTINCT + 55 ) AS col1
----
3135

skipif mysql # not compatible
query I rowsort label-3583
SELECT 57 * MIN ( DISTINCT + 55 ) AS col1
----
3135

query I rowsort
SELECT 92 * + 33
----
3036

query II rowsort
SELECT ALL 32, 4 + - 18 AS col1
----
32
-14

query I rowsort
SELECT ALL 84 * - + 97 AS col0
----
-8148

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT COUNT( - 29 ) * + 32 + - ( + ( + 5 ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3587
SELECT COUNT ( - 29 ) * + 32 + - ( + ( + 5 ) ) AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3588
SELECT DISTINCT - 33 DIV + + 68 col2
----
0

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT - 33 / + + 68 col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3590
SELECT SUM( - NULLIF ( + 36, - 22 * 95 + + + 12 * - 34 * - 50 + + CAST( NULL AS SIGNED ) ) ) * 76 + + SUM( DISTINCT - + 6 ) + 40 * - 98
----
-6662

skipif mysql # not compatible
query I rowsort label-3590
SELECT SUM ( - NULLIF ( + 36, - 22 * 95 + + + 12 * - 34 * - 50 + + CAST ( NULL AS INTEGER ) ) ) * 76 + + SUM ( DISTINCT - + 6 ) + 40 * - 98
----
-6662

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3591
SELECT 65 - - MAX( + - 77 ) DIV ( + 74 )
----
64

skipif mysql # not compatible
query I rowsort label-3591
SELECT 65 - - MAX ( + - 77 ) / ( + 74 )
----
64

query I rowsort
SELECT ALL NULLIF ( - 43, - + 38 - - 95 / - 29 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT - COUNT( * ) AS col1, 52 AS col2
----
-1
52

skipif mysql # not compatible
query II rowsort label-3593
SELECT - COUNT ( * ) AS col1, 52 AS col2
----
-1
52

query I rowsort
SELECT ALL + + 80 * - - 39
----
3120

query I rowsort
SELECT ALL - - 68 + - 42
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3596
SELECT COALESCE ( - 87, + + COUNT( * ), + - 33 ) AS col1, 45 col0
----
-87
45

skipif mysql # not compatible
query II rowsort label-3596
SELECT COALESCE ( - 87, + + COUNT ( * ), + - 33 ) AS col1, 45 col0
----
-87
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL - - SUM( ALL + 8 ) + - 99 col2
----
-91

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL - - SUM ( ALL + 8 ) + - 99 col2
----
-91

query I rowsort
SELECT DISTINCT + 1 + - + 95
----
-94

query II rowsort
SELECT 85 AS col2, 66 - - - 65 * - 36 AS col0
----
85
2406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT + CAST( 9 AS SIGNED ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3600
SELECT + CAST ( 9 AS INTEGER ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT 24 - - COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3601
SELECT 24 - - COUNT ( * ) AS col2
----
25

query I rowsort
SELECT DISTINCT - - ( - + 69 )
----
-69

query I rowsort
SELECT ALL - 43 * 28 AS col0
----
-1204

query I rowsort
SELECT 38 * - 97 * 61 * + 98 - + 94
----
-22035002

onlyif mysql # aggregate syntax: 
query II rowsort label-3605
SELECT ALL - 32 + 21 * - 76, MAX( DISTINCT - - 53 ) * + 13 * + 88 + + 34 + - 9 AS col2
----
-1628
60657

skipif mysql # not compatible
query II rowsort label-3605
SELECT ALL - 32 + 21 * - 76, MAX ( DISTINCT - - 53 ) * + 13 * + 88 + + 34 + - 9 AS col2
----
-1628
60657

onlyif mysql # DIV for integer division: 
query I rowsort label-3606
SELECT DISTINCT - 0 DIV + + 52
----
0

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT - 0 / + + 52
----
0

query I rowsort
SELECT ALL 80 - + 4 AS col1
----
76

query I rowsort
SELECT DISTINCT - 27 - ( 39 )
----
-66

query I rowsort
SELECT 82 * - + 9 + 32 AS col0
----
-706

query II rowsort
SELECT 76 - - 42, - 45 + - 60 AS col0
----
118
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-3611
SELECT ALL - ( - + 76 ) AS col2, + COUNT( DISTINCT + - 16 )
----
76
1

skipif mysql # not compatible
query II rowsort label-3611
SELECT ALL - ( - + 76 ) AS col2, + COUNT ( DISTINCT + - 16 )
----
76
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3612
SELECT + 78 * - - ( - 11 ) + + 71 * - 13 DIV - + COUNT( DISTINCT + + 76 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3612
SELECT + 78 * - - ( - 11 ) + + 71 * - 13 / - + COUNT ( DISTINCT + + 76 ) AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT 57 DIV 44 * + 71 * 44
----
3124

skipif mysql # not compatible
query I rowsort label-3613
SELECT 57 / 44 * + 71 * 44
----
3124

onlyif mysql # aggregate syntax: 
query II rowsort label-3614
SELECT SUM( ALL + - 20 ) + - 39 * + 53 col2, 43
----
-2087
43

skipif mysql # not compatible
query II rowsort label-3614
SELECT SUM ( ALL + - 20 ) + - 39 * + 53 col2, 43
----
-2087
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT ALL - ( - ( + - MIN( + 35 ) ) )
----
-35

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL - ( - ( + - MIN ( + 35 ) ) )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3616
SELECT NULLIF ( + - 27, - + CASE 34 WHEN 19 * - 13 * 29 + CAST( NULL AS DECIMAL ) THEN + CASE - 89 WHEN - CASE - 46 WHEN 42 + + - 10 THEN - - 41 * 45 / - 79 END THEN ( + + COUNT( * ) ) WHEN + - 26 THEN 22 WHEN 69 * + - 62 THEN + ( + 88 ) WHEN 28 THEN NULL END * CAST( + 48 AS SIGNED ) WHEN - 47 THEN - COUNT( * ) ELSE 32 END ) * 48 + + 32 AS col1
----
-1264

skipif mysql # not compatible
query I rowsort label-3616
SELECT NULLIF ( + - 27, - + CASE 34 WHEN 19 * - 13 * 29 + CAST ( NULL AS REAL ) THEN + CASE - 89 WHEN - CASE - 46 WHEN 42 + + - 10 THEN - - 41 * 45 / - 79 END THEN ( + + COUNT ( * ) ) WHEN + - 26 THEN 22 WHEN 69 * + - 62 THEN + ( + 88 ) WHEN 28 THEN NULL END * CAST ( + 48 AS INTEGER ) WHEN - 47 THEN - COUNT ( * ) ELSE 32 END ) * 48 + + 32 AS col1
----
-1264

query I rowsort
SELECT 92 * - - 58
----
5336

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT COUNT( * ) + + - 27
----
-26

skipif mysql # not compatible
query I rowsort label-3618
SELECT COUNT ( * ) + + - 27
----
-26

query I rowsort
SELECT 82 * 81
----
6642

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL MAX( - + 92 ) + + 94 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL MAX ( - + 92 ) + + 94 AS col2
----
2

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

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

query I rowsort
SELECT + 58 + + + COALESCE ( - + 95, - + ( - 59 ), 69 - - 26 )
----
-37

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

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT + COUNT ( * ) + - 22 AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3625
SELECT ALL + 63 + + CASE 53 WHEN 64 THEN NULL WHEN - - CAST( - 40 AS SIGNED ) THEN 91 / - 48 + COALESCE ( 28, 71 ) + + 98 + + 59 * - 44 + - COUNT( * ) * + 96 / + CAST( + 35 AS SIGNED ) * + + 69 + COUNT( * ) END + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL + 63 + + CASE 53 WHEN 64 THEN NULL WHEN - - CAST ( - 40 AS INTEGER ) THEN 91 / - 48 + COALESCE ( 28, 71 ) + + 98 + + 59 * - 44 + - COUNT ( * ) * + 96 / + CAST ( + 35 AS INTEGER ) * + + 69 + COUNT ( * ) END + + 99
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT ALL + 99 DIV - + 56 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL + 99 / - + 56 AS col1
----
-1

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3629
SELECT DISTINCT - COUNT( * ) * - 32 DIV - + 25
----
-1

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT - COUNT ( * ) * - 32 / - + 25
----
-1

query I rowsort
SELECT + - ( 52 ) + - - 50 + - 51 AS col0
----
-53

query I rowsort
SELECT DISTINCT + 36 + 99 AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT DISTINCT 66 * + 37 * + MIN( ALL 75 ) * - 94 + - + 65 AS col0
----
-17216165

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT 66 * + 37 * + MIN ( ALL 75 ) * - 94 + - + 65 AS col0
----
-17216165

query I rowsort
SELECT ALL + 87 * - + 65 AS col0
----
-5655

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT DISTINCT - COALESCE ( + 84, - - 83 + - SUM( DISTINCT - 83 ), - 62 + + COUNT( * ) ) * - 8 - + + 74
----
598

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - COALESCE ( + 84, - - 83 + - SUM ( DISTINCT - 83 ), - 62 + + COUNT ( * ) ) * - 8 - + + 74
----
598

query I rowsort
SELECT CASE - 99 WHEN 22 THEN + 96 WHEN 0 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT ALL COUNT( * ) * + + 8 - - 51 * - - NULLIF ( COUNT( - + 43 ), 28 )
----
59

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL COUNT ( * ) * + + 8 - - 51 * - - NULLIF ( COUNT ( - + 43 ), 28 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT CASE + + COUNT( * ) WHEN - ( - + CASE + 16 WHEN + COUNT( 70 ) * 0 THEN 90 WHEN + 92 * - + COUNT( * ) THEN NULL END ) THEN NULL ELSE 77 END
----
77

skipif mysql # not compatible
query I rowsort label-3637
SELECT CASE + + COUNT ( * ) WHEN - ( - + CASE + 16 WHEN + COUNT ( 70 ) * 0 THEN 90 WHEN + 92 * - + COUNT ( * ) THEN NULL END ) THEN NULL ELSE 77 END
----
77

query I rowsort
SELECT - 15 + - 65
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3639
SELECT - MAX( 57 ) * + - CAST( NULL AS SIGNED ) - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT - MAX ( 57 ) * + - CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT + 65 AS col1, - 81
----
65
-81

query I rowsort
SELECT DISTINCT + 33 * 64
----
2112

query I rowsort
SELECT - ( 67 ) * + 60 AS col0
----
-4020

query I rowsort
SELECT ALL + 51 * - + 24
----
-1224

query I rowsort
SELECT DISTINCT + 53 * + + 34 + 8
----
1810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3645
SELECT - ( + - COUNT( * ) ) * + 19 DIV - NULLIF ( - 89, + 39 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3645
SELECT - ( + - COUNT ( * ) ) * + 19 / - NULLIF ( - 89, + 39 ) AS col0
----
0

query I rowsort
SELECT - NULLIF ( + + 3, + ( - 99 ) )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3647
SELECT DISTINCT - COUNT( * ) * 85 + 33 AS col2, + 86 * - 71 + + 33 + + 32 AS col0
----
-52
-6041

skipif mysql # not compatible
query II rowsort label-3647
SELECT DISTINCT - COUNT ( * ) * 85 + 33 AS col2, + 86 * - 71 + + 33 + + 32 AS col0
----
-52
-6041

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL + + 54 * - 81 + - MAX( ALL 66 ) + COUNT( * ) + + 27 AS col2
----
-4412

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL + + 54 * - 81 + - MAX ( ALL 66 ) + COUNT ( * ) + + 27 AS col2
----
-4412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3649
SELECT - COALESCE ( + CAST( ( - 19 ) AS SIGNED ), - 79 ) - 81 * + - 30 AS col2
----
2449

skipif mysql # not compatible
query I rowsort label-3649
SELECT - COALESCE ( + CAST ( ( - 19 ) AS INTEGER ), - 79 ) - 81 * + - 30 AS col2
----
2449

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT DISTINCT + - 34 + + + MAX( 2 )
----
-32

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT + - 34 + + + MAX ( 2 )
----
-32

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

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL - - 21 + - 19 + - - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 70 * - + 31 * + + 32
----
-69440

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT - + 79 + - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-3655
SELECT - + 79 + - COUNT ( * )
----
-80

query II rowsort
SELECT - 11 AS col0, + 31 + + - 57 * + 42
----
-11
-2363

query I rowsort
SELECT ALL + 76 * 65 + + 67 AS col0
----
5007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3658
SELECT DISTINCT + 65 - 87 * CASE + - CAST( ( + - 4 ) AS SIGNED ) WHEN + 91 * - COUNT( * ) THEN + 65 ELSE NULL END + - ( + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT + 65 - 87 * CASE + - CAST ( ( + - 4 ) AS INTEGER ) WHEN + 91 * - COUNT ( * ) THEN + 65 ELSE NULL END + - ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

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

skipif mysql # not compatible
query II rowsort label-3659
SELECT DISTINCT 17, - COUNT ( * ) AS col0
----
17
-1

query I rowsort
SELECT DISTINCT + 49 * + + 90 AS col0
----
4410

query I rowsort
SELECT ALL - 58 - - 56 + - 16 col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3662
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), - - 54 DIV - 8, 80 * + COUNT( ALL - 44 ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3662
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), - - 54 / - 8, 80 * + COUNT ( ALL - 44 ) ) AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3663
SELECT + + 77 DIV - - 89 * - - 30 - - - 57 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3663
SELECT + + 77 / - - 89 * - - 30 - - - 57 AS col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT + CAST( - - 68 AS SIGNED ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-3664
SELECT + CAST ( - - 68 AS INTEGER ) AS col2
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-3665
SELECT + 70 DIV - 69 - - 54 + - 74 AS col2, ( - - 63 ) * - 99 AS col0
----
-21
-6237

skipif mysql # not compatible
query II rowsort label-3665
SELECT + 70 / - 69 - - 54 + - 74 AS col2, ( - - 63 ) * - 99 AS col0
----
-21
-6237

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3666
SELECT + 86 DIV - + 63, NULLIF ( - + 13, + AVG ( DISTINCT + 72 ) * - - COUNT( * ) * - MIN( ( - 87 ) ) + 40 ) AS col1
----
-1
-13

skipif mysql # not compatible
query II rowsort label-3666
SELECT + 86 / - + 63, NULLIF ( - + 13, + AVG ( DISTINCT + 72 ) * - - COUNT ( * ) * - MIN ( ( - 87 ) ) + 40 ) AS col1
----
-1
-13

query II rowsort
SELECT - 92 * + 70 AS col0, + 91
----
-6440
91

query I rowsort
SELECT ALL 97 * 24
----
2328

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT + 3 - + - COUNT( * ) * + 28 + - 47 + + + 28
----
12

skipif mysql # not compatible
query I rowsort label-3669
SELECT + 3 - + - COUNT ( * ) * + 28 + - 47 + + + 28
----
12

query I rowsort
SELECT DISTINCT - 10 * ( - 78 ) AS col1
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT DISTINCT 27 * + SUM( + 4 )
----
108

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT 27 * + SUM ( + 4 )
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT ALL 0 DIV + COALESCE ( 18, - 2 + - + 28 ) + NULLIF ( 63, + - 51 )
----
63

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL 0 / + COALESCE ( 18, - 2 + - + 28 ) + NULLIF ( 63, + - 51 )
----
63

query I rowsort
SELECT - ( 6 ) * 11 + - - 51 col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3674
SELECT - COUNT( * ) DIV + 80 - 17 + + - 78 - - 14 - - 68
----
-13

skipif mysql # not compatible
query I rowsort label-3674
SELECT - COUNT ( * ) / + 80 - 17 + + - 78 - - 14 - - 68
----
-13

query II rowsort
SELECT ( + 94 ), + 69 * - - 18 AS col0
----
94
1242

onlyif mysql # DIV for integer division: 
query I rowsort label-3676
SELECT ALL 12 DIV + 32 + + - 88 + 36
----
-52

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL 12 / + 32 + + - 88 + 36
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL + COALESCE ( 73, + - 13 + + - NULLIF ( + MIN( DISTINCT + 47 ), + 91 ) ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL + COALESCE ( 73, + - 13 + + - NULLIF ( + MIN ( DISTINCT + 47 ), + 91 ) ) AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3678
SELECT - 43 * + 85 + - + COUNT( * ) + - SUM( - CASE + CAST( + - 51 AS SIGNED ) WHEN - 38 + - 3 THEN NULL ELSE 15 END ) - - 1 * + COUNT( * ) * + 97 - + CAST( NULL AS DECIMAL ) * - - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT - 43 * + 85 + - + COUNT ( * ) + - SUM ( - CASE + CAST ( + - 51 AS INTEGER ) WHEN - 38 + - 3 THEN NULL ELSE 15 END ) - - 1 * + COUNT ( * ) * + 97 - + CAST ( NULL AS REAL ) * - - 97 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3679
SELECT ALL - 48 * - - CAST( NULL AS DECIMAL ) + COUNT( * )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3681
SELECT + COUNT( * ), 61 * - 96 * - 3 + + 57 AS col0
----
1
17625

skipif mysql # not compatible
query II rowsort label-3681
SELECT + COUNT ( * ), 61 * - 96 * - 3 + + 57 AS col0
----
1
17625

query I rowsort
SELECT - 90 + + 39
----
-51

query I rowsort
SELECT DISTINCT 24 * - 41 + + 51
----
-933

onlyif mysql # aggregate syntax: 
query II rowsort label-3684
SELECT COUNT( * ) AS col0, 71 - - 46 AS col1
----
1
117

skipif mysql # not compatible
query II rowsort label-3684
SELECT COUNT ( * ) AS col0, 71 - - 46 AS col1
----
1
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3685
SELECT DISTINCT - 5 * 49 * - SUM( DISTINCT + 97 ) * + 90 + CAST( 89 AS SIGNED )
----
2138939

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT - 5 * 49 * - SUM ( DISTINCT + 97 ) * + 90 + CAST ( 89 AS INTEGER )
----
2138939

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3686
SELECT DISTINCT - COUNT( - 55 ) AS col2, CASE + 32 WHEN - COALESCE ( - COUNT( * ), MAX( + 40 ) * - 23, CAST( - - 35 AS DECIMAL ) ) THEN + + 75 WHEN + 97 THEN NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3686
SELECT DISTINCT - COUNT ( - 55 ) AS col2, CASE + 32 WHEN - COALESCE ( - COUNT ( * ), MAX ( + 40 ) * - 23, CAST ( - - 35 AS REAL ) ) THEN + + 75 WHEN + 97 THEN NULL END
----
-1
NULL

query I rowsort
SELECT - ( + 82 ) * 58 - - - 75 AS col0
----
-4831

query I rowsort
SELECT 7 + + - 64
----
-57

query I rowsort
SELECT 99 * 11 AS col0
----
1089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT + 3 * + 15 + - - CAST( NULL AS SIGNED ) / - ( + + 36 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT + 3 * + 15 + - - CAST ( NULL AS INTEGER ) / - ( + + 36 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3691
SELECT CASE + 68 WHEN - 23 + 24 THEN ( - - CAST( + - 6 AS SIGNED ) ) * + 43 / - + 40 WHEN ( - MIN( ALL 12 ) ) THEN + COUNT( * ) * + + 1 + + 45 WHEN + + 44 THEN 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3691
SELECT CASE + 68 WHEN - 23 + 24 THEN ( - - CAST ( + - 6 AS INTEGER ) ) * + 43 / - + 40 WHEN ( - MIN ( ALL 12 ) ) THEN + COUNT ( * ) * + + 1 + + 45 WHEN + + 44 THEN 55 END
----
NULL

query I rowsort
SELECT ALL - ( 97 ) col2
----
-97

query I rowsort
SELECT - 69 * + 50 + 32 AS col2
----
-3418

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT ALL - + 77 DIV + - COALESCE ( 66, - 88 * - 19 ) - - 91 - - ( + 91 ) AS col0
----
183

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL - + 77 / + - COALESCE ( 66, - 88 * - 19 ) - - 91 - - ( + 91 ) AS col0
----
183

query I rowsort
SELECT - 22 + + - 60 * - 94 AS col0
----
5618

onlyif mysql # aggregate syntax: 
query II rowsort label-3696
SELECT ALL 63 col0, - NULLIF ( + - COUNT( * ), + - 86 + - 89 ) AS col2
----
63
1

skipif mysql # not compatible
query II rowsort label-3696
SELECT ALL 63 col0, - NULLIF ( + - COUNT ( * ), + - 86 + - 89 ) AS col2
----
63
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3697
SELECT + COUNT( * ) AS col0, 44 + + 98 AS col1
----
1
142

skipif mysql # not compatible
query II rowsort label-3697
SELECT + COUNT ( * ) AS col0, 44 + + 98 AS col1
----
1
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3698
SELECT ( - ( + 93 ) ) + 21 - - + COUNT( * ) / + 75 + + 47 + - - 58 - 9 + CASE + ( - 7 ) WHEN + NULLIF ( + - 86, - 13 * 46 * + + 3 ) THEN + - MIN( ALL - CAST( - 86 AS SIGNED ) ) WHEN - 5 * ( + + ( + 42 ) ) * 8 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT ( - ( + 93 ) ) + 21 - - + COUNT ( * ) / + 75 + + 47 + - - 58 - 9 + CASE + ( - 7 ) WHEN + NULLIF ( + - 86, - 13 * 46 * + + 3 ) THEN + - MIN ( ALL - CAST ( - 86 AS INTEGER ) ) WHEN - 5 * ( + + ( + 42 ) ) * 8 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 22 * + + 28 AS col1
----
616

query I rowsort
SELECT DISTINCT 56 * - NULLIF ( - 37, + 57 )
----
2072

query I rowsort
SELECT DISTINCT + 5 + + + 5
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3702
SELECT ALL - 51 * + 59 col1, - ( + 69 ) * - COUNT( * ) AS col0
----
-3009
69

skipif mysql # not compatible
query II rowsort label-3702
SELECT ALL - 51 * + 59 col1, - ( + 69 ) * - COUNT ( * ) AS col0
----
-3009
69

query I rowsort
SELECT DISTINCT 9 + 79 AS col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3704
SELECT 95 DIV 95 * + 48 * - + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3704
SELECT 95 / 95 * + 48 * - + 0 AS col0
----
0

query I rowsort
SELECT 66 * 30 * + 1 AS col0
----
1980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3706
SELECT ALL COUNT( * ) + - 71 + 76 DIV - 92
----
-70

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL COUNT ( * ) + - 71 + 76 / - 92
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3707
SELECT DISTINCT 73 + COALESCE ( - 4, - + CAST( - + 49 AS SIGNED ) + - 0 + + 1 * 43, - COUNT( * ) ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT 73 + COALESCE ( - 4, - + CAST ( - + 49 AS INTEGER ) + - 0 + + 1 * 43, - COUNT ( * ) ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3708
SELECT 85 / + - 88 * CASE + CAST( NULL AS SIGNED ) WHEN - + NULLIF ( MAX( + - 70 ), - 12 + - + CAST( + 65 AS SIGNED ) ) * + 72 * 1 + - 3 * 95 THEN + 38 END / + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT 85 / + - 88 * CASE + CAST ( NULL AS INTEGER ) WHEN - + NULLIF ( MAX ( + - 70 ), - 12 + - + CAST ( + 65 AS INTEGER ) ) * + 72 * 1 + - 3 * 95 THEN + 38 END / + 83
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3709
SELECT 20 + + COALESCE ( - 65, - - 22 * + 44, - 64 ) + CAST( + 6 AS SIGNED ) DIV + - 36 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-3709
SELECT 20 + + COALESCE ( - 65, - - 22 * + 44, - 64 ) + CAST ( + 6 AS INTEGER ) / + - 36 AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT ALL 8 + + NULLIF ( - CAST( NULL AS SIGNED ), + 1 ) / + - 44 * 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL 8 + + NULLIF ( - CAST ( NULL AS INTEGER ), + 1 ) / + - 44 * 46 AS col2
----
NULL

query I rowsort
SELECT 91 * - 87
----
-7917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3712
SELECT DISTINCT 43 + - 20 - + - 70 * - CAST( + CAST( + 99 AS SIGNED ) AS SIGNED ) + 85 col0
----
-6822

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT 43 + - 20 - + - 70 * - CAST ( + CAST ( + 99 AS INTEGER ) AS INTEGER ) + 85 col0
----
-6822

query II rowsort
SELECT ALL 72 + 21 AS col0, 26
----
93
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT ALL - CASE - + ( - 8 ) WHEN + 33 THEN NULL WHEN - MIN( + 1 ) THEN + + 92 WHEN 68 THEN NULL WHEN 93 THEN + COUNT( * ) ELSE + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL - CASE - + ( - 8 ) WHEN + 33 THEN NULL WHEN - MIN ( + 1 ) THEN + + 92 WHEN 68 THEN NULL WHEN 93 THEN + COUNT ( * ) ELSE + COUNT ( * ) END
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3715
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + 34 * 32 + + MIN( DISTINCT - 31 ), - 83 * - - NULLIF ( + 93, + + 17 ) AS col0
----
NULL
-7719

skipif mysql # not compatible
query II rowsort label-3715
SELECT DISTINCT - CAST ( NULL AS REAL ) + + 34 * 32 + + MIN ( DISTINCT - 31 ), - 83 * - - NULLIF ( + 93, + + 17 ) AS col0
----
NULL
-7719

onlyif mysql # aggregate syntax: 
query II rowsort label-3716
SELECT DISTINCT + 34 * + - 4, SUM( DISTINCT + 49 ) col2
----
-136
49

skipif mysql # not compatible
query II rowsort label-3716
SELECT DISTINCT + 34 * + - 4, SUM ( DISTINCT + 49 ) col2
----
-136
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3717
SELECT + CAST( 95 AS SIGNED ) + MIN( DISTINCT + 9 ) + - + ( + + 83 ) - 22
----
-1

skipif mysql # not compatible
query I rowsort label-3717
SELECT + CAST ( 95 AS INTEGER ) + MIN ( DISTINCT + 9 ) + - + ( + + 83 ) - 22
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT 34 * - - 12 * + COUNT( * )
----
408

skipif mysql # not compatible
query I rowsort label-3718
SELECT 34 * - - 12 * + COUNT ( * )
----
408

query I rowsort
SELECT ALL + - 54 - ( 39 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT DISTINCT - + COUNT( ALL - 68 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT - + COUNT ( ALL - 68 ) AS col1
----
-1

query I rowsort
SELECT ALL - 60 * + 41
----
-2460

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT DISTINCT COUNT( + + 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT COUNT ( + + 16 ) AS col2
----
1

query I rowsort
SELECT ALL 14 - + - 65 * - 38
----
-2456

onlyif mysql # DIV for integer division: 
query II rowsort label-3724
SELECT ALL 28 DIV + 98 AS col2, 16
----
0
16

skipif mysql # not compatible
query II rowsort label-3724
SELECT ALL 28 / + 98 AS col2, 16
----
0
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT DISTINCT - CASE 16 WHEN - 34 * + CAST( NULL AS SIGNED ) THEN - 14 WHEN + + 77 + + 81 THEN ( 34 ) * 78 - - 34 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT - CASE 16 WHEN - 34 * + CAST ( NULL AS INTEGER ) THEN - 14 WHEN + + 77 + + 81 THEN ( 34 ) * 78 - - 34 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL - + MAX( DISTINCT + - 44 ) * - - 94 * 0
----
0

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL - + MAX ( DISTINCT + - 44 ) * - - 94 * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3727
SELECT - COUNT( * ) + + CAST( NULLIF ( 90, - 15 ) AS SIGNED ) col0
----
89

skipif mysql # not compatible
query I rowsort label-3727
SELECT - COUNT ( * ) + + CAST ( NULLIF ( 90, - 15 ) AS INTEGER ) col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT - COALESCE ( + - ( + 59 ), + CASE COUNT( ALL + 40 ) WHEN 98 THEN - COUNT( * ) - 76 END * + ( + 66 ) * + 95 * 97 + ( 57 ) ) col2
----
59

skipif mysql # not compatible
query I rowsort label-3728
SELECT - COALESCE ( + - ( + 59 ), + CASE COUNT ( ALL + 40 ) WHEN 98 THEN - COUNT ( * ) - 76 END * + ( + 66 ) * + 95 * 97 + ( 57 ) ) col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT COUNT( * ) + COUNT( 86 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3729
SELECT COUNT ( * ) + COUNT ( 86 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT + NULLIF ( - 67, - + COUNT( * ) * 50 ) * + 1
----
-67

skipif mysql # not compatible
query I rowsort label-3730
SELECT + NULLIF ( - 67, - + COUNT ( * ) * 50 ) * + 1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT MAX( - 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT MAX ( - 10 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL + MAX( + 1 ) + - - 46 col2
----
47

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + MAX ( + 1 ) + - - 46 col2
----
47

query I rowsort
SELECT 76 * + + CASE + 89 WHEN ( - 74 ) / - 76 + + - 86 THEN 64 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3734
SELECT ALL + 19 + - - COUNT( * ) + - 76, + CAST( NULL AS SIGNED ) * - 18 col2
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-3734
SELECT ALL + 19 + - - COUNT ( * ) + - 76, + CAST ( NULL AS INTEGER ) * - 18 col2
----
-56
NULL

query I rowsort
SELECT ALL 68 + + 33 AS col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT ALL COUNT( * ) * - - 60 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL COUNT ( * ) * - - 60 AS col0
----
60

query I rowsort
SELECT ALL + 92 + + 94 AS col2
----
186

query I rowsort
SELECT 66 + - 50 col1
----
16

query II rowsort
SELECT 48 AS col0, + 18 AS col1
----
48
18

query I rowsort
SELECT 75 + + 35
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT 11 * MAX( DISTINCT - 22 )
----
-242

skipif mysql # not compatible
query I rowsort label-3741
SELECT 11 * MAX ( DISTINCT - 22 )
----
-242

query I rowsort
SELECT ALL 5 * 95 + 93 + + 91
----
659

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3743
SELECT COALESCE ( 91, - 21 * - - ( 44 ) DIV - 48 * COUNT( * ) * + 75 + 90 - COUNT( * ) * - 14, - 57 )
----
91

skipif mysql # not compatible
query I rowsort label-3743
SELECT COALESCE ( 91, - 21 * - - ( 44 ) / - 48 * COUNT ( * ) * + 75 + 90 - COUNT ( * ) * - 14, - 57 )
----
91

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

skipif mysql # not compatible
query I rowsort label-3744
SELECT + MAX ( + + 8 )
----
8

query I rowsort
SELECT ALL - 60 * - + 62 + - - 6 AS col1
----
3726

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3747
SELECT ALL - 29 * COUNT( * ) * 71 DIV + 7
----
-294

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL - 29 * COUNT ( * ) * 71 / + 7
----
-294

onlyif mysql # aggregate syntax: 
query II rowsort label-3748
SELECT DISTINCT 73 * ( - 85 ) + - + 12 col2, + ( + + COUNT( * ) )
----
-6217
1

skipif mysql # not compatible
query II rowsort label-3748
SELECT DISTINCT 73 * ( - 85 ) + - + 12 col2, + ( + + COUNT ( * ) )
----
-6217
1

query II rowsort
SELECT DISTINCT - 72, + 83 AS col0
----
-72
83

query I rowsort
SELECT DISTINCT - 11 * + ( - 62 ) col1
----
682

query I rowsort
SELECT DISTINCT - 2 * 95
----
-190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3752
SELECT 30 / 30 + 78 * COUNT( DISTINCT + 69 ) + - 10 * CAST( NULL AS SIGNED ) * + - MAX( + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT 30 / 30 + 78 * COUNT ( DISTINCT + 69 ) + - 10 * CAST ( NULL AS INTEGER ) * + - MAX ( + 94 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT ALL + COUNT( * ) * + - 15 - - 25 * 34 col1
----
835

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL + COUNT ( * ) * + - 15 - - 25 * 34 col1
----
835

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

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

query I rowsort
SELECT + + 61 - - 71
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3756
SELECT + CAST( + COUNT( * ) AS SIGNED ) * - COALESCE ( + - 53, - 37 + 18 )
----
53

skipif mysql # not compatible
query I rowsort label-3756
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * - COALESCE ( + - 53, - 37 + 18 )
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3757
SELECT DISTINCT - 22 * - - COALESCE ( - + 78, + - NULLIF ( 12, + + 13 ) * + 47 * + - 51 + - 42 DIV - + 31 )
----
1716

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT - 22 * - - COALESCE ( - + 78, + - NULLIF ( 12, + + 13 ) * + 47 * + - 51 + - 42 / - + 31 )
----
1716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3758
SELECT ALL + + 35 DIV 62 DIV + 84 + + - COUNT( * ) - + 29 * + - 98 * 62
----
176203

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL + + 35 / 62 / + 84 + + - COUNT ( * ) - + 29 * + - 98 * 62
----
176203

onlyif mysql # aggregate syntax: 
query II rowsort label-3759
SELECT DISTINCT + COALESCE ( - 49, - + MIN( + + 67 ) ), 45 + + + 46 AS col0
----
-49
91

skipif mysql # not compatible
query II rowsort label-3759
SELECT DISTINCT + COALESCE ( - 49, - + MIN ( + + 67 ) ), 45 + + + 46 AS col0
----
-49
91

query I rowsort
SELECT ALL 59 * 63
----
3717

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL + - MAX( - 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + - MAX ( - 15 ) AS col1
----
15

query I rowsort
SELECT DISTINCT 16 * + 57 AS col1
----
912

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT + COUNT( * ) + 61 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3764
SELECT + COUNT ( * ) + 61 AS col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT - - CAST( + + 9 AS SIGNED ) + - 14 col2
----
-5

skipif mysql # not compatible
query I rowsort label-3765
SELECT - - CAST ( + + 9 AS INTEGER ) + - 14 col2
----
-5

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3767
SELECT - 47, + 18 * + COUNT( * ) AS col0
----
-47
18

skipif mysql # not compatible
query II rowsort label-3767
SELECT - 47, + 18 * + COUNT ( * ) AS col0
----
-47
18

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

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

query I rowsort
SELECT ALL - 88 + + + 13
----
-75

query I rowsort
SELECT + - 82 + - 85
----
-167

query I rowsort
SELECT DISTINCT - 76 + - 42
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL + COUNT( + 78 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL + COUNT ( + 78 ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3773
SELECT ALL 86 + COUNT( * ) DIV 62
----
86

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL 86 + COUNT ( * ) / 62
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3774
SELECT ALL COALESCE ( + MAX( 12 ), - 72 DIV - - 52 + - MIN( 23 ) )
----
12

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL COALESCE ( + MAX ( 12 ), - 72 / - - 52 + - MIN ( 23 ) )
----
12

query I rowsort
SELECT - COALESCE ( - 51, - 50 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT - 50 + COUNT( DISTINCT - 68 )
----
-49

skipif mysql # not compatible
query I rowsort label-3776
SELECT - 50 + COUNT ( DISTINCT - 68 )
----
-49

query I rowsort
SELECT ALL + 88 + - 8 + - NULLIF ( - 54, + - CASE - ( - 65 ) WHEN 49 THEN 78 END - - 20 ) AS col1
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-3778
SELECT ALL COALESCE ( - + 35, MIN( - + 38 ) ) AS col1, + CASE + + 9 WHEN + COUNT( + + 27 ) THEN + 59 ELSE NULL END + + 50 AS col1
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-3778
SELECT ALL COALESCE ( - + 35, MIN ( - + 38 ) ) AS col1, + CASE + + 9 WHEN + COUNT ( + + 27 ) THEN + 59 ELSE NULL END + + 50 AS col1
----
-35
NULL

query I rowsort
SELECT - ( + + 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3780
SELECT - 3 + COUNT( * ) AS col2, - 56 * - 81 + - - 98 DIV + - 29 AS col1
----
-2
4533

skipif mysql # not compatible
query II rowsort label-3780
SELECT - 3 + COUNT ( * ) AS col2, - 56 * - 81 + - - 98 / + - 29 AS col1
----
-2
4533

query I rowsort
SELECT - 14 + + NULLIF ( + 54, 61 ) * - 96 AS col2
----
-5198

query I rowsort
SELECT - 91 + + 48
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT ALL 96 + - COUNT( * ) * + 29 + - COUNT( ALL - 43 ) + - 79 + + 72
----
59

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL 96 + - COUNT ( * ) * + 29 + - COUNT ( ALL - 43 ) + - 79 + + 72
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3784
SELECT ALL - COUNT( * ) - 1 col1, + 83 AS col2
----
-2
83

skipif mysql # not compatible
query II rowsort label-3784
SELECT ALL - COUNT ( * ) - 1 col1, + 83 AS col2
----
-2
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3785
SELECT ALL + CAST( 50 AS SIGNED ) DIV - - ( + + 2 ) - + 77 * - CASE - + NULLIF ( + 69, 84 + + + AVG ( + - 65 ) ) WHEN + 41 * - - 66 + + COUNT( * ) * + COUNT( * ) * + 8 - + + COUNT( * ) THEN - 85 WHEN + COUNT( * ) THEN 94 WHEN 82 THEN + + 29 ELSE - 6 END + - 83 * 50 * + + 62
----
-257737

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL + CAST ( 50 AS INTEGER ) / - - ( + + 2 ) - + 77 * - CASE - + NULLIF ( + 69, 84 + + + AVG ( + - 65 ) ) WHEN + 41 * - - 66 + + COUNT ( * ) * + COUNT ( * ) * + 8 - + + COUNT ( * ) THEN - 85 WHEN + COUNT ( * ) THEN 94 WHEN 82 THEN + + 29 ELSE - 6 END + - 83 * 50 * + + 62
----
-257737

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT - 60 DIV - 11
----
5

skipif mysql # not compatible
query I rowsort label-3786
SELECT - 60 / - 11
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3787
SELECT DISTINCT + ( + 84 ) DIV 32
----
2

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT + ( + 84 ) / 32
----
2

query I rowsort
SELECT + 47 + - + 12
----
35

query I rowsort
SELECT - 86 * 85 + - 45 + - - 46 + - + 30
----
-7339

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3790
SELECT DISTINCT + CASE + 48 WHEN + 76 + - 77 + - - COUNT( * ) / - - ( - - COUNT( * ) ) * + 92 THEN + 34 + + 65 - + 81 WHEN + 88 / - 19 THEN NULL END * - - 87 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT + CASE + 48 WHEN + 76 + - 77 + - - COUNT ( * ) / - - ( - - COUNT ( * ) ) * + 92 THEN + 34 + + 65 - + 81 WHEN + 88 / - 19 THEN NULL END * - - 87 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL + MIN( ALL - COALESCE ( 39, + 78 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL + MIN ( ALL - COALESCE ( 39, + 78 ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - - 38 * + 9 + + SUM( DISTINCT 79 ) + 98 col2
----
519

skipif mysql # not compatible
query I rowsort label-3792
SELECT - - 38 * + 9 + + SUM ( DISTINCT 79 ) + 98 col2
----
519

query I rowsort
SELECT DISTINCT + ( - NULLIF ( - - 61, + 13 - 64 ) ) * - - 75
----
-4575

query I rowsort
SELECT - 88 * + 16 AS col1
----
-1408

query I rowsort
SELECT - 93 + + 18 AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3796
SELECT DISTINCT + 50 DIV 16 + - - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT + 50 / 16 + - - COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT ALL + 29 * - 43 + - 10 - - - 97 + - COUNT( * )
----
-1355

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL + 29 * - 43 + - 10 - - - 97 + - COUNT ( * )
----
-1355

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ALL COUNT( * ) * - + 31 + + ( + - 54 ) + - COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL COUNT ( * ) * - + 31 + + ( + - 54 ) + - COUNT ( * )
----
-86

query I rowsort
SELECT ALL 15 * - + 19 + 44 AS col1
----
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL COALESCE ( + 36, COALESCE ( + 21, + - 62, + + COUNT( * ) * COUNT( * ) * + 71 ), ( + SUM( DISTINCT - 80 ) ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL COALESCE ( + 36, COALESCE ( + 21, + - 62, + + COUNT ( * ) * COUNT ( * ) * + 71 ), ( + SUM ( DISTINCT - 80 ) ) ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT MIN( ALL - + COALESCE ( - - 74, + 35 ) ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-3801
SELECT MIN ( ALL - + COALESCE ( - - 74, + 35 ) ) AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3802
SELECT + COUNT( * ) * - - COALESCE ( - 73, NULLIF ( - + 69, 36 * MIN( DISTINCT - 63 ) / + COUNT( * ) / + - NULLIF ( 10, COUNT( * ) ) + + CAST( + - COUNT( * ) AS SIGNED ) + + COUNT( * ) + 50 ) + - - 38, ( + 35 ) + + 84 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-3802
SELECT + COUNT ( * ) * - - COALESCE ( - 73, NULLIF ( - + 69, 36 * MIN ( DISTINCT - 63 ) / + COUNT ( * ) / + - NULLIF ( 10, COUNT ( * ) ) + + CAST ( + - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) + 50 ) + - - 38, ( + 35 ) + + 84 ) AS col0
----
-73

query I rowsort
SELECT + 9 * 9
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3804
SELECT DISTINCT 33 + + - 38 * 59 + + 6 + - COUNT( * ) DIV 60
----
-2203

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT 33 + + - 38 * 59 + + 6 + - COUNT ( * ) / 60
----
-2203

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL MIN( ALL + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL MIN ( ALL + 32 )
----
32

query II rowsort
SELECT 76, 77 AS col2
----
76
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3807
SELECT ALL COALESCE ( - 38, + - 74 ) AS col1, NULLIF ( 5, 32 * + CASE + - 65 WHEN - 16 - 85 THEN COUNT( * ) + - + MIN( ALL 46 ) * - AVG ( + - 49 ) + + - 6 END * ( - ( - COALESCE ( 45, - 7 ) ) ) + + 90 + - 44 * + - CASE + + 62 WHEN + 2 THEN + 93 * + ( + 68 ) * + - 92 * - 39 + - - 62 + + COALESCE ( - 20, 95 * - MIN( ALL - 16 ) + - 1 * 0, 41 ) + COUNT( * ) DIV 7 * 59 WHEN + ( ( + 39 ) ) * - COUNT( * ) THEN NULL WHEN + 39 * - NULLIF ( 2, - 20 DIV + 22 ) THEN NULL ELSE NULL END + + ( + 97 ) * SUM( - 16 ) ) DIV 49
----
-38
0

skipif mysql # not compatible
query II rowsort label-3807
SELECT ALL COALESCE ( - 38, + - 74 ) AS col1, NULLIF ( 5, 32 * + CASE + - 65 WHEN - 16 - 85 THEN COUNT ( * ) + - + MIN ( ALL 46 ) * - AVG ( + - 49 ) + + - 6 END * ( - ( - COALESCE ( 45, - 7 ) ) ) + + 90 + - 44 * + - CASE + + 62 WHEN + 2 THEN + 93 * + ( + 68 ) * + - 92 * - 39 + - - 62 + + COALESCE ( - 20, 95 * - MIN ( ALL - 16 ) + - 1 * 0, 41 ) + COUNT ( * ) / 7 * 59 WHEN + ( ( + 39 ) ) * - COUNT ( * ) THEN NULL WHEN + 39 * - NULLIF ( 2, - 20 / + 22 ) THEN NULL ELSE NULL END + + ( + 97 ) * SUM ( - 16 ) ) / 49
----
-38
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT COALESCE ( + 94, - - NULLIF ( - MIN( + 18 ), - 54 ) ) - - 96
----
190

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT COALESCE ( + 94, - - NULLIF ( - MIN ( + 18 ), - 54 ) ) - - 96
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT + 50 + - - COUNT( * ) + + 14 col1
----
65

skipif mysql # not compatible
query I rowsort label-3809
SELECT + 50 + - - COUNT ( * ) + + 14 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT DISTINCT MIN( DISTINCT - 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT MIN ( DISTINCT - 26 ) AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3811
SELECT ALL COALESCE ( CASE 94 WHEN + 16 / CASE - ( COUNT( * ) ) WHEN + 26 THEN NULL WHEN - CAST( + - 22 AS SIGNED ) THEN NULL ELSE - 13 + + 97 + - MAX( ALL + - NULLIF ( + - 79, - 22 + ( + 65 ) ) ) * - 9 * CAST( - + CASE + 46 WHEN 62 * - - COUNT( * ) - - COUNT( * ) THEN + 48 * ( + 26 ) * + 77 * - 98 - MAX( - 15 ) END AS SIGNED ) * + 38 - - 77 / + 11 END / - 37 + 31 * COUNT( * ) THEN - 29 * 64 WHEN - 4 / ( - 18 ) - + 97 THEN + 94 END, - 44 * 81, 13 ) * + 63 AS col2
----
-224532

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL COALESCE ( CASE 94 WHEN + 16 / CASE - ( COUNT ( * ) ) WHEN + 26 THEN NULL WHEN - CAST ( + - 22 AS INTEGER ) THEN NULL ELSE - 13 + + 97 + - MAX ( ALL + - NULLIF ( + - 79, - 22 + ( + 65 ) ) ) * - 9 * CAST ( - + CASE + 46 WHEN 62 * - - COUNT ( * ) - - COUNT ( * ) THEN + 48 * ( + 26 ) * + 77 * - 98 - MAX ( - 15 ) END AS INTEGER ) * + 38 - - 77 / + 11 END / - 37 + 31 * COUNT ( * ) THEN - 29 * 64 WHEN - 4 / ( - 18 ) - + 97 THEN + 94 END, - 44 * 81, 13 ) * + 63 AS col2
----
-224532

query I rowsort
SELECT ( - 34 ) + 94 + + 0
----
60

query I rowsort
SELECT DISTINCT ( + - 42 ) * - 37
----
1554

onlyif mysql # aggregate syntax: 
query II rowsort label-3814
SELECT COUNT( * ) + 62 + - - COUNT( * ) AS col0, 85 AS col1
----
64
85

skipif mysql # not compatible
query II rowsort label-3814
SELECT COUNT ( * ) + 62 + - - COUNT ( * ) AS col0, 85 AS col1
----
64
85

query II rowsort
SELECT ALL 37 AS col1, 99
----
37
99

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

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

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

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

query I rowsort
SELECT 55 * + 29
----
1595

onlyif mysql # aggregate syntax: 
query III rowsort label-3819
SELECT 45 col2, + 86 * - + 89 AS col1, COUNT( * )
----
45
-7654
1

skipif mysql # not compatible
query III rowsort label-3819
SELECT 45 col2, + 86 * - + 89 AS col1, COUNT ( * )
----
45
-7654
1

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

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

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

query I rowsort
SELECT ( 60 ) * + + 88 + - 73 + - 9
----
5198

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL - + 35 / + - ( - 60 ) + - CASE 41 WHEN 62 + 70 THEN 66 END + + + COUNT( * ) * 60 * + - 8 * - 13 - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - + 35 / + - ( - 60 ) + - CASE 41 WHEN 62 + 70 THEN 66 END + + + COUNT ( * ) * 60 * + - 8 * - 13 - - 63
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3824
SELECT 58 DIV + 23 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3824
SELECT 58 / + 23 AS col2
----
2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3826
SELECT ALL - - 43 DIV + 41
----
1

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL - - 43 / + 41
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3827
SELECT + CAST( 75 AS SIGNED ) DIV - - 18 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3827
SELECT + CAST ( 75 AS INTEGER ) / - - 18 AS col0
----
4

query I rowsort
SELECT ALL + 37 + - 20 AS col2
----
17

query I rowsort
SELECT DISTINCT - - COALESCE ( + 18, 84 ) AS col1
----
18

query II rowsort
SELECT + 65, - 24 - + 45 AS col1
----
65
-69

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3832
SELECT ALL + COUNT( 26 ) + 58, - 92 + + ( - CASE + 60 WHEN + 33 + - 88 THEN COUNT( * ) * + 99 WHEN - 46 THEN NULL ELSE NULL END ) + - 49 + - 90 * - + 46 AS col1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-3832
SELECT ALL + COUNT ( 26 ) + 58, - 92 + + ( - CASE + 60 WHEN + 33 + - 88 THEN COUNT ( * ) * + 99 WHEN - 46 THEN NULL ELSE NULL END ) + - 49 + - 90 * - + 46 AS col1
----
59
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3833
SELECT ALL + + ( + 37 ) * - 85 / + + ( + 23 ) * 57 * CASE - - CASE CASE + 65 WHEN - + 87 * 2 * ( COUNT( + 32 ) ) THEN + 40 END WHEN - CAST( + COUNT( * ) AS SIGNED ) THEN + 61 - - - 57 * - COUNT( DISTINCT 11 ) * - + 78 + 85 + - ( 33 ) WHEN + 97 THEN NULL ELSE NULL END WHEN + 66 * - 85 + - - 26 * - CASE + 33 WHEN + + 27 + - 5 THEN NULL WHEN - 20 THEN 2 ELSE NULL END THEN NULL WHEN 52 THEN 78 END / - 58 + 23 * COALESCE ( 82, - ( COALESCE ( + 21, 24 + + 28 * 7 ) ) * + 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL + + ( + 37 ) * - 85 / + + ( + 23 ) * 57 * CASE - - CASE CASE + 65 WHEN - + 87 * 2 * ( COUNT ( + 32 ) ) THEN + 40 END WHEN - CAST ( + COUNT ( * ) AS INTEGER ) THEN + 61 - - - 57 * - COUNT ( DISTINCT 11 ) * - + 78 + 85 + - ( 33 ) WHEN + 97 THEN NULL ELSE NULL END WHEN + 66 * - 85 + - - 26 * - CASE + 33 WHEN + + 27 + - 5 THEN NULL WHEN - 20 THEN 2 ELSE NULL END THEN NULL WHEN 52 THEN 78 END / - 58 + 23 * COALESCE ( 82, - ( COALESCE ( + 21, 24 + + 28 * 7 ) ) * + 70 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3834
SELECT DISTINCT + 43 * - ( + - 68 ) - - - CAST( - 86 AS SIGNED ) AS col2
----
3010

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT + 43 * - ( + - 68 ) - - - CAST ( - 86 AS INTEGER ) AS col2
----
3010

query I rowsort
SELECT + 96 * + 10 * - - 5 * 53 * + + ( 45 ) + + + 49 * 93 * - - 24 + - 77
----
11557291

query I rowsort
SELECT ALL + + 88 + - - 78 AS col1
----
166

onlyif mysql # aggregate syntax: 
query II rowsort label-3837
SELECT - ( - 26 ) * + 76 * - 60 * 32 AS col2, + 23 * ( 71 ) + + COUNT( * ) AS col1
----
-3793920
1634

skipif mysql # not compatible
query II rowsort label-3837
SELECT - ( - 26 ) * + 76 * - 60 * 32 AS col2, + 23 * ( 71 ) + + COUNT ( * ) AS col1
----
-3793920
1634

query I rowsort
SELECT + 89 + - + ( + + 51 )
----
38

query I rowsort
SELECT 76 + + - 47
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3840
SELECT COUNT( - 66 ) DIV - COALESCE ( + + 15, + + 53 * + 13, + 34 ) * + + SUM( + + 61 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3840
SELECT COUNT ( - 66 ) / - COALESCE ( + + 15, + + 53 * + 13, + 34 ) * + + SUM ( + + 61 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT ( 98 ) + + - CAST( - 94 AS SIGNED ) + + - COUNT( * ) col1
----
191

skipif mysql # not compatible
query I rowsort label-3841
SELECT ( 98 ) + + - CAST ( - 94 AS INTEGER ) + + - COUNT ( * ) col1
----
191

query II rowsort
SELECT ALL 0 col1, + 97
----
0
97

query I rowsort
SELECT 85 * - + 51 col2
----
-4335

query I rowsort
SELECT DISTINCT - 88 - + 39 col2
----
-127

onlyif mysql # aggregate syntax: 
query II rowsort label-3845
SELECT ALL 58 col2, + MAX( + 37 ) + COUNT( * ) + + - SUM( ALL + 49 )
----
58
-11

skipif mysql # not compatible
query II rowsort label-3845
SELECT ALL 58 col2, + MAX ( + 37 ) + COUNT ( * ) + + - SUM ( ALL + 49 )
----
58
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3846
SELECT 4 DIV - 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3846
SELECT 4 / - 13 AS col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT DISTINCT 79 - - 28 - 36 + - 59 + 78 DIV 60 * - + 25 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT 79 - - 28 - 36 + - 59 + 78 / 60 * - + 25 AS col2
----
-13

query I rowsort
SELECT ALL ( - 15 ) * + 5
----
-75

query I rowsort
SELECT ALL 8 * - 34 AS col1
----
-272

onlyif mysql # DIV for integer division: 
query I rowsort label-3851
SELECT 94 DIV 23 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3851
SELECT 94 / 23 AS col0
----
4

query I rowsort
SELECT 30 * - 82 AS col2
----
-2460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3853
SELECT DISTINCT CASE - COUNT( * ) WHEN - + COUNT( * ) * - 48 THEN + 66 WHEN + 9 * + ( + CAST( NULL AS SIGNED ) ) THEN + CAST( NULL AS SIGNED ) WHEN 49 THEN - - COUNT( * ) * - 28 - + 33 * - 92 * 47 ELSE NULL END * - + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT CASE - COUNT ( * ) WHEN - + COUNT ( * ) * - 48 THEN + 66 WHEN + 9 * + ( + CAST ( NULL AS INTEGER ) ) THEN + CAST ( NULL AS INTEGER ) WHEN 49 THEN - - COUNT ( * ) * - 28 - + 33 * - 92 * 47 ELSE NULL END * - + 69
----
NULL

query II rowsort
SELECT DISTINCT 43 - - 13, 59 AS col0
----
56
59

query I rowsort
SELECT ALL ( + 84 ) * 51 + + + 15
----
4299

query II rowsort
SELECT ( + ( - 71 ) ) + 50 AS col2, 16 * - 92
----
-21
-1472

query II rowsort
SELECT ALL 32 AS col1, 44 AS col2
----
32
44

query II rowsort
SELECT ALL 35 col2, 17
----
35
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ( + 22 ) * + 22 * - COUNT( - 33 ) * - MAX( DISTINCT 0 ) + - 43 * 18 AS col0
----
-774

skipif mysql # not compatible
query I rowsort label-3859
SELECT ( + 22 ) * + 22 * - COUNT ( - 33 ) * - MAX ( DISTINCT 0 ) + - 43 * 18 AS col0
----
-774

query I rowsort
SELECT ( + 4 ) + 27 col1
----
31

query II rowsort
SELECT DISTINCT - 75, 34 * - COALESCE ( - + 57, + + 43 ) + + 61 + - 5 AS col0
----
-75
1994

query I rowsort
SELECT ALL 65 + - 38 col1
----
27

query I rowsort
SELECT ALL 92 * - + ( 54 ) AS col2
----
-4968

query I rowsort
SELECT DISTINCT - 50 + - 52 - - 93
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT COUNT( * ) + + 84
----
85

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT COUNT ( * ) + + 84
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3866
SELECT ALL - - 40 + + + 18 DIV 83 * - 19 DIV ( - - 13 ) * 83 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL - - 40 + + + 18 / 83 * - 19 / ( - - 13 ) * 83 AS col1
----
40

query I rowsort
SELECT 83 * - + 9 * 73 AS col1
----
-54531

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3868
SELECT DISTINCT - - SUM( ALL COALESCE ( + 14, + 96 ) ) DIV - 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT - - SUM ( ALL COALESCE ( + 14, + 96 ) ) / - 24 AS col0
----
0

query I rowsort
SELECT DISTINCT + 9 + + 15 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT MIN( DISTINCT 46 ) * + + 6 - + + 41
----
235

skipif mysql # not compatible
query I rowsort label-3870
SELECT MIN ( DISTINCT 46 ) * + + 6 - + + 41
----
235

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3873
SELECT 54 + + + COALESCE ( - - 46, + - 84, ( + 33 ) DIV + 87 ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-3873
SELECT 54 + + + COALESCE ( - - 46, + - 84, ( + 33 ) / + 87 ) AS col2
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3874
SELECT 14 DIV + NULLIF ( 43, + 3 * + MAX( DISTINCT - + 18 ) + - COUNT( 17 ) + + + 61 - 54 ) * + + 97
----
0

skipif mysql # not compatible
query I rowsort label-3874
SELECT 14 / + NULLIF ( 43, + 3 * + MAX ( DISTINCT - + 18 ) + - COUNT ( 17 ) + + + 61 - 54 ) * + + 97
----
0

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

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL + COUNT ( - ( + + 53 ) ) - + + 64 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL SUM( 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL SUM ( 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3877
SELECT - COUNT( * ) * + - 11 * 53 - - 63 * - COUNT( * ) AS col2, ( + NULLIF ( - 58, + 31 + COUNT( * ) ) )
----
520
-58

skipif mysql # not compatible
query II rowsort label-3877
SELECT - COUNT ( * ) * + - 11 * 53 - - 63 * - COUNT ( * ) AS col2, ( + NULLIF ( - 58, + 31 + COUNT ( * ) ) )
----
520
-58

query I rowsort
SELECT - 44 * 4
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL MIN( + 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL MIN ( + 94 ) AS col0
----
94

query I rowsort
SELECT - ( + - 12 ) + - - 55 AS col1
----
67

query I rowsort
SELECT - 90 + - ( + 82 ) AS col0
----
-172

query I rowsort
SELECT ALL COALESCE ( 75, - 23 ) AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3883
SELECT - 8 * + CAST( - COUNT( - 36 ) AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-3883
SELECT - 8 * + CAST ( - COUNT ( - 36 ) AS INTEGER )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT DISTINCT COALESCE ( + MIN( 40 ), 99 )
----
40

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT COALESCE ( + MIN ( 40 ), 99 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT - COUNT( * ) + - 46 + + + NULLIF ( + COUNT( * ), - 4 * COUNT( 59 ) ) - + 45, - 40 AS col2
----
-91
-40

skipif mysql # not compatible
query II rowsort label-3885
SELECT - COUNT ( * ) + - 46 + + + NULLIF ( + COUNT ( * ), - 4 * COUNT ( 59 ) ) - + 45, - 40 AS col2
----
-91
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-3886
SELECT ALL 10 * + + 72, NULLIF ( + - 11, 52 ) * + COALESCE ( + 12, + 67 * 81 + + + COUNT( + 45 ), - 63 * + - CASE + ( 3 ) WHEN 63 THEN NULL WHEN - + 3 * 37 + - AVG ( + 53 ) * - 90 + 6 + + 4 THEN + + 58 + 59 * - 60 END - - 94 ) AS col0
----
720
-132

skipif mysql # not compatible
query II rowsort label-3886
SELECT ALL 10 * + + 72, NULLIF ( + - 11, 52 ) * + COALESCE ( + 12, + 67 * 81 + + + COUNT ( + 45 ), - 63 * + - CASE + ( 3 ) WHEN 63 THEN NULL WHEN - + 3 * 37 + - AVG ( + 53 ) * - 90 + 6 + + 4 THEN + + 58 + 59 * - 60 END - - 94 ) AS col0
----
720
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT + 79 DIV + - 48 + - 86
----
-87

skipif mysql # not compatible
query I rowsort label-3887
SELECT + 79 / + - 48 + - 86
----
-87

query I rowsort
SELECT - - 56 + + + 33 * + 49 * - - 80 + - - 72 AS col1
----
129488

query I rowsort
SELECT + - ( + 93 ) - - 54 + + - 5
----
-44

query I rowsort
SELECT DISTINCT - 45 * + + 29 AS col1
----
-1305

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT - + 81 + COUNT( * ) * + 21 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3891
SELECT - + 81 + COUNT ( * ) * + 21 AS col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3892
SELECT ALL ( + - 48 ) * + 11 * + + 75 + - NULLIF ( - CAST( NULL AS SIGNED ), - + 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL ( + - 48 ) * + 11 * + + 75 + - NULLIF ( - CAST ( NULL AS INTEGER ), - + 86 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT + + NULLIF ( - + 70, + 7 * + - 52 + + 58 + + COUNT( * ) + - - 28 ) + + 50
----
-20

skipif mysql # not compatible
query I rowsort label-3893
SELECT + + NULLIF ( - + 70, + 7 * + - 52 + + 58 + + COUNT ( * ) + - - 28 ) + + 50
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3894
SELECT + 29 * 30 - + COUNT( * ) + 36 * + 34 * + + CAST( 99 AS SIGNED )
----
122045

skipif mysql # not compatible
query I rowsort label-3894
SELECT + 29 * 30 - + COUNT ( * ) + 36 * + 34 * + + CAST ( 99 AS INTEGER )
----
122045

query I rowsort
SELECT + 68 + - + 68 + - - ( + NULLIF ( + 21, - + 60 + - 76 ) ) + + 0 AS col0
----
21

query I rowsort
SELECT ALL - 10 * - 17
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3897
SELECT + + AVG ( DISTINCT + COALESCE ( 58, 13 ) ) * - - 82 - - 47 * 7 + 67 * MIN( DISTINCT 26 ) + - CAST( NULL AS SIGNED ) * - 58, + CASE COUNT( * ) WHEN + + 72 - - - COUNT( * ) THEN - 56 * + 49 * - 70 * - - 48 + MAX( ALL 19 ) / - COUNT( * ) + - 52 + - 3 * + 24 / + 3 * - 49 * 32 + - + 94 END * - 51 + 47 - + - 70 col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3897
SELECT + + AVG ( DISTINCT + COALESCE ( 58, 13 ) ) * - - 82 - - 47 * 7 + 67 * MIN ( DISTINCT 26 ) + - CAST ( NULL AS INTEGER ) * - 58, + CASE COUNT ( * ) WHEN + + 72 - - - COUNT ( * ) THEN - 56 * + 49 * - 70 * - - 48 + MAX ( ALL 19 ) / - COUNT ( * ) + - 52 + - 3 * + 24 / + 3 * - 49 * 32 + - + 94 END * - 51 + 47 - + - 70 col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3898
SELECT ALL + NULLIF ( 5, + 84 ) AS col1, - MIN( ALL + + 96 ) AS col1
----
5
-96

skipif mysql # not compatible
query II rowsort label-3898
SELECT ALL + NULLIF ( 5, + 84 ) AS col1, - MIN ( ALL + + 96 ) AS col1
----
5
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-3899
SELECT + 9 + - - 71 AS col1, - 75 * - SUM( + - 65 ) col0
----
80
-4875

skipif mysql # not compatible
query II rowsort label-3899
SELECT + 9 + - - 71 AS col1, - 75 * - SUM ( + - 65 ) col0
----
80
-4875

query I rowsort
SELECT + + 80 + + + ( + 22 )
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT NULLIF ( + - CAST( NULL AS SIGNED ), + 67 ) * + 94 / - 50 + - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT NULLIF ( + - CAST ( NULL AS INTEGER ), + 67 ) * + 94 / - 50 + - - 71
----
NULL

query I rowsort
SELECT + - 99 + + + 74 AS col1
----
-25

query I rowsort
SELECT ALL 68 * 68
----
4624

query I rowsort
SELECT + 50 + 43
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT CASE 55 WHEN - MIN( 77 ) * - 18 THEN 4 WHEN + NULLIF ( + ( 98 ), - 10 / - 54 * 19 + - 8 + - NULLIF ( 75, 78 ) + - - 63 * - 74 + 11 * - + 96 * + COUNT( * ) + - 5 + - + 12 + - - 34 ) + COUNT( * ) - + - COUNT( * ) * CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT CASE 55 WHEN - MIN ( 77 ) * - 18 THEN 4 WHEN + NULLIF ( + ( 98 ), - 10 / - 54 * 19 + - 8 + - NULLIF ( 75, 78 ) + - - 63 * - 74 + 11 * - + 96 * + COUNT ( * ) + - 5 + - + 12 + - - 34 ) + COUNT ( * ) - + - COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT - 41 * + - 46 + - 63 + SUM( + + 64 )
----
1887

skipif mysql # not compatible
query I rowsort label-3906
SELECT - 41 * + - 46 + - 63 + SUM ( + + 64 )
----
1887

query I rowsort
SELECT - 44 * + 22
----
-968

query I rowsort
SELECT - 20 * - 26
----
520

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

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

query I rowsort
SELECT + 32 + + - 98 - + - 81 + - 54 + - 78 AS col0
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-3911
SELECT ALL + 7 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL + 7 / 97
----
0

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

skipif mysql # not compatible
query I rowsort label-3912
SELECT + 8 / - 65
----
0

query I rowsort
SELECT + 84 * 8 AS col2
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT - 90 * - ( + + MAX( + 2 ) )
----
180

skipif mysql # not compatible
query I rowsort label-3914
SELECT - 90 * - ( + + MAX ( + 2 ) )
----
180

query I rowsort
SELECT ALL ( - 75 ) AS col0
----
-75

query I rowsort
SELECT DISTINCT - 26 * - 84
----
2184

query I rowsort
SELECT DISTINCT 25 + + 27
----
52

query I rowsort
SELECT ALL - 8 * + 65
----
-520

query I rowsort
SELECT - 54 + + - 83 * + 40 * - 90 AS col2
----
298746

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL - COALESCE ( + 26, - ( + - 32 ) + - COUNT( * ) ) + + - 44 + - 86 AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL - COALESCE ( + 26, - ( + - 32 ) + - COUNT ( * ) ) + + - 44 + - 86 AS col0
----
-156

query I rowsort
SELECT ALL + 81 + 81 AS col1
----
162

query I rowsort
SELECT DISTINCT - 90 + + 74 + + 0 * - - 85 AS col0
----
-16

query I rowsort
SELECT DISTINCT ( 0 ) AS col1
----
0

query I rowsort
SELECT - 16 * 45 AS col0
----
-720

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT + COUNT( * ) + - 12 + 0
----
-11

skipif mysql # not compatible
query I rowsort label-3926
SELECT + COUNT ( * ) + - 12 + 0
----
-11

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

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

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

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

query II rowsort
SELECT - 83 AS col2, - 91
----
-83
-91

query I rowsort
SELECT DISTINCT + 22 + - + 61 AS col0
----
-39

query I rowsort
SELECT ALL + 0 * + - 77
----
0

query I rowsort
SELECT + 89 * - 17 + 17 AS col0
----
-1496

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3934
SELECT ALL + - MIN( - + 93 ) * - NULLIF ( 0, + CAST( NULL AS SIGNED ) * - 32 ) * - MIN( - 70 ) - - 23 + - 25 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL + - MIN ( - + 93 ) * - NULLIF ( 0, + CAST ( NULL AS INTEGER ) * - 32 ) * - MIN ( - 70 ) - - 23 + - 25 AS col0
----
-2

query I rowsort
SELECT - 55 * 46 * + 18
----
-45540

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT DISTINCT + COUNT( - 39 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT + COUNT ( - 39 ) AS col1
----
1

query I rowsort
SELECT - + 43 * - 81 * - 15 * + 65 - + 9
----
-3395934

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3938
SELECT - COUNT( DISTINCT + 5 ) * - + 2 AS col2, COUNT( * ) DIV - 19 * - 62
----
2
0

skipif mysql # not compatible
query II rowsort label-3938
SELECT - COUNT ( DISTINCT + 5 ) * - + 2 AS col2, COUNT ( * ) / - 19 * - 62
----
2
0

query II rowsort
SELECT ALL + 25, + 52 AS col2
----
25
52

query II rowsort
SELECT + + 68 AS col2, 45
----
68
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ALL + MAX( DISTINCT + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL + MAX ( DISTINCT + 47 )
----
47

query I rowsort
SELECT + ( - + 36 ) col0
----
-36

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3944
SELECT COUNT( * ) * 75 AS col0, - MIN( 76 )
----
75
-76

skipif mysql # not compatible
query II rowsort label-3944
SELECT COUNT ( * ) * 75 AS col0, - MIN ( 76 )
----
75
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT DISTINCT CASE - 16 WHEN 94 THEN COUNT( ALL - 5 ) + - ( - 65 ) ELSE NULL END * - - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT CASE - 16 WHEN 94 THEN COUNT ( ALL - 5 ) + - ( - 65 ) ELSE NULL END * - - 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT COUNT( * ) + + 55 * - 74 AS col1
----
-4069

skipif mysql # not compatible
query I rowsort label-3947
SELECT COUNT ( * ) + + 55 * - 74 AS col1
----
-4069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3948
SELECT ALL 55 + - + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + + + 67 / + + 32 col0, + MAX( DISTINCT + - 58 ) * + SUM( DISTINCT ( + 56 ) ) * + - COUNT( ALL - 16 ) / + - 91 + - - 80 * - CAST( NULL AS SIGNED ) + + COUNT( * ) + + - COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3948
SELECT ALL 55 + - + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + + + 67 / + + 32 col0, + MAX ( DISTINCT + - 58 ) * + SUM ( DISTINCT ( + 56 ) ) * + - COUNT ( ALL - 16 ) / + - 91 + - - 80 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + - COUNT ( * )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL 73 + - ( SUM( 25 ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL 73 + - ( SUM ( 25 ) ) AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3950
SELECT DISTINCT 84 + 57 + + + ( CAST( NULL AS SIGNED ) ) + + 20 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT 84 + 57 + + + ( CAST ( NULL AS INTEGER ) ) + + 20 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3951
SELECT ( COALESCE ( - 37, COUNT( * ) ) ) DIV - 17 + + - 25 + - - NULLIF ( + 40, - 93 ) + + + COUNT( * ) * - 78 * + 91
----
-7081

skipif mysql # not compatible
query I rowsort label-3951
SELECT ( COALESCE ( - 37, COUNT ( * ) ) ) / - 17 + + - 25 + - - NULLIF ( + 40, - 93 ) + + + COUNT ( * ) * - 78 * + 91
----
-7081

query I rowsort
SELECT ALL 19 + 23 * 87 AS col2
----
2020

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3953
SELECT ( + 41 ) DIV - ( + - 76 ) AS col0, 47 * - 20 + + COUNT( * ) * 44
----
0
-896

skipif mysql # not compatible
query II rowsort label-3953
SELECT ( + 41 ) / - ( + - 76 ) AS col0, 47 * - 20 + + COUNT ( * ) * 44
----
0
-896

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT DISTINCT + 12 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT + 12 / + 67
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3955
SELECT COUNT( * ) * 80 * + - 56 * - + 22 AS col1, MAX( 69 ) AS col1
----
98560
69

skipif mysql # not compatible
query II rowsort label-3955
SELECT COUNT ( * ) * 80 * + - 56 * - + 22 AS col1, MAX ( 69 ) AS col1
----
98560
69

query II rowsort
SELECT 42 - - 20 + - 46 + 11, - 99 * 60 AS col0
----
27
-5940

query I rowsort
SELECT ALL + - 21 * - 30 AS col1
----
630

onlyif mysql # aggregate syntax: 
query II rowsort label-3958
SELECT + COUNT( DISTINCT - 68 ) AS col2, 68
----
1
68

skipif mysql # not compatible
query II rowsort label-3958
SELECT + COUNT ( DISTINCT - 68 ) AS col2, 68
----
1
68

query I rowsort
SELECT ALL - 13 - - ( 54 ) AS col0
----
41

query I rowsort
SELECT 68 + 19 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT 12 - COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3961
SELECT 12 - COUNT ( * ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT MIN( ALL - 44 ) + - - 3 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3962
SELECT MIN ( ALL - 44 ) + - - 3 AS col2
----
-41

query I rowsort
SELECT 91 * + - 39
----
-3549

query I rowsort
SELECT DISTINCT - - 6 AS col2
----
6

query II rowsort
SELECT ALL + 28 * + 50 col1, ( + 50 ) AS col1
----
1400
50

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT 13 DIV + + 27 * + 16
----
0

skipif mysql # not compatible
query I rowsort label-3967
SELECT 13 / + + 27 * + 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT COUNT( * ) * + ( - 20 ) + + 62
----
42

skipif mysql # not compatible
query I rowsort label-3968
SELECT COUNT ( * ) * + ( - 20 ) + + 62
----
42

query I rowsort
SELECT ALL 79 + + 75 * - ( - 60 ) AS col0
----
4579

query I rowsort
SELECT 39 + + 85
----
124

query I rowsort
SELECT NULLIF ( + - ( - 30 ), + - 10 ) * + + 26 AS col2
----
780

query II rowsort
SELECT DISTINCT - 87 AS col1, ( 20 )
----
-87
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT SUM( DISTINCT 16 ) + + MAX( - 20 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3973
SELECT SUM ( DISTINCT 16 ) + + MAX ( - 20 ) AS col2
----
-4

query I rowsort
SELECT DISTINCT 24 * - 19
----
-456

query I rowsort
SELECT 57 + - 61 - + 3
----
-7

query I rowsort
SELECT ALL 4 - + - 31 + - 64
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3977
SELECT 3 + - 68 - 44 AS col2, MAX( ALL - 99 ) + + + 16 + 80 * 81 DIV + ( ( + 50 ) ) - - 7 AS col0
----
-109
53

skipif mysql # not compatible
query II rowsort label-3977
SELECT 3 + - 68 - 44 AS col2, MAX ( ALL - 99 ) + + + 16 + 80 * 81 / + ( ( + 50 ) ) - - 7 AS col0
----
-109
53

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3978
SELECT ALL + CAST( NULL AS DECIMAL ) - + ( - 58 ) AS col2, 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-3978
SELECT ALL + CAST ( NULL AS REAL ) - + ( - 58 ) AS col2, 10
----
NULL
10

query II rowsort
SELECT ALL 18, - ( - 70 ) AS col0
----
18
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3980
SELECT + CASE COUNT( * ) WHEN - 35 + - - ( + 41 ) THEN + + 97 * 98 WHEN + - COUNT( * ) THEN ( - + 72 ) * - 45 / + 38 * + SUM( CAST( - 53 AS SIGNED ) ) + - - 5 + 87 * + 97 ELSE NULL END + - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3980
SELECT + CASE COUNT ( * ) WHEN - 35 + - - ( + 41 ) THEN + + 97 * 98 WHEN + - COUNT ( * ) THEN ( - + 72 ) * - 45 / + 38 * + SUM ( CAST ( - 53 AS INTEGER ) ) + - - 5 + 87 * + 97 ELSE NULL END + - + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT - - SUM( - - 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-3981
SELECT - - SUM ( - - 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3982
SELECT DISTINCT 49 DIV - 10 + - 27 + - CASE + - 86 WHEN 48 * + - COUNT( * ) * - - 31 THEN NULL WHEN + - 56 THEN + - 91 ELSE + 12 + - - 35 - + 56 END DIV - 10
----
-31

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT 49 / - 10 + - 27 + - CASE + - 86 WHEN 48 * + - COUNT ( * ) * - - 31 THEN NULL WHEN + - 56 THEN + - 91 ELSE + 12 + - - 35 - + 56 END / - 10
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT - 89 DIV - 78 col0
----
1

skipif mysql # not compatible
query I rowsort label-3983
SELECT - 89 / - 78 col0
----
1

query I rowsort
SELECT + 28 * - 15
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT CASE 70 WHEN + COUNT( * ) THEN - 72 * - + 60 / 55 ELSE NULL END + ( + 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT CASE 70 WHEN + COUNT ( * ) THEN - 72 * - + 60 / 55 ELSE NULL END + ( + 45 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL + COALESCE ( - 49, 80 * - 6, - COUNT( * ) * + COUNT( * ) + - ( 93 ) * 17 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + COALESCE ( - 49, 80 * - 6, - COUNT ( * ) * + COUNT ( * ) + - ( 93 ) * 17 ) AS col2
----
-49

query II rowsort
SELECT ALL 75, 41 AS col2
----
75
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3988
SELECT ALL - + 18 * 54 + + COALESCE ( + - 14, - - CAST( - - 7 AS SIGNED ), 10 ) AS col1
----
-986

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL - + 18 * 54 + + COALESCE ( + - 14, - - CAST ( - - 7 AS INTEGER ), 10 ) AS col1
----
-986

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT NULLIF ( - + 88, - + COUNT( * ) )
----
-88

skipif mysql # not compatible
query I rowsort label-3989
SELECT NULLIF ( - + 88, - + COUNT ( * ) )
----
-88

query I rowsort
SELECT + 92 * + 98
----
9016

query I rowsort
SELECT NULLIF ( 30, 55 * 32 * 34 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT NULLIF ( - - 8, + 75 + + ( + - COUNT( DISTINCT - 88 ) ) * 53 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3992
SELECT NULLIF ( - - 8, + 75 + + ( + - COUNT ( DISTINCT - 88 ) ) * 53 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT COALESCE ( + 66, ( + 96 ), - - COUNT( * ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3993
SELECT COALESCE ( + 66, ( + 96 ), - - COUNT ( * ) ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT + 65 * - 92 * + - 35 * + + 99 + + 5 + 79 + + COUNT( * ) * - 8 AS col0
----
20720776

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT + 65 * - 92 * + - 35 * + + 99 + + 5 + 79 + + COUNT ( * ) * - 8 AS col0
----
20720776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3995
SELECT DISTINCT - MAX( + 63 ) * + + COALESCE ( - + 45, - 94 DIV 78 * - CAST( + - 13 AS SIGNED ) * 57 + - 45 + + 23 ) * + 1 * + 64 + - 89 + + COUNT( * ) - 8 * 87 * COUNT( * ) * 83 + + 30 AS col1
----
123614

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT - MAX ( + 63 ) * + + COALESCE ( - + 45, - 94 / 78 * - CAST ( + - 13 AS INTEGER ) * 57 + - 45 + + 23 ) * + 1 * + 64 + - 89 + + COUNT ( * ) - 8 * 87 * COUNT ( * ) * 83 + + 30 AS col1
----
123614

onlyif mysql # DIV for integer division: 
query II rowsort label-3996
SELECT ALL - 76 DIV 43 col1, 95
----
-1
95

skipif mysql # not compatible
query II rowsort label-3996
SELECT ALL - 76 / 43 col1, 95
----
-1
95

onlyif mysql # DIV for integer division: 
query II rowsort label-3997
SELECT - 14 DIV 80, + 17 AS col0
----
0
17

skipif mysql # not compatible
query II rowsort label-3997
SELECT - 14 / 80, + 17 AS col0
----
0
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT ALL 26 * COUNT( * ) * - ( - 61 )
----
1586

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL 26 * COUNT ( * ) * - ( - 61 )
----
1586

query I rowsort
SELECT NULLIF ( 91, - - 37 ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT ALL - SUM( CAST( NULL AS SIGNED ) ) / + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL - SUM ( CAST ( NULL AS INTEGER ) ) / + 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL + 55 * + 4 * - - COUNT( * ) * - COUNT( * ) + 3 * + 53
----
-61

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + 55 * + 4 * - - COUNT ( * ) * - COUNT ( * ) + 3 * + 53
----
-61

onlyif mysql # aggregate syntax: 
query III rowsort label-4002
SELECT COUNT( * ) AS col1, 47 AS col0, + + 74 AS col0
----
1
47
74

skipif mysql # not compatible
query III rowsort label-4002
SELECT COUNT ( * ) AS col1, 47 AS col0, + + 74 AS col0
----
1
47
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT + 84 DIV + + 22 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4003
SELECT + 84 / + + 22 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT ALL - 50 * - COUNT( DISTINCT + + 84 ) col2
----
50

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL - 50 * - COUNT ( DISTINCT + + 84 ) col2
----
50

query I rowsort
SELECT - 95 * 28 col1
----
-2660

query I rowsort
SELECT 77 * 27 + - 38
----
2041

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

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

query II rowsort
SELECT ALL + 35 AS col2, 61
----
35
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT + 71 * + 12 + + + MAX( DISTINCT 32 ) - + 99
----
785

skipif mysql # not compatible
query I rowsort label-4009
SELECT + 71 * + 12 + + + MAX ( DISTINCT 32 ) - + 99
----
785

query II rowsort
SELECT - 35 AS col1, 81
----
-35
81

query II rowsort
SELECT ALL 96 AS col1, 77 col0
----
96
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT - ( MAX( + 20 ) ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-4012
SELECT - ( MAX ( + 20 ) ) col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT + - COUNT( * ) * - 15 * + - 48
----
-720

skipif mysql # not compatible
query I rowsort label-4013
SELECT + - COUNT ( * ) * - 15 * + - 48
----
-720

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4014
SELECT 1 col0, - 5 * - 14 + + 76 + - COALESCE ( 69, - COALESCE ( - - 57, - - 22 * + + ( + 11 ) * MIN( - 8 ) * + 60 + - - 44 + + + ( + 28 ) DIV + 19 + + 47 ) * 91 ) * 56 * - 48 * COUNT( * ) AS col2
----
1
185618

skipif mysql # not compatible
query II rowsort label-4014
SELECT 1 col0, - 5 * - 14 + + 76 + - COALESCE ( 69, - COALESCE ( - - 57, - - 22 * + + ( + 11 ) * MIN ( - 8 ) * + 60 + - - 44 + + + ( + 28 ) / + 19 + + 47 ) * 91 ) * 56 * - 48 * COUNT ( * ) AS col2
----
1
185618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4015
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4016
SELECT + COALESCE ( 35, - + 60, 38 ) AS col0, + 70 * + + COUNT( * ) * - COALESCE ( + 3, + + 94 + + - 76 )
----
35
-210

skipif mysql # not compatible
query II rowsort label-4016
SELECT + COALESCE ( 35, - + 60, 38 ) AS col0, + 70 * + + COUNT ( * ) * - COALESCE ( + 3, + + 94 + + - 76 )
----
35
-210

onlyif mysql # aggregate syntax: 
query II rowsort label-4017
SELECT - - 41 AS col1, 80 * + 74 + 88 * 44 * + - COUNT( * ) + + + 57 AS col1
----
41
2105

skipif mysql # not compatible
query II rowsort label-4017
SELECT - - 41 AS col1, 80 * + 74 + 88 * 44 * + - COUNT ( * ) + + + 57 AS col1
----
41
2105

query I rowsort
SELECT + 26 * + + 94 AS col2
----
2444

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT + ( + 70 ) - 69 + - + 42 DIV 62 * - + 25 * + 72
----
1

skipif mysql # not compatible
query I rowsort label-4019
SELECT + ( + 70 ) - 69 + - + 42 / 62 * - + 25 * + 72
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT - 50 * 8 * + + COUNT( * ) AS col1
----
-400

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT - 50 * 8 * + + COUNT ( * ) AS col1
----
-400

query I rowsort
SELECT ALL 79 + + 49 * - 61
----
-2910

query II rowsort
SELECT - - 20, + 19 AS col0
----
20
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT DISTINCT + 58 + - COUNT( * ) col1
----
57

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT + 58 + - COUNT ( * ) col1
----
57

query I rowsort
SELECT ALL - 95 + 61 + - 6
----
-40

query II rowsort
SELECT - - 69, 86 AS col1
----
69
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL + 25 + + COUNT( * ) * + 40 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL + 25 + + COUNT ( * ) * + 40 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + + COUNT( * ) - 26
----
-25

skipif mysql # not compatible
query I rowsort label-4027
SELECT + + COUNT ( * ) - 26
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4028
SELECT ALL COUNT( * ) + - 81 AS col0, - 2 + - 40 + - 12 * 75 DIV - MIN( ALL + 2 )
----
-80
408

skipif mysql # not compatible
query II rowsort label-4028
SELECT ALL COUNT ( * ) + - 81 AS col0, - 2 + - 40 + - 12 * 75 / - MIN ( ALL + 2 )
----
-80
408

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4029
SELECT CAST( - CAST( - 93 AS DECIMAL ) AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-4029
SELECT CAST ( - CAST ( - 93 AS REAL ) AS INTEGER )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4030
SELECT ALL + 38 DIV + 51 * + COUNT( * ) + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL + 38 / + 51 * + COUNT ( * ) + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + 62 + + 74 + 30 AS col1
----
166

query I rowsort
SELECT ALL - 90 * 22
----
-1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4033
SELECT 53 * + 66 + 49 + - CAST( 44 AS SIGNED ) AS col2
----
3503

skipif mysql # not compatible
query I rowsort label-4033
SELECT 53 * + 66 + 49 + - CAST ( 44 AS INTEGER ) AS col2
----
3503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT ALL 74 / - ( ( - 88 ) ) / 8 * + 46 / + CAST( NULL AS SIGNED ) * - 80 + - 32 * 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL 74 / - ( ( - 88 ) ) / 8 * + 46 / + CAST ( NULL AS INTEGER ) * - 80 + - 32 * 66 AS col1
----
NULL

query I rowsort
SELECT - 8 * 71
----
-568

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

skipif mysql # not compatible
query II rowsort label-4036
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4037
SELECT + CAST( + 7 AS SIGNED ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4037
SELECT + CAST ( + 7 AS INTEGER ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4038
SELECT DISTINCT + ( - - 80 ) * CASE + 79 WHEN + + COUNT( * ) THEN + + 78 END * 80 - + 91 + - MIN( ALL - 74 ) AS col1, - 49 AS col1
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-4038
SELECT DISTINCT + ( - - 80 ) * CASE + 79 WHEN + + COUNT ( * ) THEN + + 78 END * 80 - + 91 + - MIN ( ALL - 74 ) AS col1, - 49 AS col1
----
NULL
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL + MIN( 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + MIN ( 73 ) AS col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT ALL - 27 DIV 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL - 27 / 82 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4041
SELECT ALL - 19 * + - CAST( - 78 AS SIGNED ) AS col2
----
-1482

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL - 19 * + - CAST ( - 78 AS INTEGER ) AS col2
----
-1482

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

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

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

skipif mysql # not compatible
query I rowsort label-4043
SELECT + CAST ( - SUM ( - 87 ) AS INTEGER ) AS col2
----
87

query I rowsort
SELECT - 83 + - 98 + 32 AS col1
----
-149

query I rowsort
SELECT - + 10 * + 78 + 2 + - - COALESCE ( + 17, 14 * - 51 * + - 4 - 11 * - 73 * - - 96 ) - NULLIF ( 33, + 50 ) AS col1
----
-794

onlyif mysql # aggregate syntax: 
query II rowsort label-4046
SELECT DISTINCT + - 72 * - + 46 * + MIN( - + 99 ) * + 4 AS col0, - 57
----
-1311552
-57

skipif mysql # not compatible
query II rowsort label-4046
SELECT DISTINCT + - 72 * - + 46 * + MIN ( - + 99 ) * + 4 AS col0, - 57
----
-1311552
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT - 10 DIV 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4047
SELECT - 10 / 77 AS col2
----
0

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

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

query I rowsort
SELECT ALL - - 43 * + + ( 43 )
----
1849

query I rowsort
SELECT DISTINCT - 87 + + 21 * + 71 * - 88
----
-131295

onlyif mysql # aggregate syntax: 
query II rowsort label-4051
SELECT + ( - COUNT( * ) ), - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-4051
SELECT + ( - COUNT ( * ) ), - COUNT ( * )
----
-1
-1

query I rowsort
SELECT 12 + 61 + + 25 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT ALL 56 * COUNT( * ) + COUNT( * ) + - 38
----
19

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL 56 * COUNT ( * ) + COUNT ( * ) + - 38
----
19

query I rowsort
SELECT ALL - 94 * + 97
----
-9118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4055
SELECT COUNT( * ) DIV - 57 * 92 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-4055
SELECT COUNT ( * ) / - 57 * 92 / + 72
----
0

query I rowsort
SELECT ALL 20 - ( 55 ) + + + 31 + + + 6
----
2

query I rowsort
SELECT 19 - - 2 AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4058
SELECT + 56 col2, NULLIF ( 60, - CAST( COUNT( * ) AS SIGNED ) * + - COUNT( * ) * + 49 / - CAST( + ( - ( + + MAX( - 20 ) ) ) AS SIGNED ) + + NULLIF ( + 53, - - 0 ) ) col0
----
56
60

skipif mysql # not compatible
query II rowsort label-4058
SELECT + 56 col2, NULLIF ( 60, - CAST ( COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) * + 49 / - CAST ( + ( - ( + + MAX ( - 20 ) ) ) AS INTEGER ) + + NULLIF ( + 53, - - 0 ) ) col0
----
56
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT - 7 DIV + 49 - - - CASE 10 WHEN + - 69 + - 16 - - 84 THEN NULL ELSE + + 13 * 97 END
----
-1261

skipif mysql # not compatible
query I rowsort label-4059
SELECT - 7 / + 49 - - - CASE 10 WHEN + - 69 + - 16 - - 84 THEN NULL ELSE + + 13 * 97 END
----
-1261

query II rowsort
SELECT + 67, 58 col1
----
67
58

query I rowsort
SELECT DISTINCT 19 - 83
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT COUNT( * ) * + 33 - CASE 78 WHEN + 92 + - 40 THEN + NULLIF ( 51, - 71 - + - 22 ) ELSE 76 END AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-4062
SELECT COUNT ( * ) * + 33 - CASE 78 WHEN + 92 + - 40 THEN + NULLIF ( 51, - 71 - + - 22 ) ELSE 76 END AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4063
SELECT ALL - 99 col2, 85 + + - COUNT( * ) + 30 AS col2
----
-99
114

skipif mysql # not compatible
query II rowsort label-4063
SELECT ALL - 99 col2, 85 + + - COUNT ( * ) + 30 AS col2
----
-99
114

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

query I rowsort
SELECT ALL 7 * + + 30 * + + 22
----
4620

query I rowsort
SELECT ALL - - 98 col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4067
SELECT NULLIF ( + + 18, + MIN( ALL + + 25 ) + + - 63 ) + - 36 / 52 * CASE - + 92 WHEN CASE + 95 WHEN + 87 - - + 90 + - - COALESCE ( + CAST( NULL AS DECIMAL ), 73 ) - - + 20 + 20 THEN NULL WHEN 9 / + + 72 THEN NULL ELSE + 86 END + - - 67 THEN 7 + + 85 WHEN 81 THEN NULL WHEN + SUM( + ( + 95 ) ) * + - 2 THEN + + COUNT( * ) / + 88 * - 95 + 87 - + 46 + + CAST( 89 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT NULLIF ( + + 18, + MIN ( ALL + + 25 ) + + - 63 ) + - 36 / 52 * CASE - + 92 WHEN CASE + 95 WHEN + 87 - - + 90 + - - COALESCE ( + CAST ( NULL AS REAL ), 73 ) - - + 20 + 20 THEN NULL WHEN 9 / + + 72 THEN NULL ELSE + 86 END + - - 67 THEN 7 + + 85 WHEN 81 THEN NULL WHEN + SUM ( + ( + 95 ) ) * + - 2 THEN + + COUNT ( * ) / + 88 * - 95 + 87 - + 46 + + CAST ( 89 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4068
SELECT - 3 * 38 - - 7 DIV - 73 AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-4068
SELECT - 3 * 38 - - 7 / - 73 AS col1
----
-114

query I rowsort
SELECT - 81 * 75
----
-6075

query I rowsort
SELECT + 50 * + 26
----
1300

query I rowsort
SELECT ALL - 94 + - 70 * + 18 AS col1
----
-1354

query I rowsort
SELECT DISTINCT + 83 * + - 12 * + 26 + + 61 - + - 69
----
-25766

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT DISTINCT COUNT( COALESCE ( + 14, - 95 - 24, - ( + 15 ) ) ) + 35
----
36

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT COUNT ( COALESCE ( + 14, - 95 - 24, - ( + 15 ) ) ) + 35
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4074
SELECT + COALESCE ( - NULLIF ( + 63, - - 88 / - 73 - + - CAST( - 66 AS SIGNED ) ), - - 72 - 29 * - COUNT( * ) ) + 43
----
-20

skipif mysql # not compatible
query I rowsort label-4074
SELECT + COALESCE ( - NULLIF ( + 63, - - 88 / - 73 - + - CAST ( - 66 AS INTEGER ) ), - - 72 - 29 * - COUNT ( * ) ) + 43
----
-20

query I rowsort
SELECT 91 - - 8 * + 18 * + 7 + - 83 AS col2
----
1016

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT - SUM( DISTINCT 29 ) + + + 58 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4076
SELECT - SUM ( DISTINCT 29 ) + + + 58 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT + - 78 * + 75 * + - COALESCE ( - 62, + COUNT( ALL + - 90 ) * - 11, ( - + 21 ) * - + 84 - + - 62, + 19 ) * 5 + + + 97
----
-1813403

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT + - 78 * + 75 * + - COALESCE ( - 62, + COUNT ( ALL + - 90 ) * - 11, ( - + 21 ) * - + 84 - + - 62, + 19 ) * 5 + + + 97
----
-1813403

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT - 71 + + COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-4078
SELECT - 71 + + COUNT ( * )
----
-70

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

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

query I rowsort
SELECT 60 - - - 32 AS col0
----
28

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

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

query I rowsort
SELECT + 33 - - - 4 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT + 37 * - + COUNT( * ) + - + 87
----
-124

skipif mysql # not compatible
query I rowsort label-4083
SELECT + 37 * - + COUNT ( * ) + - + 87
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT 19 + CAST( - 34 AS SIGNED ) - - 29
----
14

skipif mysql # not compatible
query I rowsort label-4084
SELECT 19 + CAST ( - 34 AS INTEGER ) - - 29
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4085
SELECT 64 - 52 + CASE + + 8 WHEN ( + COUNT( * ) ) * 84 + - + 80 THEN COALESCE ( + + 34, + 51 + + 87 + + CAST( 95 AS SIGNED ) + - 38 + + 18, + 77 * + - 58 ) WHEN + 33 THEN - ( + 11 ) * - 40 - + 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4085
SELECT 64 - 52 + CASE + + 8 WHEN ( + COUNT ( * ) ) * 84 + - + 80 THEN COALESCE ( + + 34, + 51 + + 87 + + CAST ( 95 AS INTEGER ) + - 38 + + 18, + 77 * + - 58 ) WHEN + 33 THEN - ( + 11 ) * - 40 - + 59 END
----
NULL

query II rowsort
SELECT 38 + ( - 55 ) + - + ( - 31 ) AS col1, 6 * 98 AS col1
----
14
588

onlyif mysql # aggregate syntax: 
query II rowsort label-4087
SELECT COUNT( DISTINCT - 0 ) - - + 19 + + 86 AS col1, 46 AS col2
----
106
46

skipif mysql # not compatible
query II rowsort label-4087
SELECT COUNT ( DISTINCT - 0 ) - - + 19 + + 86 AS col1, 46 AS col2
----
106
46

query I rowsort
SELECT 45 * - 96 AS col1
----
-4320

query I rowsort
SELECT 57 * - 33 * + 21
----
-39501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4090
SELECT ALL 60 * - COUNT( * ) AS col0, - ( 19 ) * - SUM( - 91 ) + - CAST( NULL AS SIGNED ) AS col0
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-4090
SELECT ALL 60 * - COUNT ( * ) AS col0, - ( 19 ) * - SUM ( - 91 ) + - CAST ( NULL AS INTEGER ) AS col0
----
-60
NULL

query I rowsort
SELECT DISTINCT + 46 * 73
----
3358

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT MAX( ALL - - 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4092
SELECT MAX ( ALL - - 88 ) AS col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4093
SELECT + 2 DIV - 16 + + - 66
----
-66

skipif mysql # not compatible
query I rowsort label-4093
SELECT + 2 / - 16 + + - 66
----
-66

query I rowsort
SELECT ALL + 28 * + ( - 61 )
----
-1708

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4095
SELECT 99 + - CASE + 62 WHEN 67 + + + COUNT( * ) THEN NULL ELSE - + 47 END DIV 60
----
99

skipif mysql # not compatible
query I rowsort label-4095
SELECT 99 + - CASE + 62 WHEN 67 + + + COUNT ( * ) THEN NULL ELSE - + 47 END / 60
----
99

query I rowsort
SELECT DISTINCT 27 * + 35 * + + 15 + 15 * + + 75
----
15300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4097
SELECT - MIN( ALL + 42 ) * - CAST( - 83 AS SIGNED )
----
-3486

skipif mysql # not compatible
query I rowsort label-4097
SELECT - MIN ( ALL + 42 ) * - CAST ( - 83 AS INTEGER )
----
-3486

query I rowsort
SELECT 16 + + + 21
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT + + ( MAX( + 90 ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-4099
SELECT + + ( MAX ( + 90 ) ) AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4100
SELECT CAST( NULL AS SIGNED ) / + 95 + + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT CAST ( NULL AS INTEGER ) / + 95 + + - 62
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4101
SELECT DISTINCT + 37 * + 67 * + COUNT( DISTINCT 92 ) - - 91 + + CAST( NULL AS SIGNED ) + - 27 + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + 37 * + 67 * + COUNT ( DISTINCT 92 ) - - 91 + + CAST ( NULL AS INTEGER ) + - 27 + + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT ALL + COALESCE ( + 38, + + 52, + COUNT( * ) ) * + 77 + - 24 + - - 91 + 59 * 81 * - 43
----
-202504

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL + COALESCE ( + 38, + + 52, + COUNT ( * ) ) * + 77 + - 24 + - - 91 + 59 * 81 * - 43
----
-202504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4103
SELECT ALL CAST( NULL AS SIGNED ) * - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL CAST ( NULL AS INTEGER ) * - 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4104
SELECT DISTINCT + 8 * + ( + + 70 ) + - 58 - + ( ( - 76 ) ) * COUNT( * ) + + 4 DIV - - 6 * + - ( 83 ) AS col0, + COUNT( * ) DIV + 47 * - 78
----
578
0

skipif mysql # not compatible
query II rowsort label-4104
SELECT DISTINCT + 8 * + ( + + 70 ) + - 58 - + ( ( - 76 ) ) * COUNT ( * ) + + 4 / - - 6 * + - ( 83 ) AS col0, + COUNT ( * ) / + 47 * - 78
----
578
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT DISTINCT - - 5 + 85 * - - NULLIF ( + 27, + + CASE + - 81 WHEN CAST( NULL AS SIGNED ) * + + 64 + + 64 THEN NULL WHEN - 77 THEN - + 68 * + 40 * - 56 * + 40 - - 92 ELSE NULL END )
----
2300

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT - - 5 + 85 * - - NULLIF ( + 27, + + CASE + - 81 WHEN CAST ( NULL AS INTEGER ) * + + 64 + + 64 THEN NULL WHEN - 77 THEN - + 68 * + 40 * - 56 * + 40 - - 92 ELSE NULL END )
----
2300

onlyif mysql # DIV for integer division: 
query II rowsort label-4106
SELECT ALL 89 + - + 21 col2, 11 DIV + 93 col2
----
68
0

skipif mysql # not compatible
query II rowsort label-4106
SELECT ALL 89 + - + 21 col2, 11 / + 93 col2
----
68
0

query I rowsort
SELECT + - 7 + - + 27
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4108
SELECT + 72 - - ( + + 65 ) * + CAST( NULL AS SIGNED ) + + - 76 - + - COUNT( * ) + - AVG ( ALL + - ( - - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4108
SELECT + 72 - - ( + + 65 ) * + CAST ( NULL AS INTEGER ) + + - 76 - + - COUNT ( * ) + - AVG ( ALL + - ( - - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 38 * + 98 * 67 AS col0
----
249508

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT CASE 55 WHEN ( - 10 ) - + 20 THEN - 88 / - 49 + + ( + 36 ) - + + 5 WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT CASE 55 WHEN ( - 10 ) - + 20 THEN - 88 / - 49 + + ( + 36 ) - + + 5 WHEN + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4111
SELECT CASE - 9 WHEN - - COALESCE ( - 3, - 58 + - - 43, - CAST( 64 AS SIGNED ) ) THEN - 40 / - - CASE + - 55 WHEN - 59 THEN - - 84 END WHEN 28 * - + CASE + 73 WHEN + - 86 THEN + 6 WHEN - ( + 97 ) * NULLIF ( - 32, + - 10 * 23 ) / + COUNT( * ) + 70 - + 56 + + COALESCE ( 21, - + 96 ) - 67 + - COUNT( DISTINCT 74 ) * - 43 / 76 / + 72 * - 70 * 94 - 26 + + - 11 * + 16 + COUNT( - 34 ) THEN - - CAST( NULL AS DECIMAL ) ELSE NULL END + + 53 + 34 THEN NULL ELSE 13 END
----
13

skipif mysql # not compatible
query I rowsort label-4111
SELECT CASE - 9 WHEN - - COALESCE ( - 3, - 58 + - - 43, - CAST ( 64 AS INTEGER ) ) THEN - 40 / - - CASE + - 55 WHEN - 59 THEN - - 84 END WHEN 28 * - + CASE + 73 WHEN + - 86 THEN + 6 WHEN - ( + 97 ) * NULLIF ( - 32, + - 10 * 23 ) / + COUNT ( * ) + 70 - + 56 + + COALESCE ( 21, - + 96 ) - 67 + - COUNT ( DISTINCT 74 ) * - 43 / 76 / + 72 * - 70 * 94 - 26 + + - 11 * + 16 + COUNT ( - 34 ) THEN - - CAST ( NULL AS REAL ) ELSE NULL END + + 53 + 34 THEN NULL ELSE 13 END
----
13

query I rowsort
SELECT ALL - + 63 + - + 47 AS col0
----
-110

query I rowsort
SELECT ALL + ( + - 18 ) * + 14
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT - - COALESCE ( + COUNT( * ), + 23 * + COUNT( * ) ) * + 11 + 98 - 38
----
71

skipif mysql # not compatible
query I rowsort label-4114
SELECT - - COALESCE ( + COUNT ( * ), + 23 * + COUNT ( * ) ) * + 11 + 98 - 38
----
71

query I rowsort
SELECT DISTINCT NULLIF ( + + 36, + + 20 ) AS col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4116
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 65 * - CAST( NULL AS SIGNED ) AS col0, 26 * 29
----
NULL
754

skipif mysql # not compatible
query II rowsort label-4116
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 65 * - CAST ( NULL AS INTEGER ) AS col0, 26 * 29
----
NULL
754

query I rowsort
SELECT ALL + 31 * - + 6 AS col1
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-4118
SELECT - 97 DIV - - 44
----
-2

skipif mysql # not compatible
query I rowsort label-4118
SELECT - 97 / - - 44
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT - 32 / + CASE + 62 WHEN 38 * - ( + 72 ) + + + ( - 57 ) THEN NULL WHEN - ( 40 ) * - 22 THEN - - NULLIF ( + 20, COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4119
SELECT - 32 / + CASE + 62 WHEN 38 * - ( + 72 ) + + + ( - 57 ) THEN NULL WHEN - ( 40 ) * - 22 THEN - - NULLIF ( + 20, COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT ALL 37 * 42
----
1554

query II rowsort
SELECT - 12 AS col0, 29
----
-12
29

query I rowsort
SELECT ALL ( + - 69 ) col1
----
-69

query I rowsort
SELECT ALL ( - 66 ) AS col1
----
-66

query I rowsort
SELECT ALL + 59 * 53
----
3127

query I rowsort
SELECT - 13 - - 20
----
7

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

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

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

query I rowsort
SELECT DISTINCT + ( 51 ) AS col2
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + 40 * + - 12 + + COUNT( * ) AS col1
----
-479

skipif mysql # not compatible
query I rowsort label-4131
SELECT + 40 * + - 12 + + COUNT ( * ) AS col1
----
-479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4132
SELECT + CAST( + MIN( ALL + + 58 ) AS SIGNED ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4132
SELECT + CAST ( + MIN ( ALL + + 58 ) AS INTEGER ) AS col0
----
58

query I rowsort
SELECT + - 72 * - ( + ( + 50 ) ) + 37 AS col2
----
3637

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT + COUNT( * ) + - NULLIF ( + MAX( - + 69 ), + 46 )
----
70

skipif mysql # not compatible
query I rowsort label-4134
SELECT + COUNT ( * ) + - NULLIF ( + MAX ( - + 69 ), + 46 )
----
70

query I rowsort
SELECT + 92 * + 38 AS col0
----
3496

query I rowsort
SELECT COALESCE ( - + ( 25 ), - 80 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT - - 53 * - 8 + - SUM( + 0 )
----
-424

skipif mysql # not compatible
query I rowsort label-4137
SELECT - - 53 * - 8 + - SUM ( + 0 )
----
-424

query II rowsort
SELECT + 23 AS col1, - 65 * + 69 * - 96 * 73
----
23
31430880

query I rowsort
SELECT + + 46 * + 36 AS col2
----
1656

query I rowsort
SELECT - + 35 - - + 29 AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT ALL CAST( + - 45 AS SIGNED ) * 76
----
-3420

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL CAST ( + - 45 AS INTEGER ) * 76
----
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT + 3 + COUNT( * ) + - - COUNT( * ) col0
----
5

skipif mysql # not compatible
query I rowsort label-4142
SELECT + 3 + COUNT ( * ) + - - COUNT ( * ) col0
----
5

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4144
SELECT ALL CAST( + 60 AS SIGNED ) * + CASE + CAST( + - 46 AS SIGNED ) WHEN + + 68 / + 17 + + 7 + - + 64 + ( + 99 ) - 76 * + AVG ( ALL ( - + 10 ) ) * 22 THEN NULL WHEN SUM( - - 31 ) + 4 + - + MAX( - 83 ) * + - CASE - 26 WHEN + COUNT( * ) THEN + 50 * 48 + + ( + - COUNT( * ) ) + + - 93 ELSE - 22 - 19 - + + 23 END + + + 67 THEN - 92 * 58 WHEN - 89 THEN 32 WHEN - - 94 THEN + - AVG ( ALL - 17 ) ELSE 71 + - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL CAST ( + 60 AS INTEGER ) * + CASE + CAST ( + - 46 AS INTEGER ) WHEN + + 68 / + 17 + + 7 + - + 64 + ( + 99 ) - 76 * + AVG ( ALL ( - + 10 ) ) * 22 THEN NULL WHEN SUM ( - - 31 ) + 4 + - + MAX ( - 83 ) * + - CASE - 26 WHEN + COUNT ( * ) THEN + 50 * 48 + + ( + - COUNT ( * ) ) + + - 93 ELSE - 22 - 19 - + + 23 END + + + 67 THEN - 92 * 58 WHEN - 89 THEN 32 WHEN - - 94 THEN + - AVG ( ALL - 17 ) ELSE 71 + - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT DISTINCT NULLIF ( + + COALESCE ( + - COUNT( * ), 36 * + 13 + - - 82 - - - CASE + + 32 WHEN + 87 THEN + 8 ELSE + 84 END * - - 6 ), + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT NULLIF ( + + COALESCE ( + - COUNT ( * ), 36 * + 13 + - - 82 - - - CASE + + 32 WHEN + 87 THEN + 8 ELSE + 84 END * - - 6 ), + - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT 96 * 39 * + COUNT( * )
----
3744

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT 96 * 39 * + COUNT ( * )
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL NULLIF ( + + 43, + + COUNT( * ) * 51 )
----
43

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL NULLIF ( + + 43, + + COUNT ( * ) * 51 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT + 26 + + ( - - COUNT( 70 ) )
----
27

skipif mysql # not compatible
query I rowsort label-4148
SELECT + 26 + + ( - - COUNT ( 70 ) )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4149
SELECT - 67 AS col2, CAST( - + 41 AS SIGNED ) + - 20 AS col1
----
-67
-61

skipif mysql # not compatible
query II rowsort label-4149
SELECT - 67 AS col2, CAST ( - + 41 AS INTEGER ) + - 20 AS col1
----
-67
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4150
SELECT DISTINCT MAX( - 17 ) AS col0, NULLIF ( 5, + COALESCE ( + NULLIF ( 23, - 77 * - CASE SUM( 73 ) WHEN - 96 THEN - ( - 15 ) WHEN 19 THEN NULL ELSE + COUNT( * ) * + - 47 * - ( + + MAX( + - 84 ) ) + - 16 + + 80 END ), - 9 * 55 * + - 39 - + 18 ) * - 90 - - + 55 ) * + 38
----
-17
190

skipif mysql # not compatible
query II rowsort label-4150
SELECT DISTINCT MAX ( - 17 ) AS col0, NULLIF ( 5, + COALESCE ( + NULLIF ( 23, - 77 * - CASE SUM ( 73 ) WHEN - 96 THEN - ( - 15 ) WHEN 19 THEN NULL ELSE + COUNT ( * ) * + - 47 * - ( + + MAX ( + - 84 ) ) + - 16 + + 80 END ), - 9 * 55 * + - 39 - + 18 ) * - 90 - - + 55 ) * + 38
----
-17
190

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4151
SELECT + 90 + + 2 - + - 78 * + - 27 AS col2, - CAST( NULL AS SIGNED ) AS col2
----
-2014
NULL

skipif mysql # not compatible
query II rowsort label-4151
SELECT + 90 + + 2 - + - 78 * + - 27 AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
-2014
NULL

query II rowsort
SELECT - 72 - + 28 AS col0, 47
----
-100
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL + COUNT( * ) + + 82 - + 23
----
60

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL + COUNT ( * ) + + 82 - + 23
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4154
SELECT MIN( - 64 ) DIV - COUNT( * ) + + ( + - 9 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4154
SELECT MIN ( - 64 ) / - COUNT ( * ) + + ( + - 9 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4155
SELECT DISTINCT + 10 * - - 32, 37 * - COUNT( ALL 83 ) AS col1
----
320
-37

skipif mysql # not compatible
query II rowsort label-4155
SELECT DISTINCT + 10 * - - 32, 37 * - COUNT ( ALL 83 ) AS col1
----
320
-37

query II rowsort
SELECT DISTINCT 35 AS col1, 9 * 6 col2
----
35
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT + 95 + + + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT + 95 + + + COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ( + 85 ) * - - CASE + COUNT( * ) WHEN 42 * - 71 THEN - - COUNT( * ) END + - + 26 + + - 0 / + - COUNT( * ) * + 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT ( + 85 ) * - - CASE + COUNT ( * ) WHEN 42 * - 71 THEN - - COUNT ( * ) END + - + 26 + + - 0 / + - COUNT ( * ) * + 62 col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) + + 92 + + 31 * + - COALESCE ( 81, + 70 * + 61 / - AVG ( + - 29 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) + + 92 + + 31 * + - COALESCE ( 81, + 70 * + 61 / - AVG ( + - 29 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4161
SELECT + 27 * - MIN( ALL - 35 ) * - COUNT( * ) * - - 68 + 58 + 89 AS col0, 15 DIV + 26, 53 AS col1
----
-64113
0
53

skipif mysql # not compatible
query III rowsort label-4161
SELECT + 27 * - MIN ( ALL - 35 ) * - COUNT ( * ) * - - 68 + 58 + 89 AS col0, 15 / + 26, 53 AS col1
----
-64113
0
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT ALL - - SUM( DISTINCT - 23 ) AS col1, ( 52 ) col0
----
-23
52

skipif mysql # not compatible
query II rowsort label-4162
SELECT ALL - - SUM ( DISTINCT - 23 ) AS col1, ( 52 ) col0
----
-23
52

onlyif mysql # aggregate syntax: 
query II rowsort label-4163
SELECT ALL - COUNT( * ) AS col1, MAX( + 85 ) * + 13 + + 32 * - 21 + 41 + - + ( - + COUNT( * ) ) + + - 3 * - 34
----
-1
577

skipif mysql # not compatible
query II rowsort label-4163
SELECT ALL - COUNT ( * ) AS col1, MAX ( + 85 ) * + 13 + + 32 * - 21 + 41 + - + ( - + COUNT ( * ) ) + + - 3 * - 34
----
-1
577

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT + 10 + - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-4164
SELECT + 10 + - COUNT ( * )
----
9

query I rowsort
SELECT 27 * - 16 * 91 * + + 3 + + 29
----
-117907

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT ALL - - MAX( - 70 ) col0
----
-70

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL - - MAX ( - 70 ) col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT ALL - - NULLIF ( + 33, - COUNT( * ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL - - NULLIF ( + 33, - COUNT ( * ) ) AS col0
----
33

query III rowsort
SELECT ALL - + 16, 50 AS col2, - 66 AS col2
----
-16
50
-66

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

skipif mysql # not compatible
query I rowsort label-4169
SELECT - 88 * 66 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4170
SELECT + CASE - - COUNT( * ) WHEN 56 THEN NULL ELSE + CAST( NULL AS DECIMAL ) - - 98 + - 5 END + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT + CASE - - COUNT ( * ) WHEN 56 THEN NULL ELSE + CAST ( NULL AS REAL ) - - 98 + - 5 END + - 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ALL + 86 - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL + 86 - COUNT ( * )
----
85

query I rowsort
SELECT DISTINCT - 28 * + + 85 + + 82
----
-2298

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT COALESCE ( + + 71, - 66 + + CASE + + 87 WHEN + 51 THEN 13 END * + NULLIF ( - 51, 0 * + 45 * + - 4 DIV 71 ) DIV - ( - 32 ) + + 4 ) DIV 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4173
SELECT COALESCE ( + + 71, - 66 + + CASE + + 87 WHEN + 51 THEN 13 END * + NULLIF ( - 51, 0 * + 45 * + - 4 / 71 ) / - ( - 32 ) + + 4 ) / 80 AS col2
----
0

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

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

query I rowsort
SELECT - 66 + + - 40
----
-106

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

skipif mysql # not compatible
query I rowsort label-4176
SELECT 48 / + 98
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4177
SELECT DISTINCT 85 DIV + + SUM( - - 77 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT 85 / + + SUM ( - - 77 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT MAX( - 75 ) + + ( + 49 ) + + + 72 - - 65
----
111

skipif mysql # not compatible
query I rowsort label-4178
SELECT MAX ( - 75 ) + + ( + 49 ) + + + 72 - - 65
----
111

query I rowsort
SELECT DISTINCT 43 + - - 51
----
94

query I rowsort
SELECT 8 + 56
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4181
SELECT ALL 78 + 16 * - CAST( NULL AS SIGNED ) AS col2, - 75 DIV - + 5
----
NULL
15

skipif mysql # not compatible
query II rowsort label-4181
SELECT ALL 78 + 16 * - CAST ( NULL AS INTEGER ) AS col2, - 75 / - + 5
----
NULL
15

query I rowsort
SELECT ALL 48 + + 17 + - 68 * - - 48 col1
----
-3199

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT DISTINCT 7 + + 4 - - 82 + - 99 DIV - + 31 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT 7 + + 4 - - 82 + - 99 / - + 31 AS col2
----
96

query I rowsort
SELECT ALL 30 + + 2 * + - 81 - + 2
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT - 81 * - 82 + 42 * + - COUNT( 69 ) * - COUNT( * ) AS col0
----
6684

skipif mysql # not compatible
query I rowsort label-4185
SELECT - 81 * - 82 + 42 * + - COUNT ( 69 ) * - COUNT ( * ) AS col0
----
6684

query I rowsort
SELECT - 25 - + 80 AS col0
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4187
SELECT - - NULLIF ( - + COUNT( * ), - CAST( 63 AS SIGNED ) + - 41 ) * + + ( + + COUNT( * ) ) + 31 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4187
SELECT - - NULLIF ( - + COUNT ( * ), - CAST ( 63 AS INTEGER ) + - 41 ) * + + ( + + COUNT ( * ) ) + 31 AS col2
----
30

query I rowsort
SELECT + 47 * 90 + + + 91 AS col1
----
4321

onlyif mysql # aggregate syntax: 
query III rowsort label-4189
SELECT DISTINCT COUNT( * ) - + 58 AS col1, + 3, + 0 AS col2
----
-57
3
0

skipif mysql # not compatible
query III rowsort label-4189
SELECT DISTINCT COUNT ( * ) - + 58 AS col1, + 3, + 0 AS col2
----
-57
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL - CASE - 6 WHEN + MIN( ALL + 74 ) THEN + 30 WHEN + + 38 THEN NULL WHEN COUNT( * ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL - CASE - 6 WHEN + MIN ( ALL + 74 ) THEN + 30 WHEN + + 38 THEN NULL WHEN COUNT ( * ) THEN NULL END col0
----
NULL

query II rowsort
SELECT ALL - 90 * + 80 AS col2, 74
----
-7200
74

query I rowsort
SELECT DISTINCT - 32 * 95 + + + 56 col1
----
-2984

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT COUNT( * ) - - - COALESCE ( + - 81, - 93, + 12 ) + 13 * + 87 AS col0
----
1213

skipif mysql # not compatible
query I rowsort label-4193
SELECT COUNT ( * ) - - - COALESCE ( + - 81, - 93, + 12 ) + 13 * + 87 AS col0
----
1213

onlyif mysql # aggregate syntax: 
query II rowsort label-4194
SELECT 11 - + 60 AS col0, 85 + + 56 + - - COUNT( * ) AS col0
----
-49
142

skipif mysql # not compatible
query II rowsort label-4194
SELECT 11 - + 60 AS col0, 85 + + 56 + - - COUNT ( * ) AS col0
----
-49
142

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4195
SELECT ALL CAST( + - 47 AS SIGNED ) + + 67 AS col2, 70 + + 63 AS col1
----
20
133

skipif mysql # not compatible
query II rowsort label-4195
SELECT ALL CAST ( + - 47 AS INTEGER ) + + 67 AS col2, 70 + + 63 AS col1
----
20
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT COUNT( * ) + + 19
----
20

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT COUNT ( * ) + + 19
----
20

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4198
SELECT 64 * + + COALESCE ( + 61, - 45 ), COUNT( * ) * + COUNT( * ) col0
----
3904
1

skipif mysql # not compatible
query II rowsort label-4198
SELECT 64 * + + COALESCE ( + 61, - 45 ), COUNT ( * ) * + COUNT ( * ) col0
----
3904
1

query I rowsort
SELECT DISTINCT - NULLIF ( + 61, + 18 ) + 99 AS col0
----
38

query I rowsort
SELECT ALL - ( 74 ) AS col0
----
-74

query II rowsort
SELECT DISTINCT - 18 + - 14 * + 78 AS col2, - 19 AS col1
----
-1110
-19

query I rowsort
SELECT DISTINCT NULLIF ( - 24, + 46 + 61 ) + - 30 AS col0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4203
SELECT 83 DIV 36 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4203
SELECT 83 / 36 AS col0
----
2

query I rowsort
SELECT ALL + 0 + + 48
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4205
SELECT 54 + + 9 + COUNT( * ), + 89 + 81 AS col0
----
64
170

skipif mysql # not compatible
query II rowsort label-4205
SELECT 54 + + 9 + COUNT ( * ), + 89 + 81 AS col0
----
64
170

query II rowsort
SELECT - 5 AS col0, 58 AS col0
----
-5
58

query I rowsort
SELECT 63 + 63
----
126

query II rowsort
SELECT 54, + 31 AS col1
----
54
31

query I rowsort
SELECT DISTINCT - 28 + - + 80 AS col0
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4210
SELECT 35, CAST( SUM( ALL + 40 ) AS SIGNED ) AS col0
----
35
40

skipif mysql # not compatible
query II rowsort label-4210
SELECT 35, CAST ( SUM ( ALL + 40 ) AS INTEGER ) AS col0
----
35
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT DISTINCT + 83 + + SUM( + 12 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT + 83 + + SUM ( + 12 ) AS col0
----
95

query I rowsort
SELECT - ( + 10 ) * - + 51 AS col2
----
510

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT ALL NULLIF ( 8, - + 46 ) DIV - 13 * + - 93
----
0

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL NULLIF ( 8, - + 46 ) / - 13 * + - 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4214
SELECT - CAST( NULL AS SIGNED ) + - MAX( - 64 ) AS col0, - COUNT( * ) * - 24 col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-4214
SELECT - CAST ( NULL AS INTEGER ) + - MAX ( - 64 ) AS col0, - COUNT ( * ) * - 24 col1
----
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL + 65 - - 45 - - 82 - 71 * 1 - CASE WHEN ( NULL ) IS NULL THEN - COUNT( + 19 ) ELSE 19 * 40 + + 65 END * + 96 + + 12
----
229

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL + 65 - - 45 - - 82 - 71 * 1 - CASE WHEN ( NULL ) IS NULL THEN - COUNT ( + 19 ) ELSE 19 * 40 + + 65 END * + 96 + + 12
----
229

query I rowsort
SELECT ALL NULLIF ( ( + 35 ), - ( + 40 ) ) AS col0
----
35

query I rowsort
SELECT ALL 24 - - 94 AS col1
----
118

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

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

query II rowsort
SELECT 16 AS col2, + 78 AS col0
----
16
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4220
SELECT + + MAX( 93 ) - + - COUNT( * ) AS col0, 80
----
94
80

skipif mysql # not compatible
query II rowsort label-4220
SELECT + + MAX ( 93 ) - + - COUNT ( * ) AS col0, 80
----
94
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT + 23 + + 82 * + 21 + + - COUNT( * )
----
1744

skipif mysql # not compatible
query I rowsort label-4221
SELECT + 23 + + 82 * + 21 + + - COUNT ( * )
----
1744

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT - + CASE + - 36 WHEN COUNT( * ) * SUM( DISTINCT 37 ) THEN NULL ELSE 30 * 2 + + 29 + - + 90 * - 97 - 42 + + 92 END AS col0
----
-8869

skipif mysql # not compatible
query I rowsort label-4222
SELECT - + CASE + - 36 WHEN COUNT ( * ) * SUM ( DISTINCT 37 ) THEN NULL ELSE 30 * 2 + + 29 + - + 90 * - 97 - 42 + + 92 END AS col0
----
-8869

query II rowsort
SELECT 53 AS col0, + 69 AS col0
----
53
69

query I rowsort
SELECT ALL + - 50 * COALESCE ( + 49, + + 91 + - + ( 26 ) ) AS col2
----
-2450

query II rowsort
SELECT DISTINCT - 47, + 76 + + 35 AS col2
----
-47
111

query I rowsort
SELECT ALL 15 * - COALESCE ( + 60, 74 ) + 43 AS col1
----
-857

query I rowsort
SELECT DISTINCT + ( + 4 ) AS col2
----
4

query II rowsort
SELECT + 30 AS col1, + 83 AS col2
----
30
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT + - 47 + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-4229
SELECT + - 47 + COUNT ( * )
----
-46

query II rowsort
SELECT + + 90, + 45 AS col2
----
90
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT ALL + ( - CASE 26 WHEN - + 39 THEN 29 - - + 72 + - 12 WHEN CAST( - 85 AS SIGNED ) * + - 39 - 19 THEN NULL ELSE NULL END ) / 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL + ( - CASE 26 WHEN - + 39 THEN 29 - - + 72 + - 12 WHEN CAST ( - 85 AS INTEGER ) * + - 39 - 19 THEN NULL ELSE NULL END ) / 96
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT + + 72 DIV + 15 + + + 24 - - + 72 DIV 55
----
29

skipif mysql # not compatible
query I rowsort label-4232
SELECT + + 72 / + 15 + + + 24 - - + 72 / 55
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT - + 67 * MIN( DISTINCT 35 ) AS col0
----
-2345

skipif mysql # not compatible
query I rowsort label-4233
SELECT - + 67 * MIN ( DISTINCT 35 ) AS col0
----
-2345

query I rowsort
SELECT DISTINCT + 46 * 2 * 24 + 99 AS col1
----
2307

query I rowsort
SELECT DISTINCT 74 * + + 46 * - - 31
----
105524

query I rowsort
SELECT ALL 45 * - ( + 96 ) + - 48 AS col0
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT + CASE + NULLIF ( 75, + 86 ) WHEN - COUNT( * ) - MIN( DISTINCT - + 80 ) * - 65 * + 45 THEN 36 / - - 31 * 56 * + 10 * - - 52 + - + COUNT( * ) + + - 37 / 22 * 15 * + 73 WHEN - 97 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT + CASE + NULLIF ( 75, + 86 ) WHEN - COUNT ( * ) - MIN ( DISTINCT - + 80 ) * - 65 * + 45 THEN 36 / - - 31 * 56 * + 10 * - - 52 + - + COUNT ( * ) + + - 37 / 22 * 15 * + 73 WHEN - 97 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 64 * + 31 + + COALESCE ( + 87, - 28 ) AS col1
----
2071

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT + COUNT( - 66 ) * + COUNT( * ) + - 16 * + - 56 AS col2
----
897

skipif mysql # not compatible
query I rowsort label-4239
SELECT + COUNT ( - 66 ) * + COUNT ( * ) + - 16 * + - 56 AS col2
----
897

query I rowsort
SELECT DISTINCT COALESCE ( - 71, ( - 11 ) ) AS col0
----
-71

query I rowsort
SELECT ALL + 94 * + 18 + + 86 AS col1
----
1778

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4242
SELECT DISTINCT NULLIF ( - - COUNT( * ), + 23 + 12 / + 38 + - ( + CAST( 87 AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT NULLIF ( - - COUNT ( * ), + 23 + 12 / + 38 + - ( + CAST ( 87 AS INTEGER ) ) )
----
1

query I rowsort
SELECT ALL + 70 * - CASE + - 52 WHEN 35 THEN 88 * - 38 * ( - 4 ) * + 82 + 89 + + 70 ELSE 83 END * + 40
----
-232400

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT - 65 * - COUNT( - 31 )
----
65

skipif mysql # not compatible
query I rowsort label-4244
SELECT - 65 * - COUNT ( - 31 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT - SUM( ALL + 13 ) + + - 71 + COUNT( * ) * MIN( ALL 67 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4245
SELECT - SUM ( ALL + 13 ) + + - 71 + COUNT ( * ) * MIN ( ALL 67 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT + + COUNT( * ) + + 60 * + - 29 AS col1
----
-1739

skipif mysql # not compatible
query I rowsort label-4246
SELECT + + COUNT ( * ) + + 60 * + - 29 AS col1
----
-1739

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4247
SELECT - - 45 * COALESCE ( + - ( - + CAST( - + 17 AS SIGNED ) ), - 60 )
----
-765

skipif mysql # not compatible
query I rowsort label-4247
SELECT - - 45 * COALESCE ( + - ( - + CAST ( - + 17 AS INTEGER ) ), - 60 )
----
-765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4248
SELECT ALL CAST( - ( 90 ) AS SIGNED ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL CAST ( - ( 90 ) AS INTEGER ) AS col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4249
SELECT ALL - - 10 DIV - 21
----
0

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL - - 10 / - 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - SUM( DISTINCT 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-4250
SELECT - SUM ( DISTINCT 19 ) AS col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-4251
SELECT + + 62 DIV + + 91
----
0

skipif mysql # not compatible
query I rowsort label-4251
SELECT + + 62 / + + 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4252
SELECT ALL + 98 + - 15 AS col0, CAST( NULL AS SIGNED ) AS col1
----
83
NULL

skipif mysql # not compatible
query II rowsort label-4252
SELECT ALL + 98 + - 15 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT + COALESCE ( + 5, COUNT( * ) )
----
5

skipif mysql # not compatible
query I rowsort label-4253
SELECT + COALESCE ( + 5, COUNT ( * ) )
----
5

query I rowsort
SELECT - + 18 + + 79 AS col2
----
61

query I rowsort
SELECT - 39 * + 54 + + ( - + 32 ) * - + 21 AS col0
----
-1434

query I rowsort
SELECT DISTINCT 97 / CASE + ( - - 97 ) WHEN + - 99 * - - 79 - - 44 * + 12 THEN 31 END * 43 - 19 + + + AVG ( + 82 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4257
SELECT ALL COALESCE ( + 18, + COALESCE ( + CASE - 25 WHEN - 15 THEN COALESCE ( + 50, - 88 ) END, + 36 * - + 69 - + 27 * + 58 / - ( + ( - 82 ) ) * + 14 - + 13 - + AVG ( ALL - 26 ) ) * + + 91 + + SUM( + 10 ), - 15 * + 51 - + 45 - - 54 / 74 ) / 11 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL COALESCE ( + 18, + COALESCE ( + CASE - 25 WHEN - 15 THEN COALESCE ( + 50, - 88 ) END, + 36 * - + 69 - + 27 * + 58 / - ( + ( - 82 ) ) * + 14 - + 13 - + AVG ( ALL - 26 ) ) * + + 91 + + SUM ( + 10 ), - 15 * + 51 - + 45 - - 54 / 74 ) / 11 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + NULLIF ( 54, + 76 ) AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4259
SELECT DISTINCT 20 * + + COUNT( * ) DIV + - 47
----
0

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT 20 * + + COUNT ( * ) / + - 47
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4260
SELECT ALL 32 - - 71 + - + COUNT( * ) + + 67 * - - ( - 53 ) + - 87 DIV + 52 AS col1
----
-3450

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL 32 - - 71 + - + COUNT ( * ) + + 67 * - - ( - 53 ) + - 87 / + 52 AS col1
----
-3450

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

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

query I rowsort
SELECT ALL 55 * 96 AS col2
----
5280

query I rowsort
SELECT DISTINCT 84 * + + 63 AS col2
----
5292

query II rowsort
SELECT DISTINCT - 40 AS col1, + 85 + 13 AS col0
----
-40
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT 92 DIV + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4265
SELECT 92 / + COUNT ( * ) AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4266
SELECT 27 DIV - ( - - 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-4266
SELECT 27 / - ( - - 24 )
----
-1

query I rowsort
SELECT 98 + + 63 * + 1 - - + 87
----
248

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

skipif mysql # not compatible
query I rowsort label-4268
SELECT CAST ( NULL AS INTEGER ) + + - 88 col2
----
NULL

query I rowsort
SELECT 23 + 14 AS col1
----
37

query I rowsort
SELECT 27 * 36 AS col2
----
972

query I rowsort
SELECT 33 + + 83 AS col2
----
116

query I rowsort
SELECT ALL + 3 * + ( + 11 ) col1
----
33

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

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT + COUNT ( * ) + - 53 AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4274
SELECT NULLIF ( + 33, 58 DIV 85 ) + MIN( ALL 96 ) DIV COUNT( * ) col0
----
129

skipif mysql # not compatible
query I rowsort label-4274
SELECT NULLIF ( + 33, 58 / 85 ) + MIN ( ALL 96 ) / COUNT ( * ) col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT 17 * + COUNT( + 57 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4275
SELECT 17 * + COUNT ( + 57 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT 52 + + MIN( + 35 ) * - 72
----
-2468

skipif mysql # not compatible
query I rowsort label-4276
SELECT 52 + + MIN ( + 35 ) * - 72
----
-2468

onlyif mysql # DIV for integer division: 
query I rowsort label-4277
SELECT 23 + + 53 DIV 70
----
23

skipif mysql # not compatible
query I rowsort label-4277
SELECT 23 + + 53 / 70
----
23

query I rowsort
SELECT 32 + - 47 AS col1
----
-15

query I rowsort
SELECT 42 * 93 AS col2
----
3906

query I rowsort
SELECT 77 + 90 col0
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL - COALESCE ( 11, 74, + COALESCE ( 58, CASE CASE - 28 WHEN + COUNT( * ) * COUNT( ALL + 62 ) - 99 THEN NULL ELSE + 32 END WHEN 59 THEN 46 WHEN 99 + SUM( 19 ) THEN NULL ELSE 68 END + COUNT( DISTINCT 92 ) ) * - 56 ) * 55
----
-605

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL - COALESCE ( 11, 74, + COALESCE ( 58, CASE CASE - 28 WHEN + COUNT ( * ) * COUNT ( ALL + 62 ) - 99 THEN NULL ELSE + 32 END WHEN 59 THEN 46 WHEN 99 + SUM ( 19 ) THEN NULL ELSE 68 END + COUNT ( DISTINCT 92 ) ) * - 56 ) * 55
----
-605

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT 58 + COUNT( * ) col2
----
59

skipif mysql # not compatible
query I rowsort label-4282
SELECT 58 + COUNT ( * ) col2
----
59

query I rowsort
SELECT DISTINCT + 32 + 53
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL 21 * COUNT( DISTINCT 11 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL 21 * COUNT ( DISTINCT 11 ) AS col0
----
21

query I rowsort
SELECT ALL + 14 + 81 * 57
----
4631

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT DISTINCT - 59 DIV 45 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT - 59 / 45 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT 93 * + ( CASE MIN( 12 ) WHEN + 40 THEN NULL WHEN ( - COUNT( * ) ) THEN NULL ELSE - 23 END * - 23 ) AS col2
----
49197

skipif mysql # not compatible
query I rowsort label-4287
SELECT 93 * + ( CASE MIN ( 12 ) WHEN + 40 THEN NULL WHEN ( - COUNT ( * ) ) THEN NULL ELSE - 23 END * - 23 ) AS col2
----
49197

query I rowsort
SELECT 64 + 32
----
96

query I rowsort
SELECT 67 * + 22
----
1474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4290
SELECT ( - 59 ) + 81 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT ( - 59 ) + 81 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT DISTINCT SUM( DISTINCT 43 ) * - MAX( - 71 ) AS col2
----
3053

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT SUM ( DISTINCT 43 ) * - MAX ( - 71 ) AS col2
----
3053

query I rowsort
SELECT ALL 14 - 10
----
4

query I rowsort
SELECT 92 * 34
----
3128

query I rowsort
SELECT DISTINCT - COALESCE ( 65, 47 + 41 )
----
-65

query I rowsort
SELECT DISTINCT - 69 * + 83 AS col2
----
-5727

query I rowsort
SELECT ALL 78 - + 33 * - 28
----
1002

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT 82 * - NULLIF ( + MAX( ALL ( - COALESCE ( + 97, - 66, 40 ) ) ), 39 )
----
7954

skipif mysql # not compatible
query I rowsort label-4297
SELECT 82 * - NULLIF ( + MAX ( ALL ( - COALESCE ( + 97, - 66, 40 ) ) ), 39 )
----
7954

query I rowsort
SELECT 18 * + ( 54 )
----
972

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT SUM( DISTINCT - 6 ) - 53
----
-59

skipif mysql # not compatible
query I rowsort label-4299
SELECT SUM ( DISTINCT - 6 ) - 53
----
-59

query I rowsort
SELECT - 36 * - 6 + 21 * 82 AS col0
----
1938

query I rowsort
SELECT 8 * + 47 AS col0
----
376

query I rowsort
SELECT 43 + 45 AS col2
----
88

query I rowsort
SELECT ALL 65 * 35
----
2275

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

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

query I rowsort
SELECT ALL - ( 90 ) * + 43 AS col0
----
-3870

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT DISTINCT 77 + 3 * + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT 77 + 3 * + COUNT ( * )
----
80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4308
SELECT ALL - CASE SUM( - 23 ) WHEN - AVG ( CAST( 95 AS SIGNED ) ) THEN NULL WHEN - 16 + 46 * 96 THEN + 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL - CASE SUM ( - 23 ) WHEN - AVG ( CAST ( 95 AS INTEGER ) ) THEN NULL WHEN - 16 + 46 * 96 THEN + 81 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT ALL + ( - 6 ) + + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL + ( - 6 ) + + COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4310
SELECT 63 DIV COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4310
SELECT 63 / COUNT ( * ) AS col2
----
63

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

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

query I rowsort
SELECT 93 + 82
----
175

query I rowsort
SELECT ALL COALESCE ( 71, - NULLIF ( + 34, + 41 - - 73 ) ) + + 84
----
155

query I rowsort
SELECT 40 + 26 * 44
----
1184

query I rowsort
SELECT DISTINCT - - 5 + - 89 AS col0
----
-84

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

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL + - COUNT ( * ) + - ( 98 ) AS col1
----
-99

query I rowsort
SELECT ALL - - ( 46 ) * 52
----
2392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4318
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( - 25 + 51 ) * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( - 25 + 51 ) * 51
----
NULL

query I rowsort
SELECT ALL + 30 + 85
----
115

query I rowsort
SELECT 11 * + ( + 44 )
----
484

query I rowsort
SELECT ALL - 55 + 38
----
-17

query I rowsort
SELECT ALL - + 38 * + 39
----
-1482

query I rowsort
SELECT ALL - 6 * - 28
----
168

query I rowsort
SELECT + 50 + + + 30
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT - 68 * + CASE 95 WHEN 21 - COUNT( * ) THEN + 39 * 9 + SUM( - ( 78 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT - 68 * + CASE 95 WHEN 21 - COUNT ( * ) THEN + 39 * 9 + SUM ( - ( 78 ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4326
SELECT 73 DIV - MIN( ( 75 ) ) * + 45 + + 75 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4326
SELECT 73 / - MIN ( ( 75 ) ) * + 45 + + 75 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL MAX( + 3 ) * 69 - + 22 AS col0
----
185

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL MAX ( + 3 ) * 69 - + 22 AS col0
----
185

query I rowsort
SELECT ALL + COALESCE ( + 31, 62 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL - 55 * + CASE + CASE 85 WHEN + COUNT( * ) + + 9 THEN - 48 * + COUNT( * ) - - 69 * - ( + 29 ) END WHEN 35 THEN NULL ELSE - 3 * - 46 + - 14 END AS col2
----
-6820

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - 55 * + CASE + CASE 85 WHEN + COUNT ( * ) + + 9 THEN - 48 * + COUNT ( * ) - - 69 * - ( + 29 ) END WHEN 35 THEN NULL ELSE - 3 * - 46 + - 14 END AS col2
----
-6820

onlyif mysql # DIV for integer division: 
query I rowsort label-4330
SELECT ALL - 10 DIV - - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL - 10 / - - 51 AS col1
----
0

query I rowsort
SELECT - 96 - - 1 + - 48 * - ( 50 * - 32 ) AS col1
----
-76895

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

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT COUNT ( DISTINCT - 10 ) * + 46 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT - 72 + + + 60 * - CASE 30 WHEN + 37 * 18 THEN 10 WHEN COUNT( DISTINCT - 98 ) * + 38 + - 22 THEN + 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT - 72 + + + 60 * - CASE 30 WHEN + 37 * 18 THEN 10 WHEN COUNT ( DISTINCT - 98 ) * + 38 + - 22 THEN + 27 END
----
NULL

query I rowsort
SELECT + 66 * - + 64
----
-4224

onlyif mysql # DIV for integer division: 
query I rowsort label-4335
SELECT - 54 DIV NULLIF ( - ( 77 ), - 84 + + 93 DIV NULLIF ( 61 * 36, - NULLIF ( 74, 95 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4335
SELECT - 54 / NULLIF ( - ( 77 ), - 84 + + 93 / NULLIF ( 61 * 36, - NULLIF ( 74, 95 ) ) )
----
0

query I rowsort
SELECT ALL + ( + CASE 6 WHEN - 61 THEN + 75 * + 37 + ( - 55 ) END )
----
NULL

query I rowsort
SELECT ALL 24 * 27 AS col2
----
648

query I rowsort
SELECT - 30 * + + 95
----
-2850

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4339
SELECT ALL - CASE + CAST( 56 AS DECIMAL ) WHEN SUM( 46 ) THEN CASE + 41 WHEN + 37 THEN NULL WHEN + 18 - + 39 THEN NULL ELSE - 4 END ELSE - 21 + 27 END * COUNT( + CAST( + 76 AS DECIMAL ) / 50 ) + - ( COUNT( * ) ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL - CASE + CAST ( 56 AS REAL ) WHEN SUM ( 46 ) THEN CASE + 41 WHEN + 37 THEN NULL WHEN + 18 - + 39 THEN NULL ELSE - 4 END ELSE - 21 + 27 END * COUNT ( + CAST ( + 76 AS REAL ) / 50 ) + - ( COUNT ( * ) ) col0
----
-7

query I rowsort
SELECT ALL - 92 * + 58 + 94 AS col0
----
-5242

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT + 9 * + - SUM( 89 ) + 55 * + 48
----
1839

skipif mysql # not compatible
query I rowsort label-4341
SELECT + 9 * + - SUM ( 89 ) + 55 * + 48
----
1839

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - COUNT( * ) + - 89 * 82
----
-7299

skipif mysql # not compatible
query I rowsort label-4342
SELECT - COUNT ( * ) + - 89 * 82
----
-7299

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT ALL ( 18 ) + - 34 DIV 73
----
18

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL ( 18 ) + - 34 / 73
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL + 95 + + COUNT( + 86 )
----
96

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL + 95 + + COUNT ( + 86 )
----
96

query I rowsort
SELECT + - 31 + - + 98 + + 8 AS col2
----
-121

query I rowsort
SELECT DISTINCT 33 * - 57 + - 52
----
-1933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4347
SELECT DISTINCT - - CAST( - COALESCE ( + ( NULLIF ( 21, + 50 ) ), 32 + COALESCE ( - NULLIF ( 8, + 82 * - 72 ), 50 * + 3 ) ) AS SIGNED ) + 90
----
69

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - - CAST ( - COALESCE ( + ( NULLIF ( 21, + 50 ) ), 32 + COALESCE ( - NULLIF ( 8, + 82 * - 72 ), 50 * + 3 ) ) AS INTEGER ) + 90
----
69

query I rowsort
SELECT DISTINCT 51 * + 67 + 12 * - 20
----
3177

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL MIN( 61 ) - + SUM( DISTINCT 16 ) col0
----
45

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL MIN ( 61 ) - + SUM ( DISTINCT 16 ) col0
----
45

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4351
SELECT + 78 DIV - - 92 * + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4351
SELECT + 78 / - - 92 * + 77 AS col2
----
0

query I rowsort
SELECT + 48 * - 60
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT - 68 * - - 69 - MAX( NULLIF ( + 99, 2 ) )
----
-4791

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT - 68 * - - 69 - MAX ( NULLIF ( + 99, 2 ) )
----
-4791

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4354
SELECT ALL COUNT( * ) * NULLIF ( + COALESCE ( 34, + 20 DIV - 99 + + COALESCE ( COUNT( * ), 59 ), 87, 58 + - COALESCE ( - ( - NULLIF ( 64, 48 ) ), + 79 * 55 + + 69 ) ), - 87 + 58 ) col2
----
34

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL COUNT ( * ) * NULLIF ( + COALESCE ( 34, + 20 / - 99 + + COALESCE ( COUNT ( * ), 59 ), 87, 58 + - COALESCE ( - ( - NULLIF ( 64, 48 ) ), + 79 * 55 + + 69 ) ), - 87 + 58 ) col2
----
34

query I rowsort
SELECT + 92 + 55
----
147

query I rowsort
SELECT - - 24 + 82 AS col1
----
106

query I rowsort
SELECT + - 13 * ( + 39 )
----
-507

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT ALL 38 - - - 25 * + - COUNT( * ) col1
----
63

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL 38 - - - 25 * + - COUNT ( * ) col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT + COUNT( * ) * 86 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4359
SELECT + COUNT ( * ) * 86 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL CASE - - COUNT( * ) WHEN 50 THEN - ( - 68 ) + + 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL CASE - - COUNT ( * ) WHEN 50 THEN - ( - 68 ) + + 32 END AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 90 ) * 28
----
-2520

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

skipif mysql # not compatible
query I rowsort label-4362
SELECT - 14 * - + 83 * - COUNT ( * ) * - ( - 99 ) AS col0
----
-115038

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

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

query I rowsort
SELECT + 2 + 30 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4365
SELECT CAST( NULL AS SIGNED ) AS col0, - 79 * CAST( + 50 AS SIGNED )
----
NULL
-3950

skipif mysql # not compatible
query II rowsort label-4365
SELECT CAST ( NULL AS INTEGER ) AS col0, - 79 * CAST ( + 50 AS INTEGER )
----
NULL
-3950

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + ( 54 ) + + + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-4366
SELECT + ( 54 ) + + + COUNT ( * )
----
55

query I rowsort
SELECT - 84 * 25 AS col0
----
-2100

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4369
SELECT ALL + 72, + 29 * + COUNT( * ) col1
----
72
29

skipif mysql # not compatible
query II rowsort label-4369
SELECT ALL + 72, + 29 * + COUNT ( * ) col1
----
72
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL CASE - + 5 WHEN ( + 88 ) THEN NULL WHEN + COALESCE ( - 89, ( 24 ) - + 33, 16 ) + + 33 THEN 5 * - 19 END / + SUM( - 61 * + ( - 12 ) ) + - COUNT( * ) * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL CASE - + 5 WHEN ( + 88 ) THEN NULL WHEN + COALESCE ( - 89, ( 24 ) - + 33, 16 ) + + 33 THEN 5 * - 19 END / + SUM ( - 61 * + ( - 12 ) ) + - COUNT ( * ) * 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT + 98 * + 47 + + COUNT( * )
----
4607

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT + 98 * + 47 + + COUNT ( * )
----
4607

query I rowsort
SELECT ALL - 26 * - - 29 + 14 * - 80 AS col1
----
-1874

query I rowsort
SELECT - 24 + 61 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT ALL - 48 * + - ( 55 ) * 51 + COUNT( * ) AS col0
----
134641

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL - 48 * + - ( 55 ) * 51 + COUNT ( * ) AS col0
----
134641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT + 12 * - CAST( 22 AS SIGNED ) col2
----
-264

skipif mysql # not compatible
query I rowsort label-4375
SELECT + 12 * - CAST ( 22 AS INTEGER ) col2
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4376
SELECT DISTINCT + 73 / 16 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT + 73 / 16 + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT - 47 * - COUNT( * ) + + 99 + + 48 AS col1
----
194

skipif mysql # not compatible
query I rowsort label-4378
SELECT - 47 * - COUNT ( * ) + + 99 + + 48 AS col1
----
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4379
SELECT + CASE 73 WHEN + MAX( 47 ) THEN - 65 WHEN + CAST( NULL AS SIGNED ) THEN - COALESCE ( 94, - COUNT( * ), + 75 ) / + CAST( - COALESCE ( 60, - 81, 65 * + NULLIF ( COUNT( * ), - 29 + + 93 ) ) * 42 - - 22 AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT + CASE 73 WHEN + MAX ( 47 ) THEN - 65 WHEN + CAST ( NULL AS INTEGER ) THEN - COALESCE ( 94, - COUNT ( * ), + 75 ) / + CAST ( - COALESCE ( 60, - 81, 65 * + NULLIF ( COUNT ( * ), - 29 + + 93 ) ) * 42 - - 22 AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT - - 35 DIV + + 90 - 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4380
SELECT - - 35 / + + 90 - 98 AS col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4381
SELECT + - 26 * - - CAST( - + 80 AS SIGNED ) + + 99
----
2179

skipif mysql # not compatible
query I rowsort label-4381
SELECT + - 26 * - - CAST ( - + 80 AS INTEGER ) + + 99
----
2179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4382
SELECT ALL 51 * + CASE - - 90 WHEN CAST( + 24 AS SIGNED ) THEN + CAST( - 50 AS SIGNED ) END + + COUNT( 27 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL 51 * + CASE - - 90 WHEN CAST ( + 24 AS INTEGER ) THEN + CAST ( - 50 AS INTEGER ) END + + COUNT ( 27 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 65 * - 50
----
3250

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL - COUNT( * ) * - + COUNT( + - 11 ) - + ( + COALESCE ( 62, + MIN( - 87 ) ) ) + 66
----
5

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL - COUNT ( * ) * - + COUNT ( + - 11 ) - + ( + COALESCE ( 62, + MIN ( - 87 ) ) ) + 66
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4385
SELECT - CAST( NULL AS SIGNED ) col2, COUNT( * ) * - 17 AS col0
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-4385
SELECT - CAST ( NULL AS INTEGER ) col2, COUNT ( * ) * - 17 AS col0
----
NULL
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4386
SELECT DISTINCT + - 13 * + + 97 - - 49 + + COUNT( * ) DIV 57
----
-1212

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT + - 13 * + + 97 - - 49 + + COUNT ( * ) / 57
----
-1212

query II rowsort
SELECT ALL 55, - ( - 94 ) AS col2
----
55
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4388
SELECT ALL - 61 AS col2, 24 * - 53 * MIN( - 12 * + 69 ) AS col2
----
-61
1053216

skipif mysql # not compatible
query II rowsort label-4388
SELECT ALL - 61 AS col2, 24 * - 53 * MIN ( - 12 * + 69 ) AS col2
----
-61
1053216

query I rowsort
SELECT DISTINCT + ( 8 ) * 6 + + 30 AS col1
----
78

query I rowsort
SELECT - + 8 - - - 16 * - 86 * 46 - 24 * + 50
----
62088

query II rowsort
SELECT ALL + 38, - 76 AS col1
----
38
-76

query I rowsort
SELECT DISTINCT - 80 - + - 20 col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + MAX( DISTINCT 32 )
----
32

skipif mysql # not compatible
query I rowsort label-4393
SELECT + MAX ( DISTINCT 32 )
----
32

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

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

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT - 89 / - 89 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 3 * - 20
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL NULLIF ( 3, - - 70 - + ( + 53 + COUNT( * ) ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL NULLIF ( 3, - - 70 - + ( + 53 + COUNT ( * ) ) ) AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4398
SELECT - 12 DIV + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4398
SELECT - 12 / + 75 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4399
SELECT DISTINCT + 37 DIV + 34, - 49 * - 92 AS col1
----
1
4508

skipif mysql # not compatible
query II rowsort label-4399
SELECT DISTINCT + 37 / + 34, - 49 * - 92 AS col1
----
1
4508

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT ALL ( - - 21 ) * 18 + + + MAX( ALL 37 )
----
415

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL ( - - 21 ) * 18 + + + MAX ( ALL 37 )
----
415

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

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

query I rowsort
SELECT ( + 47 ) * + - 58 * 89 * + 1 + 30 AS col2
----
-242584

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4403
SELECT 82 + - CAST( NULL AS SIGNED ), 94 AS col1
----
NULL
94

skipif mysql # not compatible
query II rowsort label-4403
SELECT 82 + - CAST ( NULL AS INTEGER ), 94 AS col1
----
NULL
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4404
SELECT COUNT( * ) * + + MAX( DISTINCT + 57 ) * - + CASE WHEN NOT - 53 IN ( COUNT( 60 ) * + 57 + + ( MAX( DISTINCT + 13 ) - CAST( - 5 AS DECIMAL ) ) ) THEN NULL ELSE 42 END / 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4404
SELECT COUNT ( * ) * + + MAX ( DISTINCT + 57 ) * - + CASE WHEN NOT - 53 IN ( COUNT ( 60 ) * + 57 + + ( MAX ( DISTINCT + 13 ) - CAST ( - 5 AS REAL ) ) ) THEN NULL ELSE 42 END / 3
----
NULL

query II rowsort
SELECT ALL 96 * 69, ( + CASE - 58 WHEN 99 * ( + 80 / + 28 ) THEN - 10 WHEN - 37 THEN NULL END ) + - 99 AS col2
----
6624
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT CASE COUNT( * ) WHEN + 25 THEN - + 16 * NULLIF ( - 7, 5 ) WHEN - COUNT( * ) * COUNT( * ) THEN NULL ELSE NULL END + 85 * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT CASE COUNT ( * ) WHEN + 25 THEN - + 16 * NULLIF ( - 7, 5 ) WHEN - COUNT ( * ) * COUNT ( * ) THEN NULL ELSE NULL END + 85 * 52
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT 98 DIV - ( + - 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4407
SELECT 98 / - ( + - 61 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4408
SELECT COUNT( * ) + + 10 * COALESCE ( - CASE - CAST( NULL AS SIGNED ) WHEN - 67 THEN NULL WHEN + 1 * 53 THEN + ( + 93 ) WHEN - 77 THEN NULL ELSE NULL END, - ( 87 ), - 85 * 62 ) * 1 AS col1
----
-869

skipif mysql # not compatible
query I rowsort label-4408
SELECT COUNT ( * ) + + 10 * COALESCE ( - CASE - CAST ( NULL AS INTEGER ) WHEN - 67 THEN NULL WHEN + 1 * 53 THEN + ( + 93 ) WHEN - 77 THEN NULL ELSE NULL END, - ( 87 ), - 85 * 62 ) * 1 AS col1
----
-869

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT DISTINCT 8 DIV + + 56
----
0

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT 8 / + + 56
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT ALL 19 + - 30 DIV 17
----
18

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL 19 + - 30 / 17
----
18

query I rowsort
SELECT ALL 42 + 89 - + - 6
----
137

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4412
SELECT 36 + + 16 DIV - - NULLIF ( 31, + 19 * - CAST( NULL AS SIGNED ) ) + 92 * 52 AS col2
----
4820

skipif mysql # not compatible
query I rowsort label-4412
SELECT 36 + + 16 / - - NULLIF ( 31, + 19 * - CAST ( NULL AS INTEGER ) ) + 92 * 52 AS col2
----
4820

query I rowsort
SELECT ALL ( - + 81 ) * + + 7
----
-567

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

skipif mysql # not compatible
query I rowsort label-4414
SELECT ( - + CAST ( + 75 AS INTEGER ) ) * - COUNT ( * )
----
75

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

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

query I rowsort
SELECT ALL 28 * - - 99
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT DISTINCT + 50 * - + 61 * + COUNT( * ) AS col1
----
-3050

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT + 50 * - + 61 * + COUNT ( * ) AS col1
----
-3050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4418
SELECT DISTINCT - + 23 DIV 55 DIV MAX( 19 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT - + 23 / 55 / MAX ( 19 ) AS col0
----
0

query I rowsort
SELECT + 47 + - 2 AS col0
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT + SUM( + 25 ) + + 62 * + 59 AS col2
----
3683

skipif mysql # not compatible
query I rowsort label-4421
SELECT + SUM ( + 25 ) + + 62 * + 59 AS col2
----
3683

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

skipif mysql # not compatible
query I rowsort label-4422
SELECT - CAST ( NULL AS INTEGER ) - + + 96 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4423
SELECT ALL - - 31 DIV - 55 AS col2, 32 * - 86
----
0
-2752

skipif mysql # not compatible
query II rowsort label-4423
SELECT ALL - - 31 / - 55 AS col2, 32 * - 86
----
0
-2752

query I rowsort
SELECT NULLIF ( + - 87, + 99 )
----
-87

query I rowsort
SELECT 27 * + 95
----
2565

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - 96 + 51 * - COUNT( * )
----
-147

skipif mysql # not compatible
query I rowsort label-4427
SELECT - 96 + 51 * - COUNT ( * )
----
-147

query I rowsort
SELECT - 1 * 87 * + - 84 * + + 22 - - 16 AS col0
----
160792

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL + COUNT( * ) * + - 69 * + 38
----
-2622

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + COUNT ( * ) * + - 69 * + 38
----
-2622

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT + 10 + - ( COUNT( * ) )
----
9

skipif mysql # not compatible
query I rowsort label-4430
SELECT + 10 + - ( COUNT ( * ) )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4431
SELECT ALL + + 52 * - 73, - COUNT( DISTINCT + 94 ) AS col1
----
-3796
-1

skipif mysql # not compatible
query II rowsort label-4431
SELECT ALL + + 52 * - 73, - COUNT ( DISTINCT + 94 ) AS col1
----
-3796
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT ALL + COUNT( DISTINCT - NULLIF ( + 27, + 66 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL + COUNT ( DISTINCT - NULLIF ( + 27, + 66 ) )
----
1

query I rowsort
SELECT 66 + - COALESCE ( + - 26, 20 + - 38 ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4434
SELECT COUNT( * ) + 64 * + CAST( + - 91 AS SIGNED ) AS col2
----
-5823

skipif mysql # not compatible
query I rowsort label-4434
SELECT COUNT ( * ) + 64 * + CAST ( + - 91 AS INTEGER ) AS col2
----
-5823

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4435
SELECT 15 col2, - CAST( - 35 AS SIGNED ) + + 61 AS col2
----
15
96

skipif mysql # not compatible
query II rowsort label-4435
SELECT 15 col2, - CAST ( - 35 AS INTEGER ) + + 61 AS col2
----
15
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4436
SELECT 21 + + CAST( NULL AS SIGNED ) - - 6 * - 58 * - + COUNT( DISTINCT 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4436
SELECT 21 + + CAST ( NULL AS INTEGER ) - - 6 * - 58 * - + COUNT ( DISTINCT 51 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT + 6 + - NULLIF ( COUNT( ALL 62 ), - 87 )
----
5

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT + 6 + - NULLIF ( COUNT ( ALL 62 ), - 87 )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4438
SELECT 28, + 82 + + - COUNT( - + 87 ) + COUNT( * ) AS col0
----
28
82

skipif mysql # not compatible
query II rowsort label-4438
SELECT 28, + 82 + + - COUNT ( - + 87 ) + COUNT ( * ) AS col0
----
28
82

query I rowsort
SELECT ( 70 ) + + 94 + - 1
----
163

query I rowsort
SELECT ALL - 16 + + - 62 + + - 13
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT DISTINCT - COUNT( * ) + - - ( 58 ) * + 62
----
3595

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT - COUNT ( * ) + - - ( 58 ) * + 62
----
3595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT ALL NULLIF ( + + 96, + COALESCE ( - - 78, CAST( NULL AS SIGNED ) * + 2, + 45 ) ) + + 37 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL NULLIF ( + + 96, + COALESCE ( - - 78, CAST ( NULL AS INTEGER ) * + 2, + 45 ) ) + + 37 AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT 27 * COUNT( DISTINCT - 30 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4443
SELECT 27 * COUNT ( DISTINCT - 30 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT DISTINCT SUM( ALL 20 )
----
20

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT SUM ( ALL 20 )
----
20

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

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

query II rowsort
SELECT + 65, 93 * 70 + + 57 - - 72 * - 77 AS col0
----
65
1023

onlyif mysql # DIV for integer division: 
query II rowsort label-4447
SELECT 46 DIV + - ( 92 ), 51 + - - ( - 97 ) AS col0
----
0
-46

skipif mysql # not compatible
query II rowsort label-4447
SELECT 46 / + - ( 92 ), 51 + - - ( - 97 ) AS col0
----
0
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT 17 * - - COUNT( * ) col1
----
17

skipif mysql # not compatible
query I rowsort label-4448
SELECT 17 * - - COUNT ( * ) col1
----
17

query I rowsort
SELECT 23 + + 72 AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4450
SELECT 63 * COALESCE ( + 1, + 49 - - + 53 - 87 DIV + COUNT( 53 + 29 ) ) + 46 * + 95 AS col0
----
4433

skipif mysql # not compatible
query I rowsort label-4450
SELECT 63 * COALESCE ( + 1, + 49 - - + 53 - 87 / + COUNT ( 53 + 29 ) ) + 46 * + 95 AS col0
----
4433

query I rowsort
SELECT - 42 * 58 AS col2
----
-2436

query I rowsort
SELECT ALL - + NULLIF ( + 68, 42 ) AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4453
SELECT ALL + 7 DIV + 19
----
0

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + 7 / + 19
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4454
SELECT + + 89 DIV - 68 + - COUNT( * ) - - - 76 - 19 DIV ( + 5 - - MIN( DISTINCT + 38 + 34 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-4454
SELECT + + 89 / - 68 + - COUNT ( * ) - - - 76 - 19 / ( + 5 - - MIN ( DISTINCT + 38 + 34 ) )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT DISTINCT - 32 * - + 49 - + CASE COUNT( * ) WHEN - + 5 * + 86 THEN NULL WHEN + 84 THEN NULL ELSE ( 23 ) END - - 88 * + 71
----
7793

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT - 32 * - + 49 - + CASE COUNT ( * ) WHEN - + 5 * + 86 THEN NULL WHEN + 84 THEN NULL ELSE ( 23 ) END - - 88 * + 71
----
7793

query I rowsort
SELECT + 78 + - - 75
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT DISTINCT 83 * + + COUNT( * ) + + - ( + ( - 87 ) ) - + COUNT( * ) * - 63 AS col0
----
233

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT 83 * + + COUNT ( * ) + + - ( + ( - 87 ) ) - + COUNT ( * ) * - 63 AS col0
----
233

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT + + 74 * + 93 + - 64 * CAST( NULL AS SIGNED ) + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT + + 74 * + 93 + - 64 * CAST ( NULL AS INTEGER ) + 70
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4460
SELECT + CASE 94 WHEN - AVG ( - + CAST( NULL AS SIGNED ) ) * 52 + 18 * 39 THEN CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT + CASE 94 WHEN - AVG ( - + CAST ( NULL AS INTEGER ) ) * 52 + 18 * 39 THEN CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4461
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( 42 )
----
NULL

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

query I rowsort
SELECT ALL 88 * + 81 AS col2
----
7128

query I rowsort
SELECT - 12 * + 88 + - 31 + ( + 28 ) + + ( + 67 )
----
-992

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT DISTINCT - 89 * + + 46 * + 2 * + 98 * COUNT( * ) AS col0
----
-802424

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT - 89 * + + 46 * + 2 * + 98 * COUNT ( * ) AS col0
----
-802424

query I rowsort
SELECT ALL + + NULLIF ( - 82, ( + 20 ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT - COALESCE ( 92, - MAX( ALL 18 ) - 77 * + 84 )
----
-92

skipif mysql # not compatible
query I rowsort label-4467
SELECT - COALESCE ( 92, - MAX ( ALL 18 ) - 77 * + 84 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4468
SELECT ALL + 47 AS col1, + 57 + + CAST( NULL AS SIGNED )
----
47
NULL

skipif mysql # not compatible
query II rowsort label-4468
SELECT ALL + 47 AS col1, + 57 + + CAST ( NULL AS INTEGER )
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT DISTINCT MAX( ALL + - 76 ) + + 7 + - - 73 + NULLIF ( 3, - 96 ) + 84 * + ( 61 ) AS col0
----
5131

skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT MAX ( ALL + - 76 ) + + 7 + - - 73 + NULLIF ( 3, - 96 ) + 84 * + ( 61 ) AS col0
----
5131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4470
SELECT + - 6 / - CASE + + 35 WHEN - ( + - CAST( NULL AS SIGNED ) ) + - 63 THEN + COUNT( * ) WHEN - 81 * - 5 + 56 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4470
SELECT + - 6 / - CASE + + 35 WHEN - ( + - CAST ( NULL AS INTEGER ) ) + - 63 THEN + COUNT ( * ) WHEN - 81 * - 5 + 56 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT + 85 - 88 + + ( - - 87 )
----
84

query I rowsort
SELECT - 50 * + - 36
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT ALL - 65 + CASE + + 12 WHEN + - 29 THEN NULL WHEN + 34 THEN + - 68 * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL - 65 + CASE + + 12 WHEN + - 29 THEN NULL WHEN + 34 THEN + - 68 * COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4475
SELECT - 38 DIV 81 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4475
SELECT - 38 / 81 * - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - 14 * - - 66
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL NULLIF ( + - COUNT( ALL - 42 ), - - 67 / - 92 ) + - 46 col1
----
-47

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL NULLIF ( + - COUNT ( ALL - 42 ), - - 67 / - 92 ) + - 46 col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL + 30 + + - 56 * + 46 * - COUNT( * ) + + 29
----
2635

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + 30 + + - 56 * + 46 * - COUNT ( * ) + + 29
----
2635

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4479
SELECT DISTINCT - COALESCE ( COUNT( * ), + COUNT( * ) * + NULLIF ( + 89, - + 46 ) DIV COUNT( * ) + 65 ) * NULLIF ( ( 14 ) + 62, 77 )
----
-76

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT - COALESCE ( COUNT ( * ), + COUNT ( * ) * + NULLIF ( + 89, - + 46 ) / COUNT ( * ) + 65 ) * NULLIF ( ( 14 ) + 62, 77 )
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-4480
SELECT DISTINCT + 48 + - COALESCE ( 81, - - 6 DIV - ( 89 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT + 48 + - COALESCE ( 81, - - 6 / - ( 89 ) )
----
-33

query I rowsort
SELECT DISTINCT - 85 * ( + + 20 ) AS col2
----
-1700

query I rowsort
SELECT - 72 + + - ( - 48 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4483
SELECT - 66, COALESCE ( - 13, + 64 * + 64 - + 24 + + 40 / MIN( - 13 + + 16 / + 93 ) ) - - CAST( - 17 + + 51 AS SIGNED ) * + CASE 68 * + 17 WHEN ( + ( 15 ) ) THEN + ( - 0 ) END AS col1
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-4483
SELECT - 66, COALESCE ( - 13, + 64 * + 64 - + 24 + + 40 / MIN ( - 13 + + 16 / + 93 ) ) - - CAST ( - 17 + + 51 AS INTEGER ) * + CASE 68 * + 17 WHEN ( + ( 15 ) ) THEN + ( - 0 ) END AS col1
----
-66
NULL

query II rowsort
SELECT - 48 + + 38, - ( + - 30 ) col0
----
-10
30

query I rowsort
SELECT + 54 * - - ( - 79 )
----
-4266

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT + SUM( + + ( - 8 ) ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-4487
SELECT + SUM ( + + ( - 8 ) ) col1
----
-8

query II rowsort
SELECT DISTINCT + 10 AS col1, - 4 * 85 AS col0
----
10
-340

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4489
SELECT ALL + 13 col1, + 39 * - ( + 90 ) / + - CAST( NULL AS SIGNED ) col1
----
13
NULL

skipif mysql # not compatible
query II rowsort label-4489
SELECT ALL + 13 col1, + 39 * - ( + 90 ) / + - CAST ( NULL AS INTEGER ) col1
----
13
NULL

query I rowsort
SELECT - 18 * + - 18
----
324

onlyif mysql # aggregate syntax: 
query II rowsort label-4491
SELECT ALL + + 84, MIN( 40 ) * + 28 - 32 AS col2
----
84
1088

skipif mysql # not compatible
query II rowsort label-4491
SELECT ALL + + 84, MIN ( 40 ) * + 28 - 32 AS col2
----
84
1088

onlyif mysql # aggregate syntax: 
query II rowsort label-4492
SELECT ALL + + 23 AS col1, - NULLIF ( - + COUNT( * ), - + AVG ( 67 ) * + 39 + 3 )
----
23
1

skipif mysql # not compatible
query II rowsort label-4492
SELECT ALL + + 23 AS col1, - NULLIF ( - + COUNT ( * ), - + AVG ( 67 ) * + 39 + 3 )
----
23
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT ALL + - COUNT( DISTINCT - + 91 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL + - COUNT ( DISTINCT - + 91 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT - 6 * 52 + CASE - 67 WHEN - - COUNT( * ) THEN 46 ELSE - MAX( DISTINCT - 49 ) + 87 * 73 END AS col1
----
6088

skipif mysql # not compatible
query I rowsort label-4494
SELECT - 6 * 52 + CASE - 67 WHEN - - COUNT ( * ) THEN 46 ELSE - MAX ( DISTINCT - 49 ) + 87 * 73 END AS col1
----
6088

query I rowsort
SELECT + 76 * + COALESCE ( + - 34, + CASE - CASE 5 WHEN 45 + - 68 * - 66 THEN NULL ELSE - 22 - + 62 END WHEN + 27 THEN NULLIF ( 78, 29 ) END ) AS col0
----
-2584

query I rowsort
SELECT - 15 - - 58 * + 76
----
4393

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4498
SELECT + - CASE - COUNT( * ) WHEN + - 98 THEN 10 * - - 71 + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT + - CASE - COUNT ( * ) WHEN + - 98 THEN 10 * - - 71 + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT + CASE - CASE - 96 WHEN COUNT( * ) THEN - ( + COUNT( * ) ) WHEN 18 * + SUM( 44 ) THEN - 73 END WHEN - COUNT( * ) THEN 39 * + COUNT( DISTINCT + 25 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT + CASE - CASE - 96 WHEN COUNT ( * ) THEN - ( + COUNT ( * ) ) WHEN 18 * + SUM ( 44 ) THEN - 73 END WHEN - COUNT ( * ) THEN 39 * + COUNT ( DISTINCT + 25 ) END AS col0
----
NULL

query II rowsort
SELECT DISTINCT + + 68, + 61 AS col0
----
68
61

query I rowsort
SELECT - - 46 * + 0
----
0

query I rowsort
SELECT + - 40 * - 99 + + 44
----
4004

query I rowsort
SELECT ALL - + 10 * - 51
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT + 65 - + + 79 * - - COUNT( * ) * + COALESCE ( - + 78, COUNT( DISTINCT 36 ) + 74 * - 67 )
----
6227

skipif mysql # not compatible
query I rowsort label-4504
SELECT + 65 - + + 79 * - - COUNT ( * ) * + COALESCE ( - + 78, COUNT ( DISTINCT 36 ) + 74 * - 67 )
----
6227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4505
SELECT DISTINCT - 49 * + + CAST( + 49 AS SIGNED )
----
-2401

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT - 49 * + + CAST ( + 49 AS INTEGER )
----
-2401

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT + COUNT( ALL 85 ) - - 50 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4506
SELECT + COUNT ( ALL 85 ) - - 50 AS col1
----
51

query I rowsort
SELECT ALL + 33 * + 62 + - 21 + - + 17 AS col2
----
2008

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT + COUNT( * ) + + + ( + 78 ) col1
----
79

skipif mysql # not compatible
query I rowsort label-4508
SELECT + COUNT ( * ) + + + ( + 78 ) col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT + - NULLIF ( - 79, + CAST( - - 15 AS SIGNED ) ) + - + 4 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4509
SELECT + - NULLIF ( - 79, + CAST ( - - 15 AS INTEGER ) ) + - + 4 AS col0
----
75

query I rowsort
SELECT + 68 - - 24 AS col2
----
92

query I rowsort
SELECT ALL 73 * + + 46
----
3358

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT DISTINCT 3 * + 27 * - COUNT( * ) * - 50
----
4050

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT 3 * + 27 * - COUNT ( * ) * - 50
----
4050

query I rowsort
SELECT + 14 + 75 + + 86 / - + 84 + + CASE - 85 WHEN 70 - - 90 THEN - 30 END + - COALESCE ( 61, + 27 + + 28, - 81 + 23 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT + 32 + - 52 - - COUNT( * ) * - + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-4514
SELECT + 32 + - 52 - - COUNT ( * ) * - + COUNT ( * )
----
-21

query I rowsort
SELECT ALL 38 * - 30 * 94 AS col0
----
-107160

query I rowsort
SELECT + 8 + - 82
----
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + 96 * - ( 52 ) * COUNT( 88 )
----
-4992

skipif mysql # not compatible
query I rowsort label-4519
SELECT + 96 * - ( 52 ) * COUNT ( 88 )
----
-4992

query I rowsort
SELECT ALL 66 - 33 AS col0
----
33

query I rowsort
SELECT ALL COALESCE ( 26, - - 85 - - 24 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT - SUM( ALL - 39 ) + - + 27 * + 68 AS col0
----
-1797

skipif mysql # not compatible
query I rowsort label-4522
SELECT - SUM ( ALL - 39 ) + - + 27 * + 68 AS col0
----
-1797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4523
SELECT + 66 * + + 61 * - 39, 75 - - + NULLIF ( - 43, + ( ( COUNT( * ) ) ) DIV + CASE + 40 * - COUNT( * ) WHEN - COUNT( * ) DIV 95 + 40 * + CASE AVG ( 57 ) WHEN 40 THEN NULL WHEN - 7 * CAST( - 86 AS SIGNED ) THEN NULL ELSE - 1 END THEN - MIN( ALL + 31 ) END ) + 78 DIV - 22 AS col0
----
-157014
29

skipif mysql # not compatible
query II rowsort label-4523
SELECT + 66 * + + 61 * - 39, 75 - - + NULLIF ( - 43, + ( ( COUNT ( * ) ) ) / + CASE + 40 * - COUNT ( * ) WHEN - COUNT ( * ) / 95 + 40 * + CASE AVG ( 57 ) WHEN 40 THEN NULL WHEN - 7 * CAST ( - 86 AS INTEGER ) THEN NULL ELSE - 1 END THEN - MIN ( ALL + 31 ) END ) + 78 / - 22 AS col0
----
-157014
29

query I rowsort
SELECT ALL + 99 * - 79
----
-7821

query I rowsort
SELECT DISTINCT COALESCE ( - ( - ( 32 ) ), - 31 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT CASE + - 27 WHEN 51 THEN ( - COUNT( ALL + - 83 ) ) * - + 21 ELSE - 21 END AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT CASE + - 27 WHEN 51 THEN ( - COUNT ( ALL + - 83 ) ) * - + 21 ELSE - 21 END AS col1
----
-21

query I rowsort
SELECT DISTINCT - 5 * 95
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL - + 62 * + + 45 - - COUNT( * ) * + - 78 * + 99 * - + MAX( + - 42 )
----
-327114

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL - + 62 * + + 45 - - COUNT ( * ) * + - 78 * + 99 * - + MAX ( + - 42 )
----
-327114

query I rowsort
SELECT 25 - - + 36 AS col2
----
61

query II rowsort
SELECT + 74 * - 42 AS col1, - ( + + ( + 52 ) ) AS col1
----
-3108
-52

query I rowsort
SELECT + 13 + 11 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT - SUM( 72 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT - SUM ( 72 ) AS col1
----
-72

query I rowsort
SELECT ALL - 11 * - - 86 AS col0
----
-946

query I rowsort
SELECT + 40 * - COALESCE ( + 73, 2 )
----
-2920

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4536
SELECT DISTINCT + 61 + - + COUNT( * ) AS col1, COUNT( * ) * + + 95
----
60
95

skipif mysql # not compatible
query II rowsort label-4536
SELECT DISTINCT + 61 + - + COUNT ( * ) AS col1, COUNT ( * ) * + + 95
----
60
95

query I rowsort
SELECT 41 - 19 + 47 * 83 * 4
----
15626

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT SUM( + 79 ) + + - MAX( + 35 ) + + 62 * - 7
----
-390

skipif mysql # not compatible
query I rowsort label-4538
SELECT SUM ( + 79 ) + + - MAX ( + 35 ) + + 62 * - 7
----
-390

query II rowsort
SELECT DISTINCT - ( - 1 ) col1, 72 * COALESCE ( + 69, - - 86 ) + + 0 * + 32 AS col1
----
1
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL + - ( 62 ) + + CASE - MAX( 38 ) WHEN + 90 THEN - 55 - + SUM( - 42 ) WHEN + NULLIF ( 79, COUNT( * ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL + - ( 62 ) + + CASE - MAX ( 38 ) WHEN + 90 THEN - 55 - + SUM ( - 42 ) WHEN + NULLIF ( 79, COUNT ( * ) ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4541
SELECT CAST( - 34 AS SIGNED ) / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT CAST ( - 34 AS INTEGER ) / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT - - SUM( ALL + ( - 23 ) ) * + 91 + + + ( 30 )
----
-2063

skipif mysql # not compatible
query I rowsort label-4542
SELECT - - SUM ( ALL + ( - 23 ) ) * + 91 + + + ( 30 )
----
-2063

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT MIN( - - ( - + 54 ) ) + - - 14 - + 46
----
-86

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT MIN ( - - ( - + 54 ) ) + - - 14 - + 46
----
-86

query I rowsort
SELECT ALL ( + 37 ) + + 8 - 14
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT DISTINCT - 20 * COUNT( ALL + 28 )
----
-20

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT - 20 * COUNT ( ALL + 28 )
----
-20

query I rowsort
SELECT ALL ( 61 ) + 61 * + 55 AS col2
----
3416

query I rowsort
SELECT NULLIF ( 9, + - 21 ) * - 4
----
-36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT + COUNT( * ) + - 58 * 4
----
-231

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT + COUNT ( * ) + - 58 * 4
----
-231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4550
SELECT ALL ( + 54 ) - - COUNT( * ) - + 65 DIV - 99 * 33 * + 40 * + 80 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL ( + 54 ) - - COUNT ( * ) - + 65 / - 99 * 33 * + 40 * + 80 AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4551
SELECT - 96, - COUNT( * ) col0
----
-96
-1

skipif mysql # not compatible
query II rowsort label-4551
SELECT - 96, - COUNT ( * ) col0
----
-96
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT 17 - - + ( COUNT( * ) ) + 98
----
116

skipif mysql # not compatible
query I rowsort label-4552
SELECT 17 - - + ( COUNT ( * ) ) + 98
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-4553
SELECT SUM( DISTINCT NULLIF ( + 68, 96 * + 74 ) ) * + - 89 AS col1, - 83
----
-6052
-83

skipif mysql # not compatible
query II rowsort label-4553
SELECT SUM ( DISTINCT NULLIF ( + 68, 96 * + 74 ) ) * + - 89 AS col1, - 83
----
-6052
-83

query II rowsort
SELECT - 6 AS col2, - 69 AS col0
----
-6
-69

query I rowsort
SELECT ALL 36 - - 97
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-4556
SELECT - 17 AS col0, - 96 * + - 11 - 93 * - ( - 40 ) * - 84 - COUNT( * ) + 7
----
-17
313542

skipif mysql # not compatible
query II rowsort label-4556
SELECT - 17 AS col0, - 96 * + - 11 - 93 * - ( - 40 ) * - 84 - COUNT ( * ) + 7
----
-17
313542

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL ( + 2 ) * - COALESCE ( - SUM( ( 27 ) ), + 75 ) * - + 22
----
-1188

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL ( + 2 ) * - COALESCE ( - SUM ( ( 27 ) ), + 75 ) * - + 22
----
-1188

query II rowsort
SELECT 92, ( + 2 ) + 3 AS col0
----
92
5

query II rowsort
SELECT ALL 27, COALESCE ( + - 85, - - 23 ) AS col1
----
27
-85

query II rowsort
SELECT 63, - 45 * + 39 AS col1
----
63
-1755

query I rowsort
SELECT 7 * + 71
----
497

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4562
SELECT + ( - 73 ) + COUNT( * ) + COUNT( * ) + - ( - COALESCE ( + COALESCE ( - 70, 78, - 58 * - 82 + 11 DIV 41, 1 * - 32 ), COUNT( * ) * + 34 ) ) * 57
----
-4061

skipif mysql # not compatible
query I rowsort label-4562
SELECT + ( - 73 ) + COUNT ( * ) + COUNT ( * ) + - ( - COALESCE ( + COALESCE ( - 70, 78, - 58 * - 82 + 11 / 41, 1 * - 32 ), COUNT ( * ) * + 34 ) ) * 57
----
-4061

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

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL + CAST ( + - CASE - - 93 WHEN - 42 THEN 80 * COUNT ( * ) + + COUNT ( * ) END AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - 97 * + - 5 + 74 + 96 * - + 23
----
-1649

query I rowsort
SELECT + 72 - + 38 AS col0
----
34

query I rowsort
SELECT DISTINCT + - 47 + + NULLIF ( + 0, - + 23 )
----
-47

query I rowsort
SELECT ALL - 60 + + 67 AS col1
----
7

query I rowsort
SELECT DISTINCT + 32 + + - 38 + - 67 * 61 + 68
----
-4025

query I rowsort
SELECT ALL - 57 + 96 col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4570
SELECT ALL + + COUNT( * ) + - - ( - 49 ) * + 50 * + + NULLIF ( + - 64, - 53 + + + 93 - - CAST( NULL AS DECIMAL ) * - 4 ) + 65
----
156866

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + + COUNT ( * ) + - - ( - 49 ) * + 50 * + + NULLIF ( + - 64, - 53 + + + 93 - - CAST ( NULL AS REAL ) * - 4 ) + 65
----
156866

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4571
SELECT - 22 * - COALESCE ( - SUM( + CAST( NULL AS SIGNED ) ), COUNT( * ), + - 85 ) DIV 33 + + 11 + + 18 DIV 45 + 5 * - 58 col2
----
-279

skipif mysql # not compatible
query I rowsort label-4571
SELECT - 22 * - COALESCE ( - SUM ( + CAST ( NULL AS INTEGER ) ), COUNT ( * ), + - 85 ) / 33 + + 11 + + 18 / 45 + 5 * - 58 col2
----
-279

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

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

query I rowsort
SELECT ALL + 34 * 30 col0
----
1020

query I rowsort
SELECT ALL + 61 - - - 88 * - 91 + - 43
----
8026

query I rowsort
SELECT 7 + - 57 * 82 col2
----
-4667

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4576
SELECT 17 + - COUNT( * ) DIV + - COUNT( * ) - - + 99, 16 col1
----
117
16

skipif mysql # not compatible
query II rowsort label-4576
SELECT 17 + - COUNT ( * ) / + - COUNT ( * ) - - + 99, 16 col1
----
117
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4577
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - NULLIF ( - - 1, + 80 ) AS col2, + 93 * 23 * - 24 * 35 AS col1
----
NULL
-1796760

skipif mysql # not compatible
query II rowsort label-4577
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - NULLIF ( - - 1, + 80 ) AS col2, + 93 * 23 * - 24 * 35 AS col1
----
NULL
-1796760

query I rowsort
SELECT 26 + - 29
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT MIN( ALL - - NULLIF ( + 68, + 11 ) ) - - 36 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-4579
SELECT MIN ( ALL - - NULLIF ( + 68, + 11 ) ) - - 36 AS col1
----
104

query I rowsort
SELECT 71 * - 80 * ( - 66 ) + + 58 AS col2
----
374938

onlyif mysql # DIV for integer division: 
query I rowsort label-4581
SELECT 42 DIV 50 DIV 35 col1
----
0

skipif mysql # not compatible
query I rowsort label-4581
SELECT 42 / 50 / 35 col1
----
0

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

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

query I rowsort
SELECT ALL + 72 * 52 * 30 AS col2
----
112320

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT 52 + - + 49 + - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4584
SELECT 52 + - + 49 + - + COUNT ( * )
----
2

query I rowsort
SELECT 61 + - 84 + - 90 * - 41 * - - 0 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4586
SELECT ALL COALESCE ( + 33, - 59, 73 ), - COUNT( ALL 80 ) + + + 87 * 29 AS col2
----
33
2522

skipif mysql # not compatible
query II rowsort label-4586
SELECT ALL COALESCE ( + 33, - 59, 73 ), - COUNT ( ALL 80 ) + + + 87 * 29 AS col2
----
33
2522

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT + CASE + 8 WHEN + COUNT( * ) THEN - - 73 END * - + CASE + - 9 WHEN CASE - COUNT( * ) WHEN + - AVG ( DISTINCT 75 ) THEN + ( COUNT( * ) ) * CASE 90 WHEN 6 + + 50 THEN - 50 ELSE NULL END END THEN - ( - 33 ) WHEN COUNT( * ) - 26 THEN 54 WHEN NULLIF ( + 57, - ( 28 ) ) THEN + 39 END * 29 + ( - ( - 30 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT + CASE + 8 WHEN + COUNT ( * ) THEN - - 73 END * - + CASE + - 9 WHEN CASE - COUNT ( * ) WHEN + - AVG ( DISTINCT 75 ) THEN + ( COUNT ( * ) ) * CASE 90 WHEN 6 + + 50 THEN - 50 ELSE NULL END END THEN - ( - 33 ) WHEN COUNT ( * ) - 26 THEN 54 WHEN NULLIF ( + 57, - ( 28 ) ) THEN + 39 END * 29 + ( - ( - 30 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT + 47 + + COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4588
SELECT + 47 + + COUNT ( * ) AS col1
----
48

query II rowsort
SELECT DISTINCT + 97 + - + 40 AS col1, 7 AS col0
----
57
7

query I rowsort
SELECT + 95 * + 23 AS col0
----
2185

query I rowsort
SELECT DISTINCT - 22 + - - 27
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT ALL 39 + - MAX( ALL 0 ) * 68
----
39

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL 39 + - MAX ( ALL 0 ) * 68
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL - - SUM( DISTINCT - 44 ) + + - 66 + - 2 * - 11 * - + 57
----
-1364

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL - - SUM ( DISTINCT - 44 ) + + - 66 + - 2 * - 11 * - + 57
----
-1364

query I rowsort
SELECT + - 67 + 64
----
-3

query I rowsort
SELECT DISTINCT 1 + - - 43 + - 16
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4596
SELECT ALL - NULLIF ( - - 25, CASE + + CAST( - 42 AS SIGNED ) WHEN + 68 THEN NULL WHEN COUNT( * ) * - 61 THEN + COUNT( * ) - 44 / 53 END ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL - NULLIF ( - - 25, CASE + + CAST ( - 42 AS INTEGER ) WHEN + 68 THEN NULL WHEN COUNT ( * ) * - 61 THEN + COUNT ( * ) - 44 / 53 END ) AS col2
----
-25

query I rowsort
SELECT + + 92 + - 35 AS col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-4598
SELECT ALL + - NULLIF ( + + 93, + 66 / - COUNT( * ) ) AS col0, ( 14 )
----
-93
14

skipif mysql # not compatible
query II rowsort label-4598
SELECT ALL + - NULLIF ( + + 93, + 66 / - COUNT ( * ) ) AS col0, ( 14 )
----
-93
14

query II rowsort
SELECT + + 48 - + - 62 AS col0, + 75
----
110
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4600
SELECT + 11 + 22 col0, - COUNT( * )
----
33
-1

skipif mysql # not compatible
query II rowsort label-4600
SELECT + 11 + 22 col0, - COUNT ( * )
----
33
-1

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT DISTINCT + 99 * - + 33 + + 45 + - COALESCE ( + 20, + CAST( - 2 AS SIGNED ) ) - + 74 AS col1
----
-3316

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT + 99 * - + 33 + + 45 + - COALESCE ( + 20, + CAST ( - 2 AS INTEGER ) ) - + 74 AS col1
----
-3316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4604
SELECT + + 7 * - 63, - 17 + - CASE - + 64 WHEN NULLIF ( 27, COUNT( * ) ) THEN + + ( CAST( NULL AS SIGNED ) ) END + COUNT( * ) * SUM( 23 * CASE - 96 WHEN 56 + 54 THEN 77 END - 30 ) * 85 col2
----
-441
NULL

skipif mysql # not compatible
query II rowsort label-4604
SELECT + + 7 * - 63, - 17 + - CASE - + 64 WHEN NULLIF ( 27, COUNT ( * ) ) THEN + + ( CAST ( NULL AS INTEGER ) ) END + COUNT ( * ) * SUM ( 23 * CASE - 96 WHEN 56 + 54 THEN 77 END - 30 ) * 85 col2
----
-441
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT + + COUNT( - + 45 ) + + 65 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4605
SELECT + + COUNT ( - + 45 ) + + 65 AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4606
SELECT ALL - CAST( + 74 AS SIGNED ) * - - 30 - - 61 - - COUNT( * ) - 32 DIV - - 56 AS col0
----
-2158

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL - CAST ( + 74 AS INTEGER ) * - - 30 - - 61 - - COUNT ( * ) - 32 / - - 56 AS col0
----
-2158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4607
SELECT + 97 * CAST( NULLIF ( + + 82, 19 ) AS SIGNED ) AS col2, COALESCE ( - 56, + - 28 DIV - + MIN( 71 ) ) * + MAX( ALL 71 ) AS col1
----
7954
-3976

skipif mysql # not compatible
query II rowsort label-4607
SELECT + 97 * CAST ( NULLIF ( + + 82, 19 ) AS INTEGER ) AS col2, COALESCE ( - 56, + - 28 / - + MIN ( 71 ) ) * + MAX ( ALL 71 ) AS col1
----
7954
-3976

onlyif mysql # aggregate syntax: 
query II rowsort label-4608
SELECT ALL + 82 AS col0, 55 * + NULLIF ( - 48, COUNT( 3 ) ) + - - 87 AS col0
----
82
-2553

skipif mysql # not compatible
query II rowsort label-4608
SELECT ALL + 82 AS col0, 55 * + NULLIF ( - 48, COUNT ( 3 ) ) + - - 87 AS col0
----
82
-2553

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT COUNT( * ) * - ( - 89 ) + 37 AS col0
----
126

skipif mysql # not compatible
query I rowsort label-4609
SELECT COUNT ( * ) * - ( - 89 ) + 37 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT + COUNT( * ) * - + 30 + + 66 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4610
SELECT + COUNT ( * ) * - + 30 + + 66 AS col2
----
36

query I rowsort
SELECT DISTINCT - 95 * + 40 AS col2
----
-3800

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL ( NULLIF ( CASE + + CASE WHEN NOT NULL < - - ( + 75 ) OR NOT NULL IS NOT NULL THEN - 53 END WHEN - MAX( 74 ) * 18 THEN COUNT( * ) WHEN 72 THEN NULL ELSE NULL END, 98 * + 30 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL ( NULLIF ( CASE + + CASE WHEN NOT NULL < - - ( + 75 ) OR NOT NULL IS NOT NULL THEN - 53 END WHEN - MAX ( 74 ) * 18 THEN COUNT ( * ) WHEN 72 THEN NULL ELSE NULL END, 98 * + 30 ) )
----
NULL

query I rowsort
SELECT DISTINCT - 86 * - ( 35 ) AS col1
----
3010

onlyif mysql # aggregate syntax: 
query II rowsort label-4614
SELECT DISTINCT NULLIF ( + + 60, 47 ) AS col2, + 50 + - CASE + + COUNT( * ) WHEN + 63 * + 81 * 26 + + 2 + COUNT( ALL 45 - - 58 ) * + 70 THEN - 15 + 4 END AS col0
----
60
NULL

skipif mysql # not compatible
query II rowsort label-4614
SELECT DISTINCT NULLIF ( + + 60, 47 ) AS col2, + 50 + - CASE + + COUNT ( * ) WHEN + 63 * + 81 * 26 + + 2 + COUNT ( ALL 45 - - 58 ) * + 70 THEN - 15 + 4 END AS col0
----
60
NULL

query I rowsort
SELECT + 66 * + 73
----
4818

query I rowsort
SELECT DISTINCT - 95 * 10 col0
----
-950

query I rowsort
SELECT ALL + 41 + + 86
----
127

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

skipif mysql # not compatible
query I rowsort label-4618
SELECT + 23 * - CAST ( NULL AS INTEGER ) - 32
----
NULL

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

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

query I rowsort
SELECT ALL - 77 + 67 col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4621
SELECT - 35 - + 95 + - ( - 13 ) DIV COUNT( * ) AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-4621
SELECT - 35 - + 95 + - ( - 13 ) / COUNT ( * ) AS col1
----
-117

query I rowsort
SELECT + 41 * - 50
----
-2050

query I rowsort
SELECT ALL - 68 * - 41 AS col1
----
2788

query I rowsort
SELECT DISTINCT - 96 + - + ( + 14 ) * - + 20 AS col1
----
184

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

query I rowsort
SELECT - COALESCE ( + NULLIF ( 89, - 69 ), + COALESCE ( + - 73, ( + - 58 ) ), - 7 )
----
-89

query I rowsort
SELECT DISTINCT - 76 + - - 41
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT ALL CAST( NULL AS SIGNED ) / - NULLIF ( - 79, ( + - 40 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL CAST ( NULL AS INTEGER ) / - NULLIF ( - 79, ( + - 40 ) )
----
NULL

query I rowsort
SELECT - - 38 - 27 col2
----
11

query II rowsort
SELECT ALL - 90 AS col2, 58 + 21 AS col1
----
-90
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4631
SELECT - ( COUNT( * ) ) * COALESCE ( 73, - COUNT( * ) + - COUNT( * ), 41 + - + 54 DIV + 8 * 20 )
----
-73

skipif mysql # not compatible
query I rowsort label-4631
SELECT - ( COUNT ( * ) ) * COALESCE ( 73, - COUNT ( * ) + - COUNT ( * ), 41 + - + 54 / + 8 * 20 )
----
-73

query I rowsort
SELECT + + 11 * - 74 AS col2
----
-814

query I rowsort
SELECT ALL + 0 * - + 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL + - MAX( ALL - 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL + - MAX ( ALL - 59 ) AS col1
----
59

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4636
SELECT - MAX( DISTINCT 34 ) DIV + + 91 + - 18
----
-18

skipif mysql # not compatible
query I rowsort label-4636
SELECT - MAX ( DISTINCT 34 ) / + + 91 + - 18
----
-18

query I rowsort
SELECT ALL + 56 * + 64
----
3584

query I rowsort
SELECT - 89 * + - 36 * - 96 * 79 AS col0
----
-24299136

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

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

query I rowsort
SELECT + 38 * 50 * - 64 * - ( ( - 32 ) ) AS col0
----
-3891200

query I rowsort
SELECT 71 * - 33 * - 20 + + 60 + - 97
----
46823

onlyif mysql # DIV for integer division: 
query I rowsort label-4642
SELECT + 2 DIV 5
----
0

skipif mysql # not compatible
query I rowsort label-4642
SELECT + 2 / 5
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT + 19 - + - SUM( DISTINCT 64 )
----
83

skipif mysql # not compatible
query I rowsort label-4644
SELECT + 19 - + - SUM ( DISTINCT 64 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4645
SELECT ALL COALESCE ( + CAST( NULL AS SIGNED ), - 44, - + 96 * ( COUNT( * ) ) * + 54 * + SUM( DISTINCT - + 19 ) + 4 ) DIV COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), - 44, - + 96 * ( COUNT ( * ) ) * + 54 * + SUM ( DISTINCT - + 19 ) + 4 ) / COUNT ( * )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT ALL 1 * + 0 DIV + 59 + - - 89 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL 1 * + 0 / + 59 + - - 89 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ( - 45 ) * - 85 * - 13 + + - 73 + - 62 + - - 48 * + 65 + - - COALESCE ( - COUNT( * ), + + 60 ) - - 88 * + 31 AS col1
----
-44013

skipif mysql # not compatible
query I rowsort label-4647
SELECT ( - 45 ) * - 85 * - 13 + + - 73 + - 62 + - - 48 * + 65 + - - COALESCE ( - COUNT ( * ), + + 60 ) - - 88 * + 31 AS col1
----
-44013

query I rowsort
SELECT ALL - 99 * - 16
----
1584

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

skipif mysql # not compatible
query I rowsort label-4649
SELECT COUNT ( * ) / - - ( 79 )
----
0

query I rowsort
SELECT + 19 * + - 14 + - - COALESCE ( 71, - 24 ) AS col2
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-4651
SELECT + 60 AS col1, + COUNT( ALL + 47 ) + - 19
----
60
-18

skipif mysql # not compatible
query II rowsort label-4651
SELECT + 60 AS col1, + COUNT ( ALL + 47 ) + - 19
----
60
-18

query I rowsort
SELECT 87 - - 16
----
103

query I rowsort
SELECT 96 - + 2 AS col1
----
94

query I rowsort
SELECT ALL 18 + 87
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-4655
SELECT 3 col2, - ( - COUNT( * ) ) * - + COUNT( * )
----
3
-1

skipif mysql # not compatible
query II rowsort label-4655
SELECT 3 col2, - ( - COUNT ( * ) ) * - + COUNT ( * )
----
3
-1

query I rowsort
SELECT ALL + 47 + 94 AS col0
----
141

query I rowsort
SELECT - 91 + 18 AS col1
----
-73

query I rowsort
SELECT 15 + 32 AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4659
SELECT + 5, + COALESCE ( + 9, 14, 97 ) * - COUNT( * ) col1
----
5
-9

skipif mysql # not compatible
query II rowsort label-4659
SELECT + 5, + COALESCE ( + 9, 14, 97 ) * - COUNT ( * ) col1
----
5
-9

query I rowsort
SELECT 61 + + 79
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-4661
SELECT + COUNT( * ), - 28 * + 57 AS col1
----
1
-1596

skipif mysql # not compatible
query II rowsort label-4661
SELECT + COUNT ( * ), - 28 * + 57 AS col1
----
1
-1596

query I rowsort
SELECT ALL - + 36 - - - 31
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4663
SELECT 25 + - - 40 DIV + - 51 * + 70 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4663
SELECT 25 + - - 40 / + - 51 * + 70 AS col2
----
25

query II rowsort
SELECT - 39, 98 AS col2
----
-39
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4665
SELECT MIN( + 91 ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4665
SELECT MIN ( + 91 ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4667
SELECT - SUM( ALL - 16 ), 96 col0
----
16
96

skipif mysql # not compatible
query II rowsort label-4667
SELECT - SUM ( ALL - 16 ), 96 col0
----
16
96

query I rowsort
SELECT ALL + 51 * 47 - 31
----
2366

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT + 7 * MIN( ALL + 66 )
----
462

skipif mysql # not compatible
query I rowsort label-4669
SELECT + 7 * MIN ( ALL + 66 )
----
462

query I rowsort
SELECT ALL - ( + 93 ) AS col2
----
-93

query I rowsort
SELECT 64 * + 46 * - 86
----
-253184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4672
SELECT ALL - - NULLIF ( + - COUNT( * ), 86 ) * + 49 DIV + 46 col0
----
-1

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL - - NULLIF ( + - COUNT ( * ), 86 ) * + 49 / + 46 col0
----
-1

query I rowsort
SELECT 94 + + 33 AS col1
----
127

query II rowsort
SELECT - - 10, - 56 AS col1
----
10
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-4675
SELECT 41 + + 27 + - 52 + + + 73, - 51 DIV - ( - 93 ) AS col0
----
89
0

skipif mysql # not compatible
query II rowsort label-4675
SELECT 41 + + 27 + - 52 + + + 73, - 51 / - ( - 93 ) AS col0
----
89
0

query II rowsort
SELECT ALL - 30, 5 AS col2
----
-30
5

query I rowsort
SELECT - - 40 * + 83 - - - 45 * - 21
----
4265

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT + 98 DIV + 56 + + + ( - - 51 )
----
52

skipif mysql # not compatible
query I rowsort label-4678
SELECT + 98 / + 56 + + + ( - - 51 )
----
52

query I rowsort
SELECT ALL 20 * 38
----
760

onlyif mysql # aggregate syntax: 
query II rowsort label-4680
SELECT 36 * 61, + CASE COUNT( * ) WHEN AVG ( DISTINCT - 60 ) + 47 + - 71 * + + 37 * + 1 + - 24 - - 40 THEN COUNT( * ) WHEN 91 + - 34 THEN 12 ELSE + 97 END * + 96 + - 12 AS col2
----
2196
9300

skipif mysql # not compatible
query II rowsort label-4680
SELECT 36 * 61, + CASE COUNT ( * ) WHEN AVG ( DISTINCT - 60 ) + 47 + - 71 * + + 37 * + 1 + - 24 - - 40 THEN COUNT ( * ) WHEN 91 + - 34 THEN 12 ELSE + 97 END * + 96 + - 12 AS col2
----
2196
9300

query I rowsort
SELECT ALL - 40 + 8
----
-32

query I rowsort
SELECT DISTINCT 55 * + NULLIF ( - 79, + 43 + - + 96 ) AS col1
----
-4345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4683
SELECT DISTINCT - CAST( + NULLIF ( 95, + 21 * 23 * - CASE + COALESCE ( - 24, - 88 + - CASE + - NULLIF ( - - 77, 72 + - 50 / 68 ) WHEN 99 - - MAX( - 61 ) THEN CAST( 95 AS SIGNED ) - - 79 ELSE NULL END ) WHEN - COUNT( * ) THEN 89 WHEN - COUNT( * ) THEN + 97 * 20 - 36 ELSE NULL END + - 37 ) AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT - CAST ( + NULLIF ( 95, + 21 * 23 * - CASE + COALESCE ( - 24, - 88 + - CASE + - NULLIF ( - - 77, 72 + - 50 / 68 ) WHEN 99 - - MAX ( - 61 ) THEN CAST ( 95 AS INTEGER ) - - 79 ELSE NULL END ) WHEN - COUNT ( * ) THEN 89 WHEN - COUNT ( * ) THEN + 97 * 20 - 36 ELSE NULL END + - 37 ) AS INTEGER )
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT ALL - CAST( NULL AS SIGNED ) * - 40 * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - CAST ( NULL AS INTEGER ) * - 40 * 11
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT DISTINCT 19 + + 79 DIV + 41
----
20

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT 19 + + 79 / + 41
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-4686
SELECT ALL 78 + + 66 + + NULLIF ( - - 0, - 3 ) * + 25 - + - 99 AS col1, 62 * 96 DIV - 42 + 27
----
243
-114

skipif mysql # not compatible
query II rowsort label-4686
SELECT ALL 78 + + 66 + + NULLIF ( - - 0, - 3 ) * + 25 - + - 99 AS col1, 62 * 96 / - 42 + 27
----
243
-114

query I rowsort
SELECT ALL 54 + - 26 * + - 80
----
2134

query I rowsort
SELECT 51 * - 77
----
-3927

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

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

query II rowsort
SELECT ALL 48 + - + 71 AS col1, 23 * 95
----
-23
2185

onlyif mysql # DIV for integer division: 
query I rowsort label-4691
SELECT ALL 6 DIV + + 62 * 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL 6 / + + 62 * 71 AS col2
----
0

query II rowsort
SELECT DISTINCT 77 + 72 col2, - 93 AS col0
----
149
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT DISTINCT MAX( DISTINCT + + 18 ) + 24
----
42

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT MAX ( DISTINCT + + 18 ) + 24
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4695
SELECT ALL 70 DIV - + 48
----
-1

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL 70 / - + 48
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT MAX( DISTINCT - - 72 ) * + 96
----
6912

skipif mysql # not compatible
query I rowsort label-4696
SELECT MAX ( DISTINCT - - 72 ) * + 96
----
6912

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT DISTINCT + MIN( - 28 ) * 83
----
-2324

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT + MIN ( - 28 ) * 83
----
-2324

onlyif mysql # DIV for integer division: 
query I rowsort label-4698
SELECT ALL + COALESCE ( - 16, - - 17 + 36 DIV - 28 ) - - COALESCE ( + 23, - ( 25 ) DIV - - 25 - - - 50, 65 + 30 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL + COALESCE ( - 16, - - 17 + 36 / - 28 ) - - COALESCE ( + 23, - ( 25 ) / - - 25 - - - 50, 65 + 30 ) AS col2
----
7

query I rowsort
SELECT - - NULLIF ( - 51, - 74 )
----
-51

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

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

query I rowsort
SELECT + 38 * + 0 * - + 68 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT 40 * - CAST( - 6 AS SIGNED )
----
240

skipif mysql # not compatible
query I rowsort label-4702
SELECT 40 * - CAST ( - 6 AS INTEGER )
----
240

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4704
SELECT DISTINCT + 22 * - CASE - SUM( + 71 ) WHEN ( + - 28 ) / - 46 THEN - ( - MIN( ALL 29 ) ) ELSE - + 55 * + COUNT( * ) * 39 + + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT + 22 * - CASE - SUM ( + 71 ) WHEN ( + - 28 ) / - 46 THEN - ( - MIN ( ALL 29 ) ) ELSE - + 55 * + COUNT ( * ) * 39 + + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT CASE + 66 WHEN - + 17 + + 36 THEN NULL ELSE - 13 + 82 END * + - NULLIF ( - 35, + + 3 + - COUNT( * ) + - + COUNT( * ) ) * ( 60 )
----
144900

skipif mysql # not compatible
query I rowsort label-4705
SELECT CASE + 66 WHEN - + 17 + + 36 THEN NULL ELSE - 13 + 82 END * + - NULLIF ( - 35, + + 3 + - COUNT ( * ) + - + COUNT ( * ) ) * ( 60 )
----
144900

query I rowsort
SELECT + 98 + + 91 + 70 * 41 AS col2
----
3059

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4707
SELECT ALL + + 16 * + - 47 + ( - COUNT( * ) ) DIV + MAX( 94 ) + - 46
----
-798

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL + + 16 * + - 47 + ( - COUNT ( * ) ) / + MAX ( 94 ) + - 46
----
-798

onlyif mysql # DIV for integer division: 
query I rowsort label-4708
SELECT 36 DIV 7
----
5

skipif mysql # not compatible
query I rowsort label-4708
SELECT 36 / 7
----
5

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

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL + 71 + COUNT ( * ) AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4710
SELECT DISTINCT + SUM( 31 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT + SUM ( 31 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4711
SELECT ALL 50 * + 64 + + 25 AS col1, 24 * - COUNT( ALL + + 17 )
----
3225
-24

skipif mysql # not compatible
query II rowsort label-4711
SELECT ALL 50 * + 64 + + 25 AS col1, 24 * - COUNT ( ALL + + 17 )
----
3225
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-4712
SELECT DISTINCT - COUNT( * ), 28 + + + 14 AS col1
----
-1
42

skipif mysql # not compatible
query II rowsort label-4712
SELECT DISTINCT - COUNT ( * ), 28 + + + 14 AS col1
----
-1
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4713
SELECT NULLIF ( + ( - 27 ), + COUNT( DISTINCT + + COALESCE ( - 36, - + 35 / 84 ) ) ) AS col1, - 91 AS col2
----
-27
-91

skipif mysql # not compatible
query II rowsort label-4713
SELECT NULLIF ( + ( - 27 ), + COUNT ( DISTINCT + + COALESCE ( - 36, - + 35 / 84 ) ) ) AS col1, - 91 AS col2
----
-27
-91

query I rowsort
SELECT ALL 87 * - 71 + 25 + + 11
----
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT + COUNT( - + 94 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4715
SELECT + COUNT ( - + 94 ) col1
----
1

query I rowsort
SELECT - 13 + - 29 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT ALL 42 * - + COUNT( * ) + + COUNT( * ), + 27 - + - 28 AS col1
----
-41
55

skipif mysql # not compatible
query II rowsort label-4717
SELECT ALL 42 * - + COUNT ( * ) + + COUNT ( * ), + 27 - + - 28 AS col1
----
-41
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4718
SELECT - ( - AVG ( - - CAST( NULL AS SIGNED ) ) ) - NULLIF ( - 37, + MIN( DISTINCT - 45 ) * - - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT - ( - AVG ( - - CAST ( NULL AS INTEGER ) ) ) - NULLIF ( - 37, + MIN ( DISTINCT - 45 ) * - - 54 )
----
NULL

query I rowsort
SELECT DISTINCT + 64 * + 33 col2
----
2112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4720
SELECT - CASE + 64 WHEN - 84 THEN - 41 WHEN - - COALESCE ( - - COUNT( * ), 11 * 16 ) THEN - 89 END * + CAST( + 90 AS DECIMAL ) * - 68 * + 50 * 52 - 4 * + NULLIF ( 50, - 81 ) + 65 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT - CASE + 64 WHEN - 84 THEN - 41 WHEN - - COALESCE ( - - COUNT ( * ), 11 * 16 ) THEN - 89 END * + CAST ( + 90 AS REAL ) * - 68 * + 50 * 52 - 4 * + NULLIF ( 50, - 81 ) + 65 + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 46 * - 14 AS col2
----
-644

query II rowsort
SELECT 79 AS col2, - 51
----
79
-51

query I rowsort
SELECT - 39 + + + 29 col1
----
-10

query I rowsort
SELECT + 9 - - 53 col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4725
SELECT + + CASE + COUNT( * ) WHEN - 54 THEN + 0 END * + 17 + + + CAST( NULL AS SIGNED ) + + 11 - - + 95 * - + 69 * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT + + CASE + COUNT ( * ) WHEN - 54 THEN + 0 END * + 17 + + + CAST ( NULL AS INTEGER ) + + 11 - - + 95 * - + 69 * 18
----
NULL

query I rowsort
SELECT ALL + - 52 * - + 92 AS col0
----
4784

query I rowsort
SELECT + 62 * - - 68
----
4216

query I rowsort
SELECT + 66 + + 42 + 9
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL NULLIF ( + SUM( DISTINCT - 49 ), - 54 ) * + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL NULLIF ( + SUM ( DISTINCT - 49 ), - 54 ) * + COUNT ( * )
----
-49

query I rowsort
SELECT + + 24 + - + 26 + 37 - 50 * - 3 col0
----
185

query I rowsort
SELECT ALL - 13 * 34 AS col2
----
-442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4732
SELECT DISTINCT 68 DIV COUNT( * ) * - 32 col2
----
-2176

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT 68 / COUNT ( * ) * - 32 col2
----
-2176

query I rowsort
SELECT - + 38 * - + 23
----
874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4734
SELECT + + 74 + - 89 * - 44 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT + + 74 + - 89 * - 44 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT ALL + SUM( ALL - 57 ) * 98 + + + 76 + - 96 AS col2
----
-5606

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL + SUM ( ALL - 57 ) * 98 + + + 76 + - 96 AS col2
----
-5606

onlyif mysql # DIV for integer division: 
query II rowsort label-4736
SELECT - 70 AS col2, 8 DIV - 59 AS col0
----
-70
0

skipif mysql # not compatible
query II rowsort label-4736
SELECT - 70 AS col2, 8 / - 59 AS col0
----
-70
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4737
SELECT DISTINCT + 86 + + + MIN( + - 39 ), 63 AS col0
----
47
63

skipif mysql # not compatible
query II rowsort label-4737
SELECT DISTINCT + 86 + + + MIN ( + - 39 ), 63 AS col0
----
47
63

query I rowsort
SELECT ALL + - 89 + - 21
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4739
SELECT ALL ( - + COUNT( * ) ) * 64 - - - 74 + + ( + + COALESCE ( + 73, - - 18, + 62, - 18 ) ) DIV 85
----
-138

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL ( - + COUNT ( * ) ) * 64 - - - 74 + + ( + + COALESCE ( + 73, - - 18, + 62, - 18 ) ) / 85
----
-138

query I rowsort
SELECT ALL - 22 + - - 0 AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT ALL NULLIF ( - - NULLIF ( + - CASE + 9 WHEN 43 THEN + 36 WHEN + NULLIF ( - 57, - 7 + 9 ) THEN NULL WHEN + CAST( - 81 AS SIGNED ) THEN 25 WHEN + COUNT( * ) + + 95 THEN NULL ELSE + ( + 9 ) END, 23 ), 92 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL NULLIF ( - - NULLIF ( + - CASE + 9 WHEN 43 THEN + 36 WHEN + NULLIF ( - 57, - 7 + 9 ) THEN NULL WHEN + CAST ( - 81 AS INTEGER ) THEN 25 WHEN + COUNT ( * ) + + 95 THEN NULL ELSE + ( + 9 ) END, 23 ), 92 ) AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4742
SELECT - 96 + - 97 DIV - 34 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4742
SELECT - 96 + - 97 / - 34 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT DISTINCT COUNT( * ) + + 21 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT COUNT ( * ) + + 21 AS col2
----
22

query I rowsort
SELECT - ( - 57 ) + 51
----
108

query I rowsort
SELECT ALL 37 + - - 58 AS col1
----
95

query I rowsort
SELECT ALL + 50 * + 13 AS col0
----
650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4747
SELECT ALL 20 DIV - NULLIF ( - + 6, - MIN( ALL 97 ) ) + - 45 * + - 96 AS col0
----
4323

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL 20 / - NULLIF ( - + 6, - MIN ( ALL 97 ) ) + - 45 * + - 96 AS col0
----
4323

onlyif mysql # DIV for integer division: 
query I rowsort label-4748
SELECT ALL 69 DIV 88 - 46 + - 25
----
-71

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL 69 / 88 - 46 + - 25
----
-71

query I rowsort
SELECT - 89 * + 4
----
-356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4750
SELECT 78 DIV + 3 + + COUNT( * ) + 20 * + - MAX( DISTINCT + 21 )
----
-393

skipif mysql # not compatible
query I rowsort label-4750
SELECT 78 / + 3 + + COUNT ( * ) + 20 * + - MAX ( DISTINCT + 21 )
----
-393

onlyif mysql # aggregate syntax: 
query II rowsort label-4751
SELECT ALL + ( + 22 ) AS col2, - COUNT( * ) + + 77 * - 51 * - 47
----
22
184568

skipif mysql # not compatible
query II rowsort label-4751
SELECT ALL + ( + 22 ) AS col2, - COUNT ( * ) + + 77 * - 51 * - 47
----
22
184568

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4753
SELECT - 71 DIV - - COUNT( * ) col1
----
-71

skipif mysql # not compatible
query I rowsort label-4753
SELECT - 71 / - - COUNT ( * ) col1
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4754
SELECT DISTINCT - COUNT( * ) DIV - + 36 * + 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT - COUNT ( * ) / - + 36 * + 66 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-4755
SELECT - CAST ( NULL AS INTEGER ) * 20 + - + 76
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4756
SELECT ALL + 83 * - 69 * 82 + 27, CASE + + 69 WHEN - NULLIF ( + 90, - - 51 * + COUNT( * ) ) THEN NULL ELSE - 31 END AS col0
----
-469587
-31

skipif mysql # not compatible
query II rowsort label-4756
SELECT ALL + 83 * - 69 * 82 + 27, CASE + + 69 WHEN - NULLIF ( + 90, - - 51 * + COUNT ( * ) ) THEN NULL ELSE - 31 END AS col0
----
-469587
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL + MAX( - + 16 ) * 70 * + 58 + + - COUNT( * )
----
-64961

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL + MAX ( - + 16 ) * 70 * + 58 + + - COUNT ( * )
----
-64961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4758
SELECT ( + 59 ) col1, - CAST( - COUNT( * ) AS SIGNED ) * 88 AS col1
----
59
88

skipif mysql # not compatible
query II rowsort label-4758
SELECT ( + 59 ) col1, - CAST ( - COUNT ( * ) AS INTEGER ) * 88 AS col1
----
59
88

query I rowsort
SELECT + 96 * - - 88
----
8448

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT - COUNT( * ) - - - 80 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4760
SELECT - COUNT ( * ) - - - 80 AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4761
SELECT COALESCE ( - 37, - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ), - COUNT( DISTINCT + - COALESCE ( - 79, - 43 * + + ( 61 ) - - 51 ) ) )
----
-37

skipif mysql # not compatible
query I rowsort label-4761
SELECT COALESCE ( - 37, - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ), - COUNT ( DISTINCT + - COALESCE ( - 79, - 43 * + + ( 61 ) - - 51 ) ) )
----
-37

query I rowsort
SELECT - 53 - - 24 AS col2
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4763
SELECT - - 1 DIV + 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4763
SELECT - - 1 / + 7 AS col1
----
0

query I rowsort
SELECT - 67 + - + 93
----
-160

onlyif mysql # aggregate syntax: 
query II rowsort label-4765
SELECT + 80 + + COUNT( DISTINCT 59 ) + 17 * - 82 + + 99 * + 32, + 19 * - + 60 AS col1
----
1855
-1140

skipif mysql # not compatible
query II rowsort label-4765
SELECT + 80 + + COUNT ( DISTINCT 59 ) + 17 * - 82 + + 99 * + 32, + 19 * - + 60 AS col1
----
1855
-1140

query I rowsort
SELECT ALL - 57 + - 13
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT + ( 76 ) - - + 1 + + MIN( CASE 76 WHEN + 84 THEN + 2 END ) * + 84 - + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT + ( 76 ) - - + 1 + + MIN ( CASE 76 WHEN + 84 THEN + 2 END ) * + 84 - + 25 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4769
SELECT 78, - 69 + + COALESCE ( + 13, - COALESCE ( 17, - + 87 ) - CASE - - MIN( ALL - 11 ) WHEN + 40 THEN + - 9 WHEN - 97 - - 31 THEN NULL ELSE + 73 END ) + 11 AS col1
----
78
-45

skipif mysql # not compatible
query II rowsort label-4769
SELECT 78, - 69 + + COALESCE ( + 13, - COALESCE ( 17, - + 87 ) - CASE - - MIN ( ALL - 11 ) WHEN + 40 THEN + - 9 WHEN - 97 - - 31 THEN NULL ELSE + 73 END ) + 11 AS col1
----
78
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4770
SELECT ( - 61 ) + COALESCE ( - 63, + + 77, - + 84 * - + 70 * + 63 + + - 55, + 76 * - + 7 - - + 23 + - CASE 87 WHEN 41 * COUNT( * ) + - 58 * COUNT( DISTINCT 92 ) THEN NULL WHEN 50 THEN + 30 END * + CAST( CAST( 23 AS SIGNED ) - + COUNT( * ) AS SIGNED ) DIV + 7 ) - COUNT( DISTINCT + ( 75 ) - 22 DIV 46 )
----
-125

skipif mysql # not compatible
query I rowsort label-4770
SELECT ( - 61 ) + COALESCE ( - 63, + + 77, - + 84 * - + 70 * + 63 + + - 55, + 76 * - + 7 - - + 23 + - CASE 87 WHEN 41 * COUNT ( * ) + - 58 * COUNT ( DISTINCT 92 ) THEN NULL WHEN 50 THEN + 30 END * + CAST ( CAST ( 23 AS INTEGER ) - + COUNT ( * ) AS INTEGER ) / + 7 ) - COUNT ( DISTINCT + ( 75 ) - 22 / 46 )
----
-125

query I rowsort
SELECT DISTINCT 96 * - 3
----
-288

query I rowsort
SELECT ALL 55 * - 4
----
-220

query I rowsort
SELECT DISTINCT 90 * - + 98
----
-8820

query I rowsort
SELECT DISTINCT 49 - - 83 AS col2
----
132

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

query II rowsort
SELECT + 8 col0, 64 + 42 col1
----
8
106

query I rowsort
SELECT 80 * - 30
----
-2400

onlyif mysql # DIV for integer division: 
query I rowsort label-4778
SELECT ALL 41 DIV 8 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL 41 / 8 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT DISTINCT ( + AVG ( ALL + 61 ) ) / + + CASE + 68 WHEN 93 * - 89 + - 8 + - - 19 * 60 - - + ( + 66 ) * - - MIN( DISTINCT - 51 ) THEN - 63 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT ( + AVG ( ALL + 61 ) ) / + + CASE + 68 WHEN 93 * - 89 + - 8 + - - 19 * 60 - - + ( + 66 ) * - - MIN ( DISTINCT - 51 ) THEN - 63 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT + 35 + 94 + - - 42 DIV + 18 AS col0
----
131

skipif mysql # not compatible
query I rowsort label-4780
SELECT + 35 + 94 + - - 42 / + 18 AS col0
----
131

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

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

query I rowsort
SELECT DISTINCT + 35 * + COALESCE ( + + 25, + - 28 ) col2
----
875

query I rowsort
SELECT ALL - 13 + + 37 AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4784
SELECT ALL - - 41, 89 + - + COUNT( * ) + + 80 * + 97 col0
----
41
7848

skipif mysql # not compatible
query II rowsort label-4784
SELECT ALL - - 41, 89 + - + COUNT ( * ) + + 80 * + 97 col0
----
41
7848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4785
SELECT - CAST( NULL AS SIGNED ) * 43 - 86 * + CASE - - ( + + 75 ) WHEN - 50 THEN + - 78 + - COUNT( * ) * + 99 + + 41 - - 69 * + + 13 * + + COUNT( DISTINCT - - 81 ) WHEN - NULLIF ( - 49, - 93 ) * COUNT( * ) - - 40 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT - CAST ( NULL AS INTEGER ) * 43 - 86 * + CASE - - ( + + 75 ) WHEN - 50 THEN + - 78 + - COUNT ( * ) * + 99 + + 41 - - 69 * + + 13 * + + COUNT ( DISTINCT - - 81 ) WHEN - NULLIF ( - 49, - 93 ) * COUNT ( * ) - - 40 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT - MAX( + + ( 10 ) ) + + - 24 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4786
SELECT - MAX ( + + ( 10 ) ) + + - 24 AS col1
----
-34

query I rowsort
SELECT + 24 + - 97 + + 40 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT - MIN( 42 ) + - ( - 37 ) * - + 35 AS col2
----
-1337

skipif mysql # not compatible
query I rowsort label-4788
SELECT - MIN ( 42 ) + - ( - 37 ) * - + 35 AS col2
----
-1337

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ALL + - COUNT( * ) + - + 37 * 3 AS col1
----
-112

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL + - COUNT ( * ) + - + 37 * 3 AS col1
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT MAX( + 67 ) + - 44
----
23

skipif mysql # not compatible
query I rowsort label-4790
SELECT MAX ( + 67 ) + - 44
----
23

query I rowsort
SELECT 72 * 41 * - 41 + - - 47
----
-120985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4792
SELECT CAST( 72 AS SIGNED ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4792
SELECT CAST ( 72 AS INTEGER ) AS col2
----
72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4794
SELECT ALL - 17 + + CASE - CASE + 2 WHEN 6 THEN + 23 END WHEN ( + + 64 ) THEN + 90 WHEN - + 64 THEN NULL END + + 30 + + 97 * + - 0, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4794
SELECT ALL - 17 + + CASE - CASE + 2 WHEN 6 THEN + 23 END WHEN ( + + 64 ) THEN + 90 WHEN - + 64 THEN NULL END + + 30 + + 97 * + - 0, COUNT ( * ) AS col0
----
NULL
1

query II rowsort
SELECT + 88 col2, 94 AS col2
----
88
94

query I rowsort
SELECT - 1 + + 44
----
43

query I rowsort
SELECT ALL + 25 + 29 AS col1
----
54

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

query I rowsort
SELECT 45 * - 0
----
0

query II rowsort
SELECT - 29 AS col1, - 65 col2
----
-29
-65

query I rowsort
SELECT ALL - 49 * - + 32 AS col0
----
1568

query II rowsort
SELECT 63 AS col0, CASE + - 10 WHEN + + 53 - + 44 THEN - 24 ELSE + ( 41 ) END AS col2
----
63
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4803
SELECT DISTINCT COUNT( * ) - + CAST( - 56 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT COUNT ( * ) - + CAST ( - 56 AS INTEGER )
----
57

query I rowsort
SELECT 71 * + 70 AS col2
----
4970

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL MIN( DISTINCT + 70 ) - + ( + - 16 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL MIN ( DISTINCT + 70 ) - + ( + - 16 ) AS col2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4806
SELECT DISTINCT 43 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT 43 / + 95 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4807
SELECT ALL 97 AS col0, - MIN( ALL 79 ) * - 19 * - COUNT( * ) + + + 78 + - - 53 AS col2
----
97
-1370

skipif mysql # not compatible
query II rowsort label-4807
SELECT ALL 97 AS col0, - MIN ( ALL 79 ) * - 19 * - COUNT ( * ) + + + 78 + - - 53 AS col2
----
97
-1370

query I rowsort
SELECT DISTINCT + 78 - + 97 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT ALL COUNT( + + 48 ) * + 55
----
55

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL COUNT ( + + 48 ) * + 55
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4810
SELECT COUNT( ALL CAST( 5 AS SIGNED ) ) + + 3 - + + 17
----
-13

skipif mysql # not compatible
query I rowsort label-4810
SELECT COUNT ( ALL CAST ( 5 AS INTEGER ) ) + + 3 - + + 17
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-4811
SELECT - 3 AS col0, COUNT( * ) * - 45 + + - 35 AS col0
----
-3
-80

skipif mysql # not compatible
query II rowsort label-4811
SELECT - 3 AS col0, COUNT ( * ) * - 45 + + - 35 AS col0
----
-3
-80

query II rowsort
SELECT ALL 4, 95 AS col0
----
4
95

query II rowsort
SELECT - 5 AS col1, 30 AS col1
----
-5
30

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4815
SELECT - 98 DIV + 51 + + - 35 + + - 38 * + 48 AS col0
----
-1860

skipif mysql # not compatible
query I rowsort label-4815
SELECT - 98 / + 51 + + - 35 + + - 38 * + 48 AS col0
----
-1860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4816
SELECT 25 * - COUNT( * ) DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-4816
SELECT 25 * - COUNT ( * ) / - 82
----
0

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

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

query II rowsort
SELECT ALL - 70 col1, + 6 AS col1
----
-70
6

query I rowsort
SELECT - 33 * 16 + - 92 AS col2
----
-620

query I rowsort
SELECT ( + + ( + - 97 ) ) AS col1
----
-97

query I rowsort
SELECT + + ( + - 23 ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4822
SELECT 47 AS col2, CAST( + CASE 91 WHEN 1 THEN 3 END AS DECIMAL ) + + + 23 * - COUNT( * ) * - COUNT( * ) AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-4822
SELECT 47 AS col2, CAST ( + CASE 91 WHEN 1 THEN 3 END AS REAL ) + + + 23 * - COUNT ( * ) * - COUNT ( * ) AS col2
----
47
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4823
SELECT + + COUNT( * ) * - - 65 + 83 + - CAST( NULL AS SIGNED ) / + 6 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT + + COUNT ( * ) * - - 65 + 83 + - CAST ( NULL AS INTEGER ) / + 6 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4824
SELECT ( + + CASE - CAST( + + NULLIF ( + COUNT( * ), - - 60 + + + COUNT( * ) * + 39 / + + 3 ) AS SIGNED ) WHEN + 96 THEN + + 83 / + 88 END ) * COUNT( * ) * 74 * 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT ( + + CASE - CAST ( + + NULLIF ( + COUNT ( * ), - - 60 + + + COUNT ( * ) * + 39 / + + 3 ) AS INTEGER ) WHEN + 96 THEN + + 83 / + 88 END ) * COUNT ( * ) * 74 * 52 AS col2
----
NULL

query I rowsort
SELECT ALL + + ( 92 ) + - 98 AS col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT DISTINCT 14 DIV - 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT 14 / - 29 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT ALL 18 + + + COUNT( * ) col1
----
19

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL 18 + + + COUNT ( * ) col1
----
19

query II rowsort
SELECT + 60 AS col1, 3 + 14 + 18 col2
----
60
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT DISTINCT + + COUNT( + 80 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT + + COUNT ( + 80 ) AS col2
----
1

query I rowsort
SELECT ALL + + 82 + - 87
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT - 71 * CAST( NULL AS SIGNED ) + + - 51 + 72 + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT - 71 * CAST ( NULL AS INTEGER ) + + - 51 + 72 + - 62
----
NULL

query II rowsort
SELECT ALL - 29 * - 60 AS col0, 26 AS col1
----
1740
26

query I rowsort
SELECT + 15 + + ( - + 11 ) + + 28 * 23
----
648

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT + 20 + - CAST( NULL AS SIGNED ) + + 17 + 11 * 50 * - - 21 * 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT + 20 + - CAST ( NULL AS INTEGER ) + + 17 + 11 * 50 * - - 21 * 15 col1
----
NULL

query I rowsort
SELECT - 26 * + + 54 AS col2
----
-1404

query I rowsort
SELECT DISTINCT NULLIF ( + ( - 37 ), + 41 ) AS col1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT ALL - 18 * - COALESCE ( + 14, - - ( + + 14 ) DIV - ( + 85 ) * + - 99 )
----
252

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL - 18 * - COALESCE ( + 14, - - ( + + 14 ) / - ( + 85 ) * + - 99 )
----
252

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4840
SELECT - CAST( - CAST( + + 77 AS DECIMAL ) AS SIGNED ) - 57 + + - 32 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4840
SELECT - CAST ( - CAST ( + + 77 AS REAL ) AS INTEGER ) - 57 + + - 32 AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4841
SELECT ALL MAX( DISTINCT + - CAST( NULL AS SIGNED ) ), + 17 * + - 36 AS col0
----
NULL
-612

skipif mysql # not compatible
query II rowsort label-4841
SELECT ALL MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ), + 17 * + - 36 AS col0
----
NULL
-612

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4843
SELECT - COALESCE ( 46, - - COALESCE ( - + 34, + CAST( NULL AS SIGNED ) ) ) + - - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-4843
SELECT - COALESCE ( 46, - - COALESCE ( - + 34, + CAST ( NULL AS INTEGER ) ) ) + - - COUNT ( * )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT - MAX( 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-4844
SELECT - MAX ( 32 ) AS col1
----
-32

query I rowsort
SELECT ALL - 56 + ( - NULLIF ( 26, - 20 ) )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT DISTINCT + COUNT( * ) + + + 51, 33 * - 93 + + 17 * 31 col2
----
52
-2542

skipif mysql # not compatible
query II rowsort label-4846
SELECT DISTINCT + COUNT ( * ) + + + 51, 33 * - 93 + + 17 * 31 col2
----
52
-2542

query I rowsort
SELECT - 94 * 13
----
-1222

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT - 79 + + COUNT( * ) + + 54 * 96 + + 62 * + - 27
----
3432

skipif mysql # not compatible
query I rowsort label-4848
SELECT - 79 + + COUNT ( * ) + + 54 * 96 + + 62 * + - 27
----
3432

query I rowsort
SELECT ALL + 80 * 61 + - 37 AS col2
----
4843

query I rowsort
SELECT - 92 + 83 + - + 25 + - + 44 - - 14 + 99 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - 22 * 89 + - NULLIF ( - SUM( ALL - - 29 ), - - 65 + - COUNT( * ) + - 23 ) + + COUNT( * ) AS col2
----
-1928

skipif mysql # not compatible
query I rowsort label-4851
SELECT - 22 * 89 + - NULLIF ( - SUM ( ALL - - 29 ), - - 65 + - COUNT ( * ) + - 23 ) + + COUNT ( * ) AS col2
----
-1928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4852
SELECT ALL 45 * - - 52 AS col1, MAX( - 7 ) * 46 + + + 23 + + 55 * - + 49 * + CAST( - - 1 AS SIGNED ) + + + 69
----
2340
-2925

skipif mysql # not compatible
query II rowsort label-4852
SELECT ALL 45 * - - 52 AS col1, MAX ( - 7 ) * 46 + + + 23 + + 55 * - + 49 * + CAST ( - - 1 AS INTEGER ) + + + 69
----
2340
-2925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4853
SELECT - 34 DIV 44 * + 7 + COUNT( * ) DIV - 54 * 25 + ( 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4853
SELECT - 34 / 44 * + 7 + COUNT ( * ) / - 54 * 25 + ( 33 ) AS col2
----
33

query I rowsort
SELECT + + 13 * 42 AS col1
----
546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4855
SELECT + CAST( NULL AS SIGNED ) + - 51 + - 23 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT + CAST ( NULL AS INTEGER ) + - 51 + - 23 * 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT ALL - - 38 * + NULLIF ( - COUNT( * ), 28 ) * + - 9
----
342

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL - - 38 * + NULLIF ( - COUNT ( * ), 28 ) * + - 9
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT + ( + - 56 ) * + 30 + COUNT( * ) - - 31 * - + 40
----
-2919

skipif mysql # not compatible
query I rowsort label-4857
SELECT + ( + - 56 ) * + 30 + COUNT ( * ) - - 31 * - + 40
----
-2919

query I rowsort
SELECT + - 78 * + 61 AS col2
----
-4758

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4859
SELECT + - 39 + + + COUNT( * ) DIV + 36
----
-39

skipif mysql # not compatible
query I rowsort label-4859
SELECT + - 39 + + + COUNT ( * ) / + 36
----
-39

query I rowsort
SELECT + - 85 * 99 * + 50 + - 44 + 25 AS col1
----
-420769

query I rowsort
SELECT - 5 + 51
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT + ( + + 56 ) * - MAX( - - 29 )
----
-1624

skipif mysql # not compatible
query I rowsort label-4863
SELECT + ( + + 56 ) * - MAX ( - - 29 )
----
-1624

onlyif mysql # DIV for integer division: 
query I rowsort label-4864
SELECT ALL 79 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL 79 / + 83
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4865
SELECT + ( + + ( 20 ) ) DIV NULLIF ( + 73, - + 49 ) + + 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4865
SELECT + ( + + ( 20 ) ) / NULLIF ( + 73, - + 49 ) + + 19 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL COALESCE ( - COALESCE ( - 29, - - ( 28 ), - 29 ), COUNT( * ), - + 15 )
----
29

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL COALESCE ( - COALESCE ( - 29, - - ( 28 ), - 29 ), COUNT ( * ), - + 15 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT + COUNT( ALL CASE 13 WHEN + ( 4 ) * - 22 THEN + + 69 END ) + - 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4867
SELECT + COUNT ( ALL CASE 13 WHEN + ( 4 ) * - 22 THEN + + 69 END ) + - 27 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4868
SELECT ALL 37, + 61 * 9 * + SUM( + 45 ) AS col1
----
37
24705

skipif mysql # not compatible
query II rowsort label-4868
SELECT ALL 37, + 61 * 9 * + SUM ( + 45 ) AS col1
----
37
24705

onlyif mysql # DIV for integer division: 
query I rowsort label-4869
SELECT - 60 DIV + 28
----
-2

skipif mysql # not compatible
query I rowsort label-4869
SELECT - 60 / + 28
----
-2

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

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

query I rowsort
SELECT - 36 * - - 21 AS col0
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT + COALESCE ( + MIN( + 80 ), + 30 * + - 57 + + 44 + + 69 * 35 * + ( - 76 ) * - 48 + - COUNT( * ) ) + + 13 * + 56 * + 40 AS col0
----
29200

skipif mysql # not compatible
query I rowsort label-4872
SELECT + COALESCE ( + MIN ( + 80 ), + 30 * + - 57 + + 44 + + 69 * 35 * + ( - 76 ) * - 48 + - COUNT ( * ) ) + + 13 * + 56 * + 40 AS col0
----
29200

query I rowsort
SELECT + 7 * + NULLIF ( + 39, 28 * + - 97 * + ( + + COALESCE ( + 33, 94 ) ) * - 32 ) * - - 71 + + 76
----
19459

onlyif mysql # DIV for integer division: 
query I rowsort label-4874
SELECT ALL - 60 DIV - 36
----
1

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL - 60 / - 36
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT + 24 + + COALESCE ( - 67, - - ( - COUNT( * ) ), - - COUNT( + - 92 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-4875
SELECT + 24 + + COALESCE ( - 67, - - ( - COUNT ( * ) ), - - COUNT ( + - 92 ) )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL 30 + 44 * + - 14 * COUNT( + + 12 ) AS col2
----
-586

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL 30 + 44 * + - 14 * COUNT ( + + 12 ) AS col2
----
-586

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT DISTINCT - COUNT( * ) * 8
----
-8

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT - COUNT ( * ) * 8
----
-8

query I rowsort
SELECT ALL + 88 + - 80
----
8

query II rowsort
SELECT 20 AS col1, - 79 * - - 55 AS col1
----
20
-4345

query II rowsort
SELECT ALL CASE + AVG ( DISTINCT - CASE - 69 WHEN + 0 THEN + 57 END ) WHEN + 23 THEN 91 END AS col2, 63 * - + 17 * + 46 + + 39
----
NULL
-49227

query I rowsort
SELECT DISTINCT - 43 + 29 + - 64
----
-78

query I rowsort
SELECT - 37 + - 59 - + + ( + 24 )
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT - 90 * + MAX( ALL - 74 ) + 91 + + + 74 + - + 64 + - 76 * - ( + 92 ) - 50 * - 94 AS col1
----
18453

skipif mysql # not compatible
query I rowsort label-4883
SELECT - 90 * + MAX ( ALL - 74 ) + 91 + + + 74 + - + 64 + - 76 * - ( + 92 ) - 50 * - 94 AS col1
----
18453

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL + - COALESCE ( + COUNT( DISTINCT + 70 ), + + 13 - 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL + - COALESCE ( + COUNT ( DISTINCT + 70 ), + + 13 - 37 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4885
SELECT 45 AS col1, COUNT( * ) col2
----
45
1

skipif mysql # not compatible
query II rowsort label-4885
SELECT 45 AS col1, COUNT ( * ) col2
----
45
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4886
SELECT ALL - + CAST( NULL AS DECIMAL ) / + COALESCE ( - 17, - - 59 ) + - CASE 61 WHEN - - 50 * COUNT( * ) THEN AVG ( ALL + 48 ) WHEN CAST( NULL AS DECIMAL ) THEN + ( - + 64 ) * - 34 WHEN + 50 * 39 + - 38 THEN NULL END + 83 / 92 * 82 + 23 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL - + CAST ( NULL AS REAL ) / + COALESCE ( - 17, - - 59 ) + - CASE 61 WHEN - - 50 * COUNT ( * ) THEN AVG ( ALL + 48 ) WHEN CAST ( NULL AS REAL ) THEN + ( - + 64 ) * - 34 WHEN + 50 * 39 + - 38 THEN NULL END + 83 / 92 * 82 + 23 * - 66
----
NULL

query II rowsort
SELECT DISTINCT - - 52, 15 AS col2
----
52
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4888
SELECT ALL + - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) - + - 88, COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4888
SELECT ALL + - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) - + - 88, COUNT ( * ) col1
----
NULL
1

query I rowsort
SELECT + ( - 61 ) * 96 - + 33 + - - 85 + - 74 AS col1
----
-5878

query II rowsort
SELECT + - 39, 48 + - 85 AS col2
----
-39
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT + 90 * + 52 + - 1 - + + MIN( - + 89 ) AS col1
----
4768

skipif mysql # not compatible
query I rowsort label-4891
SELECT + 90 * + 52 + - 1 - + + MIN ( - + 89 ) AS col1
----
4768

query I rowsort
SELECT 18 * - 81
----
-1458

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT 77 * + + NULLIF ( - 3, + 65 + + COUNT( * ) * + 69 ) * - 88
----
20328

skipif mysql # not compatible
query I rowsort label-4893
SELECT 77 * + + NULLIF ( - 3, + 65 + + COUNT ( * ) * + 69 ) * - 88
----
20328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4894
SELECT + COUNT( * ) * - + 24 DIV MAX( DISTINCT - 95 ) * + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4894
SELECT + COUNT ( * ) * - + 24 / MAX ( DISTINCT - 95 ) * + 85 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4895
SELECT DISTINCT + 45 * - ( + CAST( - - 6 AS SIGNED ) ) AS col2, + 46
----
-270
46

skipif mysql # not compatible
query II rowsort label-4895
SELECT DISTINCT + 45 * - ( + CAST ( - - 6 AS INTEGER ) ) AS col2, + 46
----
-270
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT SUM( ALL 0 ) * + + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4896
SELECT SUM ( ALL 0 ) * + + 75 AS col2
----
0

query II rowsort
SELECT ( + 1 ) * + ( + - 69 ) AS col2, - 83 AS col2
----
-69
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-4898
SELECT ALL COUNT( * ) + + + 7 + + 67 + - 54 + 56 AS col2, - 88 AS col0
----
77
-88

skipif mysql # not compatible
query II rowsort label-4898
SELECT ALL COUNT ( * ) + + + 7 + + 67 + - 54 + 56 AS col2, - 88 AS col0
----
77
-88

query I rowsort
SELECT 99 + + 52 AS col2
----
151

query II rowsort
SELECT ALL 89 + 82 AS col0, 32 + 72 + + - 50
----
171
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT 24 + - COALESCE ( + COALESCE ( + COUNT( * ), + + 68, + 31 - 46 ), + 28 + + 53 * + 67 * + + 55 )
----
23

skipif mysql # not compatible
query I rowsort label-4901
SELECT 24 + - COALESCE ( + COALESCE ( + COUNT ( * ), + + 68, + 31 - 46 ), + 28 + + 53 * + 67 * + + 55 )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4902
SELECT 31 DIV + 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4902
SELECT 31 / + 60 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4903
SELECT COALESCE ( 58, - CAST( + SUM( - 58 ) AS SIGNED ) * + COUNT( * ) ) - 63 + + 67 * - 93 col0
----
-6236

skipif mysql # not compatible
query I rowsort label-4903
SELECT COALESCE ( 58, - CAST ( + SUM ( - 58 ) AS INTEGER ) * + COUNT ( * ) ) - 63 + + 67 * - 93 col0
----
-6236

onlyif mysql # aggregate syntax: 
query II rowsort label-4904
SELECT 14 * + CASE 18 WHEN - 63 + - 90 * 65 - 81 + - + 39 / - + COALESCE ( 81, - SUM( ALL - 22 ), - 98 ) THEN + - 24 END AS col1, 53 + 91 * - 82 AS col0
----
NULL
-7409

skipif mysql # not compatible
query II rowsort label-4904
SELECT 14 * + CASE 18 WHEN - 63 + - 90 * 65 - 81 + - + 39 / - + COALESCE ( 81, - SUM ( ALL - 22 ), - 98 ) THEN + - 24 END AS col1, 53 + 91 * - 82 AS col0
----
NULL
-7409

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT - COUNT( * ) * + - 44 * + + ( 50 ) * 38
----
83600

skipif mysql # not compatible
query I rowsort label-4905
SELECT - COUNT ( * ) * + - 44 * + + ( 50 ) * 38
----
83600

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT + 44 DIV - 84 * NULLIF ( + 79, + 16 )
----
0

skipif mysql # not compatible
query I rowsort label-4906
SELECT + 44 / - 84 * NULLIF ( + 79, + 16 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4907
SELECT DISTINCT - + 1 DIV - 30 + + 73 + - MIN( ALL - 78 )
----
151

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT - + 1 / - 30 + + 73 + - MIN ( ALL - 78 )
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT + COUNT( * ) * - 65 + 50 + 42 * - COUNT( * ) * + 22 + CASE - 50 WHEN 53 THEN + - COUNT( * ) + + + COUNT( * ) END + 69 + - MAX( DISTINCT 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT + COUNT ( * ) * - 65 + 50 + 42 * - COUNT ( * ) * + 22 + CASE - 50 WHEN 53 THEN + - COUNT ( * ) + + + COUNT ( * ) END + 69 + - MAX ( DISTINCT 28 )
----
NULL

query I rowsort
SELECT + 77 + + + 68 col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT + 60 - + NULLIF ( + ( + MIN( DISTINCT 32 ) ), ( + 59 ) ) col0
----
28

skipif mysql # not compatible
query I rowsort label-4910
SELECT + 60 - + NULLIF ( + ( + MIN ( DISTINCT 32 ) ), ( + 59 ) ) col0
----
28

query I rowsort
SELECT DISTINCT - 50 * - 89 + - + 7
----
4443

query I rowsort
SELECT ALL - NULLIF ( - 66, + 11 / - + NULLIF ( - 39, - - 11 ) + 99 - - 44 + 5 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT + 18 + + - SUM( 88 ) + + - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-4913
SELECT + 18 + + - SUM ( 88 ) + + - COUNT ( * )
----
-71

query I rowsort
SELECT ALL - 6 * - COALESCE ( + 80, - - 4 * 90 + + + 99, - 8 )
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT - NULLIF ( SUM( ALL - 91 ), - 75 ) + 64
----
155

skipif mysql # not compatible
query I rowsort label-4915
SELECT - NULLIF ( SUM ( ALL - 91 ), - 75 ) + 64
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4916
SELECT ( CASE 67 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - - 85 * - - 13 + - + 53 DIV - COUNT( * ) END ) * ( - - 8 ) + + + 23 + + 40 - 22 AS col0
----
9305

skipif mysql # not compatible
query I rowsort label-4916
SELECT ( CASE 67 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - - 85 * - - 13 + - + 53 / - COUNT ( * ) END ) * ( - - 8 ) + + + 23 + + 40 - 22 AS col0
----
9305

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

query I rowsort
SELECT 9 + + 31 + + - 62 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT 80 * + 71 * + - SUM( ALL 74 )
----
-420320

skipif mysql # not compatible
query I rowsort label-4919
SELECT 80 * + 71 * + - SUM ( ALL 74 )
----
-420320

query I rowsort
SELECT ALL + 33 + - + 5 AS col1
----
28

query I rowsort
SELECT DISTINCT 78 + + 65
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4922
SELECT ALL - COUNT( ALL + 10 ) + 10 DIV - 52 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL - COUNT ( ALL + 10 ) + 10 / - 52 AS col2
----
-1

query I rowsort
SELECT ALL - 60 * - 62 AS col2
----
3720

query I rowsort
SELECT ALL 71 + 87
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT DISTINCT MIN( - - 3 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT MIN ( - - 3 ) col0
----
3

query I rowsort
SELECT DISTINCT + COALESCE ( - 84, - 73 * + 55, 91 * + - 93 ) + + 10
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT COUNT( * ) + + + 80 col2
----
81

skipif mysql # not compatible
query I rowsort label-4927
SELECT COUNT ( * ) + + + 80 col2
----
81

query I rowsort
SELECT 24 * - 97 AS col2
----
-2328

query I rowsort
SELECT ALL COALESCE ( - 86, + 82 - 80 )
----
-86

query I rowsort
SELECT DISTINCT 12 - + 87
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4931
SELECT - - 99 AS col1, - 99 + 68 + - CAST( NULL AS DECIMAL ) * 60 AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-4931
SELECT - - 99 AS col1, - 99 + 68 + - CAST ( NULL AS REAL ) * 60 AS col0
----
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT ALL 30 - CAST( + + 55 AS SIGNED ) * 81
----
-4425

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL 30 - CAST ( + + 55 AS INTEGER ) * 81
----
-4425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4933
SELECT ALL 69 * - + 68 + - ( - + 74 ) + + + COUNT( * ) + - NULLIF ( COUNT( * ), + CAST( - + COUNT( * ) AS SIGNED ) ) * + 4
----
-4621

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL 69 * - + 68 + - ( - + 74 ) + + + COUNT ( * ) + - NULLIF ( COUNT ( * ), + CAST ( - + COUNT ( * ) AS INTEGER ) ) * + 4
----
-4621

query I rowsort
SELECT + 8 + - - 55 - + ( 41 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT - - MIN( ALL 46 )
----
46

skipif mysql # not compatible
query I rowsort label-4935
SELECT - - MIN ( ALL 46 )
----
46

query I rowsort
SELECT + + 76 + + 89 AS col0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ALL 96 - + - CASE 13 WHEN + COUNT( * ) - - 81 THEN + 70 END + - + MAX( DISTINCT + 87 ) * + + ( 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL 96 - + - CASE 13 WHEN + COUNT ( * ) - - 81 THEN + 70 END + - + MAX ( DISTINCT + 87 ) * + + ( 21 )
----
NULL

query I rowsort
SELECT + - 2 * 64 AS col2
----
-128

query I rowsort
SELECT ALL 58 * 81
----
4698

query II rowsort
SELECT + + 41 * NULLIF ( + 73, + 9 ) * + 33 AS col2, + 74
----
98769
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4941
SELECT ALL + - 31 DIV 36 - 57 * 87 AS col0
----
-4959

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL + - 31 / 36 - 57 * 87 AS col0
----
-4959

query I rowsort
SELECT + 15 * + ( - 92 )
----
-1380

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT + 82 * - MIN( + - 30 ) + COUNT( - 82 ) + + 72 AS col1
----
2533

skipif mysql # not compatible
query I rowsort label-4943
SELECT + 82 * - MIN ( + - 30 ) + COUNT ( - 82 ) + + 72 AS col1
----
2533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4944
SELECT - - 0 * - - 51 + COUNT( * ) + - COALESCE ( + 14, - 35, CASE + 7 WHEN COUNT( * ) * + CAST( NULL AS SIGNED ) * + ( + 8 ) / CASE WHEN ( NOT ( - 82 ) = NULL ) THEN ( - 30 ) ELSE 69 * - 4 + + 24 END - 14 THEN - COUNT( * ) WHEN - CAST( 26 AS SIGNED ) THEN + 10 ELSE 74 END ) + 53 * - CAST( - 33 AS SIGNED ) * + COUNT( * ) * 58 col0
----
101429

skipif mysql # not compatible
query I rowsort label-4944
SELECT - - 0 * - - 51 + COUNT ( * ) + - COALESCE ( + 14, - 35, CASE + 7 WHEN COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + ( + 8 ) / CASE WHEN ( NOT ( - 82 ) = NULL ) THEN ( - 30 ) ELSE 69 * - 4 + + 24 END - 14 THEN - COUNT ( * ) WHEN - CAST ( 26 AS INTEGER ) THEN + 10 ELSE 74 END ) + 53 * - CAST ( - 33 AS INTEGER ) * + COUNT ( * ) * 58 col0
----
101429

query I rowsort
SELECT NULLIF ( + 3, + + 70 / - 37 * + 48 * - 54 ) AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4946
SELECT + 85 DIV 62 - + 23 + - 57
----
-79

skipif mysql # not compatible
query I rowsort label-4946
SELECT + 85 / 62 - + 23 + - 57
----
-79

query I rowsort
SELECT ALL + CASE - 1 WHEN + 69 + - 93 THEN NULL WHEN + 26 * - - ( + 26 ) THEN NULL WHEN - + 37 * 12 THEN NULL ELSE - 25 END AS col1
----
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + 75 * ( - 56 ) col2
----
-4201

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + 75 * ( - 56 ) col2
----
-4201

onlyif mysql # aggregate syntax: 
query II rowsort label-4950
SELECT ALL + 38 * + SUM( + 70 ) * - - 67 + ( - 79 ) AS col0, SUM( + 6 ) AS col0
----
178141
6

skipif mysql # not compatible
query II rowsort label-4950
SELECT ALL + 38 * + SUM ( + 70 ) * - - 67 + ( - 79 ) AS col0, SUM ( + 6 ) AS col0
----
178141
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL + NULLIF ( + 25, - AVG ( + NULLIF ( + 52, - 11 / - + 48 ) ) - - 80 * + COUNT( * ) / - COALESCE ( - + 93, + + 33, - 21 ) + - NULLIF ( - 9, + 98 ) + + + ( + - 74 ) + NULLIF ( SUM( ALL - 39 ), - 67 * 19 + - 12 ) / 96 * + ( 8 ) ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL + NULLIF ( + 25, - AVG ( + NULLIF ( + 52, - 11 / - + 48 ) ) - - 80 * + COUNT ( * ) / - COALESCE ( - + 93, + + 33, - 21 ) + - NULLIF ( - 9, + 98 ) + + + ( + - 74 ) + NULLIF ( SUM ( ALL - 39 ), - 67 * 19 + - 12 ) / 96 * + ( 8 ) ) AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT ALL COALESCE ( + - 23, - 70 ) * - 79 + - 46 + - + CAST( 42 AS SIGNED )
----
1729

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL COALESCE ( + - 23, - 70 ) * - 79 + - 46 + - + CAST ( 42 AS INTEGER )
----
1729

query I rowsort
SELECT + 40 * + + 11 + - ( 23 ) + 77
----
494

onlyif mysql # DIV for integer division: 
query I rowsort label-4954
SELECT - 30 DIV + + 78
----
0

skipif mysql # not compatible
query I rowsort label-4954
SELECT - 30 / + + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL - 11 * + - 75 - - COUNT( * ) - 51 + + 94 * - 60 * - 46 * 50 AS col1
----
12972775

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL - 11 * + - 75 - - COUNT ( * ) - 51 + + 94 * - 60 * - 46 * 50 AS col1
----
12972775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4956
SELECT - 42 * ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT - 42 * ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 47 * + - 68
----
3196

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4961
SELECT - 94 + - 20 DIV + COUNT( * ) + 95 + + 57 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-4961
SELECT - 94 + - 20 / + COUNT ( * ) + 95 + + 57 AS col0
----
38

query I rowsort
SELECT ALL + 39 - 34
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT COALESCE ( MAX( + 26 ), - 23 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT COALESCE ( MAX ( + 26 ), - 23 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4964
SELECT ALL 82 * + COUNT( * ) AS col0, 79
----
82
79

skipif mysql # not compatible
query II rowsort label-4964
SELECT ALL 82 * + COUNT ( * ) AS col0, 79
----
82
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4965
SELECT 36, + CAST( NULL AS SIGNED ) * - 0 AS col2
----
36
NULL

skipif mysql # not compatible
query II rowsort label-4965
SELECT 36, + CAST ( NULL AS INTEGER ) * - 0 AS col2
----
36
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT - 84 DIV - 18 - 3 + - - 34 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4967
SELECT - 84 / - 18 - 3 + - - 34 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4968
SELECT ALL + 86 DIV + + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + 86 / + + 88 AS col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4970
SELECT + 97 + + - CASE - 51 WHEN 71 THEN NULL WHEN ( + NULLIF ( + - CASE 11 WHEN 57 + 1 THEN 33 + - + 0 WHEN - 80 + - 93 + + 28 + + 55 THEN - - 26 + - 41 DIV + CASE - 36 WHEN 41 * + CAST( NULL AS SIGNED ) + + 29 THEN 53 * 54 WHEN 82 THEN NULL ELSE NULL END END, AVG ( - 52 ) DIV 30 ) ) THEN NULL ELSE + CASE 47 WHEN 63 + - 78 THEN NULL ELSE - 6 DIV ( 82 ) - 89 END - + CASE - 22 + - 21 WHEN 23 - + 65 THEN CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - COUNT( * ) ELSE 59 END * 82 END + + 80 AS col2
----
5104

skipif mysql # not compatible
query I rowsort label-4970
SELECT + 97 + + - CASE - 51 WHEN 71 THEN NULL WHEN ( + NULLIF ( + - CASE 11 WHEN 57 + 1 THEN 33 + - + 0 WHEN - 80 + - 93 + + 28 + + 55 THEN - - 26 + - 41 / + CASE - 36 WHEN 41 * + CAST ( NULL AS INTEGER ) + + 29 THEN 53 * 54 WHEN 82 THEN NULL ELSE NULL END END, AVG ( - 52 ) / 30 ) ) THEN NULL ELSE + CASE 47 WHEN 63 + - 78 THEN NULL ELSE - 6 / ( 82 ) - 89 END - + CASE - 22 + - 21 WHEN 23 - + 65 THEN CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - COUNT ( * ) ELSE 59 END * 82 END + + 80 AS col2
----
5104

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT - - 11 * + - SUM( - 6 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4971
SELECT - - 11 * + - SUM ( - 6 ) AS col2
----
66

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

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

query I rowsort
SELECT - 59 - - - 43
----
-102

query I rowsort
SELECT ALL 30 * 10 AS col0
----
300

query I rowsort
SELECT ALL + - ( 85 ) + - - 91
----
6

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

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT - - 50 + - - 99 * - COUNT ( * ) AS col2
----
-49

query I rowsort
SELECT 4 * - 16 - - 15 + - + 76 * - 93 * 16
----
113039

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT - COUNT( * ) * 67 - + - 0 * - 9 + 68
----
1

skipif mysql # not compatible
query I rowsort label-4980
SELECT - COUNT ( * ) * 67 - + - 0 * - 9 + 68
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT ALL 31 / + COUNT( * ) + - 70 + CASE + 97 WHEN + 79 * - - 77 + - ( + COUNT( * ) ) THEN COUNT( * ) * COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL 31 / + COUNT ( * ) + - 70 + CASE + 97 WHEN + 79 * - - 77 + - ( + COUNT ( * ) ) THEN COUNT ( * ) * COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 73 * 13 AS col0
----
949

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

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT ( - - COUNT ( * ) ) / + 82 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4985
SELECT DISTINCT 12 DIV - NULLIF ( - 78, - CASE + - 86 WHEN - - 21 * + 16 THEN NULL WHEN - COUNT( * ) + - CASE - 96 WHEN 7 * - - 5 THEN + + ( - + 16 ) END THEN - 70 * + + 3 ELSE - MAX( ALL - 31 ) END ) * - - CAST( - 96 AS SIGNED ) + - ( - - COUNT( * ) ) + - 94
----
-95

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT 12 / - NULLIF ( - 78, - CASE + - 86 WHEN - - 21 * + 16 THEN NULL WHEN - COUNT ( * ) + - CASE - 96 WHEN 7 * - - 5 THEN + + ( - + 16 ) END THEN - 70 * + + 3 ELSE - MAX ( ALL - 31 ) END ) * - - CAST ( - 96 AS INTEGER ) + - ( - - COUNT ( * ) ) + - 94
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4986
SELECT DISTINCT + CAST( 57 AS SIGNED ) * + 17 + ( - 28 )
----
941

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT + CAST ( 57 AS INTEGER ) * + 17 + ( - 28 )
----
941

query I rowsort
SELECT ALL + ( + - 20 ) * + 85 - + 3
----
-1703

query I rowsort
SELECT + ( 43 ) col1
----
43

query I rowsort
SELECT ( - + 30 ) col2
----
-30

query I rowsort
SELECT - 80 * + - 36 + + 91 - + 77
----
2894

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT MIN( DISTINCT + 62 ) * 39
----
2418

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT MIN ( DISTINCT + 62 ) * 39
----
2418

query II rowsort
SELECT + 18 * - 38, 83 * + 85 col0
----
-684
7055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT CASE 15 WHEN - 45 * 45 THEN NULL WHEN + - 38 THEN NULL WHEN + CAST( - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) + - + 73 - 36 THEN NULL ELSE + 54 * + 84 END AS col1
----
4536

skipif mysql # not compatible
query I rowsort label-4993
SELECT CASE 15 WHEN - 45 * 45 THEN NULL WHEN + - 38 THEN NULL WHEN + CAST ( - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) + - + 73 - 36 THEN NULL ELSE + 54 * + 84 END AS col1
----
4536

query I rowsort
SELECT ALL - 90 * 37 - ( - 79 )
----
-3251

onlyif mysql # aggregate syntax: 
query II rowsort label-4995
SELECT 40 * + 10, - 22 * COUNT( * ) AS col2
----
400
-22

skipif mysql # not compatible
query II rowsort label-4995
SELECT 40 * + 10, - 22 * COUNT ( * ) AS col2
----
400
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT - 77 + + COALESCE ( 89, - + 9 * + 77 * - 4, MIN( 58 ) * - 42 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4996
SELECT - 77 + + COALESCE ( 89, - + 9 * + 77 * - 4, MIN ( 58 ) * - 42 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT - MAX( DISTINCT - - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-4997
SELECT - MAX ( DISTINCT - - 61 )
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-4998
SELECT + 21 * 30 DIV 66 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4998
SELECT + 21 * 30 / 66 AS col0
----
9

query I rowsort
SELECT 59 * - - 91 * - + ( + + 21 ) AS col2
----
-112749

onlyif mysql # aggregate syntax: 
query II rowsort label-5000
SELECT - ( + - COUNT( * ) ) + - + 86 AS col2, 34
----
-85
34

skipif mysql # not compatible
query II rowsort label-5000
SELECT - ( + - COUNT ( * ) ) + - + 86 AS col2, 34
----
-85
34

query I rowsort
SELECT 8 - + + 7 * 76 AS col0
----
-524

query I rowsort
SELECT 39 + - 84 * - 4 AS col2
----
375

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT DISTINCT + - 22 DIV - + 70 + 92
----
92

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT + - 22 / - + 70 + 92
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT ALL - - MIN( DISTINCT + + ( 29 ) ) + + - 85 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL - - MIN ( DISTINCT + + ( 29 ) ) + + - 85 AS col0
----
-56

query I rowsort
SELECT 8 + - - 29 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL + COUNT( * ) + 25 * + 8
----
201

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL + COUNT ( * ) + 25 * + 8
----
201

query I rowsort
SELECT 31 + - 55
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT - MAX( DISTINCT 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-5008
SELECT - MAX ( DISTINCT 44 ) AS col1
----
-44

query I rowsort
SELECT ALL 20 + - + 41
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5010
SELECT ALL + SUM( 14 ) + + - CAST( NULL AS SIGNED ) * + ( + - 29 ) / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL + SUM ( 14 ) + + - CAST ( NULL AS INTEGER ) * + ( + - 29 ) / - CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT ALL - 73 AS col2, 78
----
-73
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT DISTINCT + 56 - + - MAX( + + 69 ) + - 56
----
69

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT + 56 - + - MAX ( + + 69 ) + - 56
----
69

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

skipif mysql # not compatible
query I rowsort label-5013
SELECT ( + ( + + SUM ( + + 17 ) ) ) / + + COUNT ( * )
----
17

query I rowsort
SELECT 38 * - 22 * + 61 - 54
----
-51050

onlyif mysql # DIV for integer division: 
query I rowsort label-5015
SELECT 40 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-5015
SELECT 40 / - 33
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5016
SELECT DISTINCT 0 DIV - + 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT 0 / - + 25 AS col2
----
0

query I rowsort
SELECT 23 + - - 64 + + 42 AS col2
----
129

query I rowsort
SELECT 59 - 34
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT ALL 47 DIV - 2 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL 47 / - 2 AS col0
----
-23

query I rowsort
SELECT 74 * + 21 AS col2
----
1554

query I rowsort
SELECT ALL 62 + - 21 AS col0
----
41

query I rowsort
SELECT 20 * - 47 * - 32 * - 11 + - 57 AS col2
----
-330937

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT - MAX( - - 29 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-5023
SELECT - MAX ( - - 29 ) AS col1
----
-29

query I rowsort
SELECT ALL + 34 * - 21 AS col0
----
-714

query I rowsort
SELECT ALL + 65 + - - 42 * + 62 + 73
----
2742

query I rowsort
SELECT DISTINCT 47 + 47 AS col1
----
94

query II rowsort
SELECT ALL + 89 AS col2, + 36
----
89
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT + ( + + 93 ) + + COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5028
SELECT + ( + + 93 ) + + COUNT ( * ) AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5029
SELECT ALL + CASE + - NULLIF ( COUNT( ALL + + CAST( NULL AS SIGNED ) ), + - ( + COUNT( * ) ) ) WHEN 42 THEN + + 27 * CAST( NULL AS SIGNED ) * + ( 9 ) + COUNT( * ) + + 77 + + CAST( NULL AS SIGNED ) END + - ( + 74 ) + + + MIN( ALL 21 ) + - + 20 + + - 69 * + ( 83 ) * + 40 / 17 + 93 * 33 * 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + CASE + - NULLIF ( COUNT ( ALL + + CAST ( NULL AS INTEGER ) ), + - ( + COUNT ( * ) ) ) WHEN 42 THEN + + 27 * CAST ( NULL AS INTEGER ) * + ( 9 ) + COUNT ( * ) + + 77 + + CAST ( NULL AS INTEGER ) END + - ( + 74 ) + + + MIN ( ALL 21 ) + - + 20 + + - 69 * + ( 83 ) * + 40 / 17 + 93 * 33 * 44 AS col2
----
NULL

query I rowsort
SELECT ALL + + 32 + + + 64 AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT ALL - + 53 DIV - + 5
----
10

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL - + 53 / - + 5
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT DISTINCT + 88 - - - MAX( 13 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT + 88 - - - MAX ( 13 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT ALL COUNT( ALL - + 17 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL COUNT ( ALL - + 17 ) AS col2
----
1

query II rowsort
SELECT 15 - 49 AS col0, - 97
----
-34
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5035
SELECT ALL - 15 * 82 DIV - + 64 col1
----
19

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL - 15 * 82 / - + 64 col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5036
SELECT 95 / + CAST( NULL AS SIGNED ) * 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5036
SELECT 95 / + CAST ( NULL AS INTEGER ) * 38 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5037
SELECT 5 + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5038
SELECT CASE - MAX( DISTINCT + + 35 ) WHEN + - 95 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5038
SELECT CASE - MAX ( DISTINCT + + 35 ) WHEN + - 95 THEN CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT 43 * - CAST( - 42 AS SIGNED ) + + + 98 - - 39
----
1943

skipif mysql # not compatible
query I rowsort label-5039
SELECT 43 * - CAST ( - 42 AS INTEGER ) + + + 98 - - 39
----
1943

query I rowsort
SELECT 50 - + - 57 + 9 * - 59 + - 15
----
-439

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5042
SELECT - 47 * + CAST( NULL AS SIGNED ) AS col2, - 61
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-5042
SELECT - 47 * + CAST ( NULL AS INTEGER ) AS col2, - 61
----
NULL
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-5043
SELECT ALL - ( + 86 ) DIV 32
----
-2

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL - ( + 86 ) / 32
----
-2

query I rowsort
SELECT - 76 * - 50 * - 87 * - 40 AS col1
----
13224000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5045
SELECT + COUNT( * ) * + - 41 + - 88 + 28 + - 31 * + ( 61 ) + + + 90 * 38 + 90 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5045
SELECT + COUNT ( * ) * + - 41 + - 88 + 28 + - 31 * + ( 61 ) + + + 90 * 38 + 90 - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - 90 * 81 AS col1, 88 * 32 AS col1
----
-7290
2816

query I rowsort
SELECT 17 * 16 + + 19
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT ALL 10 * - 89 * + 99 * - 65 + - + 16 + 68 + + 37 * + COUNT( * ) + - - 19 AS col0
----
5727258

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL 10 * - 89 * + 99 * - 65 + - + 16 + 68 + + 37 * + COUNT ( * ) + - - 19 AS col0
----
5727258

query I rowsort
SELECT DISTINCT - 85 * + 79 * 91 * - 93 + - + 56 AS col0
----
56828989

onlyif mysql # aggregate syntax: 
query II rowsort label-5050
SELECT DISTINCT + 27 + - - ( + 92 ) * + - COUNT( * ) AS col2, -