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 # CAST syntax: SIGNED type: 
query II rowsort label-0
SELECT - - 85 * - + CAST( NULL AS SIGNED ) + 47 + + 32 AS col2, 89 AS col0
----
NULL
89

skipif mysql # not compatible
query II rowsort label-0
SELECT - - 85 * - + CAST ( NULL AS INTEGER ) + 47 + + 32 AS col2, 89 AS col0
----
NULL
89

query I rowsort
SELECT - + 16 + 0 + 40
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT - + SUM( + - 86 ) col0
----
86

skipif mysql # not compatible
query I rowsort label-2
SELECT - + SUM ( + - 86 ) col0
----
86

query I rowsort
SELECT ALL - NULLIF ( + 11, + 95 + + - 4 ) AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4
SELECT ( - + CAST( + SUM( - + 37 ) AS SIGNED ) )
----
37

skipif mysql # not compatible
query I rowsort label-4
SELECT ( - + CAST ( + SUM ( - + 37 ) AS INTEGER ) )
----
37

query I rowsort
SELECT - - 41 + + 91 + ( - 47 ) * 43 AS col2
----
-1889

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

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

query I rowsort
SELECT - - 25 * 72 AS col0
----
1800

query I rowsort
SELECT - 1 + + + 56
----
55

query I rowsort
SELECT DISTINCT - + 85 * + 3
----
-255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-10
SELECT DISTINCT - + 68 DIV - MAX( 45 )
----
1

skipif mysql # not compatible
query I rowsort label-10
SELECT DISTINCT - + 68 / - MAX ( 45 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT ALL + COUNT( * ) * + - 15 * + 40 AS col1
----
-600

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL + COUNT ( * ) * + - 15 * + 40 AS col1
----
-600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-12
SELECT - 35, COUNT( * ) + - 63 DIV - 93 * 45 AS col2
----
-35
1

skipif mysql # not compatible
query II rowsort label-12
SELECT - 35, COUNT ( * ) + - 63 / - 93 * 45 AS col2
----
-35
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-13
SELECT ALL - 70 * ( - ( + 83 ) ) AS col2, COUNT( * ) DIV + + COUNT( DISTINCT - 86 ) AS col2
----
5810
1

skipif mysql # not compatible
query II rowsort label-13
SELECT ALL - 70 * ( - ( + 83 ) ) AS col2, COUNT ( * ) / + + COUNT ( DISTINCT - 86 ) AS col2
----
5810
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-14
SELECT DISTINCT + COALESCE ( + NULLIF ( + + 46, + 80 ), COUNT( * ) * MIN( - 61 ) * + 53 + + + COUNT( * ) * 9 * 37 + 2 + + 16 + + COUNT( ALL - 29 ) * + 59 DIV + 16, 4, + 88 ) + ( - 9 ) * + 60 AS col2
----
-494

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT + COALESCE ( + NULLIF ( + + 46, + 80 ), COUNT ( * ) * MIN ( - 61 ) * + 53 + + + COUNT ( * ) * 9 * 37 + 2 + + 16 + + COUNT ( ALL - 29 ) * + 59 / + 16, 4, + 88 ) + ( - 9 ) * + 60 AS col2
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT - MIN( + 81 ) + + - 0 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-15
SELECT - MIN ( + 81 ) + + - 0 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT DISTINCT - COUNT( + - 43 ) + + 31 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT - COUNT ( + - 43 ) + + 31 AS col2
----
30

query I rowsort
SELECT ALL + 96 + 12 + - 94
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-18
SELECT 71 DIV + 45 AS col1, 88 - - - CASE + 88 WHEN 65 + 55 THEN + - 30 ELSE NULL END + 80 DIV + + 10
----
1
NULL

skipif mysql # not compatible
query II rowsort label-18
SELECT 71 / + 45 AS col1, 88 - - - CASE + 88 WHEN 65 + 55 THEN + - 30 ELSE NULL END + 80 / + + 10
----
1
NULL

query I rowsort
SELECT ALL + 69 + ( + - 92 )
----
-23

query I rowsort
SELECT 52 + - - 74 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT DISTINCT 89 + + + CASE WHEN NOT 51 <> 27 THEN - + 86 END - - - 55 + + 80 * - MIN( + 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT 89 + + + CASE WHEN NOT 51 <> 27 THEN - + 86 END - - - 55 + + 80 * - MIN ( + 38 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT + COUNT( * ) * + - ( 68 ) - + 2 + - - 92 * + 27
----
2414

skipif mysql # not compatible
query I rowsort label-22
SELECT + COUNT ( * ) * + - ( 68 ) - + 2 + - - 92 * + 27
----
2414

query I rowsort
SELECT ALL - COALESCE ( + 42, 96 )
----
-42

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

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

query I rowsort
SELECT ALL 76 * 7 AS col2
----
532

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

skipif mysql # not compatible
query I rowsort label-26
SELECT 96 + - - 69 * - - CAST ( NULL AS INTEGER ) * - - ( - MAX ( DISTINCT 61 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-27
SELECT ALL 88 - - - ( + + 78 ) AS col2, - COUNT( * ) * - - 36 AS col1, + + NULLIF ( + CAST( NULL AS SIGNED ), COUNT( * ) + AVG ( 70 ) + 75 + - CAST( + ( 78 ) AS SIGNED ) * - + 22 )
----
10
-36
NULL

skipif mysql # not compatible
query III rowsort label-27
SELECT ALL 88 - - - ( + + 78 ) AS col2, - COUNT ( * ) * - - 36 AS col1, + + NULLIF ( + CAST ( NULL AS INTEGER ), COUNT ( * ) + AVG ( 70 ) + 75 + - CAST ( + ( 78 ) AS INTEGER ) * - + 22 )
----
10
-36
NULL

query I rowsort
SELECT ( - + 89 ) * 67 + - 62
----
-6025

query I rowsort
SELECT 2 * 19 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT 86 + + + 38 * + 37 * - COUNT( ALL 22 ) + - + 73 * COUNT( * )
----
-1393

skipif mysql # not compatible
query I rowsort label-30
SELECT 86 + + + 38 * + 37 * - COUNT ( ALL 22 ) + - + 73 * COUNT ( * )
----
-1393

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT 35 * - COUNT( * ) - + - 13 + 57 * - NULLIF ( + - 80, + + NULLIF ( - + 44, 34 * 80 + - MIN( + 73 ) ) ) + + 1
----
4539

skipif mysql # not compatible
query I rowsort label-31
SELECT 35 * - COUNT ( * ) - + - 13 + 57 * - NULLIF ( + - 80, + + NULLIF ( - + 44, 34 * 80 + - MIN ( + 73 ) ) ) + + 1
----
4539

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT ALL ( + 54 ) - + 69 - + + ( MIN( - 73 ) )
----
58

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL ( + 54 ) - + 69 - + + ( MIN ( - 73 ) )
----
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT 81 * + + 49 * + 23 * + 70 + - COUNT( DISTINCT + 64 ) AS col1
----
6390089

skipif mysql # not compatible
query I rowsort label-34
SELECT 81 * + + 49 * + 23 * + 70 + - COUNT ( DISTINCT + 64 ) AS col1
----
6390089

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-35
SELECT ALL + MAX( ALL - ( + 30 ) ) DIV 96 * - - 10 * - 94
----
0

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL + MAX ( ALL - ( + 30 ) ) / 96 * - - 10 * - 94
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-36
SELECT DISTINCT - + MIN( - + 45 ), + MAX( DISTINCT 53 ) * MAX( 72 ) * 34 + + - 38 + - 97 * - ( + + CASE 64 WHEN + - 35 THEN 44 ELSE NULL END ) * 74 + 74 + 10 + + 32 * + 80 AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-36
SELECT DISTINCT - + MIN ( - + 45 ), + MAX ( DISTINCT 53 ) * MAX ( 72 ) * 34 + + - 38 + - 97 * - ( + + CASE 64 WHEN + - 35 THEN 44 ELSE NULL END ) * 74 + 74 + 10 + + 32 * + 80 AS col2
----
45
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-37
SELECT + COALESCE ( COUNT( * ), + - COUNT( * ) ) AS col2, COUNT( * ) DIV - 80 + + 45 + 62 * - COUNT( * ) AS col0
----
1
-17

skipif mysql # not compatible
query II rowsort label-37
SELECT + COALESCE ( COUNT ( * ), + - COUNT ( * ) ) AS col2, COUNT ( * ) / - 80 + + 45 + 62 * - COUNT ( * ) AS col0
----
1
-17

query I rowsort
SELECT 67 + + + 78
----
145

query I rowsort
SELECT ALL 33 * 8
----
264

query I rowsort
SELECT - 2 + + 86
----
84

query I rowsort
SELECT + ( - 22 ) + - 99
----
-121

query I rowsort
SELECT ALL 90 * + + 88 AS col2
----
7920

onlyif mysql # aggregate syntax: 
query II rowsort label-43
SELECT ALL - CASE 12 WHEN - 87 * - 69 + + + 68 + 41 THEN - + 90 + + 79 END * + - COUNT( * ) * + 93 col0, MAX( ALL 50 )
----
NULL
50

skipif mysql # not compatible
query II rowsort label-43
SELECT ALL - CASE 12 WHEN - 87 * - 69 + + + 68 + 41 THEN - + 90 + + 79 END * + - COUNT ( * ) * + 93 col0, MAX ( ALL 50 )
----
NULL
50

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

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

query I rowsort
SELECT + 52 + + 37 * + 41 AS col2
----
1569

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT DISTINCT - 82 + - MIN( ALL - ( - - COALESCE ( 66, - 30, + 76 ) ) )
----
-16

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT - 82 + - MIN ( ALL - ( - - COALESCE ( 66, - 30, + 76 ) ) )
----
-16

query I rowsort
SELECT ( + ( + 95 ) ) + + 84
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT ALL 2 + 4 * - - COALESCE ( - COALESCE ( - ( ( - 2 ) ), + 21, + - 30 ), COUNT( * ), + + 85 ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL 2 + 4 * - - COALESCE ( - COALESCE ( - ( ( - 2 ) ), + 21, + - 30 ), COUNT ( * ), + + 85 ) col1
----
-6

query I rowsort
SELECT ALL + 10 + - 96 AS col2
----
-86

query I rowsort
SELECT ( - 40 ) + - 28
----
-68

query I rowsort
SELECT 45 - + 15 AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-52
SELECT ALL - 38 DIV - ( - 80 ) * 84
----
0

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL - 38 / - ( - 80 ) * 84
----
0

query I rowsort
SELECT 52 + - 5 AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-54
SELECT 87 + - + 42 + 18 * - + NULLIF ( + 88, - COUNT( * ) + + COUNT( ALL 25 ) ) * - ( - 65 ) + - 23, - 51 AS col0
----
-102938
-51

skipif mysql # not compatible
query II rowsort label-54
SELECT 87 + - + 42 + 18 * - + NULLIF ( + 88, - COUNT ( * ) + + COUNT ( ALL 25 ) ) * - ( - 65 ) + - 23, - 51 AS col0
----
-102938
-51

query II rowsort
SELECT - 83 AS col0, - ( + 42 )
----
-83
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-56
SELECT ALL + 65 + + 26 + - COALESCE ( + - 9, - COALESCE ( - - 3, + 86, - - 61 * - 35 + ( - 31 ) - + + 49 DIV - + 80 * - 90 DIV + + 85 + + - 35 - 19 + + COUNT( ALL - 1 ) DIV COUNT( * ) ) * + 93, - 93 * - 73 )
----
100

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL + 65 + + 26 + - COALESCE ( + - 9, - COALESCE ( - - 3, + 86, - - 61 * - 35 + ( - 31 ) - + + 49 / - + 80 * - 90 / + + 85 + + - 35 - 19 + + COUNT ( ALL - 1 ) / COUNT ( * ) ) * + 93, - 93 * - 73 )
----
100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-57
SELECT 77 + - NULLIF ( + 4, - - NULLIF ( ( + 45 ), - 81 ) ) + - CASE + 52 WHEN + 96 * - ( + 11 ) * + 36 * + 62 * - CAST( NULL AS DECIMAL ) - + ( - COUNT( * ) ) * - 36 + 72 * 70 THEN - 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-57
SELECT 77 + - NULLIF ( + 4, - - NULLIF ( ( + 45 ), - 81 ) ) + - CASE + 52 WHEN + 96 * - ( + 11 ) * + 36 * + 62 * - CAST ( NULL AS REAL ) - + ( - COUNT ( * ) ) * - 36 + 72 * 70 THEN - 6 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT 87 + + 21 - 84
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-60
SELECT ALL + 66 - + 95 - 57 + 0 - COUNT( * ) DIV 31 * - 48
----
-86

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL + 66 - + 95 - 57 + 0 - COUNT ( * ) / 31 * - 48
----
-86

query I rowsort
SELECT ALL + 2 - + 77 - + 54 * - 40 col2
----
2085

onlyif mysql # DIV for integer division: 
query I rowsort label-62
SELECT 67 DIV + 97 col0
----
0

skipif mysql # not compatible
query I rowsort label-62
SELECT 67 / + 97 col0
----
0

query II rowsort
SELECT 9, 67 AS col1
----
9
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-64
SELECT 66 DIV + COUNT( * ) + - + COUNT( * ) AS col1
----
65

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

query II rowsort
SELECT DISTINCT - 47 AS col0, 47
----
-47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT ALL - CASE - NULLIF ( COUNT( 35 ), - 18 ) WHEN - COUNT( * ) + ( - - 22 ) THEN NULL WHEN - 44 * 48 + + 92 THEN 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL - CASE - NULLIF ( COUNT ( 35 ), - 18 ) WHEN - COUNT ( * ) + ( - - 22 ) THEN NULL WHEN - 44 * 48 + + 92 THEN 65 END
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-68
SELECT 26 AS col0, - CAST( - + 59 AS SIGNED )
----
26
59

skipif mysql # not compatible
query II rowsort label-68
SELECT 26 AS col0, - CAST ( - + 59 AS INTEGER )
----
26
59

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

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

query I rowsort
SELECT DISTINCT 33 * + - 54 AS col0
----
-1782

query II rowsort
SELECT DISTINCT - 30, 18 AS col0
----
-30
18

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL - 40 * COUNT( * ) + - + COUNT( * ) + + 83
----
42

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL - 40 * COUNT ( * ) + - + COUNT ( * ) + + 83
----
42

query I rowsort
SELECT + + ( + + 50 ) AS col0
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-74
SELECT ALL - 79 AS col1, - 53 DIV - 49
----
-79
1

skipif mysql # not compatible
query II rowsort label-74
SELECT ALL - 79 AS col1, - 53 / - 49
----
-79
1

query I rowsort
SELECT 68 - - + ( - + 65 ) * - + 91 AS col0
----
5983

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT ALL COALESCE ( + ( + COUNT( * ) ), + 36 + 25, + COUNT( * ) + + 30 ) * 42 * - 0 - - 60
----
60

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL COALESCE ( + ( + COUNT ( * ) ), + 36 + 25, + COUNT ( * ) + + 30 ) * 42 * - 0 - - 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT ALL 22 + - 32 + - 85 + + MIN( - 45 ) AS col1
----
-140

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL 22 + - 32 + - 85 + + MIN ( - 45 ) AS col1
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT MIN( 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-78
SELECT MIN ( 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT 61 * + 50 * SUM( DISTINCT 26 )
----
79300

skipif mysql # not compatible
query I rowsort label-79
SELECT 61 * + 50 * SUM ( DISTINCT 26 )
----
79300

onlyif mysql # aggregate syntax: 
query II rowsort label-80
SELECT DISTINCT - - 49 AS col1, - COUNT( * ) AS col1
----
49
-1

skipif mysql # not compatible
query II rowsort label-80
SELECT DISTINCT - - 49 AS col1, - COUNT ( * ) AS col1
----
49
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT ALL + 22 + + MIN( ALL - - 61 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL + 22 + + MIN ( ALL - - 61 ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT ALL + SUM( 54 ) + + 19 * - ( - + 45 )
----
909

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL + SUM ( 54 ) + + 19 * - ( - + 45 )
----
909

onlyif mysql # DIV for integer division: 
query I rowsort label-83
SELECT ALL - 53 DIV - + 36
----
1

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL - 53 / - + 36
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-84
SELECT + 50 DIV 85 * + ( - 28 )
----
0

skipif mysql # not compatible
query I rowsort label-84
SELECT + 50 / 85 * + ( - 28 )
----
0

query I rowsort
SELECT ALL + 78 + 19 AS col0
----
97

query I rowsort
SELECT - - ( 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT ALL 33 + SUM( + 66 )
----
99

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL 33 + SUM ( + 66 )
----
99

query I rowsort
SELECT + 84 * - ( - - 49 ) AS col2
----
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT + COUNT( * ) + - 78 col0
----
-77

skipif mysql # not compatible
query I rowsort label-89
SELECT + COUNT ( * ) + - 78 col0
----
-77

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

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL 55 * + COUNT ( * ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT DISTINCT 14 + - - 47 * + 51 * + ( + 95 ) + - - CASE + 74 WHEN - 47 * - + 66 THEN + - 42 + - 60 + - 33 / 22 + - 28 - - COUNT( * ) * ( - - 31 ) END + + - 39 * - 35 * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT 14 + - - 47 * + 51 * + ( + 95 ) + - - CASE + 74 WHEN - 47 * - + 66 THEN + - 42 + - 60 + - 33 / 22 + - 28 - - COUNT ( * ) * ( - - 31 ) END + + - 39 * - 35 * 50
----
NULL

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

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

query I rowsort
SELECT - 25 - + + 31 AS col1
----
-56

query I rowsort
SELECT ALL 48 + - 33 AS col1
----
15

query II rowsort
SELECT DISTINCT 60 * + 66, 23 AS col1
----
3960
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-97
SELECT - COALESCE ( - COUNT( * ), - ( + + 99 ) ) AS col0, AVG ( CAST( NULL AS SIGNED ) ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-97
SELECT - COALESCE ( - COUNT ( * ), - ( + + 99 ) ) AS col0, AVG ( CAST ( NULL AS INTEGER ) ) AS col1
----
1
NULL

query I rowsort
SELECT ALL 13 - 71
----
-58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-100
SELECT + ( CAST( 22 AS SIGNED ) ) - ( + 19 ) + + 83 * - - 91 * - + 32 * COALESCE ( 0, - 73 + + 71, 35 - - - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + 6 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-100
SELECT + ( CAST ( 22 AS INTEGER ) ) - ( + 19 ) + + 83 * - - 91 * - + 32 * COALESCE ( 0, - 73 + + 71, 35 - - - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + 6 ) AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-101
SELECT + COUNT( ALL - + 92 ) * NULLIF ( + 16, - 62 * + + 71 + - 14 + + 91 * - 74 + - 70 - + + 95 + 41 ), 37 DIV 82 col0
----
16
0

skipif mysql # not compatible
query II rowsort label-101
SELECT + COUNT ( ALL - + 92 ) * NULLIF ( + 16, - 62 * + + 71 + - 14 + + 91 * - 74 + - 70 - + + 95 + 41 ), 37 / 82 col0
----
16
0

query I rowsort
SELECT - 77 * + 16
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL - COUNT( * ) - + + 91 + + 48
----
-44

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL - COUNT ( * ) - + + 91 + + 48
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT - NULLIF ( - 13, - 68 ) + ( + COUNT( 73 ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-104
SELECT - NULLIF ( - 13, - 68 ) + ( + COUNT ( 73 ) ) AS col2
----
14

query I rowsort
SELECT ALL + 71 * + 2 AS col1
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT - 41 DIV + 52 * + 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-106
SELECT - 41 / + 52 * + 5 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-107
SELECT DISTINCT 46 DIV + - 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT 46 / + - 62 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-108
SELECT - + 81 DIV + 74
----
-1

skipif mysql # not compatible
query I rowsort label-108
SELECT - + 81 / + 74
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT DISTINCT + SUM( 28 )
----
28

skipif mysql # not compatible
query I rowsort label-109
SELECT DISTINCT + SUM ( 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT ALL + 59 * - - MIN( ALL - - 26 ) AS col2
----
1534

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL + 59 * - - MIN ( ALL - - 26 ) AS col2
----
1534

query I rowsort
SELECT ALL - 0 * 72 col1
----
0

query I rowsort
SELECT ALL + - 84 * 68 + + - 62 AS col0
----
-5774

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT NULLIF ( + 82, + 27 * SUM( 83 ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-113
SELECT NULLIF ( + 82, + 27 * SUM ( 83 ) ) AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-114
SELECT ALL - 80 * - - CAST( - 65 AS SIGNED ) + ( - + 63 ) - - 67
----
5204

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL - 80 * - - CAST ( - 65 AS INTEGER ) + ( - + 63 ) - - 67
----
5204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-115
SELECT - ( COALESCE ( + COUNT( * ), + + 78 * + 13 * 67 * - CAST( NULL AS SIGNED ) + 97 + 77 * - - ( + 61 ) ) ) + - NULLIF ( + 81, - 52 + 31 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-115
SELECT - ( COALESCE ( + COUNT ( * ), + + 78 * + 13 * 67 * - CAST ( NULL AS INTEGER ) + 97 + 77 * - - ( + 61 ) ) ) + - NULLIF ( + 81, - 52 + 31 ) AS col0
----
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT DISTINCT 78 * + 95 * + COUNT( * ) + + COUNT( - 95 )
----
7411

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT 78 * + 95 * + COUNT ( * ) + + COUNT ( - 95 )
----
7411

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT DISTINCT + - 99 * - 64 + - COUNT( ALL 11 ) + - - 69 AS col2
----
6404

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT + - 99 * - 64 + - COUNT ( ALL 11 ) + - - 69 AS col2
----
6404

query II rowsort
SELECT ALL 51 * + 66 AS col2, + 88
----
3366
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-121
SELECT ALL COALESCE ( + - 62, + - SUM( + 80 ) ) * + 20 * 17 + + - CAST( - - 17 AS SIGNED ) * - + 95 + - + COUNT( * ) DIV ( + ( + ( + 70 ) ) ) * + + 63 + + 32 AS col0
----
-19433

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL COALESCE ( + - 62, + - SUM ( + 80 ) ) * + 20 * 17 + + - CAST ( - - 17 AS INTEGER ) * - + 95 + - + COUNT ( * ) / ( + ( + ( + 70 ) ) ) * + + 63 + + 32 AS col0
----
-19433

onlyif mysql # aggregate syntax: 
query II rowsort label-122
SELECT ALL + + 34 * + + 13 + 53 + MAX( - 90 ) * - + 14 + - 36 AS col0, - 54
----
1719
-54

skipif mysql # not compatible
query II rowsort label-122
SELECT ALL + + 34 * + + 13 + 53 + MAX ( - 90 ) * - + 14 + - 36 AS col0, - 54
----
1719
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT DISTINCT + - 48 * - 59 * + 0 + - 33 + + 74 DIV 86 + 92 * 99
----
9075

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT + - 48 * - 59 * + 0 + - 33 + + 74 / 86 + 92 * 99
----
9075

query I rowsort
SELECT + 39 + - ( - 36 ) col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT 10 * ( - ( 17 ) ) * COUNT( * ) + 84
----
-86

skipif mysql # not compatible
query I rowsort label-125
SELECT 10 * ( - ( 17 ) ) * COUNT ( * ) + 84
----
-86

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

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

query I rowsort
SELECT + 51 * 11 + 7 AS col2
----
568

query I rowsort
SELECT DISTINCT ( - 85 ) AS col0
----
-85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL 70 * - 87 - - COUNT( * )
----
-6089

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL 70 * - 87 - - COUNT ( * )
----
-6089

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-132
SELECT ALL CAST( NULL AS SIGNED ) AS col2, CASE COUNT( * ) WHEN - - COUNT( * ) * - 90 + + NULLIF ( - COALESCE ( + - 36, + 84 + - 29 + - - 78 * - 8 * - + 64 * - + 26 ), COALESCE ( - 45, 48 * 96 * + MAX( ALL 21 ) ) ) + + 33 + - ( 38 + 34 ) THEN 82 * 5 WHEN 63 + 51 * 43 THEN NULL END * 18 + - 16 * + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-132
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, CASE COUNT ( * ) WHEN - - COUNT ( * ) * - 90 + + NULLIF ( - COALESCE ( + - 36, + 84 + - 29 + - - 78 * - 8 * - + 64 * - + 26 ), COALESCE ( - 45, 48 * 96 * + MAX ( ALL 21 ) ) ) + + 33 + - ( 38 + 34 ) THEN 82 * 5 WHEN 63 + 51 * 43 THEN NULL END * 18 + - 16 * + COUNT ( * )
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 65 - - ( + ( - + 16 ) ) AS col1
----
-81

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-136
SELECT DISTINCT 30 DIV + - 52
----
0

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT 30 / + - 52
----
0

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

skipif mysql # not compatible
query I rowsort label-137
SELECT - ( COUNT ( * ) ) / - 24 + + 18
----
18

query I rowsort
SELECT + 59 * 65 AS col2
----
3835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-139
SELECT + CAST( - 72 AS SIGNED ) + - 97 + + 1 + + 43 * + + 21 + 36 * 0
----
735

skipif mysql # not compatible
query I rowsort label-139
SELECT + CAST ( - 72 AS INTEGER ) + - 97 + + 1 + + 43 * + + 21 + 36 * 0
----
735

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT + 36 * ( - 96 ) * COUNT( * )
----
-3456

skipif mysql # not compatible
query I rowsort label-141
SELECT + 36 * ( - 96 ) * COUNT ( * )
----
-3456

onlyif mysql # DIV for integer division: 
query I rowsort label-142
SELECT - COALESCE ( 94, - ( + - 41 ) + ( 49 ) * + 5 + - + 7 + 27 DIV - - 38 * 1 * + 61 )
----
-94

skipif mysql # not compatible
query I rowsort label-142
SELECT - COALESCE ( 94, - ( + - 41 ) + ( 49 ) * + 5 + - + 7 + 27 / - - 38 * 1 * + 61 )
----
-94

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

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

query I rowsort
SELECT DISTINCT 59 * 23 AS col0
----
1357

query I rowsort
SELECT - ( - 53 ) AS col0
----
53

query I rowsort
SELECT + 41 + - 55 AS col2
----
-14

query I rowsort
SELECT ALL 5 * + 5
----
25

query I rowsort
SELECT + 17 + 25 + - + 74
----
-32

query I rowsort
SELECT + 93 + - + 57 - + 92
----
-56

query I rowsort
SELECT ALL COALESCE ( + 13, ( - - 25 ) ) AS col0
----
13

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-152
SELECT 36 AS col1, - CAST( NULL AS SIGNED ) + + 33
----
36
NULL

skipif mysql # not compatible
query II rowsort label-152
SELECT 36 AS col1, - CAST ( NULL AS INTEGER ) + + 33
----
36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT + - SUM( DISTINCT 15 ) * SUM( + - 5 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-153
SELECT + - SUM ( DISTINCT 15 ) * SUM ( + - 5 ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT - - MIN( 26 ) + + MIN( - 63 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-154
SELECT - - MIN ( 26 ) + + MIN ( - 63 ) AS col0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-155
SELECT ALL + COUNT( * ) DIV + - 89 AS col0
----
0

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

query II rowsort
SELECT + - 83 AS col2, 93 * + + 39
----
-83
3627

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-157
SELECT ALL 76 DIV 71 + + COUNT( * ) * 13 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL 76 / 71 + + COUNT ( * ) * 13 AS col0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT ALL - 33 DIV - 99 + ( - + 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL - 33 / - 99 + ( - + 47 ) AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-159
SELECT DISTINCT + MAX( ALL - CASE - + 81 WHEN + 99 * - - 81 THEN NULL ELSE - ( 36 ) + - 66 + - ( + + 78 ) / - 81 + - 98 + + CAST( NULL AS SIGNED ) * 22 END ) + - COUNT( + - 36 ) col2, - COALESCE ( - + 83, + 50 + + + NULLIF ( COUNT( * ), COUNT( * ) ) ) + 59 AS col1
----
NULL
142

skipif mysql # not compatible
query II rowsort label-159
SELECT DISTINCT + MAX ( ALL - CASE - + 81 WHEN + 99 * - - 81 THEN NULL ELSE - ( 36 ) + - 66 + - ( + + 78 ) / - 81 + - 98 + + CAST ( NULL AS INTEGER ) * 22 END ) + - COUNT ( + - 36 ) col2, - COALESCE ( - + 83, + 50 + + + NULLIF ( COUNT ( * ), COUNT ( * ) ) ) + 59 AS col1
----
NULL
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-160
SELECT - COUNT( * ) DIV 61 + + - 25 - 44
----
-69

skipif mysql # not compatible
query I rowsort label-160
SELECT - COUNT ( * ) / 61 + + - 25 - 44
----
-69

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

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

query I rowsort
SELECT ALL + 62 + + - 38 + + 43 - - 49
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-163
SELECT - CAST( NULL AS SIGNED ) * + + 14 + - - 14 + 67 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT - CAST ( NULL AS INTEGER ) * + + 14 + - - 14 + 67 + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-164
SELECT CAST( 46 AS SIGNED ) DIV 40 + + 94 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-164
SELECT CAST ( 46 AS INTEGER ) / 40 + + 94 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT + - 32 * + COUNT( * ) + 66 * + 35 * 80 + - 40
----
184728

skipif mysql # not compatible
query I rowsort label-165
SELECT + - 32 * + COUNT ( * ) + 66 * + 35 * 80 + - 40
----
184728

query I rowsort
SELECT ALL + 51 - + 28 * - + 17 AS col0
----
527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-167
SELECT 71 * CAST( - 19 AS SIGNED )
----
-1349

skipif mysql # not compatible
query I rowsort label-167
SELECT 71 * CAST ( - 19 AS INTEGER )
----
-1349

onlyif mysql # aggregate syntax: 
query II rowsort label-168
SELECT ALL - ( + 76 ) AS col1, MIN( DISTINCT 66 )
----
-76
66

skipif mysql # not compatible
query II rowsort label-168
SELECT ALL - ( + 76 ) AS col1, MIN ( DISTINCT 66 )
----
-76
66

query I rowsort
SELECT DISTINCT + 34 - + + 64 + 27 + - + 96
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT ALL COUNT( 80 ) * - 50 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL COUNT ( 80 ) * - 50 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT SUM( ALL 9 ) - - 63 + 78 * - 19
----
-1410

skipif mysql # not compatible
query I rowsort label-171
SELECT SUM ( ALL 9 ) - - 63 + 78 * - 19
----
-1410

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

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

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

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL + COUNT ( * ) * - 37 AS col0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-174
SELECT 17, - COUNT( * ) * - 46 DIV 98 AS col0
----
17
0

skipif mysql # not compatible
query II rowsort label-174
SELECT 17, - COUNT ( * ) * - 46 / 98 AS col0
----
17
0

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT - 34, + COUNT( DISTINCT NULLIF ( + + ( + 96 ), ( - 81 ) + 0 ) ) * ( - 11 ) + - - COUNT( * ) * + + ( + 78 ) * + 88 AS col1
----
-34
6853

skipif mysql # not compatible
query II rowsort label-175
SELECT - 34, + COUNT ( DISTINCT NULLIF ( + + ( + 96 ), ( - 81 ) + 0 ) ) * ( - 11 ) + - - COUNT ( * ) * + + ( + 78 ) * + 88 AS col1
----
-34
6853

query I rowsort
SELECT 86 * ( + - CASE + 42 WHEN - 48 + + 95 THEN + + 64 ELSE - 87 * 37 * - 49 END )
----
-13564866

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

onlyif mysql # DIV for integer division: 
query I rowsort label-178
SELECT 5 DIV 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-178
SELECT 5 / 30 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-179
SELECT 95 DIV - - 59
----
1

skipif mysql # not compatible
query I rowsort label-179
SELECT 95 / - - 59
----
1

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

skipif mysql # not compatible
query I rowsort label-180
SELECT 31 / + 39
----
0

query I rowsort
SELECT 1 + + 29
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT ALL - 67 + COUNT( * ) - - + 79 col0
----
13

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL - 67 + COUNT ( * ) - - + 79 col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-183
SELECT 74 + - CAST( - 59 AS SIGNED )
----
133

skipif mysql # not compatible
query I rowsort label-183
SELECT 74 + - CAST ( - 59 AS INTEGER )
----
133

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

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

query I rowsort
SELECT 64 * 70 col1
----
4480

query I rowsort
SELECT ALL 83 + 1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT ALL - 18 * - MIN( + 26 )
----
468

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL - 18 * - MIN ( + 26 )
----
468

query I rowsort
SELECT 66 + + 24
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT ALL + 7 + COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL + 7 + COUNT ( * ) AS col1
----
8

query I rowsort
SELECT DISTINCT + 48 + 49 AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-191
SELECT ALL 10 + - CASE - 54 WHEN - - 85 * - 28 + - 82 * - - 39 * + - 4 THEN - - NULLIF ( COALESCE ( CAST( 19 AS SIGNED ), + COUNT( * ) ), + + 70 * - - 96 - + - NULLIF ( + 39, + 30 * + 94 ) * - 58 * + 39 ) * - 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL 10 + - CASE - 54 WHEN - - 85 * - 28 + - 82 * - - 39 * + - 4 THEN - - NULLIF ( COALESCE ( CAST ( 19 AS INTEGER ), + COUNT ( * ) ), + + 70 * - - 96 - + - NULLIF ( + 39, + 30 * + 94 ) * - 58 * + 39 ) * - 92 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 87 AS col2, - 55
----
-87
-55

query I rowsort
SELECT 60 * 93 + + 8
----
5588

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-194
SELECT + 48 AS col0, ( + NULLIF ( + NULLIF ( + COALESCE ( + CAST( NULL AS SIGNED ), - 41, 6 ), - 71 ), + - 75 * - + 85 ) ) AS col0
----
48
-41

skipif mysql # not compatible
query II rowsort label-194
SELECT + 48 AS col0, ( + NULLIF ( + NULLIF ( + COALESCE ( + CAST ( NULL AS INTEGER ), - 41, 6 ), - 71 ), + - 75 * - + 85 ) ) AS col0
----
48
-41

query I rowsort
SELECT + - ( - + 69 ) * 52 + + + 45 + 15
----
3648

query II rowsort
SELECT ALL - 56 AS col2, - 62 AS col2
----
-56
-62

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

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

query I rowsort
SELECT DISTINCT - 72 - - + 40 col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-199
SELECT + CAST( NULL AS SIGNED ) * 78 * 45 + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-199
SELECT + CAST ( NULL AS INTEGER ) * 78 * 45 + 91 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-200
SELECT ( + + COALESCE ( + 67, + NULLIF ( 20, + 3 * + 73 - - 10 * + + 70 ) ) ) * 40 * - ( - COALESCE ( + + CASE + CASE + - MIN( - - 87 ) WHEN - 69 THEN 79 END WHEN - 32 THEN + - 40 WHEN - 53 THEN NULL ELSE NULL END, - MIN( DISTINCT 87 ) + + 91 ) ) * CAST( ( 77 ) AS SIGNED ) + + 94 * ( 11 ) + + NULLIF ( 7, - MAX( ALL + 19 ) - + 30 ) AS col1
----
826481

skipif mysql # not compatible
query I rowsort label-200
SELECT ( + + COALESCE ( + 67, + NULLIF ( 20, + 3 * + 73 - - 10 * + + 70 ) ) ) * 40 * - ( - COALESCE ( + + CASE + CASE + - MIN ( - - 87 ) WHEN - 69 THEN 79 END WHEN - 32 THEN + - 40 WHEN - 53 THEN NULL ELSE NULL END, - MIN ( DISTINCT 87 ) + + 91 ) ) * CAST ( ( 77 ) AS INTEGER ) + + 94 * ( 11 ) + + NULLIF ( 7, - MAX ( ALL + 19 ) - + 30 ) AS col1
----
826481

query I rowsort
SELECT 96 * - - 45 AS col1
----
4320

query I rowsort
SELECT ALL 90 * + ( 23 )
----
2070

onlyif mysql # DIV for integer division: 
query I rowsort label-203
SELECT ALL + 20 * + 3 DIV + ( + 62 ) * - 18 col1
----
0

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL + 20 * + 3 / + ( + 62 ) * - 18 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-204
SELECT CAST( + 67 AS SIGNED ) + - - ( - 73 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-204
SELECT CAST ( + 67 AS INTEGER ) + - - ( - 73 ) AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-205
SELECT COUNT( * ) * + 21 DIV + COUNT( * ) + + + 69 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-205
SELECT COUNT ( * ) * + 21 / + COUNT ( * ) + + + 69 AS col1
----
90

query I rowsort
SELECT 22 * + - 55 AS col1
----
-1210

query II rowsort
SELECT 96 * 84 AS col1, 12
----
8064
12

query II rowsort
SELECT ALL - 12 + + 92 AS col0, - 96 * + 46 AS col2
----
80
-4416

query I rowsort
SELECT 12 + - ( + - 7 ) AS col1
----
19

query I rowsort
SELECT DISTINCT + 31 + - - 18
----
49

query I rowsort
SELECT DISTINCT - 67 + ( + 86 )
----
19

query I rowsort
SELECT ALL + COALESCE ( + 39, - 33 + - 30 ) + 20
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT ALL - 58 + - + MIN( 34 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-213
SELECT ALL - 58 + - + MIN ( 34 ) AS col2
----
-92

query II rowsort
SELECT 11 * - + 44, 71 AS col2
----
-484
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-215
SELECT DISTINCT - ( + - COALESCE ( + CASE + 63 WHEN + COUNT( * ) THEN NULL WHEN 71 THEN - 10 WHEN + 81 THEN NULL WHEN 66 + + 28 + + - 33 + - + 6 * - + 62 * - 11 * 95 + 2 * CASE COUNT( * ) WHEN 80 * + 73 - 43 - 89 + + 81 * + 30 * - 12 THEN - CAST( NULL AS SIGNED ) ELSE NULL END * 75 * - AVG ( ALL 78 ) THEN 73 + 0 ELSE NULL END, 97 * 34, + COUNT( * ) ) ) * + 32 AS col0
----
105536

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT - ( + - COALESCE ( + CASE + 63 WHEN + COUNT ( * ) THEN NULL WHEN 71 THEN - 10 WHEN + 81 THEN NULL WHEN 66 + + 28 + + - 33 + - + 6 * - + 62 * - 11 * 95 + 2 * CASE COUNT ( * ) WHEN 80 * + 73 - 43 - 89 + + 81 * + 30 * - 12 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END * 75 * - AVG ( ALL 78 ) THEN 73 + 0 ELSE NULL END, 97 * 34, + COUNT ( * ) ) ) * + 32 AS col0
----
105536

query I rowsort
SELECT 33 + - 64 AS col2
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-217
SELECT ALL - 30 + - SUM( ALL + 24 ) + 81 DIV 12 * + 92 AS col2
----
498

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL - 30 + - SUM ( ALL + 24 ) + 81 / 12 * + 92 AS col2
----
498

onlyif mysql # DIV for integer division: 
query I rowsort label-218
SELECT COALESCE ( - 10, - 39, - ( 23 ) * + + 1 + 32 - 28 DIV - 47 ) + - 53 + - - 67 * 24 AS col1
----
1545

skipif mysql # not compatible
query I rowsort label-218
SELECT COALESCE ( - 10, - 39, - ( 23 ) * + + 1 + 32 - 28 / - 47 ) + - 53 + - - 67 * 24 AS col1
----
1545

query I rowsort
SELECT - 17 * + 62 + - - ( 32 ) AS col0
----
-1022

query I rowsort
SELECT ALL + - ( + 53 ) - + 86 AS col2
----
-139

query I rowsort
SELECT ALL 84 * ( - 5 ) AS col2
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT + NULLIF ( COUNT( * ), - - COUNT( * ) * 38 + - + 19 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-222
SELECT + NULLIF ( COUNT ( * ), - - COUNT ( * ) * 38 + - + 19 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-223
SELECT + 71 * - + COUNT( * ) col0, 33 * + 99 + - 94 + 48 + + 14 * + + CAST( NULL AS SIGNED )
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-223
SELECT + 71 * - + COUNT ( * ) col0, 33 * + 99 + - 94 + 48 + + 14 * + + CAST ( NULL AS INTEGER )
----
-71
NULL

query I rowsort
SELECT + 54 - + 55
----
-1

query I rowsort
SELECT + ( - 11 ) + 87 + 16 - 56
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-226
SELECT 25 * 60 * + + CASE + CAST( NULL AS SIGNED ) WHEN 15 + - 25 THEN NULL ELSE + 55 END + + + 70 AS col2
----
82570

skipif mysql # not compatible
query I rowsort label-226
SELECT 25 * 60 * + + CASE + CAST ( NULL AS INTEGER ) WHEN 15 + - 25 THEN NULL ELSE + 55 END + + + 70 AS col2
----
82570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-227
SELECT + COUNT( * ) DIV 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-227
SELECT + COUNT ( * ) / 14 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-228
SELECT DISTINCT - COUNT( * ) * - COUNT( ALL - 63 ) + + - CASE WHEN CAST( 46 AS DECIMAL ) IS NULL THEN 66 ELSE - - SUM( - + 70 ) END AS col2
----
71

skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT - COUNT ( * ) * - COUNT ( ALL - 63 ) + + - CASE WHEN CAST ( 46 AS REAL ) IS NULL THEN 66 ELSE - - SUM ( - + 70 ) END AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-229
SELECT ALL + 74 * + COUNT( * ) + CAST( 78 AS SIGNED ) AS col0
----
152

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL + 74 * + COUNT ( * ) + CAST ( 78 AS INTEGER ) AS col0
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-230
SELECT ALL + 8 * + 30 + - 37 - NULLIF ( - COUNT( + CAST( + + 73 AS SIGNED ) ), + 26 + - 14 ) AS col1
----
204

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL + 8 * + 30 + - 37 - NULLIF ( - COUNT ( + CAST ( + + 73 AS INTEGER ) ), + 26 + - 14 ) AS col1
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT DISTINCT - 30 * - + COUNT( ALL - + 63 ) * + 36 + 44 + + 81
----
1205

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT - 30 * - + COUNT ( ALL - + 63 ) * + 36 + 44 + + 81
----
1205

query I rowsort
SELECT ALL 76 + - + 27
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT + 58 DIV - 22 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-233
SELECT + 58 / - 22 AS col0
----
-2

query I rowsort
SELECT + 17 + - - 54 AS col2
----
71

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-236
SELECT ALL - COUNT( * ) AS col1, CASE 9 WHEN + 69 + - 18 * + + CASE + + 2 WHEN + 32 + + - CAST( - 2 AS DECIMAL ) THEN NULL WHEN + MAX( ALL 97 ) * + COUNT( * ) + COUNT( * ) THEN + 65 WHEN + 65 THEN NULL ELSE - 85 END * - 18 * + 57 / - - 37 THEN - - 7 WHEN + + 34 - + + 94 THEN NULL ELSE NULL END * 3
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-236
SELECT ALL - COUNT ( * ) AS col1, CASE 9 WHEN + 69 + - 18 * + + CASE + + 2 WHEN + 32 + + - CAST ( - 2 AS REAL ) THEN NULL WHEN + MAX ( ALL 97 ) * + COUNT ( * ) + COUNT ( * ) THEN + 65 WHEN + 65 THEN NULL ELSE - 85 END * - 18 * + 57 / - - 37 THEN - - 7 WHEN + + 34 - + + 94 THEN NULL ELSE NULL END * 3
----
-1
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-238
SELECT - - MIN( + 74 ) * - - 81 + - - ( 12 ) + 83 DIV 3 * 2 - MIN( DISTINCT - + 19 ) * ( - - 0 ) * + 98 + + 7 AS col0
----
6067

skipif mysql # not compatible
query I rowsort label-238
SELECT - - MIN ( + 74 ) * - - 81 + - - ( 12 ) + 83 / 3 * 2 - MIN ( DISTINCT - + 19 ) * ( - - 0 ) * + 98 + + 7 AS col0
----
6067

query II rowsort
SELECT DISTINCT 71 AS col0, + 14 AS col0
----
71
14

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT ALL + + MIN( + + 1 ) - - 12 * 81
----
973

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL + + MIN ( + + 1 ) - - 12 * 81
----
973

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT - COUNT( * ) + - + CASE + SUM( ALL 79 ) WHEN 33 THEN NULL WHEN 55 + + COUNT( * ) * 65 + + 55 THEN - ( 76 ) / 62 + + - 26 WHEN - 59 * 39 / - 95 * - - 78 THEN - 93 END + - - AVG ( - 38 ) - + 73 + - SUM( DISTINCT - 42 ) * 74 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT - COUNT ( * ) + - + CASE + SUM ( ALL 79 ) WHEN 33 THEN NULL WHEN 55 + + COUNT ( * ) * 65 + + 55 THEN - ( 76 ) / 62 + + - 26 WHEN - 59 * 39 / - 95 * - - 78 THEN - 93 END + - - AVG ( - 38 ) - + 73 + - SUM ( DISTINCT - 42 ) * 74 col2
----
NULL

query I rowsort
SELECT - 85 * 52 AS col1
----
-4420

query I rowsort
SELECT DISTINCT - - 39 * + + 93 AS col0
----
3627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-244
SELECT - 29 + - + COUNT( * ) + COALESCE ( 6, - COUNT( * ), + + COALESCE ( + - ( + 94 ), COUNT( * ) + + ( CAST( NULL AS SIGNED ) ) ) ) AS col0, + 85 + + - COUNT( * ) AS col2
----
-24
84

skipif mysql # not compatible
query II rowsort label-244
SELECT - 29 + - + COUNT ( * ) + COALESCE ( 6, - COUNT ( * ), + + COALESCE ( + - ( + 94 ), COUNT ( * ) + + ( CAST ( NULL AS INTEGER ) ) ) ) AS col0, + 85 + + - COUNT ( * ) AS col2
----
-24
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-245
SELECT - 3 * + + CAST( - 20 AS SIGNED ) + + 3 - - 84 AS col1
----
147

skipif mysql # not compatible
query I rowsort label-245
SELECT - 3 * + + CAST ( - 20 AS INTEGER ) + + 3 - - 84 AS col1
----
147

query I rowsort
SELECT ALL - 74 * - 25 AS col2
----
1850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-247
SELECT - 42 + - - CASE NULLIF ( - CAST( - + 53 AS SIGNED ), + + SUM( ALL - 9 ) - - 51 / - + 61 + + 16 / - 22 + - 78 + - 58 ) WHEN 5 + 72 THEN + CAST( 53 AS SIGNED ) WHEN 37 THEN NULL END + - + 78 * + + 62 * + ( - CASE + COUNT( * ) WHEN 18 THEN - COUNT( * ) - 92 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-247
SELECT - 42 + - - CASE NULLIF ( - CAST ( - + 53 AS INTEGER ), + + SUM ( ALL - 9 ) - - 51 / - + 61 + + 16 / - 22 + - 78 + - 58 ) WHEN 5 + 72 THEN + CAST ( 53 AS INTEGER ) WHEN 37 THEN NULL END + - + 78 * + + 62 * + ( - CASE + COUNT ( * ) WHEN 18 THEN - COUNT ( * ) - 92 ELSE NULL END ) AS col2
----
NULL

query II rowsort
SELECT ALL - + 73 * 49 * + 19 * - 18, 74 AS col2
----
1223334
74

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT - + COUNT( * ) * - ( - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-249
SELECT - + COUNT ( * ) * - ( - 42 ) AS col0
----
-42

query I rowsort
SELECT ALL + + 97 * + 96 AS col2
----
9312

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-251
SELECT + + 91 DIV + 75 + + 16 + - - COUNT( * ) AS col2, + 13
----
18
13

skipif mysql # not compatible
query II rowsort label-251
SELECT + + 91 / + 75 + + 16 + - - COUNT ( * ) AS col2, + 13
----
18
13

query II rowsort
SELECT ALL + 65 AS col0, 43 AS col1
----
65
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT + - 76 * - 15 + - NULLIF ( + + COUNT( * ), 51 * + 36 + - 24 * 91 * + - 13 ) + 71 AS col0
----
1210

skipif mysql # not compatible
query I rowsort label-254
SELECT + - 76 * - 15 + - NULLIF ( + + COUNT ( * ), 51 * + 36 + - 24 * 91 * + - 13 ) + 71 AS col0
----
1210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-255
SELECT ALL + 48 DIV - MIN( - 74 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-255
SELECT ALL + 48 / - MIN ( - 74 ) AS col1
----
0

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

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

query I rowsort
SELECT ( - - CASE + 37 WHEN + - 78 / - 63 THEN - - 36 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT ALL 71 * + 69 + 49 - 64 * - COUNT( * ) AS col1
----
5012

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL 71 * + 69 + 49 - 64 * - COUNT ( * ) AS col1
----
5012

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

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

query I rowsort
SELECT ALL + 3 * + 7 + 64 + 42
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-261
SELECT + COUNT( * ) + 35 AS col2, 57
----
36
57

skipif mysql # not compatible
query II rowsort label-261
SELECT + COUNT ( * ) + 35 AS col2, 57
----
36
57

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT - MIN( - 98 ) * - 0 + + 54 + + - 15 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-262
SELECT - MIN ( - 98 ) * - 0 + + 54 + + - 15 AS col1
----
39

query I rowsort
SELECT DISTINCT - 70 * 73 * + 51 + + 74
----
-260536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-264
SELECT CASE CASE - 6 WHEN 61 THEN + 64 WHEN - - CAST( - MIN( ALL - + 73 ) AS SIGNED ) * + 92 * - NULLIF ( - 1, + - CAST( + 36 AS SIGNED ) * + - CAST( NULL AS SIGNED ) * - - 54 ) THEN - ( - 5 ) + + 90 ELSE - MAX( ALL 6 ) END WHEN - + CASE - COUNT( * ) WHEN CASE + + 83 WHEN 0 * - 20 THEN + 94 WHEN - 65 / COUNT( * ) THEN NULL END * - 75 - + 11 THEN - 91 WHEN 48 THEN 92 WHEN + 54 THEN 34 WHEN - ( 77 ) / 81 THEN 37 END + - 77 * + 81 THEN 73 + 12 WHEN 88 * CASE - 69 * - 51 WHEN - 4 THEN NULL WHEN COALESCE ( COALESCE ( + NULLIF ( 49, - 50 - 78 ), 37 + + COALESCE ( 96, 34 ) ), + AVG ( - 54 ), - 65 ) THEN 48 * + COALESCE ( CASE COALESCE ( COUNT( * ), - 83, + 91 ) WHEN 94 THEN 17 / COUNT( * ) + 94 END / 2, + 26 ) ELSE NULL END + ( - 37 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-264
SELECT CASE CASE - 6 WHEN 61 THEN + 64 WHEN - - CAST ( - MIN ( ALL - + 73 ) AS INTEGER ) * + 92 * - NULLIF ( - 1, + - CAST ( + 36 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) * - - 54 ) THEN - ( - 5 ) + + 90 ELSE - MAX ( ALL 6 ) END WHEN - + CASE - COUNT ( * ) WHEN CASE + + 83 WHEN 0 * - 20 THEN + 94 WHEN - 65 / COUNT ( * ) THEN NULL END * - 75 - + 11 THEN - 91 WHEN 48 THEN 92 WHEN + 54 THEN 34 WHEN - ( 77 ) / 81 THEN 37 END + - 77 * + 81 THEN 73 + 12 WHEN 88 * CASE - 69 * - 51 WHEN - 4 THEN NULL WHEN COALESCE ( COALESCE ( + NULLIF ( 49, - 50 - 78 ), 37 + + COALESCE ( 96, 34 ) ), + AVG ( - 54 ), - 65 ) THEN 48 * + COALESCE ( CASE COALESCE ( COUNT ( * ), - 83, + 91 ) WHEN 94 THEN 17 / COUNT ( * ) + 94 END / 2, + 26 ) ELSE NULL END + ( - 37 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-265
SELECT ALL 8 * COUNT( * ) + - ( - 94 ) DIV 58
----
9

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL 8 * COUNT ( * ) + - ( - 94 ) / 58
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-266
SELECT ALL CAST( - 40 AS SIGNED ) * - 52 + + COUNT( * ) * - 33 + COUNT( * ) - - 75 + + 98
----
2221

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL CAST ( - 40 AS INTEGER ) * - 52 + + COUNT ( * ) * - 33 + COUNT ( * ) - - 75 + + 98
----
2221

onlyif mysql # DIV for integer division: 
query II rowsort label-267
SELECT DISTINCT NULLIF ( + ( + 44 ), 83 ), 21 DIV - ( 29 ) + 70 col2
----
44
70

skipif mysql # not compatible
query II rowsort label-267
SELECT DISTINCT NULLIF ( + ( + 44 ), 83 ), 21 / - ( 29 ) + 70 col2
----
44
70

query I rowsort
SELECT DISTINCT + 97 * + 0 * - 83 * - 75 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT - COUNT( * ) + + + COUNT( 66 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-269
SELECT - COUNT ( * ) + + + COUNT ( 66 ) AS col0
----
0

query I rowsort
SELECT - ( + + 18 ) * - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT COUNT( * ) + - 99 * - 3 * - 63 * + + 55 AS col0
----
-1029104

skipif mysql # not compatible
query I rowsort label-271
SELECT COUNT ( * ) + - 99 * - 3 * - 63 * + + 55 AS col0
----
-1029104

query I rowsort
SELECT DISTINCT - 36 * 22
----
-792

onlyif mysql # aggregate syntax: 
query II rowsort label-273
SELECT MIN( ALL + 57 ) AS col1, - 37 + 96 * + + 96 + - - 39 AS col2
----
57
9218

skipif mysql # not compatible
query II rowsort label-273
SELECT MIN ( ALL + 57 ) AS col1, - 37 + 96 * + + 96 + - - 39 AS col2
----
57
9218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-274
SELECT + 83 + - + CAST( + 55 AS SIGNED ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-274
SELECT + 83 + - + CAST ( + 55 AS INTEGER ) AS col0
----
28

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-276
SELECT DISTINCT - 34 - - - 82 + + - 25 * - + 86 AS col1, NULLIF ( - 98, 21 * + COUNT( * ) * + COUNT( * ) )
----
2034
-98

skipif mysql # not compatible
query II rowsort label-276
SELECT DISTINCT - 34 - - - 82 + + - 25 * - + 86 AS col1, NULLIF ( - 98, 21 * + COUNT ( * ) * + COUNT ( * ) )
----
2034
-98

query I rowsort
SELECT ALL + - 62 * - 98 AS col1
----
6076

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT + CASE 50 WHEN - + 2 THEN NULL ELSE - - MAX( + - 97 ) * 25 * - CASE + - 89 WHEN + ( + + 13 ) - - 74 - + ( + 95 ) THEN NULL WHEN + COUNT( * ) THEN NULL WHEN + - 23 + + ( + COUNT( * ) ) - + 73 THEN NULL ELSE + - 91 * 39 + - + 77 END END col0
----
-8793050

skipif mysql # not compatible
query I rowsort label-278
SELECT + CASE 50 WHEN - + 2 THEN NULL ELSE - - MAX ( + - 97 ) * 25 * - CASE + - 89 WHEN + ( + + 13 ) - - 74 - + ( + 95 ) THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN + - 23 + + ( + COUNT ( * ) ) - + 73 THEN NULL ELSE + - 91 * 39 + - + 77 END END col0
----
-8793050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-279
SELECT - CAST( NULL AS SIGNED ) * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-279
SELECT - CAST ( NULL AS INTEGER ) * 35
----
NULL

query I rowsort
SELECT ALL + 2 + - 7 * + 59 AS col1
----
-411

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT MAX( - 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-281
SELECT MAX ( - 46 ) AS col2
----
-46

query I rowsort
SELECT ALL - 98 + + + 62
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT DISTINCT + COUNT( * ) + + + 49
----
50

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT + COUNT ( * ) + + + 49
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-284
SELECT ALL + ( 95 ) + + - CASE - COUNT( ALL - 65 ) WHEN + 5 THEN NULL WHEN + + NULLIF ( + 90, - 34 + - - AVG ( + 62 ) ) / - 96 THEN + - 21 END AS col1, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-284
SELECT ALL + ( 95 ) + + - CASE - COUNT ( ALL - 65 ) WHEN + 5 THEN NULL WHEN + + NULLIF ( + 90, - 34 + - - AVG ( + 62 ) ) / - 96 THEN + - 21 END AS col1, + COUNT ( * ) AS col2
----
NULL
1

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

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

query I rowsort
SELECT 21 + - 45 AS col0
----
-24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL + COUNT( * ) + - CASE - - COUNT( * ) WHEN + + COUNT( * ) + ( + 53 ) * - COUNT( + - 48 ) THEN NULL ELSE 37 END + + 14 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL + COUNT ( * ) + - CASE - - COUNT ( * ) WHEN + + COUNT ( * ) + ( + 53 ) * - COUNT ( + - 48 ) THEN NULL ELSE 37 END + + 14 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-289
SELECT 45 AS col1, 94 + 30 - + COUNT( * ) * - 31 AS col0
----
45
155

skipif mysql # not compatible
query II rowsort label-289
SELECT 45 AS col1, 94 + 30 - + COUNT ( * ) * - 31 AS col0
----
45
155

query I rowsort
SELECT 34 * 92 AS col2
----
3128

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

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

query I rowsort
SELECT ALL + 99 + - 20 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT 14 + + + 8 + COUNT( * ) col0
----
23

skipif mysql # not compatible
query I rowsort label-293
SELECT 14 + + + 8 + COUNT ( * ) col0
----
23

query I rowsort
SELECT ( 32 ) * 9
----
288

query I rowsort
SELECT ALL 82 - - 37 AS col1
----
119

query I rowsort
SELECT 40 * - + 90
----
-3600

query I rowsort
SELECT DISTINCT - 82 - + + 99
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT + SUM( 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-298
SELECT + SUM ( 10 ) AS col2
----
10

query I rowsort
SELECT 79 + 25
----
104

query I rowsort
SELECT ALL - 99 - 10
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-301
SELECT DISTINCT 9 * 53 + - 69 + + 74 + - - 87 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT 9 * 53 + - 69 + + 74 + - - 87 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-302
SELECT 59 + - SUM( DISTINCT - 69 ) + + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-302
SELECT 59 + - SUM ( DISTINCT - 69 ) + + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT - NULLIF ( COUNT( * ), 22 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-303
SELECT - NULLIF ( COUNT ( * ), 22 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-304
SELECT ALL + 92 AS col0, - NULLIF ( COUNT( * ), - - 19 * + 96 ) * + 82 * + 14 * + - NULLIF ( + ( - - COUNT( * ) ), + ( - - 76 ) ) * + 55 * + - 52 AS col1
----
92
-3283280

skipif mysql # not compatible
query II rowsort label-304
SELECT ALL + 92 AS col0, - NULLIF ( COUNT ( * ), - - 19 * + 96 ) * + 82 * + 14 * + - NULLIF ( + ( - - COUNT ( * ) ), + ( - - 76 ) ) * + 55 * + - 52 AS col1
----
92
-3283280

query I rowsort
SELECT 36 * 64 * - 48
----
-110592

query I rowsort
SELECT 66 - + + 53
----
13

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT - + NULLIF ( + COUNT( DISTINCT - 47 ), 82 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-309
SELECT - + NULLIF ( + COUNT ( DISTINCT - 47 ), 82 ) AS col2
----
-1

query II rowsort
SELECT ALL - 56, - 1 col1
----
-56
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-311
SELECT ( - 64 ) + - - COUNT( * ) AS col1, CAST( COUNT( * ) AS SIGNED ) + - 33 AS col2
----
-63
-32

skipif mysql # not compatible
query II rowsort label-311
SELECT ( - 64 ) + - - COUNT ( * ) AS col1, CAST ( COUNT ( * ) AS INTEGER ) + - 33 AS col2
----
-63
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT - SUM( 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-312
SELECT - SUM ( 52 ) AS col2
----
-52

query I rowsort
SELECT + 13 + - 71 col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-314
SELECT + 87 DIV 36
----
2

skipif mysql # not compatible
query I rowsort label-314
SELECT + 87 / 36
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-315
SELECT + 27 + + CAST( - COALESCE ( - 24, + ( COUNT( * ) ) + + 64 ) AS SIGNED ) col1
----
51

skipif mysql # not compatible
query I rowsort label-315
SELECT + 27 + + CAST ( - COALESCE ( - 24, + ( COUNT ( * ) ) + + 64 ) AS INTEGER ) col1
----
51

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

query II rowsort
SELECT DISTINCT 14 AS col2, + 34 + + - 2
----
14
32

query I rowsort
SELECT ALL 90 + + 22
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-319
SELECT DISTINCT - 85 DIV - 20
----
4

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT - 85 / - 20
----
4

query I rowsort
SELECT ALL + ( - - 84 ) + + 99 AS col2
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-321
SELECT - CAST( + 57 AS SIGNED ) DIV + 57 + + 13 * 29 * - - COUNT( * ) + - 88 + - COUNT( * )
----
287

skipif mysql # not compatible
query I rowsort label-321
SELECT - CAST ( + 57 AS INTEGER ) / + 57 + + 13 * 29 * - - COUNT ( * ) + - 88 + - COUNT ( * )
----
287

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-322
SELECT 24 + - 74 + - - NULLIF ( - NULLIF ( COUNT( * ), + + ( + - 42 ) * - - 2 * + 57 * - 94 ), - - MIN( - 40 ) * - 1 ) DIV 58
----
-50

skipif mysql # not compatible
query I rowsort label-322
SELECT 24 + - 74 + - - NULLIF ( - NULLIF ( COUNT ( * ), + + ( + - 42 ) * - - 2 * + 57 * - 94 ), - - MIN ( - 40 ) * - 1 ) / 58
----
-50

query I rowsort
SELECT - 63 * + - 48 + - + 58
----
2966

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

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

query III rowsort
SELECT ALL - 79, - CASE - 78 WHEN CASE 75 WHEN 92 THEN NULL ELSE + COALESCE ( 43, - 14 + + 91 ) / - + ( - 84 ) * + ( + 8 ) END THEN - 92 * + 74 ELSE NULL END / - + 95 / 50 + 76 AS col0, + 88 * - 98 - - 29 AS col1
----
-79
NULL
-8595

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT 95 * COUNT( * ) + + 44 - - + COUNT( * )
----
140

skipif mysql # not compatible
query I rowsort label-326
SELECT 95 * COUNT ( * ) + + 44 - - + COUNT ( * )
----
140

query I rowsort
SELECT 30 * + 34 AS col0
----
1020

query I rowsort
SELECT ALL ( ( 9 ) ) * + 27 - + - 6
----
249

query II rowsort
SELECT ALL - 69 AS col1, 55
----
-69
55

query I rowsort
SELECT ALL + COALESCE ( - 28, + 39, - 92 * + 75 )
----
-28

query I rowsort
SELECT ALL - ( 43 ) * + 53 AS col2
----
-2279

query I rowsort
SELECT + 76 * + 94 * + 83 AS col1
----
592952

query I rowsort
SELECT - 82 * - 75 AS col2
----
6150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-334
SELECT - COUNT( * ) + + 79 * - - 8 * 96 + - SUM( DISTINCT + + 91 ) - + CAST( - ( + 12 ) AS SIGNED ) + - - COALESCE ( - - 87, 20 )
----
60679

skipif mysql # not compatible
query I rowsort label-334
SELECT - COUNT ( * ) + + 79 * - - 8 * 96 + - SUM ( DISTINCT + + 91 ) - + CAST ( - ( + 12 ) AS INTEGER ) + - - COALESCE ( - - 87, 20 )
----
60679

onlyif mysql # aggregate syntax: 
query III rowsort label-335
SELECT COUNT( * ) AS col2, 48, - 84 * 97 AS col1
----
1
48
-8148

skipif mysql # not compatible
query III rowsort label-335
SELECT COUNT ( * ) AS col2, 48, - 84 * 97 AS col1
----
1
48
-8148

query II rowsort
SELECT + 61 AS col2, - 11
----
61
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-337
SELECT - - 42 DIV - - CAST( + - COUNT( * ) AS SIGNED ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-337
SELECT - - 42 / - - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2
----
-42

query II rowsort
SELECT - 81 + 48 AS col0, 82 AS col2
----
-33
82

onlyif mysql # DIV for integer division: 
query I rowsort label-339
SELECT DISTINCT - + 33 DIV 6
----
-5

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT - + 33 / 6
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT ALL - + SUM( DISTINCT - + 9 ) * + - MIN( + 42 )
----
-378

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL - + SUM ( DISTINCT - + 9 ) * + - MIN ( + 42 )
----
-378

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT ALL - - ( 48 ) DIV - 35 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL - - ( 48 ) / - 35 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT - + 90 + - + 72 + - CASE + 73 WHEN 26 THEN + 88 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-342
SELECT - + 90 + - + 72 + - CASE + 73 WHEN 26 THEN + 88 END * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + - 53 * - 21 * + + 6 col0
----
6678

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-344
SELECT + CAST( + - 92 AS SIGNED ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-344
SELECT + CAST ( + - 92 AS INTEGER ) col0
----
-92

query II rowsort
SELECT - 41, - 78 + - 18 col1
----
-41
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-346
SELECT + 74 AS col2, 10 + + 69 DIV - 76 * + + SUM( - + 7 ) + 49 * - 97
----
74
-4743

skipif mysql # not compatible
query II rowsort label-346
SELECT + 74 AS col2, 10 + + 69 / - 76 * + + SUM ( - + 7 ) + 49 * - 97
----
74
-4743

query I rowsort
SELECT + 67 + 24 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT DISTINCT - COUNT( * ) + - SUM( ALL - 31 ) + - + 17
----
13

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT - COUNT ( * ) + - SUM ( ALL - 31 ) + - + 17
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-349
SELECT DISTINCT - CASE 38 WHEN CAST( + + 22 AS DECIMAL ) THEN + 69 WHEN + 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-349
SELECT DISTINCT - CASE 38 WHEN CAST ( + + 22 AS REAL ) THEN + 69 WHEN + 36 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 69 + 48 + - - 56 + + + 41 * + 72
----
3125

query I rowsort
SELECT ALL + 99 + - ( 78 ) + + 50 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT ALL 72 + - 71 * COUNT( DISTINCT + + 68 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL 72 + - 71 * COUNT ( DISTINCT + + 68 ) AS col2
----
1

query I rowsort
SELECT + 78 * + + 36 col0
----
2808

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-354
SELECT - ( + + 21 ), - 81 * - + 99 * 26 * 33 * + + 31 - + 71 * 76 * + CAST( 85 AS SIGNED ) + + CAST( - 12 AS SIGNED ) * + + 52 AS col1
----
-21
212830078

skipif mysql # not compatible
query II rowsort label-354
SELECT - ( + + 21 ), - 81 * - + 99 * 26 * 33 * + + 31 - + 71 * 76 * + CAST ( 85 AS INTEGER ) + + CAST ( - 12 AS INTEGER ) * + + 52 AS col1
----
-21
212830078

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT ALL 36 * - + MAX( + 22 ) * + 41 * - 24
----
779328

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL 36 * - + MAX ( + 22 ) * + 41 * - 24
----
779328

query I rowsort
SELECT + 42 - + 84
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-357
SELECT + 48 * 97 DIV + + 37
----
125

skipif mysql # not compatible
query I rowsort label-357
SELECT + 48 * 97 / + + 37
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-358
SELECT + CASE - 2 WHEN NULLIF ( + 72, - - 60 / + 51 + - + 65 * + COUNT( * ) ) THEN - 93 / + 68 + 39 WHEN + + 3 THEN CAST( + CAST( 34 AS SIGNED ) AS SIGNED ) + + 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-358
SELECT + CASE - 2 WHEN NULLIF ( + 72, - - 60 / + 51 + - + 65 * + COUNT ( * ) ) THEN - 93 / + 68 + 39 WHEN + + 3 THEN CAST ( + CAST ( 34 AS INTEGER ) AS INTEGER ) + + 13 END
----
NULL

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

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

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

query II rowsort
SELECT ( NULLIF ( - + 14, 78 * + 51 ) ) AS col2, 57 col0
----
-14
57

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-363
SELECT DISTINCT - 11 DIV - COALESCE ( COALESCE ( 62, + 8 ), COUNT( * ), 25 ) - + 88 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-363
SELECT DISTINCT - 11 / - COALESCE ( COALESCE ( 62, + 8 ), COUNT ( * ), 25 ) - + 88 AS col0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT ALL - 36 DIV + ( - 13 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL - 36 / + ( - 13 ) AS col1
----
2

query I rowsort
SELECT ( 54 ) col1
----
54

query I rowsort
SELECT + 52 * - 90
----
-4680

query I rowsort
SELECT - 58 * 27 AS col2
----
-1566

query I rowsort
SELECT + 28 + + 45 + 52
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT ( 16 ) * + COUNT( * ) + + 15 DIV - 62 * + 72 + + - 36
----
-20

skipif mysql # not compatible
query I rowsort label-369
SELECT ( 16 ) * + COUNT ( * ) + + 15 / - 62 * + 72 + + - 36
----
-20

query I rowsort
SELECT - 40 - - - 45 * + - NULLIF ( + 18, + + 56 / 25 + + 85 )
----
770

query I rowsort
SELECT ALL - + 30 * 72 * 73 * - 15 AS col0
----
2365200

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-373
SELECT ALL - 3 * + - ( - + 93 ) + - - 22 DIV - - COUNT( * ) AS col1
----
-257

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL - 3 * + - ( - + 93 ) + - - 22 / - - COUNT ( * ) AS col1
----
-257

query I rowsort
SELECT DISTINCT - 58 * + 65
----
-3770

query I rowsort
SELECT ALL 30 * 56 + - 18 + + - 83 * + 26
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT - 15 * + CASE 65 WHEN + 7 THEN + 13 + + 30 / - 49 + 3 - + 73 / - SUM( - 4 ) * 73 WHEN - 29 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-376
SELECT - 15 * + CASE 65 WHEN + 7 THEN + 13 + + 30 / - 49 + 3 - + 73 / - SUM ( - 4 ) * 73 WHEN - 29 THEN NULL END
----
NULL

query I rowsort
SELECT - - 61 + + 48
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-378
SELECT ALL - COUNT( * ) DIV + 95 + - + 82 DIV 50 + + 14 DIV - - 99 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL - COUNT ( * ) / + 95 + - + 82 / 50 + + 14 / - - 99 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT ALL + 73 * + 62 * COUNT( + 53 ) + - 92 AS col2
----
4434

skipif mysql # not compatible
query I rowsort label-379
SELECT ALL + 73 * + 62 * COUNT ( + 53 ) + - 92 AS col2
----
4434

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

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

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

skipif mysql # not compatible
query I rowsort label-381
SELECT - - 59 * - + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-382
SELECT ALL + COALESCE ( + CAST( - CAST( - 61 AS DECIMAL ) AS SIGNED ), 22 )
----
61

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL + COALESCE ( + CAST ( - CAST ( - 61 AS REAL ) AS INTEGER ), 22 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT - COUNT( * ) - 96
----
-97

skipif mysql # not compatible
query I rowsort label-383
SELECT - COUNT ( * ) - 96
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT ALL - 40 * + 80 * + + SUM( - 8 )
----
25600

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL - 40 * + 80 * + + SUM ( - 8 )
----
25600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-385
SELECT DISTINCT CAST( - MIN( - 23 ) AS SIGNED ), 72 * + 50 AS col0
----
23
3600

skipif mysql # not compatible
query II rowsort label-385
SELECT DISTINCT CAST ( - MIN ( - 23 ) AS INTEGER ), 72 * + 50 AS col0
----
23
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT - 66 + + - 68 * 33 + + ( + NULLIF ( - COUNT( * ), - 1 * + 40 + 4 + + 41 ) )
----
-2311

skipif mysql # not compatible
query I rowsort label-386
SELECT - 66 + + - 68 * 33 + + ( + NULLIF ( - COUNT ( * ), - 1 * + 40 + 4 + + 41 ) )
----
-2311

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-387
SELECT - 67 AS col0, - 68 * - 80 * CAST( + + 36 AS SIGNED ) * 73 - 80
----
-67
14296240

skipif mysql # not compatible
query II rowsort label-387
SELECT - 67 AS col0, - 68 * - 80 * CAST ( + + 36 AS INTEGER ) * 73 - 80
----
-67
14296240

query I rowsort
SELECT - 42 + - 87 AS col0
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-389
SELECT 61 AS col2, COUNT( * ) DIV - 66 + 25
----
61
25

skipif mysql # not compatible
query II rowsort label-389
SELECT 61 AS col2, COUNT ( * ) / - 66 + 25
----
61
25

query I rowsort
SELECT - 19 + 72 * - 13 + + ( 46 ) col2
----
-909

onlyif mysql # DIV for integer division: 
query II rowsort label-391
SELECT ALL 78 AS col1, - 58 DIV + 76 * 67 + - 76 AS col2
----
78
-76

skipif mysql # not compatible
query II rowsort label-391
SELECT ALL 78 AS col1, - 58 / + 76 * 67 + - 76 AS col2
----
78
-76

query I rowsort
SELECT - 95 + - 92
----
-187

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

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

query I rowsort
SELECT 34 * - - 23
----
782

query I rowsort
SELECT 40 + + 4 + + + 23 * 6
----
182

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

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

query I rowsort
SELECT 23 * 64 AS col1
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT 41 * 37 + - SUM( + 31 )
----
1486

skipif mysql # not compatible
query I rowsort label-398
SELECT 41 * 37 + - SUM ( + 31 )
----
1486

query II rowsort
SELECT DISTINCT 82 * + 56 * + 58, 58 AS col1
----
266336
58

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT ALL + 60 + + COUNT( * ) + - - COUNT( * ) * - + 30 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL + 60 + + COUNT ( * ) + - - COUNT ( * ) * - + 30 AS col0
----
31

query I rowsort
SELECT ALL - 70 + 1
----
-69

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

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

query II rowsort
SELECT + 2, + 39 AS col2
----
2
39

query I rowsort
SELECT - 13 * + + 53 * - 1 * 41
----
28249

query I rowsort
SELECT ALL - 68 + - 24 * + 47 * 67
----
-75644

query II rowsort
SELECT 29 * 23 - 12 AS col0, 38 AS col0
----
655
38

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT COUNT( * ) * + MIN( 62 ) - + COUNT( * ) + + 74
----
135

skipif mysql # not compatible
query I rowsort label-407
SELECT COUNT ( * ) * + MIN ( 62 ) - + COUNT ( * ) + + 74
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-408
SELECT + COUNT( * ) - CAST( 35 AS SIGNED ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-408
SELECT + COUNT ( * ) - CAST ( 35 AS INTEGER ) AS col2
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT ALL - MIN( ALL - 31 ) + 97
----
128

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL - MIN ( ALL - 31 ) + 97
----
128

query II rowsort
SELECT ALL - - 11 * + ( - + 48 ) AS col2, + 10 col0
----
-528
10

onlyif mysql # aggregate syntax: 
query II rowsort label-412
SELECT DISTINCT 85 * + 65 + COUNT( * ), 61 AS col2
----
5526
61

skipif mysql # not compatible
query II rowsort label-412
SELECT DISTINCT 85 * + 65 + COUNT ( * ), 61 AS col2
----
5526
61

onlyif mysql # aggregate syntax: 
query II rowsort label-413
SELECT - 29 + + ( 29 ), MAX( ALL + - 85 ) AS col0
----
0
-85

skipif mysql # not compatible
query II rowsort label-413
SELECT - 29 + + ( 29 ), MAX ( ALL + - 85 ) AS col0
----
0
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-414
SELECT 28 * CAST( NULL AS DECIMAL ) * 83 AS col2, - COUNT( * ) AS col0, - - 4 - - - 47 - + 22 AS col0
----
NULL
-1
-65

skipif mysql # not compatible
query III rowsort label-414
SELECT 28 * CAST ( NULL AS REAL ) * 83 AS col2, - COUNT ( * ) AS col0, - - 4 - - - 47 - + 22 AS col0
----
NULL
-1
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT ALL + NULLIF ( - 65, MAX( DISTINCT 31 ) * + 11 )
----
-65

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL + NULLIF ( - 65, MAX ( DISTINCT 31 ) * + 11 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT DISTINCT + ( + SUM( + 20 ) ) - + 25 + - - 78 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT + ( + SUM ( + 20 ) ) - + 25 + - - 78 AS col1
----
73

query I rowsort
SELECT ( + 53 ) * - 17
----
-901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-418
SELECT 44 * + MIN( - 38 ) * - 25 * + 2 * + + CAST( - - CASE 91 WHEN - 71 THEN NULL WHEN + CASE - 55 WHEN + - 17 THEN + 55 * 25 + - 95 * 89 END * 50 / - + 96 - 33 THEN + 79 WHEN NULLIF ( 60, - + 16 ) THEN NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-418
SELECT 44 * + MIN ( - 38 ) * - 25 * + 2 * + + CAST ( - - CASE 91 WHEN - 71 THEN NULL WHEN + CASE - 55 WHEN + - 17 THEN + 55 * 25 + - 95 * 89 END * 50 / - + 96 - 33 THEN + 79 WHEN NULLIF ( 60, - + 16 ) THEN NULL END AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-419
SELECT DISTINCT + CASE - - 47 WHEN - + 66 + - - 94 THEN + 35 * COUNT( * ) * - - 93 - - + 22 END * + 65 + + CAST( + COUNT( ALL - ( + 63 ) ) AS SIGNED ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-419
SELECT DISTINCT + CASE - - 47 WHEN - + 66 + - - 94 THEN + 35 * COUNT ( * ) * - - 93 - - + 22 END * + 65 + + CAST ( + COUNT ( ALL - ( + 63 ) ) AS INTEGER ) * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-420
SELECT DISTINCT + SUM( ALL - + 28 ) DIV 29 - - - 80 * - 0 + MIN( ALL + 61 ) + + 55 * 80 * - + 67 * + 79 + + - 60 + - - 10
----
-23289189

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT + SUM ( ALL - + 28 ) / 29 - - - 80 * - 0 + MIN ( ALL + 61 ) + + 55 * 80 * - + 67 * + 79 + + - 60 + - - 10
----
-23289189

query I rowsort
SELECT DISTINCT - 82 * - - 0 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-422
SELECT 20 * + COUNT( * ) DIV - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-422
SELECT 20 * + COUNT ( * ) / - 72 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * 48 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-424
SELECT 30 - + COUNT ( * ) AS col2
----
29

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

skipif mysql # not compatible
query I rowsort label-425
SELECT 69 * - COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT 39 - - NULLIF ( - ( + COUNT( * ) ), - MAX( DISTINCT - 97 ) + + - 37 )
----
38

skipif mysql # not compatible
query I rowsort label-426
SELECT 39 - - NULLIF ( - ( + COUNT ( * ) ), - MAX ( DISTINCT - 97 ) + + - 37 )
----
38

query II rowsort
SELECT 58 * - CASE + - 98 WHEN + 81 THEN 71 WHEN 96 THEN NULL WHEN + - 39 THEN - + 9 - - 46 + 60 + COALESCE ( + + NULLIF ( - 63, - 38 ), + - 77 ) END * 69 * + 54 AS col1, - 52
----
NULL
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-428
SELECT ALL + CAST( + 25 AS DECIMAL ) + + COUNT( * ) + - COUNT( * ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL + CAST ( + 25 AS REAL ) + + COUNT ( * ) + - COUNT ( * ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-429
SELECT ALL 5 + - + COUNT( * ) + 29 DIV - + 41 * - - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL 5 + - + COUNT ( * ) + 29 / - + 41 * - - COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT DISTINCT + + ( COUNT( DISTINCT ( + 29 ) ) ) + + 18 + - + SUM( 80 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT + + ( COUNT ( DISTINCT ( + 29 ) ) ) + + 18 + - + SUM ( 80 ) AS col0
----
-61

query I rowsort
SELECT ALL + ( 61 ) * - + NULLIF ( 53, + 44 )
----
-3233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-432
SELECT 84 * 22 + - + 8 + - 37 + + - 29 / + COUNT( * ) + - - ( CAST( NULL AS SIGNED ) ) * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT 84 * 22 + - + 8 + - 37 + + - 29 / + COUNT ( * ) + - - ( CAST ( NULL AS INTEGER ) ) * - 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT DISTINCT COUNT( * ) - - 5 + 75 + - + 11 * + + 25
----
-194

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT COUNT ( * ) - - 5 + 75 + - + 11 * + + 25
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT NULLIF ( + COUNT( * ), - 25 * + 62 * + 27 + + + SUM( DISTINCT - 53 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-434
SELECT NULLIF ( + COUNT ( * ), - 25 * + 62 * + 27 + + + SUM ( DISTINCT - 53 ) ) AS col0
----
1

query I rowsort
SELECT 97 + 38 AS col0
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-436
SELECT 84 * - - 95 - CASE - - ( - 68 ) WHEN - 18 + + 50 THEN + 38 ELSE - COUNT( * ) - 19 END, 44 AS col2
----
8000
44

skipif mysql # not compatible
query II rowsort label-436
SELECT 84 * - - 95 - CASE - - ( - 68 ) WHEN - 18 + + 50 THEN + 38 ELSE - COUNT ( * ) - 19 END, 44 AS col2
----
8000
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-437
SELECT ALL - ( + COUNT( * ) ) DIV 14 + - 63 + - ( + NULLIF ( 25, + ( + 18 ) ) ) * + 94 * + COUNT( * )
----
-2413

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL - ( + COUNT ( * ) ) / 14 + - 63 + - ( + NULLIF ( 25, + ( + 18 ) ) ) * + 94 * + COUNT ( * )
----
-2413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-438
SELECT + 71 * - COALESCE ( - NULLIF ( - 8, - 16 * 57 * + 10 ), - CAST( - - 10 AS SIGNED ) - 5 ) * - 78 * - 12 - + COUNT( * ) * - 37
----
-531611

skipif mysql # not compatible
query I rowsort label-438
SELECT + 71 * - COALESCE ( - NULLIF ( - 8, - 16 * 57 * + 10 ), - CAST ( - - 10 AS INTEGER ) - 5 ) * - 78 * - 12 - + COUNT ( * ) * - 37
----
-531611

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT - SUM( + - 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-439
SELECT - SUM ( + - 44 ) AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-440
SELECT - + COUNT( * ) * + 57 + - ( 4 ) + - 74 + NULLIF ( - - 8, CASE 98 WHEN - COUNT( * ) * + - 66 THEN + 50 / + 65 * 80 WHEN + - 29 - - NULLIF ( + + COUNT( * ), - 70 * + CAST( 38 AS SIGNED ) * MIN( ALL + 91 ) * + - 72 / - + 14 * - 38 + 79 + - - MIN( ALL - + 76 ) - - 27 - 91 + + 73 ) THEN 27 * - 16 END / 93 ) * 57 - - 75 * 12
----
1221

skipif mysql # not compatible
query I rowsort label-440
SELECT - + COUNT ( * ) * + 57 + - ( 4 ) + - 74 + NULLIF ( - - 8, CASE 98 WHEN - COUNT ( * ) * + - 66 THEN + 50 / + 65 * 80 WHEN + - 29 - - NULLIF ( + + COUNT ( * ), - 70 * + CAST ( 38 AS INTEGER ) * MIN ( ALL + 91 ) * + - 72 / - + 14 * - 38 + 79 + - - MIN ( ALL - + 76 ) - - 27 - 91 + + 73 ) THEN 27 * - 16 END / 93 ) * 57 - - 75 * 12
----
1221

query I rowsort
SELECT ALL + 68 * 99 * - 73 * 48 col1
----
-23588928

query I rowsort
SELECT + 89 - - 26 - + 81 * 19 AS col2
----
-1424

query I rowsort
SELECT ALL ( - 1 ) * - 14 col2
----
14

query I rowsort
SELECT + 53 + - 59 * 85 AS col1
----
-4962

query I rowsort
SELECT - ( + 70 ) * + - 90 + - + 26
----
6274

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT + COUNT( * ) + + 11 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-446
SELECT + COUNT ( * ) + + 11 AS col0
----
12

query I rowsort
SELECT - ( + 43 ) - - 41
----
-2

query I rowsort
SELECT + 6 + - 64 col0
----
-58

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

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL COUNT ( * ) + 13 + COUNT ( * ) AS col2
----
15

query I rowsort
SELECT ALL - 6 + + 48 AS col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-451
SELECT 10, - 9 - + SUM( DISTINCT 85 ) AS col2
----
10
-94

skipif mysql # not compatible
query II rowsort label-451
SELECT 10, - 9 - + SUM ( DISTINCT 85 ) AS col2
----
10
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-452
SELECT ALL 5 DIV - 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL 5 / - 7 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-454
SELECT + - 37 * - 65 + - - COUNT( * ) + - 13 * ( - - NULLIF ( 0, + - COUNT( * ) * + 77 + 70 ) ) * - 97 * 24 - + 55 DIV - 87 + - 92 + + + 12 + - - 24 col2
----
2350

skipif mysql # not compatible
query I rowsort label-454
SELECT + - 37 * - 65 + - - COUNT ( * ) + - 13 * ( - - NULLIF ( 0, + - COUNT ( * ) * + 77 + 70 ) ) * - 97 * 24 - + 55 / - 87 + - 92 + + + 12 + - - 24 col2
----
2350

query I rowsort
SELECT - - 73 + 68 * + - ( + + 9 ) AS col1
----
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT + 65 * + - 64 + MIN( - 55 )
----
-4215

skipif mysql # not compatible
query I rowsort label-456
SELECT + 65 * + - 64 + MIN ( - 55 )
----
-4215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-457
SELECT ALL 52 * + ( + 74 ) / CAST( - - 90 AS SIGNED ) + - 96 / - + CAST( NULL AS SIGNED ) * 85 - - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL 52 * + ( + 74 ) / CAST ( - - 90 AS INTEGER ) + - 96 / - + CAST ( NULL AS INTEGER ) * 85 - - 48 AS col0
----
NULL

query II rowsort
SELECT - 99, - 12 col1
----
-99
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-459
SELECT ALL + 18 * + 5 - - 90 AS col0, MAX( DISTINCT + 2 )
----
180
2

skipif mysql # not compatible
query II rowsort label-459
SELECT ALL + 18 * + 5 - - 90 AS col0, MAX ( DISTINCT + 2 )
----
180
2

query I rowsort
SELECT ALL - 36 * + 41
----
-1476

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT + + CAST( 45 AS SIGNED ) col0
----
45

skipif mysql # not compatible
query I rowsort label-462
SELECT + + CAST ( 45 AS INTEGER ) col0
----
45

query I rowsort
SELECT + 25 * + + 31 AS col0
----
775

query I rowsort
SELECT - 64 + + - ( + 97 ) AS col2
----
-161

query I rowsort
SELECT + 96 * 80 AS col1
----
7680

query I rowsort
SELECT DISTINCT - 63 * - 82 * + 21 AS col1
----
108486

query I rowsort
SELECT ALL + COALESCE ( + - 42, + 94 ) * - 52
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT - NULLIF ( + 34, COUNT( + - 33 ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-468
SELECT - NULLIF ( + 34, COUNT ( + - 33 ) ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT + 66 + 28 + + 36 * + - 4 + + COUNT( * ) + 25 * - 98 + + - 18 * - MAX( + + 97 )
----
-753

skipif mysql # not compatible
query I rowsort label-469
SELECT + 66 + 28 + + 36 * + - 4 + + COUNT ( * ) + 25 * - 98 + + - 18 * - MAX ( + + 97 )
----
-753

query I rowsort
SELECT - 36 * 14 * + 62 AS col2
----
-31248

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

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT COUNT ( * ) / 74
----
0

query I rowsort
SELECT - NULLIF ( - 3, - + 77 )
----
3

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

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

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

query I rowsort
SELECT ALL 0 + - 66 AS col2
----
-66

query I rowsort
SELECT + NULLIF ( - 98, + - 84 ) * - ( + 53 )
----
5194

onlyif mysql # aggregate syntax: 
query II rowsort label-477
SELECT DISTINCT 40 AS col0, - 84 * + COUNT( * ) * + 63 AS col1
----
40
-5292

skipif mysql # not compatible
query II rowsort label-477
SELECT DISTINCT 40 AS col0, - 84 * + COUNT ( * ) * + 63 AS col1
----
40
-5292

query I rowsort
SELECT ALL 64 + - ( 65 )
----
-1

query II rowsort
SELECT 96 AS col0, 22 AS col2
----
96
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-480
SELECT ALL 58 + 32 - - - 48 * + COUNT( * ) DIV - + 59 * - NULLIF ( - 51, + - 63 * + - 0 * 9 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-480
SELECT ALL 58 + 32 - - - 48 * + COUNT ( * ) / - + 59 * - NULLIF ( - 51, + - 63 * + - 0 * 9 ) AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-481
SELECT - 8 AS col2, CAST( NULL AS SIGNED ) col0
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-481
SELECT - 8 AS col2, CAST ( NULL AS INTEGER ) col0
----
-8
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-482
SELECT + 10 - + - 12 DIV 66 * 41 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-482
SELECT + 10 - + - 12 / 66 * 41 AS col1
----
10

query I rowsort
SELECT - 79 * + + 94
----
-7426

query II rowsort
SELECT - 82 AS col0, + 67 AS col1
----
-82
67

query I rowsort
SELECT + 37 - + 92
----
-55

query I rowsort
SELECT ALL 6 - 55 col0
----
-49

query II rowsort
SELECT DISTINCT + - 11 AS col0, 45
----
-11
45

onlyif mysql # aggregate syntax: 
query II rowsort label-488
SELECT + + 42 AS col0, + 81 * - COUNT( * ) * + - COUNT( * ) AS col2
----
42
81

skipif mysql # not compatible
query II rowsort label-488
SELECT + + 42 AS col0, + 81 * - COUNT ( * ) * + - COUNT ( * ) AS col2
----
42
81

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT ALL - 87 DIV + NULLIF ( + + 90, - 0 * - - 19 )
----
0

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL - 87 / + NULLIF ( + + 90, - 0 * - - 19 )
----
0

query I rowsort
SELECT - + ( + 42 ) - ( 71 ) AS col1
----
-113

query I rowsort
SELECT ALL - + 4 * - + 16 AS col0
----
64

query I rowsort
SELECT + 26 * - 37
----
-962

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

skipif mysql # not compatible
query I rowsort label-493
SELECT - 9 / + 38
----
0

query I rowsort
SELECT - 53 + - 31
----
-84

query I rowsort
SELECT - 23 * 64
----
-1472

query I rowsort
SELECT DISTINCT - 2 * + - 26
----
52

query I rowsort
SELECT + - COALESCE ( + - 10, - 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT DISTINCT + 22 + COUNT( * ) + - 1 * + 18 + 72 - - ( - 62 ) + + 46 * - - 25
----
1165

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT + 22 + COUNT ( * ) + - 1 * + 18 + 72 - - ( - 62 ) + + 46 * - - 25
----
1165

query I rowsort
SELECT DISTINCT - 32 * - - 65 AS col2
----
-2080

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT 43 * + + SUM( DISTINCT 32 )
----
1376

skipif mysql # not compatible
query I rowsort label-501
SELECT 43 * + + SUM ( DISTINCT 32 )
----
1376

query II rowsort
SELECT ALL 18 + 26 AS col2, 27
----
44
27

query I rowsort
SELECT DISTINCT - 33 * 60 AS col2
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT ALL - 15 * - + ( ( + + MAX( - 1 ) ) ) * + CASE + 79 WHEN + 54 + 29 THEN + 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL - 15 * - + ( ( + + MAX ( - 1 ) ) ) * + CASE + 79 WHEN + 54 + 29 THEN + 75 END
----
NULL

query II rowsort
SELECT DISTINCT + 60 + + + 25 col1, 49 AS col0
----
85
49

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT COUNT( * ) + COUNT( * ) + CASE - 84 WHEN + COUNT( * ) THEN - 69 * + + 13 WHEN + 71 + + - ( - + ( 37 ) ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-506
SELECT COUNT ( * ) + COUNT ( * ) + CASE - 84 WHEN + COUNT ( * ) THEN - 69 * + + 13 WHEN + 71 + + - ( - + ( 37 ) ) THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT 64 + - 57 AS col1, 33 + - 94 AS col2
----
7
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT NULLIF ( + COUNT( - 60 ), + 89 ) * - 79 * - 69 AS col0
----
5451

skipif mysql # not compatible
query I rowsort label-508
SELECT NULLIF ( + COUNT ( - 60 ), + 89 ) * - 79 * - 69 AS col0
----
5451

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT DISTINCT 52 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT 52 / + 77
----
0

query I rowsort
SELECT 31 - + 66
----
-35

query I rowsort
SELECT NULLIF ( 11, - 40 ) + - 17 + + 40 * + 64
----
2554

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT ALL MAX( DISTINCT + - 96 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL MAX ( DISTINCT + - 96 ) AS col1
----
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-513
SELECT + 35 + - - ( - + 27 ) DIV + + 38 * + - CAST( - 80 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-513
SELECT + 35 + - - ( - + 27 ) / + + 38 * + - CAST ( - 80 AS INTEGER ) AS col2
----
35

query I rowsort
SELECT ( + + 22 ) * 28 + + + 58
----
674

query I rowsort
SELECT DISTINCT 22 * - 40
----
-880

query I rowsort
SELECT 3 + - 43 + + 13 + - 91 * + 97 AS col1
----
-8854

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT ALL COUNT( * ) * + COUNT( * ) - + 81 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL COUNT ( * ) * + COUNT ( * ) - + 81 AS col1
----
-80

query I rowsort
SELECT - 84 + 49 + + + 93
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL - - SUM( NULLIF ( + 99, + 96 ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL - - SUM ( NULLIF ( + 99, + 96 ) ) AS col1
----
99

query I rowsort
SELECT + CASE + 45 WHEN - + 21 THEN NULL ELSE - 8 + + 92 + + 40 * 66 END
----
2724

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-522
SELECT CASE - 98 WHEN + - COALESCE ( 7, 58 * + 8 * - + 90, 4 ) - + CAST( NULL AS DECIMAL ) THEN + 9 - + 2 + - + 50 + 70 - - 57 * + + 61 * 40 WHEN - - ( - 26 ) THEN + + 49 WHEN 54 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-522
SELECT CASE - 98 WHEN + - COALESCE ( 7, 58 * + 8 * - + 90, 4 ) - + CAST ( NULL AS REAL ) THEN + 9 - + 2 + - + 50 + 70 - - 57 * + + 61 * 40 WHEN - - ( - 26 ) THEN + + 49 WHEN 54 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-523
SELECT ALL + 14 + 16, COUNT( * ) col0
----
30
1

skipif mysql # not compatible
query II rowsort label-523
SELECT ALL + 14 + 16, COUNT ( * ) col0
----
30
1

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT ( - COALESCE ( - 76, - 9, + - CASE + ( + 34 ) WHEN COUNT( * ) * + MIN( ALL + 17 ) * + 41 THEN - ( + 98 ) END ) )
----
76

skipif mysql # not compatible
query I rowsort label-524
SELECT ( - COALESCE ( - 76, - 9, + - CASE + ( + 34 ) WHEN COUNT ( * ) * + MIN ( ALL + 17 ) * + 41 THEN - ( + 98 ) END ) )
----
76

query I rowsort
SELECT ALL + 92 + ( + 59 ) col2
----
151

query I rowsort
SELECT 38 * - 99 AS col2
----
-3762

query I rowsort
SELECT 53 * 8
----
424

onlyif mysql # aggregate syntax: 
query II rowsort label-528
SELECT DISTINCT - 91 col1, ( - - 33 ) * + ( - COALESCE ( - 53, + NULLIF ( COUNT( + + 89 ), - + 98 ) * - 79, - 80 ) )
----
-91
1749

skipif mysql # not compatible
query II rowsort label-528
SELECT DISTINCT - 91 col1, ( - - 33 ) * + ( - COALESCE ( - 53, + NULLIF ( COUNT ( + + 89 ), - + 98 ) * - 79, - 80 ) )
----
-91
1749

query I rowsort
SELECT ALL - 46 + 67 + - - 24 * + 41 * 43 AS col0
----
42333

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT 40 + - + 92 + + COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-530
SELECT 40 + - + 92 + + COUNT ( * ) AS col0
----
-51

query I rowsort
SELECT DISTINCT 54 * - + 91
----
-4914

query I rowsort
SELECT ALL + 73 + - + 38 + + 90 col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT DISTINCT - MAX( + - CASE - 1 WHEN - 78 THEN 53 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT - MAX ( + - CASE - 1 WHEN - 78 THEN 53 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL MIN( - ( + NULLIF ( + + 25, - - ( - 23 ) ) ) ) * - 19 * ( - 65 ) AS col2
----
-30875

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL MIN ( - ( + NULLIF ( + + 25, - - ( - 23 ) ) ) ) * - 19 * ( - 65 ) AS col2
----
-30875

query I rowsort
SELECT DISTINCT + CASE 37 WHEN - 73 * 91 THEN NULL ELSE 68 END + 85 AS col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT ALL MAX( ALL - 99 ) col2
----
-99

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL MAX ( ALL - 99 ) col2
----
-99

query I rowsort
SELECT 75 + 78
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT ALL + 74 - + COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL + 74 - + COUNT ( * ) AS col1
----
73

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

skipif mysql # not compatible
query II rowsort label-539
SELECT - COUNT ( * ), + 31 AS col2
----
-1
31

query II rowsort
SELECT 84 + 31 + - - 76, + 72 AS col1
----
191
72

query I rowsort
SELECT 55 * + - 33 * + - 77
----
139755

query II rowsort
SELECT 7 AS col0, + 60 * 58 AS col1
----
7
3480

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

query I rowsort
SELECT ALL + 84 * + 2
----
168

query II rowsort
SELECT 21 AS col1, 20 AS col2
----
21
20

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT DISTINCT + 2 DIV + 64 * + ( 9 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-546
SELECT DISTINCT + 2 / + 64 * + ( 9 ) AS col0
----
0

query I rowsort
SELECT ALL - 11 - - + 82 AS col0
----
71

query I rowsort
SELECT ALL + 31 * - 60 AS col2
----
-1860

query I rowsort
SELECT ALL + + 45 * 18
----
810

query II rowsort
SELECT DISTINCT 11, 12 col1
----
11
12

query II rowsort
SELECT DISTINCT - 66 AS col2, + 5
----
-66
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-553
SELECT ALL - + 33 * + CAST( - 64 AS SIGNED ) AS col0
----
2112

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL - + 33 * + CAST ( - 64 AS INTEGER ) AS col0
----
2112

query I rowsort
SELECT 28 * + 62
----
1736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-555
SELECT 59 / - MAX( ALL - 7 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-555
SELECT 59 / - MAX ( ALL - 7 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-556
SELECT + 64 DIV + NULLIF ( + ( + COUNT( * ) ), + + 24 DIV 56 * CAST( SUM( 92 ) AS SIGNED ) - + 22 * - CAST( NULL AS SIGNED ) * - 59 * + 26 )
----
64

skipif mysql # not compatible
query I rowsort label-556
SELECT + 64 / + NULLIF ( + ( + COUNT ( * ) ), + + 24 / 56 * CAST ( SUM ( 92 ) AS INTEGER ) - + 22 * - CAST ( NULL AS INTEGER ) * - 59 * + 26 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT DISTINCT - NULLIF ( + 46, + 9 / - 50 * - - CASE WHEN NULL IS NOT NULL THEN COUNT( * ) END + - + NULLIF ( 6, + + 14 ) - + - 11 )
----
-46

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT - NULLIF ( + 46, + 9 / - 50 * - - CASE WHEN NULL IS NOT NULL THEN COUNT ( * ) END + - + NULLIF ( 6, + + 14 ) - + - 11 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT ALL - 4 + - 97 + - + COUNT( * )
----
-102

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL - 4 + - 97 + - + COUNT ( * )
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-559
SELECT 88 col2, + COALESCE ( - + CAST( - - 56 AS SIGNED ), + NULLIF ( + + 16, + 73 ) + + 57 ) AS col0
----
88
-56

skipif mysql # not compatible
query II rowsort label-559
SELECT 88 col2, + COALESCE ( - + CAST ( - - 56 AS INTEGER ), + NULLIF ( + + 16, + 73 ) + + 57 ) AS col0
----
88
-56

query I rowsort
SELECT DISTINCT + - 28 + - - 57 AS col2
----
29

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

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

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

skipif mysql # not compatible
query I rowsort label-562
SELECT MIN ( + 87 )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-563
SELECT ALL + SUM( DISTINCT + 85 ) * - - 65 * + AVG ( ALL 10 ) * - - COALESCE ( 46, 6 ) - 67 + + CASE + AVG ( - + 17 ) WHEN - 53 THEN - 11 + + 49 + - + 1 + ( - + COUNT( * ) ) + + 42 END * NULLIF ( + MIN( ALL CAST( + - 38 AS SIGNED ) ), - 49 * + + ( - 41 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL + SUM ( DISTINCT + 85 ) * - - 65 * + AVG ( ALL 10 ) * - - COALESCE ( 46, 6 ) - 67 + + CASE + AVG ( - + 17 ) WHEN - 53 THEN - 11 + + 49 + - + 1 + ( - + COUNT ( * ) ) + + 42 END * NULLIF ( + MIN ( ALL CAST ( + - 38 AS INTEGER ) ), - 49 * + + ( - 41 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-564
SELECT DISTINCT + + 23 AS col0, + COUNT( * ) + + 85
----
23
86

skipif mysql # not compatible
query II rowsort label-564
SELECT DISTINCT + + 23 AS col0, + COUNT ( * ) + + 85
----
23
86

query I rowsort
SELECT ALL + 54 * - ( 49 ) + - 21
----
-2667

onlyif mysql # aggregate syntax: 
query II rowsort label-566
SELECT ALL 41 * + 89 * - COUNT( * ) AS col0, 4 * - + 78 * - + COUNT( * ) AS col0
----
-3649
312

skipif mysql # not compatible
query II rowsort label-566
SELECT ALL 41 * + 89 * - COUNT ( * ) AS col0, 4 * - + 78 * - + COUNT ( * ) AS col0
----
-3649
312

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT + + COUNT( * ) * COALESCE ( - 47, + 56 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-567
SELECT + + COUNT ( * ) * COALESCE ( - 47, + 56 ) AS col0
----
-47

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

skipif mysql # not compatible
query I rowsort label-568
SELECT + MIN ( + - 19 )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-569
SELECT ALL - ( + 27 ) * 36 + COUNT( ALL + + 22 ) * + CAST( NULL AS SIGNED ) + + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL - ( + 27 ) * 36 + COUNT ( ALL + + 22 ) * + CAST ( NULL AS INTEGER ) + + 45 AS col2
----
NULL

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

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

query I rowsort
SELECT + 89 + - 73
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT DISTINCT CASE - 35 WHEN + COALESCE ( - - ( + COUNT( DISTINCT 60 ) ), COUNT( * ) ) + - COUNT( * ) * 6 + ( - - COALESCE ( + 77, 40 ) ) THEN - 55 ELSE + - 9 END * + 84 AS col0
----
-756

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT CASE - 35 WHEN + COALESCE ( - - ( + COUNT ( DISTINCT 60 ) ), COUNT ( * ) ) + - COUNT ( * ) * 6 + ( - - COALESCE ( + 77, 40 ) ) THEN - 55 ELSE + - 9 END * + 84 AS col0
----
-756

query I rowsort
SELECT ALL - 42 * + 23 * - 76 + 37 * + - 57
----
71307

onlyif mysql # DIV for integer division: 
query I rowsort label-574
SELECT ALL 77 DIV - - 2
----
38

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL 77 / - - 2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT + CASE 69 WHEN + 5 THEN - 8 * 12 * - ( - COUNT( * ) ) - - 28 + - - 38 * - 61 ELSE + - 33 END
----
-33

skipif mysql # not compatible
query I rowsort label-575
SELECT + CASE 69 WHEN + 5 THEN - 8 * 12 * - ( - COUNT ( * ) ) - - 28 + - - 38 * - 61 ELSE + - 33 END
----
-33

query I rowsort
SELECT + COALESCE ( + COALESCE ( + 27, + 57 ), 35 ) AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-577
SELECT ALL 41 DIV - - 91 * + 6
----
0

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL 41 / - - 91 * + 6
----
0

query I rowsort
SELECT + COALESCE ( + 98, 58, + + 17 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT 79 * + - 71 * COUNT( * ) + + 96 * + 52
----
-617

skipif mysql # not compatible
query I rowsort label-579
SELECT 79 * + - 71 * COUNT ( * ) + + 96 * + 52
----
-617

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT - 5 * + SUM( 4 )
----
-20

skipif mysql # not compatible
query I rowsort label-580
SELECT - 5 * + SUM ( 4 )
----
-20

query II rowsort
SELECT + 4 * 23 + 20 * 34 AS col1, 1
----
772
1

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT DISTINCT MIN( + 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT MIN ( + 45 ) AS col2
----
45

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

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

query I rowsort
SELECT - - 63 - - 5 AS col0
----
68

query I rowsort
SELECT - + 88 + 1
----
-87

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

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

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

skipif mysql # not compatible
query I rowsort label-587
SELECT - - COUNT ( * ) * ( - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT - - NULLIF ( COUNT( * ), - + 28 ) + + 80 * 52 AS col2
----
4161

skipif mysql # not compatible
query I rowsort label-588
SELECT - - NULLIF ( COUNT ( * ), - + 28 ) + + 80 * 52 AS col2
----
4161

query I rowsort
SELECT ALL + 8 + COALESCE ( + + 53, + 81 + + 34 ) + + 81 AS col0
----
142

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

query I rowsort
SELECT - 6 + 48
----
42

query II rowsort
SELECT - 75 - - 21 AS col0, 99
----
-54
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-593
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + ( - - 35 ) + - 0 + 45 + COUNT( * ) - + - 40 + 97 + + 34 * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT - CAST ( NULL AS REAL ) + + ( - - 35 ) + - 0 + 45 + COUNT ( * ) - + - 40 + 97 + + 34 * - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT DISTINCT + COALESCE ( COUNT( * ), - 75 * 86 + + MIN( 46 ) ) + ( 35 )
----
36

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT + COALESCE ( COUNT ( * ), - 75 * 86 + + MIN ( 46 ) ) + ( 35 )
----
36

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

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT + 14 + - COUNT ( * ) / + 2 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT ALL COUNT( - 2 ) + - 27 * - + COUNT( * ) * - 25 AS col2
----
-674

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL COUNT ( - 2 ) + - 27 * - + COUNT ( * ) * - 25 AS col2
----
-674

query I rowsort
SELECT ALL + - 26 * + - 86
----
2236

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

onlyif mysql # DIV for integer division: 
query I rowsort label-599
SELECT ALL - - 65 DIV - + 11 + - 12
----
-17

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL - - 65 / - + 11 + - 12
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT COUNT( * ) * 53 + 71 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-600
SELECT COUNT ( * ) * 53 + 71 AS col1
----
124

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-602
SELECT - 39 DIV - 78 + 2 * + 91 + + + 22 + + - MAX( DISTINCT 12 ) + - 14 AS col0, + 89 AS col0
----
178
89

skipif mysql # not compatible
query II rowsort label-602
SELECT - 39 / - 78 + 2 * + 91 + + + 22 + + - MAX ( DISTINCT 12 ) + - 14 AS col0, + 89 AS col0
----
178
89

query II rowsort
SELECT ALL + 30 AS col1, + 53 * + 90
----
30
4770

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT + CASE COUNT( * ) WHEN - - 39 THEN 85 * + 39 * + - ( + CASE 74 WHEN 11 * 41 THEN NULL WHEN 45 THEN - COALESCE ( + + 16, + 43 / COUNT( - 77 ) ) WHEN - COALESCE ( - 31, + + COUNT( * ) ) / + - 53 THEN NULL END ) ELSE NULL END + + NULLIF ( - + 27, + 94 / - + 48 + COUNT( * ) ) * + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-604
SELECT + CASE COUNT ( * ) WHEN - - 39 THEN 85 * + 39 * + - ( + CASE 74 WHEN 11 * 41 THEN NULL WHEN 45 THEN - COALESCE ( + + 16, + 43 / COUNT ( - 77 ) ) WHEN - COALESCE ( - 31, + + COUNT ( * ) ) / + - 53 THEN NULL END ) ELSE NULL END + + NULLIF ( - + 27, + 94 / - + 48 + COUNT ( * ) ) * + 33 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-605
SELECT DISTINCT 0 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( + + 13, + 41 ) * + - 6
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT ALL 35 * - COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL 35 * - COUNT ( * ) AS col0
----
-35

query I rowsort
SELECT + COALESCE ( - 89, + 6, + - ( 84 ) ) AS col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-609
SELECT + 0 * - SUM( + - 56 ) * 23 - - CAST( NULL AS SIGNED ) col0, + 52
----
NULL
52

skipif mysql # not compatible
query II rowsort label-609
SELECT + 0 * - SUM ( + - 56 ) * 23 - - CAST ( NULL AS INTEGER ) col0, + 52
----
NULL
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-610
SELECT + CAST( + - 91 AS SIGNED ) * + 27 AS col0
----
-2457

skipif mysql # not compatible
query I rowsort label-610
SELECT + CAST ( + - 91 AS INTEGER ) * + 27 AS col0
----
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT ALL 99 * + - COUNT( * ) col1
----
-99

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL 99 * + - COUNT ( * ) col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT + CASE - + COUNT( * ) WHEN COUNT( * ) THEN + 38 END + - COUNT( * ) / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-612
SELECT + CASE - + COUNT ( * ) WHEN COUNT ( * ) THEN + 38 END + - COUNT ( * ) / + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-613
SELECT + 46 DIV + + CAST( + + ( - 59 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-613
SELECT + 46 / + + CAST ( + + ( - 59 ) AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-614
SELECT ALL + 38 AS col1, - ( - 99 ) + 70 + - 2 * 54 * - COUNT( * ) * + 86 DIV + COUNT( * ) AS col1
----
38
9457

skipif mysql # not compatible
query II rowsort label-614
SELECT ALL + 38 AS col1, - ( - 99 ) + 70 + - 2 * 54 * - COUNT ( * ) * + 86 / + COUNT ( * ) AS col1
----
38
9457

query I rowsort
SELECT + - 17 + 76 * + ( 82 ) * + + 91 - + COALESCE ( - 28, + + 54 ) + + + 37
----
567160

query I rowsort
SELECT + 76 * 58 + ( + + 79 ) * + 12 * - - 88 * 42 + - 83 AS col0
----
3508133

query I rowsort
SELECT - 51 * + + 81
----
-4131

query I rowsort
SELECT ALL + + 65 * 97
----
6305

query II rowsort
SELECT - + 34, 54 AS col1
----
-34
54

query I rowsort
SELECT COALESCE ( + 86, 82 * - 62 + COALESCE ( + 97, 47 * + 43 - + 86 ), + ( - 62 ) )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-621
SELECT ( + COUNT( DISTINCT + 36 ) ) AS col0, MAX( DISTINCT - + 77 )
----
1
-77

skipif mysql # not compatible
query II rowsort label-621
SELECT ( + COUNT ( DISTINCT + 36 ) ) AS col0, MAX ( DISTINCT - + 77 )
----
1
-77

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

onlyif mysql # aggregate syntax: 
query II rowsort label-623
SELECT - + 44 AS col1, NULLIF ( - 80, + COUNT( * ) )
----
-44
-80

skipif mysql # not compatible
query II rowsort label-623
SELECT - + 44 AS col1, NULLIF ( - 80, + COUNT ( * ) )
----
-44
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-624
SELECT 37 - ( - 2 ) col2, - NULLIF ( - - COUNT( * ), - 22 ) + COALESCE ( - 88, - 55 DIV + COUNT( * ) + - 14 DIV - - 82 * - 19, - 57 + - 57 ) + 54 * + - ( 11 ) AS col0
----
39
-683

skipif mysql # not compatible
query II rowsort label-624
SELECT 37 - ( - 2 ) col2, - NULLIF ( - - COUNT ( * ), - 22 ) + COALESCE ( - 88, - 55 / + COUNT ( * ) + - 14 / - - 82 * - 19, - 57 + - 57 ) + 54 * + - ( 11 ) AS col0
----
39
-683

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

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

query I rowsort
SELECT - 19 - + 92 AS col0
----
-111

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-628
SELECT 52 + - 26 * - 16 + - - 72 * - 39 + 10 + - + CAST( NULL AS SIGNED ) * + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-628
SELECT 52 + - 26 * - 16 + - - 72 * - 39 + 10 + - + CAST ( NULL AS INTEGER ) * + 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-629
SELECT DISTINCT - 5 DIV - 47 AS col1, 24 + - + 71 * - 57 + - - COUNT( * ) AS col1
----
0
4072

skipif mysql # not compatible
query II rowsort label-629
SELECT DISTINCT - 5 / - 47 AS col1, 24 + - + 71 * - 57 + - - COUNT ( * ) AS col1
----
0
4072

query I rowsort
SELECT ALL - 60 - + ( COALESCE ( + 72, - 9 ) ) AS col0
----
-132

query I rowsort
SELECT ALL - 87 * + - 86
----
7482

query I rowsort
SELECT DISTINCT - NULLIF ( - 77, 9 / + 87 * 85 ) AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-633
SELECT 97 * - 68 - + 33 + - COUNT( * ) * + + 35 DIV + 83 * MAX( - 79 ) AS col0
----
-6629

skipif mysql # not compatible
query I rowsort label-633
SELECT 97 * - 68 - + 33 + - COUNT ( * ) * + + 35 / + 83 * MAX ( - 79 ) AS col0
----
-6629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-634
SELECT ALL - 60 - CAST( - - 19 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL - 60 - CAST ( - - 19 AS INTEGER )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-635
SELECT 58 DIV 54 * 18
----
18

skipif mysql # not compatible
query I rowsort label-635
SELECT 58 / 54 * 18
----
18

query II rowsort
SELECT 94 * - 17, 75 AS col2
----
-1598
75

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

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

query I rowsort
SELECT 68 * 94
----
6392

query II rowsort
SELECT 29 AS col1, - 46 AS col2
----
29
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT DISTINCT - NULLIF ( - CASE + 30 WHEN 22 * - + 97 * + + 19 - - MAX( 37 ) + 2 THEN - 57 WHEN - 44 THEN NULL END, - + ( + - 72 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-640
SELECT DISTINCT - NULLIF ( - CASE + 30 WHEN 22 * - + 97 * + + 19 - - MAX ( 37 ) + 2 THEN - 57 WHEN - 44 THEN NULL END, - + ( + - 72 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 88 / - ( - 6 ) * - CASE 34 WHEN 2 THEN 23 * - + NULLIF ( + 93, + + 21 ) + - 98 + AVG ( ALL + 76 ) * + 71 - - - AVG ( + 73 ) * ( + ( + - 78 ) ) END
----
NULL

query I rowsort
SELECT 84 * + - 64 col0
----
-5376

query I rowsort
SELECT ALL ( 82 ) * 36 AS col2
----
2952

query II rowsort
SELECT ALL - 67, 3 AS col0
----
-67
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-645
SELECT + 46, CAST( 17 AS SIGNED ) AS col1
----
46
17

skipif mysql # not compatible
query II rowsort label-645
SELECT + 46, CAST ( 17 AS INTEGER ) AS col1
----
46
17

query I rowsort
SELECT DISTINCT + 71 + + + 66 + + + 81 * - 25
----
-1888

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT COUNT( * ) * ( - 35 ) + 70 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-647
SELECT COUNT ( * ) * ( - 35 ) + 70 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL 46 + - - COUNT( ALL + 89 )
----
47

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL 46 + - - COUNT ( ALL + 89 )
----
47

query II rowsort
SELECT 89 + 12 AS col0, - 96
----
101
-96

query II rowsort
SELECT + 24 AS col1, + 58 AS col2
----
24
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-651
SELECT + COUNT( * ) * + COUNT( * ) + ( + COALESCE ( - + 23, + 13 DIV 14 * - 27 ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-651
SELECT + COUNT ( * ) * + COUNT ( * ) + ( + COALESCE ( - + 23, + 13 / 14 * - 27 ) ) AS col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-652
SELECT + 74 + 97 + 82 + - COUNT( * ) DIV - 8 * + + 87 + 75
----
328

skipif mysql # not compatible
query I rowsort label-652
SELECT + 74 + 97 + 82 + - COUNT ( * ) / - 8 * + + 87 + 75
----
328

onlyif mysql # aggregate syntax: 
query II rowsort label-653
SELECT DISTINCT COALESCE ( + - COUNT( * ), - COUNT( * ) * + COUNT( * ) - + 61 + - + 15 + 84 * + + 15 * 45 + - 91 + + 66, + 84 * + 36 ) + + 72, 17 col2
----
71
17

skipif mysql # not compatible
query II rowsort label-653
SELECT DISTINCT COALESCE ( + - COUNT ( * ), - COUNT ( * ) * + COUNT ( * ) - + 61 + - + 15 + 84 * + + 15 * 45 + - 91 + + 66, + 84 * + 36 ) + + 72, 17 col2
----
71
17

query III rowsort
SELECT DISTINCT 86 AS col2, 76 + + 48 - 59, + 82 AS col2
----
86
65
82

query I rowsort
SELECT + 1 + + 72
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT ALL - 25 + 83 + - ( MAX( ALL + - 57 ) ) AS col0
----
115

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL - 25 + 83 + - ( MAX ( ALL + - 57 ) ) AS col0
----
115

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-657
SELECT ALL CASE - CASE + + 23 WHEN - + 82 THEN NULL ELSE + + 95 END WHEN ( - 17 ) + - 46 + - COUNT( * ) + + + CASE 62 WHEN 41 THEN NULL WHEN - + CAST( + ( - + 70 ) AS DECIMAL ) + + ( - ( 31 ) ) THEN + 11 + + + 71 END * - - 12 THEN 24 DIV + ( - 70 ) END AS col0, - 14 DIV 62 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-657
SELECT ALL CASE - CASE + + 23 WHEN - + 82 THEN NULL ELSE + + 95 END WHEN ( - 17 ) + - 46 + - COUNT ( * ) + + + CASE 62 WHEN 41 THEN NULL WHEN - + CAST ( + ( - + 70 ) AS REAL ) + + ( - ( 31 ) ) THEN + 11 + + + 71 END * - - 12 THEN 24 / + ( - 70 ) END AS col0, - 14 / 62 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT DISTINCT + CASE ( - 92 ) WHEN - COUNT( * ) THEN + + 34 ELSE NULL END + + 35 + 94 + - 69 + + + 13 - ( - ( + - 12 ) ) * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT + CASE ( - 92 ) WHEN - COUNT ( * ) THEN + + 34 ELSE NULL END + + 35 + 94 + - 69 + + + 13 - ( - ( + - 12 ) ) * + 98
----
NULL

query I rowsort
SELECT 72 + + 39 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL 7 - + CASE + - 87 WHEN - - 20 THEN - 42 * + - ( 22 ) + - COUNT( * ) ELSE NULL END * - - 82 + - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL 7 - + CASE + - 87 WHEN - - 20 THEN - 42 * + - ( 22 ) + - COUNT ( * ) ELSE NULL END * - - 82 + - 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT - MIN( DISTINCT + 89 ) * - 24 AS col0
----
2136

skipif mysql # not compatible
query I rowsort label-661
SELECT - MIN ( DISTINCT + 89 ) * - 24 AS col0
----
2136

onlyif mysql # DIV for integer division: 
query I rowsort label-662
SELECT - 51 + 10 DIV + + 41 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-662
SELECT - 51 + 10 / + + 41 AS col1
----
-51

query I rowsort
SELECT + 90 + - - 75 * + ( + - 51 ) AS col2
----
-3735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-664
SELECT - COUNT( * ), - 76 + - + 27 + + 77 * + - 79 * 52 + NULLIF ( CAST( + 87 AS SIGNED ), + 59 ) col0
----
-1
-316332

skipif mysql # not compatible
query II rowsort label-664
SELECT - COUNT ( * ), - 76 + - + 27 + + 77 * + - 79 * 52 + NULLIF ( CAST ( + 87 AS INTEGER ), + 59 ) col0
----
-1
-316332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-665
SELECT ALL - 73 * + 38 + - CAST( - - 82 AS SIGNED ) * - 39 AS col0
----
424

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL - 73 * + 38 + - CAST ( - - 82 AS INTEGER ) * - 39 AS col0
----
424

query I rowsort
SELECT ALL + ( + NULLIF ( - - 56, - 76 * 52 + 55 * 36 + 87 ) ) - 3 * + 80
----
-184

query I rowsort
SELECT + 17 + - - 37
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL CASE + ( 11 ) WHEN - MIN( ALL - 79 ) THEN NULL WHEN + - 60 THEN 18 ELSE NULL END * - - 57 + ( 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL CASE + ( 11 ) WHEN - MIN ( ALL - 79 ) THEN NULL WHEN + - 60 THEN 18 ELSE NULL END * - - 57 + ( 81 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT - SUM( DISTINCT + 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-669
SELECT - SUM ( DISTINCT + 7 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-670
SELECT ALL 25 * - CAST( + 88 AS SIGNED )
----
-2200

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL 25 * - CAST ( + 88 AS INTEGER )
----
-2200

query I rowsort
SELECT 78 + + ( - 77 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT - MIN( - - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-672
SELECT - MIN ( - - 39 )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-673
SELECT SUM( ALL + - COALESCE ( - 48, 90 - 54 DIV - - ( + + 87 ) ) ) AS col1, 39 * 34 + - 81 * - 37 * - - 75
----
48
226101

skipif mysql # not compatible
query II rowsort label-673
SELECT SUM ( ALL + - COALESCE ( - 48, 90 - 54 / - - ( + + 87 ) ) ) AS col1, 39 * 34 + - 81 * - 37 * - - 75
----
48
226101

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

onlyif mysql # DIV for integer division: 
query I rowsort label-675
SELECT 93 DIV + NULLIF ( + - 41, - 99 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-675
SELECT 93 / + NULLIF ( + - 41, - 99 ) AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-676
SELECT ALL - CAST( - 59 AS SIGNED ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL - CAST ( - 59 AS INTEGER ) AS col2
----
59

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

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

query I rowsort
SELECT DISTINCT ( - 51 ) * 80 * - 3 + - 52
----
12188

query I rowsort
SELECT - 87 * - 96 AS col0
----
8352

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-681
SELECT ALL + + 11 DIV + + 41 * + ( - 59 )
----
0

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL + + 11 / + + 41 * + ( - 59 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-682
SELECT - + 15 DIV + 41 * SUM( ALL 30 ) DIV + + 72
----
0

skipif mysql # not compatible
query I rowsort label-682
SELECT - + 15 / + 41 * SUM ( ALL 30 ) / + + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT ALL + + 94 + + - 64 * + ( + SUM( ALL 48 ) ) col1
----
-2978

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL + + 94 + + - 64 * + ( + SUM ( ALL 48 ) ) col1
----
-2978

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-684
SELECT DISTINCT + 88 + CASE - CAST( NULL AS DECIMAL ) WHEN - - NULLIF ( 45, + 4 * + 47 * MAX( 71 ) ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT + 88 + CASE - CAST ( NULL AS REAL ) WHEN - - NULLIF ( 45, + 4 * + 47 * MAX ( 71 ) ) THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 11 + 60 AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-686
SELECT DISTINCT - 96 + - - 36 + COUNT( * ) / + + 32 + + - CASE - 93 WHEN 73 THEN 10 END * 84 * - - COUNT( * ) col2, 15 * 38
----
NULL
570

skipif mysql # not compatible
query II rowsort label-686
SELECT DISTINCT - 96 + - - 36 + COUNT ( * ) / + + 32 + + - CASE - 93 WHEN 73 THEN 10 END * 84 * - - COUNT ( * ) col2, 15 * 38
----
NULL
570

query I rowsort
SELECT DISTINCT + 27 + + + 50
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT - CASE + MAX( + 20 ) WHEN - 6 THEN NULL ELSE - 34 END AS col0
----
34

skipif mysql # not compatible
query I rowsort label-688
SELECT - CASE + MAX ( + 20 ) WHEN - 6 THEN NULL ELSE - 34 END AS col0
----
34

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

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL + CAST ( + + 18 AS INTEGER ) - - 12
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT - NULLIF ( COUNT( * ), 26 / + + 63 ) * + 74 + + 50 + + 89 + + 49 + + 53 * - 72 - - 71 * + - NULLIF ( + 75, + 17 ) AS col1
----
-9027

skipif mysql # not compatible
query I rowsort label-690
SELECT - NULLIF ( COUNT ( * ), 26 / + + 63 ) * + 74 + + 50 + + 89 + + 49 + + 53 * - 72 - - 71 * + - NULLIF ( + 75, + 17 ) AS col1
----
-9027

query I rowsort
SELECT - + NULLIF ( + 77, 55 * - + 51 / - 23 - - 21 - - 62 + + 27 * + ( - 47 ) + 32 ) * + 72 col0
----
-5544

query I rowsort
SELECT + + 8 * 9 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT DISTINCT ( + COUNT( * ) ) * - - 6 col2
----
6

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT ( + COUNT ( * ) ) * - - 6 col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT ALL + COUNT( * ) - + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL + COUNT ( * ) - + COUNT ( * ) col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT + 11 * 17 * + COUNT( * )
----
187

skipif mysql # not compatible
query I rowsort label-696
SELECT + 11 * 17 * + COUNT ( * )
----
187

query I rowsort
SELECT - ( - - 78 ) AS col0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-698
SELECT DISTINCT + 20 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT + 20 / - 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-699
SELECT ALL + COALESCE ( + ( MIN( + + 10 ) ), - + 79, + 62 + + - 55 + CASE - 15 WHEN + 67 THEN NULL WHEN - 59 THEN + COALESCE ( MAX( - CAST( 55 AS SIGNED ) ), + 62 * 31 + + 99, - 14 - + - 87, + 63 ) - 32 END ) AS col2, + 54 * - COUNT( * ) DIV SUM( + - 74 )
----
10
0

skipif mysql # not compatible
query II rowsort label-699
SELECT ALL + COALESCE ( + ( MIN ( + + 10 ) ), - + 79, + 62 + + - 55 + CASE - 15 WHEN + 67 THEN NULL WHEN - 59 THEN + COALESCE ( MAX ( - CAST ( 55 AS INTEGER ) ), + 62 * 31 + + 99, - 14 - + - 87, + 63 ) - 32 END ) AS col2, + 54 * - COUNT ( * ) / SUM ( + - 74 )
----
10
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-700
SELECT - COUNT( * ) DIV 24 * ( - + 40 ), 12 + - 58 AS col0
----
0
-46

skipif mysql # not compatible
query II rowsort label-700
SELECT - COUNT ( * ) / 24 * ( - + 40 ), 12 + - 58 AS col0
----
0
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-701
SELECT DISTINCT 77 DIV + 45 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT 77 / + 45 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-702
SELECT + ( - 40 ) * + CAST( + CASE + 71 WHEN 92 + + 85 * - + CAST( NULL AS SIGNED ) THEN NULL WHEN + 25 - - 5 THEN - 29 ELSE 30 END AS SIGNED )
----
-1200

skipif mysql # not compatible
query I rowsort label-702
SELECT + ( - 40 ) * + CAST ( + CASE + 71 WHEN 92 + + 85 * - + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 25 - - 5 THEN - 29 ELSE 30 END AS INTEGER )
----
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-703
SELECT + COALESCE ( + + CAST( NULL AS SIGNED ), 12 DIV 66 DIV COUNT( * ) - 37 + + CAST( - COUNT( * ) AS SIGNED ) DIV 98 ) - - + 92
----
55

skipif mysql # not compatible
query I rowsort label-703
SELECT + COALESCE ( + + CAST ( NULL AS INTEGER ), 12 / 66 / COUNT ( * ) - 37 + + CAST ( - COUNT ( * ) AS INTEGER ) / 98 ) - - + 92
----
55

query I rowsort
SELECT - ( COALESCE ( - 99, 25 * + 56 ) )
----
99

query I rowsort
SELECT ALL 12 * 53 AS col2
----
636

query I rowsort
SELECT DISTINCT 24 + - 53
----
-29

query II rowsort
SELECT ALL 23, - 73 + - 35 AS col1
----
23
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT + ( COUNT( * ) ) + + 98 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-708
SELECT + ( COUNT ( * ) ) + + 98 AS col1
----
99

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-710
SELECT ALL 7 DIV + + 41 + - + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * - 43 DIV + 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL 7 / + + 41 + - + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 43 / + 43 AS col1
----
0

query I rowsort
SELECT + 64 * + 11 * ( - 57 )
----
-40128

query I rowsort
SELECT ( + 16 ) AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-713
SELECT 71 * 15 * COUNT( + - 23 ) * + MIN( DISTINCT + + ( + 96 ) ) * + 39 * + - 74 + - - 61 + 63 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-713
SELECT 71 * 15 * COUNT ( + - 23 ) * + MIN ( DISTINCT + + ( + 96 ) ) * + 39 * + - 74 + - - 61 + 63 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 25 * + 72 + - 82 * + 6
----
-2292

query I rowsort
SELECT + ( - NULLIF ( - 84, - 83 ) )
----
84

query I rowsort
SELECT ALL - 58 * 17 + 74
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT + COALESCE ( + COUNT( * ), + COUNT( * ) ) * - - COALESCE ( - ( 82 ), + + 52 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-717
SELECT + COALESCE ( + COUNT ( * ), + COUNT ( * ) ) * - - COALESCE ( - ( 82 ), + + 52 ) AS col0
----
-82

query II rowsort
SELECT ALL + 73 AS col0, - 84 AS col2
----
73
-84

query I rowsort
SELECT DISTINCT + 25 * + 21 + - 52 + 86 AS col1
----
559

onlyif mysql # DIV for integer division: 
query I rowsort label-720
SELECT DISTINCT - 47 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT - 47 / 74
----
0

query I rowsort
SELECT + + 9 + - - 54 * + - 72 + - 77
----
-3956

query I rowsort
SELECT ALL + + 54 * - + 28 - + 47 + 45
----
-1514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-723
SELECT ALL + 22 AS col2, 58 * + SUM( ALL - CASE + 65 WHEN + 6 * 70 THEN - 8 * - 64 - - CAST( 58 AS SIGNED ) * 77 END )
----
22
NULL

skipif mysql # not compatible
query II rowsort label-723
SELECT ALL + 22 AS col2, 58 * + SUM ( ALL - CASE + 65 WHEN + 6 * 70 THEN - 8 * - 64 - - CAST ( 58 AS INTEGER ) * 77 END )
----
22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT 34 * - + 9 * + 46 + + COUNT( * ) + + 56 AS col2
----
-14019

skipif mysql # not compatible
query I rowsort label-724
SELECT 34 * - + 9 * + 46 + + COUNT ( * ) + + 56 AS col2
----
-14019

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT + + COALESCE ( - SUM( DISTINCT - 66 ), + 9, + COUNT( * ) + + ( + 55 ) * - - 88 ) + - 82 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-725
SELECT + + COALESCE ( - SUM ( DISTINCT - 66 ), + 9, + COUNT ( * ) + + ( + 55 ) * - - 88 ) + - 82 AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-726
SELECT - + 59 * CAST( - 9 AS SIGNED ) AS col2
----
531

skipif mysql # not compatible
query I rowsort label-726
SELECT - + 59 * CAST ( - 9 AS INTEGER ) AS col2
----
531

query I rowsort
SELECT - - 54 * 45 + + 79
----
2509

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT - 83 * - - 93 + 39 + + MAX( DISTINCT + 62 ) + + + 74 * - COUNT( * ) * + + 97
----
-14796

skipif mysql # not compatible
query I rowsort label-728
SELECT - 83 * - - 93 + 39 + + MAX ( DISTINCT + 62 ) + + + 74 * - COUNT ( * ) * + + 97
----
-14796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-729
SELECT + - NULLIF ( - CAST( NULL AS SIGNED ), + 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-729
SELECT + - NULLIF ( - CAST ( NULL AS INTEGER ), + 96 ) AS col1
----
NULL

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

query II rowsort
SELECT ALL - 32, 83 AS col2
----
-32
83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-733
SELECT ALL + - 91 DIV 80 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL + - 91 / 80 AS col1
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT DISTINCT - CASE + - 44 WHEN - 1 THEN - ( + + ( 25 ) ) + - 19 WHEN 90 THEN + 57 END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-735
SELECT DISTINCT - CASE + - 44 WHEN - 1 THEN - ( + + ( 25 ) ) + - 19 WHEN 90 THEN + 57 END * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - + 27 + - 89 col0
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT - - MAX( - 81 ) * - ( 4 ) AS col0
----
324

skipif mysql # not compatible
query I rowsort label-737
SELECT - - MAX ( - 81 ) * - ( 4 ) AS col0
----
324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-738
SELECT + COALESCE ( + 37, - 76 * - COUNT( * ) ) * - CAST( - - 44 AS SIGNED )
----
-1628

skipif mysql # not compatible
query I rowsort label-738
SELECT + COALESCE ( + 37, - 76 * - COUNT ( * ) ) * - CAST ( - - 44 AS INTEGER )
----
-1628

query I rowsort
SELECT DISTINCT + 56 * - 60
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL 71 + 72 + + - COUNT( * ) * + 30
----
113

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL 71 + 72 + + - COUNT ( * ) * + 30
----
113

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-742
SELECT - ( + 80 ) DIV - 9 + + - 3 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-742
SELECT - ( + 80 ) / - 9 + + - 3 AS col1
----
5

query I rowsort
SELECT ALL 65 + 15 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT - SUM( DISTINCT 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-744
SELECT - SUM ( DISTINCT 47 ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT DISTINCT MAX( + 79 ) + - 77 + - - 7 * + 34
----
240

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT MAX ( + 79 ) + - 77 + - - 7 * + 34
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-746
SELECT DISTINCT CASE + 34 WHEN - 42 * + 3 THEN + + 24 ELSE - AVG ( DISTINCT + 16 ) * + COUNT( * ) - + CAST( NULL AS SIGNED ) + 92 END / 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-746
SELECT DISTINCT CASE + 34 WHEN - 42 * + 3 THEN + + 24 ELSE - AVG ( DISTINCT + 16 ) * + COUNT ( * ) - + CAST ( NULL AS INTEGER ) + 92 END / 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-747
SELECT + 99 + + 19 + - COUNT( * ) * 25 DIV 85 AS col0
----
118

skipif mysql # not compatible
query I rowsort label-747
SELECT + 99 + + 19 + - COUNT ( * ) * 25 / 85 AS col0
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT ( - - 88 ) DIV + + 80
----
1

skipif mysql # not compatible
query I rowsort label-748
SELECT ( - - 88 ) / + + 80
----
1

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

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL + COUNT ( * ) / - 62
----
0

query I rowsort
SELECT ALL 87 * + 27 AS col2
----
2349

query II rowsort
SELECT ALL + 18 * + 94 AS col0, - 57
----
1692
-57

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-753
SELECT DISTINCT - + CAST( + - 96 AS SIGNED ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT - + CAST ( + - 96 AS INTEGER ) AS col1
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-754
SELECT 70 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-754
SELECT 70 * - CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - NULLIF ( 30, - 20 ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-757
SELECT + CAST( + NULLIF ( + 16, - ( - 65 ) + - NULLIF ( - 72, + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-757
SELECT + CAST ( + NULLIF ( + 16, - ( - 65 ) + - NULLIF ( - 72, + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col1
----
16

query I rowsort
SELECT ALL 62 * + 73
----
4526

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

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

query I rowsort
SELECT COALESCE ( 99, + 60, 54 - + - 10 ) * - + 36 + + + 77 AS col2
----
-3487

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT - COALESCE ( 77, - + 59, COUNT( * ) ) * 84 - + 54 AS col2
----
-6522

skipif mysql # not compatible
query I rowsort label-761
SELECT - COALESCE ( 77, - + 59, COUNT ( * ) ) * 84 - + 54 AS col2
----
-6522

query II rowsort
SELECT - CASE 35 WHEN 63 THEN 67 END - + + 49 AS col1, - 14
----
NULL
-14

query I rowsort
SELECT 75 * - 93 * - 90 AS col0
----
627750

query I rowsort
SELECT ALL + 1 + - CASE - + 90 WHEN - ( + 96 ) THEN - 37 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-766
SELECT ALL + 70 + COUNT( 13 ), 59 * + + 27 AS col2
----
71
1593

skipif mysql # not compatible
query II rowsort label-766
SELECT ALL + 70 + COUNT ( 13 ), 59 * + + 27 AS col2
----
71
1593

onlyif mysql # aggregate syntax: 
query II rowsort label-767
SELECT DISTINCT - 79 * 13 * 48 col0, + SUM( 95 ) AS col1
----
-49296
95

skipif mysql # not compatible
query II rowsort label-767
SELECT DISTINCT - 79 * 13 * 48 col0, + SUM ( 95 ) AS col1
----
-49296
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-768
SELECT DISTINCT + NULLIF ( + CAST( CASE 7 WHEN - 87 * 3 THEN - + 74 + - CAST( NULL AS SIGNED ) END AS SIGNED ), - 11 ) + - 26 AS col2, + 52 AS col2
----
NULL
52

skipif mysql # not compatible
query II rowsort label-768
SELECT DISTINCT + NULLIF ( + CAST ( CASE 7 WHEN - 87 * 3 THEN - + 74 + - CAST ( NULL AS INTEGER ) END AS INTEGER ), - 11 ) + - 26 AS col2, + 52 AS col2
----
NULL
52

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT DISTINCT + MAX( - 62 ) + + + 23 * - + 2
----
-108

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT + MAX ( - 62 ) + + + 23 * - + 2
----
-108

query II rowsort
SELECT ALL 22, + 81 * - 59 AS col2
----
22
-4779

query I rowsort
SELECT 86 + 20 * + + 63 + - 42 + + 28 + - 87 AS col1
----
1245

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT ALL + NULLIF ( + 7, NULLIF ( - - 45, 70 + 74 / 45 ) + - COUNT( * ) ) + - COALESCE ( + - 26, COUNT( * ) + + 62 ) * + + COUNT( * ) * 14 AS col2
----
371

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL + NULLIF ( + 7, NULLIF ( - - 45, 70 + 74 / 45 ) + - COUNT ( * ) ) + - COALESCE ( + - 26, COUNT ( * ) + + 62 ) * + + COUNT ( * ) * 14 AS col2
----
371

query I rowsort
SELECT 2 + - 35 * - 25 * - 94
----
-82248

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

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT CAST ( NULL AS REAL ) - + 53 + 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT ALL + 8 - COUNT( * ) + 74
----
81

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL + 8 - COUNT ( * ) + 74
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-776
SELECT ALL - CASE 45 WHEN 86 THEN NULL WHEN CAST( NULL AS SIGNED ) * - COUNT( * ) / + COUNT( * ) * + COUNT( * ) + + 41 THEN 81 + + 3 WHEN + - NULLIF ( 33, - SUM( ALL + + ( + + 92 ) ) + CAST( - 44 AS SIGNED ) + + 44 ) * - 64 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL - CASE 45 WHEN 86 THEN NULL WHEN CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + COUNT ( * ) * + COUNT ( * ) + + 41 THEN 81 + + 3 WHEN + - NULLIF ( 33, - SUM ( ALL + + ( + + 92 ) ) + CAST ( - 44 AS INTEGER ) + + 44 ) * - 64 THEN NULL ELSE NULL END AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-778
SELECT ALL - - 33 DIV - + 99 * - 31 * + 67
----
0

skipif mysql # not compatible
query I rowsort label-778
SELECT ALL - - 33 / - + 99 * - 31 * + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT DISTINCT - 15 * - SUM( DISTINCT + 38 ) * 55
----
31350

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT - 15 * - SUM ( DISTINCT + 38 ) * 55
----
31350

query I rowsort
SELECT ALL - 57 * ( + + 75 ) AS col1
----
-4275

query I rowsort
SELECT ALL - NULLIF ( 56, + 0 * + 80 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-782
SELECT + 68 DIV - - 85
----
0

skipif mysql # not compatible
query I rowsort label-782
SELECT + 68 / - - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT ALL + 96 * COUNT( * ) + - NULLIF ( 12, COUNT( * ) + + - MIN( - 49 ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL + 96 * COUNT ( * ) + - NULLIF ( 12, COUNT ( * ) + + - MIN ( - 49 ) ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT 51 + - COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-784
SELECT 51 + - COUNT ( * ) AS col1
----
50

query II rowsort
SELECT ALL - 54 AS col1, + 71
----
-54
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-786
SELECT 99 * CAST( NULL AS SIGNED ) * - COALESCE ( COUNT( ALL + + 23 ), COUNT( * ) ) + + COALESCE ( + COUNT( * ), + COUNT( * ) * MIN( DISTINCT + 64 ), + CASE - + 80 WHEN 97 - + ( 66 ) THEN - 92 WHEN 79 THEN + - 33 ELSE NULL END, + - MAX( ALL - 53 ) ) * - + AVG ( NULLIF ( NULLIF ( + 31, 97 ), - + 8 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT 99 * CAST ( NULL AS INTEGER ) * - COALESCE ( COUNT ( ALL + + 23 ), COUNT ( * ) ) + + COALESCE ( + COUNT ( * ), + COUNT ( * ) * MIN ( DISTINCT + 64 ), + CASE - + 80 WHEN 97 - + ( 66 ) THEN - 92 WHEN 79 THEN + - 33 ELSE NULL END, + - MAX ( ALL - 53 ) ) * - + AVG ( NULLIF ( NULLIF ( + 31, 97 ), - + 8 ) )
----
NULL

query I rowsort
SELECT ALL 87 + + 21
----
108

query I rowsort
SELECT + 27 - - + 42
----
69

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

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT 36 + + - COUNT ( * ) AS col1
----
35

query I rowsort
SELECT ALL 60 + - 65 AS col1
----
-5

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

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

query I rowsort
SELECT ( 18 ) + - - 25 AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT 77 DIV - NULLIF ( - - 33, + + 42 )
----
-2

skipif mysql # not compatible
query I rowsort label-793
SELECT 77 / - NULLIF ( - - 33, + + 42 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-794
SELECT 83 * 3 * + NULLIF ( - 29, CAST( NULL AS SIGNED ) / + NULLIF ( 81, 70 ) + - - 64 + - - ( - 94 ) * 75 ) * - + 7 * + MIN( + NULLIF ( - 22, - + 18 ) )
----
-1112034

skipif mysql # not compatible
query I rowsort label-794
SELECT 83 * 3 * + NULLIF ( - 29, CAST ( NULL AS INTEGER ) / + NULLIF ( 81, 70 ) + - - 64 + - - ( - 94 ) * 75 ) * - + 7 * + MIN ( + NULLIF ( - 22, - + 18 ) )
----
-1112034

onlyif mysql # aggregate syntax: 
query II rowsort label-795
SELECT - COUNT( ALL + 32 ) AS col1, 44 - 64
----
-1
-20

skipif mysql # not compatible
query II rowsort label-795
SELECT - COUNT ( ALL + 32 ) AS col1, 44 - 64
----
-1
-20

query I rowsort
SELECT - 0 + - ( + - 26 ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-797
SELECT ALL + 39 - + CASE - - 27 WHEN COALESCE ( + 29, + - 5 ) THEN - COALESCE ( + + CAST( + COUNT( 1 ) AS SIGNED ), - COUNT( * ) * - COALESCE ( COUNT( * ), - 53 * - - 92 ) ) + + + 74 WHEN 18 + + + 54 * - 36 THEN + 5 * - 81 / + MAX( + - 61 ) WHEN + ( - + 96 ) * - 71 + - ( + 56 ) + + 32 * + 32 THEN NULL END + - 41 + - 85 + - 85 * - - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL + 39 - + CASE - - 27 WHEN COALESCE ( + 29, + - 5 ) THEN - COALESCE ( + + CAST ( + COUNT ( 1 ) AS INTEGER ), - COUNT ( * ) * - COALESCE ( COUNT ( * ), - 53 * - - 92 ) ) + + + 74 WHEN 18 + + + 54 * - 36 THEN + 5 * - 81 / + MAX ( + - 61 ) WHEN + ( - + 96 ) * - 71 + - ( + 56 ) + + 32 * + 32 THEN NULL END + - 41 + - 85 + - 85 * - - 82 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-798
SELECT - CASE 83 WHEN - ( - + COUNT( * ) ) THEN NULLIF ( + 50, + 42 ) * 47 + - 70 + + SUM( ALL - - CAST( NULL AS SIGNED ) ) + NULLIF ( 0, 91 ) * 86 WHEN - + 56 THEN NULL ELSE - CAST( - 59 AS SIGNED ) * 72 END AS col1
----
-4248

skipif mysql # not compatible
query I rowsort label-798
SELECT - CASE 83 WHEN - ( - + COUNT ( * ) ) THEN NULLIF ( + 50, + 42 ) * 47 + - 70 + + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) + NULLIF ( 0, 91 ) * 86 WHEN - + 56 THEN NULL ELSE - CAST ( - 59 AS INTEGER ) * 72 END AS col1
----
-4248

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-799
SELECT ALL 94 * 84 AS col1, MAX( - 22 ) DIV + 4 col1
----
7896
-5

skipif mysql # not compatible
query II rowsort label-799
SELECT ALL 94 * 84 AS col1, MAX ( - 22 ) / + 4 col1
----
7896
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT - NULLIF ( - ( 6 ), CASE + 20 WHEN + SUM( DISTINCT 85 ) THEN MAX( DISTINCT + 99 ) WHEN - 64 THEN - 68 * + + 70 * - 78 - + + 91 END ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-800
SELECT - NULLIF ( - ( 6 ), CASE + 20 WHEN + SUM ( DISTINCT 85 ) THEN MAX ( DISTINCT + 99 ) WHEN - 64 THEN - 68 * + + 70 * - 78 - + + 91 END ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT DISTINCT 11 * - MIN( ALL - 67 ) AS col2
----
737

skipif mysql # not compatible
query I rowsort label-801
SELECT DISTINCT 11 * - MIN ( ALL - 67 ) AS col2
----
737

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-802
SELECT DISTINCT - COUNT( * ) DIV - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT - COUNT ( * ) / - 68 AS col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT - 58 DIV + 20 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-804
SELECT - 58 / + 20 AS col1
----
-2

query I rowsort
SELECT ALL - ( + + 6 ) * 14 * 70
----
-5880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-806
SELECT ALL CASE 72 WHEN - 22 * 73 THEN + 93 + CAST( NULL AS DECIMAL ) * CAST( NULLIF ( COUNT( * ), + 35 ) AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL CASE 72 WHEN - 22 * 73 THEN + 93 + CAST ( NULL AS REAL ) * CAST ( NULLIF ( COUNT ( * ), + 35 ) AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-807
SELECT ALL SUM( 21 ) AS col1, 48 * + + 68 AS col1
----
21
3264

skipif mysql # not compatible
query II rowsort label-807
SELECT ALL SUM ( 21 ) AS col1, 48 * + + 68 AS col1
----
21
3264

query I rowsort
SELECT ALL - + 97 * 68 + + 63 * 58
----
-2942

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT - 2 * + MAX( DISTINCT - 36 ) + 58 col1
----
130

skipif mysql # not compatible
query I rowsort label-809
SELECT - 2 * + MAX ( DISTINCT - 36 ) + 58 col1
----
130

query I rowsort
SELECT - + COALESCE ( + 74, + 77 ) * + - 54
----
3996

query I rowsort
SELECT - 64 * - 0 + 92 * + 93 + - + 77 * + 8 + - 62 * + 80 * + 90 * - + 23
----
10275140

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT DISTINCT - 19 * + 39 * - - COUNT( * ) - + 74 AS col0
----
-815

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT - 19 * + 39 * - - COUNT ( * ) - + 74 AS col0
----
-815

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT DISTINCT - 8 * CASE - - 2 WHEN + + 91 * - COALESCE ( + 38, 72 ) THEN 80 * - - 25 * COUNT( * ) * - 66 * 29 / - + 47 + - - 58 * - 66 * + + 94 END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT - 8 * CASE - - 2 WHEN + + 91 * - COALESCE ( + 38, 72 ) THEN 80 * - - 25 * COUNT ( * ) * - 66 * 29 / - + 47 + - - 58 * - 66 * + + 94 END + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - + 80 * + CASE + 50 WHEN + 84 * + 35 THEN NULL ELSE 11 END AS col2
----
-880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-815
SELECT ALL + ( + + ( + CASE + 92 WHEN - 26 THEN - 61 + 77 WHEN - - 60 THEN NULL END ) ) * - 25 + 16 + 1 * - ( + 23 ) + - CAST( NULLIF ( - + 48, - - MAX( ALL - 9 ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL + ( + + ( + CASE + 92 WHEN - 26 THEN - 61 + 77 WHEN - - 60 THEN NULL END ) ) * - 25 + 16 + 1 * - ( + 23 ) + - CAST ( NULLIF ( - + 48, - - MAX ( ALL - 9 ) ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-816
SELECT DISTINCT - 58 * + - 7 + 35 + + CAST( - + 59 AS SIGNED ) - + COUNT( * ) - 38 + 84 * NULLIF ( + 95, 14 + + - NULLIF ( 23, - 42 * + 97 ) ) * + + 65 + ( + - COUNT( * ) )
----
519042

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT - 58 * + - 7 + 35 + + CAST ( - + 59 AS INTEGER ) - + COUNT ( * ) - 38 + 84 * NULLIF ( + 95, 14 + + - NULLIF ( 23, - 42 * + 97 ) ) * + + 65 + ( + - COUNT ( * ) )
----
519042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-817
SELECT - 61 + - - CAST( NULL AS SIGNED ) / + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-817
SELECT - 61 + - - CAST ( NULL AS INTEGER ) / + 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-818
SELECT DISTINCT + + COALESCE ( COUNT( * ), ( + + 12 ) ) col0, + 3 * - + 66
----
1
-198

skipif mysql # not compatible
query II rowsort label-818
SELECT DISTINCT + + COALESCE ( COUNT ( * ), ( + + 12 ) ) col0, + 3 * - + 66
----
1
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT COALESCE ( + 95, + 66 ) * - 85 + COUNT( * )
----
-8074

skipif mysql # not compatible
query I rowsort label-819
SELECT COALESCE ( + 95, + 66 ) * - 85 + COUNT ( * )
----
-8074

onlyif mysql # aggregate syntax: 
query II rowsort label-820
SELECT - 69 AS col0, COUNT( - 49 ) * + ( - 88 )
----
-69
-88

skipif mysql # not compatible
query II rowsort label-820
SELECT - 69 AS col0, COUNT ( - 49 ) * + ( - 88 )
----
-69
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-821
SELECT ALL + COUNT( * ) * + SUM( - 62 ) + - - 45 - 68 * + - 2 AS col2, + 79
----
119
79

skipif mysql # not compatible
query II rowsort label-821
SELECT ALL + COUNT ( * ) * + SUM ( - 62 ) + - - 45 - 68 * + - 2 AS col2, + 79
----
119
79

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

query II rowsort
SELECT + 30 AS col0, 38 + - - 12
----
30
50

query I rowsort
SELECT - + 54 * + 19 * + 11 AS col0
----
-11286

query I rowsort
SELECT DISTINCT 80 * 21 + + + 16 - + 96 AS col2
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT DISTINCT 63 * + SUM( + 6 ) * 30 * + + COALESCE ( - 45, + 89, ( - COUNT( * ) ) ) * + + 99 + + - 44 * - + 77 + - - 3
----
-50516309

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT 63 * + SUM ( + 6 ) * 30 * + + COALESCE ( - 45, + 89, ( - COUNT ( * ) ) ) * + + 99 + + - 44 * - + 77 + - - 3
----
-50516309

query I rowsort
SELECT ALL 1 * 72 + + 29
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT + MAX( ALL + 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-828
SELECT + MAX ( ALL + 76 ) AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-829
SELECT ALL - 98 * - 48 * + CASE - COALESCE ( + - 81, 56, - 41 + + CAST( NULL AS SIGNED ), - 11 + 35 ) WHEN - + COUNT( * ) + 22 THEN - 61 END + + - 76 + 48 + 14 / + 75 + 48 * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL - 98 * - 48 * + CASE - COALESCE ( + - 81, 56, - 41 + + CAST ( NULL AS INTEGER ), - 11 + 35 ) WHEN - + COUNT ( * ) + 22 THEN - 61 END + + - 76 + 48 + 14 / + 75 + 48 * + 53
----
NULL

query I rowsort
SELECT ALL + 40 * + 8 + ( ( - - 68 ) ) + 55 AS col0
----
443

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-831
SELECT + ( 3 ) * - - CAST( - 74 AS SIGNED ) * + 67
----
-14874

skipif mysql # not compatible
query I rowsort label-831
SELECT + ( 3 ) * - - CAST ( - 74 AS INTEGER ) * + 67
----
-14874

onlyif mysql # DIV for integer division: 
query II rowsort label-832
SELECT DISTINCT + 97 * 69 * + 99 AS col2, + 80 DIV - 44
----
662607
-1

skipif mysql # not compatible
query II rowsort label-832
SELECT DISTINCT + 97 * 69 * + 99 AS col2, + 80 / - 44
----
662607
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT ALL - 26 * - + 48 + 80 + + 25 * + 42 * COUNT( * ) AS col2
----
2378

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL - 26 * - + 48 + 80 + + 25 * + 42 * COUNT ( * ) AS col2
----
2378

query I rowsort
SELECT + 48 * - 42
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT ALL 54 * 32 * COUNT( ALL + 87 )
----
1728

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL 54 * 32 * COUNT ( ALL + 87 )
----
1728

onlyif mysql # aggregate syntax: 
query II rowsort label-836
SELECT + SUM( + 67 ), 31 AS col1
----
67
31

skipif mysql # not compatible
query II rowsort label-836
SELECT + SUM ( + 67 ), 31 AS col1
----
67
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL - 49 * 27 - + + ( COUNT( * ) ) - + + COUNT( * ) - - 3 AS col1
----
-1322

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL - 49 * 27 - + + ( COUNT ( * ) ) - + + COUNT ( * ) - - 3 AS col1
----
-1322

query II rowsort
SELECT + 12 - + 41 * - 23 AS col0, 40 * - 54
----
955
-2160

query I rowsort
SELECT + 18 * 5 AS col1
----
90

query I rowsort
SELECT - NULLIF ( - 61, 84 ) AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-842
SELECT + 82 * - CASE 15 WHEN 28 THEN - + 53 WHEN + 29 + + 75 THEN NULL ELSE + COALESCE ( + - 7, + - 89 + + 29 DIV - AVG ( DISTINCT - - 2 ) ) END AS col1
----
574

skipif mysql # not compatible
query I rowsort label-842
SELECT + 82 * - CASE 15 WHEN 28 THEN - + 53 WHEN + 29 + + 75 THEN NULL ELSE + COALESCE ( + - 7, + - 89 + + 29 / - AVG ( DISTINCT - - 2 ) ) END AS col1
----
574

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT ALL + NULLIF ( ( - MIN( DISTINCT 2 ) ), - 36 ) - 27 * - - 95
----
-2567

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL + NULLIF ( ( - MIN ( DISTINCT 2 ) ), - 36 ) - 27 * - - 95
----
-2567

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

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

query I rowsort
SELECT + 34 - - - 69 AS col1
----
-35

query I rowsort
SELECT + 46 * 24 * 89 AS col2
----
98256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-847
SELECT ALL CASE + + 2 WHEN - 14 + + 86 THEN NULL WHEN 85 THEN - CAST( - 65 AS SIGNED ) / + + 80 WHEN - + NULLIF ( - + 20, + 61 + + + COALESCE ( - 55, - + ( - 42 ), MIN( ALL - + 93 ) * MAX( + 10 ) - + 87 ) * + MIN( ALL - 50 ) ) + - 61 THEN COUNT( * ) + - + 15 ELSE NULL END * - 45 * - 91 AS col1, - COUNT( * ) + + 86 + 27 AS col2
----
NULL
112

skipif mysql # not compatible
query II rowsort label-847
SELECT ALL CASE + + 2 WHEN - 14 + + 86 THEN NULL WHEN 85 THEN - CAST ( - 65 AS INTEGER ) / + + 80 WHEN - + NULLIF ( - + 20, + 61 + + + COALESCE ( - 55, - + ( - 42 ), MIN ( ALL - + 93 ) * MAX ( + 10 ) - + 87 ) * + MIN ( ALL - 50 ) ) + - 61 THEN COUNT ( * ) + - + 15 ELSE NULL END * - 45 * - 91 AS col1, - COUNT ( * ) + + 86 + 27 AS col2
----
NULL
112

onlyif mysql # DIV for integer division: 
query I rowsort label-848
SELECT - 23 DIV + 10 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-848
SELECT - 23 / + 10 AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-849
SELECT ALL + 66 DIV 89 + - + MIN( - + 98 ) col1
----
98

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL + 66 / 89 + - + MIN ( - + 98 ) col1
----
98

query I rowsort
SELECT + 80 * + 66 * + 41 + + + 54
----
216534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-851
SELECT + + CAST( NULL AS SIGNED ) / MAX( ALL + + 24 ) - - - 31 + - SUM( - + 45 ) * 64 - - + 24 + - 14 * - - AVG ( 65 ) + - 20 * 57 + - 54 + - COUNT( * ) + 3 + - COUNT( * ) - + - 50 / - 95 * + + ( - 83 ) * + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-851
SELECT + + CAST ( NULL AS INTEGER ) / MAX ( ALL + + 24 ) - - - 31 + - SUM ( - + 45 ) * 64 - - + 24 + - 14 * - - AVG ( 65 ) + - 20 * 57 + - 54 + - COUNT ( * ) + 3 + - COUNT ( * ) - + - 50 / - 95 * + + ( - 83 ) * + - 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-852
SELECT - + 43 DIV - 35, - COUNT( DISTINCT 26 ) + - 36 AS col1
----
1
-37

skipif mysql # not compatible
query II rowsort label-852
SELECT - + 43 / - 35, - COUNT ( DISTINCT 26 ) + - 36 AS col1
----
1
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-853
SELECT DISTINCT - 87 DIV - 83 + 91 + 32 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT - 87 / - 83 + 91 + 32 AS col1
----
124

query I rowsort
SELECT - - ( 86 ) * + - 53 + - 24 + - 40 AS col1
----
-4622

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-855
SELECT ALL 53 DIV + - 90 + - 10 DIV - 40 - + + 85 AS col1, 55 DIV + + COUNT( * ) + COUNT( * )
----
-85
56

skipif mysql # not compatible
query II rowsort label-855
SELECT ALL 53 / + - 90 + - 10 / - 40 - + + 85 AS col1, 55 / + + COUNT ( * ) + COUNT ( * )
----
-85
56

query I rowsort
SELECT + 45 * 73 - - 16 * + 94 AS col0
----
4789

onlyif mysql # DIV for integer division: 
query I rowsort label-857
SELECT + 57 DIV + 77 - ( - + 26 ) * - + 44 - - - 64 AS col2
----
-1208

skipif mysql # not compatible
query I rowsort label-857
SELECT + 57 / + 77 - ( - + 26 ) * - + 44 - - - 64 AS col2
----
-1208

query II rowsort
SELECT + ( - + 89 ) AS col0, - 63
----
-89
-63

query I rowsort
SELECT ALL - 14 * + - 74
----
1036

query I rowsort
SELECT ALL + - CASE 96 WHEN 14 * + - 56 + 47 + 2 THEN - - 5 END / - 30 * - ( - + 85 ) + + 35 AS col2
----
NULL

query I rowsort
SELECT - 19 + + 76 col1
----
57

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-863
SELECT ALL - 39 - + - 92 * 40 AS col2, CAST( NULL AS SIGNED )
----
3641
NULL

skipif mysql # not compatible
query II rowsort label-863
SELECT ALL - 39 - + - 92 * 40 AS col2, CAST ( NULL AS INTEGER )
----
3641
NULL

query II rowsort
SELECT 54 AS col0, 98 - - 2
----
54
100

query I rowsort
SELECT + 5 * - 99 * 12 * + NULLIF ( 33, 18 ) + - - 88
----
-195932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-866
SELECT DISTINCT + 66 / CAST( NULL AS SIGNED ) * + - 78 / 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT + 66 / CAST ( NULL AS INTEGER ) * + - 78 / 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT 76 * + 8 + - + ( + 64 ) - 1 / + 37 / - CASE - + 14 WHEN 52 - SUM( - - 52 ) THEN + 92 WHEN + 83 THEN - - ( + 16 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-867
SELECT 76 * + 8 + - + ( + 64 ) - 1 / + 37 / - CASE - + 14 WHEN 52 - SUM ( - - 52 ) THEN + 92 WHEN + 83 THEN - - ( + 16 ) ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-869
SELECT 22 + ( + COUNT( * ) ) + + + CASE + 96 WHEN 64 THEN + 19 / + - COUNT( + - 25 ) WHEN - ( - ( - 34 ) ) * - 78 * - - 76 THEN - 34 * ( 51 ) * + - 79 END, COALESCE ( + 4, - 43 + - 81 + - NULLIF ( - 73, + 30 ) * 89 * - COUNT( * ), - 21 ) AS col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-869
SELECT 22 + ( + COUNT ( * ) ) + + + CASE + 96 WHEN 64 THEN + 19 / + - COUNT ( + - 25 ) WHEN - ( - ( - 34 ) ) * - 78 * - - 76 THEN - 34 * ( 51 ) * + - 79 END, COALESCE ( + 4, - 43 + - 81 + - NULLIF ( - 73, + 30 ) * 89 * - COUNT ( * ), - 21 ) AS col2
----
NULL
4

query I rowsort
SELECT ALL 53 * - + 39 AS col0
----
-2067

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT NULLIF ( - 20, + MAX( DISTINCT + 96 ) ) + + 6 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-871
SELECT NULLIF ( - 20, + MAX ( DISTINCT + 96 ) ) + + 6 AS col1
----
-14

onlyif mysql # DIV for integer division: 
query III rowsort label-872
SELECT 8 DIV + 14 * - 67 * + + 62, + 80 DIV 20 AS col1, + 99 AS col2
----
0
4
99

skipif mysql # not compatible
query III rowsort label-872
SELECT 8 / + 14 * - 67 * + + 62, + 80 / 20 AS col1, + 99 AS col2
----
0
4
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-873
SELECT ALL COUNT( * ) * + SUM( ALL - CAST( NULL AS SIGNED ) ) / - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL COUNT ( * ) * + SUM ( ALL - CAST ( NULL AS INTEGER ) ) / - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT 18 * + ( COUNT( 97 ) )
----
18

skipif mysql # not compatible
query I rowsort label-874
SELECT 18 * + ( COUNT ( 97 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT MAX( - - NULLIF ( 27, 89 ) ) * - 65 AS col2
----
-1755

skipif mysql # not compatible
query I rowsort label-875
SELECT MAX ( - - NULLIF ( 27, 89 ) ) * - 65 AS col2
----
-1755

query II rowsort
SELECT ALL 96 AS col0, 88 + 83 AS col2
----
96
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-877
SELECT DISTINCT + 32 + 78 + - 15 * - + CAST( + 50 AS SIGNED ) * 47
----
35360

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT + 32 + 78 + - 15 * - + CAST ( + 50 AS INTEGER ) * 47
----
35360

query II rowsort
SELECT ALL 51, NULLIF ( 20, - - 22 ) col0
----
51
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-879
SELECT COUNT( * ) * - CAST( + + 13 AS SIGNED ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-879
SELECT COUNT ( * ) * - CAST ( + + 13 AS INTEGER ) AS col2
----
-13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT DISTINCT - COUNT( * ) + 43 * + 20
----
859

skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT - COUNT ( * ) + 43 * + 20
----
859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-882
SELECT DISTINCT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + + + COALESCE ( + NULLIF ( - - 68, - + 93 ), - 54 + 13 / 52, 35 * + + 8 + - COUNT( * ) ) + - 5 * 66 + + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + + + COALESCE ( + NULLIF ( - - 68, - + 93 ), - 54 + 13 / 52, 35 * + + 8 + - COUNT ( * ) ) + - 5 * 66 + + 98 AS col1
----
NULL

query II rowsort
SELECT - 8 AS col1, - NULLIF ( - 93, + 46 ) + - 12
----
-8
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-884
SELECT DISTINCT 13 + CAST( - ( 86 ) AS SIGNED ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-884
SELECT DISTINCT 13 + CAST ( - ( 86 ) AS INTEGER ) AS col2
----
-73

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

query I rowsort
SELECT DISTINCT - 76 * + - 99 AS col0
----
7524

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT + 17 * - COUNT( * ) + - - ( - + ( ( - 64 ) ) ) - 77
----
-30

skipif mysql # not compatible
query I rowsort label-887
SELECT + 17 * - COUNT ( * ) + - - ( - + ( ( - 64 ) ) ) - 77
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-888
SELECT DISTINCT + 6 + + 61 + + + 43 * 8 DIV COUNT( * ) DIV + 97 + - - 82 AS col1
----
152

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT + 6 + + 61 + + + 43 * 8 / COUNT ( * ) / + 97 + - - 82 AS col1
----
152

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

skipif mysql # not compatible
query I rowsort label-889
SELECT + 30 / - - 94 + + - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + 26 + - + 19
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT ALL - + COUNT( * ) - 80 + 56 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL - + COUNT ( * ) - 80 + 56 AS col1
----
-25

query I rowsort
SELECT 19 * + - 10 AS col2
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT + SUM( ALL - 60 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-894
SELECT + SUM ( ALL - 60 ) AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT 80 DIV + 53 + + 9
----
10

skipif mysql # not compatible
query I rowsort label-895
SELECT 80 / + 53 + + 9
----
10

query II rowsort
SELECT DISTINCT + 62 * 83, + 60 AS col2
----
5146
60

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT DISTINCT COUNT( * ) * - - 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-897
SELECT DISTINCT COUNT ( * ) * - - 9 AS col2
----
9

query I rowsort
SELECT 22 * + 65 col1
----
1430

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-899
SELECT ALL - ( - - CASE + 28 WHEN 37 THEN + - 13 ELSE NULL END ), - 4 + CAST( NULL AS SIGNED ) + 44 - 31 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-899
SELECT ALL - ( - - CASE + 28 WHEN 37 THEN + - 13 ELSE NULL END ), - 4 + CAST ( NULL AS INTEGER ) + 44 - 31 AS col0
----
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + 41 ) * 66
----
2706

query I rowsort
SELECT 12 * 87
----
1044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-902
SELECT CASE - COALESCE ( + CASE - + CAST( NULL AS SIGNED ) WHEN + ( + 61 ) + + 92 + COUNT( * ) THEN - + 24 * 33 * + NULLIF ( - NULLIF ( 52, - 44 * + 97 * + 63 + + - 66 ), + 81 ) WHEN + 97 - - + CAST( + + 71 AS SIGNED ) + 96 + + 70 / - COUNT( * ) * 57 THEN NULL END, NULLIF ( 38, - 79 ) * - + 33 + - ( 63 ) ) WHEN 92 * - + 58 THEN NULL WHEN - - 70 THEN 32 * + CASE - ( 49 ) WHEN + 28 * 13 * - NULLIF ( - 15, - 52 ) THEN NULL WHEN - CAST( - COUNT( * ) AS SIGNED ) + - COUNT( * ) * 13 THEN 68 END ELSE NULL END / 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-902
SELECT CASE - COALESCE ( + CASE - + CAST ( NULL AS INTEGER ) WHEN + ( + 61 ) + + 92 + COUNT ( * ) THEN - + 24 * 33 * + NULLIF ( - NULLIF ( 52, - 44 * + 97 * + 63 + + - 66 ), + 81 ) WHEN + 97 - - + CAST ( + + 71 AS INTEGER ) + 96 + + 70 / - COUNT ( * ) * 57 THEN NULL END, NULLIF ( 38, - 79 ) * - + 33 + - ( 63 ) ) WHEN 92 * - + 58 THEN NULL WHEN - - 70 THEN 32 * + CASE - ( 49 ) WHEN + 28 * 13 * - NULLIF ( - 15, - 52 ) THEN NULL WHEN - CAST ( - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) * 13 THEN 68 END ELSE NULL END / 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT ALL + 18 + 74 + + + COUNT( * ) col2
----
93

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL + 18 + 74 + + + COUNT ( * ) col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT 37 - + COUNT( * ) + - COUNT( * ) * 58 - - COUNT( * ) * - 60 - + - 69
----
-13

skipif mysql # not compatible
query I rowsort label-904
SELECT 37 - + COUNT ( * ) + - COUNT ( * ) * 58 - - COUNT ( * ) * - 60 - + - 69
----
-13

query II rowsort
SELECT ALL - 55 + - 56, - 85 AS col2
----
-111
-85

query I rowsort
SELECT DISTINCT 4 + 11
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-907
SELECT DISTINCT + 27 DIV 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT + 27 / 78 AS col2
----
0

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

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

query I rowsort
SELECT + 18 - 30 AS col0
----
-12

query I rowsort
SELECT - ( - 52 ) * + + 82 AS col0
----
4264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-911
SELECT DISTINCT + 96 + + CAST( + + 67 AS SIGNED ) + 62 * + COUNT( * ) * + 59
----
3821

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT + 96 + + CAST ( + + 67 AS INTEGER ) + 62 * + COUNT ( * ) * + 59
----
3821

query I rowsort
SELECT ALL - 38 + 22 * - - 39 AS col2
----
820

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT DISTINCT CASE 72 WHEN + COUNT( * ) + - 94 THEN NULL WHEN - 67 THEN 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT CASE 72 WHEN + COUNT ( * ) + - 94 THEN NULL WHEN - 67 THEN 97 END
----
NULL

query I rowsort
SELECT - NULLIF ( - 42, - 41 ) AS col1
----
42

query I rowsort
SELECT - 12 + + 57 col2
----
45

query I rowsort
SELECT ALL COALESCE ( 78, - 2 + + 4, + 54 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-917
SELECT ALL - COUNT( DISTINCT - 22 ), 62 AS col2
----
-1
62

skipif mysql # not compatible
query II rowsort label-917
SELECT ALL - COUNT ( DISTINCT - 22 ), 62 AS col2
----
-1
62

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

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

query I rowsort
SELECT 74 + + 36 AS col2
----
110

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

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

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

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT - 3 * + + COUNT ( * ) / - COUNT ( DISTINCT + - 43 ) AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-922
SELECT + - COUNT( + - 74 ) * AVG ( + 27 ) - + + 72 + + 97 / CAST( NULL AS SIGNED ) * + COUNT( * ) + + - 40 col1, 88 AS col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-922
SELECT + - COUNT ( + - 74 ) * AVG ( + 27 ) - + + 72 + + 97 / CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + - 40 col1, 88 AS col0
----
NULL
88

query II rowsort
SELECT + 14 * - + 78, 40 col2
----
-1092
40

query I rowsort
SELECT ALL 95 * + + 15 * + 60
----
85500

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT ALL + SUM( DISTINCT + + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL + SUM ( DISTINCT + + 65 )
----
65

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-927
SELECT ALL + 67, - COUNT( * ) * 90 AS col2, 3 + - 80 * + 72 AS col1
----
67
-90
-5757

skipif mysql # not compatible
query III rowsort label-927
SELECT ALL + 67, - COUNT ( * ) * 90 AS col2, 3 + - 80 * + 72 AS col1
----
67
-90
-5757

query I rowsort
SELECT + 29 + + + 0
----
29

query I rowsort
SELECT - 22 * - - 61 - + 49
----
-1391

query I rowsort
SELECT - 11 + 35 + 75 + + 15 * + 83 * 66
----
82269

onlyif mysql # DIV for integer division: 
query I rowsort label-931
SELECT ALL 17 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL 17 / 46
----
0

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

skipif mysql # not compatible
query I rowsort label-932
SELECT MAX ( + 36 )
----
36

query I rowsort
SELECT + 82 * + 78 AS col0
----
6396

query I rowsort
SELECT DISTINCT + 41 * - 26 AS col0
----
-1066

query I rowsort
SELECT ALL + 47 * - + 80 + - + 80 + + 97 col1
----
-3743

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

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

query I rowsort
SELECT ALL + 14 + - ( + 29 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-938
SELECT ALL COUNT( * ) + - 83 + - CAST( + 70 AS SIGNED ) / - 36 * ( + CASE 40 WHEN + - 46 * MAX( DISTINCT - + ( - 21 ) ) * + - 22 THEN + - 75 * + 45 WHEN - CAST( NULL AS SIGNED ) / 13 / + 36 - - CAST( NULL AS SIGNED ) * + - 91 + + + 35 + - 95 + + 36 THEN + CAST( - 90 AS SIGNED ) WHEN 32 THEN NULL END ) + - + 68 - - 22 * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL COUNT ( * ) + - 83 + - CAST ( + 70 AS INTEGER ) / - 36 * ( + CASE 40 WHEN + - 46 * MAX ( DISTINCT - + ( - 21 ) ) * + - 22 THEN + - 75 * + 45 WHEN - CAST ( NULL AS INTEGER ) / 13 / + 36 - - CAST ( NULL AS INTEGER ) * + - 91 + + + 35 + - 95 + + 36 THEN + CAST ( - 90 AS INTEGER ) WHEN 32 THEN NULL END ) + - + 68 - - 22 * + 49
----
NULL

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

query I rowsort
SELECT + 16 * - - 67 AS col1
----
1072

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-941
SELECT 47 * + - CASE 72 WHEN - + 11 THEN + COUNT( * ) + MAX( DISTINCT + 43 ) / 20 + - 19 WHEN 88 THEN + CAST( ( + 47 ) AS DECIMAL ) END * + + COUNT( * ) * - 79 + + 12 + - ( 44 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-941
SELECT 47 * + - CASE 72 WHEN - + 11 THEN + COUNT ( * ) + MAX ( DISTINCT + 43 ) / 20 + - 19 WHEN 88 THEN + CAST ( ( + 47 ) AS REAL ) END * + + COUNT ( * ) * - 79 + + 12 + - ( 44 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT ALL + + ( - 99 ) + + + SUM( ALL 60 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL + + ( - 99 ) + + + SUM ( ALL 60 ) AS col2
----
-39

query I rowsort
SELECT - - ( 44 ) * + - 23 AS col1
----
-1012

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

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

query I rowsort
SELECT - 5 * + 89 AS col1
----
-445

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

skipif mysql # not compatible
query II rowsort label-946
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 12 - 25, + 13 AS col1
----
NULL
13

query II rowsort
SELECT - 66 AS col2, 8
----
-66
8

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT ALL - - 79 * + ( - + ( COUNT( * ) ) ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL - - 79 * + ( - + ( COUNT ( * ) ) ) AS col1
----
-79

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

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

query I rowsort
SELECT + - 54 + - 53
----
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-951
SELECT - + COUNT( + 63 ) * + 83 DIV 68
----
-1

skipif mysql # not compatible
query I rowsort label-951
SELECT - + COUNT ( + 63 ) * + 83 / 68
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-952
SELECT ALL - 68, 23 * + ( COUNT( * ) ) AS col2
----
-68
23

skipif mysql # not compatible
query II rowsort label-952
SELECT ALL - 68, 23 * + ( COUNT ( * ) ) AS col2
----
-68
23

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

query I rowsort
SELECT ALL - + 99 * - COALESCE ( NULLIF ( 17, + - 44 ), - COALESCE ( - + 75, + 81 ) ) col1
----
1683

query I rowsort
SELECT - 66 * 9
----
-594

query II rowsort
SELECT ALL + 83 AS col0, 29 AS col1
----
83
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-957
SELECT ALL - 45 DIV + 93 * NULLIF ( - + 24, + 29 - + CASE + 74 WHEN + COALESCE ( - - 64, + + 29 * + NULLIF ( - 46, - - 62 ) ) + - 29 THEN + - COUNT( * ) END ) + + + 25 + 75 DIV - 92 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL - 45 / + 93 * NULLIF ( - + 24, + 29 - + CASE + 74 WHEN + COALESCE ( - - 64, + + 29 * + NULLIF ( - 46, - - 62 ) ) + - 29 THEN + - COUNT ( * ) END ) + + + 25 + 75 / - 92 AS col1
----
25

query I rowsort
SELECT + 35 + + 85 * 34
----
2925

query II rowsort
SELECT ALL + 73, + 31 * 62 AS col2
----
73
1922

onlyif mysql # DIV for integer division: 
query II rowsort label-960
SELECT ALL + 76, COALESCE ( - + 39, + 87 - - ( 70 ) DIV - + 22 * - 70 ) AS col1
----
76
-39

skipif mysql # not compatible
query II rowsort label-960
SELECT ALL + 76, COALESCE ( - + 39, + 87 - - ( 70 ) / - + 22 * - 70 ) AS col1
----
76
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-961
SELECT ( CAST( - SUM( DISTINCT - 21 ) AS SIGNED ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-961
SELECT ( CAST ( - SUM ( DISTINCT - 21 ) AS INTEGER ) ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT ( ( - NULLIF ( + COUNT( * ), + 18 * - 29 * 17 / - 90 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-962
SELECT ( ( - NULLIF ( + COUNT ( * ), + 18 * - 29 * 17 / - 90 ) ) )
----
-1

query I rowsort
SELECT + 88 * + 24 AS col0
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT + 0 * + - MIN( DISTINCT + 17 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-964
SELECT + 0 * + - MIN ( DISTINCT + 17 ) AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT DISTINCT + COUNT( * ) * - 14 + + ( 36 )
----
22

skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT + COUNT ( * ) * - 14 + + ( 36 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT ALL COALESCE ( 77, + 30 * - + 84 * + + 57 + - 63 ) * 54 + COUNT( * )
----
4159

skipif mysql # not compatible
query I rowsort label-967
SELECT ALL COALESCE ( 77, + 30 * - + 84 * + + 57 + - 63 ) * 54 + COUNT ( * )
----
4159

onlyif mysql # aggregate syntax: 
query II rowsort label-968
SELECT ALL + COUNT( * ), - 43 - + 46 AS col0
----
1
-89

skipif mysql # not compatible
query II rowsort label-968
SELECT ALL + COUNT ( * ), - 43 - + 46 AS col0
----
1
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ALL - 3 * - 80 + + 84 * + + MAX( ALL - + 91 ) * - COUNT( * ) AS col1
----
7884

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL - 3 * - 80 + + 84 * + + MAX ( ALL - + 91 ) * - COUNT ( * ) AS col1
----
7884

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-970
SELECT DISTINCT + 20 * - + 68 DIV + COUNT( * ) + + - 87 + - 77
----
-1524

skipif mysql # not compatible
query I rowsort label-970
SELECT DISTINCT + 20 * - + 68 / + COUNT ( * ) + + - 87 + - 77
----
-1524

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT ALL 28 DIV + 69 * + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL 28 / + 69 * + 83 AS col0
----
0

query II rowsort
SELECT DISTINCT 71 col2, 0
----
71
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-974
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), + 13 ) * - ( - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), + 13 ) * - ( - 90 )
----
NULL

query I rowsort
SELECT + - 41 - + 26 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT ALL - + 19 * 40 + - 38 * - COUNT( ALL 26 )
----
-722

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL - + 19 * 40 + - 38 * - COUNT ( ALL 26 )
----
-722

query I rowsort
SELECT DISTINCT - 97 * - 45
----
4365

onlyif mysql # aggregate syntax: 
query II rowsort label-978
SELECT DISTINCT + COUNT( * ) - + 72 * + CASE 42 WHEN 69 + - 45 THEN + 9 WHEN - + 57 + - + 79 + COUNT( * ) * + + 99 / - COUNT( * ) THEN NULL END + 45 - + 13 * - - COUNT( * ) + 34 AS col2, 11
----
NULL
11

skipif mysql # not compatible
query II rowsort label-978
SELECT DISTINCT + COUNT ( * ) - + 72 * + CASE 42 WHEN 69 + - 45 THEN + 9 WHEN - + 57 + - + 79 + COUNT ( * ) * + + 99 / - COUNT ( * ) THEN NULL END + 45 - + 13 * - - COUNT ( * ) + 34 AS col2, 11
----
NULL
11

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

query I rowsort
SELECT + 30 - + 31
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT + CASE + - 55 WHEN - COUNT( * ) + 80 - - - 94 THEN 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT + CASE + - 55 WHEN - COUNT ( * ) + 80 - - - 94 THEN 13 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT COALESCE ( - 14, + - COUNT( * ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-982
SELECT COALESCE ( - 14, + - COUNT ( * ) ) AS col0
----
-14

query I rowsort
SELECT + 97 + + 12 + 92 * - 90 * - 47 AS col2
----
389269

query I rowsort
SELECT - 6 * - 23
----
138

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

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL - + COUNT ( * ) + + - SUM ( + 85 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-986
SELECT 2 + + 86 AS col0, 78 * + COALESCE ( - - COUNT( * ), - + 33, - 49 + + 60 ) - 76 AS col1
----
88
2

skipif mysql # not compatible
query II rowsort label-986
SELECT 2 + + 86 AS col0, 78 * + COALESCE ( - - COUNT ( * ), - + 33, - 49 + + 60 ) - 76 AS col1
----
88
2

query I rowsort
SELECT 38 * 95 * - 85
----
-306850

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

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

query I rowsort
SELECT 12 * - 14
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-990
SELECT COUNT( + 37 ) DIV - 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-990
SELECT COUNT ( + 37 ) / - 8 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-991
SELECT - 13 DIV - - 59 - + 37
----
-37

skipif mysql # not compatible
query I rowsort label-991
SELECT - 13 / - - 59 - + 37
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-992
SELECT 37 + - 33 * - - ( + NULLIF ( - - COUNT( - - 62 ), - 95 ) ) * ( - + COUNT( * ) ) + - CAST( - 38 AS SIGNED ) + - + 33
----
75

skipif mysql # not compatible
query I rowsort label-992
SELECT 37 + - 33 * - - ( + NULLIF ( - - COUNT ( - - 62 ), - 95 ) ) * ( - + COUNT ( * ) ) + - CAST ( - 38 AS INTEGER ) + - + 33
----
75

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-993
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 77 AS col2, + 26 DIV - 73
----
NULL
0

skipif mysql # not compatible
query II rowsort label-993
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 77 AS col2, + 26 / - 73
----
NULL
0

query I rowsort
SELECT ALL 40 + + - 29 * + 59
----
-1671

query I rowsort
SELECT 37 + - ( + 36 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-996
SELECT + 75 * SUM( - CAST( NULL AS SIGNED ) ) - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-996
SELECT + 75 * SUM ( - CAST ( NULL AS INTEGER ) ) - 97 AS col0
----
NULL

query I rowsort
SELECT 52 * 24
----
1248

query I rowsort
SELECT ALL + + 13 * - 67 + - 9
----
-880

query I rowsort
SELECT 70 + - 60 * - - 90 * - 21 - - 90 col2
----
113560

onlyif mysql # aggregate syntax: 
query II rowsort label-1000
SELECT DISTINCT + 48 * + - 17 + - 17 col2, + 6 + COALESCE ( - - COUNT( * ), + 76, - 25 * - 26, - COUNT( * ) )
----
-833
7

skipif mysql # not compatible
query II rowsort label-1000
SELECT DISTINCT + 48 * + - 17 + - 17 col2, + 6 + COALESCE ( - - COUNT ( * ), + 76, - 25 * - 26, - COUNT ( * ) )
----
-833
7

query I rowsort
SELECT - 78 * - 78 AS col1
----
6084

onlyif mysql # DIV for integer division: 
query I rowsort label-1002
SELECT ALL - 10 DIV 15
----
0

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL - 10 / 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + 45 * - ( + ( 81 ) ) * - MAX( DISTINCT 84 ) AS col2
----
306180

skipif mysql # not compatible
query I rowsort label-1003
SELECT + 45 * - ( + ( 81 ) ) * - MAX ( DISTINCT 84 ) AS col2
----
306180

onlyif mysql # aggregate syntax: 
query II rowsort label-1004
SELECT + COUNT( * ) + + 66 AS col1, COUNT( * ) + - 46 - - SUM( 46 ) col1
----
67
1

skipif mysql # not compatible
query II rowsort label-1004
SELECT + COUNT ( * ) + + 66 AS col1, COUNT ( * ) + - 46 - - SUM ( 46 ) col1
----
67
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1005
SELECT - CASE - - 46 WHEN - 98 THEN SUM( DISTINCT - - 4 ) ELSE + 55 END DIV + 26 - + - 78 DIV COUNT( * ) + + + 60 DIV + - 20 - - 92
----
165

skipif mysql # not compatible
query I rowsort label-1005
SELECT - CASE - - 46 WHEN - 98 THEN SUM ( DISTINCT - - 4 ) ELSE + 55 END / + 26 - + - 78 / COUNT ( * ) + + + 60 / + - 20 - - 92
----
165

query I rowsort
SELECT DISTINCT - 16 * - - 61 AS col1
----
-976

query I rowsort
SELECT DISTINCT + 41 * - + 44 AS col0
----
-1804

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1009
SELECT ALL - 72 + + 10 * 24, + NULLIF ( ( - - ( + - MAX( DISTINCT + 93 ) ) ), + + NULLIF ( 97, - 43 * - 72 ) ) + - + 19 * 13 * - 49 + 14 AS col0
----
168
12024

skipif mysql # not compatible
query II rowsort label-1009
SELECT ALL - 72 + + 10 * 24, + NULLIF ( ( - - ( + - MAX ( DISTINCT + 93 ) ) ), + + NULLIF ( 97, - 43 * - 72 ) ) + - + 19 * 13 * - 49 + 14 AS col0
----
168
12024

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

skipif mysql # not compatible
query I rowsort label-1010
SELECT MIN ( - 58 ) col0
----
-58

query I rowsort
SELECT ALL + - 36 + - 36 * - 16 + - - 53 AS col2
----
593

query I rowsort
SELECT 38 + 73
----
111

query II rowsort
SELECT 82 AS col2, 65
----
82
65

query I rowsort
SELECT ALL + 17 + 9 col2
----
26

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

query II rowsort
SELECT 28 + 62 + + 26 col0, - 80
----
116
-80

query I rowsort
SELECT ( 13 ) * 43 AS col1
----
559

query II rowsort
SELECT ALL 65 AS col0, + 24 + 96
----
65
120

query III rowsort
SELECT DISTINCT 16 AS col2, 93 * - ( 92 ) + - 42 * - + 51, + + 91 AS col2
----
16
-6414
91

query I rowsort
SELECT 40 - - 17 AS col2
----
57

query II rowsort
SELECT + 21, - 67 AS col1
----
21
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT ALL + MAX( DISTINCT - 49 ) * - - 15 + + 59 * - 83
----
-5632

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL + MAX ( DISTINCT - 49 ) * - - 15 + + 59 * - 83
----
-5632

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL - 81 * 0 * + + 1 + + - COUNT( * ) + 92 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL - 81 * 0 * + + 1 + + - COUNT ( * ) + 92 AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1024
SELECT ALL 84 * + COUNT( * ) - + ( - 62 ) + + ( MAX( ALL + 17 ) ) + - 44 * + - 53 * - COALESCE ( + 31, 55 * - + 36 ) DIV - - COUNT( * ) + + - 37 + + 77 * 1 * 92 + + + 95 AS col2
----
-64987

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL 84 * + COUNT ( * ) - + ( - 62 ) + + ( MAX ( ALL + 17 ) ) + - 44 * + - 53 * - COALESCE ( + 31, 55 * - + 36 ) / - - COUNT ( * ) + + - 37 + + 77 * 1 * 92 + + + 95 AS col2
----
-64987

query I rowsort
SELECT 63 + - + 22
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT DISTINCT + CASE + - 54 WHEN + - 72 * + - 77 THEN NULL WHEN - 28 * - 6 THEN + - COUNT( * ) * + 73 / 87 * - + COALESCE ( 30, 37 * 2 + 80, - - 33 ) END * + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT + CASE + - 54 WHEN + - 72 * + - 77 THEN NULL WHEN - 28 * - 6 THEN + - COUNT ( * ) * + 73 / 87 * - + COALESCE ( 30, 37 * 2 + 80, - - 33 ) END * + 36 AS col1
----
NULL

query I rowsort
SELECT 55 * ( + + 52 ) + + 79 * - 83
----
-3697

onlyif mysql # aggregate syntax: 
query II rowsort label-1028
SELECT 46 * - + MAX( 13 ), COUNT( * ) * 77 * + + ( - 76 ) AS col1
----
-598
-5852

skipif mysql # not compatible
query II rowsort label-1028
SELECT 46 * - + MAX ( 13 ), COUNT ( * ) * 77 * + + ( - 76 ) AS col1
----
-598
-5852

query I rowsort
SELECT ALL + 55 * 4 AS col2
----
220

onlyif mysql # DIV for integer division: 
query I rowsort label-1030
SELECT 52 DIV 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1030
SELECT 52 / 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1031
SELECT COUNT( * ), + 92 + + 12 AS col2
----
1
104

skipif mysql # not compatible
query II rowsort label-1031
SELECT COUNT ( * ), + 92 + + 12 AS col2
----
1
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1032
SELECT COUNT( * ), COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-1032
SELECT COUNT ( * ), COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
1
0

query I rowsort
SELECT DISTINCT - 10 * + 19 AS col1
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT ALL - ( + NULLIF ( + - ( 53 ), 45 * + 69 + + 27 * + 43 + - + 1 + COUNT( * ) ) ) col2
----
53

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL - ( + NULLIF ( + - ( 53 ), 45 * + 69 + + 27 * + 43 + - + 1 + COUNT ( * ) ) ) col2
----
53

query II rowsort
SELECT ALL + + 46 col1, + 87
----
46
87

query I rowsort
SELECT DISTINCT + + 35 * - 39 * - 1 * 12 + + 46 AS col2
----
16426

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT + 12 * 85 + + 60 DIV + - 15 col0
----
1016

skipif mysql # not compatible
query I rowsort label-1037
SELECT + 12 * 85 + + 60 / + - 15 col0
----
1016

query I rowsort
SELECT ALL 82 + - 69 AS col0
----
13

query I rowsort
SELECT - ( 11 ) - + 66
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1040
SELECT ALL + ( 3 ) * + 46 AS col1, + MAX( ALL - 82 )
----
138
-82

skipif mysql # not compatible
query II rowsort label-1040
SELECT ALL + ( 3 ) * + 46 AS col1, + MAX ( ALL - 82 )
----
138
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT DISTINCT + 76 + - NULLIF ( + 59, + 79 * - 37 + - COUNT( ALL - 86 ) )
----
17

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT + 76 + - NULLIF ( + 59, + 79 * - 37 + - COUNT ( ALL - 86 ) )
----
17

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

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

query I rowsort
SELECT ALL + - 93 + 81 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT - NULLIF ( + ( - SUM( ALL 25 ) ), + 29 )
----
25

skipif mysql # not compatible
query I rowsort label-1044
SELECT - NULLIF ( + ( - SUM ( ALL 25 ) ), + 29 )
----
25

query I rowsort
SELECT DISTINCT 27 + 9 + 26
----
62

query II rowsort
SELECT 94 AS col1, + 72 AS col2
----
94
72

query II rowsort
SELECT ALL 64, - 42 col1
----
64
-42

query I rowsort
SELECT DISTINCT + 93 + + ( 66 ) AS col1
----
159

query I rowsort
SELECT - + 88 + + 51 AS col1
----
-37

query I rowsort
SELECT + 15 - 8 + - + 2
----
5

query I rowsort
SELECT DISTINCT 18 + + 43 * - 79 + - - 21 * + 56
----
-2203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1052
SELECT - MAX( DISTINCT - 91 ) AS col2, + COUNT( - 98 ) / + CAST( NULL AS SIGNED ) + - + 87 / + 89 * + 61 AS col1
----
91
NULL

skipif mysql # not compatible
query II rowsort label-1052
SELECT - MAX ( DISTINCT - 91 ) AS col2, + COUNT ( - 98 ) / + CAST ( NULL AS INTEGER ) + - + 87 / + 89 * + 61 AS col1
----
91
NULL

query I rowsort
SELECT ALL 53 + + 16
----
69

query I rowsort
SELECT + 59 + - 13 - - 3
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1055
SELECT DISTINCT 82 + + 87 + - - SUM( + 30 ) + ( + - 65 ) DIV + + 49 col0
----
198

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT 82 + + 87 + - - SUM ( + 30 ) + ( + - 65 ) / + + 49 col0
----
198

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

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

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

query I rowsort
SELECT ALL 11 * - 77 AS col2
----
-847

query I rowsort
SELECT + 17 + - 76
----
-59

query I rowsort
SELECT + NULLIF ( + 75, - - 22 )
----
75

query I rowsort
SELECT + CASE - 13 WHEN + 5 THEN 35 * - 6 END * + + 77 / 61 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1062
SELECT - CAST( 59 AS SIGNED ) * - 48
----
2832

skipif mysql # not compatible
query I rowsort label-1062
SELECT - CAST ( 59 AS INTEGER ) * - 48
----
2832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1063
SELECT + 67 / + + CAST( NULL AS SIGNED ) + + 78
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT + SUM( ALL + + 37 ) + 33 * 97 AS col2
----
3238

skipif mysql # not compatible
query I rowsort label-1064
SELECT + SUM ( ALL + + 37 ) + 33 * 97 AS col2
----
3238

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT ALL + 33 DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL + 33 / + + 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1066
SELECT + SUM( ALL + 37 ) * 5 DIV - - COALESCE ( - + 30, COUNT( * ) + - + 93 + COUNT( DISTINCT + + 47 ) * + COUNT( * ), 97 ) + + ( - 73 ) * - COUNT( * ) + + + ( CAST( + 1 AS SIGNED ) ) - + 76 DIV - COALESCE ( - COUNT( * ), 53 * + + 24 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1066
SELECT + SUM ( ALL + 37 ) * 5 / - - COALESCE ( - + 30, COUNT ( * ) + - + 93 + COUNT ( DISTINCT + + 47 ) * + COUNT ( * ), 97 ) + + ( - 73 ) * - COUNT ( * ) + + + ( CAST ( + 1 AS INTEGER ) ) - + 76 / - COALESCE ( - COUNT ( * ), 53 * + + 24 ) AS col0
----
-8

query I rowsort
SELECT ALL + 24 * CASE - ( - ( 2 ) ) WHEN - 14 + - 23 THEN + 85 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1068
SELECT ALL + - SUM( - 86 ) AS col1, COALESCE ( - 44, - COUNT( * ) * - + ( - 53 ) * - CAST( NULL AS SIGNED ) + + 96 )
----
86
-44

skipif mysql # not compatible
query II rowsort label-1068
SELECT ALL + - SUM ( - 86 ) AS col1, COALESCE ( - 44, - COUNT ( * ) * - + ( - 53 ) * - CAST ( NULL AS INTEGER ) + + 96 )
----
86
-44

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1070
SELECT - + 4 DIV + 48 + + - 43 * + + ( - 37 ) + + - 77 DIV + 97 col1
----
1591

skipif mysql # not compatible
query I rowsort label-1070
SELECT - + 4 / + 48 + + - 43 * + + ( - 37 ) + + - 77 / + 97 col1
----
1591

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT + COUNT( * ) + + 62 - - 95 * - 72 AS col2
----
-6777

skipif mysql # not compatible
query I rowsort label-1071
SELECT + COUNT ( * ) + + 62 - - 95 * - 72 AS col2
----
-6777

query I rowsort
SELECT - 83 + + 9 + + 0
----
-74

query I rowsort
SELECT ALL + - 42 * - 17 + + - 76 - + + 71 * 6 + - 18
----
194

query I rowsort
SELECT + - NULLIF ( - 88, + 23 ) AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1075
SELECT ( - COUNT( DISTINCT + - 80 ) ) * 86 + - + COALESCE ( 88, 90 + + 93 * CASE - 31 WHEN - 39 + - + 59 THEN + - 89 - - - 37 * ( + 93 ) * 20 DIV + 2 DIV + 90 WHEN 18 THEN + 82 * - 60 + - 50 ELSE NULL END * - - 94 * - 19 ) + - 64 AS col1
----
-238

skipif mysql # not compatible
query I rowsort label-1075
SELECT ( - COUNT ( DISTINCT + - 80 ) ) * 86 + - + COALESCE ( 88, 90 + + 93 * CASE - 31 WHEN - 39 + - + 59 THEN + - 89 - - - 37 * ( + 93 ) * 20 / + 2 / + 90 WHEN 18 THEN + 82 * - 60 + - 50 ELSE NULL END * - - 94 * - 19 ) + - 64 AS col1
----
-238

onlyif mysql # aggregate syntax: 
query II rowsort label-1076
SELECT - + 52 + - 39 + ( - NULLIF ( + + 23, - COUNT( * ) ) ) * 73 AS col2, - COUNT( * )
----
-1770
-1

skipif mysql # not compatible
query II rowsort label-1076
SELECT - + 52 + - 39 + ( - NULLIF ( + + 23, - COUNT ( * ) ) ) * 73 AS col2, - COUNT ( * )
----
-1770
-1

query I rowsort
SELECT ALL - + 45 * + + 87 + + 63
----
-3852

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT - - SUM( ALL - 54 ) + - ( - - COUNT( * ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-1078
SELECT - - SUM ( ALL - 54 ) + - ( - - COUNT ( * ) ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT ALL - COUNT( * ) * - SUM( ALL + 8 ) * + 38 * MIN( ( - 64 ) ) * - - ( 93 ) * + 36 + + ( - 78 ) + + 5 AS col0
----
-65138761

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL - COUNT ( * ) * - SUM ( ALL + 8 ) * + 38 * MIN ( ( - 64 ) ) * - - ( 93 ) * + 36 + + ( - 78 ) + + 5 AS col0
----
-65138761

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1082
SELECT DISTINCT - + 59 * - - 85 + + + CASE + + 38 WHEN + CAST( + + 20 AS SIGNED ) * 69 + + - ( 25 ) THEN NULL WHEN - 50 THEN NULL ELSE 88 END * + 15 * - 57
----
-80255

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT - + 59 * - - 85 + + + CASE + + 38 WHEN + CAST ( + + 20 AS INTEGER ) * 69 + + - ( 25 ) THEN NULL WHEN - 50 THEN NULL ELSE 88 END * + 15 * - 57
----
-80255

query I rowsort
SELECT - - 25 * + + 88 + - 8 AS col0
----
2192

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

skipif mysql # not compatible
query I rowsort label-1084
SELECT DISTINCT + ( 69 ) - + - ( + ( - - COUNT ( * ) ) ) AS col1
----
70

query I rowsort
SELECT + 53 + - + 2 + - 31
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1086
SELECT DISTINCT - ( COUNT( * ) ) * - 52 * + - 72 + - + 86 AS col2, 47 - 91 * 56 col0
----
-3830
-5049

skipif mysql # not compatible
query II rowsort label-1086
SELECT DISTINCT - ( COUNT ( * ) ) * - 52 * + - 72 + - + 86 AS col2, 47 - 91 * 56 col0
----
-3830
-5049

query I rowsort
SELECT - 0 - + - 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT + 6 * CASE WHEN + 19 NOT BETWEEN NULL AND - 6 THEN NULL ELSE - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1088
SELECT + 6 * CASE WHEN + 19 NOT BETWEEN NULL AND - 6 THEN NULL ELSE - COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 17 * + 23
----
-391

query I rowsort
SELECT + 23 + - 78 + - + 37 + - 38 * - + 62
----
2264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1091
SELECT + CASE COUNT( ALL - - 11 ) WHEN - 89 THEN NULL WHEN - ( - 1 ) * + AVG ( + - 80 ) * - 21 * 25 * 84 + + - 0 * MAX( ALL - 30 ) * - CAST( 20 AS SIGNED ) * ( - - 21 ) * 26 + - - 18 THEN NULL ELSE - - 60 END * + + 94 col2
----
5640

skipif mysql # not compatible
query I rowsort label-1091
SELECT + CASE COUNT ( ALL - - 11 ) WHEN - 89 THEN NULL WHEN - ( - 1 ) * + AVG ( + - 80 ) * - 21 * 25 * 84 + + - 0 * MAX ( ALL - 30 ) * - CAST ( 20 AS INTEGER ) * ( - - 21 ) * 26 + - - 18 THEN NULL ELSE - - 60 END * + + 94 col2
----
5640

query I rowsort
SELECT + ( - 57 ) + - - 26 - + 60 AS col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1093
SELECT ALL 64 - + MIN( DISTINCT CAST( NULL AS DECIMAL ) ) col0, 53 AS col0
----
NULL
53

skipif mysql # not compatible
query II rowsort label-1093
SELECT ALL 64 - + MIN ( DISTINCT CAST ( NULL AS REAL ) ) col0, 53 AS col0
----
NULL
53

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

skipif mysql # not compatible
query I rowsort label-1094
SELECT + 70 / 89 / - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT + 75 + - - COUNT( * ) + + 44 * 74 + + 23 AS col2
----
3355

skipif mysql # not compatible
query I rowsort label-1095
SELECT + 75 + - - COUNT ( * ) + + 44 * 74 + + 23 AS col2
----
3355

query II rowsort
SELECT 58, + 79 AS col0
----
58
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT ALL MAX( DISTINCT - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL MAX ( DISTINCT - 49 )
----
-49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ALL NULLIF ( 53, - 96 ) * + MIN( + 79 ) + - 67
----
4120

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL NULLIF ( 53, - 96 ) * + MIN ( + 79 ) + - 67
----
4120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1100
SELECT CAST( 25 AS SIGNED ) * - 22 + + 19 + - COUNT( * ) + + CAST( NULL AS DECIMAL ) / + - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1100
SELECT CAST ( 25 AS INTEGER ) * - 22 + + 19 + - COUNT ( * ) + + CAST ( NULL AS REAL ) / + - 75 AS col1
----
NULL

query I rowsort
SELECT ALL 22 * - + 65
----
-1430

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1102
SELECT + 97 AS col1, 97 DIV - COUNT( * ) AS col0
----
97
-97

skipif mysql # not compatible
query II rowsort label-1102
SELECT + 97 AS col1, 97 / - COUNT ( * ) AS col0
----
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT DISTINCT 56 + COUNT( * ) * 48 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT 56 + COUNT ( * ) * 48 AS col1
----
104

query I rowsort
SELECT 16 * + 91 AS col1
----
1456

query I rowsort
SELECT DISTINCT 9 + + 68
----
77

query I rowsort
SELECT DISTINCT 21 + + 51
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT ALL - COUNT( * ) + COALESCE ( + 30, + 26 * ( + COUNT( * ) ) + 2 )
----
29

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL - COUNT ( * ) + COALESCE ( + 30, + 26 * ( + COUNT ( * ) ) + 2 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT 6 * + MAX( ALL 6 )
----
36

skipif mysql # not compatible
query I rowsort label-1109
SELECT 6 * + MAX ( ALL 6 )
----
36

query I rowsort
SELECT ALL 55 + 76
----
131

query I rowsort
SELECT DISTINCT - ( + 34 ) + + 67 * 60 AS col1
----
3986

query I rowsort
SELECT ALL 8 + 26
----
34

query I rowsort
SELECT 67 * 0 + - 63 col0
----
-63

query I rowsort
SELECT 31 * 64 AS col0
----
1984

query I rowsort
SELECT - 42 * 46 + 15 AS col0
----
-1917

query I rowsort
SELECT ALL + 31 + + 66
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT COUNT( * ) + 27 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1117
SELECT COUNT ( * ) + 27 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1118
SELECT COUNT( * ) * - CAST( 31 AS SIGNED ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-1118
SELECT COUNT ( * ) * - CAST ( 31 AS INTEGER ) col0
----
-31

query I rowsort
SELECT DISTINCT 7 - 32 AS col0
----
-25

query I rowsort
SELECT DISTINCT - 86 - + 90 * - 87 col1
----
7744

query I rowsort
SELECT DISTINCT - 13 * - 41 AS col0
----
533

query I rowsort
SELECT ALL - 68 - - 65 AS col0
----
-3

query I rowsort
SELECT 56 * 71
----
3976

query I rowsort
SELECT 30 + 30
----
60

query I rowsort
SELECT 75 - + 64 col2
----
11

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

skipif mysql # not compatible
query I rowsort label-1126
SELECT 46 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 51 * 0
----
0

query I rowsort
SELECT 65 + + 3 AS col0
----
68

query I rowsort
SELECT 72 * + 44 AS col2
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT MAX( + 50 ) + + COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1130
SELECT MAX ( + 50 ) + + COUNT ( * ) AS col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1131
SELECT 91 DIV 29
----
3

skipif mysql # not compatible
query I rowsort label-1131
SELECT 91 / 29
----
3

query I rowsort
SELECT ALL - 33 + + 21
----
-12

query I rowsort
SELECT 62 + + 26
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT ALL COUNT( * ) + 42 * + 8 AS col0
----
337

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL COUNT ( * ) + 42 * + 8 AS col0
----
337

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT + 82 DIV + 65 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1135
SELECT + 82 / + 65 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1136
SELECT CASE - 78 WHEN 37 THEN NULL WHEN ( 57 ) * 50 THEN + 32 + + AVG ( + 51 ) * 63 WHEN 62 * - 98 + MAX( ALL - 89 ) THEN + 86 ELSE CAST( NULL AS SIGNED ) END / + MIN( DISTINCT + 66 * 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT CASE - 78 WHEN 37 THEN NULL WHEN ( 57 ) * 50 THEN + 32 + + AVG ( + 51 ) * 63 WHEN 62 * - 98 + MAX ( ALL - 89 ) THEN + 86 ELSE CAST ( NULL AS INTEGER ) END / + MIN ( DISTINCT + 66 * 46 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1137
SELECT DISTINCT 30 DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT 30 / 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL 35 + 57 * - ( COUNT( * ) * 55 )
----
-3100

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL 35 + 57 * - ( COUNT ( * ) * 55 )
----
-3100

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT 85 DIV + NULLIF ( 84, - 96 ) + + 77
----
78

skipif mysql # not compatible
query I rowsort label-1139
SELECT 85 / + NULLIF ( 84, - 96 ) + + 77
----
78

query I rowsort
SELECT ALL - 80 + - 79
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT 39 + + ( NULLIF ( SUM( + 77 ), COALESCE ( 47, COUNT( * ), ( 96 ) + COUNT( 39 ) ) + COUNT( * ) ) + COUNT( * ) ) AS col1
----
117

skipif mysql # not compatible
query I rowsort label-1141
SELECT 39 + + ( NULLIF ( SUM ( + 77 ), COALESCE ( 47, COUNT ( * ), ( 96 ) + COUNT ( 39 ) ) + COUNT ( * ) ) + COUNT ( * ) ) AS col1
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-1142
SELECT DISTINCT - 88 DIV 45
----
-1

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT - 88 / 45
----
-1

query I rowsort
SELECT ALL + COALESCE ( + 94, - CASE 34 WHEN 25 / 30 THEN 17 + + 78 WHEN 5 THEN NULL ELSE NULL END * + 49, + 91 ) + - 96
----
-2

query I rowsort
SELECT DISTINCT + 8 * 16 AS col1
----
128

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1145
SELECT 18 + - MAX( - 53 + CAST( NULL AS DECIMAL ) ) * MAX( ALL 85 + + 59 / + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT 18 + - MAX ( - 53 + CAST ( NULL AS REAL ) ) * MAX ( ALL 85 + + 59 / + 93 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1146
SELECT ALL + 64 - COALESCE ( 83, + 62 DIV COUNT( * ) + 47 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL + 64 - COALESCE ( 83, + 62 / COUNT ( * ) + 47 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + 81 + - CASE - NULLIF ( + 84, 63 * + 19 ) WHEN + 88 THEN + 46 * MAX( + 34 ) - 69 * 68 END / + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1147
SELECT + 81 + - CASE - NULLIF ( + 84, 63 * + 19 ) WHEN + 88 THEN + 46 * MAX ( + 34 ) - 69 * 68 END / + 19
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT - 77 * 8 + + 1 DIV 87 AS col2
----
-616

skipif mysql # not compatible
query I rowsort label-1148
SELECT - 77 * 8 + + 1 / 87 AS col2
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT + 90 * 93 + - COUNT( * )
----
8369

skipif mysql # not compatible
query I rowsort label-1149
SELECT + 90 * 93 + - COUNT ( * )
----
8369

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT ALL 4 * ( COUNT( 13 ) )
----
4

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL 4 * ( COUNT ( 13 ) )
----
4

query I rowsort
SELECT - 47 + 79 AS col0
----
32

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

query I rowsort
SELECT ALL - 36 - - 28 + - 36
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1154
SELECT DISTINCT CASE 9 WHEN + 54 * + 34 THEN + MIN( 88 ) * ( 5 ) ELSE 97 END DIV - 5
----
-19

skipif mysql # not compatible
query I rowsort label-1154
SELECT DISTINCT CASE 9 WHEN + 54 * + 34 THEN + MIN ( 88 ) * ( 5 ) ELSE 97 END / - 5
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT 75 + 0 - - 49 * - SUM( + 5 )
----
-170

skipif mysql # not compatible
query I rowsort label-1155
SELECT 75 + 0 - - 49 * - SUM ( + 5 )
----
-170

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1157
SELECT 82 * ( NULLIF ( 82, - ( + CAST( + 52 AS SIGNED ) ) + + 45 ) )
----
6724

skipif mysql # not compatible
query I rowsort label-1157
SELECT 82 * ( NULLIF ( 82, - ( + CAST ( + 52 AS INTEGER ) ) + + 45 ) )
----
6724

query I rowsort
SELECT 85 + + 10 AS col2
----
95

query I rowsort
SELECT 91 * - 70 AS col0
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT ALL - 64 * - 69 / + CASE + COUNT( * ) * 26 WHEN 90 + - MAX( ALL 18 ) THEN - 13 / - 59 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL - 64 * - 69 / + CASE + COUNT ( * ) * 26 WHEN 90 + - MAX ( ALL 18 ) THEN - 13 / - 59 ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 52 * 71 AS col2
----
3692

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT 72 + NULLIF ( 41, COUNT( * ) + - 18 ) * - 18 AS col2
----
-666

skipif mysql # not compatible
query I rowsort label-1163
SELECT 72 + NULLIF ( 41, COUNT ( * ) + - 18 ) * - 18 AS col2
----
-666

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

skipif mysql # not compatible
query I rowsort label-1164
SELECT DISTINCT MIN ( DISTINCT - 18 )
----
-18

query I rowsort
SELECT 81 * - 50 AS col2
----
-4050

query I rowsort
SELECT ALL 46 + - + 69 * - 37 AS col2
----
2599

query I rowsort
SELECT DISTINCT COALESCE ( 83, 87 )
----
83

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT DISTINCT + 93 + + + 38 + - ( + 27 + - COALESCE ( + 73, + 17, - COUNT( * ) DIV 90 ) * + 42 ) * - COUNT( * )
----
-2908

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT + 93 + + + 38 + - ( + 27 + - COALESCE ( + 73, + 17, - COUNT ( * ) / 90 ) * + 42 ) * - COUNT ( * )
----
-2908

query I rowsort
SELECT + 4 * - 40 AS col2
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT ALL MIN( DISTINCT + 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL MIN ( DISTINCT + 12 ) AS col0
----
12

query I rowsort
SELECT - 86 + 76 AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1173
SELECT ALL - - 26 + + - CAST( - 33 AS SIGNED ) AS col2
----
59

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

query I rowsort
SELECT ALL + 9 + - - 0 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT ALL + 94 * + - MAX( ALL - 1 ) * - 10 + + COUNT( * ) + - 57
----
-996

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL + 94 * + - MAX ( ALL - 1 ) * - 10 + + COUNT ( * ) + - 57
----
-996

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT ALL 46 * + - COUNT( * ) * + 0
----
0

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL 46 * + - COUNT ( * ) * + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT ALL - + 91 * + 74 + ( - 64 ) DIV 95
----
-6734

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL - + 91 * + 74 + ( - 64 ) / 95
----
-6734

query I rowsort
SELECT - - 48 * + 32 * + 12
----
18432

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT DISTINCT + 1 * + MAX( 33 ) - + ( - 84 ) * 5
----
453

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT + 1 * + MAX ( 33 ) - + ( - 84 ) * 5
----
453

query I rowsort
SELECT + + 15 * + - 25 AS col2
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT COALESCE ( - CASE - 55 WHEN 87 + MIN( + 70 ) THEN NULL WHEN - 64 + + 99 THEN NULL WHEN 89 THEN COUNT( * ) END, 41 )
----
41

skipif mysql # not compatible
query I rowsort label-1181
SELECT COALESCE ( - CASE - 55 WHEN 87 + MIN ( + 70 ) THEN NULL WHEN - 64 + + 99 THEN NULL WHEN 89 THEN COUNT ( * ) END, 41 )
----
41

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1183
SELECT - 9 * + - COUNT( * ) + CASE - ( CAST( SUM( DISTINCT 56 ) AS SIGNED ) ) WHEN 6 THEN ( 1 ) + - 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1183
SELECT - 9 * + - COUNT ( * ) + CASE - ( CAST ( SUM ( DISTINCT 56 ) AS INTEGER ) ) WHEN 6 THEN ( 1 ) + - 82 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT ALL 48 DIV - 39
----
-1

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL 48 / - 39
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT DISTINCT - + 97 * + 77 + COUNT( * ) * + ( 50 ) - 21
----
-7440

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT - + 97 * + 77 + COUNT ( * ) * + ( 50 ) - 21
----
-7440

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

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

query I rowsort
SELECT + + 88 * + + 80 AS col2
----
7040

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1189
SELECT + - COALESCE ( - COUNT( * ), 24, NULLIF ( + 98, - 23 * - 42 ) * + CAST( NULL AS SIGNED ) ) * - 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1189
SELECT + - COALESCE ( - COUNT ( * ), 24, NULLIF ( + 98, - 23 * - 42 ) * + CAST ( NULL AS INTEGER ) ) * - 1 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT MIN( ALL + - ( + + 53 ) ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-1190
SELECT MIN ( ALL + - ( + + 53 ) ) AS col0
----
-53

query I rowsort
SELECT - 18 * - 58 col1
----
1044

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT COUNT( ALL + 19 ) * - 73 + - 13
----
-86

skipif mysql # not compatible
query I rowsort label-1192
SELECT COUNT ( ALL + 19 ) * - 73 + - 13
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-1193
SELECT + COUNT( * ), - NULLIF ( 88, 44 * 3 ) AS col1
----
1
-88

skipif mysql # not compatible
query II rowsort label-1193
SELECT + COUNT ( * ), - NULLIF ( 88, 44 * 3 ) AS col1
----
1
-88

query I rowsort
SELECT + 53 + 70 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT MIN( DISTINCT + 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-1195
SELECT MIN ( DISTINCT + 61 ) AS col0
----
61

query I rowsort
SELECT + CASE + 39 WHEN + 14 THEN NULL WHEN + CASE 43 WHEN - 26 THEN NULL ELSE - 21 END + 10 THEN 73 END * - ( 10 / 40 ) col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1197
SELECT + 47 + - COUNT ( * ) AS col1
----
46

query I rowsort
SELECT DISTINCT 11 * - 38 AS col1
----
-418

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

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

query I rowsort
SELECT DISTINCT 93 + - 50 AS col2
----
43

query I rowsort
SELECT + CASE WHEN + 78 > - 4 THEN 6 ELSE NULL END + + 92 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT - CASE - 83 WHEN - - 93 THEN NULL WHEN 39 THEN + COUNT( * ) ELSE 4 END
----
-4

skipif mysql # not compatible
query I rowsort label-1202
SELECT - CASE - 83 WHEN - - 93 THEN NULL WHEN 39 THEN + COUNT ( * ) ELSE 4 END
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1203
SELECT - 10 DIV ( - - 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1203
SELECT - 10 / ( - - 79 ) AS col0
----
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1206
SELECT ALL 92 + - CASE + 29 WHEN 78 THEN + CAST( - 97 AS DECIMAL ) WHEN 14 / 58 + - NULLIF ( - 46, CASE + CASE 86 WHEN - 52 THEN + MAX( DISTINCT + 24 ) WHEN COUNT( * ) * ( 57 / 77 ) + + 83 THEN NULL WHEN 18 THEN NULL ELSE NULL END WHEN - ( + 84 ) THEN - NULLIF ( 89, 92 ) * CAST( NULL AS SIGNED ) + + 1 * + 62 END ) * COALESCE ( - MAX( 29 ), 16 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL 92 + - CASE + 29 WHEN 78 THEN + CAST ( - 97 AS REAL ) WHEN 14 / 58 + - NULLIF ( - 46, CASE + CASE 86 WHEN - 52 THEN + MAX ( DISTINCT + 24 ) WHEN COUNT ( * ) * ( 57 / 77 ) + + 83 THEN NULL WHEN 18 THEN NULL ELSE NULL END WHEN - ( + 84 ) THEN - NULLIF ( 89, 92 ) * CAST ( NULL AS INTEGER ) + + 1 * + 62 END ) * COALESCE ( - MAX ( 29 ), 16 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1207
SELECT + CAST( - COUNT( * ) AS SIGNED ) * 18 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-1207
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * 18 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT + ( - NULLIF ( - + 56, 6 ) ) - 80 * + SUM( DISTINCT 43 * 75 ) AS col1
----
-257944

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT + ( - NULLIF ( - + 56, 6 ) ) - 80 * + SUM ( DISTINCT 43 * 75 ) AS col1
----
-257944

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

skipif mysql # not compatible
query I rowsort label-1209
SELECT - SUM ( + - ( 58 ) )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1210
SELECT - COUNT( * ) * 73 * + 18 + + ( + MAX( ALL + CAST( NULL AS SIGNED ) ) + - 46 * + 27 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1210
SELECT - COUNT ( * ) * 73 * + 18 + + ( + MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - 46 * + 27 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT DISTINCT + COUNT( - + 49 ) - + + 24 + + 80 * - 17
----
-1383

skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT + COUNT ( - + 49 ) - + + 24 + + 80 * - 17
----
-1383

query I rowsort
SELECT + 66 + - NULLIF ( - 31, + 29 )
----
97

query II rowsort
SELECT + 33 AS col0, + ( - 82 ) * + 13
----
33
-1066

query I rowsort
SELECT - - 67 + + - 81
----
-14

query I rowsort
SELECT - + 92 + + 1 + 13 + + 88 col1
----
10

query I rowsort
SELECT DISTINCT + 54 * - - 26 * 69 AS col0
----
96876

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT + + 38 * + SUM( 79 ) + + 7 AS col0
----
3009

skipif mysql # not compatible
query I rowsort label-1218
SELECT + + 38 * + SUM ( 79 ) + + 7 AS col0
----
3009

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

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

query I rowsort
SELECT + 66 + - 36
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT + COALESCE ( - - NULLIF ( - 76, ( 90 ) * ( MIN( DISTINCT - 97 ) ) ), - 81 )
----
-76

skipif mysql # not compatible
query I rowsort label-1221
SELECT + COALESCE ( - - NULLIF ( - 76, ( 90 ) * ( MIN ( DISTINCT - 97 ) ) ), - 81 )
----
-76

query I rowsort
SELECT DISTINCT 85 * - 45 + - 19 + + 83 AS col0
----
-3761

query I rowsort
SELECT ALL 54 * - 95 + - - 47 AS col2
----
-5083

query I rowsort
SELECT - CASE 43 WHEN - + 36 + 20 + + 17 * + 1 THEN 38 END * - 7 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1225
SELECT DISTINCT NULLIF ( - 57, - 88 ) * + - CASE 1 WHEN COUNT( * ) * CASE 55 WHEN - 85 THEN - 74 WHEN CAST( NULL AS SIGNED ) * 57 THEN 72 WHEN 93 + + 36 THEN NULL ELSE NULL END + - 62 THEN NULL WHEN + 56 THEN NULL ELSE - 77 - + 69 * + NULLIF ( 59 + 87 * + 58, 47 + 56 ) END * ( 9 ) + 27
----
-180741159

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT NULLIF ( - 57, - 88 ) * + - CASE 1 WHEN COUNT ( * ) * CASE 55 WHEN - 85 THEN - 74 WHEN CAST ( NULL AS INTEGER ) * 57 THEN 72 WHEN 93 + + 36 THEN NULL ELSE NULL END + - 62 THEN NULL WHEN + 56 THEN NULL ELSE - 77 - + 69 * + NULLIF ( 59 + 87 * + 58, 47 + 56 ) END * ( 9 ) + 27
----
-180741159

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT ALL + 47 + COUNT( * ) / - - CASE - MAX( 30 ) WHEN 39 THEN 34 WHEN - ( - 25 ) - ( CASE - 16 WHEN 61 * + 78 THEN + ( + 54 ) ELSE NULL END + - 49 ) THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL + 47 + COUNT ( * ) / - - CASE - MAX ( 30 ) WHEN 39 THEN 34 WHEN - ( - 25 ) - ( CASE - 16 WHEN 61 * + 78 THEN + ( + 54 ) ELSE NULL END + - 49 ) THEN - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1227
SELECT + 47 * ( + CAST( NULL AS SIGNED ) ) + + - NULLIF ( + ( 44 ), COALESCE ( + 47, - 61 ) ) + COALESCE ( 0, - 56 / - 52, + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1227
SELECT + 47 * ( + CAST ( NULL AS INTEGER ) ) + + - NULLIF ( + ( 44 ), COALESCE ( + 47, - 61 ) ) + COALESCE ( 0, - 56 / - 52, + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT 11 * + 55 * SUM( + 51 ) + - 31 AS col2
----
30824

skipif mysql # not compatible
query I rowsort label-1228
SELECT 11 * + 55 * SUM ( + 51 ) + - 31 AS col2
----
30824

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT DISTINCT MAX( 7 ) * - 70 * + COUNT( * ) * 94 AS col2
----
-46060

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT MAX ( 7 ) * - 70 * + COUNT ( * ) * 94 AS col2
----
-46060

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT SUM( ALL - - 69 ) * 25
----
1725

skipif mysql # not compatible
query I rowsort label-1230
SELECT SUM ( ALL - - 69 ) * 25
----
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ( + COUNT( * ) ) + + 44 * - 32 + - 26 col2
----
-1433

skipif mysql # not compatible
query I rowsort label-1231
SELECT ( + COUNT ( * ) ) + + 44 * - 32 + - 26 col2
----
-1433

query I rowsort
SELECT 97 + 7
----
104

query I rowsort
SELECT NULLIF ( + 61, - 8 + - 81 + 89 ) * + 16 AS col2
----
976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1234
SELECT ( 68 ) + + 59 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT ( 68 ) + + 59 + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1235
SELECT DISTINCT - 70 DIV + 16 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT - 70 / + 16 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT ALL - COUNT( - ( - 12 ) ) - SUM( 39 ) + COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL - COUNT ( - ( - 12 ) ) - SUM ( 39 ) + COUNT ( * ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT DISTINCT - SUM( + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT - SUM ( + 4 )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-1238
SELECT ( + 71 ) AS col2, SUM( 89 ) + - 95 * 3 AS col1
----
71
-196

skipif mysql # not compatible
query II rowsort label-1238
SELECT ( + 71 ) AS col2, SUM ( 89 ) + - 95 * 3 AS col1
----
71
-196

query I rowsort
SELECT 14 + - + 50
----
-36

query I rowsort
SELECT ALL - 76 * - 77 * - 57 AS col1
----
-333564

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT ALL NULLIF ( - 75, + + 65 + + MIN( 78 ) ) col1
----
-75

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL NULLIF ( - 75, + + 65 + + MIN ( 78 ) ) col1
----
-75

query I rowsort
SELECT - 0 * 47 * - + 29 + 86 AS col2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT DISTINCT - + COALESCE ( ( + 95 ), + - 11 * - 84 ) DIV + ( 97 * + 65 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT - + COALESCE ( ( + 95 ), + - 11 * - 84 ) / + ( 97 * + 65 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL - MIN( ( - COALESCE ( - 36, 96 ) ) )
----
-36

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL - MIN ( ( - COALESCE ( - 36, 96 ) ) )
----
-36

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1246
SELECT ALL - + 99 + - CASE + - COUNT( * ) WHEN - MIN( DISTINCT - 63 ) / COUNT( * ) - - COUNT( ALL 61 ) THEN 47 + COUNT( * ) * - 50 WHEN 46 THEN + 89 + - CAST( - ( ( 46 ) ) AS DECIMAL ) / 10 END - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL - + 99 + - CASE + - COUNT ( * ) WHEN - MIN ( DISTINCT - 63 ) / COUNT ( * ) - - COUNT ( ALL 61 ) THEN 47 + COUNT ( * ) * - 50 WHEN 46 THEN + 89 + - CAST ( - ( ( 46 ) ) AS REAL ) / 10 END - 25
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1247
SELECT CASE + 67 WHEN + 84 * + + CAST( NULL AS DECIMAL ) + + 81 + 69 THEN + 35 ELSE 63 + 6 END - 5
----
64

skipif mysql # not compatible
query I rowsort label-1247
SELECT CASE + 67 WHEN + 84 * + + CAST ( NULL AS REAL ) + + 81 + 69 THEN + 35 ELSE 63 + 6 END - 5
----
64

query I rowsort
SELECT ALL - 5 * - 86 AS col1
----
430

query I rowsort
SELECT ALL + 51 + - + 13 + + 82 * - - 68 * - + NULLIF ( 75, 62 )
----
-418162

query I rowsort
SELECT ALL + 78 + + - 26
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-1251
SELECT 85 DIV 33 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1251
SELECT 85 / 33 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT ALL - 79 + + + NULLIF ( + 83, COUNT( * ) * COUNT( * ) + - 31 * + 3 )
----
4

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL - 79 + + + NULLIF ( + 83, COUNT ( * ) * COUNT ( * ) + - 31 * + 3 )
----
4

query II rowsort
SELECT ALL - 6 * + 5 * - 11, 37 - + 39 AS col0
----
330
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT + 43 * - COUNT( * ) + + 83 + + 26 - + COUNT( * ) + COALESCE ( + CASE - 39 WHEN + 26 / 28 THEN + 20 ELSE - 15 END, - 88 ) * 76 * 36
----
-40975

skipif mysql # not compatible
query I rowsort label-1254
SELECT + 43 * - COUNT ( * ) + + 83 + + 26 - + COUNT ( * ) + COALESCE ( + CASE - 39 WHEN + 26 / 28 THEN + 20 ELSE - 15 END, - 88 ) * 76 * 36
----
-40975

query I rowsort
SELECT 75 + - - 30 * - - 40 AS col2
----
1275

query I rowsort
SELECT 10 * - 22
----
-220

query I rowsort
SELECT 81 * - - 79
----
6399

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL + COUNT( * ) - + 29
----
-28

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL + COUNT ( * ) - + 29
----
-28

query I rowsort
SELECT ALL - COALESCE ( 87, + ( - 37 ) )
----
-87

query I rowsort
SELECT DISTINCT + 34 - + 34 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1261
SELECT ALL 45 DIV 48 * + 98 * + 98
----
0

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL 45 / 48 * + 98 * + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT - 4 * + 83 * + 29 + - + 83 + + - 25 + - COUNT( * ) * + 29 AS col2
----
-9765

skipif mysql # not compatible
query I rowsort label-1262
SELECT - 4 * + 83 * + 29 + - + 83 + + - 25 + - COUNT ( * ) * + 29 AS col2
----
-9765

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

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

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 25
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1265
SELECT 25 DIV + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1265
SELECT 25 / + 72 AS col2
----
0

query I rowsort
SELECT 93 * 18 AS col0
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT - 26 + + + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-1267
SELECT - 26 + + + COUNT ( * )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1268
SELECT COUNT( 22 ) - COUNT( * ) - NULLIF ( 39, + CASE CAST( 53 AS SIGNED ) WHEN + 30 + + 25 THEN NULL WHEN 13 THEN NULL ELSE 79 END ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-1268
SELECT COUNT ( 22 ) - COUNT ( * ) - NULLIF ( 39, + CASE CAST ( 53 AS INTEGER ) WHEN + 30 + + 25 THEN NULL WHEN 13 THEN NULL ELSE 79 END ) AS col1
----
-39

query I rowsort
SELECT ALL 74 * - + 5 * + - 30 AS col1
----
11100

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1271
SELECT - - NULLIF ( + 62, + + 52 ), + 9 + CASE - 90 WHEN SUM( DISTINCT - 6 ) * 25 THEN - 96 WHEN + 91 - + 20 THEN NULL WHEN 88 THEN 90 END AS col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-1271
SELECT - - NULLIF ( + 62, + + 52 ), + 9 + CASE - 90 WHEN SUM ( DISTINCT - 6 ) * 25 THEN - 96 WHEN + 91 - + 20 THEN NULL WHEN 88 THEN 90 END AS col2
----
62
NULL

query I rowsort
SELECT - 57 - + 38 AS col2
----
-95

query I rowsort
SELECT ALL - + 48 * 61 * - COALESCE ( 34, - 84 - + 11 )
----
99552

query I rowsort
SELECT DISTINCT - ( + 60 ) col0
----
-60

query I rowsort
SELECT - 98 * + 15 col0
----
-1470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1276
SELECT + COALESCE ( 12, + - 63 ) - + ( + 6 ) - - CAST( NULL AS SIGNED ) * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT + COALESCE ( 12, + - 63 ) - + ( + 6 ) - - CAST ( NULL AS INTEGER ) * - 68
----
NULL

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

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

query I rowsort
SELECT ALL + COALESCE ( + 92, + 35 * + 56 ) AS col0
----
92

query I rowsort
SELECT ( 39 ) + - - 73
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT + 64 + - - 47 + - 67 + + COUNT( * ) - + COUNT( * ) * + 97 * 22
----
-2089

skipif mysql # not compatible
query I rowsort label-1280
SELECT + 64 + - - 47 + - 67 + + COUNT ( * ) - + COUNT ( * ) * + 97 * 22
----
-2089

query I rowsort
SELECT ALL 4 + + + NULLIF ( 71, 86 ) AS col2
----
75

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1283
SELECT + - CAST( - - 11 AS SIGNED ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-1283
SELECT + - CAST ( - - 11 AS INTEGER ) AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1284
SELECT + 51 DIV 58 + + 27 + 59 + - ( - 98 ) * + COUNT( * ) AS col1
----
184

skipif mysql # not compatible
query I rowsort label-1284
SELECT + 51 / 58 + + 27 + 59 + - ( - 98 ) * + COUNT ( * ) AS col1
----
184

query I rowsort
SELECT - NULLIF ( + 72, + 37 ) AS col1
----
-72

query I rowsort
SELECT DISTINCT + - 28 * + + 55 + + 56 col1
----
-1484

query I rowsort
SELECT ALL 39 * - + 37 + - 57 AS col2
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT ALL + NULLIF ( + COUNT( * ), - + 61 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL + NULLIF ( + COUNT ( * ), - + 61 ) AS col0
----
1

query I rowsort
SELECT + 33 * 51 * - 15 + - 16 AS col1
----
-25261

query II rowsort
SELECT ALL + 26, 61 AS col0
----
26
61

query I rowsort
SELECT + 88 * + + 33
----
2904

onlyif mysql # DIV for integer division: 
query I rowsort label-1292
SELECT 47 DIV + 63 + - 50
----
-50

skipif mysql # not compatible
query I rowsort label-1292
SELECT 47 / + 63 + - 50
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1293
SELECT - 70 + - - 27 - - ( - 90 ) + - 10 + + - 56 - + NULLIF ( - COUNT( * ) + - 72, + 74 ) * COUNT( * ) * 60 DIV - 29
----
-350

skipif mysql # not compatible
query I rowsort label-1293
SELECT - 70 + - - 27 - - ( - 90 ) + - 10 + + - 56 - + NULLIF ( - COUNT ( * ) + - 72, + 74 ) * COUNT ( * ) * 60 / - 29
----
-350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1294
SELECT ALL COUNT( * ) * SUM( + - 91 ) - CAST( + ( - ( 17 ) ) AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL COUNT ( * ) * SUM ( + - 91 ) - CAST ( + ( - ( 17 ) ) AS INTEGER )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT 20 * + - 18 + COUNT( * )
----
-359

skipif mysql # not compatible
query I rowsort label-1295
SELECT 20 * + - 18 + COUNT ( * )
----
-359

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT + 58 * ( - MIN( + 91 ) )
----
-5278

skipif mysql # not compatible
query I rowsort label-1296
SELECT + 58 * ( - MIN ( + 91 ) )
----
-5278

query II rowsort
SELECT ALL + 61 AS col0, + 29 * - 26 AS col2
----
61
-754

query II rowsort
SELECT DISTINCT + 32 AS col0, 20 + - + 86 + - 59
----
32
-125

onlyif mysql # DIV for integer division: 
query I rowsort label-1299
SELECT + 0 * + + 79 * + + 29 + 49 DIV 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1299
SELECT + 0 * + + 79 * + + 29 + 49 / 51 AS col1
----
0

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

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

query I rowsort
SELECT - 92 * CASE - 94 WHEN ( ( 78 ) ) THEN 40 WHEN 25 THEN - 12 END
----
NULL

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

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

query I rowsort
SELECT - + 54 + 14 + - - 60 * + + 90 + 89 AS col2
----
5449

onlyif mysql # aggregate syntax: 
query II rowsort label-1304
SELECT ALL COUNT( * ) AS col0, 45 + COUNT( * )
----
1
46

skipif mysql # not compatible
query II rowsort label-1304
SELECT ALL COUNT ( * ) AS col0, 45 + COUNT ( * )
----
1
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT - - CASE 49 WHEN + - 53 * - - AVG ( - 42 ) - + COUNT( * ) THEN 65 * - 74 ELSE - 77 END + SUM( 10 )
----
-67

skipif mysql # not compatible
query I rowsort label-1305
SELECT - - CASE 49 WHEN + - 53 * - - AVG ( - 42 ) - + COUNT ( * ) THEN 65 * - 74 ELSE - 77 END + SUM ( 10 )
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1306
SELECT ALL + - 33 DIV + 18 + - + 58
----
-59

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL + - 33 / + 18 + - + 58
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1307
SELECT - - 36 + + 44 - + + COUNT( + CAST( + 55 AS SIGNED ) )
----
79

skipif mysql # not compatible
query I rowsort label-1307
SELECT - - 36 + + 44 - + + COUNT ( + CAST ( + 55 AS INTEGER ) )
----
79

query I rowsort
SELECT ALL - 24 + - ( 76 ) AS col1
----
-100

query I rowsort
SELECT - - 19 * 74 * - 98
----
-137788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1310
SELECT + 5 + - ( + - 33 ) + + + 73 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1310
SELECT + 5 + - ( + - 33 ) + + + 73 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - - ( 86 )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1312
SELECT + 18 + - + 6, MIN( DISTINCT + 86 ) AS col0
----
12
86

skipif mysql # not compatible
query II rowsort label-1312
SELECT + 18 + - + 6, MIN ( DISTINCT + 86 ) AS col0
----
12
86

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

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

query II rowsort
SELECT + 47, - 39 AS col0
----
47
-39

query I rowsort
SELECT DISTINCT + - 66 + + 82
----
16

query I rowsort
SELECT ALL 15 + - 92 AS col0
----
-77

query II rowsort
SELECT - 30, - 23 - 87 col2
----
-30
-110

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

skipif mysql # not compatible
query I rowsort label-1318
SELECT - SUM ( ALL - 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT ALL - 18 / - + 27 + + - CASE + 25 WHEN 82 THEN COUNT( * ) ELSE NULL END * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL - 18 / - + 27 + + - CASE + 25 WHEN 82 THEN COUNT ( * ) ELSE NULL END * 19
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - 23, 7 ) AS col0
----
-23

query I rowsort
SELECT + 91 * - - 11 - + 28 AS col2
----
973

query I rowsort
SELECT + 94 * 66 AS col1
----
6204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1323
SELECT + NULLIF ( + 91, + 49 + - CASE - SUM( + - 11 ) WHEN + COUNT( * ) THEN 98 END ) * MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT + NULLIF ( + 91, + 49 + - CASE - SUM ( + - 11 ) WHEN + COUNT ( * ) THEN 98 END ) * MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1324
SELECT DISTINCT 91 DIV - 72 - - - 21 + + 44 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT 91 / - 72 - - - 21 + + 44 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT ALL MIN( DISTINCT 85 ) * - + 21 + - - 34
----
-1751

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL MIN ( DISTINCT 85 ) * - + 21 + - - 34
----
-1751

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT ALL 28 * - + COALESCE ( + 97, 64, - MAX( - 54 ) )
----
-2716

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL 28 * - + COALESCE ( + 97, 64, - MAX ( - 54 ) )
----
-2716

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

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

query I rowsort
SELECT DISTINCT 99 * - - 44 * - 94
----
-409464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1329
SELECT ALL - 61 * + - 47 - + COALESCE ( - 31, - CAST( - 13 AS SIGNED ), + - 37 ) + - COUNT( * ) * COUNT( * ) DIV + 11 AS col0
----
2898

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL - 61 * + - 47 - + COALESCE ( - 31, - CAST ( - 13 AS INTEGER ), + - 37 ) + - COUNT ( * ) * COUNT ( * ) / + 11 AS col0
----
2898

onlyif mysql # DIV for integer division: 
query I rowsort label-1330
SELECT + 28 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-1330
SELECT + 28 / + 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT + 98 + - - COALESCE ( - 83, - COUNT( * ) ) + + 7 + - 6 * + - CASE ( - 38 ) WHEN - 7 + + 52 * + COUNT( * ) THEN NULL ELSE COUNT( * ) * - 94 END
----
-542

skipif mysql # not compatible
query I rowsort label-1331
SELECT + 98 + - - COALESCE ( - 83, - COUNT ( * ) ) + + 7 + - 6 * + - CASE ( - 38 ) WHEN - 7 + + 52 * + COUNT ( * ) THEN NULL ELSE COUNT ( * ) * - 94 END
----
-542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1332
SELECT CASE - + COUNT( * ) WHEN + 5 / - ( - + 10 ) THEN + 42 + CAST( - AVG ( - 24 ) AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT CASE - + COUNT ( * ) WHEN + 5 / - ( - + 10 ) THEN + 42 + CAST ( - AVG ( - 24 ) AS INTEGER ) END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1333
SELECT COALESCE ( + 81, + + 56 DIV + AVG ( + 64 ) * 47 + - 95 + + COUNT( * ) * + 24, COALESCE ( 54, MAX( + 37 ) * + MAX( - 49 ), 11 * - 97 ) )
----
81

skipif mysql # not compatible
query I rowsort label-1333
SELECT COALESCE ( + 81, + + 56 / + AVG ( + 64 ) * 47 + - 95 + + COUNT ( * ) * + 24, COALESCE ( 54, MAX ( + 37 ) * + MAX ( - 49 ), 11 * - 97 ) )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1334
SELECT - 74 * + + CAST( - 18 AS SIGNED ) * + CAST( 98 AS SIGNED ) AS col1, - COALESCE ( - 50, ( + 65 ), - 95 * COALESCE ( + NULLIF ( COUNT( * ), - 24 ) * + 52, 57 ) )
----
130536
50

skipif mysql # not compatible
query II rowsort label-1334
SELECT - 74 * + + CAST ( - 18 AS INTEGER ) * + CAST ( 98 AS INTEGER ) AS col1, - COALESCE ( - 50, ( + 65 ), - 95 * COALESCE ( + NULLIF ( COUNT ( * ), - 24 ) * + 52, 57 ) )
----
130536
50

onlyif mysql # aggregate syntax: 
query II rowsort label-1335
SELECT ALL MIN( + 61 ), + 23 AS col1
----
61
23

skipif mysql # not compatible
query II rowsort label-1335
SELECT ALL MIN ( + 61 ), + 23 AS col1
----
61
23

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

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

query I rowsort
SELECT - 89 * - NULLIF ( 11, 87 * - 91 )
----
979

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

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

query I rowsort
SELECT - 7 + + 4 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1340
SELECT DISTINCT 21 + + - ( - CAST( NULL AS DECIMAL ) ), + ( 89 ) * COUNT( * ) DIV 40 AS col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-1340
SELECT DISTINCT 21 + + - ( - CAST ( NULL AS REAL ) ), + ( 89 ) * COUNT ( * ) / 40 AS col0
----
NULL
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1341
SELECT DISTINCT - 76 + - 17 AS col1, 46 * - + CAST( NULL AS DECIMAL )
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-1341
SELECT DISTINCT - 76 + - 17 AS col1, 46 * - + CAST ( NULL AS REAL )
----
-93
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1342
SELECT - ( - 12 ) AS col0, + CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col0
----
12
NULL

skipif mysql # not compatible
query II rowsort label-1342
SELECT - ( - 12 ) AS col0, + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col0
----
12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT ALL - - 76 + COALESCE ( NULLIF ( - - 2, + - 42 ), - 62 * - - 13 * MAX( 95 * 43 ) + COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL - - 76 + COALESCE ( NULLIF ( - - 2, + - 42 ), - 62 * - - 13 * MAX ( 95 * 43 ) + COUNT ( * ) )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL + - 80 + + SUM( DISTINCT + 78 ) * + 82
----
6316

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL + - 80 + + SUM ( DISTINCT + 78 ) * + 82
----
6316

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

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

query I rowsort
SELECT - 35 + 94 * 64 * + 59 AS col0
----
354909

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT 17 - + 51 + - COALESCE ( 68, + 11 + - 9 + - 98 + - 76, + 76 * - 26, COALESCE ( - 75, 37, COALESCE ( - ( 63 ), - ( ( - COUNT( * ) ) ) ) - 88 ), 78 )
----
-102

skipif mysql # not compatible
query I rowsort label-1347
SELECT 17 - + 51 + - COALESCE ( 68, + 11 + - 9 + - 98 + - 76, + 76 * - 26, COALESCE ( - 75, 37, COALESCE ( - ( 63 ), - ( ( - COUNT ( * ) ) ) ) - 88 ), 78 )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT COALESCE ( + 0, + 35, - MIN( ALL - 5 ) ) - - 31
----
31

skipif mysql # not compatible
query I rowsort label-1348
SELECT COALESCE ( + 0, + 35, - MIN ( ALL - 5 ) ) - - 31
----
31

query II rowsort
SELECT ALL + 47 - + ( - 12 ) * + 63 - ( - - 80 ) AS col0, - 98
----
723
-98

query I rowsort
SELECT 75 + + ( 75 ) * + + 20 + - - 37 AS col2
----
1612

query II rowsort
SELECT ALL - 26 AS col0, 20 AS col1
----
-26
20

query II rowsort
SELECT ALL - 65, + 94 AS col1
----
-65
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1353
SELECT ALL + 84 * + + CAST( + 22 AS SIGNED ) col1
----
1848

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL + 84 * + + CAST ( + 22 AS INTEGER ) col1
----
1848

query I rowsort
SELECT DISTINCT + 75 * - 79 col1
----
-5925

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ALL - ( + CASE COUNT( * ) WHEN ( - COUNT( * ) ) + + + 5 THEN - CASE - 45 WHEN 30 THEN 14 + 10 WHEN - COALESCE ( + CASE NULLIF ( 96, + 97 ) WHEN - MAX( + 6 ) THEN 40 ELSE 99 + 84 * - 62 END, 90 * MAX( DISTINCT 81 * ( 40 * + 41 ) ), - NULLIF ( 4, + 50 + + 77 ) + + 12 * 69 ) THEN 89 WHEN COUNT( * ) * 28 THEN NULL ELSE - ( + 78 ) * ( + 55 + 7 * + ( COALESCE ( 99, ( 15 ) ) ) ) END + COUNT( * ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL - ( + CASE COUNT ( * ) WHEN ( - COUNT ( * ) ) + + + 5 THEN - CASE - 45 WHEN 30 THEN 14 + 10 WHEN - COALESCE ( + CASE NULLIF ( 96, + 97 ) WHEN - MAX ( + 6 ) THEN 40 ELSE 99 + 84 * - 62 END, 90 * MAX ( DISTINCT 81 * ( 40 * + 41 ) ), - NULLIF ( 4, + 50 + + 77 ) + + 12 * 69 ) THEN 89 WHEN COUNT ( * ) * 28 THEN NULL ELSE - ( + 78 ) * ( + 55 + 7 * + ( COALESCE ( 99, ( 15 ) ) ) ) END + COUNT ( * ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1356
SELECT COUNT( * ) DIV 37 * - - 26 + 68 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-1356
SELECT COUNT ( * ) / 37 * - - 26 + 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT ( MAX( + - ( - + 16 ) ) ) + + 54 * - 3
----
-146

skipif mysql # not compatible
query I rowsort label-1357
SELECT ( MAX ( + - ( - + 16 ) ) ) + + 54 * - 3
----
-146

query II rowsort
SELECT + 86, 51 AS col0
----
86
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1359
SELECT CAST( + + 24 AS SIGNED ) DIV - 58 AS col2, - 69
----
0
-69

skipif mysql # not compatible
query II rowsort label-1359
SELECT CAST ( + + 24 AS INTEGER ) / - 58 AS col2, - 69
----
0
-69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT ALL - MIN( DISTINCT - 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL - MIN ( DISTINCT - 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT ALL + 60 + + + 92 * - COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL + 60 + + + 92 * - COUNT ( * ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT + 28 * - - CASE + - COUNT( * ) WHEN + COUNT( * ) THEN + 45 * + 86 * - - 4 + 22 WHEN ( NULLIF ( + COUNT( * ), 59 * 72 ) ) THEN + 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1363
SELECT + 28 * - - CASE + - COUNT ( * ) WHEN + COUNT ( * ) THEN + 45 * + 86 * - - 4 + 22 WHEN ( NULLIF ( + COUNT ( * ), 59 * 72 ) ) THEN + 95 END AS col0
----
NULL

query I rowsort
SELECT ALL + 49 * + 7
----
343

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1365
SELECT 14 DIV + 65 * 66 * 89 col2, COUNT( * ) * - COALESCE ( 1, - 9 ) DIV 24 - 83 * - 48 AS col1
----
0
3984

skipif mysql # not compatible
query II rowsort label-1365
SELECT 14 / + 65 * 66 * 89 col2, COUNT ( * ) * - COALESCE ( 1, - 9 ) / 24 - 83 * - 48 AS col1
----
0
3984

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

skipif mysql # not compatible
query II rowsort label-1366
SELECT - 85 AS col1, CAST ( + 36 AS INTEGER )
----
-85
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL 25 + - - NULLIF ( + ( SUM( 47 ) ), 69 * - - COUNT( + + 94 ) + + 99 * - 60 ) * COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL 25 + - - NULLIF ( + ( SUM ( 47 ) ), 69 * - - COUNT ( + + 94 ) + + 99 * - 60 ) * COUNT ( * ) AS col1
----
72

query II rowsort
SELECT + - 6 AS col1, + 55 AS col0
----
-6
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1369
SELECT + COALESCE ( 92, 86 * + COUNT( * ) ) DIV 16 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-1369
SELECT + COALESCE ( 92, 86 * + COUNT ( * ) ) / 16 / 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1370
SELECT - 8 * - MIN( DISTINCT 38 ) + - COUNT( * ) - 79 * - ( - CAST( 74 AS SIGNED ) ) * - 4 * 69 AS col0
----
1613799

skipif mysql # not compatible
query I rowsort label-1370
SELECT - 8 * - MIN ( DISTINCT 38 ) + - COUNT ( * ) - 79 * - ( - CAST ( 74 AS INTEGER ) ) * - 4 * 69 AS col0
----
1613799

query II rowsort
SELECT - + 83 AS col1, ( - + 25 )
----
-83
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT - - MAX( 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1372
SELECT - - MAX ( 19 ) AS col0
----
19

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

query I rowsort
SELECT 16 + 47
----
63

query I rowsort
SELECT - 53 + + 47
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1376
SELECT - CAST( - - 38 AS SIGNED ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1376
SELECT - CAST ( - - 38 AS INTEGER ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT ALL + 92 * + 94 * + 45 + - COUNT( * ) AS col2
----
389159

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL + 92 * + 94 * + 45 + - COUNT ( * ) AS col2
----
389159

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT DISTINCT 55 - - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT 55 - - COUNT ( * )
----
56

query I rowsort
SELECT - NULLIF ( 58, - COALESCE ( - 50, + + 12 ) + - + 10 ) + 46
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT + 3 + - CASE + + 24 WHEN - 60 THEN + + 65 WHEN + - 97 + + 14 THEN - 36 WHEN - 28 * 56 THEN NULLIF ( - COUNT( ALL + 26 ), + 35 - 73 ) ELSE + 69 END * + COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1380
SELECT + 3 + - CASE + + 24 WHEN - 60 THEN + + 65 WHEN + - 97 + + 14 THEN - 36 WHEN - 28 * 56 THEN NULLIF ( - COUNT ( ALL + 26 ), + 35 - 73 ) ELSE + 69 END * + COUNT ( * ) AS col1
----
-66

query II rowsort
SELECT ALL + 61 * - 59 AS col2, - 65 AS col2
----
-3599
-65

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

skipif mysql # not compatible
query I rowsort label-1382
SELECT CAST ( + ( 64 ) AS INTEGER ) * - + 29
----
-1856

onlyif mysql # DIV for integer division: 
query II rowsort label-1383
SELECT 94 DIV + 26 AS col1, 81 AS col0
----
3
81

skipif mysql # not compatible
query II rowsort label-1383
SELECT 94 / + 26 AS col1, 81 AS col0
----
3
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1384
SELECT ALL 23 * + - 90 AS col2, + COUNT( * )
----
-2070
1

skipif mysql # not compatible
query II rowsort label-1384
SELECT ALL 23 * + - 90 AS col2, + COUNT ( * )
----
-2070
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1385
SELECT ALL - COUNT( * ) DIV + 10 AS col1, - 19 * - 32
----
0
608

skipif mysql # not compatible
query II rowsort label-1385
SELECT ALL - COUNT ( * ) / + 10 AS col1, - 19 * - 32
----
0
608

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT 16 * COALESCE ( - - 27, + 68 * + + 57, - + COUNT( * ), COUNT( * ) )
----
432

skipif mysql # not compatible
query I rowsort label-1386
SELECT 16 * COALESCE ( - - 27, + 68 * + + 57, - + COUNT ( * ), COUNT ( * ) )
----
432

onlyif mysql # DIV for integer division: 
query II rowsort label-1387
SELECT ALL - 16 DIV - - 71 * - - 37 * - 46 * - 84 * ( 91 ), 55 AS col2
----
0
55

skipif mysql # not compatible
query II rowsort label-1387
SELECT ALL - 16 / - - 71 * - - 37 * - 46 * - 84 * ( 91 ), 55 AS col2
----
0
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT ALL - CASE + - SUM( + - 42 ) WHEN + - 71 / - 10 THEN NULL WHEN + - CASE 37 WHEN ( + COUNT( * ) ) THEN 10 * 28 ELSE NULL END * + 12 THEN - 15 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL - CASE + - SUM ( + - 42 ) WHEN + - 71 / - 10 THEN NULL WHEN + - CASE 37 WHEN ( + COUNT ( * ) ) THEN 10 * 28 ELSE NULL END * + 12 THEN - 15 END col0
----
NULL

query I rowsort
SELECT 45 * - 81 * - 52 col1
----
189540

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL - 96 * - + 51 + COUNT( * )
----
4897

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL - 96 * - + 51 + COUNT ( * )
----
4897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1391
SELECT 25 - CASE + 32 WHEN - - CAST( NULL AS SIGNED ) THEN CAST( + COUNT( * ) AS SIGNED ) END + + AVG ( + 97 ) * + 91 / COALESCE ( 1, - AVG ( - 95 ) + - 10 ) + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1391
SELECT 25 - CASE + 32 WHEN - - CAST ( NULL AS INTEGER ) THEN CAST ( + COUNT ( * ) AS INTEGER ) END + + AVG ( + 97 ) * + 91 / COALESCE ( 1, - AVG ( - 95 ) + - 10 ) + + 81
----
NULL

query I rowsort
SELECT DISTINCT + ( 46 ) * 71
----
3266

onlyif mysql # aggregate syntax: 
query II rowsort label-1393
SELECT ALL + COUNT( * ) + 57, + 77 + 83 AS col1
----
58
160

skipif mysql # not compatible
query II rowsort label-1393
SELECT ALL + COUNT ( * ) + 57, + 77 + 83 AS col1
----
58
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1394
SELECT ALL - + 26 + + 80 + 98 + - 58 * + - CAST( NULL AS SIGNED ) * 42 * 96 - - 52 * MIN( + 97 ) * SUM( ALL + 18 * - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL - + 26 + + 80 + 98 + - 58 * + - CAST ( NULL AS INTEGER ) * 42 * 96 - - 52 * MIN ( + 97 ) * SUM ( ALL + 18 * - 41 )
----
NULL

query I rowsort
SELECT - 18 * 88 + + 20 AS col2
----
-1564

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT + CASE - 44 WHEN - - 55 THEN NULL WHEN + 8 / - - 82 THEN - + COUNT( * ) ELSE + 23 END AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1396
SELECT + CASE - 44 WHEN - - 55 THEN NULL WHEN + 8 / - - 82 THEN - + COUNT ( * ) ELSE + 23 END AS col1
----
23

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

skipif mysql # not compatible
query I rowsort label-1397
SELECT CAST ( NULL AS INTEGER ) * + 81 + + + 89
----
NULL

query II rowsort
SELECT 21 - + 98 AS col0, 97 AS col0
----
-77
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT ALL + MAX( - 41 ) - 21 - 6 + + COALESCE ( - COUNT( * ), - - 67 * COUNT( * ), COUNT( * ) )
----
-69

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL + MAX ( - 41 ) - 21 - 6 + + COALESCE ( - COUNT ( * ), - - 67 * COUNT ( * ), COUNT ( * ) )
----
-69

query I rowsort
SELECT - + 82 + - NULLIF ( 35, 43 + + + ( 60 ) ) + + 57
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1402
SELECT ALL - - CAST( NULL AS DECIMAL ) / - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL - - CAST ( NULL AS REAL ) / - 86
----
NULL

query II rowsort
SELECT + 42 + 97, 84 + + 29 AS col0
----
139
113

onlyif mysql # DIV for integer division: 
query I rowsort label-1404
SELECT ALL - - 46 - + 61 DIV 60 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL - - 46 - + 61 / 60 AS col2
----
45

query II rowsort
SELECT - - 5 + + 62 AS col1, - 66 AS col1
----
67
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT - 8 * + 45 * + COUNT( * ) AS col2
----
-360

skipif mysql # not compatible
query I rowsort label-1406
SELECT - 8 * + 45 * + COUNT ( * ) AS col2
----
-360

query I rowsort
SELECT ALL + 35 * 15 + + 5
----
530

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT + CASE - CASE - + 50 WHEN - 71 + + COUNT( * ) THEN - 48 WHEN + 43 THEN NULL WHEN COUNT( * ) * + NULLIF ( - 31, + COUNT( * ) * 58 ) THEN NULL END WHEN + 33 + + 38 THEN + ( + MAX( DISTINCT - 40 ) ) + - 41 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1408
SELECT + CASE - CASE - + 50 WHEN - 71 + + COUNT ( * ) THEN - 48 WHEN + 43 THEN NULL WHEN COUNT ( * ) * + NULLIF ( - 31, + COUNT ( * ) * 58 ) THEN NULL END WHEN + 33 + + 38 THEN + ( + MAX ( DISTINCT - 40 ) ) + - 41 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + + 66 + - - 50
----
116

query I rowsort
SELECT + - 55 * 83 * + - 20
----
91300

query I rowsort
SELECT + - 50 * - 13 AS col0
----
650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1412
SELECT + CAST( NULL AS SIGNED ) * - NULLIF ( + 62, + 57 * + + CAST( 24 AS SIGNED ) + ( SUM( - + 85 ) ) + - CAST( NULL AS SIGNED ) * + 29 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT + CAST ( NULL AS INTEGER ) * - NULLIF ( + 62, + 57 * + + CAST ( 24 AS INTEGER ) + ( SUM ( - + 85 ) ) + - CAST ( NULL AS INTEGER ) * + 29 ) AS col1
----
NULL

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

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

query I rowsort
SELECT + 11 * - - 25
----
275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1415
SELECT + CASE + 39 WHEN - COUNT( * ) THEN 48 + + 98 * - 76 * - - 77 WHEN - - 19 + COUNT( * ) THEN + 1 DIV 21 ELSE + 52 + + NULLIF ( - 91, + ( CAST( SUM( 73 ) AS SIGNED ) ) ) END + 17 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1415
SELECT + CASE + 39 WHEN - COUNT ( * ) THEN 48 + + 98 * - 76 * - - 77 WHEN - - 19 + COUNT ( * ) THEN + 1 / 21 ELSE + 52 + + NULLIF ( - 91, + ( CAST ( SUM ( 73 ) AS INTEGER ) ) ) END + 17 AS col2
----
-22

query I rowsort
SELECT + 5 - - + 15
----
20

query I rowsort
SELECT ALL 70 * + 58
----
4060

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT + 75 + 28 DIV 85 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1418
SELECT + 75 + 28 / 85 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT - 81 - + MIN( ALL - 71 ) * - COUNT( 65 ) + - - 15 AS col1
----
-137

skipif mysql # not compatible
query I rowsort label-1419
SELECT - 81 - + MIN ( ALL - 71 ) * - COUNT ( 65 ) + - - 15 AS col1
----
-137

onlyif mysql # DIV for integer division: 
query II rowsort label-1420
SELECT 15 AS col2, 89 DIV - + 27 + 24 AS col1
----
15
21

skipif mysql # not compatible
query II rowsort label-1420
SELECT 15 AS col2, 89 / - + 27 + 24 AS col1
----
15
21

query I rowsort
SELECT + 69 + 31 col2
----
100

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

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

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

query I rowsort
SELECT DISTINCT + 8 * 51 + 28 - 96
----
340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1425
SELECT ALL + ( COALESCE ( - 15, + 57 + - SUM( - - 86 ) - + 10 DIV - COUNT( * ) * - 88 * COUNT( * ) * 19 ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL + ( COALESCE ( - 15, + 57 + - SUM ( - - 86 ) - + 10 / - COUNT ( * ) * - 88 * COUNT ( * ) * 19 ) ) AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-1426
SELECT ALL - 67 DIV + ( 70 )
----
0

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL - 67 / + ( 70 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT DISTINCT + CASE SUM( - 57 ) WHEN 9 * COUNT( - 11 ) THEN NULL ELSE + + 87 * + 53 - + + 92 * - - NULLIF ( + 49, 69 * 8 ) + 33 END
----
136

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT + CASE SUM ( - 57 ) WHEN 9 * COUNT ( - 11 ) THEN NULL ELSE + + 87 * + 53 - + + 92 * - - NULLIF ( + 49, 69 * 8 ) + 33 END
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT + 69 * + 44 + - + 43 + + + COUNT( DISTINCT 89 ) + 0
----
2994

skipif mysql # not compatible
query I rowsort label-1428
SELECT + 69 * + 44 + - + 43 + + + COUNT ( DISTINCT 89 ) + 0
----
2994

query I rowsort
SELECT ALL + CASE 72 WHEN ( - - 11 ) * + 82 - - 72 + + 5 THEN + 28 WHEN 33 + + 11 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1430
SELECT + + COUNT( ALL + NULLIF ( - 66, 18 ) ) DIV + 80 AS col1, + CASE WHEN NOT + AVG ( - 2 ) IS NULL THEN + 65 END - 24 * 86 AS col2
----
0
-1999

skipif mysql # not compatible
query II rowsort label-1430
SELECT + + COUNT ( ALL + NULLIF ( - 66, 18 ) ) / + 80 AS col1, + CASE WHEN NOT + AVG ( - 2 ) IS NULL THEN + 65 END - 24 * 86 AS col2
----
0
-1999

query I rowsort
SELECT - 86 * + + ( - 24 )
----
2064

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

query I rowsort
SELECT - - 97 + 10 AS col1
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1434
SELECT ALL 98 * - + AVG ( DISTINCT + 63 ) * + 80 * - 11 + - - 82 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL 98 * - + AVG ( DISTINCT + 63 ) * + 80 * - 11 + - - 82 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT DISTINCT - 58 * COUNT( * ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT - 58 * COUNT ( * ) AS col1
----
-58

query I rowsort
SELECT DISTINCT - 47 * 82
----
-3854

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1438
SELECT ALL - 14 * + - COUNT( * ) + - - 15 AS col0, - 26 + + COUNT( * ) + ( + 69 ) AS col2
----
29
44

skipif mysql # not compatible
query II rowsort label-1438
SELECT ALL - 14 * + - COUNT ( * ) + - - 15 AS col0, - 26 + + COUNT ( * ) + ( + 69 ) AS col2
----
29
44

query I rowsort
SELECT - - 70 * 38
----
2660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1440
SELECT - 2 * + CAST( NULL AS SIGNED ) + + COALESCE ( - - ( - 54 ), + - 74 * - - 29 + + + COUNT( * ) ) AS col0, + 65 + - CAST( 62 AS SIGNED ) * COUNT( * ) AS col2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1440
SELECT - 2 * + CAST ( NULL AS INTEGER ) + + COALESCE ( - - ( - 54 ), + - 74 * - - 29 + + + COUNT ( * ) ) AS col0, + 65 + - CAST ( 62 AS INTEGER ) * COUNT ( * ) AS col2
----
NULL
3

query I rowsort
SELECT + 71 + - 14 * + 42 + + 69
----
-448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1442
SELECT + 78 AS col2, ( - CAST( + + AVG ( - - 13 ) AS SIGNED ) ) * ( + - 80 ) AS col0
----
78
1040

skipif mysql # not compatible
query II rowsort label-1442
SELECT + 78 AS col2, ( - CAST ( + + AVG ( - - 13 ) AS INTEGER ) ) * ( + - 80 ) AS col0
----
78
1040

query I rowsort
SELECT - 29 * - 1 * 42 * 32
----
38976

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT - + 93 + COUNT( - 29 )
----
-92

skipif mysql # not compatible
query I rowsort label-1444
SELECT - + 93 + COUNT ( - 29 )
----
-92

query I rowsort
SELECT DISTINCT + 82 * + + 26
----
2132

onlyif mysql # DIV for integer division: 
query I rowsort label-1446
SELECT DISTINCT - 43 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT - 43 / + 65
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1448
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 92 * 92 * - 87 AS col0, 89 + + MIN( 39 )
----
NULL
-736368
128

skipif mysql # not compatible
query III rowsort label-1448
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 92 * 92 * - 87 AS col0, 89 + + MIN ( 39 )
----
NULL
-736368
128

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

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

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

skipif mysql # not compatible
query II rowsort label-1450
SELECT - COUNT ( * ) AS col2, + 78
----
-1
78

query I rowsort
SELECT + 5 + 91 AS col2
----
96

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

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT 11 * - + COUNT ( * ) AS col0
----
-11

query I rowsort
SELECT DISTINCT 29 + + - 23 col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1454
SELECT + 58 + - CASE NULLIF ( + 20, - 19 ) WHEN + 10 * - + CASE 40 WHEN COUNT( * ) * + - 6 THEN - 14 WHEN 17 + 89 THEN - 91 + 3 WHEN 21 THEN 72 WHEN + COALESCE ( - 44, 61 ) THEN 13 * - CAST( NULL AS SIGNED ) + - 70 ELSE 21 END * - 57 + 8 THEN + 56 - + 46 WHEN - 4 THEN 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT + 58 + - CASE NULLIF ( + 20, - 19 ) WHEN + 10 * - + CASE 40 WHEN COUNT ( * ) * + - 6 THEN - 14 WHEN 17 + 89 THEN - 91 + 3 WHEN 21 THEN 72 WHEN + COALESCE ( - 44, 61 ) THEN 13 * - CAST ( NULL AS INTEGER ) + - 70 ELSE 21 END * - 57 + 8 THEN + 56 - + 46 WHEN - 4 THEN 62 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 64 + + + 80 - + ( - - 7 ) - - - 69
----
68

query I rowsort
SELECT ALL + 99 + - - 42
----
141

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

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT 99 + - COUNT ( * ) AS col1
----
98

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

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

query I rowsort
SELECT ALL 28 + - + 59 col1
----
-31

query I rowsort
SELECT DISTINCT 51 + - 7
----
44

onlyif mysql # DIV for integer division: 
query II rowsort label-1461
SELECT DISTINCT 63 + - 22 + - 74 * + - 37, 3 DIV 64 AS col0
----
2779
0

skipif mysql # not compatible
query II rowsort label-1461
SELECT DISTINCT 63 + - 22 + - 74 * + - 37, 3 / 64 AS col0
----
2779
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT 63 * + NULLIF ( + CASE MAX( - 28 ) WHEN + 21 THEN 36 ELSE 39 + + NULLIF ( - 61, - 8 / + ( - COUNT( * ) ) ) * 54 END, 95 ) - 8
----
-205073

skipif mysql # not compatible
query I rowsort label-1462
SELECT 63 * + NULLIF ( + CASE MAX ( - 28 ) WHEN + 21 THEN 36 ELSE 39 + + NULLIF ( - 61, - 8 / + ( - COUNT ( * ) ) ) * 54 END, 95 ) - 8
----
-205073

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT ALL COUNT( + 65 ) * + NULLIF ( - 74, 42 )
----
-74

skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL COUNT ( + 65 ) * + NULLIF ( - 74, 42 )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1464
SELECT - 4 DIV COALESCE ( - 66, + - COUNT( * ) DIV 89 + - 83 ) + + 8 DIV + + 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1464
SELECT - 4 / COALESCE ( - 66, + - COUNT ( * ) / 89 + - 83 ) + + 8 / + + 45 AS col0
----
0

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

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

query I rowsort
SELECT + 83 * - 84
----
-6972

query I rowsort
SELECT ALL - 10 * 3
----
-30

query I rowsort
SELECT DISTINCT 71 * + - 26 * 40
----
-73840

onlyif mysql # aggregate syntax: 
query II rowsort label-1469
SELECT DISTINCT - 12 AS col0, MIN( DISTINCT + 54 ) AS col2
----
-12
54

skipif mysql # not compatible
query II rowsort label-1469
SELECT DISTINCT - 12 AS col0, MIN ( DISTINCT + 54 ) AS col2
----
-12
54

query I rowsort
SELECT ALL - 60 - - + 76 * - 82
----
-6292

query I rowsort
SELECT + 20 * 5
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT DISTINCT + - 21 DIV + 5
----
-4

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT + - 21 / + 5
----
-4

query II rowsort
SELECT ALL - - 3 AS col0, - ( - 40 ) AS col1
----
3
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1474
SELECT ALL + + 54 / - + CASE - 19 WHEN - COUNT( * ) THEN ( 0 ) ELSE - + 99 / - 62 - CAST( NULL AS SIGNED ) + 20 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL + + 54 / - + CASE - 19 WHEN - COUNT ( * ) THEN ( 0 ) ELSE - + 99 / - 62 - CAST ( NULL AS INTEGER ) + 20 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1475
SELECT 30 * + CAST( 76 AS SIGNED ) * + - 62 + - - 41 AS col1
----
-141319

skipif mysql # not compatible
query I rowsort label-1475
SELECT 30 * + CAST ( 76 AS INTEGER ) * + - 62 + - - 41 AS col1
----
-141319

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

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

query I rowsort
SELECT 40 * CASE + ( ( - 7 ) ) WHEN + 15 * - 41 THEN - - NULLIF ( + ( - - 93 ), - 27 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1478
SELECT ALL + - 79 * - + 93 AS col1, 95 + 76 * - 22 * + + CAST( 45 AS SIGNED ) AS col1
----
7347
-75145

skipif mysql # not compatible
query II rowsort label-1478
SELECT ALL + - 79 * - + 93 AS col1, 95 + 76 * - 22 * + + CAST ( 45 AS INTEGER ) AS col1
----
7347
-75145

onlyif mysql # aggregate syntax: 
query II rowsort label-1479
SELECT DISTINCT - - 87 AS col0, CASE - 74 WHEN ( - - COUNT( - 85 ) ) + - CASE 65 WHEN 60 * 15 THEN 82 + - 77 WHEN 69 THEN NULL END / 78 THEN CASE + 32 WHEN 19 * 31 THEN + 92 ELSE 31 + COUNT( * ) END - 61 ELSE - 21 + - 93 END * 15
----
87
-1710

skipif mysql # not compatible
query II rowsort label-1479
SELECT DISTINCT - - 87 AS col0, CASE - 74 WHEN ( - - COUNT ( - 85 ) ) + - CASE 65 WHEN 60 * 15 THEN 82 + - 77 WHEN 69 THEN NULL END / 78 THEN CASE + 32 WHEN 19 * 31 THEN + 92 ELSE 31 + COUNT ( * ) END - 61 ELSE - 21 + - 93 END * 15
----
87
-1710

onlyif mysql # aggregate syntax: 
query II rowsort label-1480
SELECT 32 + - COUNT( * ), + 57 AS col1
----
31
57

skipif mysql # not compatible
query II rowsort label-1480
SELECT 32 + - COUNT ( * ), + 57 AS col1
----
31
57

onlyif mysql # aggregate syntax: 
query II rowsort label-1481
SELECT ALL - - COUNT( DISTINCT + - 78 ) * 98 * + 4, + ( COUNT( * ) ) * - 83 + + 92 + + - 8 * - 55 + - 45 AS col1
----
392
404

skipif mysql # not compatible
query II rowsort label-1481
SELECT ALL - - COUNT ( DISTINCT + - 78 ) * 98 * + 4, + ( COUNT ( * ) ) * - 83 + + 92 + + - 8 * - 55 + - 45 AS col1
----
392
404

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT ALL - - 49 + + - 56 * + COUNT( * ) * 41
----
-2247

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL - - 49 + + - 56 * + COUNT ( * ) * 41
----
-2247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1483
SELECT DISTINCT - COALESCE ( - ( + - CAST( NULL AS SIGNED ) ), 40 ) + - 54
----
-94

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT - COALESCE ( - ( + - CAST ( NULL AS INTEGER ) ), 40 ) + - 54
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1484
SELECT 0 + COUNT( * ) + - + COALESCE ( - 71, - + ( - - CAST( 8 AS SIGNED ) ), + CAST( NULL AS SIGNED ) ) + - + 40 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1484
SELECT 0 + COUNT ( * ) + - + COALESCE ( - 71, - + ( - - CAST ( 8 AS INTEGER ) ), + CAST ( NULL AS INTEGER ) ) + - + 40 AS col1
----
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT 16 - - - 89 * COUNT( + 81 )
----
-73

skipif mysql # not compatible
query I rowsort label-1486
SELECT 16 - - - 89 * COUNT ( + 81 )
----
-73

query I rowsort
SELECT 28 * + 46 AS col2
----
1288

query I rowsort
SELECT ALL ( + - 76 ) * - ( - 43 ) * + 35
----
-114380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1489
SELECT 35 + - + 9 + + + 36 * + - 64 + + + COUNT( * ) + + 30 + - 21 DIV - 67 AS col0
----
-2247

skipif mysql # not compatible
query I rowsort label-1489
SELECT 35 + - + 9 + + + 36 * + - 64 + + + COUNT ( * ) + + 30 + - 21 / - 67 AS col0
----
-2247

query I rowsort
SELECT ALL + 94 + 8
----
102

query I rowsort
SELECT DISTINCT 51 * 59
----
3009

query I rowsort
SELECT ALL 10 + + - 59
----
-49

query I rowsort
SELECT 18 * - 26
----
-468

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1494
SELECT 25 + + COUNT( * ), 25 * + MAX( 26 ) DIV ( + COUNT( * ) ) * + 63 + 87 * - + 18 AS col1
----
26
39384

skipif mysql # not compatible
query II rowsort label-1494
SELECT 25 + + COUNT ( * ), 25 * + MAX ( 26 ) / ( + COUNT ( * ) ) * + 63 + 87 * - + 18 AS col1
----
26
39384

query I rowsort
SELECT ALL - NULLIF ( 14, - 41 ) * + - 91
----
1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1496
SELECT 70 + 10, 85 - + + CAST( + MAX( 52 ) AS SIGNED ) DIV 86 + + ( 20 ) AS col2
----
80
105

skipif mysql # not compatible
query II rowsort label-1496
SELECT 70 + 10, 85 - + + CAST ( + MAX ( 52 ) AS INTEGER ) / 86 + + ( 20 ) AS col2
----
80
105

onlyif mysql # DIV for integer division: 
query II rowsort label-1497
SELECT ALL 74 - - 1 + - + 94 DIV + - 41 + 77 * - 68 * - 27, - 13 AS col2
----
141449
-13

skipif mysql # not compatible
query II rowsort label-1497
SELECT ALL 74 - - 1 + - + 94 / + - 41 + 77 * - 68 * - 27, - 13 AS col2
----
141449
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ( - 43 ) + + - MIN( - NULLIF ( + 53, - 48 ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1498
SELECT ( - 43 ) + + - MIN ( - NULLIF ( + 53, - 48 ) ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1499
SELECT ALL - - COALESCE ( + + 8, - 30, + 84 + + 41 + - COUNT( * ) DIV + 96 )
----
8

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL - - COALESCE ( + + 8, - 30, + 84 + + 41 + - COUNT ( * ) / + 96 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1500
SELECT + CASE - NULLIF ( - 17, COUNT( * ) ) WHEN + 82 THEN - 45 WHEN 17 THEN + + 11 + + + 48 ELSE + - 88 * COUNT( * ) - 87 + - 99 DIV - 92 END + 77 col1
----
136

skipif mysql # not compatible
query I rowsort label-1500
SELECT + CASE - NULLIF ( - 17, COUNT ( * ) ) WHEN + 82 THEN - 45 WHEN 17 THEN + + 11 + + + 48 ELSE + - 88 * COUNT ( * ) - 87 + - 99 / - 92 END + 77 col1
----
136

query I rowsort
SELECT + - 72 * + + 5 * - - 51 + 22 AS col2
----
-18338

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT DISTINCT - CASE 34 WHEN - MIN( ALL 63 ) THEN NULL WHEN + 3 + + 30 + + + NULLIF ( - ( - AVG ( DISTINCT - 13 ) ), 35 * + 91 + + 21 ) THEN NULL ELSE + ( + 45 ) END col2
----
-45

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT - CASE 34 WHEN - MIN ( ALL 63 ) THEN NULL WHEN + 3 + + 30 + + + NULLIF ( - ( - AVG ( DISTINCT - 13 ) ), 35 * + 91 + + 21 ) THEN NULL ELSE + ( + 45 ) END col2
----
-45

query I rowsort
SELECT ALL - - ( 8 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT 28 * COUNT( * ) + - ( SUM( ALL 32 ) ) - 33 + - 81 * - - ( + 88 ) col2
----
-7165

skipif mysql # not compatible
query I rowsort label-1504
SELECT 28 * COUNT ( * ) + - ( SUM ( ALL 32 ) ) - 33 + - 81 * - - ( + 88 ) col2
----
-7165

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT DISTINCT 5 * + + NULLIF ( + 22, + 32 * - - 69 / 25 + + 72 + - SUM( ALL 88 ) )
----
110

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT 5 * + + NULLIF ( + 22, + 32 * - - 69 / 25 + + 72 + - SUM ( ALL 88 ) )
----
110

query I rowsort
SELECT - 44 + - 29 + + 49
----
-24

query I rowsort
SELECT ALL + 48 * + 29
----
1392

onlyif mysql # aggregate syntax: 
query II rowsort label-1508
SELECT + 53 * + 37 AS col1, COUNT( * )
----
1961
1

skipif mysql # not compatible
query II rowsort label-1508
SELECT + 53 * + 37 AS col1, COUNT ( * )
----
1961
1

query I rowsort
SELECT DISTINCT 32 * 3 + - 63 + - 33
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1510
SELECT - 18 * + 44 DIV - COUNT( * ) + + 13 - - - 75 DIV - 94 * + ( + + NULLIF ( 83, 4 ) ) * - 48 * + COUNT( * ) * - 27 - 53 * - COUNT( * ) AS col2
----
858

skipif mysql # not compatible
query I rowsort label-1510
SELECT - 18 * + 44 / - COUNT ( * ) + + 13 - - - 75 / - 94 * + ( + + NULLIF ( 83, 4 ) ) * - 48 * + COUNT ( * ) * - 27 - 53 * - COUNT ( * ) AS col2
----
858

query I rowsort
SELECT DISTINCT - + ( + NULLIF ( + + 65, + 49 ) ) + - - 4 * + 43 col0
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1512
SELECT + + 27 * + - 32 + - + COUNT( * ) - 2 + + - 51 + 77 - - 74 AS col0, 73 DIV + 71 + - NULLIF ( COUNT( * ), + ( - CASE - 30 WHEN - COUNT( - 7 ) THEN - MIN( + 70 ) ELSE - 37 END ) * 1 )
----
-767
0

skipif mysql # not compatible
query II rowsort label-1512
SELECT + + 27 * + - 32 + - + COUNT ( * ) - 2 + + - 51 + 77 - - 74 AS col0, 73 / + 71 + - NULLIF ( COUNT ( * ), + ( - CASE - 30 WHEN - COUNT ( - 7 ) THEN - MIN ( + 70 ) ELSE - 37 END ) * 1 )
----
-767
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT ALL CASE - 59 WHEN 61 + + 53 THEN NULL ELSE + 59 * + 27 + + MAX( DISTINCT - 88 ) END + 7
----
1512

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL CASE - 59 WHEN 61 + + 53 THEN NULL ELSE + 59 * + 27 + + MAX ( DISTINCT - 88 ) END + 7
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT MIN( - 19 ) - - - 63 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-1514
SELECT MIN ( - 19 ) - - - 63 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-1515
SELECT DISTINCT ( + 76 ) + + 1, NULLIF ( + - 41, - - MIN( ALL - + 89 ) ) AS col0
----
77
-41

skipif mysql # not compatible
query II rowsort label-1515
SELECT DISTINCT ( + 76 ) + + 1, NULLIF ( + - 41, - - MIN ( ALL - + 89 ) ) AS col0
----
77
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1516
SELECT DISTINCT - ( + 59 ) + + CAST( NULL AS SIGNED ) * - 12 + + 89 * - 46 AS col2, - 25 AS col1
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-1516
SELECT DISTINCT - ( + 59 ) + + CAST ( NULL AS INTEGER ) * - 12 + + 89 * - 46 AS col2, - 25 AS col1
----
NULL
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-1517
SELECT ALL - MIN( + + 0 ) * + 39 * 40 * 91 * 60, + 76 AS col1
----
0
76

skipif mysql # not compatible
query II rowsort label-1517
SELECT ALL - MIN ( + + 0 ) * + 39 * 40 * 91 * 60, + 76 AS col1
----
0
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT 98 * + + 4 + + + 40 * - + ( - CASE 75 WHEN + COUNT( * ) + - COUNT( * ) THEN NULL WHEN + - COALESCE ( + - CASE + + 76 WHEN - MIN( + 23 ) THEN NULL WHEN + 96 / 36 + 47 THEN 19 * + COUNT( * ) - + 92 * + COUNT( * ) END, 45 ) * + 54 THEN 52 + - 57 / ( 21 ) ELSE NULL END ) * NULLIF ( - ( - 33 ), 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1518
SELECT 98 * + + 4 + + + 40 * - + ( - CASE 75 WHEN + COUNT ( * ) + - COUNT ( * ) THEN NULL WHEN + - COALESCE ( + - CASE + + 76 WHEN - MIN ( + 23 ) THEN NULL WHEN + 96 / 36 + 47 THEN 19 * + COUNT ( * ) - + 92 * + COUNT ( * ) END, 45 ) * + 54 THEN 52 + - 57 / ( 21 ) ELSE NULL END ) * NULLIF ( - ( - 33 ), 46 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT ALL + 8 + + 7 - + 19 * - - 11 * 67 * + COALESCE ( + - 66, COUNT( * ) + + CASE + - COUNT( - - 28 ) WHEN - + COALESCE ( + 20, 62, 59 + 9 ) THEN + 55 * - 24 + + ( - COUNT( * ) ) * + 59 WHEN COUNT( * ) * 59 THEN 17 + ( 76 + 20 ) END, - 62 )
----
924213

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL + 8 + + 7 - + 19 * - - 11 * 67 * + COALESCE ( + - 66, COUNT ( * ) + + CASE + - COUNT ( - - 28 ) WHEN - + COALESCE ( + 20, 62, 59 + 9 ) THEN + 55 * - 24 + + ( - COUNT ( * ) ) * + 59 WHEN COUNT ( * ) * 59 THEN 17 + ( 76 + 20 ) END, - 62 )
----
924213

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

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL + COUNT ( - 22 ) * - SUM ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 25 + 71 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT DISTINCT MAX( 83 ) + 82
----
165

skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT MAX ( 83 ) + 82
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1523
SELECT ( - 22 ) * - - COUNT( * ) + - - MIN( + 31 ) DIV - 11 col0
----
-24

skipif mysql # not compatible
query I rowsort label-1523
SELECT ( - 22 ) * - - COUNT ( * ) + - - MIN ( + 31 ) / - 11 col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1524
SELECT DISTINCT + 90 * + CASE - 46 WHEN + + 58 * + 9 THEN NULL WHEN + CASE + - CAST( - CASE + 47 WHEN - + 13 THEN + COUNT( * ) END AS SIGNED ) WHEN + 39 * + 63 THEN 35 - - 9 * - 85 END * - 37 + + ( + 59 ) * 80 THEN NULL ELSE + 34 END
----
3060

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT + 90 * + CASE - 46 WHEN + + 58 * + 9 THEN NULL WHEN + CASE + - CAST ( - CASE + 47 WHEN - + 13 THEN + COUNT ( * ) END AS INTEGER ) WHEN + 39 * + 63 THEN 35 - - 9 * - 85 END * - 37 + + ( + 59 ) * 80 THEN NULL ELSE + 34 END
----
3060

onlyif mysql # aggregate syntax: 
query II rowsort label-1525
SELECT ALL COUNT( * ) AS col1, 24 + + COUNT( * ) * - 19
----
1
5

skipif mysql # not compatible
query II rowsort label-1525
SELECT ALL COUNT ( * ) AS col1, 24 + + COUNT ( * ) * - 19
----
1
5

query I rowsort
SELECT - NULLIF ( 97, + COALESCE ( - 12, - 89 / + 53 ) ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT 63 * - COUNT( * ) * - - 41 * - MIN( - - 53 )
----
136899

skipif mysql # not compatible
query I rowsort label-1527
SELECT 63 * - COUNT ( * ) * - - 41 * - MIN ( - - 53 )
----
136899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1528
SELECT SUM( + 63 ) + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1528
SELECT SUM ( + 63 ) + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 45 + - 22
----
-67

query I rowsort
SELECT - NULLIF ( - 95, 68 * + 89 + - 59 ) * - 14 AS col1
----
-1330

query I rowsort
SELECT ALL + 37 * + + 75
----
2775

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT ALL + 93 - + + CASE - - 47 WHEN - - 25 * + 66 THEN NULL WHEN - - 58 * 21 + + - COUNT( * ) + 84 THEN NULL ELSE - NULLIF ( + 25, + ( - + NULLIF ( 8, ( - COUNT( * ) ) + 59 ) ) ) END * ( - COUNT( * ) ) col1
----
68

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL + 93 - + + CASE - - 47 WHEN - - 25 * + 66 THEN NULL WHEN - - 58 * 21 + + - COUNT ( * ) + 84 THEN NULL ELSE - NULLIF ( + 25, + ( - + NULLIF ( 8, ( - COUNT ( * ) ) + 59 ) ) ) END * ( - COUNT ( * ) ) col1
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1534
SELECT ALL 28 AS col2, MAX( ( + - 40 ) )
----
28
-40

skipif mysql # not compatible
query II rowsort label-1534
SELECT ALL 28 AS col2, MAX ( ( + - 40 ) )
----
28
-40

query I rowsort
SELECT DISTINCT - 71 * - 27 AS col0
----
1917

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

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT + + COUNT ( * ) / + 41 * 22 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT ALL - COUNT( * ) * + + MIN( + ( + 98 ) ) * + ( - 62 ) col1
----
6076

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - COUNT ( * ) * + + MIN ( + ( + 98 ) ) * + ( - 62 ) col1
----
6076

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

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

query I rowsort
SELECT - - 88 + + - 29 + + 75
----
134

onlyif mysql # DIV for integer division: 
query II rowsort label-1541
SELECT + 38 DIV + + 69 * + 13, 62 * + 71 AS col0
----
0
4402

skipif mysql # not compatible
query II rowsort label-1541
SELECT + 38 / + + 69 * + 13, 62 * + 71 AS col0
----
0
4402

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL + ( 48 ) * + 90 + + COUNT( * )
----
4321

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL + ( 48 ) * + 90 + + COUNT ( * )
----
4321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1543
SELECT ALL + 52 * - + ( + + 72 ) + 95 * - CAST( NULL AS SIGNED ) + COUNT( * ) + + 85 * COUNT( * ) * CASE 73 WHEN AVG ( 38 ) * - 53 THEN - COUNT( * ) ELSE + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL + 52 * - + ( + + 72 ) + 95 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 85 * COUNT ( * ) * CASE 73 WHEN AVG ( 38 ) * - 53 THEN - COUNT ( * ) ELSE + 53 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1544
SELECT ALL + 38 * COALESCE ( + + COUNT( * ), - 97 ) * - + COALESCE ( + COUNT( * ), + - COALESCE ( - 98, + COUNT( * ) DIV - COALESCE ( + 14, - - 71 DIV - 22 * + 0 ) + + 84 * COUNT( * ), 6 * - 23 + NULLIF ( 56, + 73 * + 24 ) ), - 40 * - 6 - 92 DIV + 58 ) + COUNT( * ) + ( 81 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL + 38 * COALESCE ( + + COUNT ( * ), - 97 ) * - + COALESCE ( + COUNT ( * ), + - COALESCE ( - 98, + COUNT ( * ) / - COALESCE ( + 14, - - 71 / - 22 * + 0 ) + + 84 * COUNT ( * ), 6 * - 23 + NULLIF ( 56, + 73 * + 24 ) ), - 40 * - 6 - 92 / + 58 ) + COUNT ( * ) + ( 81 ) AS col1
----
44

query I rowsort
SELECT ALL + 66 * + - 66 + 66 AS col1
----
-4290

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT - SUM( - 23 ) + + 88 + SUM( + 73 ) + - 96
----
88

skipif mysql # not compatible
query I rowsort label-1546
SELECT - SUM ( - 23 ) + + 88 + SUM ( + 73 ) + - 96
----
88

query II rowsort
SELECT + + 66 * + 58 + + + 12 AS col2, 93 - - 40 + - 8
----
3840
125

query I rowsort
SELECT + - 81 - 92
----
-173

query II rowsort
SELECT DISTINCT + 75 * + 90 * - 85 + - 13 AS col2, - 47 * + 22
----
-573763
-1034

query II rowsort
SELECT + 29 * 90, 1 AS col1
----
2610
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1552
SELECT COUNT( * ) * ( - 86 ) + + - 3, + 83 * + COUNT( * ) * COUNT( * ) DIV 84 DIV + + ( - 46 ) AS col2
----
-89
0

skipif mysql # not compatible
query II rowsort label-1552
SELECT COUNT ( * ) * ( - 86 ) + + - 3, + 83 * + COUNT ( * ) * COUNT ( * ) / 84 / + + ( - 46 ) AS col2
----
-89
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1553
SELECT ALL + 65 * - ( - CAST( - 63 AS SIGNED ) ) - ( 49 )
----
-4144

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL + 65 * - ( - CAST ( - 63 AS INTEGER ) ) - ( 49 )
----
-4144

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

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

query I rowsort
SELECT 31 * - - 67 + + ( 25 )
----
2102

query I rowsort
SELECT + 87 + + 93 * - - 56 AS col1
----
5295

onlyif mysql # DIV for integer division: 
query II rowsort label-1557
SELECT + 46 DIV 73 col1, 12 * + + 36 - + 59
----
0
373

skipif mysql # not compatible
query II rowsort label-1557
SELECT + 46 / 73 col1, 12 * + + 36 - + 59
----
0
373

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT - 51 / + CASE - 92 WHEN + - COUNT( * ) THEN + NULLIF ( COUNT( * ), MIN( - 31 ) ) WHEN 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT - 51 / + CASE - 92 WHEN + - COUNT ( * ) THEN + NULLIF ( COUNT ( * ), MIN ( - 31 ) ) WHEN 89 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1559
SELECT + 63 + - CAST( - - 57 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-1559
SELECT + 63 + - CAST ( - - 57 AS INTEGER )
----
6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1561
SELECT + 15 DIV + + 50 col0, - COUNT( * ) DIV + 7 * + 74
----
0
0

skipif mysql # not compatible
query II rowsort label-1561
SELECT + 15 / + + 50 col0, - COUNT ( * ) / + 7 * + 74
----
0
0

query I rowsort
SELECT ALL - 5 * 42
----
-210

query I rowsort
SELECT + 33 + - 78 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT - ( + 5 ) + - - 55 + - MAX( DISTINCT - - 28 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1564
SELECT - ( + 5 ) + - - 55 + - MAX ( DISTINCT - - 28 ) AS col2
----
22

query I rowsort
SELECT DISTINCT - 31 * 26 * - - 15
----
-12090

query I rowsort
SELECT + + 67 + + 11 + - 72 AS col0
----
6

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

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

query I rowsort
SELECT + - 92 + + 69 AS col0
----
-23

query I rowsort
SELECT - - 87 - - + 36 - + + 58 * - 1
----
181

onlyif mysql # DIV for integer division: 
query I rowsort label-1570
SELECT - + 12 + + - 27 * + 7 * + 46 + + 92 DIV - - 70 AS col1
----
-8705

skipif mysql # not compatible
query I rowsort label-1570
SELECT - + 12 + + - 27 * + 7 * + 46 + + 92 / - - 70 AS col1
----
-8705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1571
SELECT DISTINCT - 79 + SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1571
SELECT DISTINCT - 79 + SUM ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1572
SELECT DISTINCT + 41 DIV 11 + - 80 - - - 59
----
-136

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT + 41 / 11 + - 80 - - - 59
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1573
SELECT ALL - COUNT( * ) DIV - 49 - 7 + - + MIN( 32 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL - COUNT ( * ) / - 49 - 7 + - + MIN ( 32 ) AS col1
----
-39

query II rowsort
SELECT - 79 + 59 + + 72 + + 77 AS col0, 28
----
129
28

query I rowsort
SELECT ALL - + 59 * 40 col2
----
-2360

onlyif mysql # DIV for integer division: 
query II rowsort label-1576
SELECT ALL + - ( 6 ) DIV + - 43 + NULLIF ( + 76, 12 - + - 99 ) AS col1, + 44 AS col0
----
76
44

skipif mysql # not compatible
query II rowsort label-1576
SELECT ALL + - ( 6 ) / + - 43 + NULLIF ( + 76, 12 - + - 99 ) AS col1, + 44 AS col0
----
76
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT - + COUNT( * ) * - + 42 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1577
SELECT - + COUNT ( * ) * - + 42 AS col1
----
42

query I rowsort
SELECT ALL - + 67 * - - 0 + - 3 - 57 * - 12 col1
----
681

query II rowsort
SELECT - - 41 * - 82, 18 AS col1
----
-3362
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1580
SELECT + - 35 + 45 * - ( - CAST( - CASE + COALESCE ( - 77, 24 ) WHEN 52 - 24 THEN + - 71 ELSE NULL END AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1580
SELECT + - 35 + 45 * - ( - CAST ( - CASE + COALESCE ( - 77, 24 ) WHEN 52 - 24 THEN + - 71 ELSE NULL END AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1581
SELECT ALL COUNT( * ) DIV 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL COUNT ( * ) / 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT DISTINCT + SUM( ALL 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1582
SELECT DISTINCT + SUM ( ALL 52 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT DISTINCT 95 * COUNT( * ) - - 3
----
98

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT 95 * COUNT ( * ) - - 3
----
98

query I rowsort
SELECT 45 * + + ( - + 76 ) - - 7 * 28
----
-3224

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT + 75 * MAX( + - 95 )
----
-7125

skipif mysql # not compatible
query I rowsort label-1585
SELECT + 75 * MAX ( + - 95 )
----
-7125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1586
SELECT COALESCE ( + + CAST( NULL AS SIGNED ), + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-1586
SELECT COALESCE ( + + CAST ( NULL AS INTEGER ), + 86 )
----
86

query I rowsort
SELECT 44 * 3 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT 79 + + MAX( DISTINCT - - ( - 67 ) ) + - 30 * - - 2 * + + 10 col2
----
-588

skipif mysql # not compatible
query I rowsort label-1588
SELECT 79 + + MAX ( DISTINCT - - ( - 67 ) ) + - 30 * - - 2 * + + 10 col2
----
-588

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1590
SELECT 63 - 90 + - - CAST( - 58 AS SIGNED ) DIV - - 12 col1, + 67 * + 91
----
-31
6097

skipif mysql # not compatible
query II rowsort label-1590
SELECT 63 - 90 + - - CAST ( - 58 AS INTEGER ) / - - 12 col1, + 67 * + 91
----
-31
6097

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

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

query I rowsort
SELECT 81 + 93 AS col0
----
174

query I rowsort
SELECT - 97 + 74
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1594
SELECT DISTINCT + 19 + + + 63 DIV COUNT( * ) AS col1, - 33
----
82
-33

skipif mysql # not compatible
query II rowsort label-1594
SELECT DISTINCT + 19 + + + 63 / COUNT ( * ) AS col1, - 33
----
82
-33

query I rowsort
SELECT ALL 80 + + + 22 + + 68 + - 21 AS col0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT 61 * + 12 * + - MAX( DISTINCT + 6 ) AS col1
----
-4392

skipif mysql # not compatible
query I rowsort label-1596
SELECT 61 * + 12 * + - MAX ( DISTINCT + 6 ) AS col1
----
-4392

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

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL - 50 / COUNT ( * )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1598
SELECT ALL - ( + - CAST( NULL AS SIGNED ) ) + - 35 AS col0, 11
----
NULL
11

skipif mysql # not compatible
query II rowsort label-1598
SELECT ALL - ( + - CAST ( NULL AS INTEGER ) ) + - 35 AS col0, 11
----
NULL
11

query I rowsort
SELECT ALL + 75 + - - 7 AS col1
----
82

query I rowsort
SELECT ALL + 95 + + - 2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT MIN( DISTINCT - 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1601
SELECT MIN ( DISTINCT - 4 ) AS col2
----
-4

query I rowsort
SELECT ALL + 25 + - + 81 AS col2
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1603
SELECT + ( - 89 ) + + 48 + - + 91 DIV + 29 AS col1, COUNT( * ) AS col0
----
-44
1

skipif mysql # not compatible
query II rowsort label-1603
SELECT + ( - 89 ) + + 48 + - + 91 / + 29 AS col1, COUNT ( * ) AS col0
----
-44
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT + 44 / + CASE - + ( - + 3 ) WHEN - MAX( ALL - 16 ) THEN NULL WHEN - 70 + - 4 + + 90 THEN + MIN( 41 ) END + 35 * - 4 - 71 + COUNT( * ) * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1605
SELECT + 44 / + CASE - + ( - + 3 ) WHEN - MAX ( ALL - 16 ) THEN NULL WHEN - 70 + - 4 + + 90 THEN + MIN ( 41 ) END + 35 * - 4 - 71 + COUNT ( * ) * + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT 78 + + COALESCE ( + 81, - ( COUNT( * ) ) ) * + ( + - 6 )
----
-408

skipif mysql # not compatible
query I rowsort label-1606
SELECT 78 + + COALESCE ( + 81, - ( COUNT ( * ) ) ) * + ( + - 6 )
----
-408

query I rowsort
SELECT 22 * ( 74 ) * + 36 - - 0 AS col2
----
58608

query I rowsort
SELECT ALL + - 52 - - 67 AS col1
----
15

query I rowsort
SELECT ALL - CASE - + 67 WHEN 91 - 81 * - - 93 THEN - 8 + - 19 + + 21 * 35 END
----
NULL

query I rowsort
SELECT 12 * - - 17 - - + 70
----
274

query I rowsort
SELECT ALL - 40 * - 56 * - 60 AS col2
----
-134400

query I rowsort
SELECT 54 * + NULLIF ( - - 84, + 5 )
----
4536

query I rowsort
SELECT 25 * - 85 AS col2
----
-2125

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1615
SELECT + 22 * - - 47 * 9 - - 88 + + NULLIF ( 2, - - 64 ) DIV + 54 AS col1
----
9394

skipif mysql # not compatible
query I rowsort label-1615
SELECT + 22 * - - 47 * 9 - - 88 + + NULLIF ( 2, - - 64 ) / + 54 AS col1
----
9394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1616
SELECT 44 DIV + SUM( - 21 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1616
SELECT 44 / + SUM ( - 21 ) AS col2
----
-2

query I rowsort
SELECT ALL - ( - - 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL - 77 * - CASE + COUNT( * ) WHEN + CASE + SUM( - 6 ) WHEN + 11 THEN NULL WHEN - ( 55 ) THEN - 35 ELSE NULL END / - + COUNT( - 68 ) * COUNT( * ) - + + 42 / + 95 / - - 59 * + COUNT( - 82 ) + 17 THEN 70 END / - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL - 77 * - CASE + COUNT ( * ) WHEN + CASE + SUM ( - 6 ) WHEN + 11 THEN NULL WHEN - ( 55 ) THEN - 35 ELSE NULL END / - + COUNT ( - 68 ) * COUNT ( * ) - + + 42 / + 95 / - - 59 * + COUNT ( - 82 ) + 17 THEN 70 END / - 69 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT 86 / - + 86
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT ALL 4 DIV + - 76
----
0

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL 4 / + - 76
----
0

query I rowsort
SELECT ALL + 5 + - 30
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1623
SELECT 79 * + + ( - 26 ) * + 62 DIV 62 AS col1
----
-2054

skipif mysql # not compatible
query I rowsort label-1623
SELECT 79 * + + ( - 26 ) * + 62 / 62 AS col1
----
-2054

query I rowsort
SELECT ALL - 42 + 90
----
48

query I rowsort
SELECT 50 + 90 + + 38 AS col1
----
178

onlyif mysql # aggregate syntax: 
query II rowsort label-1626
SELECT 22 AS col1, 50 + - + 40 + 95 * + + 88 + - NULLIF ( + COUNT( ALL 29 ), - 61 / + + 1 + - - 28 ) AS col1
----
22
8369

skipif mysql # not compatible
query II rowsort label-1626
SELECT 22 AS col1, 50 + - + 40 + 95 * + + 88 + - NULLIF ( + COUNT ( ALL 29 ), - 61 / + + 1 + - - 28 ) AS col1
----
22
8369

query I rowsort
SELECT 59 + - 37
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1628
SELECT DISTINCT + 69 + - CASE + + COALESCE ( + + 2, 87 - - + 23, COUNT( * ) - + 13 ) WHEN - CAST( + - ( 42 ) AS SIGNED ) THEN NULL WHEN + ( 4 ) / + 10 THEN - 37 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT + 69 + - CASE + + COALESCE ( + + 2, 87 - - + 23, COUNT ( * ) - + 13 ) WHEN - CAST ( + - ( 42 ) AS INTEGER ) THEN NULL WHEN + ( 4 ) / + 10 THEN - 37 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1629
SELECT ALL 42 * + CAST( NULL AS SIGNED ) * + 23 * + + 19 + - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL 42 * + CAST ( NULL AS INTEGER ) * + 23 * + + 19 + - 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1630
SELECT - COUNT( * ) + - COUNT( * ) * COUNT( * ) + + - 3 DIV - COALESCE ( - + 30, - 93 + - + 62 )
----
-2

skipif mysql # not compatible
query I rowsort label-1630
SELECT - COUNT ( * ) + - COUNT ( * ) * COUNT ( * ) + + - 3 / - COALESCE ( - + 30, - 93 + - + 62 )
----
-2

query I rowsort
SELECT DISTINCT 60 * ( - 25 ) * + - 17 + 88
----
25588

query I rowsort
SELECT NULLIF ( + 50, - 73 * + 34 * - - 62 ) + 57 - + 98 + + - COALESCE ( + + 26, + 9 ) AS col2
----
-17

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

query I rowsort
SELECT ALL + + 1 * - + 14
----
-14

query I rowsort
SELECT 75 + - 84 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT ALL NULLIF ( + - 37, + 17 ) + + COUNT( * ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL NULLIF ( + - 37, + 17 ) + + COUNT ( * ) col1
----
-36

query I rowsort
SELECT 68 + + 41 * - 42 AS col2
----
-1654

query I rowsort
SELECT 55 + - 55 + + 76
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1639
SELECT 98 + - 12 * COALESCE ( 98, - 87 * + CASE - 78 WHEN + + ( + 3 ) * - 62 THEN 16 * + - CASE + 33 WHEN + - 90 * + ( - + 45 ) + ( + 82 ) DIV + COUNT( * ) THEN 26 WHEN + 40 DIV - 73 THEN + 90 ELSE NULL END WHEN + 36 - - CAST( NULL AS SIGNED ) * + 6 THEN NULL ELSE - 12 END, + 42 ) DIV + 15
----
20

skipif mysql # not compatible
query I rowsort label-1639
SELECT 98 + - 12 * COALESCE ( 98, - 87 * + CASE - 78 WHEN + + ( + 3 ) * - 62 THEN 16 * + - CASE + 33 WHEN + - 90 * + ( - + 45 ) + ( + 82 ) / + COUNT ( * ) THEN 26 WHEN + 40 / - 73 THEN + 90 ELSE NULL END WHEN + 36 - - CAST ( NULL AS INTEGER ) * + 6 THEN NULL ELSE - 12 END, + 42 ) / + 15
----
20

query II rowsort
SELECT COALESCE ( 11, - 84 ) + 95 AS col1, 78 AS col2
----
106
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1641
SELECT + COALESCE ( - NULLIF ( + 45, - 91 ), + CAST( - + 57 AS SIGNED ) * + 33 ) + MIN( DISTINCT - 79 ) * + MIN( - 19 ) AS col1, - 34 + 66 AS col2
----
1456
32

skipif mysql # not compatible
query II rowsort label-1641
SELECT + COALESCE ( - NULLIF ( + 45, - 91 ), + CAST ( - + 57 AS INTEGER ) * + 33 ) + MIN ( DISTINCT - 79 ) * + MIN ( - 19 ) AS col1, - 34 + 66 AS col2
----
1456
32

query II rowsort
SELECT - 88 AS col0, + 24 * COALESCE ( + 89, - 8 )
----
-88
2136

query I rowsort
SELECT 24 + - 32
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-1644
SELECT ALL 32 AS col2, 94 + - MIN( ALL 25 ) + 95 - - 86
----
32
250

skipif mysql # not compatible
query II rowsort label-1644
SELECT ALL 32 AS col2, 94 + - MIN ( ALL 25 ) + 95 - - 86
----
32
250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1645
SELECT ALL - COUNT( * ) DIV + 37 * + 30 * + 85 * 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL - COUNT ( * ) / + 37 * + 30 * + 85 * 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT + CASE - + 46 WHEN 90 + 82 + NULLIF ( - 82, - 22 * + - 33 * - MIN( DISTINCT + + 69 ) ) - + + 51 + 14 * - - 68 THEN 37 WHEN - 93 * + - 23 * - 53 - - 79 THEN 96 END + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1646
SELECT + CASE - + 46 WHEN 90 + 82 + NULLIF ( - 82, - 22 * + - 33 * - MIN ( DISTINCT + + 69 ) ) - + + 51 + 14 * - - 68 THEN 37 WHEN - 93 * + - 23 * - 53 - - 79 THEN 96 END + 11
----
NULL

query I rowsort
SELECT ALL + + 0 * - - ( 12 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT - 87 * + CASE - ( - + 83 ) WHEN + 48 THEN NULL WHEN 63 * + - 88 + COUNT( * ) + - + 73 + - 88 + - 23 / - 31 + + + 18 * - + 14 THEN + 86 + - - 12 * - 88 END + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT - 87 * + CASE - ( - + 83 ) WHEN + 48 THEN NULL WHEN 63 * + - 88 + COUNT ( * ) + - + 73 + - 88 + - 23 / - 31 + + + 18 * - + 14 THEN + 86 + - - 12 * - 88 END + 3
----
NULL

query I rowsort
SELECT DISTINCT 56 * 28 - + - 6 + - - 30 + - 73 + + 62 * - 37
----
-763

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

skipif mysql # not compatible
query I rowsort label-1650
SELECT COUNT ( * ) * 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT + CASE - 58 WHEN MAX( - ( + 95 ) ) * - + 43 + - 18 THEN + ( + 18 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1651
SELECT + CASE - 58 WHEN MAX ( - ( + 95 ) ) * - + 43 + - 18 THEN + ( + 18 ) END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL - SUM ( 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT - SUM( DISTINCT - - 98 ) * + + 23 - + 41
----
-2295

skipif mysql # not compatible
query I rowsort label-1653
SELECT - SUM ( DISTINCT - - 98 ) * + + 23 - + 41
----
-2295

onlyif mysql # DIV for integer division: 
query III rowsort label-1654
SELECT - 28 + 79 + 15 AS col2, + 45 DIV - - 10, + + 50 * + 26 - 35 AS col2
----
66
4
1265

skipif mysql # not compatible
query III rowsort label-1654
SELECT - 28 + 79 + 15 AS col2, + 45 / - - 10, + + 50 * + 26 - 35 AS col2
----
66
4
1265

query I rowsort
SELECT 9 * 48 + + 87 * 17 AS col2
----
1911

query I rowsort
SELECT ALL 36 * - - 94 + + + 31
----
3415

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1657
SELECT COUNT( * ) * + 21 / + COUNT( * ) - + + AVG ( - - 97 ) + + - CAST( NULL AS DECIMAL ) + + + COUNT( * ) + + + 95 - 29 * COUNT( * ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1657
SELECT COUNT ( * ) * + 21 / + COUNT ( * ) - + + AVG ( - - 97 ) + + - CAST ( NULL AS REAL ) + + + COUNT ( * ) + + + 95 - 29 * COUNT ( * ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1658
SELECT + COALESCE ( + 47, + + 88 + COALESCE ( + COUNT( * ), - SUM( - ( + CAST( 11 AS SIGNED ) ) ) ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-1658
SELECT + COALESCE ( + 47, + + 88 + COALESCE ( + COUNT ( * ), - SUM ( - ( + CAST ( 11 AS INTEGER ) ) ) ) ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT - SUM( DISTINCT + 29 ) + - COUNT( * ) + - + 46 + + 99 * + 51 AS col0
----
4973

skipif mysql # not compatible
query I rowsort label-1659
SELECT - SUM ( DISTINCT + 29 ) + - COUNT ( * ) + - + 46 + + 99 * + 51 AS col0
----
4973

query I rowsort
SELECT ALL + 83 * - 82 AS col0
----
-6806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1661
SELECT DISTINCT - 28 + - 28 + 64 * CAST( - 15 AS SIGNED ) * CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + + 61 / - 13 - - + 10 - - + COUNT( * ) + + 10 * + - MIN( ALL - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT - 28 + - 28 + 64 * CAST ( - 15 AS INTEGER ) * CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + 61 / - 13 - - + 10 - - + COUNT ( * ) + + 10 * + - MIN ( ALL - 61 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT ALL + 74 + - - SUM( DISTINCT 26 ) * - 31 * 2 AS col0
----
-1538

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL + 74 + - - SUM ( DISTINCT 26 ) * - 31 * 2 AS col0
----
-1538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1663
SELECT DISTINCT CAST( 86 AS SIGNED ) * 25 + - + 96 * + - 79
----
9734

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT CAST ( 86 AS INTEGER ) * 25 + - + 96 * + - 79
----
9734

query I rowsort
SELECT ALL - 19 + 62 col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1665
SELECT DISTINCT + SUM( ( - - ( + 46 ) ) ) + - COUNT( * ) - + 19 * COUNT( * ) AS col1, 58 AS col1
----
26
58

skipif mysql # not compatible
query II rowsort label-1665
SELECT DISTINCT + SUM ( ( - - ( + 46 ) ) ) + - COUNT ( * ) - + 19 * COUNT ( * ) AS col1, 58 AS col1
----
26
58

query I rowsort
SELECT - - 55 * + 88 AS col2
----
4840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1667
SELECT DISTINCT NULLIF ( + + CAST( NULL AS SIGNED ), - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT NULLIF ( + + CAST ( NULL AS INTEGER ), - 87 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT - - COALESCE ( + SUM( ALL + 61 ), - ( - 1 ) * + 22 )
----
61

skipif mysql # not compatible
query I rowsort label-1669
SELECT - - COALESCE ( + SUM ( ALL + 61 ), - ( - 1 ) * + 22 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT ( MAX( ALL - - 14 ) )
----
14

skipif mysql # not compatible
query I rowsort label-1670
SELECT ( MAX ( ALL - - 14 ) )
----
14

query I rowsort
SELECT + + 98 * + 4
----
392

onlyif mysql # aggregate syntax: 
query II rowsort label-1672
SELECT COUNT( + - 88 ) AS col0, 31 AS col0
----
1
31

skipif mysql # not compatible
query II rowsort label-1672
SELECT COUNT ( + - 88 ) AS col0, 31 AS col0
----
1
31

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

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * - 69
----
69

query I rowsort
SELECT DISTINCT + 15 * - 39
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT ALL MAX( - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL MAX ( - 74 )
----
-74

query I rowsort
SELECT + - 71 * + + NULLIF ( + 34, - COALESCE ( 98, 93 + + 87 * + + 28 ) ) + + - 61 AS col0
----
-2475

query I rowsort
SELECT - 71 + - - 33 AS col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1678
SELECT CAST( + ( + 82 ) AS SIGNED ), + 55 AS col1
----
82
55

skipif mysql # not compatible
query II rowsort label-1678
SELECT CAST ( + ( + 82 ) AS INTEGER ), + 55 AS col1
----
82
55

query I rowsort
SELECT + 23 + - - 82 col1
----
105

query I rowsort
SELECT + 17 - 39 - + CASE + 27 WHEN + ( 66 ) * + 69 + 27 - - - ( + 5 ) THEN NULL ELSE - - 99 END col2
----
-121

query I rowsort
SELECT ALL 28 * - - 72 AS col1
----
2016

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

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

query I rowsort
SELECT ALL 4 * + 59 AS col0
----
236

query I rowsort
SELECT ALL 69 * 93
----
6417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1685
SELECT + CASE WHEN + CAST( NULL AS SIGNED ) NOT IN ( - 68, + 42 ) THEN + 87 + 44 * - COUNT( * ) WHEN NOT + 98 * 52 IN ( 96 + - - 72, - 99, 57 * - COUNT( * ) ) THEN NULL END * + - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1685
SELECT + CASE WHEN + CAST ( NULL AS INTEGER ) NOT IN ( - 68, + 42 ) THEN + 87 + 44 * - COUNT ( * ) WHEN NOT + 98 * 52 IN ( 96 + - - 72, - 99, 57 * - COUNT ( * ) ) THEN NULL END * + - 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1686
SELECT - 39 - 20 * COUNT( * ) DIV + 81 * - 88
----
-39

skipif mysql # not compatible
query I rowsort label-1686
SELECT - 39 - 20 * COUNT ( * ) / + 81 * - 88
----
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL 19 * 63 + - COUNT( * ) - - 2 AS col1
----
1198

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL 19 * 63 + - COUNT ( * ) - - 2 AS col1
----
1198

query I rowsort
SELECT ALL 33 * + 54 * - - 52 AS col2
----
92664

query III rowsort
SELECT ALL + ( + 43 ) * + 17 + + 26 + + ( - 76 ) - 8 * + 71 col1, - 61 * - 78 * - - 18 AS col0, + 31
----
113
85644
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1691
SELECT ALL + + 0 AS col1, + COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-1691
SELECT ALL + + 0 AS col1, + COUNT ( * ) AS col0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1692
SELECT ALL - + 32 * 33 * - 49 - CAST( + 44 AS SIGNED ) + - COUNT( * ) AS col1, 64 AS col1
----
51699
64

skipif mysql # not compatible
query II rowsort label-1692
SELECT ALL - + 32 * 33 * - 49 - CAST ( + 44 AS INTEGER ) + - COUNT ( * ) AS col1, 64 AS col1
----
51699
64

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

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

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

query I rowsort
SELECT - + 2 - + 80 col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-1696
SELECT DISTINCT - 79, - COUNT( * ) col1
----
-79
-1

skipif mysql # not compatible
query II rowsort label-1696
SELECT DISTINCT - 79, - COUNT ( * ) col1
----
-79
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1697
SELECT ALL - + 34 * - CAST( NULL AS DECIMAL ) * - NULLIF ( + - 87, + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL - + 34 * - CAST ( NULL AS REAL ) * - NULLIF ( + - 87, + 53 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1698
SELECT + + COUNT( * ) + + COALESCE ( + NULLIF ( - + NULLIF ( + COUNT( * ), + + ( + + 57 ) ), + + 91 ), + 44 + + + 15 + + + CAST( NULL AS SIGNED ) + - + ( + ( - 87 ) ), + - 95 + - CASE + 52 WHEN + 6 + 70 THEN CASE 3 WHEN 18 THEN 54 ELSE 5 END + CAST( NULL AS SIGNED ) WHEN 85 + + 94 THEN NULL END * 54 )
----
0

skipif mysql # not compatible
query I rowsort label-1698
SELECT + + COUNT ( * ) + + COALESCE ( + NULLIF ( - + NULLIF ( + COUNT ( * ), + + ( + + 57 ) ), + + 91 ), + 44 + + + 15 + + + CAST ( NULL AS INTEGER ) + - + ( + ( - 87 ) ), + - 95 + - CASE + 52 WHEN + 6 + 70 THEN CASE 3 WHEN 18 THEN 54 ELSE 5 END + CAST ( NULL AS INTEGER ) WHEN 85 + + 94 THEN NULL END * 54 )
----
0

query I rowsort
SELECT ALL 93 * - - 56
----
5208

query I rowsort
SELECT - 32 + + 3
----
-29

query II rowsort
SELECT 5 AS col0, 49
----
5
49

query I rowsort
SELECT ALL + + 29 * + 71 AS col0
----
2059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1703
SELECT ALL - - 33 / + SUM( + 96 ) * + CAST( NULL AS SIGNED ) - 97 + - 40 / 40 * - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL - - 33 / + SUM ( + 96 ) * + CAST ( NULL AS INTEGER ) - 97 + - 40 / 40 * - 98 AS col1
----
NULL

query I rowsort
SELECT - - 25 + + - 40
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-1705
SELECT - 34, 39 DIV 75 AS col2
----
-34
0

skipif mysql # not compatible
query II rowsort label-1705
SELECT - 34, 39 / 75 AS col2
----
-34
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1706
SELECT 85 AS col1, 26 * - + 6 + - NULLIF ( COUNT( - 12 ), + - 77 )
----
85
-157

skipif mysql # not compatible
query II rowsort label-1706
SELECT 85 AS col1, 26 * - + 6 + - NULLIF ( COUNT ( - 12 ), + - 77 )
----
85
-157

query I rowsort
SELECT 64 + + + 92 - - + 31
----
187

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT ALL + 18 * - SUM( ALL - 49 ) * - COUNT( * )
----
-882

skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL + 18 * - SUM ( ALL - 49 ) * - COUNT ( * )
----
-882

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

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

query I rowsort
SELECT DISTINCT 70 * 1
----
70

query I rowsort
SELECT ALL 87 + 57
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT DISTINCT 64 + - - MIN( + - 90 )
----
-26

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT 64 + - - MIN ( + - 90 )
----
-26

query I rowsort
SELECT DISTINCT 22 + - 47 AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1715
SELECT ALL - ( CAST( - 85 AS SIGNED ) )
----
85

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL - ( CAST ( - 85 AS INTEGER ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT 53 * + 18 * - + COUNT( * )
----
-954

skipif mysql # not compatible
query I rowsort label-1716
SELECT 53 * + 18 * - + COUNT ( * )
----
-954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1717
SELECT NULLIF ( - + COUNT( * ), + 80 + - - 93 + - - 98 * + 87 ) DIV - + 92 + - + 95 DIV + 83 + + - 9
----
-10

skipif mysql # not compatible
query I rowsort label-1717
SELECT NULLIF ( - + COUNT ( * ), + 80 + - - 93 + - - 98 * + 87 ) / - + 92 + - + 95 / + 83 + + - 9
----
-10

query I rowsort
SELECT DISTINCT 86 + + 12 - + - 27 AS col0
----
125

query I rowsort
SELECT 78 * + COALESCE ( + 57, + - 41 )
----
4446

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT DISTINCT 56 * - MAX( DISTINCT - 6 ) AS col1
----
336

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT 56 * - MAX ( DISTINCT - 6 ) AS col1
----
336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1721
SELECT DISTINCT 27 - - - COUNT( * ) + 72 DIV - MAX( ALL + - 34 ) + COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT 27 - - - COUNT ( * ) + 72 / - MAX ( ALL + - 34 ) + COUNT ( * ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT + 14 + + + COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1722
SELECT + 14 + + + COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-1723
SELECT DISTINCT 54 - + 53 AS col2, + COUNT( + - 37 ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-1723
SELECT DISTINCT 54 - + 53 AS col2, + COUNT ( + - 37 ) AS col2
----
1
1

query I rowsort
SELECT ALL + 42 * - COALESCE ( + 60, 93, 74, - - ( + 32 ) + - 36 ) AS col2
----
-2520

onlyif mysql # aggregate syntax: 
query II rowsort label-1725
SELECT + 72 - 71 col0, - 51 + + - 75 * - + COUNT( * ) + ( - - COALESCE ( + - COALESCE ( 26, 63, - + 53 ), 70 + - - 53 * SUM( ALL 74 ), + - 69 + + + 81 ) )
----
1
-2

skipif mysql # not compatible
query II rowsort label-1725
SELECT + 72 - 71 col0, - 51 + + - 75 * - + COUNT ( * ) + ( - - COALESCE ( + - COALESCE ( 26, 63, - + 53 ), 70 + - - 53 * SUM ( ALL 74 ), + - 69 + + + 81 ) )
----
1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1726
SELECT + NULLIF ( - 65, + ( - 29 ) * - 65 + + 22 * + CAST( - 99 AS SIGNED ) * - + 53 * + - 53 + + COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-1726
SELECT + NULLIF ( - 65, + ( - 29 ) * - 65 + + 22 * + CAST ( - 99 AS INTEGER ) * - + 53 * + - 53 + + COUNT ( * ) )
----
-65

query I rowsort
SELECT DISTINCT + 9 * 93
----
837

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1729
SELECT DISTINCT - CASE 19 WHEN 57 * NULLIF ( - + 59, + 20 ) - + 16 + ( - 91 ) + + - ( - + CAST( NULL AS SIGNED ) ) * + 56 THEN + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT - CASE 19 WHEN 57 * NULLIF ( - + 59, + 20 ) - + 16 + ( - 91 ) + + - ( - + CAST ( NULL AS INTEGER ) ) * + 56 THEN + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT DISTINCT CASE + 6 WHEN + COUNT( * ) THEN + + 43 + + 20 END * + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT CASE + 6 WHEN + COUNT ( * ) THEN + + 43 + + 20 END * + 94 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1731
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col2, ( - - 94 ) * 94
----
NULL
8836

skipif mysql # not compatible
query II rowsort label-1731
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col2, ( - - 94 ) * 94
----
NULL
8836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1732
SELECT DISTINCT - + CAST( - 41 AS SIGNED ) * 6 AS col0
----
246

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT - + CAST ( - 41 AS INTEGER ) * 6 AS col0
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-1733
SELECT + 88 DIV - - 10 + + - 88 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-1733
SELECT + 88 / - - 10 + + - 88 AS col1
----
-80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1735
SELECT - CAST( - 74 AS SIGNED ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1735
SELECT - CAST ( - 74 AS INTEGER ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT DISTINCT - COUNT( * ) + - + MIN( - 16 ) + - COUNT( * ) + + 88 * 74
----
6526

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT - COUNT ( * ) + - + MIN ( - 16 ) + - COUNT ( * ) + + 88 * 74
----
6526

onlyif mysql # aggregate syntax: 
query II rowsort label-1737
SELECT 91 * - COUNT( * ) AS col1, - 25 * + + MIN( + - 7 )
----
-91
175

skipif mysql # not compatible
query II rowsort label-1737
SELECT 91 * - COUNT ( * ) AS col1, - 25 * + + MIN ( + - 7 )
----
-91
175

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL - 86 + - 91 - + + 76 + - - 0 * - ( - CASE - - COALESCE ( 53, 61 / + NULLIF ( - + COUNT( * ), + - 83 / 15 + 29 ) + + 18 * 86 ) WHEN + 99 + - + SUM( DISTINCT 65 ) + ( + 30 ) * 21 THEN - 73 ELSE NULL END ) + + 42 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL - 86 + - 91 - + + 76 + - - 0 * - ( - CASE - - COALESCE ( 53, 61 / + NULLIF ( - + COUNT ( * ), + - 83 / 15 + 29 ) + + 18 * 86 ) WHEN + 99 + - + SUM ( DISTINCT 65 ) + ( + 30 ) * 21 THEN - 73 ELSE NULL END ) + + 42 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT - 77 + + 44 - + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1740
SELECT ALL - 59 + - + NULLIF ( - CAST( + 65 AS SIGNED ), COALESCE ( - COUNT( * ), - 53 ) ) - - 60 * - 10
----
-594

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL - 59 + - + NULLIF ( - CAST ( + 65 AS INTEGER ), COALESCE ( - COUNT ( * ), - 53 ) ) - - 60 * - 10
----
-594

query I rowsort
SELECT 63 * - ( + 95 ) * 14 AS col2
----
-83790

query I rowsort
SELECT 73 * + - 85 AS col1
----
-6205

query I rowsort
SELECT 53 + NULLIF ( - - 21, + 29 )
----
74

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

query I rowsort
SELECT 98 * 24 AS col0
----
2352

query I rowsort
SELECT 72 + + 79 AS col1
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT ALL 42 * - 59 - + - COUNT( - - 21 ) AS col0
----
-2477

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL 42 * - 59 - + - COUNT ( - - 21 ) AS col0
----
-2477

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT DISTINCT + 42 - + COUNT( 0 ) + 80 col2
----
121

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT + 42 - + COUNT ( 0 ) + 80 col2
----
121

query I rowsort
SELECT ALL - 51 * - - 13
----
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL + COUNT( * ) - + + ( 20 ) * - + 74 * + 64 * - COALESCE ( - 29, + - 74 + - 70, + + 59 ) * - - 53
----
145584641

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL + COUNT ( * ) - + + ( 20 ) * - + 74 * + 64 * - COALESCE ( - 29, + - 74 + - 70, + + 59 ) * - - 53
----
145584641

query I rowsort
SELECT DISTINCT - 70 * + 64
----
-4480

query I rowsort
SELECT 7 + 17 * - - 83 AS col0
----
1418

query I rowsort
SELECT + 71 * - + 57 + - - 86 + + 5 + - + 34
----
-3990

onlyif mysql # aggregate syntax: 
query II rowsort label-1754
SELECT + 11 col1, - 36 + + 34 * - + 36 + + SUM( DISTINCT 33 ) + + - 88 * 14 - + COUNT( * ) AS col0
----
11
-2460

skipif mysql # not compatible
query II rowsort label-1754
SELECT + 11 col1, - 36 + + 34 * - + 36 + + SUM ( DISTINCT 33 ) + + - 88 * 14 - + COUNT ( * ) AS col0
----
11
-2460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1755
SELECT CASE - - 23 WHEN + CAST( - + COUNT( * ) AS SIGNED ) THEN - 80 WHEN 44 * + - 54 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT CASE - - 23 WHEN + CAST ( - + COUNT ( * ) AS INTEGER ) THEN - 80 WHEN 44 * + - 54 THEN NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT ALL 11 + - - NULLIF ( + - 85, + 0 * + 4 + - - 64 + 85 ) / CAST( NULL AS SIGNED ) - + - 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL 11 + - - NULLIF ( + - 85, + 0 * + 4 + - - 64 + 85 ) / CAST ( NULL AS INTEGER ) - + - 71 AS col2
----
NULL

query II rowsort
SELECT ALL + 3 + 88 - + 8 + - 35 + + + 1 AS col1, + 65 * + - 16
----
49
-1040

query I rowsort
SELECT + 8 + - + 37 * 93 + - - 34 AS col0
----
-3399

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT - COALESCE ( SUM( 16 ), + 55 )
----
-16

skipif mysql # not compatible
query I rowsort label-1760
SELECT - COALESCE ( SUM ( 16 ), + 55 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT ALL + COUNT( - - 45 ) + - 72
----
-71

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL + COUNT ( - - 45 ) + - 72
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT + 18 + - 25 + + 95 * - SUM( 25 )
----
-2382

skipif mysql # not compatible
query I rowsort label-1762
SELECT + 18 + - 25 + + 95 * - SUM ( 25 )
----
-2382

query I rowsort
SELECT + ( + 36 ) + - 84
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT + MAX( - + NULLIF ( - - 11, - + 8 ) ) + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-1764
SELECT + MAX ( - + NULLIF ( - - 11, - + 8 ) ) + COUNT ( * )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1765
SELECT + 82 * - + 1 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-1765
SELECT + 82 * - + 1 / + 86
----
0

query II rowsort
SELECT 96, + 62 * - 79 * - + 32 AS col2
----
96
156736

query I rowsort
SELECT + 46 + - 55 AS col2
----
-9

query II rowsort
SELECT 69, - 98 AS col0
----
69
-98

query I rowsort
SELECT - 64 + + + 37
----
-27

query I rowsort
SELECT DISTINCT 87 - 49 AS col2
----
38

query I rowsort
SELECT ALL 46 * + - 44
----
-2024

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT - COALESCE ( COUNT( * ), + + ( - 37 ) + + 5, - 24 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1772
SELECT - COALESCE ( COUNT ( * ), + + ( - 37 ) + + 5, - 24 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1773
SELECT DISTINCT COUNT( * ), 19 AS col1
----
1
19

skipif mysql # not compatible
query II rowsort label-1773
SELECT DISTINCT COUNT ( * ), 19 AS col1
----
1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT ALL MIN( ALL 89 )
----
89

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL MIN ( ALL 89 )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1775
SELECT + ( + 58 ) DIV 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1775
SELECT + ( + 58 ) / 73 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT ALL 10 * - SUM( - 40 )
----
400

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL 10 * - SUM ( - 40 )
----
400

query II rowsort
SELECT DISTINCT + 39, + 63 + + 82 AS col1
----
39
145

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT - 74 DIV - 26
----
2

skipif mysql # not compatible
query I rowsort label-1778
SELECT - 74 / - 26
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1779
SELECT DISTINCT + COALESCE ( - 76, + - 76 ) DIV + 57 AS col2, - NULLIF ( COUNT( * ), ( + - COUNT( * ) ) )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-1779
SELECT DISTINCT + COALESCE ( - 76, + - 76 ) / + 57 AS col2, - NULLIF ( COUNT ( * ), ( + - COUNT ( * ) ) )
----
-1
-1

query II rowsort
SELECT - 83 AS col1, + CASE + 95 WHEN 78 THEN - 69 ELSE NULL END * - 30
----
-83
NULL

query II rowsort
SELECT DISTINCT + 11 AS col2, + 23
----
11
23

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

skipif mysql # not compatible
query I rowsort label-1782
SELECT - CAST ( NULL AS INTEGER ) * + + 35 + + - 24
----
NULL

query I rowsort
SELECT - 12 * + 74 * - 68
----
60384

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT ALL + + 63 * - - 95 * - 99 + - + COUNT( * ) * 97 + - 38 + + 90 - + - SUM( + + 4 ) + - 93
----
-592649

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL + + 63 * - - 95 * - 99 + - + COUNT ( * ) * 97 + - 38 + + 90 - + - SUM ( + + 4 ) + - 93
----
-592649

query I rowsort
SELECT + - CASE 46 WHEN - 5 + + + 14 * + ( ( + 2 ) ) / + 51 THEN NULL ELSE + 81 * - 65 * - 9 END col0
----
-47385

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT - + 13 + 19 + + 38 + + + COUNT( * ) * + - COUNT( * ) + + - 99 + - + 13 - 15 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-1786
SELECT - + 13 + 19 + + 38 + + + COUNT ( * ) * + - COUNT ( * ) + + - 99 + - + 13 - 15 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT + - 46 * 74 * - 6 * 67 * + COUNT( * ) + - - 90 + - 33 * - 64 + + 73 * 73 AS col2
----
1375939

skipif mysql # not compatible
query I rowsort label-1787
SELECT + - 46 * 74 * - 6 * 67 * + COUNT ( * ) + - - 90 + - 33 * - 64 + + 73 * 73 AS col2
----
1375939

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1788
SELECT ALL - + 45 * - - 49 * - - 10 DIV COUNT( * ) + - 54 + 99 AS col1
----
-22005

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL - + 45 * - - 49 * - - 10 / COUNT ( * ) + - 54 + 99 AS col1
----
-22005

query I rowsort
SELECT DISTINCT + - 79 * - + 84 - + 41 + + ( + + 20 )
----
6615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1790
SELECT ALL COUNT( * ) * - - CAST( NULL AS SIGNED ) * + - ( 65 ) / CASE - 20 WHEN 69 * - + 28 * - SUM( DISTINCT ( 72 ) ) THEN + 56 END + - ( ( - 29 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * + - ( 65 ) / CASE - 20 WHEN 69 * - + 28 * - SUM ( DISTINCT ( 72 ) ) THEN + 56 END + - ( ( - 29 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT ALL - + 13 * - 4 + - - 68 + 84 + - + 75 * 41 + + COUNT( * ) + + 80 * 50
----
1130

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL - + 13 * - 4 + - - 68 + 84 + - + 75 * 41 + + COUNT ( * ) + + 80 * 50
----
1130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1792
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, - 51 * - - 69 + + ( 24 ) - 12 AS col1
----
NULL
-3507

skipif mysql # not compatible
query II rowsort label-1792
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - 51 * - - 69 + + ( 24 ) - 12 AS col1
----
NULL
-3507

query I rowsort
SELECT + 28 * + ( + + 14 ) AS col1
----
392

query I rowsort
SELECT ALL + 59 + - 4 AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-1795
SELECT - MAX( DISTINCT 65 ) - 82 * ( - + 57 ), + 53 col2
----
4609
53

skipif mysql # not compatible
query II rowsort label-1795
SELECT - MAX ( DISTINCT 65 ) - 82 * ( - + 57 ), + 53 col2
----
4609
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1796
SELECT + CAST( 27 AS SIGNED ) * - + 30 AS col0
----
-810

skipif mysql # not compatible
query I rowsort label-1796
SELECT + CAST ( 27 AS INTEGER ) * - + 30 AS col0
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT + MAX( ALL - - 82 ) * - 12 + 64 + + 54 * + 33 AS col2
----
862

skipif mysql # not compatible
query I rowsort label-1797
SELECT + MAX ( ALL - - 82 ) * - 12 + 64 + + 54 * + 33 AS col2
----
862

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT ALL 70 * + NULLIF ( - CASE 20 WHEN - + 50 * + - 98 - COUNT( * ) THEN NULL ELSE - + 98 + - COUNT( * ) * - + 74 END, - 24 ) AS col0
----
1680

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL 70 * + NULLIF ( - CASE 20 WHEN - + 50 * + - 98 - COUNT ( * ) THEN NULL ELSE - + 98 + - COUNT ( * ) * - + 74 END, - 24 ) AS col0
----
1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1799
SELECT - COALESCE ( + 96, - 96 + + COUNT( ALL + 56 ) + + 54 DIV - - COUNT( * ) )
----
-96

skipif mysql # not compatible
query I rowsort label-1799
SELECT - COALESCE ( + 96, - 96 + + COUNT ( ALL + 56 ) + + 54 / - - COUNT ( * ) )
----
-96

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

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

query I rowsort
SELECT DISTINCT - 42 - NULLIF ( - 25, - ( + - ( 86 ) ) ) AS col2
----
-17

query I rowsort
SELECT - COALESCE ( - 42, - 54 * - 73 )
----
42

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1805
SELECT ALL SUM( ALL + 83 ), - CAST( NULL AS SIGNED ) AS col0
----
83
NULL

skipif mysql # not compatible
query II rowsort label-1805
SELECT ALL SUM ( ALL + 83 ), - CAST ( NULL AS INTEGER ) AS col0
----
83
NULL

query I rowsort
SELECT + 98 * + - 10 AS col2
----
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT + ( MIN( - 36 ) ) + + 90
----
54

skipif mysql # not compatible
query I rowsort label-1807
SELECT + ( MIN ( - 36 ) ) + + 90
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT ALL CASE NULLIF ( 2, + 44 ) WHEN + 72 / - COUNT( + 83 ) THEN - COUNT( * ) / - ( 60 ) WHEN - 44 * - 56 THEN NULL ELSE NULL END * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL CASE NULLIF ( 2, + 44 ) WHEN + 72 / - COUNT ( + 83 ) THEN - COUNT ( * ) / - ( 60 ) WHEN - 44 * - 56 THEN NULL ELSE NULL END * + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT DISTINCT ( - + SUM( + 71 ) ) * + - 49 AS col0
----
3479

skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT ( - + SUM ( + 71 ) ) * + - 49 AS col0
----
3479

query I rowsort
SELECT DISTINCT + - CASE - + 13 WHEN 53 THEN NULL ELSE - 67 END
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1811
SELECT ALL - ( + 37 ) DIV - 2 + + 47 DIV + - 17 + + + 50 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL - ( + 37 ) / - 2 + + 47 / + - 17 + + + 50 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL + 14 / 14 + + NULLIF ( - CASE + 20 WHEN - COUNT( + 76 ) * - - 27 THEN - 41 WHEN + 50 THEN NULL ELSE NULL END, 61 ) + - 72 + 48 - - COUNT( * ) * - - 51 + + 6 + - ( + + COUNT( * ) ) / 60 - - 65 * + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL + 14 / 14 + + NULLIF ( - CASE + 20 WHEN - COUNT ( + 76 ) * - - 27 THEN - 41 WHEN + 50 THEN NULL ELSE NULL END, 61 ) + - 72 + 48 - - COUNT ( * ) * - - 51 + + 6 + - ( + + COUNT ( * ) ) / 60 - - 65 * + 6 AS col0
----
NULL

query I rowsort
SELECT + 4 * - + 95 + 61 + + 62 + + 56 * + - 58 AS col1
----
-3505

onlyif mysql # DIV for integer division: 
query I rowsort label-1814
SELECT DISTINCT + 64 DIV - + ( - - 91 ) + + 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + 64 / - + ( - - 91 ) + + 93 AS col1
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1815
SELECT - + 33 / + - 34 + - CAST( NULL AS DECIMAL ) + + + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1815
SELECT - + 33 / + - 34 + - CAST ( NULL AS REAL ) + + + 93 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT ALL + - 86 DIV + 42 + - + 43
----
-45

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL + - 86 / + 42 + - + 43
----
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1817
SELECT ALL - + 20 / 15 + + + 32 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL - + 20 / 15 + + + 32 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT CASE - - 6 WHEN + + 88 THEN - 28 WHEN 73 + - SUM( DISTINCT - 80 ) THEN - CASE + 90 WHEN - - 71 + - 25 THEN - COALESCE ( - 57, + + COUNT( * ) ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1818
SELECT CASE - - 6 WHEN + + 88 THEN - 28 WHEN 73 + - SUM ( DISTINCT - 80 ) THEN - CASE + 90 WHEN - - 71 + - 25 THEN - COALESCE ( - 57, + + COUNT ( * ) ) END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT + 49 + - + COUNT( ( + - 43 ) ) * + 43 - - 32 * 13 AS col0
----
422

skipif mysql # not compatible
query I rowsort label-1819
SELECT + 49 + - + COUNT ( ( + - 43 ) ) * + 43 - - 32 * 13 AS col0
----
422

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT 76 * + COUNT( * ), + 14 AS col1
----
76
14

skipif mysql # not compatible
query II rowsort label-1820
SELECT 76 * + COUNT ( * ), + 14 AS col1
----
76
14

query I rowsort
SELECT + 24 * - - 76 + 4
----
1828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1822
SELECT ALL - + CAST( NULL AS SIGNED ) / - 34 - - MIN( DISTINCT - 16 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL - + CAST ( NULL AS INTEGER ) / - 34 - - MIN ( DISTINCT - 16 ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + - 95 + + 27 AS col0
----
-68

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( - 17, + + 35 * 29 + + ( + 9 ) ) AS col0
----
17

query II rowsort
SELECT DISTINCT + + 94 + - 26 AS col1, - 61 AS col1
----
68
-61

query II rowsort
SELECT 53 + + + 21 + - + 84, 69 + - - 3 AS col0
----
-10
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT + ( + COUNT( * ) ) * + 57 - 28
----
29

skipif mysql # not compatible
query I rowsort label-1829
SELECT + ( + COUNT ( * ) ) * + 57 - 28
----
29

query II rowsort
SELECT DISTINCT 91, 39 AS col0
----
91
39

query I rowsort
SELECT 98 - 31 AS col0
----
67

query I rowsort
SELECT 72 * 67 * + 51
----
246024

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT 88 + MAX( + - ( + 27 ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-1833
SELECT 88 + MAX ( + - ( + 27 ) ) AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1834
SELECT 98 + - - ( + - 12 ) * + 60 * + CAST( + 52 AS SIGNED ) + + + 11
----
-37331

skipif mysql # not compatible
query I rowsort label-1834
SELECT 98 + - - ( + - 12 ) * + 60 * + CAST ( + 52 AS INTEGER ) + + + 11
----
-37331

query I rowsort
SELECT ALL 92 * + - COALESCE ( - 42, 66 + - 93 ) * - + 84 - + 50 AS col0
----
-324626

onlyif mysql # DIV for integer division: 
query I rowsort label-1836
SELECT 4 DIV + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1836
SELECT 4 / + 68 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1837
SELECT COUNT( * ) * + - COUNT( + ( NULLIF ( 25, - CAST( NULL AS SIGNED ) ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1837
SELECT COUNT ( * ) * + - COUNT ( + ( NULLIF ( 25, - CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1838
SELECT 17 DIV - 2 col1
----
-8

skipif mysql # not compatible
query I rowsort label-1838
SELECT 17 / - 2 col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL 56 * - + 77 * + 32 * - - MIN( ALL + 50 ) * + 3
----
-20697600

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL 56 * - + 77 * + 32 * - - MIN ( ALL + 50 ) * + 3
----
-20697600

onlyif mysql # DIV for integer division: 
query I rowsort label-1840
SELECT 94 DIV + - 22
----
-4

skipif mysql # not compatible
query I rowsort label-1840
SELECT 94 / + - 22
----
-4

query II rowsort
SELECT - 75 AS col2, 16 + - 4 AS col2
----
-75
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1842
SELECT ALL 9 + - + ( + CAST( - 42 AS SIGNED ) )
----
51

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL 9 + - + ( + CAST ( - 42 AS INTEGER ) )
----
51

query I rowsort
SELECT ALL 89 + + 40 * - 69 * + 36 + + 6 + 26 * - 9 AS col1
----
-99499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT DISTINCT COALESCE ( + NULLIF ( + 50, + CAST( NULL AS SIGNED ) * - + 47 ), - + CAST( NULL AS SIGNED ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT COALESCE ( + NULLIF ( + 50, + CAST ( NULL AS INTEGER ) * - + 47 ), - + CAST ( NULL AS INTEGER ) ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) col2
----
0

query I rowsort
SELECT 12 * - 26 - 72 AS col0
----
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT ALL - COUNT( - - 91 ) + + - SUM( DISTINCT - 69 )
----
68

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL - COUNT ( - - 91 ) + + - SUM ( DISTINCT - 69 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1848
SELECT - 47 DIV ( + 60 ) - - - 84 - - 61 + - 2 * + + 73 - + CAST( COUNT( * ) AS SIGNED ) + + ( + 6 ) + - 32
----
-196

skipif mysql # not compatible
query I rowsort label-1848
SELECT - 47 / ( + 60 ) - - - 84 - - 61 + - 2 * + + 73 - + CAST ( COUNT ( * ) AS INTEGER ) + + ( + 6 ) + - 32
----
-196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1849
SELECT 45 - + MAX( ALL + 0 ) col0, - COUNT( * ) * - 18 - + CAST( NULL AS SIGNED ) - + CAST( 41 AS DECIMAL ) + 69 col1
----
45
NULL

skipif mysql # not compatible
query II rowsort label-1849
SELECT 45 - + MAX ( ALL + 0 ) col0, - COUNT ( * ) * - 18 - + CAST ( NULL AS INTEGER ) - + CAST ( 41 AS REAL ) + 69 col1
----
45
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1850
SELECT NULLIF ( + COUNT( * ), + 19 * - 81 ), + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-1850
SELECT NULLIF ( + COUNT ( * ), + 19 * - 81 ), + COUNT ( * ) AS col1
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1851
SELECT + 51 * + COALESCE ( - - 91, 92 ) * 90 + + CAST( NULL AS DECIMAL ) * + COUNT( * ) + - + 25 col2, + 67 AS col0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-1851
SELECT + 51 * + COALESCE ( - - 91, 92 ) * 90 + + CAST ( NULL AS REAL ) * + COUNT ( * ) + - + 25 col2, + 67 AS col0
----
NULL
67

query I rowsort
SELECT 35 * - 74 + 91 + - 20 + + 65
----
-2454

onlyif mysql # aggregate syntax: 
query II rowsort label-1853
SELECT 28 AS col0, - 89 + + COUNT( * ) * + 64 * - 48
----
28
-3161

skipif mysql # not compatible
query II rowsort label-1853
SELECT 28 AS col0, - 89 + + COUNT ( * ) * + 64 * - 48
----
28
-3161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1854
SELECT COUNT( * ) - - 73 + 23 DIV - 11 - - 62 AS col2
----
134

skipif mysql # not compatible
query I rowsort label-1854
SELECT COUNT ( * ) - - 73 + 23 / - 11 - - 62 AS col2
----
134

query I rowsort
SELECT ALL - ( + + 52 ) - - 33 - 20 AS col2
----
-39

query I rowsort
SELECT + + NULLIF ( - + 84, + 30 )
----
-84

query II rowsort
SELECT + 71 AS col2, 96 * 12 AS col0
----
71
1152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1858
SELECT - CAST( - 96 AS SIGNED ) * COUNT( * ) * - + 47 * 36 AS col0
----
-162432

skipif mysql # not compatible
query I rowsort label-1858
SELECT - CAST ( - 96 AS INTEGER ) * COUNT ( * ) * - + 47 * 36 AS col0
----
-162432

query I rowsort
SELECT 94 * - + 42
----
-3948

query I rowsort
SELECT + 24 * 41 - 36 + - + 17 AS col2
----
931

query I rowsort
SELECT 92 * ( 5 ) * - 15
----
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL - NULLIF ( 14, SUM( 57 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL - NULLIF ( 14, SUM ( 57 ) )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT DISTINCT - 14 DIV + + 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT - 14 / + + 67 AS col1
----
0

query I rowsort
SELECT 82 * - - 49
----
4018

onlyif mysql # aggregate syntax: 
query II rowsort label-1865
SELECT DISTINCT MIN( DISTINCT - 92 ) AS col0, 62
----
-92
62

skipif mysql # not compatible
query II rowsort label-1865
SELECT DISTINCT MIN ( DISTINCT - 92 ) AS col0, 62
----
-92
62

query I rowsort
SELECT DISTINCT - 24 * + + 80 * 52 AS col0
----
-99840

query I rowsort
SELECT 72 * - 35 AS col1
----
-2520

query I rowsort
SELECT 7 * + - NULLIF ( + + 99, 86 ) * - 45
----
31185

onlyif mysql # DIV for integer division: 
query I rowsort label-1869
SELECT 78 - + - 0 DIV 4 col2
----
78

skipif mysql # not compatible
query I rowsort label-1869
SELECT 78 - + - 0 / 4 col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT - COUNT( * ) * - 6
----
6

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT - COUNT ( * ) * - 6
----
6

query I rowsort
SELECT 88 - 98
----
-10

query I rowsort
SELECT 97 * 2 * 76 AS col1
----
14744

onlyif mysql # aggregate syntax: 
query II rowsort label-1873
SELECT 33 * - 94 AS col1, COUNT( * ) AS col2
----
-3102
1

skipif mysql # not compatible
query II rowsort label-1873
SELECT 33 * - 94 AS col1, COUNT ( * ) AS col2
----
-3102
1

query I rowsort
SELECT 13 - - + 89 AS col2
----
102

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

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - COUNT ( * ) + + 3 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT 23 - + COUNT( * ) + - 90 + - COUNT( * ) * - COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-1876
SELECT 23 - + COUNT ( * ) + - 90 + - COUNT ( * ) * - COUNT ( * ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL COUNT( * ) * + - 47 * - - COUNT( * ) * - 38 * + 21
----
37506

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL COUNT ( * ) * + - 47 * - - COUNT ( * ) * - 38 * + 21
----
37506

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

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

query I rowsort
SELECT ALL + 2 + + 23 - - 40 * + 83 + + 89 + - 26 AS col2
----
3408

query I rowsort
SELECT - 9 + + ( - 37 ) AS col1
----
-46

query I rowsort
SELECT + 79 * 6
----
474

query I rowsort
SELECT ALL - 11 * 47 * + - 82
----
42394

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + MIN( 93 ) - + - 55
----
148

skipif mysql # not compatible
query I rowsort label-1883
SELECT + MIN ( 93 ) - + - 55
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT - MIN( - NULLIF ( 54, + + COALESCE ( + 17, 89 * + - 91 + - 70, - - 10 * - 13 ) - 33 * 65 ) ) col1
----
54

skipif mysql # not compatible
query I rowsort label-1884
SELECT - MIN ( - NULLIF ( 54, + + COALESCE ( + 17, 89 * + - 91 + - 70, - - 10 * - 13 ) - 33 * 65 ) ) col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1885
SELECT - 36 + + COUNT( * ) * 7 DIV - 21 + - 61 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-1885
SELECT - 36 + + COUNT ( * ) * 7 / - 21 + - 61 AS col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1886
SELECT + 49 * 65 - CAST( 53 AS SIGNED ) + SUM( ALL - 30 ) AS col1
----
3102

skipif mysql # not compatible
query I rowsort label-1886
SELECT + 49 * 65 - CAST ( 53 AS INTEGER ) + SUM ( ALL - 30 ) AS col1
----
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT - - MAX( - + 13 ) * - + 46 AS col1
----
598

skipif mysql # not compatible
query I rowsort label-1887
SELECT - - MAX ( - + 13 ) * - + 46 AS col1
----
598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1888
SELECT ALL + CASE + 46 WHEN - 89 - ( 34 ) THEN NULL ELSE - - COUNT( * ) + + COUNT( 69 ) * - CAST( + + 72 AS SIGNED ) END * - - MIN( ALL 40 ) - - 0 AS col0
----
-2840

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL + CASE + 46 WHEN - 89 - ( 34 ) THEN NULL ELSE - - COUNT ( * ) + + COUNT ( 69 ) * - CAST ( + + 72 AS INTEGER ) END * - - MIN ( ALL 40 ) - - 0 AS col0
----
-2840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1889
SELECT - 69 DIV + COUNT( * ) + - NULLIF ( MIN( ALL CAST( 39 AS SIGNED ) ), + 32 ) AS col2
----
-108

skipif mysql # not compatible
query I rowsort label-1889
SELECT - 69 / + COUNT ( * ) + - NULLIF ( MIN ( ALL CAST ( 39 AS INTEGER ) ), + 32 ) AS col2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL + 54 * + COUNT( * ) - + - 11
----
65

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL + 54 * + COUNT ( * ) - + - 11
----
65

query I rowsort
SELECT - - 20 * + - 15 AS col2
----
-300

query I rowsort
SELECT + 61 * + 11 AS col1
----
671

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT + SUM( + + CASE - 60 WHEN + 45 / - 56 THEN 14 WHEN ( 14 ) + 68 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1894
SELECT + SUM ( + + CASE - 60 WHEN + 45 / - 56 THEN 14 WHEN ( 14 ) + 68 THEN NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT + 91 * 21 - COUNT( * ) + + 19 * 19 AS col2
----
2271

skipif mysql # not compatible
query I rowsort label-1895
SELECT + 91 * 21 - COUNT ( * ) + + 19 * 19 AS col2
----
2271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1896
SELECT + SUM( DISTINCT - - 14 ) / - CAST( NULL AS SIGNED ) + + + 81 + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT + SUM ( DISTINCT - - 14 ) / - CAST ( NULL AS INTEGER ) + + + 81 + 75 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1897
SELECT ALL 93 * ( + + ( - 23 ) ) * + CAST( + 35 AS SIGNED ) AS col2
----
-74865

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL 93 * ( + + ( - 23 ) ) * + CAST ( + 35 AS INTEGER ) AS col2
----
-74865

query II rowsort
SELECT DISTINCT + 20 AS col2, 13 * + + 5 AS col0
----
20
65

query I rowsort
SELECT ALL 46 * 16 * + 58
----
42688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1900
SELECT + SUM( DISTINCT + + 4 ) DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-1900
SELECT + SUM ( DISTINCT + + 4 ) / + 53
----
0

query I rowsort
SELECT + 57 * 47
----
2679

query I rowsort
SELECT + 75 - 67
----
8

query I rowsort
SELECT ALL 40 + 92 AS col2
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1904
SELECT + ( + 77 ) + + MAX( ALL + 66 ) DIV - COUNT( * ) AS col0, - NULLIF ( ( - COUNT( * ) ), - + 71 )
----
11
1

skipif mysql # not compatible
query II rowsort label-1904
SELECT + ( + 77 ) + + MAX ( ALL + 66 ) / - COUNT ( * ) AS col0, - NULLIF ( ( - COUNT ( * ) ), - + 71 )
----
11
1

query I rowsort
SELECT - 27 + 18 + 47 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT SUM( + 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1906
SELECT SUM ( + 51 ) AS col2
----
51

query I rowsort
SELECT + 98 * + + 92 AS col2
----
9016

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT ALL - ( 6 ) * + MIN( - 95 ) * + 38 * - COALESCE ( - 50, + - 32 + - COUNT( * ), - 29 * - + 25 ) col1
----
1083000

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL - ( 6 ) * + MIN ( - 95 ) * + 38 * - COALESCE ( - 50, + - 32 + - COUNT ( * ), - 29 * - + 25 ) col1
----
1083000

query I rowsort
SELECT - 68 + - + CASE + 48 WHEN 48 THEN NULL WHEN + 27 + - 4 * + 33 * + 39 THEN - + 42 + - ( + 35 ) + + ( 10 ) * + ( 34 ) * - 38 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT DISTINCT SUM( - 45 ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT SUM ( - 45 ) col1
----
-45

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

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

query I rowsort
SELECT + 7 * - - COALESCE ( - 36, 18, + 8 ) + - 85 AS col2
----
-337

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT - MAX( + - 23 ) col0
----
23

skipif mysql # not compatible
query I rowsort label-1913
SELECT - MAX ( + - 23 ) col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT ALL + - NULLIF ( - 47, + COALESCE ( 46, 73 + - 50 * - 11 ) + - NULLIF ( + - 57, 67 ) + + COUNT( * ) ) - + MAX( ALL - - 6 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL + - NULLIF ( - 47, + COALESCE ( 46, 73 + - 50 * - 11 ) + - NULLIF ( + - 57, 67 ) + + COUNT ( * ) ) - + MAX ( ALL - - 6 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-1915
SELECT 83 AS col2, 18 + - COUNT( ALL - - 65 ) + + - 96 AS col2
----
83
-79

skipif mysql # not compatible
query II rowsort label-1915
SELECT 83 AS col2, 18 + - COUNT ( ALL - - 65 ) + + - 96 AS col2
----
83
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-1916
SELECT ALL COUNT( * ), - 98 * + MIN( ALL 27 ) AS col1
----
1
-2646

skipif mysql # not compatible
query II rowsort label-1916
SELECT ALL COUNT ( * ), - 98 * + MIN ( ALL 27 ) AS col1
----
1
-2646

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT - 65 + - COUNT( ALL + 93 )
----
-66

skipif mysql # not compatible
query I rowsort label-1917
SELECT - 65 + - COUNT ( ALL + 93 )
----
-66

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

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

query I rowsort
SELECT - 79 * 85
----
-6715

onlyif mysql # DIV for integer division: 
query I rowsort label-1920
SELECT 75 DIV 33 * 43 - - ( + 37 ) * + 52 + - ( + 85 ) + - 72 AS col1
----
1853

skipif mysql # not compatible
query I rowsort label-1920
SELECT 75 / 33 * 43 - - ( + 37 ) * + 52 + - ( + 85 ) + - 72 AS col1
----
1853

query II rowsort
SELECT - NULLIF ( 20, + 61 + + 8 + + ( ( - 55 ) ) / + 89 * + 63 * + + 36 ) - 7 AS col0, + 93
----
-27
93

query I rowsort
SELECT ALL - 14 * + 14 AS col2
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT - + COUNT( * ) * 53 + + - 41
----
-94

skipif mysql # not compatible
query I rowsort label-1923
SELECT - + COUNT ( * ) * 53 + + - 41
----
-94

query II rowsort
SELECT DISTINCT + ( + - 71 ) AS col1, 97 * - 52 * + 10 * - ( + 32 )
----
-71
1614080

query I rowsort
SELECT + ( + - NULLIF ( - - 0, 3 * + - 1 ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1926
SELECT ALL - 2 * + COALESCE ( 3, + 36 ) * + + 76 * 35 - - CAST( NULL AS SIGNED ) + + 58 + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL - 2 * + COALESCE ( 3, + 36 ) * + + 76 * 35 - - CAST ( NULL AS INTEGER ) + + 58 + - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT NULLIF ( + COUNT( * ), 2 * - COUNT( * ) + + - 38 * - 73 * 22 )
----
1

skipif mysql # not compatible
query I rowsort label-1927
SELECT NULLIF ( + COUNT ( * ), 2 * - COUNT ( * ) + + - 38 * - 73 * 22 )
----
1

query I rowsort
SELECT 70 * + - 41 + + + 58 * - 39
----
-5132

query I rowsort
SELECT ALL 93 * - 94 + + ( ( + 65 ) )
----
-8677

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1930
SELECT + 16 * 73 DIV + COUNT( * )
----
1168

skipif mysql # not compatible
query I rowsort label-1930
SELECT + 16 * 73 / + COUNT ( * )
----
1168

query I rowsort
SELECT ALL + 86 * - 92 + 4
----
-7908

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL + 8 * + COUNT( * ) + - 85 * + 32
----
-2712

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + 8 * + COUNT ( * ) + - 85 * + 32
----
-2712

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1934
SELECT + 68 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-1934
SELECT + 68 / + 72
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT ( 71 ) * - + 28 AS col2
----
-1988

query II rowsort
SELECT - 82 AS col1, 8 AS col1
----
-82
8

query I rowsort
SELECT - 0 * - 86
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1940
SELECT DISTINCT + 61 DIV - + NULLIF ( - 34, 51 ) col1, 53 col2
----
1
53

skipif mysql # not compatible
query II rowsort label-1940
SELECT DISTINCT + 61 / - + NULLIF ( - 34, 51 ) col1, 53 col2
----
1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT + COUNT( * ) * + COUNT( DISTINCT 71 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1941
SELECT + COUNT ( * ) * + COUNT ( DISTINCT 71 ) col1
----
1

query I rowsort
SELECT - 27 - 86 AS col0
----
-113

query I rowsort
SELECT 20 - - 67
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT CASE + ( - - 22 ) WHEN - 64 THEN NULL WHEN - - COUNT( * ) THEN - 95 + + NULLIF ( ( - 20 ), 47 / + ( - MAX( + - 38 ) ) * 80 - - - 64 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT CASE + ( - - 22 ) WHEN - 64 THEN NULL WHEN - - COUNT ( * ) THEN - 95 + + NULLIF ( ( - 20 ), 47 / + ( - MAX ( + - 38 ) ) * 80 - - - 64 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1945
SELECT 30 * + CASE + 73 WHEN 44 THEN ( - - 6 ) + + 82 WHEN - COUNT( DISTINCT - 66 ) THEN + COALESCE ( + + 47, - ( 81 ) + CASE 25 WHEN - 20 THEN + 13 * 27 * MIN( - CAST( - - ( + + 64 ) AS SIGNED ) ) ELSE NULL END ) * + 48 * 56 * + 38 + + ( + 93 ) WHEN 42 + ( + 85 ) THEN + 16 * CAST( + 41 AS DECIMAL ) + - 16 END + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1945
SELECT 30 * + CASE + 73 WHEN 44 THEN ( - - 6 ) + + 82 WHEN - COUNT ( DISTINCT - 66 ) THEN + COALESCE ( + + 47, - ( 81 ) + CASE 25 WHEN - 20 THEN + 13 * 27 * MIN ( - CAST ( - - ( + + 64 ) AS INTEGER ) ) ELSE NULL END ) * + 48 * 56 * + 38 + + ( + 93 ) WHEN 42 + ( + 85 ) THEN + 16 * CAST ( + 41 AS REAL ) + - 16 END + 66 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1946
SELECT 46 + + SUM( DISTINCT + + CAST( NULL AS DECIMAL ) ) + 92 - + 75 * + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1946
SELECT 46 + + SUM ( DISTINCT + + CAST ( NULL AS REAL ) ) + 92 - + 75 * + - 48
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT - 43 * COUNT( * ) - 9 * - SUM( ALL 70 )
----
587

skipif mysql # not compatible
query I rowsort label-1948
SELECT - 43 * COUNT ( * ) - 9 * - SUM ( ALL 70 )
----
587

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT ALL 13 * CASE - 21 WHEN - 0 / MAX( DISTINCT COALESCE ( 15, 88 ) ) THEN + + 34 ELSE + 91 END AS col1
----
1183

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL 13 * CASE - 21 WHEN - 0 / MAX ( DISTINCT COALESCE ( 15, 88 ) ) THEN + + 34 ELSE + 91 END AS col1
----
1183

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

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL - COUNT ( DISTINCT + 46 ) AS col0
----
-1

query I rowsort
SELECT ALL + 94 + - NULLIF ( - 97, + 27 )
----
191

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1952
SELECT + ( + + 54 ) * + NULLIF ( 80, + + COUNT( * ) + - COALESCE ( COUNT( * ), 80, - 86 ) ) + - 13 DIV COUNT( * ) col2, 34 col2
----
4307
34

skipif mysql # not compatible
query II rowsort label-1952
SELECT + ( + + 54 ) * + NULLIF ( 80, + + COUNT ( * ) + - COALESCE ( COUNT ( * ), 80, - 86 ) ) + - 13 / COUNT ( * ) col2, 34 col2
----
4307
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1953
SELECT 98 * - CAST( 85 AS SIGNED ) * MIN( DISTINCT + 45 ) - - COUNT( * ) * + 0 * - 4 + - 97 AS col2
----
-374947

skipif mysql # not compatible
query I rowsort label-1953
SELECT 98 * - CAST ( 85 AS INTEGER ) * MIN ( DISTINCT + 45 ) - - COUNT ( * ) * + 0 * - 4 + - 97 AS col2
----
-374947

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT 83 DIV 92 + - 30 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1954
SELECT 83 / 92 + - 30 AS col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1955
SELECT DISTINCT + 92 DIV + COUNT( DISTINCT - 49 )
----
92

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT + 92 / + COUNT ( DISTINCT - 49 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT ALL - 38 + - COUNT( ALL + - 6 ) + MAX( - ( - 31 ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL - 38 + - COUNT ( ALL + - 6 ) + MAX ( - ( - 31 ) ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT DISTINCT + MAX( ALL + - ( 63 ) ) + 27
----
-36

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT + MAX ( ALL + - ( 63 ) ) + 27
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1958
SELECT DISTINCT + COUNT( * ) + - + 73 - + - 62 - + ( - 62 ) * 99 DIV + NULLIF ( 68, + + 87 * - 85 )
----
80

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT + COUNT ( * ) + - + 73 - + - 62 - + ( - 62 ) * 99 / + NULLIF ( 68, + + 87 * - 85 )
----
80

query I rowsort
SELECT 23 + + 16 * + - 66
----
-1033

query I rowsort
SELECT 32 + 3 * - 77
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1961
SELECT 3 * - - CAST( NULL AS SIGNED ) + - 26 / + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT 3 * - - CAST ( NULL AS INTEGER ) + - 26 / + 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1962
SELECT 13 + + + CASE + 6 WHEN - 42 THEN 12 END + + NULLIF ( - COUNT( * ), 23 + + - COUNT( * ) * 34 * 63 * - NULLIF ( - 13, - COUNT( CAST( - COALESCE ( - 39, + ( - 17 ) ) AS DECIMAL ) ) * + 47 + + 77 + - 59 ) - - + 92 - - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT 13 + + + CASE + 6 WHEN - 42 THEN 12 END + + NULLIF ( - COUNT ( * ), 23 + + - COUNT ( * ) * 34 * 63 * - NULLIF ( - 13, - COUNT ( CAST ( - COALESCE ( - 39, + ( - 17 ) ) AS REAL ) ) * + 47 + + 77 + - 59 ) - - + 92 - - 33 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1963
SELECT - 0 * - 57 - - + COUNT( * ) + - - 37 + - CASE + + ( CAST( + 67 AS SIGNED ) ) WHEN 62 THEN 35 * + + 23 * - + 63 + COUNT( DISTINCT + - 75 ) WHEN COUNT( * ) THEN 0 END + + 15 - + - 93 * + 79 * - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1963
SELECT - 0 * - 57 - - + COUNT ( * ) + - - 37 + - CASE + + ( CAST ( + 67 AS INTEGER ) ) WHEN 62 THEN 35 * + + 23 * - + 63 + COUNT ( DISTINCT + - 75 ) WHEN COUNT ( * ) THEN 0 END + + 15 - + - 93 * + 79 * - 49 AS col0
----
NULL

query I rowsort
SELECT 22 + - - ( + 34 )
----
56

query I rowsort
SELECT 40 * 61 - 50 col1
----
2390

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

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT - COUNT ( * ) * + SUM ( DISTINCT + 80 ) AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1967
SELECT + 25 + + NULLIF ( - 35, + ( - COUNT( + 28 ) ) * - 64 + + 56 / 58 + + 74 / + + ( - 13 ) + 0 + + 32 ) * - CAST( - 15 AS SIGNED ) + 15 AS col2
----
-485

skipif mysql # not compatible
query I rowsort label-1967
SELECT + 25 + + NULLIF ( - 35, + ( - COUNT ( + 28 ) ) * - 64 + + 56 / 58 + + 74 / + + ( - 13 ) + 0 + + 32 ) * - CAST ( - 15 AS INTEGER ) + 15 AS col2
----
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT COUNT( * ) + - 38 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-1968
SELECT COUNT ( * ) + - 38 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-1969
SELECT - - ( - + 20 ) AS col2, + MAX( ALL 64 ) * + + 31 + + 34 + + - NULLIF ( - + 80, - 14 + + 45 + - ( + NULLIF ( + + COUNT( * ), + COUNT( * ) ) ) ) * COALESCE ( 9, + 41 ) AS col1
----
-20
2738

skipif mysql # not compatible
query II rowsort label-1969
SELECT - - ( - + 20 ) AS col2, + MAX ( ALL 64 ) * + + 31 + + 34 + + - NULLIF ( - + 80, - 14 + + 45 + - ( + NULLIF ( + + COUNT ( * ), + COUNT ( * ) ) ) ) * COALESCE ( 9, + 41 ) AS col1
----
-20
2738

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT DISTINCT + CASE - - COUNT( * ) WHEN 99 * MAX( - ( - + 67 ) ) + - - 23 THEN MIN( + 31 ) * 58 WHEN - 9 * - 94 * + ( - 93 ) + - 10 * - 43 * 65 THEN - 75 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT + CASE - - COUNT ( * ) WHEN 99 * MAX ( - ( - + 67 ) ) + - - 23 THEN MIN ( + 31 ) * 58 WHEN - 9 * - 94 * + ( - 93 ) + - 10 * - 43 * 65 THEN - 75 END col2
----
NULL

query I rowsort
SELECT 45 * - 69
----
-3105

query II rowsort
SELECT + 18 * + + 38 AS col1, 46 AS col0
----
684
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT ALL - - 79 + + COALESCE ( 7, + + 96 + COUNT( * ) ) * - 51 + + 3 + 45 * + - 80 col0
----
-3875

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL - - 79 + + COALESCE ( 7, + + 96 + COUNT ( * ) ) * - 51 + + 3 + 45 * + - 80 col0
----
-3875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1974
SELECT DISTINCT + + ( MIN( ALL + + CAST( NULL AS SIGNED ) ) ) + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT + + ( MIN ( ALL + + CAST ( NULL AS INTEGER ) ) ) + 20 AS col2
----
NULL

query I rowsort
SELECT 14 + - 73
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT + 68 * - 72 * COUNT( * ) AS col1
----
-4896

skipif mysql # not compatible
query I rowsort label-1976
SELECT + 68 * - 72 * COUNT ( * ) AS col1
----
-4896

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

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

query I rowsort
SELECT 81 - + - 92 AS col0
----
173

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

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

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

skipif mysql # not compatible
query I rowsort label-1980
SELECT COUNT ( ALL + 89 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1981
SELECT - 41 / + 75 * - 61 * 67 + - - 27 + - 19 * + ( + - MAX( ALL 82 ) ) * - AVG ( - CAST( NULL AS SIGNED ) ) AS col2, 86 + - 21
----
NULL
65

skipif mysql # not compatible
query II rowsort label-1981
SELECT - 41 / + 75 * - 61 * 67 + - - 27 + - 19 * + ( + - MAX ( ALL 82 ) ) * - AVG ( - CAST ( NULL AS INTEGER ) ) AS col2, 86 + - 21
----
NULL
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1982
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), - 39 - - - 54 - - + CAST( 66 AS SIGNED ) ) * 17 + COALESCE ( NULLIF ( + 86, - + 76 / + COUNT( * ) + - 49 * COUNT( * ) ), 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), - 39 - - - 54 - - + CAST ( 66 AS INTEGER ) ) * 17 + COALESCE ( NULLIF ( + 86, - + 76 / + COUNT ( * ) + - 49 * COUNT ( * ) ), 43 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1983
SELECT ALL - 48 * + 8 / ( 56 ) * - 15 + - + ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL - 48 * + 8 / ( 56 ) * - 15 + - + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 13 + + 54
----
67

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

skipif mysql # not compatible
query II rowsort label-1985
SELECT COUNT ( * ) AS col1, 55
----
1
55

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

skipif mysql # not compatible
query I rowsort label-1986
SELECT SUM ( + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT + 39 * + ( + NULLIF ( - ( - - 3 ), MAX( DISTINCT + 79 ) ) )
----
-117

skipif mysql # not compatible
query I rowsort label-1987
SELECT + 39 * + ( + NULLIF ( - ( - - 3 ), MAX ( DISTINCT + 79 ) ) )
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1988
SELECT ALL - COUNT( * ) DIV - 90 * + 16 * - COUNT( 28 ) * + COUNT( * ) + 59
----
59

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL - COUNT ( * ) / - 90 * + 16 * - COUNT ( 28 ) * + COUNT ( * ) + 59
----
59

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

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

query I rowsort
SELECT - 62 + 0 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT ALL + MIN( 70 ) - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL + MIN ( 70 ) - - COUNT ( * )
----
71

query I rowsort
SELECT ALL - 17 * 8
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1993
SELECT ALL 15 DIV 70 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL 15 / 70 * + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT DISTINCT CASE + 95 WHEN - MAX( - ( - 69 ) ) THEN - 12 * + 3 WHEN + 61 * COUNT( DISTINCT - + 89 ) THEN NULL END - + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT CASE + 95 WHEN - MAX ( - ( - 69 ) ) THEN - 12 * + 3 WHEN + 61 * COUNT ( DISTINCT - + 89 ) THEN NULL END - + 59 AS col2
----
NULL

query I rowsort
SELECT ALL + 45 * - - 18 AS col1
----
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1996
SELECT - - CASE - 31 WHEN + 79 THEN - COUNT( * ) ELSE - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT - - CASE - 31 WHEN + 79 THEN - COUNT ( * ) ELSE - CAST ( NULL AS INTEGER ) END
----
NULL

query II rowsort
SELECT ALL 62 AS col0, ( 7 ) col1
----
62
7

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

query I rowsort
SELECT - 3 + - 4 AS col2
----
-7

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2001
SELECT ALL + COUNT( * ) + + + NULLIF ( 13, + CASE - 50 WHEN + CAST( NULL AS DECIMAL ) THEN 41 / + - CASE 2 WHEN + 93 * - 49 + + + 89 + + 63 THEN - + 63 - 33 + COALESCE ( + + ( + - 56 ), - 69 * - - 62 * CASE 43 WHEN + 18 + 59 THEN NULL ELSE - 72 / 70 + + ( ( - 83 ) ) END * + COUNT( * ) + COUNT( * ), - ( 26 ) ) * - 85 WHEN 96 * + COUNT( 11 ) + - 26 THEN NULL END END + 59 ) col0
----
14

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL + COUNT ( * ) + + + NULLIF ( 13, + CASE - 50 WHEN + CAST ( NULL AS REAL ) THEN 41 / + - CASE 2 WHEN + 93 * - 49 + + + 89 + + 63 THEN - + 63 - 33 + COALESCE ( + + ( + - 56 ), - 69 * - - 62 * CASE 43 WHEN + 18 + 59 THEN NULL ELSE - 72 / 70 + + ( ( - 83 ) ) END * + COUNT ( * ) + COUNT ( * ), - ( 26 ) ) * - 85 WHEN 96 * + COUNT ( 11 ) + - 26 THEN NULL END END + 59 ) col0
----
14

query I rowsort
SELECT - + 21 - - + 19
----
-2

query I rowsort
SELECT ALL - ( - 89 )
----
89

query II rowsort
SELECT ALL - 39 AS col1, + 57
----
-39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT DISTINCT + - 97 + + 82 - ( + COUNT( * ) ) * 46
----
-61

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT + - 97 + + 82 - ( + COUNT ( * ) ) * 46
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT ALL COUNT( * ) + - 58 + + 56 * + COUNT( * ) + - + 39
----
-40

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL COUNT ( * ) + - 58 + + 56 * + COUNT ( * ) + - + 39
----
-40

query I rowsort
SELECT + 11 - - 48 col0
----
59

query II rowsort
SELECT ALL - 75 * - 99 AS col1, 25 * 31 col1
----
7425
775

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT ALL 37 DIV + - 66 * - - 83 + + 96 * - 76 AS col0
----
-7296

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL 37 / + - 66 * - - 83 + + 96 * - 76 AS col0
----
-7296

query I rowsort
SELECT + 75 * + + 39 AS col2
----
2925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2011
SELECT ALL 81 DIV COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL 81 / COUNT ( * ) AS col0
----
81

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2013
SELECT 21 * + 35 * + 81 * 79 + + - CASE - CAST( NULL AS SIGNED ) WHEN 95 + ( - + 58 ) * - - SUM( DISTINCT - 52 ) * + + 73 + + 62 THEN NULL WHEN MAX( ( - + 67 ) ) * - + 69 THEN 5 ELSE 0 END + + 24 AS col0
----
4703289

skipif mysql # not compatible
query I rowsort label-2013
SELECT 21 * + 35 * + 81 * 79 + + - CASE - CAST ( NULL AS INTEGER ) WHEN 95 + ( - + 58 ) * - - SUM ( DISTINCT - 52 ) * + + 73 + + 62 THEN NULL WHEN MAX ( ( - + 67 ) ) * - + 69 THEN 5 ELSE 0 END + + 24 AS col0
----
4703289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2014
SELECT + CAST( - 93 AS SIGNED ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-2014
SELECT + CAST ( - 93 AS INTEGER ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-2015
SELECT + 57 + - - COUNT( * ) AS col1, 55 AS col0
----
58
55

skipif mysql # not compatible
query II rowsort label-2015
SELECT + 57 + - - COUNT ( * ) AS col1, 55 AS col0
----
58
55

query I rowsort
SELECT + 15 * 2
----
30

query II rowsort
SELECT - 21 * - + 85, - 20 AS col1
----
1785
-20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT 77 * + - 21 + + COALESCE ( + 38, + 36 * + COUNT( * ) + - 55, - - 76 ) + - COUNT( * ) AS col0
----
-1580

skipif mysql # not compatible
query I rowsort label-2019
SELECT 77 * + - 21 + + COALESCE ( + 38, + 36 * + COUNT ( * ) + - 55, - - 76 ) + - COUNT ( * ) AS col0
----
-1580

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT DISTINCT 9 * COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT 9 * COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT - COALESCE ( SUM( + ( - 82 ) ), ( 47 ) * ( + 21 ) ) + - ( - 56 ) - 64 + + 22 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-2021
SELECT - COALESCE ( SUM ( + ( - 82 ) ), ( 47 ) * ( + 21 ) ) + - ( - 56 ) - 64 + + 22 AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2022
SELECT + 83 * - 44 * - 6 + - 20, - ( - - CASE + AVG ( ALL - CASE - ( + 9 ) WHEN + - 85 THEN NULL WHEN 50 + - 20 THEN - CAST( NULL AS SIGNED ) * - ( - 44 ) * 58 / + 27 END ) WHEN - 4 - 26 + - 15 THEN NULL ELSE CAST( 88 AS SIGNED ) END ) AS col0
----
21892
-88

skipif mysql # not compatible
query II rowsort label-2022
SELECT + 83 * - 44 * - 6 + - 20, - ( - - CASE + AVG ( ALL - CASE - ( + 9 ) WHEN + - 85 THEN NULL WHEN 50 + - 20 THEN - CAST ( NULL AS INTEGER ) * - ( - 44 ) * 58 / + 27 END ) WHEN - 4 - 26 + - 15 THEN NULL ELSE CAST ( 88 AS INTEGER ) END ) AS col0
----
21892
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2023
SELECT - - COUNT( * ) + - 56 * - COALESCE ( + CAST( - 7 AS SIGNED ), ( 25 ) )
----
-391

skipif mysql # not compatible
query I rowsort label-2023
SELECT - - COUNT ( * ) + - 56 * - COALESCE ( + CAST ( - 7 AS INTEGER ), ( 25 ) )
----
-391

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT DISTINCT - COUNT( * ) * - ( + 81 ) + + 42
----
123

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT - COUNT ( * ) * - ( + 81 ) + + 42
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT DISTINCT + 12 * - 82 + - - COUNT( + 92 ) AS col1
----
-983

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT + 12 * - 82 + - - COUNT ( + 92 ) AS col1
----
-983

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT + - COUNT( * ) * - ( + MIN( ALL 17 ) ) + - + 3
----
14

skipif mysql # not compatible
query I rowsort label-2026
SELECT + - COUNT ( * ) * - ( + MIN ( ALL 17 ) ) + - + 3
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2027
SELECT ALL + 45 * + 24 - - + MAX( ALL - 86 ), 80 + + - 38 + + + 47 * - COUNT( * ) + + ( + 32 ) * + ( ( + + 93 ) ) AS col1
----
994
2971

skipif mysql # not compatible
query II rowsort label-2027
SELECT ALL + 45 * + 24 - - + MAX ( ALL - 86 ), 80 + + - 38 + + + 47 * - COUNT ( * ) + + ( + 32 ) * + ( ( + + 93 ) ) AS col1
----
994
2971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2028
SELECT ALL - - CAST( NULL AS SIGNED ) * + NULLIF ( - 86, + 46 ), + COUNT( * ) + - 54 AS col2
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-2028
SELECT ALL - - CAST ( NULL AS INTEGER ) * + NULLIF ( - 86, + 46 ), + COUNT ( * ) + - 54 AS col2
----
NULL
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT - 23 + + 18 + 89 + 49 DIV 65 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2029
SELECT - 23 + + 18 + 89 + 49 / 65 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT DISTINCT - 54 + + + MAX( 94 ) + + - 98 * - COUNT( - 2 )
----
138

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT - 54 + + + MAX ( 94 ) + + - 98 * - COUNT ( - 2 )
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2031
SELECT - 89 * CAST( NULL AS SIGNED ) / - 68 - 72 AS col2, + 31 + + 59 * NULLIF ( + 71, - 69 ) AS col1
----
NULL
4220

skipif mysql # not compatible
query II rowsort label-2031
SELECT - 89 * CAST ( NULL AS INTEGER ) / - 68 - 72 AS col2, + 31 + + 59 * NULLIF ( + 71, - 69 ) AS col1
----
NULL
4220

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL COALESCE ( - 39, - + 58, - ( COUNT( * ) ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL COALESCE ( - 39, - + 58, - ( COUNT ( * ) ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT - - SUM( 97 ) + 36 * + 76 - - 14 + 8 AS col0
----
2855

skipif mysql # not compatible
query I rowsort label-2033
SELECT - - SUM ( 97 ) + 36 * + 76 - - 14 + 8 AS col0
----
2855

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2035
SELECT + + ( + + 25 ) + 62 - + + 78 + - 47 DIV 79
----
9

skipif mysql # not compatible
query I rowsort label-2035
SELECT + + ( + + 25 ) + 62 - + + 78 + - 47 / 79
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2036
SELECT ALL CAST( - + ( - ( 11 ) ) AS SIGNED ) - + 49 col1
----
-38

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL CAST ( - + ( - ( 11 ) ) AS INTEGER ) - + 49 col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2037
SELECT ALL CAST( COUNT( 17 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL CAST ( COUNT ( 17 ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2038
SELECT ALL - COALESCE ( - 20, + 79 DIV + CAST( - 61 AS SIGNED ), + 1 ) * 88 * + 3 AS col0
----
5280

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL - COALESCE ( - 20, + 79 / + CAST ( - 61 AS INTEGER ), + 1 ) * 88 * + 3 AS col0
----
5280

query I rowsort
SELECT ALL - 89 - 63
----
-152

query I rowsort
SELECT 16 - 16 + + 75
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2041
SELECT MAX( DISTINCT 45 ) DIV 73 - - 46 + - 84 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-2041
SELECT MAX ( DISTINCT 45 ) / 73 - - 46 + - 84 AS col1
----
-38

query I rowsort
SELECT 22 * 88 AS col0
----
1936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2043
SELECT + 89 * CAST( + + 30 AS SIGNED ) + - 38 + COALESCE ( + SUM( DISTINCT + 87 ), - 74 DIV + + 64 ) * 90 AS col2
----
10462

skipif mysql # not compatible
query I rowsort label-2043
SELECT + 89 * CAST ( + + 30 AS INTEGER ) + - 38 + COALESCE ( + SUM ( DISTINCT + 87 ), - 74 / + + 64 ) * 90 AS col2
----
10462

query II rowsort
SELECT 78, 97 AS col2
----
78
97

query I rowsort
SELECT - ( + - ( - 38 ) ) * 72 + - 27
----
-2763

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT + 71 * + 74 DIV + 1
----
5254

skipif mysql # not compatible
query I rowsort label-2046
SELECT + 71 * + 74 / + 1
----
5254

query I rowsort
SELECT DISTINCT 50 * 27 AS col1
----
1350

onlyif mysql # aggregate syntax: 
query II rowsort label-2048
SELECT ALL + MIN( ALL 44 ) + - - 20 col2, - 55 * - 24 + - 41 + - 5
----
64
1274

skipif mysql # not compatible
query II rowsort label-2048
SELECT ALL + MIN ( ALL 44 ) + - - 20 col2, - 55 * - 24 + - 41 + - 5
----
64
1274

query I rowsort
SELECT ALL 77 + + + 2 - + 40 * - 66 + - 77 * - - 93 * + + 16 AS col1
----
-111857

query I rowsort
SELECT + 60 - + 62 + - 63 + - + 61 col2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT SUM( 78 ) + + 71
----
149

skipif mysql # not compatible
query I rowsort label-2051
SELECT SUM ( 78 ) + + 71
----
149

query I rowsort
SELECT + 43 * 8 + + NULLIF ( - + 79, + 85 )
----
265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2053
SELECT ALL + + 42 DIV - 66 + CASE WHEN NOT - 50 <= - + 85 * 97 * + + COUNT( * ) THEN + + 11 ELSE NULL END * + - ( - ( - 44 ) ) col0
----
-484

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL + + 42 / - 66 + CASE WHEN NOT - 50 <= - + 85 * 97 * + + COUNT ( * ) THEN + + 11 ELSE NULL END * + - ( - ( - 44 ) ) col0
----
-484

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2055
SELECT + 87 + 41 * 3 + + MAX( DISTINCT + - CAST( NULL AS DECIMAL ) ) + + + ( 61 ) - - COUNT( * ) - + + 59 + - - 89 + + + ( + COUNT( * ) ) * + 39 * + - 90 + + + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT + 87 + 41 * 3 + + MAX ( DISTINCT + - CAST ( NULL AS REAL ) ) + + + ( 61 ) - - COUNT ( * ) - + + 59 + - - 89 + + + ( + COUNT ( * ) ) * + 39 * + - 90 + + + 68 AS col2
----
NULL

query II rowsort
SELECT - 20 AS col1, - 97 * - 80 * 10 * + 9 AS col2
----
-20
698400

query II rowsort
SELECT - 43, 47 AS col0
----
-43
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2058
SELECT ALL 80 DIV + COALESCE ( - 71, + - MAX( - 88 ) + 4 + + 55, - 38, + COALESCE ( + 56, - 35 ) + - COUNT( * ) ) + 93 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL 80 / + COALESCE ( - 71, + - MAX ( - 88 ) + 4 + + 55, - 38, + COALESCE ( + 56, - 35 ) + - COUNT ( * ) ) + 93 AS col1
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2059
SELECT ALL 31, + 50 * - 81 + + NULLIF ( + 9, 59 * - ( COUNT( * ) ) * COUNT( * ) * - 0 / - COUNT( * ) ) AS col2
----
31
-4041

skipif mysql # not compatible
query II rowsort label-2059
SELECT ALL 31, + 50 * - 81 + + NULLIF ( + 9, 59 * - ( COUNT ( * ) ) * COUNT ( * ) * - 0 / - COUNT ( * ) ) AS col2
----
31
-4041

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT 16 - - COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2060
SELECT 16 - - COUNT ( * ) AS col1
----
17

query II rowsort
SELECT DISTINCT - ( - - 24 ) * + 24 * 16, 1 AS col0
----
-9216
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT ALL + COUNT( * ) - - 24
----
25

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL + COUNT ( * ) - - 24
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2063
SELECT CAST( - - CASE + 86 WHEN - 17 * COUNT( * ) THEN + - 57 WHEN - + 46 THEN + 47 END AS SIGNED ) / - + 62 / - 1 * + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT CAST ( - - CASE + 86 WHEN - 17 * COUNT ( * ) THEN + - 57 WHEN - + 46 THEN + 47 END AS INTEGER ) / - + 62 / - 1 * + 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2064
SELECT 32 * - COUNT( * ) AS col1, 91 * - CASE - 86 WHEN + + 9 THEN + 13 WHEN + 13 THEN NULL WHEN - 91 THEN + + 90 + 33 WHEN + 19 * - + 56 - + 16 * 29 THEN - ( - - 8 ) * - + COUNT( * ) + - 26 + - 77 - + 20 + 34 * - - 65 + 50 + 87 END
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-2064
SELECT 32 * - COUNT ( * ) AS col1, 91 * - CASE - 86 WHEN + + 9 THEN + 13 WHEN + 13 THEN NULL WHEN - 91 THEN + + 90 + 33 WHEN + 19 * - + 56 - + 16 * 29 THEN - ( - - 8 ) * - + COUNT ( * ) + - 26 + - 77 - + 20 + 34 * - - 65 + 50 + 87 END
----
-32
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2065
SELECT 36 + - CASE 19 WHEN 82 THEN + 84 WHEN + 50 / + + COUNT( - - ( - 12 ) ) THEN NULL END AS col2, 57 AS col2
----
NULL
57

skipif mysql # not compatible
query II rowsort label-2065
SELECT 36 + - CASE 19 WHEN 82 THEN + 84 WHEN + 50 / + + COUNT ( - - ( - 12 ) ) THEN NULL END AS col2, 57 AS col2
----
NULL
57

query I rowsort
SELECT 42 * + 81 * - 99
----
-336798

query I rowsort
SELECT 16 + - 36
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-2068
SELECT 25 + 71 DIV + 85 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-2068
SELECT 25 + 71 / + 85 AS col1
----
25

query II rowsort
SELECT DISTINCT 6 AS col1, - 46 * + - 30 AS col0
----
6
1380

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

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT - MIN ( - CAST ( 67 AS INTEGER ) ) AS col1
----
67

query II rowsort
SELECT DISTINCT - 19, 87 + - - ( - - 12 ) + 53 AS col2
----
-19
152

query II rowsort
SELECT ALL 74 * - + COALESCE ( - 92, + + 19 ), - 34 * - 21 col0
----
6808
714

query I rowsort
SELECT 57 * - 72 * - 88
----
361152

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2075
SELECT 13 DIV - COUNT( * ) + 80 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-2075
SELECT 13 / - COUNT ( * ) + 80 AS col2
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-2076
SELECT DISTINCT - 9 AS col0, - 53 DIV 72
----
-9
0

skipif mysql # not compatible
query II rowsort label-2076
SELECT DISTINCT - 9 AS col0, - 53 / 72
----
-9
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2078
SELECT CASE + + 29 WHEN 44 THEN - - 74 / - SUM( DISTINCT + 71 ) + + - 86 * + COUNT( * ) END * 43 AS col0, - 80 AS col1
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-2078
SELECT CASE + + 29 WHEN 44 THEN - - 74 / - SUM ( DISTINCT + 71 ) + + - 86 * + COUNT ( * ) END * 43 AS col0, - 80 AS col1
----
NULL
-80

query I rowsort
SELECT + 16 * 38
----
608

query I rowsort
SELECT DISTINCT - + 66 * - 67 AS col0
----
4422

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2081
SELECT ALL 95 + + ( + 6 ) DIV - COUNT( * ) + 50 col0
----
139

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL 95 + + ( + 6 ) / - COUNT ( * ) + 50 col0
----
139

query II rowsort
SELECT DISTINCT - + 34 col0, - ( - - 58 )
----
-34
-58

query I rowsort
SELECT ALL 22 * 55 AS col2
----
1210

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2084
SELECT ALL - 28 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL - 28 + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2085
SELECT + COUNT( * ) AS col0, + 2 + + 98 + - 10 * - CASE - 79 WHEN - + NULLIF ( + - COALESCE ( - - 99, - - 24 * 19 + - 99 * + - 43 ), + 8 ) THEN + 47 ELSE NULL END * - - 5
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2085
SELECT + COUNT ( * ) AS col0, + 2 + + 98 + - 10 * - CASE - 79 WHEN - + NULLIF ( + - COALESCE ( - - 99, - - 24 * 19 + - 99 * + - 43 ), + 8 ) THEN + 47 ELSE NULL END * - - 5
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT - 24 * 32 + + 34 + + COUNT( * ) AS col2
----
-733

skipif mysql # not compatible
query I rowsort label-2086
SELECT - 24 * 32 + + 34 + + COUNT ( * ) AS col2
----
-733

onlyif mysql # aggregate syntax: 
query II rowsort label-2087
SELECT + ( + CASE 85 WHEN 62 THEN + 71 WHEN - 81 THEN 98 END ) * + ( - 80 ), - 88 * - NULLIF ( - COUNT( * ), NULLIF ( + 62, - 24 ) ) col0
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-2087
SELECT + ( + CASE 85 WHEN 62 THEN + 71 WHEN - 81 THEN 98 END ) * + ( - 80 ), - 88 * - NULLIF ( - COUNT ( * ), NULLIF ( + 62, - 24 ) ) col0
----
NULL
-88

query II rowsort
SELECT 1 AS col1, 19 AS col1
----
1
19

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

skipif mysql # not compatible
query I rowsort label-2089
SELECT + 36 * - 95 + - CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2092
SELECT ALL 24 - + - ( + 55 ) + + 87 DIV 69
----
80

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL 24 - + - ( + 55 ) + + 87 / 69
----
80

query I rowsort
SELECT DISTINCT CASE - + 87 WHEN - 19 THEN + 7 * + 71 ELSE NULL END * - 85 + 59
----
NULL

query I rowsort
SELECT + 93 * + - ( + + 21 )
----
-1953

query I rowsort
SELECT DISTINCT 51 + + 80 AS col2
----
131

query I rowsort
SELECT - 80 + - ( 92 ) col2
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT ALL ( + 67 ) * - COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL ( + 67 ) * - COUNT ( * ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT - CASE + 83 WHEN CASE + 86 WHEN + 24 THEN - 38 + - + 61 END THEN NULL ELSE - MAX( ALL ( + ( - 38 ) ) ) END
----
-38

skipif mysql # not compatible
query I rowsort label-2098
SELECT - CASE + 83 WHEN CASE + 86 WHEN + 24 THEN - 38 + - + 61 END THEN NULL ELSE - MAX ( ALL ( + ( - 38 ) ) ) END
----
-38

query II rowsort
SELECT ( + - 87 ), + 1 AS col0
----
-87
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT + 42 * - COUNT( * ) * + 71 + - 87 AS col0
----
-3069

skipif mysql # not compatible
query I rowsort label-2102
SELECT + 42 * - COUNT ( * ) * + 71 + - 87 AS col0
----
-3069

onlyif mysql # aggregate syntax: 
query II rowsort label-2103
SELECT DISTINCT 54 * - + 54 + - - 80, - COUNT( * ) AS col2
----
-2836
-1

skipif mysql # not compatible
query II rowsort label-2103
SELECT DISTINCT 54 * - + 54 + - - 80, - COUNT ( * ) AS col2
----
-2836
-1

query I rowsort
SELECT DISTINCT + ( + 77 ) col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT DISTINCT - 77 * 66 - 41 + - - COUNT( * )
----
-5122

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT - 77 * 66 - 41 + - - COUNT ( * )
----
-5122

onlyif mysql # DIV for integer division: 
query I rowsort label-2106
SELECT + COALESCE ( + - 74, ( 29 ) DIV - 31 + - 25 - + 59 * - + 36 * - 85 * - 64 )
----
-74

skipif mysql # not compatible
query I rowsort label-2106
SELECT + COALESCE ( + - 74, ( 29 ) / - 31 + - 25 - + 59 * - + 36 * - 85 * - 64 )
----
-74

query I rowsort
SELECT ALL - - 20 * 23 - + + 0 - - 47
----
507

query I rowsort
SELECT - + COALESCE ( - 46, 69 + + 50 + - + 89 - + 79 ) * - + 47 - - 38 AS col2
----
-2124

query II rowsort
SELECT - - 36 - - 87, 14 AS col0
----
123
14

query I rowsort
SELECT - 83 * - - NULLIF ( + - 84, 68 + 57 )
----
6972

query I rowsort
SELECT - 45 * + 28
----
-1260

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

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

query I rowsort
SELECT - 40 + + + 87
----
47

query I rowsort
SELECT - 17 + + 24 col2
----
7

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

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

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

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

query I rowsort
SELECT - NULLIF ( - + 30, + 82 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2118
SELECT ALL 98 + 49 + ( + + 2 ) + 50 DIV 92
----
149

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL 98 + 49 + ( + + 2 ) + 50 / 92
----
149

query I rowsort
SELECT + 39 + - + 42
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT ALL 62 + - COUNT( * ) col0
----
61

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL 62 + - COUNT ( * ) col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2121
SELECT 64 AS col2, CAST( NULL AS SIGNED )
----
64
NULL

skipif mysql # not compatible
query II rowsort label-2121
SELECT 64 AS col2, CAST ( NULL AS INTEGER )
----
64
NULL

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

query I rowsort
SELECT - 9 * - 89
----
801

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT - 26 DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2124
SELECT - 26 / + 92 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2125
SELECT ALL MAX( DISTINCT - CAST( 70 AS SIGNED ) ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL MAX ( DISTINCT - CAST ( 70 AS INTEGER ) ) AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2126
SELECT - CAST( - CASE COUNT( * ) WHEN - COUNT( * ) THEN 52 WHEN + 89 THEN NULL ELSE + ( 51 ) + 6 END AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2126
SELECT - CAST ( - CASE COUNT ( * ) WHEN - COUNT ( * ) THEN 52 WHEN + 89 THEN NULL ELSE + ( 51 ) + 6 END AS INTEGER ) AS col2
----
57

query I rowsort
SELECT ALL 61 + - - 62 - - ( - 5 ) AS col0
----
118

query I rowsort
SELECT + - 83 * 99 AS col0
----
-8217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2129
SELECT ALL - 72 * 43 * + CASE - 65 WHEN - - 50 * 74 * - + 45 THEN - NULLIF ( NULLIF ( - + 71, COUNT( * ) + - CASE + CASE + 14 WHEN NULLIF ( - ( ( - - COALESCE ( + 80, + SUM( ALL + ( - + 19 ) ) * 91 - + 35 * - CAST( NULL AS SIGNED ), AVG ( + 91 ) ) ) ), - 45 ) * 57 THEN 97 + - MIN( DISTINCT - 65 ) END WHEN + COUNT( * ) + - 14 / 39 THEN NULL WHEN + 84 + CAST( NULL AS SIGNED ) THEN 72 WHEN - 59 THEN - 88 END * - CAST( 61 AS SIGNED ) ), + 42 ) - 43 * - CAST( SUM( 99 ) AS SIGNED ) WHEN - 92 THEN COUNT( DISTINCT + 10 ) + + 24 WHEN 54 + 57 THEN NULL ELSE 9 * + 26 END + 70 AS col2
----
-724394

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL - 72 * 43 * + CASE - 65 WHEN - - 50 * 74 * - + 45 THEN - NULLIF ( NULLIF ( - + 71, COUNT ( * ) + - CASE + CASE + 14 WHEN NULLIF ( - ( ( - - COALESCE ( + 80, + SUM ( ALL + ( - + 19 ) ) * 91 - + 35 * - CAST ( NULL AS INTEGER ), AVG ( + 91 ) ) ) ), - 45 ) * 57 THEN 97 + - MIN ( DISTINCT - 65 ) END WHEN + COUNT ( * ) + - 14 / 39 THEN NULL WHEN + 84 + CAST ( NULL AS INTEGER ) THEN 72 WHEN - 59 THEN - 88 END * - CAST ( 61 AS INTEGER ) ), + 42 ) - 43 * - CAST ( SUM ( 99 ) AS INTEGER ) WHEN - 92 THEN COUNT ( DISTINCT + 10 ) + + 24 WHEN 54 + 57 THEN NULL ELSE 9 * + 26 END + 70 AS col2
----
-724394

onlyif mysql # DIV for integer division: 
query I rowsort label-2130
SELECT + 47 DIV - - 53
----
0

skipif mysql # not compatible
query I rowsort label-2130
SELECT + 47 / - - 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL - 28 * - - NULLIF ( - - COUNT( * ), + - 34 + + ( - 67 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL - 28 * - - NULLIF ( - - COUNT ( * ), + - 34 + + ( - 67 ) )
----
-28

query I rowsort
SELECT - 28 / + + 23 + + 24 + - - CASE + + 89 WHEN - 18 THEN + ( - + 48 ) / - + 79 + + - 11 END AS col2
----
NULL

query I rowsort
SELECT + 27 + + - 86 + - + 47 - + + 91
----
-197

query I rowsort
SELECT + 52 * + 18 + + 69 - - + 42 + - 39 AS col1
----
1008

query II rowsort
SELECT + + 67 col1, 14
----
67
14

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

skipif mysql # not compatible
query I rowsort label-2136
SELECT + COUNT ( * ) * - + 21 + 73 AS col0
----
52

query II rowsort
SELECT 68 AS col0, + ( + - 42 ) * 76
----
68
-3192

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

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

query I rowsort
SELECT + COALESCE ( - 13, 64, 35 ) col2
----
-13

query I rowsort
SELECT 16 * - 7 * + 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2141
SELECT 35 DIV - 78 * + 2 * + - 24
----
0

skipif mysql # not compatible
query I rowsort label-2141
SELECT 35 / - 78 * + 2 * + - 24
----
0

query I rowsort
SELECT DISTINCT + 44 + 84
----
128

query I rowsort
SELECT DISTINCT 98 + NULLIF ( - + 99, 21 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2144
SELECT ALL 57 + - ( - + 56 ) DIV 62 + + 70
----
127

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL 57 + - ( - + 56 ) / 62 + + 70
----
127

query I rowsort
SELECT DISTINCT + 54 + - 81 * + 79 - - 0 + + 3 + 99
----
-6243

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL - 0 + - NULLIF ( 49, COUNT( * ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL - 0 + - NULLIF ( 49, COUNT ( * ) ) AS col2
----
-49

query I rowsort
SELECT ALL 97 + + 45
----
142

query I rowsort
SELECT DISTINCT 56 + 34 AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2149
SELECT ALL 91 * + 99 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL 91 * + 99 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT ALL + 37 - + ( - 4 ) * COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL + 37 - + ( - 4 ) * COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT DISTINCT - 82 - - COALESCE ( COUNT( * ), - 48 ) + 92
----
11

skipif mysql # not compatible
query I rowsort label-2151
SELECT DISTINCT - 82 - - COALESCE ( COUNT ( * ), - 48 ) + 92
----
11

query I rowsort
SELECT ALL 55 * - 81
----
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT + SUM( - 35 ) * 43 AS col1
----
-1505

skipif mysql # not compatible
query I rowsort label-2153
SELECT + SUM ( - 35 ) * 43 AS col1
----
-1505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2154
SELECT + CASE + + 12 WHEN + + SUM( ALL - 56 ) + CAST( NULL AS SIGNED ) THEN - 36 WHEN 57 THEN + COUNT( * ) END * + 65 + + - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2154
SELECT + CASE + + 12 WHEN + + SUM ( ALL - 56 ) + CAST ( NULL AS INTEGER ) THEN - 36 WHEN 57 THEN + COUNT ( * ) END * + 65 + + - 20 AS col1
----
NULL

query I rowsort
SELECT 58 * - 54 * + - 85 AS col1
----
266220

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT 61 * - 5 + + COUNT( * ) AS col2
----
-304

skipif mysql # not compatible
query I rowsort label-2157
SELECT 61 * - 5 + + COUNT ( * ) AS col2
----
-304

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

skipif mysql # not compatible
query I rowsort label-2158
SELECT 51 / COUNT ( * ) + - COUNT ( * ) + - + 51
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT ALL - COALESCE ( + - COUNT( * ), - 72 * - - 50 * ( + 38 ) * 29 + + 79 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL - COALESCE ( + - COUNT ( * ), - 72 * - - 50 * ( + 38 ) * 29 + + 79 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2160
SELECT + CAST( + - 43 AS SIGNED ) * - - 80 * - MAX( DISTINCT CAST( NULL AS SIGNED ) ) * + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT + CAST ( + - 43 AS INTEGER ) * - - 80 * - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 22 AS col2
----
NULL

query I rowsort
SELECT ALL 99 + 13 AS col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2162
SELECT ALL - COALESCE ( 98, + ( + - 98 ) + + COUNT( * ) * + + 15 + - 24 + - - CAST( NULL AS SIGNED ), + 73 )
----
-98

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL - COALESCE ( 98, + ( + - 98 ) + + COUNT ( * ) * + + 15 + - 24 + - - CAST ( NULL AS INTEGER ), + 73 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT DISTINCT - 85 + + COUNT( 35 )
----
-84

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT - 85 + + COUNT ( 35 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2164
SELECT DISTINCT 34 + + + CAST( + - 65 AS SIGNED ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT 34 + + + CAST ( + - 65 AS INTEGER ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT ALL - 67 + - - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL - 67 + - - COUNT ( * )
----
-66

query II rowsort
SELECT 90 AS col2, ( + 88 ) * 16 * - 40
----
90
-56320

query I rowsort
SELECT NULLIF ( + + 20, + 42 ) + + 46 AS col2
----
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT 86 - - MIN( + + 38 )
----
124

skipif mysql # not compatible
query I rowsort label-2169
SELECT 86 - - MIN ( + + 38 )
----
124

query I rowsort
SELECT DISTINCT + 41 * - 54 * + 84 AS col1
----
-185976

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

skipif mysql # not compatible
query I rowsort label-2171
SELECT 60 + - - 44 + - - CAST ( NULL AS INTEGER ) + 53
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2172
SELECT ALL ( - - NULLIF ( COUNT( * ), - 89 + + 51 ) ) - + COALESCE ( + 20, 45 ), - 85 * - 52 AS col0
----
-19
4420

skipif mysql # not compatible
query II rowsort label-2172
SELECT ALL ( - - NULLIF ( COUNT ( * ), - 89 + + 51 ) ) - + COALESCE ( + 20, 45 ), - 85 * - 52 AS col0
----
-19
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT 66 * + COUNT( + + 41 )
----
66

skipif mysql # not compatible
query I rowsort label-2173
SELECT 66 * + COUNT ( + + 41 )
----
66

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

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT MAX ( - 15 )
----
-15

query I rowsort
SELECT DISTINCT + 50 - + + 15 col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2176
SELECT ALL COUNT( * ) DIV + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL COUNT ( * ) / + 25 AS col0
----
0

query I rowsort
SELECT 85 + + 47 * + 47 AS col0
----
2294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2178
SELECT SUM( DISTINCT - 70 ) * + CAST( + 88 AS SIGNED )
----
-6160

skipif mysql # not compatible
query I rowsort label-2178
SELECT SUM ( DISTINCT - 70 ) * + CAST ( + 88 AS INTEGER )
----
-6160

query II rowsort
SELECT 95 + + ( + 87 ), 12 * - 31 + - 12 col1
----
182
-384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2180
SELECT - ( - + CASE - 6 WHEN 57 THEN - 19 WHEN CAST( NULL AS SIGNED ) + ( + + COUNT( * ) ) THEN NULL ELSE 46 DIV 3 END ) AS col0, + ( CAST( NULL AS SIGNED ) ) col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-2180
SELECT - ( - + CASE - 6 WHEN 57 THEN - 19 WHEN CAST ( NULL AS INTEGER ) + ( + + COUNT ( * ) ) THEN NULL ELSE 46 / 3 END ) AS col0, + ( CAST ( NULL AS INTEGER ) ) col0
----
15
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2181
SELECT ALL + - 94 DIV + - 78
----
1

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL + - 94 / + - 78
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2182
SELECT + 86 DIV 6
----
14

skipif mysql # not compatible
query I rowsort label-2182
SELECT + 86 / 6
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2183
SELECT 24 DIV - - COALESCE ( 73, - - 8 ) + 15 * - 64 * - + 82 * - 32
----
-2519040

skipif mysql # not compatible
query I rowsort label-2183
SELECT 24 / - - COALESCE ( 73, - - 8 ) + 15 * - 64 * - + 82 * - 32
----
-2519040

query I rowsort
SELECT - 95 * + 99
----
-9405

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2187
SELECT DISTINCT - CASE + + 75 WHEN CAST( + 32 AS SIGNED ) THEN NULL WHEN - COUNT( * ) THEN - + ( + 22 ) + - 76 ELSE NULL END * - + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT - CASE + + 75 WHEN CAST ( + 32 AS INTEGER ) THEN NULL WHEN - COUNT ( * ) THEN - + ( + 22 ) + - 76 ELSE NULL END * - + 21
----
NULL

query II rowsort
SELECT ALL + 91 AS col1, + 46 + + 18 * + - 30 + 38 AS col1
----
91
-456

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

query I rowsort
SELECT ALL + 60 * + + 38 AS col1
----
2280

query I rowsort
SELECT DISTINCT - 42 * - 93 * 89 + - - 82 AS col1
----
347716

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2192
SELECT - - 88 + 15 + - - 62 + + + 83 * - ( COUNT( * ) ) * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT - - 88 + 15 + - - 62 + + + 83 * - ( COUNT ( * ) ) * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT DISTINCT + - SUM( ALL - 63 ) col1
----
63

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT + - SUM ( ALL - 63 ) col1
----
63

query I rowsort
SELECT + 25 + + 44 + - - 17 AS col0
----
86

query I rowsort
SELECT - - 27 * - 63 + + NULLIF ( - 7, 53 ) + - 99 + - 41 col2
----
-1848

query I rowsort
SELECT DISTINCT + 34 * + 43 + 65 + + - 28
----
1499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2197
SELECT ALL + 6 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + 38 / + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + 6 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + 38 / + - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT MIN( - 13 ) * - 97 * - 32 + + 55 AS col2
----
-40297

skipif mysql # not compatible
query I rowsort label-2198
SELECT MIN ( - 13 ) * - 97 * - 32 + + 55 AS col2
----
-40297

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2200
SELECT ALL ( + MIN( - + 46 ) ) DIV 72 col2
----
0

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL ( + MIN ( - + 46 ) ) / 72 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2201
SELECT DISTINCT CAST( + - 9 AS SIGNED ) * - - SUM( - 84 )
----
756

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT CAST ( + - 9 AS INTEGER ) * - - SUM ( - 84 )
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT COUNT( + NULLIF ( - 83, + - 99 / + + 83 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2202
SELECT COUNT ( + NULLIF ( - 83, + - 99 / + + 83 ) ) AS col1
----
1

query I rowsort
SELECT + 70 * + 97 + + + 48 AS col1
----
6838

onlyif mysql # aggregate syntax: 
query II rowsort label-2204
SELECT ALL 83 * - SUM( DISTINCT + 89 ) + COUNT( * ) AS col2, 74
----
-7386
74

skipif mysql # not compatible
query II rowsort label-2204
SELECT ALL 83 * - SUM ( DISTINCT + 89 ) + COUNT ( * ) AS col2, 74
----
-7386
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2205
SELECT + COUNT( * ) DIV 12 col0, - 64
----
0
-64

skipif mysql # not compatible
query II rowsort label-2205
SELECT + COUNT ( * ) / 12 col0, - 64
----
0
-64

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

skipif mysql # not compatible
query I rowsort label-2206
SELECT - CAST ( NULL AS INTEGER ) * - 99 AS col1
----
NULL

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

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

query I rowsort
SELECT + 4 * 13 AS col0
----
52

query I rowsort
SELECT + 14 * - 51 + 10 * 66
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT MIN( ALL NULLIF ( 37, 33 ) ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2210
SELECT MIN ( ALL NULLIF ( 37, 33 ) ) AS col0
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT ALL MIN( ALL + 11 ) col1
----
11

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL MIN ( ALL + 11 ) col1
----
11

query II rowsort
SELECT 5, 71 AS col2
----
5
71

query I rowsort
SELECT ALL COALESCE ( 33, 20 )
----
33

query II rowsort
SELECT 10, 73 AS col2
----
10
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT + NULLIF ( - 59, 97 * 76 * CAST( NULL AS SIGNED ) + + 73 ) * 39
----
-2301

skipif mysql # not compatible
query I rowsort label-2216
SELECT + NULLIF ( - 59, 97 * 76 * CAST ( NULL AS INTEGER ) + + 73 ) * 39
----
-2301

query I rowsort
SELECT - 44 * - 77 AS col0
----
3388

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT + 14 - - + SUM( ALL - 24 ) + 41 * + 59
----
2409

skipif mysql # not compatible
query I rowsort label-2218
SELECT + 14 - - + SUM ( ALL - 24 ) + 41 * + 59
----
2409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2219
SELECT + 11 col1, + ( + - 92 ) + + MIN( - + CAST( NULL AS SIGNED ) ) + - 71
----
11
NULL

skipif mysql # not compatible
query II rowsort label-2219
SELECT + 11 col1, + ( + - 92 ) + + MIN ( - + CAST ( NULL AS INTEGER ) ) + - 71
----
11
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2220
SELECT - - 39 AS col0, + CAST( - 57 AS SIGNED ) * + - 61 * + 2 + - + 52 + + 39 * - + 27
----
39
5849

skipif mysql # not compatible
query II rowsort label-2220
SELECT - - 39 AS col0, + CAST ( - 57 AS INTEGER ) * + - 61 * + 2 + - + 52 + + 39 * - + 27
----
39
5849

query I rowsort
SELECT - 93 * 97
----
-9021

query I rowsort
SELECT DISTINCT + 22 * NULLIF ( - + 51, + 34 ) * 10 - + 35 col2
----
-11255

query I rowsort
SELECT ALL - 58 + 76 AS col2
----
18

query II rowsort
SELECT ALL + 75 AS col1, 94
----
75
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT - + COUNT( DISTINCT - 80 ) + - 96
----
-97

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT - + COUNT ( DISTINCT - 80 ) + - 96
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2226
SELECT 56 AS col0, + 82 * + MAX( ALL - 92 ) AS col0
----
56
-7544

skipif mysql # not compatible
query II rowsort label-2226
SELECT 56 AS col0, + 82 * + MAX ( ALL - 92 ) AS col0
----
56
-7544

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT + - COUNT( * ) * + - 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2227
SELECT + - COUNT ( * ) * + - 41 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT - - COUNT( * ) + - 37 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-2228
SELECT - - COUNT ( * ) + - 37 AS col1
----
-36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2230
SELECT - + 28 DIV - 17
----
1

skipif mysql # not compatible
query I rowsort label-2230
SELECT - + 28 / - 17
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2231
SELECT - 95 * ( 49 ) DIV - - 71 + + 80 + - 55 * - + 18
----
1005

skipif mysql # not compatible
query I rowsort label-2231
SELECT - 95 * ( 49 ) / - - 71 + + 80 + - 55 * - + 18
----
1005

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT DISTINCT - 6 / COUNT( * ) * - 93 + - 0 - - CASE + 71 WHEN + - 8 - - COALESCE ( 97, ( 1 ) ) * 95 THEN + 78 WHEN 55 THEN 12 WHEN - ( - 52 ) * 93 / + 88 THEN NULL WHEN 94 THEN + 17 * + 54 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT - 6 / COUNT ( * ) * - 93 + - 0 - - CASE + 71 WHEN + - 8 - - COALESCE ( 97, ( 1 ) ) * 95 THEN + 78 WHEN 55 THEN 12 WHEN - ( - 52 ) * 93 / + 88 THEN NULL WHEN 94 THEN + 17 * + 54 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2233
SELECT ALL - COUNT( * ) DIV - - 45 * - - ( + 11 ) * + + 5 * 19 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL - COUNT ( * ) / - - 45 * - - ( + 11 ) * + + 5 * 19 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2234
SELECT DISTINCT - - 29 DIV 48 + COUNT( NULLIF ( + 54, + 4 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT - - 29 / 48 + COUNT ( NULLIF ( + 54, + 4 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT + - 45 * 32 AS col0
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT + CASE NULLIF ( + ( + 85 ), + 43 ) WHEN - + 65 + 68 THEN NULL WHEN - 14 THEN + COUNT( * ) / COUNT( DISTINCT - 69 ) + + 10 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT + CASE NULLIF ( + ( + 85 ), + 43 ) WHEN - + 65 + 68 THEN NULL WHEN - 14 THEN + COUNT ( * ) / COUNT ( DISTINCT - 69 ) + + 10 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2237
SELECT ALL - 98 / 48 - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL - 98 / 48 - - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 68 * + 55 - 52
----
3688

query II rowsort
SELECT ( - 85 ), 91 AS col1
----
-85
91

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2242
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) * COALESCE ( + - 15, + 55, 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) * COALESCE ( + - 15, + 55, 0 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL ( - - 35 ) * - 98 - + MAX( ALL - 59 ) AS col1
----
-3371

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL ( - - 35 ) * - 98 - + MAX ( ALL - 59 ) AS col1
----
-3371

query I rowsort
SELECT CASE + 33 WHEN + - 79 THEN NULL WHEN + 61 THEN + 61 * 89 END col0
----
NULL

query I rowsort
SELECT ALL 68 * 16 AS col1
----
1088

query I rowsort
SELECT + 74 - - 32 + 2 * - 61 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT - 21 + - ( - COUNT( * ) ) * - - 67 + - 1 * + 72
----
-26

skipif mysql # not compatible
query I rowsort label-2248
SELECT - 21 + - ( - COUNT ( * ) ) * - - 67 + - 1 * + 72
----
-26

query I rowsort
SELECT ALL 32 * 97
----
3104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2250
SELECT + 38 / - - CAST( NULL AS SIGNED ) AS col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT + 44 DIV ( - + 7 )
----
-6

skipif mysql # not compatible
query I rowsort label-2251
SELECT + 44 / ( - + 7 )
----
-6

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

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

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

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

query I rowsort
SELECT - 96 - - + 81
----
-15

query II rowsort
SELECT + 8 / CASE 37 WHEN + 30 * - 27 / 90 THEN 48 END / - + 52 AS col0, + 90 AS col0
----
NULL
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2256
SELECT + 82 + + 83 - + 60 + - 27 + 36 AS col2, - COALESCE ( + 12, 67 * 33 + - COUNT( * ), - 41 + - 17 * 81 DIV 1 )
----
114
-12

skipif mysql # not compatible
query II rowsort label-2256
SELECT + 82 + + 83 - + 60 + - 27 + 36 AS col2, - COALESCE ( + 12, 67 * 33 + - COUNT ( * ), - 41 + - 17 * 81 / 1 )
----
114
-12

query I rowsort
SELECT ALL 51 * + 71 * + - ( - COALESCE ( 79, - - 65 * - - 3, 86 ) )
----
286059

query II rowsort
SELECT ( 26 ) AS col0, 8
----
26
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT DISTINCT - MIN( + 68 ) + 52
----
-16

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT - MIN ( + 68 ) + 52
----
-16

query I rowsort
SELECT 64 * 9
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL 96 + - - 53 + - COUNT( ALL - 77 ) + 34 AS col0
----
182

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL 96 + - - 53 + - COUNT ( ALL - 77 ) + 34 AS col0
----
182

query I rowsort
SELECT ALL - - 22 * - 89 + + - 66
----
-2024

query I rowsort
SELECT 44 * + - ( - + 99 )
----
4356

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT + 63 * - CASE COUNT( DISTINCT 78 ) WHEN - 9 / + ( + 48 ) + - + 11 + + COALESCE ( 3, + 26 + + 74, - - 66 + + 78 ) + - 38 * 5 * 83 / - + ( + - 86 ) * - 70 + + 48 THEN + - 63 WHEN - 52 THEN NULL WHEN + 72 - - 19 THEN - + 56 WHEN + ( 43 ) THEN NULL ELSE NULL END - - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT + 63 * - CASE COUNT ( DISTINCT 78 ) WHEN - 9 / + ( + 48 ) + - + 11 + + COALESCE ( 3, + 26 + + 74, - - 66 + + 78 ) + - 38 * 5 * 83 / - + ( + - 86 ) * - 70 + + 48 THEN + - 63 WHEN - 52 THEN NULL WHEN + 72 - - 19 THEN - + 56 WHEN + ( 43 ) THEN NULL ELSE NULL END - - 18 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2265
SELECT ALL - CAST( NULL AS SIGNED ) * - 67 col2, + 80 AS col0
----
NULL
80

skipif mysql # not compatible
query II rowsort label-2265
SELECT ALL - CAST ( NULL AS INTEGER ) * - 67 col2, + 80 AS col0
----
NULL
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT - 29 - + 96 + + 99 - - 28 DIV + 98 + 41 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2266
SELECT - 29 - + 96 + + 99 - - 28 / + 98 + 41 AS col1
----
15

query I rowsort
SELECT DISTINCT - - 80 * + 57
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT ALL + 25 - - - 63 + - COUNT( * ) + - 69
----
-108

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL + 25 - - - 63 + - COUNT ( * ) + - 69
----
-108

query I rowsort
SELECT 41 + - 45
----
-4

query I rowsort
SELECT 80 * - ( 81 ) * + - 67 AS col2
----
434160

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

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL - 9 / + COUNT ( * ) AS col0
----
-9

query I rowsort
SELECT 51 + + + 57
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT + 62 * + 9 + - COUNT( * )
----
557

skipif mysql # not compatible
query I rowsort label-2273
SELECT + 62 * + 9 + - COUNT ( * )
----
557

onlyif mysql # aggregate syntax: 
query II rowsort label-2274
SELECT ALL - COUNT( * ) AS col1, + 77 * 14 AS col1
----
-1
1078

skipif mysql # not compatible
query II rowsort label-2274
SELECT ALL - COUNT ( * ) AS col1, + 77 * 14 AS col1
----
-1
1078

query II rowsort
SELECT 30, + 1 col2
----
30
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT ( + MAX( - 39 ) ) * - COUNT( * ) + - 36
----
3

skipif mysql # not compatible
query I rowsort label-2276
SELECT ( + MAX ( - 39 ) ) * - COUNT ( * ) + - 36
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT MAX( DISTINCT + 66 ) * - NULLIF ( + 15, + COALESCE ( + - 68, + - 93 * + + 47 * + 29 * - - 10, COUNT( * ) ) + + 6 )
----
-990

skipif mysql # not compatible
query I rowsort label-2277
SELECT MAX ( DISTINCT + 66 ) * - NULLIF ( + 15, + COALESCE ( + - 68, + - 93 * + + 47 * + 29 * - - 10, COUNT ( * ) ) + + 6 )
----
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-2278
SELECT ALL - 46 * - - 62 * - 90 AS col2, 50 * - - COUNT( * )
----
256680
50

skipif mysql # not compatible
query II rowsort label-2278
SELECT ALL - 46 * - - 62 * - 90 AS col2, 50 * - - COUNT ( * )
----
256680
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT 86 + - 35 + + 28 + + 62 + + - 8 * + 24 + 57 DIV 56 * - 16 - + - 39 + + 54 col1
----
26

skipif mysql # not compatible
query I rowsort label-2279
SELECT 86 + - 35 + + 28 + + 62 + + - 8 * + 24 + 57 / 56 * - 16 - + - 39 + + 54 col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT 57 * - COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-2280
SELECT 57 * - COUNT ( * ) AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2281
SELECT + 18 * COUNT( * ) * - 97 + NULLIF ( - COALESCE ( + + 47, - 71, MAX( + ( CAST( NULL AS SIGNED ) ) ) ), ( - - 40 ) ) + + 28
----
-1765

skipif mysql # not compatible
query I rowsort label-2281
SELECT + 18 * COUNT ( * ) * - 97 + NULLIF ( - COALESCE ( + + 47, - 71, MAX ( + ( CAST ( NULL AS INTEGER ) ) ) ), ( - - 40 ) ) + + 28
----
-1765

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT DISTINCT - COUNT( * ) * - 87
----
87

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT - COUNT ( * ) * - 87
----
87

query I rowsort
SELECT DISTINCT - COALESCE ( - + ( - 60 ), + 27 ) AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2284
SELECT COALESCE ( MAX( - - ( 75 ) ), + 63 * + 20 + + + 48 ) + - - ( COUNT( * ) ) + - - 11 * + 51 + + + 20 / - - 42 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2284
SELECT COALESCE ( MAX ( - - ( 75 ) ), + 63 * + 20 + + + 48 ) + - - ( COUNT ( * ) ) + - - 11 * + 51 + + + 20 / - - 42 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT 95 * - - ( - 34 ) * + + SUM( ALL 18 )
----
-58140

skipif mysql # not compatible
query I rowsort label-2285
SELECT 95 * - - ( - 34 ) * + + SUM ( ALL 18 )
----
-58140

onlyif mysql # DIV for integer division: 
query I rowsort label-2286
SELECT ALL 79 DIV + - 38
----
-2

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL 79 / + - 38
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT ALL + COUNT( ALL + 5 ) + + + ( + + 80 )
----
81

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL + COUNT ( ALL + 5 ) + + + ( + + 80 )
----
81

query II rowsort
SELECT - + 56 AS col2, - 97 AS col1
----
-56
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL COUNT( * ) + + + 42
----
43

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL COUNT ( * ) + + + 42
----
43

query I rowsort
SELECT ALL + 83 + - 77
----
6

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

query I rowsort
SELECT ALL ( + 4 ) + + 57
----
61

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

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

query II rowsort
SELECT 54 AS col2, + 20 AS col2
----
54
20

query I rowsort
SELECT 81 - - + 77 AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT + 38 * NULLIF ( - - 3, + COUNT( * ) / NULLIF ( + SUM( 10 ), CASE 58 WHEN + 14 THEN NULL ELSE 59 END + - 77 ) + - 8 - + CASE + 54 WHEN - 21 THEN + 4 * ( + COUNT( * ) ) WHEN 32 THEN NULL END + - 10 * 8 / 60 * 9 ) * 94 - - + 29 AS col2
----
10745

skipif mysql # not compatible
query I rowsort label-2296
SELECT + 38 * NULLIF ( - - 3, + COUNT ( * ) / NULLIF ( + SUM ( 10 ), CASE 58 WHEN + 14 THEN NULL ELSE 59 END + - 77 ) + - 8 - + CASE + 54 WHEN - 21 THEN + 4 * ( + COUNT ( * ) ) WHEN 32 THEN NULL END + - 10 * 8 / 60 * 9 ) * 94 - - + 29 AS col2
----
10745

onlyif mysql # aggregate syntax: 
query II rowsort label-2297
SELECT DISTINCT ( - 77 ) + + + 56, + 71 + - 34 + - - SUM( - - 82 ) * COUNT( * ) AS col0
----
-21
119

skipif mysql # not compatible
query II rowsort label-2297
SELECT DISTINCT ( - 77 ) + + + 56, + 71 + - 34 + - - SUM ( - - 82 ) * COUNT ( * ) AS col0
----
-21
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2298
SELECT + 92 AS col0, CAST( - - COUNT( * ) AS SIGNED ) - - 66 + 12 * SUM( DISTINCT 39 )
----
92
535

skipif mysql # not compatible
query II rowsort label-2298
SELECT + 92 AS col0, CAST ( - - COUNT ( * ) AS INTEGER ) - - 66 + 12 * SUM ( DISTINCT 39 )
----
92
535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2299
SELECT DISTINCT 56 * - + SUM( DISTINCT - - 66 ) * + - 51 + + 83 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT 56 * - + SUM ( DISTINCT - - 66 ) * + - 51 + + 83 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 50 * 67
----
3350

query I rowsort
SELECT 81 + + + NULLIF ( 70, + 70 * 95 )
----
151

query I rowsort
SELECT DISTINCT + 54 - - + 17 AS col1
----
71

query II rowsort
SELECT - 98, - 96 * 76 * - 93 AS col1
----
-98
678528

query I rowsort
SELECT ALL 15 - - - 21 AS col0
----
-6

query I rowsort
SELECT 30 * - 82
----
-2460

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT + 96 * + MIN( - 14 ) + 81
----
-1263

skipif mysql # not compatible
query I rowsort label-2306
SELECT + 96 * + MIN ( - 14 ) + 81
----
-1263

query II rowsort
SELECT DISTINCT 8 * 81 - - NULLIF ( 26, + - ( - - ( - 91 ) ) ) col2, 79
----
674
79

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

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

query II rowsort
SELECT DISTINCT 22 * 6 AS col2, 68 * + 12
----
132
816

onlyif mysql # DIV for integer division: 
query I rowsort label-2310
SELECT 79 DIV 20 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2310
SELECT 79 / 20 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL - MIN( ALL 66 ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL - MIN ( ALL 66 ) col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2312
SELECT DISTINCT - CAST( - 31 AS SIGNED ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT - CAST ( - 31 AS INTEGER ) AS col0
----
31

query I rowsort
SELECT ALL - NULLIF ( + NULLIF ( + NULLIF ( + 67, - 83 ), ( 28 ) ), + 58 ) AS col2
----
-67

query I rowsort
SELECT 66 - + 12 col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT 5 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-2315
SELECT 5 / - 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL 64 * - NULLIF ( - MIN( - 12 ), 38 ) + + 14 - - + 94
----
-660

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL 64 * - NULLIF ( - MIN ( - 12 ), 38 ) + + 14 - - + 94
----
-660

query I rowsort
SELECT + 76 * 97 - - 19
----
7391

query I rowsort
SELECT 14 * + + 18
----
252

query II rowsort
SELECT ALL + 68 * + + ( 37 ) + - - 3 AS col0, + 63 AS col1
----
2519
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2320
SELECT DISTINCT 56 DIV + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT 56 / + - 8
----
-7

query I rowsort
SELECT DISTINCT 14 + + 80 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT - 44 * + COUNT( + 15 ) * ( + 86 )
----
-3784

skipif mysql # not compatible
query I rowsort label-2322
SELECT - 44 * + COUNT ( + 15 ) * ( + 86 )
----
-3784

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2324
SELECT ALL - ( - - 1 ) * + 57 + - 23 * - 70 DIV + CASE COUNT( ALL - 49 ) WHEN - 38 THEN NULL WHEN - CAST( - 45 AS SIGNED ) * + 56 DIV 45 + + + 32 * - 33 * - ( - + 55 ) + COALESCE ( 26, + AVG ( 77 ) ) + 22 * + 82 THEN - 96 ELSE 72 * + 87 * 97 * + + 16 + + 84 - - 78 END
----
-57

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL - ( - - 1 ) * + 57 + - 23 * - 70 / + CASE COUNT ( ALL - 49 ) WHEN - 38 THEN NULL WHEN - CAST ( - 45 AS INTEGER ) * + 56 / 45 + + + 32 * - 33 * - ( - + 55 ) + COALESCE ( 26, + AVG ( 77 ) ) + 22 * + 82 THEN - 96 ELSE 72 * + 87 * 97 * + + 16 + + 84 - - 78 END
----
-57

query I rowsort
SELECT ALL 17 + - + 65 - - + 98
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT - 30 + - - NULLIF ( - 46, MIN( + 12 ) + + 18 )
----
-76

skipif mysql # not compatible
query I rowsort label-2326
SELECT - 30 + - - NULLIF ( - 46, MIN ( + 12 ) + + 18 )
----
-76

query I rowsort
SELECT - 0 * 10
----
0

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2328
SELECT ALL + - CASE + CAST( NULL AS DECIMAL ) WHEN - 70 THEN NULL WHEN + - 81 THEN NULL ELSE 76 END + - 99 DIV + 14 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL + - CASE + CAST ( NULL AS REAL ) WHEN - 70 THEN NULL WHEN + - 81 THEN NULL ELSE 76 END + - 99 / + 14 AS col1
----
-83

query I rowsort
SELECT ( 12 ) * - 60 + 4 - + 37 AS col1
----
-753

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT - + COUNT( DISTINCT + 72 ) + 4 + - - 75
----
78

skipif mysql # not compatible
query I rowsort label-2330
SELECT - + COUNT ( DISTINCT + 72 ) + 4 + - - 75
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT DISTINCT - 27 / + SUM( ALL + 51 ) * CASE + 88 WHEN - 52 * - 62 THEN - + ( - 73 ) + - 23 + + 32 - + 19 * 28 * - 18 * + NULLIF ( - 73, - + 76 + + - 5 * - + 99 ) * 25 * 40 WHEN - + 77 * - ( - - 5 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT - 27 / + SUM ( ALL + 51 ) * CASE + 88 WHEN - 52 * - 62 THEN - + ( - 73 ) + - 23 + + 32 - + 19 * 28 * - 18 * + NULLIF ( - 73, - + 76 + + - 5 * - + 99 ) * 25 * 40 WHEN - + 77 * - ( - - 5 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT DISTINCT - - COUNT( * ) - - 57
----
58

skipif mysql # not compatible
query I rowsort label-2332
SELECT DISTINCT - - COUNT ( * ) - - 57
----
58

query I rowsort
SELECT ALL + 94 * + - 85
----
-7990

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT + 67 * ( COUNT( * ) ) - - 2
----
69

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT + 67 * ( COUNT ( * ) ) - - 2
----
69

query I rowsort
SELECT + 29 + 98 * + - 75
----
-7321

onlyif mysql # DIV for integer division: 
query I rowsort label-2336
SELECT - + ( + 46 ) DIV - 31 + + 1 * + 33 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2336
SELECT - + ( + 46 ) / - 31 + + 1 * + 33 AS col0
----
34

query I rowsort
SELECT + - 39 * - + 35 AS col1
----
1365

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

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

query I rowsort
SELECT - 78 + - 5 AS col1
----
-83

query I rowsort
SELECT + ( - + 86 ) + - - NULLIF ( + + 19, - 26 ) col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT + CASE - COUNT( + - 48 ) WHEN + + ( - 42 ) * 79 THEN - + 57 ELSE NULL END * - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2341
SELECT + CASE - COUNT ( + - 48 ) WHEN + + ( - 42 ) * 79 THEN - + 57 ELSE NULL END * - - 97
----
NULL

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

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

query I rowsort
SELECT + 58 * - + 82 AS col1
----
-4756

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT 73 DIV - + 75 + 35 col2
----
35

skipif mysql # not compatible
query I rowsort label-2346
SELECT 73 / - + 75 + 35 col2
----
35

query I rowsort
SELECT ALL 91 * + + 76 + + 16 + + 86 * + - 31 * 77 * 24 + + - 44 * - 18 AS col2
----
-4919044

query I rowsort
SELECT + 15 + - - 37 AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2349
SELECT 74 DIV 28 * - + ( 3 ) - + 94 * - 48 * + MAX( 93 )
----
419610

skipif mysql # not compatible
query I rowsort label-2349
SELECT 74 / 28 * - + ( 3 ) - + 94 * - 48 * + MAX ( 93 )
----
419610

query I rowsort
SELECT ALL - 57 * + - 4 + - 9 AS col0
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-2351
SELECT DISTINCT 15 DIV + 1 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT 15 / + 1 AS col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2352
SELECT ALL COUNT( * ) * + 33 + + 71 + 17 * 9, 93 col0
----
257
93

skipif mysql # not compatible
query II rowsort label-2352
SELECT ALL COUNT ( * ) * + 33 + + 71 + 17 * 9, 93 col0
----
257
93

query I rowsort
SELECT DISTINCT + 56 * 71
----
3976

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT ALL COUNT( * ) * - 86 + + - COUNT( * ) + COUNT( * ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL COUNT ( * ) * - 86 + + - COUNT ( * ) + COUNT ( * ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL + 58 * 87 + - + ( - COUNT( ( 49 ) ) ) AS col1
----
5047

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + 58 * 87 + - + ( - COUNT ( ( 49 ) ) ) AS col1
----
5047

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT ALL SUM( DISTINCT - 54 ) * - COUNT( * ) * - 87 + - 26 + - - 7 * + 97 * + 94
----
59102

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL SUM ( DISTINCT - 54 ) * - COUNT ( * ) * - 87 + - 26 + - - 7 * + 97 * + 94
----
59102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2357
SELECT ALL - COALESCE ( + - 2, - COALESCE ( - 56, 2 ) ) * + 77 + - CAST( + - 11 AS SIGNED ) + + - COUNT( * )
----
164

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL - COALESCE ( + - 2, - COALESCE ( - 56, 2 ) ) * + 77 + - CAST ( + - 11 AS INTEGER ) + + - COUNT ( * )
----
164

query I rowsort
SELECT - 38 + - 40
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT ALL - 30 * - 79 + - 75 + - MIN( + 85 ) + - - 66
----
2276

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL - 30 * - 79 + - 75 + - MIN ( + 85 ) + - - 66
----
2276

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT + ( - ( COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2360
SELECT + ( - ( COUNT ( * ) ) ) AS col1
----
-1

query I rowsort
SELECT + + 50 * 65 * 79 AS col2
----
256750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2362
SELECT - 59 * - 85 + 14 + + MIN( - 89 ) + - 70 * - + 13 * + - CAST( NULL AS SIGNED ) * + - ( 41 ) + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT - 59 * - 85 + 14 + + MIN ( - 89 ) + - 70 * - + 13 * + - CAST ( NULL AS INTEGER ) * + - ( 41 ) + + 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2363
SELECT DISTINCT - 79 DIV - 64 + + - COUNT( * ) + - - 26 + + COUNT( * ) * + 76 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT - 79 / - 64 + + - COUNT ( * ) + - - 26 + + COUNT ( * ) * + 76 AS col0
----
102

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

skipif mysql # not compatible
query II rowsort label-2364
SELECT - - COUNT ( * ) AS col1, - 13 AS col1
----
1
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-2365
SELECT DISTINCT + + 33 * - ( + + 98 ) + 1 - + 36 DIV - 68 * + - NULLIF ( ( + - 33 ), - 23 ) * 79 + + 38
----
-3195

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT + + 33 * - ( + + 98 ) + 1 - + 36 / - 68 * + - NULLIF ( ( + - 33 ), - 23 ) * 79 + + 38
----
-3195

query II rowsort
SELECT - 7 * - 5 + - 84 * + - 43 - + - 10 AS col2, 7 * - - 32
----
3657
224

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT - CASE + 35 WHEN - SUM( ALL 21 ) + + - 32 THEN + + 5 * - - ( + + 78 ) + + - 70 WHEN - + SUM( ALL + ( - 29 ) ) * + 86 * - + 75 * + + 66 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2367
SELECT - CASE + 35 WHEN - SUM ( ALL 21 ) + + - 32 THEN + + 5 * - - ( + + 78 ) + + - 70 WHEN - + SUM ( ALL + ( - 29 ) ) * + 86 * - + 75 * + + 66 THEN NULL END AS col2
----
NULL

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

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

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

query I rowsort
SELECT - 9 + - - 97
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT - COALESCE ( + COUNT( * ), + + 3 * - SUM( ALL + 66 ) * + MAX( + 13 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2371
SELECT - COALESCE ( + COUNT ( * ), + + 3 * - SUM ( ALL + 66 ) * + MAX ( + 13 ) )
----
-1

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

skipif mysql # not compatible
query I rowsort label-2372
SELECT - 66 - + COUNT ( * ) * COUNT ( - 72 ) AS col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT + 36 * - - CAST( + 25 AS SIGNED )
----
900

skipif mysql # not compatible
query I rowsort label-2373
SELECT + 36 * - - CAST ( + 25 AS INTEGER )
----
900

query I rowsort
SELECT - 76 * - - 49
----
-3724

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2375
SELECT ALL SUM( DISTINCT 59 ) DIV - ( - - 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL SUM ( DISTINCT 59 ) / - ( - - 34 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT - ( + COUNT( * ) ) + + 32 * + 58 + - 61 + - COUNT( * ) col2
----
1793

skipif mysql # not compatible
query I rowsort label-2376
SELECT - ( + COUNT ( * ) ) + + 32 * + 58 + - 61 + - COUNT ( * ) col2
----
1793

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT DISTINCT CAST( - ( - 72 ) AS SIGNED ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT CAST ( - ( - 72 ) AS INTEGER ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2378
SELECT ALL CAST( NULL AS SIGNED ) col0, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2378
SELECT ALL CAST ( NULL AS INTEGER ) col0, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT + SUM( ALL + 14 ) + - 7 - - 32, + COUNT( + 18 ) * ( - 72 ) AS col1
----
39
-72

skipif mysql # not compatible
query II rowsort label-2379
SELECT + SUM ( ALL + 14 ) + - 7 - - 32, + COUNT ( + 18 ) * ( - 72 ) AS col1
----
39
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2380
SELECT + CAST( NULL AS SIGNED ) - - MIN( DISTINCT + 98 ) + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2380
SELECT + CAST ( NULL AS INTEGER ) - - MIN ( DISTINCT + 98 ) + 16 AS col1
----
NULL

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

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

query II rowsort
SELECT - ( + + 47 ) * - ( 2 ) AS col0, - 43 + + + 95 AS col2
----
94
52

query I rowsort
SELECT + 4 * - 30 * - - 46
----
-5520

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

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

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

query II rowsort
SELECT + 21 + - 77 + - ( + 80 ) AS col2, - ( + 36 )
----
-136
-36

query II rowsort
SELECT DISTINCT 27 * - NULLIF ( + 10, - - 65 / - 34 - - + NULLIF ( - - 4, 79 ) * 32 ) AS col1, 50
----
-270
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2388
SELECT CASE - - 44 WHEN + CAST( NULL AS SIGNED ) THEN - - 76 * + + 15 * + 43 * - + 26 + - 23 WHEN - 96 THEN + + 0 END / NULLIF ( - 33, + 87 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT CASE - - 44 WHEN + CAST ( NULL AS INTEGER ) THEN - - 76 * + + 15 * + 43 * - + 26 + - 23 WHEN - 96 THEN + + 0 END / NULLIF ( - 33, + 87 ) AS col1
----
NULL

query I rowsort
SELECT ALL 3 + + 84 AS col1
----
87

query I rowsort
SELECT DISTINCT - 61 + + 40 + 92 AS col1
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-2391
SELECT + 7, COUNT( * ) * + 79 AS col0
----
7
79

skipif mysql # not compatible
query II rowsort label-2391
SELECT + 7, COUNT ( * ) * + 79 AS col0
----
7
79

query II rowsort
SELECT + 10, 24 AS col0
----
10
24

query II rowsort
SELECT NULLIF ( + NULLIF ( 29, - 92 ), + ( + + 99 ) + 85 * + 49 ) * - 89 AS col1, - 76 + - 32 AS col1
----
-2581
-108

query II rowsort
SELECT DISTINCT - 62 AS col0, 88
----
-62
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL 20 + - 50 + MIN( + + 45 )
----
15

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL 20 + - 50 + MIN ( + + 45 )
----
15

query I rowsort
SELECT 1 - + 55 col1
----
-54

query II rowsort
SELECT - - 82 * 82 - + COALESCE ( - - 35, - 5 ) * - 76, - 37 AS col0
----
9384
-37

query I rowsort
SELECT - 91 * + 34 AS col2
----
-3094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2399
SELECT ALL - CASE + 52 WHEN 99 * - 79 * - 41 - + + 22 / - 12 * 92 THEN - + 34 * 33 + + 58 - - + CAST( NULL AS SIGNED ) WHEN - 57 / + + CASE + 21 WHEN + SUM( + - ( 0 ) ) * + 64 THEN ( 60 ) * 74 WHEN 80 THEN - - 96 WHEN - ( 6 ) THEN - - 28 * - MAX( DISTINCT + ( - + 21 ) ) + 68 * 9 * - 39 * + - 67 * - 91 END + + 26 + + - ( 92 ) THEN - + COALESCE ( - 93, - 48 * - CASE - 76 WHEN 60 THEN NULL ELSE - 36 * ( 0 ) END - COUNT( * ) ) END * CASE + 56 WHEN - CAST( NULL AS DECIMAL ) THEN NULL WHEN 77 THEN NULL WHEN - 25 + - COALESCE ( - 14, - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * ( 52 ), 13 ) THEN ( - 1 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL - CASE + 52 WHEN 99 * - 79 * - 41 - + + 22 / - 12 * 92 THEN - + 34 * 33 + + 58 - - + CAST ( NULL AS INTEGER ) WHEN - 57 / + + CASE + 21 WHEN + SUM ( + - ( 0 ) ) * + 64 THEN ( 60 ) * 74 WHEN 80 THEN - - 96 WHEN - ( 6 ) THEN - - 28 * - MAX ( DISTINCT + ( - + 21 ) ) + 68 * 9 * - 39 * + - 67 * - 91 END + + 26 + + - ( 92 ) THEN - + COALESCE ( - 93, - 48 * - CASE - 76 WHEN 60 THEN NULL ELSE - 36 * ( 0 ) END - COUNT ( * ) ) END * CASE + 56 WHEN - CAST ( NULL AS REAL ) THEN NULL WHEN 77 THEN NULL WHEN - 25 + - COALESCE ( - 14, - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * ( 52 ), 13 ) THEN ( - 1 ) END
----
NULL

query I rowsort
SELECT - 35 + - + 70 AS col1
----
-105

query II rowsort
SELECT ALL - + 74, 84 AS col0
----
-74
84

query I rowsort
SELECT + - ( + + 90 ) AS col0
----
-90

query I rowsort
SELECT ALL - 50 * - + 33
----
1650

query I rowsort
SELECT DISTINCT 22 - + - 69
----
91

query I rowsort
SELECT + 15 + - 83
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2406
SELECT + CAST( NULL AS SIGNED ) * + SUM( - 29 ) - + - 7
----
NULL

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

query I rowsort
SELECT 33 * + 21 * + 91
----
63063

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2408
SELECT ALL - + 96 DIV 1 + NULLIF ( - 47, - - COUNT( + + 59 ) ) * - 14 * + COUNT( * )
----
562

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - + 96 / 1 + NULLIF ( - 47, - - COUNT ( + + 59 ) ) * - 14 * + COUNT ( * )
----
562

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

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

query II rowsort
SELECT + 90, 71 * ( - + 83 ) AS col2
----
90
-5893

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT ALL - 51 + + 2 + + ( + 43 ) * MAX( 56 )
----
2359

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL - 51 + + 2 + + ( + 43 ) * MAX ( 56 )
----
2359

query I rowsort
SELECT ALL + 93 + + + 18 AS col0
----
111

query I rowsort
SELECT + 0 + + - 77
----
-77

query I rowsort
SELECT DISTINCT + 1 * - + 30
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2415
SELECT ALL - 46 + + NULLIF ( + 37, + - 82 * - - COUNT( * ) + + 63 - 82 - + 45 * + - CASE + 6 WHEN - - 21 THEN + - 7 WHEN - + 72 THEN NULL ELSE NULL END - + + 63 + + - 74 + ( 39 ) * + + 84 + - 79 * - - CAST( NULL AS SIGNED ) * - 50 / + - ( + 63 ) * - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-2415
SELECT ALL - 46 + + NULLIF ( + 37, + - 82 * - - COUNT ( * ) + + 63 - 82 - + 45 * + - CASE + 6 WHEN - - 21 THEN + - 7 WHEN - + 72 THEN NULL ELSE NULL END - + + 63 + + - 74 + ( 39 ) * + + 84 + - 79 * - - CAST ( NULL AS INTEGER ) * - 50 / + - ( + 63 ) * - 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT 85 + CASE + 87 WHEN 27 THEN NULL WHEN + 37 * - + COUNT( * ) + + + SUM( DISTINCT + - 44 ) THEN NULL WHEN + 7 THEN - 98 END / + 70 + + ( + - MAX( ALL 51 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2416
SELECT 85 + CASE + 87 WHEN 27 THEN NULL WHEN + 37 * - + COUNT ( * ) + + + SUM ( DISTINCT + - 44 ) THEN NULL WHEN + 7 THEN - 98 END / + 70 + + ( + - MAX ( ALL 51 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT ALL - 47 + + 61 * + MAX( - 59 )
----
-3646

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL - 47 + + 61 * + MAX ( - 59 )
----
-3646

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT ALL + COALESCE ( NULLIF ( - 68, + COUNT( * ) ), - 32 * + 75 ) + + 38
----
-30

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL + COALESCE ( NULLIF ( - 68, + COUNT ( * ) ), - 32 * + 75 ) + + 38
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT ALL COUNT( 87 ) + - 66 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL COUNT ( 87 ) + - 66 AS col0
----
-65

query I rowsort
SELECT 14 * - 10 * 90 AS col0
----
-12600

onlyif mysql # DIV for integer division: 
query I rowsort label-2421
SELECT DISTINCT - CASE - 32 WHEN - 75 + - 30 THEN NULL ELSE - 41 DIV 68 + 24 DIV - + COALESCE ( - 31, + 66 ) * - - 52 * 24 DIV - 92 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT - CASE - 32 WHEN - 75 + - 30 THEN NULL ELSE - 41 / 68 + 24 / - + COALESCE ( - 31, + 66 ) * - - 52 * 24 / - 92 END AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2422
SELECT ALL - CASE + 6 WHEN CASE + 96 WHEN 84 THEN NULL WHEN - NULLIF ( + CASE - 89 WHEN + + 66 * - + 88 + - 3 - - 73 THEN NULL WHEN - - 14 THEN 3 * + + 95 * - + 40 ELSE + 15 END, - ( - - ( - 57 ) ) * + + 81 / + COUNT( * ) * 33 + - + 62 ) THEN 48 ELSE + ( 89 ) - + COUNT( * ) END / + 15 THEN - ( + - MAX( DISTINCT CAST( 17 AS SIGNED ) ) ) * 35 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL - CASE + 6 WHEN CASE + 96 WHEN 84 THEN NULL WHEN - NULLIF ( + CASE - 89 WHEN + + 66 * - + 88 + - 3 - - 73 THEN NULL WHEN - - 14 THEN 3 * + + 95 * - + 40 ELSE + 15 END, - ( - - ( - 57 ) ) * + + 81 / + COUNT ( * ) * 33 + - + 62 ) THEN 48 ELSE + ( 89 ) - + COUNT ( * ) END / + 15 THEN - ( + - MAX ( DISTINCT CAST ( 17 AS INTEGER ) ) ) * 35 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2423
SELECT - 51 DIV 45 + + 67 * 88 + - 39 * 44 * + 33
----
-50733

skipif mysql # not compatible
query I rowsort label-2423
SELECT - 51 / 45 + + 67 * 88 + - 39 * 44 * + 33
----
-50733

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

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

query I rowsort
SELECT 39 * + 70 * + + 85 AS col2
----
232050

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2427
SELECT 48 DIV + - 52 - - 51
----
51

skipif mysql # not compatible
query I rowsort label-2427
SELECT 48 / + - 52 - - 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL ( + 27 ) * COUNT( * ) * + 16
----
432

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL ( + 27 ) * COUNT ( * ) * + 16
----
432

query I rowsort
SELECT - 63 * 16 + - 63
----
-1071

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

query I rowsort
SELECT + 33 * + + 77 AS col0
----
2541

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT - 55 + + 90 * + COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-2433
SELECT - 55 + + 90 * + COUNT ( * ) AS col2
----
35

query I rowsort
SELECT ALL - + NULLIF ( + + 38, - - 27 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT DISTINCT - CASE - 91 WHEN - 58 + + + 86 * 41 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT - CASE - 91 WHEN - 58 + + + 86 * 41 THEN - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT COALESCE ( - ( 82 ), - + 21, 29 ) * COUNT( * ) + - + 80 * - 24 + + ( - 19 ) col0
----
1819

skipif mysql # not compatible
query I rowsort label-2436
SELECT COALESCE ( - ( 82 ), - + 21, 29 ) * COUNT ( * ) + - + 80 * - 24 + + ( - 19 ) col0
----
1819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2437
SELECT DISTINCT + - 39 + - - CAST( + + 25 AS SIGNED ) * 29
----
686

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT + - 39 + - - CAST ( + + 25 AS INTEGER ) * 29
----
686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2438
SELECT ALL - NULLIF ( - CASE + - 1 WHEN - 69 + + 56 THEN - 21 - + ( - CASE - + 52 WHEN - ( 21 ) * 62 + 63 * - 19 / + + 77 THEN 58 + + - 82 - + 68 * + 17 * SUM( + 82 ) WHEN + - 92 * + + ( + - 84 ) * + 54 / 69 * - 37 + COUNT( * ) + + 21 THEN + - 38 - - + 86 WHEN + ( - 32 ) * - ( + - 38 ) + + - 54 + + 25 THEN - 26 ELSE NULL END ) * - + 57 ELSE - COALESCE ( - 27, + 30 ) * AVG ( DISTINCT - 48 * - 77 ) - - CAST( NULL AS SIGNED ) / ( + 68 ) END, - COUNT( - ( 85 ) ) - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL - NULLIF ( - CASE + - 1 WHEN - 69 + + 56 THEN - 21 - + ( - CASE - + 52 WHEN - ( 21 ) * 62 + 63 * - 19 / + + 77 THEN 58 + + - 82 - + 68 * + 17 * SUM ( + 82 ) WHEN + - 92 * + + ( + - 84 ) * + 54 / 69 * - 37 + COUNT ( * ) + + 21 THEN + - 38 - - + 86 WHEN + ( - 32 ) * - ( + - 38 ) + + - 54 + + 25 THEN - 26 ELSE NULL END ) * - + 57 ELSE - COALESCE ( - 27, + 30 ) * AVG ( DISTINCT - 48 * - 77 ) - - CAST ( NULL AS INTEGER ) / ( + 68 ) END, - COUNT ( - ( 85 ) ) - 64 )
----
NULL

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

query I rowsort
SELECT DISTINCT 36 * - 43
----
-1548

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL + 22 + COUNT( * ) * - - 62 col2
----
84

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL + 22 + COUNT ( * ) * - - 62 col2
----
84

query I rowsort
SELECT - 29 + + 32 + + 48 * - + 51 AS col2
----
-2445

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

skipif mysql # not compatible
query I rowsort label-2443
SELECT - SUM ( + 54 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2444
SELECT CAST( 32 AS SIGNED ) + + + 74 AS col2, + COUNT( * ) AS col0
----
106
1

skipif mysql # not compatible
query II rowsort label-2444
SELECT CAST ( 32 AS INTEGER ) + + + 74 AS col2, + COUNT ( * ) AS col0
----
106
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT ALL 34 + - COUNT( DISTINCT - 39 )
----
33

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL 34 + - COUNT ( DISTINCT - 39 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2446
SELECT 76 DIV - 23 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2446
SELECT 76 / - 23 AS col0
----
-3

query I rowsort
SELECT + ( + + 19 ) - - + 59 * - 80 col2
----
-4701

query I rowsort
SELECT DISTINCT - 33 + - 33 AS col1
----
-66

query I rowsort
SELECT ALL 57 + 55 * 55 AS col1
----
3082

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT ALL + 61 + + 20 DIV + 59 * + 85
----
61

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL + 61 + + 20 / + 59 * + 85
----
61

query II rowsort
SELECT ALL 96, 45 AS col1
----
96
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT - 62 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT - 62 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 21 * - 78
----
1638

query II rowsort
SELECT DISTINCT 1 col2, - 75 + 13 + + 73 AS col0
----
1
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL COUNT( * ) - + - 70
----
71

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL COUNT ( * ) - + - 70
----
71

query I rowsort
SELECT - COALESCE ( + 16, - 70, CASE + 73 WHEN + - 87 THEN + 70 - + 98 * + 46 END )
----
-16

query I rowsort
SELECT ALL - 52 * - - 65 * + + 93 AS col2
----
-314340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2458
SELECT + 26 * + 2 * 63 AS col2, CASE + 53 WHEN + 22 DIV + CAST( NULL AS SIGNED ) DIV - + 81 + + - 83 + - + 39 * - COUNT( * ) THEN MIN( DISTINCT + ( 13 ) ) * + ( - 19 ) + ( - 84 ) + + 16 * + - CAST( + 96 AS SIGNED ) ELSE + COUNT( * ) * - 79 DIV - 59 + - - 27 - - ( + 71 ) END
----
3276
99

skipif mysql # not compatible
query II rowsort label-2458
SELECT + 26 * + 2 * 63 AS col2, CASE + 53 WHEN + 22 / + CAST ( NULL AS INTEGER ) / - + 81 + + - 83 + - + 39 * - COUNT ( * ) THEN MIN ( DISTINCT + ( 13 ) ) * + ( - 19 ) + ( - 84 ) + + 16 * + - CAST ( + 96 AS INTEGER ) ELSE + COUNT ( * ) * - 79 / - 59 + - - 27 - - ( + 71 ) END
----
3276
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT - COUNT( * ) + + 74 + + 75 * + 16 AS col2
----
1273

skipif mysql # not compatible
query I rowsort label-2459
SELECT - COUNT ( * ) + + 74 + + 75 * + 16 AS col2
----
1273

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

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

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

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

query I rowsort
SELECT DISTINCT + - CASE WHEN + 37 IS NULL THEN + 75 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT + 94 AS col0, 16 AS col1
----
94
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT DISTINCT - ( - 63 ) * + COUNT( * ) * - 43
----
-2709

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT - ( - 63 ) * + COUNT ( * ) * - 43
----
-2709

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT - SUM( + - 63 ) * - - 61 - - + 72 * - + CASE - 35 WHEN - 47 * + COALESCE ( + 64, ( MIN( + + 96 ) ) - + + 98 ) THEN + 75 + - 60 * COUNT( DISTINCT - 71 ) * + + 50 / + 3 * + 25 WHEN - - 80 THEN NULL WHEN - + 47 THEN NULL END * 45 / - 81 * - 19 + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT - SUM ( + - 63 ) * - - 61 - - + 72 * - + CASE - 35 WHEN - 47 * + COALESCE ( + 64, ( MIN ( + + 96 ) ) - + + 98 ) THEN + 75 + - 60 * COUNT ( DISTINCT - 71 ) * + + 50 / + 3 * + 25 WHEN - - 80 THEN NULL WHEN - + 47 THEN NULL END * 45 / - 81 * - 19 + + 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2466
SELECT ALL - 67 * CASE 78 WHEN - NULLIF ( - 73, - 24 / - COUNT( * ) ) THEN NULL WHEN - - 8 * + + ( - 86 ) - + 83 THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL - 67 * CASE 78 WHEN - NULLIF ( - 73, - 24 / - COUNT ( * ) ) THEN NULL WHEN - - 8 * + + ( - 86 ) - + 83 THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

query II rowsort
SELECT - 28, 84 AS col2
----
-28
84

query I rowsort
SELECT DISTINCT - 50 * 18
----
-900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2469
SELECT ALL - 15 * 79 * - - CAST( NULL AS SIGNED ), 79 AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-2469
SELECT ALL - 15 * 79 * - - CAST ( NULL AS INTEGER ), 79 AS col1
----
NULL
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT + + 50 * + + MAX( 72 ) - - + 77 + + + 21
----
3698

skipif mysql # not compatible
query I rowsort label-2470
SELECT + + 50 * + + MAX ( 72 ) - - + 77 + + + 21
----
3698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2471
SELECT ALL + COUNT( ALL + CAST( NULL AS SIGNED ) ) * 33 DIV + 18 + - MAX( - + 27 ) + + ( - 7 ) + - + 32 + + 40 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * 33 / + 18 + - MAX ( - + 27 ) + + ( - 7 ) + - + 32 + + 40 AS col2
----
28

query II rowsort
SELECT + 36 col0, NULLIF ( + + 79, + 75 ) - 46 * - 38
----
36
1827

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2474
SELECT ALL ( 40 ) * - 17 * - MAX( DISTINCT - 30 ) * - ( 62 ) + + 26 + + 13 + - + 71 * + 29 + CAST( - 58 AS SIGNED )
----
1262722

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL ( 40 ) * - 17 * - MAX ( DISTINCT - 30 ) * - ( 62 ) + + 26 + + 13 + - + 71 * + 29 + CAST ( - 58 AS INTEGER )
----
1262722

query I rowsort
SELECT - + 85 + - + 70
----
-155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2476
SELECT ( CAST( NULL AS SIGNED ) ) * + 61 + + 56 * + 25 + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2476
SELECT ( CAST ( NULL AS INTEGER ) ) * + 61 + + 56 * + 25 + 97 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + 28 + - 19 AS col1
----
9

query I rowsort
SELECT ALL 39 - + ( 86 ) AS col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2480
SELECT + 45 * - 97 * + CAST( + 66 AS SIGNED ) AS col1, 7
----
-288090
7

skipif mysql # not compatible
query II rowsort label-2480
SELECT + 45 * - 97 * + CAST ( + 66 AS INTEGER ) AS col1, 7
----
-288090
7

query I rowsort
SELECT ALL 51 * - + 35 AS col2
----
-1785

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT + 21 + + CASE - ( - COUNT( * ) ) WHEN MAX( + + 65 ) THEN ( - ( - + ( - 73 ) ) ) END - - - COUNT( * ) * + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT + 21 + + CASE - ( - COUNT ( * ) ) WHEN MAX ( + + 65 ) THEN ( - ( - + ( - 73 ) ) ) END - - - COUNT ( * ) * + 72 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2483
SELECT - CAST( NULL AS SIGNED ) + - 51 + - ( + CASE - 91 WHEN 16 THEN + CASE 42 WHEN - 96 THEN NULL ELSE 0 + + 7 END * + 98 END ) + 39 * + 50 * MIN( DISTINCT - ( + 85 ) ) - + 73 + ( + 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT - CAST ( NULL AS INTEGER ) + - 51 + - ( + CASE - 91 WHEN 16 THEN + CASE 42 WHEN - 96 THEN NULL ELSE 0 + + 7 END * + 98 END ) + 39 * + 50 * MIN ( DISTINCT - ( + 85 ) ) - + 73 + ( + 12 )
----
NULL

query I rowsort
SELECT + 97 + - + 64
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT ALL COUNT( * ) * - 3 * 99
----
-297

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL COUNT ( * ) * - 3 * 99
----
-297

query I rowsort
SELECT + 3 + + 7 - + 10
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2487
SELECT - ( - 8 ), + CAST( - + 57 AS SIGNED ) AS col0
----
8
-57

skipif mysql # not compatible
query II rowsort label-2487
SELECT - ( - 8 ), + CAST ( - + 57 AS INTEGER ) AS col0
----
8
-57

query I rowsort
SELECT ALL NULLIF ( 15, 24 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2489
SELECT + 31 DIV + 13 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2489
SELECT + 31 / + 13 AS col2
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT 76 * - 8 + + 72 * + + 23 * + COUNT( * ) + + 51 * - 86 * 63 + - 23
----
-275293

skipif mysql # not compatible
query I rowsort label-2491
SELECT 76 * - 8 + + 72 * + + 23 * + COUNT ( * ) + + 51 * - 86 * 63 + - 23
----
-275293

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

skipif mysql # not compatible
query I rowsort label-2492
SELECT MIN ( + + 51 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2493
SELECT - CAST( - 30 AS SIGNED ) DIV 10 * 90 + COALESCE ( - 99, - 39, - MIN( ALL + 6 ) ) + 20 AS col1, 1 AS col2
----
191
1

skipif mysql # not compatible
query II rowsort label-2493
SELECT - CAST ( - 30 AS INTEGER ) / 10 * 90 + COALESCE ( - 99, - 39, - MIN ( ALL + 6 ) ) + 20 AS col1, 1 AS col2
----
191
1

query I rowsort
SELECT - - 27 * + 69
----
1863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2495
SELECT ALL 2 DIV + 12 + - 47 DIV - ( - COUNT( - 23 ) ) - - + 89 * ( - 45 ) * COUNT( * ) * + 50 + - + 91 * + - 65
----
-194382

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL 2 / + 12 + - 47 / - ( - COUNT ( - 23 ) ) - - + 89 * ( - 45 ) * COUNT ( * ) * + 50 + - + 91 * + - 65
----
-194382

query I rowsort
SELECT + 4 + + 20 + 4 AS col2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2497
SELECT 10 DIV - - 94 - - + 62 + + 13 + + + ( - ( + 38 ) ) * + ( + + 70 )
----
-2585

skipif mysql # not compatible
query I rowsort label-2497
SELECT 10 / - - 94 - - + 62 + + 13 + + + ( - ( + 38 ) ) * + ( + + 70 )
----
-2585

onlyif mysql # DIV for integer division: 
query I rowsort label-2498
SELECT ALL - 39 DIV + + 99 + - + 5
----
-5

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - 39 / + + 99 + - + 5
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2499
SELECT ALL 89 DIV - - COUNT( * ) + - 72 col2
----
17

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL 89 / - - COUNT ( * ) + - 72 col2
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2500
SELECT + 93 * 75 + - 38 + 59 DIV 25 col1
----
6939

skipif mysql # not compatible
query I rowsort label-2500
SELECT + 93 * 75 + - 38 + 59 / 25 col1
----
6939

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2501
SELECT DISTINCT + + CAST( + + 83 AS SIGNED ), 8 + COALESCE ( - 88, - - 44 - - - 1 ) + 35 col0
----
83
-45

skipif mysql # not compatible
query II rowsort label-2501
SELECT DISTINCT + + CAST ( + + 83 AS INTEGER ), 8 + COALESCE ( - 88, - - 44 - - - 1 ) + 35 col0
----
83
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT + - ( + 29 ) DIV + + 97 + - 69
----
-69

skipif mysql # not compatible
query I rowsort label-2502
SELECT + - ( + 29 ) / + + 97 + - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT - + 0 + COUNT( ALL - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-2503
SELECT - + 0 + COUNT ( ALL - 99 )
----
1

query I rowsort
SELECT - + 89 * + 94 AS col0
----
-8366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2505
SELECT COUNT( * ) * + 93 DIV + + 1 + + 35 - + 65 + - + 86 + - + MIN( DISTINCT + 93 ) + - 62 DIV + 65
----
-116

skipif mysql # not compatible
query I rowsort label-2505
SELECT COUNT ( * ) * + 93 / + + 1 + + 35 - + 65 + - + 86 + - + MIN ( DISTINCT + 93 ) + - 62 / + 65
----
-116

query I rowsort
SELECT DISTINCT + 61 * + 39 AS col1
----
2379

onlyif mysql # aggregate syntax: 
query II rowsort label-2507
SELECT ALL + - COUNT( * ) * - 45 AS col2, - ( - 99 ) AS col0
----
45
99

skipif mysql # not compatible
query II rowsort label-2507
SELECT ALL + - COUNT ( * ) * - 45 AS col2, - ( - 99 ) AS col0
----
45
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2508
SELECT - ( + 83 ) DIV - 49 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2508
SELECT - ( + 83 ) / - 49 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT - 18 * + 91 - - + COUNT( * ) + - - 3 + + 87 * COUNT( - 22 ) + + - 31 AS col2
----
-1578

skipif mysql # not compatible
query I rowsort label-2509
SELECT - 18 * + 91 - - + COUNT ( * ) + - - 3 + + 87 * COUNT ( - 22 ) + + - 31 AS col2
----
-1578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2510
SELECT DISTINCT - 69 * COALESCE ( - CAST( NULL AS SIGNED ), ( - CASE + - 62 WHEN + - 6 - - 82 THEN + 24 WHEN + 49 * + + COUNT( COALESCE ( - NULLIF ( - 90, - 22 ), 89 * - 82 + NULLIF ( - 48, - + 8 ) ) ) THEN NULL END ) + 47 ) * - 11 * 32 + + 82 + + - COALESCE ( - + 4, + NULLIF ( 49, CAST( 25 AS SIGNED ) - - ( - + ( + 55 ) ) * - COUNT( * ) * + + 49 ) + - 79 + - 17 * - + 10 * + + ( + 49 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT - 69 * COALESCE ( - CAST ( NULL AS INTEGER ), ( - CASE + - 62 WHEN + - 6 - - 82 THEN + 24 WHEN + 49 * + + COUNT ( COALESCE ( - NULLIF ( - 90, - 22 ), 89 * - 82 + NULLIF ( - 48, - + 8 ) ) ) THEN NULL END ) + 47 ) * - 11 * 32 + + 82 + + - COALESCE ( - + 4, + NULLIF ( 49, CAST ( 25 AS INTEGER ) - - ( - + ( + 55 ) ) * - COUNT ( * ) * + + 49 ) + - 79 + - 17 * - + 10 * + + ( + 49 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2511
SELECT ALL COALESCE ( - SUM( 63 ), + + NULLIF ( + COUNT( * ), - COUNT( * ) * - 82 + + 81 + 30 + 83 + + 71 - + + ( - COUNT( * ) ) + + - ( - 73 ) * + - 48 * COUNT( * ) / + + ( - 84 ) * + 16 * + 60 + + 0 + - 96 * - 2 * 48 / - MIN( - ( + 63 ) ) ), 36 ) - - 57 * + + 50, ( CAST( + 10 AS SIGNED ) ) * 66 AS col1
----
2787
660

skipif mysql # not compatible
query II rowsort label-2511
SELECT ALL COALESCE ( - SUM ( 63 ), + + NULLIF ( + COUNT ( * ), - COUNT ( * ) * - 82 + + 81 + 30 + 83 + + 71 - + + ( - COUNT ( * ) ) + + - ( - 73 ) * + - 48 * COUNT ( * ) / + + ( - 84 ) * + 16 * + 60 + + 0 + - 96 * - 2 * 48 / - MIN ( - ( + 63 ) ) ), 36 ) - - 57 * + + 50, ( CAST ( + 10 AS INTEGER ) ) * 66 AS col1
----
2787
660

query I rowsort
SELECT DISTINCT - 70 * + 21 AS col1
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT DISTINCT + COUNT( * ) - - 74 + - ( 94 ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT + COUNT ( * ) - - 74 + - ( 94 ) col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2514
SELECT 88 * 54 / + 9 * - + 56 / ( - CAST( NULL AS SIGNED ) ) + - 63 - - + 98 * + - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT 88 * 54 / + 9 * - + 56 / ( - CAST ( NULL AS INTEGER ) ) + - 63 - - + 98 * + - 74 AS col2
----
NULL

query I rowsort
SELECT ALL + 97 - - 89
----
186

query I rowsort
SELECT 4 * + 54 AS col0
----
216

query II rowsort
SELECT ALL 3, - 12 col0
----
3
-12

query I rowsort
SELECT DISTINCT NULLIF ( + 35, - 73 ) * + + 7 * + + 38 + 44
----
9354

query II rowsort
SELECT DISTINCT 7 AS col2, 74 AS col0
----
7
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT DISTINCT 85 * - NULLIF ( + COUNT( * ), - - 32 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT 85 * - NULLIF ( + COUNT ( * ), - - 32 ) AS col2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2521
SELECT DISTINCT CASE - - NULLIF ( + CAST( + 70 AS SIGNED ), - 59 ) WHEN - - 68 THEN NULL WHEN - 7 THEN NULL ELSE + 54 * 39 + 67 END * - - 74
----
160802

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT CASE - - NULLIF ( + CAST ( + 70 AS INTEGER ), - 59 ) WHEN - - 68 THEN NULL WHEN - 7 THEN NULL ELSE + 54 * 39 + 67 END * - - 74
----
160802

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT CASE + 99 WHEN + 35 * - MAX( ALL - + 83 ) THEN NULL WHEN - ( + 62 ) THEN 24 * + MAX( ALL + + 65 ) ELSE + 24 END * - + 14 * 29 AS col0
----
-9744

skipif mysql # not compatible
query I rowsort label-2522
SELECT CASE + 99 WHEN + 35 * - MAX ( ALL - + 83 ) THEN NULL WHEN - ( + 62 ) THEN 24 * + MAX ( ALL + + 65 ) ELSE + 24 END * - + 14 * 29 AS col0
----
-9744

query I rowsort
SELECT DISTINCT - 83 * + 26 * + + 31 * 85
----
-5686330

query I rowsort
SELECT ALL 18 + + 59 AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2525
SELECT + 57 * 82 DIV - 64 + + 45
----
-28

skipif mysql # not compatible
query I rowsort label-2525
SELECT + 57 * 82 / - 64 + + 45
----
-28

query I rowsort
SELECT DISTINCT 36 + + 69
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT ALL + MIN( - + 37 ) + - 30 - COUNT( * ) * + - 73
----
6

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL + MIN ( - + 37 ) + - 30 - COUNT ( * ) * + - 73
----
6

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

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

query I rowsort
SELECT ALL - + 74 + + 87 * + - 94 AS col2
----
-8252

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT 28 + + + COUNT( * ) + - - 50 + - 23 col2
----
56

skipif mysql # not compatible
query I rowsort label-2531
SELECT 28 + + + COUNT ( * ) + - - 50 + - 23 col2
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2532
SELECT + 51 DIV + 10
----
5

skipif mysql # not compatible
query I rowsort label-2532
SELECT + 51 / + 10
----
5

query I rowsort
SELECT + 74 * 66 + 1 * 40 + - + 32 AS col1
----
4892

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2534
SELECT ALL - 7, CAST( NULL AS DECIMAL ) * - 9 / - + 22 col0
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-2534
SELECT ALL - 7, CAST ( NULL AS REAL ) * - 9 / - + 22 col0
----
-7
NULL

query II rowsort
SELECT 68 * - 46 + - 12 + ( 15 ), + 66 AS col2
----
-3125
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL + ( + 15 ) - NULLIF ( - - SUM( - 96 ), - 71 ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + ( + 15 ) - NULLIF ( - - SUM ( - 96 ), - 71 ) AS col0
----
111

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

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

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

query II rowsort
SELECT ALL - ( + 56 ) AS col2, - 24 + + 1 + - 75 * 42 AS col1
----
-56
-3173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2540
SELECT CAST( 39 AS SIGNED ) * 61 AS col0
----
2379

skipif mysql # not compatible
query I rowsort label-2540
SELECT CAST ( 39 AS INTEGER ) * 61 AS col0
----
2379

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT 2 * + 56 + - SUM( + 44 ) + + 4 * 58
----
300

skipif mysql # not compatible
query I rowsort label-2541
SELECT 2 * + 56 + - SUM ( + 44 ) + + 4 * 58
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2542
SELECT DISTINCT - CASE - 78 WHEN 41 - + 37 + - - AVG ( - 57 ) * + - MAX( + 45 ) THEN NULL WHEN + AVG ( + 18 ) THEN CASE + ( COUNT( * ) ) WHEN 21 THEN 58 * - 16 * + CAST( - 61 AS SIGNED ) END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT - CASE - 78 WHEN 41 - + 37 + - - AVG ( - 57 ) * + - MAX ( + 45 ) THEN NULL WHEN + AVG ( + 18 ) THEN CASE + ( COUNT ( * ) ) WHEN 21 THEN 58 * - 16 * + CAST ( - 61 AS INTEGER ) END ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL - 65, - 69 * + - 75 AS col2
----
-65
5175

query I rowsort
SELECT 4 + + 88 * - 17 AS col1
----
-1492

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

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

query I rowsort
SELECT 2 * + 63 * - 23 * - + 63 + - 13 - ( - + ( + 85 ) ) * 46 * CASE 25 WHEN - 20 THEN - 19 WHEN 47 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT DISTINCT NULLIF ( - 97, - NULLIF ( + 51, + - 89 ) ) DIV + 17 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT NULLIF ( - 97, - NULLIF ( + 51, + - 89 ) ) / + 17 AS col0
----
-5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2549
SELECT 29 DIV - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2549
SELECT 29 / - 46 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2550
SELECT ALL - COUNT( DISTINCT + 92 ) * + ( - SUM( ALL - - 15 ) ) * - CAST( - 98 AS SIGNED ) * 78 + + 24 AS col0
----
114684

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - COUNT ( DISTINCT + 92 ) * + ( - SUM ( ALL - - 15 ) ) * - CAST ( - 98 AS INTEGER ) * 78 + + 24 AS col0
----
114684

query I rowsort
SELECT ALL 44 + + 22
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2552
SELECT DISTINCT 2 + + - 8, 96 * + - 9 + + ( - + 69 ) * - 20 + CAST( - - 18 AS SIGNED ) + 80 AS col1
----
-6
614

skipif mysql # not compatible
query II rowsort label-2552
SELECT DISTINCT 2 + + - 8, 96 * + - 9 + + ( - + 69 ) * - 20 + CAST ( - - 18 AS INTEGER ) + 80 AS col1
----
-6
614

query II rowsort
SELECT 48 + + - 73 AS col0, 4 col0
----
-25
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2555
SELECT 19 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-2555
SELECT 19 / 67
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2556
SELECT 55 DIV 10
----
5

skipif mysql # not compatible
query I rowsort label-2556
SELECT 55 / 10
----
5

query I rowsort
SELECT ALL + 94 + - 56 * 82 col1
----
-4498

onlyif mysql # aggregate syntax: 
query II rowsort label-2558
SELECT + 72 + + 79 AS col2, 72 + - + COUNT( * ) AS col2
----
151
71

skipif mysql # not compatible
query II rowsort label-2558
SELECT + 72 + + 79 AS col2, 72 + - + COUNT ( * ) AS col2
----
151
71

query I rowsort
SELECT + COALESCE ( + 81, + 88 * - 17 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2560
SELECT DISTINCT 80 AS col2, - 22 + 10 + + COUNT( * ) + - + 21 * + - 23
----
80
472

skipif mysql # not compatible
query II rowsort label-2560
SELECT DISTINCT 80 AS col2, - 22 + 10 + + COUNT ( * ) + - + 21 * + - 23
----
80
472

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL - 88 + + ( NULLIF ( - 14, - 22 + - 61 * + + 20 ) ) + NULLIF ( - COUNT( * ), - + 82 * - CASE + 12 WHEN 96 THEN NULL WHEN 80 THEN NULL ELSE + 97 / - 26 END - 71 + 24 )
----
-103

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL - 88 + + ( NULLIF ( - 14, - 22 + - 61 * + + 20 ) ) + NULLIF ( - COUNT ( * ), - + 82 * - CASE + 12 WHEN 96 THEN NULL WHEN 80 THEN NULL ELSE + 97 / - 26 END - 71 + 24 )
----
-103

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT DISTINCT + + CASE + 19 WHEN + 26 THEN + NULLIF ( + 82, - + 94 ) * + 59 + CAST( - 17 AS SIGNED ) + CAST( - 92 AS SIGNED ) + + + 27 WHEN - 76 * ( 2 ) THEN + 43 WHEN + 50 * - - 56 + - + 3 THEN NULL ELSE - + ( + 30 ) END + - 85
----
-115

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT + + CASE + 19 WHEN + 26 THEN + NULLIF ( + 82, - + 94 ) * + 59 + CAST ( - 17 AS INTEGER ) + CAST ( - 92 AS INTEGER ) + + + 27 WHEN - 76 * ( 2 ) THEN + 43 WHEN + 50 * - - 56 + - + 3 THEN NULL ELSE - + ( + 30 ) END + - 85
----
-115

query II rowsort
SELECT - 86 AS col1, - 53
----
-86
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-2565
SELECT - 22 + + + COUNT( * ) AS col1, 86 AS col0
----
-21
86

skipif mysql # not compatible
query II rowsort label-2565
SELECT - 22 + + + COUNT ( * ) AS col1, 86 AS col0
----
-21
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2566
SELECT ALL 48 col1, 27 * + CAST( NULL AS SIGNED ) - 87 col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-2566
SELECT ALL 48 col1, 27 * + CAST ( NULL AS INTEGER ) - 87 col1
----
48
NULL

query I rowsort
SELECT - 38 * + 65 + - - 12 + - 87
----
-2545

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT + MAX( ALL - + NULLIF ( - + 15, - 74 + 10 ) )
----
15

skipif mysql # not compatible
query I rowsort label-2568
SELECT + MAX ( ALL - + NULLIF ( - + 15, - 74 + 10 ) )
----
15

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

skipif mysql # not compatible
query I rowsort label-2569
SELECT - - ( - COUNT ( * ) ) / + 84 + - - 16
----
16

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2571
SELECT 39 AS col0, 20 + 53 + - + COUNT( * ) * - - 6 AS col0
----
39
67

skipif mysql # not compatible
query II rowsort label-2571
SELECT 39 AS col0, 20 + 53 + - + COUNT ( * ) * - - 6 AS col0
----
39
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT DISTINCT + - SUM( COALESCE ( + 41, 54 + COALESCE ( - 69, 64 + 67 DIV + 92 DIV + 72 ) ) )
----
-41

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT + - SUM ( COALESCE ( + 41, 54 + COALESCE ( - 69, 64 + 67 / + 92 / + 72 ) ) )
----
-41

query I rowsort
SELECT + 38 * - 62 AS col1
----
-2356

query II rowsort
SELECT ALL - 70 * 58 * 75 AS col0, + 52 AS col1
----
-304500
52

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

skipif mysql # not compatible
query I rowsort label-2575
SELECT + 22 + + ( COUNT ( * ) ) AS col2
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-2576
SELECT ALL 28 DIV - - 92 AS col1, 34
----
0
34

skipif mysql # not compatible
query II rowsort label-2576
SELECT ALL 28 / - - 92 AS col1, 34
----
0
34

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

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

query I rowsort
SELECT - ( + + 86 ) * - 0 + + + 26
----
26

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT 25 * - COALESCE ( + 95, + 40, - - 60 ) * + 46 + + + NULLIF ( + COALESCE ( - 56, 18, + 44 ), - 82 + - 53 + - 56 * + 13 * - 54 * COUNT( ALL + + 97 ) ) + COALESCE ( + 12, - + ( + 0 ) ) * - - COUNT( * ) AS col0
----
-109294

skipif mysql # not compatible
query I rowsort label-2581
SELECT 25 * - COALESCE ( + 95, + 40, - - 60 ) * + 46 + + + NULLIF ( + COALESCE ( - 56, 18, + 44 ), - 82 + - 53 + - 56 * + 13 * - 54 * COUNT ( ALL + + 97 ) ) + COALESCE ( + 12, - + ( + 0 ) ) * - - COUNT ( * ) AS col0
----
-109294

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

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

query I rowsort
SELECT + 80 * - + 68
----
-5440

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

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL - 62 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 26 * + 28 + 85
----
813

onlyif mysql # aggregate syntax: 
query II rowsort label-2586
SELECT ALL COUNT( + + 24 ), + 71 - + + 87 col1
----
1
-16

skipif mysql # not compatible
query II rowsort label-2586
SELECT ALL COUNT ( + + 24 ), + 71 - + + 87 col1
----
1
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT MIN( + CASE - 21 WHEN + + 0 + 50 THEN - 49 WHEN - - 61 + - - 64 / + 92 THEN NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT MIN ( + CASE - 21 WHEN + + 0 + 50 THEN - 49 WHEN - - 61 + - - 64 / + 92 THEN NULL END ) col0
----
NULL

query I rowsort
SELECT - 85 * 72 AS col0
----
-6120

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT ALL NULLIF ( + NULLIF ( - - 21, - MAX( ALL 73 ) * - 35 + - NULLIF ( - 89, + 18 ) + - 90 - + 7 ), 91 ) + + COUNT( - 92 ) + + - 91 + + 61 * + COALESCE ( + + 15, + 22 ) * 3 * - + 29 AS col0
----
-79674

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL NULLIF ( + NULLIF ( - - 21, - MAX ( ALL 73 ) * - 35 + - NULLIF ( - 89, + 18 ) + - 90 - + 7 ), 91 ) + + COUNT ( - 92 ) + + - 91 + + 61 * + COALESCE ( + + 15, + 22 ) * 3 * - + 29 AS col0
----
-79674

query II rowsort
SELECT DISTINCT - ( - - 27 ), 40 + 33 + + 40 - + - 44 + + 74 AS col0
----
-27
231

onlyif mysql # DIV for integer division: 
query I rowsort label-2593
SELECT ALL + 42 + + - 2 DIV - 10 * - 51 + - 65 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL + 42 + + - 2 / - 10 * - 51 + - 65 AS col1
----
-23

query I rowsort
SELECT - 97 * - 34
----
3298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2595
SELECT - CAST( NULL AS SIGNED ) - 53 - + - 76 / + 88 + + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT - CAST ( NULL AS INTEGER ) - 53 - + - 76 / + 88 + + 93 AS col1
----
NULL

query I rowsort
SELECT - - ( + 13 ) - + 0 - + + 43
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2597
SELECT - + 12 * 54 col1, + COALESCE ( COUNT( * ), + ( - - 22 ) * - + 23 * 38 ) + COUNT( * ) * + COUNT( DISTINCT 98 ) AS col1
----
-648
2

skipif mysql # not compatible
query II rowsort label-2597
SELECT - + 12 * 54 col1, + COALESCE ( COUNT ( * ), + ( - - 22 ) * - + 23 * 38 ) + COUNT ( * ) * + COUNT ( DISTINCT 98 ) AS col1
----
-648
2

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

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

query II rowsort
SELECT - - NULLIF ( + 1, - 46 + + 72 ) * ( 5 ) * + 1, + 11 AS col2
----
5
11

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

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

query I rowsort
SELECT ALL - 83 * 16 + + - ( + 81 )
----
-1409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2602
SELECT - COUNT( * ) * - - 29 + - + COUNT( * ) + - - 92 + + 55 DIV + 39
----
63

skipif mysql # not compatible
query I rowsort label-2602
SELECT - COUNT ( * ) * - - 29 + - + COUNT ( * ) + - - 92 + + 55 / + 39
----
63

query I rowsort
SELECT DISTINCT - - 48 * - 51 AS col0
----
-2448

query I rowsort
SELECT + 40 * + 36 + - + COALESCE ( + 48, + 20 )
----
1392

query I rowsort
SELECT + 16 * - 77
----
-1232

query I rowsort
SELECT - 83 * - 67 + + 70 AS col2
----
5631

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2608
SELECT 39 DIV - - 20 + + - 66
----
-65

skipif mysql # not compatible
query I rowsort label-2608
SELECT 39 / - - 20 + + - 66
----
-65

query II rowsort
SELECT ALL + 84 AS col0, 96
----
84
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT + 80 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-2610
SELECT + 80 / 90
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2611
SELECT ALL - 68 * + + 9 + 0 * COALESCE ( + + 82, + 89 ) DIV + 4 - 49 + + 13 + + COUNT( * ) DIV - 27 * 22
----
-648

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL - 68 * + + 9 + 0 * COALESCE ( + + 82, + 89 ) / + 4 - 49 + + 13 + + COUNT ( * ) / - 27 * 22
----
-648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2612
SELECT DISTINCT COUNT( * ) DIV 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT COUNT ( * ) / 36 AS col2
----
0

query I rowsort
SELECT DISTINCT ( + 83 ) * - - 76 + 11 col0
----
6319

query I rowsort
SELECT ALL 27 * + 93 * + 24 + 10
----
60274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2615
SELECT - 45 * + CAST( - 35 AS SIGNED ) * 28 + - 90
----
44010

skipif mysql # not compatible
query I rowsort label-2615
SELECT - 45 * + CAST ( - 35 AS INTEGER ) * 28 + - 90
----
44010

query I rowsort
SELECT + NULLIF ( + 27, - 65 )
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-2617
SELECT + 26 * 4 * + 12 col2, 99 DIV + 51
----
1248
1

skipif mysql # not compatible
query II rowsort label-2617
SELECT + 26 * 4 * + 12 col2, 99 / + 51
----
1248
1

query I rowsort
SELECT + 97 * 73 AS col2
----
7081

query I rowsort
SELECT NULLIF ( - ( 77 ), - 41 * + 56 * - 81 ) col2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT - CAST( 39 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-2620
SELECT - CAST ( 39 AS INTEGER )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2621
SELECT ALL - 25 * - + MIN( + + 14 ) * + 42 + + MAX( ALL + 47 ) * + - MIN( + - 35 ), + 48 DIV 77 AS col1
----
16345
0

skipif mysql # not compatible
query II rowsort label-2621
SELECT ALL - 25 * - + MIN ( + + 14 ) * + 42 + + MAX ( ALL + 47 ) * + - MIN ( + - 35 ), + 48 / 77 AS col1
----
16345
0

query I rowsort
SELECT ALL - 8 * - 90 - - ( 71 )
----
791

query II rowsort
SELECT - 31, 18 * 85 AS col0
----
-31
1530

query I rowsort
SELECT - 95 + 53 + + 47 * - 35
----
-1687

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL MAX( ALL + - 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL MAX ( ALL + - 7 ) AS col1
----
-7

query I rowsort
SELECT 11 + + 40 AS col0
----
51

query I rowsort
SELECT + 61 * + 49
----
2989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2628
SELECT CAST( + 72 AS SIGNED ) * - + 82 * + 47 AS col0
----
-277488

skipif mysql # not compatible
query I rowsort label-2628
SELECT CAST ( + 72 AS INTEGER ) * - + 82 * + 47 AS col0
----
-277488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2629
SELECT 3 + - + COUNT( * ) + 5 DIV + 25 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2629
SELECT 3 + - + COUNT ( * ) + 5 / + 25 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT 49 * - - COALESCE ( - + MAX( DISTINCT - - 6 ), - 15 ) * - 69
----
20286

skipif mysql # not compatible
query I rowsort label-2630
SELECT 49 * - - COALESCE ( - + MAX ( DISTINCT - - 6 ), - 15 ) * - 69
----
20286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2631
SELECT ALL COUNT( * ), ( - + CAST( NULL AS SIGNED ) ) * + COALESCE ( - - COUNT( * ), + 50 + - 77 ) + - AVG ( 59 ) * 10 col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2631
SELECT ALL COUNT ( * ), ( - + CAST ( NULL AS INTEGER ) ) * + COALESCE ( - - COUNT ( * ), + 50 + - 77 ) + - AVG ( 59 ) * 10 col1
----
1
NULL

query I rowsort
SELECT 80 + + 68 AS col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL + - ( + ( COALESCE ( NULLIF ( + 29, + - MIN( DISTINCT - 59 ) ), ( + 83 ) ) ) ) * - COUNT( + 74 )
----
29

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL + - ( + ( COALESCE ( NULLIF ( + 29, + - MIN ( DISTINCT - 59 ) ), ( + 83 ) ) ) ) * - COUNT ( + 74 )
----
29

query I rowsort
SELECT + 20 + 49 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT - - COUNT( * ) * + - 61 + + - 48 AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-2635
SELECT - - COUNT ( * ) * + - 61 + + - 48 AS col1
----
-109

query II rowsort
SELECT ALL - + 3, 4 AS col2
----
-3
4

query II rowsort
SELECT 17 AS col0, 82 * - ( - - 8 ) AS col0
----
17
-656

query II rowsort
SELECT 23 * 6, - 90 AS col1
----
138
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT ALL - 7 + + ( - + 21 ) - COUNT( * ) * - + AVG ( ALL + 60 ) * + 93 + CASE 59 WHEN 93 * + 11 + - 91 + - + 83 * + 69 THEN + - 6 WHEN + - COUNT( * ) THEN NULL WHEN + - 49 THEN NULL END + 98 + + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL - 7 + + ( - + 21 ) - COUNT ( * ) * - + AVG ( ALL + 60 ) * + 93 + CASE 59 WHEN 93 * + 11 + - 91 + - + 83 * + 69 THEN + - 6 WHEN + - COUNT ( * ) THEN NULL WHEN + - 49 THEN NULL END + 98 + + 48 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2640
SELECT DISTINCT 86 * - - ( 89 ) * - CAST( 42 AS SIGNED ) * + 49 col1
----
-15751932

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT 86 * - - ( 89 ) * - CAST ( 42 AS INTEGER ) * + 49 col1
----
-15751932

query I rowsort
SELECT 49 * 19
----
931

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT SUM( ALL - 15 ) * + 23 col2
----
-345

skipif mysql # not compatible
query I rowsort label-2642
SELECT SUM ( ALL - 15 ) * + 23 col2
----
-345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2643
SELECT DISTINCT + CAST( + - 70 AS SIGNED ) + + 33 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT + CAST ( + - 70 AS INTEGER ) + + 33 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT MIN( DISTINCT + 50 ) * - - COALESCE ( - + MAX( + 66 ), + COUNT( * ), - 17 ) + - 4 AS col1
----
-3304

skipif mysql # not compatible
query I rowsort label-2644
SELECT MIN ( DISTINCT + 50 ) * - - COALESCE ( - + MAX ( + 66 ), + COUNT ( * ), - 17 ) + - 4 AS col1
----
-3304

query I rowsort
SELECT DISTINCT 0 * + 75 * + + 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2646
SELECT DISTINCT 40 DIV + + COUNT( * ), 1 + - CAST( NULL AS SIGNED ) col0
----
40
NULL

skipif mysql # not compatible
query II rowsort label-2646
SELECT DISTINCT 40 / + + COUNT ( * ), 1 + - CAST ( NULL AS INTEGER ) col0
----
40
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT 15 DIV + 6 + - 72 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-2647
SELECT 15 / + 6 + - 72 AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2648
SELECT + 18 * - - NULLIF ( NULLIF ( - CASE - CAST( 96 AS SIGNED ) WHEN - 69 THEN COALESCE ( - ( MAX( - 21 ) ), + + 28 ) WHEN - 57 THEN NULL END, - 10 * - - 39 * + 87 ), - ( COUNT( * ) ) + - 75 ) + + + 21 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT + 18 * - - NULLIF ( NULLIF ( - CASE - CAST ( 96 AS INTEGER ) WHEN - 69 THEN COALESCE ( - ( MAX ( - 21 ) ), + + 28 ) WHEN - 57 THEN NULL END, - 10 * - - 39 * + 87 ), - ( COUNT ( * ) ) + - 75 ) + + + 21 col1
----
NULL

query II rowsort
SELECT 46 + + 1 + 90 * ( 30 ) * + 83 + - + 43 AS col2, - 10 AS col2
----
224104
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2650
SELECT ALL + 82 - - + CAST( NULL AS SIGNED ) + - + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL + 82 - - + CAST ( NULL AS INTEGER ) + - + 38 AS col0
----
NULL

query II rowsort
SELECT 95 - + + 51, + 56 * - 42 AS col0
----
44
-2352

onlyif mysql # DIV for integer division: 
query I rowsort label-2652
SELECT 38 DIV 98 + + + 84 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2652
SELECT 38 / 98 + + + 84 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT ALL - MAX( ALL 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL - MAX ( ALL 50 )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2654
SELECT + 68 * + 18 col0, - COUNT( * )
----
1224
-1

skipif mysql # not compatible
query II rowsort label-2654
SELECT + 68 * + 18 col0, - COUNT ( * )
----
1224
-1

query I rowsort
SELECT + 34 * 11 * 93 AS col2
----
34782

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT 28 - + + ( CASE 41 WHEN - + 14 THEN NULL ELSE - 93 * - COUNT( + + 93 ) END ) * + + 73
----
-6761

skipif mysql # not compatible
query I rowsort label-2656
SELECT 28 - + + ( CASE 41 WHEN - + 14 THEN NULL ELSE - 93 * - COUNT ( + + 93 ) END ) * + + 73
----
-6761

onlyif mysql # aggregate syntax: 
query II rowsort label-2657
SELECT 87 * - 1 + + 4 * MAX( - 51 ) * 5 * + + 93 + + NULLIF ( - 2, - COUNT( * ) * - + MIN( + 25 ) + - 44 ) * + + 56, - 77 * - COUNT( * ) + + 75 + + COUNT( * ) col1
----
-95059
153

skipif mysql # not compatible
query II rowsort label-2657
SELECT 87 * - 1 + + 4 * MAX ( - 51 ) * 5 * + + 93 + + NULLIF ( - 2, - COUNT ( * ) * - + MIN ( + 25 ) + - 44 ) * + + 56, - 77 * - COUNT ( * ) + + 75 + + COUNT ( * ) col1
----
-95059
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT 74 * + MIN( - 4 ) * + - 56
----
16576

skipif mysql # not compatible
query I rowsort label-2658
SELECT 74 * + MIN ( - 4 ) * + - 56
----
16576

query II rowsort
SELECT ALL 69 + 79 + - - ( - - 79 ) + + + 16 AS col1, 99 - - 61 + + - 67 AS col1
----
243
93

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2661
SELECT ALL + MIN( + - 20 ) * + CAST( - 34 AS SIGNED ) * 48 * + 55 * + + 97 - + COUNT( * ) + + + COUNT( + - 26 ) * - 67
----
174134332

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL + MIN ( + - 20 ) * + CAST ( - 34 AS INTEGER ) * 48 * + 55 * + + 97 - + COUNT ( * ) + + + COUNT ( + - 26 ) * - 67
----
174134332

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT 39 * + - 32 - COUNT( * ) + + ( MAX( ALL + 21 ) ) AS col1
----
-1228

skipif mysql # not compatible
query I rowsort label-2662
SELECT 39 * + - 32 - COUNT ( * ) + + ( MAX ( ALL + 21 ) ) AS col1
----
-1228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2663
SELECT ( - CASE + 66 WHEN CASE + - 46 WHEN COUNT( * ) + + AVG ( ALL - - 96 ) + + 96 - - 64 + SUM( ALL 29 ) + - ( + + 31 ) * + + CAST( NULL AS SIGNED ) + - + 74 * - + 88 + - 96 + - 46 * 66 THEN - 14 WHEN + 23 * - CAST( NULL AS SIGNED ) + SUM( + - 20 ) THEN + 64 END THEN NULL WHEN + COUNT( * ) * - - 57 * ( - - 21 ) THEN CAST( NULL AS SIGNED ) ELSE NULL END ) + + 59 * - - 82 * - 58 * + 57 col1, 96
----
NULL
96

skipif mysql # not compatible
query II rowsort label-2663
SELECT ( - CASE + 66 WHEN CASE + - 46 WHEN COUNT ( * ) + + AVG ( ALL - - 96 ) + + 96 - - 64 + SUM ( ALL 29 ) + - ( + + 31 ) * + + CAST ( NULL AS INTEGER ) + - + 74 * - + 88 + - 96 + - 46 * 66 THEN - 14 WHEN + 23 * - CAST ( NULL AS INTEGER ) + SUM ( + - 20 ) THEN + 64 END THEN NULL WHEN + COUNT ( * ) * - - 57 * ( - - 21 ) THEN CAST ( NULL AS INTEGER ) ELSE NULL END ) + + 59 * - - 82 * - 58 * + 57 col1, 96
----
NULL
96

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

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

query I rowsort
SELECT 58 * - + 91 AS col1
----
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL + 64 * - - 78 + + - COUNT( * ) + 64
----
5055

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + 64 * - - 78 + + - COUNT ( * ) + 64
----
5055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2667
SELECT - NULLIF ( - ( - 53 ), ( + 1 ) + + CAST( NULL AS SIGNED ) * - 35 ) * - - 84 - + CAST( NULL AS SIGNED ) + + 83 + 33 * - - NULLIF ( - 26, - 4 ) + + COUNT( * ) * - - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT - NULLIF ( - ( - 53 ), ( + 1 ) + + CAST ( NULL AS INTEGER ) * - 35 ) * - - 84 - + CAST ( NULL AS INTEGER ) + + 83 + 33 * - - NULLIF ( - 26, - 4 ) + + COUNT ( * ) * - - 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT SUM( + + 50 ) * + 11
----
550

skipif mysql # not compatible
query I rowsort label-2668
SELECT SUM ( + + 50 ) * + 11
----
550

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT ALL + 4 DIV - + 11 * - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL + 4 / - + 11 * - 57 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2670
SELECT - 43 DIV - 43 + - 94, + CASE + + COUNT( * ) WHEN + - 21 THEN 77 WHEN 73 THEN NULL END AS col0
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-2670
SELECT - 43 / - 43 + - 94, + CASE + + COUNT ( * ) WHEN + - 21 THEN 77 WHEN 73 THEN NULL END AS col0
----
-93
NULL

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

query I rowsort
SELECT ALL - 77 - + 26 * 53
----
-1455

query I rowsort
SELECT DISTINCT + 32 * - 91 AS col0
----
-2912

query I rowsort
SELECT ALL + 14 * 46
----
644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2675
SELECT - CASE ( 30 ) WHEN 28 THEN NULL ELSE CAST( NULL AS SIGNED ) END * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT - CASE ( 30 ) WHEN 28 THEN NULL ELSE CAST ( NULL AS INTEGER ) END * 58
----
NULL

query I rowsort
SELECT ALL + 14 * - 50
----
-700

query I rowsort
SELECT DISTINCT CASE ( - 54 ) WHEN 41 THEN 12 END
----
NULL

query I rowsort
SELECT ALL NULLIF ( 63, + 67 + 57 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT + 47 - - MIN( + 40 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2679
SELECT + 47 - - MIN ( + 40 ) AS col2
----
87

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

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

query I rowsort
SELECT + 23 * 63 AS col1
----
1449

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ALL + 70 + COUNT( DISTINCT - 86 - 45 ) col1
----
71

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + 70 + COUNT ( DISTINCT - 86 - 45 ) col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT - CASE - COUNT( * ) WHEN + COUNT( * ) * + MIN( ALL 44 ) + + 52 THEN COUNT( * ) + + COUNT( - 42 ) ELSE - 3 END * - 58 AS col0
----
-174

skipif mysql # not compatible
query I rowsort label-2683
SELECT - CASE - COUNT ( * ) WHEN + COUNT ( * ) * + MIN ( ALL 44 ) + + 52 THEN COUNT ( * ) + + COUNT ( - 42 ) ELSE - 3 END * - 58 AS col0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT - MAX( - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-2684
SELECT - MAX ( - 10 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2685
SELECT - COALESCE ( - MAX( 45 ), + MAX( ALL - 19 ) ) + + CASE - 99 WHEN 3 THEN COUNT( + CAST( - 78 AS SIGNED ) ) * 31 + 74 ELSE - 61 END DIV 95 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2685
SELECT - COALESCE ( - MAX ( 45 ), + MAX ( ALL - 19 ) ) + + CASE - 99 WHEN 3 THEN COUNT ( + CAST ( - 78 AS INTEGER ) ) * 31 + 74 ELSE - 61 END / 95 AS col0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2686
SELECT + 76 DIV - 15
----
-5

skipif mysql # not compatible
query I rowsort label-2686
SELECT + 76 / - 15
----
-5

query I rowsort
SELECT - 87 + 12
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT + 93 - 55 * - ( 51 + + COUNT( * ) ) AS col0
----
2953

skipif mysql # not compatible
query I rowsort label-2688
SELECT + 93 - 55 * - ( 51 + + COUNT ( * ) ) AS col0
----
2953

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL CASE - 28 WHEN 36 / COUNT( * ) THEN - 92 END + COUNT( * ) / - CASE + 55 WHEN - 55 THEN + 7 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL CASE - 28 WHEN 36 / COUNT ( * ) THEN - 92 END + COUNT ( * ) / - CASE + 55 WHEN - 55 THEN + 7 END AS col2
----
NULL

query I rowsort
SELECT + 64 + + 20
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2691
SELECT ALL + COUNT( * ) + 80 DIV 42
----
2

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL + COUNT ( * ) + 80 / 42
----
2

query I rowsort
SELECT ALL 52 + 52
----
104

query I rowsort
SELECT - NULLIF ( - 60, + 16 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT ALL COALESCE ( 27, 50 ) * + COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL COALESCE ( 27, 50 ) * + COUNT ( * ) AS col1
----
27

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

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

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

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

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

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

query I rowsort
SELECT + 98 * 91 AS col2
----
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT - COALESCE ( 72, - 60 - 58, COUNT( * ) ) * + 17 col2
----
-1224

skipif mysql # not compatible
query I rowsort label-2699
SELECT - COALESCE ( 72, - 60 - 58, COUNT ( * ) ) * + 17 col2
----
-1224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2700
SELECT COUNT( * ) DIV COUNT( * ) + + MAX( ALL 43 )
----
44

skipif mysql # not compatible
query I rowsort label-2700
SELECT COUNT ( * ) / COUNT ( * ) + + MAX ( ALL 43 )
----
44

query I rowsort
SELECT ALL 44 * 40
----
1760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2702
SELECT + ( CAST( 38 AS SIGNED ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2702
SELECT + ( CAST ( 38 AS INTEGER ) ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT ALL + COUNT( * ) * COUNT( * ) - - COALESCE ( SUM( + 33 ), + 57 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL + COUNT ( * ) * COUNT ( * ) - - COALESCE ( SUM ( + 33 ), + 57 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT + CASE 91 WHEN - 54 + ( 59 ) THEN - COUNT( * ) END * 77 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT + CASE 91 WHEN - 54 + ( 59 ) THEN - COUNT ( * ) END * 77 col1
----
NULL

query I rowsort
SELECT ALL 1 * 75 - 0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT DISTINCT - SUM( + 21 ) * + ( - 17 ) AS col1
----
357

skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT - SUM ( + 21 ) * + ( - 17 ) AS col1
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL 8 * COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL 8 * COUNT ( * ) AS col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT - 20 DIV 6
----
-3

skipif mysql # not compatible
query I rowsort label-2708
SELECT - 20 / 6
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2709
SELECT + 32 * - CAST( - ( 98 ) * - 20 AS SIGNED )
----
-62720

skipif mysql # not compatible
query I rowsort label-2709
SELECT + 32 * - CAST ( - ( 98 ) * - 20 AS INTEGER )
----
-62720

query I rowsort
SELECT DISTINCT 43 * 81
----
3483

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT + 84 / CASE 38 * + 89 WHEN 37 THEN - COUNT( * ) - 61 * 54 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT + 84 / CASE 38 * + 89 WHEN 37 THEN - COUNT ( * ) - 61 * 54 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT - - 29 DIV - 22 col2
----
-1

skipif mysql # not compatible
query I rowsort label-2713
SELECT - - 29 / - 22 col2
----
-1

query I rowsort
SELECT + - 60 - - 42 * 43
----
1746

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT DISTINCT - - CASE 32 WHEN 90 THEN 66 + + 93 ELSE - 17 + + 69 END DIV 47 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT - - CASE 32 WHEN 90 THEN 66 + + 93 ELSE - 17 + + 69 END / 47 AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT DISTINCT + COALESCE ( CASE 67 WHEN - 9 THEN - COUNT( * ) END, 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT + COALESCE ( CASE 67 WHEN - 9 THEN - COUNT ( * ) END, 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2719
SELECT DISTINCT - NULLIF ( COUNT( * ), + 17 * + 61 ) * 64 + - 70 DIV + 62
----
-65

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT - NULLIF ( COUNT ( * ), + 17 * + 61 ) * 64 + - 70 / + 62
----
-65

query I rowsort
SELECT ALL + + 89 * + 24 AS col1
----
2136

query I rowsort
SELECT - - NULLIF ( - 63, 14 * 1 - 0 ) AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2722
SELECT - - ( - ( CASE 4 WHEN 32 THEN - COALESCE ( - 43, + 62 * + ( - 3 ) + 42 * - 54, CAST( + 50 AS SIGNED ) DIV NULLIF ( NULLIF ( COALESCE ( - COUNT( * ), - CAST( COUNT( * ) AS SIGNED ), - 54 * 20 ), NULLIF ( + ( + 46 ), - 22 - 21 ) ), 40 * CAST( NULL AS SIGNED ) + + MIN( DISTINCT 79 ) * 49 ) ) + - 5 ELSE + COUNT( * ) * + 83 END ) ) * 75 AS col2
----
-6225

skipif mysql # not compatible
query I rowsort label-2722
SELECT - - ( - ( CASE 4 WHEN 32 THEN - COALESCE ( - 43, + 62 * + ( - 3 ) + 42 * - 54, CAST ( + 50 AS INTEGER ) / NULLIF ( NULLIF ( COALESCE ( - COUNT ( * ), - CAST ( COUNT ( * ) AS INTEGER ), - 54 * 20 ), NULLIF ( + ( + 46 ), - 22 - 21 ) ), 40 * CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT 79 ) * 49 ) ) + - 5 ELSE + COUNT ( * ) * + 83 END ) ) * 75 AS col2
----
-6225

query I rowsort
SELECT DISTINCT - + 39 * + 27
----
-1053

query I rowsort
SELECT ALL + - 24 * - 72 + 70
----
1798

query I rowsort
SELECT - + 83 + 29 AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2726
SELECT - - COUNT( ALL - CAST( NULL AS SIGNED ) ) DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-2726
SELECT - - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) / + 97
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2727
SELECT DISTINCT - - CASE CASE ( + COUNT( * ) ) WHEN COUNT( * ) * 95 THEN 23 END WHEN COUNT( * ) THEN + 85 * 29 + 45 * - 8 ELSE - CASE 2 WHEN + CASE 13 WHEN + 2 * COUNT( * ) + COUNT( * ) * - 50 THEN + 44 WHEN - 42 THEN 89 * 6 END + 51 * + COUNT( * ) THEN 24 + 67 WHEN + ( 4 ) + + MAX( + CAST( NULL AS SIGNED ) ) THEN + 58 WHEN 55 THEN NULL END END + - 91 * - CAST( 7 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT - - CASE CASE ( + COUNT ( * ) ) WHEN COUNT ( * ) * 95 THEN 23 END WHEN COUNT ( * ) THEN + 85 * 29 + 45 * - 8 ELSE - CASE 2 WHEN + CASE 13 WHEN + 2 * COUNT ( * ) + COUNT ( * ) * - 50 THEN + 44 WHEN - 42 THEN 89 * 6 END + 51 * + COUNT ( * ) THEN 24 + 67 WHEN + ( 4 ) + + MAX ( + CAST ( NULL AS INTEGER ) ) THEN + 58 WHEN 55 THEN NULL END END + - 91 * - CAST ( 7 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 47 * 50
----
2350

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

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

query I rowsort
SELECT ALL + 76 - + 13
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ALL - ( - 31 ) / - CASE - 69 / - 55 + - 21 WHEN - 61 * CASE + 50 WHEN + 39 THEN NULL ELSE COUNT( * ) * - 41 END + + 75 / + 27 THEN + 82 WHEN + COUNT( * ) - 61 * - 7 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL - ( - 31 ) / - CASE - 69 / - 55 + - 21 WHEN - 61 * CASE + 50 WHEN + 39 THEN NULL ELSE COUNT ( * ) * - 41 END + + 75 / + 27 THEN + 82 WHEN + COUNT ( * ) - 61 * - 7 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 4 * ( 38 )
----
152

query I rowsort
SELECT DISTINCT 10 * 81 * NULLIF ( + 81, + 48 / 87 )
----
65610

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2735
SELECT ALL - COUNT( * ) DIV + NULLIF ( + CAST( ( - COUNT( * ) ) AS SIGNED ), - ( 56 ) * 94 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL - COUNT ( * ) / + NULLIF ( + CAST ( ( - COUNT ( * ) ) AS INTEGER ), - ( 56 ) * 94 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 3 * 11
----
33

query I rowsort
SELECT ALL 62 - 51 AS col0
----
11

query I rowsort
SELECT + ( + 70 ) * 78
----
5460

query I rowsort
SELECT DISTINCT 67 * + 67 AS col2
----
4489

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT 48 + + 42 DIV + 33 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2740
SELECT 48 + + 42 / + 33 AS col1
----
49

query I rowsort
SELECT + 84 * 83 + + 11 AS col2
----
6983

query I rowsort
SELECT 31 * 57
----
1767

query I rowsort
SELECT + 12 + - NULLIF ( - 87, + 70 - ( 53 + - 41 ) * - 24 )
----
99

query I rowsort
SELECT ALL 90 + + 79 col1
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT - + SUM( ALL 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT - + SUM ( ALL 0 )
----
0

query I rowsort
SELECT ALL - - 16 + 32 * 94 AS col0
----
3024

query I rowsort
SELECT DISTINCT + 1 + + 29
----
30

query I rowsort
SELECT + 87 * 85 * 95 AS col1
----
702525

query I rowsort
SELECT ALL - 68 * 76
----
-5168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2750
SELECT + NULLIF ( - COUNT( * ), CAST( NULL AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2750
SELECT + NULLIF ( - COUNT ( * ), CAST ( NULL AS INTEGER ) ) AS col0
----
-1

query I rowsort
SELECT 80 + - 33
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT + NULLIF ( - 58, - 53 * + MIN( 70 ) + + 79 ) * - 60 AS col0
----
3480

skipif mysql # not compatible
query I rowsort label-2752
SELECT + NULLIF ( - 58, - 53 * + MIN ( 70 ) + + 79 ) * - 60 AS col0
----
3480

query I rowsort
SELECT DISTINCT + 49 * + - 90 * 77 - - 62 AS col1
----
-339508

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT DISTINCT + 85 + - 46 + + CASE 49 WHEN - 90 THEN NULL ELSE 38 + + 43 DIV 46 END
----
77

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT + 85 + - 46 + + CASE 49 WHEN - 90 THEN NULL ELSE 38 + + 43 / 46 END
----
77

query I rowsort
SELECT ALL NULLIF ( + 47, 56 + NULLIF ( + 48 + - ( - NULLIF ( 2, 83 ) ) * - 73, + 23 / 57 ) ) AS col2
----
47

query I rowsort
SELECT 49 - 34 col1
----
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT 29 + + 12 * - 71 * - COUNT( * ) - - 58 AS col1
----
939

skipif mysql # not compatible
query I rowsort label-2758
SELECT 29 + + 12 * - 71 * - COUNT ( * ) - - 58 AS col1
----
939

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2759
SELECT 42, ( - 42 ) DIV COUNT( * ) + + 92 AS col1
----
42
50

skipif mysql # not compatible
query II rowsort label-2759
SELECT 42, ( - 42 ) / COUNT ( * ) + + 92 AS col1
----
42
50

query I rowsort
SELECT 39 + + + 62 + - 94 * 63
----
-5821

query I rowsort
SELECT ALL 80 - 26
----
54

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

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2763
SELECT ALL + 45 - NULLIF ( + CAST( NULL AS SIGNED ), 55 / 10 ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + 45 - NULLIF ( + CAST ( NULL AS INTEGER ), 55 / 10 ) * 16
----
NULL

query II rowsort
SELECT DISTINCT 86 col2, 93 col1
----
86
93

query I rowsort
SELECT 64 + - + 28 - - 46 AS col2
----
82

query I rowsort
SELECT 48 * + + 15 AS col0
----
720

query I rowsort
SELECT 83 + - + 11 AS col2
----
72

query II rowsort
SELECT - 51 AS col0, + 26 + - 31 + - 48
----
-51
-53

query I rowsort
SELECT 93 + + 42 * - 6 + ( + 87 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL 55 + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL 55 + COUNT ( * )
----
56

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

skipif mysql # not compatible
query I rowsort label-2771
SELECT 73 * - 58 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2772
SELECT ALL + 82 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL + 82 / + 88
----
0

query I rowsort
SELECT DISTINCT + 73 + + 77 * + 53
----
4154

query I rowsort
SELECT ALL 49 * - - 4 AS col0
----
196

query II rowsort
SELECT 49, + 34 AS col1
----
49
34

query I rowsort
SELECT DISTINCT - ( + 12 ) + - 78
----
-90

query I rowsort
SELECT ALL - COALESCE ( + 16, - - 38 ) + 94 AS col1
----
78

query I rowsort
SELECT ALL - ( + ( - + 84 ) ) + 61 * - 0
----
84

query I rowsort
SELECT ALL - 72 * + 47 col1
----
-3384

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT - CASE + + COUNT( - 80 ) WHEN 8 * 86 THEN NULL WHEN COUNT( DISTINCT + 1 ) * 3 THEN CASE SUM( ALL - 12 ) WHEN 16 * 88 THEN 34 ELSE NULL END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT - CASE + + COUNT ( - 80 ) WHEN 8 * 86 THEN NULL WHEN COUNT ( DISTINCT + 1 ) * 3 THEN CASE SUM ( ALL - 12 ) WHEN 16 * 88 THEN 34 ELSE NULL END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2781
SELECT + 81 DIV + 6 + - COUNT( * ) + 93 col1
----
105

skipif mysql # not compatible
query I rowsort label-2781
SELECT + 81 / + 6 + - COUNT ( * ) + 93 col1
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-2782
SELECT + + 72 AS col0, CASE + 28 WHEN 53 + COUNT( * ) THEN + 90 * 82 WHEN 22 + 7 THEN - NULLIF ( - 88, 42 + 26 ) END col0
----
72
NULL

skipif mysql # not compatible
query II rowsort label-2782
SELECT + + 72 AS col0, CASE + 28 WHEN 53 + COUNT ( * ) THEN + 90 * 82 WHEN 22 + 7 THEN - NULLIF ( - 88, 42 + 26 ) END col0
----
72
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2783
SELECT ALL 24 + - 1 DIV + - 14
----
24

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL 24 + - 1 / + - 14
----
24

query II rowsort
SELECT + - 18 AS col0, CASE 23 WHEN 77 THEN 64 + 61 WHEN - ( 8 ) / 66 THEN NULL ELSE NULL END AS col2
----
-18
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2785
SELECT + + 61 AS col1, + 90 + - COUNT( * )
----
61
89

skipif mysql # not compatible
query II rowsort label-2785
SELECT + + 61 AS col1, + 90 + - COUNT ( * )
----
61
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT - 12 - - 59 - 22 - 71 * - MAX( + 14 * - 27 )
----
-26813

skipif mysql # not compatible
query I rowsort label-2786
SELECT - 12 - - 59 - 22 - 71 * - MAX ( + 14 * - 27 )
----
-26813

query II rowsort
SELECT ALL - 7 AS col1, - 57
----
-7
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2788
SELECT ALL + COUNT( * ) + 92 DIV + 66
----
2

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL + COUNT ( * ) + 92 / + 66
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL 9 - - 41 * - COUNT( * ) + + COUNT( * ) * + 52
----
20

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL 9 - - 41 * - COUNT ( * ) + + COUNT ( * ) * + 52
----
20

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

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT 13 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 18 + + 1 - - 80 * - 14
----
-1101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2792
SELECT DISTINCT COALESCE ( + CAST( NULL AS SIGNED ), 28 + SUM( ALL - 67 ) * 37 ) - + 31
----
-2482

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT COALESCE ( + CAST ( NULL AS INTEGER ), 28 + SUM ( ALL - 67 ) * 37 ) - + 31
----
-2482

query I rowsort
SELECT ALL - 95 * - 22 * + + 77 * 2 AS col2
----
321860

onlyif mysql # DIV for integer division: 
query I rowsort label-2794
SELECT - + 49 * 69 DIV + 49 + 21 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-2794
SELECT - + 49 * 69 / + 49 + 21 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT + MAX( ALL 73 ) - + COUNT( * ) * - 18
----
91

skipif mysql # not compatible
query I rowsort label-2795
SELECT + MAX ( ALL 73 ) - + COUNT ( * ) * - 18
----
91

query I rowsort
SELECT 68 * - 27 * 92
----
-168912

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT - MAX( ALL COALESCE ( - - 66, - + 85 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-2797
SELECT - MAX ( ALL COALESCE ( - - 66, - + 85 ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT 42 + MIN( DISTINCT ( + 20 ) ) + - 84 col0
----
-22

skipif mysql # not compatible
query I rowsort label-2798
SELECT 42 + MIN ( DISTINCT ( + 20 ) ) + - 84 col0
----
-22

query I rowsort
SELECT ALL 39 * - - 12 AS col2
----
468

query I rowsort
SELECT ALL 57 * 1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2801
SELECT ALL + 58 DIV 7 DIV 64 DIV - 99 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL + 58 / 7 / 64 / - 99 / - 55
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2802
SELECT CAST( + - 13 AS SIGNED ) * - - 56 col2
----
-728

skipif mysql # not compatible
query I rowsort label-2802
SELECT CAST ( + - 13 AS INTEGER ) * - - 56 col2
----
-728

query I rowsort
SELECT 67 * + ( + + 17 ) col2
----
1139

query I rowsort
SELECT ALL - 86 * - - ( ( + - 28 ) ) * - 17 AS col1
----
-40936

query I rowsort
SELECT ALL - 86 + - 66 AS col1
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2806
SELECT + MIN( + 44 ) - + COUNT( + CAST( - 43 AS SIGNED ) )
----
43

skipif mysql # not compatible
query I rowsort label-2806
SELECT + MIN ( + 44 ) - + COUNT ( + CAST ( - 43 AS INTEGER ) )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2807
SELECT - 61 - - 81 + CAST( NULL AS SIGNED ) * + 5 - - AVG ( ( 71 ) - - 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT - 61 - - 81 + CAST ( NULL AS INTEGER ) * + 5 - - AVG ( ( 71 ) - - 56 )
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 90, + 53 * + + 41, - 92 * 93 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT DISTINCT + COUNT( * ) + COUNT( ALL - 38 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT + COUNT ( * ) + COUNT ( ALL - 38 ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2810
SELECT DISTINCT NULLIF ( + 91, + - MIN( DISTINCT 58 ) * - 21 ) * 86 + AVG ( ALL CAST( NULL AS SIGNED ) ) * + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT NULLIF ( + 91, + - MIN ( DISTINCT 58 ) * - 21 ) * 86 + AVG ( ALL CAST ( NULL AS INTEGER ) ) * + 9 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT + - 54 DIV - 92 * - ( 95 ) + 80 col2
----
80

skipif mysql # not compatible
query I rowsort label-2811
SELECT + - 54 / - 92 * - ( 95 ) + 80 col2
----
80

query I rowsort
SELECT - - 37 + - 55 * - - 2 + - 16
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT + - 40 * - + COUNT( * ) * + ( - 94 ) AS col0
----
-3760

skipif mysql # not compatible
query I rowsort label-2813
SELECT + - 40 * - + COUNT ( * ) * + ( - 94 ) AS col0
----
-3760

query I rowsort
SELECT - ( 58 ) * + 52 + - 88
----
-3104

onlyif mysql # DIV for integer division: 
query II rowsort label-2815
SELECT DISTINCT + + 16 DIV - + 2 AS col0, + 97
----
-8
97

skipif mysql # not compatible
query II rowsort label-2815
SELECT DISTINCT + + 16 / - + 2 AS col0, + 97
----
-8
97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2817
SELECT - - 79 * + + CAST( + + ( - MIN( 26 ) ) AS SIGNED ) + - 35 col2
----
-2089

skipif mysql # not compatible
query I rowsort label-2817
SELECT - - 79 * + + CAST ( + + ( - MIN ( 26 ) ) AS INTEGER ) + - 35 col2
----
-2089

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT ALL - 99 * - CASE + ( + 38 ) WHEN 81 THEN - 56 WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL - 99 * - CASE + ( + 38 ) WHEN 81 THEN - 56 WHEN - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT 30 * + 99 - + 69 - - SUM( + ( 50 ) ) - ( 15 ) * 49 + + COUNT( * ) * - 83
----
2133

skipif mysql # not compatible
query I rowsort label-2820
SELECT 30 * + 99 - + 69 - - SUM ( + ( 50 ) ) - ( 15 ) * 49 + + COUNT ( * ) * - 83
----
2133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2821
SELECT DISTINCT + + 28 * - + COUNT( * ) + 14 DIV - + 30 + + COUNT( * ) * 26 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT + + 28 * - + COUNT ( * ) + 14 / - + 30 + + COUNT ( * ) * 26 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT - 99 * - COUNT( * ) + - + 17 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-2822
SELECT - 99 * - COUNT ( * ) + - + 17 AS col0
----
82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2824
SELECT DISTINCT + 10 AS col0, COUNT( * )
----
10
1

skipif mysql # not compatible
query II rowsort label-2824
SELECT DISTINCT + 10 AS col0, COUNT ( * )
----
10
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2825
SELECT + MIN( DISTINCT 23 ) + + 1 AS col1, 5
----
24
5

skipif mysql # not compatible
query II rowsort label-2825
SELECT + MIN ( DISTINCT 23 ) + + 1 AS col1, 5
----
24
5

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

query I rowsort
SELECT - COALESCE ( 63, - 14, 41, - - 58 + + 2 ) AS col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2828
SELECT + NULLIF ( - 86, + - COUNT( * ) ) DIV - + 99
----
0

skipif mysql # not compatible
query I rowsort label-2828
SELECT + NULLIF ( - 86, + - COUNT ( * ) ) / - + 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT ALL 9 DIV - 1 col1
----
-9

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL 9 / - 1 col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT - COUNT( * ) + - ( - 40 )
----
39

skipif mysql # not compatible
query I rowsort label-2830
SELECT - COUNT ( * ) + - ( - 40 )
----
39

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

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

query I rowsort
SELECT + 9 + + 12 * 24
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT + CASE 5 WHEN 70 THEN + 50 WHEN - 66 / 13 THEN NULL END / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT + CASE 5 WHEN 70 THEN + 50 WHEN - 66 / 13 THEN NULL END / COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2834
SELECT + ( + ( + COUNT( * ) ) ) + - CAST( - - 52 AS SIGNED ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-2834
SELECT + ( + ( + COUNT ( * ) ) ) + - CAST ( - - 52 AS INTEGER ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT DISTINCT 8 + - MAX( DISTINCT - 27 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT 8 + - MAX ( DISTINCT - 27 ) AS col0
----
35

query I rowsort
SELECT DISTINCT 85 + 59
----
144

query I rowsort
SELECT ALL 43 + + 16 * + + 89
----
1467

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2838
SELECT - CAST( NULL AS SIGNED ) AS col2, SUM( ALL + - 14 ) + + 89 DIV - 27
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-2838
SELECT - CAST ( NULL AS INTEGER ) AS col2, SUM ( ALL + - 14 ) + + 89 / - 27
----
NULL
-17

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

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

query I rowsort
SELECT ALL + 55 + - 36
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2841
SELECT + ( - COUNT( * ) ) + - 86 AS col0, + ( - 12 ) + CAST( NULL AS SIGNED ) * COUNT( * )
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-2841
SELECT + ( - COUNT ( * ) ) + - 86 AS col0, + ( - 12 ) + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
-87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT ALL MIN( DISTINCT - 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL MIN ( DISTINCT - 24 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT DISTINCT + COUNT( * ) + - 38 col1
----
-37

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT + COUNT ( * ) + - 38 col1
----
-37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT - COUNT( * ) + 47 + - 83 - - - 69 * + + COALESCE ( 1, - 41 * + ( - 53 ) ) AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-2845
SELECT - COUNT ( * ) + 47 + - 83 - - - 69 * + + COALESCE ( 1, - 41 * + ( - 53 ) ) AS col0
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2846
SELECT ALL - - CAST( NULL AS SIGNED ) - 3 + 77 / + 23 * - - 31 * COALESCE ( + 69 * + 10, 48 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL - - CAST ( NULL AS INTEGER ) - 3 + 77 / + 23 * - - 31 * COALESCE ( + 69 * + 10, 48 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2847
SELECT DISTINCT + - 80 * + 79 + + + 27 + - + CAST( - 10 AS SIGNED ) AS col1
----
-6283

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT + - 80 * + 79 + + + 27 + - + CAST ( - 10 AS INTEGER ) AS col1
----
-6283

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

query I rowsort
SELECT - 90 + 88
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2850
SELECT ALL - - 28 DIV - 84 * - 42 - 90 + 74 + + 66 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL - - 28 / - 84 * - 42 - 90 + 74 + + 66 AS col1
----
50

query I rowsort
SELECT DISTINCT + 61 * - ( + 89 ) AS col1
----
-5429

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2852
SELECT ALL - 77 DIV 2 * + 10 - - SUM( DISTINCT + - ( 68 ) ) + 60 * 8 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL - 77 / 2 * + 10 - - SUM ( DISTINCT + - ( 68 ) ) + 60 * 8 AS col0
----
32

query I rowsort
SELECT - 17 * - 71
----
1207

query I rowsort
SELECT ALL + + 38 * + ( - 76 ) col2
----
-2888

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

query II rowsort
SELECT DISTINCT + 29, + 41 * + 23 AS col2
----
29
943

query I rowsort
SELECT - + 68 * + 97
----
-6596

query I rowsort
SELECT - + 23 - + - 65 + + 43 * - 56 * - + ( 88 )
----
211946

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2860
SELECT ALL - ( + 3 ) DIV - + CAST( - + COUNT( * ) AS SIGNED ) - NULLIF ( 85, + COUNT( * ) + 63 * - CASE - NULLIF ( 91, - NULLIF ( - COUNT( * ), ( - 91 ) ) * - 74 ) * 22 WHEN + MIN( ALL 24 ) + + 2 * + 95 THEN - 78 * + 29 ELSE NULL END )
----
-88

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL - ( + 3 ) / - + CAST ( - + COUNT ( * ) AS INTEGER ) - NULLIF ( 85, + COUNT ( * ) + 63 * - CASE - NULLIF ( 91, - NULLIF ( - COUNT ( * ), ( - 91 ) ) * - 74 ) * 22 WHEN + MIN ( ALL 24 ) + + 2 * + 95 THEN - 78 * + 29 ELSE NULL END )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT ALL + COUNT( - ( COALESCE ( + + 0, 30 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL + COUNT ( - ( COALESCE ( + + 0, 30 ) ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2862
SELECT DISTINCT - ( - + COALESCE ( + SUM( ALL + - 60 ), + + 75, - 89 + + 28 ) ) DIV COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT - ( - + COALESCE ( + SUM ( ALL + - 60 ), + + 75, - 89 + + 28 ) ) / COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT ALL COUNT( * ) * + - COUNT( * ) * - - COUNT( * ) + + 50
----
49

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL COUNT ( * ) * + - COUNT ( * ) * - - COUNT ( * ) + + 50
----
49

query I rowsort
SELECT DISTINCT - COALESCE ( - 48, - 16 )
----
48

query I rowsort
SELECT DISTINCT + 4 + - - 99
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT 48 * + - COUNT( * ) * + 88 * + COUNT( * ) * - 93
----
392832

skipif mysql # not compatible
query I rowsort label-2866
SELECT 48 * + - COUNT ( * ) * + 88 * + COUNT ( * ) * - 93
----
392832

query I rowsort
SELECT ALL + 86 + 20
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-2868
SELECT - 33 col1, + CASE + + COUNT( * ) WHEN + - SUM( DISTINCT - NULLIF ( + - CASE ( 97 ) WHEN 82 THEN ( 86 ) * - 5 ELSE + 98 END, + 45 * 15 ) ) THEN NULL WHEN COUNT( * ) THEN + ( 48 ) + + 67 END * 78 + COUNT( * )
----
-33
8971

skipif mysql # not compatible
query II rowsort label-2868
SELECT - 33 col1, + CASE + + COUNT ( * ) WHEN + - SUM ( DISTINCT - NULLIF ( + - CASE ( 97 ) WHEN 82 THEN ( 86 ) * - 5 ELSE + 98 END, + 45 * 15 ) ) THEN NULL WHEN COUNT ( * ) THEN + ( 48 ) + + 67 END * 78 + COUNT ( * )
----
-33
8971

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2869
SELECT 66, 72 DIV COUNT( * ) AS col2
----
66
72

skipif mysql # not compatible
query II rowsort label-2869
SELECT 66, 72 / COUNT ( * ) AS col2
----
66
72

query I rowsort
SELECT DISTINCT 38 + - 92 * NULLIF ( + 66, 30 )
----
-6034

query II rowsort
SELECT 38 AS col0, - 17
----
38
-17

query I rowsort
SELECT DISTINCT - 41 + - CASE + 45 WHEN 8 * - 45 THEN - + 83 ELSE + 62 END
----
-103

query I rowsort
SELECT ALL + 87 + - 90
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2874
SELECT ALL 44, + COUNT( * ) + - 74 AS col1
----
44
-73

skipif mysql # not compatible
query II rowsort label-2874
SELECT ALL 44, + COUNT ( * ) + - 74 AS col1
----
44
-73

query II rowsort
SELECT 52, + 15 AS col2
----
52
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2877
SELECT 99 * + CASE + + COUNT( * ) WHEN 91 THEN CAST( 63 AS DECIMAL ) * CAST( NULL AS SIGNED ) + + 40 / 92 WHEN 11 / 96 THEN COUNT( * ) END * + 71 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT 99 * + CASE + + COUNT ( * ) WHEN 91 THEN CAST ( 63 AS REAL ) * CAST ( NULL AS INTEGER ) + + 40 / 92 WHEN 11 / 96 THEN COUNT ( * ) END * + 71 col0
----
NULL

query II rowsort
SELECT ALL 55, 15 AS col1
----
55
15

query I rowsort
SELECT 73 + - 45 AS col2
----
28

query I rowsort
SELECT ALL 90 - - - 99 + 86
----
77

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

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

query II rowsort
SELECT - 65 AS col1, 38
----
-65
38

query I rowsort
SELECT 23 - + 11
----
12

query I rowsort
SELECT ( - - 20 )
----
20

query I rowsort
SELECT ALL - + 24 * + 48 AS col2
----
-1152

query I rowsort
SELECT ALL 34 - - - 35
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT - 78 + - COALESCE ( + - COUNT( * ), + 8 * + 38 * - + 59 )
----
-77

skipif mysql # not compatible
query I rowsort label-2887
SELECT - 78 + - COALESCE ( + - COUNT ( * ), + 8 * + 38 * - + 59 )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2888
SELECT ALL 48 * COALESCE ( - 46, - CAST( - ( - - 13 ) AS SIGNED ) ) * - 31
----
68448

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL 48 * COALESCE ( - 46, - CAST ( - ( - - 13 ) AS INTEGER ) ) * - 31
----
68448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2889
SELECT DISTINCT - CASE CAST( - MIN( ALL + 17 ) AS SIGNED ) WHEN - CAST( 33 AS DECIMAL ) THEN 30 + + COUNT( * ) WHEN 76 / 63 - + MIN( DISTINCT 65 ) / 74 THEN + 4 / + 60 - + 38 / - 74 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT - CASE CAST ( - MIN ( ALL + 17 ) AS INTEGER ) WHEN - CAST ( 33 AS REAL ) THEN 30 + + COUNT ( * ) WHEN 76 / 63 - + MIN ( DISTINCT 65 ) / 74 THEN + 4 / + 60 - + 38 / - 74 END AS col0
----
NULL

query I rowsort
SELECT 62 * + - 47 col0
----
-2914

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT ALL - - 15 DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL - - 15 / - 53
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT 93 DIV 13 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2892
SELECT 93 / 13 AS col1
----
7

query II rowsort
SELECT ALL - 52 AS col2, 3 + + ( 29 )
----
-52
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT - 19 * - 21 - - 28 + + COUNT( * ) * + - 87 col0
----
340

skipif mysql # not compatible
query I rowsort label-2894
SELECT - 19 * - 21 - - 28 + + COUNT ( * ) * + - 87 col0
----
340

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2895
SELECT + 54 * - - CAST( ( 88 ) AS SIGNED ) DIV - 8 + - 87 - 91
----
-772

skipif mysql # not compatible
query I rowsort label-2895
SELECT + 54 * - - CAST ( ( 88 ) AS INTEGER ) / - 8 + - 87 - 91
----
-772

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2896
SELECT 13 DIV + ( - 46 ) - ( - + CAST( - + 46 AS SIGNED ) ) - + 34
----
-80

skipif mysql # not compatible
query I rowsort label-2896
SELECT 13 / + ( - 46 ) - ( - + CAST ( - + 46 AS INTEGER ) ) - + 34
----
-80

onlyif mysql # aggregate syntax: 
query III rowsort label-2897
SELECT 85, 73 * - + ( + - 37 ) AS col2, + + 14 * COUNT( * ) + + COUNT( DISTINCT + 6 ) col2
----
85
2701
15

skipif mysql # not compatible
query III rowsort label-2897
SELECT 85, 73 * - + ( + - 37 ) AS col2, + + 14 * COUNT ( * ) + + COUNT ( DISTINCT + 6 ) col2
----
85
2701
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2898
SELECT - 27 * + COUNT( 36 ) + 45 AS col2, 71 col2
----
18
71

skipif mysql # not compatible
query II rowsort label-2898
SELECT - 27 * + COUNT ( 36 ) + 45 AS col2, 71 col2
----
18
71

query I rowsort
SELECT 62 * - - 5 AS col0
----
310

onlyif mysql # aggregate syntax: 
query II rowsort label-2900
SELECT ALL - 16 * COUNT( * ) AS col0, 88 * - + 20
----
-16
-1760

skipif mysql # not compatible
query II rowsort label-2900
SELECT ALL - 16 * COUNT ( * ) AS col0, 88 * - + 20
----
-16
-1760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2901
SELECT DISTINCT - 92 AS col0, CAST( NULL AS SIGNED ) * COUNT( * )
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-2901
SELECT DISTINCT - 92 AS col0, CAST ( NULL AS INTEGER ) * COUNT ( * )
----
-92
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2902
SELECT DISTINCT - + SUM( 4 ) * + - ( - 99 ) DIV + - 87 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT - + SUM ( 4 ) * + - ( - 99 ) / + - 87 AS col2
----
4

query I rowsort
SELECT 10 + - 1
----
9

query I rowsort
SELECT ALL CASE - - 59 WHEN ( + 61 ) THEN 21 * + 28 * - 41 ELSE NULL END * - 55 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2905
SELECT 41 / CAST( NULL AS DECIMAL ) * - + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT 41 / CAST ( NULL AS REAL ) * - + 94 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2906
SELECT ALL - CAST( - 9 AS SIGNED ) + + 57 - + + 62 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL - CAST ( - 9 AS INTEGER ) + + 57 - + + 62 AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT ( - 71 ) * + 48 + 7 - 79 + + 28 * 58 DIV 94 + 12 AS col2
----
-3451

skipif mysql # not compatible
query I rowsort label-2907
SELECT ( - 71 ) * + 48 + 7 - 79 + + 28 * 58 / 94 + 12 AS col2
----
-3451

query I rowsort
SELECT ALL - 54 + 23 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT 64 + - 19 * - 83 + + COUNT( DISTINCT - 29 ) + + - 78
----
1564

skipif mysql # not compatible
query I rowsort label-2909
SELECT 64 + - 19 * - 83 + + COUNT ( DISTINCT - 29 ) + + - 78
----
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT 67 * SUM( + + ( - 4 ) )
----
-268

skipif mysql # not compatible
query I rowsort label-2910
SELECT 67 * SUM ( + + ( - 4 ) )
----
-268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2911
SELECT ALL - 27 DIV COUNT( 75 ) col0
----
-27

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL - 27 / COUNT ( 75 ) col0
----
-27

query I rowsort
SELECT 73 + 29 * - 12 AS col2
----
-275

query I rowsort
SELECT ALL 68 + + 29 AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2914
SELECT ALL - NULLIF ( + - CASE - + AVG ( + 10 ) WHEN - COUNT( * ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END, + 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - NULLIF ( + - CASE - + AVG ( + 10 ) WHEN - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END, + 45 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT + 33 * 5 + CAST( NULL AS SIGNED ) * + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT + 33 * 5 + CAST ( NULL AS INTEGER ) * + 10 AS col1
----
NULL

query I rowsort
SELECT ALL - 28 * + 3 * - 9 * 84
----
63504

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT SUM( 52 ) * - 40 + + 2 * + COALESCE ( - 74, 69 + + 90 )
----
-2228

skipif mysql # not compatible
query I rowsort label-2917
SELECT SUM ( 52 ) * - 40 + + 2 * + COALESCE ( - 74, 69 + + 90 )
----
-2228

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL + MIN( + 65 ) * - - 10 * - 47 AS col2
----
-30550

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL + MIN ( + 65 ) * - - 10 * - 47 AS col2
----
-30550

query II rowsort
SELECT 8 + + 66 AS col0, - 49 * 49 * + 23 - - NULLIF ( 66, ( + 53 ) ) + 40
----
74
-55117

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT DISTINCT SUM( - 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT SUM ( - 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT 98 + - + ( - 30 ) DIV - 29 + COALESCE ( - 18, - 9 * 63 + - 82 ) * COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2921
SELECT 98 + - + ( - 30 ) / - 29 + COALESCE ( - 18, - 9 * 63 + - 82 ) * COUNT ( * ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT DISTINCT - COUNT( * ) * - - 96
----
-96

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT - COUNT ( * ) * - - 96
----
-96

query II rowsort
SELECT ALL + 53 - + 69 col2, 52
----
-16
52

query I rowsort
SELECT ALL - 72 - 68 * + 30 AS col0
----
-2112

query I rowsort
SELECT + 72 * + 51 col2
----
3672

query I rowsort
SELECT 7 + - + 56
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT ALL - COUNT( * ) * - 59 + + 4
----
63

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - COUNT ( * ) * - 59 + + 4
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2928
SELECT + COUNT( * ) + + 37 * + + ( - - CAST( NULL AS SIGNED ) ) / + 73 * + - MIN( + + 81 ) * - ( - 2 + 31 * - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2928
SELECT + COUNT ( * ) + + 37 * + + ( - - CAST ( NULL AS INTEGER ) ) / + 73 * + - MIN ( + + 81 ) * - ( - 2 + 31 * - 66 )
----
NULL

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

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

query I rowsort
SELECT 0 + ( 27 ) + - 8 / CASE + CASE 16 WHEN - 68 THEN NULL ELSE + 2 + 52 END WHEN + 92 + ( - 79 ) THEN NULL WHEN + 57 THEN - 54 END / ( ( + 78 ) ) + 68 col2
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( - 57, - + 17 + + 76 + ( 25 ) * 87 )
----
-57

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

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

query I rowsort
SELECT 79 * - 70 col1
----
-5530

onlyif mysql # DIV for integer division: 
query II rowsort label-2934
SELECT ALL + 96 DIV - - 26 AS col2, - 18
----
3
-18

skipif mysql # not compatible
query II rowsort label-2934
SELECT ALL + 96 / - - 26 AS col2, - 18
----
3
-18

query I rowsort
SELECT ALL + - 26 * - 9 + - - 37 AS col1
----
271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2936
SELECT - + 31 * 92 + + - ( + 90 ) + CASE - - 79 WHEN - - ( 82 ) THEN CAST( NULL AS SIGNED ) * + 34 + 40 / CAST( NULL AS SIGNED ) WHEN 53 / 60 - - 15 THEN - 56 + + MAX( 62 ) WHEN COUNT( * ) + - 33 THEN NULL END + - ( - 51 ) * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT - + 31 * 92 + + - ( + 90 ) + CASE - - 79 WHEN - - ( 82 ) THEN CAST ( NULL AS INTEGER ) * + 34 + 40 / CAST ( NULL AS INTEGER ) WHEN 53 / 60 - - 15 THEN - 56 + + MAX ( 62 ) WHEN COUNT ( * ) + - 33 THEN NULL END + - ( - 51 ) * 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT + CASE - 32 WHEN + - MAX( - 69 ) * + - 47 * - + 36 + + - MAX( 38 ) THEN NULL ELSE + 92 * 37 END + 16
----
3420

skipif mysql # not compatible
query I rowsort label-2937
SELECT + CASE - 32 WHEN + - MAX ( - 69 ) * + - 47 * - + 36 + + - MAX ( 38 ) THEN NULL ELSE + 92 * 37 END + 16
----
3420

query I rowsort
SELECT + 57 * - 77 col0
----
-4389

query I rowsort
SELECT + COALESCE ( 3, - 37 ) - + + ( + - 52 )
----
55

query I rowsort
SELECT DISTINCT 67 * - 30 * + + 76 + + + 43
----
-152717

query II rowsort
SELECT DISTINCT + 15 AS col2, 31 AS col1
----
15
31

query I rowsort
SELECT DISTINCT + 3 * + 77 * - 49 + - CASE WHEN NOT NULL IS NULL THEN NULL ELSE 7 END
----
-11326

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT DISTINCT COUNT( * ) * + + 58 - 96
----
-38

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT COUNT ( * ) * + + 58 - 96
----
-38

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

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

query I rowsort
SELECT ALL 14 - 86 AS col2
----
-72

query I rowsort
SELECT ALL + COALESCE ( - 6, + ( ( 52 ) ) )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2948
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2948
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - 61 * - 96 * CASE COUNT( * ) WHEN + + 45 * - 59 THEN - - COALESCE ( + 77, + MIN( ALL 44 ) - CASE 65 WHEN ( 46 ) - 32 * 74 THEN NULL WHEN 21 / + 43 THEN 87 END * + 59 ) * - 60 - AVG ( ALL + 31 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT - 61 * - 96 * CASE COUNT ( * ) WHEN + + 45 * - 59 THEN - - COALESCE ( + 77, + MIN ( ALL 44 ) - CASE 65 WHEN ( 46 ) - 32 * 74 THEN NULL WHEN 21 / + 43 THEN 87 END * + 59 ) * - 60 - AVG ( ALL + 31 ) END
----
NULL

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

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

query I rowsort
SELECT - 78 + + 98 AS col0
----
20

query II rowsort
SELECT - 9, 72 AS col1
----
-9
72

query II rowsort
SELECT ALL 10, + 50 AS col0
----
10
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2954
SELECT ALL MIN( - ( - 39 ) ) AS col0, 41
----
39
41

skipif mysql # not compatible
query II rowsort label-2954
SELECT ALL MIN ( - ( - 39 ) ) AS col0, 41
----
39
41

query I rowsort
SELECT - 25 * 7 AS col2
----
-175

query I rowsort
SELECT ALL + - 23 * ( - 90 )
----
2070

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT DISTINCT + - 7 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT + - 7 / 71
----
0

query I rowsort
SELECT DISTINCT + 74 * - 58 AS col0
----
-4292

query I rowsort
SELECT - + 52 + - 80 col2
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2960
SELECT - + 76 AS col1, - CASE - - 53 WHEN CAST( NULL AS SIGNED ) THEN + + 33 END
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-2960
SELECT - + 76 AS col1, - CASE - - 53 WHEN CAST ( NULL AS INTEGER ) THEN + + 33 END
----
-76
NULL

query I rowsort
SELECT - 27 + + 24 + + ( ( - - 69 ) ) * NULLIF ( 97, 89 )
----
6690

query I rowsort
SELECT NULLIF ( - - 80, - 52 + + 78 / + + 93 ) AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2963
SELECT ALL + - CAST( COALESCE ( - + 99, + 42 ) AS SIGNED ) + - 2 * - 30 + + + COUNT( * )
----
160

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL + - CAST ( COALESCE ( - + 99, + 42 ) AS INTEGER ) + - 2 * - 30 + + + COUNT ( * )
----
160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2964
SELECT ALL - COALESCE ( - SUM( + 68 ), - - 10 ) + COUNT( * ) / + CAST( NULL AS DECIMAL ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL - COALESCE ( - SUM ( + 68 ), - - 10 ) + COUNT ( * ) / + CAST ( NULL AS REAL ) / COUNT ( * )
----
NULL

query I rowsort
SELECT - - 11 + - 70 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT ALL - - 52 + - 87 + 78 + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL - - 52 + - 87 + 78 + COUNT ( * ) AS col1
----
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT ALL - 25 + - + CASE - 45 WHEN 17 - - CASE - 83 WHEN 55 THEN + - 18 * - 85 ELSE NULL END THEN - CASE + 16 WHEN - 25 / 90 THEN COALESCE ( 64, + 50 * - 61 ) ELSE NULL END + 92 * 18 ELSE NULL END + - COUNT( * ) * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - 25 + - + CASE - 45 WHEN 17 - - CASE - 83 WHEN 55 THEN + - 18 * - 85 ELSE NULL END THEN - CASE + 16 WHEN - 25 / 90 THEN COALESCE ( 64, + 50 * - 61 ) ELSE NULL END + 92 * 18 ELSE NULL END + - COUNT ( * ) * 0 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 67 * + - 19 + - 63 * 34
----
-869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT - - CAST( - - ( + + 33 ) AS SIGNED ) * + + 6 + - 96 - 4 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2970
SELECT - - CAST ( - - ( + + 33 ) AS INTEGER ) * + + 6 + - 96 - 4 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2971
SELECT DISTINCT - + ( + NULLIF ( + 44, - + 26 ) ) + + CAST( + ( - 26 ) AS SIGNED ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT - + ( + NULLIF ( + 44, - + 26 ) ) + + CAST ( + ( - 26 ) AS INTEGER ) col1
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT 70 DIV - - 12 - + 30
----
-25

skipif mysql # not compatible
query I rowsort label-2972
SELECT 70 / - - 12 - + 30
----
-25

query I rowsort
SELECT ( - + ( - + 26 ) ) col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2974
SELECT + + 70 * - 82 * 43 * 45 + + - 20 - + MAX( DISTINCT - 90 ) + + CAST( 25 AS SIGNED ) DIV 76
----
-11106830

skipif mysql # not compatible
query I rowsort label-2974
SELECT + + 70 * - 82 * 43 * 45 + + - 20 - + MAX ( DISTINCT - 90 ) + + CAST ( 25 AS INTEGER ) / 76
----
-11106830

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT + 26 + + ( CASE - 28 WHEN - 90 THEN NULL WHEN 3 * + 77 THEN + + ( + ( - COUNT( * ) ) ) END ) / + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT + 26 + + ( CASE - 28 WHEN - 90 THEN NULL WHEN 3 * + 77 THEN + + ( + ( - COUNT ( * ) ) ) END ) / + 59
----
NULL

query I rowsort
SELECT - 65 * + + 70 AS col1
----
-4550

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2977
SELECT ALL 81 * + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL 81 * + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2978
SELECT ALL COUNT( * ) DIV 80 + - 29
----
-29

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL COUNT ( * ) / 80 + - 29
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT COUNT( * ) * + 10 + - 56
----
-46

skipif mysql # not compatible
query I rowsort label-2979
SELECT COUNT ( * ) * + 10 + - 56
----
-46

query II rowsort
SELECT ALL 63 * ( - 91 ) + - + 23 AS col0, - 79
----
-5756
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT + CASE + 71 WHEN - - 70 THEN + 78 + MAX( - 53 ) ELSE - 6 END AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2981
SELECT + CASE + 71 WHEN - - 70 THEN + 78 + MAX ( - 53 ) ELSE - 6 END AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2982
SELECT ( + 71 ), + 59 + CAST( - + 61 AS SIGNED ) * - + ( + 51 ) AS col0
----
71
3170

skipif mysql # not compatible
query II rowsort label-2982
SELECT ( + 71 ), + 59 + CAST ( - + 61 AS INTEGER ) * - + ( + 51 ) AS col0
----
71
3170

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT DISTINCT 43 * - ( - MAX( ALL 79 ) ) - - 54 + - - 80 * + 46 - + 68
----
7063

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT 43 * - ( - MAX ( ALL 79 ) ) - - 54 + - - 80 * + 46 - + 68
----
7063

query I rowsort
SELECT + COALESCE ( + 51, + 88 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT + 31 * - SUM( DISTINCT + - 76 )
----
2356

skipif mysql # not compatible
query I rowsort label-2985
SELECT + 31 * - SUM ( DISTINCT + - 76 )
----
2356

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + 49 + + COUNT( * ) * + + 41
----
90

skipif mysql # not compatible
query I rowsort label-2986
SELECT + 49 + + COUNT ( * ) * + + 41
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2987
SELECT DISTINCT CASE - - 95 WHEN NULLIF ( - - 23, - 26 * 19 ) THEN 0 - + 81 ELSE NULL END * - NULLIF ( COALESCE ( CASE + COUNT( * ) WHEN - 15 THEN NULL WHEN + 10 THEN NULL ELSE 33 END, ( - 91 ), + 4 ), 52 + + CAST( ( - 30 ) AS SIGNED ) ) + - 58 * 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT CASE - - 95 WHEN NULLIF ( - - 23, - 26 * 19 ) THEN 0 - + 81 ELSE NULL END * - NULLIF ( COALESCE ( CASE + COUNT ( * ) WHEN - 15 THEN NULL WHEN + 10 THEN NULL ELSE 33 END, ( - 91 ), + 4 ), 52 + + CAST ( ( - 30 ) AS INTEGER ) ) + - 58 * 62 AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT - NULLIF ( - NULLIF ( + 61, + - 3 ), + 86 * + + 97 + 33 ) col2
----
61

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

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

query I rowsort
SELECT - 67 + + + 71
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2992
SELECT DISTINCT - MIN( 62 ) * 40 DIV - 13 + - SUM( DISTINCT + + 51 ) AS col1
----
139

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT - MIN ( 62 ) * 40 / - 13 + - SUM ( DISTINCT + + 51 ) AS col1
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-2993
SELECT + - 90 + + + 47 DIV + + 57
----
-90

skipif mysql # not compatible
query I rowsort label-2993
SELECT + - 90 + + + 47 / + + 57
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2994
SELECT ALL - NULLIF ( - - CAST( + + 78 AS SIGNED ), + 50 * + COUNT( - 72 ) + CAST( NULL AS SIGNED ) + - 80 / + 91 * + 34 ) + 91
----
13

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL - NULLIF ( - - CAST ( + + 78 AS INTEGER ), + 50 * + COUNT ( - 72 ) + CAST ( NULL AS INTEGER ) + - 80 / + 91 * + 34 ) + 91
----
13

query I rowsort
SELECT + + 15 + - - ( + 10 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2996
SELECT ALL - CASE 8 WHEN + - 38 THEN NULL WHEN 3 + + 0 + - CAST( - 14 AS SIGNED ) THEN COUNT( * ) * 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL - CASE 8 WHEN + - 38 THEN NULL WHEN 3 + + 0 + - CAST ( - 14 AS INTEGER ) THEN COUNT ( * ) * 35 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2998
SELECT - - COUNT( * ) + - + 80 AS col0, + ( + MAX( - + 75 ) )
----
-79
-75

skipif mysql # not compatible
query II rowsort label-2998
SELECT - - COUNT ( * ) + - + 80 AS col0, + ( + MAX ( - + 75 ) )
----
-79
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2999
SELECT ALL + NULLIF ( ( 34 ), + NULLIF ( + CASE - 47 WHEN - CAST( 15 AS SIGNED ) * - - 32 THEN NULL ELSE SUM( ALL + 88 ) * - 70 END, - AVG ( DISTINCT 66 ) ) / 87 ) * 82 col2
----
2788

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL + NULLIF ( ( 34 ), + NULLIF ( + CASE - 47 WHEN - CAST ( 15 AS INTEGER ) * - - 32 THEN NULL ELSE SUM ( ALL + 88 ) * - 70 END, - AVG ( DISTINCT 66 ) ) / 87 ) * 82 col2
----
2788

query I rowsort
SELECT DISTINCT 26 + - 84
----
-58

query I rowsort
SELECT ALL + 60 + + - 75
----
-15

query I rowsort
SELECT DISTINCT + - 54 * 60 + - + 18
----
-3258

query I rowsort
SELECT DISTINCT - 38 + - + 79 * + 44
----
-3514

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT COUNT( * ) + - - CASE 2 WHEN + + 26 THEN + ( ( + + 55 ) ) * - ( - 0 ) * + 9 - + 27 + COUNT( * ) WHEN 28 THEN NULL WHEN 19 * - 53 THEN NULL END / + ( - 0 * 77 + + 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT COUNT ( * ) + - - CASE 2 WHEN + + 26 THEN + ( ( + + 55 ) ) * - ( - 0 ) * + 9 - + 27 + COUNT ( * ) WHEN 28 THEN NULL WHEN 19 * - 53 THEN NULL END / + ( - 0 * 77 + + 93 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3005
SELECT ALL + + ( COUNT( * ) ) + - + ( - 62 ) DIV 94 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL + + ( COUNT ( * ) ) + - + ( - 62 ) / 94 AS col0
----
1

query I rowsort
SELECT DISTINCT + 77 * - + 87
----
-6699

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL + + COUNT( * ) + + MIN( DISTINCT - + 91 ) * ( - 82 )
----
7463

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + + COUNT ( * ) + + MIN ( DISTINCT - + 91 ) * ( - 82 )
----
7463

query I rowsort
SELECT 19 * - 48 AS col0
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT ALL + 33 * CASE CASE - 8 WHEN + - MIN( ALL - 47 ) THEN + 71 / 41 / - - 97 + 40 WHEN CASE + 48 WHEN 33 + 8 THEN NULL WHEN 38 THEN - ( + ( 71 ) ) + 0 END THEN NULL ELSE NULL END WHEN MAX( DISTINCT ( 74 ) ) THEN + 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL + 33 * CASE CASE - 8 WHEN + - MIN ( ALL - 47 ) THEN + 71 / 41 / - - 97 + 40 WHEN CASE + 48 WHEN 33 + 8 THEN NULL WHEN 38 THEN - ( + ( 71 ) ) + 0 END THEN NULL ELSE NULL END WHEN MAX ( DISTINCT ( 74 ) ) THEN + 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT 73 + + MAX( + 66 ) * 22
----
1525

skipif mysql # not compatible
query I rowsort label-3011
SELECT 73 + + MAX ( + 66 ) * 22
----
1525

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT DISTINCT + COUNT( * ) - - 6 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT + COUNT ( * ) - - 6 AS col0
----
7

query I rowsort
SELECT DISTINCT + 50 * + 11
----
550

query II rowsort
SELECT ALL + 41 - + 48 + - + 10, - CASE - 9 WHEN 65 + 51 * + - 48 * - 26 THEN - ( + 34 ) * - 79 ELSE NULL END AS col1
----
-17
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3015
SELECT 96 DIV - + COUNT( ALL + - 15 ) + - 51
----
-147

skipif mysql # not compatible
query I rowsort label-3015
SELECT 96 / - + COUNT ( ALL + - 15 ) + - 51
----
-147

onlyif mysql # aggregate syntax: 
query II rowsort label-3016
SELECT ALL ( - NULLIF ( - 46, 49 ) ) * NULLIF ( 8, + - 21 * + COUNT( * ) ), 27 AS col1
----
368
27

skipif mysql # not compatible
query II rowsort label-3016
SELECT ALL ( - NULLIF ( - 46, 49 ) ) * NULLIF ( 8, + - 21 * + COUNT ( * ) ), 27 AS col1
----
368
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL + 6 * + COALESCE ( - - MIN( - 75 ), + - 45 + 55, - - 24 * - COUNT( * ) ) * + MIN( DISTINCT - 49 ) AS col0
----
22050

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL + 6 * + COALESCE ( - - MIN ( - 75 ), + - 45 + 55, - - 24 * - COUNT ( * ) ) * + MIN ( DISTINCT - 49 ) AS col0
----
22050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3018
SELECT NULLIF ( + 6, + 57 ) * - 98 * + + COALESCE ( + COUNT( * ), 57 + + + COUNT( ALL - - ( CAST( NULL AS SIGNED ) ) ) ) * 13 + COUNT( * ) AS col2
----
-7643

skipif mysql # not compatible
query I rowsort label-3018
SELECT NULLIF ( + 6, + 57 ) * - 98 * + + COALESCE ( + COUNT ( * ), 57 + + + COUNT ( ALL - - ( CAST ( NULL AS INTEGER ) ) ) ) * 13 + COUNT ( * ) AS col2
----
-7643

query I rowsort
SELECT ALL + 34 * 8 * + 16
----
4352

onlyif mysql # DIV for integer division: 
query I rowsort label-3020
SELECT 27 DIV ( - 9 )
----
-3

skipif mysql # not compatible
query I rowsort label-3020
SELECT 27 / ( - 9 )
----
-3

query I rowsort
SELECT ALL 13 + 83 AS col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3022
SELECT 1 + + 99 * - 0 DIV - - 35
----
1

skipif mysql # not compatible
query I rowsort label-3022
SELECT 1 + + 99 * - 0 / - - 35
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT - 56 - + + COUNT( * ) * + NULLIF ( - 80, 39 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3023
SELECT - 56 - + + COUNT ( * ) * + NULLIF ( - 80, 39 ) AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3024
SELECT ALL 26 DIV + 74 + COUNT( * ) + + + 56 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL 26 / + 74 + COUNT ( * ) + + + 56 AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3025
SELECT + 65 DIV + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3025
SELECT + 65 / + 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL - 24 + - 94 + + COUNT( * ) * + 9 * + + ( 56 ) AS col2
----
386

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL - 24 + - 94 + + COUNT ( * ) * + 9 * + + ( 56 ) AS col2
----
386

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ( + 18 ) * COUNT( * ) + - MAX( DISTINCT + 22 ) * COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-3027
SELECT ( + 18 ) * COUNT ( * ) + - MAX ( DISTINCT + 22 ) * COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT 57 * SUM( - - 32 ) + - 95 + - 58 - + 29 * + ( - 52 ) AS col1
----
3179

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT 57 * SUM ( - - 32 ) + - 95 + - 58 - + 29 * + ( - 52 ) AS col1
----
3179

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT 85 * 75 - - + CAST( NULL AS SIGNED ) * + 79 / 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT 85 * 75 - - + CAST ( NULL AS INTEGER ) * + 79 / 7 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3031
SELECT ALL 15 + - - 72 DIV + 13 col1
----
20

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL 15 + - - 72 / + 13 col1
----
20

query I rowsort
SELECT DISTINCT - 31 + - ( + + ( - + NULLIF ( + 20, ( + + 65 ) * + - 13 - - 39 - - 30 ) ) ) AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT ALL 42 * + COUNT( * ) DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL 42 * + COUNT ( * ) / - 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT + ( COUNT( * ) ) * 98 + 58 * + ( ( + - 37 ) ) * + + 82 AS col0
----
-175874

skipif mysql # not compatible
query I rowsort label-3034
SELECT + ( COUNT ( * ) ) * 98 + 58 * + ( ( + - 37 ) ) * + + 82 AS col0
----
-175874

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT ALL - ( + + COUNT( * ) ) - - 38 * + 57
----
2165

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL - ( + + COUNT ( * ) ) - - 38 * + 57
----
2165

query I rowsort
SELECT 41 - + - 35
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3037
SELECT + ( + 82 ) + COALESCE ( + ( 66 ), - 17 + 2 * + MIN( ALL + + 7 ) * + 28 + 34 * 71 ) DIV 74 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-3037
SELECT + ( + 82 ) + COALESCE ( + ( 66 ), - 17 + 2 * + MIN ( ALL + + 7 ) * + 28 + 34 * 71 ) / 74 AS col1
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-3038
SELECT 86 + + + 25 * + - 78 + 42 AS col1, - CASE 75 WHEN - COUNT( * ) + - NULLIF ( + 42, + CASE 35 WHEN ( - 69 ) + + 37 * ( - 27 ) THEN + 93 * MAX( + 58 ) ELSE NULL END + 65 ) THEN 52 + COUNT( * ) END AS col1
----
-1822
NULL

skipif mysql # not compatible
query II rowsort label-3038
SELECT 86 + + + 25 * + - 78 + 42 AS col1, - CASE 75 WHEN - COUNT ( * ) + - NULLIF ( + 42, + CASE 35 WHEN ( - 69 ) + + 37 * ( - 27 ) THEN + 93 * MAX ( + 58 ) ELSE NULL END + 65 ) THEN 52 + COUNT ( * ) END AS col1
----
-1822
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT ALL 4 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL 4 / 46
----
0

query II rowsort
SELECT DISTINCT 67, + 95 AS col0
----
67
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3041
SELECT ( 97 ) + - - CASE 73 WHEN + 89 THEN COALESCE ( 80, - CAST( NULL AS SIGNED ), - - 70 ) WHEN - 34 THEN + 61 WHEN + 75 / 69 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT ( 97 ) + - - CASE 73 WHEN + 89 THEN COALESCE ( 80, - CAST ( NULL AS INTEGER ), - - 70 ) WHEN - 34 THEN + 61 WHEN + 75 / 69 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3042
SELECT + SUM( + 35 ), - 61 AS col0
----
35
-61

skipif mysql # not compatible
query II rowsort label-3042
SELECT + SUM ( + 35 ), - 61 AS col0
----
35
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT 76 + 50 + 86 + 35 DIV - 21
----
211

skipif mysql # not compatible
query I rowsort label-3043
SELECT 76 + 50 + 86 + 35 / - 21
----
211

onlyif mysql # DIV for integer division: 
query I rowsort label-3044
SELECT 10 DIV + - 50 + - + 55
----
-55

skipif mysql # not compatible
query I rowsort label-3044
SELECT 10 / + - 50 + - + 55
----
-55

query I rowsort
SELECT 18 * - 93 AS col0
----
-1674

onlyif mysql # aggregate syntax: 
query II rowsort label-3046
SELECT DISTINCT - 53 AS col1, - ( 27 ) * + 33 + + 98 * - - ( 82 ) + - ( - COUNT( * ) ) + + 64 + - NULLIF ( COUNT( * ), - 22 ) AS col2
----
-53
7209

skipif mysql # not compatible
query II rowsort label-3046
SELECT DISTINCT - 53 AS col1, - ( 27 ) * + 33 + + 98 * - - ( 82 ) + - ( - COUNT ( * ) ) + + 64 + - NULLIF ( COUNT ( * ), - 22 ) AS col2
----
-53
7209

query I rowsort
SELECT 92 * + - 7 AS col0
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT COUNT( * ) * - - 75 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3048
SELECT COUNT ( * ) * - - 75 AS col1
----
75

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

query I rowsort
SELECT 10 * - - 57 + + + 0
----
570

query II rowsort
SELECT DISTINCT - 43 AS col2, + ( + 5 ) * 22 AS col2
----
-43
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3052
SELECT ALL - CAST( + 95 AS SIGNED ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL - CAST ( + 95 AS INTEGER ) AS col2
----
-95

query I rowsort
SELECT 17 * 74 AS col0
----
1258

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL NULLIF ( + 68, - ( + + COUNT( * ) ) + - 23 ) + + 35 + - 2 * + COUNT( * ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL NULLIF ( + 68, - ( + + COUNT ( * ) ) + - 23 ) + + 35 + - 2 * + COUNT ( * ) AS col2
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-3055
SELECT + 3, CASE 7 WHEN MAX( ALL + 20 ) THEN COUNT( DISTINCT 59 ) END AS col1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3055
SELECT + 3, CASE 7 WHEN MAX ( ALL + 20 ) THEN COUNT ( DISTINCT 59 ) END AS col1
----
3
NULL

query II rowsort
SELECT ALL - 72 AS col0, NULLIF ( - - 77, - AVG ( - 53 ) + - 85 )
----
-72
77

query I rowsort
SELECT 43 * - 44
----
-1892

query I rowsort
SELECT - 59 * + - ( - 11 ) + 12 AS col0
----
-637

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

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

query II rowsort
SELECT + 61 AS col2, + ( - ( + ( - + 23 ) ) )
----
61
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3061
SELECT ALL + ( - - SUM( + 65 ) ) + + 19, + ( - 37 ) * + - 6 - + 92 AS col1
----
84
130

skipif mysql # not compatible
query II rowsort label-3061
SELECT ALL + ( - - SUM ( + 65 ) ) + + 19, + ( - 37 ) * + - 6 - + 92 AS col1
----
84
130

onlyif mysql # aggregate syntax: 
query II rowsort label-3062
SELECT - 41 col1, COUNT( * )
----
-41
1

skipif mysql # not compatible
query II rowsort label-3062
SELECT - 41 col1, COUNT ( * )
----
-41
1

query I rowsort
SELECT 61 + ( + + 2 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT + CASE + 77 WHEN + - 5 THEN SUM( + 98 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT + CASE + 77 WHEN + - 5 THEN SUM ( + 98 ) END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3065
SELECT DISTINCT - COUNT( - - CAST( 99 AS SIGNED ) ) + - NULLIF ( 7, + 71 ) + + COALESCE ( - - 56, - - 62 * 86 * + 89, 33 * - 76, COUNT( * ) ) + ( + 93 ) AS col2
----
141

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT - COUNT ( - - CAST ( 99 AS INTEGER ) ) + - NULLIF ( 7, + 71 ) + + COALESCE ( - - 56, - - 62 * 86 * + 89, 33 * - 76, COUNT ( * ) ) + ( + 93 ) AS col2
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3066
SELECT ALL + CASE - 39 WHEN - + 43 - - 70 THEN + COUNT( * ) - - - 47 + - + 21 - + + 53 * + 25 - - 82 * ( - COUNT( * ) ) - COUNT( * ) / - 36 WHEN CAST( + 60 AS SIGNED ) + - 19 THEN NULL WHEN MAX( - 77 ) THEN 1 END + - MAX( - 57 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL + CASE - 39 WHEN - + 43 - - 70 THEN + COUNT ( * ) - - - 47 + - + 21 - + + 53 * + 25 - - 82 * ( - COUNT ( * ) ) - COUNT ( * ) / - 36 WHEN CAST ( + 60 AS INTEGER ) + - 19 THEN NULL WHEN MAX ( - 77 ) THEN 1 END + - MAX ( - 57 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3067
SELECT + 53 * 57 + + + 34 DIV - 82 * 98 AS col0
----
3021

skipif mysql # not compatible
query I rowsort label-3067
SELECT + 53 * 57 + + + 34 / - 82 * 98 AS col0
----
3021

query I rowsort
SELECT ALL + 12 + - 93
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT + 28 * + - 46 * - COUNT( * ) + - + MAX( + 92 ) + + 14 AS col1
----
1210

skipif mysql # not compatible
query I rowsort label-3069
SELECT + 28 * + - 46 * - COUNT ( * ) + - + MAX ( + 92 ) + + 14 AS col1
----
1210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3070
SELECT - - CAST( NULL AS SIGNED ) * 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3070
SELECT - - CAST ( NULL AS INTEGER ) * 50 AS col2
----
NULL

query I rowsort
SELECT + - 32 + + 55 + + 48 + + 87 * + 23
----
2072

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT ALL ( MAX( 21 ) ) col2
----
21

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL ( MAX ( 21 ) ) col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT ALL - CASE 35 WHEN + SUM( - 34 ) THEN COUNT( * ) * - 39 * 82 + 16 + + AVG ( DISTINCT - 48 ) + - ( 57 ) + + 61 * - 31 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL - CASE 35 WHEN + SUM ( - 34 ) THEN COUNT ( * ) * - 39 * 82 + 16 + + AVG ( DISTINCT - 48 ) + - ( 57 ) + + 61 * - 31 ELSE NULL END AS col0
----
NULL

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

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

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

query I rowsort
SELECT - 18 * - + 44 AS col2
----
792

query II rowsort
SELECT - + 53 AS col2, 24 * - 50 AS col1
----
-53
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3078
SELECT + ( - + ( + 7 ) ) + + NULLIF ( 87, - SUM( - - NULLIF ( - 78, - NULLIF ( + 1, + + CAST( ( - 53 ) AS SIGNED ) ) ) ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3078
SELECT + ( - + ( + 7 ) ) + + NULLIF ( 87, - SUM ( - - NULLIF ( - 78, - NULLIF ( + 1, + + CAST ( ( - 53 ) AS INTEGER ) ) ) ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT DISTINCT - 44 - SUM( ALL - + 9 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT - 44 - SUM ( ALL - + 9 ) AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3080
SELECT ALL + 43 AS col0, 84 * - CAST( NULLIF ( - - CAST( NULL AS DECIMAL ), + 80 ) AS SIGNED )
----
43
NULL

skipif mysql # not compatible
query II rowsort label-3080
SELECT ALL + 43 AS col0, 84 * - CAST ( NULLIF ( - - CAST ( NULL AS REAL ), + 80 ) AS INTEGER )
----
43
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3081
SELECT - - 48 AS col0, + ( - 24 ) + - - SUM( 74 ) col1
----
48
50

skipif mysql # not compatible
query II rowsort label-3081
SELECT - - 48 AS col0, + ( - 24 ) + - - SUM ( 74 ) col1
----
48
50

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3083
SELECT ALL 44, COUNT( * ) + - - COUNT( DISTINCT - 82 ) * - 60 AS col1
----
44
-59

skipif mysql # not compatible
query II rowsort label-3083
SELECT ALL 44, COUNT ( * ) + - - COUNT ( DISTINCT - 82 ) * - 60 AS col1
----
44
-59

query II rowsort
SELECT + 4 * - - 88, ( 6 ) AS col0
----
352
6

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

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

query I rowsort
SELECT - COALESCE ( + 85, ( - 19 ) ) AS col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT - 62 DIV + 53 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3087
SELECT - 62 / + 53 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + 50 + - COUNT( * ) * - + 58 * - 59
----
-3372

skipif mysql # not compatible
query I rowsort label-3088
SELECT + 50 + - COUNT ( * ) * - + 58 * - 59
----
-3372

query II rowsort
SELECT DISTINCT 75 * + 42 * + 7 + - 19 + 19, - 5 AS col0
----
22050
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-3090
SELECT + 26 DIV 98 AS col1, ( 86 ) - - 53 * 68 + 86
----
0
3776

skipif mysql # not compatible
query II rowsort label-3090
SELECT + 26 / 98 AS col1, ( 86 ) - - 53 * 68 + 86
----
0
3776

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT DISTINCT 49 DIV - CASE - ( 15 ) WHEN - 27 THEN NULL WHEN + + 55 THEN + 13 - + + ( + 68 ) ELSE - 96 + + - 55 DIV + 27 + + ( - 18 ) * 42 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT 49 / - CASE - ( 15 ) WHEN - 27 THEN NULL WHEN + + 55 THEN + 13 - + + ( + 68 ) ELSE - 96 + + - 55 / + 27 + + ( - 18 ) * 42 END AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT ALL MIN( DISTINCT + 60 ) * - ( + 36 ) + 37 + - 65
----
-2188

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL MIN ( DISTINCT + 60 ) * - ( + 36 ) + 37 + - 65
----
-2188

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

skipif mysql # not compatible
query I rowsort label-3093
SELECT + 90 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3094
SELECT DISTINCT - 7 * + COUNT( - CAST( + - 94 AS SIGNED ) ) * + COUNT( * ) - + CASE + COUNT( * ) WHEN - + 85 / + + 89 THEN - - 82 ELSE SUM( ALL - - 33 ) END + ( 53 + 59 ) + 42 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT - 7 * + COUNT ( - CAST ( + - 94 AS INTEGER ) ) * + COUNT ( * ) - + CASE + COUNT ( * ) WHEN - + 85 / + + 89 THEN - - 82 ELSE SUM ( ALL - - 33 ) END + ( 53 + 59 ) + 42 AS col2
----
114

query I rowsort
SELECT - 72 + 65 AS col1
----
-7

query I rowsort
SELECT + 42 * - ( 43 )
----
-1806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3097
SELECT ALL 97 * - 63 + - + 25 - ( - COUNT( * ) ) * + 66 - - + 96 + + COUNT( * ) DIV + ( + - 89 )
----
-5974

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL 97 * - 63 + - + 25 - ( - COUNT ( * ) ) * + 66 - - + 96 + + COUNT ( * ) / + ( + - 89 )
----
-5974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3098
SELECT DISTINCT + - ( COALESCE ( + 84, + 6 + + COUNT( * ) + 79 DIV COUNT( * ) ) ) AS col2, + CAST( NULL AS SIGNED ) + - - 9
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-3098
SELECT DISTINCT + - ( COALESCE ( + 84, + 6 + + COUNT ( * ) + 79 / COUNT ( * ) ) ) AS col2, + CAST ( NULL AS INTEGER ) + - - 9
----
-84
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3099
SELECT - 36 * - + 91 * + - 58 / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT - 36 * - + 91 * + - 58 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 46 * + 54 - 22 AS col1
----
-2506

query I rowsort
SELECT ALL - 6 * + 6
----
-36

query I rowsort
SELECT - 2 - + + 17
----
-19

query I rowsort
SELECT DISTINCT - 90 * + ( + + 6 ) * - 74 * 73
----
2917080

query I rowsort
SELECT ALL - 57 * - 67 AS col1
----
3819

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3107
SELECT - NULLIF ( - COUNT( * ), - ( - CAST( + COUNT( * ) AS SIGNED ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3107
SELECT - NULLIF ( - COUNT ( * ), - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) ) AS col2
----
1

query I rowsort
SELECT + 45 * - - 48 * - + 35 AS col0
----
-75600

query I rowsort
SELECT - ( - 42 ) + 4 * - - 24
----
138

query II rowsort
SELECT 75 AS col2, 80 * - - 13
----
75
1040

query I rowsort
SELECT DISTINCT + 65 + 12
----
77

query I rowsort
SELECT + 50 * 19 AS col0
----
950

query I rowsort
SELECT DISTINCT 62 + - - NULLIF ( - + 15, 55 + + 74 ) col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT ALL MIN( DISTINCT - 74 ) + NULLIF ( 7, - - 42 * 27 + + 55 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL MIN ( DISTINCT - 74 ) + NULLIF ( 7, - - 42 * 27 + + 55 ) AS col0
----
-67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT - COUNT( * ) * - 13 col1
----
13

skipif mysql # not compatible
query I rowsort label-3116
SELECT - COUNT ( * ) * - 13 col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3117
SELECT + CASE - 83 WHEN 38 THEN NULL WHEN - 6 THEN - + 42 * + CAST( + 89 AS SIGNED ) ELSE + NULLIF ( + 85, COUNT( * ) / + + 50 - - SUM( ALL 47 ) ) END AS col2
----
85

skipif mysql # not compatible
query I rowsort label-3117
SELECT + CASE - 83 WHEN 38 THEN NULL WHEN - 6 THEN - + 42 * + CAST ( + 89 AS INTEGER ) ELSE + NULLIF ( + 85, COUNT ( * ) / + + 50 - - SUM ( ALL 47 ) ) END AS col2
----
85

query II rowsort
SELECT + 49 * 35 * + + 50 AS col1, 76 * 11 AS col0
----
85750
836

onlyif mysql # DIV for integer division: 
query I rowsort label-3119
SELECT 84 DIV - 65 + - 2 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3119
SELECT 84 / - 65 + - 2 AS col2
----
-3

query I rowsort
SELECT + 31 + 50
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3121
SELECT DISTINCT + 86 DIV 21 * + 29 + - 18 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT + 86 / 21 * + 29 + - 18 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT DISTINCT 48 - COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT 48 - COUNT ( * ) AS col0
----
47

query I rowsort
SELECT 68 - + 7
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT + 82 * + 63 + + - 14 + - + 34 / - 81 * + - NULLIF ( CAST( NULL AS SIGNED ), + 23 + + + CAST( NULL AS SIGNED ) + + 47 * + 8 ) * - + 96 * + 29 + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT + 82 * + 63 + + - 14 + - + 34 / - 81 * + - NULLIF ( CAST ( NULL AS INTEGER ), + 23 + + + CAST ( NULL AS INTEGER ) + + 47 * + 8 ) * - + 96 * + 29 + 88 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3125
SELECT + 11 * 79 DIV + 51 + - 89 + 80
----
8

skipif mysql # not compatible
query I rowsort label-3125
SELECT + 11 * 79 / + 51 + - 89 + 80
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-3126
SELECT 16 * - - ( + 0 ) DIV - 21 + - 66 - - 83, + NULLIF ( + - 24, - - 97 ) AS col1
----
17
-24

skipif mysql # not compatible
query II rowsort label-3126
SELECT 16 * - - ( + 0 ) / - 21 + - 66 - - 83, + NULLIF ( + - 24, - - 97 ) AS col1
----
17
-24

query I rowsort
SELECT - ( + ( - ( 62 ) ) ) * + COALESCE ( + 3, + - 59 ) col1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ALL - 60 * + + NULLIF ( - 20, ( - NULLIF ( 82, - + SUM( - ( 63 ) ) * 23 + COALESCE ( - - 18, 75 ) ) ) / - ( + 83 * 35 ) + 21 ) AS col1
----
1200

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL - 60 * + + NULLIF ( - 20, ( - NULLIF ( 82, - + SUM ( - ( 63 ) ) * 23 + COALESCE ( - - 18, 75 ) ) ) / - ( + 83 * 35 ) + 21 ) AS col1
----
1200

query I rowsort
SELECT ALL - + ( + 40 ) col1
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3130
SELECT + 94 * 88 + - COALESCE ( 78, 15 DIV MIN( + 0 ), - 21, - 46 ) col0
----
8194

skipif mysql # not compatible
query I rowsort label-3130
SELECT + 94 * 88 + - COALESCE ( 78, 15 / MIN ( + 0 ), - 21, - 46 ) col0
----
8194

query II rowsort
SELECT DISTINCT - - 93 col2, + 8
----
93
8

query II rowsort
SELECT DISTINCT 78 AS col2, - ( + - 66 )
----
78
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3133
SELECT - - ( - ( CAST( NULL AS SIGNED ) ) ) AS col2, 70
----
NULL
70

skipif mysql # not compatible
query II rowsort label-3133
SELECT - - ( - ( CAST ( NULL AS INTEGER ) ) ) AS col2, 70
----
NULL
70

query II rowsort
SELECT 21 + 8 AS col1, - ( + ( + 5 ) ) AS col2
----
29
-5

query I rowsort
SELECT ALL + 51 + - 59 + - 6 * - 94 * 6 AS col0
----
3376

onlyif mysql # DIV for integer division: 
query I rowsort label-3136
SELECT ALL + 79 DIV - 54 col2
----
-1

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL + 79 / - 54 col2
----
-1

query II rowsort
SELECT ALL - 88 + + + 95, 24 * + 20 col1
----
7
480

query I rowsort
SELECT DISTINCT - 6 + 20
----
14

query I rowsort
SELECT ALL + 43 * 24
----
1032

onlyif mysql # aggregate syntax: 
query II rowsort label-3140
SELECT DISTINCT - 70 + 27 AS col2, + MAX( DISTINCT + - 47 )
----
-43
-47

skipif mysql # not compatible
query II rowsort label-3140
SELECT DISTINCT - 70 + 27 AS col2, + MAX ( DISTINCT + - 47 )
----
-43
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL + COALESCE ( + ( + MIN( DISTINCT + 28 ) ), + 1 ) + 86
----
114

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + COALESCE ( + ( + MIN ( DISTINCT + 28 ) ), + 1 ) + 86
----
114

query I rowsort
SELECT 17 * + - 99
----
-1683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT 56 * + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT 56 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3144
SELECT 27 - + - 31 col2, + MIN( ALL 79 ) + - MAX( DISTINCT - + 0 ) AS col0
----
58
79

skipif mysql # not compatible
query II rowsort label-3144
SELECT 27 - + - 31 col2, + MIN ( ALL 79 ) + - MAX ( DISTINCT - + 0 ) AS col0
----
58
79

query I rowsort
SELECT ALL 13 + - + 43 * 45 + + + 75 - + + 38 + + - NULLIF ( 65, ( + 15 ) ) * - - 67
----
-6240

query I rowsort
SELECT DISTINCT 90 * 39
----
3510

query II rowsort
SELECT DISTINCT 48 - + 86 AS col0, - 59 * ( - 91 ) * + 68
----
-38
365092

query I rowsort
SELECT ALL 7 * 6
----
42

query I rowsort
SELECT ALL 83 - + 89
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3150
SELECT ALL - - CASE + + 14 WHEN - NULLIF ( 46, - ( CAST( NULL AS SIGNED ) ) + + - 23 ) * 99 * + - 92 + - MIN( - + 22 ) THEN NULL WHEN COUNT( * ) THEN - + NULLIF ( AVG ( 66 ), - 28 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL - - CASE + + 14 WHEN - NULLIF ( 46, - ( CAST ( NULL AS INTEGER ) ) + + - 23 ) * 99 * + - 92 + - MIN ( - + 22 ) THEN NULL WHEN COUNT ( * ) THEN - + NULLIF ( AVG ( 66 ), - 28 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 70 * + 98 * + - 31 AS col1
----
-212660

onlyif mysql # aggregate syntax: 
query II rowsort label-3152
SELECT - 67 * COUNT( - 78 ) + 26, - 34 AS col1
----
-41
-34

skipif mysql # not compatible
query II rowsort label-3152
SELECT - 67 * COUNT ( - 78 ) + 26, - 34 AS col1
----
-41
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-3153
SELECT - 9 - + ( - COUNT( * ) ) * 99 AS col0, + COUNT( * ) * - 60
----
90
-60

skipif mysql # not compatible
query II rowsort label-3153
SELECT - 9 - + ( - COUNT ( * ) ) * 99 AS col0, + COUNT ( * ) * - 60
----
90
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL - + COUNT( ALL + 65 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL - + COUNT ( ALL + 65 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT + 76 * COUNT( * ) * + 18 * - - 33 AS col1
----
45144

skipif mysql # not compatible
query I rowsort label-3155
SELECT + 76 * COUNT ( * ) * + 18 * - - 33 AS col1
----
45144

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3157
SELECT + 89 + CAST( NULL AS SIGNED ) + + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT + 89 + CAST ( NULL AS INTEGER ) + + 46 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT ALL 42 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL 42 / + 66
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT + - NULLIF ( - + 40, CAST( NULL AS SIGNED ) + + 0 )
----
40

skipif mysql # not compatible
query I rowsort label-3159
SELECT + - NULLIF ( - + 40, CAST ( NULL AS INTEGER ) + + 0 )
----
40

query II rowsort
SELECT ALL - ( 46 ), + 28 AS col2
----
-46
28

onlyif mysql # DIV for integer division: 
query II rowsort label-3161
SELECT 33 DIV + + 86 AS col1, - 4 col1
----
0
-4

skipif mysql # not compatible
query II rowsort label-3161
SELECT 33 / + + 86 AS col1, - 4 col1
----
0
-4

query I rowsort
SELECT ALL - 63 + - 46 AS col0
----
-109

query I rowsort
SELECT 10 - - + 96
----
106

query I rowsort
SELECT DISTINCT 40 * - 67 * ( - NULLIF ( 30, + - 34 ) ) AS col1
----
80400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3165
SELECT ALL - 13 + + + COUNT( * ) DIV + 83 + 36 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - 13 + + + COUNT ( * ) / + 83 + 36 AS col2
----
23

query I rowsort
SELECT 2 * 36 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL 39 + - + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL 39 + - + COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT ALL 98 * + COUNT( * ) * + COALESCE ( + 42, - 3 ) * - - 32 - 55 + 19 * + 89 col2
----
133348

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL 98 * + COUNT ( * ) * + COALESCE ( + 42, - 3 ) * - - 32 - 55 + 19 * + 89 col2
----
133348

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ( - 46 ) * + COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-3169
SELECT ( - 46 ) * + COUNT ( * ) AS col1
----
-46

query I rowsort
SELECT ALL + 47 + + + 26
----
73

query I rowsort
SELECT ALL 91 + + - 82 AS col0
----
9

query II rowsort
SELECT ( + - 46 ) + - 9 AS col0, ( 68 ) * - - 87 + 5
----
-55
5921

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT COUNT( * ) + + + 79 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3173
SELECT COUNT ( * ) + + + 79 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT DISTINCT COUNT( - 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT COUNT ( - 36 ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-3175
SELECT CAST ( NULL AS INTEGER ) + - - 66 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3176
SELECT 27 + CAST( NULL AS SIGNED ) * + COUNT( * ), CAST( - - 75 AS SIGNED ) + 48 * CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3176
SELECT 27 + CAST ( NULL AS INTEGER ) * + COUNT ( * ), CAST ( - - 75 AS INTEGER ) + 48 * CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT ALL + NULLIF ( - - COUNT( * ), + 31 ) * 81 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL + NULLIF ( - - COUNT ( * ), + 31 ) * 81 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT - 20 + COUNT( - 8 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3178
SELECT - 20 + COUNT ( - 8 ) AS col0
----
-19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3180
SELECT DISTINCT CAST( - 38 AS SIGNED ) DIV - 18 AS col0, - COUNT( * )
----
2
-1

skipif mysql # not compatible
query II rowsort label-3180
SELECT DISTINCT CAST ( - 38 AS INTEGER ) / - 18 AS col0, - COUNT ( * )
----
2
-1

query I rowsort
SELECT ALL NULLIF ( - 8, + 75 + + 27 + + + 68 * 78 ) col1
----
-8

query I rowsort
SELECT - 13 * 18 AS col2
----
-234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3183
SELECT ALL - 12 * + - NULLIF ( CAST( NULL AS SIGNED ), 70 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - 12 * + - NULLIF ( CAST ( NULL AS INTEGER ), 70 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 94 * 63 AS col0
----
-5922

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

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

query II rowsort
SELECT - - 79 * 73 - + 99, - 87 * + - 73 AS col0
----
5668
6351

query I rowsort
SELECT - - 74 * - 71 AS col1
----
-5254

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT ALL 23 * + ( - + 84 ) * - COUNT( * ) - - 99
----
2031

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL 23 * + ( - + 84 ) * - COUNT ( * ) - - 99
----
2031

onlyif mysql # aggregate syntax: 
query III rowsort label-3189
SELECT - + 5 * - 49 - - 92 AS col0, COUNT( * ) * - ( + COUNT( * ) ), + - 38 + + - CASE - ( - 22 ) WHEN - - 81 THEN NULL ELSE NULLIF ( 43, + - 90 * - 45 ) END AS col2
----
337
-1
-81

skipif mysql # not compatible
query III rowsort label-3189
SELECT - + 5 * - 49 - - 92 AS col0, COUNT ( * ) * - ( + COUNT ( * ) ), + - 38 + + - CASE - ( - 22 ) WHEN - - 81 THEN NULL ELSE NULLIF ( 43, + - 90 * - 45 ) END AS col2
----
337
-1
-81

query II rowsort
SELECT ALL + 41 col2, 22 * - 49
----
41
-1078

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT - - 30 DIV - 3
----
-10

skipif mysql # not compatible
query I rowsort label-3191
SELECT - - 30 / - 3
----
-10

query I rowsort
SELECT DISTINCT + 2 * + - 31 + + 40 AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3193
SELECT - CAST( + 38 AS SIGNED ) * + - 63 AS col2
----
2394

skipif mysql # not compatible
query I rowsort label-3193
SELECT - CAST ( + 38 AS INTEGER ) * + - 63 AS col2
----
2394

query I rowsort
SELECT DISTINCT - 27 * + - 18 + - 21
----
465

onlyif mysql # aggregate syntax: 
query III rowsort label-3195
SELECT - COUNT( * ), COUNT( * ) + - 89 AS col2, 77 AS col1
----
-1
-88
77

skipif mysql # not compatible
query III rowsort label-3195
SELECT - COUNT ( * ), COUNT ( * ) + - 89 AS col2, 77 AS col1
----
-1
-88
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT + - 76 * - NULLIF ( + 88, - 70 ) + + - COUNT( * ) + + 85 * - MAX( + + 11 ) + - + 51 AS col2
----
5701

skipif mysql # not compatible
query I rowsort label-3197
SELECT + - 76 * - NULLIF ( + 88, - 70 ) + + - COUNT ( * ) + + 85 * - MAX ( + + 11 ) + - + 51 AS col2
----
5701

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT + - 72 - 0 + - - 28 + - - MAX( ALL - 73 ) AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-3198
SELECT + - 72 - 0 + - - 28 + - - MAX ( ALL - 73 ) AS col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL + COUNT( - 58 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL + COUNT ( - 58 ) col2
----
1

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

query I rowsort
SELECT ALL - 34 * - 21 AS col2
----
714

query I rowsort
SELECT + 98 + - - 50 AS col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT DISTINCT + SUM( + - ( 52 ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT + SUM ( + - ( 52 ) ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL - 75 * + 56 * + - COALESCE ( + COALESCE ( + 24, 68 ), 29 + - + 18 + - COUNT( * ) * 13 * 31 ) + 10 AS col0
----
100810

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL - 75 * + 56 * + - COALESCE ( + COALESCE ( + 24, 68 ), 29 + - + 18 + - COUNT ( * ) * 13 * 31 ) + 10 AS col0
----
100810

query II rowsort
SELECT ALL + 85 AS col2, - ( 80 ) AS col1
----
85
-80

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

skipif mysql # not compatible
query I rowsort label-3206
SELECT SUM ( ( + 23 ) )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3207
SELECT ALL + COALESCE ( - 59, + 3 ) * 48 - 98 DIV - 10 + 66
----
-2757

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL + COALESCE ( - 59, + 3 ) * 48 - 98 / - 10 + 66
----
-2757

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT DISTINCT + 30 * - 47 * - SUM( ALL - COALESCE ( + + 25, - 11 + - + 24 - 79 + 3 + - 19 * + ( - 44 ) * + 96 * + - 76 * + CASE + 91 WHEN 12 + + 7 THEN NULL ELSE - 60 * 3 END - - 5 * NULLIF ( - 67, + COALESCE ( + 72, 99 ) ) ) ) + 41
----
-35209

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT + 30 * - 47 * - SUM ( ALL - COALESCE ( + + 25, - 11 + - + 24 - 79 + 3 + - 19 * + ( - 44 ) * + 96 * + - 76 * + CASE + 91 WHEN 12 + + 7 THEN NULL ELSE - 60 * 3 END - - 5 * NULLIF ( - 67, + COALESCE ( + 72, 99 ) ) ) ) + 41
----
-35209

onlyif mysql # DIV for integer division: 
query I rowsort label-3209
SELECT + 74 DIV + - 21
----
-3

skipif mysql # not compatible
query I rowsort label-3209
SELECT + 74 / + - 21
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT ALL 85 DIV - 85 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL 85 / - 85 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT + COUNT( ALL - 47 ) + - + 52 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3211
SELECT + COUNT ( ALL - 47 ) + - + 52 AS col0
----
-51

query I rowsort
SELECT - CASE + 58 WHEN + 8 THEN NULL ELSE - + 7 - + 6 + - + 21 END AS col0
----
34

query I rowsort
SELECT + 26 * + - 91
----
-2366

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT - 32 + + COUNT( * ) + + - 35 col0
----
-66

skipif mysql # not compatible
query I rowsort label-3214
SELECT - 32 + + COUNT ( * ) + + - 35 col0
----
-66

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

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

query I rowsort
SELECT ALL 50 * 60
----
3000

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

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL 14 * CAST ( NULL AS INTEGER ) * 42
----
NULL

query I rowsort
SELECT DISTINCT 73 - - 19 * - 33 * - 62 AS col1
----
38947

query II rowsort
SELECT 85 AS col2, + ( - 16 ) AS col2
----
85
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3220
SELECT DISTINCT CAST( NULL AS SIGNED ) * 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3221
SELECT 96 AS col1, - COUNT( + + 37 )
----
96
-1

skipif mysql # not compatible
query II rowsort label-3221
SELECT 96 AS col1, - COUNT ( + + 37 )
----
96
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3222
SELECT - 8 AS col2, + 21 + + + NULLIF ( 86, - + 9 / - 89 + + - 51 + - + 25 * + COUNT( DISTINCT + 1 ) * - 13 ) col1
----
-8
107

skipif mysql # not compatible
query II rowsort label-3222
SELECT - 8 AS col2, + 21 + + + NULLIF ( 86, - + 9 / - 89 + + - 51 + - + 25 * + COUNT ( DISTINCT + 1 ) * - 13 ) col1
----
-8
107

query I rowsort
SELECT + 54 * - - 58
----
3132

query I rowsort
SELECT - 0 * - 76 + - - 12 AS col2
----
12

query II rowsort
SELECT ALL 56, 65 AS col1
----
56
65

query I rowsort
SELECT - - COALESCE ( - 72, + 34, - 57 ) + + + 30 + + 86 + 49 AS col0
----
93

query II rowsort
SELECT - 17, 74 AS col2
----
-17
74

query I rowsort
SELECT ALL - 73 * - + 26
----
1898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3229
SELECT - + SUM( DISTINCT + - 69 ) * - CAST( NULL AS SIGNED )
----
NULL

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

query I rowsort
SELECT + - 23 + + 9 + + 81 AS col0
----
67

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

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

query I rowsort
SELECT + 75 * + 32 + - 46 AS col0
----
2354

onlyif mysql # DIV for integer division: 
query I rowsort label-3233
SELECT DISTINCT ( 69 ) DIV 61 + - 79 + + + 89 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT ( 69 ) / 61 + - 79 + + + 89 AS col2
----
11

query I rowsort
SELECT - + 68 * 93 AS col2
----
-6324

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

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

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

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT - 78 / - COUNT ( * ) + + + 4 AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3237
SELECT - + CAST( + - 44 AS SIGNED ) * + CASE - 7 WHEN - + CAST( - - 89 AS SIGNED ) * + - COUNT( 77 ) THEN + 97 + - + 8 WHEN - CAST( NULL AS SIGNED ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT - + CAST ( + - 44 AS INTEGER ) * + CASE - 7 WHEN - + CAST ( - - 89 AS INTEGER ) * + - COUNT ( 77 ) THEN + 97 + - + 8 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 87 + + 66 - - - 82
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT ALL + + 16 * + - COUNT( * ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL + + 16 * + - COUNT ( * ) AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3240
SELECT 68, + COUNT( 1 ) DIV 34 * - + 93 DIV - NULLIF ( 16, - 21 + - 8 + 19 - + 68 * + COALESCE ( 26, 84 + - 81, + - 15 + 16 ) * 85 ) * + 12 col2
----
68
0

skipif mysql # not compatible
query II rowsort label-3240
SELECT 68, + COUNT ( 1 ) / 34 * - + 93 / - NULLIF ( 16, - 21 + - 8 + 19 - + 68 * + COALESCE ( 26, 84 + - 81, + - 15 + 16 ) * 85 ) * + 12 col2
----
68
0

query I rowsort
SELECT + + CASE - + 96 WHEN - + 86 THEN NULL ELSE 59 * - 65 * + 85 + + + 47 + - - 53 END AS col1
----
-325875

query I rowsort
SELECT ALL + 81 * - 70 + COALESCE ( - ( 7 ), - 7 ) AS col2
----
-5677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3243
SELECT - 4 * - - 56 AS col2, + NULLIF ( + + 86, + + CAST( CASE + 92 WHEN 20 THEN NULL ELSE MIN( ALL - + 88 ) END AS SIGNED ) * + COUNT( * ) + + 99 * ( - + COUNT( * ) ) / - 64 + + 9 )
----
-224
86

skipif mysql # not compatible
query II rowsort label-3243
SELECT - 4 * - - 56 AS col2, + NULLIF ( + + 86, + + CAST ( CASE + 92 WHEN 20 THEN NULL ELSE MIN ( ALL - + 88 ) END AS INTEGER ) * + COUNT ( * ) + + 99 * ( - + COUNT ( * ) ) / - 64 + + 9 )
----
-224
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3244
SELECT ALL - COUNT( * ) * + 66 col0, 14 + + COALESCE ( + CASE - 0 WHEN - 37 THEN + 75 - COUNT( * ) WHEN - 70 THEN + - 25 WHEN - - CAST( + 48 AS SIGNED ) - ( + - ( + COALESCE ( 41, + COUNT( ALL - NULLIF ( 62, 78 ) ), + 14 ) ) ) THEN NULL END, 81 )
----
-66
95

skipif mysql # not compatible
query II rowsort label-3244
SELECT ALL - COUNT ( * ) * + 66 col0, 14 + + COALESCE ( + CASE - 0 WHEN - 37 THEN + 75 - COUNT ( * ) WHEN - 70 THEN + - 25 WHEN - - CAST ( + 48 AS INTEGER ) - ( + - ( + COALESCE ( 41, + COUNT ( ALL - NULLIF ( 62, 78 ) ), + 14 ) ) ) THEN NULL END, 81 )
----
-66
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3245
SELECT - 68 * - - CAST( NULL AS DECIMAL ) * - - 83 * - - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT - 68 * - - CAST ( NULL AS REAL ) * - - 83 * - - 74 AS col1
----
NULL

query I rowsort
SELECT ALL - 30 * 7 AS col1
----
-210

query I rowsort
SELECT 57 * - + 92 - - 83 AS col2
----
-5161

onlyif mysql # DIV for integer division: 
query II rowsort label-3248
SELECT DISTINCT 67 DIV + - 98 AS col0, + 85 DIV + 15 AS col2
----
0
5

skipif mysql # not compatible
query II rowsort label-3248
SELECT DISTINCT 67 / + - 98 AS col0, + 85 / + 15 AS col2
----
0
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3249
SELECT CAST( - MIN( DISTINCT 34 ) AS DECIMAL ) - + + 15 + 75 - 76 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT CAST ( - MIN ( DISTINCT 34 ) AS REAL ) - + + 15 + 75 - 76 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT DISTINCT 31 DIV + - 28
----
-1

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT 31 / + - 28
----
-1

query I rowsort
SELECT CASE + 47 WHEN 82 * 34 / - - 52 THEN + + 89 END * + - ( + - 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT ALL 25 * - - 68 * COUNT( * )
----
1700

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL 25 * - - 68 * COUNT ( * )
----
1700

query I rowsort
SELECT DISTINCT NULLIF ( 51, - 30 ) * + 45 * - 64 + 89 AS col2
----
-146791

query I rowsort
SELECT + ( ( - + 34 ) ) + + + 24 * + 70 col2
----
1646

onlyif mysql # DIV for integer division: 
query I rowsort label-3255
SELECT + 51 DIV - ( + 35 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3255
SELECT + 51 / - ( + 35 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3256
SELECT DISTINCT - - 31 + + COUNT( * ) / - CAST( NULL AS SIGNED ) + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT - - 31 + + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + 1
----
NULL

query I rowsort
SELECT 8 * - 65 + 45 AS col2
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT - SUM( DISTINCT 66 ) + - COUNT( * ) + 46 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-3258
SELECT - SUM ( DISTINCT 66 ) + - COUNT ( * ) + 46 AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3259
SELECT + CAST( NULL AS SIGNED ) * + COALESCE ( - + ( + - 11 ), 24 * + + 80 ) * + COUNT( + 84 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3259
SELECT + CAST ( NULL AS INTEGER ) * + COALESCE ( - + ( + - 11 ), 24 * + + 80 ) * + COUNT ( + 84 ) col2
----
NULL

query I rowsort
SELECT DISTINCT - 50 + + 69 + - NULLIF ( + 16, 41 ) AS col0
----
3

query I rowsort
SELECT ALL + + ( 32 ) + - - CASE + 79 WHEN + 45 + + 30 THEN NULL WHEN + 98 THEN NULL ELSE 88 + - - 56 * 27 * + 85 END AS col0
----
128640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3262
SELECT + 58 * 48 DIV + ( NULLIF ( COUNT( * ), 67 ) ) + - + 49 * 3 AS col1
----
2637

skipif mysql # not compatible
query I rowsort label-3262
SELECT + 58 * 48 / + ( NULLIF ( COUNT ( * ), 67 ) ) + - + 49 * 3 AS col1
----
2637

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3263
SELECT MIN( DISTINCT - - 51 ) * + ( - - 94 ) DIV - + COUNT( * ) + + + NULLIF ( + - 6, + + 65 + + 24 * - 85 * 78 )
----
-4800

skipif mysql # not compatible
query I rowsort label-3263
SELECT MIN ( DISTINCT - - 51 ) * + ( - - 94 ) / - + COUNT ( * ) + + + NULLIF ( + - 6, + + 65 + + 24 * - 85 * 78 )
----
-4800

query I rowsort
SELECT DISTINCT - + 14 * - 71 + + + 85
----
1079

query I rowsort
SELECT - 33 + 20
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT DISTINCT + - 47 * ( - - COUNT( * ) ) * - COUNT( * ) col1
----
47

skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT + - 47 * ( - - COUNT ( * ) ) * - COUNT ( * ) col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3267
SELECT ALL - - SUM( DISTINCT + + 26 ) AS col0, ( + 12 )
----
26
12

skipif mysql # not compatible
query II rowsort label-3267
SELECT ALL - - SUM ( DISTINCT + + 26 ) AS col0, ( + 12 )
----
26
12

query I rowsort
SELECT + 76 * 0 + 81 + - + 1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-3269
SELECT - COUNT( * ) + - 16 * + 96 AS col1, + COUNT( * ) * + - 91 * - 27 AS col0
----
-1537
2457

skipif mysql # not compatible
query II rowsort label-3269
SELECT - COUNT ( * ) + - 16 * + 96 AS col1, + COUNT ( * ) * + - 91 * - 27 AS col0
----
-1537
2457

query I rowsort
SELECT 40 * 45 AS col2
----
1800

onlyif mysql # aggregate syntax: 
query III rowsort label-3271
SELECT ( 88 ) * + 29 + - + 44 * - + 85 * + 23 AS col1, + CASE - - 24 WHEN + COUNT( * ) THEN 17 - COUNT( * ) END AS col2, SUM( + - 99 ) * - - 36 * + 84
----
88572
NULL
-299376

skipif mysql # not compatible
query III rowsort label-3271
SELECT ( 88 ) * + 29 + - + 44 * - + 85 * + 23 AS col1, + CASE - - 24 WHEN + COUNT ( * ) THEN 17 - COUNT ( * ) END AS col2, SUM ( + - 99 ) * - - 36 * + 84
----
88572
NULL
-299376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3272
SELECT - 51 * - COUNT( * ) * - + 45 + CAST( + + 70 AS SIGNED )
----
-2225

skipif mysql # not compatible
query I rowsort label-3272
SELECT - 51 * - COUNT ( * ) * - + 45 + CAST ( + + 70 AS INTEGER )
----
-2225

query I rowsort
SELECT 27 + - 2 - - 49 * + 45 * 86
----
189655

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT 30 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-3274
SELECT 30 / - 50
----
0

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3275
SELECT DISTINCT - 69 AS col1, CASE + 39 WHEN + CAST( NULL AS DECIMAL ) THEN + 25 + 15 ELSE - 39 END DIV 86
----
-69
0

skipif mysql # not compatible
query II rowsort label-3275
SELECT DISTINCT - 69 AS col1, CASE + 39 WHEN + CAST ( NULL AS REAL ) THEN + 25 + 15 ELSE - 39 END / 86
----
-69
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT ALL + 53 DIV - COALESCE ( - 72, + + 58 * 33 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL + 53 / - COALESCE ( - 72, + + 58 * 33 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3277
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) * - 29 + - 7 * + 76 + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 29 + - 7 * + 76 + 69
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3278
SELECT ALL 39, - COUNT( DISTINCT - 71 ) AS col0
----
39
-1

skipif mysql # not compatible
query II rowsort label-3278
SELECT ALL 39, - COUNT ( DISTINCT - 71 ) AS col0
----
39
-1

query I rowsort
SELECT 71 + COALESCE ( + 19, + + 63, + ( - - ( + 1 ) ) - - - 9 * 30, - + 85 + + + 17 ) col2
----
90

query I rowsort
SELECT 42 * + + 69 AS col2
----
2898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3281
SELECT CASE CAST( + COUNT( * ) AS SIGNED ) WHEN + 96 THEN NULL WHEN - 31 THEN - + MAX( DISTINCT + COALESCE ( + 99, + 11, 31 + + 82 ) ) * 81 ELSE NULL END + - - 24 * + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT CASE CAST ( + COUNT ( * ) AS INTEGER ) WHEN + 96 THEN NULL WHEN - 31 THEN - + MAX ( DISTINCT + COALESCE ( + 99, + 11, 31 + + 82 ) ) * 81 ELSE NULL END + - - 24 * + 97 AS col0
----
NULL

query II rowsort
SELECT 61 col1, NULLIF ( + 57, + - 22 ) - + 85 AS col2
----
61
-28

query I rowsort
SELECT ALL + 63 + + 70 * 50 AS col1
----
3563

query II rowsort
SELECT 34 AS col0, - CASE WHEN 95 IS NOT NULL THEN + 21 * + + 13 + 5 * + + 56 END AS col1
----
34
-553

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3285
SELECT DISTINCT + 81 + + - CASE WHEN NOT CAST( + 40 AS SIGNED ) IN ( - + 87 ) THEN 16 ELSE NULL END - + + ( - 11 ) * + - 38 DIV + 19 + 37
----
80

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + 81 + + - CASE WHEN NOT CAST ( + 40 AS INTEGER ) IN ( - + 87 ) THEN 16 ELSE NULL END - + + ( - 11 ) * + - 38 / + 19 + 37
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL + MIN( DISTINCT 7 ) + - - ( - + 82 )
----
-75

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL + MIN ( DISTINCT 7 ) + - - ( - + 82 )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT CAST( + 43 AS SIGNED ) * - 81
----
-3483

skipif mysql # not compatible
query I rowsort label-3287
SELECT CAST ( + 43 AS INTEGER ) * - 81
----
-3483

query I rowsort
SELECT ALL + - 25 + - + 26 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query III rowsort label-3289
SELECT + COUNT( * ), 78 + - ( + 99 ) AS col2, + 22 * + 85 AS col1
----
1
-21
1870

skipif mysql # not compatible
query III rowsort label-3289
SELECT + COUNT ( * ), 78 + - ( + 99 ) AS col2, + 22 * + 85 AS col1
----
1
-21
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT - 93 - + CASE + + 86 WHEN - 84 * - 79 * + 57 * + 7 + - COUNT( * ) THEN NULL WHEN COUNT( * ) THEN - - 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT - 93 - + CASE + + 86 WHEN - 84 * - 79 * + 57 * + 7 + - COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN - - 41 ELSE NULL END
----
NULL

query I rowsort
SELECT + 85 + + 85
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL - COUNT( * ) + + 56 + - + 82 + 70 + - 56
----
-13

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL - COUNT ( * ) + + 56 + - + 82 + 70 + - 56
----
-13

query I rowsort
SELECT + 42 - - + 82
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT DISTINCT + + 7 + + 90 + + - 94 * - 93 * + - COUNT( * ) + + + 70
----
-8575

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT + + 7 + + 90 + + - 94 * - 93 * + - COUNT ( * ) + + + 70
----
-8575

query II rowsort
SELECT 22, 12 AS col1
----
22
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3296
SELECT + - 23 AS col0, + 27 * 57 + + MIN( + 89 ) AS col0
----
-23
1628

skipif mysql # not compatible
query II rowsort label-3296
SELECT + - 23 AS col0, + 27 * 57 + + MIN ( + 89 ) AS col0
----
-23
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT + + NULLIF ( NULLIF ( COUNT( * ), - COUNT( * ) * COUNT( * ) ), + + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT + + NULLIF ( NULLIF ( COUNT ( * ), - COUNT ( * ) * COUNT ( * ) ), + + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT 26 + + - 83
----
-57

query I rowsort
SELECT - 92 * - 68 + NULLIF ( - + 92, 77 ) AS col2
----
6164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3300
SELECT - 28 DIV 20 + - COUNT( * ) - + 97
----
-99

skipif mysql # not compatible
query I rowsort label-3300
SELECT - 28 / 20 + - COUNT ( * ) - + 97
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3301
SELECT COUNT( * ) - + - COUNT( * ) + + 68, 56 * + - 20 AS col2
----
70
-1120

skipif mysql # not compatible
query II rowsort label-3301
SELECT COUNT ( * ) - + - COUNT ( * ) + + 68, 56 * + - 20 AS col2
----
70
-1120

query I rowsort
SELECT + - ( + + 21 ) AS col0
----
-21

query I rowsort
SELECT + 14 + 50 + + 4 + - 53 + 25 col2
----
40

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

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

query I rowsort
SELECT ALL + 66 * - 93 col2
----
-6138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3306
SELECT + MAX( - + 83 ) * 65 * + - ( + ( - SUM( CAST( NULL AS SIGNED ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT + MAX ( - + 83 ) * 65 * + - ( + ( - SUM ( CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 57 * 38 AS col1
----
2166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3308
SELECT DISTINCT ( + CASE + 70 WHEN - - 4 THEN + 99 WHEN 72 / 77 THEN NULL WHEN - COUNT( * ) * + ( - 63 ) * - 14 - + CAST( NULL AS SIGNED ) THEN NULL END ) * + ( + 81 ), + 64 * - 62 - - - 31 * - 66 AS col0
----
NULL
-1922

skipif mysql # not compatible
query II rowsort label-3308
SELECT DISTINCT ( + CASE + 70 WHEN - - 4 THEN + 99 WHEN 72 / 77 THEN NULL WHEN - COUNT ( * ) * + ( - 63 ) * - 14 - + CAST ( NULL AS INTEGER ) THEN NULL END ) * + ( + 81 ), + 64 * - 62 - - - 31 * - 66 AS col0
----
NULL
-1922

query I rowsort
SELECT 94 * + 50 * - - 2 + - 4
----
9396

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3310
SELECT ALL 55 * - - 24 AS col2, - CAST( NULL AS SIGNED ) AS col0
----
1320
NULL

skipif mysql # not compatible
query II rowsort label-3310
SELECT ALL 55 * - - 24 AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
1320
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT MAX( - 19 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3311
SELECT MAX ( - 19 ) AS col0
----
-19

query I rowsort
SELECT ALL - 95 + - 18 * - 38 * + - 22
----
-15143

query I rowsort
SELECT + 55 - - + 82 AS col2
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3314
SELECT + NULLIF ( - + NULLIF ( - 37, COUNT( * ) + + 55 ), - ( 2 ) ) DIV - - ( 41 )
----
0

skipif mysql # not compatible
query I rowsort label-3314
SELECT + NULLIF ( - + NULLIF ( - 37, COUNT ( * ) + + 55 ), - ( 2 ) ) / - - ( 41 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3315
SELECT ALL CAST( NULL AS DECIMAL ) + + 10 - + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL CAST ( NULL AS REAL ) + + 10 - + - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT + COUNT( * ) * + 63 - - 23 + 85 AS col1
----
171

skipif mysql # not compatible
query I rowsort label-3316
SELECT + COUNT ( * ) * + 63 - - 23 + 85 AS col1
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3317
SELECT DISTINCT + 22 DIV + ( COALESCE ( 32, + COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT + 22 / + ( COALESCE ( 32, + COUNT ( * ) ) )
----
0

query I rowsort
SELECT ALL - 68 + - ( + 13 ) - - + 64 * 64 * 26
----
106415

query I rowsort
SELECT + 14 * - 12 * ( - 45 ) + + 86 * + 86 * - 4
----
-22024

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT ALL - COUNT( * ) * 95 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL - COUNT ( * ) * 95 AS col1
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL - CASE + 20 WHEN + 29 THEN NULL WHEN + COUNT( * ) THEN - 14 END + - + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL - CASE + 20 WHEN + 29 THEN NULL WHEN + COUNT ( * ) THEN - 14 END + - + 24 AS col0
----
NULL

query I rowsort
SELECT - - 5 - - + 31 * + - 48 AS col1
----
-1483

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT - + COUNT( * ) + - - 60 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-3324
SELECT - + COUNT ( * ) + - - 60 AS col2
----
59

query I rowsort
SELECT - - 61 + - - 47
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL + COUNT( - 65 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL + COUNT ( - 65 ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT - MIN( - ( - 55 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-3327
SELECT - MIN ( - ( - 55 ) )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT CAST( - 20 AS SIGNED ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-3328
SELECT CAST ( - 20 AS INTEGER ) col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3329
SELECT - - 93 + + - NULLIF ( COUNT( * ), + 54 + - + 70 + + 90 * + 22 * + + ( + 17 ) ) - - 95 DIV 79
----
93

skipif mysql # not compatible
query I rowsort label-3329
SELECT - - 93 + + - NULLIF ( COUNT ( * ), + 54 + - + 70 + + 90 * + 22 * + + ( + 17 ) ) - - 95 / 79
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3330
SELECT - ( + - 59 ) DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-3330
SELECT - ( + - 59 ) / 74
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT - + 18 + + - 58 + - + SUM( - + 48 ) + + 73 * + + 90 * - 20
----
-131428

skipif mysql # not compatible
query I rowsort label-3332
SELECT - + 18 + + - 58 + - + SUM ( - + 48 ) + + 73 * + + 90 * - 20
----
-131428

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3333
SELECT DISTINCT + 7 DIV - 19 * + 24 - COUNT( * ) AS col0, - 37 * 4 AS col2
----
-1
-148

skipif mysql # not compatible
query II rowsort label-3333
SELECT DISTINCT + 7 / - 19 * + 24 - COUNT ( * ) AS col0, - 37 * 4 AS col2
----
-1
-148

query I rowsort
SELECT + + 79 + + 78 + + ( + 16 ) * + 38
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT + 12 * - - 90 + - - SUM( ALL 30 )
----
1110

skipif mysql # not compatible
query I rowsort label-3335
SELECT + 12 * - - 90 + - - SUM ( ALL 30 )
----
1110

query I rowsort
SELECT DISTINCT 57 * + 49 * + - 27 AS col1
----
-75411

query I rowsort
SELECT - 42 * + + 43 + - 10 * - 20
----
-1606

query I rowsort
SELECT + NULLIF ( - 75, + 89 ) AS col1
----
-75

query I rowsort
SELECT + 97 * - 81
----
-7857

query II rowsort
SELECT ALL ( - 32 ) * 77 col2, + 24 col2
----
-2464
24

query III rowsort
SELECT - 85 + 13 * - 5, - 49 * - 24 + - 77 AS col0, - 18 AS col0
----
-150
1099
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT + 67 + + COUNT( * ) * + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-3343
SELECT + 67 + + COUNT ( * ) * + COUNT ( * )
----
68

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3345
SELECT + COUNT( * ) * - 12 * + COUNT( * ) * + CAST( + MAX( DISTINCT 12 ) AS SIGNED ), 70 * 25 * MAX( DISTINCT + 5 ) AS col0
----
-144
8750

skipif mysql # not compatible
query II rowsort label-3345
SELECT + COUNT ( * ) * - 12 * + COUNT ( * ) * + CAST ( + MAX ( DISTINCT 12 ) AS INTEGER ), 70 * 25 * MAX ( DISTINCT + 5 ) AS col0
----
-144
8750

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT + NULLIF ( 61, + ( 78 ) ) * - - ( - 9 ) * + + 42 + 38 + - + 84 - - 35 * NULLIF ( - 92, 21 * - + 25 * - COUNT( * ) + 77 + - 49 ) AS col1
----
-26324

skipif mysql # not compatible
query I rowsort label-3346
SELECT + NULLIF ( 61, + ( 78 ) ) * - - ( - 9 ) * + + 42 + 38 + - + 84 - - 35 * NULLIF ( - 92, 21 * - + 25 * - COUNT ( * ) + 77 + - 49 ) AS col1
----
-26324

query I rowsort
SELECT + 29 * 20 + + 40 AS col1
----
620

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT CASE + 36 WHEN - 61 + - MIN( - 51 ) THEN NULL WHEN + COUNT( * ) + - 14 THEN - 65 + + - 70 WHEN - COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT CASE + 36 WHEN - 61 + - MIN ( - 51 ) THEN NULL WHEN + COUNT ( * ) + - 14 THEN - 65 + + - 70 WHEN - COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 68 * - - ( 93 ) + - 29 + + 33
----
-6320

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT + ( - - ( + 97 ) ) + - CASE COUNT( * ) WHEN MAX( + 44 ) THEN + ( + 27 ) - - 39 WHEN + 0 * + + 10 THEN - - 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT + ( - - ( + 97 ) ) + - CASE COUNT ( * ) WHEN MAX ( + 44 ) THEN + ( + 27 ) - - 39 WHEN + 0 * + + 10 THEN - - 52 END
----
NULL

query I rowsort
SELECT ( + 15 ) * 14 + NULLIF ( - 43, 9 ) AS col2
----
167

query II rowsort
SELECT DISTINCT + 22, - ( - 76 ) col0
----
22
76

query I rowsort
SELECT ALL 66 * - 24 + + ( 46 ) col2
----
-1538

query I rowsort
SELECT - 77 + 26 * + 27
----
625

query I rowsort
SELECT DISTINCT - 91 * - 45 + + 51 AS col1
----
4146

query I rowsort
SELECT ALL 45 * + + 1 * - 66 * 44 * 67 + - - 43
----
-8755517

query II rowsort
SELECT - - 45 AS col2, - 99
----
45
-99

query I rowsort
SELECT - ( + + 73 ) AS col0
----
-73

query I rowsort
SELECT - 58 + - 81 * - 12 AS col1
----
914

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT - 67 * - MAX( + + 36 ) AS col2
----
2412

skipif mysql # not compatible
query I rowsort label-3360
SELECT - 67 * - MAX ( + + 36 ) AS col2
----
2412

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT ALL - - 82 DIV - 33
----
-2

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL - - 82 / - 33
----
-2

query I rowsort
SELECT ALL - 19 - + 14 col0
----
-33

query II rowsort
SELECT DISTINCT - 42 AS col2, ( + - 94 ) + + 18 AS col1
----
-42
-76

query II rowsort
SELECT DISTINCT - - ( 44 ) * - 10, 7 * 40 col1
----
-440
280

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT ALL - 69 DIV - - 94 * + 31 + ( ( - 6 ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL - 69 / - - 94 * + 31 + ( ( - 6 ) ) AS col2
----
-6

query I rowsort
SELECT + - ( - + ( - 56 ) ) - - 82 AS col1
----
26

query II rowsort
SELECT 95 AS col2, 51 - ( 17 )
----
95
34

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

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT + + 27 * + 15 / + + COUNT ( * ) AS col2
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT DISTINCT - - 11 * - CASE + MIN( + 94 ) WHEN 8 THEN 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT - - 11 * - CASE + MIN ( + 94 ) WHEN 8 THEN 30 ELSE NULL END
----
NULL

query I rowsort
SELECT 32 - + 16 AS col1
----
16

query I rowsort
SELECT DISTINCT 9 + + ( + 85 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT 26 * - COUNT( - 50 )
----
-26

skipif mysql # not compatible
query I rowsort label-3372
SELECT 26 * - COUNT ( - 50 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ( - 97 ) * - + ( + NULLIF ( - + 26, - - 55 ) ) + - - NULLIF ( - - 5, - 64 - - 63 * - 36 + + + 72 * - + COUNT( * ) / - COUNT( * ) ) - 5 col2
----
-2522

skipif mysql # not compatible
query I rowsort label-3373
SELECT ( - 97 ) * - + ( + NULLIF ( - + 26, - - 55 ) ) + - - NULLIF ( - - 5, - 64 - - 63 * - 36 + + + 72 * - + COUNT ( * ) / - COUNT ( * ) ) - 5 col2
----
-2522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3374
SELECT 50 AS col1, - 44 * + COALESCE ( - 10, + 66, CAST( NULL AS SIGNED ) DIV - 43 * + COALESCE ( + COALESCE ( - - 52, 51, CAST( NULL AS SIGNED ) + + COUNT( * ) ), - 33 DIV + + 36 * 7 * 80 ) + + - 97, + + 4 ) AS col0, 71
----
50
440
71

skipif mysql # not compatible
query III rowsort label-3374
SELECT 50 AS col1, - 44 * + COALESCE ( - 10, + 66, CAST ( NULL AS INTEGER ) / - 43 * + COALESCE ( + COALESCE ( - - 52, 51, CAST ( NULL AS INTEGER ) + + COUNT ( * ) ), - 33 / + + 36 * 7 * 80 ) + + - 97, + + 4 ) AS col0, 71
----
50
440
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3375
SELECT + 25 DIV + 99 * - + 71 + - 30 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3375
SELECT + 25 / + 99 * - + 71 + - 30 AS col1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT ALL + 94 + + + 60 + - 32 DIV 32 AS col1
----
153

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL + 94 + + + 60 + - 32 / 32 AS col1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3377
SELECT ALL - 40 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL - 40 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3378
SELECT 52 * + - 16 * - 77 * - NULLIF ( CASE - + COUNT( * ) WHEN - 53 * - ( + 44 ) THEN NULL WHEN + ( NULLIF ( + - 19, - - MIN( + ( + 46 ) ) + + AVG ( - 30 ) - + - COUNT( * ) ) ) / + - COUNT( * ) + COUNT( DISTINCT - CAST( + ( + 84 ) AS SIGNED ) ) / - CAST( CASE COUNT( * ) WHEN COUNT( * ) THEN 63 ELSE NULL END * 38 - ( + 32 ) AS SIGNED ) THEN NULL ELSE CASE SUM( DISTINCT - 63 ) WHEN + 2 / + 80 THEN - 66 WHEN 14 * + 90 THEN NULL WHEN + 50 + 57 * 24 THEN NULL END END, + 86 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT 52 * + - 16 * - 77 * - NULLIF ( CASE - + COUNT ( * ) WHEN - 53 * - ( + 44 ) THEN NULL WHEN + ( NULLIF ( + - 19, - - MIN ( + ( + 46 ) ) + + AVG ( - 30 ) - + - COUNT ( * ) ) ) / + - COUNT ( * ) + COUNT ( DISTINCT - CAST ( + ( + 84 ) AS INTEGER ) ) / - CAST ( CASE COUNT ( * ) WHEN COUNT ( * ) THEN 63 ELSE NULL END * 38 - ( + 32 ) AS INTEGER ) THEN NULL ELSE CASE SUM ( DISTINCT - 63 ) WHEN + 2 / + 80 THEN - 66 WHEN 14 * + 90 THEN NULL WHEN + 50 + 57 * 24 THEN NULL END END, + 86 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT DISTINCT 67 * - COUNT( * ) * + 68
----
-4556

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT 67 * - COUNT ( * ) * + 68
----
-4556

query I rowsort
SELECT ALL 26 + - + 62 * + COALESCE ( - + 14, - 89 )
----
894

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL + SUM( DISTINCT - - 7 ) + COUNT( * ) col0
----
8

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + SUM ( DISTINCT - - 7 ) + COUNT ( * ) col0
----
8

query I rowsort
SELECT ALL 2 * 49
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3383
SELECT 71 DIV 16 * - 79 AS col2
----
-316

skipif mysql # not compatible
query I rowsort label-3383
SELECT 71 / 16 * - 79 AS col2
----
-316

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

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT - 22 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 46 AS col2, - 28 col0
----
46
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-3386
SELECT ALL - 25 AS col0, - 38 DIV 93 AS col1
----
-25
0

skipif mysql # not compatible
query II rowsort label-3386
SELECT ALL - 25 AS col0, - 38 / 93 AS col1
----
-25
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3387
SELECT SUM( 83 ) DIV + + 61
----
1

skipif mysql # not compatible
query I rowsort label-3387
SELECT SUM ( 83 ) / + + 61
----
1

query II rowsort
SELECT 74, 79 + - 16 + 38 col0
----
74
101

query II rowsort
SELECT 6 * + - 29, 94 AS col0
----
-174
94

query I rowsort
SELECT ALL 60 - + + 84 - 29
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3391
SELECT 50, + CAST( + 20 AS SIGNED ) * CASE - MIN( 91 ) WHEN + CASE - 58 WHEN - ( 21 ) + - AVG ( DISTINCT - 25 ) - + 49 THEN NULL ELSE + 28 END + 9 * - 45 THEN - MIN( ALL + 54 ) ELSE + 32 - - - COALESCE ( 60, + SUM( 15 ), 42 * ( - COUNT( * ) ) ) END AS col2
----
50
-560

skipif mysql # not compatible
query II rowsort label-3391
SELECT 50, + CAST ( + 20 AS INTEGER ) * CASE - MIN ( 91 ) WHEN + CASE - 58 WHEN - ( 21 ) + - AVG ( DISTINCT - 25 ) - + 49 THEN NULL ELSE + 28 END + 9 * - 45 THEN - MIN ( ALL + 54 ) ELSE + 32 - - - COALESCE ( 60, + SUM ( 15 ), 42 * ( - COUNT ( * ) ) ) END AS col2
----
50
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL - CASE + 85 WHEN + 80 + - COUNT( * ) THEN - 0 WHEN 43 THEN - 61 + - ( 66 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL - CASE + 85 WHEN + 80 + - COUNT ( * ) THEN - 0 WHEN 43 THEN - 61 + - ( 66 ) END
----
NULL

query I rowsort
SELECT 29 * - ( 51 )
----
-1479

query I rowsort
SELECT + ( - 92 ) * 27 * + 74 + - 37
----
-183853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3395
SELECT - ( - CASE + 75 WHEN - - 44 * - 21 + - + 74 THEN + + 37 + + CAST( NULL AS SIGNED ) WHEN - - 5 * - 67 THEN + CASE - 49 WHEN + MIN( DISTINCT - ( - 18 ) ) + 9 THEN NULL WHEN - + 18 THEN - 18 * - - 36 * 82 * - - 74 + 62 WHEN 33 THEN 44 ELSE MIN( 69 ) END END ) - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT - ( - CASE + 75 WHEN - - 44 * - 21 + - + 74 THEN + + 37 + + CAST ( NULL AS INTEGER ) WHEN - - 5 * - 67 THEN + CASE - 49 WHEN + MIN ( DISTINCT - ( - 18 ) ) + 9 THEN NULL WHEN - + 18 THEN - 18 * - - 36 * 82 * - - 74 + 62 WHEN 33 THEN 44 ELSE MIN ( 69 ) END END ) - 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3396
SELECT 78 + + - 71, 85 + - + 19 + MAX( ALL - 37 ) col1
----
7
29

skipif mysql # not compatible
query II rowsort label-3396
SELECT 78 + + - 71, 85 + - + 19 + MAX ( ALL - 37 ) col1
----
7
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT 21 - - MIN( DISTINCT 53 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3397
SELECT 21 - - MIN ( DISTINCT 53 ) AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3398
SELECT ALL COUNT( * ) * CAST( + AVG ( DISTINCT - 61 ) AS SIGNED ) AS col2, + 30 AS col1
----
-61
30

skipif mysql # not compatible
query II rowsort label-3398
SELECT ALL COUNT ( * ) * CAST ( + AVG ( DISTINCT - 61 ) AS INTEGER ) AS col2, + 30 AS col1
----
-61
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3399
SELECT COUNT( * ) DIV - 10 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3399
SELECT COUNT ( * ) / - 10 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT + COUNT( - ( - 95 ) ) * + - 79 + 41
----
-38

skipif mysql # not compatible
query I rowsort label-3400
SELECT + COUNT ( - ( - 95 ) ) * + - 79 + 41
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3401
SELECT 77 * COALESCE ( - 72, + 12 DIV - + 71 - - COUNT( * ) DIV - + NULLIF ( - - 61, + + 24 ) ) col1
----
-5544

skipif mysql # not compatible
query I rowsort label-3401
SELECT 77 * COALESCE ( - 72, + 12 / - + 71 - - COUNT ( * ) / - + NULLIF ( - - 61, + + 24 ) ) col1
----
-5544

query I rowsort
SELECT ALL 17 + + - 43 AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3403
SELECT ALL + + CAST( + - 3 AS SIGNED ) * CAST( - 58 AS SIGNED ) * + - ( MIN( ALL - 98 ) ) AS col2
----
17052

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL + + CAST ( + - 3 AS INTEGER ) * CAST ( - 58 AS INTEGER ) * + - ( MIN ( ALL - 98 ) ) AS col2
----
17052

query I rowsort
SELECT 71 * + - 48 col1
----
-3408

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT 61 + - + COUNT( * ) + + 52 + - - 28 + - COUNT( * ) + 47 * + 22
----
1173

skipif mysql # not compatible
query I rowsort label-3405
SELECT 61 + - + COUNT ( * ) + + 52 + - - 28 + - COUNT ( * ) + 47 * + 22
----
1173

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3406
SELECT DISTINCT 38 + COUNT( * ) AS col0, 33 + 25 DIV + MIN( + 24 ) AS col1
----
39
34

skipif mysql # not compatible
query II rowsort label-3406
SELECT DISTINCT 38 + COUNT ( * ) AS col0, 33 + 25 / + MIN ( + 24 ) AS col1
----
39
34

query I rowsort
SELECT DISTINCT + 63 + 25
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT + 33 * - COUNT( + 56 ) * - MIN( 10 ) + + CASE 66 WHEN - 69 THEN NULLIF ( 31, + + CASE - COUNT( * ) WHEN + 44 / 21 + + - 49 THEN NULL WHEN + + 86 * - 67 THEN NULL ELSE + + 20 END ) - + ( - ( + + MAX( DISTINCT + + 76 ) ) ) + - 47 WHEN 48 * - NULLIF ( 36, 17 + 9 ) + + NULLIF ( 88, 62 ) THEN - 42 END + + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT + 33 * - COUNT ( + 56 ) * - MIN ( 10 ) + + CASE 66 WHEN - 69 THEN NULLIF ( 31, + + CASE - COUNT ( * ) WHEN + 44 / 21 + + - 49 THEN NULL WHEN + + 86 * - 67 THEN NULL ELSE + + 20 END ) - + ( - ( + + MAX ( DISTINCT + + 76 ) ) ) + - 47 WHEN 48 * - NULLIF ( 36, 17 + 9 ) + + NULLIF ( 88, 62 ) THEN - 42 END + + 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT SUM( - + 87 ) + 74 * + 71 AS col0
----
5167

skipif mysql # not compatible
query I rowsort label-3409
SELECT SUM ( - + 87 ) + 74 * + 71 AS col0
----
5167

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT 99 * SUM( - + 82 )
----
-8118

skipif mysql # not compatible
query I rowsort label-3410
SELECT 99 * SUM ( - + 82 )
----
-8118

query II rowsort
SELECT 6 + - 17 AS col2, - 37 + 64
----
-11
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3412
SELECT COUNT( * ) DIV - - COUNT( * ) + 17, ( + - 58 ) * - 9 AS col2
----
18
522

skipif mysql # not compatible
query II rowsort label-3412
SELECT COUNT ( * ) / - - COUNT ( * ) + 17, ( + - 58 ) * - 9 AS col2
----
18
522

query I rowsort
SELECT ALL - 63 * - ( + - COALESCE ( + 93, - 86 ) )
----
-5859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3414
SELECT CASE + MIN( + 40 ) WHEN + CAST( NULL AS SIGNED ) * + 6 + - CASE - 87 WHEN 56 THEN + - 55 ELSE NULL END THEN + 98 DIV - - 56 * + COUNT( * ) ELSE + 31 END + COUNT( * ) - - 28 * NULLIF ( - + 44, + + 55 * - + 22 ) * - + 53 AS col1
----
65328

skipif mysql # not compatible
query I rowsort label-3414
SELECT CASE + MIN ( + 40 ) WHEN + CAST ( NULL AS INTEGER ) * + 6 + - CASE - 87 WHEN 56 THEN + - 55 ELSE NULL END THEN + 98 / - - 56 * + COUNT ( * ) ELSE + 31 END + COUNT ( * ) - - 28 * NULLIF ( - + 44, + + 55 * - + 22 ) * - + 53 AS col1
----
65328

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT 82 * + + MAX( + 96 ) + + 62
----
7934

skipif mysql # not compatible
query I rowsort label-3415
SELECT 82 * + + MAX ( + 96 ) + + 62
----
7934

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT ALL 32 * + 41 * 76 + - 12 + - COUNT( * )
----
99699

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL 32 * + 41 * 76 + - 12 + - COUNT ( * )
----
99699

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT 67 * - COALESCE ( + + COUNT( * ), - 89 * + 4 * - 9 + + 85 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-3417
SELECT 67 * - COALESCE ( + + COUNT ( * ), - 89 * + 4 * - 9 + + 85 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT + 68 * 57 + COUNT( - 73 ) AS col1
----
3877

skipif mysql # not compatible
query I rowsort label-3418
SELECT + 68 * 57 + COUNT ( - 73 ) AS col1
----
3877

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL - 86 + - + MIN( ALL 4 ) col0
----
-90

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL - 86 + - + MIN ( ALL 4 ) col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT + 18 + ( 77 ) * + 79 * + + 49 + COUNT( * ) col2
----
298086

skipif mysql # not compatible
query I rowsort label-3422
SELECT + 18 + ( 77 ) * + 79 * + + 49 + COUNT ( * ) col2
----
298086

query II rowsort
SELECT ALL 62 * - - 37 AS col2, 46 AS col0
----
2294
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT DISTINCT - 37 + - ( + - ( - - CASE - + 64 WHEN + + 57 THEN + - 83 * ( - COUNT( * ) ) END ) ) * + 83 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT - 37 + - ( + - ( - - CASE - + 64 WHEN + + 57 THEN + - 83 * ( - COUNT ( * ) ) END ) ) * + 83 * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 6 + + ( 87 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3426
SELECT - 75 - COALESCE ( COUNT( * ), + ( + 4 ) DIV 64 DIV + + 3 )
----
-76

skipif mysql # not compatible
query I rowsort label-3426
SELECT - 75 - COALESCE ( COUNT ( * ), + ( + 4 ) / 64 / + + 3 )
----
-76

query I rowsort
SELECT ALL 56 * 24 col0
----
1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT ALL 50 + - - CAST( NULL AS SIGNED ) / - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL 50 + - - CAST ( NULL AS INTEGER ) / - 90
----
NULL

query I rowsort
SELECT DISTINCT 62 + 98 + - 28 * + 76 AS col0
----
-1968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3430
SELECT + COALESCE ( - COUNT( * ), + 66 + - 57 ) DIV - SUM( DISTINCT - + ( 98 ) ) + - + 71 + - 33 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-3430
SELECT + COALESCE ( - COUNT ( * ), + 66 + - 57 ) / - SUM ( DISTINCT - + ( 98 ) ) + - + 71 + - 33 AS col1
----
-104

query I rowsort
SELECT + 91 - + NULLIF ( + - 59, - 40 )
----
150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3432
SELECT + CASE - 30 WHEN + 1 * + - CAST( - 54 AS DECIMAL ) - - CAST( - - 21 AS DECIMAL ) THEN - 1 ELSE NULL END - + 68 / - 3 + - - 6 - - NULLIF ( - COUNT( * ), + + 31 ) * 76 * - 5 + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT + CASE - 30 WHEN + 1 * + - CAST ( - 54 AS REAL ) - - CAST ( - - 21 AS REAL ) THEN - 1 ELSE NULL END - + 68 / - 3 + - - 6 - - NULLIF ( - COUNT ( * ), + + 31 ) * 76 * - 5 + 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT ALL 10 * - COUNT( * ) - - 77 + 42 + - COUNT( * ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL 10 * - COUNT ( * ) - - 77 + 42 + - COUNT ( * ) AS col0
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-3434
SELECT - SUM( ALL + 21 ) * + + 85 AS col2, 80 * COUNT( * ) * - + 55
----
-1785
-4400

skipif mysql # not compatible
query II rowsort label-3434
SELECT - SUM ( ALL + 21 ) * + + 85 AS col2, 80 * COUNT ( * ) * - + 55
----
-1785
-4400

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT + ( ( + MIN( DISTINCT - 38 ) ) ) * + - 20 AS col2
----
760

skipif mysql # not compatible
query I rowsort label-3435
SELECT + ( ( + MIN ( DISTINCT - 38 ) ) ) * + - 20 AS col2
----
760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT 50 * - CAST( NULL AS SIGNED ) - - - 40 * - 13 * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT 50 * - CAST ( NULL AS INTEGER ) - - - 40 * - 13 * - 56
----
NULL

query I rowsort
SELECT ALL - 5 * + - 39
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT DISTINCT + CASE + 32 WHEN 17 - + - 99 THEN - 48 ELSE - CASE + - COUNT( * ) WHEN - 75 THEN NULL WHEN 67 THEN + 9 END + - COUNT( - 40 ) END * - 24 + COUNT( * ) + - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT + CASE + 32 WHEN 17 - + - 99 THEN - 48 ELSE - CASE + - COUNT ( * ) WHEN - 75 THEN NULL WHEN 67 THEN + 9 END + - COUNT ( - 40 ) END * - 24 + COUNT ( * ) + - 51 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3439
SELECT - CASE + + MAX( - 30 ) WHEN 41 + - 66 THEN - 80 + - + CAST( NULL AS SIGNED ) * 71 END * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT - CASE + + MAX ( - 30 ) WHEN 41 + - 66 THEN - 80 + - + CAST ( NULL AS INTEGER ) * 71 END * CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL 83 * 57 AS col0
----
4731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3441
SELECT NULLIF ( + 66, - 13 * + CASE SUM( + 88 ) WHEN + 16 + 64 - - COUNT( * ) + - AVG ( - + 66 ) * 21 THEN NULL ELSE + 3 + - 78 - + 92 END + 80 + CAST( NULL AS SIGNED ) * + 64 )
----
66

skipif mysql # not compatible
query I rowsort label-3441
SELECT NULLIF ( + 66, - 13 * + CASE SUM ( + 88 ) WHEN + 16 + 64 - - COUNT ( * ) + - AVG ( - + 66 ) * 21 THEN NULL ELSE + 3 + - 78 - + 92 END + 80 + CAST ( NULL AS INTEGER ) * + 64 )
----
66

query I rowsort
SELECT DISTINCT + ( 8 ) * 35 AS col0
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT + + SUM( ALL 17 ) + + 61 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3443
SELECT + + SUM ( ALL 17 ) + + 61 AS col2
----
78

query I rowsort
SELECT - + COALESCE ( - 77, 22, + ( - + 12 ) + + 60 + 76 ) * + 80 AS col0
----
6160

query I rowsort
SELECT ALL - ( + 44 ) * 96 + - 65 + 65 + 3 - + 72
----
-4293

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT - 80 - - NULLIF ( 82, 57 * - - COUNT( * ) ) * 42
----
3364

skipif mysql # not compatible
query I rowsort label-3446
SELECT - 80 - - NULLIF ( 82, 57 * - - COUNT ( * ) ) * 42
----
3364

query I rowsort
SELECT - 75 * + 61 + + 48 AS col2
----
-4527

query I rowsort
SELECT DISTINCT - + 43 * - 20 * + 84 + - 20
----
72220

onlyif mysql # aggregate syntax: 
query II rowsort label-3449
SELECT ( - + MIN( + 35 ) ) AS col2, 25 * - 92
----
-35
-2300

skipif mysql # not compatible
query II rowsort label-3449
SELECT ( - + MIN ( + 35 ) ) AS col2, 25 * - 92
----
-35
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT - - CASE WHEN ( - - MIN( ALL + - 69 ) IS NOT NULL ) THEN + 24 + + + CASE + 42 WHEN + 17 THEN + + COUNT( * ) END END + + 79 / + 39 * + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3450
SELECT - - CASE WHEN ( - - MIN ( ALL + - 69 ) IS NOT NULL ) THEN + 24 + + + CASE + 42 WHEN + 17 THEN + + COUNT ( * ) END END + + 79 / + 39 * + 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3451
SELECT + + 69 - NULLIF ( 75, 27 ) DIV 31 + - COALESCE ( 16, - 48 * - 82 ) * 33 + - + 92 + - 70 * + SUM( + 10 ) + - ( + 6 ) - - COUNT( * ) DIV - - 1 + - 8
----
-1266

skipif mysql # not compatible
query I rowsort label-3451
SELECT + + 69 - NULLIF ( 75, 27 ) / 31 + - COALESCE ( 16, - 48 * - 82 ) * 33 + - + 92 + - 70 * + SUM ( + 10 ) + - ( + 6 ) - - COUNT ( * ) / - - 1 + - 8
----
-1266

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT + + 16 * - CASE - - COUNT( * ) WHEN - + 39 THEN + 95 + - + 14 ELSE NULL END + - - 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT + + 16 * - CASE - - COUNT ( * ) WHEN - + 39 THEN + 95 + - + 14 ELSE NULL END + - - 10 AS col1
----
NULL

query I rowsort
SELECT - + 0 + - + 91
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3454
SELECT + 3 + + - 70, - CAST( - 68 AS SIGNED ) * - - COUNT( * ) + - 12 AS col2
----
-67
56

skipif mysql # not compatible
query II rowsort label-3454
SELECT + 3 + + - 70, - CAST ( - 68 AS INTEGER ) * - - COUNT ( * ) + - 12 AS col2
----
-67
56

query II rowsort
SELECT ALL ( - 76 ) AS col2, - 26
----
-76
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3456
SELECT DISTINCT COUNT( * ) * - + 54 DIV - ( - 85 ) * 52 * - MIN( + NULLIF ( - COALESCE ( - 69, + - 16 * - 68 + + 54 ), - + 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3456
SELECT DISTINCT COUNT ( * ) * - + 54 / - ( - 85 ) * 52 * - MIN ( + NULLIF ( - COALESCE ( - 69, + - 16 * - 68 + + 54 ), - + 0 ) )
----
0

query I rowsort
SELECT ALL 49 - - 34 col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT - COUNT( DISTINCT - 27 ) * - 60 col1
----
60

skipif mysql # not compatible
query I rowsort label-3458
SELECT - COUNT ( DISTINCT - 27 ) * - 60 col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3459
SELECT + ( + COUNT( * ) ) * - 50 DIV - NULLIF ( - + 55, + ( + + 70 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3459
SELECT + ( + COUNT ( * ) ) * - 50 / - NULLIF ( - + 55, + ( + + 70 ) ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT - COALESCE ( + 56, + + CAST( NULL AS SIGNED ) * + + 98 + 58 )
----
-56

skipif mysql # not compatible
query I rowsort label-3460
SELECT - COALESCE ( + 56, + + CAST ( NULL AS INTEGER ) * + + 98 + 58 )
----
-56

query I rowsort
SELECT + 49 + + ( - - 60 )
----
109

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3463
SELECT + ( 69 ) * - ( + + 66 ) AS col1, SUM( - - 87 ) AS col2
----
-4554
87

skipif mysql # not compatible
query II rowsort label-3463
SELECT + ( 69 ) * - ( + + 66 ) AS col1, SUM ( - - 87 ) AS col2
----
-4554
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3464
SELECT + CAST( NULL AS SIGNED ) + SUM( DISTINCT - COALESCE ( 14, - 63 ) ) - - - SUM( ALL - NULLIF ( - + 81, + 27 / - 43 ) ) - - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT + CAST ( NULL AS INTEGER ) + SUM ( DISTINCT - COALESCE ( 14, - 63 ) ) - - - SUM ( ALL - NULLIF ( - + 81, + 27 / - 43 ) ) - - 75 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 48 * + 71 AS col2
----
3408

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT 73 * COUNT( * ) + + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-3466
SELECT 73 * COUNT ( * ) + + COUNT ( * )
----
74

query I rowsort
SELECT + ( + NULLIF ( 80, 15 ) ) AS col2
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3468
SELECT + - CASE + 2 WHEN + CASE + 40 WHEN - + 33 THEN + 12 END / - ( + + 77 ) THEN 86 END / + - ( + 97 ) + - + 37 * - 97 * - - CASE - CAST( NULL AS DECIMAL ) WHEN - - 91 THEN NULL WHEN + 10 + + + 98 THEN - 1 WHEN 30 THEN NULL WHEN - + 82 THEN - 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT + - CASE + 2 WHEN + CASE + 40 WHEN - + 33 THEN + 12 END / - ( + + 77 ) THEN 86 END / + - ( + 97 ) + - + 37 * - 97 * - - CASE - CAST ( NULL AS REAL ) WHEN - - 91 THEN NULL WHEN + 10 + + + 98 THEN - 1 WHEN 30 THEN NULL WHEN - + 82 THEN - 90 END
----
NULL

query I rowsort
SELECT + - 80 * + 52 AS col1
----
-4160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT - + CAST( - + 0 AS SIGNED ) + + 30
----
30

skipif mysql # not compatible
query I rowsort label-3470
SELECT - + CAST ( - + 0 AS INTEGER ) + + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT - 27 * - 61 + - COUNT( * ) * - 47 * - 50 col0
----
-703

skipif mysql # not compatible
query I rowsort label-3471
SELECT - 27 * - 61 + - COUNT ( * ) * - 47 * - 50 col0
----
-703

query I rowsort
SELECT ALL - - 31 + + - 51 AS col2
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3473
SELECT - CASE COUNT( * ) WHEN - 79 THEN - 6 WHEN + CASE - 18 WHEN 66 * - 7 - 47 * 1 THEN - 72 + - + 33 END THEN NULL ELSE - - 30 DIV - COUNT( * ) END + - 72 + 23
----
-19

skipif mysql # not compatible
query I rowsort label-3473
SELECT - CASE COUNT ( * ) WHEN - 79 THEN - 6 WHEN + CASE - 18 WHEN 66 * - 7 - 47 * 1 THEN - 72 + - + 33 END THEN NULL ELSE - - 30 / - COUNT ( * ) END + - 72 + 23
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ALL - NULLIF ( ( + MAX( NULLIF ( + 58, + 60 ) ) ), - MIN( - 42 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL - NULLIF ( ( + MAX ( NULLIF ( + 58, + 60 ) ) ), - MIN ( - 42 ) )
----
-58

query I rowsort
SELECT ALL 38 + - - 97
----
135

query I rowsort
SELECT 6 + 46 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL + + 18 * COALESCE ( + 95, 36 + + ( COUNT( * ) ) )
----
1710

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL + + 18 * COALESCE ( + 95, 36 + + ( COUNT ( * ) ) )
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL - - 56 + MAX( ALL - - 66 )
----
122

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL - - 56 + MAX ( ALL - - 66 )
----
122

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT MIN( ALL 94 ) * 25 AS col1
----
2350

skipif mysql # not compatible
query I rowsort label-3481
SELECT MIN ( ALL 94 ) * 25 AS col1
----
2350

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3484
SELECT 22 + - CAST( NULL AS SIGNED ) - - SUM( + + 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT 22 + - CAST ( NULL AS INTEGER ) - - SUM ( + + 52 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3485
SELECT DISTINCT - 85 DIV CAST( - AVG ( ALL - + 18 ) AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT - 85 / CAST ( - AVG ( ALL - + 18 ) AS INTEGER )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3486
SELECT 65 DIV - + 27 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3486
SELECT 65 / - + 27 AS col2
----
-2

query I rowsort
SELECT ALL - 77 * - - 32 AS col2
----
-2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3488
SELECT DISTINCT - 4 DIV - - ( + SUM( - + 63 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT - 4 / - - ( + SUM ( - + 63 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3489
SELECT ALL + 49 - + + 19 + 30 DIV + + 94
----
30

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL + 49 - + + 19 + 30 / + + 94
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3490
SELECT - 66 col2, CAST( NULL AS DECIMAL ) AS col2
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-3490
SELECT - 66 col2, CAST ( NULL AS REAL ) AS col2
----
-66
NULL

query I rowsort
SELECT 55 - - + 53 + + 13
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-3492
SELECT 90 DIV - + 37
----
-2

skipif mysql # not compatible
query I rowsort label-3492
SELECT 90 / - + 37
----
-2

query I rowsort
SELECT ALL - 77 * + 43
----
-3311

query I rowsort
SELECT 61 * - + 72 AS col0
----
-4392

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT COUNT( * ) * - 98 * - 65
----
6370

skipif mysql # not compatible
query I rowsort label-3495
SELECT COUNT ( * ) * - 98 * - 65
----
6370

onlyif mysql # aggregate syntax: 
query II rowsort label-3496
SELECT COALESCE ( + 89, - 25 ) + 84 + - COUNT( * ), 98 + - 77 + - - ( - 78 ) * 66 + + - 22 col2
----
172
-5149

skipif mysql # not compatible
query II rowsort label-3496
SELECT COALESCE ( + 89, - 25 ) + 84 + - COUNT ( * ), 98 + - 77 + - - ( - 78 ) * 66 + + - 22 col2
----
172
-5149

query II rowsort
SELECT DISTINCT 94 AS col0, - 82 AS col1
----
94
-82

query II rowsort
SELECT ( + + 99 ) * - + 94 AS col1, 86 AS col2
----
-9306
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3499
SELECT 32 AS col2, + 56 * + - 43 * - COUNT( * ) * 5
----
32
12040

skipif mysql # not compatible
query II rowsort label-3499
SELECT 32 AS col2, + 56 * + - 43 * - COUNT ( * ) * 5
----
32
12040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3500
SELECT 52 * 57 + + + 78 + - 2 - CASE WHEN + 76 <> 62 THEN + + 26 - + 19 - - MAX( 62 ) + - - ( COUNT( * ) ) END * + 71 + - 64 + + 51 * - 74 + - - 40 * + - COUNT( * ) + + 17 DIV + + 12
----
-5807

skipif mysql # not compatible
query I rowsort label-3500
SELECT 52 * 57 + + + 78 + - 2 - CASE WHEN + 76 <> 62 THEN + + 26 - + 19 - - MAX ( 62 ) + - - ( COUNT ( * ) ) END * + 71 + - 64 + + 51 * - 74 + - - 40 * + - COUNT ( * ) + + 17 / + + 12
----
-5807

query I rowsort
SELECT - ( + 89 ) * - 96 * + 22 AS col1
----
187968

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT ALL MAX( DISTINCT - 80 ) + + 43 - - + 27 * - COUNT( * ) + - 8 * 69 AS col2
----
-616

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL MAX ( DISTINCT - 80 ) + + 43 - - + 27 * - COUNT ( * ) + - 8 * 69 AS col2
----
-616

query I rowsort
SELECT DISTINCT 83 + NULLIF ( - 87, + 16 * + + 13 - - 60 ) + 44 * 53
----
2328

query II rowsort
SELECT DISTINCT - + 87, 63 + - 94 - + + 73 * - + 62 * 37 AS col1
----
-87
167431

query I rowsort
SELECT DISTINCT 27 + + + 67
----
94

query I rowsort
SELECT ALL + 63 + + 3 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT DISTINCT COUNT( * ) + + + 30
----
31

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT COUNT ( * ) + + + 30
----
31

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

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT - MIN ( 86 )
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-3509
SELECT + + ( - MIN( DISTINCT - + 7 ) ) col2, 36 * - + 99 + + ( - 14 ) AS col2
----
7
-3578

skipif mysql # not compatible
query II rowsort label-3509
SELECT + + ( - MIN ( DISTINCT - + 7 ) ) col2, 36 * - + 99 + + ( - 14 ) AS col2
----
7
-3578

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT 8 * 78 + + + COALESCE ( - - 22, + + 52 * - + MAX( + + 47 ), + 71 * 43 * - + ( + 80 ) ) * COALESCE ( + 7, 69, 59 )
----
778

skipif mysql # not compatible
query I rowsort label-3510
SELECT 8 * 78 + + + COALESCE ( - - 22, + + 52 * - + MAX ( + + 47 ), + 71 * 43 * - + ( + 80 ) ) * COALESCE ( + 7, 69, 59 )
----
778

query I rowsort
SELECT 98 - + + 52
----
46

query I rowsort
SELECT - 55 + - 32 AS col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3513
SELECT 90 DIV - 74 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3513
SELECT 90 / - 74 AS col1
----
-1

query I rowsort
SELECT ALL 94 - + 2 AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3515
SELECT 77 * - 39 DIV + 13
----
-231

skipif mysql # not compatible
query I rowsort label-3515
SELECT 77 * - 39 / + 13
----
-231

query II rowsort
SELECT ALL - - 38 AS col0, 62
----
38
62

query I rowsort
SELECT + 78 + + + 62 AS col2
----
140

query I rowsort
SELECT ALL - 56 * - 78
----
4368

query I rowsort
SELECT ALL + 86 - + - 51 AS col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT - SUM( - 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-3520
SELECT - SUM ( - 18 ) AS col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3521
SELECT ALL 74 * + CASE - 99 WHEN - 49 THEN CAST( NULL AS SIGNED ) * - 72 WHEN 37 THEN - - 35 + + 46 END * - 2 * + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL 74 * + CASE - 99 WHEN - 49 THEN CAST ( NULL AS INTEGER ) * - 72 WHEN 37 THEN - - 35 + + 46 END * - 2 * + 83 AS col0
----
NULL

query I rowsort
SELECT 81 * - 53
----
-4293

query I rowsort
SELECT 84 + - 43 * - 6
----
342

query I rowsort
SELECT 64 + 52 AS col2
----
116

query I rowsort
SELECT 70 * - 33 AS col0
----
-2310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3526
SELECT 6 * - - 95 * + - CAST( ( + 85 ) AS SIGNED ) AS col1
----
-48450

skipif mysql # not compatible
query I rowsort label-3526
SELECT 6 * - - 95 * + - CAST ( ( + 85 ) AS INTEGER ) AS col1
----
-48450

query II rowsort
SELECT DISTINCT 22, 8 AS col1
----
22
8

query II rowsort
SELECT ALL 27, 59 AS col0
----
27
59

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

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

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

query I rowsort
SELECT 96 * 64 * 43
----
264192

query I rowsort
SELECT 99 + - - 24 * 49
----
1275

query II rowsort
SELECT - 87, + 97 * ( + 23 ) AS col0
----
-87
2231

query I rowsort
SELECT 9 + ( + + 77 ) * + - 61
----
-4688

onlyif mysql # DIV for integer division: 
query I rowsort label-3535
SELECT ALL - 55 DIV + - 5 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL - 55 / + - 5 AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3536
SELECT DISTINCT MIN( - + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT MIN ( - + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3537
SELECT CASE 23 WHEN 7 THEN 24 * - CAST( CASE + 80 WHEN NULLIF ( MAX( CASE - 6 WHEN - 31 THEN NULL WHEN + 2 THEN + 98 DIV 70 * - 69 END ), 74 * - + NULLIF ( - + 62, NULLIF ( - 50, - 85 * + - 19 DIV 56 * + + 12 + + + 87 ) ) + - 76 * + 73 ) + - 99 THEN + 76 WHEN 1 * 83 THEN NULL WHEN 14 * 80 THEN NULL END AS SIGNED ) - 44 + + 10 ELSE COALESCE ( + 21, ( 92 ) DIV + CASE WHEN NOT NULL >= ( - 95 ) THEN - 74 WHEN NULL IS NULL THEN NULL END ) * + COUNT( * ) END + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-3537
SELECT CASE 23 WHEN 7 THEN 24 * - CAST ( CASE + 80 WHEN NULLIF ( MAX ( CASE - 6 WHEN - 31 THEN NULL WHEN + 2 THEN + 98 / 70 * - 69 END ), 74 * - + NULLIF ( - + 62, NULLIF ( - 50, - 85 * + - 19 / 56 * + + 12 + + + 87 ) ) + - 76 * + 73 ) + - 99 THEN + 76 WHEN 1 * 83 THEN NULL WHEN 14 * 80 THEN NULL END AS INTEGER ) - 44 + + 10 ELSE COALESCE ( + 21, ( 92 ) / + CASE WHEN NOT NULL >= ( - 95 ) THEN - 74 WHEN NULL IS NULL THEN NULL END ) * + COUNT ( * ) END + COUNT ( * )
----
22

query II rowsort
SELECT 42 AS col0, + 64 * + 0 AS col1
----
42
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3540
SELECT ALL - - CAST( - 34 AS SIGNED ) + 59
----
25

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL - - CAST ( - 34 AS INTEGER ) + 59
----
25

query II rowsort
SELECT - CASE - 84 WHEN + 0 THEN NULL ELSE - + 68 END * - + 4 + 92, 64 AS col0
----
-180
64

query I rowsort
SELECT ALL + 7 * 20 + + 3 col2
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3543
SELECT + + 42 DIV 87 + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3543
SELECT + + 42 / 87 + + COUNT ( * ) col2
----
1

query I rowsort
SELECT ALL - 67 * - - 75 * - 23
----
115575

onlyif mysql # aggregate syntax: 
query II rowsort label-3545
SELECT + COUNT( * ) AS col2, - 38 * COALESCE ( 2, + 63 * 46 ) + 11 + - COALESCE ( - - 3, + SUM( 67 ), 17 ) * + 2 * + 78 * COUNT( * ) * - ( - 87 )
----
1
-40781

skipif mysql # not compatible
query II rowsort label-3545
SELECT + COUNT ( * ) AS col2, - 38 * COALESCE ( 2, + 63 * 46 ) + 11 + - COALESCE ( - - 3, + SUM ( 67 ), 17 ) * + 2 * + 78 * COUNT ( * ) * - ( - 87 )
----
1
-40781

query I rowsort
SELECT + - 56 + - ( + - 46 )
----
-10

query II rowsort
SELECT + 65, 44 AS col0
----
65
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT - - COUNT( * ) * + 26 * + - MIN( + - 99 )
----
2574

skipif mysql # not compatible
query I rowsort label-3548
SELECT - - COUNT ( * ) * + 26 * + - MIN ( + - 99 )
----
2574

query II rowsort
SELECT DISTINCT + - 27, - 66 * - 71 * - 58 AS col0
----
-27
-271788

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3550
SELECT DISTINCT + - COALESCE ( - MIN( 14 ), - + 19 DIV + 97 + 28 + - COUNT( * ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT + - COALESCE ( - MIN ( 14 ), - + 19 / + 97 + 28 + - COUNT ( * ) ) AS col1
----
14

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

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL + CAST ( + 60 AS INTEGER ) col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3552
SELECT ALL - 42 * + 60 - MAX( DISTINCT - + 81 ), - 11 + - 97 + - 97 DIV COUNT( * ) AS col2
----
-2439
-205

skipif mysql # not compatible
query II rowsort label-3552
SELECT ALL - 42 * + 60 - MAX ( DISTINCT - + 81 ), - 11 + - 97 + - 97 / COUNT ( * ) AS col2
----
-2439
-205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3553
SELECT DISTINCT + MAX( ALL - CAST( 36 AS SIGNED ) )
----
-36

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT + MAX ( ALL - CAST ( 36 AS INTEGER ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL - COUNT( ( + - 96 ) ) * + + 5 - 44
----
-49

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL - COUNT ( ( + - 96 ) ) * + + 5 - 44
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT + 98 DIV 59 DIV - ( - + 31 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3555
SELECT + 98 / 59 / - ( - + 31 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT + 62 * - - CAST( - 50 AS SIGNED )
----
-3100

skipif mysql # not compatible
query I rowsort label-3556
SELECT + 62 * - - CAST ( - 50 AS INTEGER )
----
-3100

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

skipif mysql # not compatible
query I rowsort label-3557
SELECT + SUM ( - - 91 )
----
91

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3559
SELECT + CASE + 61 WHEN - 91 + + MAX( DISTINCT 42 ) THEN NULL WHEN NULLIF ( - + 24, + NULLIF ( + + 5, + AVG ( - 23 ) ) ) + + 30 / - COUNT( * ) THEN NULLIF ( 88, 6 * - 20 + + + CASE CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) WHEN + + 57 / - COUNT( * ) THEN + 63 END * - 50 * + 84 ) * + + 68 - - 83 * CAST( + 4 AS DECIMAL ) + COUNT( DISTINCT 52 ) END / - AVG ( CAST( - COALESCE ( 52, 9 * - 84, 26 / - 77 ) AS SIGNED ) + + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3559
SELECT + CASE + 61 WHEN - 91 + + MAX ( DISTINCT 42 ) THEN NULL WHEN NULLIF ( - + 24, + NULLIF ( + + 5, + AVG ( - 23 ) ) ) + + 30 / - COUNT ( * ) THEN NULLIF ( 88, 6 * - 20 + + + CASE CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + + 57 / - COUNT ( * ) THEN + 63 END * - 50 * + 84 ) * + + 68 - - 83 * CAST ( + 4 AS REAL ) + COUNT ( DISTINCT 52 ) END / - AVG ( CAST ( - COALESCE ( 52, 9 * - 84, 26 / - 77 ) AS INTEGER ) + + 7 )
----
NULL

query I rowsort
SELECT + 14 + + 49
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3561
SELECT ALL 91 / + CAST( NULL AS SIGNED ), - 45 col1
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-3561
SELECT ALL 91 / + CAST ( NULL AS INTEGER ), - 45 col1
----
NULL
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT + COUNT( * ) + - CASE - COUNT( * ) WHEN 39 THEN 73 ELSE - 17 END + + MAX( + 6 )
----
24

skipif mysql # not compatible
query I rowsort label-3562
SELECT + COUNT ( * ) + - CASE - COUNT ( * ) WHEN 39 THEN 73 ELSE - 17 END + + MAX ( + 6 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT - COUNT( * ) + - 8 + + ( + 30 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3563
SELECT - COUNT ( * ) + - 8 + + ( + 30 ) AS col2
----
21

query II rowsort
SELECT - 1 * + 62, + ( + 3 ) AS col1
----
-62
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT DISTINCT 77 + + + 77 + + + 32 * - 33 + - COUNT( * ) AS col0, + MAX( ALL - 78 ) * - ( - 99 ) * + CASE - - 20 WHEN ( + 29 ) * - + CASE - + 0 WHEN + - 75 THEN 25 * 47 / - 79 - 59 + 35 END * 17 THEN - ( - 86 ) ELSE NULL END * 42 + + + 41
----
-903
NULL

skipif mysql # not compatible
query II rowsort label-3565
SELECT DISTINCT 77 + + + 77 + + + 32 * - 33 + - COUNT ( * ) AS col0, + MAX ( ALL - 78 ) * - ( - 99 ) * + CASE - - 20 WHEN ( + 29 ) * - + CASE - + 0 WHEN + - 75 THEN 25 * 47 / - 79 - 59 + 35 END * 17 THEN - ( - 86 ) ELSE NULL END * 42 + + + 41
----
-903
NULL

query II rowsort
SELECT - - 68 - + 50 AS col2, + ( 66 )
----
18
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT DISTINCT COALESCE ( + - 82, - COUNT( - + 14 ) ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT COALESCE ( + - 82, - COUNT ( - + 14 ) ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT ALL + - COUNT( * ) - + 36 AS col0, - 48
----
-37
-48

skipif mysql # not compatible
query II rowsort label-3568
SELECT ALL + - COUNT ( * ) - + 36 AS col0, - 48
----
-37
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3569
SELECT ALL - + CAST( NULL AS SIGNED ) * + NULLIF ( + 96, - 69 - - + MAX( - 14 ) ) * - 86 * - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL - + CAST ( NULL AS INTEGER ) * + NULLIF ( + 96, - 69 - - + MAX ( - 14 ) ) * - 86 * - 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT - - 82 * - 64 + + 7 + 99 * MAX( + + ( - + 92 ) ) AS col2
----
-14349

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT - - 82 * - 64 + + 7 + 99 * MAX ( + + ( - + 92 ) ) AS col2
----
-14349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3571
SELECT ALL COUNT( * ) DIV COUNT( * ) - + 46 * + 63 * + 46 - 52 AS col0
----
-133359

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL COUNT ( * ) / COUNT ( * ) - + 46 * + 63 * + 46 - 52 AS col0
----
-133359

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT - NULLIF ( NULLIF ( COALESCE ( + + COUNT( * ), - - 93 * + 12 * + 11 ), ( 33 ) * - 25 ), - 17 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3572
SELECT - NULLIF ( NULLIF ( COALESCE ( + + COUNT ( * ), - - 93 * + 12 * + 11 ), ( 33 ) * - 25 ), - 17 ) AS col1
----
-1

query I rowsort
SELECT - 33 - - 58
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3574
SELECT - + 42 * - - CASE + MIN( DISTINCT + 55 ) WHEN CASE + 49 WHEN + + COUNT( * ) * - - COUNT( * ) + - - 54 THEN 33 WHEN + - CASE - + 56 WHEN + - 31 / 1 + + CAST( ( 19 ) AS SIGNED ) - + NULLIF ( - ( + NULLIF ( + 10, 2 * + COUNT( * ) ) ), + - 1 ) * - SUM( - 75 ) * - 39 THEN NULL WHEN + 88 THEN NULL WHEN 83 THEN - 90 ELSE COUNT( * ) + 20 END + 32 / - 50 THEN 24 + 27 ELSE NULL END * 52 THEN NULL ELSE - 14 * - 4 END + 63 AS col1
----
-2289

skipif mysql # not compatible
query I rowsort label-3574
SELECT - + 42 * - - CASE + MIN ( DISTINCT + 55 ) WHEN CASE + 49 WHEN + + COUNT ( * ) * - - COUNT ( * ) + - - 54 THEN 33 WHEN + - CASE - + 56 WHEN + - 31 / 1 + + CAST ( ( 19 ) AS INTEGER ) - + NULLIF ( - ( + NULLIF ( + 10, 2 * + COUNT ( * ) ) ), + - 1 ) * - SUM ( - 75 ) * - 39 THEN NULL WHEN + 88 THEN NULL WHEN 83 THEN - 90 ELSE COUNT ( * ) + 20 END + 32 / - 50 THEN 24 + 27 ELSE NULL END * 52 THEN NULL ELSE - 14 * - 4 END + 63 AS col1
----
-2289

query I rowsort
SELECT ALL + + 53 * + 70
----
3710

query I rowsort
SELECT DISTINCT - + 90 * 38 AS col2
----
-3420

query I rowsort
SELECT ALL + - COALESCE ( + 46, + - ( 71 ) ) AS col0
----
-46

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

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

query I rowsort
SELECT + COALESCE ( + + 95, - 15, + 60 ) AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3580
SELECT - CASE + + 88 WHEN - 14 THEN NULL WHEN + 16 * 6 + - 49 THEN - 10 END * - + CAST( NULL AS SIGNED ) * - 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT - CASE + + 88 WHEN - 14 THEN NULL WHEN + 16 * 6 + - 49 THEN - 10 END * - + CAST ( NULL AS INTEGER ) * - 15 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT - 33 + COUNT( + 31 ) * 48 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3581
SELECT - 33 + COUNT ( + 31 ) * 48 AS col1
----
15

query I rowsort
SELECT + NULLIF ( + 11, + ( - + ( - 65 ) ) )
----
11

query I rowsort
SELECT + 15 * + - 54 AS col0
----
-810

query I rowsort
SELECT DISTINCT - 34 * - + 69 + 33 AS col2
----
2379

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3585
SELECT DISTINCT MIN( ALL - 38 ) * + 2 DIV + 80 + 84 * + 94 + - + 61
----
7835

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT MIN ( ALL - 38 ) * + 2 / + 80 + 84 * + 94 + - + 61
----
7835

onlyif mysql # DIV for integer division: 
query I rowsort label-3586
SELECT ALL + 1 * - - 82 DIV - 80 + + 76 * 87 col2
----
6611

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL + 1 * - - 82 / - 80 + + 76 * 87 col2
----
6611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3587
SELECT + CAST( NULL AS SIGNED ) * + + COUNT( * ) + + CAST( + 13 AS SIGNED ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3588
SELECT + 96 DIV + 59 * - + COUNT( * ) col0, - 6
----
-1
-6

skipif mysql # not compatible
query II rowsort label-3588
SELECT + 96 / + 59 * - + COUNT ( * ) col0, - 6
----
-1
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3589
SELECT DISTINCT 71 * + 37 * - MIN( ALL 98 ) * - 87 + + - COALESCE ( - CAST( 95 AS SIGNED ), + 0 * + 22 + + 35 * + + 0, - - 84 ) AS col0, + 46 DIV - SUM( CAST( + + 4 AS SIGNED ) ) col1
----
22397897
-11

skipif mysql # not compatible
query II rowsort label-3589
SELECT DISTINCT 71 * + 37 * - MIN ( ALL 98 ) * - 87 + + - COALESCE ( - CAST ( 95 AS INTEGER ), + 0 * + 22 + + 35 * + + 0, - - 84 ) AS col0, + 46 / - SUM ( CAST ( + + 4 AS INTEGER ) ) col1
----
22397897
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT CASE 31 WHEN - 99 THEN - 39 ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-3590
SELECT CASE 31 WHEN - 99 THEN - 39 ELSE - COUNT ( * ) END
----
-1

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

skipif mysql # not compatible
query I rowsort label-3591
SELECT - CAST ( NULL AS REAL ) * + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT DISTINCT ( NULLIF ( - ( + COUNT( * ) ), - 48 ) ) + + 55 * 44 * 83 AS col0
----
200859

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT ( NULLIF ( - ( + COUNT ( * ) ), - 48 ) ) + + 55 * 44 * 83 AS col0
----
200859

query II rowsort
SELECT - 40, - 19 AS col0
----
-40
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3594
SELECT CAST( NULL AS SIGNED ) + - + NULLIF ( - CAST( 24 AS SIGNED ), - + SUM( ALL - ( ( + 58 ) ) ) ) * 77 * + - 57 / + 79 + - 54 / 10 + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT CAST ( NULL AS INTEGER ) + - + NULLIF ( - CAST ( 24 AS INTEGER ), - + SUM ( ALL - ( ( + 58 ) ) ) ) * 77 * + - 57 / + 79 + - 54 / 10 + 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3595
SELECT ALL CAST( NULL AS SIGNED ) * + ( + + COUNT( DISTINCT - + 61 ) ) * - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL CAST ( NULL AS INTEGER ) * + ( + + COUNT ( DISTINCT - + 61 ) ) * - 0 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 59 + + 75 col0
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-3597
SELECT 34 + MAX( ( 8 ) ) - + 10 + + 64, COUNT( * ) + + 60 AS col1
----
96
61

skipif mysql # not compatible
query II rowsort label-3597
SELECT 34 + MAX ( ( 8 ) ) - + 10 + + 64, COUNT ( * ) + + 60 AS col1
----
96
61

query II rowsort
SELECT DISTINCT 98 AS col1, + ( - 43 ) AS col2
----
98
-43

query II rowsort
SELECT ALL + 71 col1, - 37 * 8
----
71
-296

query I rowsort
SELECT + 72 * - 16 AS col0
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT MIN( ALL 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3601
SELECT MIN ( ALL 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT ALL + 1 * - - COUNT( * ) * + COUNT( * ) + - 53 + + + 86 * + 94
----
8032

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL + 1 * - - COUNT ( * ) * + COUNT ( * ) + - 53 + + + 86 * + 94
----
8032

query I rowsort
SELECT 6 + + + 55 AS col2
----
61

query II rowsort
SELECT ALL 49 AS col0, 24 * - - 43 + - CASE - ( - 53 ) WHEN + - 89 * + 15 THEN + 45 ELSE NULL END
----
49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT + - 91 * - + COUNT( * ) + + 51 + - - 30 + 0 + - 82 * 98
----
-7864

skipif mysql # not compatible
query I rowsort label-3605
SELECT + - 91 * - + COUNT ( * ) + + 51 + - - 30 + 0 + - 82 * 98
----
-7864

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

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

query I rowsort
SELECT + 71 * - 20
----
-1420

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL + 24 * ( MAX( ALL + 35 ) )
----
840

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL + 24 * ( MAX ( ALL + 35 ) )
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT 45 + + 62 * + SUM( ALL - 94 )
----
-5783

skipif mysql # not compatible
query I rowsort label-3609
SELECT 45 + + 62 * + SUM ( ALL - 94 )
----
-5783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3610
SELECT ALL + NULLIF ( + 92, - - MIN( DISTINCT 98 ) * - NULLIF ( + - ( CASE - CAST( - + 47 AS SIGNED ) WHEN + COUNT( * ) - 9 THEN - - 78 END ), ( + + ( 19 ) ) ) * + 28 * NULLIF ( COUNT( * ), - - 40 + - + 47 ) + - + 89 ) * - MAX( + 80 ), 56 AS col2
----
-7360
56

skipif mysql # not compatible
query II rowsort label-3610
SELECT ALL + NULLIF ( + 92, - - MIN ( DISTINCT 98 ) * - NULLIF ( + - ( CASE - CAST ( - + 47 AS INTEGER ) WHEN + COUNT ( * ) - 9 THEN - - 78 END ), ( + + ( 19 ) ) ) * + 28 * NULLIF ( COUNT ( * ), - - 40 + - + 47 ) + - + 89 ) * - MAX ( + 80 ), 56 AS col2
----
-7360
56

query I rowsort
SELECT ALL - 75 * - 54 * - - 59
----
238950

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

skipif mysql # not compatible
query I rowsort label-3612
SELECT 74 / COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT 59 * 59 + - + 74 + COUNT( * ) AS col0
----
3408

skipif mysql # not compatible
query I rowsort label-3613
SELECT 59 * 59 + - + 74 + COUNT ( * ) AS col0
----
3408

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT 83 * - COUNT( * ) * 94
----
-7802

skipif mysql # not compatible
query I rowsort label-3614
SELECT 83 * - COUNT ( * ) * 94
----
-7802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3615
SELECT ALL + CASE COUNT( * ) WHEN - MAX( ALL + + ( CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN + 10 THEN 97 WHEN 77 THEN NULL END + + 50 col0, 87
----
NULL
87

skipif mysql # not compatible
query II rowsort label-3615
SELECT ALL + CASE COUNT ( * ) WHEN - MAX ( ALL + + ( CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN + 10 THEN 97 WHEN 77 THEN NULL END + + 50 col0, 87
----
NULL
87

query I rowsort
SELECT ALL + 87 * - ( + 37 ) col1
----
-3219

query I rowsort
SELECT ALL - 32 + - - 48
----
16

query I rowsort
SELECT DISTINCT + 41 + 11 AS col2
----
52

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

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT - 14 + + CAST ( NULL AS INTEGER ) + + 14 col2
----
NULL

query I rowsort
SELECT ALL + 60 + + + 82
----
142

query I rowsort
SELECT ALL - 96 + 93 + + + 5 * + 35 AS col1
----
172

query II rowsort
SELECT NULLIF ( + 44, 1 - + 14 + - + 96 * + 76 + - + 25 / + 88 ) * + 76, + 97 * 92 AS col2
----
3344
8924

query I rowsort
SELECT ALL + 24 * + 4 * + + 58 * + - 97
----
-540096

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

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

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

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL + ( + SUM ( + 83 ) ) * - COUNT ( * ) * + 48
----
-3984

query I rowsort
SELECT DISTINCT 18 - - 29
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT + 7 * - 41 * + - COUNT( * )
----
287

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT + 7 * - 41 * + - COUNT ( * )
----
287

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL - SUM( DISTINCT 82 ) - - + 76 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL - SUM ( DISTINCT 82 ) - - + 76 AS col1
----
-6

query I rowsort
SELECT 42 * - 12 AS col2
----
-504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3630
SELECT ALL 22 DIV + COUNT( * ) col1
----
22

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL 22 / + COUNT ( * ) col1
----
22

query I rowsort
SELECT 21 * + 80 AS col0
----
1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT - SUM( DISTINCT - 11 ) + + COALESCE ( 12, 48 ) * - 64 + COALESCE ( + CAST( ( + NULLIF ( + - COALESCE ( + - COUNT( * ), - 60 / - + COUNT( * ) + - COALESCE ( NULLIF ( + + 0, 28 ), + 49 + 78, - 93 + + 54 ) ), - CAST( NULL AS SIGNED ) + NULLIF ( 54, 64 - - + 94 * - - COUNT( * ) * + + 20 ) ) ) AS SIGNED ), 18 ) * 70 AS col2
----
-687

skipif mysql # not compatible
query I rowsort label-3632
SELECT - SUM ( DISTINCT - 11 ) + + COALESCE ( 12, 48 ) * - 64 + COALESCE ( + CAST ( ( + NULLIF ( + - COALESCE ( + - COUNT ( * ), - 60 / - + COUNT ( * ) + - COALESCE ( NULLIF ( + + 0, 28 ), + 49 + 78, - 93 + + 54 ) ), - CAST ( NULL AS INTEGER ) + NULLIF ( 54, 64 - - + 94 * - - COUNT ( * ) * + + 20 ) ) ) AS INTEGER ), 18 ) * 70 AS col2
----
-687

query I rowsort
SELECT DISTINCT ( + - 50 ) col1
----
-50

query II rowsort
SELECT ALL COALESCE ( + 53, + 41 + + 68 ) AS col0, 29 AS col0
----
53
29

query I rowsort
SELECT ALL 50 * - 13 AS col0
----
-650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3636
SELECT ALL - COALESCE ( - 55, + - NULLIF ( + 58, - + 64 ), - + 4 * + - ( + 48 ) * COUNT( * ) ) / - 45 + - ( CAST( NULL AS SIGNED ) ) + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL - COALESCE ( - 55, + - NULLIF ( + 58, - + 64 ), - + 4 * + - ( + 48 ) * COUNT ( * ) ) / - 45 + - ( CAST ( NULL AS INTEGER ) ) + - 70
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3637
SELECT MAX( ALL 5 ) + + 38 + - 40 col2, + 77 * - + NULLIF ( - 93, 85 ) + - 45 + - 6 * - - ( - 51 ) * + - 24 + 18 + - + CASE + CASE 68 WHEN - CASE + 90 WHEN - 74 + - 0 THEN - NULLIF ( - 11, - - 92 + + - 65 * 5 * - - 33 ) + + - 65 END THEN 89 ELSE 12 END WHEN - 55 / ( - 5 ) THEN 63 - + 6 END AS col1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3637
SELECT MAX ( ALL 5 ) + + 38 + - 40 col2, + 77 * - + NULLIF ( - 93, 85 ) + - 45 + - 6 * - - ( - 51 ) * + - 24 + 18 + - + CASE + CASE 68 WHEN - CASE + 90 WHEN - 74 + - 0 THEN - NULLIF ( - 11, - - 92 + + - 65 * 5 * - - 33 ) + + - 65 END THEN 89 ELSE 12 END WHEN - 55 / ( - 5 ) THEN 63 - + 6 END AS col1
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL - 28 * + + COUNT( DISTINCT + 94 ) * - + 7 + NULLIF ( + NULLIF ( + - 34, - 59 + 62 * - - 30 ), + + 82 ) + + + 45 * - 12
----
-378

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL - 28 * + + COUNT ( DISTINCT + 94 ) * - + 7 + NULLIF ( + NULLIF ( + - 34, - 59 + 62 * - - 30 ), + + 82 ) + + + 45 * - 12
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT MIN( DISTINCT + 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3639
SELECT MIN ( DISTINCT + 63 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT DISTINCT + MAX( - 40 ) * 21 * + 30 + - 64 AS col0
----
-25264

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT + MAX ( - 40 ) * 21 * + 30 + - 64 AS col0
----
-25264

query I rowsort
SELECT ALL 38 * + + 82 + - 63 AS col0
----
3053

query I rowsort
SELECT 70 * 70 + - 31 AS col0
----
4869

query I rowsort
SELECT DISTINCT + 14 * 37 + - 1 col1
----
517

query I rowsort
SELECT 91 * + 80 - + 87 AS col1
----
7193

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT 19 * 70 * + + NULLIF ( - 76, + 74 * - NULLIF ( + COUNT( * ), + 46 ) * - ( + 69 ) + + + 73 + 25 + - + ( 26 ) * - - 11 ) + NULLIF ( 15, - 49 ) * - 64
----
-102040

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT 19 * 70 * + + NULLIF ( - 76, + 74 * - NULLIF ( + COUNT ( * ), + 46 ) * - ( + 69 ) + + + 73 + 25 + - + ( 26 ) * - - 11 ) + NULLIF ( 15, - 49 ) * - 64
----
-102040

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3648
SELECT 9 DIV + - COALESCE ( - 72, - MAX( - - 61 ), + 41 ) * 15 + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3648
SELECT 9 / + - COALESCE ( - 72, - MAX ( - - 61 ), + 41 ) * 15 + + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT ALL 94 * - COUNT( * ) + - - 47 - + 32 - + 50 * + 0
----
-79

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL 94 * - COUNT ( * ) + - - 47 - + 32 - + 50 * + 0
----
-79

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

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

query I rowsort
SELECT ALL - 1 * 58 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT + 20 + + - COUNT( 73 ) + + - 42
----
-23

skipif mysql # not compatible
query I rowsort label-3652
SELECT + 20 + + - COUNT ( 73 ) + + - 42
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT 29 * 93 - SUM( ALL + 52 )
----
2645

skipif mysql # not compatible
query I rowsort label-3653
SELECT 29 * 93 - SUM ( ALL + 52 )
----
2645

query I rowsort
SELECT + 37 * + - 29 * - 30 AS col2
----
32190

query I rowsort
SELECT - 25 * - 75 + 72
----
1947

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT - COUNT( * ) * - 97 col2
----
97

skipif mysql # not compatible
query I rowsort label-3656
SELECT - COUNT ( * ) * - 97 col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT 29 * - + 29 + - COUNT( * ) + - + 79 / - 35 * SUM( - 65 ) + - 29 * - + CASE + 49 WHEN 23 / - COUNT( * ) - + 91 THEN + - 10 + 81 + 27 + + - 97 ELSE NULL END + + + 45 * + + 51 * COALESCE ( 68, + 77, + + 11 ) / - COUNT( * ) + 61 * + 38 * 98 + - 70 * + + 7 + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT 29 * - + 29 + - COUNT ( * ) + - + 79 / - 35 * SUM ( - 65 ) + - 29 * - + CASE + 49 WHEN 23 / - COUNT ( * ) - + 91 THEN + - 10 + 81 + 27 + + - 97 ELSE NULL END + + + 45 * + + 51 * COALESCE ( 68, + 77, + + 11 ) / - COUNT ( * ) + 61 * + 38 * 98 + - 70 * + + 7 + + 50
----
NULL

query I rowsort
SELECT ALL 95 * + 3 AS col0
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3659
SELECT - SUM( DISTINCT - - 74 ) + - + COALESCE ( - 74, + NULLIF ( 84, - 70 ), 65, NULLIF ( - 68, NULLIF ( + 74, + ( - NULLIF ( + + CASE - 53 WHEN COUNT( * ) THEN - - COUNT( * ) * + SUM( ALL - 90 ) + + 23 + + COUNT( * ) * 72 WHEN - 86 THEN + - CASE - CAST( NULL AS SIGNED ) WHEN 80 THEN 64 ELSE NULL END + COUNT( * ) + - - 40 + - 59 * + 94 * + 66 END, 10 + + 49 * 65 ) ) * 30 + 44 ) ) ) - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3659
SELECT - SUM ( DISTINCT - - 74 ) + - + COALESCE ( - 74, + NULLIF ( 84, - 70 ), 65, NULLIF ( - 68, NULLIF ( + 74, + ( - NULLIF ( + + CASE - 53 WHEN COUNT ( * ) THEN - - COUNT ( * ) * + SUM ( ALL - 90 ) + + 23 + + COUNT ( * ) * 72 WHEN - 86 THEN + - CASE - CAST ( NULL AS INTEGER ) WHEN 80 THEN 64 ELSE NULL END + COUNT ( * ) + - - 40 + - 59 * + 94 * + 66 END, 10 + + 49 * 65 ) ) * 30 + 44 ) ) ) - COUNT ( * )
----
-1

query II rowsort
SELECT DISTINCT NULLIF ( + 72, - - 13 ), 10 AS col0
----
72
10

query I rowsort
SELECT - 42 + + 34
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3662
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - + 58 / 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - + 58 / 66
----
NULL

query I rowsort
SELECT - 37 + + - 77 + - - 78 * - 67 AS col2
----
-5340

query I rowsort
SELECT DISTINCT - + 76 * + 51
----
-3876

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

skipif mysql # not compatible
query I rowsort label-3665
SELECT - - COUNT ( * ) * + CAST ( + 79 AS INTEGER )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3666
SELECT ALL - 56 AS col0, + CAST( - 9 AS SIGNED ) + - - 75 * + COUNT( * ) AS col0
----
-56
66

skipif mysql # not compatible
query II rowsort label-3666
SELECT ALL - 56 AS col0, + CAST ( - 9 AS INTEGER ) + - - 75 * + COUNT ( * ) AS col0
----
-56
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT - COALESCE ( COUNT( * ), + 12 ) * + 75
----
-75

skipif mysql # not compatible
query I rowsort label-3667
SELECT - COALESCE ( COUNT ( * ), + 12 ) * + 75
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT ALL - - NULLIF ( - COUNT( * ), - MIN( - 5 ) + 8 * 56 ) + - COALESCE ( - + 58, - 94 - + 48 + + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL - - NULLIF ( - COUNT ( * ), - MIN ( - 5 ) + 8 * 56 ) + - COALESCE ( - + 58, - 94 - + 48 + + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT - SUM( - + 67 ) + + 21 * - + 33
----
-626

skipif mysql # not compatible
query I rowsort label-3669
SELECT - SUM ( - + 67 ) + + 21 * - + 33
----
-626

query I rowsort
SELECT + + 71 - - 24 AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3671
SELECT ALL + COUNT( * ) + + + COALESCE ( + 89, + CAST( NULL AS SIGNED ) - + CAST( + COUNT( * ) AS SIGNED ) ) + - - 16 * + 7
----
202

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL + COUNT ( * ) + + + COALESCE ( + 89, + CAST ( NULL AS INTEGER ) - + CAST ( + COUNT ( * ) AS INTEGER ) ) + - - 16 * + 7
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT - + 11 + CASE - 82 WHEN + COUNT( * ) THEN 63 WHEN + - 85 THEN + - 72 WHEN 36 * - - 30 * + 6 THEN - 57 ELSE NULL END + - MIN( + 76 ) + + + 31 + + 80 * - 73 * + 97 * - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT - + 11 + CASE - 82 WHEN + COUNT ( * ) THEN 63 WHEN + - 85 THEN + - 72 WHEN 36 * - - 30 * + 6 THEN - 57 ELSE NULL END + - MIN ( + 76 ) + + + 31 + + 80 * - 73 * + 97 * - - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + - MAX( DISTINCT - 34 ) col2
----
34

skipif mysql # not compatible
query I rowsort label-3673
SELECT + - MAX ( DISTINCT - 34 ) col2
----
34

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3675
SELECT DISTINCT 90 DIV - - CASE + - 10 WHEN - + 77 THEN 77 * CAST( + - 80 AS SIGNED ) WHEN - 4 * - + 87 THEN NULL ELSE - CAST( - - COUNT( * ) AS SIGNED ) END + - 63 + - + ( - 1 ) * 87 col2
----
-66

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT 90 / - - CASE + - 10 WHEN - + 77 THEN 77 * CAST ( + - 80 AS INTEGER ) WHEN - 4 * - + 87 THEN NULL ELSE - CAST ( - - COUNT ( * ) AS INTEGER ) END + - 63 + - + ( - 1 ) * 87 col2
----
-66

query I rowsort
SELECT - 44 * - - 87 AS col0
----
-3828

query I rowsort
SELECT + 50 + - 73 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3678
SELECT + CASE - 87 WHEN + - CAST( NULL AS SIGNED ) * + + ( + + CASE - 11 WHEN - + 77 * + + 73 THEN NULL WHEN 58 THEN + CAST( 41 AS SIGNED ) END ) * + ( - 66 ) / + ( - 85 ) * - COUNT( + ( + 28 ) ) / COUNT( * ) * - AVG ( ALL - + 91 ) + 51 + 66 * - 53 + - - 25 - + - 70 / + + 75 + + + 81 THEN NULL WHEN - 67 * 70 THEN 44 * - AVG ( - ( - 41 ) / 37 + 9 ) ELSE - 85 END AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-3678
SELECT + CASE - 87 WHEN + - CAST ( NULL AS INTEGER ) * + + ( + + CASE - 11 WHEN - + 77 * + + 73 THEN NULL WHEN 58 THEN + CAST ( 41 AS INTEGER ) END ) * + ( - 66 ) / + ( - 85 ) * - COUNT ( + ( + 28 ) ) / COUNT ( * ) * - AVG ( ALL - + 91 ) + 51 + 66 * - 53 + - - 25 - + - 70 / + + 75 + + + 81 THEN NULL WHEN - 67 * 70 THEN 44 * - AVG ( - ( - 41 ) / 37 + 9 ) ELSE - 85 END AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3679
SELECT + CASE - 42 WHEN + 17 THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT + CASE - 42 WHEN + 17 THEN - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT 33 * - + COUNT( * ) * + 94 + + 60
----
-3042

skipif mysql # not compatible
query I rowsort label-3680
SELECT 33 * - + COUNT ( * ) * + 94 + + 60
----
-3042

query I rowsort
SELECT + 14 * + - 47 col0
----
-658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3682
SELECT DISTINCT - MAX( ALL + + 23 ) * + COALESCE ( + 61, - - CAST( + 75 AS SIGNED ), + - ( + 69 ) ) * + + 50 - - COUNT( * ) + + 28 * - 13 * + COALESCE ( 67, 63 * - 89 ) * - + ( + - 36 ) * - 95 + + 48 + - - 19 * + + 70 + + ( 25 ) * + + NULLIF ( - + 75, - CAST( NULL AS SIGNED ) ) AS col1
----
83336314

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT - MAX ( ALL + + 23 ) * + COALESCE ( + 61, - - CAST ( + 75 AS INTEGER ), + - ( + 69 ) ) * + + 50 - - COUNT ( * ) + + 28 * - 13 * + COALESCE ( 67, 63 * - 89 ) * - + ( + - 36 ) * - 95 + + 48 + - - 19 * + + 70 + + ( 25 ) * + + NULLIF ( - + 75, - CAST ( NULL AS INTEGER ) ) AS col1
----
83336314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3683
SELECT ALL + 49 * ( + COALESCE ( AVG ( + CASE - 84 WHEN CAST( + 7 AS SIGNED ) + + 32 + + CAST( NULL AS SIGNED ) * + 15 THEN - 94 END ), - - NULLIF ( - - COUNT( * ), + COUNT( * ) ) / + 8 + CAST( + - COUNT( 25 ) AS SIGNED ) + - - 59 * 71 ) ) * - + 51 - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL + 49 * ( + COALESCE ( AVG ( + CASE - 84 WHEN CAST ( + 7 AS INTEGER ) + + 32 + + CAST ( NULL AS INTEGER ) * + 15 THEN - 94 END ), - - NULLIF ( - - COUNT ( * ), + COUNT ( * ) ) / + 8 + CAST ( + - COUNT ( 25 ) AS INTEGER ) + - - 59 * 71 ) ) * - + 51 - 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3684
SELECT + 83 * + COUNT( * ), 32 AS col2
----
83
32

skipif mysql # not compatible
query II rowsort label-3684
SELECT + 83 * + COUNT ( * ), 32 AS col2
----
83
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT + CAST( 37 AS SIGNED ) col2
----
37

skipif mysql # not compatible
query I rowsort label-3685
SELECT + CAST ( 37 AS INTEGER ) col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3686
SELECT + CAST( + MAX( + - 91 ) AS SIGNED ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-3686
SELECT + CAST ( + MAX ( + - 91 ) AS INTEGER ) AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3687
SELECT ALL + SUM( + 10 ) AS col2, COUNT( * ) + - CASE COUNT( * ) WHEN - CAST( + ( 62 ) AS SIGNED ) / 99 * - 97 THEN NULL WHEN 35 * + AVG ( - 72 ) + - 27 THEN - - 89 ELSE NULL END
----
10
NULL

skipif mysql # not compatible
query II rowsort label-3687
SELECT ALL + SUM ( + 10 ) AS col2, COUNT ( * ) + - CASE COUNT ( * ) WHEN - CAST ( + ( 62 ) AS INTEGER ) / 99 * - 97 THEN NULL WHEN 35 * + AVG ( - 72 ) + - 27 THEN - - 89 ELSE NULL END
----
10
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3688
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + - CASE + 80 WHEN 15 - 85 + - 47 + COUNT( * ) THEN 62 WHEN + ( - CAST( - 36 AS SIGNED ) ) / + 15 + CASE + - 6 WHEN - 56 / - COUNT( * ) + ( CASE ( - + 39 ) WHEN - COUNT( * ) + - COUNT( * ) THEN - - AVG ( ALL - COALESCE ( - 46, 19 * 13 ) ) WHEN - - COUNT( * ) THEN NULL END ) + + - 90 THEN - 46 - - ( - 8 + - COUNT( * ) / 22 ) END + + 40 THEN NULL WHEN - COUNT( * ) THEN - 98 END + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + - CASE + 80 WHEN 15 - 85 + - 47 + COUNT ( * ) THEN 62 WHEN + ( - CAST ( - 36 AS INTEGER ) ) / + 15 + CASE + - 6 WHEN - 56 / - COUNT ( * ) + ( CASE ( - + 39 ) WHEN - COUNT ( * ) + - COUNT ( * ) THEN - - AVG ( ALL - COALESCE ( - 46, 19 * 13 ) ) WHEN - - COUNT ( * ) THEN NULL END ) + + - 90 THEN - 46 - - ( - 8 + - COUNT ( * ) / 22 ) END + + 40 THEN NULL WHEN - COUNT ( * ) THEN - 98 END + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL COALESCE ( + 91, - COUNT( * ) ) * + 24 AS col0
----
2184

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL COALESCE ( + 91, - COUNT ( * ) ) * + 24 AS col0
----
2184

query I rowsort
SELECT + 48 * 50 AS col2
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT + COALESCE ( - COUNT( * ), - 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-3691
SELECT + COALESCE ( - COUNT ( * ), - 43 )
----
-1

query I rowsort
SELECT DISTINCT - - 73 * + 19 * - 31 AS col1
----
-42997

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

query II rowsort
SELECT ALL 44 * + + 10, + 39 AS col1
----
440
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - - CASE - 17 WHEN 65 * - - 70 THEN + COUNT( * ) * - 73 * + + COUNT( * ) END - - + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT - - CASE - 17 WHEN 65 * - - 70 THEN + COUNT ( * ) * - 73 * + + COUNT ( * ) END - - + 78 AS col0
----
NULL

query II rowsort
SELECT ALL + 38, - 18 AS col0
----
38
-18

query I rowsort
SELECT - ( + NULLIF ( 54, - 40 ) ) + + 12
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3698
SELECT ALL - + 31 + + 45 + - 80 - - 27 DIV - 36 * - + 69 DIV + COUNT( * ) * - 31 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL - + 31 + + 45 + - 80 - - 27 / - 36 * - + 69 / + COUNT ( * ) * - 31 AS col0
----
-66

query I rowsort
SELECT ALL - - 6 + + 83 + - 38 - + 29 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT + - COUNT( * ) * + COUNT( + ( - 0 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3700
SELECT + - COUNT ( * ) * + COUNT ( + ( - 0 ) ) AS col1
----
-1

query I rowsort
SELECT - + 26 + + + CASE - 37 WHEN - 90 THEN NULL WHEN 37 THEN + 82 - - 80 END
----
NULL

query I rowsort
SELECT ALL - 45 + + + 81
----
36

query I rowsort
SELECT ALL + 87 + ( + 23 ) col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT - - CASE 2 WHEN SUM( + 89 ) * + 4 + COUNT( * ) * - - 12 * + 88 THEN MAX( ALL - 99 ) + + 65 WHEN - 92 * - NULLIF ( + 0, + + 10 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT - - CASE 2 WHEN SUM ( + 89 ) * + 4 + COUNT ( * ) * - - 12 * + 88 THEN MAX ( ALL - 99 ) + + 65 WHEN - 92 * - NULLIF ( + 0, + + 10 ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - ( + 78 ) col1
----
-78

query I rowsort
SELECT DISTINCT - + 64 + + 23 col1
----
-41

query I rowsort
SELECT ALL - 85 + - + 72 + + 89
----
-68

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

skipif mysql # not compatible
query II rowsort label-3708
SELECT 36 AS col0, COUNT ( * ) AS col1
----
36
1

query I rowsort
SELECT 80 - - + ( 51 )
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT 89 + + + CAST( NULL AS SIGNED ) + + 29 - + 24 * - 85 - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT 89 + + + CAST ( NULL AS INTEGER ) + + 29 - + 24 * - 85 - 89 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3711
SELECT COUNT ( * ) / - 7 * + + 78
----
0

query I rowsort
SELECT ALL - 29 - - 96
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT 8 * - + MIN( ALL 98 )
----
-784

skipif mysql # not compatible
query I rowsort label-3713
SELECT 8 * - + MIN ( ALL 98 )
----
-784

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3714
SELECT ALL COALESCE ( + 15, + + 93 ) / - 54 + + 45 + + AVG ( ALL + COALESCE ( + 37, 58 * - 89, + - 2 ) ) + - 58 * COALESCE ( + 81, 81 ) / - + CASE - MIN( + 36 ) WHEN + 73 + + COUNT( * ) THEN NULL WHEN 77 * ( + - AVG ( - + 84 ) ) THEN + ( - 80 ) / + 29 END + - - MIN( ALL - CAST( NULL AS DECIMAL ) ) - - + 14 + - 62 / - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL COALESCE ( + 15, + + 93 ) / - 54 + + 45 + + AVG ( ALL + COALESCE ( + 37, 58 * - 89, + - 2 ) ) + - 58 * COALESCE ( + 81, 81 ) / - + CASE - MIN ( + 36 ) WHEN + 73 + + COUNT ( * ) THEN NULL WHEN 77 * ( + - AVG ( - + 84 ) ) THEN + ( - 80 ) / + 29 END + - - MIN ( ALL - CAST ( NULL AS REAL ) ) - - + 14 + - 62 / - 37 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3715
SELECT - 17 * + MAX( - 7 ) - - CAST( - + 91 AS SIGNED ) * + 53 * - 40 col0, - COUNT( - 52 ) * - 76
----
193039
76

skipif mysql # not compatible
query II rowsort label-3715
SELECT - 17 * + MAX ( - 7 ) - - CAST ( - + 91 AS INTEGER ) * + 53 * - 40 col0, - COUNT ( - 52 ) * - 76
----
193039
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3716
SELECT ALL CAST( + 2 AS SIGNED ) * - - 86 + - 18 AS col1
----
154

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL CAST ( + 2 AS INTEGER ) * - - 86 + - 18 AS col1
----
154

query II rowsort
SELECT 50 * - + 41 * - 74 AS col0, - 22 AS col2
----
151700
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3718
SELECT - 66 DIV MAX( + 20 ) * 48 * SUM( DISTINCT + 89 ) + + + 74 * + ( 89 )
----
-6230

skipif mysql # not compatible
query I rowsort label-3718
SELECT - 66 / MAX ( + 20 ) * 48 * SUM ( DISTINCT + 89 ) + + + 74 * + ( 89 )
----
-6230

query I rowsort
SELECT + 79 * + 94 - - 68 col0
----
7494

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

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

query I rowsort
SELECT 33 + + 25 + - 43 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT 3 * + 86 * COUNT( * ) - - COUNT( * )
----
259

skipif mysql # not compatible
query I rowsort label-3722
SELECT 3 * + 86 * COUNT ( * ) - - COUNT ( * )
----
259

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT 40 * SUM( + - 68 ) AS col2
----
-2720

skipif mysql # not compatible
query I rowsort label-3723
SELECT 40 * SUM ( + - 68 ) AS col2
----
-2720

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT MAX( ALL + 64 ) * - - ( + COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-3724
SELECT MAX ( ALL + 64 ) * - - ( + COUNT ( * ) )
----
64

query I rowsort
SELECT DISTINCT + 65 + 1 AS col2
----
66

query I rowsort
SELECT ALL 55 + + - 2 AS col0
----
53

query I rowsort
SELECT - 99 + - 76 + - - 80
----
-95

query I rowsort
SELECT - NULLIF ( - 1, - - 85 / + + 77 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3729
SELECT ALL - ( + 56 ) DIV - + 71
----
0

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL - ( + 56 ) / - + 71
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3730
SELECT DISTINCT - NULLIF ( 44, + 79 + - MAX( + - 29 ) * 85 + - ( + SUM( 40 ) ) ) + + 61 AS col2, - 23 + - 85 + 50
----
17
-58

skipif mysql # not compatible
query II rowsort label-3730
SELECT DISTINCT - NULLIF ( 44, + 79 + - MAX ( + - 29 ) * 85 + - ( + SUM ( 40 ) ) ) + + 61 AS col2, - 23 + - 85 + 50
----
17
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT + 65 * + CASE 96 WHEN 1 / - 33 THEN + - COUNT( * ) + + COUNT( * ) WHEN - - 29 * + 24 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT + 65 * + CASE 96 WHEN 1 / - 33 THEN + - COUNT ( * ) + + COUNT ( * ) WHEN - - 29 * + 24 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - - 4 + ( + - 15 )
----
-11

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3733
SELECT ALL - CAST( NULL AS DECIMAL ) + + + 0 - 44 / + CASE 39 WHEN + - CAST( NULL AS SIGNED ) * 43 THEN NULL ELSE - - 88 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL - CAST ( NULL AS REAL ) + + + 0 - 44 / + CASE 39 WHEN + - CAST ( NULL AS INTEGER ) * 43 THEN NULL ELSE - - 88 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ALL 85 * - 32 * + COUNT( * ) * - COUNT( DISTINCT - - 5 )
----
2720

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL 85 * - 32 * + COUNT ( * ) * - COUNT ( DISTINCT - - 5 )
----
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT 28 * 26 * - + COUNT( * ) AS col1
----
-728

skipif mysql # not compatible
query I rowsort label-3735
SELECT 28 * 26 * - + COUNT ( * ) AS col1
----
-728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3736
SELECT CASE 49 WHEN 43 + + + 51 + - 69 THEN NULL ELSE - + 64 END + + + COUNT( * ) + ( - COUNT( * ) ) DIV 18 + + 21 DIV + 22 * 45 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-3736
SELECT CASE 49 WHEN 43 + + + 51 + - 69 THEN NULL ELSE - + 64 END + + + COUNT ( * ) + ( - COUNT ( * ) ) / 18 + + 21 / + 22 * 45 AS col2
----
-63

query I rowsort
SELECT 34 + + 83
----
117

query II rowsort
SELECT ALL + 97 - - 86 + + 38 AS col2, 42
----
221
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT 15 + - COUNT( * ) col2
----
14

skipif mysql # not compatible
query I rowsort label-3739
SELECT 15 + - COUNT ( * ) col2
----
14

query I rowsort
SELECT 18 * - 79 AS col2
----
-1422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3741
SELECT ALL - 98 AS col1, + NULLIF ( - + 4, 63 ) / + 97 + - COUNT( * ) - + NULLIF ( - 85, + COUNT( DISTINCT - 65 ) + - + 2 ) - + CAST( NULL AS SIGNED ) + + 89 AS col0
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-3741
SELECT ALL - 98 AS col1, + NULLIF ( - + 4, 63 ) / + 97 + - COUNT ( * ) - + NULLIF ( - 85, + COUNT ( DISTINCT - 65 ) + - + 2 ) - + CAST ( NULL AS INTEGER ) + + 89 AS col0
----
-98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT 70 * - COUNT( - 98 ) + 12
----
-58

skipif mysql # not compatible
query I rowsort label-3742
SELECT 70 * - COUNT ( - 98 ) + 12
----
-58

query I rowsort
SELECT DISTINCT + 79 * 44
----
3476

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

query I rowsort
SELECT 33 * 78
----
2574

query I rowsort
SELECT + 12 * 45 + + + 22 AS col1
----
562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3747
SELECT DISTINCT - COUNT( * ) col1, + 38 * - ( - COALESCE ( - + 3, + CAST( + CAST( - - CASE 80 WHEN SUM( 86 ) THEN - + CAST( NULL AS DECIMAL ) * + SUM( ALL - 65 ) + 32 END AS DECIMAL ) AS SIGNED ) ) ) AS col0
----
-1
-114

skipif mysql # not compatible
query II rowsort label-3747
SELECT DISTINCT - COUNT ( * ) col1, + 38 * - ( - COALESCE ( - + 3, + CAST ( + CAST ( - - CASE 80 WHEN SUM ( 86 ) THEN - + CAST ( NULL AS REAL ) * + SUM ( ALL - 65 ) + 32 END AS REAL ) AS INTEGER ) ) ) AS col0
----
-1
-114

query II rowsort
SELECT ALL - ( 22 ) + - 93, - 23 * 86 - 72 AS col0
----
-115
-2050

onlyif mysql # DIV for integer division: 
query I rowsort label-3749
SELECT DISTINCT 53 DIV + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT 53 / + 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ALL 71 + - COUNT( * ) + - + 14
----
56

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL 71 + - COUNT ( * ) + - + 14
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3751
SELECT SUM( ALL + 79 ) * - - ( - 90 ) - 16 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3751
SELECT SUM ( ALL + 79 ) * - - ( - 90 ) - 16 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT 5 + 89
----
94

query I rowsort
SELECT DISTINCT + - 14 + 7
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3755
SELECT + COALESCE ( + - 54, - - SUM( 40 ), - 54 + - 48 + MIN( + 48 ) - + + 80 DIV - 75 ) - 48 AS col2, - 86 * - 13 + + 5 + + - CAST( NULL AS SIGNED ) + + - COUNT( DISTINCT + - 1 )
----
-102
NULL

skipif mysql # not compatible
query II rowsort label-3755
SELECT + COALESCE ( + - 54, - - SUM ( 40 ), - 54 + - 48 + MIN ( + 48 ) - + + 80 / - 75 ) - 48 AS col2, - 86 * - 13 + + 5 + + - CAST ( NULL AS INTEGER ) + + - COUNT ( DISTINCT + - 1 )
----
-102
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3756
SELECT ALL - COALESCE ( CAST( - CASE + - MAX( ALL - 45 ) WHEN + SUM( DISTINCT ( - ( - 55 ) ) ) THEN + + 31 WHEN NULLIF ( + SUM( DISTINCT - 31 ), + COUNT( * ) / + - CAST( NULL AS SIGNED ) - + 46 ) - - COUNT( * ) + + 64 THEN + 65 ELSE NULL END AS SIGNED ), + 35 ) + + CAST( 96 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - COALESCE ( CAST ( - CASE + - MAX ( ALL - 45 ) WHEN + SUM ( DISTINCT ( - ( - 55 ) ) ) THEN + + 31 WHEN NULLIF ( + SUM ( DISTINCT - 31 ), + COUNT ( * ) / + - CAST ( NULL AS INTEGER ) - + 46 ) - - COUNT ( * ) + + 64 THEN + 65 ELSE NULL END AS INTEGER ), + 35 ) + + CAST ( 96 AS INTEGER )
----
61

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3758
SELECT + 14 AS col1, - 56 DIV 40 AS col0
----
14
-1

skipif mysql # not compatible
query II rowsort label-3758
SELECT + 14 AS col1, - 56 / 40 AS col0
----
14
-1

query I rowsort
SELECT ALL + 51 + - ( - - 75 ) * 12
----
-849

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT ALL - ( CASE - + 12 WHEN - COUNT( * ) THEN - 44 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL - ( CASE - + 12 WHEN - COUNT ( * ) THEN - 44 END ) AS col1
----
NULL

query I rowsort
SELECT ALL 16 - 39 * - 42
----
1654

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

query II rowsort
SELECT DISTINCT 92 AS col0, - ( + 97 ) * - 58
----
92
5626

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3765
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 94 * COUNT( - + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 94 * COUNT ( - + 67 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3766
SELECT DISTINCT 62 * - 38 * 6 * - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT 62 * - 38 * 6 * - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3767
SELECT + 73 DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-3767
SELECT + 73 / + 47
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT - NULLIF ( - 8, - COUNT( * ) / 23 - 41 )
----
8

skipif mysql # not compatible
query I rowsort label-3768
SELECT - NULLIF ( - 8, - COUNT ( * ) / 23 - 41 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3769
SELECT ALL 97 * + - 94 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL 97 * + - 94 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3770
SELECT - 43 / + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * - 98, - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3770
SELECT - 43 / + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 98, - COUNT ( * ) AS col2
----
NULL
-1

query I rowsort
SELECT + 55 - - 76 - + 61
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-3772
SELECT - COUNT( * ) * 73 col1, 71 * - 4 AS col1
----
-73
-284

skipif mysql # not compatible
query II rowsort label-3772
SELECT - COUNT ( * ) * 73 col1, 71 * - 4 AS col1
----
-73
-284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT + 31 + - CAST( NULL AS SIGNED ) - + 55 + 89 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3773
SELECT + 31 + - CAST ( NULL AS INTEGER ) - + 55 + 89 col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3775
SELECT ALL + COUNT( * ) * 5 + + + CAST( + 60 AS SIGNED ) + + CASE - + 53 WHEN + 51 THEN NULL WHEN + 84 + + 29 * + + 44 THEN NULL ELSE - - 25 END * + - 82 DIV - COUNT( * )
----
2115

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL + COUNT ( * ) * 5 + + + CAST ( + 60 AS INTEGER ) + + CASE - + 53 WHEN + 51 THEN NULL WHEN + 84 + + 29 * + + 44 THEN NULL ELSE - - 25 END * + - 82 / - COUNT ( * )
----
2115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3776
SELECT DISTINCT - 57 * + 80 + COUNT( * ) * + 74 DIV 16 + + 63 - 87 + - + 31
----
-4611

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT - 57 * + 80 + COUNT ( * ) * + 74 / 16 + + 63 - 87 + - + 31
----
-4611

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3778
SELECT ALL + 24 * + 4 DIV + ( - - COUNT( * ) ) + - 27 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL + 24 * + 4 / + ( - - COUNT ( * ) ) + - 27 AS col0
----
69

query I rowsort
SELECT DISTINCT - 74 * - 41 - - 58 * + 68 * - + 39 AS col0
----
-150782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3780
SELECT ALL - 66 * COALESCE ( - ( - 60 ), - 38 * + 28 + + - 71 - + - ( - 50 ), 35 ) + - MAX( ALL - 89 ) - + COALESCE ( - - 50, - COALESCE ( - + COUNT( * ), + COUNT( + 18 ) * - 55 ), MIN( 5 ) ) + 18 + 71 DIV COUNT( * )
----
-3832

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL - 66 * COALESCE ( - ( - 60 ), - 38 * + 28 + + - 71 - + - ( - 50 ), 35 ) + - MAX ( ALL - 89 ) - + COALESCE ( - - 50, - COALESCE ( - + COUNT ( * ), + COUNT ( + 18 ) * - 55 ), MIN ( 5 ) ) + 18 + 71 / COUNT ( * )
----
-3832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3781
SELECT - 4 * + 46 * + 9 + - CAST( - COUNT( * ) AS SIGNED )
----
-1655

skipif mysql # not compatible
query I rowsort label-3781
SELECT - 4 * + 46 * + 9 + - CAST ( - COUNT ( * ) AS INTEGER )
----
-1655

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL 24 * - - 37 * - COUNT( * ) + - 42 + + COUNT( * ) * - - 70 + 10
----
-850

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL 24 * - - 37 * - COUNT ( * ) + - 42 + + COUNT ( * ) * - - 70 + 10
----
-850

query I rowsort
SELECT - ( + 33 ) + CASE - 43 WHEN - ( + - 27 ) THEN - 93 WHEN + 35 THEN - 75 * - + 80 + - ( - 43 ) + 39 WHEN 61 THEN 69 END + - + 57 + - 44 + 7
----
NULL

query I rowsort
SELECT - 8 * - COALESCE ( 15, 51 ) - - 93 AS col1
----
213

query I rowsort
SELECT - 34 + - 20 + + - 15
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3786
SELECT - - 37 DIV - 63 - + 72 - + 74 * + - NULLIF ( + COUNT( ALL + 63 ), + + 3 )
----
2

skipif mysql # not compatible
query I rowsort label-3786
SELECT - - 37 / - 63 - + 72 - + 74 * + - NULLIF ( + COUNT ( ALL + 63 ), + + 3 )
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT ALL + NULLIF ( - - 97, + 51 * + + ( - - COUNT( * ) ) ) col2
----
97

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL + NULLIF ( - - 97, + 51 * + + ( - - COUNT ( * ) ) ) col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT - COUNT( * ) * 78 - + - COUNT( - + ( 32 ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT - COUNT ( * ) * 78 - + - COUNT ( - + ( 32 ) ) AS col2
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3790
SELECT DISTINCT - - 57 DIV 54 DIV + 99 + - + NULLIF ( + - COUNT( * ), + + ( NULLIF ( - AVG ( + + 8 ), + 55 + + + 28 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT - - 57 / 54 / + 99 + - + NULLIF ( + - COUNT ( * ), + + ( NULLIF ( - AVG ( + + 8 ), + 55 + + + 28 ) ) )
----
1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3793
SELECT ALL - + ( + 85 ) * 74 * + SUM( ALL + - 20 ) + CASE CAST( NULL AS SIGNED ) WHEN + - 69 THEN 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL - + ( + 85 ) * 74 * + SUM ( ALL + - 20 ) + CASE CAST ( NULL AS INTEGER ) WHEN + - 69 THEN 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT - COUNT( * ) * + 73 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-3794
SELECT - COUNT ( * ) * + 73 AS col0
----
-73

query I rowsort
SELECT + 6 * + 55 * + 53
----
17490

query I rowsort
SELECT - 46 + - 26
----
-72

query I rowsort
SELECT - 24 * + 8 + + 52
----
-140

query I rowsort
SELECT ALL 3 * - 6 * + 42 AS col2
----
-756

query I rowsort
SELECT + 91 + 94
----
185

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT DISTINCT CAST( 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT CAST ( 45 AS INTEGER )
----
45

query I rowsort
SELECT - 55 + + 49 AS col0
----
-6

query I rowsort
SELECT - 31 + + + 42 AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3804
SELECT + 37 + 3 * ( + CASE + 0 WHEN + 21 + + 62 THEN + - 12 + - COUNT( * ) + - + 60 + - 77 / 65 * + 93 * + 29 * 69 / + - 12 WHEN CAST( - COALESCE ( 96, - 60 ) AS DECIMAL ) * - 2 / - COUNT( * ) * - 19 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT + 37 + 3 * ( + CASE + 0 WHEN + 21 + + 62 THEN + - 12 + - COUNT ( * ) + - + 60 + - 77 / 65 * + 93 * + 29 * 69 / + - 12 WHEN CAST ( - COALESCE ( 96, - 60 ) AS REAL ) * - 2 / - COUNT ( * ) * - 19 THEN NULL END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT DISTINCT 43 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT 43 / 52
----
0

query I rowsort
SELECT + NULLIF ( + 7, + 11 ) + + 78
----
85

query I rowsort
SELECT ALL 78 * + 15 AS col2
----
1170

query I rowsort
SELECT DISTINCT 37 + - 57
----
-20

query I rowsort
SELECT ALL 95 + 41
----
136

query I rowsort
SELECT DISTINCT 7 * - 52
----
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT ALL CAST( - - 55 AS SIGNED ) + - 51 + + 8 * - 68 * 17 AS col1
----
-9244

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL CAST ( - - 55 AS INTEGER ) + - 51 + + 8 * - 68 * 17 AS col1
----
-9244

query I rowsort
SELECT DISTINCT 53 / - CASE 50 WHEN - 58 * - 8 * + 12 THEN - + 95 END + + 75 * - - 19 * - - 79 * 71 * - - 84 col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3814
SELECT COUNT( ALL - CASE + 85 WHEN - + 42 - + - 93 THEN - 15 ELSE + 10 END ) * - 89 + + NULLIF ( - - 6, + COUNT( * ) DIV + 55 ) DIV 79 * - 13 + 5 - + 92
----
-176

skipif mysql # not compatible
query I rowsort label-3814
SELECT COUNT ( ALL - CASE + 85 WHEN - + 42 - + - 93 THEN - 15 ELSE + 10 END ) * - 89 + + NULLIF ( - - 6, + COUNT ( * ) / + 55 ) / 79 * - 13 + 5 - + 92
----
-176

query I rowsort
SELECT + - 73 * + 52 + + 90 * - 69 + - 34
----
-10040

query II rowsort
SELECT DISTINCT + 15 AS col1, - 21 * + ( + 82 ) + - 60 + + 7 AS col0
----
15
-1775

onlyif mysql # DIV for integer division: 
query II rowsort label-3817
SELECT ALL 84 DIV - 3 - + 60 col2, + 23 + + - 54 AS col2
----
-88
-31

skipif mysql # not compatible
query II rowsort label-3817
SELECT ALL 84 / - 3 - + 60 col2, + 23 + + - 54 AS col2
----
-88
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3818
SELECT ALL - ( + - 52 ) * - CASE + CAST( NULL AS SIGNED ) WHEN + 63 - + ( + 9 ) THEN - SUM( - - ( + - 24 ) ) ELSE NULL END AS col0, 58
----
NULL
58

skipif mysql # not compatible
query II rowsort label-3818
SELECT ALL - ( + - 52 ) * - CASE + CAST ( NULL AS INTEGER ) WHEN + 63 - + ( + 9 ) THEN - SUM ( - - ( + - 24 ) ) ELSE NULL END AS col0, 58
----
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3819
SELECT - 54 * 55 + + CAST( 54 AS SIGNED ) * + 81 + + + SUM( DISTINCT - 85 ) - + - MAX( ALL - - 26 )
----
1345

skipif mysql # not compatible
query I rowsort label-3819
SELECT - 54 * 55 + + CAST ( 54 AS INTEGER ) * + 81 + + + SUM ( DISTINCT - 85 ) - + - MAX ( ALL - - 26 )
----
1345

query I rowsort
SELECT ALL - 12 * - 78 + 16 * - 16 * + 16 + + 88 AS col2
----
-3072

query I rowsort
SELECT 50 + + - 25
----
25

query I rowsort
SELECT 99 - - 91 - 58 AS col2
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3823
SELECT COUNT( * ) * + 48 / - 88 + + - CAST( NULL AS SIGNED ) / COUNT( * ), 6 * + CASE COALESCE ( 46, - - 3 + + 67 - 96 + + - ( - 77 ), - 33 ) WHEN + SUM( + 48 ) THEN COUNT( * ) - CAST( NULL AS SIGNED ) ELSE NULL END + - 8 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3823
SELECT COUNT ( * ) * + 48 / - 88 + + - CAST ( NULL AS INTEGER ) / COUNT ( * ), 6 * + CASE COALESCE ( 46, - - 3 + + 67 - 96 + + - ( - 77 ), - 33 ) WHEN + SUM ( + 48 ) THEN COUNT ( * ) - CAST ( NULL AS INTEGER ) ELSE NULL END + - 8 AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3824
SELECT CAST( NULL AS DECIMAL ) / - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3824
SELECT CAST ( NULL AS REAL ) / - 22
----
NULL

query II rowsort
SELECT ALL 50 AS col0, 34
----
50
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3826
SELECT 34 DIV + - 99 * - 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3826
SELECT 34 / + - 99 * - 12 AS col0
----
0

query I rowsort
SELECT 43 * 14 * + 91 col2
----
54782

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL - MIN( ALL + - 83 ) + + - 82 + ( 96 ) * - MIN( ALL + + 50 )
----
-4799

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL - MIN ( ALL + - 83 ) + + - 82 + ( 96 ) * - MIN ( ALL + + 50 )
----
-4799

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL + 20 + + SUM( - 6 ) + + 80 + - 60 + - 44 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL + 20 + + SUM ( - 6 ) + + 80 + - 60 + - 44 AS col2
----
-10

query I rowsort
SELECT 18 + 51
----
69

query III rowsort
SELECT 19 AS col2, - 52, + 87 AS col2
----
19
-52
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT MAX( + + 67 ) + 47 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-3832
SELECT MAX ( + + 67 ) + 47 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT DISTINCT + COUNT( * ) + - 82 + - 22
----
-103

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT + COUNT ( * ) + - 82 + - 22
----
-103

query I rowsort
SELECT 33 * 57 * + + 98
----
184338

query I rowsort
SELECT 69 + - + 58
----
11

query II rowsort
SELECT - 72, ( - - 89 ) AS col0
----
-72
89

query I rowsort
SELECT ALL 96 + - + 77
----
19

query I rowsort
SELECT 59 * + 67 AS col0
----
3953

onlyif mysql # DIV for integer division: 
query III rowsort label-3839
SELECT ALL 82 AS col0, - 93, ( 41 ) DIV + 23 AS col2
----
82
-93
1

skipif mysql # not compatible
query III rowsort label-3839
SELECT ALL 82 AS col0, - 93, ( 41 ) / + 23 AS col2
----
82
-93
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3840
SELECT ALL + 76 + - NULLIF ( + 96, + 55 + COUNT( * ) ) * + 61 AS col0, - 35 + + CAST( NULL AS SIGNED ) + 66 * CAST( NULL AS SIGNED ) + - 52 / COUNT( DISTINCT + 81 ) * + 83 + + 29 + + 42 AS col2
----
-5780
NULL

skipif mysql # not compatible
query II rowsort label-3840
SELECT ALL + 76 + - NULLIF ( + 96, + 55 + COUNT ( * ) ) * + 61 AS col0, - 35 + + CAST ( NULL AS INTEGER ) + 66 * CAST ( NULL AS INTEGER ) + - 52 / COUNT ( DISTINCT + 81 ) * + 83 + + 29 + + 42 AS col2
----
-5780
NULL

query I rowsort
SELECT 39 - + 92
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT MIN( - ( - 21 ) ) * - 71 + + - 28 - CAST( - 54 AS SIGNED ) + + 41
----
-1424

skipif mysql # not compatible
query I rowsort label-3842
SELECT MIN ( - ( - 21 ) ) * - 71 + + - 28 - CAST ( - 54 AS INTEGER ) + + 41
----
-1424

query II rowsort
SELECT ALL - 29, 24 col2
----
-29
24

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3845
SELECT DISTINCT 51 * - 10 * COUNT( * ) * + 0 AS col2, 46 AS col1
----
0
46

skipif mysql # not compatible
query II rowsort label-3845
SELECT DISTINCT 51 * - 10 * COUNT ( * ) * + 0 AS col2, 46 AS col1
----
0
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3846
SELECT + - 99 DIV 71 * 56 + COALESCE ( - 20, + - 66 + + 81 * + COUNT( * ) * - CASE ( + 97 ) WHEN - 48 THEN + 83 * - 72 + + 11 END + - 23 + + CAST( + - ( + 18 ) AS SIGNED ) * 53 ) + - 98 * - 80 * - + 11 AS col1
----
-86316

skipif mysql # not compatible
query I rowsort label-3846
SELECT + - 99 / 71 * 56 + COALESCE ( - 20, + - 66 + + 81 * + COUNT ( * ) * - CASE ( + 97 ) WHEN - 48 THEN + 83 * - 72 + + 11 END + - 23 + + CAST ( + - ( + 18 ) AS INTEGER ) * 53 ) + - 98 * - 80 * - + 11 AS col1
----
-86316

query II rowsort
SELECT ALL - 75 AS col2, - 75
----
-75
-75

query II rowsort
SELECT ALL - - 82 AS col0, 94 AS col2
----
82
94

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

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

query II rowsort
SELECT ALL - 55, 78 * 43 AS col1
----
-55
3354

query I rowsort
SELECT + 19 + - 23
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT + 61 * 89 + + 74 - + 29 * - MAX( 64 ) * + 52 * + 89 AS col2
----
8595071

skipif mysql # not compatible
query I rowsort label-3852
SELECT + 61 * 89 + + 74 - + 29 * - MAX ( 64 ) * + 52 * + 89 AS col2
----
8595071

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL - + COALESCE ( - MAX( DISTINCT + - 94 ), - 22 )
----
-94

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL - + COALESCE ( - MAX ( DISTINCT + - 94 ), - 22 )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3855
SELECT ALL 51 + + + 43 DIV 75
----
51

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL 51 + + + 43 / 75
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT 24 + COUNT( * ) - + 46 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3856
SELECT 24 + COUNT ( * ) - + 46 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT COALESCE ( + ( - - 62 ), - MIN( ( 32 ) ) - + + SUM( + 6 ), - 83 ) * + 65 + 73 AS col1
----
4103

skipif mysql # not compatible
query I rowsort label-3857
SELECT COALESCE ( + ( - - 62 ), - MIN ( ( 32 ) ) - + + SUM ( + 6 ), - 83 ) * + 65 + 73 AS col1
----
4103

query I rowsort
SELECT 63 + - - 3 + + 40 * 34
----
1426

query I rowsort
SELECT ALL + 7 + + 66
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT DISTINCT NULLIF ( + 77, COUNT( * ) + - 30 * NULLIF ( + 7, + 88 - + 85 ) * 31 ) * + + 35 * + 21 + - 62
----
56533

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT NULLIF ( + 77, COUNT ( * ) + - 30 * NULLIF ( + 7, + 88 - + 85 ) * 31 ) * + + 35 * + 21 + - 62
----
56533

query II rowsort
SELECT ALL - 44 + - - 78 col1, + 89 AS col0
----
34
89

query I rowsort
SELECT 49 + - + 14
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3863
SELECT DISTINCT + 71 * - + CAST( NULLIF ( 44, + 95 ) AS SIGNED )
----
-3124

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT + 71 * - + CAST ( NULLIF ( 44, + 95 ) AS INTEGER )
----
-3124

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT DISTINCT + 99 DIV 15 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + 99 / 15 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT COUNT( * ) + + + 71 + 8 * + MAX( DISTINCT 61 ) AS col0
----
560

skipif mysql # not compatible
query I rowsort label-3865
SELECT COUNT ( * ) + + + 71 + 8 * + MAX ( DISTINCT 61 ) AS col0
----
560

query II rowsort
SELECT 78 + + + 72, - 61 col0
----
150
-61

query I rowsort
SELECT DISTINCT - 0 * - 26 * + 36 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3868
SELECT ALL + 45 - - CAST( NULL AS DECIMAL ), ( - 57 ) * + 88 - + 43 * 21 AS col0
----
NULL
-5919

skipif mysql # not compatible
query II rowsort label-3868
SELECT ALL + 45 - - CAST ( NULL AS REAL ), ( - 57 ) * + 88 - + 43 * 21 AS col0
----
NULL
-5919

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3870
SELECT ALL + + CASE + CASE - + 67 WHEN 61 / - 74 + 18 * - + 95 THEN - + 67 ELSE NULL END WHEN - 83 THEN + SUM( + + 61 ) * + 83 * + 56 + + 54 * - + NULLIF ( - 44, + + ( - CAST( 35 AS SIGNED ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL + + CASE + CASE - + 67 WHEN 61 / - 74 + 18 * - + 95 THEN - + 67 ELSE NULL END WHEN - 83 THEN + SUM ( + + 61 ) * + 83 * + 56 + + 54 * - + NULLIF ( - 44, + + ( - CAST ( 35 AS INTEGER ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3871
SELECT - 22 DIV 18 + - + COUNT( * ) + - + 21 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-3871
SELECT - 22 / 18 + - + COUNT ( * ) + - + 21 AS col0
----
-23

query I rowsort
SELECT + 45 * + ( - 94 ) AS col2
----
-4230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3873
SELECT - CAST( SUM( DISTINCT + 28 ) AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-3873
SELECT - CAST ( SUM ( DISTINCT + 28 ) AS INTEGER )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT + 72 + - + COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3874
SELECT + 72 + - + COUNT ( * ) AS col1
----
71

onlyif mysql # DIV for integer division: 
query II rowsort label-3875
SELECT - 12 DIV - 14 * - 40, - 76 AS col0
----
0
-76

skipif mysql # not compatible
query II rowsort label-3875
SELECT - 12 / - 14 * - 40, - 76 AS col0
----
0
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3876
SELECT DISTINCT - - 69 * + CAST( NULL AS SIGNED ) / + - CASE + 37 WHEN 53 THEN 62 * - 91 END + + + COUNT( * ) - - + COUNT( * ) * + + 20 * + 32 * + 45 + - 78 - + + NULLIF ( + COUNT( * ), - - 74 + 58 * - COUNT( * ) + - 24 ) + - 36 / - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT - - 69 * + CAST ( NULL AS INTEGER ) / + - CASE + 37 WHEN 53 THEN 62 * - 91 END + + + COUNT ( * ) - - + COUNT ( * ) * + + 20 * + 32 * + 45 + - 78 - + + NULLIF ( + COUNT ( * ), - - 74 + 58 * - COUNT ( * ) + - 24 ) + - 36 / - 70 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3877
SELECT DISTINCT + + CAST( COUNT( * ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT + + CAST ( COUNT ( * ) AS INTEGER ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3878
SELECT + 30 DIV + - 79 * - MIN( 64 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3878
SELECT + 30 / + - 79 * - MIN ( 64 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3879
SELECT DISTINCT + CASE 54 WHEN - MIN( 15 ) THEN + SUM( + 94 ) ELSE NULL END * - 40 + - + COUNT( * ) + - + 19 * CAST( - - COUNT( * ) AS DECIMAL ) + COUNT( * ) + - 52 * COUNT( * ) * - 98 - 95 * - 24 * - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT + CASE 54 WHEN - MIN ( 15 ) THEN + SUM ( + 94 ) ELSE NULL END * - 40 + - + COUNT ( * ) + - + 19 * CAST ( - - COUNT ( * ) AS REAL ) + COUNT ( * ) + - 52 * COUNT ( * ) * - 98 - 95 * - 24 * - 57 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT DISTINCT + 86 * - 84 + - + 75 DIV 28 col2
----
-7226

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT + 86 * - 84 + - + 75 / 28 col2
----
-7226

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT SUM( ALL 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3881
SELECT SUM ( ALL 64 ) AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT + COALESCE ( - 18, CAST( NULL AS SIGNED ) )
----
-18

skipif mysql # not compatible
query I rowsort label-3882
SELECT + COALESCE ( - 18, CAST ( NULL AS INTEGER ) )
----
-18

query I rowsort
SELECT + 32 * 42
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT 57 * + COALESCE ( - SUM( - + 9 ), + 32, COUNT( + 37 ) ) * + 39 + - 66 + 43 AS col1
----
19984

skipif mysql # not compatible
query I rowsort label-3884
SELECT 57 * + COALESCE ( - SUM ( - + 9 ), + 32, COUNT ( + 37 ) ) * + 39 + - 66 + 43 AS col1
----
19984

query I rowsort
SELECT + 97 * + 79
----
7663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3886
SELECT DISTINCT 61 * - 64 + + 11 col0, COUNT( * ) / + 50 + + 62 + - CASE + 10 WHEN + 3 * COUNT( * ) THEN + + 54 WHEN - 68 * 49 * - AVG ( ALL - - CAST( NULL AS SIGNED ) ) + 95 + + 10 - COUNT( * ) THEN NULL WHEN - CASE + COUNT( * ) WHEN + 74 THEN - + 71 END + - - ( - COUNT( * ) ) THEN - 19 END * - COUNT( * ) * 77 + + + 12
----
-3893
NULL

skipif mysql # not compatible
query II rowsort label-3886
SELECT DISTINCT 61 * - 64 + + 11 col0, COUNT ( * ) / + 50 + + 62 + - CASE + 10 WHEN + 3 * COUNT ( * ) THEN + + 54 WHEN - 68 * 49 * - AVG ( ALL - - CAST ( NULL AS INTEGER ) ) + 95 + + 10 - COUNT ( * ) THEN NULL WHEN - CASE + COUNT ( * ) WHEN + 74 THEN - + 71 END + - - ( - COUNT ( * ) ) THEN - 19 END * - COUNT ( * ) * 77 + + + 12
----
-3893
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3887
SELECT + CASE - CAST( 57 AS SIGNED ) WHEN MIN( DISTINCT - 79 ) THEN NULL ELSE CASE + 25 WHEN 60 THEN + 45 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT + CASE - CAST ( 57 AS INTEGER ) WHEN MIN ( DISTINCT - 79 ) THEN NULL ELSE CASE + 25 WHEN 60 THEN + 45 ELSE NULL END END
----
NULL

query I rowsort
SELECT ALL 55 + + + 96
----
151

query I rowsort
SELECT DISTINCT 14 * - 55
----
-770

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT DISTINCT 84 - + 44 DIV - 17
----
86

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT 84 - + 44 / - 17
----
86

query II rowsort
SELECT 95 AS col1, 14 col1
----
95
14

query I rowsort
SELECT ALL 60 * 3 AS col2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT + COUNT( * ) + 38 + + NULLIF ( - - MIN( + 19 ), 70 ) * + + 42 AS col0
----
837

skipif mysql # not compatible
query I rowsort label-3893
SELECT + COUNT ( * ) + 38 + + NULLIF ( - - MIN ( + 19 ), 70 ) * + + 42 AS col0
----
837

query I rowsort
SELECT - ( 63 ) * ( - 95 )
----
5985

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3895
SELECT ALL 13 * - 28 * - 60 * COUNT( * ) DIV - - 3 AS col2
----
7280

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL 13 * - 28 * - 60 * COUNT ( * ) / - - 3 AS col2
----
7280

query II rowsort
SELECT 19, + 68 AS col1
----
19
68

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3898
SELECT ALL CASE - COUNT( * ) WHEN + COUNT( * ) THEN CAST( 42 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN CAST ( 42 AS INTEGER ) END
----
NULL

query I rowsort
SELECT + ( - 68 ) * + - 36 + ( + 77 ) AS col1
----
2525

query I rowsort
SELECT ALL 77 * + - 95 * + - 67 AS col0
----
490105

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3901
SELECT 6, + 41 * MAX( DISTINCT ( - 19 ) ) * 17 + - + COUNT( * ) DIV - + COUNT( * ) + + + COUNT( + 43 ) + + COUNT( * ) col2
----
6
-13240

skipif mysql # not compatible
query II rowsort label-3901
SELECT 6, + 41 * MAX ( DISTINCT ( - 19 ) ) * 17 + - + COUNT ( * ) / - + COUNT ( * ) + + + COUNT ( + 43 ) + + COUNT ( * ) col2
----
6
-13240

query I rowsort
SELECT + CASE + + 21 WHEN + 31 THEN 52 * - 91 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 41 * - 80 AS col2
----
3280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT ALL - - 73 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL - - 73 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3905
SELECT + MAX( DISTINCT 6 ) + + NULLIF ( - + ( 77 ), 27 ) DIV + + COALESCE ( - SUM( + 53 ), - 33, + CAST( + 87 AS SIGNED ) )
----
7

skipif mysql # not compatible
query I rowsort label-3905
SELECT + MAX ( DISTINCT 6 ) + + NULLIF ( - + ( 77 ), 27 ) / + + COALESCE ( - SUM ( + 53 ), - 33, + CAST ( + 87 AS INTEGER ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT + 74 + - 14 * - 45 * + 84 + - - MIN( 76 ) + + 56
----
53126

skipif mysql # not compatible
query I rowsort label-3906
SELECT + 74 + - 14 * - 45 * + 84 + - - MIN ( 76 ) + + 56
----
53126

query II rowsort
SELECT ALL - - 98 * + 93 + - 8, 35 * 33 AS col1
----
9106
1155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3908
SELECT - SUM( DISTINCT 57 ) + - 30 + + CAST( NULL AS SIGNED ) + + 97 + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3908
SELECT - SUM ( DISTINCT 57 ) + - 30 + + CAST ( NULL AS INTEGER ) + + 97 + + 91
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3909
SELECT - CAST( + 85 AS SIGNED ) * - 48 * - 4 col0
----
-16320

skipif mysql # not compatible
query I rowsort label-3909
SELECT - CAST ( + 85 AS INTEGER ) * - 48 * - 4 col0
----
-16320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3910
SELECT - COALESCE ( 71, + 84 ), - CASE + 90 WHEN + - 36 THEN - 71 * + 2 WHEN 45 * - - 99 - + - COALESCE ( - + 92, - + 7, + CAST( NULL AS SIGNED ) + - 89 ) - ( 14 ) THEN NULL END * COUNT( * ) col2
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-3910
SELECT - COALESCE ( 71, + 84 ), - CASE + 90 WHEN + - 36 THEN - 71 * + 2 WHEN 45 * - - 99 - + - COALESCE ( - + 92, - + 7, + CAST ( NULL AS INTEGER ) + - 89 ) - ( 14 ) THEN NULL END * COUNT ( * ) col2
----
-71
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3911
SELECT ALL + CAST( NULL AS SIGNED ) / - COUNT( * ) * - 6 / + ( COUNT( * ) ) + 53 * + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL + CAST ( NULL AS INTEGER ) / - COUNT ( * ) * - 6 / + ( COUNT ( * ) ) + 53 * + + 16
----
NULL

query II rowsort
SELECT 71 AS col2, 33 * - 77 AS col1
----
71
-2541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3913
SELECT ALL + 83 DIV + 70 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL + 83 / + 70 + COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3914
SELECT 9 * + + 0 * + 63 - - CAST( NULL AS SIGNED ) + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT 9 * + + 0 * + 63 - - CAST ( NULL AS INTEGER ) + - 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT ALL + 4 DIV 82 + 6 * 8 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL + 4 / 82 + 6 * 8 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3916
SELECT ALL NULLIF ( - 91, 23 * ( - 53 ) + - SUM( DISTINCT + 96 ) ) DIV + 79 + NULLIF ( 97, + CAST( NULL AS SIGNED ) ) + + + 82 * + 63
----
5262

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL NULLIF ( - 91, 23 * ( - 53 ) + - SUM ( DISTINCT + 96 ) ) / + 79 + NULLIF ( 97, + CAST ( NULL AS INTEGER ) ) + + + 82 * + 63
----
5262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3917
SELECT COALESCE ( 5, - COUNT( * ) + CAST( NULL AS SIGNED ) ) * + 43 + COALESCE ( + CAST( NULL AS SIGNED ), - 38, - + COALESCE ( CAST( COUNT( ALL + + NULLIF ( - - 77, 55 ) ) AS SIGNED ), + 79 * + - 43 * + 96 * - ( COUNT( 12 ) ) ) + + 51 ) - + ( + - COUNT( * ) ) + + 59
----
237

skipif mysql # not compatible
query I rowsort label-3917
SELECT COALESCE ( 5, - COUNT ( * ) + CAST ( NULL AS INTEGER ) ) * + 43 + COALESCE ( + CAST ( NULL AS INTEGER ), - 38, - + COALESCE ( CAST ( COUNT ( ALL + + NULLIF ( - - 77, 55 ) ) AS INTEGER ), + 79 * + - 43 * + 96 * - ( COUNT ( 12 ) ) ) + + 51 ) - + ( + - COUNT ( * ) ) + + 59
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT - NULLIF ( + COUNT( * ), 15 ) * - 72 * - 46 + - 91 + MIN( - 82 ) col0
----
-3485

skipif mysql # not compatible
query I rowsort label-3918
SELECT - NULLIF ( + COUNT ( * ), 15 ) * - 72 * - 46 + - 91 + MIN ( - 82 ) col0
----
-3485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3919
SELECT - 10 DIV + 77 - - + ( - 89 ) + - - COUNT( ALL - 23 ) * 71 * 90 + - 66 AS col2
----
6235

skipif mysql # not compatible
query I rowsort label-3919
SELECT - 10 / + 77 - - + ( - 89 ) + - - COUNT ( ALL - 23 ) * 71 * 90 + - 66 AS col2
----
6235

query I rowsort
SELECT + NULLIF ( + + 47, - 91 )
----
47

query I rowsort
SELECT - 17 + + 64 - - ( - + 99 ) AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3922
SELECT CAST( + + 13 AS DECIMAL ) * + MIN( + 55 ) / - 66 + - 28 - - 63 + - 86 * CASE + + CAST( - 26 AS SIGNED ) WHEN - 99 + - 11 + - + 75 * + MIN( + 62 ) THEN AVG ( DISTINCT - + 34 ) END - 32 * + 1 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT CAST ( + + 13 AS REAL ) * + MIN ( + 55 ) / - 66 + - 28 - - 63 + - 86 * CASE + + CAST ( - 26 AS INTEGER ) WHEN - 99 + - 11 + - + 75 * + MIN ( + 62 ) THEN AVG ( DISTINCT - + 34 ) END - 32 * + 1 col0
----
NULL

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

query I rowsort
SELECT DISTINCT 88 * + 67 + - - 85
----
5981

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL + CASE + 47 WHEN + 12 THEN + 32 + - 29 + - COUNT( * ) ELSE + - ( - 62 ) END AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + CASE + 47 WHEN + 12 THEN + 32 + - 29 + - COUNT ( * ) ELSE + - ( - 62 ) END AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3926
SELECT + CASE - 63 WHEN CASE - COUNT( * ) WHEN + - 34 - + COUNT( * ) THEN - MAX( - + NULLIF ( + 10, - CAST( NULL AS SIGNED ) * + 49 + + - 9 + - 9 ) ) * - 71 WHEN - - 15 THEN NULL END THEN - 52 * 23 + 66 * - + 93 + 19 + - + 98 END * 92 + + ( - 90 ) + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT + CASE - 63 WHEN CASE - COUNT ( * ) WHEN + - 34 - + COUNT ( * ) THEN - MAX ( - + NULLIF ( + 10, - CAST ( NULL AS INTEGER ) * + 49 + + - 9 + - 9 ) ) * - 71 WHEN - - 15 THEN NULL END THEN - 52 * 23 + 66 * - + 93 + 19 + - + 98 END * 92 + + ( - 90 ) + - 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3927
SELECT + CASE 78 WHEN + - CAST( NULL AS DECIMAL ) * COUNT( * ) - + - 61 THEN 73 WHEN + NULLIF ( - - 75, 15 ) * + CAST( NULL AS SIGNED ) THEN COUNT( * ) + - 47 WHEN + + 59 + + + 52 - - + COALESCE ( 55, - 21 ) * + + CAST( NULL AS DECIMAL ) THEN 30 * NULLIF ( - 29, + 29 ) * 47 - 4 + - + COALESCE ( + MAX( 0 ), - + ( - ( + 31 ) ), 22 ) + - - 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT + CASE 78 WHEN + - CAST ( NULL AS REAL ) * COUNT ( * ) - + - 61 THEN 73 WHEN + NULLIF ( - - 75, 15 ) * + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) + - 47 WHEN + + 59 + + + 52 - - + COALESCE ( 55, - 21 ) * + + CAST ( NULL AS REAL ) THEN 30 * NULLIF ( - 29, + 29 ) * 47 - 4 + - + COALESCE ( + MAX ( 0 ), - + ( - ( + 31 ) ), 22 ) + - - 53 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ALL - COUNT( + - 58 ) * - 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL - COUNT ( + - 58 ) * - 76 AS col1
----
76

query II rowsort
SELECT + ( - 25 ) AS col2, 2 + 30 AS col2
----
-25
32

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

skipif mysql # not compatible
query I rowsort label-3930
SELECT + MIN ( - + ( - 62 ) )
----
62

query I rowsort
SELECT ALL 37 * - 77
----
-2849

onlyif mysql # DIV for integer division: 
query I rowsort label-3932
SELECT - 1 DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-3932
SELECT - 1 / - 46
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT + 7 DIV - 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3933
SELECT + 7 / - 14 AS col1
----
0

query I rowsort
SELECT 17 * + 34 + + 79
----
657

onlyif mysql # DIV for integer division: 
query I rowsort label-3935
SELECT DISTINCT 30 DIV - 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT 30 / - 84 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3936
SELECT COUNT( DISTINCT 66 ), - 82 AS col0
----
1
-82

skipif mysql # not compatible
query II rowsort label-3936
SELECT COUNT ( DISTINCT 66 ), - 82 AS col0
----
1
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT + COUNT( + 28 ) + - + 73 - - 19 * 84 AS col1
----
1524

skipif mysql # not compatible
query I rowsort label-3938
SELECT + COUNT ( + 28 ) + - + 73 - - 19 * 84 AS col1
----
1524

query II rowsort
SELECT ( + + ( + 65 ) ) * + 82 AS col2, - 7 AS col0
----
5330
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3940
SELECT CAST( - + COUNT( * ) AS SIGNED ) + - + ( + 3 )
----
-4

skipif mysql # not compatible
query I rowsort label-3940
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) + - + ( + 3 )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3941
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 8 / + + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 8 / + + 50 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT DISTINCT 6 + ( - 32 ) * + ( - + CAST( + 76 AS SIGNED ) ) + - - 54 AS col0
----
2492

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT 6 + ( - 32 ) * + ( - + CAST ( + 76 AS INTEGER ) ) + - - 54 AS col0
----
2492

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL ( - MIN( + - 9 ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL ( - MIN ( + - 9 ) ) AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3944
SELECT ALL - + 46 + ( + - 8 ) - - NULLIF ( + - 36, 14 ) * - 4 * - 80 * COUNT( * ) + + + ( - CAST( 98 AS SIGNED ) )
----
-11672

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL - + 46 + ( + - 8 ) - - NULLIF ( + - 36, 14 ) * - 4 * - 80 * COUNT ( * ) + + + ( - CAST ( 98 AS INTEGER ) )
----
-11672

query I rowsort
SELECT DISTINCT - 2 + + 26 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT DISTINCT COUNT( 46 ) + - 88
----
-87

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT COUNT ( 46 ) + - 88
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL - - SUM( DISTINCT - 15 ) + MIN( - + 81 ) - + - 46 * - 4 AS col2
----
-280

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL - - SUM ( DISTINCT - 15 ) + MIN ( - + 81 ) - + - 46 * - 4 AS col2
----
-280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3948
SELECT - 21 + 25 * - COALESCE ( - 93, + 64 * 17, 50 DIV 61 + + 62 + + COUNT( * ) )
----
2304

skipif mysql # not compatible
query I rowsort label-3948
SELECT - 21 + 25 * - COALESCE ( - 93, + 64 * 17, 50 / 61 + + 62 + + COUNT ( * ) )
----
2304

query I rowsort
SELECT ALL 91 + - - 88 + - - 45
----
224

query I rowsort
SELECT - 35 * + + 29
----
-1015

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3951
SELECT DISTINCT - + 4 DIV 24 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT - + 4 / 24 + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3952
SELECT ALL - 8 + CAST( - - ( 44 ) AS SIGNED ) + - - COUNT( DISTINCT 31 ) + - 41 + CASE + + 65 WHEN + 41 + 71 / 92 THEN 73 - + 6 - + 46 ELSE NULL END + + + 36 * CAST( NULL AS SIGNED ) + COALESCE ( + ( - 54 ), - 93 * + COUNT( * ) + - 17 * - 45 - + 75 + - + 93 + 69 ) + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL - 8 + CAST ( - - ( 44 ) AS INTEGER ) + - - COUNT ( DISTINCT 31 ) + - 41 + CASE + + 65 WHEN + 41 + 71 / 92 THEN 73 - + 6 - + 46 ELSE NULL END + + + 36 * CAST ( NULL AS INTEGER ) + COALESCE ( + ( - 54 ), - 93 * + COUNT ( * ) + - 17 * - 45 - + 75 + - + 93 + 69 ) + + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT + 1 * - SUM( - - ( - + 19 ) ) * + 71 + - 40 - + 29 * + 40
----
149

skipif mysql # not compatible
query I rowsort label-3953
SELECT + 1 * - SUM ( - - ( - + 19 ) ) * + 71 + - 40 - + 29 * + 40
----
149

query I rowsort
SELECT ALL + 17 * + - 20 AS col0
----
-340

query I rowsort
SELECT ALL - - 78 - 78 AS col1
----
0

query I rowsort
SELECT DISTINCT + 3 * + 98 AS col1
----
294

query I rowsort
SELECT DISTINCT + 76 - - 54
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3958
SELECT + 55 AS col0, - CAST( - 77 AS SIGNED ) - - NULLIF ( + COUNT( * ), + 1 ) / - - 50 * 3
----
55
NULL

skipif mysql # not compatible
query II rowsort label-3958
SELECT + 55 AS col0, - CAST ( - 77 AS INTEGER ) - - NULLIF ( + COUNT ( * ), + 1 ) / - - 50 * 3
----
55
NULL

query I rowsort
SELECT DISTINCT - 3 * + - 78
----
234

query I rowsort
SELECT 43 * 55 AS col2
----
2365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3961
SELECT 78 * + CAST( - 71 AS SIGNED )
----
-5538

skipif mysql # not compatible
query I rowsort label-3961
SELECT 78 * + CAST ( - 71 AS INTEGER )
----
-5538

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT ALL - COALESCE ( 66, - MIN( - 89 ) ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL - COALESCE ( 66, - MIN ( - 89 ) ) AS col0
----
-66

query II rowsort
SELECT 50 AS col1, 18 * - 88
----
50
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT COALESCE ( SUM( DISTINCT + + 90 ), - - 28 * - 86 * + - COALESCE ( - + ( + 92 ), - + 16, - + 48 ) ) * - 92 + - 17 + 61 * - 92 * + 74 * 76
----
-31570185

skipif mysql # not compatible
query I rowsort label-3964
SELECT COALESCE ( SUM ( DISTINCT + + 90 ), - - 28 * - 86 * + - COALESCE ( - + ( + 92 ), - + 16, - + 48 ) ) * - 92 + - 17 + 61 * - 92 * + 74 * 76
----
-31570185

query II rowsort
SELECT 68 * - ( + 46 ) col0, - 46
----
-3128
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT 24 * + COUNT( 41 ) * 57
----
1368

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT 24 * + COUNT ( 41 ) * 57
----
1368

query II rowsort
SELECT ALL - 48 AS col1, 78 * + 50 AS col0
----
-48
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT CASE 85 WHEN - 7 THEN MAX( - 13 ) + + 22 ELSE - 97 END - ( - COUNT( * ) )
----
-96

skipif mysql # not compatible
query I rowsort label-3968
SELECT CASE 85 WHEN - 7 THEN MAX ( - 13 ) + + 22 ELSE - 97 END - ( - COUNT ( * ) )
----
-96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3970
SELECT - 92 AS col2, 50 + + - COUNT( * ) + - 88 * + + CAST( NULL AS SIGNED ) * 11 AS col2
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-3970
SELECT - 92 AS col2, 50 + + - COUNT ( * ) + - 88 * + + CAST ( NULL AS INTEGER ) * 11 AS col2
----
-92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT ALL 23 + ( + COUNT( * ) ) - - 25 + 25 * - - 58 * 82 AS col0
----
118949

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL 23 + ( + COUNT ( * ) ) - - 25 + 25 * - - 58 * 82 AS col0
----
118949

query I rowsort
SELECT + 42 * + 81 + + 25 * + 51 * 23 AS col2
----
32727

query I rowsort
SELECT ( + 69 ) * + 41 + - - 43 AS col1
----
2872

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL 95 + + COALESCE ( - 14, + + COUNT( * ) )
----
81

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL 95 + + COALESCE ( - 14, + + COUNT ( * ) )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT - + CAST( + - 93 AS SIGNED ) col2
----
93

skipif mysql # not compatible
query I rowsort label-3976
SELECT - + CAST ( + - 93 AS INTEGER ) col2
----
93

query I rowsort
SELECT ALL 22 + 30 AS col2
----
52

query I rowsort
SELECT - 92 * - + 68 * + 75 + - 35 AS col1
----
469165

query II rowsort
SELECT ALL 61 + + ( - 38 ) AS col1, ( 1 ) col2
----
23
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3980
SELECT DISTINCT + 40 + + COUNT( * ) * - 88 DIV - 74 + SUM( ALL 16 ), + 98 * + + 3 col0
----
57
294

skipif mysql # not compatible
query II rowsort label-3980
SELECT DISTINCT + 40 + + COUNT ( * ) * - 88 / - 74 + SUM ( ALL 16 ), + 98 * + + 3 col0
----
57
294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3981
SELECT ALL + NULLIF ( - COUNT( * ), + + COALESCE ( - 68, 18 * + 0 + + COUNT( * ) + + MIN( ALL 2 ) + - CAST( + 39 AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL + NULLIF ( - COUNT ( * ), + + COALESCE ( - 68, 18 * + 0 + + COUNT ( * ) + + MIN ( ALL 2 ) + - CAST ( + 39 AS INTEGER ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT COUNT( * ) AS col1, 67 * + 8 * - 30
----
1
-16080

skipif mysql # not compatible
query II rowsort label-3982
SELECT COUNT ( * ) AS col1, 67 * + 8 * - 30
----
1
-16080

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL COUNT( 22 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL COUNT ( 22 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT + MIN( - 12 ) + - 56 + - 96 AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-3984
SELECT + MIN ( - 12 ) + - 56 + - 96 AS col0
----
-164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT COALESCE ( + - 1, + - CAST( - 96 AS SIGNED ) * 40 ) * + 95 * - - 34 AS col0
----
-3230

skipif mysql # not compatible
query I rowsort label-3985
SELECT COALESCE ( + - 1, + - CAST ( - 96 AS INTEGER ) * 40 ) * + 95 * - - 34 AS col0
----
-3230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT - 94 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT - 94 * CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL - + CAST ( - + 58 AS INTEGER ) AS col1
----
58

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3989
SELECT - 43 DIV 87 + CAST( ( + AVG ( - 63 ) ) AS SIGNED ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3989
SELECT - 43 / 87 + CAST ( ( + AVG ( - 63 ) ) AS INTEGER ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL - - COUNT( 52 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL - - COUNT ( 52 ) col2
----
1

query I rowsort
SELECT ALL - ( ( 75 ) )
----
-75

query II rowsort
SELECT ALL - 33 col1, 58 * - + 86
----
-33
-4988

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT - 67 * + + COUNT( * ) + - 88 * 22 + + COUNT( * ) + - ( - 27 ) * + 65 * - + 41 + 1
----
-73956

skipif mysql # not compatible
query I rowsort label-3993
SELECT - 67 * + + COUNT ( * ) + - 88 * 22 + + COUNT ( * ) + - ( - 27 ) * + 65 * - + 41 + 1
----
-73956

onlyif mysql # DIV for integer division: 
query I rowsort label-3994
SELECT 78 DIV - 83 col2
----
0

skipif mysql # not compatible
query I rowsort label-3994
SELECT 78 / - 83 col2
----
0

query II rowsort
SELECT ALL - 17 col0, 38 * + 54 AS col1
----
-17
2052

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

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

query I rowsort
SELECT ( - 68 ) + - - 54 AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3998
SELECT ( - 51 ) DIV + CAST( + 44 AS SIGNED ) + + SUM( DISTINCT - 36 ), 52 AS col0
----
-37
52

skipif mysql # not compatible
query II rowsort label-3998
SELECT ( - 51 ) / + CAST ( + 44 AS INTEGER ) + + SUM ( DISTINCT - 36 ), 52 AS col0
----
-37
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT ALL 1 DIV - + 12 * 18
----
0

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL 1 / - + 12 * 18
----
0

query II rowsort
SELECT ALL - 7 col1, 14 col2
----
-7
14

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

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

query I rowsort
SELECT DISTINCT - 36 + 37 + - + 27 - + 95 * - 90 * 28
----
239374

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT - COUNT( * ) + - - 74 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4003
SELECT - COUNT ( * ) + - - 74 AS col0
----
73

query I rowsort
SELECT - 42 * + - 46
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL - 55 + ( + MIN( ALL + 58 ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL - 55 + ( + MIN ( ALL + 58 ) ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4006
SELECT + 87 AS col1, + 62 + + COALESCE ( + 46, ( - 18 ) * - + CASE + 3 WHEN 97 * 92 + - - ( + ( NULLIF ( - + COUNT( ALL 61 ), + + 25 ) ) ) THEN + 45 + + 7 END )
----
87
108

skipif mysql # not compatible
query II rowsort label-4006
SELECT + 87 AS col1, + 62 + + COALESCE ( + 46, ( - 18 ) * - + CASE + 3 WHEN 97 * 92 + - - ( + ( NULLIF ( - + COUNT ( ALL 61 ), + + 25 ) ) ) THEN + 45 + + 7 END )
----
87
108

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

skipif mysql # not compatible
query I rowsort label-4007
SELECT - CAST ( NULL AS INTEGER ) + + 43 AS col2
----
NULL

query I rowsort
SELECT 92 * + 76 + - 55 AS col1
----
6937

query I rowsort
SELECT - 12 * - - 6 AS col2
----
-72

query II rowsort
SELECT 16 AS col2, + 67 AS col2
----
16
67

query I rowsort
SELECT DISTINCT + 24 + 38 + + 70 + - ( - - ( - 96 ) ) - + 29 - - 14 * 40 + + + 58 * + 56 * + 27 AS col2
----
88455

query I rowsort
SELECT ALL 6 + + + 30 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT + - MIN( ALL - 71 ) + - 98 * 21 * + - NULLIF ( + 95, - 40 * + + 12 ) AS col1
----
195581

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT + - MIN ( ALL - 71 ) + - 98 * 21 * + - NULLIF ( + 95, - 40 * + + 12 ) AS col1
----
195581

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4014
SELECT - - 22 + 66 DIV + MIN( DISTINCT 40 )
----
23

skipif mysql # not compatible
query I rowsort label-4014
SELECT - - 22 + 66 / + MIN ( DISTINCT 40 )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4015
SELECT + + 47 + 53 DIV 24
----
49

skipif mysql # not compatible
query I rowsort label-4015
SELECT + + 47 + 53 / 24
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT - 56 * + COUNT( * ) + - 53 col1
----
-109

skipif mysql # not compatible
query I rowsort label-4016
SELECT - 56 * + COUNT ( * ) + - 53 col1
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4017
SELECT ALL 9 - + + 27 * 3 * + - CAST( + ( - MIN( ( 80 ) ) ) AS SIGNED ) AS col0
----
-6471

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL 9 - + + 27 * 3 * + - CAST ( + ( - MIN ( ( 80 ) ) ) AS INTEGER ) AS col0
----
-6471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4018
SELECT DISTINCT + + 45 - - + COUNT( * ) + + NULLIF ( - 23, + CASE 91 WHEN + 25 + - 73 THEN NULL ELSE + 83 END * + + 94 * - 39 * + 5 + - 6 + - 72 ) + + 12 * CAST( NULL AS SIGNED ) col2, 82 + 80 * - ( + + 55 ) AS col1
----
NULL
-4318

skipif mysql # not compatible
query II rowsort label-4018
SELECT DISTINCT + + 45 - - + COUNT ( * ) + + NULLIF ( - 23, + CASE 91 WHEN + 25 + - 73 THEN NULL ELSE + 83 END * + + 94 * - 39 * + 5 + - 6 + - 72 ) + + 12 * CAST ( NULL AS INTEGER ) col2, 82 + 80 * - ( + + 55 ) AS col1
----
NULL
-4318

query II rowsort
SELECT DISTINCT - 92 col2, + 88
----
-92
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT + MAX( - 78 ) * + 9
----
-702

skipif mysql # not compatible
query I rowsort label-4021
SELECT + MAX ( - 78 ) * + 9
----
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT + CASE - + COUNT( * ) WHEN - 74 THEN - 36 * + - 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT + CASE - + COUNT ( * ) WHEN - 74 THEN - 36 * + - 46 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4023
SELECT ( - 29 ) AS col2, + 15 + + COUNT( * ) * - 16 AS col2
----
-29
-1

skipif mysql # not compatible
query II rowsort label-4023
SELECT ( - 29 ) AS col2, + 15 + + COUNT ( * ) * - 16 AS col2
----
-29
-1

query II rowsort
SELECT ALL 14 * - 17 AS col1, + 98
----
-238
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT + COALESCE ( - MIN( ALL + 70 ), + NULLIF ( 85, + 60 + + COUNT( 4 ) * 12 ) - - 26 + + + 72 + 64 * + ( + 5 ), - COUNT( * ) )
----
-70

skipif mysql # not compatible
query I rowsort label-4026
SELECT + COALESCE ( - MIN ( ALL + 70 ), + NULLIF ( 85, + 60 + + COUNT ( 4 ) * 12 ) - - 26 + + + 72 + 64 * + ( + 5 ), - COUNT ( * ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL 75 * - - 11 + - - COUNT( * )
----
826

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL 75 * - - 11 + - - COUNT ( * )
----
826

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL - MAX( ALL - + 93 ) * - 99 + - 16 + - 36 * - + 60 - + 57 AS col1
----
-7120

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL - MAX ( ALL - + 93 ) * - 99 + - 16 + - 36 * - + 60 - + 57 AS col1
----
-7120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT + CAST( NULL AS SIGNED ) * - 19 * - 25 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT + CAST ( NULL AS INTEGER ) * - 19 * - 25 * - COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL 12 * + CASE 48 WHEN - + COUNT( * ) THEN + 70 * - 26 * 24 - 15 WHEN 97 THEN 22 * - ( - 39 ) * + 61 * + ( + COUNT( * ) ) + + 77 ELSE NULL END + SUM( DISTINCT - 75 ) + - ( - COUNT( * ) ) + - 13 + + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL 12 * + CASE 48 WHEN - + COUNT ( * ) THEN + 70 * - 26 * 24 - 15 WHEN 97 THEN 22 * - ( - 39 ) * + 61 * + ( + COUNT ( * ) ) + + 77 ELSE NULL END + SUM ( DISTINCT - 75 ) + - ( - COUNT ( * ) ) + - 13 + + - 30
----
NULL

query I rowsort
SELECT ALL 81 * - - 47 * - 2 + + 60 * - 0 AS col0
----
-7614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4033
SELECT + CAST( + 48 AS SIGNED ) + - - 42 * 49 + + ( + COUNT( * ) ) - - 10 * + - 87
----
1237

skipif mysql # not compatible
query I rowsort label-4033
SELECT + CAST ( + 48 AS INTEGER ) + - - 42 * 49 + + ( + COUNT ( * ) ) - - 10 * + - 87
----
1237

query I rowsort
SELECT - 94 * 59
----
-5546

query II rowsort
SELECT - 49 * - 58 + 54 * - 94 + - - 49 AS col2, 3 + + 71
----
-2185
74

query I rowsort
SELECT NULLIF ( + 44, - 98 )
----
44

query I rowsort
SELECT DISTINCT + 78 * - - ( - 88 ) * COALESCE ( - 19, - 54 + + COALESCE ( - 21, + ( + 11 ), + 26 ) ) - + + 30
----
130386

query I rowsort
SELECT ALL + 63 * + - 70 + + + 46
----
-4364

query II rowsort
SELECT + 51 * 81 AS col1, + 46
----
4131
46

onlyif mysql # aggregate syntax: 
query II rowsort label-4040
SELECT - - SUM( - 74 ) - COUNT( * ) * 80 + COUNT( * ) AS col2, - NULLIF ( 78, + 59 )
----
-153
-78

skipif mysql # not compatible
query II rowsort label-4040
SELECT - - SUM ( - 74 ) - COUNT ( * ) * 80 + COUNT ( * ) AS col2, - NULLIF ( 78, + 59 )
----
-153
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4041
SELECT SUM( DISTINCT 92 ), + 22 * - CAST( NULL AS SIGNED ) * - COUNT( * ) * 75 * - 45 + - 73 AS col0
----
92
NULL

skipif mysql # not compatible
query II rowsort label-4041
SELECT SUM ( DISTINCT 92 ), + 22 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 75 * - 45 + - 73 AS col0
----
92
NULL

query I rowsort
SELECT - + 93 + 65 col2
----
-28

query I rowsort
SELECT + 27 - COALESCE ( 13, - 63 ) - + 37
----
-23

query II rowsort
SELECT + + 7 * + - 18 AS col2, 75 * ( + 74 ) AS col1
----
-126
5550

query I rowsort
SELECT - 10 * - 58 + 73
----
653

query I rowsort
SELECT - ( - 57 ) * - 57
----
-3249

onlyif mysql # aggregate syntax: 
query II rowsort label-4047
SELECT ALL + 30 * + 60, + COUNT( * ) AS col2
----
1800
1

skipif mysql # not compatible
query II rowsort label-4047
SELECT ALL + 30 * + 60, + COUNT ( * ) AS col2
----
1800
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4048
SELECT - - CAST( NULL AS SIGNED ) - + COUNT( * ) AS col2, COUNT( * ) DIV - + 41
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4048
SELECT - - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2, COUNT ( * ) / - + 41
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4049
SELECT - MAX( + 9 ), 99 AS col1
----
-9
99

skipif mysql # not compatible
query II rowsort label-4049
SELECT - MAX ( + 9 ), 99 AS col1
----
-9
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4050
SELECT - 56 + - + NULLIF ( - 30, 91 * - - 35 * 3 ) + + COUNT( DISTINCT + 74 ) + + CAST( NULL AS SIGNED ) * + 54 + CAST( - - 86 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT - 56 + - + NULLIF ( - 30, 91 * - - 35 * 3 ) + + COUNT ( DISTINCT + 74 ) + + CAST ( NULL AS INTEGER ) * + 54 + CAST ( - - 86 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4051
SELECT + CAST( COUNT( * ) AS SIGNED ) * + 76 * + + 7 AS col1
----
532

skipif mysql # not compatible
query I rowsort label-4051
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * + 76 * + + 7 AS col1
----
532

query I rowsort
SELECT - COALESCE ( + ( 3 ), + + 49 ) + 50 AS col0
----
47

query II rowsort
SELECT + 9 AS col2, + 14 - + 64 - NULLIF ( + 13, + - 37 ) AS col0
----
9
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT DISTINCT - 9 + + 41 * ( - - COUNT( * ) )
----
32

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT - 9 + + 41 * ( - - COUNT ( * ) )
----
32

query I rowsort
SELECT - 96 * - 5 + + + 31 + + 77 AS col2
----
588

onlyif mysql # aggregate syntax: 
query II rowsort label-4056
SELECT 47, - MIN( DISTINCT + + 45 ) * + 39 AS col1
----
47
-1755

skipif mysql # not compatible
query II rowsort label-4056
SELECT 47, - MIN ( DISTINCT + + 45 ) * + 39 AS col1
----
47
-1755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4057
SELECT 0 * CAST( COUNT( * ) AS SIGNED ) + + ( 25 )
----
25

skipif mysql # not compatible
query I rowsort label-4057
SELECT 0 * CAST ( COUNT ( * ) AS INTEGER ) + + ( 25 )
----
25

query II rowsort
SELECT ALL - 58, + 95 AS col2
----
-58
95

query II rowsort
SELECT + 32 AS col1, ( - ( - 52 ) ) * - 90 - - + 31 + + + 12
----
32
-4637

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4060
SELECT - 45 DIV + + 8 + MIN( ALL - 22 ) + 76 * - 79
----
-6031

skipif mysql # not compatible
query I rowsort label-4060
SELECT - 45 / + + 8 + MIN ( ALL - 22 ) + 76 * - 79
----
-6031

onlyif mysql # aggregate syntax: 
query II rowsort label-4061
SELECT 60 AS col1, 16 * + + COUNT( * ) AS col1
----
60
16

skipif mysql # not compatible
query II rowsort label-4061
SELECT 60 AS col1, 16 * + + COUNT ( * ) AS col1
----
60
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT ALL MAX( ALL + - 99 ) + + - 74
----
-173

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL MAX ( ALL + - 99 ) + + - 74
----
-173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4063
SELECT CAST( NULL AS SIGNED ) * + 91 + ( + 87 ) * 63 + COUNT( * ) col0, 11 + - 24 + + 70 * + 29 AS col0
----
NULL
2017

skipif mysql # not compatible
query II rowsort label-4063
SELECT CAST ( NULL AS INTEGER ) * + 91 + ( + 87 ) * 63 + COUNT ( * ) col0, 11 + - 24 + + 70 * + 29 AS col0
----
NULL
2017

onlyif mysql # DIV for integer division: 
query II rowsort label-4064
SELECT ALL - - 88 AS col1, 71 DIV - + 36
----
88
-1

skipif mysql # not compatible
query II rowsort label-4064
SELECT ALL - - 88 AS col1, 71 / - + 36
----
88
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4065
SELECT + 11 + - - COUNT( * ) + 46 * - 72 + + + 41 DIV + COUNT( * ) + + COUNT( * ) AS col1
----
-3258

skipif mysql # not compatible
query I rowsort label-4065
SELECT + 11 + - - COUNT ( * ) + 46 * - 72 + + + 41 / + COUNT ( * ) + + COUNT ( * ) AS col1
----
-3258

query I rowsort
SELECT 12 * - 67 AS col0
----
-804

query I rowsort
SELECT 56 * - - 1 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT + CASE + 93 WHEN - COUNT( * ) + + ( + 26 ) THEN - - 4 * 58 END - - 2 + + 45 + 73 + - - COUNT( - - 33 ) + - SUM( DISTINCT + 34 ) * + 5 * + - COUNT( * ) / + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT + CASE + 93 WHEN - COUNT ( * ) + + ( + 26 ) THEN - - 4 * 58 END - - 2 + + 45 + 73 + - - COUNT ( - - 33 ) + - SUM ( DISTINCT + 34 ) * + 5 * + - COUNT ( * ) / + 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT ALL - COALESCE ( + COUNT( * ), - 1 * + - 40, NULLIF ( 17, - 54 * - - 20 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL - COALESCE ( + COUNT ( * ), - 1 * + - 40, NULLIF ( 17, - 54 * - - 20 ) )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4070
SELECT - - 54 * 91 + - 47 DIV 79 col2, + 86 * - 80 * + - 36 - + NULLIF ( 46, + - 90 ) + - 63 * - 59 * 73
----
4914
518975

skipif mysql # not compatible
query II rowsort label-4070
SELECT - - 54 * 91 + - 47 / 79 col2, + 86 * - 80 * + - 36 - + NULLIF ( 46, + - 90 ) + - 63 * - 59 * 73
----
4914
518975

query II rowsort
SELECT ALL 12 - - 66 * + 97, 26 AS col0
----
6414
26

query I rowsort
SELECT - ( + - 55 ) + + 42 - 32 AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4073
SELECT DISTINCT 30 DIV NULLIF ( - + COUNT( * ), 66 ) * - 22 * + - 17 - + 29
----
-11249

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT 30 / NULLIF ( - + COUNT ( * ), 66 ) * - 22 * + - 17 - + 29
----
-11249

query II rowsort
SELECT ALL - 25, 41 AS col2
----
-25
41

query I rowsort
SELECT 60 * 27 col2
----
1620

query I rowsort
SELECT 4 + 76 + 44 * - 34 AS col0
----
-1416

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4078
SELECT - + 96, - 73 * CAST( 79 AS SIGNED ) AS col2
----
-96
-5767

skipif mysql # not compatible
query II rowsort label-4078
SELECT - + 96, - 73 * CAST ( 79 AS INTEGER ) AS col2
----
-96
-5767

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT 62 * - 81 * + COUNT( * ) AS col1
----
-5022

skipif mysql # not compatible
query I rowsort label-4079
SELECT 62 * - 81 * + COUNT ( * ) AS col1
----
-5022

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT COUNT( DISTINCT + 96 ) + COUNT( * ) + 41 * - NULLIF ( + + 61, + - 83 - ( - 95 ) )
----
-2499

skipif mysql # not compatible
query I rowsort label-4080
SELECT COUNT ( DISTINCT + 96 ) + COUNT ( * ) + 41 * - NULLIF ( + + 61, + - 83 - ( - 95 ) )
----
-2499

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4081
SELECT DISTINCT - 13 * + + 1, - ( 81 ) * + 20 * + ( CAST( NULL AS SIGNED ) ) AS col1
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-4081
SELECT DISTINCT - 13 * + + 1, - ( 81 ) * + 20 * + ( CAST ( NULL AS INTEGER ) ) AS col1
----
-13
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4082
SELECT ALL - 40 + - 62 + - 98 * + 25 - - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) * - + 14 * - - MAX( DISTINCT + - 44 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL - 40 + - 62 + - 98 * + 25 - - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - + 14 * - - MAX ( DISTINCT + - 44 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4083
SELECT DISTINCT + 50 + - - 37, COUNT( - + 19 ) AS col2
----
87
1

skipif mysql # not compatible
query II rowsort label-4083
SELECT DISTINCT + 50 + - - 37, COUNT ( - + 19 ) AS col2
----
87
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4084
SELECT ALL + 68 + + COUNT( * ) AS col2, + 75
----
69
75

skipif mysql # not compatible
query II rowsort label-4084
SELECT ALL + 68 + + COUNT ( * ) AS col2, + 75
----
69
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4085
SELECT 6 DIV - 12 DIV 11 * 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4085
SELECT 6 / - 12 / 11 * 95 AS col0
----
0

query I rowsort
SELECT 77 - - 72
----
149

query I rowsort
SELECT ALL - 96 * - + 11 col2
----
1056

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

skipif mysql # not compatible
query I rowsort label-4088
SELECT SUM ( + + 28 )
----
28

query II rowsort
SELECT DISTINCT + 51 * 71 AS col2, + 36 * - 98 - - 37 - - 66
----
3621
-3425

query I rowsort
SELECT ALL ( - + 11 ) - - + 74
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4091
SELECT DISTINCT 12 DIV + 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT 12 / + 42 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT 22 DIV 8 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4092
SELECT 22 / 8 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4093
SELECT 28 + - 26 * MIN( + 77 ) AS col0, + 66 AS col0
----
-1974
66

skipif mysql # not compatible
query II rowsort label-4093
SELECT 28 + - 26 * MIN ( + 77 ) AS col0, + 66 AS col0
----
-1974
66

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

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

query I rowsort
SELECT - 92 + - 31 * 73 AS col0
----
-2355

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT DISTINCT SUM( DISTINCT 43 ) * 73 AS col2
----
3139

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT SUM ( DISTINCT 43 ) * 73 AS col2
----
3139

query I rowsort
SELECT DISTINCT - 52 * + 20 AS col0
----
-1040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4098
SELECT ALL - COALESCE ( + CAST( - 40 AS SIGNED ), - - 70 )
----
40

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL - COALESCE ( + CAST ( - 40 AS INTEGER ), - - 70 )
----
40

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-4102
SELECT COUNT ( * ) / 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT + 25 - + COUNT( * ) * - - 67
----
-42

skipif mysql # not compatible
query I rowsort label-4103
SELECT + 25 - + COUNT ( * ) * - - 67
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4104
SELECT ALL + CASE - ( COALESCE ( - 13, MIN( + 2 ) + + 52, - SUM( DISTINCT NULLIF ( + 27, + - 70 ) ) + 6 + + + 82 * - 18 * 59 + 50 + ( + + 45 ) ) ) WHEN + ( COUNT( * ) ) THEN NULL WHEN - 19 * + + 48 + ( 79 ) * - + 76 + 57 THEN NULL WHEN + - AVG ( - 41 ) THEN 14 ELSE NULL END + - CASE - 72 WHEN 36 * - COUNT( * ) * COALESCE ( - - NULLIF ( + 79, - 82 / COUNT( * ) + - COALESCE ( + 44, 55, SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) ), + 82 ) THEN NULL WHEN + 52 THEN - 22 + 96 * AVG ( ALL + 93 ) WHEN 33 THEN 19 END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL + CASE - ( COALESCE ( - 13, MIN ( + 2 ) + + 52, - SUM ( DISTINCT NULLIF ( + 27, + - 70 ) ) + 6 + + + 82 * - 18 * 59 + 50 + ( + + 45 ) ) ) WHEN + ( COUNT ( * ) ) THEN NULL WHEN - 19 * + + 48 + ( 79 ) * - + 76 + 57 THEN NULL WHEN + - AVG ( - 41 ) THEN 14 ELSE NULL END + - CASE - 72 WHEN 36 * - COUNT ( * ) * COALESCE ( - - NULLIF ( + 79, - 82 / COUNT ( * ) + - COALESCE ( + 44, 55, SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) ), + 82 ) THEN NULL WHEN + 52 THEN - 22 + 96 * AVG ( ALL + 93 ) WHEN 33 THEN 19 END * 82
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4105
SELECT + SUM ( + 9 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4106
SELECT + 52 DIV - 47 + 93 * - 13 AS col0
----
-1210

skipif mysql # not compatible
query I rowsort label-4106
SELECT + 52 / - 47 + 93 * - 13 AS col0
----
-1210

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4107
SELECT + CAST( CASE + - 8 WHEN + - 13 + 47 THEN - + 72 WHEN + 40 * - 27 THEN NULL ELSE - + COALESCE ( + 85, 59 * 2 + + 10 + + - 79 * + 92 ) + + 66 + 45 END AS SIGNED ) - 42, 3 * - - 82 AS col2
----
-16
246

skipif mysql # not compatible
query II rowsort label-4107
SELECT + CAST ( CASE + - 8 WHEN + - 13 + 47 THEN - + 72 WHEN + 40 * - 27 THEN NULL ELSE - + COALESCE ( + 85, 59 * 2 + + 10 + + - 79 * + 92 ) + + 66 + 45 END AS INTEGER ) - 42, 3 * - - 82 AS col2
----
-16
246

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

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT + COUNT ( * ) * - - 21 / 33 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT DISTINCT 96 + + COUNT( * ) + - 2 * + 47
----
3

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT 96 + + COUNT ( * ) + - 2 * + 47
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4110
SELECT + 25 * - NULLIF ( - NULLIF ( 15, - - CASE WHEN 75 NOT IN ( + COUNT( * ) * + - 14, - COUNT( + 13 ), + 26, + - 3 * + + 43 + 3, - 54 * - 25 * - ( 13 ), + 71 * AVG ( DISTINCT + 94 ) / + 89 + CAST( NULL AS SIGNED ), - 6 + + - 71 * + COUNT( + 16 ), + NULLIF ( COUNT( * ), + 68 ) ) THEN NULL ELSE - - 42 END + - + 35 ), + 70 ) AS col2
----
375

skipif mysql # not compatible
query I rowsort label-4110
SELECT + 25 * - NULLIF ( - NULLIF ( 15, - - CASE WHEN 75 NOT IN ( + COUNT ( * ) * + - 14, - COUNT ( + 13 ), + 26, + - 3 * + + 43 + 3, - 54 * - 25 * - ( 13 ), + 71 * AVG ( DISTINCT + 94 ) / + 89 + CAST ( NULL AS INTEGER ), - 6 + + - 71 * + COUNT ( + 16 ), + NULLIF ( COUNT ( * ), + 68 ) ) THEN NULL ELSE - - 42 END + - + 35 ), + 70 ) AS col2
----
375

query I rowsort
SELECT ALL 31 + 90 + - 89
----
32

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

skipif mysql # not compatible
query I rowsort label-4112
SELECT - SUM ( ALL - 13 )
----
13

query I rowsort
SELECT + NULLIF ( 58, - 58 ) + - ( + - 20 ) AS col2
----
78

query II rowsort
SELECT 12 AS col0, 87
----
12
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT + 90 + + 61 * - 18 * MAX( ALL - 66 ) - - COUNT( * )
----
72559

skipif mysql # not compatible
query I rowsort label-4115
SELECT + 90 + + 61 * - 18 * MAX ( ALL - 66 ) - - COUNT ( * )
----
72559

query I rowsort
SELECT + ( - 21 ) + + - 15 AS col2
----
-36

query I rowsort
SELECT ALL + NULLIF ( + 38, - 19 * + + 70 - + 95 + 14 ) - + ( + 22 )
----
16

query I rowsort
SELECT 37 * 87 + + 46 AS col0
----
3265

query I rowsort
SELECT ALL - ( + 97 ) * + 95 + + - 18 + ( 73 ) AS col2
----
-9160

query II rowsort
SELECT DISTINCT + 54 col0, + 44
----
54
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL - 47 * 76 * 95 * - + MIN( + 6 ) AS col2
----
2036040

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL - 47 * 76 * 95 * - + MIN ( + 6 ) AS col2
----
2036040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT - 12 + - CAST( - 27 AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4123
SELECT - 12 + - CAST ( - 27 AS INTEGER ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT - COUNT( * ) * 64 + ( 61 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4124
SELECT - COUNT ( * ) * 64 + ( 61 ) AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4125
SELECT + 76 * - 57 DIV - - COUNT( * ) + - ( 99 ), 66 col0
----
-4431
66

skipif mysql # not compatible
query II rowsort label-4125
SELECT + 76 * - 57 / - - COUNT ( * ) + - ( 99 ), 66 col0
----
-4431
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4126
SELECT - NULLIF ( 51, 65 ) * - 73 + - 9 + - + 85 - - 28 * + ( + - CASE - ( + 28 ) WHEN + 22 * + 92 + - + CASE 32 WHEN + + 5 + - 37 - + 25 + + 61 * + ( + ( - - ( 25 ) ) ) THEN - + CAST( + 47 AS SIGNED ) / + MAX( DISTINCT 2 ) + - + 90 + - CAST( 50 AS SIGNED ) + + 61 WHEN + 52 * + ( - 90 ) + - 67 THEN NULL END * ( + + MIN( + + 42 ) ) + 75 - - - 85 THEN - - SUM( 8 ) END ) + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT - NULLIF ( 51, 65 ) * - 73 + - 9 + - + 85 - - 28 * + ( + - CASE - ( + 28 ) WHEN + 22 * + 92 + - + CASE 32 WHEN + + 5 + - 37 - + 25 + + 61 * + ( + ( - - ( 25 ) ) ) THEN - + CAST ( + 47 AS INTEGER ) / + MAX ( DISTINCT 2 ) + - + 90 + - CAST ( 50 AS INTEGER ) + + 61 WHEN + 52 * + ( - 90 ) + - 67 THEN NULL END * ( + + MIN ( + + 42 ) ) + 75 - - - 85 THEN - - SUM ( 8 ) END ) + 84 AS col0
----
NULL

query I rowsort
SELECT ALL - - 48 * - 29
----
-1392

onlyif mysql # DIV for integer division: 
query I rowsort label-4128
SELECT ALL - 42 DIV - ( + 51 )
----
0

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL - 42 / - ( + 51 )
----
0

query I rowsort
SELECT - + 37 + 81
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4130
SELECT DISTINCT + CASE - CASE 38 WHEN + + 76 THEN NULL ELSE 42 + - + CASE + + ( - ( + 91 ) ) WHEN + 19 THEN 2 ELSE NULL END END WHEN - 30 THEN - 83 ELSE + + CASE - 97 WHEN + 70 * - 53 / + 33 / + COUNT( * ) THEN + COALESCE ( CAST( 75 AS SIGNED ), + + SUM( - 5 ) * - 83 - 47 ) * - MAX( + + 32 ) * - COALESCE ( - 94, + + 97 * + 6, COUNT( * ) ) - + - 93 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT + CASE - CASE 38 WHEN + + 76 THEN NULL ELSE 42 + - + CASE + + ( - ( + 91 ) ) WHEN + 19 THEN 2 ELSE NULL END END WHEN - 30 THEN - 83 ELSE + + CASE - 97 WHEN + 70 * - 53 / + 33 / + COUNT ( * ) THEN + COALESCE ( CAST ( 75 AS INTEGER ), + + SUM ( - 5 ) * - 83 - 47 ) * - MAX ( + + 32 ) * - COALESCE ( - 94, + + 97 * + 6, COUNT ( * ) ) - + - 93 END END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4131
SELECT ALL + 54, COUNT( * ) DIV - 33 AS col0
----
54
0

skipif mysql # not compatible
query II rowsort label-4131
SELECT ALL + 54, COUNT ( * ) / - 33 AS col0
----
54
0

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

skipif mysql # not compatible
query I rowsort label-4132
SELECT - MIN ( DISTINCT - - 21 )
----
-21

query I rowsort
SELECT - 9 + + - 88 + - 13 * 70 AS col2
----
-1007

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT - 23 + COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4134
SELECT - 23 + COUNT ( * ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ALL 60 * 82 + + MIN( + 43 ) col0
----
4963

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL 60 * 82 + + MIN ( + 43 ) col0
----
4963

query I rowsort
SELECT ALL 80 * + - 75 AS col0
----
-6000

query I rowsort
SELECT + + ( - 68 ) + - 86 + - 1
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL NULLIF ( + + COUNT( * ), 49 * - + 16 ) + - 57 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL NULLIF ( + + COUNT ( * ), 49 * - + 16 ) + - 57 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT + CAST( + 88 AS SIGNED ) + 19
----
107

skipif mysql # not compatible
query I rowsort label-4139
SELECT + CAST ( + 88 AS INTEGER ) + 19
----
107

query I rowsort
SELECT ALL + 68 + - 6 + + 43 AS col0
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4141
SELECT + NULLIF ( - + SUM( DISTINCT - 4 ), - 31 ) + - + 58 * + + 36 AS col1, CAST( + ( ( 60 ) ) AS SIGNED ) AS col1
----
-2084
60

skipif mysql # not compatible
query II rowsort label-4141
SELECT + NULLIF ( - + SUM ( DISTINCT - 4 ), - 31 ) + - + 58 * + + 36 AS col1, CAST ( + ( ( 60 ) ) AS INTEGER ) AS col1
----
-2084
60

onlyif mysql # aggregate syntax: 
query II rowsort label-4142
SELECT 84 AS col0, COALESCE ( - MAX( ALL - - ( + 71 ) ), - 28 ) AS col1
----
84
-71

skipif mysql # not compatible
query II rowsort label-4142
SELECT 84 AS col0, COALESCE ( - MAX ( ALL - - ( + 71 ) ), - 28 ) AS col1
----
84
-71

query I rowsort
SELECT - COALESCE ( + 78, 1 ) col2
----
-78

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

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

query I rowsort
SELECT DISTINCT COALESCE ( + 4, 13 ) * + 4 * - - 39 AS col2
----
624

query I rowsort
SELECT + 42 * + 73 * 77 AS col0
----
236082

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4147
SELECT ALL COUNT( * ) / - - SUM( DISTINCT + - COALESCE ( 36, + 97 ) ) * NULLIF ( - + COUNT( * ), + NULLIF ( + + 72, + 84 ) ) - CASE + 14 WHEN 68 + - - 83 THEN NULL ELSE - COUNT( * ) / CAST( NULL AS DECIMAL ) / 95 END + + 9 * + 29 / - 36 * - 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL COUNT ( * ) / - - SUM ( DISTINCT + - COALESCE ( 36, + 97 ) ) * NULLIF ( - + COUNT ( * ), + NULLIF ( + + 72, + 84 ) ) - CASE + 14 WHEN 68 + - - 83 THEN NULL ELSE - COUNT ( * ) / CAST ( NULL AS REAL ) / 95 END + + 9 * + 29 / - 36 * - 17 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT + 60 DIV 99 DIV + + 38
----
0

skipif mysql # not compatible
query I rowsort label-4148
SELECT + 60 / 99 / + + 38
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4149
SELECT DISTINCT ( COALESCE ( - + 78, + 68 * MAX( + + 14 ) + 94 - - 44, - 33 ) ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT ( COALESCE ( - + 78, + 68 * MAX ( + + 14 ) + 94 - - 44, - 33 ) ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 30 * + 2 AS col1
----
60

query I rowsort
SELECT ALL 42 - + 96 + 49 + 87
----
82

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

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

query II rowsort
SELECT 62 AS col0, 67 AS col2
----
62
67

query I rowsort
SELECT + 0 - - 33
----
33

query II rowsort
SELECT - 6 * 1 AS col0, 57 + - - 25 * - + 88 col1
----
-6
-2143

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT + + COUNT( + + 58 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4156
SELECT + + COUNT ( + + 58 ) col1
----
1

query I rowsort
SELECT + - 57 * ( + 97 ) - - 59 AS col2
----
-5470

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL + + MIN( + ( + 7 ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + + MIN ( + ( + 7 ) ) AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT ALL + 27 DIV + ( 40 ) + - - 95 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL + 27 / + ( 40 ) + - - 95 AS col0
----
95

query I rowsort
SELECT + 42 * + + 18 - + COALESCE ( - 60, - 32 * + 22 * - + 87 ) AS col1
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT + - CASE + 29 WHEN + 59 THEN 32 WHEN + COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT + - CASE + 29 WHEN + 59 THEN 32 WHEN + COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 69 * + 32
----
2208

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT ALL - 34 DIV 67 + - 10 - - 50
----
40

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL - 34 / 67 + - 10 - - 50
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT + 98 + - COUNT( * ) + 57 AS col1
----
154

skipif mysql # not compatible
query I rowsort label-4164
SELECT + 98 + - COUNT ( * ) + 57 AS col1
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT DISTINCT COUNT( ALL + - 39 ) * + 65 + COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT COUNT ( ALL + - 39 ) * + 65 + COUNT ( * ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4166
SELECT + 62 * + 67 * + + 15 + - COUNT( * ) + - - 69 * + 78 + - + 16 + + 96 + MAX( + 53 ) + + ( - + COUNT( * ) ) + + 67 * - SUM( ALL + + 77 ) + ( CASE 21 WHEN + - CAST( NULL AS DECIMAL ) THEN 40 - 71 + 95 END ) + + 94 / - - 11 + NULLIF ( 56, + MAX( 46 ) * ( + COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT + 62 * + 67 * + + 15 + - COUNT ( * ) + - - 69 * + 78 + - + 16 + + 96 + MAX ( + 53 ) + + ( - + COUNT ( * ) ) + + 67 * - SUM ( ALL + + 77 ) + ( CASE 21 WHEN + - CAST ( NULL AS REAL ) THEN 40 - 71 + 95 END ) + + 94 / - - 11 + NULLIF ( 56, + MAX ( 46 ) * ( + COUNT ( * ) ) ) AS col2
----
NULL

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

query I rowsort
SELECT ALL + + 41 * - - 89 * 87 + + 34 AS col0
----
317497

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT DISTINCT - 17 + - 8 * - 86 * - COUNT( * ) AS col0
----
-705

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT - 17 + - 8 * - 86 * - COUNT ( * ) AS col0
----
-705

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

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

query I rowsort
SELECT 68 - COALESCE ( - + 35, - 8 ) AS col0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4172
SELECT 73 * COUNT( * ) - - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4172
SELECT 73 * COUNT ( * ) - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
72

query I rowsort
SELECT 13 * ( - 80 ) * - 77 AS col0
----
80080

onlyif mysql # aggregate syntax: 
query II rowsort label-4174
SELECT 87 + - COUNT( * ) AS col0, + 76 AS col1
----
86
76

skipif mysql # not compatible
query II rowsort label-4174
SELECT 87 + - COUNT ( * ) AS col0, + 76 AS col1
----
86
76

query I rowsort
SELECT ALL - 37 - + 39 * + ( - 13 )
----
470

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

skipif mysql # not compatible
query I rowsort label-4176
SELECT 3 * - - COUNT ( * )
----
3

query I rowsort
SELECT DISTINCT + 92 * 10
----
920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT 2 + 83 + - COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4179
SELECT 2 + 83 + - COUNT ( * ) AS col0
----
84

query I rowsort
SELECT 5 * - - ( - + 58 )
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT COUNT( * ) + 36 + 87 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-4181
SELECT COUNT ( * ) + 36 + 87 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT 21 + + CASE WHEN NOT + 9 > NULL THEN + 39 + 75 + + 23 * - 77 * - - 0 * + COUNT( * ) ELSE NULL END + 56 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT 21 + + CASE WHEN NOT + 9 > NULL THEN + 39 + 75 + + 23 * - 77 * - - 0 * + COUNT ( * ) ELSE NULL END + 56 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4183
SELECT CASE 39 WHEN - 94 * - + 38 / + 26 THEN NULL WHEN 57 + NULLIF ( - 92, + 86 / + - 75 - COUNT( * ) * - MIN( 1 ) + + - SUM( 93 ) ) - CAST( NULL AS SIGNED ) * + ( + COALESCE ( 26, + ( 81 ) * - 2 + + - COUNT( * ) + + 81 + + 77 + - + 14 + + COUNT( * ) + + ( + + 69 ) * 42 + - 54 + - 28 ) ) THEN - + NULLIF ( - 68, - 8 * MAX( + CAST( + 6 AS SIGNED ) ) ) * - 13 * + + 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT CASE 39 WHEN - 94 * - + 38 / + 26 THEN NULL WHEN 57 + NULLIF ( - 92, + 86 / + - 75 - COUNT ( * ) * - MIN ( 1 ) + + - SUM ( 93 ) ) - CAST ( NULL AS INTEGER ) * + ( + COALESCE ( 26, + ( 81 ) * - 2 + + - COUNT ( * ) + + 81 + + 77 + - + 14 + + COUNT ( * ) + + ( + + 69 ) * 42 + - 54 + - 28 ) ) THEN - + NULLIF ( - 68, - 8 * MAX ( + CAST ( + 6 AS INTEGER ) ) ) * - 13 * + + 96 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 28 + - NULLIF ( + ( - 60 ), + 88 + 7 * + 87 ) * 56
----
3388

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4185
SELECT DISTINCT 67 DIV - + MAX( DISTINCT 99 ) * + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT 67 / - + MAX ( DISTINCT 99 ) * + 64 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4186
SELECT - 2 DIV - 79 + + - 32 + - 20 col1
----
-52

skipif mysql # not compatible
query I rowsort label-4186
SELECT - 2 / - 79 + + - 32 + - 20 col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL MAX( DISTINCT - NULLIF ( + 51, - 75 ) ) * - + 70 * - + COUNT( * )
----
-3570

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL MAX ( DISTINCT - NULLIF ( + 51, - 75 ) ) * - + 70 * - + COUNT ( * )
----
-3570

onlyif mysql # DIV for integer division: 
query I rowsort label-4188
SELECT 32 DIV 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4188
SELECT 32 / 69 AS col1
----
0

query II rowsort
SELECT + 29 + + 62 AS col0, 43 AS col2
----
91
43

onlyif mysql # DIV for integer division: 
query II rowsort label-4190
SELECT ALL 8 + + 82 + - 76 - + COALESCE ( - - COALESCE ( - 73, - 27 DIV + 49 ), - + 28, + - NULLIF ( 31, + - 49 ) ) * - 26, 97 * - 21 AS col2
----
-1884
-2037

skipif mysql # not compatible
query II rowsort label-4190
SELECT ALL 8 + + 82 + - 76 - + COALESCE ( - - COALESCE ( - 73, - 27 / + 49 ), - + 28, + - NULLIF ( 31, + - 49 ) ) * - 26, 97 * - 21 AS col2
----
-1884
-2037

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT 60 * - 26 + + 83 * - COUNT( * ) * 92 AS col1
----
-9196

skipif mysql # not compatible
query I rowsort label-4191
SELECT 60 * - 26 + + 83 * - COUNT ( * ) * 92 AS col1
----
-9196

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT - 96 * COUNT( * ) * + - 21 * 55 AS col1
----
110880

skipif mysql # not compatible
query I rowsort label-4192
SELECT - 96 * COUNT ( * ) * + - 21 * 55 AS col1
----
110880

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT + + 22 * - - 65 * - 42 + NULLIF ( 14, COUNT( * ) ) + + ( + - 37 ) + + 14 * - COALESCE ( + + COUNT( * ), - 25 ) * - - 92 * - 52 AS col0
----
6893

skipif mysql # not compatible
query I rowsort label-4193
SELECT + + 22 * - - 65 * - 42 + NULLIF ( 14, COUNT ( * ) ) + + ( + - 37 ) + + 14 * - COALESCE ( + + COUNT ( * ), - 25 ) * - - 92 * - 52 AS col0
----
6893

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL - 21 + - - COUNT( * ) + - 25
----
-45

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL - 21 + - - COUNT ( * ) + - 25
----
-45

query I rowsort
SELECT DISTINCT + ( - 44 ) + + + 93 AS col2
----
49

query I rowsort
SELECT DISTINCT ( - ( 75 ) ) + - - 26 + + - 83 * + + COALESCE ( 53, - - 7 )
----
-4448

query I rowsort
SELECT + - 22 * 72 + + 46 col0
----
-1538

query I rowsort
SELECT - 98 * - 96 col0
----
9408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT CAST( 17 AS SIGNED ) + + 8
----
25

skipif mysql # not compatible
query I rowsort label-4199
SELECT CAST ( 17 AS INTEGER ) + + 8
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT ( 61 ) * + + 19 - 86 + 84 - COUNT( * )
----
1156

skipif mysql # not compatible
query I rowsort label-4200
SELECT ( 61 ) * + + 19 - 86 + 84 - COUNT ( * )
----
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT 22 - + - MIN( DISTINCT - ( + 72 ) ) * + COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4201
SELECT 22 - + - MIN ( DISTINCT - ( + 72 ) ) * + COUNT ( * ) AS col0
----
-50

query I rowsort
SELECT DISTINCT - 5 - + ( + + 7 ) AS col2
----
-12

query I rowsort
SELECT 96 * - 7
----
-672

query I rowsort
SELECT ALL 72 * + 84
----
6048

query II rowsort
SELECT 9 AS col1, ( - + ( - 79 ) )
----
9
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL SUM( DISTINCT + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL SUM ( DISTINCT + 73 )
----
73

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

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

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

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

query I rowsort
SELECT 22 + - 98 + + - 66
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4210
SELECT DISTINCT - NULLIF ( + SUM( - 26 ), 34 ) DIV 6 * 23 + NULLIF ( + 87, - COUNT( + + 64 ) )
----
179

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT - NULLIF ( + SUM ( - 26 ), 34 ) / 6 * 23 + NULLIF ( + 87, - COUNT ( + + 64 ) )
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT 31 + ( ( - + COUNT( * ) ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4211
SELECT 31 + ( ( - + COUNT ( * ) ) ) AS col2
----
30

query I rowsort
SELECT 38 * + 45
----
1710

onlyif mysql # aggregate syntax: 
query II rowsort label-4213
SELECT 39, 7 * + SUM( DISTINCT + + 73 ) + - - ( + COUNT( * ) ) * 97 AS col2
----
39
608

skipif mysql # not compatible
query II rowsort label-4213
SELECT 39, 7 * + SUM ( DISTINCT + + 73 ) + - - ( + COUNT ( * ) ) * 97 AS col2
----
39
608

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT SUM( ALL + + 82 ) * - + 79 AS col1
----
-6478

skipif mysql # not compatible
query I rowsort label-4214
SELECT SUM ( ALL + + 82 ) * - + 79 AS col1
----
-6478

query I rowsort
SELECT DISTINCT + 70 + - 87
----
-17

query I rowsort
SELECT ALL 41 + + 98
----
139

query I rowsort
SELECT ALL + NULLIF ( 60, - - 35 ) * + - 72 AS col1
----
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT - 13 + - CASE COUNT( * ) WHEN - 63 + AVG ( + 34 ) + - - 46 + + 77 * + COUNT( * ) - + 1 THEN 9 WHEN + + 35 * COUNT( DISTINCT + 12 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT - 13 + - CASE COUNT ( * ) WHEN - 63 + AVG ( + 34 ) + - - 46 + + 77 * + COUNT ( * ) - + 1 THEN 9 WHEN + + 35 * COUNT ( DISTINCT + 12 ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 92 * + + 79 col2
----
-7268

onlyif mysql # DIV for integer division: 
query I rowsort label-4220
SELECT - COALESCE ( 58, 53 ) DIV + + 49 + - 31
----
-32

skipif mysql # not compatible
query I rowsort label-4220
SELECT - COALESCE ( 58, 53 ) / + + 49 + - 31
----
-32

query I rowsort
SELECT - 13 * + 4 col2
----
-52

query II rowsort
SELECT - + 33 * 50 - + 72 AS col2, - 8
----
-1722
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT + CASE + ( - - 93 ) WHEN - - NULLIF ( - ( 23 ), - + 70 * 72 ) THEN NULL ELSE - CAST( NULL AS SIGNED ) * + 79 + + 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT + CASE + ( - - 93 ) WHEN - - NULLIF ( - ( 23 ), - + 70 * 72 ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) * + 79 + + 38 END
----
NULL

query II rowsort
SELECT - 91 col1, 4 AS col0
----
-91
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4225
SELECT CAST( NULL AS SIGNED ) * - 19 - NULLIF ( + 9, COUNT( * ) ) * - MIN( DISTINCT - - 30 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4225
SELECT CAST ( NULL AS INTEGER ) * - 19 - NULLIF ( + 9, COUNT ( * ) ) * - MIN ( DISTINCT - - 30 ) AS col1
----
NULL

query I rowsort
SELECT + - 25 * + - 17 AS col1
----
425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4227
SELECT ALL - ( + + ( + 67 ) ) * + + ( + 86 ) + + 76 - - 69 + - - CASE - - 64 WHEN - 7 - - COUNT( * ) THEN 40 ELSE ( CAST( - MIN( + 75 ) AS SIGNED ) ) END AS col1
----
-5692

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL - ( + + ( + 67 ) ) * + + ( + 86 ) + + 76 - - 69 + - - CASE - - 64 WHEN - 7 - - COUNT ( * ) THEN 40 ELSE ( CAST ( - MIN ( + 75 ) AS INTEGER ) ) END AS col1
----
-5692

query I rowsort
SELECT + 16 * + 25 AS col1
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT DISTINCT - 26 * SUM( + - 53 )
----
1378

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT - 26 * SUM ( + - 53 )
----
1378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4230
SELECT - ( - + 75 ) DIV - 36 - + 45 * + NULLIF ( 99, COUNT( * ) + + 32 ) * + - COUNT( * )
----
4453

skipif mysql # not compatible
query I rowsort label-4230
SELECT - ( - + 75 ) / - 36 - + 45 * + NULLIF ( 99, COUNT ( * ) + + 32 ) * + - COUNT ( * )
----
4453

query I rowsort
SELECT + + 98 * + + 73 AS col1
----
7154

query I rowsort
SELECT - 3 * - 16 * + 41 + 21 AS col0
----
1989

query I rowsort
SELECT - 55 - - 3 * + 24
----
17

query I rowsort
SELECT + 43 * - 99 AS col0
----
-4257

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT MIN( + - 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4235
SELECT MIN ( + - 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + 7 * - 88 * + MIN( ALL + 56 )
----
-34496

skipif mysql # not compatible
query I rowsort label-4236
SELECT + 7 * - 88 * + MIN ( ALL + 56 )
----
-34496

query I rowsort
SELECT - 13 * + 88 * 85 AS col0
----
-97240

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

skipif mysql # not compatible
query I rowsort label-4238
SELECT + 25 - COUNT ( * ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT - 83 * - - COUNT( * ) + + 86 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4239
SELECT - 83 * - - COUNT ( * ) + + 86 AS col1
----
3

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

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

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

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

query I rowsort
SELECT - 83 * 70
----
-5810

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4244
SELECT ALL - 84 + + 78, ( - 92 ) * - - 66 * MIN( + 89 ) AS col2
----
-6
-540408

skipif mysql # not compatible
query II rowsort label-4244
SELECT ALL - 84 + + 78, ( - 92 ) * - - 66 * MIN ( + 89 ) AS col2
----
-6
-540408

query I rowsort
SELECT - 47 - - 66 + - 75
----
-56

query I rowsort
SELECT - COALESCE ( - 2, + - 76 ) - + 65 - 44 * - 27 AS col0
----
1125

query I rowsort
SELECT ALL - - 27 + - 10 AS col0
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT - + 4 * + ( + SUM( 30 ) ) * 14 AS col2
----
-1680

skipif mysql # not compatible
query I rowsort label-4249
SELECT - + 4 * + ( + SUM ( 30 ) ) * 14 AS col2
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - + NULLIF ( + MIN( - 47 ), 13 )
----
47

skipif mysql # not compatible
query I rowsort label-4250
SELECT - + NULLIF ( + MIN ( - 47 ), 13 )
----
47

query I rowsort
SELECT - - 34 + + 47
----
81

query I rowsort
SELECT ALL - 79 - 88 + - 75 * - 74
----
5383

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4253
SELECT - 14 + - 70, COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) col0
----
-84
0

skipif mysql # not compatible
query II rowsort label-4253
SELECT - 14 + - 70, COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) col0
----
-84
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4254
SELECT - + 8 * - COALESCE ( - 10, - + 97, + CASE COUNT( * ) WHEN 87 * - 88 - CAST( NULL AS SIGNED ) + + 71 THEN NULL ELSE + 5 END * + - COUNT( * ) ) * + 93 + ( + 65 ) AS col0
----
-7375

skipif mysql # not compatible
query I rowsort label-4254
SELECT - + 8 * - COALESCE ( - 10, - + 97, + CASE COUNT ( * ) WHEN 87 * - 88 - CAST ( NULL AS INTEGER ) + + 71 THEN NULL ELSE + 5 END * + - COUNT ( * ) ) * + 93 + ( + 65 ) AS col0
----
-7375

onlyif mysql # DIV for integer division: 
query II rowsort label-4255
SELECT + + 84 * + - 50 * + 69 + + + 12 AS col2, 10 DIV ( + + 79 )
----
-289788
0

skipif mysql # not compatible
query II rowsort label-4255
SELECT + + 84 * + - 50 * + 69 + + + 12 AS col2, 10 / ( + + 79 )
----
-289788
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4256
SELECT DISTINCT - 70 DIV 48 - + COUNT( * ) + + - 86 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT - 70 / 48 - + COUNT ( * ) + + - 86 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT COUNT( * ) * + 41 + COUNT( * ) + + - 34 * - + 84 * + 88 + + - COUNT( * ) AS col2
----
251369

skipif mysql # not compatible
query I rowsort label-4257
SELECT COUNT ( * ) * + 41 + COUNT ( * ) + + - 34 * - + 84 * + 88 + + - COUNT ( * ) AS col2
----
251369

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4259
SELECT DISTINCT + NULLIF ( + 21, + 83 ) DIV 23
----
0

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT + NULLIF ( + 21, + 83 ) / 23
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4260
SELECT ( - COALESCE ( - + 81, + + 14, 39 * 88 ) ) AS col1, CASE - - COUNT( * ) WHEN + + 47 THEN NULL ELSE + ( + + 75 ) END * 59 * + CASE + 9 WHEN - 77 * + AVG ( + - 85 ) THEN - 59 WHEN - 32 + + - 85 + 95 THEN NULL END / + 46 + 55 * - - 8 + - - 87 - 48
----
81
NULL

skipif mysql # not compatible
query II rowsort label-4260
SELECT ( - COALESCE ( - + 81, + + 14, 39 * 88 ) ) AS col1, CASE - - COUNT ( * ) WHEN + + 47 THEN NULL ELSE + ( + + 75 ) END * 59 * + CASE + 9 WHEN - 77 * + AVG ( + - 85 ) THEN - 59 WHEN - 32 + + - 85 + 95 THEN NULL END / + 46 + 55 * - - 8 + - - 87 - 48
----
81
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4261
SELECT - COALESCE ( - 17, + 38 * - 16 + 72 DIV + + 86 ) DIV COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-4261
SELECT - COALESCE ( - 17, + 38 * - 16 + 72 / + + 86 ) / COUNT ( * )
----
17

query I rowsort
SELECT - 80 * - 91 + - + 41 AS col2
----
7239

query I rowsort
SELECT - 25 + - 92
----
-117

query I rowsort
SELECT + 90 * + 44 * - - 54 AS col1
----
213840

query I rowsort
SELECT - 1 + - 45 col2
----
-46

query I rowsort
SELECT + 7 - + 45 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT DISTINCT 13 * NULLIF ( + COUNT( * ), + MIN( - 70 ) * + - 52 / + 94 ) * 39 AS col0
----
507

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT 13 * NULLIF ( + COUNT ( * ), + MIN ( - 70 ) * + - 52 / + 94 ) * 39 AS col0
----
507

query I rowsort
SELECT ALL + 51 * - - 7 + - 98 AS col2
----
259

query I rowsort
SELECT + 54 * - - 47 AS col1
----
2538

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT ALL 48 * - COUNT( * ) * 52 * + + 68 + - 78 AS col0
----
-169806

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL 48 * - COUNT ( * ) * 52 * + + 68 + - 78 AS col0
----
-169806

query I rowsort
SELECT 79 * - 28 * - 45 + - 66 col2
----
99474

query I rowsort
SELECT DISTINCT 77 * + 3 AS col2
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT + COUNT( * ) + + 24 + + 41
----
66

skipif mysql # not compatible
query I rowsort label-4273
SELECT + COUNT ( * ) + + 24 + + 41
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4274
SELECT DISTINCT CASE + 38 WHEN CAST( NULL AS SIGNED ) + - 6 * + COUNT( * ) + - 52 THEN COUNT( * ) * - - 24 * - + 95 * - 91 WHEN + 57 THEN NULL WHEN COALESCE ( - - COUNT( * ), COALESCE ( - 8, - COUNT( - 72 ) * - - 86 + - MIN( + 45 ) + - COUNT( * ) * + 23 * - COUNT( * ) ), + 5 + ( + - 84 ) ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT CASE + 38 WHEN CAST ( NULL AS INTEGER ) + - 6 * + COUNT ( * ) + - 52 THEN COUNT ( * ) * - - 24 * - + 95 * - 91 WHEN + 57 THEN NULL WHEN COALESCE ( - - COUNT ( * ), COALESCE ( - 8, - COUNT ( - 72 ) * - - 86 + - MIN ( + 45 ) + - COUNT ( * ) * + 23 * - COUNT ( * ) ), + 5 + ( + - 84 ) ) THEN NULL END col0
----
NULL

query I rowsort
SELECT - NULLIF ( + ( - - 75 ), - + 90 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT + ( - - 66 ) + + MIN( DISTINCT - 61 ) * + 29 * + NULLIF ( + 93, 20 ) - 70
----
-164521

skipif mysql # not compatible
query I rowsort label-4276
SELECT + ( - - 66 ) + + MIN ( DISTINCT - 61 ) * + 29 * + NULLIF ( + 93, 20 ) - 70
----
-164521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4277
SELECT DISTINCT 64 / + - 4 * - CASE + 67 WHEN + COUNT( * ) + - + 3 * - CAST( NULL AS SIGNED ) + - 76 THEN 46 END * + + 28 * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT 64 / + - 4 * - CASE + 67 WHEN + COUNT ( * ) + - + 3 * - CAST ( NULL AS INTEGER ) + - 76 THEN 46 END * + + 28 * - 18
----
NULL

query I rowsort
SELECT 82 + 4 col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL 99 * - ( ( - COUNT( * ) ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL 99 * - ( ( - COUNT ( * ) ) ) AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4280
SELECT DISTINCT COALESCE ( 58, + 53 ) DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT COALESCE ( 58, + 53 ) / 65
----
0

query I rowsort
SELECT ALL 63 * + 41 col0
----
2583

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT CASE - 29 WHEN COUNT( * ) / 81 THEN + 46 ELSE NULL END / + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT CASE - 29 WHEN COUNT ( * ) / 81 THEN + 46 ELSE NULL END / + 77
----
NULL

query I rowsort
SELECT 97 * 38
----
3686

query I rowsort
SELECT 71 * + 35 AS col0
----
2485

query I rowsort
SELECT 7 * 88 AS col0
----
616

query I rowsort
SELECT + ( 46 ) * 34 - 11 AS col1
----
1553

query I rowsort
SELECT ALL - CASE ( 19 ) WHEN 21 * 72 THEN + 99 WHEN 43 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4288
SELECT NULLIF ( - COUNT( * ), - 82 + - 66 ) DIV - 50 - - 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4288
SELECT NULLIF ( - COUNT ( * ), - 82 + - 66 ) / - 50 - - 83 AS col0
----
83

query I rowsort
SELECT 97 * - 58 AS col0
----
-5626

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT DISTINCT - 64 + + 24 * - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT - 64 + + 24 * - COUNT ( * )
----
-88

query I rowsort
SELECT 16 - - 46
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ALL - MAX( CASE ( + 20 ) WHEN 36 + - 28 THEN - 94 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL - MAX ( CASE ( + 20 ) WHEN 36 + - 28 THEN - 94 END ) AS col0
----
NULL

query I rowsort
SELECT 22 * 45 AS col0
----
990

query I rowsort
SELECT DISTINCT - 46 + 2 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT 12 * SUM( DISTINCT 30 ) AS col2
----
360

skipif mysql # not compatible
query I rowsort label-4296
SELECT 12 * SUM ( DISTINCT 30 ) AS col2
----
360

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

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT + 2 + - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL + 29 + + 0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4299
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + CASE 38 WHEN 24 / 62 THEN + 9 WHEN - 89 THEN 77 + + COUNT( * ) ELSE 68 - - NULLIF ( MAX( ALL 78 ), - ( ( 43 ) ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + CASE 38 WHEN 24 / 62 THEN + 9 WHEN - 89 THEN 77 + + COUNT ( * ) ELSE 68 - - NULLIF ( MAX ( ALL 78 ), - ( ( 43 ) ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL 18 * + MIN( DISTINCT - 3 * + 28 ) AS col2
----
-1512

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL 18 * + MIN ( DISTINCT - 3 * + 28 ) AS col2
----
-1512

query I rowsort
SELECT ALL + 84 + 35
----
119

query I rowsort
SELECT 37 - 6 AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4303
SELECT ( + COUNT( * ) ) DIV - MAX( - 2 * + 31 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4303
SELECT ( + COUNT ( * ) ) / - MAX ( - 2 * + 31 ) col0
----
0

query I rowsort
SELECT - 33 + + 18 col2
----
-15

query I rowsort
SELECT ALL - - 55 - 47 AS col0
----
8

query I rowsort
SELECT 32 * 91
----
2912

query I rowsort
SELECT DISTINCT - 96 * 38
----
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT 25 - ( - COUNT( * ) ) * 84
----
109

skipif mysql # not compatible
query I rowsort label-4308
SELECT 25 - ( - COUNT ( * ) ) * 84
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT - 96 + + COUNT( * ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-4309
SELECT - 96 + + COUNT ( * ) col2
----
-95

query I rowsort
SELECT 4 + - 5
----
-1

query I rowsort
SELECT - 5 * + 88
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT - COUNT( * ) + 90 col0
----
89

skipif mysql # not compatible
query I rowsort label-4312
SELECT - COUNT ( * ) + 90 col0
----
89

query I rowsort
SELECT ALL 93 * 42 AS col2
----
3906

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT ALL - 36 DIV + 5
----
-7

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL - 36 / + 5
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4315
SELECT + 71 DIV CASE 87 WHEN 46 + 99 THEN NULL ELSE 28 * + 45 END
----
0

skipif mysql # not compatible
query I rowsort label-4315
SELECT + 71 / CASE 87 WHEN 46 + 99 THEN NULL ELSE 28 * + 45 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT COUNT( * ) + 88 * 93
----
8185

skipif mysql # not compatible
query I rowsort label-4316
SELECT COUNT ( * ) + 88 * 93
----
8185

query I rowsort
SELECT ALL - 86 + 41
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT DISTINCT 50 * 71 + - 18 * ( - 38 * ( 64 * MAX( - 21 ) ) ) AS col0
----
-915746

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT 50 * 71 + - 18 * ( - 38 * ( 64 * MAX ( - 21 ) ) ) AS col0
----
-915746

onlyif mysql # DIV for integer division: 
query I rowsort label-4319
SELECT - 7 DIV + NULLIF ( 90, 24 + 16 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4319
SELECT - 7 / + NULLIF ( 90, 24 + 16 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT DISTINCT - + 57 * 14 + - CAST( NULL AS SIGNED ) * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT - + 57 * 14 + - CAST ( NULL AS INTEGER ) * 1
----
NULL

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

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

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

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

query I rowsort
SELECT - 3 * - 48 + - 81
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4324
SELECT - ( - - 52 ) DIV 80 + - 3 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4324
SELECT - ( - - 52 ) / 80 + - 3 AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4325
SELECT ALL - NULLIF ( + + 44, - 2 / + 2 + + MAX( 13 + + 97 ) ) * COUNT( * ) + 13 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL - NULLIF ( + + 44, - 2 / + 2 + + MAX ( 13 + + 97 ) ) * COUNT ( * ) + 13 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 71 * - - 86 + + 22 * 61
----
7448

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL - MAX( 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL - MAX ( 26 )
----
-26

query I rowsort
SELECT DISTINCT 95 + - 77 * - 53 AS col1
----
4176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4329
SELECT DISTINCT + NULLIF ( - + 74, + CAST( 62 AS SIGNED ) ) + - 79
----
-153

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT + NULLIF ( - + 74, + CAST ( 62 AS INTEGER ) ) + - 79
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT 89 * 0 + COUNT( * ) * - 79 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4330
SELECT 89 * 0 + COUNT ( * ) * - 79 AS col1
----
-79

query I rowsort
SELECT ALL - 52 - - + 5 - 15
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT SUM( - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4332
SELECT SUM ( - 35 )
----
-35

query I rowsort
SELECT + 33 * 73 + - 30 AS col0
----
2379

query I rowsort
SELECT 37 + - 1 - 98 col1
----
-62

query I rowsort
SELECT - 94 + - 93 * - 93
----
8555

query I rowsort
SELECT - ( + 79 ) * - 55
----
4345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT ALL + 53 - - CASE - 94 WHEN COUNT( * ) THEN - 11 * 90 + 17 WHEN - 26 + - 80 * + CAST( NULL AS SIGNED ) THEN 90 ELSE 52 + 73 END * + 5 col0
----
678

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL + 53 - - CASE - 94 WHEN COUNT ( * ) THEN - 11 * 90 + 17 WHEN - 26 + - 80 * + CAST ( NULL AS INTEGER ) THEN 90 ELSE 52 + 73 END * + 5 col0
----
678

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

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

query I rowsort
SELECT - 39 + - 83 + 98 * 7 AS col1
----
564

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT - - 97 * COUNT( * ) * - SUM( - NULLIF ( 42, COALESCE ( - 23, 93 ) * - 60 ) ) AS col0
----
4074

skipif mysql # not compatible
query I rowsort label-4340
SELECT - - 97 * COUNT ( * ) * - SUM ( - NULLIF ( 42, COALESCE ( - 23, 93 ) * - 60 ) ) AS col0
----
4074

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4341
SELECT ALL + - 15 DIV + COUNT( ALL - 61 )
----
-15

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL + - 15 / + COUNT ( ALL - 61 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - 67 + 47 + - COUNT( ALL + 97 ) * 96 AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-4342
SELECT - 67 + 47 + - COUNT ( ALL + 97 ) * 96 AS col0
----
-116

query I rowsort
SELECT - - 95 * + 63
----
5985

query I rowsort
SELECT - 10 * - CASE - 67 WHEN 22 THEN - 70 END + 58 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT + ( - + 36 ) * CAST( - 59 AS SIGNED )
----
2124

skipif mysql # not compatible
query I rowsort label-4345
SELECT + ( - + 36 ) * CAST ( - 59 AS INTEGER )
----
2124

onlyif mysql # DIV for integer division: 
query I rowsort label-4346
SELECT + - 15 DIV 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4346
SELECT + - 15 / 69 AS col2
----
0

query I rowsort
SELECT ALL + CASE 39 WHEN 14 + - 75 THEN NULL WHEN - 66 * 76 THEN + 11 END * 28 AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT + 7 * + - 5 + 92
----
57

query I rowsort
SELECT + - 96 * + + ( 47 ) * NULLIF ( 42 * 22, + AVG ( DISTINCT 5 ) )
----
-4169088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4351
SELECT DISTINCT + NULLIF ( 0, - 2 * + 75 + - ( COUNT( * ) ) * CAST( 77 + - 22 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT + NULLIF ( 0, - 2 * + 75 + - ( COUNT ( * ) ) * CAST ( 77 + - 22 AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT DISTINCT 8 + - + 71 AS col2
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4353
SELECT DISTINCT + 57 + + + COALESCE ( ( - CASE 76 WHEN + 83 THEN - 51 DIV 60 WHEN + COUNT( * ) THEN NULL ELSE - 56 * - 70 + 74 END ), 49, ( 71 ) ) + 60
----
-3877

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT + 57 + + + COALESCE ( ( - CASE 76 WHEN + 83 THEN - 51 / 60 WHEN + COUNT ( * ) THEN NULL ELSE - 56 * - 70 + 74 END ), 49, ( 71 ) ) + 60
----
-3877

query I rowsort
SELECT - ( + 12 ) + - 50 AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT + 96 * 33 + + 21 DIV + 12
----
3169

skipif mysql # not compatible
query I rowsort label-4355
SELECT + 96 * 33 + + 21 / + 12
----
3169

query I rowsort
SELECT ALL ( - + 5 ) + + 93 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT DISTINCT - 8 + + - COUNT( 23 )
----
-9

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT - 8 + + - COUNT ( 23 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT + 85 - + 71 + MAX( ALL 68 )
----
82

skipif mysql # not compatible
query I rowsort label-4358
SELECT + 85 - + 71 + MAX ( ALL 68 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4359
SELECT ALL 41 col2, 29 / + 64 * CAST( - CASE 98 WHEN + 70 THEN - AVG ( ALL 94 ) WHEN COUNT( DISTINCT - 95 ) THEN - ( - 42 ) + CAST( NULL AS SIGNED ) END AS SIGNED )
----
41
NULL

skipif mysql # not compatible
query II rowsort label-4359
SELECT ALL 41 col2, 29 / + 64 * CAST ( - CASE 98 WHEN + 70 THEN - AVG ( ALL 94 ) WHEN COUNT ( DISTINCT - 95 ) THEN - ( - 42 ) + CAST ( NULL AS INTEGER ) END AS INTEGER )
----
41
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4360
SELECT - COUNT( - - 25 ) * 62 DIV - 66 - + COUNT( * ) - + 90 * 0 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4360
SELECT - COUNT ( - - 25 ) * 62 / - 66 - + COUNT ( * ) - + 90 * 0 AS col0
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT DISTINCT 2 DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT 2 / 28
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4363
SELECT ALL - 8 * 75 DIV COUNT( * ) * 60 + 17
----
-35983

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL - 8 * 75 / COUNT ( * ) * 60 + 17
----
-35983

query I rowsort
SELECT + 31 * + 11 * - 97
----
-33077

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT DISTINCT + CASE 42 WHEN + + 14 * 41 THEN NULL WHEN - 26 + 43 THEN NULL WHEN 52 * 24 THEN - 87 * 63 END * COUNT( * ) - + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT + CASE 42 WHEN + + 14 * 41 THEN NULL WHEN - 26 + 43 THEN NULL WHEN 52 * 24 THEN - 87 * 63 END * COUNT ( * ) - + 31 AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 10, + 71 * - 22 ) * - 71 col1
----
710

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT NULLIF ( + 18, - 99 * 69 + COALESCE ( - 60, + CASE COUNT( ALL - 20 ) WHEN - 78 THEN NULL WHEN 93 THEN NULL WHEN 61 THEN - 29 + + 65 * + 19 END ) ) * + 7 - - 95 * 89 col1
----
8581

skipif mysql # not compatible
query I rowsort label-4368
SELECT NULLIF ( + 18, - 99 * 69 + COALESCE ( - 60, + CASE COUNT ( ALL - 20 ) WHEN - 78 THEN NULL WHEN 93 THEN NULL WHEN 61 THEN - 29 + + 65 * + 19 END ) ) * + 7 - - 95 * 89 col1
----
8581

onlyif mysql # aggregate syntax: 
query II rowsort label-4369
SELECT ALL + 95 AS col1, - 50 + - MAX( DISTINCT + 21 ) + - 5 * 61 AS col0
----
95
-376

skipif mysql # not compatible
query II rowsort label-4369
SELECT ALL + 95 AS col1, - 50 + - MAX ( DISTINCT + 21 ) + - 5 * 61 AS col0
----
95
-376

query II rowsort
SELECT + 17 AS col1, 48 + + 8 + 91 * + 85 * 26
----
17
201166

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT + NULLIF ( - 66, ( COUNT( * ) ) ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4371
SELECT + NULLIF ( - 66, ( COUNT ( * ) ) ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT CASE + COUNT( * ) WHEN + 82 THEN 71 + + MAX( DISTINCT - 12 ) WHEN 86 + 83 THEN - 91 ELSE + COUNT( * ) END col1
----
1

skipif mysql # not compatible
query I rowsort label-4372
SELECT CASE + COUNT ( * ) WHEN + 82 THEN 71 + + MAX ( DISTINCT - 12 ) WHEN 86 + 83 THEN - 91 ELSE + COUNT ( * ) END col1
----
1

query I rowsort
SELECT 3 * + 4 + + 70 AS col2
----
82

query I rowsort
SELECT + 65 * + + 94
----
6110

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL + NULLIF ( + 24, - COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL + NULLIF ( + 24, - COUNT ( * ) )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4376
SELECT + CAST( - ( + + 55 ) AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-4376
SELECT + CAST ( - ( + + 55 ) AS INTEGER )
----
-55

query I rowsort
SELECT NULLIF ( 29, 38 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4378
SELECT + 22 AS col2, + 19 * - ( + CASE CAST( COUNT( ALL + 24 ) AS SIGNED ) WHEN 33 * + 69 + + 3 * 94 THEN - 46 ELSE NULL END ) col0
----
22
NULL

skipif mysql # not compatible
query II rowsort label-4378
SELECT + 22 AS col2, + 19 * - ( + CASE CAST ( COUNT ( ALL + 24 ) AS INTEGER ) WHEN 33 * + 69 + + 3 * 94 THEN - 46 ELSE NULL END ) col0
----
22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT - COUNT( * ) * - - 9 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4379
SELECT - COUNT ( * ) * - - 9 AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4380
SELECT + MIN( - - 87 ) + 82 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT + MIN ( - - 87 ) + 82 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 13 * - 9 * + 70 AS col0
----
-8190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4382
SELECT 97 col1, COALESCE ( - ( 87 ), 59 + COUNT( * ), CAST( NULL AS SIGNED ) + - 57 ) * - 61
----
97
5307

skipif mysql # not compatible
query II rowsort label-4382
SELECT 97 col1, COALESCE ( - ( 87 ), 59 + COUNT ( * ), CAST ( NULL AS INTEGER ) + - 57 ) * - 61
----
97
5307

query I rowsort
SELECT - + 74 + + 19 + ( - 76 )
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + - - 23 * - 72 + 43 AS col2
----
-1612

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + - - 23 * - 72 + 43 AS col2
----
-1612

query I rowsort
SELECT ALL - 19 + + + 38 - 50 - 50
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4386
SELECT DISTINCT + 61 + - 26 + - 30 + + COUNT( ALL 52 ) * CAST( - 68 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT + 61 + - 26 + - 30 + + COUNT ( ALL 52 ) * CAST ( - 68 AS INTEGER )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4387
SELECT ALL - 70 DIV COUNT( * ) col0
----
-70

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL - 70 / COUNT ( * ) col0
----
-70

query I rowsort
SELECT - - 59 + 32
----
91

query I rowsort
SELECT - + 48 * ( 49 )
----
-2352

query I rowsort
SELECT DISTINCT - + 96 * 40 AS col0
----
-3840

query I rowsort
SELECT ALL + + COALESCE ( 26, 71 + - 50 * 30, 2 ) + - 19
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT - - 73 + CASE - 60 WHEN 38 THEN CASE 86 WHEN + MAX( DISTINCT + ( - 6 ) ) THEN - 28 - 74 WHEN - 66 THEN NULL ELSE - 7 - - 87 END * 76 WHEN COUNT( * ) / COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4392
SELECT - - 73 + CASE - 60 WHEN 38 THEN CASE 86 WHEN + MAX ( DISTINCT + ( - 6 ) ) THEN - 28 - 74 WHEN - 66 THEN NULL ELSE - 7 - - 87 END * 76 WHEN COUNT ( * ) / COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT + 67 - - 8
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ALL + COUNT( * ) * NULLIF ( + + 31, + 5 )
----
31

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + COUNT ( * ) * NULLIF ( + + 31, + 5 )
----
31

query I rowsort
SELECT ALL - 70 - 13 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT DISTINCT + ( + - 27 ) - + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT + ( + - 27 ) - + COUNT ( * )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4397
SELECT DISTINCT + COALESCE ( 43, 84 ) DIV + + 61 - + 58
----
-58

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT + COALESCE ( 43, 84 ) / + + 61 - + 58
----
-58

query I rowsort
SELECT + ( + + NULLIF ( + 22, - 36 + + 16 ) )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT + SUM( DISTINCT + 28 ) + - - 2
----
30

skipif mysql # not compatible
query I rowsort label-4399
SELECT + SUM ( DISTINCT + 28 ) + - - 2
----
30

query I rowsort
SELECT 40 * - + ( + + 48 ) AS col1
----
-1920

query I rowsort
SELECT DISTINCT 0 - - 75
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4402
SELECT + COUNT( * ) DIV 85 + - COALESCE ( CAST( - 4 AS SIGNED ), 6 ) + 56
----
60

skipif mysql # not compatible
query I rowsort label-4402
SELECT + COUNT ( * ) / 85 + - COALESCE ( CAST ( - 4 AS INTEGER ), 6 ) + 56
----
60

query I rowsort
SELECT 65 * + 70 * + 9 AS col2
----
40950

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT ALL 47 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL 47 / - 75
----
0

query I rowsort
SELECT DISTINCT 64 * + 77 col0
----
4928

query I rowsort
SELECT ( 33 ) + - 7
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4407
SELECT ALL 99 * COUNT( ALL - - ( + 97 ) ) DIV 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL 99 * COUNT ( ALL - - ( + 97 ) ) / 65 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4408
SELECT 55 * + COUNT( * ) AS col0, 31 AS col2
----
55
31

skipif mysql # not compatible
query II rowsort label-4408
SELECT 55 * + COUNT ( * ) AS col0, 31 AS col2
----
55
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT 64 * - + CAST( NULL AS SIGNED ) + + 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT 64 * - + CAST ( NULL AS INTEGER ) + + 47 col2
----
NULL

query I rowsort
SELECT + 49 + + 97 * 87
----
8488

onlyif mysql # DIV for integer division: 
query I rowsort label-4411
SELECT 69 DIV - 48 - + - 37 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4411
SELECT 69 / - 48 - + - 37 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT - COUNT( * ) * - COUNT( * ) * + + COUNT( * ) * + + 26 + 83
----
109

skipif mysql # not compatible
query I rowsort label-4412
SELECT - COUNT ( * ) * - COUNT ( * ) * + + COUNT ( * ) * + + 26 + 83
----
109

query I rowsort
SELECT DISTINCT + 82 + - 23 - + 42 AS col2
----
17

query I rowsort
SELECT ALL 85 + - 49
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT - - 35 + - 17 * - COUNT( * ) col0
----
52

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT - - 35 + - 17 * - COUNT ( * ) col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4416
SELECT ALL - ( + + 92 ) + COUNT( * ) DIV + 72 * + 77 col2
----
-92

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL - ( + + 92 ) + COUNT ( * ) / + 72 * + 77 col2
----
-92

query I rowsort
SELECT + 51 + - 86 * - 65 AS col1
----
5641

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT ALL + MAX( ALL 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL + MAX ( ALL 36 ) AS col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4419
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 19 AS col1, + 18
----
NULL
18

skipif mysql # not compatible
query II rowsort label-4419
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 19 AS col1, + 18
----
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL - COUNT( * ) + - - 68
----
67

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL - COUNT ( * ) + - - 68
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4421
SELECT 48 * + 16 * - ( - 96 ) - CAST( - 7 AS SIGNED )
----
73735

skipif mysql # not compatible
query I rowsort label-4421
SELECT 48 * + 16 * - ( - 96 ) - CAST ( - 7 AS INTEGER )
----
73735

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT COUNT( DISTINCT - 13 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4422
SELECT COUNT ( DISTINCT - 13 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 74 - + 93 + + 71 AS col2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4424
SELECT DISTINCT - 63 * - 77 * 61 * - CAST( NULL AS SIGNED ) * - ( 42 ) + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT - 63 * - 77 * 61 * - CAST ( NULL AS INTEGER ) * - ( 42 ) + + 70
----
NULL

query I rowsort
SELECT DISTINCT - ( 77 ) - + + 75 AS col0
----
-152

query I rowsort
SELECT ALL - 38 * + 39 AS col1
----
-1482

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT 50 DIV + 21
----
2

skipif mysql # not compatible
query I rowsort label-4427
SELECT 50 / + 21
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT NULLIF ( + - 21, + 46 + - COUNT( * ) ) * 76 * 65 AS col1
----
-103740

skipif mysql # not compatible
query I rowsort label-4428
SELECT NULLIF ( + - 21, + 46 + - COUNT ( * ) ) * 76 * 65 AS col1
----
-103740

onlyif mysql # aggregate syntax: 
query II rowsort label-4429
SELECT 57 + + SUM( DISTINCT 94 ) col1, 33 + + COUNT( * ) AS col1
----
151
34

skipif mysql # not compatible
query II rowsort label-4429
SELECT 57 + + SUM ( DISTINCT 94 ) col1, 33 + + COUNT ( * ) AS col1
----
151
34

query II rowsort
SELECT - 5 AS col0, - 43 - - 8
----
-5
-35

query I rowsort
SELECT ALL + 39 * - - 75
----
2925

query I rowsort
SELECT 40 - 76
----
-36

query I rowsort
SELECT 39 * 79 + - 87 + - - NULLIF ( 70, 82 )
----
3064

query I rowsort
SELECT 85 * - 91
----
-7735

query I rowsort
SELECT ALL - 67 * 14
----
-938

query I rowsort
SELECT DISTINCT - ( 80 ) AS col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4437
SELECT + 21 DIV 70 + - 78
----
-78

skipif mysql # not compatible
query I rowsort label-4437
SELECT + 21 / 70 + - 78
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL + COUNT( * ) * CASE - - ( - 38 ) WHEN - 57 THEN 36 + 45 * - 34 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL + COUNT ( * ) * CASE - - ( - 38 ) WHEN - 57 THEN 36 + 45 * - 34 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4439
SELECT 66 DIV + 71 col0
----
0

skipif mysql # not compatible
query I rowsort label-4439
SELECT 66 / + 71 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4440
SELECT ALL - 76 * + SUM( DISTINCT - CAST( - 8 AS SIGNED ) ) * - 37
----
22496

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL - 76 * + SUM ( DISTINCT - CAST ( - 8 AS INTEGER ) ) * - 37
----
22496

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL - 67 * - + COALESCE ( ( 42 ), - + 55, + COUNT( * ) ) AS col0
----
2814

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL - 67 * - + COALESCE ( ( 42 ), - + 55, + COUNT ( * ) ) AS col0
----
2814

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT + MIN( - - 5 ) * - NULLIF ( 89, COUNT( * ) ) * 0 - + 96 * - 72 col2
----
6912

skipif mysql # not compatible
query I rowsort label-4442
SELECT + MIN ( - - 5 ) * - NULLIF ( 89, COUNT ( * ) ) * 0 - + 96 * - 72 col2
----
6912

query I rowsort
SELECT ALL - ( + + 5 ) AS col1
----
-5

query I rowsort
SELECT ALL + 95 + + + 79
----
174

query I rowsort
SELECT 0 * + 41 AS col0
----
0

query I rowsort
SELECT ALL - 13 + 49
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4447
SELECT - CASE - 20 WHEN SUM( 88 ) THEN NULL ELSE + 82 * CAST( NULL AS DECIMAL ) END * CAST( - 33 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4447
SELECT - CASE - 20 WHEN SUM ( 88 ) THEN NULL ELSE + 82 * CAST ( NULL AS REAL ) END * CAST ( - 33 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4448
SELECT + 73 AS col1, 46 + + COUNT( * ) AS col1
----
73
47

skipif mysql # not compatible
query II rowsort label-4448
SELECT + 73 AS col1, 46 + + COUNT ( * ) AS col1
----
73
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4449
SELECT DISTINCT - 22 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT - 22 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 30 * - 90
----
-2700

onlyif mysql # aggregate syntax: 
query II rowsort label-4451
SELECT + MIN( + 72 ) * COUNT( * ) AS col0, - 71 AS col0
----
72
-71

skipif mysql # not compatible
query II rowsort label-4451
SELECT + MIN ( + 72 ) * COUNT ( * ) AS col0, - 71 AS col0
----
72
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT ALL - - COUNT( * ) + 40
----
41

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL - - COUNT ( * ) + 40
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT DISTINCT 48 * - 24 * + - 82 * COUNT( * )
----
94464

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT 48 * - 24 * + - 82 * COUNT ( * )
----
94464

query I rowsort
SELECT 67 * 37 + - - 2 + - 13 - + ( - 69 ) AS col2
----
2537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4455
SELECT DISTINCT - - CASE COUNT( * ) WHEN + 68 * - 86 THEN + - 97 + - 62 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE - 77 * 28 + 88 END
----
-2068

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT - - CASE COUNT ( * ) WHEN + 68 * - 86 THEN + - 97 + - 62 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 77 * 28 + 88 END
----
-2068

query I rowsort
SELECT ALL + 3 * - 68 col2
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT 94 * - 67 * + 2 * COUNT( * ) + + 61
----
-12535

skipif mysql # not compatible
query I rowsort label-4457
SELECT 94 * - 67 * + 2 * COUNT ( * ) + + 61
----
-12535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4458
SELECT CAST( NULL AS SIGNED ) * - 30 + + + 15 + - NULLIF ( - NULLIF ( - COUNT( * ), + 53 ), + 4 * + 26 + 12 * 2 ) + MAX( 59 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT CAST ( NULL AS INTEGER ) * - 30 + + + 15 + - NULLIF ( - NULLIF ( - COUNT ( * ), + 53 ), + 4 * + 26 + 12 * 2 ) + MAX ( 59 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4459
SELECT - - 86 AS col0, 72 DIV - + 17 - - - 42 * 72 DIV 13 AS col0
----
86
-236

skipif mysql # not compatible
query II rowsort label-4459
SELECT - - 86 AS col0, 72 / - + 17 - - - 42 * 72 / 13 AS col0
----
86
-236

query I rowsort
SELECT ALL 32 + + 70
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4461
SELECT - - 1 * + + 29 * + - 89 + + 56 DIV + + NULLIF ( COUNT( - 94 ), + 29 )
----
-2525

skipif mysql # not compatible
query I rowsort label-4461
SELECT - - 1 * + + 29 * + - 89 + + 56 / + + NULLIF ( COUNT ( - 94 ), + 29 )
----
-2525

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT + 71 * + COUNT( * ) * - 79
----
-5609

skipif mysql # not compatible
query I rowsort label-4462
SELECT + 71 * + COUNT ( * ) * - 79
----
-5609

query II rowsort
SELECT - - 32 col0, - 43 * + 84
----
32
-3612

query I rowsort
SELECT - 15 + + 38
----
23

query I rowsort
SELECT 65 + + ( - 59 ) AS col1
----
6

query I rowsort
SELECT ALL NULLIF ( - 85, - 74 )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4467
SELECT DISTINCT 43 col2, MIN( ALL - 34 ) * 29 + - + 84 AS col2
----
43
-1070

skipif mysql # not compatible
query II rowsort label-4467
SELECT DISTINCT 43 col2, MIN ( ALL - 34 ) * 29 + - + 84 AS col2
----
43
-1070

query I rowsort
SELECT 60 + 25 + - 88
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT + 96 * COALESCE ( + - 67, - + 61, 88 - MAX( DISTINCT - 23 ) )
----
-6432

skipif mysql # not compatible
query I rowsort label-4469
SELECT + 96 * COALESCE ( + - 67, - + 61, 88 - MAX ( DISTINCT - 23 ) )
----
-6432

query II rowsort
SELECT - 60 + 26 - 25 * 17, 10 AS col0
----
-459
10

query II rowsort
SELECT 17, - 20 AS col1
----
17
-20

query I rowsort
SELECT + 48 + - NULLIF ( + + 98, - 83 + 4 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL MAX( ALL + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL MAX ( ALL + 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT DISTINCT MAX( ALL 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT MAX ( ALL 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT DISTINCT ( COUNT( * ) ) * - 89 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT ( COUNT ( * ) ) * - 89 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT - 81 + - - ( + 77 ) * + MAX( ALL 96 )
----
7311

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT - 81 + - - ( + 77 ) * + MAX ( ALL 96 )
----
7311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4477
SELECT CAST( NULL AS SIGNED ) / + - 83 / - - 63 + ( - ( + 99 ) ) + - 86 / + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT CAST ( NULL AS INTEGER ) / + - 83 / - - 63 + ( - ( + 99 ) ) + - 86 / + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL 48 * + - MAX( DISTINCT + + COALESCE ( 40, + + 77 ) ) + + + AVG ( + 26 ) * + CASE 50 WHEN AVG ( ALL + ( + 71 ) ) * 60 + + CASE - 80 WHEN 73 THEN NULL WHEN - 45 + 77 * 92 THEN NULL ELSE + 67 END THEN ( 99 ) - + 69 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL 48 * + - MAX ( DISTINCT + + COALESCE ( 40, + + 77 ) ) + + + AVG ( + 26 ) * + CASE 50 WHEN AVG ( ALL + ( + 71 ) ) * 60 + + CASE - 80 WHEN 73 THEN NULL WHEN - 45 + 77 * 92 THEN NULL ELSE + 67 END THEN ( 99 ) - + 69 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 16 * + - 64 + - - 71 AS col1
----
-953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4480
SELECT - 88 DIV CAST( + COUNT( * ) AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-4480
SELECT - 88 / CAST ( + COUNT ( * ) AS INTEGER )
----
-88

query I rowsort
SELECT DISTINCT + 90 * - - 46
----
4140

query I rowsort
SELECT ALL + 93 * 49 * - 8 * + - 95
----
3463320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4483
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) * + 34 + - CAST( NULL AS SIGNED ) + - - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 34 + - CAST ( NULL AS INTEGER ) + - - 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4484
SELECT DISTINCT + - MAX( + CAST( NULL AS SIGNED ) ) * + 32 / - 8 - + 34 + + 32 * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT + - MAX ( + CAST ( NULL AS INTEGER ) ) * + 32 / - 8 - + 34 + + 32 * + 78
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4485
SELECT - 6 + - ( + 37 ) DIV + - 3 + + - 69
----
-63

skipif mysql # not compatible
query I rowsort label-4485
SELECT - 6 + - ( + 37 ) / + - 3 + + - 69
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT DISTINCT + SUM( ALL NULLIF ( - 33, + + 32 * + 94 * 1 + 92 ) ) * COUNT( * ) + - COUNT( - 38 ) * COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT + SUM ( ALL NULLIF ( - 33, + + 32 * + 94 * 1 + 92 ) ) * COUNT ( * ) + - COUNT ( - 38 ) * COUNT ( * ) AS col2
----
-34

query I rowsort
SELECT - + 63 * 86
----
-5418

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT DISTINCT + + COUNT( ALL + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT + + COUNT ( ALL + 18 )
----
1

query I rowsort
SELECT ALL - 12 * 22 - - 36 AS col2
----
-228

query I rowsort
SELECT + 47 + - - 14
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT DISTINCT - 69 * + 6 - COUNT( * )
----
-415

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT - 69 * + 6 - COUNT ( * )
----
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL + MIN( - + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + MIN ( - + 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT DISTINCT 48 * + COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT 48 * + COUNT ( * ) AS col1
----
48

query I rowsort
SELECT ALL + - 75 * 2 * - 21 + + 61 - + 18
----
3193

query II rowsort
SELECT DISTINCT + 8 col0, + 77 AS col0
----
8
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT ALL MAX( - 77 ) * CAST( NULL AS SIGNED ) + - 32 + - COUNT( * ) * + ( + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL MAX ( - 77 ) * CAST ( NULL AS INTEGER ) + - 32 + - COUNT ( * ) * + ( + 80 )
----
NULL

query I rowsort
SELECT ALL + + 9 * + - 44 * + 93 + - - 36 AS col2
----
-36792

onlyif mysql # aggregate syntax: 
query II rowsort label-4498
SELECT ALL - 70, - 52 + + + COUNT( * ) * 65 + - 5 AS col1
----
-70
8

skipif mysql # not compatible
query II rowsort label-4498
SELECT ALL - 70, - 52 + + + COUNT ( * ) * 65 + - 5 AS col1
----
-70
8

query I rowsort
SELECT DISTINCT + + 84 * 81
----
6804

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4500
SELECT + ( + COUNT( * ) ) DIV - + 30, 83 * + 0 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-4500
SELECT + ( + COUNT ( * ) ) / - + 30, 83 * + 0 AS col2
----
0
0

query II rowsort
SELECT + 48 * + - 66, 64 + - 42 + - 75 - - 43 AS col1
----
-3168
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT - CASE + 11 WHEN - 62 + + 55 + - - 93 + - + 40 * + 82 / + 33 THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT - CASE + 11 WHEN - 62 + + 55 + - - 93 + - + 40 * + 82 / + 33 THEN - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4503
SELECT ALL MAX( CAST( + ( + 36 ) AS SIGNED ) )
----
36

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL MAX ( CAST ( + ( + 36 ) AS INTEGER ) )
----
36

query II rowsort
SELECT - ( + 88 ), 81 * - + 23 AS col0
----
-88
-1863

query I rowsort
SELECT ALL 12 + + 12 + 47 + - 58
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4506
SELECT DISTINCT 71 * + 80 AS col2, + 75 AS col2, 15 - + COALESCE ( - 28, - 86 * - SUM( ALL - 98 DIV 44 ) )
----
5680
75
43

skipif mysql # not compatible
query III rowsort label-4506
SELECT DISTINCT 71 * + 80 AS col2, + 75 AS col2, 15 - + COALESCE ( - 28, - 86 * - SUM ( ALL - 98 / 44 ) )
----
5680
75
43

query I rowsort
SELECT DISTINCT 83 + 52 AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT DISTINCT 42 + 62 * + ( 22 ) * - 79 * SUM( - + 24 )
----
2586186

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT 42 + 62 * + ( 22 ) * - 79 * SUM ( - + 24 )
----
2586186

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT - CASE - - COUNT( * ) WHEN + MAX( + - 49 ) * + 35 THEN NULL ELSE 79 END AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4509
SELECT - CASE - - COUNT ( * ) WHEN + MAX ( + - 49 ) * + 35 THEN NULL ELSE 79 END AS col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4510
SELECT + ( + CAST( - - 9 AS SIGNED ) ) * - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-4510
SELECT + ( + CAST ( - - 9 AS INTEGER ) ) * - COUNT ( * )
----
-9

query I rowsort
SELECT ALL 76 + + 84 + - + ( + - 89 ) + + 54 * - 71 * - 78 col2
----
299301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4512
SELECT + 35 + - 25 + - COUNT( * ) + 72 * 57 + + + CAST( + 68 AS SIGNED ) * - 77
----
-1123

skipif mysql # not compatible
query I rowsort label-4512
SELECT + 35 + - 25 + - COUNT ( * ) + 72 * 57 + + + CAST ( + 68 AS INTEGER ) * - 77
----
-1123

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL MIN( + 50 ) / - ( - 26 ) - - 25 + 85 - + 38 / CASE + 87 + 0 WHEN + 20 THEN 61 * + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL MIN ( + 50 ) / - ( - 26 ) - - 25 + 85 - + 38 / CASE + 87 + 0 WHEN + 20 THEN 61 * + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4514
SELECT DISTINCT + CASE MAX( + 9 ) WHEN + 64 THEN + 53 * 3 * - COUNT( * ) * ( + 13 * - 15 ) + 76 * + CAST( + AVG ( DISTINCT 50 ) AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT + CASE MAX ( + 9 ) WHEN + 64 THEN + 53 * 3 * - COUNT ( * ) * ( + 13 * - 15 ) + 76 * + CAST ( + AVG ( DISTINCT 50 ) AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4515
SELECT DISTINCT + 94 DIV 40 + 9 * + 91 + + CAST( + 22 AS SIGNED )
----
843

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT + 94 / 40 + 9 * + 91 + + CAST ( + 22 AS INTEGER )
----
843

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT ALL MAX( ALL + + 32 ) * - + 92 AS col2
----
-2944

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL MAX ( ALL + + 32 ) * - + 92 AS col2
----
-2944

onlyif mysql # DIV for integer division: 
query I rowsort label-4517
SELECT ALL + ( 12 ) DIV + 37 + + - 66 + + 78 * 25 DIV + + 34 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL + ( 12 ) / + 37 + + - 66 + + 78 * 25 / + + 34 AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4518
SELECT DISTINCT + + 29 DIV SUM( + + 73 )
----
0

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT + + 29 / SUM ( + + 73 )
----
0

query I rowsort
SELECT DISTINCT + + ( - 11 )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4520
SELECT DISTINCT - - COUNT( * ) DIV - ( - 56 ) - 67
----
-67

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT - - COUNT ( * ) / - ( - 56 ) - 67
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4521
SELECT ALL - - ( + NULLIF ( - - COUNT( * ), + 85 ) ) DIV - 59 + 67 - + 26 + + 22 DIV 90 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - - ( + NULLIF ( - - COUNT ( * ), + 85 ) ) / - 59 + 67 - + 26 + + 22 / 90 AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT ALL + - 61 DIV + 50 + - - 81 - + ( - + 64 ) AS col2
----
144

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + - 61 / + 50 + - - 81 - + ( - + 64 ) AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT - + COUNT( * ) * - + 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-4523
SELECT - + COUNT ( * ) * - + 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL - - 87 * CASE + ( - 22 ) WHEN 59 THEN COUNT( * ) - + + 79 ELSE 0 * - 57 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - - 87 * CASE + ( - 22 ) WHEN 59 THEN COUNT ( * ) - + + 79 ELSE 0 * - 57 END AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4525
SELECT ALL 54 DIV 44 AS col0, 34
----
1
34

skipif mysql # not compatible
query II rowsort label-4525
SELECT ALL 54 / 44 AS col0, 34
----
1
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4526
SELECT ALL + COUNT( * ) * + - COALESCE ( - 8, - + CASE + COALESCE ( + 93, - + 56 ) WHEN 94 THEN NULL WHEN 13 THEN - 86 + 80 END * - 18, 93, 89 ) - MIN( DISTINCT - 77 + 49 ) DIV + 37
----
8

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL + COUNT ( * ) * + - COALESCE ( - 8, - + CASE + COALESCE ( + 93, - + 56 ) WHEN 94 THEN NULL WHEN 13 THEN - 86 + 80 END * - 18, 93, 89 ) - MIN ( DISTINCT - 77 + 49 ) / + 37
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT ALL - + CASE + + ( + COUNT( * ) ) WHEN 27 * 30 * + COUNT( * ) - - 52 THEN NULL WHEN + CASE SUM( + 13 ) WHEN + 55 THEN 27 - 59 WHEN 31 * 73 THEN NULL ELSE NULL END * COUNT( * ) THEN 53 + COUNT( * ) WHEN + 46 THEN NULL ELSE NULL END * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL - + CASE + + ( + COUNT ( * ) ) WHEN 27 * 30 * + COUNT ( * ) - - 52 THEN NULL WHEN + CASE SUM ( + 13 ) WHEN + 55 THEN 27 - 59 WHEN 31 * 73 THEN NULL ELSE NULL END * COUNT ( * ) THEN 53 + COUNT ( * ) WHEN + 46 THEN NULL ELSE NULL END * - 79
----
NULL

query II rowsort
SELECT - 24 * - - 88 * ( 2 ) * 7 AS col0, 30 * + + 76 AS col0
----
-29568
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL + + 82 * + 36 * + MAX( DISTINCT 59 ) AS col1
----
174168

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + + 82 * + 36 * + MAX ( DISTINCT 59 ) AS col1
----
174168

query II rowsort
SELECT - + 63 * + 95 AS col1, 1 * + 91 * - - 9
----
-5985
819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4531
SELECT CASE + SUM( ALL - 65 ) WHEN - CAST( NULL AS SIGNED ) * + 61 + - 14 + + 50 * + CAST( NULL AS SIGNED ) * - 62 THEN 69 ELSE NULL END * - 53 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT CASE + SUM ( ALL - 65 ) WHEN - CAST ( NULL AS INTEGER ) * + 61 + - 14 + + 50 * + CAST ( NULL AS INTEGER ) * - 62 THEN 69 ELSE NULL END * - 53 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT - 91 * - + MIN( 77 ) * 7 + - + 13
----
49036

skipif mysql # not compatible
query I rowsort label-4532
SELECT - 91 * - + MIN ( 77 ) * 7 + - + 13
----
49036

query II rowsort
SELECT - 90 col0, ( + 62 ) * + 37 + - + 93 + - ( - + 52 ) AS col0
----
-90
2253

query I rowsort
SELECT ALL - 80 + - 89 AS col1
----
-169

query I rowsort
SELECT 50 + - + 36 AS col1
----
14

query II rowsort
SELECT ALL 44 AS col0, 66 * 7
----
44
462

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4537
SELECT MAX( ALL 17 ) + - + 53 AS col2, NULLIF ( + - COUNT( * ), - 2 * 16 DIV - 65 + 93 ) DIV 42
----
-36
0

skipif mysql # not compatible
query II rowsort label-4537
SELECT MAX ( ALL 17 ) + - + 53 AS col2, NULLIF ( + - COUNT ( * ), - 2 * 16 / - 65 + 93 ) / 42
----
-36
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL 37 * 1 * - - SUM( - ( + 57 ) ) * + - 63 - 46 + + 3 + 0 * - COUNT( * ) AS col2
----
132824

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL 37 * 1 * - - SUM ( - ( + 57 ) ) * + - 63 - 46 + + 3 + 0 * - COUNT ( * ) AS col2
----
132824

onlyif mysql # aggregate syntax: 
query II rowsort label-4539
SELECT DISTINCT 51, + 97 * + SUM( DISTINCT - 18 ) * - 46 col0
----
51
80316

skipif mysql # not compatible
query II rowsort label-4539
SELECT DISTINCT 51, + 97 * + SUM ( DISTINCT - 18 ) * - 46 col0
----
51
80316

query I rowsort
SELECT ALL + 80 + - + 45
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT 75 + 43 + 51 DIV + 86 * - - 47
----
118

skipif mysql # not compatible
query I rowsort label-4541
SELECT 75 + 43 + 51 / + 86 * - - 47
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT ALL - 17 + + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL - 17 + + COUNT ( * )
----
-16

query I rowsort
SELECT DISTINCT + 63 + + 26 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL - 8 * - COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL - 8 * - COUNT ( * ) AS col2
----
8

query I rowsort
SELECT ALL 77 + - 49 AS col2
----
28

query II rowsort
SELECT - 66 AS col2, 63 AS col0
----
-66
63

query II rowsort
SELECT ALL 68, 8 AS col0
----
68
8

query I rowsort
SELECT 75 * - 21 AS col0
----
-1575

query I rowsort
SELECT 10 * - - 2 * - 77 * + - 14 AS col2
----
21560

query II rowsort
SELECT ALL 23, 49 + 32 col0
----
23
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT ALL COUNT( * ) + - + 27 + + 1 + - - 77
----
52

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL COUNT ( * ) + - + 27 + + 1 + - - 77
----
52

query II rowsort
SELECT 53 AS col2, - 83
----
53
-83

query I rowsort
SELECT ALL + 45 + - 63
----
-18

query I rowsort
SELECT 0 * + 91 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4555
SELECT - 25 col1, + 96 * CASE + COUNT( * ) WHEN + 42 THEN + 84 WHEN - + 28 * - 17 + 26 THEN NULL ELSE - 62 END * 51
----
-25
-303552

skipif mysql # not compatible
query II rowsort label-4555
SELECT - 25 col1, + 96 * CASE + COUNT ( * ) WHEN + 42 THEN + 84 WHEN - + 28 * - 17 + 26 THEN NULL ELSE - 62 END * 51
----
-25
-303552

query I rowsort
SELECT ALL - 85 * + 71
----
-6035

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT + 74 - 0 + + - 73 * 79 * - COUNT( * ) + - - 63 * - - 21 + + 5 + + 13 col2
----
7182

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT + 74 - 0 + + - 73 * 79 * - COUNT ( * ) + - - 63 * - - 21 + + 5 + + 13 col2
----
7182

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ALL - CASE COUNT( * ) WHEN + 51 THEN - 60 * - - COUNT( * ) + + - 28 + 93 + - - 31 WHEN - 42 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL - CASE COUNT ( * ) WHEN + 51 THEN - 60 * - - COUNT ( * ) + + - 28 + 93 + - - 31 WHEN - 42 THEN NULL END
----
NULL

query II rowsort
SELECT 61 + - 11 - 32 AS col0, 78 AS col1
----
18
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT ALL - 41 - + COUNT( * ) * COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL - 41 - + COUNT ( * ) * COUNT ( * ) AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4561
SELECT ALL 85 * ( - + COUNT( * ) ) * MAX( - CAST( + ( 44 ) AS SIGNED ) ) * 61 - - 92 + + COUNT( * )
----
228233

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL 85 * ( - + COUNT ( * ) ) * MAX ( - CAST ( + ( 44 ) AS INTEGER ) ) * 61 - - 92 + + COUNT ( * )
----
228233

onlyif mysql # DIV for integer division: 
query I rowsort label-4562
SELECT + 26 * 96 DIV + 87 + + 68
----
96

skipif mysql # not compatible
query I rowsort label-4562
SELECT + 26 * 96 / + 87 + + 68
----
96

query II rowsort
SELECT ALL - 82 AS col2, - 94 * - ( - + 71 ) AS col1
----
-82
-6674

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4564
SELECT - COUNT( * ) DIV + 43 + + 24, ( 7 ) * + 84 + - 34 AS col0
----
24
554

skipif mysql # not compatible
query II rowsort label-4564
SELECT - COUNT ( * ) / + 43 + + 24, ( 7 ) * + 84 + - 34 AS col0
----
24
554

query I rowsort
SELECT DISTINCT + 33 - 13
----
20

query I rowsort
SELECT 71 * + + 87 AS col1
----
6177

onlyif mysql # aggregate syntax: 
query II rowsort label-4567
SELECT ALL - - 25, 77 * COUNT( * ) * - COUNT( * ) AS col0
----
25
-77

skipif mysql # not compatible
query II rowsort label-4567
SELECT ALL - - 25, 77 * COUNT ( * ) * - COUNT ( * ) AS col0
----
25
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4568
SELECT - NULLIF ( + 12, - 1 * 84 + - 80 - - - 66 ) DIV + 77 * + COUNT( * ) + NULLIF ( - 55 + 30 * 94, + 94 ) * + 2 AS col2
----
5530

skipif mysql # not compatible
query I rowsort label-4568
SELECT - NULLIF ( + 12, - 1 * 84 + - 80 - - - 66 ) / + 77 * + COUNT ( * ) + NULLIF ( - 55 + 30 * 94, + 94 ) * + 2 AS col2
----
5530

onlyif mysql # DIV for integer division: 
query I rowsort label-4569
SELECT ALL - 8 DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL - 8 / + 99 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT MIN( DISTINCT - 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-4570
SELECT MIN ( DISTINCT - 80 ) AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4571
SELECT + 63 * CAST( NULL AS SIGNED ) + - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT + 63 * CAST ( NULL AS INTEGER ) + - 8 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4572
SELECT DISTINCT - + 92 DIV 92 * 54
----
-54

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT - + 92 / 92 * 54
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT 86 * - AVG ( + - 83 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT 86 * - AVG ( + - 83 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 17 + + CASE + 49 WHEN + 37 THEN + + 5 END + - 75 + 12 + 54 * + 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4575
SELECT ALL + 48 + - 72 + - + CAST( NULL AS SIGNED ) / 40 AS col1, 15 * + MAX( + - 22 ) AS col0
----
NULL
-330

skipif mysql # not compatible
query II rowsort label-4575
SELECT ALL + 48 + - 72 + - + CAST ( NULL AS INTEGER ) / 40 AS col1, 15 * + MAX ( + - 22 ) AS col0
----
NULL
-330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4576
SELECT DISTINCT - 94 + COUNT( * ) DIV + 41
----
-94

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT - 94 + COUNT ( * ) / + 41
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT DISTINCT COUNT( * ) DIV 72 * + + 51 * 6 * + - 31 * NULLIF ( - COUNT( * ), - + SUM( DISTINCT - 20 ) ) * - 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT COUNT ( * ) / 72 * + + 51 * 6 * + - 31 * NULLIF ( - COUNT ( * ), - + SUM ( DISTINCT - 20 ) ) * - 1 AS col1
----
0

query II rowsort
SELECT ALL - 76 + + - 46 + + 57 + - 49 + + 27 * + 76 * + 2 col0, + 76
----
3990
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4579
SELECT DISTINCT - 67 + - + 54 DIV - - ( NULLIF ( + - 46, - + 46 * - CAST( NULL AS SIGNED ) ) ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT - 67 + - + 54 / - - ( NULLIF ( + - 46, - + 46 * - CAST ( NULL AS INTEGER ) ) ) col0
----
-66

query I rowsort
SELECT DISTINCT - 94 + + - 90
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT - MIN( ALL + + 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4581
SELECT - MIN ( ALL + + 82 ) AS col1
----
-82

query I rowsort
SELECT 94 * - + 11 AS col2
----
-1034

query I rowsort
SELECT 65 - 52 * 32
----
-1599

query I rowsort
SELECT ALL + 49 + + 30 AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4585
SELECT 75 - 5 - 94 DIV 95 * + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-4585
SELECT 75 - 5 - 94 / 95 * + COUNT ( * )
----
70

query I rowsort
SELECT 84 * 72
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL - 77 * ( + + 58 ) * COUNT( * ) AS col2
----
-4466

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL - 77 * ( + + 58 ) * COUNT ( * ) AS col2
----
-4466

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4588
SELECT ALL - MIN( DISTINCT - 77 ) DIV 51
----
1

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL - MIN ( DISTINCT - 77 ) / 51
----
1

query I rowsort
SELECT ALL 17 * ( - 2 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT 16 + - CASE WHEN NOT + ( - 69 ) BETWEEN + + 21 + + - 98 - - 36 AND - 69 THEN COUNT( * ) ELSE COUNT( * ) END
----
15

skipif mysql # not compatible
query I rowsort label-4590
SELECT 16 + - CASE WHEN NOT + ( - 69 ) BETWEEN + + 21 + + - 98 - - 36 AND - 69 THEN COUNT ( * ) ELSE COUNT ( * ) END
----
15

query I rowsort
SELECT DISTINCT - 69 * + 89 AS col2
----
-6141

query I rowsort
SELECT 17 * + 23 * 55 AS col0
----
21505

query I rowsort
SELECT - 99 * - 26 - - COALESCE ( 79, + 44 ) + 89 col2
----
2742

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT - COUNT( * ) + NULLIF ( + 88, - 14 ) col0
----
87

skipif mysql # not compatible
query I rowsort label-4594
SELECT - COUNT ( * ) + NULLIF ( + 88, - 14 ) col0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4595
SELECT ALL 96 DIV ( - + 27 ) * + 54 + - COALESCE ( - COUNT( * ), 20 * + 29 )
----
-161

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL 96 / ( - + 27 ) * + 54 + - COALESCE ( - COUNT ( * ), 20 * + 29 )
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT + 66 * - - COALESCE ( - 8, - 2, + 3 * + 56 * + + COUNT( + ( 64 ) ) * 82 ) + + 26 AS col2
----
-502

skipif mysql # not compatible
query I rowsort label-4596
SELECT + 66 * - - COALESCE ( - 8, - 2, + 3 * + 56 * + + COUNT ( + ( 64 ) ) * 82 ) + + 26 AS col2
----
-502

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4597
SELECT + 32 DIV + COALESCE ( + NULLIF ( 89, 13 + + 72 + 91 ), - - 50, - 55 + CAST( 47 AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4597
SELECT + 32 / + COALESCE ( + NULLIF ( 89, 13 + + 72 + 91 ), - - 50, - 55 + CAST ( 47 AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4598
SELECT + NULLIF ( - COUNT( * ), 72 ) * - 71, + 64 AS col0
----
71
64

skipif mysql # not compatible
query II rowsort label-4598
SELECT + NULLIF ( - COUNT ( * ), 72 ) * - 71, + 64 AS col0
----
71
64

query I rowsort
SELECT - 46 * - 79 * + - 27 AS col0
----
-98118

query I rowsort
SELECT + 16 * - 20
----
-320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT NULLIF ( CAST( NULL AS SIGNED ), + ( - 63 ) ) * 62 - + + ( + ( - - 0 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT NULLIF ( CAST ( NULL AS INTEGER ), + ( - 63 ) ) * 62 - + + ( + ( - - 0 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT ALL + 12 * SUM( ALL - 22 ) * - 44 + + 42 * - 97 + + COUNT( * ) AS col0
----
7543

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL + 12 * SUM ( ALL - 22 ) * - 44 + + 42 * - 97 + + COUNT ( * ) AS col0
----
7543

query I rowsort
SELECT ALL - COALESCE ( 24, 54 ) * - 40 * 31 + - ( 50 ) * - 36 - + 69 + 88 AS col2
----
31579

query II rowsort
SELECT + COALESCE ( - 36, - 98 ), 87 * - + 26 AS col1
----
-36
-2262

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT ALL 89 * + - COUNT( * ) + - 99
----
-188

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL 89 * + - COUNT ( * ) + - 99
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT COUNT( DISTINCT + 69 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4607
SELECT COUNT ( DISTINCT + 69 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4608
SELECT + CAST( - ( - - ( + - 57 ) ) AS SIGNED ) - + + COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4608
SELECT + CAST ( - ( - - ( + - 57 ) ) AS INTEGER ) - + + COUNT ( * ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT COUNT( ALL 18 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4609
SELECT COUNT ( ALL 18 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT + COUNT( * ) * 28 + + - 86 + COUNT( * ) * - 27 col2
----
-85

skipif mysql # not compatible
query I rowsort label-4610
SELECT + COUNT ( * ) * 28 + + - 86 + COUNT ( * ) * - 27 col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT - 89 * - MIN( ALL - 62 )
----
-5518

skipif mysql # not compatible
query I rowsort label-4611
SELECT - 89 * - MIN ( ALL - 62 )
----
-5518

onlyif mysql # DIV for integer division: 
query I rowsort label-4612
SELECT DISTINCT 95 DIV + 59 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT 95 / + 59 AS col0
----
1

query I rowsort
SELECT - 65 - + 63 + 52 - 80 + + 36 * 41 * - + 6 AS col2
----
-9012

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT + NULLIF ( - 48, + + 18 ) + - MAX( 93 )
----
-141

skipif mysql # not compatible
query I rowsort label-4614
SELECT + NULLIF ( - 48, + + 18 ) + - MAX ( 93 )
----
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4615
SELECT ALL + 45 * - SUM( ALL + 85 ) AS col1, - 0 DIV - - 80 * + - 66 * 14 AS col2
----
-3825
0

skipif mysql # not compatible
query II rowsort label-4615
SELECT ALL + 45 * - SUM ( ALL + 85 ) AS col1, - 0 / - - 80 * + - 66 * 14 AS col2
----
-3825
0

query I rowsort
SELECT DISTINCT COALESCE ( - 80, 62 + 20 ) AS col0
----
-80

query I rowsort
SELECT ALL CASE + - 67 WHEN - 56 * + 19 + - - AVG ( ALL + 60 ) + + 19 THEN 59 END AS col2
----
NULL

query I rowsort
SELECT - 6 + 59 col0
----
53

query I rowsort
SELECT - 82 + + 51 + - 75
----
-106

query I rowsort
SELECT ALL - CASE - 31 WHEN - 81 THEN NULL WHEN + 82 THEN 0 + + 33 * 44 / + 53 ELSE NULL END - + 15
----
NULL

query I rowsort
SELECT + 93 * + 81
----
7533

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4622
SELECT - + 85, CAST( NULL AS SIGNED ) - 73 / + 90 AS col2
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-4622
SELECT - + 85, CAST ( NULL AS INTEGER ) - 73 / + 90 AS col2
----
-85
NULL

query I rowsort
SELECT ALL - CASE + 45 WHEN - + 84 + - - 61 THEN COALESCE ( + 56, 99, + 36 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT - - CAST( NULL AS SIGNED ) * 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT - - CAST ( NULL AS INTEGER ) * 43 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4625
SELECT - - 2 * - 13 DIV CAST( + 44 AS SIGNED ) - + 76
----
-76

skipif mysql # not compatible
query I rowsort label-4625
SELECT - - 2 * - 13 / CAST ( + 44 AS INTEGER ) - + 76
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4626
SELECT 49 AS col1, - 46 DIV COUNT( * ) + + + 51 + + SUM( - CAST( + 71 AS SIGNED ) )
----
49
-66

skipif mysql # not compatible
query II rowsort label-4626
SELECT 49 AS col1, - 46 / COUNT ( * ) + + + 51 + + SUM ( - CAST ( + 71 AS INTEGER ) )
----
49
-66

query I rowsort
SELECT DISTINCT - ( 63 ) * + COALESCE ( - 7, - + 47 )
----
441

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4628
SELECT - - COUNT( - 56 ) * + + COUNT( * ) DIV 34 * - + 28, + 0
----
0
0

skipif mysql # not compatible
query II rowsort label-4628
SELECT - - COUNT ( - 56 ) * + + COUNT ( * ) / 34 * - + 28, + 0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL + - 67 + 42 + + + 5 * + CASE 83 WHEN - 71 THEN NULL WHEN - COALESCE ( + - 38, + + 90 ) * + COUNT( * ) THEN 41 * 16 ELSE NULL END + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL + - 67 + 42 + + + 5 * + CASE 83 WHEN - 71 THEN NULL WHEN - COALESCE ( + - 38, + + 90 ) * + COUNT ( * ) THEN 41 * 16 ELSE NULL END + + 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4630
SELECT ALL + CAST( + 74 AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL + CAST ( + 74 AS INTEGER ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL + + ( MIN( - 46 ) ) * - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL + + ( MIN ( - 46 ) ) * - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT + ( + ( - 9 ) ) * + + COUNT( * ) - 72 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-4632
SELECT + ( + ( - 9 ) ) * + + COUNT ( * ) - 72 AS col2
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-4633
SELECT ALL + + COALESCE ( + 27, + 61 + 40 * - 22 ) DIV 79 DIV + + 31 + + - 76, 75 AS col1
----
-76
75

skipif mysql # not compatible
query II rowsort label-4633
SELECT ALL + + COALESCE ( + 27, + 61 + 40 * - 22 ) / 79 / + + 31 + + - 76, 75 AS col1
----
-76
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4634
SELECT ALL + 58 DIV + 31 + 28 DIV - CASE COUNT( * ) WHEN CAST( + + 0 AS SIGNED ) THEN NULL WHEN 11 THEN NULL ELSE - ( - 85 ) END col1
----
1

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL + 58 / + 31 + 28 / - CASE COUNT ( * ) WHEN CAST ( + + 0 AS INTEGER ) THEN NULL WHEN 11 THEN NULL ELSE - ( - 85 ) END col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4635
SELECT DISTINCT 75 DIV - - 39 - - + 50 + COALESCE ( 92, CASE 24 WHEN 37 THEN + 99 * - COUNT( - 84 ) * + 35 ELSE AVG ( DISTINCT 82 ) DIV + 17 END ) AS col2
----
143

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT 75 / - - 39 - - + 50 + COALESCE ( 92, CASE 24 WHEN 37 THEN + 99 * - COUNT ( - 84 ) * + 35 ELSE AVG ( DISTINCT 82 ) / + 17 END ) AS col2
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4636
SELECT DISTINCT + + MAX( + 53 ) * + MAX( ALL - CAST( - 39 AS SIGNED ) ) * ( + COUNT( * ) ) + + + 28 * + 74
----
4139

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT + + MAX ( + 53 ) * + MAX ( ALL - CAST ( - 39 AS INTEGER ) ) * ( + COUNT ( * ) ) + + + 28 * + 74
----
4139

onlyif mysql # aggregate syntax: 
query II rowsort label-4637
SELECT - 2, 7 * + COUNT( * ) AS col0
----
-2
7

skipif mysql # not compatible
query II rowsort label-4637
SELECT - 2, 7 * + COUNT ( * ) AS col0
----
-2
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4638
SELECT ALL 16 * - CASE + + 5 WHEN - - 23 THEN + 30 + CAST( NULL AS SIGNED ) WHEN + - 64 THEN NULL WHEN - COUNT( * ) + - COALESCE ( - 73, ( + 6 ) ) THEN NULL ELSE NULL END + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL 16 * - CASE + + 5 WHEN - - 23 THEN + 30 + CAST ( NULL AS INTEGER ) WHEN + - 64 THEN NULL WHEN - COUNT ( * ) + - COALESCE ( - 73, ( + 6 ) ) THEN NULL ELSE NULL END + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT + ( + SUM( DISTINCT 41 ) ) + - 16 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4639
SELECT + ( + SUM ( DISTINCT 41 ) ) + - 16 AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4640
SELECT ALL + COUNT( * ) AS col1, 18 AS col1
----
1
18

skipif mysql # not compatible
query II rowsort label-4640
SELECT ALL + COUNT ( * ) AS col1, 18 AS col1
----
1
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4641
SELECT CAST( NULL AS SIGNED ) * NULLIF ( - - 41, - 50 / - CASE - + 73 WHEN + COUNT( * ) THEN - - 68 * - - 56 ELSE NULL END ) + - - COUNT( * ) + + 76 + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT CAST ( NULL AS INTEGER ) * NULLIF ( - - 41, - 50 / - CASE - + 73 WHEN + COUNT ( * ) THEN - - 68 * - - 56 ELSE NULL END ) + - - COUNT ( * ) + + 76 + 55 AS col1
----
NULL

query II rowsort
SELECT ALL + 23 AS col0, - 62 AS col0
----
23
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL MIN( - 65 ) * + 73 - + 74 AS col2
----
-4819

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL MIN ( - 65 ) * + 73 - + 74 AS col2
----
-4819

onlyif mysql # aggregate syntax: 
query II rowsort label-4644
SELECT + ( - + COUNT( * ) ) AS col2, 56 - - 62
----
-1
118

skipif mysql # not compatible
query II rowsort label-4644
SELECT + ( - + COUNT ( * ) ) AS col2, 56 - - 62
----
-1
118

query I rowsort
SELECT ALL 54 * + 39 AS col2
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT + MIN( ALL - + 61 ) * 2 + - - COUNT( * )
----
-121

skipif mysql # not compatible
query I rowsort label-4646
SELECT + MIN ( ALL - + 61 ) * 2 + - - COUNT ( * )
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + 66 + ( + + MAX( ALL 54 ) )
----
120

skipif mysql # not compatible
query I rowsort label-4647
SELECT + 66 + ( + + MAX ( ALL 54 ) )
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT ALL - 81 * - COUNT( * ) - - 5
----
86

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL - 81 * - COUNT ( * ) - - 5
----
86

query I rowsort
SELECT ALL 18 * + + 28 * NULLIF ( - 64, 86 ) col0
----
-32256

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT DISTINCT 65 * - 67 - - CASE COUNT( * ) WHEN + 92 THEN - 51 WHEN - 10 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT 65 * - 67 - - CASE COUNT ( * ) WHEN + 92 THEN - 51 WHEN - 10 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4651
SELECT ALL COALESCE ( + NULLIF ( + CAST( - ( COALESCE ( 18, + COUNT( * ) ) ) AS SIGNED ), + CASE + - 62 WHEN 99 / + COUNT( - 2 ) THEN + 10 + 78 WHEN - 20 THEN NULL ELSE 66 + + 98 END ), 64 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL COALESCE ( + NULLIF ( + CAST ( - ( COALESCE ( 18, + COUNT ( * ) ) ) AS INTEGER ), + CASE + - 62 WHEN 99 / + COUNT ( - 2 ) THEN + 10 + 78 WHEN - 20 THEN NULL ELSE 66 + + 98 END ), 64 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT SUM( DISTINCT 84 )
----
84

skipif mysql # not compatible
query I rowsort label-4652
SELECT SUM ( DISTINCT 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4653
SELECT - CAST( - 99 AS SIGNED ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4653
SELECT - CAST ( - 99 AS INTEGER ) AS col1
----
99

query I rowsort
SELECT + ( + - 77 ) * 9
----
-693

query I rowsort
SELECT + 99 * + 24 * + - ( - 70 )
----
166320

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT SUM( - 14 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT SUM ( - 14 ) AS col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT + 70 - + CAST( NULL AS SIGNED ) + + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT + 70 - + CAST ( NULL AS INTEGER ) + + 96 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT ALL ( - 53 ) DIV - 50 col1
----
1

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL ( - 53 ) / - 50 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4659
SELECT 83 AS col1, - CAST( NULL AS SIGNED )
----
83
NULL

skipif mysql # not compatible
query II rowsort label-4659
SELECT 83 AS col1, - CAST ( NULL AS INTEGER )
----
83
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4660
SELECT + 21 * - 97 AS col1, MAX( - + 76 ) + - - 7 + - 71 AS col1
----
-2037
-140

skipif mysql # not compatible
query II rowsort label-4660
SELECT + 21 * - 97 AS col1, MAX ( - + 76 ) + - - 7 + - 71 AS col1
----
-2037
-140

query II rowsort
SELECT ALL 39, + 46 AS col1
----
39
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT + COUNT( * ) * - - 54
----
54

skipif mysql # not compatible
query I rowsort label-4662
SELECT + COUNT ( * ) * - - 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT + + SUM( - 13 ) * 9
----
-117

skipif mysql # not compatible
query I rowsort label-4663
SELECT + + SUM ( - 13 ) * 9
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT ALL + 93 DIV + - 44
----
-2

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL + 93 / + - 44
----
-2

query I rowsort
SELECT ALL + 70 + - + 39 AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-4666
SELECT ALL - 12 + 11 AS col1, + NULLIF ( - 63, + 85 + - COUNT( * ) )
----
-1
-63

skipif mysql # not compatible
query II rowsort label-4666
SELECT ALL - 12 + 11 AS col1, + NULLIF ( - 63, + 85 + - COUNT ( * ) )
----
-1
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT - AVG ( ALL 42 ) - + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT - AVG ( ALL 42 ) - + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + 71 + + 52 AS col0
----
123

query I rowsort
SELECT 15 - - + 79
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT DISTINCT + COUNT( + 18 ) * - 71
----
-71

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT + COUNT ( + 18 ) * - 71
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT ALL + - SUM( + 65 ) + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL + - SUM ( + 65 ) + COUNT ( * )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT CASE 52 WHEN + CAST( NULL AS SIGNED ) THEN + + 27 + - 76 WHEN - 64 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT CASE 52 WHEN + CAST ( NULL AS INTEGER ) THEN + + 27 + - 76 WHEN - 64 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - + ( + + 8 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4674
SELECT - CAST( NULL AS SIGNED ) AS col2, 84 + - - COALESCE ( - - COUNT( DISTINCT - 13 ), - 51 ) + + + CASE WHEN NOT NULL NOT BETWEEN NULL AND 28 THEN COALESCE ( ( 88 ), 68 ) WHEN NOT 3 BETWEEN + 26 * 19 AND + CAST( 67 AS SIGNED ) THEN NULL END * - 25 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4674
SELECT - CAST ( NULL AS INTEGER ) AS col2, 84 + - - COALESCE ( - - COUNT ( DISTINCT - 13 ), - 51 ) + + + CASE WHEN NOT NULL NOT BETWEEN NULL AND 28 THEN COALESCE ( ( 88 ), 68 ) WHEN NOT 3 BETWEEN + 26 * 19 AND + CAST ( 67 AS INTEGER ) THEN NULL END * - 25 AS col2
----
NULL
NULL

query I rowsort
SELECT ALL COALESCE ( + + 99, + + 24 * - 21 + 54 ) AS col0
----
99

query II rowsort
SELECT + 57, 2 AS col2
----
57
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL NULLIF ( + 13, MAX( ALL 76 ) / - - 20 + - MIN( ALL + 32 ) * + 76 * + 94 / - 57 ) + - 66 + + SUM( DISTINCT + 91 )
----
38

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL NULLIF ( + 13, MAX ( ALL 76 ) / - - 20 + - MIN ( ALL + 32 ) * + 76 * + 94 / - 57 ) + - 66 + + SUM ( DISTINCT + 91 )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4678
SELECT ALL - - 94 col2, - COUNT( * ) * + + 20
----
94
-20

skipif mysql # not compatible
query II rowsort label-4678
SELECT ALL - - 94 col2, - COUNT ( * ) * + + 20
----
94
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL + 69 + 14 + CASE 24 WHEN - 54 * + 1 THEN - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL + 69 + 14 + CASE 24 WHEN - 54 * + 1 THEN - - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + CASE + - 52 WHEN - 72 THEN 19 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT - CASE - + 50 WHEN COALESCE ( + ( + 25 ), + COUNT( * ) ) THEN NULL WHEN + COUNT( * ) THEN ( - - 85 ) + 18 END + + + 11 - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT - CASE - + 50 WHEN COALESCE ( + ( + 25 ), + COUNT ( * ) ) THEN NULL WHEN + COUNT ( * ) THEN ( - - 85 ) + 18 END + + + 11 - 80
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4682
SELECT ALL + 25 * + - COUNT( * ), + ( - 73 ) AS col2
----
-25
-73

skipif mysql # not compatible
query II rowsort label-4682
SELECT ALL + 25 * + - COUNT ( * ), + ( - 73 ) AS col2
----
-25
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4683
SELECT ALL + 18 * 66 * 62 * - - CAST( + AVG ( 33 ) AS SIGNED ) AS col0
----
2430648

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL + 18 * 66 * 62 * - - CAST ( + AVG ( 33 ) AS INTEGER ) AS col0
----
2430648

query I rowsort
SELECT 94 * - 65 * + ( + - 53 ) AS col0
----
323830

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4685
SELECT ALL 24 / + CAST( NULL AS SIGNED ) AS col2, 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-4685
SELECT ALL 24 / + CAST ( NULL AS INTEGER ) AS col2, 22
----
NULL
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT 82 * - CAST( - 78 AS SIGNED ) - 54
----
6342

skipif mysql # not compatible
query I rowsort label-4686
SELECT 82 * - CAST ( - 78 AS INTEGER ) - 54
----
6342

query I rowsort
SELECT ALL - NULLIF ( + 7, - - 0 - - 49 )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4688
SELECT ALL - COUNT( * ) DIV NULLIF ( + 30, - 59 + - 69 ) * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL - COUNT ( * ) / NULLIF ( + 30, - 59 + - 69 ) * + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4689
SELECT 84 + - 2 / - CASE - 83 WHEN - CAST( NULL AS DECIMAL ) THEN - 99 / + COALESCE ( + ( + 15 ), 87 + 87, SUM( ALL 29 ) * + AVG ( ALL 61 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT 84 + - 2 / - CASE - 83 WHEN - CAST ( NULL AS REAL ) THEN - 99 / + COALESCE ( + ( + 15 ), 87 + 87, SUM ( ALL 29 ) * + AVG ( ALL 61 ) ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4690
SELECT 90 DIV + 86 * + ( CAST( COUNT( * ) AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4690
SELECT 90 / + 86 * + ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT 61 + - MAX( + NULLIF ( - 93, - - 73 ) ) + 17
----
171

skipif mysql # not compatible
query I rowsort label-4691
SELECT 61 + - MAX ( + NULLIF ( - 93, - - 73 ) ) + 17
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-4692
SELECT ALL 63 + - + COUNT( * ) - 18 * 16 + - + 56 - - 40 * + - 89 AS col0, 56 col1
----
-3842
56

skipif mysql # not compatible
query II rowsort label-4692
SELECT ALL 63 + - + COUNT ( * ) - 18 * 16 + - + 56 - - 40 * + - 89 AS col0, 56 col1
----
-3842
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT COUNT( * ) + 52 * COUNT( * ) + - - 40 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT COUNT ( * ) + 52 * COUNT ( * ) + - - 40 AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4694
SELECT + CAST( 69 AS SIGNED ), 70 AS col1
----
69
70

skipif mysql # not compatible
query II rowsort label-4694
SELECT + CAST ( 69 AS INTEGER ), 70 AS col1
----
69
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4695
SELECT ALL 38 + 93 * - - 31 AS col2, COUNT( ALL + 62 ) + + 42 AS col1
----
2921
43

skipif mysql # not compatible
query II rowsort label-4695
SELECT ALL 38 + 93 * - - 31 AS col2, COUNT ( ALL + 62 ) + + 42 AS col1
----
2921
43

query I rowsort
SELECT 48 + 22 - - + 46
----
116

query I rowsort
SELECT - 35 + + - 63
----
-98

query I rowsort
SELECT ALL 4 + 20 + + + 24 col2
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4699
SELECT ALL 9 + - 17 AS col0, ( COUNT( * ) ) * - 70
----
-8
-70

skipif mysql # not compatible
query II rowsort label-4699
SELECT ALL 9 + - 17 AS col0, ( COUNT ( * ) ) * - 70
----
-8
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4700
SELECT DISTINCT - ( 30 ), - CAST( + - COUNT( * ) AS SIGNED ) DIV - NULLIF ( + + 70, 29 ) AS col2
----
-30
0

skipif mysql # not compatible
query II rowsort label-4700
SELECT DISTINCT - ( 30 ), - CAST ( + - COUNT ( * ) AS INTEGER ) / - NULLIF ( + + 70, 29 ) AS col2
----
-30
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4701
SELECT ALL + COUNT( * ) + - - 3 AS col0, + 44 AS col2
----
4
44

skipif mysql # not compatible
query II rowsort label-4701
SELECT ALL + COUNT ( * ) + - - 3 AS col0, + 44 AS col2
----
4
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4702
SELECT COUNT( * ) + - 47 + CAST( - ( + ( CAST( NULL AS SIGNED ) ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT COUNT ( * ) + - 47 + CAST ( - ( + ( CAST ( NULL AS INTEGER ) ) ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4703
SELECT DISTINCT CAST( + + ( - COUNT( * ) ) AS SIGNED ) * - 41 col2
----
41

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) * - 41 col2
----
41

query I rowsort
SELECT ALL 54 - NULLIF ( 55, + 81 + + - 66 ) + + 90 AS col0
----
89

query I rowsort
SELECT + COALESCE ( - - 65, + 64 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4706
SELECT ALL - COUNT( * ) AS col1, 75 * + 83
----
-1
6225

skipif mysql # not compatible
query II rowsort label-4706
SELECT ALL - COUNT ( * ) AS col1, 75 * + 83
----
-1
6225

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4707
SELECT ( - + CASE - 17 WHEN + 10 - 69 THEN - MIN( 14 ) END ) + + MAX( ALL - CAST( + 65 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT ( - + CASE - 17 WHEN + 10 - 69 THEN - MIN ( 14 ) END ) + + MAX ( ALL - CAST ( + 65 AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + 72, - + 1 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT CASE 43 WHEN - + 79 THEN NULL WHEN - 94 THEN - NULLIF ( - + CASE + 53 WHEN - COUNT( * ) THEN 40 + - - NULLIF ( - 64, 93 ) - - COUNT( * ) END, 27 ) END * COUNT( * ) + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT CASE 43 WHEN - + 79 THEN NULL WHEN - 94 THEN - NULLIF ( - + CASE + 53 WHEN - COUNT ( * ) THEN 40 + - - NULLIF ( - 64, 93 ) - - COUNT ( * ) END, 27 ) END * COUNT ( * ) + 38 AS col0
----
NULL

query I rowsort
SELECT 10 - 31
----
-21

query I rowsort
SELECT ALL 13 * - - ( 97 ) * 68 - - 61
----
85809

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT ALL - MAX( DISTINCT 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL - MAX ( DISTINCT 60 ) AS col0
----
-60

query I rowsort
SELECT 0 + + - 5 + 14 * - + 7
----
-103

query I rowsort
SELECT 10 + - - 75 AS col2
----
85

query I rowsort
SELECT DISTINCT - 41 * 47 col1
----
-1927

query I rowsort
SELECT 93 * + 71 * - 39
----
-257517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4717
SELECT 29 + 81 * MIN( ALL + 89 ) * 37 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + + ( - 74 ) - - ( + 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT 29 + 81 * MIN ( ALL + 89 ) * 37 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + ( - 74 ) - - ( + 48 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4718
SELECT ALL - COUNT( * ) * + 62 / + 47 * + AVG ( ALL 24 ) * + CASE - + 56 WHEN 6 * + 40 THEN 0 WHEN COUNT( * ) * - 0 + + COUNT( * ) * 84 THEN - CAST( - 31 AS DECIMAL ) + 25 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - COUNT ( * ) * + 62 / + 47 * + AVG ( ALL 24 ) * + CASE - + 56 WHEN 6 * + 40 THEN 0 WHEN COUNT ( * ) * - 0 + + COUNT ( * ) * 84 THEN - CAST ( - 31 AS REAL ) + 25 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4719
SELECT DISTINCT - CASE + + 24 WHEN CAST( 98 AS SIGNED ) THEN NULL WHEN 28 THEN - - ( - COALESCE ( - + COUNT( * ), - 82 * - + COUNT( * ) DIV 71 ) ) DIV + 16 ELSE - 65 - - 87 END AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT - CASE + + 24 WHEN CAST ( 98 AS INTEGER ) THEN NULL WHEN 28 THEN - - ( - COALESCE ( - + COUNT ( * ), - 82 * - + COUNT ( * ) / 71 ) ) / + 16 ELSE - 65 - - 87 END AS col2
----
-22

query I rowsort
SELECT ALL - 96 + + 11
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT + + ( + 40 ) DIV + + 72 * + - 17
----
0

skipif mysql # not compatible
query I rowsort label-4721
SELECT + + ( + 40 ) / + + 72 * + - 17
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT - CAST( 52 AS SIGNED ) - + 87 + + + 87 + + COUNT( * ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4722
SELECT - CAST ( 52 AS INTEGER ) - + 87 + + + 87 + + COUNT ( * ) AS col1
----
-51

query II rowsort
SELECT ALL + 73, - COALESCE ( + + 5, - - 75 * - - 64, - - 39 * - 29 + - ( 49 ) * + 97 ) AS col0
----
73
-5

query II rowsort
SELECT - 10 - + 39 + - 42, - 16 AS col0
----
-91
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4725
SELECT + SUM( + ( 71 ) ) AS col1, - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * NULLIF ( + + 23, - 81 * + - 30 ) + + 82 + - 96 / + 33 AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-4725
SELECT + SUM ( + ( 71 ) ) AS col1, - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * NULLIF ( + + 23, - 81 * + - 30 ) + + 82 + - 96 / + 33 AS col1
----
71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT - ( + + 51 ) - + CASE - - 80 WHEN ( + + 99 ) THEN NULL WHEN - - 60 THEN 76 * + 12 * - + COUNT( * ) + + - 4 ELSE NULL END - 99 * + 92 + 12 / + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT - ( + + 51 ) - + CASE - - 80 WHEN ( + + 99 ) THEN NULL WHEN - - 60 THEN 76 * + 12 * - + COUNT ( * ) + + - 4 ELSE NULL END - 99 * + 92 + 12 / + 62
----
NULL

query I rowsort
SELECT ALL + 69 - 20 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT + + 63 * - 10 * ( - COUNT( * ) )
----
630

skipif mysql # not compatible
query I rowsort label-4728
SELECT + + 63 * - 10 * ( - COUNT ( * ) )
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL - + 89 * + + COUNT( 7 ) + + COUNT( * ) * - 7 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - + 89 * + + COUNT ( 7 ) + + COUNT ( * ) * - 7 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT DISTINCT - NULLIF ( - 70, SUM( 60 ) / + 46 )
----
70

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT - NULLIF ( - 70, SUM ( 60 ) / + 46 )
----
70

query I rowsort
SELECT + - 89 - 25 + + 75 - - - 44 AS col2
----
-83

query II rowsort
SELECT DISTINCT 65 AS col2, 58
----
65
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4733
SELECT ALL + COUNT( * ) - NULLIF ( - + CAST( NULL AS SIGNED ), - + AVG ( 66 ) * + 3 + 48 ) + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL + COUNT ( * ) - NULLIF ( - + CAST ( NULL AS INTEGER ), - + AVG ( 66 ) * + 3 + 48 ) + + 42
----
NULL

query I rowsort
SELECT + 82 * + - 94
----
-7708

onlyif mysql # DIV for integer division: 
query II rowsort label-4735
SELECT - 43 AS col0, 80 DIV 46
----
-43
1

skipif mysql # not compatible
query II rowsort label-4735
SELECT - 43 AS col0, 80 / 46
----
-43
1

query II rowsort
SELECT ALL + 68 AS col1, + 5 AS col0
----
68
5

query I rowsort
SELECT ALL 31 * 70 AS col0
----
2170

onlyif mysql # DIV for integer division: 
query I rowsort label-4738
SELECT DISTINCT 60 DIV NULLIF ( 30, - 28 DIV 49 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT 60 / NULLIF ( 30, - 28 / 49 ) AS col0
----
2

query I rowsort
SELECT ALL - ( - + 45 ) * - 94 - - 23
----
-4207

query I rowsort
SELECT ALL 95 * 61 * + - 76 AS col2
----
-440420

query I rowsort
SELECT ( + + 29 )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4742
SELECT ALL 89 * - 31 * - - 91 * - 20 col2, - COUNT( * ) * 40 + - 19 * + 4 * + - 42 AS col0
----
5021380
3152

skipif mysql # not compatible
query II rowsort label-4742
SELECT ALL 89 * - 31 * - - 91 * - 20 col2, - COUNT ( * ) * 40 + - 19 * + 4 * + - 42 AS col0
----
5021380
3152

onlyif mysql # DIV for integer division: 
query I rowsort label-4743
SELECT - 59 DIV 31 col1
----
-1

skipif mysql # not compatible
query I rowsort label-4743
SELECT - 59 / 31 col1
----
-1

query I rowsort
SELECT ( + ( - 58 ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT ALL - 23 * + 0 + MIN( DISTINCT - 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL - 23 * + 0 + MIN ( DISTINCT - 87 ) AS col2
----
-87

query I rowsort
SELECT + 47 + - 51 * 40 + 61 * 50
----
1057

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT ALL MIN( ALL - + 32 ) * + 78 + + 77
----
-2419

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL MIN ( ALL - + 32 ) * + 78 + + 77
----
-2419

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL - NULLIF ( + COUNT( * ), - 6 * 89 ) * + + 96 + - MIN( - 88 ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL - NULLIF ( + COUNT ( * ), - 6 * 89 ) * + + 96 + - MIN ( - 88 ) col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4749
SELECT CASE - 84 WHEN + 94 THEN NULL WHEN 55 + + 55 - + - 80 + - + 7 * - + 18 * CAST( + 3 AS DECIMAL ) THEN + - 70 * - COUNT( * ) + - COUNT( * ) * 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT CASE - 84 WHEN + 94 THEN NULL WHEN 55 + + 55 - + - 80 + - + 7 * - + 18 * CAST ( + 3 AS REAL ) THEN + - 70 * - COUNT ( * ) + - COUNT ( * ) * 24 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4750
SELECT 56 * CAST( NULL AS SIGNED ) - 80 * - 28 * + 14 * + 69 * CASE COUNT( * ) WHEN + SUM( ( - 91 ) ) THEN - COALESCE ( + - 76, 65, - 4 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT 56 * CAST ( NULL AS INTEGER ) - 80 * - 28 * + 14 * + 69 * CASE COUNT ( * ) WHEN + SUM ( ( - 91 ) ) THEN - COALESCE ( + - 76, 65, - 4 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT COALESCE ( 95, + 1 * + COUNT( * ) )
----
95

skipif mysql # not compatible
query I rowsort label-4751
SELECT COALESCE ( 95, + 1 * + COUNT ( * ) )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4752
SELECT DISTINCT - 13 * 41 * - 6 + + + 26, + CAST( + + 45 AS SIGNED ) AS col1
----
3224
45

skipif mysql # not compatible
query II rowsort label-4752
SELECT DISTINCT - 13 * 41 * - 6 + + + 26, + CAST ( + + 45 AS INTEGER ) AS col1
----
3224
45

query I rowsort
SELECT + 58 * 77 + - + 17 + - 99 col2
----
4350

query I rowsort
SELECT - 28 + + - ( + 5 )
----
-33

query I rowsort
SELECT COALESCE ( + - 92, 29, 64 + + - 51 )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-4756
SELECT - + 56 * + 55 + - + COUNT( * ) * - 33 + COUNT( 84 ) * - + 10 col1, + 16 AS col1
----
-3057
16

skipif mysql # not compatible
query II rowsort label-4756
SELECT - + 56 * + 55 + - + COUNT ( * ) * - 33 + COUNT ( 84 ) * - + 10 col1, + 16 AS col1
----
-3057
16

query I rowsort
SELECT ALL + NULLIF ( - ( - + 40 ), + + 33 )
----
40

query I rowsort
SELECT ALL - + 66 * 4 - + 33
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT - + 59 + + COUNT( * ) + + 73 - 64 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4759
SELECT - + 59 + + COUNT ( * ) + + 73 - 64 AS col0
----
-49

query I rowsort
SELECT - - 84 + + 67 col2
----
151

query I rowsort
SELECT - CASE - - NULLIF ( - 50, + 59 ) WHEN - 89 THEN 15 WHEN 20 / - 44 * - 59 THEN + - 23 END
----
NULL

query I rowsort
SELECT - + 9 + + + 33 + - + 13 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4763
SELECT ALL + CASE - 86 WHEN CASE + + 45 WHEN - 93 * 17 / COUNT( * ) + 79 THEN - 60 * + + CASE + 70 WHEN CAST( NULL AS SIGNED ) THEN + - 71 * - + 45 / 45 - 0 WHEN - 92 + - 14 THEN 28 ELSE 12 / + CAST( - 15 AS SIGNED ) END - + 89 ELSE + NULLIF ( 25, - 67 ) END + - COALESCE ( + ( - 96 ) + 11 / ( - 73 ), NULLIF ( - 35, 36 ) * 77 ) / + 28 THEN COUNT( * ) * 21 ELSE NULL END - ( 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL + CASE - 86 WHEN CASE + + 45 WHEN - 93 * 17 / COUNT ( * ) + 79 THEN - 60 * + + CASE + 70 WHEN CAST ( NULL AS INTEGER ) THEN + - 71 * - + 45 / 45 - 0 WHEN - 92 + - 14 THEN 28 ELSE 12 / + CAST ( - 15 AS INTEGER ) END - + 89 ELSE + NULLIF ( 25, - 67 ) END + - COALESCE ( + ( - 96 ) + 11 / ( - 73 ), NULLIF ( - 35, 36 ) * 77 ) / + 28 THEN COUNT ( * ) * 21 ELSE NULL END - ( 22 )
----
NULL

query I rowsort
SELECT - 30 * + 40 * 26
----
-31200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4765
SELECT ALL 70 DIV - + ( + + ( + COUNT( * ) ) )
----
-70

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL 70 / - + ( + + ( + COUNT ( * ) ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT CASE MIN( ALL + - 45 ) WHEN + 12 THEN NULL ELSE + COALESCE ( + 19, + COUNT( * ) * - - NULLIF ( + - 12, 34 * 19 + + COUNT( ALL + - 98 ) ), COUNT( * ) + MIN( DISTINCT 10 + 69 ) ) END
----
19

skipif mysql # not compatible
query I rowsort label-4766
SELECT CASE MIN ( ALL + - 45 ) WHEN + 12 THEN NULL ELSE + COALESCE ( + 19, + COUNT ( * ) * - - NULLIF ( + - 12, 34 * 19 + + COUNT ( ALL + - 98 ) ), COUNT ( * ) + MIN ( DISTINCT 10 + 69 ) ) END
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4767
SELECT - 97 DIV + 42 col1
----
-2

skipif mysql # not compatible
query I rowsort label-4767
SELECT - 97 / + 42 col1
----
-2

query I rowsort
SELECT - COALESCE ( + 66, - 52 ) * - 43
----
2838

query I rowsort
SELECT - - 41 + - - 66 AS col0
----
107

query I rowsort
SELECT - + 66 + - + 60 + 35
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT - COUNT( * ) * + - 22 * 64 * + 15
----
21120

skipif mysql # not compatible
query I rowsort label-4771
SELECT - COUNT ( * ) * + - 22 * 64 * + 15
----
21120

query I rowsort
SELECT ALL - 59 * + ( 19 ) AS col2
----
-1121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4773
SELECT - CASE CAST( NULL AS SIGNED ) WHEN COUNT( * ) + + 77 THEN + + AVG ( - - 33 ) * + ( - 0 ) * MIN( - 26 ) * + - COUNT( * ) + + - 97 - - 4 * 12 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT - CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) + + 77 THEN + + AVG ( - - 33 ) * + ( - 0 ) * MIN ( - 26 ) * + - COUNT ( * ) + + - 97 - - 4 * 12 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 41 + - 49
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT - COUNT( - 14 ) * - - 43 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4775
SELECT - COUNT ( - 14 ) * - - 43 AS col0
----
-43

query II rowsort
SELECT ALL 99 AS col0, 51
----
99
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4777
SELECT + 59 + + 13 + - COUNT( * ) + - - 5 DIV 89 * 35 * ( - + 68 ) * - 77
----
71

skipif mysql # not compatible
query I rowsort label-4777
SELECT + 59 + + 13 + - COUNT ( * ) + - - 5 / 89 * 35 * ( - + 68 ) * - 77
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4778
SELECT 23 * - 42 + + - CAST( - 30 AS SIGNED ) * + + 61, ( - + MAX( ALL 86 ) ) * - + 34 AS col2
----
864
2924

skipif mysql # not compatible
query II rowsort label-4778
SELECT 23 * - 42 + + - CAST ( - 30 AS INTEGER ) * + + 61, ( - + MAX ( ALL 86 ) ) * - + 34 AS col2
----
864
2924

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4779
SELECT + CASE - 11 WHEN - - 21 * - 4 * - 45 THEN + CAST( - + 26 AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT + CASE - 11 WHEN - - 21 * - 4 * - 45 THEN + CAST ( - + 26 AS REAL ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4780
SELECT ALL - ( - - 15 ) DIV COUNT( * ) * - + 58 + + - 89 * 2 * + + ( 42 ) + + NULLIF ( + + 97, 95 + 20 )
----
-6509

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL - ( - - 15 ) / COUNT ( * ) * - + 58 + + - 89 * 2 * + + ( 42 ) + + NULLIF ( + + 97, 95 + 20 )
----
-6509

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4781
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) + + 63 + - 61
----
3

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) + + 63 + - 61
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4782
SELECT ALL - 63 DIV 94 + + 16 - + 13 * + 40 AS col0
----
-504

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL - 63 / 94 + + 16 - + 13 * + 40 AS col0
----
-504

onlyif mysql # aggregate syntax: 
query II rowsort label-4783
SELECT ALL ( COUNT( * ) ) * + 49 AS col0, + 24 AS col2
----
49
24

skipif mysql # not compatible
query II rowsort label-4783
SELECT ALL ( COUNT ( * ) ) * + 49 AS col0, + 24 AS col2
----
49
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT ALL - 2 DIV 46 + - 78 + - 40
----
-118

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL - 2 / 46 + - 78 + - 40
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-4785
SELECT + 21, COUNT( - - 16 ) col0
----
21
1

skipif mysql # not compatible
query II rowsort label-4785
SELECT + 21, COUNT ( - - 16 ) col0
----
21
1

query I rowsort
SELECT ALL 88 + - 99 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4787
SELECT MAX( ALL + - 85 ) * + 59 + + - 39 + 52 AS col0, - 80
----
-5002
-80

skipif mysql # not compatible
query II rowsort label-4787
SELECT MAX ( ALL + - 85 ) * + 59 + + - 39 + 52 AS col0, - 80
----
-5002
-80

query I rowsort
SELECT ALL 99 + + + 93 AS col0
----
192

query I rowsort
SELECT COALESCE ( 70, 28 ) * ( 94 ) * - 82 + 8
----
-539552

query I rowsort
SELECT DISTINCT - + CASE - 16 WHEN + 30 THEN 79 ELSE - 81 * + 53 END AS col1
----
4293

query I rowsort
SELECT + 65 * - 69 col0
----
-4485

query I rowsort
SELECT + 39 * - + 22 col2
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT 13 - COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT 13 - COUNT ( * ) AS col1
----
12

query I rowsort
SELECT DISTINCT + 24 * 98
----
2352

query I rowsort
SELECT ALL - 2 - + - 95
----
93

query I rowsort
SELECT 46 * 34
----
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT DISTINCT - - COUNT( DISTINCT 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT - - COUNT ( DISTINCT 10 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT + + MAX( DISTINCT - ( 94 ) ) * 54 + - + 98
----
-5174

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT + + MAX ( DISTINCT - ( 94 ) ) * 54 + - + 98
----
-5174

onlyif mysql # DIV for integer division: 
query I rowsort label-4799
SELECT - + 58 * + ( - COALESCE ( 43, - - 78 DIV + NULLIF ( 25, + 86 ), ( - - 83 ) + - 45 ) ) + 66
----
2560

skipif mysql # not compatible
query I rowsort label-4799
SELECT - + 58 * + ( - COALESCE ( 43, - - 78 / + NULLIF ( 25, + 86 ), ( - - 83 ) + - 45 ) ) + 66
----
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT COUNT( * ) * - - 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4800
SELECT COUNT ( * ) * - - 91 AS col2
----
91

query I rowsort
SELECT DISTINCT + 8 * - 12 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4802
SELECT - COUNT( * ), 98 + + 76 col0
----
-1
174

skipif mysql # not compatible
query II rowsort label-4802
SELECT - COUNT ( * ), 98 + + 76 col0
----
-1
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT + 95 - + 68 * 9 * - 14 + + COUNT( * )
----
8664

skipif mysql # not compatible
query I rowsort label-4803
SELECT + 95 - + 68 * 9 * - 14 + + COUNT ( * )
----
8664

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT + COUNT( + 80 ) * - 17 + 67 + - + 68 col2
----
-18

skipif mysql # not compatible
query I rowsort label-4804
SELECT + COUNT ( + 80 ) * - 17 + 67 + - + 68 col2
----
-18

query I rowsort
SELECT ALL + - 22 * - + COALESCE ( - 55, 10 + + ( - + 4 ) ) AS col1
----
-1210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4806
SELECT - COALESCE ( CAST( NULL AS SIGNED ), + + 27, ( - 62 ) ) * NULLIF ( + 81, 79 ) col0
----
-2187

skipif mysql # not compatible
query I rowsort label-4806
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), + + 27, ( - 62 ) ) * NULLIF ( + 81, 79 ) col0
----
-2187

query I rowsort
SELECT 64 - + 8 AS col0
----
56

query I rowsort
SELECT + 22 + - 59
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4809
SELECT - COUNT( * ) DIV 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4809
SELECT - COUNT ( * ) / 4 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL - 56 + + COUNT( * ) * + ( 37 )
----
-19

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL - 56 + + COUNT ( * ) * + ( 37 )
----
-19

query I rowsort
SELECT ALL - 27 + + ( 6 )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4812
SELECT CAST( + - 22 AS SIGNED ) + - + 38 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-4812
SELECT CAST ( + - 22 AS INTEGER ) + - + 38 AS col1
----
-60

query I rowsort
SELECT 13 - + 97
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT 84 DIV + - COALESCE ( 44, - 74, - ( 44 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4814
SELECT 84 / + - COALESCE ( 44, - 74, - ( 44 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4815
SELECT COUNT( * ) DIV - + 37 * + 1 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4815
SELECT COUNT ( * ) / - + 37 * + 1 AS col2
----
0

query I rowsort
SELECT 23 - + 82 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT ALL - COALESCE ( + COUNT( * ), COUNT( * ), + 68 ) + - 74
----
-75

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL - COALESCE ( + COUNT ( * ), COUNT ( * ), + 68 ) + - 74
----
-75

query I rowsort
SELECT 3 * 42 AS col1
----
126

onlyif mysql # DIV for integer division: 
query II rowsort label-4819
SELECT 13 + + COALESCE ( 66, 86 ) AS col2, 69 DIV 88 col0
----
79
0

skipif mysql # not compatible
query II rowsort label-4819
SELECT 13 + + COALESCE ( 66, 86 ) AS col2, 69 / 88 col0
----
79
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL COALESCE ( + 82, + COALESCE ( + 86, 83 + + - COUNT( * ), + ( + 68 ) + - 44 ) ) + + + NULLIF ( - 17, - 55 + + 35 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL COALESCE ( + 82, + COALESCE ( + 86, 83 + + - COUNT ( * ), + ( + 68 ) + - 44 ) ) + + + NULLIF ( - 17, - 55 + + 35 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT DISTINCT ( + + SUM( DISTINCT - - 10 ) ) * 51
----
510

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT ( + + SUM ( DISTINCT - - 10 ) ) * 51
----
510

query I rowsort
SELECT DISTINCT + NULLIF ( + - 12, CASE - 68 WHEN - 84 THEN - 62 WHEN - 76 THEN NULL ELSE + + 88 END / - - 89 - + ( - 4 ) ) + + 47 + + 28
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4823
SELECT - ( - CAST( NULL AS SIGNED ) ) * - 12 + + 5 - 33 * + 56 * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT - ( - CAST ( NULL AS INTEGER ) ) * - 12 + + 5 - 33 * + 56 * - 99
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4824
SELECT COUNT( * ) * - + 73 AS col0, 88 DIV + 8, + ( + 97 ) * CASE - 98 WHEN 82 + + NULLIF ( + 89, + 87 * 38 ) + - + 13 THEN NULL WHEN + + 31 + 76 - + 33 THEN NULL WHEN 6 * + 79 THEN COUNT( * ) ELSE 30 END + ( 69 ) AS col2
----
-73
11
2979

skipif mysql # not compatible
query III rowsort label-4824
SELECT COUNT ( * ) * - + 73 AS col0, 88 / + 8, + ( + 97 ) * CASE - 98 WHEN 82 + + NULLIF ( + 89, + 87 * 38 ) + - + 13 THEN NULL WHEN + + 31 + 76 - + 33 THEN NULL WHEN 6 * + 79 THEN COUNT ( * ) ELSE 30 END + ( 69 ) AS col2
----
-73
11
2979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4825
SELECT ALL + CAST( - - 57 AS SIGNED ) + + - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL + CAST ( - - 57 AS INTEGER ) + + - COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4826
SELECT ALL - 83 AS col1, COUNT( + + 62 ) + 34
----
-83
35

skipif mysql # not compatible
query II rowsort label-4826
SELECT ALL - 83 AS col1, COUNT ( + + 62 ) + 34
----
-83
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4827
SELECT 61, COUNT( DISTINCT + 11 ) * + 91 + + 52 - + NULLIF ( - ( 8 ), 41 ) + - 89 AS col1
----
61
62

skipif mysql # not compatible
query II rowsort label-4827
SELECT 61, COUNT ( DISTINCT + 11 ) * + 91 + + 52 - + NULLIF ( - ( 8 ), 41 ) + - 89 AS col1
----
61
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT 93 * - 92 * NULLIF ( - + 73, + - 44 ) - - - COUNT( * ) DIV - 67 * - 18 AS col0
----
624588

skipif mysql # not compatible
query I rowsort label-4828
SELECT 93 * - 92 * NULLIF ( - + 73, + - 44 ) - - - COUNT ( * ) / - 67 * - 18 AS col0
----
624588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4829
SELECT DISTINCT - 96 AS col0, + ( - COALESCE ( + 88, - CAST( + - 9 AS SIGNED ) ) ) + + 36 + + 44 DIV - COUNT( * ) + + 88
----
-96
-8

skipif mysql # not compatible
query II rowsort label-4829
SELECT DISTINCT - 96 AS col0, + ( - COALESCE ( + 88, - CAST ( + - 9 AS INTEGER ) ) ) + + 36 + + 44 / - COUNT ( * ) + + 88
----
-96
-8

query II rowsort
SELECT ALL - 99 col1, 82 AS col0
----
-99
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4831
SELECT - 0 DIV + 8 + 45 * + + CAST( - - COUNT( * ) AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-4831
SELECT - 0 / + 8 + 45 * + + CAST ( - - COUNT ( * ) AS INTEGER )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4832
SELECT ( + 27 ) * ( 95 ) DIV + ( - 45 ) col1, 29 + COUNT( * ) AS col0
----
-57
30

skipif mysql # not compatible
query II rowsort label-4832
SELECT ( + 27 ) * ( 95 ) / + ( - 45 ) col1, 29 + COUNT ( * ) AS col0
----
-57
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT + MIN( 2 )
----
2

skipif mysql # not compatible
query I rowsort label-4833
SELECT + MIN ( 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT - 63 + COUNT( 40 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4834
SELECT - 63 + COUNT ( 40 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL NULLIF ( 43, + COUNT( * ) * + + 49 ) - - 6 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL NULLIF ( 43, + COUNT ( * ) * + + 49 ) - - 6 AS col2
----
49

query I rowsort
SELECT - 85 * + 28 + + 75
----
-2305

query I rowsort
SELECT DISTINCT - 15 * 57 AS col1
----
-855

onlyif mysql # DIV for integer division: 
query I rowsort label-4838
SELECT DISTINCT - ( - - 36 ) DIV + 17 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT - ( - - 36 ) / + 17 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT + 12 + - 4 DIV + 10 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4839
SELECT + 12 + - 4 / + 10 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ALL + COUNT( DISTINCT - 65 ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL + COUNT ( DISTINCT - 65 ) * - COUNT ( * ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT + 52 DIV + 63 * - 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4841
SELECT + 52 / + 63 * - 11 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4842
SELECT + - 10 AS col2, + COUNT( * ) AS col0
----
-10
1

skipif mysql # not compatible
query II rowsort label-4842
SELECT + - 10 AS col2, + COUNT ( * ) AS col0
----
-10
1

query I rowsort
SELECT - ( 97 ) * 15 AS col1
----
-1455

query I rowsort
SELECT DISTINCT 5 * + + 97
----
485

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT 33 + + - 81 * + ( - - MAX( DISTINCT - 42 ) ) + + 53 * - + COUNT( * )
----
3382

skipif mysql # not compatible
query I rowsort label-4845
SELECT 33 + + - 81 * + ( - - MAX ( DISTINCT - 42 ) ) + + 53 * - + COUNT ( * )
----
3382

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4846
SELECT DISTINCT - CAST( 45 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT - CAST ( 45 AS INTEGER )
----
-45

query I rowsort
SELECT DISTINCT - 19 + + + 44 * + + 68 + 18 + + 1 * - 69 * + 27 + - 39
----
1089

onlyif mysql # aggregate syntax: 
query II rowsort label-4848
SELECT ALL 34 AS col0, + ( + 88 ) * - COUNT( * )
----
34
-88

skipif mysql # not compatible
query II rowsort label-4848
SELECT ALL 34 AS col0, + ( + 88 ) * - COUNT ( * )
----
34
-88

query I rowsort
SELECT DISTINCT - + 82 + 44
----
-38

query I rowsort
SELECT DISTINCT NULLIF ( - + 27, - - 2 ) + + + 97 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT 23 + + COUNT( ALL + + 21 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4851
SELECT 23 + + COUNT ( ALL + + 21 ) AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4852
SELECT - COUNT( DISTINCT + CAST( + 95 AS SIGNED ) ) AS col2, + 57 * + 13 AS col2
----
-1
741

skipif mysql # not compatible
query II rowsort label-4852
SELECT - COUNT ( DISTINCT + CAST ( + 95 AS INTEGER ) ) AS col2, + 57 * + 13 AS col2
----
-1
741

query I rowsort
SELECT ALL ( + 40 ) + 40 - + 93 * + - 24 + - 92 AS col0
----
2220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT ALL - 41 + - 54 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - 41 + - 54 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT COUNT( * ) + - 53 * + 8
----
-423

skipif mysql # not compatible
query I rowsort label-4855
SELECT COUNT ( * ) + - 53 * + 8
----
-423

query I rowsort
SELECT 19 + 41 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL 30 + 88 * - MIN( ALL - 51 )
----
4518

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL 30 + 88 * - MIN ( ALL - 51 )
----
4518

onlyif mysql # aggregate syntax: 
query II rowsort label-4858
SELECT ALL COUNT( ALL - 66 ) AS col0, 71 AS col1
----
1
71

skipif mysql # not compatible
query II rowsort label-4858
SELECT ALL COUNT ( ALL - 66 ) AS col0, 71 AS col1
----
1
71

query I rowsort
SELECT ALL + 97 + + - 93
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL COUNT( ALL - ( 87 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL COUNT ( ALL - ( 87 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT - 41 * COUNT( ALL - + 74 )
----
-41

skipif mysql # not compatible
query I rowsort label-4861
SELECT - 41 * COUNT ( ALL - + 74 )
----
-41

query I rowsort
SELECT - 46 + + + 8 AS col2
----
-38

query I rowsort
SELECT 97 * 94 + + 7 AS col0
----
9125

query I rowsort
SELECT + COALESCE ( - 56, - 6 )
----
-56

query I rowsort
SELECT ALL + 85 * + 82 AS col1
----
6970

query I rowsort
SELECT - + 80 + - 48
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL + MAX( - 65 ) * - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL + MAX ( - 65 ) * - COUNT ( * )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT CAST( NULL AS SIGNED ) * - 54 + + + ( 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT CAST ( NULL AS INTEGER ) * - 54 + + + ( 72 )
----
NULL

query I rowsort
SELECT + 19 * + ( 67 )
----
1273

onlyif mysql # DIV for integer division: 
query II rowsort label-4870
SELECT ALL - 59 DIV - 1 + + 85, 74 AS col1
----
144
74

skipif mysql # not compatible
query II rowsort label-4870
SELECT ALL - 59 / - 1 + + 85, 74 AS col1
----
144
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4871
SELECT - + 53 DIV + 58 + 7 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4871
SELECT - + 53 / + 58 + 7 AS col0
----
7

query I rowsort
SELECT DISTINCT + 28 * + 15 + 22 AS col1
----
442

onlyif mysql # aggregate syntax: 
query II rowsort label-4873
SELECT ALL + ( + 14 ) * + + 20 * + 66 + + COUNT( * ) AS col2, 91
----
18481
91

skipif mysql # not compatible
query II rowsort label-4873
SELECT ALL + ( + 14 ) * + + 20 * + 66 + + COUNT ( * ) AS col2, 91
----
18481
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4874
SELECT DISTINCT 34 * COUNT( * ) DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT 34 * COUNT ( * ) / 41
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT + 4 DIV 52 + - 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-4875
SELECT + 4 / 52 + - 59 AS col2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4876
SELECT ALL + 27 * - - CAST( NULL AS SIGNED ) + - 21 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL + 27 * - - CAST ( NULL AS INTEGER ) + - 21 + + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4877
SELECT ALL - + CAST( 42 AS SIGNED ) DIV - 40 * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL - + CAST ( 42 AS INTEGER ) / - 40 * - COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4878
SELECT - 52 DIV + - 97
----
0

skipif mysql # not compatible
query I rowsort label-4878
SELECT - 52 / + - 97
----
0

query I rowsort
SELECT + 92 * 91 + - 73 + + - 51 AS col1
----
8248

query I rowsort
SELECT DISTINCT - 65 * - 70 + - 33
----
4517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT - - CASE + 55 WHEN 44 THEN + - 74 * - + 56 * COUNT( * ) * + + ( + CASE WHEN CAST( NULL AS SIGNED ) IN ( - 1 + + - 58, 26 + COUNT( * ) ) THEN CASE - ( - 47 ) WHEN + 63 + - COUNT( * ) THEN NULL WHEN 38 THEN + 35 ELSE NULL END END ) * 84 + ( 63 + + CAST( - ( - 1 ) AS SIGNED ) * + 13 ) * + ( 48 ) ELSE NULL END + + AVG ( ALL + 84 ) * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT - - CASE + 55 WHEN 44 THEN + - 74 * - + 56 * COUNT ( * ) * + + ( + CASE WHEN CAST ( NULL AS INTEGER ) IN ( - 1 + + - 58, 26 + COUNT ( * ) ) THEN CASE - ( - 47 ) WHEN + 63 + - COUNT ( * ) THEN NULL WHEN 38 THEN + 35 ELSE NULL END END ) * 84 + ( 63 + + CAST ( - ( - 1 ) AS INTEGER ) * + 13 ) * + ( 48 ) ELSE NULL END + + AVG ( ALL + 84 ) * + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT + + 54 * + - 80 + + COUNT( * ) AS col0
----
-4319

skipif mysql # not compatible
query I rowsort label-4882
SELECT + + 54 * + - 80 + + COUNT ( * ) AS col0
----
-4319

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4883
SELECT - MAX( - 2 ) * + + 44 + 4 DIV - 58 * 39 * - + 36 * 78 col0, COUNT( * ) col1
----
88
1

skipif mysql # not compatible
query II rowsort label-4883
SELECT - MAX ( - 2 ) * + + 44 + 4 / - 58 * 39 * - + 36 * 78 col0, COUNT ( * ) col1
----
88
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4884
SELECT - ( - MAX( ALL + 47 ) ), 59 + - MAX( + 21 ) AS col2
----
47
38

skipif mysql # not compatible
query II rowsort label-4884
SELECT - ( - MAX ( ALL + 47 ) ), 59 + - MAX ( + 21 ) AS col2
----
47
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4885
SELECT + 19 * NULLIF ( + + 12, - 89 ) * + CASE MIN( - 70 ) WHEN - + 44 + - + 93 + - - 52 THEN + - ( + - CAST( + - 39 AS SIGNED ) ) * + + COUNT( - 72 ) * + 83 - 77 + + AVG ( ( 17 ) ) END + + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT + 19 * NULLIF ( + + 12, - 89 ) * + CASE MIN ( - 70 ) WHEN - + 44 + - + 93 + - - 52 THEN + - ( + - CAST ( + - 39 AS INTEGER ) ) * + + COUNT ( - 72 ) * + 83 - 77 + + AVG ( ( 17 ) ) END + + 91 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL ( COUNT( ALL - - 88 ) ) + - 86 * COUNT( * ) col1
----
-85

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL ( COUNT ( ALL - - 88 ) ) + - 86 * COUNT ( * ) col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT + 31 - 33 + MIN( - 59 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-4887
SELECT + 31 - 33 + MIN ( - 59 ) AS col1
----
-61

query I rowsort
SELECT + 7 - + 99
----
-92

query III rowsort
SELECT - NULLIF ( 91, + 34 ) col2, + 88 * 61 * 81, - 19 + - 62 AS col0
----
-91
434808
-81

query I rowsort
SELECT + 83 + 79 AS col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT ALL CASE - + 74 WHEN 99 * - - 76 + + 78 THEN - COUNT( * ) + ( - + 57 ) + 64 * 62 END + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL CASE - + 74 WHEN 99 * - - 76 + + 78 THEN - COUNT ( * ) + ( - + 57 ) + 64 * 62 END + 89 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4892
SELECT ALL COUNT( * ) AS col2, + 75 * + ( COALESCE ( CAST( + + 8 AS SIGNED ), + 19 * + - ( + 5 ) + - 66 + + - 4 - + 17 * + + COUNT( * ) * 65 + CAST( COUNT( * ) AS SIGNED ) ) ) AS col2
----
1
600

skipif mysql # not compatible
query II rowsort label-4892
SELECT ALL COUNT ( * ) AS col2, + 75 * + ( COALESCE ( CAST ( + + 8 AS INTEGER ), + 19 * + - ( + 5 ) + - 66 + + - 4 - + 17 * + + COUNT ( * ) * 65 + CAST ( COUNT ( * ) AS INTEGER ) ) ) AS col2
----
1
600

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT + 47 + + SUM( + 22 ) * - - 88 AS col1
----
1983

skipif mysql # not compatible
query I rowsort label-4893
SELECT + 47 + + SUM ( + 22 ) * - - 88 AS col1
----
1983

query I rowsort
SELECT + 53 - + 59
----
-6

query II rowsort
SELECT - NULLIF ( - 70, - 71 ) AS col0, 74 AS col2
----
70
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4896
SELECT 0, ( + 88 ) * + + COUNT( * ) - + 35 AS col2
----
0
53

skipif mysql # not compatible
query II rowsort label-4896
SELECT 0, ( + 88 ) * + + COUNT ( * ) - + 35 AS col2
----
0
53

query II rowsort
SELECT DISTINCT 11 * - ( - 94 ) AS col0, 66 AS col0
----
1034
66

query I rowsort
SELECT + 17 * - 74 col2
----
-1258

onlyif mysql # aggregate syntax: 
query II rowsort label-4899
SELECT ALL 18 AS col1, COUNT( * )
----
18
1

skipif mysql # not compatible
query II rowsort label-4899
SELECT ALL 18 AS col1, COUNT ( * )
----
18
1

query I rowsort
SELECT DISTINCT 75 * 77
----
5775

query I rowsort
SELECT - 87 * + 84
----
-7308

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL + + NULLIF ( + 45, 47 * + COUNT( * ) * + 60 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL + + NULLIF ( + 45, 47 * + COUNT ( * ) * + 60 ) AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4903
SELECT 65 DIV + 34 + 16, CAST( NULL AS SIGNED ) AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-4903
SELECT 65 / + 34 + 16, CAST ( NULL AS INTEGER ) AS col2
----
17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT - CASE - 27 WHEN + 57 THEN ( COUNT( * ) ) WHEN - 83 THEN 5 ELSE NULL END * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT - CASE - 27 WHEN + 57 THEN ( COUNT ( * ) ) WHEN - 83 THEN 5 ELSE NULL END * 69
----
NULL

query I rowsort
SELECT + 7 * - 60 * + + 62 * 83 + + 63
----
-2161257

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4906
SELECT + COUNT( * ) DIV COUNT( * ) + 57
----
58

skipif mysql # not compatible
query I rowsort label-4906
SELECT + COUNT ( * ) / COUNT ( * ) + 57
----
58

query I rowsort
SELECT - - 52 * - - ( - 12 ) - + + 1 * 80 AS col2
----
-704

onlyif mysql # aggregate syntax: 
query II rowsort label-4908
SELECT DISTINCT + COUNT( * ) AS col2, - 68 * 9 * + 42 AS col0
----
1
-25704

skipif mysql # not compatible
query II rowsort label-4908
SELECT DISTINCT + COUNT ( * ) AS col2, - 68 * 9 * + 42 AS col0
----
1
-25704

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4909
SELECT ALL - 30 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL - 30 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4910
SELECT 24 * 13 + - 49 * - COUNT( DISTINCT - 83 ) * + CAST( 65 AS SIGNED ) - - CASE 90 WHEN + NULLIF ( + COUNT( * ), + - 56 ) + COUNT( DISTINCT 77 ) + - 52 + ( + 40 ) THEN NULL WHEN + 29 THEN NULL WHEN NULLIF ( + COUNT( * ), 40 ) THEN 8 / + 75 ELSE NULL END + + CASE - 12 WHEN + 25 THEN + 86 WHEN COALESCE ( 57, + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) * 86 ) + 84 * - 56 THEN 38 - + COUNT( * ) * 40 ELSE COALESCE ( - 44, 2 ) END * 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT 24 * 13 + - 49 * - COUNT ( DISTINCT - 83 ) * + CAST ( 65 AS INTEGER ) - - CASE 90 WHEN + NULLIF ( + COUNT ( * ), + - 56 ) + COUNT ( DISTINCT 77 ) + - 52 + ( + 40 ) THEN NULL WHEN + 29 THEN NULL WHEN NULLIF ( + COUNT ( * ), 40 ) THEN 8 / + 75 ELSE NULL END + + CASE - 12 WHEN + 25 THEN + 86 WHEN COALESCE ( 57, + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * 86 ) + 84 * - 56 THEN 38 - + COUNT ( * ) * 40 ELSE COALESCE ( - 44, 2 ) END * 46 AS col2
----
NULL

query I rowsort
SELECT - + 16 * - 12 - - + 65 + 65 - + - 0 AS col0
----
322

onlyif mysql # aggregate syntax: 
query II rowsort label-4912
SELECT - COALESCE ( + 59, - COUNT( * ), - - COUNT( ALL - 24 ) + COUNT( - 26 ) * + ( - MAX( DISTINCT ( 58 ) ) ), - - 3 ) * 33 * - 34, 44 AS col1
----
66198
44

skipif mysql # not compatible
query II rowsort label-4912
SELECT - COALESCE ( + 59, - COUNT ( * ), - - COUNT ( ALL - 24 ) + COUNT ( - 26 ) * + ( - MAX ( DISTINCT ( 58 ) ) ), - - 3 ) * 33 * - 34, 44 AS col1
----
66198
44

query II rowsort
SELECT + - 72 AS col2, 23 col1
----
-72
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT MIN( - - 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4914
SELECT MIN ( - - 15 ) AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT - CAST( + 42 AS SIGNED ) * - - 61 + COALESCE ( + 13, - 88 * + 9 + + 73 ) col2
----
-2549

skipif mysql # not compatible
query I rowsort label-4915
SELECT - CAST ( + 42 AS INTEGER ) * - - 61 + COALESCE ( + 13, - 88 * + 9 + + 73 ) col2
----
-2549

query I rowsort
SELECT + 37 * - 60
----
-2220

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL + MIN( DISTINCT - ( 30 ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + MIN ( DISTINCT - ( 30 ) ) AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4918
SELECT DISTINCT NULLIF ( - 66, 93 + COUNT( * ) + + CAST( 83 AS SIGNED ) + + 32 - 74 * - 13 + - 48 / - - 47 * - 32 ) * - - 52 + - - 41 - MAX( + 76 ) + COUNT( * ) + 17
----
-3449

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT NULLIF ( - 66, 93 + COUNT ( * ) + + CAST ( 83 AS INTEGER ) + + 32 - 74 * - 13 + - 48 / - - 47 * - 32 ) * - - 52 + - - 41 - MAX ( + 76 ) + COUNT ( * ) + 17
----
-3449

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4919
SELECT DISTINCT MIN( DISTINCT - + 76 ) DIV 51
----
-1

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT MIN ( DISTINCT - + 76 ) / 51
----
-1

query II rowsort
SELECT 22 + + + 55, 29 * - + 96 * + 80 + - - 54 AS col0
----
77
-222666

query I rowsort
SELECT ALL - CASE WHEN - 52 = - 83 THEN + 72 END - 34 AS col0
----
NULL

query I rowsort
SELECT 29 * 93
----
2697

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT ALL 71 - + 95 DIV 85 * 77 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL 71 - + 95 / 85 * 77 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT 9 + + 26 * + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-4924
SELECT 9 + + 26 * + COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT COUNT( * ) + 62 * + - ( - 58 ) col0, + 85 + + 43 + - + MIN( DISTINCT - COALESCE ( 67, 50 + - 98 ) ) * + + 4 AS col1
----
3597
396

skipif mysql # not compatible
query II rowsort label-4925
SELECT COUNT ( * ) + 62 * + - ( - 58 ) col0, + 85 + + 43 + - + MIN ( DISTINCT - COALESCE ( 67, 50 + - 98 ) ) * + + 4 AS col1
----
3597
396

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4926
SELECT 19 * - + 45 AS col0, CAST( 15 AS SIGNED ) * - 43 AS col1
----
-855
-645

skipif mysql # not compatible
query II rowsort label-4926
SELECT 19 * - + 45 AS col0, CAST ( 15 AS INTEGER ) * - 43 AS col1
----
-855
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT SUM( DISTINCT + 61 ) * - COUNT( * ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-4927
SELECT SUM ( DISTINCT + 61 ) * - COUNT ( * ) col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT ALL 35 - - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL 35 - - COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT 34 + - + COUNT( * ) col1
----
33

skipif mysql # not compatible
query I rowsort label-4929
SELECT 34 + - + COUNT ( * ) col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT COUNT( * ) + + + 69
----
70

skipif mysql # not compatible
query I rowsort label-4930
SELECT COUNT ( * ) + + + 69
----
70

query II rowsort
SELECT 53 + - + 22, + 44 + - + 10 AS col1
----
31
34

query I rowsort
SELECT ( + - COALESCE ( + 58, + + 54 ) ) + + 93 * + COALESCE ( - 0, + 37, + 34 ) * - 1 AS col2
----
-58

query I rowsort
SELECT - 65 + + + 71 * - 20 AS col1
----
-1485

query I rowsort
SELECT ALL - 83 + + CASE - 94 WHEN - 39 THEN 61 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4935
SELECT ALL 53 * 45, COUNT( - + 99 ) AS col0
----
2385
1

skipif mysql # not compatible
query II rowsort label-4935
SELECT ALL 53 * 45, COUNT ( - + 99 ) AS col0
----
2385
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT COUNT( * ) + + 35 + - - 58 * + 23 * + 39 + + 22 col2
----
52084

skipif mysql # not compatible
query I rowsort label-4936
SELECT COUNT ( * ) + + 35 + - - 58 * + 23 * + 39 + + 22 col2
----
52084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4937
SELECT + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT DISTINCT 71 * + - 63 * + NULLIF ( COUNT( - 99 ), - - 82 )
----
-4473

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT 71 * + - 63 * + NULLIF ( COUNT ( - 99 ), - - 82 )
----
-4473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT ALL - CAST( NULL AS SIGNED ) + + CASE + 57 WHEN - - 1 THEN 68 * - 50 / - - SUM( + + 21 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL - CAST ( NULL AS INTEGER ) + + CASE + 57 WHEN - - 1 THEN 68 * - 50 / - - SUM ( + + 21 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4940
SELECT 64 DIV - 31
----
-2

skipif mysql # not compatible
query I rowsort label-4940
SELECT 64 / - 31
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT 8 * + - CASE + 23 WHEN - + 12 THEN + COUNT( * ) + + ( - + 64 ) WHEN + + 71 THEN 35 WHEN + 89 * + 71 THEN - 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4941
SELECT 8 * + - CASE + 23 WHEN - + 12 THEN + COUNT ( * ) + + ( - + 64 ) WHEN + + 71 THEN 35 WHEN + 89 * + 71 THEN - 88 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4942
SELECT + COUNT( * ) - - COALESCE ( + COUNT( * ), + 74 + + 65 ) + + ( - 13 ) * - ( - CAST( NULL AS SIGNED ) ) * + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT + COUNT ( * ) - - COALESCE ( + COUNT ( * ), + 74 + + 65 ) + + ( - 13 ) * - ( - CAST ( NULL AS INTEGER ) ) * + + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4943
SELECT + - CAST( COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4943
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4944
SELECT SUM( + - 33 ) DIV 48 - + 40 * - 65
----
2600

skipif mysql # not compatible
query I rowsort label-4944
SELECT SUM ( + - 33 ) / 48 - + 40 * - 65
----
2600

onlyif mysql # DIV for integer division: 
query I rowsort label-4945
SELECT ALL + + 95 DIV + 25 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL + + 95 / + 25 AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4946
SELECT ALL - + ( COUNT( * ) ), + MAX( - 82 ) * - - 93 + + 40 AS col1
----
-1
-7586

skipif mysql # not compatible
query II rowsort label-4946
SELECT ALL - + ( COUNT ( * ) ), + MAX ( - 82 ) * - - 93 + + 40 AS col1
----
-1
-7586

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT + MAX( DISTINCT 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4947
SELECT + MAX ( DISTINCT 87 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL + COUNT( * ) - - - 32 col0
----
-31

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL + COUNT ( * ) - - - 32 col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT DISTINCT - MIN( 63 ) * + 31
----
-1953

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT - MIN ( 63 ) * + 31
----
-1953

query I rowsort
SELECT 38 * - - 84
----
3192

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT - COUNT( * ) * + + 31 * 1 + + 2 col2
----
-29

skipif mysql # not compatible
query I rowsort label-4951
SELECT - COUNT ( * ) * + + 31 * 1 + + 2 col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT ALL - COUNT( * ) * - - 17 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL - COUNT ( * ) * - - 17 AS col1
----
-17

query I rowsort
SELECT 28 * - 30
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT 38 - + COUNT( * ) - 74 - + ( + - 59 )
----
22

skipif mysql # not compatible
query I rowsort label-4954
SELECT 38 - + COUNT ( * ) - 74 - + ( + - 59 )
----
22

query I rowsort
SELECT 54 * 37 * - 31 * + 11
----
-681318

onlyif mysql # DIV for integer division: 
query I rowsort label-4956
SELECT DISTINCT 23 DIV 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT 23 / 78 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT 43 * + - ( - MAX( ALL + 25 ) )
----
1075

skipif mysql # not compatible
query I rowsort label-4957
SELECT 43 * + - ( - MAX ( ALL + 25 ) )
----
1075

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT COUNT( 8 ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4958
SELECT COUNT ( 8 ) * - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 3 + - 63 AS col0
----
-60

query II rowsort
SELECT 62, 51 col2
----
62
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL + SUM( + 82 ) + 89 + + 32
----
203

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + SUM ( + 82 ) + 89 + + 32
----
203

query I rowsort
SELECT DISTINCT + 26 + 54
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4963
SELECT - 29 * + + CAST( - - 98 AS SIGNED ) * - ( + + CAST( NULL AS DECIMAL ) ) * - 3 + - MIN( - NULLIF ( + 89, 98 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT - 29 * + + CAST ( - - 98 AS INTEGER ) * - ( + + CAST ( NULL AS REAL ) ) * - 3 + - MIN ( - NULLIF ( + 89, 98 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT ALL + 93 * - CASE + 96 WHEN - CAST( NULL AS SIGNED ) + - - 20 THEN NULL WHEN - + 45 THEN - - 41 ELSE 12 END + + + 62 + ( + + NULLIF ( 17, - ( - - 31 ) ) ) AS col1
----
-1037

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL + 93 * - CASE + 96 WHEN - CAST ( NULL AS INTEGER ) + - - 20 THEN NULL WHEN - + 45 THEN - - 41 ELSE 12 END + + + 62 + ( + + NULLIF ( 17, - ( - - 31 ) ) ) AS col1
----
-1037

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT - - 53, MIN( ALL + 98 ) - - + 40 AS col2
----
53
138

skipif mysql # not compatible
query II rowsort label-4965
SELECT - - 53, MIN ( ALL + 98 ) - - + 40 AS col2
----
53
138

query I rowsort
SELECT ALL 82 + 10 * - 6
----
22

query II rowsort
SELECT DISTINCT CASE + 13 WHEN - 20 * - + 69 THEN + 89 ELSE NULL END, 90 * - + 98 * 15 * + + 61 + - - 0 col1
----
NULL
-8070300

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT 30 * + + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-4968
SELECT 30 * + + COUNT ( * )
----
30

query I rowsort
SELECT ALL 56 * 37 * - - 82 + - + 58 col2
----
169846

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4970
SELECT + - MAX( + CAST( NULL AS DECIMAL ) ) / 55 + + + 46 + - 66 + - 36 + - 66 * + 31 * - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4970
SELECT + - MAX ( + CAST ( NULL AS REAL ) ) / 55 + + + 46 + - 66 + - 36 + - 66 * + 31 * - 92 AS col0
----
NULL

query I rowsort
SELECT 53 * 11
----
583

query I rowsort
SELECT DISTINCT ( + + 79 ) * - - 89
----
7031

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT - COALESCE ( - MAX( ALL - 16 ), ( MIN( DISTINCT - 6 ) ) ) + + 0
----
-16

skipif mysql # not compatible
query I rowsort label-4973
SELECT - COALESCE ( - MAX ( ALL - 16 ), ( MIN ( DISTINCT - 6 ) ) ) + + 0
----
-16

query I rowsort
SELECT ALL 89 * + 60 col1
----
5340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4975
SELECT + 59 + + + 23 DIV 14 * ( + COUNT( * ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4975
SELECT + 59 + + + 23 / 14 * ( + COUNT ( * ) ) AS col2
----
60

query I rowsort
SELECT ALL 76 * + 58 - - 32 * + + ( - 1 )
----
4376

query I rowsort
SELECT DISTINCT + ( - 6 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4978
SELECT - NULLIF ( - 26, - COUNT( * ) * - 87 ) DIV - 52 * + SUM( ALL + + 62 ) + NULLIF ( 11, + CAST( NULL AS SIGNED ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4978
SELECT - NULLIF ( - 26, - COUNT ( * ) * - 87 ) / - 52 * + SUM ( ALL + + 62 ) + NULLIF ( 11, + CAST ( NULL AS INTEGER ) ) AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4979
SELECT - ( + COUNT( * ) ) * + - 51 + - + MAX( ALL + + CAST( - 88 AS SIGNED ) ) + + 1 + + 31 AS col1
----
171

skipif mysql # not compatible
query I rowsort label-4979
SELECT - ( + COUNT ( * ) ) * + - 51 + - + MAX ( ALL + + CAST ( - 88 AS INTEGER ) ) + + 1 + + 31 AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT + 89 * CASE WHEN NOT - 54 = - - COUNT( * ) * 28 THEN - 64 END
----
-5696

skipif mysql # not compatible
query I rowsort label-4980
SELECT + 89 * CASE WHEN NOT - 54 = - - COUNT ( * ) * 28 THEN - 64 END
----
-5696

onlyif mysql # aggregate syntax: 
query II rowsort label-4981
SELECT COUNT( * ), + COUNT( * ) col1
----
1
1

skipif mysql # not compatible
query II rowsort label-4981
SELECT COUNT ( * ), + COUNT ( * ) col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT - COALESCE ( CASE CASE + ( + + NULLIF ( - + 37, COUNT( * ) ) ) WHEN 82 THEN NULL WHEN - 13 THEN - - ( ( - - SUM( DISTINCT - - 7 ) ) ) + + 71 + 33 END WHEN + 82 THEN NULL WHEN - NULLIF ( - 71, - 91 + + 95 - 18 + 71 ) THEN NULL ELSE 36 END, 80 + 50 ) + 99 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4982
SELECT - COALESCE ( CASE CASE + ( + + NULLIF ( - + 37, COUNT ( * ) ) ) WHEN 82 THEN NULL WHEN - 13 THEN - - ( ( - - SUM ( DISTINCT - - 7 ) ) ) + + 71 + 33 END WHEN + 82 THEN NULL WHEN - NULLIF ( - 71, - 91 + + 95 - 18 + 71 ) THEN NULL ELSE 36 END, 80 + 50 ) + 99 AS col2
----
63

query I rowsort
SELECT + CASE + 0 WHEN - + 43 THEN 29 * 1 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT - ( + 28 ) DIV ( - - COALESCE ( - 88, 79 + + ( 34 ) * 99, + 60 ) ) * - - 19
----
0

skipif mysql # not compatible
query I rowsort label-4984
SELECT - ( + 28 ) / ( - - COALESCE ( - 88, 79 + + ( 34 ) * 99, + 60 ) ) * - - 19
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4985
SELECT ALL + NULLIF ( 18, - 61 ) / MAX( + - 42 ) + CAST( NULL AS DECIMAL ) + - 20 * - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL + NULLIF ( 18, - 61 ) / MAX ( + - 42 ) + CAST ( NULL AS REAL ) + - 20 * - + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT + CASE + + 28 WHEN + COUNT( ALL + - 60 ) THEN - 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT + CASE + + 28 WHEN + COUNT ( ALL + - 60 ) THEN - 1 END AS col0
----
NULL

query I rowsort
SELECT + 94 + 51 - 6 + 0
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4988
SELECT ALL 0 DIV - MIN( - - 51 )
----
0

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL 0 / - MIN ( - - 51 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4989
SELECT - 12 DIV + 15
----
0

skipif mysql # not compatible
query I rowsort label-4989
SELECT - 12 / + 15
----
0

query II rowsort
SELECT ALL + 16 * 52 AS col0, + ( ( + 33 ) )
----
832
33

query II rowsort
SELECT - 60 col1, 56
----
-60
56

query I rowsort
SELECT ALL 52 + - 32 AS col0
----
20

query I rowsort
SELECT DISTINCT - 71 + - - 14 AS col1
----
-57

query I rowsort
SELECT ALL + 17 * + - 86
----
-1462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4995
SELECT - ( NULLIF ( 56, + CAST( NULL AS SIGNED ) ) ) * CASE - 58 WHEN CASE - ( - 82 ) WHEN - - 27 * + 28 + + COUNT( * ) THEN + + 61 * + COUNT( * ) * + ( - + ( - AVG ( 25 ) ) ) + 4 WHEN ( - 56 ) / + 36 THEN NULL END * NULLIF ( COUNT( * ), ( + COUNT( * ) ) ) + - 41 * + 47 THEN COUNT( * ) WHEN + 70 THEN 71 END + - 7 * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT - ( NULLIF ( 56, + CAST ( NULL AS INTEGER ) ) ) * CASE - 58 WHEN CASE - ( - 82 ) WHEN - - 27 * + 28 + + COUNT ( * ) THEN + + 61 * + COUNT ( * ) * + ( - + ( - AVG ( 25 ) ) ) + 4 WHEN ( - 56 ) / + 36 THEN NULL END * NULLIF ( COUNT ( * ), ( + COUNT ( * ) ) ) + - 41 * + 47 THEN COUNT ( * ) WHEN + 70 THEN 71 END + - 7 * 26
----
NULL

query II rowsort
SELECT - 25 AS col2, 85 AS col1
----
-25
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4997
SELECT 40, - 15 * SUM( - + 77 ) AS col0
----
40
1155

skipif mysql # not compatible
query II rowsort label-4997
SELECT 40, - 15 * SUM ( - + 77 ) AS col0
----
40
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT ALL - 44 + - MAX( + 84 )
----
-128

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL - 44 + - MAX ( + 84 )
----
-128

query I rowsort
SELECT - 0 + 18 + - 87 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT DISTINCT + + MAX( ALL 8 ) + + + 84 * - 16
----
-1336

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT + + MAX ( ALL 8 ) + + + 84 * - 16
----
-1336

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT + MAX( - - 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5001
SELECT + MAX ( - - 78 ) AS col1
----
78

query I rowsort
SELECT + ( - 5 ) col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT - - COUNT( * ) + + 84 + 27
----
112

skipif mysql # not compatible
query I rowsort label-5003
SELECT - - COUNT ( * ) + + 84 + 27
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT + ( - + 48 ) + - ( + MAX( 0 ) ) * + 80
----
-48

skipif mysql # not compatible
query I rowsort label-5004
SELECT + ( - + 48 ) + - ( + MAX ( 0 ) ) * + 80
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5005
SELECT 9, + CAST( NULL AS SIGNED ) AS col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-5005
SELECT 9, + CAST ( NULL AS INTEGER ) AS col1
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL + CASE - 2 WHEN + 79 * + COALESCE ( - + 12, + + 19 ) THEN 83 + COALESCE ( 23, - 24 ) / - COUNT( * ) WHEN - ( - 77 ) THEN 32 * + 94 ELSE NULL END * + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL + CASE - 2 WHEN + 79 * + COALESCE ( - + 12, + + 19 ) THEN 83 + COALESCE ( 23, - 24 ) / - COUNT ( * ) WHEN - ( - 77 ) THEN 32 * + 94 ELSE NULL END * + 96
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5007
SELECT ALL + 60 DIV - 98 - + COUNT( * ) DIV + 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL + 60 / - 98 - + COUNT ( * ) / + 10 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5008
SELECT ALL - + 62 * - 60 + - 39 + CAST( NULL AS SIGNED ) / - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL - + 62 * - 60 + - 39 + CAST ( NULL AS INTEGER ) / - 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT + + COUNT( * ) * - 52
----
-52

skipif mysql # not compatible
query I rowsort label-5009
SELECT + + COUNT ( * ) * - 52
----
-52

query II rowsort
SELECT ALL + 6, ( ( - 33 ) ) AS col2
----
6
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT MAX( DISTINCT 75 ) col2
----
75

skipif mysql # not compatible
query I rowsort label-5011
SELECT MAX ( DISTINCT 75 ) col2
----
75

query I rowsort
SELECT + ( - - 69 ) AS col0
----
69

query II rowsort
SELECT - 66 * - 80 col0, + 62
----
5280
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5014
SELECT ALL 12 * 2 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL 12 * 2 / + 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT + CASE COUNT( * ) WHEN + + COUNT( * ) + - 66 + + + 8 THEN - 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT + CASE COUNT ( * ) WHEN + + COUNT ( * ) + - 66 + + + 8 THEN - 93 END
----
NULL

query I rowsort
SELECT + NULLIF ( - 81, 54 )
----
-81

query I rowsort
SELECT DISTINCT - ( - + 99 ) * + + 48 - + 60 + - 22 AS col2
----
4670

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT CASE - + 33 WHEN - - 50 THEN + 53 WHEN + 94 THEN NULL WHEN - 65 + - 80 + + SUM( 77 ) - + ( + - 16 ) + - 26 / - - 9 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT CASE - + 33 WHEN - - 50 THEN + 53 WHEN + 94 THEN NULL WHEN - 65 + - 80 + + SUM ( 77 ) - + ( + - 16 ) + - 26 / - - 9 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT - 75 * - COUNT( * ) * - + 88 + + - 79 + + 50 * - - 63 col2
----
-3529

skipif mysql # not compatible
query I rowsort label-5019
SELECT - 75 * - COUNT ( * ) * - + 88 + + - 79 + + 50 * - - 63 col2
----
-3529

onlyif mysql # aggregate syntax: 
query II rowsort label-5020
SELECT + 41 * + COUNT( * ) AS col1, 77
----
41
77

skipif mysql # not compatible
query II rowsort label-5020
SELECT + 41 * + COUNT ( * ) AS col1, 77
----
41
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL COUNT( * ) * + ( COUNT( + 40 ) ) + - MAX( + 25 )
----
-24

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL COUNT ( * ) * + ( COUNT ( + 40 ) ) + - MAX ( + 25 )
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-5022
SELECT - ( - 89 ), COUNT( DISTINCT + 90 ) AS col2
----
89
1

skipif mysql # not compatible
query II rowsort label-5022
SELECT - ( - 89 ), COUNT ( DISTINCT + 90 ) AS col2
----
89
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5023
SELECT SUM( ALL + 72 ) AS col1, 41
----
72
41

skipif mysql # not compatible
query II rowsort label-5023
SELECT SUM ( ALL + 72 ) AS col1, 41
----
72
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT MAX( ALL + ( - ( 43 ) ) )
----
-43

skipif mysql # not compatible
query I rowsort label-5024
SELECT MAX ( ALL + ( - ( 43 ) ) )
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5025
SELECT + 2 + - NULLIF ( - - 51, + + 83 * - + 45 - 81 ) + + CAST( NULL AS DECIMAL ) * 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT + 2 + - NULLIF ( - - 51, + + 83 * - + 45 - 81 ) + + CAST ( NULL AS REAL ) * 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5026
SELECT DISTINCT 77 DIV - - 63 col0, - NULLIF ( 8, + + 73 - - COUNT( * ) ) * + 78 + - - 87 * + + 61
----
1
4683

skipif mysql # not compatible
query II rowsort label-5026
SELECT DISTINCT 77 / - - 63 col0, - NULLIF ( 8, + + 73 - - COUNT ( * ) ) * + 78 + - - 87 * + + 61
----
1
4683

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5027
SELECT - + 66 * + 72 + - CAST( NULL AS DECIMAL ) + + + ( + + 44 ) + 4 * - - 31, + 41 + 31 AS col0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-5027
SELECT - + 66 * + 72 + - CAST ( NULL AS REAL ) + + + ( + + 44 ) + 4 * - - 31, + 41 + 31 AS col0
----
NULL
72

query I rowsort
SELECT DISTINCT ( - 0 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT - + 16 + ( COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-5029
SELECT - + 16 + ( COUNT ( * ) )
----
-15

query I rowsort
SELECT DISTINCT + 52 * + 92 AS col2
----
4784

query I rowsort
SELECT + + 89 - - + 96 * 32
----
3161

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL - COUNT( * ) - 24 - + - 51 + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - COUNT ( * ) - 24 - + - 51 + + COUNT ( * )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT ALL CAST( 13 AS SIGNED ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL CAST ( 13 AS INTEGER ) AS col1
----
13

query II rowsort
SELECT ALL - ( - 31 ) AS col2, 86 + + 80 * - 37 AS col2
----
31
-2874

query II rowsort
SELECT + 41 * - - 56, + 20 AS col1
----
2296
20

query I rowsort
SELECT - 50 - - NULLIF ( 67, - 41 * - ( ( + + 81 ) ) - + ( + + 78 ) ) * 43 + + 90
----
2921

onlyif mysql # DIV for integer division: 
query I rowsort label-5037
SELECT - + 70 DIV + 66 - + 91
----
-92

skipif mysql # not compatible
query I rowsort label-5037
SELECT - + 70 / + 66 - + 91
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5038
SELECT + 68 DIV COUNT( * ) AS col0, - 35 col2
----
68
-35

skipif mysql # not compatible
query II rowsort label-5038
SELECT + 68 / COUNT ( * ) AS col0, - 35 col2
----
68
-35

query I rowsort
SELECT COALESCE ( + + 5, - 25 ) col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5040
SELECT - 54 DIV ( - 11 ) + - 94 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-5040
SELECT - 54 / ( - 11 ) + - 94 AS col1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5041
SELECT 67 DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-5041
SELECT 67 / 48
----
1

query I rowsort
SELECT ALL - 15 * + + 80 AS col1
----
-1200

query I rowsort
SELECT DISTINCT - ( 31 ) col1
----
-31

query I rowsort
SELECT DISTINCT + 43 + - 22
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5045
SELECT ALL - CAST( - 13 AS SIGNED ) + - 63 * 79 * - - 96 * + 54 - + COUNT( DISTINCT 19 ) * - 16
----
-25800739

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL - CAST ( - 13 AS INTEGER ) + - 63 * 79 * - - 96 * + 54 - + COUNT ( DISTINCT 19 ) * - 16
----
-25800739

query I rowsort
SELECT DISTINCT 0 + 43 AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5047
SELECT 37 * + CASE - - 13 WHEN SUM( ALL ( - - CASE + 74 WHEN - + 69 / + 56 + + 37 + - COALESCE ( - 5, 79 + - COALESCE ( - + ( + 24 ), + + NULLIF ( + CAST( - - 65 AS SIGNED ), + 69 ) ) ) * - 67 / - 31 * + 76 THEN NULL ELSE 8 END ) ) * 26 + - 31 * ( - 49 ) THEN CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT 37 * + CASE - - 13 WHEN SUM ( ALL ( - - CASE + 74 WHEN - + 69 / + 56 + + 37 + - COALESCE ( - 5, 79 + - COALESCE ( - + ( + 24 ), + + NULLIF ( + CAST ( - - 65 AS INTEGER ), + 69 ) ) ) * - 67 / - 31 * + 76 THEN NULL ELSE 8 END ) ) * 26 + - 31 * ( - 49 ) THEN CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5048
SELECT CASE + CASE - COUNT( * ) WHEN - 83 THEN CAST( NULL AS SIGNED ) / + - 73 * 16 - - 29 + - - 2 END WHEN - + 45 THEN 23 * + - 97 WHEN + 19 * + COUNT( * ) THEN NULL ELSE NULL END * 64 + + + COUNT( * ) * COALESCE ( + NULLIF ( + + 4, + + 44 + + + 15 * - CAST( - 25 AS SIGNED ) - COUNT( * ) ), - 85 ) * 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT CASE + CASE - COUNT ( * ) WHEN - 83 THEN CAST ( NULL AS INTEGER ) / + - 73 * 16 - - 29 + - - 2 END WHEN - + 45 THEN 23 * + - 97 WHEN + 19 * + COUNT ( * ) THEN NULL ELSE NULL END * 64 + + + COUNT ( * ) * COALESCE ( + NULLIF ( + + 4, + + 44 + + + 15 * - CAST ( - 25 AS INTEGER ) - COUNT ( * ) ), - 85 ) * 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT DISTINCT 64 + + 89 + + COUNT( ALL 31 ) AS col2
----
154

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT 64 + + 89 + + COUNT ( ALL 31 ) AS col2
----
154

query I rowsort
SELECT DISTINCT 58 + ( + NULLIF ( + 42, - 33 ) ) AS col0
----
100

query I rowsort
SELECT DISTINCT - ( + - 58 )
----
58

query I rowsort
SELECT ALL 93 * + + 29 AS col1
----
2697

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5053
SELECT 65, 51 DIV SUM( DISTINCT 45 ) AS col2
----
65
1

skipif mysql # not compatible
query II rowsort label-5053
SELECT 65, 51 / SUM ( DISTINCT 45 ) AS col2
----
65
1

query I rowsort
SELECT ALL - 6 - 53 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5055
SELECT + - COUNT( * ) * + + 56 + + 8, ( + - 19 ) AS col1
----
-48
-19

skipif mysql # not compatible
query II rowsort label-5055
SELECT + - COUNT ( * ) * + + 56 + + 8, ( + - 19 ) AS col1
----
-48
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5056
SELECT 8 DIV - 51 + - 70 + + - 91
----
-161

skipif mysql # not compatible
query I rowsort label-5056
SELECT 8 / - 51 + - 70 + + - 91
----
-161

query I rowsort
SELECT ALL 92 * + 51
----
4692

onlyif mysql # aggregate syntax: 
query II rowsort label-5058
SELECT + 59 * + 26 * - 65 AS col2, ( - 25 ) + COUNT( * ) AS col1
----
-99710
-24

skipif mysql # not compatible
query II rowsort label-5058
SELECT + 59 * + 26 * - 65 AS col2, ( - 25 ) + COUNT ( * ) AS col1
----
-99710
-24

query II rowsort
SELECT 57 AS col2, 45
----
57
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL + 99 * + 66 * - COUNT( * ) AS col0
----
-6534

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL + 99 * + 66 * - COUNT ( * ) AS col0
----
-6534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5061
SELECT - COUNT( * ) * + 16 * + + 38 - + CAST( NULL AS SIGNED ) * ( - - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT - COUNT ( * ) * + 16 * + + 38 - + CAST ( NULL AS INTEGER ) * ( - - 57 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT DISTINCT - 71 DIV - 64
----
1

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT - 71 / - 64
----
1

query I rowsort
SELECT - 48 + - 28 + + - 9
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5064
SELECT 37 AS col0, 67 * - - ( - 38 ) * + + 86 * - - COUNT( * ) + - - 45 * - - 97 * - 62 + - 73 + - CASE 66 WHEN + - COUNT( * ) THEN 74 * + + 4 - + + 65 + - 7 * + 98 - - 42 END + + 68 + + CAST( - 61 AS SIGNED ) + - 36 / 59 * 24 / - 22 AS col0
----
37
NULL

skipif mysql # not compatible
query II rowsort label-5064
SELECT 37 AS col0, 67 * - - ( - 38 ) * + + 86 * - - COUNT ( * ) + - - 45 * - - 97 * - 62 + - 73 + - CASE 66 WHEN + - COUNT ( * ) THEN 74 * + + 4 - + + 65 + - 7 * + 98 - - 42 END + + 68 + + CAST ( - 61 AS INTEGER ) + - 36 / 59 * 24 / - 22 AS col0
----
37
NULL

query I rowsort
SELECT - 5 * + 37
----
-185

query I rowsort
SELECT + 75 + + 1 * + + COALESCE ( - 72, + 93 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT ALL - + 82 + + COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL - + 82 + + COUNT ( * ) AS col1
----
-81

query I rowsort
SELECT DISTINCT - 2 + + 98 col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5069
SELECT ALL - NULLIF ( + + 73, - 37 * 96 * SUM( + 1 ) + CAST( NULL AS SIGNED ) + + 39 / + 61 * - 20 * + + 50 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL - NULLIF ( + + 73, - 37 * 96 * SUM ( + 1 ) + CAST ( NULL AS INTEGER ) + + 39 / + 61 * - 20 * + + 50 ) AS col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5070
SELECT DISTINCT ( 12 ) + 53 + - 90 * - - 22 * CASE - 26 WHEN - 72 + + ( + + 40 ) THEN + - NULLIF ( COUNT( ALL - 89 ), - 7 * + CAST( ( 75 ) AS SIGNED ) + 55 + - - CAST( + 69 AS SIGNED ) * COALESCE ( - CASE - + MIN( DISTINCT - ( - COALESCE ( - 8, 13 * 81 ) ) ) WHEN 21 THEN 48 ELSE ( 64 ) END, - 44 + 27 ) * - ( + 56 ) ) * 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT ( 12 ) + 53 + - 90 * - - 22 * CASE - 26 WHEN - 72 + + ( + + 40 ) THEN + - NULLIF ( COUNT ( ALL - 89 ), - 7 * + CAST ( ( 75 ) AS INTEGER ) + 55 + - - CAST ( + 69 AS INTEGER ) * COALESCE ( - CASE - + MIN ( DISTINCT - ( - COALESCE ( - 8, 13 * 81 ) ) ) WHEN 21 THEN 48 ELSE ( 64 ) END, - 44 + 27 ) * - ( + 56 ) ) * 73 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT ALL - ( CASE + NULLIF ( COUNT( * ), + + COUNT( + 26 ) + + 7 + 87 ) WHEN - 54 THEN - 10 - 46 ELSE 21 * - + 81 * - 39 + 66 + + 93 + - 43 END ) AS col0
----
-66455

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL - ( CASE + NULLIF ( COUNT ( * ), + + COUNT ( + 26 ) + + 7 + 87 ) WHEN - 54 THEN - 10 - 46 ELSE 21 * - + 81 * - 39 + 66 + + 93 + - 43 END ) AS col0
----
-66455

query I rowsort
SELECT DISTINCT - 75 + 18 + + 22 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-5073
SELECT COUNT( * ) * + 4 AS col0, 1 + + 37 + + 81
----
4
119

skipif mysql # not compatible
query II rowsort label-5073
SELECT COUNT ( * ) * + 4 AS col0, 1 + + 37 + + 81
----
4
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT 73 * - CAST( - MAX( - CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT 73 * - CAST ( - MAX ( - CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5075
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) AS col1, 15 AS col0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-5075
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) AS col1, 15 AS col0
----
NULL
15

query I rowsort
SELECT ALL + 58 + + 84
----
142

query II rowsort
SELECT 63 - - + 47, - COALESCE ( - 69, 11 ) * - - 58 + 29 col1
----
110
4031

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5078
SELECT ALL + 58 - + CASE 33 WHEN - - CAST( - COUNT( * ) AS SIGNED ) THEN + MAX( ALL 9 ) WHEN + + COALESCE ( 68, MIN( DISTINCT + 5 ) * - MAX( + 74 ) + - 59 ) THEN + 0 WHEN COUNT( * ) * + - 28 * + 11 THEN + + 87 * - + COUNT( * ) + + 47 * 10 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL + 58 - + CASE 33 WHEN - - CAST ( - COUNT ( * ) AS INTEGER ) THEN + MAX ( ALL 9 ) WHEN + + COALESCE ( 68, MIN ( DISTINCT + 5 ) * - MAX ( + 74 ) + - 59 ) THEN + 0 WHEN COUNT ( * ) * + - 28 * + 11 THEN + + 87 * - + COUNT ( * ) + + 47 * 10 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT 88 * + - COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-5079
SELECT 88 * + - COUNT ( * ) AS col1
----
-88

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5080
SELECT ALL - 95 * CASE - CAST( NULL AS SIGNED ) WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN + 51 THEN - + 33 / - ( - AVG ( ALL - 47 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL - 95 * CASE - CAST ( NULL AS INTEGER ) WHEN CAST ( NULL AS REAL ) THEN NULL WHEN + 51 THEN - + 33 / - ( - AVG ( ALL - 47 ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 86 * 82 AS col1
----
-7052

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5082
SELECT - 7 - - + COUNT( * ) AS col0, 92 DIV NULLIF ( - - 88, + + 72 ) col0
----
-6
1

skipif mysql # not compatible
query II rowsort label-5082
SELECT - 7 - - + COUNT ( * ) AS col0, 92 / NULLIF ( - - 88, + + 72 ) col0
----
-6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT + + NULLIF ( + COALESCE ( - + MIN( ALL 46 ), 90 ), + + 19 + - - COUNT( * ) )
----
-46

skipif mysql # not compatible
query I rowsort label-5083
SELECT + + NULLIF ( + COALESCE ( - + MIN ( ALL 46 ), 90 ), + + 19 + - - COUNT ( * ) )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5084
SELECT + NULLIF ( - CAST( + - COUNT( * ) AS SIGNED ), - COUNT( * ) ) + - 3
----
-2

skipif mysql # not compatible
query I rowsort label-5084
SELECT + NULLIF ( - CAST ( + - COUNT ( * ) AS INTEGER ), - COUNT ( * ) ) + - 3
----
-2

query I rowsort
SELECT + COALESCE ( 53, - 4 - - + 60 + 66, 11, + - 81 - 30 + - 31 * + 44 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT - - COUNT( * ) + - MAX( ALL + 26 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-5086
SELECT - - COUNT ( * ) + - MAX ( ALL + 26 ) AS col1
----
-25

query I rowsort
SELECT DISTINCT + ( - 11 ) * - 26 + 1 AS col1
----
287

onlyif mysql # DIV for integer division: 
query I rowsort label-5088
SELECT + NULLIF ( + 94, 47 ) DIV + 79 col1
----
1

skipif mysql # not compatible
query I rowsort label-5088
SELECT + NULLIF ( + 94, 47 ) / + 79 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT ALL 93 * - MAX( NULLIF ( 67, 33 + + 29 * 56 ) ) * - - MIN( + 68 ) + - + SUM( ALL - - COALESCE ( 89, + 59 * - - 10 ) )
----
-423797

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL 93 * - MAX ( NULLIF ( 67, 33 + + 29 * 56 ) ) * - - MIN ( + 68 ) + - + SUM ( ALL - - COALESCE ( 89, + 59 * - - 10 ) )
----
-423797

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT - + COUNT( * ) * 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5090
SELECT - + COUNT ( * ) * 3 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT DISTINCT COUNT( * ) + ( - + 59 )
----
-58

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT COUNT ( * ) + ( - + 59 )
----
-58

query I rowsort
SELECT + 99 - - 69 AS col2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT DISTINCT + + COUNT( * ) + - 77
----
-76

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT + + COUNT ( * ) + - 77
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5094
SELECT ALL ( - 78 ) + 4 AS col0, + CAST( NULL AS DECIMAL )
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-5094
SELECT ALL ( - 78 ) + 4 AS col0, + CAST ( NULL AS REAL )
----
-74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL - 89 + 25 + + CASE 84 WHEN - COUNT( * ) THEN NULL WHEN + + 84 THEN NULL WHEN - COUNT( * ) THEN 9 END / - MIN( - + 38 ) * - 51 + + 57 - COALESCE ( + + 13, 96 * + 55 + 82 ) + 54 * + 59 + + + ( 63 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL - 89 + 25 + + CASE 84 WHEN - COUNT ( * ) THEN NULL WHEN + + 84 THEN NULL WHEN - COUNT ( * ) THEN 9 END / - MIN ( - + 38 ) * - 51 + + 57 - COALESCE ( + + 13, 96 * + 55 + 82 ) + 54 * + 59 + + + ( 63 ) AS col2
----
NULL

query I rowsort
SELECT + 89 - ( - + 61 ) * + 23 * - + 72 - 82 + 15 AS col1
----
-100994

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT ALL 54 DIV - - 89
----
0

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL 54 / - - 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5098
SELECT + ( - 35 ) DIV + 12 - - - 90 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-5098
SELECT + ( - 35 ) / + 12 - - - 90 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL 94 * - 91 * - + CASE - 50 WHEN + COUNT( * ) * 84 THEN NULL WHEN 19 * 2 THEN NULL ELSE + 45 END - + + 76 col2
----
384854

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL 94 * - 91 * - + CASE - 50 WHEN + COUNT ( * ) * 84 THEN NULL WHEN 19 * 2 THEN NULL ELSE + 45 END - + + 76 col2
----
384854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5100
SELECT 89 DIV - CAST( + 49 AS SIGNED ) + + + ( + 55 ) + + + 10 + + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-5100
SELECT 89 / - CAST ( + 49 AS INTEGER ) + + + ( + 55 ) + + + 10 + + COUNT ( * )
----
65

query I rowsort
SELECT ALL 94 * + - 5
----
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT + COUNT( * ) + + COALESCE ( + - 70, + + 79 * 50, + + CASE - 82 WHEN 27 THEN NULL WHEN + + 59 THEN - + 85 ELSE + 49 END + + - 89 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-5102
SELECT + COUNT ( * ) + + COALESCE ( + - 70, + + 79 * 50, + + CASE - 82 WHEN 27 THEN NULL WHEN + + 59 THEN - + 85 ELSE + 49 END + + - 89 ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT DISTINCT 29 * + COUNT( + 77 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT 29 * + COUNT ( + 77 ) AS col0
----
29

query I rowsort
SELECT DISTINCT 46 * - 56 AS col1
----
-2576

query I rowsort
SELECT ALL + 54 * - 93 * - - 16 * + 65 - - 6 * - - 57 col1
----
-5222538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5106
SELECT CASE NULLIF ( - CASE + - 76 WHEN MAX( ALL 74 ) - + 77 / 71 THEN + AVG ( 44 ) END, - CAST( 39 AS SIGNED ) + + 90 ) WHEN - CAST( NULL AS SIGNED ) THEN - MIN( ALL - CAST( + - 54 AS SIGNED ) ) * - 10 ELSE - + ( + COUNT( * ) ) END col2
----
-1

skipif mysql # not compatible
query I rowsort label-5106
SELECT CASE NULLIF ( - CASE + - 76 WHEN MAX ( ALL 74 ) - + 77 / 71 THEN + AVG ( 44 ) END, - CAST ( 39 AS INTEGER ) + + 90 ) WHEN - CAST ( NULL AS INTEGER ) THEN - MIN ( ALL - CAST ( + - 54 AS INTEGER ) ) * - 10 ELSE - + ( + COUNT ( * ) ) END col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5107
SELECT 27 DIV - - COALESCE ( 68, + 65 * ( - 17 ), + 17 ) DIV - + COUNT( * ) + - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5107
SELECT 27 / - - COALESCE ( 68, + 65 * ( - 17 ), + 17 ) / - + COUNT ( * ) + - - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + ( + - 3 ) AS col2
----
-3

query I rowsort
SELECT - 28 + 64 * + - 84 * + + 61
----
-327964

query I rowsort
SELECT + 44 * + 28 + + 15 AS col1
----
1247

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5111
SELECT - ( 58 ) * + NULLIF ( + - COUNT( * ), - CAST( COUNT( * ) AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT - ( 58 ) * + NULLIF ( + - COUNT ( * ), - CAST ( COUNT ( * ) AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT 29 * 41 + + 93 * + - MAX( ( 53 ) ) + - + 75 + + COALESCE ( 61, MAX( DISTINCT + ( 73 ) ) + 35 ) * - 9 AS col0
----
-4364

skipif mysql # not compatible
query I rowsort label-5112
SELECT 29 * 41 + + 93 * + - MAX ( ( 53 ) ) + - + 75 + + COALESCE ( 61, MAX ( DISTINCT + ( 73 ) ) + 35 ) * - 9 AS col0
----
-4364

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT DISTINCT + MIN( DISTINCT + 1 ) * - 23
----
-23

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT + MIN ( DISTINCT + 1 ) * - 23
----
-23

query I rowsort
SELECT ALL + 32 * + - 64
----
-2048

query I rowsort
SELECT - 80 * 50 - + - 63 * 84 + + - 86 AS col2
----
1206

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT ALL + COALESCE ( + + COUNT( * ), + 61 ) * + 20
----
20

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + COALESCE ( + + COUNT ( * ), + 61 ) * + 20
----
20

query I rowsort
SELECT DISTINCT + - 53 * + 89
----
-4717

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT - CASE + - COUNT( * ) WHEN 82 THEN + - ( + 30 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT - CASE + - COUNT ( * ) WHEN 82 THEN + - ( + 30 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT - + CASE - + 41 WHEN 68 THEN - - COUNT( * ) WHEN + + 82 THEN 22 ELSE NULL END * + 0 * COUNT( * ) * - 83 + + 89 - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT - + CASE - + 41 WHEN 68 THEN - - COUNT ( * ) WHEN + + 82 THEN 22 ELSE NULL END * + 0 * COUNT ( * ) * - 83 + + 89 - 92
----
NULL

query II rowsort
SELECT - 57 AS col0, + 9 + - 81 AS col1
----
-57
-72

query I rowsort
SELECT DISTINCT - 78 + - 23
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5122
SELECT ALL + CAST( - 99 AS SIGNED ) + - 95 + 4
----
-190

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL + CAST ( - 99 AS INTEGER ) + - 95 + 4
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT DISTINCT NULLIF ( + - COUNT( * ), - - 92 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT NULLIF ( + - COUNT ( * ), - - 92 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5124
SELECT + CASE - 7 WHEN - 54 + - 27 THEN - 45 + + CAST( NULL AS SIGNED ) WHEN 75 * + + 84 * + + CAST( - 2 AS SIGNED ) + + ( - SUM( ALL + 24 ) ) * - ( 9 ) THEN - - 34 WHEN + + SUM( + 34 ) * + AVG ( 66 ) THEN NULL END + - 85 AS col2, 99
----
NULL
99

skipif mysql # not compatible
query II rowsort label-5124
SELECT + CASE - 7 WHEN - 54 + - 27 THEN - 45 + + CAST ( NULL AS INTEGER ) WHEN 75 * + + 84 * + + CAST ( - 2 AS INTEGER ) + + ( - SUM ( ALL + 24 ) ) * - ( 9 ) THEN - - 34 WHEN + + SUM ( + 34 ) * + AVG ( 66 ) THEN NULL END + - 85 AS col2, 99
----
NULL
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5125
SELECT + 66 + 2 * 11 DIV + - 9, SUM( ALL - 70 ) + 80 AS col2
----
64
10

skipif mysql # not compatible
query II rowsort label-5125
SELECT + 66 + 2 * 11 / + - 9, SUM ( ALL - 70 ) + 80 AS col2
----
64
10

query I rowsort
SELECT ALL 48 - + NULLIF ( 0, 35 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT + COUNT( * ) + 51 + + - 8 col1
----
44

skipif mysql # not compatible
query I rowsort label-5127
SELECT + COUNT ( * ) + 51 + + - 8 col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5128
SELECT DISTINCT MAX( ALL + 97 ) - - - 67 * - 8 * + - COUNT( * ) + - ( + 65 ) - + 14 + 96 * + CASE + NULLIF ( 48, - SUM( - 75 ) + + - 66 - 22 * + NULLIF ( 89, + 16 ) * COUNT( * ) * + 99 ) WHEN + 76 THEN NULL WHEN - SUM( 99 ) / + + CAST( NULL AS SIGNED ) * + 94 * MAX( - 16 ) + + 48 THEN 57 * 57 + 83 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT MAX ( ALL + 97 ) - - - 67 * - 8 * + - COUNT ( * ) + - ( + 65 ) - + 14 + 96 * + CASE + NULLIF ( 48, - SUM ( - 75 ) + + - 66 - 22 * + NULLIF ( 89, + 16 ) * COUNT ( * ) * + 99 ) WHEN + 76 THEN NULL WHEN - SUM ( 99 ) / + + CAST ( NULL AS INTEGER ) * + 94 * MAX ( - 16 ) + + 48 THEN 57 * 57 + 83 END AS col2
----
NULL

query I rowsort
SELECT + ( + 60 ) * - - 32 * + 48 * + + 53 AS col2
----
4884480

query I rowsort
SELECT ALL + 67 * 5 * 88 AS col0
----
29480

query I rowsort
SELECT DISTINCT + COALESCE ( + 14, - + 9 )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5132
SELECT ALL 53 DIV - 6 - 86 + - 30 AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL 53 / - 6 - 86 + - 30 AS col2
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT DISTINCT 35 / CASE 66 WHEN - 94 THEN - COUNT( DISTINCT - + 92 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT 35 / CASE 66 WHEN - 94 THEN - COUNT ( DISTINCT - + 92 ) END AS col0
----
NULL

query I rowsort
SELECT + ( + + 5 ) col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5135
SELECT + 76 DIV + + 79 * 26
----
0

skipif mysql # not compatible
query I rowsort label-5135
SELECT + 76 / + + 79 * 26
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT ALL 82 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL 82 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT + CASE + ( - + 22 ) WHEN + 44 THEN + SUM( DISTINCT 85 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5137
SELECT + CASE + ( - + 22 ) WHEN + 44 THEN + SUM ( DISTINCT 85 ) END
----
NULL

query I rowsort
SELECT + 22 * + + 56
----
1232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5139
SELECT CAST( 46 AS SIGNED ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5139
SELECT CAST ( 46 AS INTEGER ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT - COUNT( * ) - 73
----
-74

skipif mysql # not compatible
query I rowsort label-5140
SELECT - COUNT ( * ) - 73
----
-74

query I rowsort
SELECT ALL - 36 * 16 * - - 1
----
-576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5142
SELECT DISTINCT - 25 * - CAST( + COUNT( * ) AS SIGNED ) * 44
----
1100

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT - 25 * - CAST ( + COUNT ( * ) AS INTEGER ) * 44
----
1100

query I rowsort
SELECT ALL - + 80 + + 84 + + 7 * + - 44
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT - 92 * + - NULLIF ( + - COUNT( * ), - + 4 * + + 47 ) * - - 18 + - COUNT( * ) + + + 24 + 34 * 22 * - - 56 + - + 25 + 6 + + 57
----
40293

skipif mysql # not compatible
query I rowsort label-5144
SELECT - 92 * + - NULLIF ( + - COUNT ( * ), - + 4 * + + 47 ) * - - 18 + - COUNT ( * ) + + + 24 + 34 * 22 * - - 56 + - + 25 + 6 + + 57
----
40293

query I rowsort
SELECT 52 - - 82
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5146
SELECT DISTINCT - - 50 + - + 58 + - - COUNT( * ) DIV + 16 * 20 + - 73
----
-81

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT - - 50 + - + 58 + - - COUNT ( * ) / + 16 * 20 + - 73
----
-81

query I rowsort
SELECT DISTINCT + 48 + 92 * + 62 * + NULLIF ( 33, - + 26 ) AS col0
----
188280

query II rowsort
SELECT - + 8 col0, + 55 * + 27
----
-8
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT ALL + COUNT( * ) * - COUNT( * ) + + 47
----
46

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + + 47
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT CAST( NULL AS SIGNED ) + + NULLIF ( + NULLIF ( - 42, 21 / - 9 * - 33 + - ( + - 67 ) ), - 11 * + 78 / 3 + + - 53 / - 88 + + 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT CAST ( NULL AS INTEGER ) + + NULLIF ( + NULLIF ( - 42, 21 / - 9 * - 33 + - ( + - 67 ) ), - 11 * + 78 / 3 + + - 53 / - 88 + + 10 ) AS col1
----
NULL

query II rowsort
SELECT 73 * - 61 AS col1, 92
----
-4453
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5152
SELECT DISTINCT + 89 - - + 87 AS col2, COUNT( * ) * - + 23 * MIN( - 2 ) AS col1
----
176
46

skipif mysql # not compatible
query II rowsort label-5152
SELECT DISTINCT + 89 - - + 87 AS col2, COUNT ( * ) * - + 23 * MIN ( - 2 ) AS col1
----
176
46

query I rowsort
SELECT ALL - 25 - + 1
----
-26

query I rowsort
SELECT 63 - + - 56
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL CASE - COUNT( ALL 98 ) WHEN - 63 * - 3 + 53 - + 42 THEN + + 31 ELSE 5 + - + COUNT( - 54 ) + 86 * - - 98 + + 14 END * + - 12 + - + 26 AS col0
----
-101378

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL CASE - COUNT ( ALL 98 ) WHEN - 63 * - 3 + 53 - + 42 THEN + + 31 ELSE 5 + - + COUNT ( - 54 ) + 86 * - - 98 + + 14 END * + - 12 + - + 26 AS col0
----
-101378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5156
SELECT 98 - 15 + - - COALESCE ( + + CAST( + 28 AS SIGNED ), + 44, - + COUNT( - - 74 ) DIV + NULLIF ( - 51, - 33 + COUNT( * ) * + CASE - - 88 WHEN + MAX( ALL - - 83 ) * + 98 * 97 + 15 + 33 * 12 THEN NULL ELSE 26 * 83 + 80 END * - 82 + + - 25 ) ) * + 16
----
531

skipif mysql # not compatible
query I rowsort label-5156
SELECT 98 - 15 + - - COALESCE ( + + CAST ( + 28 AS INTEGER ), + 44, - + COUNT ( - - 74 ) / + NULLIF ( - 51, - 33 + COUNT ( * ) * + CASE - - 88 WHEN + MAX ( ALL - - 83 ) * + 98 * 97 + 15 + 33 * 12 THEN NULL ELSE 26 * 83 + 80 END * - 82 + + - 25 ) ) * + 16
----
531

query II rowsort
SELECT ALL - 36 * - 31 col0, 76 + - + 23 col2
----
1116
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT 72 + + + COUNT( * ) * 57
----
129

skipif mysql # not compatible
query I rowsort label-5158
SELECT 72 + + + COUNT ( * ) * 57
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5159
SELECT 78 * + CAST( - 91 AS SIGNED )
----
-7098

skipif mysql # not compatible
query I rowsort label-5159
SELECT 78 * + CAST ( - 91 AS INTEGER )
----
-7098

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5160
SELECT + 17 DIV - COUNT( * ) + + 14 + - 30
----
-33

skipif mysql # not compatible
query I rowsort label-5160
SELECT + 17 / - COUNT ( * ) + + 14 + - 30
----
-33

query I rowsort
SELECT 91 * + - 94
----
-8554

onlyif mysql # aggregate syntax: 
query II rowsort label-5162
SELECT ALL CASE 16 WHEN + 9 THEN COUNT( ALL - 56 ) ELSE NULL END + ( + - 99 ) AS col0, + 79 * 23 AS col1
----
NULL
1817

skipif mysql # not compatible
query II rowsort label-5162
SELECT ALL CASE 16 WHEN + 9 THEN COUNT ( ALL - 56 ) ELSE NULL END + ( + - 99 ) AS col0, + 79 * 23 AS col1
----
NULL
1817

onlyif mysql # aggregate syntax: 
query II rowsort label-5163
SELECT COUNT( * ) + - + 27 AS col1, + ( 97 ) AS col2
----
-26
97

skipif mysql # not compatible
query II rowsort label-5163
SELECT COUNT ( * ) + - + 27 AS col1, + ( 97 ) AS col2
----
-26
97

query I rowsort
SELECT ALL - ( - - 97 ) AS col1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5165
SELECT + 44 * + 47 + - 69 DIV ( + - 7 ) AS col2
----
2077

skipif mysql # not compatible
query I rowsort label-5165
SELECT + 44 * + 47 + - 69 / ( + - 7 ) AS col2
----
2077

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5166
SELECT ALL + CAST( NULL AS SIGNED ) / - COUNT( * ) * - 36 + - + ( - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL + CAST ( NULL AS INTEGER ) / - COUNT ( * ) * - 36 + - + ( - 1 )
----
NULL

query I rowsort
SELECT ALL ( - 30 ) + + 41 AS col2
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5168
SELECT 77 * - 45 + + - 66 - 36 + + 40 + - 19 DIV + 88 * 98 * - + MIN( DISTINCT - + 17 ) AS col0
----
-3527

skipif mysql # not compatible
query I rowsort label-5168
SELECT 77 * - 45 + + - 66 - 36 + + 40 + - 19 / + 88 * 98 * - + MIN ( DISTINCT - + 17 ) AS col0
----
-3527

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT 20 + - + ( + 43 ) + + + 92 + + + 61 * - + MIN( ALL - 70 ) * + 97
----
414259

skipif mysql # not compatible
query I rowsort label-5169
SELECT 20 + - + ( + 43 ) + + + 92 + + + 61 * - + MIN ( ALL - 70 ) * + 97
----
414259

query I rowsort
SELECT ALL ( + 4 ) * - - 65 * - 71 AS col0
----
-18460

onlyif mysql # aggregate syntax: 
query II rowsort label-5171
SELECT 66 + + 54 col0, + 36 * + + 83 * COUNT( * )
----
120
2988

skipif mysql # not compatible
query II rowsort label-5171
SELECT 66 + + 54 col0, + 36 * + + 83 * COUNT ( * )
----
120
2988

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ALL 73 + + - COUNT( * ) * - - 82
----
-9

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL 73 + + - COUNT ( * ) * - - 82
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5173
SELECT ALL + MAX( + - 13 ) * + COUNT( * ) * + 1 DIV ( - 33 ) * + + 83 + + + 29 + COUNT( * ) * + + 63 + 21
----
113

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL + MAX ( + - 13 ) * + COUNT ( * ) * + 1 / ( - 33 ) * + + 83 + + + 29 + COUNT ( * ) * + + 63 + 21
----
113

query I rowsort
SELECT DISTINCT 21 + 28 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT DISTINCT COUNT( * ) + + 42
----
43

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT COUNT ( * ) + + 42
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT ALL + COUNT( * ) * + 63 * - + 84
----
-5292

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL + COUNT ( * ) * + 63 * - + 84
----
-5292

query I rowsort
SELECT DISTINCT - 97 + + 91
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL - MAX( - ( + 49 ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL - MAX ( - ( + 49 ) ) AS col2
----
49

query I rowsort
SELECT 69 * - 21 + - 12
----
-1461

query I rowsort
SELECT + 14 + + 60 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT - COUNT( * ) - - 18
----
17

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT - COUNT ( * ) - - 18
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5182
SELECT + 58 * - + 4 + + + 32 + - 3 / - - 36 + - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT + 58 * - + 4 + + + 32 + - 3 / - - 36 + - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT ALL 7 - - 57 AS col0
----
64

query I rowsort
SELECT 57 * + 97
----
5529

query I rowsort
SELECT ALL - 30 * - 39 * + 11 AS col1
----
12870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5186
SELECT 63 + - COUNT( * ) + 48 - + COUNT( * ) + + + MIN( ALL ( - 91 ) ) - - 24 DIV + 54 + - COUNT( * ) * - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-5186
SELECT 63 + - COUNT ( * ) + 48 - + COUNT ( * ) + + + MIN ( ALL ( - 91 ) ) - - 24 / + 54 + - COUNT ( * ) * - COUNT ( * )
----
19

query I rowsort
SELECT 82 * + 66
----
5412

onlyif mysql # aggregate syntax: 
query II rowsort label-5188
SELECT ALL COUNT( * ) col0, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5188
SELECT ALL COUNT ( * ) col0, + COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ALL MIN( ALL + - 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL MIN ( ALL + - 58 ) AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5190
SELECT 1 / CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5190
SELECT 1 / CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5191
SELECT 7 + + ( + + 71 ) + COUNT( * ) - 71 * - + CAST( NULL AS SIGNED ) * 72 - + 22 + + 25 AS col2, 12
----
NULL
12

skipif mysql # not compatible
query II rowsort label-5191
SELECT 7 + + ( + + 71 ) + COUNT ( * ) - 71 * - + CAST ( NULL AS INTEGER ) * 72 - + 22 + + 25 AS col2, 12
----
NULL
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL MIN( DISTINCT + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL MIN ( DISTINCT + 66 ) AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT 81 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT 81 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 17 + - 67
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT - CASE - - NULLIF ( - 95, - - 20 * SUM( 45 ) ) WHEN - 59 + 90 THEN - - 93 / - COUNT( * ) + 38 END / + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT - CASE - - NULLIF ( - 95, - - 20 * SUM ( 45 ) ) WHEN - 59 + 90 THEN - - 93 / - COUNT ( * ) + 38 END / + 55
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5196
SELECT 43 AS col0, COUNT( * )
----
43
1

skipif mysql # not compatible
query II rowsort label-5196
SELECT 43 AS col0, COUNT ( * )
----
43
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5197
SELECT DISTINCT + COUNT( * ) col2, + 59
----
1
59

skipif mysql # not compatible
query II rowsort label-5197
SELECT DISTINCT + COUNT ( * ) col2, + 59
----
1
59

query I rowsort
SELECT DISTINCT 44 * + 32 + 71 AS col1
----
1479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5199
SELECT ALL + 29 * + - MIN( 39 ) / - CAST( NULL AS SIGNED ) - + - COUNT( CAST( NULL AS DECIMAL ) ) + + COUNT( * ) + - ( - 11 ) + 82 * COALESCE ( - 38, 35 + + CAST( NULL AS SIGNED ) + - 21 * - - 52 + - 83 ) + + - 96 + - - COUNT( * ) + 32 * - + 46 * + 14 * - COUNT( * ) * + + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL + 29 * + - MIN ( 39 ) / - CAST ( NULL AS INTEGER ) - + - COUNT ( CAST ( NULL AS REAL ) ) + + COUNT ( * ) + - ( - 11 ) + 82 * COALESCE ( - 38, 35 + + CAST ( NULL AS INTEGER ) + - 21 * - - 52 + - 83 ) + + - 96 + - - COUNT ( * ) + 32 * - + 46 * + 14 * - COUNT ( * ) * + + 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT DISTINCT - CASE ( 49 ) WHEN - 67 - + 71 + - + COUNT( * ) THEN NULL WHEN 13 THEN 94 END * - - 53 + - 3 + - 56 * - 5 / + 56 * + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT - CASE ( 49 ) WHEN - 67 - + 71 + - + COUNT ( * ) THEN NULL WHEN 13 THEN 94 END * - - 53 + - 3 + - 56 * - 5 / + 56 * + + 70
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5201
SELECT - 51 * - - ( CAST( NULL AS DECIMAL ) ) * + + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT - 51 * - - ( CAST ( NULL AS REAL ) ) * + + 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5202
SELECT - 13 DIV + 14 * - 56 DIV - + 19 + - 17 + + 5 - - 77 + MIN( + - 39 ) * + MAX( + + 8 ) * - + SUM( DISTINCT + 99 ) * - 33
----
-1019239

skipif mysql # not compatible
query I rowsort label-5202
SELECT - 13 / + 14 * - 56 / - + 19 + - 17 + + 5 - - 77 + MIN ( + - 39 ) * + MAX ( + + 8 ) * - + SUM ( DISTINCT + 99 ) * - 33
----
-1019239

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT + + CASE + COUNT( * ) WHEN + + 8 THEN - 9 * 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT + + CASE + COUNT ( * ) WHEN + + 8 THEN - 9 * 46 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT + + COUNT( * ) * 55
----
55

skipif mysql # not compatible
query I rowsort label-5204
SELECT + + COUNT ( * ) * 55
----
55

query I rowsort
SELECT - - 3 * + 28 + + 19 col2
----
103

query I rowsort
SELECT ALL + - 66 col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL + - 79 * - - 91 + - ( + COUNT( * ) ) + - - 11 + - COUNT( * ) * MIN( + 48 ) * 21 col2
----
-8187

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL + - 79 * - - 91 + - ( + COUNT ( * ) ) + - - 11 + - COUNT ( * ) * MIN ( + 48 ) * 21 col2
----
-8187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5208
SELECT ALL + 71 AS col0, CAST( SUM( + + 75 ) AS SIGNED ) AS col1
----
71
75

skipif mysql # not compatible
query II rowsort label-5208
SELECT ALL + 71 AS col0, CAST ( SUM ( + + 75 ) AS INTEGER ) AS col1
----
71
75

query I rowsort
SELECT ALL + - NULLIF ( - - 84, + - ( - 98 ) ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT + - SUM( ALL 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-5210
SELECT + - SUM ( ALL 82 ) AS col2
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5211
SELECT - - COUNT( * ) * + + 61 * COUNT( * ) + 57 + - NULLIF ( 44, + 76 * + + 84 ) + + SUM( + 68 ) DIV - 91 * 39 + 63 + ( + + 33 )
----
170

skipif mysql # not compatible
query I rowsort label-5211
SELECT - - COUNT ( * ) * + + 61 * COUNT ( * ) + 57 + - NULLIF ( 44, + 76 * + + 84 ) + + SUM ( + 68 ) / - 91 * 39 + 63 + ( + + 33 )
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5212
SELECT - + 77 * - 38 DIV - COUNT( * )
----
-2926

skipif mysql # not compatible
query I rowsort label-5212
SELECT - + 77 * - 38 / - COUNT ( * )
----
-2926

onlyif mysql # DIV for integer division: 
query I rowsort label-5213
SELECT DISTINCT + 66 DIV + - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT + 66 / + - 80 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5214
SELECT DISTINCT 77 * 16 + - COUNT( * ), 29 AS col1
----
1231
29

skipif mysql # not compatible
query II rowsort label-5214
SELECT DISTINCT 77 * 16 + - COUNT ( * ), 29 AS col1
----
1231
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT + 49 * - - 7 + + 98 - + 92 - 42 * SUM( + - ( + + 27 ) ) + - + 38 AS col1
----
1445

skipif mysql # not compatible
query I rowsort label-5215
SELECT + 49 * - - 7 + + 98 - + 92 - 42 * SUM ( + - ( + + 27 ) ) + - + 38 AS col1
----
1445

query I rowsort
SELECT ALL 95 * 22
----
2090

query I rowsort
SELECT ALL 83 * + 27
----
2241

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT MAX( ALL 6 )
----
6

skipif mysql # not compatible
query I rowsort label-5218
SELECT MAX ( ALL 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT + ( + 93 ) + - COUNT( * ) * ( - 9 ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-5219
SELECT + ( + 93 ) + - COUNT ( * ) * ( - 9 ) AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT DISTINCT 30 * + + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT 30 * + + COUNT ( * )
----
30

query I rowsort
SELECT ALL 65 * - 72
----
-4680

query I rowsort
SELECT + 71 + 9 * - 1 * + 12 AS col1
----
-37

query I rowsort
SELECT - ( - - 70 )
----
-70

query I rowsort
SELECT + 12 + + - 36
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT + COALESCE ( COUNT( * ), 48 + 90 + - COUNT( * ) ) - + ( + 43 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5225
SELECT + COALESCE ( COUNT ( * ), 48 + 90 + - COUNT ( * ) ) - + ( + 43 ) AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5226
SELECT DISTINCT COUNT( - 39 ) DIV - - 96
----
0

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT COUNT ( - 39 ) / - - 96
----
0

query I rowsort
SELECT ALL 11 + + + ( + 54 )
----
65

query I rowsort
SELECT + 17 + - 80
----
-63

query I rowsort
SELECT ALL + 64 * 92
----
5888

query I rowsort
SELECT ALL 75 + + 72 - 67 AS col1
----
80

query I rowsort
SELECT DISTINCT ( + 88 ) col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5232
SELECT + ( + 57 ) + + 64 + - - 23 + + 61 + COALESCE ( - + 40, + 6, - - COUNT( * ) ) * + - 18 col2, + 59 + - 70 + - 96
----
925
-107

skipif mysql # not compatible
query II rowsort label-5232
SELECT + ( + 57 ) + + 64 + - - 23 + + 61 + COALESCE ( - + 40, + 6, - - COUNT ( * ) ) * + - 18 col2, + 59 + - 70 + - 96
----
925
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT - 63 - - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-5233
SELECT - 63 - - COUNT ( * )
----
-62

query I rowsort
SELECT + + 24 + 52 AS col1
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5235
SELECT ALL - 98 / - COALESCE ( + + 34, + 19, + 41 ) * - 41 / + 47 / CAST( NULL AS DECIMAL ) * - ( + - 82 ) * 44 + + - 34 + ( 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL - 98 / - COALESCE ( + + 34, + 19, + 41 ) * - 41 / + 47 / CAST ( NULL AS REAL ) * - ( + - 82 ) * 44 + + - 34 + ( 34 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT - 80 * + 75 + + + COUNT( * ) + 3 + + 84 * + 46
----
-2132

skipif mysql # not compatible
query I rowsort label-5236
SELECT - 80 * + 75 + + + COUNT ( * ) + 3 + + 84 * + 46
----
-2132

onlyif mysql # DIV for integer division: 
query I rowsort label-5237
SELECT DISTINCT + + 44 DIV ( + 43 )
----
1

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT + + 44 / ( + 43 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT - ( + COUNT( * ) ) + + 40
----
39

skipif mysql # not compatible
query I rowsort label-5238
SELECT - ( + COUNT ( * ) ) + + 40
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT 8 * - 37 + - COUNT( * )
----
-297

skipif mysql # not compatible
query I rowsort label-5239
SELECT 8 * - 37 + - COUNT ( * )
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT COUNT( ALL + - 11 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5240
SELECT COUNT ( ALL + - 11 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT - - 6 + - COUNT( * ) + + 1 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5241
SELECT - - 6 + - COUNT ( * ) + + 1 AS col1
----
6

query II rowsort
SELECT - + COALESCE ( - ( - 29 ), + 84 ) + 46 + + 2 - + 47 col2, - 84 col0
----
-28
-84

query I rowsort
SELECT ALL + + 89 * + 43
----
3827

query II rowsort
SELECT DISTINCT + - 64 * - 98 AS col0, - 79 col0
----
6272
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5245
SELECT ALL + - MIN( DISTINCT - 93 ) AS col1, COUNT( * ) * CAST( + ( + + 95 ) AS SIGNED ) AS col1
----
93
95

skipif mysql # not compatible
query II rowsort label-5245
SELECT ALL + - MIN ( DISTINCT - 93 ) AS col1, COUNT ( * ) * CAST ( + ( + + 95 ) AS INTEGER ) AS col1
----
93
95

query I rowsort
SELECT ALL + + 97 * - 78
----
-7566

query I rowsort
SELECT DISTINCT + ( - 46 ) AS col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5248
SELECT + CAST( - COALESCE ( COUNT( * ), + 93 * - 42 - + - 36 + + - 77 ) AS SIGNED ) DIV - - 99 AS col1, + 69 AS col1
----
0
69

skipif mysql # not compatible
query II rowsort label-5248
SELECT + CAST ( - COALESCE ( COUNT ( * ), + 93 * - 42 - + - 36 + + - 77 ) AS INTEGER ) / - - 99 AS col1, + 69 AS col1
----
0
69

query I rowsort
SELECT - 30 - + 74 AS col0
----
-104

query I rowsort
SELECT - ( - ( + 41 ) ) AS col2
----
41

query I rowsort
SELECT + 53 + - + NULLIF ( + 13, - + 83 - - 43 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT COUNT( + 4 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5252
SELECT COUNT ( + 4 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5253
SELECT MAX( 13 ) / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT MAX ( 13 ) / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5254
SELECT - 11 * CAST( NULL AS SIGNED ) + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5254
SELECT - 11 * CAST ( NULL AS INTEGER ) + 49 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5255
SELECT - 47 AS col0, CAST( NULL AS SIGNED )
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-5255
SELECT - 47 AS col0, CAST ( NULL AS INTEGER )
----
-47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT COUNT( * ) * 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5256
SELECT COUNT ( * ) * 16 AS col2
----
16

query I rowsort
SELECT 97 + 32 col2
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5258
SELECT ALL + 32 + - - 67 + - CAST( NULL AS SIGNED ) col2, - 51 - + 65 * - 10
----
NULL
599

skipif mysql # not compatible
query II rowsort label-5258
SELECT ALL + 32 + - - 67 + - CAST ( NULL AS INTEGER ) col2, - 51 - + 65 * - 10
----
NULL
599

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT DISTINCT COUNT( * ) * + + 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT COUNT ( * ) * + + 53 AS col2
----
53

query I rowsort
SELECT DISTINCT + 23 + 54 + 37 * - + 93 AS col0
----
-3364

query I rowsort
SELECT ALL 5 + - 36 col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5262
SELECT ( 94 ) + + COUNT( DISTINCT + CAST( 69 AS SIGNED ) ) + + + COUNT( - + 90 ) * + 38 * + + MIN( ALL - - 57 ) * - COUNT( * ) + 82 * - MAX( DISTINCT + 91 ) * MAX( - + 23 ) * 34 + + COALESCE ( 23, + 62 * - 92 + CASE WHEN NOT - CASE - COUNT( * ) WHEN + 22 THEN - 97 + - 57 DIV + 98 + - 37 END IN ( + 82 ) THEN 4 DIV + ( 19 ) END ) + 12 * + 44 + + 71
----
5833835

skipif mysql # not compatible
query I rowsort label-5262
SELECT ( 94 ) + + COUNT ( DISTINCT + CAST ( 69 AS INTEGER ) ) + + + COUNT ( - + 90 ) * + 38 * + + MIN ( ALL - - 57 ) * - COUNT ( * ) + 82 * - MAX ( DISTINCT + 91 ) * MAX ( - + 23 ) * 34 + + COALESCE ( 23, + 62 * - 92 + CASE WHEN NOT - CASE - COUNT ( * ) WHEN + 22 THEN - 97 + - 57 / + 98 + - 37 END IN ( + 82 ) THEN 4 / + ( 19 ) END ) + 12 * + 44 + + 71
----
5833835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5263
SELECT DISTINCT + NULLIF ( - 42, - CAST( - 74 AS SIGNED ) )
----
-42

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT + NULLIF ( - 42, - CAST ( - 74 AS INTEGER ) )
----
-42

query I rowsort
SELECT ALL 25 - + 40
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5265
SELECT COUNT( * ) DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-5265
SELECT COUNT ( * ) / + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT ALL MIN( DISTINCT + ( + 61 ) )
----
61

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL MIN ( DISTINCT + ( + 61 ) )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT + - CASE + + 83 WHEN + + MAX( ALL + ( + 23 ) ) THEN - 42 WHEN - 73 * - 18 - + 78 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5267
SELECT + - CASE + + 83 WHEN + + MAX ( ALL + ( + 23 ) ) THEN - 42 WHEN - 73 * - 18 - + 78 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 10 col1
----
10

query I rowsort
SELECT ALL 28 * - 96 * + 98
----
-263424

query I rowsort
SELECT ALL + 82 * + - 23 AS col1
----
-1886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5271
SELECT + CAST( NULL AS DECIMAL ) + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT + CAST ( NULL AS REAL ) + 42
----
NULL

query II rowsort
SELECT + 10, 76 AS col0
----
10
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5273
SELECT - 11 DIV - 63 + 82 - + 56 - - 46 DIV - 83 - - ( + 66 ) * + 67
----
4448

skipif mysql # not compatible
query I rowsort label-5273
SELECT - 11 / - 63 + 82 - + 56 - - 46 / - 83 - - ( + 66 ) * + 67
----
4448

query II rowsort
SELECT ALL - 11 col0, + 35 AS col1
----
-11
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT 54 * - COUNT( * ) + - MAX( + 97 ) AS col0
----
-151

skipif mysql # not compatible
query I rowsort label-5275
SELECT 54 * - COUNT ( * ) + - MAX ( + 97 ) AS col0
----
-151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5276
SELECT ALL - COUNT( * ) DIV + MAX( + 42 ) + - 43
----
-43

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL - COUNT ( * ) / + MAX ( + 42 ) + - 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT DISTINCT - + ( - COUNT( DISTINCT 53 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT - + ( - COUNT ( DISTINCT 53 ) )
----
1

query II rowsort
SELECT ALL - 21, 93 * 84 AS col1
----
-21
7812

query I rowsort
SELECT + 83 * - 77 * 37 + + ( - + 93 )
----
-236560

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT DISTINCT + COUNT( DISTINCT - 71 ) + 20 * + - 30 AS col1
----
-599

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT + COUNT ( DISTINCT - 71 ) + 20 * + - 30 AS col1
----
-599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5281
SELECT ALL - 36 + + 80 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL - 36 + + 80 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT ALL + CASE 82 WHEN - - 12 * + - CASE 73 WHEN + CAST( + 41 AS SIGNED ) THEN 44 ELSE - 32 END / - 39 THEN NULL ELSE + 37 END + - 41 + - - 97 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL + CASE 82 WHEN - - 12 * + - CASE 73 WHEN + CAST ( + 41 AS INTEGER ) THEN 44 ELSE - 32 END / - 39 THEN NULL ELSE + 37 END + - 41 + - - 97 AS col1
----
93

query I rowsort
SELECT ALL + 9 * + 23 AS col1
----
207

query I rowsort
SELECT 97 * - 84 * - 87 AS col1
----
708876

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT 1 + + 8 + - COALESCE ( + - 78, 79 - - COUNT( * ) + 5 * 95 * 71 ) + COUNT( * ) * - COALESCE ( 51, + SUM( DISTINCT + 59 ) ) * COALESCE ( - MAX( - 78 ), + 1 ) + NULLIF ( 11, + - 67 ) + CASE - - 18 WHEN 51 THEN + ( + ( + 5 ) ) WHEN 61 - 34 * - 67 * - - 91 + 29 * + 22 THEN NULL ELSE NULL END / 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT 1 + + 8 + - COALESCE ( + - 78, 79 - - COUNT ( * ) + 5 * 95 * 71 ) + COUNT ( * ) * - COALESCE ( 51, + SUM ( DISTINCT + 59 ) ) * COALESCE ( - MAX ( - 78 ), + 1 ) + NULLIF ( 11, + - 67 ) + CASE - - 18 WHEN 51 THEN + ( + ( + 5 ) ) WHEN 61 - 34 * - 67 * - - 91 + 29 * + 22 THEN NULL ELSE NULL END / 16
----
NULL

query II rowsort
SELECT ALL 46, - 37 AS col1
----
46
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL - 36 + - + COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - 36 + - + COUNT ( * ) AS col2
----
-37

query II rowsort
SELECT DISTINCT 53 AS col1, 26 AS col0
----
53
26

query I rowsort
SELECT ALL 82 + + + 14
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5290
SELECT 6 + + CAST( - - 48 AS SIGNED ) + + 54 + COUNT( * ) - + MAX( - - 46 ) * + - SUM( DISTINCT + 1 ) + - 34 * + 1 - - COALESCE ( 71, - 47 ) DIV - 79 * - 84 + 54 * - CAST( - ( + 76 ) AS SIGNED )
----
4225

skipif mysql # not compatible
query I rowsort label-5290
SELECT 6 + + CAST ( - - 48 AS INTEGER ) + + 54 + COUNT ( * ) - + MAX ( - - 46 ) * + - SUM ( DISTINCT + 1 ) + - 34 * + 1 - - COALESCE ( 71, - 47 ) / - 79 * - 84 + 54 * - CAST ( - ( + 76 ) AS INTEGER )
----
4225

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT 42 DIV ( 50 )
----
0

skipif mysql # not compatible
query I rowsort label-5291
SELECT 42 / ( 50 )
----
0

query I rowsort
SELECT DISTINCT 63 * + 98
----
6174

query I rowsort
SELECT 22 - + 60 AS col2
----
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5294
SELECT DISTINCT 28 - ( + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT 28 - ( + - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5295
SELECT ( - 43 ) + - 7 DIV + 64 + - + 24
----
-67

skipif mysql # not compatible
query I rowsort label-5295
SELECT ( - 43 ) + - 7 / + 64 + - + 24
----
-67

query I rowsort
SELECT 66 + 32
----
98

query I rowsort
SELECT DISTINCT + - 47 - - 36
----
-11

onlyif mysql # aggregate syntax: 
query III rowsort label-5298
SELECT DISTINCT - 41 AS col2, - 33 * + 8 + 30, - 4 + + COUNT( * ) AS col0
----
-41
-234
-3

skipif mysql # not compatible
query III rowsort label-5298
SELECT DISTINCT - 41 AS col2, - 33 * + 8 + 30, - 4 + + COUNT ( * ) AS col0
----
-41
-234
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT 0 + + SUM( DISTINCT 81 ) * - - 61 col2
----
4941

skipif mysql # not compatible
query I rowsort label-5299
SELECT 0 + + SUM ( DISTINCT 81 ) * - - 61 col2
----
4941

query II rowsort
SELECT ALL - 87, 85 * - + 34 AS col2
----
-87
-2890

query I rowsort
SELECT 46 + 33
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT 89 + SUM( - 50 ) col2
----
39

skipif mysql # not compatible
query I rowsort label-5302
SELECT 89 + SUM ( - 50 ) col2
----
39

query I rowsort
SELECT - 0 * ( ( + + 30 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5304
SELECT 26 * - 40 * - 57 * - - 50 * + + 8 + 83 - + 51 + - + NULLIF ( + - 31, + + 62 ) + 25 DIV COUNT( * ) * + - 94 - + 78 * - COUNT( ALL + 49 )
----
23709791

skipif mysql # not compatible
query I rowsort label-5304
SELECT 26 * - 40 * - 57 * - - 50 * + + 8 + 83 - + 51 + - + NULLIF ( + - 31, + + 62 ) + 25 / COUNT ( * ) * + - 94 - + 78 * - COUNT ( ALL + 49 )
----
23709791

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL - SUM( - ( 97 ) )
----
97

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL - SUM ( - ( 97 ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL - - CASE MIN( ALL - 44 ) WHEN + MIN( ALL + + 51 ) + - + 93 THEN - + 10 / ( COUNT( * ) ) + + COUNT( DISTINCT - - 10 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL - - CASE MIN ( ALL - 44 ) WHEN + MIN ( ALL + + 51 ) + - + 93 THEN - + 10 / ( COUNT ( * ) ) + + COUNT ( DISTINCT - - 10 ) END
----
NULL

query II rowsort
SELECT ALL - 56 AS col2, - 1 + + + 59
----
-56
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5308
SELECT ALL + COUNT( * ) * 33 + 85 + - 66 * - + 45 + - COUNT( * ) AS col0, 69
----
3087
69

skipif mysql # not compatible
query II rowsort label-5308
SELECT ALL + COUNT ( * ) * 33 + 85 + - 66 * - + 45 + - COUNT ( * ) AS col0, 69
----
3087
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT COUNT( * ) + - MIN( - 78 ) - + - 84
----
163

skipif mysql # not compatible
query I rowsort label-5309
SELECT COUNT ( * ) + - MIN ( - 78 ) - + - 84
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-5310
SELECT ALL - 48 AS col1, + COUNT( * )
----
-48
1

skipif mysql # not compatible
query II rowsort label-5310
SELECT ALL - 48 AS col1, + COUNT ( * )
----
-48
1

query II rowsort
SELECT ALL 42 * - 81 * 9 AS col1, - 87 * + 75
----
-30618
-6525

onlyif mysql # aggregate syntax: 
query II rowsort label-5312
SELECT MAX( ALL - + 73 ), 42 + + SUM( DISTINCT - 70 ) AS col2
----
-73
-28

skipif mysql # not compatible
query II rowsort label-5312
SELECT MAX ( ALL - + 73 ), 42 + + SUM ( DISTINCT - 70 ) AS col2
----
-73
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT 8 DIV - 43 * - 34
----
0

skipif mysql # not compatible
query I rowsort label-5313
SELECT 8 / - 43 * - 34
----
0

query I rowsort
SELECT ALL - 68 * + 71 + 53 - + 85
----
-4860

query I rowsort
SELECT DISTINCT 65 + + 38 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT - COUNT( * ) * + COALESCE ( + 66, + ( - 5 ) + + COUNT( * ) ) + + + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-5316
SELECT - COUNT ( * ) * + COALESCE ( + 66, + ( - 5 ) + + COUNT ( * ) ) + + + COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT ALL COUNT( * ) + - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL COUNT ( * ) + - + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5318
SELECT ALL 59 + - COUNT( * ) + COUNT( * ) + - 33 - - 70 DIV + - 57 + - + 56 + + - 72 - - 56 * - + 95 * + ( - 18 ) AS col2
----
95657

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL 59 + - COUNT ( * ) + COUNT ( * ) + - 33 - - 70 / + - 57 + - + 56 + + - 72 - - 56 * - + 95 * + ( - 18 ) AS col2
----
95657

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5319
SELECT ALL - CAST( NULL AS SIGNED ) + - - MIN( - + 35 ) + + + 86 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL - CAST ( NULL AS INTEGER ) + - - MIN ( - + 35 ) + + + 86 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 64 + 20
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5321
SELECT ALL SUM( ( + CAST( + 62 AS SIGNED ) ) ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL SUM ( ( + CAST ( + 62 AS INTEGER ) ) ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT - 28 * + 54 * - COUNT( * ) * - ( + 25 ) AS col1
----
-37800

skipif mysql # not compatible
query I rowsort label-5322
SELECT - 28 * + 54 * - COUNT ( * ) * - ( + 25 ) AS col1
----
-37800

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT DISTINCT - COUNT( * ) * 80
----
-80

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT - COUNT ( * ) * 80
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT 51 * - 56 * + SUM( ALL 44 )
----
-125664

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT 51 * - 56 * + SUM ( ALL 44 )
----
-125664

query I rowsort
SELECT DISTINCT NULLIF ( + 51, - 40 ) AS col1
----
51

query I rowsort
SELECT ALL - 65 * + + ( - - 67 )
----
-4355

onlyif mysql # DIV for integer division: 
query I rowsort label-5327
SELECT - 48 DIV 33 * + - 35 - - + 22 col1
----
57

skipif mysql # not compatible
query I rowsort label-5327
SELECT - 48 / 33 * + - 35 - - + 22 col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5328
SELECT DISTINCT - 82 DIV ( + MAX( + 38 ) ) + - + 92 * + COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT - 82 / ( + MAX ( + 38 ) ) + - + 92 * + COUNT ( * ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT + + 55 * + - MIN( DISTINCT - 20 ) * + 37 AS col1
----
40700

skipif mysql # not compatible
query I rowsort label-5329
SELECT + + 55 * + - MIN ( DISTINCT - 20 ) * + 37 AS col1
----
40700

query I rowsort
SELECT ALL - - 82 * - - 44 * - 68 * - 41
----
10059104

query II rowsort
SELECT DISTINCT 33 * + 86 * 77, - 37 col2
----
218526
-37

query I rowsort
SELECT ALL 46 * + 21
----
966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5333
SELECT ALL + 0 + 97, - COALESCE ( - 35, + 69, - CAST( NULL AS SIGNED ) - + 23 + + 34 - + NULLIF ( + 15, 92 + - - 46 + - 89 + 69 + 86 / + - 50 * - + 80 + + 68 - 1 + + CASE + + 38 WHEN - - 0 THEN NULL ELSE ( - 0 ) + + 51 - - ( - 94 ) END * + COALESCE ( 96, - + 27 ) + - + 97 ) ) + 11 + + MIN( CAST( NULL AS SIGNED ) ) / - 15 AS col0
----
97
NULL

skipif mysql # not compatible
query II rowsort label-5333
SELECT ALL + 0 + 97, - COALESCE ( - 35, + 69, - CAST ( NULL AS INTEGER ) - + 23 + + 34 - + NULLIF ( + 15, 92 + - - 46 + - 89 + 69 + 86 / + - 50 * - + 80 + + 68 - 1 + + CASE + + 38 WHEN - - 0 THEN NULL ELSE ( - 0 ) + + 51 - - ( - 94 ) END * + COALESCE ( 96, - + 27 ) + - + 97 ) ) + 11 + + MIN ( CAST ( NULL AS INTEGER ) ) / - 15 AS col0
----
97
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5334
SELECT ALL CAST( + 70 AS SIGNED ) DIV 60 + 78 col0
----
79

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL CAST ( + 70 AS INTEGER ) / 60 + 78 col0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5335
SELECT + 34 * - NULLIF ( - - CASE - 17 WHEN + 87 THEN + 72 ELSE NULL END, 68 ), + ( + + COUNT( * ) ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5335
SELECT + 34 * - NULLIF ( - - CASE - 17 WHEN + 87 THEN + 72 ELSE NULL END, 68 ), + ( + + COUNT ( * ) ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT ALL + - 92 / - - 10 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL + - 92 / - - 10 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5337
SELECT + + 97 / + 74 * - COUNT( * ) + + CASE - - 59 WHEN - - 74 THEN + - ( + - 61 ) WHEN 46 THEN - 54 + 58 END + + 63 - ( + + 73 ) * + COALESCE ( + ( 66 ), - - 57 * COALESCE ( + - 61, ( - + CAST( - + 20 AS SIGNED ) ), + 27 * + - 76 * + CAST( + + COALESCE ( + 56, + COUNT( * ), - + 49 * + 27 ) AS SIGNED ) ) + - ( + 95 ) ) * + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT + + 97 / + 74 * - COUNT ( * ) + + CASE - - 59 WHEN - - 74 THEN + - ( + - 61 ) WHEN 46 THEN - 54 + 58 END + + 63 - ( + + 73 ) * + COALESCE ( + ( 66 ), - - 57 * COALESCE ( + - 61, ( - + CAST ( - + 20 AS INTEGER ) ), + 27 * + - 76 * + CAST ( + + COALESCE ( + 56, + COUNT ( * ), - + 49 * + 27 ) AS INTEGER ) ) + - ( + 95 ) ) * + 99 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5338
SELECT MAX( - 66 ) col1, - CAST( ( - NULLIF ( - 43, + - 76 + NULLIF ( + 2, + 56 ) ) ) AS SIGNED ) * - 95
----
-66
4085

skipif mysql # not compatible
query II rowsort label-5338
SELECT MAX ( - 66 ) col1, - CAST ( ( - NULLIF ( - 43, + - 76 + NULLIF ( + 2, + 56 ) ) ) AS INTEGER ) * - 95
----
-66
4085

query I rowsort
SELECT - 0 + + - 38 + 59
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5340
SELECT ALL 68 * + + 52 + 9 + - - 40 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL 68 * + + 52 + 9 + - - 40 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5341
SELECT DISTINCT + COUNT( * ) col2, - 4 * - 65
----
1
260

skipif mysql # not compatible
query II rowsort label-5341
SELECT DISTINCT + COUNT ( * ) col2, - 4 * - 65
----
1
260

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT DISTINCT + MIN( DISTINCT + - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT + MIN ( DISTINCT + - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT - COUNT( * ) + - 48
----
-49

skipif mysql # not compatible
query I rowsort label-5343
SELECT - COUNT ( * ) + - 48
----
-49

query I rowsort
SELECT + 47 * - 79
----
-3713

query I rowsort
SELECT CASE + 99 WHEN - + 56 THEN - 9 WHEN - 31 + + 18 THEN - 26 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5346
SELECT CASE - - COUNT( * ) WHEN + 91 + 44 THEN + COUNT( * ) WHEN 44 + - 75 + CAST( NULL AS SIGNED ) + - 22 - - 85 + - + 88 THEN NULL END AS col0, 33 AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-5346
SELECT CASE - - COUNT ( * ) WHEN + 91 + 44 THEN + COUNT ( * ) WHEN 44 + - 75 + CAST ( NULL AS INTEGER ) + - 22 - - 85 + - + 88 THEN NULL END AS col0, 33 AS col0
----
NULL
33

query I rowsort
SELECT + 11 * + 21 AS col0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT - COUNT( * ) * - 89 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5348
SELECT - COUNT ( * ) * - 89 AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5349
SELECT ALL + MAX( DISTINCT + 9 ) * - - 56 + CAST( NULL AS SIGNED ) - - 34 * 5 DIV ( - 95 ) + + 0, 79 DIV + 96 * - 98 col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5349
SELECT ALL + MAX ( DISTINCT + 9 ) * - - 56 + CAST ( NULL AS INTEGER ) - - 34 * 5 / ( - 95 ) + + 0, 79 / + 96 * - 98 col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5350
SELECT + 87 * - 8 * 22 AS col1, 1 + - + 27 + COUNT( * )
----
-15312
-25

skipif mysql # not compatible
query II rowsort label-5350
SELECT + 87 * - 8 * 22 AS col1, 1 + - + 27 + COUNT ( * )
----
-15312
-25

query I rowsort
SELECT ALL COALESCE ( + - 10, + 99 )
----
-10

query I rowsort
SELECT + 81 * 11 * + 16
----
14256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5353
SELECT DISTINCT COUNT( + - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL - MAX( 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL - MAX ( 5 ) AS col2
----
-5

query II rowsort
SELECT - 94 AS col1, + 85
----
-94
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL COALESCE ( - COUNT( * ), 9 + 74 * 18 + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL COALESCE ( - COUNT ( * ), 9 + 74 * 18 + 95 )
----
-1

query I rowsort
SELECT + - 39 + + 39
----
0

query I rowsort
SELECT + + CASE 0 WHEN - ( + 6 ) * 48 THEN - - 54 + AVG ( ALL + COALESCE ( ( + 12 ), + 36 ) ) / 94 * + 91 - - + 85 END + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT - MAX( - - 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-5359
SELECT - MAX ( - - 23 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-5360
SELECT ALL - + 55 + - MIN( COALESCE ( + ( - 49 ), 42 + - + 90, - + 91 ) ) AS col2, 50 * - 78 * + 67 - + 48 AS col1
----
-6
-261348

skipif mysql # not compatible
query II rowsort label-5360
SELECT ALL - + 55 + - MIN ( COALESCE ( + ( - 49 ), 42 + - + 90, - + 91 ) ) AS col2, 50 * - 78 * + 67 - + 48 AS col1
----
-6
-261348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5361
SELECT - 91 + + - 35 * - COUNT( DISTINCT + - 69 ) AS col0, + 17 + + + CAST( + - 27 AS SIGNED )
----
-56
-10

skipif mysql # not compatible
query II rowsort label-5361
SELECT - 91 + + - 35 * - COUNT ( DISTINCT + - 69 ) AS col0, + 17 + + + CAST ( + - 27 AS INTEGER )
----
-56
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT ALL 61 + - - 27 * + - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL 61 + - - 27 * + - COUNT ( * )
----
34

query I rowsort
SELECT ALL + 29 + + 78 AS col2
----
107

query I rowsort
SELECT - 5 + - 94 - + 71
----
-170

query I rowsort
SELECT ALL - + 50 + - - 91
----
41

query I rowsort
SELECT ALL - - 42 + 49
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5367
SELECT + CASE + - 55 WHEN NULLIF ( - - COUNT( ALL - CAST( NULL AS SIGNED ) ), + 27 ) THEN + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT + CASE + - 55 WHEN NULLIF ( - - COUNT ( ALL - CAST ( NULL AS INTEGER ) ), + 27 ) THEN + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL + COUNT( 30 )
----
1

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL + COUNT ( 30 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT - + 63 + + COUNT( + 51 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-5369
SELECT - + 63 + + COUNT ( + 51 ) AS col1
----
-62

query II rowsort
SELECT - 7 AS col1, - 86 AS col2
----
-7
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT 78 DIV + - 81
----
0

skipif mysql # not compatible
query I rowsort label-5371
SELECT 78 / + - 81
----
0

query I rowsort
SELECT ALL + 77 + + 82 AS col1
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT 8 * + + 90 + - 2 * - 54 - + COALESCE ( + ( + 34 ), - 33, - MAX( + 41 ) + COUNT( * ) ) * 28 col2
----
-124

skipif mysql # not compatible
query I rowsort label-5373
SELECT 8 * + + 90 + - 2 * - 54 - + COALESCE ( + ( + 34 ), - 33, - MAX ( + 41 ) + COUNT ( * ) ) * 28 col2
----
-124

query I rowsort
SELECT + 83 * - + 32 + - 83
----
-2739

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5375
SELECT 50 DIV + COUNT( ALL 54 ) + + MIN( 84 )
----
134

skipif mysql # not compatible
query I rowsort label-5375
SELECT 50 / + COUNT ( ALL 54 ) + + MIN ( 84 )
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-5376
SELECT 1 + - 26 DIV + NULLIF ( + 22, + 59 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5376
SELECT 1 + - 26 / + NULLIF ( + 22, + 59 ) AS col0
----
0

query I rowsort
SELECT ALL 48 * - + 39 * 66
----
-123552

query I rowsort
SELECT ALL - 86 - - + 7 + - + 60
----
-139

query I rowsort
SELECT ALL 65 * + - ( 74 ) col2
----
-4810

onlyif mysql # aggregate syntax: 
query III rowsort label-5380
SELECT ALL - SUM( ALL + ( + 1 ) ) * + + 66 AS col0, 43 AS col0, + 40 col1
----
-66
43
40

skipif mysql # not compatible
query III rowsort label-5380
SELECT ALL - SUM ( ALL + ( + 1 ) ) * + + 66 AS col0, 43 AS col0, + 40 col1
----
-66
43
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT ALL - CAST( 19 AS SIGNED ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL - CAST ( 19 AS INTEGER ) col2
----
-19

query I rowsort
SELECT 26 * + 37
----
962

query I rowsort
SELECT DISTINCT - CASE + 61 WHEN + - 62 THEN NULL WHEN + - 28 THEN + 54 END
----
NULL

query I rowsort
SELECT 42 + - 2 AS col1
----
40

query I rowsort
SELECT ALL - ( - - 69 ) AS col1
----
-69

query I rowsort
SELECT ALL 51 * + 46 AS col2
----
2346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5387
SELECT ALL 78 + + - CASE + + CASE ( + - 27 ) WHEN 7 THEN NULL WHEN 97 THEN - 80 ELSE NULL END WHEN - 3 + - 28 THEN + - CAST( NULL AS SIGNED ) ELSE + + COUNT( * ) END DIV 10 + + 91 * + 69 AS col2
----
6357

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL 78 + + - CASE + + CASE ( + - 27 ) WHEN 7 THEN NULL WHEN 97 THEN - 80 ELSE NULL END WHEN - 3 + - 28 THEN + - CAST ( NULL AS INTEGER ) ELSE + + COUNT ( * ) END / 10 + + 91 * + 69 AS col2
----
6357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5388
SELECT - CAST( - 32 AS SIGNED ) * - COUNT( * ) + COUNT( * ) + + 37 - 44 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-5388
SELECT - CAST ( - 32 AS INTEGER ) * - COUNT ( * ) + COUNT ( * ) + + 37 - 44 AS col2
----
-38

query I rowsort
SELECT ALL 6 + + 25 + 75 AS col2
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5390
SELECT ALL + 22 + + 63 / + CAST( NULL AS SIGNED ) / - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL + 22 + + 63 / + CAST ( NULL AS INTEGER ) / - 60 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5391
SELECT ALL COUNT( * ) * - + CAST( - 25 AS SIGNED ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL COUNT ( * ) * - + CAST ( - 25 AS INTEGER ) AS col1
----
25

query I rowsort
SELECT ALL - 41 + + 83
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT ALL + 83 / + COALESCE ( + 35, - - 45 + + 55, - COALESCE ( + 6, - 25 ), - 54 ) + AVG ( ALL ( + CAST( NULL AS SIGNED ) ) ) + + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + 83 / + COALESCE ( + 35, - - 45 + + 55, - COALESCE ( + 6, - 25 ), - 54 ) + AVG ( ALL ( + CAST ( NULL AS INTEGER ) ) ) + + 42 AS col0
----
NULL

query I rowsort
SELECT ALL + 72 + 20
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT - - ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5395
SELECT - - ( COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5396
SELECT + CAST( + 47 AS SIGNED ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5396
SELECT + CAST ( + 47 AS INTEGER ) AS col0
----
47

query I rowsort
SELECT DISTINCT + 48 * - - ( - 1 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT DISTINCT + COUNT( DISTINCT + 47 ) - 45 + ( + SUM( ALL - + ( - + 46 ) ) ) * + + 12 * + 36 * - 68 * COUNT( * ) * + 31 - - 97 + - - 14 + + 64 * + COUNT( * ) col2
----
-41890045

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT + COUNT ( DISTINCT + 47 ) - 45 + ( + SUM ( ALL - + ( - + 46 ) ) ) * + + 12 * + 36 * - 68 * COUNT ( * ) * + 31 - - 97 + - - 14 + + 64 * + COUNT ( * ) col2
----
-41890045

query I rowsort
SELECT DISTINCT + - 10 * + + 33 * - 76 * NULLIF ( - + 7, - 33 )
----
-175560

query II rowsort
SELECT DISTINCT + 98 - + 65 AS col0, - 45 col2
----
33
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5401
SELECT DISTINCT COUNT( * ) * - ( - 34 ) DIV + + 46 * + MIN( ALL + 56 ) * + + COALESCE ( - 23, 95 * 99 * - ( + CAST( NULL AS SIGNED ) ) * + 58 * NULLIF ( + 20, + + AVG ( 71 ) DIV - 58 ) + 39 * COUNT( * ), - - 72 * - + 68 * - 20 + - ( - 71 ) ) DIV 1 + + - 74 - + 69 col1
----
-143

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT COUNT ( * ) * - ( - 34 ) / + + 46 * + MIN ( ALL + 56 ) * + + COALESCE ( - 23, 95 * 99 * - ( + CAST ( NULL AS INTEGER ) ) * + 58 * NULLIF ( + 20, + + AVG ( 71 ) / - 58 ) + 39 * COUNT ( * ), - - 72 * - + 68 * - 20 + - ( - 71 ) ) / 1 + + - 74 - + 69 col1
----
-143

query II rowsort
SELECT DISTINCT 24 AS col0, + 15 * - - 55 AS col0
----
24
825

query I rowsort
SELECT 17 * + - 32
----
-544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5404
SELECT COUNT( + 13 ) * - 0 - - COUNT( * ) + - CAST( - 0 AS SIGNED ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5404
SELECT COUNT ( + 13 ) * - 0 - - COUNT ( * ) + - CAST ( - 0 AS INTEGER ) + - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT MAX( DISTINCT - - 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-5405
SELECT MAX ( DISTINCT - - 95 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT COUNT( * ) + 42 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-5406
SELECT COUNT ( * ) + 42 AS col2
----
43

query I rowsort
SELECT 32 * 1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT ALL - SUM( DISTINCT 46 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL - SUM ( DISTINCT 46 ) AS col1
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5409
SELECT DISTINCT - 1 DIV ( - - 65 ), ( CASE + 57 WHEN + COUNT( * ) THEN 7 END ) + + 3 + - 6 + + 56 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5409
SELECT DISTINCT - 1 / ( - - 65 ), ( CASE + 57 WHEN + COUNT ( * ) THEN 7 END ) + + 3 + - 6 + + 56 AS col1
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5410
SELECT 29 / - + CAST( NULL AS SIGNED ) + - - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5410
SELECT 29 / - + CAST ( NULL AS INTEGER ) + - - 20
----
NULL

query II rowsort
SELECT ALL - 16 AS col1, 37 AS col1
----
-16
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT 51 DIV - + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5412
SELECT 51 / - + 92 AS col2
----
0

query I rowsort
SELECT ALL + 29 * + + 71 AS col0
----
2059

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT - 83 * - 72 + + MAX( + + 62 ) AS col1
----
6038

skipif mysql # not compatible
query I rowsort label-5414
SELECT - 83 * - 72 + + MAX ( + + 62 ) AS col1
----
6038

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT 32 * CASE 57 WHEN - 47 + + 33 * + ( + 28 ) * - 8 THEN NULL WHEN + - 93 + 32 * + 82 THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT 32 * CASE 57 WHEN - 47 + + 33 * + ( + 28 ) * - 8 THEN NULL WHEN + - 93 + 32 * + 82 THEN - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT 70 - + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-5416
SELECT 70 - + COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT - SUM( ALL + ( - + 39 ) )
----
39

skipif mysql # not compatible
query I rowsort label-5417
SELECT - SUM ( ALL + ( - + 39 ) )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5418
SELECT + + ( 13 ) * - 0 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT + + ( 13 ) * - 0 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 10 * 5
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL + COUNT( * ) + + 52 + + + COALESCE ( - MIN( - - 16 ), - 36 ) + + + 40 col0
----
77

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL + COUNT ( * ) + + 52 + + + COALESCE ( - MIN ( - - 16 ), - 36 ) + + + 40 col0
----
77

query I rowsort
SELECT DISTINCT + - 46 + 48 AS col2
----
2

query I rowsort
SELECT ALL - 62 + + - 52
----
-114

query I rowsort
SELECT DISTINCT 94 + - 47 AS col1
----
47

query I rowsort
SELECT 59 + 32 * - 40
----
-1221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5425
SELECT CASE WHEN ( ( + COUNT( * ) IS NOT NULL ) ) THEN NULL WHEN NOT + CAST( NULL AS SIGNED ) >= - 17 AND NOT ( NULL ) IS NOT NULL THEN 16 WHEN NOT NULL > + COUNT( * ) * + 3 / - COUNT( * ) + + - 66 + 6 * 80 THEN 74 * - 97 END / - 73 + + 72 * - ( 90 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5425
SELECT CASE WHEN ( ( + COUNT ( * ) IS NOT NULL ) ) THEN NULL WHEN NOT + CAST ( NULL AS INTEGER ) >= - 17 AND NOT ( NULL ) IS NOT NULL THEN 16 WHEN NOT NULL > + COUNT ( * ) * + 3 / - COUNT ( * ) + + - 66 + 6 * 80 THEN 74 * - 97 END / - 73 + + 72 * - ( 90 ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( - 34, - + 19 * + 90 )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5427
SELECT ALL - COALESCE ( - 19, 38 ) + - 94 + 72 DIV 28
----
-73

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - COALESCE ( - 19, 38 ) + - 94 + 72 / 28
----
-73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5428
SELECT 66 - 25 DIV + - 30 * + 55 * 48, NULLIF ( - + 21, + NULLIF ( - 14, - 97 * 86 ) ) * + CAST( - 47 AS SIGNED ) AS col2
----
66
987

skipif mysql # not compatible
query II rowsort label-5428
SELECT 66 - 25 / + - 30 * + 55 * 48, NULLIF ( - + 21, + NULLIF ( - 14, - 97 * 86 ) ) * + CAST ( - 47 AS INTEGER ) AS col2
----
66
987

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT - ( + - 82 ) + ( - COUNT( * ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-5429
SELECT - ( + - 82 ) + ( - COUNT ( * ) ) AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5430
SELECT + 9 * CAST( + + ( - COUNT( * ) ) AS SIGNED ) + + 47
----
38

skipif mysql # not compatible
query I rowsort label-5430
SELECT + 9 * CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) + + 47
----
38

query I rowsort
SELECT ALL 79 + - 92
----
-13

query II rowsort
SELECT ALL 25 AS col0, 16 col1
----
25
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT - + NULLIF ( + - 52, - SUM( + 61 ) / - 37 )
----
52

skipif mysql # not compatible
query I rowsort label-5433
SELECT - + NULLIF ( + - 52, - SUM ( + 61 ) / - 37 )
----
52

query II rowsort
SELECT ALL - 48, CASE + 1 WHEN + 42 * - 55 + 40 THEN NULL ELSE + 35 END AS col1
----
-48
35

query I rowsort
SELECT + - ( - 85 ) + + + 33 * + 24 col1
----
877

query I rowsort
SELECT + - 5 + - 27
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-5437
SELECT + 71 DIV - + 6
----
-11

skipif mysql # not compatible
query I rowsort label-5437
SELECT + 71 / - + 6
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-5438
SELECT + 30 + 2 DIV + 55
----
30

skipif mysql # not compatible
query I rowsort label-5438
SELECT + 30 + 2 / + 55
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5439
SELECT ALL 73 AS col0, MIN( DISTINCT + 94 )
----
73
94

skipif mysql # not compatible
query II rowsort label-5439
SELECT ALL 73 AS col0, MIN ( DISTINCT + 94 )
----
73
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT DISTINCT 95 - + 50 + + 28 * + + 74 * 59 * 41 + + + ( + COUNT( DISTINCT - 45 ) ) + - 8 * 22 * + 14 AS col1
----
5009750

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT 95 - + 50 + + 28 * + + 74 * 59 * 41 + + + ( + COUNT ( DISTINCT - 45 ) ) + - 8 * 22 * + 14 AS col1
----
5009750

query I rowsort
SELECT - 24 + - 10 AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5442
SELECT ALL 30 AS col1, CAST( NULL AS SIGNED ) / + 84 AS col0
----
30
NULL

skipif mysql # not compatible
query II rowsort label-5442
SELECT ALL 30 AS col1, CAST ( NULL AS INTEGER ) / + 84 AS col0
----
30
NULL

query II rowsort
SELECT DISTINCT 82 AS col0, 83
----
82
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT - COUNT( * ) + 62 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5444
SELECT - COUNT ( * ) + 62 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT + 12 * + + 56 * + - MIN( 56 ) AS col0
----
-37632

skipif mysql # not compatible
query I rowsort label-5445
SELECT + 12 * + + 56 * + - MIN ( 56 ) AS col0
----
-37632

query I rowsort
SELECT + NULLIF ( - 40, + 34 * - + ( + 71 ) )
----
-40

query I rowsort
SELECT ALL + 97 * - + ( + - 4 )
----
388

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5448
SELECT - MIN( + 1 ) * + 91 * + COUNT( * ) * - 85 * - + COALESCE ( - 31, + - COALESCE ( + 83, + COUNT( * ) ) DIV + 81, + + 60 )
----
239785

skipif mysql # not compatible
query I rowsort label-5448
SELECT - MIN ( + 1 ) * + 91 * + COUNT ( * ) * - 85 * - + COALESCE ( - 31, + - COALESCE ( + 83, + COUNT ( * ) ) / + 81, + + 60 )
----
239785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5449
SELECT DISTINCT + 72 * MAX( - - CAST( - 84 AS SIGNED ) ) DIV 10 + - COUNT( DISTINCT + 98 ) * - - 66
----
-670

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT + 72 * MAX ( - - CAST ( - 84 AS INTEGER ) ) / 10 + - COUNT ( DISTINCT + 98 ) * - - 66
----
-670

onlyif mysql # aggregate syntax: 
query II rowsort label-5450
SELECT ALL + COUNT( * ) AS col0, SUM( ALL 63 ) + - + 31 + 35 * - 13 + NULLIF ( CASE - + 4 WHEN + 18 + ( + 30 ) THEN NULL WHEN + - 73 THEN 33 END, - NULLIF ( - - 47, - - 26 * - 87 ) ) + + MIN( DISTINCT ( - + NULLIF ( - 33, - 50 ) ) ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5450
SELECT ALL + COUNT ( * ) AS col0, SUM ( ALL 63 ) + - + 31 + 35 * - 13 + NULLIF ( CASE - + 4 WHEN + 18 + ( + 30 ) THEN NULL WHEN + - 73 THEN 33 END, - NULLIF ( - - 47, - - 26 * - 87 ) ) + + MIN ( DISTINCT ( - + NULLIF ( - 33, - 50 ) ) ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT COALESCE ( + 63, COUNT( * ) ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-5451
SELECT COALESCE ( + 63, COUNT ( * ) ) AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5452
SELECT CASE - ( - 21 ) WHEN 48 THEN + + 81 WHEN + - 59 * + 23 THEN + COUNT( * ) * + 79 + - - CAST( NULL AS SIGNED ) * - 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5452
SELECT CASE - ( - 21 ) WHEN 48 THEN + + 81 WHEN + - 59 * + 23 THEN + COUNT ( * ) * + 79 + - - CAST ( NULL AS INTEGER ) * - 47 END
----
NULL

query II rowsort
SELECT + 7 AS col0, ( - + 29 ) * + 13 AS col0
----
7
-377

onlyif mysql # DIV for integer division: 
query I rowsort label-5454
SELECT 52 DIV 9 + - 97 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-5454
SELECT 52 / 9 + - 97 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT CASE COUNT( * ) WHEN + COUNT( * ) * - + 34 * + 4 * - 99 THEN NULL ELSE - 81 * - 55 + + 34 + + 86 END AS col2
----
4575

skipif mysql # not compatible
query I rowsort label-5455
SELECT CASE COUNT ( * ) WHEN + COUNT ( * ) * - + 34 * + 4 * - 99 THEN NULL ELSE - 81 * - 55 + + 34 + + 86 END AS col2
----
4575

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5456
SELECT - 86 + + ( - - 61 ) * + CAST( NULL AS DECIMAL ) + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5456
SELECT - 86 + + ( - - 61 ) * + CAST ( NULL AS REAL ) + + 8
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5457
SELECT + 18 AS col1, + 75 DIV - 91 + - - ( + ( - 29 ) )
----
18
-29

skipif mysql # not compatible
query II rowsort label-5457
SELECT + 18 AS col1, + 75 / - 91 + - - ( + ( - 29 ) )
----
18
-29

query I rowsort
SELECT NULLIF ( + - ( + - 6 ), + 81 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL COUNT( * ) * - 72 + SUM( 72 ) - - 85 * + 9 + 73 + - + ( - ( - ( 78 ) ) )
----
760

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL COUNT ( * ) * - 72 + SUM ( 72 ) - - 85 * + 9 + 73 + - + ( - ( - ( 78 ) ) )
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ALL 61 * COUNT( * ) + + + 94
----
155

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL 61 * COUNT ( * ) + + + 94
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT + COUNT( * ) * + 40 + 2 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5461
SELECT + COUNT ( * ) * + 40 + 2 AS col2
----
42

query I rowsort
SELECT - + 27 * + 67 * - 16
----
28944

query I rowsort
SELECT - 57 + NULLIF ( - + 32, 87 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT ALL 31 * + - CAST( - 62 AS SIGNED ) - + + 72 + - 6 col1
----
1844

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL 31 * + - CAST ( - 62 AS INTEGER ) - + + 72 + - 6 col1
----
1844

query I rowsort
SELECT ALL + + 60 * - + 88 AS col1
----
-5280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5466
SELECT DISTINCT + COUNT( * ) * 45 + - + 60 - - 56 * COUNT( * ) DIV - 70 col2
----
-15

skipif mysql # not compatible
query I rowsort label-5466
SELECT DISTINCT + COUNT ( * ) * 45 + - + 60 - - 56 * COUNT ( * ) / - 70 col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT - + CAST( NULL AS SIGNED ) + 25 - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5467
SELECT - + CAST ( NULL AS INTEGER ) + 25 - + 46
----
NULL

query I rowsort
SELECT ALL 31 * + - 79 - 67
----
-2516

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5469
SELECT ALL + - CASE + + 49 WHEN + CAST( NULL AS SIGNED ) THEN + + 28 + + 94 ELSE NULL END * - + 86 + 16 + - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL + - CASE + + 49 WHEN + CAST ( NULL AS INTEGER ) THEN + + 28 + + 94 ELSE NULL END * - + 86 + 16 + - 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT - 52 * + 59 * + + ( + SUM( - 11 ) ) + 0 * - - COUNT( * ) - ( - 52 ) * + 28
----
35204

skipif mysql # not compatible
query I rowsort label-5470
SELECT - 52 * + 59 * + + ( + SUM ( - 11 ) ) + 0 * - - COUNT ( * ) - ( - 52 ) * + 28
----
35204

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT - - 59 * - 42 * + CASE - - COUNT( * ) WHEN - COALESCE ( - + 84, ( - + ( + 36 ) ) ) + 67 THEN + 34 * + - 42 ELSE NULL END * + 80 * - ( - 54 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT - - 59 * - 42 * + CASE - - COUNT ( * ) WHEN - COALESCE ( - + 84, ( - + ( + 36 ) ) ) + 67 THEN + 34 * + - 42 ELSE NULL END * + 80 * - ( - 54 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5472
SELECT - + 30 AS col2, COUNT( * )
----
-30
1

skipif mysql # not compatible
query II rowsort label-5472
SELECT - + 30 AS col2, COUNT ( * )
----
-30
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5473
SELECT ALL + COALESCE ( + COALESCE ( 59, + COUNT( ALL + 18 ), + + 58 ), - 21 * 36 + 6 - NULLIF ( - - 6, 94 DIV 79 - - + ( - 69 ) + - 75 + + 95 + 55 DIV - COUNT( * ) ) * - - 80 + - + 85 DIV - COUNT( * ) )
----
59

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL + COALESCE ( + COALESCE ( 59, + COUNT ( ALL + 18 ), + + 58 ), - 21 * 36 + 6 - NULLIF ( - - 6, 94 / 79 - - + ( - 69 ) + - 75 + + 95 + 55 / - COUNT ( * ) ) * - - 80 + - + 85 / - COUNT ( * ) )
----
59

onlyif mysql # DIV for integer division: 
query II rowsort label-5474
SELECT - + 7 AS col2, 47 DIV 32
----
-7
1

skipif mysql # not compatible
query II rowsort label-5474
SELECT - + 7 AS col2, 47 / 32
----
-7
1

query II rowsort
SELECT ALL - 94, 31 AS col1
----
-94
31

query II rowsort
SELECT 8 AS col1, 49 * - + 70 * + 33 * + - 93
----
8
10526670

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL 31 * + - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL 31 * + - COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT + 0 * + 23 * COUNT( * ) + - + 4 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5478
SELECT + 0 * + 23 * COUNT ( * ) + - + 4 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5479
SELECT ALL - COUNT( * ) * + 12 AS col0, + 40 - - 70 * 32
----
-12
2280

skipif mysql # not compatible
query II rowsort label-5479
SELECT ALL - COUNT ( * ) * + 12 AS col0, + 40 - - 70 * 32
----
-12
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT ALL 89 * SUM( ALL + COALESCE ( - ( + 79 ), + + 35 + - + 86 ) ) * + 79 AS col2
----
-555449

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL 89 * SUM ( ALL + COALESCE ( - ( + 79 ), + + 35 + - + 86 ) ) * + 79 AS col2
----
-555449

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ALL - COUNT( * ) * + - 70
----
70

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL - COUNT ( * ) * + - 70
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT + 64 * NULLIF ( + COUNT( * ), 43 )
----
64

skipif mysql # not compatible
query I rowsort label-5482
SELECT + 64 * NULLIF ( + COUNT ( * ), 43 )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5483
SELECT ALL 76 DIV - - ( + + 22 )
----
3

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL 76 / - - ( + + 22 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT + 82 DIV ( 70 )
----
1

skipif mysql # not compatible
query I rowsort label-5484
SELECT + 82 / ( 70 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5485
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) * CAST( NULL AS SIGNED ) / - - SUM( + 79 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) / - - SUM ( + 79 ) AS col1
----
NULL

query I rowsort
SELECT 29 * + 40 * 38 + + 1 AS col2
----
44081

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5487
SELECT COALESCE ( ( - COUNT( * ) ), 10 + 86 * - + 45, + 88 - COALESCE ( - 2, + 61 ) ) * + COALESCE ( 5, 15 ) + - 12 + - 96 + CASE - 89 WHEN - 8 THEN + 64 + CAST( NULL AS DECIMAL ) + 40 WHEN - 18 * 68 THEN NULL WHEN + - 4 + + 68 / - + 8 * - 89 / - COUNT( * ) + + AVG ( 58 ) - 39 / 63 THEN NULL END - - ( 51 ) / - ( - - 52 ) * - MAX( - 4 ) / COUNT( * ) - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT COALESCE ( ( - COUNT ( * ) ), 10 + 86 * - + 45, + 88 - COALESCE ( - 2, + 61 ) ) * + COALESCE ( 5, 15 ) + - 12 + - 96 + CASE - 89 WHEN - 8 THEN + 64 + CAST ( NULL AS REAL ) + 40 WHEN - 18 * 68 THEN NULL WHEN + - 4 + + 68 / - + 8 * - 89 / - COUNT ( * ) + + AVG ( 58 ) - 39 / 63 THEN NULL END - - ( 51 ) / - ( - - 52 ) * - MAX ( - 4 ) / COUNT ( * ) - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5488
SELECT DISTINCT + CAST( 51 AS SIGNED ) AS col1, 58 + - 23 AS col0
----
51
35

skipif mysql # not compatible
query II rowsort label-5488
SELECT DISTINCT + CAST ( 51 AS INTEGER ) AS col1, 58 + - 23 AS col0
----
51
35

query I rowsort
SELECT + 22 * + 5
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT + 49 / - + CASE - COUNT( * ) WHEN + 54 * + + COALESCE ( - 83, 38 + - 19 ) * - 59 * + - 49 * - 23 THEN + 8 * - + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT + 49 / - + CASE - COUNT ( * ) WHEN + 54 * + + COALESCE ( - 83, 38 + - 19 ) * - 59 * + - 49 * - 23 THEN + 8 * - + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT COALESCE ( + ( - 28 ), + 35 + + 90 )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT DISTINCT + 11 * - 74 * CAST( + - 42 AS SIGNED )
----
34188

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT + 11 * - 74 * CAST ( + - 42 AS INTEGER )
----
34188

query I rowsort
SELECT DISTINCT + + 62 * 65 AS col1
----
4030

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT COUNT( ALL 18 ) * - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5494
SELECT COUNT ( ALL 18 ) * - - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + 24 + - 31
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5496
SELECT 98 - 74 + 55 DIV SUM( ALL 87 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5496
SELECT 98 - 74 + 55 / SUM ( ALL 87 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-5497
SELECT DISTINCT + 66 * + COUNT( * ), 99 AS col2
----
66
99

skipif mysql # not compatible
query II rowsort label-5497
SELECT DISTINCT + 66 * + COUNT ( * ), 99 AS col2
----
66
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5498
SELECT ALL - COUNT( * ) * COUNT( * ) + - 81 + + - MIN( + + CAST( NULL AS SIGNED ) ) - + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - COUNT ( * ) * COUNT ( * ) + - 81 + + - MIN ( + + CAST ( NULL AS INTEGER ) ) - + 1
----
NULL

query I rowsort
SELECT + 38 + + - 22 AS col0
----
16

query I rowsort
SELECT 10 + - + 68
----
-58

query II rowsort
SELECT 19 * + + 20 * + 84 col0, + 33 AS col1
----
31920
33

query I rowsort
SELECT 26 + 22 * + + 55 AS col0
----
1236

query I rowsort
SELECT DISTINCT - 15 + + - 54
----
-69

query I rowsort
SELECT ALL 35 + + 26
----
61

query I rowsort
SELECT 45 + + 58
----
103

query II rowsort
SELECT 20 AS col2, - 84
----
20
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT 35 * - COALESCE ( - 64, 77, - 36 DIV - 9 )
----
2240

skipif mysql # not compatible
query I rowsort label-5507
SELECT 35 * - COALESCE ( - 64, 77, - 36 / - 9 )
----
2240

query II rowsort
SELECT - 51 AS col0, 42 AS col2
----
-51
42

query I rowsort
SELECT DISTINCT 34 + - - 83 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT ALL 93 + - - MIN( - 74 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL 93 + - - MIN ( - 74 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-5511
SELECT + 5 col0, COUNT( * ) * - 91 + - 89 + - 45 AS col1
----
5
-225

skipif mysql # not compatible
query II rowsort label-5511
SELECT + 5 col0, COUNT ( * ) * - 91 + - 89 + - 45 AS col1
----
5
-225

query I rowsort
SELECT ALL 69 + 20
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT SUM( ALL + 55 ) * 24
----
1320

skipif mysql # not compatible
query I rowsort label-5513
SELECT SUM ( ALL + 55 ) * 24
----
1320

onlyif mysql # aggregate syntax: 
query II rowsort label-5514
SELECT 63, - COUNT( * ) AS col1
----
63
-1

skipif mysql # not compatible
query II rowsort label-5514
SELECT 63, - COUNT ( * ) AS col1
----
63
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5515
SELECT DISTINCT + CASE NULLIF ( 78, + + 98 / - 12 + + 92 + + - CAST( - - COUNT( * ) AS SIGNED ) + + 9 * 53 * + COUNT( * ) ) WHEN + - 15 * 57 * 17 THEN NULL ELSE - + 73 END - + 16
----
-89

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT + CASE NULLIF ( 78, + + 98 / - 12 + + 92 + + - CAST ( - - COUNT ( * ) AS INTEGER ) + + 9 * 53 * + COUNT ( * ) ) WHEN + - 15 * 57 * 17 THEN NULL ELSE - + 73 END - + 16
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT DISTINCT - - NULLIF ( - 96, - + 98 + 12 + - COUNT( * ) )
----
-96

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT - - NULLIF ( - 96, - + 98 + 12 + - COUNT ( * ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT + ( 27 ) * + CASE - + 0 WHEN - 90 THEN + 17 ELSE NULL END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT + ( 27 ) * + CASE - + 0 WHEN - 90 THEN + 17 ELSE NULL END + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5518
SELECT + 53 * COUNT( * ) DIV 31 - - + 18 * + + 70 AS col2
----
1261

skipif mysql # not compatible
query I rowsort label-5518
SELECT + 53 * COUNT ( * ) / 31 - - + 18 * + + 70 AS col2
----
1261

query I rowsort
SELECT 75 + + 25
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT - 60 * + COUNT( * ) + + COUNT( * ) + - - 4 * - 86 * - + 42 AS col1
----
14389

skipif mysql # not compatible
query I rowsort label-5520
SELECT - 60 * + COUNT ( * ) + + COUNT ( * ) + - - 4 * - 86 * - + 42 AS col1
----
14389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5521
SELECT CASE + 74 WHEN + - 26 * 59 * + - 65 THEN - + CAST( + - 51 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5521
SELECT CASE + 74 WHEN + - 26 * 59 * + - 65 THEN - + CAST ( + - 51 AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT ALL 50 - 57
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5523
SELECT DISTINCT - ( - 77 ) * - 82 AS col2, 83 DIV + COUNT( DISTINCT - + 54 ) AS col2
----
-6314
83

skipif mysql # not compatible
query II rowsort label-5523
SELECT DISTINCT - ( - 77 ) * - 82 AS col2, 83 / + COUNT ( DISTINCT - + 54 ) AS col2
----
-6314
83

query II rowsort
SELECT ALL - - 72 AS col0, + COALESCE ( - 17, - 74 + - 81 )
----
72
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5525
SELECT - SUM( + - 26 ) * - 50 - - - CAST( NULL AS SIGNED ) + - - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT - SUM ( + - 26 ) * - 50 - - - CAST ( NULL AS INTEGER ) + - - 69 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5526
SELECT ALL - - CAST( NULL AS SIGNED ) * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT 34 * + COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT 34 * + COUNT ( * ) AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5528
SELECT ( - CAST( NULL AS SIGNED ) ) / + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT ( - CAST ( NULL AS INTEGER ) ) / + 27 AS col2
----
NULL

query I rowsort
SELECT 13 + + + 88 + - 34 + - - 36
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT + 5 * + 16 + + ( COUNT( * ) )
----
81

skipif mysql # not compatible
query I rowsort label-5530
SELECT + 5 * + 16 + + ( COUNT ( * ) )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5531
SELECT ALL - - MAX( ALL - - 15 ) + + 42 * + 59 * NULLIF ( COUNT( * ), - ( - CASE + MIN( + 63 ) WHEN - + 23 + - 75 THEN - 67 ELSE + 90 / 24 END ) + + - 0 ) AS col2, + 20 * + + 30 AS col2
----
2493
600

skipif mysql # not compatible
query II rowsort label-5531
SELECT ALL - - MAX ( ALL - - 15 ) + + 42 * + 59 * NULLIF ( COUNT ( * ), - ( - CASE + MIN ( + 63 ) WHEN - + 23 + - 75 THEN - 67 ELSE + 90 / 24 END ) + + - 0 ) AS col2, + 20 * + + 30 AS col2
----
2493
600

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5532
SELECT 44 AS col1, - ( 82 ) - + ( 97 ) * CAST( NULL AS SIGNED ) * - + 96 + 34 + + 63 * ( - 69 ) AS col1
----
44
NULL

skipif mysql # not compatible
query II rowsort label-5532
SELECT 44 AS col1, - ( 82 ) - + ( 97 ) * CAST ( NULL AS INTEGER ) * - + 96 + 34 + + 63 * ( - 69 ) AS col1
----
44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT - MAX( ALL 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-5533
SELECT - MAX ( ALL 4 )
----
-4

query I rowsort
SELECT ( + + 14 ) * - 65 AS col2
----
-910

query I rowsort
SELECT DISTINCT + 55 * + 44 * + + ( 91 ) * + + 25 col1
----
5505500

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT ALL - 1 + - - 53 * + + MIN( ( - 63 ) ) AS col2
----
-3340

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL - 1 + - - 53 * + + MIN ( ( - 63 ) ) AS col2
----
-3340

query I rowsort
SELECT ALL + 38 * ( - 5 )
----
-190

onlyif mysql # DIV for integer division: 
query I rowsort label-5538
SELECT 45 DIV 3 * - 62
----
-930

skipif mysql # not compatible
query I rowsort label-5538
SELECT 45 / 3 * - 62
----
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT COUNT( * ) - - 94 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5539
SELECT COUNT ( * ) - - 94 AS col1
----
95

query I rowsort
SELECT 80 * - - 17 col2
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL - 66 + - - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL - 66 + - - COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT 60 - + - MIN( + 75 ) * - 58 * - + 62
----
269760

skipif mysql # not compatible
query I rowsort label-5542
SELECT 60 - + - MIN ( + 75 ) * - 58 * - + 62
----
269760

query I rowsort
SELECT 70 * - 4 AS col1
----
-280

query I rowsort
SELECT ALL + 66 - + 46 * 31 AS col0
----
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT DISTINCT MAX( + 98 ) * + 45 * + COUNT( * ) + - 10 + 90 * - + 10
----
3500

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT MAX ( + 98 ) * + 45 * + COUNT ( * ) + - 10 + 90 * - + 10
----
3500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5546
SELECT + COUNT( ALL 82 ) * 32 / + 13 + - + 95 * - 10 * 94 * + - CASE + ( + COUNT( * ) ) WHEN - - COUNT( * ) THEN + - 54 + - + CAST( NULL AS SIGNED ) + - 17 - - + SUM( ALL - 28 ) ELSE NULL END + + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT + COUNT ( ALL 82 ) * 32 / + 13 + - + 95 * - 10 * 94 * + - CASE + ( + COUNT ( * ) ) WHEN - - COUNT ( * ) THEN + - 54 + - + CAST ( NULL AS INTEGER ) + - 17 - - + SUM ( ALL - 28 ) ELSE NULL END + + 47 AS col1
----
NULL

query I rowsort
SELECT - 76 * 97 AS col2
----
-7372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5548
SELECT 74 * - AVG ( - 34 ) + + + CAST( NULL AS SIGNED ) + 21 * 51 * - COUNT( * ) - - 0 * 96 * + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT 74 * - AVG ( - 34 ) + + + CAST ( NULL AS INTEGER ) + 21 * 51 * - COUNT ( * ) - - 0 * 96 * + 34 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5549
SELECT ALL + ( 25 ) * CAST( + - COUNT( ALL - - 57 ) AS SIGNED ) - 44
----
-69

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL + ( 25 ) * CAST ( + - COUNT ( ALL - - 57 ) AS INTEGER ) - 44
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5550
SELECT CAST( COALESCE ( + 35, + + 35, + COUNT( * ) ) AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5550
SELECT CAST ( COALESCE ( + 35, + + 35, + COUNT ( * ) ) AS INTEGER ) AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5551
SELECT ALL + 33 * - + CAST( NULL AS SIGNED ) * - SUM( - 66 ) + 56 - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL + 33 * - + CAST ( NULL AS INTEGER ) * - SUM ( - 66 ) + 56 - 55
----
NULL

query I rowsort
SELECT + + 47 * - - 2 * 54 col1
----
5076

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5553
SELECT - 6 DIV + CASE 78 WHEN + 91 THEN NULL WHEN - SUM( - 9 ) THEN + - COUNT( * ) * + 35 ELSE - - 97 + - ( - - MIN( + 11 ) ) + 49 * - 17 + - - 42 END
----
0

skipif mysql # not compatible
query I rowsort label-5553
SELECT - 6 / + CASE 78 WHEN + 91 THEN NULL WHEN - SUM ( - 9 ) THEN + - COUNT ( * ) * + 35 ELSE - - 97 + - ( - - MIN ( + 11 ) ) + 49 * - 17 + - - 42 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT + ( + COUNT( * ) ) * + 96 * + - 46 col0
----
-4416

skipif mysql # not compatible
query I rowsort label-5554
SELECT + ( + COUNT ( * ) ) * + 96 * + - 46 col0
----
-4416

query I rowsort
SELECT ALL - 74 * + 5 + + 56
----
-314

onlyif mysql # aggregate syntax: 
query II rowsort label-5556
SELECT + 20 * + 67 * + - MIN( 93 ) AS col0, + NULLIF ( + 0, + + CASE + - 0 WHEN 7 THEN NULL WHEN 24 THEN + 79 WHEN + 63 * + 12 THEN 78 * 32 END )
----
-124620
0

skipif mysql # not compatible
query II rowsort label-5556
SELECT + 20 * + 67 * + - MIN ( 93 ) AS col0, + NULLIF ( + 0, + + CASE + - 0 WHEN 7 THEN NULL WHEN 24 THEN + 79 WHEN + 63 * + 12 THEN 78 * 32 END )
----
-124620
0

query I rowsort
SELECT DISTINCT + 59 * - ( - 64 ) + - ( - 68 ) AS col0
----
3844

onlyif mysql # aggregate syntax: 
query II rowsort label-5558
SELECT DISTINCT - 81 * ( 79 ) * + COALESCE ( + COUNT( * ), - 68 + + 44 * + COUNT( * ) ) + - + COUNT( * ) AS col0, - 73
----
-6400
-73

skipif mysql # not compatible
query II rowsort label-5558
SELECT DISTINCT - 81 * ( 79 ) * + COALESCE ( + COUNT ( * ), - 68 + + 44 * + COUNT ( * ) ) + - + COUNT ( * ) AS col0, - 73
----
-6400
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5559
SELECT + 65 * ( - CAST( CASE - ( - - 90 ) WHEN 86 * + ( + + 2 ) * AVG ( DISTINCT - + 11 ) + 80 THEN NULL WHEN + 50 - + 17 * + COUNT( * ) THEN - - 27 + - 81 * + - 35 END AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT + 65 * ( - CAST ( CASE - ( - - 90 ) WHEN 86 * + ( + + 2 ) * AVG ( DISTINCT - + 11 ) + 80 THEN NULL WHEN + 50 - + 17 * + COUNT ( * ) THEN - - 27 + - 81 * + - 35 END AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL 22 AS col1, 96 * 73 AS col0
----
22
7008

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT ALL - 97 + - MIN( ALL + 90 )
----
-187

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL - 97 + - MIN ( ALL + 90 )
----
-187

query I rowsort
SELECT - ( + + 9 ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5563
SELECT ALL CAST( NULL AS SIGNED ) * - + CASE SUM( ALL - 79 ) WHEN - - 60 * - 56 THEN + - 60 * CASE + 27 WHEN + - CAST( NULL AS SIGNED ) THEN + - CASE - 84 WHEN - ( - - AVG ( + 42 ) ) THEN COUNT( * ) ELSE NULL END + + + COALESCE ( + 98, - 2, - + SUM( + 50 ) - 94 + + - 20 + COUNT( * ) / - 69 * - - 8 ) + + - 35 + CASE 48 WHEN - 88 THEN NULL ELSE 17 END * + - 30 * + - 89 * + - ( + + 55 ) END * + + 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL CAST ( NULL AS INTEGER ) * - + CASE SUM ( ALL - 79 ) WHEN - - 60 * - 56 THEN + - 60 * CASE + 27 WHEN + - CAST ( NULL AS INTEGER ) THEN + - CASE - 84 WHEN - ( - - AVG ( + 42 ) ) THEN COUNT ( * ) ELSE NULL END + + + COALESCE ( + 98, - 2, - + SUM ( + 50 ) - 94 + + - 20 + COUNT ( * ) / - 69 * - - 8 ) + + - 35 + CASE 48 WHEN - 88 THEN NULL ELSE 17 END * + - 30 * + - 89 * + - ( + + 55 ) END * + + 78 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5564
SELECT + 29 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT + 29 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5565
SELECT 96, + 84 DIV - 40 AS col0
----
96
-2

skipif mysql # not compatible
query II rowsort label-5565
SELECT 96, + 84 / - 40 AS col0
----
96
-2

query I rowsort
SELECT + 6 + + 39
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT - 11 - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-5567
SELECT - 11 - COUNT ( * )
----
-12

query I rowsort
SELECT ALL NULLIF ( + 2, 51 * - 51 - + 11 ) AS col1
----
2

query I rowsort
SELECT ALL - 7 * + 86 AS col1
----
-602

query I rowsort
SELECT ALL 57 - 46 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT - 69 * - + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-5571
SELECT - 69 * - + COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT + COUNT( * ) * - 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5572
SELECT + COUNT ( * ) * - 77 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL MAX( DISTINCT - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL MAX ( DISTINCT - 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT - 22 + + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-5574
SELECT - 22 + + COUNT ( * )
----
-21

query I rowsort
SELECT + 33 * + + 66 * - + 54 AS col2
----
-117612

query I rowsort
SELECT DISTINCT - 90 * + 88 * - 4 AS col2
----
31680

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT + - CASE - 74 WHEN + - ( - + 62 ) THEN NULL WHEN - CASE + + 9 WHEN + 28 + + 71 + 56 / 59 + - ( + 73 ) * COUNT( DISTINCT + - 40 ) THEN + 89 END * - 22 / + COUNT( * ) THEN + - 82 END * - - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT + - CASE - 74 WHEN + - ( - + 62 ) THEN NULL WHEN - CASE + + 9 WHEN + 28 + + 71 + 56 / 59 + - ( + 73 ) * COUNT ( DISTINCT + - 40 ) THEN + 89 END * - 22 / + COUNT ( * ) THEN + - 82 END * - - 39 AS col1
----
NULL

query I rowsort
SELECT - 48 + + 93
----
45

query I rowsort
SELECT - - COALESCE ( + 90, - ( - 67 ) ) AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5580
SELECT ALL ( - + 70 ) * - MIN( ALL CAST( NULL AS SIGNED ) ) * - MIN( ALL - + 32 ) + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL ( - + 70 ) * - MIN ( ALL CAST ( NULL AS INTEGER ) ) * - MIN ( ALL - + 32 ) + - 93
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5581
SELECT - - 71 DIV 55 - + 91 + + ( + MAX( - 24 ) )
----
-114

skipif mysql # not compatible
query I rowsort label-5581
SELECT - - 71 / 55 - + 91 + + ( + MAX ( - 24 ) )
----
-114

query I rowsort
SELECT DISTINCT + ( NULLIF ( - + 0, 82 + + 95 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5583
SELECT + + 42 * - 19 + CASE COUNT( * ) WHEN - - 41 THEN NULL WHEN 98 / - 25 + 92 + - CAST( NULL AS SIGNED ) + 24 THEN + 9 + 63 WHEN 26 THEN + 59 * - + 33 + 93 - 4 * + NULLIF ( - 78, - 16 ) * COUNT( * ) * COUNT( * ) + - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT + + 42 * - 19 + CASE COUNT ( * ) WHEN - - 41 THEN NULL WHEN 98 / - 25 + 92 + - CAST ( NULL AS INTEGER ) + 24 THEN + 9 + 63 WHEN 26 THEN + 59 * - + 33 + 93 - 4 * + NULLIF ( - 78, - 16 ) * COUNT ( * ) * COUNT ( * ) + - 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ALL - - 42 * - - 98 * + 25 + COUNT( * ) + + + 36 + COUNT( * ) * - 99 * - - 40
----
98977

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL - - 42 * - - 98 * + 25 + COUNT ( * ) + + + 36 + COUNT ( * ) * - 99 * - - 40
----
98977

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT SUM( ALL + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-5585
SELECT SUM ( ALL + 68 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5586
SELECT + + CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT + + CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) * + 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT DISTINCT - COUNT( - CAST( NULL AS SIGNED ) ) * - ( - - ( - COUNT( * ) ) ) * - + 15 + + 65 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT - COUNT ( - CAST ( NULL AS INTEGER ) ) * - ( - - ( - COUNT ( * ) ) ) * - + 15 + + 65 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ALL + - 7 * - + 15 + - + COUNT( * )
----
104

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL + - 7 * - + 15 + - + COUNT ( * )
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT DISTINCT + - 86 * 66 + 1 * + + COALESCE ( 20, - 88 * + 2 + - + ( + + COUNT( * ) ) ) AS col2
----
-5656

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT + - 86 * 66 + 1 * + + COALESCE ( 20, - 88 * + 2 + - + ( + + COUNT ( * ) ) ) AS col2
----
-5656

onlyif mysql # aggregate syntax: 
query II rowsort label-5590
SELECT COUNT( * ) * - 16 + + + ( - + ( + + 12 ) ) + + COUNT( * ) + + ( - 44 ) AS col2, 94
----
-71
94

skipif mysql # not compatible
query II rowsort label-5590
SELECT COUNT ( * ) * - 16 + + + ( - + ( + + 12 ) ) + + COUNT ( * ) + + ( - 44 ) AS col2, 94
----
-71
94

query I rowsort
SELECT DISTINCT + 27 * + 30 + + 70 col1
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT DISTINCT - ( + ( + SUM( 42 ) ) ) * 16
----
-672

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT - ( + ( + SUM ( 42 ) ) ) * 16
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT COALESCE ( + COUNT( * ), + COUNT( * ), - 19 * + 83 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5593
SELECT COALESCE ( + COUNT ( * ), + COUNT ( * ), - 19 * + 83 ) AS col2
----
1

query I rowsort
SELECT - 12 * COALESCE ( - - NULLIF ( ( 64 ), 22 ), - - 12 )
----
-768

onlyif mysql # DIV for integer division: 
query I rowsort label-5595
SELECT - 30 DIV - 99 col1
----
0

skipif mysql # not compatible
query I rowsort label-5595
SELECT - 30 / - 99 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT COALESCE ( - 69, + 54 * + 27 - + COUNT( * ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-5596
SELECT COALESCE ( - 69, + 54 * + 27 - + COUNT ( * ) ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT + 66 * - + COUNT( * ) + - + 87 AS col1
----
-153

skipif mysql # not compatible
query I rowsort label-5597
SELECT + 66 * - + COUNT ( * ) + - + 87 AS col1
----
-153

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5598
SELECT ALL 78 * + 43 - CAST( NULL AS DECIMAL ) * 59 * - ( 88 ) * - 43 + + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL 78 * + 43 - CAST ( NULL AS REAL ) * 59 * - ( 88 ) * - 43 + + 96 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5599
SELECT ALL 76 DIV MAX( - 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL 76 / MAX ( - 45 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5600
SELECT NULLIF ( - COALESCE ( 0, ( - 71 ), 93, CAST( - ( + CASE - + 90 WHEN - 79 * + 69 THEN - 83 ELSE NULL END ) AS SIGNED ) * 43 ), - COUNT( * ) + - 82 + - - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-5600
SELECT NULLIF ( - COALESCE ( 0, ( - 71 ), 93, CAST ( - ( + CASE - + 90 WHEN - 79 * + 69 THEN - 83 ELSE NULL END ) AS INTEGER ) * 43 ), - COUNT ( * ) + - 82 + - - 15 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5601
SELECT + 88 + CASE - AVG ( 7 ) WHEN + CAST( - + 98 AS SIGNED ) THEN NULL WHEN - SUM( - 27 ) + - 30 THEN - - COUNT( * ) ELSE 21 END
----
109

skipif mysql # not compatible
query I rowsort label-5601
SELECT + 88 + CASE - AVG ( 7 ) WHEN + CAST ( - + 98 AS INTEGER ) THEN NULL WHEN - SUM ( - 27 ) + - 30 THEN - - COUNT ( * ) ELSE 21 END
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-5602
SELECT - CASE 11 WHEN + + NULLIF ( - 17, + COUNT( * ) ) THEN AVG ( + 97 ) WHEN - 52 * - 57 THEN NULL ELSE NULL END AS col1, + 70 + - 37 col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-5602
SELECT - CASE 11 WHEN + + NULLIF ( - 17, + COUNT ( * ) ) THEN AVG ( + 97 ) WHEN - 52 * - 57 THEN NULL ELSE NULL END AS col1, + 70 + - 37 col0
----
NULL
33

query I rowsort
SELECT - ( + - 76 ) col1
----
76

query I rowsort
SELECT DISTINCT 16 * 73 AS col0
----
1168

query I rowsort
SELECT 50 - + 52 col0
----
-2

query II rowsort
SELECT 87 AS col0, 8 AS col1
----
87
8

query II rowsort
SELECT - 11, 52 AS col2
----
-11
52

query I rowsort
SELECT 76 * - 99 AS col0
----
-7524

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT 11 + - 65 + 93 + - + COUNT( * ) * - COUNT( * ) * - 86 * 64 AS col1
----
-5465

skipif mysql # not compatible
query I rowsort label-5609
SELECT 11 + - 65 + 93 + - + COUNT ( * ) * - COUNT ( * ) * - 86 * 64 AS col1
----
-5465

query II rowsort
SELECT ALL - 62 col0, - NULLIF ( + - 12, + 93 ) AS col2
----
-62
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5611
SELECT - 99 - + COUNT( * ) DIV + 8 * ( + - 37 ) DIV + 76
----
-99

skipif mysql # not compatible
query I rowsort label-5611
SELECT - 99 - + COUNT ( * ) / + 8 * ( + - 37 ) / + 76
----
-99

query II rowsort
SELECT ALL - 52, 34 AS col2
----
-52
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT - COALESCE ( 29, + - MAX( 99 ) ) * - NULLIF ( COUNT( * ), - 40 * - 33 + + - 40 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-5613
SELECT - COALESCE ( 29, + - MAX ( 99 ) ) * - NULLIF ( COUNT ( * ), - 40 * - 33 + + - 40 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT ALL + SUM( DISTINCT 4 ) + 27 * 69 - - 3
----
1870

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL + SUM ( DISTINCT 4 ) + 27 * 69 - - 3
----
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT MIN( - - 71 ) + + 0 + 97
----
168

skipif mysql # not compatible
query I rowsort label-5615
SELECT MIN ( - - 71 ) + + 0 + 97
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT 29 / + 47 + - 71 + 85 + - CASE - COUNT( * ) WHEN + 93 THEN + + 28 WHEN + COUNT( * ) * + + 85 - + 36 + + + COALESCE ( - + 83, 25, + 0 ) - + 11 THEN NULL END * 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT 29 / + 47 + - 71 + 85 + - CASE - COUNT ( * ) WHEN + 93 THEN + + 28 WHEN + COUNT ( * ) * + + 85 - + 36 + + + COALESCE ( - + 83, 25, + 0 ) - + 11 THEN NULL END * 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5617
SELECT + 7 DIV + COUNT( - 89 ) + - 98 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-5617
SELECT + 7 / + COUNT ( - 89 ) + - 98 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5618
SELECT 57 AS col0, + COUNT( * ) AS col0
----
57
1

skipif mysql # not compatible
query II rowsort label-5618
SELECT 57 AS col0, + COUNT ( * ) AS col0
----
57
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT 55 * MIN( 97 ) + + + 56 + - + 67 * - MIN( + + 77 ) * 77 - + 10 AS col2
----
402624

skipif mysql # not compatible
query I rowsort label-5619
SELECT 55 * MIN ( 97 ) + + + 56 + - + 67 * - MIN ( + + 77 ) * 77 - + 10 AS col2
----
402624

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT DISTINCT + 92 * 79 - + COUNT( * ) AS col0
----
7267

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT + 92 * 79 - + COUNT ( * ) AS col0
----
7267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5621
SELECT ALL + CASE + - ( - - 48 ) WHEN 48 * + + 36 / 42 + - 37 THEN NULL ELSE 29 * + 42 * + 88 * 12 + - 55 END + 77 + + - CAST( NULL AS SIGNED ) * - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL + CASE + - ( - - 48 ) WHEN 48 * + + 36 / 42 + - 37 THEN NULL ELSE 29 * + 42 * + 88 * 12 + - 55 END + 77 + + - CAST ( NULL AS INTEGER ) * - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT SUM( ALL - 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-5622
SELECT SUM ( ALL - 67 ) AS col0
----
-67

query I rowsort
SELECT 98 * 52 + - 72 - - - 81 + 15 * + 41 * + 11
----
11708

query I rowsort
SELECT COALESCE ( 57, + + 2 + 19 ) AS col1
----
57

query II rowsort
SELECT DISTINCT - 19, 97 col0
----
-19
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5626
SELECT ( - MAX( - - 70 ) ) DIV 97 + - 6 * + COUNT( * ) + - 46
----
-52

skipif mysql # not compatible
query I rowsort label-5626
SELECT ( - MAX ( - - 70 ) ) / 97 + - 6 * + COUNT ( * ) + - 46
----
-52

query I rowsort
SELECT 29 * - 60 * - 94 * + ( + 41 ) AS col2
----
6705960

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT 64 * + - COUNT( * ) * - 2
----
128

skipif mysql # not compatible
query I rowsort label-5628
SELECT 64 * + - COUNT ( * ) * - 2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT + 62 * - COUNT( DISTINCT + - 75 ) + - 98 AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-5629
SELECT + 62 * - COUNT ( DISTINCT + - 75 ) + - 98 AS col2
----
-160

onlyif mysql # DIV for integer division: 
query II rowsort label-5630
SELECT 54 * + - 89, 5 DIV - + 79 AS col2
----
-4806
0

skipif mysql # not compatible
query II rowsort label-5630
SELECT 54 * + - 89, 5 / - + 79 AS col2
----
-4806
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5631
SELECT ALL - 7 * - COUNT( * ) * CAST( - 99 AS SIGNED )
----
-693

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL - 7 * - COUNT ( * ) * CAST ( - 99 AS INTEGER )
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT 60 - - - MAX( - 45 ) * 13 AS col0
----
645

skipif mysql # not compatible
query I rowsort label-5632
SELECT 60 - - - MAX ( - 45 ) * 13 AS col0
----
645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5633
SELECT ALL - CAST( NULL AS SIGNED ) - - - COALESCE ( 62, - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL - CAST ( NULL AS INTEGER ) - - - COALESCE ( 62, - COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - CASE 84 WHEN - 20 / 35 + - + 18 + + 38 THEN + 7 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5635
SELECT MIN( 20 ) + + COALESCE ( + 16, 9 + + + 46 + - 45 * - 41, - + ( + 83 ) ) * 52 * - 57 AS col1, + 20
----
-47404
20

skipif mysql # not compatible
query II rowsort label-5635
SELECT MIN ( 20 ) + + COALESCE ( + 16, 9 + + + 46 + - 45 * - 41, - + ( + 83 ) ) * 52 * - 57 AS col1, + 20
----
-47404
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5636
SELECT DISTINCT + 62 * + - 26 DIV - COUNT( * )
----
1612

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT + 62 * + - 26 / - COUNT ( * )
----
1612

query I rowsort
SELECT 60 + - 27
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT COUNT( * ) - - - 63
----
-62

skipif mysql # not compatible
query I rowsort label-5638
SELECT COUNT ( * ) - - - 63
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-5639
SELECT 79 * + + 45 AS col0, 29 DIV - - 56 + + 66 AS col2
----
3555
66

skipif mysql # not compatible
query II rowsort label-5639
SELECT 79 * + + 45 AS col0, 29 / - - 56 + + 66 AS col2
----
3555
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT 85 + - COUNT( * ) + + + COUNT( * ) * - + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-5640
SELECT 85 + - COUNT ( * ) + + + COUNT ( * ) * - + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT SUM( - 32 ) + - + 17 + + 71 * + 93 - 59 AS col1
----
6495

skipif mysql # not compatible
query I rowsort label-5641
SELECT SUM ( - 32 ) + - + 17 + + 71 * + 93 - 59 AS col1
----
6495

query I rowsort
SELECT 34 + - - 99 col1
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-5643
SELECT ALL - 14 * 43 AS col2, ( - 38 ) * + COUNT( * ) * + 79 + - + 9
----
-602
-3011

skipif mysql # not compatible
query II rowsort label-5643
SELECT ALL - 14 * 43 AS col2, ( - 38 ) * + COUNT ( * ) * + 79 + - + 9
----
-602
-3011

query I rowsort
SELECT DISTINCT 27 + - + 61 * - 23 AS col2
----
1430

query I rowsort
SELECT 57 + - 80 + - 17 * - + 18
----
283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5646
SELECT ( + 87 ) + + CASE 83 WHEN - 86 + + 53 + NULLIF ( - MAX( DISTINCT 76 ), + - 60 ) THEN + 55 * ( - AVG ( ALL - ( + - 11 ) ) ) WHEN - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - + CAST( - 43 AS SIGNED ) THEN - MAX( + 43 ) END + + + 21 * COUNT( * ) * + 60 * + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT ( + 87 ) + + CASE 83 WHEN - 86 + + 53 + NULLIF ( - MAX ( DISTINCT 76 ), + - 60 ) THEN + 55 * ( - AVG ( ALL - ( + - 11 ) ) ) WHEN - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - + CAST ( - 43 AS INTEGER ) THEN - MAX ( + 43 ) END + + + 21 * COUNT ( * ) * + 60 * + + 58
----
NULL

query II rowsort
SELECT ( - 99 ) AS col1, 88 AS col1
----
-99
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT ALL - 62 * - - COUNT( * ) + + MIN( 44 ) * - 54 * + 95 * + + 64
----
-14446142

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL - 62 * - - COUNT ( * ) + + MIN ( 44 ) * - 54 * + 95 * + + 64
----
-14446142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5649
SELECT - 13 / CAST( NULL AS SIGNED ) - + + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5649
SELECT - 13 / CAST ( NULL AS INTEGER ) - + + 69 AS col1
----
NULL

query I rowsort
SELECT ALL + - 75 * + + 15 + - 75 * + 56 AS col1
----
-5325

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT SUM( ALL ( - - 13 ) ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-5651
SELECT SUM ( ALL ( - - 13 ) ) AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5652
SELECT ( - COUNT( * ) ) DIV ( - 39 ) * - 93 + + 44
----
44

skipif mysql # not compatible
query I rowsort label-5652
SELECT ( - COUNT ( * ) ) / ( - 39 ) * - 93 + + 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT NULLIF ( + COUNT( * ), 12 ) * - + 22 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5653
SELECT NULLIF ( + COUNT ( * ), 12 ) * - + 22 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT + 21 * MIN( DISTINCT + 38 ) * 87 + + + 37 + - MIN( ALL + - 69 ) col0
----
69532

skipif mysql # not compatible
query I rowsort label-5654
SELECT + 21 * MIN ( DISTINCT + 38 ) * 87 + + + 37 + - MIN ( ALL + - 69 ) col0
----
69532

onlyif mysql # aggregate syntax: 
query II rowsort label-5655
SELECT 74 * + 66 * - 61 AS col1, - COUNT( * )
----
-297924
-1

skipif mysql # not compatible
query II rowsort label-5655
SELECT 74 * + 66 * - 61 AS col1, - COUNT ( * )
----
-297924
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5656
SELECT DISTINCT - COUNT( * ), + COALESCE ( + 88, 52, 87 ) AS col2
----
-1
88

skipif mysql # not compatible
query II rowsort label-5656
SELECT DISTINCT - COUNT ( * ), + COALESCE ( + 88, 52, 87 ) AS col2
----
-1
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT + MAX( ALL - 21 ) * + - 34 + + 92
----
806

skipif mysql # not compatible
query I rowsort label-5657
SELECT + MAX ( ALL - 21 ) * + - 34 + + 92
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT SUM( ALL + - 84 ) * COUNT( * ) + 44
----
-40

skipif mysql # not compatible
query I rowsort label-5658
SELECT SUM ( ALL + - 84 ) * COUNT ( * ) + 44
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-5659
SELECT ALL + COUNT( * ), 70 * + COUNT( * ) AS col2
----
1
70

skipif mysql # not compatible
query II rowsort label-5659
SELECT ALL + COUNT ( * ), 70 * + COUNT ( * ) AS col2
----
1
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT + MIN( 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-5660
SELECT + MIN ( 95 ) AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5661
SELECT - CAST( NULL AS SIGNED ) + - - NULLIF ( + 89, COUNT( * ) + 27 ) + + - 98 + 30 * + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT - CAST ( NULL AS INTEGER ) + - - NULLIF ( + 89, COUNT ( * ) + 27 ) + + - 98 + 30 * + 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT - COUNT( * ) + NULLIF ( - - CASE - 46 WHEN - - 28 * + 34 + 34 + - SUM( 26 ) * + 64 * + - COUNT( + ( + + 94 ) ) * - + MIN( - - 90 ) THEN NULL ELSE - - COUNT( * ) END, 26 )
----
0

skipif mysql # not compatible
query I rowsort label-5662
SELECT - COUNT ( * ) + NULLIF ( - - CASE - 46 WHEN - - 28 * + 34 + 34 + - SUM ( 26 ) * + 64 * + - COUNT ( + ( + + 94 ) ) * - + MIN ( - - 90 ) THEN NULL ELSE - - COUNT ( * ) END, 26 )
----
0

query I rowsort
SELECT ALL + ( - + ( 18 ) ) col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5664
SELECT - CAST( NULL AS SIGNED ) * + 4 * 5 + COALESCE ( + 69, ( + 84 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT - CAST ( NULL AS INTEGER ) * + 4 * 5 + COALESCE ( + 69, ( + 84 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5665
SELECT ALL + MAX( + - NULLIF ( + - 47, + + CAST( NULL AS SIGNED ) ) ) + + 16 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL + MAX ( + - NULLIF ( + - 47, + + CAST ( NULL AS INTEGER ) ) ) + + 16 AS col2
----
63

query II rowsort
SELECT - 9 AS col1, + 55
----
-9
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5667
SELECT ALL COALESCE ( - 56, 24, + 3 + + 20 * + + 12 * + COUNT( * ) DIV + 71 * + ( + 6 ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL COALESCE ( - 56, 24, + 3 + + 20 * + + 12 * + COUNT ( * ) / + 71 * + ( + 6 ) ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT DISTINCT - COUNT( * ) + 74
----
73

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT - COUNT ( * ) + 74
----
73

query I rowsort
SELECT - - 69 - COALESCE ( 5, 64 ) - 74 AS col0
----
-10

query II rowsort
SELECT 6, - 71 AS col1
----
6
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT - + 94 - MAX( ALL - 89 ) + + - MAX( + 48 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-5671
SELECT - + 94 - MAX ( ALL - 89 ) + + - MAX ( + 48 ) AS col1
----
-53

query I rowsort
SELECT - 48 * + 21
----
-1008

query I rowsort
SELECT + 17 * + 40
----
680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5674
SELECT ALL NULLIF ( ( CAST( NULL AS SIGNED ) ), COUNT( * ) ) + - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL NULLIF ( ( CAST ( NULL AS INTEGER ) ), COUNT ( * ) ) + - 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT ALL + 42 * + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL + 42 * + COUNT ( * )
----
42

query I rowsort
SELECT - - ( + - 97 ) AS col0
----
-97

query II rowsort
SELECT DISTINCT + 25 AS col0, 40 - + 1 + - - 69 AS col2
----
25
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT DISTINCT - COUNT( * ) * + + 38 * 98 AS col1
----
-3724

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT - COUNT ( * ) * + + 38 * 98 AS col1
----
-3724

query I rowsort
SELECT - + 92 + - NULLIF ( - 26, - 61 + 20 * + 76 ) + - + CASE - 66 WHEN - + 20 * - - 35 THEN 98 - 93 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5680
SELECT 12 * + ( 74 ) * - 73 + - 92 - 60 + - + ( 5 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT 12 * + ( 74 ) * - 73 + - 92 - 60 + - + ( 5 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 54 * - + 84 + + - 78 AS col2
----
-4614

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT + 78 * + - 70 - COUNT( DISTINCT + 69 ) AS col1
----
-5461

skipif mysql # not compatible
query I rowsort label-5682
SELECT + 78 * + - 70 - COUNT ( DISTINCT + 69 ) AS col1
----
-5461

query I rowsort
SELECT ALL 59 * + 16 * 34 + + 93 AS col1
----
32189

onlyif mysql # aggregate syntax: 
query II rowsort label-5684
SELECT DISTINCT + SUM( ALL - 57 ) AS col2, + 52 + COUNT( DISTINCT - 12 ) + + 89 AS col2
----
-57
142

skipif mysql # not compatible
query II rowsort label-5684
SELECT DISTINCT + SUM ( ALL - 57 ) AS col2, + 52 + COUNT ( DISTINCT - 12 ) + + 89 AS col2
----
-57
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT + NULLIF ( + COUNT( * ), + 93 ) + 12
----
13

skipif mysql # not compatible
query I rowsort label-5685
SELECT + NULLIF ( + COUNT ( * ), + 93 ) + 12
----
13

query II rowsort
SELECT + 18 + + 13 + + CASE + - 8 WHEN - 78 * - 4 + + 56 THEN 42 + 11 - - 6 / - - 80 + - 35 END * ( - 91 ) AS col0, - 25
----
NULL
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT + ( + + 36 ) + - NULLIF ( + + 33, 59 * + NULLIF ( COUNT( * ), 43 ) - - 81 - 26 + - 52 + + 21 * + 85 + + 81 * 74 )
----
3

skipif mysql # not compatible
query I rowsort label-5687
SELECT + ( + + 36 ) + - NULLIF ( + + 33, 59 * + NULLIF ( COUNT ( * ), 43 ) - - 81 - 26 + - 52 + + 21 * + 85 + + 81 * 74 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT - COUNT( * ) + + 31 - + 8 * + 11 * + 51
----
-4458

skipif mysql # not compatible
query I rowsort label-5688
SELECT - COUNT ( * ) + + 31 - + 8 * + 11 * + 51
----
-4458

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT + + 32 * - MAX( 76 ) * 85 col1
----
-206720

skipif mysql # not compatible
query I rowsort label-5689
SELECT + + 32 * - MAX ( 76 ) * 85 col1
----
-206720

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT - - COUNT( + - 39 ) + - + 39
----
-38

skipif mysql # not compatible
query I rowsort label-5690
SELECT - - COUNT ( + - 39 ) + - + 39
----
-38

query I rowsort
SELECT ALL - NULLIF ( - 68, + 28 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5692
SELECT - + 82 + COUNT( * ) AS col2, 59
----
-81
59

skipif mysql # not compatible
query II rowsort label-5692
SELECT - + 82 + COUNT ( * ) AS col2, 59
----
-81
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5693
SELECT ALL + 71 * + 96 DIV + COUNT( * ) AS col0
----
6816

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL + 71 * + 96 / + COUNT ( * ) AS col0
----
6816

query I rowsort
SELECT NULLIF ( + 53, + 37 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ALL - - 4 - + COUNT( + + 83 )
----
3

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL - - 4 - + COUNT ( + + 83 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5696
SELECT - 34 DIV ( + + 88 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5696
SELECT - 34 / ( + + 88 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5697
SELECT - 4 * MAX( DISTINCT + ( 44 ) ) DIV 25
----
-7

skipif mysql # not compatible
query I rowsort label-5697
SELECT - 4 * MAX ( DISTINCT + ( 44 ) ) / 25
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT - + 5 + CAST( NULL AS SIGNED ) / + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT - + 5 + CAST ( NULL AS INTEGER ) / + 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5699
SELECT - CAST( NULL AS SIGNED ) + + - ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT - CAST ( NULL AS INTEGER ) + + - ( COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( + + 82, - 44 )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5701
SELECT - + 55 DIV 63 + - ( + 78 ) DIV 8
----
-9

skipif mysql # not compatible
query I rowsort label-5701
SELECT - + 55 / 63 + - ( + 78 ) / 8
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT ALL - CASE COALESCE ( + 72, - 28 ) WHEN + + 42 THEN NULL WHEN 27 * - 18 * COUNT( * ) THEN + 94 / COUNT( DISTINCT + 99 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL - CASE COALESCE ( + 72, - 28 ) WHEN + + 42 THEN NULL WHEN 27 * - 18 * COUNT ( * ) THEN + 94 / COUNT ( DISTINCT + 99 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 28 * + 55 AS col0
----
-1540

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT DISTINCT - 17 DIV - 91 - 5 * COALESCE ( 91, - 26 ) AS col0
----
-455

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT - 17 / - 91 - 5 * COALESCE ( 91, - 26 ) AS col0
----
-455

query I rowsort
SELECT 70 + 13 + 32 + - 53 AS col1
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-5706
SELECT ALL - 6 AS col0, 69 DIV + 38
----
-6
1

skipif mysql # not compatible
query II rowsort label-5706
SELECT ALL - 6 AS col0, 69 / + 38
----
-6
1

query I rowsort
SELECT ALL - ( + ( + - 18 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT 54 - + 19 - + 69 + + 82 * + 13 * + COUNT( * ) AS col2
----
1032

skipif mysql # not compatible
query I rowsort label-5708
SELECT 54 - + 19 - + 69 + + 82 * + 13 * + COUNT ( * ) AS col2
----
1032

query I rowsort
SELECT 76 * - 28 + - + 77 AS col1
----
-2205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5710
SELECT - 74 DIV - 72 + - 60 - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-5710
SELECT - 74 / - 72 + - 60 - COUNT ( * )
----
-60

query I rowsort
SELECT ALL - 49 + + 12
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL + 85 * + + ( 2 ) * + - COUNT( * ) * + CASE - - COUNT( ALL + 72 ) WHEN - + 67 THEN - + 52 WHEN - 26 - - 34 * + 10 * 31 + 58 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL + 85 * + + ( 2 ) * + - COUNT ( * ) * + CASE - - COUNT ( ALL + 72 ) WHEN - + 67 THEN - + 52 WHEN - 26 - - 34 * + 10 * 31 + 58 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 31 + + 80 + COALESCE ( 45, + 19 + - - CASE - 70 WHEN - + 87 * 11 THEN ( - + 88 ) * + 7 * - 60 + - 17 ELSE NULL END ) + + + ( + 11 ) * 8
----
182

query II rowsort
SELECT DISTINCT 92 + - + 8 + - 34 col2, + 97 * 47
----
50
4559

onlyif mysql # aggregate syntax: 
query II rowsort label-5715
SELECT ALL - 43, + COUNT( * ) * 16 AS col1
----
-43
16

skipif mysql # not compatible
query II rowsort label-5715
SELECT ALL - 43, + COUNT ( * ) * 16 AS col1
----
-43
16

query I rowsort
SELECT 20 + - + 85
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-5717
SELECT DISTINCT 39 DIV 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT 39 / 51 AS col0
----
0

query I rowsort
SELECT NULLIF ( - 19, + + 81 ) + + + 50
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT ALL - MIN( - - 43 ) - + 95 * MIN( ALL 31 ) * - - 32
----
-94283

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL - MIN ( - - 43 ) - + 95 * MIN ( ALL 31 ) * - - 32
----
-94283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5720
SELECT + COALESCE ( - 42, + 13 + + 98 * COUNT( ALL - 23 ) + - COUNT( * ) + - COUNT( * ) + 96 + ( - ( - 61 ) ) * 41 * + 14 DIV + 98 * 29, 10 - - 64 ) * + ( - - 88 ) - + COUNT( * )
----
-3697

skipif mysql # not compatible
query I rowsort label-5720
SELECT + COALESCE ( - 42, + 13 + + 98 * COUNT ( ALL - 23 ) + - COUNT ( * ) + - COUNT ( * ) + 96 + ( - ( - 61 ) ) * 41 * + 14 / + 98 * 29, 10 - - 64 ) * + ( - - 88 ) - + COUNT ( * )
----
-3697

onlyif mysql # DIV for integer division: 
query I rowsort label-5721
SELECT DISTINCT 95 DIV - + 2 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT 95 / - + 2 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-5722
SELECT 42 * COUNT( * ) + 39 AS col2, 9 + + ( + 76 ) + + 71 * 59 * + - 50
----
81
-209365

skipif mysql # not compatible
query II rowsort label-5722
SELECT 42 * COUNT ( * ) + 39 AS col2, 9 + + ( + 76 ) + + 71 * 59 * + - 50
----
81
-209365

query I rowsort
SELECT ALL - 22 * + + 9 * - + 98 * ( 7 ) AS col0
----
135828

query I rowsort
SELECT DISTINCT - 64 * 94 AS col2
----
-6016

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT - COALESCE ( - 93, - 61 * - 17 - COUNT( * ) ) - + + 2 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-5725
SELECT - COALESCE ( - 93, - 61 * - 17 - COUNT ( * ) ) - + + 2 AS col2
----
91

query I rowsort
SELECT + 41 * + + 21
----
861

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT CASE NULLIF ( - MIN( 78 ), - + 89 ) WHEN - 1 THEN + + 76 END + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5727
SELECT CASE NULLIF ( - MIN ( 78 ), - + 89 ) WHEN - 1 THEN + + 76 END + - 96
----
NULL

query I rowsort
SELECT - 68 - 82 AS col1
----
-150

query I rowsort
SELECT ALL - - 64 * + 51
----
3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5730
SELECT DISTINCT - + 13 + - CASE 29 WHEN + 53 * MIN( + - 72 ) * - + 84 + + SUM( DISTINCT + + 95 ) * - ( + 57 ) + COUNT( * ) THEN - COUNT( ALL - 98 ) - 6 + - - MIN( + CAST( NULL AS SIGNED ) ) ELSE - - 77 END
----
-90

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT - + 13 + - CASE 29 WHEN + 53 * MIN ( + - 72 ) * - + 84 + + SUM ( DISTINCT + + 95 ) * - ( + 57 ) + COUNT ( * ) THEN - COUNT ( ALL - 98 ) - 6 + - - MIN ( + CAST ( NULL AS INTEGER ) ) ELSE - - 77 END
----
-90

query I rowsort
SELECT 73 + 10 col1
----
83

query I rowsort
SELECT ALL - 89 * + COALESCE ( - + 0, - + 82, - - 77 ) * - 62 AS col2
----
0

query II rowsort
SELECT DISTINCT 67, + 57 + - 35 AS col1
----
67
22

query I rowsort
SELECT ( - 83 ) + + - 15 * - 23 AS col2
----
262

onlyif mysql # aggregate syntax: 
query II rowsort label-5735
SELECT 28 AS col1, COUNT( * ) + - 77 AS col1
----
28
-76

skipif mysql # not compatible
query II rowsort label-5735
SELECT 28 AS col1, COUNT ( * ) + - 77 AS col1
----
28
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT SUM( ALL + 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-5736
SELECT SUM ( ALL + 45 ) AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5737
SELECT CAST( - SUM( + 3 ) AS SIGNED ) * + + 4 * - ( + - COUNT( * ) ) * 71 * + 96 + + - 96 * - 93 + + - 40 - + + 93 * - 1 + - - COUNT( * )
----
-72810

skipif mysql # not compatible
query I rowsort label-5737
SELECT CAST ( - SUM ( + 3 ) AS INTEGER ) * + + 4 * - ( + - COUNT ( * ) ) * 71 * + 96 + + - 96 * - 93 + + - 40 - + + 93 * - 1 + - - COUNT ( * )
----
-72810

onlyif mysql # DIV for integer division: 
query I rowsort label-5738
SELECT 5 DIV ( ( + 78 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5738
SELECT 5 / ( ( + 78 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT DISTINCT - 44 + SUM( - 30 )
----
-74

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT - 44 + SUM ( - 30 )
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5740
SELECT DISTINCT - 11, + CAST( NULL AS DECIMAL ) * - + 89 AS col0
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-5740
SELECT DISTINCT - 11, + CAST ( NULL AS REAL ) * - + 89 AS col0
----
-11
NULL

query I rowsort
SELECT 89 * - 47 AS col2
----
-4183

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL - COUNT( * ) * + 5 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL - COUNT ( * ) * + 5 AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5743
SELECT 95 DIV + 15 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5743
SELECT 95 / + 15 AS col2
----
6

query I rowsort
SELECT ALL - 45 + 81
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT DISTINCT COUNT( - 82 ) + + 56 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT COUNT ( - 82 ) + + 56 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5746
SELECT ALL CAST( - ( - NULLIF ( - 75, 66 ) ) AS SIGNED ) + + - 29 * - 40 AS col0
----
1085

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL CAST ( - ( - NULLIF ( - 75, 66 ) ) AS INTEGER ) + + - 29 * - 40 AS col0
----
1085

query I rowsort
SELECT 85 + + + 87
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-5748
SELECT 88 * - - 38 * - ( - COUNT( * ) ) AS col1, 9 * - - MIN( 97 )
----
3344
873

skipif mysql # not compatible
query II rowsort label-5748
SELECT 88 * - - 38 * - ( - COUNT ( * ) ) AS col1, 9 * - - MIN ( 97 )
----
3344
873

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5749
SELECT ALL - ( - COALESCE ( CASE 50 WHEN 58 + + - COUNT( * ) THEN NULL ELSE 31 + + 48 END, - 11 * - COUNT( * ) * + 23, - 9 * - - 19, 81 + 82 * 5 + + 4 ) ) * - - 0 DIV - - 74
----
0

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL - ( - COALESCE ( CASE 50 WHEN 58 + + - COUNT ( * ) THEN NULL ELSE 31 + + 48 END, - 11 * - COUNT ( * ) * + 23, - 9 * - - 19, 81 + 82 * 5 + + 4 ) ) * - - 0 / - - 74
----
0

query I rowsort
SELECT 30 * + 85 AS col2
----
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT ALL CASE + 28 WHEN AVG ( DISTINCT - + 86 ) * + 96 THEN + ( + + COUNT( * ) ) + - 23 + - 52 * - 2 * - 52 * + 56 * - COUNT( * ) * - + 50 END - - 55 * - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL CASE + 28 WHEN AVG ( DISTINCT - + 86 ) * + 96 THEN + ( + + COUNT ( * ) ) + - 23 + - 52 * - 2 * - 52 * + 56 * - COUNT ( * ) * - + 50 END - - 55 * - 9
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5752
SELECT DISTINCT - 8 col1, + 43 DIV + 98 AS col0
----
-8
0

skipif mysql # not compatible
query II rowsort label-5752
SELECT DISTINCT - 8 col1, + 43 / + 98 AS col0
----
-8
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT ALL - 26 * - 30 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL - 26 * - 30 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT - 8 * + 95 + - COUNT( * ) AS col1
----
-761

skipif mysql # not compatible
query I rowsort label-5754
SELECT - 8 * + 95 + - COUNT ( * ) AS col1
----
-761

query II rowsort
SELECT 0 AS col1, 36 * + 53 AS col1
----
0
1908

query I rowsort
SELECT ALL + 35 - + + 60
----
-25

onlyif mysql # aggregate syntax: 
query III rowsort label-5757
SELECT - 50 + + 61 AS col2, + CASE 58 WHEN 77 THEN NULL WHEN - + 57 * 98 * - 43 THEN - ( - 59 ) ELSE NULL END * - 76 + - COUNT( * ) AS col1, - 92 + - 27
----
11
NULL
-119

skipif mysql # not compatible
query III rowsort label-5757
SELECT - 50 + + 61 AS col2, + CASE 58 WHEN 77 THEN NULL WHEN - + 57 * 98 * - 43 THEN - ( - 59 ) ELSE NULL END * - 76 + - COUNT ( * ) AS col1, - 92 + - 27
----
11
NULL
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5758
SELECT ALL + CAST( - + 22 AS SIGNED ) - - NULLIF ( + 27, NULLIF ( COUNT( * ), + 35 ) + + 55 + 43 ) AS col2, 58 * - - NULLIF ( 91, + 44 - + + 73 ) AS col2
----
5
5278

skipif mysql # not compatible
query II rowsort label-5758
SELECT ALL + CAST ( - + 22 AS INTEGER ) - - NULLIF ( + 27, NULLIF ( COUNT ( * ), + 35 ) + + 55 + 43 ) AS col2, 58 * - - NULLIF ( 91, + 44 - + + 73 ) AS col2
----
5
5278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5759
SELECT CAST( NULL AS SIGNED ) * + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5759
SELECT CAST ( NULL AS INTEGER ) * + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5760
SELECT + + 2 * + CAST( NULL AS SIGNED ) - - - 93 / - + 51 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT + + 2 * + CAST ( NULL AS INTEGER ) - - - 93 / - + 51 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT ALL + 10 DIV - ( - 52 )
----
0

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL + 10 / - ( - 52 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5762
SELECT + ( - CAST( NULL AS SIGNED ) ) + + - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT + ( - CAST ( NULL AS INTEGER ) ) + + - 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5763
SELECT DISTINCT + 61 * + + MIN( ALL + + NULLIF ( + - 51, + 10 * - 40 + + 13 ) ) AS col0, 21
----
-3111
21

skipif mysql # not compatible
query II rowsort label-5763
SELECT DISTINCT + 61 * + + MIN ( ALL + + NULLIF ( + - 51, + 10 * - 40 + + 13 ) ) AS col0, 21
----
-3111
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5764
SELECT CAST( + + 14 AS SIGNED ) DIV + - 60 DIV ( - COUNT( * ) ) * 28 * + 58
----
0

skipif mysql # not compatible
query I rowsort label-5764
SELECT CAST ( + + 14 AS INTEGER ) / + - 60 / ( - COUNT ( * ) ) * 28 * + 58
----
0

query I rowsort
SELECT ALL - - 57 + 53
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5766
SELECT ALL 96 + 17 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL 96 + 17 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT + SUM( DISTINCT 52 ) + 81 * + 36 AS col1
----
2968

skipif mysql # not compatible
query I rowsort label-5767
SELECT + SUM ( DISTINCT 52 ) + 81 * + 36 AS col1
----
2968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5768
SELECT ALL CAST( NULL AS SIGNED ) * 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL CAST ( NULL AS INTEGER ) * 83 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5769
SELECT + 80 + - - 27 + - 80 * - + 65 * 31 + - CAST( + 7 AS SIGNED ) + 34 + + ( - 33 ) + COUNT( * )
----
161302

skipif mysql # not compatible
query I rowsort label-5769
SELECT + 80 + - - 27 + - 80 * - + 65 * 31 + - CAST ( + 7 AS INTEGER ) + 34 + + ( - 33 ) + COUNT ( * )
----
161302

onlyif mysql # aggregate syntax: 
query II rowsort label-5770
SELECT - 39 AS col1, 42 * - 66 + - - 13 * + COUNT( * )
----
-39
-2759

skipif mysql # not compatible
query II rowsort label-5770
SELECT - 39 AS col1, 42 * - 66 + - - 13 * + COUNT ( * )
----
-39
-2759

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT - COALESCE ( - 37, COUNT( * ) * - 74 * 61, - - 56 + 45 ) col0
----
37

skipif mysql # not compatible
query I rowsort label-5771
SELECT - COALESCE ( - 37, COUNT ( * ) * - 74 * 61, - - 56 + 45 ) col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5772
SELECT ALL 64 + NULLIF ( + MAX( ALL - 20 ), CASE + 24 WHEN 89 THEN - + 49 - - + 61 * + 22 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + 40 + + 24 - - - 0 + + COUNT( * ) / 76 / + 34 / + 3 THEN NULL WHEN + 19 THEN NULL ELSE - - 63 + 92 END * + COUNT( * ) + - + 84 * + ( 29 ) + - 3 )
----
44

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL 64 + NULLIF ( + MAX ( ALL - 20 ), CASE + 24 WHEN 89 THEN - + 49 - - + 61 * + 22 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 40 + + 24 - - - 0 + + COUNT ( * ) / 76 / + 34 / + 3 THEN NULL WHEN + 19 THEN NULL ELSE - - 63 + 92 END * + COUNT ( * ) + - + 84 * + ( 29 ) + - 3 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT - COALESCE ( - - 41, 31, + - COUNT( ALL 52 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-5773
SELECT - COALESCE ( - - 41, 31, + - COUNT ( ALL 52 ) )
----
-41

query I rowsort
SELECT DISTINCT 35 + - - ( + + 96 ) col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT DISTINCT 94 + 22 * COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT 94 + 22 * COUNT ( * )
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5776
SELECT DISTINCT 78 * 55 + MAX( 46 ) DIV + - 93
----
4290

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT 78 * 55 + MAX ( 46 ) / + - 93
----
4290

query I rowsort
SELECT ALL 28 * - - 88 * - ( - 1 ) * - - 7 AS col0
----
17248

query I rowsort
SELECT - 40 + 61 + + - 51 * - 72 * + - ( - - 45 )
----
-165219

query I rowsort
SELECT DISTINCT + 80 * - + 47 - 3
----
-3763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5780
SELECT + CASE + 25 WHEN + 64 + + CAST( ( - 1 ) AS SIGNED ) * + + 65 * - 58 THEN 39 * + + 84 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT + CASE + 25 WHEN + 64 + + CAST ( ( - 1 ) AS INTEGER ) * + + 65 * - 58 THEN 39 * + + 84 END AS col1
----
NULL

query I rowsort
SELECT + CASE + - 7 WHEN + 83 THEN + 40 WHEN + 21 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 93 * + - 81
----
7533

query I rowsort
SELECT DISTINCT - 3 * - 3 - 8
----
1

query I rowsort
SELECT - 57 * - 47 * 98 * - 86
----
-22578612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5785
SELECT COALESCE ( - 13, + 62 DIV + COUNT( * ), + + 3 * + 16 DIV + 70 * + + 49 + + 58 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5785
SELECT COALESCE ( - 13, + 62 / + COUNT ( * ), + + 3 * + 16 / + 70 * + + 49 + + 58 ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5786
SELECT - + ( COUNT( * ) ) * - + 1 AS col2, 19 AS col2
----
1
19

skipif mysql # not compatible
query II rowsort label-5786
SELECT - + ( COUNT ( * ) ) * - + 1 AS col2, 19 AS col2
----
1
19

query I rowsort
SELECT DISTINCT 72 * 42 + - 6
----
3018

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5788
SELECT DISTINCT - 90 * - - 0 + 63 + 83 * COUNT( * ) DIV COUNT( * ) AS col1
----
146

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT - 90 * - - 0 + 63 + 83 * COUNT ( * ) / COUNT ( * ) AS col1
----
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5789
SELECT ALL + ( + SUM( + 33 ) ) AS col1, + COUNT( * ) DIV + + NULLIF ( 14, + + 83 ) + + COUNT( * ) + + 50 * + 61 * - - COUNT( * ) - - COUNT( * ) * + 17 AS col0
----
33
3068

skipif mysql # not compatible
query II rowsort label-5789
SELECT ALL + ( + SUM ( + 33 ) ) AS col1, + COUNT ( * ) / + + NULLIF ( 14, + + 83 ) + + COUNT ( * ) + + 50 * + 61 * - - COUNT ( * ) - - COUNT ( * ) * + 17 AS col0
----
33
3068

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL - ( 32 ) + + + ( - COUNT( + 22 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL - ( 32 ) + + + ( - COUNT ( + 22 ) )
----
-33

query I rowsort
SELECT - - 93 * 51
----
4743

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT ALL - 88 + COALESCE ( 6, 15, + NULLIF ( COUNT( * ), MIN( 26 ) + + + 21 ) )
----
-82

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL - 88 + COALESCE ( 6, 15, + NULLIF ( COUNT ( * ), MIN ( 26 ) + + + 21 ) )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5793
SELECT - + 7 - ( + 26 ), - CASE + + 32 WHEN 14 DIV + 82 + - 99 + - 98 THEN + 83 WHEN + 21 THEN 5 * - 36 ELSE COUNT( * ) * - + COALESCE ( 70, + + COUNT( * ) * - 35 DIV + - ( 84 ) + - SUM( DISTINCT + 76 ) ) END * + + 41 DIV + + COUNT( * ) AS col0
----
-33
2870

skipif mysql # not compatible
query II rowsort label-5793
SELECT - + 7 - ( + 26 ), - CASE + + 32 WHEN 14 / + 82 + - 99 + - 98 THEN + 83 WHEN + 21 THEN 5 * - 36 ELSE COUNT ( * ) * - + COALESCE ( 70, + + COUNT ( * ) * - 35 / + - ( 84 ) + - SUM ( DISTINCT + 76 ) ) END * + + 41 / + + COUNT ( * ) AS col0
----
-33
2870

query II rowsort
SELECT ALL + 38 + 84 AS col1, 9 * - 86
----
122
-774

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5795
SELECT - COALESCE ( + 23, + ( - 85 ) ) + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5795
SELECT - COALESCE ( + 23, + ( - 85 ) ) + - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5796
SELECT + 59 DIV - 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5796
SELECT + 59 / - 81 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5797
SELECT + CAST( NULL AS SIGNED ) - - + 55 + + 91 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5797
SELECT + CAST ( NULL AS INTEGER ) - - + 55 + + 91 col0
----
NULL

query I rowsort
SELECT ALL 29 * 83 AS col1
----
2407

query I rowsort
SELECT DISTINCT 87 * - + 36 AS col2
----
-3132

query I rowsort
SELECT - 11 * 73 col2
----
-803

onlyif mysql # DIV for integer division: 
query II rowsort label-5801
SELECT ALL 89 AS col2, 63 DIV + 85
----
89
0

skipif mysql # not compatible
query II rowsort label-5801
SELECT ALL 89 AS col2, 63 / + 85
----
89
0

query I rowsort
SELECT + CASE 25 WHEN + 32 THEN + - 47 * + 79 + 91 * + 53 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5803
SELECT 63 * + 57 - COALESCE ( - - NULLIF ( + 8, + + 77 ), - 74, CASE - 43 WHEN + 52 THEN NULL WHEN - 30 * - 67 + - 49 THEN - + COALESCE ( + ( + 35 ), 49, + - 82 ) * - - 36 WHEN 16 + + 49 + + 95 * + - 87 + + COUNT( * ) * - 5 * + COUNT( * ) THEN NULL END, + 86 * - 62 DIV + ( 6 ) * 25 ) DIV - - 42 + - NULLIF ( - ( - 48 ), 53 * - 99 + + 39 + - ( 51 ) - 56 * + - 21 )
----
3543

skipif mysql # not compatible
query I rowsort label-5803
SELECT 63 * + 57 - COALESCE ( - - NULLIF ( + 8, + + 77 ), - 74, CASE - 43 WHEN + 52 THEN NULL WHEN - 30 * - 67 + - 49 THEN - + COALESCE ( + ( + 35 ), 49, + - 82 ) * - - 36 WHEN 16 + + 49 + + 95 * + - 87 + + COUNT ( * ) * - 5 * + COUNT ( * ) THEN NULL END, + 86 * - 62 / + ( 6 ) * 25 ) / - - 42 + - NULLIF ( - ( - 48 ), 53 * - 99 + + 39 + - ( 51 ) - 56 * + - 21 )
----
3543

query II rowsort
SELECT DISTINCT + 55 col2, - 56 AS col0
----
55
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5805
SELECT CAST( - ( - 3 ) AS SIGNED ) AS col0, 14
----
3
14

skipif mysql # not compatible
query II rowsort label-5805
SELECT CAST ( - ( - 3 ) AS INTEGER ) AS col0, 14
----
3
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5806
SELECT 1 * - MIN( + + 72 ) + + ( + + CASE + 96 WHEN - COALESCE ( - COALESCE ( + 20, 75 ), - - 14, 47 - + - COUNT( * ) ) * 55 THEN + + CASE ( - + COALESCE ( - + AVG ( DISTINCT + + 6 ), + 96 ) ) WHEN 72 + - 95 * 74 + + + 93 THEN + 59 WHEN - 27 * + + ( - CASE - + CAST( - 89 AS SIGNED ) WHEN + 41 THEN + COUNT( * ) - COUNT( * ) / + + 85 / + - 53 END ) THEN + 21 WHEN - 7 THEN - 7 ELSE NULL END ELSE NULL END ) + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT 1 * - MIN ( + + 72 ) + + ( + + CASE + 96 WHEN - COALESCE ( - COALESCE ( + 20, 75 ), - - 14, 47 - + - COUNT ( * ) ) * 55 THEN + + CASE ( - + COALESCE ( - + AVG ( DISTINCT + + 6 ), + 96 ) ) WHEN 72 + - 95 * 74 + + + 93 THEN + 59 WHEN - 27 * + + ( - CASE - + CAST ( - 89 AS INTEGER ) WHEN + 41 THEN + COUNT ( * ) - COUNT ( * ) / + + 85 / + - 53 END ) THEN + 21 WHEN - 7 THEN - 7 ELSE NULL END ELSE NULL END ) + - 50
----
NULL

query II rowsort
SELECT ALL + 68, 89 * - 51 AS col2
----
68
-4539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5808
SELECT + - 55 DIV - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-5808
SELECT + - 55 / - COUNT ( * )
----
55

query I rowsort
SELECT ALL 2 * - 79 col2
----
-158

query I rowsort
SELECT + - ( 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5811
SELECT + 6 AS col1, NULLIF ( SUM( + 32 ), - - 17 + + 72 ) + + 90
----
6
122

skipif mysql # not compatible
query II rowsort label-5811
SELECT + 6 AS col1, NULLIF ( SUM ( + 32 ), - - 17 + + 72 ) + + 90
----
6
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5812
SELECT - + 83 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT - + 83 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 73 * 77
----
5621

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5814
SELECT ALL - + 95, CAST( NULL AS SIGNED ) col2
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-5814
SELECT ALL - + 95, CAST ( NULL AS INTEGER ) col2
----
-95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT + ( - MAX( + NULLIF ( 88, + 48 ) ) ) + 81 * 86
----
6878

skipif mysql # not compatible
query I rowsort label-5815
SELECT + ( - MAX ( + NULLIF ( 88, + 48 ) ) ) + 81 * 86
----
6878

query I rowsort
SELECT DISTINCT + 0 + + 70
----
70

query I rowsort
SELECT ALL - - 90 + 44 * 30
----
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT - 1 + + - COUNT( * ) * + 81 + - - 74
----
-8

skipif mysql # not compatible
query I rowsort label-5818
SELECT - 1 + + - COUNT ( * ) * + 81 + - - 74
----
-8

query I rowsort
SELECT 56 * + 84 + - + 60
----
4644

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT 14 * + MIN( - 46 ) * - 5 - 56 * COALESCE ( + - ( - + COUNT( * ) ), - + 55 ) AS col1
----
3164

skipif mysql # not compatible
query I rowsort label-5820
SELECT 14 * + MIN ( - 46 ) * - 5 - 56 * COALESCE ( + - ( - + COUNT ( * ) ), - + 55 ) AS col1
----
3164

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5821
SELECT - COUNT( DISTINCT + 4 ) + + NULLIF ( + - CAST( NULL AS DECIMAL ), 82 + COUNT( ( - 94 ) ) * - 76 * - COUNT( * ) ) - + 42 * - - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5821
SELECT - COUNT ( DISTINCT + 4 ) + + NULLIF ( + - CAST ( NULL AS REAL ), 82 + COUNT ( ( - 94 ) ) * - 76 * - COUNT ( * ) ) - + 42 * - - 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ALL + 31 - + 67 * - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL + 31 - + 67 * - COUNT ( * )
----
98

query II rowsort
SELECT 89 + 88 * + - 95 - + 28 AS col0, 19
----
-8299
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ALL + 58 * + - MIN( + + NULLIF ( + 59, - 33 + + - 69 ) )
----
-3422

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL + 58 * + - MIN ( + + NULLIF ( + 59, - 33 + + - 69 ) )
----
-3422

query I rowsort
SELECT 98 + - 55 + + 72
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5826
SELECT COUNT( * ) + + 50 + ( - 85 ) + - - 51 * - - 17 / - - CAST( NULL AS SIGNED ) * 10 - + 86 * + 56 / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT COUNT ( * ) + + 50 + ( - 85 ) + - - 51 * - - 17 / - - CAST ( NULL AS INTEGER ) * 10 - + 86 * + 56 / 38
----
NULL

query I rowsort
SELECT 79 * 98 AS col2
----
7742

query I rowsort
SELECT 95 + + 9 + + - 65 AS col0
----
39

query I rowsort
SELECT ALL ( + - 88 ) * 4 AS col2
----
-352

onlyif mysql # DIV for integer division: 
query I rowsort label-5830
SELECT DISTINCT + 14 DIV + 27
----
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT + 14 / + 27
----
0

query II rowsort
SELECT ALL - 96 * + 8, + 28 AS col1
----
-768
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5832
SELECT 23 DIV 61 + - 53 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5832
SELECT 23 / 61 + - 53 AS col2
----
-53

query I rowsort
SELECT DISTINCT 91 + 83 AS col0
----
174

query I rowsort
SELECT - 60 - - + 16 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT + MIN( 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-5835
SELECT + MIN ( 78 ) AS col2
----
78

query I rowsort
SELECT ( 93 ) col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT DISTINCT 57 + + + COUNT( * ) + 21 * 92 AS col0
----
1990

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT 57 + + + COUNT ( * ) + 21 * 92 AS col0
----
1990

query I rowsort
SELECT ALL + 32 + - 13 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT 11 * MIN( 31 )
----
341

skipif mysql # not compatible
query I rowsort label-5839
SELECT 11 * MIN ( 31 )
----
341

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT ALL CASE + COALESCE ( 28, - + 66, COUNT( * ) ) WHEN 53 THEN + 48 ELSE NULL END + 26 * 20 + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL CASE + COALESCE ( 28, - + 66, COUNT ( * ) ) WHEN 53 THEN + 48 ELSE NULL END + 26 * 20 + 48 AS col2
----
NULL

query I rowsort
SELECT - 32 / - + 83 - - - CASE 71 WHEN + 80 THEN NULL WHEN - 23 THEN NULL WHEN 65 / 69 * 38 THEN + - 88 + 95 END AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 68, + + NULLIF ( - ( - 88 ), + 19 ) ) + 39 AS col2
----
-29

query I rowsort
SELECT 90 * + - 57 * + 96 * - 76 AS col1
----
37428480

query I rowsort
SELECT - NULLIF ( + 5, + 30 + + + 65 + + + 15 ) AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5845
SELECT + MAX( DISTINCT 72 ), CAST( NULL AS SIGNED ) AS col1
----
72
NULL

skipif mysql # not compatible
query II rowsort label-5845
SELECT + MAX ( DISTINCT 72 ), CAST ( NULL AS INTEGER ) AS col1
----
72
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5846
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) / + 48 / - 89 * - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) / + 48 / - 89 * - 17 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5847
SELECT + 69 DIV + COALESCE ( 1, + 33 - + 79 + + 96 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-5847
SELECT + 69 / + COALESCE ( 1, + 33 - + 79 + + 96 ) AS col1
----
69

query I rowsort
SELECT + 8 * - + 14 col0
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT + 26 * + + COUNT( - 11 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5849
SELECT + 26 * + + COUNT ( - 11 ) AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5850
SELECT 89 DIV 73
----
1

skipif mysql # not compatible
query I rowsort label-5850
SELECT 89 / 73
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL - ( COUNT( * ) ) * - ( 80 )
----
80

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL - ( COUNT ( * ) ) * - ( 80 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5852
SELECT ALL - 99 DIV - 7 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL - 99 / - 7 AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5853
SELECT CAST( 89 AS SIGNED ) + 63 * - - 7
----
530

skipif mysql # not compatible
query I rowsort label-5853
SELECT CAST ( 89 AS INTEGER ) + 63 * - - 7
----
530

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT 24 * + - CASE 39 WHEN COUNT( * ) + - 68 THEN - ( + - COUNT( * ) ) END * - - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT 24 * + - CASE 39 WHEN COUNT ( * ) + - 68 THEN - ( + - COUNT ( * ) ) END * - - 80 AS col2
----
NULL

query I rowsort
SELECT ALL + ( + 37 ) * 28 * - - 62
----
64232

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT - COUNT( - + 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-5856
SELECT - COUNT ( - + 62 )
----
-1

query I rowsort
SELECT 98 + + 7
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-5858
SELECT DISTINCT + 9 * - - SUM( ALL NULLIF ( - 30, - 5 ) ), COUNT( * ) AS col2
----
-270
1

skipif mysql # not compatible
query II rowsort label-5858
SELECT DISTINCT + 9 * - - SUM ( ALL NULLIF ( - 30, - 5 ) ), COUNT ( * ) AS col2
----
-270
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT ALL + COUNT( * ) * + 13 col1
----
13

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL + COUNT ( * ) * + 13 col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5860
SELECT ALL COUNT( * ) AS col2, 96 col1
----
1
96

skipif mysql # not compatible
query II rowsort label-5860
SELECT ALL COUNT ( * ) AS col2, 96 col1
----
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT COUNT( * ) + - SUM( DISTINCT 58 )
----
-57

skipif mysql # not compatible
query I rowsort label-5861
SELECT COUNT ( * ) + - SUM ( DISTINCT 58 )
----
-57

query II rowsort
SELECT 39 * + 43 * + - 20 AS col0, - 52 - + 2 + + - 68 * - 22 * - + 57 + - - 49 + 46
----
-33540
-85231

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT ALL SUM( ALL 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL SUM ( ALL 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT 23 + + ( ( - - CASE + ( 42 ) WHEN - 75 THEN NULL ELSE - COUNT( * ) * + 37 END ) )
----
-14

skipif mysql # not compatible
query I rowsort label-5864
SELECT 23 + + ( ( - - CASE + ( 42 ) WHEN - 75 THEN NULL ELSE - COUNT ( * ) * + 37 END ) )
----
-14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5865
SELECT ALL - CAST( + + 52 AS SIGNED ) DIV - 66 + 47
----
47

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL - CAST ( + + 52 AS INTEGER ) / - 66 + 47
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT 29 DIV - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5866
SELECT 29 / - 57 AS col1
----
0

query I rowsort
SELECT 65 * + 0
----
0

query I rowsort
SELECT + 71 * 58 - + 77
----
4041

query I rowsort
SELECT DISTINCT 52 * + 40 + - 35 * - ( + 40 ) AS col1
----
3480

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5870
SELECT ALL CAST( NULL AS DECIMAL ) * 13 + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL CAST ( NULL AS REAL ) * 13 + 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT - 61 * - MIN( ALL 33 * 99 )
----
199287

skipif mysql # not compatible
query I rowsort label-5871
SELECT - 61 * - MIN ( ALL 33 * 99 )
----
199287

query I rowsort
SELECT ALL + ( ( 7 ) ) col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5873
SELECT DISTINCT + MIN( ALL - 54 ) * - 79 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT + MIN ( ALL - 54 ) * - 79 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL - COALESCE ( + 99, COUNT( * ) / - 16, AVG ( - 51 ) + 19 ) * CASE - 51 - ( - 26 ) WHEN + 72 + 49 THEN COUNT( * ) END + + SUM( + 94 + 67 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL - COALESCE ( + 99, COUNT ( * ) / - 16, AVG ( - 51 ) + 19 ) * CASE - 51 - ( - 26 ) WHEN + 72 + 49 THEN COUNT ( * ) END + + SUM ( + 94 + 67 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT - NULLIF ( 42, COUNT( * ) ) + COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-5875
SELECT - NULLIF ( 42, COUNT ( * ) ) + COUNT ( * ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT MIN( DISTINCT - 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5876
SELECT MIN ( DISTINCT - 10 ) AS col1
----
-10

query I rowsort
SELECT ( - 52 ) * 36 + 37 * + 25
----
-947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5878
SELECT ALL + NULLIF ( - 20, CAST( NULL AS SIGNED ) - 35 * 9 )
----
-20

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL + NULLIF ( - 20, CAST ( NULL AS INTEGER ) - 35 * 9 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5879
SELECT + NULLIF ( 55, CAST( NULL AS SIGNED ) * COUNT( * ) ) + 28 * COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-5879
SELECT + NULLIF ( 55, CAST ( NULL AS INTEGER ) * COUNT ( * ) ) + 28 * COUNT ( * )
----
83

query I rowsort
SELECT + 24 + 4
----
28

query I rowsort
SELECT ALL 56 * + 18 - 43 AS col1
----
965

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT - 50 * + 39 + + NULLIF ( COUNT( * ), - 60 )
----
-1949

skipif mysql # not compatible
query I rowsort label-5882
SELECT - 50 * + 39 + + NULLIF ( COUNT ( * ), - 60 )
----
-1949

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT + SUM( 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-5883
SELECT + SUM ( 41 ) AS col2
----
41

query I rowsort
SELECT + 76 + 55 col2
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5885
SELECT ALL 0 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL 0 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 5 * - 8
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-5887
SELECT - 70 + + 33 DIV - 9
----
-73

skipif mysql # not compatible
query I rowsort label-5887
SELECT - 70 + + 33 / - 9
----
-73

query I rowsort
SELECT ALL 64 * - 5 AS col0
----
-320

query I rowsort
SELECT - ( - NULLIF ( + COALESCE ( - 6, + CASE 32 WHEN 57 * + 54 THEN NULL WHEN + 9 THEN + 49 END ), - 63 ) ) AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5890
SELECT DISTINCT ( 60 ) + 11 * CAST( 14 * + NULLIF ( - 32, - 26 ) AS SIGNED )
----
-4868

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT ( 60 ) + 11 * CAST ( 14 * + NULLIF ( - 32, - 26 ) AS INTEGER )
----
-4868

onlyif mysql # DIV for integer division: 
query I rowsort label-5891
SELECT - 28 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-5891
SELECT - 28 / + 71
----
0

query I rowsort
SELECT + 98 - 60 * + 30
----
-1702

query I rowsort
SELECT ALL - 96 + 38
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5894
SELECT + 50 * ( - COALESCE ( - CASE - 91 WHEN + NULLIF ( 61, ( COALESCE ( - 75, 49 * 83 ) ) * CAST( NULL AS SIGNED ) + - 55 * - 22 ) THEN - 79 + + 18 ELSE NULL END, + 21 * - 87 + - CASE SUM( - 51 ) + + 29 WHEN ( 77 ) THEN NULL WHEN 43 + + 65 THEN NULL ELSE COALESCE ( - 90, 31 ) END, 42 ) * + CASE 38 WHEN - 84 THEN NULL ELSE - CASE + ( 64 ) WHEN 41 THEN 23 ELSE NULL END + 10 END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5894
SELECT + 50 * ( - COALESCE ( - CASE - 91 WHEN + NULLIF ( 61, ( COALESCE ( - 75, 49 * 83 ) ) * CAST ( NULL AS INTEGER ) + - 55 * - 22 ) THEN - 79 + + 18 ELSE NULL END, + 21 * - 87 + - CASE SUM ( - 51 ) + + 29 WHEN ( 77 ) THEN NULL WHEN 43 + + 65 THEN NULL ELSE COALESCE ( - 90, 31 ) END, 42 ) * + CASE 38 WHEN - 84 THEN NULL ELSE - CASE + ( 64 ) WHEN 41 THEN 23 ELSE NULL END + 10 END ) col1
----
NULL

query I rowsort
SELECT - 56 + + 71 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5896
SELECT ALL - CASE + 76 WHEN CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) + MIN( ALL - 37 ) * + 59 THEN CAST( NULL AS SIGNED ) ELSE NULL END + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL - CASE + 76 WHEN CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) + MIN ( ALL - 37 ) * + 59 THEN CAST ( NULL AS INTEGER ) ELSE NULL END + 69 AS col2
----
NULL

query I rowsort
SELECT ALL + + 75 + 76 AS col1
----
151

query I rowsort
SELECT DISTINCT ( 89 ) + + 74
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT - 78 * CASE 58 WHEN 15 THEN 34 WHEN + 6 + 46 * + COUNT( * ) THEN + 77 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT - 78 * CASE 58 WHEN 15 THEN 34 WHEN + 6 + 46 * + COUNT ( * ) THEN + 77 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5900
SELECT - - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5900
SELECT - - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT ALL + SUM( - 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL + SUM ( - 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT - + 35 + + ( + SUM( ALL 83 ) + + 7 ) * - 19 AS col1
----
-1745

skipif mysql # not compatible
query I rowsort label-5902
SELECT - + 35 + + ( + SUM ( ALL 83 ) + + 7 ) * - 19 AS col1
----
-1745

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5903
SELECT ALL + ( 13 ) DIV - 59 - 92 * + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL + ( 13 ) / - 59 - 92 * + COUNT ( * )
----
-92

query I rowsort
SELECT - - 66 * - 51
----
-3366

query I rowsort
SELECT ALL + ( 37 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5906
SELECT - 54 * 71 + CASE 66 WHEN - ( - CASE - 51 WHEN CASE NULLIF ( CAST( NULL AS DECIMAL ), 45 ) WHEN + 60 THEN 19 / - 95 ELSE - 0 / COUNT( * ) END THEN COUNT( * ) WHEN 14 THEN - 91 ELSE - AVG ( + 81 ) * - 25 END ) * + 53 + 48 THEN 46 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5906
SELECT - 54 * 71 + CASE 66 WHEN - ( - CASE - 51 WHEN CASE NULLIF ( CAST ( NULL AS REAL ), 45 ) WHEN + 60 THEN 19 / - 95 ELSE - 0 / COUNT ( * ) END THEN COUNT ( * ) WHEN 14 THEN - 91 ELSE - AVG ( + 81 ) * - 25 END ) * + 53 + 48 THEN 46 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5907
SELECT DISTINCT + + ( - CAST( - 71 AS SIGNED ) )
----
71

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT + + ( - CAST ( - 71 AS INTEGER ) )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5908
SELECT ALL - + 70 * ( - 44 * - CAST( NULLIF ( 91, - 3 ) AS SIGNED ) ) AS col0
----
-280280

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL - + 70 * ( - 44 * - CAST ( NULLIF ( 91, - 3 ) AS INTEGER ) ) AS col0
----
-280280

onlyif mysql # DIV for integer division: 
query I rowsort label-5909
SELECT DISTINCT - 77 DIV - ( 43 )
----
1

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT - 77 / - ( 43 )
----
1

query I rowsort
SELECT + 18 * - + 48
----
-864

query I rowsort
SELECT DISTINCT - 27 * - 78
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT ALL + ( - MIN( - 86 ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL + ( - MIN ( - 86 ) ) AS col0
----
86

query I rowsort
SELECT + ( + + 52 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT DISTINCT - COUNT( * ) * - - 40 * COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT - COUNT ( * ) * - - 40 * COUNT ( * )
----
-40

query I rowsort
SELECT DISTINCT + 6 * + + ( 34 ) + 37 AS col1
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT ALL COUNT( * ) * + - 9
----
-9

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL COUNT ( * ) * + - 9
----
-9

query I rowsort
SELECT ALL - 50 * 66 + 35 AS col2
----
-3265

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT - ( + COUNT( ALL + 75 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5918
SELECT - ( + COUNT ( ALL + 75 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5919
SELECT DISTINCT 75 DIV + 66 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT 75 / + 66 AS col0
----
1

query I rowsort
SELECT + 87 * - 1
----
-87

query I rowsort
SELECT - 98 + 79
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT MIN( + 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-5922
SELECT MIN ( + 28 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT ALL COUNT( * ) * - + ( - 47 ) col2
----
47

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL COUNT ( * ) * - + ( - 47 ) col2
----
47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5924
SELECT ALL CAST( 40 AS SIGNED ) + + 24 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL CAST ( 40 AS INTEGER ) + + 24 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 75 + + 73 AS col2
----
148

query I rowsort
SELECT + ( + + 66 ) - + 53 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT - ( SUM( ALL 46 ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-5927
SELECT - ( SUM ( ALL 46 ) ) AS col1
----
-46

query I rowsort
SELECT + 51 + - 26
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - SUM( 95 ) * CASE - 65 WHEN + 32 THEN + 53 * 84 WHEN 60 - + COUNT( * ) * + 66 THEN NULLIF ( ( CASE + COALESCE ( - COALESCE ( - COUNT( * ), - COUNT( DISTINCT + 32 ) ), + COALESCE ( - 10, + 52 ) ) WHEN 50 * 99 THEN - NULLIF ( 26, COUNT( * ) ) WHEN + 69 * - MIN( 36 ) + - 62 * 39 THEN - 76 * + 4 WHEN + 24 + 79 * CASE + NULLIF ( 27, - 7 ) - 36 WHEN 29 / 62 THEN + 7 END THEN NULL ELSE NULL END ), + 22 ) ELSE - NULLIF ( 96, 3 ) * + 81 + - 19 END
----
740525

skipif mysql # not compatible
query I rowsort label-5929
SELECT - SUM ( 95 ) * CASE - 65 WHEN + 32 THEN + 53 * 84 WHEN 60 - + COUNT ( * ) * + 66 THEN NULLIF ( ( CASE + COALESCE ( - COALESCE ( - COUNT ( * ), - COUNT ( DISTINCT + 32 ) ), + COALESCE ( - 10, + 52 ) ) WHEN 50 * 99 THEN - NULLIF ( 26, COUNT ( * ) ) WHEN + 69 * - MIN ( 36 ) + - 62 * 39 THEN - 76 * + 4 WHEN + 24 + 79 * CASE + NULLIF ( 27, - 7 ) - 36 WHEN 29 / 62 THEN + 7 END THEN NULL ELSE NULL END ), + 22 ) ELSE - NULLIF ( 96, 3 ) * + 81 + - 19 END
----
740525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5930
SELECT ALL AVG ( ALL CASE CAST( NULL AS SIGNED ) WHEN 74 * + 59 THEN + COALESCE ( 74, 27 + - 60 ) WHEN ( + 34 ) THEN - 38 + - 69 / 52 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL AVG ( ALL CASE CAST ( NULL AS INTEGER ) WHEN 74 * + 59 THEN + COALESCE ( 74, 27 + - 60 ) WHEN ( + 34 ) THEN - 38 + - 69 / 52 END ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5931
SELECT ALL SUM( DISTINCT - ( CAST( NULL AS DECIMAL ) ) ) * - 6 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL SUM ( DISTINCT - ( CAST ( NULL AS REAL ) ) ) * - 6 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT ALL 39 + + COUNT( * ) + - 50 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL 39 + + COUNT ( * ) + - 50 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT DISTINCT COUNT( * ) + - - 30 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT COUNT ( * ) + - - 30 AS col0
----
31

query I rowsort
SELECT DISTINCT 41 + - 95
----
-54

query I rowsort
SELECT ALL - 75 - - - 43
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-5936
SELECT DISTINCT - 17 DIV - ( 24 )
----
0

skipif mysql # not compatible
query I rowsort label-5936
SELECT DISTINCT - 17 / - ( 24 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5937
SELECT + 29 DIV - + COUNT( * ) + + 80
----
51

skipif mysql # not compatible
query I rowsort label-5937
SELECT + 29 / - + COUNT ( * ) + + 80
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT 55 * + 62 * + CASE + 29 WHEN MIN( ALL + 94 ) * 35 THEN - 2 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5938
SELECT 55 * + 62 * + CASE + 29 WHEN MIN ( ALL + 94 ) * 35 THEN - 2 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5939
SELECT ALL 68 DIV - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL 68 / - 88 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5940
SELECT 86 DIV + MAX( 60 )
----
1

skipif mysql # not compatible
query I rowsort label-5940
SELECT 86 / + MAX ( 60 )
----
1

query I rowsort
SELECT - 12 * + 58 * - 25 AS col2
----
17400

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT - - MIN( - 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-5942
SELECT - - MIN ( - 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT + MAX( 58 )
----
58

skipif mysql # not compatible
query I rowsort label-5943
SELECT + MAX ( 58 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5944
SELECT ALL - + CAST( NULL AS SIGNED ) * - 76 - + CASE 3 WHEN - 75 - 41 THEN ( 26 ) END * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 76 - + CASE 3 WHEN - 75 - 41 THEN ( 26 ) END * 16
----
NULL

query I rowsort
SELECT DISTINCT - + 30 AS col2
----
-30

query I rowsort
SELECT + ( - - 83 ) * 59
----
4897

query I rowsort
SELECT 4 * 74 + 15
----
311

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT - SUM( 40 ) + 94 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-5948
SELECT - SUM ( 40 ) + 94 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT COUNT( * ) + + - 26 + - 20 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5949
SELECT COUNT ( * ) + + - 26 + - 20 AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5950
SELECT + COUNT( * ) / 78 - 27 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT + COUNT ( * ) / 78 - 27 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5951
SELECT 27 / - - 9 * 79 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5951
SELECT 27 / - - 9 * 79 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 42 * + COALESCE ( ( + 55 ), + 58 ) + 61 AS col2
----
2371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5953
SELECT ALL - 41 + + CAST( + COUNT( * ) AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL - 41 + + CAST ( + COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5954
SELECT ALL + 68 DIV 18 * - 50 AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL + 68 / 18 * - 50 AS col0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL 5 + + + 59 * + 58 + ( - COUNT( * ) + - 14 ) AS col2
----
3412

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL 5 + + + 59 * + 58 + ( - COUNT ( * ) + - 14 ) AS col2
----
3412

query I rowsort
SELECT 33 + - + 70 AS col1
----
-37

query II rowsort
SELECT 13 AS col0, 75 AS col1
----
13
75

query I rowsort
SELECT - ( + 38 ) * 74 + ( 81 ) * + 37
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5959
SELECT NULLIF ( + 15, + NULLIF ( 29, + 74 * NULLIF ( 32, - COUNT( * ) * + 86 + COALESCE ( COUNT( * ), - 63 + - 30, CAST( NULL AS SIGNED ) ) ) ) ) * - 83
----
-1245

skipif mysql # not compatible
query I rowsort label-5959
SELECT NULLIF ( + 15, + NULLIF ( 29, + 74 * NULLIF ( 32, - COUNT ( * ) * + 86 + COALESCE ( COUNT ( * ), - 63 + - 30, CAST ( NULL AS INTEGER ) ) ) ) ) * - 83
----
-1245

query I rowsort
SELECT DISTINCT + 24 + - + 32 + + 21 * 69
----
1441

query I rowsort
SELECT ( ( - - 89 ) ) + ( - 70 + - 81 )
----
-62

query I rowsort
SELECT ALL 63 + 0
----
63

query II rowsort
SELECT - 97, - 30 AS col1
----
-97
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5964
SELECT ALL - 79 + + + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL - 79 + + + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 48 * + 16 * + ( - 4 )
----
-3072

query I rowsort
SELECT DISTINCT 91 * 23 AS col1
----
2093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5967
SELECT + AVG ( + ( - CAST( NULL AS SIGNED ) ) ) * - ( + 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT + AVG ( + ( - CAST ( NULL AS INTEGER ) ) ) * - ( + 46 ) AS col2
----
NULL

query I rowsort
SELECT ALL + + 4 - - 70 col0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5969
SELECT - 9 col2, ( 6 ) - + COUNT( * )
----
-9
5

skipif mysql # not compatible
query II rowsort label-5969
SELECT - 9 col2, ( 6 ) - + COUNT ( * )
----
-9
5

query I rowsort
SELECT ALL 39 * + + 2
----
78

query I rowsort
SELECT 80 - 83
----
-3

query II rowsort
SELECT - - 24 AS col1, - 0 + - 10 + - 75
----
24
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT ALL + MIN( + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL + MIN ( + 68 )
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5974
SELECT DISTINCT - ( - + 5 ) - - NULLIF ( + 94, - 43 * + 43 ) - + 31 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT - ( - + 5 ) - - NULLIF ( + 94, - 43 * + 43 ) - + 31 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5975
SELECT + 36 * + 63 + + - COUNT( * ) + CAST( NULL AS SIGNED ) * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT + 36 * + 63 + + - COUNT ( * ) + CAST ( NULL AS INTEGER ) * - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT DISTINCT + COUNT( * ) * - + 93 * + SUM( 34 ) * - 64
----
202368

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT + COUNT ( * ) * - + 93 * + SUM ( 34 ) * - 64
----
202368

onlyif mysql # aggregate syntax: 
query II rowsort label-5977
SELECT ALL 71 col0, + COUNT( ALL + + 91 ) + COUNT( * ) AS col0
----
71
2

skipif mysql # not compatible
query II rowsort label-5977
SELECT ALL 71 col0, + COUNT ( ALL + + 91 ) + COUNT ( * ) AS col0
----
71
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT - - ( + SUM( 41 ) )
----
41

skipif mysql # not compatible
query I rowsort label-5978
SELECT - - ( + SUM ( 41 ) )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5979
SELECT 80 + 75 + - 88 DIV - 93 * - 23 AS col2
----
155

skipif mysql # not compatible
query I rowsort label-5979
SELECT 80 + 75 + - 88 / - 93 * - 23 AS col2
----
155

onlyif mysql # DIV for integer division: 
query II rowsort label-5980
SELECT DISTINCT + 24, + 69 * ( 81 ) DIV ( 71 DIV 33 ) + - 9 AS col0
----
24
2785

skipif mysql # not compatible
query II rowsort label-5980
SELECT DISTINCT + 24, + 69 * ( 81 ) / ( 71 / 33 ) + - 9 AS col0
----
24
2785

query I rowsort
SELECT - 86 + - 66
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ALL - - MAX( 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL - - MAX ( 75 ) AS col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5983
SELECT ALL 69 DIV - 23
----
-3

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL 69 / - 23
----
-3

query I rowsort
SELECT 18 * 22
----
396

query I rowsort
SELECT DISTINCT - + 55 * - 6 + 56 * ( - ( 65 ) )
----
-3310

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5986
SELECT DISTINCT - + ( - + NULLIF ( CAST( NULL AS DECIMAL ), 26 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT - + ( - + NULLIF ( CAST ( NULL AS REAL ), 26 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5987
SELECT MAX( ALL 4 ) / + 29 + - 20 + + ( CAST( NULL AS SIGNED ) + 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT MAX ( ALL 4 ) / + 29 + - 20 + + ( CAST ( NULL AS INTEGER ) + 52 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5988
SELECT ALL + 98 * + CASE + + 18 WHEN 39 THEN CAST( 23 AS SIGNED ) WHEN COUNT( * ) * - 93 THEN - 4 ELSE NULL END + + 36 / 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5988
SELECT ALL + 98 * + CASE + + 18 WHEN 39 THEN CAST ( 23 AS INTEGER ) WHEN COUNT ( * ) * - 93 THEN - 4 ELSE NULL END + + 36 / 72
----
NULL

query I rowsort
SELECT ALL + 82 * - - 93 * + - 84
----
-640584

query I rowsort
SELECT ALL 87 * - 66 + - 30 AS col1
----
-5772

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT DISTINCT 56 * + 17 + - COUNT( * ) col1
----
951

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT 56 * + 17 + - COUNT ( * ) col1
----
951

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT DISTINCT + ( + + COUNT( * ) ) * + 34
----
34

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT + ( + + COUNT ( * ) ) * + 34
----
34

query I rowsort
SELECT ALL - 12 * + 90 + + 46 AS col1
----
-1034

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT DISTINCT + COUNT( * ) * + 35 * + 39 + - 17 * 22
----
991

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT + COUNT ( * ) * + 35 * + 39 + - 17 * 22
----
991

query I rowsort
SELECT 33 * 19 AS col2
----
627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5996
SELECT ALL - CAST( NULL AS SIGNED ) + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL - CAST ( NULL AS INTEGER ) + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT 73 * - + NULLIF ( + 69, - COUNT( * ) ) - - 96 AS col1
----
-4941

skipif mysql # not compatible
query I rowsort label-5997
SELECT 73 * - + NULLIF ( + 69, - COUNT ( * ) ) - - 96 AS col1
----
-4941

query I rowsort
SELECT 58 * + 52 col1
----
3016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5999
SELECT ALL - 74 + - CAST( NULL AS SIGNED ) * ( 15 ) * 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL - 74 + - CAST ( NULL AS INTEGER ) * ( 15 ) * 99 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6000
SELECT DISTINCT + 19 DIV + 86 col1
----
0

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT + 19 / + 86 col1
----
0

query I rowsort
SELECT ALL + CASE - 58 WHEN - 44 THEN - 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT DISTINCT COUNT( ALL + 93 ) - + ( - 30 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT COUNT ( ALL + 93 ) - + ( - 30 ) AS col1
----
31

query I rowsort
SELECT ALL NULLIF ( - - 94, + NULLIF ( + 79, + 97 * + 77 ) / + 6 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT - COUNT( * ) - + 38
----
-39

skipif mysql # not compatible
query I rowsort label-6004
SELECT - COUNT ( * ) - + 38
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6005
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 55
----
NULL

query I rowsort
SELECT - 9 * - + 37 AS col0
----
333

query II rowsort
SELECT - 15 * 2, + 41 * - 52 AS col2
----
-30
-2132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6008
SELECT ALL - 2 * + + CAST( 78 AS SIGNED )
----
-156

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - 2 * + + CAST ( 78 AS INTEGER )
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT ALL + - 77 * + COUNT( - 59 ) * 35 * 97
----
-261415

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL + - 77 * + COUNT ( - 59 ) * 35 * 97
----
-261415

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT + COALESCE ( 61, + COUNT( * ), + COALESCE ( CASE 9 WHEN 15 THEN + 3 END, + ( - COUNT( ALL 82 ) ) * + 8 ) + 5 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-6010
SELECT + COALESCE ( 61, + COUNT ( * ), + COALESCE ( CASE 9 WHEN 15 THEN + 3 END, + ( - COUNT ( ALL 82 ) ) * + 8 ) + 5 ) col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6011
SELECT - + 62 * + + CAST( NULL AS SIGNED ) + + - ( - - ( 99 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT - + 62 * + + CAST ( NULL AS INTEGER ) + + - ( - - ( 99 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6012
SELECT + ( - COUNT( * ) ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6012
SELECT + ( - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT ALL CAST( ( - 40 ) AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL CAST ( ( - 40 ) AS INTEGER )
----
-40

query I rowsort
SELECT - 61 + + 64 * 95
----
6019

query I rowsort
SELECT + + ( 88 ) * - ( - 7 ) + 63
----
679

query I rowsort
SELECT - NULLIF ( - + ( + + 52 ), - 96 + 50 * 67 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL - COALESCE ( + - 38, 5 ) + + COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL - COALESCE ( + - 38, 5 ) + + COUNT ( * ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT - - 35 + - + COUNT( * ) * + - 8 * - 64 * MIN( ALL 51 ) AS col1
----
-26077

skipif mysql # not compatible
query I rowsort label-6018
SELECT - - 35 + - + COUNT ( * ) * + - 8 * - 64 * MIN ( ALL 51 ) AS col1
----
-26077

query I rowsort
SELECT + 6 * + + ( + - 24 ) col2
----
-144

query II rowsort
SELECT DISTINCT 76 * 5 AS col0, - 21 + - 30
----
380
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6021
SELECT ALL + CAST( NULL AS SIGNED ) * 99 * + 57 + + - COUNT( * ) + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL + CAST ( NULL AS INTEGER ) * 99 * + 57 + + - COUNT ( * ) + 76
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6022
SELECT ( + ( + 81 ) ) DIV - 22 - 60
----
-63

skipif mysql # not compatible
query I rowsort label-6022
SELECT ( + ( + 81 ) ) / - 22 - 60
----
-63

query I rowsort
SELECT DISTINCT - 88 * - - 86 - + 39 AS col2
----
-7607

query I rowsort
SELECT ALL - 68 * COALESCE ( + + 23, - 8, - 5 * 77 ) + - 76
----
-1640

query I rowsort
SELECT + 35 - - 23
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6026
SELECT + 11 DIV + 76 * + - 78
----
0

skipif mysql # not compatible
query I rowsort label-6026
SELECT + 11 / + 76 * + - 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT 5 / + + CASE 6 WHEN + 29 / + - SUM( 25 ) THEN + 82 * MAX( DISTINCT 80 ) END + - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6027
SELECT 5 / + + CASE 6 WHEN + 29 / + - SUM ( 25 ) THEN + 82 * MAX ( DISTINCT 80 ) END + - 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT + 99 + + + CASE 39 WHEN - - 68 THEN 71 * COUNT( * ) ELSE NULL END + 46 * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT + 99 + + + CASE 39 WHEN - - 68 THEN 71 * COUNT ( * ) ELSE NULL END + 46 * + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT - 95 * 46 * CASE + - 60 WHEN - 79 THEN NULL ELSE NULLIF ( - 16, - NULLIF ( - COUNT( * ), - 54 ) ) END * - 46 - + 80
----
-3216400

skipif mysql # not compatible
query I rowsort label-6029
SELECT - 95 * 46 * CASE + - 60 WHEN - 79 THEN NULL ELSE NULLIF ( - 16, - NULLIF ( - COUNT ( * ), - 54 ) ) END * - 46 - + 80
----
-3216400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6030
SELECT + 75 + + NULLIF ( - + 79, + + MAX( ALL + + 60 ) ) DIV COUNT( 50 + + 85 DIV 63 )
----
-4

skipif mysql # not compatible
query I rowsort label-6030
SELECT + 75 + + NULLIF ( - + 79, + + MAX ( ALL + + 60 ) ) / COUNT ( 50 + + 85 / 63 )
----
-4

query I rowsort
SELECT - 81 - - - COALESCE ( + NULLIF ( - 76, - 8 ), + 5, - 18 )
----
-5

query I rowsort
SELECT ALL 87 * + 10 col2
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT ALL + MIN( DISTINCT + - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL + MIN ( DISTINCT + - 71 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT - 95 * ( 97 ) + COUNT( + 32 ) AS col1
----
-9214

skipif mysql # not compatible
query I rowsort label-6034
SELECT - 95 * ( 97 ) + COUNT ( + 32 ) AS col1
----
-9214

query I rowsort
SELECT ALL + 14 * - 41 * - + 8 * + + 63 - - 34 * - 81 col0
----
286542

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT CASE - 57 WHEN - COUNT( * ) * - COALESCE ( - ( + ( - 27 ) ), 71 / NULLIF ( MAX( - 19 ), 39 ) ) THEN - 27 / - 77 ELSE + 13 * + 11 + - 37 END
----
106

skipif mysql # not compatible
query I rowsort label-6036
SELECT CASE - 57 WHEN - COUNT ( * ) * - COALESCE ( - ( + ( - 27 ) ), 71 / NULLIF ( MAX ( - 19 ), 39 ) ) THEN - 27 / - 77 ELSE + 13 * + 11 + - 37 END
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-6037
SELECT 42 * 85 + - 10 DIV COALESCE ( 90, - ( 58 ) + - 85 ) AS col0
----
3570

skipif mysql # not compatible
query I rowsort label-6037
SELECT 42 * 85 + - 10 / COALESCE ( 90, - ( 58 ) + - 85 ) AS col0
----
3570

query I rowsort
SELECT ALL + 15 * 22 AS col1
----
330

query II rowsort
SELECT DISTINCT + 96 AS col1, 73 + - 6 AS col0
----
96
67

query I rowsort
SELECT DISTINCT 45 * 13 AS col0
----
585

query I rowsort
SELECT + ( 27 ) col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT DISTINCT NULLIF ( + - 73, + 21 + - 86 + + 89 * COUNT( * ) )
----
-73

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT NULLIF ( + - 73, + 21 + - 86 + + 89 * COUNT ( * ) )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT - CASE + + COUNT( * ) WHEN + 67 THEN NULL ELSE - 93 END
----
93

skipif mysql # not compatible
query I rowsort label-6043
SELECT - CASE + + COUNT ( * ) WHEN + 67 THEN NULL ELSE - 93 END
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6044
SELECT - COUNT( * ) DIV + MIN( - + 91 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6044
SELECT - COUNT ( * ) / + MIN ( - + 91 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 5 * + 13 AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6046
SELECT ALL - + CASE + 66 WHEN + 67 - + - 24 + 22 + COUNT( * ) * COUNT( * ) THEN 88 + + COALESCE ( + 36 + + ( MAX( 26 ) ), - CASE - CAST( 5 AS SIGNED ) WHEN CAST( 13 AS SIGNED ) THEN NULL WHEN + COUNT( * ) THEN MAX( 97 ) / - COALESCE ( 72, 9 ) - 56 END * 7 + + COUNT( * ), + 78 - - CASE - 70 WHEN 2 * - 68 + 92 * 72 THEN NULL ELSE 35 * - COUNT( * ) END ) ELSE NULL END * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL - + CASE + 66 WHEN + 67 - + - 24 + 22 + COUNT ( * ) * COUNT ( * ) THEN 88 + + COALESCE ( + 36 + + ( MAX ( 26 ) ), - CASE - CAST ( 5 AS INTEGER ) WHEN CAST ( 13 AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN MAX ( 97 ) / - COALESCE ( 72, 9 ) - 56 END * 7 + + COUNT ( * ), + 78 - - CASE - 70 WHEN 2 * - 68 + 92 * 72 THEN NULL ELSE 35 * - COUNT ( * ) END ) ELSE NULL END * 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT - - MAX( 43 ) * 99
----
4257

skipif mysql # not compatible
query I rowsort label-6047
SELECT - - MAX ( 43 ) * 99
----
4257

query I rowsort
SELECT DISTINCT - 44 + - 11 + - - 32 AS col0
----
-23

query I rowsort
SELECT - + 75 * 66 AS col0
----
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-6050
SELECT ALL + + 32 + 75 * - + 99 - + 20 DIV + 68
----
-7393

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + + 32 + 75 * - + 99 - + 20 / + 68
----
-7393

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6051
SELECT - - 6 - + + 49 + 33 * + MIN( - - 20 ) + + 42 DIV + MIN( DISTINCT - 28 * + 21 )
----
617

skipif mysql # not compatible
query I rowsort label-6051
SELECT - - 6 - + + 49 + 33 * + MIN ( - - 20 ) + + 42 / + MIN ( DISTINCT - 28 * + 21 )
----
617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6052
SELECT + 4 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT + 4 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( 33, + 56 ) col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT - + COUNT( * ) + 92
----
91

skipif mysql # not compatible
query I rowsort label-6054
SELECT - + COUNT ( * ) + 92
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6055
SELECT - 2 AS col2, - COUNT( * )
----
-2
-1

skipif mysql # not compatible
query II rowsort label-6055
SELECT - 2 AS col2, - COUNT ( * )
----
-2
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT - - 48 + + COUNT( * ) col1
----
49

skipif mysql # not compatible
query I rowsort label-6056
SELECT - - 48 + + COUNT ( * ) col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT - 12 + + + 70 * MIN( + 4 ) * COUNT( * )
----
268

skipif mysql # not compatible
query I rowsort label-6057
SELECT - 12 + + + 70 * MIN ( + 4 ) * COUNT ( * )
----
268

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6058
SELECT ALL + 9 + + - CASE CAST( - NULLIF ( - 57, - 21 ) AS SIGNED ) WHEN - 30 THEN 11 + 13 ELSE 7 END DIV 39 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL + 9 + + - CASE CAST ( - NULLIF ( - 57, - 21 ) AS INTEGER ) WHEN - 30 THEN 11 + 13 ELSE 7 END / 39 AS col2
----
9

query II rowsort
SELECT ALL + 78 AS col1, 71
----
78
71

query I rowsort
SELECT - 0 * - 32 * + 58
----
0

query I rowsort
SELECT + 5 + - - 10 AS col2
----
15

query I rowsort
SELECT DISTINCT - 37 * + 71 * - 19 * - 24
----
-1197912

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT + MAX( ALL + ( - ( - + 84 ) ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-6063
SELECT + MAX ( ALL + ( - ( - + 84 ) ) ) AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6064
SELECT + 29 * 56 + + 1 DIV - NULLIF ( 59, COUNT( * ) )
----
1624

skipif mysql # not compatible
query I rowsort label-6064
SELECT + 29 * 56 + + 1 / - NULLIF ( 59, COUNT ( * ) )
----
1624

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL ( - + 8 ) - + 20 + + MAX( 70 )
----
42

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL ( - + 8 ) - + 20 + + MAX ( 70 )
----
42

query I rowsort
SELECT ALL 46 * 81 * - 99
----
-368874

query I rowsort
SELECT DISTINCT + 92 - 88 AS col1
----
4

query II rowsort
SELECT ALL - 13, + ( + + 53 ) * + 30 col1
----
-13
1590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6069
SELECT 55 AS col0, + CAST( + MIN( - + 6 ) AS SIGNED ) DIV + 54
----
55
0

skipif mysql # not compatible
query II rowsort label-6069
SELECT 55 AS col0, + CAST ( + MIN ( - + 6 ) AS INTEGER ) / + 54
----
55
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6070
SELECT ALL - CAST( - 12 AS SIGNED ) col2
----
12

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL - CAST ( - 12 AS INTEGER ) col2
----
12

query I rowsort
SELECT ALL - 20 * 43 * 37
----
-31820

query II rowsort
SELECT DISTINCT - 26 AS col2, + 44
----
-26
44

query II rowsort
SELECT ALL - 29, 97 * - 39 * + - 36 AS col2
----
-29
136188

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT COUNT( * ) - + 18 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6074
SELECT COUNT ( * ) - + 18 AS col2
----
-17

query II rowsort
SELECT + 94 AS col0, + 33 * + 3 AS col2
----
94
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6076
SELECT ALL - 12 col0, SUM( - 79 ) AS col0
----
-12
-79

skipif mysql # not compatible
query II rowsort label-6076
SELECT ALL - 12 col0, SUM ( - 79 ) AS col0
----
-12
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6077
SELECT COUNT( - - 16 ) DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6077
SELECT COUNT ( - - 16 ) / 72 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT ALL 98 DIV - - 63 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL 98 / - - 63 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6079
SELECT 64 * + - 4 * + + 29 * + COUNT( * ), 63 * - 43 AS col1
----
-7424
-2709

skipif mysql # not compatible
query II rowsort label-6079
SELECT 64 * + - 4 * + + 29 * + COUNT ( * ), 63 * - 43 AS col1
----
-7424
-2709

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT MAX( + 60 ) * + 99
----
5940

skipif mysql # not compatible
query I rowsort label-6080
SELECT MAX ( + 60 ) * + 99
----
5940

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6081
SELECT DISTINCT - 37 AS col1, + COUNT( * ) DIV - ( + 8 ), 11 AS col0
----
-37
0
11

skipif mysql # not compatible
query III rowsort label-6081
SELECT DISTINCT - 37 AS col1, + COUNT ( * ) / - ( + 8 ), 11 AS col0
----
-37
0
11

query II rowsort
SELECT - 7 * - 23, 8 * 97 + - + 11 AS col2
----
161
765

query I rowsort
SELECT ALL + 76 * 59 AS col0
----
4484

query I rowsort
SELECT 55 - 78
----
-23

query I rowsort
SELECT ALL 90 + + - 96 - 0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT DISTINCT + 32 * 29 + + COUNT( DISTINCT 92 ) * - SUM( DISTINCT + - 8 ) + - 85
----
851

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT + 32 * 29 + + COUNT ( DISTINCT 92 ) * - SUM ( DISTINCT + - 8 ) + - 85
----
851

query I rowsort
SELECT ALL - 15 + 12 + + 34 AS col0
----
31

query II rowsort
SELECT - 34 AS col0, 57 * 81 col2
----
-34
4617

query I rowsort
SELECT ALL + 40 + - ( + 8 )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-6090
SELECT - ( + COALESCE ( + - 75, - - 12 - + 37, + ( + 44 ) DIV + AVG ( DISTINCT 62 ) ) ) + 6 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-6090
SELECT - ( + COALESCE ( + - 75, - - 12 - + 37, + ( + 44 ) / + AVG ( DISTINCT 62 ) ) ) + 6 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT ALL - MAX( + 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL - MAX ( + 27 ) AS col2
----
-27

query I rowsort
SELECT - 79 - - 2 + - 31 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT DISTINCT - - 92 + MAX( + 44 ) AS col2
----
136

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT - - 92 + MAX ( + 44 ) AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT + COUNT( * ) * - MIN( DISTINCT 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-6094
SELECT + COUNT ( * ) * - MIN ( DISTINCT 9 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6095
SELECT ALL COUNT( - 49 ), COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-6095
SELECT ALL COUNT ( - 49 ), COUNT ( * ) AS col0
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6096
SELECT ALL - + COUNT( * ) + - 15 + - + COUNT( * ) DIV ( 18 )
----
-16

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL - + COUNT ( * ) + - 15 + - + COUNT ( * ) / ( 18 )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-6097
SELECT - 12 * 20 col0, + ( + + ( + CASE + ( - 34 ) WHEN - COUNT( DISTINCT - 13 ) THEN NULL WHEN - MAX( ALL 97 ) * 42 THEN 78 + SUM( 16 - + 58 ) END ) ) AS col1
----
-240
NULL

skipif mysql # not compatible
query II rowsort label-6097
SELECT - 12 * 20 col0, + ( + + ( + CASE + ( - 34 ) WHEN - COUNT ( DISTINCT - 13 ) THEN NULL WHEN - MAX ( ALL 97 ) * 42 THEN 78 + SUM ( 16 - + 58 ) END ) ) AS col1
----
-240
NULL

query I rowsort
SELECT ( - 13 ) + - 50
----
-63

query I rowsort
SELECT ALL - ( + 84 ) * 7
----
-588

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6100
SELECT 23 + 32, COUNT( * ) DIV - + 99 col1
----
55
0

skipif mysql # not compatible
query II rowsort label-6100
SELECT 23 + 32, COUNT ( * ) / - + 99 col1
----
55
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6101
SELECT 33 * + - 36, 5 DIV - 24 AS col2
----
-1188
0

skipif mysql # not compatible
query II rowsort label-6101
SELECT 33 * + - 36, 5 / - 24 AS col2
----
-1188
0

query I rowsort
SELECT ALL - ( COALESCE ( + + 6, 15 + 5 - 75 ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT DISTINCT - SUM( 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT - SUM ( 58 )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6104
SELECT 79 DIV + 77 - - 3
----
4

skipif mysql # not compatible
query I rowsort label-6104
SELECT 79 / + 77 - - 3
----
4

query I rowsort
SELECT ALL - CASE - + 61 WHEN + 43 * + - 83 THEN + 4 END
----
NULL

query I rowsort
SELECT ALL 93 * + + 18 AS col2
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT ( ( - 43 ) ) * + 54 + - 9 + - MAX( - 2 ) * + 3 col1
----
-2325

skipif mysql # not compatible
query I rowsort label-6107
SELECT ( ( - 43 ) ) * + 54 + - 9 + - MAX ( - 2 ) * + 3 col1
----
-2325

onlyif mysql # DIV for integer division: 
query I rowsort label-6108
SELECT 79 DIV 85 + - - 11
----
11

skipif mysql # not compatible
query I rowsort label-6108
SELECT 79 / 85 + - - 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT 48 + + CASE - - 50 WHEN + - 62 THEN 75 * ( 42 ) WHEN + 74 - 50 THEN NULL WHEN - NULLIF ( 77, - 31 ) THEN NULL ELSE 80 END + COUNT( * ) AS col1
----
129

skipif mysql # not compatible
query I rowsort label-6109
SELECT 48 + + CASE - - 50 WHEN + - 62 THEN 75 * ( 42 ) WHEN + 74 - 50 THEN NULL WHEN - NULLIF ( 77, - 31 ) THEN NULL ELSE 80 END + COUNT ( * ) AS col1
----
129

query I rowsort
SELECT 87 * - + 57
----
-4959

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT MIN( + + 57 ) * COUNT( * ) + + 75 + - 3 AS col1
----
129

skipif mysql # not compatible
query I rowsort label-6111
SELECT MIN ( + + 57 ) * COUNT ( * ) + + 75 + - 3 AS col1
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6112
SELECT SUM( - 99 ) - - + 48 + CAST( + 54 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-6112
SELECT SUM ( - 99 ) - - + 48 + CAST ( + 54 AS INTEGER )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6113
SELECT 89 * + COUNT( * ) / + CAST( + 75 AS SIGNED ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6113
SELECT 89 * + COUNT ( * ) / + CAST ( + 75 AS INTEGER ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 98 * 65 AS col0
----
6370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6115
SELECT 76 * - CAST( - - 20 AS SIGNED ) AS col2
----
-1520

skipif mysql # not compatible
query I rowsort label-6115
SELECT 76 * - CAST ( - - 20 AS INTEGER ) AS col2
----
-1520

query I rowsort
SELECT ALL 26 + 10 * - 10 - + 41
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6117
SELECT ALL - + 90 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL - + 90 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6118
SELECT DISTINCT + CAST( 20 AS SIGNED ) + + ( - 2 ) + - ( + 87 ) + - CAST( NULL AS SIGNED ) / 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT + CAST ( 20 AS INTEGER ) + + ( - 2 ) + - ( + 87 ) + - CAST ( NULL AS INTEGER ) / 92 AS col2
----
NULL

query I rowsort
SELECT - 86 * + ( - + 97 ) + 81 col2
----
8423

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT ALL MIN( ALL + - 37 ) + + 31 * - 33
----
-1060

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL MIN ( ALL + - 37 ) + + 31 * - 33
----
-1060

query I rowsort
SELECT DISTINCT - + ( - 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-6122
SELECT DISTINCT - 11 + + 9 AS col1, 37 AS col1, - 12 * + ( - COUNT( * ) ) + 87
----
-2
37
99

skipif mysql # not compatible
query III rowsort label-6122
SELECT DISTINCT - 11 + + 9 AS col1, 37 AS col1, - 12 * + ( - COUNT ( * ) ) + 87
----
-2
37
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6123
SELECT - CAST( + 90 AS SIGNED ) DIV + 26
----
-3

skipif mysql # not compatible
query I rowsort label-6123
SELECT - CAST ( + 90 AS INTEGER ) / + 26
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT 42 * - CASE 84 WHEN - 22 THEN + 28 WHEN 56 * ( 62 ) - 56 * + 38 - - COUNT( * ) THEN - 0 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6124
SELECT 42 * - CASE 84 WHEN - 22 THEN + 28 WHEN 56 * ( 62 ) - 56 * + 38 - - COUNT ( * ) THEN - 0 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT ALL + 3 + + 38 * ( + ( - 4 ) ) * - + 89 + + COUNT( * ) * 19 AS col0
----
13550

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL + 3 + + 38 * ( + ( - 4 ) ) * - + 89 + + COUNT ( * ) * 19 AS col0
----
13550

query I rowsort
SELECT - NULLIF ( - 19, - 82 - - - 38 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6127
SELECT DISTINCT NULLIF ( 61, + CASE - 98 WHEN - 43 THEN + ( + + CAST( 22 AS SIGNED ) ) * + 52 + + 99 WHEN 92 * 25 THEN NULL ELSE NULL END ) - COUNT( - 97 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT NULLIF ( 61, + CASE - 98 WHEN - 43 THEN + ( + + CAST ( 22 AS INTEGER ) ) * + 52 + + 99 WHEN 92 * 25 THEN NULL ELSE NULL END ) - COUNT ( - 97 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT ALL 22 * COUNT( * ) + 35 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL 22 * COUNT ( * ) + 35 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL 26 - - COUNT( * ) + + COUNT( COALESCE ( - 50, - 55, + - 72 ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL 26 - - COUNT ( * ) + + COUNT ( COALESCE ( - 50, - 55, + - 72 ) ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT NULLIF ( + 80, + NULLIF ( - 90, - - 77 ) * 24 + + COUNT( 62 ) + - ( 99 + 8 ) + - MIN( ( + 73 ) ) ) + - 54
----
26

skipif mysql # not compatible
query I rowsort label-6130
SELECT NULLIF ( + 80, + NULLIF ( - 90, - - 77 ) * 24 + + COUNT ( 62 ) + - ( 99 + 8 ) + - MIN ( ( + 73 ) ) ) + - 54
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT - COUNT( * ) - - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6131
SELECT - COUNT ( * ) - - COUNT ( * ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT + 29 * + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-6132
SELECT + 29 * + COUNT ( * ) AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6133
SELECT DISTINCT 73 AS col2, 98 DIV + COUNT( * )
----
73
98

skipif mysql # not compatible
query II rowsort label-6133
SELECT DISTINCT 73 AS col2, 98 / + COUNT ( * )
----
73
98

query I rowsort
SELECT + 93 * - 61
----
-5673

query I rowsort
SELECT ALL 4 * - 96 AS col1
----
-384

query I rowsort
SELECT + NULLIF ( + 59, + - ( + 21 ) + + 65 )
----
59

query I rowsort
SELECT + NULLIF ( + 32, 85 * 35 * + 12 ) AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6138
SELECT DISTINCT - 11 * + 50 * + CAST( NULL AS SIGNED ), + 0 * + 83 + + + 91 + ( - + 81 ) AS col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-6138
SELECT DISTINCT - 11 * + 50 * + CAST ( NULL AS INTEGER ), + 0 * + 83 + + + 91 + ( - + 81 ) AS col1
----
NULL
10

query I rowsort
SELECT ALL + 57 * + 39
----
2223

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT + CASE 62 WHEN 0 THEN NULL WHEN 53 THEN NULL ELSE + - COUNT( * ) END * - ( 1 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6140
SELECT + CASE 62 WHEN 0 THEN NULL WHEN 53 THEN NULL ELSE + - COUNT ( * ) END * - ( 1 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6141
SELECT + ( 38 ) * + - CAST( - - 71 AS SIGNED ) + NULLIF ( - 72, + + 67 )
----
-2770

skipif mysql # not compatible
query I rowsort label-6141
SELECT + ( 38 ) * + - CAST ( - - 71 AS INTEGER ) + NULLIF ( - 72, + + 67 )
----
-2770

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT - COUNT( * ) * + 75 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-6142
SELECT - COUNT ( * ) * + 75 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT NULLIF ( + 60, - COUNT( * ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-6143
SELECT NULLIF ( + 60, - COUNT ( * ) ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT DISTINCT 62 * SUM( 91 ) * - NULLIF ( - 57, + 1 * - + 36 + + + 42 ) * 19
----
6110286

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT 62 * SUM ( 91 ) * - NULLIF ( - 57, + 1 * - + 36 + + + 42 ) * 19
----
6110286

query I rowsort
SELECT ALL 94 * - - 13 + - ( + 65 ) AS col0
----
1157

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT + COALESCE ( COUNT( * ), + 34 ) * NULLIF ( + 30, - COUNT( * ) ) - - 99 + - 52 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT + COALESCE ( COUNT ( * ), + 34 ) * NULLIF ( + 30, - COUNT ( * ) ) - - 99 + - 52 AS col0
----
77

query I rowsort
SELECT ALL - 51 * - ( + - 36 ) + - + 39 + - + 8 + + + 11 * - ( + 96 ) * 46 AS col2
----
-50459

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6148
SELECT - NULLIF ( - 90, + 15 ) * - 22 * COALESCE ( + SUM( - 92 ), - 22, 70 + - 76 DIV + 26 )
----
182160

skipif mysql # not compatible
query I rowsort label-6148
SELECT - NULLIF ( - 90, + 15 ) * - 22 * COALESCE ( + SUM ( - 92 ), - 22, 70 + - 76 / + 26 )
----
182160

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT ALL + 93 * + + COUNT( * ) * + 27 * - 76 + - 90 AS col2
----
-190926

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL + 93 * + + COUNT ( * ) * + 27 * - 76 + - 90 AS col2
----
-190926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6150
SELECT NULLIF ( + COALESCE ( - - ( AVG ( ALL - + 1 ) ), - 94 * 88 * - 96 ), CAST( COUNT( * ) AS SIGNED ) - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT NULLIF ( + COALESCE ( - - ( AVG ( ALL - + 1 ) ), - 94 * 88 * - 96 ), CAST ( COUNT ( * ) AS INTEGER ) - 2 )
----
NULL

query I rowsort
SELECT ALL ( - 4 ) * 10 + - 0 AS col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6152
SELECT + ( + + CASE - COUNT( * ) WHEN + 30 THEN NULL ELSE 72 DIV - ( ( - 18 ) ) + - NULLIF ( 18, - 95 DIV - 22 ) END ) * 92 - + 22 AS col0
----
-1310

skipif mysql # not compatible
query I rowsort label-6152
SELECT + ( + + CASE - COUNT ( * ) WHEN + 30 THEN NULL ELSE 72 / - ( ( - 18 ) ) + - NULLIF ( 18, - 95 / - 22 ) END ) * 92 - + 22 AS col0
----
-1310

query II rowsort
SELECT ALL + + 8, 35 * - 36 AS col2
----
8
-1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6154
SELECT - - COALESCE ( + 60, 17 DIV 81 ) + + + ( COUNT( * ) )
----
61

skipif mysql # not compatible
query I rowsort label-6154
SELECT - - COALESCE ( + 60, 17 / 81 ) + + + ( COUNT ( * ) )
----
61

query I rowsort
SELECT - 0 * 6
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6156
SELECT ALL + ( - 58 ) * 44 * - COALESCE ( + NULLIF ( - CAST( + 70 AS SIGNED ), - 20 ), - ( - CAST( NULL AS SIGNED ) ) ) AS col1
----
-178640

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL + ( - 58 ) * 44 * - COALESCE ( + NULLIF ( - CAST ( + 70 AS INTEGER ), - 20 ), - ( - CAST ( NULL AS INTEGER ) ) ) AS col1
----
-178640

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT ALL + - ( + + NULLIF ( 98, - COUNT( + 72 ) ) )
----
-98

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL + - ( + + NULLIF ( 98, - COUNT ( + 72 ) ) )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6158
SELECT ALL - + COUNT( * ) * NULLIF ( 65, - CAST( - + ( 16 ) AS SIGNED ) * - MIN( - - 94 ) / + 57 ) - 82
----
-147

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL - + COUNT ( * ) * NULLIF ( 65, - CAST ( - + ( 16 ) AS INTEGER ) * - MIN ( - - 94 ) / + 57 ) - 82
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT + NULLIF ( + 93, + 78 + + COUNT( * ) ) + + ( - + 79 ) - 9
----
5

skipif mysql # not compatible
query I rowsort label-6159
SELECT + NULLIF ( + 93, + 78 + + COUNT ( * ) ) + + ( - + 79 ) - 9
----
5

query II rowsort
SELECT ALL + 54, + 96 AS col1
----
54
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6161
SELECT + + COUNT( * ) DIV - 45 + - + 53 + + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-6161
SELECT + + COUNT ( * ) / - 45 + - + 53 + + COUNT ( * )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-6162
SELECT - + 42 + - 68 DIV 64 * + - 46 * - 48 AS col0
----
-2250

skipif mysql # not compatible
query I rowsort label-6162
SELECT - + 42 + - 68 / 64 * + - 46 * - 48 AS col0
----
-2250

query I rowsort
SELECT + - 36 - + 51
----
-87

query II rowsort
SELECT DISTINCT 21, + 38 AS col1
----
21
38

query I rowsort
SELECT ALL 23 - + 57 + 64 * 83
----
5278

onlyif mysql # DIV for integer division: 
query I rowsort label-6166
SELECT + 29 DIV + 97 col2
----
0

skipif mysql # not compatible
query I rowsort label-6166
SELECT + 29 / + 97 col2
----
0

query I rowsort
SELECT ALL - 87 / - CASE 1 WHEN - 1 * - 39 THEN NULL WHEN 12 THEN - 56 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6168
SELECT DISTINCT CAST( - + 99 AS SIGNED ) col2, 31 col1
----
-99
31

skipif mysql # not compatible
query II rowsort label-6168
SELECT DISTINCT CAST ( - + 99 AS INTEGER ) col2, 31 col1
----
-99
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT - CASE + - 66 WHEN - 79 + - - COUNT( * ) THEN NULL WHEN ( 42 ) * - + ( 85 ) * + - 41 + COUNT( * ) * 29 THEN + SUM( ALL + 64 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6169
SELECT - CASE + - 66 WHEN - 79 + - - COUNT ( * ) THEN NULL WHEN ( 42 ) * - + ( 85 ) * + - 41 + COUNT ( * ) * 29 THEN + SUM ( ALL + 64 ) END AS col1
----
NULL

query I rowsort
SELECT ALL 17 * - - 60 * - - 29 AS col2
----
29580

query I rowsort
SELECT + 11 + 89
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT + ( - COUNT( * ) ) * - 80
----
80

skipif mysql # not compatible
query I rowsort label-6172
SELECT + ( - COUNT ( * ) ) * - 80
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT ALL 81 + - 65 DIV - 35
----
82

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL 81 + - 65 / - 35
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT + MIN( DISTINCT + 76 ) + - ( COUNT( * ) )
----
75

skipif mysql # not compatible
query I rowsort label-6174
SELECT + MIN ( DISTINCT + 76 ) + - ( COUNT ( * ) )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6175
SELECT - COALESCE ( 84, + COUNT( * ) * - COALESCE ( - 41, 26 DIV + 45, 3 + COUNT( ALL - 25 ) ) + + 52 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-6175
SELECT - COALESCE ( 84, + COUNT ( * ) * - COALESCE ( - 41, 26 / + 45, 3 + COUNT ( ALL - 25 ) ) + + 52 ) AS col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6176
SELECT + 63 + 67 DIV + 44
----
64

skipif mysql # not compatible
query I rowsort label-6176
SELECT + 63 + 67 / + 44
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6177
SELECT + 40 DIV COALESCE ( - + 7, + AVG ( ALL + 56 ) ) - ( 96 ) * - - 10
----
-965

skipif mysql # not compatible
query I rowsort label-6177
SELECT + 40 / COALESCE ( - + 7, + AVG ( ALL + 56 ) ) - ( 96 ) * - - 10
----
-965

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT DISTINCT + COALESCE ( + 24, + COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT + COALESCE ( + 24, + COUNT ( * ) )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6179
SELECT DISTINCT ( + COALESCE ( + 61, - COUNT( * ), - 25 ) ) DIV + - 16 + 44 + - 98
----
-57

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT ( + COALESCE ( + 61, - COUNT ( * ), - 25 ) ) / + - 16 + 44 + - 98
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT + CAST( + - ( - 63 ) AS SIGNED ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-6180
SELECT + CAST ( + - ( - 63 ) AS INTEGER ) AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6181
SELECT ALL - 7 DIV - + 78 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL - 7 / - + 78 + + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6182
SELECT ALL 65 DIV 34 DIV 41 + - 27
----
-27

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL 65 / 34 / 41 + - 27
----
-27

query I rowsort
SELECT + CASE - ( 18 ) WHEN + - 66 + + 90 * + 86 - 17 + + + 38 THEN 32 ELSE NULL END / + 44 + - 47 * + 27 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6184
SELECT ALL 11 / - 46 * + - CAST( NULL AS DECIMAL ) + + - 45 + 34 + + COUNT( * ) + + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL 11 / - 46 * + - CAST ( NULL AS REAL ) + + - 45 + 34 + + COUNT ( * ) + + + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT + - COUNT( * ) + - - ( + - 5 )
----
-6

skipif mysql # not compatible
query I rowsort label-6185
SELECT + - COUNT ( * ) + - - ( + - 5 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6186
SELECT - 94 / - 94 + 42 + - 79 * - + 63 - CAST( + - 47 AS SIGNED ) + + 91 + + CASE 38 WHEN ( CASE 65 WHEN + 53 * - 93 THEN 80 * + ( 2 ) + 42 * 90 WHEN + 83 THEN + CAST( 86 AS SIGNED ) + + 77 END ) - + 73 THEN ( + 87 ) - 18 * 83 WHEN + 98 THEN NULL WHEN + 22 THEN NULL ELSE NULL END / - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6186
SELECT - 94 / - 94 + 42 + - 79 * - + 63 - CAST ( + - 47 AS INTEGER ) + + 91 + + CASE 38 WHEN ( CASE 65 WHEN + 53 * - 93 THEN 80 * + ( 2 ) + 42 * 90 WHEN + 83 THEN + CAST ( 86 AS INTEGER ) + + 77 END ) - + 73 THEN ( + 87 ) - 18 * 83 WHEN + 98 THEN NULL WHEN + 22 THEN NULL ELSE NULL END / - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT SUM( + ( + - 49 ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-6187
SELECT SUM ( + ( + - 49 ) ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT + COUNT( * ) * + COUNT( * ) + - 58 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-6188
SELECT + COUNT ( * ) * + COUNT ( * ) + - 58 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6189
SELECT - 32 - - 81 + + 7 + + + MIN( 55 ) col2, ( + + 67 ) * + + COUNT( * ) AS col1
----
111
67

skipif mysql # not compatible
query II rowsort label-6189
SELECT - 32 - - 81 + + 7 + + + MIN ( 55 ) col2, ( + + 67 ) * + + COUNT ( * ) AS col1
----
111
67

query I rowsort
SELECT ALL + 36 * - ( 88 ) AS col1
----
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT ALL - 38 / - - 97 + - 1 - 1 + + AVG ( DISTINCT - ( - 60 ) ) + + - CASE - 64 WHEN COUNT( * ) THEN 29 / - 60 END * + AVG ( 6 + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL - 38 / - - 97 + - 1 - 1 + + AVG ( DISTINCT - ( - 60 ) ) + + - CASE - 64 WHEN COUNT ( * ) THEN 29 / - 60 END * + AVG ( 6 + 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT - 85 * - ( 62 ) * + ( + - 15 ) + - COUNT( * ) * - + 38
----
-79012

skipif mysql # not compatible
query I rowsort label-6192
SELECT - 85 * - ( 62 ) * + ( + - 15 ) + - COUNT ( * ) * - + 38
----
-79012

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT DISTINCT - + 85 / - COALESCE ( + 40, COUNT( * ) * + COUNT( * ) ) / - + CASE - 74 WHEN - + 9 * + 34 / + NULLIF ( 7 * 39, 19 ) - - COUNT( * ) THEN NULL WHEN 9 THEN + 91 END + 5 * - COUNT( ALL 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT - + 85 / - COALESCE ( + 40, COUNT ( * ) * + COUNT ( * ) ) / - + CASE - 74 WHEN - + 9 * + 34 / + NULLIF ( 7 * 39, 19 ) - - COUNT ( * ) THEN NULL WHEN 9 THEN + 91 END + 5 * - COUNT ( ALL 36 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6194
SELECT DISTINCT + - COUNT( * ) * - - 70 - - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT + - COUNT ( * ) * - - 70 - - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT - + 7 + - NULLIF ( + 4, 22 * AVG ( - 47 ) ) + 16 + 79 + - + ( - COUNT( * ) ) * 45
----
129

skipif mysql # not compatible
query I rowsort label-6195
SELECT - + 7 + - NULLIF ( + 4, 22 * AVG ( - 47 ) ) + 16 + 79 + - + ( - COUNT ( * ) ) * 45
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT ALL - - 40 * + + 13 - - - 44 + + 76 - - 93 + - COUNT( * ) + COUNT( * ) * - 77
----
567

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL - - 40 * + + 13 - - - 44 + + 76 - - 93 + - COUNT ( * ) + COUNT ( * ) * - 77
----
567

onlyif mysql # aggregate syntax: 
query II rowsort label-6197
SELECT + COUNT( DISTINCT - 47 ) AS col1, - ( - 91 ) col0
----
1
91

skipif mysql # not compatible
query II rowsort label-6197
SELECT + COUNT ( DISTINCT - 47 ) AS col1, - ( - 91 ) col0
----
1
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6198
SELECT - 39 * + - 93 * - COALESCE ( + - 79, 56 * 0 ) + - COALESCE ( 93, + 49 DIV - ( 34 + - ( - 40 - + 94 * - 48 ) ) + - 24 )
----
286440

skipif mysql # not compatible
query I rowsort label-6198
SELECT - 39 * + - 93 * - COALESCE ( + - 79, 56 * 0 ) + - COALESCE ( 93, + 49 / - ( 34 + - ( - 40 - + 94 * - 48 ) ) + - 24 )
----
286440

query I rowsort
SELECT + - 21 * 58
----
-1218

query I rowsort
SELECT - + 15 * 76 col2
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT 71 + 46 * - COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6201
SELECT 71 + 46 * - COUNT ( * ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6202
SELECT ALL + - 31 * + COUNT( * ), + 20 * + 3 * - - 37 - + + NULLIF ( + 52, + 94 ) - COALESCE ( ( - 9 ), COALESCE ( + 59, - 67 ) ) * 40 AS col2
----
-31
2528

skipif mysql # not compatible
query II rowsort label-6202
SELECT ALL + - 31 * + COUNT ( * ), + 20 * + 3 * - - 37 - + + NULLIF ( + 52, + 94 ) - COALESCE ( ( - 9 ), COALESCE ( + 59, - 67 ) ) * 40 AS col2
----
-31
2528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6203
SELECT - COALESCE ( 80, - 42 * + + CAST( + 9 AS SIGNED ) ) * + - 96 AS col2
----
7680

skipif mysql # not compatible
query I rowsort label-6203
SELECT - COALESCE ( 80, - 42 * + + CAST ( + 9 AS INTEGER ) ) * + - 96 AS col2
----
7680

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6204
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) AS col0, COUNT( * ) DIV 12 * 39 + 9 + - - CASE 90 WHEN 26 + + 88 THEN NULL WHEN - 63 + - ( 69 ) THEN 98 ELSE 36 END * - 65 * 3 col1
----
1
-7011

skipif mysql # not compatible
query II rowsort label-6204
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) AS col0, COUNT ( * ) / 12 * 39 + 9 + - - CASE 90 WHEN 26 + + 88 THEN NULL WHEN - 63 + - ( 69 ) THEN 98 ELSE 36 END * - 65 * 3 col1
----
1
-7011

onlyif mysql # aggregate syntax: 
query II rowsort label-6205
SELECT DISTINCT 58 AS col2, - COUNT( * ) AS col2
----
58
-1

skipif mysql # not compatible
query II rowsort label-6205
SELECT DISTINCT 58 AS col2, - COUNT ( * ) AS col2
----
58
-1

query I rowsort
SELECT 58 + - + 55 col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6207
SELECT - 65, 99 - - + CAST( - 41 AS SIGNED ) AS col0
----
-65
58

skipif mysql # not compatible
query II rowsort label-6207
SELECT - 65, 99 - - + CAST ( - 41 AS INTEGER ) AS col0
----
-65
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6208
SELECT COUNT( DISTINCT + 19 ) + + - ( - CASE - 6 WHEN + 0 THEN - 11 WHEN 71 THEN NULL WHEN - ( + + 56 ) THEN NULL ELSE + COUNT( * ) DIV - 45 END ) + + 80 * ( + COUNT( 55 ) + - 21 ) AS col2
----
-1599

skipif mysql # not compatible
query I rowsort label-6208
SELECT COUNT ( DISTINCT + 19 ) + + - ( - CASE - 6 WHEN + 0 THEN - 11 WHEN 71 THEN NULL WHEN - ( + + 56 ) THEN NULL ELSE + COUNT ( * ) / - 45 END ) + + 80 * ( + COUNT ( 55 ) + - 21 ) AS col2
----
-1599

query I rowsort
SELECT 48 * - 50
----
-2400

query I rowsort
SELECT 51 - + 59
----
-8

query I rowsort
SELECT DISTINCT 16 + + + 61 AS col2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6212
SELECT DISTINCT 75 + - 56 * 41 AS col1, + CASE 0 WHEN + CASE 29 WHEN 12 * - - 5 - + + 27 + 62 * + 64 * + 1 THEN NULL ELSE + 14 + + 67 END * 5 - MIN( ALL 44 + 45 ) THEN - 60 + 16 END AS col1
----
-2221
NULL

skipif mysql # not compatible
query II rowsort label-6212
SELECT DISTINCT 75 + - 56 * 41 AS col1, + CASE 0 WHEN + CASE 29 WHEN 12 * - - 5 - + + 27 + 62 * + 64 * + 1 THEN NULL ELSE + 14 + + 67 END * 5 - MIN ( ALL 44 + 45 ) THEN - 60 + 16 END AS col1
----
-2221
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6213
SELECT ALL 34 DIV + CASE - 72 WHEN 90 THEN NULL WHEN 76 THEN - SUM( + 57 ) + - - ( 81 ) * 15 * 8 ELSE 22 + + 20 * 64 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL 34 / + CASE - 72 WHEN 90 THEN NULL WHEN 76 THEN - SUM ( + 57 ) + - - ( 81 ) * 15 * 8 ELSE 22 + + 20 * 64 END AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6214
SELECT ALL - 57 + - + CAST( 49 AS SIGNED ) + 33 * 26 * + COUNT( * ) * - - COUNT( * )
----
752

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL - 57 + - + CAST ( 49 AS INTEGER ) + 33 * 26 * + COUNT ( * ) * - - COUNT ( * )
----
752

query II rowsort
SELECT - 85 AS col1, 27
----
-85
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL COUNT( * ) + + - 83 * + + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL COUNT ( * ) + + - 83 * + + COUNT ( * )
----
-82

query I rowsort
SELECT DISTINCT + 85 + - 23
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT ALL SUM( ALL - ( - 93 ) ) * + 12 AS col0
----
1116

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL SUM ( ALL - ( - 93 ) ) * + 12 AS col0
----
1116

query I rowsort
SELECT CASE - 12 WHEN - 52 + - 9 + 76 / 99 * - 9 THEN NULL ELSE - + 47 + + 81 END * - 36 AS col0
----
-1224

query II rowsort
SELECT DISTINCT 9 * 1 * - 13 AS col0, + 96
----
-117
96

query II rowsort
SELECT + 54 AS col0, 29 col1
----
54
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT - 29 * + SUM( ALL + 14 ) + + + COUNT( * )
----
-405

skipif mysql # not compatible
query I rowsort label-6222
SELECT - 29 * + SUM ( ALL + 14 ) + + + COUNT ( * )
----
-405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6223
SELECT 66, 13 DIV COALESCE ( + 85, COUNT( ALL + 95 ) + - CAST( COUNT( * ) AS SIGNED ) ) * - 20 * COUNT( * ) AS col2
----
66
0

skipif mysql # not compatible
query II rowsort label-6223
SELECT 66, 13 / COALESCE ( + 85, COUNT ( ALL + 95 ) + - CAST ( COUNT ( * ) AS INTEGER ) ) * - 20 * COUNT ( * ) AS col2
----
66
0

query I rowsort
SELECT - CASE + 94 WHEN - - 80 THEN + + 82 END * + NULLIF ( + 43, - 94 ) * 58 + 84
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6225
SELECT ALL + 16 DIV + + ( + + 65 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL + 16 / + + ( + + 65 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6226
SELECT + 82 / CAST( NULL AS SIGNED ) / - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6226
SELECT + 82 / CAST ( NULL AS INTEGER ) / - 59
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6227
SELECT ALL - CAST( - + 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL - CAST ( - + 94 AS INTEGER )
----
94

query I rowsort
SELECT DISTINCT - 83 * 79 AS col1
----
-6557

query II rowsort
SELECT - 54 AS col2, - 49
----
-54
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT + COALESCE ( + 52, - 61 + + - CASE + COUNT( * ) WHEN + + 4 * + 66 * - 18 + 38 THEN 8 * 65 ELSE - 95 END + + 27 ) * 31 AS col1
----
1612

skipif mysql # not compatible
query I rowsort label-6230
SELECT + COALESCE ( + 52, - 61 + + - CASE + COUNT ( * ) WHEN + + 4 * + 66 * - 18 + 38 THEN 8 * 65 ELSE - 95 END + + 27 ) * 31 AS col1
----
1612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6231
SELECT 47 DIV COUNT( * ) + - SUM( ALL ( 8 ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6231
SELECT 47 / COUNT ( * ) + - SUM ( ALL ( 8 ) ) AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6232
SELECT ALL 88 * 98 + - CAST( NULL AS SIGNED ), 53 + + - COALESCE ( 62, 19 + + COUNT( * ) ) AS col1
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-6232
SELECT ALL 88 * 98 + - CAST ( NULL AS INTEGER ), 53 + + - COALESCE ( 62, 19 + + COUNT ( * ) ) AS col1
----
NULL
-9

query II rowsort
SELECT ALL - 6 AS col1, + 20 - 93
----
-6
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6234
SELECT - + CAST( + 48 AS SIGNED ) * - 44 - 76 AS col0
----
2036

skipif mysql # not compatible
query I rowsort label-6234
SELECT - + CAST ( + 48 AS INTEGER ) * - 44 - 76 AS col0
----
2036

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6235
SELECT + + CASE - 83 WHEN 52 * + 11 * + - 74 THEN - 59 * + + ( + - 98 ) + + - CAST( NULL AS DECIMAL ) - - + AVG ( ALL + 86 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6235
SELECT + + CASE - 83 WHEN 52 * + 11 * + - 74 THEN - 59 * + + ( + - 98 ) + + - CAST ( NULL AS REAL ) - - + AVG ( ALL + 86 ) END col2
----
NULL

query I rowsort
SELECT 96 + + 63 + 8 AS col1
----
167

query I rowsort
SELECT ALL - - 15 col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT 27 DIV + + 9 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6238
SELECT 27 / + + 9 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT ALL - SUM( - 86 ) * + - 79 * + 20 * 29 AS col0
----
-3940520

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL - SUM ( - 86 ) * + - 79 * + 20 * 29 AS col0
----
-3940520

query II rowsort
SELECT 65 col0, + 74 AS col2
----
65
74

query I rowsort
SELECT ALL - + 38 col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6242
SELECT ALL + COUNT( * ) DIV - 20
----
0

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL + COUNT ( * ) / - 20
----
0

query I rowsort
SELECT + 12 - - + 47 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL - + MAX( ALL + 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL - + MAX ( ALL + 38 ) AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6245
SELECT ALL - 70 + - CAST( NULL AS SIGNED ) * - 10 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL - 70 + - CAST ( NULL AS INTEGER ) * - 10 col0
----
NULL

query I rowsort
SELECT ALL - 88 + - 84
----
-172

query II rowsort
SELECT 96 AS col2, - 55 + - - 98
----
96
43

query I rowsort
SELECT 51 + 4 AS col2
----
55

query II rowsort
SELECT 34, + 72 * 95 AS col1
----
34
6840

query I rowsort
SELECT 58 * - - ( + 52 ) col2
----
3016

query I rowsort
SELECT 93 * + + 74 AS col2
----
6882

query II rowsort
SELECT ALL 74, ( 28 ) + - 1 * - 16 AS col1
----
74
44

query I rowsort
SELECT ALL - 71 + + + 36
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6254
SELECT ALL - 25 + - 14 * - + 31 + - SUM( + CAST( - ( 98 ) AS SIGNED ) ) + + 78 AS col1
----
585

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL - 25 + - 14 * - + 31 + - SUM ( + CAST ( - ( 98 ) AS INTEGER ) ) + + 78 AS col1
----
585

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6255
SELECT 83 * COUNT( * ) DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-6255
SELECT 83 * COUNT ( * ) / - 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6256
SELECT DISTINCT - 53 + 24 AS col0, 37 * + 98 * - 34 / CAST( NULL AS SIGNED )
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-6256
SELECT DISTINCT - 53 + 24 AS col0, 37 * + 98 * - 34 / CAST ( NULL AS INTEGER )
----
-29
NULL

query II rowsort
SELECT ALL 85, ( + 79 ) col2
----
85
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT DISTINCT 63 + CASE + 87 WHEN 61 THEN - 85 WHEN - COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT 63 + CASE + 87 WHEN 61 THEN - 85 WHEN - COUNT ( * ) THEN NULL END AS col2
----
NULL

query II rowsort
SELECT 96 + + 42 + - 34 * + 39 AS col0, 40 AS col2
----
-1188
40

onlyif mysql # DIV for integer division: 
query II rowsort label-6260
SELECT 7, + 14 DIV + 86 AS col2
----
7
0

skipif mysql # not compatible
query II rowsort label-6260
SELECT 7, + 14 / + 86 AS col2
----
7
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6261
SELECT 73 + - - COUNT( * ) DIV ( - SUM( ALL - 36 ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-6261
SELECT 73 + - - COUNT ( * ) / ( - SUM ( ALL - 36 ) ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT DISTINCT MIN( DISTINCT + 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT MIN ( DISTINCT + 41 ) AS col1
----
41

query I rowsort
SELECT 92 + - - 35
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT ALL + SUM( - 88 ) - - 97 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL + SUM ( - 88 ) - - 97 AS col1
----
9

query I rowsort
SELECT + 44 + 44 AS col2
----
88

query I rowsort
SELECT DISTINCT + + 77 - 73 col0
----
4

query I rowsort
SELECT 62 * + - ( + 31 )
----
-1922

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT ALL - NULLIF ( 24, - NULLIF ( - - 25, + ( + - 1 ) / - COUNT( * ) + - 34 * 11 ) ) * + 45
----
-1080

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL - NULLIF ( 24, - NULLIF ( - - 25, + ( + - 1 ) / - COUNT ( * ) + - 34 * 11 ) ) * + 45
----
-1080

query I rowsort
SELECT 93 + 31 + 38 AS col0
----
162

query II rowsort
SELECT ALL - - 63 AS col2, 63 AS col2
----
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT - COALESCE ( + 75, + 81 + - COUNT( * ) + - COALESCE ( - 8, - 73, 54 + + + 41 * + 56 ) * 90, + 62 * - ( - 4 ) + + 92 * + COALESCE ( - 15 * - 53 + 57, 97 ) ) + - 10
----
-85

skipif mysql # not compatible
query I rowsort label-6271
SELECT - COALESCE ( + 75, + 81 + - COUNT ( * ) + - COALESCE ( - 8, - 73, 54 + + + 41 * + 56 ) * 90, + 62 * - ( - 4 ) + + 92 * + COALESCE ( - 15 * - 53 + 57, 97 ) ) + - 10
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-6272
SELECT + 7 * 54 DIV + 9 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6272
SELECT + 7 * 54 / + 9 AS col0
----
42

query I rowsort
SELECT - 47 + 12
----
-35

query II rowsort
SELECT ALL - 93 * 39 AS col0, + 26 AS col1
----
-3627
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT - + 22 * - + 15 / - + COALESCE ( 48, + COUNT( * ), - 90 * - + 80 ) * CASE - + 28 WHEN - 61 + - + 43 + 42 / - 73 THEN NULL WHEN 44 - - 64 THEN 79 END * ( + COUNT( * ) ) + - 78 + - 30 * + COUNT( * ) + + 21 * ( - 65 / 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT - + 22 * - + 15 / - + COALESCE ( 48, + COUNT ( * ), - 90 * - + 80 ) * CASE - + 28 WHEN - 61 + - + 43 + 42 / - 73 THEN NULL WHEN 44 - - 64 THEN 79 END * ( + COUNT ( * ) ) + - 78 + - 30 * + COUNT ( * ) + + 21 * ( - 65 / 14 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6276
SELECT + + CAST( ( - CAST( NULL AS SIGNED ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6276
SELECT + + CAST ( ( - CAST ( NULL AS INTEGER ) ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT + - 55 * - + NULLIF ( - 36, 28 / + + MAX( ALL 67 ) + - COUNT( * ) ) AS col0
----
-1980

skipif mysql # not compatible
query I rowsort label-6277
SELECT + - 55 * - + NULLIF ( - 36, 28 / + + MAX ( ALL 67 ) + - COUNT ( * ) ) AS col0
----
-1980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6278
SELECT ALL - SUM( DISTINCT + + 8 ) * - 56 * + - 58 + COALESCE ( + 70, + 75 * + - 70 DIV 33 * + 90 + - 83 * - ( - ( - CASE ( 83 ) WHEN + ( + 40 ) + 82 * - 93 THEN COUNT( * ) + 35 ELSE NULL END ) ), 44 + + 21 )
----
-25914

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL - SUM ( DISTINCT + + 8 ) * - 56 * + - 58 + COALESCE ( + 70, + 75 * + - 70 / 33 * + 90 + - 83 * - ( - ( - CASE ( 83 ) WHEN + ( + 40 ) + 82 * - 93 THEN COUNT ( * ) + 35 ELSE NULL END ) ), 44 + + 21 )
----
-25914

query II rowsort
SELECT + 44, + 69 AS col2
----
44
69

query I rowsort
SELECT DISTINCT 39 * - 39 + - + 12 - - 72 + - + 86 + - 29 * + - 11
----
-1228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6281
SELECT + + CAST( - + COUNT( * ) AS SIGNED ) + ( + + 29 ) + + - 81 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6281
SELECT + + CAST ( - + COUNT ( * ) AS INTEGER ) + ( + + 29 ) + + - 81 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT - SUM( CASE - 98 WHEN 20 + - 85 * + 3 THEN - 56 + + - 82 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT - SUM ( CASE - 98 WHEN 20 + - 85 * + 3 THEN - 56 + + - 82 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT DISTINCT ( - 45 ) * - COUNT( * ) + - - 45 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT ( - 45 ) * - COUNT ( * ) + - - 45 AS col0
----
90

query I rowsort
SELECT ALL 23 * - 65 + - - 17 AS col0
----
-1478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6285
SELECT + COALESCE ( CASE - + 63 WHEN + 9 + + - 90 THEN COUNT( * ) DIV + COUNT( * ) WHEN + + 48 THEN - 32 DIV 12 * + COUNT( * ) ELSE NULL END, + 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-6285
SELECT + COALESCE ( CASE - + 63 WHEN + 9 + + - 90 THEN COUNT ( * ) / + COUNT ( * ) WHEN + + 48 THEN - 32 / 12 * + COUNT ( * ) ELSE NULL END, + 84 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT ALL 58 * ( - COUNT( * ) )
----
-58

skipif mysql # not compatible
query I rowsort label-6286
SELECT ALL 58 * ( - COUNT ( * ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT - COALESCE ( + COUNT( * ), - + 99 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6287
SELECT - COALESCE ( + COUNT ( * ), - + 99 ) AS col1
----
-1

query I rowsort
SELECT ALL 34 * + + 86 AS col0
----
2924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6289
SELECT DISTINCT - 57 + - CASE + 86 WHEN ( - - CAST( 27 AS SIGNED ) ) THEN + 13 WHEN - 88 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT - 57 + - CASE + 86 WHEN ( - - CAST ( 27 AS INTEGER ) ) THEN + 13 WHEN - 88 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT DISTINCT 63 * - CASE 11 WHEN - 50 / COUNT( * ) * + - 62 THEN - + 10 + 25 * + + 33 WHEN + - 85 + AVG ( ALL - - 22 ) * 40 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT 63 * - CASE 11 WHEN - 50 / COUNT ( * ) * + - 62 THEN - + 10 + 25 * + + 33 WHEN + - 85 + AVG ( ALL - - 22 ) * 40 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT ALL MIN( + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL MIN ( + 45 )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6292
SELECT DISTINCT + 85 DIV + 51
----
1

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT + 85 / + 51
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6293
SELECT 94 * - ( - 91 ) + 95 + + + ( 89 ) + + CAST( NULL AS SIGNED ) * - + 25 * + 42 * - COUNT( * ) * + 98 * + 93 + SUM( NULLIF ( 94, 73 ) ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-6293
SELECT 94 * - ( - 91 ) + 95 + + + ( 89 ) + + CAST ( NULL AS INTEGER ) * - + 25 * + 42 * - COUNT ( * ) * + 98 * + 93 + SUM ( NULLIF ( 94, 73 ) ) * + 57
----
NULL

query I rowsort
SELECT - 86 + 62
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-6295
SELECT ALL MAX( DISTINCT + 65 ) AS col1, + 13 * 34
----
65
442

skipif mysql # not compatible
query II rowsort label-6295
SELECT ALL MAX ( DISTINCT + 65 ) AS col1, + 13 * 34
----
65
442

query II rowsort
SELECT - ( 7 ) AS col1, - 64
----
-7
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT - 80 + - + 48 + 49 * - 83 * - 3 * - MAX( DISTINCT 34 ) * - CASE + ( 91 ) WHEN + 41 + - 29 THEN NULL WHEN - COUNT( * ) + 78 THEN NULL ELSE 30 END + + MIN( + 43 ) AS col2
----
12444935

skipif mysql # not compatible
query I rowsort label-6297
SELECT - 80 + - + 48 + 49 * - 83 * - 3 * - MAX ( DISTINCT 34 ) * - CASE + ( 91 ) WHEN + 41 + - 29 THEN NULL WHEN - COUNT ( * ) + 78 THEN NULL ELSE 30 END + + MIN ( + 43 ) AS col2
----
12444935

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT ALL CASE - COUNT( * ) WHEN COUNT( * ) + - 17 * ( + 45 ) THEN - - 7 / + 70 WHEN + 59 * - 63 * + + 75 * + + 30 + - 50 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL CASE - COUNT ( * ) WHEN COUNT ( * ) + - 17 * ( + 45 ) THEN - - 7 / + 70 WHEN + 59 * - 63 * + + 75 * + + 30 + - 50 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6299
SELECT ALL - 4 * + COALESCE ( - 53, - - MAX( + 49 ) * - MIN( 22 ) + COALESCE ( - 58, - + ( - 4 ), 53, - 82 * 25 + - COUNT( * ) ) DIV COUNT( * ) ) AS col1
----
212

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL - 4 * + COALESCE ( - 53, - - MAX ( + 49 ) * - MIN ( 22 ) + COALESCE ( - 58, - + ( - 4 ), 53, - 82 * 25 + - COUNT ( * ) ) / COUNT ( * ) ) AS col1
----
212

query I rowsort
SELECT - 26 * + COALESCE ( ( - + 42 ), 74 - 80 + - 25 * ( - + 71 ), + 60 + + 71 + - - 32, + 31 )
----
1092

query I rowsort
SELECT - 44 * - - 68 AS col2
----
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT DISTINCT 50 * NULLIF ( + 69, 27 * COUNT( * ) )
----
3450

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT 50 * NULLIF ( + 69, 27 * COUNT ( * ) )
----
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - - NULLIF ( 42, 83 ) * - - COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-6303
SELECT - - NULLIF ( 42, 83 ) * - - COUNT ( * ) AS col2
----
42

query I rowsort
SELECT ALL + 5 * + 26 AS col1
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT + + 83 - + 21 DIV 82 + - 86
----
-3

skipif mysql # not compatible
query I rowsort label-6305
SELECT + + 83 - + 21 / 82 + - 86
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6306
SELECT COALESCE ( 31, - 10 * + - 53 + + 64 * 39 DIV + 3, + CAST( NULL AS SIGNED ) * 9 )
----
31

skipif mysql # not compatible
query I rowsort label-6306
SELECT COALESCE ( 31, - 10 * + - 53 + + 64 * 39 / + 3, + CAST ( NULL AS INTEGER ) * 9 )
----
31

query I rowsort
SELECT - 91 * 77 AS col0
----
-7007

query I rowsort
SELECT - + 33 * 33
----
-1089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6309
SELECT - + CASE 73 WHEN - ( - - COUNT( * ) ) * - 9 THEN - 54 + + 51 WHEN 71 THEN NULL ELSE + 53 END / CAST( NULL AS SIGNED ) / - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT - + CASE 73 WHEN - ( - - COUNT ( * ) ) * - 9 THEN - 54 + + 51 WHEN 71 THEN NULL ELSE + 53 END / CAST ( NULL AS INTEGER ) / - - 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6310
SELECT ALL + 62 DIV ( + 75 ) * + + 10 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL + 62 / ( + 75 ) * + + 10 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6311
SELECT ALL 36 DIV 58 + - 30 + - 49 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL 36 / 58 + - 30 + - 49 AS col0
----
-79

query I rowsort
SELECT DISTINCT 74 * 96 + - - 84 AS col2
----
7188

query I rowsort
SELECT ALL + 81 * ( - 73 ) * + 2 AS col2
----
-11826

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT DISTINCT - + COALESCE ( - 69, - - 74 + - CASE + AVG ( DISTINCT 71 ) WHEN 68 * - 29 THEN - 94 + + + SUM( ALL + 99 ) + + 16 * + 49 ELSE NULL END ) * - 33 + - 43 * - MAX( - 86 )
----
-5975

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT - + COALESCE ( - 69, - - 74 + - CASE + AVG ( DISTINCT 71 ) WHEN 68 * - 29 THEN - 94 + + + SUM ( ALL + 99 ) + + 16 * + 49 ELSE NULL END ) * - 33 + - 43 * - MAX ( - 86 )
----
-5975

query I rowsort
SELECT ALL + 9 * + 85 + + + 69 * 13 * + ( + 83 )
----
75216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6316
SELECT - 36 * + - 26 * - CAST( 0 AS SIGNED ) - + + 35 + - 63 * + + 74 + CAST( - 20 AS SIGNED ) AS col0
----
-4717

skipif mysql # not compatible
query I rowsort label-6316
SELECT - 36 * + - 26 * - CAST ( 0 AS INTEGER ) - + + 35 + - 63 * + + 74 + CAST ( - 20 AS INTEGER ) AS col0
----
-4717

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6317
SELECT + CAST( + 99 AS SIGNED ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-6317
SELECT + CAST ( + 99 AS INTEGER ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT 70 * - COUNT( * ) + + 25
----
-45

skipif mysql # not compatible
query I rowsort label-6318
SELECT 70 * - COUNT ( * ) + + 25
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6319
SELECT DISTINCT + 68 * - 83 + 3 + - CASE - 38 WHEN - 82 THEN - CAST( - 98 AS SIGNED ) END + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT + 68 * - 83 + 3 + - CASE - 38 WHEN - 82 THEN - CAST ( - 98 AS INTEGER ) END + + 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6320
SELECT CASE + CAST( NULL AS DECIMAL ) WHEN + COUNT( * ) THEN NULL ELSE + COUNT( - 22 ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6320
SELECT CASE + CAST ( NULL AS REAL ) WHEN + COUNT ( * ) THEN NULL ELSE + COUNT ( - 22 ) END AS col0
----
1

query I rowsort
SELECT + ( + 60 ) * + 95 - 92 AS col1
----
5608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6322
SELECT + ( + CASE 7 WHEN + CAST( NULL AS SIGNED ) THEN + + 66 * - AVG ( + 97 ) ELSE NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT + ( + CASE 7 WHEN + CAST ( NULL AS INTEGER ) THEN + + 66 * - AVG ( + 97 ) ELSE NULL END ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT NULLIF ( + 42, - MAX( DISTINCT - 84 ) + 43 + + 98 + 84 * 10 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-6323
SELECT NULLIF ( + 42, - MAX ( DISTINCT - 84 ) + 43 + + 98 + 84 * 10 ) AS col1
----
42

query I rowsort
SELECT + ( + 29 ) * 33 * 1 + - 4
----
953

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT COUNT( DISTINCT + 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6325
SELECT COUNT ( DISTINCT + 78 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6326
SELECT + COUNT( * ) + + - CAST( NULL AS SIGNED ) - - + 74 * - 9, 24 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-6326
SELECT + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) - - + 74 * - 9, 24 AS col0
----
NULL
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6327
SELECT DISTINCT COALESCE ( - 11, - + COUNT( + 43 ) ) * - COUNT( * ) * - - COALESCE ( 37, 33 DIV - + COALESCE ( - 32, AVG ( ALL - - 5 ) + + 68 + + 1, 47 ) ) AS col2
----
407

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT COALESCE ( - 11, - + COUNT ( + 43 ) ) * - COUNT ( * ) * - - COALESCE ( 37, 33 / - + COALESCE ( - 32, AVG ( ALL - - 5 ) + + 68 + + 1, 47 ) ) AS col2
----
407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6328
SELECT ALL COUNT( * ) / + 92 * + 66 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL COUNT ( * ) / + 92 * + 66 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 27 * + 27 AS col0
----
729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6330
SELECT ALL CASE + + CASE - + 92 WHEN + 98 * - NULLIF ( + - 56, + 63 * + + 59 - - 16 + + COUNT( * ) * + COALESCE ( AVG ( ALL + ( + 91 ) ), + 8 - 85 ) - - CAST( NULL AS SIGNED ) ) * 51 + - MAX( ALL 7 ) + 39 THEN + 9 / 11 + 68 WHEN 51 - + 68 THEN 96 ELSE NULL END WHEN 18 * 84 THEN - 78 + COUNT( * ) WHEN 66 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL CASE + + CASE - + 92 WHEN + 98 * - NULLIF ( + - 56, + 63 * + + 59 - - 16 + + COUNT ( * ) * + COALESCE ( AVG ( ALL + ( + 91 ) ), + 8 - 85 ) - - CAST ( NULL AS INTEGER ) ) * 51 + - MAX ( ALL 7 ) + 39 THEN + 9 / 11 + 68 WHEN 51 - + 68 THEN 96 ELSE NULL END WHEN 18 * 84 THEN - 78 + COUNT ( * ) WHEN 66 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 57, + 89 + 88 + - 19 + 23 ) AS col1
----
-57

query I rowsort
SELECT + 2 + - 36 AS col1
----
-34

query II rowsort
SELECT - 50, 52 * + 64 AS col1
----
-50
3328

query I rowsort
SELECT 2 + - 75
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT ALL COUNT( DISTINCT + NULLIF ( + 57, - 9 ) ) + + 69 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL COUNT ( DISTINCT + NULLIF ( + 57, - 9 ) ) + + 69 AS col1
----
70

query I rowsort
SELECT - 42 + 55 AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6337
SELECT ALL - COUNT( * ) + - + NULLIF ( 7, + CASE + NULLIF ( - 43, 16 ) WHEN + ( - CASE + 42 WHEN 7 * + 65 THEN + 30 END ) THEN + 23 ELSE - MIN( DISTINCT + 57 ) + - 58 END DIV + 59 ) DIV 93
----
-1

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL - COUNT ( * ) + - + NULLIF ( 7, + CASE + NULLIF ( - 43, 16 ) WHEN + ( - CASE + 42 WHEN 7 * + 65 THEN + 30 END ) THEN + 23 ELSE - MIN ( DISTINCT + 57 ) + - 58 END / + 59 ) / 93
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6338
SELECT 25 + - - 40 - - COALESCE ( COALESCE ( 33, - 94 * - 81 + + + COALESCE ( SUM( DISTINCT - NULLIF ( 10, - 93 * 32 ) ), 68 + + 71 DIV 35 ) * + 18 ), + 50 + - 48 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6338
SELECT 25 + - - 40 - - COALESCE ( COALESCE ( 33, - 94 * - 81 + + + COALESCE ( SUM ( DISTINCT - NULLIF ( 10, - 93 * 32 ) ), 68 + + 71 / 35 ) * + 18 ), + 50 + - 48 ) AS col0
----
98

query I rowsort
SELECT ALL - - 92 + - 79 * 76 + + 58
----
-5854

onlyif mysql # DIV for integer division: 
query I rowsort label-6340
SELECT + ( - - 42 ) DIV - + ( + 58 ) + + - 43 + + 87 + + 74
----
118

skipif mysql # not compatible
query I rowsort label-6340
SELECT + ( - - 42 ) / - + ( + 58 ) + + - 43 + + 87 + + 74
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT 4 * - 42 + - MAX( ALL - 86 ) * - 47
----
-4210

skipif mysql # not compatible
query I rowsort label-6341
SELECT 4 * - 42 + - MAX ( ALL - 86 ) * - 47
----
-4210

query I rowsort
SELECT - 1 * + + 71
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-6343
SELECT ALL - 91 AS col2, COALESCE ( - - 85, - COUNT( * ) * - MIN( DISTINCT 78 ) + 61, + NULLIF ( + 20, - 47 * - 49 ) + - MAX( ALL 57 ) + - COUNT( * ) ) AS col1
----
-91
85

skipif mysql # not compatible
query II rowsort label-6343
SELECT ALL - 91 AS col2, COALESCE ( - - 85, - COUNT ( * ) * - MIN ( DISTINCT 78 ) + 61, + NULLIF ( + 20, - 47 * - 49 ) + - MAX ( ALL 57 ) + - COUNT ( * ) ) AS col1
----
-91
85

query I rowsort
SELECT 94 + ( 81 ) AS col0
----
175

onlyif mysql # aggregate syntax: 
query II rowsort label-6345
SELECT ALL - 53 AS col1, MIN( DISTINCT - 33 ) AS col1
----
-53
-33

skipif mysql # not compatible
query II rowsort label-6345
SELECT ALL - 53 AS col1, MIN ( DISTINCT - 33 ) AS col1
----
-53
-33

query I rowsort
SELECT ALL + 39 - + 73
----
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-6347
SELECT ALL - 12 DIV 18, + 54 - - 25 AS col0
----
0
79

skipif mysql # not compatible
query II rowsort label-6347
SELECT ALL - 12 / 18, + 54 - - 25 AS col0
----
0
79

query I rowsort
SELECT ALL 5 * + 88
----
440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6349
SELECT DISTINCT - 94 DIV + 87 AS col0, + 53 + - - 8 + - COUNT( * )
----
-1
60

skipif mysql # not compatible
query II rowsort label-6349
SELECT DISTINCT - 94 / + 87 AS col0, + 53 + - - 8 + - COUNT ( * )
----
-1
60

query I rowsort
SELECT ALL + 39 - - 53 + 76 + - 9
----
159

query I rowsort
SELECT 67 * - - 92
----
6164

query I rowsort
SELECT DISTINCT + 21 * + 63
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT DISTINCT + 22 * - + COUNT( * ) * + - COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT + 22 * - + COUNT ( * ) * + - COUNT ( * ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-6354
SELECT 78 * + + COUNT( * ), NULLIF ( + CASE - 32 WHEN + 93 * 49 - + 50 THEN NULL WHEN 32 THEN + - 30 / 75 * + - 38 + + COUNT( * ) END, - 61 ) AS col2
----
78
NULL

skipif mysql # not compatible
query II rowsort label-6354
SELECT 78 * + + COUNT ( * ), NULLIF ( + CASE - 32 WHEN + 93 * 49 - + 50 THEN NULL WHEN 32 THEN + - 30 / 75 * + - 38 + + COUNT ( * ) END, - 61 ) AS col2
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT MIN( DISTINCT - - 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6355
SELECT MIN ( DISTINCT - - 51 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT SUM( ALL + - 41 ) + 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6356
SELECT SUM ( ALL + - 41 ) + 41 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT DISTINCT 70 + 20 + - 36 * - + COUNT( * ) + + 59
----
185

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT 70 + 20 + - 36 * - + COUNT ( * ) + + 59
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT DISTINCT ( + + COUNT( - 15 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT ( + + COUNT ( - 15 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6359
SELECT DISTINCT - + COUNT( * ) DIV + 27 col0
----
0

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT - + COUNT ( * ) / + 27 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6360
SELECT 40 * + + CAST( NULL AS SIGNED ) + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6360
SELECT 40 * + + CAST ( NULL AS INTEGER ) + - 98
----
NULL

query I rowsort
SELECT ALL - 70 + + 47 AS col1
----
-23

query I rowsort
SELECT 27 - 10 + 1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6363
SELECT + COUNT( ALL + - 33 ), 16 DIV + 36 - + 77 AS col1
----
1
-77

skipif mysql # not compatible
query II rowsort label-6363
SELECT + COUNT ( ALL + - 33 ), 16 / + 36 - + 77 AS col1
----
1
-77

query I rowsort
SELECT 19 * 81 * + 54
----
83106

query I rowsort
SELECT 71 * + 98 * 77 - + 64 AS col1
----
535702

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT DISTINCT - 98 * + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT - 98 * + COUNT ( * )
----
-98

query I rowsort
SELECT DISTINCT 41 * 24 AS col1
----
984

query I rowsort
SELECT ALL 75 * + 39 * - NULLIF ( - - 59, - + 97 * + + 91 )
----
-172575

query I rowsort
SELECT 67 * + + 70
----
4690

query I rowsort
SELECT 2 * - + 38
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT + 16 * COUNT( 9 ) + + + 48
----
64

skipif mysql # not compatible
query I rowsort label-6371
SELECT + 16 * COUNT ( 9 ) + + + 48
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT ALL - COALESCE ( ( 47 ), + COUNT( * ) )
----
-47

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL - COALESCE ( ( 47 ), + COUNT ( * ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT COUNT( * ) * 78 + 92
----
170

skipif mysql # not compatible
query I rowsort label-6373
SELECT COUNT ( * ) * 78 + 92
----
170

query I rowsort
SELECT 92 * - 17 AS col0
----
-1564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6375
SELECT 95 + CASE WHEN NULL NOT BETWEEN - 43 AND + + NULLIF ( 0, - 58 ) + + - 78 THEN COUNT( * ) + - + COALESCE ( - 41, + - CAST( NULL AS SIGNED ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT 95 + CASE WHEN NULL NOT BETWEEN - 43 AND + + NULLIF ( 0, - 58 ) + + - 78 THEN COUNT ( * ) + - + COALESCE ( - 41, + - CAST ( NULL AS INTEGER ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT ALL - 36 * + CASE - + COUNT( * ) WHEN - COALESCE ( + ( 34 ), 64 * - 42 * - 34 ) THEN - 15 WHEN 8 / - - NULLIF ( 58, - 36 * 9 + 99 ) + ( 73 ) THEN NULL WHEN 38 + - 61 THEN - 25 ELSE + MIN( - 42 ) + 84 END * 60 AS col1
----
-90720

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL - 36 * + CASE - + COUNT ( * ) WHEN - COALESCE ( + ( 34 ), 64 * - 42 * - 34 ) THEN - 15 WHEN 8 / - - NULLIF ( 58, - 36 * 9 + 99 ) + ( 73 ) THEN NULL WHEN 38 + - 61 THEN - 25 ELSE + MIN ( - 42 ) + 84 END * 60 AS col1
----
-90720

query I rowsort
SELECT 92 * + + 5 * 24 AS col2
----
11040

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT ALL - COUNT( * ) * - 34 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL - COUNT ( * ) * - 34 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT DISTINCT SUM( + 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT SUM ( + 97 ) AS col1
----
97

query I rowsort
SELECT - 85 - - + 43 - 17 AS col0
----
-59

query I rowsort
SELECT ALL - 26 + + 71 AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT - - CAST( NULL AS SIGNED ) * - - 74 / + - 21 * 45 * + - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6382
SELECT - - CAST ( NULL AS INTEGER ) * - - 74 / + - 21 * 45 * + - 62 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6383
SELECT - CASE + COUNT( * ) WHEN + 88 THEN + COALESCE ( + 90, + ( + - 51 ) + + + SUM( 61 ) ) WHEN - 25 * - 24 * 45 * - + ( CAST( + CAST( 65 AS DECIMAL ) AS SIGNED ) ) + - 79 THEN NULL WHEN + ( 81 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6383
SELECT - CASE + COUNT ( * ) WHEN + 88 THEN + COALESCE ( + 90, + ( + - 51 ) + + + SUM ( 61 ) ) WHEN - 25 * - 24 * 45 * - + ( CAST ( + CAST ( 65 AS REAL ) AS INTEGER ) ) + - 79 THEN NULL WHEN + ( 81 ) THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6384
SELECT ALL - 35 + + 4 DIV - - COALESCE ( + 6, + 53 * + 50 * 72 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL - 35 + + 4 / - - COALESCE ( + 6, + 53 * + 50 * 72 ) AS col2
----
-35

query I rowsort
SELECT ALL - 66 + - 98 AS col0
----
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-6386
SELECT - 20 - 12 * NULLIF ( - 27, + 23 DIV - 61 ) DIV + 21 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-6386
SELECT - 20 - 12 * NULLIF ( - 27, + 23 / - 61 ) / + 21 AS col1
----
-5

query I rowsort
SELECT ALL + 74 + - 75
----
-1

query II rowsort
SELECT DISTINCT 13 AS col2, 13 col1
----
13
13

query I rowsort
SELECT - 0 + - 28
----
-28

query I rowsort
SELECT + + ( - 27 ) - - 54 AS col2
----
27

query I rowsort
SELECT - + 44 + - 52 col2
----
-96

query I rowsort
SELECT + - 39 - 95
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6393
SELECT + - 69 + CAST( + 12 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-6393
SELECT + - 69 + CAST ( + 12 AS INTEGER )
----
-57

query I rowsort
SELECT ALL + 58 - - 72 AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT ALL + 0 * - COALESCE ( + 12, + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL + 0 * - COALESCE ( + 12, + COUNT ( * ) ) AS col2
----
0

query I rowsort
SELECT ALL - 89 * 95 AS col1
----
-8455

query I rowsort
SELECT + 49 + + - 35 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-6398
SELECT DISTINCT + - CASE - + 40 WHEN MIN( DISTINCT - 14 ) THEN NULL ELSE NULLIF ( - + 20, + - COALESCE ( 46, COUNT( DISTINCT - 36 ) + - 4 ) - + 2 * - - COUNT( * ) ) END, 24 - - 23 AS col2
----
20
47

skipif mysql # not compatible
query II rowsort label-6398
SELECT DISTINCT + - CASE - + 40 WHEN MIN ( DISTINCT - 14 ) THEN NULL ELSE NULLIF ( - + 20, + - COALESCE ( 46, COUNT ( DISTINCT - 36 ) + - 4 ) - + 2 * - - COUNT ( * ) ) END, 24 - - 23 AS col2
----
20
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6399
SELECT DISTINCT + 56 * + CASE + 68 WHEN + + NULLIF ( - + 64, 58 ) THEN CAST( - 51 AS SIGNED ) * - - COUNT( * ) WHEN + ( + 60 ) + CASE + + COUNT( * ) WHEN 46 - - CASE - 12 WHEN MIN( ALL COALESCE ( 3, 13, + 60 + NULLIF ( 85, 39 * + 93 ) ) ) * + ( ( COUNT( * ) ) + - COUNT( * ) * + COUNT( * ) ) THEN 57 ELSE NULL END THEN + 72 * SUM( ALL + 48 ) WHEN 96 THEN 58 WHEN 54 THEN + COUNT( * ) * - 24 + AVG ( 52 ) ELSE COUNT( * ) END THEN + 49 WHEN 3 / 74 - 23 THEN 66 * COUNT( * ) END + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT + 56 * + CASE + 68 WHEN + + NULLIF ( - + 64, 58 ) THEN CAST ( - 51 AS INTEGER ) * - - COUNT ( * ) WHEN + ( + 60 ) + CASE + + COUNT ( * ) WHEN 46 - - CASE - 12 WHEN MIN ( ALL COALESCE ( 3, 13, + 60 + NULLIF ( 85, 39 * + 93 ) ) ) * + ( ( COUNT ( * ) ) + - COUNT ( * ) * + COUNT ( * ) ) THEN 57 ELSE NULL END THEN + 72 * SUM ( ALL + 48 ) WHEN 96 THEN 58 WHEN 54 THEN + COUNT ( * ) * - 24 + AVG ( 52 ) ELSE COUNT ( * ) END THEN + 49 WHEN 3 / 74 - 23 THEN 66 * COUNT ( * ) END + 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6400
SELECT + 13 * + 41 + - CASE + 23 WHEN - + 89 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + 7 * + - 14 / - MAX( + 6 ) * 87 * - - 71 + - ( + 73 ) * NULLIF ( 12, 62 ) * 79 THEN - 20 * + CAST( ( - 66 ) AS SIGNED ) ELSE 14 * + 12 END + - 95 col2
----
270

skipif mysql # not compatible
query I rowsort label-6400
SELECT + 13 * + 41 + - CASE + 23 WHEN - + 89 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 7 * + - 14 / - MAX ( + 6 ) * 87 * - - 71 + - ( + 73 ) * NULLIF ( 12, 62 ) * 79 THEN - 20 * + CAST ( ( - 66 ) AS INTEGER ) ELSE 14 * + 12 END + - 95 col2
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-6401
SELECT + 87 DIV 59
----
1

skipif mysql # not compatible
query I rowsort label-6401
SELECT + 87 / 59
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6402
SELECT DISTINCT + 38 AS col2, + 76 * + ( + 84 ) * CAST( + 84 AS SIGNED ) + + + 70 * + 14
----
38
537236

skipif mysql # not compatible
query II rowsort label-6402
SELECT DISTINCT + 38 AS col2, + 76 * + ( + 84 ) * CAST ( + 84 AS INTEGER ) + + + 70 * + 14
----
38
537236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6403
SELECT + 64 * 8 DIV + COUNT( * )
----
512

skipif mysql # not compatible
query I rowsort label-6403
SELECT + 64 * 8 / + COUNT ( * )
----
512

query III rowsort
SELECT DISTINCT + 54 AS col1, - 98 AS col1, - - 71 AS col2
----
54
-98
71

query I rowsort
SELECT + COALESCE ( + 22, - 37 ) AS col1
----
22

query I rowsort
SELECT + 28 * - 2 * - ( 38 )
----
2128

onlyif mysql # aggregate syntax: 
query II rowsort label-6407
SELECT ALL + CASE - 39 WHEN - 42 THEN + - COALESCE ( 11, + 38 + + 16 + 4, + COUNT( * ) ) END AS col0, COUNT( * ) + ( 9 )
----
NULL
10

skipif mysql # not compatible
query II rowsort label-6407
SELECT ALL + CASE - 39 WHEN - 42 THEN + - COALESCE ( 11, + 38 + + 16 + 4, + COUNT ( * ) ) END AS col0, COUNT ( * ) + ( 9 )
----
NULL
10

query I rowsort
SELECT ALL 86 * - - 40
----
3440

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT + COALESCE ( 10, 24, + - 8, MIN( ALL - + NULLIF ( - - ( + 4 ), + 58 ) ) + - 62 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6409
SELECT + COALESCE ( 10, 24, + - 8, MIN ( ALL - + NULLIF ( - - ( + 4 ), + 58 ) ) + - 62 ) AS col0
----
10

query II rowsort
SELECT + 45, + 8 * 39 AS col0
----
45
312

query II rowsort
SELECT + 62 + + 57 + 5 + + 91 * 88 * + 99 AS col1, + 26
----
792916
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6412
SELECT COUNT( + 43 ) AS col2, - NULLIF ( 56, COUNT( * ) )
----
1
-56

skipif mysql # not compatible
query II rowsort label-6412
SELECT COUNT ( + 43 ) AS col2, - NULLIF ( 56, COUNT ( * ) )
----
1
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT DISTINCT MIN( + 65 ) * + - 15 AS col1
----
-975

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT MIN ( + 65 ) * + - 15 AS col1
----
-975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT - CAST( - 75 AS SIGNED ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6414
SELECT - CAST ( - 75 AS INTEGER ) AS col1
----
75

query II rowsort
SELECT ALL 2 col2, + 12 AS col0
----
2
12

query I rowsort
SELECT DISTINCT + - 16 * - + 46 * - 86 + - 55
----
-63351

query I rowsort
SELECT - 18 + + ( + - 71 )
----
-89

query I rowsort
SELECT DISTINCT - + 61 + - 27 AS col2
----
-88

query II rowsort
SELECT - + 33 AS col0, 31
----
-33
31

query I rowsort
SELECT - 31 + + - 59
----
-90

query II rowsort
SELECT - - 79 AS col0, 95 AS col0
----
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT + MAX( + ( COALESCE ( - 91, - - 86 ) ) )
----
-91

skipif mysql # not compatible
query I rowsort label-6422
SELECT + MAX ( + ( COALESCE ( - 91, - - 86 ) ) )
----
-91

query I rowsort
SELECT - + 48 * - COALESCE ( + - 94, + + 86 )
----
-4512

onlyif mysql # DIV for integer division: 
query I rowsort label-6424
SELECT - 88 DIV - 88
----
1

skipif mysql # not compatible
query I rowsort label-6424
SELECT - 88 / - 88
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT DISTINCT - - 35 * + SUM( ALL + 8 )
----
280

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT - - 35 * + SUM ( ALL + 8 )
----
280

query I rowsort
SELECT DISTINCT + - 73 - + 13
----
-86

query I rowsort
SELECT - ( + 28 ) col0
----
-28

query I rowsort
SELECT DISTINCT - - ( + - 18 ) * + 31 * 95
----
-53010

query II rowsort
SELECT DISTINCT 37 col1, + 97 col1
----
37
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT + SUM( DISTINCT ( - 40 ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-6430
SELECT + SUM ( DISTINCT ( - 40 ) ) AS col0
----
-40

query I rowsort
SELECT - 82 - 83
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-6432
SELECT - COUNT( * ) * - 29 col2, + ( + 48 )
----
29
48

skipif mysql # not compatible
query II rowsort label-6432
SELECT - COUNT ( * ) * - 29 col2, + ( + 48 )
----
29
48

query II rowsort
SELECT + ( + 49 ), - 22 + - 97 + + - 58 col0
----
49
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT DISTINCT + COALESCE ( - MIN( ALL - 15 ), 45 + + 38 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT + COALESCE ( - MIN ( ALL - 15 ), 45 + + 38 ) AS col2
----
15

query I rowsort
SELECT - ( 20 ) * - 9
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6436
SELECT + NULLIF ( - COALESCE ( + 13, 71 + 73 DIV + - MAX( + 41 ) ), + + COUNT( * ) ) AS col2, + 60 * - - 96
----
-13
5760

skipif mysql # not compatible
query II rowsort label-6436
SELECT + NULLIF ( - COALESCE ( + 13, 71 + 73 / + - MAX ( + 41 ) ), + + COUNT ( * ) ) AS col2, + 60 * - - 96
----
-13
5760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6437
SELECT ALL 2 DIV 55 + - + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL 2 / 55 + - + COUNT ( * ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6438
SELECT DISTINCT MAX( 14 ) DIV MIN( DISTINCT + 77 ) + + SUM( DISTINCT 84 )
----
84

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT MAX ( 14 ) / MIN ( DISTINCT + 77 ) + + SUM ( DISTINCT 84 )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6439
SELECT ALL + 78 DIV - NULLIF ( + COUNT( * ), + COALESCE ( - - NULLIF ( 18, - + 31 + 31 ), - 91, - COUNT( * ) * + - 51 + - COUNT( * ) + - 90 * + 77 ) + - + 67 ) * - COUNT( * ) + 30 + - 33 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL + 78 / - NULLIF ( + COUNT ( * ), + COALESCE ( - - NULLIF ( 18, - + 31 + 31 ), - 91, - COUNT ( * ) * + - 51 + - COUNT ( * ) + - 90 * + 77 ) + - + 67 ) * - COUNT ( * ) + 30 + - 33 AS col2
----
75

query I rowsort
SELECT DISTINCT 45 * - - 4 * + 15
----
2700

query II rowsort
SELECT ALL ( - 17 ) + 1, - 71 AS col0
----
-16
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6442
SELECT CAST( NULL AS SIGNED ) * - 61, + 9 - + COUNT( * ) AS col0
----
NULL
8

skipif mysql # not compatible
query II rowsort label-6442
SELECT CAST ( NULL AS INTEGER ) * - 61, + 9 - + COUNT ( * ) AS col0
----
NULL
8

onlyif mysql # DIV for integer division: 
query II rowsort label-6443
SELECT ( + - 61 ) + - 35 AS col1, + 82 DIV + 95 AS col1
----
-96
0

skipif mysql # not compatible
query II rowsort label-6443
SELECT ( + - 61 ) + - 35 AS col1, + 82 / + 95 AS col1
----
-96
0

query II rowsort
SELECT DISTINCT 67 * + 35 col2, 12 + + 72
----
2345
84

query I rowsort
SELECT ALL ( - 5 ) + + 97 AS col1
----
92

query I rowsort
SELECT 80 * + 82 + + 75 + + 87
----
6722

onlyif mysql # aggregate syntax: 
query II rowsort label-6447
SELECT SUM( - 24 ) AS col2, COUNT( * ) * 99 col2
----
-24
99

skipif mysql # not compatible
query II rowsort label-6447
SELECT SUM ( - 24 ) AS col2, COUNT ( * ) * 99 col2
----
-24
99

query I rowsort
SELECT + 59 * + - 43 + - NULLIF ( + 94, - - 80 - + - 16 )
----
-2631

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL - MIN( 89 ) * - COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL - MIN ( 89 ) * - COUNT ( * ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT - SUM( - 73 ) - 96 + + COUNT( * ) * + + 84
----
61

skipif mysql # not compatible
query I rowsort label-6450
SELECT - SUM ( - 73 ) - 96 + + COUNT ( * ) * + + 84
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6451
SELECT ALL 65 * + CAST( + SUM( DISTINCT + - 4 ) AS SIGNED ) AS col1
----
-260

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL 65 * + CAST ( + SUM ( DISTINCT + - 4 ) AS INTEGER ) AS col1
----
-260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6452
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) AS col2, COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-6452
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) AS col2, COUNT ( * ) AS col0
----
-1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6453
SELECT DISTINCT + COUNT( ALL - + 52 ) AS col2, + 23 AS col2
----
1
23

skipif mysql # not compatible
query II rowsort label-6453
SELECT DISTINCT + COUNT ( ALL - + 52 ) AS col2, + 23 AS col2
----
1
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT 63 DIV + 29 - + - 7
----
9

skipif mysql # not compatible
query I rowsort label-6454
SELECT 63 / + 29 - + - 7
----
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6455
SELECT + CAST( - 64 AS DECIMAL ) / 77 * 2 + - + 19 + + 96 * + 68 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT + CAST ( - 64 AS REAL ) / 77 * 2 + - + 19 + + 96 * + 68 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6456
SELECT ALL + - 78 * + 34 col2, COUNT( * )
----
-2652
1

skipif mysql # not compatible
query II rowsort label-6456
SELECT ALL + - 78 * + 34 col2, COUNT ( * )
----
-2652
1

query I rowsort
SELECT 15 * - ( - 69 ) AS col0
----
1035

query I rowsort
SELECT 86 + - 44 AS col1
----
42

query I rowsort
SELECT 5 * - - 21
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6460
SELECT ALL + CAST( NULL AS SIGNED ) + - 76 + + 32 / + CASE 92 WHEN + - 69 THEN + 99 + + + COALESCE ( - 47, 0 ) END * + - SUM( - 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL + CAST ( NULL AS INTEGER ) + - 76 + + 32 / + CASE 92 WHEN + - 69 THEN + 99 + + + COALESCE ( - 47, 0 ) END * + - SUM ( - 59 )
----
NULL

query I rowsort
SELECT 11 + + + 60
----
71

query I rowsort
SELECT ALL + 77 * - - 95 * + 12 AS col1
----
87780

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6463
SELECT + 23 col2, CAST( NULL AS SIGNED ) * + - 63
----
23
NULL

skipif mysql # not compatible
query II rowsort label-6463
SELECT + 23 col2, CAST ( NULL AS INTEGER ) * + - 63
----
23
NULL

query I rowsort
SELECT 95 * - 1 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT ALL - COUNT( ALL 3 ) + + - 68 * + 11 * + 86 - + 70 AS col2
----
-64399

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL - COUNT ( ALL 3 ) + + - 68 * + 11 * + 86 - + 70 AS col2
----
-64399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6466
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - COALESCE ( + MIN( + ( - + 24 ) ), + 35 * 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6466
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - COALESCE ( + MIN ( + ( - + 24 ) ), + 35 * 40 )
----
NULL

query I rowsort
SELECT 20 * 14 AS col2
----
280

query I rowsort
SELECT ALL - 87 + - 97
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT ALL 85 - COUNT( * ) * - 40 * + CASE - 26 WHEN - 82 / + + 75 + + COUNT( - 41 ) + 10 + + 64 + - 22 - + 82 / + - 50 + + - 60 + - - 91 + 80 * + 55 * + 77 THEN 9 * - 10 + + 65 WHEN + 94 * ( + ( - 9 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL 85 - COUNT ( * ) * - 40 * + CASE - 26 WHEN - 82 / + + 75 + + COUNT ( - 41 ) + 10 + + 64 + - 22 - + 82 / + - 50 + + - 60 + - - 91 + 80 * + 55 * + 77 THEN 9 * - 10 + + 65 WHEN + 94 * ( + ( - 9 ) ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT + 91 * - COUNT( * ) * - COUNT( * ) * - + 67 * - 92 AS col1
----
560924

skipif mysql # not compatible
query I rowsort label-6470
SELECT + 91 * - COUNT ( * ) * - COUNT ( * ) * - + 67 * - 92 AS col1
----
560924

onlyif mysql # DIV for integer division: 
query I rowsort label-6471
SELECT DISTINCT 65 * 95 * 23 DIV + 49 AS col2
----
2898

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT 65 * 95 * 23 / + 49 AS col2
----
2898

onlyif mysql # DIV for integer division: 
query I rowsort label-6472
SELECT + 43 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-6472
SELECT + 43 / + 67
----
0

query I rowsort
SELECT 60 * - 45 AS col1
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT - 27 * COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-6474
SELECT - 27 * COUNT ( * ) AS col1
----
-27

query I rowsort
SELECT + 2 * + - 11 + + - 32 + + 41 * 23
----
889

query I rowsort
SELECT DISTINCT ( - COALESCE ( 50, - 90 ) ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-6477
SELECT ALL + 71 * + COUNT( * ) * + MIN( DISTINCT - 89 ) + - + NULLIF ( + SUM( DISTINCT - - 35 ), - 60 * 77 + + + 30 ) + + 96 AS col0, - ( - + 45 ) * + - NULLIF ( + 17, + 88 * + MIN( - + 41 ) - 36 ) AS col1
----
-6258
-765

skipif mysql # not compatible
query II rowsort label-6477
SELECT ALL + 71 * + COUNT ( * ) * + MIN ( DISTINCT - 89 ) + - + NULLIF ( + SUM ( DISTINCT - - 35 ), - 60 * 77 + + + 30 ) + + 96 AS col0, - ( - + 45 ) * + - NULLIF ( + 17, + 88 * + MIN ( - + 41 ) - 36 ) AS col1
----
-6258
-765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6478
SELECT CAST( NULL AS SIGNED ) + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6478
SELECT CAST ( NULL AS INTEGER ) + - 38
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6479
SELECT DISTINCT 5 AS col0, - COALESCE ( + + SUM( ALL 72 ), + 11 )
----
5
-72

skipif mysql # not compatible
query II rowsort label-6479
SELECT DISTINCT 5 AS col0, - COALESCE ( + + SUM ( ALL 72 ), + 11 )
----
5
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-6480
SELECT + 60 AS col1, SUM( ALL + + 56 )
----
60
56

skipif mysql # not compatible
query II rowsort label-6480
SELECT + 60 AS col1, SUM ( ALL + + 56 )
----
60
56

query II rowsort
SELECT - + 42 AS col2, - 2 * + 1 * + 75 - - 85
----
-42
-65

query I rowsort
SELECT 88 * + - 37 + + 4
----
-3252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6483
SELECT DISTINCT - COUNT( * ) + + CASE COUNT( * ) WHEN - 95 DIV - + 15 THEN - - 73 * + 15 WHEN - 35 * - 64 * 35 THEN + 57 - + 72 * + 90 + + 89 * + 75 - + COUNT( * ) ELSE 20 + - 46 * + 99 END DIV ( - COUNT( * ) ) AS col1
----
4533

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT - COUNT ( * ) + + CASE COUNT ( * ) WHEN - 95 / - + 15 THEN - - 73 * + 15 WHEN - 35 * - 64 * 35 THEN + 57 - + 72 * + 90 + + 89 * + 75 - + COUNT ( * ) ELSE 20 + - 46 * + 99 END / ( - COUNT ( * ) ) AS col1
----
4533

query I rowsort
SELECT DISTINCT 76 + + + 0
----
76

query I rowsort
SELECT - NULLIF ( - 55, - 86 / + 26 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6486
SELECT ALL - CAST( NULL AS SIGNED ) + - 72 * - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL - CAST ( NULL AS INTEGER ) + - 72 * - 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT 11 * COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-6487
SELECT 11 * COUNT ( * )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6488
SELECT - 57 DIV + + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6488
SELECT - 57 / + + 66 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6489
SELECT ALL - COUNT( * ) + CAST( - CASE 99 WHEN - 31 THEN - - 11 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL - COUNT ( * ) + CAST ( - CASE 99 WHEN - 31 THEN - - 11 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT + 69 - + - 76 AS col2
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6491
SELECT - 75 * 80, 25 * + + 47 * CASE + + 52 WHEN - + 61 + - 47 - - 46 / - - 62 * + + 90 THEN NULL WHEN 63 * + ( + CAST( + 26 AS SIGNED ) ) THEN + - 71 * - 19 ELSE NULL END * 26 AS col0
----
-6000
NULL

skipif mysql # not compatible
query II rowsort label-6491
SELECT - 75 * 80, 25 * + + 47 * CASE + + 52 WHEN - + 61 + - 47 - - 46 / - - 62 * + + 90 THEN NULL WHEN 63 * + ( + CAST ( + 26 AS INTEGER ) ) THEN + - 71 * - 19 ELSE NULL END * 26 AS col0
----
-6000
NULL

query II rowsort
SELECT + 45 - + 22 col1, 21 AS col2
----
23
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6493
SELECT COALESCE ( + 99, - ( - ( - 78 ) ) * + CAST( + 42 AS SIGNED ) ) AS col2, 4 AS col1
----
99
4

skipif mysql # not compatible
query II rowsort label-6493
SELECT COALESCE ( + 99, - ( - ( - 78 ) ) * + CAST ( + 42 AS INTEGER ) ) AS col2, 4 AS col1
----
99
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT DISTINCT + 53 * - 52 - COUNT( 60 ) AS col0
----
-2757

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT + 53 * - 52 - COUNT ( 60 ) AS col0
----
-2757

query I rowsort
SELECT - 79 * - + 3
----
237

onlyif mysql # aggregate syntax: 
query II rowsort label-6496
SELECT + ( - ( - 83 ) ) * 35, 76 * + COUNT( * ) col1
----
2905
76

skipif mysql # not compatible
query II rowsort label-6496
SELECT + ( - ( - 83 ) ) * 35, 76 * + COUNT ( * ) col1
----
2905
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6497
SELECT ALL - 66 DIV - 41 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL - 66 / - 41 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT - - SUM( ALL 13 ) * 91 * - 80 + - 84 + 87 col2
----
-94637

skipif mysql # not compatible
query I rowsort label-6498
SELECT - - SUM ( ALL 13 ) * 91 * - 80 + - 84 + 87 col2
----
-94637

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT - 55 + + MAX( - + 22 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-6499
SELECT - 55 + + MAX ( - + 22 ) AS col1
----
-77

query I rowsort
SELECT ALL + - 24 col1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6501
SELECT DISTINCT + CAST( - 79 AS SIGNED ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT + CAST ( - 79 AS INTEGER ) AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6502
SELECT - - COUNT( * ) DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-6502
SELECT - - COUNT ( * ) / + 31
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6503
SELECT ALL - COALESCE ( + + COUNT( + 8 ), + 96, - COUNT( * ) * - + NULLIF ( + - 4, + + 83 * - 28 + + COUNT( ALL - 86 ) * - 15 ), 81 ) DIV - 1 col0
----
1

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL - COALESCE ( + + COUNT ( + 8 ), + 96, - COUNT ( * ) * - + NULLIF ( + - 4, + + 83 * - 28 + + COUNT ( ALL - 86 ) * - 15 ), 81 ) / - 1 col0
----
1

query I rowsort
SELECT + + COALESCE ( 37, - 31 - + 99 ) AS col1
----
37

query I rowsort
SELECT DISTINCT - + COALESCE ( 67, - 71, - 81 + - 81 + + 20 ) * + 77
----
-5159

onlyif mysql # DIV for integer division: 
query I rowsort label-6506
SELECT - 44 DIV - 51 * - 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6506
SELECT - 44 / - 51 * - 6 AS col0
----
0

query I rowsort
SELECT + 27 * - - 92 + - 72 AS col0
----
2412

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6508
SELECT - - 59 + 52 * MAX( + + 91 ) * + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6508
SELECT - - 59 + 52 * MAX ( + + 91 ) * + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT ALL 10 + + - ( + - COUNT( * ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL 10 + + - ( + - COUNT ( * ) ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT - + CASE - - 9 WHEN + COUNT( * ) THEN - 1 ELSE NULL END / - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6510
SELECT - + CASE - - 9 WHEN + COUNT ( * ) THEN - 1 ELSE NULL END / - 9 AS col2
----
NULL

query II rowsort
SELECT + - 10 * 4 AS col0, - 99 * - 7 + 40 + 81 AS col1
----
-40
814

query II rowsort
SELECT 63 AS col1, + COALESCE ( - 66, - 52 )
----
63
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6513
SELECT ALL CAST( + 47 AS SIGNED ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL CAST ( + 47 AS INTEGER ) AS col0
----
47

query I rowsort
SELECT + 5 - - ( + 2 ) AS col2
----
7

query I rowsort
SELECT - NULLIF ( + 73, + + 29 ) col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT - ( SUM( + 6 ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6516
SELECT - ( SUM ( + 6 ) ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT ALL COUNT( - 42 ) + + 8 + - 33 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL COUNT ( - 42 ) + + 8 + - 33 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT + 69 + 40 + - MAX( DISTINCT + 86 )
----
23

skipif mysql # not compatible
query I rowsort label-6518
SELECT + 69 + 40 + - MAX ( DISTINCT + 86 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6519
SELECT + 45 + + 15 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6519
SELECT + 45 + + 15 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT ALL COUNT( + 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL COUNT ( + 89 ) AS col2
----
1

query I rowsort
SELECT + 22 + 87 col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT ALL COUNT( * ) - - MAX( DISTINCT 5 ) * - - 76 * + + 59 + + 64
----
22485

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL COUNT ( * ) - - MAX ( DISTINCT 5 ) * - - 76 * + + 59 + + 64
----
22485

query I rowsort
SELECT DISTINCT 86 * 38 AS col1
----
3268

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT + 98 + 63 * + COUNT( * )
----
161

skipif mysql # not compatible
query I rowsort label-6524
SELECT + 98 + 63 * + COUNT ( * )
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-6525
SELECT ALL 9 - - 83 DIV - 30
----
7

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL 9 - - 83 / - 30
----
7

query I rowsort
SELECT + 15 * - 37 AS col0
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT + COUNT( 75 ) + 66 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6527
SELECT + COUNT ( 75 ) + 66 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT + NULLIF ( + 3, - 64 * - 54 + + 50 * COUNT( * ) * 14 )
----
3

skipif mysql # not compatible
query I rowsort label-6528
SELECT + NULLIF ( + 3, - 64 * - 54 + + 50 * COUNT ( * ) * 14 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6529
SELECT COUNT( * ) * - 95 * + 62 + + + 4 * - 30 col2, 31 DIV - 78 AS col1
----
-6010
0

skipif mysql # not compatible
query II rowsort label-6529
SELECT COUNT ( * ) * - 95 * + 62 + + + 4 * - 30 col2, 31 / - 78 AS col1
----
-6010
0

query I rowsort
SELECT - 85 * 23 * + 66
----
-129030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6531
SELECT + 19 DIV + - 69 + 37 + - + 40 + + - SUM( - - 1 ) + - ( - 62 ) + + 20 * + MIN( DISTINCT + CASE + 66 WHEN - 9 THEN + - 28 WHEN - + 34 DIV 93 THEN NULL ELSE - + ( + 60 ) END ) + - ( - COALESCE ( - ( + CASE + ( + 85 ) WHEN + 44 * 9 THEN + 60 * - NULLIF ( COUNT( * ) * 41, - 33 + 23 ) END ), - 42 + - 31 ) ) DIV + 36
----
-1144

skipif mysql # not compatible
query I rowsort label-6531
SELECT + 19 / + - 69 + 37 + - + 40 + + - SUM ( - - 1 ) + - ( - 62 ) + + 20 * + MIN ( DISTINCT + CASE + 66 WHEN - 9 THEN + - 28 WHEN - + 34 / 93 THEN NULL ELSE - + ( + 60 ) END ) + - ( - COALESCE ( - ( + CASE + ( + 85 ) WHEN + 44 * 9 THEN + 60 * - NULLIF ( COUNT ( * ) * 41, - 33 + 23 ) END ), - 42 + - 31 ) ) / + 36
----
-1144

onlyif mysql # aggregate syntax: 
query II rowsort label-6532
SELECT + COUNT( + 48 ) * COUNT( DISTINCT + 85 ) + - ( + - 73 ) AS col0, 89 AS col0
----
74
89

skipif mysql # not compatible
query II rowsort label-6532
SELECT + COUNT ( + 48 ) * COUNT ( DISTINCT + 85 ) + - ( + - 73 ) AS col0, 89 AS col0
----
74
89

query II rowsort
SELECT + 97 AS col1, CASE + - 99 WHEN + 81 + + - 78 THEN + 41 * + 86 + - 40 WHEN + 19 THEN NULL END AS col0
----
97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6534
SELECT - - COUNT( * ) DIV 16 * - 31 * + - 17
----
0

skipif mysql # not compatible
query I rowsort label-6534
SELECT - - COUNT ( * ) / 16 * - 31 * + - 17
----
0

query I rowsort
SELECT ALL + + ( ( - 81 ) ) * + - 31
----
2511

onlyif mysql # aggregate syntax: 
query II rowsort label-6536
SELECT + + 90 + + 79 + + + 60, + COALESCE ( - 50, + - COUNT( * ) + + ( - 61 ), + 93 ) AS col2
----
229
-50

skipif mysql # not compatible
query II rowsort label-6536
SELECT + + 90 + + 79 + + + 60, + COALESCE ( - 50, + - COUNT ( * ) + + ( - 61 ), + 93 ) AS col2
----
229
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT DISTINCT ( + + 71 ) DIV 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT ( + + 71 ) / 77 AS col2
----
0

query II rowsort
SELECT + + 92 AS col2, + 80
----
92
80

query I rowsort
SELECT ALL + CASE + 5 WHEN - + ( 86 ) * + - AVG ( ALL - - 79 ) THEN - AVG ( DISTINCT 15 ) * - 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL + - NULLIF ( + + MAX( - - 6 ), 22 * + - 18 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL + - NULLIF ( + + MAX ( - - 6 ), 22 * + - 18 ) AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6541
SELECT ALL - ( - SUM( ALL - 17 ) ) DIV COUNT( * ) DIV - 49 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL - ( - SUM ( ALL - 17 ) ) / COUNT ( * ) / - 49 + - COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT + COALESCE ( - 77, - - 87 )
----
-77

query I rowsort
SELECT - NULLIF ( + 65, - 27 ) AS col0
----
-65

query I rowsort
SELECT ALL - 25 * - - 19 * + + 58 + - 68 AS col1
----
-27618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6545
SELECT - CAST( + ( + - CASE - CASE + + 91 WHEN - 15 THEN + COUNT( DISTINCT 74 ) + + + 53 ELSE NULL END WHEN - + 62 / + - 92 THEN + + COALESCE ( 31, 79, - - 22 ) END ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6545
SELECT - CAST ( + ( + - CASE - CASE + + 91 WHEN - 15 THEN + COUNT ( DISTINCT 74 ) + + + 53 ELSE NULL END WHEN - + 62 / + - 92 THEN + + COALESCE ( 31, 79, - - 22 ) END ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6546
SELECT ALL - 60 * + + CASE - CASE + 48 WHEN - COUNT( * ) / - NULLIF ( CASE + 59 WHEN + 45 THEN 18 - - COUNT( ALL 25 ) ELSE - 90 / - 55 - - CASE + 31 WHEN - 17 THEN - - CAST( NULL AS SIGNED ) ELSE NULL END * + 2 - - - COUNT( * ) END, 95 + + 85 ) * + 3 THEN MAX( + 51 ) WHEN - 86 THEN 9 + 84 WHEN + 10 THEN NULL END WHEN 11 - - 30 THEN NULL WHEN - 88 + + NULLIF ( 92 + 92 / + 13, ( + 89 ) * 36 ) THEN - 0 + + COUNT( * ) * AVG ( DISTINCT - 79 ) WHEN + 95 THEN + 70 + 15 END * + 60 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL - 60 * + + CASE - CASE + 48 WHEN - COUNT ( * ) / - NULLIF ( CASE + 59 WHEN + 45 THEN 18 - - COUNT ( ALL 25 ) ELSE - 90 / - 55 - - CASE + 31 WHEN - 17 THEN - - CAST ( NULL AS INTEGER ) ELSE NULL END * + 2 - - - COUNT ( * ) END, 95 + + 85 ) * + 3 THEN MAX ( + 51 ) WHEN - 86 THEN 9 + 84 WHEN + 10 THEN NULL END WHEN 11 - - 30 THEN NULL WHEN - 88 + + NULLIF ( 92 + 92 / + 13, ( + 89 ) * 36 ) THEN - 0 + + COUNT ( * ) * AVG ( DISTINCT - 79 ) WHEN + 95 THEN + 70 + 15 END * + 60 + + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL + 74, 6 * + - 29 * - + 79 + - + 67 col0
----
74
13679

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6548
SELECT - NULLIF ( + - 51, - COUNT( * ) ) * + 91 DIV + COUNT( * ) + 79 * + + 45 AS col2, + 30 AS col0
----
8196
30

skipif mysql # not compatible
query II rowsort label-6548
SELECT - NULLIF ( + - 51, - COUNT ( * ) ) * + 91 / + COUNT ( * ) + 79 * + + 45 AS col2, + 30 AS col0
----
8196
30

query II rowsort
SELECT - 5 AS col1, 70 + - 15 + 59 + - + 38
----
-5
76

query I rowsort
SELECT DISTINCT + 0 - - 34 AS col0
----
34

query I rowsort
SELECT 5 * - 70
----
-350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6552
SELECT ALL 16 AS col2, CAST( NULL AS SIGNED )
----
16
NULL

skipif mysql # not compatible
query II rowsort label-6552
SELECT ALL 16 AS col2, CAST ( NULL AS INTEGER )
----
16
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6553
SELECT DISTINCT ( 83 ) DIV - 58 + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT ( 83 ) / - 58 + + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6554
SELECT DISTINCT 21 AS col1, - 68 DIV + - 25 AS col1
----
21
2

skipif mysql # not compatible
query II rowsort label-6554
SELECT DISTINCT 21 AS col1, - 68 / + - 25 AS col1
----
21
2

onlyif mysql # DIV for integer division: 
query II rowsort label-6555
SELECT DISTINCT 75 AS col1, + 51 DIV - 88 AS col0
----
75
0

skipif mysql # not compatible
query II rowsort label-6555
SELECT DISTINCT 75 AS col1, + 51 / - 88 AS col0
----
75
0

query II rowsort
SELECT - 83 col1, 85
----
-83
85

onlyif mysql # DIV for integer division: 
query II rowsort label-6557
SELECT ALL 84 AS col1, 76 DIV 72
----
84
1

skipif mysql # not compatible
query II rowsort label-6557
SELECT ALL 84 AS col1, 76 / 72
----
84
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6558
SELECT 40 AS col0, 1 * - + COUNT( * ) - MAX( DISTINCT + 53 ) + + - 95 AS col2
----
40
-149

skipif mysql # not compatible
query II rowsort label-6558
SELECT 40 AS col0, 1 * - + COUNT ( * ) - MAX ( DISTINCT + 53 ) + + - 95 AS col2
----
40
-149

query I rowsort
SELECT 30 * - 21 col2
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT SUM( + 14 ) * - 16 AS col0
----
-224

skipif mysql # not compatible
query I rowsort label-6560
SELECT SUM ( + 14 ) * - 16 AS col0
----
-224

query I rowsort
SELECT DISTINCT 67 * + + 77 * 56 * 91 AS col1
----
26290264

query I rowsort
SELECT ALL 2 * + 97 * 96 AS col0
----
18624

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT ALL + + COALESCE ( + 65, - - 34, 11, - COUNT( + 14 ) * + 6 ) * - 93 * + + 98 * 49
----
-29028090

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL + + COALESCE ( + 65, - - 34, 11, - COUNT ( + 14 ) * + 6 ) * - 93 * + + 98 * 49
----
-29028090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6564
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( - + 89 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( - + 89 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6565
SELECT - 28 AS col0, ( + CAST( NULL AS SIGNED ) ) AS col1
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-6565
SELECT - 28 AS col0, ( + CAST ( NULL AS INTEGER ) ) AS col1
----
-28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL 20 + + - SUM( - 86 )
----
106

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL 20 + + - SUM ( - 86 )
----
106

query II rowsort
SELECT DISTINCT + 47 + 27 AS col1, 25
----
74
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6568
SELECT 25 DIV + - MIN( 99 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6568
SELECT 25 / + - MIN ( 99 ) AS col0
----
0

query I rowsort
SELECT ALL - 14 + + 40 AS col0
----
26

query I rowsort
SELECT - 86 * - 34 * + + 48
----
140352

onlyif mysql # aggregate syntax: 
query II rowsort label-6571
SELECT DISTINCT - - 61 AS col2, 94 * COUNT( * )
----
61
94

skipif mysql # not compatible
query II rowsort label-6571
SELECT DISTINCT - - 61 AS col2, 94 * COUNT ( * )
----
61
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6572
SELECT ALL - 23 DIV ( COUNT( * ) ) * + NULLIF ( - 98, - 28 + 76 + + NULLIF ( 74, 68 * - 64 * 84 * - 16 ) + 64 * - 25 * - 30 * - ( - 70 ) + - + COUNT( - 39 ) * - 89 )
----
2254

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL - 23 / ( COUNT ( * ) ) * + NULLIF ( - 98, - 28 + 76 + + NULLIF ( 74, 68 * - 64 * 84 * - 16 ) + 64 * - 25 * - 30 * - ( - 70 ) + - + COUNT ( - 39 ) * - 89 )
----
2254

query I rowsort
SELECT + 49 * - 87 + + + 67
----
-4196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6574
SELECT DISTINCT + + CAST( + NULLIF ( - - ( + - 44 ), + 28 / - - 96 / 92 * + + CASE + COUNT( * ) WHEN + + ( + + 83 ) + - COALESCE ( - + ( + 98 ), - - 50 + + 22 + + - 87 * - CASE - 72 WHEN + 53 * + ( 48 ) + 38 THEN - 4 + COALESCE ( ( - 22 ), - 32 + 69 * 3, CAST( NULL AS SIGNED ) ) END + 78 ) + 68 THEN NULL WHEN 32 * COUNT( * ) THEN COUNT( * ) * COUNT( * ) ELSE - 38 END + + 95 + ( + 48 ) ) AS DECIMAL ) + - ( ( 36 ) + - COUNT( ( + 59 ) - 16 ) / + CASE + 9 WHEN + 24 THEN NULL WHEN 96 THEN 27 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT + + CAST ( + NULLIF ( - - ( + - 44 ), + 28 / - - 96 / 92 * + + CASE + COUNT ( * ) WHEN + + ( + + 83 ) + - COALESCE ( - + ( + 98 ), - - 50 + + 22 + + - 87 * - CASE - 72 WHEN + 53 * + ( 48 ) + 38 THEN - 4 + COALESCE ( ( - 22 ), - 32 + 69 * 3, CAST ( NULL AS INTEGER ) ) END + 78 ) + 68 THEN NULL WHEN 32 * COUNT ( * ) THEN COUNT ( * ) * COUNT ( * ) ELSE - 38 END + + 95 + ( + 48 ) ) AS REAL ) + - ( ( 36 ) + - COUNT ( ( + 59 ) - 16 ) / + CASE + 9 WHEN + 24 THEN NULL WHEN 96 THEN 27 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6575
SELECT ALL - 79 + 55 AS col0, COUNT( * ) * - - 37 AS col0
----
-24
37

skipif mysql # not compatible
query II rowsort label-6575
SELECT ALL - 79 + 55 AS col0, COUNT ( * ) * - - 37 AS col0
----
-24
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL COUNT( * ) * - + 44 + - COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL COUNT ( * ) * - + 44 + - COUNT ( * ) AS col0
----
-45

query II rowsort
SELECT DISTINCT - + NULLIF ( + 11, + 29 / - - 77 + - 59 + 91 ), NULLIF ( 87, + 23 ) * 24 AS col1
----
-11
2088

query I rowsort
SELECT DISTINCT 50 + - ( 58 )
----
-8

query I rowsort
SELECT ALL + - ( 15 ) - + 4
----
-19

query I rowsort
SELECT ALL - COALESCE ( + + 30, - 46 ) AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6581
SELECT DISTINCT - CASE 59 WHEN + 69 * + COUNT( * ) THEN + 12 WHEN - 24 THEN + NULLIF ( - 46, + 73 * + NULLIF ( + 77, - CAST( NULL AS SIGNED ) * + + 80 + - 47 - 73 * + 26 / COUNT( * ) + + 95 + - - 78 ) - + 94 * 53 ) WHEN - + 47 THEN NULL WHEN + 49 THEN NULL ELSE + 77 END
----
-77

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT - CASE 59 WHEN + 69 * + COUNT ( * ) THEN + 12 WHEN - 24 THEN + NULLIF ( - 46, + 73 * + NULLIF ( + 77, - CAST ( NULL AS INTEGER ) * + + 80 + - 47 - 73 * + 26 / COUNT ( * ) + + 95 + - - 78 ) - + 94 * 53 ) WHEN - + 47 THEN NULL WHEN + 49 THEN NULL ELSE + 77 END
----
-77

query I rowsort
SELECT 14 * + ( 7 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT 50 * COALESCE ( ( 95 ), SUM( DISTINCT + + 99 ), + + ( 13 ) + MIN( - 4 ), + - 25 )
----
4750

skipif mysql # not compatible
query I rowsort label-6583
SELECT 50 * COALESCE ( ( 95 ), SUM ( DISTINCT + + 99 ), + + ( 13 ) + MIN ( - 4 ), + - 25 )
----
4750

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT 21 + + COALESCE ( + 92, 92 ) + MIN( 8 ) + - 54 col0
----
67

skipif mysql # not compatible
query I rowsort label-6584
SELECT 21 + + COALESCE ( + 92, 92 ) + MIN ( 8 ) + - 54 col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL + MAX( DISTINCT 18 ) - - 29 - - ( - - ( - 85 ) ) * + 82 AS col1
----
-6923

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL + MAX ( DISTINCT 18 ) - - 29 - - ( - - ( - 85 ) ) * + 82 AS col1
----
-6923

query I rowsort
SELECT 36 - - 43
----
79

query I rowsort
SELECT 40 * - ( 9 )
----
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-6588
SELECT ALL + ( + 52 ) DIV ( 56 )
----
0

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL + ( + 52 ) / ( 56 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6589
SELECT 46 - + COUNT( * ) AS col2, 42
----
45
42

skipif mysql # not compatible
query II rowsort label-6589
SELECT 46 - + COUNT ( * ) AS col2, 42
----
45
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6590
SELECT ALL + CAST( - 87 AS SIGNED ) - + 77 * MAX( - + 2 )
----
67

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL + CAST ( - 87 AS INTEGER ) - + 77 * MAX ( - + 2 )
----
67

query I rowsort
SELECT 55 + - 23 * 94 * - 96 * - - 44 AS col1
----
9132343

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT ALL + MIN( ALL - + 44 ) * + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL + MIN ( ALL - + 44 ) * + COUNT ( * )
----
-44

query I rowsort
SELECT 30 * + 69 * - 42 * + 84
----
-7302960

query II rowsort
SELECT 39 * + 45, 3 AS col1
----
1755
3

query I rowsort
SELECT 45 + + 44
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6596
SELECT ALL + CAST( - 80 AS SIGNED ) * ( - 52 ) + + 69 AS col1, - 46
----
4229
-46

skipif mysql # not compatible
query II rowsort label-6596
SELECT ALL + CAST ( - 80 AS INTEGER ) * ( - 52 ) + + 69 AS col1, - 46
----
4229
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6597
SELECT ALL 20 / + CAST( NULL AS SIGNED ) * + AVG ( + + 61 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL 20 / + CAST ( NULL AS INTEGER ) * + AVG ( + + 61 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT DISTINCT COUNT( + 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT COUNT ( + 29 ) AS col1
----
1

query I rowsort
SELECT ALL - 97 + + 3 AS col1
----
-94

query II rowsort
SELECT DISTINCT + 77 + 62, - 50 - - + ( + - 29 ) * + 21 AS col0
----
139
-659

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6601
SELECT COUNT( * ) * + 37 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-6601
SELECT COUNT ( * ) * + 37 / 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT ALL - COUNT( * ) * - + COALESCE ( + 41, + MIN( + - 80 ) + 14 ) + - + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL - COUNT ( * ) * - + COALESCE ( + 41, + MIN ( + - 80 ) + 14 ) + - + COUNT ( * )
----
40

query I rowsort
SELECT DISTINCT 67 * 45 * - 89 + 83 AS col0
----
-268252

query I rowsort
SELECT ALL - - ( 52 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6605
SELECT ALL + 3 * - CAST( NULL AS SIGNED ) + - COUNT( * ) + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL + 3 * - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT - 93 * - 7 + + ( - COUNT( * ) ) AS col2
----
650

skipif mysql # not compatible
query I rowsort label-6606
SELECT - 93 * - 7 + + ( - COUNT ( * ) ) AS col2
----
650

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT DISTINCT - COUNT( 96 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT - COUNT ( 96 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT DISTINCT - + COUNT( * ) * 76 + - 39 + + COUNT( * ) * + + 66 + + 77
----
28

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT - + COUNT ( * ) * 76 + - 39 + + COUNT ( * ) * + + 66 + + 77
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT ALL - - CASE + 68 WHEN - - 90 THEN NULL WHEN + COUNT( * ) THEN - - 83 WHEN 19 * 89 + + - 80 - - 64 * - 72 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL - - CASE + 68 WHEN - - 90 THEN NULL WHEN + COUNT ( * ) THEN - - 83 WHEN 19 * 89 + + - 80 - - 64 * - 72 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 74 * + COALESCE ( 31, - 29, 21 ) + + 47
----
-2247

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT + - COUNT( * ) * + ( - - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-6611
SELECT + - COUNT ( * ) * + ( - - 45 )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6612
SELECT + - 31 + 3 / + ( ( + - 72 ) ) + + MAX( ALL + - CAST( NULL AS SIGNED ) ) + 8 + 60 - + - 92 * + - 78 * 12 + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT + - 31 + 3 / + ( ( + - 72 ) ) + + MAX ( ALL + - CAST ( NULL AS INTEGER ) ) + 8 + 60 - + - 92 * + - 78 * 12 + - 96
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6613
SELECT + - MAX( - 33 ) DIV - 19
----
-1

skipif mysql # not compatible
query I rowsort label-6613
SELECT + - MAX ( - 33 ) / - 19
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6614
SELECT ALL 11 DIV 5
----
2

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL 11 / 5
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6615
SELECT + 22 * CASE WHEN NOT + SUM( ALL + 24 ) BETWEEN + + CAST( + 64 AS SIGNED ) * 23 AND + 23 * - 83 THEN NULL ELSE 6 + + + 1 END * + + 96 - + 8 - - - 53 + + + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6615
SELECT + 22 * CASE WHEN NOT + SUM ( ALL + 24 ) BETWEEN + + CAST ( + 64 AS INTEGER ) * 23 AND + 23 * - 83 THEN NULL ELSE 6 + + + 1 END * + + 96 - + 8 - - - 53 + + + 68 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 34 * + 1
----
34

query I rowsort
SELECT DISTINCT 63 * - - 69 AS col0
----
4347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6618
SELECT + 75 DIV ( + ( NULLIF ( 66, + - 92 * - CASE + - 69 WHEN 5 * + 47 + ( 34 ) THEN NULL WHEN - 7 THEN + 81 * - COUNT( * ) * + + 58 + + 91 ELSE - ( CAST( 30 AS SIGNED ) ) END * 84 ) ) ) * 55 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6618
SELECT + 75 / ( + ( NULLIF ( 66, + - 92 * - CASE + - 69 WHEN 5 * + 47 + ( 34 ) THEN NULL WHEN - 7 THEN + 81 * - COUNT ( * ) * + + 58 + + 91 ELSE - ( CAST ( 30 AS INTEGER ) ) END * 84 ) ) ) * 55 AS col0
----
55

query I rowsort
SELECT + 63 * + 12 AS col2
----
756

onlyif mysql # aggregate syntax: 
query II rowsort label-6620
SELECT - MAX( DISTINCT + 28 ) + - 81 col1, NULLIF ( + + 84, + + COALESCE ( + 27, + + COUNT( * ), + 2 - 61 + - 77 ) ) AS col2
----
-109
84

skipif mysql # not compatible
query II rowsort label-6620
SELECT - MAX ( DISTINCT + 28 ) + - 81 col1, NULLIF ( + + 84, + + COALESCE ( + 27, + + COUNT ( * ), + 2 - 61 + - 77 ) ) AS col2
----
-109
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6621
SELECT - NULLIF ( + + 67, + - 9 - - COUNT( * ) ) AS col1, - 31 AS col0
----
-67
-31

skipif mysql # not compatible
query II rowsort label-6621
SELECT - NULLIF ( + + 67, + - 9 - - COUNT ( * ) ) AS col1, - 31 AS col0
----
-67
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6622
SELECT 89 AS col1, CAST( NULL AS DECIMAL ) * - 66
----
89
NULL

skipif mysql # not compatible
query II rowsort label-6622
SELECT 89 AS col1, CAST ( NULL AS REAL ) * - 66
----
89
NULL

query I rowsort
SELECT DISTINCT - 10 + - 13 + 62
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT - ( 6 ) * + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-6624
SELECT - ( 6 ) * + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT ALL 91 + - COUNT( * ) * - ( - + SUM( DISTINCT 56 ) )
----
35

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL 91 + - COUNT ( * ) * - ( - + SUM ( DISTINCT 56 ) )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-6626
SELECT DISTINCT 50 + - 0 + 6 AS col1, - COUNT( * ) AS col2
----
56
-1

skipif mysql # not compatible
query II rowsort label-6626
SELECT DISTINCT 50 + - 0 + 6 AS col1, - COUNT ( * ) AS col2
----
56
-1

query I rowsort
SELECT DISTINCT + 20 * 67 AS col0
----
1340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6628
SELECT ALL - SUM( ALL + COALESCE ( 95, + 39 ) ) + MIN( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - SUM ( ALL + COALESCE ( 95, + 39 ) ) + MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 81 * - + 16 AS col0
----
1296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6630
SELECT ALL + 98 + - CASE + 33 WHEN 76 + COALESCE ( - 51, + CASE - - 21 WHEN 64 + + 75 THEN - NULLIF ( + + 11, + COUNT( * ) ) * - + CASE COALESCE ( + 63, 11, + + COUNT( * ) ) WHEN COALESCE ( + 16, 10 * 77 * CAST( 85 AS SIGNED ), + CASE + ( 75 ) WHEN + ( + COUNT( * ) ) + 84 * COUNT( 24 ) THEN AVG ( DISTINCT 87 ) / - 58 END * + 46 + + 73 ) * 98 THEN 1 END / + 66 WHEN 11 + 47 THEN NULL END, - 28 + 28 ) THEN SUM( COALESCE ( 5, 33, + CASE 87 WHEN - 49 * - 35 THEN CAST( NULL AS SIGNED ) * - 40 ELSE 85 * - 24 END, - CAST( NULL AS SIGNED ) ) ) END + COUNT( ALL 28 ) * - MAX( 48 ) * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL + 98 + - CASE + 33 WHEN 76 + COALESCE ( - 51, + CASE - - 21 WHEN 64 + + 75 THEN - NULLIF ( + + 11, + COUNT ( * ) ) * - + CASE COALESCE ( + 63, 11, + + COUNT ( * ) ) WHEN COALESCE ( + 16, 10 * 77 * CAST ( 85 AS INTEGER ), + CASE + ( 75 ) WHEN + ( + COUNT ( * ) ) + 84 * COUNT ( 24 ) THEN AVG ( DISTINCT 87 ) / - 58 END * + 46 + + 73 ) * 98 THEN 1 END / + 66 WHEN 11 + 47 THEN NULL END, - 28 + 28 ) THEN SUM ( COALESCE ( 5, 33, + CASE 87 WHEN - 49 * - 35 THEN CAST ( NULL AS INTEGER ) * - 40 ELSE 85 * - 24 END, - CAST ( NULL AS INTEGER ) ) ) END + COUNT ( ALL 28 ) * - MAX ( 48 ) * - 94
----
NULL

query I rowsort
SELECT - 94 - - + 89 * - NULLIF ( - 8, - 32 - - 54 ) AS col0
----
618

onlyif mysql # aggregate syntax: 
query II rowsort label-6632
SELECT - 8 - + + 53 - + 39 AS col0, - 98 + + 63 + + - 54 * 89 * + COUNT( * ) * + + 98
----
-100
-471023

skipif mysql # not compatible
query II rowsort label-6632
SELECT - 8 - + + 53 - + 39 AS col0, - 98 + + 63 + + - 54 * 89 * + COUNT ( * ) * + + 98
----
-100
-471023

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT DISTINCT - ( + 20 ) * + - ( COUNT( * ) ) - + - 65 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT - ( + 20 ) * + - ( COUNT ( * ) ) - + - 65 AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6634
SELECT DISTINCT 65 DIV - + 9
----
-7

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT 65 / - + 9
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6635
SELECT + - 93, + MAX( DISTINCT + - 94 ) * - 58 + COUNT( * ) AS col0
----
-93
5453

skipif mysql # not compatible
query II rowsort label-6635
SELECT + - 93, + MAX ( DISTINCT + - 94 ) * - 58 + COUNT ( * ) AS col0
----
-93
5453

query II rowsort
SELECT ALL + - 83, 39 * + 42 AS col2
----
-83
1638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6637
SELECT DISTINCT - 76 / + 53 * 6 + - - CAST( NULL AS SIGNED ) - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT - 76 / + 53 * 6 + - - CAST ( NULL AS INTEGER ) - 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6638
SELECT + 2 * + 84 / + - 59 + - + CAST( - COUNT( * ) AS DECIMAL ) * + 10 * 85 * + CAST( NULL AS SIGNED ) AS col2, 28
----
NULL
28

skipif mysql # not compatible
query II rowsort label-6638
SELECT + 2 * + 84 / + - 59 + - + CAST ( - COUNT ( * ) AS REAL ) * + 10 * 85 * + CAST ( NULL AS INTEGER ) AS col2, 28
----
NULL
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6639
SELECT + + 2 - + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) - - COALESCE ( + 65, - 34 ) + - 10 / - COALESCE ( - 86, - CASE + 66 WHEN + + 25 / NULLIF ( NULLIF ( + COUNT( * ), 94 ), - - 17 ) THEN NULL WHEN - 30 THEN NULL ELSE - 42 END, 42 ) / 45 + + 68 * 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6639
SELECT + + 2 - + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) - - COALESCE ( + 65, - 34 ) + - 10 / - COALESCE ( - 86, - CASE + 66 WHEN + + 25 / NULLIF ( NULLIF ( + COUNT ( * ), 94 ), - - 17 ) THEN NULL WHEN - 30 THEN NULL ELSE - 42 END, 42 ) / 45 + + 68 * 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL + - COUNT( DISTINCT - - 48 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL + - COUNT ( DISTINCT - - 48 ) AS col2
----
-1

query I rowsort
SELECT - 89 * - + 95 + - - 64 + - 72 * + 33
----
6143

onlyif mysql # aggregate syntax: 
query II rowsort label-6642
SELECT ALL + 51 AS col0, - 54 * - 60 * - COUNT( * )
----
51
-3240

skipif mysql # not compatible
query II rowsort label-6642
SELECT ALL + 51 AS col0, - 54 * - 60 * - COUNT ( * )
----
51
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT COUNT( * ) * + 5 + + 31 col2
----
36

skipif mysql # not compatible
query I rowsort label-6643
SELECT COUNT ( * ) * + 5 + + 31 col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6644
SELECT DISTINCT + COUNT( * ) * COALESCE ( + + 81, - 39 ) AS col2, + 66 AS col1
----
81
66

skipif mysql # not compatible
query II rowsort label-6644
SELECT DISTINCT + COUNT ( * ) * COALESCE ( + + 81, - 39 ) AS col2, + 66 AS col1
----
81
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT ALL + MAX( DISTINCT 21 )
----
21

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL + MAX ( DISTINCT 21 )
----
21

query I rowsort
SELECT + 99 * - 41 * + 15 AS col0
----
-60885

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL - 96 * - 79 * - COUNT( * )
----
-7584

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL - 96 * - 79 * - COUNT ( * )
----
-7584

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6648
SELECT 32 * + CAST( - + 84 AS SIGNED ) + - 81, + CAST( 22 AS SIGNED ) AS col1
----
-2769
22

skipif mysql # not compatible
query II rowsort label-6648
SELECT 32 * + CAST ( - + 84 AS INTEGER ) + - 81, + CAST ( 22 AS INTEGER ) AS col1
----
-2769
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6649
SELECT + COUNT( * ) + + COUNT( * ) * - COUNT( * ) * + CAST( NULL AS SIGNED ) * + - COUNT( * ) + + - 62 * - 5 + + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6649
SELECT + COUNT ( * ) + + COUNT ( * ) * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + + - 62 * - 5 + + 91 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6650
SELECT ALL NULLIF ( - 26, CAST( NULL AS SIGNED ) + 73 * + + 8 ) * 57 + 90
----
-1392

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL NULLIF ( - 26, CAST ( NULL AS INTEGER ) + 73 * + + 8 ) * 57 + 90
----
-1392

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6651
SELECT + 57 + + COUNT( * ), - 6 - - 48 * CAST( NULL AS DECIMAL ) / 14 AS col1
----
58
NULL

skipif mysql # not compatible
query II rowsort label-6651
SELECT + 57 + + COUNT ( * ), - 6 - - 48 * CAST ( NULL AS REAL ) / 14 AS col1
----
58
NULL

query I rowsort
SELECT - NULLIF ( - 54, + + 21 ) AS col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6653
SELECT + 21 DIV - ( + + 96 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6653
SELECT + 21 / - ( + + 96 ) col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6654
SELECT + 33 + - 40 + - NULLIF ( 44, - 17 * - - 86 + + ( + 71 ) ) * - 84 * 95 DIV - 1
----
-351127

skipif mysql # not compatible
query I rowsort label-6654
SELECT + 33 + - 40 + - NULLIF ( 44, - 17 * - - 86 + + ( + 71 ) ) * - 84 * 95 / - 1
----
-351127

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT + 39 * + - MIN( DISTINCT + 8 )
----
-312

skipif mysql # not compatible
query I rowsort label-6655
SELECT + 39 * + - MIN ( DISTINCT + 8 )
----
-312

query I rowsort
SELECT DISTINCT 45 * NULLIF ( - 76, - - 73 ) AS col0
----
-3420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6657
SELECT ALL - CAST( NULL AS SIGNED ) * - 39 * + 25 / - - COALESCE ( COUNT( * ), - + 65 * + 90 / + 64 ) + + - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL - CAST ( NULL AS INTEGER ) * - 39 * + 25 / - - COALESCE ( COUNT ( * ), - + 65 * + 90 / + 64 ) + + - 79 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6658
SELECT ALL 80 * - 41 AS col0, 56 + + 44 - 16 * - 41 + + + 95 DIV + - 55 col0
----
-3280
755

skipif mysql # not compatible
query II rowsort label-6658
SELECT ALL 80 * - 41 AS col0, 56 + + 44 - 16 * - 41 + + + 95 / + - 55 col0
----
-3280
755

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT MAX( DISTINCT - + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-6659
SELECT MAX ( DISTINCT - + 1 )
----
-1

query I rowsort
SELECT DISTINCT 9 * + 78
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT ALL + COUNT( * ) + 56 + - + 4
----
53

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL + COUNT ( * ) + 56 + - + 4
----
53

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6662
SELECT + CAST( - 37 AS DECIMAL ) + 26 * + 77 + + - 56 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT + CAST ( - 37 AS REAL ) + 26 * + 77 + + - 56 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6663
SELECT ALL 85 + + 4 + - + COUNT( * ) * NULLIF ( + - NULLIF ( + 3, + 55 ), + COUNT( * ) ) DIV + 85 * - 70 * 90 + - COUNT( * ) AS col0, - 26 + + - NULLIF ( + + 69, + 12 )
----
88
-95

skipif mysql # not compatible
query II rowsort label-6663
SELECT ALL 85 + + 4 + - + COUNT ( * ) * NULLIF ( + - NULLIF ( + 3, + 55 ), + COUNT ( * ) ) / + 85 * - 70 * 90 + - COUNT ( * ) AS col0, - 26 + + - NULLIF ( + + 69, + 12 )
----
88
-95

query I rowsort
SELECT DISTINCT 2 + + + 15 + + + 37 * CASE - 25 WHEN - 37 THEN + 33 / - ( - + 86 ) END + - 2
----
NULL

query I rowsort
SELECT - 39 + - 40 AS col0
----
-79

query I rowsort
SELECT ALL NULLIF ( 33, - 44 + - + 11 ) + + 53 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT + + 21 + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-6667
SELECT + + 21 + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT + - ( + - COUNT( * ) ) + - 18 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-6668
SELECT + - ( + - COUNT ( * ) ) + - 18 AS col0
----
-17

query I rowsort
SELECT ALL COALESCE ( - 62, - ( - 41 ) - + 17, + 66 ) AS col1
----
-62

query II rowsort
SELECT DISTINCT - 33 - 70, - 69 * + 25 AS col0
----
-103
-1725

query I rowsort
SELECT ALL - + 50 * 68
----
-3400

query I rowsort
SELECT ALL - 0 * - 60 + - 19
----
-19

query I rowsort
SELECT - 81 * - 60 AS col1
----
4860

query I rowsort
SELECT DISTINCT - 84 * 96
----
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT + + COUNT( + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-6675
SELECT + + COUNT ( + 0 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6676
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) AS col0, 14 * 44 + CAST( NULL AS SIGNED ) + 10
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6676
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) AS col0, 14 * 44 + CAST ( NULL AS INTEGER ) + 10
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL - MIN( DISTINCT - 37 ) * - + 2
----
-74

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL - MIN ( DISTINCT - 37 ) * - + 2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6678
SELECT ALL - CAST( - + 14 AS SIGNED ) AS col2, 67 col1
----
14
67

skipif mysql # not compatible
query II rowsort label-6678
SELECT ALL - CAST ( - + 14 AS INTEGER ) AS col2, 67 col1
----
14
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT + 31 + SUM( - 35 )
----
-4

skipif mysql # not compatible
query I rowsort label-6679
SELECT + 31 + SUM ( - 35 )
----
-4

query I rowsort
SELECT DISTINCT + 48 * + 64 * - 14
----
-43008

onlyif mysql # DIV for integer division: 
query I rowsort label-6681
SELECT ALL - 90 * - + 82 * 76 + 24 DIV - 27 + 36
----
560916

skipif mysql # not compatible
query I rowsort label-6681
SELECT ALL - 90 * - + 82 * 76 + 24 / - 27 + 36
----
560916

onlyif mysql # DIV for integer division: 
query I rowsort label-6682
SELECT 40 DIV 44 + 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6682
SELECT 40 / 44 + 67 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT DISTINCT - MAX( DISTINCT 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT - MAX ( DISTINCT 80 ) AS col1
----
-80

query II rowsort
SELECT DISTINCT - 88, - 83 AS col0
----
-88
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6685
SELECT ALL + ( COUNT( * ) ) + 12 + - 57 * ( + ( + 53 ) ) * COALESCE ( 64, - - CAST( NULL AS SIGNED ) DIV + - ( + - ( - 48 ) ) + - ( 2 ) ) + + 31
----
-193300

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL + ( COUNT ( * ) ) + 12 + - 57 * ( + ( + 53 ) ) * COALESCE ( 64, - - CAST ( NULL AS INTEGER ) / + - ( + - ( - 48 ) ) + - ( 2 ) ) + + 31
----
-193300

query I rowsort
SELECT 65 + - 70
----
-5

query I rowsort
SELECT ALL - 65 + 22 + 95 * 92
----
8697

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6688
SELECT ALL + 10 + + - CAST( NULL AS DECIMAL ) - 56 + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL + 10 + + - CAST ( NULL AS REAL ) - 56 + 36 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 56 * 10 AS col2
----
-560

query I rowsort
SELECT 49 - - - 8 col0
----
41

query I rowsort
SELECT ALL 4 * + 9 * - + 73
----
-2628

query II rowsort
SELECT 55 * - ( - 85 ) * - 64 + + 20 * - 55, + 17 AS col0
----
-300300
17

query I rowsort
SELECT ALL - 65 + + 20 AS col2
----
-45

query II rowsort
SELECT ALL + ( 56 ) + 72 AS col2, + 27 * + - 34 col1
----
128
-918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6695
SELECT ALL SUM( + + 51 ) + - 45 + + CASE + + 49 WHEN - 99 THEN NULL ELSE 17 DIV COALESCE ( + + NULLIF ( - CASE 96 WHEN 10 + + CASE - NULLIF ( 98, + 54 ) WHEN + 56 THEN NULL ELSE 1 DIV 48 DIV - NULLIF ( + COUNT( * ), + MIN( ALL + + 73 ) ) + COUNT( * ) DIV - + 88 + 6 END * 35 THEN - 71 END, 45 ), 27 + - 45 * COALESCE ( 9 + 78, 89 ) ) END
----
6

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL SUM ( + + 51 ) + - 45 + + CASE + + 49 WHEN - 99 THEN NULL ELSE 17 / COALESCE ( + + NULLIF ( - CASE 96 WHEN 10 + + CASE - NULLIF ( 98, + 54 ) WHEN + 56 THEN NULL ELSE 1 / 48 / - NULLIF ( + COUNT ( * ), + MIN ( ALL + + 73 ) ) + COUNT ( * ) / - + 88 + 6 END * 35 THEN - 71 END, 45 ), 27 + - 45 * COALESCE ( 9 + 78, 89 ) ) END
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT ( - SUM( + 59 ) ) * + - COUNT( * ) + + 20 + + - CASE - + 1 WHEN 35 THEN 32 - - + 56 WHEN + 49 * - 33 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE + COUNT( DISTINCT - + 30 ) END + + + 83 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-6696
SELECT ( - SUM ( + 59 ) ) * + - COUNT ( * ) + + 20 + + - CASE - + 1 WHEN 35 THEN 32 - - + 56 WHEN + 49 * - 33 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE + COUNT ( DISTINCT - + 30 ) END + + + 83 AS col1
----
161

query II rowsort
SELECT 41 AS col0, 88
----
41
88

query II rowsort
SELECT - 43 AS col1, 33
----
-43
33

query I rowsort
SELECT - CASE 56 WHEN - - 36 THEN NULL ELSE - 43 END AS col1
----
43

query I rowsort
SELECT ALL - 6 * 16
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT DISTINCT + 73 * + COUNT( * ) + ( 48 ) AS col1
----
121

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT + 73 * + COUNT ( * ) + ( 48 ) AS col1
----
121

query I rowsort
SELECT ALL 43 * 78 + - 69 * + + 91 col0
----
-2925

query I rowsort
SELECT - 12 * + 48 - + 23 AS col1
----
-599

query I rowsort
SELECT 76 * - 46 AS col2
----
-3496

query I rowsort
SELECT ALL 87 * - 17
----
-1479

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6706
SELECT + 82 AS col2, + 44 * - 52 * + 44 * - - CAST( NULL AS SIGNED ) AS col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-6706
SELECT + 82 AS col2, + 44 * - 52 * + 44 * - - CAST ( NULL AS INTEGER ) AS col1
----
82
NULL

query I rowsort
SELECT - 70 + + 28 AS col1
----
-42

query I rowsort
SELECT ALL - 54 * + 98 AS col1
----
-5292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6709
SELECT + 79 * - CASE - COUNT( * ) WHEN - 62 THEN - ( + - 23 ) + + CAST( - 70 AS SIGNED ) ELSE 49 END * - + 32 - 60
----
123812

skipif mysql # not compatible
query I rowsort label-6709
SELECT + 79 * - CASE - COUNT ( * ) WHEN - 62 THEN - ( + - 23 ) + + CAST ( - 70 AS INTEGER ) ELSE 49 END * - + 32 - 60
----
123812

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT MIN( - 98 ) * + 29
----
-2842

skipif mysql # not compatible
query I rowsort label-6710
SELECT MIN ( - 98 ) * + 29
----
-2842

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT 32 + COUNT( * ) + + - 75 + - 96 AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-6711
SELECT 32 + COUNT ( * ) + + - 75 + - 96 AS col0
----
-138

query I rowsort
SELECT 63 * + 75 - - + 68
----
4793

query I rowsort
SELECT DISTINCT + ( - + ( 21 ) ) + - + 49 * + - 81
----
3948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6714
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 58 + + + 31 * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 58 + + + 31 * - 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6715
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6716
SELECT - 40 DIV + 52 - 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-6716
SELECT - 40 / + 52 - 25 AS col0
----
-25

query I rowsort
SELECT DISTINCT - ( 98 ) + + ( 74 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT MIN( - 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-6718
SELECT MIN ( - 9 ) AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6719
SELECT ALL - 78 + CAST( 97 AS SIGNED ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL - 78 + CAST ( 97 AS INTEGER ) AS col2
----
19

query I rowsort
SELECT DISTINCT 39 + + - 9 AS col0
----
30

query I rowsort
SELECT ALL - NULLIF ( - CASE - 19 WHEN + CASE 52 WHEN + + 54 THEN 46 + - ( + + 87 ) END - - + 37 THEN 58 ELSE - + 74 * 17 END, - 15 + + - 5 )
----
-1258

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT DISTINCT - MAX( - - 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT - MAX ( - - 65 ) AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6723
SELECT ALL - COUNT( * ) + 11 * - 47 + - 79 * + CAST( - + 22 AS SIGNED ) + + ( 90 )
----
1310

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL - COUNT ( * ) + 11 * - 47 + - 79 * + CAST ( - + 22 AS INTEGER ) + + ( 90 )
----
1310

query I rowsort
SELECT ALL + 79 + 17
----
96

query I rowsort
SELECT 74 * - 62 * + 51
----
-233988

onlyif mysql # aggregate syntax: 
query II rowsort label-6726
SELECT MAX( DISTINCT - ( 48 ) ) * MAX( ALL + - 57 ) + - 34 + + COUNT( * ) AS col1, + COUNT( * ) * - 10
----
2703
-10

skipif mysql # not compatible
query II rowsort label-6726
SELECT MAX ( DISTINCT - ( 48 ) ) * MAX ( ALL + - 57 ) + - 34 + + COUNT ( * ) AS col1, + COUNT ( * ) * - 10
----
2703
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-6727
SELECT 13 AS col1, COUNT( * ) + 42 AS col2
----
13
43

skipif mysql # not compatible
query II rowsort label-6727
SELECT 13 AS col1, COUNT ( * ) + 42 AS col2
----
13
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT 70 + - 26 + + MIN( - - 32 ) col2
----
76

skipif mysql # not compatible
query I rowsort label-6728
SELECT 70 + - 26 + + MIN ( - - 32 ) col2
----
76

query II rowsort
SELECT ALL - 9, - 31 AS col2
----
-9
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6730
SELECT + + 22 * - CAST( NULL AS SIGNED ) * 35 * AVG ( - + 73 ) + + 29 AS col0, + 92 * + 74 + 46 * - + MAX( 35 ) AS col0
----
NULL
5198

skipif mysql # not compatible
query II rowsort label-6730
SELECT + + 22 * - CAST ( NULL AS INTEGER ) * 35 * AVG ( - + 73 ) + + 29 AS col0, + 92 * + 74 + 46 * - + MAX ( 35 ) AS col0
----
NULL
5198

onlyif mysql # aggregate syntax: 
query II rowsort label-6731
SELECT ALL 92 AS col1, - COUNT( * ) AS col2
----
92
-1

skipif mysql # not compatible
query II rowsort label-6731
SELECT ALL 92 AS col1, - COUNT ( * ) AS col2
----
92
-1

query I rowsort
SELECT ALL 14 - - 16
----
30

query I rowsort
SELECT DISTINCT NULLIF ( + 19, 40 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT - + COUNT( * ) + 83 col1
----
82

skipif mysql # not compatible
query I rowsort label-6734
SELECT - + COUNT ( * ) + 83 col1
----
82

query I rowsort
SELECT DISTINCT + + 41 * - 6 + + 22 AS col2
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL - SUM( DISTINCT - - 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL - SUM ( DISTINCT - - 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT - + MIN( ALL - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-6737
SELECT - + MIN ( ALL - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT - 63 + + 88 * + - NULLIF ( MAX( 4 ), + 54 )
----
-415

skipif mysql # not compatible
query I rowsort label-6738
SELECT - 63 + + 88 * + - NULLIF ( MAX ( 4 ), + 54 )
----
-415

query I rowsort
SELECT + - 14 + + 84 AS col0
----
70

query I rowsort
SELECT + + 40 * - 91 * 62 * + 62 AS col1
----
-13992160

onlyif mysql # DIV for integer division: 
query I rowsort label-6741
SELECT + 99 DIV 66 * 90
----
90

skipif mysql # not compatible
query I rowsort label-6741
SELECT + 99 / 66 * 90
----
90

query I rowsort
SELECT ALL 57 + + 52 * + 57 AS col2
----
3021

query I rowsort
SELECT + - 62 + + - 60
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT ALL COUNT( * ) + 50
----
51

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL COUNT ( * ) + 50
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT + 49 * + 42 * + COUNT( * ) * - 91
----
-187278

skipif mysql # not compatible
query I rowsort label-6745
SELECT + 49 * + 42 * + COUNT ( * ) * - 91
----
-187278

query II rowsort
SELECT DISTINCT + 17 * + 44 * ( + 49 ) + - - 28 AS col1, - 29 col0
----
36680
-29

query I rowsort
SELECT ALL - 34 * - + 43 + + ( - - 66 )
----
1528

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT + MAX( 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6748
SELECT + MAX ( 67 ) AS col0
----
67

query I rowsort
SELECT + 34 + 96 AS col0
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6750
SELECT DISTINCT - COUNT( * ) * NULLIF ( + + 25, - MIN( ALL + 64 ) + + 86 + + 21 + - - 49 * + 99 - - 52 ) * + COUNT( * ) + COALESCE ( COUNT( * ), 32 * 66 + + COUNT( * ), + - ( + - CAST( NULL AS SIGNED ) ), 61 ) * 31 + - MIN( DISTINCT - 5 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT - COUNT ( * ) * NULLIF ( + + 25, - MIN ( ALL + 64 ) + + 86 + + 21 + - - 49 * + 99 - - 52 ) * + COUNT ( * ) + COALESCE ( COUNT ( * ), 32 * 66 + + COUNT ( * ), + - ( + - CAST ( NULL AS INTEGER ) ), 61 ) * 31 + - MIN ( DISTINCT - 5 ) AS col1
----
11

query II rowsort
SELECT ( + 82 ), + 60 + + 79 - - 14 AS col0
----
82
153

query I rowsort
SELECT ALL 47 * + 19 + - 68 * 76 col2
----
-4275

query II rowsort
SELECT + ( - 20 ), 83 AS col1
----
-20
83

query I rowsort
SELECT CASE + 29 WHEN + ( 43 ) THEN NULLIF ( 3, - 57 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6755
SELECT DISTINCT NULLIF ( - COALESCE ( + 42, - 60 ), + - ( - + 80 ) - COUNT( * ) / 75 * 78 ) * - ( - 91 ) * - 33 * + 99 - - 5 / + 74 / - ( - 40 ) / + - COUNT( * ) + + CAST( NULL AS SIGNED ) * - COUNT( * ) + - 92 + - CAST( 49 AS SIGNED ) + + + 3 * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT NULLIF ( - COALESCE ( + 42, - 60 ), + - ( - + 80 ) - COUNT ( * ) / 75 * 78 ) * - ( - 91 ) * - 33 * + 99 - - 5 / + 74 / - ( - 40 ) / + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 92 + - CAST ( 49 AS INTEGER ) + + + 3 * + COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ALL 84 * + 26 - - 5 + + 85 AS col0
----
2274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6757
SELECT DISTINCT + 93 * - COUNT( * ) * + CAST( + 62 AS SIGNED )
----
-5766

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT + 93 * - COUNT ( * ) * + CAST ( + 62 AS INTEGER )
----
-5766

onlyif mysql # aggregate syntax: 
query II rowsort label-6758
SELECT + ( + ( 12 ) ), SUM( DISTINCT - 39 ) - - 40 AS col2
----
12
1

skipif mysql # not compatible
query II rowsort label-6758
SELECT + ( + ( 12 ) ), SUM ( DISTINCT - 39 ) - - 40 AS col2
----
12
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6759
SELECT + ( + ( 23 ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6759
SELECT + ( + ( 23 ) ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6760
SELECT - 9 * 0 col1, CAST( + 17 AS SIGNED ) AS col0
----
0
17

skipif mysql # not compatible
query II rowsort label-6760
SELECT - 9 * 0 col1, CAST ( + 17 AS INTEGER ) AS col0
----
0
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT ALL + 75 * COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL + 75 * COUNT ( * )
----
75

query I rowsort
SELECT ALL 26 * 67 col0
----
1742

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT - COUNT( * ) - - 54
----
53

skipif mysql # not compatible
query I rowsort label-6763
SELECT - COUNT ( * ) - - 54
----
53

query I rowsort
SELECT - 22 * - 81
----
1782

query I rowsort
SELECT ALL - 63 + 80 - - - 24
----
-7

query II rowsort
SELECT - 88 * + + 51, + ( 71 ) AS col2
----
-4488
71

query I rowsort
SELECT DISTINCT + ( - 70 ) * + 68 * 83 AS col1
----
-395080

query I rowsort
SELECT ALL - - 59 + + 70 col0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6769
SELECT ALL + CAST( NULL AS SIGNED ) + - + 35 * 27 * - + 5 + 52, 1 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6769
SELECT ALL + CAST ( NULL AS INTEGER ) + - + 35 * 27 * - + 5 + 52, 1 AS col2
----
NULL
1

query I rowsort
SELECT - + 47 + + 79 AS col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6771
SELECT ALL - - 59 + + COUNT( * ) DIV + 45
----
59

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL - - 59 + + COUNT ( * ) / + 45
----
59

onlyif mysql # DIV for integer division: 
query II rowsort label-6772
SELECT + 51 DIV + + 60 AS col0, 61 * - 93
----
0
-5673

skipif mysql # not compatible
query II rowsort label-6772
SELECT + 51 / + + 60 AS col0, 61 * - 93
----
0
-5673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6773
SELECT - COUNT( * ) + - + CAST( NULL AS SIGNED ) + 91 * 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + 91 * 69 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6774
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) * 43, 93 + + + MAX( NULLIF ( 22, + 38 ) ) + + COUNT( * ) * + - ( - 15 ) col0
----
NULL
130

skipif mysql # not compatible
query II rowsort label-6774
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 43, 93 + + + MAX ( NULLIF ( 22, + 38 ) ) + + COUNT ( * ) * + - ( - 15 ) col0
----
NULL
130

onlyif mysql # DIV for integer division: 
query I rowsort label-6775
SELECT ALL 28 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL 28 / 59
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6776
SELECT DISTINCT 46 + - ( + 16 ) DIV - + 36
----
46

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT 46 + - ( + 16 ) / - + 36
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6777
SELECT ALL ( + + 93 ) DIV + - 72 + + 63 - - 24
----
86

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL ( + + 93 ) / + - 72 + + 63 - - 24
----
86

query I rowsort
SELECT + 87 * + 22 AS col2
----
1914

query I rowsort
SELECT ALL + ( + 77 ) col2
----
77

query I rowsort
SELECT DISTINCT 27 * + 95 AS col1
----
2565

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6781
SELECT COUNT( * ) DIV + 74 * + 2 - 29
----
-29

skipif mysql # not compatible
query I rowsort label-6781
SELECT COUNT ( * ) / + 74 * + 2 - 29
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6782
SELECT ALL 45 * - + SUM( + 8 ) AS col0, - CAST( NULL AS DECIMAL ) col2
----
-360
NULL

skipif mysql # not compatible
query II rowsort label-6782
SELECT ALL 45 * - + SUM ( + 8 ) AS col0, - CAST ( NULL AS REAL ) col2
----
-360
NULL

query I rowsort
SELECT - 51 * 31 col2
----
-1581

onlyif mysql # DIV for integer division: 
query I rowsort label-6784
SELECT + COALESCE ( - - 96, 24 DIV - 71 ) * - 59 AS col1
----
-5664

skipif mysql # not compatible
query I rowsort label-6784
SELECT + COALESCE ( - - 96, 24 / - 71 ) * - 59 AS col1
----
-5664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6785
SELECT 16 * + 58 + 40 + 82 * CAST( NULL AS SIGNED ) * + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT 16 * + 58 + 40 + 82 * CAST ( NULL AS INTEGER ) * + + 0
----
NULL

query I rowsort
SELECT ALL 85 * - 43 AS col1
----
-3655

onlyif mysql # aggregate syntax: 
query II rowsort label-6787
SELECT ( - - 99 ) * - 51 AS col1, ( + + 80 ) + + - MAX( ALL + 38 ) + + 63
----
-5049
105

skipif mysql # not compatible
query II rowsort label-6787
SELECT ( - - 99 ) * - 51 AS col1, ( + + 80 ) + + - MAX ( ALL + 38 ) + + 63
----
-5049
105

query II rowsort
SELECT 81, - 19 AS col0
----
81
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6789
SELECT CAST( NULL AS SIGNED ) * + - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT CAST ( NULL AS INTEGER ) * + - 41 AS col2
----
NULL

query II rowsort
SELECT ALL - - 48, + 45 AS col2
----
48
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6791
SELECT ALL - 71 AS col1, CAST( 40 AS SIGNED ) DIV 10 * + COUNT( * ) + - - CASE - + 65 WHEN + COUNT( * ) THEN + + 95 * + 12 + + 99 - 21 ELSE + 1 + + ( + COUNT( * ) ) END AS col1
----
-71
6

skipif mysql # not compatible
query II rowsort label-6791
SELECT ALL - 71 AS col1, CAST ( 40 AS INTEGER ) / 10 * + COUNT ( * ) + - - CASE - + 65 WHEN + COUNT ( * ) THEN + + 95 * + 12 + + 99 - 21 ELSE + 1 + + ( + COUNT ( * ) ) END AS col1
----
-71
6

onlyif mysql # DIV for integer division: 
query II rowsort label-6792
SELECT - 16 AS col0, - 18 DIV + - 8
----
-16
2

skipif mysql # not compatible
query II rowsort label-6792
SELECT - 16 AS col0, - 18 / + - 8
----
-16
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT MIN( DISTINCT - 68 ) + + - 76 - 51 + + 99
----
-96

skipif mysql # not compatible
query I rowsort label-6793
SELECT MIN ( DISTINCT - 68 ) + + - 76 - 51 + + 99
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6794
SELECT ALL + + CAST( NULL AS SIGNED ) + - - COUNT( * ) * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL + + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * + 28
----
NULL

query I rowsort
SELECT ALL - 81 + NULLIF ( COALESCE ( + 86, - 5 * - ( - + 84 ) ), 77 ) AS col1
----
5

query I rowsort
SELECT ALL ( - + 87 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6797
SELECT DISTINCT 37 + CAST( NULL AS SIGNED ) * - 17 * + COUNT( * ) / - - 35 - - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT 37 + CAST ( NULL AS INTEGER ) * - 17 * + COUNT ( * ) / - - 35 - - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT ALL - + 99 + + - 87 + SUM( ALL - 89 ) AS col0
----
-275

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL - + 99 + + - 87 + SUM ( ALL - 89 ) AS col0
----
-275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6799
SELECT DISTINCT - 84 + - CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) / 6 - + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT - 84 + - CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) / 6 - + 17 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - CASE - - 0 WHEN + NULLIF ( 35, ( 54 ) * - - 29 ) THEN NULL ELSE - + 11 END + - 20 col0, 45 * + 25 col2
----
-9
1125

query I rowsort
SELECT 7 + + 90 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL - + COUNT( * ) + 33 + - + CASE - COUNT( * ) WHEN - - COUNT( * ) / 5 THEN + 53 + - + 93 ELSE NULL END + - 11 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL - + COUNT ( * ) + 33 + - + CASE - COUNT ( * ) WHEN - - COUNT ( * ) / 5 THEN + 53 + - + 93 ELSE NULL END + - 11 col2
----
NULL

query I rowsort
SELECT - 48 * 48 - + 32 col1
----
-2336

query I rowsort
SELECT - 22 + - 40 AS col0
----
-62

query II rowsort
SELECT - 57, + 10 AS col1
----
-57
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6806
SELECT DISTINCT - ( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT - ( - + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6807
SELECT ALL - - 32 + 60 + 42 - + 12 * + ( + 22 ) * - - 80 + - + ( CASE - + COUNT( * ) WHEN 9 THEN CAST( 48 AS SIGNED ) + - 86 - - ( + + ( + 0 ) ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL - - 32 + 60 + 42 - + 12 * + ( + 22 ) * - - 80 + - + ( CASE - + COUNT ( * ) WHEN 9 THEN CAST ( 48 AS INTEGER ) + - 86 - - ( + + ( + 0 ) ) END ) AS col1
----
NULL

query I rowsort
SELECT 49 * + 5 AS col0
----
245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6809
SELECT ALL CAST( 27 AS SIGNED ) - - + COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL CAST ( 27 AS INTEGER ) - - + COUNT ( * ) AS col0
----
28

query I rowsort
SELECT ALL + 10 * + 32
----
320

query I rowsort
SELECT ALL + 47 - - 28
----
75

query I rowsort
SELECT DISTINCT - 92 * - 19 * + + 70
----
122360

query I rowsort
SELECT ALL - 20 * + + NULLIF ( - ( + + ( - + 7 ) ), + 82 * 54 ) col0
----
-140

query I rowsort
SELECT DISTINCT + 65 - + - 73 * - 53 AS col1
----
-3804

query I rowsort
SELECT DISTINCT - 2 * - 53
----
106

query I rowsort
SELECT 64 * + 55
----
3520

query II rowsort
SELECT 80 + + - 86 col0, 75
----
-6
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT ALL 91 DIV 35 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL 91 / 35 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6819
SELECT 90 * - 24 AS col1, - COUNT( * ) + + 61
----
-2160
60

skipif mysql # not compatible
query II rowsort label-6819
SELECT 90 * - 24 AS col1, - COUNT ( * ) + + 61
----
-2160
60

onlyif mysql # DIV for integer division: 
query II rowsort label-6820
SELECT 76 DIV + + ( + - 68 ) + + 91, 74 + + - 44 AS col1
----
90
30

skipif mysql # not compatible
query II rowsort label-6820
SELECT 76 / + + ( + - 68 ) + + 91, 74 + + - 44 AS col1
----
90
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT 84 * - COUNT( * ) + 34 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6821
SELECT 84 * - COUNT ( * ) + 34 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT + CASE + 71 WHEN SUM( DISTINCT + 70 ) THEN - ( + + 44 ) WHEN 17 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT + CASE + 71 WHEN SUM ( DISTINCT + 70 ) THEN - ( + + 44 ) WHEN 17 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT ALL + 96 + - 55 + + - COUNT( * ) + + 16 * 69 + + - 89
----
1055

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL + 96 + - 55 + + - COUNT ( * ) + + 16 * 69 + + - 89
----
1055

query I rowsort
SELECT + ( - ( - + 31 ) )
----
31

query I rowsort
SELECT 76 - - - 34
----
42

query I rowsort
SELECT NULLIF ( + 11, + ( 65 ) * - 49 ) * + 75 AS col1
----
825

query I rowsort
SELECT DISTINCT - 94 * ( + 59 )
----
-5546

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL 26 + + + MAX( ALL - - 77 ) AS col2
----
103

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL 26 + + + MAX ( ALL - - 77 ) AS col2
----
103

query I rowsort
SELECT DISTINCT - + NULLIF ( - + 29, + 75 ) AS col0
----
29

query I rowsort
SELECT ALL ( - - 22 ) + ( + 64 ) + + 13 * + 88 * ( + 30 ) * + + 79 - 92 AS col0
----
2711274

query I rowsort
SELECT ALL + 69 + + + 61 * - 43 col2
----
-2554

onlyif mysql # DIV for integer division: 
query I rowsort label-6832
SELECT ALL 67 DIV 4 * ( + + 17 ) * - - 24 DIV 4 AS col0
----
1632

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL 67 / 4 * ( + + 17 ) * - - 24 / 4 AS col0
----
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT - SUM( NULLIF ( - 66, - + 6 ) )
----
66

skipif mysql # not compatible
query I rowsort label-6833
SELECT - SUM ( NULLIF ( - 66, - + 6 ) )
----
66

query I rowsort
SELECT 53 * 1 + - - 29 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT DISTINCT SUM( ALL - 27 ) * - + 28
----
756

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT SUM ( ALL - 27 ) * - + 28
----
756

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6836
SELECT ALL AVG ( ALL + - CAST( NULL AS SIGNED ) ), 90 AS col0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-6836
SELECT ALL AVG ( ALL + - CAST ( NULL AS INTEGER ) ), 90 AS col0
----
NULL
90

query I rowsort
SELECT DISTINCT 94 - + CASE - 41 WHEN + + 10 / - + 56 THEN - 35 WHEN 61 THEN 80 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT ALL - 52 DIV 15 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - 52 / 15 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT 74 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT 74 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT COUNT( * ) * - + 18 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-6840
SELECT COUNT ( * ) * - + 18 AS col0
----
-18

onlyif mysql # DIV for integer division: 
query III rowsort label-6841
SELECT - 5 AS col1, 10 DIV + 36 col2, 75 + 53 * + 22 col1
----
-5
0
1241

skipif mysql # not compatible
query III rowsort label-6841
SELECT - 5 AS col1, 10 / + 36 col2, 75 + 53 * + 22 col1
----
-5
0
1241

query I rowsort
SELECT ALL 45 - + 82 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT 55 * + + 82 * COUNT( * ) * - - COUNT( * )
----
4510

skipif mysql # not compatible
query I rowsort label-6843
SELECT 55 * + + 82 * COUNT ( * ) * - - COUNT ( * )
----
4510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6844
SELECT ALL + 43 DIV + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL + 43 / + COUNT ( * )
----
43

query I rowsort
SELECT - ( 47 ) + 99
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6846
SELECT ALL MIN( ALL ( + 90 ) ) AS col0, + 45
----
90
45

skipif mysql # not compatible
query II rowsort label-6846
SELECT ALL MIN ( ALL ( + 90 ) ) AS col0, + 45
----
90
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT DISTINCT - COUNT( + + 45 ) * + 63
----
-63

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT - COUNT ( + + 45 ) * + 63
----
-63

query I rowsort
SELECT - 56 + + 92
----
36

query II rowsort
SELECT ALL + 28 AS col0, + 19 AS col1
----
28
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6850
SELECT NULLIF ( - 4, 23 + - - 78 + - 91 - + - 16 * + 35 * - 63 + + 18 + - + CAST( - + 80 AS SIGNED ) * - 91 )
----
-4

skipif mysql # not compatible
query I rowsort label-6850
SELECT NULLIF ( - 4, 23 + - - 78 + - 91 - + - 16 * + 35 * - 63 + + 18 + - + CAST ( - + 80 AS INTEGER ) * - 91 )
----
-4

query I rowsort
SELECT ALL + 77 * + + 24 + 52 + + - 71 * + 47 AS col1
----
-1437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT ALL + CAST( - - 35 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL + CAST ( - - 35 AS INTEGER ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT - 41 * - COUNT( * ) + + + SUM( DISTINCT + 35 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6853
SELECT - 41 * - COUNT ( * ) + + + SUM ( DISTINCT + 35 ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT + CASE - 90 WHEN + 29 + - COUNT( * ) THEN + 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6854
SELECT + CASE - 90 WHEN + 29 + - COUNT ( * ) THEN + 23 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6855
SELECT 90 DIV COUNT( * ) + + COALESCE ( + 58, - 31 ) DIV - - 36
----
91

skipif mysql # not compatible
query I rowsort label-6855
SELECT 90 / COUNT ( * ) + + COALESCE ( + 58, - 31 ) / - - 36
----
91

query I rowsort
SELECT ALL - 53 * + 0
----
0

query I rowsort
SELECT NULLIF ( + - 43, ( + 37 ) * 97 * - 39 )
----
-43

query I rowsort
SELECT - 43 * + 49 AS col2
----
-2107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6859
SELECT ALL - NULLIF ( COUNT( + 20 ), - CAST( - - 16 AS SIGNED ) ) * - + MIN( DISTINCT - - 63 ) * + ( + 52 ) - - + 47 + + + 47 AS col1
----
3370

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL - NULLIF ( COUNT ( + 20 ), - CAST ( - - 16 AS INTEGER ) ) * - + MIN ( DISTINCT - - 63 ) * + ( + 52 ) - - + 47 + + + 47 AS col1
----
3370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6860
SELECT ALL + COUNT( * ) * 84 + + - 63 + + - COUNT( * ) * 2 + - 95 + - CAST( NULL AS SIGNED ) * - ( 85 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL + COUNT ( * ) * 84 + + - 63 + + - COUNT ( * ) * 2 + - 95 + - CAST ( NULL AS INTEGER ) * - ( 85 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6861
SELECT - 49 * - - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + + - ( 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6861
SELECT - 49 * - - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + - ( 8 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6862
SELECT ALL + + CAST( + 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL + + CAST ( + 63 AS INTEGER )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT - - SUM( 52 ) + - - COUNT( * ) - + COUNT( + 81 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-6863
SELECT - - SUM ( 52 ) + - - COUNT ( * ) - + COUNT ( + 81 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL + - SUM( - 19 ) col1
----
19

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + - SUM ( - 19 ) col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT DISTINCT + ( + 6 ) * - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT + ( + 6 ) * - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT ALL + 54 * - + MIN( ALL - 18 ) + + - 53 * - ( COUNT( * ) ) AS col1
----
1025

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL + 54 * - + MIN ( ALL - 18 ) + + - 53 * - ( COUNT ( * ) ) AS col1
----
1025

query I rowsort
SELECT - - ( - 50 ) - - 77
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT DISTINCT + 39 * + 83 + - + MAX( 36 ) AS col1
----
3201

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT + 39 * + 83 + - + MAX ( 36 ) AS col1
----
3201

onlyif mysql # aggregate syntax: 
query II rowsort label-6869
SELECT ALL + + NULLIF ( + 9, 54 + - 96 * + 46 ), COUNT( * ) + - 66 - - 58 AS col0
----
9
-7

skipif mysql # not compatible
query II rowsort label-6869
SELECT ALL + + NULLIF ( + 9, 54 + - 96 * + 46 ), COUNT ( * ) + - 66 - - 58 AS col0
----
9
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT + + COUNT( * ) * + 32 + + 12
----
44

skipif mysql # not compatible
query I rowsort label-6870
SELECT + + COUNT ( * ) * + 32 + + 12
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6871
SELECT ALL + 40 * + COUNT( * ) - - 70 AS col0, 27 AS col2
----
110
27

skipif mysql # not compatible
query II rowsort label-6871
SELECT ALL + 40 * + COUNT ( * ) - - 70 AS col0, 27 AS col2
----
110
27

query I rowsort
SELECT DISTINCT - 82 * + ( 87 ) * + - 21
----
149814

query I rowsort
SELECT ALL 74 * 63 * - 29 AS col1
----
-135198

query II rowsort
SELECT - 43 + - + ( - 64 ) AS col2, + 91
----
21
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT DISTINCT - + 11 * - 76 * - MIN( DISTINCT - 1 ) AS col0
----
836

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT - + 11 * - 76 * - MIN ( DISTINCT - 1 ) AS col0
----
836

onlyif mysql # aggregate syntax: 
query II rowsort label-6876
SELECT ALL + 72, 9 * + - MIN( ( 81 ) ) AS col2
----
72
-729

skipif mysql # not compatible
query II rowsort label-6876
SELECT ALL + 72, 9 * + - MIN ( ( 81 ) ) AS col2
----
72
-729

onlyif mysql # aggregate syntax: 
query II rowsort label-6877
SELECT ALL - NULLIF ( - + 67, 99 + + COALESCE ( - 97, MIN( + 92 ), - 24 ) - 3 + - 49 * - - MAX( ALL + - ( - + 80 ) ) + - 90 * 58 ) col2, - CASE 26 WHEN + COUNT( * ) THEN + 88 + 45 * + 28 * + + 38 + - 6 END AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-6877
SELECT ALL - NULLIF ( - + 67, 99 + + COALESCE ( - 97, MIN ( + 92 ), - 24 ) - 3 + - 49 * - - MAX ( ALL + - ( - + 80 ) ) + - 90 * 58 ) col2, - CASE 26 WHEN + COUNT ( * ) THEN + 88 + 45 * + 28 * + + 38 + - 6 END AS col2
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT + ( - COUNT( * ) ) + - - 82
----
81

skipif mysql # not compatible
query I rowsort label-6878
SELECT + ( - COUNT ( * ) ) + - - 82
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6879
SELECT ALL 95, 52 * CAST( - COUNT( * ) AS SIGNED ) AS col0
----
95
-52

skipif mysql # not compatible
query II rowsort label-6879
SELECT ALL 95, 52 * CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
95
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-6880
SELECT ALL 46, COUNT( * ) + 42 AS col0
----
46
43

skipif mysql # not compatible
query II rowsort label-6880
SELECT ALL 46, COUNT ( * ) + 42 AS col0
----
46
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT + COUNT( * ) + - ( - 3 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6881
SELECT + COUNT ( * ) + - ( - 3 ) AS col0
----
4

query II rowsort
SELECT + 51 * 99, 43 AS col0
----
5049
43

onlyif mysql # DIV for integer division: 
query I rowsort label-6883
SELECT DISTINCT 63 DIV - 35
----
-1

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT 63 / - 35
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT - ( + NULLIF ( - 39, - + COUNT( * ) * + - 19 ) )
----
39

skipif mysql # not compatible
query I rowsort label-6884
SELECT - ( + NULLIF ( - 39, - + COUNT ( * ) * + - 19 ) )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6885
SELECT ALL 98 * - + 99 AS col1, 97 + COUNT( * ) + - CAST( - ( - 98 ) AS SIGNED ) + - ( - 96 ) * NULLIF ( ( - + 7 ), 43 + - 57 + - - NULLIF ( - 32, + - 91 ) + + 74 / + 22 * - 7 * - 77 )
----
-9702
-672

skipif mysql # not compatible
query II rowsort label-6885
SELECT ALL 98 * - + 99 AS col1, 97 + COUNT ( * ) + - CAST ( - ( - 98 ) AS INTEGER ) + - ( - 96 ) * NULLIF ( ( - + 7 ), 43 + - 57 + - - NULLIF ( - 32, + - 91 ) + + 74 / + 22 * - 7 * - 77 )
----
-9702
-672

query I rowsort
SELECT ALL 16 * + 42 col2
----
672

query I rowsort
SELECT DISTINCT 27 * + 77 col1
----
2079

onlyif mysql # aggregate syntax: 
query II rowsort label-6888
SELECT ALL COUNT( * ) col1, 59 * 58
----
1
3422

skipif mysql # not compatible
query II rowsort label-6888
SELECT ALL COUNT ( * ) col1, 59 * 58
----
1
3422

query I rowsort
SELECT - ( + - 94 ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6890
SELECT + ( 85 ) * - - MIN( ALL - 73 ) / 56 + - - AVG ( ALL + CAST( NULL AS SIGNED ) ) + - + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6890
SELECT + ( 85 ) * - - MIN ( ALL - 73 ) / 56 + - - AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - + 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT ALL 62 + + + COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL 62 + + + COUNT ( * ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT ALL - MIN( ALL - 84 ) + + + 80 AS col1
----
164

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL - MIN ( ALL - 84 ) + + + 80 AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT + 62 * COUNT( * ) * + - 40
----
-2480

skipif mysql # not compatible
query I rowsort label-6893
SELECT + 62 * COUNT ( * ) * + - 40
----
-2480

query I rowsort
SELECT + ( + 28 ) * 91 AS col1
----
2548

query I rowsort
SELECT - 26 * + 25 AS col1
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT DISTINCT NULLIF ( - + 9, - 43 / + - CASE + - SUM( - - 19 ) WHEN + + 44 THEN NULL ELSE 93 END + ( - 38 ) + - - COUNT( * ) / + 73 ) + - 89 * - COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT NULLIF ( - + 9, - 43 / + - CASE + - SUM ( - - 19 ) WHEN + + 44 THEN NULL ELSE 93 END + ( - 38 ) + - - COUNT ( * ) / + 73 ) + - 89 * - COUNT ( * ) AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6897
SELECT ALL - + NULLIF ( - 9, 34 ) DIV - - 98 + + COUNT( * ) + 69 col0
----
70

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL - + NULLIF ( - 9, 34 ) / - - 98 + + COUNT ( * ) + 69 col0
----
70

query I rowsort
SELECT ALL - 5 * + 87 AS col1
----
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT - 61 + SUM( - 53 ) - + - 85 * - - 66
----
5496

skipif mysql # not compatible
query I rowsort label-6899
SELECT - 61 + SUM ( - 53 ) - + - 85 * - - 66
----
5496

query I rowsort
SELECT DISTINCT + + 63 * + 12 * 21 AS col2
----
15876

query II rowsort
SELECT + 53, - 53 - 56 AS col1
----
53
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT - 32 - - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-6902
SELECT - 32 - - COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: 
query III rowsort label-6903
SELECT ALL + 95 AS col1, - 2, + - SUM( ALL 18 ) AS col1
----
95
-2
-18

skipif mysql # not compatible
query III rowsort label-6903
SELECT ALL + 95 AS col1, - 2, + - SUM ( ALL 18 ) AS col1
----
95
-2
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6904
SELECT ALL + - 37 DIV - COUNT( * ) + COUNT( * ) * 71
----
108

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL + - 37 / - COUNT ( * ) + COUNT ( * ) * 71
----
108

query I rowsort
SELECT - + NULLIF ( - ( - 63 ), - 52 + + - ( - + 2 ) - 76 ) * - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT ALL + ( + 72 ) * - + ( MIN( - - 23 ) )
----
-1656

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL + ( + 72 ) * - + ( MIN ( - - 23 ) )
----
-1656

query I rowsort
SELECT + + ( - 83 ) AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6908
SELECT - + ( + 15 ) DIV - - 70 - + - 28 AS col0, 90 + CAST( NULL AS SIGNED ) DIV + CASE + COUNT( DISTINCT - 64 ) WHEN - - ( + - 7 ) THEN NULL WHEN - 85 THEN + CASE + + 51 WHEN - COALESCE ( + COUNT( * ), + 8, - + 68 + + 3, - - 5 ) * - COUNT( * ) DIV - 10 + - 17 DIV + + COUNT( * ) THEN - + 24 + 82 + - - 34 + - 15 - + - 85 * 39 * + 34 END END + 89 col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-6908
SELECT - + ( + 15 ) / - - 70 - + - 28 AS col0, 90 + CAST ( NULL AS INTEGER ) / + CASE + COUNT ( DISTINCT - 64 ) WHEN - - ( + - 7 ) THEN NULL WHEN - 85 THEN + CASE + + 51 WHEN - COALESCE ( + COUNT ( * ), + 8, - + 68 + + 3, - - 5 ) * - COUNT ( * ) / - 10 + - 17 / + + COUNT ( * ) THEN - + 24 + 82 + - - 34 + - 15 - + - 85 * 39 * + 34 END END + 89 col2
----
28
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6909
SELECT ALL + - COUNT( * ) / ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL + - COUNT ( * ) / ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - + 62 * + 99 * - 18 + 7
----
110491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6911
SELECT - 10, CAST( + NULLIF ( - ( - + 26 ), - 62 / 48 * + ( + COUNT( * ) ) * 34 * + - 96 * - NULLIF ( - 43, 85 ) * + 30 + + 3 ) AS SIGNED ) / 57 * CASE + 78 WHEN 42 THEN + - 69 WHEN 23 THEN NULL END + - + 31 AS col1
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-6911
SELECT - 10, CAST ( + NULLIF ( - ( - + 26 ), - 62 / 48 * + ( + COUNT ( * ) ) * 34 * + - 96 * - NULLIF ( - 43, 85 ) * + 30 + + 3 ) AS INTEGER ) / 57 * CASE + 78 WHEN 42 THEN + - 69 WHEN 23 THEN NULL END + - + 31 AS col1
----
-10
NULL

query I rowsort
SELECT DISTINCT + 43 * + 73 * + 78 AS col0
----
244842

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT ALL - 88 * 40 * - COUNT( * )
----
3520

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL - 88 * 40 * - COUNT ( * )
----
3520

onlyif mysql # aggregate syntax: 
query II rowsort label-6914
SELECT DISTINCT + 34 * + 0 col1, COUNT( - 58 )
----
0
1

skipif mysql # not compatible
query II rowsort label-6914
SELECT DISTINCT + 34 * + 0 col1, COUNT ( - 58 )
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6915
SELECT - 87 DIV - - COALESCE ( + 6, - 45, + + 20 * - 91 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-6915
SELECT - 87 / - - COALESCE ( + 6, - 45, + + 20 * - 91 ) AS col0
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-6916
SELECT + 93 DIV - + 60 AS col2, - 32 AS col2
----
-1
-32

skipif mysql # not compatible
query II rowsort label-6916
SELECT + 93 / - + 60 AS col2, - 32 AS col2
----
-1
-32

query I rowsort
SELECT 74 * + 24 AS col0
----
1776

query II rowsort
SELECT ALL + 89 * + 35, ( - + 22 ) - + 29 AS col2
----
3115
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT DISTINCT COUNT( * ) + + 48 col1
----
49

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT COUNT ( * ) + + 48 col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6920
SELECT ALL 68 + CASE - - MAX( + 80 ) WHEN 7 * - 57 - - NULLIF ( + 20, + + 78 ) - COUNT( ALL - ( + + 95 ) ) + 37 THEN NULL ELSE 39 END / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL 68 + CASE - - MAX ( + 80 ) WHEN 7 * - 57 - - NULLIF ( + 20, + + 78 ) - COUNT ( ALL - ( + + 95 ) ) + 37 THEN NULL ELSE 39 END / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 73 + - 36 AS col2
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6922
SELECT COALESCE ( - - 40, - 60 + - 82 ) - + CAST( NULL AS DECIMAL ) AS col1, 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-6922
SELECT COALESCE ( - - 40, - 60 + - 82 ) - + CAST ( NULL AS REAL ) AS col1, 45
----
NULL
45

query I rowsort
SELECT 83 + + 21
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6924
SELECT DISTINCT 50 + + - 71 * + COUNT( + CAST( NULL AS SIGNED ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT 50 + + - 71 * + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6925
SELECT 8 + - 52 - - 62 + - 39 DIV 51 - 72
----
-54

skipif mysql # not compatible
query I rowsort label-6925
SELECT 8 + - 52 - - 62 + - 39 / 51 - 72
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6926
SELECT DISTINCT CAST( + + 91 AS SIGNED ) * - 81 AS col0
----
-7371

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT CAST ( + + 91 AS INTEGER ) * - 81 AS col0
----
-7371

onlyif mysql # aggregate syntax: 
query II rowsort label-6927
SELECT ( + NULLIF ( SUM( ( + 61 ) ), 0 ) ) + + 98, 44 - COALESCE ( 73, - 81 * - 66 + + - ( 8 ) ) + COUNT( DISTINCT + 26 ) AS col1
----
159
-28

skipif mysql # not compatible
query II rowsort label-6927
SELECT ( + NULLIF ( SUM ( ( + 61 ) ), 0 ) ) + + 98, 44 - COALESCE ( 73, - 81 * - 66 + + - ( 8 ) ) + COUNT ( DISTINCT + 26 ) AS col1
----
159
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6928
SELECT DISTINCT NULLIF ( - 80, + SUM( + NULLIF ( + 85, 38 + + 15 ) ) ) + - 85 + CASE 92 WHEN + CAST( NULL AS DECIMAL ) * COUNT( * ) THEN + 89 + - - 36 WHEN - 36 - + 72 + + + MAX( DISTINCT 52 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT NULLIF ( - 80, + SUM ( + NULLIF ( + 85, 38 + + 15 ) ) ) + - 85 + CASE 92 WHEN + CAST ( NULL AS REAL ) * COUNT ( * ) THEN + 89 + - - 36 WHEN - 36 - + 72 + + + MAX ( DISTINCT 52 ) THEN NULL END
----
NULL

query I rowsort
SELECT CASE - + 46 WHEN + 12 - - 64 THEN 40 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 93 * - NULLIF ( 79, - 3 )
----
-7347

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT + MIN( 29 ) * SUM( ALL 44 ) * 76 + + NULLIF ( + 50, - 75 )
----
97026

skipif mysql # not compatible
query I rowsort label-6931
SELECT + MIN ( 29 ) * SUM ( ALL 44 ) * 76 + + NULLIF ( + 50, - 75 )
----
97026

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6932
SELECT COUNT( * ) DIV NULLIF ( NULLIF ( + 93, - + 54 * - 73 ), 54 - + 43 * - 80 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6932
SELECT COUNT ( * ) / NULLIF ( NULLIF ( + 93, - + 54 * - 73 ), 54 - + 43 * - 80 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6933
SELECT 2 * + + 96 * - - 79 + - + 51 - - CAST( NULL AS SIGNED ) * + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6933
SELECT 2 * + + 96 * - - 79 + - + 51 - - CAST ( NULL AS INTEGER ) * + 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT ALL - + CASE + ( + 7 ) WHEN 96 - 25 THEN NULL ELSE - + SUM( ALL - ( + - 85 ) ) END
----
85

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL - + CASE + ( + 7 ) WHEN 96 - 25 THEN NULL ELSE - + SUM ( ALL - ( + - 85 ) ) END
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6935
SELECT + + ( - 34 ) AS col2, - CAST( NULL AS SIGNED ) * + COUNT( * ) * - 15 / - 60
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-6935
SELECT + + ( - 34 ) AS col2, - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 15 / - 60
----
-34
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6936
SELECT ALL - CAST( + - CAST( + 92 AS DECIMAL ) AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL - CAST ( + - CAST ( + 92 AS REAL ) AS INTEGER )
----
92

query I rowsort
SELECT 79 * - 22
----
-1738

onlyif mysql # aggregate syntax: 
query II rowsort label-6938
SELECT - 89 * - COUNT( * ) AS col1, - 28
----
89
-28

skipif mysql # not compatible
query II rowsort label-6938
SELECT - 89 * - COUNT ( * ) AS col1, - 28
----
89
-28

query I rowsort
SELECT DISTINCT - ( + + 44 ) AS col1
----
-44

query I rowsort
SELECT DISTINCT 52 + + 46
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6941
SELECT ALL - COUNT( * ), 97 AS col1
----
-1
97

skipif mysql # not compatible
query II rowsort label-6941
SELECT ALL - COUNT ( * ), 97 AS col1
----
-1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL - COUNT( * ) + + COUNT( + 29 )
----
0

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL - COUNT ( * ) + + COUNT ( + 29 )
----
0

query I rowsort
SELECT ( - 26 ) * - - 38 + - + 52
----
-1040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6944
SELECT + 17 * + 48 * + + 73 + - - MIN( DISTINCT - + NULLIF ( + + CAST( + CAST( 97 AS SIGNED ) AS SIGNED ), - - CAST( - 92 AS DECIMAL ) ) )
----
59471

skipif mysql # not compatible
query I rowsort label-6944
SELECT + 17 * + 48 * + + 73 + - - MIN ( DISTINCT - + NULLIF ( + + CAST ( + CAST ( 97 AS INTEGER ) AS INTEGER ), - - CAST ( - 92 AS REAL ) ) )
----
59471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6945
SELECT ALL - 30 + - - 73 * - CASE - 28 WHEN + - 39 THEN + + 89 * + + 44 WHEN - 69 * + 93 THEN - 20 WHEN + - CAST( NULL AS SIGNED ) THEN + 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL - 30 + - - 73 * - CASE - 28 WHEN + - 39 THEN + + 89 * + + 44 WHEN - 69 * + 93 THEN - 20 WHEN + - CAST ( NULL AS INTEGER ) THEN + 68 END
----
NULL

query I rowsort
SELECT 9 + 78 AS col0
----
87

query II rowsort
SELECT 6, - 16 col2
----
6
-16

query I rowsort
SELECT 83 * 78
----
6474

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT ALL + 58 + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL + 58 + COUNT ( * )
----
59

query I rowsort
SELECT 28 + 86
----
114

query I rowsort
SELECT 99 * - 98
----
-9702

query I rowsort
SELECT 34 * 42 AS col1
----
1428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6953
SELECT COALESCE ( - CAST( - 54 AS SIGNED ), - + MIN( + 65 ) - - 61 ) + 60 * 17 AS col2
----
1074

skipif mysql # not compatible
query I rowsort label-6953
SELECT COALESCE ( - CAST ( - 54 AS INTEGER ), - + MIN ( + 65 ) - - 61 ) + 60 * 17 AS col2
----
1074

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT DISTINCT - 13 + - - CASE COUNT( * ) WHEN - 66 * - 77 THEN - ( - - 67 ) WHEN - COALESCE ( 74, 2 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT - 13 + - - CASE COUNT ( * ) WHEN - 66 * - 77 THEN - ( - - 67 ) WHEN - COALESCE ( 74, 2 ) THEN NULL END AS col0
----
NULL

query II rowsort
SELECT ALL 32 AS col1, 72 col0
----
32
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6956
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT DISTINCT + 40 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT + 40 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6958
SELECT COALESCE ( - 50, + 96 * CAST( - 51 AS SIGNED ) ) * - + 53 * - 93 * + + SUM( + + 16 ) AS col1
----
-3943200

skipif mysql # not compatible
query I rowsort label-6958
SELECT COALESCE ( - 50, + 96 * CAST ( - 51 AS INTEGER ) ) * - + 53 * - 93 * + + SUM ( + + 16 ) AS col1
----
-3943200

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT ALL SUM( ALL 68 )
----
68

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL SUM ( ALL 68 )
----
68

query I rowsort
SELECT ALL 4 - + 46
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT DISTINCT - SUM( DISTINCT + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT - SUM ( DISTINCT + 54 )
----
-54

query I rowsort
SELECT 76 * - 91 AS col2
----
-6916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6963
SELECT - 37 / 81 * - 37 + - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / - + 52 * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6963
SELECT - 37 / 81 * - 37 + - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - + 52 * 33
----
NULL

query I rowsort
SELECT ALL 6 * 35 AS col1
----
210

query I rowsort
SELECT 55 * + - 73 col0
----
-4015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6966
SELECT + COUNT( * ) * + 36 / - - CAST( NULL AS SIGNED ) - - 14 + 66 * + 34 + + 61 * 49 * 50 AS col1, 29 + + 37 * COUNT( * )
----
NULL
66

skipif mysql # not compatible
query II rowsort label-6966
SELECT + COUNT ( * ) * + 36 / - - CAST ( NULL AS INTEGER ) - - 14 + 66 * + 34 + + 61 * 49 * 50 AS col1, 29 + + 37 * COUNT ( * )
----
NULL
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6967
SELECT + COUNT( * ) DIV MAX( + 19 ) AS col0, - 22 * - 96 AS col1
----
0
2112

skipif mysql # not compatible
query II rowsort label-6967
SELECT + COUNT ( * ) / MAX ( + 19 ) AS col0, - 22 * - 96 AS col1
----
0
2112

onlyif mysql # DIV for integer division: 
query I rowsort label-6968
SELECT + ( + 82 ) DIV + 72
----
1

skipif mysql # not compatible
query I rowsort label-6968
SELECT + ( + 82 ) / + 72
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6969
SELECT + CAST( NULL AS SIGNED ) * + + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6969
SELECT + CAST ( NULL AS INTEGER ) * + + 79 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT DISTINCT 52 DIV - 77 * - + 30 * 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6970
SELECT DISTINCT 52 / - 77 * - + 30 * 28 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6971
SELECT ALL - NULLIF ( + 25, COALESCE ( - 99, - COALESCE ( - CAST( NULL AS SIGNED ), + SUM( ALL + 50 ), + SUM( ALL - ( - CAST( NULL AS SIGNED ) ) ) ) ) * + AVG ( - ( + + ( 96 ) ) ) + - 35 + - + 64 + 99 ) + - 75 AS col1, + COUNT( * ) AS col2, - COUNT( * ) + + - 42 + + 5 * + 7 * - CASE - CASE - 2 WHEN - 22 THEN CAST( NULL AS SIGNED ) * 62 WHEN 62 * - - SUM( ALL - 85 ) + + 3 - 99 + 21 THEN 28 ELSE 59 END WHEN - COALESCE ( SUM( 36 ), + 26 - ( - 80 ), - COUNT( * ) + - 74 ) * 16 THEN SUM( + CAST( NULL AS SIGNED ) ) WHEN + COUNT( * ) THEN NULL ELSE NULL END * 49 + + 1
----
-100
1
NULL

skipif mysql # not compatible
query III rowsort label-6971
SELECT ALL - NULLIF ( + 25, COALESCE ( - 99, - COALESCE ( - CAST ( NULL AS INTEGER ), + SUM ( ALL + 50 ), + SUM ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) ) ) * + AVG ( - ( + + ( 96 ) ) ) + - 35 + - + 64 + 99 ) + - 75 AS col1, + COUNT ( * ) AS col2, - COUNT ( * ) + + - 42 + + 5 * + 7 * - CASE - CASE - 2 WHEN - 22 THEN CAST ( NULL AS INTEGER ) * 62 WHEN 62 * - - SUM ( ALL - 85 ) + + 3 - 99 + 21 THEN 28 ELSE 59 END WHEN - COALESCE ( SUM ( 36 ), + 26 - ( - 80 ), - COUNT ( * ) + - 74 ) * 16 THEN SUM ( + CAST ( NULL AS INTEGER ) ) WHEN + COUNT ( * ) THEN NULL ELSE NULL END * 49 + + 1
----
-100
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT DISTINCT + MAX( ALL + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT + MAX ( ALL + 52 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6973
SELECT DISTINCT 98 + 3 * 59 + - - 37 DIV COUNT( * ) DIV 70
----
275

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT 98 + 3 * 59 + - - 37 / COUNT ( * ) / 70
----
275

query I rowsort
SELECT - 27 * + 11 * + 22
----
-6534

query I rowsort
SELECT ALL 33 + + 11 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT DISTINCT MIN( DISTINCT + 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6976
SELECT DISTINCT MIN ( DISTINCT + 26 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT DISTINCT SUM( 83 )
----
83

skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT SUM ( 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT DISTINCT COUNT( * ) + - + ( 94 )
----
-93

skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT COUNT ( * ) + - + ( 94 )
----
-93

query I rowsort
SELECT DISTINCT COALESCE ( 84, + 50 * + 66 * - 75 + 25 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT ALL + ( + + 61 ) - + - NULLIF ( - + COUNT( ALL + 82 ), ( 68 ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL + ( + + 61 ) - + - NULLIF ( - + COUNT ( ALL + 82 ), ( 68 ) ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT DISTINCT SUM( DISTINCT - + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT SUM ( DISTINCT - + 33 )
----
-33

query I rowsort
SELECT - 61 * + 24 * - 42 AS col2
----
61488

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT + 31 + - MAX( - 83 ) AS col2
----
114

skipif mysql # not compatible
query I rowsort label-6983
SELECT + 31 + - MAX ( - 83 ) AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT - COUNT( * ) - + - 85
----
84

skipif mysql # not compatible
query I rowsort label-6984
SELECT - COUNT ( * ) - + - 85
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT - 49 + - 13 + MIN( - + 3 ) * - 81
----
181

skipif mysql # not compatible
query I rowsort label-6985
SELECT - 49 + - 13 + MIN ( - + 3 ) * - 81
----
181

query I rowsort
SELECT ALL - ( + 38 ) - + 91
----
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-6987
SELECT - + 51 / - - 21 * + 37 + - ( 29 ) + + CASE COUNT( * ) WHEN ( + 56 ) THEN - - 0 END + 71 * + - 33 AS col1, ( - ( 32 ) )
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-6987
SELECT - + 51 / - - 21 * + 37 + - ( 29 ) + + CASE COUNT ( * ) WHEN ( + 56 ) THEN - - 0 END + 71 * + - 33 AS col1, ( - ( 32 ) )
----
NULL
-32

query I rowsort
SELECT - + 46 * + 18 AS col0
----
-828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6989
SELECT - - CASE CAST( NULL AS SIGNED ) WHEN - 83 + - 21 + + + 2 * 12 / 33 THEN NULL WHEN + 33 THEN + - COUNT( * ) END + + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT - - CASE CAST ( NULL AS INTEGER ) WHEN - 83 + - 21 + + + 2 * 12 / 33 THEN NULL WHEN + 33 THEN + - COUNT ( * ) END + + 70 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6990
SELECT + - 71 * CAST( NULL AS SIGNED ) + 87 + + SUM( + - 20 ) + 68 * + - 31 * + + COALESCE ( + - COUNT( * ), + 72 ) + + 39 / + - 55 * - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT + - 71 * CAST ( NULL AS INTEGER ) + 87 + + SUM ( + - 20 ) + 68 * + - 31 * + + COALESCE ( + - COUNT ( * ), + 72 ) + + 39 / + - 55 * - 49
----
NULL

query I rowsort
SELECT ALL - 65 * - 77 * - 11 + - 34 AS col0
----
-55089

query I rowsort
SELECT - + 2 + + 32
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6993
SELECT ALL + + COALESCE ( 96, MIN( ALL - CAST( NULL AS SIGNED ) ) + + 46 DIV 61 + - 11 ) * 92
----
8832

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL + + COALESCE ( 96, MIN ( ALL - CAST ( NULL AS INTEGER ) ) + + 46 / 61 + - 11 ) * 92
----
8832

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT - COUNT( ALL 63 ) * 51
----
-51

skipif mysql # not compatible
query I rowsort label-6994
SELECT - COUNT ( ALL 63 ) * 51
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6995
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT ALL - - 2 * - COUNT( * ) * - + 49 * - 6 AS col1
----
-588

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL - - 2 * - COUNT ( * ) * - + 49 * - 6 AS col1
----
-588

query I rowsort
SELECT - 6 * - 21 + - 91
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT + COALESCE ( + - COUNT( * ), - 51, 57 * + ( ( + 87 ) ) + ( - 73 ) * + 28 * + 58 * - - 57, - 70 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6998
SELECT + COALESCE ( + - COUNT ( * ), - 51, 57 * + ( ( + 87 ) ) + ( - 73 ) * + 28 * + 58 * - - 57, - 70 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT - NULLIF ( - COUNT( * ), + - 46 * + + ( + 77 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6999
SELECT - NULLIF ( - COUNT ( * ), + - 46 * + + ( + 77 ) )
----
1

query I rowsort
SELECT - 96 - 5
----
-101

query I rowsort
SELECT 84 * ( - 88 ) + + COALESCE ( 92, - + 41 * + 88 * - 70 )
----
-7300

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT ALL + + 72 * - 98 + + 71 + + 72 + + 83 + + COUNT( * ) AS col2
----
-6829

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL + + 72 * - 98 + + 71 + + 72 + + 83 + + COUNT ( * ) AS col2
----
-6829

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL 52 * COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL 52 * COUNT ( * ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7004
SELECT CAST( 26 AS SIGNED ) DIV 33 * - - COALESCE ( - 98, + + 72 ) - - + 29 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-7004
SELECT CAST ( 26 AS INTEGER ) / 33 * - - COALESCE ( - 98, + + 72 ) - - + 29 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT ALL COUNT( 66 ) * 58 + + 87
----
145

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL COUNT ( 66 ) * 58 + + 87
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT + COUNT( + 72 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7006
SELECT + COUNT ( + 72 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7007
SELECT + 8 * + ( - SUM( ALL - - 63 ) ) + CAST( + 90 AS SIGNED ) col1
----
-414

skipif mysql # not compatible
query I rowsort label-7007
SELECT + 8 * + ( - SUM ( ALL - - 63 ) ) + CAST ( + 90 AS INTEGER ) col1
----
-414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7008
SELECT + CAST( NULL AS SIGNED ) col1, COUNT( - ( + 23 ) )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7008
SELECT + CAST ( NULL AS INTEGER ) col1, COUNT ( - ( + 23 ) )
----
NULL
1

query I rowsort
SELECT + 91 + + NULLIF ( + 53, + 87 )
----
144

query I rowsort
SELECT + 85 * + 88
----
7480

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT SUM( + 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7011
SELECT SUM ( + 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT - ( + - 66 ) * + COUNT( * ) + - 36 + - 5 - 49 + - 94 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-7012
SELECT - ( + - 66 ) * + COUNT ( * ) + - 36 + - 5 - 49 + - 94 AS col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT MAX( + NULLIF ( + + 57, + 87 ) )
----
57

skipif mysql # not compatible
query I rowsort label-7013
SELECT MAX ( + NULLIF ( + + 57, + 87 ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT + 38 + + COUNT( * ) + - 6 * + - 64 AS col0
----
423

skipif mysql # not compatible
query I rowsort label-7014
SELECT + 38 + + COUNT ( * ) + - 6 * + - 64 AS col0
----
423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7015
SELECT + 49 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7015
SELECT + 49 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT - ( ( - 66 ) ) * - SUM( ALL - - 23 )
----
-1518

skipif mysql # not compatible
query I rowsort label-7016
SELECT - ( ( - 66 ) ) * - SUM ( ALL - - 23 )
----
-1518

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7017
SELECT NULLIF ( - - COALESCE ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - 34 DIV + - 92 + - 80 ), + + 86 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-7017
SELECT NULLIF ( - - COALESCE ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - 34 / + - 92 + - 80 ), + + 86 ) AS col1
----
-80

query I rowsort
SELECT DISTINCT 43 * - - 64 AS col2
----
2752

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT ALL - NULLIF ( + COUNT( * ), + 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL - NULLIF ( + COUNT ( * ), + 70 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7020
SELECT - - COALESCE ( + 30, - + 70 - - NULLIF ( COALESCE ( + + 56, 37 + - 42 + + SUM( - 6 ), + - COUNT( * ) - - - 33 DIV + 71 + - ( + + 33 ) ), - - 42 + - 70 ), + 22 ) DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-7020
SELECT - - COALESCE ( + 30, - + 70 - - NULLIF ( COALESCE ( + + 56, 37 + - 42 + + SUM ( - 6 ), + - COUNT ( * ) - - - 33 / + 71 + - ( + + 33 ) ), - - 42 + - 70 ), + 22 ) / + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT DISTINCT + + 28 * - - 92 + - NULLIF ( - SUM( DISTINCT + 45 ), - - 25 ) * - 69 AS col0
----
-529

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT + + 28 * - - 92 + - NULLIF ( - SUM ( DISTINCT + 45 ), - - 25 ) * - 69 AS col0
----
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT + + 95 * - COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-7022
SELECT + + 95 * - COUNT ( * ) AS col2
----
-95

query I rowsort
SELECT - COALESCE ( + + 59, + 94 ) AS col1
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7024
SELECT ALL + CAST( + 39 AS SIGNED ) DIV + - ( + - 1 )
----
39

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL + CAST ( + 39 AS INTEGER ) / + - ( + - 1 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7025
SELECT + 58 DIV + - 28
----
-2

skipif mysql # not compatible
query I rowsort label-7025
SELECT + 58 / + - 28
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7026
SELECT - 28 + + 64 - + - COUNT( DISTINCT - 78 ) * + - 16 AS col2, - 20 AS col2
----
20
-20

skipif mysql # not compatible
query II rowsort label-7026
SELECT - 28 + + 64 - + - COUNT ( DISTINCT - 78 ) * + - 16 AS col2, - 20 AS col2
----
20
-20

query I rowsort
SELECT ALL + 18 * - - 75 AS col2
----
1350

query I rowsort
SELECT DISTINCT + 91 * 10 AS col2
----
910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7029
SELECT DISTINCT - COALESCE ( - CAST( - - COUNT( * ) AS SIGNED ), + - 75, 68 ) + + 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT - COALESCE ( - CAST ( - - COUNT ( * ) AS INTEGER ), + - 75, 68 ) + + 0 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT + - MAX( ALL - 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7030
SELECT + - MAX ( ALL - 2 ) AS col0
----
2

query I rowsort
SELECT ALL - + ( + - 65 )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-7032
SELECT 62 DIV + 27 + 0 * 17 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7032
SELECT 62 / + 27 + 0 * 17 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT DISTINCT - 26 + - - 34 + - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT - 26 + - - 34 + - COUNT ( * ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7034
SELECT + 97 AS col2, - 60 * - + COUNT( * ) col1
----
97
60

skipif mysql # not compatible
query II rowsort label-7034
SELECT + 97 AS col2, - 60 * - + COUNT ( * ) col1
----
97
60

query I rowsort
SELECT NULLIF ( - 21, - ( - + 31 ) ) + + 15 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT ALL - CASE + 95 WHEN 39 * + + 61 * + 91 THEN + - 98 + 47 + + 60 * - + 92 + 98 / + 44 WHEN 81 THEN - CASE + 11 WHEN + 31 + + 22 THEN + ( NULLIF ( - 67, 99 - + SUM( - + 33 ) ) ) ELSE + ( 62 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL - CASE + 95 WHEN 39 * + + 61 * + 91 THEN + - 98 + 47 + + 60 * - + 92 + 98 / + 44 WHEN 81 THEN - CASE + 11 WHEN + 31 + + 22 THEN + ( NULLIF ( - 67, 99 - + SUM ( - + 33 ) ) ) ELSE + ( 62 ) END END
----
NULL

query I rowsort
SELECT 99 * 37 AS col2
----
3663

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT DISTINCT COALESCE ( + 69, - - 66 ) * + + COUNT( DISTINCT - 41 )
----
69

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT COALESCE ( + 69, - - 66 ) * + + COUNT ( DISTINCT - 41 )
----
69

query II rowsort
SELECT DISTINCT - 50, 25 AS col0
----
-50
25

query I rowsort
SELECT ALL ( + + 42 ) - - 43
----
85

query I rowsort
SELECT 8 + + - 81 AS col0
----
-73

query I rowsort
SELECT ALL ( 74 ) * - - 88 + - 84
----
6428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7043
SELECT COUNT( * ) DIV - - 9
----
0

skipif mysql # not compatible
query I rowsort label-7043
SELECT COUNT ( * ) / - - 9
----
0

query II rowsort
SELECT DISTINCT 34 AS col1, 30 * 11 AS col0
----
34
330

onlyif mysql # aggregate syntax: 
query III rowsort label-7045
SELECT ALL 40, + COUNT( 0 ) * - 48 * + 34 + + + 35 * + MIN( DISTINCT - + 68 ) + + COUNT( * ) AS col0, + 9 + - + 45 + - 94 AS col2
----
40
-4011
-130

skipif mysql # not compatible
query III rowsort label-7045
SELECT ALL 40, + COUNT ( 0 ) * - 48 * + 34 + + + 35 * + MIN ( DISTINCT - + 68 ) + + COUNT ( * ) AS col0, + 9 + - + 45 + - 94 AS col2
----
40
-4011
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT MIN( ALL + - 27 ) - - - 68 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-7046
SELECT MIN ( ALL + - 27 ) - - - 68 AS col1
----
-95

query I rowsort
SELECT ALL + ( + ( - 83 ) ) AS col1
----
-83

query I rowsort
SELECT 82 * - - 64
----
5248

query I rowsort
SELECT DISTINCT - 38 + + - 97 AS col1
----
-135

query I rowsort
SELECT COALESCE ( - - 18, - 30 * 87 ) * + 29 AS col2
----
522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7051
SELECT ALL + COALESCE ( - 29, + 77, + + COUNT( * ) ) + + 91 - - ( + 1 ) + - 97 + - + CASE - 59 WHEN - - 19 / + CASE + 71 WHEN COUNT( * ) * + 33 * - - COUNT( * ) * COUNT( 88 ) THEN + + 69 + + + COUNT( - 74 ) * + 89 WHEN + COUNT( * ) * 30 + - + 37 + + 56 + 22 * 43 - - 5 THEN - 37 + - + 69 WHEN COUNT( * ) * 52 + - - CAST( NULL AS SIGNED ) THEN - 11 END THEN + 82 WHEN + 75 THEN - 78 END / - ( CASE - 53 WHEN 39 * - MIN( ALL - 51 ) + - NULLIF ( - CAST( NULL AS DECIMAL ) + + COUNT( 65 ), - MIN( - 18 ) ) THEN + ( - 75 ) + - ( - 19 ) * + 67 WHEN 42 + COUNT( * ) * + 73 THEN NULL ELSE NULL END - 6 ) * + SUM( ALL 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL + COALESCE ( - 29, + 77, + + COUNT ( * ) ) + + 91 - - ( + 1 ) + - 97 + - + CASE - 59 WHEN - - 19 / + CASE + 71 WHEN COUNT ( * ) * + 33 * - - COUNT ( * ) * COUNT ( 88 ) THEN + + 69 + + + COUNT ( - 74 ) * + 89 WHEN + COUNT ( * ) * 30 + - + 37 + + 56 + 22 * 43 - - 5 THEN - 37 + - + 69 WHEN COUNT ( * ) * 52 + - - CAST ( NULL AS INTEGER ) THEN - 11 END THEN + 82 WHEN + 75 THEN - 78 END / - ( CASE - 53 WHEN 39 * - MIN ( ALL - 51 ) + - NULLIF ( - CAST ( NULL AS REAL ) + + COUNT ( 65 ), - MIN ( - 18 ) ) THEN + ( - 75 ) + - ( - 19 ) * + 67 WHEN 42 + COUNT ( * ) * + 73 THEN NULL ELSE NULL END - 6 ) * + SUM ( ALL 23 ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 2 AS col2, - 50 AS col0
----
-2
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7053
SELECT 61 * 65 DIV + 4
----
991

skipif mysql # not compatible
query I rowsort label-7053
SELECT 61 * 65 / + 4
----
991

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7054
SELECT 20 - - - 4 AS col0, CAST( + - 65 AS SIGNED ) + 1 + - 3 AS col0
----
16
-67

skipif mysql # not compatible
query II rowsort label-7054
SELECT 20 - - - 4 AS col0, CAST ( + - 65 AS INTEGER ) + 1 + - 3 AS col0
----
16
-67

query II rowsort
SELECT ALL 67 AS col1, + 87
----
67
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT - 17 - + COUNT( + + ( 21 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-7056
SELECT - 17 - + COUNT ( + + ( 21 ) )
----
-18

query II rowsort
SELECT - 29 AS col1, 53
----
-29
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7058
SELECT SUM( DISTINCT 50 ) + - CAST( NULL AS SIGNED ) / - 81 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7058
SELECT SUM ( DISTINCT 50 ) + - CAST ( NULL AS INTEGER ) / - 81 col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 48, - 62 + + + 44 - + + 42 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT ALL + 62 + + COUNT( * ) + + 28 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL + 62 + + COUNT ( * ) + + 28 AS col2
----
91

query I rowsort
SELECT ALL - 81 + - 93 * ( 52 ) + - 22 AS col0
----
-4939

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT COUNT( * ) * + 88 / + - ( + CASE + 97 WHEN - COUNT( * ) + - - 6 + - 48 + 87 + - + NULLIF ( + 61, - - 34 ) - + + 36 / - 50 THEN NULL WHEN + - 31 THEN - NULLIF ( + - 91, - 2 + + + 54 ) ELSE NULL END ) * + ( 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7062
SELECT COUNT ( * ) * + 88 / + - ( + CASE + 97 WHEN - COUNT ( * ) + - - 6 + - 48 + 87 + - + NULLIF ( + 61, - - 34 ) - + + 36 / - 50 THEN NULL WHEN + - 31 THEN - NULLIF ( + - 91, - 2 + + + 54 ) ELSE NULL END ) * + ( 70 )
----
NULL

query II rowsort
SELECT ALL + 67 * - 18 AS col1, + 93 col0
----
-1206
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7064
SELECT 4 DIV - 45 DIV COUNT( + 63 ) + - COALESCE ( 16, COUNT( * ) ) + - 48 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-7064
SELECT 4 / - 45 / COUNT ( + 63 ) + - COALESCE ( 16, COUNT ( * ) ) + - 48 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL - CASE COUNT( * ) WHEN - 17 + + 44 + + MAX( + 48 ) * - 89 + + + 69 * - 77 THEN - 66 WHEN - 1 THEN - SUM( ALL - + 7 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL - CASE COUNT ( * ) WHEN - 17 + + 44 + + MAX ( + 48 ) * - 89 + + + 69 * - 77 THEN - 66 WHEN - 1 THEN - SUM ( ALL - + 7 ) END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7066
SELECT 34 - + MAX( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7066
SELECT 34 - + MAX ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 4 * - ( - 80 ) + + - 52 AS col1
----
268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7068
SELECT 44 + + ( CASE - CASE COUNT( * ) WHEN ( + 1 ) THEN - 55 WHEN 70 + - 28 * + - COUNT( * ) THEN - 38 END WHEN - 95 THEN - 84 * + + COUNT( * ) WHEN + - NULLIF ( 32, + + 39 * - CAST( NULL AS SIGNED ) + + 37 / - 66 ) + - + 19 * - COUNT( * ) THEN + + 58 END ) + 95 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7068
SELECT 44 + + ( CASE - CASE COUNT ( * ) WHEN ( + 1 ) THEN - 55 WHEN 70 + - 28 * + - COUNT ( * ) THEN - 38 END WHEN - 95 THEN - 84 * + + COUNT ( * ) WHEN + - NULLIF ( 32, + + 39 * - CAST ( NULL AS INTEGER ) + + 37 / - 66 ) + - + 19 * - COUNT ( * ) THEN + + 58 END ) + 95 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7069
SELECT ALL - CASE 2 WHEN - 32 + 20 + - 81 THEN - 36 * + 9 + - + CAST( - + MAX( + 93 ) AS SIGNED ) + - MAX( DISTINCT + 73 ) * - + ( 98 ) * SUM( ALL 36 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL - CASE 2 WHEN - 32 + 20 + - 81 THEN - 36 * + 9 + - + CAST ( - + MAX ( + 93 ) AS INTEGER ) + - MAX ( DISTINCT + 73 ) * - + ( 98 ) * SUM ( ALL 36 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT + 37 * + 80 * + COUNT( * ) + 26 col0
----
2986

skipif mysql # not compatible
query I rowsort label-7070
SELECT + 37 * + 80 * + COUNT ( * ) + 26 col0
----
2986

query I rowsort
SELECT - 62 * - 38 + + - 42
----
2314

onlyif mysql # aggregate syntax: 
query II rowsort label-7072
SELECT 33 + + - 91, COUNT( * ) AS col2
----
-58
1

skipif mysql # not compatible
query II rowsort label-7072
SELECT 33 + + - 91, COUNT ( * ) AS col2
----
-58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT 43 + - MIN( + + 88 )
----
-45

skipif mysql # not compatible
query I rowsort label-7073
SELECT 43 + - MIN ( + + 88 )
----
-45

query I rowsort
SELECT ALL - - 7 + - + 45 + - + 31 AS col2
----
-69

query I rowsort
SELECT - - 96 col2
----
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7076
SELECT + 65 DIV - COALESCE ( - 28, CAST( - 25 AS SIGNED ) * 36 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7076
SELECT + 65 / - COALESCE ( - 28, CAST ( - 25 AS INTEGER ) * 36 ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7077
SELECT ALL NULLIF ( + + 4, + 23 ) + + 55 * + 50 AS col0, + NULLIF ( 56, 25 / CAST( NULL AS SIGNED ) + COALESCE ( + COUNT( * ), - 87 ) ) * - ( - 56 ) + 3 + - ( 45 ) + - ( + 0 ) AS col2
----
2754
3094

skipif mysql # not compatible
query II rowsort label-7077
SELECT ALL NULLIF ( + + 4, + 23 ) + + 55 * + 50 AS col0, + NULLIF ( 56, 25 / CAST ( NULL AS INTEGER ) + COALESCE ( + COUNT ( * ), - 87 ) ) * - ( - 56 ) + 3 + - ( 45 ) + - ( + 0 ) AS col2
----
2754
3094

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL + + 95 * - SUM( DISTINCT - 72 ) * COUNT( * ) + - 66 AS col2
----
6774

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL + + 95 * - SUM ( DISTINCT - 72 ) * COUNT ( * ) + - 66 AS col2
----
6774

query I rowsort
SELECT 89 + 40 * 95 * - 30 col2
----
-113911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7080
SELECT DISTINCT - MIN( ALL + CAST( - 29 AS SIGNED ) ) * - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT - MIN ( ALL + CAST ( - 29 AS INTEGER ) ) * - COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7081
SELECT - COALESCE ( - + 56, 9 * - - COUNT( * ) ) DIV 55, COUNT( 19 ) * 77 * + - 99 - 97 AS col0
----
1
-7720

skipif mysql # not compatible
query II rowsort label-7081
SELECT - COALESCE ( - + 56, 9 * - - COUNT ( * ) ) / 55, COUNT ( 19 ) * 77 * + - 99 - 97 AS col0
----
1
-7720

query I rowsort
SELECT + 1 + 34
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT - + 62 * CASE - + COUNT( * ) WHEN - MAX( ALL 27 ) THEN NULL WHEN 20 THEN NULL ELSE + 81 * - 42 * + + COUNT( * ) - - 20 * 10 END * - 5 col2
----
-992620

skipif mysql # not compatible
query I rowsort label-7083
SELECT - + 62 * CASE - + COUNT ( * ) WHEN - MAX ( ALL 27 ) THEN NULL WHEN 20 THEN NULL ELSE + 81 * - 42 * + + COUNT ( * ) - - 20 * 10 END * - 5 col2
----
-992620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT + 14 + 37 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7084
SELECT + 14 + 37 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7085
SELECT ALL + 82 * + 8 + AVG ( + 81 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL + 82 * + 8 + AVG ( + 81 ) + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - ( 33 ), 86 AS col1
----
-33
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7087
SELECT ALL + 32 - - 21, - COUNT( * ) AS col1
----
53
-1

skipif mysql # not compatible
query II rowsort label-7087
SELECT ALL + 32 - - 21, - COUNT ( * ) AS col1
----
53
-1

query I rowsort
SELECT DISTINCT + 69 * + + 19 * + ( + 28 ) AS col2
----
36708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7089
SELECT ALL CAST( NULL AS SIGNED ) * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL CAST ( NULL AS INTEGER ) * - 65
----
NULL

query I rowsort
SELECT ALL 34 - + - ( + 31 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT + + 30 + - COUNT( * ) col0
----
29

skipif mysql # not compatible
query I rowsort label-7091
SELECT + + 30 + - COUNT ( * ) col0
----
29

query I rowsort
SELECT + ( - + 73 ) * 34 * + 70 AS col0
----
-173740

query I rowsort
SELECT + - 55 + - 49 - - 17
----
-87

query II rowsort
SELECT - ( + ( - 40 ) ) AS col2, 90 AS col1
----
40
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7095
SELECT + COUNT( * ) + + CASE AVG ( DISTINCT + ( - 19 ) ) WHEN + - 85 * CAST( NULL AS SIGNED ) THEN NULL ELSE - 46 + - 36 + COUNT( * ) END DIV 34 * - COALESCE ( - + 56, 56 ) AS col2
----
-111

skipif mysql # not compatible
query I rowsort label-7095
SELECT + COUNT ( * ) + + CASE AVG ( DISTINCT + ( - 19 ) ) WHEN + - 85 * CAST ( NULL AS INTEGER ) THEN NULL ELSE - 46 + - 36 + COUNT ( * ) END / 34 * - COALESCE ( - + 56, 56 ) AS col2
----
-111

query I rowsort
SELECT + 75 - + 27 AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7097
SELECT 81 * - - 79 - SUM( 29 ) + + COUNT( * ) - - 61 DIV + 77 + + 91 AS col0
----
6462

skipif mysql # not compatible
query I rowsort label-7097
SELECT 81 * - - 79 - SUM ( 29 ) + + COUNT ( * ) - - 61 / + 77 + + 91 AS col0
----
6462

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT ALL 33 * + COUNT( * ) * + 89
----
2937

skipif mysql # not compatible
query I rowsort label-7098
SELECT ALL 33 * + COUNT ( * ) * + 89
----
2937

query I rowsort
SELECT + 45 * 15
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT ALL - NULLIF ( + + 72, - + 48 ) / + CASE NULLIF ( - 53, + 63 + + COUNT( * ) + - COUNT( * ) ) WHEN - 30 THEN - 70 WHEN - - 46 / 42 * COALESCE ( - - SUM( - 28 ), + + MAX( DISTINCT 57 ) ) * + + 94 * 98 THEN NULL WHEN - 90 / 30 THEN - - 38 + 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL - NULLIF ( + + 72, - + 48 ) / + CASE NULLIF ( - 53, + 63 + + COUNT ( * ) + - COUNT ( * ) ) WHEN - 30 THEN - 70 WHEN - - 46 / 42 * COALESCE ( - - SUM ( - 28 ), + + MAX ( DISTINCT 57 ) ) * + + 94 * 98 THEN NULL WHEN - 90 / 30 THEN - - 38 + 7 END
----
NULL

query I rowsort
SELECT 0 * + 85 + + 50
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7102
SELECT - 58 DIV 70 + + ( - ( + 10 ) ) * + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-7102
SELECT - 58 / 70 + + ( - ( + 10 ) ) * + COUNT ( * )
----
-10

query I rowsort
SELECT CASE + 87 WHEN 61 * ( 88 ) THEN + ( + 59 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 85 * CASE + 44 WHEN 75 THEN + NULLIF ( - + 28, + NULLIF ( + - 25, - 17 + + - 81 ) + + 57 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT DISTINCT - 19 * - COUNT( * ) * - 97
----
-1843

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT - 19 * - COUNT ( * ) * - 97
----
-1843

onlyif mysql # DIV for integer division: 
query I rowsort label-7106
SELECT ALL 67 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL 67 / 87
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7107
SELECT DISTINCT - 62 * - - CAST( NULL AS SIGNED ) / - - 62 + 2 * - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT - 62 * - - CAST ( NULL AS INTEGER ) / - - 62 + 2 * - 94 AS col0
----
NULL

query II rowsort
SELECT + 37 AS col0, 77 - - - 92 AS col2
----
37
-15

query I rowsort
SELECT - - 52 * - 64 AS col0
----
-3328

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT ALL + 88 * - - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL + 88 * - - COUNT ( * )
----
88

query II rowsort
SELECT 82 AS col2, 73
----
82
73

query I rowsort
SELECT DISTINCT 42 * + - 87 + - 48 - 62 AS col0
----
-3764

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT - 84 * - COALESCE ( COUNT( * ), + - 5, + - 76 ) - 0 + 61
----
145

skipif mysql # not compatible
query I rowsort label-7113
SELECT - 84 * - COALESCE ( COUNT ( * ), + - 5, + - 76 ) - 0 + 61
----
145

query II rowsort
SELECT - - 13 AS col2, 18
----
13
18

query I rowsort
SELECT - 65 + - 75 AS col1
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT ALL - 61 - + SUM( ALL 66 )
----
-127

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL - 61 - + SUM ( ALL 66 )
----
-127

onlyif mysql # aggregate syntax: 
query II rowsort label-7117
SELECT - COUNT( * ) + + 70 - - - 34 AS col2, - COALESCE ( 87, ( - 24 ) ) col2
----
35
-87

skipif mysql # not compatible
query II rowsort label-7117
SELECT - COUNT ( * ) + + 70 - - - 34 AS col2, - COALESCE ( 87, ( - 24 ) ) col2
----
35
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7118
SELECT - 88 - + 78 DIV + 17 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7118
SELECT - 88 - + 78 / + 17 AS col0
----
-92

query II rowsort
SELECT ALL 86, 21 AS col1
----
86
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7120
SELECT + - 1 - + + CAST( - COUNT( * ) AS SIGNED ), + 3 + + COUNT( * ) col0
----
0
4

skipif mysql # not compatible
query II rowsort label-7120
SELECT + - 1 - + + CAST ( - COUNT ( * ) AS INTEGER ), + 3 + + COUNT ( * ) col0
----
0
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7121
SELECT - - 90 * + + CAST( NULL AS SIGNED ) * - COUNT( * ) + - 51 / 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7121
SELECT - - 90 * + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 51 / 21
----
NULL

query I rowsort
SELECT + + 84 * + 60 AS col2
----
5040

query I rowsort
SELECT - - 40 + + + 56
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT DISTINCT ( + + MAX( + - 65 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT ( + + MAX ( + - 65 ) )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7125
SELECT - 51 + + CAST( + 18 AS SIGNED ) * - 49 AS col0, + 40 + - COUNT( * ) + + 14 * - COUNT( * ) AS col1
----
-933
25

skipif mysql # not compatible
query II rowsort label-7125
SELECT - 51 + + CAST ( + 18 AS INTEGER ) * - 49 AS col0, + 40 + - COUNT ( * ) + + 14 * - COUNT ( * ) AS col1
----
-933
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7126
SELECT 41 / + 30 + - + 80 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7126
SELECT 41 / + 30 + - + 80 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7127
SELECT + CAST( - 79 AS SIGNED ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-7127
SELECT + CAST ( - 79 AS INTEGER ) col1
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7128
SELECT ALL - 28 DIV + COUNT( * ) + 86 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL - 28 / + COUNT ( * ) + 86 AS col1
----
58

query I rowsort
SELECT ALL 80 * + 82 AS col0
----
6560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT CAST( + 95 AS SIGNED ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-7130
SELECT CAST ( + 95 AS INTEGER ) AS col0
----
95

query II rowsort
SELECT + ( 86 ), 72 AS col2
----
86
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7132
SELECT ALL + 51 DIV - 11 + + COUNT( * ) + + 87 col2
----
84

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL + 51 / - 11 + + COUNT ( * ) + + 87 col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7133
SELECT ALL 59 DIV ( 95 ) + - MIN( + 62 ) - 84 DIV COUNT( ALL - - 17 ) AS col0
----
-146

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL 59 / ( 95 ) + - MIN ( + 62 ) - 84 / COUNT ( ALL - - 17 ) AS col0
----
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7134
SELECT CAST( ( + 94 ) AS SIGNED ) col0
----
94

skipif mysql # not compatible
query I rowsort label-7134
SELECT CAST ( ( + 94 ) AS INTEGER ) col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT + 19 DIV + 2 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7135
SELECT + 19 / + 2 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT - COUNT( * ) + - 17 * COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-7136
SELECT - COUNT ( * ) + - 17 * COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT - 95 * - COALESCE ( 58, - + COUNT( - 58 ) )
----
5510

skipif mysql # not compatible
query I rowsort label-7137
SELECT - 95 * - COALESCE ( 58, - + COUNT ( - 58 ) )
----
5510

query I rowsort
SELECT ALL 39 + - 78 AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7139
SELECT + COALESCE ( + CASE + - COALESCE ( - COUNT( * ), + NULLIF ( - 71, 4 ), AVG ( ALL + - 39 ) + - 61 ) WHEN COUNT( * ) - + + 47 THEN + CAST( NULL AS SIGNED ) + - + NULLIF ( + 31, - 93 DIV - 55 + + + 40 ) WHEN - 59 DIV + CASE + 28 WHEN - 34 + + - 28 THEN NULL WHEN COUNT( * ) * + 10 THEN 19 ELSE + ( - ( ( - 1 ) ) ) END * - - COALESCE ( - + 71, - 80 ) THEN NULL ELSE ( + 85 ) + + ( + 66 ) + - 52 DIV CASE 86 WHEN - 52 THEN NULL WHEN 96 * + 66 + + 97 THEN + AVG ( ALL - CAST( NULL AS SIGNED ) ) END END, 22 * - CASE MAX( DISTINCT 91 ) WHEN 23 DIV + 79 THEN 37 WHEN - 19 THEN NULL ELSE NULL END + 96, 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7139
SELECT + COALESCE ( + CASE + - COALESCE ( - COUNT ( * ), + NULLIF ( - 71, 4 ), AVG ( ALL + - 39 ) + - 61 ) WHEN COUNT ( * ) - + + 47 THEN + CAST ( NULL AS INTEGER ) + - + NULLIF ( + 31, - 93 / - 55 + + + 40 ) WHEN - 59 / + CASE + 28 WHEN - 34 + + - 28 THEN NULL WHEN COUNT ( * ) * + 10 THEN 19 ELSE + ( - ( ( - 1 ) ) ) END * - - COALESCE ( - + 71, - 80 ) THEN NULL ELSE ( + 85 ) + + ( + 66 ) + - 52 / CASE 86 WHEN - 52 THEN NULL WHEN 96 * + 66 + + 97 THEN + AVG ( ALL - CAST ( NULL AS INTEGER ) ) END END, 22 * - CASE MAX ( DISTINCT 91 ) WHEN 23 / + 79 THEN 37 WHEN - 19 THEN NULL ELSE NULL END + 96, 25 ) AS col2
----
25

query I rowsort
SELECT 5 + 5 AS col0
----
10

query I rowsort
SELECT ALL + + 27 * 13
----
351

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT ALL - - CASE - + 83 WHEN + + 50 + + 38 + NULLIF ( - 20, + 17 + 63 + 48 ) THEN NULL WHEN - - 4 * - + 67 + - - COUNT( ALL + 89 ) + + 69 THEN + 79 END * + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL - - CASE - + 83 WHEN + + 50 + + 38 + NULLIF ( - 20, + 17 + 63 + 48 ) THEN NULL WHEN - - 4 * - + 67 + - - COUNT ( ALL + 89 ) + + 69 THEN + 79 END * + 22 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7143
SELECT ALL + + CAST( + 83 AS SIGNED ) - - 9 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL + + CAST ( + 83 AS INTEGER ) - - 9 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT ( - 4 ) * - 18 * - - COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7144
SELECT ( - 4 ) * - 18 * - - COUNT ( * ) AS col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7145
SELECT ALL + 74 * 51 - + 70 + - CASE - + 11 WHEN + 69 * - + ( + 38 ) THEN NULL ELSE + 71 END DIV + 37 col2
----
3703

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL + 74 * 51 - + 70 + - CASE - + 11 WHEN + 69 * - + ( + 38 ) THEN NULL ELSE + 71 END / + 37 col2
----
3703

query I rowsort
SELECT 74 + - 83
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT ALL MAX( 75 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL MAX ( 75 ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7148
SELECT COUNT( DISTINCT + - 31 ) + + CASE ( + + 76 ) WHEN 4 THEN + 85 + + 86 END * + - 21 - 37 + 45 - + 83 / - + COUNT( ALL + 45 ) AS col1, 23 * + 86 AS col2
----
NULL
1978

skipif mysql # not compatible
query II rowsort label-7148
SELECT COUNT ( DISTINCT + - 31 ) + + CASE ( + + 76 ) WHEN 4 THEN + 85 + + 86 END * + - 21 - 37 + 45 - + 83 / - + COUNT ( ALL + 45 ) AS col1, 23 * + 86 AS col2
----
NULL
1978

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7149
SELECT 54 * - 2 DIV - + COALESCE ( + 2, - - COUNT( * ) + ( 23 ) ) AS col2, 90 AS col2
----
54
90

skipif mysql # not compatible
query II rowsort label-7149
SELECT 54 * - 2 / - + COALESCE ( + 2, - - COUNT ( * ) + ( 23 ) ) AS col2, 90 AS col2
----
54
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7150
SELECT 97 * CASE - COUNT( * ) WHEN - 59 THEN 72 END AS col0, + 72 + + + 14 + + COUNT( * )
----
NULL
87

skipif mysql # not compatible
query II rowsort label-7150
SELECT 97 * CASE - COUNT ( * ) WHEN - 59 THEN 72 END AS col0, + 72 + + + 14 + + COUNT ( * )
----
NULL
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7151
SELECT ( + + CAST( COALESCE ( - SUM( - CASE WHEN 17 IS NULL THEN 56 ELSE NULL END ), 63 * + COUNT( * ) - - 33 * - + 19 ) AS SIGNED ) ) AS col0, - 10 * + 85 AS col2
----
-564
-850

skipif mysql # not compatible
query II rowsort label-7151
SELECT ( + + CAST ( COALESCE ( - SUM ( - CASE WHEN 17 IS NULL THEN 56 ELSE NULL END ), 63 * + COUNT ( * ) - - 33 * - + 19 ) AS INTEGER ) ) AS col0, - 10 * + 85 AS col2
----
-564
-850

query I rowsort
SELECT + 61 + 14 + 64 - - + ( 90 ) * - ( + 32 )
----
-2741

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT DISTINCT - MAX( 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT - MAX ( 24 ) AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7154
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + COUNT( * ) * - - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * - - 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7155
SELECT DISTINCT - CASE - COUNT( * ) WHEN + COUNT( * ) + - COUNT( * ) + + 78 THEN + ( 93 ) ELSE MIN( ALL CAST( NULL AS SIGNED ) ) END / ( + CASE + ( ( + - CASE - 48 WHEN - CAST( NULL AS SIGNED ) THEN - COUNT( * ) + + 91 ELSE - 74 + CAST( NULL AS SIGNED ) END ) ) WHEN - - 15 THEN + - 18 WHEN + 71 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + COUNT ( * ) + - COUNT ( * ) + + 78 THEN + ( 93 ) ELSE MIN ( ALL CAST ( NULL AS INTEGER ) ) END / ( + CASE + ( ( + - CASE - 48 WHEN - CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) + + 91 ELSE - 74 + CAST ( NULL AS INTEGER ) END ) ) WHEN - - 15 THEN + - 18 WHEN + 71 THEN NULL END ) AS col2
----
NULL

query II rowsort
SELECT 2 col2, 48 + + ( - 47 ) * - 16 AS col2
----
2
800

query I rowsort
SELECT 2 - + 31 AS col2
----
-29

query I rowsort
SELECT 8 * 77
----
616

query I rowsort
SELECT 44 + - 51 col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT DISTINCT + COUNT( * ) + CASE + - 82 WHEN + CASE - + 29 WHEN - 66 THEN - 28 * - + 43 WHEN - - 9 THEN NULL END / + 37 + 87 + - NULLIF ( 23, 10 / - + 82 ) * - - 72 THEN NULL WHEN + NULLIF ( + 50, 43 / - NULLIF ( 27, + 49 + + 51 ) - + 37 + - 71 ) THEN - - 94 * + + 12 * + 53 + + 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT + COUNT ( * ) + CASE + - 82 WHEN + CASE - + 29 WHEN - 66 THEN - 28 * - + 43 WHEN - - 9 THEN NULL END / + 37 + 87 + - NULLIF ( 23, 10 / - + 82 ) * - - 72 THEN NULL WHEN + NULLIF ( + 50, 43 / - NULLIF ( 27, + 49 + + 51 ) - + 37 + - 71 ) THEN - - 94 * + + 12 * + 53 + + 30 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT 53 + COUNT( * ) + - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-7161
SELECT 53 + COUNT ( * ) + - COUNT ( * )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT SUM( DISTINCT + NULLIF ( ( 20 ), + 23 ) ) * ( - 95 )
----
-1900

skipif mysql # not compatible
query I rowsort label-7162
SELECT SUM ( DISTINCT + NULLIF ( ( 20 ), + 23 ) ) * ( - 95 )
----
-1900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7163
SELECT ALL + CAST( NULL AS SIGNED ) + - + NULLIF ( + CAST( - ( + + 54 ) AS SIGNED ), + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL + CAST ( NULL AS INTEGER ) + - + NULLIF ( + CAST ( - ( + + 54 ) AS INTEGER ), + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT 37 - 50 + - ( - + 65 ) + + 17 col0
----
69

query I rowsort
SELECT ALL - ( + + 27 ) + + + COALESCE ( - - ( 25 ), + - 63 )
----
-2

query I rowsort
SELECT ALL - CASE 78 WHEN 25 * NULLIF ( + - 26, - + 63 + 0 * + + 91 ) * AVG ( - 41 ) THEN + 72 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7167
SELECT ALL 67 + 52 - 73 * - 67 * + 58 * + 65, + 39 * + - 36 * + - 0 + - CASE + - 81 WHEN 95 * + + COUNT( * ) * - 93 * + 49 * - - 99 / - + 8 + 23 THEN - ( - + COALESCE ( + COUNT( * ), - 99 * - 21, 78 * - 99 ) ) * + - NULLIF ( 66, + + 27 ) ELSE NULL END + + 12 AS col1
----
18439189
NULL

skipif mysql # not compatible
query II rowsort label-7167
SELECT ALL 67 + 52 - 73 * - 67 * + 58 * + 65, + 39 * + - 36 * + - 0 + - CASE + - 81 WHEN 95 * + + COUNT ( * ) * - 93 * + 49 * - - 99 / - + 8 + 23 THEN - ( - + COALESCE ( + COUNT ( * ), - 99 * - 21, 78 * - 99 ) ) * + - NULLIF ( 66, + + 27 ) ELSE NULL END + + 12 AS col1
----
18439189
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7168
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 32 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 32 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7169
SELECT AVG ( - - 68 ) * + - ( 23 ) + + 33 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT AVG ( - - 68 ) * + - ( 23 ) + + 33 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7170
SELECT 34 AS col1, COUNT( * ) * + - CAST( + ( + + 77 ) AS SIGNED )
----
34
-77

skipif mysql # not compatible
query II rowsort label-7170
SELECT 34 AS col1, COUNT ( * ) * + - CAST ( + ( + + 77 ) AS INTEGER )
----
34
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-7171
SELECT + 82 AS col0, 27 - - + SUM( - 1 ) AS col2
----
82
26

skipif mysql # not compatible
query II rowsort label-7171
SELECT + 82 AS col0, 27 - - + SUM ( - 1 ) AS col2
----
82
26

query I rowsort
SELECT ALL 31 + - - 81 AS col0
----
112

query I rowsort
SELECT - 93 * + + ( 47 ) + - 14 AS col2
----
-4385

onlyif mysql # aggregate syntax: 
query II rowsort label-7174
SELECT + - 43 AS col0, COUNT( * ) * + ( + 59 )
----
-43
59

skipif mysql # not compatible
query II rowsort label-7174
SELECT + - 43 AS col0, COUNT ( * ) * + ( + 59 )
----
-43
59

query I rowsort
SELECT ALL + 69 - + + 54
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT - COALESCE ( - COUNT( * ), + 15, + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-7176
SELECT - COALESCE ( - COUNT ( * ), + 15, + 12 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT ALL - COUNT( * ) - 16 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL - COUNT ( * ) - 16 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT DISTINCT - + MIN( DISTINCT + + 48 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT - + MIN ( DISTINCT + + 48 ) AS col0
----
-48

query I rowsort
SELECT + 0 + 26 AS col2
----
26

query I rowsort
SELECT 22 - + 94
----
-72

query I rowsort
SELECT DISTINCT ( 10 ) col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT ALL - NULLIF ( COUNT( * ), 51 * + + 20 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL - NULLIF ( COUNT ( * ), 51 * + + 20 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT ALL + + 58 * - NULLIF ( - - 6, + 23 ) * + COUNT( * ) + - ( + + 79 ) col0
----
-427

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL + + 58 * - NULLIF ( - - 6, + 23 ) * + COUNT ( * ) + - ( + + 79 ) col0
----
-427

query I rowsort
SELECT + 50 + 55 col1
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT ALL - 18 DIV + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL - 18 / + 84 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7186
SELECT + 59 DIV COUNT( * ) * + 77
----
4543

skipif mysql # not compatible
query I rowsort label-7186
SELECT + 59 / COUNT ( * ) * + 77
----
4543

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT SUM( + 8 ) + - ( + + NULLIF ( 63, + 38 + + - 37 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-7187
SELECT SUM ( + 8 ) + - ( + + NULLIF ( 63, + 38 + + - 37 ) )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT ALL MIN( - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL MIN ( - 3 )
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7189
SELECT ( - - CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) ) + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7189
SELECT ( - - CAST ( + CAST ( NULL AS REAL ) AS REAL ) ) + 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT 37 - MIN( ALL + - 36 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7190
SELECT 37 - MIN ( ALL + - 36 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT 44 / MIN( ALL + 81 ) * + 89 * - SUM( ALL - + 50 ) * 33 + - ( + 46 ) + - CASE - + 26 WHEN ( 11 ) - + 48 THEN - 46 * + 76 - + + COUNT( - 46 ) + - SUM( + - 28 ) * - - 38 + + 48 - 28 / + 75 * COUNT( * ) * 91 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7191
SELECT 44 / MIN ( ALL + 81 ) * + 89 * - SUM ( ALL - + 50 ) * 33 + - ( + 46 ) + - CASE - + 26 WHEN ( 11 ) - + 48 THEN - 46 * + 76 - + + COUNT ( - 46 ) + - SUM ( + - 28 ) * - - 38 + + 48 - 28 / + 75 * COUNT ( * ) * 91 END AS col0
----
NULL

query I rowsort
SELECT 53 * 58 AS col1
----
3074

query I rowsort
SELECT 56 + - ( + + 37 ) AS col0
----
19

query I rowsort
SELECT DISTINCT 9 + - 3 AS col1
----
6

query I rowsort
SELECT 46 + + + 6 col2
----
52

query I rowsort
SELECT ALL 44 + + 91 * - ( - - 64 ) * + - 86 AS col1
----
500908

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7197
SELECT DISTINCT 63 AS col1, COUNT( * ) DIV + 62 * 79 col0
----
63
0

skipif mysql # not compatible
query II rowsort label-7197
SELECT DISTINCT 63 AS col1, COUNT ( * ) / + 62 * 79 col0
----
63
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7198
SELECT ALL + 87 * - + AVG ( COALESCE ( - 74, + 34, + 10 + - 14 + + 57 ) ) * ( MIN( - 87 ) ) * CASE + 96 WHEN + 1 THEN + CAST( + 61 AS SIGNED ) END - + - 72 * + 72 - + COALESCE ( - CASE - ( - 41 ) WHEN CAST( NULL AS DECIMAL ) THEN - 9 * + 75 * - 16 WHEN - 11 + + 58 THEN NULL END, - 3 * 77 ) * 0 + - CAST( - 71 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL + 87 * - + AVG ( COALESCE ( - 74, + 34, + 10 + - 14 + + 57 ) ) * ( MIN ( - 87 ) ) * CASE + 96 WHEN + 1 THEN + CAST ( + 61 AS INTEGER ) END - + - 72 * + 72 - + COALESCE ( - CASE - ( - 41 ) WHEN CAST ( NULL AS REAL ) THEN - 9 * + 75 * - 16 WHEN - 11 + + 58 THEN NULL END, - 3 * 77 ) * 0 + - CAST ( - 71 AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 25 AS col1, - 51 + 99 * + 56
----
25
5493

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7200
SELECT ( - + COUNT( * ) ) + - MAX( + 42 ) - + - 7 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT ( - + COUNT ( * ) ) + - MAX ( + 42 ) - + - 7 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 69 * - 3
----
-207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7202
SELECT 15 DIV NULLIF ( + 36, + ( - - ( 14 ) ) * 35 DIV - - MAX( ALL + 61 ) * 74 + + 42 ) * + 4 + + + 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7202
SELECT 15 / NULLIF ( + 36, + ( - - ( 14 ) ) * 35 / - - MAX ( ALL + 61 ) * 74 + + 42 ) * + 4 + + + 64 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT ALL 51 * + COUNT( * ) - - - 95
----
-44

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL 51 * + COUNT ( * ) - - - 95
----
-44

query I rowsort
SELECT ALL + 88 * - 28 AS col0
----
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT DISTINCT + 97 * COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-7205
SELECT DISTINCT + 97 * COUNT ( * ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT ALL + - 94 * 81 * 14 * + - MIN( - 29 ) AS col1
----
-3091284

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL + - 94 * 81 * 14 * + - MIN ( - 29 ) AS col1
----
-3091284

query I rowsort
SELECT + - 99 * + 95 + ( 33 )
----
-9372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7208
SELECT ALL - 85 * - - CASE 92 WHEN - 40 + + CAST( + NULLIF ( + CASE + COUNT( * ) WHEN + NULLIF ( 44, + + COALESCE ( + CAST( + - 9 AS SIGNED ), + 72 / - 82 ) + - 67 * - 80 * - ( - 7 ) ) THEN NULL WHEN + 54 THEN 66 * - 73 WHEN - 27 + + + COUNT( * ) * + COUNT( * ) + ( + 93 ) THEN + + 28 END, COALESCE ( + 43, + 98 ) * + + 66 * - 15 ) AS SIGNED ) THEN - 30 * 14 * + 81 END * - CAST( 33 AS SIGNED ) + + COUNT( * ) + - - 45 + - 60 + 67 * - SUM( ALL 64 ) / 22 * 46 - ( 91 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL - 85 * - - CASE 92 WHEN - 40 + + CAST ( + NULLIF ( + CASE + COUNT ( * ) WHEN + NULLIF ( 44, + + COALESCE ( + CAST ( + - 9 AS INTEGER ), + 72 / - 82 ) + - 67 * - 80 * - ( - 7 ) ) THEN NULL WHEN + 54 THEN 66 * - 73 WHEN - 27 + + + COUNT ( * ) * + COUNT ( * ) + ( + 93 ) THEN + + 28 END, COALESCE ( + 43, + 98 ) * + + 66 * - 15 ) AS INTEGER ) THEN - 30 * 14 * + 81 END * - CAST ( 33 AS INTEGER ) + + COUNT ( * ) + - - 45 + - 60 + 67 * - SUM ( ALL 64 ) / 22 * 46 - ( 91 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7209
SELECT - - 80 * + 78 * - ( + 96 ) - CASE 55 WHEN - + 89 THEN - + 68 * 10 + - ( + 98 ) * - NULLIF ( - 1, + 65 ) - - 10 * COUNT( 1 ) + - CAST( NULL AS SIGNED ) / 23 - - 80 - NULLIF ( + - 1, 16 * ( - + 30 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT - - 80 * + 78 * - ( + 96 ) - CASE 55 WHEN - + 89 THEN - + 68 * 10 + - ( + 98 ) * - NULLIF ( - 1, + 65 ) - - 10 * COUNT ( 1 ) + - CAST ( NULL AS INTEGER ) / 23 - - 80 - NULLIF ( + - 1, 16 * ( - + 30 ) ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7210
SELECT ALL - 74 DIV - 65 + + - 77 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL - 74 / - 65 + + - 77 AS col1
----
-76

query II rowsort
SELECT + 32 AS col2, 49 AS col1
----
32
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7212
SELECT + 40 + + + COALESCE ( + 77, - 86 * + 95 * - - 81 * + 50 + + 41 + - - 59, + 91 DIV + - COUNT( * ) ) + + 60 + COUNT( * ) * + CASE - 19 WHEN - 57 THEN NULL WHEN - + 38 + 37 THEN NULL ELSE - - CAST( - 90 AS SIGNED ) - + - 83 + + 47 END * + ( - - 76 ) AS col1
----
3217

skipif mysql # not compatible
query I rowsort label-7212
SELECT + 40 + + + COALESCE ( + 77, - 86 * + 95 * - - 81 * + 50 + + 41 + - - 59, + 91 / + - COUNT ( * ) ) + + 60 + COUNT ( * ) * + CASE - 19 WHEN - 57 THEN NULL WHEN - + 38 + 37 THEN NULL ELSE - - CAST ( - 90 AS INTEGER ) - + - 83 + + 47 END * + ( - - 76 ) AS col1
----
3217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7213
SELECT - + CAST( NULL AS SIGNED ) * - COUNT( * ) + - CAST( + COUNT( * ) AS SIGNED ), 88 * + 66 AS col0
----
NULL
5808

skipif mysql # not compatible
query II rowsort label-7213
SELECT - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - CAST ( + COUNT ( * ) AS INTEGER ), 88 * + 66 AS col0
----
NULL
5808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7214
SELECT - - SUM( ALL - + 28 ) * CASE - MIN( - 68 ) WHEN 45 THEN - 79 ELSE SUM( + + 32 ) * ( ( + + 70 ) ) + + COALESCE ( + + 88, + 28 - + 22 + CAST( + MIN( DISTINCT ( - + 51 ) ) AS SIGNED ) ) + - + 63 + + 94 END * - - 27 AS col2
----
-1783404

skipif mysql # not compatible
query I rowsort label-7214
SELECT - - SUM ( ALL - + 28 ) * CASE - MIN ( - 68 ) WHEN 45 THEN - 79 ELSE SUM ( + + 32 ) * ( ( + + 70 ) ) + + COALESCE ( + + 88, + 28 - + 22 + CAST ( + MIN ( DISTINCT ( - + 51 ) ) AS INTEGER ) ) + - + 63 + + 94 END * - - 27 AS col2
----
-1783404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7215
SELECT + 32 AS col0, + CAST( NULL AS SIGNED ) / + COUNT( * ) + + 94 AS col2
----
32
NULL

skipif mysql # not compatible
query II rowsort label-7215
SELECT + 32 AS col0, + CAST ( NULL AS INTEGER ) / + COUNT ( * ) + + 94 AS col2
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT 13 * - 92 + + + 73 + + MIN( 71 ) AS col0
----
-1052

skipif mysql # not compatible
query I rowsort label-7216
SELECT 13 * - 92 + + + 73 + + MIN ( 71 ) AS col0
----
-1052

onlyif mysql # DIV for integer division: 
query I rowsort label-7217
SELECT - + 2 + + 65 DIV 90
----
-2

skipif mysql # not compatible
query I rowsort label-7217
SELECT - + 2 + + 65 / 90
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT + MAX( DISTINCT + + 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7218
SELECT + MAX ( DISTINCT + + 26 ) AS col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7219
SELECT DISTINCT + CAST( + 64 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT + CAST ( + 64 AS INTEGER )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7220
SELECT - - 28 + - 28 DIV - 88 * - COUNT( * ) * - 24 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7220
SELECT - - 28 + - 28 / - 88 * - COUNT ( * ) * - 24 AS col2
----
28

query I rowsort
SELECT DISTINCT + - 39 * + + 11 AS col0
----
-429

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT DISTINCT - 31 + - COUNT( * ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT - 31 + - COUNT ( * ) col0
----
-32

query I rowsort
SELECT ALL 31 + - - 88
----
119

query I rowsort
SELECT + 93 * - 78 AS col2
----
-7254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7225
SELECT ALL CAST( NULL AS SIGNED ) + - 4 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL CAST ( NULL AS INTEGER ) + - 4 * - COUNT ( * )
----
NULL

query I rowsort
SELECT + 75 + - 55 * 8
----
-365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7227
SELECT ALL 68 DIV 78 col0, 15 * - CAST( + SUM( DISTINCT 1 ) AS SIGNED ) AS col0
----
0
-15

skipif mysql # not compatible
query II rowsort label-7227
SELECT ALL 68 / 78 col0, 15 * - CAST ( + SUM ( DISTINCT 1 ) AS INTEGER ) AS col0
----
0
-15

query I rowsort
SELECT DISTINCT 92 + 63 + 67 col2
----
222

query I rowsort
SELECT ALL + 19 * 27
----
513

query I rowsort
SELECT - ( - + 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT + 32 * + 63 * + + COUNT( * ) AS col0
----
2016

skipif mysql # not compatible
query I rowsort label-7231
SELECT + 32 * + 63 * + + COUNT ( * ) AS col0
----
2016

query I rowsort
SELECT + 3 - 73
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-7233
SELECT - 85 DIV - - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7233
SELECT - 85 / - - 89 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7234
SELECT - CAST( 23 AS SIGNED ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-7234
SELECT - CAST ( 23 AS INTEGER ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT - MAX( DISTINCT + + ( - - 88 ) ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-7235
SELECT - MAX ( DISTINCT + + ( - - 88 ) ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT + - ( SUM( - + ( + 33 ) ) ) * + 72 * + COUNT( * ) * - 61 AS col1
----
-144936

skipif mysql # not compatible
query I rowsort label-7236
SELECT + - ( SUM ( - + ( + 33 ) ) ) * + 72 * + COUNT ( * ) * - 61 AS col1
----
-144936

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT + + COALESCE ( - COUNT( * ), - + 21 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7237
SELECT + + COALESCE ( - COUNT ( * ), - + 21 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT + COALESCE ( ( MAX( DISTINCT - + 17 ) ), + 58, + COUNT( - 71 ) * - - 93 - COUNT( * ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7238
SELECT + COALESCE ( ( MAX ( DISTINCT - + 17 ) ), + 58, + COUNT ( - 71 ) * - - 93 - COUNT ( * ) ) AS col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7239
SELECT DISTINCT + 94 * COUNT( * ) + + 51 DIV - 10 + - 84 * - CAST( + 48 AS SIGNED ) AS col2
----
4121

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT + 94 * COUNT ( * ) + + 51 / - 10 + - 84 * - CAST ( + 48 AS INTEGER ) AS col2
----
4121

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT ALL - + 91 DIV + 52
----
-1

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL - + 91 / + 52
----
-1

query I rowsort
SELECT ALL - 51 * + 84 + + + 5 * 4 + - - 81 + + + 26 + + ( + NULLIF ( + NULLIF ( 12, + 13 - + 14 ), + 18 ) ) AS col1
----
-4145

query I rowsort
SELECT + CASE + 31 WHEN ( 72 ) * + 67 THEN 77 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7243
SELECT - + CAST( NULL AS DECIMAL ) + + + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7243
SELECT - + CAST ( NULL AS REAL ) + + + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT + - 41 / - + CASE - + 8 WHEN + COUNT( * ) * + COALESCE ( + 33, + 77 * + 86 ) THEN 85 WHEN + + 13 + + 78 / + - 5 * - - 94 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT + - 41 / - + CASE - + 8 WHEN + COUNT ( * ) * + COALESCE ( + 33, + 77 * + 86 ) THEN 85 WHEN + + 13 + + 78 / + - 5 * - - 94 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - - 30 * - 57 * + - 22 AS col2
----
37620

query I rowsort
SELECT ALL ( + - 8 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7247
SELECT 23 * + 48 + + COUNT( * ) + 62 * - - MIN( + + 90 ) col2, ( 38 ) AS col2
----
6685
38

skipif mysql # not compatible
query II rowsort label-7247
SELECT 23 * + 48 + + COUNT ( * ) + 62 * - - MIN ( + + 90 ) col2, ( 38 ) AS col2
----
6685
38

query I rowsort
SELECT DISTINCT + 32 * + - 10 AS col0
----
-320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7249
SELECT + COALESCE ( CAST( 75 AS SIGNED ), 9 DIV + 17, - - 9 * + + 37 * - - 88 * + 12 ) + - COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-7249
SELECT + COALESCE ( CAST ( 75 AS INTEGER ), 9 / + 17, - - 9 * + + 37 * - - 88 * + 12 ) + - COUNT ( * ) AS col1
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-7250
SELECT ALL 0, 18 DIV 57 * + 13
----
0
0

skipif mysql # not compatible
query II rowsort label-7250
SELECT ALL 0, 18 / 57 * + 13
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT ALL - COALESCE ( + - 4, + 79 + - SUM( + 5 ) ) * + 35 - - 94 + 46
----
280

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL - COALESCE ( + - 4, + 79 + - SUM ( + 5 ) ) * + 35 - - 94 + 46
----
280

query I rowsort
SELECT ALL - 41 * 65 - + - 91 AS col0
----
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT - MAX( + COALESCE ( - + 21, 62 ) )
----
21

skipif mysql # not compatible
query I rowsort label-7253
SELECT - MAX ( + COALESCE ( - + 21, 62 ) )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7254
SELECT 36 + COALESCE ( + COUNT( * ), - CAST( NULL AS SIGNED ), + 78 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7254
SELECT 36 + COALESCE ( + COUNT ( * ), - CAST ( NULL AS INTEGER ), + 78 ) AS col1
----
37

query I rowsort
SELECT 72 - - + 75 + + - 96
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7256
SELECT COUNT( * ) + - COUNT( * ) DIV - 89
----
1

skipif mysql # not compatible
query I rowsort label-7256
SELECT COUNT ( * ) + - COUNT ( * ) / - 89
----
1

query II rowsort
SELECT - 67 AS col2, - 33 * 12 * 8 AS col2
----
-67
-3168

query I rowsort
SELECT 91 + - + 95 * 13 + 59 * - + 71
----
-5333

query I rowsort
SELECT 62 * - - NULLIF ( + 84, + - 75 )
----
5208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7260
SELECT DISTINCT 14 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT 14 / + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 37 * 43 AS col2
----
1591

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7262
SELECT 87 * 33 * - + COALESCE ( + - 18, - - COALESCE ( + 85, - 44 - + + 2 ) * SUM( - 28 ) + + - COUNT( * ) DIV + - ( + 37 ), - 32 ) DIV + - COUNT( * )
----
-51678

skipif mysql # not compatible
query I rowsort label-7262
SELECT 87 * 33 * - + COALESCE ( + - 18, - - COALESCE ( + 85, - 44 - + + 2 ) * SUM ( - 28 ) + + - COUNT ( * ) / + - ( + 37 ), - 32 ) / + - COUNT ( * )
----
-51678

query I rowsort
SELECT 18 * ( + 17 )
----
306

query I rowsort
SELECT + 39 + - 4 AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7265
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 90 * - + 61 - + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 90 * - + 61 - + + 61
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7266
SELECT + 18 DIV - 86 + - 77 - - COUNT( ALL + 89 ) DIV + 27 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-7266
SELECT + 18 / - 86 + - 77 - - COUNT ( ALL + 89 ) / + 27 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT ALL COALESCE ( + MIN( - 60 ), + 29, - 83 ) + + COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL COALESCE ( + MIN ( - 60 ), + 29, - 83 ) + + COUNT ( * ) AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7268
SELECT 28 + + 37 - + CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7268
SELECT 28 + + 37 - + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT ALL - - 63, + 58 AS col1
----
63
58

query I rowsort
SELECT 67 + 72 + - ( + 99 ) * + 11
----
-950

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT ALL - 31 + + + 77 * COUNT( * ) * - CASE + 52 WHEN + - 23 THEN 42 END + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL - 31 + + + 77 * COUNT ( * ) * - CASE + 52 WHEN + - 23 THEN 42 END + + 11
----
NULL

query I rowsort
SELECT + 69 * - 99
----
-6831

query I rowsort
SELECT + 39 + + - 71 AS col2
----
-32

query I rowsort
SELECT CASE - 39 WHEN + 85 + 51 THEN - + 13 * + 85 ELSE 96 END
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT 95 * + + COUNT( - 40 ) + - - 89 AS col0
----
184

skipif mysql # not compatible
query I rowsort label-7275
SELECT 95 * + + COUNT ( - 40 ) + - - 89 AS col0
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT ALL - 90 + - COUNT( * ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL - 90 + - COUNT ( * ) col0
----
-91

query I rowsort
SELECT - 5 * - 19 AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7278
SELECT ALL SUM( - + 74 ) * - CASE 29 WHEN - 50 - + 58 + + CAST( NULL AS SIGNED ) THEN NULL WHEN + COUNT( * ) + - 25 THEN NULL ELSE - - 64 * CAST( NULL AS SIGNED ) * - + 6 END + 37 AS col2, - 31 * 92 AS col0
----
NULL
-2852

skipif mysql # not compatible
query II rowsort label-7278
SELECT ALL SUM ( - + 74 ) * - CASE 29 WHEN - 50 - + 58 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) + - 25 THEN NULL ELSE - - 64 * CAST ( NULL AS INTEGER ) * - + 6 END + 37 AS col2, - 31 * 92 AS col0
----
NULL
-2852

query I rowsort
SELECT ALL - - CASE - 6 WHEN 31 THEN - + 27 - + 22 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7280
SELECT ALL - MIN( - CAST( - 23 AS SIGNED ) ) - + COUNT( * ) col2
----
-24

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - MIN ( - CAST ( - 23 AS INTEGER ) ) - + COUNT ( * ) col2
----
-24

query I rowsort
SELECT 53 * - 2 AS col1
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-7282
SELECT DISTINCT - 46 DIV + ( + 15 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT - 46 / + ( + 15 ) AS col0
----
-3

query I rowsort
SELECT 72 + + 84
----
156

query I rowsort
SELECT 43 * 30 AS col0
----
1290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7285
SELECT 68 + 75 + - MAX( DISTINCT + 43 ) + - + 80 + + 11 + 56 - - - MIN( + 12 ) * + 8 * 28 DIV - - 28
----
-9

skipif mysql # not compatible
query I rowsort label-7285
SELECT 68 + 75 + - MAX ( DISTINCT + 43 ) + - + 80 + + 11 + 56 - - - MIN ( + 12 ) * + 8 * 28 / - - 28
----
-9

query I rowsort
SELECT ALL 61 * + + 60 AS col0
----
3660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7287
SELECT 78 + + CAST( NULL AS SIGNED ) + - 52 + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT 78 + + CAST ( NULL AS INTEGER ) + - 52 + 83 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7288
SELECT ALL - 84 * + - 82 AS col0, - 85 / + + CAST( NULL AS DECIMAL ) * + + 26
----
6888
NULL

skipif mysql # not compatible
query II rowsort label-7288
SELECT ALL - 84 * + - 82 AS col0, - 85 / + + CAST ( NULL AS REAL ) * + + 26
----
6888
NULL

query I rowsort
SELECT 61 - + + 86
----
-25

query I rowsort
SELECT ALL - 57 * + + 79 * - 84
----
378252

query I rowsort
SELECT 3 + + 51 AS col1
----
54

query I rowsort
SELECT DISTINCT + ( + - 93 ) + + 65 AS col0
----
-28

query I rowsort
SELECT - + ( - - 86 )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7294
SELECT + COUNT( ALL + + 1 ) * - 56 + - 51 DIV + 24
----
-58

skipif mysql # not compatible
query I rowsort label-7294
SELECT + COUNT ( ALL + + 1 ) * - 56 + - 51 / + 24
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7295
SELECT DISTINCT - + 32 + + 4 + + 92 + + CAST( NULL AS SIGNED ) * - + 60 * + 73 * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT - + 32 + + 4 + + 92 + + CAST ( NULL AS INTEGER ) * - + 60 * + 73 * + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT - 78 - - MAX( ALL 92 ) + + 46 * - COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-7296
SELECT - 78 - - MAX ( ALL 92 ) + + 46 * - COUNT ( * ) AS col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7297
SELECT + MIN( ALL 67 ) DIV - 55 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7297
SELECT + MIN ( ALL 67 ) / - 55 AS col1
----
-1

query I rowsort
SELECT ALL 82 * + 10 + - 57 + + 57 + 13
----
833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT ALL - + 28 * 80 + 84 + 31 / - 10 + + - 34 + + 16 + - 47 + + - CAST( NULL AS SIGNED ) + + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL - + 28 * 80 + 84 + 31 / - 10 + + - 34 + + 16 + - 47 + + - CAST ( NULL AS INTEGER ) + + 69 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 35 * 38
----
1330

query II rowsort
SELECT + 44 * - 75 AS col2, 93 * - + 28 * 95 col2
----
-3300
-247380

query I rowsort
SELECT ALL - 85 * - 91 + - 53
----
7682

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7303
SELECT 12 DIV 48 - + CASE - 59 WHEN 71 + - ( - + NULLIF ( - + 63, + 2 ) ) + CAST( 48 AS SIGNED ) THEN - 76 * - 4 ELSE + CAST( + 24 AS SIGNED ) END
----
-24

skipif mysql # not compatible
query I rowsort label-7303
SELECT 12 / 48 - + CASE - 59 WHEN 71 + - ( - + NULLIF ( - + 63, + 2 ) ) + CAST ( 48 AS INTEGER ) THEN - 76 * - 4 ELSE + CAST ( + 24 AS INTEGER ) END
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-7304
SELECT ALL + ( + ( - + 59 ) ) * - ( + - COUNT( * ) ) AS col0, - 90
----
-59
-90

skipif mysql # not compatible
query II rowsort label-7304
SELECT ALL + ( + ( - + 59 ) ) * - ( + - COUNT ( * ) ) AS col0, - 90
----
-59
-90

query I rowsort
SELECT DISTINCT - + 1 col0
----
-1

query I rowsort
SELECT - + 92 * - - 83 * + ( - 41 ) - 55 + - 18
----
313003

onlyif mysql # aggregate syntax: 
query II rowsort label-7307
SELECT + 3 * COUNT( * ), ( 23 ) AS col0
----
3
23

skipif mysql # not compatible
query II rowsort label-7307
SELECT + 3 * COUNT ( * ), ( 23 ) AS col0
----
3
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT COUNT( DISTINCT 71 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7308
SELECT COUNT ( DISTINCT 71 ) AS col0
----
1

query I rowsort
SELECT - 33 * - 34 col0
----
1122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7310
SELECT + COUNT( * ) + - 66 DIV - 76 + - + ( - COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-7310
SELECT + COUNT ( * ) + - 66 / - 76 + - + ( - COUNT ( * ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT COUNT( + 39 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7311
SELECT COUNT ( + 39 ) AS col1
----
1

query I rowsort
SELECT + 80 + - 76 AS col1
----
4

query I rowsort
SELECT + 97 * 7 AS col1
----
679

query II rowsort
SELECT 27, 29 * 59 AS col1
----
27
1711

query I rowsort
SELECT + 74 + - 30
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT + CASE + + 19 WHEN - 86 * + + 90 * - + COUNT( * ) THEN 79 WHEN - 61 THEN NULL ELSE NULL END * + 28 + - 30 * + 53 + - - 38 + + - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT + CASE + + 19 WHEN - 86 * + + 90 * - + COUNT ( * ) THEN 79 WHEN - 61 THEN NULL ELSE NULL END * + 28 + - 30 * + 53 + - - 38 + + - 15 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 73 * - 54
----
-3942

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT ALL MAX( - + 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL MAX ( - + 73 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT + 90 + 46 * COUNT( * )
----
136

skipif mysql # not compatible
query I rowsort label-7319
SELECT + 90 + 46 * COUNT ( * )
----
136

query I rowsort
SELECT - 96 + - + 7 AS col2
----
-103

query I rowsort
SELECT - 7 * 58
----
-406

query I rowsort
SELECT DISTINCT - 53 + + + 70 AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7323
SELECT DISTINCT - + 30 + - COUNT( * ) + - 35 + + ( CASE + 40 WHEN COUNT( + + 26 ) * + - COALESCE ( - SUM( + CAST( - 2 AS SIGNED ) ), - - 7 ) + + 85 THEN + + 72 ELSE - 54 * - CASE + 38 WHEN 1 / 64 THEN 29 WHEN - 22 / - SUM( - + 45 ) THEN - 89 WHEN ( - + 37 ) * + MAX( - - 65 ) * ( ( + 94 ) ) + 73 / + 36 THEN - + 42 END + + 29 END ) + + 38 * - 55 * + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT - + 30 + - COUNT ( * ) + - 35 + + ( CASE + 40 WHEN COUNT ( + + 26 ) * + - COALESCE ( - SUM ( + CAST ( - 2 AS INTEGER ) ), - - 7 ) + + 85 THEN + + 72 ELSE - 54 * - CASE + 38 WHEN 1 / 64 THEN 29 WHEN - 22 / - SUM ( - + 45 ) THEN - 89 WHEN ( - + 37 ) * + MAX ( - - 65 ) * ( ( + 94 ) ) + 73 / + 36 THEN - + 42 END + + 29 END ) + + 38 * - 55 * + 34 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7324
SELECT - - CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7324
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT ALL ( + - 84 ) + + 30
----
-54

query I rowsort
SELECT - 37 + 30 AS col1
----
-7

query I rowsort
SELECT + 7 - + + NULLIF ( - 37, COALESCE ( 44, 6 + - 48 * 59 ) ) AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7328
SELECT - - COALESCE ( - MAX( ALL - 87 ), COUNT( * ) + + 70 * 45 * 52 + - ( - MIN( ALL + - CAST( - 7 AS SIGNED ) ) ) + - - 68 ) + COUNT( + - 96 ) - + 16 * - 77 * - 32
----
-39336

skipif mysql # not compatible
query I rowsort label-7328
SELECT - - COALESCE ( - MAX ( ALL - 87 ), COUNT ( * ) + + 70 * 45 * 52 + - ( - MIN ( ALL + - CAST ( - 7 AS INTEGER ) ) ) + - - 68 ) + COUNT ( + - 96 ) - + 16 * - 77 * - 32
----
-39336

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT ALL + NULLIF ( + NULLIF ( 97, ( COALESCE ( + 87, - 32 * 17 + - 7 * 2 / + 30, + 79 ) ) ), + - COUNT( * ) + - + 9 - - 34 )
----
97

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL + NULLIF ( + NULLIF ( 97, ( COALESCE ( + 87, - 32 * 17 + - 7 * 2 / + 30, + 79 ) ) ), + - COUNT ( * ) + - + 9 - - 34 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT - ( - - 55 ) * - + 78 + 4 - MAX( 39 )
----
4255

skipif mysql # not compatible
query I rowsort label-7330
SELECT - ( - - 55 ) * - + 78 + 4 - MAX ( 39 )
----
4255

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL + + CASE - + 67 WHEN 60 + + + 67 THEN - 2 * + - SUM( ALL 89 ) - - 97 WHEN - + COUNT( * ) THEN 62 + - 89 + + 64 + + 5 END * + 55 - 78 * + + 1 * - - 36 * + 71 * 94 + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL + + CASE - + 67 WHEN 60 + + + 67 THEN - 2 * + - SUM ( ALL 89 ) - - 97 WHEN - + COUNT ( * ) THEN 62 + - 89 + + 64 + + 5 END * + 55 - 78 * + + 1 * - - 36 * + 71 * 94 + - 14
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7332
SELECT 93 DIV - + 81 + - 46 + + 51 DIV - + 26 AS col1, + 67 + - 12 + + 10
----
-48
65

skipif mysql # not compatible
query II rowsort label-7332
SELECT 93 / - + 81 + - 46 + + 51 / - + 26 AS col1, + 67 + - 12 + + 10
----
-48
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT + + 18 + - + COUNT( * ) + - 0 + + 55 - 77 + + ( - 6 ) * - 5
----
25

skipif mysql # not compatible
query I rowsort label-7333
SELECT + + 18 + - + COUNT ( * ) + - 0 + + 55 - 77 + + ( - 6 ) * - 5
----
25

query I rowsort
SELECT ( - 50 ) col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7335
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), 84 * + 93 * 99 + - ( + + 81 ) - - 69 ) + - ( + 89 )
----
773287

skipif mysql # not compatible
query I rowsort label-7335
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), 84 * + 93 * 99 + - ( + + 81 ) - - 69 ) + - ( + 89 )
----
773287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7336
SELECT ALL + 1 AS col1, - 49 + - CASE - 38 WHEN + COUNT( * ) * 99 THEN CAST( + ( + COUNT( * ) ) AS SIGNED ) END / - 21 * + 5 * - + 0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7336
SELECT ALL + 1 AS col1, - 49 + - CASE - 38 WHEN + COUNT ( * ) * 99 THEN CAST ( + ( + COUNT ( * ) ) AS INTEGER ) END / - 21 * + 5 * - + 0
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7337
SELECT CASE + COUNT( * ) WHEN 3 - 47 THEN NULL WHEN - + ( + CAST( NULL AS SIGNED ) ) * - 50 * COUNT( * ) THEN - + ( COUNT( * ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7337
SELECT CASE + COUNT ( * ) WHEN 3 - 47 THEN NULL WHEN - + ( + CAST ( NULL AS INTEGER ) ) * - 50 * COUNT ( * ) THEN - + ( COUNT ( * ) ) END col1
----
NULL

query I rowsort
SELECT DISTINCT 97 * - - 34 * 85
----
280330

query II rowsort
SELECT ALL + 7 AS col1, - 16
----
7
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7340
SELECT + CAST( - + 10 AS SIGNED ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-7340
SELECT + CAST ( - + 10 AS INTEGER ) col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT MAX( ALL 19 )
----
19

skipif mysql # not compatible
query I rowsort label-7341
SELECT MAX ( ALL 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT - ( + - SUM( DISTINCT + + 18 ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7342
SELECT - ( + - SUM ( DISTINCT + + 18 ) ) AS col0
----
18

query I rowsort
SELECT - 14 * + - NULLIF ( + - 39, + - 15 * 79 ) AS col2
----
-546

query I rowsort
SELECT DISTINCT 87 * - 27 * + 11 + 57 AS col0
----
-25782

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT ALL + COUNT( * ) * - - 26 * - + 69 + 19 AS col0
----
-1775

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL + COUNT ( * ) * - - 26 * - + 69 + 19 AS col0
----
-1775

query I rowsort
SELECT ALL 49 + + 49 + + + 36 col1
----
134

query I rowsort
SELECT ALL + - ( + 96 ) * + - 47
----
4512

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7348
SELECT + CAST( NULL AS DECIMAL ) + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7348
SELECT + CAST ( NULL AS REAL ) + 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7349
SELECT ALL ( + 25 ) AS col1, 79 * 0 + + COUNT( * ) * + 80 AS col1
----
25
80

skipif mysql # not compatible
query II rowsort label-7349
SELECT ALL ( + 25 ) AS col1, 79 * 0 + + COUNT ( * ) * + 80 AS col1
----
25
80

onlyif mysql # DIV for integer division: 
query II rowsort label-7350
SELECT - + 40 DIV - 60 * + 14 + 80 AS col0, + 3 + 99 + - - 58 * + ( + - 23 ) col0
----
80
-1232

skipif mysql # not compatible
query II rowsort label-7350
SELECT - + 40 / - 60 * + 14 + 80 AS col0, + 3 + 99 + - - 58 * + ( + - 23 ) col0
----
80
-1232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7351
SELECT + 8 DIV + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-7351
SELECT + 8 / + COUNT ( * )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7352
SELECT + 13 + 46 + - - CAST( + COUNT( * ) AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-7352
SELECT + 13 + 46 + - - CAST ( + COUNT ( * ) AS INTEGER )
----
60

query I rowsort
SELECT DISTINCT + + 2 - 31 AS col1
----
-29

query I rowsort
SELECT + - 63 * + 23 * + 94 col1
----
-136206

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT - - 58 + + MAX( - 48 ) col0
----
10

skipif mysql # not compatible
query I rowsort label-7355
SELECT - - 58 + + MAX ( - 48 ) col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT ALL - SUM( DISTINCT + 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL - SUM ( DISTINCT + 36 ) AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7357
SELECT DISTINCT NULLIF ( + CAST( NULL AS SIGNED ), - + 83 * COUNT( * ) * - 45 + COUNT( * ) ) / - 69 * 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT NULLIF ( + CAST ( NULL AS INTEGER ), - + 83 * COUNT ( * ) * - 45 + COUNT ( * ) ) / - 69 * 17 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7358
SELECT - - 13 DIV - + 78
----
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT - - 13 / - + 78
----
0

query I rowsort
SELECT ALL - 2 * - 21
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7360
SELECT DISTINCT + ( 49 ) * - - COUNT( * ) DIV + + 59
----
0

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT + ( 49 ) * - - COUNT ( * ) / + + 59
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT ALL - 11 AS col0, ( - 53 ) * + 45 * - COALESCE ( + 23, - - 62 - 0 * 6 ) * + + COUNT( * ) + 26 - + - 14 - + COUNT( * ) AS col0
----
-11
54894

skipif mysql # not compatible
query II rowsort label-7361
SELECT ALL - 11 AS col0, ( - 53 ) * + 45 * - COALESCE ( + 23, - - 62 - 0 * 6 ) * + + COUNT ( * ) + 26 - + - 14 - + COUNT ( * ) AS col0
----
-11
54894

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7362
SELECT + 39 DIV 69 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7362
SELECT + 39 / 69 - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT + COUNT( + + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-7363
SELECT + COUNT ( + + 61 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7364
SELECT 13 * MAX( ALL - 27 ) * - + 67 + - + 21 + MAX( + 88 ) AS col1, 58 DIV + 47 * + 1
----
23584
1

skipif mysql # not compatible
query II rowsort label-7364
SELECT 13 * MAX ( ALL - 27 ) * - + 67 + - + 21 + MAX ( + 88 ) AS col1, 58 / + 47 * + 1
----
23584
1

query I rowsort
SELECT ( - 32 ) * - 7
----
224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7366
SELECT + CAST( NULL AS SIGNED ) * + - COUNT( ALL - 73 ) - + 7 * 0 * - 43 * - ( 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7366
SELECT + CAST ( NULL AS INTEGER ) * + - COUNT ( ALL - 73 ) - + 7 * 0 * - 43 * - ( 70 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7367
SELECT DISTINCT MAX( - 42 ) DIV COUNT( + 88 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT MAX ( - 42 ) / COUNT ( + 88 ) AS col1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7368
SELECT ALL 44 + - ( - - 99 ) DIV + 94
----
43

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL 44 + - ( - - 99 ) / + 94
----
43

query I rowsort
SELECT ALL 38 * - - 16
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL + 70 + + SUM( - - 3 ) + 55 * + - 28
----
-1467

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL + 70 + + SUM ( - - 3 ) + 55 * + - 28
----
-1467

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT + 58 * - ( + COUNT( * ) ) * - 53 * COUNT( * ) + + 4 * - 13 + + - 20 - - 10 AS col1
----
3012

skipif mysql # not compatible
query I rowsort label-7371
SELECT + 58 * - ( + COUNT ( * ) ) * - 53 * COUNT ( * ) + + 4 * - 13 + + - 20 - - 10 AS col1
----
3012

query I rowsort
SELECT ALL 85 + + 47
----
132

query I rowsort
SELECT 34 * + - 87 * - + 53 * - + 77 - 82
----
-12071680

query I rowsort
SELECT ALL 2 * + + 47
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT ALL MAX( DISTINCT + 84 ) + + - 76
----
8

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL MAX ( DISTINCT + 84 ) + + - 76
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7376
SELECT ALL - 7 + + 47 DIV - 37 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL - 7 + + 47 / - 37 AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT DISTINCT + 53 + - CAST( + + 65 AS SIGNED ) + 28
----
16

skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT + 53 + - CAST ( + + 65 AS INTEGER ) + 28
----
16

onlyif mysql # DIV for integer division: 
query II rowsort label-7378
SELECT ALL 72 DIV - - 8 AS col0, + 12 + + - 90 + + 7 + 49 + - 51
----
9
-73

skipif mysql # not compatible
query II rowsort label-7378
SELECT ALL 72 / - - 8 AS col0, + 12 + + - 90 + + 7 + 49 + - 51
----
9
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7379
SELECT ALL NULLIF ( 48, + + 53 - + - 90 + CAST( NULL AS SIGNED ) * 51 ) + ( COUNT( * ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL NULLIF ( 48, + + 53 - + - 90 + CAST ( NULL AS INTEGER ) * 51 ) + ( COUNT ( * ) ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7380
SELECT ALL COUNT( * ) + - + 41, 25 AS col2
----
-40
25

skipif mysql # not compatible
query II rowsort label-7380
SELECT ALL COUNT ( * ) + - + 41, 25 AS col2
----
-40
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7381
SELECT 10 + + MIN( ALL + 26 ), + 15 AS col1
----
36
15

skipif mysql # not compatible
query II rowsort label-7381
SELECT 10 + + MIN ( ALL + 26 ), + 15 AS col1
----
36
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT DISTINCT - CASE + 1 WHEN + - 46 / + 17 * + - COUNT( * ) THEN + 7 ELSE + 47 END AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT - CASE + 1 WHEN + - 46 / + 17 * + - COUNT ( * ) THEN + 7 ELSE + 47 END AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT - COUNT( + 9 ) * + - 67
----
67

skipif mysql # not compatible
query I rowsort label-7383
SELECT - COUNT ( + 9 ) * + - 67
----
67

query I rowsort
SELECT 87 * + - 86 AS col1
----
-7482

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT - COALESCE ( 51, MIN( - + 73 ) + - 74 )
----
-51

skipif mysql # not compatible
query I rowsort label-7385
SELECT - COALESCE ( 51, MIN ( - + 73 ) + - 74 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT DISTINCT COUNT( * ) - - - ( 98 ) * - 55 col2
----
5391

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT COUNT ( * ) - - - ( 98 ) * - 55 col2
----
5391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7387
SELECT ALL - CASE - COALESCE ( - MIN( ALL - + 13 ), + 56 ) WHEN - 95 THEN - 26 WHEN 6 * + + 0 * + + 64 THEN - - 86 WHEN - CASE - - MAX( 20 ) WHEN + - 47 THEN NULL WHEN - COUNT( * ) + - MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) THEN + COUNT( - - ( + 13 ) ) ELSE + CAST( 97 AS SIGNED ) END * - 22 THEN + 67 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL - CASE - COALESCE ( - MIN ( ALL - + 13 ), + 56 ) WHEN - 95 THEN - 26 WHEN 6 * + + 0 * + + 64 THEN - - 86 WHEN - CASE - - MAX ( 20 ) WHEN + - 47 THEN NULL WHEN - COUNT ( * ) + - MIN ( DISTINCT - CAST ( NULL AS REAL ) ) THEN + COUNT ( - - ( + 13 ) ) ELSE + CAST ( 97 AS INTEGER ) END * - 22 THEN + 67 END col2
----
NULL

query II rowsort
SELECT ALL - 23 - + - 36 AS col2, + 10
----
13
10

query I rowsort
SELECT 67 * - 78 AS col1
----
-5226

query I rowsort
SELECT 10 * 44
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT DISTINCT MAX( - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT MAX ( - 27 )
----
-27

query I rowsort
SELECT DISTINCT NULLIF ( + 10, - ( - + 19 ) )
----
10

query I rowsort
SELECT ALL 30 * - 70 AS col0
----
-2100

query I rowsort
SELECT ( 86 ) + + - CASE + NULLIF ( - 32, 80 ) WHEN + + 44 THEN NULL WHEN + 95 - - 62 + COALESCE ( - - 6, + 20 ) * + 87 THEN + + 32 END
----
NULL

query I rowsort
SELECT + 5 - NULLIF ( + + 90, - - 70 ) - - 4
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT + - CASE - 60 WHEN CAST( NULL AS SIGNED ) THEN + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT + - CASE - 60 WHEN CAST ( NULL AS INTEGER ) THEN + 93 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7397
SELECT + 24 / - - CAST( NULL AS SIGNED ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT + 24 / - - CAST ( NULL AS INTEGER ) + - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7398
SELECT MIN( DISTINCT - + 87 ) DIV - 46
----
1

skipif mysql # not compatible
query I rowsort label-7398
SELECT MIN ( DISTINCT - + 87 ) / - 46
----
1

query I rowsort
SELECT ALL - 1 + - 57
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT 62 + + COUNT( * ) * 33
----
95

skipif mysql # not compatible
query I rowsort label-7400
SELECT 62 + + COUNT ( * ) * 33
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7401
SELECT ALL MAX( + 92 ) DIV 19 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL MAX ( + 92 ) / 19 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7402
SELECT ALL - 55 AS col1, + COALESCE ( - 24, - 76 - - ( + MAX( - + 77 ) ) )
----
-55
-24

skipif mysql # not compatible
query II rowsort label-7402
SELECT ALL - 55 AS col1, + COALESCE ( - 24, - 76 - - ( + MAX ( - + 77 ) ) )
----
-55
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT ALL - 38 + - - MIN( 38 ) * 45 - + 4 col2
----
1668

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL - 38 + - - MIN ( 38 ) * 45 - + 4 col2
----
1668

query I rowsort
SELECT 61 * + 57 col1
----
3477

query I rowsort
SELECT 97 + - 22 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT - 21 + COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT - 21 + COUNT ( * ) AS col1
----
-20

query I rowsort
SELECT ALL + 66 + - 60 AS col2
----
6

query II rowsort
SELECT + 61 AS col0, + 50 AS col0
----
61
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT 87 * + - COUNT( * ) * + - CASE + 5 WHEN + 97 + - 83 THEN - MIN( + ( 47 ) ) + + + MIN( - 71 ) * + + 73 ELSE NULL END * + + COUNT( * ) / - + COUNT( * ) - MAX( + ( - + 42 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7409
SELECT 87 * + - COUNT ( * ) * + - CASE + 5 WHEN + 97 + - 83 THEN - MIN ( + ( 47 ) ) + + + MIN ( - 71 ) * + + 73 ELSE NULL END * + + COUNT ( * ) / - + COUNT ( * ) - MAX ( + ( - + 42 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7410
SELECT 6 DIV MAX( ALL - 88 ), 8 AS col0
----
0
8

skipif mysql # not compatible
query II rowsort label-7410
SELECT 6 / MAX ( ALL - 88 ), 8 AS col0
----
0
8

onlyif mysql # aggregate syntax: 
query II rowsort label-7411
SELECT ALL ( + + COUNT( * ) ) - 60 AS col1, - 0 + + 42
----
-59
42

skipif mysql # not compatible
query II rowsort label-7411
SELECT ALL ( + + COUNT ( * ) ) - 60 AS col1, - 0 + + 42
----
-59
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7412
SELECT ALL - 18 DIV + - CAST( 23 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL - 18 / + - CAST ( 23 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT + + 11 - - + 76
----
87

query I rowsort
SELECT 43 * + 15 AS col2
----
645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7415
SELECT - + CAST( + 59 AS SIGNED ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-7415
SELECT - + CAST ( + 59 AS INTEGER ) AS col1
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7416
SELECT 2 * - - 67 * 83 * 57 / CAST( NULL AS DECIMAL ) + - 64 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT 2 * - - 67 * 83 * 57 / CAST ( NULL AS REAL ) + - 64 col0
----
NULL

query I rowsort
SELECT DISTINCT - 69 * + 49
----
-3381

query I rowsort
SELECT - + ( + 84 ) col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-7419
SELECT 35 DIV 18 * + 70 DIV - - 5 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-7419
SELECT 35 / 18 * + 70 / - - 5 AS col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7420
SELECT ALL - 22 AS col0, + 23 + - COUNT( * ) AS col1
----
-22
22

skipif mysql # not compatible
query II rowsort label-7420
SELECT ALL - 22 AS col0, + 23 + - COUNT ( * ) AS col1
----
-22
22

query I rowsort
SELECT 81 - - 46
----
127

query I rowsort
SELECT ALL - 66 * + - 33 AS col1
----
2178

onlyif mysql # aggregate syntax: 
query II rowsort label-7423
SELECT ALL 93 AS col2, - COUNT( * )
----
93
-1

skipif mysql # not compatible
query II rowsort label-7423
SELECT ALL 93 AS col2, - COUNT ( * )
----
93
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7424
SELECT DISTINCT - CASE + 26 WHEN - + COUNT( ALL 6 ) THEN - 57 WHEN + CAST( - - 26 AS SIGNED ) THEN NULL ELSE + + 21 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT - CASE + 26 WHEN - + COUNT ( ALL 6 ) THEN - 57 WHEN + CAST ( - - 26 AS INTEGER ) THEN NULL ELSE + + 21 END AS col2
----
NULL

query I rowsort
SELECT - - 36 + + - 35
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT DISTINCT MAX( ALL - ( 37 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT MAX ( ALL - ( 37 ) )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7427
SELECT + CAST( NULL AS SIGNED ) * 15 / CAST( - COUNT( * ) AS SIGNED ) * + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7427
SELECT + CAST ( NULL AS INTEGER ) * 15 / CAST ( - COUNT ( * ) AS INTEGER ) * + 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7428
SELECT + 3 + - - MIN( ALL 17 ) AS col1, - 23
----
20
-23

skipif mysql # not compatible
query II rowsort label-7428
SELECT + 3 + - - MIN ( ALL 17 ) AS col1, - 23
----
20
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7429
SELECT - - 30, + 24 - 0 + - + 70 / - - CASE + 0 WHEN + + NULLIF ( - + 29, - 20 + + 25 ) THEN - 91 WHEN + + CAST( 50 AS DECIMAL ) THEN NULL WHEN - 66 + MIN( ALL + + 86 ) * + NULLIF ( + 85, + COUNT( * ) ) THEN NULL END AS col2
----
30
NULL

skipif mysql # not compatible
query II rowsort label-7429
SELECT - - 30, + 24 - 0 + - + 70 / - - CASE + 0 WHEN + + NULLIF ( - + 29, - 20 + + 25 ) THEN - 91 WHEN + + CAST ( 50 AS REAL ) THEN NULL WHEN - 66 + MIN ( ALL + + 86 ) * + NULLIF ( + 85, + COUNT ( * ) ) THEN NULL END AS col2
----
30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT - - MIN( DISTINCT + - 46 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-7430
SELECT - - MIN ( DISTINCT + - 46 ) AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT DISTINCT CAST( - 78 AS SIGNED ) + - 99 * - 22 AS col1
----
2100

skipif mysql # not compatible
query I rowsort label-7431
SELECT DISTINCT CAST ( - 78 AS INTEGER ) + - 99 * - 22 AS col1
----
2100

query I rowsort
SELECT ALL 39 * - 63 AS col0
----
-2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7433
SELECT + 51 * + CASE + 52 WHEN 51 THEN NULL ELSE COALESCE ( + 44, - CAST( 82 AS SIGNED ) + + 66, 38 DIV 42 * - - MIN( ALL + 65 ) * 46 + 61 ) END * - 14 * - - ( - 64 ) AS col0
----
2010624

skipif mysql # not compatible
query I rowsort label-7433
SELECT + 51 * + CASE + 52 WHEN 51 THEN NULL ELSE COALESCE ( + 44, - CAST ( 82 AS INTEGER ) + + 66, 38 / 42 * - - MIN ( ALL + 65 ) * 46 + 61 ) END * - 14 * - - ( - 64 ) AS col0
----
2010624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7434
SELECT ALL - 97 + + + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL - 97 + + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT ALL 82 * + - COUNT( * ) * + - 16 + + 91 + - - 87
----
1490

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL 82 * + - COUNT ( * ) * + - 16 + + 91 + - - 87
----
1490

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT ALL 88 * + COUNT( * ) + + + COALESCE ( - 78, + - 95 ) * + 9
----
-614

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL 88 * + COUNT ( * ) + + + COALESCE ( - 78, + - 95 ) * + 9
----
-614

onlyif mysql # aggregate syntax: 
query II rowsort label-7437
SELECT - NULLIF ( + - 45, 76 ) * - - COUNT( * ) AS col0, + COUNT( * ) + 80
----
45
81

skipif mysql # not compatible
query II rowsort label-7437
SELECT - NULLIF ( + - 45, 76 ) * - - COUNT ( * ) AS col0, + COUNT ( * ) + 80
----
45
81

query I rowsort
SELECT NULLIF ( 52, 43 ) AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT - 73 DIV - 15 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7439
SELECT - 73 / - 15 AS col1
----
4

query II rowsort
SELECT + ( - + 50 ) AS col0, + 71 * - - 8 col0
----
-50
568

query I rowsort
SELECT DISTINCT 0 * - 9 - 26 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-7442
SELECT DISTINCT - 36 * + 64 - - COUNT( * ) - + - 57, 64 AS col2
----
-2246
64

skipif mysql # not compatible
query II rowsort label-7442
SELECT DISTINCT - 36 * + 64 - - COUNT ( * ) - + - 57, 64 AS col2
----
-2246
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7443
SELECT ALL 26 DIV - 23 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL 26 / - 23 AS col2
----
-1

query I rowsort
SELECT - 37 - - + 8
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT ALL + COUNT( * ) * - - ( 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL + COUNT ( * ) * - - ( 38 ) AS col1
----
38

query I rowsort
SELECT - 55 * + - 4
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT NULLIF ( + ( - 8 ), - - SUM( + + 56 ) * + COUNT( * ) * + 39 * 18 + - - 58 )
----
-8

skipif mysql # not compatible
query I rowsort label-7447
SELECT NULLIF ( + ( - 8 ), - - SUM ( + + 56 ) * + COUNT ( * ) * + 39 * 18 + - - 58 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7448
SELECT - 31 * 20 col1, - 95 * + + MIN( 74 ) * 63 + + - ( COUNT( * ) )
----
-620
-442891

skipif mysql # not compatible
query II rowsort label-7448
SELECT - 31 * 20 col1, - 95 * + + MIN ( 74 ) * 63 + + - ( COUNT ( * ) )
----
-620
-442891

query I rowsort
SELECT ALL + CASE 66 WHEN 66 THEN NULL WHEN + - 55 THEN + - 0 ELSE - ( - 90 ) END AS col1
----
NULL

query I rowsort
SELECT - 79 + - - ( - 86 ) AS col1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT + COUNT( * ) * 12 * + + 31 - - 78 col1
----
450

skipif mysql # not compatible
query I rowsort label-7451
SELECT + COUNT ( * ) * 12 * + + 31 - - 78 col1
----
450

query I rowsort
SELECT ALL - - 21 * - 2 + + 47
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT - + 45 * 18 DIV ( - - 61 ) + - 84 col1
----
-97

skipif mysql # not compatible
query I rowsort label-7453
SELECT - + 45 * 18 / ( - - 61 ) + - 84 col1
----
-97

query I rowsort
SELECT ALL + CASE - 99 WHEN + 44 THEN NULL WHEN + + 71 THEN - 38 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7455
SELECT DISTINCT + CAST( - - 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT + CAST ( - - 87 AS INTEGER )
----
87

query I rowsort
SELECT ALL + ( + + ( 29 ) )
----
29

query I rowsort
SELECT - - 84 * + 24
----
2016

query I rowsort
SELECT ALL ( + + 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT ALL COUNT( + 2 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL COUNT ( + 2 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT - 90 + + + COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-7460
SELECT - 90 + + + COUNT ( * ) AS col1
----
-89

query I rowsort
SELECT DISTINCT + - 4 * - 16 - 87 + - - 35
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT + 78 + COUNT( * ) * - 10
----
68

skipif mysql # not compatible
query I rowsort label-7462
SELECT + 78 + COUNT ( * ) * - 10
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / + 52 AS col0
----
NULL

query I rowsort
SELECT ALL + 63 + + 63 AS col1
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7465
SELECT - - 83 + + 36 + + NULLIF ( - - 53, - 43 + - NULLIF ( + MAX( + - 69 ), + 95 + CAST( NULL AS SIGNED ) ) * 15 * - 93 - + 83 ) AS col0
----
172

skipif mysql # not compatible
query I rowsort label-7465
SELECT - - 83 + + 36 + + NULLIF ( - - 53, - 43 + - NULLIF ( + MAX ( + - 69 ), + 95 + CAST ( NULL AS INTEGER ) ) * 15 * - 93 - + 83 ) AS col0
----
172

query I rowsort
SELECT ALL + + 61 * - + 16 + + - 62 AS col1
----
-1038

query I rowsort
SELECT DISTINCT 93 + - - 47 col1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL - 38 + - COUNT( DISTINCT + + CASE - - 40 WHEN + 17 THEN - 82 + + 56 ELSE NULL END ) col2
----
-38

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL - 38 + - COUNT ( DISTINCT + + CASE - - 40 WHEN + 17 THEN - 82 + + 56 ELSE NULL END ) col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT DISTINCT + 84 + + - COUNT( * ) + + 51 * + + 12
----
695

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT + 84 + + - COUNT ( * ) + + 51 * + + 12
----
695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7470
SELECT - NULLIF ( + + CASE + 67 WHEN + - MAX( DISTINCT 87 ) THEN NULL WHEN 36 THEN NULL ELSE CAST( NULL AS SIGNED ) * + ( COALESCE ( + 10, + + 79, + + 68 ) ) / + COUNT( * ) * 77 END, ( 53 ) ) + - - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT - NULLIF ( + + CASE + 67 WHEN + - MAX ( DISTINCT 87 ) THEN NULL WHEN 36 THEN NULL ELSE CAST ( NULL AS INTEGER ) * + ( COALESCE ( + 10, + + 79, + + 68 ) ) / + COUNT ( * ) * 77 END, ( 53 ) ) + - - 79
----
NULL

query I rowsort
SELECT + 97 + - + COALESCE ( + 19, 1 * + 65, - 89 + + + 60 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT + 85 + 23 + + 40 * + COUNT( * ) + - COUNT( * ) AS col1
----
147

skipif mysql # not compatible
query I rowsort label-7472
SELECT + 85 + 23 + + 40 * + COUNT ( * ) + - COUNT ( * ) AS col1
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-7473
SELECT DISTINCT SUM( 58 ) * + + 14 + + 11 * - 71, 32 + + 8 * - 0 + 49 * + NULLIF ( + MAX( + - 60 ), + + COUNT( * ) - 11 + + - 54 ) AS col0
----
31
-2908

skipif mysql # not compatible
query II rowsort label-7473
SELECT DISTINCT SUM ( 58 ) * + + 14 + + 11 * - 71, 32 + + 8 * - 0 + 49 * + NULLIF ( + MAX ( + - 60 ), + + COUNT ( * ) - 11 + + - 54 ) AS col0
----
31
-2908

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT DISTINCT 85 * - 65 * + COUNT( * ) AS col2
----
-5525

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT 85 * - 65 * + COUNT ( * ) AS col2
----
-5525

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT ALL COUNT( * ) * - - 7 * + - 74
----
-518

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL COUNT ( * ) * - - 7 * + - 74
----
-518

query I rowsort
SELECT + ( - + 43 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT + 7 + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-7477
SELECT + 7 + + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT + ( COALESCE ( - 4, - COUNT( * ) ) )
----
-4

skipif mysql # not compatible
query I rowsort label-7478
SELECT + ( COALESCE ( - 4, - COUNT ( * ) ) )
----
-4

query I rowsort
SELECT - ( + - 83 ) * + 23 + - 51
----
1858

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT + 95 DIV + 85
----
1

skipif mysql # not compatible
query I rowsort label-7480
SELECT + 95 / + 85
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7481
SELECT DISTINCT ( COUNT( * ) ) DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT ( COUNT ( * ) ) / 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7482
SELECT ALL + COUNT( * ) DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL + COUNT ( * ) / - 35
----
0

query I rowsort
SELECT ALL + 4 * 39
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT DISTINCT ( - 82 ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT ( - 82 ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 41 * 52
----
-2132

query I rowsort
SELECT 47 * 27 AS col2
----
1269

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT ALL COUNT( * ) + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL COUNT ( * ) + COUNT ( * ) col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7488
SELECT ALL CAST( NULL AS SIGNED ) + + 17 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL CAST ( NULL AS INTEGER ) + + 17 col1
----
NULL

query I rowsort
SELECT 21 - ( 20 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7490
SELECT COALESCE ( - 39, CAST( NULL AS SIGNED ) ) - - SUM( DISTINCT 24 )
----
-15

skipif mysql # not compatible
query I rowsort label-7490
SELECT COALESCE ( - 39, CAST ( NULL AS INTEGER ) ) - - SUM ( DISTINCT 24 )
----
-15

query I rowsort
SELECT ALL + 42 * - 83
----
-3486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7492
SELECT NULLIF ( + 41, CAST( NULL AS SIGNED ) ) * 37 col2
----
1517

skipif mysql # not compatible
query I rowsort label-7492
SELECT NULLIF ( + 41, CAST ( NULL AS INTEGER ) ) * 37 col2
----
1517

query I rowsort
SELECT 72 + + 72 AS col0
----
144

query I rowsort
SELECT ALL + 15 + 26 col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT + COALESCE ( 47, + 67 ) * 86 + + CAST( 26 AS SIGNED )
----
4068

skipif mysql # not compatible
query I rowsort label-7495
SELECT + COALESCE ( 47, + 67 ) * 86 + + CAST ( 26 AS INTEGER )
----
4068

query I rowsort
SELECT 65 - - 54
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT ALL - 70 + - MAX( + 28 ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL - 70 + - MAX ( + 28 ) col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7498
SELECT ALL + 79 * SUM( + 77 * CAST( - 81 AS SIGNED ) ) col1
----
-492723

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL + 79 * SUM ( + 77 * CAST ( - 81 AS INTEGER ) ) col1
----
-492723

query I rowsort
SELECT ALL + 6 + - 26 * 50
----
-1294

query I rowsort
SELECT ALL - 52 + 47
----
-5

query I rowsort
SELECT DISTINCT - 34 + + 32 * 83
----
2622

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL + MIN( ALL 68 ) * + 44 AS col2
----
2992

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL + MIN ( ALL 68 ) * + 44 AS col2
----
2992

query I rowsort
SELECT 10 - 92
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT ALL - COUNT( * ) * + 16
----
-16

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL - COUNT ( * ) * + 16
----
-16

query I rowsort
SELECT ALL + 53 - + 41 * + 34 col1
----
-1341

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT MIN( + 19 ) * + 5 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-7506
SELECT MIN ( + 19 ) * + 5 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT DISTINCT COUNT( * ) - + 41 * 91
----
-3730

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT COUNT ( * ) - + 41 * 91
----
-3730

query I rowsort
SELECT ALL + 17 * + 72 AS col2
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT DISTINCT - SUM( DISTINCT - 85 ) * - 7 AS col1
----
-595

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT - SUM ( DISTINCT - 85 ) * - 7 AS col1
----
-595

query I rowsort
SELECT ALL + 8 * 37 AS col2
----
296

onlyif mysql # DIV for integer division: 
query I rowsort label-7511
SELECT ALL 8 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL 8 / 41
----
0

query I rowsort
SELECT 16 * 42 col1
----
672

query I rowsort
SELECT DISTINCT - ( 79 ) AS col0
----
-79

query I rowsort
SELECT 90 * + 87
----
7830

query I rowsort
SELECT 96 + - 0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT COUNT( * ) * - 10 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-7516
SELECT COUNT ( * ) * - 10 AS col1
----
-10

query I rowsort
SELECT ALL ( 42 ) * - 77 AS col2
----
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT - 3 * COUNT( * ) - - 11 * 50 AS col2
----
547

skipif mysql # not compatible
query I rowsort label-7518
SELECT - 3 * COUNT ( * ) - - 11 * 50 AS col2
----
547

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT DISTINCT + 95 * + MAX( DISTINCT 86 )
----
8170

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT + 95 * + MAX ( DISTINCT 86 )
----
8170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7520
SELECT ALL COUNT( * ) + 26 / MIN( CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL COUNT ( * ) + 26 / MIN ( CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT - 97 + + COUNT( * ) * - 24
----
-121

skipif mysql # not compatible
query I rowsort label-7521
SELECT - 97 + + COUNT ( * ) * - 24
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-7522
SELECT + COALESCE ( 31, 43 + - 92 * 12 ) DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-7522
SELECT + COALESCE ( 31, 43 + - 92 * 12 ) / - 60
----
0

query I rowsort
SELECT DISTINCT - 57 + - 92 AS col1
----
-149

query I rowsort
SELECT + - 83 * 42 - - NULLIF ( 32, 84 )
----
-3454

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT 59 + 94 * COUNT( * ) AS col2
----
153

skipif mysql # not compatible
query I rowsort label-7525
SELECT 59 + 94 * COUNT ( * ) AS col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT DISTINCT ( - MIN( 25 ) ) + - 8
----
-33

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT ( - MIN ( 25 ) ) + - 8
----
-33

query I rowsort
SELECT ALL + 63 + 48
----
111

query I rowsort
SELECT DISTINCT - ( - 43 ) + 78 AS col0
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7529
SELECT + - CAST( NULL AS SIGNED ) * 50 + 23 * NULLIF ( + NULLIF ( 0, MIN( + 40 ) ), COUNT( * ) - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7529
SELECT + - CAST ( NULL AS INTEGER ) * 50 + 23 * NULLIF ( + NULLIF ( 0, MIN ( + 40 ) ), COUNT ( * ) - 82 )
----
NULL

query I rowsort
SELECT 28 + 35
----
63

query I rowsort
SELECT ALL 96 + + 54
----
150

query I rowsort
SELECT DISTINCT + 39 * 71 AS col1
----
2769

query I rowsort
SELECT DISTINCT - - ( - 74 ) + 16 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT - + COUNT( 81 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7534
SELECT - + COUNT ( 81 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 39 - 63
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7536
SELECT ALL - 21 - - COALESCE ( NULLIF ( ( 90 ), 77 * - 17 ), - 82, 17 ) + 95 * CASE 85 * - CAST( ( 44 ) AS SIGNED ) WHEN COUNT( * ) THEN NULL WHEN - 83 / 58 + - 82 THEN 92 ELSE 81 * + 3 + - 4 END AS col1
----
22774

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL - 21 - - COALESCE ( NULLIF ( ( 90 ), 77 * - 17 ), - 82, 17 ) + 95 * CASE 85 * - CAST ( ( 44 ) AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN - 83 / 58 + - 82 THEN 92 ELSE 81 * + 3 + - 4 END AS col1
----
22774

query I rowsort
SELECT DISTINCT 9 * + 56
----
504

query I rowsort
SELECT 0 * 17 col0
----
0

query I rowsort
SELECT 6 + - 85
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT DISTINCT - NULLIF ( + 76, CASE + 6 WHEN + SUM( ALL 27 ) / + 85 THEN 19 - 9 ELSE NULL END ) * - 63 AS col2
----
4788

skipif mysql # not compatible
query I rowsort label-7540
SELECT DISTINCT - NULLIF ( + 76, CASE + 6 WHEN + SUM ( ALL 27 ) / + 85 THEN 19 - 9 ELSE NULL END ) * - 63 AS col2
----
4788

onlyif mysql # DIV for integer division: 
query I rowsort label-7541
SELECT ALL - ( - 4 ) DIV - ( + ( - NULLIF ( 77, 1 ) ) * 70 + + 1 * 0 )
----
0

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL - ( - 4 ) / - ( + ( - NULLIF ( 77, 1 ) ) * 70 + + 1 * 0 )
----
0

query I rowsort
SELECT 96 + + 16
----
112

query I rowsort
SELECT 32 - + + 27
----
5

query I rowsort
SELECT 15 * + 86 * 87
----
112230

query I rowsort
SELECT ALL - ( - 23 ) * 68
----
1564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7546
SELECT 21 + - 42 + 31 * - NULLIF ( 24, - 32 * - CAST( + COUNT( * ) AS SIGNED ) )
----
-765

skipif mysql # not compatible
query I rowsort label-7546
SELECT 21 + - 42 + 31 * - NULLIF ( 24, - 32 * - CAST ( + COUNT ( * ) AS INTEGER ) )
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT DISTINCT + 50 * - COUNT( * ) + COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT + 50 * - COUNT ( * ) + COUNT ( * ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT 13 / COALESCE ( SUM( DISTINCT 76 ), - 14 * 42 + - 44 ) + - COUNT( * ) * CASE 49 WHEN 31 THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT 13 / COALESCE ( SUM ( DISTINCT 76 ), - 14 * 42 + - 44 ) + - COUNT ( * ) * CASE 49 WHEN 31 THEN COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT ALL - - 61 * 5 + - 46 AS col1
----
259

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT DISTINCT + SUM( + 53 ) * - 84
----
-4452

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT + SUM ( + 53 ) * - 84
----
-4452

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT - 95 + + COUNT( * ) + - 26 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-7551
SELECT - 95 + + COUNT ( * ) + - 26 AS col0
----
-120

query I rowsort
SELECT DISTINCT + + 96 * - 31 * 15 + 0
----
-44640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7553
SELECT ALL + + 64 * + 32 + - CAST( 54 + 73 / COUNT( * ) AS SIGNED ) * - 56 AS col2
----
9160

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL + + 64 * + 32 + - CAST ( 54 + 73 / COUNT ( * ) AS INTEGER ) * - 56 AS col2
----
9160

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + - 47 + - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-7554
SELECT + - 47 + - COUNT ( * )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7555
SELECT ALL + CASE WHEN NOT + CAST( NULL AS SIGNED ) IS NOT NULL THEN - 99 ELSE NULL END
----
-99

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL + CASE WHEN NOT + CAST ( NULL AS INTEGER ) IS NOT NULL THEN - 99 ELSE NULL END
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT ALL 34 * - - MIN( - 47 ) + 34 * - 76 AS col1
----
-4182

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL 34 * - - MIN ( - 47 ) + 34 * - 76 AS col1
----
-4182

query I rowsort
SELECT DISTINCT + 34 * - - 70
----
2380

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT + + 79 * + ( 58 ) * - 37 + 89 + + 35 * COUNT( * )
----
-169410

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT + + 79 * + ( 58 ) * - 37 + 89 + + 35 * COUNT ( * )
----
-169410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT ALL - 1 * - CAST( - 35 AS SIGNED ) * 68 AS col1
----
-2380

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL - 1 * - CAST ( - 35 AS INTEGER ) * 68 AS col1
----
-2380

query I rowsort
SELECT + - 95 + - - 51
----
-44

query I rowsort
SELECT - - 51 - - 32 - 6 * - 35 * 97
----
20453

query I rowsort
SELECT + - 46 * - - 30
----
-1380

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL + NULLIF ( 95, + COUNT( * ) * COUNT( * ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL + NULLIF ( 95, + COUNT ( * ) * COUNT ( * ) ) AS col0
----
95

query I rowsort
SELECT - + ( 4 ) - 33
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7565
SELECT 2 * - CAST( NULL AS SIGNED ) + 70 * - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7565
SELECT 2 * - CAST ( NULL AS INTEGER ) + 70 * - 25 AS col0
----
NULL

query I rowsort
SELECT + 69 * + ( 95 )
----
6555

query II rowsort
SELECT ALL 87 AS col1, + 51
----
87
51

query I rowsort
SELECT + 21 - - + 80 col0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-7569
SELECT ALL 44 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL 44 / 32
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT DISTINCT - COUNT( * ) * - - 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT - COUNT ( * ) * - - 25 AS col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-7571
SELECT DISTINCT 62 DIV - ( NULLIF ( + 65, 90 * - 32 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT 62 / - ( NULLIF ( + 65, 90 * - 32 ) )
----
0

query I rowsort
SELECT DISTINCT 55 * + ( - + 76 )
----
-4180

query I rowsort
SELECT DISTINCT COALESCE ( 44, + 27 ) + 97 col2
----
141

query I rowsort
SELECT ALL 90 * 51 * - 47 AS col1
----
-215730

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL COUNT( 26 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL COUNT ( 26 ) AS col1
----
1

query I rowsort
SELECT - ( + - 66 )
----
66

query I rowsort
SELECT + 49 * + + 52 AS col1
----
2548

query I rowsort
SELECT ALL 54 + + 8 * - - 90 AS col2
----
774

query II rowsort
SELECT 7 AS col0, 37 + + + 73 AS col1
----
7
110

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7580
SELECT ALL + 45 + ( + 70 ) + CAST( - COALESCE ( + 43, 98 ) AS SIGNED ) DIV 39
----
114

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL + 45 + ( + 70 ) + CAST ( - COALESCE ( + 43, 98 ) AS INTEGER ) / 39
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT DISTINCT COUNT( - 11 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT COUNT ( - 11 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7582
SELECT 57 DIV - - 80 + - - 14 - - 38 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7582
SELECT 57 / - - 80 + - - 14 - - 38 AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7583
SELECT - 45, + COUNT( * ) AS col0
----
-45
1

skipif mysql # not compatible
query II rowsort label-7583
SELECT - 45, + COUNT ( * ) AS col0
----
-45
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7584
SELECT + COUNT( * ) + + 67 + - + 94 + CAST( NULL AS SIGNED ) / - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT + COUNT ( * ) + + 67 + - + 94 + CAST ( NULL AS INTEGER ) / - 20 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7585
SELECT + + 93, 75 + + 79 DIV + 92 AS col1
----
93
75

skipif mysql # not compatible
query II rowsort label-7585
SELECT + + 93, 75 + + 79 / + 92 AS col1
----
93
75

query I rowsort
SELECT - + 91 * + + ( + + 71 ) + 52
----
-6409

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7587
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2, - 98 - - 70 * + 60 AS col0
----
NULL
4102

skipif mysql # not compatible
query II rowsort label-7587
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, - 98 - - 70 * + 60 AS col0
----
NULL
4102

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT - - ( + 32 ) + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7588
SELECT - - ( + 32 ) + COUNT ( * ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT ALL COUNT( * ) * - - 63 - 85 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL COUNT ( * ) * - - 63 - 85 AS col0
----
-22

query I rowsort
SELECT + - 10 * 81 + - 18
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT - 57 * + COUNT( * ) + + 7 * 98 col0
----
629

skipif mysql # not compatible
query I rowsort label-7591
SELECT - 57 * + COUNT ( * ) + + 7 * 98 col0
----
629

query I rowsort
SELECT - 62 + 30 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT + 23 * MAX( - - ( - 84 ) ) * + 69 - - COUNT( * )
----
-133307

skipif mysql # not compatible
query I rowsort label-7593
SELECT + 23 * MAX ( - - ( - 84 ) ) * + 69 - - COUNT ( * )
----
-133307

query I rowsort
SELECT DISTINCT + + ( + + 3 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7595
SELECT DISTINCT + - COUNT( * ) AS col1, + 99 DIV - 64 + - 65 * 4 AS col1
----
-1
-261

skipif mysql # not compatible
query II rowsort label-7595
SELECT DISTINCT + - COUNT ( * ) AS col1, + 99 / - 64 + - 65 * 4 AS col1
----
-1
-261

query I rowsort
SELECT ALL + - CASE 94 WHEN - - 3 THEN NULL WHEN + 1 + 22 THEN + 8 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7597
SELECT - + ( + - 19 ) * 87 + - MAX( - CAST( 48 AS SIGNED ) + 58 * 13 )
----
947

skipif mysql # not compatible
query I rowsort label-7597
SELECT - + ( + - 19 ) * 87 + - MAX ( - CAST ( 48 AS INTEGER ) + 58 * 13 )
----
947

query I rowsort
SELECT ALL 57 * 75 AS col2
----
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT + 98 + - 40 + - COUNT( * ) * - - 11 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7599
SELECT + 98 + - 40 + - COUNT ( * ) * - - 11 AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7600
SELECT ALL - 58 * + CAST( 9 AS SIGNED ) * 95 * + 28 AS col2
----
-1388520

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL - 58 * + CAST ( 9 AS INTEGER ) * 95 * + 28 AS col2
----
-1388520

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT ALL COUNT( * ) * - ( + 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL COUNT ( * ) * - ( + 90 )
----
-90

query I rowsort
SELECT + 15 * - 54 AS col2
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT - COUNT( * ) + - 29 + - + 85
----
-115

skipif mysql # not compatible
query I rowsort label-7603
SELECT - COUNT ( * ) + - 29 + - + 85
----
-115

query II rowsort
SELECT + 85 * 36 AS col1, 73 col2
----
3060
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL - SUM( DISTINCT + - 16 ) + + - 91 * + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL - SUM ( DISTINCT + - 16 ) + + - 91 * + COUNT ( * )
----
-75

query I rowsort
SELECT DISTINCT + 31 + + + 49 + - 31 AS col0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7607
SELECT ALL ( + COUNT( * ) ) + 26 + NULLIF ( 54, + 54 * - 75 ) - 4 DIV + 30 * + 21 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL ( + COUNT ( * ) ) + 26 + NULLIF ( 54, + 54 * - 75 ) - 4 / + 30 * + 21 AS col2
----
81

query I rowsort
SELECT 41 + - 27
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL 37 + + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL 37 + + COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL + 59 * + - COUNT( + - 42 )
----
-59

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL + 59 * + - COUNT ( + - 42 )
----
-59

query I rowsort
SELECT ( + 53 ) + - + 59 col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7612
SELECT COUNT( * ) + - CAST( MIN( + 81 ) AS SIGNED ) + - 21 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-7612
SELECT COUNT ( * ) + - CAST ( MIN ( + 81 ) AS INTEGER ) + - 21 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT ( - 36 ) - + COUNT( * ) - + 2 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-7613
SELECT ( - 36 ) - + COUNT ( * ) - + 2 AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7614
SELECT ALL + 0 * - 22 * + 19 + 51 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL + 0 * - 22 * + 19 + 51 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT ALL - COUNT( * ) + + - 97 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL - COUNT ( * ) + + - 97 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ALL + 56 * - + 76 * + + COUNT( * )
----
-4256

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL + 56 * - + 76 * + + COUNT ( * )
----
-4256

query I rowsort
SELECT ALL 36 - + ( 75 ) * + 72
----
-5364

query I rowsort
SELECT DISTINCT + 6 * 93 - + - 67 AS col2
----
625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7619
SELECT + CAST( COALESCE ( - CASE - 49 WHEN 89 * 79 THEN NULL WHEN ( 72 ) THEN 11 WHEN - 17 THEN - 13 + 38 ELSE + COUNT( * ) * CAST( ( + ( COALESCE ( 22, 35 ) ) ) AS SIGNED ) END, 17, 58 * - COUNT( * ), + 85 ) AS SIGNED ) DIV - 62 + 99
----
99

skipif mysql # not compatible
query I rowsort label-7619
SELECT + CAST ( COALESCE ( - CASE - 49 WHEN 89 * 79 THEN NULL WHEN ( 72 ) THEN 11 WHEN - 17 THEN - 13 + 38 ELSE + COUNT ( * ) * CAST ( ( + ( COALESCE ( 22, 35 ) ) ) AS INTEGER ) END, 17, 58 * - COUNT ( * ), + 85 ) AS INTEGER ) / - 62 + 99
----
99

query I rowsort
SELECT ALL + - 67 - + 82 AS col0
----
-149

query I rowsort
SELECT 65 * + + 9 AS col2
----
585

query II rowsort
SELECT ALL - - ( 10 ), 87 * 76 + - 89 AS col0
----
10
6523

query I rowsort
SELECT - 16 + - + 71 + - 2 * 19 AS col0
----
-125

query I rowsort
SELECT 44 * - - 53 + + 50
----
2382

query I rowsort
SELECT - 96 * - 66 + 37
----
6373

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT ALL - + MIN( ALL + 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - + MIN ( ALL + 49 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-7627
SELECT + + ( + COUNT( * ) ) AS col0, + 72 * 54
----
1
3888

skipif mysql # not compatible
query II rowsort label-7627
SELECT + + ( + COUNT ( * ) ) AS col0, + 72 * 54
----
1
3888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7628
SELECT ALL + - 75 * + COALESCE ( - - ( + 38 ), 60 * - 59 - - CAST( CASE - 42 WHEN + 38 THEN - CAST( 65 AS DECIMAL ) END AS SIGNED ), - 58 ) * 33 + COUNT( + CAST( NULL AS DECIMAL ) ) * + 46
----
-94050

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL + - 75 * + COALESCE ( - - ( + 38 ), 60 * - 59 - - CAST ( CASE - 42 WHEN + 38 THEN - CAST ( 65 AS REAL ) END AS INTEGER ), - 58 ) * 33 + COUNT ( + CAST ( NULL AS REAL ) ) * + 46
----
-94050

query I rowsort
SELECT 9 * + 22
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT 16 / + COUNT( * ) * + CASE + 59 WHEN + 53 + 4 THEN - 3 WHEN 46 * COUNT( * ) THEN 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT 16 / + COUNT ( * ) * + CASE + 59 WHEN + 53 + 4 THEN - 3 WHEN 46 * COUNT ( * ) THEN 66 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7631
SELECT ALL + 17 + + - 47 * 80 * + - CAST( NULL AS SIGNED ) + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL + 17 + + - 47 * 80 * + - CAST ( NULL AS INTEGER ) + + + COUNT ( * )
----
NULL

query I rowsort
SELECT 90 - 69 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT + COUNT( * ) * - ( + 45 ) - - ( - 62 ) + - 85 * - 68 AS col2
----
5673

skipif mysql # not compatible
query I rowsort label-7633
SELECT + COUNT ( * ) * - ( + 45 ) - - ( - 62 ) + - 85 * - 68 AS col2
----
5673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7634
SELECT ALL - CAST( COUNT( ALL 0 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL - CAST ( COUNT ( ALL 0 ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL 43 + 3 AS col2
----
46

query I rowsort
SELECT DISTINCT ( - - ( + 68 ) ) + + 70 * 71
----
5038

onlyif mysql # aggregate syntax: 
query II rowsort label-7637
SELECT 34 - - ( - 31 ) AS col2, ( + - NULLIF ( 43, CASE ( COUNT( * ) ) WHEN COALESCE ( - 85, - CASE - 34 WHEN 11 THEN 49 WHEN - 71 THEN NULL END ) THEN NULL ELSE ( - ( 71 ) ) END ) ) AS col0
----
3
-43

skipif mysql # not compatible
query II rowsort label-7637
SELECT 34 - - ( - 31 ) AS col2, ( + - NULLIF ( 43, CASE ( COUNT ( * ) ) WHEN COALESCE ( - 85, - CASE - 34 WHEN 11 THEN 49 WHEN - 71 THEN NULL END ) THEN NULL ELSE ( - ( 71 ) ) END ) ) AS col0
----
3
-43

query I rowsort
SELECT DISTINCT 37 + + - 47 + ( - 37 ) * - 12 + + 10
----
444

query I rowsort
SELECT DISTINCT + ( + + 69 ) + + + 69 * 62
----
4347

query I rowsort
SELECT 24 * + + 52 * - 8 * + - 4 AS col2
----
39936

query II rowsort
SELECT 32 AS col1, 13
----
32
13

query II rowsort
SELECT 75, 7 + + 66 - 97 - - 43 + + 75 * + 41 * 51 AS col0
----
75
156844

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT ( COALESCE ( 2, 36 * - + ( + COUNT( * ) ) + 3 * + 21, MAX( DISTINCT + 72 ) ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7643
SELECT ( COALESCE ( 2, 36 * - + ( + COUNT ( * ) ) + 3 * + 21, MAX ( DISTINCT + 72 ) ) ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7644
SELECT CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) * + - 20 * ( NULLIF ( + 82, 68 * 15 + 60 ) ) AS col0
----
-1640

skipif mysql # not compatible
query I rowsort label-7644
SELECT CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) * + - 20 * ( NULLIF ( + 82, 68 * 15 + 60 ) ) AS col0
----
-1640

query I rowsort
SELECT DISTINCT - 27 - - ( 47 )
----
20

query I rowsort
SELECT - NULLIF ( 97, - - 19 * + + 0 * - 93 + 45 * 83 ) col1
----
-97

query I rowsort
SELECT ALL NULLIF ( - - 30, + ( + 97 ) / + 23 ) - - 51 AS col2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7648
SELECT + 73 DIV + 40 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7648
SELECT + 73 / + 40 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT + 40 / + CASE + 14 WHEN + + 11 THEN 12 END * - ( 26 ) + NULLIF ( 40 + + 56, 29 / + MIN( - 94 ) ) + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT + 40 / + CASE + 14 WHEN + + 11 THEN 12 END * - ( 26 ) + NULLIF ( 40 + + 56, 29 / + MIN ( - 94 ) ) + 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - SUM( ALL + 52 ) * 93 AS col1
----
-4836

skipif mysql # not compatible
query I rowsort label-7650
SELECT - SUM ( ALL + 52 ) * 93 AS col1
----
-4836

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT + + NULLIF ( 91, + - 20 + + 79 - + + COALESCE ( - ( - CASE ( COALESCE ( + 47, - ( 11 ) * + MAX( ALL COALESCE ( 71, - 90, + 86 ) + - 74 ), + 8 ) ) WHEN + 11 THEN NULL WHEN 50 / AVG ( 17 ) THEN - 37 ELSE - 88 END ), 86 * 4 ) )
----
91

skipif mysql # not compatible
query I rowsort label-7651
SELECT + + NULLIF ( 91, + - 20 + + 79 - + + COALESCE ( - ( - CASE ( COALESCE ( + 47, - ( 11 ) * + MAX ( ALL COALESCE ( 71, - 90, + 86 ) + - 74 ), + 8 ) ) WHEN + 11 THEN NULL WHEN 50 / AVG ( 17 ) THEN - 37 ELSE - 88 END ), 86 * 4 ) )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7652
SELECT + 39 DIV COUNT( * ) * + - 26
----
-1014

skipif mysql # not compatible
query I rowsort label-7652
SELECT + 39 / COUNT ( * ) * + - 26
----
-1014

query I rowsort
SELECT CASE - 78 WHEN 80 * - + ( + + 57 ) + + 42 THEN COALESCE ( 38, - 88 ) WHEN + 61 * 38 + 30 THEN NULL ELSE 46 + 10 END AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT ALL - + CASE 78 WHEN - 35 THEN + COUNT( * ) + - - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL - + CASE 78 WHEN - 35 THEN + COUNT ( * ) + - - 79 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT - ( + + 83 ) * - NULLIF ( + - 52, + CAST( 46 AS SIGNED ) * + 1 ) + 12 - 59 * 96 AS col2
----
-9968

skipif mysql # not compatible
query I rowsort label-7655
SELECT - ( + + 83 ) * - NULLIF ( + - 52, + CAST ( 46 AS INTEGER ) * + 1 ) + 12 - 59 * 96 AS col2
----
-9968

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT - 80 + + COUNT( * ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-7656
SELECT - 80 + + COUNT ( * ) col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT ( + + 4 ) * 44 / - + CAST( NULL AS SIGNED ) * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT ( + + 4 ) * 44 / - + CAST ( NULL AS INTEGER ) * - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT SUM( + ( 54 ) ) + + 20 - + - 71 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-7658
SELECT SUM ( + ( 54 ) ) + + 20 - + - 71 AS col1
----
145

query I rowsort
SELECT 94 * - 78 * - 31 - 28
----
227264

query II rowsort
SELECT ALL - 70 AS col1, - 99
----
-70
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT MAX( + + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-7661
SELECT MAX ( + + 28 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7662
SELECT ALL - 31 + CAST( + NULLIF ( - - COUNT( * ), 51 + - 68 ) AS SIGNED ) * + 15 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL - 31 + CAST ( + NULLIF ( - - COUNT ( * ), 51 + - 68 ) AS INTEGER ) * + 15 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-7663
SELECT + 51, COUNT( * ) AS col1
----
51
1

skipif mysql # not compatible
query II rowsort label-7663
SELECT + 51, COUNT ( * ) AS col1
----
51
1

query II rowsort
SELECT - 8 + - + 23, - 87 AS col2
----
-31
-87

query I rowsort
SELECT ALL - 86 + - 67
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7666
SELECT ALL CASE + 94 WHEN - CAST( + 29 AS SIGNED ) THEN + COUNT( * ) + + 48 WHEN + 87 + - 34 * ( 76 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL CASE + 94 WHEN - CAST ( + 29 AS INTEGER ) THEN + COUNT ( * ) + + 48 WHEN + 87 + - 34 * ( 76 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7667
SELECT 23 AS col1, - MIN( ALL 56 ) DIV + 91 + COUNT( * )
----
23
1

skipif mysql # not compatible
query II rowsort label-7667
SELECT 23 AS col1, - MIN ( ALL 56 ) / + 91 + COUNT ( * )
----
23
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7668
SELECT - 78 * + + CASE - COUNT( * ) WHEN - - COUNT( * ) THEN NULL WHEN - 3 - COUNT( * ) + 21 / COUNT( * ) THEN CASE CAST( + 29 AS SIGNED ) WHEN 12 THEN NULL ELSE - 48 END ELSE NULL END * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT - 78 * + + CASE - COUNT ( * ) WHEN - - COUNT ( * ) THEN NULL WHEN - 3 - COUNT ( * ) + 21 / COUNT ( * ) THEN CASE CAST ( + 29 AS INTEGER ) WHEN 12 THEN NULL ELSE - 48 END ELSE NULL END * - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT - SUM( ALL 30 ) + + + 38 + - 41
----
-33

skipif mysql # not compatible
query I rowsort label-7669
SELECT - SUM ( ALL 30 ) + + + 38 + - 41
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT DISTINCT CASE + COUNT( * ) WHEN 25 * 7 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT CASE + COUNT ( * ) WHEN 25 * 7 THEN COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( - + 33, - + 27 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT - 60 + 9 * + COUNT( * ) * COUNT( * ) * + - CASE + 9 WHEN - 59 * - 55 THEN NULL WHEN 79 + - 2 THEN NULL ELSE 92 * - 10 END * + 92
----
761700

skipif mysql # not compatible
query I rowsort label-7672
SELECT - 60 + 9 * + COUNT ( * ) * COUNT ( * ) * + - CASE + 9 WHEN - 59 * - 55 THEN NULL WHEN 79 + - 2 THEN NULL ELSE 92 * - 10 END * + 92
----
761700

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT DISTINCT + COALESCE ( + COUNT( * ), + 88 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT + COALESCE ( + COUNT ( * ), + 88 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7674
SELECT DISTINCT - 97 AS col2, + ( COUNT( * ) )
----
-97
1

skipif mysql # not compatible
query II rowsort label-7674
SELECT DISTINCT - 97 AS col2, + ( COUNT ( * ) )
----
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT DISTINCT + 17 * + + 48 + + + 40 * + + ( - + COUNT( * ) ) + + 41 + 64 * + COUNT( * ) AS col1
----
881

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT + 17 * + + 48 + + + 40 * + + ( - + COUNT ( * ) ) + + 41 + 64 * + COUNT ( * ) AS col1
----
881

query I rowsort
SELECT - 92 * - 80
----
7360

query I rowsort
SELECT - - 79 + + 15
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT + + COUNT( DISTINCT + + 38 ) + 42
----
43

skipif mysql # not compatible
query I rowsort label-7678
SELECT + + COUNT ( DISTINCT + + 38 ) + 42
----
43

query I rowsort
SELECT DISTINCT + + 83 * + ( + + CASE 62 WHEN + 74 / - 31 * - 13 THEN + 8 + 7 WHEN - 44 THEN + 22 END ) AS col1
----
NULL

query I rowsort
SELECT + 84 + + - 93
----
-9

query I rowsort
SELECT - + 18 * 51 * - 60 * + 20 AS col0
----
1101600

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT - COUNT( * ) * 26 + + 36 + - - NULLIF ( - 83, - NULLIF ( - 67, + 50 * COUNT( * ) ) ) * + 15
----
-1235

skipif mysql # not compatible
query I rowsort label-7682
SELECT - COUNT ( * ) * 26 + + 36 + - - NULLIF ( - 83, - NULLIF ( - 67, + 50 * COUNT ( * ) ) ) * + 15
----
-1235

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7683
SELECT ALL - 41 DIV COUNT( + - 99 )
----
-41

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL - 41 / COUNT ( + - 99 )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7684
SELECT ALL + SUM( + 19 ) * + COUNT( * ) * + + COUNT( * ) / + 77 + CAST( NULL AS SIGNED ) + - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL + SUM ( + 19 ) * + COUNT ( * ) * + + COUNT ( * ) / + 77 + CAST ( NULL AS INTEGER ) + - 99 AS col1
----
NULL

query II rowsort
SELECT + + 66 AS col1, - ( - 63 ) AS col2
----
66
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL COUNT( * ) * + SUM( - 69 ) + + + COUNT( * ) + + + 58 - 35
----
-45

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL COUNT ( * ) * + SUM ( - 69 ) + + + COUNT ( * ) + + + 58 - 35
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT - - MAX( - COALESCE ( + ( - COALESCE ( + 24, + COALESCE ( 79, 55 * 74 ), - 24 ) ), 76 ) ) * 16 AS col2
----
384

skipif mysql # not compatible
query I rowsort label-7687
SELECT - - MAX ( - COALESCE ( + ( - COALESCE ( + 24, + COALESCE ( 79, 55 * 74 ), - 24 ) ), 76 ) ) * 16 AS col2
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT ALL COUNT( - 36 ) * + 97 col2
----
97

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL COUNT ( - 36 ) * + 97 col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT + COUNT( DISTINCT + 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7689
SELECT + COUNT ( DISTINCT + 33 ) AS col2
----
1

query I rowsort
SELECT + NULLIF ( - 82, 78 ) AS col2
----
-82

query I rowsort
SELECT ALL NULLIF ( + 10, 84 - - + 86 * - 13 * - - 89 ) * - 65
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT + MIN( ALL - + 95 ) + + COUNT( * ) col0
----
-94

skipif mysql # not compatible
query I rowsort label-7692
SELECT + MIN ( ALL - + 95 ) + + COUNT ( * ) col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-7693
SELECT + ( - 51 ) AS col1, + NULLIF ( + ( - COALESCE ( + 55, + + 84 ) ), 63 + - 26 * + COUNT( * ) )
----
-51
-55

skipif mysql # not compatible
query II rowsort label-7693
SELECT + ( - 51 ) AS col1, + NULLIF ( + ( - COALESCE ( + 55, + + 84 ) ), 63 + - 26 * + COUNT ( * ) )
----
-51
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT + 26 + CASE + ( + COUNT( * ) ) WHEN - COUNT( * ) THEN + + MIN( - + 54 ) + 40 * 86 ELSE NULL END / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT + 26 + CASE + ( + COUNT ( * ) ) WHEN - COUNT ( * ) THEN + + MIN ( - + 54 ) + 40 * 86 ELSE NULL END / 59
----
NULL

query I rowsort
SELECT + 85 * 20
----
1700

query I rowsort
SELECT ALL + 13 * 4 - + 52 + + + 46 * 2 * 89 AS col1
----
8188

query I rowsort
SELECT + 96 * + + 83 * - 87 AS col2
----
-693216

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT + NULLIF ( + 83, + 40 * + NULLIF ( 24, + COUNT( * ) ) * NULLIF ( - 34, - 13 ) * - 88 - 55 * - 25 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7698
SELECT + NULLIF ( + 83, + 40 * + NULLIF ( 24, + COUNT ( * ) ) * NULLIF ( - 34, - 13 ) * - 88 - 55 * - 25 ) AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7699
SELECT + 73 - + + 58 AS col0, CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
15
NULL

skipif mysql # not compatible
query II rowsort label-7699
SELECT + 73 - + + 58 AS col0, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT COALESCE ( + COUNT( * ), - CASE - - NULLIF ( + COUNT( DISTINCT + 40 ), - 2 ) WHEN COUNT( * ) THEN - 2 WHEN - 86 THEN NULL WHEN - 7 * + COUNT( DISTINCT ( 51 ) ) THEN NULL END * - 40, 80 * 48 - 56 )
----
1

skipif mysql # not compatible
query I rowsort label-7700
SELECT COALESCE ( + COUNT ( * ), - CASE - - NULLIF ( + COUNT ( DISTINCT + 40 ), - 2 ) WHEN COUNT ( * ) THEN - 2 WHEN - 86 THEN NULL WHEN - 7 * + COUNT ( DISTINCT ( 51 ) ) THEN NULL END * - 40, 80 * 48 - 56 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT CASE + 43 WHEN NULLIF ( - + 14, - + 79 * - 96 * + COUNT( * ) ) / - 43 + - 49 THEN NULL ELSE COALESCE ( + 28, + 59 * 10 + + COUNT( * ) ) END AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7701
SELECT CASE + 43 WHEN NULLIF ( - + 14, - + 79 * - 96 * + COUNT ( * ) ) / - 43 + - 49 THEN NULL ELSE COALESCE ( + 28, + 59 * 10 + + COUNT ( * ) ) END AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT + NULLIF ( + + 81, - COUNT( * ) ) * - CASE + 0 WHEN + 23 THEN 42 - 80 WHEN + 1 THEN - 75 ELSE NULL END + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7702
SELECT + NULLIF ( + + 81, - COUNT ( * ) ) * - CASE + 0 WHEN + 23 THEN 42 - 80 WHEN + 1 THEN - 75 ELSE NULL END + 96
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7703
SELECT - CAST( + 90 AS SIGNED ), 92 * + 54 AS col2
----
-90
4968

skipif mysql # not compatible
query II rowsort label-7703
SELECT - CAST ( + 90 AS INTEGER ), 92 * + 54 AS col2
----
-90
4968

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT + 19 DIV + ( 73 )
----
0

skipif mysql # not compatible
query I rowsort label-7704
SELECT + 19 / + ( 73 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7705
SELECT - CASE + + 72 WHEN - 2 / - 83 - COUNT( * ) THEN 8 - + + MIN( ALL 59 ) - 14 / CAST( NULL AS DECIMAL ) END - - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT - CASE + + 72 WHEN - 2 / - 83 - COUNT ( * ) THEN 8 - + + MIN ( ALL 59 ) - 14 / CAST ( NULL AS REAL ) END - - 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7706
SELECT ALL CAST( + 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL CAST ( + 0 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT ALL + 19 * - - 5 * + - 47 * + - 0 * + 22 + - 53 + - - 18
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7708
SELECT + + COUNT( * ) DIV + 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7708
SELECT + + COUNT ( * ) / + 28 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT - + COUNT( * ) * - - 51 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-7709
SELECT - + COUNT ( * ) * - - 51 AS col0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7710
SELECT + - CAST( NULL AS DECIMAL ) + NULLIF ( 5, 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7710
SELECT + - CAST ( NULL AS REAL ) + NULLIF ( 5, 87 )
----
NULL

query II rowsort
SELECT - - 33 * - + 34 AS col2, + 43 AS col0
----
-1122
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7712
SELECT ALL - 53 DIV - 47
----
1

skipif mysql # not compatible
query I rowsort label-7712
SELECT ALL - 53 / - 47
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7713
SELECT - 12 DIV + 86 - + COUNT( * ), - MIN( + CASE WHEN NOT ( NULL ) NOT IN ( 72 ) THEN 45 * - 43 ELSE NULL END ) + - 79 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7713
SELECT - 12 / + 86 - + COUNT ( * ), - MIN ( + CASE WHEN NOT ( NULL ) NOT IN ( 72 ) THEN 45 * - 43 ELSE NULL END ) + - 79 AS col1
----
-1
NULL

query I rowsort
SELECT - 82 * 9
----
-738

query I rowsort
SELECT - + 31 - + + 47
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT DISTINCT - COALESCE ( - 19, + MIN( 22 ) ) col1
----
19

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT - COALESCE ( - 19, + MIN ( 22 ) ) col1
----
19

query I rowsort
SELECT DISTINCT - 34 + 64 AS col0
----
30

query I rowsort
SELECT ALL - + 5 + + - 26 AS col1
----
-31

query I rowsort
SELECT ALL - 1 + - - 88 + - ( + 18 ) AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7720
SELECT - 1 + + 0 - - 91 DIV - - 80 col0
----
0

skipif mysql # not compatible
query I rowsort label-7720
SELECT - 1 + + 0 - - 91 / - - 80 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7721
SELECT + - 63 DIV - - COUNT( * ) + - + 94 + + COALESCE ( + ( - COUNT( * ) ), + - 21 - MIN( 61 ) ) * - MAX( 82 )
----
-75

skipif mysql # not compatible
query I rowsort label-7721
SELECT + - 63 / - - COUNT ( * ) + - + 94 + + COALESCE ( + ( - COUNT ( * ) ), + - 21 - MIN ( 61 ) ) * - MAX ( 82 )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7722
SELECT - 84 * + 20 + COUNT( * ) - + 22 * - COUNT( * ) * + + 17 - + 67 - 89 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT - 84 * + 20 + COUNT ( * ) - + 22 * - COUNT ( * ) * + + 17 - + 67 - 89 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7723
SELECT - 28 + + 25 AS col0, 1 DIV + 29 * - 92
----
-3
0

skipif mysql # not compatible
query II rowsort label-7723
SELECT - 28 + + 25 AS col0, 1 / + 29 * - 92
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT CASE - NULLIF ( - 29, COALESCE ( - + COUNT( * ), - - MIN( DISTINCT - + 72 ) * 0, - 23 * - COUNT( * ) ) / - 5 + 27 ) WHEN - ( + ( + 64 ) ) THEN NULL WHEN ( - 23 ) + - 2 THEN - CASE + MIN( ALL 71 ) WHEN 67 THEN COALESCE ( - 9, COUNT( * ) + COUNT( * ) * 62 ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7724
SELECT CASE - NULLIF ( - 29, COALESCE ( - + COUNT ( * ), - - MIN ( DISTINCT - + 72 ) * 0, - 23 * - COUNT ( * ) ) / - 5 + 27 ) WHEN - ( + ( + 64 ) ) THEN NULL WHEN ( - 23 ) + - 2 THEN - CASE + MIN ( ALL 71 ) WHEN 67 THEN COALESCE ( - 9, COUNT ( * ) + COUNT ( * ) * 62 ) END ELSE NULL END
----
NULL

query I rowsort
SELECT - 20 * + - 19 + - 57
----
323

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7726
SELECT ALL + 96 DIV - NULLIF ( + ( 42 ), - 37 ) + - - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL + 96 / - NULLIF ( + ( 42 ), - 37 ) + - - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT ALL COUNT( * ) + + - 36 * - 58 * 3 * - - 51
----
319465

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL COUNT ( * ) + + - 36 * - 58 * 3 * - - 51
----
319465

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT 31 / + - 2 + - ( MAX( + 4 ) ) - - CASE 91 WHEN - 7 * - 94 THEN CASE - 2 WHEN 51 + ( 42 ) THEN + 3 + 46 END * 48 END / + 89 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT 31 / + - 2 + - ( MAX ( + 4 ) ) - - CASE 91 WHEN - 7 * - 94 THEN CASE - 2 WHEN 51 + ( 42 ) THEN + 3 + 46 END * 48 END / + 89 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7729
SELECT DISTINCT - AVG ( + CAST( NULL AS SIGNED ) ) + + 30 - + - ( 26 ) - + CAST( NULL AS SIGNED ) * 41 / - 62 / + 12 + 3 / 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT - AVG ( + CAST ( NULL AS INTEGER ) ) + + 30 - + - ( 26 ) - + CAST ( NULL AS INTEGER ) * 41 / - 62 / + 12 + 3 / 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7730
SELECT ALL - 5, SUM( - - 50 ) AS col2
----
-5
50

skipif mysql # not compatible
query II rowsort label-7730
SELECT ALL - 5, SUM ( - - 50 ) AS col2
----
-5
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7731
SELECT DISTINCT 79 DIV 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT 79 / 53 AS col1
----
1

query I rowsort
SELECT 44 + + - 7
----
37

query I rowsort
SELECT 15 * - 21 AS col1
----
-315

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT 68 DIV 64 + 58
----
59

skipif mysql # not compatible
query I rowsort label-7734
SELECT 68 / 64 + 58
----
59

onlyif mysql # DIV for integer division: 
query II rowsort label-7735
SELECT ALL - 95 AS col1, + 24 DIV + 29 col0
----
-95
0

skipif mysql # not compatible
query II rowsort label-7735
SELECT ALL - 95 AS col1, + 24 / + 29 col0
----
-95
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7736
SELECT + 4, - 59 * - 5 DIV CAST( - - 93 AS SIGNED ) DIV - + 70 * + 33 + - + 20 + 94 AS col1
----
4
74

skipif mysql # not compatible
query II rowsort label-7736
SELECT + 4, - 59 * - 5 / CAST ( - - 93 AS INTEGER ) / - + 70 * + 33 + - + 20 + 94 AS col1
----
4
74

query I rowsort
SELECT ALL 37 - - 67 AS col2
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7738
SELECT 69 + + CAST( - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7738
SELECT 69 + + CAST ( - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 75 * 61 AS col2
----
4575

query II rowsort
SELECT + 49 AS col1, + 12 * + 46 AS col1
----
49
552

query I rowsort
SELECT - 83 + + ( - ( + 85 ) ) AS col1
----
-168

query I rowsort
SELECT + 53 * 7 AS col1
----
371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7743
SELECT - CASE 1 WHEN MIN( 4 ) THEN 59 * CAST( NULL AS SIGNED ) + - + 45 * + 95 * + 69 END * 10 + + 19 * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT - CASE 1 WHEN MIN ( 4 ) THEN 59 * CAST ( NULL AS INTEGER ) + - + 45 * + 95 * + 69 END * 10 + + 19 * 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT - + CASE SUM( - - 1 ) WHEN - COUNT( * ) * - 97 * + 47 THEN 83 + 10 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7744
SELECT - + CASE SUM ( - - 1 ) WHEN - COUNT ( * ) * - 97 * + 47 THEN 83 + 10 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 65 + + 25 col2
----
90

query I rowsort
SELECT 65 + 17 col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7747
SELECT ALL - 96 + CASE CASE + 48 WHEN + COUNT( * ) * - CAST( NULL AS SIGNED ) * - + 1 THEN - 30 ELSE AVG ( - 40 ) END WHEN + 57 + + CAST( NULL AS SIGNED ) THEN + 77 - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL - 96 + CASE CASE + 48 WHEN + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - + 1 THEN - 30 ELSE AVG ( - 40 ) END WHEN + 57 + + CAST ( NULL AS INTEGER ) THEN + 77 - - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7748
SELECT + 19 + + COUNT( ALL - 49 ), - ( + CAST( NULL AS DECIMAL ) ) AS col0
----
20
NULL

skipif mysql # not compatible
query II rowsort label-7748
SELECT + 19 + + COUNT ( ALL - 49 ), - ( + CAST ( NULL AS REAL ) ) AS col0
----
20
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7749
SELECT DISTINCT - + NULLIF ( - 23, 49 + 78 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT - + NULLIF ( - 23, 49 + 78 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 53 + + + 98 AS col0
----
151

query I rowsort
SELECT + 33 + - 42 AS col0
----
-9

query I rowsort
SELECT ALL 2 + - - 51 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT ALL + SUM( + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL + SUM ( + 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT 3 + - ( - COUNT( * ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7754
SELECT 3 + - ( - COUNT ( * ) ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT DISTINCT - 13 * + COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT - 13 * + COUNT ( * ) AS col0
----
-13

query II rowsort
SELECT - + 36 AS col0, - 43 AS col0
----
-36
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7757
SELECT ALL + 39, + 73 * - MAX( ALL + 67 ) AS col1
----
39
-4891

skipif mysql # not compatible
query II rowsort label-7757
SELECT ALL + 39, + 73 * - MAX ( ALL + 67 ) AS col1
----
39
-4891

query I rowsort
SELECT 13 * - 37
----
-481

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT DISTINCT + 47 DIV 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT + 47 / 57 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL - - ( - 81 ) + + COUNT( * ) + - 15 * 86 AS col2
----
-1370

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL - - ( - 81 ) + + COUNT ( * ) + - 15 * 86 AS col2
----
-1370

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT SUM( ALL + 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7761
SELECT SUM ( ALL + 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT DISTINCT - MIN( ALL - + 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT - MIN ( ALL - + 39 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT ALL - 0 - - - COALESCE ( ( + + 28 ), - + SUM( ALL - - 96 ) + - + ( - 87 ) + 24 * + 18 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL - 0 - - - COALESCE ( ( + + 28 ), - + SUM ( ALL - - 96 ) + - + ( - 87 ) + 24 * + 18 ) AS col0
----
-28

query II rowsort
SELECT DISTINCT - 54 * - 40 AS col1, 34 + + 98 AS col2
----
2160
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT ALL - CAST( - - 33 AS SIGNED ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL - CAST ( - - 33 AS INTEGER ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT - 55 * - + CASE COUNT( * ) WHEN + 27 THEN + 66 * - CASE + - 6 WHEN COUNT( * ) + 77 + - 93 THEN NULL ELSE 16 * - 71 END ELSE + 44 END AS col0
----
2420

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT - 55 * - + CASE COUNT ( * ) WHEN + 27 THEN + 66 * - CASE + - 6 WHEN COUNT ( * ) + 77 + - 93 THEN NULL ELSE 16 * - 71 END ELSE + 44 END AS col0
----
2420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7767
SELECT 50 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7767
SELECT 50 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT ALL + COUNT( 4 ) * - + 43
----
-43

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL + COUNT ( 4 ) * - + 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT ALL - NULLIF ( - - 1, + SUM( DISTINCT - - 9 ) - 10 + + 63 * + ( + 13 ) - - 77 + 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL - NULLIF ( - - 1, + SUM ( DISTINCT - - 9 ) - 10 + + 63 * + ( + 13 ) - - 77 + 42 )
----
-1

query I rowsort
SELECT 59 + + 55 + + + 83 + - + ( - 9 ) + + 20 * 56
----
1326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7771
SELECT CAST( NULL AS SIGNED ) + + 95 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT CAST ( NULL AS INTEGER ) + + 95 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT DISTINCT - 69 + - 13 + + - COUNT( ALL + 63 ) + 79 * - + 65 * - 17 * - NULLIF ( - MIN( + 25 ), - COUNT( * ) + 25 ) + + 46 * 6
----
2182568

skipif mysql # not compatible
query I rowsort label-7772
SELECT DISTINCT - 69 + - 13 + + - COUNT ( ALL + 63 ) + 79 * - + 65 * - 17 * - NULLIF ( - MIN ( + 25 ), - COUNT ( * ) + 25 ) + + 46 * 6
----
2182568

query I rowsort
SELECT 2 * - - 93 AS col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT + 50 + COUNT( * ) + - 57 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7774
SELECT + 50 + COUNT ( * ) + - 57 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT DISTINCT - 67 + - - 28 * + COUNT( * ) * 53 - - 82
----
1499

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT - 67 + - - 28 * + COUNT ( * ) * 53 - - 82
----
1499

onlyif mysql # aggregate syntax: 
query II rowsort label-7776
SELECT - ( + 22 ) AS col1, - 15 + - COUNT( * ) AS col1
----
-22
-16

skipif mysql # not compatible
query II rowsort label-7776
SELECT - ( + 22 ) AS col1, - 15 + - COUNT ( * ) AS col1
----
-22
-16

query I rowsort
SELECT - 17 * 93
----
-1581

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT ALL - + MAX( 62 ) + + SUM( 47 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL - + MAX ( 62 ) + + SUM ( 47 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-7779
SELECT DISTINCT - COUNT( * ) + - 86 * - 50 + - 24, 71 + + COUNT( * ) + - 3 AS col2
----
4275
69

skipif mysql # not compatible
query II rowsort label-7779
SELECT DISTINCT - COUNT ( * ) + - 86 * - 50 + - 24, 71 + + COUNT ( * ) + - 3 AS col2
----
4275
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7780
SELECT 59 - 77 + + COUNT( * ) * + COUNT( + - CAST( NULL AS DECIMAL ) ) * - - 81 * + MIN( + - 56 ) + 39 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-7780
SELECT 59 - 77 + + COUNT ( * ) * + COUNT ( + - CAST ( NULL AS REAL ) ) * - - 81 * + MIN ( + - 56 ) + 39 AS col2
----
21

query I rowsort
SELECT + 83 * - ( 4 )
----
-332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT CAST( NULL AS SIGNED ) * COALESCE ( + 82, - + 20 + - 67, - - 14 * 47 * + CAST( - 64 AS SIGNED ) * - 16 + - 44 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT CAST ( NULL AS INTEGER ) * COALESCE ( + 82, - + 20 + - 67, - - 14 * 47 * + CAST ( - 64 AS INTEGER ) * - 16 + - 44 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7783
SELECT DISTINCT 32 + + - 97 * + - COUNT( * ) + CAST( NULL AS SIGNED ) + + + 58 * NULLIF ( + 1, - + 20 - - 65 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT 32 + + - 97 * + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + + + 58 * NULLIF ( + 1, - + 20 - - 65 ) AS col1
----
NULL

query I rowsort
SELECT + 19 - + - 39 AS col1
----
58

query II rowsort
SELECT - ( 67 ) AS col0, - 12
----
-67
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT ALL + ( + 76 ) * - 36 * MIN( + 85 )
----
-232560

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL + ( + 76 ) * - 36 * MIN ( + 85 )
----
-232560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7787
SELECT ALL CAST( + 82 AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL CAST ( + 82 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 74 + 10 AS col0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7789
SELECT + CASE - - 71 WHEN - COUNT( * ) - 25 * + COUNT( * ) * + 9 * + 70 THEN - 79 * - NULLIF ( + - 12, + 98 ) * + NULLIF ( 61 * 89 - 54, + 26 + 23 * + 19 ) + - NULLIF ( 51, 71 ) ELSE + 5 * 89 END DIV + 49 - - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-7789
SELECT + CASE - - 71 WHEN - COUNT ( * ) - 25 * + COUNT ( * ) * + 9 * + 70 THEN - 79 * - NULLIF ( + - 12, + 98 ) * + NULLIF ( 61 * 89 - 54, + 26 + 23 * + 19 ) + - NULLIF ( 51, 71 ) ELSE + 5 * 89 END / + 49 - - COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT 41 * + 96 + SUM( DISTINCT + 93 ) AS col0
----
4029

skipif mysql # not compatible
query I rowsort label-7790
SELECT 41 * + 96 + SUM ( DISTINCT + 93 ) AS col0
----
4029

query I rowsort
SELECT + 67 * 36
----
2412

query I rowsort
SELECT - 73 * ( - 17 ) * - 92 * 63 + - + 74 - - 5
----
-7192905

onlyif mysql # DIV for integer division: 
query I rowsort label-7793
SELECT ALL - 96 DIV 66
----
-1

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL - 96 / 66
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7794
SELECT - 96 + - 56 + + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT - 96 + - 56 + + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT NULLIF ( 80, - 54 * + + 6 - - 36 + MAX( + 75 ) + - 94 * - 57 * 42 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-7795
SELECT NULLIF ( 80, - 54 * + + 6 - - 36 + MAX ( + 75 ) + - 94 * - 57 * 42 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT + ( - 44 ) * COUNT( * ) - - 25 - - CASE - COALESCE ( 10, ( - 57 ) ) WHEN - 31 + NULLIF ( COUNT( * ), ( 42 ) * 28 ) THEN + 28 + 25 WHEN + 95 THEN NULL ELSE ( - 24 ) END + - 27
----
-70

skipif mysql # not compatible
query I rowsort label-7796
SELECT + ( - 44 ) * COUNT ( * ) - - 25 - - CASE - COALESCE ( 10, ( - 57 ) ) WHEN - 31 + NULLIF ( COUNT ( * ), ( 42 ) * 28 ) THEN + 28 + 25 WHEN + 95 THEN NULL ELSE ( - 24 ) END + - 27
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-7797
SELECT COALESCE ( + 87, + - COUNT( * ) ) AS col2, + 40 * - 40 * - 63 + 55 * - 77 AS col1
----
87
96565

skipif mysql # not compatible
query II rowsort label-7797
SELECT COALESCE ( + 87, + - COUNT ( * ) ) AS col2, + 40 * - 40 * - 63 + 55 * - 77 AS col1
----
87
96565

query I rowsort
SELECT ALL + 33 * + 48 * 77 AS col2
----
121968

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT ALL COALESCE ( MIN( ALL + 69 ), - 61 ) * + 0 + + 47 + - + 63 * + ( - MAX( + 54 ) ) + - 21
----
3428

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL COALESCE ( MIN ( ALL + 69 ), - 61 ) * + 0 + + 47 + - + 63 * + ( - MAX ( + 54 ) ) + - 21
----
3428

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT DISTINCT COALESCE ( - - ( + COUNT( * ) ), - + 71 ) * + 19 + COUNT( * ) + + - 22
----
-2

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT COALESCE ( - - ( + COUNT ( * ) ), - + 71 ) * + 19 + COUNT ( * ) + + - 22
----
-2

query I rowsort
SELECT ALL + 6 * + + 38 AS col0
----
228

onlyif mysql # aggregate syntax: 
query II rowsort label-7802
SELECT - 35 * SUM( + + 30 ) + - COUNT( - 13 ) AS col2, - 19 AS col1
----
-1051
-19

skipif mysql # not compatible
query II rowsort label-7802
SELECT - 35 * SUM ( + + 30 ) + - COUNT ( - 13 ) AS col2, - 19 AS col1
----
-1051
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT - MIN( ALL + - 31 ) - - 72 * - 48 + - - 36 AS col1
----
-3389

skipif mysql # not compatible
query I rowsort label-7803
SELECT - MIN ( ALL + - 31 ) - - 72 * - 48 + - - 36 AS col1
----
-3389

onlyif mysql # aggregate syntax: 
query II rowsort label-7804
SELECT ALL + 53 AS col1, COUNT( * )
----
53
1

skipif mysql # not compatible
query II rowsort label-7804
SELECT ALL + 53 AS col1, COUNT ( * )
----
53
1

query I rowsort
SELECT - + 83 + + 83
----
0

query I rowsort
SELECT - - 24 * + - 93
----
-2232

query I rowsort
SELECT + 37 - 46
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT - - NULLIF ( - + COUNT( * ), + 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-7808
SELECT - - NULLIF ( - + COUNT ( * ), + 22 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT - 86 * - - SUM( 80 ) + - + NULLIF ( 45, 91 * - CASE 0 WHEN 66 + 70 + 41 THEN + CASE + 95 WHEN 51 * - 38 THEN ( - 96 ) WHEN - 21 THEN NULL END + + CASE 36 WHEN - 14 THEN NULL WHEN 99 THEN COALESCE ( COUNT( * ), ( - 45 ) ) * - ( - 48 ) + 5 * + 92 END ELSE NULL END ) col2
----
-6925

skipif mysql # not compatible
query I rowsort label-7809
SELECT - 86 * - - SUM ( 80 ) + - + NULLIF ( 45, 91 * - CASE 0 WHEN 66 + 70 + 41 THEN + CASE + 95 WHEN 51 * - 38 THEN ( - 96 ) WHEN - 21 THEN NULL END + + CASE 36 WHEN - 14 THEN NULL WHEN 99 THEN COALESCE ( COUNT ( * ), ( - 45 ) ) * - ( - 48 ) + 5 * + 92 END ELSE NULL END ) col2
----
-6925

query I rowsort
SELECT + 51 * - 46
----
-2346

query I rowsort
SELECT ALL + 22 - - 21 * + + 70 AS col0
----
1492

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL - 64 * NULLIF ( ( - NULLIF ( - COUNT( * ), 94 ) ), + ( - 53 ) ) * - - ( + 99 )
----
-6336

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL - 64 * NULLIF ( ( - NULLIF ( - COUNT ( * ), 94 ) ), + ( - 53 ) ) * - - ( + 99 )
----
-6336

query I rowsort
SELECT - 95 * + 13 + 67
----
-1168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7814
SELECT - CAST( NULL AS SIGNED ) + - + NULLIF ( + 4, - 18 * - CASE - ( - ( - - 91 ) ) WHEN + - 13 + + - 21 THEN + ( - CAST( 7 AS SIGNED ) ) * 3 ELSE NULL END ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT - CAST ( NULL AS INTEGER ) + - + NULLIF ( + 4, - 18 * - CASE - ( - ( - - 91 ) ) WHEN + - 13 + + - 21 THEN + ( - CAST ( 7 AS INTEGER ) ) * 3 ELSE NULL END ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT DISTINCT + COUNT( * ) * - 87 - - + 0 + - SUM( DISTINCT 85 ) * + 86
----
-7397

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT + COUNT ( * ) * - 87 - - + 0 + - SUM ( DISTINCT 85 ) * + 86
----
-7397

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT - 17 + + MIN( 18 ) * + - 62 AS col2
----
-1133

skipif mysql # not compatible
query I rowsort label-7816
SELECT - 17 + + MIN ( 18 ) * + - 62 AS col2
----
-1133

query II rowsort
SELECT ALL 98 col2, ( + 29 ) + + + 8
----
98
37

query I rowsort
SELECT + - 17 + 50 + + - 73 + + 52
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-7819
SELECT 35 AS col1, 49 DIV + 28
----
35
1

skipif mysql # not compatible
query II rowsort label-7819
SELECT 35 AS col1, 49 / + 28
----
35
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT + COUNT( * ) * NULLIF ( + - 48, + NULLIF ( 65, + 9 ) + - 57 * 24 * 48 ) * - + COALESCE ( + - 99, 13 ) * - 51 + - 73 AS col1
----
242279

skipif mysql # not compatible
query I rowsort label-7820
SELECT + COUNT ( * ) * NULLIF ( + - 48, + NULLIF ( 65, + 9 ) + - 57 * 24 * 48 ) * - + COALESCE ( + - 99, 13 ) * - 51 + - 73 AS col1
----
242279

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT - MAX( ALL NULLIF ( - + 83, - + 69 ) )
----
83

skipif mysql # not compatible
query I rowsort label-7821
SELECT - MAX ( ALL NULLIF ( - + 83, - + 69 ) )
----
83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7822
SELECT + ( + 85 ) + + 32 + - + CAST( COALESCE ( + 99, - + 83 ) AS SIGNED ) DIV - 16
----
123

skipif mysql # not compatible
query I rowsort label-7822
SELECT + ( + 85 ) + + 32 + - + CAST ( COALESCE ( + 99, - + 83 ) AS INTEGER ) / - 16
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7823
SELECT ALL 14 * COUNT( * ) DIV - 10
----
-1

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL 14 * COUNT ( * ) / - 10
----
-1

query II rowsort
SELECT 72 AS col2, 33 * + - 92
----
72
-3036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7825
SELECT ALL COUNT( * ) DIV COUNT( * ) + + + 50
----
51

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL COUNT ( * ) / COUNT ( * ) + + + 50
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7826
SELECT DISTINCT NULLIF ( - 88, COALESCE ( - 87, - NULLIF ( 48, - - 33 ), - + 94 ) + + + 83 ) DIV 73 + 81 + 70
----
150

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT NULLIF ( - 88, COALESCE ( - 87, - NULLIF ( 48, - - 33 ), - + 94 ) + + + 83 ) / 73 + 81 + 70
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7827
SELECT DISTINCT 0 DIV + + 89 * + + 70 + CAST( + 60 AS SIGNED ) - - + 97 + - 30 DIV + + 3 * + - COUNT( * ) AS col2, + COUNT( * )
----
167
1

skipif mysql # not compatible
query II rowsort label-7827
SELECT DISTINCT 0 / + + 89 * + + 70 + CAST ( + 60 AS INTEGER ) - - + 97 + - 30 / + + 3 * + - COUNT ( * ) AS col2, + COUNT ( * )
----
167
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT + 84 - + COUNT( * ) * + 63 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7828
SELECT + 84 - + COUNT ( * ) * + 63 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT + ( + SUM( ALL - 18 ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-7829
SELECT + ( + SUM ( ALL - 18 ) ) AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7830
SELECT CAST( + MIN( DISTINCT - + 51 ) AS SIGNED ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-7830
SELECT CAST ( + MIN ( DISTINCT - + 51 ) AS INTEGER ) AS col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7831
SELECT + 36 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-7831
SELECT + 36 / + 63
----
0

query I rowsort
SELECT - 42 * - 31 AS col2
----
1302

query II rowsort
SELECT ALL 60 * - 33 AS col1, 72
----
-1980
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL 12 / + + 0 * - MAX( + CASE - 75 WHEN ( 44 ) * - 15 - - ( - + 55 ) * 89 THEN 45 WHEN 67 THEN NULL ELSE NULL END ) + 39 * - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL 12 / + + 0 * - MAX ( + CASE - 75 WHEN ( 44 ) * - 15 - - ( - + 55 ) * 89 THEN 45 WHEN 67 THEN NULL ELSE NULL END ) + 39 * - 69 AS col2
----
NULL

query II rowsort
SELECT ( 70 ), + 72 AS col1
----
70
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7836
SELECT - + CASE ( + COUNT( - + 16 ) ) WHEN + 72 THEN - - 9 * + 88 WHEN - ( - + 7 ) THEN 4 END + - - NULLIF ( + 52, 36 ) * CAST( ( COUNT( * ) ) + + 39 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT - + CASE ( + COUNT ( - + 16 ) ) WHEN + 72 THEN - - 9 * + 88 WHEN - ( - + 7 ) THEN 4 END + - - NULLIF ( + 52, 36 ) * CAST ( ( COUNT ( * ) ) + + 39 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT ALL + 28 * COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL + 28 * COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL + SUM( 54 )
----
54

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL + SUM ( 54 )
----
54

query I rowsort
SELECT DISTINCT + 84 * + - ( - 52 )
----
4368

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7840
SELECT - - 73 * + - CAST( NULL AS SIGNED ) DIV - 22 * 8 * - 96 - - 77, 19 DIV + 1 AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-7840
SELECT - - 73 * + - CAST ( NULL AS INTEGER ) / - 22 * 8 * - 96 - - 77, 19 / + 1 AS col0
----
NULL
19

onlyif mysql # aggregate syntax: 
query II rowsort label-7841
SELECT 23, COUNT( ALL - 26 ) AS col0
----
23
1

skipif mysql # not compatible
query II rowsort label-7841
SELECT 23, COUNT ( ALL - 26 ) AS col0
----
23
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7842
SELECT - 35 + + COALESCE ( 36, + + 81 ) + + 12 DIV - COUNT( * ), COUNT( * ) * - - COALESCE ( 9, + ( + 90 ) * - CASE - COALESCE ( + 14, - ( - ( + 60 ) ), + 48 ) WHEN COUNT( ALL - 44 ) + 93 THEN NULL ELSE - 6 END ) AS col2
----
-11
9

skipif mysql # not compatible
query II rowsort label-7842
SELECT - 35 + + COALESCE ( 36, + + 81 ) + + 12 / - COUNT ( * ), COUNT ( * ) * - - COALESCE ( 9, + ( + 90 ) * - CASE - COALESCE ( + 14, - ( - ( + 60 ) ), + 48 ) WHEN COUNT ( ALL - 44 ) + 93 THEN NULL ELSE - 6 END ) AS col2
----
-11
9

query I rowsort
SELECT 80 * - - 23 AS col2
----
1840

onlyif mysql # DIV for integer division: 
query I rowsort label-7844
SELECT COALESCE ( - 50, 41 DIV - 3 DIV - - 7 + - + ( - - 90 ) ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-7844
SELECT COALESCE ( - 50, 41 / - 3 / - - 7 + - + ( - - 90 ) ) AS col2
----
-50

query II rowsort
SELECT DISTINCT - 29 AS col2, 20 * - 29 AS col0
----
-29
-580

query I rowsort
SELECT ALL + - 42 - - - 24 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL - + COUNT( 8 ) / 71 * + 17 + + 38 - - 23 * CASE - 89 WHEN - - 9 * - 91 * + - 94 THEN 45 + - 42 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL - + COUNT ( 8 ) / 71 * + 17 + + 38 - - 23 * CASE - 89 WHEN - - 9 * - 91 * + - 94 THEN 45 + - 42 END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7848
SELECT + 28 * 50, + CAST( NULL AS DECIMAL ) AS col2
----
1400
NULL

skipif mysql # not compatible
query II rowsort label-7848
SELECT + 28 * 50, + CAST ( NULL AS REAL ) AS col2
----
1400
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7849
SELECT 91 - - CAST( 83 AS SIGNED )
----
174

skipif mysql # not compatible
query I rowsort label-7849
SELECT 91 - - CAST ( 83 AS INTEGER )
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT - - MIN( DISTINCT - + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-7850
SELECT - - MIN ( DISTINCT - + 62 )
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7851
SELECT DISTINCT - 23 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT - 23 / + 56
----
0

query I rowsort
SELECT 70 * - + 50
----
-3500

query I rowsort
SELECT DISTINCT - 96 * + 27
----
-2592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7854
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + + 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT ALL 14 + - COUNT( * ) - - 39 - - ( - + 89 ) * COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL 14 + - COUNT ( * ) - - 39 - - ( - + 89 ) * COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7856
SELECT ALL - 5 * + + COUNT( * ), 53 - - 47 AS col1
----
-5
100

skipif mysql # not compatible
query II rowsort label-7856
SELECT ALL - 5 * + + COUNT ( * ), 53 - - 47 AS col1
----
-5
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7857
SELECT ALL + CAST( - 88 AS SIGNED ) * COUNT( * ) + 87 * + 28 AS col0
----
2348

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL + CAST ( - 88 AS INTEGER ) * COUNT ( * ) + 87 * + 28 AS col0
----
2348

query I rowsort
SELECT DISTINCT - 33 + 86
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT ALL + 78 + + - COUNT( * ) + - 70 * - 51
----
3647

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL + 78 + + - COUNT ( * ) + - 70 * - 51
----
3647

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT 59 + - NULLIF ( - - 36, - 77 * + 74 + - 55 * + - NULLIF ( 5, - SUM( 81 ) ) ) * + - COALESCE ( - 5, - 89 ) AS col0
----
-121

skipif mysql # not compatible
query I rowsort label-7860
SELECT 59 + - NULLIF ( - - 36, - 77 * + 74 + - 55 * + - NULLIF ( 5, - SUM ( 81 ) ) ) * + - COALESCE ( - 5, - 89 ) AS col0
----
-121

query I rowsort
SELECT 94 - - 83 col2
----
177

query I rowsort
SELECT + 20 * + - 3 + - 42
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7863
SELECT NULLIF ( - 49, - 2 ) - + 80 * CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) + ( + - 24 ) + 55 / - - 19 + - 74 + - 64 + - 76 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7863
SELECT NULLIF ( - 49, - 2 ) - + 80 * CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) + ( + - 24 ) + 55 / - - 19 + - 74 + - 64 + - 76 AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7864
SELECT 52 DIV NULLIF ( + - 98, - 85 * - 54 * - 88 ) + + - COUNT( * ) col0, - 23 AS col1
----
-1
-23

skipif mysql # not compatible
query II rowsort label-7864
SELECT 52 / NULLIF ( + - 98, - 85 * - 54 * - 88 ) + + - COUNT ( * ) col0, - 23 AS col1
----
-1
-23

query I rowsort
SELECT ALL - 16 + - COALESCE ( 84, 72, - - ( - 15 ) ) AS col1
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7866
SELECT + 70 DIV - NULLIF ( COALESCE ( + COUNT( * ), - - 29 DIV - COUNT( DISTINCT - CAST( 39 AS SIGNED ) ) ), - - ( + 52 ) ) + 8 - + 8
----
-70

skipif mysql # not compatible
query I rowsort label-7866
SELECT + 70 / - NULLIF ( COALESCE ( + COUNT ( * ), - - 29 / - COUNT ( DISTINCT - CAST ( 39 AS INTEGER ) ) ), - - ( + 52 ) ) + 8 - + 8
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT DISTINCT - 80 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT - 80 / 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL 53 * + 50 + - MAX( DISTINCT - 58 ) + 30 - - 26 * + 1 AS col2
----
2764

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL 53 * + 50 + - MAX ( DISTINCT - 58 ) + 30 - - 26 * + 1 AS col2
----
2764

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT ALL - 88 - MAX( + ( + - 82 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL - 88 - MAX ( + ( + - 82 ) )
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-7870
SELECT 26 DIV - 22, - 55 AS col2
----
-1
-55

skipif mysql # not compatible
query II rowsort label-7870
SELECT 26 / - 22, - 55 AS col2
----
-1
-55

query I rowsort
SELECT 57 * + 95 AS col1
----
5415

query I rowsort
SELECT 16 + - 3
----
13

query I rowsort
SELECT ALL - + ( 85 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7874
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT CAST ( NULL AS REAL ) * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT - MAX( + 93 ) + - COUNT( 21 )
----
-94

skipif mysql # not compatible
query I rowsort label-7875
SELECT - MAX ( + 93 ) + - COUNT ( 21 )
----
-94

query I rowsort
SELECT ( ( - 38 ) ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT - SUM( + 12 ) + + COUNT( + + ( + - 24 ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-7877
SELECT - SUM ( + 12 ) + + COUNT ( + + ( + - 24 ) ) AS col0
----
-11

query I rowsort
SELECT + 35 - 57
----
-22

query I rowsort
SELECT DISTINCT - 79 * - 96 * - 24
----
-182016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7880
SELECT - + 56 * + 63 * - 90 + - - 39 + - CASE COALESCE ( - COUNT( * ), + 51, - 49 / + 45, + + CASE 41 WHEN - 19 THEN 44 WHEN 87 THEN NULL WHEN ( 59 ) THEN NULL ELSE NULL END ) WHEN 49 THEN NULL ELSE CAST( NULL AS SIGNED ) + 66 END + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT - + 56 * + 63 * - 90 + - - 39 + - CASE COALESCE ( - COUNT ( * ), + 51, - 49 / + 45, + + CASE 41 WHEN - 19 THEN 44 WHEN 87 THEN NULL WHEN ( 59 ) THEN NULL ELSE NULL END ) WHEN 49 THEN NULL ELSE CAST ( NULL AS INTEGER ) + 66 END + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 44 * - 38 AS col2
----
-1672

query I rowsort
SELECT ALL - 9 + - - 85 AS col0
----
76

query I rowsort
SELECT 60 + + - 34
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT DISTINCT MAX( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT MAX ( - 32 )
----
-32

query I rowsort
SELECT DISTINCT + 64 + - 91 col2
----
-27

query II rowsort
SELECT 92 AS col0, 35 AS col0
----
92
35

query I rowsort
SELECT ALL + 47 + - 57
----
-10

query I rowsort
SELECT DISTINCT - 92 + 90
----
-2

query II rowsort
SELECT 35, - 83 AS col1
----
35
-83

query I rowsort
SELECT 59 * - 88
----
-5192

query I rowsort
SELECT 94 + + + ( ( + 26 ) ) AS col1
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7892
SELECT ALL + 74 DIV + COUNT( * ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL + 74 / + COUNT ( * ) AS col0
----
74

query I rowsort
SELECT 69 * 26 AS col1
----
1794

query I rowsort
SELECT 4 + - + 82 - + + 14 * 57 * - + 1 * 13 + + 83 AS col2
----
10379

query II rowsort
SELECT - 8 AS col2, 31
----
-8
31

query II rowsort
SELECT 22 AS col0, - 17 + 86 AS col1
----
22
69

query I rowsort
SELECT 84 * 47 AS col2
----
3948

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7898
SELECT ALL + 75 DIV + NULLIF ( 70, CASE 56 WHEN 88 + + + 64 * CAST( + COUNT( * ) AS DECIMAL ) + + 96 THEN 95 ELSE NULL END - 57 * 35 )
----
1

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL + 75 / + NULLIF ( 70, CASE 56 WHEN 88 + + + 64 * CAST ( + COUNT ( * ) AS REAL ) + + 96 THEN 95 ELSE NULL END - 57 * 35 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT 94 * - 89 * + + 33 * MIN( ( + 41 ) ) * + NULLIF ( - + ( - COUNT( * ) ), 81 )
----
-11319198

skipif mysql # not compatible
query I rowsort label-7899
SELECT 94 * - 89 * + + 33 * MIN ( ( + 41 ) ) * + NULLIF ( - + ( - COUNT ( * ) ), 81 )
----
-11319198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7900
SELECT ALL 19 * - MAX( - 9 ) * - CAST( + 79 AS SIGNED )
----
-13509

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL 19 * - MAX ( - 9 ) * - CAST ( + 79 AS INTEGER )
----
-13509

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT NULLIF ( 54, + + MAX( ALL - 17 ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-7901
SELECT NULLIF ( 54, + + MAX ( ALL - 17 ) ) AS col2
----
54

query I rowsort
SELECT DISTINCT - 2 * 0
----
0

query II rowsort
SELECT COALESCE ( 6, - 27 ) AS col2, 79 AS col0
----
6
79

query I rowsort
SELECT ALL - - 88 * - + 65
----
-5720

query I rowsort
SELECT 48 - - - 98
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT COUNT( - + COALESCE ( + 70, 49 ) ) * 57 col1
----
57

skipif mysql # not compatible
query I rowsort label-7906
SELECT COUNT ( - + COALESCE ( + 70, 49 ) ) * 57 col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7907
SELECT + - COUNT( * ) * + ( 49 ) - + - 70 DIV COUNT( 76 ) + + 12 col1
----
33

skipif mysql # not compatible
query I rowsort label-7907
SELECT + - COUNT ( * ) * + ( 49 ) - + - 70 / COUNT ( 76 ) + + 12 col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT ALL + SUM( - 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL + SUM ( - 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT + + NULLIF ( - NULLIF ( + - 30, + - 76 ), - + COUNT( DISTINCT + + 77 ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7909
SELECT + + NULLIF ( - NULLIF ( + - 30, + - 76 ), - + COUNT ( DISTINCT + + 77 ) ) AS col2
----
30

query I rowsort
SELECT + + 15 + 65 * NULLIF ( + 76, - 30 )
----
4955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7911
SELECT + CASE - 25 WHEN 67 * + CAST( NULL AS SIGNED ) * ( - 64 ) + ( + 5 ) - + CASE + 20 WHEN 63 THEN - - COUNT( * ) WHEN + 80 THEN 9 END * CASE 3 + + NULLIF ( + 77, ( 15 ) ) WHEN COUNT( * ) THEN NULL ELSE 46 END THEN 0 ELSE 15 END
----
15

skipif mysql # not compatible
query I rowsort label-7911
SELECT + CASE - 25 WHEN 67 * + CAST ( NULL AS INTEGER ) * ( - 64 ) + ( + 5 ) - + CASE + 20 WHEN 63 THEN - - COUNT ( * ) WHEN + 80 THEN 9 END * CASE 3 + + NULLIF ( + 77, ( 15 ) ) WHEN COUNT ( * ) THEN NULL ELSE 46 END THEN 0 ELSE 15 END
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT ALL + + SUM( - 50 ) col2
----
-50

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL + + SUM ( - 50 ) col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7913
SELECT + CASE - - ( + - 44 ) WHEN + 97 * - + MIN( - + 25 ) THEN 49 + 98 ELSE + 70 * - 72 * - + 51 END + + COALESCE ( + + COUNT( * ), 78 DIV AVG ( DISTINCT ( 35 ) DIV - 71 ), + MAX( + 16 ) DIV AVG ( 83 * 56 ) ) col0
----
257041

skipif mysql # not compatible
query I rowsort label-7913
SELECT + CASE - - ( + - 44 ) WHEN + 97 * - + MIN ( - + 25 ) THEN 49 + 98 ELSE + 70 * - 72 * - + 51 END + + COALESCE ( + + COUNT ( * ), 78 / AVG ( DISTINCT ( 35 ) / - 71 ), + MAX ( + 16 ) / AVG ( 83 * 56 ) ) col0
----
257041

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL 14 * + + 20 * MIN( DISTINCT - 84 ) - 71 + + - 84 * COUNT( * )
----
-23675

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL 14 * + + 20 * MIN ( DISTINCT - 84 ) - 71 + + - 84 * COUNT ( * )
----
-23675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7915
SELECT + COUNT( ALL 60 ) * + COALESCE ( + 79, + 11 + + 30 * CAST( NULL AS SIGNED ) ) col1
----
79

skipif mysql # not compatible
query I rowsort label-7915
SELECT + COUNT ( ALL 60 ) * + COALESCE ( + 79, + 11 + + 30 * CAST ( NULL AS INTEGER ) ) col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7916
SELECT + - COUNT( * ) AS col0, COUNT( - 43 )
----
-1
1

skipif mysql # not compatible
query II rowsort label-7916
SELECT + - COUNT ( * ) AS col0, COUNT ( - 43 )
----
-1
1

query I rowsort
SELECT NULLIF ( - - 8, + COALESCE ( 56, - - 10 ) )
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7918
SELECT + COUNT( * ) DIV ( + NULLIF ( 11, - ( - 85 ) + - - 35 + + 2 + + 82 * - - 16 + - + COALESCE ( + - 93, + + CAST( - ( - 16 ) AS DECIMAL ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7918
SELECT + COUNT ( * ) / ( + NULLIF ( 11, - ( - 85 ) + - - 35 + + 2 + + 82 * - - 16 + - + COALESCE ( + - 93, + + CAST ( - ( - 16 ) AS REAL ) ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT - CASE - - 4 WHEN - - COUNT( * ) THEN 76 WHEN - + 23 + - SUM( DISTINCT - ( - 68 ) ) * ( - 71 ) + 82 - - + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT - CASE - - 4 WHEN - - COUNT ( * ) THEN 76 WHEN - + 23 + - SUM ( DISTINCT - ( - 68 ) ) * ( - 71 ) + 82 - - + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7920
SELECT DISTINCT 98 + - + 83 * CASE + + COALESCE ( - 61, 44, + 61 ) WHEN - + COUNT( * ) THEN - 18 * + CAST( - - 21 AS SIGNED ) * - - COUNT( * ) END + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT 98 + - + 83 * CASE + + COALESCE ( - 61, 44, + 61 ) WHEN - + COUNT ( * ) THEN - 18 * + CAST ( - - 21 AS INTEGER ) * - - COUNT ( * ) END + - 2
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 11, 20 ) + 49
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7922
SELECT + COUNT( * ) * 33 DIV - 35 * - 59 AS col1, + 81
----
0
81

skipif mysql # not compatible
query II rowsort label-7922
SELECT + COUNT ( * ) * 33 / - 35 * - 59 AS col1, + 81
----
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT MAX( ALL - 71 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-7923
SELECT MAX ( ALL - 71 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL 9 * - - 88 * + COALESCE ( + COUNT( * ), 27, 72 * - - 29 ) AS col1
----
792

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL 9 * - - 88 * + COALESCE ( + COUNT ( * ), 27, 72 * - - 29 ) AS col1
----
792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7925
SELECT + ( - CAST( - + COUNT( * ) AS SIGNED ) ) DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-7925
SELECT + ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) / - 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL 3 + + COUNT( * ) * 15 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL 3 + + COUNT ( * ) * 15 AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7927
SELECT - ( - COALESCE ( - 89, - MIN( 92 ) + COUNT( * ) + - 81 DIV + CASE - 24 WHEN + 23 THEN + ( 82 ) END ) )
----
-89

skipif mysql # not compatible
query I rowsort label-7927
SELECT - ( - COALESCE ( - 89, - MIN ( 92 ) + COUNT ( * ) + - 81 / + CASE - 24 WHEN + 23 THEN + ( 82 ) END ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT + 85 - - MAX( ALL + 8 ) * + MAX( 29 ) * - - 97
----
22589

skipif mysql # not compatible
query I rowsort label-7928
SELECT + 85 - - MAX ( ALL + 8 ) * + MAX ( 29 ) * - - 97
----
22589

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT + CASE - - COALESCE ( + NULLIF ( + ( + - 48 ), - COUNT( * ) ), - - 72 * 6 + + 72, - - 64 ) WHEN COUNT( * ) * - + 24 - COUNT( * ) * AVG ( - 48 ) + 4 THEN + 35 - + 12 END + - MIN( DISTINCT + 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT + CASE - - COALESCE ( + NULLIF ( + ( + - 48 ), - COUNT ( * ) ), - - 72 * 6 + + 72, - - 64 ) WHEN COUNT ( * ) * - + 24 - COUNT ( * ) * AVG ( - 48 ) + 4 THEN + 35 - + 12 END + - MIN ( DISTINCT + 55 ) AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( + 16, + 51 + + 84 ) AS col0
----
-16

query I rowsort
SELECT - 43 * 49 * - 43
----
90601

query I rowsort
SELECT DISTINCT 2 + - - 90 + - 55 * + 10 + - + 3
----
-461

query I rowsort
SELECT ALL - 15 - - 11 + + 12
----
8

query I rowsort
SELECT + 31 - + - 88
----
119

query I rowsort
SELECT ALL 96 * - 74
----
-7104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7936
SELECT ALL CASE - + COUNT( * ) WHEN - + 79 THEN NULL ELSE + + COALESCE ( 5, - 51, + COALESCE ( + 37, 62 * - 45 + - + 81 + + AVG ( ALL - 68 ) ), + + AVG ( DISTINCT 50 ) ) DIV - 55 END
----
0

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL CASE - + COUNT ( * ) WHEN - + 79 THEN NULL ELSE + + COALESCE ( 5, - 51, + COALESCE ( + 37, 62 * - 45 + - + 81 + + AVG ( ALL - 68 ) ), + + AVG ( DISTINCT 50 ) ) / - 55 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL COALESCE ( - 44, - 7 + 19, - 68 + - MAX( ALL + 57 ) ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL COALESCE ( - 44, - 7 + 19, - 68 + - MAX ( ALL + 57 ) ) AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7938
SELECT ALL 89 - - + 98 AS col1, + 23 * + + CAST( NULL AS SIGNED )
----
187
NULL

skipif mysql # not compatible
query II rowsort label-7938
SELECT ALL 89 - - + 98 AS col1, + 23 * + + CAST ( NULL AS INTEGER )
----
187
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT + ( - 77 ) + 24 + + COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-7939
SELECT + ( - 77 ) + 24 + + COUNT ( * ) AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7940
SELECT - 77 * + NULLIF ( 64, + + CAST( NULL AS SIGNED ) ) AS col2
----
-4928

skipif mysql # not compatible
query I rowsort label-7940
SELECT - 77 * + NULLIF ( 64, + + CAST ( NULL AS INTEGER ) ) AS col2
----
-4928

query I rowsort
SELECT + + 66 + + + 59
----
125

query I rowsort
SELECT - + 61 - 67 * + 46 AS col1
----
-3143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7943
SELECT - 65 * + COUNT( * ) DIV - 89 * - + 57 + 43 * - 63 + - 96 AS col2
----
-2805

skipif mysql # not compatible
query I rowsort label-7943
SELECT - 65 * + COUNT ( * ) / - 89 * - + 57 + 43 * - 63 + - 96 AS col2
----
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT - - CASE + COUNT( * ) WHEN COUNT( * ) THEN - + 14 ELSE NULLIF ( + - COALESCE ( 39, + NULLIF ( 67, + COUNT( * ) * - + MAX( ALL 7 ) * 56 + + - 37 ) ), 9 + + 67 ) - 18 * 83 END - - 59 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7944
SELECT - - CASE + COUNT ( * ) WHEN COUNT ( * ) THEN - + 14 ELSE NULLIF ( + - COALESCE ( 39, + NULLIF ( 67, + COUNT ( * ) * - + MAX ( ALL 7 ) * 56 + + - 37 ) ), 9 + + 67 ) - 18 * 83 END - - 59 AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7945
SELECT - + NULLIF ( + - 34, - ( - 26 ) / 7 ) / COUNT( * ) + CASE - + ( 83 ) WHEN + + 36 THEN + MAX( ALL 64 ) WHEN + CAST( - 10 AS SIGNED ) / 27 THEN + 15 * 25 END + - 93 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7945
SELECT - + NULLIF ( + - 34, - ( - 26 ) / 7 ) / COUNT ( * ) + CASE - + ( 83 ) WHEN + + 36 THEN + MAX ( ALL 64 ) WHEN + CAST ( - 10 AS INTEGER ) / 27 THEN + 15 * 25 END + - 93 * - 48
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7946
SELECT ALL - 45 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL - 45 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 34 * + - 57
----
-1938

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT + + NULLIF ( + + COUNT( * ), + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-7948
SELECT + + NULLIF ( + + COUNT ( * ), + 77 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT MAX( ALL - 47 ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-7949
SELECT MAX ( ALL - 47 ) col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7950
SELECT + CASE - 39 WHEN + 19 THEN COUNT( * ) WHEN - 65 * 97 + + + 40 * 82 - + CAST( + 0 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT + CASE - 39 WHEN + 19 THEN COUNT ( * ) WHEN - 65 * 97 + + + 40 * 82 - + CAST ( + 0 AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7951
SELECT DISTINCT + 51 * - 85 * + 72 * + COUNT( * ), 61 AS col0
----
-312120
61

skipif mysql # not compatible
query II rowsort label-7951
SELECT DISTINCT + 51 * - 85 * + 72 * + COUNT ( * ), 61 AS col0
----
-312120
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT ALL - ( + ( + 38 ) ) * - 1 * - 50 * - 99 * + COUNT( * ) + - 44 + + 3 * 80 AS col1
----
188296

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL - ( + ( + 38 ) ) * - 1 * - 50 * - 99 * + COUNT ( * ) + - 44 + + 3 * 80 AS col1
----
188296

query I rowsort
SELECT DISTINCT + ( - 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT ALL 72 * - 69 * - 87 + - NULLIF ( + 54, - 72 * 37 * - 36 + + - 11 * + + COUNT( * ) )
----
432162

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL 72 * - 69 * - 87 + - NULLIF ( + 54, - 72 * 37 * - 36 + + - 11 * + + COUNT ( * ) )
----
432162

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT - 9 + - SUM( DISTINCT 84 ) col2
----
-93

skipif mysql # not compatible
query I rowsort label-7955
SELECT - 9 + - SUM ( DISTINCT 84 ) col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT - MIN( ALL + 67 ) + - 26 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7956
SELECT - MIN ( ALL + 67 ) + - 26 AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7957
SELECT + CAST( - 77 AS SIGNED ) - 96
----
-173

skipif mysql # not compatible
query I rowsort label-7957
SELECT + CAST ( - 77 AS INTEGER ) - 96
----
-173

query I rowsort
SELECT DISTINCT 97 * - - 99
----
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT - 61 + + 14 DIV 35
----
-61

skipif mysql # not compatible
query I rowsort label-7959
SELECT - 61 + + 14 / 35
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT COUNT( ALL + + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-7960
SELECT COUNT ( ALL + + 19 )
----
1

query I rowsort
SELECT + 43 + - 52 AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7962
SELECT + CAST( + + COUNT( * ) AS SIGNED ) * + 32 col2, 67 AS col1
----
32
67

skipif mysql # not compatible
query II rowsort label-7962
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) * + 32 col2, 67 AS col1
----
32
67

query I rowsort
SELECT ALL - 20 * + 25
----
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT + COUNT( * ) + 85
----
86

skipif mysql # not compatible
query I rowsort label-7964
SELECT + COUNT ( * ) + 85
----
86

query I rowsort
SELECT + 90 * - 85 AS col2
----
-7650

query II rowsort
SELECT ALL 2, 10 AS col0
----
2
10

query I rowsort
SELECT + 7 + + 66 * + 47
----
3109

query I rowsort
SELECT DISTINCT 37 * 49
----
1813

query II rowsort
SELECT 60, - 97 - + + 51 - 3 AS col0
----
60
-151

query I rowsort
SELECT + 36 * + 99
----
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT 29 + + 32 * + SUM( + - 50 ) + - 67 + - + 22
----
-1660

skipif mysql # not compatible
query I rowsort label-7971
SELECT 29 + + 32 * + SUM ( + - 50 ) + - 67 + - + 22
----
-1660

query I rowsort
SELECT DISTINCT + 68 * - - 76 AS col0
----
5168

onlyif mysql # aggregate syntax: 
query II rowsort label-7973
SELECT DISTINCT + 27 AS col0, 58 * + COUNT( * )
----
27
58

skipif mysql # not compatible
query II rowsort label-7973
SELECT DISTINCT + 27 AS col0, 58 * + COUNT ( * )
----
27
58

query I rowsort
SELECT DISTINCT - 7 * + 31
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT + SUM( - + 17 ) * + + 32 + 59 * + ( 79 ) + - 95 AS col1
----
4022

skipif mysql # not compatible
query I rowsort label-7975
SELECT + SUM ( - + 17 ) * + + 32 + 59 * + ( 79 ) + - 95 AS col1
----
4022

query I rowsort
SELECT ALL + 74 * 30
----
2220

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT CASE - - 36 WHEN + COUNT( * ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT CASE - - 36 WHEN + COUNT ( * ) THEN + COUNT ( * ) END
----
NULL

query II rowsort
SELECT 94 * 89 * - 17 - - 76 * - 85 + 72, - 29 + - 97 AS col0
----
-148610
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7979
SELECT + 56, SUM( 83 ) DIV + + ( + COUNT( * ) ) col2
----
56
83

skipif mysql # not compatible
query II rowsort label-7979
SELECT + 56, SUM ( 83 ) / + + ( + COUNT ( * ) ) col2
----
56
83

query I rowsort
SELECT ALL - - COALESCE ( + 32, - - 0 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL - + 53 + + COALESCE ( + + 24, + SUM( 36 ) + + + 92 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL - + 53 + + COALESCE ( + + 24, + SUM ( 36 ) + + + 92 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT 1 + + 48 + + COALESCE ( + 55, + 81 - + 64 ) - + 34 * + COUNT( * ) * + - 74
----
2620

skipif mysql # not compatible
query I rowsort label-7982
SELECT 1 + + 48 + + COALESCE ( + 55, + 81 - + 64 ) - + 34 * + COUNT ( * ) * + - 74
----
2620

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT DISTINCT - - ( - COUNT( * ) ) + - 99 - + + 87 * - - 46 + 6 * 94 * - 31
----
-21586

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT - - ( - COUNT ( * ) ) + - 99 - + + 87 * - - 46 + 6 * 94 * - 31
----
-21586

query I rowsort
SELECT DISTINCT - ( + ( + 28 ) ) AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7985
SELECT 49 * + + 92 + - 16 + 38 + - 14 * + CASE + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) * 84 THEN + 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT 49 * + + 92 + - 16 + 38 + - 14 * + CASE + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) * 84 THEN + 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ALL - - COUNT( * ) * + 62
----
62

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL - - COUNT ( * ) * + 62
----
62

query I rowsort
SELECT + NULLIF ( - 58, + 51 ) AS col1
----
-58

query II rowsort
SELECT 43 * - + NULLIF ( 90, - 28 ) col2, - 61
----
-3870
-61

query II rowsort
SELECT + 27 AS col0, 11 AS col0
----
27
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT 53 + - NULLIF ( + 23, - + COUNT( * ) + + 69 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-7990
SELECT 53 + - NULLIF ( + 23, - + COUNT ( * ) + + 69 ) AS col0
----
30

query I rowsort
SELECT ALL + 88 * 85 AS col1
----
7480

onlyif mysql # aggregate syntax: 
query II rowsort label-7992
SELECT 51, 82 * COUNT( * ) + - 61 AS col1
----
51
21

skipif mysql # not compatible
query II rowsort label-7992
SELECT 51, 82 * COUNT ( * ) + - 61 AS col1
----
51
21

query II rowsort
SELECT + 36 AS col0, - 48 + ( - 81 )
----
36
-129

query I rowsort
SELECT 4 + 54 - - 47
----
105

query I rowsort
SELECT ALL - ( 7 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-7996
SELECT DISTINCT 97, + COUNT( * ) AS col2
----
97
1

skipif mysql # not compatible
query II rowsort label-7996
SELECT DISTINCT 97, + COUNT ( * ) AS col2
----
97
1

query I rowsort
SELECT 75 - 5
----
70

query I rowsort
SELECT DISTINCT - 43 * - 8 * - 75
----
-25800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7999
SELECT + COUNT( * ) * ( 68 ) * 95 - - + COUNT( * ) * 90 DIV + + 50 AS col2
----
6461

skipif mysql # not compatible
query I rowsort label-7999
SELECT + COUNT ( * ) * ( 68 ) * 95 - - + COUNT ( * ) * 90 / + + 50 AS col2
----
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT 23 * MAX( ALL 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8000
SELECT 23 * MAX ( ALL 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT ALL 42 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL 42 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 14, + 20 col2
----
-14
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8003
SELECT 51 AS col0, + CAST( NULL AS SIGNED ) * 27
----
51
NULL

skipif mysql # not compatible
query II rowsort label-8003
SELECT 51 AS col0, + CAST ( NULL AS INTEGER ) * 27
----
51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT ALL - 69 + - + MIN( + + 81 ) + - 73 * + 16 * 20 AS col0
----
-23510

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL - 69 + - + MIN ( + + 81 ) + - 73 * + 16 * 20 AS col0
----
-23510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8005
SELECT DISTINCT + COUNT( * ) * + 36 * + MAX( ALL - CAST( NULL AS SIGNED ) ) * 87 / 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT + COUNT ( * ) * + 36 * + MAX ( ALL - CAST ( NULL AS INTEGER ) ) * 87 / 28
----
NULL

query I rowsort
SELECT ALL + 89 + + ( + 10 ) - - 41 * + 96
----
4035

query I rowsort
SELECT 16 + - 68 AS col0
----
-52

query II rowsort
SELECT - + 3 col0, 92
----
-3
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8009
SELECT 21 AS col2, 84 * COUNT( * ) AS col2
----
21
84

skipif mysql # not compatible
query II rowsort label-8009
SELECT 21 AS col2, 84 * COUNT ( * ) AS col2
----
21
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8010
SELECT + 3 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8010
SELECT + 3 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT 95 + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-8011
SELECT 95 + COUNT ( * ) AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8012
SELECT - 77 - - 83 * CASE + 66 WHEN + 49 THEN NULL WHEN + 82 THEN NULL WHEN + 45 THEN - - 71 * - ( COALESCE ( + 33, + - 49 + + - 51 - + 78 * - 63 * - ( - COALESCE ( 71, - 77 + - 63 ) ), + COUNT( * ) / - 23 + + 52 / 73 ) ) ELSE NULL END + - CAST( 43 AS SIGNED ) * + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT - 77 - - 83 * CASE + 66 WHEN + 49 THEN NULL WHEN + 82 THEN NULL WHEN + 45 THEN - - 71 * - ( COALESCE ( + 33, + - 49 + + - 51 - + 78 * - 63 * - ( - COALESCE ( 71, - 77 + - 63 ) ), + COUNT ( * ) / - 23 + + 52 / 73 ) ) ELSE NULL END + - CAST ( 43 AS INTEGER ) * + 38 AS col0
----
NULL

query II rowsort
SELECT 58 AS col0, + 99 AS col1
----
58
99

query I rowsort
SELECT + + ( 47 ) AS col2
----
47

query I rowsort
SELECT ALL - 2 * + 44 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-8016
SELECT + - 95 col1, + 10 + + - COUNT( * ) - - 25
----
-95
34

skipif mysql # not compatible
query II rowsort label-8016
SELECT + - 95 col1, + 10 + + - COUNT ( * ) - - 25
----
-95
34

query I rowsort
SELECT + 70 + - 93 AS col0
----
-23

query II rowsort
SELECT DISTINCT - + 45 AS col1, 22 + - 32 + 55 + + 32 AS col2
----
-45
77

query I rowsort
SELECT + 88 * + 18 + + 56 + - 50 AS col1
----
1590

query I rowsort
SELECT 44 * 64 AS col1
----
2816

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT COUNT( * ) * + 5 + + 18 col2
----
23

skipif mysql # not compatible
query I rowsort label-8021
SELECT COUNT ( * ) * + 5 + + 18 col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8022
SELECT SUM( ALL - - 15 ), COUNT( * ) AS col1, COUNT( * ) DIV - 14 - + 28 * + - ( + 83 ) * + 58 * 10 AS col2
----
15
1
1347920

skipif mysql # not compatible
query III rowsort label-8022
SELECT SUM ( ALL - - 15 ), COUNT ( * ) AS col1, COUNT ( * ) / - 14 - + 28 * + - ( + 83 ) * + 58 * 10 AS col2
----
15
1
1347920

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT + 32 * 30 + COUNT( * ) col1
----
961

skipif mysql # not compatible
query I rowsort label-8023
SELECT + 32 * 30 + COUNT ( * ) col1
----
961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8024
SELECT SUM( ALL - - CAST( NULL AS SIGNED ) ) AS col0, 23 * + 21 AS col2
----
NULL
483

skipif mysql # not compatible
query II rowsort label-8024
SELECT SUM ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0, 23 * + 21 AS col2
----
NULL
483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8025
SELECT ALL - 29 DIV + + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL - 29 / + + COUNT ( * )
----
-29

query I rowsort
SELECT 85 + 41 AS col0
----
126

query I rowsort
SELECT DISTINCT 38 - - 12
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8028
SELECT ALL - ( + 92 ) AS col0, + COUNT( * )
----
-92
1

skipif mysql # not compatible
query II rowsort label-8028
SELECT ALL - ( + 92 ) AS col0, + COUNT ( * )
----
-92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL - NULLIF ( - - 79, - COUNT( 44 ) + - 88 - + COUNT( * ) ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL - NULLIF ( - - 79, - COUNT ( 44 ) + - 88 - + COUNT ( * ) ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL - MAX( DISTINCT - 43 ) * + 6
----
258

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL - MAX ( DISTINCT - 43 ) * + 6
----
258

query I rowsort
SELECT 84 + 87 AS col1
----
171

query I rowsort
SELECT - 78 - - ( - 85 ) * 49 col2
----
-4243

query I rowsort
SELECT - 54 + - COALESCE ( - 27, 64 ) AS col1
----
-27

query I rowsort
SELECT ALL - 58 + - + 95 col0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT DISTINCT COALESCE ( 78, + + MIN( ALL - 14 ) ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT COALESCE ( 78, + + MIN ( ALL - 14 ) ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT ALL MIN( - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL MIN ( - 27 )
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-8037
SELECT ALL - ( 32 ) + - 3 * COUNT( * ) * - ( 50 ) * 54 AS col2, - ( + 75 )
----
8068
-75

skipif mysql # not compatible
query II rowsort label-8037
SELECT ALL - ( 32 ) + - 3 * COUNT ( * ) * - ( 50 ) * 54 AS col2, - ( + 75 )
----
8068
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - 85 + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - 85 + + 64
----
NULL

query I rowsort
SELECT ALL - 57 + + + 6
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT + - 72 + - 48 * NULLIF ( + 10, + COUNT( + 61 ) * 74 )
----
-552

skipif mysql # not compatible
query I rowsort label-8040
SELECT + - 72 + - 48 * NULLIF ( + 10, + COUNT ( + 61 ) * 74 )
----
-552

query I rowsort
SELECT DISTINCT + COALESCE ( + 23, + + 28 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT ALL - + CAST( + - 60 AS SIGNED ) + + 68 * + 63 col2
----
4344

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL - + CAST ( + - 60 AS INTEGER ) + + 68 * + 63 col2
----
4344

query II rowsort
SELECT - + 86 * + 46 AS col2, + 79
----
-3956
79

query I rowsort
SELECT ALL - - 57 * 55
----
3135

query II rowsort
SELECT ALL + 31 - + 36 AS col0, - 36 AS col1
----
-5
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8046
SELECT + + 92 * - 98 + - CASE + 82 WHEN + - 92 THEN NULL ELSE - - 69 END DIV + COUNT( * ) + + CAST( - + 97 AS SIGNED ) + - 74 * - 24
----
-7406

skipif mysql # not compatible
query I rowsort label-8046
SELECT + + 92 * - 98 + - CASE + 82 WHEN + - 92 THEN NULL ELSE - - 69 END / + COUNT ( * ) + + CAST ( - + 97 AS INTEGER ) + - 74 * - 24
----
-7406

query I rowsort
SELECT ALL + + NULLIF ( + 48, + - 75 ) AS col2
----
48

query II rowsort
SELECT + 86 * 26 - - + 72 + - 25 - + 97 AS col1, - 58
----
2186
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT + + 95 * + + COUNT( * ) col1
----
95

skipif mysql # not compatible
query I rowsort label-8049
SELECT + + 95 * + + COUNT ( * ) col1
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-8050
SELECT + COUNT( * ) AS col2, 83 * + - 44 + ( - 35 )
----
1
-3687

skipif mysql # not compatible
query II rowsort label-8050
SELECT + COUNT ( * ) AS col2, 83 * + - 44 + ( - 35 )
----
1
-3687

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8051
SELECT + CASE - 98 WHEN + ( + - 20 ) THEN NULL WHEN 65 * SUM( ALL + + ( - 55 ) ) + 66 THEN + 45 WHEN 73 + + 41 * + + 68 THEN - + CAST( NULL AS SIGNED ) - 27 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT + CASE - 98 WHEN + ( + - 20 ) THEN NULL WHEN 65 * SUM ( ALL + + ( - 55 ) ) + 66 THEN + 45 WHEN 73 + + 41 * + + 68 THEN - + CAST ( NULL AS INTEGER ) - 27 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8052
SELECT ALL 97 * - + CAST( + + 29 AS SIGNED )
----
-2813

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL 97 * - + CAST ( + + 29 AS INTEGER )
----
-2813

query II rowsort
SELECT + 3 * 36 - 18 AS col0, + 50 * - + ( + 85 ) AS col1
----
90
-4250

query I rowsort
SELECT DISTINCT 32 * 61 * + 32 * + + 36 * - 34 AS col0
----
-76455936

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT CASE + ( + - ( + - 22 ) ) WHEN 66 * 33 + COUNT( * ) THEN - COUNT( * ) + + - 97 * + + 10 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT CASE + ( + - ( + - 22 ) ) WHEN 66 * 33 + COUNT ( * ) THEN - COUNT ( * ) + + - 97 * + + 10 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8056
SELECT 53 * + 49 * + CAST( COUNT( * ) AS SIGNED ) + - ( + - CAST( - 40 AS SIGNED ) )
----
2557

skipif mysql # not compatible
query I rowsort label-8056
SELECT 53 * + 49 * + CAST ( COUNT ( * ) AS INTEGER ) + - ( + - CAST ( - 40 AS INTEGER ) )
----
2557

query I rowsort
SELECT COALESCE ( - 41, - - ( - NULLIF ( - 64, + ( + - NULLIF ( 46, - - 8 + + 10 - - 16 - - 93 ) ) ) ) - + 41, + 54 - - 28 )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-8058
SELECT 89 * - 24 * - + 69 * - COUNT( * ) + ( - - 91 ) col1, 14 + - 61
----
-147293
-47

skipif mysql # not compatible
query II rowsort label-8058
SELECT 89 * - 24 * - + 69 * - COUNT ( * ) + ( - - 91 ) col1, 14 + - 61
----
-147293
-47

query I rowsort
SELECT COALESCE ( - ( - - 20 ), + 82, - 25 ) AS col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8060
SELECT + 25 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-8060
SELECT + 25 / + 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8061
SELECT DISTINCT ( COUNT( * ) ) * 90 + 69 * + - 88 * 18 + + CAST( NULL AS SIGNED ) * - 83 + - + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT ( COUNT ( * ) ) * 90 + 69 * + - 88 * 18 + + CAST ( NULL AS INTEGER ) * - 83 + - + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 28 * 31 + 77 + + - ( - 36 ) + 46 + + 14 AS col0
----
-695

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8063
SELECT COUNT( * ) AS col1, - CAST( NULL AS DECIMAL )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8063
SELECT COUNT ( * ) AS col1, - CAST ( NULL AS REAL )
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8064
SELECT ALL COUNT( - + 76 ) DIV - 23 * - 23
----
0

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL COUNT ( - + 76 ) / - 23 * - 23
----
0

query I rowsort
SELECT - 95 * 24 AS col2
----
-2280

query I rowsort
SELECT ALL + 54 * - 63 col1
----
-3402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8067
SELECT DISTINCT - ( 86 ) * - SUM( + + 66 ) * - 20 + + 78 DIV 9 - - 27 AS col2, CAST( - 82 AS SIGNED ) AS col1
----
-113485
-82

skipif mysql # not compatible
query II rowsort label-8067
SELECT DISTINCT - ( 86 ) * - SUM ( + + 66 ) * - 20 + + 78 / 9 - - 27 AS col2, CAST ( - 82 AS INTEGER ) AS col1
----
-113485
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8068
SELECT ALL + CAST( 73 AS SIGNED ) + + ( + 24 ) AS col1, 66 - + 86 * + 39 * + 91 col0
----
97
-305148

skipif mysql # not compatible
query II rowsort label-8068
SELECT ALL + CAST ( 73 AS INTEGER ) + + ( + 24 ) AS col1, 66 - + 86 * + 39 * + 91 col0
----
97
-305148

query I rowsort
SELECT + + 56 - 12
----
44

query I rowsort
SELECT - CASE + 44 WHEN - 13 THEN 34 WHEN 12 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8071
SELECT ALL + MAX( ALL 94 ) + + 38 DIV COALESCE ( MIN( ( 35 ) ), + - 15 * 35 + - CAST( - 60 AS SIGNED ) + - MIN( ALL - + 84 ) + - 92 * COALESCE ( + 46, + NULLIF ( 29, + 85 - COUNT( * ) ) ) DIV + ( - COUNT( * ) + - 81 DIV + 93 ) * COUNT( DISTINCT + 88 + 36 DIV CAST( - 2 * 76 AS SIGNED ) ) ) * - 25
----
69

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL + MAX ( ALL 94 ) + + 38 / COALESCE ( MIN ( ( 35 ) ), + - 15 * 35 + - CAST ( - 60 AS INTEGER ) + - MIN ( ALL - + 84 ) + - 92 * COALESCE ( + 46, + NULLIF ( 29, + 85 - COUNT ( * ) ) ) / + ( - COUNT ( * ) + - 81 / + 93 ) * COUNT ( DISTINCT + 88 + 36 / CAST ( - 2 * 76 AS INTEGER ) ) ) * - 25
----
69

query I rowsort
SELECT + - CASE - NULLIF ( + 24, + 22 ) WHEN + + 68 THEN - 45 WHEN + + 59 THEN NULL ELSE NULL END + - 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT - - 76 * 80 + + - 37 - + + 30 * - COUNT( * ) AS col0
----
6073

skipif mysql # not compatible
query I rowsort label-8073
SELECT - - 76 * 80 + + - 37 - + + 30 * - COUNT ( * ) AS col0
----
6073

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT - + 6 + - NULLIF ( + - 57, - COUNT( ALL - 71 ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-8074
SELECT - + 6 + - NULLIF ( + - 57, - COUNT ( ALL - 71 ) ) AS col2
----
51

query I rowsort
SELECT DISTINCT 54 * + ( + - 67 ) + 79 * 12 AS col1
----
-2670

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8076
SELECT ALL - 26 + - 47 + + 77 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL - 26 + - 47 + + 77 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - 68 + 73
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8078
SELECT ALL - - 34 - 3 * + + 60 DIV + 60 + 74
----
105

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL - - 34 - 3 * + + 60 / + 60 + 74
----
105

query I rowsort
SELECT - 25 + 98 AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8080
SELECT ALL + 85 - - 14 + - + 63 DIV - 2 col2
----
130

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL + 85 - - 14 + - + 63 / - 2 col2
----
130

query I rowsort
SELECT - - 79 + + 33
----
112

query II rowsort
SELECT - 47 AS col1, - 86
----
-47
-86

query I rowsort
SELECT - - ( - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT - - 30 + + - COUNT( * ) * + 42 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8084
SELECT - - 30 + + - COUNT ( * ) * + 42 AS col1
----
-12

query I rowsort
SELECT ALL + 19 * + 56 AS col0
----
1064

query I rowsort
SELECT ALL + - 25 * 14
----
-350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8087
SELECT + ( + - 19 ) DIV - 98 + + COUNT( * ) AS col2, CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8087
SELECT + ( + - 19 ) / - 98 + + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT ALL + 29 * - 71 AS col0
----
-2059

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT CAST( 17 AS SIGNED ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8089
SELECT CAST ( 17 AS INTEGER ) AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8090
SELECT + SUM( DISTINCT + + 54 ) AS col0, + CAST( - - 62 AS SIGNED ) AS col0
----
54
62

skipif mysql # not compatible
query II rowsort label-8090
SELECT + SUM ( DISTINCT + + 54 ) AS col0, + CAST ( - - 62 AS INTEGER ) AS col0
----
54
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8091
SELECT ( + 30 ) DIV - 12 col0
----
-2

skipif mysql # not compatible
query I rowsort label-8091
SELECT ( + 30 ) / - 12 col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8092
SELECT DISTINCT + COUNT( * ) + + CASE - + 27 WHEN + CAST( - COALESCE ( - + 10, - 10 + 86 + + 74, + 23 + MAX( DISTINCT CAST( + 84 AS SIGNED ) ) ) AS SIGNED ) * - 26 THEN NULL ELSE - 27 + CASE + - 23 WHEN - 63 THEN + COALESCE ( 11, 69 * - COUNT( * ) ) WHEN 59 * 71 THEN 52 / 57 ELSE NULL END - 48 * 15 END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT + COUNT ( * ) + + CASE - + 27 WHEN + CAST ( - COALESCE ( - + 10, - 10 + 86 + + 74, + 23 + MAX ( DISTINCT CAST ( + 84 AS INTEGER ) ) ) AS INTEGER ) * - 26 THEN NULL ELSE - 27 + CASE + - 23 WHEN - 63 THEN + COALESCE ( 11, 69 * - COUNT ( * ) ) WHEN 59 * 71 THEN 52 / 57 ELSE NULL END - 48 * 15 END * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8093
SELECT ALL COALESCE ( - + 27, CAST( 17 AS SIGNED ) DIV MAX( ALL - 47 ) + 18 ) + + ( - 64 ) * 79 + ( 14 ) + - 73 * - + COUNT( * ) * + 68
----
-105

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL COALESCE ( - + 27, CAST ( 17 AS INTEGER ) / MAX ( ALL - 47 ) + 18 ) + + ( - 64 ) * 79 + ( 14 ) + - 73 * - + COUNT ( * ) * + 68
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT COUNT( * ) + + - 35 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8094
SELECT COUNT ( * ) + + - 35 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT DISTINCT COUNT( * ) + 38
----
39

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT COUNT ( * ) + 38
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT COUNT( * ) + - 37
----
-36

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT COUNT ( * ) + - 37
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT COUNT( * ) + 41 * - COUNT( * ) * + 50 + + 2 + - 40 AS col2
----
-2087

skipif mysql # not compatible
query I rowsort label-8097
SELECT COUNT ( * ) + 41 * - COUNT ( * ) * + 50 + + 2 + - 40 AS col2
----
-2087

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8098
SELECT + COUNT( * ) + - COALESCE ( ( + 88 ), - 56 DIV + MIN( ALL 27 ) - + 60 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-8098
SELECT + COUNT ( * ) + - COALESCE ( ( + 88 ), - 56 / + MIN ( ALL 27 ) - + 60 ) AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8099
SELECT DISTINCT + 97 - + + 11 AS col2, COALESCE ( - 73, - MAX( 25 ), - 78 * - 88 ) + + CASE - 60 WHEN - 35 THEN CASE + CAST( + 59 AS SIGNED ) WHEN 79 THEN - 5 ELSE - 3 END * + 59 * - - 32 * 23 + + 75 + CAST( + 6 AS SIGNED ) WHEN + 54 * NULLIF ( + 45, - 77 ) THEN 61 END
----
86
NULL

skipif mysql # not compatible
query II rowsort label-8099
SELECT DISTINCT + 97 - + + 11 AS col2, COALESCE ( - 73, - MAX ( 25 ), - 78 * - 88 ) + + CASE - 60 WHEN - 35 THEN CASE + CAST ( + 59 AS INTEGER ) WHEN 79 THEN - 5 ELSE - 3 END * + 59 * - - 32 * 23 + + 75 + CAST ( + 6 AS INTEGER ) WHEN + 54 * NULLIF ( + 45, - 77 ) THEN 61 END
----
86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT ALL SUM( DISTINCT + + 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL SUM ( DISTINCT + + 36 ) AS col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8101
SELECT 73 * - CASE AVG ( ALL + - 28 ) WHEN + ( + 83 ) + - 69 THEN NULL ELSE - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT 73 * - CASE AVG ( ALL + - 28 ) WHEN + ( + 83 ) + - 69 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT + 23 + - 98 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT ALL + NULLIF ( 82, - + 16 ) * - + ( + - COUNT( * ) ) * - 84
----
-6888

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL + NULLIF ( 82, - + 16 ) * - + ( + - COUNT ( * ) ) * - 84
----
-6888

onlyif mysql # DIV for integer division: 
query I rowsort label-8104
SELECT + 62 DIV + 68 * - + 88
----
0

skipif mysql # not compatible
query I rowsort label-8104
SELECT + 62 / + 68 * - + 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8105
SELECT - COUNT( * ) DIV CAST( + - 13 AS SIGNED ) + + 57
----
57

skipif mysql # not compatible
query I rowsort label-8105
SELECT - COUNT ( * ) / CAST ( + - 13 AS INTEGER ) + + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT DISTINCT - 81 * - + MIN( ALL - 54 ) AS col1
----
-4374

skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT - 81 * - + MIN ( ALL - 54 ) AS col1
----
-4374

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT ALL + 23 * - SUM( + 49 ) * - 43 + + 57 AS col1
----
48518

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL + 23 * - SUM ( + 49 ) * - 43 + + 57 AS col1
----
48518

query I rowsort
SELECT 39 + 19 + - + 34 AS col2
----
24

query I rowsort
SELECT DISTINCT - COALESCE ( + ( + + 57 ), - + 43 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL + 62 * + MIN( 57 ) AS col0
----
3534

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL + 62 * + MIN ( 57 ) AS col0
----
3534

onlyif mysql # aggregate syntax: 
query II rowsort label-8111
SELECT ALL + MIN( ALL 45 ), 61 AS col0
----
45
61

skipif mysql # not compatible
query II rowsort label-8111
SELECT ALL + MIN ( ALL 45 ), 61 AS col0
----
45
61

query I rowsort
SELECT 94 + - - 72
----
166

query I rowsort
SELECT 4 * + - 25 * 52 AS col0
----
-5200

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT ALL + COUNT( * ) + 25 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL + COUNT ( * ) + 25 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT DISTINCT - NULLIF ( + 53, - 14 * + 79 + - + 3 + 37 * - - 99 * COUNT( * ) + 58 + + 46 + + 89 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT - NULLIF ( + 53, - 14 * + 79 + - + 3 + 37 * - - 99 * COUNT ( * ) + 58 + + 46 + + 89 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-8116
SELECT 6, COUNT( * ) AS col0
----
6
1

skipif mysql # not compatible
query II rowsort label-8116
SELECT 6, COUNT ( * ) AS col0
----
6
1

query I rowsort
SELECT ALL + 98 * 59
----
5782

query I rowsort
SELECT 94 * 24 AS col0
----
2256

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT ALL - 26 + - + 62 * + MIN( DISTINCT - 56 )
----
3446

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL - 26 + - + 62 * + MIN ( DISTINCT - 56 )
----
3446

query I rowsort
SELECT ALL + 99 * - + 36
----
-3564

query I rowsort
SELECT DISTINCT - 81 * - 19
----
1539

query I rowsort
SELECT ALL + 26 + - 57 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT ALL - ( - 84 ) + + MAX( DISTINCT + 53 ) * - 16 + + + 41 * 36 AS col2
----
712

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL - ( - 84 ) + + MAX ( DISTINCT + 53 ) * - 16 + + + 41 * 36 AS col2
----
712

onlyif mysql # DIV for integer division: 
query I rowsort label-8124
SELECT 9 DIV - 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8124
SELECT 9 / - 49 AS col2
----
0

query II rowsort
SELECT 25 AS col2, + 84 + - - 63 AS col1
----
25
147

query I rowsort
SELECT 19 * + 50 AS col2
----
950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8127
SELECT ALL 30 DIV + COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL 30 / + COUNT ( * ) AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8128
SELECT 64 DIV 37
----
1

skipif mysql # not compatible
query I rowsort label-8128
SELECT 64 / 37
----
1

query I rowsort
SELECT 29 * - 76
----
-2204

onlyif mysql # aggregate syntax: 
query II rowsort label-8130
SELECT + 25, - MAX( COALESCE ( 8, 30 ) ) + 46 col0
----
25
38

skipif mysql # not compatible
query II rowsort label-8130
SELECT + 25, - MAX ( COALESCE ( 8, 30 ) ) + 46 col0
----
25
38

query I rowsort
SELECT ALL - 79 - + 12 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT COALESCE ( - + 86, + + 14 + 16 + - 95 + + MIN( DISTINCT + - 70 ) * - 4 ) * COUNT( * ) + - - COALESCE ( - + 62, + ( + 43 ) - COUNT( + 10 ) ) col0
----
-148

skipif mysql # not compatible
query I rowsort label-8132
SELECT COALESCE ( - + 86, + + 14 + 16 + - 95 + + MIN ( DISTINCT + - 70 ) * - 4 ) * COUNT ( * ) + - - COALESCE ( - + 62, + ( + 43 ) - COUNT ( + 10 ) ) col0
----
-148

query I rowsort
SELECT DISTINCT - + ( - 0 ) col2
----
0

query I rowsort
SELECT ALL - NULLIF ( ( + 68 ), + + 0 * + 52 )
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-8135
SELECT DISTINCT 31 AS col0, + COUNT( * ) + - MIN( DISTINCT + 50 )
----
31
-49

skipif mysql # not compatible
query II rowsort label-8135
SELECT DISTINCT 31 AS col0, + COUNT ( * ) + - MIN ( DISTINCT + 50 )
----
31
-49

query II rowsort
SELECT DISTINCT 53 AS col0, 92 * + 36 AS col2
----
53
3312

query I rowsort
SELECT 26 * 70 AS col0
----
1820

query II rowsort
SELECT DISTINCT + 59 AS col1, + 28 + + NULLIF ( - 57, - - 54 ) * 59 AS col1
----
59
-3335

query I rowsort
SELECT 18 + + 8 * - - 89 AS col2
----
730

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT - + MAX( DISTINCT - - 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-8140
SELECT - + MAX ( DISTINCT - - 26 ) AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8141
SELECT 64 + CASE - MAX( ALL - 72 ) WHEN + 7 + + 98 / + + 58 THEN NULL WHEN 27 - - COUNT( * ) / 56 THEN + 91 END * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT 64 + CASE - MAX ( ALL - 72 ) WHEN + 7 + + 98 / + + 58 THEN NULL WHEN 27 - - COUNT ( * ) / 56 THEN + 91 END * + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT 48 * - 99
----
-4752

query I rowsort
SELECT - 87 + - 51
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-8144
SELECT ALL - 2 DIV - 53 * + - 38 - - 7
----
7

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL - 2 / - 53 * + - 38 - - 7
----
7

query I rowsort
SELECT - NULLIF ( - 54, - + 50 + - 63 )
----
54

query I rowsort
SELECT DISTINCT 89 + - 29
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8147
SELECT ALL - CAST( NULL AS SIGNED ) / - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8148
SELECT 4 DIV - ( - 69 )
----
0

skipif mysql # not compatible
query I rowsort label-8148
SELECT 4 / - ( - 69 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8149
SELECT ALL MAX( 5 ) + - COUNT( * ) * - CASE + - 10 WHEN SUM( 38 ) * + 68 THEN NULL WHEN - - 61 / - 42 THEN 2 - AVG ( + 90 ) WHEN + - 90 THEN - 94 / + 4 END AS col2, - 51 AS col2
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-8149
SELECT ALL MAX ( 5 ) + - COUNT ( * ) * - CASE + - 10 WHEN SUM ( 38 ) * + 68 THEN NULL WHEN - - 61 / - 42 THEN 2 - AVG ( + 90 ) WHEN + - 90 THEN - 94 / + 4 END AS col2, - 51 AS col2
----
NULL
-51

query I rowsort
SELECT + 32 + 38
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT + MAX( DISTINCT 62 ) / + 15 * + 4 * + CASE - 65 WHEN - 14 THEN 33 ELSE NULL END * - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8151
SELECT + MAX ( DISTINCT 62 ) / + 15 * + 4 * + CASE - 65 WHEN - 14 THEN 33 ELSE NULL END * - 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8152
SELECT DISTINCT 35, ( CAST( - 20 AS SIGNED ) ) AS col1
----
35
-20

skipif mysql # not compatible
query II rowsort label-8152
SELECT DISTINCT 35, ( CAST ( - 20 AS INTEGER ) ) AS col1
----
35
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8153
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 54 + + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 54 + + 61 AS col2
----
NULL

query I rowsort
SELECT ALL + 62 * + 42 + - 57 col1
----
2547

query II rowsort
SELECT + 97, + 93 AS col1
----
97
93

query I rowsort
SELECT DISTINCT - 68 * - - 19 + + - 55 AS col2
----
-1347

query I rowsort
SELECT COALESCE ( + 35, + 19 + - 57 )
----
35

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8158
SELECT ALL - 35 * CAST( + CAST( - CAST( ( 48 ) AS SIGNED ) AS DECIMAL ) AS SIGNED ) - + - 19 AS col1
----
1699

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL - 35 * CAST ( + CAST ( - CAST ( ( 48 ) AS INTEGER ) AS REAL ) AS INTEGER ) - + - 19 AS col1
----
1699

query I rowsort
SELECT + 42 * - 58
----
-2436

query I rowsort
SELECT NULLIF ( - NULLIF ( + 47, + 50 ), - - 14 ) col0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8161
SELECT COALESCE ( 50, + + ( + 81 ) * 18, + + 91 * + + 21 + + 16 DIV 51 * - 80 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8161
SELECT COALESCE ( 50, + + ( + 81 ) * 18, + + 91 * + + 21 + + 16 / 51 * - 80 ) AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8162
SELECT ALL + CASE - CAST( NULL AS DECIMAL ) WHEN - - 34 THEN - 72 ELSE NULL END, + NULLIF ( + 81, + COUNT( * ) - - 14 ) AS col2
----
NULL
81

skipif mysql # not compatible
query II rowsort label-8162
SELECT ALL + CASE - CAST ( NULL AS REAL ) WHEN - - 34 THEN - 72 ELSE NULL END, + NULLIF ( + 81, + COUNT ( * ) - - 14 ) AS col2
----
NULL
81

query II rowsort
SELECT + 64 AS col2, - 68 - + - 78 AS col0
----
64
10

query I rowsort
SELECT ALL - 32 * - 35
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT - 51 + - 18 + + + SUM( 83 )
----
14

skipif mysql # not compatible
query I rowsort label-8165
SELECT - 51 + - 18 + + + SUM ( 83 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8166
SELECT DISTINCT - 97 * - NULLIF ( MAX( - - CAST( - 98 AS SIGNED ) ), - COUNT( * ) ) AS col0, CAST( - 57 AS SIGNED )
----
-9506
-57

skipif mysql # not compatible
query II rowsort label-8166
SELECT DISTINCT - 97 * - NULLIF ( MAX ( - - CAST ( - 98 AS INTEGER ) ), - COUNT ( * ) ) AS col0, CAST ( - 57 AS INTEGER )
----
-9506
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT ALL + MAX( - + 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL + MAX ( - + 67 ) AS col0
----
-67

query II rowsort
SELECT DISTINCT - + 61 * 31 + - 5 - + 98 * - - 66 + 97 AS col1, - 20 - 2 + + 35 * 92
----
-8267
3198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8169
SELECT - COUNT( * ) DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-8169
SELECT - COUNT ( * ) / - 37
----
0

query II rowsort
SELECT DISTINCT + 12 AS col1, - 72 AS col0
----
12
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8171
SELECT - 35 DIV COUNT( * ) + + + 77 * 27 col1
----
2044

skipif mysql # not compatible
query I rowsort label-8171
SELECT - 35 / COUNT ( * ) + + + 77 * 27 col1
----
2044

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT + 5 * + 51 * 36 * + COUNT( 58 )
----
9180

skipif mysql # not compatible
query I rowsort label-8172
SELECT + 5 * + 51 * 36 * + COUNT ( 58 )
----
9180

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT - - MAX( + 39 ) * 62 * - - 18
----
43524

skipif mysql # not compatible
query I rowsort label-8173
SELECT - - MAX ( + 39 ) * 62 * - - 18
----
43524

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8174
SELECT + - 87 + 90 - - COUNT( * ) + 46 DIV 21 + - + 91
----
-85

skipif mysql # not compatible
query I rowsort label-8174
SELECT + - 87 + 90 - - COUNT ( * ) + 46 / 21 + - + 91
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT + COUNT( * ) * 13 * 84 col1
----
1092

skipif mysql # not compatible
query I rowsort label-8175
SELECT + COUNT ( * ) * 13 * 84 col1
----
1092

onlyif mysql # aggregate syntax: 
query II rowsort label-8176
SELECT ALL 77 AS col1, + COUNT( * ) - + - 52 AS col1
----
77
53

skipif mysql # not compatible
query II rowsort label-8176
SELECT ALL 77 AS col1, + COUNT ( * ) - + - 52 AS col1
----
77
53

onlyif mysql # aggregate syntax: 
query II rowsort label-8177
SELECT DISTINCT 33, + COUNT( * ) - ( - + 90 ) - + 29 AS col0
----
33
62

skipif mysql # not compatible
query II rowsort label-8177
SELECT DISTINCT 33, + COUNT ( * ) - ( - + 90 ) - + 29 AS col0
----
33
62

query I rowsort
SELECT ALL ( - 57 ) col1
----
-57

query II rowsort
SELECT - + 68 * + 33 AS col2, ( + 99 )
----
-2244
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL - MIN( + 44 ) + - 55 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL - MIN ( + 44 ) + - 55 AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8181
SELECT DISTINCT + COALESCE ( - 65, 67 + - - 47 + + 7 * CAST( + 8 AS SIGNED ) * - 90 * - - COALESCE ( + COALESCE ( - COUNT( * ), 45 * + - NULLIF ( + - 31, + - 85 * + COUNT( * ) ) + 52 + - - 28, 48 ), - 41 * 80 - 37 ) DIV - 9 ) + 35 DIV + 87 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT + COALESCE ( - 65, 67 + - - 47 + + 7 * CAST ( + 8 AS INTEGER ) * - 90 * - - COALESCE ( + COALESCE ( - COUNT ( * ), 45 * + - NULLIF ( + - 31, + - 85 * + COUNT ( * ) ) + 52 + - - 28, 48 ), - 41 * 80 - 37 ) / - 9 ) + 35 / + 87 AS col1
----
-65

query I rowsort
SELECT ALL 33 * 78 * - 93 * - - 55 AS col2
----
-13166010

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT + 21 * 81 * - - COUNT( * )
----
1701

skipif mysql # not compatible
query I rowsort label-8183
SELECT + 21 * 81 * - - COUNT ( * )
----
1701

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT - COUNT( 26 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8184
SELECT - COUNT ( 26 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8185
SELECT + 38 + 96 * - MAX( - ( NULLIF ( - 46, - 28 ) ) ) col1, + 24
----
-4378
24

skipif mysql # not compatible
query II rowsort label-8185
SELECT + 38 + 96 * - MAX ( - ( NULLIF ( - 46, - 28 ) ) ) col1, + 24
----
-4378
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8186
SELECT - COUNT( DISTINCT 43 ), 47 AS col0
----
-1
47

skipif mysql # not compatible
query II rowsort label-8186
SELECT - COUNT ( DISTINCT 43 ), 47 AS col0
----
-1
47

query I rowsort
SELECT ALL - 7 + ( - COALESCE ( - - 75, - 21 ) ) * + 65
----
-4882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8188
SELECT DISTINCT CAST( + - 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT CAST ( + - 97 AS INTEGER )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT ALL MAX( - 15 ) * - 66 + - 83
----
907

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL MAX ( - 15 ) * - 66 + - 83
----
907

query I rowsort
SELECT + 96 + + 52 * + 56
----
3008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8191
SELECT - CAST( 48 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-8191
SELECT - CAST ( 48 AS INTEGER )
----
-48

query II rowsort
SELECT + 48 * + - 35, + 90 col0
----
-1680
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT ALL CASE - - 97 WHEN - ( + 2 ) + MIN( ALL - 36 ) * + - 87 THEN - 17 + COALESCE ( 28, - 20 * - - 54, - 82 ) END * - 12 - + - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL CASE - - 97 WHEN - ( + 2 ) + MIN ( ALL - 36 ) * + - 87 THEN - 17 + COALESCE ( 28, - 20 * - - 54, - 82 ) END * - 12 - + - 98 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 13 * - 73 AS col2
----
-949

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT 45 * + 90 - COUNT( * ) + 46 + - ( - + 45 ) - + 90 * + + ( + MIN( ALL + NULLIF ( ( 11 ), 53 ) ) )
----
3150

skipif mysql # not compatible
query I rowsort label-8195
SELECT 45 * + 90 - COUNT ( * ) + 46 + - ( - + 45 ) - + 90 * + + ( + MIN ( ALL + NULLIF ( ( 11 ), 53 ) ) )
----
3150

query I rowsort
SELECT DISTINCT 48 * - + ( + + 46 ) AS col2
----
-2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8197
SELECT + 12 * + + CASE - 20 WHEN - - 69 THEN CAST( + + 61 AS SIGNED ) + 95 END, - 76 * CAST( NULL AS SIGNED ) * 90 * 57 / - - 6 - - CASE - 96 WHEN MIN( ALL + + 79 ) THEN 56 * - - 94 + - + 82 + + 60 * + 17 / + 86 + 7 ELSE + 98 + 23 END + COALESCE ( 27, + COUNT( DISTINCT 15 ) * - COALESCE ( 36 / - 57 + - 79 * 97, + 28 ) ) * 29
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8197
SELECT + 12 * + + CASE - 20 WHEN - - 69 THEN CAST ( + + 61 AS INTEGER ) + 95 END, - 76 * CAST ( NULL AS INTEGER ) * 90 * 57 / - - 6 - - CASE - 96 WHEN MIN ( ALL + + 79 ) THEN 56 * - - 94 + - + 82 + + 60 * + 17 / + 86 + 7 ELSE + 98 + 23 END + COALESCE ( 27, + COUNT ( DISTINCT 15 ) * - COALESCE ( 36 / - 57 + - 79 * 97, + 28 ) ) * 29
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8198
SELECT ALL SUM( DISTINCT + 71 ) DIV + + 72 - + 83 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL SUM ( DISTINCT + 71 ) / + + 72 - + 83 AS col2
----
-83

query I rowsort
SELECT ALL 94 * - - 81 AS col0
----
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT 18 * + + ( + COUNT( * ) ) col2
----
18

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT 18 * + + ( + COUNT ( * ) ) col2
----
18

query I rowsort
SELECT - 76 * + 4 - - + 52 - + - ( + ( - + 89 ) ) AS col2
----
-341

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT - MIN( - + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-8202
SELECT - MIN ( - + 8 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8203
SELECT - - 46 * - 63, COUNT( * ) DIV + 16 AS col2
----
-2898
0

skipif mysql # not compatible
query II rowsort label-8203
SELECT - - 46 * - 63, COUNT ( * ) / + 16 AS col2
----
-2898
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT DISTINCT ( + + 45 ) DIV 73 DIV 9
----
0

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT ( + + 45 ) / 73 / 9
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL - 92 * - NULLIF ( + NULLIF ( 87, - 68 + + + 91 ), + + 76 ) + - 62 + - 61 + 40 * - COUNT( - 12 ) + - 68
----
7773

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL - 92 * - NULLIF ( + NULLIF ( 87, - 68 + + + 91 ), + + 76 ) + - 62 + - 61 + 40 * - COUNT ( - 12 ) + - 68
----
7773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8206
SELECT + COALESCE ( - 70, + + COUNT( * ) DIV COALESCE ( - + CAST( NULL AS SIGNED ), 9 ) * 93 + + 21 )
----
-70

skipif mysql # not compatible
query I rowsort label-8206
SELECT + COALESCE ( - 70, + + COUNT ( * ) / COALESCE ( - + CAST ( NULL AS INTEGER ), 9 ) * 93 + + 21 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT DISTINCT - 49 * + 89 + + 38 * + COUNT( * ) + - 26 - 4
----
-4353

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT - 49 * + 89 + + 38 * + COUNT ( * ) + - 26 - 4
----
-4353

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL - ( 28 ) * + 34 * - + 25 * + 34 * + + 74 + 0 * - 38 * - - 73 * ( - + MAX( - 96 ) )
----
59880800

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL - ( 28 ) * + 34 * - + 25 * + 34 * + + 74 + 0 * - 38 * - - 73 * ( - + MAX ( - 96 ) )
----
59880800

query II rowsort
SELECT ALL - 0 + 27, + 2 + - + 99 + - 71 AS col1
----
27
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT - - MAX( DISTINCT + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-8210
SELECT - - MAX ( DISTINCT + 40 )
----
40

query I rowsort
SELECT DISTINCT - ( + - 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT + 7 * COUNT( DISTINCT + + 91 ) + - 97 + - 61
----
-151

skipif mysql # not compatible
query I rowsort label-8212
SELECT + 7 * COUNT ( DISTINCT + + 91 ) + - 97 + - 61
----
-151

query I rowsort
SELECT ALL - 50 + + 63 - 75 AS col2
----
-62

query I rowsort
SELECT 3 * + 68 col1
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT ALL + 66 DIV + 24 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL + 66 / + 24 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL - COUNT( * ) + + 8
----
7

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL - COUNT ( * ) + + 8
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8217
SELECT DISTINCT 78 AS col2, 63 * + ( COUNT( * ) ) + + 42
----
78
105

skipif mysql # not compatible
query II rowsort label-8217
SELECT DISTINCT 78 AS col2, 63 * + ( COUNT ( * ) ) + + 42
----
78
105

query I rowsort
SELECT ALL 14 * + 4
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT 32 + + 79 + - COUNT( * ) + + 29
----
139

skipif mysql # not compatible
query I rowsort label-8219
SELECT 32 + + 79 + - COUNT ( * ) + + 29
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL - MIN( ALL 54 ) - - ( + + 41 ) * 68
----
2734

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL - MIN ( ALL 54 ) - - ( + + 41 ) * 68
----
2734

query I rowsort
SELECT 3 * - 50
----
-150

query I rowsort
SELECT ALL - ( + 77 ) * + 16 * + 61
----
-75152

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT COUNT( * ) + + 76 - - - 31 col1
----
46

skipif mysql # not compatible
query I rowsort label-8223
SELECT COUNT ( * ) + + 76 - - - 31 col1
----
46

query II rowsort
SELECT 68 AS col1, - 30
----
68
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT MAX( DISTINCT 68 ) * + + 3 + - 85
----
119

skipif mysql # not compatible
query I rowsort label-8225
SELECT MAX ( DISTINCT 68 ) * + + 3 + - 85
----
119

query I rowsort
SELECT 28 * + 19
----
532

query I rowsort
SELECT 31 + - 88 + + COALESCE ( 95, - 20 ) * + 47
----
4408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8228
SELECT COUNT( * ) DIV + 21
----
0

skipif mysql # not compatible
query I rowsort label-8228
SELECT COUNT ( * ) / + 21
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8229
SELECT + 62 AS col1, COUNT( * ) col2
----
62
1

skipif mysql # not compatible
query II rowsort label-8229
SELECT + 62 AS col1, COUNT ( * ) col2
----
62
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8230
SELECT COUNT( * ) DIV - 27 + 42
----
42

skipif mysql # not compatible
query I rowsort label-8230
SELECT COUNT ( * ) / - 27 + 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT CASE - ( - 61 ) WHEN + + 84 THEN - ( - COUNT( * ) ) + - + 69 + 71 * + COUNT( * ) + + 11 WHEN + 68 THEN NULL END + + + COUNT( * ) + + 20 * MIN( DISTINCT + 37 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT CASE - ( - 61 ) WHEN + + 84 THEN - ( - COUNT ( * ) ) + - + 69 + 71 * + COUNT ( * ) + + 11 WHEN + 68 THEN NULL END + + + COUNT ( * ) + + 20 * MIN ( DISTINCT + 37 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8232
SELECT ALL 21 DIV ( + NULLIF ( - 47, + COUNT( * ) * - + CAST( NULL AS SIGNED ) - + + 17 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL 21 / ( + NULLIF ( - 47, + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) - + + 17 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8233
SELECT ALL + 31 DIV - 94 * - 73 + - - 70
----
70

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL + 31 / - 94 * - 73 + - - 70
----
70

query I rowsort
SELECT + 74 * + 22 * - 88 AS col2
----
-143264

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT 50 * + ( COUNT( * ) ) * 2 + ( - 48 ) + + ( 56 ) + + 71 + - + 87
----
92

skipif mysql # not compatible
query I rowsort label-8235
SELECT 50 * + ( COUNT ( * ) ) * 2 + ( - 48 ) + + ( 56 ) + + 71 + - + 87
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT - MIN( + 94 ) - + 87 * - + 41
----
3473

skipif mysql # not compatible
query I rowsort label-8236
SELECT - MIN ( + 94 ) - + 87 * - + 41
----
3473

query I rowsort
SELECT DISTINCT 52 * 9
----
468

query I rowsort
SELECT ALL 66 + + + 32
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8239
SELECT ALL COUNT( * ) + - - 69 * COUNT( - 72 ) DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL COUNT ( * ) + - - 69 * COUNT ( - 72 ) / - 38
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8240
SELECT + - 62 AS col2, COUNT( * ) AS col2
----
-62
1

skipif mysql # not compatible
query II rowsort label-8240
SELECT + - 62 AS col2, COUNT ( * ) AS col2
----
-62
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL + COALESCE ( + 5, 34 ) + + + 65 * - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL + COALESCE ( + 5, 34 ) + + + 65 * - COUNT ( * )
----
-60

query I rowsort
SELECT ALL - 4 + 80 AS col0
----
76

query II rowsort
SELECT ALL - 52, 7 col0
----
-52
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT + SUM( ALL - 34 ) + - + 24 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-8244
SELECT + SUM ( ALL - 34 ) + - + 24 AS col1
----
-58

query I rowsort
SELECT ALL - 54 + + 36 * - 63 AS col1
----
-2322

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8246
SELECT COALESCE ( COALESCE ( + 47, + COUNT( + 97 ) + SUM( ALL - ( - 54 ) ), + + 28 * COUNT( * ) + + + 95 + 70 * - 51 DIV - 71 ), - - 50 + + + COUNT( * ) ) AS col0, 42 + - 13
----
47
29

skipif mysql # not compatible
query II rowsort label-8246
SELECT COALESCE ( COALESCE ( + 47, + COUNT ( + 97 ) + SUM ( ALL - ( - 54 ) ), + + 28 * COUNT ( * ) + + + 95 + 70 * - 51 / - 71 ), - - 50 + + + COUNT ( * ) ) AS col0, 42 + - 13
----
47
29

query II rowsort
SELECT 79 AS col2, 7 * - 42 * + 3 * + 92
----
79
-81144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8248
SELECT ALL - + CAST( - ( + + COALESCE ( + - 85, - + 99 * 66 * - COUNT( ALL + 36 ) ) ) AS SIGNED ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL - + CAST ( - ( + + COALESCE ( + - 85, - + 99 * 66 * - COUNT ( ALL + 36 ) ) ) AS INTEGER ) AS col2
----
-85

query I rowsort
SELECT 19 * 50 + + 77 - + + 3
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT - COUNT( DISTINCT - 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-8250
SELECT - COUNT ( DISTINCT - 89 )
----
-1

query II rowsort
SELECT DISTINCT 50 - - 97 AS col2, 51 AS col0
----
147
51

query I rowsort
SELECT DISTINCT + 35 * + - 83 * + 66
----
-191730

query I rowsort
SELECT DISTINCT + 53 * 51 * 34 AS col2
----
91902

query I rowsort
SELECT 38 * + 61 AS col0
----
2318

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8255
SELECT 12 * + 73 AS col1, + 57 / - 84 + + CAST( NULL AS SIGNED ) + + 47
----
876
NULL

skipif mysql # not compatible
query II rowsort label-8255
SELECT 12 * + 73 AS col1, + 57 / - 84 + + CAST ( NULL AS INTEGER ) + + 47
----
876
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8256
SELECT MAX( + 59 ) DIV 11 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8256
SELECT MAX ( + 59 ) / 11 AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8257
SELECT ALL + COUNT( * ) DIV - 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL + COUNT ( * ) / - 31 AS col2
----
0

query I rowsort
SELECT 28 * + 61 * + 34
----
58072

query I rowsort
SELECT ALL 60 * - 44 AS col1
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL COUNT( ALL 57 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL COUNT ( ALL 57 ) AS col1
----
1

query I rowsort
SELECT ALL 83 * - 20 * 51 + 65
----
-84595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT 21 * + 58 + - 10 * + CAST( 37 AS SIGNED )
----
848

skipif mysql # not compatible
query I rowsort label-8262
SELECT 21 * + 58 + - 10 * + CAST ( 37 AS INTEGER )
----
848

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ALL - - MAX( - 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL - - MAX ( - 70 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL 24 * + + NULLIF ( + 93, COUNT( * ) * 77 ) + + CASE - ( + NULLIF ( - 63, ( 61 ) * 56 - - 15 ) ) WHEN + 61 THEN NULL WHEN + 10 THEN NULL ELSE NULLIF ( + 4, + + 73 ) END col0
----
2236

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL 24 * + + NULLIF ( + 93, COUNT ( * ) * 77 ) + + CASE - ( + NULLIF ( - 63, ( 61 ) * 56 - - 15 ) ) WHEN + 61 THEN NULL WHEN + 10 THEN NULL ELSE NULLIF ( + 4, + + 73 ) END col0
----
2236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8265
SELECT COUNT( * ) * 15 * - 41 * + CASE AVG ( DISTINCT + 96 ) WHEN - - CASE - + CAST( 91 AS DECIMAL ) WHEN 51 + + 98 THEN NULL ELSE 82 END + - - CAST( + - 35 AS SIGNED ) * - CAST( - COUNT( * ) AS SIGNED ) + + 61 - 4 * - - 90 * 54 THEN - 79 - + 8 ELSE - + NULLIF ( 96, + 33 + 99 ) END
----
59040

skipif mysql # not compatible
query I rowsort label-8265
SELECT COUNT ( * ) * 15 * - 41 * + CASE AVG ( DISTINCT + 96 ) WHEN - - CASE - + CAST ( 91 AS REAL ) WHEN 51 + + 98 THEN NULL ELSE 82 END + - - CAST ( + - 35 AS INTEGER ) * - CAST ( - COUNT ( * ) AS INTEGER ) + + 61 - 4 * - - 90 * 54 THEN - 79 - + 8 ELSE - + NULLIF ( 96, + 33 + 99 ) END
----
59040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8266
SELECT DISTINCT - CASE ( + 6 ) WHEN - 61 THEN + 25 + + COUNT( * ) WHEN + + 92 * 38 THEN + 9 DIV 67 + - 52 + 6 ELSE + MIN( 64 ) END AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-8266
SELECT DISTINCT - CASE ( + 6 ) WHEN - 61 THEN + 25 + + COUNT ( * ) WHEN + + 92 * 38 THEN + 9 / 67 + - 52 + 6 ELSE + MIN ( 64 ) END AS col1
----
-64

query I rowsort
SELECT + - 40 * - 56 - - 21
----
2261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT - CAST( - 92 AS SIGNED ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8268
SELECT - CAST ( - 92 AS INTEGER ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8269
SELECT ALL - MIN( + 28 ) * - + CAST( NULL AS SIGNED ) * + + COUNT( * ) + + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL - MIN ( + 28 ) * - + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + + 62 AS col0
----
NULL

query I rowsort
SELECT + - 20 * + 6 AS col1
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8271
SELECT + NULLIF ( 27, - SUM( DISTINCT + 8 ) + 60 ) DIV - 26 - 54
----
-55

skipif mysql # not compatible
query I rowsort label-8271
SELECT + NULLIF ( 27, - SUM ( DISTINCT + 8 ) + 60 ) / - 26 - 54
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8272
SELECT + 97 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-8272
SELECT + 97 / - 99
----
0

query II rowsort
SELECT ALL 71 * 18 * + 6 * 74 + 26 AS col2, + 68 + - ( - 97 )
----
567458
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL + 48 * + + COUNT( * ) + 75 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL + 48 * + + COUNT ( * ) + 75 AS col0
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8275
SELECT DISTINCT COUNT( * ) - + - NULLIF ( 32, ( 70 ) * COUNT( ALL + 32 ) * 87 ) DIV + ( - 96 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT COUNT ( * ) - + - NULLIF ( 32, ( 70 ) * COUNT ( ALL + 32 ) * 87 ) / + ( - 96 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8276
SELECT ALL - 31 * 53 DIV 65 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL - 31 * 53 / 65 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-8277
SELECT ALL + SUM( + - ( + 49 ) ), + 63 - + 62 col2
----
-49
1

skipif mysql # not compatible
query II rowsort label-8277
SELECT ALL + SUM ( + - ( + 49 ) ), + 63 - + 62 col2
----
-49
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL COUNT( ALL 20 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL COUNT ( ALL 20 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8279
SELECT - COUNT( * ), + 61 * ( CAST( 9 AS SIGNED ) ) AS col1
----
-1
549

skipif mysql # not compatible
query II rowsort label-8279
SELECT - COUNT ( * ), + 61 * ( CAST ( 9 AS INTEGER ) ) AS col1
----
-1
549

query I rowsort
SELECT + 26 * ( - 42 ) AS col2
----
-1092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8281
SELECT ALL 79 AS col0, ( - ( + + 63 ) ) + + NULLIF ( - 37, - 78 * - COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) )
----
79
-100

skipif mysql # not compatible
query II rowsort label-8281
SELECT ALL 79 AS col0, ( - ( + + 63 ) ) + + NULLIF ( - 37, - 78 * - COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) )
----
79
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-8282
SELECT - 32 AS col0, COUNT( * )
----
-32
1

skipif mysql # not compatible
query II rowsort label-8282
SELECT - 32 AS col0, COUNT ( * )
----
-32
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT - 25 - SUM( + 63 )
----
-88

skipif mysql # not compatible
query I rowsort label-8283
SELECT - 25 - SUM ( + 63 )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8284
SELECT + COUNT( + 51 ) + 0 DIV + 55 * + - 82 * + 85 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8284
SELECT + COUNT ( + 51 ) + 0 / + 55 * + - 82 * + 85 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT + COUNT( * ) * + - NULLIF ( + - 57, + + 58 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8285
SELECT + COUNT ( * ) * + - NULLIF ( + - 57, + + 58 ) AS col2
----
57

query I rowsort
SELECT - 83 * + 92 AS col0
----
-7636

query I rowsort
SELECT ALL + 41 + + - 47 + + 87
----
81

query I rowsort
SELECT ALL - 87 + - - 78 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8289
SELECT - 47 DIV 28 * + 65 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-8289
SELECT - 47 / 28 * + 65 AS col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8290
SELECT DISTINCT - 69 + + 32 - MAX( + ( 18 ) ) + - COUNT( DISTINCT 30 ) - 78 DIV + 30
----
-58

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT - 69 + + 32 - MAX ( + ( 18 ) ) + - COUNT ( DISTINCT 30 ) - 78 / + 30
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT ALL - COUNT( * ) + - 43 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL - COUNT ( * ) + - 43 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT ALL 69 + - SUM( - 98 ) AS col1
----
167

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL 69 + - SUM ( - 98 ) AS col1
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8293
SELECT ALL + 36 DIV - 21 + - + 77 + + + 36 * + 80 AS col1, + NULLIF ( - 25, - 90 ) * 96 * - 60 * - SUM( DISTINCT - - 61 )
----
2802
-8784000

skipif mysql # not compatible
query II rowsort label-8293
SELECT ALL + 36 / - 21 + - + 77 + + + 36 * + 80 AS col1, + NULLIF ( - 25, - 90 ) * 96 * - 60 * - SUM ( DISTINCT - - 61 )
----
2802
-8784000

onlyif mysql # aggregate syntax: 
query II rowsort label-8294
SELECT + + 76, - SUM( ALL - - 53 ) AS col0
----
76
-53

skipif mysql # not compatible
query II rowsort label-8294
SELECT + + 76, - SUM ( ALL - - 53 ) AS col0
----
76
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8295
SELECT ALL 84 DIV COUNT( * ) * - + 65 + + 92
----
-5368

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL 84 / COUNT ( * ) * - + 65 + + 92
----
-5368

query II rowsort
SELECT + 35 AS col0, 39
----
35
39

onlyif mysql # DIV for integer division: 
query II rowsort label-8297
SELECT ALL + + 97 * 40 DIV - 18 col1, + NULLIF ( + 99, + - 37 ) AS col1
----
-215
99

skipif mysql # not compatible
query II rowsort label-8297
SELECT ALL + + 97 * 40 / - 18 col1, + NULLIF ( + 99, + - 37 ) AS col1
----
-215
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT DISTINCT + + SUM( + 71 ) * 22 AS col0
----
1562

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT + + SUM ( + 71 ) * 22 AS col0
----
1562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8299
SELECT + - CAST( NULL AS SIGNED ) - + + COUNT( * ) * - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT + - CAST ( NULL AS INTEGER ) - + + COUNT ( * ) * - + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT ALL + + SUM( - 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL + + SUM ( - 57 ) AS col1
----
-57

query I rowsort
SELECT - + 57 + + - 23 - + 1 + 45 * + + 6 AS col0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT ALL - - NULLIF ( 24, - - 27 ) * COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL - - NULLIF ( 24, - - 27 ) * COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT DISTINCT + COUNT( ALL - + 40 ) * - 72 - + 31 + 28 + + ( - 67 ) - 47 col0
----
-189

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT + COUNT ( ALL - + 40 ) * - 72 - + 31 + 28 + + ( - 67 ) - 47 col0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT 91 * 14 + - COUNT( * ) AS col1
----
1273

skipif mysql # not compatible
query I rowsort label-8304
SELECT 91 * 14 + - COUNT ( * ) AS col1
----
1273

onlyif mysql # aggregate syntax: 
query II rowsort label-8305
SELECT DISTINCT 0 * + + COUNT( * ) * - 41, + 53 col2
----
0
53

skipif mysql # not compatible
query II rowsort label-8305
SELECT DISTINCT 0 * + + COUNT ( * ) * - 41, + 53 col2
----
0
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT DISTINCT + MAX( DISTINCT ( 66 ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT + MAX ( DISTINCT ( 66 ) ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL + ( MAX( ALL - 26 ) ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL + ( MAX ( ALL - 26 ) ) AS col2
----
-26

query I rowsort
SELECT - 26 * - 48 AS col0
----
1248

query I rowsort
SELECT + 32 + - 11
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8310
SELECT ALL 38 DIV 37 * 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL 38 / 37 * 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT NULLIF ( COUNT( * ), - 27 )
----
1

skipif mysql # not compatible
query I rowsort label-8311
SELECT NULLIF ( COUNT ( * ), - 27 )
----
1

query I rowsort
SELECT CASE - - 34 WHEN + + ( - 55 ) THEN 39 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8313
SELECT DISTINCT 55 * CAST( NULL AS SIGNED ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT 55 * CAST ( NULL AS INTEGER ) * 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT + CASE - - COUNT( * ) WHEN - + 80 * - MIN( DISTINCT - 23 ) THEN NULL WHEN - CASE - COUNT( * ) WHEN 79 + - + COUNT( * ) THEN 55 + COUNT( * ) + 17 END + + - 94 THEN ( 11 ) * - - NULLIF ( 59, COUNT( * ) ) ELSE + 31 + 45 + - 96 + + 81 END
----
61

skipif mysql # not compatible
query I rowsort label-8314
SELECT + CASE - - COUNT ( * ) WHEN - + 80 * - MIN ( DISTINCT - 23 ) THEN NULL WHEN - CASE - COUNT ( * ) WHEN 79 + - + COUNT ( * ) THEN 55 + COUNT ( * ) + 17 END + + - 94 THEN ( 11 ) * - - NULLIF ( 59, COUNT ( * ) ) ELSE + 31 + 45 + - 96 + + 81 END
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT + COALESCE ( - 42, - - 69 - - COUNT( + 63 ) + 30 ) + - - 92 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8315
SELECT + COALESCE ( - 42, - - 69 - - COUNT ( + 63 ) + 30 ) + - - 92 AS col1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8316
SELECT ALL 80 AS col2, + 74 DIV COUNT( * ) AS col1
----
80
74

skipif mysql # not compatible
query II rowsort label-8316
SELECT ALL 80 AS col2, + 74 / COUNT ( * ) AS col1
----
80
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8317
SELECT ALL COUNT( ALL + 76 ) * + - 97 * - - COUNT( * ) AS col0, 32
----
-97
32

skipif mysql # not compatible
query II rowsort label-8317
SELECT ALL COUNT ( ALL + 76 ) * + - 97 * - - COUNT ( * ) AS col0, 32
----
-97
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8318
SELECT ALL CAST( - - 90 AS SIGNED ) * + 54 col1
----
4860

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL CAST ( - - 90 AS INTEGER ) * + 54 col1
----
4860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8319
SELECT ALL + CAST( NULL AS SIGNED ) * 42 + + + ( 91 ) * - - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL + CAST ( NULL AS INTEGER ) * 42 + + + ( 91 ) * - - 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8320
SELECT - NULLIF ( 70, COALESCE ( - + COUNT( * ), - NULLIF ( - 57, + - 32 ) + - 17 + - - ( - 90 ) + 45 / 50, + 42 + 7 + - 74 * 42 * 17 + 98 * 78 ) + - - 15 - + - CAST( NULL AS DECIMAL ) * - SUM( DISTINCT - + 72 ) ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-8320
SELECT - NULLIF ( 70, COALESCE ( - + COUNT ( * ), - NULLIF ( - 57, + - 32 ) + - 17 + - - ( - 90 ) + 45 / 50, + 42 + 7 + - 74 * 42 * 17 + 98 * 78 ) + - - 15 - + - CAST ( NULL AS REAL ) * - SUM ( DISTINCT - + 72 ) ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-8321
SELECT MIN( DISTINCT - 55 ), - COUNT( * ) AS col1
----
-55
-1

skipif mysql # not compatible
query II rowsort label-8321
SELECT MIN ( DISTINCT - 55 ), - COUNT ( * ) AS col1
----
-55
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT DISTINCT CASE + COUNT( * ) WHEN - MIN( DISTINCT - - ( + NULLIF ( + 98, 17 ) ) ) THEN + + COUNT( * ) ELSE NULL END + ( + 35 ) + + 13 + + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT CASE + COUNT ( * ) WHEN - MIN ( DISTINCT - - ( + NULLIF ( + 98, 17 ) ) ) THEN + + COUNT ( * ) ELSE NULL END + ( + 35 ) + + 13 + + 79 AS col2
----
NULL

query II rowsort
SELECT ALL 48 + + 77 AS col1, 50 * + ( 7 ) + 78 * - - ( - NULLIF ( 97, + ( 44 ) ) ) AS col0
----
125
-7216

query I rowsort
SELECT ALL 24 + + - 83 + + 14 AS col0
----
-45

query I rowsort
SELECT + 30 - + - 19 AS col1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-8326
SELECT 0 AS col2, ( - 73 ) * - - NULLIF ( + 84, - 92 * - + 80 * - COUNT( * ) ) AS col0
----
0
-6132

skipif mysql # not compatible
query II rowsort label-8326
SELECT 0 AS col2, ( - 73 ) * - - NULLIF ( + 84, - 92 * - + 80 * - COUNT ( * ) ) AS col0
----
0
-6132

query I rowsort
SELECT + 6 * + - 93 * - 87
----
48546

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8328
SELECT - CAST( NULL AS SIGNED ), 76 AS col2
----
NULL
76

skipif mysql # not compatible
query II rowsort label-8328
SELECT - CAST ( NULL AS INTEGER ), 76 AS col2
----
NULL
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8329
SELECT 81 col2, COUNT( ALL - 87 ) col0
----
81
1

skipif mysql # not compatible
query II rowsort label-8329
SELECT 81 col2, COUNT ( ALL - 87 ) col0
----
81
1

query I rowsort
SELECT ALL 88 + + 4 * + 37 AS col0
----
236

query II rowsort
SELECT DISTINCT 96, - 46 + + 66 AS col2
----
96
20

query II rowsort
SELECT - + 14, + 40 AS col2
----
-14
40

query I rowsort
SELECT DISTINCT - ( + 93 ) * + 99
----
-9207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8334
SELECT ALL - COUNT( + CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8335
SELECT COUNT( * ) * + + 80 - - 18 * 19 AS col1, CAST( + + COUNT( * ) AS SIGNED )
----
422
1

skipif mysql # not compatible
query II rowsort label-8335
SELECT COUNT ( * ) * + + 80 - - 18 * 19 AS col1, CAST ( + + COUNT ( * ) AS INTEGER )
----
422
1

query II rowsort
SELECT - COALESCE ( 17, 78 * - 71 ) AS col2, 10 * - 24
----
-17
-240

query I rowsort
SELECT ALL + 83 - - - 2 * 70 AS col0
----
-57

query II rowsort
SELECT 61 AS col2, 24 AS col2
----
61
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT ALL - + COALESCE ( NULLIF ( - 19, + 46 + 97 ), + 24, - - 10 + - MIN( + + 70 ) ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL - + COALESCE ( NULLIF ( - 19, + 46 + 97 ), + 24, - - 10 + - MIN ( + + 70 ) ) AS col1
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-8340
SELECT + 70 DIV + 89 AS col1, 96
----
0
96

skipif mysql # not compatible
query II rowsort label-8340
SELECT + 70 / + 89 AS col1, 96
----
0
96

query II rowsort
SELECT ALL - 27, - 87 col1
----
-27
-87

query I rowsort
SELECT + 9 * + - 44 * + + 32 * 8 AS col2
----
-101376

onlyif mysql # DIV for integer division: 
query I rowsort label-8343
SELECT ALL - 76 DIV + - 71 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL - 76 / + - 71 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8344
SELECT + - CAST( NULL AS SIGNED ) AS col2, - 97 * + + 12 AS col1
----
NULL
-1164

skipif mysql # not compatible
query II rowsort label-8344
SELECT + - CAST ( NULL AS INTEGER ) AS col2, - 97 * + + 12 AS col1
----
NULL
-1164

query II rowsort
SELECT DISTINCT - - 1 AS col1, + 42
----
1
42

query II rowsort
SELECT DISTINCT - + 10 AS col0, 53 col1
----
-10
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT - COUNT( * ) * + + CASE + 12 WHEN ( 20 ) THEN - + 99 * 65 * - + 48 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT - COUNT ( * ) * + + CASE + 12 WHEN ( 20 ) THEN - + 99 * 65 * - + 48 END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT COUNT( DISTINCT - 26 ) * - - 86
----
86

skipif mysql # not compatible
query I rowsort label-8348
SELECT COUNT ( DISTINCT - 26 ) * - - 86
----
86

query I rowsort
SELECT NULLIF ( + 34, - 12 ) AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8350
SELECT ALL - 83, CAST( 38 AS SIGNED ) * - 10 + - 34 AS col1
----
-83
-414

skipif mysql # not compatible
query II rowsort label-8350
SELECT ALL - 83, CAST ( 38 AS INTEGER ) * - 10 + - 34 AS col1
----
-83
-414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8351
SELECT 35 * - - AVG ( + 61 ) * + ( CAST( NULL AS SIGNED ) ) * + + COUNT( * ) - - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-8351
SELECT 35 * - - AVG ( + 61 ) * + ( CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) - - - 76
----
NULL

query I rowsort
SELECT 13 - + - 15
----
28

query I rowsort
SELECT DISTINCT - COALESCE ( + + 60, - + 90 ) * - 27
----
1620

query I rowsort
SELECT DISTINCT - 4 + ( - 61 ) + + 29
----
-36

query I rowsort
SELECT 67 * + 14 col2
----
938

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL - 87 + - - 42 * - ( COUNT( * ) ) AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL - 87 + - - 42 * - ( COUNT ( * ) ) AS col1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT - 77 * + 33 + 42 + + SUM( ALL - + 29 )
----
-2528

skipif mysql # not compatible
query I rowsort label-8357
SELECT - 77 * + 33 + 42 + + SUM ( ALL - + 29 )
----
-2528

query II rowsort
SELECT 57 + + + 85 AS col0, 77
----
142
77

query I rowsort
SELECT + 96 * COALESCE ( + 25, - + 57 ) - 83
----
2317

query I rowsort
SELECT ALL 94 + - - 53 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT ALL MAX( 51 ) + + - 10 col0
----
41

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL MAX ( 51 ) + + - 10 col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT SUM( ALL + - ( - 12 ) ) + + 14 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-8362
SELECT SUM ( ALL + - ( - 12 ) ) + + 14 AS col2
----
26

query I rowsort
SELECT - 18 + ( 88 ) + + + ( - 73 ) + - + 8 * + 6 * 9 * + 15
----
-6483

onlyif mysql # aggregate syntax: 
query II rowsort label-8364
SELECT ALL - ( + COUNT( * ) ) - 89 AS col1, 7 * - 93 AS col2
----
-90
-651

skipif mysql # not compatible
query II rowsort label-8364
SELECT ALL - ( + COUNT ( * ) ) - 89 AS col1, 7 * - 93 AS col2
----
-90
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT + 40 * NULLIF ( 23, - + COUNT( * ) ) AS col1
----
920

skipif mysql # not compatible
query I rowsort label-8365
SELECT + 40 * NULLIF ( 23, - + COUNT ( * ) ) AS col1
----
920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8366
SELECT + NULLIF ( + + 24, - + MAX( DISTINCT NULLIF ( - 82, - - CAST( NULL AS SIGNED ) ) ) )
----
24

skipif mysql # not compatible
query I rowsort label-8366
SELECT + NULLIF ( + + 24, - + MAX ( DISTINCT NULLIF ( - 82, - - CAST ( NULL AS INTEGER ) ) ) )
----
24

query III rowsort
SELECT ALL 37 * 68, - 1 AS col0, + 74 AS col1
----
2516
-1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT - 7 * MAX( - + 84 )
----
588

skipif mysql # not compatible
query I rowsort label-8368
SELECT - 7 * MAX ( - + 84 )
----
588

query I rowsort
SELECT DISTINCT 94 * + 14 + + 93
----
1409

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT + COUNT( ALL - + 23 ) * + - 66 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-8370
SELECT + COUNT ( ALL - + 23 ) * + - 66 AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8371
SELECT + 43 * - - CASE + + COUNT( - ( - - CAST( NULL AS SIGNED ) ) ) WHEN 32 THEN NULL ELSE 2 * - COUNT( ALL + 19 ) END * + - 0 + + 43 * + 10
----
430

skipif mysql # not compatible
query I rowsort label-8371
SELECT + 43 * - - CASE + + COUNT ( - ( - - CAST ( NULL AS INTEGER ) ) ) WHEN 32 THEN NULL ELSE 2 * - COUNT ( ALL + 19 ) END * + - 0 + + 43 * + 10
----
430

query I rowsort
SELECT ALL + 69 * + 5
----
345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8373
SELECT - CAST( + CAST( - + COALESCE ( + CASE + COUNT( * ) WHEN 7 * - + 57 + + + ( + COUNT( + ( 18 ) ) ) THEN NULL ELSE - 38 * + CAST( + COUNT( * ) AS SIGNED ) END, + + CASE 92 WHEN + + MIN( - 78 ) / - 88 * - CASE - ( 64 ) WHEN - 35 THEN NULL WHEN - - 67 THEN NULL ELSE - + 53 + ( + + CASE 53 WHEN - 16 THEN + 63 END ) END * + ( + 39 ) + + 5 / + 24 - - 67 * 31 THEN 74 WHEN ( 20 ) THEN 37 WHEN 63 THEN NULL END, COALESCE ( AVG ( + 19 ), 86 * AVG ( + 69 ) - SUM( DISTINCT + 16 ) * 47 ) * ( - 21 + 49 ) ) AS SIGNED ) AS SIGNED ) + - COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-8373
SELECT - CAST ( + CAST ( - + COALESCE ( + CASE + COUNT ( * ) WHEN 7 * - + 57 + + + ( + COUNT ( + ( 18 ) ) ) THEN NULL ELSE - 38 * + CAST ( + COUNT ( * ) AS INTEGER ) END, + + CASE 92 WHEN + + MIN ( - 78 ) / - 88 * - CASE - ( 64 ) WHEN - 35 THEN NULL WHEN - - 67 THEN NULL ELSE - + 53 + ( + + CASE 53 WHEN - 16 THEN + 63 END ) END * + ( + 39 ) + + 5 / + 24 - - 67 * 31 THEN 74 WHEN ( 20 ) THEN 37 WHEN 63 THEN NULL END, COALESCE ( AVG ( + 19 ), 86 * AVG ( + 69 ) - SUM ( DISTINCT + 16 ) * 47 ) * ( - 21 + 49 ) ) AS INTEGER ) AS INTEGER ) + - COUNT ( * ) AS col2
----
-39

query I rowsort
SELECT DISTINCT 22 * - - 92 AS col1
----
2024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8375
SELECT - COUNT( - - 77 ) - - + 87 AS col2, + 75 / + + CAST( NULL AS SIGNED ) - + - 29 * - + 15
----
86
NULL

skipif mysql # not compatible
query II rowsort label-8375
SELECT - COUNT ( - - 77 ) - - + 87 AS col2, + 75 / + + CAST ( NULL AS INTEGER ) - + - 29 * - + 15
----
86
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-8376
SELECT ( + 81 ) DIV + 73, + CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col0, + COUNT( * ) - - 68 + - 52 DIV + 98 + - 68
----
1
NULL
1

skipif mysql # not compatible
query III rowsort label-8376
SELECT ( + 81 ) / + 73, + CAST ( NULL AS REAL ) * - COUNT ( * ) AS col0, + COUNT ( * ) - - 68 + - 52 / + 98 + - 68
----
1
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8377
SELECT - - 33 DIV - + NULLIF ( ( + 53 ), - COUNT( * ) ) * - 98 + 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8377
SELECT - - 33 / - + NULLIF ( ( + 53 ), - COUNT ( * ) ) * - 98 + 74 AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8378
SELECT + 24 * - + 78 * COUNT( * ) * + 39 - - - CAST( NULL AS SIGNED ) + - - 37 * + 58 * + 76 / + 3 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT + 24 * - + 78 * COUNT ( * ) * + 39 - - - CAST ( NULL AS INTEGER ) + - - 37 * + 58 * + 76 / + 3 * - 66
----
NULL

query I rowsort
SELECT ALL 85 * + + 21 * - + 22 AS col0
----
-39270

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT MAX( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-8380
SELECT MAX ( 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT ALL - 18 + COUNT( * ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL - 18 + COUNT ( * ) col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT ALL + 63 / + CASE - 12 WHEN + 84 / + CASE 41 WHEN - ( 85 ) + - - COUNT( * ) + + AVG ( DISTINCT + 78 ) * COUNT( * ) THEN NULL ELSE + + 84 END * + 49 + + + 51 + + 62 + + - 40 + - 31 + + 22 THEN NULL WHEN + 19 THEN + + MIN( DISTINCT - + 31 ) * + 20 END * + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL + 63 / + CASE - 12 WHEN + 84 / + CASE 41 WHEN - ( 85 ) + - - COUNT ( * ) + + AVG ( DISTINCT + 78 ) * COUNT ( * ) THEN NULL ELSE + + 84 END * + 49 + + + 51 + + 62 + + - 40 + - 31 + + 22 THEN NULL WHEN + 19 THEN + + MIN ( DISTINCT - + 31 ) * + 20 END * + 77 AS col2
----
NULL

query I rowsort
SELECT 48 + - 93 AS col2
----
-45

query I rowsort
SELECT DISTINCT + 45 * - 53 AS col0
----
-2385

onlyif mysql # aggregate syntax: 
query II rowsort label-8385
SELECT ALL - ( + 80 ) + 89 + 85 - + 39 * - 34, COUNT( * ) AS col2
----
1420
1

skipif mysql # not compatible
query II rowsort label-8385
SELECT ALL - ( + 80 ) + 89 + 85 - + 39 * - 34, COUNT ( * ) AS col2
----
1420
1

query I rowsort
SELECT ALL + 55 + + 63 + - 64 + - 25 AS col1
----
29

query II rowsort
SELECT 96 AS col0, + 62 + + - 79 AS col0
----
96
-17

query I rowsort
SELECT + NULLIF ( - 2, - + COALESCE ( - + 79, ( 42 ) ) ) AS col2
----
-2

query I rowsort
SELECT 82 + + 39
----
121

query I rowsort
SELECT ALL - 82 * + 69
----
-5658

query II rowsort
SELECT + 97 AS col0, + 46
----
97
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8392
SELECT CASE - + SUM( - CAST( NULL AS DECIMAL ) ) WHEN - 2 + - SUM( ALL 50 ) + COALESCE ( - 42, - - 90 - + + NULLIF ( + + 86, + 28 + + MAX( ALL + 82 ) ) DIV - 10 * - COUNT( * ) + - 31, COUNT( * ) + + 32 * COUNT( ALL + 86 ) ) - + 48 DIV - COALESCE ( 55, + + COUNT( * ) * + - 79 + 56 + + + 34 ) THEN COUNT( * ) * 47 WHEN COUNT( * ) + 20 DIV SUM( + 26 ) THEN - ( - ( + 76 ) ) * + 4 WHEN + 72 THEN ( + NULLIF ( + COUNT( * ), MAX( - 55 ) ) ) DIV 92 ELSE ( + CASE + MIN( DISTINCT - 31 ) WHEN ( 70 ) THEN NULL ELSE + ( 82 ) END ) END + 1 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8392
SELECT CASE - + SUM ( - CAST ( NULL AS REAL ) ) WHEN - 2 + - SUM ( ALL 50 ) + COALESCE ( - 42, - - 90 - + + NULLIF ( + + 86, + 28 + + MAX ( ALL + 82 ) ) / - 10 * - COUNT ( * ) + - 31, COUNT ( * ) + + 32 * COUNT ( ALL + 86 ) ) - + 48 / - COALESCE ( 55, + + COUNT ( * ) * + - 79 + 56 + + + 34 ) THEN COUNT ( * ) * 47 WHEN COUNT ( * ) + 20 / SUM ( + 26 ) THEN - ( - ( + 76 ) ) * + 4 WHEN + 72 THEN ( + NULLIF ( + COUNT ( * ), MAX ( - 55 ) ) ) / 92 ELSE ( + CASE + MIN ( DISTINCT - 31 ) WHEN ( 70 ) THEN NULL ELSE + ( 82 ) END ) END + 1 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT ALL + MIN( - + 33 ) + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL + MIN ( - + 33 ) + COUNT ( * )
----
-32

query I rowsort
SELECT 72 * - 86 AS col2
----
-6192

query I rowsort
SELECT ALL + 83 * - + 43
----
-3569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8396
SELECT 33, + CASE + ( + 52 ) WHEN + + 17 THEN 46 WHEN - 52 + - 30 + + 93 THEN NULL END * + + CASE ( - 41 ) WHEN + - COUNT( * ) THEN NULL WHEN + NULLIF ( + - CAST( NULL AS SIGNED ), - - 79 ) + 23 THEN 56 ELSE - - 75 + + 74 END * 55 + 66 AS col2
----
33
NULL

skipif mysql # not compatible
query II rowsort label-8396
SELECT 33, + CASE + ( + 52 ) WHEN + + 17 THEN 46 WHEN - 52 + - 30 + + 93 THEN NULL END * + + CASE ( - 41 ) WHEN + - COUNT ( * ) THEN NULL WHEN + NULLIF ( + - CAST ( NULL AS INTEGER ), - - 79 ) + 23 THEN 56 ELSE - - 75 + + 74 END * 55 + 66 AS col2
----
33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT - MAX( DISTINCT - - 31 ) * + 42 AS col2
----
-1302

skipif mysql # not compatible
query I rowsort label-8397
SELECT - MAX ( DISTINCT - - 31 ) * + 42 AS col2
----
-1302

query II rowsort
SELECT - + 82 col1, + 86
----
-82
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8399
SELECT ALL - - 3 - 29 + - 70 * 84 DIV 16 * - + 36 + - ( CAST( + 78 AS SIGNED ) ) * COALESCE ( - - 45, 66 + + 14 ) AS col0
----
9676

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL - - 3 - 29 + - 70 * 84 / 16 * - + 36 + - ( CAST ( + 78 AS INTEGER ) ) * COALESCE ( - - 45, 66 + + 14 ) AS col0
----
9676

query I rowsort
SELECT - 55 - + + 35
----
-90

query I rowsort
SELECT ALL + - 90 * - 3
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT DISTINCT - 9 * + COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT - 9 * + COUNT ( * ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8403
SELECT DISTINCT + 98 DIV ( - + 1 ) - - 54 + + MIN( ALL - 74 )
----
-118

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT + 98 / ( - + 1 ) - - 54 + + MIN ( ALL - 74 )
----
-118

query I rowsort
SELECT DISTINCT + 34 * + - 41
----
-1394

query I rowsort
SELECT ALL 21 * - + 90 col0
----
-1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8406
SELECT - + CASE + - ( - + 90 ) WHEN COUNT( * ) + + 9 THEN 91 ELSE 13 END DIV - - 88 * - 50
----
0

skipif mysql # not compatible
query I rowsort label-8406
SELECT - + CASE + - ( - + 90 ) WHEN COUNT ( * ) + + 9 THEN 91 ELSE 13 END / - - 88 * - 50
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8407
SELECT ALL + + MAX( - 79 ) * 73 AS col1, CASE - 90 WHEN - - 14 THEN + + 98 WHEN - + 64 + + 18 THEN MAX( DISTINCT - 37 ) END AS col2
----
-5767
NULL

skipif mysql # not compatible
query II rowsort label-8407
SELECT ALL + + MAX ( - 79 ) * 73 AS col1, CASE - 90 WHEN - - 14 THEN + + 98 WHEN - + 64 + + 18 THEN MAX ( DISTINCT - 37 ) END AS col2
----
-5767
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT ALL - CASE 46 WHEN 14 * - MIN( + - 69 ) - + 19 THEN - - 61 WHEN + ( - 53 ) THEN + 61 ELSE - + ( 95 ) END AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL - CASE 46 WHEN 14 * - MIN ( + - 69 ) - + 19 THEN - - 61 WHEN + ( - 53 ) THEN + 61 ELSE - + ( 95 ) END AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8409
SELECT ALL CAST( + 89 AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL CAST ( + 89 AS INTEGER ) AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8410
SELECT - - 9 DIV 89 * - COALESCE ( - 82, + 93 * + 58, + COUNT( * ) + 47 + 5 + - 52 * - 36 * 46 * + ( 93 ) DIV 61, + 23 + + 69 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8410
SELECT - - 9 / 89 * - COALESCE ( - 82, + 93 * + 58, + COUNT ( * ) + 47 + 5 + - 52 * - 36 * 46 * + ( 93 ) / 61, + 23 + + 69 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8411
SELECT ALL NULLIF ( ( - NULLIF ( - 42, + 99 * 5 - - 32 ) ), + NULLIF ( + 12, + 30 + - - COALESCE ( + 59, + 45 * + COUNT( DISTINCT + + 27 ), + 64 ) * + 97 ) ) + + 49 DIV - 28 AS col1, 40 AS col1
----
41
40

skipif mysql # not compatible
query II rowsort label-8411
SELECT ALL NULLIF ( ( - NULLIF ( - 42, + 99 * 5 - - 32 ) ), + NULLIF ( + 12, + 30 + - - COALESCE ( + 59, + 45 * + COUNT ( DISTINCT + + 27 ), + 64 ) * + 97 ) ) + + 49 / - 28 AS col1, 40 AS col1
----
41
40

query I rowsort
SELECT + + 38 + + + 38 + + + 24 * + - ( 66 ) col0
----
-1508

onlyif mysql # aggregate syntax: 
query II rowsort label-8413
SELECT DISTINCT - SUM( + 14 ) * 79 + 7, + 11 AS col1
----
-1099
11

skipif mysql # not compatible
query II rowsort label-8413
SELECT DISTINCT - SUM ( + 14 ) * 79 + 7, + 11 AS col1
----
-1099
11

onlyif mysql # aggregate syntax: 
query II rowsort label-8414
SELECT DISTINCT + + 72, - COUNT( * ) AS col0
----
72
-1

skipif mysql # not compatible
query II rowsort label-8414
SELECT DISTINCT + + 72, - COUNT ( * ) AS col0
----
72
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT ALL 70 * + 27 + - COALESCE ( + 55, + COUNT( * ), 1, + + COUNT( * ) + + 1 * + 44 )
----
1835

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL 70 * + 27 + - COALESCE ( + 55, + COUNT ( * ), 1, + + COUNT ( * ) + + 1 * + 44 )
----
1835

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT ALL + COUNT( DISTINCT - + 45 ) * - + 7 * COUNT( * ) + + 77 - + + 3 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL + COUNT ( DISTINCT - + 45 ) * - + 7 * COUNT ( * ) + + 77 - + + 3 AS col0
----
67

query I rowsort
SELECT DISTINCT - 73 * 42 * NULLIF ( - 74, 50 + - - 62 ) + 12
----
226896

query I rowsort
SELECT 87 * 43 - 14
----
3727

query I rowsort
SELECT ALL 25 * - 79 AS col0
----
-1975

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT + COUNT( * ) - - 38
----
39

skipif mysql # not compatible
query I rowsort label-8420
SELECT + COUNT ( * ) - - 38
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT - CAST( NULL AS SIGNED ) * - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8421
SELECT - CAST ( NULL AS INTEGER ) * - 39 AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + 62, ( ( 66 ) ) )
----
62

query I rowsort
SELECT + 7 + 85 col2
----
92

query I rowsort
SELECT ALL 63 * 45 + - 66 AS col0
----
2769

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8425
SELECT + CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT + CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT DISTINCT 31 * 81 - - 4 * + + ( 47 ) * 55 + + ( + 7 ) + - + 70 * NULLIF ( 54, + - COUNT( * ) + + 11 * + 27 ) + + + 37
----
9115

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT 31 * 81 - - 4 * + + ( 47 ) * 55 + + ( + 7 ) + - + 70 * NULLIF ( 54, + - COUNT ( * ) + + 11 * + 27 ) + + + 37
----
9115

onlyif mysql # aggregate syntax: 
query II rowsort label-8427
SELECT ALL + COUNT( ALL 21 ), CASE + NULLIF ( + 11, 63 ) WHEN - + 75 THEN - + 61 WHEN - ( + 36 ) THEN 3 END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8427
SELECT ALL + COUNT ( ALL 21 ), CASE + NULLIF ( + 11, 63 ) WHEN - + 75 THEN - + 61 WHEN - ( + 36 ) THEN 3 END AS col2
----
1
NULL

query I rowsort
SELECT ALL - 97 * + 1 AS col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8429
SELECT + 65 DIV - COUNT( ALL - - 11 )
----
-65

skipif mysql # not compatible
query I rowsort label-8429
SELECT + 65 / - COUNT ( ALL - - 11 )
----
-65

query I rowsort
SELECT - 71 * - ( + 29 ) AS col0
----
2059

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT + 24 * + - 87 + - COUNT( * ) * - 19 + + - MIN( - 24 )
----
-2045

skipif mysql # not compatible
query I rowsort label-8431
SELECT + 24 * + - 87 + - COUNT ( * ) * - 19 + + - MIN ( - 24 )
----
-2045

query I rowsort
SELECT - 47 * - + 48 * - - ( 40 )
----
90240

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT + 39 + + 72 + - 20 * + 34 + + COUNT( * ) * + 56 * 34
----
1335

skipif mysql # not compatible
query I rowsort label-8433
SELECT + 39 + + 72 + - 20 * + 34 + + COUNT ( * ) * + 56 * 34
----
1335

query I rowsort
SELECT ALL + 96 * + + 66
----
6336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8435
SELECT - 53 + - COUNT( * ) DIV - ( + 70 )
----
-53

skipif mysql # not compatible
query I rowsort label-8435
SELECT - 53 + - COUNT ( * ) / - ( + 70 )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8436
SELECT ALL + + 96 * 46 - + 33 + - 42 DIV - 81 + - + 95 - + + COUNT( + 14 ) AS col2
----
4287

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL + + 96 * 46 - + 33 + - 42 / - 81 + - + 95 - + + COUNT ( + 14 ) AS col2
----
4287

onlyif mysql # aggregate syntax: 
query II rowsort label-8437
SELECT - + ( + 99 ) + COUNT( * ) * - - ( + 95 ) * - ( + COUNT( * ) ) AS col0, NULLIF ( ( + - 7 ), - 14 * + MIN( - ( - 98 ) ) ) AS col2
----
-194
-7

skipif mysql # not compatible
query II rowsort label-8437
SELECT - + ( + 99 ) + COUNT ( * ) * - - ( + 95 ) * - ( + COUNT ( * ) ) AS col0, NULLIF ( ( + - 7 ), - 14 * + MIN ( - ( - 98 ) ) ) AS col2
----
-194
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT - 98 * - COUNT( * ) + - + 31
----
67

skipif mysql # not compatible
query I rowsort label-8438
SELECT - 98 * - COUNT ( * ) + - + 31
----
67

query I rowsort
SELECT - - 50 + - + 35 + + 8 AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8440
SELECT - + COALESCE ( - NULLIF ( + + 89, + + COUNT( * ) / MIN( DISTINCT - 51 ) ), ( + 77 ) ) + + - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT - + COALESCE ( - NULLIF ( + + 89, + + COUNT ( * ) / MIN ( DISTINCT - 51 ) ), ( + 77 ) ) + + - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 3 * + 29
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8442
SELECT ALL - - CASE NULLIF ( + - 45, + - 33 ) WHEN - 26 THEN + ( - COUNT( * ) ) WHEN + - COUNT( * ) + MAX( ALL COALESCE ( + 97, + ( + + 83 ) * 58 * + + 18 + + + ( + + 31 ) * 91 ) ) * - CAST( NULL AS SIGNED ) THEN - 21 END + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL - - CASE NULLIF ( + - 45, + - 33 ) WHEN - 26 THEN + ( - COUNT ( * ) ) WHEN + - COUNT ( * ) + MAX ( ALL COALESCE ( + 97, + ( + + 83 ) * 58 * + + 18 + + + ( + + 31 ) * 91 ) ) * - CAST ( NULL AS INTEGER ) THEN - 21 END + + 29
----
NULL

query I rowsort
SELECT ALL + 28 + + 20 AS col2
----
48

query I rowsort
SELECT ALL 44 + + 80 AS col1
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8445
SELECT MAX( DISTINCT + 5 ) DIV + 70 + 42 + - 87 AS col0, 25
----
-45
25

skipif mysql # not compatible
query II rowsort label-8445
SELECT MAX ( DISTINCT + 5 ) / + 70 + 42 + - 87 AS col0, 25
----
-45
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ALL + COUNT( * ) * 51 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL + COUNT ( * ) * 51 AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8447
SELECT CAST( + + 52 AS SIGNED ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8447
SELECT CAST ( + + 52 AS INTEGER ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT + 37 - + 55 + - 48 * + - 23 * - COUNT( * )
----
-1122

skipif mysql # not compatible
query I rowsort label-8448
SELECT + 37 - + 55 + - 48 * + - 23 * - COUNT ( * )
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT DISTINCT MAX( ALL + - 48 ) * 22 AS col2
----
-1056

skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT MAX ( ALL + - 48 ) * 22 AS col2
----
-1056

query I rowsort
SELECT ( 0 ) + + 26 - - 30 * + + 77
----
2336

query I rowsort
SELECT DISTINCT 18 * - 11
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8452
SELECT 66 * 79 DIV - 44 * COUNT( * ) AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-8452
SELECT 66 * 79 / - 44 * COUNT ( * ) AS col1
----
-118

query I rowsort
SELECT 7 * + 2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT DISTINCT 53 * + ( - COUNT( * ) ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT 53 * + ( - COUNT ( * ) ) AS col0
----
-53

query I rowsort
SELECT 17 + + 82 col0
----
99

query I rowsort
SELECT + 37 * 32 AS col0
----
1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8457
SELECT CAST( NULL AS DECIMAL ) AS col2, + 55 + - + CASE + 10 WHEN - 94 THEN + COALESCE ( 4, + ( 5 ) / + 78, + 43 * - 83 - - 30 - + COUNT( * ) * + CASE - COUNT( * ) WHEN + - ( + 10 ) * ( + + 45 ) THEN NULL WHEN + 15 * COALESCE ( - 99, + 27 * 9 * - 67 * - 88 / ( COUNT( + 4 ) ) + 51 ) * + ( 46 / + 63 ) + + 76 - ( + 93 ) THEN + COALESCE ( + 50, 7, 13 * 13 ) END + 2 ) * CAST( 26 AS SIGNED ) ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8457
SELECT CAST ( NULL AS REAL ) AS col2, + 55 + - + CASE + 10 WHEN - 94 THEN + COALESCE ( 4, + ( 5 ) / + 78, + 43 * - 83 - - 30 - + COUNT ( * ) * + CASE - COUNT ( * ) WHEN + - ( + 10 ) * ( + + 45 ) THEN NULL WHEN + 15 * COALESCE ( - 99, + 27 * 9 * - 67 * - 88 / ( COUNT ( + 4 ) ) + 51 ) * + ( 46 / + 63 ) + + 76 - ( + 93 ) THEN + COALESCE ( + 50, 7, 13 * 13 ) END + 2 ) * CAST ( 26 AS INTEGER ) ELSE NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8458
SELECT ALL - 59 DIV NULLIF ( - COUNT( * ), + 22 * + + 0 ) + + + 89 + - - 44 + - + 15 + + 59 - + 86 AS col1
----
150

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL - 59 / NULLIF ( - COUNT ( * ), + 22 * + + 0 ) + + + 89 + - - 44 + - + 15 + + 59 - + 86 AS col1
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8459
SELECT - 0 col1, COUNT( * ) DIV + 32
----
0
0

skipif mysql # not compatible
query II rowsort label-8459
SELECT - 0 col1, COUNT ( * ) / + 32
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8460
SELECT DISTINCT 61 DIV + COUNT( * ) + + COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT 61 / + COUNT ( * ) + + COUNT ( * ) AS col1
----
62

query I rowsort
SELECT ALL - - ( 30 ) + 84 AS col2
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8462
SELECT + 53 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT + 53 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8463
SELECT COALESCE ( - 73, - + 14 + 53 * - - 74 DIV + - 6 ) - - 8
----
-65

skipif mysql # not compatible
query I rowsort label-8463
SELECT COALESCE ( - 73, - + 14 + 53 * - - 74 / + - 6 ) - - 8
----
-65

query II rowsort
SELECT DISTINCT 62 AS col0, + ( 98 )
----
62
98

query I rowsort
SELECT ALL + + 80 + - - ( 76 ) AS col1
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8466
SELECT 78 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT 78 - - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 66 AS col2, - 28
----
66
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-8468
SELECT ALL 18, ( - 68 ) + COUNT( + 11 ) + 39 col0
----
18
-28

skipif mysql # not compatible
query II rowsort label-8468
SELECT ALL 18, ( - 68 ) + COUNT ( + 11 ) + 39 col0
----
18
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-8469
SELECT ALL 72, MIN( ALL - + ( - + 38 ) ) AS col0
----
72
38

skipif mysql # not compatible
query II rowsort label-8469
SELECT ALL 72, MIN ( ALL - + ( - + 38 ) ) AS col0
----
72
38

query II rowsort
SELECT 12 AS col1, 56 * ( 7 ) AS col1
----
12
392

query I rowsort
SELECT DISTINCT - ( - 60 ) col2
----
60

query I rowsort
SELECT ALL - 23 - - 34 AS col2
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8473
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1, 98 col1
----
NULL
98

skipif mysql # not compatible
query II rowsort label-8473
SELECT ALL - CAST ( NULL AS REAL ) AS col1, 98 col1
----
NULL
98

query I rowsort
SELECT DISTINCT - 14 * + - 99
----
1386

onlyif mysql # DIV for integer division: 
query I rowsort label-8475
SELECT DISTINCT - 42 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT - 42 / + 76
----
0

query I rowsort
SELECT 76 * + + 15
----
1140

query II rowsort
SELECT ALL - 47 AS col1, - 48 * - + 87 AS col0
----
-47
4176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8478
SELECT MAX( - CAST( NULL AS SIGNED ) ) * - 21 + 70 col0, - 10
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-8478
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) * - 21 + 70 col0, - 10
----
NULL
-10

query II rowsort
SELECT 49 col2, - 26 - + 47
----
49
-73

query I rowsort
SELECT 63 * - 72 * - - 87 * + 62 * + - 29
----
709548336

query I rowsort
SELECT 66 * - 68 AS col0
----
-4488

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT 1 * - MAX( ALL - 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8482
SELECT 1 * - MAX ( ALL - 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL - NULLIF ( 46, + COALESCE ( MAX( - + ( + 24 ) ), 36 + - 63 ) / 93 + + 73 / - 72 * - 33 )
----
-46

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - NULLIF ( 46, + COALESCE ( MAX ( - + ( + 24 ) ), 36 + - 63 ) / 93 + + 73 / - 72 * - 33 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT + 79 * + COUNT( * ) - + + 89
----
-10

skipif mysql # not compatible
query I rowsort label-8484
SELECT + 79 * + COUNT ( * ) - + + 89
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8485
SELECT COUNT( * ) / + NULLIF ( - + CAST( NULL AS SIGNED ), - 8 ), + 37 AS col1
----
NULL
37

skipif mysql # not compatible
query II rowsort label-8485
SELECT COUNT ( * ) / + NULLIF ( - + CAST ( NULL AS INTEGER ), - 8 ), + 37 AS col1
----
NULL
37

query I rowsort
SELECT 11 * 28 * + - 18 AS col2
----
-5544

query I rowsort
SELECT 82 + - 42 AS col1
----
40

query II rowsort
SELECT 73 AS col0, 42
----
73
42

query II rowsort
SELECT ALL - 65 AS col0, + 77
----
-65
77

query I rowsort
SELECT + 35 * - - 6
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT ALL - 68 + - COUNT( * ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL - 68 + - COUNT ( * ) AS col2
----
-69

query I rowsort
SELECT DISTINCT - + NULLIF ( 11, + + 42 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT DISTINCT + COUNT( * ) * - + 99 * - 97 * 46 AS col1
----
441738

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT + COUNT ( * ) * - + 99 * - 97 * 46 AS col1
----
441738

query I rowsort
SELECT ALL - + 27 col2
----
-27

query I rowsort
SELECT 13 * - 25 + 85 + - - 59 - - - 30 * + 53 AS col1
----
-1771

query I rowsort
SELECT 52 + + 54
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-8497
SELECT 84 col2, - COUNT( * ) * 83 + 37
----
84
-46

skipif mysql # not compatible
query II rowsort label-8497
SELECT 84 col2, - COUNT ( * ) * 83 + 37
----
84
-46

query I rowsort
SELECT ALL - 27 + + ( - 26 ) col2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8499
SELECT - - 96 * - + CASE ( + 39 ) WHEN - - 14 * - 32 + - + 34 - + + 18 * - 64 THEN ( - 19 ) + - ( + 94 ) END * + NULLIF ( + CAST( NULL AS SIGNED ), + + 32 + - 89 ) - 93 + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8499
SELECT - - 96 * - + CASE ( + 39 ) WHEN - - 14 * - 32 + - + 34 - + + 18 * - 64 THEN ( - 19 ) + - ( + 94 ) END * + NULLIF ( + CAST ( NULL AS INTEGER ), + + 32 + - 89 ) - 93 + + 26
----
NULL

query II rowsort
SELECT 90, + 12 * + 48 col1
----
90
576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8501
SELECT COUNT( * ) DIV + 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8501
SELECT COUNT ( * ) / + 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT ( - CASE + 90 WHEN + SUM( 44 ) * + 12 + + 19 THEN + 28 WHEN - 96 + - MAX( DISTINCT + 8 ) THEN NULL ELSE NULL END ) + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT ( - CASE + 90 WHEN + SUM ( 44 ) * + 12 + + 19 THEN + 28 WHEN - 96 + - MAX ( DISTINCT + 8 ) THEN NULL ELSE NULL END ) + + 3
----
NULL

query I rowsort
SELECT + ( - 56 ) * + 80 AS col2
----
-4480

query II rowsort
SELECT ALL 1, COALESCE ( + 0, - - 64 ) * + 92 + 94 * 94 AS col1
----
1
8836

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8505
SELECT 21, - CAST( - 72 AS SIGNED ) AS col1
----
21
72

skipif mysql # not compatible
query II rowsort label-8505
SELECT 21, - CAST ( - 72 AS INTEGER ) AS col1
----
21
72

query I rowsort
SELECT DISTINCT 16 + - 0 AS col2
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8507
SELECT ALL + 65 AS col2, MAX( ALL 78 ) AS col0
----
65
78

skipif mysql # not compatible
query II rowsort label-8507
SELECT ALL + 65 AS col2, MAX ( ALL 78 ) AS col0
----
65
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT DISTINCT - COUNT( * ) + - ( 96 ) * 7 + 52 * COUNT( * ) AS col2
----
-621

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT - COUNT ( * ) + - ( 96 ) * 7 + 52 * COUNT ( * ) AS col2
----
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT 1 + - 52 + - + COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-8509
SELECT 1 + - 52 + - + COUNT ( * ) AS col2
----
-52

query I rowsort
SELECT - 0 + + 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT 34 * + MIN( + - 56 )
----
-1904

skipif mysql # not compatible
query I rowsort label-8511
SELECT 34 * + MIN ( + - 56 )
----
-1904

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT - COALESCE ( + 45, - COUNT( * ) * + 4 * + 70 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8512
SELECT - COALESCE ( + 45, - COUNT ( * ) * + 4 * + 70 ) AS col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8513
SELECT ALL + 9 DIV + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL + 9 / + 99 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8514
SELECT 41 * 79 DIV - + 90
----
-35

skipif mysql # not compatible
query I rowsort label-8514
SELECT 41 * 79 / - + 90
----
-35

query I rowsort
SELECT 47 + 82 AS col0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8516
SELECT DISTINCT - 55 - - 23 AS col0, CAST( NULL AS SIGNED ) AS col1
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-8516
SELECT DISTINCT - 55 - - 23 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
-32
NULL

query II rowsort
SELECT ALL - 37 * 22, 31 AS col0
----
-814
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT DISTINCT MAX( 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-8518
SELECT DISTINCT MAX ( 88 ) AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8519
SELECT ALL - COUNT( * ) * - + 53 col0, 13 DIV + COUNT( * ) + - 52
----
53
-39

skipif mysql # not compatible
query II rowsort label-8519
SELECT ALL - COUNT ( * ) * - + 53 col0, 13 / + COUNT ( * ) + - 52
----
53
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT DISTINCT 8 * + + MAX( + 24 ) * - - 0 col1
----
0

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT 8 * + + MAX ( + 24 ) * - - 0 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8521
SELECT ALL MIN( DISTINCT 71 ), - 56 AS col1
----
71
-56

skipif mysql # not compatible
query II rowsort label-8521
SELECT ALL MIN ( DISTINCT 71 ), - 56 AS col1
----
71
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8522
SELECT + 69 * CAST( NULL AS SIGNED ) + - 73 * + 82 + - NULLIF ( - COUNT( * ), - + 17 / - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT + 69 * CAST ( NULL AS INTEGER ) + - 73 * + 82 + - NULLIF ( - COUNT ( * ), - + 17 / - 78 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8523
SELECT - COUNT( * ) * - + 12 AS col0, ( 37 ) AS col0
----
12
37

skipif mysql # not compatible
query II rowsort label-8523
SELECT - COUNT ( * ) * - + 12 AS col0, ( 37 ) AS col0
----
12
37

query I rowsort
SELECT - 30 + + 11 AS col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8525
SELECT + 6 * + 12 + + - 81 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8525
SELECT + 6 * + 12 + + - 81 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8526
SELECT + COUNT( * ) DIV + - 70 * + 18
----
0

skipif mysql # not compatible
query I rowsort label-8526
SELECT + COUNT ( * ) / + - 70 * + 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT - 7 * + ( - COUNT( - 26 ) )
----
7

skipif mysql # not compatible
query I rowsort label-8527
SELECT - 7 * + ( - COUNT ( - 26 ) )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8528
SELECT 65 * - 53 * + 2 + + - 56 / - CAST( NULL AS SIGNED ) + - 89 * + 71 + - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT 65 * - 53 * + 2 + + - 56 / - CAST ( NULL AS INTEGER ) + - 89 * + 71 + - 30 AS col2
----
NULL

query I rowsort
SELECT - 24 - - 65
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8530
SELECT DISTINCT + 93 DIV 77 col1
----
1

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT + 93 / 77 col1
----
1

query I rowsort
SELECT ALL 31 * 88 * + + 92 + + 2 + + - 70 AS col0
----
250908

query I rowsort
SELECT + 60 * - + ( - 27 ) + + 98 + 91 * - 37
----
-1649

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT - 72 * - SUM( ALL + 58 ) + - - MAX( + 60 ) + 16 + - 97 AS col1
----
4155

skipif mysql # not compatible
query I rowsort label-8533
SELECT - 72 * - SUM ( ALL + 58 ) + - - MAX ( + 60 ) + 16 + - 97 AS col1
----
4155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT CAST( - 25 AS SIGNED ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8534
SELECT CAST ( - 25 AS INTEGER ) AS col1
----
-25

query I rowsort
SELECT DISTINCT + + ( - - 49 ) AS col2
----
49

query I rowsort
SELECT NULLIF ( - 9, - - 10 * 50 + + 53 ) AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8537
SELECT CASE - 72 WHEN COUNT( * ) * CAST( NULL AS DECIMAL ) THEN NULL WHEN - 25 * - 3 THEN - 99 / + 8 END, 83 AS col2
----
NULL
83

skipif mysql # not compatible
query II rowsort label-8537
SELECT CASE - 72 WHEN COUNT ( * ) * CAST ( NULL AS REAL ) THEN NULL WHEN - 25 * - 3 THEN - 99 / + 8 END, 83 AS col2
----
NULL
83

query II rowsort
SELECT ALL - ( + - 81 ) AS col1, - 67
----
81
-67

query I rowsort
SELECT ALL - 41 - - 29 AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8540
SELECT + 80 + + - CASE - - MIN( - ( - 43 ) ) WHEN 45 * AVG ( ALL + + 63 ) DIV 4 + + + COALESCE ( + + COUNT( ALL - - 92 ), - + COUNT( * ) + 68 + 98 * - + 79 * + - 79 ) THEN - 17 DIV + + CAST( NULL AS SIGNED ) + 76 * + 50 + + - 42 ELSE + - 91 END
----
171

skipif mysql # not compatible
query I rowsort label-8540
SELECT + 80 + + - CASE - - MIN ( - ( - 43 ) ) WHEN 45 * AVG ( ALL + + 63 ) / 4 + + + COALESCE ( + + COUNT ( ALL - - 92 ), - + COUNT ( * ) + 68 + 98 * - + 79 * + - 79 ) THEN - 17 / + + CAST ( NULL AS INTEGER ) + 76 * + 50 + + - 42 ELSE + - 91 END
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT DISTINCT + - 59 * 14 + - + 56 + - NULLIF ( - 97, + 90 ) * + - ( - + COUNT( * ) ) * COUNT( * ) AS col0
----
-785

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT + - 59 * 14 + - + 56 + - NULLIF ( - 97, + 90 ) * + - ( - + COUNT ( * ) ) * COUNT ( * ) AS col0
----
-785

query I rowsort
SELECT - ( - 63 ) AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8543
SELECT - 38 - - 50 + + 32 - + 19 - - + 18 * COALESCE ( 93, + SUM( - 19 ) DIV - COUNT( * ) ) DIV + 46 + + MAX( DISTINCT - 8 ) - 87 * + + 93 - + 19 AS col2
----
-8057

skipif mysql # not compatible
query I rowsort label-8543
SELECT - 38 - - 50 + + 32 - + 19 - - + 18 * COALESCE ( 93, + SUM ( - 19 ) / - COUNT ( * ) ) / + 46 + + MAX ( DISTINCT - 8 ) - 87 * + + 93 - + 19 AS col2
----
-8057

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8544
SELECT + COALESCE ( COUNT( - - 65 ), 95, 90, - COUNT( + + 36 ) DIV 76 - 51 ) * - 77 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-8544
SELECT + COALESCE ( COUNT ( - - 65 ), 95, 90, - COUNT ( + + 36 ) / 76 - 51 ) * - 77 AS col2
----
-77

query II rowsort
SELECT 88, 29 AS col2
----
88
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8546
SELECT - COALESCE ( + 24, - CAST( + 79 AS SIGNED ) * - + CAST( NULL AS SIGNED ) + 68 + - 12 - - - 6 * COUNT( * ) * 84 + - + 8 )
----
-24

skipif mysql # not compatible
query I rowsort label-8546
SELECT - COALESCE ( + 24, - CAST ( + 79 AS INTEGER ) * - + CAST ( NULL AS INTEGER ) + 68 + - 12 - - - 6 * COUNT ( * ) * 84 + - + 8 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT ALL + ( + COUNT( * ) ) * 26 - + - 53 * + 95
----
5061

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL + ( + COUNT ( * ) ) * 26 - + - 53 * + 95
----
5061

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT + ( - COUNT( * ) ) - + 63 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-8548
SELECT + ( - COUNT ( * ) ) - + 63 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8549
SELECT + CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) * + + 82 + + SUM( + - 54 ) AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-8549
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) * + + 82 + + SUM ( + - 54 ) AS col0
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8550
SELECT ALL 60 DIV - + COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL 60 / - + COUNT ( * ) AS col0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8551
SELECT - 7 DIV - 85 col2
----
0

skipif mysql # not compatible
query I rowsort label-8551
SELECT - 7 / - 85 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8552
SELECT + CAST( NULL AS SIGNED ) * 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT + CAST ( NULL AS INTEGER ) * 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT - 52 / + CASE WHEN NOT 26 IS NOT NULL THEN 73 + 25 / + NULLIF ( 31, 75 ) + + - MIN( + 61 ) WHEN 90 IS NULL THEN - - 20 + - - 91 END + + 63 + - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT - 52 / + CASE WHEN NOT 26 IS NOT NULL THEN 73 + 25 / + NULLIF ( 31, 75 ) + + - MIN ( + 61 ) WHEN 90 IS NULL THEN - - 20 + - - 91 END + + 63 + - 89 AS col2
----
NULL

query I rowsort
SELECT ALL 89 * 94 AS col0
----
8366

query I rowsort
SELECT + CASE - 92 WHEN + 92 THEN 41 + - + 11 ELSE NULL END * + 19 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8556
SELECT ALL 58 DIV + + 52 + + ( - 81 ) + - - 83
----
3

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL 58 / + + 52 + + ( - 81 ) + - - 83
----
3

query II rowsort
SELECT ALL + 30 AS col0, - 31
----
30
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8558
SELECT DISTINCT - 39 DIV COUNT( * ) + + 19 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT - 39 / COUNT ( * ) + + 19 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT DISTINCT + MIN( ALL - 72 ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT + MIN ( ALL - 72 ) col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8560
SELECT CAST( - - 40 AS SIGNED ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-8560
SELECT CAST ( - - 40 AS INTEGER ) AS col2
----
40

query I rowsort
SELECT - 65 * 53
----
-3445

onlyif mysql # aggregate syntax: 
query II rowsort label-8562
SELECT COUNT( * ) * + + 79 + - - 9 AS col0, 62 AS col1
----
88
62

skipif mysql # not compatible
query II rowsort label-8562
SELECT COUNT ( * ) * + + 79 + - - 9 AS col0, 62 AS col1
----
88
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8563
SELECT 95, + CAST( 18 AS SIGNED ) + - - CASE - + SUM( ALL - 64 ) WHEN + COUNT( * ) - + - 14 THEN - 92 * 88 * - 57 * - 57 - - - 49 + 83 WHEN - + 8 THEN NULL WHEN + 56 + - 82 / 26 * - 74 THEN + COUNT( * ) + + + 96 END col2
----
95
NULL

skipif mysql # not compatible
query II rowsort label-8563
SELECT 95, + CAST ( 18 AS INTEGER ) + - - CASE - + SUM ( ALL - 64 ) WHEN + COUNT ( * ) - + - 14 THEN - 92 * 88 * - 57 * - 57 - - - 49 + 83 WHEN - + 8 THEN NULL WHEN + 56 + - 82 / 26 * - 74 THEN + COUNT ( * ) + + + 96 END col2
----
95
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8564
SELECT - CAST( NULL AS SIGNED ) / - - 54 - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8564
SELECT - CAST ( NULL AS INTEGER ) / - - 54 - 18 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8565
SELECT + ( + - 18 ) + - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8565
SELECT + ( + - 18 ) + - CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8566
SELECT ALL + COUNT( * ) DIV - + 28 col1
----
0

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL + COUNT ( * ) / - + 28 col1
----
0

query I rowsort
SELECT - + 14 * - 8 * - 41 AS col2
----
-4592

query I rowsort
SELECT ALL + + 69 * - 63
----
-4347

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT - 69 + - SUM( + ( - 5 ) ) + 73 * 58 * - 22 AS col1
----
-93212

skipif mysql # not compatible
query I rowsort label-8569
SELECT - 69 + - SUM ( + ( - 5 ) ) + 73 * 58 * - 22 AS col1
----
-93212

onlyif mysql # aggregate syntax: 
query II rowsort label-8570
SELECT + 47 AS col1, COUNT( * ) - 62 AS col1
----
47
-61

skipif mysql # not compatible
query II rowsort label-8570
SELECT + 47 AS col1, COUNT ( * ) - 62 AS col1
----
47
-61

query II rowsort
SELECT - 58, 52 col0
----
-58
52

query I rowsort
SELECT - 82 + - 98
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8573
SELECT - 61 * + 68 + + 90 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + CASE + ( + - 29 ) WHEN + 31 + - + 52 + - COUNT( * ) THEN NULL ELSE + 89 - + 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT - 61 * + 68 + + 90 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + CASE + ( + - 29 ) WHEN + 31 + - + 52 + - COUNT ( * ) THEN NULL ELSE + 89 - + 16 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8574
SELECT - 92 DIV + - 33 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8574
SELECT - 92 / + - 33 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8575
SELECT ALL 20, ( + 45 ) DIV + + COUNT( * ) + - 48 + - + 86 * - 62 * + - 56 AS col0
----
20
-298595

skipif mysql # not compatible
query II rowsort label-8575
SELECT ALL 20, ( + 45 ) / + + COUNT ( * ) + - 48 + - + 86 * - 62 * + - 56 AS col0
----
20
-298595

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT + 65 * + 36 - - + ( + COUNT( * ) ) + - + COALESCE ( 27, - - 86, - 52 * - 13 * + + ( - ( + ( - - 99 ) ) ) ) AS col2
----
2314

skipif mysql # not compatible
query I rowsort label-8576
SELECT + 65 * + 36 - - + ( + COUNT ( * ) ) + - + COALESCE ( 27, - - 86, - 52 * - 13 * + + ( - ( + ( - - 99 ) ) ) ) AS col2
----
2314

query II rowsort
SELECT - 81 AS col1, - 35 AS col2
----
-81
-35

query I rowsort
SELECT - 49 + + 50 * 34 * 95 + + + 66
----
161517

query II rowsort
SELECT ALL - 53, + 17 AS col1
----
-53
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT 85 + - + CASE 56 WHEN - 75 * + - 98 + - - ( + + COUNT( * ) ) - - + ( - 87 ) + - - 2 - + + 98 * 18 THEN NULL WHEN + 3 THEN + 30 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT 85 + - + CASE 56 WHEN - 75 * + - 98 + - - ( + + COUNT ( * ) ) - - + ( - 87 ) + - - 2 - + + 98 * 18 THEN NULL WHEN + 3 THEN + 30 END AS col0
----
NULL

query I rowsort
SELECT ALL + 10 * + 8
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT DISTINCT COUNT( DISTINCT - + 93 ) * 30
----
30

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT COUNT ( DISTINCT - + 93 ) * 30
----
30

query I rowsort
SELECT ALL 13 + + 70
----
83

query I rowsort
SELECT 82 + + - 71 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT CASE - + 27 WHEN + COUNT( * ) THEN COUNT( * ) ELSE NULL END + + - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT CASE - + 27 WHEN + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END + + - 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT ALL ( 77 ) + + + COUNT( * ) + + 84 AS col2
----
162

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL ( 77 ) + + + COUNT ( * ) + + 84 AS col2
----
162

query I rowsort
SELECT DISTINCT + 93 * 73
----
6789

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT DISTINCT 12 + - CAST( + + 35 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT 12 + - CAST ( + + 35 AS INTEGER )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL COUNT( * ) + + ( + 50 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL COUNT ( * ) + + ( + 50 ) AS col2
----
51

query I rowsort
SELECT + 89 * - 83 + - 55
----
-7442

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT + 46 * SUM( + 77 ) + + 5 AS col0
----
3547

skipif mysql # not compatible
query I rowsort label-8591
SELECT + 46 * SUM ( + 77 ) + + 5 AS col0
----
3547

query I rowsort
SELECT DISTINCT - 98 * - + 53 AS col2
----
5194

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT ALL - COUNT( * ) - - 85
----
84

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL - COUNT ( * ) - - 85
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL + - COUNT( * ) * - - 91
----
-91

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL + - COUNT ( * ) * - - 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT 60 + + COUNT( - 33 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8595
SELECT 60 + + COUNT ( - 33 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT DISTINCT - 46 * - 76 * - - COUNT( * )
----
3496

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT - 46 * - 76 * - - COUNT ( * )
----
3496

onlyif mysql # aggregate syntax: 
query II rowsort label-8597
SELECT ALL - MAX( 76 ) AS col2, - 77
----
-76
-77

skipif mysql # not compatible
query II rowsort label-8597
SELECT ALL - MAX ( 76 ) AS col2, - 77
----
-76
-77

query I rowsort
SELECT 40 * - - 42
----
1680

query I rowsort
SELECT ALL - + NULLIF ( - - 70, + - 90 )
----
-70

query I rowsort
SELECT - 29 * 39 AS col1
----
-1131

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT DISTINCT - + 92 DIV + 11 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT - + 92 / + 11 AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8602
SELECT ALL - CAST( + 93 AS SIGNED ), 47 * + 77 * + - 98 + CAST( + COUNT( * ) AS SIGNED ) - + ( + - 62 ) * - + 89 AS col2
----
-93
-360179

skipif mysql # not compatible
query II rowsort label-8602
SELECT ALL - CAST ( + 93 AS INTEGER ), 47 * + 77 * + - 98 + CAST ( + COUNT ( * ) AS INTEGER ) - + ( + - 62 ) * - + 89 AS col2
----
-93
-360179

onlyif mysql # aggregate syntax: 
query II rowsort label-8603
SELECT ALL - 98 * 21 + - 57 + + 82 AS col0, COUNT( * ) + + + 15
----
-2033
16

skipif mysql # not compatible
query II rowsort label-8603
SELECT ALL - 98 * 21 + - 57 + + 82 AS col0, COUNT ( * ) + + + 15
----
-2033
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT ALL - MAX( ALL + + 82 ) * - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL - MAX ( ALL + + 82 ) * - COUNT ( * )
----
82

query I rowsort
SELECT DISTINCT - 96 * + - 15 AS col1
----
1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8606
SELECT 95 * - CASE + + 50 WHEN - + 26 THEN - 83 WHEN - 16 * + - MAX( 27 ) + + COUNT( * ) + - 19 * COUNT( * ) + + 14 * - 90 + - MIN( DISTINCT + - ( + 33 ) ) THEN + - 15 WHEN + 80 * + COUNT( ALL - 61 ) THEN - 44 / + 5 * - + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8606
SELECT 95 * - CASE + + 50 WHEN - + 26 THEN - 83 WHEN - 16 * + - MAX ( 27 ) + + COUNT ( * ) + - 19 * COUNT ( * ) + + 14 * - 90 + - MIN ( DISTINCT + - ( + 33 ) ) THEN + - 15 WHEN + 80 * + COUNT ( ALL - 61 ) THEN - 44 / + 5 * - + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - 79 * - 98
----
7742

query I rowsort
SELECT DISTINCT + 24 * 70 * - 41
----
-68880

query I rowsort
SELECT 75 - - + 72 AS col0
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT 85 - + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT 85 - + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT ALL SUM( DISTINCT - 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL SUM ( DISTINCT - 42 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8612
SELECT DISTINCT + 89 + + ( - + COUNT( * ) ), 91 AS col0
----
88
91

skipif mysql # not compatible
query II rowsort label-8612
SELECT DISTINCT + 89 + + ( - + COUNT ( * ) ), 91 AS col0
----
88
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT DISTINCT - COUNT( * ) + - 86 + + 74 * 24 AS col2
----
1689

skipif mysql # not compatible
query I rowsort label-8613
SELECT DISTINCT - COUNT ( * ) + - 86 + + 74 * 24 AS col2
----
1689

query I rowsort
SELECT 10 * - 75 * - 50
----
37500

query I rowsort
SELECT ALL 0 * + 70
----
0

query I rowsort
SELECT DISTINCT 9 - - 43 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT ALL - COUNT( * ) * - 69 * COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL - COUNT ( * ) * - 69 * COUNT ( * ) AS col1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8618
SELECT - 10 DIV + ( - 92 ) + - + 0
----
0

skipif mysql # not compatible
query I rowsort label-8618
SELECT - 10 / + ( - 92 ) + - + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8619
SELECT DISTINCT - + 50 AS col0, + 44 * - 11 * COUNT( * ) AS col0
----
-50
-484

skipif mysql # not compatible
query II rowsort label-8619
SELECT DISTINCT - + 50 AS col0, + 44 * - 11 * COUNT ( * ) AS col0
----
-50
-484

query II rowsort
SELECT ALL - 31 AS col1, 65 AS col0
----
-31
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8621
SELECT DISTINCT CAST( NULL AS SIGNED ) / 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 64
----
NULL

query I rowsort
SELECT ALL - 93 * 36 + 9 - + + 70 AS col0
----
-3409

onlyif mysql # DIV for integer division: 
query I rowsort label-8623
SELECT ALL - - ( 23 ) DIV + 15 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL - - ( 23 ) / + 15 AS col1
----
1

query I rowsort
SELECT + 6 * 47 + 40 + 40
----
362

query I rowsort
SELECT ALL 57 * + 57
----
3249

query II rowsort
SELECT ALL + 21 col0, ( + ( - 59 ) ) + + 35 + - 87
----
21
-111

query I rowsort
SELECT + 94 * - 42 - + NULLIF ( + ( 19 ), 34 )
----
-3967

query I rowsort
SELECT ALL - 52 + - 55 AS col1
----
-107

query I rowsort
SELECT ALL + 41 * + - 10 - + 63 AS col1
----
-473

query I rowsort
SELECT + 55 * ( + - ( - - 24 ) ) AS col0
----
-1320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8631
SELECT 4 AS col2, 78 + + ( + - COUNT( * ) ) - - ( - CAST( NULL AS SIGNED ) ) + - + 92 / - + CAST( NULL AS SIGNED ) + + 10 * + 70 AS col0
----
4
NULL

skipif mysql # not compatible
query II rowsort label-8631
SELECT 4 AS col2, 78 + + ( + - COUNT ( * ) ) - - ( - CAST ( NULL AS INTEGER ) ) + - + 92 / - + CAST ( NULL AS INTEGER ) + + 10 * + 70 AS col0
----
4
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8632
SELECT ALL 37 + + 34 + 13 DIV + CAST( + 23 AS SIGNED ) * + - NULLIF ( + 10, CASE + - 86 WHEN + 96 THEN + COUNT( * ) ELSE NULL END ) * - 3 - 34 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL 37 + + 34 + 13 / + CAST ( + 23 AS INTEGER ) * + - NULLIF ( + 10, CASE + - 86 WHEN + 96 THEN + COUNT ( * ) ELSE NULL END ) * - 3 - 34 AS col1
----
37

query I rowsort
SELECT + 19 * + 56 AS col0
----
1064

query I rowsort
SELECT ALL 84 + + 28 AS col0
----
112

query II rowsort
SELECT DISTINCT 27, 14 AS col2
----
27
14

query I rowsort
SELECT + 54 + - + ( + 31 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT ALL - NULLIF ( + 95, - COUNT( * ) * + 0 ) * + 96 + + 14 col1
----
-9106

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL - NULLIF ( + 95, - COUNT ( * ) * + 0 ) * + 96 + + 14 col1
----
-9106

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT DISTINCT SUM( + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT SUM ( + 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT ALL CASE 47 WHEN + 86 + - + SUM( + 12 ) * + 92 THEN NULL WHEN - COUNT( * ) * - + 26 THEN + + 17 - 62 - - ( + + ( 29 ) ) * + 14 * + + MIN( ALL - 45 ) * + 98 / 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL CASE 47 WHEN + 86 + - + SUM ( + 12 ) * + 92 THEN NULL WHEN - COUNT ( * ) * - + 26 THEN + + 17 - 62 - - ( + + ( 29 ) ) * + 14 * + + MIN ( ALL - 45 ) * + 98 / 79 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT DISTINCT CASE - - 57 WHEN COUNT( * ) + + + 59 + + 48 * + - 50 THEN + ( COUNT( * ) ) * NULLIF ( + 86, + + 77 + 83 ) END + AVG ( 84 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT DISTINCT CASE - - 57 WHEN COUNT ( * ) + + + 59 + + 48 * + - 50 THEN + ( COUNT ( * ) ) * NULLIF ( + 86, + + 77 + 83 ) END + AVG ( 84 ) AS col0
----
NULL

query I rowsort
SELECT ALL 30 * - 38 col2
----
-1140

query II rowsort
SELECT 85, 6 AS col0
----
85
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT - COUNT( * ) + - COUNT( * ) - + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-8643
SELECT - COUNT ( * ) + - COUNT ( * ) - + COUNT ( * )
----
-3

query I rowsort
SELECT DISTINCT - NULLIF ( 27, - 85 / + 59 ) * - + 55 AS col2
----
1485

query I rowsort
SELECT ALL + 76 * 41 * + 29
----
90364

query I rowsort
SELECT + 30 + 71
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8647
SELECT - 88 DIV + COUNT( * ) col0
----
-88

skipif mysql # not compatible
query I rowsort label-8647
SELECT - 88 / + COUNT ( * ) col0
----
-88

query I rowsort
SELECT - 94 * 24 col1
----
-2256

query I rowsort
SELECT - 6 + + + 83 + + 23
----
100

query I rowsort
SELECT ALL 70 * - - 81
----
5670

onlyif mysql # aggregate syntax: 
query II rowsort label-8651
SELECT ALL - COUNT( * ) AS col1, - 99
----
-1
-99

skipif mysql # not compatible
query II rowsort label-8651
SELECT ALL - COUNT ( * ) AS col1, - 99
----
-1
-99

query I rowsort
SELECT - 99 * + + 72 AS col0
----
-7128

query I rowsort
SELECT - - 52 + - + 65 col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8654
SELECT ALL - CASE - + CAST( - COALESCE ( 82, - MIN( - - 29 ) * + - 15 + + 26 ) AS SIGNED ) WHEN 25 + SUM( DISTINCT - 33 ) + - 54 + - 58 THEN - 4 WHEN + - 18 THEN + SUM( + CAST( NULL AS SIGNED ) ) / - AVG ( DISTINCT + 42 ) END AS col0, + CAST( 8 AS SIGNED ) AS col2
----
NULL
8

skipif mysql # not compatible
query II rowsort label-8654
SELECT ALL - CASE - + CAST ( - COALESCE ( 82, - MIN ( - - 29 ) * + - 15 + + 26 ) AS INTEGER ) WHEN 25 + SUM ( DISTINCT - 33 ) + - 54 + - 58 THEN - 4 WHEN + - 18 THEN + SUM ( + CAST ( NULL AS INTEGER ) ) / - AVG ( DISTINCT + 42 ) END AS col0, + CAST ( 8 AS INTEGER ) AS col2
----
NULL
8

query II rowsort
SELECT ALL + + 82 AS col2, - ( + 64 ) * - 29 + - ( + 8 ) AS col2
----
82
1848

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8656
SELECT 70 AS col2, MAX( ALL + 82 ) DIV - + 8 AS col1
----
70
-10

skipif mysql # not compatible
query II rowsort label-8656
SELECT 70 AS col2, MAX ( ALL + 82 ) / - + 8 AS col1
----
70
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8657
SELECT + - COUNT( * ) DIV - - 52 + 98
----
98

skipif mysql # not compatible
query I rowsort label-8657
SELECT + - COUNT ( * ) / - - 52 + 98
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8658
SELECT 7, COUNT( * ) AS col2
----
7
1

skipif mysql # not compatible
query II rowsort label-8658
SELECT 7, COUNT ( * ) AS col2
----
7
1

query I rowsort
SELECT - - ( - 28 ) * - 58 * - 79
----
-128296

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT + - 2 + - 20 + + 47 + 91 + + + MAX( - 97 ) * - 91 * + - 17 AS col0
----
-149943

skipif mysql # not compatible
query I rowsort label-8660
SELECT + - 2 + - 20 + + 47 + 91 + + + MAX ( - 97 ) * - 91 * + - 17 AS col0
----
-149943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8661
SELECT ALL - + 50 * + CAST( NULL AS SIGNED ) * + COUNT( * ) * + 7 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL - + 50 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 7 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT + COALESCE ( + ( + + COALESCE ( + COUNT( * ), 77 ) ), - 90, + COUNT( * ), CASE + + 74 WHEN + 0 THEN - 32 + - 19 WHEN - 25 * + 73 + + NULLIF ( - 67, 91 ) THEN NULL END + + - 97 ) + 31
----
32

skipif mysql # not compatible
query I rowsort label-8662
SELECT + COALESCE ( + ( + + COALESCE ( + COUNT ( * ), 77 ) ), - 90, + COUNT ( * ), CASE + + 74 WHEN + 0 THEN - 32 + - 19 WHEN - 25 * + 73 + + NULLIF ( - 67, 91 ) THEN NULL END + + - 97 ) + 31
----
32

query I rowsort
SELECT - 2 * - 39 + 82
----
160

query II rowsort
SELECT - 16 AS col2, 16 AS col0
----
-16
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8665
SELECT DISTINCT 8 * + COUNT( * ) + 44 + - CAST( - + 78 AS SIGNED ) + + ( NULLIF ( + + CASE - 52 WHEN ( - 2 ) * - 54 THEN + + 93 WHEN - 98 - + 72 - - + 29 + + 20 THEN + - 91 END, + CAST( NULL AS SIGNED ) * + ( 8 ) ) ) * - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT 8 * + COUNT ( * ) + 44 + - CAST ( - + 78 AS INTEGER ) + + ( NULLIF ( + + CASE - 52 WHEN ( - 2 ) * - 54 THEN + + 93 WHEN - 98 - + 72 - - + 29 + + 20 THEN + - 91 END, + CAST ( NULL AS INTEGER ) * + ( 8 ) ) ) * - 23 AS col0
----
NULL

query I rowsort
SELECT - + ( + 42 ) * + - 62 - 17 * 33
----
2043

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT ALL - COUNT( * ) * 95 * + 52 + + NULLIF ( + 25, CASE 84 WHEN COUNT( * ) THEN NULL ELSE + - 85 END ) + + MAX( + 50 ) + COUNT( * )
----
-4864

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL - COUNT ( * ) * 95 * + 52 + + NULLIF ( + 25, CASE 84 WHEN COUNT ( * ) THEN NULL ELSE + - 85 END ) + + MAX ( + 50 ) + COUNT ( * )
----
-4864

onlyif mysql # DIV for integer division: 
query I rowsort label-8668
SELECT + 91 DIV + + 34 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8668
SELECT + 91 / + + 34 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT - NULLIF ( + - 95, COUNT( * ) ) * + 51
----
4845

skipif mysql # not compatible
query I rowsort label-8669
SELECT - NULLIF ( + - 95, COUNT ( * ) ) * + 51
----
4845

onlyif mysql # DIV for integer division: 
query I rowsort label-8670
SELECT DISTINCT + 61 DIV - - 82
----
0

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT + 61 / - - 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8671
SELECT DISTINCT SUM( ALL + 12 ) AS col0, + COALESCE ( + NULLIF ( - - COUNT( * ), 7 * MAX( - 15 ) / + + NULLIF ( - ( - - 57 ), MIN( ALL + 72 ) / CASE - 62 WHEN - CAST( 1 AS SIGNED ) THEN + 51 END ) - + MAX( - + 58 ) ), + 44 * - + 85 * 10 + - CAST( - 66 AS SIGNED ) ) col0
----
12
1

skipif mysql # not compatible
query II rowsort label-8671
SELECT DISTINCT SUM ( ALL + 12 ) AS col0, + COALESCE ( + NULLIF ( - - COUNT ( * ), 7 * MAX ( - 15 ) / + + NULLIF ( - ( - - 57 ), MIN ( ALL + 72 ) / CASE - 62 WHEN - CAST ( 1 AS INTEGER ) THEN + 51 END ) - + MAX ( - + 58 ) ), + 44 * - + 85 * 10 + - CAST ( - 66 AS INTEGER ) ) col0
----
12
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT DISTINCT COUNT( * ) * - 87 + + - 51 * - 46
----
2259

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT COUNT ( * ) * - 87 + + - 51 * - 46
----
2259

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8673
SELECT - CAST( NULL AS DECIMAL ) + - COUNT( - 0 ) * + 37 + 4 * + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT - CAST ( NULL AS REAL ) + - COUNT ( - 0 ) * + 37 + 4 * + 71 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8674
SELECT - CAST( - 70 AS SIGNED ), 25 AS col1
----
70
25

skipif mysql # not compatible
query II rowsort label-8674
SELECT - CAST ( - 70 AS INTEGER ), 25 AS col1
----
70
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT - CASE + + ( ( + COUNT( * ) ) ) WHEN - 51 THEN NULL WHEN - - 31 + 38 THEN - 26 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT - CASE + + ( ( + COUNT ( * ) ) ) WHEN - 51 THEN NULL WHEN - - 31 + 38 THEN - 26 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT + 12 * COUNT( ALL + + 19 )
----
12

skipif mysql # not compatible
query I rowsort label-8676
SELECT + 12 * COUNT ( ALL + + 19 )
----
12

query I rowsort
SELECT + 89 - - + COALESCE ( - + 48, + - 62, - - ( + 37 ) )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT + 65 + ( - COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-8678
SELECT + 65 + ( - COUNT ( * ) )
----
64

query I rowsort
SELECT + 82 * + + 32 AS col2
----
2624

query II rowsort
SELECT DISTINCT + 99 * + 82 AS col2, + 33 - + 24
----
8118
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT - - CASE + 10 WHEN + 45 THEN 56 WHEN - 74 + - COUNT( * ) + 53 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT - - CASE + 10 WHEN + 45 THEN 56 WHEN - 74 + - COUNT ( * ) + 53 THEN NULL END
----
NULL

query I rowsort
SELECT - - 23 - - 93 AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL COALESCE ( - + COUNT( * ), + 74, + 85 + - - 8 + + 12 + + COUNT( * ) + - 20 + 38 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL COALESCE ( - + COUNT ( * ), + 74, + 85 + - - 8 + + 12 + + COUNT ( * ) + - 20 + 38 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT DISTINCT - ( - 97 ) * 23 - - COUNT( * )
----
2232

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT - ( - 97 ) * 23 - - COUNT ( * )
----
2232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8685
SELECT + COUNT( * ) - 78 DIV + 36
----
-1

skipif mysql # not compatible
query I rowsort label-8685
SELECT + COUNT ( * ) - 78 / + 36
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT + CASE MAX( ALL + + 47 ) WHEN + 63 / + + 50 + MIN( DISTINCT 8 ) + + COALESCE ( + ( + + 64 ), - - 36 ) THEN - 11 * - 29 END / - + 61 - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT + CASE MAX ( ALL + + 47 ) WHEN + 63 / + + 50 + MIN ( DISTINCT 8 ) + + COALESCE ( + ( + + 64 ), - - 36 ) THEN - 11 * - 29 END / - + 61 - 33 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8687
SELECT ALL + NULLIF ( COUNT( NULLIF ( 34, + 83 * - + 62 + - 86 + - 9 + 33 + + 16 ) ), + COALESCE ( + CAST( NULL AS SIGNED ), COALESCE ( - COALESCE ( + + COUNT( ALL 84 ), + - 98 + + 71, - 54 ), - + 83 * 65, - + 96 ), - 47 + 71, + CASE ( - COALESCE ( + 33, - - 57 * COUNT( * ) - - 90 * + 63 ) ) WHEN + 13 * - 55 THEN - 24 / + 0 * + 36 + MAX( ALL 86 + - 28 ) ELSE NULL END ) ) * - 21
----
-21

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL + NULLIF ( COUNT ( NULLIF ( 34, + 83 * - + 62 + - 86 + - 9 + 33 + + 16 ) ), + COALESCE ( + CAST ( NULL AS INTEGER ), COALESCE ( - COALESCE ( + + COUNT ( ALL 84 ), + - 98 + + 71, - 54 ), - + 83 * 65, - + 96 ), - 47 + 71, + CASE ( - COALESCE ( + 33, - - 57 * COUNT ( * ) - - 90 * + 63 ) ) WHEN + 13 * - 55 THEN - 24 / + 0 * + 36 + MAX ( ALL 86 + - 28 ) ELSE NULL END ) ) * - 21
----
-21

query I rowsort
SELECT + 59 * 69 * + 25
----
101775

query I rowsort
SELECT ( ( + NULLIF ( 57, + 40 ) ) )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8690
SELECT - 33 * - + 77 + - SUM( DISTINCT 81 ) + ( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT - 33 * - + 77 + - SUM ( DISTINCT 81 ) + ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT + MAX( ALL + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8691
SELECT + MAX ( ALL + 61 ) AS col2
----
61

query II rowsort
SELECT ALL - ( + 5 ) col0, - 40 + 29 AS col2
----
-5
-11

query I rowsort
SELECT DISTINCT - 23 * - 66
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT ALL - 65 + - SUM( ALL 1 )
----
-66

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL - 65 + - SUM ( ALL 1 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT + - COALESCE ( + COALESCE ( + + 24, + - 81 ), + 12, - COUNT( * ) ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-8695
SELECT + - COALESCE ( + COALESCE ( + + 24, + - 81 ), + 12, - COUNT ( * ) ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL - - COUNT( * ) + - - 15 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL - - COUNT ( * ) + - - 15 AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8697
SELECT 79 DIV 12 * + 43 - - 12 + - 48 + CASE WHEN NOT 23 <= - 63 THEN + COUNT( * ) END + + 51 AS col1
----
274

skipif mysql # not compatible
query I rowsort label-8697
SELECT 79 / 12 * + 43 - - 12 + - 48 + CASE WHEN NOT 23 <= - 63 THEN + COUNT ( * ) END + + 51 AS col1
----
274

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT - ( - NULLIF ( - NULLIF ( 81, - 0 ), + 80 * + - 76 * - + SUM( - + 76 ) ) )
----
-81

skipif mysql # not compatible
query I rowsort label-8698
SELECT - ( - NULLIF ( - NULLIF ( 81, - 0 ), + 80 * + - 76 * - + SUM ( - + 76 ) ) )
----
-81

query I rowsort
SELECT + + 97 * - - 46 + ( + 90 ) - 69 * + 57 AS col1
----
619

query I rowsort
SELECT 53 * - 52 AS col2
----
-2756

query II rowsort
SELECT + 22 * - 47 + + 40 + NULLIF ( 11, 52 * 95 ) AS col1, + 90
----
-983
90

query I rowsort
SELECT ALL - - 43 + 89 + - 11 * - + 41 AS col1
----
583

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT - ( COUNT( * ) ) + + 62 * 71
----
4401

skipif mysql # not compatible
query I rowsort label-8703
SELECT - ( COUNT ( * ) ) + + 62 * 71
----
4401

query II rowsort
SELECT 29 col0, 10 AS col2
----
29
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8705
SELECT DISTINCT + 75 * + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT + 75 * + + CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT ALL - 20 + + + 87 * + 65, + 79 AS col2
----
5635
79

query II rowsort
SELECT + 19, 45 AS col0
----
19
45

query I rowsort
SELECT 20 + - 16 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8709
SELECT 23, CAST( + - 9 AS SIGNED ) AS col2
----
23
-9

skipif mysql # not compatible
query II rowsort label-8709
SELECT 23, CAST ( + - 9 AS INTEGER ) AS col2
----
23
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT DISTINCT - MIN( DISTINCT + + 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT - MIN ( DISTINCT + + 32 ) AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-8711
SELECT 0 DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8711
SELECT 0 / 88 AS col1
----
0

query I rowsort
SELECT 10 + + ( 27 ) AS col1
----
37

query II rowsort
SELECT DISTINCT 43 AS col2, - 63
----
43
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT COALESCE ( + + 93, - 85 ) * - NULLIF ( - - 88, + - 54 * 1 * + SUM( ALL + 1 ) ) AS col0
----
-8184

skipif mysql # not compatible
query I rowsort label-8714
SELECT COALESCE ( + + 93, - 85 ) * - NULLIF ( - - 88, + - 54 * 1 * + SUM ( ALL + 1 ) ) AS col0
----
-8184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8715
SELECT ALL + COALESCE ( 22, - COUNT( * ) ) DIV + 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL + COALESCE ( 22, - COUNT ( * ) ) / + 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8716
SELECT COUNT( * ) * + ( 22 ) AS col2, 97
----
22
97

skipif mysql # not compatible
query II rowsort label-8716
SELECT COUNT ( * ) * + ( 22 ) AS col2, 97
----
22
97

query I rowsort
SELECT 16 + + 53 AS col0
----
69

query II rowsort
SELECT - 8 AS col0, + ( + - 71 )
----
-8
-71

query I rowsort
SELECT + ( + 80 ) + + ( + 93 ) * - - 42 AS col2
----
3986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT - CAST( NULL AS SIGNED ) * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT - CAST ( NULL AS INTEGER ) * - 6
----
NULL

query I rowsort
SELECT - 90 * - 29
----
2610

query I rowsort
SELECT ALL 60 * - 48 AS col0
----
-2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8723
SELECT - SUM( + - CAST( - 42 AS SIGNED ) ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8723
SELECT - SUM ( + - CAST ( - 42 AS INTEGER ) ) AS col1
----
-42

query II rowsort
SELECT DISTINCT 22 + + + 44 + + 65 AS col2, 44 AS col1
----
131
44

query I rowsort
SELECT ALL - 69 + - 82
----
-151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8726
SELECT ALL - NULLIF ( + COALESCE ( + + 83, + + COUNT( * ) * + + 7 DIV - ( - 67 ) ), 63 )
----
-83

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL - NULLIF ( + COALESCE ( + + 83, + + COUNT ( * ) * + + 7 / - ( - 67 ) ), 63 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL + SUM( - - 58 ) + 36
----
94

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL + SUM ( - - 58 ) + 36
----
94

query I rowsort
SELECT DISTINCT - 36 + + 24 AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8729
SELECT ALL + + 83 + + CASE + 92 WHEN 56 THEN COUNT( * ) WHEN 39 * + CAST( NULL AS SIGNED ) THEN NULL END * + CASE + - 92 WHEN 11 * + 94 THEN + - 75 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL + + 83 + + CASE + 92 WHEN 56 THEN COUNT ( * ) WHEN 39 * + CAST ( NULL AS INTEGER ) THEN NULL END * + CASE + - 92 WHEN 11 * + 94 THEN + - 75 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8730
SELECT 29 + + + NULLIF ( SUM( - 34 ), CAST( - AVG ( DISTINCT + - CAST( + 53 AS SIGNED ) ) AS SIGNED ) )
----
-5

skipif mysql # not compatible
query I rowsort label-8730
SELECT 29 + + + NULLIF ( SUM ( - 34 ), CAST ( - AVG ( DISTINCT + - CAST ( + 53 AS INTEGER ) ) AS INTEGER ) )
----
-5

query I rowsort
SELECT - CASE + - 16 WHEN + 86 THEN - 24 END AS col0
----
NULL

query I rowsort
SELECT - 6 + + - 15 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT DISTINCT - CASE + 4 WHEN COUNT( * ) * + 16 / 80 - + + 40 + + + 71 - + ( COUNT( * ) ) THEN + + NULLIF ( + - MIN( - + 66 ), 4 + - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT - CASE + 4 WHEN COUNT ( * ) * + 16 / 80 - + + 40 + + + 71 - + ( COUNT ( * ) ) THEN + + NULLIF ( + - MIN ( - + 66 ), 4 + - COUNT ( * ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8734
SELECT ALL CASE - + 52 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - + COUNT( * ) END + - 39
----
-40

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL CASE - + 52 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - + COUNT ( * ) END + - 39
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-8735
SELECT + + 24 AS col0, COUNT( * ) AS col0
----
24
1

skipif mysql # not compatible
query II rowsort label-8735
SELECT + + 24 AS col0, COUNT ( * ) AS col0
----
24
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT 68 + + COUNT( * ) + + - CASE - 61 WHEN - + 40 THEN NULL WHEN 41 THEN 97 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8736
SELECT 68 + + COUNT ( * ) + + - CASE - 61 WHEN - + 40 THEN NULL WHEN 41 THEN 97 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 20 + - 21
----
-41

query II rowsort
SELECT DISTINCT + - 78 * NULLIF ( + CASE 80 WHEN - - 66 + 19 THEN - + 72 WHEN + - 9 + + 9 THEN NULL WHEN + + 49 THEN NULL ELSE NULL END, 70 * + 79 * NULLIF ( - 14, + - 96 ) - + 25 ) AS col0, + 84 AS col2
----
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT ALL 61 * + SUM( ALL - 47 )
----
-2867

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL 61 * + SUM ( ALL - 47 )
----
-2867

query I rowsort
SELECT DISTINCT 20 - - - 45 + 87
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL + 17 * - ( + + COUNT( * ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL + 17 * - ( + + COUNT ( * ) ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT DISTINCT + SUM( DISTINCT + 0 ) * + 26 * + 11
----
0

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT + SUM ( DISTINCT + 0 ) * + 26 * + 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL + COUNT( * ) * - + 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL + COUNT ( * ) * - + 7 AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8744
SELECT COUNT( * ) DIV + 73 AS col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-8744
SELECT COUNT ( * ) / + 73 AS col0, COUNT ( * )
----
0
1

query I rowsort
SELECT 45 - 63 AS col1
----
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-8746
SELECT 25 DIV 12 AS col0, - 77 AS col0
----
2
-77

skipif mysql # not compatible
query II rowsort label-8746
SELECT 25 / 12 AS col0, - 77 AS col0
----
2
-77

query I rowsort
SELECT 61 * 69 * - 65 AS col1
----
-273585

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL - SUM( ALL - 39 ) + + 30
----
69

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL - SUM ( ALL - 39 ) + + 30
----
69

query I rowsort
SELECT + 88 * - - 94
----
8272

onlyif mysql # DIV for integer division: 
query I rowsort label-8750
SELECT ALL + 9 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL + 9 / 43
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8751
SELECT - ( - COUNT( * ) ) DIV - CAST( + 93 AS SIGNED ) col0, 63
----
0
63

skipif mysql # not compatible
query II rowsort label-8751
SELECT - ( - COUNT ( * ) ) / - CAST ( + 93 AS INTEGER ) col0, 63
----
0
63

query I rowsort
SELECT ALL - - 27 + - - 68
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8753
SELECT DISTINCT - CAST( - 95 AS SIGNED ) + + 71 - 65 * - + COUNT( ALL + 39 ) * - + 40 * + 3 AS col0
----
-7634

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT - CAST ( - 95 AS INTEGER ) + + 71 - 65 * - + COUNT ( ALL + 39 ) * - + 40 * + 3 AS col0
----
-7634

query I rowsort
SELECT ALL 94 + + ( + - 68 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT - NULLIF ( + ( - 3 ), - + SUM( ALL + 25 ) * - 58 * 51 )
----
3

skipif mysql # not compatible
query I rowsort label-8755
SELECT - NULLIF ( + ( - 3 ), - + SUM ( ALL + 25 ) * - 58 * 51 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8756
SELECT ALL - 83 + - 71 + + 21 DIV - 68 * 61 col1
----
-154

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL - 83 + - 71 + + 21 / - 68 * 61 col1
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT - - MIN( 54 ) - - 65 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-8757
SELECT - - MIN ( 54 ) - - 65 AS col0
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8758
SELECT + 27 * - 85 * - NULLIF ( 82, - CAST( NULL AS SIGNED ) )
----
188190

skipif mysql # not compatible
query I rowsort label-8758
SELECT + 27 * - 85 * - NULLIF ( 82, - CAST ( NULL AS INTEGER ) )
----
188190

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT DISTINCT + MAX( ALL 58 ) * + + 19 - - 15 AS col1
----
1117

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT + MAX ( ALL 58 ) * + + 19 - - 15 AS col1
----
1117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8760
SELECT DISTINCT + 64 * - + CAST( 33 AS SIGNED ) + + COALESCE ( + 81, - 95 ) + 87 + - 8 * 59 - - COUNT( * ) DIV 26 col1
----
-2416

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT + 64 * - + CAST ( 33 AS INTEGER ) + + COALESCE ( + 81, - 95 ) + 87 + - 8 * 59 - - COUNT ( * ) / 26 col1
----
-2416

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT + 93 * ( COUNT( * ) ) * - 55 AS col1
----
-5115

skipif mysql # not compatible
query I rowsort label-8761
SELECT + 93 * ( COUNT ( * ) ) * - 55 AS col1
----
-5115

onlyif mysql # DIV for integer division: 
query I rowsort label-8762
SELECT - 49 DIV + 46 - - - 93 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8762
SELECT - 49 / + 46 - - - 93 AS col1
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8763
SELECT ALL 14 DIV COUNT( * ) * - + 17 AS col0
----
-238

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL 14 / COUNT ( * ) * - + 17 AS col0
----
-238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8764
SELECT 93 * - ( ( - COUNT( * ) ) ) * + + CAST( NULL AS SIGNED ) + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT 93 * - ( ( - COUNT ( * ) ) ) * + + CAST ( NULL AS INTEGER ) + 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT + 37 * + 99 * - + MIN( + + 25 ) * - - 8 + - SUM( 57 )
----
-732657

skipif mysql # not compatible
query I rowsort label-8765
SELECT + 37 * + 99 * - + MIN ( + + 25 ) * - - 8 + - SUM ( 57 )
----
-732657

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8766
SELECT + COUNT( * ) DIV - - 74 + + 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8766
SELECT + COUNT ( * ) / - - 74 + + 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-8767
SELECT - 86 * + SUM( 38 ) * - 97 * 13 + + 1 AS col0, 44
----
4120949
44

skipif mysql # not compatible
query II rowsort label-8767
SELECT - 86 * + SUM ( 38 ) * - 97 * 13 + + 1 AS col0, 44
----
4120949
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT COALESCE ( ( 32 ), - 13, ( + + 32 ), 88 + + NULLIF ( + 85, 96 * + SUM( ALL 47 ) + + + 75 - - COUNT( * ) + + SUM( 33 ) + + 52 * + 37 / + + 65 + - COUNT( * ) * + COUNT( DISTINCT 49 ) * + 3 ) + - 24 )
----
32

skipif mysql # not compatible
query I rowsort label-8768
SELECT COALESCE ( ( 32 ), - 13, ( + + 32 ), 88 + + NULLIF ( + 85, 96 * + SUM ( ALL 47 ) + + + 75 - - COUNT ( * ) + + SUM ( 33 ) + + 52 * + 37 / + + 65 + - COUNT ( * ) * + COUNT ( DISTINCT 49 ) * + 3 ) + - 24 )
----
32

query I rowsort
SELECT - 78 * 48 AS col0
----
-3744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8770
SELECT + 90 + - COUNT( * ) + + 98 * 24 DIV - 17 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-8770
SELECT + 90 + - COUNT ( * ) + + 98 * 24 / - 17 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT ALL + SUM( - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL + SUM ( - 60 )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8772
SELECT + 66 + 6 DIV 78 col1
----
66

skipif mysql # not compatible
query I rowsort label-8772
SELECT + 66 + 6 / 78 col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT + 83 * - + COUNT( * ) col2
----
-83

skipif mysql # not compatible
query I rowsort label-8773
SELECT + 83 * - + COUNT ( * ) col2
----
-83

query II rowsort
SELECT 31 * 35 + + 54 AS col0, - 85
----
1139
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8775
SELECT ALL - 58 DIV COUNT( * ) * 17
----
-986

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL - 58 / COUNT ( * ) * 17
----
-986

query I rowsort
SELECT + ( - - 64 ) AS col1
----
64

query II rowsort
SELECT ALL + 71 AS col2, 90 AS col2
----
71
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT ALL - 10 * 62 + 41 + - - COUNT( * ) * + 38 * - 45 AS col0
----
-2289

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL - 10 * 62 + 41 + - - COUNT ( * ) * + 38 * - 45 AS col0
----
-2289

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT - 48 * + MAX( + - 97 ) + + 18 + - + 43 + - 77 AS col1
----
4554

skipif mysql # not compatible
query I rowsort label-8779
SELECT - 48 * + MAX ( + - 97 ) + + 18 + - + 43 + - 77 AS col1
----
4554

query I rowsort
SELECT + 47 * + + 60 * + 58 AS col2
----
163560

query I rowsort
SELECT + ( + 15 ) AS col2
----
15

query I rowsort
SELECT - 12 + - - 36 * 97
----
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT MIN( + 20 ) col0
----
20

skipif mysql # not compatible
query I rowsort label-8783
SELECT MIN ( + 20 ) col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT - 88 + MAX( - 23 ) + - 67
----
-178

skipif mysql # not compatible
query I rowsort label-8784
SELECT - 88 + MAX ( - 23 ) + - 67
----
-178

query I rowsort
SELECT ALL + ( 27 ) * + - 19 + - 20
----
-533

query I rowsort
SELECT + ( + + 9 ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8787
SELECT DISTINCT COALESCE ( - 33, + - 69 - - 9, - 68 + + COUNT( * ) ) * - + CASE - + 6 WHEN ( ( - + ( + 97 ) ) ) * + 0 + - CAST( NULL AS SIGNED ) THEN + COALESCE ( + 35, + 32, - + MAX( DISTINCT - 75 ) ) ELSE + 4 + - + COUNT( - 77 ) + - + MIN( + - 10 ) END + - + 19 - + 13 + - 56
----
341

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT COALESCE ( - 33, + - 69 - - 9, - 68 + + COUNT ( * ) ) * - + CASE - + 6 WHEN ( ( - + ( + 97 ) ) ) * + 0 + - CAST ( NULL AS INTEGER ) THEN + COALESCE ( + 35, + 32, - + MAX ( DISTINCT - 75 ) ) ELSE + 4 + - + COUNT ( - 77 ) + - + MIN ( + - 10 ) END + - + 19 - + 13 + - 56
----
341

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8788
SELECT ALL + CAST( + 18 AS SIGNED ) + 17 AS col1, - 79
----
35
-79

skipif mysql # not compatible
query II rowsort label-8788
SELECT ALL + CAST ( + 18 AS INTEGER ) + 17 AS col1, - 79
----
35
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-8789
SELECT - - 92 DIV + ( + 97 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8789
SELECT - - 92 / + ( + 97 ) AS col2
----
0

query I rowsort
SELECT ALL - 86 + + 70 + + 0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT - NULLIF ( - 6, 19 ) + + 55 + - + MAX( + 78 ) * + MAX( 29 ) AS col1
----
-2201

skipif mysql # not compatible
query I rowsort label-8791
SELECT - NULLIF ( - 6, 19 ) + + 55 + - + MAX ( + 78 ) * + MAX ( 29 ) AS col1
----
-2201

query I rowsort
SELECT - NULLIF ( - 63, 83 - - - 63 ) + + 69 * + 1
----
132

query I rowsort
SELECT + 11 - + - 68
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT DISTINCT ( + MIN( - 74 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT ( + MIN ( - 74 ) )
----
-74

query I rowsort
SELECT - + 65 + + 94
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8796
SELECT DISTINCT + + COUNT( * ) DIV 51 * 46
----
0

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT + + COUNT ( * ) / 51 * 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT DISTINCT + COALESCE ( MIN( + + 39 ), + 64 ) * - - 61
----
2379

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT + COALESCE ( MIN ( + + 39 ), + 64 ) * - - 61
----
2379

query I rowsort
SELECT - 96 * + + 42 AS col1
----
-4032

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT + 2 + + COALESCE ( + + COUNT( * ), + ( + 17 ) ) * + 87 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-8799
SELECT + 2 + + COALESCE ( + + COUNT ( * ), + ( + 17 ) ) * + 87 AS col0
----
89

query I rowsort
SELECT + 19 * - 70 AS col2
----
-1330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8801
SELECT DISTINCT + CAST( - 87 AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT + CAST ( - 87 AS INTEGER ) AS col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8802
SELECT DISTINCT 13 DIV - + COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT 13 / - + COUNT ( * ) AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8803
SELECT DISTINCT + 83 DIV + + 6 + COALESCE ( + CAST( NULL AS SIGNED ), + 34 * + 80, + - 0 * + COUNT( ALL + 71 ) * COUNT( DISTINCT - 67 ) - 65 * + 21 DIV COUNT( DISTINCT - + COALESCE ( ( + 69 ), + 42 ) ) DIV + 7 * 84 ) * + 76 - + + 70
----
206663

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT + 83 / + + 6 + COALESCE ( + CAST ( NULL AS INTEGER ), + 34 * + 80, + - 0 * + COUNT ( ALL + 71 ) * COUNT ( DISTINCT - 67 ) - 65 * + 21 / COUNT ( DISTINCT - + COALESCE ( ( + 69 ), + 42 ) ) / + 7 * 84 ) * + 76 - + + 70
----
206663

onlyif mysql # aggregate syntax: 
query II rowsort label-8804
SELECT + NULLIF ( - 17, + 93 * - - 37 ) AS col2, ( - - MAX( - - 96 ) )
----
-17
96

skipif mysql # not compatible
query II rowsort label-8804
SELECT + NULLIF ( - 17, + 93 * - - 37 ) AS col2, ( - - MAX ( - - 96 ) )
----
-17
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8805
SELECT DISTINCT + 33 DIV + ( - - COALESCE ( + + 86, 23 ) ) + 63 + - 55 DIV ( + - 65 ) + 54 col2
----
117

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT + 33 / + ( - - COALESCE ( + + 86, 23 ) ) + 63 + - 55 / ( + - 65 ) + 54 col2
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8806
SELECT ALL - 50 DIV - 85 * + 22 * 84 * SUM( - ( + + ( - 13 ) ) ) + 7
----
7

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL - 50 / - 85 * + 22 * 84 * SUM ( - ( + + ( - 13 ) ) ) + 7
----
7

query I rowsort
SELECT ( - ( - 20 ) )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8808
SELECT + 83 DIV + 60, COUNT( 64 )
----
1
1

skipif mysql # not compatible
query II rowsort label-8808
SELECT + 83 / + 60, COUNT ( 64 )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT + 0 - - ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT + 0 - - ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT ALL 12 * - + CAST( + ( + 53 ) AS SIGNED ) AS col0
----
-636

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL 12 * - + CAST ( + ( + 53 ) AS INTEGER ) AS col0
----
-636

query I rowsort
SELECT DISTINCT 47 + 61 + + + 7 col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT + + MAX( DISTINCT 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-8812
SELECT + + MAX ( DISTINCT 60 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT DISTINCT COUNT( * ) + + 81 * + 32 AS col2
----
2593

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT COUNT ( * ) + + 81 * + 32 AS col2
----
2593

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT - ( - 60 ) + - COUNT( * ) + + + 34
----
93

skipif mysql # not compatible
query I rowsort label-8814
SELECT - ( - 60 ) + - COUNT ( * ) + + + 34
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT DISTINCT 29 - - COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT 29 - - COUNT ( * ) AS col0
----
30

query I rowsort
SELECT ALL ( - NULLIF ( 89, 65 ) )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8817
SELECT - - 74 col0, 45 + + 53 * - - 6 DIV COUNT( * ) DIV 6 AS col2
----
74
98

skipif mysql # not compatible
query II rowsort label-8817
SELECT - - 74 col0, 45 + + 53 * - - 6 / COUNT ( * ) / 6 AS col2
----
74
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT ALL - - 5 * + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL - - 5 * + COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT DISTINCT + MIN( ALL + + 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT + MIN ( ALL + + 76 ) AS col2
----
76

query I rowsort
SELECT DISTINCT - + 79 * + 59 AS col2
----
-4661

query II rowsort
SELECT 10, 56 - - + 5 AS col0
----
10
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT - ( - NULLIF ( ( 86 ), - COUNT( * ) ) ) * COUNT( * ) + + 35 - - 70
----
191

skipif mysql # not compatible
query I rowsort label-8822
SELECT - ( - NULLIF ( ( 86 ), - COUNT ( * ) ) ) * COUNT ( * ) + + 35 - - 70
----
191

query I rowsort
SELECT 1 - + ( - 81 )
----
82

query II rowsort
SELECT 20 * - 73 col1, - 70 col2
----
-1460
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8825
SELECT ALL + CAST( + 29 AS SIGNED ) DIV 17 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL + CAST ( + 29 AS INTEGER ) / 17 AS col2
----
1

query I rowsort
SELECT 58 * + - ( + 45 ) - + 22 + 27
----
-2605

query I rowsort
SELECT DISTINCT 72 + - 18
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT DISTINCT - ( + 6 ) + - CASE - + 3 WHEN + ( - 52 ) + - 77 THEN NULL WHEN + MAX( DISTINCT 60 ) THEN 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8828
SELECT DISTINCT - ( + 6 ) + - CASE - + 3 WHEN + ( - 52 ) + - 77 THEN NULL WHEN + MAX ( DISTINCT 60 ) THEN 62 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8829
SELECT 67 * + 9 + + + SUM( DISTINCT - 98 ) + + COALESCE ( - + 31, + - 31 + - 30 ) - + 0 + + CAST( - 63 AS SIGNED ) * - + COUNT( + 85 ) AS col2
----
537

skipif mysql # not compatible
query I rowsort label-8829
SELECT 67 * + 9 + + + SUM ( DISTINCT - 98 ) + + COALESCE ( - + 31, + - 31 + - 30 ) - + 0 + + CAST ( - 63 AS INTEGER ) * - + COUNT ( + 85 ) AS col2
----
537

query I rowsort
SELECT ALL - 95 + - 16 + 27 - + 96 AS col2
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8831
SELECT - 40 DIV - MAX( ALL + 64 ) + + 52 * + COUNT( * ) * - + COUNT( * ) * + MIN( DISTINCT - - 85 ) + - - 90 + + MIN( DISTINCT 6 ) AS col2
----
-4324

skipif mysql # not compatible
query I rowsort label-8831
SELECT - 40 / - MAX ( ALL + 64 ) + + 52 * + COUNT ( * ) * - + COUNT ( * ) * + MIN ( DISTINCT - - 85 ) + - - 90 + + MIN ( DISTINCT 6 ) AS col2
----
-4324

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT ALL 71 + - COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL 71 + - COUNT ( * ) AS col2
----
70

query I rowsort
SELECT 45 + 44 AS col1
----
89

query I rowsort
SELECT ALL - ( 79 ) + - ( 28 ) AS col1
----
-107

query I rowsort
SELECT DISTINCT + 77 * 32 * - 41
----
-101024

query I rowsort
SELECT + 58 * - 75 * + - 50 + + 16 + + - 60
----
217456

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL + SUM( + 61 ) + + 6 + 36
----
103

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL + SUM ( + 61 ) + + 6 + 36
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT MIN( DISTINCT 67 ) * - 99 + ( - 87 ) AS col2
----
-6720

skipif mysql # not compatible
query I rowsort label-8838
SELECT MIN ( DISTINCT 67 ) * - 99 + ( - 87 ) AS col2
----
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT ALL CASE + + 9 WHEN ( + COUNT( - 17 ) ) * 46 * - - 54 THEN + 62 WHEN + COUNT( * ) THEN NULL ELSE NULL END * - + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL CASE + + 9 WHEN ( + COUNT ( - 17 ) ) * 46 * - - 54 THEN + 62 WHEN + COUNT ( * ) THEN NULL ELSE NULL END * - + 13
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8840
SELECT - COUNT( * ) + - - 10 + + 18 - - 39 + 64 DIV 96 * - + 95 * 37 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8840
SELECT - COUNT ( * ) + - - 10 + + 18 - - 39 + 64 / 96 * - + 95 * 37 AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8841
SELECT ALL 18 - COALESCE ( + CASE + 6 WHEN 43 THEN NULL WHEN + + 5 / - + 79 THEN + 18 + - + CAST( + + NULLIF ( COALESCE ( + - 86, 72 - AVG ( - ( - - ( - 36 ) ) ), 24 ), - - 64 / COUNT( * ) + + 99 ) AS SIGNED ) END, - + 30, - 80 ) * + 8 * + MAX( + 9 )
----
2178

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL 18 - COALESCE ( + CASE + 6 WHEN 43 THEN NULL WHEN + + 5 / - + 79 THEN + 18 + - + CAST ( + + NULLIF ( COALESCE ( + - 86, 72 - AVG ( - ( - - ( - 36 ) ) ), 24 ), - - 64 / COUNT ( * ) + + 99 ) AS INTEGER ) END, - + 30, - 80 ) * + 8 * + MAX ( + 9 )
----
2178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT - COUNT( 40 ) * + - COUNT( * ) - ( ( + - 69 ) ) * + CAST( - 17 AS SIGNED ) AS col2
----
-1172

skipif mysql # not compatible
query I rowsort label-8842
SELECT - COUNT ( 40 ) * + - COUNT ( * ) - ( ( + - 69 ) ) * + CAST ( - 17 AS INTEGER ) AS col2
----
-1172

query I rowsort
SELECT ALL + 70 * 57
----
3990

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8844
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, 2 * - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8844
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, 2 * - CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT ALL + 76 * - + 79 * + 75 * 86 + 89 AS col0
----
-38725711

onlyif mysql # DIV for integer division: 
query I rowsort label-8846
SELECT 68 DIV + + 5 col1
----
13

skipif mysql # not compatible
query I rowsort label-8846
SELECT 68 / + + 5 col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8847
SELECT ALL + CASE - COUNT( * ) WHEN + 49 + - COUNT( DISTINCT - - 65 ) * 6 + + 4 * + CAST( NULL AS SIGNED ) * ( + 8 ) * - 79 THEN - 61 WHEN - 38 * + 87 - + CAST( NULL AS SIGNED ) * + - 39 THEN 13 WHEN + 52 THEN + - 20 END / + NULLIF ( - + 22, - AVG ( ALL - 95 ) - + - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL + CASE - COUNT ( * ) WHEN + 49 + - COUNT ( DISTINCT - - 65 ) * 6 + + 4 * + CAST ( NULL AS INTEGER ) * ( + 8 ) * - 79 THEN - 61 WHEN - 38 * + 87 - + CAST ( NULL AS INTEGER ) * + - 39 THEN 13 WHEN + 52 THEN + - 20 END / + NULLIF ( - + 22, - AVG ( ALL - 95 ) - + - 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8848
SELECT 98 + + 82, + SUM( - 84 ) col2
----
180
-84

skipif mysql # not compatible
query II rowsort label-8848
SELECT 98 + + 82, + SUM ( - 84 ) col2
----
180
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT CASE - + COUNT( * ) WHEN + 15 THEN 85 END + + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT CASE - + COUNT ( * ) WHEN + 15 THEN 85 END + + - 72
----
NULL

query I rowsort
SELECT COALESCE ( - 44, + 8, 36 + - + 29, 4 ) + + 88
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8851
SELECT ALL 10, 76 * + MAX( + 46 ) * - ( - - 62 ) AS col1
----
10
-216752

skipif mysql # not compatible
query II rowsort label-8851
SELECT ALL 10, 76 * + MAX ( + 46 ) * - ( - - 62 ) AS col1
----
10
-216752

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT COUNT( * ) + + - 67
----
-66

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT COUNT ( * ) + + - 67
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8853
SELECT ALL + SUM( 7 ) * - - COUNT( DISTINCT + 58 ) * NULLIF ( ( + 88 ), ( 69 ) ) - - + CAST( NULL AS SIGNED ) / + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + SUM ( 7 ) * - - COUNT ( DISTINCT + 58 ) * NULLIF ( ( + 88 ), ( 69 ) ) - - + CAST ( NULL AS INTEGER ) / + 98
----
NULL

query II rowsort
SELECT ALL COALESCE ( - 72, + 24 ) + - - 67, 79 AS col2
----
-5
79

query I rowsort
SELECT DISTINCT 7 + 94 AS col1
----
101

query I rowsort
SELECT ALL - 99 + - + 82 - 75
----
-256

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8857
SELECT 45 + - COALESCE ( - + CAST( + 48 AS SIGNED ), + - 88 DIV 35 * 51 )
----
93

skipif mysql # not compatible
query I rowsort label-8857
SELECT 45 + - COALESCE ( - + CAST ( + 48 AS INTEGER ), + - 88 / 35 * 51 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT ALL - COUNT( * ) + + 65 + - - MIN( - 30 ) + + + 60 + 21 + + 26
----
141

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL - COUNT ( * ) + + 65 + - - MIN ( - 30 ) + + + 60 + 21 + + 26
----
141

query I rowsort
SELECT ALL + 72 * 45 AS col2
----
3240

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8860
SELECT ( - 43 ) DIV COUNT( * ), + 58 AS col2
----
-43
58

skipif mysql # not compatible
query II rowsort label-8860
SELECT ( - 43 ) / COUNT ( * ), + 58 AS col2
----
-43
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8861
SELECT 55 + - NULLIF ( - MAX( ALL 22 ), CASE WHEN NOT ( NULL ) IS NULL THEN - + 89 END ), 25 * + COALESCE ( + + 29, + 39 ) AS col2
----
77
725

skipif mysql # not compatible
query II rowsort label-8861
SELECT 55 + - NULLIF ( - MAX ( ALL 22 ), CASE WHEN NOT ( NULL ) IS NULL THEN - + 89 END ), 25 * + COALESCE ( + + 29, + 39 ) AS col2
----
77
725

query I rowsort
SELECT + NULLIF ( ( 4 ), 91 + - 9 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT NULLIF ( + ( COUNT( * ) ), - 64 )
----
1

skipif mysql # not compatible
query I rowsort label-8863
SELECT NULLIF ( + ( COUNT ( * ) ), - 64 )
----
1

query I rowsort
SELECT NULLIF ( 79, + 27 + + 93 * - ( + 9 ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT COALESCE ( + 53, 78 * + 24 + + 59, + MIN( + 59 ) + - COUNT( * ) )
----
53

skipif mysql # not compatible
query I rowsort label-8865
SELECT COALESCE ( + 53, 78 * + 24 + + 59, + MIN ( + 59 ) + - COUNT ( * ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ALL COUNT( * ) * - ( + 60 ) * - + 73 + COUNT( * )
----
4381

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL COUNT ( * ) * - ( + 60 ) * - + 73 + COUNT ( * )
----
4381

query II rowsort
SELECT + 46 AS col0, 46 col0
----
46
46

query I rowsort
SELECT DISTINCT 58 * - + ( 95 )
----
-5510

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT DISTINCT 72 * - 3 * COUNT( * ) - 57 - - COUNT( * ) AS col1
----
-272

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT 72 * - 3 * COUNT ( * ) - 57 - - COUNT ( * ) AS col1
----
-272

query II rowsort
SELECT + 80 AS col2, - 95 col1
----
80
-95

query I rowsort
SELECT DISTINCT + 57 * + 42
----
2394

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT + COUNT( + 38 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8872
SELECT + COUNT ( + 38 ) col0
----
1

query I rowsort
SELECT ALL + - 30 * - 1 AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8874
SELECT - + ( + COUNT( * ) ) - - 44 * - + COALESCE ( + + 20, - 87 * + ( + CAST( + 10 AS SIGNED ) ) * - - 48 + + + 95 DIV COALESCE ( + 70, + 14 * COUNT( * ) ) ) - 13 + 93 - + 37 DIV - - 67 * 34 AS col1
----
-801

skipif mysql # not compatible
query I rowsort label-8874
SELECT - + ( + COUNT ( * ) ) - - 44 * - + COALESCE ( + + 20, - 87 * + ( + CAST ( + 10 AS INTEGER ) ) * - - 48 + + + 95 / COALESCE ( + 70, + 14 * COUNT ( * ) ) ) - 13 + 93 - + 37 / - - 67 * 34 AS col1
----
-801

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT ALL + SUM( ALL - + 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL + SUM ( ALL - + 81 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8876
SELECT DISTINCT + - ( - - CAST( + - 42 AS SIGNED ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT + - ( - - CAST ( + - 42 AS INTEGER ) ) AS col2
----
42

query II rowsort
SELECT - 21 * - 6 + 67 AS col2, 73 * - - 19
----
193
1387

query I rowsort
SELECT + - 3 + - 28 + - + 65 + 99 * + 73
----
7131

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8879
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + + 96 + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8879
SELECT DISTINCT CAST ( NULL AS REAL ) / + + 96 + - 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT ALL - 64 * + 72 * - - COUNT( ALL + 50 ) + 43
----
-4565

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL - 64 * + 72 * - - COUNT ( ALL + 50 ) + 43
----
-4565

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT MAX( ALL - 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-8881
SELECT MAX ( ALL - 64 ) AS col0
----
-64

query I rowsort
SELECT + ( + 66 ) * 14
----
924

query I rowsort
SELECT + + 84 + - + 40 + + + ( - + 62 ) * - 14
----
912

query I rowsort
SELECT DISTINCT - 20 + - 65 AS col0
----
-85

query I rowsort
SELECT ALL + 62 + + 0 col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT - NULLIF ( + - 40, - CASE - 43 WHEN + 38 THEN - + SUM( - 42 ) WHEN - - 63 THEN NULL END )
----
40

skipif mysql # not compatible
query I rowsort label-8886
SELECT - NULLIF ( + - 40, - CASE - 43 WHEN + 38 THEN - + SUM ( - 42 ) WHEN - - 63 THEN NULL END )
----
40

query I rowsort
SELECT ALL 49 + - 21 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT DISTINCT NULLIF ( - - NULLIF ( 69, - 28 * + NULLIF ( + 76, + ( 31 ) * - NULLIF ( - 17, + 75 ) / COUNT( * ) + + 54 ) * - - 81 + COUNT( * ) + + 66 + 76 * 98 + + + ( - COUNT( * ) ) ), - 35 ) + 12
----
81

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT NULLIF ( - - NULLIF ( 69, - 28 * + NULLIF ( + 76, + ( 31 ) * - NULLIF ( - 17, + 75 ) / COUNT ( * ) + + 54 ) * - - 81 + COUNT ( * ) + + 66 + 76 * 98 + + + ( - COUNT ( * ) ) ), - 35 ) + 12
----
81

query I rowsort
SELECT DISTINCT 66 * + 19 AS col0
----
1254

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT ALL COALESCE ( + ( 31 ), - COUNT( * ) - 11 * + ( - 60 ) * 72 - - 27 + 6 ) + - + 97
----
-66

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL COALESCE ( + ( 31 ), - COUNT ( * ) - 11 * + ( - 60 ) * 72 - - 27 + 6 ) + - + 97
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8891
SELECT - NULLIF ( + 77, - NULLIF ( + - 3, + 56 ) * - + 42 + 68 * - + 23 * + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + - COUNT( * ) )
----
-77

skipif mysql # not compatible
query I rowsort label-8891
SELECT - NULLIF ( + 77, - NULLIF ( + - 3, + 56 ) * - + 42 + 68 * - + 23 * + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + - COUNT ( * ) )
----
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-8892
SELECT + 13 DIV + + NULLIF ( - 67, - 16 ) AS col2, 24
----
0
24

skipif mysql # not compatible
query II rowsort label-8892
SELECT + 13 / + + NULLIF ( - 67, - 16 ) AS col2, 24
----
0
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8893
SELECT + 25 - + 51 DIV - COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-8893
SELECT + 25 - + 51 / - COUNT ( * ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8894
SELECT - ( - - COUNT( * ) ), 10 AS col0
----
-1
10

skipif mysql # not compatible
query II rowsort label-8894
SELECT - ( - - COUNT ( * ) ), 10 AS col0
----
-1
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8895
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) - + + 2 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) - + + 2 AS col0
----
-1

query I rowsort
SELECT DISTINCT + 23 * - 86 AS col1
----
-1978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8897
SELECT ALL 29 * COALESCE ( + CAST( 71 AS SIGNED ), + + NULLIF ( COUNT( * ), + 47 ) + + 4 + + 57 + 40 * - 19 * - COUNT( * ), - 91 + 81 ) AS col1
----
2059

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL 29 * COALESCE ( + CAST ( 71 AS INTEGER ), + + NULLIF ( COUNT ( * ), + 47 ) + + 4 + + 57 + 40 * - 19 * - COUNT ( * ), - 91 + 81 ) AS col1
----
2059

query II rowsort
SELECT + 35 * + - 57 AS col0, 25 AS col1
----
-1995
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT + 62 * - 45 - CAST( - 38 AS SIGNED )
----
-2752

skipif mysql # not compatible
query I rowsort label-8899
SELECT + 62 * - 45 - CAST ( - 38 AS INTEGER )
----
-2752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8900
SELECT 64 / - ( - - CASE CAST( + 64 AS SIGNED ) WHEN + + NULLIF ( + + 82, + 94 ) THEN NULL WHEN + - COUNT( * ) THEN + CAST( + ( + COALESCE ( - - SUM( - 3 ), COUNT( * ) * - - AVG ( + CAST( - 73 AS SIGNED ) ) ) ) AS SIGNED ) END ) + + 21 * - + AVG ( - 48 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8900
SELECT 64 / - ( - - CASE CAST ( + 64 AS INTEGER ) WHEN + + NULLIF ( + + 82, + 94 ) THEN NULL WHEN + - COUNT ( * ) THEN + CAST ( + ( + COALESCE ( - - SUM ( - 3 ), COUNT ( * ) * - - AVG ( + CAST ( - 73 AS INTEGER ) ) ) ) AS INTEGER ) END ) + + 21 * - + AVG ( - 48 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8901
SELECT - COUNT( * ) DIV + 83 AS col0, CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8901
SELECT - COUNT ( * ) / + 83 AS col0, CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT 15 * 86 * + 65 + 59 AS col1
----
83909

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT DISTINCT - 76 DIV + 89 + + + 81
----
81

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT - 76 / + 89 + + + 81
----
81

query I rowsort
SELECT + - COALESCE ( - 80, - - 8 + - ( - 87 ) ) + + 69 AS col2
----
149

query I rowsort
SELECT - + 49 + + 74 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL - + 98 * + COUNT( + 82 ) + + 49 * + - 19 + COUNT( * )
----
-1028

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL - + 98 * + COUNT ( + 82 ) + + 49 * + - 19 + COUNT ( * )
----
-1028

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8907
SELECT - - COUNT( * ) DIV - - 69 * 86 * COUNT( ALL 20 ) + 45 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8907
SELECT - - COUNT ( * ) / - - 69 * 86 * COUNT ( ALL 20 ) + 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT + + COUNT( ALL - - 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8908
SELECT + + COUNT ( ALL - - 37 ) AS col0
----
1

query I rowsort
SELECT - + 57 * - - 89 + 20
----
-5053

query I rowsort
SELECT ALL + 31 * + 43 + - + 49 AS col0
----
1284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT DISTINCT + 81 * + - COALESCE ( - - 48, - 22, - CAST( NULL AS SIGNED ) * - 27 * - + 27, + 32 * 20 ) + - 75
----
-3963

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT + 81 * + - COALESCE ( - - 48, - 22, - CAST ( NULL AS INTEGER ) * - 27 * - + 27, + 32 * 20 ) + - 75
----
-3963

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT DISTINCT MAX( ALL 43 ) col2
----
43

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT MAX ( ALL 43 ) col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT ALL + + COUNT( * ) * + 0 * + - 41 + 89 + 67 * + 69 + - COALESCE ( - 44, + - 53 + + - 94 + + 33 * - 74 )
----
4756

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL + + COUNT ( * ) * + 0 * + - 41 + 89 + 67 * + 69 + - COALESCE ( - 44, + - 53 + + - 94 + + 33 * - 74 )
----
4756

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8914
SELECT ALL - - 64 * + + COUNT( * ) + - 48 * + 7 * + 61 * - ( 21 ) + - + ( 67 ) - + 95 * + + MIN( DISTINCT + 30 ) - + - 87 + + 62 DIV - 58 AS col1, - 87 AS col2
----
427649
-87

skipif mysql # not compatible
query II rowsort label-8914
SELECT ALL - - 64 * + + COUNT ( * ) + - 48 * + 7 * + 61 * - ( 21 ) + - + ( 67 ) - + 95 * + + MIN ( DISTINCT + 30 ) - + - 87 + + 62 / - 58 AS col1, - 87 AS col2
----
427649
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8915
SELECT DISTINCT CAST( + 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT CAST ( + 44 AS INTEGER )
----
44

query I rowsort
SELECT ALL + 99 + 31 AS col0
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8917
SELECT 35 + CAST( + 84 AS SIGNED ) AS col0, 7 AS col2
----
119
7

skipif mysql # not compatible
query II rowsort label-8917
SELECT 35 + CAST ( + 84 AS INTEGER ) AS col0, 7 AS col2
----
119
7

query I rowsort
SELECT DISTINCT 13 * + 85 * - - 71 AS col0
----
78455

onlyif mysql # DIV for integer division: 
query I rowsort label-8919
SELECT DISTINCT - 54 DIV + ( 60 ) * + - 9
----
0

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT - 54 / + ( 60 ) * + - 9
----
0

query II rowsort
SELECT DISTINCT 78, 29 * + + 18 + + + 73 col0
----
78
595

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT ALL 48 * 96 * - MAX( - 86 )
----
396288

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL 48 * 96 * - MAX ( - 86 )
----
396288

query I rowsort
SELECT DISTINCT 94 * + 56
----
5264

query I rowsort
SELECT DISTINCT 53 * + 57
----
3021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8924
SELECT CAST( + COUNT( * ) AS SIGNED ) + + 39 + + 87 + CAST( NULL AS DECIMAL ), + ( + 41 ) col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-8924
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + + 39 + + 87 + CAST ( NULL AS REAL ), + ( + 41 ) col2
----
NULL
41

query I rowsort
SELECT 95 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT CASE + - CASE 67 WHEN 8 THEN + + 6 WHEN 65 + - 1 + - COUNT( * ) * + 49 THEN NULL WHEN + 43 THEN NULL END WHEN + 17 THEN 44 * 85 ELSE NULL END + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT CASE + - CASE 67 WHEN 8 THEN + + 6 WHEN 65 + - 1 + - COUNT ( * ) * + 49 THEN NULL WHEN + 43 THEN NULL END WHEN + 17 THEN 44 * 85 ELSE NULL END + 77 AS col1
----
NULL

query II rowsort
SELECT ALL - 34 AS col2, 71 * - + 4 * + + 23 AS col0
----
-34
-6532

onlyif mysql # aggregate syntax: 
query II rowsort label-8928
SELECT ALL - 40 AS col0, - 25 * - COUNT( * ) * MAX( - 6 ) * 39 + - 93 AS col1
----
-40
-5943

skipif mysql # not compatible
query II rowsort label-8928
SELECT ALL - 40 AS col0, - 25 * - COUNT ( * ) * MAX ( - 6 ) * 39 + - 93 AS col1
----
-40
-5943

query I rowsort
SELECT + ( 89 ) * + 83 AS col1
----
7387

query I rowsort
SELECT 43 * + + 43 AS col2
----
1849

query I rowsort
SELECT ALL - - 62 * ( + 1 ) AS col0
----
62

query I rowsort
SELECT ALL + 47 * - 98
----
-4606

query I rowsort
SELECT - ( - 33 ) * 9 + - 88 AS col0
----
209

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT + - ( + 96 ) DIV + 60 + 50 - - ( + 45 )
----
94

skipif mysql # not compatible
query I rowsort label-8934
SELECT + - ( + 96 ) / + 60 + 50 - - ( + 45 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8935
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT + CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8936
SELECT COALESCE ( 82, - 85 DIV 53 DIV - ( 61 ) * - 65, + + 23 * - NULLIF ( - COUNT( * ), + 19 * - COUNT( * ) + - + 42 * + COUNT( + 16 ) + - 75 + - 64 ), + COALESCE ( + + 56, - 91 ) * - 16 * 63 - + 86 ) * 51 * + 7 * - 16 AS col0
----
-468384

skipif mysql # not compatible
query I rowsort label-8936
SELECT COALESCE ( 82, - 85 / 53 / - ( 61 ) * - 65, + + 23 * - NULLIF ( - COUNT ( * ), + 19 * - COUNT ( * ) + - + 42 * + COUNT ( + 16 ) + - 75 + - 64 ), + COALESCE ( + + 56, - 91 ) * - 16 * 63 - + 86 ) * 51 * + 7 * - 16 AS col0
----
-468384

onlyif mysql # aggregate syntax: 
query II rowsort label-8937
SELECT + 11 AS col1, ( COUNT( * ) )
----
11
1

skipif mysql # not compatible
query II rowsort label-8937
SELECT + 11 AS col1, ( COUNT ( * ) )
----
11
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT MAX( - 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8938
SELECT MAX ( - 78 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT ALL - MAX( 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL - MAX ( 20 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT ALL - 20 + + COUNT( * ) + + 65 - 66 * + ( - - 21 ) * - 28 AS col0
----
38854

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL - 20 + + COUNT ( * ) + + 65 - 66 * + ( - - 21 ) * - 28 AS col0
----
38854

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT ALL 80 + + - 55 * - - 19 + 33 + + COUNT( * ) * + + 79 + + 17 col2
----
-836

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL 80 + + - 55 * - - 19 + 33 + + COUNT ( * ) * + + 79 + + 17 col2
----
-836

query I rowsort
SELECT ALL + 40 + - NULLIF ( - 17, + 49 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8943
SELECT + 33 * + - CAST( + - CASE CASE - 49 WHEN - + 50 + + 50 + - + 33 * - 97 + CAST( + 12 AS SIGNED ) THEN NULL ELSE + 27 + - 11 END WHEN 69 THEN - 23 * + - COALESCE ( + 82, + 40 * + + 90 + CAST( NULL AS SIGNED ) ) / 86 / COUNT( * ) / - 46 WHEN - 38 + + ( - 15 ) THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT + 33 * + - CAST ( + - CASE CASE - 49 WHEN - + 50 + + 50 + - + 33 * - 97 + CAST ( + 12 AS INTEGER ) THEN NULL ELSE + 27 + - 11 END WHEN 69 THEN - 23 * + - COALESCE ( + 82, + 40 * + + 90 + CAST ( NULL AS INTEGER ) ) / 86 / COUNT ( * ) / - 46 WHEN - 38 + + ( - 15 ) THEN NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT 48 - + 11
----
37

query I rowsort
SELECT ALL - 67 - - 40 + + - 44 AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8946
SELECT ALL + CAST( NULL AS SIGNED ) - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL + CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 64 * - 86 * + 13 AS col0
----
-71552

query II rowsort
SELECT 10 AS col2, + 4 - + 62
----
10
-58

query I rowsort
SELECT 38 * - 47 AS col2
----
-1786

query I rowsort
SELECT ALL - 40 * + 2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8951
SELECT ALL 73, - CAST( + 17 AS SIGNED ) AS col0
----
73
-17

skipif mysql # not compatible
query II rowsort label-8951
SELECT ALL 73, - CAST ( + 17 AS INTEGER ) AS col0
----
73
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-8952
SELECT - 74 AS col1, COUNT( * )
----
-74
1

skipif mysql # not compatible
query II rowsort label-8952
SELECT - 74 AS col1, COUNT ( * )
----
-74
1

query I rowsort
SELECT DISTINCT - 50 - 43 AS col2
----
-93

query II rowsort
SELECT - 32 AS col0, + 73 * 18 AS col0
----
-32
1314

query I rowsort
SELECT 44 + - + 98
----
-54

query I rowsort
SELECT 54 * + 97
----
5238

query I rowsort
SELECT 60 - - 23 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT COUNT( 27 ) - + 71 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8958
SELECT COUNT ( 27 ) - + 71 AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8959
SELECT ALL 58 * - + MIN( DISTINCT 84 ) * CAST( NULL AS SIGNED ) * + - 16 * ( + - 83 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL 58 * - + MIN ( DISTINCT 84 ) * CAST ( NULL AS INTEGER ) * + - 16 * ( + - 83 ) AS col0
----
NULL

query I rowsort
SELECT 79 + + + 57
----
136

query II rowsort
SELECT ALL 38, + 23 + + 18 AS col2
----
38
41

query I rowsort
SELECT ALL - - 19 + - 40 AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8963
SELECT DISTINCT + - 56 * + 69 AS col2, ( + - CAST( NULL AS SIGNED ) )
----
-3864
NULL

skipif mysql # not compatible
query II rowsort label-8963
SELECT DISTINCT + - 56 * + 69 AS col2, ( + - CAST ( NULL AS INTEGER ) )
----
-3864
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL - 59 * 35 * - CASE - 27 WHEN - + 39 THEN + NULLIF ( - 18, + 16 ) ELSE NULL END + 50 + - 45 + 26 - - + 82 * + 17 * 52 * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL - 59 * 35 * - CASE - 27 WHEN - + 39 THEN + NULLIF ( - 18, + 16 ) ELSE NULL END + 50 + - 45 + 26 - - + 82 * + 17 * 52 * + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - 35 * - + 85 + + 81
----
3056

query I rowsort
SELECT 88 - 77 + - + 84 AS col2
----
-73

query I rowsort
SELECT ALL + - 28 * 16 + - 35 + - 82 * + 61 + + 45 AS col2
----
-5440

query I rowsort
SELECT 22 * - + 30 AS col1
----
-660

query I rowsort
SELECT 81 * 73
----
5913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8970
SELECT 68 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8970
SELECT 68 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT ALL - NULLIF ( - + 64, - 34 + + + 53 ) * - + 36 + 71 + - CASE - COUNT( * ) WHEN - 55 * + + COUNT( * ) + - COUNT( * ) THEN - ( 48 ) * - 0 * + + 68 * - 0 ELSE 40 * - 55 * 85 - ( + - ( 47 ) ) + 12 END * - - 54 * - + CASE WHEN 80 < - + 16 THEN - 42 / + 95 / - 57 - - - COUNT( * ) + + + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL - NULLIF ( - + 64, - 34 + + + 53 ) * - + 36 + 71 + - CASE - COUNT ( * ) WHEN - 55 * + + COUNT ( * ) + - COUNT ( * ) THEN - ( 48 ) * - 0 * + + 68 * - 0 ELSE 40 * - 55 * 85 - ( + - ( 47 ) ) + 12 END * - - 54 * - + CASE WHEN 80 < - + 16 THEN - 42 / + 95 / - 57 - - - COUNT ( * ) + + + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8972
SELECT + 81 + + - SUM( DISTINCT + 34 ) + + - ( + - CAST( NULL AS SIGNED ) ) * 93 * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT + 81 + + - SUM ( DISTINCT + 34 ) + + - ( + - CAST ( NULL AS INTEGER ) ) * 93 * - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT CASE - 32 WHEN - 64 THEN 4 * + ( COUNT( * ) ) * + - 95 * - 49 + + 27 - + + AVG ( + 10 ) ELSE + ( + 21 ) END AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8973
SELECT CASE - 32 WHEN - 64 THEN 4 * + ( COUNT ( * ) ) * + - 95 * - 49 + + 27 - + + AVG ( + 10 ) ELSE + ( + 21 ) END AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT ( ( 64 ) ) * - 64 + - + COUNT( + 42 ) + 18 + 0 * + 1 + + 76 + + - 7 + + 86 * + + 14 * - 15 * + 56 col1
----
-1015370

skipif mysql # not compatible
query I rowsort label-8974
SELECT ( ( 64 ) ) * - 64 + - + COUNT ( + 42 ) + 18 + 0 * + 1 + + 76 + + - 7 + + 86 * + + 14 * - 15 * + 56 col1
----
-1015370

query II rowsort
SELECT + 40 AS col1, 19 col2
----
40
19

query II rowsort
SELECT ALL - - 73 AS col2, 4 AS col0
----
73
4

query I rowsort
SELECT ALL + + 55 + 47 - + - 37
----
139

query II rowsort
SELECT ALL - 80 AS col0, 51 + - + 6 AS col2
----
-80
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT - 56 + + + MAX( - 16 )
----
-72

skipif mysql # not compatible
query I rowsort label-8979
SELECT - 56 + + + MAX ( - 16 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT COUNT( * ) * - - 79
----
79

skipif mysql # not compatible
query I rowsort label-8980
SELECT COUNT ( * ) * - - 79
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8981
SELECT - COUNT( * ) + + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8981
SELECT - COUNT ( * ) + + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 8 * 71 AS col0
----
568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT DISTINCT NULLIF ( 26, - CASE 41 WHEN + 61 THEN 59 - + CAST( 22 AS SIGNED ) END + 75 * + - 21 - - 26 ) * - - 93 * - ( - 29 )
----
70122

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT NULLIF ( 26, - CASE 41 WHEN + 61 THEN 59 - + CAST ( 22 AS INTEGER ) END + 75 * + - 21 - - 26 ) * - - 93 * - ( - 29 )
----
70122

query I rowsort
SELECT + 54 + - 95
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8985
SELECT ALL + 82 / + MIN( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL + 82 / + MIN ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT - NULLIF ( - + 54, + 67 * AVG ( CASE - 71 WHEN + 26 THEN NULL WHEN - 55 THEN 6 END ) ) * - + COUNT( * ) + + + 35 * 52 + - 95 * + 39 col2
----
-1939

skipif mysql # not compatible
query I rowsort label-8986
SELECT - NULLIF ( - + 54, + 67 * AVG ( CASE - 71 WHEN + 26 THEN NULL WHEN - 55 THEN 6 END ) ) * - + COUNT ( * ) + + + 35 * 52 + - 95 * + 39 col2
----
-1939

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8987
SELECT - NULLIF ( 74, + CAST( NULL AS SIGNED ) ) + 12 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-8987
SELECT - NULLIF ( 74, + CAST ( NULL AS INTEGER ) ) + 12 AS col0
----
-62

query I rowsort
SELECT - 7 * - - 78
----
-546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8989
SELECT DISTINCT 71 DIV + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT 71 / + COUNT ( * )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8990
SELECT - CAST( NULL AS SIGNED ) + - 85 + COUNT( * ) * - NULLIF ( - 30, + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT - CAST ( NULL AS INTEGER ) + - 85 + COUNT ( * ) * - NULLIF ( - 30, + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 73 * - 83 col1
----
-6059

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8992
SELECT + NULLIF ( - 43, + COALESCE ( 77, 65 ) - + NULLIF ( 86, 97 + + 36 - + 33 * 8 ) + ( CAST( NULL AS DECIMAL ) ) * - + ( - + ( - - 26 ) ) * - 49 / - 84 ) + - 13 col2
----
-56

skipif mysql # not compatible
query I rowsort label-8992
SELECT + NULLIF ( - 43, + COALESCE ( 77, 65 ) - + NULLIF ( 86, 97 + + 36 - + 33 * 8 ) + ( CAST ( NULL AS REAL ) ) * - + ( - + ( - - 26 ) ) * - 49 / - 84 ) + - 13 col2
----
-56

query I rowsort
SELECT + 71 * - - 8
----
568

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT - MIN( DISTINCT 57 ) + 36 * + 48 AS col1
----
1671

skipif mysql # not compatible
query I rowsort label-8994
SELECT - MIN ( DISTINCT 57 ) + 36 * + 48 AS col1
----
1671

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT - SUM( ALL + - 84 ) + - 68 + - + 74 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-8995
SELECT - SUM ( ALL + - 84 ) + - 68 + - + 74 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT - 94 - - 90 - + - COUNT( DISTINCT - 72 ) + + + COUNT( * ) * ( + + 34 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8996
SELECT - 94 - - 90 - + - COUNT ( DISTINCT - 72 ) + + + COUNT ( * ) * ( + + 34 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8997
SELECT DISTINCT - 1 * 28 AS col0, + 99 * COUNT( * )
----
-28
99

skipif mysql # not compatible
query II rowsort label-8997
SELECT DISTINCT - 1 * 28 AS col0, + 99 * COUNT ( * )
----
-28
99

query I rowsort
SELECT ALL + 47 + + 22 + + 25
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT - CAST( + + 4 AS SIGNED ) + + 5
----
1

skipif mysql # not compatible
query I rowsort label-8999
SELECT - CAST ( + + 4 AS INTEGER ) + + 5
----
1

query II rowsort
SELECT ALL 29 * 13 AS col1, + 10 AS col1
----
377
10

query I rowsort
SELECT - NULLIF ( - + 92, - 56 + + 64 ) * 93 col0
----
8556

query II rowsort
SELECT ALL ( - 65 ) AS col1, - 88 + + 95 + + + 61
----
-65
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL - - 91 + + + 19 * + NULLIF ( + 8, - ( + + MIN( DISTINCT - - 69 ) ) ) - 63 * - 73 + - + COUNT( * ) - + - 94 * 99 AS col1
----
14147

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL - - 91 + + + 19 * + NULLIF ( + 8, - ( + + MIN ( DISTINCT - - 69 ) ) ) - 63 * - 73 + - + COUNT ( * ) - + - 94 * 99 AS col1
----
14147

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT ALL + COUNT( * ) + + MIN( - 6 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL + COUNT ( * ) + + MIN ( - 6 ) AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9005
SELECT - 16 * 3 - + 91 AS col2, + 6 + + COUNT( * ) - COUNT( * ) DIV + - 10
----
-139
7

skipif mysql # not compatible
query II rowsort label-9005
SELECT - 16 * 3 - + 91 AS col2, + 6 + + COUNT ( * ) - COUNT ( * ) / + - 10
----
-139
7

query II rowsort
SELECT - 85 + + 12 col2, 25 * + 86 col1
----
-73
2150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9007
SELECT ALL + - 79 + - ( + - 37 ) * 48 - - NULLIF ( + 37, - CAST( NULL AS SIGNED ) ) AS col0, 44 AS col0
----
1734
44

skipif mysql # not compatible
query II rowsort label-9007
SELECT ALL + - 79 + - ( + - 37 ) * 48 - - NULLIF ( + 37, - CAST ( NULL AS INTEGER ) ) AS col0, 44 AS col0
----
1734
44

query I rowsort
SELECT - 99 + 83 * - 9
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ALL - COUNT( DISTINCT + 25 ) + + 88
----
87

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL - COUNT ( DISTINCT + 25 ) + + 88
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT + COALESCE ( + ( - + COUNT( * ) ), - 10 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9010
SELECT + COALESCE ( + ( - + COUNT ( * ) ), - 10 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT DISTINCT + SUM( - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT + SUM ( - 95 ) AS col0
----
-95

query I rowsort
SELECT - + 75 * - - 47
----
-3525

query I rowsort
SELECT ALL + - ( 92 ) * - COALESCE ( - 70, 84, - 65, - - 75 )
----
-6440

query I rowsort
SELECT DISTINCT 62 * + 88 + + 10
----
5466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9015
SELECT DISTINCT - 26 * + + ( 13 ) * + + 14 * + + CAST( + ( 82 ) AS SIGNED ) + 14 AS col1
----
-388010

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT - 26 * + + ( 13 ) * + + 14 * + + CAST ( + ( 82 ) AS INTEGER ) + 14 AS col1
----
-388010

onlyif mysql # DIV for integer division: 
query I rowsort label-9016
SELECT DISTINCT + 37 DIV 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT + 37 / 72 AS col0
----
0

query I rowsort
SELECT ALL + 4 * + + 53
----
212

query I rowsort
SELECT - 45 + - 48
----
-93

query I rowsort
SELECT - - 49 * 3 - + 95 AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9020
SELECT ALL + + 3 * 94 * + - COALESCE ( - 92, + - 6 DIV + + 97 * - 85, - + 8 ) - 65 + + 35 AS col0, MAX( DISTINCT - 58 ) AS col2
----
25914
-58

skipif mysql # not compatible
query II rowsort label-9020
SELECT ALL + + 3 * 94 * + - COALESCE ( - 92, + - 6 / + + 97 * - 85, - + 8 ) - 65 + + 35 AS col0, MAX ( DISTINCT - 58 ) AS col2
----
25914
-58

query I rowsort
SELECT - + ( + 86 ) * + + 28
----
-2408

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9022
SELECT + + ( + - COALESCE ( 50, 1, + 10 + + + CASE - COUNT( + 34 ) WHEN - 82 THEN + 95 * - AVG ( + 18 ) * 75 END * + + 58 DIV + + COUNT( * ) ) ), + 64 AS col2
----
-50
64

skipif mysql # not compatible
query II rowsort label-9022
SELECT + + ( + - COALESCE ( 50, 1, + 10 + + + CASE - COUNT ( + 34 ) WHEN - 82 THEN + 95 * - AVG ( + 18 ) * 75 END * + + 58 / + + COUNT ( * ) ) ), + 64 AS col2
----
-50
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT 49 * - + 43 - + COUNT( * ) + 69
----
-2039

skipif mysql # not compatible
query I rowsort label-9023
SELECT 49 * - + 43 - + COUNT ( * ) + 69
----
-2039

query II rowsort
SELECT DISTINCT + 87, 99 + + 66 * + 56 col2
----
87
3795

query II rowsort
SELECT DISTINCT + 96 AS col1, 40 AS col1
----
96
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9026
SELECT DISTINCT 84 * + 0 * + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9026
SELECT DISTINCT 84 * + 0 * + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( 32, - 26 ) * + 45
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT + COUNT( * ) * + 4 * 60 AS col1
----
240

skipif mysql # not compatible
query I rowsort label-9028
SELECT + COUNT ( * ) * + 4 * 60 AS col1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT SUM( ALL - 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9029
SELECT SUM ( ALL - 87 ) AS col0
----
-87

query I rowsort
SELECT DISTINCT 30 * 20 AS col1
----
600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9031
SELECT - CAST( NULL AS SIGNED ) col2, - COALESCE ( + 73, COUNT( * ), + - 14 )
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-9031
SELECT - CAST ( NULL AS INTEGER ) col2, - COALESCE ( + 73, COUNT ( * ), + - 14 )
----
NULL
-73

query I rowsort
SELECT ALL 65 * + - 69
----
-4485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9033
SELECT COUNT( DISTINCT - NULLIF ( - COALESCE ( - NULLIF ( - - ( 33 ), + - 73 ), 25 + - 13 * + ( + 71 ), + 79 ), - 41 / + 36 + - - COALESCE ( - + CAST( NULL AS SIGNED ), - 41 + CAST( NULL AS SIGNED ) + + + 88 + + 71 - 52 * 52, + 97 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9033
SELECT COUNT ( DISTINCT - NULLIF ( - COALESCE ( - NULLIF ( - - ( 33 ), + - 73 ), 25 + - 13 * + ( + 71 ), + 79 ), - 41 / + 36 + - - COALESCE ( - + CAST ( NULL AS INTEGER ), - 41 + CAST ( NULL AS INTEGER ) + + + 88 + + 71 - 52 * 52, + 97 ) ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9034
SELECT - CAST( - MIN( ALL + - 58 ) AS SIGNED ) * 10
----
-580

skipif mysql # not compatible
query I rowsort label-9034
SELECT - CAST ( - MIN ( ALL + - 58 ) AS INTEGER ) * 10
----
-580

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9035
SELECT ALL ( 70 ) * + 92 + - + 0 AS col0, CAST( NULL AS SIGNED ) AS col1
----
6440
NULL

skipif mysql # not compatible
query II rowsort label-9035
SELECT ALL ( 70 ) * + 92 + - + 0 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
6440
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT + ( + 23 ) * - COUNT( ALL - + 30 ) col1
----
-23

skipif mysql # not compatible
query I rowsort label-9036
SELECT + ( + 23 ) * - COUNT ( ALL - + 30 ) col1
----
-23

query I rowsort
SELECT ALL 59 + 44 col1
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9038
SELECT DISTINCT COUNT( * ) + + 45 * + - NULLIF ( COALESCE ( + 64, + 91 DIV + 91 * + - 12 + + 52 + + 22 ), + 37 ) - + ( 46 )
----
-2925

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT COUNT ( * ) + + 45 * + - NULLIF ( COALESCE ( + 64, + 91 / + 91 * + - 12 + + 52 + + 22 ), + 37 ) - + ( 46 )
----
-2925

query I rowsort
SELECT DISTINCT COALESCE ( + NULLIF ( - - 70, - 53 * 63 ), 89 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9040
SELECT DISTINCT 88 + - + CAST( NULL AS SIGNED ) - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9040
SELECT DISTINCT 88 + - + CAST ( NULL AS INTEGER ) - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL COALESCE ( + 78, - COUNT( * ) * - COUNT( * ) + + 68 + 21, + 34 )
----
78

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL COALESCE ( + 78, - COUNT ( * ) * - COUNT ( * ) + + 68 + 21, + 34 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT DISTINCT 82 + - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT 82 + - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT + + 71 + - + MIN( DISTINCT - + 68 )
----
139

skipif mysql # not compatible
query I rowsort label-9043
SELECT + + 71 + - + MIN ( DISTINCT - + 68 )
----
139

query I rowsort
SELECT - + 65 * 47 - 19 + - 67 AS col1
----
-3141

query I rowsort
SELECT ALL - 60 + + + 91
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9046
SELECT ALL - COUNT( * ) + + - CAST( 5 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL - COUNT ( * ) + + - CAST ( 5 AS INTEGER )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT + 36 + + MAX( ALL + - 14 )
----
22

skipif mysql # not compatible
query I rowsort label-9047
SELECT + 36 + + MAX ( ALL + - 14 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT ALL 6 + + + CAST( NULL AS SIGNED ) * + 80 * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL 6 + + + CAST ( NULL AS INTEGER ) * + 80 * - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT - COUNT( * ) + + + 44 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9049
SELECT - COUNT ( * ) + + + 44 AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9050
SELECT ALL CAST( NULL AS SIGNED ) - + 81 - 55 * COUNT( * ) * 32 + - CAST( + MAX( ALL - + 3 ) AS DECIMAL ) / - NULLIF ( + 52, + 4 * + 39 ) + + CASE - ( + + 54 ) WHEN - 73 + - COUNT( * ) - - - 45 THEN NULL WHEN - 92 / - 90 * + NULLIF ( - 67, 64 * COUNT( * ) + - 24 ) THEN 51 END AS col0, - 3 AS col0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-9050
SELECT ALL CAST ( NULL AS INTEGER ) - + 81 - 55 * COUNT ( * ) * 32 + - CAST ( + MAX ( ALL - + 3 ) AS REAL ) / - NULLIF ( + 52, + 4 * + 39 ) + + CASE - ( + + 54 ) WHEN - 73 + - COUNT ( * ) - - - 45 THEN NULL WHEN - 92 / - 90 * + NULLIF ( - 67, 64 * COUNT ( * ) + - 24 ) THEN 51 END AS col0, - 3 AS col0
----
NULL
-3

query I rowsort
SELECT DISTINCT - 8 * - 39
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT ALL - 44 - - MIN( ALL + + 25 ) + 0
----
-19

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL - 44 - - MIN ( ALL + + 25 ) + 0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT ALL + + SUM( ALL + 51 ) * - - 4 * 17 - - NULLIF ( - 33, + 97 )
----
3435

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL + + SUM ( ALL + 51 ) * - - 4 * 17 - - NULLIF ( - 33, + 97 )
----
3435

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT 94 * - + MIN( ALL + 86 ) * - 0 + - - COUNT( * ) + + 95 + 18 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-9054
SELECT 94 * - + MIN ( ALL + 86 ) * - 0 + - - COUNT ( * ) + + 95 + 18 AS col2
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9055
SELECT COUNT( * ) + + 74 + - 57 DIV - + ( - 21 ) + - 22 col2, 56 AS col2
----
51
56

skipif mysql # not compatible
query II rowsort label-9055
SELECT COUNT ( * ) + + 74 + - 57 / - + ( - 21 ) + - 22 col2, 56 AS col2
----
51
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT DISTINCT - SUM( + 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-9056
SELECT DISTINCT - SUM ( + 7 )
----
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9057
SELECT + - 49 * 33 + 72 + - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT + - 49 * 33 + 72 + - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT + 52 * 26 AS col1
----
1352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9059
SELECT 97 * + NULLIF ( CAST( NULL AS SIGNED ), - + 91 ) + - 36 + + 68 / + 37 + CAST( 64 AS SIGNED ) * - COALESCE ( - + 31, - 22 * - 9 + + + COUNT( ALL + - 64 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9059
SELECT 97 * + NULLIF ( CAST ( NULL AS INTEGER ), - + 91 ) + - 36 + + 68 / + 37 + CAST ( 64 AS INTEGER ) * - COALESCE ( - + 31, - 22 * - 9 + + + COUNT ( ALL + - 64 ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9060
SELECT - 5 DIV - 33 + COALESCE ( - + ( + 76 ), - + 78 ) - 14
----
-90

skipif mysql # not compatible
query I rowsort label-9060
SELECT - 5 / - 33 + COALESCE ( - + ( + 76 ), - + 78 ) - 14
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT ALL - + MAX( DISTINCT - - COALESCE ( - 26, 81 ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL - + MAX ( DISTINCT - - COALESCE ( - 26, 81 ) ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9062
SELECT ALL - - COUNT( * ), - 44 AS col1
----
1
-44

skipif mysql # not compatible
query II rowsort label-9062
SELECT ALL - - COUNT ( * ), - 44 AS col1
----
1
-44

query I rowsort
SELECT - 79 + 52 AS col1
----
-27

query II rowsort
SELECT ALL - 89, + ( - 1 ) AS col0
----
-89
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT ALL - CASE + - NULLIF ( + 9, + 71 ) WHEN + + 34 / - 94 - + CAST( NULL AS SIGNED ) + + 95 * ( + 15 ) + + - 56 + + 89 - - 36 THEN NULL WHEN - - 50 THEN NULL ELSE + 19 + - - 49 END AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL - CASE + - NULLIF ( + 9, + 71 ) WHEN + + 34 / - 94 - + CAST ( NULL AS INTEGER ) + + 95 * ( + 15 ) + + - 56 + + 89 - - 36 THEN NULL WHEN - - 50 THEN NULL ELSE + 19 + - - 49 END AS col0
----
-68

query I rowsort
SELECT 44 + + 19
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT DISTINCT - 73 * ( + 86 ) * - COUNT( * ) + 62 AS col0
----
6340

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT - 73 * ( + 86 ) * - COUNT ( * ) + 62 AS col0
----
6340

query I rowsort
SELECT ALL - ( + + 23 ) AS col0
----
-23

query I rowsort
SELECT 54 * + 66
----
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT 92 + - 30 * - - 3 + + COUNT( * ) + + 70 * + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-9070
SELECT 92 + - 30 * - - 3 + + COUNT ( * ) + + 70 * + COUNT ( * )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9071
SELECT ( - COUNT( * ) ) * 30 DIV + 22 + - - 56 * 9 + + 60 + + 3 * 34 * 2
----
767

skipif mysql # not compatible
query I rowsort label-9071
SELECT ( - COUNT ( * ) ) * 30 / + 22 + - - 56 * 9 + + 60 + + 3 * 34 * 2
----
767

query I rowsort
SELECT DISTINCT - 74 + 14 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT ALL ( + ( - 80 ) ) * - 13 * + COALESCE ( - 78, + + MIN( ALL - + 74 ) + + 32 ) + - 60 - - 24
----
-81156

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL ( + ( - 80 ) ) * - 13 * + COALESCE ( - 78, + + MIN ( ALL - + 74 ) + + 32 ) + - 60 - - 24
----
-81156

query I rowsort
SELECT ALL ( + + 3 ) + - 28
----
-25

query I rowsort
SELECT ( 73 ) + 35 AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT COUNT( * ) + + - 94 + - - 32
----
-61

skipif mysql # not compatible
query I rowsort label-9076
SELECT COUNT ( * ) + + - 94 + - - 32
----
-61

query I rowsort
SELECT ALL 17 + - - 77
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT + 67 + + CAST( + 88 AS SIGNED ) col0
----
155

skipif mysql # not compatible
query I rowsort label-9078
SELECT + 67 + + CAST ( + 88 AS INTEGER ) col0
----
155

query I rowsort
SELECT DISTINCT 46 * + + 79 + + + 71
----
3705

onlyif mysql # aggregate syntax: 
query II rowsort label-9080
SELECT ALL 90 - 29 + 34 + - 39 AS col1, CASE + + 4 WHEN - 66 THEN - 35 / - NULLIF ( - + COUNT( * ), ( - 51 ) + + 99 + 50 * + 28 - + AVG ( + 83 ) ) END * - - 5
----
56
NULL

skipif mysql # not compatible
query II rowsort label-9080
SELECT ALL 90 - 29 + 34 + - 39 AS col1, CASE + + 4 WHEN - 66 THEN - 35 / - NULLIF ( - + COUNT ( * ), ( - 51 ) + + 99 + 50 * + 28 - + AVG ( + 83 ) ) END * - - 5
----
56
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9081
SELECT ALL 94 * - + 64 * + CAST( 58 AS SIGNED ) AS col0, CAST( 86 AS SIGNED ) * + 91 col0, + + NULLIF ( + 88, + + 27 * - ( + 87 ) + - ( 46 ) + + 96 + ( + 27 ) )
----
-348928
7826
88

skipif mysql # not compatible
query III rowsort label-9081
SELECT ALL 94 * - + 64 * + CAST ( 58 AS INTEGER ) AS col0, CAST ( 86 AS INTEGER ) * + 91 col0, + + NULLIF ( + 88, + + 27 * - ( + 87 ) + - ( 46 ) + + 96 + ( + 27 ) )
----
-348928
7826
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT ALL - 48 - - + 80 - - COUNT( * ) + + 5
----
38

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL - 48 - - + 80 - - COUNT ( * ) + + 5
----
38

query I rowsort
SELECT DISTINCT + 37 * + - 19 + - 68
----
-771

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT ALL CASE COUNT( 91 ) WHEN - 60 * - + 19 * 92 THEN - 54 + - + 43 - + + 65 + + COUNT( * ) * - 82 WHEN 67 + - 70 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL CASE COUNT ( 91 ) WHEN - 60 * - + 19 * 92 THEN - 54 + - + 43 - + + 65 + + COUNT ( * ) * - 82 WHEN 67 + - 70 THEN NULL END
----
NULL

query I rowsort
SELECT - ( + + 5 ) col1
----
-5

query II rowsort
SELECT ALL 53 - ( + 18 ) + + NULLIF ( - - 48, + 88 * - 96 / ( 68 ) ) AS col0, 28 + 76 AS col2
----
83
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9087
SELECT DISTINCT - 54 / - 61 - CAST( NULL AS SIGNED ) * + + 8 * + 37 * - 45 * ( 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT - 54 / - 61 - CAST ( NULL AS INTEGER ) * + + 8 * + 37 * - 45 * ( 89 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9088
SELECT + NULLIF ( + COUNT( * ), 49 + - 57 * ( COUNT( * ) ) * + MIN( 62 ) + 92 + 78 ) * + + MAX( + - CAST( NULL AS DECIMAL ) ), - MIN( DISTINCT - 59 ) col2
----
NULL
59

skipif mysql # not compatible
query II rowsort label-9088
SELECT + NULLIF ( + COUNT ( * ), 49 + - 57 * ( COUNT ( * ) ) * + MIN ( 62 ) + 92 + 78 ) * + + MAX ( + - CAST ( NULL AS REAL ) ), - MIN ( DISTINCT - 59 ) col2
----
NULL
59

query I rowsort
SELECT ( - - ( ( + 72 ) ) ) + - 15
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9090
SELECT 22 DIV - ( + MIN( ALL 80 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9090
SELECT 22 / - ( + MIN ( ALL 80 ) )
----
0

query I rowsort
SELECT DISTINCT - 21 * + 40
----
-840

query I rowsort
SELECT ALL + 63 * - - 54 * - 53 AS col2
----
-180306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9093
SELECT DISTINCT - COUNT( * ) * + - 81 AS col0, 52 + - CAST( - 75 AS SIGNED ) AS col1
----
81
127

skipif mysql # not compatible
query II rowsort label-9093
SELECT DISTINCT - COUNT ( * ) * + - 81 AS col0, 52 + - CAST ( - 75 AS INTEGER ) AS col1
----
81
127

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT 24 / + - CASE + 70 WHEN + COUNT( * ) / 53 * - 47 + 67 THEN - + 34 * - COUNT( * ) END + + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT 24 / + - CASE + 70 WHEN + COUNT ( * ) / 53 * - 47 + 67 THEN - + 34 * - COUNT ( * ) END + + 86 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 37 * - 34 + + + 78
----
-1180

query I rowsort
SELECT ALL - 2 * - ( - 87 ) AS col1
----
-174

query I rowsort
SELECT DISTINCT - COALESCE ( 99, - 11 ) AS col1
----
-99

query I rowsort
SELECT DISTINCT - 77 + - 92 AS col0
----
-169

onlyif mysql # DIV for integer division: 
query I rowsort label-9099
SELECT - 70 DIV 19 + + NULLIF ( - - 63, + 20 ) + 66 * 2
----
192

skipif mysql # not compatible
query I rowsort label-9099
SELECT - 70 / 19 + + NULLIF ( - - 63, + 20 ) + 66 * 2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT + MIN( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-9100
SELECT + MIN ( 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT 48 + 60 * - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-9101
SELECT 48 + 60 * - COUNT ( * )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9102
SELECT + 12 AS col2, CASE + ( 9 ) WHEN - CAST( NULL AS SIGNED ) - 40 THEN NULL WHEN - + COUNT( * ) * - 23 * ( 79 ) THEN + 75 * + - 82 END + + 84 * - MIN( DISTINCT + + 13 )
----
12
NULL

skipif mysql # not compatible
query II rowsort label-9102
SELECT + 12 AS col2, CASE + ( 9 ) WHEN - CAST ( NULL AS INTEGER ) - 40 THEN NULL WHEN - + COUNT ( * ) * - 23 * ( 79 ) THEN + 75 * + - 82 END + + 84 * - MIN ( DISTINCT + + 13 )
----
12
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9103
SELECT + COUNT( * ) AS col0, + 13
----
1
13

skipif mysql # not compatible
query II rowsort label-9103
SELECT + COUNT ( * ) AS col0, + 13
----
1
13

query I rowsort
SELECT 14 * 90 + + 39
----
1299

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT DISTINCT - 78 + + + MIN( DISTINCT + 19 )
----
-59

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT - 78 + + + MIN ( DISTINCT + 19 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL + COUNT( * ) + + 38
----
39

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL + COUNT ( * ) + + 38
----
39

query I rowsort
SELECT ALL - 60 + 67
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT + 32 * MAX( DISTINCT 65 ) + 72 - - COUNT( * )
----
2153

skipif mysql # not compatible
query I rowsort label-9108
SELECT + 32 * MAX ( DISTINCT 65 ) + 72 - - COUNT ( * )
----
2153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9109
SELECT ALL - CAST( - 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL - CAST ( - 34 AS INTEGER )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT DISTINCT - NULLIF ( - 40, + SUM( 97 ) - - 74 ) * - 63 + + 81
----
-2439

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT - NULLIF ( - 40, + SUM ( 97 ) - - 74 ) * - 63 + + 81
----
-2439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9111
SELECT ALL - 60 + + COALESCE ( - - CAST( + 99 AS SIGNED ), + 40 )
----
39

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL - 60 + + COALESCE ( - - CAST ( + 99 AS INTEGER ), + 40 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT ALL 29 + + MAX( DISTINCT + 20 ) + + SUM( - 38 )
----
11

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL 29 + + MAX ( DISTINCT + 20 ) + + SUM ( - 38 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9113
SELECT 5 * CASE + CAST( NULL AS SIGNED ) WHEN - 78 THEN NULL ELSE 73 END col2, 71 AS col2
----
365
71

skipif mysql # not compatible
query II rowsort label-9113
SELECT 5 * CASE + CAST ( NULL AS INTEGER ) WHEN - 78 THEN NULL ELSE 73 END col2, 71 AS col2
----
365
71

query I rowsort
SELECT NULLIF ( 51, 5 ) * + + 42 * + 48
----
102816

onlyif mysql # aggregate syntax: 
query II rowsort label-9115
SELECT 61 * - SUM( ALL + 64 ) - - 57 + 88 col2, 18
----
-3759
18

skipif mysql # not compatible
query II rowsort label-9115
SELECT 61 * - SUM ( ALL + 64 ) - - 57 + 88 col2, 18
----
-3759
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT DISTINCT MIN( 49 )
----
49

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT MIN ( 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT DISTINCT COUNT( * ) - 10
----
-9

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT COUNT ( * ) - 10
----
-9

query I rowsort
SELECT 7 + 9
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL MIN( - 57 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL MIN ( - 57 ) AS col0
----
-57

query I rowsort
SELECT DISTINCT + ( 34 ) - + 9
----
25

query I rowsort
SELECT DISTINCT 57 * 52 col1
----
2964

query I rowsort
SELECT + 80 * + 59 AS col0
----
4720

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT - 92 + - NULLIF ( 54, COUNT( * ) * - 20 + 60 )
----
-146

skipif mysql # not compatible
query I rowsort label-9123
SELECT - 92 + - NULLIF ( 54, COUNT ( * ) * - 20 + 60 )
----
-146

query I rowsort
SELECT - 68 + 78
----
10

query I rowsort
SELECT + 86 + 61 AS col1
----
147

query I rowsort
SELECT + 44 * - 25
----
-1100

query I rowsort
SELECT + 50 * 50 AS col1
----
2500

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT + 62 + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-9128
SELECT + 62 + - COUNT ( * )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9129
SELECT ALL CASE 84 WHEN - 73 * CASE 40 WHEN + NULLIF ( - 54, ( 78 ) / + 68 ) THEN NULL WHEN - ( - 79 ) + 21 / - 86 THEN 1 END THEN + CASE NULLIF ( 51, - 51 * + 22 ) WHEN 85 THEN + 3 WHEN COUNT( DISTINCT CAST( - 43 AS SIGNED ) ) THEN 76 END WHEN 4 - 50 THEN - 44 + NULLIF ( - 2 + 55 * + 98, - 92 ) WHEN + 33 * + COALESCE ( 57 / 20, + 89 * + 67 ) - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL CASE 84 WHEN - 73 * CASE 40 WHEN + NULLIF ( - 54, ( 78 ) / + 68 ) THEN NULL WHEN - ( - 79 ) + 21 / - 86 THEN 1 END THEN + CASE NULLIF ( 51, - 51 * + 22 ) WHEN 85 THEN + 3 WHEN COUNT ( DISTINCT CAST ( - 43 AS INTEGER ) ) THEN 76 END WHEN 4 - 50 THEN - 44 + NULLIF ( - 2 + 55 * + 98, - 92 ) WHEN + 33 * + COALESCE ( 57 / 20, + 89 * + 67 ) - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - ( + 18 ) * 99 AS col1
----
-1782

query I rowsort
SELECT + 14 + - 33
----
-19

query I rowsort
SELECT - COALESCE ( - 31, - NULLIF ( - 79, - 88 ), 78 )
----
31

query I rowsort
SELECT + ( + CASE 48 WHEN - 46 / 32 THEN - 30 END ) + - 93 AS col0
----
NULL

query I rowsort
SELECT 91 * + 51 + 11
----
4652

onlyif mysql # DIV for integer division: 
query I rowsort label-9135
SELECT 55 DIV 84 + 39
----
39

skipif mysql # not compatible
query I rowsort label-9135
SELECT 55 / 84 + 39
----
39

query I rowsort
SELECT + 78 * 8
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT + MIN( ALL 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9137
SELECT + MIN ( ALL 1 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9138
SELECT DISTINCT 66 * - COUNT( * ) + - 79 / CASE 73 - - ( 28 + - 34 ) WHEN 73 THEN + 5 + 12 WHEN 78 / ( 80 * - MAX( ALL + 3 ) ) + + 37 THEN + 77 * CAST( 32 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT 66 * - COUNT ( * ) + - 79 / CASE 73 - - ( 28 + - 34 ) WHEN 73 THEN + 5 + 12 WHEN 78 / ( 80 * - MAX ( ALL + 3 ) ) + + 37 THEN + 77 * CAST ( 32 AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9139
SELECT ALL ( 37 ) * 98 + NULLIF ( CAST( NULL AS SIGNED ), - 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL ( 37 ) * 98 + NULLIF ( CAST ( NULL AS INTEGER ), - 15 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT + COALESCE ( + 12, COUNT( * ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9140
SELECT + COALESCE ( + 12, COUNT ( * ) ) AS col1
----
12

query I rowsort
SELECT NULLIF ( 20, 30 ) AS col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9142
SELECT ALL 41 * CAST( NULL AS SIGNED ) + ( - 49 + 32 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL 41 * CAST ( NULL AS INTEGER ) + ( - 49 + 32 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 19 * + 99
----
1881

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + + ( 94 ) * 6 AS col1
----
563

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + + ( 94 ) * 6 AS col1
----
563

query I rowsort
SELECT ALL - 56 * - 24
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT CASE - 82 WHEN 38 THEN + MIN( - 15 ) WHEN - 26 + - 23 THEN 9 + - 2 * 69 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9146
SELECT CASE - 82 WHEN 38 THEN + MIN ( - 15 ) WHEN - 26 + - 23 THEN 9 + - 2 * 69 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 51 * - 96 + - 83
----
-4979

query I rowsort
SELECT DISTINCT 65 * - ( + 14 )
----
-910

query I rowsort
SELECT + 88 * 57
----
5016

query I rowsort
SELECT - 94 * - 13 col2
----
1222

query I rowsort
SELECT ALL 0 * - 83 AS col2
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( 7, 45 )
----
7

query I rowsort
SELECT - 70 + - 66 AS col2
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9154
SELECT COALESCE ( - COUNT( * ), 88 * ( CAST( - CASE NULLIF ( + SUM( 22 ), 55 ) WHEN - 55 THEN + 46 / 80 - 56 WHEN + MAX( - 77 ) THEN NULL ELSE NULL END AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9154
SELECT COALESCE ( - COUNT ( * ), 88 * ( CAST ( - CASE NULLIF ( + SUM ( 22 ), 55 ) WHEN - 55 THEN + 46 / 80 - 56 WHEN + MAX ( - 77 ) THEN NULL ELSE NULL END AS INTEGER ) ) )
----
-1

query I rowsort
SELECT ALL + 41 * 70 - - 80 AS col0
----
2950

onlyif mysql # DIV for integer division: 
query I rowsort label-9156
SELECT DISTINCT - ( - 2 ) DIV - 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT - ( - 2 ) / - 4 AS col2
----
0

query I rowsort
SELECT - 52 + 17
----
-35

query I rowsort
SELECT ALL + + 69 * 62
----
4278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9159
SELECT - + 42 + - ( - 90 + - NULLIF ( - 51, CAST( NULL AS SIGNED ) * - 99 + + 5 ) ) * 39 AS col0
----
1479

skipif mysql # not compatible
query I rowsort label-9159
SELECT - + 42 + - ( - 90 + - NULLIF ( - 51, CAST ( NULL AS INTEGER ) * - 99 + + 5 ) ) * 39 AS col0
----
1479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 7 AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( - 45, - 73 ) + + ( 34 ) AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9162
SELECT - CAST( NULL AS DECIMAL ) / - NULLIF ( - 99 + + 95, 20 * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT - CAST ( NULL AS REAL ) / - NULLIF ( - 99 + + 95, 20 * COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + - 77 * 93
----
-7161

query I rowsort
SELECT - 82 * + 17
----
-1394

query I rowsort
SELECT ALL - NULLIF ( - 53, COALESCE ( + 65, ( 17 ) - - 43, 53 ) ) AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9166
SELECT - 9 DIV COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-9166
SELECT - 9 / COUNT ( * )
----
-9

query I rowsort
SELECT - - 16 * + 84 AS col1
----
1344

onlyif mysql # DIV for integer division: 
query I rowsort label-9168
SELECT ALL + + 52 DIV + 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL + + 52 / + 56 AS col0
----
0

query I rowsort
SELECT ALL - 35 + + 1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT - - CASE - 77 WHEN 78 / 15 + - 41 THEN - 5 ELSE + COUNT( * ) * ( 7 ) END / CASE 22 WHEN 47 THEN 34 * + NULLIF ( - AVG ( DISTINCT 57 ) * 66, + 96 ) WHEN + 2 + 20 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9170
SELECT - - CASE - 77 WHEN 78 / 15 + - 41 THEN - 5 ELSE + COUNT ( * ) * ( 7 ) END / CASE 22 WHEN 47 THEN 34 * + NULLIF ( - AVG ( DISTINCT 57 ) * 66, + 96 ) WHEN + 2 + 20 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9171
SELECT ALL CASE 64 WHEN 30 THEN 64 WHEN CAST( 61 AS SIGNED ) * + 29 + ( 51 ) * 27 THEN NULL ELSE NULL END + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL CASE 64 WHEN 30 THEN 64 WHEN CAST ( 61 AS INTEGER ) * + 29 + ( 51 ) * 27 THEN NULL ELSE NULL END + - 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT + COUNT( - 57 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9172
SELECT + COUNT ( - 57 ) * + COUNT ( * )
----
1

query I rowsort
SELECT - 98 * + 73
----
-7154

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT - SUM( - ( 62 ) )
----
62

skipif mysql # not compatible
query I rowsort label-9174
SELECT - SUM ( - ( 62 ) )
----
62

query I rowsort
SELECT DISTINCT - - 47 + 16
----
63

query I rowsort
SELECT + ( - ( + 60 ) )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT - MIN( ALL 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-9177
SELECT - MIN ( ALL 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL 66 + - 56 * COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL 66 + - 56 * COUNT ( * ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9179
SELECT + COALESCE ( - 14, 51, - COUNT( * ) DIV - 7 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9179
SELECT + COALESCE ( - 14, 51, - COUNT ( * ) / - 7 ) AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9180
SELECT DISTINCT 30 / CASE 23 WHEN + 39 * + CAST( NULL AS SIGNED ) THEN + 0 + + 8 ELSE NULL END + + NULLIF ( + COUNT( * ) + ( 94 ), 17 ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT 30 / CASE 23 WHEN + 39 * + CAST ( NULL AS INTEGER ) THEN + 0 + + 8 ELSE NULL END + + NULLIF ( + COUNT ( * ) + ( 94 ), 17 ) / COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9181
SELECT DISTINCT + 7 DIV - 13 * - 58 + 3 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT + 7 / - 13 * - 58 + 3 / + 79
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9182
SELECT ALL - 24 DIV - ( COUNT( * ) ) + - 17 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL - 24 / - ( COUNT ( * ) ) + - 17 AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9183
SELECT + 94 * - 32 DIV COUNT( * )
----
-3008

skipif mysql # not compatible
query I rowsort label-9183
SELECT + 94 * - 32 / COUNT ( * )
----
-3008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9184
SELECT CAST( + 37 AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-9184
SELECT CAST ( + 37 AS INTEGER )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9185
SELECT ALL + ( + 83 ) DIV 5 - 28 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL + ( + 83 ) / 5 - 28 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT 98 * + COUNT( * ) - 41 * + 44
----
-1706

skipif mysql # not compatible
query I rowsort label-9186
SELECT 98 * + COUNT ( * ) - 41 * + 44
----
-1706

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ALL COUNT( * ) * - ( + 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL COUNT ( * ) * - ( + 57 ) AS col2
----
-57

query I rowsort
SELECT - 85 * + 82 * 17 + 92 AS col1
----
-118398

query I rowsort
SELECT + 28 * - 53 AS col1
----
-1484

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT DISTINCT + + MIN( DISTINCT - - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT + + MIN ( DISTINCT - - 77 )
----
77

query I rowsort
SELECT ALL 83 * - + 79 AS col2
----
-6557

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT + - SUM( + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-9192
SELECT + - SUM ( + 6 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9193
SELECT + 80 * + COUNT( * ) + + ( 89 + 42 DIV - 86 ) AS col2
----
169

skipif mysql # not compatible
query I rowsort label-9193
SELECT + 80 * + COUNT ( * ) + + ( 89 + 42 / - 86 ) AS col2
----
169

query I rowsort
SELECT 41 * - 8 col2
----
-328

query I rowsort
SELECT CASE NULLIF ( - 30, - 9 ) WHEN - 68 THEN + AVG ( DISTINCT - 51 ) * 31 WHEN + 28 * + 42 THEN 7 + + 55 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + ( - ( 27 ) ) AS col0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT DISTINCT + 97 + - 34 DIV + ( - 54 )
----
97

skipif mysql # not compatible
query I rowsort label-9197
SELECT DISTINCT + 97 + - 34 / + ( - 54 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT ALL + MIN( ALL 84 ) * COUNT( DISTINCT + 51 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL + MIN ( ALL 84 ) * COUNT ( DISTINCT + 51 ) AS col2
----
84

query I rowsort
SELECT 20 * 4 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL SUM( - 67 ) + 48
----
-19

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL SUM ( - 67 ) + 48
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT + COUNT( * ) - - 65 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9201
SELECT + COUNT ( * ) - - 65 AS col0
----
66

query I rowsort
SELECT ALL + + 58 + + ( 84 )
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT COUNT( * ) + + - 19 + 71
----
53

skipif mysql # not compatible
query I rowsort label-9203
SELECT COUNT ( * ) + + - 19 + 71
----
53

query I rowsort
SELECT + 96 + + 6 + - 0 AS col2
----
102

query I rowsort
SELECT ALL - 23 + + + 22 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9206
SELECT - + CASE - 46 WHEN - ( - 99 ) * + 46 THEN - 34 + + 5 WHEN 66 THEN CAST( - CAST( 15 AS SIGNED ) AS SIGNED ) * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9206
SELECT - + CASE - 46 WHEN - ( - 99 ) * + 46 THEN - 34 + + 5 WHEN 66 THEN CAST ( - CAST ( 15 AS INTEGER ) AS INTEGER ) * COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + + 58 + - + 16 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT - 19 + + CAST( - 30 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-9208
SELECT - 19 + + CAST ( - 30 AS INTEGER )
----
-49

query I rowsort
SELECT - 88 * - NULLIF ( + 79, 98 + 90 ) AS col1
----
6952

query I rowsort
SELECT DISTINCT - 46 + + 51
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9211
SELECT ALL 56, CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-9211
SELECT ALL 56, CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col1
----
56
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9212
SELECT ALL - 1 / - 95 / CASE 84 WHEN 53 * - 63 - 39 * 46 THEN + 44 * - MAX( 3 / 51 ) END * + CAST( - 12 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL - 1 / - 95 / CASE 84 WHEN 53 * - 63 - 39 * 46 THEN + 44 * - MAX ( 3 / 51 ) END * + CAST ( - 12 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 92 + + 30 + - 42 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT ALL COUNT( * ) - - 82 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL COUNT ( * ) - - 82 AS col2
----
83

query I rowsort
SELECT 8 + - - ( - 46 )
----
-38

query I rowsort
SELECT DISTINCT - ( + 40 ) AS col2
----
-40

query I rowsort
SELECT COALESCE ( + + 74, + 55 ) + - 89 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT ALL + COUNT( * ) - CASE - 86 WHEN 1 / 63 + 0 THEN 82 + 56 WHEN 56 THEN + 87 * 47 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL + COUNT ( * ) - CASE - 86 WHEN 1 / 63 + 0 THEN 82 + 56 WHEN 56 THEN + 87 * 47 ELSE NULL END col0
----
NULL

query I rowsort
SELECT 88 * + NULLIF ( 55, - 99 )
----
4840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9220
SELECT 2 * - + 71 / + 92 + - CAST( NULL AS SIGNED ) * - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT 2 * - + 71 / + 92 + - CAST ( NULL AS INTEGER ) * - 49 AS col0
----
NULL

query II rowsort
SELECT ALL - 63 col1, + 81 * + + 4
----
-63
324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9222
SELECT COALESCE ( + - 80, + 29 - 12 DIV COUNT( * ) ) * 31
----
-2480

skipif mysql # not compatible
query I rowsort label-9222
SELECT COALESCE ( + - 80, + 29 - 12 / COUNT ( * ) ) * 31
----
-2480

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT DISTINCT + COUNT( * ) * + - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT + COUNT ( * ) * + - 98 AS col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9224
SELECT ( + 65 ) DIV + 10
----
6

skipif mysql # not compatible
query I rowsort label-9224
SELECT ( + 65 ) / + 10
----
6

query II rowsort
SELECT ALL - 68, - 26 col2
----
-68
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9226
SELECT 57 DIV + + 2 + 55 - COUNT( * ) DIV - COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9226
SELECT 57 / + + 2 + 55 - COUNT ( * ) / - COUNT ( * ) AS col2
----
84

query I rowsort
SELECT 21 * + - 2 - - 77
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9228
SELECT ALL + 71 DIV 57 - + + NULLIF ( 6, 15 DIV + 25 ) * 66 AS col0
----
-395

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL + 71 / 57 - + + NULLIF ( 6, 15 / + 25 ) * 66 AS col0
----
-395

onlyif mysql # DIV for integer division: 
query I rowsort label-9229
SELECT ( + + 56 ) DIV - COALESCE ( - 22, + 72 ) + - 32 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9229
SELECT ( + + 56 ) / - COALESCE ( - 22, + 72 ) + - 32 AS col0
----
-30

query I rowsort
SELECT 96 + 81 + 66 * - 45
----
-2793

onlyif mysql # DIV for integer division: 
query I rowsort label-9231
SELECT DISTINCT - 38 * + COALESCE ( + + 76, - NULLIF ( 45, - 76 ) + + 71, 12 DIV AVG ( DISTINCT + 18 * 5 ) - 78 * - 63 ) AS col1
----
-2888

skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT - 38 * + COALESCE ( + + 76, - NULLIF ( 45, - 76 ) + + 71, 12 / AVG ( DISTINCT + 18 * 5 ) - 78 * - 63 ) AS col1
----
-2888

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT - ( + COALESCE ( - COUNT( * ), 46 ) ) * - 70 + 80 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9232
SELECT - ( + COALESCE ( - COUNT ( * ), 46 ) ) * - 70 + 80 AS col2
----
10

query I rowsort
SELECT ALL ( + + ( - + 46 ) ) + + 55 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT ALL NULLIF ( + 87, 44 * - SUM( 56 * COALESCE ( 81, + 83 ) ) ) * + 98 AS col2
----
8526

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL NULLIF ( + 87, 44 * - SUM ( 56 * COALESCE ( 81, + 83 ) ) ) * + 98 AS col2
----
8526

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - 0 + - 55 + + - MAX( 34 ) + - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-9235
SELECT - 0 + - 55 + + - MAX ( 34 ) + - COUNT ( * )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9236
SELECT ALL - COUNT( - 8 ) + 21 - 79 * ( - ( + 5 ) + + 54 * + 30 ) * NULLIF ( COUNT( * ) DIV 34, - 95 )
----
20

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL - COUNT ( - 8 ) + 21 - 79 * ( - ( + 5 ) + + 54 * + 30 ) * NULLIF ( COUNT ( * ) / 34, - 95 )
----
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9237
SELECT DISTINCT + CASE + 64 WHEN + + CAST( + 71 AS SIGNED ) THEN + 14 + 43 DIV 79 ELSE + 9 END * ( 63 )
----
567

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT + CASE + 64 WHEN + + CAST ( + 71 AS INTEGER ) THEN + 14 + 43 / 79 ELSE + 9 END * ( 63 )
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT DISTINCT 2 + - COUNT( * ) + 45 + COUNT( * ) * 26
----
72

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT 2 + - COUNT ( * ) + 45 + COUNT ( * ) * 26
----
72

query I rowsort
SELECT ALL 20 + + 50 AS col0
----
70

query I rowsort
SELECT 4 + 48 * 35 AS col1
----
1684

query I rowsort
SELECT DISTINCT + + 55 + - 98
----
-43

query I rowsort
SELECT - 16 * - - 56
----
-896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT ALL 86 - + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL 86 - + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 60 - - 20 * + 76 AS col2
----
1580

query I rowsort
SELECT ALL - 97 - + NULLIF ( - 90, 54 ) AS col2
----
-7

query I rowsort
SELECT 99 * - 51 col2
----
-5049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9247
SELECT - SUM( ALL CAST( 8 AS SIGNED ) )
----
-8

skipif mysql # not compatible
query I rowsort label-9247
SELECT - SUM ( ALL CAST ( 8 AS INTEGER ) )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT 98 - - 5 + - 88 - 62 * ( ( COUNT( * ) ) + 82 )
----
-5131

skipif mysql # not compatible
query I rowsort label-9248
SELECT 98 - - 5 + - 88 - 62 * ( ( COUNT ( * ) ) + 82 )
----
-5131

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL SUM( ALL 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL SUM ( ALL 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT DISTINCT MIN( DISTINCT + - 40 ) * - + 58 AS col2
----
2320

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT MIN ( DISTINCT + - 40 ) * - + 58 AS col2
----
2320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT 14 * - 78 * + CAST( - + 40 AS SIGNED ) * - ( 22 + ( - 35 - + 71 ) ) AS col0
----
3669120

skipif mysql # not compatible
query I rowsort label-9251
SELECT 14 * - 78 * + CAST ( - + 40 AS INTEGER ) * - ( 22 + ( - 35 - + 71 ) ) AS col0
----
3669120

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT COALESCE ( + COUNT( DISTINCT - 72 ), 55, 61 * 50 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9252
SELECT COALESCE ( + COUNT ( DISTINCT - 72 ), 55, 61 * 50 ) AS col0
----
1

query I rowsort
SELECT 23 * - 2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9254
SELECT ALL - CASE - MIN( + 40 ) WHEN + + ( - 8 ) * CAST( NULL AS SIGNED ) THEN + 8 + CASE + 37 WHEN 54 THEN 59 ELSE + AVG ( + 60 ) END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL - CASE - MIN ( + 40 ) WHEN + + ( - 8 ) * CAST ( NULL AS INTEGER ) THEN + 8 + CASE + 37 WHEN 54 THEN 59 ELSE + AVG ( + 60 ) END ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT DISTINCT + 32 * ( + COUNT( * ) ) + + 68 + 0 * + 72 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT + 32 * ( + COUNT ( * ) ) + + 68 + 0 * + 72 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT - MIN( - 79 ) * 6 * - 17 - CASE 22 WHEN ( 87 ) THEN NULL ELSE - 80 END
----
-7978

skipif mysql # not compatible
query I rowsort label-9256
SELECT - MIN ( - 79 ) * 6 * - 17 - CASE 22 WHEN ( 87 ) THEN NULL ELSE - 80 END
----
-7978

query I rowsort
SELECT - 93 * - + CASE + - NULLIF ( 23, + 5 ) WHEN COALESCE ( + 66, 96 * + 11 ) - + 20 THEN + 88 + NULLIF ( + 45, + 61 ) END
----
NULL

query I rowsort
SELECT - 27 * - - 86 + + 48
----
-2274

query I rowsort
SELECT ( + 51 ) col1
----
51

query II rowsort
SELECT DISTINCT + ( 2 ) AS col2, + 14 AS col2
----
2
14

query I rowsort
SELECT ALL - 60 * + 10 + + 43
----
-557

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT - - 3 * - 67 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT - - 3 * - 67 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT + CASE + ( - CASE + - 6 WHEN + COUNT( * ) * - 65 - COUNT( * ) THEN 1 END ) WHEN 10 THEN 60 + 95 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT + CASE + ( - CASE + - 6 WHEN + COUNT ( * ) * - 65 - COUNT ( * ) THEN 1 END ) WHEN 10 THEN 60 + 95 END AS col1
----
NULL

query I rowsort
SELECT ALL - - 43 * - 54 + - - ( 14 ) + 41
----
-2267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9265
SELECT - MAX( ALL - 29 ) * - CAST( NULL AS SIGNED ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9265
SELECT - MAX ( ALL - 29 ) * - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT DISTINCT 16 * + SUM( - 63 ) + - - 15 + - COUNT( * ) AS col0
----
-994

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT 16 * + SUM ( - 63 ) + - - 15 + - COUNT ( * ) AS col0
----
-994

query I rowsort
SELECT ALL + - ( + 37 )
----
-37

query I rowsort
SELECT + 92 * 41 AS col0
----
3772

query I rowsort
SELECT ALL - - 74 - - 42 + - + 25 * - - ( 58 )
----
-1334

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ALL SUM( DISTINCT 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL SUM ( DISTINCT 23 ) AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9271
SELECT DISTINCT 49 * - 61 + - + COALESCE ( - 40, 19 + - 22 ) DIV 34
----
-2988

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT 49 * - 61 + - + COALESCE ( - 40, 19 + - 22 ) / 34
----
-2988

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL + MIN( ALL - 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL + MIN ( ALL - 30 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT + NULLIF ( + COUNT( * ), - 70 ) * + - 61 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9273
SELECT + NULLIF ( + COUNT ( * ), - 70 ) * + - 61 AS col1
----
-61

query I rowsort
SELECT + NULLIF ( + 95, 20 * - 4 + + AVG ( 38 ) + 60 ) - - 20 * + 9
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT + 95 - + - 34 + - COUNT( * ) AS col0
----
128

skipif mysql # not compatible
query I rowsort label-9275
SELECT + 95 - + - 34 + - COUNT ( * ) AS col0
----
128

query I rowsort
SELECT ALL 1 * + 4 AS col2
----
4

query I rowsort
SELECT + 42 * - 76
----
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT + 59 + + COUNT( * ) * - 16 - + - COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-9278
SELECT + 59 + + COUNT ( * ) * - 16 - + - COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT ALL SUM( - - 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL SUM ( - - 46 ) AS col2
----
46

query II rowsort
SELECT 90 AS col2, + 69 AS col2
----
90
69

query I rowsort
SELECT + 12 + - + 1 + - 81 col1
----
-70

query I rowsort
SELECT ALL - 66 * + 24 AS col1
----
-1584

query I rowsort
SELECT - 88 + - 15 * - 60
----
812

query I rowsort
SELECT + 76 * 38
----
2888

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT - 82 + - COUNT( * ) + - ( - - 6 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-9285
SELECT - 82 + - COUNT ( * ) + - ( - - 6 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL SUM( - - 60 ) * - ( - + 77 ) * - 10 col2
----
-46200

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL SUM ( - - 60 ) * - ( - + 77 ) * - 10 col2
----
-46200

query I rowsort
SELECT DISTINCT - 49 * + 94 * + 13 AS col1
----
-59878

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9288
SELECT ALL + ( - 82 ) DIV - 69 + - COUNT( * ) + + 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL + ( - 82 ) / - 69 + - COUNT ( * ) + + 30 AS col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT - + NULLIF ( 14, + 65 ) DIV - 14 col0
----
1

skipif mysql # not compatible
query I rowsort label-9289
SELECT - + NULLIF ( 14, + 65 ) / - 14 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9290
SELECT DISTINCT + 34 DIV + 15 + 13 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT + 34 / + 15 + 13 AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9291
SELECT ALL + - 43 DIV + 87 - 86 AS col2, COUNT( * ) - + - ( 49 )
----
-86
50

skipif mysql # not compatible
query II rowsort label-9291
SELECT ALL + - 43 / + 87 - 86 AS col2, COUNT ( * ) - + - ( 49 )
----
-86
50

query I rowsort
SELECT ALL + - 0 * + 65 + - 32 col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT + - 13 - - - 58 + - 74 * MIN( ALL 57 )
----
-4289

skipif mysql # not compatible
query I rowsort label-9293
SELECT + - 13 - - - 58 + - 74 * MIN ( ALL 57 )
----
-4289

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT - 22 * - - 59 * + + 23 + + - 96 + - + 56 DIV 76
----
-29950

skipif mysql # not compatible
query I rowsort label-9294
SELECT - 22 * - - 59 * + + 23 + + - 96 + - + 56 / 76
----
-29950

query I rowsort
SELECT - 23 * + + 33 * + ( + 51 ) AS col2
----
-38709

onlyif mysql # aggregate syntax: 
query II rowsort label-9296
SELECT + - 98 AS col2, COUNT( * )
----
-98
1

skipif mysql # not compatible
query II rowsort label-9296
SELECT + - 98 AS col2, COUNT ( * )
----
-98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + MIN( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-9297
SELECT + MIN ( - 32 )
----
-32

query I rowsort
SELECT ALL - + 38 * - + 61 AS col2
----
2318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9299
SELECT DISTINCT + 69 * - 61 * ( + CAST( - + 54 AS SIGNED ) ) + - SUM( - 5 ) - 64
----
227227

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT + 69 * - 61 * ( + CAST ( - + 54 AS INTEGER ) ) + - SUM ( - 5 ) - 64
----
227227

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT + 26 * + 19 - + 40 + - 79 + - MAX( + 87 ) col2
----
288

skipif mysql # not compatible
query I rowsort label-9300
SELECT + 26 * + 19 - + 40 + - 79 + - MAX ( + 87 ) col2
----
288

onlyif mysql # aggregate syntax: 
query II rowsort label-9301
SELECT COUNT( * ) col2, 18
----
1
18

skipif mysql # not compatible
query II rowsort label-9301
SELECT COUNT ( * ) col2, 18
----
1
18

query I rowsort
SELECT 70 * + 38 + - ( 93 ) * - 39 AS col2
----
6287

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT - NULLIF ( + - 54, + + 71 ) * + CASE - COUNT( * ) WHEN - 68 THEN NULL ELSE - 61 END
----
-3294

skipif mysql # not compatible
query I rowsort label-9303
SELECT - NULLIF ( + - 54, + + 71 ) * + CASE - COUNT ( * ) WHEN - 68 THEN NULL ELSE - 61 END
----
-3294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9304
SELECT ALL SUM( ALL + 84 ) DIV + ( 11 )
----
7

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL SUM ( ALL + 84 ) / + ( 11 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9305
SELECT - NULLIF ( + 53, - 71 + - CASE CAST( NULL AS SIGNED ) WHEN 92 THEN - MAX( DISTINCT 45 ) WHEN + 34 + 34 THEN MIN( 58 ) * 96 WHEN - 83 + - 93 THEN - ( 2 ) / 19 + 73 ELSE 92 * MIN( DISTINCT ( 48 ) ) END + + 42 )
----
-53

skipif mysql # not compatible
query I rowsort label-9305
SELECT - NULLIF ( + 53, - 71 + - CASE CAST ( NULL AS INTEGER ) WHEN 92 THEN - MAX ( DISTINCT 45 ) WHEN + 34 + 34 THEN MIN ( 58 ) * 96 WHEN - 83 + - 93 THEN - ( 2 ) / 19 + 73 ELSE 92 * MIN ( DISTINCT ( 48 ) ) END + + 42 )
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-9306
SELECT DISTINCT + 80 DIV - - 54 col2
----
1

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT + 80 / - - 54 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + + + 56 + 66 * 67 AS col0
----
4476

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + + + 56 + 66 * 67 AS col0
----
4476

query I rowsort
SELECT ALL ( + 62 ) * - - 7 * 49 * + 18 AS col2
----
382788

query I rowsort
SELECT 27 * - 81 AS col2
----
-2187

query I rowsort
SELECT ALL 94 + - - 34 AS col1
----
128

query I rowsort
SELECT 98 - + 0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9312
SELECT COUNT( * ) * - + 61 DIV + 20
----
-3

skipif mysql # not compatible
query I rowsort label-9312
SELECT COUNT ( * ) * - + 61 / + 20
----
-3

query II rowsort
SELECT ALL 84 AS col1, ( 15 ) AS col2
----
84
15

query II rowsort
SELECT - 85, - 63 AS col1
----
-85
-63

query I rowsort
SELECT 17 * - - 11 AS col1
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT MIN( 34 ) * + 81 * + 97 AS col0
----
267138

skipif mysql # not compatible
query I rowsort label-9316
SELECT MIN ( 34 ) * + 81 * + 97 AS col0
----
267138

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT DISTINCT SUM( - - 72 ) + 19
----
91

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT SUM ( - - 72 ) + 19
----
91

query I rowsort
SELECT ( 68 ) - - - ( + - 94 ) AS col2
----
162

query I rowsort
SELECT ALL 16 + - 10 * - 78
----
796

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT COUNT( * ) * 59
----
59

skipif mysql # not compatible
query I rowsort label-9320
SELECT COUNT ( * ) * 59
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9321
SELECT DISTINCT - - COUNT( * ) AS col2, - 32
----
1
-32

skipif mysql # not compatible
query II rowsort label-9321
SELECT DISTINCT - - COUNT ( * ) AS col2, - 32
----
1
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT DISTINCT + 59 * 93 * ( + + COUNT( * ) )
----
5487

skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT + 59 * 93 * ( + + COUNT ( * ) )
----
5487

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT - 16 * 14 + - + 43 + NULLIF ( CASE + 15 WHEN + 50 THEN NULL WHEN - 7 THEN + 36 END, 99 * - CASE - 33 WHEN 21 * ( 57 ) THEN - 60 + + AVG ( + 5 ) * 41 WHEN 41 - + COUNT( * ) THEN NULL WHEN ( - 9 ) / 57 - + COALESCE ( + 95 - COUNT( * ), 94 ) THEN 38 END ) * 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT - 16 * 14 + - + 43 + NULLIF ( CASE + 15 WHEN + 50 THEN NULL WHEN - 7 THEN + 36 END, 99 * - CASE - 33 WHEN 21 * ( 57 ) THEN - 60 + + AVG ( + 5 ) * 41 WHEN 41 - + COUNT ( * ) THEN NULL WHEN ( - 9 ) / 57 - + COALESCE ( + 95 - COUNT ( * ), 94 ) THEN 38 END ) * 49 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9324
SELECT - ( - 8 ) * + - SUM( ALL - CAST( NULL AS SIGNED ) ) * - 89 + - + 2 + + 50 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT - ( - 8 ) * + - SUM ( ALL - CAST ( NULL AS INTEGER ) ) * - 89 + - + 2 + + 50 col1
----
NULL

query I rowsort
SELECT + 89 + - 88
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9326
SELECT MAX( ALL 53 ) * 41 - 10, + COUNT( * ) AS col1
----
2163
1

skipif mysql # not compatible
query II rowsort label-9326
SELECT MAX ( ALL 53 ) * 41 - 10, + COUNT ( * ) AS col1
----
2163
1

query I rowsort
SELECT DISTINCT CASE + 84 WHEN + 47 THEN - 39 END * + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT 10 * 75 * + COUNT( * )
----
750

skipif mysql # not compatible
query I rowsort label-9328
SELECT 10 * 75 * + COUNT ( * )
----
750

query II rowsort
SELECT + 30 AS col2, 23 AS col0
----
30
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT DISTINCT 25 - 9 * COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT 25 - 9 * COUNT ( * )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT + + 29 * + ( + 9 ) + ( + + 63 ) + - - 50 DIV 6
----
332

skipif mysql # not compatible
query I rowsort label-9331
SELECT + + 29 * + ( + 9 ) + ( + + 63 ) + - - 50 / 6
----
332

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT DISTINCT - 63 * - - COUNT( * ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT - 63 * - - COUNT ( * ) AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9333
SELECT + COALESCE ( + - 19, + 22 * - 88 + - CAST( ( COUNT( * ) ) AS SIGNED ) + 84, CAST( + 98 AS SIGNED ) )
----
-19

skipif mysql # not compatible
query I rowsort label-9333
SELECT + COALESCE ( + - 19, + 22 * - 88 + - CAST ( ( COUNT ( * ) ) AS INTEGER ) + 84, CAST ( + 98 AS INTEGER ) )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9334
SELECT 81 DIV + 9
----
9

skipif mysql # not compatible
query I rowsort label-9334
SELECT 81 / + 9
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9335
SELECT MIN( CAST( - 36 AS SIGNED ) ) * - + 12 + - 86 AS col1
----
346

skipif mysql # not compatible
query I rowsort label-9335
SELECT MIN ( CAST ( - 36 AS INTEGER ) ) * - + 12 + - 86 AS col1
----
346

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9336
SELECT ALL - COUNT( * ) + - + 48 DIV - + 68 col1
----
-1

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL - COUNT ( * ) + - + 48 / - + 68 col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9337
SELECT 98 - 53 - + 49 + - 10 - + 28 * + 51 + + CAST( - 77 AS SIGNED )
----
-1519

skipif mysql # not compatible
query I rowsort label-9337
SELECT 98 - 53 - + 49 + - 10 - + 28 * + 51 + + CAST ( - 77 AS INTEGER )
----
-1519

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9338
SELECT 8 + 39 AS col0, 8 + + CAST( + 83 AS SIGNED ) AS col2
----
47
91

skipif mysql # not compatible
query II rowsort label-9338
SELECT 8 + 39 AS col0, 8 + + CAST ( + 83 AS INTEGER ) AS col2
----
47
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9339
SELECT DISTINCT + SUM( ALL + 6 ) + + - 62 - + 33 + 53, CASE WHEN ( 11 ) BETWEEN NULL AND - 11 - COUNT( * ) THEN ( - 35 ) + - 74 WHEN NOT NULL NOT BETWEEN NULL AND + COUNT( * ) * 96 THEN NULL END * + 31 AS col2
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-9339
SELECT DISTINCT + SUM ( ALL + 6 ) + + - 62 - + 33 + 53, CASE WHEN ( 11 ) BETWEEN NULL AND - 11 - COUNT ( * ) THEN ( - 35 ) + - 74 WHEN NOT NULL NOT BETWEEN NULL AND + COUNT ( * ) * 96 THEN NULL END * + 31 AS col2
----
-36
NULL

query I rowsort
SELECT ALL - 39 + - COALESCE ( + 46, - 2 ) AS col2
----
-85

query I rowsort
SELECT 27 * - + 47
----
-1269

query I rowsort
SELECT ALL + 66 * + + 12 AS col1
----
792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT 7 + + - 58 + - 86 * + - 69 * CAST( - 17 AS SIGNED )
----
-100929

skipif mysql # not compatible
query I rowsort label-9343
SELECT 7 + + - 58 + - 86 * + - 69 * CAST ( - 17 AS INTEGER )
----
-100929

onlyif mysql # aggregate syntax: 
query II rowsort label-9344
SELECT 43 - - COUNT( * ) col2, - 62
----
44
-62

skipif mysql # not compatible
query II rowsort label-9344
SELECT 43 - - COUNT ( * ) col2, - 62
----
44
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-9345
SELECT 17 + + + NULLIF ( - COUNT( * ), - ( - 53 ) ), MIN( - - 53 ) + 31 AS col2
----
16
84

skipif mysql # not compatible
query II rowsort label-9345
SELECT 17 + + + NULLIF ( - COUNT ( * ), - ( - 53 ) ), MIN ( - - 53 ) + 31 AS col2
----
16
84

query I rowsort
SELECT 23 * - - 92 AS col2
----
2116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9347
SELECT ALL COUNT( * ) + 4 DIV 37 + + COUNT( * ) * + 35 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL COUNT ( * ) + 4 / 37 + + COUNT ( * ) * + 35 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT NULLIF ( 92, - NULLIF ( - 62, + MIN( - 6 ) ) + + COUNT( * ) ) + 96
----
188

skipif mysql # not compatible
query I rowsort label-9348
SELECT NULLIF ( 92, - NULLIF ( - 62, + MIN ( - 6 ) ) + + COUNT ( * ) ) + 96
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL 34 * NULLIF ( CASE + AVG ( - + 21 ) WHEN COUNT( * ) * 87 THEN 56 WHEN - 57 + ( 94 ) * - 28 THEN + ( COUNT( * ) ) / NULLIF ( 21 * 2, SUM( ALL ( 11 ) ) * - 88 - 76 ) END, 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL 34 * NULLIF ( CASE + AVG ( - + 21 ) WHEN COUNT ( * ) * 87 THEN 56 WHEN - 57 + ( 94 ) * - 28 THEN + ( COUNT ( * ) ) / NULLIF ( 21 * 2, SUM ( ALL ( 11 ) ) * - 88 - 76 ) END, 71 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9350
SELECT DISTINCT + COUNT( * ) DIV - - COUNT( * ) AS col0, 43 AS col0
----
1
43

skipif mysql # not compatible
query II rowsort label-9350
SELECT DISTINCT + COUNT ( * ) / - - COUNT ( * ) AS col0, 43 AS col0
----
1
43

query I rowsort
SELECT ALL - 77 - 76 col2
----
-153

onlyif mysql # DIV for integer division: 
query II rowsort label-9352
SELECT + 95 DIV + 68, + ( 54 ) AS col1
----
1
54

skipif mysql # not compatible
query II rowsort label-9352
SELECT + 95 / + 68, + ( 54 ) AS col1
----
1
54

query I rowsort
SELECT 55 * + - ( + 74 ) AS col2
----
-4070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9354
SELECT ALL - MIN( ALL + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL - MIN ( ALL + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9355
SELECT + 78 + + 11 + + 75 - CAST( NULL AS SIGNED ) * - 78 / 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9355
SELECT + 78 + + 11 + + 75 - CAST ( NULL AS INTEGER ) * - 78 / 39
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9356
SELECT + 63 DIV 93 + - + 78 + ( + + COUNT( * ) ) - - - 73 AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-9356
SELECT + 63 / 93 + - + 78 + ( + + COUNT ( * ) ) - - - 73 AS col0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT COUNT( * ) - 4 + - COUNT( * ) * - COUNT( * ) * - 66 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9357
SELECT COUNT ( * ) - 4 + - COUNT ( * ) * - COUNT ( * ) * - 66 AS col0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9358
SELECT ALL - CAST( + NULLIF ( - + 35, - + COUNT( * ) ) AS SIGNED ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL - CAST ( + NULLIF ( - + 35, - + COUNT ( * ) ) AS INTEGER ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT CASE 90 WHEN - + 83 THEN NULL WHEN - 30 / - COUNT( DISTINCT - 76 ) THEN + + 9 ELSE 74 END * - COALESCE ( + 48 * - 4, 63, 63 * + 14 + + 9 ) AS col0
----
14208

skipif mysql # not compatible
query I rowsort label-9359
SELECT CASE 90 WHEN - + 83 THEN NULL WHEN - 30 / - COUNT ( DISTINCT - 76 ) THEN + + 9 ELSE 74 END * - COALESCE ( + 48 * - 4, 63, 63 * + 14 + + 9 ) AS col0
----
14208

query I rowsort
SELECT 27 * 9 - - 17 + 6 AS col0
----
266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9361
SELECT ( + 28 ) * + 56 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT ( + 28 ) * + 56 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT DISTINCT 84 + - + 2 + 50 + - MIN( ALL - 30 ) AS col2
----
162

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT 84 + - + 2 + 50 + - MIN ( ALL - 30 ) AS col2
----
162

query I rowsort
SELECT - 13 + 26 + 32
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT DISTINCT 77 + - - COUNT( * ) - + 92
----
-14

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT 77 + - - COUNT ( * ) - + 92
----
-14

query II rowsort
SELECT - 13, - 13
----
-13
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9366
SELECT + 1 * - NULLIF ( - - 47, - - 11 ) * 75 + + + CASE 54 WHEN + 31 + 53 * COUNT( * ) THEN NULL WHEN COALESCE ( - COUNT( DISTINCT CAST( 92 AS SIGNED ) ), 94 * 69 ) THEN NULL ELSE 71 DIV + 11 + + 53 END + + 14
----
-3452

skipif mysql # not compatible
query I rowsort label-9366
SELECT + 1 * - NULLIF ( - - 47, - - 11 ) * 75 + + + CASE 54 WHEN + 31 + 53 * COUNT ( * ) THEN NULL WHEN COALESCE ( - COUNT ( DISTINCT CAST ( 92 AS INTEGER ) ), 94 * 69 ) THEN NULL ELSE 71 / + 11 + + 53 END + + 14
----
-3452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9367
SELECT - 6 + COALESCE ( + 65, + + 24 ) - + + 37 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9367
SELECT - 6 + COALESCE ( + 65, + + 24 ) - + + 37 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL 68 col2, 73 AS col2
----
68
73

query I rowsort
SELECT + 77 * 6 AS col2
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT - CASE + + COUNT( * ) WHEN - 99 * SUM( - - 31 ) THEN NULL WHEN + 15 + + 0 + - 85 * - 64 THEN NULLIF ( 83, - COUNT( * ) ) + 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT - CASE + + COUNT ( * ) WHEN - 99 * SUM ( - - 31 ) THEN NULL WHEN + 15 + + 0 + - 85 * - 64 THEN NULLIF ( 83, - COUNT ( * ) ) + 39 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT DISTINCT COUNT( + - 94 )
----
1

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT COUNT ( + - 94 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9372
SELECT ALL - ( 6 ) + - AVG ( 77 ) + + CASE CASE - COUNT( ALL + + CAST( - 32 AS SIGNED ) ) WHEN - 76 THEN 52 WHEN + 68 THEN NULL WHEN 65 THEN NULL END WHEN 1 + - 24 THEN NULL WHEN 28 * 17 THEN + 87 + - 82 ELSE NULL END * - 85 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL - ( 6 ) + - AVG ( 77 ) + + CASE CASE - COUNT ( ALL + + CAST ( - 32 AS INTEGER ) ) WHEN - 76 THEN 52 WHEN + 68 THEN NULL WHEN 65 THEN NULL END WHEN 1 + - 24 THEN NULL WHEN 28 * 17 THEN + 87 + - 82 ELSE NULL END * - 85 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT - 47 * + 73 * NULLIF ( - NULLIF ( - - MAX( NULLIF ( 5, 41 ) ), + 24 - 95 ), + 81 * 26 ) AS col1
----
17155

skipif mysql # not compatible
query I rowsort label-9373
SELECT - 47 * + 73 * NULLIF ( - NULLIF ( - - MAX ( NULLIF ( 5, 41 ) ), + 24 - 95 ), + 81 * 26 ) AS col1
----
17155

query I rowsort
SELECT ALL + 35 * - 86 AS col1
----
-3010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9375
SELECT ALL + 17 * - COALESCE ( - 65, - 2 * - - NULLIF ( + 55, - + 68 DIV - CAST( CAST( - 78 AS SIGNED ) AS SIGNED ) + + 87 ) * - 42, - 59 DIV + 65 ) * + CAST( 51 * + COUNT( * ) AS SIGNED )
----
56355

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL + 17 * - COALESCE ( - 65, - 2 * - - NULLIF ( + 55, - + 68 / - CAST ( CAST ( - 78 AS INTEGER ) AS INTEGER ) + + 87 ) * - 42, - 59 / + 65 ) * + CAST ( 51 * + COUNT ( * ) AS INTEGER )
----
56355

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT DISTINCT NULLIF ( - - 89, + + COUNT( * ) ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT NULLIF ( - - 89, + + COUNT ( * ) ) AS col0
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-9377
SELECT - 44 AS col1, + 48 DIV - 36
----
-44
-1

skipif mysql # not compatible
query II rowsort label-9377
SELECT - 44 AS col1, + 48 / - 36
----
-44
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT - 87 - - 19 * + CAST( + 40 AS SIGNED )
----
673

skipif mysql # not compatible
query I rowsort label-9378
SELECT - 87 - - 19 * + CAST ( + 40 AS INTEGER )
----
673

query I rowsort
SELECT CASE + 40 WHEN + 75 / 81 THEN 91 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT - - SUM( - 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9380
SELECT - - SUM ( - 97 ) AS col2
----
-97

query I rowsort
SELECT + 71 + - - 77 + 71
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT - COUNT( * ) - + 21 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9382
SELECT - COUNT ( * ) - + 21 AS col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9383
SELECT ALL + 49 DIV SUM( DISTINCT + 2 ) * - 90
----
-2160

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL + 49 / SUM ( DISTINCT + 2 ) * - 90
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT - + COUNT( * ) * 63 * + 71 + - 55
----
-4528

skipif mysql # not compatible
query I rowsort label-9384
SELECT - + COUNT ( * ) * 63 * + 71 + - 55
----
-4528

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9385
SELECT - 42 - - 25 * + + 45 / + - 3 * 2 + CAST( NULL AS SIGNED ), 31 AS col1
----
NULL
31

skipif mysql # not compatible
query II rowsort label-9385
SELECT - 42 - - 25 * + + 45 / + - 3 * 2 + CAST ( NULL AS INTEGER ), 31 AS col1
----
NULL
31

query I rowsort
SELECT DISTINCT CASE + 44 WHEN - 89 THEN - 82 ELSE NULL END * - - 5
----
NULL

query I rowsort
SELECT - 56 * + 66 col0
----
-3696

query I rowsort
SELECT ALL - + 65 / - 20 / + CASE 12 WHEN - + COALESCE ( + 34, + ( + + ( 40 ) ), - 26 ) THEN 29 END
----
NULL

query I rowsort
SELECT - 4 * - - 31
----
-124

onlyif mysql # DIV for integer division: 
query II rowsort label-9390
SELECT - + 49 + - 50 DIV - - 71, 84 * - 4 AS col0
----
-49
-336

skipif mysql # not compatible
query II rowsort label-9390
SELECT - + 49 + - 50 / - - 71, 84 * - 4 AS col0
----
-49
-336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9391
SELECT + MAX( DISTINCT - 26 ) * + 80 - - 92 + - COUNT( * ) * + 59 AS col0, NULLIF ( ( CAST( NULL AS SIGNED ) ), 92 )
----
-2047
NULL

skipif mysql # not compatible
query II rowsort label-9391
SELECT + MAX ( DISTINCT - 26 ) * + 80 - - 92 + - COUNT ( * ) * + 59 AS col0, NULLIF ( ( CAST ( NULL AS INTEGER ) ), 92 )
----
-2047
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9392
SELECT + 1 DIV 21 * - 10, + 4 AS col1
----
0
4

skipif mysql # not compatible
query II rowsort label-9392
SELECT + 1 / 21 * - 10, + 4 AS col1
----
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL + - MAX( - 13 ) * - 40 + 11
----
-509

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL + - MAX ( - 13 ) * - 40 + 11
----
-509

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9394
SELECT ALL + - SUM( DISTINCT + + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL + - SUM ( DISTINCT + + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + - 60 * 30 + + 29
----
-1771

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT ALL - + CASE MIN( - + 99 ) WHEN - 74 THEN NULL WHEN + 38 * - + COUNT( * ) THEN - + 75 ELSE NULL END * - COUNT( * ) + 49 / - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL - + CASE MIN ( - + 99 ) WHEN - 74 THEN NULL WHEN + 38 * - + COUNT ( * ) THEN - + 75 ELSE NULL END * - COUNT ( * ) + 49 / - 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL 83 * - - SUM( ALL - 17 ) * - - 84 + + - 82 col2
----
-118606

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL 83 * - - SUM ( ALL - 17 ) * - - 84 + + - 82 col2
----
-118606

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT - ( 87 ) + - - NULLIF ( - 56, - + COUNT( * ) ) * COALESCE ( - - 94, - + COUNT( * ), + 82 * + 74 + - 55 ) * - 33 AS col0
----
173625

skipif mysql # not compatible
query I rowsort label-9398
SELECT - ( 87 ) + - - NULLIF ( - 56, - + COUNT ( * ) ) * COALESCE ( - - 94, - + COUNT ( * ), + 82 * + 74 + - 55 ) * - 33 AS col0
----
173625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9399
SELECT CASE ( + COUNT( * ) ) WHEN - 29 / COUNT( * ) + - 43 THEN 3 + 5 WHEN + 31 THEN NULL ELSE - SUM( - COALESCE ( + 58, ( + 74 ) - 46, CAST( + 87 AS SIGNED ) + 21 * + 21 ) ) END AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9399
SELECT CASE ( + COUNT ( * ) ) WHEN - 29 / COUNT ( * ) + - 43 THEN 3 + 5 WHEN + 31 THEN NULL ELSE - SUM ( - COALESCE ( + 58, ( + 74 ) - 46, CAST ( + 87 AS INTEGER ) + 21 * + 21 ) ) END AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT + NULLIF ( MIN( + 91 ), + - COALESCE ( - 12, + + COUNT( * ) ) ) col1
----
91

skipif mysql # not compatible
query I rowsort label-9400
SELECT + NULLIF ( MIN ( + 91 ), + - COALESCE ( - 12, + + COUNT ( * ) ) ) col1
----
91

query I rowsort
SELECT + 83 * - - 86 AS col1
----
7138

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT - 57 * NULLIF ( - - 14, - 41 / - MIN( + - 37 ) + + 13 * + 20 ) - - + COUNT( * ) AS col1
----
-797

skipif mysql # not compatible
query I rowsort label-9402
SELECT - 57 * NULLIF ( - - 14, - 41 / - MIN ( + - 37 ) + + 13 * + 20 ) - - + COUNT ( * ) AS col1
----
-797

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT MAX( + 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9403
SELECT MAX ( + 75 ) AS col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9404
SELECT ALL 35 DIV + 17 col2
----
2

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL 35 / + 17 col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT + 47 - + CAST( NULL AS SIGNED ) * + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9405
SELECT + 47 - + CAST ( NULL AS INTEGER ) * + 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT + COUNT( * ) + - 8 - + MAX( ALL ( + 20 ) ) + + - 16
----
-43

skipif mysql # not compatible
query I rowsort label-9406
SELECT + COUNT ( * ) + - 8 - + MAX ( ALL ( + 20 ) ) + + - 16
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL - ( 98 ) * CASE 28 WHEN + - AVG ( ALL COALESCE ( + 57, - ( 23 ) ) ) THEN - 9 + + 40 WHEN COUNT( * ) * 18 THEN NULL WHEN + 80 THEN + 31 + 92 ELSE + 78 END * 40 - 37 AS col1
----
-305797

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL - ( 98 ) * CASE 28 WHEN + - AVG ( ALL COALESCE ( + 57, - ( 23 ) ) ) THEN - 9 + + 40 WHEN COUNT ( * ) * 18 THEN NULL WHEN + 80 THEN + 31 + 92 ELSE + 78 END * 40 - 37 AS col1
----
-305797

query I rowsort
SELECT + 17 * + 62 AS col1
----
1054

query I rowsort
SELECT + 63 + + 36 + - 56
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9410
SELECT + - 38 DIV + - SUM( ALL - + 90 )
----
0

skipif mysql # not compatible
query I rowsort label-9410
SELECT + - 38 / + - SUM ( ALL - + 90 )
----
0

query II rowsort
SELECT + 90 + + + 13 AS col1, + 98 AS col2
----
103
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9412
SELECT + + CAST( + ( 23 ) AS SIGNED ) * + 42
----
966

skipif mysql # not compatible
query I rowsort label-9412
SELECT + + CAST ( + ( 23 ) AS INTEGER ) * + 42
----
966

query I rowsort
SELECT - + 58 * - ( + 56 )
----
3248

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT - + 14 + - MIN( + NULLIF ( + 0, + 36 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-9414
SELECT - + 14 + - MIN ( + NULLIF ( + 0, + 36 ) )
----
-14

query I rowsort
SELECT - - 39 + - 75 + - 95
----
-131

query I rowsort
SELECT - 2 + + 67 + + 33 * - - CASE + 32 WHEN - + 5 + CASE + 80 WHEN - 33 THEN 1 END THEN + ( 17 ) ELSE 24 + 4 END + - 93 * 96
----
-7939

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT - - 31 * - NULLIF ( - 95, - 65 / + COUNT( * ) + + - 20 )
----
2945

skipif mysql # not compatible
query I rowsort label-9417
SELECT - - 31 * - NULLIF ( - 95, - 65 / + COUNT ( * ) + + - 20 )
----
2945

query I rowsort
SELECT DISTINCT - 26 + ( + ( + 35 ) ) + - + 79 * + 17 + - 66 AS col1
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT COUNT( DISTINCT ( - - 50 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9419
SELECT COUNT ( DISTINCT ( - - 50 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT ALL - + 12 DIV 51 + + - 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL - + 12 / 51 + + - 77 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-9421
SELECT ALL - 82 * + COUNT( * ) * - COUNT( * ) - + 19 AS col0, + COUNT( * ) AS col1
----
63
1

skipif mysql # not compatible
query II rowsort label-9421
SELECT ALL - 82 * + COUNT ( * ) * - COUNT ( * ) - + 19 AS col0, + COUNT ( * ) AS col1
----
63
1

query II rowsort
SELECT ALL + 90 + - + 60 col2, 55
----
30
55

query I rowsort
SELECT ALL - 32 + + 45 * + NULLIF ( - 6, + COALESCE ( + + 70, - 9, + + 12 * - 79 ) ) * 15
----
-4082

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT ALL COUNT( * ) + + 68 col2
----
69

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL COUNT ( * ) + + 68 col2
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9425
SELECT 43 DIV 17 + + - 21 + + - CAST( - 75 AS SIGNED ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9425
SELECT 43 / 17 + + - 21 + + - CAST ( - 75 AS INTEGER ) AS col0
----
56

query I rowsort
SELECT DISTINCT - 62 * + + 23 AS col2
----
-1426

query I rowsort
SELECT 52 + - + 97 * - 54 AS col1
----
5290

query I rowsort
SELECT 23 + + - 27 AS col2
----
-4

query I rowsort
SELECT ALL - CASE + 22 WHEN - 34 + - 19 * 36 + + + 80 THEN NULL ELSE - + 51 END col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT DISTINCT - ( 43 ) * - COUNT( * ) * 98
----
4214

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT - ( 43 ) * - COUNT ( * ) * 98
----
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT 81 * + 92 + + SUM( + 19 ) AS col0
----
7471

skipif mysql # not compatible
query I rowsort label-9431
SELECT 81 * + 92 + + SUM ( + 19 ) AS col0
----
7471

query I rowsort
SELECT ALL - 44 * 2
----
-88

query I rowsort
SELECT ALL - ( + 84 ) AS col1
----
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9434
SELECT 26 * + - 36 * + 30 AS col1, - 92 * 74 * + CAST( NULL AS DECIMAL ) AS col0
----
-28080
NULL

skipif mysql # not compatible
query II rowsort label-9434
SELECT 26 * + - 36 * + 30 AS col1, - 92 * 74 * + CAST ( NULL AS REAL ) AS col0
----
-28080
NULL

query I rowsort
SELECT 61 * + + 42 AS col2
----
2562

query II rowsort
SELECT 68 + - 63 * + 92, - 86 AS col0
----
-5728
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9437
SELECT DISTINCT 17 DIV 73 * 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT 17 / 73 * 77 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9438
SELECT 55 AS col0, + CASE + 32 WHEN - 39 + - + 64 + COUNT( * ) THEN ( MIN( DISTINCT - 24 ) ) WHEN + CASE - ( 63 ) WHEN 92 + - MAX( DISTINCT 37 ) / - 28 THEN NULL ELSE + COALESCE ( 62, CAST( NULL AS SIGNED ) * - COUNT( * ), MIN( ALL + 64 ) ) END * + MIN( ALL 70 + 72 ) THEN CAST( - 33 AS SIGNED ) * + 86 WHEN - 63 / ( COUNT( * ) ) THEN NULL END
----
55
NULL

skipif mysql # not compatible
query II rowsort label-9438
SELECT 55 AS col0, + CASE + 32 WHEN - 39 + - + 64 + COUNT ( * ) THEN ( MIN ( DISTINCT - 24 ) ) WHEN + CASE - ( 63 ) WHEN 92 + - MAX ( DISTINCT 37 ) / - 28 THEN NULL ELSE + COALESCE ( 62, CAST ( NULL AS INTEGER ) * - COUNT ( * ), MIN ( ALL + 64 ) ) END * + MIN ( ALL 70 + 72 ) THEN CAST ( - 33 AS INTEGER ) * + 86 WHEN - 63 / ( COUNT ( * ) ) THEN NULL END
----
55
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9439
SELECT 51 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9439
SELECT 51 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 62 * - 53
----
-3286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT 33 * MAX( ALL - CAST( NULL AS SIGNED ) ) * 84 + - + COALESCE ( + 35, + SUM( 8 ) ) + 32 + + 43 + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT 33 * MAX ( ALL - CAST ( NULL AS INTEGER ) ) * 84 + - + COALESCE ( + 35, + SUM ( 8 ) ) + 32 + + 43 + 3 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT - COUNT( ALL 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT - COUNT ( ALL 94 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9443
SELECT COALESCE ( + - COUNT( * ), - + 82 * + ( 8 ) + COUNT( * ) ) DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-9443
SELECT COALESCE ( + - COUNT ( * ), - + 82 * + ( 8 ) + COUNT ( * ) ) / - 78
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9444
SELECT - CASE + 28 WHEN 70 * + MAX( - CAST( + 12 AS DECIMAL ) ) THEN - - 71 * - 95 - - 43 WHEN + - 39 THEN 97 WHEN + COALESCE ( + 77, - 39 / + CASE MAX( DISTINCT + 18 ) WHEN + COUNT( * ) THEN 29 + 63 WHEN COUNT( * ) - 79 THEN + 84 * ( 25 * - 77 ) + ( - 79 ) END + - 56, COALESCE ( + 71, + 59 ) ) * 93 THEN NULL END + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT - CASE + 28 WHEN 70 * + MAX ( - CAST ( + 12 AS REAL ) ) THEN - - 71 * - 95 - - 43 WHEN + - 39 THEN 97 WHEN + COALESCE ( + 77, - 39 / + CASE MAX ( DISTINCT + 18 ) WHEN + COUNT ( * ) THEN 29 + 63 WHEN COUNT ( * ) - 79 THEN + 84 * ( 25 * - 77 ) + ( - 79 ) END + - 56, COALESCE ( + 71, + 59 ) ) * 93 THEN NULL END + 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9445
SELECT + 74 DIV + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9445
SELECT + 74 / + COUNT ( * ) AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT DISTINCT 92 + + 2 + + CASE - - 56 WHEN - 32 + + 62 THEN + 32 ELSE 54 END * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT 92 + + 2 + + CASE - - 56 WHEN - 32 + + 62 THEN + 32 ELSE 54 END * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9447
SELECT DISTINCT + + NULLIF ( NULLIF ( - MIN( DISTINCT NULLIF ( + 86, 36 ) ), CAST( - COUNT( * ) AS DECIMAL ) ), + - 48 ) + + - SUM( DISTINCT + 75 ) DIV - 28
----
-84

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT + + NULLIF ( NULLIF ( - MIN ( DISTINCT NULLIF ( + 86, 36 ) ), CAST ( - COUNT ( * ) AS REAL ) ), + - 48 ) + + - SUM ( DISTINCT + 75 ) / - 28
----
-84

query I rowsort
SELECT + 40 - - 95 AS col1
----
135

query I rowsort
SELECT ALL - - 93 * + 18 AS col2
----
1674

query II rowsort
SELECT - 85 AS col2, 69
----
-85
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL - MIN( 52 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL - MIN ( 52 ) AS col1
----
-52

query II rowsort
SELECT 3 AS col2, 70 * + 97
----
3
6790

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT DISTINCT - COUNT( + - 63 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT - COUNT ( + - 63 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 76 - - 26 + + - ( 44 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9455
SELECT 26 DIV + 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9455
SELECT 26 / + 58 AS col2
----
0

query I rowsort
SELECT 32 + - - 92 * + + 81
----
7484

query II rowsort
SELECT 46 col0, 27
----
46
27

query I rowsort
SELECT 86 * + - ( 58 ) + 92 col0
----
-4896

query I rowsort
SELECT ALL - 13 * - 59 AS col0
----
767

onlyif mysql # DIV for integer division: 
query I rowsort label-9460
SELECT 51 DIV 63 * - + 98
----
0

skipif mysql # not compatible
query I rowsort label-9460
SELECT 51 / 63 * - + 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9461
SELECT CASE 74 WHEN - + 28 THEN - - 88 WHEN - 67 - COALESCE ( - + 42, - - 74 ) * - 90 * + 7 * CASE COUNT( * ) WHEN + 16 + + 69 THEN 81 + 55 WHEN - CAST( NULL AS SIGNED ) * AVG ( 61 * + 68 ) + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) THEN NULL END THEN NULL WHEN + 80 + NULLIF ( + 7, 20 ) THEN NULL END * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9461
SELECT CASE 74 WHEN - + 28 THEN - - 88 WHEN - 67 - COALESCE ( - + 42, - - 74 ) * - 90 * + 7 * CASE COUNT ( * ) WHEN + 16 + + 69 THEN 81 + 55 WHEN - CAST ( NULL AS INTEGER ) * AVG ( 61 * + 68 ) + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) THEN NULL END THEN NULL WHEN + 80 + NULLIF ( + 7, 20 ) THEN NULL END * COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT + 10 * - + COUNT( + 88 ) - + + CASE - 88 WHEN - + ( 30 ) * - COUNT( * ) + - + COUNT( * ) + - - 19 + - 52 * 42 THEN 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT + 10 * - + COUNT ( + 88 ) - + + CASE - 88 WHEN - + ( 30 ) * - COUNT ( * ) + - + COUNT ( * ) + - - 19 + - 52 * 42 THEN 8 END
----
NULL

query I rowsort
SELECT 61 * + 29 col2
----
1769

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT DISTINCT COUNT( DISTINCT - ( - 0 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT COUNT ( DISTINCT - ( - 0 ) ) col0
----
1

query I rowsort
SELECT ALL - 14 * 37 AS col2
----
-518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9466
SELECT - NULLIF ( - + 60, - 4 + 42 * - COALESCE ( + 89, + 57 ) ), CASE + MIN( - COALESCE ( 94, + 41, + ( 75 ) - 11 ) ) WHEN - CAST( 59 AS SIGNED ) THEN 1 END AS col1
----
60
NULL

skipif mysql # not compatible
query II rowsort label-9466
SELECT - NULLIF ( - + 60, - 4 + 42 * - COALESCE ( + 89, + 57 ) ), CASE + MIN ( - COALESCE ( 94, + 41, + ( 75 ) - 11 ) ) WHEN - CAST ( 59 AS INTEGER ) THEN 1 END AS col1
----
60
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9467
SELECT DISTINCT - CASE CASE 95 WHEN + + 41 * - - 10 * + + COUNT( * ) * 21 + - 40 - 85 * - 57 - - 59 + + 30 + + COUNT( 88 ) THEN 29 WHEN ( + 21 ) THEN NULL ELSE CAST( NULL AS SIGNED ) * CASE WHEN NOT - 69 * NULLIF ( 73, + 94 * CAST( - MIN( DISTINCT - 78 ) AS SIGNED ) + ( 75 ) ) <> ( - COALESCE ( 89, + ( + 79 ) ) + 25 ) THEN MAX( 42 ) ELSE - COUNT( * ) END - + 53 * - CAST( NULL AS SIGNED ) END WHEN 69 * - COUNT( * ) THEN - 40 END + - NULLIF ( 41, 72 ) * - MAX( ALL 56 + + 63 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT - CASE CASE 95 WHEN + + 41 * - - 10 * + + COUNT ( * ) * 21 + - 40 - 85 * - 57 - - 59 + + 30 + + COUNT ( 88 ) THEN 29 WHEN ( + 21 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) * CASE WHEN NOT - 69 * NULLIF ( 73, + 94 * CAST ( - MIN ( DISTINCT - 78 ) AS INTEGER ) + ( 75 ) ) <> ( - COALESCE ( 89, + ( + 79 ) ) + 25 ) THEN MAX ( 42 ) ELSE - COUNT ( * ) END - + 53 * - CAST ( NULL AS INTEGER ) END WHEN 69 * - COUNT ( * ) THEN - 40 END + - NULLIF ( 41, 72 ) * - MAX ( ALL 56 + + 63 ) AS col2
----
NULL

query II rowsort
SELECT - 61 AS col0, 16
----
-61
16

query II rowsort
SELECT + 78 AS col2, + 77 + 52
----
78
129

onlyif mysql # DIV for integer division: 
query I rowsort label-9470
SELECT ALL - - 58 + + 74 DIV + 42
----
59

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL - - 58 + + 74 / + 42
----
59

query I rowsort
SELECT + 61 + ( - 45 ) AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9472
SELECT DISTINCT + 98 + - COUNT( * ) + 55 + + 54 * CASE - - 3 WHEN + + 82 THEN - NULLIF ( 53, - - COUNT( * ) ) * 52 + COUNT( * ) WHEN - COUNT( * ) * + CAST( NULL AS SIGNED ) THEN + 6 * 64 ELSE NULL END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT + 98 + - COUNT ( * ) + 55 + + 54 * CASE - - 3 WHEN + + 82 THEN - NULLIF ( 53, - - COUNT ( * ) ) * 52 + COUNT ( * ) WHEN - COUNT ( * ) * + CAST ( NULL AS INTEGER ) THEN + 6 * 64 ELSE NULL END * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL 41 + + + 70 * - 39
----
-2689

query II rowsort
SELECT DISTINCT + 9 AS col1, + 25
----
9
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9475
SELECT + COUNT( * ) + - 67 DIV 4 + - - MIN( DISTINCT - 75 ) + - NULLIF ( + + 59, - - 58 ) + - 97
----
-246

skipif mysql # not compatible
query I rowsort label-9475
SELECT + COUNT ( * ) + - 67 / 4 + - - MIN ( DISTINCT - 75 ) + - NULLIF ( + + 59, - - 58 ) + - 97
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT DISTINCT MAX( + 6 ) * - COALESCE ( - 66, + - MIN( ( + + 69 ) ) ) AS col2
----
396

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT MAX ( + 6 ) * - COALESCE ( - 66, + - MIN ( ( + + 69 ) ) ) AS col2
----
396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9477
SELECT + - COUNT( * ) * - - CAST( - + 0 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9477
SELECT + - COUNT ( * ) * - - CAST ( - + 0 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9478
SELECT + - CASE - ( - 94 ) WHEN 76 + CASE - 73 WHEN - 70 * + MAX( - CAST( NULL AS SIGNED ) ) + - + 61 THEN ( 55 ) + 4 ELSE NULL END THEN NULL WHEN ( 45 ) * 33 THEN NULL WHEN - COUNT( * ) + + CAST( + 66 AS SIGNED ) THEN - ( + 29 ) * 11 END + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT + - CASE - ( - 94 ) WHEN 76 + CASE - 73 WHEN - 70 * + MAX ( - CAST ( NULL AS INTEGER ) ) + - + 61 THEN ( 55 ) + 4 ELSE NULL END THEN NULL WHEN ( 45 ) * 33 THEN NULL WHEN - COUNT ( * ) + + CAST ( + 66 AS INTEGER ) THEN - ( + 29 ) * 11 END + + 90
----
NULL

query II rowsort
SELECT + + 19 + + 87 AS col2, + 11
----
106
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9480
SELECT - + 50 AS col2, COUNT( * )
----
-50
1

skipif mysql # not compatible
query II rowsort label-9480
SELECT - + 50 AS col2, COUNT ( * )
----
-50
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9481
SELECT ALL CAST( NULL AS DECIMAL ) / 66 * + + CASE + 95 WHEN - 31 THEN + 24 * - 9 / + - 13 ELSE + + 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL CAST ( NULL AS REAL ) / 66 * + + CASE + 95 WHEN - 31 THEN + 24 * - 9 / + - 13 ELSE + + 7 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9482
SELECT + 54 * - - CAST( NULL AS SIGNED ) AS col0, 59
----
NULL
59

skipif mysql # not compatible
query II rowsort label-9482
SELECT + 54 * - - CAST ( NULL AS INTEGER ) AS col0, 59
----
NULL
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9483
SELECT + 83 * - 82 + - 13 + 46 DIV 50 AS col2, COUNT( * ) * + 60
----
-6819
60

skipif mysql # not compatible
query II rowsort label-9483
SELECT + 83 * - 82 + - 13 + 46 / 50 AS col2, COUNT ( * ) * + 60
----
-6819
60

query I rowsort
SELECT DISTINCT + 86 * 86 * - 32 - - - 11
----
-236683

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9485
SELECT - COUNT( * ) DIV ( - - 88 ) + - NULLIF ( COUNT( * ), 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-9485
SELECT - COUNT ( * ) / ( - - 88 ) + - NULLIF ( COUNT ( * ), 7 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9486
SELECT CASE + 8 WHEN + COUNT( * ) THEN NULL WHEN + + 26 THEN - CAST( NULL AS SIGNED ) END, - 37 + CAST( NULL AS SIGNED ) + 26 + + AVG ( DISTINCT - - 8 ) * - SUM( DISTINCT - 5 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9486
SELECT CASE + 8 WHEN + COUNT ( * ) THEN NULL WHEN + + 26 THEN - CAST ( NULL AS INTEGER ) END, - 37 + CAST ( NULL AS INTEGER ) + 26 + + AVG ( DISTINCT - - 8 ) * - SUM ( DISTINCT - 5 )
----
NULL
NULL

query I rowsort
SELECT + ( + ( - + 45 ) )
----
-45

query I rowsort
SELECT ALL + 90 * + 28 AS col2
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT - COUNT( * ) + ( - 36 )
----
-37

skipif mysql # not compatible
query I rowsort label-9489
SELECT - COUNT ( * ) + ( - 36 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9490
SELECT + NULLIF ( 30, + 71 ), - ( - CAST( - - 62 AS SIGNED ) ) AS col2
----
30
62

skipif mysql # not compatible
query II rowsort label-9490
SELECT + NULLIF ( 30, + 71 ), - ( - CAST ( - - 62 AS INTEGER ) ) AS col2
----
30
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT COALESCE ( - 82, + 90 - + + COUNT( * ) + 81 * + 37 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9491
SELECT COALESCE ( - 82, + 90 - + + COUNT ( * ) + 81 * + 37 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT + 7 * - ( - + 37 ) * - 46 + + 31 + + 79 + + + COUNT( * ) + 27
----
-11776

skipif mysql # not compatible
query I rowsort label-9492
SELECT + 7 * - ( - + 37 ) * - 46 + + 31 + + 79 + + + COUNT ( * ) + 27
----
-11776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9493
SELECT ALL 31 * + 78 / + NULLIF ( - CAST( NULL AS SIGNED ), AVG ( - 60 ) ) + - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL 31 * + 78 / + NULLIF ( - CAST ( NULL AS INTEGER ), AVG ( - 60 ) ) + - 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT DISTINCT MAX( ALL - 24 ) * 62 + - 20 * - 53 + - 2
----
-430

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT MAX ( ALL - 24 ) * 62 + - 20 * - 53 + - 2
----
-430

query I rowsort
SELECT + - 16 * + 20 - 67
----
-387

query II rowsort
SELECT - + 35 + + + 85 + - + 70, 25 AS col0
----
-20
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9497
SELECT - - ( - - 29 ) DIV 34 + COUNT( * ) * - + 40
----
-40

skipif mysql # not compatible
query I rowsort label-9497
SELECT - - ( - - 29 ) / 34 + COUNT ( * ) * - + 40
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT - 95 DIV 84
----
-1

skipif mysql # not compatible
query I rowsort label-9498
SELECT - 95 / 84
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL - + ( + 92 ) + + NULLIF ( + - 37, - - CASE - + 73 WHEN - 17 THEN NULL WHEN + 63 THEN COUNT( + 92 ) * + SUM( ALL + 61 ) END + - 59 ) AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - + ( + 92 ) + + NULLIF ( + - 37, - - CASE - + 73 WHEN - 17 THEN NULL WHEN + 63 THEN COUNT ( + 92 ) * + SUM ( ALL + 61 ) END + - 59 ) AS col0
----
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-9500
SELECT DISTINCT + + 51 * + + COUNT( * ) AS col0, + 47 * - - COUNT( * ) + - 44
----
51
3

skipif mysql # not compatible
query II rowsort label-9500
SELECT DISTINCT + + 51 * + + COUNT ( * ) AS col0, + 47 * - - COUNT ( * ) + - 44
----
51
3

query II rowsort
SELECT DISTINCT NULLIF ( - 27, 83 ) AS col1, - 31 AS col1
----
-27
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9502
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT - + ( 97 ) - + NULLIF ( - 59, - 37 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT - - MIN( + 35 ) + 41
----
76

skipif mysql # not compatible
query I rowsort label-9504
SELECT - - MIN ( + 35 ) + 41
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT + - MAX( ALL + ( + 0 ) ) * + 36
----
0

skipif mysql # not compatible
query I rowsort label-9505
SELECT + - MAX ( ALL + ( + 0 ) ) * + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) + + - ( - - 67 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + + - ( - - 67 ) AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9507
SELECT DISTINCT - CASE - 55 WHEN - 97 * - CAST( NULL AS SIGNED ) + - 77 THEN 53 WHEN - ( + 58 ) THEN NULL WHEN 99 THEN 40 + - 5 + - - 85 WHEN + 57 THEN NULL END - + 57 / 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT - CASE - 55 WHEN - 97 * - CAST ( NULL AS INTEGER ) + - 77 THEN 53 WHEN - ( + 58 ) THEN NULL WHEN 99 THEN 40 + - 5 + - - 85 WHEN + 57 THEN NULL END - + 57 / 63 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9508
SELECT + 7 - + 65 * - + 95, COALESCE ( + - 42, + + CAST( NULL AS SIGNED ) - - NULLIF ( - + 7, - + 71 ) ) AS col1
----
6182
-42

skipif mysql # not compatible
query II rowsort label-9508
SELECT + 7 - + 65 * - + 95, COALESCE ( + - 42, + + CAST ( NULL AS INTEGER ) - - NULLIF ( - + 7, - + 71 ) ) AS col1
----
6182
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9509
SELECT ALL CAST( + 1 AS SIGNED ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL CAST ( + 1 AS INTEGER ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT DISTINCT - NULLIF ( - - 33, + + NULLIF ( NULLIF ( - 80, - 9 - - + 63 ), - 39 ) * 66 * 99 * - + 43 ) * - 22 * - COUNT( * )
----
-726

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT - NULLIF ( - - 33, + + NULLIF ( NULLIF ( - 80, - 9 - - + 63 ), - 39 ) * 66 * 99 * - + 43 ) * - 22 * - COUNT ( * )
----
-726

query II rowsort
SELECT ALL + 16 AS col2, - 86 AS col2
----
16
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT + 1 * + COUNT( ALL - + 51 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9512
SELECT + 1 * + COUNT ( ALL - + 51 ) * + COUNT ( * )
----
1

query I rowsort
SELECT ALL 6 * + 41 col0
----
246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9514
SELECT CAST( + + 54 AS SIGNED ) col2
----
54

skipif mysql # not compatible
query I rowsort label-9514
SELECT CAST ( + + 54 AS INTEGER ) col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9515
SELECT + CAST( NULL AS SIGNED ) col2, + 55 - + COUNT( * ) AS col0
----
NULL
54

skipif mysql # not compatible
query II rowsort label-9515
SELECT + CAST ( NULL AS INTEGER ) col2, + 55 - + COUNT ( * ) AS col0
----
NULL
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9516
SELECT + 65 DIV + COUNT( * ) col2
----
65

skipif mysql # not compatible
query I rowsort label-9516
SELECT + 65 / + COUNT ( * ) col2
----
65

query I rowsort
SELECT + 70 * - + 29 * + - 89 AS col2
----
180670

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9518
SELECT + 3 / + 50 - + + CAST( NULL AS DECIMAL ) + + - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9518
SELECT + 3 / + 50 - + + CAST ( NULL AS REAL ) + + - 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT + COUNT( * ) * - - 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9519
SELECT + COUNT ( * ) * - - 65 AS col0
----
65

query I rowsort
SELECT - ( + + 36 ) * + 74 AS col0
----
-2664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9521
SELECT ALL CASE - - COALESCE ( - AVG ( ALL + 19 ), + - MIN( - 99 ) ) WHEN + + 4 THEN NULL WHEN - COUNT( * ) THEN + NULLIF ( + CAST( NULL AS DECIMAL ), + + CASE - 1 WHEN - - 3 / COUNT( * ) THEN + 45 END * 93 ) ELSE 11 END / 61 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL CASE - - COALESCE ( - AVG ( ALL + 19 ), + - MIN ( - 99 ) ) WHEN + + 4 THEN NULL WHEN - COUNT ( * ) THEN + NULLIF ( + CAST ( NULL AS REAL ), + + CASE - 1 WHEN - - 3 / COUNT ( * ) THEN + 45 END * 93 ) ELSE 11 END / 61 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT CAST( 50 AS SIGNED ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9522
SELECT CAST ( 50 AS INTEGER ) AS col1
----
50

query I rowsort
SELECT + 35 * + + 40
----
1400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9524
SELECT + COUNT( * ) * - - 91 + - 44 - 15 * + CAST( NULL AS SIGNED ) * + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9524
SELECT + COUNT ( * ) * - - 91 + - 44 - 15 * + CAST ( NULL AS INTEGER ) * + 24 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9525
SELECT DISTINCT 21 DIV + + 44 + - + 75
----
-75

skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT 21 / + + 44 + - + 75
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT - 45 * - + 7 * 93 + - 2 + - MAX( - + 84 ) + - + 59
----
29318

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - 45 * - + 7 * 93 + - 2 + - MAX ( - + 84 ) + - + 59
----
29318

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT + 30 + + - MIN( + + 26 ) * - 14 AS col0
----
394

skipif mysql # not compatible
query I rowsort label-9527
SELECT + 30 + + - MIN ( + + 26 ) * - 14 AS col0
----
394

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT ALL 69 * + + COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL 69 * + + COUNT ( * ) AS col1
----
69

query II rowsort
SELECT 33 AS col2, - 27 * - + 94
----
33
2538

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT + + CASE - 52 WHEN + COUNT( * ) THEN NULL ELSE - 6 + - + 49 END
----
-55

skipif mysql # not compatible
query I rowsort label-9530
SELECT + + CASE - 52 WHEN + COUNT ( * ) THEN NULL ELSE - 6 + - + 49 END
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9531
SELECT ALL - - CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL - - CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT 4 * - 70 * COUNT( * ) - + 19 + 21 col1
----
-278

skipif mysql # not compatible
query I rowsort label-9532
SELECT 4 * - 70 * COUNT ( * ) - + 19 + 21 col1
----
-278

query I rowsort
SELECT ( + 51 ) + - 77
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9534
SELECT DISTINCT 41 AS col1, CASE - CAST( NULL AS SIGNED ) WHEN + NULLIF ( + - 80, + CAST( COUNT( * ) AS SIGNED ) ) + - 24 THEN - ( - 6 ) - CASE - 8 WHEN 69 * COALESCE ( + NULLIF ( ( 67 ), 19 ), CASE - 34 WHEN + CAST( NULL AS SIGNED ) THEN 74 * + COALESCE ( + 15, - 10, 96 * 39 + - CASE 51 WHEN - 66 * 46 THEN + 37 / - 11 WHEN 8 THEN + 91 ELSE - COUNT( * ) END ) END ) - - 20 THEN + SUM( DISTINCT 3 ) / + 95 WHEN + 31 * CASE 19 WHEN + CAST( NULL AS SIGNED ) / 93 - - CAST( NULL AS SIGNED ) THEN COUNT( * ) ELSE 29 + + COUNT( * ) END + 74 THEN NULL END END
----
41
NULL

skipif mysql # not compatible
query II rowsort label-9534
SELECT DISTINCT 41 AS col1, CASE - CAST ( NULL AS INTEGER ) WHEN + NULLIF ( + - 80, + CAST ( COUNT ( * ) AS INTEGER ) ) + - 24 THEN - ( - 6 ) - CASE - 8 WHEN 69 * COALESCE ( + NULLIF ( ( 67 ), 19 ), CASE - 34 WHEN + CAST ( NULL AS INTEGER ) THEN 74 * + COALESCE ( + 15, - 10, 96 * 39 + - CASE 51 WHEN - 66 * 46 THEN + 37 / - 11 WHEN 8 THEN + 91 ELSE - COUNT ( * ) END ) END ) - - 20 THEN + SUM ( DISTINCT 3 ) / + 95 WHEN + 31 * CASE 19 WHEN + CAST ( NULL AS INTEGER ) / 93 - - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) ELSE 29 + + COUNT ( * ) END + 74 THEN NULL END END
----
41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT ALL + COALESCE ( - COUNT( DISTINCT 58 ), - + ( + - COUNT( * ) ) ) - + MIN( DISTINCT 27 )
----
-28

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL + COALESCE ( - COUNT ( DISTINCT 58 ), - + ( + - COUNT ( * ) ) ) - + MIN ( DISTINCT 27 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT - - 13 * + ( + - SUM( 72 ) ) + + 26
----
-910

skipif mysql # not compatible
query I rowsort label-9536
SELECT - - 13 * + ( + - SUM ( 72 ) ) + + 26
----
-910

onlyif mysql # aggregate syntax: 
query II rowsort label-9537
SELECT ALL + 23 col1, NULLIF ( COUNT( * ), + 47 ) + 59 col0
----
23
60

skipif mysql # not compatible
query II rowsort label-9537
SELECT ALL + 23 col1, NULLIF ( COUNT ( * ), + 47 ) + 59 col0
----
23
60

query I rowsort
SELECT 67 + + 29 AS col1
----
96

query II rowsort
SELECT - + 10, - 37 + - 9 col1
----
-10
-46

query I rowsort
SELECT - 60 + + - 84
----
-144

query I rowsort
SELECT 56 - - + 21
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT ALL - - CAST( - CAST( + 42 AS SIGNED ) AS SIGNED ) * + + 56 * COALESCE ( 6, - 40 * - + 4 ) + - 23 AS col0
----
-14135

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL - - CAST ( - CAST ( + 42 AS INTEGER ) AS INTEGER ) * + + 56 * COALESCE ( 6, - 40 * - + 4 ) + - 23 AS col0
----
-14135

query I rowsort
SELECT - 73 + + 18 col0
----
-55

query I rowsort
SELECT - 43 + 19
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT - + COUNT( + 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-9545
SELECT - + COUNT ( + 54 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + MAX( DISTINCT - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-9546
SELECT + MAX ( DISTINCT - 66 )
----
-66

query I rowsort
SELECT DISTINCT + + 74 * - - 91 * 82 + + 42 * - 71
----
549206

onlyif mysql # DIV for integer division: 
query I rowsort label-9548
SELECT ALL - COALESCE ( + 83, + 47, 56, COALESCE ( 95, + ( - 37 ) * + 54 + 73 ) DIV - + 30 ) * - + 58 + 93 AS col1
----
4907

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL - COALESCE ( + 83, + 47, 56, COALESCE ( 95, + ( - 37 ) * + 54 + 73 ) / - + 30 ) * - + 58 + 93 AS col1
----
4907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT + COALESCE ( CAST( - + 45 AS SIGNED ), 93 - 67, - 93 ) + 80
----
35

skipif mysql # not compatible
query I rowsort label-9549
SELECT + COALESCE ( CAST ( - + 45 AS INTEGER ), 93 - 67, - 93 ) + 80
----
35

query I rowsort
SELECT DISTINCT + 17 * + 84
----
1428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9551
SELECT 32 + + MIN( 57 ) - + 86 - - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * + MAX( - - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9551
SELECT 32 + + MIN ( 57 ) - + 86 - - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * + MAX ( - - 57 )
----
NULL

query I rowsort
SELECT DISTINCT - 72 + 52 col2
----
-20

query I rowsort
SELECT 80 + ( 11 ) - - 59 AS col1
----
150

query I rowsort
SELECT 87 * - 85 AS col2
----
-7395

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ALL 53 + - 34 * + + 8 * + SUM( DISTINCT + 27 ) + - - 63
----
-7228

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL 53 + - 34 * + + 8 * + SUM ( DISTINCT + 27 ) + - - 63
----
-7228

query I rowsort
SELECT ALL 12 + + 6
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9557
SELECT DISTINCT - 73 + + - COALESCE ( + + SUM( + + 52 ), - 97 * + 73 * + - 94 + - CAST( + + CASE + COALESCE ( - 5, 12 * 6 ) WHEN COUNT( * ) THEN + ( - NULLIF ( 64, CAST( NULL AS SIGNED ) ) ) WHEN + 86 * + 57 THEN 37 * ( - CASE 81 WHEN - 15 * 16 THEN - 28 ELSE NULL END ) ELSE COUNT( * ) END AS SIGNED ) ) * + 37
----
-1997

skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT - 73 + + - COALESCE ( + + SUM ( + + 52 ), - 97 * + 73 * + - 94 + - CAST ( + + CASE + COALESCE ( - 5, 12 * 6 ) WHEN COUNT ( * ) THEN + ( - NULLIF ( 64, CAST ( NULL AS INTEGER ) ) ) WHEN + 86 * + 57 THEN 37 * ( - CASE 81 WHEN - 15 * 16 THEN - 28 ELSE NULL END ) ELSE COUNT ( * ) END AS INTEGER ) ) * + 37
----
-1997

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT 70 * - - ( COUNT( * ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9558
SELECT 70 * - - ( COUNT ( * ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT ALL 5 * + SUM( DISTINCT - - 15 ) * + 10 * + - 91 * 9 AS col1
----
-614250

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL 5 * + SUM ( DISTINCT - - 15 ) * + 10 * + - 91 * 9 AS col1
----
-614250

query I rowsort
SELECT 77 + ( + 50 )
----
127

query I rowsort
SELECT ALL - 55 + - - ( + 0 ) AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT ALL + 0 + + CAST( NULL AS SIGNED ) * + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL + 0 + + CAST ( NULL AS INTEGER ) * + - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT 52 + - COALESCE ( + MIN( DISTINCT - 22 ), + COUNT( * ) * - - COUNT( * ) + + - 63 * + ( + 56 ) + + 68 ) * - COUNT( 45 )
----
30

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT 52 + - COALESCE ( + MIN ( DISTINCT - 22 ), + COUNT ( * ) * - - COUNT ( * ) + + - 63 * + ( + 56 ) + + 68 ) * - COUNT ( 45 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9564
SELECT 67 DIV + - MIN( ALL - - 23 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9564
SELECT 67 / + - MIN ( ALL - - 23 ) AS col2
----
-2

query I rowsort
SELECT 55 * + 76 + - 79 * 6 AS col1
----
3706

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT - + 2 DIV ( + + 97 ) + + 99 + + 81 AS col1
----
180

skipif mysql # not compatible
query I rowsort label-9566
SELECT - + 2 / ( + + 97 ) + + 99 + + 81 AS col1
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9567
SELECT ALL + NULLIF ( - - COUNT( * ), - - 41 ) DIV + 31 + + - 80
----
-80

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL + NULLIF ( - - COUNT ( * ), - - 41 ) / + 31 + + - 80
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9568
SELECT + 50 DIV COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9568
SELECT + 50 / COUNT ( * ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9569
SELECT ALL + 86 * 58 * SUM( 76 ) AS col2, + 26 col2
----
379088
26

skipif mysql # not compatible
query II rowsort label-9569
SELECT ALL + 86 * 58 * SUM ( 76 ) AS col2, + 26 col2
----
379088
26

query I rowsort
SELECT + 13 + + + 76
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT - - COALESCE ( + COALESCE ( - + 24, - + COUNT( * ) ), - + 79 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9571
SELECT - - COALESCE ( + COALESCE ( - + 24, - + COUNT ( * ) ), - + 79 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT + 67 * + COUNT( * ) * - 36 + 6 AS col2
----
-2406

skipif mysql # not compatible
query I rowsort label-9572
SELECT + 67 * + COUNT ( * ) * - 36 + 6 AS col2
----
-2406

query II rowsort
SELECT + 66 * - 93 AS col1, + 41 AS col0
----
-6138
41

query I rowsort
SELECT 2 * - AVG ( DISTINCT + + CASE 94 WHEN + 5 / - + 37 THEN 41 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9575
SELECT MIN( - 35 ), COUNT( * ) + 40 AS col1
----
-35
41

skipif mysql # not compatible
query II rowsort label-9575
SELECT MIN ( - 35 ), COUNT ( * ) + 40 AS col1
----
-35
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT ALL + COUNT( DISTINCT 22 ) * - MIN( DISTINCT + 21 ) / + 65 + CASE - 12 WHEN + 91 THEN + COUNT( * ) * - 82 END / + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL + COUNT ( DISTINCT 22 ) * - MIN ( DISTINCT + 21 ) / + 65 + CASE - 12 WHEN + 91 THEN + COUNT ( * ) * - 82 END / + - 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9577
SELECT 81 * 50 AS col0, + MIN( + CAST( + 80 AS SIGNED ) ) AS col1
----
4050
80

skipif mysql # not compatible
query II rowsort label-9577
SELECT 81 * 50 AS col0, + MIN ( + CAST ( + 80 AS INTEGER ) ) AS col1
----
4050
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT MAX( DISTINCT 79 )
----
79

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT MAX ( DISTINCT 79 )
----
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9579
SELECT ALL + CAST( - + 79 AS SIGNED ) DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL + CAST ( - + 79 AS INTEGER ) / + 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9580
SELECT 36 + + 12 + NULLIF ( + 16, + 41 ) + + - 57 + CAST( NULL AS SIGNED ) + - 86 * + 11 + - 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9580
SELECT 36 + + 12 + NULLIF ( + 16, + 41 ) + + - 57 + CAST ( NULL AS INTEGER ) + - 86 * + 11 + - 25 AS col2
----
NULL

query I rowsort
SELECT 42 * + 17 AS col2
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT 77 + - - COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9582
SELECT 77 + - - COUNT ( * ) AS col1
----
78

query I rowsort
SELECT DISTINCT - 86 + - 17
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9584
SELECT 4 AS col2, CAST( NULL AS SIGNED ) * 92 + + 57
----
4
NULL

skipif mysql # not compatible
query II rowsort label-9584
SELECT 4 AS col2, CAST ( NULL AS INTEGER ) * 92 + + 57
----
4
NULL

query II rowsort
SELECT - 62 AS col2, - 20 * 68 + + 64
----
-62
-1296

query I rowsort
SELECT ALL - 68 + - 83 AS col0
----
-151

query II rowsort
SELECT DISTINCT + 41 + + + ( + - 52 ) AS col2, 77 AS col1
----
-11
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT ALL MIN( + - 16 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL MIN ( + - 16 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT DISTINCT - COUNT( * ) + 14
----
13

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT - COUNT ( * ) + 14
----
13

query I rowsort
SELECT 80 + 88
----
168

query I rowsort
SELECT ALL - 69 + 15 AS col2
----
-54

query I rowsort
SELECT DISTINCT - NULLIF ( - - 61, - + 22 * - + 39 )
----
-61

query II rowsort
SELECT DISTINCT 25 * 2 + - 78 AS col0, - 2 * - - 67 AS col1
----
-28
-134

query I rowsort
SELECT 5 * + 91 AS col0
----
455

onlyif mysql # DIV for integer division: 
query I rowsort label-9595
SELECT ALL 0 * + - 20 DIV 20 - - 98 * + + 29 - 6
----
2836

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL 0 * + - 20 / 20 - - 98 * + + 29 - 6
----
2836

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT ALL - ( + MIN( DISTINCT + 98 ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL - ( + MIN ( DISTINCT + 98 ) ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT DISTINCT + - 83 * + - COALESCE ( 90, - - 7 * + 56 ) - + - CASE - + 47 WHEN + - 23 * - 27 * + COUNT( * ) THEN NULL ELSE + 48 END * 50 * - 14
----
-26130

skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT + - 83 * + - COALESCE ( 90, - - 7 * + 56 ) - + - CASE - + 47 WHEN + - 23 * - 27 * + COUNT ( * ) THEN NULL ELSE + 48 END * 50 * - 14
----
-26130

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT - + COUNT( * ) * - 49 + - + 60 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9598
SELECT - + COUNT ( * ) * - 49 + - + 60 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9599
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) * - COUNT( * ) - + + 71 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) - + + 71 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-9600
SELECT DISTINCT + SUM( + + 47 ) * - 48 AS col1, COUNT( * )
----
-2256
1

skipif mysql # not compatible
query II rowsort label-9600
SELECT DISTINCT + SUM ( + + 47 ) * - 48 AS col1, COUNT ( * )
----
-2256
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9601
SELECT DISTINCT + 19 * - CAST( NULL AS SIGNED ) - 68 + + 76 - + COUNT( * ) * + 68 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT + 19 * - CAST ( NULL AS INTEGER ) - 68 + + 76 - + COUNT ( * ) * + 68 col1
----
NULL

query I rowsort
SELECT DISTINCT + + 40 col2
----
40

query I rowsort
SELECT - - 27 + 24
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT DISTINCT + + 94 * + - ( + - COUNT( * ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT + + 94 * + - ( + - COUNT ( * ) ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT COUNT( DISTINCT 71 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9605
SELECT COUNT ( DISTINCT 71 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT ALL + + CASE + 23 WHEN - 1 THEN NULL WHEN 65 THEN - COUNT( ALL + 46 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL + + CASE + 23 WHEN - 1 THEN NULL WHEN 65 THEN - COUNT ( ALL + 46 ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT + - 27 AS col0, 20
----
-27
20

query I rowsort
SELECT + 64 + + - 37 col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9609
SELECT ALL NULLIF ( - 51, - 50 + 98 ) DIV 49 AS col2, COUNT( * ) + 20 + 65 - + 3
----
-1
83

skipif mysql # not compatible
query II rowsort label-9609
SELECT ALL NULLIF ( - 51, - 50 + 98 ) / 49 AS col2, COUNT ( * ) + 20 + 65 - + 3
----
-1
83

query I rowsort
SELECT + 91 + + + 50
----
141

query I rowsort
SELECT ALL 61 + - 44 + 68 AS col0
----
85

query I rowsort
SELECT ALL 42 + + 43 * + 33 AS col0
----
1461

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT + 48 + + COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9613
SELECT + 48 + + COUNT ( * ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT - NULLIF ( - COUNT( * ), + + MIN( - 75 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9614
SELECT - NULLIF ( - COUNT ( * ), + + MIN ( - 75 ) ) AS col1
----
1

query I rowsort
SELECT - 30 + + 59
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9616
SELECT - COALESCE ( + 0, + - ( CAST( NULL AS SIGNED ) ), + 82 * - 75 + CASE + COUNT( * ) WHEN + + 2 THEN + 15 END * + ( + - 46 ) * + 34 + COUNT( * ) + - - 67 * - 80 * + 38 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9616
SELECT - COALESCE ( + 0, + - ( CAST ( NULL AS INTEGER ) ), + 82 * - 75 + CASE + COUNT ( * ) WHEN + + 2 THEN + 15 END * + ( + - 46 ) * + 34 + COUNT ( * ) + - - 67 * - 80 * + 38 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL MAX( - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL MAX ( - 30 )
----
-30

query I rowsort
SELECT DISTINCT 41 + + 58 * + 64 - - + 99
----
3852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9619
SELECT DISTINCT CASE + NULLIF ( - COUNT( * ), - CAST( - 45 AS SIGNED ) ) WHEN - 24 * + + 70 * + 59 THEN NULL WHEN - COUNT( * ) THEN 15 + - + COUNT( * ) END AS col2, - CASE - 17 WHEN + 72 THEN 58 WHEN - 53 THEN NULL ELSE - 88 + + COUNT( * ) END col1
----
14
87

skipif mysql # not compatible
query II rowsort label-9619
SELECT DISTINCT CASE + NULLIF ( - COUNT ( * ), - CAST ( - 45 AS INTEGER ) ) WHEN - 24 * + + 70 * + 59 THEN NULL WHEN - COUNT ( * ) THEN 15 + - + COUNT ( * ) END AS col2, - CASE - 17 WHEN + 72 THEN 58 WHEN - 53 THEN NULL ELSE - 88 + + COUNT ( * ) END col1
----
14
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT ALL 76 + - 4 + ( 62 ) * - 60 * + COUNT( * ) AS col0
----
-3648

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL 76 + - 4 + ( 62 ) * - 60 * + COUNT ( * ) AS col0
----
-3648

query II rowsort
SELECT ALL 72, 1 + 66 col0
----
72
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9622
SELECT + COUNT( * ) + - 2 DIV 79
----
1

skipif mysql # not compatible
query I rowsort label-9622
SELECT + COUNT ( * ) + - 2 / 79
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9623
SELECT ALL COUNT( * ), ( - 63 ) * COUNT( * ) AS col0
----
1
-63

skipif mysql # not compatible
query II rowsort label-9623
SELECT ALL COUNT ( * ), ( - 63 ) * COUNT ( * ) AS col0
----
1
-63

query I rowsort
SELECT + 76 + - 62 + - 63 AS col0
----
-49

query II rowsort
SELECT + ( + 22 ) * NULLIF ( + - ( + + 54 ), + NULLIF ( 43, + 42 ) + - 12 ) AS col0, - 86
----
-1188
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT ALL + MAX( DISTINCT + ( 61 ) ) * - 63 * - + 36 * - NULLIF ( + 71, + 8 ) AS col2
----
-9822708

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL + MAX ( DISTINCT + ( 61 ) ) * - 63 * - + 36 * - NULLIF ( + 71, + 8 ) AS col2
----
-9822708

onlyif mysql # DIV for integer division: 
query I rowsort label-9627
SELECT ALL - 37 - + 78 DIV - - 90
----
-37

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL - 37 - + 78 / - - 90
----
-37

query I rowsort
SELECT ALL + ( + - 90 )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9629
SELECT - - 65 DIV - 54 + + 33 + - - 81
----
113

skipif mysql # not compatible
query I rowsort label-9629
SELECT - - 65 / - 54 + + 33 + - - 81
----
113

query I rowsort
SELECT ALL + 11 * - - 21 + + 22 AS col2
----
253

onlyif mysql # aggregate syntax: 
query II rowsort label-9631
SELECT ALL COALESCE ( + 54, 46 ) * - + COUNT( * ), 16 AS col2
----
-54
16

skipif mysql # not compatible
query II rowsort label-9631
SELECT ALL COALESCE ( + 54, 46 ) * - + COUNT ( * ), 16 AS col2
----
-54
16

query II rowsort
SELECT - - 41 + + ( + ( + 88 ) ) * + 33 * 26 AS col0, + 32 AS col0
----
75545
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9633
SELECT ALL + + 29 col1, - 29 * - - MAX( DISTINCT + 18 )
----
29
-522

skipif mysql # not compatible
query II rowsort label-9633
SELECT ALL + + 29 col1, - 29 * - - MAX ( DISTINCT + 18 )
----
29
-522

query I rowsort
SELECT - 68 + - 44
----
-112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9635
SELECT - - 92 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT - - 92 * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9636
SELECT MAX( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT MAX ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 96 + - 9 col2
----
-105

query II rowsort
SELECT DISTINCT + + 5 col0, 37 * 84 * + - 46
----
5
-142968

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT + - 67 * ( - - COUNT( * ) )
----
-67

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT + - 67 * ( - - COUNT ( * ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT ALL COUNT( * ) * - - COALESCE ( + - 52, + ( + 57 ) + + 61 + + 77 ) + + 37 * + ( - 19 ) col1
----
-755

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL COUNT ( * ) * - - COALESCE ( + - 52, + ( + 57 ) + + 61 + + 77 ) + + 37 * + ( - 19 ) col1
----
-755

onlyif mysql # DIV for integer division: 
query I rowsort label-9641
SELECT ALL + 76 DIV 66
----
1

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL + 76 / 66
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT - + 65 * COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9642
SELECT - + 65 * COUNT ( * ) AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9643
SELECT ALL 92 * - 97 + - + 81 + CAST( - + 45 AS SIGNED ) DIV ( + 84 ) DIV + 97 AS col2
----
-9005

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL 92 * - 97 + - + 81 + CAST ( - + 45 AS INTEGER ) / ( + 84 ) / + 97 AS col2
----
-9005

query I rowsort
SELECT + 12 * - 47 + 17 * - + 14 AS col2
----
-802

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9645
SELECT ALL - 1 AS col2, - 49 + - + CAST( NULL AS DECIMAL ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9645
SELECT ALL - 1 AS col2, - 49 + - + CAST ( NULL AS REAL ) AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT - MIN( DISTINCT - ( + - 7 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-9646
SELECT - MIN ( DISTINCT - ( + - 7 ) )
----
-7

query I rowsort
SELECT - 25 * + 61 * 19 * 6 AS col2
----
-173850

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL - 6 * - 50 + - MIN( - 51 ) + + COUNT( * ) * ( + COALESCE ( + COUNT( * ), - 40 ) )
----
352

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL - 6 * - 50 + - MIN ( - 51 ) + + COUNT ( * ) * ( + COALESCE ( + COUNT ( * ), - 40 ) )
----
352

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9649
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 95 + + 54, 83 AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-9649
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 95 + + 54, 83 AS col1
----
NULL
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9650
SELECT ALL COUNT( * ) * - + CASE + 8 WHEN 52 * - - 17 THEN NULL ELSE + 84 END + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL COUNT ( * ) * - + CASE + 8 WHEN 52 * - - 17 THEN NULL ELSE + 84 END + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 68 + - - 69 * + + 24
----
1724

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9652
SELECT DISTINCT COUNT( * ) - 47 AS col2, 37 DIV - - COUNT( * ) - + COUNT( * ) * + 54 AS col2
----
-46
-17

skipif mysql # not compatible
query II rowsort label-9652
SELECT DISTINCT COUNT ( * ) - 47 AS col2, 37 / - - COUNT ( * ) - + COUNT ( * ) * + 54 AS col2
----
-46
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL 82 * + COUNT( * ) * COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL 82 * + COUNT ( * ) * COUNT ( * ) AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9654
SELECT + ( + ( + 46 ) ) * 57 DIV COALESCE ( + 13, ( + + COUNT( * ) ), - NULLIF ( 88, - + COUNT( * ) ) * - 43 - - 89 ) col0
----
201

skipif mysql # not compatible
query I rowsort label-9654
SELECT + ( + ( + 46 ) ) * 57 / COALESCE ( + 13, ( + + COUNT ( * ) ), - NULLIF ( 88, - + COUNT ( * ) ) * - 43 - - 89 ) col0
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT + 35 + - - MAX( 41 ) + - + 61 * - 91 AS col1
----
5627

skipif mysql # not compatible
query I rowsort label-9655
SELECT + 35 + - - MAX ( 41 ) + - + 61 * - 91 AS col1
----
5627

query I rowsort
SELECT - ( - 29 ) AS col0
----
29

query I rowsort
SELECT + 58 + - 4 * + - 21 AS col1
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-9658
SELECT ALL COUNT( * ) - 58 AS col0, - 73 * COUNT( DISTINCT + 3 ) AS col0
----
-57
-73

skipif mysql # not compatible
query II rowsort label-9658
SELECT ALL COUNT ( * ) - 58 AS col0, - 73 * COUNT ( DISTINCT + 3 ) AS col0
----
-57
-73

query II rowsort
SELECT ALL 34 * 5 AS col0, 98 AS col2
----
170
98

query I rowsort
SELECT DISTINCT 52 - + + 93
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT CAST( NULL AS SIGNED ) * + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT CAST ( NULL AS INTEGER ) * + 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9662
SELECT DISTINCT + + COUNT( * ) DIV + + 9
----
0

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT + + COUNT ( * ) / + + 9
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9663
SELECT + 69 DIV + 91 + - 11 * 62 + - ( + 60 ) + 15 + - 88 + - 61 + - - 63 DIV COUNT( * ) + 99
----
-714

skipif mysql # not compatible
query I rowsort label-9663
SELECT + 69 / + 91 + - 11 * 62 + - ( + 60 ) + 15 + - 88 + - 61 + - - 63 / COUNT ( * ) + 99
----
-714

query I rowsort
SELECT - 66 * 26 AS col2
----
-1716

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9665
SELECT ALL - - AVG ( DISTINCT 79 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL - - AVG ( DISTINCT 79 ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9666
SELECT DISTINCT 98 + - COUNT( * ) + - ( - 32 ) DIV 6
----
102

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT 98 + - COUNT ( * ) + - ( - 32 ) / 6
----
102

onlyif mysql # DIV for integer division: 
query II rowsort label-9667
SELECT DISTINCT - 38 DIV 87 col0, 3 AS col0
----
0
3

skipif mysql # not compatible
query II rowsort label-9667
SELECT DISTINCT - 38 / 87 col0, 3 AS col0
----
0
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9668
SELECT DISTINCT - - 2 + + - NULLIF ( - MAX( ALL - 11 ), - + CAST( NULL AS SIGNED ) * + + 67 / - COUNT( * ) ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT - - 2 + + - NULLIF ( - MAX ( ALL - 11 ), - + CAST ( NULL AS INTEGER ) * + + 67 / - COUNT ( * ) ) col2
----
-9

query I rowsort
SELECT ALL - 5 * + ( 96 ) AS col2
----
-480

query II rowsort
SELECT 36 + + 23, + 69 col0
----
59
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL - + 60 + + SUM( + 97 ) col0
----
37

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL - + 60 + + SUM ( + 97 ) col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT COUNT( + 4 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9672
SELECT COUNT ( + 4 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9673
SELECT - 89 * - 80 + - 23 * - 19 * COUNT( * ) * CAST( + ( + COUNT( * ) ) AS SIGNED ) + 59 AS col2
----
7616

skipif mysql # not compatible
query I rowsort label-9673
SELECT - 89 * - 80 + - 23 * - 19 * COUNT ( * ) * CAST ( + ( + COUNT ( * ) ) AS INTEGER ) + 59 AS col2
----
7616

query I rowsort
SELECT - 9 * + - 8 * + - ( + 45 ) AS col2
----
-3240

onlyif mysql # aggregate syntax: 
query II rowsort label-9675
SELECT DISTINCT + ( 13 ) + 99 * - NULLIF ( - 87, - COUNT( * ) ) AS col1, 1 + + 2 col1
----
8626
3

skipif mysql # not compatible
query II rowsort label-9675
SELECT DISTINCT + ( 13 ) + 99 * - NULLIF ( - 87, - COUNT ( * ) ) AS col1, 1 + + 2 col1
----
8626
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9676
SELECT ALL - COUNT( * ) * - + COUNT( * ) DIV COUNT( * ) * COUNT( ALL + 92 )
----
1

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) / COUNT ( * ) * COUNT ( ALL + 92 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9677
SELECT 71 + + - 32 - + COALESCE ( - - 2, - COALESCE ( - COALESCE ( + + 34, 91 DIV 7 DIV - + CAST( NULL AS SIGNED ) ), COUNT( * ) ) * - + CAST( - + 1 AS SIGNED ) - - 51, + 71 - - 70 ) DIV - - 46
----
39

skipif mysql # not compatible
query I rowsort label-9677
SELECT 71 + + - 32 - + COALESCE ( - - 2, - COALESCE ( - COALESCE ( + + 34, 91 / 7 / - + CAST ( NULL AS INTEGER ) ), COUNT ( * ) ) * - + CAST ( - + 1 AS INTEGER ) - - 51, + 71 - - 70 ) / - - 46
----
39

query II rowsort
SELECT DISTINCT 53, - 22 AS col1
----
53
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT DISTINCT - 27 * 73 * - - COUNT( * )
----
-1971

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT - 27 * 73 * - - COUNT ( * )
----
-1971

onlyif mysql # aggregate syntax: 
query II rowsort label-9680
SELECT ALL 59, + 93 + + 59 + + 47 - - COUNT( * ) * - COUNT( * ) AS col1
----
59
198

skipif mysql # not compatible
query II rowsort label-9680
SELECT ALL 59, + 93 + + 59 + + 47 - - COUNT ( * ) * - COUNT ( * ) AS col1
----
59
198

onlyif mysql # DIV for integer division: 
query I rowsort label-9681
SELECT 61 DIV + 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9681
SELECT 61 / + 69 AS col2
----
0

query I rowsort
SELECT 96 * - ( + 31 ) col0
----
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT 67 * + COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-9683
SELECT 67 * + COUNT ( * ) AS col1
----
67

query II rowsort
SELECT 63 AS col1, 99 AS col1
----
63
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9685
SELECT 15 + - 91 + + NULLIF ( + - 43, + + 64 * + COUNT( * ) + 57 + 31 * - CASE 14 WHEN + - 15 THEN - ( - CAST( + 62 AS SIGNED ) ) WHEN + - 32 * + - 7 * + 59 + 27 THEN NULL WHEN 15 THEN + 29 ELSE ( 8 ) END ) AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-9685
SELECT 15 + - 91 + + NULLIF ( + - 43, + + 64 * + COUNT ( * ) + 57 + 31 * - CASE 14 WHEN + - 15 THEN - ( - CAST ( + 62 AS INTEGER ) ) WHEN + - 32 * + - 7 * + 59 + 27 THEN NULL WHEN 15 THEN + 29 ELSE ( 8 ) END ) AS col0
----
-119

onlyif mysql # aggregate syntax: 
query II rowsort label-9686
SELECT DISTINCT 27, COUNT( DISTINCT 64 ) AS col1
----
27
1

skipif mysql # not compatible
query II rowsort label-9686
SELECT DISTINCT 27, COUNT ( DISTINCT 64 ) AS col1
----
27
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9687
SELECT ALL 75 DIV 52
----
1

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL 75 / 52
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT 5 + + COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9688
SELECT 5 + + COUNT ( * ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT 11 * - COALESCE ( - SUM( DISTINCT 62 ), + 73 ) AS col0
----
682

skipif mysql # not compatible
query I rowsort label-9689
SELECT 11 * - COALESCE ( - SUM ( DISTINCT 62 ), + 73 ) AS col0
----
682

query II rowsort
SELECT - 89 col0, - 42 col0
----
-89
-42

query I rowsort
SELECT ( 43 ) * 7
----
301

onlyif mysql # DIV for integer division: 
query II rowsort label-9692
SELECT ALL 91 AS col0, + COALESCE ( ( + + CASE 45 WHEN + - 19 THEN 89 DIV - + 47 + + + 63 END ), - 32 ) * - - 32
----
91
-1024

skipif mysql # not compatible
query II rowsort label-9692
SELECT ALL 91 AS col0, + COALESCE ( ( + + CASE 45 WHEN + - 19 THEN 89 / - + 47 + + + 63 END ), - 32 ) * - - 32
----
91
-1024

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT DISTINCT - NULLIF ( ( + + 24 ), - 92 * COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT - NULLIF ( ( + + 24 ), - 92 * COUNT ( * ) )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9694
SELECT ALL COALESCE ( 61, 82 * 52 + + ( + MAX( DISTINCT 89 ) ) + COALESCE ( - 7, + COUNT( * ) DIV + - 35, + 98 * + 34 ) * - - CAST( NULL AS SIGNED ) + 44 ) * 44 + - 61 * - 57 + 60
----
6221

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL COALESCE ( 61, 82 * 52 + + ( + MAX ( DISTINCT 89 ) ) + COALESCE ( - 7, + COUNT ( * ) / + - 35, + 98 * + 34 ) * - - CAST ( NULL AS INTEGER ) + 44 ) * 44 + - 61 * - 57 + 60
----
6221

query I rowsort
SELECT + CASE NULLIF ( 89, + 39 + - - 81 ) WHEN 81 THEN + 49 WHEN - AVG ( ALL + 79 ) THEN - 96 END
----
NULL

query I rowsort
SELECT - - 34 * - - 41 + + 29 * 23 AS col2
----
2061

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9697
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * CASE + 95 WHEN + 12 + 99 * + 4 THEN + 98 WHEN 53 * - + 82 + - - 21 - ( - AVG ( - + 85 ) ) THEN - + 11 + - - COUNT( * ) + + 17 + - 76 + + AVG ( 7 ) * - 90 ELSE NULL END + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * CASE + 95 WHEN + 12 + 99 * + 4 THEN + 98 WHEN 53 * - + 82 + - - 21 - ( - AVG ( - + 85 ) ) THEN - + 11 + - - COUNT ( * ) + + 17 + - 76 + + AVG ( 7 ) * - 90 ELSE NULL END + 26 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT ALL - COUNT( * ) * - 32 + + 55 + - 9 - 0 col1
----
78

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL - COUNT ( * ) * - 32 + + 55 + - 9 - 0 col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT ALL + 63 * - - 64 * + CASE + + COUNT( * ) WHEN + 27 - + 15 THEN - 75 END * - + 23 + + 87 + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL + 63 * - - 64 * + CASE + + COUNT ( * ) WHEN + 27 - + 15 THEN - 75 END * - + 23 + + 87 + 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT ALL 27 + + + NULLIF ( - 99, + - 63 * + 37 + - MIN( ALL - 3 ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL 27 + + + NULLIF ( - 99, + - 63 * + 37 + - MIN ( ALL - 3 ) ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT 4 * - ( + MIN( DISTINCT - 28 ) )
----
112

skipif mysql # not compatible
query I rowsort label-9701
SELECT 4 * - ( + MIN ( DISTINCT - 28 ) )
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9702
SELECT - 16 * 30 * COUNT( * ) + - + CAST( NULL AS SIGNED ) + - 20 * - COUNT( * ) - - 67 / - CASE + 51 WHEN + - 65 THEN - 44 ELSE - + COALESCE ( + 21, 68 * + COUNT( * ) / + 20 + + 39 / + - 97 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT - 16 * 30 * COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + - 20 * - COUNT ( * ) - - 67 / - CASE + 51 WHEN + - 65 THEN - 44 ELSE - + COALESCE ( + 21, 68 * + COUNT ( * ) / + 20 + + 39 / + - 97 ) END AS col2
----
NULL

query I rowsort
SELECT ALL - 52 + - 93
----
-145

onlyif mysql # DIV for integer division: 
query I rowsort label-9704
SELECT ALL 54 DIV + + 46
----
1

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL 54 / + + 46
----
1

query II rowsort
SELECT 54 AS col2, 86 AS col0
----
54
86

query I rowsort
SELECT COALESCE ( 1, + 44 ) + - 29 AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9707
SELECT DISTINCT CASE - + 71 WHEN - 45 * - 64 THEN - 94 * COUNT( * ) - - NULLIF ( + 66, 61 ) / 70 WHEN - + 75 THEN NULL ELSE + CAST( NULL AS SIGNED ) + + 9 + AVG ( DISTINCT - ( - + 87 ) ) / + - ( - COUNT( * ) ) END + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT CASE - + 71 WHEN - 45 * - 64 THEN - 94 * COUNT ( * ) - - NULLIF ( + 66, 61 ) / 70 WHEN - + 75 THEN NULL ELSE + CAST ( NULL AS INTEGER ) + + 9 + AVG ( DISTINCT - ( - + 87 ) ) / + - ( - COUNT ( * ) ) END + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT DISTINCT 12 - - + 86 + - COUNT( - 70 ) * 22 * - COUNT( * )
----
120

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT 12 - - + 86 + - COUNT ( - 70 ) * 22 * - COUNT ( * )
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT - COUNT( * ) - - - 47 + + COUNT( * ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT - COUNT ( * ) - - - 47 + + COUNT ( * ) col0
----
-47

query I rowsort
SELECT ALL 83 * 33 AS col1
----
2739

query I rowsort
SELECT 90 * + ( - 88 )
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT DISTINCT MIN( - + 48 ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT MIN ( - + 48 ) col2
----
-48

query II rowsort
SELECT DISTINCT - 61 * + - 42 AS col0, + ( + 69 )
----
2562
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT + 69 + MIN( + + 86 )
----
155

skipif mysql # not compatible
query I rowsort label-9714
SELECT + 69 + MIN ( + + 86 )
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT - COALESCE ( + + COUNT( * ), - 45 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9715
SELECT - COALESCE ( + + COUNT ( * ), - 45 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9716
SELECT DISTINCT + - 23 + SUM( - + 91 ) + CAST( NULL AS SIGNED ) / CAST( + COUNT( * ) AS SIGNED ) * + 52 + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT + - 23 + SUM ( - + 91 ) + CAST ( NULL AS INTEGER ) / CAST ( + COUNT ( * ) AS INTEGER ) * + 52 + + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT DISTINCT - 71 * + COUNT( * ) * + - 27 AS col0
----
1917

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT - 71 * + COUNT ( * ) * + - 27 AS col0
----
1917

query I rowsort
SELECT ALL - 8 + - ( 47 ) AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9719
SELECT ALL - 49 + - 24 + - - 29 + - 60 DIV 41
----
-45

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL - 49 + - 24 + - - 29 + - 60 / 41
----
-45

query I rowsort
SELECT DISTINCT - - ( 96 ) + 58 * - + 93
----
-5298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9721
SELECT ALL - + CASE COUNT( * ) WHEN + 16 * + 96 + + 73 + - + 96 * + CAST( 48 AS SIGNED ) * - + 3 THEN NULL ELSE 19 END + + 11
----
-8

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL - + CASE COUNT ( * ) WHEN + 16 * + 96 + + 73 + - + 96 * + CAST ( 48 AS INTEGER ) * - + 3 THEN NULL ELSE 19 END + + 11
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT - COUNT( + 90 ) * ( + - 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9722
SELECT - COUNT ( + 90 ) * ( + - 28 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT + + COUNT( DISTINCT + 70 ) * + 77 - - ( - 26 ) * - 95 AS col0
----
2547

skipif mysql # not compatible
query I rowsort label-9723
SELECT + + COUNT ( DISTINCT + 70 ) * + 77 - - ( - 26 ) * - 95 AS col0
----
2547

onlyif mysql # DIV for integer division: 
query I rowsort label-9724
SELECT + + 44 DIV - 6 - 17
----
-24

skipif mysql # not compatible
query I rowsort label-9724
SELECT + + 44 / - 6 - 17
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-9725
SELECT DISTINCT 43 * + 88, + 12 * COUNT( * ) AS col0
----
3784
12

skipif mysql # not compatible
query II rowsort label-9725
SELECT DISTINCT 43 * + 88, + 12 * COUNT ( * ) AS col0
----
3784
12

query II rowsort
SELECT ALL - 15 * 20 - - 38 + + 67 col2, - NULLIF ( - - 38, + 16 ) AS col2
----
-195
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9727
SELECT + - 58 DIV - COUNT( * ) - + 87 - - 41
----
12

skipif mysql # not compatible
query I rowsort label-9727
SELECT + - 58 / - COUNT ( * ) - + 87 - - 41
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9728
SELECT ALL CAST( - 78 AS SIGNED ) * + 88 col2
----
-6864

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL CAST ( - 78 AS INTEGER ) * + 88 col2
----
-6864

query I rowsort
SELECT ALL - 93 * 73 - - 25
----
-6764

query I rowsort
SELECT DISTINCT - 4 * - + 63 + + 96 - 82
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT ALL + COUNT( + 8 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL + COUNT ( + 8 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9732
SELECT ALL + - CAST( + NULLIF ( 49, - + 1 ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL + - CAST ( + NULLIF ( 49, - + 1 ) AS INTEGER )
----
-49

query I rowsort
SELECT + COALESCE ( + - 81, 98 ) AS col0
----
-81

query I rowsort
SELECT - 83 + + 60 * + 82 col1
----
4837

onlyif mysql # DIV for integer division: 
query I rowsort label-9735
SELECT ( - + 62 ) DIV + 22 - 71 + + + 92 + 7 DIV + 93 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9735
SELECT ( - + 62 ) / + 22 - 71 + + + 92 + 7 / + 93 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9736
SELECT + NULLIF ( 46, - CAST( - + 87 AS SIGNED ) ) * COUNT( 72 ) * + - 38 + + - 2 * + 47 AS col0
----
-1842

skipif mysql # not compatible
query I rowsort label-9736
SELECT + NULLIF ( 46, - CAST ( - + 87 AS INTEGER ) ) * COUNT ( 72 ) * + - 38 + + - 2 * + 47 AS col0
----
-1842

query I rowsort
SELECT + 41 - - 4 + + 87 AS col1
----
132

query I rowsort
SELECT 83 * + - 88 + + 26 AS col2
----
-7278

query I rowsort
SELECT 74 * 30 + 21 * + 61
----
3501

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9740
SELECT ALL COUNT( * ) * + 42 DIV - - 18 AS col2, 52 * + - 99 AS col0
----
2
-5148

skipif mysql # not compatible
query II rowsort label-9740
SELECT ALL COUNT ( * ) * + 42 / - - 18 AS col2, 52 * + - 99 AS col0
----
2
-5148

query I rowsort
SELECT + ( - 73 ) + - 24 col2
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9742
SELECT ALL 11 DIV - COALESCE ( + + 8, 93 * + + 15 + - 12, 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL 11 / - COALESCE ( + + 8, 93 * + + 15 + - 12, 40 )
----
-1

query I rowsort
SELECT ALL + 38 * 68
----
2584

query I rowsort
SELECT DISTINCT 29 * + + 65
----
1885

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT ALL COALESCE ( + 81, - - 32 + - COUNT( * ) + - 58 * + - 85 * - 20 ) col2
----
81

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL COALESCE ( + 81, - - 32 + - COUNT ( * ) + - 58 * + - 85 * - 20 ) col2
----
81

query I rowsort
SELECT + 99 * - 40
----
-3960

query I rowsort
SELECT DISTINCT 80 * - 97 + + 8
----
-7752

query I rowsort
SELECT DISTINCT 23 * - - 40 AS col0
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT MAX( ALL - 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9749
SELECT MAX ( ALL - 86 ) AS col2
----
-86

query I rowsort
SELECT 11 * - 90 + + 8
----
-982

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT - CAST( AVG ( 8 ) AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-9751
SELECT - CAST ( AVG ( 8 ) AS INTEGER )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT DISTINCT + COUNT( * ) + 56
----
57

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT + COUNT ( * ) + 56
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9753
SELECT DISTINCT + CAST( 59 AS SIGNED ) * - + NULLIF ( + 8, - CAST( + - CASE 4 WHEN - 79 THEN 34 END AS SIGNED ) + - 8 )
----
-472

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT + CAST ( 59 AS INTEGER ) * - + NULLIF ( + 8, - CAST ( + - CASE 4 WHEN - 79 THEN 34 END AS INTEGER ) + - 8 )
----
-472

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT - + COUNT( * ) * + ( ( + + 63 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-9754
SELECT - + COUNT ( * ) * + ( ( + + 63 ) )
----
-63

query I rowsort
SELECT - + 32 * + - 33
----
1056

query I rowsort
SELECT - 49 + + 88
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT DISTINCT + NULLIF ( - MAX( + - 61 ), + + 82 * + 1 + + 11 * - - 71 / 3 )
----
61

skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT + NULLIF ( - MAX ( + - 61 ), + + 82 * + 1 + + 11 * - - 71 / 3 )
----
61

query I rowsort
SELECT ALL + 77 - + - 24
----
101

query II rowsort
SELECT - 6 * + + 61 + + 10 AS col0, - 80
----
-356
-80

query I rowsort
SELECT ALL + 66 * - 67 AS col0
----
-4422

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9761
SELECT DISTINCT + + 41 / - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT + + 41 / - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT - - 80 + + 69 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT - - 80 + + 69 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9763
SELECT ALL + - 74 DIV COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL + - 74 / COUNT ( * ) AS col0
----
-74

query I rowsort
SELECT + - ( 59 ) AS col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9765
SELECT - COUNT( ALL - 29 ) DIV + 30 AS col1, 77 * 4 + - NULLIF ( + 66, + 42 + - 95 ) * - 2 + - - 21 AS col0
----
0
461

skipif mysql # not compatible
query II rowsort label-9765
SELECT - COUNT ( ALL - 29 ) / + 30 AS col1, 77 * 4 + - NULLIF ( + 66, + 42 + - 95 ) * - 2 + - - 21 AS col0
----
0
461

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT DISTINCT + + 49 DIV - + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT + + 49 / - + 72 AS col2
----
0

query I rowsort
SELECT ALL + 51 * + 86 * 96
----
421056

query I rowsort
SELECT DISTINCT - COALESCE ( - + 70, 20 ) AS col2
----
70

query I rowsort
SELECT 80 * 45
----
3600

onlyif mysql # aggregate syntax: 
query II rowsort label-9770
SELECT 44 AS col1, - SUM( + 86 ) + 68 AS col2
----
44
-18

skipif mysql # not compatible
query II rowsort label-9770
SELECT 44 AS col1, - SUM ( + 86 ) + 68 AS col2
----
44
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9771
SELECT DISTINCT - 63 AS col0, - 33 + ( - COUNT( * ) )
----
-63
-34

skipif mysql # not compatible
query II rowsort label-9771
SELECT DISTINCT - 63 AS col0, - 33 + ( - COUNT ( * ) )
----
-63
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9772
SELECT ALL + SUM( DISTINCT + - 2 ) * - + ( 40 ) AS col0, 33
----
80
33

skipif mysql # not compatible
query II rowsort label-9772
SELECT ALL + SUM ( DISTINCT + - 2 ) * - + ( 40 ) AS col0, 33
----
80
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT ALL 64 + + COUNT( ALL ( 41 ) )
----
65

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL 64 + + COUNT ( ALL ( 41 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT ( + COALESCE ( + 95, MAX( - 23 ) ) ) * - 90 - 49 - + COUNT( * ) * 56
----
-8655

skipif mysql # not compatible
query I rowsort label-9774
SELECT ( + COALESCE ( + 95, MAX ( - 23 ) ) ) * - 90 - 49 - + COUNT ( * ) * 56
----
-8655

onlyif mysql # aggregate syntax: 
query II rowsort label-9775
SELECT ALL - 56 AS col1, + COUNT( * ) AS col1
----
-56
1

skipif mysql # not compatible
query II rowsort label-9775
SELECT ALL - 56 AS col1, + COUNT ( * ) AS col1
----
-56
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9776
SELECT + 94 * - + 24 - + CAST( + 27 AS SIGNED ) - - 79 * + - 30
----
-4653

skipif mysql # not compatible
query I rowsort label-9776
SELECT + 94 * - + 24 - + CAST ( + 27 AS INTEGER ) - - 79 * + - 30
----
-4653

query I rowsort
SELECT DISTINCT ( - 81 ) + + + 65 AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT ALL CAST( NULL AS SIGNED ) + + - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL CAST ( NULL AS INTEGER ) + + - 19 AS col2
----
NULL

query II rowsort
SELECT ALL 87 AS col1, 76 AS col0
----
87
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9780
SELECT DISTINCT 53 + + 15 DIV + - 36 - + 98
----
-45

skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT 53 + + 15 / + - 36 - + 98
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT SUM( ALL + NULLIF ( + 60, + 10 ) )
----
60

skipif mysql # not compatible
query I rowsort label-9781
SELECT SUM ( ALL + NULLIF ( + 60, + 10 ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT ALL + 47 - - COUNT( * ) - - + 2 * 90 + 57 * - COUNT( * )
----
171

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL + 47 - - COUNT ( * ) - - + 2 * 90 + 57 * - COUNT ( * )
----
171

query II rowsort
SELECT ALL 80 * + 58 AS col2, - 51
----
4640
-51

query I rowsort
SELECT + 54 + - 83
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-9785
SELECT 69 DIV - 65
----
-1

skipif mysql # not compatible
query I rowsort label-9785
SELECT 69 / - 65
----
-1

query I rowsort
SELECT 56 * + 14 AS col2
----
784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9787
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) - - + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) - - + 22 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 39 - + - 1
----
40

query I rowsort
SELECT ALL - - 51 - - 50 AS col0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9790
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, + COUNT( - 24 ) * + 48 col2
----
NULL
48

skipif mysql # not compatible
query II rowsort label-9790
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( - 24 ) * + 48 col2
----
NULL
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9791
SELECT DISTINCT - 8 AS col0, MAX( DISTINCT 61 ) * + + COUNT( * ) * 33 AS col0
----
-8
2013

skipif mysql # not compatible
query II rowsort label-9791
SELECT DISTINCT - 8 AS col0, MAX ( DISTINCT 61 ) * + + COUNT ( * ) * 33 AS col0
----
-8
2013

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9792
SELECT - - NULLIF ( - COALESCE ( 36, - COUNT( * ) ), COALESCE ( + CAST( NULL AS SIGNED ), - + ( 51 ), 21 + - 54 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-9792
SELECT - - NULLIF ( - COALESCE ( 36, - COUNT ( * ) ), COALESCE ( + CAST ( NULL AS INTEGER ), - + ( 51 ), 21 + - 54 ) )
----
-36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9793
SELECT ALL 70 AS col0, CAST( - 70 AS SIGNED ) DIV - 95 col0
----
70
0

skipif mysql # not compatible
query II rowsort label-9793
SELECT ALL 70 AS col0, CAST ( - 70 AS INTEGER ) / - 95 col0
----
70
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9794
SELECT + SUM( DISTINCT - 84 ) * + - 95 + + 98 * + 64 DIV COALESCE ( + CASE 16 WHEN + + COUNT( * ) THEN NULL WHEN - - 15 * + 37 DIV - COALESCE ( - 17, + + 91 + 27 ) + - 82 THEN 88 + - CASE + 34 WHEN 90 + + + 57 THEN NULL ELSE 74 END ELSE - COUNT( * ) END, - 23, + 59 ) AS col1
----
1708

skipif mysql # not compatible
query I rowsort label-9794
SELECT + SUM ( DISTINCT - 84 ) * + - 95 + + 98 * + 64 / COALESCE ( + CASE 16 WHEN + + COUNT ( * ) THEN NULL WHEN - - 15 * + 37 / - COALESCE ( - 17, + + 91 + 27 ) + - 82 THEN 88 + - CASE + 34 WHEN 90 + + + 57 THEN NULL ELSE 74 END ELSE - COUNT ( * ) END, - 23, + 59 ) AS col1
----
1708

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT ( - 85 ) * COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-9795
SELECT ( - 85 ) * COUNT ( * )
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9796
SELECT DISTINCT + COUNT( + 84 ) * - 44 + 33 - - - 53 + + + 5 * - 41 DIV + 38 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT + COUNT ( + 84 ) * - 44 + 33 - - - 53 + + + 5 * - 41 / + 38 AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9797
SELECT ALL - CAST( 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL - CAST ( 7 AS INTEGER )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-9798
SELECT + 73 DIV 40 - + 80 + - 17 * + ( 5 ) AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-9798
SELECT + 73 / 40 - + 80 + - 17 * + ( 5 ) AS col0
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT ALL - COALESCE ( - 77, - + 26 ) + COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL - COALESCE ( - 77, - + 26 ) + COUNT ( * ) AS col1
----
78

query I rowsort
SELECT 5 * + 32 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL - COUNT( * ) + - - 72 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL - COUNT ( * ) + - - 72 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT 86 + + COUNT( * ) * + - MAX( DISTINCT + 36 ) col2
----
50

skipif mysql # not compatible
query I rowsort label-9802
SELECT 86 + + COUNT ( * ) * + - MAX ( DISTINCT + 36 ) col2
----
50

query I rowsort
SELECT ALL - 20 + - 30 + - - 17 + - 91
----
-124

query I rowsort
SELECT 95 + 7 * - CASE 69 WHEN + - 14 THEN - 78 END AS col0
----
NULL

query I rowsort
SELECT 31 - - 71
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-9806
SELECT ALL - ( ( + + 25 ) ) AS col0, - 45 + + COUNT( * )
----
-25
-44

skipif mysql # not compatible
query II rowsort label-9806
SELECT ALL - ( ( + + 25 ) ) AS col0, - 45 + + COUNT ( * )
----
-25
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9807
SELECT - 28 * - MAX( 83 ) * + ( + CASE - - 86 WHEN 48 + + 82 * - + ( - 26 ) THEN NULL WHEN + 61 + + 20 * - + 14 * + 87 THEN NULL ELSE + 22 + - 32 END ) + + - COUNT( * ) DIV + 76 AS col0
----
-23240

skipif mysql # not compatible
query I rowsort label-9807
SELECT - 28 * - MAX ( 83 ) * + ( + CASE - - 86 WHEN 48 + + 82 * - + ( - 26 ) THEN NULL WHEN + 61 + + 20 * - + 14 * + 87 THEN NULL ELSE + 22 + - 32 END ) + + - COUNT ( * ) / + 76 AS col0
----
-23240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9808
SELECT ALL + 48 + + 67 + - CAST( - - 34 AS SIGNED ) * COUNT( * ) * 45 + - 17 col2
----
-1432

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL + 48 + + 67 + - CAST ( - - 34 AS INTEGER ) * COUNT ( * ) * 45 + - 17 col2
----
-1432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT DISTINCT - NULLIF ( + - 41, + CAST( NULL AS SIGNED ) ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9809
SELECT DISTINCT - NULLIF ( + - 41, + CAST ( NULL AS INTEGER ) ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT ALL 10 + - + COUNT( * ) + - COUNT( - - 80 ) + - 45 * 96 * 63 * + 23 + + 9 AS col2
----
-6259663

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL 10 + - + COUNT ( * ) + - COUNT ( - - 80 ) + - 45 * 96 * 63 * + 23 + + 9 AS col2
----
-6259663

query I rowsort
SELECT 48 * + + 13 + + ( + + 67 )
----
691

query I rowsort
SELECT ALL + CASE 30 WHEN + 63 + 68 THEN - 50 END * + 3 + - 84
----
NULL

query I rowsort
SELECT DISTINCT - 3 + - 64
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9814
SELECT DISTINCT + 39 * 20, 46 * + CAST( - 9 AS SIGNED ) + + + 27 + + + 56 AS col1
----
780
-331

skipif mysql # not compatible
query II rowsort label-9814
SELECT DISTINCT + 39 * 20, 46 * + CAST ( - 9 AS INTEGER ) + + + 27 + + + 56 AS col1
----
780
-331

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT DISTINCT 22 - + COUNT( ALL + - 50 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT 22 - + COUNT ( ALL + - 50 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT DISTINCT + MAX( ALL + - 92 ) * - 9 AS col1
----
828

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT + MAX ( ALL + - 92 ) * - 9 AS col1
----
828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9817
SELECT - + 67 * + - COALESCE ( - 3, + - 24 ) + - 8 * 4 DIV + 70 + - - ( - CAST( + 89 AS SIGNED ) ) + + COUNT( * ) AS col2
----
-289

skipif mysql # not compatible
query I rowsort label-9817
SELECT - + 67 * + - COALESCE ( - 3, + - 24 ) + - 8 * 4 / + 70 + - - ( - CAST ( + 89 AS INTEGER ) ) + + COUNT ( * ) AS col2
----
-289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9818
SELECT - 25 * + - COUNT( * ) * ( - 15 ) + CAST( + - 60 AS SIGNED ) * COUNT( * ) DIV - 43
----
-374

skipif mysql # not compatible
query I rowsort label-9818
SELECT - 25 * + - COUNT ( * ) * ( - 15 ) + CAST ( + - 60 AS INTEGER ) * COUNT ( * ) / - 43
----
-374

onlyif mysql # DIV for integer division: 
query I rowsort label-9819
SELECT - 8 + - 95 DIV - + 13 col1
----
-1

skipif mysql # not compatible
query I rowsort label-9819
SELECT - 8 + - 95 / - + 13 col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9820
SELECT - ( - + 29 ) AS col1, - 17 * + + COUNT( ALL 83 ) DIV + COUNT( * ) + COUNT( * ) AS col2
----
29
-16

skipif mysql # not compatible
query II rowsort label-9820
SELECT - ( - + 29 ) AS col1, - 17 * + + COUNT ( ALL 83 ) / + COUNT ( * ) + COUNT ( * ) AS col2
----
29
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9821
SELECT DISTINCT - + COUNT( * ) DIV + 55 - + 2 * + 37
----
-74

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT - + COUNT ( * ) / + 55 - + 2 * + 37
----
-74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9822
SELECT 94 + CAST( 86 AS SIGNED ) * - 42 + + CAST( NULL AS DECIMAL ) / 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT 94 + CAST ( 86 AS INTEGER ) * - 42 + + CAST ( NULL AS REAL ) / 25 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9823
SELECT DISTINCT + COALESCE ( - 1, 90 ) * COUNT( DISTINCT CAST( + 51 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9823
SELECT DISTINCT + COALESCE ( - 1, 90 ) * COUNT ( DISTINCT CAST ( + 51 AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT - 50 + + 0 * - + 84
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9825
SELECT ALL 94 * - + 76 * + ( + + 44 ) / - CASE - + 0 WHEN NULLIF ( + - 62, + 21 + NULLIF ( - CAST( - 8 AS SIGNED ), + + 62 ) ) THEN - + 76 * 46 / 62 END / + - 94 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL 94 * - + 76 * + ( + + 44 ) / - CASE - + 0 WHEN NULLIF ( + - 62, + 21 + NULLIF ( - CAST ( - 8 AS INTEGER ), + + 62 ) ) THEN - + 76 * 46 / 62 END / + - 94 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9826
SELECT + + 3 * + COUNT( * ) * - 98 / - 56 + + 45 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT + + 3 * + COUNT ( * ) * - 98 / - 56 + + 45 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL ( - 64 ) AS col1, 85 + + + 96
----
-64
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9828
SELECT ALL 18 * 46 + - 72 + + 69 + + COALESCE ( + 29, - - ( + - 12 ), - + 4 + - 37 * - - 11 ) + MIN( ALL + CASE + 14 WHEN + 31 THEN - 93 ELSE - - 46 DIV 29 + ( 51 ) + + - 79 DIV + + 64 END ) * - - 10 + + 22 * - ( - 55 )
----
2574

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL 18 * 46 + - 72 + + 69 + + COALESCE ( + 29, - - ( + - 12 ), - + 4 + - 37 * - - 11 ) + MIN ( ALL + CASE + 14 WHEN + 31 THEN - 93 ELSE - - 46 / 29 + ( 51 ) + + - 79 / + + 64 END ) * - - 10 + + 22 * - ( - 55 )
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL + 61 * - 20 + + + 64 * ( + COUNT( * ) ) * + + COUNT( * ) AS col2
----
-1156

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + 61 * - 20 + + + 64 * ( + COUNT ( * ) ) * + + COUNT ( * ) AS col2
----
-1156

query I rowsort
SELECT + 83 + + + 81
----
164

query I rowsort
SELECT + 71 * - 11
----
-781

query I rowsort
SELECT DISTINCT 82 * - 46
----
-3772

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL + MIN( ALL - + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL + MIN ( ALL - + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT + CASE 74 WHEN - MAX( ALL - COALESCE ( + + 24, - - 43 + + 0 + - 52 ) ) / - 51 THEN + 76 / ( ( - 1 ) ) * - 75 + COUNT( * ) + + 91 * 1 + - - COUNT( * ) * + 41 + - SUM( ALL - ( + 34 ) ) WHEN - ( 21 ) THEN 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT + CASE 74 WHEN - MAX ( ALL - COALESCE ( + + 24, - - 43 + + 0 + - 52 ) ) / - 51 THEN + 76 / ( ( - 1 ) ) * - 75 + COUNT ( * ) + + 91 * 1 + - - COUNT ( * ) * + 41 + - SUM ( ALL - ( + 34 ) ) WHEN - ( 21 ) THEN 79 END
----
NULL

query I rowsort
SELECT - 61 * - NULLIF ( + 51, + 73 ) + + 28 AS col1
----
3139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9836
SELECT NULLIF ( + COUNT( * ), - CAST( - 3 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9836
SELECT NULLIF ( + COUNT ( * ), - CAST ( - 3 AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9837
SELECT ALL - 68 * MIN( DISTINCT - + 71 ) + COALESCE ( + CAST( - - MAX( DISTINCT + 0 ) AS SIGNED ), - + ( - ( + 32 ) ) * + - ( + - CASE 23 WHEN + AVG ( ALL - 42 ) THEN + COALESCE ( + 22, 63 * 93 + 43 + - + 23 + - 57 - COUNT( * ) ) * 38 ELSE NULL END ) + - 55, 20, 50 ) + 48 * + 16 AS col0
----
5596

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL - 68 * MIN ( DISTINCT - + 71 ) + COALESCE ( + CAST ( - - MAX ( DISTINCT + 0 ) AS INTEGER ), - + ( - ( + 32 ) ) * + - ( + - CASE 23 WHEN + AVG ( ALL - 42 ) THEN + COALESCE ( + 22, 63 * 93 + 43 + - + 23 + - 57 - COUNT ( * ) ) * 38 ELSE NULL END ) + - 55, 20, 50 ) + 48 * + 16 AS col0
----
5596

query I rowsort
SELECT - 75 * + - 87 AS col0
----
6525

query II rowsort
SELECT ALL + 95 col2, + 35 AS col2
----
95
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9840
SELECT - 93 DIV - 29 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9840
SELECT - 93 / - 29 AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9841
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, - 96
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-9841
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - 96
----
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT DISTINCT 67 * COUNT( * ) - 98 * 72 AS col1
----
-6989

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT 67 * COUNT ( * ) - 98 * 72 AS col1
----
-6989

query I rowsort
SELECT DISTINCT + CASE ( + 56 ) WHEN - + ( + + 77 ) THEN - 42 END
----
NULL

query I rowsort
SELECT 53 * + ( + + 68 ) - 46 * - 77 * + - 34
----
-116824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9845
SELECT - - CASE 38 WHEN + 2 * + ( - 84 ) + + CAST( NULL AS SIGNED ) - + - AVG ( ALL + NULLIF ( 52, - ( + 31 ) ) ) + - CAST( + + 42 AS SIGNED ) THEN COUNT( * ) + 82 * - + COUNT( + + 83 ) WHEN - + 58 THEN + 50 END / + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT - - CASE 38 WHEN + 2 * + ( - 84 ) + + CAST ( NULL AS INTEGER ) - + - AVG ( ALL + NULLIF ( 52, - ( + 31 ) ) ) + - CAST ( + + 42 AS INTEGER ) THEN COUNT ( * ) + 82 * - + COUNT ( + + 83 ) WHEN - + 58 THEN + 50 END / + 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9846
SELECT ALL - 89 DIV COUNT( * ) * - - 71 + COUNT( * ) + - 41 * - NULLIF ( 23, - 38 ) * - 85
----
-86473

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL - 89 / COUNT ( * ) * - - 71 + COUNT ( * ) + - 41 * - NULLIF ( 23, - 38 ) * - 85
----
-86473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT - + 19 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT - + 19 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9848
SELECT + + CAST( + - 11 AS SIGNED ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-9848
SELECT + + CAST ( + - 11 AS INTEGER ) AS col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9849
SELECT - - 34 DIV - + 75 * - - ( 8 ) + - - ( - 87 ) + - + 10 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-9849
SELECT - - 34 / - + 75 * - - ( 8 ) + - - ( - 87 ) + - + 10 AS col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9850
SELECT - 72 - - + ( - COUNT( * ) ) * + - ( - COUNT( * ) ) DIV + 59 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-9850
SELECT - 72 - - + ( - COUNT ( * ) ) * + - ( - COUNT ( * ) ) / + 59 AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9851
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, + 56 AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-9851
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, + 56 AS col0
----
NULL
56

query I rowsort
SELECT - ( - - ( - 27 ) ) - - - 22 col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9853
SELECT ALL - - 80 * ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL - - 80 * ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT ALL + 65, 9 AS col2
----
65
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT + 95 * + COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9855
SELECT + 95 * + COUNT ( * ) AS col0
----
95

query I rowsort
SELECT - 39 + - + 97 AS col0
----
-136

query I rowsort
SELECT - 52 + + 76 * + 41
----
3064

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT - NULLIF ( - SUM( DISTINCT + 74 ), 76 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9858
SELECT - NULLIF ( - SUM ( DISTINCT + 74 ), 76 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT - - COALESCE ( - 53, COALESCE ( COALESCE ( + COUNT( * ), + + 21 ), 92 + COUNT( * ) ) * + ( + 60 ) ) * - COUNT( - 20 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-9859
SELECT - - COALESCE ( - 53, COALESCE ( COALESCE ( + COUNT ( * ), + + 21 ), 92 + COUNT ( * ) ) * + ( + 60 ) ) * - COUNT ( - 20 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT + + 26 + - 44 + COUNT( * ) + - 88 + + 74 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-9860
SELECT + + 26 + - 44 + COUNT ( * ) + - 88 + + 74 AS col0
----
-31

query I rowsort
SELECT DISTINCT NULLIF ( + 45, 72 * - 59 ) + - - 64 col1
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9862
SELECT ALL CAST( 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL CAST ( 27 AS INTEGER )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT ALL + SUM( - 29 ) + - 3
----
-32

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL + SUM ( - 29 ) + - 3
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT + COUNT( * ) * - - 70 * + COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9864
SELECT + COUNT ( * ) * - - 70 * + COUNT ( * ) AS col1
----
70

query I rowsort
SELECT DISTINCT - 47 + + - 56 * 60 * + 40 AS col2
----
-134447

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT - CASE + COUNT( * ) WHEN 48 THEN NULL WHEN + - 27 * - 8 THEN - 52 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9866
SELECT - CASE + COUNT ( * ) WHEN 48 THEN NULL WHEN + - 27 * - 8 THEN - 52 END AS col1
----
NULL

query I rowsort
SELECT - ( - + NULLIF ( + 2, + AVG ( 96 ) ) ) AS col2
----
2

query I rowsort
SELECT ALL 65 + - - 80
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-9869
SELECT ALL 41 * + 26 AS col0, + 34 * - - COALESCE ( - 67, - 28 - + COUNT( * ), + 90 ) AS col2
----
1066
-2278

skipif mysql # not compatible
query II rowsort label-9869
SELECT ALL 41 * + 26 AS col0, + 34 * - - COALESCE ( - 67, - 28 - + COUNT ( * ), + 90 ) AS col2
----
1066
-2278

onlyif mysql # DIV for integer division: 
query I rowsort label-9870
SELECT ALL - 24 DIV - NULLIF ( - + COALESCE ( - + 34, + - 16 ), 91 ) + - 7
----
-7

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL - 24 / - NULLIF ( - + COALESCE ( - + 34, + - 16 ), 91 ) + - 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT + 41 * ( - + COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-9871
SELECT + 41 * ( - + COUNT ( * ) )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9872
SELECT CAST( - - 64 AS SIGNED ) AS col1, ( + 81 ) AS col2
----
64
81

skipif mysql # not compatible
query II rowsort label-9872
SELECT CAST ( - - 64 AS INTEGER ) AS col1, ( + 81 ) AS col2
----
64
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT ALL 5 * - 18 * + CASE - + 96 WHEN + + NULLIF ( + + 87, COALESCE ( - ( + 49 ), 35 + + - NULLIF ( - + 70, + 97 ), - 54 / - 60 + - COUNT( * ) ) ) THEN + + 28 * + NULLIF ( - 69, + - COUNT( * ) + - 83 * COUNT( * ) ) ELSE - - 71 END
----
-6390

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL 5 * - 18 * + CASE - + 96 WHEN + + NULLIF ( + + 87, COALESCE ( - ( + 49 ), 35 + + - NULLIF ( - + 70, + 97 ), - 54 / - 60 + - COUNT ( * ) ) ) THEN + + 28 * + NULLIF ( - 69, + - COUNT ( * ) + - 83 * COUNT ( * ) ) ELSE - - 71 END
----
-6390

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9874
SELECT CAST( 78 AS SIGNED ), CASE WHEN NULL IS NULL THEN - 5 ELSE NULL END AS col0
----
78
-5

skipif mysql # not compatible
query II rowsort label-9874
SELECT CAST ( 78 AS INTEGER ), CASE WHEN NULL IS NULL THEN - 5 ELSE NULL END AS col0
----
78
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL + COUNT( ALL + 86 )
----
1

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL + COUNT ( ALL + 86 )
----
1

query I rowsort
SELECT + 93 + - 72
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9877
SELECT ALL + COUNT( * ) DIV + + ( + - CASE 72 WHEN + + 15 - - + 57 + - 87 - - 59 * + 20 * 67 * - 56 + 92 * - 89 THEN 22 * + + 45 + + 29 * 86 + ( + - ( + 69 ) ) * NULLIF ( 34, 22 - - - 55 ) * - 96 ELSE + 50 + 56 END ) - - 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL + COUNT ( * ) / + + ( + - CASE 72 WHEN + + 15 - - + 57 + - 87 - - 59 * + 20 * 67 * - 56 + 92 * - 89 THEN 22 * + + 45 + + 29 * 86 + ( + - ( + 69 ) ) * NULLIF ( 34, 22 - - - 55 ) * - 96 ELSE + 50 + 56 END ) - - 62 AS col0
----
62

query I rowsort
SELECT 57 * 11 + - 77 + - 63 AS col2
----
487

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT + 87 * + 26 * - - COUNT( * )
----
2262

skipif mysql # not compatible
query I rowsort label-9879
SELECT + 87 * + 26 * - - COUNT ( * )
----
2262

query I rowsort
SELECT - 22 * - 19
----
418

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT ALL COUNT( * ) * + 86 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL COUNT ( * ) * + 86 AS col2
----
86

query I rowsort
SELECT - 39 - 28 + + 59 + 54 AS col2
----
46

query I rowsort
SELECT ALL 45 * - 89
----
-4005

query I rowsort
SELECT + 16 * + 44 + - + 65 + + 5 * 97 col2
----
1124

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT - + 74 - + MAX( - 10 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-9885
SELECT - + 74 - + MAX ( - 10 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT DISTINCT - + 57 * - SUM( - + 83 ) AS col0
----
-4731

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT - + 57 * - SUM ( - + 83 ) AS col0
----
-4731

query I rowsort
SELECT - 43 + + 9 AS col0
----
-34

query I rowsort
SELECT ALL + - CASE 61 WHEN - AVG ( ALL - 3 ) THEN NULL WHEN - + AVG ( DISTINCT - + 16 ) THEN - 47 + 86 END
----
NULL

query I rowsort
SELECT - 57 + + 25 + + 12
----
-20

query I rowsort
SELECT + 37 * + 82 AS col0
----
3034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9891
SELECT + COALESCE ( + 81, - 2 * CAST( 72 AS SIGNED ) + - + 54 ) + + CASE + 11 WHEN + 93 + - - COUNT( * ) + 96 THEN + 53 END * 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9891
SELECT + COALESCE ( + 81, - 2 * CAST ( 72 AS INTEGER ) + - + 54 ) + + CASE + 11 WHEN + 93 + - - COUNT ( * ) + 96 THEN + 53 END * 42 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9892
SELECT - 46 DIV - - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9892
SELECT - 46 / - - 71 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9893
SELECT - 15 DIV - + 65 * - 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9893
SELECT - 15 / - + 65 * - 21 AS col1
----
0

query I rowsort
SELECT DISTINCT - + 10 + - + 20
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT + COUNT( ALL 79 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9895
SELECT + COUNT ( ALL 79 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT ALL - - 60 * - - COUNT( DISTINCT - + 84 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL - - 60 * - - COUNT ( DISTINCT - + 84 ) AS col2
----
60

query I rowsort
SELECT + 95 + 99 AS col1
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT 89 - + - 17 + + COUNT( * ) + COUNT( 46 ) * - COUNT( - 68 ) AS col2
----
106

skipif mysql # not compatible
query I rowsort label-9898
SELECT 89 - + - 17 + + COUNT ( * ) + COUNT ( 46 ) * - COUNT ( - 68 ) AS col2
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-9899
SELECT DISTINCT + 70 + + COALESCE ( + 76, 74 DIV + + ( - 6 ) )
----
146

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT + 70 + + COALESCE ( + 76, 74 / + + ( - 6 ) )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT DISTINCT + COUNT( * ) + - 1
----
0

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT + COUNT ( * ) + - 1
----
0

query I rowsort
SELECT 40 + - 15 + 27 + - 27
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9902
SELECT 14 * - CAST( + COUNT( * ) AS SIGNED ) AS col2, CAST( COUNT( * ) AS SIGNED )
----
-14
1

skipif mysql # not compatible
query II rowsort label-9902
SELECT 14 * - CAST ( + COUNT ( * ) AS INTEGER ) AS col2, CAST ( COUNT ( * ) AS INTEGER )
----
-14
1

query II rowsort
SELECT - 12, + ( - + 78 ) AS col2
----
-12
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9904
SELECT MIN( DISTINCT + 88 ) DIV + COUNT( * ) + - 28
----
60

skipif mysql # not compatible
query I rowsort label-9904
SELECT MIN ( DISTINCT + 88 ) / + COUNT ( * ) + - 28
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9905
SELECT ALL + MIN( + + 59 ) DIV - ( - + 17 )
----
3

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL + MIN ( + + 59 ) / - ( - + 17 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9906
SELECT 11 DIV + ( + - 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9906
SELECT 11 / + ( + - 94 ) AS col2
----
0

query I rowsort
SELECT DISTINCT ( + 0 ) * - - 49
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9908
SELECT + 26, CAST( - 23 AS SIGNED ) + + + 22 + + 32 AS col2
----
26
31

skipif mysql # not compatible
query II rowsort label-9908
SELECT + 26, CAST ( - 23 AS INTEGER ) + + + 22 + + 32 AS col2
----
26
31

query I rowsort
SELECT 56 + - - 95 + - 99 * - + 0
----
151

query II rowsort
SELECT ( + 9 ) * 79 - - 6 + 36 col2, + 87
----
753
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9911
SELECT 26 / - 89 + + - CAST( NULL AS SIGNED ) * COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) col1, 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-9911
SELECT 26 / - 89 + + - CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) col1, 73
----
NULL
73

query I rowsort
SELECT ALL 71 + - 42 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9913
SELECT ALL - + MAX( DISTINCT + + NULLIF ( 16, 59 * 19 ) ), - CAST( NULL AS SIGNED ) AS col2
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-9913
SELECT ALL - + MAX ( DISTINCT + + NULLIF ( 16, 59 * 19 ) ), - CAST ( NULL AS INTEGER ) AS col2
----
-16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT DISTINCT COUNT( * ) + + 67 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT COUNT ( * ) + + 67 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT DISTINCT COUNT( * ) + + AVG ( ALL + CASE - + 89 WHEN + 71 THEN 72 WHEN 63 THEN NULL ELSE NULL END ) * COUNT( * ) / + 78 * + + NULLIF ( + - NULLIF ( ( + + MIN( - NULLIF ( + + 57, - + 74 ) ) ), SUM( ALL + 69 ) ), - 16 ) - - 47 - SUM( 39 ) * + COUNT( * ) * - CASE WHEN ( NULL ) >= NULL THEN COUNT( * ) ELSE NULL END - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT DISTINCT COUNT ( * ) + + AVG ( ALL + CASE - + 89 WHEN + 71 THEN 72 WHEN 63 THEN NULL ELSE NULL END ) * COUNT ( * ) / + 78 * + + NULLIF ( + - NULLIF ( ( + + MIN ( - NULLIF ( + + 57, - + 74 ) ) ), SUM ( ALL + 69 ) ), - 16 ) - - 47 - SUM ( 39 ) * + COUNT ( * ) * - CASE WHEN ( NULL ) >= NULL THEN COUNT ( * ) ELSE NULL END - 7 AS col1
----
NULL

query I rowsort
SELECT ALL + 87 + - NULLIF ( - - 41, + 95 + 99 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL - - COUNT( - 51 )
----
1

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL - - COUNT ( - 51 )
----
1

query I rowsort
SELECT DISTINCT + ( - 20 ) * + + 42
----
-840

query II rowsort
SELECT 41 * 96 * - - 38, 84 + 40 AS col2
----
149568
124

query II rowsort
SELECT - ( + - 4 ) * 12, 35 AS col1
----
48
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT ALL - ( + + 92 ) + + + CASE 21 WHEN - - 67 + + + 21 THEN NULL WHEN - 73 THEN + - COUNT( ALL - 36 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL - ( + + 92 ) + + + CASE 21 WHEN - - 67 + + + 21 THEN NULL WHEN - 73 THEN + - COUNT ( ALL - 36 ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT COUNT( * ) - 65 + - 60 AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-9922
SELECT COUNT ( * ) - 65 + - 60 AS col2
----
-124

query I rowsort
SELECT ALL + - 37 + + 6
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT + + 60 * - 62 - + SUM( DISTINCT + 28 ) AS col1
----
-3748

skipif mysql # not compatible
query I rowsort label-9924
SELECT + + 60 * - 62 - + SUM ( DISTINCT + 28 ) AS col1
----
-3748

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT - + SUM( 91 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-9925
SELECT - + SUM ( 91 ) AS col0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9926
SELECT ALL 49 + - CAST( NULL AS SIGNED ) * - - 2 + 45 * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL 49 + - CAST ( NULL AS INTEGER ) * - - 2 + 45 * 4
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9927
SELECT 28 * + CAST( NULL AS SIGNED ) + + NULLIF ( + 75, + - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT 28 * + CAST ( NULL AS INTEGER ) + + NULLIF ( + 75, + - 53 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT CAST( 60 AS SIGNED ) + - - 85
----
145

skipif mysql # not compatible
query I rowsort label-9928
SELECT CAST ( 60 AS INTEGER ) + - - 85
----
145

query I rowsort
SELECT 31 + 18
----
49

query I rowsort
SELECT 14 * 58 * - 29
----
-23548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9931
SELECT ALL - 57 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL - 57 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 24 * + - 62 col0
----
-1488

onlyif mysql # aggregate syntax: 
query II rowsort label-9933
SELECT 22 AS col1, - 38 * COUNT( * )
----
22
-38

skipif mysql # not compatible
query II rowsort label-9933
SELECT 22 AS col1, - 38 * COUNT ( * )
----
22
-38

query I rowsort
SELECT 33 + + 44
----
77

query I rowsort
SELECT DISTINCT + 12 * - 69 col1
----
-828

query II rowsort
SELECT 11 + 3 AS col0, - 45 AS col1
----
14
-45

query I rowsort
SELECT 14 * - 89 * - 44 AS col2
----
54824

onlyif mysql # aggregate syntax: 
query II rowsort label-9938
SELECT - 70 AS col1, ( COUNT( * ) ) AS col1
----
-70
1

skipif mysql # not compatible
query II rowsort label-9938
SELECT - 70 AS col1, ( COUNT ( * ) ) AS col1
----
-70
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT DISTINCT COUNT( DISTINCT - 15 )
----
1

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT COUNT ( DISTINCT - 15 )
----
1

query I rowsort
SELECT 94 * 11 + - - 21 AS col0
----
1055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9941
SELECT - 36 / - - CASE + CAST( NULL AS DECIMAL ) WHEN - + 25 + 5 - 76 * + 17 / + 96 - - 0 * + 72 * 13 THEN COUNT( * ) WHEN ( + 36 ) * - 76 + + CAST( + 25 AS SIGNED ) THEN NULL END + - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT - 36 / - - CASE + CAST ( NULL AS REAL ) WHEN - + 25 + 5 - 76 * + 17 / + 96 - - 0 * + 72 * 13 THEN COUNT ( * ) WHEN ( + 36 ) * - 76 + + CAST ( + 25 AS INTEGER ) THEN NULL END + - 65 AS col1
----
NULL

query II rowsort
SELECT + 79 AS col1, 47 * + 1
----
79
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9943
SELECT DISTINCT - 78 AS col2, COUNT( 54 ) * - 18 AS col0
----
-78
-18

skipif mysql # not compatible
query II rowsort label-9943
SELECT DISTINCT - 78 AS col2, COUNT ( 54 ) * - 18 AS col0
----
-78
-18

query I rowsort
SELECT 55 - + 25
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL - + COUNT( DISTINCT - 26 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL - + COUNT ( DISTINCT - 26 ) AS col2
----
-1

query I rowsort
SELECT ALL 64 * - 32 * + 65
----
-133120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9947
SELECT ALL 77 * - 56 + - + COUNT( * ) - - 26 DIV + 48 + - 93 + + 54
----
-4352

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL 77 * - 56 + - + COUNT ( * ) - - 26 / + 48 + - 93 + + 54
----
-4352

onlyif mysql # aggregate syntax: 
query II rowsort label-9948
SELECT + - 15, COUNT( * ) AS col1
----
-15
1

skipif mysql # not compatible
query II rowsort label-9948
SELECT + - 15, COUNT ( * ) AS col1
----
-15
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9949
SELECT + - 22 DIV - - 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9949
SELECT + - 22 / - - 27 AS col1
----
0

query II rowsort
SELECT + + 61 AS col1, + 96 AS col2
----
61
96

query II rowsort
SELECT DISTINCT + 66, 77 AS col2
----
66
77

query I rowsort
SELECT 61 * + 47 + 66 + + 4 AS col0
----
2937

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9953
SELECT ALL + COALESCE ( 69, + 31 ) * 48 + 33 + + - 0 + + + 81 * + 16 * + - 63 DIV + COUNT( * ) + - 77 * ( + 99 ) + + 4 AS col0, 92 AS col1
----
-85922
92

skipif mysql # not compatible
query II rowsort label-9953
SELECT ALL + COALESCE ( 69, + 31 ) * 48 + 33 + + - 0 + + + 81 * + 16 * + - 63 / + COUNT ( * ) + - 77 * ( + 99 ) + + 4 AS col0, 92 AS col1
----
-85922
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9954
SELECT DISTINCT + 99 * + 28 * + 91 + MIN( - 70 ) - - 36 + + + 25 DIV ( + ( + ( 30 ) ) ) * + 93 * CASE - + 68 WHEN - - 34 THEN + 93 * + 22 * 76 DIV - + 40 + + 79 + - 58 + - + 36 + COUNT( DISTINCT - 30 ) DIV - MAX( + 19 ) * 90 WHEN - 62 THEN - 22 ELSE + 9 * 92 END * 35 * 33 AS col1
----
252218

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT + 99 * + 28 * + 91 + MIN ( - 70 ) - - 36 + + + 25 / ( + ( + ( 30 ) ) ) * + 93 * CASE - + 68 WHEN - - 34 THEN + 93 * + 22 * 76 / - + 40 + + 79 + - 58 + - + 36 + COUNT ( DISTINCT - 30 ) / - MAX ( + 19 ) * 90 WHEN - 62 THEN - 22 ELSE + 9 * 92 END * 35 * 33 AS col1
----
252218

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ALL - COUNT( DISTINCT + 65 ) + + 53 col2
----
52

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL - COUNT ( DISTINCT + 65 ) + + 53 col2
----
52

query I rowsort
SELECT ALL + 64 * + 43 AS col2
----
2752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT + + 95 + + CAST( + + CAST( 55 AS SIGNED ) AS SIGNED ) AS col1
----
150

skipif mysql # not compatible
query I rowsort label-9957
SELECT + + 95 + + CAST ( + + CAST ( 55 AS INTEGER ) AS INTEGER ) AS col1
----
150

query I rowsort
SELECT ALL + - 94 col1
----
-94

query II rowsort
SELECT DISTINCT + - 33 AS col1, 97 col2
----
-33
97

query I rowsort
SELECT ALL 38 - 60 + 79
----
57

query I rowsort
SELECT + - 18 + 73 AS col0
----
55

query II rowsort
SELECT - 36 AS col0, 41 - 69
----
-36
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT - COUNT( * ) + COALESCE ( - - 82, + - COALESCE ( SUM( ALL - + 34 ), - + 35 ) * - COUNT( * ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9963
SELECT - COUNT ( * ) + COALESCE ( - - 82, + - COALESCE ( SUM ( ALL - + 34 ), - + 35 ) * - COUNT ( * ) ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT DISTINCT ( - 14 ) * - COUNT( ALL + + 53 )
----
14

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT ( - 14 ) * - COUNT ( ALL + + 53 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL COUNT( DISTINCT + 13 )
----
1

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL COUNT ( DISTINCT + 13 )
----
1

query I rowsort
SELECT + 77 * - 79 * 92 AS col1
----
-559636

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9967
SELECT ALL 82 * + 79 * - 33 AS col2, NULLIF ( - 97, ( + COUNT( * ) ) * + 3 ) DIV - - 81 + COUNT( * )
----
-213774
0

skipif mysql # not compatible
query II rowsort label-9967
SELECT ALL 82 * + 79 * - 33 AS col2, NULLIF ( - 97, ( + COUNT ( * ) ) * + 3 ) / - - 81 + COUNT ( * )
----
-213774
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT + 94 + COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9968
SELECT + 94 + COUNT ( * ) AS col0
----
95

query I rowsort
SELECT - 70 + + - 87
----
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), 36 )
----
NULL

query I rowsort
SELECT + 17 - 65
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-9972
SELECT - COUNT( * ) * - 54 AS col1, ( + 37 ) col1
----
54
37

skipif mysql # not compatible
query II rowsort label-9972
SELECT - COUNT ( * ) * - 54 AS col1, ( + 37 ) col1
----
54
37

query I rowsort
SELECT - NULLIF ( - 58, + + 70 ) + - 12 AS col2
----
46

query I rowsort
SELECT ALL - 26 * - + 93 AS col2
----
2418

query I rowsort
SELECT + 28 + - 20 + 19 AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9976
SELECT DISTINCT 34 DIV - - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT 34 / - - 60 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9977
SELECT ALL + 63 + - 90 DIV - 1
----
153

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL + 63 + - 90 / - 1
----
153

query I rowsort
SELECT DISTINCT + 54 * + 76
----
4104

onlyif mysql # aggregate syntax: 
query II rowsort label-9979
SELECT ALL + 31 * + COUNT( * ) AS col0, 61 + + + 19 AS col2
----
31
80

skipif mysql # not compatible
query II rowsort label-9979
SELECT ALL + 31 * + COUNT ( * ) AS col0, 61 + + + 19 AS col2
----
31
80

query I rowsort
SELECT - 23 * + 73
----
-1679

onlyif mysql # DIV for integer division: 
query II rowsort label-9981
SELECT ALL + 17 DIV ( ( 59 ) ) + 50 + ( - + NULLIF ( 49, - 82 ) ) * + 49 AS col1, 18 DIV 16 * - 0
----
-2351
0

skipif mysql # not compatible
query II rowsort label-9981
SELECT ALL + 17 / ( ( 59 ) ) + 50 + ( - + NULLIF ( 49, - 82 ) ) * + 49 AS col1, 18 / 16 * - 0
----
-2351
0

query I rowsort
SELECT + COALESCE ( 85, + - 42, - - 79 * - 16 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT - - MAX( + 56 ) * + + 14
----
784

skipif mysql # not compatible
query I rowsort label-9983
SELECT - - MAX ( + 56 ) * + + 14
----
784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9984
SELECT ALL + - 11 * - CASE + 70 WHEN + 83 + + + 0 / + - 46 THEN + 66 / - 66 WHEN ( - CAST( + NULLIF ( + + 24, 98 ) AS SIGNED ) ) / + + SUM( - + 54 ) * + + 98 THEN NULL WHEN - ( + + 20 ) THEN NULL END * + + 75 - 6 - - + 41 + - 85 + + 24 * - - AVG ( - 45 ) + 97 + 73 + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL + - 11 * - CASE + 70 WHEN + 83 + + + 0 / + - 46 THEN + 66 / - 66 WHEN ( - CAST ( + NULLIF ( + + 24, 98 ) AS INTEGER ) ) / + + SUM ( - + 54 ) * + + 98 THEN NULL WHEN - ( + + 20 ) THEN NULL END * + + 75 - 6 - - + 41 + - 85 + + 24 * - - AVG ( - 45 ) + 97 + 73 + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT - COUNT( * ) * - + 24 * - 66 AS col0
----
-1584

skipif mysql # not compatible
query I rowsort label-9985
SELECT - COUNT ( * ) * - + 24 * - 66 AS col0
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT ALL COUNT( - - 47 ) * 43
----
43

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL COUNT ( - - 47 ) * 43
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9987
SELECT ALL 83 * + - 38, - 86 * + - COUNT( * ) * + 87 AS col2
----
-3154
7482

skipif mysql # not compatible
query II rowsort label-9987
SELECT ALL 83 * + - 38, - 86 * + - COUNT ( * ) * + 87 AS col2
----
-3154
7482

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT - MAX( + 87 ) - + + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-9988
SELECT - MAX ( + 87 ) - + + COUNT ( * )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9989
SELECT + - ( 52 ) DIV - 13 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9989
SELECT + - ( 52 ) / - 13 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9990
SELECT - - 72 * - 73 AS col1, CAST( NULL AS SIGNED )
----
-5256
NULL

skipif mysql # not compatible
query II rowsort label-9990
SELECT - - 72 * - 73 AS col1, CAST ( NULL AS INTEGER )
----
-5256
NULL

query II rowsort
SELECT - 1 * + - 19 * + 60, 31 AS col2
----
1140
31

query I rowsort
SELECT + 77 - 39 AS col2
----
38

query I rowsort
SELECT - 10 * + - 68 - 38
----
642

query I rowsort
SELECT + 29 + 43 + - - 83
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT MIN( + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-9995
SELECT MIN ( + 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT + 17 + + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-9996
SELECT + 17 + + COUNT ( * )
----
18

query I rowsort
SELECT + 35 * + 68
----
2380

query I rowsort
SELECT ALL 81 * ( 54 )
----
4374

query I rowsort
SELECT + 4 * - - NULLIF ( 5, + ( - 53 ) * 85 )
----
20

