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, - 99
----
-65
-99

skipif mysql # not compatible
query II rowsort label-5050
SELECT DISTINCT + 27 + - - ( + 92 ) * + - COUNT ( * ) AS col2, - 99
----
-65
-99

query I rowsort
SELECT DISTINCT + ( - 34 ) + 89 AS col0
----
55

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

skipif mysql # not compatible
query I rowsort label-5052
SELECT + MAX ( 33 )
----
33

query I rowsort
SELECT ALL + 94 + - ( - 82 ) AS col2
----
176

query I rowsort
SELECT + 66 * 67 AS col2
----
4422

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5055
SELECT ALL NULLIF ( + COUNT( * ), 66 * 61 * + 12 ) DIV - 36 + + 4 + + 60 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL NULLIF ( + COUNT ( * ), 66 * 61 * + 12 ) / - 36 + + 4 + + 60 AS col1
----
64

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

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT 54 / + - COUNT ( * )
----
-54

query I rowsort
SELECT ALL + 11 + + 97 * 64
----
6219

query I rowsort
SELECT + + 72 - - 5
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT DISTINCT - MAX( - + 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT - MAX ( - + 43 ) AS col0
----
43

query I rowsort
SELECT ALL 25 - 33 + + + 90 AS col2
----
82

query I rowsort
SELECT DISTINCT - 84 - - 11 - + 55 AS col2
----
-128

query I rowsort
SELECT - 55 + - 86 AS col0
----
-141

query I rowsort
SELECT + 25 * + 68
----
1700

query I rowsort
SELECT - 31 + - 39
----
-70

query I rowsort
SELECT DISTINCT + ( + + 21 ) - - + 17 col0
----
38

query II rowsort
SELECT 92 AS col0, + 91 AS col2
----
92
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT - COALESCE ( + 66, - 99 - + NULLIF ( + + COUNT( * ), + 39 ) + + COUNT( * ) ) + - 83
----
-149

skipif mysql # not compatible
query I rowsort label-5068
SELECT - COALESCE ( + 66, - 99 - + NULLIF ( + + COUNT ( * ), + 39 ) + + COUNT ( * ) ) + - 83
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5069
SELECT - 95 * 70 * 57, 82 + ( - CAST( NULL AS SIGNED ) ) col1
----
-379050
NULL

skipif mysql # not compatible
query II rowsort label-5069
SELECT - 95 * 70 * 57, 82 + ( - CAST ( NULL AS INTEGER ) ) col1
----
-379050
NULL

query II rowsort
SELECT + 93, 56 AS col1
----
93
56

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

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

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

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT COUNT ( * ) / + - 81
----
0

query I rowsort
SELECT DISTINCT + CASE 35 WHEN + 27 THEN ( CASE - 86 WHEN 67 THEN - 44 ELSE - 96 END ) WHEN - 68 THEN 39 + - 9 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5074
SELECT ALL + COALESCE ( COUNT( * ), + MIN( DISTINCT 68 ) * 98, + 23 DIV + 89 DIV - - ( + 63 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL + COALESCE ( COUNT ( * ), + MIN ( DISTINCT 68 ) * 98, + 23 / + 89 / - - ( + 63 ) ) col0
----
1

query I rowsort
SELECT ALL + ( + ( - 90 ) ) * + 11
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL - 21 * COUNT( * ) * + 21 * + 27 AS col0
----
-11907

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL - 21 * COUNT ( * ) * + 21 * + 27 AS col0
----
-11907

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT - 12 DIV + 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5077
SELECT - 12 / + 28 AS col1
----
0

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

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

query I rowsort
SELECT - 86 * 62 - + 37 AS col2
----
-5369

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT - 94 * + COUNT( 9 )
----
-94

skipif mysql # not compatible
query I rowsort label-5080
SELECT - 94 * + COUNT ( 9 )
----
-94

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

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

query I rowsort
SELECT DISTINCT - + 18 * + 19 + + - 69 + + 26 AS col2
----
-385

query I rowsort
SELECT - 28 * 92
----
-2576

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT DISTINCT - 16 * - - 30 + - COUNT( * ) + + - COUNT( * )
----
-482

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT - 16 * - - 30 + - COUNT ( * ) + + - COUNT ( * )
----
-482

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT MAX( DISTINCT - ( + + 14 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-5086
SELECT MAX ( DISTINCT - ( + + 14 ) )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5087
SELECT ALL MIN( + 97 ) * + 68 - + 28 DIV 27
----
6595

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL MIN ( + 97 ) * + 68 - + 28 / 27
----
6595

onlyif mysql # DIV for integer division: 
query I rowsort label-5088
SELECT - - 2 + + 76 DIV - - 8
----
11

skipif mysql # not compatible
query I rowsort label-5088
SELECT - - 2 + + 76 / - - 8
----
11

query I rowsort
SELECT ALL + + 61 * + - 67 AS col1
----
-4087

query I rowsort
SELECT ALL - 29 * 44 * + ( + - 45 ) - - 41 * + 27 AS col1
----
58527

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5092
SELECT + CAST( + 43 AS SIGNED ) * - 87 col1, 28
----
-3741
28

skipif mysql # not compatible
query II rowsort label-5092
SELECT + CAST ( + 43 AS INTEGER ) * - 87 col1, 28
----
-3741
28

query II rowsort
SELECT - 18 AS col2, 74 * + 22 + + 14 AS col2
----
-18
1642

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

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

query I rowsort
SELECT + 31 * + 14
----
434

query I rowsort
SELECT + 43 - 90
----
-47

query II rowsort
SELECT + 8 * + 17, 54 col0
----
136
54

query I rowsort
SELECT ALL 60 * + 99 * 60 AS col1
----
356400

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT COUNT( * ) * + - 0 * + 77 * NULLIF ( 25, + + 91 - + ( - + 94 ) ) * - + 2
----
0

skipif mysql # not compatible
query I rowsort label-5099
SELECT COUNT ( * ) * + - 0 * + 77 * NULLIF ( 25, + + 91 - + ( - + 94 ) ) * - + 2
----
0

query II rowsort
SELECT ALL 39, - 1 AS col1
----
39
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT COUNT( * ) - 2 * 23 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-5101
SELECT COUNT ( * ) - 2 * 23 AS col0
----
-45

query III rowsort
SELECT - 46 AS col1, 88 AS col1, 94
----
-46
88
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL COUNT( * ) * + 6 * 10 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL COUNT ( * ) * + 6 * 10 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT COUNT( * ) * 2 * - + 23
----
-46

skipif mysql # not compatible
query I rowsort label-5104
SELECT COUNT ( * ) * 2 * - + 23
----
-46

query I rowsort
SELECT 39 + ( 78 ) AS col2
----
117

query II rowsort
SELECT + 6 AS col0, NULLIF ( 63, - 32 ) * 60 AS col2
----
6
3780

query III rowsort
SELECT 15 col2, + 81 AS col1, 6 AS col2
----
15
81
6

query I rowsort
SELECT - 19 * + 13 + + 44
----
-203

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5109
SELECT ALL + 45 DIV COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL + 45 / COUNT ( * ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT DISTINCT ( + - 87 ) + + CASE WHEN NOT 86 <= - 64 THEN - + 99 * + 83 ELSE NULL END * - ( - - MIN( - ( - - ( 23 ) ) ) ) * - + 83
----
15686166

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT ( + - 87 ) + + CASE WHEN NOT 86 <= - 64 THEN - + 99 * + 83 ELSE NULL END * - ( - - MIN ( - ( - - ( 23 ) ) ) ) * - + 83
----
15686166

onlyif mysql # DIV for integer division: 
query I rowsort label-5111
SELECT DISTINCT ( + 1 ) DIV 72 * - 90 col0
----
0

skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT ( + 1 ) / 72 * - 90 col0
----
0

query II rowsort
SELECT 68 + - 88 * + + 12 * 9 AS col2, + 80 * - - 12 + + 59 * - 7 col1
----
-9436
547

query I rowsort
SELECT + 21 * - 34
----
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5114
SELECT ALL - + CASE CASE + 60 WHEN 50 THEN NULL WHEN + 56 THEN NULL WHEN MIN( DISTINCT - 13 ) / - 17 + - ( + 68 ) * - COALESCE ( + 9, + COUNT( * ) * + NULLIF ( + CAST( NULL AS SIGNED ), + 57 ), 42 ) - - CASE 18 WHEN - COALESCE ( + + ( - - 53 ), + 98 ) * + 46 THEN NULL WHEN + COUNT( * ) * + 60 THEN + 98 ELSE - 73 / - 83 END + - 57 * + 39 THEN - 77 END WHEN 28 THEN 74 ELSE - ( 24 ) END
----
24

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL - + CASE CASE + 60 WHEN 50 THEN NULL WHEN + 56 THEN NULL WHEN MIN ( DISTINCT - 13 ) / - 17 + - ( + 68 ) * - COALESCE ( + 9, + COUNT ( * ) * + NULLIF ( + CAST ( NULL AS INTEGER ), + 57 ), 42 ) - - CASE 18 WHEN - COALESCE ( + + ( - - 53 ), + 98 ) * + 46 THEN NULL WHEN + COUNT ( * ) * + 60 THEN + 98 ELSE - 73 / - 83 END + - 57 * + 39 THEN - 77 END WHEN 28 THEN 74 ELSE - ( 24 ) END
----
24

query I rowsort
SELECT DISTINCT - 44 + + 68
----
24

query II rowsort
SELECT ALL + - 38 - + + 93 AS col1, + 40
----
-131
40

onlyif mysql # aggregate syntax: 
query II rowsort label-5117
SELECT 28 * + - 53 AS col0, + 42 + + COUNT( * ) + - 80 col0
----
-1484
-37

skipif mysql # not compatible
query II rowsort label-5117
SELECT 28 * + - 53 AS col0, + 42 + + COUNT ( * ) + - 80 col0
----
-1484
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5118
SELECT ALL - 11 - CAST( 0 AS SIGNED ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL - 11 - CAST ( 0 AS INTEGER ) AS col0
----
-11

query I rowsort
SELECT 31 * - 51
----
-1581

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

query I rowsort
SELECT 8 + ( - - 84 ) AS col1
----
92

query II rowsort
SELECT DISTINCT - 51 AS col0, - 25 AS col0
----
-51
-25

query I rowsort
SELECT ALL - ( - 68 ) - - 60 + + - 29 + 71 + - 46 * + 61 + - 19 * - 65 * + 66
----
78874

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

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

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

query II rowsort
SELECT ALL + 44, - 7 + - 90 AS col2
----
44
-97

query II rowsort
SELECT + 3 * + - 71, 35 AS col1
----
-213
35

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

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

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

query I rowsort
SELECT ALL + + 83 * + 86
----
7138

onlyif mysql # aggregate syntax: 
query II rowsort label-5131
SELECT ALL + 84 * - COUNT( * ) col1, 0 + + NULLIF ( 74, - ( - + 57 ) * + + COUNT( * ) * + 96 )
----
-84
74

skipif mysql # not compatible
query II rowsort label-5131
SELECT ALL + 84 * - COUNT ( * ) col1, 0 + + NULLIF ( 74, - ( - + 57 ) * + + COUNT ( * ) * + 96 )
----
-84
74

query I rowsort
SELECT 15 + - 66 AS col1
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ALL + MAX( DISTINCT - 33 ) * + 68 * - 59 col0
----
132396

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL + MAX ( DISTINCT - 33 ) * + 68 * - 59 col0
----
132396

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

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

query I rowsort
SELECT ( - 32 ) + 45 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5137
SELECT ALL 0 + - - 26 + COUNT( * ), COUNT( * ) + + - 26 AS col2
----
27
-25

skipif mysql # not compatible
query II rowsort label-5137
SELECT ALL 0 + - - 26 + COUNT ( * ), COUNT ( * ) + + - 26 AS col2
----
27
-25

query I rowsort
SELECT ALL - 49 + - NULLIF ( 77, + + 5 * - - 33 + 85 ) + - + ( - 60 ) * 65
----
3774

query I rowsort
SELECT ALL 76 * - 27 AS col0
----
-2052

query I rowsort
SELECT ALL + NULLIF ( - - 63, - NULLIF ( 85, 25 + - 36 ) - - 62 ) * + - 34 + + ( 51 )
----
-2091

onlyif mysql # aggregate syntax: 
query II rowsort label-5141
SELECT SUM( ALL + 92 ) AS col2, - 3 * + 77 + + + ( 3 ) + COUNT( * )
----
92
-227

skipif mysql # not compatible
query II rowsort label-5141
SELECT SUM ( ALL + 92 ) AS col2, - 3 * + 77 + + + ( 3 ) + COUNT ( * )
----
92
-227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5142
SELECT DISTINCT COUNT( * ) * + 7 - + - 35 DIV 81 * 73
----
7

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT COUNT ( * ) * + 7 - + - 35 / 81 * 73
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT + + 93 * - CAST( NULL AS SIGNED ) - 69 + + 8 - - 9 + + 57 * + + 81 * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT + + 93 * - CAST ( NULL AS INTEGER ) - 69 + + 8 - - 9 + + 57 * + + 81 * - 11
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5144
SELECT + MAX( ALL 15 ) * 95 DIV + 3
----
475

skipif mysql # not compatible
query I rowsort label-5144
SELECT + MAX ( ALL 15 ) * 95 / + 3
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT 46 - + NULLIF ( + + 59, 54 ) * 10 * - 18 * - - COUNT( * ) * + 61
----
647866

skipif mysql # not compatible
query I rowsort label-5145
SELECT 46 - + NULLIF ( + + 59, 54 ) * 10 * - 18 * - - COUNT ( * ) * + 61
----
647866

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5146
SELECT ALL - ( COUNT( * ) ) - + - 0 + - 60 + 22 * - NULLIF ( 83, 44 ) + - - CAST( - 41 AS SIGNED ) + - 70
----
-1998

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL - ( COUNT ( * ) ) - + - 0 + - 60 + 22 * - NULLIF ( 83, 44 ) + - - CAST ( - 41 AS INTEGER ) + - 70
----
-1998

onlyif mysql # aggregate syntax: 
query II rowsort label-5147
SELECT ALL + - COUNT( * ) * - MAX( + 67 ) + + ( + 72 ) AS col0, - 74 * 31 + - ( - 25 ) AS col0
----
139
-2269

skipif mysql # not compatible
query II rowsort label-5147
SELECT ALL + - COUNT ( * ) * - MAX ( + 67 ) + + ( + 72 ) AS col0, - 74 * 31 + - ( - 25 ) AS col0
----
139
-2269

query I rowsort
SELECT + ( + + 12 ) + + + 5 AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT ALL - COALESCE ( - ( + 20 ), AVG ( + 59 ) DIV 50 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL - COALESCE ( - ( + 20 ), AVG ( + 59 ) / 50 ) AS col2
----
20

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5151
SELECT + 21 * - COUNT( * ) * - 7 AS col0, - CAST( + 21 AS SIGNED ) col0
----
147
-21

skipif mysql # not compatible
query II rowsort label-5151
SELECT + 21 * - COUNT ( * ) * - 7 AS col0, - CAST ( + 21 AS INTEGER ) col0
----
147
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT ALL 91 DIV + + 73 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL 91 / + + 73 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5153
SELECT 19 * + 5 - + + ( 79 ) DIV 29 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-5153
SELECT 19 * + 5 - + + ( 79 ) / 29 AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5154
SELECT - 88 DIV + ( + - 95 )
----
0

skipif mysql # not compatible
query I rowsort label-5154
SELECT - 88 / + ( + - 95 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5155
SELECT 45 * - CAST( 98 AS SIGNED ) * - + 51 - - 65 AS col0
----
224975

skipif mysql # not compatible
query I rowsort label-5155
SELECT 45 * - CAST ( 98 AS INTEGER ) * - + 51 - - 65 AS col0
----
224975

query I rowsort
SELECT ALL + - 31 * - 38 col1
----
1178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT - CAST( - CAST( 68 AS SIGNED ) AS SIGNED ) * CAST( + 38 AS SIGNED )
----
2584

skipif mysql # not compatible
query I rowsort label-5157
SELECT - CAST ( - CAST ( 68 AS INTEGER ) AS INTEGER ) * CAST ( + 38 AS INTEGER )
----
2584

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL COUNT( ALL - 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL COUNT ( ALL - 31 ) AS col0
----
1

query I rowsort
SELECT - 96 * + ( + 42 ) AS col1
----
-4032

query I rowsort
SELECT DISTINCT + 79 + + 11 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT ALL COALESCE ( + - 36, 76, + + 69 + + - COALESCE ( - 72, - 33 ) * CASE + COUNT( * ) WHEN + COUNT( * ) THEN - COUNT( * ) + - - 17 END ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL COALESCE ( + - 36, 76, + + 69 + + - COALESCE ( - 72, - 33 ) * CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN - COUNT ( * ) + - - 17 END ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL - CASE + - 84 WHEN - SUM( DISTINCT + + 51 ) THEN - + ( - 35 ) * 22 ELSE + - 11 END + - 5
----
6

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL - CASE + - 84 WHEN - SUM ( DISTINCT + + 51 ) THEN - + ( - 35 ) * 22 ELSE + - 11 END + - 5
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5164
SELECT ALL + 62 + + CASE + 14 WHEN + 47 + - + AVG ( DISTINCT + CASE 81 WHEN NULLIF ( 25, + 56 + + + 56 ) + + + 7 THEN + 40 END ) THEN NULL ELSE - 81 + CAST( - 42 AS SIGNED ) END
----
-61

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL + 62 + + CASE + 14 WHEN + 47 + - + AVG ( DISTINCT + CASE 81 WHEN NULLIF ( 25, + 56 + + + 56 ) + + + 7 THEN + 40 END ) THEN NULL ELSE - 81 + CAST ( - 42 AS INTEGER ) END
----
-61

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5165
SELECT DISTINCT NULLIF ( + - 46, + + CAST( + - 52 AS SIGNED ) + + CAST( NULL AS DECIMAL ) + - + 90 * + 10 + + - 32 ), - 78 AS col1
----
-46
-78

skipif mysql # not compatible
query II rowsort label-5165
SELECT DISTINCT NULLIF ( + - 46, + + CAST ( + - 52 AS INTEGER ) + + CAST ( NULL AS REAL ) + - + 90 * + 10 + + - 32 ), - 78 AS col1
----
-46
-78

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

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT - 34 + COUNT ( * ) AS col2
----
-33

query I rowsort
SELECT - 36 + + + 35 col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5168
SELECT - 36 AS col1, - CAST( - 88 AS SIGNED )
----
-36
88

skipif mysql # not compatible
query II rowsort label-5168
SELECT - 36 AS col1, - CAST ( - 88 AS INTEGER )
----
-36
88

query II rowsort
SELECT ALL + 62 * + 48 * - CASE - 3 WHEN - - 15 THEN + + ( 83 ) END * + 13, 18 AS col0
----
NULL
18

query I rowsort
SELECT DISTINCT NULLIF ( - 74, + 60 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT - COUNT( * ) + + 66 col1
----
65

skipif mysql # not compatible
query I rowsort label-5171
SELECT - COUNT ( * ) + + 66 col1
----
65

query II rowsort
SELECT - 44, - 72 + - ( + 78 ) col0
----
-44
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL NULLIF ( + - 57, - - ( 56 ) + COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL NULLIF ( + - 57, - - ( 56 ) + COUNT ( * ) )
----
-57

query I rowsort
SELECT - 6 + + 45 * - 57 AS col1
----
-2571

query I rowsort
SELECT ALL - 17 + - 28 col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5176
SELECT ALL + ( 56 ) * COALESCE ( - - 75, ( CAST( NULL AS SIGNED ) ) ) + - 14
----
4186

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL + ( 56 ) * COALESCE ( - - 75, ( CAST ( NULL AS INTEGER ) ) ) + - 14
----
4186

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5177
SELECT - 82 + + COUNT( * ) DIV - 5, + 6 DIV 41 * COUNT( * ) - + 39 AS col1
----
-82
-39

skipif mysql # not compatible
query II rowsort label-5177
SELECT - 82 + + COUNT ( * ) / - 5, + 6 / 41 * COUNT ( * ) - + 39 AS col1
----
-82
-39

query I rowsort
SELECT ALL 94 + + 73 col2
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5179
SELECT - CASE + CAST( NULL AS SIGNED ) WHEN 9 * + - 95 + - 87 THEN - 44 END - 89 + + 64 * COUNT( * ) * + + NULLIF ( - 70, + 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT - CASE + CAST ( NULL AS INTEGER ) WHEN 9 * + - 95 + - 87 THEN - 44 END - 89 + + 64 * COUNT ( * ) * + + NULLIF ( - 70, + 70 ) AS col0
----
NULL

query I rowsort
SELECT - 35 * + ( + 10 ) * - 88 AS col0
----
30800

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT ALL NULLIF ( - MIN( 11 ), - - 54 * 99 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL NULLIF ( - MIN ( 11 ), - - 54 * 99 ) AS col0
----
-11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5183
SELECT + 35 DIV - 58 * - ( + - 40 ) + + ( - + 42 ) * + ( COUNT( 31 ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-5183
SELECT + 35 / - 58 * - ( + - 40 ) + + ( - + 42 ) * + ( COUNT ( 31 ) ) AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5184
SELECT ALL + 3 * + + COUNT( * ) - - CAST( - 98 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL + 3 * + + COUNT ( * ) - - CAST ( - 98 AS INTEGER )
----
-95

query I rowsort
SELECT - + 38 * - - 37
----
-1406

onlyif mysql # DIV for integer division: 
query I rowsort label-5186
SELECT + - 58 DIV + - 49 + - 15 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5186
SELECT + - 58 / + - 49 + - 15 AS col0
----
-14

query I rowsort
SELECT DISTINCT + 53 * 90 * + - 92 AS col0
----
-438840

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT SUM( 55 )
----
55

skipif mysql # not compatible
query I rowsort label-5188
SELECT SUM ( 55 )
----
55

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

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

query II rowsort
SELECT DISTINCT + 9 AS col2, + 30 - 2 AS col2
----
9
28

query II rowsort
SELECT + 52, 59 * 28 + 51 AS col0
----
52
1703

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT CASE NULLIF ( - 66, + + 27 ) WHEN - 42 THEN + 72 + - + 53 + COALESCE ( 18, + 26 * 99 + COUNT( * ), + 80 ) / - - 86 + + MIN( ALL - 98 ) + + - 48 * + AVG ( DISTINCT - 13 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT CASE NULLIF ( - 66, + + 27 ) WHEN - 42 THEN + 72 + - + 53 + COALESCE ( 18, + 26 * 99 + COUNT ( * ), + 80 ) / - - 86 + + MIN ( ALL - 98 ) + + - 48 * + AVG ( DISTINCT - 13 ) END AS col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5195
SELECT + - SUM( ALL - 43 ) * - 86, - NULLIF ( - COUNT( * ), 42 + 46 ) AS col2
----
-3698
1

skipif mysql # not compatible
query II rowsort label-5195
SELECT + - SUM ( ALL - 43 ) * - 86, - NULLIF ( - COUNT ( * ), 42 + 46 ) AS col2
----
-3698
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL - COUNT( * ) * 28 + + - 82 - 20 AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL - COUNT ( * ) * 28 + + - 82 - 20 AS col0
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT + CASE - 54 WHEN COUNT( - 73 ) + - 16 THEN + - 40 ELSE 62 * + - 71 END
----
-4402

skipif mysql # not compatible
query I rowsort label-5197
SELECT + CASE - 54 WHEN COUNT ( - 73 ) + - 16 THEN + - 40 ELSE 62 * + - 71 END
----
-4402

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + 8 + - COUNT( * ) * 99 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-5198
SELECT + 8 + - COUNT ( * ) * 99 AS col2
----
-91

query I rowsort
SELECT DISTINCT - + 79 * 85 + - 69 + 66
----
-6718

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

query I rowsort
SELECT DISTINCT - 39 * - 82 AS col2
----
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT MAX( - 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5202
SELECT MAX ( - 1 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL 46 * - - COUNT( * ) + 55 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL 46 * - - COUNT ( * ) + 55 AS col2
----
101

query II rowsort
SELECT - ( + 15 ) AS col2, 18 AS col1
----
-15
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5205
SELECT - 1 * - 66 DIV - + 62
----
-1

skipif mysql # not compatible
query I rowsort label-5205
SELECT - 1 * - 66 / - + 62
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ALL - 82 * - - 34 * - + 74 + 36 * + MIN( DISTINCT 7 ) * + 67 - + NULLIF ( - 51, + 87 ) - + 92 * 42 + - 27
----
219356

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL - 82 * - - 34 * - + 74 + 36 * + MIN ( DISTINCT 7 ) * + 67 - + NULLIF ( - 51, + 87 ) - + 92 * 42 + - 27
----
219356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5207
SELECT - 19 + + + COUNT( ALL + COALESCE ( + 30, ( - + 22 ) ) ) * + 27 DIV COALESCE ( 67, - 14, 98 ) * - 30 * + - 12 * - + 57 - - 54 + - 32 * - COALESCE ( - COUNT( * ), - CASE + - NULLIF ( - 84, - + 10 * + 2 + - COUNT( * ) ) WHEN + ( + 27 ) * - 7 DIV 3 + 75 + 22 * + 85 THEN 57 - - 84 ELSE 10 * + 27 END )
----
3

skipif mysql # not compatible
query I rowsort label-5207
SELECT - 19 + + + COUNT ( ALL + COALESCE ( + 30, ( - + 22 ) ) ) * + 27 / COALESCE ( 67, - 14, 98 ) * - 30 * + - 12 * - + 57 - - 54 + - 32 * - COALESCE ( - COUNT ( * ), - CASE + - NULLIF ( - 84, - + 10 * + 2 + - COUNT ( * ) ) WHEN + ( + 27 ) * - 7 / 3 + 75 + 22 * + 85 THEN 57 - - 84 ELSE 10 * + 27 END )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5208
SELECT + 30 DIV + - 23 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5208
SELECT + 30 / + - 23 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT DISTINCT - 3 + + COUNT( * ) * + - ( 75 )
----
-78

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT - 3 + + COUNT ( * ) * + - ( 75 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT + 65 - 22 * - MAX( ALL + 18 ) * - MAX( ALL - - 59 ) - COUNT( * )
----
-23300

skipif mysql # not compatible
query I rowsort label-5210
SELECT + 65 - 22 * - MAX ( ALL + 18 ) * - MAX ( ALL - - 59 ) - COUNT ( * )
----
-23300

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

query I rowsort
SELECT DISTINCT 24 - 4 AS col0
----
20

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

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

query I rowsort
SELECT - 41 * + 0
----
0

query I rowsort
SELECT - - 29 * + - 68 AS col0
----
-1972

query I rowsort
SELECT ALL - 13 * 11 AS col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT DISTINCT - + NULLIF ( + + 47, + - MAX( DISTINCT - 12 ) * + ( - 89 ) * - SUM( - 22 ) ) * + 81 AS col1
----
-3807

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT - + NULLIF ( + + 47, + - MAX ( DISTINCT - 12 ) * + ( - 89 ) * - SUM ( - 22 ) ) * + 81 AS col1
----
-3807

query I rowsort
SELECT - 94 * + 57
----
-5358

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT ALL - 63 * - - COUNT( * ) - 56
----
-119

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL - 63 * - - COUNT ( * ) - 56
----
-119

query I rowsort
SELECT DISTINCT + ( 16 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT + MIN( DISTINCT + + 90 ) * 82 + + 88 + 71
----
7539

skipif mysql # not compatible
query I rowsort label-5221
SELECT + MIN ( DISTINCT + + 90 ) * 82 + + 88 + 71
----
7539

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT - - 66 * - 81 + - COUNT( * ) * - 28 * + 90 * - 55 * + - COUNT( * ) AS col2
----
133254

skipif mysql # not compatible
query I rowsort label-5222
SELECT - - 66 * - 81 + - COUNT ( * ) * - 28 * + 90 * - 55 * + - COUNT ( * ) AS col2
----
133254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5223
SELECT + 68 * - 19 + 0 * - 30 + + ( - - 5 ) * 87 - 78 * - CAST( - + 71 AS SIGNED ) AS col1, + ( + - MIN( - 39 ) )
----
-6395
39

skipif mysql # not compatible
query II rowsort label-5223
SELECT + 68 * - 19 + 0 * - 30 + + ( - - 5 ) * 87 - 78 * - CAST ( - + 71 AS INTEGER ) AS col1, + ( + - MIN ( - 39 ) )
----
-6395
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT - 80 + + COALESCE ( + COUNT( * ), - + 24 + - MAX( + - 1 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT - 80 + + COALESCE ( + COUNT ( * ), - + 24 + - MAX ( + - 1 ) )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ALL + 22 + + + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL + 22 + + + COUNT ( * )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5226
SELECT - 56 DIV + 76 - + + COUNT( * ) - + 54 * 91 AS col1
----
-4915

skipif mysql # not compatible
query I rowsort label-5226
SELECT - 56 / + 76 - + + COUNT ( * ) - + 54 * 91 AS col1
----
-4915

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5228
SELECT ALL + 36 + + 45 - 38 + NULLIF ( 18, - - 66 + + 36 / - COUNT( * ) / CAST( NULL AS SIGNED ) + - + 20 ) + - 92 * - 46 * - 17 + ( + ( 12 ) )
----
-71871

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL + 36 + + 45 - 38 + NULLIF ( 18, - - 66 + + 36 / - COUNT ( * ) / CAST ( NULL AS INTEGER ) + - + 20 ) + - 92 * - 46 * - 17 + ( + ( 12 ) )
----
-71871

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

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT + COUNT ( * ) + + 28 AS col2
----
29

query I rowsort
SELECT ALL 50 * + 98
----
4900

query II rowsort
SELECT DISTINCT + 39 + 67 AS col1, - 15 AS col0
----
106
-15

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

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT - COUNT ( * ) + - + 62 AS col1
----
-63

query I rowsort
SELECT 17 + - 48
----
-31

query I rowsort
SELECT 53 - + - ( + + 58 )
----
111

query I rowsort
SELECT ALL 31 * + + 8
----
248

query I rowsort
SELECT ALL 84 - + COALESCE ( - 5, - 15 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT COUNT( ALL + 82 ) * - - SUM( 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5237
SELECT COUNT ( ALL + 82 ) * - - SUM ( 89 ) AS col1
----
89

query I rowsort
SELECT ALL 53 * - + 82 * + + 75 * - - 25
----
-8148750

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT MIN( ALL 83 ) * - COUNT( ALL + 48 )
----
-83

skipif mysql # not compatible
query I rowsort label-5239
SELECT MIN ( ALL 83 ) * - COUNT ( ALL + 48 )
----
-83

query I rowsort
SELECT ALL 71 * + + 65 * 27 AS col2
----
124605

onlyif mysql # DIV for integer division: 
query I rowsort label-5241
SELECT DISTINCT 83 DIV + 4 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT 83 / + 4 AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5242
SELECT NULLIF ( + - 21, CAST( NULL AS SIGNED ) ) + - 32 + 52 + + - 82
----
-83

skipif mysql # not compatible
query I rowsort label-5242
SELECT NULLIF ( + - 21, CAST ( NULL AS INTEGER ) ) + - 32 + 52 + + - 82
----
-83

query I rowsort
SELECT ALL 59 - + 79 + 54 * - 7
----
-398

query I rowsort
SELECT ALL 18 * + 35 * - + 98 * 25
----
-1543500

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT MAX( DISTINCT 2 ) + + 11 + + 7 + + NULLIF ( - 90, - 24 - + 96 + + COUNT( + 81 ) - + - SUM( - - 39 ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-5245
SELECT MAX ( DISTINCT 2 ) + + 11 + + 7 + + NULLIF ( - 90, - 24 - + 96 + + COUNT ( + 81 ) - + - SUM ( - - 39 ) ) AS col2
----
-70

query I rowsort
SELECT ALL 11 * - 89 * 49
----
-47971

query I rowsort
SELECT 74 + - 76 col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5248
SELECT CASE CASE + 88 WHEN + + ( - 31 ) + + 28 THEN NULL WHEN CASE + 88 WHEN + SUM( 31 ) + 79 + + + 80 THEN + - 37 ELSE NULL END THEN + 12 END WHEN - ( + CASE - 34 WHEN + COUNT( * ) THEN 37 WHEN - 76 THEN NULL END ) + + + 20 THEN + CAST( NULL AS SIGNED ) WHEN - - ( + + 18 ) THEN NULL WHEN 35 THEN - COUNT( * ) * + 29 END / + COUNT( * ) AS col2, 82
----
NULL
82

skipif mysql # not compatible
query II rowsort label-5248
SELECT CASE CASE + 88 WHEN + + ( - 31 ) + + 28 THEN NULL WHEN CASE + 88 WHEN + SUM ( 31 ) + 79 + + + 80 THEN + - 37 ELSE NULL END THEN + 12 END WHEN - ( + CASE - 34 WHEN + COUNT ( * ) THEN 37 WHEN - 76 THEN NULL END ) + + + 20 THEN + CAST ( NULL AS INTEGER ) WHEN - - ( + + 18 ) THEN NULL WHEN 35 THEN - COUNT ( * ) * + 29 END / + COUNT ( * ) AS col2, 82
----
NULL
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5249
SELECT 13 DIV - - 51
----
0

skipif mysql # not compatible
query I rowsort label-5249
SELECT 13 / - - 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5250
SELECT ( + + 42 ) + - 40 + 67 * - + CAST( NULLIF ( 82, SUM( DISTINCT + ( + 63 ) ) ) AS SIGNED ) AS col0, 10
----
-5492
10

skipif mysql # not compatible
query II rowsort label-5250
SELECT ( + + 42 ) + - 40 + 67 * - + CAST ( NULLIF ( 82, SUM ( DISTINCT + ( + 63 ) ) ) AS INTEGER ) AS col0, 10
----
-5492
10

query I rowsort
SELECT ALL 26 * - + ( 1 ) * 51
----
-1326

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

query I rowsort
SELECT ALL 35 * - 41 * + 33 AS col1
----
-47355

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5254
SELECT COUNT( * ) + + 24 DIV + + 19 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5254
SELECT COUNT ( * ) + + 24 / + + 19 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5255
SELECT + 88 + - + COUNT( DISTINCT - 21 ) + + NULLIF ( - COUNT( * ), 57 ) / ( + + CASE COUNT( * ) WHEN - 89 * - 86 THEN + CAST( NULL AS SIGNED ) * COUNT( * ) WHEN + 99 * - 75 + COUNT( * ) + - 68 * + + COALESCE ( - 10, - - 49, + 30 + 18 * COUNT( * ) ) * - COUNT( * ) + - COUNT( * ) * + + COUNT( * ) THEN NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT + 88 + - + COUNT ( DISTINCT - 21 ) + + NULLIF ( - COUNT ( * ), 57 ) / ( + + CASE COUNT ( * ) WHEN - 89 * - 86 THEN + CAST ( NULL AS INTEGER ) * COUNT ( * ) WHEN + 99 * - 75 + COUNT ( * ) + - 68 * + + COALESCE ( - 10, - - 49, + 30 + 18 * COUNT ( * ) ) * - COUNT ( * ) + - COUNT ( * ) * + + COUNT ( * ) THEN NULL END ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT + NULLIF ( - 12, - + 17 - COUNT( * ) ) * ( + ( 3 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-5256
SELECT + NULLIF ( - 12, - + 17 - COUNT ( * ) ) * ( + ( 3 ) )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5257
SELECT ( - ( + 3 ) ) + + + 36 + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + COUNT( * ) + 72 * + + COUNT( * ) * + 44 * - - 89 * + - 87 / COUNT( * ) + + ( + ( + 53 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT ( - ( + 3 ) ) + + + 36 + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + COUNT ( * ) + 72 * + + COUNT ( * ) * + 44 * - - 89 * + - 87 / COUNT ( * ) + + ( + ( + 53 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5258
SELECT DISTINCT - CAST( SUM( ALL 61 ) AS SIGNED ) + CAST( NULL AS SIGNED ) + COUNT( DISTINCT - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT - CAST ( SUM ( ALL 61 ) AS INTEGER ) + CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT - 63 )
----
NULL

query I rowsort
SELECT ALL - + COALESCE ( 93, - - 28 ) + - 79
----
-172

onlyif mysql # aggregate syntax: 
query II rowsort label-5260
SELECT ALL - + 20 AS col1, - 7 + - + 26 * - COUNT( 8 ) col0
----
-20
19

skipif mysql # not compatible
query II rowsort label-5260
SELECT ALL - + 20 AS col1, - 7 + - + 26 * - COUNT ( 8 ) col0
----
-20
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT DISTINCT - - SUM( + + 50 ) + - - ( + - 2 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT - - SUM ( + + 50 ) + - - ( + - 2 ) AS col2
----
48

query I rowsort
SELECT ALL - - 36 + + - 71 * - 18
----
1314

query I rowsort
SELECT + 41 * 7 + ( 91 )
----
378

query II rowsort
SELECT DISTINCT - + COALESCE ( + 58, 56 ), 11 AS col0
----
-58
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT 3 * + + SUM( - 79 ) + + - 27 col0
----
-264

skipif mysql # not compatible
query I rowsort label-5265
SELECT 3 * + + SUM ( - 79 ) + + - 27 col0
----
-264

query I rowsort
SELECT CASE 32 WHEN + 19 THEN NULL WHEN 98 THEN - 86 ELSE NULL END * - ( - + 30 ) + + 53 / 82
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5267
SELECT DISTINCT - 81 AS col2, + 43 + + 5 * CAST( NULL AS DECIMAL ) AS col2
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-5267
SELECT DISTINCT - 81 AS col2, + 43 + + 5 * CAST ( NULL AS REAL ) AS col2
----
-81
NULL

query I rowsort
SELECT 52 * - + 6 AS col0
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT ALL + NULLIF ( - + 21, + 57 * + 70 - - - 20 - 74 ) - - MAX( + 51 )
----
30

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + NULLIF ( - + 21, + 57 * + 70 - - - 20 - 74 ) - - MAX ( + 51 )
----
30

query I rowsort
SELECT DISTINCT 12 * 25 * - - ( - ( 73 ) ) * - 47 col2
----
1029300

query II rowsort
SELECT DISTINCT - 40 * + 85 AS col2, 29 col2
----
-3400
29

query I rowsort
SELECT ALL 30 * 12
----
360

query I rowsort
SELECT 78 * 77
----
6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5274
SELECT ALL - 31 * + CAST( 42 AS SIGNED ) AS col1
----
-1302

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL - 31 * + CAST ( 42 AS INTEGER ) AS col1
----
-1302

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT ALL MAX( - 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL MAX ( - 16 ) AS col0
----
-16

query I rowsort
SELECT DISTINCT 77 * - 88 AS col2
----
-6776

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT 68 * COALESCE ( - COALESCE ( 18, + + 75 ), 55 + + - 13 DIV - - 6 )
----
-1224

skipif mysql # not compatible
query I rowsort label-5277
SELECT 68 * COALESCE ( - COALESCE ( 18, + + 75 ), 55 + + - 13 / - - 6 )
----
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT COUNT( * ) * + 6 * - 22
----
-132

skipif mysql # not compatible
query I rowsort label-5278
SELECT COUNT ( * ) * + 6 * - 22
----
-132

onlyif mysql # DIV for integer division: 
query II rowsort label-5279
SELECT - 55 AS col1, + 20 * 0 DIV - 97 + + - 7 AS col2
----
-55
-7

skipif mysql # not compatible
query II rowsort label-5279
SELECT - 55 AS col1, + 20 * 0 / - 97 + + - 7 AS col2
----
-55
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-5280
SELECT ALL COUNT( * ), MIN( - + 11 ) * - 69 + - 86 AS col0
----
1
673

skipif mysql # not compatible
query II rowsort label-5280
SELECT ALL COUNT ( * ), MIN ( - + 11 ) * - 69 + - 86 AS col0
----
1
673

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5281
SELECT DISTINCT + 14 * - 86 AS col1, - CAST( NULL AS SIGNED ) - + 45 * - 80 col1
----
-1204
NULL

skipif mysql # not compatible
query II rowsort label-5281
SELECT DISTINCT + 14 * - 86 AS col1, - CAST ( NULL AS INTEGER ) - + 45 * - 80 col1
----
-1204
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5282
SELECT ALL SUM( 93 ) DIV COUNT( ALL 95 ) - + 39
----
54

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL SUM ( 93 ) / COUNT ( ALL 95 ) - + 39
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5283
SELECT SUM( + + 91 ) * + - NULLIF ( ( + CAST( - + MAX( DISTINCT 1 ) AS SIGNED ) ), - - 95 / + AVG ( + 97 ) + - 39 / + + 73 * - CAST( - - 56 AS SIGNED ) ) + + 68 * + 30 AS col0
----
2131

skipif mysql # not compatible
query I rowsort label-5283
SELECT SUM ( + + 91 ) * + - NULLIF ( ( + CAST ( - + MAX ( DISTINCT 1 ) AS INTEGER ) ), - - 95 / + AVG ( + 97 ) + - 39 / + + 73 * - CAST ( - - 56 AS INTEGER ) ) + + 68 * + 30 AS col0
----
2131

query I rowsort
SELECT ALL + 96 + 99
----
195

query I rowsort
SELECT ALL + 16 + + 72 AS col2
----
88

query II rowsort
SELECT 73 AS col1, CASE WHEN NULL IS NOT NULL THEN NULL ELSE - 31 END
----
73
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-5287
SELECT ALL - 46 DIV + - 41, - 6 AS col2
----
1
-6

skipif mysql # not compatible
query II rowsort label-5287
SELECT ALL - 46 / + - 41, - 6 AS col2
----
1
-6

query I rowsort
SELECT 46 * 55
----
2530

query II rowsort
SELECT 16 AS col1, - 67 + - 85
----
16
-152

query I rowsort
SELECT + 38 - - + 56 AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT ALL 82 + + + 79 DIV 20 + + + 16 * - + 0
----
85

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL 82 + + + 79 / 20 + + + 16 * - + 0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5292
SELECT DISTINCT 76 col1, + COUNT( * ) DIV + MAX( - 18 ) * - + 59
----
76
0

skipif mysql # not compatible
query II rowsort label-5292
SELECT DISTINCT 76 col1, + COUNT ( * ) / + MAX ( - 18 ) * - + 59
----
76
0

query I rowsort
SELECT DISTINCT + 53 + + 90
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5294
SELECT ALL + 31 / 27 * + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL + 31 / 27 * + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL - COUNT( * ) * + ( + 21 ) + COUNT( * ) - + - 89 * 3 + - COUNT( * ) AS col2
----
246

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL - COUNT ( * ) * + ( + 21 ) + COUNT ( * ) - + - 89 * 3 + - COUNT ( * ) AS col2
----
246

query II rowsort
SELECT 28 AS col0, + 85
----
28
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT - COUNT( * ) * COUNT( * ) + 16 + + - 31 * + 83 * 61 * 38
----
-5964199

skipif mysql # not compatible
query I rowsort label-5297
SELECT - COUNT ( * ) * COUNT ( * ) + 16 + + - 31 * + 83 * 61 * 38
----
-5964199

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5299
SELECT 34, CAST( MIN( + CAST( + - 37 AS SIGNED ) ) AS SIGNED ) AS col2
----
34
-37

skipif mysql # not compatible
query II rowsort label-5299
SELECT 34, CAST ( MIN ( + CAST ( + - 37 AS INTEGER ) ) AS INTEGER ) AS col2
----
34
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT ALL - + 63 * 56 + - 73 * CAST( ( - COUNT( * ) ) AS SIGNED ) + 26 * - 99 * - 75 + + ( - - 18 ) - - COALESCE ( + + 0, + + MIN( + + 3 ) ) col0
----
189613

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL - + 63 * 56 + - 73 * CAST ( ( - COUNT ( * ) ) AS INTEGER ) + 26 * - 99 * - 75 + + ( - - 18 ) - - COALESCE ( + + 0, + + MIN ( + + 3 ) ) col0
----
189613

onlyif mysql # aggregate syntax: 
query II rowsort label-5301
SELECT + 68 * + + 37 AS col1, 10 * COUNT( * ) * + ( - 73 ) AS col0
----
2516
-730

skipif mysql # not compatible
query II rowsort label-5301
SELECT + 68 * + + 37 AS col1, 10 * COUNT ( * ) * + ( - 73 ) AS col0
----
2516
-730

query I rowsort
SELECT - CASE WHEN NOT ( NULL IS NULL ) THEN 81 ELSE NULL END * - 71 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 7 * + 57 AS col1
----
399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5304
SELECT - ( - MIN( + CAST( NULL AS SIGNED ) ) ) / 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT - ( - MIN ( + CAST ( NULL AS INTEGER ) ) ) / 67 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5305
SELECT - CAST( 29 AS SIGNED ) * + 21 * AVG ( + + CASE - - ( + 47 ) WHEN + 54 - - 68 THEN NULL WHEN CASE - CAST( NULL AS SIGNED ) WHEN + 14 THEN - 12 + + - 76 ELSE - 17 END THEN - 83 * - 78 + 19 WHEN - 45 THEN NULL ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT - CAST ( 29 AS INTEGER ) * + 21 * AVG ( + + CASE - - ( + 47 ) WHEN + 54 - - 68 THEN NULL WHEN CASE - CAST ( NULL AS INTEGER ) WHEN + 14 THEN - 12 + + - 76 ELSE - 17 END THEN - 83 * - 78 + 19 WHEN - 45 THEN NULL ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT - COUNT( * ) - - 16 + + + 40
----
55

skipif mysql # not compatible
query I rowsort label-5306
SELECT - COUNT ( * ) - - 16 + + + 40
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT - 6 DIV 96 * + - 89 DIV 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5307
SELECT - 6 / 96 * + - 89 / 40 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5308
SELECT + COALESCE ( - COUNT( * ), + 51 DIV + - 26 ) * COUNT( * ) + + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5308
SELECT + COALESCE ( - COUNT ( * ), + 51 / + - 26 ) * COUNT ( * ) + + + COUNT ( * )
----
0

query II rowsort
SELECT ALL 94 * + 49 + 73, + 49 AS col2
----
4679
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5310
SELECT - 70 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-5310
SELECT - 70 / 74
----
0

query I rowsort
SELECT ALL 82 + - + 70 AS col2
----
12

query I rowsort
SELECT DISTINCT NULLIF ( 92, + COALESCE ( - 69, + + 30 ) ) AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5313
SELECT ALL CASE + CASE COUNT( * ) WHEN - + 23 THEN NULL WHEN - - ( - - 69 ) THEN + 56 * + COALESCE ( + 51, + 11 * - AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ), 48 * COUNT( * ) + - - 94 ) END WHEN 37 THEN NULL WHEN 71 * - - 34 THEN - COALESCE ( + COALESCE ( - COUNT( * ), - NULLIF ( 26, + 34 * - MAX( - + 60 ) ) * 16 * - 28 - 99 + - + 43, - - 56 ), 54 / 18 + - 65 * 80 ) * - COUNT( * ) END + NULLIF ( 59 + 90, COALESCE ( + 76, 97 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL CASE + CASE COUNT ( * ) WHEN - + 23 THEN NULL WHEN - - ( - - 69 ) THEN + 56 * + COALESCE ( + 51, + 11 * - AVG ( DISTINCT + CAST ( NULL AS REAL ) ), 48 * COUNT ( * ) + - - 94 ) END WHEN 37 THEN NULL WHEN 71 * - - 34 THEN - COALESCE ( + COALESCE ( - COUNT ( * ), - NULLIF ( 26, + 34 * - MAX ( - + 60 ) ) * 16 * - 28 - 99 + - + 43, - - 56 ), 54 / 18 + - 65 * 80 ) * - COUNT ( * ) END + NULLIF ( 59 + 90, COALESCE ( + 76, 97 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 17 + + 13 - 41 + + + 21
----
10

query I rowsort
SELECT - 0 + + 11 + + - 52
----
-41

query I rowsort
SELECT + 74 + + + 83 + + 95
----
252

query I rowsort
SELECT DISTINCT - 42 + + CASE + + 49 WHEN - 54 + - 53 THEN + - 56 / + 86 + + 30 / + 41 * + 29 ELSE NULL END / 88
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5318
SELECT - + 79 + 99 AS col2, MAX( - 61 )
----
20
-61

skipif mysql # not compatible
query II rowsort label-5318
SELECT - + 79 + 99 AS col2, MAX ( - 61 )
----
20
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5319
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0, - 47 * - + COUNT( * ) * 65 * 57
----
0
174135

skipif mysql # not compatible
query II rowsort label-5319
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0, - 47 * - + COUNT ( * ) * 65 * 57
----
0
174135

query I rowsort
SELECT - - 4 + + 7 * 85
----
599

query I rowsort
SELECT + - 98 - 67 AS col1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL + - 41 + - - 18 + - MAX( ( + 37 ) ) * + - COUNT( * ) + + 63 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL + - 41 + - - 18 + - MAX ( ( + 37 ) ) * + - COUNT ( * ) + + 63 AS col1
----
77

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5324
SELECT ALL COALESCE ( + ( 75 ), + 51 + + 99 - + + 66 DIV - 92 * 46 + 20, - + 7 ) - - 40 * - 2 AS col1, - 21
----
-5
-21

skipif mysql # not compatible
query II rowsort label-5324
SELECT ALL COALESCE ( + ( 75 ), + 51 + + 99 - + + 66 / - 92 * 46 + 20, - + 7 ) - - 40 * - 2 AS col1, - 21
----
-5
-21

query II rowsort
SELECT + 86 + + 85 col1, - 56 * - + 41
----
171
2296

onlyif mysql # DIV for integer division: 
query I rowsort label-5326
SELECT ALL 55 DIV - - 43 + - - 41
----
42

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL 55 / - - 43 + - - 41
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5327
SELECT + - COALESCE ( CAST( 49 AS SIGNED ), + 59 ) DIV + 9 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5327
SELECT + - COALESCE ( CAST ( 49 AS INTEGER ), + 59 ) / + 9 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT + 26 + 6 * + - ( - - COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-5328
SELECT + 26 + 6 * + - ( - - COUNT ( * ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT + - COALESCE ( - 48, - COUNT( * ) ) col1
----
48

skipif mysql # not compatible
query I rowsort label-5329
SELECT + - COALESCE ( - 48, - COUNT ( * ) ) col1
----
48

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

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

query I rowsort
SELECT + 84 * COALESCE ( - - 12, + 14, - 60 )
----
1008

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5333
SELECT ALL + 4 AS col0, CAST( NULL AS SIGNED ) AS col2
----
4
NULL

skipif mysql # not compatible
query II rowsort label-5333
SELECT ALL + 4 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
4
NULL

query I rowsort
SELECT + 36 + - 91
----
-55

query II rowsort
SELECT DISTINCT + 20 AS col2, + 53
----
20
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT + COALESCE ( - 76, + - ( 28 ) ) * + CAST( + + 85 AS SIGNED )
----
-6460

skipif mysql # not compatible
query I rowsort label-5336
SELECT + COALESCE ( - 76, + - ( 28 ) ) * + CAST ( + + 85 AS INTEGER )
----
-6460

query I rowsort
SELECT ( + 57 ) col2
----
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT DISTINCT 22 * - + MIN( - 1 ) + + 52 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT 22 * - + MIN ( - 1 ) + + 52 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT DISTINCT - COUNT( * ) * + + 38 + - 71 AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT - COUNT ( * ) * + + 38 + - 71 AS col0
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-5341
SELECT DISTINCT + COUNT( * ) * + + 24 + + 26, 85 * + ( + 27 ) AS col1
----
50
2295

skipif mysql # not compatible
query II rowsort label-5341
SELECT DISTINCT + COUNT ( * ) * + + 24 + + 26, 85 * + ( + 27 ) AS col1
----
50
2295

query II rowsort
SELECT DISTINCT + 35 AS col1, + 48 * + - 69 AS col1
----
35
-3312

query I rowsort
SELECT ALL - 98 * + + 71 + - 46
----
-7004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5344
SELECT COALESCE ( - 61, - 86, + 60 * 12 * + 28 * ( + 11 ) DIV + + ( - COUNT( * ) ) + - ( - - COUNT( 85 ) ) + - 96 + - + 41 + - COUNT( * ) + - + 88 * + - 53 + - COUNT( * ) * + 90 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-5344
SELECT COALESCE ( - 61, - 86, + 60 * 12 * + 28 * ( + 11 ) / + + ( - COUNT ( * ) ) + - ( - - COUNT ( 85 ) ) + - 96 + - + 41 + - COUNT ( * ) + - + 88 * + - 53 + - COUNT ( * ) * + 90 ) AS col0
----
-61

query I rowsort
SELECT - 40 + + 10
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5346
SELECT ALL - CAST( - CASE - + ( COUNT( * ) ) WHEN - 85 * + + ( + 75 ) / - 67 THEN NULL WHEN - 84 THEN - 30 * 13 + + - 53 + - 57 * - 94 WHEN CAST( NULL AS SIGNED ) + + 5 + + 38 * SUM( 48 ) THEN - + 37 END AS SIGNED ) * + 50 * + 12 + 81 - + 88 + + - MAX( DISTINCT + 80 ) - - COALESCE ( + 87, - 49 * 1 ) * 89 * - + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL - CAST ( - CASE - + ( COUNT ( * ) ) WHEN - 85 * + + ( + 75 ) / - 67 THEN NULL WHEN - 84 THEN - 30 * 13 + + - 53 + - 57 * - 94 WHEN CAST ( NULL AS INTEGER ) + + 5 + + 38 * SUM ( 48 ) THEN - + 37 END AS INTEGER ) * + 50 * + 12 + 81 - + 88 + + - MAX ( DISTINCT + 80 ) - - COALESCE ( + 87, - 49 * 1 ) * 89 * - + 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT + ( 10 ) + ( + + CASE + 43 WHEN - + COALESCE ( 22, 66 * - + 50 + 5, 88 * COUNT( * ) ) THEN - 99 END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT + ( 10 ) + ( + + CASE + 43 WHEN - + COALESCE ( 22, 66 * - + 50 + 5, 88 * COUNT ( * ) ) THEN - 99 END ) col1
----
NULL

query I rowsort
SELECT ALL - 13 + - 87 + - 0 * + 83 AS col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT + 7 * MAX( 84 ) + - 70 + - + 93 * + 34 AS col0
----
-2644

skipif mysql # not compatible
query I rowsort label-5349
SELECT + 7 * MAX ( 84 ) + - 70 + - + 93 * + 34 AS col0
----
-2644

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT MAX( ALL + 67 ) col0
----
67

skipif mysql # not compatible
query I rowsort label-5350
SELECT MAX ( ALL + 67 ) col0
----
67

query I rowsort
SELECT 6 * - 37
----
-222

query I rowsort
SELECT + 25 * - - 65
----
1625

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT NULLIF ( - NULLIF ( + 78, - COUNT( * ) + - 87 + - 58 ), 46 + - - 88 + - 68 * - MIN( DISTINCT 63 ) + + 94 * + 53 / - SUM( DISTINCT - 17 ) ) col1
----
-78

skipif mysql # not compatible
query I rowsort label-5353
SELECT NULLIF ( - NULLIF ( + 78, - COUNT ( * ) + - 87 + - 58 ), 46 + - - 88 + - 68 * - MIN ( DISTINCT 63 ) + + 94 * + 53 / - SUM ( DISTINCT - 17 ) ) col1
----
-78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL + + ( + 58 ) - SUM( - 32 ) * 22 AS col1
----
762

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL + + ( + 58 ) - SUM ( - 32 ) * 22 AS col1
----
762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5356
SELECT + 56 * + 37 * - COUNT( * ) * - + COALESCE ( 66, CAST( - + 66 AS SIGNED ) )
----
136752

skipif mysql # not compatible
query I rowsort label-5356
SELECT + 56 * + 37 * - COUNT ( * ) * - + COALESCE ( 66, CAST ( - + 66 AS INTEGER ) )
----
136752

onlyif mysql # aggregate syntax: 
query II rowsort label-5357
SELECT DISTINCT + 72, 43 + + COUNT( ALL + 39 ) AS col0
----
72
44

skipif mysql # not compatible
query II rowsort label-5357
SELECT DISTINCT + 72, 43 + + COUNT ( ALL + 39 ) AS col0
----
72
44

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

skipif mysql # not compatible
query I rowsort label-5358
SELECT - - SUM ( ALL 27 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5359
SELECT ALL + COUNT( * ) - CAST( NULL AS DECIMAL ) + - 82 * - - 90 + - + 36 * - + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL + COUNT ( * ) - CAST ( NULL AS REAL ) + - 82 * - - 90 + - + 36 * - + 9
----
NULL

query I rowsort
SELECT + 23 * 99
----
2277

query I rowsort
SELECT ( - 48 ) - - 54
----
6

query II rowsort
SELECT - 84 AS col0, 78 + 71 col0
----
-84
149

query II rowsort
SELECT ALL 46 AS col0, - 68
----
46
-68

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

query I rowsort
SELECT + COALESCE ( NULLIF ( + 0, + AVG ( ALL + 70 ) ), + 14 ) col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5366
SELECT ALL 55 DIV - ( + 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL 55 / - ( + 38 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5367
SELECT 68 DIV - - 48, CAST( NULL AS SIGNED ) * 46 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5367
SELECT 68 / - - 48, CAST ( NULL AS INTEGER ) * 46 AS col1
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5368
SELECT ALL 1 DIV - - 25 * + 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL 1 / - - 25 * + 80 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT 45 * - + ( - COUNT( - ( - 54 ) ) ) + - - 61 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-5369
SELECT 45 * - + ( - COUNT ( - ( - 54 ) ) ) + - - 61 AS col1
----
106

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT 94 DIV 58 * - + 20 * + - 73
----
1460

skipif mysql # not compatible
query I rowsort label-5371
SELECT 94 / 58 * - + 20 * + - 73
----
1460

query I rowsort
SELECT DISTINCT 54 * - - 12 AS col0
----
648

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5373
SELECT DISTINCT + 27 + COALESCE ( - 91, ( 94 ) + - - COUNT( * ), + - 47 ) AS col0, - 13 DIV + 68 * 11
----
-64
0

skipif mysql # not compatible
query II rowsort label-5373
SELECT DISTINCT + 27 + COALESCE ( - 91, ( 94 ) + - - COUNT ( * ), + - 47 ) AS col0, - 13 / + 68 * 11
----
-64
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT DISTINCT 18 * + ( - COUNT( 54 ) ) col1
----
-18

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT 18 * + ( - COUNT ( 54 ) ) col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5375
SELECT DISTINCT ( 98 ) + + CAST( NULL AS SIGNED ) * - 18 AS col2, 76 AS col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-5375
SELECT DISTINCT ( 98 ) + + CAST ( NULL AS INTEGER ) * - 18 AS col2, 76 AS col1
----
NULL
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5376
SELECT DISTINCT 11 + - 4 - + 30 * + + 96 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT 11 + - 4 - + 30 * + + 96 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 77 + - 48
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5378
SELECT 19 * 14 DIV - 68 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5378
SELECT 19 * 14 / - 68 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5379
SELECT ALL 81 + MIN( + - 74 ) - CAST( - + ( + ( + 25 ) ) AS SIGNED ) * + 51 + - 43 AS col2
----
1239

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL 81 + MIN ( + - 74 ) - CAST ( - + ( + ( + 25 ) ) AS INTEGER ) * + 51 + - 43 AS col2
----
1239

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5380
SELECT + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5380
SELECT + - CAST ( NULL AS REAL ) AS col1
----
NULL

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

query I rowsort
SELECT ALL 35 * + - 8 + - + 2 + + 82 * 53 col0
----
4064

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT 74 * + SUM( ALL ( 17 ) ) * 0 * + 43 * + 59 + 58 + - - 21 + 65 * + 57 AS col1
----
3784

skipif mysql # not compatible
query I rowsort label-5383
SELECT 74 * + SUM ( ALL ( 17 ) ) * 0 * + 43 * + 59 + 58 + - - 21 + 65 * + 57 AS col1
----
3784

query I rowsort
SELECT DISTINCT 74 - 92
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5385
SELECT DISTINCT - + 15 * - COUNT( * ) + - CASE 8 WHEN - + 1 THEN NULL ELSE - - 56 - + - 86 + + - 45 DIV - 80 END
----
-127

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT - + 15 * - COUNT ( * ) + - CASE 8 WHEN - + 1 THEN NULL ELSE - - 56 - + - 86 + + - 45 / - 80 END
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5386
SELECT DISTINCT + - CASE - + 47 WHEN + + 6 THEN 97 + + 94 END - - NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT + - CASE - + 47 WHEN + + 6 THEN 97 + + 94 END - - NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT + 98 + 5 * + 65
----
423

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT - COUNT( ALL 9 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5388
SELECT - COUNT ( ALL 9 ) col0
----
-1

query II rowsort
SELECT ALL - ( - + 5 ) AS col1, - 51 AS col0
----
5
-51

query I rowsort
SELECT 23 + + - 90 AS col1
----
-67

query I rowsort
SELECT 82 * + 33 * 28 AS col2
----
75768

onlyif mysql # aggregate syntax: 
query II rowsort label-5392
SELECT - 48 + 72 AS col2, - 3 + + + NULLIF ( - - COUNT( * ), - - ( + 84 ) ) + - + CASE - - 43 WHEN + 82 * + 90 + + + ( + 22 ) * - 84 * 65 THEN - 50 WHEN - - 85 THEN NULL END col0
----
24
NULL

skipif mysql # not compatible
query II rowsort label-5392
SELECT - 48 + 72 AS col2, - 3 + + + NULLIF ( - - COUNT ( * ), - - ( + 84 ) ) + - + CASE - - 43 WHEN + 82 * + 90 + + + ( + 22 ) * - 84 * 65 THEN - 50 WHEN - - 85 THEN NULL END col0
----
24
NULL

query I rowsort
SELECT DISTINCT - ( + + 45 ) AS col0
----
-45

query I rowsort
SELECT ALL + 25 * - 15 * 14
----
-5250

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT DISTINCT - 67 * 36 * + COUNT( * )
----
-2412

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT - 67 * 36 * + COUNT ( * )
----
-2412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5396
SELECT 7 * + CASE - 21 WHEN + + 79 THEN NULL WHEN - + 73 - - 90 + + 45 + - 1 * + ( - + 37 ) THEN - + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT 7 * + CASE - 21 WHEN + + 79 THEN NULL WHEN - + 73 - - 90 + + 45 + - 1 * + ( - + 37 ) THEN - + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT 78 + + + 97
----
175

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

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

query I rowsort
SELECT DISTINCT - 86 * - - 1 AS col0
----
-86

query I rowsort
SELECT 62 * + 47 * - 75 * + - 59 col0
----
12894450

query II rowsort
SELECT NULLIF ( + 7, + 66 ) AS col1, + 32 + 13 - + 78 * + ( - - CASE - 86 WHEN - + 97 THEN - ( - + 71 ) WHEN + 5 THEN NULL END ) AS col0
----
7
NULL

query I rowsort
SELECT ALL 14 * + 55 + + 46 col0
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT ALL - COALESCE ( + COUNT( * ), + + 20 + 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL - COALESCE ( + COUNT ( * ), + + 20 + 35 )
----
-1

query I rowsort
SELECT 87 * - 74 AS col1
----
-6438

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT 77 * MIN( 55 ) AS col2
----
4235

skipif mysql # not compatible
query I rowsort label-5406
SELECT 77 * MIN ( 55 ) AS col2
----
4235

query I rowsort
SELECT 12 * 31
----
372

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

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

query I rowsort
SELECT - 87 * - 32 AS col2
----
2784

query I rowsort
SELECT + 93 * 14
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ALL CASE - 2 WHEN - + SUM( ALL 53 ) + - 50 THEN COUNT( * ) * + 8 ELSE NULL END * + 28 + + - AVG ( DISTINCT 77 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL CASE - 2 WHEN - + SUM ( ALL 53 ) + - 50 THEN COUNT ( * ) * + 8 ELSE NULL END * + 28 + + - AVG ( DISTINCT 77 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5412
SELECT - 5 + + - 82 * + - 25 - 40 + 40 * - - 61 * + + MIN( DISTINCT 1 ) AS col0, NULLIF ( 66, + 77 + - + 90 * CAST( + - 70 AS SIGNED ) / - 20 )
----
4445
66

skipif mysql # not compatible
query II rowsort label-5412
SELECT - 5 + + - 82 * + - 25 - 40 + 40 * - - 61 * + + MIN ( DISTINCT 1 ) AS col0, NULLIF ( 66, + 77 + - + 90 * CAST ( + - 70 AS INTEGER ) / - 20 )
----
4445
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT DISTINCT 69 * + - 3 - + COUNT( * ) + - - 33
----
-175

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT 69 * + - 3 - + COUNT ( * ) + - - 33
----
-175

query I rowsort
SELECT + - 16 + - - ( + 38 ) + 31 AS col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5415
SELECT + 7 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-5415
SELECT + 7 / + 91
----
0

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

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

query I rowsort
SELECT + + 42 * ( + 27 ) AS col1
----
1134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5418
SELECT ALL + ( - NULLIF ( + + MIN( DISTINCT - 2 ), - 29 ) ) * NULLIF ( SUM( + 81 ), + ( + 94 ) + - - 26 + + 17 ) * 29 * + NULLIF ( 21, - 90 + + 42 + - + COALESCE ( - - 16, MIN( - - 68 ) - + 4 + COUNT( * ), + + 30 ) * + - 68 * + COUNT( * ) * - 14 + + - NULLIF ( NULLIF ( 69, + + COALESCE ( - 5, + + 47, + 18 ) + - COUNT( * ) ), + CASE - 35 WHEN 66 THEN NULL ELSE 2 / + 45 + CAST( NULL AS SIGNED ) END ) )
----
98658

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL + ( - NULLIF ( + + MIN ( DISTINCT - 2 ), - 29 ) ) * NULLIF ( SUM ( + 81 ), + ( + 94 ) + - - 26 + + 17 ) * 29 * + NULLIF ( 21, - 90 + + 42 + - + COALESCE ( - - 16, MIN ( - - 68 ) - + 4 + COUNT ( * ), + + 30 ) * + - 68 * + COUNT ( * ) * - 14 + + - NULLIF ( NULLIF ( 69, + + COALESCE ( - 5, + + 47, + 18 ) + - COUNT ( * ) ), + CASE - 35 WHEN 66 THEN NULL ELSE 2 / + 45 + CAST ( NULL AS INTEGER ) END ) )
----
98658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5419
SELECT DISTINCT 64 DIV MAX( DISTINCT - 49 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT 64 / MAX ( DISTINCT - 49 ) AS col1
----
-1

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5422
SELECT - + 74 AS col2, 11 * - + COUNT( * ) AS col0
----
-74
-11

skipif mysql # not compatible
query II rowsort label-5422
SELECT - + 74 AS col2, 11 * - + COUNT ( * ) AS col0
----
-74
-11

query I rowsort
SELECT + 66 + 2 + + 83 AS col0
----
151

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

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

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

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

query I rowsort
SELECT + + 40 * + - 49 * + + 35 + + 63 + + 50
----
-68487

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL - NULLIF ( - - COUNT( * ), + 7 ) * + 18 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - NULLIF ( - - COUNT ( * ), + 7 ) * + 18 AS col1
----
-18

query I rowsort
SELECT DISTINCT 11 * + 23 AS col2
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT DISTINCT MAX( DISTINCT + - 48 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT MAX ( DISTINCT + - 48 ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT + - ( + 31 ) * + - MAX( 96 ) + + - 89 AS col1
----
2887

skipif mysql # not compatible
query I rowsort label-5430
SELECT + - ( + 31 ) * + - MAX ( 96 ) + + - 89 AS col1
----
2887

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT DISTINCT MAX( DISTINCT 98 )
----
98

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT MAX ( DISTINCT 98 )
----
98

query I rowsort
SELECT - ( - - 35 ) * + 10 col0
----
-350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5433
SELECT + NULLIF ( + + 46, MIN( + - 31 ) ) - - - CAST( NULL AS SIGNED ) - + COALESCE ( 36, - - 92 ) - - 1 * - + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5433
SELECT + NULLIF ( + + 46, MIN ( + - 31 ) ) - - - CAST ( NULL AS INTEGER ) - + COALESCE ( 36, - - 92 ) - - 1 * - + 16 AS col2
----
NULL

query II rowsort
SELECT 24 AS col2, 32 col0
----
24
32

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5436
SELECT ALL - MIN( DISTINCT + - 6 ) + - 73 DIV 90 DIV + 20 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL - MIN ( DISTINCT + - 6 ) + - 73 / 90 / + 20 AS col2
----
6

query II rowsort
SELECT 97, + COALESCE ( 44, + 83 ) AS col1
----
97
44

query I rowsort
SELECT ALL 83 + 43 AS col2
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5439
SELECT - ( + - 36 ) DIV - + COUNT( * ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-5439
SELECT - ( + - 36 ) / - + COUNT ( * ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT ALL + COUNT( * ) * + + 24 * - - 44
----
1056

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL + COUNT ( * ) * + + 24 * - - 44
----
1056

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5441
SELECT 10 col2, CAST( - 36 AS SIGNED ) * - - 81 + - 49 * 24 AS col0
----
10
-4092

skipif mysql # not compatible
query II rowsort label-5441
SELECT 10 col2, CAST ( - 36 AS INTEGER ) * - - 81 + - 49 * 24 AS col0
----
10
-4092

onlyif mysql # DIV for integer division: 
query I rowsort label-5442
SELECT DISTINCT 77 DIV 54
----
1

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT 77 / 54
----
1

query I rowsort
SELECT ALL 36 + + 1 - - ( + 85 ) * - 35 AS col0
----
-2938

query I rowsort
SELECT DISTINCT + 91 * - 39
----
-3549

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5445
SELECT - 9 / - - MAX( - - 62 ) / + CAST( NULL AS SIGNED ) - + 50 / + + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT - 9 / - - MAX ( - - 62 ) / + CAST ( NULL AS INTEGER ) - + 50 / + + 23 AS col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT CAST( NULL AS SIGNED ) * - 66 + - 78 - + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT CAST ( NULL AS INTEGER ) * - 66 + - 78 - + + 46
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5448
SELECT ( + 4 ) AS col2, 98 DIV 68 * + 33 AS col0
----
4
33

skipif mysql # not compatible
query II rowsort label-5448
SELECT ( + 4 ) AS col2, 98 / 68 * + 33 AS col0
----
4
33

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

query I rowsort
SELECT DISTINCT - 38 * + 64 AS col0
----
-2432

onlyif mysql # aggregate syntax: 
query II rowsort label-5451
SELECT + 2, 23 + + COUNT( * ) + - 51 + - 38 AS col2
----
2
-65

skipif mysql # not compatible
query II rowsort label-5451
SELECT + 2, 23 + + COUNT ( * ) + - 51 + - 38 AS col2
----
2
-65

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT ALL + CASE - 10 WHEN + CAST( NULL AS SIGNED ) + + COALESCE ( - + 99, + + 51, + ( + COALESCE ( 14, + + CAST( NULL AS SIGNED ) * 16 + + 5 ) ) * - 11 * + + 26 ) THEN + MIN( DISTINCT - 87 ) WHEN CASE + 9 WHEN + ( 57 ) * + 1 * - 82 + + 97 THEN 57 / + 74 ELSE NULL END THEN - MAX( + 92 ) WHEN - + ( - 75 ) + + 12 THEN - SUM( + - 30 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL + CASE - 10 WHEN + CAST ( NULL AS INTEGER ) + + COALESCE ( - + 99, + + 51, + ( + COALESCE ( 14, + + CAST ( NULL AS INTEGER ) * 16 + + 5 ) ) * - 11 * + + 26 ) THEN + MIN ( DISTINCT - 87 ) WHEN CASE + 9 WHEN + ( 57 ) * + 1 * - 82 + + 97 THEN 57 / + 74 ELSE NULL END THEN - MAX ( + 92 ) WHEN - + ( - 75 ) + + 12 THEN - SUM ( + - 30 ) END AS col0
----
NULL

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

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

query I rowsort
SELECT - 40 + 72 - - 93
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5456
SELECT DISTINCT + + COUNT( * ), 74 DIV - + NULLIF ( + - 84, NULLIF ( - - 37, - + CAST( NULL AS SIGNED ) ) + - 52 + 66 ) * + 87 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-5456
SELECT DISTINCT + + COUNT ( * ), 74 / - + NULLIF ( + - 84, NULLIF ( - - 37, - + CAST ( NULL AS INTEGER ) ) + - 52 + 66 ) * + 87 AS col2
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5457
SELECT ALL + CASE - COUNT( * ) WHEN + 86 * COUNT( * ) + - ( - 15 ) + 71 / 11 * + 43 * - + COUNT( * ) * + - CAST( 85 AS SIGNED ) THEN - CAST( NULL AS SIGNED ) WHEN 43 + 73 - + + 94 / - NULLIF ( - - 41, + 19 ) THEN NULL WHEN + COALESCE ( 59, + + ( - 44 ), + COUNT( * ) ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL + CASE - COUNT ( * ) WHEN + 86 * COUNT ( * ) + - ( - 15 ) + 71 / 11 * + 43 * - + COUNT ( * ) * + - CAST ( 85 AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) WHEN 43 + 73 - + + 94 / - NULLIF ( - - 41, + 19 ) THEN NULL WHEN + COALESCE ( 59, + + ( - 44 ), + COUNT ( * ) ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5458
SELECT + 7, - 92 + + MAX( ALL + 46 ) AS col2
----
7
-46

skipif mysql # not compatible
query II rowsort label-5458
SELECT + 7, - 92 + + MAX ( ALL + 46 ) AS col2
----
7
-46

query I rowsort
SELECT 21 * 42 + 71 * + 2 col2
----
1024

onlyif mysql # aggregate syntax: 
query II rowsort label-5460
SELECT + MAX( - 81 ), + 47 + NULLIF ( - 99, - 37 ) * - + 30 AS col1
----
-81
3017

skipif mysql # not compatible
query II rowsort label-5460
SELECT + MAX ( - 81 ), + 47 + NULLIF ( - 99, - 37 ) * - + 30 AS col1
----
-81
3017

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT + COUNT( * ) + - 35 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-5461
SELECT + COUNT ( * ) + - 35 AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5462
SELECT - 80 * COUNT( * ) DIV 40 * + + 66 AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-5462
SELECT - 80 * COUNT ( * ) / 40 * + + 66 AS col2
----
-132

query I rowsort
SELECT ALL + 24 * - 64 col1
----
-1536

query II rowsort
SELECT + + 76 AS col0, - 88 * + - 7 AS col2
----
76
616

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT ALL + CASE 4 WHEN - 25 THEN + - 13 / - CASE - COUNT( - 68 ) WHEN - - ( COUNT( * ) ) - + - 59 THEN + + 19 / 25 WHEN - + SUM( ALL - 21 ) THEN NULL END + - 37 ELSE NULL END * - COUNT( * ) * - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL + CASE 4 WHEN - 25 THEN + - 13 / - CASE - COUNT ( - 68 ) WHEN - - ( COUNT ( * ) ) - + - 59 THEN + + 19 / 25 WHEN - + SUM ( ALL - 21 ) THEN NULL END + - 37 ELSE NULL END * - COUNT ( * ) * - 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT + - 69 * - MAX( DISTINCT 34 )
----
2346

skipif mysql # not compatible
query I rowsort label-5466
SELECT + - 69 * - MAX ( DISTINCT 34 )
----
2346

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5468
SELECT DISTINCT - 38 * + 62 + MAX( - 67 ) + - CAST( NULL AS SIGNED ) / - 78 - 31 * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT - 38 * + 62 + MAX ( - 67 ) + - CAST ( NULL AS INTEGER ) / - 78 - 31 * - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT - 31 * 73 + + - 36 * - + 14 * + 6 + + + MAX( ALL + + 55 ) + - 11
----
805

skipif mysql # not compatible
query I rowsort label-5469
SELECT - 31 * 73 + + - 36 * - + 14 * + 6 + + + MAX ( ALL + + 55 ) + - 11
----
805

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT + ( + 63 ) - + + 93 * + 47 * + 66 * + COUNT( * ) * + - 90 AS col2
----
25963803

skipif mysql # not compatible
query I rowsort label-5470
SELECT + ( + 63 ) - + + 93 * + 47 * + 66 * + COUNT ( * ) * + - 90 AS col2
----
25963803

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT - 96 + + COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-5471
SELECT - 96 + + COUNT ( * ) AS col0
----
-95

query I rowsort
SELECT + 66 * 83 * 55 AS col1
----
301290

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT + MAX( 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5473
SELECT + MAX ( 29 ) AS col1
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT ALL MIN( 60 ) * 25 + + + COUNT( * )
----
1501

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL MIN ( 60 ) * 25 + + + COUNT ( * )
----
1501

onlyif mysql # DIV for integer division: 
query I rowsort label-5476
SELECT + 54 + 67 + - 11 + 92 + + 90 - 39 * + 81 * + 0 * + 45 DIV - + 66 * - 14 * - 91 + + 81 AS col0
----
373

skipif mysql # not compatible
query I rowsort label-5476
SELECT + 54 + 67 + - 11 + 92 + + 90 - 39 * + 81 * + 0 * + 45 / - + 66 * - 14 * - 91 + + 81 AS col0
----
373

query I rowsort
SELECT ALL NULLIF ( + + 44, + ( 0 ) ) * - - 77 * 1 - + 67 * - 82 * 82 AS col0
----
453896

query I rowsort
SELECT ALL 36 + - 67
----
-31

query I rowsort
SELECT ( + ( - + 13 ) ) * - - 30 AS col1
----
-390

query II rowsort
SELECT 28 * 44 AS col2, + 77 AS col2
----
1232
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5481
SELECT ALL - CASE WHEN NOT + 42 IN ( + + COALESCE ( - 50, - 66, - + 75 ) + COUNT( * ), 21, + 57, - 0 * 86, - + MAX( + - 66 ) * + - 61 * 0 - - 55 ) THEN + 1 + COUNT( * ) * + 45 ELSE NULL END AS col0, + 98 + + NULLIF ( - - 76, + SUM( ALL + - 29 ) + + COUNT( * ) ) AS col2
----
-46
174

skipif mysql # not compatible
query II rowsort label-5481
SELECT ALL - CASE WHEN NOT + 42 IN ( + + COALESCE ( - 50, - 66, - + 75 ) + COUNT ( * ), 21, + 57, - 0 * 86, - + MAX ( + - 66 ) * + - 61 * 0 - - 55 ) THEN + 1 + COUNT ( * ) * + 45 ELSE NULL END AS col0, + 98 + + NULLIF ( - - 76, + SUM ( ALL + - 29 ) + + COUNT ( * ) ) AS col2
----
-46
174

onlyif mysql # DIV for integer division: 
query I rowsort label-5482
SELECT ALL - ( + + 88 ) DIV - 24
----
3

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL - ( + + 88 ) / - 24
----
3

query I rowsort
SELECT 18 * - + 96 AS col0
----
-1728

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5485
SELECT DISTINCT - 61 * + 6 AS col0, NULLIF ( + MIN( DISTINCT + - 23 ), - 77 ) col1
----
-366
-23

skipif mysql # not compatible
query II rowsort label-5485
SELECT DISTINCT - 61 * + 6 AS col0, NULLIF ( + MIN ( DISTINCT + - 23 ), - 77 ) col1
----
-366
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-5486
SELECT 37 DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-5486
SELECT 37 / - 41
----
0

query I rowsort
SELECT + 51 * + 58 + 2
----
2960

query I rowsort
SELECT 96 + - + 43 AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5489
SELECT ALL - CAST( - - 73 AS SIGNED ) AS col0, 17 + - + 81
----
-73
-64

skipif mysql # not compatible
query II rowsort label-5489
SELECT ALL - CAST ( - - 73 AS INTEGER ) AS col0, 17 + - + 81
----
-73
-64

query I rowsort
SELECT 88 * 93 - + ( - 45 ) AS col1
----
8229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5491
SELECT 67 * + ( - NULLIF ( 2, + - MAX( ALL 32 ) + - 8 ) ) DIV COUNT( * ) * + 45
----
-6030

skipif mysql # not compatible
query I rowsort label-5491
SELECT 67 * + ( - NULLIF ( 2, + - MAX ( ALL 32 ) + - 8 ) ) / COUNT ( * ) * + 45
----
-6030

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL + + 79 + + COUNT( * ) * + 45
----
124

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL + + 79 + + COUNT ( * ) * + 45
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5493
SELECT 44 + + CAST( + - 11 AS SIGNED ) + 21 * - + 21
----
-408

skipif mysql # not compatible
query I rowsort label-5493
SELECT 44 + + CAST ( + - 11 AS INTEGER ) + 21 * - + 21
----
-408

query I rowsort
SELECT DISTINCT + - 49 + 9
----
-40

query I rowsort
SELECT ALL + 77 + - 51 AS col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5496
SELECT DISTINCT - + 37 + - - 24 DIV - MAX( DISTINCT - 91 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT - + 37 + - - 24 / - MAX ( DISTINCT - 91 ) AS col0
----
-37

query II rowsort
SELECT + ( + 44 ), 69 AS col1
----
44
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT ALL - + 20 DIV + + 1 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - + 20 / + + 1 AS col2
----
-20

query I rowsort
SELECT DISTINCT 90 * + 47 col2
----
4230

query II rowsort
SELECT DISTINCT - 36 * - - 29 * - 42, - 51 * - + 42 - 56 AS col0
----
43848
2086

query I rowsort
SELECT ALL + 82 + - - 15
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT ALL 42 - - COUNT( * ) * - 27 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL 42 - - COUNT ( * ) * - 27 AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT 3 DIV 22 * + ( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5503
SELECT 3 / 22 * + ( - 0 )
----
0

query II rowsort
SELECT 30 AS col0, - 60
----
30
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5505
SELECT NULLIF ( - ( CAST( - 88 AS SIGNED ) ), + + 36 ) * 50 DIV + COUNT( * )
----
4400

skipif mysql # not compatible
query I rowsort label-5505
SELECT NULLIF ( - ( CAST ( - 88 AS INTEGER ) ), + + 36 ) * 50 / + COUNT ( * )
----
4400

query II rowsort
SELECT - 35 AS col2, + 55 * 92 * 53
----
-35
268180

query II rowsort
SELECT 46 col2, + 79 AS col1
----
46
79

query I rowsort
SELECT COALESCE ( - 19, - - 99 ) - + 8
----
-27

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

skipif mysql # not compatible
query I rowsort label-5509
SELECT CAST ( NULL AS INTEGER ) * ( 4 ) AS col0
----
NULL

query II rowsort
SELECT ALL 42, 95 AS col1
----
42
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5511
SELECT 12 - + NULLIF ( + ( - CAST( 19 AS SIGNED ) ), + 19 * + 22 - COUNT( * ) - 34 * + 49 * - - 72 + ( - 3 ) ) + + 17 + 69 * - ( + 16 )
----
-1056

skipif mysql # not compatible
query I rowsort label-5511
SELECT 12 - + NULLIF ( + ( - CAST ( 19 AS INTEGER ) ), + 19 * + 22 - COUNT ( * ) - 34 * + 49 * - - 72 + ( - 3 ) ) + + 17 + 69 * - ( + 16 )
----
-1056

onlyif mysql # aggregate syntax: 
query II rowsort label-5512
SELECT ALL 46 AS col0, MAX( DISTINCT + 58 )
----
46
58

skipif mysql # not compatible
query II rowsort label-5512
SELECT ALL 46 AS col0, MAX ( DISTINCT + 58 )
----
46
58

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

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL CAST ( NULL AS INTEGER ) * - 34
----
NULL

query I rowsort
SELECT 28 * - 62 AS col2
----
-1736

query I rowsort
SELECT DISTINCT 70 * + 13 AS col2
----
910

query I rowsort
SELECT DISTINCT 81 * 19
----
1539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5517
SELECT 20 / - - 65 * + 94 - + 52 - SUM( ALL - 58 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT 20 / - - 65 * + 94 - + 52 - SUM ( ALL - 58 ) / - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5518
SELECT + SUM ( + 41 )
----
41

query II rowsort
SELECT + + 67, - ( 4 ) AS col0
----
67
-4

query I rowsort
SELECT + 23 * + 88 * 13 * - 68
----
-1789216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5521
SELECT ALL + ( CAST( + 5 AS SIGNED ) ) + 71 * - - 53 col1
----
3768

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL + ( CAST ( + 5 AS INTEGER ) ) + 71 * - - 53 col1
----
3768

onlyif mysql # DIV for integer division: 
query I rowsort label-5522
SELECT - 56 DIV 69 + 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5522
SELECT - 56 / 69 + 1 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5523
SELECT - ( + + 78 ) * ( 96 ) * + 17 + + 7 - + MAX( ALL + - CAST( NULL AS DECIMAL ) ) + + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5523
SELECT - ( + + 78 ) * ( 96 ) * + 17 + + 7 - + MAX ( ALL + - CAST ( NULL AS REAL ) ) + + 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT ALL SUM( ALL + 50 ) + - 38 * + ( - 2 )
----
126

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL SUM ( ALL + 50 ) + - 38 * + ( - 2 )
----
126

query I rowsort
SELECT ALL - 42 + + + 21 col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5526
SELECT ALL + 83 + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * 25, 13 AS col1
----
NULL
13

skipif mysql # not compatible
query II rowsort label-5526
SELECT ALL + 83 + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * 25, 13 AS col1
----
NULL
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT - + COUNT( * ) * + 59 + + 74 + + - 29 + - ( + COUNT( * ) ) * - 7 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5527
SELECT - + COUNT ( * ) * + 59 + + 74 + + - 29 + - ( + COUNT ( * ) ) * - 7 AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5528
SELECT MAX( DISTINCT - 31 ) DIV + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5528
SELECT MAX ( DISTINCT - 31 ) / + 88 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5529
SELECT + + 7 AS col2, - 65 DIV + + MAX( DISTINCT + 8 )
----
7
-8

skipif mysql # not compatible
query II rowsort label-5529
SELECT + + 7 AS col2, - 65 / + + MAX ( DISTINCT + 8 )
----
7
-8

query II rowsort
SELECT ALL - 51 AS col0, - 27 AS col1
----
-51
-27

query I rowsort
SELECT DISTINCT + CASE 8 WHEN + - 60 + - 42 THEN - 73 WHEN 1 * + 17 THEN NULL END * + 77 AS col2
----
NULL

query II rowsort
SELECT ALL - 41, 32 col2
----
-41
32

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5534
SELECT ALL + 96 - + COUNT( + 18 ) - CASE ( - COALESCE ( + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ), 26 / + ( COUNT( * ) ), CAST( NULL AS SIGNED ) / - 90 + - + 62 - - 91 * 37 ) ) WHEN - 49 THEN - 84 * 73 + - + 2 * + + 62 * + 29 + + 9 WHEN 18 THEN + 58 * - 78 * + 18 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL + 96 - + COUNT ( + 18 ) - CASE ( - COALESCE ( + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ), 26 / + ( COUNT ( * ) ), CAST ( NULL AS INTEGER ) / - 90 + - + 62 - - 91 * 37 ) ) WHEN - 49 THEN - 84 * 73 + - + 2 * + + 62 * + 29 + + 9 WHEN 18 THEN + 58 * - 78 * + 18 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT DISTINCT COALESCE ( - 71, 72, - COALESCE ( - 57, 28, 51 ) + + COUNT( * ) + - ( + 20 ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT COALESCE ( - 71, 72, - COALESCE ( - 57, 28, 51 ) + + COUNT ( * ) + - ( + 20 ) ) AS col1
----
-71

query I rowsort
SELECT 3 - + 45 col2
----
-42

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

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

query I rowsort
SELECT - 25 - + 42 * + 37 AS col2
----
-1579

onlyif mysql # DIV for integer division: 
query I rowsort label-5539
SELECT - 1 + - 2 DIV 36 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5539
SELECT - 1 + - 2 / 36 AS col1
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT DISTINCT - 6 DIV - + 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT - 6 / - + 34 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT - 41 + + 30 + 54 + + 98 + - 73 * + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-5542
SELECT - 41 + + 30 + 54 + + 98 + - 73 * + COUNT ( * )
----
68

query I rowsort
SELECT ALL - 88 * + 61
----
-5368

query I rowsort
SELECT DISTINCT CASE + 61 WHEN - 47 THEN + 89 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5545
SELECT ALL - COUNT( * ) * + COUNT( DISTINCT 22 ) DIV 27 * - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL - COUNT ( * ) * + COUNT ( DISTINCT 22 ) / 27 * - 68 AS col1
----
0

query I rowsort
SELECT - 5 * 98 AS col1
----
-490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5547
SELECT + 11 + - - 35 DIV + 39 * + 34 + - COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5547
SELECT + 11 + - - 35 / + 39 * + 34 + - COUNT ( * ) AS col1
----
10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT + 87 + - + CAST( 66 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-5549
SELECT + 87 + - + CAST ( 66 AS INTEGER )
----
21

query II rowsort
SELECT + 5 * 56 col1, 59
----
280
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT + 7 + + 16 + + 9 + + COUNT( * ) * + + 16 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-5551
SELECT + 7 + + 16 + + 9 + + COUNT ( * ) * + + 16 AS col0
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT DISTINCT 49 * + + ( - 77 ) + 37 * ( - ( + 99 ) ) * + - MAX( + 4 )
----
10879

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT 49 * + + ( - 77 ) + 37 * ( - ( + 99 ) ) * + - MAX ( + 4 )
----
10879

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT DISTINCT 87 * - - 80 + + ( - - COUNT( * ) )
----
6961

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT 87 * - - 80 + + ( - - COUNT ( * ) )
----
6961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT ALL 37 * 60 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL 37 * 60 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT ALL - ( - - 18 ) * - 70 + + COALESCE ( - 70, + - 59 * 53 + - + COUNT( * ) ) * + 85 AS col2
----
-4690

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL - ( - - 18 ) * - 70 + + COALESCE ( - 70, + - 59 * 53 + - + COUNT ( * ) ) * + 85 AS col2
----
-4690

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

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

query I rowsort
SELECT + 19 + - + 56
----
-37

query II rowsort
SELECT ALL + 90 * - 11 + + - 6 + 24, 77 AS col0
----
-972
77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5561
SELECT + - 55 + + + 37 + 83 * - 65, COUNT( + CAST( + + 19 AS SIGNED ) ) * + - 6 + MIN( ALL + 80 ) + + 46 AS col2
----
-5413
120

skipif mysql # not compatible
query II rowsort label-5561
SELECT + - 55 + + + 37 + 83 * - 65, COUNT ( + CAST ( + + 19 AS INTEGER ) ) * + - 6 + MIN ( ALL + 80 ) + + 46 AS col2
----
-5413
120

query I rowsort
SELECT ALL + 97 * - - 50 * + 18 - + 72 AS col0
----
87228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5563
SELECT ALL + 32 * - 89 * + CAST( - - 47 AS SIGNED ) - 13 AS col0
----
-133869

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL + 32 * - 89 * + CAST ( - - 47 AS INTEGER ) - 13 AS col0
----
-133869

query I rowsort
SELECT - 23 * + 90 + - 15 + + 64
----
-2021

query I rowsort
SELECT + 7 * 90 AS col0
----
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5566
SELECT ALL 13 DIV + + MAX( DISTINCT - 97 )
----
0

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL 13 / + + MAX ( DISTINCT - 97 )
----
0

query I rowsort
SELECT - 25 + + 29
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5568
SELECT - 84 * + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT - 84 * + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 1 + - + 82 col1
----
-83

query I rowsort
SELECT + 13 * + 21 AS col0
----
273

query II rowsort
SELECT - 74, + 19 + 34 - - 77 + + 0 AS col0
----
-74
130

query I rowsort
SELECT + 48 * - + 46 AS col0
----
-2208

query I rowsort
SELECT DISTINCT 6 * 63
----
378

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL ( + CASE + + COALESCE ( + 74, - 66 * + 19 / 84 * - 40 + 9 + - 30, - 82 ) WHEN - - 93 * - MIN( ALL ( + 84 ) ) + 91 THEN - ( + + 49 ) * - 36 + + - COUNT( DISTINCT 13 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL ( + CASE + + COALESCE ( + 74, - 66 * + 19 / 84 * - 40 + 9 + - 30, - 82 ) WHEN - - 93 * - MIN ( ALL ( + 84 ) ) + 91 THEN - ( + + 49 ) * - 36 + + - COUNT ( DISTINCT 13 ) END )
----
NULL

query I rowsort
SELECT ALL + 29 + 75 + + 36 * + + 15 * + 52 * 17
----
477464

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

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

query I rowsort
SELECT - 82 * + 79
----
-6478

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

query I rowsort
SELECT - 75 - + + 30 AS col0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL + COUNT( * ) + - 1 + - 61 * + - 55
----
3355

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL + COUNT ( * ) + - 1 + - 61 * + - 55
----
3355

query I rowsort
SELECT - - COALESCE ( 40, + 62 * 71 * - - 15, + 98 ) - + + 60 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5583
SELECT ALL + 97 + + + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL + 97 + + + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5584
SELECT + CAST( + 1 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5584
SELECT + CAST ( + 1 AS INTEGER ) AS col0
----
1

query II rowsort
SELECT DISTINCT + - ( 84 ) + 34 col0, + 51 AS col2
----
-50
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5586
SELECT ALL - COUNT( * ) + + 72 * + 62 AS col2, 58 * + + 18 * + - 73 AS col0
----
4463
-76212

skipif mysql # not compatible
query II rowsort label-5586
SELECT ALL - COUNT ( * ) + + 72 * + 62 AS col2, 58 * + + 18 * + - 73 AS col0
----
4463
-76212

query I rowsort
SELECT - + 42 + - 36 * - - 42 + - 37
----
-1591

query II rowsort
SELECT - 80 * 80 * - 64 col0, + 7 AS col1
----
409600
7

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

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

query I rowsort
SELECT 67 * 29 + - 73 + - - ( - ( + 26 ) ) AS col0
----
1844

query I rowsort
SELECT + 13 * + 97 - - + 53
----
1314

query I rowsort
SELECT + - 70 * - + 52 AS col1
----
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT ALL + NULLIF ( 38, + + NULLIF ( COUNT( * ), + + AVG ( DISTINCT - 35 ) + + 77 ) )
----
38

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL + NULLIF ( 38, + + NULLIF ( COUNT ( * ), + + AVG ( DISTINCT - 35 ) + + 77 ) )
----
38

query I rowsort
SELECT - + ( - 66 ) + - + 92
----
-26

query I rowsort
SELECT DISTINCT + - 22 col2
----
-22

query I rowsort
SELECT ALL + 40 * + 99 AS col0
----
3960

query I rowsort
SELECT + CASE 36 WHEN 81 THEN - + 68 WHEN + 87 THEN NULL END * - 95 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5598
SELECT + MIN ( - 45 )
----
-45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT COUNT( ALL + + 57 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5600
SELECT COUNT ( ALL + + 57 ) * COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5601
SELECT + 17 col1, - MAX( DISTINCT + 94 ) AS col0
----
17
-94

skipif mysql # not compatible
query II rowsort label-5601
SELECT + 17 col1, - MAX ( DISTINCT + 94 ) AS col0
----
17
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-5602
SELECT 89, + COUNT( * ) * + - 46 AS col0
----
89
-46

skipif mysql # not compatible
query II rowsort label-5602
SELECT 89, + COUNT ( * ) * + - 46 AS col0
----
89
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5603
SELECT 3 + 26 - 46 DIV 54 DIV + 91 + + 41 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-5603
SELECT 3 + 26 - 46 / 54 / + 91 + + 41 AS col2
----
70

query I rowsort
SELECT - 89 * + 91 + + 4
----
-8095

query I rowsort
SELECT 22 + + + 43 AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5606
SELECT ALL CAST( NULL AS SIGNED ) / COUNT( + - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL CAST ( NULL AS INTEGER ) / COUNT ( + - 99 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5607
SELECT - 38, COUNT( * ) * - 55 * - MAX( + 91 ) AS col1
----
-38
5005

skipif mysql # not compatible
query II rowsort label-5607
SELECT - 38, COUNT ( * ) * - 55 * - MAX ( + 91 ) AS col1
----
-38
5005

query I rowsort
SELECT 61 * 49 * - + 59 + - 71 + 81
----
-176341

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5610
SELECT ( 2 ) DIV + 50 * + 66 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5610
SELECT ( 2 ) / + 50 * + 66 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT DISTINCT 23 + 63 + - + COUNT( ALL - 87 ) * - 19 + + SUM( - 13 ) + + 39 + + 51 + 6 AS col2
----
188

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT 23 + 63 + - + COUNT ( ALL - 87 ) * - 19 + + SUM ( - 13 ) + + 39 + + 51 + 6 AS col2
----
188

query I rowsort
SELECT ALL - 98 + 95 + + + 45 * - 72 * + 42 AS col0
----
-136083

query I rowsort
SELECT 46 + + 89
----
135

query II rowsort
SELECT ALL 58 + - 9, - 94 AS col0
----
49
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT + 42 + + 59 * ( + 74 ) + ( - + COUNT( * ) ) AS col2
----
4407

skipif mysql # not compatible
query I rowsort label-5615
SELECT + 42 + + 59 * ( + 74 ) + ( - + COUNT ( * ) ) AS col2
----
4407

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT ALL + + COUNT( * ) + ( 50 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL + + COUNT ( * ) + ( 50 ) AS col0
----
51

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

skipif mysql # not compatible
query I rowsort label-5617
SELECT - MIN ( ALL - 20 )
----
20

query I rowsort
SELECT ALL ( 98 ) * + 90
----
8820

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT ALL 25 + - COUNT( ALL 30 ) * - 70 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL 25 + - COUNT ( ALL 30 ) * - 70 AS col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5620
SELECT - 10, COUNT( * ) col2
----
-10
1

skipif mysql # not compatible
query II rowsort label-5620
SELECT - 10, COUNT ( * ) col2
----
-10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT 88 + + COALESCE ( SUM( - 40 ), - + 1 ) * - 88 * - 8
----
-28072

skipif mysql # not compatible
query I rowsort label-5621
SELECT 88 + + COALESCE ( SUM ( - 40 ), - + 1 ) * - 88 * - 8
----
-28072

onlyif mysql # aggregate syntax: 
query II rowsort label-5622
SELECT + COUNT( * ) + 30, COUNT( 50 ) * + 58 AS col1
----
31
58

skipif mysql # not compatible
query II rowsort label-5622
SELECT + COUNT ( * ) + 30, COUNT ( 50 ) * + 58 AS col1
----
31
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT - 78 + - + 54 + + + 77 * + 36 - + COUNT( * ) * 21 * 7 * + - 97 AS col0
----
16899

skipif mysql # not compatible
query I rowsort label-5623
SELECT - 78 + - + 54 + + + 77 * + 36 - + COUNT ( * ) * 21 * 7 * + - 97 AS col0
----
16899

query II rowsort
SELECT ALL 83 AS col1, - 19
----
83
-19

query I rowsort
SELECT - COALESCE ( - 82, - 28 ) AS col1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5626
SELECT + 92 + - 45 - 10 + - 25 DIV COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-5626
SELECT + 92 + - 45 - 10 + - 25 / COUNT ( * )
----
12

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

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT + - COUNT ( * ) / 55
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT DISTINCT COUNT( * ) - - 42
----
43

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT COUNT ( * ) - - 42
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT + 44 * 52 * - COUNT( * ) * - 86 + - 34
----
196734

skipif mysql # not compatible
query I rowsort label-5630
SELECT + 44 * 52 * - COUNT ( * ) * - 86 + - 34
----
196734

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT + - 28 - - + MAX( DISTINCT + 0 ) + - 34 + ( 85 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT + - 28 - - + MAX ( DISTINCT + 0 ) + - 34 + ( 85 ) AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5632
SELECT DISTINCT + - COUNT( * ) DIV + 59 * + - MAX( DISTINCT + - 27 ) - + 72 * + 67 AS col0
----
-4824

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT + - COUNT ( * ) / + 59 * + - MAX ( DISTINCT + - 27 ) - + 72 * + 67 AS col0
----
-4824

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT + 3 + COUNT( * ) * + 15 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5633
SELECT + 3 + COUNT ( * ) * + 15 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5634
SELECT + 69 * 48 DIV 83 * + COUNT( * ) + + NULLIF ( - CAST( + 86 AS SIGNED ), - - 73 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-5634
SELECT + 69 * 48 / 83 * + COUNT ( * ) + + NULLIF ( - CAST ( + 86 AS INTEGER ), - - 73 ) AS col0
----
-47

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

skipif mysql # not compatible
query I rowsort label-5635
SELECT + - MAX ( + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT 96 * + - COUNT( * ) * - 69 col2
----
6624

skipif mysql # not compatible
query I rowsort label-5636
SELECT 96 * + - COUNT ( * ) * - 69 col2
----
6624

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

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

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

query I rowsort
SELECT 3 + + - 84 * 68 * - 40 * + 77
----
17592963

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT DISTINCT COALESCE ( 34, + 96 + - + ( - + 97 ), 80 DIV - 87 * - 65 + - + 29 + + 77 + - 40 - - 59 + + 9 DIV 11 * + + 69 * 9 ) + + 44
----
78

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT COALESCE ( 34, + 96 + - + ( - + 97 ), 80 / - 87 * - 65 + - + 29 + + 77 + - 40 - - 59 + + 9 / 11 * + + 69 * 9 ) + + 44
----
78

query I rowsort
SELECT - 85 * - 44 - + 94
----
3646

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT COUNT( * ) * + 86 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5643
SELECT COUNT ( * ) * + 86 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT + ( MAX( ALL - - 17 ) ) + ( - 10 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT + ( MAX ( ALL - - 17 ) ) + ( - 10 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT - COUNT( * ) * + 50 + MIN( ALL 19 ) + - 38 + 3 * 35 * + 42 + - - COUNT( * ) * - 86 + 66
----
4321

skipif mysql # not compatible
query I rowsort label-5645
SELECT - COUNT ( * ) * + 50 + MIN ( ALL 19 ) + - 38 + 3 * 35 * + 42 + - - COUNT ( * ) * - 86 + 66
----
4321

onlyif mysql # DIV for integer division: 
query I rowsort label-5646
SELECT 12 * + 33 * - 0 DIV + 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5646
SELECT 12 * + 33 * - 0 / + 21 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5647
SELECT NULLIF ( + + 15, - 47 ) + AVG ( DISTINCT - - 1 ) + - CAST( NULL AS SIGNED ) * - 26 * 36 * + CAST( - + NULLIF ( - 11, - - SUM( ALL 60 ) * 2 + - + 82 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5647
SELECT NULLIF ( + + 15, - 47 ) + AVG ( DISTINCT - - 1 ) + - CAST ( NULL AS INTEGER ) * - 26 * 36 * + CAST ( - + NULLIF ( - 11, - - SUM ( ALL 60 ) * 2 + - + 82 ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT ALL 70 + - CASE COUNT( * ) WHEN - 81 * + 88 THEN 59 * + 90 - 31 * + 15 + 69 - + 73 * - 54 / + COUNT( * ) * + 15 * - 42 * - 66 + + - 68 + 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL 70 + - CASE COUNT ( * ) WHEN - 81 * + 88 THEN 59 * + 90 - 31 * + 15 + 69 - + 73 * - 54 / + COUNT ( * ) * + 15 * - 42 * - 66 + + - 68 + 36 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT COALESCE ( + COUNT( * ), - 15 * + - 60, - 7 + - 27 ) * - + 21 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5649
SELECT COALESCE ( + COUNT ( * ), - 15 * + - 60, - 7 + - 27 ) * - + 21 AS col0
----
-21

query II rowsort
SELECT ALL + ( 89 ) + - + 72 AS col1, 90
----
17
90

query I rowsort
SELECT DISTINCT 5 + ( - 81 )
----
-76

query II rowsort
SELECT 62 * ( + 93 ) AS col0, 14 * 87 AS col0
----
5766
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT - SUM( 45 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-5653
SELECT - SUM ( 45 ) AS col0
----
-45

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5655
SELECT - ( - 2 ) AS col1, - ( 0 ) + + ( + SUM( - 83 ) ) - - 67 * - - 83
----
2
5478

skipif mysql # not compatible
query II rowsort label-5655
SELECT - ( - 2 ) AS col1, - ( 0 ) + + ( + SUM ( - 83 ) ) - - 67 * - - 83
----
2
5478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5656
SELECT - 15 * MAX( + 6 ) DIV + 16 + 84 - - - COUNT( * ) * + - 64 * 57 AS col1
----
3727

skipif mysql # not compatible
query I rowsort label-5656
SELECT - 15 * MAX ( + 6 ) / + 16 + 84 - - - COUNT ( * ) * + - 64 * 57 AS col1
----
3727

query I rowsort
SELECT DISTINCT 55 * 35 AS col0
----
1925

query I rowsort
SELECT 82 - 20 + + + 56
----
118

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

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

query I rowsort
SELECT - 42 + - 61 * 55
----
-3397

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT + 51 * - + 93 + + COALESCE ( - ( - - 92 ), + + COUNT( * ) )
----
-4835

skipif mysql # not compatible
query I rowsort label-5661
SELECT + 51 * - + 93 + + COALESCE ( - ( - - 92 ), + + COUNT ( * ) )
----
-4835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5662
SELECT DISTINCT - 62 * COUNT( * ) * + - COUNT( * ) * - 74 * + + COALESCE ( - 36, + - COALESCE ( - 25, + + 11 + - - 34 ) + 54 + + CAST( NULL AS SIGNED ), + - 88 + - - 0 + + - 81 + + 60 ) * + - COUNT( * ) * COUNT( * ) AS col0
----
-165168

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT - 62 * COUNT ( * ) * + - COUNT ( * ) * - 74 * + + COALESCE ( - 36, + - COALESCE ( - 25, + + 11 + - - 34 ) + 54 + + CAST ( NULL AS INTEGER ), + - 88 + - - 0 + + - 81 + + 60 ) * + - COUNT ( * ) * COUNT ( * ) AS col0
----
-165168

query I rowsort
SELECT ALL 39 * + 53 + - ( + + 72 ) + 16 - + 0 * + 9 col0
----
2011

query II rowsort
SELECT + - 23 + - + 52, - 57 * - - 31 AS col1
----
-75
-1767

query I rowsort
SELECT + + 7 * 54
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT - COALESCE ( NULLIF ( + - 47, + COUNT( * ) * + - 58 * 4 + + 37 ), - 74 - - 40 + - 49, - + 17 + 99 + + - 23 * - - 96 * + 92 / + - 44 - + MAX( - + 38 ) ) * 71 * - CASE - 70 WHEN - 80 * - 40 * + 59 THEN + 86 * - 36 / - 69 * 45 * - 45 + - 65 WHEN + CASE - 92 WHEN + 38 - - + 13 * + 22 / - COUNT( DISTINCT - 69 ) + AVG ( DISTINCT - 73 ) THEN + 45 - + 51 WHEN + + AVG ( DISTINCT + 66 ) THEN + COUNT( * ) END THEN 58 + + 49 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5666
SELECT - COALESCE ( NULLIF ( + - 47, + COUNT ( * ) * + - 58 * 4 + + 37 ), - 74 - - 40 + - 49, - + 17 + 99 + + - 23 * - - 96 * + 92 / + - 44 - + MAX ( - + 38 ) ) * 71 * - CASE - 70 WHEN - 80 * - 40 * + 59 THEN + 86 * - 36 / - 69 * 45 * - 45 + - 65 WHEN + CASE - 92 WHEN + 38 - - + 13 * + 22 / - COUNT ( DISTINCT - 69 ) + AVG ( DISTINCT - 73 ) THEN + 45 - + 51 WHEN + + AVG ( DISTINCT + 66 ) THEN + COUNT ( * ) END THEN 58 + + 49 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5667
SELECT ALL + - 17 * + - COUNT( * ) + - CASE - 4 WHEN + CASE - 82 WHEN + ( - - COUNT( * ) ) * 84 + + + 86 + + + 91 * 6 * ( - + 71 ) THEN + - 92 WHEN COUNT( * ) * + 45 + + ( + 46 ) THEN + 67 ELSE - 32 END * - - 87 THEN + 82 ELSE 4 * COUNT( * ) * 99 END + - 20 AS col1, + 59 + 14 AS col2
----
-399
73

skipif mysql # not compatible
query II rowsort label-5667
SELECT ALL + - 17 * + - COUNT ( * ) + - CASE - 4 WHEN + CASE - 82 WHEN + ( - - COUNT ( * ) ) * 84 + + + 86 + + + 91 * 6 * ( - + 71 ) THEN + - 92 WHEN COUNT ( * ) * + 45 + + ( + 46 ) THEN + 67 ELSE - 32 END * - - 87 THEN + 82 ELSE 4 * COUNT ( * ) * 99 END + - 20 AS col1, + 59 + 14 AS col2
----
-399
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5668
SELECT ALL - + ( 52 ) * + - 85 + + 37 + + + COUNT( * ) + - - NULLIF ( - - SUM( 49 ), - COUNT( * ) ) * + + 5 - COALESCE ( + 83, - 89 DIV - 34, + 98 + 75 ) DIV - COUNT( * )
----
4786

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL - + ( 52 ) * + - 85 + + 37 + + + COUNT ( * ) + - - NULLIF ( - - SUM ( 49 ), - COUNT ( * ) ) * + + 5 - COALESCE ( + 83, - 89 / - 34, + 98 + 75 ) / - COUNT ( * )
----
4786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5669
SELECT - 58 + - 58 + + CAST( NULL AS SIGNED ) * + 1 * - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-5669
SELECT - 58 + - 58 + + CAST ( NULL AS INTEGER ) * + 1 * - + 39
----
NULL

query I rowsort
SELECT - 25 + - 47
----
-72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5672
SELECT ALL - COUNT( * ) * + ( 90 ) / - + 88 + + CAST( NULL AS SIGNED ) * - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL - COUNT ( * ) * + ( 90 ) / - + 88 + + CAST ( NULL AS INTEGER ) * - - 14 AS col0
----
NULL

query I rowsort
SELECT - 81 * + - 15 + 53 * + 84 * ( - - 85 ) AS col0
----
379635

query I rowsort
SELECT DISTINCT - 87 * + 37 + - 66 + + 89
----
-3196

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

skipif mysql # not compatible
query I rowsort label-5675
SELECT - 6 + 89 / ( COUNT ( ALL + 83 ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT - 12 / - CASE - 32 WHEN + COUNT( * ) THEN - + 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT - 12 / - CASE - 32 WHEN + COUNT ( * ) THEN - + 85 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT - CASE + AVG ( + 38 ) WHEN + 41 + + 39 + ( - - 96 ) + + 18 THEN - MAX( 76 ) + - + 23 - - + 62 * - - 17 * - ( ( 78 ) ) + - 65 END * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT - CASE + AVG ( + 38 ) WHEN + 41 + + 39 + ( - - 96 ) + + 18 THEN - MAX ( 76 ) + - + 23 - - + 62 * - - 17 * - ( ( 78 ) ) + - 65 END * + - COUNT ( * )
----
NULL

query I rowsort
SELECT - 0 + - - 47 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT - 59 * + - COALESCE ( - 35, - + 20 * - - COUNT( ALL + 57 ), 6 ) * + ( + ( + + 57 ) ) + - 79 AS col1
----
-117784

skipif mysql # not compatible
query I rowsort label-5679
SELECT - 59 * + - COALESCE ( - 35, - + 20 * - - COUNT ( ALL + 57 ), 6 ) * + ( + ( + + 57 ) ) + - 79 AS col1
----
-117784

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT MAX( DISTINCT + + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5680
SELECT MAX ( DISTINCT + + 68 ) AS col2
----
68

query I rowsort
SELECT ALL 68 * - 32 * + 91 + + - 86 AS col1
----
-198102

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT ALL + MAX( DISTINCT + - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL + MAX ( DISTINCT + - 96 )
----
-96

query I rowsort
SELECT 99 * - 0 + - 9 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5684
SELECT + 22 - 27 * + COUNT( * ), 61 + 78 AS col1
----
-5
139

skipif mysql # not compatible
query II rowsort label-5684
SELECT + 22 - 27 * + COUNT ( * ), 61 + 78 AS col1
----
-5
139

query I rowsort
SELECT ALL - 26 * + 60
----
-1560

onlyif mysql # aggregate syntax: 
query II rowsort label-5686
SELECT COUNT( * ) AS col1, 35 * - 19 + + + 8 - 74 * + 39
----
1
-3543

skipif mysql # not compatible
query II rowsort label-5686
SELECT COUNT ( * ) AS col1, 35 * - 19 + + + 8 - 74 * + 39
----
1
-3543

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

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

query I rowsort
SELECT ALL - 85 * 90 AS col2
----
-7650

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

query II rowsort
SELECT 74 * - + 3 + + - 6 col1, + 81
----
-228
81

query I rowsort
SELECT - 0 + + + 47 * + + 25
----
1175

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT + MIN( DISTINCT + ( + 23 ) ) * - 13 * + 40 * - 25 col1
----
299000

skipif mysql # not compatible
query I rowsort label-5692
SELECT + MIN ( DISTINCT + ( + 23 ) ) * - 13 * + 40 * - 25 col1
----
299000

query II rowsort
SELECT ALL - 7, - 93 AS col2
----
-7
-93

query I rowsort
SELECT + + 97 * - - 12 - + - 91
----
1255

query I rowsort
SELECT - COALESCE ( - 99, - 83, - 54 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5696
SELECT + + CASE + 48 WHEN - ( + - ( - 43 ) ) THEN - 32 * + - 58 WHEN 12 THEN + 51 - - CASE - 22 WHEN + - MIN( + 75 ) / + CAST( NULL AS SIGNED ) THEN NULL WHEN 31 THEN NULL WHEN 11 THEN 53 + + - 35 ELSE - 15 END ELSE NULL END * - - COUNT( * ) + 82 + 99 - - 68 * + - 22 + - COUNT( DISTINCT + - 53 ) * 95 - NULLIF ( + 88, 33 ) * - 23, + 75 * + 2 * 10 AS col0
----
NULL
1500

skipif mysql # not compatible
query II rowsort label-5696
SELECT + + CASE + 48 WHEN - ( + - ( - 43 ) ) THEN - 32 * + - 58 WHEN 12 THEN + 51 - - CASE - 22 WHEN + - MIN ( + 75 ) / + CAST ( NULL AS INTEGER ) THEN NULL WHEN 31 THEN NULL WHEN 11 THEN 53 + + - 35 ELSE - 15 END ELSE NULL END * - - COUNT ( * ) + 82 + 99 - - 68 * + - 22 + - COUNT ( DISTINCT + - 53 ) * 95 - NULLIF ( + 88, 33 ) * - 23, + 75 * + 2 * 10 AS col0
----
NULL
1500

query I rowsort
SELECT + + 47 + + - ( + 1 ) + 61
----
107

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5698
SELECT ALL 32 DIV NULLIF ( + + 6, + CAST( NULL AS SIGNED ) ) + + 85 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL 32 / NULLIF ( + + 6, + CAST ( NULL AS INTEGER ) ) + + 85 AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5699
SELECT - 2 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-5699
SELECT - 2 / - 85
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5701
SELECT + COUNT( * ) * + 90 DIV COUNT( * ) + - COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5701
SELECT + COUNT ( * ) * + 90 / COUNT ( * ) + - COUNT ( * ) AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5702
SELECT + CAST( + - 44 AS SIGNED ) * 35
----
-1540

skipif mysql # not compatible
query I rowsort label-5702
SELECT + CAST ( + - 44 AS INTEGER ) * 35
----
-1540

query II rowsort
SELECT + 14 AS col0, ( 35 ) AS col0
----
14
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT ALL 73 + COALESCE ( + 12, + 41, COUNT( * ) + - 98 + - 40 * + 50 * - + MIN( + 81 ) * + 43 ) + 43 col2
----
128

skipif mysql # not compatible
query I rowsort label-5704
SELECT ALL 73 + COALESCE ( + 12, + 41, COUNT ( * ) + - 98 + - 40 * + 50 * - + MIN ( + 81 ) * + 43 ) + 43 col2
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5705
SELECT DISTINCT 89 / - - 1 + + COUNT( * ) + CAST( NULL AS SIGNED ), - 96 * CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5705
SELECT DISTINCT 89 / - - 1 + + COUNT ( * ) + CAST ( NULL AS INTEGER ), - 96 * CAST ( NULL AS INTEGER )
----
NULL
NULL

query II rowsort
SELECT ALL + 78 AS col1, ( - + 7 ) AS col0
----
78
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5707
SELECT DISTINCT + 54 DIV - - 81 + - - ( CAST( - 11 AS SIGNED ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + 54 / - - 81 + - - ( CAST ( - 11 AS INTEGER ) ) AS col2
----
-11

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

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

query I rowsort
SELECT + 30 * 11 AS col2
----
330

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5710
SELECT - ( + 82 ) * - - 45 - + + 64 - - 13 DIV - ( + + 97 ) * + + COALESCE ( - 97, + - 54 ), COUNT( * ) AS col2
----
-3754
1

skipif mysql # not compatible
query II rowsort label-5710
SELECT - ( + 82 ) * - - 45 - + + 64 - - 13 / - ( + + 97 ) * + + COALESCE ( - 97, + - 54 ), COUNT ( * ) AS col2
----
-3754
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5711
SELECT CAST( - MAX( CASE + + CAST( + - 90 AS SIGNED ) WHEN 22 THEN NULL WHEN + 51 THEN - 93 ELSE - ( - ( 50 ) ) + 95 END ) AS SIGNED )
----
-145

skipif mysql # not compatible
query I rowsort label-5711
SELECT CAST ( - MAX ( CASE + + CAST ( + - 90 AS INTEGER ) WHEN 22 THEN NULL WHEN + 51 THEN - 93 ELSE - ( - ( 50 ) ) + 95 END ) AS INTEGER )
----
-145

query II rowsort
SELECT + ( - 58 ) col2, 67 + + 11 AS col1
----
-58
78

query I rowsort
SELECT - 71 * + 58
----
-4118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5714
SELECT CASE + 40 WHEN + 25 DIV + + NULLIF ( - 73, 69 ) + + 2 THEN + ( - ( 28 ) ) * + 37 * - + 59 * + COALESCE ( - ( - 25 ), - 31 - - SUM( ALL + - 75 ), + MIN( 92 ) DIV + 36 * + NULLIF ( - ( - 91 ), - ( COALESCE ( + ( 23 ), 77, + 53 ) ) ) ) + - COUNT( * ) ELSE - 59 * - 52 + + 53 * - 24 DIV 88 DIV + + 67 END * - COUNT( ALL - 58 ) + + + ( - 46 ) * CASE WHEN NOT NULL <> 37 THEN + 82 ELSE + 96 + - COALESCE ( CASE 42 WHEN - 29 THEN 61 ELSE MAX( 49 ) END, NULLIF ( COUNT( * ), + NULLIF ( ( + ( + CAST( NULL AS SIGNED ) ) ), + 90 ) ) ) END + 34 + - MAX( + 50 ) AS col0
----
-5246

skipif mysql # not compatible
query I rowsort label-5714
SELECT CASE + 40 WHEN + 25 / + + NULLIF ( - 73, 69 ) + + 2 THEN + ( - ( 28 ) ) * + 37 * - + 59 * + COALESCE ( - ( - 25 ), - 31 - - SUM ( ALL + - 75 ), + MIN ( 92 ) / + 36 * + NULLIF ( - ( - 91 ), - ( COALESCE ( + ( 23 ), 77, + 53 ) ) ) ) + - COUNT ( * ) ELSE - 59 * - 52 + + 53 * - 24 / 88 / + + 67 END * - COUNT ( ALL - 58 ) + + + ( - 46 ) * CASE WHEN NOT NULL <> 37 THEN + 82 ELSE + 96 + - COALESCE ( CASE 42 WHEN - 29 THEN 61 ELSE MAX ( 49 ) END, NULLIF ( COUNT ( * ), + NULLIF ( ( + ( + CAST ( NULL AS INTEGER ) ) ), + 90 ) ) ) END + 34 + - MAX ( + 50 ) AS col0
----
-5246

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

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

query I rowsort
SELECT 75 * - 70 - - - ( + 3 ) AS col0
----
-5253

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT ALL + 66 * + 20 - COUNT( ALL + 71 ) + - - ( 54 ) * + - 31 + - - 23
----
-332

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL + 66 * + 20 - COUNT ( ALL + 71 ) + - - ( 54 ) * + - 31 + - - 23
----
-332

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5719
SELECT - COUNT( * ) * + NULLIF ( CAST( - 21 AS SIGNED ), + 89 * 82 + - 57 ) AS col0, 24
----
21
24

skipif mysql # not compatible
query II rowsort label-5719
SELECT - COUNT ( * ) * + NULLIF ( CAST ( - 21 AS INTEGER ), + 89 * 82 + - 57 ) AS col0, 24
----
21
24

query II rowsort
SELECT 31 * NULLIF ( + - 41, 41 + - 88 ) + - 46 + 66 + 12 - 22 AS col0, + 11 AS col1
----
-1261
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT DISTINCT + 94 * COUNT( * ) * + + 6
----
564

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT + 94 * COUNT ( * ) * + + 6
----
564

query I rowsort
SELECT - 99 + + 76 col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5723
SELECT ALL SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col2, 80 AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-5723
SELECT ALL SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, 80 AS col1
----
NULL
80

query I rowsort
SELECT ALL NULLIF ( + 22, - + 33 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT DISTINCT + CASE + AVG ( + + 39 ) WHEN + ( + ( 47 ) ) - + - COUNT( * ) THEN + COUNT( * ) * + 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT + CASE + AVG ( + + 39 ) WHEN + ( + ( 47 ) ) - + - COUNT ( * ) THEN + COUNT ( * ) * + 98 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5726
SELECT CAST( - 38 AS SIGNED ), 19 DIV 35 * + + 24 AS col1
----
-38
0

skipif mysql # not compatible
query II rowsort label-5726
SELECT CAST ( - 38 AS INTEGER ), 19 / 35 * + + 24 AS col1
----
-38
0

query I rowsort
SELECT 45 + + 17 * - 49
----
-788

onlyif mysql # DIV for integer division: 
query II rowsort label-5728
SELECT 91 + - + 91, 9 DIV 66
----
0
0

skipif mysql # not compatible
query II rowsort label-5728
SELECT 91 + - + 91, 9 / 66
----
0
0

query I rowsort
SELECT + 69 * + 31 + - + 38 + - 49 * + 20 * + + 10 AS col0
----
-7699

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5730
SELECT ALL - COALESCE ( 11, - COALESCE ( COUNT( * ), + CAST( NULL AS SIGNED ) * - - NULLIF ( - + 2, + 73 * COUNT( * ) + + ( + 2 ) * - 15 * COUNT( * ) ), - 71 * + 4 + + 15 ) * + 12, - CASE + - COUNT( * ) WHEN COALESCE ( - 72, - CAST( NULL AS SIGNED ) + - COUNT( * ) + + - 19 ) THEN - - ( - CAST( NULL AS SIGNED ) ) ELSE 83 END - + COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL - COALESCE ( 11, - COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ) * - - NULLIF ( - + 2, + 73 * COUNT ( * ) + + ( + 2 ) * - 15 * COUNT ( * ) ), - 71 * + 4 + + 15 ) * + 12, - CASE + - COUNT ( * ) WHEN COALESCE ( - 72, - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + - 19 ) THEN - - ( - CAST ( NULL AS INTEGER ) ) ELSE 83 END - + COUNT ( * ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL - - NULLIF ( - 50, + COUNT( * ) ) + - 90 * - 61 + + 12 + 75 col2
----
5527

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL - - NULLIF ( - 50, + COUNT ( * ) ) + - 90 * - 61 + + 12 + 75 col2
----
5527

onlyif mysql # DIV for integer division: 
query II rowsort label-5732
SELECT + 36 DIV - 18 col0, - 81 * - 42
----
-2
3402

skipif mysql # not compatible
query II rowsort label-5732
SELECT + 36 / - 18 col0, - 81 * - 42
----
-2
3402

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

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT + + 49 + - 80 * - ( COUNT ( * ) ) AS col0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT ALL - - 87 + - + CASE CAST( - 63 AS SIGNED ) WHEN - 9 / + 94 THEN 82 * + + 14 * 64 END * 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL - - 87 + - + CASE CAST ( - 63 AS INTEGER ) WHEN - 9 / + 94 THEN 82 * + + 14 * 64 END * 22 AS col2
----
NULL

query I rowsort
SELECT + 54 + 35 AS col0
----
89

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

skipif mysql # not compatible
query I rowsort label-5736
SELECT 2 / COUNT ( * )
----
2

query I rowsort
SELECT 5 + + 34 * - - 20
----
685

query I rowsort
SELECT 41 - - 44 col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT DISTINCT CASE 25 WHEN - 58 THEN + + 66 / + + 81 * + 92 ELSE NULL END / - COUNT( * ) + + 77 + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT CASE 25 WHEN - 58 THEN + + 66 / + + 81 * + 92 ELSE NULL END / - COUNT ( * ) + + 77 + 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5740
SELECT - NULLIF ( + 47, COUNT( * ) * 33 * + + NULLIF ( + 24, - COUNT( * ) ) ) * - + 91 + COALESCE ( + 97, - COALESCE ( - 13, 49 + - + 45 * + 78, + COUNT( ALL - + ( 12 ) ) * + NULLIF ( + - 88, - CAST( + 71 AS DECIMAL ) ) * + - 35 DIV + 3 + 0 ) * - 90 + + - 98 )
----
4374

skipif mysql # not compatible
query I rowsort label-5740
SELECT - NULLIF ( + 47, COUNT ( * ) * 33 * + + NULLIF ( + 24, - COUNT ( * ) ) ) * - + 91 + COALESCE ( + 97, - COALESCE ( - 13, 49 + - + 45 * + 78, + COUNT ( ALL - + ( 12 ) ) * + NULLIF ( + - 88, - CAST ( + 71 AS REAL ) ) * + - 35 / + 3 + 0 ) * - 90 + + - 98 )
----
4374

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

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

query II rowsort
SELECT 82 col1, 52
----
82
52

query I rowsort
SELECT ALL ( - - 21 ) * - 12 * 85
----
-21420

query I rowsort
SELECT ALL 53 - - 65
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-5745
SELECT DISTINCT + 16 DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT + 16 / 44
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5746
SELECT NULLIF ( - 49, 91 ) + COUNT( * ) - + CASE + CAST( NULL AS SIGNED ) WHEN - 7 * COUNT( * ) * + + 82 THEN - - 99 + SUM( DISTINCT + + 62 ) WHEN + + 36 / - - ( COUNT( * ) ) THEN - COUNT( * ) * 54 END + + + 70 * - COUNT( * ) * ( + + COUNT( * ) ) - NULLIF ( 39, + 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT NULLIF ( - 49, 91 ) + COUNT ( * ) - + CASE + CAST ( NULL AS INTEGER ) WHEN - 7 * COUNT ( * ) * + + 82 THEN - - 99 + SUM ( DISTINCT + + 62 ) WHEN + + 36 / - - ( COUNT ( * ) ) THEN - COUNT ( * ) * 54 END + + + 70 * - COUNT ( * ) * ( + + COUNT ( * ) ) - NULLIF ( 39, + 51 )
----
NULL

query I rowsort
SELECT ALL ( 84 ) * - 43 * - - 66 AS col1
----
-238392

onlyif mysql # DIV for integer division: 
query I rowsort label-5748
SELECT - 34 * 94 DIV - 92 + - 62 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-5748
SELECT - 34 * 94 / - 92 + - 62 AS col2
----
-28

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5750
SELECT 62 + - 26 DIV - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5750
SELECT 62 + - 26 / - COUNT ( * ) AS col1
----
88

query I rowsort
SELECT + 90 * 27 + + 53
----
2483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5752
SELECT - ( 46 ) * - NULLIF ( 98, - - ( + 31 ) ) + ( 54 ) + 47 - NULLIF ( + - CASE - SUM( + CAST( NULL AS SIGNED ) ) WHEN - ( - COUNT( 52 ) ) * - 42 + - 13 THEN NULL WHEN - - 79 / - 52 THEN + - COUNT( * ) END, 24 + + 2 ) * + 72 - - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT - ( 46 ) * - NULLIF ( 98, - - ( + 31 ) ) + ( 54 ) + 47 - NULLIF ( + - CASE - SUM ( + CAST ( NULL AS INTEGER ) ) WHEN - ( - COUNT ( 52 ) ) * - 42 + - 13 THEN NULL WHEN - - 79 / - 52 THEN + - COUNT ( * ) END, 24 + + 2 ) * + 72 - - - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT DISTINCT + CASE + 16 WHEN + + SUM( - 97 ) * COUNT( * ) THEN + 19 END * 60 - - 57 * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT + CASE + 16 WHEN + + SUM ( - 97 ) * COUNT ( * ) THEN + 19 END * 60 - - 57 * - 2
----
NULL

query I rowsort
SELECT 57 + 10 AS col1
----
67

query I rowsort
SELECT 59 * - 17 * 8 AS col2
----
-8024

query III rowsort
SELECT + 45 + - NULLIF ( - + ( - 81 ), + 4 ), 13 col2, + 5 + + 48 AS col0
----
-36
13
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT COUNT( * ) * + + COALESCE ( + 39, + 7 ) * + + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-5757
SELECT COUNT ( * ) * + + COALESCE ( + 39, + 7 ) * + + COUNT ( * )
----
39

query I rowsort
SELECT 49 + + ( 32 )
----
81

query I rowsort
SELECT 36 + 64 * 41
----
2660

query II rowsort
SELECT DISTINCT 76 + - 62 + - 48 AS col0, - 28
----
-34
-28

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

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL + + COUNT ( * ) / + - 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT ALL - COALESCE ( - + 45, + 36 + + - COUNT( * ), 34 ) + + + 29 + - ( + ( - 6 ) ) + + + 48
----
128

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL - COALESCE ( - + 45, + 36 + + - COUNT ( * ), 34 ) + + + 29 + - ( + ( - 6 ) ) + + + 48
----
128

query I rowsort
SELECT 29 + + NULLIF ( - + 53, + 97 + - 15 ) AS col2
----
-24

query I rowsort
SELECT ALL - ( - 80 ) + + 43 * + NULLIF ( 49, + 25 ) + + 35 * + - 13 - + + 6 col1
----
1726

query I rowsort
SELECT DISTINCT - - COALESCE ( + 13, + 30 * - 53, - + NULLIF ( - 32, + - 77 * - ( - 30 ) ) ) + - 94 * + 91 + + + 18
----
-8523

onlyif mysql # aggregate syntax: 
query II rowsort label-5766
SELECT ALL - + 51 + + 54 * 27 + - + COALESCE ( - 61, + 8 * - 51 + + 73 - - 82 * + COUNT( * ) * + - COUNT( DISTINCT - 51 ) + + 8 ) AS col1, 3 * - 67
----
1468
-201

skipif mysql # not compatible
query II rowsort label-5766
SELECT ALL - + 51 + + 54 * 27 + - + COALESCE ( - 61, + 8 * - 51 + + 73 - - 82 * + COUNT ( * ) * + - COUNT ( DISTINCT - 51 ) + + 8 ) AS col1, 3 * - 67
----
1468
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5767
SELECT 8 * - - CASE WHEN NOT NULL IS NULL THEN + 54 ELSE + 45 + + - CAST( NULL AS SIGNED ) * 62 END * - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5767
SELECT 8 * - - CASE WHEN NOT NULL IS NULL THEN + 54 ELSE + 45 + + - CAST ( NULL AS INTEGER ) * 62 END * - 63 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5768
SELECT - MAX( DISTINCT + - 81 ) + SUM( CAST( + + 1 AS SIGNED ) )
----
82

skipif mysql # not compatible
query I rowsort label-5768
SELECT - MAX ( DISTINCT + - 81 ) + SUM ( CAST ( + + 1 AS INTEGER ) )
----
82

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5770
SELECT ALL + COALESCE ( + ( 25 ), + 36, 21 * COUNT( * ) DIV - 91 ) - - 48 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL + COALESCE ( + ( 25 ), + 36, 21 * COUNT ( * ) / - 91 ) - - 48 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT 31 * + + SUM( ALL - 71 )
----
-2201

skipif mysql # not compatible
query I rowsort label-5771
SELECT 31 * + + SUM ( ALL - 71 )
----
-2201

query I rowsort
SELECT DISTINCT + ( + 71 ) - - COALESCE ( 74, - 42 * - - 78 * + 67 + 33 ) AS col0
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5773
SELECT 3 * 23 * + 31 + - 62 + + - CAST( 47 AS SIGNED )
----
2030

skipif mysql # not compatible
query I rowsort label-5773
SELECT 3 * 23 * + 31 + - 62 + + - CAST ( 47 AS INTEGER )
----
2030

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5774
SELECT DISTINCT - 27, CAST( - - 34 AS SIGNED ) AS col0
----
-27
34

skipif mysql # not compatible
query II rowsort label-5774
SELECT DISTINCT - 27, CAST ( - - 34 AS INTEGER ) AS col0
----
-27
34

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

skipif mysql # not compatible
query I rowsort label-5775
SELECT COUNT ( * ) * - 9
----
-9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5777
SELECT ALL 5 DIV + - COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL 5 / + - COUNT ( * ) AS col1
----
-5

query II rowsort
SELECT + 44 col2, 44
----
44
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5779
SELECT ( + COALESCE ( - 58, + + 73 + - 58 + - - 44 + - 16 + - 77 + - CAST( - 82 AS SIGNED ) / - 38 + - - 70 / + 87 + + 34 * - + SUM( + 36 ) ) ) * - + COUNT( * ) + - + CASE - + NULLIF ( + 28, - 35 * - ( - 52 ) + - 38 * + COUNT( * ) ) WHEN - - ( - 36 ) THEN NULL WHEN SUM( DISTINCT - 58 ) - 51 THEN - CASE + 67 WHEN 64 THEN + - CAST( + 46 AS SIGNED ) ELSE + 11 END WHEN - COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5779
SELECT ( + COALESCE ( - 58, + + 73 + - 58 + - - 44 + - 16 + - 77 + - CAST ( - 82 AS INTEGER ) / - 38 + - - 70 / + 87 + + 34 * - + SUM ( + 36 ) ) ) * - + COUNT ( * ) + - + CASE - + NULLIF ( + 28, - 35 * - ( - 52 ) + - 38 * + COUNT ( * ) ) WHEN - - ( - 36 ) THEN NULL WHEN SUM ( DISTINCT - 58 ) - 51 THEN - CASE + 67 WHEN 64 THEN + - CAST ( + 46 AS INTEGER ) ELSE + 11 END WHEN - COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT ALL COUNT( * ) * - CASE + - 15 WHEN - COUNT( * ) THEN 85 * + - COUNT( + 68 ) END / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL COUNT ( * ) * - CASE + - 15 WHEN - COUNT ( * ) THEN 85 * + - COUNT ( + 68 ) END / COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 30, + 75 ) AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5782
SELECT ALL - 68 DIV + ( - 26 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL - 68 / + ( - 26 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT DISTINCT 80 * - SUM( + - 41 ) + - 2 * ( - + 18 )
----
3316

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT 80 * - SUM ( + - 41 ) + - 2 * ( - + 18 )
----
3316

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT + COALESCE ( + MAX( ALL - 22 ), 28 + + 43 )
----
-22

skipif mysql # not compatible
query I rowsort label-5784
SELECT + COALESCE ( + MAX ( ALL - 22 ), 28 + + 43 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5785
SELECT - - COUNT( * ) * - 86 + COUNT( * ) + 17 * ( - 9 ) * 44 AS col2, 13 + + MAX( DISTINCT - 22 ) * - 30 + + CAST( - 55 AS SIGNED )
----
-6817
618

skipif mysql # not compatible
query II rowsort label-5785
SELECT - - COUNT ( * ) * - 86 + COUNT ( * ) + 17 * ( - 9 ) * 44 AS col2, 13 + + MAX ( DISTINCT - 22 ) * - 30 + + CAST ( - 55 AS INTEGER )
----
-6817
618

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5787
SELECT ALL - 54 + - 41 DIV + 89 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL - 54 + - 41 / + 89 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-5788
SELECT + - SUM( ALL - 73 ) AS col2, + 8 * - 79
----
73
-632

skipif mysql # not compatible
query II rowsort label-5788
SELECT + - SUM ( ALL - 73 ) AS col2, + 8 * - 79
----
73
-632

query I rowsort
SELECT + + 85 * - 18
----
-1530

query II rowsort
SELECT 79 AS col0, + 18 AS col0
----
79
18

query I rowsort
SELECT ALL + + 24 * - + 25
----
-600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5792
SELECT + CAST( NULL AS SIGNED ) / 82 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5792
SELECT + CAST ( NULL AS INTEGER ) / 82 * 0
----
NULL

query II rowsort
SELECT DISTINCT + 56 AS col0, + 89 col1
----
56
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5794
SELECT DISTINCT - ( + 92 ) DIV + 91 col2
----
-1

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT - ( + 92 ) / + 91 col2
----
-1

query I rowsort
SELECT ALL - - 11 + 2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5796
SELECT ALL CASE - - 64 WHEN - 82 THEN NULL WHEN - + 79 THEN NULL ELSE - 94 + - NULLIF ( + 89, 39 ) DIV 69 END
----
-95

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL CASE - - 64 WHEN - 82 THEN NULL WHEN - + 79 THEN NULL ELSE - 94 + - NULLIF ( + 89, 39 ) / 69 END
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT ALL COUNT( * ) * - + 52 * + ( + 88 )
----
-4576

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL COUNT ( * ) * - + 52 * + ( + 88 )
----
-4576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5798
SELECT + - ( + 35 ) + + ( - + 96 ) DIV - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-5798
SELECT + - ( + 35 ) + + ( - + 96 ) / - COUNT ( * )
----
61

query I rowsort
SELECT - - 58 * - 85 AS col0
----
-4930

query I rowsort
SELECT + - 47 * - - NULLIF ( + - 24, + 51 ) * - 93 AS col2
----
-104904

onlyif mysql # aggregate syntax: 
query III rowsort label-5801
SELECT ALL + - 20 - ( + 87 ) + + 57 * - ( + 89 ) AS col0, ( - - 49 ) * + COUNT( * ), COUNT( * ) col0
----
-5180
49
1

skipif mysql # not compatible
query III rowsort label-5801
SELECT ALL + - 20 - ( + 87 ) + + 57 * - ( + 89 ) AS col0, ( - - 49 ) * + COUNT ( * ), COUNT ( * ) col0
----
-5180
49
1

query II rowsort
SELECT + 0 AS col0, - 66
----
0
-66

query I rowsort
SELECT + 60 - + 72 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT ALL COALESCE ( - ( - - 83 ), - 92 * + COUNT( * ) + - 48 - + + 31, + + 24 ) * + ( + + ( COUNT( * ) ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL COALESCE ( - ( - - 83 ), - 92 * + COUNT ( * ) + - 48 - + + 31, + + 24 ) * + ( + + ( COUNT ( * ) ) ) AS col0
----
-83

query I rowsort
SELECT - 36 + - - 68
----
32

query I rowsort
SELECT - 12 + 42 + + 84
----
114

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT - NULLIF ( COUNT( * ), + 42 ) * + 14 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-5808
SELECT - NULLIF ( COUNT ( * ), + 42 ) * + 14 AS col2
----
-14

query I rowsort
SELECT - ( - NULLIF ( 85, + 81 ) ) AS col2
----
85

query I rowsort
SELECT + 76 + + + COALESCE ( + - 2, + ( - 22 ) + - 27 )
----
74

query I rowsort
SELECT ALL + 81 * - 2
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5812
SELECT - CAST( - 51 AS SIGNED ) * - + 76 * 88
----
-341088

skipif mysql # not compatible
query I rowsort label-5812
SELECT - CAST ( - 51 AS INTEGER ) * - + 76 * 88
----
-341088

onlyif mysql # DIV for integer division: 
query I rowsort label-5813
SELECT ALL 32 DIV - 91 + + - 57
----
-57

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL 32 / - 91 + + - 57
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5814
SELECT - CAST( NULL AS SIGNED ) + - 13 + - 23, + 63 AS col1
----
NULL
63

skipif mysql # not compatible
query II rowsort label-5814
SELECT - CAST ( NULL AS INTEGER ) + - 13 + - 23, + 63 AS col1
----
NULL
63

query II rowsort
SELECT DISTINCT + 3 * - 89 * - - 3 + - + NULLIF ( - + 27, + 24 ) + + + 77 AS col0, 44 AS col0
----
-697
44

query I rowsort
SELECT ALL 69 * ( 73 ) + + 73 + + 71 + - 12 AS col1
----
5169

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5817
SELECT + 0 * - + CASE - ( - 16 ) WHEN MAX( 70 ) * - ( - 70 ) * + - CAST( NULL AS DECIMAL ) THEN + - 14 * + 98 - + - 89 END - + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT + 0 * - + CASE - ( - 16 ) WHEN MAX ( 70 ) * - ( - 70 ) * + - CAST ( NULL AS REAL ) THEN + - 14 * + 98 - + - 89 END - + 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT ALL + + 62 * + ( - COUNT( * ) ) * + 71 + 0 AS col2
----
-4402

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL + + 62 * + ( - COUNT ( * ) ) * + 71 + 0 AS col2
----
-4402

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5819
SELECT ALL - + 85 DIV + + COUNT( DISTINCT - 60 ) + - - 49
----
-36

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL - + 85 / + + COUNT ( DISTINCT - 60 ) + - - 49
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT - 66 + + - 33 + - COUNT( * ) AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-5820
SELECT - 66 + + - 33 + - COUNT ( * ) AS col1
----
-100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5821
SELECT DISTINCT + 92 * 4 * CASE 75 WHEN - MIN( + - NULLIF ( + 23, + CAST( - + NULLIF ( + 5, - - 39 ) AS DECIMAL ) ) ) THEN NULL ELSE - 25 END * - - 16 AS col2
----
-147200

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT + 92 * 4 * CASE 75 WHEN - MIN ( + - NULLIF ( + 23, + CAST ( - + NULLIF ( + 5, - - 39 ) AS REAL ) ) ) THEN NULL ELSE - 25 END * - - 16 AS col2
----
-147200

query I rowsort
SELECT ALL - 5 * ( + 54 ) + + - 31 * 22 + + ( + ( + 31 ) )
----
-921

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5823
SELECT ALL - 41 * + 44 * - 3 + 48 * + - CAST( NULL AS DECIMAL ) col0, + ( - 79 ) AS col1
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-5823
SELECT ALL - 41 * + 44 * - 3 + 48 * + - CAST ( NULL AS REAL ) col0, + ( - 79 ) AS col1
----
NULL
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT - - COALESCE ( + 71, MIN( 32 ) * - 3 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5824
SELECT - - COALESCE ( + 71, MIN ( 32 ) * - 3 ) AS col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5825
SELECT + + 87 + SUM( DISTINCT 97 ) + - 27 - - CAST( NULL AS SIGNED ) * - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5825
SELECT + + 87 + SUM ( DISTINCT 97 ) + - 27 - - CAST ( NULL AS INTEGER ) * - 9 AS col0
----
NULL

query I rowsort
SELECT + 88 * - 2 + - 33 AS col2
----
-209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5827
SELECT ALL + 5 * + CAST( + - 52 AS SIGNED ) - + 50 - - 30 + - + 59
----
-339

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL + 5 * + CAST ( + - 52 AS INTEGER ) - + 50 - - 30 + - + 59
----
-339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5828
SELECT + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) * + COUNT( * ) * - - ( + CASE - 73 WHEN - COUNT( * ) + + - 46 + - + 38 THEN NULL ELSE - - 51 * COUNT( * ) END ) + + COUNT( * ) + 78 col2
----
79

skipif mysql # not compatible
query I rowsort label-5828
SELECT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * - - ( + CASE - 73 WHEN - COUNT ( * ) + + - 46 + - + 38 THEN NULL ELSE - - 51 * COUNT ( * ) END ) + + COUNT ( * ) + 78 col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT + ( + 29 ) + + ( + COUNT( ALL + - 11 ) ) + - 35
----
-5

skipif mysql # not compatible
query I rowsort label-5829
SELECT + ( + 29 ) + + ( + COUNT ( ALL + - 11 ) ) + - 35
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT DISTINCT - + NULLIF ( + - MIN( 87 ), + 56 ) * - 40 AS col0
----
-3480

skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT - + NULLIF ( + - MIN ( 87 ), + 56 ) * - 40 AS col0
----
-3480

query I rowsort
SELECT ALL 42 - + - 60 + - 27
----
75

query II rowsort
SELECT DISTINCT 61 AS col0, + 88 AS col0
----
61
88

query II rowsort
SELECT 79 AS col2, 6 AS col0
----
79
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT ALL CASE + - 14 WHEN 25 + ( + 60 ) * + + ( - COUNT( + 27 ) ) + + - SUM( - 67 ) THEN - 12 WHEN - 68 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL CASE + - 14 WHEN 25 + ( + 60 ) * + + ( - COUNT ( + 27 ) ) + + - SUM ( - 67 ) THEN - 12 WHEN - 68 THEN NULL END
----
NULL

query I rowsort
SELECT + 89 * 8
----
712

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT - NULLIF ( + - 43, COUNT( * ) + 41 * - COALESCE ( + CASE + 79 WHEN + 92 THEN + 35 + - 34 WHEN + - 59 THEN NULL ELSE - 77 END, COUNT( * ) * ( + COUNT( * ) ) * - 79 / + 12 + - COALESCE ( + 91, + 96 ), + - 35 ) - + - 14 + - - COUNT( * ) + + 46 + + 2 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-5836
SELECT - NULLIF ( + - 43, COUNT ( * ) + 41 * - COALESCE ( + CASE + 79 WHEN + 92 THEN + 35 + - 34 WHEN + - 59 THEN NULL ELSE - 77 END, COUNT ( * ) * ( + COUNT ( * ) ) * - 79 / + 12 + - COALESCE ( + 91, + 96 ), + - 35 ) - + - 14 + - - COUNT ( * ) + + 46 + + 2 ) AS col2
----
43

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

skipif mysql # not compatible
query I rowsort label-5837
SELECT + 6 / + COUNT ( * ) AS col2
----
6

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

skipif mysql # not compatible
query I rowsort label-5838
SELECT - ( + SUM ( - 81 ) )
----
81

query I rowsort
SELECT - ( - + 44 ) + + 21
----
65

query I rowsort
SELECT - 59 + - - 12
----
-47

query I rowsort
SELECT ALL 65 * 67 AS col2
----
4355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5842
SELECT DISTINCT SUM( ALL - 72 ) * - - 4, + 45 + - + CASE + COUNT( * ) WHEN + 11 + 87 + - + CAST( NULL AS SIGNED ) * 26 + - 77 * - COUNT( * ) * + + CAST( NULL AS DECIMAL ) + - + 72 + + + 40 * + - 26 * + + 10 THEN + 45 WHEN + COUNT( * ) * + COUNT( * ) / - + CAST( - 81 AS SIGNED ) THEN NULL WHEN - ( 50 ) THEN NULL END AS col2
----
-288
NULL

skipif mysql # not compatible
query II rowsort label-5842
SELECT DISTINCT SUM ( ALL - 72 ) * - - 4, + 45 + - + CASE + COUNT ( * ) WHEN + 11 + 87 + - + CAST ( NULL AS INTEGER ) * 26 + - 77 * - COUNT ( * ) * + + CAST ( NULL AS REAL ) + - + 72 + + + 40 * + - 26 * + + 10 THEN + 45 WHEN + COUNT ( * ) * + COUNT ( * ) / - + CAST ( - 81 AS INTEGER ) THEN NULL WHEN - ( 50 ) THEN NULL END AS col2
----
-288
NULL

query I rowsort
SELECT DISTINCT 70 + - 95 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT DISTINCT 87 + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT 87 + COUNT ( * ) AS col2
----
88

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

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

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

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

query II rowsort
SELECT + 98 AS col2, + 65 AS col0
----
98
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5848
SELECT 62 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5848
SELECT 62 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 17 AS col1, + 73
----
17
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5850
SELECT DISTINCT - 59 + - ( + + 7 ) * + 70 + + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT - 59 + - ( + + 7 ) * + 70 + + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5851
SELECT - 98 + - 5 - + 71 + + COUNT( * ) + + ( + CASE 31 WHEN 7 + MAX( - 79 ) THEN NULL WHEN - 67 * - 65 THEN 67 + ( + AVG ( ALL 58 ) ) + 53 * - 14 WHEN - 70 THEN NULL ELSE NULL END ) AS col1, 60 AS col2
----
NULL
60

skipif mysql # not compatible
query II rowsort label-5851
SELECT - 98 + - 5 - + 71 + + COUNT ( * ) + + ( + CASE 31 WHEN 7 + MAX ( - 79 ) THEN NULL WHEN - 67 * - 65 THEN 67 + ( + AVG ( ALL 58 ) ) + 53 * - 14 WHEN - 70 THEN NULL ELSE NULL END ) AS col1, 60 AS col2
----
NULL
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL - - MIN( 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL - - MIN ( 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ALL - MAX( DISTINCT - + 17 ) * 4 * - MAX( 37 ) AS col1
----
-2516

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL - MAX ( DISTINCT - + 17 ) * 4 * - MAX ( 37 ) AS col1
----
-2516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5854
SELECT ALL - - 16 - 24 * + 65 + 62 DIV COUNT( * ) * + SUM( 95 )
----
4346

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL - - 16 - 24 * + 65 + 62 / COUNT ( * ) * + SUM ( 95 )
----
4346

query I rowsort
SELECT ALL + 71 - + 65 AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5856
SELECT + COALESCE ( - 70, - + NULLIF ( - CAST( + 42 AS SIGNED ), - + 41 ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5856
SELECT + COALESCE ( - 70, - + NULLIF ( - CAST ( + 42 AS INTEGER ), - + 41 ) ) AS col0
----
-70

query I rowsort
SELECT ALL - - 40 * - 2
----
-80

query I rowsort
SELECT 11 * 75 AS col2
----
825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5859
SELECT + + 60 AS col1, 94 * + CASE - 2 WHEN + 35 THEN CAST( - NULLIF ( + - 96, + + CASE 21 WHEN - + 2 THEN - ( - 46 ) - + - 6 WHEN - 25 THEN + 66 * - - CAST( + 68 AS SIGNED ) * + CAST( CASE - 35 WHEN + COUNT( * ) THEN 42 END AS SIGNED ) - 41 ELSE - 50 END + - 54 / - 86 * - 17 * + 8 * SUM( DISTINCT NULLIF ( - 94, - 25 - + - 18 ) ) - - + 21 ) AS SIGNED ) ELSE 80 END * 40 / + ( 43 ) + - COUNT( * ) + + CAST( NULL AS SIGNED ) + 62 + SUM( + 32 ) AS col1
----
60
NULL

skipif mysql # not compatible
query II rowsort label-5859
SELECT + + 60 AS col1, 94 * + CASE - 2 WHEN + 35 THEN CAST ( - NULLIF ( + - 96, + + CASE 21 WHEN - + 2 THEN - ( - 46 ) - + - 6 WHEN - 25 THEN + 66 * - - CAST ( + 68 AS INTEGER ) * + CAST ( CASE - 35 WHEN + COUNT ( * ) THEN 42 END AS INTEGER ) - 41 ELSE - 50 END + - 54 / - 86 * - 17 * + 8 * SUM ( DISTINCT NULLIF ( - 94, - 25 - + - 18 ) ) - - + 21 ) AS INTEGER ) ELSE 80 END * 40 / + ( 43 ) + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 62 + SUM ( + 32 ) AS col1
----
60
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT 91 DIV - - 8
----
11

skipif mysql # not compatible
query I rowsort label-5860
SELECT 91 / - - 8
----
11

query I rowsort
SELECT ALL + 86 * - 38 AS col2
----
-3268

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL 25 * - 83 * + - NULLIF ( + 34, - COUNT( * ) ) AS col2
----
70550

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL 25 * - 83 * + - NULLIF ( + 34, - COUNT ( * ) ) AS col2
----
70550

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT COUNT( DISTINCT - - 80 ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5864
SELECT COUNT ( DISTINCT - - 80 ) * - COUNT ( * )
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT 40 + MIN( DISTINCT - - 53 ) + + 78 + - 57 * 63 * + 7 + + - COUNT( * ) * + 5
----
-24971

skipif mysql # not compatible
query I rowsort label-5866
SELECT 40 + MIN ( DISTINCT - - 53 ) + + 78 + - 57 * 63 * + 7 + + - COUNT ( * ) * + 5
----
-24971

query I rowsort
SELECT ALL 89 * - - ( - 61 )
----
-5429

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT MIN( ALL 47 ) + - ( + 35 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-5868
SELECT MIN ( ALL 47 ) + - ( + 35 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5869
SELECT DISTINCT 82 + + + COUNT( * ) AS col2, + 14
----
83
14

skipif mysql # not compatible
query II rowsort label-5869
SELECT DISTINCT 82 + + + COUNT ( * ) AS col2, + 14
----
83
14

query I rowsort
SELECT ALL - 81 * - 33 * 25 * - ( 54 ) col2
----
-3608550

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT ALL COUNT( * ) + - - 41 * - 93
----
-3812

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL COUNT ( * ) + - - 41 * - 93
----
-3812

query I rowsort
SELECT DISTINCT 46 + 4 AS col0
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-5873
SELECT DISTINCT 40 DIV - 29 AS col2, + 19 AS col2
----
-1
19

skipif mysql # not compatible
query II rowsort label-5873
SELECT DISTINCT 40 / - 29 AS col2, + 19 AS col2
----
-1
19

query I rowsort
SELECT DISTINCT 60 * 61 AS col2
----
3660

onlyif mysql # aggregate syntax: 
query II rowsort label-5875
SELECT ALL - SUM( DISTINCT - 14 ) col0, COUNT( * ) AS col0
----
14
1

skipif mysql # not compatible
query II rowsort label-5875
SELECT ALL - SUM ( DISTINCT - 14 ) col0, COUNT ( * ) AS col0
----
14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT DISTINCT COUNT( * ) - + COUNT( * ) + - 42 * - + SUM( 75 ) AS col0
----
3150

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) + - 42 * - + SUM ( 75 ) AS col0
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT DISTINCT - 34 - - SUM( DISTINCT - 72 )
----
-106

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT - 34 - - SUM ( DISTINCT - 72 )
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT ALL - 23 * COUNT( * ) * + 43 / + CASE - COUNT( * ) WHEN - 71 THEN - - 78 WHEN + + 21 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - 23 * COUNT ( * ) * + 43 / + CASE - COUNT ( * ) WHEN - 71 THEN - - 78 WHEN + + 21 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5879
SELECT ALL + - 17 DIV - + COUNT( * ) + + ( + 73 ) + + - 54 - - 81 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL + - 17 / - + COUNT ( * ) + + ( + 73 ) + + - 54 - - 81 AS col1
----
117

query II rowsort
SELECT 49 * - 52 AS col2, - 90 * - COALESCE ( + 95, + 97 * 82 ) + - 48 AS col2
----
-2548
8502

onlyif mysql # aggregate syntax: 
query II rowsort label-5881
SELECT + 92 * 5 + + - 12 + - + 26, COUNT( * ) AS col1
----
422
1

skipif mysql # not compatible
query II rowsort label-5881
SELECT + 92 * 5 + + - 12 + - + 26, COUNT ( * ) AS col1
----
422
1

query I rowsort
SELECT 80 - + 78
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5883
SELECT DISTINCT - 15 DIV - - 29 + + + 55
----
55

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT - 15 / - - 29 + + + 55
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5884
SELECT + 5 DIV 12 + - ( 43 ) * - 18 + 58
----
832

skipif mysql # not compatible
query I rowsort label-5884
SELECT + 5 / 12 + - ( 43 ) * - 18 + 58
----
832

query I rowsort
SELECT ALL - + 88 - - 78 + - - 68
----
58

query I rowsort
SELECT 28 + 84
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT + NULLIF ( - + 34, COUNT( DISTINCT 35 ) / CASE + + 21 WHEN - 69 THEN NULL WHEN + 17 THEN + COUNT( 59 ) * + + 31 ELSE + MIN( 92 ) END ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5887
SELECT + NULLIF ( - + 34, COUNT ( DISTINCT 35 ) / CASE + + 21 WHEN - 69 THEN NULL WHEN + 17 THEN + COUNT ( 59 ) * + + 31 ELSE + MIN ( 92 ) END ) AS col0
----
-34

query I rowsort
SELECT - + 24 * + 2 + - - 88
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT 98 + - ( CASE - NULLIF ( - 38, - 83 / - 51 * 55 ) WHEN + COUNT( * ) THEN + - 47 * - 58 * 75 ELSE + 76 * - 68 * 98 END ) AS col1
----
506562

skipif mysql # not compatible
query I rowsort label-5889
SELECT 98 + - ( CASE - NULLIF ( - 38, - 83 / - 51 * 55 ) WHEN + COUNT ( * ) THEN + - 47 * - 58 * 75 ELSE + 76 * - 68 * 98 END ) AS col1
----
506562

query I rowsort
SELECT ALL + 30 * + 68 col1
----
2040

query I rowsort
SELECT - 5 + - 59 + + ( 41 )
----
-23

query II rowsort
SELECT + NULLIF ( 30, - 65 ), 59 AS col2
----
30
59

query I rowsort
SELECT 66 + ( 11 ) - 5 AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT 69 DIV + + 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-5894
SELECT 69 / + + 82 col2
----
0

query I rowsort
SELECT 40 * - - 91 * CASE 89 WHEN + 67 THEN NULL ELSE NULLIF ( 40, - - 63 ) - + 69 END AS col1
----
-105560

onlyif mysql # DIV for integer division: 
query II rowsort label-5896
SELECT 59 DIV - NULLIF ( + 48, 62 + + - 51 ) AS col0, + NULLIF ( + - 72, - - COALESCE ( - 72, 99 DIV + 90, + 73 * + + 2 * - - 30 * - 42 - - 53 + + 27 ) ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5896
SELECT 59 / - NULLIF ( + 48, 62 + + - 51 ) AS col0, + NULLIF ( + - 72, - - COALESCE ( - 72, 99 / + 90, + 73 * + + 2 * - - 30 * - 42 - - 53 + + 27 ) ) AS col1
----
-1
NULL

query I rowsort
SELECT 65 * - 2
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5898
SELECT DISTINCT + 31 DIV - 63 * COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT + 31 / - 63 * COUNT ( * ) col1
----
0

query I rowsort
SELECT DISTINCT 70 * 14 * + - CASE - 34 WHEN - 2 * 50 + - NULLIF ( - + 56, 30 ) + + - 96 THEN 35 ELSE + - 36 END
----
35280

onlyif mysql # aggregate syntax: 
query II rowsort label-5900
SELECT - 93 AS col1, - ( - 37 ) + COUNT( * )
----
-93
38

skipif mysql # not compatible
query II rowsort label-5900
SELECT - 93 AS col1, - ( - 37 ) + COUNT ( * )
----
-93
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5901
SELECT ALL CASE + ( 89 ) WHEN + ( - COUNT( * ) ) + 53 THEN NULL WHEN - 82 * 14 THEN NULL ELSE + - 17 DIV - 89 + COUNT( * ) END col2
----
1

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL CASE + ( 89 ) WHEN + ( - COUNT ( * ) ) + 53 THEN NULL WHEN - 82 * 14 THEN NULL ELSE + - 17 / - 89 + COUNT ( * ) END col2
----
1

query I rowsort
SELECT DISTINCT 34 * 97
----
3298

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT ALL 28 - - 92 * - ( 43 ) - - SUM( ALL + 41 )
----
-3887

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL 28 - - 92 * - ( 43 ) - - SUM ( ALL + 41 )
----
-3887

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT ALL NULLIF ( - 44, MAX( 95 ) ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL NULLIF ( - 44, MAX ( 95 ) ) AS col1
----
-44

query I rowsort
SELECT DISTINCT CASE + ( COALESCE ( + 67, + 72 * - 62 ) ) WHEN 55 THEN NULL ELSE 97 END AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT + 10 * + COUNT( * ) col1
----
10

skipif mysql # not compatible
query I rowsort label-5906
SELECT + 10 * + COUNT ( * ) col1
----
10

query I rowsort
SELECT ALL + 34 * 86 - + 61 AS col0
----
2863

query I rowsort
SELECT + NULLIF ( + ( 88 ), 68 )
----
88

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

query I rowsort
SELECT + 80 * 64 col2
----
5120

query I rowsort
SELECT ALL CASE 26 WHEN COALESCE ( - 27, 8 * 70 + 68, 15 ) * + NULLIF ( 10 * 45, + 8 + - 83 ) THEN + 9 * 11 + 95 END * 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5912
SELECT + AVG ( ALL - ( 51 ) ) + MAX( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT + AVG ( ALL - ( 51 ) ) + MAX ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5913
SELECT 61 * + 16 - - 78 DIV 96 AS col1
----
976

skipif mysql # not compatible
query I rowsort label-5913
SELECT 61 * + 16 - - 78 / 96 AS col1
----
976

query I rowsort
SELECT DISTINCT ( + 49 ) * - 41
----
-2009

onlyif mysql # DIV for integer division: 
query I rowsort label-5915
SELECT + 44 DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-5915
SELECT + 44 / 43
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT DISTINCT ( 20 ) * - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT ( 20 ) * - COUNT ( * )
----
-20

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

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

query I rowsort
SELECT ALL + NULLIF ( + 86, AVG ( ALL - 45 ) ) AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5919
SELECT + COALESCE ( + COUNT( ALL 73 ), - 33, - 79 * - 34 + CAST( NULL AS SIGNED ) * + 6 ) * ( + 89 * - ( 29 DIV 41 ) - - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-5919
SELECT + COALESCE ( + COUNT ( ALL 73 ), - 33, - 79 * - 34 + CAST ( NULL AS INTEGER ) * + 6 ) * ( + 89 * - ( 29 / 41 ) - - 27 )
----
27

query I rowsort
SELECT ALL - 75 * 81 + 58 AS col0
----
-6017

query I rowsort
SELECT + 1 - 79 AS col2
----
-78

query I rowsort
SELECT NULLIF ( - 48, + 63 * 40 + + 50 )
----
-48

query I rowsort
SELECT ALL 55 * - 6 + - 20 * - 28
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT + MAX( ALL - 42 ) * - 76 col0
----
3192

skipif mysql # not compatible
query I rowsort label-5924
SELECT + MAX ( ALL - 42 ) * - 76 col0
----
3192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5925
SELECT ALL MIN( DISTINCT - 37 ) * - CAST( - COUNT( * ) + NULLIF ( - 86, + 72 ) AS SIGNED ) + - COUNT( ALL 48 )
----
-3220

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL MIN ( DISTINCT - 37 ) * - CAST ( - COUNT ( * ) + NULLIF ( - 86, + 72 ) AS INTEGER ) + - COUNT ( ALL 48 )
----
-3220

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT ALL COUNT( * ) * 43 + 0
----
43

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL COUNT ( * ) * 43 + 0
----
43

query I rowsort
SELECT DISTINCT 66 * - 64 + + 91
----
-4133

query I rowsort
SELECT ALL + 18 * 31 AS col0
----
558

query I rowsort
SELECT DISTINCT 47 * 89 AS col0
----
4183

query I rowsort
SELECT ALL 6 + + 16 * + 37
----
598

query I rowsort
SELECT DISTINCT 64 * 20 AS col1
----
1280

query I rowsort
SELECT - 94 * + 28 AS col2
----
-2632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5933
SELECT ALL CASE - CAST( + 82 AS SIGNED ) WHEN 25 THEN - CAST( NULL AS SIGNED ) ELSE - 42 END AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL CASE - CAST ( + 82 AS INTEGER ) WHEN 25 THEN - CAST ( NULL AS INTEGER ) ELSE - 42 END AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT ALL NULLIF ( 61, COUNT( * ) * 58 + COUNT( * ) )
----
61

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL NULLIF ( 61, COUNT ( * ) * 58 + COUNT ( * ) )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5935
SELECT - 70 - 47 DIV - 81
----
-70

skipif mysql # not compatible
query I rowsort label-5935
SELECT - 70 - 47 / - 81
----
-70

query I rowsort
SELECT DISTINCT ( - 51 ) AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5937
SELECT - CAST( NULL AS SIGNED ) + 60 / + MIN( DISTINCT 56 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT - CAST ( NULL AS INTEGER ) + 60 / + MIN ( DISTINCT 56 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ALL + COUNT( + 16 ) - 55
----
-54

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL + COUNT ( + 16 ) - 55
----
-54

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

query I rowsort
SELECT - 34 + + 30
----
-4

query I rowsort
SELECT ALL NULLIF ( + 66, COALESCE ( + 64, + 75 * + 82, - 61 * + 61 ) ) AS col1
----
66

query I rowsort
SELECT - + 70 * 72
----
-5040

onlyif mysql # DIV for integer division: 
query I rowsort label-5943
SELECT ALL - + 9 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL - + 9 / - 74 AS col0
----
0

query I rowsort
SELECT DISTINCT - 48 * - 36 AS col1
----
1728

query I rowsort
SELECT DISTINCT + + 96 - 28 AS col1
----
68

query I rowsort
SELECT ALL - + 34 * - 79
----
2686

query I rowsort
SELECT - + 9 * 15
----
-135

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT + - COALESCE ( 35, + 56 + MAX( ALL + ( - 67 ) ) ) + COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-5949
SELECT + - COALESCE ( 35, + 56 + MAX ( ALL + ( - 67 ) ) ) + COUNT ( * ) AS col2
----
-34

query I rowsort
SELECT - 10 * 27
----
-270

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

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL + CAST ( + ( 17 ) AS INTEGER ) AS col1
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5952
SELECT 43 * 24 - ( - 75 + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5952
SELECT 43 * 24 - ( - 75 + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 79 * - 33
----
-2607

onlyif mysql # DIV for integer division: 
query I rowsort label-5954
SELECT DISTINCT + 95 DIV + 56 + + 85 * - 51
----
-4334

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT + 95 / + 56 + + 85 * - 51
----
-4334

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5955
SELECT DISTINCT MAX( + 79 ) DIV COUNT( * ) + + 34 * 50 AS col1
----
1779

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT MAX ( + 79 ) / COUNT ( * ) + + 34 * 50 AS col1
----
1779

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

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

query I rowsort
SELECT + 82 - 53
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5958
SELECT DISTINCT 52 DIV - COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT 52 / - COUNT ( * ) AS col1
----
-52

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

skipif mysql # not compatible
query I rowsort label-5959
SELECT + 50 * COUNT ( * ) - + 49 / 84
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5960
SELECT ALL 25 DIV + 51 + + 19
----
19

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL 25 / + 51 + + 19
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT ALL 12 * MIN( - 26 ) * 28 AS col0
----
-8736

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL 12 * MIN ( - 26 ) * 28 AS col0
----
-8736

onlyif mysql # DIV for integer division: 
query I rowsort label-5963
SELECT DISTINCT 71 + + 48 DIV 15
----
74

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT 71 + + 48 / 15
----
74

query I rowsort
SELECT ALL 30 + 85 AS col2
----
115

query I rowsort
SELECT ALL 6 + - - ( - 41 ) * ( - 82 + 9 ) AS col1
----
2999

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5968
SELECT ALL 0 DIV - - 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL 0 / - - 45 AS col2
----
0

query I rowsort
SELECT ALL 52 - - 69 AS col0
----
121

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

skipif mysql # not compatible
query I rowsort label-5970
SELECT CAST ( NULL AS INTEGER ) * 22 / 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ALL + SUM( ALL + - 85 ) * 64
----
-5440

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL + SUM ( ALL + - 85 ) * 64
----
-5440

query I rowsort
SELECT DISTINCT - ( - 2 ) * 42
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT 25 * + MAX( - 86 ) * 13
----
-27950

skipif mysql # not compatible
query I rowsort label-5974
SELECT 25 * + MAX ( - 86 ) * 13
----
-27950

query I rowsort
SELECT + 72 - 44 - - 79 * - 36
----
-2816

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT DISTINCT COALESCE ( MAX( 3 ), + 77 * + 90, NULLIF ( 30, - 1 ) + 43 * 3, - 75 )
----
3

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT COALESCE ( MAX ( 3 ), + 77 * + 90, NULLIF ( 30, - 1 ) + 43 * 3, - 75 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5977
SELECT 34 * + CAST( 97 AS SIGNED ) + + ( NULLIF ( + 83, - 83 + + 25 ) ) * 18 AS col0
----
4792

skipif mysql # not compatible
query I rowsort label-5977
SELECT 34 * + CAST ( 97 AS INTEGER ) + + ( NULLIF ( + 83, - 83 + + 25 ) ) * 18 AS col0
----
4792

query I rowsort
SELECT - 64 * + 78 + 92 * 79 AS col0
----
2276

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5979
SELECT DISTINCT - CASE 75 WHEN - 55 - - COUNT( * ) THEN NULL WHEN - CAST( NULL AS DECIMAL ) + 75 THEN NULL WHEN - 40 * COUNT( * ) THEN + 72 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT - CASE 75 WHEN - 55 - - COUNT ( * ) THEN NULL WHEN - CAST ( NULL AS REAL ) + 75 THEN NULL WHEN - 40 * COUNT ( * ) THEN + 72 END AS col0
----
NULL

query I rowsort
SELECT - 22 - - 59
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5981
SELECT ALL - 3 * CASE 75 WHEN - 6 * - ( 49 ) THEN NULL WHEN + 43 THEN NULL WHEN - 20 * + COALESCE ( CASE ( 46 ) WHEN 51 THEN + 14 + + 59 WHEN + COALESCE ( 59, - 16 * + 23, + CAST( + COUNT( * ) AS DECIMAL ) * NULLIF ( + 5, - 50 + 92 ) ) - COUNT( * ) * 54 THEN NULL END, - 33, CAST( NULL AS SIGNED ) * 4 ) THEN + 52 / NULLIF ( 46, 95 ) + 53 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL - 3 * CASE 75 WHEN - 6 * - ( 49 ) THEN NULL WHEN + 43 THEN NULL WHEN - 20 * + COALESCE ( CASE ( 46 ) WHEN 51 THEN + 14 + + 59 WHEN + COALESCE ( 59, - 16 * + 23, + CAST ( + COUNT ( * ) AS REAL ) * NULLIF ( + 5, - 50 + 92 ) ) - COUNT ( * ) * 54 THEN NULL END, - 33, CAST ( NULL AS INTEGER ) * 4 ) THEN + 52 / NULLIF ( 46, 95 ) + 53 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5982
SELECT + 31 + 18 + MIN( ALL 38 ) DIV - 38 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5982
SELECT + 31 + 18 + MIN ( ALL 38 ) / - 38 AS col1
----
48

query I rowsort
SELECT ALL - 92 + 99 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ( 96 ) * COUNT( ALL - 40 )
----
96

skipif mysql # not compatible
query I rowsort label-5984
SELECT ( 96 ) * COUNT ( ALL - 40 )
----
96

query I rowsort
SELECT ALL + + 93 + - CASE + 16 WHEN 75 * + 47 THEN NULL ELSE ( - 28 ) END * 90 AS col1
----
2613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5986
SELECT CAST( COUNT( ALL - CAST( - 56 AS DECIMAL ) ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5986
SELECT CAST ( COUNT ( ALL - CAST ( - 56 AS REAL ) ) AS INTEGER ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5987
SELECT + COALESCE ( + 38, - 31 + - CASE - CASE - 21 WHEN - ( 32 ) * - 86 + - NULLIF ( - 3 + - ( - 17 ), CAST( NULL AS SIGNED ) ) THEN 99 - - NULLIF ( 83, 98 ) END WHEN 63 THEN 71 ELSE NULL END * + ( 82 ), + CAST( ( 67 ) AS SIGNED ) DIV COALESCE ( - 85 * MAX( 53 ) + 40, COALESCE ( - 83, 64 * + 30, 43 ) ) )
----
38

skipif mysql # not compatible
query I rowsort label-5987
SELECT + COALESCE ( + 38, - 31 + - CASE - CASE - 21 WHEN - ( 32 ) * - 86 + - NULLIF ( - 3 + - ( - 17 ), CAST ( NULL AS INTEGER ) ) THEN 99 - - NULLIF ( 83, 98 ) END WHEN 63 THEN 71 ELSE NULL END * + ( 82 ), + CAST ( ( 67 ) AS INTEGER ) / COALESCE ( - 85 * MAX ( 53 ) + 40, COALESCE ( - 83, 64 * + 30, 43 ) ) )
----
38

query I rowsort
SELECT ALL - 42 + NULLIF ( 94, - 42 * + 37 ) - 37 AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT - 97 DIV 55 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5989
SELECT - 97 / 55 AS col0
----
-1

query I rowsort
SELECT 83 * + 15 AS col1
----
1245

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5991
SELECT + CAST( NULL AS DECIMAL ) * - 37 + 45 * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5991
SELECT + CAST ( NULL AS REAL ) * - 37 + 45 * + 52
----
NULL

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

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

query I rowsort
SELECT ALL - 7 * + 8 + 87
----
31

query I rowsort
SELECT DISTINCT + 49 + 9
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5995
SELECT DISTINCT - 36 AS col1, COUNT( * )
----
-36
1

skipif mysql # not compatible
query II rowsort label-5995
SELECT DISTINCT - 36 AS col1, COUNT ( * )
----
-36
1

query II rowsort
SELECT ALL - 40, 44 * - 90 AS col0
----
-40
-3960

query II rowsort
SELECT 42 AS col0, - 68 AS col0
----
42
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5998
SELECT ALL + 90 - + ( - + COUNT( * ) ) DIV 66
----
90

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL + 90 - + ( - + COUNT ( * ) ) / 66
----
90

query I rowsort
SELECT ALL 12 - + - 98 AS col2
----
110

query I rowsort
SELECT 91 * - 40 AS col1
----
-3640

onlyif mysql # aggregate syntax: 
query II rowsort label-6001
SELECT 58 col0, + COUNT( * ) + 24 AS col2
----
58
25

skipif mysql # not compatible
query II rowsort label-6001
SELECT 58 col0, + COUNT ( * ) + 24 AS col2
----
58
25

query I rowsort
SELECT 65 - 9 AS col1
----
56

query I rowsort
SELECT 4 * - + 78
----
-312

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

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL 59 / + COUNT ( * )
----
59

query II rowsort
SELECT + 24 AS col0, ( - 98 ) + + 41
----
24
-57

query I rowsort
SELECT ALL 76 - + 46 * 12
----
-476

query I rowsort
SELECT 81 * + - 15 AS col2
----
-1215

query I rowsort
SELECT 94 * + 31 * ( - 42 )
----
-122388

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT ALL - 0 * - MAX( ALL - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL - 0 * - MAX ( ALL - 57 )
----
0

query I rowsort
SELECT 0 - + 22
----
-22

query I rowsort
SELECT DISTINCT - 82 * + 23 * + 4 AS col1
----
-7544

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6013
SELECT COUNT( * ) DIV 23 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6013
SELECT COUNT ( * ) / 23 AS col0
----
0

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

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

query I rowsort
SELECT 99 + 18 + + 29 * + 98
----
2959

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT 35 - - ( + 86 ) + + 72 * + MAX( - 52 + 72 * - ( - 97 ) ) col0
----
499225

skipif mysql # not compatible
query I rowsort label-6016
SELECT 35 - - ( + 86 ) + + 72 * + MAX ( - 52 + 72 * - ( - 97 ) ) col0
----
499225

query I rowsort
SELECT - 39 - - 76 + + 96 AS col0
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6018
SELECT ALL 9 DIV + COUNT( * ) + + 14 DIV COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL 9 / + COUNT ( * ) + + 14 / COUNT ( * )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6019
SELECT + 79 DIV + - 56 - COUNT( * ) * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6019
SELECT + 79 / + - 56 - COUNT ( * ) * - COUNT ( * ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-6020
SELECT + MIN ( 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT DISTINCT - + COUNT( * ) + - 9 + - 50 + 48 * - 91
----
-4428

skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT - + COUNT ( * ) + - 9 + - 50 + 48 * - 91
----
-4428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6022
SELECT CAST( NULL AS SIGNED ) + + + 22 / + CAST( - 50 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT CAST ( NULL AS INTEGER ) + + + 22 / + CAST ( - 50 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6023
SELECT ALL - CAST( + 34 AS SIGNED ) + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL - CAST ( + 34 AS INTEGER ) + + COUNT ( * )
----
-33

query II rowsort
SELECT DISTINCT - 0 AS col2, + 53
----
0
53

query I rowsort
SELECT DISTINCT - + 54 + 60 AS col1
----
6

query I rowsort
SELECT DISTINCT + 30 * 72 * - - 91 AS col1
----
196560

query I rowsort
SELECT 21 * - - 56
----
1176

query II rowsort
SELECT - + 64 AS col2, - 47 * - 22 * 0
----
-64
0

query I rowsort
SELECT DISTINCT 30 + + - 25 + - 42 + - 31 AS col2
----
-68

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

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

query I rowsort
SELECT + + 42 * 76 AS col1
----
3192

onlyif mysql # DIV for integer division: 
query I rowsort label-6032
SELECT ALL - - 87 DIV 42
----
2

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL - - 87 / 42
----
2

query I rowsort
SELECT + 78 * + - ( NULLIF ( - 51, 63 ) ) + 8
----
3986

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6034
SELECT 50 DIV + MIN( ALL + 30 ) + COUNT( * ) + - 43 DIV + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-6034
SELECT 50 / + MIN ( ALL + 30 ) + COUNT ( * ) + - 43 / + COUNT ( * )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6035
SELECT ALL - COUNT( * ) * - - COALESCE ( - + 20, SUM( ALL + COALESCE ( CAST( NULL AS SIGNED ), ( + ( - 3 ) ) + + 88 * 33 ) ) * + 79 ) + ( 32 ) - + 69 DIV - COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL - COUNT ( * ) * - - COALESCE ( - + 20, SUM ( ALL + COALESCE ( CAST ( NULL AS INTEGER ), ( + ( - 3 ) ) + + 88 * 33 ) ) * + 79 ) + ( 32 ) - + 69 / - COUNT ( * )
----
121

query I rowsort
SELECT DISTINCT 30 * - + ( - + 27 ) * + 62 - 8
----
50212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6037
SELECT + 36 * + 35 * 63 * - SUM( 62 ) * + 27 + + COUNT( * ) DIV 89
----
-132882120

skipif mysql # not compatible
query I rowsort label-6037
SELECT + 36 * + 35 * 63 * - SUM ( 62 ) * + 27 + + COUNT ( * ) / 89
----
-132882120

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ( + - 71 ) * - COALESCE ( MIN( DISTINCT 63 ), - 74 ) + 28 * - 75 + ( + 71 + + 0 )
----
2444

skipif mysql # not compatible
query I rowsort label-6038
SELECT ( + - 71 ) * - COALESCE ( MIN ( DISTINCT 63 ), - 74 ) + 28 * - 75 + ( + 71 + + 0 )
----
2444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT 59 * + + ( + ( + - 39 ) ) / 42 - CAST( NULL AS SIGNED ) * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT 59 * + + ( + ( + - 39 ) ) / 42 - CAST ( NULL AS INTEGER ) * 91
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6040
SELECT - 47 + - + NULLIF ( - 9, + 21 - + COALESCE ( 17 + - MAX( ALL + 40 + + 6 ), - CAST( NULL AS SIGNED ) + + COUNT( * ) ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-6040
SELECT - 47 + - + NULLIF ( - 9, + 21 - + COALESCE ( 17 + - MAX ( ALL + 40 + + 6 ), - CAST ( NULL AS INTEGER ) + + COUNT ( * ) ) ) AS col1
----
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT ALL + NULLIF ( 72, + + MAX( + - 62 ) ) col2
----
72

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL + NULLIF ( 72, + + MAX ( + - 62 ) ) col2
----
72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT DISTINCT + MAX( DISTINCT - ( + 63 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-6044
SELECT DISTINCT + MAX ( DISTINCT - ( + 63 ) )
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-6045
SELECT + 63 * 49, 10 * + - COUNT( * ) AS col0
----
3087
-10

skipif mysql # not compatible
query II rowsort label-6045
SELECT + 63 * 49, 10 * + - COUNT ( * ) AS col0
----
3087
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6046
SELECT DISTINCT + CAST( + - 10 AS SIGNED ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT + CAST ( + - 10 AS INTEGER ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT - 92 * - CASE - + 71 WHEN - 59 * 48 THEN + COUNT( * ) ELSE + 39 END AS col1
----
3588

skipif mysql # not compatible
query I rowsort label-6047
SELECT - 92 * - CASE - + 71 WHEN - 59 * 48 THEN + COUNT ( * ) ELSE + 39 END AS col1
----
3588

query I rowsort
SELECT DISTINCT NULLIF ( + + 6, ( + 65 ) * + 92 + 81 ) * 97 AS col0
----
582

query I rowsort
SELECT - - ( + - ( 9 ) ) * 90
----
-810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6050
SELECT + MIN( - CAST( NULL AS SIGNED ) ) + - CASE + 98 WHEN - 29 * - CAST( NULL AS SIGNED ) + - 89 THEN + 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) + - CASE + 98 WHEN - 29 * - CAST ( NULL AS INTEGER ) + - 89 THEN + 7 ELSE NULL END
----
NULL

query I rowsort
SELECT + 4 * + + 9 * + - 63 * 20 AS col2
----
-45360

query I rowsort
SELECT ALL + + ( - + 9 ) + + - 54
----
-63

query I rowsort
SELECT DISTINCT - + 85 * 1 * + - 42 AS col1
----
3570

query I rowsort
SELECT ALL + + ( - 58 ) + - - 99 * 23 * 94
----
213980

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6056
SELECT + COALESCE ( - - CAST( NULL AS SIGNED ), + - COUNT( * ) DIV + 61 DIV 7 + 63 * 4, 74 * - ( 45 DIV COUNT( * ) ) ) AS col0
----
252

skipif mysql # not compatible
query I rowsort label-6056
SELECT + COALESCE ( - - CAST ( NULL AS INTEGER ), + - COUNT ( * ) / + 61 / 7 + 63 * 4, 74 * - ( 45 / COUNT ( * ) ) ) AS col0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT + + 31 * - 93 + - COUNT( * ) * 6
----
-2889

skipif mysql # not compatible
query I rowsort label-6057
SELECT + + 31 * - 93 + - COUNT ( * ) * 6
----
-2889

query I rowsort
SELECT - + CASE + 40 WHEN - 57 + + - 66 THEN 27 * 99 + + 79 WHEN + 52 * 65 THEN NULL WHEN + 68 - 0 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT + + 40 + CASE + COUNT( * ) WHEN - - 70 THEN 29 END - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6059
SELECT + + 40 + CASE + COUNT ( * ) WHEN - - 70 THEN 29 END - - 68
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6060
SELECT ALL + - CASE - + 66 WHEN + 84 * + NULLIF ( + 14, - 15 ) + 81 * AVG ( ALL + 5 + 67 * CAST( NULL AS SIGNED ) ) THEN COUNT( * ) - + COUNT( * ) END - - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL + - CASE - + 66 WHEN + 84 * + NULLIF ( + 14, - 15 ) + 81 * AVG ( ALL + 5 + 67 * CAST ( NULL AS INTEGER ) ) THEN COUNT ( * ) - + COUNT ( * ) END - - 29
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6061
SELECT + 15 + - COUNT( * ) col1, - 44 AS col2
----
14
-44

skipif mysql # not compatible
query II rowsort label-6061
SELECT + 15 + - COUNT ( * ) col1, - 44 AS col2
----
14
-44

query I rowsort
SELECT + 33 - + + 32
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL 83 * COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL 83 * COUNT ( * ) AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6064
SELECT CAST( + AVG ( ALL - 70 ) AS SIGNED ) col2, 92 + + + 41 + CAST( NULL AS SIGNED )
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-6064
SELECT CAST ( + AVG ( ALL - 70 ) AS INTEGER ) col2, 92 + + + 41 + CAST ( NULL AS INTEGER )
----
-70
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6065
SELECT - 71 + - - 46 * - 60 * - SUM( - 14 ) + + CAST( COUNT( * ) AS SIGNED )
----
-38710

skipif mysql # not compatible
query I rowsort label-6065
SELECT - 71 + - - 46 * - 60 * - SUM ( - 14 ) + + CAST ( COUNT ( * ) AS INTEGER )
----
-38710

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT - 94 * COALESCE ( + - COUNT( ALL - 54 ), 90 * - 35 ) * - 29 + + 92 * + 17 AS col0
----
-1162

skipif mysql # not compatible
query I rowsort label-6066
SELECT - 94 * COALESCE ( + - COUNT ( ALL - 54 ), 90 * - 35 ) * - 29 + + 92 * + 17 AS col0
----
-1162

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6069
SELECT - 11 * + CAST( 25 AS SIGNED ) * + 66
----
-18150

skipif mysql # not compatible
query I rowsort label-6069
SELECT - 11 * + CAST ( 25 AS INTEGER ) * + 66
----
-18150

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT ALL + 28 * + COUNT( * ) * + 56
----
1568

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL + 28 * + COUNT ( * ) * + 56
----
1568

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

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT COUNT ( * ) / + + 8 AS col0
----
0

query II rowsort
SELECT ALL + 14 * - - 50 + + - 39, - 74 AS col1
----
661
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6073
SELECT - 64 / - + COALESCE ( 70, - 31, - COUNT( * ) * - CAST( + ( 64 ) - 22 AS SIGNED ) ) * - CASE - 94 WHEN + 97 / COUNT( * ) THEN - 35 + + 74 * - 7 WHEN ( COALESCE ( + 8, 33 ) ) + - 23 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT - 64 / - + COALESCE ( 70, - 31, - COUNT ( * ) * - CAST ( + ( 64 ) - 22 AS INTEGER ) ) * - CASE - 94 WHEN + 97 / COUNT ( * ) THEN - 35 + + 74 * - 7 WHEN ( COALESCE ( + 8, 33 ) ) + - 23 THEN NULL END
----
NULL

query I rowsort
SELECT + 75 + + - 52
----
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT 38 * - + 42 + COUNT( * ) AS col0
----
-1595

skipif mysql # not compatible
query I rowsort label-6076
SELECT 38 * - + 42 + COUNT ( * ) AS col0
----
-1595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6077
SELECT DISTINCT + ( + NULLIF ( + COUNT( * ), + - COALESCE ( - SUM( 67 ), - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + + 12 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT + ( + NULLIF ( + COUNT ( * ), + - COALESCE ( - SUM ( 67 ), - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + + 12 ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6078
SELECT - NULLIF ( + 81, + + COALESCE ( - 99, + + COUNT( * ) + - 42, - 95, + ( 40 ) ) ) DIV 53
----
-1

skipif mysql # not compatible
query I rowsort label-6078
SELECT - NULLIF ( + 81, + + COALESCE ( - 99, + + COUNT ( * ) + - 42, - 95, + ( 40 ) ) ) / 53
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT DISTINCT + NULLIF ( SUM( DISTINCT + + 6 ), COALESCE ( + - 83, + ( NULLIF ( - 52, 99 * - 92 + 24 ) ), 98 * 53 ) ) * COUNT( * ) + ( 61 )
----
67

skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT + NULLIF ( SUM ( DISTINCT + + 6 ), COALESCE ( + - 83, + ( NULLIF ( - 52, 99 * - 92 + 24 ) ), 98 * 53 ) ) * COUNT ( * ) + ( 61 )
----
67

query I rowsort
SELECT ALL - 29 * + 59 * - 54 + - 32 - + 46 * 39
----
90568

query I rowsort
SELECT - 74 - - - 37
----
-111

query I rowsort
SELECT ALL + + CASE - 91 WHEN + + 7 * - + 96 THEN + + 16 ELSE + 84 END * - 19
----
-1596

query I rowsort
SELECT - 88 - - 47
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6084
SELECT DISTINCT CAST( - - ( - 63 ) AS SIGNED ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT CAST ( - - ( - 63 ) AS INTEGER ) col2
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6085
SELECT - + 41 + ( + 79 ) - - + 78 DIV 2
----
77

skipif mysql # not compatible
query I rowsort label-6085
SELECT - + 41 + ( + 79 ) - - + 78 / 2
----
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT 60 * 67 - NULLIF ( + 58, + MAX( 77 ) + 6 * 44 ) - + 5 * - 12 AS col0
----
4022

skipif mysql # not compatible
query I rowsort label-6087
SELECT 60 * 67 - NULLIF ( + 58, + MAX ( 77 ) + 6 * 44 ) - + 5 * - 12 AS col0
----
4022

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT ALL + COALESCE ( + 9, + - COUNT( * ) * 31 * + 26 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL + COALESCE ( + 9, + - COUNT ( * ) * 31 * + 26 ) AS col2
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-6089
SELECT 4 col1, 1 DIV + 60
----
4
0

skipif mysql # not compatible
query II rowsort label-6089
SELECT 4 col1, 1 / + 60
----
4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT - + 91 + + ( 15 ) + - - COUNT( * ) + - - 37 - COUNT( * ) * 61 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6090
SELECT - + 91 + + ( 15 ) + - - COUNT ( * ) + - - 37 - COUNT ( * ) * 61 AS col2
----
-99

query I rowsort
SELECT ALL + 80 * - 57
----
-4560

query I rowsort
SELECT - 77 * - - 65 * 51 + - 84 AS col1
----
-255339

query II rowsort
SELECT + 28 AS col0, 38 * - 19 * - + 12 AS col1
----
28
8664

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT DISTINCT + 64 * - + SUM( + 4 )
----
-256

skipif mysql # not compatible
query I rowsort label-6094
SELECT DISTINCT + 64 * - + SUM ( + 4 )
----
-256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6095
SELECT DISTINCT + - MAX( CAST( NULL AS SIGNED ) ) - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT + - MAX ( CAST ( NULL AS INTEGER ) ) - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 90
----
NULL

query I rowsort
SELECT ALL 34 * 3 * - + 71 + - 8
----
-7250

query I rowsort
SELECT 27 + - 47 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6098
SELECT DISTINCT - 86 AS col1, - 42 * + 60 + - COALESCE ( + COALESCE ( + 4, - COUNT( * ), 26 ), + 8 )
----
-86
-2524

skipif mysql # not compatible
query II rowsort label-6098
SELECT DISTINCT - 86 AS col1, - 42 * + 60 + - COALESCE ( + COALESCE ( + 4, - COUNT ( * ), 26 ), + 8 )
----
-86
-2524

query I rowsort
SELECT - NULLIF ( - 93, AVG ( 84 ) )
----
93

query I rowsort
SELECT + 66 + + ( 25 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6101
SELECT MIN( ALL CAST( - 3 AS SIGNED ) ) * - - 97
----
-291

skipif mysql # not compatible
query I rowsort label-6101
SELECT MIN ( ALL CAST ( - 3 AS INTEGER ) ) * - - 97
----
-291

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

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

query I rowsort
SELECT 75 + + 39 * + + 87 * 11 * 88 AS col0
----
3284499

query I rowsort
SELECT 13 + + 57 col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6105
SELECT ALL 36 DIV COALESCE ( + + 48, + - ( + MIN( - 16 ) ), + ( - 11 ) * + MAX( DISTINCT ( 81 ) + - 25 ), - COUNT( * ) + + 20 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL 36 / COALESCE ( + + 48, + - ( + MIN ( - 16 ) ), + ( - 11 ) * + MAX ( DISTINCT ( 81 ) + - 25 ), - COUNT ( * ) + + 20 ) AS col0
----
0

query I rowsort
SELECT 20 * 20 * 79 AS col1
----
31600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6107
SELECT ALL 53 DIV - 87 AS col2, 19 * - 6 - - COUNT( * ) AS col2
----
0
-113

skipif mysql # not compatible
query II rowsort label-6107
SELECT ALL 53 / - 87 AS col2, 19 * - 6 - - COUNT ( * ) AS col2
----
0
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6108
SELECT DISTINCT - 59 DIV - + 81 AS col0, + 27 + - CASE WHEN NULL NOT BETWEEN 11 AND NULL THEN + 66 ELSE + COUNT( * ) END col1
----
0
26

skipif mysql # not compatible
query II rowsort label-6108
SELECT DISTINCT - 59 / - + 81 AS col0, + 27 + - CASE WHEN NULL NOT BETWEEN 11 AND NULL THEN + 66 ELSE + COUNT ( * ) END col1
----
0
26

query I rowsort
SELECT DISTINCT COALESCE ( 15, + 77 ) * 70 * 64 + 60 * + COALESCE ( NULLIF ( 38, + 97 ), + 74 * - 12, 78 * + 89 )
----
69480

query I rowsort
SELECT ALL ( + 58 ) * - 21 AS col0
----
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL SUM( DISTINCT - + 64 ) + + - 35
----
-99

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL SUM ( DISTINCT - + 64 ) + + - 35
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6112
SELECT + 84, - COUNT( * ) - - 87 col1
----
84
86

skipif mysql # not compatible
query II rowsort label-6112
SELECT + 84, - COUNT ( * ) - - 87 col1
----
84
86

query I rowsort
SELECT ALL ( - - 27 ) * 90 * + + 68 AS col2
----
165240

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT - COUNT( * ) * - + 51 + + 10 + - 52 * 76 col2
----
-3891

skipif mysql # not compatible
query I rowsort label-6114
SELECT - COUNT ( * ) * - + 51 + + 10 + - 52 * 76 col2
----
-3891

query II rowsort
SELECT ALL - 83, 87 * - 75 AS col0
----
-83
-6525

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT ALL COUNT( * ) + - - SUM( ALL + 64 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL COUNT ( * ) + - - SUM ( ALL + 64 ) AS col0
----
65

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

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

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

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

query I rowsort
SELECT - 51 * 55 + 32
----
-2773

onlyif mysql # DIV for integer division: 
query I rowsort label-6120
SELECT ALL - 97 DIV - 15 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL - 97 / - 15 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT DISTINCT NULLIF ( + + MAX( ALL ( + 46 ) ), - - 43 / - ( 23 ) ) + - COUNT( * ) * 93
----
-47

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT NULLIF ( + + MAX ( ALL ( + 46 ) ), - - 43 / - ( 23 ) ) + - COUNT ( * ) * 93
----
-47

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

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

query I rowsort
SELECT ALL - 75 + + - 48 * + 77 - - 14 + - 67
----
-3824

onlyif mysql # aggregate syntax: 
query II rowsort label-6124
SELECT + COUNT( * ) * + 35 * - ( + 68 ) AS col0, - 62
----
-2380
-62

skipif mysql # not compatible
query II rowsort label-6124
SELECT + COUNT ( * ) * + 35 * - ( + 68 ) AS col0, - 62
----
-2380
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT + + COALESCE ( - 78, - ( - COUNT( * ) ) + - 65, + - 39 )
----
-78

skipif mysql # not compatible
query I rowsort label-6125
SELECT + + COALESCE ( - 78, - ( - COUNT ( * ) ) + - 65, + - 39 )
----
-78

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6127
SELECT - 8 + - 31 DIV - 73 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6127
SELECT - 8 + - 31 / - 73 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6128
SELECT 0, COUNT( * ) * - 21 AS col0
----
0
-21

skipif mysql # not compatible
query II rowsort label-6128
SELECT 0, COUNT ( * ) * - 21 AS col0
----
0
-21

query I rowsort
SELECT 3 * - 78 * + - 78
----
18252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6130
SELECT + COUNT( * ) * + 42 * - CAST( NULL AS SIGNED ) + - + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT + COUNT ( * ) * + 42 * - CAST ( NULL AS INTEGER ) + - + 49
----
NULL

query I rowsort
SELECT ALL + 34 - 13 * + - 0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT ALL - COUNT( * ) * - 57 * - - 12 / + CASE - + ( + 4 ) WHEN 24 * + 93 THEN SUM( + 66 ) ELSE NULL END + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL - COUNT ( * ) * - 57 * - - 12 / + CASE - + ( + 4 ) WHEN 24 * + 93 THEN SUM ( + 66 ) ELSE NULL END + 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT + 97 + 65 + + ( + 35 ) + - 40 + 4 + - MAX( - 84 ) * 91
----
7805

skipif mysql # not compatible
query I rowsort label-6133
SELECT + 97 + 65 + + ( + 35 ) + - 40 + 4 + - MAX ( - 84 ) * 91
----
7805

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6135
SELECT CAST( + 98 AS SIGNED ) - MIN( NULLIF ( 25, + + 44 + - 57 ) )
----
73

skipif mysql # not compatible
query I rowsort label-6135
SELECT CAST ( + 98 AS INTEGER ) - MIN ( NULLIF ( 25, + + 44 + - 57 ) )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6136
SELECT + CAST( NULL AS SIGNED ) AS col1, 39 * - 34 * + CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6136
SELECT + CAST ( NULL AS INTEGER ) AS col1, 39 * - 34 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT COALESCE ( 85, 94 * - - 69 ) - - 80 + - CAST( ( - 54 ) AS SIGNED ) AS col1
----
219

skipif mysql # not compatible
query I rowsort label-6137
SELECT COALESCE ( 85, 94 * - - 69 ) - - 80 + - CAST ( ( - 54 ) AS INTEGER ) AS col1
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT MIN( DISTINCT + NULLIF ( + - COALESCE ( 64, - 1 / - - 69 * + 45 - 21 ), + 52 ) ) + CASE - 8 WHEN COUNT( * ) + + 93 THEN 97 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6138
SELECT MIN ( DISTINCT + NULLIF ( + - COALESCE ( 64, - 1 / - - 69 * + 45 - 21 ), + 52 ) ) + CASE - 8 WHEN COUNT ( * ) + + 93 THEN 97 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL - 46 * 67 AS col0
----
-3082

onlyif mysql # DIV for integer division: 
query I rowsort label-6141
SELECT ALL - 73 DIV + 23
----
-3

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL - 73 / + 23
----
-3

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

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

query I rowsort
SELECT 3 - - ( + 54 ) * + 47
----
2541

onlyif mysql # DIV for integer division: 
query II rowsort label-6144
SELECT 19 DIV + - 44 AS col1, ( + 11 )
----
0
11

skipif mysql # not compatible
query II rowsort label-6144
SELECT 19 / + - 44 AS col1, ( + 11 )
----
0
11

query I rowsort
SELECT 90 * + 94 AS col0
----
8460

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT SUM( - COALESCE ( + - 21, - 98 ) )
----
21

skipif mysql # not compatible
query I rowsort label-6146
SELECT SUM ( - COALESCE ( + - 21, - 98 ) )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6147
SELECT DISTINCT + COUNT( * ) * - ( 2 ) + - 74 + + + CAST( NULL AS DECIMAL ) * + AVG ( 46 ) + ( CAST( ( + ( 73 ) ) AS SIGNED ) ) / - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT + COUNT ( * ) * - ( 2 ) + - 74 + + + CAST ( NULL AS REAL ) * + AVG ( 46 ) + ( CAST ( ( + ( 73 ) ) AS INTEGER ) ) / - 73 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6148
SELECT 9 DIV + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6148
SELECT 9 / + 96 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6149
SELECT 45 + + 15 + + 23 + + 53 + NULLIF ( 87, - - 33 ) DIV - 92 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-6149
SELECT 45 + + 15 + + 23 + + 53 + NULLIF ( 87, - - 33 ) / - 92 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT ALL - 10 * + 51 + + + COUNT( * )
----
-509

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL - 10 * + 51 + + + COUNT ( * )
----
-509

query II rowsort
SELECT DISTINCT + 27 * + 42 + + - 87 AS col2, 31
----
1047
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT 28 * COUNT( * ) col1
----
28

skipif mysql # not compatible
query I rowsort label-6152
SELECT 28 * COUNT ( * ) col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6153
SELECT ALL - 11 DIV - + CASE + CAST( NULL AS SIGNED ) WHEN + AVG ( - 78 ) * 28 THEN + 15 ELSE COALESCE ( - MAX( 40 ), - 32 - 30 DIV + MIN( 75 * - 20 ) ) END
----
0

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL - 11 / - + CASE + CAST ( NULL AS INTEGER ) WHEN + AVG ( - 78 ) * 28 THEN + 15 ELSE COALESCE ( - MAX ( 40 ), - 32 - 30 / + MIN ( 75 * - 20 ) ) END
----
0

query I rowsort
SELECT ALL 92 * 0 * 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT ALL - COUNT( * ) * - 97 * 69 * 59 - + + 6 AS col1
----
394881

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL - COUNT ( * ) * - 97 * 69 * 59 - + + 6 AS col1
----
394881

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT COUNT( ALL - 33 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6156
SELECT COUNT ( ALL - 33 ) col2
----
1

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT - NULLIF ( - NULLIF ( - MAX( DISTINCT - 76 ), AVG ( + 33 ) ), - - 75 ) + 35
----
111

skipif mysql # not compatible
query I rowsort label-6160
SELECT - NULLIF ( - NULLIF ( - MAX ( DISTINCT - 76 ), AVG ( + 33 ) ), - - 75 ) + 35
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT 39 * - - CASE - COUNT( * ) WHEN + - SUM( DISTINCT - - ( - + 48 ) ) + - COUNT( * ) * CASE + 72 + 38 WHEN 50 * + 71 THEN 49 WHEN + 82 * 49 + 30 THEN - 28 END THEN 71 * SUM( DISTINCT 88 ) WHEN - 86 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6161
SELECT 39 * - - CASE - COUNT ( * ) WHEN + - SUM ( DISTINCT - - ( - + 48 ) ) + - COUNT ( * ) * CASE + 72 + 38 WHEN 50 * + 71 THEN 49 WHEN + 82 * 49 + 30 THEN - 28 END THEN 71 * SUM ( DISTINCT 88 ) WHEN - 86 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6162
SELECT + 32 * - 35 AS col2, + COUNT( * ) + 35 * + - 53 AS col2
----
-1120
-1854

skipif mysql # not compatible
query II rowsort label-6162
SELECT + 32 * - 35 AS col2, + COUNT ( * ) + 35 * + - 53 AS col2
----
-1120
-1854

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL + + CASE - 36 WHEN 76 * 34 THEN - - 5 * + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL + + CASE - 36 WHEN 76 * 34 THEN - - 5 * + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT - COUNT( * ) * - CASE COUNT( * ) WHEN + COALESCE ( - 83, + 76 + + + MIN( ALL + 93 ) ) * COUNT( * ) THEN NULL ELSE 47 - + MIN( 98 ) END - + 63 AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-6164
SELECT - COUNT ( * ) * - CASE COUNT ( * ) WHEN + COALESCE ( - 83, + 76 + + + MIN ( ALL + 93 ) ) * COUNT ( * ) THEN NULL ELSE 47 - + MIN ( 98 ) END - + 63 AS col1
----
-114

query II rowsort
SELECT ALL + 53 * 18 AS col1, - 25
----
954
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT + + 8 + 21 + + 46 + + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-6166
SELECT + + 8 + 21 + + 46 + + + COUNT ( * )
----
76

query I rowsort
SELECT + 95 * - 93 + + 87 AS col0
----
-8748

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT + - 19 * - 92 + - - COUNT( * ) + 68 AS col2
----
1817

skipif mysql # not compatible
query I rowsort label-6168
SELECT + - 19 * - 92 + - - COUNT ( * ) + 68 AS col2
----
1817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6169
SELECT + 39 + - COALESCE ( COUNT( * ), - COUNT( * ) * - 47 + 72 * + - CAST( NULL AS SIGNED ) + + 96 * + 73, 26 ) - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-6169
SELECT + 39 + - COALESCE ( COUNT ( * ), - COUNT ( * ) * - 47 + 72 * + - CAST ( NULL AS INTEGER ) + + 96 * + 73, 26 ) - COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT - NULLIF ( + 60, - 6 * + + COUNT( * ) + + 20 + + 79 ) * - 96 AS col0
----
5760

skipif mysql # not compatible
query I rowsort label-6170
SELECT - NULLIF ( + 60, - 6 * + + COUNT ( * ) + + 20 + + 79 ) * - 96 AS col0
----
5760

query I rowsort
SELECT - + CASE + 85 WHEN CASE + 10 WHEN + 45 THEN NULL ELSE - 43 END THEN + - 51 WHEN 20 * - 85 THEN NULL END
----
NULL

query I rowsort
SELECT - 22 - + 20 + - 19 AS col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT + - 31 DIV - + 28
----
1

skipif mysql # not compatible
query I rowsort label-6173
SELECT + - 31 / - + 28
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6174
SELECT + + CASE CAST( NULL AS DECIMAL ) WHEN + COUNT( * ) THEN + 24 * 88 WHEN + CAST( NULL AS SIGNED ) THEN + 92 * COUNT( * ) END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6174
SELECT + + CASE CAST ( NULL AS REAL ) WHEN + COUNT ( * ) THEN + 24 * 88 WHEN + CAST ( NULL AS INTEGER ) THEN + 92 * COUNT ( * ) END * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - ( 83 )
----
-83

query II rowsort
SELECT ALL 24 * + 38 * - 75, + 96 AS col0
----
-68400
96

query II rowsort
SELECT - 95 + + - ( + - 96 ), 23 col2
----
1
23

query I rowsort
SELECT - 12 * + 19 col1
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT + ( - COUNT( * ) ) + + 18 * + 44 * 57 + - + 48 AS col2
----
45095

skipif mysql # not compatible
query I rowsort label-6179
SELECT + ( - COUNT ( * ) ) + + 18 * + 44 * 57 + - + 48 AS col2
----
45095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6180
SELECT - 17, COUNT( * ) * + + 55 * - COALESCE ( 23, 19 * + COUNT( - 28 ), - CAST( + 59 AS SIGNED ) ) col2
----
-17
-1265

skipif mysql # not compatible
query II rowsort label-6180
SELECT - 17, COUNT ( * ) * + + 55 * - COALESCE ( 23, 19 * + COUNT ( - 28 ), - CAST ( + 59 AS INTEGER ) ) col2
----
-17
-1265

query II rowsort
SELECT + 76 + + NULLIF ( - 13, - + 34 + - 44 ) + + 13 AS col0, 17
----
76
17

query I rowsort
SELECT - 82 * + - 19 AS col1
----
1558

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT ALL CASE + + COUNT( * ) WHEN 56 THEN NULL ELSE + - 93 END AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL CASE + + COUNT ( * ) WHEN 56 THEN NULL ELSE + - 93 END AS col1
----
-93

query I rowsort
SELECT - 52 + - + 7 + + - 2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT DISTINCT - CASE - + 27 WHEN - 57 THEN 68 + + COALESCE ( - 39, + MIN( ALL - + 31 ), 73 * + MAX( - CASE 37 WHEN 66 THEN ( 57 ) ELSE NULL END ) ) + 48 ELSE 99 * - 28 END * + 22
----
60984

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT - CASE - + 27 WHEN - 57 THEN 68 + + COALESCE ( - 39, + MIN ( ALL - + 31 ), 73 * + MAX ( - CASE 37 WHEN 66 THEN ( 57 ) ELSE NULL END ) ) + 48 ELSE 99 * - 28 END * + 22
----
60984

query I rowsort
SELECT ALL 93 * + 12 AS col2
----
1116

query I rowsort
SELECT - 98 + + + 24
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT ALL - 89 * - COUNT( * ) * + 54 - + NULLIF ( - 60, 31 ) + - 12 * + 65
----
4086

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL - 89 * - COUNT ( * ) * + 54 - + NULLIF ( - 60, 31 ) + - 12 * + 65
----
4086

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT + ( - + NULLIF ( 44, COUNT( ALL + 36 ) - + 16 * - 63 + 23 - + 18 ) ) - 12 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-6189
SELECT + ( - + NULLIF ( 44, COUNT ( ALL + 36 ) - + 16 * - 63 + 23 - + 18 ) ) - 12 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6190
SELECT DISTINCT + CAST( - 78 AS SIGNED ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT + CAST ( - 78 AS INTEGER ) AS col1
----
-78

query II rowsort
SELECT ALL + 66 AS col0, - 23 * + 70 * 88
----
66
-141680

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT + ( - ( 7 ) ) DIV - - 13 + 79 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6192
SELECT + ( - ( 7 ) ) / - - 13 + 79 AS col0
----
79

query I rowsort
SELECT ALL + ( - 93 ) col1
----
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT - - 4 * COUNT( + - CASE 9 WHEN + - 79 THEN NULL ELSE + - 58 END ) + + 67 + - 75
----
-4

skipif mysql # not compatible
query I rowsort label-6195
SELECT - - 4 * COUNT ( + - CASE 9 WHEN + - 79 THEN NULL ELSE + - 58 END ) + + 67 + - 75
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6196
SELECT DISTINCT + + 71 DIV + - 85
----
0

skipif mysql # not compatible
query I rowsort label-6196
SELECT DISTINCT + + 71 / + - 85
----
0

query I rowsort
SELECT ALL 96 * + 49 AS col2
----
4704

query I rowsort
SELECT + 70 + - 73 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT + 84 * - + CASE 43 WHEN ( 71 ) * + ( - - MIN( 13 ) ) - ( - 82 ) * + COUNT( * ) THEN 94 * - 17 - - 12 * ( - 2 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6199
SELECT + 84 * - + CASE 43 WHEN ( 71 ) * + ( - - MIN ( 13 ) ) - ( - 82 ) * + COUNT ( * ) THEN 94 * - 17 - - 12 * ( - 2 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT + MIN( 38 ) col0
----
38

skipif mysql # not compatible
query I rowsort label-6200
SELECT + MIN ( 38 ) col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6201
SELECT + + CAST( - CASE + 88 WHEN + CASE COUNT( * ) WHEN + 55 THEN + - ( + + 48 ) END THEN - COUNT( ALL 97 ) * + 11 + 85 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT + + CAST ( - CASE + 88 WHEN + CASE COUNT ( * ) WHEN + 55 THEN + - ( + + 48 ) END THEN - COUNT ( ALL 97 ) * + 11 + 85 END AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6202
SELECT + - 2 * - - 25 DIV 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6202
SELECT + - 2 * - - 25 / 64 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6203
SELECT 97 * + COALESCE ( + COALESCE ( + - 56, - + 84 DIV + + 92 - + COUNT( * ) * + 24 ), 23 - 52 ) + 79
----
-5353

skipif mysql # not compatible
query I rowsort label-6203
SELECT 97 * + COALESCE ( + COALESCE ( + - 56, - + 84 / + + 92 - + COUNT ( * ) * + 24 ), 23 - 52 ) + 79
----
-5353

query I rowsort
SELECT ALL - + 17 * - 58 + + - 29 + + - 18 col2
----
939

onlyif mysql # aggregate syntax: 
query II rowsort label-6205
SELECT ALL - 14 * COUNT( * ) + - 42, + 70 * 23 AS col1
----
-56
1610

skipif mysql # not compatible
query II rowsort label-6205
SELECT ALL - 14 * COUNT ( * ) + - 42, + 70 * 23 AS col1
----
-56
1610

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6206
SELECT + 12 + + + COALESCE ( CAST( NULL AS SIGNED ), - + 11 ), 4 AS col0
----
1
4

skipif mysql # not compatible
query II rowsort label-6206
SELECT + 12 + + + COALESCE ( CAST ( NULL AS INTEGER ), - + 11 ), 4 AS col0
----
1
4

query I rowsort
SELECT + CASE 69 WHEN + 94 / 69 THEN - + 40 ELSE + - 44 END - - - NULLIF ( + 86, - COALESCE ( + 36, + 73 - + 35 ) ) AS col2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT DISTINCT 29 + + MAX( + 42 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT 29 + + MAX ( + 42 ) AS col2
----
71

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6210
SELECT - 59 + NULLIF ( - + 96, 10 ) DIV - 99
----
-59

skipif mysql # not compatible
query I rowsort label-6210
SELECT - 59 + NULLIF ( - + 96, 10 ) / - 99
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT ALL ( - 60 ) * - 47 * + 14 - - + MIN( DISTINCT + - 22 )
----
39458

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL ( - 60 ) * - 47 * + 14 - - + MIN ( DISTINCT + - 22 )
----
39458

query I rowsort
SELECT + 29 * 43
----
1247

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6213
SELECT ALL COUNT( * ) DIV - 6 * - CASE - - 29 WHEN - COUNT( * ) * - + 16 THEN NULL ELSE - 35 END
----
0

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL COUNT ( * ) / - 6 * - CASE - - 29 WHEN - COUNT ( * ) * - + 16 THEN NULL ELSE - 35 END
----
0

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

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

query I rowsort
SELECT ALL 28 - + 60 AS col0
----
-32

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

query I rowsort
SELECT ALL + 38 - - 77 * 5 + NULLIF ( - 41, + 50 + - 79 ) + + 67 * - ( CASE 57 WHEN - 56 * 66 THEN NULL WHEN 62 THEN 80 + + 93 END )
----
NULL

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

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

query I rowsort
SELECT 70 + + 60 + - 80 + 98 * - 71
----
-6908

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6220
SELECT 73 * - 67 DIV - COUNT( * )
----
4891

skipif mysql # not compatible
query I rowsort label-6220
SELECT 73 * - 67 / - COUNT ( * )
----
4891

query II rowsort
SELECT DISTINCT - ( - 64 ) AS col1, + 35 col1
----
64
35

query I rowsort
SELECT 9 * - ( - 93 ) + - - 50 AS col1
----
887

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6224
SELECT 71 * + 26 DIV - COUNT( * ) AS col0
----
-1846

skipif mysql # not compatible
query I rowsort label-6224
SELECT 71 * + 26 / - COUNT ( * ) AS col0
----
-1846

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6226
SELECT ALL + - 69 DIV + 11 AS col2, + SUM( ALL + 28 ) DIV 32 + + 73 * - 36
----
-6
-2628

skipif mysql # not compatible
query II rowsort label-6226
SELECT ALL + - 69 / + 11 AS col2, + SUM ( ALL + 28 ) / 32 + + 73 * - 36
----
-6
-2628

onlyif mysql # DIV for integer division: 
query I rowsort label-6227
SELECT DISTINCT + 3 * + 96 DIV 45 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT + 3 * + 96 / 45 AS col0
----
6

query II rowsort
SELECT + + ( + 81 ) AS col2, 94
----
81
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT ALL - NULLIF ( - - NULLIF ( 77, 53 * + 54 ), - ( + 82 ) * - - 76 + + ( CAST( NULL AS SIGNED ) ) + - 21 ) + - 2
----
-79

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL - NULLIF ( - - NULLIF ( 77, 53 * + 54 ), - ( + 82 ) * - - 76 + + ( CAST ( NULL AS INTEGER ) ) + - 21 ) + - 2
----
-79

query I rowsort
SELECT 27 + + 12
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL + + 94 + - + MIN( + - 58 )
----
152

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL + + 94 + - + MIN ( + - 58 )
----
152

query I rowsort
SELECT ALL - 51 + - 0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT COUNT( * ) * - 60 - - 13
----
-47

skipif mysql # not compatible
query I rowsort label-6233
SELECT COUNT ( * ) * - 60 - - 13
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6234
SELECT ALL COALESCE ( + - ( + 38 ), - 44 + CAST( NULL AS SIGNED ) ) + - 14
----
-52

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL COALESCE ( + - ( + 38 ), - 44 + CAST ( NULL AS INTEGER ) ) + - 14
----
-52

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

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

query I rowsort
SELECT - 84 + - 29
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT - - NULLIF ( - - 64, COUNT( * ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6237
SELECT - - NULLIF ( - - 64, COUNT ( * ) ) AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6238
SELECT 59 AS col2, + 8 - + - 10 / - CAST( NULL AS SIGNED ) + - + 84 + + 63 * - + ( - 90 ) + + - ( - 4 ) AS col0
----
59
NULL

skipif mysql # not compatible
query II rowsort label-6238
SELECT 59 AS col2, + 8 - + - 10 / - CAST ( NULL AS INTEGER ) + - + 84 + + 63 * - + ( - 90 ) + + - ( - 4 ) AS col0
----
59
NULL

query I rowsort
SELECT 93 + - + 2 AS col1
----
91

query I rowsort
SELECT 3 + + + 54 AS col1
----
57

query I rowsort
SELECT NULLIF ( + 32, - 5 ) - - 13 AS col1
----
45

query I rowsort
SELECT DISTINCT CASE - 90 WHEN + 73 THEN + 78 END - 51 * + 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6243
SELECT ALL 23 - NULLIF ( - 34, - CASE - 2 WHEN + COUNT( * ) THEN NULL ELSE + + AVG ( DISTINCT + 55 ) + + COUNT( * ) + - 56 - + 89 END * 63 + CAST( NULL AS SIGNED ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL 23 - NULLIF ( - 34, - CASE - 2 WHEN + COUNT ( * ) THEN NULL ELSE + + AVG ( DISTINCT + 55 ) + + COUNT ( * ) + - 56 - + 89 END * 63 + CAST ( NULL AS INTEGER ) ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT DISTINCT + COALESCE ( + + 24, + - NULLIF ( - 96, - COUNT( * ) ) * - COALESCE ( - 13, - 30 - + 24 ) ) * + - 55
----
-1320

skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT + COALESCE ( + + 24, + - NULLIF ( - 96, - COUNT ( * ) ) * - COALESCE ( - 13, - 30 - + 24 ) ) * + - 55
----
-1320

query I rowsort
SELECT DISTINCT NULLIF ( - 5, - 40 + 66 + - CASE 43 WHEN + 29 THEN COALESCE ( - 62, - - 80 ) WHEN 44 THEN NULL END * AVG ( ALL + 64 - - ( - 43 ) ) ) - - 55
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT COUNT( * ) * + 47 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6246
SELECT COUNT ( * ) * + 47 AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6247
SELECT ( - ( COALESCE ( + MAX( ALL ( + CAST( NULL AS SIGNED ) ) ), 46 * 32 + 75 + + - 57 ) ) ) * - MAX( 42 DIV 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6247
SELECT ( - ( COALESCE ( + MAX ( ALL ( + CAST ( NULL AS INTEGER ) ) ), 46 * 32 + 75 + + - 57 ) ) ) * - MAX ( 42 / 79 ) AS col0
----
0

query I rowsort
SELECT 34 + 21 * NULLIF ( - 60, - 41 + - 0 ) * 64 + + 15 AS col2
----
-80591

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6249
SELECT 79 * 50 DIV 29 * + 64 * 62 AS col2, COUNT( * ) + 38 * + 2 + - 66 AS col2
----
539648
11

skipif mysql # not compatible
query II rowsort label-6249
SELECT 79 * 50 / 29 * + 64 * 62 AS col2, COUNT ( * ) + 38 * + 2 + - 66 AS col2
----
539648
11

query I rowsort
SELECT ALL 51 * 95
----
4845

query I rowsort
SELECT DISTINCT 68 * ( - ( - + 55 ) )
----
3740

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT DISTINCT - SUM( ALL + 57 ) * + 70
----
-3990

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT - SUM ( ALL + 57 ) * + 70
----
-3990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6253
SELECT + 38 DIV + 67 * + 93 - + ( 72 ) + - - 70 - 1 + - 85 + - - 84 + + 30 DIV MIN( - 25 - + 89 ) * + MAX( - 26 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6253
SELECT + 38 / + 67 * + 93 - + ( 72 ) + - - 70 - 1 + - 85 + - - 84 + + 30 / MIN ( - 25 - + 89 ) * + MAX ( - 26 ) AS col2
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL - 16 + + 92 * - - 55 * COUNT( * ) * + MIN( DISTINCT + 99 ) + + 54 AS col1
----
500978

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL - 16 + + 92 * - - 55 * COUNT ( * ) * + MIN ( DISTINCT + 99 ) + + 54 AS col1
----
500978

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6257
SELECT 96 * COUNT( ALL - - 22 ), + 76 AS col2
----
96
76

skipif mysql # not compatible
query II rowsort label-6257
SELECT 96 * COUNT ( ALL - - 22 ), + 76 AS col2
----
96
76

query I rowsort
SELECT ALL - 49 + + 85 AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6259
SELECT DISTINCT - 44 col2, + 25 + COUNT( * ) + + 12 AS col1
----
-44
38

skipif mysql # not compatible
query II rowsort label-6259
SELECT DISTINCT - 44 col2, + 25 + COUNT ( * ) + + 12 AS col1
----
-44
38

query I rowsort
SELECT DISTINCT - + 29 + - - ( - 88 ) + + - 90 AS col2
----
-207

query I rowsort
SELECT DISTINCT + 22 + - + 6 - 79 AS col2
----
-63

query I rowsort
SELECT ALL + 58 * 15
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT + CASE - - ( - 72 ) WHEN + COUNT( * ) - 0 - - 28 * - 59 THEN - - 11 / + 60 * - - COUNT( * ) - + 92 - 5 * + 10 ELSE NULL END * 79 + + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT + CASE - - ( - 72 ) WHEN + COUNT ( * ) - 0 - - 28 * - 59 THEN - - 11 / + 60 * - - COUNT ( * ) - + 92 - 5 * + 10 ELSE NULL END * 79 + + 34 AS col0
----
NULL

query I rowsort
SELECT ALL - - 62 + - 81 - + 16
----
-35

query I rowsort
SELECT DISTINCT + - 99 * 55 AS col2
----
-5445

query I rowsort
SELECT ALL - - 87 + 25 AS col2
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6267
SELECT 0 + - CAST( + + 70 AS SIGNED ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-6267
SELECT 0 + - CAST ( + + 70 AS INTEGER ) AS col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6268
SELECT 3 DIV NULLIF ( + MAX( - + 78 ), - ( 49 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6268
SELECT 3 / NULLIF ( + MAX ( - + 78 ), - ( 49 ) )
----
0

query II rowsort
SELECT 38 + - 86 col1, 10 + 69
----
-48
79

query I rowsort
SELECT 9 * - 87
----
-783

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ALL COUNT( + 19 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL COUNT ( + 19 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6272
SELECT DISTINCT + COUNT( * ) - COALESCE ( - 9, 72, + CAST( + 3 AS SIGNED ) ) + 64 * 81 + COUNT( * ) AS col0
----
5195

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT + COUNT ( * ) - COALESCE ( - 9, 72, + CAST ( + 3 AS INTEGER ) ) + 64 * 81 + COUNT ( * ) AS col0
----
5195

onlyif mysql # DIV for integer division: 
query I rowsort label-6273
SELECT ALL 17 DIV + 43 col0
----
0

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL 17 / + 43 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT 35 + + 41 + + - CASE + COUNT( * ) WHEN + 55 THEN 6 + + 88 * 22 END + + - 67 * 68 * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6274
SELECT 35 + + 41 + + - CASE + COUNT ( * ) WHEN + 55 THEN 6 + + 88 * 22 END + + - 67 * 68 * + 44
----
NULL

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

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

query I rowsort
SELECT 28 - - + 23
----
51

query II rowsort
SELECT - 82, - 62 + + 68 AS col1
----
-82
6

query I rowsort
SELECT DISTINCT 75 * + + 82
----
6150

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT + COUNT( * ) + 38 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6279
SELECT + COUNT ( * ) + 38 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL 4 + COUNT( * ) * + COUNT( DISTINCT + - 98 )
----
5

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL 4 + COUNT ( * ) * + COUNT ( DISTINCT + - 98 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT DISTINCT MAX( 60 ) + - - 59
----
119

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT MAX ( 60 ) + - - 59
----
119

query II rowsort
SELECT DISTINCT 75, 53 AS col2
----
75
53

query I rowsort
SELECT - 62 - + 49 AS col1
----
-111

query I rowsort
SELECT - - NULLIF ( + 36, 17 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6285
SELECT ALL NULLIF ( - 78, + - COALESCE ( 61, + 81 ) - - MIN( - 85 ) ) + + COUNT( + 64 ) col2, 23 AS col1
----
-77
23

skipif mysql # not compatible
query II rowsort label-6285
SELECT ALL NULLIF ( - 78, + - COALESCE ( 61, + 81 ) - - MIN ( - 85 ) ) + + COUNT ( + 64 ) col2, 23 AS col1
----
-77
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT - - MIN( - - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-6286
SELECT - - MIN ( - - 62 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6287
SELECT + 59 * - ( + - SUM( DISTINCT - 7 ) ) AS col1, - 55 DIV 25 * - ( 26 )
----
-413
52

skipif mysql # not compatible
query II rowsort label-6287
SELECT + 59 * - ( + - SUM ( DISTINCT - 7 ) ) AS col1, - 55 / 25 * - ( 26 )
----
-413
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6288
SELECT ALL - 66 * + - 72 * COALESCE ( + 12, 14 ) / CAST( NULL AS SIGNED ) * - 22 + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL - 66 * + - 72 * COALESCE ( + 12, 14 ) / CAST ( NULL AS INTEGER ) * - 22 + - 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6289
SELECT ALL + - COALESCE ( + CASE - - 7 WHEN - - COUNT( * ) THEN - + 21 * - COALESCE ( + 16, - AVG ( - 9 ) * + + 43 * + COUNT( * ) * CAST( NULL AS SIGNED ) - 62, CASE + 4 WHEN 60 THEN 90 - 4 * - 16 ELSE 34 * + 19 END ) + + 62 END, + CASE + 73 WHEN 57 THEN + 74 WHEN 91 THEN NULL ELSE NULL END + + 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL + - COALESCE ( + CASE - - 7 WHEN - - COUNT ( * ) THEN - + 21 * - COALESCE ( + 16, - AVG ( - 9 ) * + + 43 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) - 62, CASE + 4 WHEN 60 THEN 90 - 4 * - 16 ELSE 34 * + 19 END ) + + 62 END, + CASE + 73 WHEN 57 THEN + 74 WHEN 91 THEN NULL ELSE NULL END + + 95 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6290
SELECT + 3 * - CASE - 32 WHEN - MAX( - 79 ) * 80 - + - 24 THEN + CAST( NULL AS SIGNED ) WHEN 38 THEN 16 / COUNT( 87 ) / 93 - - COUNT( * ) WHEN + 7 THEN NULL WHEN + 5 THEN NULL END - - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6290
SELECT + 3 * - CASE - 32 WHEN - MAX ( - 79 ) * 80 - + - 24 THEN + CAST ( NULL AS INTEGER ) WHEN 38 THEN 16 / COUNT ( 87 ) / 93 - - COUNT ( * ) WHEN + 7 THEN NULL WHEN + 5 THEN NULL END - - 32 AS col0
----
NULL

query II rowsort
SELECT - 26 AS col1, 94 * + - 52 + + 4 - 69 * + 39 * + - ( + 79 ) + + CASE 17 WHEN - + 80 THEN + 40 + - 73 END + - 51 col0
----
-26
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6292
SELECT ALL - - 71 * - 8 + + + 27 / + - 47 + 48 * CASE 48 WHEN + + 37 - + COALESCE ( + + 10, 31 ) THEN NULL WHEN 53 / + CAST( NULL AS SIGNED ) THEN - 46 WHEN 46 * + ( - COUNT( DISTINCT + 40 ) ) THEN NULL ELSE NULL END - - CASE - 1 - - 53 * 22 WHEN - 72 + 25 THEN - NULLIF ( + 76, + CASE AVG ( ALL 46 ) WHEN 91 * 40 THEN MIN( + NULLIF ( + 54, - 25 ) ) END ) WHEN 9 THEN - 17 * - 53 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL - - 71 * - 8 + + + 27 / + - 47 + 48 * CASE 48 WHEN + + 37 - + COALESCE ( + + 10, 31 ) THEN NULL WHEN 53 / + CAST ( NULL AS INTEGER ) THEN - 46 WHEN 46 * + ( - COUNT ( DISTINCT + 40 ) ) THEN NULL ELSE NULL END - - CASE - 1 - - 53 * 22 WHEN - 72 + 25 THEN - NULLIF ( + 76, + CASE AVG ( ALL 46 ) WHEN 91 * 40 THEN MIN ( + NULLIF ( + 54, - 25 ) ) END ) WHEN 9 THEN - 17 * - 53 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT + + 98 * COUNT( * ) * + 64 + - 31 * 86 AS col2
----
3606

skipif mysql # not compatible
query I rowsort label-6293
SELECT + + 98 * COUNT ( * ) * + 64 + - 31 * 86 AS col2
----
3606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6294
SELECT ALL + CAST( - - MIN( - 6 ) AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL + CAST ( - - MIN ( - 6 ) AS INTEGER )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT + - 23 * + 89 + - - SUM( - + ( - 38 ) )
----
-2009

skipif mysql # not compatible
query I rowsort label-6295
SELECT + - 23 * + 89 + - - SUM ( - + ( - 38 ) )
----
-2009

query II rowsort
SELECT ALL + 21 AS col2, - 79 AS col0
----
21
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-6297
SELECT DISTINCT 18 * + 57 + ( COUNT( * ) ) AS col1, 85
----
1027
85

skipif mysql # not compatible
query II rowsort label-6297
SELECT DISTINCT 18 * + 57 + ( COUNT ( * ) ) AS col1, 85
----
1027
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6298
SELECT + COUNT( * ) DIV - + 98 + + - 7 + - 7 - + 16 + - - COUNT( * ) * 9
----
-21

skipif mysql # not compatible
query I rowsort label-6298
SELECT + COUNT ( * ) / - + 98 + + - 7 + - 7 - + 16 + - - COUNT ( * ) * 9
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6299
SELECT + ( + CASE - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN - 0 WHEN - 28 * - 24 THEN 96 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT + ( + CASE - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN - 0 WHEN - 28 * - 24 THEN 96 END )
----
NULL

query II rowsort
SELECT ALL + 69, 67 col2
----
69
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6301
SELECT + 51 * - 80 + + 32 + NULLIF ( + ( + 6 ), - - SUM( ALL - + 77 ) * 72 - + CAST( NULL AS SIGNED ) ) + - - 37 * + 47 * - 99 AS col1
----
-176203

skipif mysql # not compatible
query I rowsort label-6301
SELECT + 51 * - 80 + + 32 + NULLIF ( + ( + 6 ), - - SUM ( ALL - + 77 ) * 72 - + CAST ( NULL AS INTEGER ) ) + - - 37 * + 47 * - 99 AS col1
----
-176203

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT 60 * - COUNT( * ) + + - 4
----
-64

skipif mysql # not compatible
query I rowsort label-6303
SELECT 60 * - COUNT ( * ) + + - 4
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6304
SELECT + 30 * + 14 * - 70 * COALESCE ( 81, - 37 DIV - ( + - COALESCE ( + 60, + MAX( - + 50 ) + + 90, - 78 ) ) * - 89 ) AS col0
----
-2381400

skipif mysql # not compatible
query I rowsort label-6304
SELECT + 30 * + 14 * - 70 * COALESCE ( 81, - 37 / - ( + - COALESCE ( + 60, + MAX ( - + 50 ) + + 90, - 78 ) ) * - 89 ) AS col0
----
-2381400

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT DISTINCT - COUNT( ALL - 8 ) * + 57
----
-57

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT - COUNT ( ALL - 8 ) * + 57
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT - 6 + - 18 DIV + - 84
----
-6

skipif mysql # not compatible
query I rowsort label-6306
SELECT - 6 + - 18 / + - 84
----
-6

query I rowsort
SELECT ALL - 61 * + 35 * + - 10 col2
----
21350

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL - 52 * COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL - 52 * COUNT ( * ) AS col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT - 0 * + CAST( NULL AS SIGNED ) * + 98 / + 54 * + ( - - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT - 0 * + CAST ( NULL AS INTEGER ) * + 98 / + 54 * + ( - - 81 )
----
NULL

query I rowsort
SELECT DISTINCT 6 * - 61
----
-366

query II rowsort
SELECT - ( 37 ) col2, - 3 * - 29 AS col2
----
-37
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6312
SELECT ALL - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - 6 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6313
SELECT - 52 DIV - + 53
----
0

skipif mysql # not compatible
query I rowsort label-6313
SELECT - 52 / - + 53
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6314
SELECT - 70 * + NULLIF ( - CAST( NULL AS DECIMAL ), + + 70 - + 9 ) AS col2, 30 * - - COUNT( * )
----
NULL
30

skipif mysql # not compatible
query II rowsort label-6314
SELECT - 70 * + NULLIF ( - CAST ( NULL AS REAL ), + + 70 - + 9 ) AS col2, 30 * - - COUNT ( * )
----
NULL
30

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

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

query I rowsort
SELECT ALL - 17 + 88 * 72 * 85 + - 47 + 95
----
538591

query I rowsort
SELECT - 34 * - 46 AS col0
----
1564

onlyif mysql # aggregate syntax: 
query II rowsort label-6318
SELECT - SUM( ALL + + 29 ) + + - 28 AS col0, - 10 col0
----
-57
-10

skipif mysql # not compatible
query II rowsort label-6318
SELECT - SUM ( ALL + + 29 ) + + - 28 AS col0, - 10 col0
----
-57
-10

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6320
SELECT - MIN( - 14 ) DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-6320
SELECT - MIN ( - 14 ) / + 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT ALL - 17 + + MIN( ( - 81 ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL - 17 + + MIN ( ( - 81 ) ) AS col0
----
-98

query I rowsort
SELECT - + 93 + - 20 - - + 57
----
-56

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

query I rowsort
SELECT - - ( + 83 ) + + 85
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6325
SELECT ALL - 13 + + AVG ( + - 53 ) * + MIN( + - 92 ) + - + 61 + + - CAST( NULL AS SIGNED ) + + 43 * + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL - 13 + + AVG ( + - 53 ) * + MIN ( + - 92 ) + - + 61 + + - CAST ( NULL AS INTEGER ) + + 43 * + + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT DISTINCT + - COUNT( * ) + + - 63
----
-64

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT + - COUNT ( * ) + + - 63
----
-64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6327
SELECT - 10 + COUNT( * ) AS col0, - ( CASE + CAST( NULL AS DECIMAL ) WHEN + 48 + - 98 THEN NULL WHEN 8 THEN + 22 ELSE NULL END ) + + 92 AS col2
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-6327
SELECT - 10 + COUNT ( * ) AS col0, - ( CASE + CAST ( NULL AS REAL ) WHEN + 48 + - 98 THEN NULL WHEN 8 THEN + 22 ELSE NULL END ) + + 92 AS col2
----
-9
NULL

query II rowsort
SELECT - - 69 * 68, - 6 AS col1
----
4692
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6329
SELECT - 91 DIV 15 + CAST( 56 AS SIGNED ) + 95 AS col2
----
145

skipif mysql # not compatible
query I rowsort label-6329
SELECT - 91 / 15 + CAST ( 56 AS INTEGER ) + 95 AS col2
----
145

query I rowsort
SELECT + 37 + - 35
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6331
SELECT ALL - ( - 82 ) DIV - - COUNT( * ) - 79 + + 83
----
86

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL - ( - 82 ) / - - COUNT ( * ) - 79 + + 83
----
86

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

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

query I rowsort
SELECT + 16 * + ( + + 86 ) + 40
----
1416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6334
SELECT 86 * - 63 + - 95 - - 39 + - ( - 98 ) * - CASE - COALESCE ( - - ( + + ( - + 16 ) ), + 33 * 41, ( 77 ) DIV 87 + + 76 ) WHEN 25 * COUNT( * ) THEN NULL ELSE + 45 - 77 DIV CAST( 39 AS SIGNED ) END
----
-9786

skipif mysql # not compatible
query I rowsort label-6334
SELECT 86 * - 63 + - 95 - - 39 + - ( - 98 ) * - CASE - COALESCE ( - - ( + + ( - + 16 ) ), + 33 * 41, ( 77 ) / 87 + + 76 ) WHEN 25 * COUNT ( * ) THEN NULL ELSE + 45 - 77 / CAST ( 39 AS INTEGER ) END
----
-9786

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

query I rowsort
SELECT - + 39 * - - 47 + 15 + + CASE - 35 WHEN - 31 THEN 14 * + 33 WHEN - 91 / 89 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6337
SELECT + + 42 * CAST( 2 AS SIGNED ) + + 37 col0
----
121

skipif mysql # not compatible
query I rowsort label-6337
SELECT + + 42 * CAST ( 2 AS INTEGER ) + + 37 col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT ALL 0 * + ( ( - + COUNT( * ) ) ) * 55 * + ( + - 19 )
----
0

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL 0 * + ( ( - + COUNT ( * ) ) ) * 55 * + ( + - 19 )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT ALL SUM( ALL - + 76 ) * 46 * + SUM( DISTINCT + 91 ) AS col1
----
-318136

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL SUM ( ALL - + 76 ) * 46 * + SUM ( DISTINCT + 91 ) AS col1
----
-318136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6341
SELECT + CAST( + + 35 AS SIGNED ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6341
SELECT + CAST ( + + 35 AS INTEGER ) AS col0
----
35

query II rowsort
SELECT ALL + 9 AS col1, ( + 61 ) AS col0
----
9
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6343
SELECT + 0 DIV - NULLIF ( COALESCE ( 43, + 19 + - - COUNT( + 72 ) * - + 86, + 29 ), AVG ( + - 85 ) ) * + CAST( 1 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6343
SELECT + 0 / - NULLIF ( COALESCE ( 43, + 19 + - - COUNT ( + 72 ) * - + 86, + 29 ), AVG ( + - 85 ) ) * + CAST ( 1 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT DISTINCT NULLIF ( + 59, + + 62 / + + 14 + + 1 ) * + - COUNT( * ) + - 15 * + + 75 AS col2
----
-1184

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT NULLIF ( + 59, + + 62 / + + 14 + + 1 ) * + - COUNT ( * ) + - 15 * + + 75 AS col2
----
-1184

query I rowsort
SELECT + 70 - - 76 AS col2
----
146

query II rowsort
SELECT + 76 * 58 * - 35, - 51 AS col0
----
-154280
-51

query II rowsort
SELECT 99 AS col1, - 28
----
99
-28

query II rowsort
SELECT ALL - 99 AS col2, - 88 + - 89
----
-99
-177

query I rowsort
SELECT 44 * 95 AS col2
----
4180

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT DISTINCT 52 + - + COUNT( * ) col0
----
51

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT 52 + - + COUNT ( * ) col0
----
51

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6352
SELECT DISTINCT 57 + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT 57 + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6353
SELECT - 87 AS col0, 71 + + 43 DIV - + 17 AS col0
----
-87
69

skipif mysql # not compatible
query II rowsort label-6353
SELECT - 87 AS col0, 71 + + 43 / - + 17 AS col0
----
-87
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6354
SELECT ALL 89, - 66 * COUNT( * ) * - ( + 27 ) AS col1
----
89
1782

skipif mysql # not compatible
query II rowsort label-6354
SELECT ALL 89, - 66 * COUNT ( * ) * - ( + 27 ) AS col1
----
89
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT ALL 92 + + - 68 * - - CASE - - ( - ( 10 ) ) WHEN + + AVG ( 2 ) THEN NULL ELSE 94 * + COUNT( * ) * - 35 END - - 67 AS col2
----
223879

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL 92 + + - 68 * - - CASE - - ( - ( 10 ) ) WHEN + + AVG ( 2 ) THEN NULL ELSE 94 * + COUNT ( * ) * - 35 END - - 67 AS col2
----
223879

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL 51 + NULLIF ( - ( - + COUNT( * ) ), + 64 ) + 31 + - MAX( ALL - + 65 )
----
148

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL 51 + NULLIF ( - ( - + COUNT ( * ) ), + 64 ) + 31 + - MAX ( ALL - + 65 )
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT SUM( DISTINCT - + 62 ) * + + 59 + 67 + + 46
----
-3545

skipif mysql # not compatible
query I rowsort label-6357
SELECT SUM ( DISTINCT - + 62 ) * + + 59 + 67 + + 46
----
-3545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6358
SELECT 71 - - + COUNT( * ) + + 33 + + + 49 - + 64 * - 82 + + 72 + + CASE - 90 WHEN - 98 THEN NULL ELSE - 39 END * - 41 * - CASE - CASE 69 WHEN CAST( NULL AS SIGNED ) * - 91 + 71 THEN + 47 / 16 END WHEN - 62 / ( CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 81 * + 86 + 18 * NULLIF ( 85, - 30 * 16 + CAST( 24 AS SIGNED ) * 55 ) THEN NULL ELSE + 66 + + MAX( 26 ) * + 37 END
----
-1638298

skipif mysql # not compatible
query I rowsort label-6358
SELECT 71 - - + COUNT ( * ) + + 33 + + + 49 - + 64 * - 82 + + 72 + + CASE - 90 WHEN - 98 THEN NULL ELSE - 39 END * - 41 * - CASE - CASE 69 WHEN CAST ( NULL AS INTEGER ) * - 91 + 71 THEN + 47 / 16 END WHEN - 62 / ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 81 * + 86 + 18 * NULLIF ( 85, - 30 * 16 + CAST ( 24 AS INTEGER ) * 55 ) THEN NULL ELSE + 66 + + MAX ( 26 ) * + 37 END
----
-1638298

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

skipif mysql # not compatible
query I rowsort label-6359
SELECT + 28 + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT CASE - - 45 WHEN 4 THEN NULL WHEN + 99 THEN - 60 * - - 32 - 24 ELSE NULL END * 74
----
NULL

query I rowsort
SELECT ALL + 37 + + 88 AS col2
----
125

query I rowsort
SELECT DISTINCT 50 * - 7 * + 18 AS col2
----
-6300

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT ALL - CASE - SUM( - - 97 ) WHEN + + 60 * 87 THEN 17 ELSE + 69 + + - 45 END AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL - CASE - SUM ( - - 97 ) WHEN + + 60 * 87 THEN 17 ELSE + 69 + + - 45 END AS col1
----
-24

query I rowsort
SELECT 19 * - - 0
----
0

query II rowsort
SELECT + 45 AS col1, - 32 * - - 52
----
45
-1664

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6367
SELECT COUNT( * ) * - 77 DIV + 97 + + - SUM( ALL + 82 ) * - COUNT( + - 8 ) * COUNT( * ) AS col2, - NULLIF ( + + NULLIF ( - COUNT( * ), + 50 * - - 23 - + COALESCE ( 56, CASE 15 WHEN + 38 DIV - 92 THEN 16 - - 58 WHEN - 32 * - 37 THEN NULLIF ( 35, 89 ) ELSE + ( + 99 ) * 31 + + AVG ( - 69 ) END ) - 4 * 95 ), + 53 ) * 98
----
82
98

skipif mysql # not compatible
query II rowsort label-6367
SELECT COUNT ( * ) * - 77 / + 97 + + - SUM ( ALL + 82 ) * - COUNT ( + - 8 ) * COUNT ( * ) AS col2, - NULLIF ( + + NULLIF ( - COUNT ( * ), + 50 * - - 23 - + COALESCE ( 56, CASE 15 WHEN + 38 / - 92 THEN 16 - - 58 WHEN - 32 * - 37 THEN NULLIF ( 35, 89 ) ELSE + ( + 99 ) * 31 + + AVG ( - 69 ) END ) - 4 * 95 ), + 53 ) * 98
----
82
98

query I rowsort
SELECT ALL - + 80 * + - 5 + - + 93
----
307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6369
SELECT - - MIN( - 50 ) / - + CAST( NULL AS SIGNED ) - + 79 AS col0, 47 AS col1
----
NULL
47

skipif mysql # not compatible
query II rowsort label-6369
SELECT - - MIN ( - 50 ) / - + CAST ( NULL AS INTEGER ) - + 79 AS col0, 47 AS col1
----
NULL
47

query I rowsort
SELECT 19 - + 54
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-6371
SELECT 12 * - + 77 * SUM( DISTINCT NULLIF ( - + ( + 54 ), + 47 ) ) AS col1, + 10 * + 83 + 18 AS col1
----
49896
848

skipif mysql # not compatible
query II rowsort label-6371
SELECT 12 * - + 77 * SUM ( DISTINCT NULLIF ( - + ( + 54 ), + 47 ) ) AS col1, + 10 * + 83 + 18 AS col1
----
49896
848

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT COUNT( * ) * + MIN( DISTINCT - ( + 42 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-6372
SELECT COUNT ( * ) * + MIN ( DISTINCT - ( + 42 ) )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-6373
SELECT - 69 DIV + 79 + + 37 col2
----
37

skipif mysql # not compatible
query I rowsort label-6373
SELECT - 69 / + 79 + + 37 col2
----
37

query I rowsort
SELECT ALL 17 + + 83
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6375
SELECT COALESCE ( 14, - COUNT( * ), 30 ) * + COUNT( * ) DIV + 95 + 48 + + - 78 col2
----
-30

skipif mysql # not compatible
query I rowsort label-6375
SELECT COALESCE ( 14, - COUNT ( * ), 30 ) * + COUNT ( * ) / + 95 + 48 + + - 78 col2
----
-30

query I rowsort
SELECT ALL 11 + - 37 AS col2
----
-26

query I rowsort
SELECT + 43 * - 95 + + 90
----
-3995

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT - COUNT( ALL - 30 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6378
SELECT - COUNT ( ALL - 30 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6379
SELECT CASE - + 37 WHEN - COUNT( * ) THEN NULL WHEN + AVG ( DISTINCT + 69 ) - + 25 + + 55 THEN - 78 + + 51 WHEN + 29 * - 27 THEN NULL ELSE + - COUNT( * ) - COUNT( * ) END DIV - 22 + - 45 DIV - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6379
SELECT CASE - + 37 WHEN - COUNT ( * ) THEN NULL WHEN + AVG ( DISTINCT + 69 ) - + 25 + + 55 THEN - 78 + + 51 WHEN + 29 * - 27 THEN NULL ELSE + - COUNT ( * ) - COUNT ( * ) END / - 22 + - 45 / - 73 AS col2
----
0

query I rowsort
SELECT 62 * 90 AS col1
----
5580

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT COALESCE ( + COUNT( * ), + 92 ) * 40 col1
----
40

skipif mysql # not compatible
query I rowsort label-6381
SELECT COALESCE ( + COUNT ( * ), + 92 ) * 40 col1
----
40

query I rowsort
SELECT ALL 95 + - 0 * + 45 + - + 23 + - 20 AS col0
----
52

query I rowsort
SELECT ALL 0 - + 62 - + 72 AS col2
----
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-6384
SELECT DISTINCT + + 82 * 0 * 1 * + 21 DIV - 17
----
0

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT + + 82 * 0 * 1 * + 21 / - 17
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6385
SELECT ALL - MAX( 66 ) AS col2, + 60 - 55 + 17
----
-66
22

skipif mysql # not compatible
query II rowsort label-6385
SELECT ALL - MAX ( 66 ) AS col2, + 60 - 55 + 17
----
-66
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6386
SELECT - + COALESCE ( - CAST( + + 52 AS SIGNED ), - 23 )
----
52

skipif mysql # not compatible
query I rowsort label-6386
SELECT - + COALESCE ( - CAST ( + + 52 AS INTEGER ), - 23 )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6387
SELECT + COUNT( * ) + 36 AS col0, 34 * - 2
----
37
-68

skipif mysql # not compatible
query II rowsort label-6387
SELECT + COUNT ( * ) + 36 AS col0, 34 * - 2
----
37
-68

query I rowsort
SELECT - 28 - 76 - + - 3 * - 69 AS col1
----
-311

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT 65 + + COUNT( * ) * - - ( - - 95 ) * - 15 AS col1
----
-1360

skipif mysql # not compatible
query I rowsort label-6389
SELECT 65 + + COUNT ( * ) * - - ( - - 95 ) * - 15 AS col1
----
-1360

query I rowsort
SELECT DISTINCT + 53 * + 53 + - 93 - - 35 AS col1
----
2751

query I rowsort
SELECT + 94 + 65 AS col2
----
159

query I rowsort
SELECT ALL 69 * ( 40 ) AS col2
----
2760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6393
SELECT + CAST( NULL AS SIGNED ) + - 56 + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6393
SELECT + CAST ( NULL AS INTEGER ) + - 56 + - 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT 34 DIV + 16 - + ( + 24 ) + - + 92 col1
----
-114

skipif mysql # not compatible
query I rowsort label-6394
SELECT 34 / + 16 - + ( + 24 ) + - + 92 col1
----
-114

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT NULLIF ( - COUNT( * ), - 58 / 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-6396
SELECT NULLIF ( - COUNT ( * ), - 58 / 84 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT NULLIF ( - + MIN( + + ( - ( + 32 ) ) ), 77 + + 71 + - 3 + - 19 + - 17 / - 71 / + 19 * COUNT( * ) + 73 )
----
32

skipif mysql # not compatible
query I rowsort label-6398
SELECT NULLIF ( - + MIN ( + + ( - ( + 32 ) ) ), 77 + + 71 + - 3 + - 19 + - 17 / - 71 / + 19 * COUNT ( * ) + 73 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6399
SELECT NULLIF ( - + 53, - - CAST( - COUNT( * ) AS SIGNED ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6399
SELECT NULLIF ( - + 53, - - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT - COUNT( * ) * SUM( ALL - - 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6400
SELECT - COUNT ( * ) * SUM ( ALL - - 1 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6401
SELECT ALL 40 * + 40 + + - COUNT( * ) AS col0, + COUNT( * )
----
1599
1

skipif mysql # not compatible
query II rowsort label-6401
SELECT ALL 40 * + 40 + + - COUNT ( * ) AS col0, + COUNT ( * )
----
1599
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT ALL + 20 * + - 15 * MAX( 1 ) + - 8 * 47 AS col0
----
-676

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL + 20 * + - 15 * MAX ( 1 ) + - 8 * 47 AS col0
----
-676

query I rowsort
SELECT ALL 52 * + 45 + 88 col1
----
2428

query II rowsort
SELECT ALL 77 * + 57 * + 3 + + + 36 - 35 * - 35, + 41 * - - 46 + - 0 + 76 AS col0
----
14428
1962

query I rowsort
SELECT - 57 - + 99
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT MAX( DISTINCT + ( - - 49 ) )
----
49

skipif mysql # not compatible
query I rowsort label-6406
SELECT MAX ( DISTINCT + ( - - 49 ) )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6407
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) / - + 3
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6408
SELECT DISTINCT COUNT( DISTINCT + - 39 ) - + 55 col1, 76
----
-54
76

skipif mysql # not compatible
query II rowsort label-6408
SELECT DISTINCT COUNT ( DISTINCT + - 39 ) - + 55 col1, 76
----
-54
76

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT + + COUNT( * ) + 22 * + 33 * 64 * + - 56 * - 40 AS col2
----
104079361

skipif mysql # not compatible
query I rowsort label-6411
SELECT + + COUNT ( * ) + 22 * + 33 * 64 * + - 56 * - 40 AS col2
----
104079361

query I rowsort
SELECT ALL - 45 * - + NULLIF ( - 27, ( - - AVG ( ALL - + NULLIF ( + - ( 70 ), - - 26 ) ) ) ) + - 1
----
-1216

query I rowsort
SELECT + - 40 + - - 97 * + 14 AS col1
----
1318

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT - + 71 * - - SUM( + 0 ) + 34 - + ( + 25 ) * 37 AS col0
----
-891

skipif mysql # not compatible
query I rowsort label-6414
SELECT - + 71 * - - SUM ( + 0 ) + 34 - + ( + 25 ) * 37 AS col0
----
-891

query I rowsort
SELECT - - 96 * 62
----
5952

query I rowsort
SELECT ALL 73 * + + 96 + - 42 AS col1
----
6966

query I rowsort
SELECT + 12 + + 7 * - 28 * - - 22
----
-4300

query I rowsort
SELECT DISTINCT + NULLIF ( 19, ( + 93 ) ) AS col1
----
19

query I rowsort
SELECT ALL + - 96 * - 43
----
4128

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6420
SELECT ( + NULLIF ( + - NULLIF ( SUM( 21 ), CAST( NULL AS DECIMAL ) * + 78 * - 41 + - COUNT( * ) * + + 65 ), MAX( ALL - 97 ) + - 0 ) ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-6420
SELECT ( + NULLIF ( + - NULLIF ( SUM ( 21 ), CAST ( NULL AS REAL ) * + 78 * - 41 + - COUNT ( * ) * + + 65 ), MAX ( ALL - 97 ) + - 0 ) ) col0
----
-21

query II rowsort
SELECT 87, + 36 AS col2
----
87
36

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

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL + + 13 * - + CAST ( 54 AS INTEGER )
----
-702

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

query I rowsort
SELECT ALL 75 + + 80 * - 4 * + + 49 * 45
----
-705525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6425
SELECT MAX( + CAST( - 47 AS SIGNED ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6425
SELECT MAX ( + CAST ( - 47 AS INTEGER ) ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT + 59 - 70 + + 83 * + COUNT( * ) * - + 59
----
-4908

skipif mysql # not compatible
query I rowsort label-6426
SELECT + 59 - 70 + + 83 * + COUNT ( * ) * - + 59
----
-4908

query I rowsort
SELECT ALL 2 + + 54 + 33 AS col1
----
89

query I rowsort
SELECT + 47 * - 47 AS col2
----
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT - ( 83 ) * ( COUNT( * ) ) * CASE + 15 WHEN + - 16 / + 35 + - 41 / - - ( + - 92 ) + ( - - COUNT( * ) ) THEN - CASE - 74 WHEN - 46 - 31 THEN NULL WHEN 2 THEN MAX( DISTINCT + 14 ) END + + COUNT( * ) * 24 WHEN COALESCE ( + 34, + NULLIF ( 89, + 7 ) ) / 18 THEN 90 + + MAX( ALL - 67 ) END + AVG ( DISTINCT + 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6429
SELECT - ( 83 ) * ( COUNT ( * ) ) * CASE + 15 WHEN + - 16 / + 35 + - 41 / - - ( + - 92 ) + ( - - COUNT ( * ) ) THEN - CASE - 74 WHEN - 46 - 31 THEN NULL WHEN 2 THEN MAX ( DISTINCT + 14 ) END + + COUNT ( * ) * 24 WHEN COALESCE ( + 34, + NULLIF ( 89, + 7 ) ) / 18 THEN 90 + + MAX ( ALL - 67 ) END + AVG ( DISTINCT + 43 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6431
SELECT ALL 61 / - + 19 + + + CASE - ( - 17 ) WHEN + 83 THEN NULL WHEN + 82 THEN + - 70 * + NULLIF ( 55, CAST( NULL AS SIGNED ) + - COALESCE ( - 50, + MAX( DISTINCT 32 ) ) ) WHEN - 39 THEN 25 * + 47 WHEN 96 THEN NULL ELSE NULL END + 58 * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL 61 / - + 19 + + + CASE - ( - 17 ) WHEN + 83 THEN NULL WHEN + 82 THEN + - 70 * + NULLIF ( 55, CAST ( NULL AS INTEGER ) + - COALESCE ( - 50, + MAX ( DISTINCT 32 ) ) ) WHEN - 39 THEN 25 * + 47 WHEN 96 THEN NULL ELSE NULL END + 58 * 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6432
SELECT ALL - 26 DIV - COUNT( * ) + - 41
----
-15

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL - 26 / - COUNT ( * ) + - 41
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6433
SELECT 62 DIV - COUNT( * ) - - + 59
----
-3

skipif mysql # not compatible
query I rowsort label-6433
SELECT 62 / - COUNT ( * ) - - + 59
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6435
SELECT - 70 DIV COUNT( * ) * 40 * + - ( - 20 ) * 31 + - 48
----
-1736048

skipif mysql # not compatible
query I rowsort label-6435
SELECT - 70 / COUNT ( * ) * 40 * + - ( - 20 ) * 31 + - 48
----
-1736048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6436
SELECT ALL CAST( NULL AS SIGNED ) / 64 + + 80 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL CAST ( NULL AS INTEGER ) / 64 + + 80 col1
----
NULL

query I rowsort
SELECT + 81 * - 50 * + 7
----
-28350

query II rowsort
SELECT + 72 AS col2, + 82 * - 41
----
72
-3362

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL + COALESCE ( - 43, - + 62, + 36 * - 34 * ( - + 79 ) + - ( - + 18 ), - 78 + + 4, CASE - 25 WHEN + + ( + SUM( ALL + 16 ) ) * - 84 THEN NULL ELSE COUNT( * ) * - 8 END ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL + COALESCE ( - 43, - + 62, + 36 * - 34 * ( - + 79 ) + - ( - + 18 ), - 78 + + 4, CASE - 25 WHEN + + ( + SUM ( ALL + 16 ) ) * - 84 THEN NULL ELSE COUNT ( * ) * - 8 END ) AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT ALL - 72 DIV - 16 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL - 72 / - 16 AS col2
----
4

query I rowsort
SELECT + 34 + + 55 col1
----
89

query I rowsort
SELECT + 35 * - 7 + - - 7 AS col0
----
-238

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

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL + 99 * - - COUNT ( * ) AS col0
----
99

query II rowsort
SELECT + 86 AS col2, 92
----
86
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6445
SELECT DISTINCT + MAX( + CAST( + ( 14 ) AS SIGNED ) ) * + - 60 * - CAST( NULL AS SIGNED ), 16 AS col0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-6445
SELECT DISTINCT + MAX ( + CAST ( + ( 14 ) AS INTEGER ) ) * + - 60 * - CAST ( NULL AS INTEGER ), 16 AS col0
----
NULL
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6446
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, - 23 AS col1
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-6446
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - 23 AS col1
----
NULL
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6447
SELECT - ( 74 ) * 62 + - 75 * + - 12 * + 68 * - + COUNT( DISTINCT + 7 ) * 52 * + + COALESCE ( - + SUM( ALL - 67 ), - 94 - - - NULLIF ( - 75, CAST( NULL AS DECIMAL ) * - CASE WHEN NULL IS NULL THEN 88 END + - COUNT( * ) ), ( CASE + 18 WHEN 37 THEN NULL WHEN + 98 THEN NULL WHEN 13 THEN NULL ELSE 13 * 45 END ) * - 19 ) col1
----
-213225388

skipif mysql # not compatible
query I rowsort label-6447
SELECT - ( 74 ) * 62 + - 75 * + - 12 * + 68 * - + COUNT ( DISTINCT + 7 ) * 52 * + + COALESCE ( - + SUM ( ALL - 67 ), - 94 - - - NULLIF ( - 75, CAST ( NULL AS REAL ) * - CASE WHEN NULL IS NULL THEN 88 END + - COUNT ( * ) ), ( CASE + 18 WHEN 37 THEN NULL WHEN + 98 THEN NULL WHEN 13 THEN NULL ELSE 13 * 45 END ) * - 19 ) col1
----
-213225388

query II rowsort
SELECT ALL + 12 AS col1, 50
----
12
50

query II rowsort
SELECT - 29 AS col2, + 30
----
-29
30

onlyif mysql # aggregate syntax: 
query II rowsort label-6450
SELECT 65 AS col1, 5 - - + 66 * - + ( - + NULLIF ( - COALESCE ( + 25, + COUNT( ALL - - 44 ) ), 89 ) )
----
65
-1645

skipif mysql # not compatible
query II rowsort label-6450
SELECT 65 AS col1, 5 - - + 66 * - + ( - + NULLIF ( - COALESCE ( + 25, + COUNT ( ALL - - 44 ) ), 89 ) )
----
65
-1645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6451
SELECT + COALESCE ( CAST( + 39 AS SIGNED ), 88 * + - COUNT( * ), - 34, - 12 ) + 91
----
130

skipif mysql # not compatible
query I rowsort label-6451
SELECT + COALESCE ( CAST ( + 39 AS INTEGER ), 88 * + - COUNT ( * ), - 34, - 12 ) + 91
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6452
SELECT ALL - 64 DIV - NULLIF ( - MAX( ALL - + 64 ), + - 29 * 48 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL - 64 / - NULLIF ( - MAX ( ALL - + 64 ), + - 29 * 48 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6453
SELECT ALL COALESCE ( ( + CAST( COUNT( * ) AS SIGNED ) ), + NULLIF ( - 85, 35 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL COALESCE ( ( + CAST ( COUNT ( * ) AS INTEGER ) ), + NULLIF ( - 85, 35 ) )
----
1

query II rowsort
SELECT DISTINCT - 7, + 93 AS col1
----
-7
93

query I rowsort
SELECT ALL ( NULLIF ( + - 69, 88 ) ) + + 4 + + 98 * + ( - 8 )
----
-849

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

skipif mysql # not compatible
query I rowsort label-6456
SELECT + COUNT ( DISTINCT - + 99 ) * - - ( - + COUNT ( * ) ) AS col1
----
-1

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

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

query I rowsort
SELECT ALL 87 + 98 AS col2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT + MAX( DISTINCT + 11 ) + - + COUNT( * ) + COUNT( * ) * + - 32
----
-22

skipif mysql # not compatible
query I rowsort label-6459
SELECT + MAX ( DISTINCT + 11 ) + - + COUNT ( * ) + COUNT ( * ) * + - 32
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6460
SELECT ( + + 96 ) - - + COALESCE ( CASE + 63 WHEN - 97 * - 84 + - + COUNT( + 31 ) + - + CAST( 9 AS SIGNED ) THEN + 7 + COUNT( * ) ELSE ( - MIN( - + 26 ) ) END, + 11 + 53, - MIN( ALL - 48 ) ) AS col2
----
122

skipif mysql # not compatible
query I rowsort label-6460
SELECT ( + + 96 ) - - + COALESCE ( CASE + 63 WHEN - 97 * - 84 + - + COUNT ( + 31 ) + - + CAST ( 9 AS INTEGER ) THEN + 7 + COUNT ( * ) ELSE ( - MIN ( - + 26 ) ) END, + 11 + 53, - MIN ( ALL - 48 ) ) AS col2
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6461
SELECT DISTINCT - COALESCE ( - - 16, - 31, + 29 ) + - + 27 + + + 68 + - 35 * 69 * 11 + - COUNT( * ), 13 + 67 + CASE - 71 WHEN - COUNT( * ) THEN NULL WHEN + + COUNT( * ) THEN 35 * + 85 + - SUM( 87 + 30 ) ELSE - 79 DIV + 72 + - 91 * 90 END + - 70 AS col0
----
-26541
-8181

skipif mysql # not compatible
query II rowsort label-6461
SELECT DISTINCT - COALESCE ( - - 16, - 31, + 29 ) + - + 27 + + + 68 + - 35 * 69 * 11 + - COUNT ( * ), 13 + 67 + CASE - 71 WHEN - COUNT ( * ) THEN NULL WHEN + + COUNT ( * ) THEN 35 * + 85 + - SUM ( 87 + 30 ) ELSE - 79 / + 72 + - 91 * 90 END + - 70 AS col0
----
-26541
-8181

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6463
SELECT ALL 0 + + - 54 + + - COALESCE ( + + CAST( NULL AS SIGNED ), - 7 )
----
-47

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL 0 + + - 54 + + - COALESCE ( + + CAST ( NULL AS INTEGER ), - 7 )
----
-47

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

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

query I rowsort
SELECT 88 * - ( + + 75 ) AS col1
----
-6600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6466
SELECT 4 DIV + + COUNT( * ) + + 71
----
75

skipif mysql # not compatible
query I rowsort label-6466
SELECT 4 / + + COUNT ( * ) + + 71
----
75

query I rowsort
SELECT 78 * ( + + 15 ) AS col2
----
1170

query I rowsort
SELECT ALL 34 * - 13 * + 36 * ( + - 88 ) AS col2
----
1400256

onlyif mysql # aggregate syntax: 
query II rowsort label-6469
SELECT DISTINCT 51 - - 47 * 93 * + COALESCE ( + 62, 62, + COUNT( * ) ) AS col0, - 3 * 58
----
271053
-174

skipif mysql # not compatible
query II rowsort label-6469
SELECT DISTINCT 51 - - 47 * 93 * + COALESCE ( + 62, 62, + COUNT ( * ) ) AS col0, - 3 * 58
----
271053
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6470
SELECT ALL - CASE - + CASE - + 4 WHEN - + ( + MAX( DISTINCT - + 77 ) ) * - 74 + - 61 + + 23 + + + 55 * + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + - 55 THEN + ( 97 ) ELSE NULL END WHEN 2 + COUNT( * ) * COUNT( DISTINCT - ( 47 ) ) THEN NULL WHEN + 53 * + 29 THEN 23 + + 50 * + 6 ELSE 72 END
----
-72

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL - CASE - + CASE - + 4 WHEN - + ( + MAX ( DISTINCT - + 77 ) ) * - 74 + - 61 + + 23 + + + 55 * + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 55 THEN + ( 97 ) ELSE NULL END WHEN 2 + COUNT ( * ) * COUNT ( DISTINCT - ( 47 ) ) THEN NULL WHEN + 53 * + 29 THEN 23 + + 50 * + 6 ELSE 72 END
----
-72

onlyif mysql # DIV for integer division: 
query II rowsort label-6471
SELECT DISTINCT - 23 DIV + 49 * - + 52, - 0 AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-6471
SELECT DISTINCT - 23 / + 49 * - + 52, - 0 AS col0
----
0
0

query I rowsort
SELECT ( 71 ) * 12 AS col1
----
852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6473
SELECT - 63 * - CAST( 86 AS SIGNED )
----
5418

skipif mysql # not compatible
query I rowsort label-6473
SELECT - 63 * - CAST ( 86 AS INTEGER )
----
5418

query I rowsort
SELECT 54 * 23 - - - 95
----
1147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6475
SELECT + 11 * - CAST( - + 50 AS SIGNED ) * - - 91 col1
----
50050

skipif mysql # not compatible
query I rowsort label-6475
SELECT + 11 * - CAST ( - + 50 AS INTEGER ) * - - 91 col1
----
50050

query I rowsort
SELECT - 38 * - + 66 + 17 - + 27 + + - 92 AS col2
----
2406

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

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

query I rowsort
SELECT DISTINCT - + 71 * + 71
----
-5041

query I rowsort
SELECT ALL + 24 + ( + + ( - - 40 ) )
----
64

query I rowsort
SELECT ALL - NULLIF ( - 91, 22 ) + 65 * 84 * 57 AS col0
----
311311

query I rowsort
SELECT - CASE 13 WHEN + 96 THEN 51 WHEN + - 70 + NULLIF ( + 12, 75 ) THEN NULL ELSE NULL END + + 69 + - 35
----
NULL

query I rowsort
SELECT DISTINCT - - 4 + + 26 - + 59
----
-29

query I rowsort
SELECT 40 + 63
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6484
SELECT - + COUNT( + 26 ), COALESCE ( - 36, + 87 + + CAST( NULL AS SIGNED ) + - - 19 ) AS col2
----
-1
-36

skipif mysql # not compatible
query II rowsort label-6484
SELECT - + COUNT ( + 26 ), COALESCE ( - 36, + 87 + + CAST ( NULL AS INTEGER ) + - - 19 ) AS col2
----
-1
-36

query I rowsort
SELECT ALL - - 29 + 64 + - - NULLIF ( + 14, + - 50 * - + ( - 46 ) + - 70 * 28 * - 95 * - 47 ) + - - 76
----
183

query I rowsort
SELECT + NULLIF ( + 51, - ( 20 ) * + 36 ) * + 3 * - ( COALESCE ( 52, - + ( 24 ) * - 68 ) ) * + 50 col2
----
-397800

query I rowsort
SELECT DISTINCT + 50 + 54 AS col1
----
104

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6489
SELECT 9 + + COALESCE ( + 61, + + COALESCE ( 6, 43 * - 22 * - - 68 * COUNT( ALL 64 ) + - + 51, COUNT( * ) DIV - - 25 * + 47 ) ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6489
SELECT 9 + + COALESCE ( + 61, + + COALESCE ( 6, 43 * - 22 * - - 68 * COUNT ( ALL 64 ) + - + 51, COUNT ( * ) / - - 25 * + 47 ) ) AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6490
SELECT DISTINCT - 59 DIV - COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT - 59 / - COUNT ( * ) AS col1
----
59

query I rowsort
SELECT DISTINCT - COALESCE ( + 62, - 22 * + 44 ) + - 83
----
-145

query I rowsort
SELECT ALL 88 * - + 81
----
-7128

query I rowsort
SELECT ALL + 98 - + 17 col2
----
81

query I rowsort
SELECT 47 * ( + 15 )
----
705

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT 53 - - - 14 + + - 54 + SUM( DISTINCT - ( 33 ) ) * - 70
----
2295

skipif mysql # not compatible
query I rowsort label-6495
SELECT 53 - - - 14 + + - 54 + SUM ( DISTINCT - ( 33 ) ) * - 70
----
2295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6496
SELECT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) / + 72 / + - COUNT( * ), - COALESCE ( + 5, + 12 * + 22 ) + 97 AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-6496
SELECT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) / + 72 / + - COUNT ( * ), - COALESCE ( + 5, + 12 * + 22 ) + 97 AS col0
----
NULL
92

query I rowsort
SELECT 63 + + + 61
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6498
SELECT 98 * - 57 * + - 29 DIV - - COUNT( * ) AS col2, - COUNT( * ) DIV 64
----
161994
0

skipif mysql # not compatible
query II rowsort label-6498
SELECT 98 * - 57 * + - 29 / - - COUNT ( * ) AS col2, - COUNT ( * ) / 64
----
161994
0

query I rowsort
SELECT ALL + 72 * - 42
----
-3024

query II rowsort
SELECT + 73 AS col0, - 43 + + + 5 * + 86
----
73
387

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6504
SELECT COUNT ( * ) + - + 26 AS col0
----
-25

query I rowsort
SELECT + 70 - - + 49
----
119

query I rowsort
SELECT ALL ( - 57 ) * - - 8 * 89 - - 2 AS col1
----
-40582

query I rowsort
SELECT 39 * - 62 - 48 * + + 16 + + 99 AS col1
----
-3087

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT + 10 * 56 + 21 + - - COUNT( * ) AS col2
----
582

skipif mysql # not compatible
query I rowsort label-6508
SELECT + 10 * 56 + 21 + - - COUNT ( * ) AS col2
----
582

onlyif mysql # aggregate syntax: 
query II rowsort label-6509
SELECT ALL 83 + - MIN( - 91 ), 51 + - 72 col1
----
174
-21

skipif mysql # not compatible
query II rowsort label-6509
SELECT ALL 83 + - MIN ( - 91 ), 51 + - 72 col1
----
174
-21

query I rowsort
SELECT DISTINCT + 95 + - 97 AS col2
----
-2

query I rowsort
SELECT ALL ( + 47 ) * + + 89
----
4183

query I rowsort
SELECT + 45 * 47 * + 94 * + - 88 * + - 44 + - 21 AS col0
----
769792299

query I rowsort
SELECT 78 + 29 * - 58 AS col0
----
-1604

query I rowsort
SELECT ALL + 45 + - 10 AS col0
----
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT ALL - COUNT( + 39 ) + - 42 col2
----
-43

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL - COUNT ( + 39 ) + - 42 col2
----
-43

query I rowsort
SELECT + 93 * - 41 + + 43 + - 15 * + 1 + - 1 AS col2
----
-3786

query I rowsort
SELECT ALL + ( - 27 ) * 55 * + 10 + - 9 AS col0
----
-14859

query II rowsort
SELECT - 43 AS col2, 63 + 64
----
-43
127

query I rowsort
SELECT ALL + 52 + + 79 col1
----
131

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

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

query I rowsort
SELECT ALL - ( + - 32 ) * - + 79
----
-2528

onlyif mysql # DIV for integer division: 
query I rowsort label-6523
SELECT - - 24 - - 58 * 66 DIV - 38
----
-76

skipif mysql # not compatible
query I rowsort label-6523
SELECT - - 24 - - 58 * 66 / - 38
----
-76

query II rowsort
SELECT - - 26 AS col0, + 63 AS col2
----
26
63

query I rowsort
SELECT ALL + 3 * - - 58 col1
----
174

query I rowsort
SELECT - NULLIF ( 8, + 95 )
----
-8

query I rowsort
SELECT + 59 + - 72 + 43 * - 99 AS col2
----
-4270

query I rowsort
SELECT - 64 - + 12 AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6529
SELECT - COUNT( * ) + 65 + - CAST( + 84 AS SIGNED ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6529
SELECT - COUNT ( * ) + 65 + - CAST ( + 84 AS INTEGER ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT - ( COUNT( * ) ) - - 90
----
89

skipif mysql # not compatible
query I rowsort label-6530
SELECT - ( COUNT ( * ) ) - - 90
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT ALL CASE + ( - 22 ) WHEN + 12 * - - 11 THEN - MIN( DISTINCT - 36 ) WHEN + + ( - ( 48 ) ) + + - 1 THEN 61 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL CASE + ( - 22 ) WHEN + 12 * - - 11 THEN - MIN ( DISTINCT - 36 ) WHEN + + ( - ( 48 ) ) + + - 1 THEN 61 END AS col1
----
NULL

query II rowsort
SELECT - 11 + - 16, 72 AS col0
----
-27
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6533
SELECT - CASE 99 WHEN - CAST( + - 45 AS SIGNED ) THEN NULL ELSE + 11 END * NULLIF ( - - 57, - ( CASE - 57 WHEN - ( 19 ) / + - 33 * - 72 + 63 + + 30 THEN 90 WHEN COALESCE ( 43, 92 * + 51 + + 76 ) THEN ( 22 ) ELSE NULL END ) ) AS col1
----
-627

skipif mysql # not compatible
query I rowsort label-6533
SELECT - CASE 99 WHEN - CAST ( + - 45 AS INTEGER ) THEN NULL ELSE + 11 END * NULLIF ( - - 57, - ( CASE - 57 WHEN - ( 19 ) / + - 33 * - 72 + 63 + + 30 THEN 90 WHEN COALESCE ( 43, 92 * + 51 + + 76 ) THEN ( 22 ) ELSE NULL END ) ) AS col1
----
-627

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6534
SELECT ALL + NULLIF ( + CASE 39 WHEN - + 63 THEN - + 4 WHEN + CASE - - 46 WHEN - 54 * + 22 THEN NULL WHEN - + 94 - 85 THEN - + 23 * - + 33 ELSE NULL END THEN NULL WHEN + - 94 * - 79 + - 65 THEN CAST( NULL AS DECIMAL ) / 37 + COUNT( * ) + CASE - 55 WHEN - 55 THEN NULL WHEN - 42 THEN NULL ELSE - 32 END ELSE NULL END, 60 ) * - 93 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL + NULLIF ( + CASE 39 WHEN - + 63 THEN - + 4 WHEN + CASE - - 46 WHEN - 54 * + 22 THEN NULL WHEN - + 94 - 85 THEN - + 23 * - + 33 ELSE NULL END THEN NULL WHEN + - 94 * - 79 + - 65 THEN CAST ( NULL AS REAL ) / 37 + COUNT ( * ) + CASE - 55 WHEN - 55 THEN NULL WHEN - 42 THEN NULL ELSE - 32 END ELSE NULL END, 60 ) * - 93 col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6535
SELECT ALL + 50 DIV - 88 AS col0, ( - 80 )
----
0
-80

skipif mysql # not compatible
query II rowsort label-6535
SELECT ALL + 50 / - 88 AS col0, ( - 80 )
----
0
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6536
SELECT ALL + 41 * + ( + + COUNT( * ) ) * - CASE + 23 WHEN - + 57 * - - SUM( ALL + 65 ) THEN - CAST( + + 91 AS SIGNED ) + - 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL + 41 * + ( + + COUNT ( * ) ) * - CASE + 23 WHEN - + 57 * - - SUM ( ALL + 65 ) THEN - CAST ( + + 91 AS INTEGER ) + - 79 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6537
SELECT ( + COALESCE ( SUM( + 30 ), + 84, NULLIF ( + CAST( 19 AS SIGNED ), + + 79 DIV 50 ) DIV + - 4 + COUNT( - 15 ) * + 19 ) ) col1
----
30

skipif mysql # not compatible
query I rowsort label-6537
SELECT ( + COALESCE ( SUM ( + 30 ), + 84, NULLIF ( + CAST ( 19 AS INTEGER ), + + 79 / 50 ) / + - 4 + COUNT ( - 15 ) * + 19 ) ) col1
----
30

query I rowsort
SELECT 14 * - NULLIF ( ( - 73 ), 97 ) + 49
----
1071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6539
SELECT DISTINCT + COALESCE ( - COALESCE ( 81, + + 65 DIV - COUNT( ALL + 85 ) + + + 65 * 8 * MAX( ALL - 25 ) ), + 88 DIV COUNT( * ) ) * - CASE SUM( ALL 80 ) WHEN 40 THEN CASE COUNT( ALL - 73 ) WHEN - 30 * + 93 THEN 59 - 4 ELSE + NULLIF ( - 75, 99 * COALESCE ( - COUNT( 86 ), - 91 ) ) + 7 END WHEN + CASE COUNT( * ) WHEN - 59 * + 52 + CAST( NULL AS SIGNED ) THEN - 15 - 57 WHEN + 66 * + 23 THEN + ( - 6 ) END * 25 THEN NULL ELSE ( 22 ) + - 93 END
----
-5751

skipif mysql # not compatible
query I rowsort label-6539
SELECT DISTINCT + COALESCE ( - COALESCE ( 81, + + 65 / - COUNT ( ALL + 85 ) + + + 65 * 8 * MAX ( ALL - 25 ) ), + 88 / COUNT ( * ) ) * - CASE SUM ( ALL 80 ) WHEN 40 THEN CASE COUNT ( ALL - 73 ) WHEN - 30 * + 93 THEN 59 - 4 ELSE + NULLIF ( - 75, 99 * COALESCE ( - COUNT ( 86 ), - 91 ) ) + 7 END WHEN + CASE COUNT ( * ) WHEN - 59 * + 52 + CAST ( NULL AS INTEGER ) THEN - 15 - 57 WHEN + 66 * + 23 THEN + ( - 6 ) END * 25 THEN NULL ELSE ( 22 ) + - 93 END
----
-5751

onlyif mysql # DIV for integer division: 
query I rowsort label-6540
SELECT + 9 DIV + - COALESCE ( 98, + 43 + - 42 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6540
SELECT + 9 / + - COALESCE ( 98, + 43 + - 42 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT - 98 * + + 33 + + COUNT( * ) AS col2
----
-3233

skipif mysql # not compatible
query I rowsort label-6541
SELECT - 98 * + + 33 + + COUNT ( * ) AS col2
----
-3233

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6542
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * + + ( + 64 ) * + 79 + MAX( ALL - + 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT + + CAST ( NULL AS REAL ) * + + ( + 64 ) * + 79 + MAX ( ALL - + 12 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6543
SELECT DISTINCT - 96 * + 61 * MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * + 43 + - 30 + + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT - 96 * + 61 * MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 43 + - 30 + + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6544
SELECT ALL + + COUNT( * ) * + 35 DIV 1 + 6 * + ( SUM( + - 18 ) ) col1
----
-73

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL + + COUNT ( * ) * + 35 / 1 + 6 * + ( SUM ( + - 18 ) ) col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT MAX( - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-6545
SELECT MAX ( - 65 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6546
SELECT DISTINCT + - 49 * + 36 + COUNT( * ) + - COUNT( * ) + - - CAST( NULL AS SIGNED ) + - - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT DISTINCT + - 49 * + 36 + COUNT ( * ) + - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + - - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT - - COUNT( * ) * - 87 + - COUNT( * ) * 65 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-6547
SELECT - - COUNT ( * ) * - 87 + - COUNT ( * ) * 65 AS col1
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT DISTINCT + 67 * + MIN( - + 50 ) * + COUNT( * ) * + - 66 + + 89 * - ( + MIN( + 33 ) ) + + + 77
----
218240

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT + 67 * + MIN ( - + 50 ) * + COUNT ( * ) * + - 66 + + 89 * - ( + MIN ( + 33 ) ) + + + 77
----
218240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6549
SELECT ALL - 31 * - COALESCE ( - 27, 88 - + + 5 * - + ( + - CAST( - + 15 AS SIGNED ) ) ) * 28 + - 5 + COUNT( * ) + + 40 + MIN( 83 ) AS col0, 18 AS col0
----
-23317
18

skipif mysql # not compatible
query II rowsort label-6549
SELECT ALL - 31 * - COALESCE ( - 27, 88 - + + 5 * - + ( + - CAST ( - + 15 AS INTEGER ) ) ) * 28 + - 5 + COUNT ( * ) + + 40 + MIN ( 83 ) AS col0, 18 AS col0
----
-23317
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6550
SELECT ALL - COUNT( * ) * COALESCE ( ( + 88 ), + - COUNT( * ) DIV + 82 * + COUNT( * ) ) + + 7 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL - COUNT ( * ) * COALESCE ( ( + 88 ), + - COUNT ( * ) / + 82 * + COUNT ( * ) ) + + 7 AS col0
----
-81

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

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

query I rowsort
SELECT + - 70 * + + 41 + + 3 col1
----
-2867

query I rowsort
SELECT ALL - NULLIF ( + 30, + 66 )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6554
SELECT ALL 82 * COUNT( * ) - 13 AS col2, + 5 + 16 AS col1
----
69
21

skipif mysql # not compatible
query II rowsort label-6554
SELECT ALL 82 * COUNT ( * ) - 13 AS col2, + 5 + 16 AS col1
----
69
21

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

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

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

skipif mysql # not compatible
query I rowsort label-6556
SELECT MIN ( DISTINCT 30 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6557
SELECT + 18 DIV - 19
----
0

skipif mysql # not compatible
query I rowsort label-6557
SELECT + 18 / - 19
----
0

query I rowsort
SELECT + 35 * NULLIF ( - 16, + + 27 * + + 3 )
----
-560

onlyif mysql # DIV for integer division: 
query I rowsort label-6559
SELECT - 41 + - ( 35 ) * + 67 - - 61 DIV - 99
----
-2386

skipif mysql # not compatible
query I rowsort label-6559
SELECT - 41 + - ( 35 ) * + 67 - - 61 / - 99
----
-2386

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT - 0 * - MAX( - 63 )
----
0

skipif mysql # not compatible
query I rowsort label-6560
SELECT - 0 * - MAX ( - 63 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT ALL MAX( - 77 ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL MAX ( - 77 ) col0
----
-77

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

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

query II rowsort
SELECT ALL COALESCE ( - 58, 28 ) col1, 79 AS col1
----
-58
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL MAX( DISTINCT 78 )
----
78

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL MAX ( DISTINCT 78 )
----
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT DISTINCT COUNT( * ) + 79 + - 4 * MIN( + + 31 ) * - - COUNT( * ) + + + 40
----
-4

skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT COUNT ( * ) + 79 + - 4 * MIN ( + + 31 ) * - - COUNT ( * ) + + + 40
----
-4

query I rowsort
SELECT ALL 63 + 69 AS col0
----
132

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

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

query II rowsort
SELECT 83 AS col0, + 38 col2
----
83
38

query I rowsort
SELECT - 34 * - 42
----
1428

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6572
SELECT ALL 55 DIV + NULLIF ( - 93, + 42 + - 19 ) + - - 23 * - NULLIF ( 93, 23 * ( + COUNT( * ) ) )
----
-2139

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL 55 / + NULLIF ( - 93, + 42 + - 19 ) + - - 23 * - NULLIF ( 93, 23 * ( + COUNT ( * ) ) )
----
-2139

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT ALL + NULLIF ( + MIN( - 99 ), + 85 )
----
-99

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL + NULLIF ( + MIN ( - 99 ), + 85 )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6574
SELECT ALL + 6 DIV - 87 + COUNT( * ) + 35 DIV SUM( - 64 ) * + 87 - ( + ( ( - 43 ) ) ) DIV 79 col0
----
1

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL + 6 / - 87 + COUNT ( * ) + 35 / SUM ( - 64 ) * + 87 - ( + ( ( - 43 ) ) ) / 79 col0
----
1

query I rowsort
SELECT - + 1 - - 44 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT DISTINCT + COUNT( + 70 ) + - 27 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT + COUNT ( + 70 ) + - 27 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT ALL - - 14 * COUNT( + - 29 ) * - + 96 AS col1
----
-1344

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL - - 14 * COUNT ( + - 29 ) * - + 96 AS col1
----
-1344

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT - - 34 * + + 46 * COUNT( * ) + + + SUM( NULLIF ( + - 59, + + 59 ) )
----
1505

skipif mysql # not compatible
query I rowsort label-6579
SELECT - - 34 * + + 46 * COUNT ( * ) + + + SUM ( NULLIF ( + - 59, + + 59 ) )
----
1505

query I rowsort
SELECT ALL + - 35 + - + 96 AS col1
----
-131

query I rowsort
SELECT 94 + - 77 * + 15 * + 22
----
-25316

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6584
SELECT 84 - - 41 * - ( 97 ) DIV - ( + + COUNT( 22 ) ) + - 94 AS col0
----
3967

skipif mysql # not compatible
query I rowsort label-6584
SELECT 84 - - 41 * - ( 97 ) / - ( + + COUNT ( 22 ) ) + - 94 AS col0
----
3967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6585
SELECT + 64 * - COALESCE ( + 19, - - 91 / + 54 ) + - 80 + + CAST( NULL AS SIGNED ) + COUNT( * ) * + 64 * + 35 * + COALESCE ( + COUNT( * ), 53 / - 23 + 26, 54 ) * 16 * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6585
SELECT + 64 * - COALESCE ( + 19, - - 91 / + 54 ) + - 80 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) * + 64 * + 35 * + COALESCE ( + COUNT ( * ), 53 / - 23 + 26, 54 ) * 16 * 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT ALL - - 55 - + SUM( ALL 25 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL - - 55 - + SUM ( ALL 25 ) AS col2
----
30

query I rowsort
SELECT ALL - 30 - - - 22 * - 55 AS col2
----
1180

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT ALL - NULLIF ( - 10, - + COUNT( * ) + 56 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL - NULLIF ( - 10, - + COUNT ( * ) + 56 ) AS col0
----
10

query I rowsort
SELECT + 48 + 15
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6590
SELECT ALL - 97 AS col2, 33 DIV + - 79 * - + COUNT( * ) + - 83 * - 14 - - + SUM( - COALESCE ( - 72, 57 ) ) AS col2
----
-97
1234

skipif mysql # not compatible
query II rowsort label-6590
SELECT ALL - 97 AS col2, 33 / + - 79 * - + COUNT ( * ) + - 83 * - 14 - - + SUM ( - COALESCE ( - 72, 57 ) ) AS col2
----
-97
1234

onlyif mysql # DIV for integer division: 
query I rowsort label-6591
SELECT ALL - - COALESCE ( - 60, - 18 + + + 51, 17, - - 1 DIV 9 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL - - COALESCE ( - 60, - 18 + + + 51, 17, - - 1 / 9 ) AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6592
SELECT 43 * 6 + + MIN( ALL + 52 ) + - 48 * - 63 + + - COUNT( * ) * + ( + COUNT( * ) ) DIV - 78 * - 21 AS col1, + 54
----
3334
54

skipif mysql # not compatible
query II rowsort label-6592
SELECT 43 * 6 + + MIN ( ALL + 52 ) + - 48 * - 63 + + - COUNT ( * ) * + ( + COUNT ( * ) ) / - 78 * - 21 AS col1, + 54
----
3334
54

query I rowsort
SELECT 86 * + - 58 * + + 46 * - - 82
----
-18814736

query I rowsort
SELECT + - 18 * + 65 + - 51
----
-1221

onlyif mysql # aggregate syntax: 
query II rowsort label-6595
SELECT DISTINCT 71 * + 31 AS col1, + 42 - + ( - 47 ) * + ( + + COUNT( * ) ) * 42 - - 51 + - + MAX( 44 ) * 26 AS col0
----
2201
923

skipif mysql # not compatible
query II rowsort label-6595
SELECT DISTINCT 71 * + 31 AS col1, + 42 - + ( - 47 ) * + ( + + COUNT ( * ) ) * 42 - - 51 + - + MAX ( 44 ) * 26 AS col0
----
2201
923

query I rowsort
SELECT 63 + + 98 AS col1
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-6597
SELECT - 48 AS col2, SUM( DISTINCT - 43 )
----
-48
-43

skipif mysql # not compatible
query II rowsort label-6597
SELECT - 48 AS col2, SUM ( DISTINCT - 43 )
----
-48
-43

query II rowsort
SELECT 80 AS col2, - 58 AS col1
----
80
-58

query I rowsort
SELECT 72 + - 83
----
-11

query I rowsort
SELECT DISTINCT - 67 * 73
----
-4891

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT ALL 70 * + - MAX( DISTINCT - 97 )
----
6790

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL 70 * + - MAX ( DISTINCT - 97 )
----
6790

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT DISTINCT 29 + + NULLIF ( + 59, + + COUNT( * ) * - COALESCE ( - - 42, ( + - COUNT( * ) ) * - 99 ) + 6 ) * + 97
----
5752

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT 29 + + NULLIF ( + 59, + + COUNT ( * ) * - COALESCE ( - - 42, ( + - COUNT ( * ) ) * - 99 ) + 6 ) * + 97
----
5752

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT ALL 87 * COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL 87 * COUNT ( * ) AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6604
SELECT - 66 AS col0, 11 / - CAST( NULL AS SIGNED ) + 99
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-6604
SELECT - 66 AS col0, 11 / - CAST ( NULL AS INTEGER ) + 99
----
-66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT COALESCE ( + + 30, + COUNT( * ) * - 16 + + + COUNT( * ) ) + - 73 + COUNT( * ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6605
SELECT COALESCE ( + + 30, + COUNT ( * ) * - 16 + + + COUNT ( * ) ) + - 73 + COUNT ( * ) AS col0
----
-42

query I rowsort
SELECT 23 - + 5
----
18

query I rowsort
SELECT 33 + - 90 AS col1
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6608
SELECT ALL 10 + - 38 DIV 43 - 13 + + + SUM( ALL - 95 ) * + 80
----
-7603

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL 10 + - 38 / 43 - 13 + + + SUM ( ALL - 95 ) * + 80
----
-7603

onlyif mysql # DIV for integer division: 
query I rowsort label-6609
SELECT DISTINCT 21 DIV + 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT 21 / + 33 AS col2
----
0

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

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

query I rowsort
SELECT DISTINCT + 6 * + 81 col2
----
486

query I rowsort
SELECT DISTINCT + 8 + 92
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT ALL 72 + - 13 * + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL 72 + - 13 * + COUNT ( * )
----
59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6615
SELECT - 16 + + - CAST( NULL AS SIGNED ) - - - ( + + ( - ( + 0 ) ) ), + SUM( ALL + 86 ) AS col0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-6615
SELECT - 16 + + - CAST ( NULL AS INTEGER ) - - - ( + + ( - ( + 0 ) ) ), + SUM ( ALL + 86 ) AS col0
----
NULL
86

query I rowsort
SELECT + 55 * + + 5 + - 70 AS col1
----
205

query I rowsort
SELECT DISTINCT + 58 * + - ( + + 45 ) AS col1
----
-2610

query II rowsort
SELECT + 16 col2, + 88
----
16
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT + 3 * - MIN( ALL - 59 ) + - 99 + 34 / - 21 + ( CASE + COUNT( * ) WHEN 15 THEN NULL WHEN COUNT( * ) + 16 THEN 77 WHEN - + ( - COUNT( * ) ) THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6620
SELECT + 3 * - MIN ( ALL - 59 ) + - 99 + 34 / - 21 + ( CASE + COUNT ( * ) WHEN 15 THEN NULL WHEN COUNT ( * ) + 16 THEN 77 WHEN - + ( - COUNT ( * ) ) THEN NULL END ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + 34 - 86 + + + 91 * 17 + 29 + - 57 + 42 * - 45
----
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT ALL - + SUM( + ( 6 ) ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL - + SUM ( + ( 6 ) ) col0
----
-6

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

skipif mysql # not compatible
query I rowsort label-6624
SELECT 32 / 28
----
1

query I rowsort
SELECT ALL - 42 * + + ( - 98 )
----
4116

query I rowsort
SELECT ALL - 98 * 19
----
-1862

onlyif mysql # DIV for integer division: 
query I rowsort label-6627
SELECT 11 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-6627
SELECT 11 / + 72
----
0

query I rowsort
SELECT ALL - 82 * 73
----
-5986

onlyif mysql # aggregate syntax: 
query II rowsort label-6629
SELECT ( - SUM( + + 62 ) ) * + + 48 AS col0, - 39 + ( + CASE - 39 WHEN + CASE + 46 WHEN - 13 THEN + + ( + + COUNT( - 94 ) ) ELSE NULL END THEN NULL ELSE - - 96 * 44 - + 80 - - - 84 END ) AS col1
----
-2976
4021

skipif mysql # not compatible
query II rowsort label-6629
SELECT ( - SUM ( + + 62 ) ) * + + 48 AS col0, - 39 + ( + CASE - 39 WHEN + CASE + 46 WHEN - 13 THEN + + ( + + COUNT ( - 94 ) ) ELSE NULL END THEN NULL ELSE - - 96 * 44 - + 80 - - - 84 END ) AS col1
----
-2976
4021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6630
SELECT ALL + - 15 * + AVG ( - + 4 ) * - 82 + COUNT( + 57 ) + NULLIF ( - COUNT( DISTINCT + + 62 ), - - 21 * + 2 / 12 + - NULLIF ( + SUM( - - 0 ), - - 90 - - 44 ) + + 33 - + 43 ) * ( + 29 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL + - 15 * + AVG ( - + 4 ) * - 82 + COUNT ( + 57 ) + NULLIF ( - COUNT ( DISTINCT + + 62 ), - - 21 * + 2 / 12 + - NULLIF ( + SUM ( - - 0 ), - - 90 - - 44 ) + + 33 - + 43 ) * ( + 29 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + - 28, - 29, + - 47 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL COUNT( 12 ) + + + ( + 78 ) col1
----
79

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL COUNT ( 12 ) + + + ( + 78 ) col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-6633
SELECT ALL + COUNT( * ) + COUNT( * ), + 31 + - 8 col1
----
2
23

skipif mysql # not compatible
query II rowsort label-6633
SELECT ALL + COUNT ( * ) + COUNT ( * ), + 31 + - 8 col1
----
2
23

query II rowsort
SELECT 7 * + - 95, 98 AS col2
----
-665
98

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

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

query II rowsort
SELECT ALL + 82 + + - 2 AS col1, - 67
----
80
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6637
SELECT ALL 16 * COUNT( * ) AS col1, + 0 AS col0
----
16
0

skipif mysql # not compatible
query II rowsort label-6637
SELECT ALL 16 * COUNT ( * ) AS col1, + 0 AS col0
----
16
0

query I rowsort
SELECT 97 * 38 * + - 54 AS col2
----
-199044

query II rowsort
SELECT 33 + 5 col0, - 94 * ( - 25 ) * 59
----
38
138650

query II rowsort
SELECT ALL 34 + + 91, CASE + 20 WHEN - 55 THEN NULL WHEN - 52 THEN + 40 * - + 10 + + 39 + 14 * + 87 + 19 * + 76 END AS col2
----
125
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6641
SELECT ALL ( - - 79 ) + - - 91 + - 90 DIV - + 15 + + COUNT( * ) AS col1
----
177

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL ( - - 79 ) + - - 91 + - 90 / - + 15 + + COUNT ( * ) AS col1
----
177

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT - MAX( DISTINCT - 82 )
----
82

skipif mysql # not compatible
query I rowsort label-6643
SELECT - MAX ( DISTINCT - 82 )
----
82

query I rowsort
SELECT DISTINCT - 1 * - 31 col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT ALL ( + COUNT( DISTINCT - - 71 ) ) - + 21 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL ( + COUNT ( DISTINCT - - 71 ) ) - + 21 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6646
SELECT ALL COUNT( * ) * - - 21, + 2 AS col1
----
21
2

skipif mysql # not compatible
query II rowsort label-6646
SELECT ALL COUNT ( * ) * - - 21, + 2 AS col1
----
21
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT - - MIN( 98 ) - + - CASE - + ( + AVG ( DISTINCT - 20 ) ) WHEN 62 THEN COUNT( 4 ) WHEN + 16 THEN NULL ELSE + 40 + + - COUNT( * ) - + + 87 - - 23 * 7 END AS col2
----
211

skipif mysql # not compatible
query I rowsort label-6647
SELECT - - MIN ( 98 ) - + - CASE - + ( + AVG ( DISTINCT - 20 ) ) WHEN 62 THEN COUNT ( 4 ) WHEN + 16 THEN NULL ELSE + 40 + + - COUNT ( * ) - + + 87 - - 23 * 7 END AS col2
----
211

onlyif mysql # aggregate syntax: 
query II rowsort label-6648
SELECT - MIN( + 40 ) AS col2, - 82 AS col2
----
-40
-82

skipif mysql # not compatible
query II rowsort label-6648
SELECT - MIN ( + 40 ) AS col2, - 82 AS col2
----
-40
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT + - 60 * - 38 + 2 + MAX( - 12 )
----
2270

skipif mysql # not compatible
query I rowsort label-6649
SELECT + - 60 * - 38 + 2 + MAX ( - 12 )
----
2270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6650
SELECT + - COALESCE ( + COALESCE ( - COALESCE ( - 23, - CAST( - 85 AS SIGNED ) ), - 98 ), - - COALESCE ( 20, - ( + - 0 ) + 77 ) * + 60 + - 87 + - SUM( ALL 80 ) + 87 * 26, 96 * + 67 - + 95 ) + + - 17 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-6650
SELECT + - COALESCE ( + COALESCE ( - COALESCE ( - 23, - CAST ( - 85 AS INTEGER ) ), - 98 ), - - COALESCE ( 20, - ( + - 0 ) + 77 ) * + 60 + - 87 + - SUM ( ALL 80 ) + 87 * 26, 96 * + 67 - + 95 ) + + - 17 AS col1
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6651
SELECT ALL COUNT( * ) DIV - 58 + + 90
----
90

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL COUNT ( * ) / - 58 + + 90
----
90

query I rowsort
SELECT + 75 * 41
----
3075

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

query I rowsort
SELECT + 89 * + - 36
----
-3204

onlyif mysql # DIV for integer division: 
query I rowsort label-6655
SELECT ALL 63 DIV + 30 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL 63 / + 30 AS col2
----
2

query I rowsort
SELECT ALL + CASE + 31 WHEN - 9 * - - 49 + 64 * 19 THEN 49 ELSE + ( + 84 ) END col2
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6657
SELECT ALL - - 92 * + - 86 AS col1, - COUNT( * ) + - + COUNT( * ) AS col0
----
-7912
-2

skipif mysql # not compatible
query II rowsort label-6657
SELECT ALL - - 92 * + - 86 AS col1, - COUNT ( * ) + - + COUNT ( * ) AS col0
----
-7912
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT + - 91 * - COUNT( * ) * COUNT( * ) * 95 * + MAX( ALL - 90 ) AS col2
----
-778050

skipif mysql # not compatible
query I rowsort label-6658
SELECT + - 91 * - COUNT ( * ) * COUNT ( * ) * 95 * + MAX ( ALL - 90 ) AS col2
----
-778050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6659
SELECT + - MIN( + CAST( NULL AS SIGNED ) ) * + 4 + + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT + - MIN ( + CAST ( NULL AS INTEGER ) ) * + 4 + + 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT + CASE - 93 WHEN + + 28 * - ( - 73 ) THEN + + COUNT( * ) + + - 13 WHEN + 88 THEN + 63 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6660
SELECT + CASE - 93 WHEN + + 28 * - ( - 73 ) THEN + + COUNT ( * ) + + - 13 WHEN + 88 THEN + 63 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT ALL - 52 * - COUNT( * ) * + 38 * + 47 AS col0
----
92872

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL - 52 * - COUNT ( * ) * + 38 * + 47 AS col0
----
92872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6662
SELECT + - 47 + + + 68 + - COUNT( * ) * - 45 DIV - 53 * 67 * + 27
----
21

skipif mysql # not compatible
query I rowsort label-6662
SELECT + - 47 + + + 68 + - COUNT ( * ) * - 45 / - 53 * 67 * + 27
----
21

query I rowsort
SELECT + + 67 * - COALESCE ( - 10, - 51 + 5 ) + + 95 + + 50 + + + 49
----
864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6664
SELECT DISTINCT - 8 * 42 * + COALESCE ( + 90, + 44, COUNT( - 36 ) * - + 37 + - + 16 ) + - CAST( - 6 AS SIGNED )
----
-30234

skipif mysql # not compatible
query I rowsort label-6664
SELECT DISTINCT - 8 * 42 * + COALESCE ( + 90, + 44, COUNT ( - 36 ) * - + 37 + - + 16 ) + - CAST ( - 6 AS INTEGER )
----
-30234

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

query I rowsort
SELECT DISTINCT 82 * ( - 25 ) * + 3 + + + 45 AS col1
----
-6105

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT ALL + COUNT( * ) * + ( CASE - 2 WHEN + COUNT( * ) THEN - 68 ELSE - CASE 55 WHEN - 50 * + 62 + 34 + - 78 THEN - 70 - - MIN( DISTINCT 54 ) + + - 24 - 69 / - - COUNT( * ) END END ) * - - 72 * ( + ( + 90 ) ) + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL + COUNT ( * ) * + ( CASE - 2 WHEN + COUNT ( * ) THEN - 68 ELSE - CASE 55 WHEN - 50 * + 62 + 34 + - 78 THEN - 70 - - MIN ( DISTINCT 54 ) + + - 24 - 69 / - - COUNT ( * ) END END ) * - - 72 * ( + ( + 90 ) ) + + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT DISTINCT - COUNT( ALL + 51 ) * 97 + 43 * - 13 + + 59 + 52
----
-545

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT - COUNT ( ALL + 51 ) * 97 + 43 * - 13 + + 59 + 52
----
-545

query I rowsort
SELECT - 41 + - 85
----
-126

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT COUNT( * ) * + 55 + - 0 + + 35 * + - 71 * - + 5 + - + 38 + - 90 AS col2
----
12352

skipif mysql # not compatible
query I rowsort label-6672
SELECT COUNT ( * ) * + 55 + - 0 + + 35 * + - 71 * - + 5 + - + 38 + - 90 AS col2
----
12352

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT - ( MIN( ALL - 55 ) ) + + COUNT( * ) - + 34 col0
----
22

skipif mysql # not compatible
query I rowsort label-6673
SELECT - ( MIN ( ALL - 55 ) ) + + COUNT ( * ) - + 34 col0
----
22

query I rowsort
SELECT DISTINCT + 78 + 94 AS col2
----
172

query I rowsort
SELECT - 98 + + 45
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL ( COUNT( ALL + 69 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL ( COUNT ( ALL + 69 ) ) col2
----
1

query I rowsort
SELECT - 75 * 50
----
-3750

query I rowsort
SELECT DISTINCT - 33 - + 74 AS col2
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6679
SELECT - 68 + - + CAST( + COUNT( * ) AS SIGNED ) * + - 87 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6679
SELECT - 68 + - + CAST ( + COUNT ( * ) AS INTEGER ) * + - 87 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ALL - COALESCE ( 89, - 96, - 79, MAX( - 17 ) + + 23 ) - + - 54 + 58 + + 22
----
45

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL - COALESCE ( 89, - 96, - 79, MAX ( - 17 ) + + 23 ) - + - 54 + 58 + + 22
----
45

query I rowsort
SELECT DISTINCT ( + - 22 ) col1
----
-22

query I rowsort
SELECT - 56 + + + 75
----
19

query I rowsort
SELECT - 15 * + 70
----
-1050

query I rowsort
SELECT + 21 + - 57
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6685
SELECT - 37 + + + MIN( DISTINCT + 87 ) col0, - 88 col0
----
50
-88

skipif mysql # not compatible
query II rowsort label-6685
SELECT - 37 + + + MIN ( DISTINCT + 87 ) col0, - 88 col0
----
50
-88

query I rowsort
SELECT + 7 + + - 37 col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT - + CASE + 16 WHEN - + 16 + - 96 THEN NULL WHEN 93 * COUNT( * ) + 7 THEN CASE - - 25 WHEN + 53 * + 97 * - 27 + 38 + - 45 + + - 80 * + 31 * + + 24 THEN - COUNT( * ) + - 19 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT - + CASE + 16 WHEN - + 16 + - 96 THEN NULL WHEN 93 * COUNT ( * ) + 7 THEN CASE - - 25 WHEN + 53 * + 97 * - 27 + 38 + - 45 + + - 80 * + 31 * + + 24 THEN - COUNT ( * ) + - 19 END END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6688
SELECT DISTINCT - - 78 * - CASE + 33 WHEN + - CAST( NULL AS DECIMAL ) * MIN( 34 ) THEN 23 WHEN + - 93 THEN NULL WHEN - - 83 THEN NULL WHEN + 49 THEN 86 + 42 + + 76 * + 83 * ( CASE + AVG ( ALL + 5 ) WHEN CAST( 46 AS SIGNED ) * + 1 - - + COUNT( * ) THEN - 82 / - 25 + - 52 END ) END * 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT - - 78 * - CASE + 33 WHEN + - CAST ( NULL AS REAL ) * MIN ( 34 ) THEN 23 WHEN + - 93 THEN NULL WHEN - - 83 THEN NULL WHEN + 49 THEN 86 + 42 + + 76 * + 83 * ( CASE + AVG ( ALL + 5 ) WHEN CAST ( 46 AS INTEGER ) * + 1 - - + COUNT ( * ) THEN - 82 / - 25 + - 52 END ) END * 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6689
SELECT 23, + 93 DIV - MIN( ALL 33 ) AS col2
----
23
-2

skipif mysql # not compatible
query II rowsort label-6689
SELECT 23, + 93 / - MIN ( ALL 33 ) AS col2
----
23
-2

query II rowsort
SELECT ALL + 36, + 79 * ( + + 30 ) AS col0
----
36
2370

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT - + 86 * COUNT( * ) * - - 2 + - 95 + COUNT( * ) * + + NULLIF ( - + 21, + + MIN( DISTINCT - + 78 ) ) AS col0
----
-288

skipif mysql # not compatible
query I rowsort label-6691
SELECT - + 86 * COUNT ( * ) * - - 2 + - 95 + COUNT ( * ) * + + NULLIF ( - + 21, + + MIN ( DISTINCT - + 78 ) ) AS col0
----
-288

query I rowsort
SELECT DISTINCT + 75 * - 85
----
-6375

query I rowsort
SELECT + + 37 + + 90 + - 95
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT ALL + + 36 * + 29 + + 33 * - CASE + 7 WHEN NULLIF ( 60, - 36 - + + 62 + + 54 ) * 68 / - 29 + 99 THEN 18 + 52 * + NULLIF ( COUNT( * ), + + 13 + + MIN( - 80 ) + - 4 * + 8 / + 66 - + 62 * 90 ) - 42 * 12 END + - 95 * - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL + + 36 * + 29 + + 33 * - CASE + 7 WHEN NULLIF ( 60, - 36 - + + 62 + + 54 ) * 68 / - 29 + 99 THEN 18 + 52 * + NULLIF ( COUNT ( * ), + + 13 + + MIN ( - 80 ) + - 4 * + 8 / + 66 - + 62 * 90 ) - 42 * 12 END + - 95 * - 16 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT - + 26 DIV + 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6695
SELECT - + 26 / + 47 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT + NULLIF ( - SUM( ALL 9 ), - + 31 + + - 83 + - 96 ) * - COALESCE ( 63, + + 61 * - + 50 )
----
567

skipif mysql # not compatible
query I rowsort label-6696
SELECT + NULLIF ( - SUM ( ALL 9 ), - + 31 + + - 83 + - 96 ) * - COALESCE ( 63, + + 61 * - + 50 )
----
567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6697
SELECT DISTINCT + CAST( NULL AS SIGNED ) * MIN( - 26 ) * 14 + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * MIN ( - 26 ) * 14 + 78
----
NULL

query I rowsort
SELECT DISTINCT + ( - 2 ) AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6699
SELECT DISTINCT COUNT( * ) DIV - 41 + - 62 * - 31 * 37 * 4 * + 56 * 64 AS col1
----
1019490304

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT COUNT ( * ) / - 41 + - 62 * - 31 * 37 * 4 * + 56 * 64 AS col1
----
1019490304

query II rowsort
SELECT DISTINCT + 90, 24 AS col1
----
90
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6701
SELECT DISTINCT + 5 DIV - ( 39 ) * + + 56 + + + 64 * - 0 + - - COUNT( + 3 ) + + + 64 * + + 22 + - 15 AS col1
----
1394

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT + 5 / - ( 39 ) * + + 56 + + + 64 * - 0 + - - COUNT ( + 3 ) + + + 64 * + + 22 + - 15 AS col1
----
1394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6702
SELECT CAST( ( 14 ) AS SIGNED ) * - - 37 + - COUNT( ALL - CAST( NULL AS SIGNED ) )
----
518

skipif mysql # not compatible
query I rowsort label-6702
SELECT CAST ( ( 14 ) AS INTEGER ) * - - 37 + - COUNT ( ALL - CAST ( NULL AS INTEGER ) )
----
518

query I rowsort
SELECT DISTINCT 6 * - 19
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6704
SELECT ALL COALESCE ( - COUNT( * ), + COUNT( * ), 21 ) DIV + 94 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL COALESCE ( - COUNT ( * ), + COUNT ( * ), 21 ) / + 94 + + COUNT ( * ) AS col0
----
1

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

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

query I rowsort
SELECT + COALESCE ( 40, + + 25 * + 33 ) * - 91 AS col1
----
-3640

query I rowsort
SELECT 27 * + 41 - - 56 * 99 * - 72 AS col2
----
-398061

query I rowsort
SELECT - 28 + + + 40 * - 36
----
-1468

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6711
SELECT ALL COUNT( * ) * - + 63 - + - 23 * + 62 + - ( 41 ) + ( + 37 ) + + + 21 * + + 16 * + + ( - + COUNT( * ) ) / + - 40 + - 65 - + COUNT( * ) * NULLIF ( - 84, - NULLIF ( - - COUNT( * ), CAST( NULL AS SIGNED ) * + COUNT( * ) ) ) - + CASE + 55 WHEN - - 14 * - 51 THEN 94 ELSE NULL END * + NULLIF ( + 66 / + 55, 90 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL COUNT ( * ) * - + 63 - + - 23 * + 62 + - ( 41 ) + ( + 37 ) + + + 21 * + + 16 * + + ( - + COUNT ( * ) ) / + - 40 + - 65 - + COUNT ( * ) * NULLIF ( - 84, - NULLIF ( - - COUNT ( * ), CAST ( NULL AS INTEGER ) * + COUNT ( * ) ) ) - + CASE + 55 WHEN - - 14 * - 51 THEN 94 ELSE NULL END * + NULLIF ( + 66 / + 55, 90 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 98 - - 3
----
101

query I rowsort
SELECT 51 * - 47 * + 45 AS col0
----
-107865

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL + 56 * ( + 75 ) * - 6 * - 89 + - COUNT( * ) AS col1
----
2242799

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL + 56 * ( + 75 ) * - 6 * - 89 + - COUNT ( * ) AS col1
----
2242799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6715
SELECT ALL - - CAST( COUNT( 53 ) AS SIGNED ) * - - 82
----
82

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL - - CAST ( COUNT ( 53 ) AS INTEGER ) * - - 82
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6716
SELECT + NULLIF ( + 83, + 75 ) * + + CAST( NULL AS SIGNED ), 18 DIV - 1 col1
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-6716
SELECT + NULLIF ( + 83, + 75 ) * + + CAST ( NULL AS INTEGER ), 18 / - 1 col1
----
NULL
-18

query I rowsort
SELECT 7 * + - 73
----
-511

query I rowsort
SELECT ALL + + 84 * - 63 AS col2
----
-5292

query I rowsort
SELECT DISTINCT NULLIF ( - 18, - - AVG ( DISTINCT - 30 ) )
----
-18

query II rowsort
SELECT - 98 * - + 18 - + 56 - 34, - 1 * + + 93 AS col0
----
1674
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT COUNT( * ) + 14 + - 43
----
-28

skipif mysql # not compatible
query I rowsort label-6721
SELECT COUNT ( * ) + 14 + - 43
----
-28

query I rowsort
SELECT ALL - 11 + - + 29
----
-40

query I rowsort
SELECT - 51 + + 96
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT DISTINCT + COUNT( * ) + - SUM( - 83 ) + + COUNT( + - 7 )
----
85

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT + COUNT ( * ) + - SUM ( - 83 ) + + COUNT ( + - 7 )
----
85

query I rowsort
SELECT ALL - 70 + + + 15
----
-55

query I rowsort
SELECT + 1 - - - 28
----
-27

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6727
SELECT DISTINCT - + CASE CAST( NULL AS SIGNED ) WHEN CAST( NULL AS DECIMAL ) THEN 86 WHEN + - ( - 92 ) + + 53 THEN NULL WHEN + + ( 9 ) THEN - - 99 + 90 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT - + CASE CAST ( NULL AS INTEGER ) WHEN CAST ( NULL AS REAL ) THEN 86 WHEN + - ( - 92 ) + + 53 THEN NULL WHEN + + ( 9 ) THEN - - 99 + 90 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT + 37 * - COUNT( * ) * - + 35 + - - 64
----
1359

skipif mysql # not compatible
query I rowsort label-6728
SELECT + 37 * - COUNT ( * ) * - + 35 + - - 64
----
1359

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6729
SELECT + 41 AS col0, + COALESCE ( 41, 53 DIV - COUNT( * ) - + + 4, + - 45 ) AS col1
----
41
41

skipif mysql # not compatible
query II rowsort label-6729
SELECT + 41 AS col0, + COALESCE ( 41, 53 / - COUNT ( * ) - + + 4, + - 45 ) AS col1
----
41
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6730
SELECT - 5 * - 43 + + + COUNT( * ), - 26 + + ( MIN( DISTINCT ( + 12 ) ) ) * - CAST( NULL AS SIGNED ) * + + 60 - - ( - 53 ) AS col2
----
216
NULL

skipif mysql # not compatible
query II rowsort label-6730
SELECT - 5 * - 43 + + + COUNT ( * ), - 26 + + ( MIN ( DISTINCT ( + 12 ) ) ) * - CAST ( NULL AS INTEGER ) * + + 60 - - ( - 53 ) AS col2
----
216
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT MAX( ALL 47 ) + - 1
----
46

skipif mysql # not compatible
query I rowsort label-6731
SELECT MAX ( ALL 47 ) + - 1
----
46

query I rowsort
SELECT ALL 0 + - 96 col2
----
-96

query II rowsort
SELECT 91 + 97 + - - 78 AS col1, ( + 90 )
----
266
90

query I rowsort
SELECT 32 * 50 * - - 70 + + - 42 * - 95 + - + 97 AS col0
----
115893

onlyif mysql # DIV for integer division: 
query I rowsort label-6735
SELECT ALL 93 DIV + 10 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL 93 / + 10 AS col2
----
9

query I rowsort
SELECT 7 * - 95 AS col2
----
-665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6737
SELECT ALL 11 DIV - COUNT( * ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL 11 / - COUNT ( * ) col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT ALL 46 * 47 * + + SUM( DISTINCT - 1 )
----
-2162

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL 46 * 47 * + + SUM ( DISTINCT - 1 )
----
-2162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6739
SELECT ALL 57 / - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1, MAX( + 58 ) * + 51 * + 24 + MAX( + - 53 ) + - + 40 col1
----
NULL
70899

skipif mysql # not compatible
query II rowsort label-6739
SELECT ALL 57 / - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, MAX ( + 58 ) * + 51 * + 24 + MAX ( + - 53 ) + - + 40 col1
----
NULL
70899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6740
SELECT COUNT( * ) * - 22 * + CAST( + 37 AS SIGNED ) AS col1
----
-814

skipif mysql # not compatible
query I rowsort label-6740
SELECT COUNT ( * ) * - 22 * + CAST ( + 37 AS INTEGER ) AS col1
----
-814

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT COUNT( * ) + + 2 - - + 80 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6741
SELECT COUNT ( * ) + + 2 - - + 80 AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6742
SELECT CAST( - 92 AS SIGNED ) * + 4
----
-368

skipif mysql # not compatible
query I rowsort label-6742
SELECT CAST ( - 92 AS INTEGER ) * + 4
----
-368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6743
SELECT ALL CAST( NULL AS SIGNED ) * - - 21 * AVG ( 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL CAST ( NULL AS INTEGER ) * - - 21 * AVG ( 37 )
----
NULL

query I rowsort
SELECT ( - 51 ) + 10 + + - 46
----
-87

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6746
SELECT - 55 + + 87 * + + 99, ( CASE + 52 WHEN - + 55 * - - 56 THEN COUNT( DISTINCT + + 96 ) + - 36 * - NULLIF ( - + 66, + 23 ) WHEN - - 64 / - ( - + 79 ) * - - 58 + 4 + - MAX( - 37 ) THEN - 29 * 99 ELSE + - 31 * 0 + - MAX( - 83 ) END ) + 49 AS col1
----
8558
132

skipif mysql # not compatible
query II rowsort label-6746
SELECT - 55 + + 87 * + + 99, ( CASE + 52 WHEN - + 55 * - - 56 THEN COUNT ( DISTINCT + + 96 ) + - 36 * - NULLIF ( - + 66, + 23 ) WHEN - - 64 / - ( - + 79 ) * - - 58 + 4 + - MAX ( - 37 ) THEN - 29 * 99 ELSE + - 31 * 0 + - MAX ( - 83 ) END ) + 49 AS col1
----
8558
132

query I rowsort
SELECT DISTINCT + 48 + - 67
----
-19

query I rowsort
SELECT - 82 + 52 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6749
SELECT ALL 52 + - - COALESCE ( + 98, - + 61, - COUNT( * ) ) AS col0, + 43 * - - 15 * + + 42
----
150
27090

skipif mysql # not compatible
query II rowsort label-6749
SELECT ALL 52 + - - COALESCE ( + 98, - + 61, - COUNT ( * ) ) AS col0, + 43 * - - 15 * + + 42
----
150
27090

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

skipif mysql # not compatible
query I rowsort label-6750
SELECT - MAX ( ALL 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT DISTINCT - 82 + MIN( - 24 )
----
-106

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT - 82 + MIN ( - 24 )
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT ALL NULLIF ( - 80, COUNT( + - 89 ) - + + 48 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL NULLIF ( - 80, COUNT ( + - 89 ) - + + 48 ) AS col0
----
-80

query I rowsort
SELECT ALL - 65 + 43 * + 61 * 74
----
194037

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

skipif mysql # not compatible
query I rowsort label-6754
SELECT + COUNT ( * ) / + 14 * + 72
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6755
SELECT ALL - 82 DIV - + ( - + 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - 82 / - + ( - + 89 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - ( - 97 ) col0
----
97

query II rowsort
SELECT DISTINCT - 52 AS col0, ( + 13 )
----
-52
13

query I rowsort
SELECT 91 * + 49 AS col2
----
4459

query II rowsort
SELECT + 97 AS col0, 18 AS col2
----
97
18

query I rowsort
SELECT DISTINCT - NULLIF ( 42, - + 95 )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6761
SELECT ALL CASE 59 WHEN + 61 THEN NULL WHEN - 50 THEN NULL ELSE - 91 DIV - 95 * + - 38 * + 2 END * - NULLIF ( + - 95, + ( - + 92 ) ) - + 20 + - COUNT( * ) * 82
----
-102

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL CASE 59 WHEN + 61 THEN NULL WHEN - 50 THEN NULL ELSE - 91 / - 95 * + - 38 * + 2 END * - NULLIF ( + - 95, + ( - + 92 ) ) - + 20 + - COUNT ( * ) * 82
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-6762
SELECT ALL + 78 * COALESCE ( COALESCE ( + + 71, 10 DIV 51 ), - 67 ) - - + 82 * + 94 * 81 * 42 AS col1
----
26228154

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + 78 * COALESCE ( COALESCE ( + + 71, 10 / 51 ), - 67 ) - - + 82 * + 94 * 81 * 42 AS col1
----
26228154

query I rowsort
SELECT - 76 * - 59 AS col1
----
4484

query II rowsort
SELECT ALL + 97 AS col1, 25 - + - 86
----
97
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6765
SELECT - SUM( + 37 ) * - + 89 + CASE + 1 WHEN + + ( - - 22 ) THEN - 67 - + - 85 + - - 16 / + 3 END + - 32 * - + COALESCE ( + + CAST( NULL AS SIGNED ), SUM( + 49 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT - SUM ( + 37 ) * - + 89 + CASE + 1 WHEN + + ( - - 22 ) THEN - 67 - + - 85 + - - 16 / + 3 END + - 32 * - + COALESCE ( + + CAST ( NULL AS INTEGER ), SUM ( + 49 ) )
----
NULL

query I rowsort
SELECT - 40 * 99
----
-3960

query I rowsort
SELECT + 45 * + 69
----
3105

onlyif mysql # aggregate syntax: 
query II rowsort label-6768
SELECT COUNT( * ) AS col1, - MIN( ALL 31 ) * + 80 AS col1
----
1
-2480

skipif mysql # not compatible
query II rowsort label-6768
SELECT COUNT ( * ) AS col1, - MIN ( ALL 31 ) * + 80 AS col1
----
1
-2480

query II rowsort
SELECT ALL + 96, - 54 AS col1
----
96
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-6770
SELECT - 10 * + COALESCE ( COUNT( * ), + 63 * + 22, + 68 ) AS col2, COUNT( * ) * - - 33
----
-10
33

skipif mysql # not compatible
query II rowsort label-6770
SELECT - 10 * + COALESCE ( COUNT ( * ), + 63 * + 22, + 68 ) AS col2, COUNT ( * ) * - - 33
----
-10
33

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

query II rowsort
SELECT ALL + 12 AS col0, - 72 AS col2
----
12
-72

query I rowsort
SELECT ALL 56 * 81 AS col0
----
4536

onlyif mysql # aggregate syntax: 
query II rowsort label-6774
SELECT MAX( DISTINCT 19 ), 24 AS col1
----
19
24

skipif mysql # not compatible
query II rowsort label-6774
SELECT MAX ( DISTINCT 19 ), 24 AS col1
----
19
24

onlyif mysql # DIV for integer division: 
query I rowsort label-6775
SELECT ALL - ( - 53 ) DIV 10 + - + 71
----
-66

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL - ( - 53 ) / 10 + - + 71
----
-66

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

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

query II rowsort
SELECT + 97 AS col1, + 23 AS col2
----
97
23

query I rowsort
SELECT ALL 83 + - 46
----
37

query I rowsort
SELECT ALL - 19 + - 90 + - 62
----
-171

query II rowsort
SELECT - 81 AS col1, 87 AS col1
----
-81
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT ALL + 44 + + SUM( DISTINCT - + 52 ) + + - 52
----
-60

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL + 44 + + SUM ( DISTINCT - + 52 ) + + - 52
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6782
SELECT - NULLIF ( 93, - 76 * - CAST( NULL AS SIGNED ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-6782
SELECT - NULLIF ( 93, - 76 * - CAST ( NULL AS INTEGER ) ) AS col2
----
-93

query I rowsort
SELECT + + 63 * ( + 88 ) * 40 + + 66 col2
----
221826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6784
SELECT ALL ( 21 ) * 24 * + SUM( + 71 ) + ( + CASE - 86 WHEN + + 24 * + 10 + + + 5 * + MAX( ALL + + 45 ) THEN - 83 WHEN - 71 THEN + COUNT( + 57 ) WHEN - 75 THEN + COUNT( * ) / - 15 * + 98 - + 18 WHEN + CAST( NULL AS SIGNED ) + - + 19 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT ALL ( 21 ) * 24 * + SUM ( + 71 ) + ( + CASE - 86 WHEN + + 24 * + 10 + + + 5 * + MAX ( ALL + + 45 ) THEN - 83 WHEN - 71 THEN + COUNT ( + 57 ) WHEN - 75 THEN + COUNT ( * ) / - 15 * + 98 - + 18 WHEN + CAST ( NULL AS INTEGER ) + - + 19 THEN NULL END ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT ALL + 83 + - ( + - 96 ) * MIN( - 79 ) * 80
----
-606637

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL + 83 + - ( + - 96 ) * MIN ( - 79 ) * 80
----
-606637

query I rowsort
SELECT DISTINCT - 25 * + NULLIF ( 53, + 34 ) * + 66 AS col1
----
-87450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6788
SELECT DISTINCT SUM( DISTINCT + 62 ), 77 * - COUNT( + 31 ) * 48 / - + ( 18 ) + + - CAST( NULL AS SIGNED ) + 8 / 92 AS col0
----
62
NULL

skipif mysql # not compatible
query II rowsort label-6788
SELECT DISTINCT SUM ( DISTINCT + 62 ), 77 * - COUNT ( + 31 ) * 48 / - + ( 18 ) + + - CAST ( NULL AS INTEGER ) + 8 / 92 AS col0
----
62
NULL

query I rowsort
SELECT ALL ( - 81 ) + - 85 col2
----
-166

query I rowsort
SELECT + 56 - + 87 AS col2
----
-31

query I rowsort
SELECT ALL + 92 * + 59 AS col0
----
5428

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT ALL - CASE 60 WHEN COUNT( * ) - + 45 THEN - 24 * 34 - - 83 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL - CASE 60 WHEN COUNT ( * ) - + 45 THEN - 24 * 34 - - 83 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT ALL + COUNT( * ) - + - 71
----
72

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL + COUNT ( * ) - + - 71
----
72

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

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

query II rowsort
SELECT 91, - ( + 80 ) * CASE 75 WHEN 89 THEN + 72 END * - 0 + - + 99 * + 67 col1
----
91
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6796
SELECT - COUNT( * ) col2, 63 * - 44 col2
----
-1
-2772

skipif mysql # not compatible
query II rowsort label-6796
SELECT - COUNT ( * ) col2, 63 * - 44 col2
----
-1
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT ALL + 67 - + SUM( - 36 ) * - 76 * 79
----
-216077

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL + 67 - + SUM ( - 36 ) * - 76 * 79
----
-216077

query I rowsort
SELECT + + 62 + - - 66 AS col0
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6799
SELECT - 19 DIV + COUNT( ALL - 3 ) + - 59 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-6799
SELECT - 19 / + COUNT ( ALL - 3 ) + - 59 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT ALL 88 * - + COUNT( * ) * - 7 * + + 80 AS col2
----
49280

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL 88 * - + COUNT ( * ) * - 7 * + + 80 AS col2
----
49280

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6802
SELECT + 82 + - + 42 DIV + + CAST( - 25 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-6802
SELECT + 82 + - + 42 / + + CAST ( - 25 AS INTEGER )
----
83

query I rowsort
SELECT + 58 + 93 - + 76 AS col0
----
75

query I rowsort
SELECT ALL 82 * + + 3
----
246

query I rowsort
SELECT ALL 40 * 98 * - 27 AS col1
----
-105840

query I rowsort
SELECT - 52 * 25 * 36 + + ( + - 38 ) - - - ( NULLIF ( + + 39, 78 + + + 39 ) ) col0
----
-46877

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT - 46 DIV + + 33
----
-1

skipif mysql # not compatible
query I rowsort label-6807
SELECT - 46 / + + 33
----
-1

query I rowsort
SELECT + 16 + 88 AS col1
----
104

query I rowsort
SELECT - 22 * + - 19 AS col2
----
418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6810
SELECT ( - CAST( - 43 AS SIGNED ) )
----
43

skipif mysql # not compatible
query I rowsort label-6810
SELECT ( - CAST ( - 43 AS INTEGER ) )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT DISTINCT + MAX( 74 )
----
74

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT + MAX ( 74 )
----
74

query I rowsort
SELECT ALL 58 * + - 75 + - 11
----
-4361

query II rowsort
SELECT - 56 * + - 10 AS col0, 3 * + 89 AS col1
----
560
267

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT ALL 95 * - COUNT( * ) * 94 + + - 90 col2
----
-9020

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL 95 * - COUNT ( * ) * 94 + + - 90 col2
----
-9020

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT - ( 82 ) * - - COUNT( 11 ) + COALESCE ( + COUNT( * ), 99 * 84 + 24 * - + 60 * - - 58 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-6815
SELECT - ( 82 ) * - - COUNT ( 11 ) + COALESCE ( + COUNT ( * ), 99 * 84 + 24 * - + 60 * - - 58 ) AS col0
----
-81

query I rowsort
SELECT - ( + COALESCE ( 66, 15 ) )
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT ALL 89 * - COUNT( * ) - - 94 + - - 64 col1
----
69

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL 89 * - COUNT ( * ) - - 94 + - - 64 col1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6819
SELECT - - COUNT( * ) + - 25, - ( + - 33 ) AS col1
----
-24
33

skipif mysql # not compatible
query II rowsort label-6819
SELECT - - COUNT ( * ) + - 25, - ( + - 33 ) AS col1
----
-24
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT DISTINCT + NULLIF ( - 41, COUNT( * ) * COUNT( * ) + 48 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT + NULLIF ( - 41, COUNT ( * ) * COUNT ( * ) + 48 ) AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6821
SELECT DISTINCT + ( + - 5 ) * + NULLIF ( - 76, + COUNT( * ) + ( 40 ) + - CAST( 61 AS DECIMAL ) ) AS col2
----
380

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT + ( + - 5 ) * + NULLIF ( - 76, + COUNT ( * ) + ( 40 ) + - CAST ( 61 AS REAL ) ) AS col2
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT DISTINCT - 89 * - - COUNT( * ) + + 64 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT - 89 * - - COUNT ( * ) + + 64 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT + - ( - - ( + COUNT( * ) ) ) + - 71 + - 72 + + 11 AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-6823
SELECT + - ( - - ( + COUNT ( * ) ) ) + - 71 + - 72 + + 11 AS col0
----
-133

onlyif mysql # DIV for integer division: 
query II rowsort label-6824
SELECT ALL + - 10 - 94 AS col1, - 33 DIV - 44
----
-104
0

skipif mysql # not compatible
query II rowsort label-6824
SELECT ALL + - 10 - 94 AS col1, - 33 / - 44
----
-104
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT + + 2 + + COUNT( * ) + + 96
----
99

skipif mysql # not compatible
query I rowsort label-6825
SELECT + + 2 + + COUNT ( * ) + + 96
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6826
SELECT ALL 77 * + 55 AS col1, COUNT( * ) col0
----
4235
1

skipif mysql # not compatible
query II rowsort label-6826
SELECT ALL 77 * + 55 AS col1, COUNT ( * ) col0
----
4235
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT NULLIF ( COALESCE ( - - COUNT( * ), + 89 ), - 98 + 83 ) * - - 29
----
29

skipif mysql # not compatible
query I rowsort label-6828
SELECT NULLIF ( COALESCE ( - - COUNT ( * ), + 89 ), - 98 + 83 ) * - - 29
----
29

query II rowsort
SELECT DISTINCT - 84 col2, 3 + + + 98 AS col1
----
-84
101

query I rowsort
SELECT ALL 87 + ( 46 ) col1
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-6831
SELECT + 13, + 41 + 73 + CASE - 95 WHEN 7 + + - ( 4 ) + - + COUNT( * ) * + 15 * 73 THEN NULL WHEN + 20 + COUNT( * ) THEN 55 WHEN - + COUNT( * ) * 33 * + 39 - + 75 * - 57 THEN + + 79 * + CASE - COUNT( * ) WHEN - 7 THEN + + 48 * + - 36 + + + 5 - COUNT( * ) END ELSE - + COUNT( * ) END AS col0
----
13
113

skipif mysql # not compatible
query II rowsort label-6831
SELECT + 13, + 41 + 73 + CASE - 95 WHEN 7 + + - ( 4 ) + - + COUNT ( * ) * + 15 * 73 THEN NULL WHEN + 20 + COUNT ( * ) THEN 55 WHEN - + COUNT ( * ) * 33 * + 39 - + 75 * - 57 THEN + + 79 * + CASE - COUNT ( * ) WHEN - 7 THEN + + 48 * + - 36 + + + 5 - COUNT ( * ) END ELSE - + COUNT ( * ) END AS col0
----
13
113

query I rowsort
SELECT DISTINCT 63 + + - 73 AS col1
----
-10

query I rowsort
SELECT ALL 81 * + 5
----
405

query I rowsort
SELECT ALL - 38 + 30
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6835
SELECT ALL - 29 + - - 85 + COUNT( * ) DIV 20 - 93 - CAST( + 90 AS SIGNED ) - - MAX( ( 4 ) ) AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL - 29 + - - 85 + COUNT ( * ) / 20 - 93 - CAST ( + 90 AS INTEGER ) - - MAX ( ( 4 ) ) AS col2
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6836
SELECT 57 + + 75 / CAST( NULL AS SIGNED ) + + NULLIF ( + - 64, - 72 ) + - 1 + + - SUM( DISTINCT + COALESCE ( + 7, - 36, - 41 * 43 + 94 ) ) - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6836
SELECT 57 + + 75 / CAST ( NULL AS INTEGER ) + + NULLIF ( + - 64, - 72 ) + - 1 + + - SUM ( DISTINCT + COALESCE ( + 7, - 36, - 41 * 43 + 94 ) ) - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT DISTINCT 86 + 36 + - - COUNT( * ) - - - ( + COALESCE ( 41, - + 51 * + COUNT( * ) + + 78, - - ( - 46 ) + - + 86 + + - COUNT( * ) ) ) * 7 + COUNT( ALL 97 ) + - 46 col1
----
-209

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT 86 + 36 + - - COUNT ( * ) - - - ( + COALESCE ( 41, - + 51 * + COUNT ( * ) + + 78, - - ( - 46 ) + - + 86 + + - COUNT ( * ) ) ) * 7 + COUNT ( ALL 97 ) + - 46 col1
----
-209

query I rowsort
SELECT ALL 62 + - 92 - + + 89 + - + 11 + + 99 * + 90 * - 86
----
-766390

query I rowsort
SELECT ALL 21 + - ( + CASE - - 17 WHEN + 32 + - 46 + - - 37 THEN - + 56 + - + 19 ELSE NULL END ) + 88 * 18 + - + 83 * 92 + + 97 + + 1 * 82 + + 13 + - 24 * + 68 * + 14 + 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT ALL - - NULLIF ( + COUNT( * ), + MAX( ALL + 28 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL - - NULLIF ( + COUNT ( * ), + MAX ( ALL + 28 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6841
SELECT DISTINCT - - 0 + + CASE + + 15 WHEN 21 * + 34 * - ( 16 ) * + COALESCE ( - + 59, CAST( 45 AS SIGNED ) ) + + 73 THEN + 97 / COUNT( * ) * + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT - - 0 + + CASE + + 15 WHEN 21 * + 34 * - ( 16 ) * + COALESCE ( - + 59, CAST ( 45 AS INTEGER ) ) + + 73 THEN + 97 / COUNT ( * ) * + 19 END
----
NULL

query II rowsort
SELECT + ( - 33 ) * - 28 * - ( 95 ) + - 35 * 92 + - 95, + 88 AS col2
----
-91095
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6843
SELECT + - 97 AS col1, 20 * 34 + + 75 + 35 + 46 + + - COUNT( * ) DIV - 24 + - - 4 * + 19 * + 76
----
-97
6612

skipif mysql # not compatible
query II rowsort label-6843
SELECT + - 97 AS col1, 20 * 34 + + 75 + 35 + 46 + + - COUNT ( * ) / - 24 + - - 4 * + 19 * + 76
----
-97
6612

onlyif mysql # aggregate syntax: 
query II rowsort label-6844
SELECT ALL - 86, - 17 + COUNT( * ) AS col1
----
-86
-16

skipif mysql # not compatible
query II rowsort label-6844
SELECT ALL - 86, - 17 + COUNT ( * ) AS col1
----
-86
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6845
SELECT ALL - + ( NULLIF ( + 87, - NULLIF ( - + 13, + CAST( NULL AS SIGNED ) ) + + + 93 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL - + ( NULLIF ( + 87, - NULLIF ( - + 13, + CAST ( NULL AS INTEGER ) ) + + + 93 ) )
----
-87

query I rowsort
SELECT 76 * 83 - - 90 + 41 AS col0
----
6439

query I rowsort
SELECT ALL + + 57 - - 37
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT SUM( + - 49 ) * - ( + + ( + 0 ) ) * + 97 - - 23 * + 9
----
207

skipif mysql # not compatible
query I rowsort label-6848
SELECT SUM ( + - 49 ) * - ( + + ( + 0 ) ) * + 97 - - 23 * + 9
----
207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6849
SELECT 56 * - CAST( NULL AS SIGNED ) - - + 10 DIV - 37 AS col1, - COUNT( * ) DIV + 9 col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6849
SELECT 56 * - CAST ( NULL AS INTEGER ) - - + 10 / - 37 AS col1, - COUNT ( * ) / + 9 col2
----
NULL
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6851
SELECT - CASE + 73 WHEN + - 96 THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN + - MIN( - + 15 ) WHEN - + CASE - ( + 74 ) WHEN - 63 THEN 96 WHEN 14 THEN NULL WHEN - CAST( + 10 AS SIGNED ) THEN - + 12 ELSE NULL END THEN NULL END * CASE + 96 WHEN - COUNT( * ) + + CAST( NULL AS SIGNED ) THEN NULL WHEN 4 + - CASE - + ( - - 78 ) WHEN - ( + - CAST( NULL AS SIGNED ) ) / 14 + 95 THEN - CAST( NULL AS SIGNED ) - 21 * + COUNT( * ) WHEN 80 + + 14 * 95 THEN NULL END THEN - 19 * + 74 END * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT - CASE + 73 WHEN + - 96 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN + - MIN ( - + 15 ) WHEN - + CASE - ( + 74 ) WHEN - 63 THEN 96 WHEN 14 THEN NULL WHEN - CAST ( + 10 AS INTEGER ) THEN - + 12 ELSE NULL END THEN NULL END * CASE + 96 WHEN - COUNT ( * ) + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 4 + - CASE - + ( - - 78 ) WHEN - ( + - CAST ( NULL AS INTEGER ) ) / 14 + 95 THEN - CAST ( NULL AS INTEGER ) - 21 * + COUNT ( * ) WHEN 80 + + 14 * 95 THEN NULL END THEN - 19 * + 74 END * - 83
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT ALL - CAST( 19 AS SIGNED ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL - CAST ( 19 AS INTEGER ) AS col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-6853
SELECT + 40 DIV + + ( 74 ) + + 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-6853
SELECT + 40 / + + ( 74 ) + + 44 AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6854
SELECT DISTINCT 18 AS col1, - COUNT( * ) DIV COALESCE ( + COUNT( * ), - 52 + - + 80 ) + + 50 - - ( 1 ) + - 48 * 31 AS col0
----
18
-1438

skipif mysql # not compatible
query II rowsort label-6854
SELECT DISTINCT 18 AS col1, - COUNT ( * ) / COALESCE ( + COUNT ( * ), - 52 + - + 80 ) + + 50 - - ( 1 ) + - 48 * 31 AS col0
----
18
-1438

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6856
SELECT ALL + COUNT( * ) DIV + COALESCE ( - + 36, + - 79, - + ( + 83 ) - + - 48 ) * 57 * + 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL + COUNT ( * ) / + COALESCE ( - + 36, + - 79, - + ( + 83 ) - + - 48 ) * 57 * + 78 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6857
SELECT 97 DIV + + 34 AS col0, CASE + NULLIF ( + 91, - 28 DIV + 6 ) WHEN - + 19 THEN NULL WHEN - - COUNT( * ) THEN - NULLIF ( + - COUNT( * ), - + 49 ) END
----
2
NULL

skipif mysql # not compatible
query II rowsort label-6857
SELECT 97 / + + 34 AS col0, CASE + NULLIF ( + 91, - 28 / + 6 ) WHEN - + 19 THEN NULL WHEN - - COUNT ( * ) THEN - NULLIF ( + - COUNT ( * ), - + 49 ) END
----
2
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6860
SELECT 45 / + 90
----
0

query I rowsort
SELECT 26 + ( - 8 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT DISTINCT - ( 91 ) * 35 + 21 * 51 + - SUM( - - 61 ) AS col1
----
-2175

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT - ( 91 ) * 35 + 21 * 51 + - SUM ( - - 61 ) AS col1
----
-2175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6863
SELECT ALL 87 * + + ( - - COUNT( CASE - 70 WHEN + + 36 THEN NULL WHEN - 10 THEN - + 91 / + CAST( NULL AS SIGNED ) - + 34 END ) ) + + 45
----
45

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL 87 * + + ( - - COUNT ( CASE - 70 WHEN + + 36 THEN NULL WHEN - 10 THEN - + 91 / + CAST ( NULL AS INTEGER ) - + 34 END ) ) + + 45
----
45

query I rowsort
SELECT 60 + + - 52 - - - 73
----
-65

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

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

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

skipif mysql # not compatible
query I rowsort label-6866
SELECT MAX ( ALL - - 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT MAX( ALL - + ( 6 ) ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-6867
SELECT MAX ( ALL - + ( 6 ) ) AS col1
----
-6

query I rowsort
SELECT DISTINCT - - CASE 51 WHEN + 42 THEN - 38 ELSE 71 END AS col1
----
71

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6870
SELECT DISTINCT 34 * - COALESCE ( - COUNT( * ), - 5 DIV + 43 + - - 19 + - 23 * - 61 + + NULLIF ( COALESCE ( + 96, - COUNT( * ) * + + CAST( 95 AS SIGNED ) ), 10 + + NULLIF ( + 39, + CAST( NULL AS SIGNED ) ) + + + COUNT( * ) ) + - - 75 * 91 * + 49 + - 5 DIV - 66 - - 95 + 43 * 68 )
----
34

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT 34 * - COALESCE ( - COUNT ( * ), - 5 / + 43 + - - 19 + - 23 * - 61 + + NULLIF ( COALESCE ( + 96, - COUNT ( * ) * + + CAST ( 95 AS INTEGER ) ), 10 + + NULLIF ( + 39, + CAST ( NULL AS INTEGER ) ) + + + COUNT ( * ) ) + - - 75 * 91 * + 49 + - 5 / - 66 - - 95 + 43 * 68 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT DISTINCT + COALESCE ( - 44, - 72 ) * + - 41 + - - 58 + + - COUNT( DISTINCT + 84 )
----
1861

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT + COALESCE ( - 44, - 72 ) * + - 41 + - - 58 + + - COUNT ( DISTINCT + 84 )
----
1861

query I rowsort
SELECT ( - 29 ) * 94
----
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT 10 * + SUM( + + 0 ) + - 4
----
-4

skipif mysql # not compatible
query I rowsort label-6873
SELECT 10 * + SUM ( + + 0 ) + - 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT ALL 96 * 7 / + - CASE - + 10 WHEN - COUNT( * ) + + + 18 THEN - 49 - - COUNT( * ) * + MIN( DISTINCT 27 ) / + + 93 * - 54 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL 96 * 7 / + - CASE - + 10 WHEN - COUNT ( * ) + + + 18 THEN - 49 - - COUNT ( * ) * + MIN ( DISTINCT 27 ) / + + 93 * - 54 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT ALL ( + + 28 ) - - NULLIF ( - 77, 73 - - 0 - + 37 ) + + 76 * 6 + - + SUM( DISTINCT - + 12 )
----
419

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL ( + + 28 ) - - NULLIF ( - 77, 73 - - 0 - + 37 ) + + 76 * 6 + - + SUM ( DISTINCT - + 12 )
----
419

query I rowsort
SELECT 24 * + - 55 * - 2 AS col2
----
2640

query I rowsort
SELECT - 49 * + - 12 + - 86
----
502

query I rowsort
SELECT NULLIF ( - CASE - - 43 WHEN 80 THEN + 78 WHEN + 4 THEN NULL END, 59 ) * 25 + - - 76 + - 68
----
NULL

query I rowsort
SELECT 14 * + 26 + 57 + + - 87 * + 1
----
334

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

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

query I rowsort
SELECT - NULLIF ( 39, 98 ) * ( - 61 ) * + - 19 * - + COALESCE ( 37, - 71 ) - + 73 - 24 col2
----
1672340

query II rowsort
SELECT + - 0 + + - 58 * 31 * - 51, + 62 AS col2
----
91698
62

query I rowsort
SELECT - 38 + - + 17
----
-55

query I rowsort
SELECT DISTINCT + 97 * 83 + 2 col2
----
8053

onlyif mysql # aggregate syntax: 
query II rowsort label-6885
SELECT - CASE 9 WHEN COUNT( + 38 ) * 65 THEN - 73 END + + 63 AS col2, - MIN( - - 8 ) + + 27 AS col1
----
NULL
19

skipif mysql # not compatible
query II rowsort label-6885
SELECT - CASE 9 WHEN COUNT ( + 38 ) * 65 THEN - 73 END + + 63 AS col2, - MIN ( - - 8 ) + + 27 AS col1
----
NULL
19

onlyif mysql # aggregate syntax: 
query II rowsort label-6886
SELECT + MIN( ALL + 34 ), 10 + - 10 AS col1
----
34
0

skipif mysql # not compatible
query II rowsort label-6886
SELECT + MIN ( ALL + 34 ), 10 + - 10 AS col1
----
34
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6887
SELECT + 95 * + COUNT( * ) col2, 86 * + - 99 + - 34 + - 54 col0
----
95
-8602

skipif mysql # not compatible
query II rowsort label-6887
SELECT + 95 * + COUNT ( * ) col2, 86 * + - 99 + - 34 + - 54 col0
----
95
-8602

query I rowsort
SELECT - 5 + + ( + + 20 ) - + 46 * - - 45 AS col1
----
-2055

query I rowsort
SELECT ALL - 74 + + + 2 * + 64
----
54

query I rowsort
SELECT - 93 * + - 45
----
4185

query II rowsort
SELECT - 99 + + ( - + 68 ), - ( + 35 ) + 8 * - NULLIF ( - 43, 52 ) AS col1
----
-167
309

query I rowsort
SELECT DISTINCT 17 + + ( + - 25 ) AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT ALL + 38 + + CAST( - - NULLIF ( + - 45, - MAX( DISTINCT - 67 ) ) AS SIGNED ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL + 38 + + CAST ( - - NULLIF ( + - 45, - MAX ( DISTINCT - 67 ) ) AS INTEGER ) AS col0
----
-7

query I rowsort
SELECT DISTINCT + 29 + + + 38 + 29 AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6895
SELECT ALL 75 DIV - - 66
----
1

skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL 75 / - - 66
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6896
SELECT DISTINCT 92 + + 72 * - 51, + 38 * COUNT( * ) AS col0
----
-3580
38

skipif mysql # not compatible
query II rowsort label-6896
SELECT DISTINCT 92 + + 72 * - 51, + 38 * COUNT ( * ) AS col0
----
-3580
38

onlyif mysql # DIV for integer division: 
query I rowsort label-6897
SELECT - 16 DIV - 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6897
SELECT - 16 / - 41 AS col2
----
0

query I rowsort
SELECT + 33 * + 43 AS col1
----
1419

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT ALL - 66 * - COUNT( * ) * + - 92 AS col2
----
-6072

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL - 66 * - COUNT ( * ) * + - 92 AS col2
----
-6072

onlyif mysql # aggregate syntax: 
query II rowsort label-6900
SELECT + 80 AS col0, CASE + + COUNT( * ) WHEN - 95 * - + ( + 89 ) / - 55 + 32 / + 56 * - 36 THEN NULL WHEN + 9 + - + 91 THEN - SUM( DISTINCT - 6 ) * + 44 END
----
80
NULL

skipif mysql # not compatible
query II rowsort label-6900
SELECT + 80 AS col0, CASE + + COUNT ( * ) WHEN - 95 * - + ( + 89 ) / - 55 + 32 / + 56 * - 36 THEN NULL WHEN + 9 + - + 91 THEN - SUM ( DISTINCT - 6 ) * + 44 END
----
80
NULL

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

query I rowsort
SELECT DISTINCT 66 * + - 85 - + 91 + + 43
----
-5658

onlyif mysql # aggregate syntax: 
query II rowsort label-6903
SELECT + COALESCE ( COUNT( * ), 91 - + 2 * 6 * - COALESCE ( - 80, - + 6 ), 15 ) * + 86 AS col2, SUM( + 1 ) + - ( 14 ) AS col2
----
86
-13

skipif mysql # not compatible
query II rowsort label-6903
SELECT + COALESCE ( COUNT ( * ), 91 - + 2 * 6 * - COALESCE ( - 80, - + 6 ), 15 ) * + 86 AS col2, SUM ( + 1 ) + - ( 14 ) AS col2
----
86
-13

query II rowsort
SELECT ALL + - 80 AS col0, 24 AS col2
----
-80
24

query I rowsort
SELECT - - 70 * 8 - - 91 + + 98 * - 20 + - 98
----
-1407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6906
SELECT 64 * - CASE + 18 WHEN 86 * + - 61 + + - COUNT( * ) / 31 + + - CAST( NULL AS SIGNED ) * + 12 + + 78 THEN CASE 92 WHEN + 20 * + 94 * - SUM( ALL + - 63 ) + - COUNT( - 74 ) * - 82 * + - ( + - ( COALESCE ( COUNT( * ), + COUNT( * ), COUNT( * ) / - COALESCE ( - + CAST( NULL AS SIGNED ), + + ( + 73 ), COUNT( * ) ) ) ) ) THEN + CAST( NULL AS SIGNED ) WHEN ( + 48 ) * COALESCE ( + 79, - 80 - COALESCE ( + ( CASE 41 WHEN CAST( NULL AS SIGNED ) * 96 THEN NULL ELSE - 42 / CAST( + 35 AS SIGNED ) END ), + 98 * + 43 ), + 74 - - MAX( 64 ) ) THEN + 62 ELSE NULL END + COUNT( * ) WHEN - 52 THEN NULL END + 18 * 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT 64 * - CASE + 18 WHEN 86 * + - 61 + + - COUNT ( * ) / 31 + + - CAST ( NULL AS INTEGER ) * + 12 + + 78 THEN CASE 92 WHEN + 20 * + 94 * - SUM ( ALL + - 63 ) + - COUNT ( - 74 ) * - 82 * + - ( + - ( COALESCE ( COUNT ( * ), + COUNT ( * ), COUNT ( * ) / - COALESCE ( - + CAST ( NULL AS INTEGER ), + + ( + 73 ), COUNT ( * ) ) ) ) ) THEN + CAST ( NULL AS INTEGER ) WHEN ( + 48 ) * COALESCE ( + 79, - 80 - COALESCE ( + ( CASE 41 WHEN CAST ( NULL AS INTEGER ) * 96 THEN NULL ELSE - 42 / CAST ( + 35 AS INTEGER ) END ), + 98 * + 43 ), + 74 - - MAX ( 64 ) ) THEN + 62 ELSE NULL END + COUNT ( * ) WHEN - 52 THEN NULL END + 18 * 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT - CASE WHEN NULL NOT IN ( - 85, 43 ) THEN - + COUNT( * ) ELSE - 95 END
----
95

skipif mysql # not compatible
query I rowsort label-6907
SELECT - CASE WHEN NULL NOT IN ( - 85, 43 ) THEN - + COUNT ( * ) ELSE - 95 END
----
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT COUNT( * ) * - ( - COUNT( * ) ) - + 37 + COALESCE ( - 3, - - 55 )
----
-39

skipif mysql # not compatible
query I rowsort label-6909
SELECT COUNT ( * ) * - ( - COUNT ( * ) ) - + 37 + COALESCE ( - 3, - - 55 )
----
-39

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

skipif mysql # not compatible
query I rowsort label-6910
SELECT + - COUNT ( * ) * ( CAST ( - + 25 AS INTEGER ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT + 86 * - SUM( + + 6 ) AS col1
----
-516

skipif mysql # not compatible
query I rowsort label-6911
SELECT + 86 * - SUM ( + + 6 ) AS col1
----
-516

query I rowsort
SELECT ALL 44 * - 8 + - 76 AS col0
----
-428

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT ALL MIN( - 65 ) * + 6 AS col2
----
-390

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL MIN ( - 65 ) * + 6 AS col2
----
-390

query I rowsort
SELECT COALESCE ( 48, 20 ) AS col0
----
48

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6916
SELECT ALL - + 44 * + 82 * COUNT( DISTINCT + 23 ) + + 56 + + 51, 55 DIV + + 94 AS col2
----
-3501
0

skipif mysql # not compatible
query II rowsort label-6916
SELECT ALL - + 44 * + 82 * COUNT ( DISTINCT + 23 ) + + 56 + + 51, 55 / + + 94 AS col2
----
-3501
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6917
SELECT + + MAX( 0 ) * - - CAST( - 48 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6917
SELECT + + MAX ( 0 ) * - - CAST ( - 48 AS INTEGER )
----
0

query I rowsort
SELECT + ( + 76 ) * - 8 * 20 - 60 - - 54 + 68 - - 39
----
-12059

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT - - 13 * SUM( - - 22 ) * COALESCE ( ( - + NULLIF ( + NULLIF ( + 93, 29 + + 76 ), - - 84 ) ), + + 17 - + - COUNT( * ) + - 85 )
----
-26598

skipif mysql # not compatible
query I rowsort label-6919
SELECT - - 13 * SUM ( - - 22 ) * COALESCE ( ( - + NULLIF ( + NULLIF ( + 93, 29 + + 76 ), - - 84 ) ), + + 17 - + - COUNT ( * ) + - 85 )
----
-26598

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT ALL - COUNT( * ) * - 16 + + - 31
----
-15

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL - COUNT ( * ) * - 16 + + - 31
----
-15

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT + SUM( - + 97 ) * - 90 AS col1
----
8730

skipif mysql # not compatible
query I rowsort label-6923
SELECT + SUM ( - + 97 ) * - 90 AS col1
----
8730

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT DISTINCT - 97 * + + MAX( ALL - 39 ) AS col2
----
3783

skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT - 97 * + + MAX ( ALL - 39 ) AS col2
----
3783

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT ALL + 43 + - 71 + - COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL + 43 + - 71 + - COUNT ( * ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT ALL COUNT( DISTINCT 8 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL COUNT ( DISTINCT 8 ) AS col0
----
1

query I rowsort
SELECT ALL - 79 + + + 3 + - - 19 col0
----
-57

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

query I rowsort
SELECT DISTINCT CASE - 27 WHEN + 36 THEN + 53 + - 0 END AS col2
----
NULL

query I rowsort
SELECT ALL - 80 * + ( 82 )
----
-6560

query I rowsort
SELECT + 4 + - 36 * + 37
----
-1328

query I rowsort
SELECT - 10 * 55
----
-550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6933
SELECT - CASE WHEN + CAST( NULL AS SIGNED ) IS NULL THEN NULL WHEN NOT - 18 IS NULL THEN NULL ELSE CAST( NULL AS SIGNED ) * + COUNT( - - 1 ) END + 65 * + + 95 * - + CASE NULLIF ( - 58, + 37 / COUNT( * ) ) WHEN + + 45 THEN + 58 * 50 + + COUNT( * ) + - 83 END * - - 15 + + 1 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6933
SELECT - CASE WHEN + CAST ( NULL AS INTEGER ) IS NULL THEN NULL WHEN NOT - 18 IS NULL THEN NULL ELSE CAST ( NULL AS INTEGER ) * + COUNT ( - - 1 ) END + 65 * + + 95 * - + CASE NULLIF ( - 58, + 37 / COUNT ( * ) ) WHEN + + 45 THEN + 58 * 50 + + COUNT ( * ) + - 83 END * - - 15 + + 1 col2
----
NULL

query I rowsort
SELECT ALL 62 * - + 12
----
-744

onlyif mysql # aggregate syntax: 
query II rowsort label-6935
SELECT - 74 * + 68 AS col0, + MIN( ALL NULLIF ( 48, - - 93 ) )
----
-5032
48

skipif mysql # not compatible
query II rowsort label-6935
SELECT - 74 * + 68 AS col0, + MIN ( ALL NULLIF ( 48, - - 93 ) )
----
-5032
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6936
SELECT ALL - COUNT( * ) DIV + - 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL - COUNT ( * ) / + - 5 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6937
SELECT ALL + COALESCE ( + + ( + - MAX( DISTINCT - 52 ) ), - + COALESCE ( - 48, - 9 ), + 94 * - 58 - + 47 * NULLIF ( + - 41, + CAST( NULL AS SIGNED ) ) + 28 )
----
52

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL + COALESCE ( + + ( + - MAX ( DISTINCT - 52 ) ), - + COALESCE ( - 48, - 9 ), + 94 * - 58 - + 47 * NULLIF ( + - 41, + CAST ( NULL AS INTEGER ) ) + 28 )
----
52

query II rowsort
SELECT ALL - 15 * - 31 AS col1, 23
----
465
23

query I rowsort
SELECT - + 93 * + - 28 AS col1
----
2604

onlyif mysql # DIV for integer division: 
query I rowsort label-6940
SELECT ALL - - ( 12 ) DIV 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL - - ( 12 ) / 75 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6941
SELECT COALESCE ( - + 6, 28 ) / + 10 + + + CASE + 3 WHEN + 83 - + 62 + - + 68 + - CAST( NULL AS SIGNED ) + - - 71 * - 19 THEN NULL WHEN - - NULLIF ( 15, - 75 ) + - 85 THEN - 40 * - ( - COALESCE ( + - 48, - SUM( ALL - 75 ) * - MAX( DISTINCT 30 ) * - 87 * - 34 ) ) END + - + COUNT( DISTINCT 57 ) + + COUNT( * ) * + CAST( 79 AS SIGNED ) * 84 + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6941
SELECT COALESCE ( - + 6, 28 ) / + 10 + + + CASE + 3 WHEN + 83 - + 62 + - + 68 + - CAST ( NULL AS INTEGER ) + - - 71 * - 19 THEN NULL WHEN - - NULLIF ( 15, - 75 ) + - 85 THEN - 40 * - ( - COALESCE ( + - 48, - SUM ( ALL - 75 ) * - MAX ( DISTINCT 30 ) * - 87 * - 34 ) ) END + - + COUNT ( DISTINCT 57 ) + + COUNT ( * ) * + CAST ( 79 AS INTEGER ) * 84 + + 87
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6942
SELECT + CAST( NULLIF ( + 52, + 67 ) AS SIGNED ) AS col1, 86 col1
----
52
86

skipif mysql # not compatible
query II rowsort label-6942
SELECT + CAST ( NULLIF ( + 52, + 67 ) AS INTEGER ) AS col1, 86 col1
----
52
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT - MAX( DISTINCT - 32 ) * - - 72 AS col1
----
2304

skipif mysql # not compatible
query I rowsort label-6943
SELECT - MAX ( DISTINCT - 32 ) * - - 72 AS col1
----
2304

query I rowsort
SELECT 82 * + 15
----
1230

query I rowsort
SELECT DISTINCT + 22 * - 15 * - - COALESCE ( + 66, + 75 + + 39 ) + + + 3 AS col1
----
-21777

onlyif mysql # aggregate syntax: 
query II rowsort label-6946
SELECT 84 * + - 72 * - 43 + + 83 * - SUM( DISTINCT - - 23 ), - 60 AS col0
----
258155
-60

skipif mysql # not compatible
query II rowsort label-6946
SELECT 84 * + - 72 * - 43 + + 83 * - SUM ( DISTINCT - - 23 ), - 60 AS col0
----
258155
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6947
SELECT ALL - - COUNT( DISTINCT - + 27 ) + + - CAST( + - 34 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL - - COUNT ( DISTINCT - + 27 ) + + - CAST ( + - 34 AS INTEGER )
----
35

onlyif mysql # aggregate syntax: 
query III rowsort label-6948
SELECT DISTINCT - COUNT( * ) AS col0, - 36, + + 91 + + 94 * - 3 * 23 AS col2
----
-1
-36
-6395

skipif mysql # not compatible
query III rowsort label-6948
SELECT DISTINCT - COUNT ( * ) AS col0, - 36, + + 91 + + 94 * - 3 * 23 AS col2
----
-1
-36
-6395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6949
SELECT - 79 * + + ( - 45 ) * - 55 * - 75 + - + 40 + CAST( - 10 AS SIGNED ) + - 22 AS col0
----
14664303

skipif mysql # not compatible
query I rowsort label-6949
SELECT - 79 * + + ( - 45 ) * - 55 * - 75 + - + 40 + CAST ( - 10 AS INTEGER ) + - 22 AS col0
----
14664303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6950
SELECT DISTINCT - CAST( - 31 AS SIGNED ) + - - COUNT( * ) + + COALESCE ( CAST( NULL AS SIGNED ), - CASE - COUNT( * ) WHEN + 44 DIV - 42 THEN - 78 - - 25 END ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT - CAST ( - 31 AS INTEGER ) + - - COUNT ( * ) + + COALESCE ( CAST ( NULL AS INTEGER ), - CASE - COUNT ( * ) WHEN + 44 / - 42 THEN - 78 - - 25 END ) AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6951
SELECT ALL + 11 + 66 DIV - + 38 + - ( - - 50 )
----
-40

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL + 11 + 66 / - + 38 + - ( - - 50 )
----
-40

query I rowsort
SELECT 41 + - + 19
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ALL COUNT( * ) + 61 * - + 73
----
-4452

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL COUNT ( * ) + 61 * - + 73
----
-4452

query I rowsort
SELECT 30 - + 43 col0
----
-13

query II rowsort
SELECT + + 46 AS col1, 89 AS col0
----
46
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6956
SELECT 35 + - - CAST( NULL AS DECIMAL ) * - + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT 35 + - - CAST ( NULL AS REAL ) * - + 10 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6957
SELECT ALL - NULLIF ( - - 88, - 70 * + 86 ) + 96 + CAST( - CASE - + 68 WHEN + + 42 / + SUM( DISTINCT + 92 ) / + COUNT( * ) THEN NULLIF ( 62, - 60 + - - MIN( ALL 77 ) + + + COUNT( * ) * - 4 ) * 51 ELSE ( 34 ) END AS SIGNED ) AS col0, 82 * 19 AS col0
----
-26
1558

skipif mysql # not compatible
query II rowsort label-6957
SELECT ALL - NULLIF ( - - 88, - 70 * + 86 ) + 96 + CAST ( - CASE - + 68 WHEN + + 42 / + SUM ( DISTINCT + 92 ) / + COUNT ( * ) THEN NULLIF ( 62, - 60 + - - MIN ( ALL 77 ) + + + COUNT ( * ) * - 4 ) * 51 ELSE ( 34 ) END AS INTEGER ) AS col0, 82 * 19 AS col0
----
-26
1558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6958
SELECT DISTINCT 99 * + - CASE - CASE + 24 WHEN - 58 * + CAST( - MAX( 17 ) AS SIGNED ) THEN NULL WHEN + - 84 THEN - 62 + + ( - 86 ) - + - 30 - + COUNT( * ) * + 29 * + 87 * NULLIF ( 93, - 84 ) * - COUNT( * ) / - 71 WHEN - - 91 * - - 2 + + - 32 + + 35 + - 74 * + AVG ( ALL 13 ) THEN - 90 * + 3 WHEN 64 / - 42 * - CAST( 30 AS SIGNED ) + 58 THEN 78 END WHEN + 53 * 62 THEN NULL WHEN + 58 * 93 + 37 THEN COUNT( * ) - 65 END * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT 99 * + - CASE - CASE + 24 WHEN - 58 * + CAST ( - MAX ( 17 ) AS INTEGER ) THEN NULL WHEN + - 84 THEN - 62 + + ( - 86 ) - + - 30 - + COUNT ( * ) * + 29 * + 87 * NULLIF ( 93, - 84 ) * - COUNT ( * ) / - 71 WHEN - - 91 * - - 2 + + - 32 + + 35 + - 74 * + AVG ( ALL 13 ) THEN - 90 * + 3 WHEN 64 / - 42 * - CAST ( 30 AS INTEGER ) + 58 THEN 78 END WHEN + 53 * 62 THEN NULL WHEN + 58 * 93 + 37 THEN COUNT ( * ) - 65 END * 96
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL 58 + - - COUNT ( * ) + - 33 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT ( - + 65 ) + NULLIF ( + MAX( DISTINCT - 73 ), - - COUNT( * ) ) AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-6960
SELECT ( - + 65 ) + NULLIF ( + MAX ( DISTINCT - 73 ), - - COUNT ( * ) ) AS col2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT MAX( - 36 ) * 99 AS col1
----
-3564

skipif mysql # not compatible
query I rowsort label-6961
SELECT MAX ( - 36 ) * 99 AS col1
----
-3564

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT + 81 * 72 + COUNT( + - 30 ) col1
----
5833

skipif mysql # not compatible
query I rowsort label-6962
SELECT + 81 * 72 + COUNT ( + - 30 ) col1
----
5833

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT DISTINCT 63 * - - COUNT( ALL + 64 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT 63 * - - COUNT ( ALL + 64 ) AS col1
----
63

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

skipif mysql # not compatible
query I rowsort label-6964
SELECT COUNT ( * ) * - - 34
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6965
SELECT ( - 53 ) DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-6965
SELECT ( - 53 ) / 90
----
0

query I rowsort
SELECT ALL - 49 * - + 59
----
2891

onlyif mysql # aggregate syntax: 
query II rowsort label-6967
SELECT - NULLIF ( - 77, + 81 * - + ( + 36 ) ) * - 61 * 19 AS col0, - 20 + COALESCE ( - 36, + COUNT( * ) )
----
-89243
-56

skipif mysql # not compatible
query II rowsort label-6967
SELECT - NULLIF ( - 77, + 81 * - + ( + 36 ) ) * - 61 * 19 AS col0, - 20 + COALESCE ( - 36, + COUNT ( * ) )
----
-89243
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT + CASE COUNT( * ) WHEN 21 THEN - 43 WHEN 96 + 83 THEN NULL WHEN ( - 46 ) THEN NULL END / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6969
SELECT + CASE COUNT ( * ) WHEN 21 THEN - 43 WHEN 96 + 83 THEN NULL WHEN ( - 46 ) THEN NULL END / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6970
SELECT DISTINCT + 76 + - + COUNT( * ), 55 AS col2
----
75
55

skipif mysql # not compatible
query II rowsort label-6970
SELECT DISTINCT + 76 + - + COUNT ( * ), 55 AS col2
----
75
55

query I rowsort
SELECT DISTINCT 47 * - - 99 * - - ( - - 69 ) + 54 + - + 61 AS col1
----
321050

query I rowsort
SELECT ALL - + 35 + 79 * - - 43 + 33
----
3395

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT + MIN( ALL + + 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6973
SELECT + MIN ( ALL + + 56 ) AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6974
SELECT 63 DIV + ( - 58 ) - 93 + + COUNT( * ) + 55
----
-38

skipif mysql # not compatible
query I rowsort label-6974
SELECT 63 / + ( - 58 ) - 93 + + COUNT ( * ) + 55
----
-38

query I rowsort
SELECT - 18 * - 30 AS col2
----
540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6976
SELECT ALL - + COUNT( * ) + - + CAST( - 10 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL - + COUNT ( * ) + - + CAST ( - 10 AS INTEGER )
----
9

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

skipif mysql # not compatible
query I rowsort label-6977
SELECT 55 / + COUNT ( * ) + - 65 AS col1
----
-10

query II rowsort
SELECT ALL - 80 + + 16 AS col2, + 13
----
-64
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT DISTINCT - - 18 * - 16 + COALESCE ( + ( - COUNT( * ) ), COUNT( * ) * - 80 + - 46 ) col0
----
-289

skipif mysql # not compatible
query I rowsort label-6979
SELECT DISTINCT - - 18 * - 16 + COALESCE ( + ( - COUNT ( * ) ), COUNT ( * ) * - 80 + - 46 ) col0
----
-289

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT ALL + 43 + + MAX( DISTINCT + + 93 ) * 74 * - 22 AS col0
----
-151361

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL + 43 + + MAX ( DISTINCT + + 93 ) * 74 * - 22 AS col0
----
-151361

query I rowsort
SELECT DISTINCT - ( 93 ) col2
----
-93

query II rowsort
SELECT ALL - 16 col0, NULLIF ( 29, + 47 + + 73 )
----
-16
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6983
SELECT ALL - CAST( + ( 87 ) AS SIGNED ) AS col0, 95 AS col1
----
-87
95

skipif mysql # not compatible
query II rowsort label-6983
SELECT ALL - CAST ( + ( 87 ) AS INTEGER ) AS col0, 95 AS col1
----
-87
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6984
SELECT DISTINCT - CAST( 24 AS SIGNED ) * - - 43 + - 71
----
-1103

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT - CAST ( 24 AS INTEGER ) * - - 43 + - 71
----
-1103

query I rowsort
SELECT 41 - + 7 col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT MAX( - 82 ) * - COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-6986
SELECT MAX ( - 82 ) * - COUNT ( * ) AS col1
----
82

query I rowsort
SELECT 51 - + 93
----
-42

query II rowsort
SELECT ALL 61, 48 col2
----
61
48

query I rowsort
SELECT 60 + + 78 AS col0
----
138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT DISTINCT 10 * + MAX( ALL - 18 )
----
-180

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT 10 * + MAX ( ALL - 18 )
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT MAX( DISTINCT - ( - 4 ) ) * + 52 + + COUNT( * )
----
209

skipif mysql # not compatible
query I rowsort label-6992
SELECT MAX ( DISTINCT - ( - 4 ) ) * + 52 + + COUNT ( * )
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT ALL COUNT( * ) * ( ( 91 ) ) * - - 72 * - - 8 * - 26 AS col1
----
-1362816

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL COUNT ( * ) * ( ( 91 ) ) * - - 72 * - - 8 * - 26 AS col1
----
-1362816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6994
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) * - CASE MIN( DISTINCT + 62 ) WHEN 10 THEN + 6 + - + MAX( - 55 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6994
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * - CASE MIN ( DISTINCT + 62 ) WHEN 10 THEN + 6 + - + MAX ( - 55 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ( - 11 ) * 26
----
-286

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6997
SELECT CAST( NULL AS SIGNED ) AS col1, - 75 - - 95 - 11 AS col1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-6997
SELECT CAST ( NULL AS INTEGER ) AS col1, - 75 - - 95 - 11 AS col1
----
NULL
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT COUNT( * ) + 21 col0
----
22

skipif mysql # not compatible
query I rowsort label-6998
SELECT COUNT ( * ) + 21 col0
----
22

query I rowsort
SELECT - + CASE + 20 WHEN + - 11 - - + 78 * + 69 THEN + + 55 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ALL MAX( DISTINCT 12 )
----
12

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL MAX ( DISTINCT 12 )
----
12

query I rowsort
SELECT ALL - 27 + - 83 + - + 95 AS col0
----
-205

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

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

query I rowsort
SELECT + + 58 + + - 87 AS col2
----
-29

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

query I rowsort
SELECT ALL - 72 + - ( + 2 ) AS col0
----
-74

query I rowsort
SELECT + 80 + 91 col2
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7007
SELECT - + COUNT( * ) * + CAST( - COALESCE ( - 58, 28 + - 63, + + 56 + + - ( + NULLIF ( - 44, + 79 ) ) * + CAST( NULL AS DECIMAL ) ) AS SIGNED ) - SUM( + - 72 ) + - - CAST( NULL AS SIGNED ) + - 4 * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-7007
SELECT - + COUNT ( * ) * + CAST ( - COALESCE ( - 58, 28 + - 63, + + 56 + + - ( + NULLIF ( - 44, + 79 ) ) * + CAST ( NULL AS REAL ) ) AS INTEGER ) - SUM ( + - 72 ) + - - CAST ( NULL AS INTEGER ) + - 4 * + 55
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7008
SELECT - 50 / + 73 + - + AVG ( - 68 ) + - CASE + 18 WHEN - - 83 + + - 42 + - 39 + - 19 THEN NULL WHEN 85 THEN - 20 - - - 7 - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT - 50 / + 73 + - + AVG ( - 68 ) + - CASE + 18 WHEN - - 83 + + - 42 + - 39 + - 19 THEN NULL WHEN 85 THEN - 20 - - - 7 - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL + - 25 * - - NULLIF ( 9, + - 44 ) + + - 51
----
-276

query I rowsort
SELECT + 60 * - 99 + - - ( - 39 ) AS col1
----
-5979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7011
SELECT ALL + 20 * 93 * - + 12 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL + 20 * 93 * - + 12 - + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + NULLIF ( - 92, - 99 ) + 78
----
-14

query II rowsort
SELECT DISTINCT + - 17 AS col0, - 9
----
-17
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7014
SELECT ALL + + 26 AS col2, COALESCE ( + 94, - MIN( DISTINCT + 80 ), 9, - 31 )
----
26
94

skipif mysql # not compatible
query II rowsort label-7014
SELECT ALL + + 26 AS col2, COALESCE ( + 94, - MIN ( DISTINCT + 80 ), 9, - 31 )
----
26
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7015
SELECT 47 DIV 51 + + 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7015
SELECT 47 / 51 + + 70 AS col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7016
SELECT ALL - 56 * + 10 - - 32 * 17 AS col1, COUNT( * ) + + 25 + - COUNT( * ) * - COUNT( * ) * 5 * + 95 AS col2
----
-16
501

skipif mysql # not compatible
query II rowsort label-7016
SELECT ALL - 56 * + 10 - - 32 * 17 AS col1, COUNT ( * ) + + 25 + - COUNT ( * ) * - COUNT ( * ) * 5 * + 95 AS col2
----
-16
501

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT - 67 * MIN( + + 89 ) + + - 15 + + 41 * - 6 + - SUM( ALL + 75 ) * 22 * 62 * 83 AS col0
----
-8497124

skipif mysql # not compatible
query I rowsort label-7018
SELECT - 67 * MIN ( + + 89 ) + + - 15 + + 41 * - 6 + - SUM ( ALL + 75 ) * 22 * 62 * 83 AS col0
----
-8497124

onlyif mysql # DIV for integer division: 
query I rowsort label-7019
SELECT DISTINCT + 39 DIV - - 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT + 39 / - - 55 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT - NULLIF ( 84, - COUNT( * ) + + AVG ( + - 26 ) ) - + + 35 + + + COUNT( * )
----
-118

skipif mysql # not compatible
query I rowsort label-7020
SELECT - NULLIF ( 84, - COUNT ( * ) + + AVG ( + - 26 ) ) - + + 35 + + + COUNT ( * )
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7021
SELECT - 69 DIV + - COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7021
SELECT - 69 / + - COUNT ( * ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7022
SELECT ALL - 21 * - 38 AS col0, COUNT( * ) + - - 86
----
798
87

skipif mysql # not compatible
query II rowsort label-7022
SELECT ALL - 21 * - 38 AS col0, COUNT ( * ) + - - 86
----
798
87

onlyif mysql # DIV for integer division: 
query II rowsort label-7023
SELECT ALL 87 DIV 24 col1, - 93 + - - 55 + + 80
----
3
42

skipif mysql # not compatible
query II rowsort label-7023
SELECT ALL 87 / 24 col1, - 93 + - - 55 + + 80
----
3
42

query I rowsort
SELECT DISTINCT ( + - 99 ) AS col0
----
-99

query I rowsort
SELECT ALL + 49 * 36
----
1764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7026
SELECT DISTINCT + 76 * + 12 * + COUNT( * ) * + + 67 DIV - - COUNT( * ) col2
----
61104

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT + 76 * + 12 * + COUNT ( * ) * + + 67 / - - COUNT ( * ) col2
----
61104

query I rowsort
SELECT ALL NULLIF ( + + 32, + + 11 )
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-7028
SELECT - 51 + + 66, + 29 DIV + 78 AS col2
----
15
0

skipif mysql # not compatible
query II rowsort label-7028
SELECT - 51 + + 66, + 29 / + 78 AS col2
----
15
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT + 35 * 0 * COUNT( * ) + - MIN( ALL - 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7029
SELECT + 35 * 0 * COUNT ( * ) + - MIN ( ALL - 66 ) AS col0
----
66

query I rowsort
SELECT - 3 + + 71 AS col0
----
68

query II rowsort
SELECT DISTINCT ( - 22 ), - 2 * - 30 AS col2
----
-22
60

query I rowsort
SELECT DISTINCT ( + + 19 ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT + 97 + - - 70 * + - 82 + 32 + + + 87 * - - NULLIF ( - 53, + + MIN( - 53 ) ) * + 13 - + - 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT + 97 + - - 70 * + - 82 + 32 + + + 87 * - - NULLIF ( - 53, + + MIN ( - 53 ) ) * + 13 - + - 20 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 63 + - - 24 - + 1 * - 23 AS col2
----
110

query I rowsort
SELECT - - 87 * + 46 + + 59 AS col1
----
4061

onlyif mysql # DIV for integer division: 
query I rowsort label-7036
SELECT ALL + + 64 DIV - 19 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL + + 64 / - 19 AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7037
SELECT ALL - + 2 + + 75 DIV + 84
----
-2

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL - + 2 + + 75 / + 84
----
-2

query I rowsort
SELECT DISTINCT - NULLIF ( 6, + 83 ) * - 23 * - 68 AS col0
----
-9384

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7039
SELECT ALL - + 89 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL - + 89 + + CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT + + COALESCE ( 94, 87 ) + 54 AS col2, 61 AS col0
----
148
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7041
SELECT + 91 * 43 * - - ( - + COUNT( * ) ) AS col0, 51
----
-3913
51

skipif mysql # not compatible
query II rowsort label-7041
SELECT + 91 * 43 * - - ( - + COUNT ( * ) ) AS col0, 51
----
-3913
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7042
SELECT - COALESCE ( - 16, + + 29 * ( - + 34 ) * - - 70 * + 13, + - NULLIF ( CAST( NULL AS SIGNED ), - 7 ) ), - COALESCE ( - 22, 14 * - 81 + 62 * + - 76 ) * + + 87 AS col0
----
16
1914

skipif mysql # not compatible
query II rowsort label-7042
SELECT - COALESCE ( - 16, + + 29 * ( - + 34 ) * - - 70 * + 13, + - NULLIF ( CAST ( NULL AS INTEGER ), - 7 ) ), - COALESCE ( - 22, 14 * - 81 + 62 * + - 76 ) * + + 87 AS col0
----
16
1914

onlyif mysql # DIV for integer division: 
query I rowsort label-7043
SELECT - 6 DIV 81 - - 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7043
SELECT - 6 / 81 - - 37 AS col1
----
37

query I rowsort
SELECT + + 55 * + + 20
----
1100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7045
SELECT ALL - 8 / ( + + COUNT( * ) ) * - 35 - - 85 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL - 8 / ( + + COUNT ( * ) ) * - 35 - - 85 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT DISTINCT + - MAX( ( - + 66 ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT + - MAX ( ( - + 66 ) ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT + CASE ( - - NULLIF ( - ( COUNT( * ) ), - 54 ) ) WHEN - - 68 / - - 58 + + 48 + 94 / + + 60 * - 51 THEN 58 END * 37 + - 70 + - 56 - + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-7047
SELECT + CASE ( - - NULLIF ( - ( COUNT ( * ) ), - 54 ) ) WHEN - - 68 / - - 58 + + 48 + 94 / + + 60 * - 51 THEN 58 END * 37 + - 70 + - 56 - + - 8
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT ALL 99 * + - 22 * + 98 * + 52 * - NULLIF ( + - 25, - 30 / + + COUNT( * ) ) AS col1
----
-277477200

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL 99 * + - 22 * + 98 * + 52 * - NULLIF ( + - 25, - 30 / + + COUNT ( * ) ) AS col1
----
-277477200

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7052
SELECT ( + SUM ( - + 64 ) )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7053
SELECT + CAST( + MAX( DISTINCT - + 49 ) AS SIGNED ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7053
SELECT + CAST ( + MAX ( DISTINCT - + 49 ) AS INTEGER ) AS col2
----
-49

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7055
SELECT DISTINCT + 18 AS col0, COUNT( DISTINCT 7 )
----
18
1

skipif mysql # not compatible
query II rowsort label-7055
SELECT DISTINCT + 18 AS col0, COUNT ( DISTINCT 7 )
----
18
1

query I rowsort
SELECT - 27 * + 90
----
-2430

query II rowsort
SELECT + NULLIF ( + 64, COALESCE ( - 96, 77 ) * + ( - - 79 ) + 46 / + 20 ) - + + 14, + 13 AS col1
----
50
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7058
SELECT 14 DIV - MAX( - 33 ) * - 81 * + 17 + - 11 + 38 DIV + 79 + + + ( - + 51 )
----
-62

skipif mysql # not compatible
query I rowsort label-7058
SELECT 14 / - MAX ( - 33 ) * - 81 * + 17 + - 11 + 38 / + 79 + + + ( - + 51 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT 21 * - - COALESCE ( COUNT( * ), - 71 * + 89 * ( + 45 ) + 72, 36 ) col1
----
21

skipif mysql # not compatible
query I rowsort label-7059
SELECT 21 * - - COALESCE ( COUNT ( * ), - 71 * + 89 * ( + 45 ) + 72, 36 ) col1
----
21

query I rowsort
SELECT 95 + 80 * + 27
----
2255

onlyif mysql # aggregate syntax: 
query II rowsort label-7061
SELECT - 84, COUNT( * ) col0
----
-84
1

skipif mysql # not compatible
query II rowsort label-7061
SELECT - 84, COUNT ( * ) col0
----
-84
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT 74 DIV 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7062
SELECT 74 / 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT ALL - COUNT( * ) + - + 17 * - 11 AS col2
----
186

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL - COUNT ( * ) + - + 17 * - 11 AS col2
----
186

query I rowsort
SELECT ALL + 36 * - 15 AS col2
----
-540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT DISTINCT - + 0 + CAST( - 30 AS SIGNED ) * - 16
----
480

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT - + 0 + CAST ( - 30 AS INTEGER ) * - 16
----
480

query I rowsort
SELECT 54 + + 7 * 93
----
705

onlyif mysql # aggregate syntax: 
query II rowsort label-7067
SELECT ALL - 45 + - 22 + 26 * + - COUNT( * ) * 31 AS col0, - 72 col1
----
-873
-72

skipif mysql # not compatible
query II rowsort label-7067
SELECT ALL - 45 + - 22 + 26 * + - COUNT ( * ) * 31 AS col0, - 72 col1
----
-873
-72

query II rowsort
SELECT - 38 AS col1, 55
----
-38
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7069
SELECT COALESCE ( + 94, + - 30 * - ( + 11 ) * - 95 ) + - - COUNT( 21 ), - 8 col2
----
95
-8

skipif mysql # not compatible
query II rowsort label-7069
SELECT COALESCE ( + 94, + - 30 * - ( + 11 ) * - 95 ) + - - COUNT ( 21 ), - 8 col2
----
95
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT + 15 + - + MAX( - CASE + 7 WHEN 1 THEN NULL ELSE + ( 50 ) END ) * + - 41 AS col2
----
-2035

skipif mysql # not compatible
query I rowsort label-7070
SELECT + 15 + - + MAX ( - CASE + 7 WHEN 1 THEN NULL ELSE + ( 50 ) END ) * + - 41 AS col2
----
-2035

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

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

query I rowsort
SELECT ALL - 4 * + - 32 * + - 10
----
-1280

query I rowsort
SELECT 54 * + + 6
----
324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7074
SELECT + 78 + - ( + CAST( + MAX( + + 41 ) AS SIGNED ) ) * + + 37 - + ( - + COUNT( * ) ) + - + 62 AS col2
----
-1500

skipif mysql # not compatible
query I rowsort label-7074
SELECT + 78 + - ( + CAST ( + MAX ( + + 41 ) AS INTEGER ) ) * + + 37 - + ( - + COUNT ( * ) ) + - + 62 AS col2
----
-1500

query I rowsort
SELECT 37 * + 59 + 65 * 38
----
4653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7076
SELECT - CAST( - 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-7076
SELECT - CAST ( - 52 AS INTEGER )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7077
SELECT + + ( - COUNT( + 43 ) ) * 13 + 53 + AVG ( - CAST( NULL AS SIGNED ) ) * + 79 * - COUNT( * ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT + + ( - COUNT ( + 43 ) ) * 13 + 53 + AVG ( - CAST ( NULL AS INTEGER ) ) * + 79 * - COUNT ( * ) * - COUNT ( * ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT + CASE + 56 WHEN + 90 * - ( - NULLIF ( 25, + COUNT( * ) ) ) + - CASE 6 WHEN - - 10 THEN + - 51 END THEN MIN( DISTINCT 22 ) WHEN 85 THEN 73 * + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7079
SELECT + CASE + 56 WHEN + 90 * - ( - NULLIF ( 25, + COUNT ( * ) ) ) + - CASE 6 WHEN - - 10 THEN + - 51 END THEN MIN ( DISTINCT 22 ) WHEN 85 THEN 73 * + 72 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7080
SELECT 44 DIV + + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7080
SELECT 44 / + + 48 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7081
SELECT 80 DIV + + 16
----
5

skipif mysql # not compatible
query I rowsort label-7081
SELECT 80 / + + 16
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7082
SELECT ALL 52 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL 52 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT ALL - 21 + - COUNT( * ) * - 64
----
43

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL - 21 + - COUNT ( * ) * - 64
----
43

query I rowsort
SELECT ALL 46 + + + ( - 90 )
----
-44

query II rowsort
SELECT DISTINCT - 21 AS col2, - 65 AS col1
----
-21
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-7086
SELECT + 13 col2, + SUM( + ( - 44 ) ) AS col0
----
13
-44

skipif mysql # not compatible
query II rowsort label-7086
SELECT + 13 col2, + SUM ( + ( - 44 ) ) AS col0
----
13
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7087
SELECT + 68, + COALESCE ( + + 96, - + 87 * - 8 * + ( 11 ) DIV + 4 * - 7 - - COUNT( * ) ) AS col0
----
68
96

skipif mysql # not compatible
query II rowsort label-7087
SELECT + 68, + COALESCE ( + + 96, - + 87 * - 8 * + ( 11 ) / + 4 * - 7 - - COUNT ( * ) ) AS col0
----
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7088
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) + + COUNT( * ) + + 4 * + + 83 * - ( - MAX( + - 24 ) ) + + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) + + 4 * + + 83 * - ( - MAX ( + - 24 ) ) + + 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7089
SELECT + 27 * 99 DIV - 54 + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-7089
SELECT + 27 * 99 / - 54 + - COUNT ( * )
----
-50

query I rowsort
SELECT ALL 56 * 54 AS col1
----
3024

query I rowsort
SELECT 95 + + 73 * + 80 AS col2
----
5935

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7093
SELECT ALL MIN( ALL + 72 ) + CAST( + 58 AS SIGNED ) * COALESCE ( - - 99, 26 )
----
5814

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL MIN ( ALL + 72 ) + CAST ( + 58 AS INTEGER ) * COALESCE ( - - 99, 26 )
----
5814

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7094
SELECT CAST( NULL AS DECIMAL ) + AVG ( DISTINCT - 1 ) - - 23 * + 83 * - + 98 * - 14 + 54 - - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT CAST ( NULL AS REAL ) + AVG ( DISTINCT - 1 ) - - 23 * + 83 * - + 98 * - 14 + 54 - - - 87
----
NULL

query II rowsort
SELECT DISTINCT - 61 AS col1, - 40
----
-61
-40

query I rowsort
SELECT 20 + - 64 col0
----
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT DISTINCT + ( COUNT( - 86 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT + ( COUNT ( - 86 ) ) AS col2
----
1

query I rowsort
SELECT + 59 + - + 5 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT - 68 * - 77 * 29 + + COUNT( * ) + - SUM( ALL - + 79 ) * + 16 * - - 82 AS col2
----
255493

skipif mysql # not compatible
query I rowsort label-7100
SELECT - 68 * - 77 * 29 + + COUNT ( * ) + - SUM ( ALL - + 79 ) * + 16 * - - 82 AS col2
----
255493

query I rowsort
SELECT NULLIF ( + - 42, + - ( + ( - + 55 ) ) )
----
-42

query I rowsort
SELECT ALL + + 22 * 3 AS col0
----
66

query I rowsort
SELECT + 35 * 32 * 53 AS col2
----
59360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7104
SELECT ALL + 22 DIV COUNT( * ) + - 85 + 92 + - - ( 73 ) * 6 * + - 61 AS col1
----
-26689

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL + 22 / COUNT ( * ) + - 85 + 92 + - - ( 73 ) * 6 * + - 61 AS col1
----
-26689

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT ALL COALESCE ( + COALESCE ( - 8, - 94 * + + 77 + - + MIN( + + 77 ), + 81 + 97 + - + NULLIF ( + 4, - 22 ) ), + 85 )
----
-8

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL COALESCE ( + COALESCE ( - 8, - 94 * + + 77 + - + MIN ( + + 77 ), + 81 + 97 + - + NULLIF ( + 4, - 22 ) ), + 85 )
----
-8

query II rowsort
SELECT ALL 90 AS col0, ( - + 67 )
----
90
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-7107
SELECT ALL - 96 AS col1, 3 * 25 DIV - 88 col0
----
-96
0

skipif mysql # not compatible
query II rowsort label-7107
SELECT ALL - 96 AS col1, 3 * 25 / - 88 col0
----
-96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT 54 - 66 * ( + 77 ) + + ( + + 99 ) - - COUNT( * )
----
-4928

skipif mysql # not compatible
query I rowsort label-7108
SELECT 54 - 66 * ( + 77 ) + + ( + + 99 ) - - COUNT ( * )
----
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT ALL SUM( + 11 ) * COUNT( * ) * 1
----
11

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL SUM ( + 11 ) * COUNT ( * ) * 1
----
11

query I rowsort
SELECT 63 - + 35
----
28

query I rowsort
SELECT DISTINCT 49 * + 71 + + - 78
----
3401

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT DISTINCT 23 * + 75 + + 42 + 35 - - COUNT( * ) * - 23
----
1779

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT 23 * + 75 + + 42 + 35 - - COUNT ( * ) * - 23
----
1779

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7113
SELECT COUNT( * ) DIV 26 AS col2, + 8 AS col1
----
0
8

skipif mysql # not compatible
query II rowsort label-7113
SELECT COUNT ( * ) / 26 AS col2, + 8 AS col1
----
0
8

query I rowsort
SELECT ALL 35 * + 80 + ( 79 ) col2
----
2879

query I rowsort
SELECT DISTINCT - 45 * 59
----
-2655

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT MAX( + - 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-7116
SELECT MAX ( + - 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7117
SELECT ALL ( COUNT( * ) ) * - 96 DIV - 99 * SUM( DISTINCT 3 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL ( COUNT ( * ) ) * - 96 / - 99 * SUM ( DISTINCT 3 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7118
SELECT ALL + 55 - + 65 - - COALESCE ( + - 25, + COUNT( * ) * + + 98 * + + 55 ) AS col1, ( + CASE 19 WHEN + SUM( + 66 ) THEN + + 31 / + 14 / - 56 + + 90 - - + MIN( DISTINCT + + 76 ) * - - 54 + + 79 * + COUNT( * ) WHEN + 7 / COUNT( * ) * - - 10 * + NULLIF ( - COUNT( * ), - 45 + - ( 23 ) ) THEN NULL END ) AS col0
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-7118
SELECT ALL + 55 - + 65 - - COALESCE ( + - 25, + COUNT ( * ) * + + 98 * + + 55 ) AS col1, ( + CASE 19 WHEN + SUM ( + 66 ) THEN + + 31 / + 14 / - 56 + + 90 - - + MIN ( DISTINCT + + 76 ) * - - 54 + + 79 * + COUNT ( * ) WHEN + 7 / COUNT ( * ) * - - 10 * + NULLIF ( - COUNT ( * ), - 45 + - ( 23 ) ) THEN NULL END ) AS col0
----
-35
NULL

query I rowsort
SELECT COALESCE ( + - 54, + 43 * + ( - 38 ) + + 47 ) * - 21 + + 55
----
1189

query II rowsort
SELECT - 70 * + 66 AS col0, - 43
----
-4620
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7121
SELECT + + 48 + + COALESCE ( + MIN( DISTINCT + CAST( - 91 AS SIGNED ) ), 0, + ( - ( + 13 ) ) ) * - COUNT( * ) + + + 55 AS col2
----
194

skipif mysql # not compatible
query I rowsort label-7121
SELECT + + 48 + + COALESCE ( + MIN ( DISTINCT + CAST ( - 91 AS INTEGER ) ), 0, + ( - ( + 13 ) ) ) * - COUNT ( * ) + + + 55 AS col2
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT DISTINCT + + 53 * ( - MIN( ( + 97 ) ) ) * - 59 AS col1
----
303319

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT + + 53 * ( - MIN ( ( + 97 ) ) ) * - 59 AS col1
----
303319

query II rowsort
SELECT + + 98 * + ( + + 26 ) AS col1, - 12 col1
----
2548
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7124
SELECT ALL + CASE - MIN( DISTINCT - 91 ) WHEN + 33 - - 69 THEN + + CASE - + 39 WHEN + + 84 / + 84 * - - 25 THEN - - 30 WHEN CASE - 33 WHEN 50 + 30 + 14 THEN + + 33 + 74 + + 90 + + 43 / + COALESCE ( - - 84, - 79 ) * - ( CAST( NULL AS SIGNED ) ) ELSE NULL END THEN - COUNT( * ) END END * + + 86 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL + CASE - MIN ( DISTINCT - 91 ) WHEN + 33 - - 69 THEN + + CASE - + 39 WHEN + + 84 / + 84 * - - 25 THEN - - 30 WHEN CASE - 33 WHEN 50 + 30 + 14 THEN + + 33 + 74 + + 90 + + 43 / + COALESCE ( - - 84, - 79 ) * - ( CAST ( NULL AS INTEGER ) ) ELSE NULL END THEN - COUNT ( * ) END END * + + 86 col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT + COUNT( * ) - + - SUM( DISTINCT 54 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-7126
SELECT + COUNT ( * ) - + - SUM ( DISTINCT 54 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT DISTINCT - NULLIF ( 38, - 72 - - SUM( DISTINCT 25 ) + 99 )
----
-38

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT - NULLIF ( 38, - 72 - - SUM ( DISTINCT 25 ) + 99 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT + ( + COUNT( * ) ) + - + 2 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7128
SELECT + ( + COUNT ( * ) ) + - + 2 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7129
SELECT + 60 + + - 56 AS col1, + 65 + COUNT( - + 26 ) AS col0
----
4
66

skipif mysql # not compatible
query II rowsort label-7129
SELECT + 60 + + - 56 AS col1, + 65 + COUNT ( - + 26 ) AS col0
----
4
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT - - COUNT( * ) * - + 79 * - NULLIF ( - COUNT( * ), 19 - 94 + + 83 + + + 52 / - COUNT( * ) * - + 4 * + 68 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-7130
SELECT - - COUNT ( * ) * - + 79 * - NULLIF ( - COUNT ( * ), 19 - 94 + + 83 + + + 52 / - COUNT ( * ) * - + 4 * + 68 ) AS col1
----
-79

query I rowsort
SELECT - 73 + + 41 - - 21
----
-11

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7133
SELECT ALL + ( MAX( ALL + + 67 ) ) * - 69 * - - 67 AS col1, + 76 AS col1
----
-309741
76

skipif mysql # not compatible
query II rowsort label-7133
SELECT ALL + ( MAX ( ALL + + 67 ) ) * - 69 * - - 67 AS col1, + 76 AS col1
----
-309741
76

onlyif mysql # DIV for integer division: 
query II rowsort label-7134
SELECT + - 55 DIV + 71, + 76 AS col2
----
0
76

skipif mysql # not compatible
query II rowsort label-7134
SELECT + - 55 / + 71, + 76 AS col2
----
0
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7135
SELECT ALL NULLIF ( - 3, CAST( NULL AS SIGNED ) - 34 ) + 17
----
14

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL NULLIF ( - 3, CAST ( NULL AS INTEGER ) - 34 ) + 17
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT DISTINCT + 76 * + + MIN( + + 90 ) AS col2
----
6840

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT + 76 * + + MIN ( + + 90 ) AS col2
----
6840

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT ALL - COUNT( * ) + + 91 + + 48 + + 36 - + + 1
----
173

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL - COUNT ( * ) + + 91 + + 48 + + 36 - + + 1
----
173

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

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

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

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

query I rowsort
SELECT ALL 16 * 18 AS col1
----
288

query I rowsort
SELECT + 13 * 71 + - 44 * 76
----
-2421

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7143
SELECT ALL 63 / + + CAST( + COUNT( * ) AS SIGNED ) + + CASE - 38 WHEN 31 - 98 * - + 34 THEN - 55 * 73 + - + 70 WHEN 37 + + COUNT( * ) THEN NULL END AS col2, + 2 AS col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-7143
SELECT ALL 63 / + + CAST ( + COUNT ( * ) AS INTEGER ) + + CASE - 38 WHEN 31 - 98 * - + 34 THEN - 55 * 73 + - + 70 WHEN 37 + + COUNT ( * ) THEN NULL END AS col2, + 2 AS col0
----
NULL
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7144
SELECT DISTINCT - 71 * + 48 + - + 75 + + CASE CAST( + 15 AS SIGNED ) WHEN 26 * - - AVG ( 82 ) * - 99 + 35 - + - COALESCE ( + COUNT( 62 ), COUNT( * ) + - - 48, - 2 ) * 64 THEN + 63 + 96 ELSE NULL END + - 14 + - CAST( - CAST( + 49 AS SIGNED ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT - 71 * + 48 + - + 75 + + CASE CAST ( + 15 AS INTEGER ) WHEN 26 * - - AVG ( 82 ) * - 99 + 35 - + - COALESCE ( + COUNT ( 62 ), COUNT ( * ) + - - 48, - 2 ) * 64 THEN + 63 + 96 ELSE NULL END + - 14 + - CAST ( - CAST ( + 49 AS INTEGER ) AS INTEGER ) col1
----
NULL

query II rowsort
SELECT ALL + 59 AS col2, - 70 AS col2
----
59
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ALL NULLIF ( - - 41, - COUNT( * ) * 22 + COUNT( * ) * 48 * - 45 + + + 81 - + - 14 ) * + + 27 * 82 + + 53 AS col1
----
90827

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL NULLIF ( - - 41, - COUNT ( * ) * 22 + COUNT ( * ) * 48 * - 45 + + + 81 - + - 14 ) * + + 27 * 82 + + 53 AS col1
----
90827

query I rowsort
SELECT - 31 * - COALESCE ( 5, + - 27 ) + + 97 + 81 AS col2
----
333

query I rowsort
SELECT 59 * 81 + - + 90 + - + 75 + + ( - 32 ) * + + 33 + 70 * + - 60 + + 95
----
-547

query I rowsort
SELECT - 97 * + 83
----
-8051

query II rowsort
SELECT + 78 AS col0, 10
----
78
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7151
SELECT - 14 + - 35 * - + 90 AS col2, + ( 12 ) * + COUNT( * ) + + ( + COUNT( * ) )
----
3136
13

skipif mysql # not compatible
query II rowsort label-7151
SELECT - 14 + - 35 * - + 90 AS col2, + ( 12 ) * + COUNT ( * ) + + ( + COUNT ( * ) )
----
3136
13

query I rowsort
SELECT - 28 + 74 + + + 39 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT - COUNT( DISTINCT + 47 ) * + 83 col1
----
-83

skipif mysql # not compatible
query I rowsort label-7153
SELECT - COUNT ( DISTINCT + 47 ) * + 83 col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT + + SUM( - - 99 ) * - 17 col1
----
-1683

skipif mysql # not compatible
query I rowsort label-7154
SELECT + + SUM ( - - 99 ) * - 17 col1
----
-1683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7155
SELECT ALL - + ( 5 ) * + CASE - 3 WHEN + 13 - - 26 THEN NULL WHEN - 63 / 15 + 31 + - + CAST( NULL AS SIGNED ) * + 99 * - ( 82 ) * - 38 / 63 * - 91 + - + 63 + 93 THEN COUNT( * ) END / + ( 6 ) * - COALESCE ( - ( + 11 ), + 12, + MIN( ALL 20 ) / + - MIN( ( 24 ) ) ) / - - 81 * + + 59 + 21 - + 52 - - 58 * - 16 / + COUNT( * ) + + + 50 + + 42 + + COALESCE ( + 80, 79 ) + 40 + 90 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL - + ( 5 ) * + CASE - 3 WHEN + 13 - - 26 THEN NULL WHEN - 63 / 15 + 31 + - + CAST ( NULL AS INTEGER ) * + 99 * - ( 82 ) * - 38 / 63 * - 91 + - + 63 + 93 THEN COUNT ( * ) END / + ( 6 ) * - COALESCE ( - ( + 11 ), + 12, + MIN ( ALL 20 ) / + - MIN ( ( 24 ) ) ) / - - 81 * + + 59 + 21 - + 52 - - 58 * - 16 / + COUNT ( * ) + + + 50 + + 42 + + COALESCE ( + 80, 79 ) + 40 + 90 col0
----
NULL

query I rowsort
SELECT - COALESCE ( 89, 81 ) * - 99 * - 25 + - 1 col2
----
-220276

query I rowsort
SELECT - - 27 * - 8
----
-216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7158
SELECT - 17 + + CAST( NULL AS SIGNED ) + - MAX( - ( - 69 ) ) * + + 20 * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT - 17 + + CAST ( NULL AS INTEGER ) + - MAX ( - ( - 69 ) ) * + + 20 * + 48
----
NULL

query I rowsort
SELECT - - 25 * 48 * - 34 col2
----
-40800

query I rowsort
SELECT DISTINCT NULLIF ( 12, 17 - + 73 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT + COUNT( ALL - 43 ) * 5 * + 34 * 21 col1
----
3570

skipif mysql # not compatible
query I rowsort label-7161
SELECT + COUNT ( ALL - 43 ) * 5 * + 34 * 21 col1
----
3570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7162
SELECT + COALESCE ( + ( + ( - 31 ) ), - 13 * + - CASE - - 84 WHEN - CAST( NULL AS SIGNED ) THEN - + 45 * - - MAX( DISTINCT + 54 ) + COUNT( * ) WHEN 37 THEN - - 16 END - - - ( + 2 ) + 35 + + NULLIF ( + COUNT( * ), - NULLIF ( - 7, - 55 / 10 * - - 49 ) + + 22 ) * - + 48 * + CAST( NULL AS SIGNED ) * + 14 + + 62 ) AS col1, ( - + COUNT( * ) ) AS col1
----
-31
-1

skipif mysql # not compatible
query II rowsort label-7162
SELECT + COALESCE ( + ( + ( - 31 ) ), - 13 * + - CASE - - 84 WHEN - CAST ( NULL AS INTEGER ) THEN - + 45 * - - MAX ( DISTINCT + 54 ) + COUNT ( * ) WHEN 37 THEN - - 16 END - - - ( + 2 ) + 35 + + NULLIF ( + COUNT ( * ), - NULLIF ( - 7, - 55 / 10 * - - 49 ) + + 22 ) * - + 48 * + CAST ( NULL AS INTEGER ) * + 14 + + 62 ) AS col1, ( - + COUNT ( * ) ) AS col1
----
-31
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT DISTINCT + - COUNT( * ) + + 17 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT + - COUNT ( * ) + + 17 AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7164
SELECT - - 8, - COUNT( DISTINCT + 85 ) AS col0
----
8
-1

skipif mysql # not compatible
query II rowsort label-7164
SELECT - - 8, - COUNT ( DISTINCT + 85 ) AS col0
----
8
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT - COALESCE ( 32, - 77 ) + + COUNT( * ) * + MIN( - 96 ) + + - 3
----
-131

skipif mysql # not compatible
query I rowsort label-7165
SELECT - COALESCE ( 32, - 77 ) + + COUNT ( * ) * + MIN ( - 96 ) + + - 3
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7166
SELECT + CAST( NULL AS SIGNED ) * 36 * + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT + CAST ( NULL AS INTEGER ) * 36 * + 86 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7167
SELECT DISTINCT COUNT( * ) + + 35 DIV CAST( + COUNT( * ) AS SIGNED ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT COUNT ( * ) + + 35 / CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
36

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

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

query I rowsort
SELECT DISTINCT 98 + 27
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT DISTINCT 22 * COUNT( * ) * 33 * 80 * + - 10 AS col0
----
-580800

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT 22 * COUNT ( * ) * 33 * 80 * + - 10 AS col0
----
-580800

onlyif mysql # DIV for integer division: 
query I rowsort label-7171
SELECT ALL 33 - 17 DIV - - 38 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL 33 - 17 / - - 38 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT ALL - NULLIF ( + 25, - 72 * - - COUNT( * ) + + 93 + + + 35 ) * - 76 + + 46 AS col0
----
1946

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL - NULLIF ( + 25, - 72 * - - COUNT ( * ) + + 93 + + + 35 ) * - 76 + + 46 AS col0
----
1946

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT ALL + 73 - - - NULLIF ( + COUNT( * ), - 45 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL + 73 - - - NULLIF ( + COUNT ( * ), - 45 ) AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT 73 DIV 49 DIV - COALESCE ( + 35, ( + 86 ) ) - + 88 * + + 19
----
-1672

skipif mysql # not compatible
query I rowsort label-7174
SELECT 73 / 49 / - COALESCE ( + 35, ( + 86 ) ) - + 88 * + + 19
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT ( - 84 ) * COUNT( * ) + MAX( - - 38 )
----
-46

skipif mysql # not compatible
query I rowsort label-7175
SELECT ( - 84 ) * COUNT ( * ) + MAX ( - - 38 )
----
-46

query I rowsort
SELECT 46 * ( + 96 ) AS col0
----
4416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7177
SELECT DISTINCT - CASE + + 98 WHEN COALESCE ( - 27, + ( 88 ), 19 ) - + COALESCE ( - 93, - ( COALESCE ( + + CASE WHEN NOT - NULLIF ( 82, - - 19 + - 22 ) NOT BETWEEN NULL AND NULL THEN ( - 36 ) * + + 86 - + + 12 / - CASE 45 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + 8 END + + COALESCE ( + SUM( ALL 30 ), COUNT( * ) + + 28 + - AVG ( ALL + ( - 83 ) ) + COUNT( * ), + - 98 ) ELSE NULL END, + + 77 ) ), + + NULLIF ( - 70, 28 + 31 ) * COUNT( * ) ) THEN 77 * 26 - + 17 * + 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT - CASE + + 98 WHEN COALESCE ( - 27, + ( 88 ), 19 ) - + COALESCE ( - 93, - ( COALESCE ( + + CASE WHEN NOT - NULLIF ( 82, - - 19 + - 22 ) NOT BETWEEN NULL AND NULL THEN ( - 36 ) * + + 86 - + + 12 / - CASE 45 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + 8 END + + COALESCE ( + SUM ( ALL 30 ), COUNT ( * ) + + 28 + - AVG ( ALL + ( - 83 ) ) + COUNT ( * ), + - 98 ) ELSE NULL END, + + 77 ) ), + + NULLIF ( - 70, 28 + 31 ) * COUNT ( * ) ) THEN 77 * 26 - + 17 * + 15 END
----
NULL

query I rowsort
SELECT 97 * - 21 AS col1
----
-2037

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7180
SELECT - - 30 * - 82 / 43 * + 5 + - 61 - 47 + + + CASE CAST( NULL AS SIGNED ) WHEN 45 * - MIN( DISTINCT 95 ) THEN - COUNT( * ) + + CAST( NULL AS SIGNED ) WHEN + SUM( ALL + 22 ) THEN NULL WHEN - 85 THEN NULL END + 17 * - - COUNT( * ) * + 46 AS col0, 26 AS col2
----
NULL
26

skipif mysql # not compatible
query II rowsort label-7180
SELECT - - 30 * - 82 / 43 * + 5 + - 61 - 47 + + + CASE CAST ( NULL AS INTEGER ) WHEN 45 * - MIN ( DISTINCT 95 ) THEN - COUNT ( * ) + + CAST ( NULL AS INTEGER ) WHEN + SUM ( ALL + 22 ) THEN NULL WHEN - 85 THEN NULL END + 17 * - - COUNT ( * ) * + 46 AS col0, 26 AS col2
----
NULL
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7181
SELECT + CAST( - 32 AS SIGNED ) AS col1, 47 AS col0
----
-32
47

skipif mysql # not compatible
query II rowsort label-7181
SELECT + CAST ( - 32 AS INTEGER ) AS col1, 47 AS col0
----
-32
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT COALESCE ( + ( + 66 ), 49 ) + - 94 + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-7182
SELECT COALESCE ( + ( + 66 ), 49 ) + - 94 + COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT ALL + 85 + + ( - COUNT( * ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL + 85 + + ( - COUNT ( * ) ) AS col0
----
84

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

skipif mysql # not compatible
query I rowsort label-7184
SELECT COUNT ( * ) * 97
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7185
SELECT - 81 + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-7185
SELECT - 81 + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-82

query II rowsort
SELECT DISTINCT - CASE + 52 WHEN ( + 91 ) THEN NULL ELSE - COALESCE ( - 77, + - 77, + 75 ) END + 84 AS col2, + 3
----
7
3

query I rowsort
SELECT ALL + ( + 19 ) + - 57 - + - 68 col0
----
30

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7189
SELECT + 52 * - COUNT( * ) + - 98 * + + 4, 17 col0
----
-444
17

skipif mysql # not compatible
query II rowsort label-7189
SELECT + 52 * - COUNT ( * ) + - 98 * + + 4, 17 col0
----
-444
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7190
SELECT ALL - - COUNT( * ) + - CAST( + 43 AS SIGNED ) DIV - 94 col0, + 17
----
1
17

skipif mysql # not compatible
query II rowsort label-7190
SELECT ALL - - COUNT ( * ) + - CAST ( + 43 AS INTEGER ) / - 94 col0, + 17
----
1
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7191
SELECT DISTINCT + + CAST( + 44 AS SIGNED ) * - 83 AS col1
----
-3652

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT + + CAST ( + 44 AS INTEGER ) * - 83 AS col1
----
-3652

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT ALL 61 + + SUM( DISTINCT 32 ) + 80 * + + 81 + - MIN( 25 )
----
6548

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL 61 + + SUM ( DISTINCT 32 ) + 80 * + + 81 + - MIN ( 25 )
----
6548

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT + COUNT( * ) - + 96 + - + 80
----
-175

skipif mysql # not compatible
query I rowsort label-7193
SELECT + COUNT ( * ) - + 96 + - + 80
----
-175

query I rowsort
SELECT 15 + + + 83 * - 92 AS col0
----
-7621

query I rowsort
SELECT DISTINCT - 58 + - + 93 AS col2
----
-151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7196
SELECT ALL + COUNT( * ) + ( + 65 ) + 64 * - + 48 + - COALESCE ( 88, + COUNT( * ), - COUNT( 22 ) + CAST( - 32 AS SIGNED ) ) - - COUNT( ALL + + 73 )
----
-3093

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL + COUNT ( * ) + ( + 65 ) + 64 * - + 48 + - COALESCE ( 88, + COUNT ( * ), - COUNT ( 22 ) + CAST ( - 32 AS INTEGER ) ) - - COUNT ( ALL + + 73 )
----
-3093

query I rowsort
SELECT 79 + - 97
----
-18

query II rowsort
SELECT 42, 25 AS col1
----
42
25

query I rowsort
SELECT ALL + 4 - + - 48 AS col0
----
52

query I rowsort
SELECT 98 + + 68
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT DISTINCT - COUNT( ALL + - 12 ) * 80
----
-80

skipif mysql # not compatible
query I rowsort label-7201
SELECT DISTINCT - COUNT ( ALL + - 12 ) * 80
----
-80

query I rowsort
SELECT ALL 16 - - 98
----
114

query I rowsort
SELECT 14 * + 26
----
364

query I rowsort
SELECT ALL 27 * + + 73
----
1971

query I rowsort
SELECT 85 + - 3
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7206
SELECT + 65 AS col2, 79 * - 95 * - CASE - + SUM( ALL + 80 ) WHEN - 93 THEN NULL WHEN 11 * 39 * 10 * + - 39 + - - ( - + NULLIF ( + COUNT( * ), MIN( DISTINCT + 27 ) * - COALESCE ( 96, - 57 ) + 97 ) ) * - 44 THEN NULL ELSE NULLIF ( - 47, - + 78 * + - 52 ) DIV - 75 * + CAST( 71 AS SIGNED ) * + - CASE - 90 WHEN COUNT( * ) THEN - + 3 WHEN + ( 47 ) THEN NULL ELSE + 58 END * + + 7 + + 51 * 32 * + COUNT( * ) * + 39 - - 64 + 48 END - - 65
----
65
478518865

skipif mysql # not compatible
query II rowsort label-7206
SELECT + 65 AS col2, 79 * - 95 * - CASE - + SUM ( ALL + 80 ) WHEN - 93 THEN NULL WHEN 11 * 39 * 10 * + - 39 + - - ( - + NULLIF ( + COUNT ( * ), MIN ( DISTINCT + 27 ) * - COALESCE ( 96, - 57 ) + 97 ) ) * - 44 THEN NULL ELSE NULLIF ( - 47, - + 78 * + - 52 ) / - 75 * + CAST ( 71 AS INTEGER ) * + - CASE - 90 WHEN COUNT ( * ) THEN - + 3 WHEN + ( 47 ) THEN NULL ELSE + 58 END * + + 7 + + 51 * 32 * + COUNT ( * ) * + 39 - - 64 + 48 END - - 65
----
65
478518865

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

skipif mysql # not compatible
query I rowsort label-7207
SELECT SUM ( + 50 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7208
SELECT ALL 80 - 87 + CAST( - COALESCE ( + + COUNT( ALL + 6 ), - 37 * + 19 ) AS SIGNED ) + - 15 * + 53
----
-803

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL 80 - 87 + CAST ( - COALESCE ( + + COUNT ( ALL + 6 ), - 37 * + 19 ) AS INTEGER ) + - 15 * + 53
----
-803

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7209
SELECT 4 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT 4 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7210
SELECT 96 DIV - ( - ( + + COUNT( * ) ) ) + - + ( + COUNT( * ) ) + + 35 AS col0
----
130

skipif mysql # not compatible
query I rowsort label-7210
SELECT 96 / - ( - ( + + COUNT ( * ) ) ) + - + ( + COUNT ( * ) ) + + 35 AS col0
----
130

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7212
SELECT ALL - 84 AS col0, - 6 + + - 85 + + 95 + - 27 + - CAST( - 87 AS SIGNED ) + + + 51 + + COUNT( * ) + + + AVG ( ALL - ( - + 80 ) ) * 3 * - + CASE 75 WHEN - + 0 + + - 51 THEN - 20 / - 63 - 50 END + + + 94 col1
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-7212
SELECT ALL - 84 AS col0, - 6 + + - 85 + + 95 + - 27 + - CAST ( - 87 AS INTEGER ) + + + 51 + + COUNT ( * ) + + + AVG ( ALL - ( - + 80 ) ) * 3 * - + CASE 75 WHEN - + 0 + + - 51 THEN - 20 / - 63 - 50 END + + + 94 col1
----
-84
NULL

query I rowsort
SELECT ALL + 49 * + 68 col2
----
3332

onlyif mysql # DIV for integer division: 
query I rowsort label-7214
SELECT DISTINCT - 38 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-7214
SELECT DISTINCT - 38 / 79
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7215
SELECT DISTINCT + - 50 * - 76 * 75 col2, 7 * - MAX( ALL - - 14 )
----
285000
-98

skipif mysql # not compatible
query II rowsort label-7215
SELECT DISTINCT + - 50 * - 76 * 75 col2, 7 * - MAX ( ALL - - 14 )
----
285000
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT MIN( - 60 ) * 86 AS col2
----
-5160

skipif mysql # not compatible
query I rowsort label-7216
SELECT MIN ( - 60 ) * 86 AS col2
----
-5160

query I rowsort
SELECT + 13 + - 31 AS col2
----
-18

query II rowsort
SELECT 21 AS col0, 73 AS col2
----
21
73

query I rowsort
SELECT - 79 * - + 57 AS col1
----
4503

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT ALL COALESCE ( - 23, - + 76 ) + + + MAX( ALL 33 )
----
10

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL COALESCE ( - 23, - + 76 ) + + + MAX ( ALL 33 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7221
SELECT DISTINCT - 31 + + + 73 * - CAST( - 18 AS SIGNED ) + + 94 AS col1, ( + 40 )
----
1377
40

skipif mysql # not compatible
query II rowsort label-7221
SELECT DISTINCT - 31 + + + 73 * - CAST ( - 18 AS INTEGER ) + + 94 AS col1, ( + 40 )
----
1377
40

query I rowsort
SELECT ALL + 73 + - 11 * + 69 + - 57
----
-743

onlyif mysql # DIV for integer division: 
query I rowsort label-7223
SELECT 37 * + 6 DIV + 1 AS col1
----
222

skipif mysql # not compatible
query I rowsort label-7223
SELECT 37 * + 6 / + 1 AS col1
----
222

query I rowsort
SELECT DISTINCT - - ( - + 87 ) + + - 94 * NULLIF ( - 44, + + 20 )
----
4049

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7226
SELECT - - CAST( - 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-7226
SELECT - - CAST ( - 88 AS INTEGER )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-7227
SELECT ALL - 37 - - 85 + - 67 DIV + + 98 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL - 37 - - 85 + - 67 / + + 98 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7228
SELECT - 5 * - - COALESCE ( - COUNT( * ), + + CASE 73 WHEN + 3 THEN + 81 END * - 80 * CASE - 87 WHEN + 55 THEN NULL WHEN + NULLIF ( + - 9, + - 71 + ( + 97 ) + + CAST( NULL AS SIGNED ) * - + 90 ) * + COUNT( * ) + + 15 - - COALESCE ( - COALESCE ( - - 0, 0 * + CAST( NULL AS SIGNED ) / + 12 / + CAST( NULL AS SIGNED ) ), 66 ) THEN 49 + + 82 * 18 END - - 14 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7228
SELECT - 5 * - - COALESCE ( - COUNT ( * ), + + CASE 73 WHEN + 3 THEN + 81 END * - 80 * CASE - 87 WHEN + 55 THEN NULL WHEN + NULLIF ( + - 9, + - 71 + ( + 97 ) + + CAST ( NULL AS INTEGER ) * - + 90 ) * + COUNT ( * ) + + 15 - - COALESCE ( - COALESCE ( - - 0, 0 * + CAST ( NULL AS INTEGER ) / + 12 / + CAST ( NULL AS INTEGER ) ), 66 ) THEN 49 + + 82 * 18 END - - 14 ) AS col0
----
5

query II rowsort
SELECT - 86 col0, - 13
----
-86
-13

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

skipif mysql # not compatible
query II rowsort label-7230
SELECT 41 AS col1, - COUNT ( * )
----
41
-1

query I rowsort
SELECT ALL 58 - - ( + ( 43 ) ) + - 68 AS col0
----
33

query I rowsort
SELECT ALL + 72 - 90 + + 40 col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT ALL + 0 * - MIN( 31 )
----
0

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL + 0 * - MIN ( 31 )
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT - NULLIF ( 52, + 50 ) * MAX( ALL + 71 ) * + COUNT( * )
----
-3692

skipif mysql # not compatible
query I rowsort label-7236
SELECT - NULLIF ( 52, + 50 ) * MAX ( ALL + 71 ) * + COUNT ( * )
----
-3692

onlyif mysql # DIV for integer division: 
query I rowsort label-7237
SELECT - 39 + 24 + - + 14 * + + 5 DIV - + 99 + NULLIF ( + - 35, - 76 ) * + 78
----
-2745

skipif mysql # not compatible
query I rowsort label-7237
SELECT - 39 + 24 + - + 14 * + + 5 / - + 99 + NULLIF ( + - 35, - 76 ) * + 78
----
-2745

onlyif mysql # aggregate syntax: 
query II rowsort label-7238
SELECT - 10 * 79 * - - 68 * + 94 AS col2, COUNT( * ) + + 21
----
-5049680
22

skipif mysql # not compatible
query II rowsort label-7238
SELECT - 10 * 79 * - - 68 * + 94 AS col2, COUNT ( * ) + + 21
----
-5049680
22

query I rowsort
SELECT - 15 + - 56 AS col0
----
-71

query II rowsort
SELECT DISTINCT COALESCE ( - 5, + - 71, - 55 ), - 24 AS col0
----
-5
-24

query I rowsort
SELECT - 62 - 49 AS col2
----
-111

query I rowsort
SELECT ALL 74 * - 96
----
-7104

onlyif mysql # aggregate syntax: 
query II rowsort label-7243
SELECT DISTINCT 71 AS col0, 85 + + COUNT( * )
----
71
86

skipif mysql # not compatible
query II rowsort label-7243
SELECT DISTINCT 71 AS col0, 85 + + COUNT ( * )
----
71
86

query I rowsort
SELECT - 38 + - 13 col0
----
-51

query I rowsort
SELECT + 32 * + - ( - 54 ) AS col2
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT ALL - MAX( 70 ) * - - 43 * - - COUNT( * ) + + + COUNT( * )
----
-3009

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL - MAX ( 70 ) * - - 43 * - - COUNT ( * ) + + + COUNT ( * )
----
-3009

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7248
SELECT - ( 37 ) DIV + + 52
----
0

skipif mysql # not compatible
query I rowsort label-7248
SELECT - ( 37 ) / + + 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT DISTINCT + + MAX( + + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-7249
SELECT DISTINCT + + MAX ( + + 52 )
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7250
SELECT + + ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT + + ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7251
SELECT + - CASE - + 92 WHEN + CAST( NULL AS SIGNED ) * - - 36 * + 94 THEN NULL WHEN + - COUNT( * ) THEN + 60 END / - - CASE 56 WHEN + 24 THEN NULL WHEN + 25 * 54 + - 29 - 83 * + CASE WHEN NOT NULL IS NULL THEN 44 END THEN NULL ELSE - + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT + - CASE - + 92 WHEN + CAST ( NULL AS INTEGER ) * - - 36 * + 94 THEN NULL WHEN + - COUNT ( * ) THEN + 60 END / - - CASE 56 WHEN + 24 THEN NULL WHEN + 25 * 54 + - 29 - 83 * + CASE WHEN NOT NULL IS NULL THEN 44 END THEN NULL ELSE - + 50 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7252
SELECT ALL + CASE + COUNT( * ) WHEN + 9 THEN - CAST( - 83 AS SIGNED ) WHEN 20 THEN 73 DIV - 50 + - 26 ELSE 92 * - 44 END * - 86 + - COUNT( * ) + - ( 42 )
----
348085

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL + CASE + COUNT ( * ) WHEN + 9 THEN - CAST ( - 83 AS INTEGER ) WHEN 20 THEN 73 / - 50 + - 26 ELSE 92 * - 44 END * - 86 + - COUNT ( * ) + - ( 42 )
----
348085

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT DISTINCT + - COALESCE ( + COALESCE ( - 58, ( + - COUNT( * ) ), + - 22 ), 53 * + - 91 * 84 * - 7 + + + 4 - + - 69 + + 77 + + - 87 - + - 61 ) col0
----
58

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT + - COALESCE ( + COALESCE ( - 58, ( + - COUNT ( * ) ), + - 22 ), 53 * + - 91 * 84 * - 7 + + + 4 - + - 69 + + 77 + + - 87 - + - 61 ) col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT ALL 56 * MIN( - 94 ) + 94 AS col1
----
-5170

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL 56 * MIN ( - 94 ) + 94 AS col1
----
-5170

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT ALL - 44 * + + ( + 83 ) + + COUNT( * ) * - - 49
----
-3603

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL - 44 * + + ( + 83 ) + + COUNT ( * ) * - - 49
----
-3603

query I rowsort
SELECT ALL - 33 / + 90 + - ( + + CASE 49 WHEN - + 70 * + 90 THEN + 10 END )
----
NULL

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

query I rowsort
SELECT 52 * + + 20 + + 15
----
1055

query I rowsort
SELECT + 13 * 11
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7260
SELECT ALL + 77 * ( - 82 ) * - 1 - - MIN( + 29 ) AS col2, MIN( + - 19 ) DIV - 20 + + 74 * + - 47 AS col2
----
6343
-3478

skipif mysql # not compatible
query II rowsort label-7260
SELECT ALL + 77 * ( - 82 ) * - 1 - - MIN ( + 29 ) AS col2, MIN ( + - 19 ) / - 20 + + 74 * + - 47 AS col2
----
6343
-3478

query II rowsort
SELECT + + 98, - NULLIF ( + 48, 55 + - 6 ) AS col0
----
98
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7262
SELECT + + COUNT( * ) * + - 84 - - 22 + - 13 * - 22 * - - NULLIF ( - 15, ( + - CAST( - CAST( - 19 AS SIGNED ) AS SIGNED ) ) + + 73 + COUNT( * ) ) + - ( CAST( + 64 AS SIGNED ) ) AS col0
----
-4416

skipif mysql # not compatible
query I rowsort label-7262
SELECT + + COUNT ( * ) * + - 84 - - 22 + - 13 * - 22 * - - NULLIF ( - 15, ( + - CAST ( - CAST ( - 19 AS INTEGER ) AS INTEGER ) ) + + 73 + COUNT ( * ) ) + - ( CAST ( + 64 AS INTEGER ) ) AS col0
----
-4416

query I rowsort
SELECT + - 86 + - 77 + ( + 17 )
----
-146

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

skipif mysql # not compatible
query I rowsort label-7264
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT 17 * - 52 AS col1
----
-884

query II rowsort
SELECT - 22 + ( 16 ), 25 + + 52 AS col1
----
-6
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT - ( - - COALESCE ( - 95, - COUNT( * ) - + 9 * + 19 * - COALESCE ( COUNT( * ), + 83 ) + - CAST( 72 AS SIGNED ), + 47 ) ) col1
----
95

skipif mysql # not compatible
query I rowsort label-7267
SELECT - ( - - COALESCE ( - 95, - COUNT ( * ) - + 9 * + 19 * - COALESCE ( COUNT ( * ), + 83 ) + - CAST ( 72 AS INTEGER ), + 47 ) ) col1
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-7268
SELECT - 98 + - + 79 AS col0, 64 * + - SUM( ALL + 32 ) * 7
----
-177
-14336

skipif mysql # not compatible
query II rowsort label-7268
SELECT - 98 + - + 79 AS col0, 64 * + - SUM ( ALL + 32 ) * 7
----
-177
-14336

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

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

query II rowsort
SELECT + NULLIF ( + 64, + - 88 ) * + ( + 88 ) AS col0, 86 AS col0
----
5632
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT - 16 * + - MIN( DISTINCT - - 33 )
----
528

skipif mysql # not compatible
query I rowsort label-7271
SELECT - 16 * + - MIN ( DISTINCT - - 33 )
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT - 74 + 54 + - 56 + - COUNT( + ( - - 67 ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-7272
SELECT - 74 + 54 + - 56 + - COUNT ( + ( - - 67 ) ) AS col2
----
-77

query I rowsort
SELECT DISTINCT + 23 * 69
----
1587

query III rowsort
SELECT + 62 + 50 * - 36 * + + 39 * 11 AS col0, - 5 * + 8 + + 17 + + ( + 68 ) AS col0, + 25 * + 6 * - - 98 * + 12 AS col2
----
-772138
45
176400

query I rowsort
SELECT - 80 * + - 30 AS col2
----
2400

query I rowsort
SELECT - 38 + + 16
----
-22

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL + COUNT ( * ) + - 43 AS col2
----
-42

query I rowsort
SELECT + 20 + - 63 - - 48 + + - 73
----
-68

query II rowsort
SELECT DISTINCT - 47 + - 53 * + 64, - 1 AS col2
----
-3439
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7282
SELECT - + ( + 24 ) DIV - 24 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7282
SELECT - + ( + 24 ) / - 24 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7283
SELECT 92 DIV + COUNT( * ) + + + 31 * - - 73 + SUM( - 85 ) + 92 DIV + + 46
----
2272

skipif mysql # not compatible
query I rowsort label-7283
SELECT 92 / + COUNT ( * ) + + + 31 * - - 73 + SUM ( - 85 ) + 92 / + + 46
----
2272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7284
SELECT - + 17 + - COUNT( * ) - + - CAST( NULL AS SIGNED ) + - NULLIF ( - 69, + 25 ) * + + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7284
SELECT - + 17 + - COUNT ( * ) - + - CAST ( NULL AS INTEGER ) + - NULLIF ( - 69, + 25 ) * + + 15 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7285
SELECT ALL 4 DIV + - 69 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7285
SELECT ALL 4 / + - 69 + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7286
SELECT ALL - 9 DIV + + 72 + 19 * - COUNT( + 29 )
----
-19

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL - 9 / + + 72 + 19 * - COUNT ( + 29 )
----
-19

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7288
SELECT DISTINCT 74 / + - 93 * ( 2 ) * - 76 - COUNT( * ) * 65 + + COUNT( + NULLIF ( - 97, - 13 + - 30 ) ) - - + CASE 73 WHEN 82 / + CAST( NULL AS DECIMAL ) + - + 89 * - 37 THEN + 65 END * - - 56 * - 15 * - - 65 * ( 36 ) - + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT 74 / + - 93 * ( 2 ) * - 76 - COUNT ( * ) * 65 + + COUNT ( + NULLIF ( - 97, - 13 + - 30 ) ) - - + CASE 73 WHEN 82 / + CAST ( NULL AS REAL ) + - + 89 * - 37 THEN + 65 END * - - 56 * - 15 * - - 65 * ( 36 ) - + 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7289
SELECT + CAST( NULL AS SIGNED ) / 2 * - + MIN( - 77 ) / - 53 / + 25 + - 25 AS col1, 93 AS col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-7289
SELECT + CAST ( NULL AS INTEGER ) / 2 * - + MIN ( - 77 ) / - 53 / + 25 + - 25 AS col1, 93 AS col1
----
NULL
93

query I rowsort
SELECT ( 10 ) * + 91
----
910

query II rowsort
SELECT 67 + + 49, - 5 - - 95 col1
----
116
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT + COALESCE ( + ( - 1 ), + COUNT( ALL - - 18 ) + + - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-7292
SELECT + COALESCE ( + ( - 1 ), + COUNT ( ALL - - 18 ) + + - 72 )
----
-1

query I rowsort
SELECT - 57 * - - 58 + 34 AS col0
----
-3272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7294
SELECT + 33 + - + 28 AS col0, + 63 + MAX( DISTINCT CAST( NULL AS SIGNED ) )
----
5
NULL

skipif mysql # not compatible
query II rowsort label-7294
SELECT + 33 + - + 28 AS col0, + 63 + MAX ( DISTINCT CAST ( NULL AS INTEGER ) )
----
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7295
SELECT - 94, + CAST( - - 86 AS SIGNED ) AS col1
----
-94
86

skipif mysql # not compatible
query II rowsort label-7295
SELECT - 94, + CAST ( - - 86 AS INTEGER ) AS col1
----
-94
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7296
SELECT ALL NULLIF ( + ( CASE + + 67 WHEN - - 26 THEN NULL WHEN + 80 THEN + ( + 47 ) * - 41 + CAST( 45 AS SIGNED ) END ), - 14 ) * + SUM( - 69 ) * MIN( DISTINCT + 56 ) * - + COUNT( * ) + CASE + - ( 23 ) WHEN 19 THEN - - 6 * + 42 + - AVG ( ALL - + 42 ) WHEN - SUM( + 34 ) THEN NULL WHEN 50 THEN + - COUNT( * ) ELSE NULL END + + - 19 + - 73 - + 18 + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL NULLIF ( + ( CASE + + 67 WHEN - - 26 THEN NULL WHEN + 80 THEN + ( + 47 ) * - 41 + CAST ( 45 AS INTEGER ) END ), - 14 ) * + SUM ( - 69 ) * MIN ( DISTINCT + 56 ) * - + COUNT ( * ) + CASE + - ( 23 ) WHEN 19 THEN - - 6 * + 42 + - AVG ( ALL - + 42 ) WHEN - SUM ( + 34 ) THEN NULL WHEN 50 THEN + - COUNT ( * ) ELSE NULL END + + - 19 + - 73 - + 18 + 15
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT DISTINCT COUNT( * ) * + + 66 * - 22
----
-1452

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT COUNT ( * ) * + + 66 * - 22
----
-1452

query I rowsort
SELECT DISTINCT 92 + 80 AS col1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT ALL MAX( - - 29 ) + 22
----
51

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL MAX ( - - 29 ) + 22
----
51

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

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

query I rowsort
SELECT DISTINCT 56 + - ( + ( COALESCE ( - - 87, 78 * 96, - 49 ) ) ) * + + 37 + 22 col2
----
-3141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7304
SELECT 55 + + 3 + - CASE + + 93 WHEN - + 83 THEN 33 * + + 74 WHEN + 19 - + CAST( NULL AS SIGNED ) THEN 20 ELSE COUNT( * ) END AS col0, 44 * - CASE WHEN NOT - 81 IS NOT NULL THEN - 43 ELSE 91 END
----
57
-4004

skipif mysql # not compatible
query II rowsort label-7304
SELECT 55 + + 3 + - CASE + + 93 WHEN - + 83 THEN 33 * + + 74 WHEN + 19 - + CAST ( NULL AS INTEGER ) THEN 20 ELSE COUNT ( * ) END AS col0, 44 * - CASE WHEN NOT - 81 IS NOT NULL THEN - 43 ELSE 91 END
----
57
-4004

query I rowsort
SELECT ALL + - 77 * - - 26
----
-2002

onlyif mysql # DIV for integer division: 
query I rowsort label-7306
SELECT 74 DIV + 13
----
5

skipif mysql # not compatible
query I rowsort label-7306
SELECT 74 / + 13
----
5

query I rowsort
SELECT + 23 + - 79 - - - 78 + 37 AS col0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7308
SELECT DISTINCT - - 64 + 55 + + 66 DIV - + ( - + 98 ) AS col2
----
119

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT - - 64 + 55 + + 66 / - + ( - + 98 ) AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT ALL 15 * + 98 * - COUNT( * ) + - 9
----
-1479

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL 15 * + 98 * - COUNT ( * ) + - 9
----
-1479

query I rowsort
SELECT DISTINCT 19 - - 67 AS col1
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-7311
SELECT - 44, 99 DIV + + 37 - 94 AS col2
----
-44
-92

skipif mysql # not compatible
query II rowsort label-7311
SELECT - 44, 99 / + + 37 - 94 AS col2
----
-44
-92

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

query I rowsort
SELECT DISTINCT + + 72 - - - 22 + + + 91 * - + 30 + 15
----
-2665

query I rowsort
SELECT - COALESCE ( - + ( + + 64 ), + ( - 93 ), + 7 - + 83 )
----
64

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

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

query I rowsort
SELECT 23 - - - 28 col1
----
-5

query I rowsort
SELECT 82 * NULLIF ( + - 95, - + 51 )
----
-7790

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT - COUNT( * ) - - - 6 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-7318
SELECT - COUNT ( * ) - - - 6 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL 17 - + COUNT( * ) + - COUNT( * ) * 99 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL 17 - + COUNT ( * ) + - COUNT ( * ) * 99 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-7320
SELECT DISTINCT - NULLIF ( + - 63, COUNT( * ) ), - 17 col2
----
63
-17

skipif mysql # not compatible
query II rowsort label-7320
SELECT DISTINCT - NULLIF ( + - 63, COUNT ( * ) ), - 17 col2
----
63
-17

query I rowsort
SELECT ALL + 59 * + 18 AS col2
----
1062

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7323
SELECT DISTINCT - - 49, NULLIF ( + - COUNT( * ), + 74 ) AS col0
----
49
-1

skipif mysql # not compatible
query II rowsort label-7323
SELECT DISTINCT - - 49, NULLIF ( + - COUNT ( * ), + 74 ) AS col0
----
49
-1

query I rowsort
SELECT ALL ( + 23 ) * + 75 AS col1
----
1725

onlyif mysql # aggregate syntax: 
query II rowsort label-7325
SELECT COUNT( * ) - - - 48 + 61 + + - 22 AS col1, 86 AS col1
----
-8
86

skipif mysql # not compatible
query II rowsort label-7325
SELECT COUNT ( * ) - - - 48 + 61 + + - 22 AS col1, 86 AS col1
----
-8
86

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

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT + COUNT ( * ) * - 59 * 83 AS col0
----
-4897

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT 98 + + - 43 * - + 12 + COUNT( DISTINCT - NULLIF ( + + 61, 93 + 42 ) ) AS col0
----
615

skipif mysql # not compatible
query I rowsort label-7327
SELECT 98 + + - 43 * - + 12 + COUNT ( DISTINCT - NULLIF ( + + 61, 93 + 42 ) ) AS col0
----
615

onlyif mysql # DIV for integer division: 
query I rowsort label-7328
SELECT 4 + + 3 DIV - 67
----
4

skipif mysql # not compatible
query I rowsort label-7328
SELECT 4 + + 3 / - 67
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7329
SELECT ALL 51 DIV - COUNT( * ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL 51 / - COUNT ( * ) AS col2
----
-51

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

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

query I rowsort
SELECT ALL + 51 + + - ( 44 ) AS col0
----
7

query I rowsort
SELECT ALL 44 + + 18 + + 57
----
119

query I rowsort
SELECT ALL 3 + + - 23
----
-20

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7335
SELECT ALL 15 DIV + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL 15 / + 77 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7336
SELECT 55 DIV 2
----
27

skipif mysql # not compatible
query I rowsort label-7336
SELECT 55 / 2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7337
SELECT DISTINCT 50 * - + CAST( + COALESCE ( - - 42, + - 12 + - 90, + 62 ) AS SIGNED ) AS col2
----
-2100

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT 50 * - + CAST ( + COALESCE ( - - 42, + - 12 + - 90, + 62 ) AS INTEGER ) AS col2
----
-2100

query I rowsort
SELECT ALL 8 + + ( + + NULLIF ( 76, - 26 ) ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT ALL 67 + ( - 62 ) + + COUNT( * ) * + 85 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL 67 + ( - 62 ) + + COUNT ( * ) * + 85 AS col1
----
90

query I rowsort
SELECT 74 * + - 35 * + ( - + 37 ) * - 50 col0
----
-4791500

query I rowsort
SELECT 45 + 55 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT - COUNT( * ) * + + 52 * 94 * - COUNT( * ) * + + 62 AS col1
----
303056

skipif mysql # not compatible
query I rowsort label-7342
SELECT - COUNT ( * ) * + + 52 * 94 * - COUNT ( * ) * + + 62 AS col1
----
303056

query I rowsort
SELECT ALL + - ( + 28 ) * - 30 AS col2
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT - MAX( - - 9 ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-7344
SELECT - MAX ( - - 9 ) col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7345
SELECT ALL CAST( NULL AS SIGNED ) - 51 - + - 59 + + 90 + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL CAST ( NULL AS INTEGER ) - 51 - + - 59 + + 90 + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT 81 * - ( MIN( ALL + 68 ) ) AS col0
----
-5508

skipif mysql # not compatible
query I rowsort label-7346
SELECT 81 * - ( MIN ( ALL + 68 ) ) AS col0
----
-5508

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT DISTINCT 22 - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT 22 - COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-7348
SELECT DISTINCT + MAX( ALL - + 18 ) AS col0, - 13 col1
----
-18
-13

skipif mysql # not compatible
query II rowsort label-7348
SELECT DISTINCT + MAX ( ALL - + 18 ) AS col0, - 13 col1
----
-18
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT + - CASE + + 4 WHEN + 79 * - 46 THEN + COUNT( * ) WHEN 78 THEN NULL END + + 67 + 14 * - 85 + - + 68 * - COUNT( * ) * + + ( - ( 17 ) ) * - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT + - CASE + + 4 WHEN + 79 * - 46 THEN + COUNT ( * ) WHEN 78 THEN NULL END + + 67 + 14 * - 85 + - + 68 * - COUNT ( * ) * + + ( - ( 17 ) ) * - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7350
SELECT ALL 49 DIV + COUNT( * ) col0
----
49

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL 49 / + COUNT ( * ) col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT + 49 * + + ( CASE + 6 WHEN - + 52 + + COUNT( * ) THEN NULL WHEN + MIN( ALL - 83 ) - - 63 - - 22 + 6 * - 21 THEN + + 77 ELSE - 10 END ) + 16
----
-474

skipif mysql # not compatible
query I rowsort label-7351
SELECT + 49 * + + ( CASE + 6 WHEN - + 52 + + COUNT ( * ) THEN NULL WHEN + MIN ( ALL - 83 ) - - 63 - - 22 + 6 * - 21 THEN + + 77 ELSE - 10 END ) + 16
----
-474

query I rowsort
SELECT + CASE + + 60 WHEN + 76 + + 87 THEN 36 / - + 7 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7353
SELECT + 61 DIV + 46 + + - 18 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7353
SELECT + 61 / + 46 + + - 18 AS col2
----
-17

query I rowsort
SELECT ALL + 93 * + 3 + + 83 AS col1
----
362

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT DISTINCT COUNT( * ) * - - 45 + + 41 * + - 74 * - 25 AS col0
----
75895

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT COUNT ( * ) * - - 45 + + 41 * + - 74 * - 25 AS col0
----
75895

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

skipif mysql # not compatible
query I rowsort label-7356
SELECT - 73 * - COUNT ( * ) + - - 15 AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7357
SELECT - 99 + + + 31 + 77 + + + CAST( + + 30 AS SIGNED ) DIV + 49
----
9

skipif mysql # not compatible
query I rowsort label-7357
SELECT - 99 + + + 31 + 77 + + + CAST ( + + 30 AS INTEGER ) / + 49
----
9

query I rowsort
SELECT - 75 + + 18
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT + 87 * 26 * + NULLIF ( + 73, COUNT( * ) * - - 72 )
----
165126

skipif mysql # not compatible
query I rowsort label-7359
SELECT + 87 * 26 * + NULLIF ( + 73, COUNT ( * ) * - - 72 )
----
165126

onlyif mysql # aggregate syntax: 
query II rowsort label-7360
SELECT - COUNT( * ) * 51 + + ( - 37 ) + + 23 AS col0, + 5 AS col1
----
-65
5

skipif mysql # not compatible
query II rowsort label-7360
SELECT - COUNT ( * ) * 51 + + ( - 37 ) + + 23 AS col0, + 5 AS col1
----
-65
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7361
SELECT + 92, - COUNT( * ) DIV - 76 * 1 AS col2
----
92
0

skipif mysql # not compatible
query II rowsort label-7361
SELECT + 92, - COUNT ( * ) / - 76 * 1 AS col2
----
92
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7362
SELECT DISTINCT + COUNT( * ) * ( CAST( NULL AS SIGNED ) ) * 64 * - + 63 + + 88 * + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT + COUNT ( * ) * ( CAST ( NULL AS INTEGER ) ) * 64 * - + 63 + + 88 * + - 11
----
NULL

query I rowsort
SELECT DISTINCT - 92 * 15 AS col0
----
-1380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7364
SELECT - 16 * - ( CAST( - - 43 AS SIGNED ) ) * + 59
----
40592

skipif mysql # not compatible
query I rowsort label-7364
SELECT - 16 * - ( CAST ( - - 43 AS INTEGER ) ) * + 59
----
40592

query I rowsort
SELECT DISTINCT + 93 * + - 65 + 43 AS col0
----
-6002

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT - 80 * + 83 * - COUNT( ALL + 82 )
----
6640

skipif mysql # not compatible
query I rowsort label-7366
SELECT - 80 * + 83 * - COUNT ( ALL + 82 )
----
6640

query I rowsort
SELECT - 85 * - 92
----
7820

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT DISTINCT - 74 * + COUNT( ALL + 58 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT - 74 * + COUNT ( ALL + 58 ) AS col0
----
-74

query I rowsort
SELECT ALL + 20 - + 58
----
-38

query II rowsort
SELECT - 69, 27 * 5 + + 92 AS col1
----
-69
227

query I rowsort
SELECT - 50 - + 90 AS col0
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT DISTINCT CASE + 55 WHEN + + COUNT( * ) THEN + 45 ELSE - 14 END AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT CASE + 55 WHEN + + COUNT ( * ) THEN + 45 ELSE - 14 END AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL + - COUNT( * ) - + 70 + - - CASE - COUNT( * ) WHEN + 49 THEN NULL WHEN - - 10 THEN - + 6 / 7 * - 59 + + COUNT( * ) + - ( - NULLIF ( - 10, + 49 + - + 39 + 67 * + - 39 * - 2 * - 48 + + 16 + - - 75 * + 70 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL + - COUNT ( * ) - + 70 + - - CASE - COUNT ( * ) WHEN + 49 THEN NULL WHEN - - 10 THEN - + 6 / 7 * - 59 + + COUNT ( * ) + - ( - NULLIF ( - 10, + 49 + - + 39 + 67 * + - 39 * - 2 * - 48 + + 16 + - - 75 * + 70 ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7374
SELECT DISTINCT 49 DIV + + 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT 49 / + + 59 AS col0
----
0

query I rowsort
SELECT + + 55 * 8 + + 16 + - + 62
----
394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7376
SELECT DISTINCT - 16 DIV + + COALESCE ( 29, + 94, + + 67 * - + 35 * + + 47 + - - 66 * COALESCE ( + 29, + 15 + - COUNT( * ) ) * + - 11 DIV + - 75 DIV - + 47 )
----
0

skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT - 16 / + + COALESCE ( 29, + 94, + + 67 * - + 35 * + + 47 + - - 66 * COALESCE ( + 29, + 15 + - COUNT ( * ) ) * + - 11 / + - 75 / - + 47 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT DISTINCT SUM( - 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT SUM ( - 2 ) AS col2
----
-2

query I rowsort
SELECT + ( + 28 ) * - 31 + - 74
----
-942

query I rowsort
SELECT ALL 33 * - 67 AS col1
----
-2211

query I rowsort
SELECT ALL 38 * 13 AS col1
----
494

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

skipif mysql # not compatible
query I rowsort label-7381
SELECT - 7 * COUNT ( * )
----
-7

query I rowsort
SELECT + 77 * + 31
----
2387

query I rowsort
SELECT + 21 + - + 10 AS col0
----
11

query I rowsort
SELECT ALL NULLIF ( 24, + + 79 / - 72 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT ALL - 64 * + + ( + + MAX( ALL 81 ) )
----
-5184

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL - 64 * + + ( + + MAX ( ALL 81 ) )
----
-5184

query I rowsort
SELECT DISTINCT + + COALESCE ( + 28, - + 19 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT + ( COUNT( * ) ) * + - 72 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-7387
SELECT + ( COUNT ( * ) ) * + - 72 AS col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT + CAST( + 9 AS SIGNED ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7388
SELECT + CAST ( + 9 AS INTEGER ) AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7389
SELECT ALL + 59 DIV + 70 + - 51 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL + 59 / + 70 + - 51 AS col0
----
-51

query I rowsort
SELECT + 87 - + 22
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-7391
SELECT DISTINCT 5 DIV 36 + COALESCE ( + + 88, + 74 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT 5 / 36 + COALESCE ( + + 88, + 74 ) AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7392
SELECT + CAST( COALESCE ( - 1, + - 18 + - ( - 16 ) + - + 84, 8 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7392
SELECT + CAST ( COALESCE ( - 1, + - 18 + - ( - 16 ) + - + 84, 8 ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7393
SELECT ALL - COUNT( CASE ( - - 53 ) WHEN - - 95 THEN - 45 ELSE - 47 * + 68 END ) * 55 + + 75 + + 20 + - 24 + - 16 + + 9 * + 83 * - 81 DIV + ( - COALESCE ( - COUNT( * ), + CAST( 72 AS SIGNED ) ) ) AS col1, - 34 * - COUNT( * ) col2
----
-60507
34

skipif mysql # not compatible
query II rowsort label-7393
SELECT ALL - COUNT ( CASE ( - - 53 ) WHEN - - 95 THEN - 45 ELSE - 47 * + 68 END ) * 55 + + 75 + + 20 + - 24 + - 16 + + 9 * + 83 * - 81 / + ( - COALESCE ( - COUNT ( * ), + CAST ( 72 AS INTEGER ) ) ) AS col1, - 34 * - COUNT ( * ) col2
----
-60507
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT ALL 98 * - ( + + COUNT( * ) ) * - + COUNT( * ) + - + 91 + + 70 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL 98 * - ( + + COUNT ( * ) ) * - + COUNT ( * ) + - + 91 + + 70 AS col2
----
77

query I rowsort
SELECT + 33 * + 63 AS col2
----
2079

onlyif mysql # aggregate syntax: 
query II rowsort label-7396
SELECT ALL COUNT( * ) * - 31 col0, 86 AS col1
----
-31
86

skipif mysql # not compatible
query II rowsort label-7396
SELECT ALL COUNT ( * ) * - 31 col0, 86 AS col1
----
-31
86

query I rowsort
SELECT ALL 98 * - 33 * + - ( - 93 ) AS col1
----
-300762

query II rowsort
SELECT 88 * - 17 + + 44 + 6, - COALESCE ( + 78, + 1 ) - - + ( 57 ) AS col2
----
-1446
-21

query I rowsort
SELECT - 10 * 2 + - 34 AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7400
SELECT + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) - 67 / + 17 AS col0, 80 - 59
----
NULL
21

skipif mysql # not compatible
query II rowsort label-7400
SELECT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) - 67 / + 17 AS col0, 80 - 59
----
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT ALL + 66 * + NULLIF ( + 82, + ( - - COUNT( * ) ) ) - + COUNT( * ) AS col2
----
5411

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL + 66 * + NULLIF ( + 82, + ( - - COUNT ( * ) ) ) - + COUNT ( * ) AS col2
----
5411

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7403
SELECT DISTINCT + 34 DIV 91 DIV - 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT + 34 / 91 / - 13 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT COALESCE ( 92, - COUNT( * ) )
----
92

skipif mysql # not compatible
query I rowsort label-7404
SELECT COALESCE ( 92, - COUNT ( * ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT - COUNT( DISTINCT - 21 ) + - 46 + + 53 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-7405
SELECT - COUNT ( DISTINCT - 21 ) + - 46 + + 53 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7406
SELECT ALL + 16 DIV - COUNT( * ) AS col2, + COUNT( * ) AS col1
----
-16
1

skipif mysql # not compatible
query II rowsort label-7406
SELECT ALL + 16 / - COUNT ( * ) AS col2, + COUNT ( * ) AS col1
----
-16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT DISTINCT COUNT( ALL - 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT COUNT ( ALL - 34 ) AS col2
----
1

query I rowsort
SELECT ALL - ( + - 84 ) * + 8 - 63 + 30 + + + 9 * - 70
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT DISTINCT COUNT( * ) * - 0 - 64 col0
----
-64

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT COUNT ( * ) * - 0 - 64 col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7410
SELECT ALL - ( + 87 ) * + 75 + - 90 + + ( + - 45 ) + 97 - - ( + - 13 ) * - - 61 + + 83 * CAST( NULL AS SIGNED ) * 84 * - 5 * + - MAX( ALL + ( + 74 ) ) - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL - ( + 87 ) * + 75 + - 90 + + ( + - 45 ) + 97 - - ( + - 13 ) * - - 61 + + 83 * CAST ( NULL AS INTEGER ) * 84 * - 5 * + - MAX ( ALL + ( + 74 ) ) - 83
----
NULL

query II rowsort
SELECT - - 21 AS col2, 79 AS col0
----
21
79

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

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

query I rowsort
SELECT DISTINCT - 87 * - 63 AS col1
----
5481

onlyif mysql # aggregate syntax: 
query II rowsort label-7414
SELECT - + 98 AS col0, 68 * ( - COUNT( * ) )
----
-98
-68

skipif mysql # not compatible
query II rowsort label-7414
SELECT - + 98 AS col0, 68 * ( - COUNT ( * ) )
----
-98
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT - MIN( 7 ) + - 25 * - + 57 * + 1 AS col2
----
1418

skipif mysql # not compatible
query I rowsort label-7415
SELECT - MIN ( 7 ) + - 25 * - + 57 * + 1 AS col2
----
1418

query I rowsort
SELECT + 1 + ( + 53 )
----
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7417
SELECT ALL CASE - 29 WHEN + 22 * CASE + + 19 WHEN 86 THEN + 1 WHEN + 60 THEN + 38 WHEN ( - - 28 ) * + - 21 * 53 + ( + 13 ) * + 46 THEN - 42 ELSE + - 33 END THEN NULL WHEN + + CAST( + ( 58 ) AS SIGNED ) + - 55 THEN 59 ELSE 91 DIV + 43 END col1
----
2

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL CASE - 29 WHEN + 22 * CASE + + 19 WHEN 86 THEN + 1 WHEN + 60 THEN + 38 WHEN ( - - 28 ) * + - 21 * 53 + ( + 13 ) * + 46 THEN - 42 ELSE + - 33 END THEN NULL WHEN + + CAST ( + ( 58 ) AS INTEGER ) + - 55 THEN 59 ELSE 91 / + 43 END col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7418
SELECT DISTINCT + 95 AS col2, SUM( - 23 ) col0
----
95
-23

skipif mysql # not compatible
query II rowsort label-7418
SELECT DISTINCT + 95 AS col2, SUM ( - 23 ) col0
----
95
-23

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

skipif mysql # not compatible
query II rowsort label-7419
SELECT DISTINCT - COUNT ( * ), - 49 AS col2
----
-1
-49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7421
SELECT - 94 DIV 57 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7421
SELECT - 94 / 57 AS col1
----
-1

query I rowsort
SELECT 90 + + ( - 12 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT ALL + - 98 + + - COUNT( * ) * 77 * - + 15 + COALESCE ( - + 18, 33, - COUNT( * ) )
----
1039

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL + - 98 + + - COUNT ( * ) * 77 * - + 15 + COALESCE ( - + 18, 33, - COUNT ( * ) )
----
1039

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT DISTINCT 56 * 59 - - + COUNT( * ) AS col2
----
3305

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT 56 * 59 - - + COUNT ( * ) AS col2
----
3305

query I rowsort
SELECT ALL ( + + 66 ) + - 99 AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7426
SELECT - 89 DIV + - CAST( 18 AS SIGNED ) + COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7426
SELECT - 89 / + - CAST ( 18 AS INTEGER ) + COUNT ( * ) AS col0
----
5

query I rowsort
SELECT 23 + - + 30
----
-7

query II rowsort
SELECT ALL - 19 + - 4, - 22 AS col0
----
-23
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7429
SELECT DISTINCT - CAST( 96 AS SIGNED ) AS col2, - 19 AS col2
----
-96
-19

skipif mysql # not compatible
query II rowsort label-7429
SELECT DISTINCT - CAST ( 96 AS INTEGER ) AS col2, - 19 AS col2
----
-96
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-7430
SELECT ALL 28 + - COUNT( * ) - + 46, + 97 + + + MAX( DISTINCT + 67 ) AS col2
----
-19
164

skipif mysql # not compatible
query II rowsort label-7430
SELECT ALL 28 + - COUNT ( * ) - + 46, + 97 + + + MAX ( DISTINCT + 67 ) AS col2
----
-19
164

query I rowsort
SELECT - 38 * 52 + 68 col1
----
-1908

query I rowsort
SELECT 58 + + 50 * + 3 AS col0
----
208

query I rowsort
SELECT ALL 92 - 53 AS col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7434
SELECT COUNT( * ) * - - 88 AS col2, 27 - - + ( - + ( 65 ) ) + 31 DIV COUNT( * ) * - 42 col1
----
88
-1340

skipif mysql # not compatible
query II rowsort label-7434
SELECT COUNT ( * ) * - - 88 AS col2, 27 - - + ( - + ( 65 ) ) + 31 / COUNT ( * ) * - 42 col1
----
88
-1340

query I rowsort
SELECT ALL 56 - 84 AS col2
----
-28

query I rowsort
SELECT ALL 21 * 30
----
630

query I rowsort
SELECT ( + 78 ) * - - ( + 43 ) * - CASE - 10 WHEN - 77 THEN - 90 END + + - 34 - - ( - 78 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7438
SELECT DISTINCT ( + + COUNT( * ) ) * CAST( NULL AS SIGNED ) * 90 - + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT DISTINCT ( + + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) * 90 - + 9 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7439
SELECT ALL 85 * CAST( NULL AS SIGNED ) AS col1, - 71 AS col2
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-7439
SELECT ALL 85 * CAST ( NULL AS INTEGER ) AS col1, - 71 AS col2
----
NULL
-71

query I rowsort
SELECT + 49 * + 10 AS col2
----
490

onlyif mysql # aggregate syntax: 
query II rowsort label-7441
SELECT ( - + 73 ) * + + 99 AS col0, - COUNT( * ) * - 22 * - + 86 AS col2
----
-7227
-1892

skipif mysql # not compatible
query II rowsort label-7441
SELECT ( - + 73 ) * + + 99 AS col0, - COUNT ( * ) * - 22 * - + 86 AS col2
----
-7227
-1892

query I rowsort
SELECT 25 * + 99 - + 6
----
2469

query I rowsort
SELECT + 76 - + ( - + 38 ) * - + 26 * - 78
----
77140

onlyif mysql # DIV for integer division: 
query I rowsort label-7444
SELECT ALL + - 50 DIV 86 + + 68
----
68

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL + - 50 / 86 + + 68
----
68

query I rowsort
SELECT 43 * + - 51 + + - 93 * + 3
----
-2472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7446
SELECT DISTINCT CAST( + 86 AS SIGNED ) + - 89
----
-3

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT CAST ( + 86 AS INTEGER ) + - 89
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7447
SELECT ALL ( + CASE 7 WHEN - - 22 THEN NULL WHEN + CAST( NULL AS SIGNED ) * - 8 + + 99 THEN NULL WHEN AVG ( + 27 ) THEN 93 * + SUM( - 74 ) + MIN( + 93 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL ( + CASE 7 WHEN - - 22 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * - 8 + + 99 THEN NULL WHEN AVG ( + 27 ) THEN 93 * + SUM ( - 74 ) + MIN ( + 93 ) END )
----
NULL

query I rowsort
SELECT - 98 * + NULLIF ( + 7, - 27 + + 50 + 26 / + ( - 57 ) * + 5 ) AS col0
----
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT COUNT( * ) * - MAX( - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-7449
SELECT COUNT ( * ) * - MAX ( - 34 )
----
34

query I rowsort
SELECT ALL 73 + + + 42
----
115

query I rowsort
SELECT ALL ( 13 ) + - + 54 + + + 25 AS col1
----
-16

query I rowsort
SELECT ALL + 42 + + + 37 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT DISTINCT - SUM( ALL 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT - SUM ( ALL 31 ) AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7454
SELECT + MAX( ALL - + CAST( NULL AS SIGNED ) ) * + - 66 * 24 * + + 74 + + + 63 + - COUNT( * ) + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-7454
SELECT + MAX ( ALL - + CAST ( NULL AS INTEGER ) ) * + - 66 * 24 * + + 74 + + + 63 + - COUNT ( * ) + + 68
----
NULL

query I rowsort
SELECT + 34 + - + 60 + - 24 * 79 AS col1
----
-1922

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT DISTINCT + + 46 + - MIN( ALL 98 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-7456
SELECT DISTINCT + + 46 + - MIN ( ALL 98 ) AS col0
----
-52

query I rowsort
SELECT + 48 + - - 24 + - 94
----
-22

query I rowsort
SELECT ALL - 40 + - ( 68 ) + + 90
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT + COALESCE ( - COUNT( * ), 70 + - + 58 + + + 83 + - + 31 + - 87 * 33 - + + 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-7459
SELECT + COALESCE ( - COUNT ( * ), 70 + - + 58 + + + 83 + - + 31 + - 87 * 33 - + + 99 )
----
-1

query I rowsort
SELECT ALL + + 4 * - ( - 43 ) AS col2
----
172

query I rowsort
SELECT ALL 87 * - 54
----
-4698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7462
SELECT COUNT( * ) * + 38 * 26, - 98 + 16 * + CASE + ( - 10 ) WHEN - + 2 THEN 95 WHEN + 74 THEN 60 * + 57 ELSE NULL END / + ( COALESCE ( + ( - 22 ), + ( + MIN( - 75 ) ) / 2 + + SUM( - + 49 ) + + - MIN( DISTINCT + COALESCE ( - 51, + ( + 67 ), - CAST( NULL AS SIGNED ) / - 48 ) ) ) ) AS col2
----
988
NULL

skipif mysql # not compatible
query II rowsort label-7462
SELECT COUNT ( * ) * + 38 * 26, - 98 + 16 * + CASE + ( - 10 ) WHEN - + 2 THEN 95 WHEN + 74 THEN 60 * + 57 ELSE NULL END / + ( COALESCE ( + ( - 22 ), + ( + MIN ( - 75 ) ) / 2 + + SUM ( - + 49 ) + + - MIN ( DISTINCT + COALESCE ( - 51, + ( + 67 ), - CAST ( NULL AS INTEGER ) / - 48 ) ) ) ) AS col2
----
988
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT - 59 * + COUNT( * ) * 91 + + - COUNT( * ) + 48 + + - 82 * + - 30 * - - 42 + - 74 * 17
----
96740

skipif mysql # not compatible
query I rowsort label-7464
SELECT - 59 * + COUNT ( * ) * 91 + + - COUNT ( * ) + 48 + + - 82 * + - 30 * - - 42 + - 74 * 17
----
96740

onlyif mysql # aggregate syntax: 
query II rowsort label-7465
SELECT + 44 AS col2, 82 + 6 * MIN( 81 ) * + 43 AS col1
----
44
20980

skipif mysql # not compatible
query II rowsort label-7465
SELECT + 44 AS col2, 82 + 6 * MIN ( 81 ) * + 43 AS col1
----
44
20980

query I rowsort
SELECT 32 * + 73 AS col0
----
2336

query I rowsort
SELECT 39 - - 19 - - 26 * 94 + - - 49 + 35
----
2586

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT 74 DIV + + 34 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7468
SELECT 74 / + + 34 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT DISTINCT 86 * 19 * 20 * - 23 * COUNT( * )
----
-751640

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT 86 * 19 * 20 * - 23 * COUNT ( * )
----
-751640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7470
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 93 / 31 * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 93 / 31 * 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL - MIN( ALL - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL - MIN ( ALL - 78 )
----
78

query I rowsort
SELECT DISTINCT - 34 * - 69 AS col1
----
2346

query I rowsort
SELECT 58 * - 42 AS col1
----
-2436

query II rowsort
SELECT ALL - 29, 52 AS col1
----
-29
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT SUM( ALL - 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-7475
SELECT SUM ( ALL - 67 ) AS col2
----
-67

query I rowsort
SELECT ALL + 61 * 45
----
2745

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT + COALESCE ( 22, - + MAX( - 87 ) ) - + + 25 col0
----
-3

skipif mysql # not compatible
query I rowsort label-7477
SELECT + COALESCE ( 22, - + MAX ( - 87 ) ) - + + 25 col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT + 97 - - + COUNT( * ) + + - 2 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7478
SELECT + 97 - - + COUNT ( * ) + + - 2 AS col2
----
96

query II rowsort
SELECT + 23 AS col2, + 41 col0
----
23
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7480
SELECT + CASE + ( - 18 ) WHEN + 1 - + + CAST( + + COUNT( * ) AS SIGNED ) * - 28 THEN NULL ELSE 89 * 42 / 84 + + - 66 + AVG ( ALL 51 ) * + - 79 + + ( - - 1 ) + - 50 END * - 43 - + - CAST( NULL AS SIGNED ) - + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7480
SELECT + CASE + ( - 18 ) WHEN + 1 - + + CAST ( + + COUNT ( * ) AS INTEGER ) * - 28 THEN NULL ELSE 89 * 42 / 84 + + - 66 + AVG ( ALL 51 ) * + - 79 + + ( - - 1 ) + - 50 END * - 43 - + - CAST ( NULL AS INTEGER ) - + 98
----
NULL

query II rowsort
SELECT ALL + 28 AS col1, 5
----
28
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7482
SELECT + COALESCE ( 82, COUNT( * ) - + - ( - 41 ), 18 * ( + ( + - 18 ) ) + - 95 + 89 / + 94 * - MAX( DISTINCT + 0 ) + - CASE + - 22 WHEN + 90 THEN - 89 ELSE NULL END ) * + CASE + 95 WHEN + 42 + 52 + - + CASE - + 69 WHEN - - 73 * + 73 THEN NULL WHEN + + AVG ( + ( - 14 ) ) THEN NULL WHEN + 18 * - 29 + - 18 * - + 60 THEN + 70 WHEN + 86 THEN NULL WHEN 29 THEN 58 ELSE - 3 + + 68 * - COUNT( * ) * + + 80 * - 37 * + 73 * + COUNT( 69 ) END + + CASE + - 48 WHEN - - CAST( NULL AS SIGNED ) THEN COUNT( * ) WHEN 28 THEN NULL END * 53 THEN + COUNT( ALL - CAST( NULL AS SIGNED ) ) / + 45 END * + 58 + 96 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT + COALESCE ( 82, COUNT ( * ) - + - ( - 41 ), 18 * ( + ( + - 18 ) ) + - 95 + 89 / + 94 * - MAX ( DISTINCT + 0 ) + - CASE + - 22 WHEN + 90 THEN - 89 ELSE NULL END ) * + CASE + 95 WHEN + 42 + 52 + - + CASE - + 69 WHEN - - 73 * + 73 THEN NULL WHEN + + AVG ( + ( - 14 ) ) THEN NULL WHEN + 18 * - 29 + - 18 * - + 60 THEN + 70 WHEN + 86 THEN NULL WHEN 29 THEN 58 ELSE - 3 + + 68 * - COUNT ( * ) * + + 80 * - 37 * + 73 * + COUNT ( 69 ) END + + CASE + - 48 WHEN - - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) WHEN 28 THEN NULL END * 53 THEN + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) / + 45 END * + 58 + 96 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT DISTINCT 86 + + 16 DIV + 18 * - - 97
----
86

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT 86 + + 16 / + 18 * - - 97
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT + CAST( 86 AS SIGNED ) + + + 56
----
142

skipif mysql # not compatible
query I rowsort label-7484
SELECT + CAST ( 86 AS INTEGER ) + + + 56
----
142

query II rowsort
SELECT ALL + - 99 AS col2, 28 col1
----
-99
28

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

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL COUNT ( * ) + - 29 AS col1
----
-28

query I rowsort
SELECT + 74 + + + 13 AS col0
----
87

query II rowsort
SELECT ALL 20 AS col1, + 65
----
20
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT - NULLIF ( CASE + 25 WHEN + - ( + 47 ) THEN - + 90 / 99 * - 95 END, + COUNT( * ) + - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7489
SELECT - NULLIF ( CASE + 25 WHEN + - ( + 47 ) THEN - + 90 / 99 * - 95 END, + COUNT ( * ) + - 62 )
----
NULL

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

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

query I rowsort
SELECT + - 55 + 4
----
-51

query I rowsort
SELECT + - 91 + + 84 * + 25 * - 65
----
-136591

query II rowsort
SELECT - + 16 + 46 * 75 AS col2, 75 + - 21
----
3434
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT + 99 + - - 71 + - - COUNT( * ) + - - 78 AS col0
----
249

skipif mysql # not compatible
query I rowsort label-7495
SELECT + 99 + - - 71 + - - COUNT ( * ) + - - 78 AS col0
----
249

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

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT + COUNT ( * ) + - - 90 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT DISTINCT - SUM( ALL 93 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT - SUM ( ALL 93 ) AS col2
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT DISTINCT + 17 DIV 30 + - - 48 + 32 * - 85 AS col1
----
-2672

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT + 17 / 30 + - - 48 + 32 * - 85 AS col1
----
-2672

query I rowsort
SELECT DISTINCT 81 - - COALESCE ( - 70, + 48 * 42 * 30 )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7500
SELECT + 5 + + MAX( - + 13 ) + + - 33 DIV 35 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7500
SELECT + 5 + + MAX ( - + 13 ) + + - 33 / 35 AS col0
----
-8

query I rowsort
SELECT - 10 + 49 + + 6 * + - 48 + - 5
----
-254

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL COUNT( * ) - - + 64
----
65

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL COUNT ( * ) - - + 64
----
65

query I rowsort
SELECT + 98 + + 97 AS col0
----
195

query I rowsort
SELECT DISTINCT + 47 * + - 98
----
-4606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7505
SELECT MAX( DISTINCT - 50 ) DIV 98 * - 15 + + - 33 + + - 75
----
-108

skipif mysql # not compatible
query I rowsort label-7505
SELECT MAX ( DISTINCT - 50 ) / 98 * - 15 + + - 33 + + - 75
----
-108

query I rowsort
SELECT ( 12 ) AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7507
SELECT ALL CAST( - 51 AS SIGNED ) * - 18
----
918

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL CAST ( - 51 AS INTEGER ) * - 18
----
918

query I rowsort
SELECT DISTINCT 74 * 20
----
1480

onlyif mysql # aggregate syntax: 
query II rowsort label-7509
SELECT ALL + NULLIF ( + - COUNT( * ), + MAX( 68 ) ) AS col1, 89
----
-1
89

skipif mysql # not compatible
query II rowsort label-7509
SELECT ALL + NULLIF ( + - COUNT ( * ), + MAX ( 68 ) ) AS col1, 89
----
-1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT - 3 * + + 97 * + COUNT( * ) col2
----
-291

skipif mysql # not compatible
query I rowsort label-7510
SELECT - 3 * + + 97 * + COUNT ( * ) col2
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL + NULLIF ( + - 50, + COUNT( * ) * + - 91 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL + NULLIF ( + - 50, + COUNT ( * ) * + - 91 ) AS col0
----
-50

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

query I rowsort
SELECT - 67 * + 99
----
-6633

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

query I rowsort
SELECT - 58 * - 19
----
1102

query I rowsort
SELECT ALL 92 * - - 4 + + 63 AS col0
----
431

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7518
SELECT DISTINCT MAX( + 77 ) * 81 + 18 + + 10 / - 17 + + 48 + + 76 - - 6 + + - 46 * + CASE 20 WHEN 89 / - 49 THEN - - CASE - COUNT( * ) WHEN - + 95 * - 44 + + - 10 THEN 67 WHEN - CAST( NULL AS DECIMAL ) + + 86 THEN NULL ELSE CAST( 97 AS SIGNED ) END * + SUM( + + 39 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT MAX ( + 77 ) * 81 + 18 + + 10 / - 17 + + 48 + + 76 - - 6 + + - 46 * + CASE 20 WHEN 89 / - 49 THEN - - CASE - COUNT ( * ) WHEN - + 95 * - 44 + + - 10 THEN 67 WHEN - CAST ( NULL AS REAL ) + + 86 THEN NULL ELSE CAST ( 97 AS INTEGER ) END * + SUM ( + + 39 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - + 26 - + 80 AS col2
----
-106

query I rowsort
SELECT + + 20 * - 37 + + 57
----
-683

onlyif mysql # aggregate syntax: 
query II rowsort label-7521
SELECT COALESCE ( - - 97, + 76 * + - 78 * + 24 * + - COUNT( ALL NULLIF ( + + 37, - ( + 31 ) ) ) * + 13 + - MIN( 4 ) - - 82 ) AS col2, + MIN( ALL + 40 ) * - + ( + - 21 ) AS col1
----
97
840

skipif mysql # not compatible
query II rowsort label-7521
SELECT COALESCE ( - - 97, + 76 * + - 78 * + 24 * + - COUNT ( ALL NULLIF ( + + 37, - ( + 31 ) ) ) * + 13 + - MIN ( 4 ) - - 82 ) AS col2, + MIN ( ALL + 40 ) * - + ( + - 21 ) AS col1
----
97
840

query I rowsort
SELECT - 74 - ( + + 0 ) + + 35 * - ( + + 39 ) * - 83 + + 60 AS col2
----
113281

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7525
SELECT ALL - 99 * - ( - CAST( + - SUM( DISTINCT - - 95 ) AS SIGNED ) ) * - COUNT( * ) + + - 33 AS col1
----
-9438

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL - 99 * - ( - CAST ( + - SUM ( DISTINCT - - 95 ) AS INTEGER ) ) * - COUNT ( * ) + + - 33 AS col1
----
-9438

query II rowsort
SELECT + - 93 * - 16, + 44 - - 98 AS col1
----
1488
142

onlyif mysql # aggregate syntax: 
query II rowsort label-7527
SELECT ALL + 88 * + COUNT( * ) AS col0, - 41 AS col1
----
88
-41

skipif mysql # not compatible
query II rowsort label-7527
SELECT ALL + 88 * + COUNT ( * ) AS col0, - 41 AS col1
----
88
-41

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

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL COUNT ( * ) * - - CAST ( - 75 AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT DISTINCT SUM( DISTINCT 25 ) * - 72
----
-1800

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT SUM ( DISTINCT 25 ) * - 72
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT + COUNT( * ) + 9
----
10

skipif mysql # not compatible
query I rowsort label-7530
SELECT + COUNT ( * ) + 9
----
10

query I rowsort
SELECT ALL 75 * 28 AS col0
----
2100

query I rowsort
SELECT + 81 * - 17 col0
----
-1377

onlyif mysql # DIV for integer division: 
query I rowsort label-7533
SELECT + 34 DIV - + 34
----
-1

skipif mysql # not compatible
query I rowsort label-7533
SELECT + 34 / - + 34
----
-1

query I rowsort
SELECT + 51 * + 27
----
1377

onlyif mysql # aggregate syntax: 
query II rowsort label-7535
SELECT ALL CASE - - 35 WHEN - 58 THEN 96 * 75 * + - COALESCE ( - 51, + 99 + - 51 - + 72 ) WHEN + 31 THEN NULL END, - SUM( DISTINCT ( 52 ) ) * + 33 AS col1
----
NULL
-1716

skipif mysql # not compatible
query II rowsort label-7535
SELECT ALL CASE - - 35 WHEN - 58 THEN 96 * 75 * + - COALESCE ( - 51, + 99 + - 51 - + 72 ) WHEN + 31 THEN NULL END, - SUM ( DISTINCT ( 52 ) ) * + 33 AS col1
----
NULL
-1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7536
SELECT ALL 9 + 22 / - 97 + + 21 * CASE CAST( - - 20 AS SIGNED ) WHEN + 49 + - COUNT( * ) / - COUNT( * ) THEN - - AVG ( COALESCE ( - 72, + + 91 ) ) * + CAST( + - ( + 95 ) AS SIGNED ) WHEN - 74 THEN + 65 + 12 - + 34 * + 65 - - 3 ELSE + CAST( + + NULLIF ( - CAST( NULL AS SIGNED ), + - 91 ) AS SIGNED ) + + - 20 END / - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL 9 + 22 / - 97 + + 21 * CASE CAST ( - - 20 AS INTEGER ) WHEN + 49 + - COUNT ( * ) / - COUNT ( * ) THEN - - AVG ( COALESCE ( - 72, + + 91 ) ) * + CAST ( + - ( + 95 ) AS INTEGER ) WHEN - 74 THEN + 65 + 12 - + 34 * + 65 - - 3 ELSE + CAST ( + + NULLIF ( - CAST ( NULL AS INTEGER ), + - 91 ) AS INTEGER ) + + - 20 END / - + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 20 + - 66 AS col0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7538
SELECT + 56 DIV + 66 * + 54 - - ( SUM( DISTINCT - 61 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-7538
SELECT + 56 / + 66 * + 54 - - ( SUM ( DISTINCT - 61 ) )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT DISTINCT + COUNT( DISTINCT 83 ) + + 58 col1
----
59

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT + COUNT ( DISTINCT 83 ) + + 58 col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL - 99 + + - 2 * COUNT( * ) AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL - 99 + + - 2 * COUNT ( * ) AS col1
----
-101

query I rowsort
SELECT 73 - 70 * - 8
----
633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7542
SELECT ALL 67 * 31 * + CAST( NULL AS SIGNED ) * - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL 67 * 31 * + CAST ( NULL AS INTEGER ) * - - 62
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7543
SELECT ALL - CASE SUM( DISTINCT + + 87 ) WHEN + 60 THEN + + 32 * CAST( + 83 AS SIGNED ) * - 61 + - 55 WHEN CAST( NULL AS SIGNED ) THEN 67 WHEN 91 * + - MAX( + 40 ) THEN - - CASE + + ( 54 ) WHEN - 41 THEN - - COUNT( * ) + + 59 WHEN - - SUM( ALL - 6 ) THEN + - 4 ELSE + COUNT( * ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL - CASE SUM ( DISTINCT + + 87 ) WHEN + 60 THEN + + 32 * CAST ( + 83 AS INTEGER ) * - 61 + - 55 WHEN CAST ( NULL AS INTEGER ) THEN 67 WHEN 91 * + - MAX ( + 40 ) THEN - - CASE + + ( 54 ) WHEN - 41 THEN - - COUNT ( * ) + + 59 WHEN - - SUM ( ALL - 6 ) THEN + - 4 ELSE + COUNT ( * ) END END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7544
SELECT 35 DIV - 15 + + 32 * + 54 AS col2
----
1726

skipif mysql # not compatible
query I rowsort label-7544
SELECT 35 / - 15 + + 32 * + 54 AS col2
----
1726

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT ALL 19 + 18 DIV 75 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL 19 + 18 / 75 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT ALL + COUNT( * ) + 30 * + 30
----
901

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL + COUNT ( * ) + 30 * + 30
----
901

query I rowsort
SELECT ALL + 99 + 69 AS col0
----
168

query I rowsort
SELECT ALL - NULLIF ( 98, + 33 ) col2
----
-98

query I rowsort
SELECT ( + 33 ) * 14 + 65
----
527

query I rowsort
SELECT 18 - 92
----
-74

query I rowsort
SELECT - 30 * + 85 + 45 AS col2
----
-2505

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

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

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

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

query I rowsort
SELECT 8 + + 89 col1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7555
SELECT ALL + 64 DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL + 64 / + 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT 17 + - COALESCE ( 5 + 13, ( + COUNT( * ) ) + 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-7556
SELECT 17 + - COALESCE ( 5 + 13, ( + COUNT ( * ) ) + 18 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7557
SELECT ALL - COUNT( + 38 ) * CAST( - 36 AS SIGNED ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL - COUNT ( + 38 ) * CAST ( - 36 AS INTEGER ) AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7558
SELECT - 73 * - COUNT( * ) + + 21 * - CAST( - 75 AS SIGNED )
----
1648

skipif mysql # not compatible
query I rowsort label-7558
SELECT - 73 * - COUNT ( * ) + + 21 * - CAST ( - 75 AS INTEGER )
----
1648

query I rowsort
SELECT ALL + 37 * + 33 col0
----
1221

query I rowsort
SELECT 33 * 0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT ALL - CAST( - 39 AS SIGNED ) * + 45 AS col1
----
1755

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL - CAST ( - 39 AS INTEGER ) * + 45 AS col1
----
1755

query I rowsort
SELECT 13 + NULLIF ( 92, 84 ) AS col0
----
105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT 32 * - SUM( ALL 7 ) AS col1
----
-224

skipif mysql # not compatible
query I rowsort label-7565
SELECT 32 * - SUM ( ALL 7 ) AS col1
----
-224

query I rowsort
SELECT 58 + 10
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL - COUNT( * ) + 92 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL - COUNT ( * ) + 92 AS col0
----
91

query I rowsort
SELECT DISTINCT 57 * + 59 AS col1
----
3363

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

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT 68 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 41 - COALESCE ( 61, 90 + - 45 * + 30 ) * 6
----
-325

query I rowsort
SELECT ALL 86 * 20
----
1720

query I rowsort
SELECT 48 * + 64 AS col0
----
3072

query I rowsort
SELECT DISTINCT 21 + + 67
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7574
SELECT 64 + ( 16 ) DIV 79 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7574
SELECT 64 + ( 16 ) / 79 AS col0
----
64

query I rowsort
SELECT COALESCE ( 82, 32 * + 58 ) + 99 AS col0
----
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7576
SELECT + 89 DIV + 8 + + COUNT( - 24 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7576
SELECT + 89 / + 8 + + COUNT ( - 24 ) AS col0
----
12

query I rowsort
SELECT ALL 26 * ( - 6 ) AS col1
----
-156

query I rowsort
SELECT DISTINCT 85 + + 17 * 97 AS col2
----
1734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7579
SELECT ALL COUNT( * ) DIV COALESCE ( MIN( ALL - COALESCE ( ( 99 ), - 25 DIV - 92 ) ), 62 + - NULLIF ( + CASE + 65 WHEN ( 54 ) * - 73 THEN 65 + - NULLIF ( + ( + COUNT( * ) ), + 88 ) END, 69 - ( - 22 ) ) * - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL COUNT ( * ) / COALESCE ( MIN ( ALL - COALESCE ( ( 99 ), - 25 / - 92 ) ), 62 + - NULLIF ( + CASE + 65 WHEN ( 54 ) * - 73 THEN 65 + - NULLIF ( + ( + COUNT ( * ) ), + 88 ) END, 69 - ( - 22 ) ) * - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT SUM( ALL 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7580
SELECT SUM ( ALL 63 ) AS col0
----
63

query I rowsort
SELECT ALL 20 + - 25 AS col2
----
-5

query I rowsort
SELECT DISTINCT 78 + - 62
----
16

query I rowsort
SELECT ALL - 59 + 31 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT MAX( 40 ) * 67 + 8
----
2688

skipif mysql # not compatible
query I rowsort label-7584
SELECT MAX ( 40 ) * 67 + 8
----
2688

query I rowsort
SELECT DISTINCT 50 * 55
----
2750

query I rowsort
SELECT ( 38 ) * 70 AS col1
----
2660

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

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

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

query I rowsort
SELECT DISTINCT - + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT - 61 * + COALESCE ( + 89 + - 50, 37 + NULLIF ( 96, COUNT( * ) ) ) - + COUNT( * ) AS col1
----
-2380

skipif mysql # not compatible
query I rowsort label-7590
SELECT - 61 * + COALESCE ( + 89 + - 50, 37 + NULLIF ( 96, COUNT ( * ) ) ) - + COUNT ( * ) AS col1
----
-2380

onlyif mysql # DIV for integer division: 
query I rowsort label-7591
SELECT - 92 DIV + 35 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7591
SELECT - 92 / + 35 AS col0
----
-2

query I rowsort
SELECT + 31 * - ( 37 )
----
-1147

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT 53 + + ( MIN( - 61 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-7593
SELECT 53 + + ( MIN ( - 61 ) )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7594
SELECT ALL + CAST( NULL AS SIGNED ) / - 21 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7595
SELECT MAX( - 27 ) DIV - 20 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7595
SELECT MAX ( - 27 ) / - 20 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT ALL MAX( - 52 ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL MAX ( - 52 ) col2
----
-52

query I rowsort
SELECT 42 - + - 47 + - 32 * 6
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT DISTINCT ( - 58 ) DIV 48 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT ( - 58 ) / 48 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT DISTINCT - CASE COUNT( * ) WHEN + MAX( 64 ) THEN - ( + 21 ) + - CASE - 74 WHEN + 16 THEN 94 ELSE - CASE + 64 WHEN 59 THEN NULL WHEN + 42 * + 41 THEN - COALESCE ( + 7, + 52 ) + + 72 END END / 92 END + - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT - CASE COUNT ( * ) WHEN + MAX ( 64 ) THEN - ( + 21 ) + - CASE - 74 WHEN + 16 THEN 94 ELSE - CASE + 64 WHEN 59 THEN NULL WHEN + 42 * + 41 THEN - COALESCE ( + 7, + 52 ) + + 72 END END / 92 END + - 89 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7600
SELECT - NULLIF ( + 47, 48 * NULLIF ( + 70 * 22, + 1 * + 24 + 21 ) ) DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-7600
SELECT - NULLIF ( + 47, 48 * NULLIF ( + 70 * 22, + 1 * + 24 + 21 ) ) / 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT + 61 + 5 + - ( - COUNT( * ) ) * + 95 * 19
----
1871

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT + 61 + 5 + - ( - COUNT ( * ) ) * + 95 * 19
----
1871

query I rowsort
SELECT DISTINCT + 88 * - + 65 col1
----
-5720

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT - MIN( - + ( 9 ) ) - MAX( + 46 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-7603
SELECT - MIN ( - + ( 9 ) ) - MAX ( + 46 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT ALL + 98 + - NULLIF ( 79, COUNT( * ) * 19 ) * + 55 AS col1
----
-4247

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL + 98 + - NULLIF ( 79, COUNT ( * ) * 19 ) * + 55 AS col1
----
-4247

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT - NULLIF ( + - 54, MAX( + 93 ) + MAX( 5 ) ) * + 26
----
1404

skipif mysql # not compatible
query I rowsort label-7605
SELECT - NULLIF ( + - 54, MAX ( + 93 ) + MAX ( 5 ) ) * + 26
----
1404

query I rowsort
SELECT ALL + 99 + - 30 + NULLIF ( - 52, 94 + - 79 * 62 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT DISTINCT MIN( ALL 80 ) * 65 AS col0
----
5200

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT MIN ( ALL 80 ) * 65 AS col0
----
5200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT ALL 26 + + - 7 + 96 * CAST( - 45 AS SIGNED ) * 68
----
-293741

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL 26 + + - 7 + 96 * CAST ( - 45 AS INTEGER ) * 68
----
-293741

query I rowsort
SELECT DISTINCT NULLIF ( ( + 75 ), 54 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT + 8 * + + 23 * - COUNT( * ) AS col2
----
-184

skipif mysql # not compatible
query I rowsort label-7610
SELECT + 8 * + + 23 * - COUNT ( * ) AS col2
----
-184

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

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL + 63 * - 84 * COUNT ( DISTINCT - 38 * 55 )
----
-5292

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

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

query I rowsort
SELECT - + 38 + + + NULLIF ( 28, ( 31 ) ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT - 13 - - - COUNT( DISTINCT + 6 ) + 7 col2
----
-7

skipif mysql # not compatible
query I rowsort label-7614
SELECT - 13 - - - COUNT ( DISTINCT + 6 ) + 7 col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT + COUNT( * ) + - 93 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-7615
SELECT + COUNT ( * ) + - 93 AS col1
----
-92

query I rowsort
SELECT - - 44 * + 73 + 26 AS col0
----
3238

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7618
SELECT - NULLIF ( COUNT( * ), - AVG ( ALL + 74 ) ) DIV 83 + + 65 * CAST( - 21 AS SIGNED )
----
-1365

skipif mysql # not compatible
query I rowsort label-7618
SELECT - NULLIF ( COUNT ( * ), - AVG ( ALL + 74 ) ) / 83 + + 65 * CAST ( - 21 AS INTEGER )
----
-1365

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT + - CASE - ( + 53 ) WHEN - 10 THEN 51 * ( COUNT( + 2 ) * - 53 ) WHEN COUNT( * ) THEN + ( - 88 ) WHEN COUNT( * ) THEN NULL ELSE NULL END * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT + - CASE - ( + 53 ) WHEN - 10 THEN 51 * ( COUNT ( + 2 ) * - 53 ) WHEN COUNT ( * ) THEN + ( - 88 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END * + 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7620
SELECT + 67 * COALESCE ( NULLIF ( MAX( DISTINCT 8 ), - NULLIF ( 50, CAST( NULL AS SIGNED ) ) ), 53, COALESCE ( - 92, + 68 - MAX( ALL + 35 ) ) )
----
536

skipif mysql # not compatible
query I rowsort label-7620
SELECT + 67 * COALESCE ( NULLIF ( MAX ( DISTINCT 8 ), - NULLIF ( 50, CAST ( NULL AS INTEGER ) ) ), 53, COALESCE ( - 92, + 68 - MAX ( ALL + 35 ) ) )
----
536

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

query I rowsort
SELECT - 34 * - 93 + + 80 AS col0
----
3242

query I rowsort
SELECT + - ( - + 11 ) - ( - 74 )
----
85

query I rowsort
SELECT + 29 * + 48 * - 82
----
-114144

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

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

query I rowsort
SELECT DISTINCT + CASE - 62 WHEN + 15 THEN + 26 WHEN - 26 * 66 THEN NULL END * - 47
----
NULL

query I rowsort
SELECT - - 81 + + 76
----
157

query I rowsort
SELECT + 56 + 90 + 41
----
187

query I rowsort
SELECT ALL + - ( - 74 ) * 17
----
1258

query I rowsort
SELECT DISTINCT + 93 * ( + 19 ) + 26
----
1793

query I rowsort
SELECT DISTINCT 82 * 41 + + 39 col2
----
3401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7632
SELECT ALL CAST( + - NULLIF ( - - 55, - 93 + 4 ) AS SIGNED ) * - 72 + SUM( + 52 )
----
4012

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL CAST ( + - NULLIF ( - - 55, - 93 + 4 ) AS INTEGER ) * - 72 + SUM ( + 52 )
----
4012

onlyif mysql # aggregate syntax: 
query II rowsort label-7633
SELECT - 81 AS col1, + 34 * - COUNT( * )
----
-81
-34

skipif mysql # not compatible
query II rowsort label-7633
SELECT - 81 AS col1, + 34 * - COUNT ( * )
----
-81
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL 76 * - COUNT( * ) + - 57 AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL 76 * - COUNT ( * ) + - 57 AS col0
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT + COUNT( * ) + 74 * 13 + + ( 59 - 58 * 54 ) AS col1
----
-2110

skipif mysql # not compatible
query I rowsort label-7635
SELECT + COUNT ( * ) + 74 * 13 + + ( 59 - 58 * 54 ) AS col1
----
-2110

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

skipif mysql # not compatible
query II rowsort label-7636
SELECT COUNT ( * ), 74 AS col1
----
1
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7637
SELECT ALL COUNT( * ), + 28 * + 14 + - CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7637
SELECT ALL COUNT ( * ), + 28 * + 14 + - CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

query I rowsort
SELECT + 92 + 12 AS col1
----
104

query I rowsort
SELECT ALL + 66 + 25
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7640
SELECT DISTINCT 9 + - 37 DIV - 94 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT 9 + - 37 / - 94 AS col2
----
9

query I rowsort
SELECT - 21 * - 29 * + - 68
----
-41412

query I rowsort
SELECT ALL - 40 * + 28
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT - 38 + 55 - + + COUNT( * ) col0
----
16

skipif mysql # not compatible
query I rowsort label-7643
SELECT - 38 + 55 - + + COUNT ( * ) col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL 44 + + - 61 * COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL 44 + + - 61 * COUNT ( * )
----
-17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7646
SELECT ALL + 67 - - + 5 - + + COALESCE ( - 7, + 22 ) DIV 62
----
72

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL + 67 - - + 5 - + + COALESCE ( - 7, + 22 ) / 62
----
72

query I rowsort
SELECT DISTINCT CASE - + 82 WHEN 37 * 1 THEN - 84 * 97 WHEN - 24 * 9 THEN NULL WHEN + 50 THEN NULL END
----
NULL

query I rowsort
SELECT - 8 + + - 87 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-7649
SELECT 33 AS col0, + COUNT( * ) + + 18 + 35
----
33
54

skipif mysql # not compatible
query II rowsort label-7649
SELECT 33 AS col0, + COUNT ( * ) + + 18 + 35
----
33
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT ALL + COUNT( DISTINCT 61 ) * + COALESCE ( - 78, 11 ) + 5 * - ( - 2 )
----
-68

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL + COUNT ( DISTINCT 61 ) * + COALESCE ( - 78, 11 ) + 5 * - ( - 2 )
----
-68

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7652
SELECT ALL + CASE - - 99 WHEN - CAST( + 98 AS SIGNED ) THEN NULL ELSE ( 86 ) * 5 END - + 51 DIV + 42
----
429

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL + CASE - - 99 WHEN - CAST ( + 98 AS INTEGER ) THEN NULL ELSE ( 86 ) * 5 END - + 51 / + 42
----
429

query I rowsort
SELECT - 2 * + 57 * 36 + 41 AS col2
----
-4063

query II rowsort
SELECT 49 AS col0, 8 AS col0
----
49
8

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7657
SELECT DISTINCT + + 53 DIV - + 42 col1
----
-1

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT + + 53 / - + 42 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT ALL - 71 * COUNT( - 57 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL - 71 * COUNT ( - 57 ) AS col2
----
-71

query I rowsort
SELECT - + 66 * + + 28
----
-1848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7660
SELECT + 88 + 4 / CAST( NULL AS SIGNED ) / + 30 + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT + 88 + 4 / CAST ( NULL AS INTEGER ) / + 30 + 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7661
SELECT ALL + + COUNT( * ) DIV + + SUM( DISTINCT 67 ) + + 24 * 76
----
1824

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL + + COUNT ( * ) / + + SUM ( DISTINCT 67 ) + + 24 * 76
----
1824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7662
SELECT ALL + COUNT( DISTINCT 62 ) DIV 67 * 12 + - 87 * + 67
----
-5829

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL + COUNT ( DISTINCT 62 ) / 67 * 12 + - 87 * + 67
----
-5829

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7663
SELECT DISTINCT + 46 DIV - 46 + COUNT( - 99 )
----
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT + 46 / - 46 + COUNT ( - 99 )
----
0

query II rowsort
SELECT ALL + + 80 AS col2, 60 AS col1
----
80
60

query I rowsort
SELECT DISTINCT 89 + - 85 * + + 63
----
-5266

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7667
SELECT COALESCE ( - 44, + MIN( DISTINCT 88 ), + 46 ) DIV - 8
----
5

skipif mysql # not compatible
query I rowsort label-7667
SELECT COALESCE ( - 44, + MIN ( DISTINCT 88 ), + 46 ) / - 8
----
5

query I rowsort
SELECT ALL 99 + - 31 * 94 - ( 50 ) AS col2
----
-2865

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT 38 DIV 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7669
SELECT 38 / 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT COUNT( * ) + + 30 * - 71 + + 16 * COUNT( * )
----
-2113

skipif mysql # not compatible
query I rowsort label-7670
SELECT COUNT ( * ) + + 30 * - 71 + + 16 * COUNT ( * )
----
-2113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7671
SELECT 51 + - CAST( + 39 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-7671
SELECT 51 + - CAST ( + 39 AS INTEGER )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7672
SELECT ( + 72 ) * + - 18 + + - 16 + COALESCE ( COUNT( DISTINCT - 0 ), + 92 DIV + NULLIF ( + 62, - 18 ) ) + + 38 * 84 AS col2
----
1881

skipif mysql # not compatible
query I rowsort label-7672
SELECT ( + 72 ) * + - 18 + + - 16 + COALESCE ( COUNT ( DISTINCT - 0 ), + 92 / + NULLIF ( + 62, - 18 ) ) + + 38 * 84 AS col2
----
1881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7673
SELECT ( + + COUNT( ALL - 44 ) ) * + 49 * CAST( 26 AS SIGNED ) AS col0
----
1274

skipif mysql # not compatible
query I rowsort label-7673
SELECT ( + + COUNT ( ALL - 44 ) ) * + 49 * CAST ( 26 AS INTEGER ) AS col0
----
1274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7674
SELECT DISTINCT 68 - - 25 + + - ( + MAX( ALL + 89 ) ) DIV + 29
----
90

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT 68 - - 25 + + - ( + MAX ( ALL + 89 ) ) / + 29
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7675
SELECT CAST( - 3 AS SIGNED ) - - + 8 - CASE - 90 WHEN - 14 THEN CAST( NULL AS SIGNED ) * - 12 END - + ( 51 + - CAST( NULL AS SIGNED ) ) * - 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7675
SELECT CAST ( - 3 AS INTEGER ) - - + 8 - CASE - 90 WHEN - 14 THEN CAST ( NULL AS INTEGER ) * - 12 END - + ( 51 + - CAST ( NULL AS INTEGER ) ) * - 76 AS col1
----
NULL

query I rowsort
SELECT ALL 3 - - + 19 * - + 47 AS col0
----
-890

onlyif mysql # aggregate syntax: 
query II rowsort label-7677
SELECT 11 * + - 12, + 84 * + COUNT( * ) AS col2
----
-132
84

skipif mysql # not compatible
query II rowsort label-7677
SELECT 11 * + - 12, + 84 * + COUNT ( * ) AS col2
----
-132
84

query I rowsort
SELECT 21 - - 89
----
110

query I rowsort
SELECT ALL - 18 - 97 AS col0
----
-115

query I rowsort
SELECT 1 * - 13 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7681
SELECT ALL - - 30 * + ( COUNT( * ) ) - CASE - 46 WHEN - 38 THEN 52 + CASE COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN - COALESCE ( CAST( NULL AS SIGNED ), - ( 88 ) ) ELSE + 7 END * - 3 ELSE NULL END * + 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL - - 30 * + ( COUNT ( * ) ) - CASE - 46 WHEN - 38 THEN 52 + CASE COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN - COALESCE ( CAST ( NULL AS INTEGER ), - ( 88 ) ) ELSE + 7 END * - 3 ELSE NULL END * + 61 col2
----
NULL

query I rowsort
SELECT 3 * - NULLIF ( + 30, + 27 / 47 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT ALL + - 17 * 59 * MIN( ALL 77 ) + + 74 * 86
----
-70867

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL + - 17 * 59 * MIN ( ALL 77 ) + + 74 * 86
----
-70867

query I rowsort
SELECT + 36 * + 11 * + 20 col0
----
7920

query I rowsort
SELECT ALL + + 51 * + + 95 * ( - 41 ) * NULLIF ( 30, - 90 )
----
-5959350

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT - NULLIF ( + - COUNT( * ), + AVG ( DISTINCT + 75 ) ) * + 2 + + 3 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7686
SELECT - NULLIF ( + - COUNT ( * ), + AVG ( DISTINCT + 75 ) ) * + 2 + + 3 AS col2
----
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7688
SELECT CASE + 20 WHEN - COUNT( * ) THEN - + ( CAST( - CASE + 57 WHEN - 57 * - ( + ( - 32 ) ) + + 20 THEN NULL WHEN 90 + 22 THEN COUNT( * ) * - 81 END AS SIGNED ) ) WHEN + 53 THEN NULL ELSE NULL END / COUNT( 68 ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT CASE + 20 WHEN - COUNT ( * ) THEN - + ( CAST ( - CASE + 57 WHEN - 57 * - ( + ( - 32 ) ) + + 20 THEN NULL WHEN 90 + 22 THEN COUNT ( * ) * - 81 END AS INTEGER ) ) WHEN + 53 THEN NULL ELSE NULL END / COUNT ( 68 ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT - 2 + + - MIN( - - 6 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-7689
SELECT - 2 + + - MIN ( - - 6 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT COUNT( * ) * - - 31 * + 47 col0
----
1457

skipif mysql # not compatible
query I rowsort label-7690
SELECT COUNT ( * ) * - - 31 * + 47 col0
----
1457

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT + COUNT( * ) + + ( - 65 )
----
-64

skipif mysql # not compatible
query I rowsort label-7691
SELECT + COUNT ( * ) + + ( - 65 )
----
-64

query I rowsort
SELECT DISTINCT - 93 + 71 AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7693
SELECT ALL + 34 + - + 28 - + 84 / - 74 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL + 34 + - + 28 - + 84 / - 74 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT - - 14 * MIN( DISTINCT 80 ) + 95
----
1215

skipif mysql # not compatible
query I rowsort label-7694
SELECT - - 14 * MIN ( DISTINCT 80 ) + 95
----
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT ALL - + SUM( 53 ) + 62
----
9

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL - + SUM ( 53 ) + 62
----
9

query I rowsort
SELECT - 67 * 65 * - 16 + + 61
----
69741

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT + SUM( DISTINCT 68 ) + - 20
----
48

skipif mysql # not compatible
query I rowsort label-7697
SELECT + SUM ( DISTINCT 68 ) + - 20
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7698
SELECT ALL CASE + COUNT( * ) WHEN - ( + COUNT( + 11 ) ) * CAST( NULL AS DECIMAL ) + - 11 THEN NULL WHEN + 43 THEN ( - ( CAST( NULL AS SIGNED ) ) ) WHEN + 97 THEN 63 * CASE + COALESCE ( ( COUNT( * ) ), 72, + 82 ) WHEN - ( - 2 ) THEN 33 WHEN + 77 * 20 THEN NULL ELSE 2 END ELSE NULL END + 42 / + ( COUNT( * ) + ( 51 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL CASE + COUNT ( * ) WHEN - ( + COUNT ( + 11 ) ) * CAST ( NULL AS REAL ) + - 11 THEN NULL WHEN + 43 THEN ( - ( CAST ( NULL AS INTEGER ) ) ) WHEN + 97 THEN 63 * CASE + COALESCE ( ( COUNT ( * ) ), 72, + 82 ) WHEN - ( - 2 ) THEN 33 WHEN + 77 * 20 THEN NULL ELSE 2 END ELSE NULL END + 42 / + ( COUNT ( * ) + ( 51 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT ALL - 99 + 40 - ( COUNT( 21 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL - 99 + 40 - ( COUNT ( 21 ) )
----
-60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT + COALESCE ( 85, COUNT( * ) + + COUNT( * ) - - - 72 + - 14, ( - NULLIF ( + 27, 58 ) ) ) * 12 + 39 * + 47
----
2853

skipif mysql # not compatible
query I rowsort label-7701
SELECT + COALESCE ( 85, COUNT ( * ) + + COUNT ( * ) - - - 72 + - 14, ( - NULLIF ( + 27, 58 ) ) ) * 12 + 39 * + 47
----
2853

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT ALL + 12 + + ( + 39 ) + 62 * + 84 * 50 + - 54 DIV - 67
----
260451

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL + 12 + + ( + 39 ) + 62 * + 84 * 50 + - 54 / - 67
----
260451

query I rowsort
SELECT DISTINCT - 57 * 3
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT MAX( - 62 ) * - COUNT( * ) + + 16 * + 63 AS col0
----
1070

skipif mysql # not compatible
query I rowsort label-7704
SELECT MAX ( - 62 ) * - COUNT ( * ) + + 16 * + 63 AS col0
----
1070

query I rowsort
SELECT 67 * 91 AS col2
----
6097

query I rowsort
SELECT 2 * + 73
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT DISTINCT - 67 - SUM( - + 5 )
----
-62

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT - 67 - SUM ( - + 5 )
----
-62

query II rowsort
SELECT DISTINCT - 51 AS col1, - 33
----
-51
-33

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

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL 9 / + COUNT ( * ) col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT 92 * - COALESCE ( - 17, 34 ) * - + 54 + + COUNT( * )
----
-84455

skipif mysql # not compatible
query I rowsort label-7710
SELECT 92 * - COALESCE ( - 17, 34 ) * - + 54 + + COUNT ( * )
----
-84455

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT 73 + 43 + - MIN( ALL - - 43 ) - - MIN( DISTINCT 66 ) AS col1
----
139

skipif mysql # not compatible
query I rowsort label-7711
SELECT 73 + 43 + - MIN ( ALL - - 43 ) - - MIN ( DISTINCT 66 ) AS col1
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7712
SELECT DISTINCT 15 - + + 65 + 48 - - + 24 * + + 56 * 2 - - ( 5 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT 15 - + + 65 + 48 - - + 24 * + + 56 * 2 - - ( 5 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 92 * - - 48 * - 9 col0
----
-39744

query I rowsort
SELECT DISTINCT 84 * + ( + - 67 )
----
-5628

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL MIN( ALL - 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL MIN ( ALL - 45 ) AS col1
----
-45

query I rowsort
SELECT - 93 + + ( 34 ) * - 66 col0
----
-2337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7717
SELECT ALL 18 AS col2, + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) col1, - 46 AS col1
----
18
0
-46

skipif mysql # not compatible
query III rowsort label-7717
SELECT ALL 18 AS col2, + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) col1, - 46 AS col1
----
18
0
-46

query I rowsort
SELECT DISTINCT - COALESCE ( + + 40, 46 * + 71 ) * - + 73 AS col0
----
2920

query I rowsort
SELECT - 59 * - 16 + + 81 AS col0
----
1025

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7721
SELECT DISTINCT 21 + - 39 DIV 22 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT 21 + - 39 / 22 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT COALESCE ( + 26, CASE - 58 WHEN + 80 + - 84 / 22 THEN 80 ELSE 11 + COUNT( * ) END, - NULLIF ( - 62, 38 ) ) * ( + COUNT( ALL - 71 ) * 42 + - 92 ) AS col2
----
-1300

skipif mysql # not compatible
query I rowsort label-7722
SELECT COALESCE ( + 26, CASE - 58 WHEN + 80 + - 84 / 22 THEN 80 ELSE 11 + COUNT ( * ) END, - NULLIF ( - 62, 38 ) ) * ( + COUNT ( ALL - 71 ) * 42 + - 92 ) AS col2
----
-1300

query I rowsort
SELECT ALL + - 23 + - 89 AS col2
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7724
SELECT + CAST( NULL AS SIGNED ) AS col1, ( - 9 ) DIV 39 * + + 69 * + 8 - + COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7724
SELECT + CAST ( NULL AS INTEGER ) AS col1, ( - 9 ) / 39 * + + 69 * + 8 - + COUNT ( * ) AS col0
----
NULL
-1

query I rowsort
SELECT ALL + 38 * - ( - 79 ) + - - 25 + 64 + - 46 AS col2
----
3045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7726
SELECT ALL + 88 * CASE - COUNT( * ) WHEN 43 THEN + CAST( NULL AS SIGNED ) * - 45 END + 21 * 93 + NULLIF ( 93, 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL + 88 * CASE - COUNT ( * ) WHEN 43 THEN + CAST ( NULL AS INTEGER ) * - 45 END + 21 * 93 + NULLIF ( 93, 20 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7727
SELECT + ( - 74 ) DIV - 61 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7727
SELECT + ( - 74 ) / - 61 AS col1
----
1

query I rowsort
SELECT ALL + + 18 * 40 * - 83 AS col0
----
-59760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7729
SELECT - - NULLIF ( + - CASE + SUM( + 4 ) WHEN ( MIN( - 1 ) ) * 40 THEN 83 / CAST( - ( 29 ) AS SIGNED ) WHEN 33 THEN NULL END, + 27 * 3 ) * + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT - - NULLIF ( + - CASE + SUM ( + 4 ) WHEN ( MIN ( - 1 ) ) * 40 THEN 83 / CAST ( - ( 29 ) AS INTEGER ) WHEN 33 THEN NULL END, + 27 * 3 ) * + 91 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7730
SELECT + 24 AS col2, - NULLIF ( SUM( ALL - 4 ), - 13 ) AS col1
----
24
4

skipif mysql # not compatible
query II rowsort label-7730
SELECT + 24 AS col2, - NULLIF ( SUM ( ALL - 4 ), - 13 ) AS col1
----
24
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT COALESCE ( 84, 6 * + COUNT( * ), + 12 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-7731
SELECT COALESCE ( 84, 6 * + COUNT ( * ), + 12 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT + AVG ( ALL + - CASE + 33 WHEN 49 * + 12 * - 92 THEN ( + 45 ) WHEN 56 THEN NULL ELSE NULL END ) * - MAX( DISTINCT - 62 ) - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT + AVG ( ALL + - CASE + 33 WHEN 49 * + 12 * - 92 THEN ( + 45 ) WHEN 56 THEN NULL ELSE NULL END ) * - MAX ( DISTINCT - 62 ) - 66
----
NULL

query I rowsort
SELECT - 22 * - 56
----
1232

query II rowsort
SELECT + 35 AS col0, 60 * + + 20
----
35
1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT ALL + CAST( + + AVG ( ALL + 44 ) AS SIGNED ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL + CAST ( + + AVG ( ALL + 44 ) AS INTEGER ) AS col2
----
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT - 92 * - COUNT( ( 40 ) ) col1
----
92

skipif mysql # not compatible
query I rowsort label-7737
SELECT - 92 * - COUNT ( ( 40 ) ) col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7738
SELECT - CAST( + 64 AS SIGNED ) + - COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-7738
SELECT - CAST ( + 64 AS INTEGER ) + - COUNT ( * ) AS col2
----
-65

query II rowsort
SELECT ALL + 47 col1, 28 + + 32 - - - ( + + 18 ) * - + ( 66 ) * - 21 AS col0
----
47
-24888

query I rowsort
SELECT + 62 * 47 AS col0
----
2914

query I rowsort
SELECT - 93 * 0 - 51 col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL + 18 * - COUNT( * ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL + 18 * - COUNT ( * ) col2
----
-18

query I rowsort
SELECT DISTINCT COALESCE ( - 51, + 24 ) AS col1
----
-51

query II rowsort
SELECT DISTINCT 69 AS col1, + 58
----
69
58

query I rowsort
SELECT DISTINCT ( - 36 ) + 20 - - 97 AS col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7746
SELECT - + 28 DIV + + 51
----
0

skipif mysql # not compatible
query I rowsort label-7746
SELECT - + 28 / + + 51
----
0

query I rowsort
SELECT + + 22 * - 94 * ( + 91 )
----
-188188

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT + - 46 + + + 87 / CASE + + COUNT( * ) WHEN 49 THEN - 51 + + 86 WHEN ( - CASE 78 WHEN AVG ( 18 ) * 65 - 42 * + 21 THEN - AVG ( 36 ) END ) * - ( + 9 ) THEN COUNT( * ) END + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT + - 46 + + + 87 / CASE + + COUNT ( * ) WHEN 49 THEN - 51 + + 86 WHEN ( - CASE 78 WHEN AVG ( 18 ) * 65 - 42 * + 21 THEN - AVG ( 36 ) END ) * - ( + 9 ) THEN COUNT ( * ) END + - 70
----
NULL

query I rowsort
SELECT + - 48 * - 16
----
768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7750
SELECT 80 AS col2, CAST( + + ( - + MIN( 80 ) ) AS SIGNED ) * - COUNT( * ) + - 52 col1
----
80
28

skipif mysql # not compatible
query II rowsort label-7750
SELECT 80 AS col2, CAST ( + + ( - + MIN ( 80 ) ) AS INTEGER ) * - COUNT ( * ) + - 52 col1
----
80
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7751
SELECT + + SUM( 56 ) DIV - COUNT( * ) + + + MAX( ALL + - 50 ) - - 95 * + 68 AS col0
----
6354

skipif mysql # not compatible
query I rowsort label-7751
SELECT + + SUM ( 56 ) / - COUNT ( * ) + + + MAX ( ALL + - 50 ) - - 95 * + 68 AS col0
----
6354

query I rowsort
SELECT - 80 - + + 62 * NULLIF ( 11, + - 62 )
----
-762

onlyif mysql # aggregate syntax: 
query II rowsort label-7753
SELECT DISTINCT + 17, + MIN( - 86 ) * + - ( - 95 ) AS col2
----
17
-8170

skipif mysql # not compatible
query II rowsort label-7753
SELECT DISTINCT + 17, + MIN ( - 86 ) * + - ( - 95 ) AS col2
----
17
-8170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7754
SELECT ALL COUNT( * ) + 71 DIV 27 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL COUNT ( * ) + 71 / 27 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7755
SELECT DISTINCT 33 * + + 42 + + 24 + - NULLIF ( - 20, CAST( - 1 AS DECIMAL ) / + 76 ) * ( CASE 20 WHEN + COUNT( * ) THEN NULL ELSE + COUNT( * ) END + 18 )
----
1790

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT 33 * + + 42 + + 24 + - NULLIF ( - 20, CAST ( - 1 AS REAL ) / + 76 ) * ( CASE 20 WHEN + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END + 18 )
----
1790

query I rowsort
SELECT ALL - 1 + 74 + 12 + - 2 * + + 76 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT ALL MAX( ALL - 17 ) + ( + ( - - 13 ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL MAX ( ALL - 17 ) + ( + ( - - 13 ) ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7758
SELECT + 10 AS col0, 61 - ( - ( - - ( - + COUNT( ALL 23 ) ) ) ) AS col0
----
10
60

skipif mysql # not compatible
query II rowsort label-7758
SELECT + 10 AS col0, 61 - ( - ( - - ( - + COUNT ( ALL 23 ) ) ) ) AS col0
----
10
60

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

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

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

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

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

query II rowsort
SELECT + 44 col0, 83
----
44
83

query I rowsort
SELECT + COALESCE ( + 37, 43, + 3, 33 + - 44 ) + - 39 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7764
SELECT ALL COUNT( * ) DIV 99 * + ( - - CAST( + + COUNT( * ) AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL COUNT ( * ) / 99 * + ( - - CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT + 22 * - 41 + - 78 + - MIN( ALL 20 ) - - 44
----
-956

skipif mysql # not compatible
query I rowsort label-7765
SELECT + 22 * - 41 + - 78 + - MIN ( ALL 20 ) - - 44
----
-956

query II rowsort
SELECT + ( 10 ) * + 16 AS col0, 70 AS col0
----
160
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7767
SELECT DISTINCT 45 DIV + COUNT( * ), 44 AS col0
----
45
44

skipif mysql # not compatible
query II rowsort label-7767
SELECT DISTINCT 45 / + COUNT ( * ), 44 AS col0
----
45
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7768
SELECT + CAST( - 76 AS SIGNED ) + COUNT( * ) * + 19 + - 30 + + 72 col1
----
-15

skipif mysql # not compatible
query I rowsort label-7768
SELECT + CAST ( - 76 AS INTEGER ) + COUNT ( * ) * + 19 + - 30 + + 72 col1
----
-15

query I rowsort
SELECT ALL 80 * - 9
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT + ( - - CASE 47 WHEN + 30 THEN + 63 * - 37 * + 23 + 86 WHEN 87 / COUNT( * ) + 85 THEN - 45 END ) * 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT + ( - - CASE 47 WHEN + 30 THEN + 63 * - 37 * + 23 + 86 WHEN 87 / COUNT ( * ) + 85 THEN - 45 END ) * 55 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7771
SELECT + ( - COUNT( * ) ) AS col1, ( 50 ) * 43 + + - 96 + - + COUNT( ALL - ( - 37 ) ) + + ( + COUNT( * ) ) * - 50 * 6
----
-1
1753

skipif mysql # not compatible
query II rowsort label-7771
SELECT + ( - COUNT ( * ) ) AS col1, ( 50 ) * 43 + + - 96 + - + COUNT ( ALL - ( - 37 ) ) + + ( + COUNT ( * ) ) * - 50 * 6
----
-1
1753

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7772
SELECT + CAST( NULL AS SIGNED ) * 30 AS col2, 28 * - 5 * - - CASE + - 83 WHEN 86 THEN 97 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7772
SELECT + CAST ( NULL AS INTEGER ) * 30 AS col2, 28 * - 5 * - - CASE + - 83 WHEN 86 THEN 97 ELSE NULL END
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT - 90 * - 5 + 23 DIV + 80 AS col2
----
450

skipif mysql # not compatible
query I rowsort label-7773
SELECT - 90 * - 5 + 23 / + 80 AS col2
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL + MAX( 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL + MAX ( 96 ) AS col1
----
96

query I rowsort
SELECT ALL 38 * - ( 29 )
----
-1102

query I rowsort
SELECT COALESCE ( - + 12, 84 + + 51 ) AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7777
SELECT ALL - COALESCE ( - 82, + CASE COUNT( DISTINCT - 4 ) WHEN + 33 THEN NULL ELSE - 34 END DIV 16 ) * - 99 + - 78 AS col0
----
-8196

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL - COALESCE ( - 82, + CASE COUNT ( DISTINCT - 4 ) WHEN + 33 THEN NULL ELSE - 34 END / 16 ) * - 99 + - 78 AS col0
----
-8196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7778
SELECT ALL + CASE WHEN NOT + 57 NOT IN ( CAST( SUM( - + 10 ) AS SIGNED ) * - 62 ) THEN - 41 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL + CASE WHEN NOT + 57 NOT IN ( CAST ( SUM ( - + 10 ) AS INTEGER ) * - 62 ) THEN - 41 END AS col1
----
NULL

query I rowsort
SELECT ALL - ( - + 65 ) * - 16 + 47 AS col0
----
-993

query II rowsort
SELECT + 90 + 12 AS col1, 19 - + - 98
----
102
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7781
SELECT ( 72 ) * + 37 + - 76 - + CAST( NULL AS SIGNED ) * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT ( 72 ) * + 37 + - 76 - + CAST ( NULL AS INTEGER ) * + 56
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL + - ( - COUNT ( * ) ) * - 82 AS col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7783
SELECT ALL + + 11 * - 55 + CAST( + 68 AS SIGNED )
----
-537

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL + + 11 * - 55 + CAST ( + 68 AS INTEGER )
----
-537

query I rowsort
SELECT - 64 + - 63 + ( + ( + + ( + 70 ) ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT DISTINCT - CASE - ( + NULLIF ( 10, - 46 * - CASE + 0 WHEN 61 THEN - 49 / - ( + 34 ) ELSE MAX( 84 ) + ( 98 ) END ) ) WHEN 44 + 50 THEN - 27 + + 2 WHEN 59 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT - CASE - ( + NULLIF ( 10, - 46 * - CASE + 0 WHEN 61 THEN - 49 / - ( + 34 ) ELSE MAX ( 84 ) + ( 98 ) END ) ) WHEN 44 + 50 THEN - 27 + + 2 WHEN 59 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + - 52 * - 19, + 78 AS col0
----
988
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT 88 + MAX( DISTINCT - 35 )
----
53

skipif mysql # not compatible
query I rowsort label-7787
SELECT 88 + MAX ( DISTINCT - 35 )
----
53

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

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

query I rowsort
SELECT + 91 + 7 AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7790
SELECT ALL - + 39 + + 33 + 92 DIV - 20
----
-10

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL - + 39 + + 33 + 92 / - 20
----
-10

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7792
SELECT COUNT( + 27 ), - 91 AS col0
----
1
-91

skipif mysql # not compatible
query II rowsort label-7792
SELECT COUNT ( + 27 ), - 91 AS col0
----
1
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7793
SELECT 57 + MIN( - 7 ) + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ), - 18 AS col0
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-7793
SELECT 57 + MIN ( - 7 ) + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ), - 18 AS col0
----
NULL
-18

query I rowsort
SELECT 36 * - 15 AS col2
----
-540

query I rowsort
SELECT ALL + 53 * - - 59 * - 40
----
-125080

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7797
SELECT + 30 AS col2, - COUNT( * ) - SUM( 89 ) AS col1
----
30
-90

skipif mysql # not compatible
query II rowsort label-7797
SELECT + 30 AS col2, - COUNT ( * ) - SUM ( 89 ) AS col1
----
30
-90

query II rowsort
SELECT 45 AS col2, - 3
----
45
-3

query II rowsort
SELECT + 39 AS col2, 63
----
39
63

query II rowsort
SELECT 58, - 11 AS col1
----
58
-11

query I rowsort
SELECT ALL ( - - 27 ) + - - 34 * + + 83 AS col1
----
2849

query I rowsort
SELECT DISTINCT 97 + 21 - 45 + - 95
----
-22

query I rowsort
SELECT DISTINCT 62 + 73 + - 54 + + - ( + 98 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT DISTINCT 79 + + 91 - ( - + COUNT( * ) ) AS col0
----
171

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT 79 + + 91 - ( - + COUNT ( * ) ) AS col0
----
171

query I rowsort
SELECT 21 * - - 76 AS col0
----
1596

onlyif mysql # DIV for integer division: 
query I rowsort label-7806
SELECT ALL 91 + 78 * + 84 DIV + 28
----
325

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL 91 + 78 * + 84 / + 28
----
325

query I rowsort
SELECT DISTINCT - 46 + 38 + 64
----
56

query II rowsort
SELECT + 63, ( 62 ) col2
----
63
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7809
SELECT COALESCE ( + + CAST( COUNT( * ) AS SIGNED ), 75 * - 97 + 62, + 57 / - + COUNT( * ) ) * CASE 41 WHEN - CAST( + 99 AS SIGNED ) THEN + 94 * 56 + 13 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT COALESCE ( + + CAST ( COUNT ( * ) AS INTEGER ), 75 * - 97 + 62, + 57 / - + COUNT ( * ) ) * CASE 41 WHEN - CAST ( + 99 AS INTEGER ) THEN + 94 * 56 + 13 ELSE NULL END
----
NULL

query I rowsort
SELECT 11 + - + 20 AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7811
SELECT 92 * CAST( - 28 AS SIGNED ) - + ( - 13 ) AS col0
----
-2563

skipif mysql # not compatible
query I rowsort label-7811
SELECT 92 * CAST ( - 28 AS INTEGER ) - + ( - 13 ) AS col0
----
-2563

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7812
SELECT DISTINCT ( + + 76 ) * - 4 + + - NULLIF ( - 55, - CAST( - - CASE + COUNT( * ) WHEN - 28 THEN NULL WHEN 24 THEN NULL ELSE - 22 END AS SIGNED ) + 30 ) AS col2
----
-249

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT ( + + 76 ) * - 4 + + - NULLIF ( - 55, - CAST ( - - CASE + COUNT ( * ) WHEN - 28 THEN NULL WHEN 24 THEN NULL ELSE - 22 END AS INTEGER ) + 30 ) AS col2
----
-249

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7813
SELECT - 53 * - - 25 + + 28 AS col1, - 41 + + 3 DIV + CAST( - - 35 AS SIGNED )
----
-1297
-41

skipif mysql # not compatible
query II rowsort label-7813
SELECT - 53 * - - 25 + + 28 AS col1, - 41 + + 3 / + CAST ( - - 35 AS INTEGER )
----
-1297
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7814
SELECT DISTINCT COALESCE ( + 57, - CASE - 8 WHEN - 25 + - + 97 THEN - 44 ELSE + COUNT( * ) * 41 END, 5 DIV - 86 ) * - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT COALESCE ( + 57, - CASE - 8 WHEN - 25 + - + 97 THEN - 44 ELSE + COUNT ( * ) * 41 END, 5 / - 86 ) * - COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT SUM( ALL - ( - 49 ) ) + COUNT( DISTINCT + COALESCE ( + - 4, - 51 ) )
----
50

skipif mysql # not compatible
query I rowsort label-7815
SELECT SUM ( ALL - ( - 49 ) ) + COUNT ( DISTINCT + COALESCE ( + - 4, - 51 ) )
----
50

query II rowsort
SELECT - 21, - ( - 84 ) AS col1
----
-21
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT ALL - COUNT( * ) - - COUNT( * ) * + - NULLIF ( + NULLIF ( 32, SUM( DISTINCT + 51 ) ), 87 )
----
-33

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL - COUNT ( * ) - - COUNT ( * ) * + - NULLIF ( + NULLIF ( 32, SUM ( DISTINCT + 51 ) ), 87 )
----
-33

query I rowsort
SELECT 51 + + 31 AS col2
----
82

query I rowsort
SELECT + 2 * 30
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT 59 - 80 + NULLIF ( - + 12, - COUNT( ALL 54 ) + - 3 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-7820
SELECT 59 - 80 + NULLIF ( - + 12, - COUNT ( ALL 54 ) + - 3 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-7821
SELECT - SUM( + 26 ) * - 18 AS col0, 86 AS col1
----
468
86

skipif mysql # not compatible
query II rowsort label-7821
SELECT - SUM ( + 26 ) * - 18 AS col0, 86 AS col1
----
468
86

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

skipif mysql # not compatible
query I rowsort label-7822
SELECT + 78 - + + COUNT ( * ) AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7823
SELECT ALL COALESCE ( + + 55, - - COUNT( * ), - COUNT( * ) DIV - 78 + - 2 + + - 77 DIV 2 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL COALESCE ( + + 55, - - COUNT ( * ), - COUNT ( * ) / - 78 + - 2 + + - 77 / 2 ) AS col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7824
SELECT + CAST( NULL AS SIGNED ) * + 21 * + 66 * + + 59 - - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT + CAST ( NULL AS INTEGER ) * + 21 * + 66 * + + 59 - - 58 AS col0
----
NULL

query I rowsort
SELECT 67 + 34
----
101

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7828
SELECT 83 DIV - 25
----
-3

skipif mysql # not compatible
query I rowsort label-7828
SELECT 83 / - 25
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7829
SELECT 86 + NULLIF ( - 84, COALESCE ( + 75, + 35 + + - 53, - - ( - - 24 ) ) ) + ( 81 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7829
SELECT 86 + NULLIF ( - 84, COALESCE ( + 75, + 35 + + - 53, - - ( - - 24 ) ) ) + ( 81 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7830
SELECT 95 DIV + 60
----
1

skipif mysql # not compatible
query I rowsort label-7830
SELECT 95 / + 60
----
1

query I rowsort
SELECT 2 + - 86
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL SUM( DISTINCT 86 ) * - 13 * + - 82 * - 5 + 24 + + + 18 col0
----
-458338

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL SUM ( DISTINCT 86 ) * - 13 * + - 82 * - 5 + 24 + + + 18 col0
----
-458338

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT DISTINCT COALESCE ( - - 48, + COUNT( DISTINCT + + 3 ) - + 88 - - 43 * - 40 ) * - 64 * + + 46 - SUM( + 58 + - 4 * - 64 ) * + ( 26 + + 59 * 17 ) + 60 col0
----
-464358

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT COALESCE ( - - 48, + COUNT ( DISTINCT + + 3 ) - + 88 - - 43 * - 40 ) * - 64 * + + 46 - SUM ( + 58 + - 4 * - 64 ) * + ( 26 + + 59 * 17 ) + 60 col0
----
-464358

onlyif mysql # DIV for integer division: 
query I rowsort label-7834
SELECT 95 DIV - 57 + - 34 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-7834
SELECT 95 / - 57 + - 34 AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7835
SELECT ALL + NULLIF ( + 97, - 26 ) * - - 4 + 12 DIV - 35 * - - ( - 4 ) * - COALESCE ( 39, ( 56 ) DIV + 92 ) + - NULLIF ( + COUNT( * ) + 18, - 94 ) AS col0
----
369

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL + NULLIF ( + 97, - 26 ) * - - 4 + 12 / - 35 * - - ( - 4 ) * - COALESCE ( 39, ( 56 ) / + 92 ) + - NULLIF ( + COUNT ( * ) + 18, - 94 ) AS col0
----
369

onlyif mysql # aggregate syntax: 
query II rowsort label-7836
SELECT DISTINCT - COUNT( * ) * + 82 AS col2, + 85 AS col2
----
-82
85

skipif mysql # not compatible
query II rowsort label-7836
SELECT DISTINCT - COUNT ( * ) * + 82 AS col2, + 85 AS col2
----
-82
85

query I rowsort
SELECT 30 + + 42 AS col0
----
72

query I rowsort
SELECT ALL - 48 * - 25 * 17 * NULLIF ( + 79, + 34 ) + + 81 * + 91 * + 46
----
1950666

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

skipif mysql # not compatible
query I rowsort label-7839
SELECT SUM ( DISTINCT 40 )
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT + 46 + 31 * - COUNT( 34 ) * - 94 * - COUNT( * ) col1
----
-2868

skipif mysql # not compatible
query I rowsort label-7841
SELECT + 46 + 31 * - COUNT ( 34 ) * - 94 * - COUNT ( * ) col1
----
-2868

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT DISTINCT 16 - - COUNT( * ) + + COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT 16 - - COUNT ( * ) + + COUNT ( * ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT DISTINCT 99 - 81 - - 92 * + NULLIF ( + - ( - ( + 12 ) ), - - ( ( COUNT( * ) ) ) )
----
1122

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT 99 - 81 - - 92 * + NULLIF ( + - ( - ( + 12 ) ), - - ( ( COUNT ( * ) ) ) )
----
1122

query I rowsort
SELECT + 17 - + 55 + 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT + CASE + - 38 WHEN - 28 + - 9 THEN NULL WHEN + - CASE COUNT( * ) WHEN 86 THEN - 83 END THEN + 16 ELSE 63 END * - 97 AS col0
----
-6111

skipif mysql # not compatible
query I rowsort label-7845
SELECT + CASE + - 38 WHEN - 28 + - 9 THEN NULL WHEN + - CASE COUNT ( * ) WHEN 86 THEN - 83 END THEN + 16 ELSE 63 END * - 97 AS col0
----
-6111

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT ALL 56 * - ( + - 49 ) + + - CASE + + COUNT( * ) WHEN - 91 THEN NULL WHEN - COUNT( * ) THEN + 39 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL 56 * - ( + - 49 ) + + - CASE + + COUNT ( * ) WHEN - 91 THEN NULL WHEN - COUNT ( * ) THEN + 39 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 26 + 9 col0
----
35

query I rowsort
SELECT ALL + ( 83 ) * - 85
----
-7055

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7849
SELECT + - 89 DIV + MIN( DISTINCT - 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7849
SELECT + - 89 / + MIN ( DISTINCT - 45 ) AS col2
----
1

query I rowsort
SELECT ALL ( COALESCE ( 49, - 52 - NULLIF ( 3, + - 36 / - - 41 * + 30 + + 65 ), ( 1 ) ) ) * - 97
----
-4753

query I rowsort
SELECT + 89 + + 63 AS col0
----
152

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7853
SELECT DISTINCT CASE 85 WHEN 30 * + 10 THEN 74 * - 35 WHEN - CAST( + + 73 AS SIGNED ) - - 69 THEN 43 ELSE + 72 END col0
----
72

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT CASE 85 WHEN 30 * + 10 THEN 74 * - 35 WHEN - CAST ( + + 73 AS INTEGER ) - - 69 THEN 43 ELSE + 72 END col0
----
72

query II rowsort
SELECT - - 32 + + 78 + - ( + + 9 ), 63 AS col1
----
101
63

query I rowsort
SELECT NULLIF ( + 73, - 26 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT DISTINCT - 8 + COUNT( DISTINCT + 90 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT - 8 + COUNT ( DISTINCT + 90 ) AS col2
----
-7

query I rowsort
SELECT + 39 * + - 38 * + 14 AS col2
----
-20748

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

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

query I rowsort
SELECT ALL - 63 + - - 47 AS col0
----
-16

query I rowsort
SELECT - 9 * 51
----
-459

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7861
SELECT DISTINCT - MAX( DISTINCT + + 33 ) DIV + - 91 + + 9 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT - MAX ( DISTINCT + + 33 ) / + - 91 + + 9 AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7862
SELECT ALL + COUNT( * ) DIV 21 + + 57 * + 93 AS col1
----
5301

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL + COUNT ( * ) / 21 + + 57 * + 93 AS col1
----
5301

query I rowsort
SELECT - 79 * + 39
----
-3081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7864
SELECT ( - - COALESCE ( ( - 96 ), - + 70 DIV + CASE COUNT( 70 ) WHEN + - CASE + 52 WHEN 25 THEN - 42 + + MAX( - 63 ) WHEN 20 THEN 39 ELSE 65 * + COUNT( * ) END THEN + 66 WHEN - COUNT( * ) THEN NULL ELSE NULL END, 19 ) ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-7864
SELECT ( - - COALESCE ( ( - 96 ), - + 70 / + CASE COUNT ( 70 ) WHEN + - CASE + 52 WHEN 25 THEN - 42 + + MAX ( - 63 ) WHEN 20 THEN 39 ELSE 65 * + COUNT ( * ) END THEN + 66 WHEN - COUNT ( * ) THEN NULL ELSE NULL END, 19 ) ) AS col0
----
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT ALL - 88 * - 12 - COUNT( * )
----
1055

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL - 88 * - 12 - COUNT ( * )
----
1055

query I rowsort
SELECT - 43 * + 82 col1
----
-3526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7868
SELECT 28 * - - COUNT( * ) - 16 * 67 * + - 96 * - ( - 39 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT 28 * - - COUNT ( * ) - 16 * 67 * + - 96 * - ( - 39 ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 19 * ( - 94 ) + - 35
----
-1821

onlyif mysql # DIV for integer division: 
query I rowsort label-7870
SELECT - 35 DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7870
SELECT - 35 / 53 AS col0
----
0

query I rowsort
SELECT ALL - 96 * + 50 + + 33 * 45 - + + 78 col2
----
-3393

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT ALL MIN( 35 ) * 81 * - COUNT( * ) AS col2
----
-2835

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL MIN ( 35 ) * 81 * - COUNT ( * ) AS col2
----
-2835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7873
SELECT ALL - - 32 * COUNT( * ) + + - ( + CASE + CAST( NULL AS SIGNED ) WHEN + 95 * + + 70 * + - ( - + 12 ) + + 48 + - 14 + 37 THEN NULL ELSE + MAX( - 43 ) END ) + 63 col0
----
138

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL - - 32 * COUNT ( * ) + + - ( + CASE + CAST ( NULL AS INTEGER ) WHEN + 95 * + + 70 * + - ( - + 12 ) + + 48 + - 14 + 37 THEN NULL ELSE + MAX ( - 43 ) END ) + 63 col0
----
138

query II rowsort
SELECT + - 32 AS col2, + 79 * 48 * 37
----
-32
140304

onlyif mysql # aggregate syntax: 
query II rowsort label-7875
SELECT + + NULLIF ( 6, + 24 ), COALESCE ( - 32, - 30 * - 60, 69 - - + COUNT( * ) + - + 41 ) AS col0
----
6
-32

skipif mysql # not compatible
query II rowsort label-7875
SELECT + + NULLIF ( 6, + 24 ), COALESCE ( - 32, - 30 * - 60, 69 - - + COUNT ( * ) + - + 41 ) AS col0
----
6
-32

query I rowsort
SELECT + + CASE 40 WHEN + - 37 THEN - + 51 - - 51 END + + 28 - - 95
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT + 66 * + 26 - - 5 DIV + 29 * - ( - 79 ) AS col2
----
1716

skipif mysql # not compatible
query I rowsort label-7877
SELECT + 66 * + 26 - - 5 / + 29 * - ( - 79 ) AS col2
----
1716

query I rowsort
SELECT - - 93 * 15 AS col2
----
1395

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ALL + + MAX( DISTINCT + - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL + + MAX ( DISTINCT + - 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT + MAX( - - 97 ) * - + 97
----
-9409

skipif mysql # not compatible
query I rowsort label-7880
SELECT + MAX ( - - 97 ) * - + 97
----
-9409

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

skipif mysql # not compatible
query I rowsort label-7881
SELECT + 64 + - 54 * + - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT ALL + 72 + + - CASE + 26 WHEN 31 THEN + ( 77 ) WHEN - CASE 87 WHEN COUNT( * ) THEN + 24 END + CAST( AVG ( ALL + 48 ) + 74 AS SIGNED ) / 9 THEN + AVG ( DISTINCT 96 ) END - + 76 * 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL + 72 + + - CASE + 26 WHEN 31 THEN + ( 77 ) WHEN - CASE 87 WHEN COUNT ( * ) THEN + 24 END + CAST ( AVG ( ALL + 48 ) + 74 AS INTEGER ) / 9 THEN + AVG ( DISTINCT 96 ) END - + 76 * 5 AS col1
----
NULL

query I rowsort
SELECT - + 66 + 51
----
-15

query I rowsort
SELECT - + NULLIF ( + 2, + 9 + 53 * + 5 + 73 )
----
-2

query II rowsort
SELECT - + 14, - 21 AS col0
----
-14
-21

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

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

query I rowsort
SELECT ALL - 81 + - + 86 col2
----
-167

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

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

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

skipif mysql # not compatible
query I rowsort label-7890
SELECT + 46 / + + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7891
SELECT + ( - + 56 ) - 27 DIV - + 21 + 3
----
-52

skipif mysql # not compatible
query I rowsort label-7891
SELECT + ( - + 56 ) - 27 / - + 21 + 3
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT DISTINCT SUM( ALL - CASE - 2 WHEN + ( - ( + 21 ) ) THEN NULL WHEN - 10 + - 27 THEN + 86 + + 50 ELSE 29 END )
----
-29

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT SUM ( ALL - CASE - 2 WHEN + ( - ( + 21 ) ) THEN NULL WHEN - 10 + - 27 THEN + 86 + + 50 ELSE 29 END )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7893
SELECT DISTINCT 80 + - 7 * + NULLIF ( CASE ( + COALESCE ( - 71, 18 ) ) WHEN ( 98 ) THEN NULL ELSE + 83 END, ( AVG ( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) ) + 61 ) AS col1
----
-501

skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT 80 + - 7 * + NULLIF ( CASE ( + COALESCE ( - 71, 18 ) ) WHEN ( 98 ) THEN NULL ELSE + 83 END, ( AVG ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) + 61 ) AS col1
----
-501

query I rowsort
SELECT ALL ( 73 ) + 65 AS col1
----
138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT DISTINCT 74 * - SUM( + 56 )
----
-4144

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT 74 * - SUM ( + 56 )
----
-4144

onlyif mysql # aggregate syntax: 
query II rowsort label-7897
SELECT DISTINCT ( - - ( - - NULLIF ( 34, - 20 + + + COUNT( * ) ) ) ), - 25 AS col1
----
34
-25

skipif mysql # not compatible
query II rowsort label-7897
SELECT DISTINCT ( - - ( - - NULLIF ( 34, - 20 + + + COUNT ( * ) ) ) ), - 25 AS col1
----
34
-25

query II rowsort
SELECT 98 AS col2, 83
----
98
83

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7900
SELECT - MIN( ALL 57 ) - 87 * - CASE + 59 WHEN 8 THEN - 38 * - 78 + - CAST( - + 84 AS DECIMAL ) WHEN - COUNT( * ) + 45 THEN NULL END - + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT - MIN ( ALL 57 ) - 87 * - CASE + 59 WHEN 8 THEN - 38 * - 78 + - CAST ( - + 84 AS REAL ) WHEN - COUNT ( * ) + 45 THEN NULL END - + 8 AS col0
----
NULL

query I rowsort
SELECT + 50 + - + 79 AS col1
----
-29

query I rowsort
SELECT + 26 + - + 87 * + 76
----
-6586

query II rowsort
SELECT + 3 AS col2, + 5 AS col0
----
3
5

query II rowsort
SELECT ALL - 65, - 88 + 87 AS col2
----
-65
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7905
SELECT NULLIF ( - 58, + - 23 ) * 99 + ( + COUNT( * ) ) col0, + 12 * CAST( NULL AS DECIMAL ) AS col2
----
-5741
NULL

skipif mysql # not compatible
query II rowsort label-7905
SELECT NULLIF ( - 58, + - 23 ) * 99 + ( + COUNT ( * ) ) col0, + 12 * CAST ( NULL AS REAL ) AS col2
----
-5741
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL 2 - + COUNT( * ) * + 39
----
-37

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL 2 - + COUNT ( * ) * + 39
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7907
SELECT + NULLIF ( + 41, + COUNT( * ) + - COUNT( * ) + - 88 ) DIV - - 84 + + COUNT( * ) + - + 54 + + COUNT( * ) * - COUNT( * ) DIV - - 87
----
-53

skipif mysql # not compatible
query I rowsort label-7907
SELECT + NULLIF ( + 41, + COUNT ( * ) + - COUNT ( * ) + - 88 ) / - - 84 + + COUNT ( * ) + - + 54 + + COUNT ( * ) * - COUNT ( * ) / - - 87
----
-53

query I rowsort
SELECT ALL + 89 - 10 AS col0
----
79

query I rowsort
SELECT ALL + + 93 * + + ( - 98 ) col0
----
-9114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7910
SELECT + CAST( + 18 AS SIGNED ) AS col1, ( + 84 ) + 67 - 15
----
18
136

skipif mysql # not compatible
query II rowsort label-7910
SELECT + CAST ( + 18 AS INTEGER ) AS col1, ( + 84 ) + 67 - 15
----
18
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT COUNT( * ) + ( - - ( MIN( ALL - + ( - 18 ) ) ) )
----
19

skipif mysql # not compatible
query I rowsort label-7911
SELECT COUNT ( * ) + ( - - ( MIN ( ALL - + ( - 18 ) ) ) )
----
19

query I rowsort
SELECT ALL - + NULLIF ( 52, - 44 )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7913
SELECT - 8 DIV 12
----
0

skipif mysql # not compatible
query I rowsort label-7913
SELECT - 8 / 12
----
0

query I rowsort
SELECT 78 * - - 16 * - - ( + + 24 )
----
29952

query I rowsort
SELECT - 22 * 72
----
-1584

query II rowsort
SELECT ALL - 67 AS col2, + 53 col2
----
-67
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7917
SELECT DISTINCT - + COUNT( * ), MIN( DISTINCT - 14 ) col0
----
-1
-14

skipif mysql # not compatible
query II rowsort label-7917
SELECT DISTINCT - + COUNT ( * ), MIN ( DISTINCT - 14 ) col0
----
-1
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT ( 51 ) + - CASE + 59 WHEN - NULLIF ( + 57, + 72 ) + + COALESCE ( - 78, - - ( + + 5 ) * - COUNT( * ) + 36, + 53, 92 ) THEN NULL WHEN + 47 THEN + 7 WHEN + 28 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT ( 51 ) + - CASE + 59 WHEN - NULLIF ( + 57, + 72 ) + + COALESCE ( - 78, - - ( + + 5 ) * - COUNT ( * ) + 36, + 53, 92 ) THEN NULL WHEN + 47 THEN + 7 WHEN + 28 THEN NULL END
----
NULL

query II rowsort
SELECT + + 72, + 58 AS col1
----
72
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT ALL - NULLIF ( - ( 81 ), - - 5 + COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL - NULLIF ( - ( 81 ), - - 5 + COUNT ( * ) ) AS col2
----
81

query II rowsort
SELECT + + ( 16 ), 71 + + - 80 AS col1
----
16
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT - 80 - + ( COUNT( * ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7922
SELECT - 80 - + ( COUNT ( * ) ) AS col2
----
-81

query I rowsort
SELECT ALL + + 13 + + 12
----
25

query I rowsort
SELECT - 7 + 29
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT - COUNT( * ) + + - 61 + - + ( 4 ) + - 40 AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-7925
SELECT - COUNT ( * ) + + - 61 + - + ( 4 ) + - 40 AS col0
----
-106

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

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT - COALESCE ( COUNT ( * ), + 7 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7927
SELECT ALL COALESCE ( 51, - 71 ) + - 92 + 74 / + 21 + + + 60 * + 38 / - - 51 / - 45 * 17 * + + 86 * - CASE + 54 / + COALESCE ( 89, 45, 15 * 16 ) WHEN + 90 THEN NULL WHEN - CASE 82 WHEN - 50 THEN NULL WHEN - 12 * + 36 THEN NULL ELSE - 4 END THEN NULL WHEN NULLIF ( + COUNT( * ), + 62 / 90 ) + + MIN( 84 + 76 ) THEN - MAX( 4 ) ELSE CAST( NULL AS SIGNED ) / 35 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL COALESCE ( 51, - 71 ) + - 92 + 74 / + 21 + + + 60 * + 38 / - - 51 / - 45 * 17 * + + 86 * - CASE + 54 / + COALESCE ( 89, 45, 15 * 16 ) WHEN + 90 THEN NULL WHEN - CASE 82 WHEN - 50 THEN NULL WHEN - 12 * + 36 THEN NULL ELSE - 4 END THEN NULL WHEN NULLIF ( + COUNT ( * ), + 62 / 90 ) + + MIN ( 84 + 76 ) THEN - MAX ( 4 ) ELSE CAST ( NULL AS INTEGER ) / 35 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT COUNT( * ) + - + NULLIF ( - 48, + 46 ) col2
----
49

skipif mysql # not compatible
query I rowsort label-7928
SELECT COUNT ( * ) + - + NULLIF ( - 48, + 46 ) col2
----
49

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

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

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT ( + COUNT ( * ) ) - + + 14 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ( - + 67 ) * + 13 * - COUNT( * ) * + + 77
----
67067

skipif mysql # not compatible
query I rowsort label-7931
SELECT ( - + 67 ) * + 13 * - COUNT ( * ) * + + 77
----
67067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7932
SELECT ALL CAST( 64 AS SIGNED ) - 67 * - 87
----
5893

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL CAST ( 64 AS INTEGER ) - 67 * - 87
----
5893

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT MAX( + - 58 ) + + 93 + - ( - 15 ) * 88 * + ( - 68 ) + 42 AS col0
----
-89683

skipif mysql # not compatible
query I rowsort label-7933
SELECT MAX ( + - 58 ) + + 93 + - ( - 15 ) * 88 * + ( - 68 ) + 42 AS col0
----
-89683

query I rowsort
SELECT 30 * + 80
----
2400

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT DISTINCT 49 DIV - ( 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT 49 / - ( 40 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7937
SELECT COALESCE ( 37, + + 46 + 21 * - COALESCE ( - + 19, + + COUNT( * ) DIV 27 ) * ( + + 62 ) DIV + 9 + + - 75 - 40 DIV CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) ) - 62
----
-25

skipif mysql # not compatible
query I rowsort label-7937
SELECT COALESCE ( 37, + + 46 + 21 * - COALESCE ( - + 19, + + COUNT ( * ) / 27 ) * ( + + 62 ) / + 9 + + - 75 - 40 / CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) ) - 62
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT - MAX( ALL - 18 ) * + 97 + + 39 * 92
----
5334

skipif mysql # not compatible
query I rowsort label-7938
SELECT - MAX ( ALL - 18 ) * + 97 + + 39 * 92
----
5334

query I rowsort
SELECT ALL - - 23 col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7940
SELECT COUNT( * ) DIV + - COUNT( DISTINCT - + CAST( - 57 AS SIGNED ) ) * - - COUNT( * ) + + COUNT( * ) + - 23
----
-23

skipif mysql # not compatible
query I rowsort label-7940
SELECT COUNT ( * ) / + - COUNT ( DISTINCT - + CAST ( - 57 AS INTEGER ) ) * - - COUNT ( * ) + + COUNT ( * ) + - 23
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-7941
SELECT ALL - 7 + - NULLIF ( + SUM( - 2 ), 34 ) col2, + 2 AS col1
----
-5
2

skipif mysql # not compatible
query II rowsort label-7941
SELECT ALL - 7 + - NULLIF ( + SUM ( - 2 ), 34 ) col2, + 2 AS col1
----
-5
2

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT + CAST( - - COALESCE ( + + 61, + 79, + 38 ) AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-7943
SELECT + CAST ( - - COALESCE ( + + 61, + 79, + 38 ) AS INTEGER )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT COUNT( * ) - 24
----
-23

skipif mysql # not compatible
query I rowsort label-7944
SELECT COUNT ( * ) - 24
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7945
SELECT ALL 12 + + 40 - - - ( - CAST( 21 AS SIGNED ) ) + + 61 + - NULLIF ( - 94, + 75 * 99 + + CAST( NULL AS SIGNED ) + + + 32 ) * 77
----
7372

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL 12 + + 40 - - - ( - CAST ( 21 AS INTEGER ) ) + + 61 + - NULLIF ( - 94, + 75 * 99 + + CAST ( NULL AS INTEGER ) + + + 32 ) * 77
----
7372

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7946
SELECT + ( + CASE CAST( NULL AS DECIMAL ) WHEN + 77 / + - 69 THEN NULL WHEN 92 + - - COUNT( * ) * + 62 THEN + - 70 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT + ( + CASE CAST ( NULL AS REAL ) WHEN + 77 / + - 69 THEN NULL WHEN 92 + - - COUNT ( * ) * + 62 THEN + - 70 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7947
SELECT DISTINCT + + 23 + + CAST( - 37 AS SIGNED ) * - + 88
----
3279

skipif mysql # not compatible
query I rowsort label-7947
SELECT DISTINCT + + 23 + + CAST ( - 37 AS INTEGER ) * - + 88
----
3279

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7948
SELECT CAST( NULL AS DECIMAL ) + - 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7948
SELECT CAST ( NULL AS REAL ) + - 19 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT 51 DIV + 90 * 72 + - + 62
----
-62

skipif mysql # not compatible
query I rowsort label-7949
SELECT 51 / + 90 * 72 + - + 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT - MIN( DISTINCT 95 ) + + - 96 - - 36 AS col1
----
-155

skipif mysql # not compatible
query I rowsort label-7950
SELECT - MIN ( DISTINCT 95 ) + + - 96 - - 36 AS col1
----
-155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7951
SELECT - CAST( NULL AS SIGNED ) * 82 - + + 70 + + 40 * - - 5 + + COUNT( * ) * - 7 * + - 63 + ( - + 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7951
SELECT - CAST ( NULL AS INTEGER ) * 82 - + + 70 + + 40 * - - 5 + + COUNT ( * ) * - 7 * + - 63 + ( - + 70 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7952
SELECT DISTINCT - CAST( - - COALESCE ( + + 93, 89 ) AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT - CAST ( - - COALESCE ( + + 93, 89 ) AS INTEGER )
----
-93

onlyif mysql # aggregate syntax: 
query III rowsort label-7953
SELECT 43 * + 11, 61 * + ( - 23 ) AS col2, - COUNT( 10 ) AS col2
----
473
-1403
-1

skipif mysql # not compatible
query III rowsort label-7953
SELECT 43 * + 11, 61 * + ( - 23 ) AS col2, - COUNT ( 10 ) AS col2
----
473
-1403
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7954
SELECT ALL - 89 DIV + NULLIF ( + 75, + COUNT( * ) - + + CAST( 20 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL - 89 / + NULLIF ( + 75, + COUNT ( * ) - + + CAST ( 20 AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT ALL - NULLIF ( + ( + ( + - CASE + + 21 WHEN - COUNT( * ) * - AVG ( + 32 ) + + COALESCE ( 81, - 33 * + + 92 * ( + 50 ) ) THEN - COUNT( * ) + 11 * 47 ELSE NULL END ) ), + CASE 95 WHEN - 5 * 59 + + 48 THEN 60 * + 83 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL - NULLIF ( + ( + ( + - CASE + + 21 WHEN - COUNT ( * ) * - AVG ( + 32 ) + + COALESCE ( 81, - 33 * + + 92 * ( + 50 ) ) THEN - COUNT ( * ) + 11 * 47 ELSE NULL END ) ), + CASE 95 WHEN - 5 * 59 + + 48 THEN 60 * + 83 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT DISTINCT - 50 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT - 50 / + 68
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7957
SELECT DISTINCT + 59 + + CAST( NULL AS DECIMAL ) - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT DISTINCT + 59 + + CAST ( NULL AS REAL ) - 21 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7958
SELECT ALL - ( - ( + 26 ) ) * 13 DIV + 41 + + 78
----
86

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL - ( - ( + 26 ) ) * 13 / + 41 + + 78
----
86

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

query I rowsort
SELECT 1 + 7 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT COUNT( * ) * + ( - - ( - 73 ) ) * + 28
----
-2044

skipif mysql # not compatible
query I rowsort label-7961
SELECT COUNT ( * ) * + ( - - ( - 73 ) ) * + 28
----
-2044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7962
SELECT DISTINCT COALESCE ( - - 58, CAST( + 99 AS SIGNED ) )
----
58

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT COALESCE ( - - 58, CAST ( + 99 AS INTEGER ) )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7963
SELECT - 44 - + ( - 17 ) DIV + ( - CAST( ( + CAST( + + MAX( - 1 ) AS SIGNED ) ) AS SIGNED ) ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-7963
SELECT - 44 - + ( - 17 ) / + ( - CAST ( ( + CAST ( + + MAX ( - 1 ) AS INTEGER ) ) AS INTEGER ) ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT DISTINCT + COUNT( DISTINCT + 5 ) * + MIN( ( 78 ) )
----
78

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT + COUNT ( DISTINCT + 5 ) * + MIN ( ( 78 ) )
----
78

query I rowsort
SELECT - 20 - 39 + + 5 * + 45 AS col1
----
166

query I rowsort
SELECT ALL - 96 - + 0 AS col0
----
-96

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7968
SELECT ALL 8 DIV - MIN( ALL + 52 )
----
0

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL 8 / - MIN ( ALL + 52 )
----
0

query I rowsort
SELECT DISTINCT COALESCE ( - NULLIF ( + - ( - 99 ), + - 92 ), - 65, + 11 )
----
-99

query I rowsort
SELECT + 49 * + COALESCE ( - 22, + + 80 )
----
-1078

query I rowsort
SELECT + 66 - 56
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT ALL 72 * - 1 * CASE - 37 WHEN - - ( 67 ) + - ( - CAST( + - 91 AS SIGNED ) ) + + 44 + 32 / - 99 THEN 71 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL 72 * - 1 * CASE - 37 WHEN - - ( 67 ) + - ( - CAST ( + - 91 AS INTEGER ) ) + + 44 + 32 / - 99 THEN 71 END AS col0
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7975
SELECT ALL 63 * 87 + 52 * + 89, + CAST( NULL AS SIGNED ) col1
----
10109
NULL

skipif mysql # not compatible
query II rowsort label-7975
SELECT ALL 63 * 87 + 52 * + 89, + CAST ( NULL AS INTEGER ) col1
----
10109
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT + - 68 * 56 * - + 91 + COALESCE ( 17, - - 2 ) + COUNT( * ) + + - 64
----
346482

skipif mysql # not compatible
query I rowsort label-7976
SELECT + - 68 * 56 * - + 91 + COALESCE ( 17, - - 2 ) + COUNT ( * ) + + - 64
----
346482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7977
SELECT DISTINCT CASE ( + + 35 ) WHEN - - 80 THEN NULL WHEN NULLIF ( + 58, + 71 * + 34 ) THEN CAST( NULL AS SIGNED ) WHEN - ( COUNT( * ) ) + - 12 - - 45 * + COUNT( - 73 ) THEN + CAST( NULL AS SIGNED ) * 18 + + 4 ELSE ( + COUNT( * ) ) END * - SUM( DISTINCT 89 * + 92 ) + + 41 AS col0
----
-8147

skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT CASE ( + + 35 ) WHEN - - 80 THEN NULL WHEN NULLIF ( + 58, + 71 * + 34 ) THEN CAST ( NULL AS INTEGER ) WHEN - ( COUNT ( * ) ) + - 12 - - 45 * + COUNT ( - 73 ) THEN + CAST ( NULL AS INTEGER ) * 18 + + 4 ELSE ( + COUNT ( * ) ) END * - SUM ( DISTINCT 89 * + 92 ) + + 41 AS col0
----
-8147

query I rowsort
SELECT DISTINCT 21 * 48 + - 20 + - 86 * + 77 + - 11
----
-5645

query II rowsort
SELECT DISTINCT + + 35 * 79 * - - 52 * + 53 + - 10 + 24 col1, 42
----
7620354
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7980
SELECT + - ( 69 ) DIV 6 * + - 55 * 91 + + - 99
----
54956

skipif mysql # not compatible
query I rowsort label-7980
SELECT + - ( 69 ) / 6 * + - 55 * 91 + + - 99
----
54956

query II rowsort
SELECT + - 86, ( + 86 ) col0
----
-86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT + - ( + - 32 ) + - - 28 + 31 * + + 95 + 20 - + 42 + MIN( DISTINCT - 41 ) * - - 84 * + 46 AS col0
----
-155441

skipif mysql # not compatible
query I rowsort label-7982
SELECT + - ( + - 32 ) + - - 28 + 31 * + + 95 + 20 - + 42 + MIN ( DISTINCT - 41 ) * - - 84 * + 46 AS col0
----
-155441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7983
SELECT DISTINCT - 53 * - 14 * + COUNT( * ) * - 40 + 12 DIV + 23 * + ( + 57 ) AS col2
----
-29680

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT - 53 * - 14 * + COUNT ( * ) * - 40 + 12 / + 23 * + ( + 57 ) AS col2
----
-29680

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

query I rowsort
SELECT - + 67 * + - 19 * ( + 23 ) + + 76 AS col2
----
29355

query II rowsort
SELECT + 32 AS col1, 45 - - 23 * + 46 + - 90 col2
----
32
1013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7987
SELECT ALL + COALESCE ( COUNT( * ), + - 67 - + - 95 DIV 96, 4 DIV - NULLIF ( + MIN( + 43 ), 84 * - 25 + - 14 * + MAX( DISTINCT 47 ) DIV 33 ) - 2 ) * MIN( 22 DIV 35 + - 31 ) + - 12
----
-43

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL + COALESCE ( COUNT ( * ), + - 67 - + - 95 / 96, 4 / - NULLIF ( + MIN ( + 43 ), 84 * - 25 + - 14 * + MAX ( DISTINCT 47 ) / 33 ) - 2 ) * MIN ( 22 / 35 + - 31 ) + - 12
----
-43

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

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

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

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

query I rowsort
SELECT + - 55 * - 44 AS col2
----
2420

query I rowsort
SELECT + ( 14 ) + + - 97 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-7992
SELECT ALL 54 * 71 * - NULLIF ( + COUNT( * ), - 13 ) - - COUNT( * ), 7 + + ( + 62 ) AS col0
----
-3833
69

skipif mysql # not compatible
query II rowsort label-7992
SELECT ALL 54 * 71 * - NULLIF ( + COUNT ( * ), - 13 ) - - COUNT ( * ), 7 + + ( + 62 ) AS col0
----
-3833
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7993
SELECT ALL + - 86 AS col1, COUNT( * ) * + NULLIF ( - 36, 62 )
----
-86
-36

skipif mysql # not compatible
query II rowsort label-7993
SELECT ALL + - 86 AS col1, COUNT ( * ) * + NULLIF ( - 36, 62 )
----
-86
-36

query II rowsort
SELECT DISTINCT + 7 AS col2, + 58 AS col0
----
7
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7995
SELECT + 57 * + 84 AS col2, 56 * CAST( NULL AS SIGNED ) * - 71
----
4788
NULL

skipif mysql # not compatible
query II rowsort label-7995
SELECT + 57 * + 84 AS col2, 56 * CAST ( NULL AS INTEGER ) * - 71
----
4788
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT SUM( - 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-7997
SELECT SUM ( - 31 ) AS col1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT - 15 DIV 65 DIV - 17 * + 30
----
0

skipif mysql # not compatible
query I rowsort label-7998
SELECT - 15 / 65 / - 17 * + 30
----
0

query I rowsort
SELECT + 27 * + - 25 AS col2
----
-675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8000
SELECT ALL - COUNT( * ) DIV - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL - COUNT ( * ) / - 85 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT + 44 + - 64 * 7 * - COUNT( * ) - + 71 + - - 39 * - 12
----
-47

skipif mysql # not compatible
query I rowsort label-8001
SELECT + 44 + - 64 * 7 * - COUNT ( * ) - + 71 + - - 39 * - 12
----
-47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8003
SELECT - 97 + CAST( - + ( - COUNT( * ) ) AS SIGNED ) + 49
----
-47

skipif mysql # not compatible
query I rowsort label-8003
SELECT - 97 + CAST ( - + ( - COUNT ( * ) ) AS INTEGER ) + 49
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8004
SELECT ALL COUNT( * ) DIV + ( - 59 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL COUNT ( * ) / + ( - 59 ) col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8005
SELECT ALL + 10 * 40, 62 * 21 * - - ( - COUNT( * ) ) AS col0
----
400
-1302

skipif mysql # not compatible
query II rowsort label-8005
SELECT ALL + 10 * 40, 62 * 21 * - - ( - COUNT ( * ) ) AS col0
----
400
-1302

query I rowsort
SELECT DISTINCT + 56 * + - 0 AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8008
SELECT ALL - 11 * CASE 56 WHEN - COUNT( + 57 ) THEN NULL WHEN - COUNT( * ) THEN ( 54 ) ELSE + ( - - 35 ) END AS col0, + SUM( DISTINCT 27 )
----
-385
27

skipif mysql # not compatible
query II rowsort label-8008
SELECT ALL - 11 * CASE 56 WHEN - COUNT ( + 57 ) THEN NULL WHEN - COUNT ( * ) THEN ( 54 ) ELSE + ( - - 35 ) END AS col0, + SUM ( DISTINCT 27 )
----
-385
27

query I rowsort
SELECT - 37 * + 50
----
-1850

query II rowsort
SELECT - 43 + 31 AS col0, ( + - 97 ) AS col2
----
-12
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8011
SELECT ALL + 39 + 21 * - 32 + + + CAST( NULL AS SIGNED ) - MIN( DISTINCT - COALESCE ( + CAST( NULL AS SIGNED ), ( 31 ) ) ) * + - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL + 39 + 21 * - 32 + + + CAST ( NULL AS INTEGER ) - MIN ( DISTINCT - COALESCE ( + CAST ( NULL AS INTEGER ), ( 31 ) ) ) * + - 46 AS col1
----
NULL

query I rowsort
SELECT ALL - 71 + - - 56 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT - 88 * - 2 * + ( - CASE + COUNT( * ) WHEN + 49 + SUM( DISTINCT - 98 ) THEN COUNT( * ) * - - 51 - - 80 + 1 * + - 78 END ) * - + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8013
SELECT - 88 * - 2 * + ( - CASE + COUNT ( * ) WHEN + 49 + SUM ( DISTINCT - 98 ) THEN COUNT ( * ) * - - 51 - - 80 + 1 * + - 78 END ) * - + 5 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8014
SELECT DISTINCT - - 81 + 48 + 72 DIV COALESCE ( COUNT( * ), 6, + 13 * - + 90 DIV - - 22 * NULLIF ( - CAST( NULL AS SIGNED ), ( - ( - 42 ) ) + + 98 DIV 83 ) )
----
201

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT - - 81 + 48 + 72 / COALESCE ( COUNT ( * ), 6, + 13 * - + 90 / - - 22 * NULLIF ( - CAST ( NULL AS INTEGER ), ( - ( - 42 ) ) + + 98 / 83 ) )
----
201

query I rowsort
SELECT ALL + - ( - 11 ) + + 61
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT DISTINCT 45 * COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT 45 * COUNT ( * ) AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8017
SELECT - 15 DIV 68 + - + COUNT( * ) * 88 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-8017
SELECT - 15 / 68 + - + COUNT ( * ) * 88 AS col0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8018
SELECT - 23 DIV - - 81 - - COUNT( * ) * + - 48 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8018
SELECT - 23 / - - 81 - - COUNT ( * ) * + - 48 AS col1
----
-48

query I rowsort
SELECT - 68 - - 19 AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8020
SELECT + + 44 * 87 / - - ( CAST( NULL AS DECIMAL ) ) AS col2, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8020
SELECT + + 44 * 87 / - - ( CAST ( NULL AS REAL ) ) AS col2, + COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT DISTINCT 30 * - 27 * + - ( + 61 )
----
49410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8022
SELECT ALL - 49 / 55 - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL - 49 / 55 - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8023
SELECT DISTINCT + - CAST( - 54 AS SIGNED ) * - - NULLIF ( 11, 83 * 99 ) AS col0
----
594

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT + - CAST ( - 54 AS INTEGER ) * - - NULLIF ( 11, 83 * 99 ) AS col0
----
594

onlyif mysql # DIV for integer division: 
query I rowsort label-8024
SELECT - 47 DIV + + 78 - 16
----
-16

skipif mysql # not compatible
query I rowsort label-8024
SELECT - 47 / + + 78 - 16
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8025
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 29 * + 8 * 78 * ( + - 43 ) + 9, 13 AS col1
----
NULL
13

skipif mysql # not compatible
query II rowsort label-8025
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 29 * + 8 * 78 * ( + - 43 ) + 9, 13 AS col1
----
NULL
13

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

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

query I rowsort
SELECT DISTINCT + ( + 69 ) AS col0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8028
SELECT + - 18 DIV - 24 * - 48 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8028
SELECT + - 18 / - 24 * - 48 + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + 39 * + + 70
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT - 1 * - ( + 14 ) + - MIN( DISTINCT - 64 )
----
78

skipif mysql # not compatible
query I rowsort label-8030
SELECT - 1 * - ( + 14 ) + - MIN ( DISTINCT - 64 )
----
78

query II rowsort
SELECT ALL 89 AS col1, 66
----
89
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT SUM( + 31 ) * + + ( + 2 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8032
SELECT SUM ( + 31 ) * + + ( + 2 ) AS col1
----
62

query I rowsort
SELECT DISTINCT CASE WHEN ( NULL ) IS NULL THEN 56 ELSE NULL END * 89 * - ( + 66 )
----
-328944

query I rowsort
SELECT ( - 12 ) + - + 61 AS col1
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT 81 * COUNT( ALL 18 )
----
81

skipif mysql # not compatible
query I rowsort label-8036
SELECT 81 * COUNT ( ALL 18 )
----
81

query I rowsort
SELECT 61 - + 67
----
-6

query II rowsort
SELECT ALL 63, + 64 AS col1
----
63
64

query I rowsort
SELECT DISTINCT 54 + - 15 AS col1
----
39

query I rowsort
SELECT ALL + 78 * - + 16 + 47 AS col1
----
-1201

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT DISTINCT - MIN( - + 46 ) + + 19 * COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT - MIN ( - + 46 ) + + 19 * COUNT ( * )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT - CAST( - 43 AS SIGNED ) + 62 + + 85
----
190

skipif mysql # not compatible
query I rowsort label-8042
SELECT - CAST ( - 43 AS INTEGER ) + 62 + + 85
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ALL + COALESCE ( 91, - 76 ) * - SUM( DISTINCT - + 96 ) * - + 36 + - - COUNT( * )
----
-314495

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL + COALESCE ( 91, - 76 ) * - SUM ( DISTINCT - + 96 ) * - + 36 + - - COUNT ( * )
----
-314495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8044
SELECT + COALESCE ( - COUNT( * ), 35 + + 3 ) DIV - + 86 + + 63 * - 25 + + 47 + + CAST( - 70 AS SIGNED ) * - 39
----
1202

skipif mysql # not compatible
query I rowsort label-8044
SELECT + COALESCE ( - COUNT ( * ), 35 + + 3 ) / - + 86 + + 63 * - 25 + + 47 + + CAST ( - 70 AS INTEGER ) * - 39
----
1202

query I rowsort
SELECT ALL - - 4 - 49 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT DISTINCT - ( + - MAX( ALL - 19 ) ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT - ( + - MAX ( ALL - 19 ) ) col0
----
-19

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8049
SELECT ALL - + NULLIF ( + + CASE + - 52 WHEN - - 97 * COALESCE ( + 68, MAX( + NULLIF ( 97, - 62 ) ) * - 72 + - - 46 + + ( - - 82 ), + 79 * 14 ) - 21 * 59 - + 40 THEN 39 DIV + 87 + CASE 89 WHEN - ( + 43 ) THEN 62 WHEN + ( 71 ) + 26 THEN NULL ELSE NULL END DIV COUNT( * ) ELSE COALESCE ( 22, 93, + 71 ) END, 55 * + SUM( 19 * 56 ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL - + NULLIF ( + + CASE + - 52 WHEN - - 97 * COALESCE ( + 68, MAX ( + NULLIF ( 97, - 62 ) ) * - 72 + - - 46 + + ( - - 82 ), + 79 * 14 ) - 21 * 59 - + 40 THEN 39 / + 87 + CASE 89 WHEN - ( + 43 ) THEN 62 WHEN + ( 71 ) + 26 THEN NULL ELSE NULL END / COUNT ( * ) ELSE COALESCE ( 22, 93, + 71 ) END, 55 * + SUM ( 19 * 56 ) ) AS col0
----
-22

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

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

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

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

query I rowsort
SELECT - + 22 * - 8 * + 34 + + 69 * - 2
----
5846

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

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

query I rowsort
SELECT DISTINCT 57 * + 88 col0
----
5016

onlyif mysql # aggregate syntax: 
query II rowsort label-8056
SELECT ALL - 10 AS col0, - 49 + + - 20 * + COUNT( * )
----
-10
-69

skipif mysql # not compatible
query II rowsort label-8056
SELECT ALL - 10 AS col0, - 49 + + - 20 * + COUNT ( * )
----
-10
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8057
SELECT 46 + COUNT( * ) DIV + COUNT( * ) + - 28 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-8057
SELECT 46 + COUNT ( * ) / + COUNT ( * ) + - 28 AS col0
----
19

query I rowsort
SELECT ALL 56 + - 8
----
48

query I rowsort
SELECT 36 * + - 3 AS col2
----
-108

query II rowsort
SELECT 77 AS col2, - 84 + + 64 AS col0
----
77
-20

query I rowsort
SELECT ALL 49 + + 62 col0
----
111

query II rowsort
SELECT - 52 AS col0, 22 + 32 AS col0
----
-52
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT MAX( 83 ) + ( COALESCE ( + - 32, 65 ) ) + - 64
----
-13

skipif mysql # not compatible
query I rowsort label-8063
SELECT MAX ( 83 ) + ( COALESCE ( + - 32, 65 ) ) + - 64
----
-13

query II rowsort
SELECT 63, + 53 AS col0
----
63
53

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

skipif mysql # not compatible
query II rowsort label-8065
SELECT ALL COUNT ( * ), 83 AS col0
----
1
83

query I rowsort
SELECT DISTINCT 55 + - ( - 81 ) AS col0
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT ALL 13 + - + NULLIF ( - 89, CAST( 31 AS SIGNED ) + 48 ) AS col2
----
102

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL 13 + - + NULLIF ( - 89, CAST ( 31 AS INTEGER ) + 48 ) AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT DISTINCT COUNT( * ) * 86 * + - 35 AS col2
----
-3010

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT COUNT ( * ) * 86 * + - 35 AS col2
----
-3010

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

query II rowsort
SELECT DISTINCT - 36 AS col1, + 76
----
-36
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT DISTINCT - COALESCE ( 44, 47 * + - 87 + + + 42 + 2 + + 64 - MIN( + 79 ) - - 1 * 95 * - + 16 * + - COUNT( * ), - MIN( + - 70 ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT - COALESCE ( 44, 47 * + - 87 + + + 42 + 2 + + 64 - MIN ( + 79 ) - - 1 * 95 * - + 16 * + - COUNT ( * ), - MIN ( + - 70 ) ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-8072
SELECT ALL 89 - - COUNT( * ) * + - 59 + - 23, NULLIF ( + COUNT( * ), + - 59 ) * - + 32 * - 33 + + 77 - - - 77 * 90 AS col0
----
7
-5797

skipif mysql # not compatible
query II rowsort label-8072
SELECT ALL 89 - - COUNT ( * ) * + - 59 + - 23, NULLIF ( + COUNT ( * ), + - 59 ) * - + 32 * - 33 + + 77 - - - 77 * 90 AS col0
----
7
-5797

query II rowsort
SELECT - 0 col1, 2 - + 18 AS col1
----
0
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8074
SELECT ALL 33 * MIN( CAST( 20 AS SIGNED ) ) - + 35 AS col2
----
625

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL 33 * MIN ( CAST ( 20 AS INTEGER ) ) - + 35 AS col2
----
625

onlyif mysql # DIV for integer division: 
query I rowsort label-8075
SELECT + 73 DIV - 10 + ( + 60 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8075
SELECT + 73 / - 10 + ( + 60 ) AS col2
----
53

query II rowsort
SELECT DISTINCT 95 AS col0, + 98
----
95
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL NULLIF ( - 97, - - 2 * + COUNT( * ) / 73 / - 37 + - - 60 + + COUNT( * ) )
----
-97

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL NULLIF ( - 97, - - 2 * + COUNT ( * ) / 73 / - 37 + - - 60 + + COUNT ( * ) )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT COUNT( - 52 ) + - + 13
----
-12

skipif mysql # not compatible
query I rowsort label-8078
SELECT COUNT ( - 52 ) + - + 13
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT DISTINCT - - CASE + 87 WHEN COUNT( * ) * - + 76 THEN NULL ELSE + - 6 + - - CASE 25 WHEN COALESCE ( + 19, - + 8 ) THEN - ( + COUNT( * ) ) WHEN - 66 / - - COUNT( * ) + - 18 THEN NULL ELSE NULL END + - - 52 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT - - CASE + 87 WHEN COUNT ( * ) * - + 76 THEN NULL ELSE + - 6 + - - CASE 25 WHEN COALESCE ( + 19, - + 8 ) THEN - ( + COUNT ( * ) ) WHEN - 66 / - - COUNT ( * ) + - 18 THEN NULL ELSE NULL END + - - 52 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8080
SELECT ALL CAST( 8 AS SIGNED ) DIV 17 + + 3 + 25 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL CAST ( 8 AS INTEGER ) / 17 + + 3 + 25 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT + CASE - - 66 WHEN AVG ( + 40 ) THEN + 96 END / COUNT( * ) + + + 90 - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT + CASE - - 66 WHEN AVG ( + 40 ) THEN + 96 END / COUNT ( * ) + + + 90 - + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT - COUNT( * ) * + + 30 * + 83 * + 42
----
-104580

skipif mysql # not compatible
query I rowsort label-8082
SELECT - COUNT ( * ) * + + 30 * + 83 * + 42
----
-104580

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT ALL - - 97 * - - 76 + + COUNT( DISTINCT + - 76 ) AS col2
----
7373

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL - - 97 * - - 76 + + COUNT ( DISTINCT + - 76 ) AS col2
----
7373

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT - ( 80 ) - - COUNT( * ) * CASE + - 17 WHEN AVG ( + + 66 ) THEN - AVG ( ALL - - 83 ) WHEN 88 THEN COUNT( * ) - + NULLIF ( + 81, - 80 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8084
SELECT - ( 80 ) - - COUNT ( * ) * CASE + - 17 WHEN AVG ( + + 66 ) THEN - AVG ( ALL - - 83 ) WHEN 88 THEN COUNT ( * ) - + NULLIF ( + 81, - 80 ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + + 14 AS col2, - 15
----
14
-15

query I rowsort
SELECT ALL + 21 * - + 69 * 29 AS col2
----
-42021

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT + 35 * + 63 + - CASE ( 28 ) WHEN - 18 THEN NULL WHEN + 90 THEN + - 34 * - + COUNT( + 62 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT + 35 * + 63 + - CASE ( 28 ) WHEN - 18 THEN NULL WHEN + 90 THEN + - 34 * - + COUNT ( + 62 ) ELSE NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + ( + 56 ) * + + 51
----
2856

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT - MIN( DISTINCT - - 76 ) * 17 AS col0
----
-1292

skipif mysql # not compatible
query I rowsort label-8090
SELECT - MIN ( DISTINCT - - 76 ) * 17 AS col0
----
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT - 56 - MIN( + - 65 ) * 23
----
1439

skipif mysql # not compatible
query I rowsort label-8091
SELECT - 56 - MIN ( + - 65 ) * 23
----
1439

query I rowsort
SELECT DISTINCT + CASE 65 WHEN 10 THEN - 88 * + 76 + + 60 + - - 39 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ALL + 53 * - COUNT( * ) + 35 + - 53 * 48 + - + ( - 83 )
----
-2479

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL + 53 * - COUNT ( * ) + 35 + - 53 * 48 + - + ( - 83 )
----
-2479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8094
SELECT - 92 * - + 56 + - - CAST( NULL AS SIGNED ) + + 42 / + 60, 80 + + CAST( COUNT( + + 14 ) AS SIGNED ) + - 25 * + 19 AS col1
----
NULL
-394

skipif mysql # not compatible
query II rowsort label-8094
SELECT - 92 * - + 56 + - - CAST ( NULL AS INTEGER ) + + 42 / + 60, 80 + + CAST ( COUNT ( + + 14 ) AS INTEGER ) + - 25 * + 19 AS col1
----
NULL
-394

query I rowsort
SELECT - ( + 50 ) * ( + - 1 ) - 48 * - 7 AS col1
----
386

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT CASE 81 WHEN + 62 THEN - + COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN + + 26 THEN + 84 ELSE NULL END * + 11 * - COUNT( * ) + 7 / - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT CASE 81 WHEN + 62 THEN - + COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN + + 26 THEN + 84 ELSE NULL END * + 11 * - COUNT ( * ) + 7 / - 87 AS col2
----
NULL

query I rowsort
SELECT ALL + 52 * NULLIF ( - + 1, - + 50 )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-8098
SELECT ALL + 79 DIV - - NULLIF ( - 12, + 57 ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL + 79 / - - NULLIF ( - 12, + 57 ) col2
----
-6

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

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

query I rowsort
SELECT DISTINCT 43 * 8 * + 67
----
23048

query II rowsort
SELECT DISTINCT - 61 + - + 16 AS col2, + 21 AS col2
----
-77
21

query I rowsort
SELECT ALL + 7 + - - 10 + + 82 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT ALL - 52 * - - COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL - 52 * - - COUNT ( * ) AS col0
----
-52

query I rowsort
SELECT DISTINCT 37 + + - ( 16 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT ALL 96 + + - COUNT( * ) + + + ( - + 57 )
----
38

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL 96 + + - COUNT ( * ) + + + ( - + 57 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT DISTINCT NULLIF ( - 36, 50 / + CASE + + 87 WHEN - MAX( 40 ) + - - 34 THEN 53 / 67 * - + 88 * 50 + - + 11 * - 49 + - COALESCE ( 97, + 71 ) ELSE NULL END ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT NULLIF ( - 36, 50 / + CASE + + 87 WHEN - MAX ( 40 ) + - - 34 THEN 53 / 67 * - + 88 * 50 + - + 11 * - 49 + - COALESCE ( 97, + 71 ) ELSE NULL END ) AS col1
----
-36

query I rowsort
SELECT ALL + 80 * 76 * - 57 AS col1
----
-346560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8108
SELECT + ( + + NULLIF ( - 44, + 0 + + CAST( NULL AS SIGNED ) ) ) * - 65
----
2860

skipif mysql # not compatible
query I rowsort label-8108
SELECT + ( + + NULLIF ( - 44, + 0 + + CAST ( NULL AS INTEGER ) ) ) * - 65
----
2860

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

skipif mysql # not compatible
query I rowsort label-8109
SELECT + 90 / - 98
----
0

query I rowsort
SELECT - 34 + + 16 + + 87
----
69

query I rowsort
SELECT + + 71 + + 30 - - 34 AS col2
----
135

query I rowsort
SELECT ALL + + 20 - + 13 * - 20 AS col1
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT + - ( - 93 ) + - 26 + 87 + + 86 * - - 75 * COUNT( * )
----
6604

skipif mysql # not compatible
query I rowsort label-8113
SELECT + - ( - 93 ) + - 26 + 87 + + 86 * - - 75 * COUNT ( * )
----
6604

query I rowsort
SELECT + + 22 + + + NULLIF ( 77, + 66 ) + - 63 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL CASE + 29 WHEN + 13 / - + MAX( DISTINCT - 17 ) * - COALESCE ( + 79, + 8 * + 79 + + 16, 57 * - 38 ) THEN NULL WHEN + 42 * 6 + 15 THEN + + COALESCE ( - - COUNT( * ), - 60, 38 * 87 + COUNT( - 85 + 4 ) / + 57 ) END * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL CASE + 29 WHEN + 13 / - + MAX ( DISTINCT - 17 ) * - COALESCE ( + 79, + 8 * + 79 + + 16, 57 * - 38 ) THEN NULL WHEN + 42 * 6 + 15 THEN + + COALESCE ( - - COUNT ( * ), - 60, 38 * 87 + COUNT ( - 85 + 4 ) / + 57 ) END * COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - 37 + - 63
----
-100

query I rowsort
SELECT + 50 + - + 14 AS col2
----
36

query I rowsort
SELECT + 20 - 38
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT - - MIN( 80 )
----
80

skipif mysql # not compatible
query I rowsort label-8119
SELECT - - MIN ( 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT ALL COALESCE ( - MIN( ALL - 71 ), + - 6 )
----
71

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL COALESCE ( - MIN ( ALL - 71 ), + - 6 )
----
71

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

skipif mysql # not compatible
query II rowsort label-8121
SELECT - - COUNT ( * ) / COUNT ( * ), 61 AS col0
----
1
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8122
SELECT ALL + NULLIF ( 7, + 40 * - 5 ) DIV 36 * - + 78 + + 24 AS col0, - COUNT( * ) * + MIN( + 29 ) AS col2
----
24
-29

skipif mysql # not compatible
query II rowsort label-8122
SELECT ALL + NULLIF ( 7, + 40 * - 5 ) / 36 * - + 78 + + 24 AS col0, - COUNT ( * ) * + MIN ( + 29 ) AS col2
----
24
-29

query I rowsort
SELECT + + ( + + 45 ) + - 55 * + 28
----
-1495

onlyif mysql # DIV for integer division: 
query I rowsort label-8124
SELECT ALL - 85 DIV - 12 + + 1
----
8

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL - 85 / - 12 + + 1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8125
SELECT ALL - 49 DIV 64 + + + COUNT( * ) + + COALESCE ( - 27, - - 86, + 79, + MIN( 84 ) * + - CAST( + 24 AS SIGNED ) * - - 19 + 35 DIV + 14 + + 78 + + 83 * + 2 ) + - 11 * 15 DIV 58
----
-28

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL - 49 / 64 + + + COUNT ( * ) + + COALESCE ( - 27, - - 86, + 79, + MIN ( 84 ) * + - CAST ( + 24 AS INTEGER ) * - - 19 + 35 / + 14 + + 78 + + 83 * + 2 ) + - 11 * 15 / 58
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8126
SELECT ALL + 75 col0, + 61 DIV + - COUNT( * ) AS col1
----
75
-61

skipif mysql # not compatible
query II rowsort label-8126
SELECT ALL + 75 col0, + 61 / + - COUNT ( * ) AS col1
----
75
-61

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

skipif mysql # not compatible
query I rowsort label-8127
SELECT + 98 / - 17
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8128
SELECT ALL + 9 DIV + COUNT( - 32 ) + + + 7 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL + 9 / + COUNT ( - 32 ) + + + 7 AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8129
SELECT ALL - 25 DIV + + 86 + + COUNT( * ) + - + 38 * + + 47
----
-1785

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL - 25 / + + 86 + + COUNT ( * ) + - + 38 * + + 47
----
-1785

query I rowsort
SELECT + 62 + - + 3 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT - 63 * + SUM( - 32 ) + 1 + + - 28 col0
----
1989

skipif mysql # not compatible
query I rowsort label-8131
SELECT - 63 * + SUM ( - 32 ) + 1 + + - 28 col0
----
1989

query I rowsort
SELECT - ( - + 25 ) * - 42 + - - 17 + + - 9 AS col2
----
-1042

query I rowsort
SELECT 56 * - 30 * + 76 + + + 5
----
-127675

query I rowsort
SELECT DISTINCT + 66 * 1
----
66

query I rowsort
SELECT DISTINCT - 15 * 22 + - 52
----
-382

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

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

query I rowsort
SELECT DISTINCT 32 * + ( - 65 )
----
-2080

query II rowsort
SELECT ALL + 54 AS col1, + 4
----
54
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8139
SELECT + CAST( NULL AS SIGNED ), CASE 77 WHEN CAST( NULL AS SIGNED ) / - - CAST( NULL AS SIGNED ) THEN NULL WHEN + 3 THEN + 41 ELSE NULL END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8139
SELECT + CAST ( NULL AS INTEGER ), CASE 77 WHEN CAST ( NULL AS INTEGER ) / - - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 3 THEN + 41 ELSE NULL END AS col2
----
NULL
NULL

query II rowsort
SELECT - 68 * 70 + - + 54, 63 AS col2
----
-4814
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8141
SELECT - + 61 + + + COUNT( * ) + 77 + + - 6 DIV - 53 col0
----
17

skipif mysql # not compatible
query I rowsort label-8141
SELECT - + 61 + + + COUNT ( * ) + 77 + + - 6 / - 53 col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8142
SELECT DISTINCT - + 30 DIV - - 6 + - COUNT( * ) + - 12 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8142
SELECT DISTINCT - + 30 / - - 6 + - COUNT ( * ) + - 12 AS col2
----
-18

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

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

query I rowsort
SELECT ALL - 95 * - 30
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT ALL + MAX( - 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL + MAX ( - 17 ) AS col1
----
-17

query I rowsort
SELECT DISTINCT - + 55 * 17
----
-935

query I rowsort
SELECT - + ( - COALESCE ( + + 24, + + 24 ) ) * ( 48 )
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT - 95 * - 2 * + COUNT( * ) * - 56 + 78
----
-10562

skipif mysql # not compatible
query I rowsort label-8148
SELECT - 95 * - 2 * + COUNT ( * ) * - 56 + 78
----
-10562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8149
SELECT + ( 5 ) + + + CAST( 34 AS SIGNED ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8149
SELECT + ( 5 ) + + + CAST ( 34 AS INTEGER ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8150
SELECT ALL 8, MIN( ALL + 46 ) AS col2
----
8
46

skipif mysql # not compatible
query II rowsort label-8150
SELECT ALL 8, MIN ( ALL + 46 ) AS col2
----
8
46

query I rowsort
SELECT + 18 + + 49
----
67

query II rowsort
SELECT 98 AS col2, 80 * - + 3 AS col2
----
98
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT + 62 * + COUNT( * ) * + - 78
----
-4836

skipif mysql # not compatible
query I rowsort label-8153
SELECT + 62 * + COUNT ( * ) * + - 78
----
-4836

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT ALL - + 25 + - - 13 - - SUM( + 20 ) * 74 - 15
----
1453

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL - + 25 + - - 13 - - SUM ( + 20 ) * 74 - 15
----
1453

query I rowsort
SELECT DISTINCT + 71 + - 3 * + + 37 * 2 + 95 * 29
----
2604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8156
SELECT DISTINCT + COALESCE ( + MIN( DISTINCT + 15 ), + 34 ) + ( - 39 ) DIV + + 2 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT + COALESCE ( + MIN ( DISTINCT + 15 ), + 34 ) + ( - 39 ) / + + 2 AS col1
----
-4

query I rowsort
SELECT ALL 69 * - 32 AS col0
----
-2208

query I rowsort
SELECT ALL 80 * + 67 AS col1
----
5360

query I rowsort
SELECT ALL ( + 43 ) + - 14 AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8160
SELECT - COUNT( * ) DIV + 16 - - 83 + + 67 * + 41 col0
----
2830

skipif mysql # not compatible
query I rowsort label-8160
SELECT - COUNT ( * ) / + 16 - - 83 + + 67 * + 41 col0
----
2830

query I rowsort
SELECT 39 + - 63 AS col2
----
-24

query I rowsort
SELECT 75 * 7 * + - ( + 86 )
----
-45150

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

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT SUM ( DISTINCT + 41 ) * - - COUNT ( * ) AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8164
SELECT DISTINCT CAST( NULL AS SIGNED ) - + + 80 * - + CASE - 92 WHEN 14 + - CAST( - 26 AS SIGNED ) + - ( - 52 ) + - - COUNT( * ) / - 51 * + + 24 THEN - ( 21 ) WHEN - - 95 - + - CAST( 83 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + + 80 * - + CASE - 92 WHEN 14 + - CAST ( - 26 AS INTEGER ) + - ( - 52 ) + - - COUNT ( * ) / - 51 * + + 24 THEN - ( 21 ) WHEN - - 95 - + - CAST ( 83 AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8165
SELECT CAST( - 81 AS SIGNED ) - - ( + - MIN( ALL - 88 ) ), - 98 * + 32 + + 27 + + 59 * + + 83 - NULLIF ( - - 80, CAST( - 13 AS SIGNED ) ) AS col2
----
7
1708

skipif mysql # not compatible
query II rowsort label-8165
SELECT CAST ( - 81 AS INTEGER ) - - ( + - MIN ( ALL - 88 ) ), - 98 * + 32 + + 27 + + 59 * + + 83 - NULLIF ( - - 80, CAST ( - 13 AS INTEGER ) ) AS col2
----
7
1708

query I rowsort
SELECT ALL 19 * + + 85 AS col0
----
1615

query I rowsort
SELECT 15 * 70 * + 91
----
95550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8168
SELECT 89 * + 0 DIV + MIN( ALL - 54 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8168
SELECT 89 * + 0 / + MIN ( ALL - 54 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL - NULLIF ( + - 23, - 78 ) * COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL - NULLIF ( + - 23, - 78 ) * COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT DISTINCT 95 * - COUNT( * ) + ( + 15 )
----
-80

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT 95 * - COUNT ( * ) + ( + 15 )
----
-80

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

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

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

query I rowsort
SELECT ALL - 49 * - 13 * + - 94 AS col0
----
-59878

query I rowsort
SELECT ALL + - 65 + + - 21 AS col1
----
-86

query I rowsort
SELECT ( + 76 ) + 78 - - 38 AS col2
----
192

query I rowsort
SELECT + 75 - + 19
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8177
SELECT 8 DIV - NULLIF ( + 12, CASE - 75 WHEN - 69 THEN - 76 WHEN + + 26 * + 88 + 96 THEN + + 20 + + - CASE 84 WHEN + COUNT( * ) - - 61 + - 47 + - 75 * + + ( + 18 ) + - 86 DIV - 36 THEN - 39 ELSE - 52 * + 11 END DIV + 81 WHEN 56 DIV - 41 THEN NULL END ) - 43 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8177
SELECT 8 / - NULLIF ( + 12, CASE - 75 WHEN - 69 THEN - 76 WHEN + + 26 * + 88 + 96 THEN + + 20 + + - CASE 84 WHEN + COUNT ( * ) - - 61 + - 47 + - 75 * + + ( + 18 ) + - 86 / - 36 THEN - 39 ELSE - 52 * + 11 END / + 81 WHEN 56 / - 41 THEN NULL END ) - 43 AS col2
----
-43

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

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

query I rowsort
SELECT DISTINCT + CASE - CASE WHEN ( NULL ) IS NULL THEN + 29 END WHEN + + 72 THEN NULL ELSE 59 END + 15
----
74

query I rowsort
SELECT 18 + + 66 + - 13 * - - 24 * + ( - 68 ) AS col1
----
21300

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

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

query II rowsort
SELECT DISTINCT - - 48 + 1 AS col2, ( - 6 ) AS col2
----
49
-6

query I rowsort
SELECT 57 + + ( 15 ) + + 51 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT 39 + + COUNT( * ) + - 47
----
-7

skipif mysql # not compatible
query I rowsort label-8184
SELECT 39 + + COUNT ( * ) + - 47
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT MAX( DISTINCT - 22 ) + MIN( ALL - 84 ) AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-8185
SELECT MAX ( DISTINCT - 22 ) + MIN ( ALL - 84 ) AS col2
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8186
SELECT 45 * - ( + - CAST( + 14 AS SIGNED ) ) AS col1
----
630

skipif mysql # not compatible
query I rowsort label-8186
SELECT 45 * - ( + - CAST ( + 14 AS INTEGER ) ) AS col1
----
630

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT DISTINCT + 11 DIV + 27 DIV 7 * 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT + 11 / + 27 / 7 * 53 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8188
SELECT ALL CAST( NULL AS SIGNED ) * + CAST( + 90 AS SIGNED ) - ( - + 37 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL CAST ( NULL AS INTEGER ) * + CAST ( + 90 AS INTEGER ) - ( - + 37 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT ALL 79 * + SUM( 61 ) AS col2
----
4819

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL 79 * + SUM ( 61 ) AS col2
----
4819

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ALL CASE 59 WHEN 28 THEN NULL WHEN + COALESCE ( - 12, + - 88, + 66, - NULLIF ( 86, + 48 * 93 * + - 75 * 81 + 78 + - - MAX( + + 41 ) / - 96 + + 4 ) ) THEN + - 36 END * + 5 * CASE 47 WHEN + 32 THEN NULL WHEN 9 * 16 THEN NULLIF ( - 47, 30 ) END - AVG ( DISTINCT 47 + 95 * + 35 ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL CASE 59 WHEN 28 THEN NULL WHEN + COALESCE ( - 12, + - 88, + 66, - NULLIF ( 86, + 48 * 93 * + - 75 * 81 + 78 + - - MAX ( + + 41 ) / - 96 + + 4 ) ) THEN + - 36 END * + 5 * CASE 47 WHEN + 32 THEN NULL WHEN 9 * 16 THEN NULLIF ( - 47, 30 ) END - AVG ( DISTINCT 47 + 95 * + 35 ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT SUM( + 74 ) + - 60 * - + 56
----
3434

skipif mysql # not compatible
query I rowsort label-8191
SELECT SUM ( + 74 ) + - 60 * - + 56
----
3434

query I rowsort
SELECT 64 * - 96 AS col2
----
-6144

query I rowsort
SELECT ALL 43 * 74
----
3182

query I rowsort
SELECT 9 + + + 90
----
99

query I rowsort
SELECT DISTINCT 78 * + 14 AS col0
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT - 98 * + 42 + COUNT( ALL 75 )
----
-4115

skipif mysql # not compatible
query I rowsort label-8196
SELECT - 98 * + 42 + COUNT ( ALL 75 )
----
-4115

query I rowsort
SELECT DISTINCT + 13 * + 11
----
143

query II rowsort
SELECT DISTINCT - 67 AS col1, 25 + + 3 AS col2
----
-67
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT ALL + 89 DIV 39
----
2

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL + 89 / 39
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT + COALESCE ( - 53, - 38 + + 61 ) * SUM( 66 ) + + 55
----
-3443

skipif mysql # not compatible
query I rowsort label-8200
SELECT + COALESCE ( - 53, - 38 + + 61 ) * SUM ( 66 ) + + 55
----
-3443

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL + 29 + + COUNT( * ) + + 73 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL + 29 + + COUNT ( * ) + + 73 AS col2
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT + ( + 71 ) DIV 14 * - 60 col2
----
-300

skipif mysql # not compatible
query I rowsort label-8202
SELECT + ( + 71 ) / 14 * - 60 col2
----
-300

query I rowsort
SELECT - 21 * - 80 * 28 + + + 31
----
47071

query I rowsort
SELECT + 17 * - 41 AS col1
----
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT - MIN( - + 5 ) + - 49
----
-44

skipif mysql # not compatible
query I rowsort label-8205
SELECT - MIN ( - + 5 ) + - 49
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT ALL ( - 75 ) + SUM( + 20 ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL ( - 75 ) + SUM ( + 20 ) col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8207
SELECT - COALESCE ( - 70, - - 15 * + 71 - + ( - - 23 ), NULLIF ( + + 2, + 99 + + - 41 ) DIV + + 95 - - 63 )
----
70

skipif mysql # not compatible
query I rowsort label-8207
SELECT - COALESCE ( - 70, - - 15 * + 71 - + ( - - 23 ), NULLIF ( + + 2, + 99 + + - 41 ) / + + 95 - - 63 )
----
70

query I rowsort
SELECT ALL 13 * + 24 col1
----
312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8209
SELECT ALL + 20 AS col0, + 68 + - + 24 * + 83 + - - 83 * + CAST( - 38 AS SIGNED )
----
20
-5078

skipif mysql # not compatible
query II rowsort label-8209
SELECT ALL + 20 AS col0, + 68 + - + 24 * + 83 + - - 83 * + CAST ( - 38 AS INTEGER )
----
20
-5078

query II rowsort
SELECT ALL + 36 AS col2, + 3
----
36
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT MAX( DISTINCT - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-8211
SELECT MAX ( DISTINCT - 43 )
----
-43

query I rowsort
SELECT ALL - 2 + - - 52
----
50

query I rowsort
SELECT + + 96 - + 27 + 63 + - 43 * - 33 AS col0
----
1551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8214
SELECT - CAST( + 20 AS SIGNED ) col2
----
-20

skipif mysql # not compatible
query I rowsort label-8214
SELECT - CAST ( + 20 AS INTEGER ) col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8215
SELECT 8 AS col1, - 54 * CAST( NULL AS SIGNED )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-8215
SELECT 8 AS col1, - 54 * CAST ( NULL AS INTEGER )
----
8
NULL

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

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

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

query II rowsort
SELECT ALL 71 AS col1, 1
----
71
1

query I rowsort
SELECT ALL NULLIF ( + + 46, + 35 )
----
46

query II rowsort
SELECT - 24 AS col1, 36 col0
----
-24
36

query I rowsort
SELECT DISTINCT + 16 * + 36 * - - 68 AS col1
----
39168

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

skipif mysql # not compatible
query II rowsort label-8222
SELECT ALL COUNT ( * ), 5 AS col1
----
1
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8223
SELECT + 56 * NULLIF ( - + 92, - COALESCE ( - 22, 11, CAST( NULL AS SIGNED ) * 30 + - 48, COUNT( * ) ) ) AS col1
----
-5152

skipif mysql # not compatible
query I rowsort label-8223
SELECT + 56 * NULLIF ( - + 92, - COALESCE ( - 22, 11, CAST ( NULL AS INTEGER ) * 30 + - 48, COUNT ( * ) ) ) AS col1
----
-5152

query II rowsort
SELECT 32, - 65 AS col2
----
32
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8225
SELECT + 1 DIV - 65 * COUNT( * ) + + 35 + - + 14
----
21

skipif mysql # not compatible
query I rowsort label-8225
SELECT + 1 / - 65 * COUNT ( * ) + + 35 + - + 14
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8226
SELECT 53 DIV + 26 + - 86 DIV - ( + 39 )
----
4

skipif mysql # not compatible
query I rowsort label-8226
SELECT 53 / + 26 + - 86 / - ( + 39 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT DISTINCT + CASE + 84 WHEN + ( - 13 ) THEN + CASE 22 WHEN + - 31 THEN NULL WHEN - NULLIF ( + COUNT( * ), + - 49 + - 66 ) THEN COUNT( * ) ELSE NULL END + + 29 WHEN - 35 THEN 57 * + 95 + 40 ELSE 70 END
----
70

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT + CASE + 84 WHEN + ( - 13 ) THEN + CASE 22 WHEN + - 31 THEN NULL WHEN - NULLIF ( + COUNT ( * ), + - 49 + - 66 ) THEN COUNT ( * ) ELSE NULL END + + 29 WHEN - 35 THEN 57 * + 95 + 40 ELSE 70 END
----
70

query II rowsort
SELECT + 56 AS col1, + 96 * - + 29 - + 82 AS col2
----
56
-2866

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8229
SELECT ALL 6 * + COUNT( * ) + + MAX( ALL - COALESCE ( - - 85, - 19 DIV - + 67 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL 6 * + COUNT ( * ) + + MAX ( ALL - COALESCE ( - - 85, - 19 / - + 67 ) )
----
-79

query I rowsort
SELECT - 60 - - 21
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT + ( NULLIF ( + 4, - MIN( DISTINCT + 13 ) + + 8 ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8231
SELECT + ( NULLIF ( + 4, - MIN ( DISTINCT + 13 ) + + 8 ) ) AS col0
----
4

query II rowsort
SELECT 6 AS col1, - 94
----
6
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8233
SELECT 69 DIV - 87 + + + 38
----
38

skipif mysql # not compatible
query I rowsort label-8233
SELECT 69 / - 87 + + + 38
----
38

query II rowsort
SELECT ALL + 89, + 94 AS col2
----
89
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT + MAX( DISTINCT + + 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8235
SELECT + MAX ( DISTINCT + + 52 ) AS col2
----
52

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

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

query I rowsort
SELECT DISTINCT + 83 * + - 39 + - 27
----
-3264

onlyif mysql # DIV for integer division: 
query I rowsort label-8238
SELECT - - 61 - 9 DIV - 45
----
61

skipif mysql # not compatible
query I rowsort label-8238
SELECT - - 61 - 9 / - 45
----
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL + 22 * 20 * + ( + - MAX( DISTINCT - 95 ) ) AS col1
----
41800

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL + 22 * 20 * + ( + - MAX ( DISTINCT - 95 ) ) AS col1
----
41800

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL + 18 * + + 57 * - 41 * + MIN( ALL + CASE 82 WHEN 85 * - 85 THEN 46 ELSE NULL END ) + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL + 18 * + + 57 * - 41 * + MIN ( ALL + CASE 82 WHEN 85 * - 85 THEN 46 ELSE NULL END ) + - 75
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8242
SELECT DISTINCT + 84 DIV + - 24 + - 46 + 57 + - + ( + ( + 24 ) ) * + 1 + - 79 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT + 84 / + - 24 + - 46 + 57 + - + ( + ( + 24 ) ) * + 1 + - 79 AS col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8243
SELECT - 90 + + 87 + - - NULLIF ( COUNT( * ), - 64 * + - 71 - - - CAST( + - 16 AS DECIMAL ) ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-8243
SELECT - 90 + + 87 + - - NULLIF ( COUNT ( * ), - 64 * + - 71 - - - CAST ( + - 16 AS REAL ) ) col1
----
-2

query II rowsort
SELECT - - 79 AS col2, 55
----
79
55

query I rowsort
SELECT + 73 - + - 25 AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8246
SELECT ALL + COUNT( * ) DIV - + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL + COUNT ( * ) / - + 95 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8247
SELECT - 44 AS col2, + SUM( DISTINCT 44 ) AS col0
----
-44
44

skipif mysql # not compatible
query II rowsort label-8247
SELECT - 44 AS col2, + SUM ( DISTINCT 44 ) AS col0
----
-44
44

query I rowsort
SELECT + NULLIF ( + 96, 74 ) + 41
----
137

query I rowsort
SELECT ALL 22 * - 49
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT + 68 + + + MIN( ALL 18 )
----
86

skipif mysql # not compatible
query I rowsort label-8250
SELECT + 68 + + + MIN ( ALL 18 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT + ( + + 60 ) + - COALESCE ( 2, - - MAX( ALL - - 58 ) ) col2
----
58

skipif mysql # not compatible
query I rowsort label-8251
SELECT + ( + + 60 ) + - COALESCE ( 2, - - MAX ( ALL - - 58 ) ) col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8252
SELECT ALL 50 * + ( - CASE + + 39 WHEN - COALESCE ( 13, - 98 * 54 + - CAST( 4 AS SIGNED ) * AVG ( DISTINCT 65 ), + 44 ) THEN - 93 WHEN + + 11 THEN MAX( DISTINCT - 18 ) + + 95 + - 61 * - 12 * - MIN( + 21 ) / 57 ELSE NULL END ) * - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL 50 * + ( - CASE + + 39 WHEN - COALESCE ( 13, - 98 * 54 + - CAST ( 4 AS INTEGER ) * AVG ( DISTINCT 65 ), + 44 ) THEN - 93 WHEN + + 11 THEN MAX ( DISTINCT - 18 ) + + 95 + - 61 * - 12 * - MIN ( + 21 ) / 57 ELSE NULL END ) * - 1 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT - CAST( + 15 AS SIGNED ) * + 39 * - 42 + + 4 AS col1
----
24574

skipif mysql # not compatible
query I rowsort label-8253
SELECT - CAST ( + 15 AS INTEGER ) * + 39 * - 42 + + 4 AS col1
----
24574

onlyif mysql # aggregate syntax: 
query II rowsort label-8254
SELECT ALL MAX( ALL + 28 ), + 92 AS col2
----
28
92

skipif mysql # not compatible
query II rowsort label-8254
SELECT ALL MAX ( ALL + 28 ), + 92 AS col2
----
28
92

query I rowsort
SELECT - 14 + + 95 AS col1
----
81

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

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

query I rowsort
SELECT DISTINCT + 85 + 5 - + 73 * 74 col1
----
-5312

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8258
SELECT ALL - ( 24 ) * + COALESCE ( + - CASE - + 8 WHEN + 77 THEN NULL ELSE + 42 END, - + ( - + COUNT( * ) ) * - 51 * + 18 ) * + - 84 + + + 45 * + ( + 26 ), + ( - MAX( - 55 ) ) + COUNT( * ) DIV 25 AS col1, - ( + COUNT( * ) ) col0
----
-83502
55
-1

skipif mysql # not compatible
query III rowsort label-8258
SELECT ALL - ( 24 ) * + COALESCE ( + - CASE - + 8 WHEN + 77 THEN NULL ELSE + 42 END, - + ( - + COUNT ( * ) ) * - 51 * + 18 ) * + - 84 + + + 45 * + ( + 26 ), + ( - MAX ( - 55 ) ) + COUNT ( * ) / 25 AS col1, - ( + COUNT ( * ) ) col0
----
-83502
55
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8259
SELECT DISTINCT - COUNT( - 62 ), NULLIF ( 60, - 63 * - 66 + + 52 + + 94 * - + 46 ) AS col1
----
-1
60

skipif mysql # not compatible
query II rowsort label-8259
SELECT DISTINCT - COUNT ( - 62 ), NULLIF ( 60, - 63 * - 66 + + 52 + + 94 * - + 46 ) AS col1
----
-1
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8260
SELECT MIN( ALL - 68 ) + + CAST( NULL AS SIGNED ) AS col0, - 6 * + + 37
----
NULL
-222

skipif mysql # not compatible
query II rowsort label-8260
SELECT MIN ( ALL - 68 ) + + CAST ( NULL AS INTEGER ) AS col0, - 6 * + + 37
----
NULL
-222

query I rowsort
SELECT ALL - + COALESCE ( - 11, 22 )
----
11

query I rowsort
SELECT + 72 + + - 44 + - 43 * + 70 AS col2
----
-2982

query I rowsort
SELECT 45 * + 2
----
90

query I rowsort
SELECT DISTINCT + 70 + 92 AS col1
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8265
SELECT + ( + + 40 ) DIV - - 52 - - MAX( ALL - + 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8265
SELECT + ( + + 40 ) / - - 52 - - MAX ( ALL - + 20 ) AS col0
----
-20

query I rowsort
SELECT ALL - - 46 + 86 + 78 * 54
----
4344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8267
SELECT CASE - 85 WHEN - - CAST( NULL AS SIGNED ) THEN - + 26 * + COALESCE ( + 5, CAST( ( + + 45 ) AS SIGNED ) * + + 69 + + 17 * 80, + + 73 + 6 ) WHEN - COUNT( * ) THEN NULL WHEN + ( 74 ) * CASE 70 WHEN 86 + 55 THEN NULL WHEN + + 71 THEN + 25 + 18 * 16 END + - SUM( DISTINCT 84 ) THEN NULL ELSE 20 * + 65 END AS col1
----
1300

skipif mysql # not compatible
query I rowsort label-8267
SELECT CASE - 85 WHEN - - CAST ( NULL AS INTEGER ) THEN - + 26 * + COALESCE ( + 5, CAST ( ( + + 45 ) AS INTEGER ) * + + 69 + + 17 * 80, + + 73 + 6 ) WHEN - COUNT ( * ) THEN NULL WHEN + ( 74 ) * CASE 70 WHEN 86 + 55 THEN NULL WHEN + + 71 THEN + 25 + 18 * 16 END + - SUM ( DISTINCT 84 ) THEN NULL ELSE 20 * + 65 END AS col1
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT DISTINCT + 88 + - + COUNT( * ) + 85 - + + COUNT( * ) * + 92
----
80

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT + 88 + - + COUNT ( * ) + 85 - + + COUNT ( * ) * + 92
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8269
SELECT - 35 + CAST( NULL AS DECIMAL ) - - 36 * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8269
SELECT - 35 + CAST ( NULL AS REAL ) - - 36 * 60
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8270
SELECT COUNT( * ) * + + 42, NULLIF ( COALESCE ( - 63, - COUNT( * ) ), - + 37 / 30 + ( + + 56 ) + - 35 + 19 ) * 46 * - 89 AS col2
----
42
257922

skipif mysql # not compatible
query II rowsort label-8270
SELECT COUNT ( * ) * + + 42, NULLIF ( COALESCE ( - 63, - COUNT ( * ) ), - + 37 / 30 + ( + + 56 ) + - 35 + 19 ) * 46 * - 89 AS col2
----
42
257922

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT CASE NULLIF ( - 7, + 38 * - 72 * + - 90 + - 47 ) WHEN COUNT( + 33 ) THEN 46 END * 22 + + ( COUNT( * ) ) / - + COUNT( * ) / COUNT( * ) + - + 35 + - AVG ( - NULLIF ( + ( 49 ), + 96 ) ) * + 10 - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT CASE NULLIF ( - 7, + 38 * - 72 * + - 90 + - 47 ) WHEN COUNT ( + 33 ) THEN 46 END * 22 + + ( COUNT ( * ) ) / - + COUNT ( * ) / COUNT ( * ) + - + 35 + - AVG ( - NULLIF ( + ( 49 ), + 96 ) ) * + 10 - 44
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8272
SELECT - 62 * - ( 52 ) * - 85 - - 22 / CAST( NULL AS SIGNED ) - CASE 86 WHEN COUNT( * ) THEN 35 * MIN( DISTINCT 51 ) END + + - 75 - + 18 * + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT - 62 * - ( 52 ) * - 85 - - 22 / CAST ( NULL AS INTEGER ) - CASE 86 WHEN COUNT ( * ) THEN 35 * MIN ( DISTINCT 51 ) END + + - 75 - + 18 * + 56 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - COALESCE ( + 31, + + ( 58 ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT + ( + - 53 ) * + 91 * + COUNT( * ) + + 21 AS col1
----
-4802

skipif mysql # not compatible
query I rowsort label-8274
SELECT + ( + - 53 ) * + 91 * + COUNT ( * ) + + 21 AS col1
----
-4802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8275
SELECT 62 col2, + 70 * + COALESCE ( MIN( - 20 ), + 52 + 56 + + - ( - CAST( - 75 AS SIGNED ) ), - - 89 ) + - 37
----
62
-1437

skipif mysql # not compatible
query II rowsort label-8275
SELECT 62 col2, + 70 * + COALESCE ( MIN ( - 20 ), + 52 + 56 + + - ( - CAST ( - 75 AS INTEGER ) ), - - 89 ) + - 37
----
62
-1437

query I rowsort
SELECT 84 * + 85 col2
----
7140

onlyif mysql # DIV for integer division: 
query I rowsort label-8277
SELECT 90 DIV - + 74
----
-1

skipif mysql # not compatible
query I rowsort label-8277
SELECT 90 / - + 74
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8279
SELECT 43 AS col2, CAST( NULL AS SIGNED ) * + ( 95 ) col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-8279
SELECT 43 AS col2, CAST ( NULL AS INTEGER ) * + ( 95 ) col1
----
43
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8280
SELECT ALL 3 DIV - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL 3 / - 46 AS col0
----
0

query I rowsort
SELECT 74 * 55 AS col2
----
4070

query I rowsort
SELECT ALL 20 * + - 47 col0
----
-940

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

skipif mysql # not compatible
query I rowsort label-8283
SELECT 80 / 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8284
SELECT COUNT( * ) DIV - 7 * COALESCE ( + 1, + CAST( NULL AS SIGNED ) + - 37 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8284
SELECT COUNT ( * ) / - 7 * COALESCE ( + 1, + CAST ( NULL AS INTEGER ) + - 37 ) AS col1
----
0

query I rowsort
SELECT DISTINCT 55 * + 2 * - 56 * - 61 AS col0
----
375760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8286
SELECT DISTINCT COUNT( * ) + + ( CASE - + 88 WHEN - - 58 / - + 8 THEN + CAST( - COALESCE ( - - COUNT( * ), 9 / + 31, + 92 ) AS SIGNED ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT COUNT ( * ) + + ( CASE - + 88 WHEN - - 58 / - + 8 THEN + CAST ( - COALESCE ( - - COUNT ( * ), 9 / + 31, + 92 ) AS INTEGER ) END )
----
NULL

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

query II rowsort
SELECT 94 AS col1, 29
----
94
29

query II rowsort
SELECT ALL - 60 AS col0, CASE + 25 WHEN + ( + 39 ) THEN 15 WHEN - 78 * 34 - - 66 THEN + + 63 END AS col2
----
-60
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8290
SELECT ALL 13 + 81 - - COALESCE ( 24, + SUM( 70 ) + - - MAX( CAST( NULL AS SIGNED ) ) * - MAX( - 22 ) + - - 72 + - - 74 ) AS col1
----
118

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL 13 + 81 - - COALESCE ( 24, + SUM ( 70 ) + - - MAX ( CAST ( NULL AS INTEGER ) ) * - MAX ( - 22 ) + - - 72 + - - 74 ) AS col1
----
118

query I rowsort
SELECT 99 + - 63 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8292
SELECT DISTINCT CASE - + 98 WHEN 20 * + ( - SUM( - 24 ) ) - + 6 - - + CAST( + ( + 0 ) AS SIGNED ) * COUNT( * ) * - 73 + + + 67 THEN NULL WHEN 11 * - CAST( ( ( + - 58 ) ) AS SIGNED ) THEN NULL ELSE + ( + NULLIF ( - - 27, - COALESCE ( - - 65, - ( 56 ) + + 58 ) ) ) * MAX( DISTINCT 74 - 23 ) END + NULLIF ( + COALESCE ( - 43, COUNT( * ) ), + 17 / - 52 )
----
1334

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT CASE - + 98 WHEN 20 * + ( - SUM ( - 24 ) ) - + 6 - - + CAST ( + ( + 0 ) AS INTEGER ) * COUNT ( * ) * - 73 + + + 67 THEN NULL WHEN 11 * - CAST ( ( ( + - 58 ) ) AS INTEGER ) THEN NULL ELSE + ( + NULLIF ( - - 27, - COALESCE ( - - 65, - ( 56 ) + + 58 ) ) ) * MAX ( DISTINCT 74 - 23 ) END + NULLIF ( + COALESCE ( - 43, COUNT ( * ) ), + 17 / - 52 )
----
1334

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT - + 25 * + 9 + 72 - - 66 + + + 59 + - MAX( ALL - 43 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8293
SELECT - + 25 * + 9 + 72 - - 66 + + + 59 + - MAX ( ALL - 43 ) AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8294
SELECT + - 96 DIV - + 46 + + + 58 - + 45 * 7 * + 53
----
-16635

skipif mysql # not compatible
query I rowsort label-8294
SELECT + - 96 / - + 46 + + + 58 - + 45 * 7 * + 53
----
-16635

query I rowsort
SELECT DISTINCT - 39 - + 60 AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8296
SELECT DISTINCT - - 68 * + - CAST( - 11 AS SIGNED ) * + - 37 DIV - COUNT( * ) AS col2
----
27676

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT - - 68 * + - CAST ( - 11 AS INTEGER ) * + - 37 / - COUNT ( * ) AS col2
----
27676

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8297
SELECT - COUNT( * ) + + SUM( + 23 ) - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT - COUNT ( * ) + + SUM ( + 23 ) - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8298
SELECT + 58 - ( + 31 ), - 50 + COUNT( * ) col1
----
27
-49

skipif mysql # not compatible
query II rowsort label-8298
SELECT + 58 - ( + 31 ), - 50 + COUNT ( * ) col1
----
27
-49

query I rowsort
SELECT DISTINCT - ( + 19 ) * + 69 * - 23
----
30153

query I rowsort
SELECT ALL + + 39 * - 10 AS col1
----
-390

onlyif mysql # aggregate syntax: 
query II rowsort label-8301
SELECT + ( - MIN( + 69 ) ) col0, 25 * - 10 * ( + 18 ) * + ( + - 13 ) - 69
----
-69
58431

skipif mysql # not compatible
query II rowsort label-8301
SELECT + ( - MIN ( + 69 ) ) col0, 25 * - 10 * ( + 18 ) * + ( + - 13 ) - 69
----
-69
58431

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT ALL - CASE + COUNT( DISTINCT 33 ) WHEN 80 THEN + - 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL - CASE + COUNT ( DISTINCT 33 ) WHEN 80 THEN + - 26 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT - 8 - - - 2 + + ( - - ( - COUNT( * ) ) ) - + 66 * + 75 + 77 - - 31 * ( 23 ) * + COUNT( * ) * + + 13
----
4385

skipif mysql # not compatible
query I rowsort label-8303
SELECT - 8 - - - 2 + + ( - - ( - COUNT ( * ) ) ) - + 66 * + 75 + 77 - - 31 * ( 23 ) * + COUNT ( * ) * + + 13
----
4385

query I rowsort
SELECT 87 - - 33 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL - SUM( DISTINCT + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL - SUM ( DISTINCT + 1 )
----
-1

query II rowsort
SELECT + + 34, 99 * - 99 AS col0
----
34
-9801

query I rowsort
SELECT ALL - 82 * 76 AS col0
----
-6232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8308
SELECT 55 + + - CAST( + - COUNT( * ) AS SIGNED ) + - 1
----
55

skipif mysql # not compatible
query I rowsort label-8308
SELECT 55 + + - CAST ( + - COUNT ( * ) AS INTEGER ) + - 1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT DISTINCT MAX( DISTINCT - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT MAX ( DISTINCT - 10 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT 64 + - CAST( 94 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-8310
SELECT 64 + - CAST ( 94 AS INTEGER )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT 0 - - - 63 + - ( + + NULLIF ( - COUNT( * ), + - CASE + MIN( + + 72 ) WHEN + 63 THEN + 16 * 18 * + 74 / + + AVG ( + ( - 70 ) ) * ( - 56 ) WHEN 72 + - 65 THEN 64 WHEN 86 THEN 82 END ) ) + - + 62 * - + 57
----
3472

skipif mysql # not compatible
query I rowsort label-8311
SELECT 0 - - - 63 + - ( + + NULLIF ( - COUNT ( * ), + - CASE + MIN ( + + 72 ) WHEN + 63 THEN + 16 * 18 * + 74 / + + AVG ( + ( - 70 ) ) * ( - 56 ) WHEN 72 + - 65 THEN 64 WHEN 86 THEN 82 END ) ) + - + 62 * - + 57
----
3472

query I rowsort
SELECT + 89 * + + 29 + - 99 + + 7 + + 87 * 20
----
4229

onlyif mysql # aggregate syntax: 
query II rowsort label-8313
SELECT ALL MIN( 47 ) AS col2, 53 AS col1
----
47
53

skipif mysql # not compatible
query II rowsort label-8313
SELECT ALL MIN ( 47 ) AS col2, 53 AS col1
----
47
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8314
SELECT 83 + + COUNT( * ) * - - CAST( - - 78 AS SIGNED ) * - 7 - 51
----
-514

skipif mysql # not compatible
query I rowsort label-8314
SELECT 83 + + COUNT ( * ) * - - CAST ( - - 78 AS INTEGER ) * - 7 - 51
----
-514

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT ALL - 3 + + NULLIF ( 13, + COUNT( - - 90 ) ) - - 41 - + COUNT( - - ( + + 27 ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL - 3 + + NULLIF ( 13, + COUNT ( - - 90 ) ) - - 41 - + COUNT ( - - ( + + 27 ) ) AS col1
----
50

query I rowsort
SELECT DISTINCT 14 + + 80 * - 45
----
-3586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8317
SELECT SUM( ALL + 19 ) + + + ( + - COALESCE ( + - 61, + - COALESCE ( + - NULLIF ( + 0, - 44 ), - 56, ( + COUNT( * ) ), + 27 + + 58 + NULLIF ( 13, + COUNT( * ) + - + 98 ) * + - 74 * - 65 * - ( + ( + CAST( 72 AS SIGNED ) ) ) - 81 * - 33 ) ) ) * - ( COUNT( * ) ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8317
SELECT SUM ( ALL + 19 ) + + + ( + - COALESCE ( + - 61, + - COALESCE ( + - NULLIF ( + 0, - 44 ), - 56, ( + COUNT ( * ) ), + 27 + + 58 + NULLIF ( 13, + COUNT ( * ) + - + 98 ) * + - 74 * - 65 * - ( + ( + CAST ( 72 AS INTEGER ) ) ) - 81 * - 33 ) ) ) * - ( COUNT ( * ) ) AS col1
----
-42

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

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

query I rowsort
SELECT 9 + - 23 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8320
SELECT ALL MAX( DISTINCT 72 ) DIV + 49 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL MAX ( DISTINCT 72 ) / + 49 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT ALL COALESCE ( - 8, 21 * + - COUNT( * ) - 33, COUNT( * ) * 33 * - 39 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL COALESCE ( - 8, 21 * + - COUNT ( * ) - 33, COUNT ( * ) * 33 * - 39 ) AS col1
----
-8

query I rowsort
SELECT + 25 * + - 84 AS col1
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT - 95 * - MAX( - - 83 ) AS col0
----
7885

skipif mysql # not compatible
query I rowsort label-8323
SELECT - 95 * - MAX ( - - 83 ) AS col0
----
7885

query I rowsort
SELECT + 1 + 69
----
70

query I rowsort
SELECT ALL + - 12 - + 83 + + 90
----
-5

query I rowsort
SELECT + 67 * + - 9 AS col2
----
-603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8327
SELECT ALL - 79 * + CASE + CAST( NULL AS SIGNED ) WHEN + + ( 10 ) THEN 86 WHEN + 81 THEN NULL END * 50 + + + 80 - + - MIN( + 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL - 79 * + CASE + CAST ( NULL AS INTEGER ) WHEN + + ( 10 ) THEN 86 WHEN + 81 THEN NULL END * 50 + + + 80 - + - MIN ( + 42 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8328
SELECT CAST( - ( - CAST( NULL AS DECIMAL ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8328
SELECT CAST ( - ( - CAST ( NULL AS REAL ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT DISTINCT - ( + 71 ) * - COUNT( * ) - - 57 AS col0
----
128

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT - ( + 71 ) * - COUNT ( * ) - - 57 AS col0
----
128

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

query I rowsort
SELECT + + 55 * 75 + - 8
----
4117

query I rowsort
SELECT + - 49 * - 57 - 23
----
2770

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT DISTINCT + 70 * - ( - 43 ) + - 6 - - COALESCE ( + 75, 15, 84 ) + + - 54 + + 30 * - - COUNT( * ) * - COUNT( * ) + - - 91
----
3086

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT + 70 * - ( - 43 ) + - 6 - - COALESCE ( + 75, 15, 84 ) + + - 54 + + 30 * - - COUNT ( * ) * - COUNT ( * ) + - - 91
----
3086

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

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

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

skipif mysql # not compatible
query I rowsort label-8335
SELECT + 83 * - COUNT ( 13 ) + 26 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT - ( + 91 ) * 46 + - COUNT( * ) AS col0
----
-4187

skipif mysql # not compatible
query I rowsort label-8336
SELECT - ( + 91 ) * 46 + - COUNT ( * ) AS col0
----
-4187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8337
SELECT DISTINCT + SUM( ALL 75 ) * - COUNT( * ) + CAST( NULL AS SIGNED ) + + 67 + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT + SUM ( ALL 75 ) * - COUNT ( * ) + CAST ( NULL AS INTEGER ) + + 67 + + 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8338
SELECT ALL + + 99 * - - CASE - COUNT( * ) WHEN - CAST( + + COUNT( * ) AS SIGNED ) THEN - 20 + + 67 END AS col0
----
4653

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL + + 99 * - - CASE - COUNT ( * ) WHEN - CAST ( + + COUNT ( * ) AS INTEGER ) THEN - 20 + + 67 END AS col0
----
4653

query II rowsort
SELECT ALL - 19 * 21 + + 73 + + 3 AS col0, + 22 + 10
----
-323
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT - ( 96 ) DIV 70 * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8340
SELECT - ( 96 ) / 70 * - 0 AS col0
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8343
SELECT ALL 41 * - - 15 + - 83 AS col2, COUNT( * ) * - 85 AS col0
----
532
-85

skipif mysql # not compatible
query II rowsort label-8343
SELECT ALL 41 * - - 15 + - 83 AS col2, COUNT ( * ) * - 85 AS col0
----
532
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT MAX( ALL - 9 ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-8344
SELECT MAX ( ALL - 9 ) col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8345
SELECT + ( + COUNT( * ) ) DIV 30 AS col2, + 57
----
0
57

skipif mysql # not compatible
query II rowsort label-8345
SELECT + ( + COUNT ( * ) ) / 30 AS col2, + 57
----
0
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL ( - 14 ) * MIN( ALL - 26 ) + ( COUNT( * ) ) * - - 26 + 20 * - - 0 * - 42 col2
----
390

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL ( - 14 ) * MIN ( ALL - 26 ) + ( COUNT ( * ) ) * - - 26 + 20 * - - 0 * - 42 col2
----
390

query I rowsort
SELECT DISTINCT 50 + 78
----
128

query I rowsort
SELECT DISTINCT + 17 + + 83 + + 23 AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL MAX( + + 75 ) col0
----
75

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL MAX ( + + 75 ) col0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8350
SELECT DISTINCT - 54 + + 66 - 22 DIV 37 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-8350
SELECT DISTINCT - 54 + + 66 - 22 / 37 AS col1
----
12

query I rowsort
SELECT DISTINCT NULLIF ( - 20, - - 89 * - + 63 ) AS col2
----
-20

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT - MAX( - - 81 ) col0
----
-81

skipif mysql # not compatible
query I rowsort label-8354
SELECT - MAX ( - - 81 ) col0
----
-81

query I rowsort
SELECT ALL + 36 * - 89
----
-3204

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

query I rowsort
SELECT DISTINCT + 27 * - 79
----
-2133

query I rowsort
SELECT DISTINCT + 55 - - 71
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT - - COUNT( * ) - + 84 + - 56 + - NULLIF ( + + 17, - 7 ) * + - 47 AS col2
----
660

skipif mysql # not compatible
query I rowsort label-8359
SELECT - - COUNT ( * ) - + 84 + - 56 + - NULLIF ( + + 17, - 7 ) * + - 47 AS col2
----
660

query I rowsort
SELECT - 31 + - 55 * + - 21
----
1124

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT + 15 * CAST( + 10 AS SIGNED ) AS col0
----
150

skipif mysql # not compatible
query I rowsort label-8363
SELECT + 15 * CAST ( + 10 AS INTEGER ) AS col0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8364
SELECT 87 * + COALESCE ( + - 22, + + 60 ) * - + MAX( DISTINCT + + 11 ) + - 28 * COALESCE ( + 43, - 95 * + 74 * - 93 DIV + + CASE + 1 WHEN - 72 THEN NULL WHEN + 10 + 52 * - 3 THEN 42 * + COUNT( * ) + - 32 + - 60 * + 50 - - - MIN( + 57 ) WHEN + 82 THEN NULL END - NULLIF ( - COALESCE ( - 82, + COUNT( * ) ) + CASE + CAST( 11 AS SIGNED ) WHEN MAX( DISTINCT + 71 ) THEN + 59 WHEN 17 * ( 57 DIV 31 ) + - 84 THEN NULL ELSE 89 + + 33 * 27 END, - 89 ) * 82 - - 53 DIV + 4, - 39 + 2 * - ( 15 ) ) + ( + COUNT( * ) )
----
19851

skipif mysql # not compatible
query I rowsort label-8364
SELECT 87 * + COALESCE ( + - 22, + + 60 ) * - + MAX ( DISTINCT + + 11 ) + - 28 * COALESCE ( + 43, - 95 * + 74 * - 93 / + + CASE + 1 WHEN - 72 THEN NULL WHEN + 10 + 52 * - 3 THEN 42 * + COUNT ( * ) + - 32 + - 60 * + 50 - - - MIN ( + 57 ) WHEN + 82 THEN NULL END - NULLIF ( - COALESCE ( - 82, + COUNT ( * ) ) + CASE + CAST ( 11 AS INTEGER ) WHEN MAX ( DISTINCT + 71 ) THEN + 59 WHEN 17 * ( 57 / 31 ) + - 84 THEN NULL ELSE 89 + + 33 * 27 END, - 89 ) * 82 - - 53 / + 4, - 39 + 2 * - ( 15 ) ) + ( + COUNT ( * ) )
----
19851

query I rowsort
SELECT ALL 98 * NULLIF ( 32, ( + 85 ) ) + + 21
----
3157

query I rowsort
SELECT ALL - 7 * - 6
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8367
SELECT DISTINCT + 96 DIV + COALESCE ( - 76, + 95 ) + 27 * - CASE + 62 WHEN - - 42 THEN + 11 * - 7 WHEN - 61 THEN NULL WHEN + NULLIF ( 97, + MIN( 41 ) ) THEN NULL ELSE - ( - - 9 ) * + COUNT( ALL + - 57 ) + 34 END
----
-676

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT + 96 / + COALESCE ( - 76, + 95 ) + 27 * - CASE + 62 WHEN - - 42 THEN + 11 * - 7 WHEN - 61 THEN NULL WHEN + NULLIF ( 97, + MIN ( 41 ) ) THEN NULL ELSE - ( - - 9 ) * + COUNT ( ALL + - 57 ) + 34 END
----
-676

query I rowsort
SELECT ALL + 32 * + - 83
----
-2656

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT DISTINCT + + MAX( + + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT + + MAX ( + + 24 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8371
SELECT ALL + ( - COUNT( * ) ) DIV + - 28 * - COUNT( * ) + - + 87 * + 34 AS col0, - 74 + + 78 * - MIN( DISTINCT CAST( NULL AS SIGNED ) ) + - 92 + + CAST( + - COALESCE ( + 79, + 28 * - + NULLIF ( 88, + AVG ( ALL - 24 ) * - + 9 DIV 44 ) - - + 68 ) AS SIGNED ) AS col2
----
-2958
NULL

skipif mysql # not compatible
query II rowsort label-8371
SELECT ALL + ( - COUNT ( * ) ) / + - 28 * - COUNT ( * ) + - + 87 * + 34 AS col0, - 74 + + 78 * - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + - 92 + + CAST ( + - COALESCE ( + 79, + 28 * - + NULLIF ( 88, + AVG ( ALL - 24 ) * - + 9 / 44 ) - - + 68 ) AS INTEGER ) AS col2
----
-2958
NULL

query I rowsort
SELECT - 57 - 22 * - 57 * + 53 * + 33 AS col1
----
2193189

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT COUNT( - 20 ) * - COUNT( * ) - - - 1 + - 96 + + 68 * - 56
----
-3906

skipif mysql # not compatible
query I rowsort label-8373
SELECT COUNT ( - 20 ) * - COUNT ( * ) - - - 1 + - 96 + + 68 * - 56
----
-3906

query II rowsort
SELECT ALL + 48 AS col0, + 47 AS col1
----
48
47

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

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

query I rowsort
SELECT + 3 - - 47 * ( + 12 ) col2
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ALL + COUNT( * ) * + + 82 + + 91 AS col0
----
173

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL + COUNT ( * ) * + + 82 + + 91 AS col0
----
173

query I rowsort
SELECT DISTINCT + ( - 42 ) * - 44
----
1848

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

query I rowsort
SELECT 25 * + 72 AS col0
----
1800

query I rowsort
SELECT 34 - 73 col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8382
SELECT - CAST( NULL AS SIGNED ) * 71 * - SUM( ALL 95 ) + - - 47 * 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT - CAST ( NULL AS INTEGER ) * 71 * - SUM ( ALL 95 ) + - - 47 * 35 AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT 37 - - 28
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8385
SELECT ALL SUM( ALL - 93 ) * MIN( ALL CAST( NULL AS SIGNED ) ) + - - CASE - - COALESCE ( + + 58, 92 * + - 31 + + + COALESCE ( - - 22, - COUNT( * ), - - 88 ), + ( - 28 ) + + 57 - 49 * 19 * 39 + + + COUNT( * ) ) WHEN + 46 * COUNT( * ) / - - 13 THEN - 47 WHEN COUNT( * ) THEN NULL ELSE + 45 END + CASE 40 - + 52 WHEN 11 THEN + 18 WHEN 67 THEN NULL ELSE - 39 * - 69 END * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL SUM ( ALL - 93 ) * MIN ( ALL CAST ( NULL AS INTEGER ) ) + - - CASE - - COALESCE ( + + 58, 92 * + - 31 + + + COALESCE ( - - 22, - COUNT ( * ), - - 88 ), + ( - 28 ) + + 57 - 49 * 19 * 39 + + + COUNT ( * ) ) WHEN + 46 * COUNT ( * ) / - - 13 THEN - 47 WHEN COUNT ( * ) THEN NULL ELSE + 45 END + CASE 40 - + 52 WHEN 11 THEN + 18 WHEN 67 THEN NULL ELSE - 39 * - 69 END * 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT ALL - 69 DIV 32 * - - 82 * - 52
----
8528

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL - 69 / 32 * - - 82 * - 52
----
8528

query I rowsort
SELECT 40 * - - 22 AS col1
----
880

query I rowsort
SELECT 6 + + - 76 AS col1
----
-70

query II rowsort
SELECT DISTINCT - 65 col2, - 80 col1
----
-65
-80

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL + - 32 * COUNT( DISTINCT ( + - 43 ) ) * + - 45 AS col1
----
1440

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL + - 32 * COUNT ( DISTINCT ( + - 43 ) ) * + - 45 AS col1
----
1440

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8394
SELECT DISTINCT + CAST( + 31 AS SIGNED ) * + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT + CAST ( + 31 AS INTEGER ) * + COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL - - COUNT( * ) + - 74 + + - 58 * + + ( + 6 ) col2
----
-421

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL - - COUNT ( * ) + - 74 + + - 58 * + + ( + 6 ) col2
----
-421

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8397
SELECT + SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8398
SELECT ALL + 66 * 75 DIV + 59 - + MAX( - - 2 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL + 66 * 75 / + 59 - + MAX ( - - 2 ) AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8399
SELECT + CAST( NULL AS SIGNED ) AS col0, 30 * + 34 * - 39 * - + 27 * - 86 + + 92
----
NULL
-92369068

skipif mysql # not compatible
query II rowsort label-8399
SELECT + CAST ( NULL AS INTEGER ) AS col0, 30 * + 34 * - 39 * - + 27 * - 86 + + 92
----
NULL
-92369068

query II rowsort
SELECT ALL - 96, 1 AS col1
----
-96
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8401
SELECT 86 DIV 15 * + 92 AS col0
----
460

skipif mysql # not compatible
query I rowsort label-8401
SELECT 86 / 15 * + 92 AS col0
----
460

query I rowsort
SELECT + 54 + 7
----
61

query I rowsort
SELECT + 38 + - 64 - + 49 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8404
SELECT + - COUNT( * ), - 61 * + + COUNT( * ) - - 1 AS col0
----
-1
-60

skipif mysql # not compatible
query II rowsort label-8404
SELECT + - COUNT ( * ), - 61 * + + COUNT ( * ) - - 1 AS col0
----
-1
-60

query I rowsort
SELECT DISTINCT 39 * 2 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT + 14 * - 63 + + + CASE + + 62 WHEN - SUM( + 39 ) THEN + 58 * + 58 + 44 * 47 + - 90 * 51 + - 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8406
SELECT + 14 * - 63 + + + CASE + + 62 WHEN - SUM ( + 39 ) THEN + 58 * + 58 + 44 * 47 + - 90 * 51 + - 29 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT - NULLIF ( + 72, + 74 ) AS col0, 28 + - 78 AS col1
----
-72
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8408
SELECT ALL CASE - 22 WHEN - CAST( 60 AS SIGNED ) THEN NULL WHEN - - 49 / + 36 THEN + COUNT( * ) + + - NULLIF ( 65, - + 53 ) + + 49 * - NULLIF ( + 8, - ( - + COUNT( * ) ) + 55 + + COUNT( * ) ) * 7 * 16 END * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL CASE - 22 WHEN - CAST ( 60 AS INTEGER ) THEN NULL WHEN - - 49 / + 36 THEN + COUNT ( * ) + + - NULLIF ( 65, - + 53 ) + + 49 * - NULLIF ( + 8, - ( - + COUNT ( * ) ) + 55 + + COUNT ( * ) ) * 7 * 16 END * - 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT COUNT( * ) + - 94 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8409
SELECT COUNT ( * ) + - 94 AS col0
----
-93

query I rowsort
SELECT ALL + 72 - + + 45 + 2 + 49 AS col0
----
78

query I rowsort
SELECT DISTINCT CASE + 2 WHEN 98 THEN + + ( + + 58 ) ELSE - - 55 END - 44
----
11

query I rowsort
SELECT - 76 * + + 38 * - 92 + + + ( + 95 ) AS col2
----
265791

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT DISTINCT + MIN( - 85 ) * - + 57
----
4845

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT + MIN ( - 85 ) * - + 57
----
4845

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

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

query I rowsort
SELECT DISTINCT 19 * + 84 * + 68
----
108528

onlyif mysql # aggregate syntax: 
query II rowsort label-8416
SELECT ALL 37 * - ( - - 96 ), + COUNT( * ) AS col0
----
-3552
1

skipif mysql # not compatible
query II rowsort label-8416
SELECT ALL 37 * - ( - - 96 ), + COUNT ( * ) AS col0
----
-3552
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8417
SELECT 14 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-8417
SELECT 14 / + 57
----
0

query II rowsort
SELECT 50 * - 46 * + - 53, 43 * ( - 23 ) AS col1
----
121900
-989

onlyif mysql # aggregate syntax: 
query II rowsort label-8419
SELECT ALL MIN( - - 85 ), + 90 AS col1
----
85
90

skipif mysql # not compatible
query II rowsort label-8419
SELECT ALL MIN ( - - 85 ), + 90 AS col1
----
85
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT 8 - - COUNT( * ) + + 18 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-8420
SELECT 8 - - COUNT ( * ) + + 18 AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8421
SELECT NULLIF ( + 7, - - COUNT( * ) ) DIV 53 DIV + + 83 DIV + - 19 * - COUNT( * ), 82 + 75 * + 98 * + 81 AS col2
----
0
595432

skipif mysql # not compatible
query II rowsort label-8421
SELECT NULLIF ( + 7, - - COUNT ( * ) ) / 53 / + + 83 / + - 19 * - COUNT ( * ), 82 + 75 * + 98 * + 81 AS col2
----
0
595432

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT - + CASE 95 WHEN + CASE - 5 WHEN + 19 + - + NULLIF ( + COUNT( * ), - 10 ) THEN + - 8 WHEN + 80 THEN NULL ELSE - 16 END THEN + - 62 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8422
SELECT - + CASE 95 WHEN + CASE - 5 WHEN + 19 + - + NULLIF ( + COUNT ( * ), - 10 ) THEN + - 8 WHEN + 80 THEN NULL ELSE - 16 END THEN + - 62 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8424
SELECT DISTINCT 1 * COUNT( * ) DIV + 41 + - 11
----
-11

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT 1 * COUNT ( * ) / + 41 + - 11
----
-11

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

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

query II rowsort
SELECT DISTINCT + 37 + - + 98 + - 49 + - 78 * - 51 * + NULLIF ( + + 84, - - COALESCE ( 76, 93 ) * 93 * 91 ) col0, + 98 AS col2
----
334042
98

query I rowsort
SELECT 77 - + 92 AS col2
----
-15

query I rowsort
SELECT DISTINCT - 4 + + 65 * - + 61 AS col0
----
-3969

onlyif mysql # aggregate syntax: 
query II rowsort label-8429
SELECT ALL COUNT( * ) + - 34 AS col2, - COUNT( * ) * + - 0 * + 12 * 24
----
-33
0

skipif mysql # not compatible
query II rowsort label-8429
SELECT ALL COUNT ( * ) + - 34 AS col2, - COUNT ( * ) * + - 0 * + 12 * 24
----
-33
0

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

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

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

query II rowsort
SELECT ALL ( 69 ) AS col2, 98 col0
----
69
98

query II rowsort
SELECT + - ( - 90 ) AS col2, + 72 AS col0
----
90
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT ALL - CAST( 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL - CAST ( 47 AS INTEGER )
----
-47

query I rowsort
SELECT DISTINCT - 22 * - COALESCE ( 30, - - 39 )
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT ALL ( 32 ) * - - 9 + COUNT( * ) + - 65 + + 52 * - + 63 AS col1
----
-3052

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL ( 32 ) * - - 9 + COUNT ( * ) + - 65 + + 52 * - + 63 AS col1
----
-3052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT ALL + 63 * - - CAST( NULL AS SIGNED ) + + + 99 + + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL + 63 * - - CAST ( NULL AS INTEGER ) + + + 99 + + 46 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8438
SELECT COUNT( * ) * + 62 AS col2, - 55
----
62
-55

skipif mysql # not compatible
query II rowsort label-8438
SELECT COUNT ( * ) * + 62 AS col2, - 55
----
62
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8439
SELECT DISTINCT - 58 * - - ( - COALESCE ( 11, 95 * - 47 + - 12 + 86 + 66 * - 8 + - COUNT( + 76 ), - CAST( NULL AS SIGNED ) ) ) * 75 + - CAST( NULL AS SIGNED ) + - + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT - 58 * - - ( - COALESCE ( 11, 95 * - 47 + - 12 + 86 + 66 * - 8 + - COUNT ( + 76 ), - CAST ( NULL AS INTEGER ) ) ) * 75 + - CAST ( NULL AS INTEGER ) + - + 55
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT - 39 + + + 94 + CAST( + - 65 AS SIGNED ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8440
SELECT - 39 + + + 94 + CAST ( + - 65 AS INTEGER ) AS col2
----
-10

query II rowsort
SELECT + 16, - 71 AS col0
----
16
-71

query I rowsort
SELECT ALL 66 * - 72 - - - 69 col2
----
-4821

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8443
SELECT + 68 - - 31 + + ( + COUNT( * ) ) - - - COUNT( * ) - - CAST( NULL AS DECIMAL ) * - ( + + ( COUNT( * ) ) ) + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT + 68 - - 31 + + ( + COUNT ( * ) ) - - - COUNT ( * ) - - CAST ( NULL AS REAL ) * - ( + + ( COUNT ( * ) ) ) + + 78
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL + CAST ( 58 AS INTEGER ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8447
SELECT DISTINCT + CASE 6 WHEN - + 28 + + ( - 25 ) * + NULLIF ( 61, + CASE + CAST( NULL AS SIGNED ) WHEN 54 THEN 74 + + 89 ELSE NULL END ) THEN NULL ELSE + + COUNT( DISTINCT + 70 ) * 33 + 3 + 26 * - - 71 * + 80 END
----
147716

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT + CASE 6 WHEN - + 28 + + ( - 25 ) * + NULLIF ( 61, + CASE + CAST ( NULL AS INTEGER ) WHEN 54 THEN 74 + + 89 ELSE NULL END ) THEN NULL ELSE + + COUNT ( DISTINCT + 70 ) * 33 + 3 + 26 * - - 71 * + 80 END
----
147716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8448
SELECT - 90 - + CASE + ( - 17 ) WHEN + - COUNT( * ) - - - ( + 74 ) * CAST( NULL AS SIGNED ) + ( + + NULLIF ( COUNT( * ), - ( 61 ) ) ) + + 47 * + 7 THEN - 14 WHEN + 35 + 34 THEN - - 54 * + COUNT( * ) ELSE + 80 END AS col2
----
-170

skipif mysql # not compatible
query I rowsort label-8448
SELECT - 90 - + CASE + ( - 17 ) WHEN + - COUNT ( * ) - - - ( + 74 ) * CAST ( NULL AS INTEGER ) + ( + + NULLIF ( COUNT ( * ), - ( 61 ) ) ) + + 47 * + 7 THEN - 14 WHEN + 35 + 34 THEN - - 54 * + COUNT ( * ) ELSE + 80 END AS col2
----
-170

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT DISTINCT - 96 DIV + 96 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT - 96 / + 96 AS col1
----
-1

query I rowsort
SELECT - 54 + + - 64
----
-118

query I rowsort
SELECT ALL 42 * - 54 AS col0
----
-2268

onlyif mysql # DIV for integer division: 
query I rowsort label-8453
SELECT ALL COALESCE ( + - 14, - 41 * + 96, - 94 - + + 89 DIV 69 DIV - 18 + - 47 * + - 72 * + + 89 ) + - - 79 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL COALESCE ( + - 14, - 41 * + 96, - 94 - + + 89 / 69 / - 18 + - 47 * + - 72 * + + 89 ) + - - 79 AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8454
SELECT - 7 + + + 37 - - ( + ( - SUM( DISTINCT + - 25 ) ) ) * - NULLIF ( - COUNT( * ), COUNT( * ) / CAST( NULL AS SIGNED ) )
----
55

skipif mysql # not compatible
query I rowsort label-8454
SELECT - 7 + + + 37 - - ( + ( - SUM ( DISTINCT + - 25 ) ) ) * - NULLIF ( - COUNT ( * ), COUNT ( * ) / CAST ( NULL AS INTEGER ) )
----
55

query I rowsort
SELECT + 34 + 3
----
37

query I rowsort
SELECT DISTINCT - 8 + 59 AS col0
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT ALL - 75 + + 89 * - + SUM( 70 ) AS col1
----
-6305

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL - 75 + + 89 * - + SUM ( 70 ) AS col1
----
-6305

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

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

query I rowsort
SELECT + + 95 * - + 37 AS col1
----
-3515

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

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

query I rowsort
SELECT ALL 53 * + - 60
----
-3180

query I rowsort
SELECT + 23 + - 84 + 58 * + 63 AS col1
----
3593

query I rowsort
SELECT + 97 + 12
----
109

query I rowsort
SELECT + 36 + ( - 35 )
----
1

query II rowsort
SELECT 38 AS col2, + ( 73 )
----
38
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8467
SELECT DISTINCT + ( - 68 ) + 34 + - 37 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT + ( - 68 ) + 34 + - 37 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 50 * 47 AS col1
----
2350

query I rowsort
SELECT ALL 20 * + ( - + 30 ) + + 52
----
-548

query I rowsort
SELECT ALL 94 - - - 94 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT + + 37 + - CAST( NULL AS SIGNED ) + + - 42 * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT + + 37 + - CAST ( NULL AS INTEGER ) + + - 42 * 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT - 81 * + COUNT( * ) * + ( - 38 ) * 31 + - MAX( DISTINCT + 77 )
----
95341

skipif mysql # not compatible
query I rowsort label-8472
SELECT - 81 * + COUNT ( * ) * + ( - 38 ) * 31 + - MAX ( DISTINCT + 77 )
----
95341

onlyif mysql # DIV for integer division: 
query I rowsort label-8473
SELECT ALL 62 DIV - + 6 - - 83
----
73

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL 62 / - + 6 - - 83
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8474
SELECT CAST( + - 67 AS SIGNED ) col2
----
-67

skipif mysql # not compatible
query I rowsort label-8474
SELECT CAST ( + - 67 AS INTEGER ) col2
----
-67

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

query I rowsort
SELECT - 85 * + 10
----
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT DISTINCT + CASE - 63 WHEN + AVG ( ALL COALESCE ( - 61, + 90, + 33 ) ) * + - 95 / + 99 + - 4 THEN ( - 46 ) WHEN + 54 THEN - - ( - 56 ) WHEN + 60 THEN + - COUNT( ALL - 6 ) * COALESCE ( + - 74, 67 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT + CASE - 63 WHEN + AVG ( ALL COALESCE ( - 61, + 90, + 33 ) ) * + - 95 / + 99 + - 4 THEN ( - 46 ) WHEN + 54 THEN - - ( - 56 ) WHEN + 60 THEN + - COUNT ( ALL - 6 ) * COALESCE ( + - 74, 67 ) END AS col0
----
NULL

query I rowsort
SELECT ALL - 9 * + 51
----
-459

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8479
SELECT ALL + CASE - 50 WHEN 57 - + 51 THEN - 52 WHEN 95 / 27 * - ( + - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) THEN NULL ELSE - + 24 END
----
-24

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL + CASE - 50 WHEN 57 - + 51 THEN - 52 WHEN 95 / 27 * - ( + - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) THEN NULL ELSE - + 24 END
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8480
SELECT + CAST( - ( + + 20 ) AS SIGNED ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-8480
SELECT + CAST ( - ( + + 20 ) AS INTEGER ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT - 67 * + NULLIF ( COUNT( - - ( - 11 ) ), + NULLIF ( + COUNT( ALL + 72 ), + 26 * - 95 ) ) * 80 + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT - 67 * + NULLIF ( COUNT ( - - ( - 11 ) ), + NULLIF ( + COUNT ( ALL + 72 ), + 26 * - 95 ) ) * 80 + 25 AS col1
----
NULL

query I rowsort
SELECT ALL 73 * - 40 * + - 26
----
75920

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8483
SELECT + CAST( + + 70 AS SIGNED ) AS col2, 24 DIV + 75
----
70
0

skipif mysql # not compatible
query II rowsort label-8483
SELECT + CAST ( + + 70 AS INTEGER ) AS col2, 24 / + 75
----
70
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8484
SELECT + 13 DIV + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8484
SELECT + 13 / + 95 AS col1
----
0

query II rowsort
SELECT - 19 * 25 AS col2, + 32
----
-475
32

query I rowsort
SELECT ALL - 13 * 98 + 4 AS col1
----
-1270

query I rowsort
SELECT NULLIF ( 98, + AVG ( DISTINCT - 24 ) * 11 - + 50 + + 98 - - 7 / + 48 + - 85 * - 29 )
----
98

query I rowsort
SELECT ALL COALESCE ( + 67, 63 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL + + 96 * + COUNT( * ) + - 53 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL + + 96 * + COUNT ( * ) + - 53 AS col0
----
43

query II rowsort
SELECT ALL - 27 * + - 41 + - + 74 - 42, 48 + + 47 AS col2
----
991
95

query I rowsort
SELECT + 17 * - 92 + - 14 AS col1
----
-1578

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT - + 10 * + - COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8492
SELECT - + 10 * + - COUNT ( * ) AS col1
----
10

query I rowsort
SELECT ALL - 88 * 26 AS col1
----
-2288

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT - MAX( DISTINCT 99 ) - + 19 + + 73 + 48 + 50 - + 71 + COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-8494
SELECT - MAX ( DISTINCT 99 ) - + 19 + + 73 + 48 + 50 - + 71 + COUNT ( * ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-8495
SELECT - COUNT( * ) - + 10 + - 27 * - + COUNT( * ) AS col1, 26 - + 48
----
16
-22

skipif mysql # not compatible
query II rowsort label-8495
SELECT - COUNT ( * ) - + 10 + - 27 * - + COUNT ( * ) AS col1, 26 - + 48
----
16
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT DISTINCT - COUNT( * ) - ( + - 61 ) - - ( COUNT( * ) ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT - COUNT ( * ) - ( + - 61 ) - - ( COUNT ( * ) ) AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8497
SELECT ALL SUM( ALL + + 54 ) - - 17 / - + 83 + + COUNT( * ) - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL SUM ( ALL + + 54 ) - - 17 / - + 83 + + COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8498
SELECT + AVG ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT + AVG ( CAST ( NULL AS REAL ) )
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8501
SELECT COALESCE ( + + 96, + CAST( NULL AS SIGNED ) * + + COUNT( * ) * - 70 + + - 48 ) - + - ( - - COALESCE ( - COUNT( * ), + + 60, 44 - 61 ) ) - + COUNT( * ) * + 43 - 89 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8501
SELECT COALESCE ( + + 96, + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * - 70 + + - 48 ) - + - ( - - COALESCE ( - COUNT ( * ), + + 60, 44 - 61 ) ) - + COUNT ( * ) * + 43 - 89 AS col2
----
-37

query I rowsort
SELECT DISTINCT - 39 * - 54 AS col2
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT + 75 - MIN( DISTINCT 77 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8503
SELECT + 75 - MIN ( DISTINCT 77 ) AS col1
----
-2

query I rowsort
SELECT 86 * - + ( + 75 ) + + + 41
----
-6409

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL 53 * + 80 * ( + ( + - CASE 76 WHEN - + 3 THEN NULL ELSE COUNT( * ) END ) ) AS col2
----
-4240

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL 53 * + 80 * ( + ( + - CASE 76 WHEN - + 3 THEN NULL ELSE COUNT ( * ) END ) ) AS col2
----
-4240

query II rowsort
SELECT - 60 AS col1, 6
----
-60
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT 93 + 82 - - ( - COUNT( DISTINCT + - CASE + 29 WHEN + + 74 * - + 2 THEN NULL ELSE 5 END ) )
----
174

skipif mysql # not compatible
query I rowsort label-8507
SELECT 93 + 82 - - ( - COUNT ( DISTINCT + - CASE + 29 WHEN + + 74 * - + 2 THEN NULL ELSE 5 END ) )
----
174

query I rowsort
SELECT DISTINCT CASE - 91 WHEN + 38 + + 75 / - 31 + + + ( + 62 ) THEN NULL ELSE 90 - + 56 END * + 9 * + 87 * + 3 AS col1
----
79866

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8509
SELECT COUNT( * ) + 34 * + + COALESCE ( 13, COUNT( * ) + 21 - 42 + + + 42 * + 88 + CAST( NULL AS SIGNED ) * - 86 * + 51 )
----
443

skipif mysql # not compatible
query I rowsort label-8509
SELECT COUNT ( * ) + 34 * + + COALESCE ( 13, COUNT ( * ) + 21 - 42 + + + 42 * + 88 + CAST ( NULL AS INTEGER ) * - 86 * + 51 )
----
443

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT ( - - 77 ) DIV - 21 + 38
----
35

skipif mysql # not compatible
query I rowsort label-8510
SELECT ( - - 77 ) / - 21 + 38
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8511
SELECT COUNT( * ) * + 81 * + 4 DIV - COUNT( * ) col2
----
-324

skipif mysql # not compatible
query I rowsort label-8511
SELECT COUNT ( * ) * + 81 * + 4 / - COUNT ( * ) col2
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ( + 95 ) * + SUM( DISTINCT - 77 ) * 89 + - 80 AS col0
----
-651115

skipif mysql # not compatible
query I rowsort label-8512
SELECT ( + 95 ) * + SUM ( DISTINCT - 77 ) * 89 + - 80 AS col0
----
-651115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8513
SELECT 14 - ( 46 ) * - CAST( - + 43 AS SIGNED ) + - COUNT( * )
----
-1965

skipif mysql # not compatible
query I rowsort label-8513
SELECT 14 - ( 46 ) * - CAST ( - + 43 AS INTEGER ) + - COUNT ( * )
----
-1965

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

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

query I rowsort
SELECT 59 * 74
----
4366

onlyif mysql # DIV for integer division: 
query I rowsort label-8516
SELECT 43 + + - 7 DIV - ( - + 48 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8516
SELECT 43 + + - 7 / - ( - + 48 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT ALL - 15 + + - 76 * + COUNT( * ) * - - 95
----
-7235

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL - 15 + + - 76 * + COUNT ( * ) * - - 95
----
-7235

query I rowsort
SELECT DISTINCT + 60 * 19 AS col1
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT 24 + + 78 + + SUM( - 29 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT 24 + + 78 + + SUM ( - 29 ) AS col0
----
73

query I rowsort
SELECT DISTINCT + 77 * - + 59
----
-4543

query II rowsort
SELECT ALL - - 11 + - 68 + - - 17 AS col0, - 7
----
-40
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT + 2 * COALESCE ( + ( 64 ), ( + 59 ) * MAX( - 33 ) ) - + 37 + - 56 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8522
SELECT + 2 * COALESCE ( + ( 64 ), ( + 59 ) * MAX ( - 33 ) ) - + 37 + - 56 AS col2
----
35

query I rowsort
SELECT ALL 86 + + 57 col2
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-8524
SELECT DISTINCT + MAX( 80 ) * - 7, NULLIF ( + 0, - COUNT( * ) + - COUNT( - - 41 ) ) AS col2
----
-560
0

skipif mysql # not compatible
query II rowsort label-8524
SELECT DISTINCT + MAX ( 80 ) * - 7, NULLIF ( + 0, - COUNT ( * ) + - COUNT ( - - 41 ) ) AS col2
----
-560
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8525
SELECT + 15 * - 46 - - 64 + - CAST( NULL AS SIGNED ) * CASE - + COALESCE ( - COUNT( * ), + SUM( - + 53 ), - 44 ) WHEN - 72 THEN - + ( + 51 ) END + - 22 * - 48 + 57 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8525
SELECT + 15 * - 46 - - 64 + - CAST ( NULL AS INTEGER ) * CASE - + COALESCE ( - COUNT ( * ), + SUM ( - + 53 ), - 44 ) WHEN - 72 THEN - + ( + 51 ) END + - 22 * - 48 + 57 + COUNT ( * )
----
NULL

query I rowsort
SELECT 16 + - 4
----
12

query I rowsort
SELECT ALL - - 19 + + 13 + 32 * - 7 AS col1
----
-192

query I rowsort
SELECT + 66 - + 75 AS col2
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT DISTINCT COUNT( DISTINCT NULLIF ( + 13, 16 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT COUNT ( DISTINCT NULLIF ( + 13, 16 ) ) AS col0
----
1

query I rowsort
SELECT ALL - 92 - + 28 + + 22 col2
----
-98

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

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

query I rowsort
SELECT ALL + - 6 * - + 67 + + 51
----
453

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8534
SELECT + 45 + + CAST( 31 AS SIGNED ) col1, 77 AS col1
----
76
77

skipif mysql # not compatible
query II rowsort label-8534
SELECT + 45 + + CAST ( 31 AS INTEGER ) col1, 77 AS col1
----
76
77

query I rowsort
SELECT DISTINCT + - 64 * + 5
----
-320

query I rowsort
SELECT 24 + + + 9 * 73
----
681

onlyif mysql # DIV for integer division: 
query I rowsort label-8537
SELECT 55 DIV - 15
----
-3

skipif mysql # not compatible
query I rowsort label-8537
SELECT 55 / - 15
----
-3

query I rowsort
SELECT - 82 * - - 42
----
-3444

query I rowsort
SELECT + ( + 37 ) + 98 AS col2
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-8540
SELECT 38 + 35 - - - ( - 90 ) DIV + 86 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8540
SELECT 38 + 35 - - - ( - 90 ) / + 86 AS col0
----
74

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

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

query I rowsort
SELECT 18 * + - 91 * 70 col1
----
-114660

query I rowsort
SELECT 34 + + 59 * - ( + 36 ) AS col2
----
-2090

query I rowsort
SELECT - 34 * + 98 + - 40 AS col2
----
-3372

query II rowsort
SELECT + 33 AS col1, 90 + - + 62
----
33
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT COUNT( DISTINCT + CASE - + 86 WHEN + + 18 THEN NULL ELSE + 92 END )
----
1

skipif mysql # not compatible
query I rowsort label-8547
SELECT COUNT ( DISTINCT + CASE - + 86 WHEN + + 18 THEN NULL ELSE + 92 END )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT COUNT( * ) * + MIN( - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-8548
SELECT COUNT ( * ) * + MIN ( - 36 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8549
SELECT + 84 / 65 * CASE + + 58 WHEN - - 25 * + COUNT( * ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 49 THEN - - COALESCE ( - 24, + + 97 ) + NULLIF ( + - 79, - 54 * + - 59 ) END + + + NULLIF ( - 65, - AVG ( + 61 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT + 84 / 65 * CASE + + 58 WHEN - - 25 * + COUNT ( * ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 49 THEN - - COALESCE ( - 24, + + 97 ) + NULLIF ( + - 79, - 54 * + - 59 ) END + + + NULLIF ( - 65, - AVG ( + 61 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT ALL 19 + + 54 * + MAX( DISTINCT - 84 ) * + COUNT( DISTINCT + 49 ) + + 19 - 31
----
-4529

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL 19 + + 54 * + MAX ( DISTINCT - 84 ) * + COUNT ( DISTINCT + 49 ) + + 19 - 31
----
-4529

query II rowsort
SELECT + 44, + 57 AS col0
----
44
57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8553
SELECT 47 * 58 DIV - 11 + - - 98 - 14 + 30 * CAST( + 35 AS SIGNED ) + - COUNT( * ) + - CAST( 27 AS SIGNED ) AS col2
----
859

skipif mysql # not compatible
query I rowsort label-8553
SELECT 47 * 58 / - 11 + - - 98 - 14 + 30 * CAST ( + 35 AS INTEGER ) + - COUNT ( * ) + - CAST ( 27 AS INTEGER ) AS col2
----
859

query I rowsort
SELECT ALL 72 + + 10 AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT CASE - 30 WHEN COUNT( * ) * + 19 + - AVG ( 84 ) - + COUNT( + CASE WHEN NOT - 94 <> - 18 THEN + 2 ELSE NULL END ) + + MAX( + 50 ) * - + COUNT( * ) THEN + COALESCE ( + 79, + 92, - - ( - - CAST( + + COUNT( * ) AS SIGNED ) ) * + + 66 ) ELSE NULL END * AVG ( DISTINCT 39 ) * + CAST( - 85 AS SIGNED ) + 88 + + 21 + + 18 + + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT CASE - 30 WHEN COUNT ( * ) * + 19 + - AVG ( 84 ) - + COUNT ( + CASE WHEN NOT - 94 <> - 18 THEN + 2 ELSE NULL END ) + + MAX ( + 50 ) * - + COUNT ( * ) THEN + COALESCE ( + 79, + 92, - - ( - - CAST ( + + COUNT ( * ) AS INTEGER ) ) * + + 66 ) ELSE NULL END * AVG ( DISTINCT 39 ) * + CAST ( - 85 AS INTEGER ) + 88 + + 21 + + 18 + + + 58
----
NULL

query I rowsort
SELECT ALL 83 * 9
----
747

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT MIN( + 57 ) + - + 49 + - + 72 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-8557
SELECT MIN ( + 57 ) + - + 49 + - + 72 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8558
SELECT 31 * + - 42 + + COALESCE ( - - CAST( NULL AS SIGNED ), 85 ) + + 45 + MIN( ALL 48 ) * CAST( NULL AS SIGNED ) / + 37 / 53 + - + 43 * + CAST( NULL AS SIGNED ) * - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT 31 * + - 42 + + COALESCE ( - - CAST ( NULL AS INTEGER ), 85 ) + + 45 + MIN ( ALL 48 ) * CAST ( NULL AS INTEGER ) / + 37 / 53 + - + 43 * + CAST ( NULL AS INTEGER ) * - + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT MIN( + 35 ) * + + 32 - + 39 - + + 68 + + 2 * + + COUNT( * )
----
1015

skipif mysql # not compatible
query I rowsort label-8559
SELECT MIN ( + 35 ) * + + 32 - + 39 - + + 68 + + 2 * + + COUNT ( * )
----
1015

query I rowsort
SELECT 2 * + 27 - - - 44 + + 69
----
79

query II rowsort
SELECT ALL - + 19 AS col2, + 24 AS col1
----
-19
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8562
SELECT DISTINCT - 52 AS col0, + 20 * + CAST( - COALESCE ( + 29, + 85 * - COUNT( * ), - 35 ) AS SIGNED )
----
-52
-580

skipif mysql # not compatible
query II rowsort label-8562
SELECT DISTINCT - 52 AS col0, + 20 * + CAST ( - COALESCE ( + 29, + 85 * - COUNT ( * ), - 35 ) AS INTEGER )
----
-52
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT ALL - + MAX( DISTINCT - - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL - + MAX ( DISTINCT - - 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT - COUNT( * ) * - MIN( DISTINCT 60 ) * - + 66 + - + 85
----
-4045

skipif mysql # not compatible
query I rowsort label-8564
SELECT - COUNT ( * ) * - MIN ( DISTINCT 60 ) * - + 66 + - + 85
----
-4045

query I rowsort
SELECT DISTINCT + 5 * - + 91 * 79 col2
----
-35945

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

query II rowsort
SELECT ALL + 44 AS col2, 12
----
44
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8568
SELECT ALL + 34 AS col0, - 66 DIV + - 35 * ( + COUNT( * ) ) - - COUNT( * ) AS col2
----
34
2

skipif mysql # not compatible
query II rowsort label-8568
SELECT ALL + 34 AS col0, - 66 / + - 35 * ( + COUNT ( * ) ) - - COUNT ( * ) AS col2
----
34
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8569
SELECT DISTINCT - 44 * - - ( CAST( NULL AS SIGNED ) ) * 45 * + NULLIF ( - 11, + 75 + - 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT - 44 * - - ( CAST ( NULL AS INTEGER ) ) * 45 * + NULLIF ( - 11, + 75 + - 65 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8570
SELECT + - 6 - + + COUNT( * ) - + NULLIF ( - 76, - SUM( + 79 ) + + 89 + + CAST( + 55 AS SIGNED ) ) * - 57
----
-4339

skipif mysql # not compatible
query I rowsort label-8570
SELECT + - 6 - + + COUNT ( * ) - + NULLIF ( - 76, - SUM ( + 79 ) + + 89 + + CAST ( + 55 AS INTEGER ) ) * - 57
----
-4339

onlyif mysql # aggregate syntax: 
query II rowsort label-8571
SELECT - 12 AS col2, COUNT( * ) - - + 35 - + - 90 col0
----
-12
126

skipif mysql # not compatible
query II rowsort label-8571
SELECT - 12 AS col2, COUNT ( * ) - - + 35 - + - 90 col0
----
-12
126

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8572
SELECT + 5 * + + 58 * + CAST( NULL AS DECIMAL ) * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT + 5 * + + 58 * + CAST ( NULL AS REAL ) * 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT + + 31 + + MAX( DISTINCT + 97 )
----
128

skipif mysql # not compatible
query I rowsort label-8573
SELECT + + 31 + + MAX ( DISTINCT + 97 )
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8574
SELECT - + COALESCE ( 34, + NULLIF ( - + 26, + + 12 + + 14 * 47 * + - 46 ) * - 7 * + - 99 + + - NULLIF ( + 9, 27 - + 18 - - 85 * + + ( + - SUM( 84 ) ) * 30 + + 39 ) + + 57 * - ( - CAST( - ( - 5 ) AS SIGNED ) ) DIV - + 73 * + - 68 * + - 96 + - CAST( - NULLIF ( - 94, - 37 ) AS SIGNED ) + ( + 16 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-8574
SELECT - + COALESCE ( 34, + NULLIF ( - + 26, + + 12 + + 14 * 47 * + - 46 ) * - 7 * + - 99 + + - NULLIF ( + 9, 27 - + 18 - - 85 * + + ( + - SUM ( 84 ) ) * 30 + + 39 ) + + 57 * - ( - CAST ( - ( - 5 ) AS INTEGER ) ) / - + 73 * + - 68 * + - 96 + - CAST ( - NULLIF ( - 94, - 37 ) AS INTEGER ) + ( + 16 ) )
----
-34

query I rowsort
SELECT DISTINCT + CASE - 6 WHEN - + 66 THEN + - ( - - 79 ) + + + 54 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL SUM( ALL 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL SUM ( ALL 40 ) AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8578
SELECT DISTINCT - 32 + + + CAST( SUM( DISTINCT - 24 ) AS SIGNED ) + + COUNT( * ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT - 32 + + + CAST ( SUM ( DISTINCT - 24 ) AS INTEGER ) + + COUNT ( * ) col1
----
-55

query I rowsort
SELECT - 26 - 18 AS col0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8580
SELECT ALL - 23 * 0 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL - 23 * 0 / - 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT ALL - SUM( ALL - 44 ) + 78 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL - SUM ( ALL - 44 ) + 78 AS col1
----
122

query I rowsort
SELECT - 32 * + - 53 AS col2
----
1696

query I rowsort
SELECT - 90 + 85 * - 71 col2
----
-6125

onlyif mysql # DIV for integer division: 
query I rowsort label-8584
SELECT - 8 DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-8584
SELECT - 8 / + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT ALL + 54 * - COUNT( * ) + 56
----
2

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL + 54 * - COUNT ( * ) + 56
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT DISTINCT - MIN( 84 ) * - 83 + - 4 + + 0 AS col2
----
6968

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT - MIN ( 84 ) * - 83 + - 4 + + 0 AS col2
----
6968

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8587
SELECT ( 46 ) AS col1, - 58 DIV 38 * + COUNT( DISTINCT - ( - 1 ) ) AS col1
----
46
-1

skipif mysql # not compatible
query II rowsort label-8587
SELECT ( 46 ) AS col1, - 58 / 38 * + COUNT ( DISTINCT - ( - 1 ) ) AS col1
----
46
-1

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

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

query II rowsort
SELECT DISTINCT 66 * - 85, + 72 AS col0
----
-5610
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ( MIN( 70 ) )
----
70

skipif mysql # not compatible
query I rowsort label-8590
SELECT ( MIN ( 70 ) )
----
70

query I rowsort
SELECT ALL + NULLIF ( - 63, - 69 )
----
-63

query I rowsort
SELECT - 42 + - 25 * + - 63 - + 38
----
1495

query I rowsort
SELECT - 1 * + + COALESCE ( 35, - 96 ) AS col1
----
-35

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

skipif mysql # not compatible
query I rowsort label-8594
SELECT - AVG ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT - 31 * - + CASE 6 WHEN - 41 THEN + - 55 + 82 ELSE NULL END + 21 AS col2, + 41
----
NULL
41

query I rowsort
SELECT + 21 * 9 col1
----
189

query I rowsort
SELECT DISTINCT 90 * + 1
----
90

query I rowsort
SELECT + 43 * - 60 + - 59 AS col0
----
-2639

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL + 67 * - ( MIN( - 52 ) ) * MIN( DISTINCT - 55 ) - - + 65
----
-191555

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL + 67 * - ( MIN ( - 52 ) ) * MIN ( DISTINCT - 55 ) - - + 65
----
-191555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8600
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) * + 51 * + 73 - - + COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) * + 51 * + 73 - - + COUNT ( * ) + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8601
SELECT + ( + CAST( 16 AS SIGNED ) ) + + - 91 - 49 DIV - 6 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-8601
SELECT + ( + CAST ( 16 AS INTEGER ) ) + + - 91 - 49 / - 6 AS col0
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8602
SELECT ALL - 7 * - 80 DIV - 38, - COUNT( * ) AS col1
----
-14
-1

skipif mysql # not compatible
query II rowsort label-8602
SELECT ALL - 7 * - 80 / - 38, - COUNT ( * ) AS col1
----
-14
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8603
SELECT 96 * + CASE 99 WHEN + 80 THEN 5 WHEN + + CASE + 59 WHEN + + COALESCE ( + - 95, + 61, - 40 / 94 ) + 14 + 50 + + 7 + - COALESCE ( - 64, - 26 * + - 85, 84 ) * + - 2 * - + CAST( NULL AS SIGNED ) * - 84 - + COUNT( * ) THEN NULL WHEN + 41 THEN 88 END THEN - + COUNT( * ) + + - 49 END * - 31 * - 22 + + - ( - 44 ) * + CAST( ( 92 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8603
SELECT 96 * + CASE 99 WHEN + 80 THEN 5 WHEN + + CASE + 59 WHEN + + COALESCE ( + - 95, + 61, - 40 / 94 ) + 14 + 50 + + 7 + - COALESCE ( - 64, - 26 * + - 85, 84 ) * + - 2 * - + CAST ( NULL AS INTEGER ) * - 84 - + COUNT ( * ) THEN NULL WHEN + 41 THEN 88 END THEN - + COUNT ( * ) + + - 49 END * - 31 * - 22 + + - ( - 44 ) * + CAST ( ( 92 ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8604
SELECT + + 79 DIV - 64
----
-1

skipif mysql # not compatible
query I rowsort label-8604
SELECT + + 79 / - 64
----
-1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8608
SELECT + + CAST( NULL AS SIGNED ) + + - 42 + - 24 * + + COUNT( * ) * + 17 / + 67 + - 21 AS col1, COUNT( + - 2 ) + ( - + SUM( 89 ) ) AS col1
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-8608
SELECT + + CAST ( NULL AS INTEGER ) + + - 42 + - 24 * + + COUNT ( * ) * + 17 / + 67 + - 21 AS col1, COUNT ( + - 2 ) + ( - + SUM ( 89 ) ) AS col1
----
NULL
-88

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

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL ( - + COUNT ( * ) ) / + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8610
SELECT + 89 / CASE - 73 WHEN + + 21 / + + 79 + - 65 / + 84 * 2 + 98 + - 70 * - - CASE - 43 WHEN - 85 THEN NULL ELSE - + 15 END / - CAST( NULL AS SIGNED ) * + - 83 THEN + 60 WHEN + 74 THEN + + 93 END * 7 + + 43 / - COUNT( * ) * - - 7 + + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT + 89 / CASE - 73 WHEN + + 21 / + + 79 + - 65 / + 84 * 2 + 98 + - 70 * - - CASE - 43 WHEN - 85 THEN NULL ELSE - + 15 END / - CAST ( NULL AS INTEGER ) * + - 83 THEN + 60 WHEN + 74 THEN + + 93 END * 7 + + 43 / - COUNT ( * ) * - - 7 + + - 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8611
SELECT + 64 - + CASE + 42 WHEN CASE 7 WHEN - CASE - COUNT( * ) WHEN + 73 * - 15 * + COUNT( * ) + + 16 THEN ( ( - + CAST( - 20 AS SIGNED ) ) ) * - 42 WHEN MIN( + NULLIF ( + ( - 26 ), + - 91 ) ) - 89 THEN - - 59 * 36 * 40 + - 30 + 16 + 33 + - - 80 END THEN NULL WHEN - 20 THEN 5 ELSE NULL END THEN NULL WHEN 97 THEN 76 - + 95 ELSE NULL END + 70 * 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT + 64 - + CASE + 42 WHEN CASE 7 WHEN - CASE - COUNT ( * ) WHEN + 73 * - 15 * + COUNT ( * ) + + 16 THEN ( ( - + CAST ( - 20 AS INTEGER ) ) ) * - 42 WHEN MIN ( + NULLIF ( + ( - 26 ), + - 91 ) ) - 89 THEN - - 59 * 36 * 40 + - 30 + 16 + 33 + - - 80 END THEN NULL WHEN - 20 THEN 5 ELSE NULL END THEN NULL WHEN 97 THEN 76 - + 95 ELSE NULL END + 70 * 7 AS col2
----
NULL

query I rowsort
SELECT + 50 + - 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT DISTINCT COUNT( * ) + - - 56
----
57

skipif mysql # not compatible
query I rowsort label-8613
SELECT DISTINCT COUNT ( * ) + - - 56
----
57

query I rowsort
SELECT + 27 + - 79 * + 88
----
-6925

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8615
SELECT - CAST( CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT ALL CASE 21 WHEN + COUNT( * ) THEN - - 75 END + + - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL CASE 21 WHEN + COUNT ( * ) THEN - - 75 END + + - 86 AS col0
----
NULL

query I rowsort
SELECT + 32 + + - 57 AS col2
----
-25

query I rowsort
SELECT DISTINCT 44 + + 58 AS col2
----
102

query I rowsort
SELECT + 8 + + 10
----
18

query I rowsort
SELECT + 67 * - 16
----
-1072

query I rowsort
SELECT - 73 + + + 37 - + 63 AS col2
----
-99

query I rowsort
SELECT ALL - 19 + + - 50 + + 78 AS col0
----
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8624
SELECT DISTINCT CASE - 84 WHEN ( + 24 ) THEN NULL WHEN + NULLIF ( + CAST( NULL AS SIGNED ), - - 34 * + 78 * + 83 + + 45 * + 43 ) THEN NULL ELSE + COUNT( DISTINCT 60 ) * + 73 + 85 * - - COUNT( * ) END
----
158

skipif mysql # not compatible
query I rowsort label-8624
SELECT DISTINCT CASE - 84 WHEN ( + 24 ) THEN NULL WHEN + NULLIF ( + CAST ( NULL AS INTEGER ), - - 34 * + 78 * + 83 + + 45 * + 43 ) THEN NULL ELSE + COUNT ( DISTINCT 60 ) * + 73 + 85 * - - COUNT ( * ) END
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT + COUNT( - 25 ) * + 63 + + 20
----
83

skipif mysql # not compatible
query I rowsort label-8625
SELECT + COUNT ( - 25 ) * + 63 + + 20
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8626
SELECT + NULLIF ( - 78, - CAST( NULL AS SIGNED ) ) * 44 AS col1
----
-3432

skipif mysql # not compatible
query I rowsort label-8626
SELECT + NULLIF ( - 78, - CAST ( NULL AS INTEGER ) ) * 44 AS col1
----
-3432

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

query I rowsort
SELECT DISTINCT + 84 * - 65 AS col0
----
-5460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8629
SELECT - 18 + + CAST( NULL AS SIGNED ) * 18 / + - COUNT( * ) / + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT - 18 + + CAST ( NULL AS INTEGER ) * 18 / + - COUNT ( * ) / + + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT DISTINCT - - 45 * COUNT( * ) + 33
----
78

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT - - 45 * COUNT ( * ) + 33
----
78

query II rowsort
SELECT DISTINCT - + 41 col0, - 49
----
-41
-49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8633
SELECT DISTINCT - 12 col0, 75 + + COUNT( * )
----
-12
76

skipif mysql # not compatible
query II rowsort label-8633
SELECT DISTINCT - 12 col0, 75 + + COUNT ( * )
----
-12
76

query I rowsort
SELECT + 42 * - 44
----
-1848

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8636
SELECT + + CAST( - 75 AS SIGNED ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8636
SELECT + + CAST ( - 75 AS INTEGER ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT - 15 * + 89 * + 15 - + + 83 + + - COUNT( * )
----
-20109

skipif mysql # not compatible
query I rowsort label-8637
SELECT - 15 * + 89 * + 15 - + + 83 + + - COUNT ( * )
----
-20109

query I rowsort
SELECT ALL - + 45 + - 21 + - 63 + - 21
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT 9 * + - SUM( + 90 ) AS col2
----
-810

skipif mysql # not compatible
query I rowsort label-8639
SELECT 9 * + - SUM ( + 90 ) AS col2
----
-810

query I rowsort
SELECT DISTINCT - 62 + 41
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8641
SELECT ALL - 3 + + + ( + + MIN( DISTINCT - 99 ) ) - - 58 - + - CASE + - ( + 65 ) WHEN + MAX( + - COALESCE ( + - 96, - 83 - - - 43, - 68 ) ) * 94 + 54 - 73 THEN 1 - + 41 ELSE NULL END + - CAST( NULL AS SIGNED ) + + 95 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL - 3 + + + ( + + MIN ( DISTINCT - 99 ) ) - - 58 - + - CASE + - ( + 65 ) WHEN + MAX ( + - COALESCE ( + - 96, - 83 - - - 43, - 68 ) ) * 94 + 54 - 73 THEN 1 - + 41 ELSE NULL END + - CAST ( NULL AS INTEGER ) + + 95 * - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 19 AS col0, NULLIF ( - 16, - 47 + - - 73 ) AS col0
----
-19
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT NULLIF ( + - CASE AVG ( - + 59 ) WHEN + 14 * - - 7 * - NULLIF ( 20, - 77 * - + 79 / - ( - 55 ) * - 82 + - 54 + + 91 + + 66 * + 72 + - 98 ) * + 91 * + 0 * + COUNT( * ) THEN NULL WHEN - 95 + + + 45 THEN + 33 + - 25 END, 58 + - ( + COUNT( * ) ) ) / 21 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8643
SELECT NULLIF ( + - CASE AVG ( - + 59 ) WHEN + 14 * - - 7 * - NULLIF ( 20, - 77 * - + 79 / - ( - 55 ) * - 82 + - 54 + + 91 + + 66 * + 72 + - 98 ) * + 91 * + 0 * + COUNT ( * ) THEN NULL WHEN - 95 + + + 45 THEN + 33 + - 25 END, 58 + - ( + COUNT ( * ) ) ) / 21 col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8644
SELECT DISTINCT 61 DIV 63, 0 col2
----
0
0

skipif mysql # not compatible
query II rowsort label-8644
SELECT DISTINCT 61 / 63, 0 col2
----
0
0

query I rowsort
SELECT ALL 55 - - 17 col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT ( 70 ) - - 31 + - ( 49 ) * + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-8646
SELECT ( 70 ) - - 31 + - ( 49 ) * + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8647
SELECT ALL 95 - - 34 - + COUNT( * ) DIV + 18 * - 30 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL 95 - - 34 - + COUNT ( * ) / + 18 * - 30 AS col2
----
129

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

skipif mysql # not compatible
query I rowsort label-8648
SELECT COUNT ( DISTINCT + - 73 ) * 9 AS col2
----
9

query I rowsort
SELECT + 55 - - + 64 + 97 + ( - 42 )
----
174

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

skipif mysql # not compatible
query I rowsort label-8650
SELECT + NULLIF ( - COUNT ( * ), 79 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8651
SELECT + + COALESCE ( 30, + + 70, - 19, + 20 * + CAST( - AVG ( DISTINCT 18 ) AS SIGNED ) )
----
30

skipif mysql # not compatible
query I rowsort label-8651
SELECT + + COALESCE ( 30, + + 70, - 19, + 20 * + CAST ( - AVG ( DISTINCT 18 ) AS INTEGER ) )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8652
SELECT COUNT( * ) + COUNT( * ) * 67 * + + 95 * CASE - ( - + 35 ) WHEN - 71 THEN + + COUNT( * ) WHEN + - 87 * - + 53 + NULLIF ( + COUNT( * ), - NULLIF ( + NULLIF ( + 72, 27 ), 65 / - 65 * + + 24 + ( - COALESCE ( - 73, - - CAST( - - 6 AS SIGNED ) * + COUNT( * ) + - COUNT( * ) ) ) * + MAX( - 17 ) ) * - 31 - + 22 ) THEN - 82 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8652
SELECT COUNT ( * ) + COUNT ( * ) * 67 * + + 95 * CASE - ( - + 35 ) WHEN - 71 THEN + + COUNT ( * ) WHEN + - 87 * - + 53 + NULLIF ( + COUNT ( * ), - NULLIF ( + NULLIF ( + 72, 27 ), 65 / - 65 * + + 24 + ( - COALESCE ( - 73, - - CAST ( - - 6 AS INTEGER ) * + COUNT ( * ) + - COUNT ( * ) ) ) * + MAX ( - 17 ) ) * - 31 - + 22 ) THEN - 82 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - - 92 + + - 14
----
78

query I rowsort
SELECT 55 + + + 89 AS col0
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8655
SELECT ALL - COALESCE ( 26, + 80 * + 83 + - NULLIF ( + - 22, + 35 - + + 45 + - 69 + + + COUNT( * ) ) * + CASE - COUNT( * ) WHEN - 9 THEN NULL WHEN 88 THEN NULL ELSE - 20 DIV COUNT( * ) * - 77 + - 18 + + CAST( NULL AS SIGNED ) END - - - 75 * - 85, + - 35 - - + 80 - - 95 * 46 ) * - 56
----
1456

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL - COALESCE ( 26, + 80 * + 83 + - NULLIF ( + - 22, + 35 - + + 45 + - 69 + + + COUNT ( * ) ) * + CASE - COUNT ( * ) WHEN - 9 THEN NULL WHEN 88 THEN NULL ELSE - 20 / COUNT ( * ) * - 77 + - 18 + + CAST ( NULL AS INTEGER ) END - - - 75 * - 85, + - 35 - - + 80 - - 95 * 46 ) * - 56
----
1456

query II rowsort
SELECT ALL + 63 + 87 + 65 * - + 76 AS col2, 33
----
-4790
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8657
SELECT 93 + + 93 + CAST( NULL AS SIGNED ) / - - ( + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT 93 + + 93 + CAST ( NULL AS INTEGER ) / - - ( + 72 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8658
SELECT DISTINCT - CASE + 91 WHEN + 77 * - + ( CAST( NULL AS SIGNED ) ) / - + 51 + 15 THEN + + 28 WHEN CAST( + - 83 AS SIGNED ) + + CAST( + 51 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT - CASE + 91 WHEN + 77 * - + ( CAST ( NULL AS INTEGER ) ) / - + 51 + 15 THEN + + 28 WHEN CAST ( + - 83 AS INTEGER ) + + CAST ( + 51 AS INTEGER ) THEN NULL END
----
NULL

query II rowsort
SELECT ALL - 89, - ( 34 ) AS col2
----
-89
-34

query I rowsort
SELECT 27 + 69
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT COUNT( DISTINCT + - 70 ) + + + MAX( DISTINCT - 50 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-8661
SELECT COUNT ( DISTINCT + - 70 ) + + + MAX ( DISTINCT - 50 ) AS col1
----
-49

query I rowsort
SELECT DISTINCT + 19 - 17 col1
----
2

query I rowsort
SELECT ALL 55 - + 20
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8664
SELECT SUM( DISTINCT 55 ) * + 26 - + ( 56 ), + 59 AS col0
----
1374
59

skipif mysql # not compatible
query II rowsort label-8664
SELECT SUM ( DISTINCT 55 ) * + 26 - + ( 56 ), + 59 AS col0
----
1374
59

query I rowsort
SELECT ALL + 2 - - + 0
----
2

query I rowsort
SELECT 42 * + 24
----
1008

query I rowsort
SELECT 52 * - 25
----
-1300

query I rowsort
SELECT 58 + + 86 AS col1
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8669
SELECT CAST( - AVG ( DISTINCT 49 ) AS SIGNED ) DIV COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-8669
SELECT CAST ( - AVG ( DISTINCT 49 ) AS INTEGER ) / COUNT ( * )
----
-49

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

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

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

skipif mysql # not compatible
query I rowsort label-8671
SELECT DISTINCT COUNT ( * ) / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL CASE + 40 WHEN ( + 92 ) * ( + 67 ) THEN NULL ELSE COUNT( * ) + + 9 END AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL CASE + 40 WHEN ( + 92 ) * ( + 67 ) THEN NULL ELSE COUNT ( * ) + + 9 END AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT ALL ( + COUNT( * ) ) * - NULLIF ( + 37, 15 ) col0
----
-37

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL ( + COUNT ( * ) ) * - NULLIF ( + 37, 15 ) col0
----
-37

query II rowsort
SELECT + 91 AS col2, - 67 * + + 67 AS col0
----
91
-4489

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT + - 22 * COUNT( * ) * 51
----
-1122

skipif mysql # not compatible
query I rowsort label-8675
SELECT + - 22 * COUNT ( * ) * 51
----
-1122

query I rowsort
SELECT + + ( - NULLIF ( - + 42, - 12 ) ) AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8677
SELECT ALL + - COUNT( * ) * - COUNT( * ) + - 65 + + 68 * + 43 + - - CAST( 37 AS SIGNED )
----
2897

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL + - COUNT ( * ) * - COUNT ( * ) + - 65 + + 68 * + 43 + - - CAST ( 37 AS INTEGER )
----
2897

query I rowsort
SELECT + 69 * - 63
----
-4347

query II rowsort
SELECT 90 AS col2, - 5
----
90
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT DISTINCT + 86 * + 36 + + 54 + + COUNT( + + 92 ) * 77 AS col1
----
3227

skipif mysql # not compatible
query I rowsort label-8680
SELECT DISTINCT + 86 * + 36 + + 54 + + COUNT ( + + 92 ) * 77 AS col1
----
3227

query I rowsort
SELECT ALL + 12 * + 50
----
600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8682
SELECT - 96 DIV - COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8682
SELECT - 96 / - COUNT ( * ) AS col0
----
96

query I rowsort
SELECT ALL - - 5 * - - 55 * + - ( + - 40 ) + 5 AS col2
----
11005

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT + + 96 * + - 33 + - MIN( - 44 )
----
-3124

skipif mysql # not compatible
query I rowsort label-8684
SELECT + + 96 * + - 33 + - MIN ( - 44 )
----
-3124

query II rowsort
SELECT + - 8, + 33 AS col0
----
-8
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8686
SELECT - 97 DIV 85
----
-1

skipif mysql # not compatible
query I rowsort label-8686
SELECT - 97 / 85
----
-1

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

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

query I rowsort
SELECT ALL 2 * - + 48 * 72 - + ( 90 ) + - 25
----
-7027

query I rowsort
SELECT DISTINCT + NULLIF ( 76, - + 53 ) col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8690
SELECT DISTINCT COUNT( * ) col2, - 22 col1
----
1
-22

skipif mysql # not compatible
query II rowsort label-8690
SELECT DISTINCT COUNT ( * ) col2, - 22 col1
----
1
-22

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8692
SELECT - COALESCE ( - 46, 65 + + COUNT( * ) ) + COUNT( * ) DIV + + COALESCE ( 1, 57 + + NULLIF ( COUNT( ALL + 54 ), + 60 + + 75 ) ) + 84 * - 30
----
-2473

skipif mysql # not compatible
query I rowsort label-8692
SELECT - COALESCE ( - 46, 65 + + COUNT ( * ) ) + COUNT ( * ) / + + COALESCE ( 1, 57 + + NULLIF ( COUNT ( ALL + 54 ), + 60 + + 75 ) ) + 84 * - 30
----
-2473

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT ALL NULLIF ( 31, - AVG ( + 34 ) - - + COUNT( * ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL NULLIF ( 31, - AVG ( + 34 ) - - + COUNT ( * ) ) AS col1
----
31

query I rowsort
SELECT - 78 + 92 - + 83 AS col2
----
-69

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8697
SELECT - CAST( + - 94 AS SIGNED ) * + + 55 + 95 AS col0, 18 AS col2
----
5265
18

skipif mysql # not compatible
query II rowsort label-8697
SELECT - CAST ( + - 94 AS INTEGER ) * + + 55 + 95 AS col0, 18 AS col2
----
5265
18

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

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

query I rowsort
SELECT DISTINCT CASE + ( + 30 ) WHEN 43 + + 31 THEN - 10 + + 88 END AS col2
----
NULL

query I rowsort
SELECT - 56 + - 31 AS col0
----
-87

query I rowsort
SELECT + - 37 * + 38 + + - 50 AS col2
----
-1456

query I rowsort
SELECT - - 26 - - + 77 * 32 AS col2
----
2490

query I rowsort
SELECT ALL - - 13 + - 63 AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8704
SELECT - + 51 DIV CASE + + COUNT( DISTINCT - - 65 ) WHEN 53 THEN COUNT( * ) ELSE 85 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8704
SELECT - + 51 / CASE + + COUNT ( DISTINCT - - 65 ) WHEN 53 THEN COUNT ( * ) ELSE 85 END AS col2
----
0

query II rowsort
SELECT - - 28 AS col1, + 65
----
28
65

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

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

query I rowsort
SELECT ALL 70 + 99 col0
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8708
SELECT ALL + 7 DIV - 14 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL + 7 / - 14 - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8709
SELECT ALL 21 DIV + MAX( DISTINCT + 78 ) + - - 58 * - 70
----
-4060

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL 21 / + MAX ( DISTINCT + 78 ) + - - 58 * - 70
----
-4060

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT DISTINCT + + SUM( ALL + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT + + SUM ( ALL + 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT ALL CASE - 3 WHEN - 19 THEN 20 - + 34 / + 65 ELSE NULL END * + COUNT( * ) + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL CASE - 3 WHEN - 19 THEN 20 - + 34 / + 65 ELSE NULL END * + COUNT ( * ) + - 21
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8712
SELECT + + 10 * + COUNT( * ) DIV - 95 col2
----
0

skipif mysql # not compatible
query I rowsort label-8712
SELECT + + 10 * + COUNT ( * ) / - 95 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8713
SELECT ALL + 96 DIV + 6 + + 94 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + 96 / + 6 + + 94 AS col2
----
110

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT + - MAX( DISTINCT 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-8715
SELECT + - MAX ( DISTINCT 41 ) AS col0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT - 25 * 9 + - - 40 + 9 DIV 19 DIV 82 * + 44 - - 5 + - 58 AS col0
----
-238

skipif mysql # not compatible
query I rowsort label-8716
SELECT - 25 * 9 + - - 40 + 9 / 19 / 82 * + 44 - - 5 + - 58 AS col0
----
-238

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT + 61 + - COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8718
SELECT + 61 + - COUNT ( * ) AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8719
SELECT DISTINCT 91 * + 74 * COUNT( * ) / - + CASE - - CAST( + + 75 AS SIGNED ) WHEN SUM( + - CAST( NULL AS SIGNED ) ) * - 37 * 75 + + - 79 THEN - - COUNT( * ) * - 38 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT 91 * + 74 * COUNT ( * ) / - + CASE - - CAST ( + + 75 AS INTEGER ) WHEN SUM ( + - CAST ( NULL AS INTEGER ) ) * - 37 * 75 + + - 79 THEN - - COUNT ( * ) * - 38 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8720
SELECT ALL - 74 DIV + 16 AS col1, + 50 AS col1
----
-4
50

skipif mysql # not compatible
query II rowsort label-8720
SELECT ALL - 74 / + 16 AS col1, + 50 AS col1
----
-4
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT 38 * - COUNT( * ) + MAX( - 42 )
----
-80

skipif mysql # not compatible
query I rowsort label-8721
SELECT 38 * - COUNT ( * ) + MAX ( - 42 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8722
SELECT CASE - 67 WHEN - 32 * + + 40 THEN + 18 WHEN - 47 + 83 + + 84 * + - 24 * + + ( + + CAST( 13 AS SIGNED ) ) + - COUNT( * ) THEN NULL WHEN - CAST( + 11 AS DECIMAL ) / - ( - MIN( + 97 ) ) + + CAST( COUNT( ALL - 40 ) AS SIGNED ) * - - 51 THEN NULL ELSE + MIN( ALL - 66 ) END AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8722
SELECT CASE - 67 WHEN - 32 * + + 40 THEN + 18 WHEN - 47 + 83 + + 84 * + - 24 * + + ( + + CAST ( 13 AS INTEGER ) ) + - COUNT ( * ) THEN NULL WHEN - CAST ( + 11 AS REAL ) / - ( - MIN ( + 97 ) ) + + CAST ( COUNT ( ALL - 40 ) AS INTEGER ) * - - 51 THEN NULL ELSE + MIN ( ALL - 66 ) END AS col2
----
-66

query I rowsort
SELECT CASE - - 81 WHEN 49 THEN - 37 / + 95 END AS col2
----
NULL

query I rowsort
SELECT CASE + + 64 WHEN 78 * + 64 THEN 96 WHEN 19 THEN NULL ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8726
SELECT - CAST( + 64 AS SIGNED ) + 80 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8726
SELECT - CAST ( + 64 AS INTEGER ) + 80 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8727
SELECT + CASE 4 WHEN CASE + ( - + 54 ) WHEN + + NULLIF ( CAST( + NULLIF ( SUM( ALL + 1 ), - + 24 * - 94 ) AS SIGNED ), - + 42 ) THEN 36 * + - 0 ELSE NULL END THEN NULL WHEN - 98 THEN - MAX( DISTINCT - - 21 ) END * 6 + - 68 * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT + CASE 4 WHEN CASE + ( - + 54 ) WHEN + + NULLIF ( CAST ( + NULLIF ( SUM ( ALL + 1 ), - + 24 * - 94 ) AS INTEGER ), - + 42 ) THEN 36 * + - 0 ELSE NULL END THEN NULL WHEN - 98 THEN - MAX ( DISTINCT - - 21 ) END * 6 + - 68 * 72
----
NULL

query I rowsort
SELECT DISTINCT + 84 * + 2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL + SUM( DISTINCT 3 ) + + COALESCE ( + 87, + + 1 + - + 32 * - - 21 * - 8, - 23 * + 8 )
----
90

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL + SUM ( DISTINCT 3 ) + + COALESCE ( + 87, + + 1 + - + 32 * - - 21 * - 8, - 23 * + 8 )
----
90

query I rowsort
SELECT ALL - 12 + + - 17 + 42 * + 19 AS col1
----
769

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT ALL - - 61 + + 51 * 31 + COUNT( * ) AS col1
----
1643

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL - - 61 + + 51 * 31 + COUNT ( * ) AS col1
----
1643

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT 91 + - ( - + ( - + 73 ) ) * + - MIN( + 48 ) + - 28
----
3567

skipif mysql # not compatible
query I rowsort label-8732
SELECT 91 + - ( - + ( - + 73 ) ) * + - MIN ( + 48 ) + - 28
----
3567

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT - 2 + COUNT( + 20 ) * - 91 * + 2 col0
----
-184

skipif mysql # not compatible
query I rowsort label-8733
SELECT - 2 + COUNT ( + 20 ) * - 91 * + 2 col0
----
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8734
SELECT 81 - - CASE - 29 WHEN - 28 - 63 * + 89 THEN NULL ELSE + - 28 * + COUNT( + 30 ) END * - + 67 + ( + 34 ) * CAST( NULL AS SIGNED ) * - 58 / + - 31 AS col0, - 93 * - COALESCE ( - + 91, ( + - MIN( ALL 96 ) ), 45 / + - 13 + - 46 / + + 32 ) + 12 + - - COUNT( * ) * + - 40 / + 44 - 67 - + 43 * 43 + + - 52 / - CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8734
SELECT 81 - - CASE - 29 WHEN - 28 - 63 * + 89 THEN NULL ELSE + - 28 * + COUNT ( + 30 ) END * - + 67 + ( + 34 ) * CAST ( NULL AS INTEGER ) * - 58 / + - 31 AS col0, - 93 * - COALESCE ( - + 91, ( + - MIN ( ALL 96 ) ), 45 / + - 13 + - 46 / + + 32 ) + 12 + - - COUNT ( * ) * + - 40 / + 44 - 67 - + 43 * 43 + + - 52 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8735
SELECT DISTINCT + - COUNT( * ) + 95 * + 60 + + - 26 + 57 * + - 27 * - 4 AS col2, 13 * - 71
----
11829
-923

skipif mysql # not compatible
query II rowsort label-8735
SELECT DISTINCT + - COUNT ( * ) + 95 * + 60 + + - 26 + 57 * + - 27 * - 4 AS col2, 13 * - 71
----
11829
-923

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT DISTINCT - 78 * + 34 * + 89 + - - COUNT( * ) AS col0
----
-236027

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT - 78 * + 34 * + 89 + - - COUNT ( * ) AS col0
----
-236027

query I rowsort
SELECT DISTINCT - + 19 + 98
----
79

query I rowsort
SELECT - ( + - 2 ) * - 18 * + + 23
----
-828

onlyif mysql # DIV for integer division: 
query I rowsort label-8739
SELECT ALL - COALESCE ( + + 56, - 78 - - + 37 ) * 69 DIV 50
----
-77

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL - COALESCE ( + + 56, - 78 - - + 37 ) * 69 / 50
----
-77

query I rowsort
SELECT + 51 + + + ( + + ( 68 ) ) + + 5 AS col2
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-8741
SELECT ALL - 34 - 62, - COUNT( * ) * - 69 * + 0 AS col1
----
-96
0

skipif mysql # not compatible
query II rowsort label-8741
SELECT ALL - 34 - 62, - COUNT ( * ) * - 69 * + 0 AS col1
----
-96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT ALL COALESCE ( - ( + MAX( DISTINCT 67 ) ), + COUNT( * ), 27 * - 83 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL COALESCE ( - ( + MAX ( DISTINCT 67 ) ), + COUNT ( * ), 27 * - 83 ) AS col2
----
-67

query I rowsort
SELECT + 9 * - - 13 AS col0
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-8744
SELECT CAST( + + 29 AS SIGNED ) DIV 12 + + CASE - 22 WHEN CAST( NULL AS DECIMAL ) THEN NULL ELSE + 96 END, 12 * ( + - COUNT( * ) ) * + ( + COUNT( * ) ) + + 87 AS col0
----
98
75

skipif mysql # not compatible
query II rowsort label-8744
SELECT CAST ( + + 29 AS INTEGER ) / 12 + + CASE - 22 WHEN CAST ( NULL AS REAL ) THEN NULL ELSE + 96 END, 12 * ( + - COUNT ( * ) ) * + ( + COUNT ( * ) ) + + 87 AS col0
----
98
75

query I rowsort
SELECT DISTINCT - + 10 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT + MAX( DISTINCT - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-8746
SELECT + MAX ( DISTINCT - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT 55 AS col0, COUNT( ALL + 23 )
----
55
1

skipif mysql # not compatible
query II rowsort label-8747
SELECT 55 AS col0, COUNT ( ALL + 23 )
----
55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT + 18 * ( + COUNT( * ) ) - 16
----
2

skipif mysql # not compatible
query I rowsort label-8748
SELECT + 18 * ( + COUNT ( * ) ) - 16
----
2

query I rowsort
SELECT 91 * - 16
----
-1456

onlyif mysql # aggregate syntax: 
query II rowsort label-8750
SELECT + 24 AS col1, - MAX( - 62 ) AS col1
----
24
62

skipif mysql # not compatible
query II rowsort label-8750
SELECT + 24 AS col1, - MAX ( - 62 ) AS col1
----
24
62

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8752
SELECT DISTINCT - 98 + - 50 DIV 87 * - - 58 * 58 + 15 AS col1, + 37 AS col0
----
-83
37

skipif mysql # not compatible
query II rowsort label-8752
SELECT DISTINCT - 98 + - 50 / 87 * - - 58 * 58 + 15 AS col1, + 37 AS col0
----
-83
37

query I rowsort
SELECT ALL + 43 + - ( + ( + ( + 36 ) ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT COUNT( DISTINCT 24 ) + + 21 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT COUNT ( DISTINCT 24 ) + + 21 AS col2
----
22

query I rowsort
SELECT DISTINCT 96 + + 97
----
193

onlyif mysql # aggregate syntax: 
query II rowsort label-8756
SELECT ALL - 23 col2, 22 + + COUNT( * )
----
-23
23

skipif mysql # not compatible
query II rowsort label-8756
SELECT ALL - 23 col2, 22 + + COUNT ( * )
----
-23
23

query I rowsort
SELECT ALL COALESCE ( + - 34, + 56 ) + - 78 + + + 65 * - + 36
----
-2452

query I rowsort
SELECT DISTINCT 78 + - 50 AS col0
----
28

query I rowsort
SELECT ALL 24 + 4 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL 83 + + NULLIF ( + - 76, MAX( - + 98 ) )
----
7

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL 83 + + NULLIF ( + - 76, MAX ( - + 98 ) )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8761
SELECT CAST( NULL AS SIGNED ) * + 97 + + COUNT( * ) + - + 68 / COUNT( DISTINCT - 93 ), 4 col0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-8761
SELECT CAST ( NULL AS INTEGER ) * + 97 + + COUNT ( * ) + - + 68 / COUNT ( DISTINCT - 93 ), 4 col0
----
NULL
4

query I rowsort
SELECT - 91 + + 37 AS col0
----
-54

query I rowsort
SELECT 65 * - 23 AS col0
----
-1495

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT ALL 30 * 76 * COUNT( * ) * - 18 + - COUNT( * ) + - + 81 * - ( - 32 )
----
-43633

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL 30 * 76 * COUNT ( * ) * - 18 + - COUNT ( * ) + - + 81 * - ( - 32 )
----
-43633

onlyif mysql # DIV for integer division: 
query I rowsort label-8765
SELECT ALL + ( + 3 ) DIV + - ( - 35 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL + ( + 3 ) / + - ( - 35 ) AS col1
----
0

query I rowsort
SELECT ALL 74 + - 81 * + 71 + - 57 AS col1
----
-5734

query II rowsort
SELECT ALL - 85 AS col0, 9 + - 22 * + 21
----
-85
-453

query I rowsort
SELECT DISTINCT 92 - + 15 AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8769
SELECT ALL + CAST( + 87 AS SIGNED ) * + 49, CASE + 33 WHEN COALESCE ( COUNT( * ), - 93 ) THEN NULL WHEN - COUNT( * ) * + - COUNT( * ) THEN - - AVG ( + - NULLIF ( - 89, 74 + - 70 ) ) END col0
----
4263
NULL

skipif mysql # not compatible
query II rowsort label-8769
SELECT ALL + CAST ( + 87 AS INTEGER ) * + 49, CASE + 33 WHEN COALESCE ( COUNT ( * ), - 93 ) THEN NULL WHEN - COUNT ( * ) * + - COUNT ( * ) THEN - - AVG ( + - NULLIF ( - 89, 74 + - 70 ) ) END col0
----
4263
NULL

query I rowsort
SELECT ALL - 5 * + ( 22 ) AS col0
----
-110

query I rowsort
SELECT 55 - + 91
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT - 7 * + ( 12 ) - - MIN( 47 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8772
SELECT - 7 * + ( 12 ) - - MIN ( 47 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-8773
SELECT DISTINCT - + 41 - 72 * - COUNT( * ) AS col0, 63 AS col2
----
31
63

skipif mysql # not compatible
query II rowsort label-8773
SELECT DISTINCT - + 41 - 72 * - COUNT ( * ) AS col0, 63 AS col2
----
31
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT MIN( DISTINCT - - 10 ) * + ( + + 99 ) + 65
----
1055

skipif mysql # not compatible
query I rowsort label-8774
SELECT MIN ( DISTINCT - - 10 ) * + ( + + 99 ) + 65
----
1055

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL + 83 * + MAX( DISTINCT 75 )
----
6225

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL + 83 * + MAX ( DISTINCT 75 )
----
6225

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT NULLIF ( - MIN( - ( 54 ) ), - AVG ( - - 94 ) * 36 ) * - 76 AS col2
----
-4104

skipif mysql # not compatible
query I rowsort label-8776
SELECT NULLIF ( - MIN ( - ( 54 ) ), - AVG ( - - 94 ) * 36 ) * - 76 AS col2
----
-4104

query I rowsort
SELECT 72 * - 36
----
-2592

query I rowsort
SELECT ALL + 74 * + 42
----
3108

query I rowsort
SELECT 43 + + 72
----
115

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8783
SELECT DISTINCT 1 * + - COUNT( * ) + CASE + 97 WHEN + 90 - + CAST( NULL AS DECIMAL ) THEN - 36 * - MIN( + + 34 ) - 63 - + + 87 + 55 WHEN 8 + + 2 * - NULLIF ( - 65, - 89 ) * + 62 + 70 + - - 0 THEN NULL END - - COALESCE ( - 54, CAST( NULL AS DECIMAL ) * + - CAST( 13 AS DECIMAL ), 53 ) + 36 * - + 67 + + 77 * 36 * + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT 1 * + - COUNT ( * ) + CASE + 97 WHEN + 90 - + CAST ( NULL AS REAL ) THEN - 36 * - MIN ( + + 34 ) - 63 - + + 87 + 55 WHEN 8 + + 2 * - NULLIF ( - 65, - 89 ) * + 62 + 70 + - - 0 THEN NULL END - - COALESCE ( - 54, CAST ( NULL AS REAL ) * + - CAST ( 13 AS REAL ), 53 ) + 36 * - + 67 + + 77 * 36 * + 74 AS col0
----
NULL

query I rowsort
SELECT ALL 70 * + 96 + + 0
----
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT + NULLIF ( - 36, - 9 + 17 - NULLIF ( - + COUNT( * ), + 58 ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT + NULLIF ( - 36, - 9 + 17 - NULLIF ( - + COUNT ( * ), + 58 ) ) AS col1
----
-36

query I rowsort
SELECT - ( - 95 ) + - ( + 58 ) * 5 + + - 38
----
-233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8787
SELECT ALL - 31 * - 9 * COUNT( * ) + + COUNT( * ) + + NULLIF ( - + CASE - 49 WHEN - 13 * - + 96 * 42 THEN + - MAX( - ( - - NULLIF ( + 30, 11 ) ) ) * + 39 WHEN - 38 THEN NULL END, 42 * - COALESCE ( 49, 94 + - 92 ) * 60 * + - 29 + CAST( 71 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL - 31 * - 9 * COUNT ( * ) + + COUNT ( * ) + + NULLIF ( - + CASE - 49 WHEN - 13 * - + 96 * 42 THEN + - MAX ( - ( - - NULLIF ( + 30, 11 ) ) ) * + 39 WHEN - 38 THEN NULL END, 42 * - COALESCE ( 49, 94 + - 92 ) * 60 * + - 29 + CAST ( 71 AS INTEGER ) )
----
NULL

query I rowsort
SELECT - ( + 68 ) + + + 19 AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8789
SELECT ALL + 39 DIV - 76 * - 16
----
0

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL + 39 / - 76 * - 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8790
SELECT 12 * CAST( 6 AS SIGNED ) + - + COALESCE ( + - COUNT( * ), 75 DIV - 31 ) + 46
----
119

skipif mysql # not compatible
query I rowsort label-8790
SELECT 12 * CAST ( 6 AS INTEGER ) + - + COALESCE ( + - COUNT ( * ), 75 / - 31 ) + 46
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-8791
SELECT MAX( + 2 ) AS col1, 23 - - 61 AS col2
----
2
84

skipif mysql # not compatible
query II rowsort label-8791
SELECT MAX ( + 2 ) AS col1, 23 - - 61 AS col2
----
2
84

query I rowsort
SELECT DISTINCT - 67 + 26 - + ( + - 77 ) * 92 AS col2
----
7043

query I rowsort
SELECT ALL + 12 + + 25
----
37

query II rowsort
SELECT + 77 + + + 38, - 74 AS col1
----
115
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8795
SELECT ALL - NULLIF ( + 5, + 24 ) + CAST( + - CAST( - 49 AS SIGNED ) AS SIGNED ) * + + 12
----
583

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL - NULLIF ( + 5, + 24 ) + CAST ( + - CAST ( - 49 AS INTEGER ) AS INTEGER ) * + + 12
----
583

onlyif mysql # aggregate syntax: 
query II rowsort label-8796
SELECT MIN( - 21 ), 75 + + - 99 + 93 * + 87 col1
----
-21
8067

skipif mysql # not compatible
query II rowsort label-8796
SELECT MIN ( - 21 ), 75 + + - 99 + 93 * + 87 col1
----
-21
8067

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT + 71 + - ( ( + COUNT( * ) ) ) + + 76 * + 86
----
6606

skipif mysql # not compatible
query I rowsort label-8797
SELECT + 71 + - ( ( + COUNT ( * ) ) ) + + 76 * + 86
----
6606

query I rowsort
SELECT ALL + NULLIF ( - 66, + NULLIF ( - 43, - ( 40 ) * + 28 + + 67 - 17 ) + + - 99 * - 62 * - + 62 ) - - - 68 col0
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT + - ( - 10 ) * - ( 73 ) * + 2 * 14 + 17 + + 14 + + + MAX( + 57 ) * + 12 AS col1
----
-19725

skipif mysql # not compatible
query I rowsort label-8799
SELECT + - ( - 10 ) * - ( 73 ) * + 2 * 14 + 17 + + 14 + + + MAX ( + 57 ) * + 12 AS col1
----
-19725

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT ALL + COUNT( * ) - NULLIF ( - COUNT( * ), 26 * - 5 * 19 + SUM( DISTINCT 19 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL + COUNT ( * ) - NULLIF ( - COUNT ( * ), 26 * - 5 * 19 + SUM ( DISTINCT 19 ) ) AS col1
----
2

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

skipif mysql # not compatible
query I rowsort label-8801
SELECT + COUNT ( * ) / - 96 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT + + 37 + + + 36 + + COUNT( * ) + COUNT( * ) * - 66 + 15 - 13 * - 34 AS col1
----
465

skipif mysql # not compatible
query I rowsort label-8802
SELECT + + 37 + + + 36 + + COUNT ( * ) + COUNT ( * ) * - 66 + 15 - 13 * - 34 AS col1
----
465

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT + 91 - + - 49 * - COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8803
SELECT + 91 - + - 49 * - COUNT ( * ) AS col1
----
42

query I rowsort
SELECT + - 62 + + + NULLIF ( ( - + 69 ), + 30 * - 76 )
----
-131

query I rowsort
SELECT + - 57 - - + 21
----
-36

query I rowsort
SELECT - - 99 * - ( - 95 ) AS col2
----
9405

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT - + NULLIF ( + 88, + MAX( ALL - 42 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-8807
SELECT - + NULLIF ( + 88, + MAX ( ALL - 42 ) )
----
-88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT + COUNT( * ) + + 86 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-8809
SELECT + COUNT ( * ) + + 86 AS col1
----
87

query I rowsort
SELECT DISTINCT 6 * - ( + 81 ) AS col0
----
-486

onlyif mysql # DIV for integer division: 
query II rowsort label-8811
SELECT DISTINCT + 74 * - - 26 AS col2, - 64 DIV 83 * - 71 + 97
----
1924
97

skipif mysql # not compatible
query II rowsort label-8811
SELECT DISTINCT + 74 * - - 26 AS col2, - 64 / 83 * - 71 + 97
----
1924
97

query I rowsort
SELECT DISTINCT - 99 + 9
----
-90

query I rowsort
SELECT ALL + 41 + 94 * + 1 + + - 27 AS col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8814
SELECT CAST( + - CASE - 58 WHEN - 91 THEN NULL WHEN COUNT( * ) * + - 7 - 24 THEN - 81 WHEN ( + - 88 ) + - 97 THEN NULL ELSE - 18 END AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-8814
SELECT CAST ( + - CASE - 58 WHEN - 91 THEN NULL WHEN COUNT ( * ) * + - 7 - 24 THEN - 81 WHEN ( + - 88 ) + - 97 THEN NULL ELSE - 18 END AS INTEGER )
----
18

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8817
SELECT CAST( NULL AS DECIMAL ) / ( + COUNT( * ) ) + - CASE COUNT( * ) WHEN + 4 THEN - 84 ELSE + 14 / + 11 END - + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8817
SELECT CAST ( NULL AS REAL ) / ( + COUNT ( * ) ) + - CASE COUNT ( * ) WHEN + 4 THEN - 84 ELSE + 14 / + 11 END - + 25 AS col0
----
NULL

query II rowsort
SELECT + 23 AS col0, + 59
----
23
59

query I rowsort
SELECT ALL 14 * - - 19
----
266

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8820
SELECT ( + ( + - 44 ) ), 80 + - 94 + - 35 * CAST( NULL AS SIGNED ) AS col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-8820
SELECT ( + ( + - 44 ) ), 80 + - 94 + - 35 * CAST ( NULL AS INTEGER ) AS col1
----
-44
NULL

query I rowsort
SELECT DISTINCT + 35 * + 99
----
3465

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

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

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

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

query I rowsort
SELECT - 59 * 60 AS col1
----
-3540

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT - + COUNT( * ) * + 10 + - COUNT( * ) - - 46 + + - 7 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8825
SELECT - + COUNT ( * ) * + 10 + - COUNT ( * ) - - 46 + + - 7 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT - 9 - - 24 * - COUNT( * ) * 57 + - - 25 + + - 60 - - COUNT( * ) + + ( + 52 ) col0
----
-1359

skipif mysql # not compatible
query I rowsort label-8826
SELECT - 9 - - 24 * - COUNT ( * ) * 57 + - - 25 + + - 60 - - COUNT ( * ) + + ( + 52 ) col0
----
-1359

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT - + COUNT( ALL 31 ) * + MAX( + + 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-8827
SELECT - + COUNT ( ALL 31 ) * + MAX ( + + 83 )
----
-83

query I rowsort
SELECT + + 77 * - - 48 AS col2
----
3696

query I rowsort
SELECT - - 8 + 46
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT - + MIN( 77 ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-8830
SELECT - + MIN ( 77 ) col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8831
SELECT ALL - CASE 69 WHEN + - NULLIF ( - + ( - + 49 ), 71 * 84 + + + NULLIF ( + 81, + + 78 ) ) + + 58 + - SUM( COALESCE ( - + 90, - - 44 * - 76 + - - CAST( + - 41 AS SIGNED ) ) ) THEN NULL WHEN 39 + ( - 23 ) + 72 + + COALESCE ( + - 95, 30 / - 7 + + 51 + + 60 ) * 90 - - 48 THEN - NULLIF ( - + 17, - 91 / + COUNT( * ) + - + MAX( DISTINCT + - 4 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL - CASE 69 WHEN + - NULLIF ( - + ( - + 49 ), 71 * 84 + + + NULLIF ( + 81, + + 78 ) ) + + 58 + - SUM ( COALESCE ( - + 90, - - 44 * - 76 + - - CAST ( + - 41 AS INTEGER ) ) ) THEN NULL WHEN 39 + ( - 23 ) + 72 + + COALESCE ( + - 95, 30 / - 7 + + 51 + + 60 ) * 90 - - 48 THEN - NULLIF ( - + 17, - 91 / + COUNT ( * ) + - + MAX ( DISTINCT + - 4 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT + ( CAST( + 33 AS SIGNED ) ) + 74 - + 39 * - + ( - 87 ) * - + 8 + + 60
----
27311

skipif mysql # not compatible
query I rowsort label-8832
SELECT + ( CAST ( + 33 AS INTEGER ) ) + 74 - + 39 * - + ( - 87 ) * - + 8 + + 60
----
27311

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT ALL + + 7 * 11 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL + + 7 * 11 / - 79
----
0

query I rowsort
SELECT - 98 * - 26 * 18 * - 41 - - - 46 - + - 71
----
-1880399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT DISTINCT + + CAST( + + CASE - 71 WHEN + + 94 + - + 60 + - 96 THEN + 97 + - + 30 WHEN 64 THEN NULL ELSE NULL END AS SIGNED ) * + 90 + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT + + CAST ( + + CASE - 71 WHEN + + 94 + - + 60 + - 96 THEN + 97 + - + 30 WHEN 64 THEN NULL ELSE NULL END AS INTEGER ) * + 90 + 28 AS col0
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 48 AS col2, - 54
----
-48
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT DISTINCT - COUNT( * ) + 71 * - 83 + + 89 + + + 66 + + 12 AS col0
----
-5727

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT - COUNT ( * ) + 71 * - 83 + + 89 + + + 66 + + 12 AS col0
----
-5727

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT ALL + + 82 + - - 6 * COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL + + 82 + - - 6 * COUNT ( * ) AS col1
----
88

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8841
SELECT ALL - 70 + + 83 * + - CAST( NULL AS SIGNED ) * + - 17 + + - 88 * 35 * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL - 70 + + 83 * + - CAST ( NULL AS INTEGER ) * + - 17 + + - 88 * 35 * - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT + - ( + - CASE + SUM( DISTINCT + 71 ) WHEN - + ( - 16 ) / 16 + 59 THEN NULL WHEN 99 THEN + 80 END ) / - ( + 30 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT + - ( + - CASE + SUM ( DISTINCT + 71 ) WHEN - + ( - 16 ) / 16 + 59 THEN NULL WHEN 99 THEN + 80 END ) / - ( + 30 ) AS col1
----
NULL

query II rowsort
SELECT - ( - 15 ) - + 89 AS col0, 71
----
-74
71

query I rowsort
SELECT + 70 * + - 93 * 2 AS col0
----
-13020

onlyif mysql # DIV for integer division: 
query I rowsort label-8845
SELECT DISTINCT ( 50 ) DIV - 31
----
-1

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT ( 50 ) / - 31
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT COUNT( 70 ) + 98 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8846
SELECT COUNT ( 70 ) + 98 AS col1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8847
SELECT ALL - 57 DIV - + COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL - 57 / - + COUNT ( * ) AS col0
----
57

query I rowsort
SELECT ALL 67 + + 3
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT 79 * COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT 79 * COUNT ( * ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT 90 * COUNT( * ) * - + ( - - 77 )
----
-6930

skipif mysql # not compatible
query I rowsort label-8850
SELECT 90 * COUNT ( * ) * - + ( - - 77 )
----
-6930

query I rowsort
SELECT ALL 14 * - CASE 97 WHEN - + 0 THEN 22 ELSE NULL END col2
----
NULL

query I rowsort
SELECT DISTINCT 73 + - + 86 AS col2
----
-13

query I rowsort
SELECT 68 * 62
----
4216

query II rowsort
SELECT 95 AS col2, + 92 + - + 51
----
95
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT CASE - CASE + 47 WHEN + NULLIF ( + 72, + - 19 ) THEN - MIN( ALL - 59 ) * - 95 / - 65 * - MAX( DISTINCT 49 ) / + 19 - - 75 WHEN - + 72 THEN 77 END WHEN - MIN( DISTINCT + + ( - 15 ) ) THEN - COUNT( * ) END + - + 58 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8856
SELECT CASE - CASE + 47 WHEN + NULLIF ( + 72, + - 19 ) THEN - MIN ( ALL - 59 ) * - 95 / - 65 * - MAX ( DISTINCT 49 ) / + 19 - - 75 WHEN - + 72 THEN 77 END WHEN - MIN ( DISTINCT + + ( - 15 ) ) THEN - COUNT ( * ) END + - + 58 col2
----
NULL

query II rowsort
SELECT + 29 AS col1, 39
----
29
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT - COUNT( * ) * + 68 - - + 24
----
-44

skipif mysql # not compatible
query I rowsort label-8858
SELECT - COUNT ( * ) * + 68 - - + 24
----
-44

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8860
SELECT ALL - COUNT( * ) - + - 81 AS col2, - 2 DIV - - 15 * - 80
----
80
0

skipif mysql # not compatible
query II rowsort label-8860
SELECT ALL - COUNT ( * ) - + - 81 AS col2, - 2 / - - 15 * - 80
----
80
0

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

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

query I rowsort
SELECT 22 + - - ( - - 96 ) + 66 * + + ( - + 15 ) * - - 73 + - - 52 * - 33 * 34 AS col1
----
-130496

query I rowsort
SELECT DISTINCT 59 * - 40 AS col1
----
-2360

query I rowsort
SELECT ALL + 92 - - 2 * 29
----
150

query I rowsort
SELECT 23 * - 73 * + 96 - + 7 + - 49
----
-161240

query I rowsort
SELECT ALL - ( 46 ) * + + 99
----
-4554

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT + 46 DIV + 77 col1
----
0

skipif mysql # not compatible
query I rowsort label-8867
SELECT + 46 / + 77 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8868
SELECT 73 * - COALESCE ( + 17, + 72, 10, 54 * + + 75 + 59 - CAST( - - 88 AS SIGNED ) ) * - + 1 AS col0, - 19 + + - ( + ( + 74 ) ) AS col2
----
1241
-93

skipif mysql # not compatible
query II rowsort label-8868
SELECT 73 * - COALESCE ( + 17, + 72, 10, 54 * + + 75 + 59 - CAST ( - - 88 AS INTEGER ) ) * - + 1 AS col0, - 19 + + - ( + ( + 74 ) ) AS col2
----
1241
-93

query I rowsort
SELECT ALL - - 35 * + 68 AS col2
----
2380

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

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

query I rowsort
SELECT - 68 + 46
----
-22

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

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL COUNT ( * ) * + + COUNT ( * ) / + 58
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8873
SELECT DISTINCT - - 34 + + + NULLIF ( + + ( - + 75 ), + COALESCE ( - 20, + COUNT( * ), + 93 * - + 45 * + 71 ) * - 29 + COUNT( * ) + + CASE - 15 WHEN + + 83 - + CAST( NULL AS DECIMAL ) THEN - 51 END + - 22 * + 83 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT - - 34 + + + NULLIF ( + + ( - + 75 ), + COALESCE ( - 20, + COUNT ( * ), + 93 * - + 45 * + 71 ) * - 29 + COUNT ( * ) + + CASE - 15 WHEN + + 83 - + CAST ( NULL AS REAL ) THEN - 51 END + - 22 * + 83 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query III rowsort label-8874
SELECT ALL COUNT( * ) AS col2, 64 * MAX( 47 ), COUNT( * ) AS col1
----
1
3008
1

skipif mysql # not compatible
query III rowsort label-8874
SELECT ALL COUNT ( * ) AS col2, 64 * MAX ( 47 ), COUNT ( * ) AS col1
----
1
3008
1

query II rowsort
SELECT 47, ( 52 ) AS col0
----
47
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT DISTINCT - COUNT( * ) + 10 * COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT - COUNT ( * ) + 10 * COUNT ( * )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8877
SELECT + 18 + 63 - + 57 + - COUNT( * ) * - CAST( NULL AS SIGNED ) * 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8877
SELECT + 18 + 63 - + 57 + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 53 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT - COALESCE ( + COUNT( * ), 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-8879
SELECT - COALESCE ( + COUNT ( * ), 46 )
----
-1

query I rowsort
SELECT ALL - + 92 + 42
----
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT - 84 + ( + - COALESCE ( 69, + 24 ) ) + + - SUM( DISTINCT 59 )
----
-212

skipif mysql # not compatible
query I rowsort label-8882
SELECT - 84 + ( + - COALESCE ( 69, + 24 ) ) + + - SUM ( DISTINCT 59 )
----
-212

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT COUNT( DISTINCT + 58 ) - + 99 + - + 52 * + 74
----
-3946

skipif mysql # not compatible
query I rowsort label-8883
SELECT COUNT ( DISTINCT + 58 ) - + 99 + - + 52 * + 74
----
-3946

query II rowsort
SELECT + 53, - 87 AS col1
----
53
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL + + 80 * + MAX( - 55 )
----
-4400

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL + + 80 * + MAX ( - 55 )
----
-4400

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT 1 + + MAX( + ( - 52 ) ) * + 70 col0
----
-3639

skipif mysql # not compatible
query I rowsort label-8886
SELECT 1 + + MAX ( + ( - 52 ) ) * + 70 col0
----
-3639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8887
SELECT - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + + + 73 - + + COALESCE ( 40, + COALESCE ( + CAST( 6 AS SIGNED ), - 27 * - 69 + - 25, + 15 ) * 90 ) * - 20 * - + MIN( - 3 ) / 29 * + - 64 + + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8887
SELECT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + + 73 - + + COALESCE ( 40, + COALESCE ( + CAST ( 6 AS INTEGER ), - 27 * - 69 + - 25, + 15 ) * 90 ) * - 20 * - + MIN ( - 3 ) / 29 * + - 64 + + - 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8888
SELECT ALL 68 + + + 10 + - CAST( - + 92 AS SIGNED ) * 61 * - CASE 68 WHEN COUNT( * ) + - ( + 13 ) THEN 57 ELSE - 34 END AS col0
----
190886

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL 68 + + + 10 + - CAST ( - + 92 AS INTEGER ) * 61 * - CASE 68 WHEN COUNT ( * ) + - ( + 13 ) THEN 57 ELSE - 34 END AS col0
----
190886

query I rowsort
SELECT DISTINCT + 98 + + - 79
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT MAX( - - 60 ) + + 54 + + + 12 AS col1
----
126

skipif mysql # not compatible
query I rowsort label-8890
SELECT MAX ( - - 60 ) + + 54 + + + 12 AS col1
----
126

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8891
SELECT ALL + 80 - NULLIF ( - ( - COUNT( * ) ), COUNT( * ) * CAST( - 13 AS DECIMAL ) + + 40 + + 23 + - - ( + 73 ) * + + 84 + ( + 27 ) + + 22 )
----
79

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL + 80 - NULLIF ( - ( - COUNT ( * ) ), COUNT ( * ) * CAST ( - 13 AS REAL ) + + 40 + + 23 + - - ( + 73 ) * + + 84 + ( + 27 ) + + 22 )
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8892
SELECT - CAST( NULL AS DECIMAL ) / - 95 + + + 95 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8892
SELECT - CAST ( NULL AS REAL ) / - 95 + + + 95 col2
----
NULL

query I rowsort
SELECT 25 * - - 4
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-8894
SELECT MAX( DISTINCT - - 2 ) AS col2, 63 * - COUNT( + + 6 ) + 35 * COUNT( DISTINCT + 26 ) + - + MIN( + 35 ) * 1 AS col2
----
2
-63

skipif mysql # not compatible
query II rowsort label-8894
SELECT MAX ( DISTINCT - - 2 ) AS col2, 63 * - COUNT ( + + 6 ) + 35 * COUNT ( DISTINCT + 26 ) + - + MIN ( + 35 ) * 1 AS col2
----
2
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-8895
SELECT 3 * - + 41 AS col0, - COUNT( * ) AS col2
----
-123
-1

skipif mysql # not compatible
query II rowsort label-8895
SELECT 3 * - + 41 AS col0, - COUNT ( * ) AS col2
----
-123
-1

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

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT - COUNT ( * ) / + + 72 AS col0
----
0

query I rowsort
SELECT ALL ( + 39 ) * 52
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT COALESCE ( + COALESCE ( 26, - 66 ), - SUM( 15 ) - - 17, - + 58 ) * + 58 AS col2
----
1508

skipif mysql # not compatible
query I rowsort label-8898
SELECT COALESCE ( + COALESCE ( 26, - 66 ), - SUM ( 15 ) - - 17, - + 58 ) * + 58 AS col2
----
1508

query II rowsort
SELECT 15 * - 39, - 22 AS col0
----
-585
-22

query II rowsort
SELECT ALL 24 * + 14 AS col2, 90 - - ( + + 8 )
----
336
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT COUNT( - 83 ) AS col2, + 89 * + 80 * 82
----
1
583840

skipif mysql # not compatible
query II rowsort label-8901
SELECT COUNT ( - 83 ) AS col2, + 89 * + 80 * 82
----
1
583840

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT ALL ( 93 ) * - MIN( DISTINCT + 39 )
----
-3627

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL ( 93 ) * - MIN ( DISTINCT + 39 )
----
-3627

query II rowsort
SELECT NULLIF ( - 26, - 57 ) * - 48 * + + 13 AS col2, 12
----
16224
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8904
SELECT 5 * - - 89 AS col0, COUNT( * )
----
445
1

skipif mysql # not compatible
query II rowsort label-8904
SELECT 5 * - - 89 AS col0, COUNT ( * )
----
445
1

query I rowsort
SELECT - - 71 * + 93 + - 63 - - 68 AS col1
----
6608

onlyif mysql # aggregate syntax: 
query II rowsort label-8906
SELECT 57 * + 3 AS col0, ( - + 46 ) - - MIN( + 52 ) AS col0
----
171
6

skipif mysql # not compatible
query II rowsort label-8906
SELECT 57 * + 3 AS col0, ( - + 46 ) - - MIN ( + 52 ) AS col0
----
171
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT CASE + MAX( + - ( 16 ) ) WHEN 73 THEN - COUNT( * ) WHEN 28 THEN NULL END * 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8907
SELECT CASE + MAX ( + - ( 16 ) ) WHEN 73 THEN - COUNT ( * ) WHEN 28 THEN NULL END * 16 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT ALL - 70 + 87 + + + 60 + - 96 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL - 70 + 87 + + + 60 + - 96 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - - 32 * + 58 * + + 13
----
24128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8910
SELECT ALL - 36 + - MIN( ALL - 89 ) - 63 * + 9 DIV - COUNT( * )
----
620

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL - 36 + - MIN ( ALL - 89 ) - 63 * + 9 / - COUNT ( * )
----
620

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

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL + 14 + - COUNT ( * ) AS col0
----
13

query I rowsort
SELECT ALL - - 57 + - 32 AS col2
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT + COUNT( ALL 49 ) + - ( 20 ) + - + 74
----
-93

skipif mysql # not compatible
query I rowsort label-8914
SELECT + COUNT ( ALL 49 ) + - ( 20 ) + - + 74
----
-93

query I rowsort
SELECT ALL 56 + - ( + 93 ) AS col2
----
-37

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

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

query I rowsort
SELECT - - 24 * - - 29 * + 9
----
6264

query I rowsort
SELECT DISTINCT - 66 - 37 + - COALESCE ( 96, 86 ) AS col1
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT DISTINCT + 11 - - ( + CASE 58 WHEN + 79 THEN NULL WHEN + 98 THEN + + COUNT( * ) + - CASE WHEN 93 NOT IN ( - 18 + 96, - 50 ) THEN + 60 END ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT + 11 - - ( + CASE 58 WHEN + 79 THEN NULL WHEN + 98 THEN + + COUNT ( * ) + - CASE WHEN 93 NOT IN ( - 18 + 96, - 50 ) THEN + 60 END ELSE NULL END ) AS col2
----
NULL

query II rowsort
SELECT ALL COALESCE ( - 35, + + 8 ) AS col2, 68
----
-35
68

query I rowsort
SELECT ALL - 48 - - 5 AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT ALL + COUNT( + 93 ) DIV - 35 * - + 81 * + 68
----
0

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL + COUNT ( + 93 ) / - 35 * - + 81 * + 68
----
0

query II rowsort
SELECT - 96 * - 21 * + 79, + 86 AS col1
----
159264
86

query I rowsort
SELECT ALL - 94 * - + 25
----
2350

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

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

query I rowsort
SELECT - 60 - - 27
----
-33

query I rowsort
SELECT ALL + ( + NULLIF ( 69, + - 72 ) )
----
69

query I rowsort
SELECT DISTINCT - COALESCE ( - 91, - 3 ) * + 70
----
6370

query I rowsort
SELECT - 0 + + 61 + + 57 * - 18
----
-965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8930
SELECT ALL + 85 * + 6 + - MAX( + + 30 ) + + 47 + - 23 * + - COALESCE ( - COUNT( * ), - COUNT( * ) * - - 67 + + - COUNT( * ) ) * - + 72 + CAST( + 56 AS SIGNED ) * - 24 AS col1
----
839

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL + 85 * + 6 + - MAX ( + + 30 ) + + 47 + - 23 * + - COALESCE ( - COUNT ( * ), - COUNT ( * ) * - - 67 + + - COUNT ( * ) ) * - + 72 + CAST ( + 56 AS INTEGER ) * - 24 AS col1
----
839

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8931
SELECT + + CAST( - 5 AS SIGNED ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8931
SELECT + + CAST ( - 5 AS INTEGER ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT DISTINCT + ( + 78 ) * ( - 62 ) * 64 + + + ( 21 ) - + + COUNT( DISTINCT - 22 ) * - 22 * - + 41 - + 11 * + + 61 - + ( + + 28 ) + 62
----
-311022

skipif mysql # not compatible
query I rowsort label-8932
SELECT DISTINCT + ( + 78 ) * ( - 62 ) * 64 + + + ( 21 ) - + + COUNT ( DISTINCT - 22 ) * - 22 * - + 41 - + 11 * + + 61 - + ( + + 28 ) + 62
----
-311022

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT DISTINCT 67 * COUNT( * ) + 27 + + 31 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT 67 * COUNT ( * ) + 27 + + 31 AS col0
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-8934
SELECT ALL + - 47, COUNT( ALL 15 ) AS col0
----
-47
1

skipif mysql # not compatible
query II rowsort label-8934
SELECT ALL + - 47, COUNT ( ALL 15 ) AS col0
----
-47
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8935
SELECT + CAST( NULL AS SIGNED ) * + - COUNT( * ) + + COALESCE ( 48, - COALESCE ( + 22, + 40 * - COALESCE ( 62, - MIN( ALL - 66 ) - 71 ) + + 76, - 66 ) * 28 - - 7 - + 91, 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + + COALESCE ( 48, - COALESCE ( + 22, + 40 * - COALESCE ( 62, - MIN ( ALL - 66 ) - 71 ) + + 76, - 66 ) * 28 - - 7 - + 91, 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL + 51 * + 5 + - + COUNT( * ) AS col0
----
254

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL + 51 * + 5 + - + COUNT ( * ) AS col0
----
254

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8937
SELECT 39 AS col2, COALESCE ( 16, - ( COUNT( * ) ) + + COALESCE ( - 36, - COUNT( * ), - + ( - + 0 ) + - - 57 ) + - 42 + + SUM( DISTINCT - - 38 ) * 70 * + + 99 DIV + + 90 ) * - 43
----
39
-688

skipif mysql # not compatible
query II rowsort label-8937
SELECT 39 AS col2, COALESCE ( 16, - ( COUNT ( * ) ) + + COALESCE ( - 36, - COUNT ( * ), - + ( - + 0 ) + - - 57 ) + - 42 + + SUM ( DISTINCT - - 38 ) * 70 * + + 99 / + + 90 ) * - 43
----
39
-688

query II rowsort
SELECT + + 5, 78 + + 98 * 15 col1
----
5
1548

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8939
SELECT ALL + + 83 col1, 84 DIV 71 + COUNT( * ) AS col0
----
83
2

skipif mysql # not compatible
query II rowsort label-8939
SELECT ALL + + 83 col1, 84 / 71 + COUNT ( * ) AS col0
----
83
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8940
SELECT DISTINCT + COUNT( * ) * 11 + + CAST( NULL AS SIGNED ) + - 15 + + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT + COUNT ( * ) * 11 + + CAST ( NULL AS INTEGER ) + - 15 + + 41 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 32, 73 AS col2
----
32
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8942
SELECT ALL COUNT( * ) * MAX( 25 ) - - + 40 - + MAX( + 24 ) + + 70 - + 48 DIV - 86 + + - 64
----
47

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL COUNT ( * ) * MAX ( 25 ) - - + 40 - + MAX ( + 24 ) + + 70 - + 48 / - 86 + + - 64
----
47

query II rowsort
SELECT - 88, 58 * - 42 AS col1
----
-88
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT + - COUNT( * ) * + 29 + + 11 - 38 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-8944
SELECT + - COUNT ( * ) * + 29 + + 11 - 38 AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8945
SELECT + COALESCE ( 65, - 2 + + CAST( - 75 AS SIGNED ) ) + - 41 * - + 91 * + COUNT( * )
----
3796

skipif mysql # not compatible
query I rowsort label-8945
SELECT + COALESCE ( 65, - 2 + + CAST ( - 75 AS INTEGER ) ) + - 41 * - + 91 * + COUNT ( * )
----
3796

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT - COALESCE ( + + 29, + + COUNT( * ) * + ( + 93 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-8946
SELECT - COALESCE ( + + 29, + + COUNT ( * ) * + ( + 93 ) )
----
-29

query I rowsort
SELECT - 3 + - ( - + 58 ) * - - 93
----
5391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8948
SELECT + 14 + + CAST( + - COALESCE ( COALESCE ( + 59, - 68, - 46 * - + 96 ), - 54 * + 21 ) AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8948
SELECT + 14 + + CAST ( + - COALESCE ( COALESCE ( + 59, - 68, - 46 * - + 96 ), - 54 * + 21 ) AS INTEGER ) AS col1
----
-45

query I rowsort
SELECT - 79 * 3 AS col1
----
-237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8950
SELECT ALL COALESCE ( 76, - - COALESCE ( + 60, + 97 + - + COALESCE ( + COUNT( * ), COUNT( DISTINCT + + 66 ) ) + + - 65 * - 25 DIV + 53 + + - 98 * - + ( 41 ) ) ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL COALESCE ( 76, - - COALESCE ( + 60, + 97 + - + COALESCE ( + COUNT ( * ), COUNT ( DISTINCT + + 66 ) ) + + - 65 * - 25 / + 53 + + - 98 * - + ( 41 ) ) ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8951
SELECT + 43 * - ( MIN( DISTINCT - 66 ) ) AS col2, + NULLIF ( - + 34, - - 56 * - 45 + 61 + + 89 )
----
2838
-34

skipif mysql # not compatible
query II rowsort label-8951
SELECT + 43 * - ( MIN ( DISTINCT - 66 ) ) AS col2, + NULLIF ( - + 34, - - 56 * - 45 + 61 + + 89 )
----
2838
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT ALL COUNT( * ) * - + 89 * 22
----
-1958

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL COUNT ( * ) * - + 89 * 22
----
-1958

query II rowsort
SELECT - 60 + + 30, + 80 col1
----
-30
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT DISTINCT + ( - 22 ) DIV 87 + 62 + + 28 + 92 AS col0
----
182

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT + ( - 22 ) / 87 + 62 + + 28 + 92 AS col0
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8955
SELECT ALL ( - - CAST( NULL AS SIGNED ) ), 21 + 23 AS col0
----
NULL
44

skipif mysql # not compatible
query II rowsort label-8955
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ), 21 + 23 AS col0
----
NULL
44

query I rowsort
SELECT - 37 + + - 86
----
-123

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

skipif mysql # not compatible
query I rowsort label-8957
SELECT + CAST ( NULL AS INTEGER ) * 99 * - 86
----
NULL

query I rowsort
SELECT - 13 + 60 * + 14
----
827

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8959
SELECT ALL COALESCE ( - 10, 41 DIV + 15, 51 * + CAST( - + 43 AS SIGNED ) + 63 * - + 79 DIV - + 32 )
----
-10

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL COALESCE ( - 10, 41 / + 15, 51 * + CAST ( - + 43 AS INTEGER ) + 63 * - + 79 / - + 32 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT + 83 * - - COUNT( ALL + - 46 ) col2
----
83

skipif mysql # not compatible
query I rowsort label-8960
SELECT + 83 * - - COUNT ( ALL + - 46 ) col2
----
83

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8962
SELECT DISTINCT - 97 DIV + 75 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT - 97 / + 75 + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + 28 * - 29
----
-812

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT DISTINCT + 48 DIV - - ( 84 ) + - 37
----
-37

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT + 48 / - - ( 84 ) + - 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT - 62 * + SUM( + + 40 ) * + - COUNT( ALL - - 14 ) + + NULLIF ( + COALESCE ( 47, + + 66 + - 11 ), - 51 * + + 97 / - + 97 + + - 1 + - 76 + - 52 + + 94 * 0 ) + + COUNT( - 13 ) * ( - + 21 ) + + + 38 col2
----
2544

skipif mysql # not compatible
query I rowsort label-8965
SELECT - 62 * + SUM ( + + 40 ) * + - COUNT ( ALL - - 14 ) + + NULLIF ( + COALESCE ( 47, + + 66 + - 11 ), - 51 * + + 97 / - + 97 + + - 1 + - 76 + - 52 + + 94 * 0 ) + + COUNT ( - 13 ) * ( - + 21 ) + + + 38 col2
----
2544

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT ALL + MIN( 20 ) * 35 + + 71 AS col2
----
771

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL + MIN ( 20 ) * 35 + + 71 AS col2
----
771

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT + 77 * + 87 + - SUM( DISTINCT 28 )
----
6671

skipif mysql # not compatible
query I rowsort label-8967
SELECT + 77 * + 87 + - SUM ( DISTINCT 28 )
----
6671

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL + 90 / - 45 + - COUNT( * ) + MAX( ALL - 67 ) + + 0 * + 5 + + + 11 * - + ( - CASE - + 83 WHEN - 59 THEN + 69 + - - 51 + - 63 * - COUNT( * ) END ) * - 10 - + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL + 90 / - 45 + - COUNT ( * ) + MAX ( ALL - 67 ) + + 0 * + 5 + + + 11 * - + ( - CASE - + 83 WHEN - 59 THEN + 69 + - - 51 + - 63 * - COUNT ( * ) END ) * - 10 - + - 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT ALL - - COUNT( ALL - 98 ) + 5 col0
----
6

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL - - COUNT ( ALL - 98 ) + 5 col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT + 55 + COUNT( * ) * - - 84 AS col0
----
139

skipif mysql # not compatible
query I rowsort label-8970
SELECT + 55 + COUNT ( * ) * - - 84 AS col0
----
139

query I rowsort
SELECT DISTINCT 4 * 31
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT - + COUNT( * ) - + 86 + + MAX( DISTINCT + 33 ) * - + 68 AS col0
----
-2331

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - + COUNT ( * ) - + 86 + + MAX ( DISTINCT + 33 ) * - + 68 AS col0
----
-2331

onlyif mysql # DIV for integer division: 
query I rowsort label-8973
SELECT ALL + COALESCE ( - - 5, 56 * + + 48 + ( - ( + 87 ) ) - + + 32 + - 22 DIV + + 50 * - 78, + 8 + - 81 + - 75 ) * + ( - - 42 ) * - 47 + + 56
----
-9814

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL + COALESCE ( - - 5, 56 * + + 48 + ( - ( + 87 ) ) - + + 32 + - 22 / + + 50 * - 78, + 8 + - 81 + - 75 ) * + ( - - 42 ) * - 47 + + 56
----
-9814

query I rowsort
SELECT + 31 * + 77
----
2387

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT - COUNT( * ) - + 93
----
-94

skipif mysql # not compatible
query I rowsort label-8975
SELECT - COUNT ( * ) - + 93
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8976
SELECT 81 DIV - 37 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8976
SELECT 81 / - 37 AS col1
----
-2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8978
SELECT MIN( DISTINCT - 28 ) + COUNT( * ), + COALESCE ( + 38, - ( - 51 ) * - CASE + + 78 WHEN + - 33 + + - 92 THEN + + ( + + 72 ) * 68 DIV - - 48 + + - ( - - 11 ) + + 36 + - 42 - - 29 DIV + ( + + MIN( + 34 ) ) WHEN + + 81 THEN - SUM( 61 ) END, - + 60 ) * + 42 + + - COALESCE ( + + 59, - COUNT( * ) + + 47 * - 94 - + 65 + + + 30 ) - - 26 AS col0
----
-27
1563

skipif mysql # not compatible
query II rowsort label-8978
SELECT MIN ( DISTINCT - 28 ) + COUNT ( * ), + COALESCE ( + 38, - ( - 51 ) * - CASE + + 78 WHEN + - 33 + + - 92 THEN + + ( + + 72 ) * 68 / - - 48 + + - ( - - 11 ) + + 36 + - 42 - - 29 / + ( + + MIN ( + 34 ) ) WHEN + + 81 THEN - SUM ( 61 ) END, - + 60 ) * + 42 + + - COALESCE ( + + 59, - COUNT ( * ) + + 47 * - 94 - + 65 + + + 30 ) - - 26 AS col0
----
-27
1563

onlyif mysql # aggregate syntax: 
query II rowsort label-8979
SELECT ALL 60 col0, + MIN( DISTINCT - 54 ) - + 14
----
60
-68

skipif mysql # not compatible
query II rowsort label-8979
SELECT ALL 60 col0, + MIN ( DISTINCT - 54 ) - + 14
----
60
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL + 21 * + SUM( ALL - - 10 )
----
210

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + 21 * + SUM ( ALL - - 10 )
----
210

onlyif mysql # aggregate syntax: 
query II rowsort label-8981
SELECT ALL ( ( 8 ) ) + - 54 - + COUNT( * ), 96 AS col0
----
-47
96

skipif mysql # not compatible
query II rowsort label-8981
SELECT ALL ( ( 8 ) ) + - 54 - + COUNT ( * ), 96 AS col0
----
-47
96

query I rowsort
SELECT 96 + + + 37 AS col2
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8983
SELECT COALESCE ( MIN( DISTINCT - + 4 ), - 37 ) DIV + 22 AS col0, CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8983
SELECT COALESCE ( MIN ( DISTINCT - + 4 ), - 37 ) / + 22 AS col0, CAST ( NULL AS INTEGER )
----
0
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8984
SELECT CAST( NULL AS DECIMAL ) * - ( + NULLIF ( - - 26, - 53 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT CAST ( NULL AS REAL ) * - ( + NULLIF ( - - 26, - 53 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8985
SELECT ALL ( - COALESCE ( 23, + 13 + + 48, - SUM( - 59 ) + 2, - 4 DIV 97 ) ) + 73 col1, + COUNT( * ) * - + 74 + - 65 AS col0
----
50
-139

skipif mysql # not compatible
query II rowsort label-8985
SELECT ALL ( - COALESCE ( 23, + 13 + + 48, - SUM ( - 59 ) + 2, - 4 / 97 ) ) + 73 col1, + COUNT ( * ) * - + 74 + - 65 AS col0
----
50
-139

query I rowsort
SELECT DISTINCT 1 + - 46
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-8987
SELECT ALL ( + COUNT( * ) ) + + 82, + 16 AS col1
----
83
16

skipif mysql # not compatible
query II rowsort label-8987
SELECT ALL ( + COUNT ( * ) ) + + 82, + 16 AS col1
----
83
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8988
SELECT DISTINCT + 14 + CASE + - COUNT( * ) WHEN - COUNT( * ) THEN - 65 + - ( - COUNT( * ) ) + - COUNT( * ) * + 39 * ( 32 ) * - - 41 WHEN + 87 DIV - 52 THEN NULL WHEN - COALESCE ( + MIN( - 90 ), - 85 + - - 95 ) * COALESCE ( + - 79, COUNT( * ) * - ( 17 ) ) * - COUNT( * ) + - ( - + 75 ) - CAST( - CAST( - 49 AS SIGNED ) AS SIGNED ) THEN 28 * CASE - MIN( 10 ) WHEN + + COUNT( * ) * + + 72 DIV - + 71 THEN COUNT( * ) WHEN - + ( 25 ) THEN ( 92 ) * - 66 * - - 84 ELSE - + 83 * - COUNT( * ) + 6 END - 96 DIV + 74 END AS col1
----
-51218

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT + 14 + CASE + - COUNT ( * ) WHEN - COUNT ( * ) THEN - 65 + - ( - COUNT ( * ) ) + - COUNT ( * ) * + 39 * ( 32 ) * - - 41 WHEN + 87 / - 52 THEN NULL WHEN - COALESCE ( + MIN ( - 90 ), - 85 + - - 95 ) * COALESCE ( + - 79, COUNT ( * ) * - ( 17 ) ) * - COUNT ( * ) + - ( - + 75 ) - CAST ( - CAST ( - 49 AS INTEGER ) AS INTEGER ) THEN 28 * CASE - MIN ( 10 ) WHEN + + COUNT ( * ) * + + 72 / - + 71 THEN COUNT ( * ) WHEN - + ( 25 ) THEN ( 92 ) * - 66 * - - 84 ELSE - + 83 * - COUNT ( * ) + 6 END - 96 / + 74 END AS col1
----
-51218

query I rowsort
SELECT ALL - + 25 + - 24
----
-49

query I rowsort
SELECT - 17 * ( - - 87 ) - 10 + - - 61 * + + 70 AS col2
----
2781

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8991
SELECT DISTINCT COUNT( * ) + + 65 DIV - 13
----
-4

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT COUNT ( * ) + + 65 / - 13
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8992
SELECT ( + 23 ) + + CAST( 95 AS SIGNED ) AS col0
----
118

skipif mysql # not compatible
query I rowsort label-8992
SELECT ( + 23 ) + + CAST ( 95 AS INTEGER ) AS col0
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8993
SELECT 42 * - 1 * COALESCE ( - 53, - 25 * - NULLIF ( CAST( - 21 AS SIGNED ), 49 ) DIV ( - 55 ) + + ( + 78 ) + + 75 + - + 32 * + + 25 + 2 * + + COUNT( ALL - 81 ) ) col0
----
2226

skipif mysql # not compatible
query I rowsort label-8993
SELECT 42 * - 1 * COALESCE ( - 53, - 25 * - NULLIF ( CAST ( - 21 AS INTEGER ), 49 ) / ( - 55 ) + + ( + 78 ) + + 75 + - + 32 * + + 25 + 2 * + + COUNT ( ALL - 81 ) ) col0
----
2226

onlyif mysql # aggregate syntax: 
query II rowsort label-8994
SELECT + COALESCE ( - + 23, COUNT( * ) ) AS col2, 75 AS col1
----
-23
75

skipif mysql # not compatible
query II rowsort label-8994
SELECT + COALESCE ( - + 23, COUNT ( * ) ) AS col2, 75 AS col1
----
-23
75

query I rowsort
SELECT - ( - - 99 ) - - - 15 col2
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT ALL 9 - - - 62 * ( - 23 ) DIV ( - + 43 ) * 56 AS col1
----
-1839

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL 9 - - - 62 * ( - 23 ) / ( - + 43 ) * 56 AS col1
----
-1839

query I rowsort
SELECT DISTINCT + + 71 * 84
----
5964

query I rowsort
SELECT ALL + + 54 * - 92 + - NULLIF ( + 75, + 60 + + + 78 ) AS col0
----
-5043

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8999
SELECT + 62 * CASE - 79 WHEN - MIN( DISTINCT + + 41 ) + + ( - 76 ) + 2 + + + 12 + + 53 / + 49 THEN NULL WHEN - 12 + + CAST( + + 19 AS SIGNED ) THEN - AVG ( 27 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT + 62 * CASE - 79 WHEN - MIN ( DISTINCT + + 41 ) + + ( - 76 ) + 2 + + + 12 + + 53 / + 49 THEN NULL WHEN - 12 + + CAST ( + + 19 AS INTEGER ) THEN - AVG ( 27 ) END
----
NULL

query I rowsort
SELECT ALL + 6 * 48 * - - ( 90 )
----
25920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9001
SELECT - 50 * + + COUNT( * ) + 59 DIV NULLIF ( + - 15, - + CAST( 42 AS SIGNED ) DIV - ( + 23 ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-9001
SELECT - 50 * + + COUNT ( * ) + 59 / NULLIF ( + - 15, - + CAST ( 42 AS INTEGER ) / - ( + 23 ) ) AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9002
SELECT DISTINCT + + COUNT( - 25 ) * - MIN( ALL + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT + + COUNT ( - 25 ) * - MIN ( ALL + CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT - + COUNT( - - 91 ) * COUNT( DISTINCT + 50 ) + + 58 + 90 - + COUNT( * ) * + + 1 + - 35 col0
----
111

skipif mysql # not compatible
query I rowsort label-9003
SELECT - + COUNT ( - - 91 ) * COUNT ( DISTINCT + 50 ) + + 58 + 90 - + COUNT ( * ) * + + 1 + - 35 col0
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-9004
SELECT COALESCE ( + 17, - + ( - 50 ) * + + 85 + - - COUNT( * ) ) AS col1, 41 * - 49 + - + 84 - - 18 * + ( + 55 ) AS col1
----
17
-1103

skipif mysql # not compatible
query II rowsort label-9004
SELECT COALESCE ( + 17, - + ( - 50 ) * + + 85 + - - COUNT ( * ) ) AS col1, 41 * - 49 + - + 84 - - 18 * + ( + 55 ) AS col1
----
17
-1103

onlyif mysql # DIV for integer division: 
query I rowsort label-9005
SELECT 87 + 29 DIV 54 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-9005
SELECT 87 + 29 / 54 AS col1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9006
SELECT 96 + 81 + 13 + 70 + - - 0 * + 2 DIV 93 AS col1
----
260

skipif mysql # not compatible
query I rowsort label-9006
SELECT 96 + 81 + 13 + 70 + - - 0 * + 2 / 93 AS col1
----
260

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

query I rowsort
SELECT ALL 14 * 41 col2
----
574

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT ALL - 63 DIV + - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL - 63 / + - 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT ALL SUM( + CASE 49 WHEN - 26 + 61 THEN NULL WHEN + 12 THEN 28 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL SUM ( + CASE 49 WHEN - 26 + 61 THEN NULL WHEN + 12 THEN 28 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9011
SELECT 96 * COUNT( * ), MIN( - + 65 ) * - - 95 - - CAST( NULL AS SIGNED ) AS col2
----
96
NULL

skipif mysql # not compatible
query II rowsort label-9011
SELECT 96 * COUNT ( * ), MIN ( - + 65 ) * - - 95 - - CAST ( NULL AS INTEGER ) AS col2
----
96
NULL

query I rowsort
SELECT ALL + 90 + + 49
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL 95 + COUNT( - 19 ) col0
----
96

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL 95 + COUNT ( - 19 ) col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT - MIN( ALL + 57 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-9014
SELECT - MIN ( ALL + 57 ) AS col0
----
-57

query I rowsort
SELECT ( + - 7 ) + 93 AS col1
----
86

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

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

query I rowsort
SELECT DISTINCT + 73 + 51 AS col0
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-9018
SELECT DISTINCT 41, - 65 + COUNT( * ) * - 12 * 7 AS col0
----
41
-149

skipif mysql # not compatible
query II rowsort label-9018
SELECT DISTINCT 41, - 65 + COUNT ( * ) * - 12 * 7 AS col0
----
41
-149

onlyif mysql # aggregate syntax: 
query II rowsort label-9019
SELECT ALL 42 + + + 29 AS col2, COUNT( DISTINCT + + 14 ) AS col1
----
71
1

skipif mysql # not compatible
query II rowsort label-9019
SELECT ALL 42 + + + 29 AS col2, COUNT ( DISTINCT + + 14 ) AS col1
----
71
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9020
SELECT ( 53 ) + - COUNT( * ) DIV - - 19 AS col1, 95 AS col2
----
53
95

skipif mysql # not compatible
query II rowsort label-9020
SELECT ( 53 ) + - COUNT ( * ) / - - 19 AS col1, 95 AS col2
----
53
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT MAX( + - 60 ) + + - 49 AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-9021
SELECT MAX ( + - 60 ) + + - 49 AS col1
----
-109

query I rowsort
SELECT ALL - NULLIF ( + - 93, + + 90 ) AS col2
----
93

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9024
SELECT + COUNT( * ) + - 46 * 12 DIV - 29
----
20

skipif mysql # not compatible
query I rowsort label-9024
SELECT + COUNT ( * ) + - 46 * 12 / - 29
----
20

query I rowsort
SELECT ALL 13 - + - 24 * - 15 AS col2
----
-347

query I rowsort
SELECT - 83 * + + 82
----
-6806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9027
SELECT ALL + 24, MIN( + 73 ) DIV + CAST( + - 89 AS SIGNED ) + - 51 AS col1
----
24
-51

skipif mysql # not compatible
query II rowsort label-9027
SELECT ALL + 24, MIN ( + 73 ) / + CAST ( + - 89 AS INTEGER ) + - 51 AS col1
----
24
-51

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

query I rowsort
SELECT + 37 * - + 90 * + 51
----
-169830

onlyif mysql # DIV for integer division: 
query I rowsort label-9030
SELECT + + 40 DIV - 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9030
SELECT + + 40 / - 91 AS col1
----
0

query I rowsort
SELECT ALL + + NULLIF ( - 20, + + 24 )
----
-20

query II rowsort
SELECT - ( 72 ) AS col0, 42 + + - 54 col2
----
-72
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT 96 * - COUNT( * ) + - 87
----
-183

skipif mysql # not compatible
query I rowsort label-9033
SELECT 96 * - COUNT ( * ) + - 87
----
-183

onlyif mysql # DIV for integer division: 
query II rowsort label-9034
SELECT ALL COALESCE ( + 33, 44 ) DIV - 62, ( + 12 ) AS col2
----
0
12

skipif mysql # not compatible
query II rowsort label-9034
SELECT ALL COALESCE ( + 33, 44 ) / - 62, ( + 12 ) AS col2
----
0
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9035
SELECT + 13 DIV - - 11
----
1

skipif mysql # not compatible
query I rowsort label-9035
SELECT + 13 / - - 11
----
1

query II rowsort
SELECT ALL + 18 AS col1, 26 * + 78 AS col2
----
18
2028

query I rowsort
SELECT + 40 - + ( + + 93 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query III rowsort label-9038
SELECT ALL + 95 AS col2, ( + 98 ) - + 62 col0, - ( 94 ) * COUNT( * ) col1
----
95
36
-94

skipif mysql # not compatible
query III rowsort label-9038
SELECT ALL + 95 AS col2, ( + 98 ) - + 62 col0, - ( 94 ) * COUNT ( * ) col1
----
95
36
-94

query I rowsort
SELECT - 37 * + 35 + + 96 AS col1
----
-1199

query I rowsort
SELECT - 44 * 13 * 23 AS col1
----
-13156

query I rowsort
SELECT ALL + 85 * - + 27 + - 20 * - + 84 + NULLIF ( - 54, 4 ) AS col2
----
-669

query I rowsort
SELECT ALL + CASE - 91 WHEN 93 - + 96 THEN + - 25 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9043
SELECT - 96 - + - ( + + NULLIF ( + 23, - CAST( - 98 AS SIGNED ) ) ) - + 97 + 97
----
-73

skipif mysql # not compatible
query I rowsort label-9043
SELECT - 96 - + - ( + + NULLIF ( + 23, - CAST ( - 98 AS INTEGER ) ) ) - + 97 + 97
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9044
SELECT - 14 * - COUNT( * ) DIV + 22 * - - 38
----
0

skipif mysql # not compatible
query I rowsort label-9044
SELECT - 14 * - COUNT ( * ) / + 22 * - - 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT ALL - 8 * + 12 + + 32 * - COUNT( * ) + + 42 * + SUM( + 0 ) AS col1
----
-128

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL - 8 * + 12 + + 32 * - COUNT ( * ) + + 42 * + SUM ( + 0 ) AS col1
----
-128

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT DISTINCT CASE + + SUM( ALL 85 ) WHEN 68 * 34 + - ( 32 ) THEN + 8 WHEN - 89 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT CASE + + SUM ( ALL 85 ) WHEN 68 * 34 + - ( 32 ) THEN + 8 WHEN - 89 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL COALESCE ( - - 26, + ( + 87 ) + - - COALESCE ( + COUNT( * ), + CASE - 36 WHEN - 67 THEN - - 83 - - 41 WHEN ( - 98 ) - - - COUNT( DISTINCT - - COALESCE ( + 83, 84 + + - 44 * - + 67 ) ) + + + 77 THEN - + ( - - COUNT( * ) ) * + - 62 ELSE NULL END ) ) col2
----
26

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL COALESCE ( - - 26, + ( + 87 ) + - - COALESCE ( + COUNT ( * ), + CASE - 36 WHEN - 67 THEN - - 83 - - 41 WHEN ( - 98 ) - - - COUNT ( DISTINCT - - COALESCE ( + 83, 84 + + - 44 * - + 67 ) ) + + + 77 THEN - + ( - - COUNT ( * ) ) * + - 62 ELSE NULL END ) ) col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9049
SELECT - 84 * + MAX( DISTINCT - 91 ), - 3 AS col0
----
7644
-3

skipif mysql # not compatible
query II rowsort label-9049
SELECT - 84 * + MAX ( DISTINCT - 91 ), - 3 AS col0
----
7644
-3

query I rowsort
SELECT DISTINCT - 14 + 52
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9051
SELECT ALL + 59 + - 64 DIV 86 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL + 59 + - 64 / 86 AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9052
SELECT ALL - 96 + - 27 + COUNT( * ) + - 29 + - 0 * - 61 * - - 44 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL - 96 + - 27 + COUNT ( * ) + - 29 + - 0 * - 61 * - - 44 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 59 * - NULLIF ( + 93, 75 )
----
-5487

query I rowsort
SELECT - 94 + 42 + + 19
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9055
SELECT ALL - 96 - + NULLIF ( + - 95, COUNT( ALL + CAST( NULL AS SIGNED ) ) ) - 55
----
-56

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL - 96 - + NULLIF ( + - 95, COUNT ( ALL + CAST ( NULL AS INTEGER ) ) ) - 55
----
-56

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT + + 30 DIV - ( - + 64 ) * - 89 * 86
----
0

skipif mysql # not compatible
query I rowsort label-9058
SELECT + + 30 / - ( - + 64 ) * - 89 * 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT - - 61 + - SUM( 52 ) + - 3 * 36 * - 68 + + COUNT( * )
----
7354

skipif mysql # not compatible
query I rowsort label-9059
SELECT - - 61 + - SUM ( 52 ) + - 3 * 36 * - 68 + + COUNT ( * )
----
7354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9060
SELECT + COUNT( * ) * COUNT( * ) + 37 * COUNT( * ) * - COUNT( * ) DIV - 42 * - - ( + + 80 ) * + 40 DIV - - ( 35 ) - + COUNT( * ) - - 82 - + 76 + 99 - COUNT( DISTINCT - ( + - 13 ) )
----
104

skipif mysql # not compatible
query I rowsort label-9060
SELECT + COUNT ( * ) * COUNT ( * ) + 37 * COUNT ( * ) * - COUNT ( * ) / - 42 * - - ( + + 80 ) * + 40 / - - ( 35 ) - + COUNT ( * ) - - 82 - + 76 + 99 - COUNT ( DISTINCT - ( + - 13 ) )
----
104

query I rowsort
SELECT + - 11 * - + 23 + + 85
----
338

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9062
SELECT + COALESCE ( - 51, + 78 * 10 + 41 * - 50 * + 36 + - - 68 DIV - 37 * - 62 DIV 6 + 67, 25 - COALESCE ( - COUNT( * ), + 73 * 3 + + 2, - 25 ) * COALESCE ( - 25, + - ( - 70 ) ) * - - 69 )
----
-51

skipif mysql # not compatible
query I rowsort label-9062
SELECT + COALESCE ( - 51, + 78 * 10 + 41 * - 50 * + 36 + - - 68 / - 37 * - 62 / 6 + 67, 25 - COALESCE ( - COUNT ( * ), + 73 * 3 + + 2, - 25 ) * COALESCE ( - 25, + - ( - 70 ) ) * - - 69 )
----
-51

query I rowsort
SELECT + 71 + + 22 * + - 83 AS col0
----
-1755

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT - 78 * - MAX( - 76 ) + + - 3 AS col1
----
-5931

skipif mysql # not compatible
query I rowsort label-9064
SELECT - 78 * - MAX ( - 76 ) + + - 3 AS col1
----
-5931

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

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

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

query I rowsort
SELECT + + 84 + + 41
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9068
SELECT DISTINCT + 83 AS col2, COALESCE ( - COUNT( * ), CAST( NULL AS SIGNED ), - MAX( - 8 ) )
----
83
-1

skipif mysql # not compatible
query II rowsort label-9068
SELECT DISTINCT + 83 AS col2, COALESCE ( - COUNT ( * ), CAST ( NULL AS INTEGER ), - MAX ( - 8 ) )
----
83
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9069
SELECT ALL - 92 * - - CAST( NULL AS DECIMAL ) + 97, - 40 * 12 AS col1
----
NULL
-480

skipif mysql # not compatible
query II rowsort label-9069
SELECT ALL - 92 * - - CAST ( NULL AS REAL ) + 97, - 40 * 12 AS col1
----
NULL
-480

query I rowsort
SELECT + CASE 5 WHEN - - 44 * - 84 * + 25 THEN - 30 * - 39 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9071
SELECT + 14 DIV + + 64
----
0

skipif mysql # not compatible
query I rowsort label-9071
SELECT + 14 / + + 64
----
0

query I rowsort
SELECT + 61 * + 63
----
3843

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT COALESCE ( - 64, COUNT( * ) )
----
-64

skipif mysql # not compatible
query I rowsort label-9073
SELECT COALESCE ( - 64, COUNT ( * ) )
----
-64

query I rowsort
SELECT + 54 + 80
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT DISTINCT 20 * 82 * CASE 17 WHEN 21 THEN NULL ELSE - - 5 END * + - 89 + 72 * - COUNT( * ) * 20
----
-731240

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT 20 * 82 * CASE 17 WHEN 21 THEN NULL ELSE - - 5 END * + - 89 + 72 * - COUNT ( * ) * 20
----
-731240

query I rowsort
SELECT ALL ( - 57 ) AS col0
----
-57

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

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

query I rowsort
SELECT ALL 94 * - 10 - + 24 AS col1
----
-964

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT NULLIF ( + + 78, + 2 * CASE + 13 WHEN + 23 + SUM( 93 ) * - - 65 * ( - ( NULLIF ( - MIN( DISTINCT - + 35 ), + 18 ) ) ) + - 38 * ( - 44 ) / - + ( - - 61 ) * + 32 * 10 / - - 12 + + 26 THEN + - 91 WHEN + + 24 / 88 + + 80 / + 16 + - + 6 + 22 + + 29 * + ( + - COUNT( * ) ) THEN - + 93 END ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9079
SELECT NULLIF ( + + 78, + 2 * CASE + 13 WHEN + 23 + SUM ( 93 ) * - - 65 * ( - ( NULLIF ( - MIN ( DISTINCT - + 35 ), + 18 ) ) ) + - 38 * ( - 44 ) / - + ( - - 61 ) * + 32 * 10 / - - 12 + + 26 THEN + - 91 WHEN + + 24 / 88 + + 80 / + 16 + - + 6 + 22 + + 29 * + ( + - COUNT ( * ) ) THEN - + 93 END ) AS col2
----
78

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

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

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

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

query II rowsort
SELECT 98, 22 AS col0
----
98
22

query II rowsort
SELECT ALL 23 AS col1, - 50
----
23
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9084
SELECT - CAST( NULL AS SIGNED ), COUNT( * ) DIV + 4 col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9084
SELECT - CAST ( NULL AS INTEGER ), COUNT ( * ) / + 4 col1
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9085
SELECT 89 DIV COUNT( * ) DIV + 12, 5 * 31 * + 80 AS col0
----
7
12400

skipif mysql # not compatible
query II rowsort label-9085
SELECT 89 / COUNT ( * ) / + 12, 5 * 31 * + 80 AS col0
----
7
12400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9086
SELECT ALL + - COUNT( * ) DIV 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL + - COUNT ( * ) / 97 AS col2
----
0

query I rowsort
SELECT ALL 59 * - 66 * + - 3
----
11682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9088
SELECT ALL + ( - CAST( COALESCE ( - - 58, - ( 21 ), 62 * COUNT( - 3 ) + + 55 + + 88 - + - 65 * 89 + + + ( 84 ) * 67 ) AS SIGNED ) ) * - 8 * - - 82 * COUNT( * ) AS col2, - 87 * + 8 - - 30
----
38048
-666

skipif mysql # not compatible
query II rowsort label-9088
SELECT ALL + ( - CAST ( COALESCE ( - - 58, - ( 21 ), 62 * COUNT ( - 3 ) + + 55 + + 88 - + - 65 * 89 + + + ( 84 ) * 67 ) AS INTEGER ) ) * - 8 * - - 82 * COUNT ( * ) AS col2, - 87 * + 8 - - 30
----
38048
-666

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT 7 DIV - - NULLIF ( - ( 86 ), + 54 * - - 82 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9089
SELECT 7 / - - NULLIF ( - ( 86 ), + 54 * - - 82 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9090
SELECT - + 22 AS col1, + 79 * + CASE - + 96 WHEN - - ( - 43 ) THEN 58 WHEN + 26 THEN - + 22 WHEN 92 THEN COALESCE ( 0, 68 ) ELSE 79 END + - COALESCE ( ( - 24 ), - - COUNT( * ) * 66 + - + 1 ) * - + 37
----
-22
5353

skipif mysql # not compatible
query II rowsort label-9090
SELECT - + 22 AS col1, + 79 * + CASE - + 96 WHEN - - ( - 43 ) THEN 58 WHEN + 26 THEN - + 22 WHEN 92 THEN COALESCE ( 0, 68 ) ELSE 79 END + - COALESCE ( ( - 24 ), - - COUNT ( * ) * 66 + - + 1 ) * - + 37
----
-22
5353

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT ALL - NULLIF ( - ( + 36 ), + 63 * - - CAST( NULL AS SIGNED ) - - 30 + - 61 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL - NULLIF ( - ( + 36 ), + 63 * - - CAST ( NULL AS INTEGER ) - - 30 + - 61 ) AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9092
SELECT DISTINCT + - 72 * - NULLIF ( + + 43, + 98 + + NULLIF ( - 89, + 37 ) - + CAST( 21 AS SIGNED ) + - SUM( + 44 ) + - ( + - 66 ) * - - CAST( NULL AS SIGNED ) ) AS col2, - ( 28 )
----
3096
-28

skipif mysql # not compatible
query II rowsort label-9092
SELECT DISTINCT + - 72 * - NULLIF ( + + 43, + 98 + + NULLIF ( - 89, + 37 ) - + CAST ( 21 AS INTEGER ) + - SUM ( + 44 ) + - ( + - 66 ) * - - CAST ( NULL AS INTEGER ) ) AS col2, - ( 28 )
----
3096
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9093
SELECT 69 DIV + 87 + COUNT( DISTINCT + + 43 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9093
SELECT 69 / + 87 + COUNT ( DISTINCT + + 43 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT + 55 * + - 49 * SUM( ALL + - ( 6 ) ) AS col1
----
16170

skipif mysql # not compatible
query I rowsort label-9094
SELECT + 55 * + - 49 * SUM ( ALL + - ( 6 ) ) AS col1
----
16170

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT - + COALESCE ( - - ( + + COUNT( * ) ), + - 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-9095
SELECT - + COALESCE ( - - ( + + COUNT ( * ) ), + - 5 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9096
SELECT SUM( DISTINCT - 0 ) * ( - 3 ) col2, - 81 - + MAX( + ( - 93 ) )
----
0
12

skipif mysql # not compatible
query II rowsort label-9096
SELECT SUM ( DISTINCT - 0 ) * ( - 3 ) col2, - 81 - + MAX ( + ( - 93 ) )
----
0
12

query I rowsort
SELECT ALL - ( + 48 ) + 23 AS col2
----
-25

query I rowsort
SELECT DISTINCT + 25 * + ( + - 50 )
----
-1250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9099
SELECT + COUNT( * ) / - 52 + COUNT( * ) + - 55 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9099
SELECT + COUNT ( * ) / - 52 + COUNT ( * ) + - 55 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( + NULLIF ( + 16, 43 ) ) AS col2
----
-16

query I rowsort
SELECT ALL - 33 + 19
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ALL - COUNT( - + 37 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL - COUNT ( - + 37 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9103
SELECT 31 DIV - 54 + - - 42 * - 78 + CAST( 27 AS SIGNED )
----
-3249

skipif mysql # not compatible
query I rowsort label-9103
SELECT 31 / - 54 + - - 42 * - 78 + CAST ( 27 AS INTEGER )
----
-3249

onlyif mysql # aggregate syntax: 
query II rowsort label-9104
SELECT COUNT( * ) * + - 0 * + - 12 * - 72 AS col2, COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-9104
SELECT COUNT ( * ) * + - 0 * + - 12 * - 72 AS col2, COUNT ( * ) AS col1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT ALL MIN( ALL + + 32 ) + - ( + + 6 ) + + 95 * + 84 + + + COUNT( * )
----
8007

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL MIN ( ALL + + 32 ) + - ( + + 6 ) + + 95 * + 84 + + + COUNT ( * )
----
8007

query I rowsort
SELECT ALL ( 51 ) * - - 68 * + 22 * ( - - 50 )
----
3814800

query I rowsort
SELECT ( + - 35 ) * - - 95 col2
----
-3325

query I rowsort
SELECT 24 + 92 col2
----
116

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9109
SELECT CAST( - 55 AS SIGNED ) + + 30 + - - ( + + 81 ) DIV - 10
----
-33

skipif mysql # not compatible
query I rowsort label-9109
SELECT CAST ( - 55 AS INTEGER ) + + 30 + - - ( + + 81 ) / - 10
----
-33

query I rowsort
SELECT ALL 65 - + 80 * + 8 * - NULLIF ( + 85, - 9 ) AS col1
----
54465

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT MIN( DISTINCT 30 ) * 46 * + COUNT( * ) col0
----
1380

skipif mysql # not compatible
query I rowsort label-9111
SELECT MIN ( DISTINCT 30 ) * 46 * + COUNT ( * ) col0
----
1380

query I rowsort
SELECT DISTINCT 18 * + 24 * + 28
----
12096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9113
SELECT 65 * - + CAST( 3 AS SIGNED ) + - CAST( NULL AS SIGNED ) + + AVG ( + 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT 65 * - + CAST ( 3 AS INTEGER ) + - CAST ( NULL AS INTEGER ) + + AVG ( + 1 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9114
SELECT ALL - + 74 * 99 * - + 8 * 78 DIV + + COUNT( ALL 26 ) + + 12 * - - 84 col0
----
4572432

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL - + 74 * 99 * - + 8 * 78 / + + COUNT ( ALL 26 ) + + 12 * - - 84 col0
----
4572432

query I rowsort
SELECT ALL + + 12 * - 81 + - 66
----
-1038

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT 12 * - MIN( ALL - 88 )
----
1056

skipif mysql # not compatible
query I rowsort label-9116
SELECT 12 * - MIN ( ALL - 88 )
----
1056

query I rowsort
SELECT 42 - + 65
----
-23

query I rowsort
SELECT DISTINCT + 17 * + 78 * - 68
----
-90168

query I rowsort
SELECT DISTINCT 78 + - ( 41 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT ALL MAX( ALL - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL MAX ( ALL - 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT 35 * + COUNT( * ) * + ( + + 96 ) AS col2
----
3360

skipif mysql # not compatible
query I rowsort label-9121
SELECT 35 * + COUNT ( * ) * + ( + + 96 ) AS col2
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT 22 + - AVG ( ALL + 71 ) * COUNT( DISTINCT - 6 ) * + + CASE - + 95 WHEN - 38 THEN NULL WHEN + - 89 * 95 THEN - 88 + - 73 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT 22 + - AVG ( ALL + 71 ) * COUNT ( DISTINCT - 6 ) * + + CASE - + 95 WHEN - 38 THEN NULL WHEN + - 89 * 95 THEN - 88 + - 73 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9123
SELECT - + COALESCE ( + 53, + 35 + 84, - 79, - + 33 * - COUNT( * ) DIV + ( + 3 ) + - CAST( - 83 AS SIGNED ) ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-9123
SELECT - + COALESCE ( + 53, + 35 + 84, - 79, - + 33 * - COUNT ( * ) / + ( + 3 ) + - CAST ( - 83 AS INTEGER ) ) col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT ALL - - 7 + COUNT( * ) * 97 + - + 21 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL - - 7 + COUNT ( * ) * 97 + - + 21 AS col0
----
83

query I rowsort
SELECT 14 + + 46
----
60

query I rowsort
SELECT DISTINCT + ( - 60 ) + + 83 * + 49 col1
----
4007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9127
SELECT ALL - 32 + CAST( - 74 AS SIGNED )
----
-106

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL - 32 + CAST ( - 74 AS INTEGER )
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT DISTINCT + MIN( DISTINCT 39 ) * 60
----
2340

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT + MIN ( DISTINCT 39 ) * 60
----
2340

query I rowsort
SELECT - 20 + 16 + 28
----
24

query I rowsort
SELECT DISTINCT - + 65 + - 23 AS col1
----
-88

query I rowsort
SELECT DISTINCT + 40 * - 52 AS col2
----
-2080

query I rowsort
SELECT DISTINCT - 10 * - - 10 + + - 17
----
-117

query I rowsort
SELECT DISTINCT + - 52 * 97
----
-5044

onlyif mysql # DIV for integer division: 
query I rowsort label-9134
SELECT - 36 DIV 55 + - 31
----
-31

skipif mysql # not compatible
query I rowsort label-9134
SELECT - 36 / 55 + - 31
----
-31

query I rowsort
SELECT 6 * + - 17
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9136
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT MIN( DISTINCT CASE 17 WHEN 1 THEN - + 74 * - 68 + 42 + - 52 - 37 + 74 * + - 35 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT MIN ( DISTINCT CASE 17 WHEN 1 THEN - + 74 * - 68 + 42 + - 52 - 37 + 74 * + - 35 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9138
SELECT 45 DIV 24 + 17
----
18

skipif mysql # not compatible
query I rowsort label-9138
SELECT 45 / 24 + 17
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9139
SELECT DISTINCT + 55 * - + COUNT( * ) * 80 AS col1, 95 + - + ( - 30 ) - + 82 * - CAST( - 14 AS SIGNED )
----
-4400
-1023

skipif mysql # not compatible
query II rowsort label-9139
SELECT DISTINCT + 55 * - + COUNT ( * ) * 80 AS col1, 95 + - + ( - 30 ) - + 82 * - CAST ( - 14 AS INTEGER )
----
-4400
-1023

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL 43 * - + 1 - + COUNT( * ) + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL 43 * - + 1 - + COUNT ( * ) + COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT DISTINCT + 33 * - NULLIF ( 41, - COUNT( * ) + + 42 * + + 81 ) - + + 77 AS col2
----
-1430

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT + 33 * - NULLIF ( 41, - COUNT ( * ) + + 42 * + + 81 ) - + + 77 AS col2
----
-1430

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT MAX( ALL - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-9142
SELECT MAX ( ALL - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT ALL + ( - SUM( ALL + + ( 71 ) ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL + ( - SUM ( ALL + + ( 71 ) ) ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT + SUM( - + 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-9144
SELECT + SUM ( - + 89 ) AS col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9145
SELECT SUM( - + 13 ) * + + 33 - ( + CASE CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN - 23 END ) + + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT SUM ( - + 13 ) * + + 33 - ( + CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN - 23 END ) + + - 22
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9146
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1, 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-9146
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1, 23
----
NULL
23

query II rowsort
SELECT ALL + 11 AS col2, 23 AS col1
----
11
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT - 89 + - - COUNT( * ) + AVG ( + CASE - - 75 WHEN 87 * 8 THEN - 64 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT - 89 + - - COUNT ( * ) + AVG ( + CASE - - 75 WHEN 87 * 8 THEN - 64 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9149
SELECT + CAST( + 87 AS SIGNED ) * 46 AS col0, 97 AS col0
----
4002
97

skipif mysql # not compatible
query II rowsort label-9149
SELECT + CAST ( + 87 AS INTEGER ) * 46 AS col0, 97 AS col0
----
4002
97

query I rowsort
SELECT - CASE + 18 WHEN + 3 - - + 42 THEN + + 63 - - 70 * - 26 * 98 WHEN + 15 THEN + 98 ELSE NULL END + + 13 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 77 * + 18 col1
----
1386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT + CAST( NULL AS SIGNED ) / - 15 * + 7 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT + CAST ( NULL AS INTEGER ) / - 15 * + 7 col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( 25, 32 ) + ( 48 ) * - 83
----
-3959

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9154
SELECT + 92 * - NULLIF ( - MIN( DISTINCT - 26 ) DIV + 45, + CASE - 61 WHEN 65 THEN 75 ELSE 97 END ) + 87 col0
----
87

skipif mysql # not compatible
query I rowsort label-9154
SELECT + 92 * - NULLIF ( - MIN ( DISTINCT - 26 ) / + 45, + CASE - 61 WHEN 65 THEN 75 ELSE 97 END ) + 87 col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT - COALESCE ( 71, COUNT( * ) + 52 * - 21 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-9155
SELECT - COALESCE ( 71, COUNT ( * ) + 52 * - 21 ) AS col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9156
SELECT - 82 DIV ( CAST( 21 AS SIGNED ) * 82 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9156
SELECT - 82 / ( CAST ( 21 AS INTEGER ) * 82 ) AS col1
----
0

query I rowsort
SELECT + 87 + - 63
----
24

query I rowsort
SELECT + 99 * 90 AS col2
----
8910

query I rowsort
SELECT + 64 + 32 col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT DISTINCT 28 + - ( + COUNT( * ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT 28 + - ( + COUNT ( * ) ) AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9161
SELECT + 51 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-9161
SELECT + 51 / - 77
----
0

query I rowsort
SELECT ALL 63 + 36 AS col2
----
99

query I rowsort
SELECT ALL 33 + + 64 * 52 AS col0
----
3361

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT ALL - 76 + - ( COUNT( - 35 ) + COUNT( * ) ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL - 76 + - ( COUNT ( - 35 ) + COUNT ( * ) ) AS col0
----
-78

query I rowsort
SELECT - ( 80 ) AS col1
----
-80

query I rowsort
SELECT + 98 * + NULLIF ( - 65, 78 ) AS col1
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT - COALESCE ( - 57, CASE COUNT( * ) WHEN + 64 THEN + COUNT( 61 ) * + 15 - MIN( DISTINCT 32 ) END, 35 * - 64 )
----
57

skipif mysql # not compatible
query I rowsort label-9167
SELECT - COALESCE ( - 57, CASE COUNT ( * ) WHEN + 64 THEN + COUNT ( 61 ) * + 15 - MIN ( DISTINCT 32 ) END, 35 * - 64 )
----
57

query I rowsort
SELECT + 85 - + 79 AS col2
----
6

query I rowsort
SELECT DISTINCT - 59 - 37 AS col1
----
-96

query I rowsort
SELECT ( + 54 ) col0
----
54

query I rowsort
SELECT DISTINCT - 68 * 68 AS col2
----
-4624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9172
SELECT ALL + NULLIF ( 7, + CAST( 82 AS SIGNED ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL + NULLIF ( 7, + CAST ( 82 AS INTEGER ) ) AS col2
----
7

query I rowsort
SELECT + 96 * 34 AS col0
----
3264

query I rowsort
SELECT - 1 * 77 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL + 6 * - COUNT( * ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL + 6 * - COUNT ( * ) AS col2
----
-6

query I rowsort
SELECT - 48 + - 24
----
-72

query I rowsort
SELECT ALL 88 * - 3 + 64
----
-200

query I rowsort
SELECT ALL CASE 91 WHEN 7 THEN 81 WHEN 94 THEN NULL ELSE NULL END * - 53 + 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT + COUNT( ALL 73 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9179
SELECT + COUNT ( ALL 73 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9180
SELECT - ( 74 ) * - CAST( 79 * + CAST( NULL AS SIGNED ) - + COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT - ( 74 ) * - CAST ( 79 * + CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS INTEGER )
----
NULL

query I rowsort
SELECT - 81 * 15 AS col1
----
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT - - MIN( + 74 ) + 10 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9182
SELECT - - MIN ( + 74 ) + 10 AS col0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9183
SELECT ALL 15 * - SUM( DISTINCT - 33 ) + + 90 DIV + 83 AS col2
----
496

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL 15 * - SUM ( DISTINCT - 33 ) + + 90 / + 83 AS col2
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT COALESCE ( COUNT( * ), 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9184
SELECT COALESCE ( COUNT ( * ), 16 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL + 81 * COUNT( * ) + 9
----
90

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL + 81 * COUNT ( * ) + 9
----
90

query I rowsort
SELECT - - 51 - - 6 AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9187
SELECT DISTINCT - 95 * + 50 + - CAST( + CASE 45 WHEN 92 * 30 + + 24 THEN ( - 5 ) END - 94 AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT - 95 * + 50 + - CAST ( + CASE 45 WHEN 92 * 30 + + 24 THEN ( - 5 ) END - 94 AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + 6 * + 45
----
270

query I rowsort
SELECT DISTINCT + 37 + 1
----
38

query I rowsort
SELECT ALL 28 + + 3 AS col1
----
31

query I rowsort
SELECT + ( 13 ) - + 68
----
-55

query I rowsort
SELECT + - 51 * + 45 AS col2
----
-2295

query I rowsort
SELECT ALL - 46 * - 75 AS col0
----
3450

query I rowsort
SELECT - 41 + + 56
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9195
SELECT + 11 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-9195
SELECT + 11 / 68
----
0

query I rowsort
SELECT - 50 * 46 col0
----
-2300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9197
SELECT DISTINCT CAST( 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-9197
SELECT DISTINCT CAST ( 58 AS INTEGER )
----
58

query I rowsort
SELECT ALL 94 - + 9
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT + + 74 + + COUNT( * ) * - 42
----
32

skipif mysql # not compatible
query I rowsort label-9199
SELECT + + 74 + + COUNT ( * ) * - 42
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT + + 69 - CASE 94 WHEN - ( COUNT( * ) ) THEN + 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT + + 69 - CASE 94 WHEN - ( COUNT ( * ) ) THEN + 14 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9201
SELECT ALL + 63 DIV 13
----
4

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL + 63 / 13
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9202
SELECT ALL COALESCE ( - COALESCE ( - 55, + ( - 47 ) ), 42 * - COUNT( 9 ), - COUNT( * ) + - CASE - 34 + + COUNT( * ) WHEN 82 THEN 63 WHEN + 63 THEN 70 ELSE - CAST( - 33 AS SIGNED ) END ) * - 95
----
-5225

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL COALESCE ( - COALESCE ( - 55, + ( - 47 ) ), 42 * - COUNT ( 9 ), - COUNT ( * ) + - CASE - 34 + + COUNT ( * ) WHEN 82 THEN 63 WHEN + 63 THEN 70 ELSE - CAST ( - 33 AS INTEGER ) END ) * - 95
----
-5225

query I rowsort
SELECT + 14 + + + 7 AS col2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9204
SELECT ALL COUNT( * ) DIV + - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL COUNT ( * ) / + - 67 AS col0
----
0

query I rowsort
SELECT ALL 2 * - + 82
----
-164

query I rowsort
SELECT + 8 + + 22 AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT 21 * CAST( NULL AS SIGNED ) * + CASE + COALESCE ( + 76, + CAST( NULL AS SIGNED ) * + 55 + - 28, + 24 ) WHEN 18 THEN + CAST( + 51 AS SIGNED ) + - 89 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT 21 * CAST ( NULL AS INTEGER ) * + CASE + COALESCE ( + 76, + CAST ( NULL AS INTEGER ) * + 55 + - 28, + 24 ) WHEN 18 THEN + CAST ( + 51 AS INTEGER ) + - 89 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9208
SELECT + ( + 85 ) DIV + ( - 82 + MAX( DISTINCT 92 ) * + 77 ) + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9208
SELECT + ( + 85 ) / + ( - 82 + MAX ( DISTINCT 92 ) * + 77 ) + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT 34 * + + 31 AS col0
----
1054

query I rowsort
SELECT 69 + + 83
----
152

query I rowsort
SELECT ALL 66 * - - 13
----
858

query I rowsort
SELECT 76 * - 73 * 66 AS col2
----
-366168

query I rowsort
SELECT 79 + 2 col2
----
81

query I rowsort
SELECT DISTINCT 13 * - 6 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT DISTINCT ( + NULLIF ( - ( - COUNT( * ) ), 30 + + 61 ) ) + 96 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-9215
SELECT DISTINCT ( + NULLIF ( - ( - COUNT ( * ) ), 30 + + 61 ) ) + 96 AS col2
----
97

query I rowsort
SELECT 66 * 85 AS col1
----
5610

query I rowsort
SELECT DISTINCT - 38 + + 4 + 52
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9218
SELECT ALL - NULLIF ( + 52, - 3 ) + - CAST( NULL AS SIGNED ) * MIN( 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL - NULLIF ( + 52, - 3 ) + - CAST ( NULL AS INTEGER ) * MIN ( 0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT DISTINCT - ( MIN( ALL 96 ) ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT - ( MIN ( ALL 96 ) ) AS col0
----
-96

query I rowsort
SELECT 91 * + 64 * ( 83 * + 45 ) AS col1
----
21752640

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT + - COALESCE ( ( + COUNT( * ) ), 0, + 9 + + ( - 18 ), 65 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9221
SELECT + - COALESCE ( ( + COUNT ( * ) ), 0, + 9 + + ( - 18 ), 65 ) AS col1
----
-1

query I rowsort
SELECT ALL - NULLIF ( - NULLIF ( 26, 3 ), 69 * 26 + ( 82 ) ) + 81 * 29
----
2375

query I rowsort
SELECT + NULLIF ( - + 61, 38 ) AS col1
----
-61

query I rowsort
SELECT + COALESCE ( 37, ( + 1 ) ) + 93
----
130

query I rowsort
SELECT ALL - ( + 9 ) * - 10 col2
----
90

query I rowsort
SELECT + 47 + + 5 + + 98 AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL 24 - COUNT( ALL - 35 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL 24 - COUNT ( ALL - 35 ) AS col0
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9228
SELECT + CAST( NULL AS DECIMAL ) / + - 95 + - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT + CAST ( NULL AS REAL ) / + - 95 + - 98 AS col2
----
NULL

query I rowsort
SELECT + - ( 88 ) AS col1
----
-88

query I rowsort
SELECT DISTINCT - ( + 47 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT - ( COUNT( * ) ) * 87 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9231
SELECT - ( COUNT ( * ) ) * 87 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT DISTINCT COUNT( * ) + - COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9232
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) col1
----
0

query I rowsort
SELECT ALL + + 52 AS col1
----
52

query I rowsort
SELECT - 20 + 88 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT SUM( + + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-9235
SELECT SUM ( + + 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT ALL ( + SUM( DISTINCT ( + - 69 ) ) )
----
-69

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL ( + SUM ( DISTINCT ( + - 69 ) ) )
----
-69

query I rowsort
SELECT DISTINCT + 84 + 9
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT - MAX( DISTINCT - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-9238
SELECT - MAX ( DISTINCT - 9 )
----
9

query I rowsort
SELECT 41 * - ( 23 )
----
-943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9240
SELECT ALL - AVG ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL - AVG ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT 94, - 68 col2
----
94
-68

query II rowsort
SELECT 94 AS col0, 14 AS col2
----
94
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT + COUNT( DISTINCT - 79 )
----
1

skipif mysql # not compatible
query I rowsort label-9243
SELECT + COUNT ( DISTINCT - 79 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT - MAX( 1 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9244
SELECT - MAX ( 1 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9245
SELECT ALL - 1 * + CAST( NULL AS SIGNED ) + - - 10 + - ( - 42 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - 1 * + CAST ( NULL AS INTEGER ) + - - 10 + - ( - 42 ) col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 66, - 42 ) * + 12 AS col0
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT - 57 * + COUNT( * ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-9247
SELECT - 57 * + COUNT ( * ) col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT + MIN( DISTINCT + + 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-9248
SELECT + MIN ( DISTINCT + + 53 ) AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9249
SELECT ALL + CAST( NULL AS SIGNED ) * - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL + CAST ( NULL AS INTEGER ) * - 69 AS col1
----
NULL

query I rowsort
SELECT ( + - 36 ) AS col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT + CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT + COUNT( * ) + + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9252
SELECT + COUNT ( * ) + + + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT + 41 + + 30
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT ALL - COUNT( + 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL - COUNT ( + 27 )
----
-1

query I rowsort
SELECT DISTINCT 42 + 28
----
70

query I rowsort
SELECT ALL - ( - - 3 ) col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9257
SELECT - + MIN( ALL + 28 ) AS col1, MIN( + + CAST( NULL AS SIGNED ) )
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-9257
SELECT - + MIN ( ALL + 28 ) AS col1, MIN ( + + CAST ( NULL AS INTEGER ) )
----
-28
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT 78 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT 78 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ALL COUNT( * ) * + + 79 + + 42 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL COUNT ( * ) * + + 79 + + 42 AS col1
----
121

query I rowsort
SELECT ALL - 49 * 66 AS col2
----
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT 4 + - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9261
SELECT 4 + - COUNT ( * ) AS col1
----
3

query I rowsort
SELECT DISTINCT + ( - + 46 ) AS col1
----
-46

query I rowsort
SELECT ALL - ( - 36 ) col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT - MIN( 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-9264
SELECT - MIN ( 70 )
----
-70

query I rowsort
SELECT ALL ( + 96 )
----
96

query I rowsort
SELECT + ( - - 63 )
----
63

query I rowsort
SELECT ALL - 38 * + 60 - + + 35 AS col2
----
-2315

query I rowsort
SELECT DISTINCT + - ( - 37 ) AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9269
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL ( + + 12 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT - 39 + COUNT( * ) * + ( + 39 )
----
0

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT - 39 + COUNT ( * ) * + ( + 39 )
----
0

query I rowsort
SELECT 91 * - 71
----
-6461

query I rowsort
SELECT ALL - - ( + 31 )
----
31

query I rowsort
SELECT DISTINCT - - 32 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT DISTINCT + COUNT( * ) - - 54
----
55

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT + COUNT ( * ) - - 54
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9276
SELECT - + COUNT( * ) DIV + COUNT( * ) - - - 20
----
-21

skipif mysql # not compatible
query I rowsort label-9276
SELECT - + COUNT ( * ) / + COUNT ( * ) - - - 20
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT DISTINCT - COUNT( * ) + - - 82 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT - COUNT ( * ) + - - 82 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL 5 - 32 * COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL 5 - 32 * COUNT ( * )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9279
SELECT + CAST( SUM( + - 10 ) AS SIGNED ) - + + 26
----
-36

skipif mysql # not compatible
query I rowsort label-9279
SELECT + CAST ( SUM ( + - 10 ) AS INTEGER ) - + + 26
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT + COUNT( * ) + - 28 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9280
SELECT + COUNT ( * ) + - 28 AS col0
----
-27

query I rowsort
SELECT ALL + - ( + 43 ) col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT + + SUM( + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9282
SELECT + + SUM ( + 68 ) AS col0
----
68

query I rowsort
SELECT DISTINCT ( + 24 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT COUNT( - 75 )
----
1

skipif mysql # not compatible
query I rowsort label-9284
SELECT COUNT ( - 75 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9285
SELECT ALL - 94 + - - 55 + - 19 DIV - 96 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL - 94 + - - 55 + - 19 / - 96 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT COUNT( * ) * COUNT( DISTINCT - 17 )
----
1

skipif mysql # not compatible
query I rowsort label-9286
SELECT COUNT ( * ) * COUNT ( DISTINCT - 17 )
----
1

query I rowsort
SELECT ALL + 70 + - + 65
----
5

query II rowsort
SELECT 9 AS col1, - 17 AS col1
----
9
-17

query I rowsort
SELECT DISTINCT + 55 + 40 AS col0
----
95

query I rowsort
SELECT ( + 7 )
----
7

query I rowsort
SELECT ALL + - 48 + - 9 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT DISTINCT - 25 - - - COUNT( * ) + + 6
----
-20

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT - 25 - - - COUNT ( * ) + + 6
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9293
SELECT + + COALESCE ( - CAST( NULL AS SIGNED ), + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-9293
SELECT + + COALESCE ( - CAST ( NULL AS INTEGER ), + 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT MAX( + - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-9294
SELECT MAX ( + - 3 )
----
-3

query I rowsort
SELECT + ( + + 23 ) col0
----
23

query I rowsort
SELECT + ( - + 6 )
----
-6

query I rowsort
SELECT DISTINCT ( - 91 )
----
-91

query I rowsort
SELECT DISTINCT + COALESCE ( + 86, 38 ) col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT CAST( + - 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-9299
SELECT CAST ( + - 84 AS INTEGER )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT + COUNT( * ) + - 54 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-9300
SELECT + COUNT ( * ) + - 54 AS col2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9301
SELECT DISTINCT - CAST( + - 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT - CAST ( + - 42 AS INTEGER )
----
42

query I rowsort
SELECT DISTINCT + 96 * - - 51 AS col0
----
4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9303
SELECT + CAST( - 87 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-9303
SELECT + CAST ( - 87 AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT ALL + COUNT( * ) + 76 + - 67
----
10

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL + COUNT ( * ) + 76 + - 67
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT COALESCE ( COUNT( * ), - 58 ) * 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9305
SELECT COALESCE ( COUNT ( * ), - 58 ) * 76 AS col1
----
76

query I rowsort
SELECT 19 + + 64
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9307
SELECT CAST( NULL AS SIGNED ) + - + ( + 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9307
SELECT CAST ( NULL AS INTEGER ) + - + ( + 39 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9308
SELECT CAST( NULL AS SIGNED ) / + - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT CAST ( NULL AS INTEGER ) / + - 68 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9309
SELECT DISTINCT - 2 * + + CAST( NULL AS DECIMAL ), MIN( DISTINCT - + 52 ) - - 50 AS col0
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-9309
SELECT DISTINCT - 2 * + + CAST ( NULL AS REAL ), MIN ( DISTINCT - + 52 ) - - 50 AS col0
----
NULL
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT DISTINCT COUNT( * ) * 13 + 24
----
37

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT COUNT ( * ) * 13 + 24
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT + 52 * COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-9311
SELECT + 52 * COUNT ( * ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL - COUNT( * ) + - 73 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL - COUNT ( * ) + - 73 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ALL ( - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL ( - COUNT ( * ) ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT - AVG ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT - AVG ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT + COUNT( * ) + - + 36
----
-35

skipif mysql # not compatible
query I rowsort label-9315
SELECT + COUNT ( * ) + - + 36
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT DISTINCT ( - 45 ) * COUNT( * ) + + COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT ( - 45 ) * COUNT ( * ) + + COUNT ( * ) AS col2
----
-44

query I rowsort
SELECT ( - 1 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT + - MAX( DISTINCT + 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-9318
SELECT + - MAX ( DISTINCT + 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT - MAX( 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-9319
SELECT - MAX ( 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT - COUNT( * ) * + 21
----
-21

skipif mysql # not compatible
query I rowsort label-9320
SELECT - COUNT ( * ) * + 21
----
-21

query II rowsort
SELECT DISTINCT 83, 51 AS col2
----
83
51

query I rowsort
SELECT 53 + + 7
----
60

query I rowsort
SELECT + 5 * 20
----
100

query I rowsort
SELECT ALL + 30 - - 14 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT DISTINCT - + COUNT( ALL - 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT - + COUNT ( ALL - 48 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 97 + + - 19
----
78

query I rowsort
SELECT ALL - + 95 col0
----
-95

query I rowsort
SELECT + 69 * 6
----
414

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT + - MIN( ALL - 82 )
----
82

skipif mysql # not compatible
query I rowsort label-9329
SELECT + - MIN ( ALL - 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT 57 + - MAX( ALL + + 33 )
----
24

skipif mysql # not compatible
query I rowsort label-9330
SELECT 57 + - MAX ( ALL + + 33 )
----
24

query I rowsort
SELECT DISTINCT + - 35 AS col1
----
-35

query I rowsort
SELECT DISTINCT + - 62
----
-62

query I rowsort
SELECT - 52 * 90 AS col2
----
-4680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9334
SELECT + COUNT( * ) DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-9334
SELECT + COUNT ( * ) / - 63
----
0

query I rowsort
SELECT DISTINCT 16 + + - 4 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT ALL - CAST( - 86 AS SIGNED ) + - 56 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL - CAST ( - 86 AS INTEGER ) + - 56 AS col1
----
30

query I rowsort
SELECT ALL - 86 - 76 AS col2
----
-162

query I rowsort
SELECT ALL + - ( ( + + 25 ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT + COUNT( DISTINCT 84 )
----
1

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT + COUNT ( DISTINCT 84 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT ALL - NULLIF ( + - MIN( 26 ), + SUM( ALL + 70 ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL - NULLIF ( + - MIN ( 26 ), + SUM ( ALL + 70 ) ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT + 88 + + COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-9341
SELECT + 88 + + COUNT ( * ) AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9342
SELECT + + 89 DIV - 68 - + 92
----
-93

skipif mysql # not compatible
query I rowsort label-9342
SELECT + + 89 / - 68 - + 92
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL 87 * - COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL 87 * - COUNT ( * ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9344
SELECT 91 AS col2, COUNT( * )
----
91
1

skipif mysql # not compatible
query II rowsort label-9344
SELECT 91 AS col2, COUNT ( * )
----
91
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT COUNT( ALL - 27 )
----
1

skipif mysql # not compatible
query I rowsort label-9345
SELECT COUNT ( ALL - 27 )
----
1

query I rowsort
SELECT ( - 96 ) col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT + SUM( ALL 95 )
----
95

skipif mysql # not compatible
query I rowsort label-9347
SELECT + SUM ( ALL 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT SUM( DISTINCT - 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-9348
SELECT SUM ( DISTINCT - 15 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT + 21 * + MIN( DISTINCT + ( + - 7 ) )
----
-147

skipif mysql # not compatible
query I rowsort label-9349
SELECT + 21 * + MIN ( DISTINCT + ( + - 7 ) )
----
-147

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9350
SELECT COUNT( DISTINCT - 61 ), - 63 DIV 42 * - - 11 AS col1
----
1
-11

skipif mysql # not compatible
query II rowsort label-9350
SELECT COUNT ( DISTINCT - 61 ), - 63 / 42 * - - 11 AS col1
----
1
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT ( CAST( + 7 AS SIGNED ) )
----
7

skipif mysql # not compatible
query I rowsort label-9351
SELECT ( CAST ( + 7 AS INTEGER ) )
----
7

query I rowsort
SELECT ALL - 9 * 48
----
-432

query I rowsort
SELECT + ( + + 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT + 57 * - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-9354
SELECT + 57 * - COUNT ( * )
----
-57

query I rowsort
SELECT ALL + 67 * 19 * 71 AS col2
----
90383

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL COUNT( ALL + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL COUNT ( ALL + 50 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT COUNT( ALL - - 33 )
----
1

skipif mysql # not compatible
query I rowsort label-9357
SELECT COUNT ( ALL - - 33 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9358
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL 93 + - - 61
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT - 0 * - NULLIF ( - ( + 45 ), - + COUNT( * ) ) * - COUNT( + 28 )
----
0

skipif mysql # not compatible
query I rowsort label-9360
SELECT - 0 * - NULLIF ( - ( + 45 ), - + COUNT ( * ) ) * - COUNT ( + 28 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT ALL - - 39 * COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL - - 39 * COUNT ( * ) AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9362
SELECT - CASE + - 90 WHEN - COUNT( * ) + - 20 THEN NULL WHEN + 91 THEN - + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9362
SELECT - CASE + - 90 WHEN - COUNT ( * ) + - 20 THEN NULL WHEN + 91 THEN - + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - 54 * - 28
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT DISTINCT + MAX( + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT + MAX ( + 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT + SUM( 5 )
----
5

skipif mysql # not compatible
query I rowsort label-9365
SELECT + SUM ( 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT DISTINCT 27 * COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT 27 * COUNT ( * ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT 42 - COUNT( * ) + - 7 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9367
SELECT 42 - COUNT ( * ) + - 7 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9368
SELECT 76 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9368
SELECT 76 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 82 * - 15
----
-1230

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT 7 + - COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9370
SELECT 7 + - COUNT ( * ) AS col0
----
6

query I rowsort
SELECT 52 - + 23
----
29

query I rowsort
SELECT - 8 + + 20
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT - + ( ( + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9373
SELECT - + ( ( + COUNT ( * ) ) )
----
-1

query I rowsort
SELECT DISTINCT 19 * + 88 + 90 AS col0
----
1762

query I rowsort
SELECT ALL - 42 * + 33 + 48 * 1 col0
----
-1338

query I rowsort
SELECT + + ( - 94 )
----
-94

query I rowsort
SELECT DISTINCT + - 22 * + 61 + + 36 AS col0
----
-1306

query I rowsort
SELECT + 20 * + + 12 AS col0
----
240

query I rowsort
SELECT - ( 59 ) * 27 AS col2
----
-1593

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT - MIN( 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-9380
SELECT - MIN ( 85 )
----
-85

query I rowsort
SELECT - - 16 - 0 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT ALL MIN( - 95 ) + - 25
----
-120

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL MIN ( - 95 ) + - 25
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT ALL - + COUNT( * ) + + + 40 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL - + COUNT ( * ) + + + 40 AS col2
----
39

query I rowsort
SELECT ALL + - NULLIF ( 63, 33 )
----
-63

query I rowsort
SELECT - 24 + + 83
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9386
SELECT ALL - - 78 DIV - 40 - + 25 col0
----
-26

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL - - 78 / - 40 - + 25 col0
----
-26

query I rowsort
SELECT ( - - 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL + COUNT( DISTINCT + + ( 90 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL + COUNT ( DISTINCT + + ( 90 ) )
----
1

query I rowsort
SELECT ( + - 9 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT DISTINCT + MAX( - 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT + MAX ( - 38 ) AS col0
----
-38

query I rowsort
SELECT 42 + + ( 27 ) col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT DISTINCT + - COUNT( * ) + + + 69 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT + - COUNT ( * ) + + + 69 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL - COUNT( DISTINCT + ( 85 ) ) + + 59 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL - COUNT ( DISTINCT + ( 85 ) ) + + 59 AS col2
----
58

query I rowsort
SELECT 11 + + 98
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT NULLIF ( - COUNT( * ), - 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-9395
SELECT NULLIF ( - COUNT ( * ), - 38 )
----
-1

query I rowsort
SELECT - + 34 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9397
SELECT + COUNT( * ) AS col2, + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-9397
SELECT + COUNT ( * ) AS col2, + COUNT ( * ) AS col1
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9398
SELECT ALL MAX( - + ( + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL MAX ( - + ( + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT MAX( 49 )
----
49

skipif mysql # not compatible
query I rowsort label-9399
SELECT MAX ( 49 )
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9400
SELECT ALL + ( + 68 ) col2, COUNT( * ) AS col1
----
68
1

skipif mysql # not compatible
query II rowsort label-9400
SELECT ALL + ( + 68 ) col2, COUNT ( * ) AS col1
----
68
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT + COUNT( * ) * - 79
----
-79

skipif mysql # not compatible
query I rowsort label-9401
SELECT + COUNT ( * ) * - 79
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-9402
SELECT COUNT( * ) AS col1, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-9402
SELECT COUNT ( * ) AS col1, - COUNT ( * )
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT - 83 + + + COUNT( * ) - + ( - 60 )
----
-22

skipif mysql # not compatible
query I rowsort label-9403
SELECT - 83 + + + COUNT ( * ) - + ( - 60 )
----
-22

query I rowsort
SELECT - ( + + 13 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL - 48 - + + COUNT( * ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL - 48 - + + COUNT ( * ) col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-9406
SELECT - - 41 DIV 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9406
SELECT - - 41 / 81 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ( + MAX( DISTINCT + ( 85 ) ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9407
SELECT ( + MAX ( DISTINCT + ( 85 ) ) ) AS col2
----
85

query I rowsort
SELECT + ( + - 88 ) AS col1
----
-88

query I rowsort
SELECT DISTINCT + ( + ( - 11 ) )
----
-11

query I rowsort
SELECT ( - 15 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT + + 13 * + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-9411
SELECT + + 13 * + COUNT ( * )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9412
SELECT - - CAST( + - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9412
SELECT - - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT DISTINCT - 29 + CAST( NULL AS SIGNED ) + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT - 29 + CAST ( NULL AS INTEGER ) + - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT 80 + - + COUNT( * ) col2
----
79

skipif mysql # not compatible
query I rowsort label-9414
SELECT 80 + - + COUNT ( * ) col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9415
SELECT + MIN( - - 44 ) AS col1, COUNT( * )
----
44
1

skipif mysql # not compatible
query II rowsort label-9415
SELECT + MIN ( - - 44 ) AS col1, COUNT ( * )
----
44
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9416
SELECT - - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT - - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + 33 - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-9417
SELECT + 33 - COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT - MIN( ALL - 17 )
----
17

skipif mysql # not compatible
query I rowsort label-9418
SELECT - MIN ( ALL - 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT ALL 97 - 90 * MAX( + ( - ( 95 ) ) )
----
8647

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL 97 - 90 * MAX ( + ( - ( 95 ) ) )
----
8647

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT ALL + ( + NULLIF ( COUNT( * ), 56 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL + ( + NULLIF ( COUNT ( * ), 56 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9421
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT - SUM( - 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9422
SELECT - SUM ( - 59 ) AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9423
SELECT + CAST( NULL AS SIGNED ) / + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT + CAST ( NULL AS INTEGER ) / + 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9424
SELECT DISTINCT - COUNT( * ) AS col0, - 40
----
-1
-40

skipif mysql # not compatible
query II rowsort label-9424
SELECT DISTINCT - COUNT ( * ) AS col0, - 40
----
-1
-40

query I rowsort
SELECT 88 + 20
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT + + SUM( 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9426
SELECT + + SUM ( 3 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT 96 * - COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9427
SELECT 96 * - COUNT ( * ) AS col0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9428
SELECT ALL 27 AS col1, + CAST( NULL AS SIGNED ) - + + 50 AS col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-9428
SELECT ALL 27 AS col1, + CAST ( NULL AS INTEGER ) - + + 50 AS col2
----
27
NULL

query II rowsort
SELECT + 10 col0, - 73
----
10
-73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9430
SELECT - 71 DIV - CAST( 1 AS SIGNED ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-9430
SELECT - 71 / - CAST ( 1 AS INTEGER ) AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9431
SELECT DISTINCT - - NULLIF ( - - 29, - 36 ) DIV COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT - - NULLIF ( - - 29, - 36 ) / COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT + COUNT( ALL 50 )
----
1

skipif mysql # not compatible
query I rowsort label-9432
SELECT + COUNT ( ALL 50 )
----
1

query I rowsort
SELECT DISTINCT 62 + - 82 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT - COALESCE ( 54, + COUNT( * ) )
----
-54

skipif mysql # not compatible
query I rowsort label-9434
SELECT - COALESCE ( 54, + COUNT ( * ) )
----
-54

query I rowsort
SELECT - ( 70 )
----
-70

query II rowsort
SELECT 67 col0, 28
----
67
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9437
SELECT ALL + 30 * 41 * + 43 AS col1, - SUM( DISTINCT - 87 ) AS col1
----
52890
87

skipif mysql # not compatible
query II rowsort label-9437
SELECT ALL + 30 * 41 * + 43 AS col1, - SUM ( DISTINCT - 87 ) AS col1
----
52890
87

query I rowsort
SELECT ALL - 5 - 89 AS col0
----
-94

query II rowsort
SELECT - + 97, + 57 AS col1
----
-97
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT SUM( + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9440
SELECT SUM ( + 79 ) AS col0
----
79

query I rowsort
SELECT ALL - - 78 * - 80
----
-6240

query I rowsort
SELECT ALL 95 - - ( 98 ) col0
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT - SUM( + 17 ) + - 12 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9443
SELECT - SUM ( + 17 ) + - 12 AS col2
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-9444
SELECT DISTINCT 82 + 93 DIV 58 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT 82 + 93 / 58 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT DISTINCT + COUNT( * ) + - 29 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT + COUNT ( * ) + - 29 AS col2
----
-28

query II rowsort
SELECT ALL - 34 AS col1, + 97 AS col0
----
-34
97

query II rowsort
SELECT DISTINCT - 82 AS col0, - 99 AS col1
----
-82
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT ALL MAX( ALL - + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL MAX ( ALL - + 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT ALL ( COUNT( * ) ) * 49
----
49

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL ( COUNT ( * ) ) * 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT MIN( 40 )
----
40

skipif mysql # not compatible
query I rowsort label-9450
SELECT MIN ( 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT MIN( 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9451
SELECT MIN ( 23 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9452
SELECT DISTINCT + SUM( ALL + 1 ), - 61 AS col1
----
1
-61

skipif mysql # not compatible
query II rowsort label-9452
SELECT DISTINCT + SUM ( ALL + 1 ), - 61 AS col1
----
1
-61

query I rowsort
SELECT - 2 * - 69
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT + COUNT( * ) * + 52
----
52

skipif mysql # not compatible
query I rowsort label-9454
SELECT + COUNT ( * ) * + 52
----
52

query II rowsort
SELECT - 13 AS col1, - 92
----
-13
-92

query I rowsort
SELECT DISTINCT - 63 + + 91 AS col2
----
28

query I rowsort
SELECT ALL 79 * 37 AS col1
----
2923

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT + COUNT( * ) + 53 * - 90 col1
----
-4769

skipif mysql # not compatible
query I rowsort label-9458
SELECT + COUNT ( * ) + 53 * - 90 col1
----
-4769

query I rowsort
SELECT - - 80 col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9460
SELECT ALL ( + 31 ) - - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL ( + 31 ) - - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9461
SELECT - + ( + CAST( 34 AS SIGNED ) )
----
-34

skipif mysql # not compatible
query I rowsort label-9461
SELECT - + ( + CAST ( 34 AS INTEGER ) )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT ALL + - COUNT( * ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL + - COUNT ( * ) + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT - + ( - 8 )
----
8

query I rowsort
SELECT 64 * 15 - + 70 col2
----
890

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT + COUNT( * ) + + SUM( + + 64 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9465
SELECT + COUNT ( * ) + + SUM ( + + 64 ) AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT DISTINCT 67 + - 3 / - CAST( NULL AS SIGNED ) - + - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT 67 + - 3 / - CAST ( NULL AS INTEGER ) - + - 29 AS col1
----
NULL

query I rowsort
SELECT - 17 * 39 + + 85 AS col2
----
-578

query I rowsort
SELECT - 43 + - 62
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT - 57 + COUNT( * ) * + 34 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9469
SELECT - 57 + COUNT ( * ) * + 34 AS col1
----
-23

query II rowsort
SELECT + 1, - 14 AS col0
----
1
-14

query I rowsort
SELECT - 68 * + + 14 col2
----
-952

query I rowsort
SELECT ALL 8 + - 38 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9473
SELECT - CAST( - 88 AS SIGNED ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9473
SELECT - CAST ( - 88 AS INTEGER ) AS col0
----
88

query II rowsort
SELECT DISTINCT + 73 AS col2, + 11 AS col2
----
73
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT - MAX( DISTINCT 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-9475
SELECT - MAX ( DISTINCT 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT + ( - SUM( + 33 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9476
SELECT + ( - SUM ( + 33 ) ) AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9477
SELECT ALL - CAST( + ( + 30 ) AS SIGNED ) + - + COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL - CAST ( + ( + 30 ) AS INTEGER ) + - + COUNT ( * ) AS col0
----
-31

query I rowsort
SELECT 43 - 45 col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9479
SELECT ALL MIN( ALL - 15 ), - CAST( NULL AS SIGNED ) AS col2
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-9479
SELECT ALL MIN ( ALL - 15 ), - CAST ( NULL AS INTEGER ) AS col2
----
-15
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9480
SELECT 16 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT 16 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9481
SELECT COUNT( * ) * - 30 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT COUNT ( * ) * - 30 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - NULLIF ( + - 80, + + 40 ) AS col2
----
80

query I rowsort
SELECT ALL - 88 - + 80
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT DISTINCT MAX( - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT MAX ( - 7 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9485
SELECT ALL 7 * - + CAST( NULL AS SIGNED ) - + 94 * - MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL 7 * - + CAST ( NULL AS INTEGER ) - + 94 * - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT - - COUNT( * ) + + 52 + + 36
----
89

skipif mysql # not compatible
query I rowsort label-9486
SELECT - - COUNT ( * ) + + 52 + + 36
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9487
SELECT - + CAST( NULL AS SIGNED ) + + - COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT - + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9488
SELECT CAST( + 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-9488
SELECT CAST ( + 23 AS INTEGER )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9489
SELECT ALL + ( - - COUNT( * ) ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL + ( - - COUNT ( * ) ) / COUNT ( * )
----
1

query II rowsort
SELECT - 27 - 91, + 1 AS col2
----
-118
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9491
SELECT + 20 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9491
SELECT + 20 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9492
SELECT + COUNT( * ) * 68 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9492
SELECT + COUNT ( * ) * 68 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT - COUNT( * ) + + 94
----
93

skipif mysql # not compatible
query I rowsort label-9493
SELECT - COUNT ( * ) + + 94
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT ALL MAX( DISTINCT - 61 ) * + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL MAX ( DISTINCT - 61 ) * + COUNT ( * )
----
-61

query I rowsort
SELECT - + ( - + 83 ) AS col0
----
83

query I rowsort
SELECT + 47 * - 88
----
-4136

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL - COUNT( DISTINCT 9 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL - COUNT ( DISTINCT 9 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9498
SELECT ALL - SUM( 20 ) AS col0, 50 * 78 AS col2
----
-20
3900

skipif mysql # not compatible
query II rowsort label-9498
SELECT ALL - SUM ( 20 ) AS col0, 50 * 78 AS col2
----
-20
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL - 3 + + COUNT( * ) * - + 46 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - 3 + + COUNT ( * ) * - + 46 AS col0
----
-49

query I rowsort
SELECT ALL + 45 + - 99
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT DISTINCT + 63 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT + 63 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9502
SELECT 28 AS col1, SUM( DISTINCT - 62 )
----
28
-62

skipif mysql # not compatible
query II rowsort label-9502
SELECT 28 AS col1, SUM ( DISTINCT - 62 )
----
28
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT MAX( ALL + 77 ) * COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-9503
SELECT MAX ( ALL + 77 ) * COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT 33 * COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9504
SELECT 33 * COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT SUM( ALL + - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-9505
SELECT SUM ( ALL + - 6 )
----
-6

query I rowsort
SELECT DISTINCT - 58 * 1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT DISTINCT - COUNT( * ) - - + 53
----
52

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT - COUNT ( * ) - - + 53
----
52

query I rowsort
SELECT ALL ( - - 12 ) col2
----
12

query I rowsort
SELECT - 21 * 41
----
-861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9510
SELECT ALL COUNT( * ) DIV + 21 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL COUNT ( * ) / + 21 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT 91 * + 23 + - COUNT( * ) * - - COUNT( * ) AS col1
----
2092

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT 91 * + 23 + - COUNT ( * ) * - - COUNT ( * ) AS col1
----
2092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9512
SELECT ALL 67 DIV + + 73 * + COUNT( * ) DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL 67 / + + 73 * + COUNT ( * ) / - COUNT ( * )
----
0

query I rowsort
SELECT + ( + 80 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT MIN( - - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-9514
SELECT MIN ( - - 98 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9515
SELECT DISTINCT + 35 AS col0, + COUNT( * )
----
35
1

skipif mysql # not compatible
query II rowsort label-9515
SELECT DISTINCT + 35 AS col0, + COUNT ( * )
----
35
1

query II rowsort
SELECT ALL - ( - 71 ), 79 AS col0
----
71
79

query I rowsort
SELECT - ( + 76 )
----
-76

query I rowsort
SELECT 48 * - - 74
----
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL - 12 * + MIN( ALL - - 34 )
----
-408

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL - 12 * + MIN ( ALL - - 34 )
----
-408

query I rowsort
SELECT DISTINCT - 30 + + 43 + + 72 col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9521
SELECT DISTINCT - COUNT( * ) DIV MAX( ALL - CAST( 97 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT - COUNT ( * ) / MAX ( ALL - CAST ( 97 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT DISTINCT - - MIN( + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT - - MIN ( + 80 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9523
SELECT - 95 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT - 95 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9524
SELECT - COALESCE ( COUNT( * ), - - CAST( NULL AS SIGNED ), + + COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9524
SELECT - COALESCE ( COUNT ( * ), - - CAST ( NULL AS INTEGER ), + + COUNT ( * ) ) col1
----
-1

query I rowsort
SELECT ALL 44 - - 89
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT ALL - ( - 34 ) * + + 65 * - COUNT( * )
----
-2210

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL - ( - 34 ) * + + 65 * - COUNT ( * )
----
-2210

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL SUM( + - 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL SUM ( + - 64 )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9528
SELECT ALL 54 * CAST( NULL AS SIGNED ) * CAST( 24 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL 54 * CAST ( NULL AS INTEGER ) * CAST ( 24 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9529
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT + - SUM( DISTINCT - - 64 ) + + 70 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9530
SELECT + - SUM ( DISTINCT - - 64 ) + + 70 AS col2
----
6

query I rowsort
SELECT + - ( + 21 ) AS col2
----
-21

query I rowsort
SELECT ALL - 81 * - ( - ( + 86 ) ) * - 67 - 13
----
466709

query I rowsort
SELECT ALL 7 + 75 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT + COUNT( * ) * - + 43
----
-43

skipif mysql # not compatible
query I rowsort label-9534
SELECT + COUNT ( * ) * - + 43
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9535
SELECT + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 17 - - 12 + + + 83 AS col2
----
78

query I rowsort
SELECT + + ( 59 )
----
59

query I rowsort
SELECT ALL + - 45 AS col1
----
-45

query I rowsort
SELECT - 33 + + 77 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT MAX( DISTINCT - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-9540
SELECT MAX ( DISTINCT - 84 )
----
-84

query I rowsort
SELECT ALL + ( 26 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT - COUNT( * ) - - - 30 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9542
SELECT - COUNT ( * ) - - - 30 AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9543
SELECT - 24 - CAST( + + 83 AS SIGNED ) - - COUNT( ALL + 99 )
----
-106

skipif mysql # not compatible
query I rowsort label-9543
SELECT - 24 - CAST ( + + 83 AS INTEGER ) - - COUNT ( ALL + 99 )
----
-106

query I rowsort
SELECT DISTINCT - ( + 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT COUNT( 15 )
----
1

skipif mysql # not compatible
query I rowsort label-9545
SELECT COUNT ( 15 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT COUNT( 81 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9546
SELECT COUNT ( 81 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT + MAX( DISTINCT 62 )
----
62

skipif mysql # not compatible
query I rowsort label-9547
SELECT + MAX ( DISTINCT 62 )
----
62

query I rowsort
SELECT ( - - 47 ) AS col2
----
47

query I rowsort
SELECT DISTINCT + 80 + + NULLIF ( + 90, - - 31 )
----
170

query I rowsort
SELECT DISTINCT NULLIF ( + + 60, + 46 ) AS col1
----
60

query I rowsort
SELECT - 74 + + 37 AS col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9552
SELECT ALL CAST( 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL CAST ( 42 AS INTEGER )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9553
SELECT ALL + CAST( NULL AS SIGNED ) * - - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 22 AS col0
----
NULL

query I rowsort
SELECT 79 * 40 AS col2
----
3160

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT - ( - COUNT( * ) ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9555
SELECT - ( - COUNT ( * ) ) - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9556
SELECT ALL + 65 DIV + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL + 65 / + COUNT ( * ) AS col2
----
65

query I rowsort
SELECT 74 + - 55 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT DISTINCT + + 30 + COUNT( * ) + - - 82
----
113

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT + + 30 + COUNT ( * ) + - - 82
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT + MIN( ALL + + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-9559
SELECT + MIN ( ALL + + 12 )
----
12

query I rowsort
SELECT - 66 * 1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9561
SELECT SUM( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT SUM ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9562
SELECT - MIN( + 0 ) DIV - - 78 * + 35 * + 61
----
0

skipif mysql # not compatible
query I rowsort label-9562
SELECT - MIN ( + 0 ) / - - 78 * + 35 * + 61
----
0

query II rowsort
SELECT ALL 64, - 76 AS col1
----
64
-76

query II rowsort
SELECT ALL + - 71 col2, - 35
----
-71
-35

query I rowsort
SELECT ALL - 74 * 56
----
-4144

query I rowsort
SELECT + + 99 col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ALL - - MAX( DISTINCT - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL - - MAX ( DISTINCT - 66 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9568
SELECT 56 DIV - + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-9568
SELECT 56 / - + COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT ALL - COUNT( * ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT + 84 * 22
----
1848

onlyif mysql # aggregate syntax: 
query II rowsort label-9571
SELECT ALL + COUNT( * ) AS col1, + 22 AS col1
----
1
22

skipif mysql # not compatible
query II rowsort label-9571
SELECT ALL + COUNT ( * ) AS col1, + 22 AS col1
----
1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT ALL 32 * - COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL 32 * - COUNT ( * ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT - 97 * COUNT( - - 36 )
----
-97

skipif mysql # not compatible
query I rowsort label-9573
SELECT - 97 * COUNT ( - - 36 )
----
-97

query I rowsort
SELECT ( + + 76 )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9575
SELECT ALL - 39, COUNT( * ) AS col2
----
-39
1

skipif mysql # not compatible
query II rowsort label-9575
SELECT ALL - 39, COUNT ( * ) AS col2
----
-39
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9576
SELECT DISTINCT + 16 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT + 16 / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT + 22 * + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-9577
SELECT + 22 * + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT COUNT( * ) * 86 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT COUNT ( * ) * 86 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT MIN( DISTINCT - 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9579
SELECT MIN ( DISTINCT - 41 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ALL - MAX( DISTINCT + 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL - MAX ( DISTINCT + 90 ) AS col0
----
-90

query I rowsort
SELECT - - 26 + - 53 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT + COUNT( * ) + + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9582
SELECT + COUNT ( * ) + + + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL + MIN( DISTINCT 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL + MIN ( DISTINCT 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT ALL COUNT( DISTINCT ( 53 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL COUNT ( DISTINCT ( 53 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT - CAST( - 57 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-9585
SELECT - CAST ( - 57 AS INTEGER )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9586
SELECT + 69 DIV + COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-9586
SELECT + 69 / + COUNT ( * ) AS col2
----
69

query I rowsort
SELECT ALL - 29 * 87 AS col0
----
-2523

query I rowsort
SELECT DISTINCT ( ( - 10 ) ) col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9589
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) / 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT ALL + COUNT( * ) + + 77 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL + COUNT ( * ) + + 77 AS col1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9591
SELECT ALL 46 DIV 19
----
2

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL 46 / 19
----
2

query I rowsort
SELECT ALL - + ( 90 ) AS col0
----
-90

query I rowsort
SELECT 20 * 4
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9594
SELECT ALL ( CAST( NULL AS SIGNED ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * COUNT ( * )
----
NULL

query I rowsort
SELECT - 31 + + 99
----
68

query I rowsort
SELECT 83 + - + 70 * + 1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL 48 * - - SUM( 41 )
----
1968

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL 48 * - - SUM ( 41 )
----
1968

query I rowsort
SELECT DISTINCT + 27 - 20 + + 44 AS col1
----
51

query I rowsort
SELECT + ( 4 ) col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9600
SELECT + ( SUM( ALL CAST( NULL AS DECIMAL ) ) ) * + CAST( - 55 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT + ( SUM ( ALL CAST ( NULL AS REAL ) ) ) * + CAST ( - 55 AS INTEGER )
----
NULL

query I rowsort
SELECT 15 * - 73 AS col2
----
-1095

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT + MIN( ALL - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-9602
SELECT + MIN ( ALL - 46 )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9603
SELECT ALL - 44 DIV - COUNT( * ) - 91
----
-47

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL - 44 / - COUNT ( * ) - 91
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9604
SELECT - COUNT( * ) + + COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT - COUNT ( * ) + + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + ( - - 85 ) AS col1
----
85

query I rowsort
SELECT ALL 36 col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT + SUM( + 32 ) * - 19 AS col1
----
-608

skipif mysql # not compatible
query I rowsort label-9607
SELECT + SUM ( + 32 ) * - 19 AS col1
----
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT - COUNT( * ) + - 80 * - + 36
----
2879

skipif mysql # not compatible
query I rowsort label-9608
SELECT - COUNT ( * ) + - 80 * - + 36
----
2879

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT MAX( - + 22 ) + + MAX( ALL - - 57 )
----
35

skipif mysql # not compatible
query I rowsort label-9609
SELECT MAX ( - + 22 ) + + MAX ( ALL - - 57 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL COUNT( ALL - 54 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL COUNT ( ALL - 54 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - - 51 + + + 75 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL + COUNT( * ) - - 3
----
4

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL + COUNT ( * ) - - 3
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9613
SELECT 8, COUNT( * ) col0
----
8
1

skipif mysql # not compatible
query II rowsort label-9613
SELECT 8, COUNT ( * ) col0
----
8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL - SUM( ALL + - 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL - SUM ( ALL + - 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9615
SELECT 7 AS col0, + COUNT( * )
----
7
1

skipif mysql # not compatible
query II rowsort label-9615
SELECT 7 AS col0, + COUNT ( * )
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ALL COUNT( * ) + + 99
----
100

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL COUNT ( * ) + + 99
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-9617
SELECT ALL - COUNT( * ) AS col2, - 58
----
-1
-58

skipif mysql # not compatible
query II rowsort label-9617
SELECT ALL - COUNT ( * ) AS col2, - 58
----
-1
-58

query I rowsort
SELECT ALL ( + - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT DISTINCT - SUM( ALL 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT - SUM ( ALL 71 ) AS col0
----
-71

query I rowsort
SELECT ( - ( + 74 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT MAX( + 7 ) col1
----
7

skipif mysql # not compatible
query I rowsort label-9621
SELECT MAX ( + 7 ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT MAX( + - 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-9622
SELECT MAX ( + - 54 ) AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT ALL CAST( + - ( 80 ) AS SIGNED ) * 28 AS col0
----
-2240

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL CAST ( + - ( 80 ) AS INTEGER ) * 28 AS col0
----
-2240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9624
SELECT + COUNT( * ) DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-9624
SELECT + COUNT ( * ) / 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT MIN( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9625
SELECT MIN ( 43 )
----
43

query I rowsort
SELECT - 80 * + 46 AS col1
----
-3680

query I rowsort
SELECT + 73 * + - 25
----
-1825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9628
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 4 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT + CAST( 18 AS SIGNED ) col1
----
18

skipif mysql # not compatible
query I rowsort label-9629
SELECT + CAST ( 18 AS INTEGER ) col1
----
18

query I rowsort
SELECT + 39 + + - 10 AS col2
----
29

query I rowsort
SELECT + 51 * - 95 col2
----
-4845

query I rowsort
SELECT - 99 * 98
----
-9702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9633
SELECT ALL COUNT( + - 21 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL COUNT ( + - 21 ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 44 * + 14 AS col0
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT COUNT( * ) * - 29
----
-29

skipif mysql # not compatible
query I rowsort label-9635
SELECT COUNT ( * ) * - 29
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9636
SELECT DISTINCT + 84 DIV MAX( + 83 )
----
1

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT + 84 / MAX ( + 83 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9637
SELECT + SUM( - CAST( NULL AS SIGNED ) ) * + AVG ( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT + SUM ( - CAST ( NULL AS INTEGER ) ) * + AVG ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT ALL MIN( ( + 3 ) )
----
3

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL MIN ( ( + 3 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT - COUNT( * ) + + + 93 * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-9639
SELECT - COUNT ( * ) + + + 93 * - COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT - COALESCE ( + COUNT( * ), - 15 ) * + 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9640
SELECT - COALESCE ( + COUNT ( * ), - 15 ) * + 40 AS col1
----
-40

query I rowsort
SELECT 78 - + 45
----
33

query I rowsort
SELECT ALL + 98 + + 69
----
167

query II rowsort
SELECT + + 66 AS col2, + 66
----
66
66

query I rowsort
SELECT DISTINCT - ( + 92 )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-9645
SELECT DISTINCT - 56 DIV 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT - 56 / 87 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL - 67 + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL - 67 + COUNT ( * )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT - COUNT( * ) * - 81 * - 23 AS col2
----
-1863

skipif mysql # not compatible
query I rowsort label-9647
SELECT - COUNT ( * ) * - 81 * - 23 AS col2
----
-1863

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL 41 + + - COUNT( DISTINCT - ( 17 ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL 41 + + - COUNT ( DISTINCT - ( 17 ) ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9649
SELECT DISTINCT CAST( + 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT CAST ( + 73 AS INTEGER )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT + - 30 + - 53 * + COUNT( * ) + + 61 + + + 89
----
67

skipif mysql # not compatible
query I rowsort label-9650
SELECT + - 30 + - 53 * + COUNT ( * ) + + 61 + + + 89
----
67

query I rowsort
SELECT DISTINCT + - 40 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT - - COUNT( * ) * + 56
----
56

skipif mysql # not compatible
query I rowsort label-9652
SELECT - - COUNT ( * ) * + 56
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT DISTINCT + 56 * + + COUNT( - - 87 )
----
56

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT + 56 * + + COUNT ( - - 87 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT DISTINCT - 94 * + 14 * - COUNT( * ) AS col0
----
1316

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT - 94 * + 14 * - COUNT ( * ) AS col0
----
1316

query I rowsort
SELECT ALL 42 col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT COUNT( * ) + + - 20 + + - COUNT( DISTINCT 74 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9656
SELECT COUNT ( * ) + + - 20 + + - COUNT ( DISTINCT 74 ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL + COUNT( * ) - 72 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL + COUNT ( * ) - 72 AS col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9658
SELECT + 55 col0, - CAST( NULL AS SIGNED ) AS col1
----
55
NULL

skipif mysql # not compatible
query II rowsort label-9658
SELECT + 55 col0, - CAST ( NULL AS INTEGER ) AS col1
----
55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT + COUNT( ALL + 5 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9659
SELECT + COUNT ( ALL + 5 ) col0
----
1

query I rowsort
SELECT - + 89 AS col1
----
-89

query I rowsort
SELECT - - ( 70 )
----
70

query I rowsort
SELECT ALL 10 + + 40
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9663
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) - + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) - + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL + ( + ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL + ( + ( + COUNT ( * ) ) )
----
1

query I rowsort
SELECT ALL 71 * 46 AS col1
----
3266

onlyif mysql # aggregate syntax: 
query II rowsort label-9666
SELECT ( + COUNT( * ) ) AS col2, - 77 AS col2
----
1
-77

skipif mysql # not compatible
query II rowsort label-9666
SELECT ( + COUNT ( * ) ) AS col2, - 77 AS col2
----
1
-77

query I rowsort
SELECT + + 37 * + + ( - 2 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL COUNT( + - 34 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL COUNT ( + - 34 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9669
SELECT 16 + + ( COUNT( * ) ) AS col2, 59 AS col2
----
17
59

skipif mysql # not compatible
query II rowsort label-9669
SELECT 16 + + ( COUNT ( * ) ) AS col2, 59 AS col2
----
17
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9670
SELECT ALL - CAST( - 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL - CAST ( - 77 AS INTEGER )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9671
SELECT ALL - CAST( - 50 AS SIGNED ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL - CAST ( - 50 AS INTEGER ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT ALL COUNT( * ) * - - 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL COUNT ( * ) * - - 11 AS col2
----
11

query I rowsort
SELECT 22 * - ( 83 ) AS col2
----
-1826

query I rowsort
SELECT ALL - ( - 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT DISTINCT - COUNT( * ) + - 78 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT - COUNT ( * ) + - 78 AS col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT + CAST( 40 AS SIGNED ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-9676
SELECT + CAST ( 40 AS INTEGER ) AS col2
----
40

query I rowsort
SELECT ALL 70 + + 56
----
126

query I rowsort
SELECT - COALESCE ( 19, + 88 ) AS col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9679
SELECT 32 DIV - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9679
SELECT 32 / - 71 AS col2
----
0

query I rowsort
SELECT ALL 6 * + 82
----
492

query I rowsort
SELECT ALL - 74 - + + 73 AS col1
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-9682
SELECT ALL 43 DIV - - ( + 95 )
----
0

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL 43 / - - ( + 95 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL + 14 * + COUNT( * ) + + 99
----
113

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL + 14 * + COUNT ( * ) + + 99
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9684
SELECT ( - CAST( - COUNT( * ) AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9684
SELECT ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2
----
1

query I rowsort
SELECT DISTINCT 24 * + ( 93 ) - + 1
----
2231

query I rowsort
SELECT ALL + 70 * - - 41
----
2870

query I rowsort
SELECT DISTINCT + 68 col0
----
68

query I rowsort
SELECT - ( + 93 ) col1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9689
SELECT 39 AS col1, - CAST( NULL AS SIGNED )
----
39
NULL

skipif mysql # not compatible
query II rowsort label-9689
SELECT 39 AS col1, - CAST ( NULL AS INTEGER )
----
39
NULL

query I rowsort
SELECT DISTINCT ( + 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT COUNT( * ) * 63 + ( + 43 ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-9691
SELECT COUNT ( * ) * 63 + ( + 43 ) AS col1
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT DISTINCT - 58 + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT - 58 + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 60 + - 44
----
16

query I rowsort
SELECT + + 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT - COUNT( ALL - 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-9695
SELECT - COUNT ( ALL - 50 )
----
-1

query I rowsort
SELECT ALL - - 90 - + + 30 + 86
----
146

query II rowsort
SELECT 26 - + 90, 47 AS col2
----
-64
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT MIN( ALL + 64 ) col1
----
64

skipif mysql # not compatible
query I rowsort label-9698
SELECT MIN ( ALL + 64 ) col1
----
64

query I rowsort
SELECT ALL + 87 * - 42
----
-3654

query I rowsort
SELECT - ( + + ( 42 ) ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT DISTINCT - + COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT - + COUNT ( * ) col0
----
-1

query I rowsort
SELECT + + 49 col2
----
49

query I rowsort
SELECT ALL - - ( 97 ) col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9704
SELECT + CAST( + MIN( ALL - + 4 ) AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-9704
SELECT + CAST ( + MIN ( ALL - + 4 ) AS INTEGER )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT MIN( ALL - 29 ) + + 30 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT MIN ( ALL - 29 ) + + 30 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9706
SELECT ( 7 ) DIV 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9706
SELECT ( 7 ) / 77 AS col1
----
0

query I rowsort
SELECT ALL 42 * + ( + 94 )
----
3948

query I rowsort
SELECT 76 - + + 25 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT - ( COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9709
SELECT - ( COUNT ( * ) ) col1
----
-1

query II rowsort
SELECT ALL + - 71, - 66 AS col1
----
-71
-66

query I rowsort
SELECT ALL + - 80 AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9712
SELECT + SUM( + 52 ) + 83 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT + SUM ( + 52 ) + 83 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT - CAST( NULL AS SIGNED ) + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9713
SELECT - CAST ( NULL AS INTEGER ) + - 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9714
SELECT DISTINCT - 62 DIV + - 30
----
2

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT - 62 / + - 30
----
2

query II rowsort
SELECT ALL 13 AS col0, 17
----
13
17

query I rowsort
SELECT ALL + + ( 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT ALL + SUM( ALL - 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL + SUM ( ALL - 96 ) AS col0
----
-96

query II rowsort
SELECT ALL + ( + - 3 ) AS col2, + 40 AS col0
----
-3
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT 1 - - MAX( - 36 )
----
-35

skipif mysql # not compatible
query I rowsort label-9719
SELECT 1 - - MAX ( - 36 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT - 59 - - COUNT( * ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-9720
SELECT - 59 - - COUNT ( * ) AS col1
----
-58

query I rowsort
SELECT 75 + 74
----
149

query I rowsort
SELECT 69 + + 84 AS col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT - SUM( DISTINCT + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-9723
SELECT - SUM ( DISTINCT + 25 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9724
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT SUM( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-9725
SELECT SUM ( 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT ALL - COUNT( * ) + - + COUNT( DISTINCT 73 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL - COUNT ( * ) + - + COUNT ( DISTINCT 73 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT ALL - - COUNT( * ) - - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL - - COUNT ( * ) - - - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL + ( - MIN( 6 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL + ( - MIN ( 6 ) )
----
-6

query I rowsort
SELECT - 41 + 75
----
34

query I rowsort
SELECT 14 * + 99 + + 96 AS col2
----
1482

query I rowsort
SELECT ALL + 20 * + - 96
----
-1920

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9732
SELECT CAST( + + 26 AS SIGNED ) AS col2, - ( + - CAST( NULL AS SIGNED ) )
----
26
NULL

skipif mysql # not compatible
query II rowsort label-9732
SELECT CAST ( + + 26 AS INTEGER ) AS col2, - ( + - CAST ( NULL AS INTEGER ) )
----
26
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9733
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - 39
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-9733
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - 39
----
NULL
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT ALL + 61 + - 29 * - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL + 61 + - 29 * - + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT ALL + COUNT( + 24 )
----
1

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL + COUNT ( + 24 )
----
1

query II rowsort
SELECT + + 25 AS col0, 19
----
25
19

query I rowsort
SELECT - ( + + 96 ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT + + MIN( + - 43 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT + + MIN ( + - 43 ) AS col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9739
SELECT CAST( NULL AS SIGNED ) * - - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT CAST ( NULL AS INTEGER ) * - - 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT 98 * COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-9740
SELECT 98 * COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT - COUNT( + 17 ) + - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9741
SELECT - COUNT ( + 17 ) + - - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ( - 64 ) AS col2
----
-64

query I rowsort
SELECT ALL - + 3 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL COUNT( * ) * + - 7
----
-7

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL COUNT ( * ) * + - 7
----
-7

query II rowsort
SELECT 82 AS col1, - 77 AS col0
----
82
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9746
SELECT COUNT( * ) + - 57 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT COUNT ( * ) + - 57 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT MIN( ALL + - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-9747
SELECT MIN ( ALL + - 12 )
----
-12

query I rowsort
SELECT DISTINCT - + 34 * + - 73
----
2482

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT + MIN( 80 )
----
80

skipif mysql # not compatible
query I rowsort label-9749
SELECT + MIN ( 80 )
----
80

query I rowsort
SELECT ALL + + 24 AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9751
SELECT - COUNT( * ) DIV - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9751
SELECT - COUNT ( * ) / - COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT DISTINCT + 14 * + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT + 14 * + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9753
SELECT - NULLIF ( - - 67, - + CAST( - COUNT( * ) AS DECIMAL ) ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9753
SELECT - NULLIF ( - - 67, - + CAST ( - COUNT ( * ) AS REAL ) ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL - MAX( - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL - MAX ( - 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL - COUNT( DISTINCT + + 67 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - COUNT ( DISTINCT + + 67 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT DISTINCT - - MAX( - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT - - MAX ( - 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT - COUNT( + + 19 ) * - - 86 + - 89 col0
----
-175

skipif mysql # not compatible
query I rowsort label-9757
SELECT - COUNT ( + + 19 ) * - - 86 + - 89 col0
----
-175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9758
SELECT 62 DIV + COUNT( * ) col1
----
62

skipif mysql # not compatible
query I rowsort label-9758
SELECT 62 / + COUNT ( * ) col1
----
62

query II rowsort
SELECT DISTINCT - 0 AS col0, ( + - 38 )
----
0
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT ALL MAX( - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL MAX ( - 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT + MAX( ALL + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-9761
SELECT + MAX ( ALL + 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT DISTINCT + COUNT( * ) + 46 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT + COUNT ( * ) + 46 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT + ( + - 0 ) + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9763
SELECT + ( + - 0 ) + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT + + 3 - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9764
SELECT + + 3 - COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9765
SELECT COUNT( * ), COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-9765
SELECT COUNT ( * ), COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT - COUNT( * ) * + - 5
----
5

skipif mysql # not compatible
query I rowsort label-9766
SELECT - COUNT ( * ) * + - 5
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9767
SELECT 67 DIV + 5
----
13

skipif mysql # not compatible
query I rowsort label-9767
SELECT 67 / + 5
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT COUNT( * ) * + - ( + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9768
SELECT COUNT ( * ) * + - ( + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT ALL 72 + + 28
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT COUNT( * ) * - 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9770
SELECT COUNT ( * ) * - 53 AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9771
SELECT ALL + CAST( NULL AS SIGNED ) / CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL + CAST ( NULL AS INTEGER ) / CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT ALL - MIN( DISTINCT - + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL - MIN ( DISTINCT - + 54 )
----
54

query I rowsort
SELECT ALL + 87 + + 26 AS col0
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT ALL + + 91 / + - CAST( NULL AS SIGNED ) / + ( + 59 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + + 91 / + - CAST ( NULL AS INTEGER ) / + ( + 59 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - 77
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9776
SELECT ALL + + 96 / - + COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL + + 96 / - + COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9777
SELECT ALL + AVG ( + + 87 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL + AVG ( + + 87 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT + 41 * + COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9778
SELECT + 41 * + COUNT ( * ) AS col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9779
SELECT DISTINCT CAST( + 56 AS SIGNED ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT CAST ( + 56 AS INTEGER ) AS col0
----
56

query I rowsort
SELECT ALL 52 + - - 71
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT ALL COUNT( * ) * - 22
----
-22

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL COUNT ( * ) * - 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT + - COUNT( * ) + + 66 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9782
SELECT + - COUNT ( * ) + + 66 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT + COUNT( * ) + - 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9783
SELECT + COUNT ( * ) + - 1 AS col1
----
0

query I rowsort
SELECT ALL + + 82 AS col2
----
82

query I rowsort
SELECT + ( + 4 ) AS col1
----
4

query I rowsort
SELECT ALL - + 68 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT 42 * - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-9787
SELECT 42 * - COUNT ( * )
----
-42

query I rowsort
SELECT ALL + 63 + - + 67 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT DISTINCT 40 - COUNT( * ) * - 24 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT 40 - COUNT ( * ) * - 24 AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9790
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * - 61
----
61

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * - 61
----
61

query I rowsort
SELECT - 82 * 31
----
-2542

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT COUNT( * ) + 38 * - ( + COUNT( * ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-9792
SELECT COUNT ( * ) + 38 * - ( + COUNT ( * ) ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT + ( + 82 ) + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-9793
SELECT + ( + 82 ) + + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT COUNT( DISTINCT 77 )
----
1

skipif mysql # not compatible
query I rowsort label-9794
SELECT COUNT ( DISTINCT 77 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9795
SELECT - COALESCE ( + COUNT( * ), + COUNT( * ) ) AS col2, 6 col0
----
-1
6

skipif mysql # not compatible
query II rowsort label-9795
SELECT - COALESCE ( + COUNT ( * ), + COUNT ( * ) ) AS col2, 6 col0
----
-1
6

query I rowsort
SELECT + 75 + - 59
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9797
SELECT + SUM( DISTINCT - 68 ) + - CAST( + 53 AS SIGNED )
----
-121

skipif mysql # not compatible
query I rowsort label-9797
SELECT + SUM ( DISTINCT - 68 ) + - CAST ( + 53 AS INTEGER )
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT - NULLIF ( - COUNT( * ), + 99 ) * - COUNT( * ) * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9798
SELECT - NULLIF ( - COUNT ( * ), + 99 ) * - COUNT ( * ) * + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT - 40 * COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-9799
SELECT - 40 * COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9800
SELECT ALL + MIN( + - 79 ), 67 AS col1
----
-79
67

skipif mysql # not compatible
query II rowsort label-9800
SELECT ALL + MIN ( + - 79 ), 67 AS col1
----
-79
67

query I rowsort
SELECT - ( - + 96 ) AS col0
----
96

query I rowsort
SELECT DISTINCT + 66 + - 21 col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL NULLIF ( - 14, ( 69 ) - 60 ) + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL NULLIF ( - 14, ( 69 ) - 60 ) + COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT COUNT( * ) * - 52 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-9804
SELECT COUNT ( * ) * - 52 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT - - COUNT( * ) * + COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9805
SELECT - - COUNT ( * ) * + COUNT ( * ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT ALL - MIN( DISTINCT 11 ) * 45
----
-495

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL - MIN ( DISTINCT 11 ) * 45
----
-495

onlyif mysql # DIV for integer division: 
query I rowsort label-9807
SELECT - 83 DIV + 73
----
-1

skipif mysql # not compatible
query I rowsort label-9807
SELECT - 83 / + 73
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT + SUM( ALL + - 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9808
SELECT + SUM ( ALL + - 55 ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL + MAX( ALL - 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL + MAX ( ALL - 28 ) AS col1
----
-28

query I rowsort
SELECT + ( + 84 ) AS col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9811
SELECT DISTINCT 11 DIV 11
----
1

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT 11 / 11
----
1

query I rowsort
SELECT ( + 0 ) col0
----
0

query I rowsort
SELECT ALL COALESCE ( 51, 42 ) AS col1
----
51

query I rowsort
SELECT - 84 * - + 9 AS col0
----
756

query I rowsort
SELECT ALL - 51 * 90 AS col2
----
-4590

query I rowsort
SELECT DISTINCT ( - - 80 ) AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9817
SELECT ALL 17 DIV - - 29 + + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL 17 / - - 29 + + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9818
SELECT COUNT( * ), + CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9818
SELECT COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT COALESCE ( + 65, + + COUNT( * ) + + COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-9819
SELECT COALESCE ( + 65, + + COUNT ( * ) + + COUNT ( * ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT ALL ( - - 29 ) * - 44 * - COUNT( * )
----
1276

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL ( - - 29 ) * - 44 * - COUNT ( * )
----
1276

query II rowsort
SELECT DISTINCT 21 col2, 24
----
21
24

query I rowsort
SELECT ALL - - 0 * + 7 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT - 8 DIV - 3 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9823
SELECT - 8 / - 3 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT ALL + COUNT( * ) - - - 51
----
-50

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL + COUNT ( * ) - - - 51
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT DISTINCT - - ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT - - ( COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT ALL 80 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL 80 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 87 AS col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9828
SELECT ( - + 15 ) - + CAST( NULL AS SIGNED ) * + + 34 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT ( - + 15 ) - + CAST ( NULL AS INTEGER ) * + + 34 col0
----
NULL

query I rowsort
SELECT DISTINCT 26 col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT DISTINCT MAX( - - 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT MAX ( - - 30 ) AS col2
----
30

query I rowsort
SELECT + ( - 1 ) col1
----
-1

query I rowsort
SELECT + 51 * 58
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL + MAX( + - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL + MAX ( + - 55 )
----
-55

query I rowsort
SELECT ( - 73 ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT - 32 * + 77 + - COUNT( * ) - - 24 AS col2
----
-2441

skipif mysql # not compatible
query I rowsort label-9835
SELECT - 32 * + 77 + - COUNT ( * ) - - 24 AS col2
----
-2441

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT ALL + ( + + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL + ( + + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9837
SELECT DISTINCT - COUNT( * ) DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT - COUNT ( * ) / + 59
----
0

query I rowsort
SELECT 89 * - - 27 AS col2
----
2403

query II rowsort
SELECT ALL - 78 AS col1, 17 AS col1
----
-78
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT DISTINCT - COUNT( DISTINCT 17 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT - COUNT ( DISTINCT 17 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 89 * - 38 AS col1
----
3382

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT DISTINCT + MIN( + + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT + MIN ( + + 68 ) AS col2
----
68

query I rowsort
SELECT + ( 67 ) AS col2
----
67

query I rowsort
SELECT ALL - 61 * - - 58 AS col2
----
-3538

query I rowsort
SELECT - + 89 * 74
----
-6586

query I rowsort
SELECT DISTINCT ( - - 2 ) col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT ALL - ( ( - COUNT( * ) ) ) * 15 + MAX( - 20 )
----
-5

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL - ( ( - COUNT ( * ) ) ) * 15 + MAX ( - 20 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9848
SELECT - COUNT( * ) + + - 44 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT - COUNT ( * ) + + - 44 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - + 45 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT 99 + + COUNT( * ) col2
----
100

skipif mysql # not compatible
query I rowsort label-9850
SELECT 99 + + COUNT ( * ) col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT DISTINCT - 29 * + + COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT - 29 * + + COUNT ( * ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ALL - 20 + + 78 + - COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL - 20 + + 78 + - COUNT ( * ) AS col2
----
57

query II rowsort
SELECT 12, 20 + - 94 AS col1
----
12
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9854
SELECT ALL - 19 DIV - - 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL - 19 / - - 28 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT MAX( - 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9855
SELECT MAX ( - 87 ) AS col2
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9856
SELECT - AVG ( ALL CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9856
SELECT - AVG ( ALL CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9857
SELECT COUNT( * ) DIV 49 * - 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9857
SELECT COUNT ( * ) / 49 * - 21 AS col2
----
0

query I rowsort
SELECT DISTINCT 75 + - 13 col2
----
62

query I rowsort
SELECT ALL 74 + + 23
----
97

query I rowsort
SELECT + - 77 * + - ( - 64 ) + - 13
----
-4941

query I rowsort
SELECT + 33 * + 90
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT DISTINCT COUNT( * ) + + + 53 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT COUNT ( * ) + + + 53 AS col2
----
54

query I rowsort
SELECT 99 * + + 26 AS col2
----
2574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9864
SELECT ALL - 61 + - - COUNT( * ) + 66 DIV - - 79 * 43
----
-60

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL - 61 + - - COUNT ( * ) + 66 / - - 79 * 43
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL + 71 - + + COUNT( * ) - - - COUNT( * ) col2
----
69

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL + 71 - + + COUNT ( * ) - - - COUNT ( * ) col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT ALL ( - COUNT( * ) ) * + - 13
----
13

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL ( - COUNT ( * ) ) * + - 13
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9867
SELECT ALL + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9868
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * 44
----
NULL

query I rowsort
SELECT ALL - + 30 AS col0
----
-30

query I rowsort
SELECT + + ( ( + 87 ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT DISTINCT COUNT( * ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT COUNT ( * ) - + COUNT ( * )
----
0

query I rowsort
SELECT - 55 * - 83
----
4565

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT ALL + + COUNT( * ) + + 6 + - 25 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL + + COUNT ( * ) + + 6 + - 25 AS col2
----
-18

query I rowsort
SELECT + ( ( + - 63 ) ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL COUNT( * ) * MIN( - - 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL COUNT ( * ) * MIN ( - - 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT - 50 * + COUNT( DISTINCT 16 )
----
-50

skipif mysql # not compatible
query I rowsort label-9876
SELECT - 50 * + COUNT ( DISTINCT 16 )
----
-50

query I rowsort
SELECT DISTINCT - 34 col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT COUNT( * ) * + 61
----
61

skipif mysql # not compatible
query I rowsort label-9878
SELECT COUNT ( * ) * + 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT - MIN( + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-9879
SELECT - MIN ( + 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT ALL - MAX( + 71 ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL - MAX ( + 71 ) col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT MAX( DISTINCT + 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9881
SELECT MAX ( DISTINCT + 36 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT DISTINCT - SUM( - 58 ) + - - 86
----
144

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT - SUM ( - 58 ) + - - 86
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT - SUM( ALL + - 44 ) col0
----
44

skipif mysql # not compatible
query I rowsort label-9883
SELECT - SUM ( ALL + - 44 ) col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT + COUNT( * ) * - - 90
----
90

skipif mysql # not compatible
query I rowsort label-9884
SELECT + COUNT ( * ) * - - 90
----
90

query I rowsort
SELECT ( + 50 )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9886
SELECT 53 DIV 1 + + + 46 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9886
SELECT 53 / 1 + + + 46 AS col1
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9887
SELECT ALL + COUNT( 54 ), - 4 AS col0
----
1
-4

skipif mysql # not compatible
query II rowsort label-9887
SELECT ALL + COUNT ( 54 ), - 4 AS col0
----
1
-4

query I rowsort
SELECT + - 32 - + 79 + - + 69 col1
----
-180

query II rowsort
SELECT - 90 AS col1, + 36 AS col0
----
-90
36

query I rowsort
SELECT - - 35 * - - 31 AS col1
----
1085

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT - SUM( 73 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9891
SELECT - SUM ( 73 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT ALL - - MAX( DISTINCT 37 )
----
37

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL - - MAX ( DISTINCT 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT - COUNT( * ) * 64
----
-64

skipif mysql # not compatible
query I rowsort label-9893
SELECT - COUNT ( * ) * 64
----
-64

query I rowsort
SELECT ALL - - 76 AS col1
----
76

query I rowsort
SELECT ALL - - 17 col1
----
17

query I rowsort
SELECT DISTINCT - 94 + - - 7 AS col0
----
-87

query I rowsort
SELECT ALL - ( + 28 ) col2
----
-28

query I rowsort
SELECT 8 + - 21
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT 71 + + - 56 + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-9899
SELECT 71 + + - 56 + COUNT ( * )
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9900
SELECT ALL + + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL + + CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT DISTINCT + - 50 col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9902
SELECT ALL + MIN( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL + MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT SUM( + 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9903
SELECT SUM ( + 32 ) AS col0
----
32

query I rowsort
SELECT + 11 + - 80
----
-69

query II rowsort
SELECT 56 AS col0, 49
----
56
49

query I rowsort
SELECT - ( - - 55 ) AS col2
----
-55

query I rowsort
SELECT - ( + 51 ) AS col2
----
-51

query I rowsort
SELECT + + 88 col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT - 35 * - + 2 + COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9909
SELECT - 35 * - + 2 + COUNT ( * ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT 42 + - + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-9910
SELECT 42 + - + COUNT ( * )
----
41

query II rowsort
SELECT 97 * + 83, 20 AS col2
----
8051
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT 46 * - MIN( + 27 )
----
-1242

skipif mysql # not compatible
query I rowsort label-9912
SELECT 46 * - MIN ( + 27 )
----
-1242

onlyif mysql # aggregate syntax: 
query II rowsort label-9913
SELECT DISTINCT + COUNT( * ) AS col2, 44 AS col1
----
1
44

skipif mysql # not compatible
query II rowsort label-9913
SELECT DISTINCT + COUNT ( * ) AS col2, 44 AS col1
----
1
44

query I rowsort
SELECT ALL + 69 + 64 AS col0
----
133

query I rowsort
SELECT ( - ( + 73 ) ) col2
----
-73

query II rowsort
SELECT ALL + 70 AS col1, 24
----
70
24

query I rowsort
SELECT + ( 66 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT + + MIN( DISTINCT - + ( - - 54 ) ) + 79
----
25

skipif mysql # not compatible
query I rowsort label-9918
SELECT + + MIN ( DISTINCT - + ( - - 54 ) ) + 79
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9919
SELECT + 63 DIV COUNT( * ) + + COUNT( ALL + 54 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-9919
SELECT + 63 / COUNT ( * ) + + COUNT ( ALL + 54 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT ALL - SUM( - - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL - SUM ( - - 49 )
----
-49

query I rowsort
SELECT + CASE WHEN NULL IS NULL THEN + 61 END
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT - - COUNT( * ) * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9922
SELECT - - COUNT ( * ) * + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9923
SELECT DISTINCT - ( - 48 ) + + MAX( + 60 ) col1, 24
----
108
24

skipif mysql # not compatible
query II rowsort label-9923
SELECT DISTINCT - ( - 48 ) + + MAX ( + 60 ) col1, 24
----
108
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT - MIN( ALL + - ( + 46 ) )
----
46

skipif mysql # not compatible
query I rowsort label-9924
SELECT - MIN ( ALL + - ( + 46 ) )
----
46

query I rowsort
SELECT ALL 40 + - 22 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT + COUNT( * ) + ( + COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-9926
SELECT + COUNT ( * ) + ( + COUNT ( * ) )
----
2

query I rowsort
SELECT DISTINCT + 50 AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9928
SELECT DISTINCT CAST( - - ( - + CAST( NULL AS SIGNED ) ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT CAST ( - - ( - + CAST ( NULL AS INTEGER ) ) AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT - SUM( DISTINCT + 17 ) col2
----
-17

skipif mysql # not compatible
query I rowsort label-9929
SELECT - SUM ( DISTINCT + 17 ) col2
----
-17

query I rowsort
SELECT ALL 56 + - 13
----
43

query I rowsort
SELECT DISTINCT - + 82 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL 56 * COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL 56 * COUNT ( * ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT DISTINCT MAX( ALL 97 ) * + 52 AS col1
----
5044

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT MAX ( ALL 97 ) * + 52 AS col1
----
5044

query I rowsort
SELECT 21 + - - 3
----
24

query II rowsort
SELECT ALL 59 AS col2, 14
----
59
14

query I rowsort
SELECT - 7 * - + 63 AS col1
----
441

query I rowsort
SELECT DISTINCT ( + + 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9938
SELECT + COUNT( * ) DIV + + 30
----
0

skipif mysql # not compatible
query I rowsort label-9938
SELECT + COUNT ( * ) / + + 30
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9939
SELECT DISTINCT + CAST( + - 3 AS SIGNED ), - 58 AS col2
----
-3
-58

skipif mysql # not compatible
query II rowsort label-9939
SELECT DISTINCT + CAST ( + - 3 AS INTEGER ), - 58 AS col2
----
-3
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT ALL + + SUM( - 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL + + SUM ( - 10 ) AS col1
----
-10

query I rowsort
SELECT + - 70 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT DISTINCT - 46 * - COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT - 46 * - COUNT ( * ) AS col1
----
46

query I rowsort
SELECT - 16 * - - 85 AS col1
----
-1360

query I rowsort
SELECT - 45 + + - 14 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT MAX( - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-9945
SELECT MAX ( - 10 )
----
-10

query I rowsort
SELECT ALL - 7 * + 45
----
-315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9947
SELECT CAST( 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-9947
SELECT CAST ( 3 AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9948
SELECT DISTINCT - 73 AS col2, COUNT( * ) AS col1
----
-73
1

skipif mysql # not compatible
query II rowsort label-9948
SELECT DISTINCT - 73 AS col2, COUNT ( * ) AS col1
----
-73
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9949
SELECT CAST( - 70 AS SIGNED ) DIV 42 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9949
SELECT CAST ( - 70 AS INTEGER ) / 42 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT 25 DIV + - 62 * + 8
----
0

skipif mysql # not compatible
query I rowsort label-9950
SELECT 25 / + - 62 * + 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL + COUNT( * ) + + 14
----
15

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL + COUNT ( * ) + + 14
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL - COUNT( DISTINCT 10 ) + + 71 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL - COUNT ( DISTINCT 10 ) + + 71 AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9953
SELECT - COUNT( * ) AS col1, + ( - 93 ) + + 7 + - - CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9953
SELECT - COUNT ( * ) AS col1, + ( - 93 ) + + 7 + - - CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

query I rowsort
SELECT ALL + 50 * - 75
----
-3750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9955
SELECT - ( COUNT( * ) ) DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-9955
SELECT - ( COUNT ( * ) ) / - 81
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT + 44 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT + 44 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT ALL + CAST( + 12 AS SIGNED ) - + 83 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL + CAST ( + 12 AS INTEGER ) - + 83 AS col0
----
-71

query II rowsort
SELECT ALL 45 * 92, - 80 AS col1
----
4140
-80

query II rowsort
SELECT ALL + 86 AS col1, - 23 AS col0
----
86
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9960
SELECT DISTINCT + CAST( + + COUNT( * ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT + CAST ( + + COUNT ( * ) AS INTEGER ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT ALL - CAST( NULL AS SIGNED ) * 55 - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL - CAST ( NULL AS INTEGER ) * 55 - + 50
----
NULL

query I rowsort
SELECT + ( + ( - 56 ) )
----
-56

query I rowsort
SELECT ALL - ( + 80 ) AS col1
----
-80

query I rowsort
SELECT ALL 50 * + + 63 * 4
----
12600

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL - 88 + COUNT( * ) + - 63 AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL - 88 + COUNT ( * ) + - 63 AS col1
----
-150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9966
SELECT + 42 + - CAST( NULL AS DECIMAL ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT + 42 + - CAST ( NULL AS REAL ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL - MAX( ALL - 92 ) col0
----
92

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL - MAX ( ALL - 92 ) col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT COUNT( * ) * + 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9968
SELECT COUNT ( * ) * + 35 AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9969
SELECT + MAX( ALL + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9969
SELECT + MAX ( ALL + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9970
SELECT 1 AS col1, - MIN( - 45 )
----
1
45

skipif mysql # not compatible
query II rowsort label-9970
SELECT 1 AS col1, - MIN ( - 45 )
----
1
45

query I rowsort
SELECT DISTINCT - ( - ( + 85 ) ) AS col1
----
85

query I rowsort
SELECT - ( 15 ) AS col1
----
-15

query II rowsort
SELECT + 92 AS col2, 71
----
92
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT DISTINCT MAX( DISTINCT - + 58 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT MAX ( DISTINCT - + 58 ) AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9975
SELECT CAST( - ( - - 87 ) AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-9975
SELECT CAST ( - ( - - 87 ) AS INTEGER )
----
-87

query I rowsort
SELECT + COALESCE ( - - 37, - 9 )
----
37

query I rowsort
SELECT + - ( - 28 ) + - + 90
----
-62

query I rowsort
SELECT ALL - - 13 col2
----
13

query I rowsort
SELECT DISTINCT - ( ( 18 ) )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT - MIN( DISTINCT - + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-9980
SELECT - MIN ( DISTINCT - + 49 )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9981
SELECT DISTINCT + COUNT( * ) DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT + COUNT ( * ) / 91 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT ALL 76 * - 74 - - 69 + CAST( + 75 AS SIGNED ) col1
----
-5480

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL 76 * - 74 - - 69 + CAST ( + 75 AS INTEGER ) col1
----
-5480

query I rowsort
SELECT + - ( ( - 85 ) )
----
85

query I rowsort
SELECT ALL + + ( 71 ) AS col0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9985
SELECT + 63 DIV - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9985
SELECT + 63 / - 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT - MIN( DISTINCT - NULLIF ( - 61, + + 77 ) ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-9986
SELECT - MIN ( DISTINCT - NULLIF ( - 61, + + 77 ) ) AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9987
SELECT ALL - 14 DIV CAST( + 42 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL - 14 / CAST ( + 42 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT ( - 90 ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT DISTINCT + COUNT( ALL + 10 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT + COUNT ( ALL + 10 ) AS col1
----
1

query I rowsort
SELECT ALL - 36 * - 14 + 64
----
568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * 4 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * 4 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT + CAST( NULL AS SIGNED ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-9992
SELECT + CAST ( NULL AS INTEGER ) * - 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT - - COUNT( 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9993
SELECT - - COUNT ( 49 ) AS col0
----
1

query I rowsort
SELECT 83 * 39
----
3237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT CAST( + 57 AS SIGNED ) col0
----
57

skipif mysql # not compatible
query I rowsort label-9995
SELECT CAST ( + 57 AS INTEGER ) col0
----
57

query I rowsort
SELECT - + ( 58 )
----
-58

query I rowsort
SELECT DISTINCT + 53 * ( 48 )
----
2544

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT DISTINCT + COUNT( * ) * 26 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT + COUNT ( * ) * 26 AS col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT AVG ( DISTINCT + 57 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT AVG ( DISTINCT + 57 ) * CAST ( NULL AS INTEGER )
----
NULL

