sqllogictest
Artifact Content
Not logged in

Artifact 808410d7555ece98121ae1a1f9bdbf087a53b4ab:


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 r