hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

onlyif mysql # aggregate syntax: 
query II rowsort label-0
SELECT - 61 * - COALESCE ( + SUM( ALL + 30 ), - 8 ) + - ( 34 ) AS col0, + 38
----
1796
38

skipif mysql # not compatible
query II rowsort label-0
SELECT - 61 * - COALESCE ( + SUM ( ALL + 30 ), - 8 ) + - ( 34 ) AS col0, + 38
----
1796
38

query I rowsort
SELECT ALL - + COALESCE ( - 60, - 25 * - - ( + ( 2 ) ) - 88 )
----
60

query I rowsort
SELECT ALL 58 + - + 73 * + 29
----
-2059

query I rowsort
SELECT ALL + + 97 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL CASE 84 WHEN - + 85 THEN NULL WHEN - COUNT( * ) + - + AVG ( 7 ) THEN + + ( - 53 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL CASE 84 WHEN - + 85 THEN NULL WHEN - COUNT ( * ) + - + AVG ( 7 ) THEN + + ( - 53 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5
SELECT ALL - COALESCE ( COALESCE ( - NULLIF ( ( 31 ), - - 55 ), 52 * + 23 - - - 58 + 72, + 32, MIN( + 21 ) ), 60 DIV 5 + - 72 ) * + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL - COALESCE ( COALESCE ( - NULLIF ( ( 31 ), - - 55 ), 52 * + 23 - - - 58 + 72, + 32, MIN ( + 21 ) ), 60 / 5 + - 72 ) * + COUNT ( * )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6
SELECT - + 30 + + - 62 DIV + 32 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-6
SELECT - + 30 + + - 62 / + 32 AS col1
----
-31

query I rowsort
SELECT - 21 + + 45 * 89 * + ( - 60 ) AS col2
----
-240321

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT ALL 60 * - 29 + - + NULLIF ( 61, - - COUNT( * ) ) + - 47 + ( - - 83 )
----
-1765

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL 60 * - 29 + - + NULLIF ( 61, - - COUNT ( * ) ) + - 47 + ( - - 83 )
----
-1765

onlyif mysql # aggregate syntax: 
query II rowsort label-9
SELECT - COUNT( * ) * - 7 AS col2, + 54 * - 95
----
7
-5130

skipif mysql # not compatible
query II rowsort label-9
SELECT - COUNT ( * ) * - 7 AS col2, + 54 * - 95
----
7
-5130

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-10
SELECT + - 33 * + CAST( NULL AS DECIMAL ) * + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT + - 33 * + CAST ( NULL AS REAL ) * + 0 AS col2
----
NULL

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

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

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

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

query II rowsort
SELECT + 91 + - 38 * + 77 AS col2, 29 * + ( + 90 ) col1
----
-2835
2610

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

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

query I rowsort
SELECT - ( 77 )
----
-77

query I rowsort
SELECT - 37 + + 62 col0
----
25

query I rowsort
SELECT ALL 40 AS col0
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT + NULLIF ( - 47, + 1 * - SUM( + + 60 ) + + + MAX( - 74 ) * + - 84 + + 6 ) - - 5
----
-42

skipif mysql # not compatible
query I rowsort label-19
SELECT + NULLIF ( - 47, + 1 * - SUM ( + + 60 ) + + + MAX ( - 74 ) * + - 84 + + 6 ) - - 5
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT + 86 * SUM( - 14 ) + - 40 AS col0
----
-1244

skipif mysql # not compatible
query I rowsort label-20
SELECT + 86 * SUM ( - 14 ) + - 40 AS col0
----
-1244

query I rowsort
SELECT - 95 / + CASE 63 WHEN + 35 * 93 THEN + 58 * 84 + - 58 + 66 + + 39 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-22
SELECT ALL 4 * + COALESCE ( + 32, + ( + 40 ) DIV + 89 ) + 12 + - 83 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL 4 * + COALESCE ( + 32, + ( + 40 ) / + 89 ) + 12 + - 83 AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-23
SELECT - + 74 * 21 DIV 50 + 25 + COUNT( * ) * 40 * - + 39 * - COUNT( * ) col2
----
1554

skipif mysql # not compatible
query I rowsort label-23
SELECT - + 74 * 21 / 50 + 25 + COUNT ( * ) * 40 * - + 39 * - COUNT ( * ) col2
----
1554

query I rowsort
SELECT - 32 - 76 AS col0
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-25
SELECT DISTINCT + - NULLIF ( - 71, + 43 + - 47 + + SUM( + CAST( 39 AS SIGNED ) ) )
----
71

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT + - NULLIF ( - 71, + 43 + - 47 + + SUM ( + CAST ( 39 AS INTEGER ) ) )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-26
SELECT 60 * MAX( ALL 2 ) + - SUM( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-26
SELECT 60 * MAX ( ALL 2 ) + - SUM ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 45 - 56 AS col2
----
-101

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

query I rowsort
SELECT - 3 * - 62 AS col2
----
186

query I rowsort
SELECT ALL - 0 * 98
----
0

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

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

query I rowsort
SELECT + - 74 * + 65 * 44 + + ( - + 14 ) AS col0
----
-211654

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT ALL + NULLIF ( + 94, + - 11 ) * + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL + NULLIF ( + 94, + - 11 ) * + COUNT ( * )
----
94

query I rowsort
SELECT ALL + + 69 AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-35
SELECT 45 * MAX( ALL - - 43 ) + - NULLIF ( - 63, - - COUNT( * ) / - COUNT( * ) * + COALESCE ( - 15, - - 11 * - CAST( 43 - 7 * 55 AS SIGNED ), + 59, - 63 + + 40 ) ) + 18 * ( - NULLIF ( + 5, + CASE - COUNT( * ) WHEN - 36 THEN NULL WHEN + 82 + AVG ( DISTINCT 34 - 25 ) THEN NULL WHEN 6 + 80 THEN + 87 END ) )
----
1908

skipif mysql # not compatible
query I rowsort label-35
SELECT 45 * MAX ( ALL - - 43 ) + - NULLIF ( - 63, - - COUNT ( * ) / - COUNT ( * ) * + COALESCE ( - 15, - - 11 * - CAST ( 43 - 7 * 55 AS INTEGER ), + 59, - 63 + + 40 ) ) + 18 * ( - NULLIF ( + 5, + CASE - COUNT ( * ) WHEN - 36 THEN NULL WHEN + 82 + AVG ( DISTINCT 34 - 25 ) THEN NULL WHEN 6 + 80 THEN + 87 END ) )
----
1908

query I rowsort
SELECT ALL - 39 * 0 AS col2
----
0

query I rowsort
SELECT DISTINCT 89 * - 54 - + - 95
----
-4711

query I rowsort
SELECT ALL + 48 * + 33 AS col1
----
1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-39
SELECT - CASE + - 61 WHEN COUNT( * ) + - 73 + + - 86 - - 67 + - ( + CASE + - 18 WHEN - COALESCE ( - COALESCE ( + COALESCE ( 44, - ( 86 ) + - 76 ), + CAST( NULL AS SIGNED ), + ( 15 ) + 62 ), - 10 ) * 64 THEN 22 + 72 ELSE 38 END ) + 33 / - 12 THEN 26 WHEN - 99 * - 18 + - CAST( NULL AS SIGNED ) * + 48 THEN NULL END + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-39
SELECT - CASE + - 61 WHEN COUNT ( * ) + - 73 + + - 86 - - 67 + - ( + CASE + - 18 WHEN - COALESCE ( - COALESCE ( + COALESCE ( 44, - ( 86 ) + - 76 ), + CAST ( NULL AS INTEGER ), + ( 15 ) + 62 ), - 10 ) * 64 THEN 22 + 72 ELSE 38 END ) + 33 / - 12 THEN 26 WHEN - 99 * - 18 + - CAST ( NULL AS INTEGER ) * + 48 THEN NULL END + + 5
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT + 88 + + + 95 + - COUNT( * ) * - 51
----
234

skipif mysql # not compatible
query I rowsort label-41
SELECT + 88 + + + 95 + - COUNT ( * ) * - 51
----
234

query I rowsort
SELECT - - 93 * - 30 * + + ( + - 24 ) * - 85 + 50 AS col2
----
-5691550

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

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

query I rowsort
SELECT ALL 3 * - - 67
----
201

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

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

query II rowsort
SELECT ALL - 88 + - - 94 AS col2, ( COALESCE ( - 36, 83 * - 59 * - 7 ) )
----
6
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-47
SELECT ALL CAST( - - COUNT( DISTINCT + ( + + 50 ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL CAST ( - - COUNT ( DISTINCT + ( + + 50 ) ) AS INTEGER )
----
1

query I rowsort
SELECT - 97 + 0 * + 60
----
-97

query I rowsort
SELECT - 56 - + 11 col0
----
-67

query I rowsort
SELECT ALL - ( + 23 ) * - + 40 * ( 59 ) + - - 30
----
54310

query I rowsort
SELECT - 73 * + 49
----
-3577

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-52
SELECT + 79 + 35 * + - 62 DIV ( + COUNT( * ) ) AS col0
----
-2091

skipif mysql # not compatible
query I rowsort label-52
SELECT + 79 + 35 * + - 62 / ( + COUNT ( * ) ) AS col0
----
-2091

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

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

query I rowsort
SELECT + 43 + + NULLIF ( + 51, - 21 + - + 54 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-55
SELECT 58 AS col1, COUNT( * ) * - - ( 57 ) * 85 + - COUNT( * ) * 17
----
58
4828

skipif mysql # not compatible
query II rowsort label-55
SELECT 58 AS col1, COUNT ( * ) * - - ( 57 ) * 85 + - COUNT ( * ) * 17
----
58
4828

query I rowsort
SELECT ALL + 98 * + + 71 AS col1
----
6958

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT + SUM( ALL + 66 ) - 69 + - CASE + 71 WHEN + 22 THEN NULL ELSE + 64 * MIN( ALL 23 ) END + + COUNT( * ) + - 73 - - 73 AS col1
----
-1474

skipif mysql # not compatible
query I rowsort label-57
SELECT + SUM ( ALL + 66 ) - 69 + - CASE + 71 WHEN + 22 THEN NULL ELSE + 64 * MIN ( ALL 23 ) END + + COUNT ( * ) + - 73 - - 73 AS col1
----
-1474

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

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL 90 / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT DISTINCT 48 + 86 * - MAX( DISTINCT - ( + 29 ) ) col2
----
2542

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT 48 + 86 * - MAX ( DISTINCT - ( + 29 ) ) col2
----
2542

query I rowsort
SELECT + 83 * + 5
----
415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-61
SELECT CAST( + CASE COUNT( * ) WHEN 74 THEN - - 63 END AS SIGNED ) * 12 + - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-61
SELECT CAST ( + CASE COUNT ( * ) WHEN 74 THEN - - 63 END AS INTEGER ) * 12 + - 7 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 16 AS col0, + 96 AS col1
----
16
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT + COUNT( DISTINCT 34 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-64
SELECT + COUNT ( DISTINCT 34 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-65
SELECT + 75 DIV - 94 + 47
----
47

skipif mysql # not compatible
query I rowsort label-65
SELECT + 75 / - 94 + 47
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-66
SELECT + NULLIF ( + - 49, - ( + 45 ) ) * - 29 - - + 83 * + + CAST( + + 24 AS SIGNED ) + 35 * - NULLIF ( + + 93, - 14 ) col0
----
158

skipif mysql # not compatible
query I rowsort label-66
SELECT + NULLIF ( + - 49, - ( + 45 ) ) * - 29 - - + 83 * + + CAST ( + + 24 AS INTEGER ) + 35 * - NULLIF ( + + 93, - 14 ) col0
----
158

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-68
SELECT + 43 + 27 + + CASE + + 14 WHEN - 25 THEN NULL ELSE + CAST( NULL AS SIGNED ) / + CAST( - 37 AS SIGNED ) * + 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-68
SELECT + 43 + 27 + + CASE + + 14 WHEN - 25 THEN NULL ELSE + CAST ( NULL AS INTEGER ) / + CAST ( - 37 AS INTEGER ) * + 38 END
----
NULL

query II rowsort
SELECT DISTINCT - - 52 AS col0, - 44 * - + 79 * 28 + + - 95 AS col2
----
52
97233

query I rowsort
SELECT DISTINCT + 71 - + - 87
----
158

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-71
SELECT + 0 * - + CAST( NULL AS SIGNED ) * + + 99 * - CAST( NULL AS DECIMAL ) + - 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-71
SELECT + 0 * - + CAST ( NULL AS INTEGER ) * + + 99 * - CAST ( NULL AS REAL ) + - 22 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-72
SELECT DISTINCT - + CAST( + 61 AS SIGNED ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT - + CAST ( + 61 AS INTEGER ) AS col2
----
-61

query I rowsort
SELECT - 67 * + 77 AS col2
----
-5159

query II rowsort
SELECT 56 * 82 AS col2, 75 + - 0 * - + 84 * + + 48
----
4592
75

query I rowsort
SELECT - ( - - 37 ) * + 78 - - 16 AS col0
----
-2870

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

query II rowsort
SELECT + + 32 AS col0, 68
----
32
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-78
SELECT + CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) + + 53 * - - 10 + - ( - - 33 )
----
NULL
496

skipif mysql # not compatible
query II rowsort label-78
SELECT + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) + + 53 * - - 10 + - ( - - 33 )
----
NULL
496

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT CASE + SUM( 62 ) WHEN + 80 * + - 24 THEN NULL ELSE 43 - SUM( ALL - + 22 ) END * 1 * + 80 AS col2
----
5200

skipif mysql # not compatible
query I rowsort label-80
SELECT CASE + SUM ( 62 ) WHEN + 80 * + - 24 THEN NULL ELSE 43 - SUM ( ALL - + 22 ) END * 1 * + 80 AS col2
----
5200

query II rowsort
SELECT ALL 71 AS col2, - 63 col1
----
71
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-82
SELECT 30 DIV 18, 19 * + 71 AS col0
----
1
1349

skipif mysql # not compatible
query II rowsort label-82
SELECT 30 / 18, 19 * + 71 AS col0
----
1
1349

query I rowsort
SELECT DISTINCT + 19 + 76 * 75 col0
----
5719

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT DISTINCT - 74 + + CASE - + 46 WHEN 57 THEN - MIN( + 1 ) * - 26 * - 74 WHEN + COUNT( * ) THEN + 27 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT - 74 + + CASE - + 46 WHEN 57 THEN - MIN ( + 1 ) * - 26 * - 74 WHEN + COUNT ( * ) THEN + 27 ELSE NULL END AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT 59 - + - COUNT( 9 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-86
SELECT 59 - + - COUNT ( 9 ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT DISTINCT - 56 + MAX( + - 29 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT - 56 + MAX ( + - 29 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-88
SELECT ALL + 2 + - 19 * - NULLIF ( - + 65, 44 ) * + - 98 * + COUNT( * ) col0, + 64 + - 11 AS col0
----
121032
53

skipif mysql # not compatible
query II rowsort label-88
SELECT ALL + 2 + - 19 * - NULLIF ( - + 65, 44 ) * + - 98 * + COUNT ( * ) col0, + 64 + - 11 AS col0
----
121032
53

query I rowsort
SELECT 49 + 39 AS col2
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-90
SELECT DISTINCT - 57 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-90
SELECT DISTINCT - 57 + - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT DISTINCT 49 * 40 AS col1, - 47 AS col2
----
1960
-47

query I rowsort
SELECT ALL - 39 + 79 AS col0
----
40

query I rowsort
SELECT 39 * - 7 AS col0
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-94
SELECT 45 + + CAST( NULL AS SIGNED ) / + ( - 66 ) + - - 74 - - + 56 + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-94
SELECT 45 + + CAST ( NULL AS INTEGER ) / + ( - 66 ) + - - 74 - - + 56 + 80
----
NULL

query I rowsort
SELECT 55 + - + ( 65 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT MAX( + 33 ) + 54 + 48 * 22 col2
----
1143

skipif mysql # not compatible
query I rowsort label-96
SELECT MAX ( + 33 ) + 54 + 48 * 22 col2
----
1143

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT DISTINCT + COUNT( * ) * 67 * 96 * - COUNT( * ) * - COUNT( * ) col2
----
6432

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT + COUNT ( * ) * 67 * 96 * - COUNT ( * ) * - COUNT ( * ) col2
----
6432

query I rowsort
SELECT ALL - - 41 col2
----
41

query I rowsort
SELECT ALL - + 63 AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-100
SELECT DISTINCT 42 DIV - + ( + ( 87 ) ) - - 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT 42 / - + ( + ( 87 ) ) - - 32 AS col1
----
32

query I rowsort
SELECT + COALESCE ( 85, - 85 + + 5 + - + 4 ) + 12
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT + 64 * + 37 * 79 * + COUNT( * ) * + - ( - 50 ) + - 91 * - COUNT( DISTINCT + 14 )
----
9353691

skipif mysql # not compatible
query I rowsort label-102
SELECT + 64 * + 37 * 79 * + COUNT ( * ) * + - ( - 50 ) + - 91 * - COUNT ( DISTINCT + 14 )
----
9353691

query I rowsort
SELECT + 30 - - ( 82 )
----
112

query I rowsort
SELECT 70 * - 80 + - 29
----
-5629

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT + MAX( 15 ) * - + 5 * 20 + - 6 + - + 47 AS col0
----
-1553

skipif mysql # not compatible
query I rowsort label-105
SELECT + MAX ( 15 ) * - + 5 * 20 + - 6 + - + 47 AS col0
----
-1553

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT - 68 * - + MAX( + 67 ) - 58 AS col1
----
4498

skipif mysql # not compatible
query I rowsort label-106
SELECT - 68 * - + MAX ( + 67 ) - 58 AS col1
----
4498

query II rowsort
SELECT - 96 + + + 98, - 67 AS col1
----
2
-67

query I rowsort
SELECT DISTINCT + 29 + - - 68
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-109
SELECT ALL + ( + 70 ) + COUNT( * ) * - ( 65 ), COUNT( * ) * + 99 + - 6 AS col2
----
5
93

skipif mysql # not compatible
query II rowsort label-109
SELECT ALL + ( + 70 ) + COUNT ( * ) * - ( 65 ), COUNT ( * ) * + 99 + - 6 AS col2
----
5
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-110
SELECT - - 28 * + - COUNT( * ) + - 85 + + - 56 * - CAST( + 76 AS SIGNED )
----
4143

skipif mysql # not compatible
query I rowsort label-110
SELECT - - 28 * + - COUNT ( * ) + - 85 + + - 56 * - CAST ( + 76 AS INTEGER )
----
4143

query II rowsort
SELECT 49 + + NULLIF ( - + 46, 30 + - 0 * + 76 ) AS col2, 4
----
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT 20 + 19 * + MIN( DISTINCT + 88 ) * - 25
----
-41780

skipif mysql # not compatible
query I rowsort label-112
SELECT 20 + 19 * + MIN ( DISTINCT + 88 ) * - 25
----
-41780

query I rowsort
SELECT NULLIF ( - + 67, - AVG ( DISTINCT - 80 ) + + - ( - 44 ) ) * - + 69 + 59 AS col1
----
4682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-114
SELECT 59 + - - MIN( DISTINCT + 25 ) - CAST( 93 AS SIGNED ) + + 67 + - CASE - 52 WHEN + 80 THEN NULL WHEN + COUNT( ALL - + 78 ) + 16 / - COUNT( * ) / + COUNT( DISTINCT + 36 ) + + 35 * COUNT( * ) THEN - 86 * + 68 END + 99 * 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-114
SELECT 59 + - - MIN ( DISTINCT + 25 ) - CAST ( 93 AS INTEGER ) + + 67 + - CASE - 52 WHEN + 80 THEN NULL WHEN + COUNT ( ALL - + 78 ) + 16 / - COUNT ( * ) / + COUNT ( DISTINCT + 36 ) + + 35 * COUNT ( * ) THEN - 86 * + 68 END + 99 * 20 AS col2
----
NULL

query I rowsort
SELECT ALL - 70 + + 90
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-116
SELECT DISTINCT + 16 DIV - COALESCE ( 74, - 67 + + 87 )
----
0

skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT + 16 / - COALESCE ( 74, - 67 + + 87 )
----
0

query II rowsort
SELECT ALL 79 AS col0, 57 * 91 col2
----
79
5187

query I rowsort
SELECT 55 + + 54 AS col0
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-119
SELECT 65 + + 83 DIV + 42 + + 78 * - MIN( ALL 1 ), - 13 AS col0
----
-12
-13

skipif mysql # not compatible
query II rowsort label-119
SELECT 65 + + 83 / + 42 + + 78 * - MIN ( ALL 1 ), - 13 AS col0
----
-12
-13

query II rowsort
SELECT - 90 AS col1, + 71 + - 61 AS col0
----
-90
10

query I rowsort
SELECT 84 * + 20
----
1680

query II rowsort
SELECT 97, 66 AS col1
----
97
66

query I rowsort
SELECT DISTINCT + 26 - - 76 AS col1
----
102

query I rowsort
SELECT ALL + 8 - + 42
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT ALL 18 * - COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL 18 * - COUNT ( * ) AS col2
----
-18

query II rowsort
SELECT DISTINCT 14 AS col2, + ( 62 ) AS col0
----
14
62

query I rowsort
SELECT - + 7 + + - 73 AS col0
----
-80

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

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL - MIN ( - 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT - - NULLIF ( 23, - - 28 + 94 ) * - + SUM( DISTINCT 65 ) AS col0
----
-1495

skipif mysql # not compatible
query I rowsort label-129
SELECT - - NULLIF ( 23, - - 28 + 94 ) * - + SUM ( DISTINCT 65 ) AS col0
----
-1495

onlyif mysql # DIV for integer division: 
query I rowsort label-130
SELECT DISTINCT + 10 DIV + - 5 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT + 10 / + - 5 AS col2
----
-2

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

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

query II rowsort
SELECT + 76 AS col0, NULLIF ( + 31, + + AVG ( - 34 ) ) * + 33 * 21 AS col0
----
76
21483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-133
SELECT - 58 * - 0 + + 71 + CAST( + + 82 AS SIGNED ) AS col0
----
153

skipif mysql # not compatible
query I rowsort label-133
SELECT - 58 * - 0 + + 71 + CAST ( + + 82 AS INTEGER ) AS col0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT ALL + 60 * - ( COUNT( * ) ) * - - 58 * + - 53 AS col2
----
184440

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL + 60 * - ( COUNT ( * ) ) * - - 58 * + - 53 AS col2
----
184440

query II rowsort
SELECT + 76 col1, - 70 * - - NULLIF ( 8, 17 )
----
76
-560

onlyif mysql # aggregate syntax: 
query II rowsort label-136
SELECT DISTINCT + + COUNT( * ) AS col2, - 88 * + 25 * + 30 + - - 6
----
1
-65994

skipif mysql # not compatible
query II rowsort label-136
SELECT DISTINCT + + COUNT ( * ) AS col2, - 88 * + 25 * + 30 + - - 6
----
1
-65994

query I rowsort
SELECT ALL + + 28 * - 5 AS col0
----
-140

query I rowsort
SELECT DISTINCT + 54 col2
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-139
SELECT + + 56 DIV + - COALESCE ( + 89, - 12, + COUNT( * ) ) * 72
----
0

skipif mysql # not compatible
query I rowsort label-139
SELECT + + 56 / + - COALESCE ( + 89, - 12, + COUNT ( * ) ) * 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-140
SELECT - 45 * - + CASE - + 67 WHEN - + COUNT( * ) + COUNT( * ) DIV 65 - - 92 THEN CASE + 18 WHEN SUM( ALL + 7 ) THEN - MIN( - 17 ) + - COALESCE ( COUNT( * ), 58 + + 58 ) * + 49 ELSE NULL END * - 1 WHEN - 11 * - 41 THEN 28 + 17 DIV 69 ELSE ( + 44 ) END - - 39 AS col2
----
2019

skipif mysql # not compatible
query I rowsort label-140
SELECT - 45 * - + CASE - + 67 WHEN - + COUNT ( * ) + COUNT ( * ) / 65 - - 92 THEN CASE + 18 WHEN SUM ( ALL + 7 ) THEN - MIN ( - 17 ) + - COALESCE ( COUNT ( * ), 58 + + 58 ) * + 49 ELSE NULL END * - 1 WHEN - 11 * - 41 THEN 28 + 17 / 69 ELSE ( + 44 ) END - - 39 AS col2
----
2019

onlyif mysql # DIV for integer division: 
query I rowsort label-141
SELECT COALESCE ( - 23, - 17, + 94 * - COALESCE ( 39, - 5 ) + + 92 * - 8 + - 97 DIV - 76 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-141
SELECT COALESCE ( - 23, - 17, + 94 * - COALESCE ( 39, - 5 ) + + 92 * - 8 + - 97 / - 76 ) AS col1
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-142
SELECT - 33 + - + CASE + 71 WHEN - 57 + 43 THEN CAST( NULL AS DECIMAL ) + 82 WHEN 66 * + 43 + 47 THEN NULL ELSE NULL END - + 85 + - ( + + ( + + 44 ) ) * 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-142
SELECT - 33 + - + CASE + 71 WHEN - 57 + 43 THEN CAST ( NULL AS REAL ) + 82 WHEN 66 * + 43 + 47 THEN NULL ELSE NULL END - + 85 + - ( + + ( + + 44 ) ) * 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT + COALESCE ( + 22, COUNT( * ) * 66 * - 91, - NULLIF ( + 50, - + 74 + + 98 * - 63 ) * - ( + 75 ) + - - 71, + 33 )
----
22

skipif mysql # not compatible
query I rowsort label-143
SELECT + COALESCE ( + 22, COUNT ( * ) * 66 * - 91, - NULLIF ( + 50, - + 74 + + 98 * - 63 ) * - ( + 75 ) + - - 71, + 33 )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-144
SELECT ALL - 6 * - MIN( ALL 55 ) + 20 DIV COUNT( * ) AS col1
----
350

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL - 6 * - MIN ( ALL 55 ) + 20 / COUNT ( * ) AS col1
----
350

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

skipif mysql # not compatible
query I rowsort label-145
SELECT + MAX ( - 44 )
----
-44

query II rowsort
SELECT ALL - 45 * 82 * + 60 + - + 56, - 66 * - - 55 * - 90 * 10 AS col1
----
-221456
3267000

query I rowsort
SELECT DISTINCT 38 * - 28 * - 60
----
63840

query I rowsort
SELECT DISTINCT + 12 * + + 29 - + 65 + 81
----
364

query I rowsort
SELECT ALL 73 * + 32
----
2336

onlyif mysql # aggregate syntax: 
query II rowsort label-150
SELECT MAX( DISTINCT + - 54 ) AS col2, - 17 + - 79 + - + MAX( ALL - 91 )
----
-54
-5

skipif mysql # not compatible
query II rowsort label-150
SELECT MAX ( DISTINCT + - 54 ) AS col2, - 17 + - 79 + - + MAX ( ALL - 91 )
----
-54
-5

query I rowsort
SELECT - NULLIF ( + + 38, - + 8 ) AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-152
SELECT + CAST( NULL AS SIGNED ) * 96 / + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-152
SELECT + CAST ( NULL AS INTEGER ) * 96 / + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT + CASE - - 66 WHEN + 28 THEN NULL WHEN 22 THEN - 64 - + ( + 84 ) END * + - MAX( DISTINCT 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-153
SELECT + CASE - - 66 WHEN + 28 THEN NULL WHEN 22 THEN - 64 - + ( + 84 ) END * + - MAX ( DISTINCT 76 )
----
NULL

query II rowsort
SELECT + 19 + 55 AS col1, 89
----
74
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-155
SELECT - COALESCE ( + - 27, + 16 * - - 8 ) - + ( - - COUNT( * ) ) + + COUNT( * ) * + - 34 DIV - 83 AS col0, - 62
----
26
-62

skipif mysql # not compatible
query II rowsort label-155
SELECT - COALESCE ( + - 27, + 16 * - - 8 ) - + ( - - COUNT ( * ) ) + + COUNT ( * ) * + - 34 / - 83 AS col0, - 62
----
26
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-156
SELECT + 13 DIV 31 * + MAX( DISTINCT - 10 ) * 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-156
SELECT + 13 / 31 * + MAX ( DISTINCT - 10 ) * 22 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-157
SELECT + CASE COALESCE ( + + 50, + 18, + AVG ( ( + - 39 ) ) * - COUNT( * ) * + + 42 * + ( + CAST( NULL AS SIGNED ) ) + - 75 + + + COUNT( * ), + 53 * CASE AVG ( 45 ) WHEN - COUNT( - 21 ) THEN NULL WHEN - 47 THEN + CAST( + 38 AS SIGNED ) END ) WHEN + 97 THEN NULL WHEN 21 THEN 78 END + MAX( DISTINCT 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-157
SELECT + CASE COALESCE ( + + 50, + 18, + AVG ( ( + - 39 ) ) * - COUNT ( * ) * + + 42 * + ( + CAST ( NULL AS INTEGER ) ) + - 75 + + + COUNT ( * ), + 53 * CASE AVG ( 45 ) WHEN - COUNT ( - 21 ) THEN NULL WHEN - 47 THEN + CAST ( + 38 AS INTEGER ) END ) WHEN + 97 THEN NULL WHEN 21 THEN 78 END + MAX ( DISTINCT 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT + - ( COUNT( ALL + COALESCE ( - 53, 40 ) ) ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-158
SELECT + - ( COUNT ( ALL + COALESCE ( - 53, 40 ) ) ) + - COUNT ( * )
----
-2

query II rowsort
SELECT - 76 * + 86 * - 38 + - 46 AS col0, + 99
----
248322
99

query I rowsort
SELECT - 89 * - + ( 45 ) + - - 85 + 80 + + 28 * - + 92 AS col0
----
1594

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-161
SELECT ALL 59 * + - 26 - - - 90 + + CAST( NULL AS DECIMAL ) + + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL 59 * + - 26 - - - 90 + + CAST ( NULL AS REAL ) + + - 39
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT - + NULLIF ( + MIN( ALL - ( - 12 ) ), + - 76 )
----
-12

skipif mysql # not compatible
query I rowsort label-163
SELECT - + NULLIF ( + MIN ( ALL - ( - 12 ) ), + - 76 )
----
-12

query I rowsort
SELECT ALL - 82 col0
----
-82

query I rowsort
SELECT + 56 * 34 AS col2
----
1904

query I rowsort
SELECT ALL - 20 + + 53 AS col1
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-167
SELECT DISTINCT 30 + 89 - - CAST( NULL AS DECIMAL ) + - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT 30 + 89 - - CAST ( NULL AS REAL ) + - 46 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-168
SELECT ALL - 92 DIV - - ( + COUNT( * ) ) + CAST( - - COALESCE ( + + COUNT( * ), + - 49, + 84 ) AS SIGNED ) + - + 98
----
-189

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL - 92 / - - ( + COUNT ( * ) ) + CAST ( - - COALESCE ( + + COUNT ( * ), + - 49, + 84 ) AS INTEGER ) + - + 98
----
-189

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT - + 27 * 38 + + - SUM( - ( 39 ) ) * 50
----
924

skipif mysql # not compatible
query I rowsort label-170
SELECT - + 27 * 38 + + - SUM ( - ( 39 ) ) * 50
----
924

query I rowsort
SELECT - - 85 + + 86
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-172
SELECT + COUNT( * ) + - 91, COUNT( * ) col2
----
-90
1

skipif mysql # not compatible
query II rowsort label-172
SELECT + COUNT ( * ) + - 91, COUNT ( * ) col2
----
-90
1

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

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

query I rowsort
SELECT - 28 - 98 AS col1
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-175
SELECT + 21 * + 41 + - ( + 82 ) * - ( COALESCE ( + 10, + CASE - + ( CAST( - - 27 AS SIGNED ) ) WHEN - CASE - 81 WHEN - ( ( SUM( - 87 ) ) ) THEN 10 ELSE NULL END THEN 44 + - 18 ELSE NULL END ) ) + 35 AS col0
----
1716

skipif mysql # not compatible
query I rowsort label-175
SELECT + 21 * + 41 + - ( + 82 ) * - ( COALESCE ( + 10, + CASE - + ( CAST ( - - 27 AS INTEGER ) ) WHEN - CASE - 81 WHEN - ( ( SUM ( - 87 ) ) ) THEN 10 ELSE NULL END THEN 44 + - 18 ELSE NULL END ) ) + 35 AS col0
----
1716

query I rowsort
SELECT ALL - 15 * - 39
----
585

query I rowsort
SELECT ALL - 43 * - 99
----
4257

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT DISTINCT - ( + 58 ) * + 46 - ( + + MIN( DISTINCT + 57 ) ) * - 17 - - 10 col0
----
-1689

skipif mysql # not compatible
query I rowsort label-178
SELECT DISTINCT - ( + 58 ) * + 46 - ( + + MIN ( DISTINCT + 57 ) ) * - 17 - - 10 col0
----
-1689

query I rowsort
SELECT - 97 * - 80
----
7760

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT ALL - 80 DIV - NULLIF ( - 73, + - 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL - 80 / - NULLIF ( - 73, + - 22 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-181
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, 37
----
NULL
37

skipif mysql # not compatible
query II rowsort label-181
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 37
----
NULL
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-182
SELECT ( + CAST( NULL AS DECIMAL ) ) + - + ( + 87 ) + - + 30 + + 88 + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-182
SELECT ( + CAST ( NULL AS REAL ) ) + - + ( + 87 ) + - + 30 + + 88 + 12
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-183
SELECT MAX( DISTINCT - 32 ) * COUNT( * ) DIV + ( 66 ) AS col1, 94 + - COUNT( * ) AS col2
----
0
93

skipif mysql # not compatible
query II rowsort label-183
SELECT MAX ( DISTINCT - 32 ) * COUNT ( * ) / + ( 66 ) AS col1, 94 + - COUNT ( * ) AS col2
----
0
93

query II rowsort
SELECT ALL - 8 * - 66 * - - 43 AS col2, + 67 * 39
----
22704
2613

query I rowsort
SELECT 90 + 37 AS col0
----
127

query I rowsort
SELECT DISTINCT 5 AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-187
SELECT DISTINCT 30 * + NULLIF ( - 51, + - CAST( - + 76 AS SIGNED ) ) AS col1
----
-1530

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT 30 * + NULLIF ( - 51, + - CAST ( - + 76 AS INTEGER ) ) AS col1
----
-1530

query I rowsort
SELECT ALL 89 + 12 AS col1
----
101

query I rowsort
SELECT NULLIF ( 16, + + 70 ) * + 52 + - - 77
----
909

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-191
SELECT 45 AS col1, - 64 * - COUNT( + - 10 )
----
45
64

skipif mysql # not compatible
query II rowsort label-191
SELECT 45 AS col1, - 64 * - COUNT ( + - 10 )
----
45
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-192
SELECT DISTINCT CAST( + - COUNT( DISTINCT 4 ) AS SIGNED ) + + 41
----
40

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT CAST ( + - COUNT ( DISTINCT 4 ) AS INTEGER ) + + 41
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-193
SELECT ALL 93 + 51 * - + 47 - + 46 DIV - 85 AS col2
----
-2304

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL 93 + 51 * - + 47 - + 46 / - 85 AS col2
----
-2304

onlyif mysql # aggregate syntax: 
query II rowsort label-194
SELECT DISTINCT - 41 + - 91 + + 53 - + 13 - - 3, COUNT( * ) AS col2
----
-89
1

skipif mysql # not compatible
query II rowsort label-194
SELECT DISTINCT - 41 + - 91 + + 53 - + 13 - - 3, COUNT ( * ) AS col2
----
-89
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-196
SELECT DISTINCT + 67 DIV - 42 * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT + 67 / - 42 * COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL 59 + 78 + - 6 * + 94
----
-427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-198
SELECT + 42 DIV 60 + + - 42 + CAST( 2 AS SIGNED ) + - 96 * 7 + NULLIF ( 28, + 84 - + 19 - - 27 - + 18 * - - 17 + + AVG ( - 78 ) ) + + COUNT( * )
----
-683

skipif mysql # not compatible
query I rowsort label-198
SELECT + 42 / 60 + + - 42 + CAST ( 2 AS INTEGER ) + - 96 * 7 + NULLIF ( 28, + 84 - + 19 - - 27 - + 18 * - - 17 + + AVG ( - 78 ) ) + + COUNT ( * )
----
-683

query I rowsort
SELECT + 26 + COALESCE ( - 94, 9 + + 20 * - 51 ) * + + 30
----
-2794

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-200
SELECT 0, + ( + CAST( + 11 AS SIGNED ) ) AS col0
----
0
11

skipif mysql # not compatible
query II rowsort label-200
SELECT 0, + ( + CAST ( + 11 AS INTEGER ) ) AS col0
----
0
11

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

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

query I rowsort
SELECT ALL - NULLIF ( - - 3, + 57 * - 53 + 67 / 5 )
----
-3

query I rowsort
SELECT DISTINCT + 15 - - - 22 - + - 65 + + - 58 * 0 * 94
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-204
SELECT 0, + COUNT( * ) + + NULLIF ( - - ( - 80 ), 44 ) + 14 - - COUNT( * ) + ( + 51 ) AS col0
----
0
-13

skipif mysql # not compatible
query II rowsort label-204
SELECT 0, + COUNT ( * ) + + NULLIF ( - - ( - 80 ), 44 ) + 14 - - COUNT ( * ) + ( + 51 ) AS col0
----
0
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-205
SELECT ALL 9 - - 86 AS col0, 21 * - 54 + 55 * - COUNT( * )
----
95
-1189

skipif mysql # not compatible
query II rowsort label-205
SELECT ALL 9 - - 86 AS col0, 21 * - 54 + 55 * - COUNT ( * )
----
95
-1189

query II rowsort
SELECT ALL - 88 col1, 89
----
-88
89

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

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

query I rowsort
SELECT 33 * + 31 col0
----
1023

query I rowsort
SELECT 74 * - ( + - 93 ) AS col2
----
6882

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

skipif mysql # not compatible
query I rowsort label-210
SELECT CAST ( NULL AS INTEGER ) + - 27 + - + ( 16 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT 58 + + COUNT( * ) + - 44 col1
----
15

skipif mysql # not compatible
query I rowsort label-211
SELECT 58 + + COUNT ( * ) + - 44 col1
----
15

query I rowsort
SELECT DISTINCT - 67 * - 86 AS col0
----
5762

query I rowsort
SELECT DISTINCT - 94 * - 46
----
4324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-214
SELECT CAST( NULL AS SIGNED ) * - 68 - - ( + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-214
SELECT CAST ( NULL AS INTEGER ) * - 68 - - ( + 99 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-215
SELECT ALL - 76 * MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL - 76 * MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 67 + - 3 - + 68 AS col2
----
-138

query I rowsort
SELECT 99 * - 38
----
-3762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-219
SELECT ALL - COUNT( * ) + COALESCE ( - - CAST( + 92 AS SIGNED ), - ( - 66 ) ) * + + 4 - CASE + COUNT( * ) WHEN 50 + - + 64 * 39 THEN - ( - - 45 ) / - COUNT( - 81 ) WHEN + COUNT( DISTINCT - 12 ) / + 9 THEN 10 - + ( 48 ) / 94 ELSE NULL END * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL - COUNT ( * ) + COALESCE ( - - CAST ( + 92 AS INTEGER ), - ( - 66 ) ) * + + 4 - CASE + COUNT ( * ) WHEN 50 + - + 64 * 39 THEN - ( - - 45 ) / - COUNT ( - 81 ) WHEN + COUNT ( DISTINCT - 12 ) / + 9 THEN 10 - + ( 48 ) / 94 ELSE NULL END * 46
----
NULL

query I rowsort
SELECT ALL + 50 + - 13 * 46
----
-548

query I rowsort
SELECT + 48 * + 9 + 70
----
502

query I rowsort
SELECT + 2 + + 50 AS col2
----
52

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-225
SELECT - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) DIV + - 86 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-225
SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) / + - 86 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT ALL CASE + 10 WHEN - 92 * + - 90 * - 51 + 78 + - - 64 * - SUM( 18 ) * + COUNT( * ) * + 7 * - 83 + + 26 THEN + 84 + 54 ELSE + 77 * - COUNT( * ) END + 72 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL CASE + 10 WHEN - 92 * + - 90 * - 51 + 78 + - - 64 * - SUM ( 18 ) * + COUNT ( * ) * + 7 * - 83 + + 26 THEN + 84 + 54 ELSE + 77 * - COUNT ( * ) END + 72 AS col2
----
-5

query I rowsort
SELECT DISTINCT + + 97 + CASE 77 WHEN - ( - - 86 ) * 67 * + 65 * + - 33 THEN - 78 + 1 - 10 + + COALESCE ( 99, 23 * 9 ) + 56 * - 41 ELSE NULL END * + 39 AS col2
----
NULL

query I rowsort
SELECT 55 * + 82 AS col1
----
4510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-229
SELECT - MAX( DISTINCT - CAST( - - 49 AS SIGNED ) ) + - - 43 - + + 7
----
85

skipif mysql # not compatible
query I rowsort label-229
SELECT - MAX ( DISTINCT - CAST ( - - 49 AS INTEGER ) ) + - - 43 - + + 7
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-230
SELECT ALL + - 22 + 29 + - 81 * 5 * 58 * + CAST( NULL AS SIGNED ) + - 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL + - 22 + 29 + - 81 * 5 * 58 * + CAST ( NULL AS INTEGER ) + - 42 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 53 * + 26
----
1378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-232
SELECT 80 + COUNT( * ) + + 32 + - - 51 + CASE + 52 WHEN + - 87 + + 74 THEN CAST( 34 AS SIGNED ) + + 62 END / + - NULLIF ( CAST( - + 62 AS SIGNED ), + + 21 * 53 ) + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT 80 + COUNT ( * ) + + 32 + - - 51 + CASE + 52 WHEN + - 87 + + 74 THEN CAST ( 34 AS INTEGER ) + + 62 END / + - NULLIF ( CAST ( - + 62 AS INTEGER ), + + 21 * 53 ) + 44 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 66 - - - 89
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-234
SELECT + 40 + CAST( ( - COUNT( * ) ) AS SIGNED ) + + AVG ( + - CAST( NULL AS SIGNED ) ) + + - 89 * - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT + 40 + CAST ( ( - COUNT ( * ) ) AS INTEGER ) + + AVG ( + - CAST ( NULL AS INTEGER ) ) + + - 89 * - 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-235
SELECT ALL 24 col1, COALESCE ( + 51, CASE - + COUNT( * ) WHEN + 24 THEN 11 WHEN + + COUNT( * ) THEN NULL END ) * + 84 AS col1, + 43
----
24
4284
43

skipif mysql # not compatible
query III rowsort label-235
SELECT ALL 24 col1, COALESCE ( + 51, CASE - + COUNT ( * ) WHEN + 24 THEN 11 WHEN + + COUNT ( * ) THEN NULL END ) * + 84 AS col1, + 43
----
24
4284
43

query II rowsort
SELECT DISTINCT - - 33 AS col0, 26 AS col2
----
33
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-237
SELECT - + 96 * - ( + ( 16 ) ) DIV + 16 + - MIN( 8 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-237
SELECT - + 96 * - ( + ( 16 ) ) / + 16 + - MIN ( 8 ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT - 5 * 17 * - COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT - 5 * 17 * - COUNT ( * ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT COUNT( * ) * + COUNT( DISTINCT 48 ) * 26 + - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-239
SELECT COUNT ( * ) * + COUNT ( DISTINCT 48 ) * 26 + - COUNT ( * )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-240
SELECT ( MAX( ALL + 62 ) ) + + + 82 DIV 98
----
62

skipif mysql # not compatible
query I rowsort label-240
SELECT ( MAX ( ALL + 62 ) ) + + + 82 / 98
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-241
SELECT ALL 62 * + 94 * - + CAST( NULL AS DECIMAL ) * 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL 62 * + 94 * - + CAST ( NULL AS REAL ) * 89 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-242
SELECT ( - CAST( NULL AS DECIMAL ) ) / 93 + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-242
SELECT ( - CAST ( NULL AS REAL ) ) / 93 + + 1
----
NULL

query I rowsort
SELECT DISTINCT 79 * - - 73 * - - 55
----
317185

query I rowsort
SELECT - 50 + 77 + + + 33 + - 77 * + 25
----
-1865

query I rowsort
SELECT ALL 55 * 1 * + 99 * 68 AS col0
----
370260

onlyif mysql # DIV for integer division: 
query I rowsort label-246
SELECT + NULLIF ( + 60, + 85 ) * 32 DIV + 21
----
91

skipif mysql # not compatible
query I rowsort label-246
SELECT + NULLIF ( + 60, + 85 ) * 32 / + 21
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-247
SELECT + 1 * - 0 + + 36 + - CASE - ( 26 ) WHEN COUNT( ALL - - ( 53 ) ) THEN + 15 ELSE + 50 END * + 68, 90 * + + COUNT( * ) AS col1
----
-3364
90

skipif mysql # not compatible
query II rowsort label-247
SELECT + 1 * - 0 + + 36 + - CASE - ( 26 ) WHEN COUNT ( ALL - - ( 53 ) ) THEN + 15 ELSE + 50 END * + 68, 90 * + + COUNT ( * ) AS col1
----
-3364
90

query I rowsort
SELECT + 96 * + - 12 AS col0
----
-1152

query II rowsort
SELECT + 14 + + + 58 AS col2, + 64
----
72
64

query I rowsort
SELECT ALL 20 * 81 AS col0
----
1620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-251
SELECT + CAST( - 60 AS SIGNED ) + + 99 * - + COUNT( * ) AS col1
----
-159

skipif mysql # not compatible
query I rowsort label-251
SELECT + CAST ( - 60 AS INTEGER ) + + 99 * - + COUNT ( * ) AS col1
----
-159

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

query I rowsort
SELECT DISTINCT 88 * - 8 + 85 * + 46
----
3206

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT MIN( DISTINCT + - NULLIF ( + 69, + 3 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-254
SELECT MIN ( DISTINCT + - NULLIF ( + 69, + 3 ) )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT ALL 63 * + - COUNT( * ) / - + ( - 76 ) * - CASE - 1 WHEN + + ( - - NULLIF ( + - 44, + 8 * - 58 ) ) / + ( 76 ) THEN - COALESCE ( + COUNT( * ), 35 ) * - - 61 END + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-255
SELECT ALL 63 * + - COUNT ( * ) / - + ( - 76 ) * - CASE - 1 WHEN + + ( - - NULLIF ( + - 44, + 8 * - 58 ) ) / + ( 76 ) THEN - COALESCE ( + COUNT ( * ), 35 ) * - - 61 END + + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT COUNT( DISTINCT + 62 )
----
1

skipif mysql # not compatible
query I rowsort label-256
SELECT COUNT ( DISTINCT + 62 )
----
1

query II rowsort
SELECT + 71 + + 87 + + + 45, - 69 * - 21 + - - 94 * - ( + + ( 43 ) ) AS col1
----
203
-2593

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

skipif mysql # not compatible
query I rowsort label-258
SELECT - 36 + + ( + - 94 ) - + 18 / - 24 * - + COUNT ( * )
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT ALL + 45 * - SUM( - 1 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL + 45 * - SUM ( - 1 ) AS col2
----
45

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

skipif mysql # not compatible
query I rowsort label-260
SELECT + ( - SUM ( - - 29 ) )
----
-29

query I rowsort
SELECT - 53 * - 67 * + 42
----
149142

query II rowsort
SELECT DISTINCT + ( - - 89 ) col0, 91 * 50 * - 64 + - 42
----
89
-291242

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

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

query I rowsort
SELECT ALL + 44 + + 49
----
93

query I rowsort
SELECT - NULLIF ( - 17, + 57 ) * 96 + COALESCE ( + + 91, + - ( - 73 ), - 66 + - + ( - 47 ) )
----
1723

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-266
SELECT ALL 92 * + ( + - 62 ) DIV - COUNT( * ) - - 61 + 92 AS col0
----
5857

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL 92 * + ( + - 62 ) / - COUNT ( * ) - - 61 + 92 AS col0
----
5857

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT DISTINCT + 11 + SUM( ALL 3 ) * + + MIN( DISTINCT - 86 )
----
-247

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT + 11 + SUM ( ALL 3 ) * + + MIN ( DISTINCT - 86 )
----
-247

query II rowsort
SELECT ALL - 41 + 29, - 43 col1
----
-12
-43

query I rowsort
SELECT ALL + - 19 + + 42 + - + 2
----
21

query I rowsort
SELECT - + ( + 31 ) * - 86 col1
----
2666

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-272
SELECT - - 3 - - 94 - SUM( - 66 ) + + + MAX( - 16 ) + + 91 * + 21 - 54 + + 30 + + - 37 * - 62 / + COALESCE ( - COALESCE ( 52, CAST( NULL AS SIGNED ) ), - 3 * + 5 + COUNT( ( 8 ) + CASE 87 WHEN 23 THEN NULL WHEN 13 * + 97 THEN NULL WHEN - 15 THEN + NULLIF ( - 38, 65 ) + 8 END ), COUNT( * ), AVG ( DISTINCT + 87 ) * 15 + 74 * - 50 ) * COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT - - 3 - - 94 - SUM ( - 66 ) + + + MAX ( - 16 ) + + 91 * + 21 - 54 + + 30 + + - 37 * - 62 / + COALESCE ( - COALESCE ( 52, CAST ( NULL AS INTEGER ) ), - 3 * + 5 + COUNT ( ( 8 ) + CASE 87 WHEN 23 THEN NULL WHEN 13 * + 97 THEN NULL WHEN - 15 THEN + NULLIF ( - 38, 65 ) + 8 END ), COUNT ( * ), AVG ( DISTINCT + 87 ) * 15 + 74 * - 50 ) * COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-273
SELECT ALL - NULLIF ( COALESCE ( 35, 41 + 11 - + 46 ), ( 39 ) * + + MAX( DISTINCT 39 ) * + CAST( + + 31 AS SIGNED ) ) AS col1, - ( COUNT( * ) ) * + + COUNT( * ) DIV + 7 * - 56 AS col1
----
-35
0

skipif mysql # not compatible
query II rowsort label-273
SELECT ALL - NULLIF ( COALESCE ( 35, 41 + 11 - + 46 ), ( 39 ) * + + MAX ( DISTINCT 39 ) * + CAST ( + + 31 AS INTEGER ) ) AS col1, - ( COUNT ( * ) ) * + + COUNT ( * ) / + 7 * - 56 AS col1
----
-35
0

query I rowsort
SELECT - ( - + 62 ) + - NULLIF ( - 95, 43 ) + - + 68 * + 8
----
-387

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT + + 23 DIV - ( + - NULLIF ( - + 94, 11 ) ) * + - 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-275
SELECT + + 23 / - ( + - NULLIF ( - + 94, 11 ) ) * + - 31 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-276
SELECT ALL + + 19 DIV - + 42 * - - 70 * - + 11 * - + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL + + 19 / - + 42 * - - 70 * - + 11 * - + 91 AS col2
----
0

query I rowsort
SELECT - 25 * + 85
----
-2125

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-279
SELECT ALL - NULLIF ( - - 85, - ( - 12 ) / - - 41 * 95 ) - - SUM( DISTINCT + 2 ) + - + 45 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL - NULLIF ( - - 85, - ( - 12 ) / - - 41 * 95 ) - - SUM ( DISTINCT + 2 ) + - + 45 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT - CASE + COUNT( ALL + - 49 ) WHEN COUNT( * ) THEN NULL WHEN - ( + 92 ) THEN NULL WHEN - 77 - 42 THEN - COUNT( ALL 29 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT - CASE + COUNT ( ALL + - 49 ) WHEN COUNT ( * ) THEN NULL WHEN - ( + 92 ) THEN NULL WHEN - 77 - 42 THEN - COUNT ( ALL 29 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT - 65 - 35 * - 56 * 23 * + 63 + - SUM( - 91 ) * - 42 * - + 98 * + COUNT( * )
----
3214531

skipif mysql # not compatible
query I rowsort label-281
SELECT - 65 - 35 * - 56 * 23 * + 63 + - SUM ( - 91 ) * - 42 * - + 98 * + COUNT ( * )
----
3214531

query I rowsort
SELECT ALL + 76 * + 49 - - ( 31 ) col2
----
3755

onlyif mysql # aggregate syntax: 
query II rowsort label-283
SELECT + SUM( DISTINCT - 12 ), - NULLIF ( + COUNT( * ), - 42 ) AS col2
----
-12
-1

skipif mysql # not compatible
query II rowsort label-283
SELECT + SUM ( DISTINCT - 12 ), - NULLIF ( + COUNT ( * ), - 42 ) AS col2
----
-12
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT ALL + 65 * + 92 * + 19 + COUNT( 56 ) AS col2
----
113621

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL + 65 * + 92 * + 19 + COUNT ( 56 ) AS col2
----
113621

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT - COALESCE ( + + MAX( 78 ), + 33, + 25 - + - 89 + + COALESCE ( 60, - - 5 ) ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-285
SELECT - COALESCE ( + + MAX ( 78 ), + 33, + 25 - + - 89 + + COALESCE ( 60, - - 5 ) ) AS col0
----
-78

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

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

query II rowsort
SELECT DISTINCT + 10 AS col2, - 48 AS col0
----
10
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT + CASE + COUNT( * ) WHEN + 14 THEN - - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-288
SELECT + CASE + COUNT ( * ) WHEN + 14 THEN - - 3 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-289
SELECT CAST( 57 AS SIGNED ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-289
SELECT CAST ( 57 AS INTEGER ) AS col0
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-290
SELECT DISTINCT + 26 AS col2, + 18 DIV + 77
----
26
0

skipif mysql # not compatible
query II rowsort label-290
SELECT DISTINCT + 26 AS col2, + 18 / + 77
----
26
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-291
SELECT ALL 47 DIV - ( 55 ) + + 14 + + + COUNT( * ) * COUNT( * ) + 22 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL 47 / - ( 55 ) + + 14 + + + COUNT ( * ) * COUNT ( * ) + 22 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT DISTINCT 9 * - COUNT( * ) / - + 29 + + + 92 + + CASE 31 WHEN - - MIN( + 56 ) THEN NULL WHEN + - 6 THEN NULL WHEN 40 * 89 - - - 20 + CASE - 90 WHEN + 93 THEN - 31 * - ( 23 ) * + NULLIF ( + 34, - 61 * - 81 ) + - 53 * - ( 47 * 96 ) ELSE NULL END * - 29 THEN - AVG ( ALL + 54 ) END * + 64 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT 9 * - COUNT ( * ) / - + 29 + + + 92 + + CASE 31 WHEN - - MIN ( + 56 ) THEN NULL WHEN + - 6 THEN NULL WHEN 40 * 89 - - - 20 + CASE - 90 WHEN + 93 THEN - 31 * - ( 23 ) * + NULLIF ( + 34, - 61 * - 81 ) + - 53 * - ( 47 * 96 ) ELSE NULL END * - 29 THEN - AVG ( ALL + 54 ) END * + 64 col0
----
NULL

query II rowsort
SELECT ALL + 54, - 18 AS col2
----
54
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT ALL + 38 * 39 * + COUNT( * ) + COUNT( * )
----
1483

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL + 38 * 39 * + COUNT ( * ) + COUNT ( * )
----
1483

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-295
SELECT + CAST( + + CASE - COUNT( * ) WHEN + COUNT( * ) * - CASE - 33 WHEN 95 THEN NULL WHEN + 31 THEN 95 * - - 75 + - COUNT( * ) END * + ( + - MIN( - 17 ) ) + + 16 + - + 25 + 74 + - + 52 THEN + 97 WHEN 18 + 20 THEN NULL END AS DECIMAL ) * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-295
SELECT + CAST ( + + CASE - COUNT ( * ) WHEN + COUNT ( * ) * - CASE - 33 WHEN 95 THEN NULL WHEN + 31 THEN 95 * - - 75 + - COUNT ( * ) END * + ( + - MIN ( - 17 ) ) + + 16 + - + 25 + 74 + - + 52 THEN + 97 WHEN 18 + 20 THEN NULL END AS REAL ) * - 98
----
NULL

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

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

query I rowsort
SELECT ( 76 ) AS col1
----
76

query I rowsort
SELECT ( 80 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-299
SELECT ALL + 44 AS col1, 8 + - COUNT( * ) * 91 DIV + 6 + + - COUNT( * )
----
44
-8

skipif mysql # not compatible
query II rowsort label-299
SELECT ALL + 44 AS col1, 8 + - COUNT ( * ) * 91 / + 6 + + - COUNT ( * )
----
44
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT ALL 96 * + COUNT( - 20 ) + - 44 + - - COALESCE ( + - SUM( - 61 ), + 45, 95, + 58 ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL 96 * + COUNT ( - 20 ) + - 44 + - - COALESCE ( + - SUM ( - 61 ), + 45, 95, + 58 ) AS col2
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-301
SELECT + CAST( NULL AS SIGNED ) + - 99 + + - 66 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-301
SELECT + CAST ( NULL AS INTEGER ) + - 99 + + - 66 + - + COUNT ( * )
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT 71 * - 88
----
-6248

query I rowsort
SELECT ALL 30 * + 90 AS col2
----
2700

query I rowsort
SELECT 67 * + - 56 * - + 72 - - 98 - + + 23 * + 40 * - 88 AS col1
----
351202

query I rowsort
SELECT DISTINCT 80 * 70 - + 29
----
5571

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

query II rowsort
SELECT + + 38, - 17 col0
----
38
-17

query I rowsort
SELECT - + 41 AS col1
----
-41

query II rowsort
SELECT 8, - 95 AS col1
----
8
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-312
SELECT - 56 * + CAST( NULL AS SIGNED ) - + - NULLIF ( - ( - - 47 ), + + 49 - + 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-312
SELECT - 56 * + CAST ( NULL AS INTEGER ) - + - NULLIF ( - ( - - 47 ), + + 49 - + 27 ) AS col0
----
NULL

query I rowsort
SELECT - + 18 AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-314
SELECT - MIN( DISTINCT ( - - 7 ) ) - + 52 + ( + ( - + CASE 18 WHEN + + COUNT( + 18 ) + + 23 + - COUNT( * ) THEN NULL WHEN - + 57 * + - 6 + + 10 * + 7 - - COUNT( * ) * 58 + + SUM( + 1 ) * CASE 42 * - 46 WHEN 83 * + 36 THEN AVG ( + 76 ) + MAX( ALL - 42 ) ELSE - 77 END THEN - 14 + 22 * CAST( 84 AS SIGNED ) WHEN 12 THEN NULL END ) ) - 87 * 2 * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-314
SELECT - MIN ( DISTINCT ( - - 7 ) ) - + 52 + ( + ( - + CASE 18 WHEN + + COUNT ( + 18 ) + + 23 + - COUNT ( * ) THEN NULL WHEN - + 57 * + - 6 + + 10 * + 7 - - COUNT ( * ) * 58 + + SUM ( + 1 ) * CASE 42 * - 46 WHEN 83 * + 36 THEN AVG ( + 76 ) + MAX ( ALL - 42 ) ELSE - 77 END THEN - 14 + 22 * CAST ( 84 AS INTEGER ) WHEN 12 THEN NULL END ) ) - 87 * 2 * - 60
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-315
SELECT 45 AS col1, + MAX( DISTINCT + NULLIF ( 20, 14 ) ) + + COUNT( * ) AS col0
----
45
21

skipif mysql # not compatible
query II rowsort label-315
SELECT 45 AS col1, + MAX ( DISTINCT + NULLIF ( 20, 14 ) ) + + COUNT ( * ) AS col0
----
45
21

query II rowsort
SELECT DISTINCT + 38 AS col1, ( + - 4 ) AS col0
----
38
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT DISTINCT 10 * COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT 10 * COUNT ( * )
----
10

query I rowsort
SELECT - - 16 + + 69
----
85

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-321
SELECT - 58 * 40 * NULLIF ( + 19, 52 ) - + COUNT( * ) AS col1, MAX( DISTINCT + NULLIF ( + CAST( - 64 AS SIGNED ), + 30 ) ) + 75 * CAST( NULL AS SIGNED )
----
-44081
NULL

skipif mysql # not compatible
query II rowsort label-321
SELECT - 58 * 40 * NULLIF ( + 19, 52 ) - + COUNT ( * ) AS col1, MAX ( DISTINCT + NULLIF ( + CAST ( - 64 AS INTEGER ), + 30 ) ) + 75 * CAST ( NULL AS INTEGER )
----
-44081
NULL

query I rowsort
SELECT ALL + + 75 * ( 5 ) + - ( + 20 )
----
355

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT - 11 + + SUM( - 79 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-323
SELECT - 11 + + SUM ( - 79 ) AS col2
----
-90

query I rowsort
SELECT 49 + + 22 AS col0
----
71

query I rowsort
SELECT 84 * + + 53 * 49
----
218148

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT ALL + 80 + - 39 + - + SUM( 23 )
----
18

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL + 80 + - 39 + - + SUM ( 23 )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-328
SELECT 68 DIV + - 42 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-328
SELECT 68 / + - 42 AS col0
----
-1

query I rowsort
SELECT ALL + 90 + - 38
----
52

query II rowsort
SELECT DISTINCT - 35 + - 29 AS col2, + 75 + 71 AS col1
----
-64
146

query I rowsort
SELECT DISTINCT + 63 * - + 16 AS col2
----
-1008

query I rowsort
SELECT 74 * - 18 AS col0
----
-1332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-333
SELECT DISTINCT + COALESCE ( 55, + 20 * SUM( - 29 ) + 22 ) + - 5 * - + 80 DIV - - COUNT( * ) AS col2
----
455

skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT + COALESCE ( 55, + 20 * SUM ( - 29 ) + 22 ) + - 5 * - + 80 / - - COUNT ( * ) AS col2
----
455

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-334
SELECT DISTINCT 60 + 10 DIV 44 + - 67 - - NULLIF ( - 79, + 63 ) AS col0, - COUNT( * ) + + 90
----
-86
89

skipif mysql # not compatible
query II rowsort label-334
SELECT DISTINCT 60 + 10 / 44 + - 67 - - NULLIF ( - 79, + 63 ) AS col0, - COUNT ( * ) + + 90
----
-86
89

query I rowsort
SELECT ALL ( 2 ) + 27
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT CASE 43 WHEN + 19 THEN MIN( DISTINCT - - 62 ) - 78 END * 41 * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-336
SELECT CASE 43 WHEN + 19 THEN MIN ( DISTINCT - - 62 ) - 78 END * 41 * - 0
----
NULL

query I rowsort
SELECT ALL + 46 * - + ( - - 10 ) AS col0
----
-460

query I rowsort
SELECT 8 + + 45 AS col0
----
53

query I rowsort
SELECT ALL - 16 - + 38 AS col1
----
-54

query I rowsort
SELECT NULLIF ( - - 94, - 94 )
----
94

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

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT + CAST ( + 32 AS INTEGER ) / + + COUNT ( * )
----
32

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

skipif mysql # not compatible
query I rowsort label-342
SELECT 99 / COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT CASE ( - 9 ) WHEN + ( + 39 ) THEN - 75 ELSE NULL END + - MAX( 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-343
SELECT CASE ( - 9 ) WHEN + ( + 39 ) THEN - 75 ELSE NULL END + - MAX ( 59 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 89 * 48
----
4272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-345
SELECT + 20 * CAST( SUM( ALL CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-345
SELECT + 20 * CAST ( SUM ( ALL CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT ( + 78 ) * + 14 + - 14
----
1078

onlyif mysql # aggregate syntax: 
query II rowsort label-348
SELECT - 43 + NULLIF ( - COUNT( * ), - 88 ) AS col2, 35
----
-44
35

skipif mysql # not compatible
query II rowsort label-348
SELECT - 43 + NULLIF ( - COUNT ( * ), - 88 ) AS col2, 35
----
-44
35

query I rowsort
SELECT 48 * + - 32
----
-1536

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT ALL + MAX( 28 ) AS col0, 77 * COUNT( * ) AS col1
----
28
77

skipif mysql # not compatible
query II rowsort label-350
SELECT ALL + MAX ( 28 ) AS col0, 77 * COUNT ( * ) AS col1
----
28
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-351
SELECT - - COALESCE ( + ( + - NULLIF ( CAST( NULL AS SIGNED ), - 37 + + + CASE - + SUM( ALL + COALESCE ( + 72, 55 + - 24 ) ) WHEN 25 THEN 11 / - - 69 END ) ), 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-351
SELECT - - COALESCE ( + ( + - NULLIF ( CAST ( NULL AS INTEGER ), - 37 + + + CASE - + SUM ( ALL + COALESCE ( + 72, 55 + - 24 ) ) WHEN 25 THEN 11 / - - 69 END ) ), 80 ) AS col1
----
80

query I rowsort
SELECT - COALESCE ( - 84, 61, - ( 7 ) + + + 34 ) - - - 89 * - 38
----
3466

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-354
SELECT ALL - 48 + - + 22 + 40 DIV + COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL - 48 + - + 22 + 40 / + COUNT ( * ) AS col1
----
-30

query II rowsort
SELECT ALL 60, 53 AS col2
----
60
53

query II rowsort
SELECT DISTINCT - 39 + 48 + + 36, - 82 AS col0
----
45
-82

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

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL - COUNT ( * ) + + 63 AS col2
----
62

query I rowsort
SELECT 84 * + 61
----
5124

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT ALL 97 + CASE + AVG ( DISTINCT - 88 ) WHEN + + COUNT( * ) * + - 30 * + + COUNT( * ) * - - 27 THEN - + 55 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL 97 + CASE + AVG ( DISTINCT - 88 ) WHEN + + COUNT ( * ) * + - 30 * + + COUNT ( * ) * - - 27 THEN - + 55 ELSE NULL END
----
NULL

query I rowsort
SELECT ( - - 27 ) - 37
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT ALL - 22 + + 36 + - - 8 + 20 * + 93 + + COALESCE ( 89, - 10 + - COUNT( * ) + + + NULLIF ( 2, + 8 ) ) * + 98 - + - 62
----
10666

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL - 22 + + 36 + - - 8 + 20 * + 93 + + COALESCE ( 89, - 10 + - COUNT ( * ) + + + NULLIF ( 2, + 8 ) ) * + 98 - + - 62
----
10666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-362
SELECT 74 DIV + + COUNT( 96 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-362
SELECT 74 / + + COUNT ( 96 ) AS col0
----
74

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

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL - NULLIF ( + - 53, - COUNT ( * ) )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-364
SELECT 99 * + 50 * 8 * + - 29 * - 75 AS col1, 55 / CASE + 29 WHEN - 41 THEN 70 + COUNT( * ) WHEN 48 + - 39 THEN NULL END AS col1
----
86130000
NULL

skipif mysql # not compatible
query II rowsort label-364
SELECT 99 * + 50 * 8 * + - 29 * - 75 AS col1, 55 / CASE + 29 WHEN - 41 THEN 70 + COUNT ( * ) WHEN 48 + - 39 THEN NULL END AS col1
----
86130000
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT DISTINCT 57 * + COUNT( * ) - - - 54 * + 46
----
-2427

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT 57 * + COUNT ( * ) - - - 54 * + 46
----
-2427

query I rowsort
SELECT DISTINCT + 14 * + 95 AS col2
----
1330

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT ALL - CASE 21 WHEN - + 9 THEN + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL - CASE 21 WHEN - + 9 THEN + + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + CASE 79 WHEN + ( + - 34 ) THEN + 66 * - - 64 * - 54 END - + 91 * - 63 * + 99 AS col2
----
NULL

query I rowsort
SELECT + 11 * + ( - 75 ) - - + ( + 78 ) * - + 93 AS col0
----
-8079

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT DISTINCT - + CASE - SUM( 33 ) WHEN + + 72 THEN - COALESCE ( - - 84, - MIN( + 97 ) * + 46 / 55 ) END * COUNT( * ) * + ( - COUNT( * ) ) + + + COUNT( 15 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT DISTINCT - + CASE - SUM ( 33 ) WHEN + + 72 THEN - COALESCE ( - - 84, - MIN ( + 97 ) * + 46 / 55 ) END * COUNT ( * ) * + ( - COUNT ( * ) ) + + + COUNT ( 15 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-371
SELECT - NULLIF ( - COALESCE ( 15, - + COUNT( * ) * + 81, COUNT( * ) ), - 49 ) DIV - + 65 + - 76
----
-76

skipif mysql # not compatible
query I rowsort label-371
SELECT - NULLIF ( - COALESCE ( 15, - + COUNT ( * ) * + 81, COUNT ( * ) ), - 49 ) / - + 65 + - 76
----
-76

query I rowsort
SELECT + ( + + 99 ) col1
----
99

query I rowsort
SELECT ALL - 21 * + 81
----
-1701

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-374
SELECT - 77 * + CAST( CAST( + 34 AS SIGNED ) AS SIGNED ) + + + 25 / + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-374
SELECT - 77 * + CAST ( CAST ( + 34 AS INTEGER ) AS INTEGER ) + + + 25 / + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT - + 26 AS col0, 78 * + + 36 AS col2
----
-26
2808

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-377
SELECT + 16 * + - 69 + - 87 * - 24 + - - 59 * + + 76 * - - 56 + CAST( - - 97 AS SIGNED )
----
252185

skipif mysql # not compatible
query I rowsort label-377
SELECT + 16 * + - 69 + - 87 * - 24 + - - 59 * + + 76 * - - 56 + CAST ( - - 97 AS INTEGER )
----
252185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-378
SELECT ALL CAST( NULL AS SIGNED ) / AVG ( + - 89 ) * - NULLIF ( - 80, - + 97 + - 50 / 75 * + 30 ) / + 24 - 49 + 35 * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL CAST ( NULL AS INTEGER ) / AVG ( + - 89 ) * - NULLIF ( - 80, - + 97 + - 50 / 75 * + 30 ) / + 24 - 49 + 35 * - 11
----
NULL

query I rowsort
SELECT 24 * 36 AS col2
----
864

query I rowsort
SELECT DISTINCT - + 83
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-381
SELECT + - 83 DIV 63
----
-1

skipif mysql # not compatible
query I rowsort label-381
SELECT + - 83 / 63
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT ALL - 78 + COUNT( * ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL - 78 + COUNT ( * ) col1
----
-77

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

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

query I rowsort
SELECT - CASE 74 WHEN - 69 THEN - + 78 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - + ( - 8 ) + 90 AS col0, + ( - 45 )
----
98
-45

query I rowsort
SELECT + - 34 - 18
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT ALL - 28 * COALESCE ( - COUNT( * ), - - 10 )
----
28

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL - 28 * COALESCE ( - COUNT ( * ), - - 10 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT ALL + CASE 69 WHEN + NULLIF ( - ( - 6 ), - - 0 ) + NULLIF ( + MAX( - 1 ), + 95 * - - 26 + + + 71 - + COALESCE ( - 10, 53 ) - + AVG ( DISTINCT + + 81 ) * - 72 * - 78 + + 29 ) * + 77 THEN NULL WHEN COUNT( * ) THEN - 29 ELSE - MIN( ALL 52 ) * ( + 39 ) END * 96 col0
----
-194688

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL + CASE 69 WHEN + NULLIF ( - ( - 6 ), - - 0 ) + NULLIF ( + MAX ( - 1 ), + 95 * - - 26 + + + 71 - + COALESCE ( - 10, 53 ) - + AVG ( DISTINCT + + 81 ) * - 72 * - 78 + + 29 ) * + 77 THEN NULL WHEN COUNT ( * ) THEN - 29 ELSE - MIN ( ALL 52 ) * ( + 39 ) END * 96 col0
----
-194688

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

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

query I rowsort
SELECT + 15 - + 65
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT DISTINCT 21 + - + COUNT( * ) * + 9 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT 21 + - + COUNT ( * ) * + 9 AS col1
----
12

query I rowsort
SELECT ALL 97 + + + 48
----
145

query I rowsort
SELECT ALL 56 * - + 74 AS col0
----
-4144

query I rowsort
SELECT + 79 + ( + ( - ( - 7 ) ) ) + - + 3 + 13 AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-395
SELECT - SUM( - NULLIF ( + 1, - 10 ) ), 16 col2
----
1
16

skipif mysql # not compatible
query II rowsort label-395
SELECT - SUM ( - NULLIF ( + 1, - 10 ) ), 16 col2
----
1
16

query II rowsort
SELECT 92 AS col0, 36 AS col2
----
92
36

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

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

query I rowsort
SELECT + 61 - 19 + + 31 col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-399
SELECT + 31 + + 5 DIV + 82
----
31

skipif mysql # not compatible
query I rowsort label-399
SELECT + 31 + + 5 / + 82
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT - 37 * - COUNT( * ) col0
----
37

skipif mysql # not compatible
query I rowsort label-400
SELECT - 37 * - COUNT ( * ) col0
----
37

query II rowsort
SELECT ALL 43 - - 77 AS col0, - ( - 53 ) * + - 51 AS col0
----
120
-2703

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-403
SELECT + CAST( NULL AS SIGNED ) + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-403
SELECT + CAST ( NULL AS INTEGER ) + - 38
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-404
SELECT ALL - ( + - CASE WHEN - 54 >= NULL THEN NULL ELSE + + CAST( NULL AS DECIMAL ) END ) * + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL - ( + - CASE WHEN - 54 >= NULL THEN NULL ELSE + + CAST ( NULL AS REAL ) END ) * + 61 AS col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT ALL 7 DIV 24
----
0

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL 7 / 24
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-408
SELECT - CAST( NULL AS SIGNED ) * + 58 + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-408
SELECT - CAST ( NULL AS INTEGER ) * + 58 + + 33
----
NULL

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

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL + COUNT ( * ) * - 0 - - 56 / + 74 + + - 89
----
-89

query I rowsort
SELECT ALL 42 * 36 * + 47 AS col0
----
71064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-411
SELECT 28 DIV + 96 + - COUNT( * ) + + 84 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-411
SELECT 28 / + 96 + - COUNT ( * ) + + 84 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT DISTINCT COUNT( + 52 ) * - + 65
----
-65

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT COUNT ( + 52 ) * - + 65
----
-65

query I rowsort
SELECT ( - - 41 )
----
41

query II rowsort
SELECT DISTINCT + 11 AS col0, + 10 * - 79
----
11
-790

onlyif mysql # DIV for integer division: 
query I rowsort label-415
SELECT + 62 DIV ( 87 )
----
0

skipif mysql # not compatible
query I rowsort label-415
SELECT + 62 / ( 87 )
----
0

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

query II rowsort
SELECT + 81, 69 AS col1
----
81
69

query II rowsort
SELECT DISTINCT + + 14, + 30 * 58 AS col1
----
14
1740

query I rowsort
SELECT ALL + 84 * + - 90 + - 4 + - - ( 55 ) + + ( - 18 )
----
-7527

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-420
SELECT ALL + 73 DIV - + 7 - + + 42 + - 53 * 36 DIV - NULLIF ( - 86, + COUNT( * ) * + 45 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL + 73 / - + 7 - + + 42 + - 53 * 36 / - NULLIF ( - 86, + COUNT ( * ) * + 45 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT ALL - 47 * + 15 + + 87 - + COUNT( * ) - + COUNT( - 48 ) * 59 AS col1
----
-678

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL - 47 * + 15 + + 87 - + COUNT ( * ) - + COUNT ( - 48 ) * 59 AS col1
----
-678

query I rowsort
SELECT - - 87 * - 43 * 99 col1
----
-370359

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT DISTINCT + + COUNT( * ) * + 18 + + + 75 + - COUNT( * ) * 12
----
81

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT + + COUNT ( * ) * + 18 + + + 75 + - COUNT ( * ) * 12
----
81

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

query II rowsort
SELECT - 66 AS col0, + 0 * 97
----
-66
0

query I rowsort
SELECT ALL + - 22 AS col1
----
-22

query II rowsort
SELECT + 88 AS col2, + 67 * + 73 * - 61 AS col2
----
88
-298351

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT ALL - CASE + 41 WHEN 76 * - COUNT( * ) + - - 57 * - - 10 + + - AVG ( + - 97 ) + - 54 THEN + COUNT( * ) WHEN - ( 16 ) THEN - + 7 + 42 END * - 10 + ( 23 ) + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL - CASE + 41 WHEN 76 * - COUNT ( * ) + - - 57 * - - 10 + + - AVG ( + - 97 ) + - 54 THEN + COUNT ( * ) WHEN - ( 16 ) THEN - + 7 + 42 END * - 10 + ( 23 ) + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT ALL 17 * 49 + + SUM( + 87 )
----
920

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL 17 * 49 + + SUM ( + 87 )
----
920

onlyif mysql # aggregate syntax: 
query II rowsort label-430
SELECT - 91 + - COUNT( * ) AS col1, 67
----
-92
67

skipif mysql # not compatible
query II rowsort label-430
SELECT - 91 + - COUNT ( * ) AS col1, 67
----
-92
67

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT - CASE - 71 WHEN + COUNT( * ) THEN NULL WHEN - + 62 THEN + COALESCE ( + 97, + 80 + 33 + - 74 ) END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-431
SELECT - CASE - 71 WHEN + COUNT ( * ) THEN NULL WHEN - + 62 THEN + COALESCE ( + 97, + 80 + 33 + - 74 ) END * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT + CASE - + 67 WHEN COUNT( * ) / + - ( - AVG ( - 86 ) ) / + 79 THEN + NULLIF ( - + 68, - 78 ) END + 85 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT + CASE - + 67 WHEN COUNT ( * ) / + - ( - AVG ( - 86 ) ) / + 79 THEN + NULLIF ( - + 68, - 78 ) END + 85 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-433
SELECT ALL + 22 + + 16 DIV - COALESCE ( + + 87, - + 1 * + CASE - 16 WHEN - + 14 THEN + - CAST( 70 AS SIGNED ) END + + + COUNT( + - 19 ) + - COUNT( * ), - 99 * + 38 + - 78 ) * - 48
----
22

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL + 22 + + 16 / - COALESCE ( + + 87, - + 1 * + CASE - 16 WHEN - + 14 THEN + - CAST ( 70 AS INTEGER ) END + + + COUNT ( + - 19 ) + - COUNT ( * ), - 99 * + 38 + - 78 ) * - 48
----
22

query II rowsort
SELECT DISTINCT + 4 - - + 48 * 55 AS col1, 22 AS col1
----
2644
22

query I rowsort
SELECT + 20 * - 95 col0
----
-1900

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT + 38 + + CASE 11 WHEN - 41 - - AVG ( ALL + + 41 ) THEN + - 79 ELSE + + COUNT( * ) END + 15 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-436
SELECT + 38 + + CASE 11 WHEN - 41 - - AVG ( ALL + + 41 ) THEN + - 79 ELSE + + COUNT ( * ) END + 15 AS col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-437
SELECT DISTINCT + 13 DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT + 13 / - 75 AS col2
----
0

query I rowsort
SELECT DISTINCT + 4 - 83
----
-79

query I rowsort
SELECT + 84 * 90
----
7560

query I rowsort
SELECT ALL 82 col1
----
82

query I rowsort
SELECT - CASE - - 12 WHEN 14 * + + 3 THEN - 67 / - - 82 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT ALL + 87 - + + COUNT( * ) * - - 6 + 40
----
121

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL + 87 - + + COUNT ( * ) * - - 6 + 40
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT DISTINCT COUNT( + - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT COUNT ( + - 57 )
----
1

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

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

query I rowsort
SELECT + 24 * + - ( 38 )
----
-912

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

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

query I rowsort
SELECT + 50 * + 67 AS col0
----
3350

query I rowsort
SELECT ALL + - 20 AS col0
----
-20

query I rowsort
SELECT + + 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-450
SELECT ALL - 0 DIV 18 + - 57, 86 * 43 + + NULLIF ( + 97, SUM( - CAST( NULL AS SIGNED ) ) ) AS col2
----
-57
3795

skipif mysql # not compatible
query II rowsort label-450
SELECT ALL - 0 / 18 + - 57, 86 * 43 + + NULLIF ( + 97, SUM ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
-57
3795

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT - 37 DIV - 3 - 87 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-451
SELECT - 37 / - 3 - 87 AS col0
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT ALL + ( - NULLIF ( - ( - 42 ), + COUNT( * ) ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL + ( - NULLIF ( - ( - 42 ), + COUNT ( * ) ) ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT + 70 * - MIN( DISTINCT + + 52 ) + - ( + + ( + + 68 ) )
----
-3708

skipif mysql # not compatible
query I rowsort label-454
SELECT + 70 * - MIN ( DISTINCT + + 52 ) + - ( + + ( + + 68 ) )
----
-3708

onlyif mysql # DIV for integer division: 
query I rowsort label-455
SELECT + 14 DIV + - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-455
SELECT + 14 / + - 82 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-456
SELECT ALL - 78 + + CAST( NULL AS SIGNED ) * - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL - 78 + + CAST ( NULL AS INTEGER ) * - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT - SUM( ALL + 5 ) + - 86 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-457
SELECT - SUM ( ALL + 5 ) + - 86 AS col1
----
-91

query I rowsort
SELECT ALL - + COALESCE ( 48, - 88 )
----
-48

query I rowsort
SELECT DISTINCT - - 28 + - - 39 AS col2
----
67

query I rowsort
SELECT DISTINCT - - 54 AS col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-461
SELECT ALL + 95 DIV + 46
----
2

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL + 95 / + 46
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT 31 * - + 88 + + MAX( DISTINCT - + 27 ) * + - 75 * + 9 * - 10 + + + 82
----
-184896

skipif mysql # not compatible
query I rowsort label-462
SELECT 31 * - + 88 + + MAX ( DISTINCT - + 27 ) * + - 75 * + 9 * - 10 + + + 82
----
-184896

onlyif mysql # aggregate syntax: 
query II rowsort label-463
SELECT ALL - + MAX( DISTINCT + ( + - 39 ) ) AS col2, 75
----
39
75

skipif mysql # not compatible
query II rowsort label-463
SELECT ALL - + MAX ( DISTINCT + ( + - 39 ) ) AS col2, 75
----
39
75

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

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

query I rowsort
SELECT ( + - 75 ) + + + COALESCE ( - 77, 30 )
----
-152

onlyif mysql # aggregate syntax: 
query II rowsort label-466
SELECT ALL - 29 AS col1, + MIN( ALL - 2 )
----
-29
-2

skipif mysql # not compatible
query II rowsort label-466
SELECT ALL - 29 AS col1, + MIN ( ALL - 2 )
----
-29
-2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-467
SELECT CASE + CAST( + 80 AS DECIMAL ) WHEN 27 THEN NULL WHEN - + 96 THEN - + CAST( NULL AS SIGNED ) / + 65 END * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-467
SELECT CASE + CAST ( + 80 AS REAL ) WHEN 27 THEN NULL WHEN - + 96 THEN - + CAST ( NULL AS INTEGER ) / + 65 END * 40
----
NULL

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

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

query II rowsort
SELECT - 14 AS col1, NULLIF ( + 26, + ( 35 ) )
----
-14
26

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT - COUNT( * ) * - NULLIF ( - 14, + + 27 + - ( + - SUM( + + 77 ) ) * + 21 + + 44 ) + + - SUM( + 7 )
----
-21

skipif mysql # not compatible
query I rowsort label-470
SELECT - COUNT ( * ) * - NULLIF ( - 14, + + 27 + - ( + - SUM ( + + 77 ) ) * + 21 + + 44 ) + + - SUM ( + 7 )
----
-21

query I rowsort
SELECT ALL + 0 * + 1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-472
SELECT ALL + 27 * - + COUNT( * ) DIV COUNT( * ) DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL + 27 * - + COUNT ( * ) / COUNT ( * ) / 37
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-473
SELECT ALL 25 AS col2, 54 DIV - 59 + + 23
----
25
23

skipif mysql # not compatible
query II rowsort label-473
SELECT ALL 25 AS col2, 54 / - 59 + + 23
----
25
23

query I rowsort
SELECT 9 - + 6 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-475
SELECT DISTINCT CAST( - 69 AS SIGNED ) DIV + 8 - + - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT CAST ( - 69 AS INTEGER ) / + 8 - + - COUNT ( * )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-476
SELECT 11, CAST( NULL AS SIGNED ) * + COALESCE ( - + 42, 55, + - 47 / - + 79 ) + + 75 + + + COUNT( * ) * - 90 AS col0
----
11
NULL

skipif mysql # not compatible
query II rowsort label-476
SELECT 11, CAST ( NULL AS INTEGER ) * + COALESCE ( - + 42, 55, + - 47 / - + 79 ) + + 75 + + + COUNT ( * ) * - 90 AS col0
----
11
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-477
SELECT - 35, CAST( NULL AS SIGNED ) + - 95 * + + COUNT( DISTINCT + CAST( - CAST( 95 AS DECIMAL ) AS DECIMAL ) ) AS col1
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-477
SELECT - 35, CAST ( NULL AS INTEGER ) + - 95 * + + COUNT ( DISTINCT + CAST ( - CAST ( 95 AS REAL ) AS REAL ) ) AS col1
----
-35
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-478
SELECT ALL 36 AS col0, 94 + + 88 * - COUNT( * ) AS col0
----
36
6

skipif mysql # not compatible
query II rowsort label-478
SELECT ALL 36 AS col0, 94 + + 88 * - COUNT ( * ) AS col0
----
36
6

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT 99 + + + COUNT( * ) + - 91 + - 2 * COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-479
SELECT 99 + + + COUNT ( * ) + - 91 + - 2 * COUNT ( * )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-480
SELECT 2 DIV + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-480
SELECT 2 / + 94 AS col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-482
SELECT NULLIF ( + ( 89 ), + 50 ) - - + CAST( NULL AS SIGNED ) * - 85 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT NULLIF ( + ( 89 ), + 50 ) - - + CAST ( NULL AS INTEGER ) * - 85 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT 18 + + NULLIF ( + + 55, - + MIN( + - 64 ) )
----
73

skipif mysql # not compatible
query I rowsort label-483
SELECT 18 + + NULLIF ( + + 55, - + MIN ( + - 64 ) )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-484
SELECT MAX( - - 3 ) - + - 19, - ( - 21 ) + + 42 * + 83 AS col0
----
22
3507

skipif mysql # not compatible
query II rowsort label-484
SELECT MAX ( - - 3 ) - + - 19, - ( - 21 ) + + 42 * + 83 AS col0
----
22
3507

onlyif mysql # aggregate syntax: 
query II rowsort label-485
SELECT 27 + + + ( 72 ), COALESCE ( - + 46, + 83 ) + - + COUNT( ALL + 49 ) * + 47 col1
----
99
-93

skipif mysql # not compatible
query II rowsort label-485
SELECT 27 + + + ( 72 ), COALESCE ( - + 46, + 83 ) + - + COUNT ( ALL + 49 ) * + 47 col1
----
99
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT ALL - 65 + 86 * - COUNT( * ) - + - 30 + - - ( + - 13 ) + - + 84 AS col2
----
-218

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL - 65 + 86 * - COUNT ( * ) - + - 30 + - - ( + - 13 ) + - + 84 AS col2
----
-218

query I rowsort
SELECT ALL 6 + - 53
----
-47

query I rowsort
SELECT 34 + + - ( - + 48 )
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-489
SELECT DISTINCT - 6 * - CASE COUNT( * ) WHEN COUNT( * ) THEN - 21 WHEN - 92 + COUNT( * ) THEN NULL WHEN COUNT( - + 60 ) THEN COUNT( * ) + - 18 - COUNT( * ) * 9 DIV 90 END AS col0
----
-126

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT - 6 * - CASE COUNT ( * ) WHEN COUNT ( * ) THEN - 21 WHEN - 92 + COUNT ( * ) THEN NULL WHEN COUNT ( - + 60 ) THEN COUNT ( * ) + - 18 - COUNT ( * ) * 9 / 90 END AS col0
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-490
SELECT MIN( 78 ) + - 19 AS col0, 39
----
59
39

skipif mysql # not compatible
query II rowsort label-490
SELECT MIN ( 78 ) + - 19 AS col0, 39
----
59
39

query I rowsort
SELECT ALL + - 89 * 61
----
-5429

query I rowsort
SELECT DISTINCT - - ( + 68 ) col2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-493
SELECT + + 32, MIN( ALL + - 53 ) AS col0
----
32
-53

skipif mysql # not compatible
query II rowsort label-493
SELECT + + 32, MIN ( ALL + - 53 ) AS col0
----
32
-53

query I rowsort
SELECT DISTINCT - 40 + + + 39 * 5 + - 72
----
83

query I rowsort
SELECT ALL 54 + - 88
----
-34

query I rowsort
SELECT DISTINCT - ( + 40 ) col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-497
SELECT 38 + + ( CAST( + 8 AS SIGNED ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-497
SELECT 38 + + ( CAST ( + 8 AS INTEGER ) ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT DISTINCT - ( + COUNT( * ) ) + - + MIN( DISTINCT + 94 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT - ( + COUNT ( * ) ) + - + MIN ( DISTINCT + 94 ) AS col0
----
-95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT MIN( 16 ) * + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-500
SELECT MIN ( 16 ) * + COUNT ( * ) AS col2
----
16

query II rowsort
SELECT + 17, + 2 * - 59 AS col2
----
17
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-502
SELECT ALL - 41 + + CASE - 24 WHEN + 53 THEN + - COUNT( ALL - 48 ) * - ( - - CAST( - - 50 AS SIGNED ) ) - - + 9 + - + 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL - 41 + + CASE - 24 WHEN + 53 THEN + - COUNT ( ALL - 48 ) * - ( - - CAST ( - - 50 AS INTEGER ) ) - - + 9 + - + 74 END AS col1
----
NULL

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

query I rowsort
SELECT ALL + 66 + + 1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-505
SELECT ALL 56 DIV - 40 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL 56 / - 40 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT DISTINCT MAX( ALL + + 3 ) * - 36 * + ( 92 ) AS col0
----
-9936

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT MAX ( ALL + + 3 ) * - 36 * + ( 92 ) AS col0
----
-9936

onlyif mysql # DIV for integer division: 
query II rowsort label-508
SELECT + 1 AS col1, + 53 DIV + + 53 AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-508
SELECT + 1 AS col1, + 53 / + + 53 AS col1
----
1
1

query I rowsort
SELECT ALL 84 - + 9
----
75

query I rowsort
SELECT - 53 * - 94 * - - 33 col2
----
164406

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-511
SELECT 17 * 42 * - 11 AS col0, CAST( NULL AS SIGNED ) AS col0
----
-7854
NULL

skipif mysql # not compatible
query II rowsort label-511
SELECT 17 * 42 * - 11 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
-7854
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-512
SELECT + 62 + - - 6 + + 49 AS col0, NULLIF ( - 83, + 90 ) DIV + 23 + - 72
----
117
-75

skipif mysql # not compatible
query II rowsort label-512
SELECT + 62 + - - 6 + + 49 AS col0, NULLIF ( - 83, + 90 ) / + 23 + - 72
----
117
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-513
SELECT DISTINCT 68 - NULLIF ( 86, 63 * + + COUNT( * ) ) - + 99 DIV - - COUNT( * )
----
-117

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT 68 - NULLIF ( 86, 63 * + + COUNT ( * ) ) - + 99 / - - COUNT ( * )
----
-117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-514
SELECT 19 + - + CAST( NULL AS DECIMAL ) + 64 + + MAX( ALL + 54 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT 19 + - + CAST ( NULL AS REAL ) + 64 + + MAX ( ALL + 54 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-515
SELECT 22 DIV - MIN( ALL + COALESCE ( 60, - 37, - 32 ) )
----
0

skipif mysql # not compatible
query I rowsort label-515
SELECT 22 / - MIN ( ALL + COALESCE ( 60, - 37, - 32 ) )
----
0

query I rowsort
SELECT 93 * 91 * 3
----
25389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-517
SELECT ALL - 59 DIV 26 AS col2, 97 * - + COUNT( * ) DIV CAST( NULL AS SIGNED )
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-517
SELECT ALL - 59 / 26 AS col2, 97 * - + COUNT ( * ) / CAST ( NULL AS INTEGER )
----
-2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT 12 - + MIN( + 28 )
----
-16

skipif mysql # not compatible
query I rowsort label-518
SELECT 12 - + MIN ( + 28 )
----
-16

query I rowsort
SELECT ALL - ( - 44 ) * + 82 + - COALESCE ( - 73, - + 22 ) - - 20
----
3701

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT 18 + 44 DIV - 24 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-520
SELECT 18 + 44 / - 24 AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-521
SELECT ALL 84 DIV - + 91 * + 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL 84 / - + 91 * + 14 AS col0
----
0

query I rowsort
SELECT ( 96 ) * 17
----
1632

query I rowsort
SELECT 28 * - + 4 AS col2
----
-112

query I rowsort
SELECT 44 + - + 51 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT ALL + 69 * + + NULLIF ( - 58, - 63 * - COUNT( * ) * - + 16 / - + 84 * + 53 )
----
-4002

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL + 69 * + + NULLIF ( - 58, - 63 * - COUNT ( * ) * - + 16 / - + 84 * + 53 )
----
-4002

query II rowsort
SELECT 18 * 21 AS col0, 34 + 23 AS col2
----
378
57

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT MAX( DISTINCT + + 42 ) + - 37 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-527
SELECT MAX ( DISTINCT + + 42 ) + - 37 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT ALL - 97 + + - SUM( - 93 )
----
-4

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - 97 + + - SUM ( - 93 )
----
-4

query I rowsort
SELECT 43 * + + 57 AS col1
----
2451

query I rowsort
SELECT ALL + ( + 85 ) + - 22
----
63

query I rowsort
SELECT ALL - 11 + - 33 * 60 col1
----
-1991

query I rowsort
SELECT - - 5 - 68 - ( + + 27 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT - - ( + COUNT( * ) ) * - - 18 - - - 99 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-533
SELECT - - ( + COUNT ( * ) ) * - - 18 - - - 99 AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-534
SELECT - CAST( MIN( DISTINCT - + 30 ) AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-534
SELECT - CAST ( MIN ( DISTINCT - + 30 ) AS INTEGER )
----
30

query I rowsort
SELECT ALL CASE + 72 WHEN - 77 + + - 25 + - 59 THEN - + 20 WHEN - 97 + - - 65 THEN - COALESCE ( + - 86, - + 61, + - 63 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-536
SELECT - - 56 DIV + 3 AS col1, 14 * 43
----
18
602

skipif mysql # not compatible
query II rowsort label-536
SELECT - - 56 / + 3 AS col1, 14 * 43
----
18
602

onlyif mysql # DIV for integer division: 
query I rowsort label-537
SELECT + - 50 DIV - + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-537
SELECT + - 50 / - + 59 AS col2
----
0

query I rowsort
SELECT DISTINCT + + COALESCE ( + 1, + 13 )
----
1

query I rowsort
SELECT + - CASE - 26 WHEN 64 THEN NULL WHEN + 99 + + + 68 THEN 32 * - 66 * - + 4 END AS col2
----
NULL

query I rowsort
SELECT ALL + ( 51 ) * + 48 - 79 - + - 36 AS col0
----
2405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-541
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-542
SELECT ALL - 0 * - 78 * - ( + COUNT( DISTINCT - + 87 ) ) AS col1, - 44
----
0
-44

skipif mysql # not compatible
query II rowsort label-542
SELECT ALL - 0 * - 78 * - ( + COUNT ( DISTINCT - + 87 ) ) AS col1, - 44
----
0
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-543
SELECT DISTINCT - 67 * + 20 + - MAX( ALL - 28 ) AS col1, 98 AS col1
----
-1312
98

skipif mysql # not compatible
query II rowsort label-543
SELECT DISTINCT - 67 * + 20 + - MAX ( ALL - 28 ) AS col1, 98 AS col1
----
-1312
98

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL + 41 * + + COUNT( * ) - - COUNT( * ) + 71 + - - 48 + + - 83 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL + 41 * + + COUNT ( * ) - - COUNT ( * ) + 71 + - - 48 + + - 83 AS col0
----
78

query I rowsort
SELECT - - 4 * + + 44 + 27 AS col1
----
203

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 79 * - 5 col0
----
-395

onlyif mysql # aggregate syntax: 
query II rowsort label-552
SELECT - NULLIF ( + 16, - SUM( ALL + 89 ) ) * 8 + - - 65 AS col0, - 82 AS col1
----
-63
-82

skipif mysql # not compatible
query II rowsort label-552
SELECT - NULLIF ( + 16, - SUM ( ALL + 89 ) ) * 8 + - - 65 AS col0, - 82 AS col1
----
-63
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-553
SELECT DISTINCT 26 DIV + - 64 * + COUNT( * ) AS col2, + ( + 90 )
----
0
90

skipif mysql # not compatible
query II rowsort label-553
SELECT DISTINCT 26 / + - 64 * + COUNT ( * ) AS col2, + ( + 90 )
----
0
90

query I rowsort
SELECT DISTINCT 32 * 71
----
2272

query I rowsort
SELECT + 37 + - + ( - 17 )
----
54

query I rowsort
SELECT ALL 43 * - 48 AS col0
----
-2064

onlyif mysql # DIV for integer division: 
query I rowsort label-557
SELECT + 49 DIV - 99 * 3
----
0

skipif mysql # not compatible
query I rowsort label-557
SELECT + 49 / - 99 * 3
----
0

query I rowsort
SELECT + 55 * 28 col2
----
1540

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT MAX( + - 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-560
SELECT MAX ( + - 23 ) AS col2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT + 19 DIV - 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-561
SELECT + 19 / - 25 AS col0
----
0

query I rowsort
SELECT - 25 * - + 0 * + 33 * + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT DISTINCT 42 * - - ( - ( - + 3 ) )
----
126

query I rowsort
SELECT ALL - 10 + - - 13
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-566
SELECT - CAST( - 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-566
SELECT - CAST ( - 63 AS INTEGER )
----
63

query I rowsort
SELECT - 65 + + 65
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-568
SELECT ALL 71 + COUNT( * ) * + - 10 DIV MAX( ALL 56 ) * + CASE + CAST( + COUNT( * ) AS SIGNED ) WHEN COUNT( * ) THEN + 67 * + 42 ELSE NULL END
----
71

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL 71 + COUNT ( * ) * + - 10 / MAX ( ALL 56 ) * + CASE + CAST ( + COUNT ( * ) AS INTEGER ) WHEN COUNT ( * ) THEN + 67 * + 42 ELSE NULL END
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-569
SELECT 48, 88 DIV + - COUNT( * ) AS col2
----
48
-88

skipif mysql # not compatible
query II rowsort label-569
SELECT 48, 88 / + - COUNT ( * ) AS col2
----
48
-88

query I rowsort
SELECT + + 34 + + - 94 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT - COALESCE ( COUNT( * ), COUNT( * ), - + 52 + COUNT( + + 57 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-571
SELECT - COALESCE ( COUNT ( * ), COUNT ( * ), - + 52 + COUNT ( + + 57 ) ) col0
----
-1

query I rowsort
SELECT ALL - 65 * + 85
----
-5525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-573
SELECT + - 60 + + COUNT( * ) + + 12 - COALESCE ( 42, 57 * 36 * COALESCE ( - 67, - - COUNT( DISTINCT + 56 ) * - 22 + + - 94 + + - 42, 5 * - - 64 - - 68 + + + CAST( + + COUNT( * ) AS SIGNED ) + + - 68 ) + COALESCE ( - 99, + 93 DIV 44, - COUNT( 42 ) ) + 41 ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-573
SELECT + - 60 + + COUNT ( * ) + + 12 - COALESCE ( 42, 57 * 36 * COALESCE ( - 67, - - COUNT ( DISTINCT + 56 ) * - 22 + + - 94 + + - 42, 5 * - - 64 - - 68 + + + CAST ( + + COUNT ( * ) AS INTEGER ) + + - 68 ) + COALESCE ( - 99, + 93 / 44, - COUNT ( 42 ) ) + 41 ) col0
----
-89

query I rowsort
SELECT - 75 - - 89 + + + 50 + 46 AS col0
----
110

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

query I rowsort
SELECT + + 85 + + + 68 AS col1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT DISTINCT COALESCE ( + COUNT( * ), - 94 + + 16 - COALESCE ( - - 56, 1 * - - 33 + - + CASE + COALESCE ( + 71, + + 54 ) WHEN ( + 50 ) THEN + + COALESCE ( - ( 69 ), + 44 ) * + - 54 * COUNT( * ) + + ( - + 59 ) WHEN - - 1 THEN NULL WHEN 23 THEN NULL ELSE NULL END - 26 ) * + 10 * 91 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-577
SELECT DISTINCT COALESCE ( + COUNT ( * ), - 94 + + 16 - COALESCE ( - - 56, 1 * - - 33 + - + CASE + COALESCE ( + 71, + + 54 ) WHEN ( + 50 ) THEN + + COALESCE ( - ( 69 ), + 44 ) * + - 54 * COUNT ( * ) + + ( - + 59 ) WHEN - - 1 THEN NULL WHEN 23 THEN NULL ELSE NULL END - 26 ) * + 10 * 91 ) AS col1
----
1

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

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

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

query I rowsort
SELECT DISTINCT - 71 * + 78 AS col2
----
-5538

query I rowsort
SELECT DISTINCT + + 34 AS col2
----
34

query I rowsort
SELECT + + 33 * - 81 AS col1
----
-2673

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-583
SELECT - + 27 * 78 DIV - 22 - + 76 * - 41 * + - CAST( NULL AS DECIMAL ) * - 61 * 23 col2, 27 DIV - 57 + + ( - CAST( - 70 AS SIGNED ) )
----
NULL
70

skipif mysql # not compatible
query II rowsort label-583
SELECT - + 27 * 78 / - 22 - + 76 * - 41 * + - CAST ( NULL AS REAL ) * - 61 * 23 col2, 27 / - 57 + + ( - CAST ( - 70 AS INTEGER ) )
----
NULL
70

query I rowsort
SELECT - - 69 + 94
----
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-585
SELECT ALL + 98 AS col0, CASE 9 WHEN - - COUNT( * ) + - 9 THEN NULL WHEN + - CAST( + 84 AS SIGNED ) THEN - + 77 * - - 10 / COUNT( * ) + - 50 + + 46 * ( - 19 ) + + + 56 END AS col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-585
SELECT ALL + 98 AS col0, CASE 9 WHEN - - COUNT ( * ) + - 9 THEN NULL WHEN + - CAST ( + 84 AS INTEGER ) THEN - + 77 * - - 10 / COUNT ( * ) + - 50 + + 46 * ( - 19 ) + + + 56 END AS col2
----
98
NULL

query I rowsort
SELECT DISTINCT - ( + - 63 ) * + 19
----
1197

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-587
SELECT ALL + 90 col2, 20 DIV COUNT( * )
----
90
20

skipif mysql # not compatible
query II rowsort label-587
SELECT ALL + 90 col2, 20 / COUNT ( * )
----
90
20

query II rowsort
SELECT + 70, 37 + - 41 AS col1
----
70
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT ALL + MAX( DISTINCT + + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL + MAX ( DISTINCT + + 61 )
----
61

query I rowsort
SELECT DISTINCT + 59 * + 44 * - 70
----
-181720

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT - 79 + + COUNT( * ) + 38 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-591
SELECT - 79 + + COUNT ( * ) + 38 AS col2
----
-40

query I rowsort
SELECT ALL + 41 * - 10 * + + 62
----
-25420

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-594
SELECT ( + COALESCE ( - - CAST( - 28 AS SIGNED ), 75, - 33 ) ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-594
SELECT ( + COALESCE ( - - CAST ( - 28 AS INTEGER ), 75, - 33 ) ) AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-595
SELECT - 26 - + COUNT( ALL + 8 ) - 39 DIV 50 * 10 * - 65 * - 12 * - 65 + - 34 * 67 * 0 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-595
SELECT - 26 - + COUNT ( ALL + 8 ) - 39 / 50 * 10 * - 65 * - 12 * - 65 + - 34 * 67 * 0 AS col2
----
-27

query I rowsort
SELECT - 43 + 93 AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-597
SELECT COALESCE ( + 3, + ( - CAST( 28 AS SIGNED ) ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-597
SELECT COALESCE ( + 3, + ( - CAST ( 28 AS INTEGER ) ) ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT + COUNT( * ) + - 99 + - 71 col2
----
-169

skipif mysql # not compatible
query I rowsort label-598
SELECT + COUNT ( * ) + - 99 + - 71 col2
----
-169

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

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT ALL - COUNT( * ) * + + 59 + - + 74
----
-133

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL - COUNT ( * ) * + + 59 + - + 74
----
-133

query I rowsort
SELECT ALL COALESCE ( + 10, - 93 ) * 77 + + - 84 + + 45 * 62
----
3476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-602
SELECT CASE 52 WHEN + 57 + - + 62 * - 46 THEN + 26 * COUNT( * ) * + 37 + - 93 + + CAST( - COUNT( * ) AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT CASE 52 WHEN + 57 + - + 62 * - 46 THEN + 26 * COUNT ( * ) * + 37 + - 93 + + CAST ( - COUNT ( * ) AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-603
SELECT DISTINCT + CAST( + + 28 AS SIGNED ) + + CAST( + 24 AS SIGNED ) - 58
----
-6

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT + CAST ( + + 28 AS INTEGER ) + + CAST ( + 24 AS INTEGER ) - 58
----
-6

query II rowsort
SELECT ALL 59 * + 50 AS col0, 69 AS col1
----
2950
69

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT SUM( DISTINCT 86 ) + + ( 49 )
----
135

skipif mysql # not compatible
query I rowsort label-605
SELECT SUM ( DISTINCT 86 ) + + ( 49 )
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT ALL MAX( DISTINCT + 1 ) + + + COUNT( * ) + COALESCE ( - COUNT( * ), + 73, - - 36 )
----
1

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL MAX ( DISTINCT + 1 ) + + + COUNT ( * ) + COALESCE ( - COUNT ( * ), + 73, - - 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT DISTINCT CASE + 66 WHEN + 65 THEN - 3 - - MAX( DISTINCT - 45 ) * 3 * + AVG ( DISTINCT + 26 ) END * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT CASE + 66 WHEN + 65 THEN - 3 - - MAX ( DISTINCT - 45 ) * 3 * + AVG ( DISTINCT + 26 ) END * 74
----
NULL

query I rowsort
SELECT 36 * - 14 AS col2
----
-504

query II rowsort
SELECT - 52 AS col2, + 76
----
-52
76

query I rowsort
SELECT ALL ( - + 69 ) * - - 30 col0
----
-2070

onlyif mysql # DIV for integer division: 
query II rowsort label-611
SELECT 19 AS col2, + 84 + 11 - - 61 * + 1 DIV + 78
----
19
95

skipif mysql # not compatible
query II rowsort label-611
SELECT 19 AS col2, + 84 + 11 - - 61 * + 1 / + 78
----
19
95

query II rowsort
SELECT - 35 AS col0, + 72 * - 72 AS col1
----
-35
-5184

query I rowsort
SELECT ALL + 3 - 11 * + 78 col0
----
-855

onlyif mysql # DIV for integer division: 
query I rowsort label-614
SELECT 54 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-614
SELECT 54 / - 90
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT ALL + 42 - - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL + 42 - - COUNT ( * )
----
43

query I rowsort
SELECT ALL + 78 * - ( + 54 )
----
-4212

onlyif mysql # DIV for integer division: 
query I rowsort label-618
SELECT ALL - 67 DIV - 44
----
1

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL - 67 / - 44
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-619
SELECT 33 DIV + CAST( + - 62 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-619
SELECT 33 / + CAST ( + - 62 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-620
SELECT - CAST( NULL AS SIGNED ) - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-620
SELECT - CAST ( NULL AS INTEGER ) - 88 AS col2
----
NULL

query I rowsort
SELECT 23 * + - 34 AS col2
----
-782

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-622
SELECT 25 - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-622
SELECT 25 - - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-623
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col1, 32 - + - 61
----
NULL
93

skipif mysql # not compatible
query II rowsort label-623
SELECT DISTINCT - CAST ( NULL AS REAL ) col1, 32 - + - 61
----
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT 2 * CASE + ( - COUNT( * ) ) WHEN - + 46 + 52 THEN + 80 WHEN - - 98 - - 35 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-624
SELECT 2 * CASE + ( - COUNT ( * ) ) WHEN - + 46 + 52 THEN + 80 WHEN - - 98 - - 35 THEN NULL END col1
----
NULL

query I rowsort
SELECT DISTINCT - 15 * 54
----
-810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-626
SELECT ALL - 61, 53 * CASE + + 10 WHEN - CAST( + 12 AS DECIMAL ) THEN NULL ELSE - - COUNT( * ) * CAST( NULL AS SIGNED ) * + + CAST( - + COALESCE ( + 44, + 20 ) AS SIGNED ) * - 6 + + 2 + + 51 * - 6 * - CAST( NULL AS SIGNED ) - 71 + - + 35 + 43 / CASE + AVG ( + + 80 ) WHEN + COUNT( * ) * 44 / - 70 THEN 96 WHEN + COUNT( * ) THEN - 21 END + - 65 END AS col0
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-626
SELECT ALL - 61, 53 * CASE + + 10 WHEN - CAST ( + 12 AS REAL ) THEN NULL ELSE - - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + + CAST ( - + COALESCE ( + 44, + 20 ) AS INTEGER ) * - 6 + + 2 + + 51 * - 6 * - CAST ( NULL AS INTEGER ) - 71 + - + 35 + 43 / CASE + AVG ( + + 80 ) WHEN + COUNT ( * ) * 44 / - 70 THEN 96 WHEN + COUNT ( * ) THEN - 21 END + - 65 END AS col0
----
-61
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-627
SELECT - 31 * - - NULLIF ( NULLIF ( + CAST( 91 AS SIGNED ), COUNT( * ) ), - - 85 ) * + 43 * + NULLIF ( + 27, - - CASE ( 70 ) WHEN + - 96 THEN NULL ELSE - COUNT( ALL - 59 ) END * - 2 * - - 6 - + - 43 ) - + ( - CASE 16 WHEN 97 * + + 78 * 80 + + 30 THEN + 26 * AVG ( - 17 * + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) ELSE NULL END ) * + CASE 38 WHEN 49 THEN 83 WHEN + 90 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-627
SELECT - 31 * - - NULLIF ( NULLIF ( + CAST ( 91 AS INTEGER ), COUNT ( * ) ), - - 85 ) * + 43 * + NULLIF ( + 27, - - CASE ( 70 ) WHEN + - 96 THEN NULL ELSE - COUNT ( ALL - 59 ) END * - 2 * - - 6 - + - 43 ) - + ( - CASE 16 WHEN 97 * + + 78 * 80 + + 30 THEN + 26 * AVG ( - 17 * + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) ELSE NULL END ) * + CASE 38 WHEN 49 THEN 83 WHEN + 90 THEN NULL END
----
NULL

query II rowsort
SELECT ALL + CASE ( + 1 ) WHEN 11 THEN - 97 + - + ( - + 33 ) * - 48 ELSE - 66 + - - 53 END + - 11 col1, + 69 AS col1
----
-24
69

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT - 73 DIV - 51 - 75 + - 91 AS col1
----
-165

skipif mysql # not compatible
query I rowsort label-629
SELECT - 73 / - 51 - 75 + - 91 AS col1
----
-165

query I rowsort
SELECT ALL 68 * + 1 AS col1
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-631
SELECT 18 * - - ( - 31 ) AS col2, COUNT( * ) * 64 AS col2
----
-558
64

skipif mysql # not compatible
query II rowsort label-631
SELECT 18 * - - ( - 31 ) AS col2, COUNT ( * ) * 64 AS col2
----
-558
64

onlyif mysql # aggregate syntax: 
query II rowsort label-632
SELECT 22 - + 13 + - CASE - COUNT( * ) WHEN - 9 THEN NULL WHEN - + 79 THEN - AVG ( - + 51 ) * + 1 ELSE NULL END / - 26 AS col0, + COALESCE ( + + 70, + - 11, + - SUM( ALL 4 ) ) AS col1
----
NULL
70

skipif mysql # not compatible
query II rowsort label-632
SELECT 22 - + 13 + - CASE - COUNT ( * ) WHEN - 9 THEN NULL WHEN - + 79 THEN - AVG ( - + 51 ) * + 1 ELSE NULL END / - 26 AS col0, + COALESCE ( + + 70, + - 11, + - SUM ( ALL 4 ) ) AS col1
----
NULL
70

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT ALL - COUNT( * ) + - CASE - + COALESCE ( + + COUNT( * ), + 23 ) WHEN + 17 * - 0 THEN + 67 + + 5 - + 60 + + - 85 + - 31 END + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-633
SELECT ALL - COUNT ( * ) + - CASE - + COALESCE ( + + COUNT ( * ), + 23 ) WHEN + 17 * - 0 THEN + 67 + + 5 - + 60 + + - 85 + - 31 END + + 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-634
SELECT - 10 * ( - - 59 ) + - CASE 30 WHEN + - ( + 8 ) / + - CASE - - 66 WHEN + 6 THEN NULL ELSE + ( - ( AVG ( + CAST( 87 AS SIGNED ) ) ) ) END * + 3 * COALESCE ( + + 76, - COUNT( DISTINCT + + 98 ) + + 92, - 68 ) - + 98 + - 12 * - CASE + 21 WHEN + 55 THEN - SUM( - ( - ( - 97 ) ) ) WHEN 87 + - 49 THEN NULL ELSE NULL END * - NULLIF ( + 16 * + CASE WHEN NULL NOT IN ( 71 ) THEN NULL WHEN + 35 > NULL THEN NULL ELSE ( 26 ) + - 77 * - CASE - ( + 59 ) WHEN COUNT( * ) THEN NULL WHEN + 0 * + 77 THEN - 0 ELSE - AVG ( ALL - 88 ) * COUNT( * ) END END, - 27 * COUNT( * ) ) THEN - 88 WHEN 75 THEN NULL ELSE + COUNT( * ) END
----
-591

skipif mysql # not compatible
query I rowsort label-634
SELECT - 10 * ( - - 59 ) + - CASE 30 WHEN + - ( + 8 ) / + - CASE - - 66 WHEN + 6 THEN NULL ELSE + ( - ( AVG ( + CAST ( 87 AS INTEGER ) ) ) ) END * + 3 * COALESCE ( + + 76, - COUNT ( DISTINCT + + 98 ) + + 92, - 68 ) - + 98 + - 12 * - CASE + 21 WHEN + 55 THEN - SUM ( - ( - ( - 97 ) ) ) WHEN 87 + - 49 THEN NULL ELSE NULL END * - NULLIF ( + 16 * + CASE WHEN NULL NOT IN ( 71 ) THEN NULL WHEN + 35 > NULL THEN NULL ELSE ( 26 ) + - 77 * - CASE - ( + 59 ) WHEN COUNT ( * ) THEN NULL WHEN + 0 * + 77 THEN - 0 ELSE - AVG ( ALL - 88 ) * COUNT ( * ) END END, - 27 * COUNT ( * ) ) THEN - 88 WHEN 75 THEN NULL ELSE + COUNT ( * ) END
----
-591

onlyif mysql # DIV for integer division: 
query II rowsort label-635
SELECT 8 DIV 66 col1, 69 + 33
----
0
102

skipif mysql # not compatible
query II rowsort label-635
SELECT 8 / 66 col1, 69 + 33
----
0
102

query I rowsort
SELECT 11 + - ( - 96 )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT 10 * + COUNT( * ) - - ( - 85 ) - + - COUNT( 14 ) * 28
----
-47

skipif mysql # not compatible
query I rowsort label-637
SELECT 10 * + COUNT ( * ) - - ( - 85 ) - + - COUNT ( 14 ) * 28
----
-47

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

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

query I rowsort
SELECT ALL - 38 * + 99
----
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT 56 + - NULLIF ( ( + NULLIF ( + 8, - 77 + 29 ) ), + - ( - 80 ) - - ( + - SUM( ALL ( - - 98 ) ) ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-640
SELECT 56 + - NULLIF ( ( + NULLIF ( + 8, - 77 + 29 ) ), + - ( - 80 ) - - ( + - SUM ( ALL ( - - 98 ) ) ) ) AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-641
SELECT DISTINCT - CAST( + 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT - CAST ( + 83 AS INTEGER )
----
-83

query I rowsort
SELECT 43 + 77 + - 76 - - 73 * - 76 * - + 30 * - - NULLIF ( + 82, 55 - - 57 ) + - 95 AS col1
----
13648029

query I rowsort
SELECT 46 * + + 40
----
1840

onlyif mysql # aggregate syntax: 
query II rowsort label-644
SELECT - MIN( ALL - 26 ) AS col0, + COUNT( * ) AS col1
----
26
1

skipif mysql # not compatible
query II rowsort label-644
SELECT - MIN ( ALL - 26 ) AS col0, + COUNT ( * ) AS col1
----
26
1

query I rowsort
SELECT ALL - 32 - + - 37
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-646
SELECT CAST( NULL AS SIGNED ) - - - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-646
SELECT CAST ( NULL AS INTEGER ) - - - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT ( COUNT( * ) ) * COALESCE ( + 38, + + 12 + - + 62 ) * + 14 - - + 86
----
618

skipif mysql # not compatible
query I rowsort label-647
SELECT ( COUNT ( * ) ) * COALESCE ( + 38, + + 12 + - + 62 ) * + 14 - - + 86
----
618

query I rowsort
SELECT 68 + - 95 + + - 32 AS col1
----
-59

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-651
SELECT - 37 + 2 + - 19 + NULLIF ( + SUM( ALL + ( - ( 81 ) ) ), 23 * - 43 ) * - + 27 + + COUNT( * ) * + COUNT( * ) * + - 41 - - 77 AS col0, 25
----
2169
25

skipif mysql # not compatible
query II rowsort label-651
SELECT - 37 + 2 + - 19 + NULLIF ( + SUM ( ALL + ( - ( 81 ) ) ), 23 * - 43 ) * - + 27 + + COUNT ( * ) * + COUNT ( * ) * + - 41 - - 77 AS col0, 25
----
2169
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-652
SELECT COUNT( * ) + + - 58 + - - 16 DIV - - 29 * NULLIF ( - ( + + 14 ), 27 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-652
SELECT COUNT ( * ) + + - 58 + - - 16 / - - 29 * NULLIF ( - ( + + 14 ), 27 ) AS col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-653
SELECT 60 * - 86 * - 11 AS col1, + MAX( ALL + 58 ) DIV 22
----
56760
2

skipif mysql # not compatible
query II rowsort label-653
SELECT 60 * - 86 * - 11 AS col1, + MAX ( ALL + 58 ) / 22
----
56760
2

query I rowsort
SELECT ALL 21 * 65 * - 74 + 98 AS col0
----
-100912

query I rowsort
SELECT 48 + - 22 + + 91 - - 29 col1
----
146

query I rowsort
SELECT 37 - - + 2 AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-657
SELECT - 78 DIV - 75
----
1

skipif mysql # not compatible
query I rowsort label-657
SELECT - 78 / - 75
----
1

query I rowsort
SELECT 40 + - 35 + 98 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT ALL MAX( DISTINCT - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL MAX ( DISTINCT - 53 )
----
-53

query I rowsort
SELECT ALL - 86 + - 98 col2
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT COUNT( * ) + - 73
----
-72

skipif mysql # not compatible
query I rowsort label-661
SELECT COUNT ( * ) + - 73
----
-72

query I rowsort
SELECT ALL + 6 + - 62 AS col1
----
-56

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-664
SELECT - 16 DIV - 3 + - + CAST( - 33 AS SIGNED ) col0
----
38

skipif mysql # not compatible
query I rowsort label-664
SELECT - 16 / - 3 + - + CAST ( - 33 AS INTEGER ) col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT + MAX( ALL - - 58 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-665
SELECT + MAX ( ALL - - 58 ) AS col2
----
58

query I rowsort
SELECT 2 * 84
----
168

query I rowsort
SELECT 37 * - 97
----
-3589

query I rowsort
SELECT 47 + + 99
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-669
SELECT DISTINCT - MIN( + 86 ) * + ( + 37 ) * - COUNT( * ) + + + 79, - 56 - 75 + - 67 * ( ( 12 ) ) + - + 20 * - - ( 98 ) col0
----
3261
-2895

skipif mysql # not compatible
query II rowsort label-669
SELECT DISTINCT - MIN ( + 86 ) * + ( + 37 ) * - COUNT ( * ) + + + 79, - 56 - 75 + - 67 * ( ( 12 ) ) + - + 20 * - - ( 98 ) col0
----
3261
-2895

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-670
SELECT ALL + COALESCE ( - 72, + + COALESCE ( 81, + CASE - 63 WHEN - + 37 THEN + 85 WHEN + 29 THEN - CAST( - + 31 AS SIGNED ) WHEN 84 THEN + - 43 * CAST( NULL AS SIGNED ) ELSE NULL END, 43 ) DIV 60 + + 45 )
----
-72

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL + COALESCE ( - 72, + + COALESCE ( 81, + CASE - 63 WHEN - + 37 THEN + 85 WHEN + 29 THEN - CAST ( - + 31 AS INTEGER ) WHEN 84 THEN + - 43 * CAST ( NULL AS INTEGER ) ELSE NULL END, 43 ) / 60 + + 45 )
----
-72

query II rowsort
SELECT DISTINCT ( + 81 ) * - 73, - 55 AS col2
----
-5913
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-672
SELECT - COALESCE ( 0, + + CASE - 37 WHEN COUNT( * ) THEN - 70 * - NULLIF ( + - MIN( + 2 ), + 79 ) + - COUNT( + CAST( 29 AS SIGNED ) ) END ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT - COALESCE ( 0, + + CASE - 37 WHEN COUNT ( * ) THEN - 70 * - NULLIF ( + - MIN ( + 2 ), + 79 ) + - COUNT ( + CAST ( 29 AS INTEGER ) ) END ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT + 36 * - COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-673
SELECT + 36 * - COUNT ( * ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT ALL 24 * + - 64 - + MAX( ALL - 71 )
----
-1465

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL 24 * + - 64 - + MAX ( ALL - 71 )
----
-1465

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-676
SELECT + 39 AS col1, 25 * + 88 + - COUNT( 2 )
----
39
2199

skipif mysql # not compatible
query II rowsort label-676
SELECT + 39 AS col1, 25 * + 88 + - COUNT ( 2 )
----
39
2199

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT MIN( - 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-677
SELECT MIN ( - 12 ) AS col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-678
SELECT ALL + 80 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL + 80 / - 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT DISTINCT - 34 DIV + + 5 + - 33 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT - 34 / + + 5 + - 33 AS col1
----
-39

query II rowsort
SELECT DISTINCT 41, 80 - - 69 col1
----
41
149

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-682
SELECT - + 48 - + + 81 * + - 45 - 41 * + COUNT( * ) * - 60, - ( + 95 ) + + - COUNT( * ) col0
----
6057
-96

skipif mysql # not compatible
query II rowsort label-682
SELECT - + 48 - + + 81 * + - 45 - 41 * + COUNT ( * ) * - 60, - ( + 95 ) + + - COUNT ( * ) col0
----
6057
-96

query I rowsort
SELECT DISTINCT - 84 * + + 75 col0
----
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT - + SUM( - - 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-684
SELECT - + SUM ( - - 99 ) AS col0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-685
SELECT - ( - 12 ) DIV 1 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-685
SELECT - ( - 12 ) / 1 AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-686
SELECT - 35 DIV + COALESCE ( 54, + 53 - - 67 + - + COUNT( * ) - - 98 * - - 8 * + MAX( ALL + + 4 ) * - COUNT( * ), + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-686
SELECT - 35 / + COALESCE ( 54, + 53 - - 67 + - + COUNT ( * ) - - 98 * - - 8 * + MAX ( ALL + + 4 ) * - COUNT ( * ), + COUNT ( * ) )
----
0

query I rowsort
SELECT - - 40 + - + 45
----
-5

query I rowsort
SELECT - 49 * + - 58 AS col2
----
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT + + 65 + 32 * + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-689
SELECT + + 65 + 32 * + + COUNT ( * )
----
97

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT - + 21 * - 75 - - - COUNT( * ) + 43 col0
----
1617

skipif mysql # not compatible
query I rowsort label-692
SELECT - + 21 * - 75 - - - COUNT ( * ) + 43 col0
----
1617

query I rowsort
SELECT ALL 68 + 16 AS col1
----
84

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

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

query I rowsort
SELECT - 82 * + ( 90 ) AS col2
----
-7380

query I rowsort
SELECT - - ( - 88 ) - - + 99
----
11

query I rowsort
SELECT - NULLIF ( - - 10, - 8 )
----
-10

query II rowsort
SELECT + 8 * + 4 AS col2, + 96 AS col2
----
32
96

query I rowsort
SELECT ALL 14 * + 72
----
1008

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT + NULLIF ( 60, + NULLIF ( + 3, - + 15 * - - ( 74 ) + + - 96 ) * + + MIN( + + 19 ) ) col2
----
60

skipif mysql # not compatible
query I rowsort label-701
SELECT + NULLIF ( 60, + NULLIF ( + 3, - + 15 * - - ( 74 ) + + - 96 ) * + + MIN ( + + 19 ) ) col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT ALL NULLIF ( COUNT( * ), + - 98 * - 65 ) / + + CASE ( - - 11 ) WHEN + MIN( + 60 ) * - 15 + + 44 / + COUNT( * ) + + 12 * + 32 / - COALESCE ( 95, 59 + - + 42 ) THEN + ( 47 ) * - 25 WHEN 5 * - - 62 + 94 + + 74 + 88 THEN NULL END - + CASE - 19 WHEN + 80 * 79 THEN 38 * - 89 ELSE + 46 * + 24 END - + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL NULLIF ( COUNT ( * ), + - 98 * - 65 ) / + + CASE ( - - 11 ) WHEN + MIN ( + 60 ) * - 15 + + 44 / + COUNT ( * ) + + 12 * + 32 / - COALESCE ( 95, 59 + - + 42 ) THEN + ( 47 ) * - 25 WHEN 5 * - - 62 + 94 + + 74 + 88 THEN NULL END - + CASE - 19 WHEN + 80 * 79 THEN 38 * - 89 ELSE + 46 * + 24 END - + 36
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-703
SELECT + COUNT( * ) - - 28 + + + NULLIF ( - ( - 3 ), 13 * + 26 * - 42 * 43 * + + 76 ) * - + 43 + 35, 32 AS col0
----
-65
32

skipif mysql # not compatible
query II rowsort label-703
SELECT + COUNT ( * ) - - 28 + + + NULLIF ( - ( - 3 ), 13 * + 26 * - 42 * 43 * + + 76 ) * - + 43 + 35, 32 AS col0
----
-65
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT + 25 + + 88 + + COUNT( * ) AS col2
----
114

skipif mysql # not compatible
query I rowsort label-705
SELECT + 25 + + 88 + + COUNT ( * ) AS col2
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT + 37 DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-706
SELECT + 37 / + 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT + 42 * + COUNT( + - 25 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-707
SELECT + 42 * + COUNT ( + - 25 ) AS col1
----
42

query I rowsort
SELECT + CASE + + 79 WHEN 84 * + 7 THEN 82 WHEN + - 90 THEN NULL ELSE - 31 END
----
-31

query I rowsort
SELECT + 89 + + + 63 AS col2
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-710
SELECT CAST( 51 AS SIGNED ) * + 61 * + 14 + + CAST( 88 AS SIGNED ) + - 68 * 82 * - - 40 - + 24
----
-179422

skipif mysql # not compatible
query I rowsort label-710
SELECT CAST ( 51 AS INTEGER ) * + 61 * + 14 + + CAST ( 88 AS INTEGER ) + - 68 * 82 * - - 40 - + 24
----
-179422

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT ( - NULLIF ( + + MIN( - 30 ), - + 93 * 41 - 22 + - + 71 ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-711
SELECT ( - NULLIF ( + + MIN ( - 30 ), - + 93 * 41 - 22 + - + 71 ) ) AS col2
----
30

query I rowsort
SELECT + ( - + 70 ) * 39 * 47 * - + 10 AS col0
----
1283100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-713
SELECT ALL + MAX( ALL 1 ) * + + 13 - 66 * + CAST( 19 AS SIGNED )
----
-1241

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL + MAX ( ALL 1 ) * + + 13 - 66 * + CAST ( 19 AS INTEGER )
----
-1241

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT DISTINCT 6 * ( - - COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT 6 * ( - - COUNT ( * ) )
----
6

query II rowsort
SELECT + 97 + + 97 AS col2, + ( - 97 ) + + - 97
----
194
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT + + 66 * + SUM( 68 )
----
4488

skipif mysql # not compatible
query I rowsort label-716
SELECT + + 66 * + SUM ( 68 )
----
4488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT - + 60 * + CAST( - 92 AS SIGNED ) AS col1
----
5520

skipif mysql # not compatible
query I rowsort label-717
SELECT - + 60 * + CAST ( - 92 AS INTEGER ) AS col1
----
5520

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT + + CASE - ( + 49 ) WHEN + 20 * - 62 + + COUNT( * ) THEN + + 51 ELSE - 43 END + + - 47 * 45 * + MAX( ALL ( + 86 ) ) AS col2
----
-181933

skipif mysql # not compatible
query I rowsort label-718
SELECT + + CASE - ( + 49 ) WHEN + 20 * - 62 + + COUNT ( * ) THEN + + 51 ELSE - 43 END + + - 47 * 45 * + MAX ( ALL ( + 86 ) ) AS col2
----
-181933

query I rowsort
SELECT - - COALESCE ( + 35, 54 )
----
35

query I rowsort
SELECT - ( 50 )
----
-50

query I rowsort
SELECT - 42 * - - 54 + - - 7
----
-2261

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

skipif mysql # not compatible
query I rowsort label-722
SELECT - - MIN ( + - ( - 95 ) )
----
95

query I rowsort
SELECT ALL + NULLIF ( + 82, - + 84 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-724
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN 24 + - COUNT( * ) + - 28 + - 85 THEN - COUNT( * ) + 77 WHEN ( - + COUNT( * ) ) THEN NULL ELSE - 3 END + - + 32 * - 90 + 85 + 8 * + - COUNT( * ) AS col0
----
2954

skipif mysql # not compatible
query I rowsort label-724
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN 24 + - COUNT ( * ) + - 28 + - 85 THEN - COUNT ( * ) + 77 WHEN ( - + COUNT ( * ) ) THEN NULL ELSE - 3 END + - + 32 * - 90 + 85 + 8 * + - COUNT ( * ) AS col0
----
2954

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-726
SELECT DISTINCT - CAST( NULL AS SIGNED ) * CAST( + + 69 AS SIGNED ) + 10 / + 26 * + 48 * - NULLIF ( - 52, - COUNT( * ) + - 79 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * CAST ( + + 69 AS INTEGER ) + 10 / + 26 * + 48 * - NULLIF ( - 52, - COUNT ( * ) + - 79 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-727
SELECT - 8 + 81 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-727
SELECT - 8 + 81 + - + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT - - 84 + ( 55 ) * + + 71
----
3989

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL - + 28 + - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL - + 28 + - COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT + + 73 + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-731
SELECT + + 73 + - COUNT ( * )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-732
SELECT - - ( + 88 ) + + - CAST( NULL AS SIGNED ) * 38 * + ( + 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-732
SELECT - - ( + 88 ) + + - CAST ( NULL AS INTEGER ) * 38 * + ( + 77 ) AS col1
----
NULL

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

query I rowsort
SELECT - + 23 + - - 13 AS col2
----
-10

query I rowsort
SELECT 37 + 25
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-736
SELECT 47 + + CAST( - - 97 AS SIGNED ) + - + 24 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-736
SELECT 47 + + CAST ( - - 97 AS INTEGER ) + - + 24 AS col0
----
120

query I rowsort
SELECT ALL - ( - 17 ) col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT 66 + + NULLIF ( 18, COUNT( - 58 ) ) - - 68
----
152

skipif mysql # not compatible
query I rowsort label-738
SELECT 66 + + NULLIF ( 18, COUNT ( - 58 ) ) - - 68
----
152

query I rowsort
SELECT ALL - 79 * 6 col0
----
-474

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT DISTINCT 60 * + 88 * + ( COUNT( * ) ) AS col1
----
5280

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT 60 * + 88 * + ( COUNT ( * ) ) AS col1
----
5280

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-742
SELECT ALL - 33 AS col0, - MAX( + 96 )
----
-33
-96

skipif mysql # not compatible
query II rowsort label-742
SELECT ALL - 33 AS col0, - MAX ( + 96 )
----
-33
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-743
SELECT DISTINCT - NULLIF ( + 29, - 43 * - 39 * + - CAST( COUNT( + - 6 ) AS SIGNED ) )
----
-29

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT - NULLIF ( + 29, - 43 * - 39 * + - CAST ( COUNT ( + - 6 ) AS INTEGER ) )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-744
SELECT 52 DIV ( - - 93 )
----
0

skipif mysql # not compatible
query I rowsort label-744
SELECT 52 / ( - - 93 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT MIN( DISTINCT - 88 ) + 93
----
5

skipif mysql # not compatible
query I rowsort label-745
SELECT MIN ( DISTINCT - 88 ) + 93
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT ALL COUNT( ALL - 49 ) + - 22 + SUM( + 14 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL COUNT ( ALL - 49 ) + - 22 + SUM ( + 14 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT ALL MAX( ALL - - 28 ) * + COUNT( * ) * 93
----
2604

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL MAX ( ALL - - 28 ) * + COUNT ( * ) * 93
----
2604

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT - 57 DIV - 22 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-748
SELECT - 57 / - 22 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-749
SELECT ALL 0 * + COALESCE ( - 87, COUNT( * ) ) + - 58 + + 38 - - + 26 * - 46 + 33 * + + CAST( - COUNT( * ) AS SIGNED )
----
-1249

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL 0 * + COALESCE ( - 87, COUNT ( * ) ) + - 58 + + 38 - - + 26 * - 46 + 33 * + + CAST ( - COUNT ( * ) AS INTEGER )
----
-1249

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT 46 * + + COALESCE ( 21, - COALESCE ( - COUNT( * ), + 97 ), MIN( 48 ) + + 22 * - + 17 + - + 56 ) AS col0
----
966

skipif mysql # not compatible
query I rowsort label-750
SELECT 46 * + + COALESCE ( 21, - COALESCE ( - COUNT ( * ), + 97 ), MIN ( 48 ) + + 22 * - + 17 + - + 56 ) AS col0
----
966

query I rowsort
SELECT ALL - 43 + 76 col0
----
33

query I rowsort
SELECT + + 92 col0
----
92

query I rowsort
SELECT ALL + 68 + - 58 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT - ( 49 ) * - - ( + 15 ) + + + CASE + CASE ( + + 19 ) WHEN + - 77 * - - COUNT( * ) * - 24 / + 5 - + 22 THEN + - ( + 59 ) WHEN - 50 THEN NULL ELSE NULL END WHEN + 25 + - 21 THEN 84 END + + + 98 + 59 + ( - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-754
SELECT - ( 49 ) * - - ( + 15 ) + + + CASE + CASE ( + + 19 ) WHEN + - 77 * - - COUNT ( * ) * - 24 / + 5 - + 22 THEN + - ( + 59 ) WHEN - 50 THEN NULL ELSE NULL END WHEN + 25 + - 21 THEN 84 END + + + 98 + 59 + ( - 81 )
----
NULL

query I rowsort
SELECT ALL 89 + + 94 AS col0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT - MAX( ALL - 97 ) * - + 98 AS col0
----
-9506

skipif mysql # not compatible
query I rowsort label-756
SELECT - MAX ( ALL - 97 ) * - + 98 AS col0
----
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT 92 + + COUNT( * ) + - + ( + 29 )
----
64

skipif mysql # not compatible
query I rowsort label-757
SELECT 92 + + COUNT ( * ) + - + ( + 29 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-758
SELECT ALL - - 0 - - - 48 * COUNT( * ) * MAX( DISTINCT + 34 ) * + + ( + + 93 ) - + 2, + 36 AS col2
----
-151778
36

skipif mysql # not compatible
query II rowsort label-758
SELECT ALL - - 0 - - - 48 * COUNT ( * ) * MAX ( DISTINCT + 34 ) * + + ( + + 93 ) - + 2, + 36 AS col2
----
-151778
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-759
SELECT 71 * + 95 + - ( ( - 8 ) ) col0, + ( CAST( - - 99 AS SIGNED ) ) col2, + + 39 DIV + 75 + - 82 DIV + COUNT( * )
----
6753
99
-82

skipif mysql # not compatible
query III rowsort label-759
SELECT 71 * + 95 + - ( ( - 8 ) ) col0, + ( CAST ( - - 99 AS INTEGER ) ) col2, + + 39 / + 75 + - 82 / + COUNT ( * )
----
6753
99
-82

query II rowsort
SELECT - 1, + 26 AS col2
----
-1
26

onlyif mysql # DIV for integer division: 
query I rowsort label-761
SELECT ALL COALESCE ( - ( - 40 ), NULLIF ( + 16, 94 ), 61 ) DIV 55 + - + 78
----
-78

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL COALESCE ( - ( - 40 ), NULLIF ( + 16, 94 ), 61 ) / 55 + - + 78
----
-78

query II rowsort
SELECT ALL 14 AS col0, 28
----
14
28

query I rowsort
SELECT 27 - 34 - 66
----
-73

query II rowsort
SELECT 25, 35 + - 68 AS col2
----
25
-33

query I rowsort
SELECT 66 * + 50
----
3300

onlyif mysql # DIV for integer division: 
query I rowsort label-766
SELECT 72 DIV 18 * 23 col0
----
92

skipif mysql # not compatible
query I rowsort label-766
SELECT 72 / 18 * 23 col0
----
92

query II rowsort
SELECT ALL 23, + 48 * - + 39 * + 3 AS col2
----
23
-5616

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT 46 + - - COUNT( DISTINCT - 17 ) * - ( + 55 )
----
-9

skipif mysql # not compatible
query I rowsort label-768
SELECT 46 + - - COUNT ( DISTINCT - 17 ) * - ( + 55 )
----
-9

query II rowsort
SELECT - 25 AS col1, 96
----
-25
96

query I rowsort
SELECT 52 * 13 col1
----
676

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-771
SELECT + ( + - 47 ) * + 3 * + 10 * + MIN( - 46 ) * - 64 - - 72 + + 41 DIV + - SUM( 14 ) + + + 80 AS col1
----
-4150890

skipif mysql # not compatible
query I rowsort label-771
SELECT + ( + - 47 ) * + 3 * + 10 * + MIN ( - 46 ) * - 64 - - 72 + + 41 / + - SUM ( 14 ) + + + 80 AS col1
----
-4150890

onlyif mysql # aggregate syntax: 
query II rowsort label-772
SELECT COUNT( * ) col2, + NULLIF ( - 10, - + 63 * - 41 ) AS col2
----
1
-10

skipif mysql # not compatible
query II rowsort label-772
SELECT COUNT ( * ) col2, + NULLIF ( - 10, - + 63 * - 41 ) AS col2
----
1
-10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-774
SELECT DISTINCT - 76 + - SUM( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT - 76 + - SUM ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-775
SELECT + 93 AS col0, + COUNT( * ) * + 27 AS col2
----
93
27

skipif mysql # not compatible
query II rowsort label-775
SELECT + 93 AS col0, + COUNT ( * ) * + 27 AS col2
----
93
27

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

skipif mysql # not compatible
query II rowsort label-776
SELECT + 47 AS col0, + COUNT ( * )
----
47
1

onlyif mysql # DIV for integer division: 
query I rowsort label-777
SELECT - 58 DIV + + 95 + + + 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-777
SELECT - 58 / + + 95 + + + 15 AS col2
----
15

query I rowsort
SELECT ALL - - 71 AS col1
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-779
SELECT + 21 AS col0, - 24 * + + MAX( - 86 ) AS col1
----
21
2064

skipif mysql # not compatible
query II rowsort label-779
SELECT + 21 AS col0, - 24 * + + MAX ( - 86 ) AS col1
----
21
2064

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

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

query I rowsort
SELECT DISTINCT + 72 + + 86
----
158

query I rowsort
SELECT ALL - 14 + + - 68
----
-82

query II rowsort
SELECT + 22 AS col1, - ( 6 ) col1
----
22
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT DISTINCT + NULLIF ( COUNT( * ), + 35 * - 46 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT + NULLIF ( COUNT ( * ), + 35 * - 46 ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL + COUNT( ALL - 84 ) + + - 89 * + + CASE 91 WHEN 59 THEN + 8 WHEN 50 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + COUNT ( ALL - 84 ) + + - 89 * + + CASE 91 WHEN 59 THEN + 8 WHEN 50 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-786
SELECT - CAST( NULL AS DECIMAL ) * 12 * + CAST( + ( - 96 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT - CAST ( NULL AS REAL ) * 12 * + CAST ( + ( - 96 ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT - 57 + + + SUM( DISTINCT + 96 )
----
39

skipif mysql # not compatible
query I rowsort label-787
SELECT - 57 + + + SUM ( DISTINCT + 96 )
----
39

query I rowsort
SELECT 60 / CASE - + 78 WHEN - - 22 THEN - + 79 * + + 81 + - 84 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-789
SELECT ALL + 18 / + - CAST( NULL AS SIGNED ) * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + 18 / + - CAST ( NULL AS INTEGER ) * - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT + + MIN( DISTINCT + 66 ) + - + 37
----
29

skipif mysql # not compatible
query I rowsort label-790
SELECT + + MIN ( DISTINCT + 66 ) + - + 37
----
29

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-793
SELECT + 7 + + + COALESCE ( + 19, 75, + 55 ) - + 89, 42 * COUNT( * ) AS col2
----
-63
42

skipif mysql # not compatible
query II rowsort label-793
SELECT + 7 + + + COALESCE ( + 19, 75, + 55 ) - + 89, 42 * COUNT ( * ) AS col2
----
-63
42

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT - MIN( - - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-794
SELECT - MIN ( - - 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT + 20 * - - 23 * MAX( ALL - + 61 )
----
-28060

skipif mysql # not compatible
query I rowsort label-795
SELECT + 20 * - - 23 * MAX ( ALL - + 61 )
----
-28060

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT + COUNT( * ) + + COALESCE ( 38, - 91 )
----
39

skipif mysql # not compatible
query I rowsort label-796
SELECT + COUNT ( * ) + + COALESCE ( 38, - 91 )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-797
SELECT + COUNT( * ) * ( - 35 ) AS col2, + 14 AS col1
----
-35
14

skipif mysql # not compatible
query II rowsort label-797
SELECT + COUNT ( * ) * ( - 35 ) AS col2, + 14 AS col1
----
-35
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-798
SELECT + 14 + + CAST( + 0 AS SIGNED ) * + - COUNT( * ) AS col1
----
14

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-799
SELECT - 20 - + SUM( ALL - NULLIF ( CASE - CAST( - 32 AS SIGNED ) WHEN + - 11 + - 80 THEN - 30 * + 89 * + ( 86 ) END, 15 ) ) + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-799
SELECT - 20 - + SUM ( ALL - NULLIF ( CASE - CAST ( - 32 AS INTEGER ) WHEN + - 11 + - 80 THEN - 30 * + 89 * + ( 86 ) END, 15 ) ) + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT + MAX( ALL - 12 ) + - 20 + - + 86 - - 81 * - 66 + 93 * - 47 col1
----
-9835

skipif mysql # not compatible
query I rowsort label-800
SELECT + MAX ( ALL - 12 ) + - 20 + - + 86 - - 81 * - 66 + 93 * - 47 col1
----
-9835

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

skipif mysql # not compatible
query II rowsort label-801
SELECT + COUNT ( * ) / + 35 AS col0, 73
----
0
73

query I rowsort
SELECT DISTINCT + 34 * - + 46
----
-1564

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT + COALESCE ( 90, + ( - 26 ), 68 ) * + 90 * - SUM( - 68 ) * + - 60 + + NULLIF ( NULLIF ( SUM( DISTINCT + - 22 ), + + 8 ), + 56 ) * 32 + - 15
----
-33048719

skipif mysql # not compatible
query I rowsort label-803
SELECT + COALESCE ( 90, + ( - 26 ), 68 ) * + 90 * - SUM ( - 68 ) * + - 60 + + NULLIF ( NULLIF ( SUM ( DISTINCT + - 22 ), + + 8 ), + 56 ) * 32 + - 15
----
-33048719

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT ALL 48 + + - NULLIF ( 85, - + 58 ) * - 35 - COUNT( * )
----
3022

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL 48 + + - NULLIF ( 85, - + 58 ) * - 35 - COUNT ( * )
----
3022

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

onlyif mysql # aggregate syntax: 
query II rowsort label-806
SELECT ALL + COUNT( * ) * - 13 AS col2, 63 * 77 + 87 AS col1
----
-13
4938

skipif mysql # not compatible
query II rowsort label-806
SELECT ALL + COUNT ( * ) * - 13 AS col2, 63 * 77 + 87 AS col1
----
-13
4938

query I rowsort
SELECT ALL - 62 + + - 58
----
-120

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-809
SELECT + 13 DIV + 54 + COUNT( * ) + - CAST( + - 93 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-809
SELECT + 13 / + 54 + COUNT ( * ) + - CAST ( + - 93 AS INTEGER )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT ALL 63 * 79 * 56 + - COUNT( * ) + COALESCE ( - 5, + 67 ) * + + 43 AS col0
----
278496

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL 63 * 79 * 56 + - COUNT ( * ) + COALESCE ( - 5, + 67 ) * + + 43 AS col0
----
278496

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

query I rowsort
SELECT ( + + COALESCE ( + 35, - - 5, - 21 ) ) AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-813
SELECT + + 29 DIV 21 * + ( + + 16 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-813
SELECT + + 29 / 21 * + ( + + 16 ) AS col2
----
16

query I rowsort
SELECT DISTINCT 4 * + NULLIF ( - 0, + 33 * + - 62 ) * - 4 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT - - CASE + + 27 WHEN COUNT( * ) THEN + 22 * - 91 END * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT - - CASE + + 27 WHEN COUNT ( * ) THEN + 22 * - 91 END * + 90
----
NULL

query I rowsort
SELECT - 75 + ( 24 ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT DISTINCT - MAX( ALL - 24 ) * - NULLIF ( + 8, ( - + 68 ) * + COALESCE ( 15, - 93 ) * - 48 / 31 + - - 49 - + 47 * - COUNT( * ) * - + COUNT( * ) + - + COUNT( * ) + + ( - 35 ) * - 82 / COUNT( * ) ) + 35 * 83 + - - 16 + - 30 * 94 * COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT - MAX ( ALL - 24 ) * - NULLIF ( + 8, ( - + 68 ) * + COALESCE ( 15, - 93 ) * - 48 / 31 + - - 49 - + 47 * - COUNT ( * ) * - + COUNT ( * ) + - + COUNT ( * ) + + ( - 35 ) * - 82 / COUNT ( * ) ) + 35 * 83 + - - 16 + - 30 * 94 * COUNT ( * ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT - + 35 * ( + - 65 ) + 73 + + - 60 * NULLIF ( COUNT( * ), - - 93 ) AS col1
----
2288

skipif mysql # not compatible
query I rowsort label-818
SELECT - + 35 * ( + - 65 ) + 73 + + - 60 * NULLIF ( COUNT ( * ), - - 93 ) AS col1
----
2288

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

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

query I rowsort
SELECT - 46 - + 59 col1
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-821
SELECT + - 22 * 33 AS col2, + CAST( - 37 AS SIGNED ) AS col2
----
-726
-37

skipif mysql # not compatible
query II rowsort label-821
SELECT + - 22 * 33 AS col2, + CAST ( - 37 AS INTEGER ) AS col2
----
-726
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT DISTINCT + - SUM( ALL - 6 ) * 90 * - - 63 AS col2
----
34020

skipif mysql # not compatible
query I rowsort label-822
SELECT DISTINCT + - SUM ( ALL - 6 ) * 90 * - - 63 AS col2
----
34020

query I rowsort
SELECT ALL + + 12 AS col1
----
12

query I rowsort
SELECT - - 61 * + 71 AS col2
----
4331

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT ALL + MIN( + - 10 ) * + ( - 83 )
----
830

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL + MIN ( + - 10 ) * + ( - 83 )
----
830

query I rowsort
SELECT DISTINCT - NULLIF ( 7, + 88 * - + 18 + + 9 * - 59 )
----
-7

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

skipif mysql # not compatible
query I rowsort label-827
SELECT - 20 * COUNT ( * )
----
-20

query I rowsort
SELECT + 26 * - - ( - 20 ) AS col0
----
-520

query I rowsort
SELECT - 97 * - + 7 AS col0
----
679

query I rowsort
SELECT - ( - + 5 ) col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-831
SELECT + 79 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT + 79 / + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 90 * + + 83
----
-7470

query I rowsort
SELECT ALL 2 * 53
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-834
SELECT DISTINCT - 48 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT - 48 / 81
----
0

query I rowsort
SELECT - COALESCE ( 67, - 0 )
----
-67

query I rowsort
SELECT ALL - 30 + + - 28 + - 9
----
-67

query I rowsort
SELECT DISTINCT + 75 + + + 18 AS col1
----
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT ALL COUNT( * ) + + - 40 + - 70 - - + 38 * + 5 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL COUNT ( * ) + + - 40 + - 70 - - + 38 * + 5 AS col1
----
81

query I rowsort
SELECT + ( 25 ) * 32 + + 12 AS col2
----
812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-841
SELECT ALL 42 + - COALESCE ( + 79, - 47 * + 58 + + 23 + - 14, + ( - 97 ) * + ( 26 ) * - COUNT( * ) DIV - 26 * + + 26 * + 21 )
----
-37

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL 42 + - COALESCE ( + 79, - 47 * + 58 + + 23 + - 14, + ( - 97 ) * + ( 26 ) * - COUNT ( * ) / - 26 * + + 26 * + 21 )
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-842
SELECT 44 AS col0, + 51 * + - COALESCE ( - - 79, - 12 ) + + MIN( ( 97 ) ) * - 70 col1
----
44
-10819

skipif mysql # not compatible
query II rowsort label-842
SELECT 44 AS col0, + 51 * + - COALESCE ( - - 79, - 12 ) + + MIN ( ( 97 ) ) * - 70 col1
----
44
-10819

query I rowsort
SELECT - 7 + + 76 - 63 AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-844
SELECT + 24 + - COUNT( * ) + + 39 + 22 * - 77 + + 10 * + 32 * + COUNT( 6 ) AS col2, COUNT( * ) AS col0
----
-1312
1

skipif mysql # not compatible
query II rowsort label-844
SELECT + 24 + - COUNT ( * ) + + 39 + 22 * - 77 + + 10 * + 32 * + COUNT ( 6 ) AS col2, COUNT ( * ) AS col0
----
-1312
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT ALL - + MIN( ALL + 54 ) * 79 AS col2
----
-4266

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL - + MIN ( ALL + 54 ) * 79 AS col2
----
-4266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-848
SELECT DISTINCT - 38 DIV - + 62 - - + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT - 38 / - + 62 - - + COUNT ( * ) col0
----
1

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

query II rowsort
SELECT + + 75 AS col2, 21 AS col0
----
75
21

query I rowsort
SELECT + + 6 * - + COALESCE ( + 43, 86, - COALESCE ( - 17, 79 ) )
----
-258

query II rowsort
SELECT 70 AS col0, 85 * - 70
----
70
-5950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-853
SELECT - COUNT( * ) * ( - + COUNT( * ) ) * 42 * 21 - COUNT( - 25 ) DIV - + 65 + + - 30 DIV + 29 col0
----
881

skipif mysql # not compatible
query I rowsort label-853
SELECT - COUNT ( * ) * ( - + COUNT ( * ) ) * 42 * 21 - COUNT ( - 25 ) / - + 65 + + - 30 / + 29 col0
----
881

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-855
SELECT 77, + ( - 25 ) + + + ( - + CAST( NULL AS SIGNED ) ) col0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-855
SELECT 77, + ( - 25 ) + + + ( - + CAST ( NULL AS INTEGER ) ) col0
----
77
NULL

query I rowsort
SELECT + + 56 + - 87 AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT + 39 * 1 + - CAST( NULL AS SIGNED ) - + 98 * AVG ( + 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT + 39 * 1 + - CAST ( NULL AS INTEGER ) - + 98 * AVG ( + 42 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-858
SELECT + - 82 + - CAST( 83 AS SIGNED )
----
-165

skipif mysql # not compatible
query I rowsort label-858
SELECT + - 82 + - CAST ( 83 AS INTEGER )
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-859
SELECT ALL + - 83 AS col1, - MAX( DISTINCT + + 36 ) + - + MIN( DISTINCT + 65 ) + 54 + + + 48 + - CAST( - 12 AS SIGNED ) * 58
----
-83
697

skipif mysql # not compatible
query II rowsort label-859
SELECT ALL + - 83 AS col1, - MAX ( DISTINCT + + 36 ) + - + MIN ( DISTINCT + 65 ) + 54 + + + 48 + - CAST ( - 12 AS INTEGER ) * 58
----
-83
697

query I rowsort
SELECT NULLIF ( ( + ( + 95 ) ), 10 ) AS col2
----
95

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

query II rowsort
SELECT ALL - 80, 85 AS col0
----
-80
85

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-865
SELECT - CAST( - + COUNT( * ) AS SIGNED ) + - - 62 * + + 74
----
4589

skipif mysql # not compatible
query I rowsort label-865
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) + - - 62 * + + 74
----
4589

query I rowsort
SELECT DISTINCT - - 67 AS col2
----
67

query I rowsort
SELECT + 41 + 68 - + - 31
----
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-868
SELECT ALL + 61 + + MAX( - 12 ) DIV - 89 AS col0, + COUNT( * ) + + SUM( - + 33 ) AS col0
----
61
-32

skipif mysql # not compatible
query II rowsort label-868
SELECT ALL + 61 + + MAX ( - 12 ) / - 89 AS col0, + COUNT ( * ) + + SUM ( - + 33 ) AS col0
----
61
-32

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-870
SELECT 72 - + COALESCE ( 35, + 80 ) AS col0, + 4 * - ( + COUNT( * ) ) * - 57 - - - COUNT( * )
----
37
227

skipif mysql # not compatible
query II rowsort label-870
SELECT 72 - + COALESCE ( 35, + 80 ) AS col0, + 4 * - ( + COUNT ( * ) ) * - 57 - - - COUNT ( * )
----
37
227

query I rowsort
SELECT ALL - 34 * 26
----
-884

query I rowsort
SELECT ALL - ( - 88 ) + + 89 - 61 * - 13 AS col1
----
970

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT DISTINCT - COUNT( * ) + + 61 * + 38 AS col1
----
2317

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT - COUNT ( * ) + + 61 * + 38 AS col1
----
2317

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

onlyif mysql # DIV for integer division: 
query I rowsort label-875
SELECT 46 DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-875
SELECT 46 / 85 AS col0
----
0

query II rowsort
SELECT 81 + - 19, 2 + + - CASE + 34 WHEN + 60 THEN - 24 + - 29 + + + 15 + + - ( - 9 ) + - - 85 * - 76 END + - - 52 col1
----
62
NULL

query I rowsort
SELECT 0 + - 90
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-878
SELECT ALL - COUNT( + - 49 ) + + 40 + + + 34 AS col0, 57 + - + 18 + - NULLIF ( + COUNT( * ), + 43 ) * + 5 * 85 + - 21 * 26
----
73
-932

skipif mysql # not compatible
query II rowsort label-878
SELECT ALL - COUNT ( + - 49 ) + + 40 + + + 34 AS col0, 57 + - + 18 + - NULLIF ( + COUNT ( * ), + 43 ) * + 5 * 85 + - 21 * 26
----
73
-932

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

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

query I rowsort
SELECT 7 + 14 + 37 AS col1
----
58

query I rowsort
SELECT 96 * - - 55
----
5280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-882
SELECT ALL ( - + 74 ) * - MIN( + CAST( NULL AS SIGNED ) ) AS col0, - 40
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-882
SELECT ALL ( - + 74 ) * - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0, - 40
----
NULL
-40

query I rowsort
SELECT + 34 + - 12 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-884
SELECT CASE + 97 WHEN + 5 THEN NULL WHEN + 86 + + - 83 THEN NULL ELSE - 54 END + + 39 DIV + 54 + - CASE + - 0 WHEN + - CASE 50 WHEN - MIN( ALL + 70 ) THEN + 29 + - + 51 + - - 90 * - 38 ELSE + 1 * - 14 + + 71 END - - 86 THEN 61 WHEN - 71 + - COUNT( * ) THEN + CASE + 1 WHEN - ( + 64 ) THEN NULL WHEN + - 80 * - CAST( NULL AS SIGNED ) + 47 THEN NULL ELSE COUNT( * ) END * + 90 ELSE + 52 END AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-884
SELECT CASE + 97 WHEN + 5 THEN NULL WHEN + 86 + + - 83 THEN NULL ELSE - 54 END + + 39 / + 54 + - CASE + - 0 WHEN + - CASE 50 WHEN - MIN ( ALL + 70 ) THEN + 29 + - + 51 + - - 90 * - 38 ELSE + 1 * - 14 + + 71 END - - 86 THEN 61 WHEN - 71 + - COUNT ( * ) THEN + CASE + 1 WHEN - ( + 64 ) THEN NULL WHEN + - 80 * - CAST ( NULL AS INTEGER ) + 47 THEN NULL ELSE COUNT ( * ) END * + 90 ELSE + 52 END AS col2
----
-106

query I rowsort
SELECT DISTINCT 22 * + + 9
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT MIN( + + 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-886
SELECT MIN ( + + 9 ) AS col1
----
9

query I rowsort
SELECT 35 * + - 32 * - 81 AS col2
----
90720

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT DISTINCT - 33 - ( - + SUM( + ( - 95 ) ) )
----
-128

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT - 33 - ( - + SUM ( + ( - 95 ) ) )
----
-128

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-890
SELECT COUNT( * ) * + 73 + 62 DIV + - 64 AS col1, - 9 AS col1
----
73
-9

skipif mysql # not compatible
query II rowsort label-890
SELECT COUNT ( * ) * + 73 + 62 / + - 64 AS col1, - 9 AS col1
----
73
-9

query I rowsort
SELECT ALL - + 6 AS col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-892
SELECT + CASE + 70 WHEN - 23 * - + 24 + + COUNT( * ) THEN - 70 + + - CASE - - CASE + 96 WHEN - - CAST( NULL AS SIGNED ) * - 48 / 48 THEN - 3 / ( + + 13 ) * COALESCE ( 4, CASE 76 WHEN 46 THEN + 60 WHEN 97 * - 39 - + + 43 - + 17 * 35 * - 29 THEN - ( - 64 ) + - 88 ELSE NULL END, COUNT( * ) ) / - 69 * - 30 END WHEN - - 30 + 25 THEN + 81 ELSE + 44 * + 23 + - NULLIF ( NULLIF ( - 65, + 81 ) - COALESCE ( + 16 + - COUNT( 2 + + NULLIF ( NULLIF ( 40, + 8 ), - 74 ) ), + 96, - ( - 33 ) * - 67 ), 56 ) END - 50 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT + CASE + 70 WHEN - 23 * - + 24 + + COUNT ( * ) THEN - 70 + + - CASE - - CASE + 96 WHEN - - CAST ( NULL AS INTEGER ) * - 48 / 48 THEN - 3 / ( + + 13 ) * COALESCE ( 4, CASE 76 WHEN 46 THEN + 60 WHEN 97 * - 39 - + + 43 - + 17 * 35 * - 29 THEN - ( - 64 ) + - 88 ELSE NULL END, COUNT ( * ) ) / - 69 * - 30 END WHEN - - 30 + 25 THEN + 81 ELSE + 44 * + 23 + - NULLIF ( NULLIF ( - 65, + 81 ) - COALESCE ( + 16 + - COUNT ( 2 + + NULLIF ( NULLIF ( 40, + 8 ), - 74 ) ), + 96, - ( - 33 ) * - 67 ), 56 ) END - 50 END AS col1
----
NULL

query I rowsort
SELECT ALL 56 + 31 AS col1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-894
SELECT - 0 DIV + + 26 * + - COUNT( * ) * - 53 + + COUNT( * ) + - - 51 DIV 77 - + 89 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-894
SELECT - 0 / + + 26 * + - COUNT ( * ) * - 53 + + COUNT ( * ) + - - 51 / 77 - + 89 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT - 39 * + 23 * + COUNT( * ) AS col0
----
-897

skipif mysql # not compatible
query I rowsort label-895
SELECT - 39 * + 23 * + COUNT ( * ) AS col0
----
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT DISTINCT COUNT( * ) + 15 * + 68
----
1021

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT COUNT ( * ) + 15 * + 68
----
1021

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT DISTINCT 32 + + SUM( ALL - 29 )
----
3

skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT 32 + + SUM ( ALL - 29 )
----
3

query I rowsort
SELECT ALL - 30 + 57
----
27

query II rowsort
SELECT ALL 67 + - + 56 * - 42, - 73 * + - 38 col0
----
2419
2774

onlyif mysql # aggregate syntax: 
query II rowsort label-902
SELECT 12 AS col0, COUNT( * ) + 61 + + 89 AS col0
----
12
151

skipif mysql # not compatible
query II rowsort label-902
SELECT 12 AS col0, COUNT ( * ) + 61 + + 89 AS col0
----
12
151

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT - MIN( - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-903
SELECT - MIN ( - 57 )
----
57

query II rowsort
SELECT 93 col1, 40 col2
----
93
40

query I rowsort
SELECT DISTINCT - 86 * - + 7 * + 74
----
44548

query I rowsort
SELECT 0 * 23 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-907
SELECT 6 DIV 38 DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-907
SELECT 6 / 38 / + 18
----
0

query I rowsort
SELECT ALL - 95 * - - 76 AS col0
----
-7220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-909
SELECT ALL MIN( - CAST( - - ( - - 76 ) AS SIGNED ) ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL MIN ( - CAST ( - - ( - - 76 ) AS INTEGER ) ) col2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-910
SELECT 25 AS col1, + CAST( 19 AS SIGNED )
----
25
19

skipif mysql # not compatible
query II rowsort label-910
SELECT 25 AS col1, + CAST ( 19 AS INTEGER )
----
25
19

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

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

query I rowsort
SELECT - 98 + - 65 AS col0
----
-163

query II rowsort
SELECT DISTINCT 14 col2, 79 AS col1
----
14
79

query II rowsort
SELECT - ( + - 20 ) + - 47 AS col0, 45 AS col0
----
-27
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-915
SELECT DISTINCT + + 85 / COUNT( + ( + 68 ) ) / 24 / CAST( NULL AS SIGNED ) + + MIN( CAST( - 79 AS SIGNED ) ) * + 1 / - AVG ( + 57 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT + + 85 / COUNT ( + ( + 68 ) ) / 24 / CAST ( NULL AS INTEGER ) + + MIN ( CAST ( - 79 AS INTEGER ) ) * + 1 / - AVG ( + 57 ) AS col2
----
NULL

query I rowsort
SELECT + + 6 AS col1
----
6

query I rowsort
SELECT + - 99 + - - 19
----
-80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-919
SELECT ALL - 86 * + - CAST( + + COUNT( * ) AS SIGNED ) + + 36 + + 94 + + 92
----
308

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL - 86 * + - CAST ( + + COUNT ( * ) AS INTEGER ) + + 36 + + 94 + + 92
----
308

query I rowsort
SELECT - 28 + + + 79
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-921
SELECT ALL + COUNT( * ) * - - 92 * ( - COALESCE ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), + 83 + - 59 ) ) + - CAST( - 66 AS SIGNED ) AS col2, + MAX( ALL 86 ) + + + NULLIF ( + COUNT( * ), - 75 )
----
-2142
87

skipif mysql # not compatible
query II rowsort label-921
SELECT ALL + COUNT ( * ) * - - 92 * ( - COALESCE ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), + 83 + - 59 ) ) + - CAST ( - 66 AS INTEGER ) AS col2, + MAX ( ALL 86 ) + + + NULLIF ( + COUNT ( * ), - 75 )
----
-2142
87

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

query I rowsort
SELECT + COALESCE ( + 40, + 48 + + NULLIF ( + 74, - NULLIF ( 55, + 42 ) ) ) AS col2
----
40

query II rowsort
SELECT ALL + 10, 65 + - 28 col0
----
10
37

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT DISTINCT 84 DIV 69
----
1

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT 84 / 69
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT SUM( ALL + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-926
SELECT SUM ( ALL + 15 ) AS col2
----
15

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-928
SELECT ALL 35 * - 66 + - 3 * 49 * 62 DIV 59 AS col0, 96 AS col2, - + NULLIF ( CASE 32 WHEN - 39 THEN + ( - - 55 ) ELSE NULL END, + + 27 - COUNT( * ) ) DIV - 92 + - 99 * - - CASE + 74 WHEN + 86 + + 40 * + - COUNT( * ) * + + 4 THEN 18 END
----
-2464
96
NULL

skipif mysql # not compatible
query III rowsort label-928
SELECT ALL 35 * - 66 + - 3 * 49 * 62 / 59 AS col0, 96 AS col2, - + NULLIF ( CASE 32 WHEN - 39 THEN + ( - - 55 ) ELSE NULL END, + + 27 - COUNT ( * ) ) / - 92 + - 99 * - - CASE + 74 WHEN + 86 + + 40 * + - COUNT ( * ) * + + 4 THEN 18 END
----
-2464
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT + COUNT( * ) + + CASE 34 WHEN 65 * + + 29 * + - COUNT( * ) / + + 65 THEN - - 36 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT + COUNT ( * ) + + CASE 34 WHEN 65 * + + 29 * + - COUNT ( * ) / + + 65 THEN - - 36 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-930
SELECT 99 * + + 19 + + + ( 68 ) DIV + + 35 AS col1
----
1882

skipif mysql # not compatible
query I rowsort label-930
SELECT 99 * + + 19 + + + ( 68 ) / + + 35 AS col1
----
1882

query I rowsort
SELECT - 7 - + 7 * + 13 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT DISTINCT 13 * + COUNT( * ) * - 96
----
-1248

skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT 13 * + COUNT ( * ) * - 96
----
-1248

query II rowsort
SELECT ALL 73, ( + 84 ) - 57 col0
----
73
27

query I rowsort
SELECT + 60 * + 71 + + 5 AS col0
----
4265

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-937
SELECT ALL COUNT( * ) col2, + COALESCE ( - + 20, COUNT( * ) ) + 69 - + 20 + - ( - - 24 )
----
1
5

skipif mysql # not compatible
query II rowsort label-937
SELECT ALL COUNT ( * ) col2, + COALESCE ( - + 20, COUNT ( * ) ) + 69 - + 20 + - ( - - 24 )
----
1
5

query I rowsort
SELECT DISTINCT 77 * 53 AS col2
----
4081

query I rowsort
SELECT + 47 + + - ( + - 29 ) AS col1
----
76

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

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

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

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

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

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

query II rowsort
SELECT - - 75 AS col1, - 86 * 35 AS col0
----
75
-3010

query I rowsort
SELECT - - 38 + + 47 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT ALL - ( MIN( DISTINCT 71 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL - ( MIN ( DISTINCT 71 ) )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-946
SELECT DISTINCT COUNT( * ) AS col1, + 72 col0
----
1
72

skipif mysql # not compatible
query II rowsort label-946
SELECT DISTINCT COUNT ( * ) AS col1, + 72 col0
----
1
72

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT - - 94 * - COUNT( * ) * 94 col2
----
-8836

skipif mysql # not compatible
query I rowsort label-947
SELECT - - 94 * - COUNT ( * ) * 94 col2
----
-8836

query I rowsort
SELECT ALL + 83 * 40
----
3320

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-949
SELECT - 32, + ( - ( - + COUNT( * ) ) ) DIV 89 col0
----
-32
0

skipif mysql # not compatible
query II rowsort label-949
SELECT - 32, + ( - ( - + COUNT ( * ) ) ) / 89 col0
----
-32
0

query I rowsort
SELECT DISTINCT - - 70 + 63 + + + 40
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT - MAX( ALL - + 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-951
SELECT - MAX ( ALL - + 5 ) AS col1
----
5

query II rowsort
SELECT + 10, - 68 AS col0
----
10
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-953
SELECT ALL + 96 DIV - 49 + 86 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL + 96 / - 49 + 86 AS col2
----
85

query I rowsort
SELECT 42 * - 6 + + 73 - 65 col1
----
-244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-955
SELECT + 44 AS col0, - SUM( DISTINCT ( 89 ) ) AS col2, + - CAST( MIN( 14 ) AS SIGNED ) AS col2
----
44
-89
-14

skipif mysql # not compatible
query III rowsort label-955
SELECT + 44 AS col0, - SUM ( DISTINCT ( 89 ) ) AS col2, + - CAST ( MIN ( 14 ) AS INTEGER ) AS col2
----
44
-89
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-956
SELECT - + 26 + - + NULLIF ( + - CAST( NULL AS SIGNED ), + - 53 ) + - 2 * - CAST( - COUNT( * ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT - + 26 + - + NULLIF ( + - CAST ( NULL AS INTEGER ), + - 53 ) + - 2 * - CAST ( - COUNT ( * ) AS REAL )
----
NULL

query I rowsort
SELECT - + 67 * + 16
----
-1072

query I rowsort
SELECT + + 62 * - 70 + - 39
----
-4379

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT + - ( - + NULLIF ( + - MAX( - 29 ), - - 23 ) )
----
29

skipif mysql # not compatible
query I rowsort label-959
SELECT + - ( - + NULLIF ( + - MAX ( - 29 ), - - 23 ) )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-960
SELECT ALL 32 DIV 40 + + 94 - 50 + + - 26 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL 32 / 40 + + 94 - 50 + + - 26 AS col0
----
18

query I rowsort
SELECT - 48 * 38
----
-1824

query I rowsort
SELECT DISTINCT + 14 col2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-963
SELECT ALL 56 DIV 20 + - + 4 + - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL 56 / 20 + - + 4 + - - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL 31 * + 42 * - 44 - - ( - NULLIF ( 44, - + 75 ) ) + + 97 col2
----
-57235

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT - SUM( + 59 ) * 27 * + + 15
----
-23895

skipif mysql # not compatible
query I rowsort label-965
SELECT - SUM ( + 59 ) * 27 * + + 15
----
-23895

query II rowsort
SELECT + ( - 21 ), + 31 AS col2
----
-21
31

query I rowsort
SELECT - 93 * - 22 + 7 - + 14 AS col2
----
2039

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

query I rowsort
SELECT ALL 68 * 31 - + 28 AS col1
----
2080

query I rowsort
SELECT + ( - - 48 ) * ( + - 97 )
----
-4656

onlyif mysql # aggregate syntax: 
query II rowsort label-971
SELECT - ( 71 ) * 90 AS col0, - 55 * - COUNT( * )
----
-6390
55

skipif mysql # not compatible
query II rowsort label-971
SELECT - ( 71 ) * 90 AS col0, - 55 * - COUNT ( * )
----
-6390
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-972
SELECT ALL COALESCE ( CAST( + 35 AS SIGNED ), ( + + 33 ) ) DIV 37 + + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL COALESCE ( CAST ( + 35 AS INTEGER ), ( + + 33 ) ) / 37 + + COUNT ( * ) col1
----
1

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

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

query I rowsort
SELECT NULLIF ( - 45, + - AVG ( - + 1 ) * COALESCE ( ( + 77 ), + + 58 ) ) AS col0
----
-45

query I rowsort
SELECT 68 * - 98 - + 73 + 38
----
-6699

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT + SUM( DISTINCT - 10 ) * + - 77 AS col0
----
770

skipif mysql # not compatible
query I rowsort label-976
SELECT + SUM ( DISTINCT - 10 ) * + - 77 AS col0
----
770

query II rowsort
SELECT + 88 * + 41 AS col0, - 7 + - 91
----
3608
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT ALL - 4 * + 73 + COUNT( * )
----
-291

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL - 4 * + 73 + COUNT ( * )
----
-291

query I rowsort
SELECT DISTINCT 15 + 24 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT DISTINCT + 34 * - + 57 * COUNT( * )
----
-1938

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT + 34 * - + 57 * COUNT ( * )
----
-1938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-981
SELECT + MAX( DISTINCT + 78 ) / + 65 * + CAST( NULL AS SIGNED ) * - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT + MAX ( DISTINCT + 78 ) / + 65 * + CAST ( NULL AS INTEGER ) * - 14 AS col0
----
NULL

query I rowsort
SELECT ALL 33 + - + ( ( - CASE - 11 WHEN + ( + - 72 ) THEN 96 WHEN - + 86 * 87 THEN NULL END ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-983
SELECT - 3 - 27 AS col2, + ( - 4 ) DIV - ( - 44 ) - - - 71 + - 29 + + COALESCE ( - 59, 66, 88, SUM( - - 64 ) ) AS col0
----
-30
-159

skipif mysql # not compatible
query II rowsort label-983
SELECT - 3 - 27 AS col2, + ( - 4 ) / - ( - 44 ) - - - 71 + - 29 + + COALESCE ( - 59, 66, 88, SUM ( - - 64 ) ) AS col0
----
-30
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-984
SELECT 13 - - NULLIF ( - 82, MAX( 36 ) ), - 63 * + CAST( NULL AS SIGNED ) * + - CASE - 50 WHEN + - CAST( + 50 AS SIGNED ) THEN + + 10 ELSE 86 + - 50 END col2
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-984
SELECT 13 - - NULLIF ( - 82, MAX ( 36 ) ), - 63 * + CAST ( NULL AS INTEGER ) * + - CASE - 50 WHEN + - CAST ( + 50 AS INTEGER ) THEN + + 10 ELSE 86 + - 50 END col2
----
-69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - 60 + + - COUNT( * ) * 83 + + - 34 + 25 + - 16 * COUNT( ALL + - 16 ) + + + 51
----
-117

skipif mysql # not compatible
query I rowsort label-985
SELECT - 60 + + - COUNT ( * ) * 83 + + - 34 + 25 + - 16 * COUNT ( ALL + - 16 ) + + + 51
----
-117

query I rowsort
SELECT ALL - 52 + 80 * + 37
----
2908

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-988
SELECT COUNT( * ) + 56 DIV + 87 * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-988
SELECT COUNT ( * ) + 56 / + 87 * + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT + - 5 * - 53 AS col1
----
265

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-990
SELECT ALL - 16 + 57 + + CAST( NULL AS DECIMAL ) * - + 27 * 53 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL - 16 + 57 + + CAST ( NULL AS REAL ) * - + 27 * 53 col2
----
NULL

query I rowsort
SELECT ALL - - 92 + + 32 + - + 54 AS col1
----
70

query I rowsort
SELECT DISTINCT + - NULLIF ( + 70, 4 * + 21 ) * - 88 AS col1
----
6160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-993
SELECT DISTINCT 7 * - 21 AS col0, NULLIF ( - COUNT( DISTINCT - ( + 47 ) ), - + MIN( DISTINCT - 5 ) * + - 23 ) * NULLIF ( + COALESCE ( + 37, COUNT( * ) DIV 95 * + - 30, + 76 + - 50 ), + ( + + 97 ) ) + - 36 + - 95 * - + 26 + + 57
----
-147
2454

skipif mysql # not compatible
query II rowsort label-993
SELECT DISTINCT 7 * - 21 AS col0, NULLIF ( - COUNT ( DISTINCT - ( + 47 ) ), - + MIN ( DISTINCT - 5 ) * + - 23 ) * NULLIF ( + COALESCE ( + 37, COUNT ( * ) / 95 * + - 30, + 76 + - 50 ), + ( + + 97 ) ) + - 36 + - 95 * - + 26 + + 57
----
-147
2454

query I rowsort
SELECT DISTINCT + 98 * + - 19
----
-1862

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-995
SELECT ALL - 44 - - + 46 * 77, + 2 * + ( CAST( 5 AS SIGNED ) ) AS col1
----
3498
10

skipif mysql # not compatible
query II rowsort label-995
SELECT ALL - 44 - - + 46 * 77, + 2 * + ( CAST ( 5 AS INTEGER ) ) AS col1
----
3498
10

query II rowsort
SELECT + 49 AS col1, + ( + - 83 ) + + - 46 AS col1
----
49
-129

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

onlyif mysql # DIV for integer division: 
query II rowsort label-998
SELECT ALL - 36 col2, + 78 DIV + 58 AS col1
----
-36
1

skipif mysql # not compatible
query II rowsort label-998
SELECT ALL - 36 col2, + 78 / + 58 AS col1
----
-36
1

query I rowsort
SELECT 74 * + 73 AS col0
----
5402

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1000
SELECT ALL - 10 AS col0, + 39 * - 47 + + + ( 0 ) * 85 + CAST( NULL AS DECIMAL )
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-1000
SELECT ALL - 10 AS col0, + 39 * - 47 + + + ( 0 ) * 85 + CAST ( NULL AS REAL )
----
-10
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1001
SELECT DISTINCT - 53 DIV - + ( - 21 ) AS col0, 7 + + 19
----
-2
26

skipif mysql # not compatible
query II rowsort label-1001
SELECT DISTINCT - 53 / - + ( - 21 ) AS col0, 7 + + 19
----
-2
26

query I rowsort
SELECT 90 * - 42 AS col1
----
-3780

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT ALL - 72 DIV - 12
----
6

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL - 72 / - 12
----
6

query I rowsort
SELECT 0 * + 43 col1
----
0

query I rowsort
SELECT ALL - NULLIF ( + 80, - - NULLIF ( - 75, + 11 ) ) AS col1
----
-80

query I rowsort
SELECT 87 + - + 37
----
50

query I rowsort
SELECT 90 * - - 13 AS col1
----
1170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1008
SELECT NULLIF ( - + ( - + 98 ), + 55 + + 62 * + - 43 ) * + 67 + NULLIF ( - 81, - 37 * + + AVG ( ALL + - 52 ) / + CAST( NULL AS SIGNED ) ) + + 54
----
6539

skipif mysql # not compatible
query I rowsort label-1008
SELECT NULLIF ( - + ( - + 98 ), + 55 + + 62 * + - 43 ) * + 67 + NULLIF ( - 81, - 37 * + + AVG ( ALL + - 52 ) / + CAST ( NULL AS INTEGER ) ) + + 54
----
6539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1009
SELECT 96 + - CAST( + 23 AS SIGNED ) + + 55
----
128

skipif mysql # not compatible
query I rowsort label-1009
SELECT 96 + - CAST ( + 23 AS INTEGER ) + + 55
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-1010
SELECT DISTINCT + 64 * + COALESCE ( + MAX( DISTINCT 56 ), ( - 14 ) ) * - SUM( ALL + - ( - 11 ) ) + + 51 + + 29 * + + 44 * 65 + - 77 + - - 56 * ( CASE + + 3 WHEN - + 11 / SUM( 60 ) + + - 50 THEN - - COUNT( * ) WHEN - - 22 + - + 22 * + ( + - 51 ) * - - 72 THEN NULL END ), 50 AS col1
----
NULL
50

skipif mysql # not compatible
query II rowsort label-1010
SELECT DISTINCT + 64 * + COALESCE ( + MAX ( DISTINCT 56 ), ( - 14 ) ) * - SUM ( ALL + - ( - 11 ) ) + + 51 + + 29 * + + 44 * 65 + - 77 + - - 56 * ( CASE + + 3 WHEN - + 11 / SUM ( 60 ) + + - 50 THEN - - COUNT ( * ) WHEN - - 22 + - + 22 * + ( + - 51 ) * - - 72 THEN NULL END ), 50 AS col1
----
NULL
50

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1012
SELECT 73 * COALESCE ( + - 99, 4, - + 77 + + MIN( 67 ) * + - COUNT( ALL - + NULLIF ( - 30, + CASE - ( 48 ) WHEN + + 20 * 46 THEN + 69 END ) ) DIV - 77 ) + ( 71 ) AS col2
----
-7156

skipif mysql # not compatible
query I rowsort label-1012
SELECT 73 * COALESCE ( + - 99, 4, - + 77 + + MIN ( 67 ) * + - COUNT ( ALL - + NULLIF ( - 30, + CASE - ( 48 ) WHEN + + 20 * 46 THEN + 69 END ) ) / - 77 ) + ( 71 ) AS col2
----
-7156

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT COUNT( * ) + - NULLIF ( - + 43, + 39 - COUNT( * ) ) + - 67 + 51 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-1013
SELECT COUNT ( * ) + - NULLIF ( - + 43, + 39 - COUNT ( * ) ) + - 67 + 51 AS col2
----
28

query I rowsort
SELECT ALL - 47 + + 20 + 93
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT COUNT( * ) + - 42 + - NULLIF ( 66, + + 55 ) AS col2
----
-107

skipif mysql # not compatible
query I rowsort label-1015
SELECT COUNT ( * ) + - 42 + - NULLIF ( 66, + + 55 ) AS col2
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1016
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, - 64 * + 69 + 48 AS col0
----
NULL
-4368

skipif mysql # not compatible
query II rowsort label-1016
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - 64 * + 69 + 48 AS col0
----
NULL
-4368

query I rowsort
SELECT DISTINCT + 14 + 57 + 53 + - 57 + - 25 * + 53 + + + 12
----
-1246

query I rowsort
SELECT ALL - 56 + - 5
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT ALL + ( 6 ) + 0 + + + 32 + + 4 * 64 + + - COUNT( * )
----
293

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL + ( 6 ) + 0 + + + 32 + + 4 * 64 + + - COUNT ( * )
----
293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1020
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 47 AS col1
----
NULL

query II rowsort
SELECT - + 30 AS col0, - 86
----
-30
-86

query I rowsort
SELECT 74 + 67 AS col2
----
141

query I rowsort
SELECT + 67 * - 4
----
-268

query I rowsort
SELECT 5 * 4
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT ALL + 31 + SUM( 84 ) + ( - + 30 ) * - - MIN( DISTINCT - 56 )
----
1795

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL + 31 + SUM ( 84 ) + ( - + 30 ) * - - MIN ( DISTINCT - 56 )
----
1795

query I rowsort
SELECT ALL + 20 + - 38 AS col1
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1028
SELECT DISTINCT - SUM( - 32 ) DIV 2 - - COUNT( * ) + + + COUNT( * ) + - 83 * - - 91 + + - 42 * + 33 * - ( + 27 ) * - 11 col1
----
-419177

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT - SUM ( - 32 ) / 2 - - COUNT ( * ) + + + COUNT ( * ) + - 83 * - - 91 + + - 42 * + 33 * - ( + 27 ) * - 11 col1
----
-419177

query I rowsort
SELECT ALL 34 + 37
----
71

query I rowsort
SELECT ALL + 29 * 42 AS col0
----
1218

query I rowsort
SELECT ALL 78 * + - 89
----
-6942

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT ALL CASE + 1 WHEN 43 THEN 28 + - 19 * + 71 WHEN - COUNT( * ) * 7 + + 19 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL CASE + 1 WHEN 43 THEN 28 + - 19 * + 71 WHEN - COUNT ( * ) * 7 + + 19 THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT 63 * + 62
----
3906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1034
SELECT CAST( - MAX( DISTINCT + 3 ) AS SIGNED ), 40 * ( - 97 ) AS col0
----
-3
-3880

skipif mysql # not compatible
query II rowsort label-1034
SELECT CAST ( - MAX ( DISTINCT + 3 ) AS INTEGER ), 40 * ( - 97 ) AS col0
----
-3
-3880

query I rowsort
SELECT + 83 * + - 66
----
-5478

onlyif mysql # aggregate syntax: 
query II rowsort label-1036
SELECT 81 * - 63, COUNT( * ) * + SUM( DISTINCT - 40 ) * MAX( NULLIF ( 60, + 51 ) ) + + + COUNT( * ) + - + 91 - + - 31 + - 45 + 31 * - + 16 AS col0
----
-5103
-3000

skipif mysql # not compatible
query II rowsort label-1036
SELECT 81 * - 63, COUNT ( * ) * + SUM ( DISTINCT - 40 ) * MAX ( NULLIF ( 60, + 51 ) ) + + + COUNT ( * ) + - + 91 - + - 31 + - 45 + 31 * - + 16 AS col0
----
-5103
-3000

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT ALL - MIN( + + ( - 75 ) ) col0
----
75

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL - MIN ( + + ( - 75 ) ) col0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1038
SELECT + COUNT( DISTINCT - 95 ) col0, - 35 * 93
----
1
-3255

skipif mysql # not compatible
query II rowsort label-1038
SELECT + COUNT ( DISTINCT - 95 ) col0, - 35 * 93
----
1
-3255

query I rowsort
SELECT DISTINCT 19 * - - 97 col1
----
1843

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

query II rowsort
SELECT 6 + - 48 AS col1, + 59 * - + 59 * 84 + + - 47 * + 55
----
-42
-294989

onlyif mysql # aggregate syntax: 
query II rowsort label-1042
SELECT DISTINCT 54 * - 19 AS col1, + 77 + + COUNT( * ) - + 24 * - 2 AS col2
----
-1026
126

skipif mysql # not compatible
query II rowsort label-1042
SELECT DISTINCT 54 * - 19 AS col1, + 77 + + COUNT ( * ) - + 24 * - 2 AS col2
----
-1026
126

query II rowsort
SELECT 16 + + 33, 41 + + 25 AS col1
----
49
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1044
SELECT 90 DIV - ( ( 31 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-1044
SELECT 90 / - ( ( 31 ) )
----
-2

query I rowsort
SELECT 25 * - 35 AS col1
----
-875

onlyif mysql # aggregate syntax: 
query II rowsort label-1046
SELECT 96 * 6, + 13 * + 8 + + ( MIN( - + 83 ) ) AS col0
----
576
21

skipif mysql # not compatible
query II rowsort label-1046
SELECT 96 * 6, + 13 * + 8 + + ( MIN ( - + 83 ) ) AS col0
----
576
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1047
SELECT ALL - ( 46 ) + - + 93 + + CASE + ( 50 ) WHEN 36 / + CAST( - - 26 AS SIGNED ) + + 59 THEN + 16 WHEN + CAST( NULL AS SIGNED ) THEN - 39 + - + NULLIF ( + + ( 90 ), - 10 ) + + 43 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL - ( 46 ) + - + 93 + + CASE + ( 50 ) WHEN 36 / + CAST ( - - 26 AS INTEGER ) + + 59 THEN + 16 WHEN + CAST ( NULL AS INTEGER ) THEN - 39 + - + NULLIF ( + + ( 90 ), - 10 ) + + 43 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 23 + NULLIF ( - 18, - + 0 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT - COUNT( * ) - + + 3
----
-4

skipif mysql # not compatible
query I rowsort label-1049
SELECT - COUNT ( * ) - + + 3
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1050
SELECT - 93 * + - 9 - 96 + + 67 AS col1, CAST( NULL AS SIGNED ) * 59 + + 41 AS col1
----
808
NULL

skipif mysql # not compatible
query II rowsort label-1050
SELECT - 93 * + - 9 - 96 + + 67 AS col1, CAST ( NULL AS INTEGER ) * 59 + + 41 AS col1
----
808
NULL

query I rowsort
SELECT DISTINCT - + 72 * 6 AS col1
----
-432

query I rowsort
SELECT DISTINCT + - 59 - + 25 + - 8 * + - 36 AS col0
----
204

query I rowsort
SELECT + - 14 - 0 + 85 AS col1
----
71

query I rowsort
SELECT DISTINCT + COALESCE ( + ( 62 ), 28 )
----
62

query I rowsort
SELECT - + 44 + ( + 34 )
----
-10

query I rowsort
SELECT - 68 * ( - 23 ) AS col2
----
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT + 37 * COUNT( * ) col2
----
37

skipif mysql # not compatible
query I rowsort label-1057
SELECT + 37 * COUNT ( * ) col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1058
SELECT ALL 7 DIV - 20 * + + 59 + 77 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL 7 / - 20 * + + 59 + 77 AS col0
----
77

query I rowsort
SELECT - - 68 AS col2
----
68

query I rowsort
SELECT ALL - 72 * + ( 87 )
----
-6264

query II rowsort
SELECT 62, - 91 + + 31 AS col2
----
62
-60

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1063
SELECT ALL + 54 * - - CAST( - 87 AS SIGNED )
----
-4698

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL + 54 * - - CAST ( - 87 AS INTEGER )
----
-4698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1064
SELECT DISTINCT 78 * - CAST( NULL AS SIGNED ) * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT 78 * - CAST ( NULL AS INTEGER ) * 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT + 49 * - - COUNT( * ) * + + 93 AS col1
----
4557

skipif mysql # not compatible
query I rowsort label-1065
SELECT + 49 * - - COUNT ( * ) * + + 93 AS col1
----
4557

query I rowsort
SELECT + 7 + - - 40 AS col1
----
47

query I rowsort
SELECT - 19 * 68 AS col1
----
-1292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1068
SELECT + 25 * + 42 * NULLIF ( - + NULLIF ( CAST( NULL AS SIGNED ), + 23 ), - - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1068
SELECT + 25 * + 42 * NULLIF ( - + NULLIF ( CAST ( NULL AS INTEGER ), + 23 ), - - 94 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1069
SELECT - CASE - 50 WHEN - 5 * 78 THEN + CAST( - 68 AS SIGNED ) ELSE NULL END * 10 + - + 31 + - 23 * + 99 * - 82 - - 71 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1069
SELECT - CASE - 50 WHEN - 5 * 78 THEN + CAST ( - 68 AS INTEGER ) ELSE NULL END * 10 + - + 31 + - 23 * + 99 * - 82 - - 71 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT + COUNT( DISTINCT - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-1070
SELECT + COUNT ( DISTINCT - 86 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT + 55 * - CASE CAST( + + 43 AS SIGNED ) WHEN + 86 - + 63 THEN 37 * - 11 ELSE NULL END + + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-1071
SELECT + 55 * - CASE CAST ( + + 43 AS INTEGER ) WHEN + 86 - + 63 THEN 37 * - 11 ELSE NULL END + + - 18
----
NULL

query I rowsort
SELECT + COALESCE ( + 21, ( + 74 ), - - 39, + 3 )
----
21

query II rowsort
SELECT ( - COALESCE ( - 3, 91 * + + 80 ) ) AS col1, - 78 + 49
----
3
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1074
SELECT ALL + 10 * COUNT( * ) + + 50 AS col1, 72 DIV - 89
----
60
0

skipif mysql # not compatible
query II rowsort label-1074
SELECT ALL + 10 * COUNT ( * ) + + 50 AS col1, 72 / - 89
----
60
0

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

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

query I rowsort
SELECT DISTINCT 65 * - 54
----
-3510

query I rowsort
SELECT ALL 5 * 70 + - 83
----
267

query I rowsort
SELECT - 17 * - 8 + + - 31 col0
----
105

query I rowsort
SELECT + 22 + + 96
----
118

query II rowsort
SELECT + - 67, 24 AS col1
----
-67
24

query II rowsort
SELECT ALL + 55 AS col2, CASE + 53 WHEN 92 / + - 36 THEN + 51 END * + - 46 AS col1
----
55
NULL

query I rowsort
SELECT - + 53 - - - 62
----
-115

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT - + ( - 78 ) + + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1084
SELECT - + ( - 78 ) + + COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT ALL - NULLIF ( - 70, - + 28 - COUNT( DISTINCT - ( 85 ) ) * - COUNT( * ) * - - 49 + + + 73 )
----
70

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL - NULLIF ( - 70, - + 28 - COUNT ( DISTINCT - ( 85 ) ) * - COUNT ( * ) * - - 49 + + + 73 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1086
SELECT ALL + - 57 DIV - + MIN( - 7 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + - 57 / - + MIN ( - 7 ) AS col1
----
-8

query II rowsort
SELECT - 80 AS col2, + 89
----
-80
89

query I rowsort
SELECT - 99 + + 27 * + + 3 AS col1
----
-18

query I rowsort
SELECT ALL + 64 * + 97 - + 6 col0
----
6202

query I rowsort
SELECT + 38 * 78 AS col1
----
2964

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1091
SELECT - 12 + - - 45 * COUNT( * ) AS col1, - ( + 12 ) DIV - - 87 AS col2
----
33
0

skipif mysql # not compatible
query II rowsort label-1091
SELECT - 12 + - - 45 * COUNT ( * ) AS col1, - ( + 12 ) / - - 87 AS col2
----
33
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT DISTINCT MAX( ALL + - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT MAX ( ALL + - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT - - 77 * - - MAX( 86 )
----
6622

skipif mysql # not compatible
query I rowsort label-1093
SELECT - - 77 * - - MAX ( 86 )
----
6622

query I rowsort
SELECT DISTINCT - - 44 * 74
----
3256

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT DISTINCT - + 27 * + + SUM( + 58 )
----
-1566

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT - + 27 * + + SUM ( + 58 )
----
-1566

query II rowsort
SELECT DISTINCT - 13 col1, 23
----
-13
23

query I rowsort
SELECT ALL - 85 * - 93
----
7905

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT DISTINCT ( + + COUNT( + ( + ( + 2 ) ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT ( + + COUNT ( + ( + ( + 2 ) ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT - COUNT( * ) * 93 * 30
----
-2790

skipif mysql # not compatible
query I rowsort label-1099
SELECT - COUNT ( * ) * 93 * 30
----
-2790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1100
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) AS col0, + 36
----
1
36

skipif mysql # not compatible
query II rowsort label-1100
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) AS col0, + 36
----
1
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1101
SELECT - 57 AS col1, + NULLIF ( - + 58, + 53 ) * - ( - CAST( NULL AS SIGNED ) ) + 40 - + 59 AS col2
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-1101
SELECT - 57 AS col1, + NULLIF ( - + 58, + 53 ) * - ( - CAST ( NULL AS INTEGER ) ) + 40 - + 59 AS col2
----
-57
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1102
SELECT + 25 + CAST( - + 87 AS SIGNED ) + 14 * - + 49 AS col0
----
-748

skipif mysql # not compatible
query I rowsort label-1102
SELECT + 25 + CAST ( - + 87 AS INTEGER ) + 14 * - + 49 AS col0
----
-748

query I rowsort
SELECT DISTINCT + 40 + 54 + ( - - 9 ) * - CASE - + 84 WHEN 98 THEN + 38 + 31 * + 2 ELSE + 92 END AS col2
----
-734

query II rowsort
SELECT 25, - ( + 21 ) * 10 AS col1
----
25
-210

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1107
SELECT + ( ( - 38 ) ) * 72 DIV + 3 - + + COUNT( * )
----
-913

skipif mysql # not compatible
query I rowsort label-1107
SELECT + ( ( - 38 ) ) * 72 / + 3 - + + COUNT ( * )
----
-913

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

skipif mysql # not compatible
query II rowsort label-1108
SELECT 68 AS col1, COUNT ( * )
----
68
1

query II rowsort
SELECT DISTINCT - 95 + 1, 53 + + 61 AS col0
----
-94
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1110
SELECT 23 DIV - + 2 - + 36
----
-47

skipif mysql # not compatible
query I rowsort label-1110
SELECT 23 / - + 2 - + 36
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1111
SELECT DISTINCT + 32 DIV 53 * - ( + COUNT( ALL - + ( 76 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT + 32 / 53 * - ( + COUNT ( ALL - + ( 76 ) ) )
----
0

query I rowsort
SELECT ALL - 51 * 34
----
-1734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1113
SELECT 41 + ( + + 75 ) - + - 24 * + 19 * + - ( - + COUNT( DISTINCT + NULLIF ( 71, - 13 ) ) ) * + NULLIF ( + MAX( + 64 ), - - 68 * + 15 ) + - + ( + + ( 9 ) ) DIV + + 56 + - + 37 * + 29
----
28227

skipif mysql # not compatible
query I rowsort label-1113
SELECT 41 + ( + + 75 ) - + - 24 * + 19 * + - ( - + COUNT ( DISTINCT + NULLIF ( 71, - 13 ) ) ) * + NULLIF ( + MAX ( + 64 ), - - 68 * + 15 ) + - + ( + + ( 9 ) ) / + + 56 + - + 37 * + 29
----
28227

query I rowsort
SELECT DISTINCT - 83 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-1115
SELECT + 20 * - 97 AS col2, COUNT( * ) * + 84 - - + 71 AS col2
----
-1940
155

skipif mysql # not compatible
query II rowsort label-1115
SELECT + 20 * - 97 AS col2, COUNT ( * ) * + 84 - - + 71 AS col2
----
-1940
155

query I rowsort
SELECT 82 * - 35 * + + 61 + - 89 * - + 64 AS col0
----
-169374

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1118
SELECT DISTINCT - 41 col1, 87 + + - ( + 92 ) * + COUNT( * ) AS col1
----
-41
-5

skipif mysql # not compatible
query II rowsort label-1118
SELECT DISTINCT - 41 col1, 87 + + - ( + 92 ) * + COUNT ( * ) AS col1
----
-41
-5

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

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL 73 - 98 + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 77
----
-77

query I rowsort
SELECT DISTINCT - 74 - + 94 * 69
----
-6560

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

query I rowsort
SELECT 51 * + - 26
----
-1326

onlyif mysql # DIV for integer division: 
query II rowsort label-1124
SELECT - 47 col1, + 6 DIV + 25 AS col0
----
-47
0

skipif mysql # not compatible
query II rowsort label-1124
SELECT - 47 col1, + 6 / + 25 AS col0
----
-47
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1125
SELECT - COUNT( * ) AS col0, + 33 + + + 45
----
-1
78

skipif mysql # not compatible
query II rowsort label-1125
SELECT - COUNT ( * ) AS col0, + 33 + + + 45
----
-1
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT CASE 28 WHEN - - 34 * + + COUNT( * ) + 77 * + 7 THEN - 30 WHEN + COUNT( * ) + + - 74 THEN NULL ELSE NULL END - - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT CASE 28 WHEN - - 34 * + + COUNT ( * ) + 77 * + 7 THEN - 30 WHEN + COUNT ( * ) + + - 74 THEN NULL ELSE NULL END - - 53
----
NULL

query II rowsort
SELECT 61 AS col1, 94
----
61
94

query I rowsort
SELECT DISTINCT 28 * - 56
----
-1568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1130
SELECT ALL 81 AS col1, - 60 + + 83 + + 92 + 27 - - - 17 - + MIN( 28 ) * - ( - NULLIF ( - CAST( NULL AS SIGNED ), + ( CAST( NULL AS SIGNED ) ) + - + CAST( NULL AS SIGNED ) * + 48 * + 35 ) ) * CAST( NULL AS SIGNED ) + - SUM( ALL CAST( NULL AS DECIMAL ) ) AS col0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-1130
SELECT ALL 81 AS col1, - 60 + + 83 + + 92 + 27 - - - 17 - + MIN ( 28 ) * - ( - NULLIF ( - CAST ( NULL AS INTEGER ), + ( CAST ( NULL AS INTEGER ) ) + - + CAST ( NULL AS INTEGER ) * + 48 * + 35 ) ) * CAST ( NULL AS INTEGER ) + - SUM ( ALL CAST ( NULL AS REAL ) ) AS col0
----
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1131
SELECT DISTINCT CAST( - - 88 AS SIGNED ) col2
----
88

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT CAST ( - - 88 AS INTEGER ) col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1132
SELECT ALL - 54 + - - COALESCE ( + 40, 3 ) + + CASE - + ( - 41 ) WHEN 61 - + NULLIF ( - + 72, - CAST( - + 65 AS SIGNED ) ) THEN NULL WHEN - + 12 - 69 THEN NULL WHEN - 35 / + ( - 72 ) THEN + 9 * - 82 + - 31 ELSE NULL END + CAST( NULL AS SIGNED ) + - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL - 54 + - - COALESCE ( + 40, 3 ) + + CASE - + ( - 41 ) WHEN 61 - + NULLIF ( - + 72, - CAST ( - + 65 AS INTEGER ) ) THEN NULL WHEN - + 12 - 69 THEN NULL WHEN - 35 / + ( - 72 ) THEN + 9 * - 82 + - 31 ELSE NULL END + CAST ( NULL AS INTEGER ) + - 92 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT MIN( - 7 ) * + 72
----
-504

skipif mysql # not compatible
query I rowsort label-1134
SELECT MIN ( - 7 ) * + 72
----
-504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1135
SELECT CAST( COUNT( * ) AS SIGNED ) + 27 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1135
SELECT CAST ( COUNT ( * ) AS INTEGER ) + 27 AS col0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1136
SELECT 10 - - COUNT( * ), MAX( - - 26 ) AS col0
----
11
26

skipif mysql # not compatible
query II rowsort label-1136
SELECT 10 - - COUNT ( * ), MAX ( - - 26 ) AS col0
----
11
26

query I rowsort
SELECT DISTINCT - 9 + - 41 * - 9
----
360

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1138
SELECT 29 DIV - 37 AS col0, + COUNT( * ) * - 42 AS col2
----
0
-42

skipif mysql # not compatible
query II rowsort label-1138
SELECT 29 / - 37 AS col0, + COUNT ( * ) * - 42 AS col2
----
0
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-1139
SELECT ALL - 91 + + - COUNT( * ) - + 13 col1, 20 AS col0
----
-105
20

skipif mysql # not compatible
query II rowsort label-1139
SELECT ALL - 91 + + - COUNT ( * ) - + 13 col1, 20 AS col0
----
-105
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1140
SELECT DISTINCT + COALESCE ( NULLIF ( - 41, - + 44 - + 92 + - COUNT( * ) ), + CAST( + 18 AS SIGNED ), - 95, 13 + + + ( - - 70 ) ) * + 46
----
-1886

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT + COALESCE ( NULLIF ( - 41, - + 44 - + 92 + - COUNT ( * ) ), + CAST ( + 18 AS INTEGER ), - 95, 13 + + + ( - - 70 ) ) * + 46
----
-1886

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

query I rowsort
SELECT ALL + ( - 54 ) - + - 67 col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1143
SELECT 24 * + CAST( + 10 AS SIGNED )
----
240

skipif mysql # not compatible
query I rowsort label-1143
SELECT 24 * + CAST ( + 10 AS INTEGER )
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT COUNT( DISTINCT - ( 19 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1144
SELECT COUNT ( DISTINCT - ( 19 ) ) AS col0
----
1

query I rowsort
SELECT - 9 * - 19 + 19 + - COALESCE ( 52, - 69, - 52 ) + 4 AS col2
----
142

query I rowsort
SELECT DISTINCT + 74 * + 71
----
5254

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1147
SELECT ALL - + 90 DIV 74 col1, MIN( + 9 ) + 34 * + MAX( DISTINCT 25 ) AS col0
----
-1
859

skipif mysql # not compatible
query II rowsort label-1147
SELECT ALL - + 90 / 74 col1, MIN ( + 9 ) + 34 * + MAX ( DISTINCT 25 ) AS col0
----
-1
859

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT COUNT( * ) - - 3 * + - 60 * + 25
----
-4499

skipif mysql # not compatible
query I rowsort label-1148
SELECT COUNT ( * ) - - 3 * + - 60 * + 25
----
-4499

query I rowsort
SELECT DISTINCT - NULLIF ( + 81, - 77 )
----
-81

query I rowsort
SELECT ALL - + 15 * + 65 AS col0
----
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT COUNT( * ) * - - 35 + - - 28 - + 38 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1151
SELECT COUNT ( * ) * - - 35 + - - 28 - + 38 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT COUNT( + 86 ) + + 89
----
90

skipif mysql # not compatible
query I rowsort label-1152
SELECT COUNT ( + 86 ) + + 89
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT 84 + + 29 + + COALESCE ( + - COUNT( * ), - ( - ( + 48 ) ) + - 40 ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-1153
SELECT 84 + + 29 + + COALESCE ( + - COUNT ( * ), - ( - ( + 48 ) ) + - 40 ) AS col2
----
112

onlyif mysql # DIV for integer division: 
query II rowsort label-1154
SELECT + 95 DIV - 77 AS col1, + 43 AS col2
----
-1
43

skipif mysql # not compatible
query II rowsort label-1154
SELECT + 95 / - 77 AS col1, + 43 AS col2
----
-1
43

query II rowsort
SELECT 74 - - 41 col1, - 72 / + - CASE WHEN ( NULL ) >= NULL THEN - 54 ELSE NULL END
----
115
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT DISTINCT - - 73 + 32 + COALESCE ( + ( - 92 ), SUM( 7 ) ) AS col1, + 46 + - COUNT( * ) AS col2
----
13
45

skipif mysql # not compatible
query II rowsort label-1156
SELECT DISTINCT - - 73 + 32 + COALESCE ( + ( - 92 ), SUM ( 7 ) ) AS col1, + 46 + - COUNT ( * ) AS col2
----
13
45

query I rowsort
SELECT ALL - - 17 AS col2
----
17

query I rowsort
SELECT ALL - - 91 AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1159
SELECT DISTINCT - CASE + NULLIF ( + MIN( 76 ), + 53 + + + 38 * - 13 / - COUNT( * ) ) WHEN + COUNT( * ) / 93 * + - CAST( NULL AS SIGNED ) * - MAX( + 81 ) - - - 38 - + 5 THEN - + MAX( ALL + - 7 ) + - - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT - CASE + NULLIF ( + MIN ( 76 ), + 53 + + + 38 * - 13 / - COUNT ( * ) ) WHEN + COUNT ( * ) / 93 * + - CAST ( NULL AS INTEGER ) * - MAX ( + 81 ) - - - 38 - + 5 THEN - + MAX ( ALL + - 7 ) + - - 10 END
----
NULL

query I rowsort
SELECT ALL + 5 + + + 62 - + - 53 AS col1
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-1161
SELECT + 84 + + - COUNT( * ) AS col2, + ( 85 ) + - 33 AS col2
----
83
52

skipif mysql # not compatible
query II rowsort label-1161
SELECT + 84 + + - COUNT ( * ) AS col2, + ( 85 ) + - 33 AS col2
----
83
52

query I rowsort
SELECT ALL 58 + + + NULLIF ( + - 41, 81 * - 1 - ( 69 ) )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT DISTINCT SUM( DISTINCT + - 68 ) + + 30 + + 71 + + 84
----
117

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT SUM ( DISTINCT + - 68 ) + + 30 + + 71 + + 84
----
117

query I rowsort
SELECT - NULLIF ( + 99, + 56 )
----
-99

query I rowsort
SELECT DISTINCT 32 + - 51 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT - NULLIF ( + 59, + + 87 - + - ( + - MAX( + 50 ) ) )
----
-59

skipif mysql # not compatible
query I rowsort label-1166
SELECT - NULLIF ( + 59, + + 87 - + - ( + - MAX ( + 50 ) ) )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1167
SELECT - 61 + + MAX( - + ( + 95 ) ) + + + 0 + + 74 + - COUNT( * ) * CAST( NULL AS SIGNED ) + - 90 / + ( + + 56 ) * + 88 * + 9 - - 1 / - 86 * - - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1167
SELECT - 61 + + MAX ( - + ( + 95 ) ) + + + 0 + + 74 + - COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 90 / + ( + + 56 ) * + 88 * + 9 - - 1 / - 86 * - - 34 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1168
SELECT DISTINCT 37 * SUM( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT 37 * SUM ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 96 + + 92 * + 47 * - + 35 AS col2
----
-151244

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT ALL 54 + - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL 54 + - COUNT ( * )
----
53

query I rowsort
SELECT - NULLIF ( + 28, - 39 )
----
-28

query I rowsort
SELECT ALL - 60 - - + 23 AS col2
----
-37

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

skipif mysql # not compatible
query I rowsort label-1173
SELECT - 18 * COUNT ( * )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1174
SELECT ALL 24 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL 24 / + 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT - CASE 56 WHEN 25 THEN NULL ELSE ( 40 ) - - + COUNT( * ) END AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-1175
SELECT - CASE 56 WHEN 25 THEN NULL ELSE ( 40 ) - - + COUNT ( * ) END AS col1
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-1176
SELECT - COUNT( * ) + + - COUNT( + 28 ), 3 AS col2
----
-2
3

skipif mysql # not compatible
query II rowsort label-1176
SELECT - COUNT ( * ) + + - COUNT ( + 28 ), 3 AS col2
----
-2
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1178
SELECT ALL - ( + 85 ) - COUNT( + + CAST( - 50 AS DECIMAL ) ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL - ( + 85 ) - COUNT ( + + CAST ( - 50 AS REAL ) ) AS col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-1179
SELECT + 82 DIV ( - + 76 ) * - 36 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1179
SELECT + 82 / ( - + 76 ) * - 36 AS col2
----
36

query I rowsort
SELECT - 88 * - + 42
----
3696

query I rowsort
SELECT ALL + 88 * - 57 AS col0
----
-5016

onlyif mysql # aggregate syntax: 
query II rowsort label-1182
SELECT ( COUNT( ALL 44 ) ) AS col1, COUNT( * ) + - + CASE + COUNT( DISTINCT + - 78 ) WHEN 52 * - - 60 THEN NULL WHEN 88 THEN - 0 * 88 ELSE NULL END col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1182
SELECT ( COUNT ( ALL 44 ) ) AS col1, COUNT ( * ) + - + CASE + COUNT ( DISTINCT + - 78 ) WHEN 52 * - - 60 THEN NULL WHEN 88 THEN - 0 * 88 ELSE NULL END col0
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1183
SELECT ALL - 2 * 60 * + 68 - + + 3 AS col1, MIN( 9 ) DIV COUNT( * )
----
-8163
9

skipif mysql # not compatible
query II rowsort label-1183
SELECT ALL - 2 * 60 * + 68 - + + 3 AS col1, MIN ( 9 ) / COUNT ( * )
----
-8163
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1184
SELECT ALL + MIN( ALL - ( + - 1 ) ) AS col2, - ( - - CASE ( - CASE - + 10 WHEN + - COUNT( * ) THEN - 25 * + COUNT( * ) ELSE NULL END ) WHEN + NULLIF ( - - 78, - 49 ) THEN NULL WHEN - 53 * + 32 * 42 THEN - 45 ELSE + CASE + - 26 WHEN 35 + 52 + - - CASE + + ( + 84 ) WHEN + + 29 THEN 5 ELSE NULL END THEN NULL WHEN + - 38 + + COALESCE ( + 1, - ( - CASE + 16 WHEN 48 THEN - + 75 + - + CAST( - - 1 AS SIGNED ) ELSE CASE - - 37 WHEN - - 78 THEN NULL WHEN + + 33 - 30 + - 52 THEN 26 ELSE COUNT( * ) END * CASE CAST( 47 AS DECIMAL ) + - 2 WHEN + ( COUNT( * ) ) THEN + 71 WHEN 76 THEN NULL WHEN 61 THEN - 10 ELSE NULL END END ), 55 / COALESCE ( + 41 * 61, 95 ) ) - ( 68 + 48 ) * 25 THEN - 37 + 18 WHEN 13 * 83 THEN NULL END END ) + - CASE COUNT( * ) + 67 WHEN + 51 THEN - 5 WHEN + 11 - - 47 THEN COALESCE ( 19, - COUNT( * ) ) ELSE NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1184
SELECT ALL + MIN ( ALL - ( + - 1 ) ) AS col2, - ( - - CASE ( - CASE - + 10 WHEN + - COUNT ( * ) THEN - 25 * + COUNT ( * ) ELSE NULL END ) WHEN + NULLIF ( - - 78, - 49 ) THEN NULL WHEN - 53 * + 32 * 42 THEN - 45 ELSE + CASE + - 26 WHEN 35 + 52 + - - CASE + + ( + 84 ) WHEN + + 29 THEN 5 ELSE NULL END THEN NULL WHEN + - 38 + + COALESCE ( + 1, - ( - CASE + 16 WHEN 48 THEN - + 75 + - + CAST ( - - 1 AS INTEGER ) ELSE CASE - - 37 WHEN - - 78 THEN NULL WHEN + + 33 - 30 + - 52 THEN 26 ELSE COUNT ( * ) END * CASE CAST ( 47 AS REAL ) + - 2 WHEN + ( COUNT ( * ) ) THEN + 71 WHEN 76 THEN NULL WHEN 61 THEN - 10 ELSE NULL END END ), 55 / COALESCE ( + 41 * 61, 95 ) ) - ( 68 + 48 ) * 25 THEN - 37 + 18 WHEN 13 * 83 THEN NULL END END ) + - CASE COUNT ( * ) + 67 WHEN + 51 THEN - 5 WHEN + 11 - - 47 THEN COALESCE ( 19, - COUNT ( * ) ) ELSE NULL END
----
1
NULL

query I rowsort
SELECT ALL + + 63 * - 3 + + 25 + + 13
----
-151

query II rowsort
SELECT DISTINCT + - 17 AS col2, + 47
----
-17
47

query I rowsort
SELECT - 65 * + - 64 AS col1
----
4160

query I rowsort
SELECT ALL + + 39 AS col1
----
39

query I rowsort
SELECT + - 12 col1
----
-12

query I rowsort
SELECT ALL - 0 * + 55
----
0

query I rowsort
SELECT - 32 * + + 84 col1
----
-2688

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT ALL - ( + + 90 ) * 93 DIV - - 37 + 12
----
-214

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL - ( + + 90 ) * 93 / - - 37 + 12
----
-214

query I rowsort
SELECT DISTINCT + + 55 * + - 0 - 37 + + 92 * - 75 * + 64 + + 42
----
-441595

query I rowsort
SELECT ALL + - 89 * + + 25 + 21 + - 8 AS col2
----
-2212

query I rowsort
SELECT + - 22 AS col1
----
-22

query I rowsort
SELECT DISTINCT + + 24 col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT - + COALESCE ( + COUNT( DISTINCT + 51 ), - 98 * + CASE + 32 WHEN ( + COUNT( * ) ) + - - COUNT( * ) + - 13 DIV - + 26 * - 33 THEN + NULLIF ( 50, + + 0 * + COUNT( * ) ) END + - 3 + 68, - 56 DIV - + 28 ) * + - 78 * - 33
----
-2574

skipif mysql # not compatible
query I rowsort label-1197
SELECT - + COALESCE ( + COUNT ( DISTINCT + 51 ), - 98 * + CASE + 32 WHEN ( + COUNT ( * ) ) + - - COUNT ( * ) + - 13 / - + 26 * - 33 THEN + NULLIF ( 50, + + 0 * + COUNT ( * ) ) END + - 3 + 68, - 56 / - + 28 ) * + - 78 * - 33
----
-2574

onlyif mysql # DIV for integer division: 
query II rowsort label-1198
SELECT + + NULLIF ( - - 61, - 97 ) AS col0, 94 DIV - + ( 89 ) AS col1
----
61
-1

skipif mysql # not compatible
query II rowsort label-1198
SELECT + + NULLIF ( - - 61, - 97 ) AS col0, 94 / - + ( 89 ) AS col1
----
61
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1199
SELECT ALL + + ( - + 5 ) * 77 + - COUNT( * ) DIV + 25 * - 38 col1
----
-385

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL + + ( - + 5 ) * 77 + - COUNT ( * ) / + 25 * - 38 col1
----
-385

query II rowsort
SELECT + 2 * + 52 AS col0, 46 + + ( - - 14 ) col1
----
104
60

query I rowsort
SELECT - 49 + - + 40
----
-89

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT + 42 * + - SUM( ALL - 26 )
----
1092

skipif mysql # not compatible
query I rowsort label-1204
SELECT + 42 * + - SUM ( ALL - 26 )
----
1092

query II rowsort
SELECT DISTINCT 83 * - 70 AS col0, 55 * 94 * 72 * - 76 AS col1
----
-5810
-28290240

query I rowsort
SELECT - 89 + 86 * 49 AS col2
----
4125

query I rowsort
SELECT + 95 - - 70
----
165

query I rowsort
SELECT - 7 * - 71 * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT + SUM( - 94 ) + - 78 AS col2
----
-172

skipif mysql # not compatible
query I rowsort label-1209
SELECT + SUM ( - 94 ) + - 78 AS col2
----
-172

query I rowsort
SELECT + 76 * 80 col0
----
6080

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT DISTINCT 82 * + - 62 * MAX( - 8 ) * - ( - + 5 ) + 39
----
203399

skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT 82 * + - 62 * MAX ( - 8 ) * - ( - + 5 ) + 39
----
203399

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT DISTINCT COUNT( * ) * - 80 * 44
----
-3520

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT COUNT ( * ) * - 80 * 44
----
-3520

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT DISTINCT CASE COUNT( * ) WHEN + 41 THEN + + 53 * - - SUM( + 14 ) WHEN - COALESCE ( 44, - 43 ) * + 32 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT CASE COUNT ( * ) WHEN + 41 THEN + + 53 * - - SUM ( + 14 ) WHEN - COALESCE ( 44, - 43 ) * + 32 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1214
SELECT ALL - 29 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL - 29 / - CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT + 66 + + 24 - - - COUNT( * ) + - 50 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1216
SELECT + 66 + + 24 - - - COUNT ( * ) + - 50 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1217
SELECT - - 1 + 20 - 45 + + + 47 * + + MAX( - 82 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1217
SELECT - - 1 + 20 - 45 + + + 47 * + + MAX ( - 82 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1218
SELECT ALL 10 DIV - + 98
----
0

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL 10 / - + 98
----
0

query II rowsort
SELECT + + 74 + + 98, 90 * + 65 AS col2
----
172
5850

query I rowsort
SELECT DISTINCT - 63 * + 72
----
-4536

onlyif mysql # DIV for integer division: 
query I rowsort label-1221
SELECT ALL 35 DIV 65 + - 84
----
-84

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL 35 / 65 + - 84
----
-84

query I rowsort
SELECT 99 * 75 + + 17 + 72 * 56 * + 55
----
229202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1223
SELECT CAST( NULLIF ( 35, - 67 * 9 * - 99 - - - COUNT( - + NULLIF ( 47, - + 18 * + 65 + - + 47 - + - 68 ) ) * + 92 ) AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-1223
SELECT CAST ( NULLIF ( 35, - 67 * 9 * - 99 - - - COUNT ( - + NULLIF ( 47, - + 18 * + 65 + - + 47 - + - 68 ) ) * + 92 ) AS INTEGER )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1224
SELECT ALL + 11 DIV 18 + - - COUNT( * ) + + + SUM( DISTINCT 83 ) + + ( + + 83 ) + - 82 * + - 60 * 29 * - - 11 * - - 86 AS col0
----
134975447

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL + 11 / 18 + - - COUNT ( * ) + + + SUM ( DISTINCT 83 ) + + ( + + 83 ) + - 82 * + - 60 * 29 * - - 11 * - - 86 AS col0
----
134975447

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT - ( - NULLIF ( COUNT( * ), - 43 ) ) - 75
----
-74

skipif mysql # not compatible
query I rowsort label-1225
SELECT - ( - NULLIF ( COUNT ( * ), - 43 ) ) - 75
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1226
SELECT DISTINCT COUNT( * ) * - 46 DIV 3 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT COUNT ( * ) * - 46 / 3 AS col1
----
-15

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

skipif mysql # not compatible
query I rowsort label-1227
SELECT DISTINCT - 61 / + + 54 + + COUNT ( * ) AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-1228
SELECT + + MIN ( + ( 33 ) )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1229
SELECT DISTINCT 5 DIV + + COUNT( * ) + - - COUNT( * ) + - 35 - - 31 + - 58 * + 45 * 29 * - 4 + - ( + - 77 ) * + 99 + + 39 + COUNT( * )
----
310425

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT 5 / + + COUNT ( * ) + - - COUNT ( * ) + - 35 - - 31 + - 58 * + 45 * 29 * - 4 + - ( + - 77 ) * + 99 + + 39 + COUNT ( * )
----
310425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1230
SELECT ALL 43 DIV - 4 - + 34 + COUNT( + 81 ) + + 49 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL 43 / - 4 - + 34 + COUNT ( + 81 ) + + 49 AS col1
----
6

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

skipif mysql # not compatible
query I rowsort label-1231
SELECT - SUM ( + 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT - 79 + - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-1232
SELECT - 79 + - COUNT ( * )
----
-80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1234
SELECT + 59 * - 86 + + - CAST( + - 58 AS SIGNED ) + 80 - 78 * - CAST( + 26 AS SIGNED )
----
-2908

skipif mysql # not compatible
query I rowsort label-1234
SELECT + 59 * - 86 + + - CAST ( + - 58 AS INTEGER ) + 80 - 78 * - CAST ( + 26 AS INTEGER )
----
-2908

query I rowsort
SELECT ALL 79 + + 62 AS col1
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1236
SELECT ALL - CAST( + - 26 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL - CAST ( + - 26 AS INTEGER ) AS col2
----
26

query I rowsort
SELECT ALL + COALESCE ( 61, - - 57 ) - 38 AS col0
----
23

query II rowsort
SELECT + 98, + ( - - 0 ) col0
----
98
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1240
SELECT 25 * + SUM( DISTINCT ( - ( + 16 ) ) ) AS col2, CAST( NULL AS SIGNED )
----
-400
NULL

skipif mysql # not compatible
query II rowsort label-1240
SELECT 25 * + SUM ( DISTINCT ( - ( + 16 ) ) ) AS col2, CAST ( NULL AS INTEGER )
----
-400
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT ALL + MAX( 67 ) * + 4 AS col0
----
268

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL + MAX ( 67 ) * + 4 AS col0
----
268

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1242
SELECT DISTINCT + CASE NULLIF ( + 15, + NULLIF ( 43, COUNT( * ) ) ) WHEN - 16 + + COUNT( * ) - 9 * + 41 THEN NULL WHEN 86 THEN + + 34 ELSE NULL END * CAST( + 16 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT + CASE NULLIF ( + 15, + NULLIF ( 43, COUNT ( * ) ) ) WHEN - 16 + + COUNT ( * ) - 9 * + 41 THEN NULL WHEN 86 THEN + + 34 ELSE NULL END * CAST ( + 16 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT DISTINCT - COUNT( * ) * - 82
----
82

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT - COUNT ( * ) * - 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT 54 + - NULLIF ( - 40, - COUNT( * ) )
----
94

skipif mysql # not compatible
query I rowsort label-1244
SELECT 54 + - NULLIF ( - 40, - COUNT ( * ) )
----
94

query I rowsort
SELECT 25 * + 34
----
850

query I rowsort
SELECT ALL 20 col2
----
20

query I rowsort
SELECT 50 * - + 33 AS col0
----
-1650

query I rowsort
SELECT DISTINCT 82 * 50 AS col1
----
4100

query I rowsort
SELECT DISTINCT 37 col2
----
37

query I rowsort
SELECT 40 * + 84 AS col0
----
3360

onlyif mysql # aggregate syntax: 
query II rowsort label-1251
SELECT 3 + - - 46 + 53 col2, - COUNT( * )
----
102
-1

skipif mysql # not compatible
query II rowsort label-1251
SELECT 3 + - - 46 + 53 col2, - COUNT ( * )
----
102
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT - + NULLIF ( - 89, + COUNT( * ) ) col2
----
89

skipif mysql # not compatible
query I rowsort label-1252
SELECT - + NULLIF ( - 89, + COUNT ( * ) ) col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1253
SELECT ALL + 33 + - 6 + 56 DIV - 37
----
26

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL + 33 + - 6 + 56 / - 37
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT + MAX( ALL - - 59 ) * 83 AS col0
----
4897

skipif mysql # not compatible
query I rowsort label-1254
SELECT + MAX ( ALL - - 59 ) * 83 AS col0
----
4897

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT DISTINCT + COALESCE ( + 73, - 3 ) + - - COUNT( * ) + + 38 + 66
----
178

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT + COALESCE ( + 73, - 3 ) + - - COUNT ( * ) + + 38 + 66
----
178

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT - 0 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT - 0 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT DISTINCT NULLIF ( COUNT( * ), + 78 ) + + + MAX( - + 3 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT NULLIF ( COUNT ( * ), + 78 ) + + + MAX ( - + 3 ) AS col2
----
-2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1260
SELECT ALL 83 + - ( CASE CASE 32 WHEN + + 98 THEN NULL WHEN - + 32 THEN NULL ELSE - 53 END WHEN COUNT( DISTINCT 19 ) * + 1 + + 48 + + - 80 * + 37 + 22 + - 69 + + 68 + + - COUNT( * ) + + 77 / 84 * - + CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) / - - 1 - - CAST( + - 74 AS SIGNED ) * - CAST( + 85 AS SIGNED ) - - + COALESCE ( - 24, COUNT( * ) * + 38, CASE + + 78 WHEN - + 29 THEN - ( + + 82 ) * - 95 + - 49 + + 94 + + COUNT( * ) WHEN + 20 + + + 93 THEN - 23 ELSE NULL END * COUNT( * ) ) * 76 * COUNT( + 27 ) * - CAST( - 31 AS DECIMAL ) THEN ( AVG ( 93 ) ) WHEN ( - 13 ) THEN - 58 * - NULLIF ( COUNT( * ), 87 ) + - 55 * 40 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL 83 + - ( CASE CASE 32 WHEN + + 98 THEN NULL WHEN - + 32 THEN NULL ELSE - 53 END WHEN COUNT ( DISTINCT 19 ) * + 1 + + 48 + + - 80 * + 37 + 22 + - 69 + + 68 + + - COUNT ( * ) + + 77 / 84 * - + CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) / - - 1 - - CAST ( + - 74 AS INTEGER ) * - CAST ( + 85 AS INTEGER ) - - + COALESCE ( - 24, COUNT ( * ) * + 38, CASE + + 78 WHEN - + 29 THEN - ( + + 82 ) * - 95 + - 49 + + 94 + + COUNT ( * ) WHEN + 20 + + + 93 THEN - 23 ELSE NULL END * COUNT ( * ) ) * 76 * COUNT ( + 27 ) * - CAST ( - 31 AS REAL ) THEN ( AVG ( 93 ) ) WHEN ( - 13 ) THEN - 58 * - NULLIF ( COUNT ( * ), 87 ) + - 55 * 40 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT ALL - 9 + - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL - 9 + - COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1262
SELECT DISTINCT + SUM( + 10 ) DIV + 99 + 3 * - 27 - - - 8
----
-89

skipif mysql # not compatible
query I rowsort label-1262
SELECT DISTINCT + SUM ( + 10 ) / + 99 + 3 * - 27 - - - 8
----
-89

query I rowsort
SELECT DISTINCT + 40 + + + 81
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-1264
SELECT 51 DIV - + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1264
SELECT 51 / - + 91 AS col0
----
0

query I rowsort
SELECT ALL - 7 + 46 AS col0
----
39

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

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

query I rowsort
SELECT 0 * 10 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1269
SELECT ALL - MAX( 78 ) * + - 94, - 22 AS col2
----
7332
-22

skipif mysql # not compatible
query II rowsort label-1269
SELECT ALL - MAX ( 78 ) * + - 94, - 22 AS col2
----
7332
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT ALL - MAX( ALL 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL - MAX ( ALL 4 )
----
-4

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1273
SELECT 1 * - CAST( NULL AS SIGNED ) + - 84 + - 1 * 7 + + 34 DIV + 97 AS col1, - 92 DIV + ( COUNT( * ) ) + + + 63
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-1273
SELECT 1 * - CAST ( NULL AS INTEGER ) + - 84 + - 1 * 7 + + 34 / + 97 AS col1, - 92 / + ( COUNT ( * ) ) + + + 63
----
NULL
-29

query I rowsort
SELECT COALESCE ( + 41, + 97 ) * 81
----
3321

onlyif mysql # aggregate syntax: 
query II rowsort label-1275
SELECT + 59 AS col1, 4 + - 35 * - COUNT( * ) * ( - 3 ) AS col0
----
59
-101

skipif mysql # not compatible
query II rowsort label-1275
SELECT + 59 AS col1, 4 + - 35 * - COUNT ( * ) * ( - 3 ) AS col0
----
59
-101

query I rowsort
SELECT 60 * + 46 AS col0
----
2760

onlyif mysql # aggregate syntax: 
query II rowsort label-1277
SELECT ALL 63 col0, COUNT( * )
----
63
1

skipif mysql # not compatible
query II rowsort label-1277
SELECT ALL 63 col0, COUNT ( * )
----
63
1

query II rowsort
SELECT ALL 15 AS col2, ( + 25 )
----
15
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1279
SELECT 34 + + 78 + + + 1 * - + COUNT( * ) * 21 * - CASE + 53 WHEN 95 THEN - 97 * 20 + + + 13 WHEN - 70 THEN COALESCE ( + 33, + SUM( ALL - 53 ) + - ( - COUNT( * ) ) - + 22 ) - - + 88 * 74 ELSE + 62 * + 60 + + + MIN( + 84 ) / + CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT 34 + + 78 + + + 1 * - + COUNT ( * ) * 21 * - CASE + 53 WHEN 95 THEN - 97 * 20 + + + 13 WHEN - 70 THEN COALESCE ( + 33, + SUM ( ALL - 53 ) + - ( - COUNT ( * ) ) - + 22 ) - - + 88 * 74 ELSE + 62 * + 60 + + + MIN ( + 84 ) / + CAST ( NULL AS INTEGER ) END col2
----
NULL

query I rowsort
SELECT 44 + + 20 + - 75
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1281
SELECT 50 DIV + - 11
----
-4

skipif mysql # not compatible
query I rowsort label-1281
SELECT 50 / + - 11
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT DISTINCT + 11 * - COUNT( * ) * + COUNT( * ) * - 34
----
374

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT + 11 * - COUNT ( * ) * + COUNT ( * ) * - 34
----
374

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT ALL - 56 + - + COUNT( * ) * - 65 - - ( - 50 )
----
-41

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL - 56 + - + COUNT ( * ) * - 65 - - ( - 50 )
----
-41

query I rowsort
SELECT 69 - 41 - + 94
----
-66

query I rowsort
SELECT ALL + 29 * - 44
----
-1276

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT 40 DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-1286
SELECT 40 / 54
----
0

query I rowsort
SELECT 79 + + 99 AS col1
----
178

query II rowsort
SELECT - 39, 59 AS col0
----
-39
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1289
SELECT ALL - - COUNT( * ) + - NULLIF ( 74, - 62 + 73 + - + 33 ) - - CAST( + CAST( + 39 AS SIGNED ) AS SIGNED ) * - 67 AS col2
----
-2686

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL - - COUNT ( * ) + - NULLIF ( 74, - 62 + 73 + - + 33 ) - - CAST ( + CAST ( + 39 AS INTEGER ) AS INTEGER ) * - 67 AS col2
----
-2686

query II rowsort
SELECT + 62 + - + 33 * - 99 * + 49 col1, 47 * + 66
----
160145
3102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1291
SELECT - 71 DIV - COUNT( * ) + + SUM( 86 ) * + - 54 * - - SUM( DISTINCT + 42 ) + 18 + + + 69 AS col2
----
-194890

skipif mysql # not compatible
query I rowsort label-1291
SELECT - 71 / - COUNT ( * ) + + SUM ( 86 ) * + - 54 * - - SUM ( DISTINCT + 42 ) + 18 + + + 69 AS col2
----
-194890

query I rowsort
SELECT 66 + - + 21
----
45

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

skipif mysql # not compatible
query II rowsort label-1293
SELECT - 50 AS col2, ( + + COUNT ( * ) ) AS col2
----
-50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT ALL MIN( ALL - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL MIN ( ALL - 36 )
----
-36

query I rowsort
SELECT ALL - 22 * - + 29
----
638

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

skipif mysql # not compatible
query I rowsort label-1296
SELECT + 21 * COUNT ( * ) + + + MAX ( ALL + - 41 )
----
-20

query I rowsort
SELECT DISTINCT + 11 + 99
----
110

query I rowsort
SELECT ALL - + 95 col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT + 39 + 5 - + - MIN( 35 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1299
SELECT + 39 + 5 - + - MIN ( 35 ) AS col1
----
79

query I rowsort
SELECT ALL - 78 * + 62 + 75 AS col2
----
-4761

query I rowsort
SELECT + + 22 col0
----
22

query I rowsort
SELECT ALL - 61 * - 96 AS col2
----
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT + + COUNT( * ) * - 90 + 88 * - 54 + + - 84 - - MIN( - - 34 )
----
-4892

skipif mysql # not compatible
query I rowsort label-1303
SELECT + + COUNT ( * ) * - 90 + 88 * - 54 + + - 84 - - MIN ( - - 34 )
----
-4892

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT COUNT( - COALESCE ( + + 92, - 24 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1304
SELECT COUNT ( - COALESCE ( + + 92, - 24 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1305
SELECT ALL + 56, - 58 + + - 93 DIV - 21 DIV + + COUNT( * ) - - CAST( COALESCE ( + - MIN( + + 34 ), + + 28 ) AS SIGNED ) - + 92 * 25 AS col1
----
56
-2388

skipif mysql # not compatible
query II rowsort label-1305
SELECT ALL + 56, - 58 + + - 93 / - 21 / + + COUNT ( * ) - - CAST ( COALESCE ( + - MIN ( + + 34 ), + + 28 ) AS INTEGER ) - + 92 * 25 AS col1
----
56
-2388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1306
SELECT 81 * - 96 * 34 + CASE + 97 WHEN 98 * + - CAST( 40 AS SIGNED ) THEN + - 90 + 22 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1306
SELECT 81 * - 96 * 34 + CASE + 97 WHEN 98 * + - CAST ( 40 AS INTEGER ) THEN + - 90 + 22 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + - 22 * 51 AS col0
----
-1122

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1309
SELECT ALL + + 8 * - 42 - - + 1 + MIN( + - 33 ) + - COUNT( * ) * MIN( DISTINCT - + 84 ) DIV 35 DIV + 10
----
-368

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL + + 8 * - 42 - - + 1 + MIN ( + - 33 ) + - COUNT ( * ) * MIN ( DISTINCT - + 84 ) / 35 / + 10
----
-368

query II rowsort
SELECT ALL + 48 AS col2, 85
----
48
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT + 28 + COUNT( + 81 )
----
29

skipif mysql # not compatible
query I rowsort label-1311
SELECT + 28 + COUNT ( + 81 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1312
SELECT + 2 * - 35 AS col0, CAST( + + 13 AS SIGNED ) + COUNT( * ) * + 81 + CAST( - 13 AS SIGNED ) * - 22
----
-70
380

skipif mysql # not compatible
query II rowsort label-1312
SELECT + 2 * - 35 AS col0, CAST ( + + 13 AS INTEGER ) + COUNT ( * ) * + 81 + CAST ( - 13 AS INTEGER ) * - 22
----
-70
380

query I rowsort
SELECT ALL - NULLIF ( 43, + 53 ) * ( + + 19 ) - + + NULLIF ( + 56, - + 1 ) AS col1
----
-873

onlyif mysql # aggregate syntax: 
query II rowsort label-1314
SELECT MIN( + + 90 ) AS col0, + 43 AS col1
----
90
43

skipif mysql # not compatible
query II rowsort label-1314
SELECT MIN ( + + 90 ) AS col0, + 43 AS col1
----
90
43

query I rowsort
SELECT + 7 * - - ( + + ( - ( - 23 ) ) ) AS col0
----
161

query II rowsort
SELECT + 66 * - 77 AS col2, - 71 + 41
----
-5082
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1317
SELECT ALL 78 DIV - ( COUNT( + 55 ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL 78 / - ( COUNT ( + 55 ) ) AS col1
----
-78

query I rowsort
SELECT + 84 + ( + 42 )
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-1319
SELECT - COUNT( * ) + 98 col2, 3 * - 73 AS col1
----
97
-219

skipif mysql # not compatible
query II rowsort label-1319
SELECT - COUNT ( * ) + 98 col2, 3 * - 73 AS col1
----
97
-219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1320
SELECT - 14 * + + NULLIF ( - COUNT( * ), + ( 11 ) ) + 22 + + + 67 - 43 - - 55 + 3 DIV - - 82 + - 67 * 70 DIV 51
----
24

skipif mysql # not compatible
query I rowsort label-1320
SELECT - 14 * + + NULLIF ( - COUNT ( * ), + ( 11 ) ) + 22 + + + 67 - 43 - - 55 + 3 / - - 82 + - 67 * 70 / 51
----
24

query I rowsort
SELECT ALL 71 * - - 31 * - - 2
----
4402

query I rowsort
SELECT DISTINCT + 76 col0
----
76

query I rowsort
SELECT + COALESCE ( - 40, + + ( - 86 ) )
----
-40

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

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

query I rowsort
SELECT DISTINCT + 25 + 93 AS col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT - NULLIF ( MAX( ALL 14 ), - + COUNT( * ) * + - 37 )
----
-14

skipif mysql # not compatible
query I rowsort label-1326
SELECT - NULLIF ( MAX ( ALL 14 ), - + COUNT ( * ) * + - 37 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT - NULLIF ( COUNT( * ), 89 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1327
SELECT - NULLIF ( COUNT ( * ), 89 ) AS col2
----
-1

query I rowsort
SELECT - ( + + 94 ) + 77
----
-17

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

skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT + 25 + + - COUNT ( * ) AS col1
----
24

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

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

query I rowsort
SELECT + 60 * + ( - 13 ) + - 89
----
-869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1332
SELECT ALL + CAST( NULL AS SIGNED ) * 81 + + - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL + CAST ( NULL AS INTEGER ) * 81 + + - 74 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 6 + - + 97
----
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1334
SELECT - COALESCE ( + 76, ( - - MAX( ALL - - 58 ) ) DIV - + 85 + - 70 * + - 4 + COUNT( * ) * + - 39 + CASE + + CAST( NULL AS DECIMAL ) WHEN MAX( DISTINCT + 96 ) * - + 47 + + + 30 + - 69 THEN NULL WHEN + - 26 THEN - ( - 66 ) ELSE - + MIN( + 42 ) END )
----
-76

skipif mysql # not compatible
query I rowsort label-1334
SELECT - COALESCE ( + 76, ( - - MAX ( ALL - - 58 ) ) / - + 85 + - 70 * + - 4 + COUNT ( * ) * + - 39 + CASE + + CAST ( NULL AS REAL ) WHEN MAX ( DISTINCT + 96 ) * - + 47 + + + 30 + - 69 THEN NULL WHEN + - 26 THEN - ( - 66 ) ELSE - + MIN ( + 42 ) END )
----
-76

query I rowsort
SELECT DISTINCT + 26 + + + 92 AS col0
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1336
SELECT DISTINCT + - 99 + + 59 * + - 98 - - - COUNT( * ) * - COALESCE ( 10, + + 20 * - 14 - + + 39 + - SUM( ALL 34 ) DIV 74 + + 60 - + CAST( + - 24 AS SIGNED ) * CASE 2 WHEN - 78 - 70 THEN 64 WHEN - 95 THEN + 91 END + + 49 ) * + CAST( + - 13 AS SIGNED ) col0, COUNT( * )
----
-6011
1

skipif mysql # not compatible
query II rowsort label-1336
SELECT DISTINCT + - 99 + + 59 * + - 98 - - - COUNT ( * ) * - COALESCE ( 10, + + 20 * - 14 - + + 39 + - SUM ( ALL 34 ) / 74 + + 60 - + CAST ( + - 24 AS INTEGER ) * CASE 2 WHEN - 78 - 70 THEN 64 WHEN - 95 THEN + 91 END + + 49 ) * + CAST ( + - 13 AS INTEGER ) col0, COUNT ( * )
----
-6011
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT - CASE + COUNT( * ) WHEN - 69 THEN COUNT( * ) ELSE + - 69 END col2
----
69

skipif mysql # not compatible
query I rowsort label-1337
SELECT - CASE + COUNT ( * ) WHEN - 69 THEN COUNT ( * ) ELSE + - 69 END col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT + + 92 + CASE - - AVG ( ALL - 22 ) WHEN 52 + + - 0 * - COUNT( * ) THEN NULL WHEN SUM( ALL 24 ) THEN - + COUNT( * ) * - 88 WHEN 21 / COUNT( * ) + - 71 THEN + - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1338
SELECT + + 92 + CASE - - AVG ( ALL - 22 ) WHEN 52 + + - 0 * - COUNT ( * ) THEN NULL WHEN SUM ( ALL 24 ) THEN - + COUNT ( * ) * - 88 WHEN 21 / COUNT ( * ) + - 71 THEN + - 92 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1339
SELECT - + 12 DIV + 71 AS col1, + 98 + - 7 - + 31
----
0
60

skipif mysql # not compatible
query II rowsort label-1339
SELECT - + 12 / + 71 AS col1, + 98 + - 7 - + 31
----
0
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1340
SELECT - + ( 53 ) * CAST( - COUNT( * ) AS SIGNED ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1340
SELECT - + ( 53 ) * CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
53

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

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

query I rowsort
SELECT ALL + 32 - - 18 + - - ( - 43 )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1343
SELECT ALL - 41 DIV - 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL - 41 / - 48 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT - 98 * - COUNT( * ) + + 39
----
137

skipif mysql # not compatible
query I rowsort label-1344
SELECT - 98 * - COUNT ( * ) + + 39
----
137

query I rowsort
SELECT ALL + + 68
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT DISTINCT 47 DIV 22 * - + 1 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT 47 / 22 * - + 1 AS col0
----
-2

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

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

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

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL + CAST ( + ( - 72 ) AS INTEGER ) col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT - 90 * COUNT( * ) col1
----
-90

skipif mysql # not compatible
query I rowsort label-1349
SELECT - 90 * COUNT ( * ) col1
----
-90

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

query I rowsort
SELECT - 29 * + 45 * + + 87 - + + 3
----
-113538

query I rowsort
SELECT ( - 73 )
----
-73

query I rowsort
SELECT + COALESCE ( - 56, - + 61, - - 53 - - 30 )
----
-56

query I rowsort
SELECT ( - 59 ) col2
----
-59

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

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

query I rowsort
SELECT ALL 72 * 82 AS col2
----
5904

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1358
SELECT + 13 DIV + 93 * - 94 * - - 21
----
0

skipif mysql # not compatible
query I rowsort label-1358
SELECT + 13 / + 93 * - 94 * - - 21
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1359
SELECT ALL 79 * CAST( NULL AS SIGNED ) * COUNT( * ) + MIN( - 39 ) + COALESCE ( COUNT( * ), 4 + - - COUNT( - COALESCE ( 0, - 71 ) ) * + + CAST( NULL AS SIGNED ) ) AS col1, - 48
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-1359
SELECT ALL 79 * CAST ( NULL AS INTEGER ) * COUNT ( * ) + MIN ( - 39 ) + COALESCE ( COUNT ( * ), 4 + - - COUNT ( - COALESCE ( 0, - 71 ) ) * + + CAST ( NULL AS INTEGER ) ) AS col1, - 48
----
NULL
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1360
SELECT 65 * + - 58 * + - 81 - + - CAST( 18 AS SIGNED ) AS col2
----
305388

skipif mysql # not compatible
query I rowsort label-1360
SELECT 65 * + - 58 * + - 81 - + - CAST ( 18 AS INTEGER ) AS col2
----
305388

query II rowsort
SELECT - 0 + + - 24 - - + 37 AS col0, 14
----
13
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT COALESCE ( - 1, - 91 + - + COUNT( * ), - + 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-1362
SELECT COALESCE ( - 1, - 91 + - + COUNT ( * ), - + 52 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1363
SELECT COUNT( - 93 ) * + 95 + + 36 - - MAX( + + CAST( NULL AS SIGNED ) ) - - NULLIF ( + 62, + 68 - 61 + - - 92 + - - 64 ) * - + 40 * + 29 + - 14 * + 66 / - CAST( 14 AS DECIMAL ) * + COUNT( * ) + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1363
SELECT COUNT ( - 93 ) * + 95 + + 36 - - MAX ( + + CAST ( NULL AS INTEGER ) ) - - NULLIF ( + 62, + 68 - 61 + - - 92 + - - 64 ) * - + 40 * + 29 + - 14 * + 66 / - CAST ( 14 AS REAL ) * + COUNT ( * ) + - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT + 82 * + ( + + 24 ) * - COUNT( * )
----
-1968

skipif mysql # not compatible
query I rowsort label-1364
SELECT + 82 * + ( + + 24 ) * - COUNT ( * )
----
-1968

query I rowsort
SELECT + 94 * - - 40
----
3760

query I rowsort
SELECT + 34 * 25 + - 58
----
792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1367
SELECT ALL - COUNT( * ) DIV MIN( + + ( + 48 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL - COUNT ( * ) / MIN ( + + ( + 48 ) )
----
0

query I rowsort
SELECT + 46 + + - 24
----
22

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1370
SELECT DISTINCT 70 DIV + + 31
----
2

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT 70 / + + 31
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1371
SELECT - CASE + 8 WHEN + 62 * - - CAST( NULL AS SIGNED ) - - + 84 THEN NULL WHEN - 3 + + COUNT( * ) THEN NULL ELSE COUNT( * ) + + 69 + 9 * 72 - - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT - CASE + 8 WHEN + 62 * - - CAST ( NULL AS INTEGER ) - - + 84 THEN NULL WHEN - 3 + + COUNT ( * ) THEN NULL ELSE COUNT ( * ) + + 69 + 9 * 72 - - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT + + COUNT( * ) + - - ( - + ( 16 ) ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1372
SELECT + + COUNT ( * ) + - - ( - + ( 16 ) ) AS col1
----
-15

query I rowsort
SELECT ALL - 94 * 44 - - 48 col1
----
-4088

query I rowsort
SELECT - 12 col0
----
-12

query I rowsort
SELECT + + 22 + - 10 AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-1376
SELECT ( - 67 ) + - COUNT( * ) AS col0, + 99
----
-68
99

skipif mysql # not compatible
query II rowsort label-1376
SELECT ( - 67 ) + - COUNT ( * ) AS col0, + 99
----
-68
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT NULLIF ( 75, + MAX( ALL - 97 ) + 22 ) * + 72
----
5400

skipif mysql # not compatible
query I rowsort label-1378
SELECT NULLIF ( 75, + MAX ( ALL - 97 ) + 22 ) * + 72
----
5400

onlyif mysql # aggregate syntax: 
query II rowsort label-1379
SELECT - - 36 AS col0, - COUNT( * ) + 34 AS col0
----
36
33

skipif mysql # not compatible
query II rowsort label-1379
SELECT - - 36 AS col0, - COUNT ( * ) + 34 AS col0
----
36
33

query I rowsort
SELECT - 74 + - - 10 + - - ( - 51 ) AS col2
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1381
SELECT ALL - CAST( NULL AS SIGNED ), + 78 col1
----
NULL
78

skipif mysql # not compatible
query II rowsort label-1381
SELECT ALL - CAST ( NULL AS INTEGER ), + 78 col1
----
NULL
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1382
SELECT 29 * + COUNT( * ) / + + CAST( NULL AS SIGNED ) / + 5 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1382
SELECT 29 * + COUNT ( * ) / + + CAST ( NULL AS INTEGER ) / + 5 col1
----
NULL

query I rowsort
SELECT ALL - 78 * + 7
----
-546

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

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL + NULLIF ( 44, - - COUNT ( * ) )
----
44

query II rowsort
SELECT + 23 + 90 - + COALESCE ( ( - 7 ), + + 63 ) AS col0, ( + 48 ) AS col1
----
120
48

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

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

query I rowsort
SELECT 8 * - + 51 AS col1
----
-408

query I rowsort
SELECT - 32 * + ( - 23 ) * + 41 AS col1
----
30176

query I rowsort
SELECT ALL - + 16 * - + 18 AS col2
----
288

query I rowsort
SELECT ALL + ( 38 ) + - - ( - 20 ) AS col0
----
18

query I rowsort
SELECT - 63 * 54 + + 4 col0
----
-3398

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

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

query I rowsort
SELECT DISTINCT ( - - 62 ) + + - 4 * 14 AS col1
----
6

query I rowsort
SELECT DISTINCT - 24 + + + 5
----
-19

query I rowsort
SELECT ALL + 70 + ( - 77 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1396
SELECT 60 + 50, COALESCE ( + ( - 81 ), - + 64 + + - ( + + 96 ) + CASE + CAST( NULL AS SIGNED ) WHEN + AVG ( 68 ) THEN + - 12 END, + - 22 + 95 ) * - - 2 AS col1
----
110
-162

skipif mysql # not compatible
query II rowsort label-1396
SELECT 60 + 50, COALESCE ( + ( - 81 ), - + 64 + + - ( + + 96 ) + CASE + CAST ( NULL AS INTEGER ) WHEN + AVG ( 68 ) THEN + - 12 END, + - 22 + 95 ) * - - 2 AS col1
----
110
-162

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

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

query I rowsort
SELECT 70 * 54 + - + 79 * 20 * 92 col0
----
-141580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1399
SELECT ALL - COALESCE ( + CAST( NULL AS SIGNED ), - - 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL - COALESCE ( + CAST ( NULL AS INTEGER ), - - 50 ) AS col2
----
-50

query I rowsort
SELECT DISTINCT - 25 + - 87 AS col1
----
-112

query I rowsort
SELECT ALL + 70 + - 78 AS col2
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1402
SELECT 88 + + COUNT( + 78 ) + - COUNT( * ) DIV + + 81 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-1402
SELECT 88 + + COUNT ( + 78 ) + - COUNT ( * ) / + + 81 AS col0
----
89

query I rowsort
SELECT ALL - 7 + + + 35 * - + 16 AS col2
----
-567

query I rowsort
SELECT 59 * + + ( + 20 )
----
1180

query I rowsort
SELECT DISTINCT - 98 * - + 57
----
5586

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1407
SELECT DISTINCT - ( 12 ), + COUNT( * ) * + 47 AS col2
----
-12
47

skipif mysql # not compatible
query II rowsort label-1407
SELECT DISTINCT - ( 12 ), + COUNT ( * ) * + 47 AS col2
----
-12
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1408
SELECT DISTINCT + COALESCE ( - NULLIF ( - 19, + CASE + AVG ( 79 ) WHEN + + NULLIF ( + 51, - ( + - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) ) * - COUNT( * ) * + 28 * MAX( DISTINCT - - 0 ) / - + 16 + + + 5 THEN - 36 * + NULLIF ( 31, - 52 ) WHEN + CAST( - - ( - 60 ) AS SIGNED ) THEN NULL ELSE + 24 * CASE 62 WHEN + 76 / - 92 + 65 * - COUNT( * ) * + + 25 * - 77 * + 11 * - + 79 THEN NULL WHEN + 3 + + CAST( + + 85 AS SIGNED ) * COUNT( * ) + 18 THEN - 90 END END ), - + 12 * - MAX( + 10 ), CAST( NULL AS SIGNED ) ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT + COALESCE ( - NULLIF ( - 19, + CASE + AVG ( 79 ) WHEN + + NULLIF ( + 51, - ( + - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) * - COUNT ( * ) * + 28 * MAX ( DISTINCT - - 0 ) / - + 16 + + + 5 THEN - 36 * + NULLIF ( 31, - 52 ) WHEN + CAST ( - - ( - 60 ) AS INTEGER ) THEN NULL ELSE + 24 * CASE 62 WHEN + 76 / - 92 + 65 * - COUNT ( * ) * + + 25 * - 77 * + 11 * - + 79 THEN NULL WHEN + 3 + + CAST ( + + 85 AS INTEGER ) * COUNT ( * ) + 18 THEN - 90 END END ), - + 12 * - MAX ( + 10 ), CAST ( NULL AS INTEGER ) ) AS col1
----
19

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1410
SELECT 95 DIV - + NULLIF ( - 52, 49 + + COUNT( * ) ) + + COUNT( * ) col1
----
2

skipif mysql # not compatible
query I rowsort label-1410
SELECT 95 / - + NULLIF ( - 52, 49 + + COUNT ( * ) ) + + COUNT ( * ) col1
----
2

query I rowsort
SELECT 82 * 16
----
1312

query I rowsort
SELECT DISTINCT CASE + - 44 WHEN - - 43 + - 4 THEN + 8 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT + MAX( - - 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1413
SELECT + MAX ( - - 75 ) AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1414
SELECT 74 DIV CASE + - 79 WHEN + 85 DIV + + COUNT( * ) THEN MAX( + - 16 ) + ( - + 76 ) WHEN - 14 + - + 56 THEN NULL ELSE 15 END * - - 68 - - ( - 38 ) + + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
235

skipif mysql # not compatible
query I rowsort label-1414
SELECT 74 / CASE + - 79 WHEN + 85 / + + COUNT ( * ) THEN MAX ( + - 16 ) + ( - + 76 ) WHEN - 14 + - + 56 THEN NULL ELSE 15 END * - - 68 - - ( - 38 ) + + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
235

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

skipif mysql # not compatible
query I rowsort label-1415
SELECT + 14 / + - COUNT ( * ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT ALL + CASE + + 93 WHEN + + 21 THEN 5 / - 32 * - 50 ELSE - 57 / NULLIF ( + 73, + 59 ) + + 64 * + 54 * + + 62 + - - 39 / + 67 + + + 78 + + - CASE - COUNT( * ) WHEN + - NULLIF ( - COUNT( * ), - 1 * - COUNT( * ) + + COUNT( * ) * 71 ) THEN - - COUNT( * ) + - 18 WHEN + COALESCE ( + - 74, 35, + 70, - - ( - - 48 ) ) THEN + 68 * - - 89 END * + 53 - 6 END * + + 90 - - 8 - - COUNT( 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL + CASE + + 93 WHEN + + 21 THEN 5 / - 32 * - 50 ELSE - 57 / NULLIF ( + 73, + 59 ) + + 64 * + 54 * + + 62 + - - 39 / + 67 + + + 78 + + - CASE - COUNT ( * ) WHEN + - NULLIF ( - COUNT ( * ), - 1 * - COUNT ( * ) + + COUNT ( * ) * 71 ) THEN - - COUNT ( * ) + - 18 WHEN + COALESCE ( + - 74, 35, + 70, - - ( - - 48 ) ) THEN + 68 * - - 89 END * + 53 - 6 END * + + 90 - - 8 - - COUNT ( 16 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1417
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) + + 9 + + 60 * + CAST( NULL AS SIGNED ) * - 26 * - COUNT( * ) / 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 9 + + 60 * + CAST ( NULL AS INTEGER ) * - 26 * - COUNT ( * ) / 15 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT DISTINCT + - 52 DIV 56 DIV 16 col1
----
0

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT + - 52 / 56 / 16 col1
----
0

query I rowsort
SELECT ALL ( - 35 )
----
-35

query I rowsort
SELECT + 71 * 45
----
3195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1421
SELECT ALL + 29 DIV + MAX( DISTINCT 2 )
----
14

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL + 29 / + MAX ( DISTINCT 2 )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1422
SELECT 20 + + 96 + - - 69 DIV + ( 72 ) * - 43
----
116

skipif mysql # not compatible
query I rowsort label-1422
SELECT 20 + + 96 + - - 69 / + ( 72 ) * - 43
----
116

query I rowsort
SELECT ALL 4 + + - 95
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT ALL 33 * + SUM( 54 ) + + ( - - 99 ) AS col1
----
1881

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL 33 * + SUM ( 54 ) + + ( - - 99 ) AS col1
----
1881

query I rowsort
SELECT ALL ( + 20 ) * 21 + - 59 * - ( - 50 ) AS col0
----
-2530

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

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

query I rowsort
SELECT 69 * 52
----
3588

query I rowsort
SELECT DISTINCT + 93 * - 96 AS col2
----
-8928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1429
SELECT ALL SUM( ALL - NULLIF ( - 45, + 65 ) ) * - 91 DIV COUNT( * ) + 62 * 66
----
-3

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL SUM ( ALL - NULLIF ( - 45, + 65 ) ) * - 91 / COUNT ( * ) + 62 * 66
----
-3

query I rowsort
SELECT DISTINCT - COALESCE ( + + 13, + 33 * + 63, + 77 * + - 12 + + 33 ) AS col1
----
-13

query I rowsort
SELECT DISTINCT 94 * - - 21 * - 52
----
-102648

query I rowsort
SELECT ALL 7 * + 12 - + 17 + 21
----
88

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

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL - ( + COUNT ( DISTINCT + 44 ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 46 col1
----
-46

query I rowsort
SELECT ALL + 39 - - 48 AS col0
----
87

query II rowsort
SELECT 85 * 85 * + 80 col2, 57
----
578000
57

query I rowsort
SELECT DISTINCT - NULLIF ( + 44, + 55 * - 72 ) AS col1
----
-44

query I rowsort
SELECT 39 * 89 - + 72
----
3399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1439
SELECT ALL + COALESCE ( + - COUNT( * ), 66 * + + 46, + - 80 + ( + 8 ) - + 36 + 6 * + 30 * - NULLIF ( - 35, 57 + + 9 ) DIV - 60 * + + 27 + + - 97 - + 8 + - COUNT( * ) DIV - 1 * - - 34 + - 36 + + 20 * - 76 * + + 73 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL + COALESCE ( + - COUNT ( * ), 66 * + + 46, + - 80 + ( + 8 ) - + 36 + 6 * + 30 * - NULLIF ( - 35, 57 + + 9 ) / - 60 * + + 27 + + - 97 - + 8 + - COUNT ( * ) / - 1 * - - 34 + - 36 + + 20 * - 76 * + + 73 ) AS col0
----
-1

query I rowsort
SELECT - ( + ( 1 ) ) + + - 41 col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT - MIN( ALL - 55 ) * 35 AS col1
----
1925

skipif mysql # not compatible
query I rowsort label-1441
SELECT - MIN ( ALL - 55 ) * 35 AS col1
----
1925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1442
SELECT - 87 * COALESCE ( 32 * 47, 23 * - ( - CAST( NULL AS SIGNED ) ) )
----
-130848

skipif mysql # not compatible
query I rowsort label-1442
SELECT - 87 * COALESCE ( 32 * 47, 23 * - ( - CAST ( NULL AS INTEGER ) ) )
----
-130848

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT + CASE COALESCE ( 34, + 18 / - 70 ) WHEN + ( - 29 ) * 52 THEN + 95 WHEN 56 THEN - COALESCE ( + 76, 76 ) WHEN COUNT( * ) * + 74 THEN NULL ELSE NULL END * 59 + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1443
SELECT + CASE COALESCE ( 34, + 18 / - 70 ) WHEN + ( - 29 ) * 52 THEN + 95 WHEN 56 THEN - COALESCE ( + 76, 76 ) WHEN COUNT ( * ) * + 74 THEN NULL ELSE NULL END * 59 + 98 AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 31, + 42, 32 + + 66 ) AS col1
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT - 33 + COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-1446
SELECT - 33 + COUNT ( * ) AS col1
----
-32

query I rowsort
SELECT ALL + 77 * 12
----
924

query I rowsort
SELECT - 51 * 20 AS col0
----
-1020

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

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT + COUNT ( - 31 ) * 95 AS col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1450
SELECT ALL COALESCE ( 49, - 14, 6 DIV 36, + 98 )
----
49

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL COALESCE ( 49, - 14, 6 / 36, + 98 )
----
49

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

skipif mysql # not compatible
query I rowsort label-1451
SELECT - MAX ( + 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT - ( 85 ) * ( 9 * + COUNT( * ) + - 44 )
----
2975

skipif mysql # not compatible
query I rowsort label-1452
SELECT - ( 85 ) * ( 9 * + COUNT ( * ) + - 44 )
----
2975

query I rowsort
SELECT DISTINCT + 32 + + 70 AS col1
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-1454
SELECT DISTINCT - 69 + - NULLIF ( 54 + - 60, 98 ) DIV 61 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-1454
SELECT DISTINCT - 69 + - NULLIF ( 54 + - 60, 98 ) / 61 AS col1
----
-69

query I rowsort
SELECT - 44 + - 79 AS col0
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-1456
SELECT DISTINCT 14 + ( - 36 ) DIV 63
----
14

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT 14 + ( - 36 ) / 63
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT + COUNT( * ) + + COALESCE ( - ( - 82 ), 41 + + COUNT( * ) ) * 24 AS col2
----
1969

skipif mysql # not compatible
query I rowsort label-1457
SELECT + COUNT ( * ) + + COALESCE ( - ( - 82 ), 41 + + COUNT ( * ) ) * 24 AS col2
----
1969

onlyif mysql # DIV for integer division: 
query I rowsort label-1458
SELECT ALL + 15 DIV 41 col2
----
0

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL + 15 / 41 col2
----
0

query I rowsort
SELECT DISTINCT 90 + 93
----
183

query I rowsort
SELECT ALL 8 * 17
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT + 31 - COUNT( * ) * 3 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1461
SELECT + 31 - COUNT ( * ) * 3 AS col1
----
28

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1463
SELECT - COALESCE ( CASE CASE 87 WHEN 77 THEN 56 WHEN + COALESCE ( ( 96 ), MAX( 19 ) - + CAST( COUNT( * ) AS DECIMAL ) ) * ( + 25 + + 50 ) THEN + COUNT( * ) * 28 END WHEN - 92 THEN NULL ELSE + 37 * - 22 + 17 * COUNT( * ) END, - 24 + + 37, + 5 )
----
797

skipif mysql # not compatible
query I rowsort label-1463
SELECT - COALESCE ( CASE CASE 87 WHEN 77 THEN 56 WHEN + COALESCE ( ( 96 ), MAX ( 19 ) - + CAST ( COUNT ( * ) AS REAL ) ) * ( + 25 + + 50 ) THEN + COUNT ( * ) * 28 END WHEN - 92 THEN NULL ELSE + 37 * - 22 + 17 * COUNT ( * ) END, - 24 + + 37, + 5 )
----
797

query I rowsort
SELECT ALL 13 + + 32 * + 15 AS col0
----
493

query I rowsort
SELECT ( - 11 ) AS col1
----
-11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT + SUM( - 9 ) + + MIN( + 84 + 71 ) AS col1
----
146

skipif mysql # not compatible
query I rowsort label-1467
SELECT + SUM ( - 9 ) + + MIN ( + 84 + 71 ) AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT + COALESCE ( - MIN( - 64 ), 43, - 10 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-1468
SELECT + COALESCE ( - MIN ( - 64 ), 43, - 10 ) AS col1
----
64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT COUNT( * ) * 83 + - CASE 81 WHEN - COUNT( * ) THEN 31 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT COUNT ( * ) * 83 + - CASE 81 WHEN - COUNT ( * ) THEN 31 ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 35 * - 78 - 77
----
-2807

query I rowsort
SELECT + 24 + - 98 AS col2
----
-74

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT CASE - 6 WHEN 52 THEN + MAX( + 35 ) * - 8 WHEN - 51 + 75 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1476
SELECT CASE - 6 WHEN 52 THEN + MAX ( + 35 ) * - 8 WHEN - 51 + 75 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1477
SELECT 44 * - 4 + 72 DIV 70 AS col1
----
-175

skipif mysql # not compatible
query I rowsort label-1477
SELECT 44 * - 4 + 72 / 70 AS col1
----
-175

query I rowsort
SELECT + ( - 7 ) * 35
----
-245

query I rowsort
SELECT - CASE WHEN NOT 93 BETWEEN NULL AND ( NULL ) THEN - 48 + 93 END / 66 + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ALL CASE COUNT( * ) WHEN + COUNT( * ) THEN 96 ELSE 6 + - 61 * + COUNT( * ) END * 63 AS col2
----
6048

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL CASE COUNT ( * ) WHEN + COUNT ( * ) THEN 96 ELSE 6 + - 61 * + COUNT ( * ) END * 63 AS col2
----
6048

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1481
SELECT - 69 DIV CAST( - 67 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1481
SELECT - 69 / CAST ( - 67 AS INTEGER ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 7 * - 33
----
-231

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

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

query I rowsort
SELECT + 26 * - 17
----
-442

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT ALL 96 * - CASE - 16 WHEN + COALESCE ( COUNT( * ), - ( 7 ) ) THEN NULL WHEN - 77 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL 96 * - CASE - 16 WHEN + COALESCE ( COUNT ( * ), - ( 7 ) ) THEN NULL WHEN - 77 THEN - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 1 * 99 col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT DISTINCT + - COUNT( * ) * + 23 + + ( COUNT( * ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT + - COUNT ( * ) * + 23 + + ( COUNT ( * ) ) AS col2
----
-22

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1489
SELECT - 53 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-1489
SELECT - 53 / 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ALL + 59 * + 77 + - COUNT( ALL 72 ) * ( - COUNT( ALL 10 ) ) col2
----
4544

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL + 59 * + 77 + - COUNT ( ALL 72 ) * ( - COUNT ( ALL 10 ) ) col2
----
4544

onlyif mysql # DIV for integer division: 
query I rowsort label-1491
SELECT + + 91 DIV 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1491
SELECT + + 91 / 62 AS col1
----
1

query I rowsort
SELECT - 85 * 14
----
-1190

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

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

query I rowsort
SELECT ALL + - 37 * 9 + - 41
----
-374

query I rowsort
SELECT - 42 - 20 AS col0
----
-62

query I rowsort
SELECT - - 50 + + 28 col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT DISTINCT + - MAX( ALL 50 ) + 16 * 25 AS col2
----
350

skipif mysql # not compatible
query I rowsort label-1497
SELECT DISTINCT + - MAX ( ALL 50 ) + 16 * 25 AS col2
----
350

query I rowsort
SELECT DISTINCT + - 80 * 31
----
-2480

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT DISTINCT - 64 + - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT - 64 + - COUNT ( * )
----
-65

query I rowsort
SELECT ALL + 11 * + + 5
----
55

query I rowsort
SELECT - 84 + - 56 AS col0
----
-140

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1504
SELECT + CAST( 9 AS SIGNED ) + 33
----
42

skipif mysql # not compatible
query I rowsort label-1504
SELECT + CAST ( 9 AS INTEGER ) + 33
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT ALL + 20 - + 94 + + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL + 20 - + 94 + + COUNT ( * )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1506
SELECT DISTINCT + CAST( NULL AS SIGNED ) - COALESCE ( COUNT( ALL 45 ), - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - COALESCE ( COUNT ( ALL 45 ), - 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT ALL 42 * + MIN( + 68 )
----
2856

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL 42 * + MIN ( + 68 )
----
2856

query I rowsort
SELECT DISTINCT 59 - - 18
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1509
SELECT DISTINCT - 66 DIV - - 19
----
-3

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT - 66 / - - 19
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL 94 * SUM( NULLIF ( 21, 10 ) ) AS col2
----
1974

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL 94 * SUM ( NULLIF ( 21, 10 ) ) AS col2
----
1974

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

query I rowsort
SELECT ALL - 48 * - 73
----
3504

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT ( - COUNT( + 19 ) ) * - CASE 80 * 39 + + 48 WHEN - 40 THEN + 46 WHEN + 0 * COUNT( * ) THEN NULL END - - 36 * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1515
SELECT ( - COUNT ( + 19 ) ) * - CASE 80 * 39 + + 48 WHEN - 40 THEN + 46 WHEN + 0 * COUNT ( * ) THEN NULL END - - 36 * 73
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT - - CAST ( + - 77 AS INTEGER ) AS col1
----
-77

query I rowsort
SELECT + 24 * 27 + 0 col0
----
648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1518
SELECT ALL - COUNT( * ) * + + 63 DIV 24
----
-2

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL - COUNT ( * ) * + + 63 / 24
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT DISTINCT - + ( - ( COUNT( * ) ) ) + 15 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT - + ( - ( COUNT ( * ) ) ) + 15 AS col0
----
16

query I rowsort
SELECT + 77 + 66
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1521
SELECT CASE - 75 WHEN COUNT( * ) THEN - ( - COUNT( * ) ) * + 68 WHEN ( + 35 ) * + 66 THEN CAST( NULL AS SIGNED ) END * - 37 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT CASE - 75 WHEN COUNT ( * ) THEN - ( - COUNT ( * ) ) * + 68 WHEN ( + 35 ) * + 66 THEN CAST ( NULL AS INTEGER ) END * - 37 + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT - MIN( DISTINCT 2 ) * 59
----
-118

skipif mysql # not compatible
query I rowsort label-1522
SELECT - MIN ( DISTINCT 2 ) * 59
----
-118

query I rowsort
SELECT ALL 30 + - + 85 - 68 * + 90
----
-6175

query I rowsort
SELECT - - 33 * - 77 + + 3
----
-2538

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1526
SELECT 88 DIV - + 3
----
-29

skipif mysql # not compatible
query I rowsort label-1526
SELECT 88 / - + 3
----
-29

query I rowsort
SELECT ALL 57 + 98 + - 70 AS col2
----
85

query I rowsort
SELECT - COALESCE ( 32, 52 + - 61 ) + + 75 AS col0
----
43

query I rowsort
SELECT ALL + 90 * + - 94
----
-8460

query I rowsort
SELECT - - 6
----
6

query I rowsort
SELECT - 40 + - 91 AS col1
----
-131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1532
SELECT DISTINCT COUNT( * ) * - + 53 + 19 DIV 37 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT COUNT ( * ) * - + 53 + 19 / 37 AS col1
----
-53

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

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

query I rowsort
SELECT 98 * - NULLIF ( 36, + NULLIF ( - 77, 57 ) ) - 7 AS col2
----
-3535

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL - 18 / + - CASE + 76 WHEN COUNT( * ) * 65 THEN + COUNT( * ) ELSE NULL END - SUM( 48 ) * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL - 18 / + - CASE + 76 WHEN COUNT ( * ) * 65 THEN + COUNT ( * ) ELSE NULL END - SUM ( 48 ) * + 91
----
NULL

query I rowsort
SELECT + 7 * - + 94
----
-658

query I rowsort
SELECT - + COALESCE ( + 99, 34 + - ( 39 ) * + ( 75 ), - 50 )
----
-99

query II rowsort
SELECT - 88 AS col1, - 67 - - 46
----
-88
-21

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1540
SELECT ALL - 52 DIV 13 * - MAX( DISTINCT 31 ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL - 52 / 13 * - MAX ( DISTINCT 31 ) AS col0
----
124

query II rowsort
SELECT 27, + 72 * + 82 AS col1
----
27
5904

query I rowsort
SELECT 82 + 73
----
155

query I rowsort
SELECT 53 * + - 8 col0
----
-424

onlyif mysql # DIV for integer division: 
query II rowsort label-1544
SELECT 35 col0, - 71 DIV 21
----
35
-3

skipif mysql # not compatible
query II rowsort label-1544
SELECT 35 col0, - 71 / 21
----
35
-3

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

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

query I rowsort
SELECT 59 + - + 67 col0
----
-8

query I rowsort
SELECT DISTINCT - 62 * + 28 col2
----
-1736

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

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

query I rowsort
SELECT 78 * - 71
----
-5538

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

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

query II rowsort
SELECT - 62 AS col2, 55
----
-62
55

query II rowsort
SELECT ALL 64 AS col0, - 82
----
64
-82

query I rowsort
SELECT 94 - 24
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT 97 DIV + - 26
----
-3

skipif mysql # not compatible
query I rowsort label-1554
SELECT 97 / + - 26
----
-3

query I rowsort
SELECT 68 + 61 col1
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-1556
SELECT 4 + - 50 DIV + 4 + 46
----
38

skipif mysql # not compatible
query I rowsort label-1556
SELECT 4 + - 50 / + 4 + 46
----
38

query II rowsort
SELECT ALL 72, - 99 * + 41 AS col0
----
72
-4059

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT 84 + - COALESCE ( - ( 2 ), 8 * COUNT( * ), 15 ) + - 12 * 30 AS col2
----
-274

skipif mysql # not compatible
query I rowsort label-1559
SELECT 84 + - COALESCE ( - ( 2 ), 8 * COUNT ( * ), 15 ) + - 12 * 30 AS col2
----
-274

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT 87 DIV - 53 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1560
SELECT 87 / - 53 AS col1
----
-1

query I rowsort
SELECT 23 * 45
----
1035

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1563
SELECT CASE + 66 WHEN + - 97 THEN 45 END * CAST( NULL AS SIGNED ) + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1563
SELECT CASE + 66 WHEN + - 97 THEN 45 END * CAST ( NULL AS INTEGER ) + 42 AS col0
----
NULL

query II rowsort
SELECT ALL - 29 AS col2, + 86
----
-29
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT ALL - NULLIF ( - COALESCE ( COALESCE ( 41, + 52 + - 49 * + 18 ), COUNT( * ), + 97, - 76, - 98 * 68 ), + 20 + 92 )
----
41

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL - NULLIF ( - COALESCE ( COALESCE ( 41, + 52 + - 49 * + 18 ), COUNT ( * ), + 97, - 76, - 98 * 68 ), + 20 + 92 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1566
SELECT - 76 DIV 24 + 57 * 17
----
966

skipif mysql # not compatible
query I rowsort label-1566
SELECT - 76 / 24 + 57 * 17
----
966

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL + SUM( ALL + 50 ) * 84 * ( 82 ) + - 34 * - 99
----
347766

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL + SUM ( ALL + 50 ) * 84 * ( 82 ) + - 34 * - 99
----
347766

query I rowsort
SELECT + 8 + + 88 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT ALL - + COUNT( * ) + - COUNT( * ) + + 12 - 51 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL - + COUNT ( * ) + - COUNT ( * ) + + 12 - 51 AS col0
----
-41

query I rowsort
SELECT DISTINCT - 82 * + - 86
----
7052

query I rowsort
SELECT + - 74 AS col2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-1572
SELECT - 75 DIV + - 37
----
2

skipif mysql # not compatible
query I rowsort label-1572
SELECT - 75 / + - 37
----
2

query I rowsort
SELECT 51 * + 18
----
918

query I rowsort
SELECT NULLIF ( 6, + 85 / - 32 )
----
6

query I rowsort
SELECT - 58 + - ( ( + 10 ) ) - + 99
----
-167

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

query I rowsort
SELECT - 72 + 75 - + + 0 + + 79 * 12 AS col0
----
951

query I rowsort
SELECT DISTINCT 46 + 50 AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1579
SELECT + ( + 48 ) * - COUNT( ALL - ( - CASE 85 WHEN + 76 * + 60 THEN ( - CAST( NULL AS SIGNED ) ) END ) )
----
0

skipif mysql # not compatible
query I rowsort label-1579
SELECT + ( + 48 ) * - COUNT ( ALL - ( - CASE 85 WHEN + 76 * + 60 THEN ( - CAST ( NULL AS INTEGER ) ) END ) )
----
0

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

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL - + CAST ( 65 AS INTEGER ) AS col1
----
-65

query II rowsort
SELECT DISTINCT - 92 col1, 4 col0
----
-92
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1582
SELECT ALL - 70 - - + COALESCE ( + - 46, - SUM( - CAST( NULL AS SIGNED ) ) * - ( - MAX( DISTINCT - 52 ) ) )
----
-116

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL - 70 - - + COALESCE ( + - 46, - SUM ( - CAST ( NULL AS INTEGER ) ) * - ( - MAX ( DISTINCT - 52 ) ) )
----
-116

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

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

query I rowsort
SELECT - ( - + 43 ) * - + 92 AS col0
----
-3956

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT 12 * + CASE - + 24 WHEN + 58 / 56 THEN + COUNT( * ) * 0 + + 85 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1585
SELECT 12 * + CASE - + 24 WHEN + 58 / 56 THEN + COUNT ( * ) * 0 + + 85 END col1
----
NULL

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

query I rowsort
SELECT - + 59 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT - + NULLIF ( - + MAX( ALL 35 ), 54 * 5 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1588
SELECT - + NULLIF ( - + MAX ( ALL 35 ), 54 * 5 ) AS col0
----
35

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

query I rowsort
SELECT 53 * - ( + 20 ) AS col0
----
-1060

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT 88 * + 8 * - COUNT( * ) * + 73
----
-51392

skipif mysql # not compatible
query I rowsort label-1591
SELECT 88 * + 8 * - COUNT ( * ) * + 73
----
-51392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1592
SELECT CAST( + 19 AS SIGNED ) - 3
----
16

skipif mysql # not compatible
query I rowsort label-1592
SELECT CAST ( + 19 AS INTEGER ) - 3
----
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT - 18 + 39 - - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-1594
SELECT - 18 + 39 - - COUNT ( * )
----
22

query I rowsort
SELECT - 94 + - + 14 - - 72
----
-36

query I rowsort
SELECT - 53 - + 33
----
-86

query I rowsort
SELECT + 65 * 75
----
4875

query I rowsort
SELECT - 71 * + + 84
----
-5964

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ALL - COUNT( * ) + 39 + + - 34 * 3 + - COUNT( * ) * 41
----
-105

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL - COUNT ( * ) + 39 + + - 34 * 3 + - COUNT ( * ) * 41
----
-105

query I rowsort
SELECT DISTINCT - 31 + - + 77
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT - 17 + + COUNT( * ) * + 69 * 32 + 85
----
2276

skipif mysql # not compatible
query I rowsort label-1601
SELECT - 17 + + COUNT ( * ) * + 69 * 32 + 85
----
2276

query I rowsort
SELECT DISTINCT 82 + + 90
----
172

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * 10 * - 59 + - 23 AS col1
----
-613

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * 10 * - 59 + - 23 AS col1
----
-613

query I rowsort
SELECT COALESCE ( + 19, - - 62 + - + 12 ) AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1606
SELECT + COUNT( * ) + COALESCE ( 10, - ( COUNT( * ) ) DIV AVG ( 32 + + 28 ) )
----
11

skipif mysql # not compatible
query I rowsort label-1606
SELECT + COUNT ( * ) + COALESCE ( 10, - ( COUNT ( * ) ) / AVG ( 32 + + 28 ) )
----
11

query I rowsort
SELECT ALL - 84 * - + 46
----
3864

query I rowsort
SELECT ALL + - 89
----
-89

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

query I rowsort
SELECT + + COALESCE ( 76, + 55 + + - 85 )
----
76

query I rowsort
SELECT ALL + 11 * 11 + + 6 * - 76 * 48 + 42 * - 7
----
-22061

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

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

query I rowsort
SELECT - + 54 - - ( + 84 )
----
30

query II rowsort
SELECT ALL 48 * - - 15, + 56 + + ( - 11 ) AS col1
----
720
45

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

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT + - COUNT ( * ) * + + 11 - + 42 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT - 36 * MIN( 41 )
----
-1476

skipif mysql # not compatible
query I rowsort label-1616
SELECT - 36 * MIN ( 41 )
----
-1476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1617
SELECT - + ( + - CASE + - 32 WHEN 62 THEN COUNT( * ) - 91 ELSE - 59 + + 45 END ) * - COALESCE ( - 59 DIV CAST( + 64 * - NULLIF ( 58, + 55 + + 69 ) AS SIGNED ) - SUM( + 3 ), - 48 - - 98 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-1617
SELECT - + ( + - CASE + - 32 WHEN 62 THEN COUNT ( * ) - 91 ELSE - 59 + + 45 END ) * - COALESCE ( - 59 / CAST ( + 64 * - NULLIF ( 58, + 55 + + 69 ) AS INTEGER ) - SUM ( + 3 ), - 48 - - 98 ) AS col1
----
-42

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

skipif mysql # not compatible
query I rowsort label-1618
SELECT CAST ( NULL AS INTEGER ) * + + 13 * + 25 * - 51 / COUNT ( * ) + - CAST ( - ( 67 ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + - 38 - - + 60
----
22

query I rowsort
SELECT - - 27 * - 34 * - - 86
----
-78948

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT ALL + NULLIF ( - CASE + + 50 WHEN + 31 * 90 THEN NULL ELSE 90 END, - COUNT( * ) )
----
-90

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL + NULLIF ( - CASE + + 50 WHEN + 31 * 90 THEN NULL ELSE 90 END, - COUNT ( * ) )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1622
SELECT + - 24 * 64 + + + COUNT( * ) + - 80 + 88 + + COUNT( * ) DIV 81
----
-1527

skipif mysql # not compatible
query I rowsort label-1622
SELECT + - 24 * 64 + + + COUNT ( * ) + - 80 + 88 + + COUNT ( * ) / 81
----
-1527

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

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

query I rowsort
SELECT DISTINCT - 80 * 39 AS col2
----
-3120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT - COUNT( * ) + - - 42
----
41

skipif mysql # not compatible
query I rowsort label-1626
SELECT - COUNT ( * ) + - - 42
----
41

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

skipif mysql # not compatible
query I rowsort label-1627
SELECT CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) + + 70
----
NULL

query II rowsort
SELECT ALL 5, - 84 AS col1
----
5
-84

query II rowsort
SELECT 46, 18 AS col2
----
46
18

query I rowsort
SELECT + 53 + + - ( - 37 ) * 49 * - 66 * + 43 col2
----
-5145241

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT - COALESCE ( 65, - 71, NULLIF ( + MAX( - 18 ), 57 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-1631
SELECT - COALESCE ( 65, - 71, NULLIF ( + MAX ( - 18 ), 57 ) )
----
-65

query I rowsort
SELECT + 59 + + - 48 AS col2
----
11

query II rowsort
SELECT + ( - 59 ) * - - 84, + 79 * - COALESCE ( 96, 10 ) col1
----
-4956
-7584

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT ALL SUM( + 10 ) col0
----
10

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL SUM ( + 10 ) col0
----
10

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

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

query II rowsort
SELECT ALL - 18 + - - 59 + 76 AS col0, CASE + 3 WHEN 52 THEN + 62 - 71 WHEN 2 THEN NULL END + 58 * - 27 AS col2
----
117
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1637
SELECT + CAST( NULLIF ( + 73, + CAST( NULL AS SIGNED ) / 72 ) AS SIGNED ) + 28 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-1637
SELECT + CAST ( NULLIF ( + 73, + CAST ( NULL AS INTEGER ) / 72 ) AS INTEGER ) + 28 AS col0
----
101

query I rowsort
SELECT + 5 - + 50 AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1639
SELECT DISTINCT 78 DIV - + 85
----
0

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT 78 / - + 85
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1640
SELECT 79 AS col2, - ( + + COALESCE ( + COUNT( * ), + COUNT( * ) ) )
----
79
-1

skipif mysql # not compatible
query II rowsort label-1640
SELECT 79 AS col2, - ( + + COALESCE ( + COUNT ( * ), + COUNT ( * ) ) )
----
79
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1641
SELECT + COALESCE ( + + CAST( - 60 AS SIGNED ), + 58 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-1641
SELECT + COALESCE ( + + CAST ( - 60 AS INTEGER ), + 58 ) AS col1
----
-60

query I rowsort
SELECT DISTINCT + + 63 * + 84 AS col2
----
5292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1643
SELECT ALL - - 8 DIV + + 96 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL - - 8 / + + 96 - + COUNT ( * )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT - + 17 * - - 13 - - 40 * COUNT( * ) * + + 3 * ( + 50 ) AS col0
----
5779

skipif mysql # not compatible
query I rowsort label-1645
SELECT - + 17 * - - 13 - - 40 * COUNT ( * ) * + + 3 * ( + 50 ) AS col0
----
5779

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT DISTINCT + COUNT( * ) * - 35 * 5 + CASE 49 WHEN ( + ( + 7 ) ) * - 50 + - 23 THEN + 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT + COUNT ( * ) * - 35 * 5 + CASE 49 WHEN ( + ( + 7 ) ) * - 50 + - 23 THEN + 79 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1647
SELECT ALL + 78 * 30 * 8 DIV - - COUNT( * ) col0
----
18720

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL + 78 * 30 * 8 / - - COUNT ( * ) col0
----
18720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1648
SELECT + CAST( - + 36 AS SIGNED ) * - 28
----
1008

skipif mysql # not compatible
query I rowsort label-1648
SELECT + CAST ( - + 36 AS INTEGER ) * - 28
----
1008

query I rowsort
SELECT - 52 * + 72 AS col0
----
-3744

query I rowsort
SELECT - - 92 + - + 67 - - + 67 AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1651
SELECT ALL + + ( - CASE 69 WHEN CAST( + COUNT( * ) AS SIGNED ) THEN 48 WHEN 81 * 76 THEN NULL WHEN 68 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL + + ( - CASE 69 WHEN CAST ( + COUNT ( * ) AS INTEGER ) THEN 48 WHEN 81 * 76 THEN NULL WHEN 68 THEN NULL END ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL + COUNT ( + + 59 ) / - 38
----
0

query I rowsort
SELECT + 87 * - ( 69 ) + + 18 AS col2
----
-5985

query II rowsort
SELECT + 38 AS col1, 68 AS col1
----
38
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT ALL + 21 DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL + 21 / - 34
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1656
SELECT 59 DIV + 64 * CAST( 91 AS SIGNED ), + ( + 87 ) * - 13 - 59 AS col1
----
0
-1190

skipif mysql # not compatible
query II rowsort label-1656
SELECT 59 / + 64 * CAST ( 91 AS INTEGER ), + ( + 87 ) * - 13 - 59 AS col1
----
0
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT COALESCE ( + 53, - 98 ) * - 52 - - MAX( DISTINCT - - 72 ) * - 62 AS col2
----
-7220

skipif mysql # not compatible
query I rowsort label-1657
SELECT COALESCE ( + 53, - 98 ) * - 52 - - MAX ( DISTINCT - - 72 ) * - 62 AS col2
----
-7220

query I rowsort
SELECT 68 * - - 96 col1
----
6528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1659
SELECT 4 + + + SUM( + - 32 ) DIV ( 38 ) * + MIN( ALL + 72 )
----
4

skipif mysql # not compatible
query I rowsort label-1659
SELECT 4 + + + SUM ( + - 32 ) / ( 38 ) * + MIN ( ALL + 72 )
----
4

query II rowsort
SELECT DISTINCT + 49 + - 2 AS col2, - 89 * + 92 AS col0
----
47
-8188

onlyif mysql # aggregate syntax: 
query II rowsort label-1661
SELECT 23, 40 + + + 36 + 61 * - 26 + SUM( 92 ) AS col0
----
23
-1418

skipif mysql # not compatible
query II rowsort label-1661
SELECT 23, 40 + + + 36 + 61 * - 26 + SUM ( 92 ) AS col0
----
23
-1418

onlyif mysql # DIV for integer division: 
query II rowsort label-1662
SELECT 13 DIV - - 67 AS col0, 28 DIV + - 76 + - 22 AS col0
----
0
-22

skipif mysql # not compatible
query II rowsort label-1662
SELECT 13 / - - 67 AS col0, 28 / + - 76 + - 22 AS col0
----
0
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT COUNT( * ) * - 43 col0
----
-43

skipif mysql # not compatible
query I rowsort label-1663
SELECT COUNT ( * ) * - 43 col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1664
SELECT ALL + 31 + + CAST( 80 AS SIGNED ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL + 31 + + CAST ( 80 AS INTEGER ) AS col0
----
111

query I rowsort
SELECT DISTINCT 9 col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT DISTINCT - 4 + + - SUM( DISTINCT - 32 ) col1
----
28

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT - 4 + + - SUM ( DISTINCT - 32 ) col1
----
28

query I rowsort
SELECT 97 - 45 + 23
----
75

query II rowsort
SELECT ALL 14 AS col1, - 41 AS col1
----
14
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT COUNT( * ) * + + 11 col2
----
11

skipif mysql # not compatible
query I rowsort label-1669
SELECT COUNT ( * ) * + + 11 col2
----
11

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

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

query I rowsort
SELECT ALL 82 + - 51 AS col1
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-1672
SELECT ALL 25 col2, - 61 DIV - 30
----
25
2

skipif mysql # not compatible
query II rowsort label-1672
SELECT ALL 25 col2, - 61 / - 30
----
25
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT COALESCE ( + 7, - - MIN( DISTINCT - 46 ), 93 * + 54 ) * 3 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1673
SELECT COALESCE ( + 7, - - MIN ( DISTINCT - 46 ), 93 * + 54 ) * 3 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT ( + 93 ) + + ( + SUM( DISTINCT - 94 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1674
SELECT ( + 93 ) + + ( + SUM ( DISTINCT - 94 ) ) AS col0
----
-1

query I rowsort
SELECT NULLIF ( + 14, - - 89 * + 75 / - 71 )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-1676
SELECT - + 3 AS col1, - 74 * + COALESCE ( + + 86, COUNT( * ), - 82 ) + 38 AS col1
----
-3
-6326

skipif mysql # not compatible
query II rowsort label-1676
SELECT - + 3 AS col1, - 74 * + COALESCE ( + + 86, COUNT ( * ), - 82 ) + 38 AS col1
----
-3
-6326

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT 18 * - - 94 * - COUNT( * )
----
-1692

skipif mysql # not compatible
query I rowsort label-1677
SELECT 18 * - - 94 * - COUNT ( * )
----
-1692

onlyif mysql # DIV for integer division: 
query I rowsort label-1678
SELECT ALL + + 57 DIV + - 78
----
0

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL + + 57 / + - 78
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1679
SELECT DISTINCT - CAST( + 87 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT - CAST ( + 87 AS INTEGER )
----
-87

query II rowsort
SELECT ALL COALESCE ( 41, + 75 + + 30 ) AS col1, + 60 AS col0
----
41
60

query II rowsort
SELECT DISTINCT - 67, 74 AS col2
----
-67
74

onlyif mysql # aggregate syntax: 
query II rowsort label-1682
SELECT DISTINCT SUM( ALL + 71 ) * - - COUNT( * ) - 91, SUM( ALL - + 33 ) AS col2
----
-20
-33

skipif mysql # not compatible
query II rowsort label-1682
SELECT DISTINCT SUM ( ALL + 71 ) * - - COUNT ( * ) - 91, SUM ( ALL - + 33 ) AS col2
----
-20
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT + SUM( ALL 36 ) * 45
----
1620

skipif mysql # not compatible
query I rowsort label-1683
SELECT + SUM ( ALL 36 ) * 45
----
1620

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT - 0 DIV 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1684
SELECT - 0 / 4 AS col2
----
0

query II rowsort
SELECT ALL - + 74 AS col1, - 95 col1
----
-74
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1686
SELECT - - NULLIF ( - 46, + CAST( NULL AS SIGNED ) * 71 / 27 * - COUNT( * ) * COUNT( * ) + - 67 + CAST( - ( + ( 2 ) ) AS SIGNED ) ) * CAST( NULL AS SIGNED ) + + MAX( 57 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT - - NULLIF ( - 46, + CAST ( NULL AS INTEGER ) * 71 / 27 * - COUNT ( * ) * COUNT ( * ) + - 67 + CAST ( - ( + ( 2 ) ) AS INTEGER ) ) * CAST ( NULL AS INTEGER ) + + MAX ( 57 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT + 57 * - 50 - NULLIF ( - COUNT( * ), - COUNT( * ) - 93 ) + 54
----
-2795

skipif mysql # not compatible
query I rowsort label-1687
SELECT + 57 * - 50 - NULLIF ( - COUNT ( * ), - COUNT ( * ) - 93 ) + 54
----
-2795

onlyif mysql # DIV for integer division: 
query I rowsort label-1688
SELECT ALL 97 DIV + 66 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL 97 / + 66 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1689
SELECT 6 AS col0, MIN( 45 ) + - - 91 AS col2
----
6
136

skipif mysql # not compatible
query II rowsort label-1689
SELECT 6 AS col0, MIN ( 45 ) + - - 91 AS col2
----
6
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1690
SELECT + + 15 / - - 78 + + 31 * - 98 + + - COUNT( * ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1690
SELECT + + 15 / - - 78 + + 31 * - 98 + + - COUNT ( * ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT DISTINCT - + COUNT( - 15 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT - + COUNT ( - 15 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT + - COALESCE ( + COUNT( * ), + 26 ) * COUNT( * ) + + 45 - + 68 + COUNT( * ) + - 72
----
-95

skipif mysql # not compatible
query I rowsort label-1692
SELECT + - COALESCE ( + COUNT ( * ), + 26 ) * COUNT ( * ) + + 45 - + 68 + COUNT ( * ) + - 72
----
-95

query I rowsort
SELECT ALL 66 + 20 AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1694
SELECT CAST( - + 33 AS DECIMAL ) + - - 7 * CAST( NULL AS SIGNED ) * CAST( + 43 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1694
SELECT CAST ( - + 33 AS REAL ) + - - 7 * CAST ( NULL AS INTEGER ) * CAST ( + 43 AS INTEGER )
----
NULL

query I rowsort
SELECT 85 col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT COUNT( * ) * + + 41 + 88 + + 9 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-1696
SELECT COUNT ( * ) * + + 41 + 88 + + 9 AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT MIN( DISTINCT - 80 ) * + - 93 * + 82 + - - 16 + + 44 * + ( 4 ) AS col2
----
610272

skipif mysql # not compatible
query I rowsort label-1697
SELECT MIN ( DISTINCT - 80 ) * + - 93 * + 82 + - - 16 + + 44 * + ( 4 ) AS col2
----
610272

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT DISTINCT 65 + - COUNT( * ) + + 24 col0
----
88

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT 65 + - COUNT ( * ) + + 24 col0
----
88

query I rowsort
SELECT ALL - 99 + - 36 * 22
----
-891

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1700
SELECT ALL + CAST( NULL AS SIGNED ) + - - 35, 25 + 24 AS col2
----
NULL
49

skipif mysql # not compatible
query II rowsort label-1700
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 35, 25 + 24 AS col2
----
NULL
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1701
SELECT 97 DIV - 27
----
-3

skipif mysql # not compatible
query I rowsort label-1701
SELECT 97 / - 27
----
-3

query I rowsort
SELECT 32 + 0
----
32

query I rowsort
SELECT ALL - ( + 11 ) - + + ( - + 90 ) - + - 70 col1
----
149

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT 19 + - CASE - + 93 WHEN + ( CASE AVG ( DISTINCT + 88 ) WHEN + 55 * COUNT( * ) THEN - 84 * - 43 END ) THEN - 81 END * COUNT( ALL 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1705
SELECT 19 + - CASE - + 93 WHEN + ( CASE AVG ( DISTINCT + 88 ) WHEN + 55 * COUNT ( * ) THEN - 84 * - 43 END ) THEN - 81 END * COUNT ( ALL 80 )
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-1706
SELECT 22 DIV 55 AS col0, - 88, - 68 DIV 5 * - 20 AS col1
----
0
-88
260

skipif mysql # not compatible
query III rowsort label-1706
SELECT 22 / 55 AS col0, - 88, - 68 / 5 * - 20 AS col1
----
0
-88
260

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT DISTINCT + 94 * + + 13 * + MIN( DISTINCT - 75 )
----
-91650

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT + 94 * + + 13 * + MIN ( DISTINCT - 75 )
----
-91650

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1709
SELECT - 98 + - CAST( - 37 AS SIGNED ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-1709
SELECT - 98 + - CAST ( - 37 AS INTEGER ) AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1710
SELECT COUNT( * ) + 79 AS col1, - 84 + 53 * + COALESCE ( - NULLIF ( + - 56, - 28 ), + ( - 99 ) * CAST( NULL AS SIGNED ) - 10, 53 * + 79 - 68 )
----
80
2884

skipif mysql # not compatible
query II rowsort label-1710
SELECT COUNT ( * ) + 79 AS col1, - 84 + 53 * + COALESCE ( - NULLIF ( + - 56, - 28 ), + ( - 99 ) * CAST ( NULL AS INTEGER ) - 10, 53 * + 79 - 68 )
----
80
2884

query III rowsort
SELECT 36 * + 11 * + 60, 10 + + 59 AS col2, - 5 * + 44 AS col0
----
23760
69
-220

query II rowsort
SELECT - 25 + - 27 + NULLIF ( - + 23, 28 ) AS col2, 57 AS col2
----
-75
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1713
SELECT + 21 * - + 43 + - 66 * - COUNT( * ) * + - CAST( NULL AS SIGNED ) * ( - + MAX( DISTINCT - 4 ) ) + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT + 21 * - + 43 + - 66 * - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * ( - + MAX ( DISTINCT - 4 ) ) + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ALL - COUNT( * ) * - 62 + - 67 + + MAX( COALESCE ( 45, - 84, - 57 * + 28 ) ) + 29 * + 29 AS col2
----
881

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL - COUNT ( * ) * - 62 + - 67 + + MAX ( COALESCE ( 45, - 84, - 57 * + 28 ) ) + 29 * + 29 AS col2
----
881

query I rowsort
SELECT ALL - + 47 AS col0
----
-47

query I rowsort
SELECT DISTINCT + + 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT DISTINCT SUM( - + 48 ) * ( - 20 ) AS col0
----
960

skipif mysql # not compatible
query I rowsort label-1717
SELECT DISTINCT SUM ( - + 48 ) * ( - 20 ) AS col0
----
960

query I rowsort
SELECT + 14 + + 26
----
40

query II rowsort
SELECT ALL + 75 * - 37 * 97 + - - 28 + + 32 AS col2, 89 + ( 81 ) + - 6 * + 98 * - 5
----
-269115
3110

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT - MAX( ALL + 44 ) * 10 AS col2
----
-440

skipif mysql # not compatible
query I rowsort label-1720
SELECT - MAX ( ALL + 44 ) * 10 AS col2
----
-440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1721
SELECT CAST( NULL AS SIGNED ) * - + 8 * NULLIF ( + 82, 28 / 37 * + 29 ) + - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT CAST ( NULL AS INTEGER ) * - + 8 * NULLIF ( + 82, 28 / 37 * + 29 ) + - 5 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1722
SELECT + ( + NULLIF ( - 52, COUNT( * ) ) ) * - + ( + CAST( COUNT( DISTINCT 85 ) AS SIGNED ) ) * + ( - 98 ) + 86
----
-5010

skipif mysql # not compatible
query I rowsort label-1722
SELECT + ( + NULLIF ( - 52, COUNT ( * ) ) ) * - + ( + CAST ( COUNT ( DISTINCT 85 ) AS INTEGER ) ) * + ( - 98 ) + 86
----
-5010

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT - COUNT( * ) * + 44 + - - 52 * - + 75 AS col1
----
-3944

skipif mysql # not compatible
query I rowsort label-1723
SELECT - COUNT ( * ) * + 44 + - - 52 * - + 75 AS col1
----
-3944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1724
SELECT ALL 50 * + CAST( NULL AS SIGNED ) + - 9 AS col1, + CASE WHEN NOT 18 IS NOT NULL THEN NULL ELSE - - CAST( NULL AS SIGNED ) / - - COUNT( * ) END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1724
SELECT ALL 50 * + CAST ( NULL AS INTEGER ) + - 9 AS col1, + CASE WHEN NOT 18 IS NOT NULL THEN NULL ELSE - - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) END AS col1
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1725
SELECT DISTINCT 19 DIV - + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT 19 / - + 81 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1726
SELECT + COUNT( * ) * COUNT( * ) * + - 44 col2, MAX( ALL + - 72 ) * + CASE + MIN( DISTINCT + 73 ) WHEN + 28 * - 33 THEN + 55 / + 11 END / 92 - 14 + + CAST( 11 AS SIGNED ) AS col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-1726
SELECT + COUNT ( * ) * COUNT ( * ) * + - 44 col2, MAX ( ALL + - 72 ) * + CASE + MIN ( DISTINCT + 73 ) WHEN + 28 * - 33 THEN + 55 / + 11 END / 92 - 14 + + CAST ( 11 AS INTEGER ) AS col1
----
-44
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1727
SELECT ALL 54 DIV + 96 col0
----
0

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL 54 / + 96 col0
----
0

query I rowsort
SELECT ALL 87 * + CASE + 36 WHEN + 50 + 83 THEN - - 4 END * + 27 + - + 22
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1729
SELECT MIN ( + 92 )
----
92

query I rowsort
SELECT - 88 * 38 AS col1
----
-3344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT + 18 * 76 * + - 79 - + - CAST( + COUNT( * ) AS SIGNED ) - ( + 61 ) + ( 80 )
----
-108052

skipif mysql # not compatible
query I rowsort label-1731
SELECT + 18 * 76 * + - 79 - + - CAST ( + COUNT ( * ) AS INTEGER ) - ( + 61 ) + ( 80 )
----
-108052

query I rowsort
SELECT + 52 * + 17 AS col2
----
884

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1734
SELECT DISTINCT COALESCE ( - 89, SUM( + 13 ), - COALESCE ( + - 89, - CAST( - 39 AS SIGNED ) * ( - 13 * - 53 ) ) * CASE 63 - - 7 WHEN - ( 24 ) THEN COUNT( * ) ELSE NULL END + 78 ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-1734
SELECT DISTINCT COALESCE ( - 89, SUM ( + 13 ), - COALESCE ( + - 89, - CAST ( - 39 AS INTEGER ) * ( - 13 * - 53 ) ) * CASE 63 - - 7 WHEN - ( 24 ) THEN COUNT ( * ) ELSE NULL END + 78 ) col0
----
-89

query I rowsort
SELECT - 5 - - 68 AS col1
----
63

query I rowsort
SELECT - 46 * + + 23
----
-1058

query II rowsort
SELECT ALL + 35 AS col2, + 81 * 55
----
35
4455

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

skipif mysql # not compatible
query I rowsort label-1738
SELECT + COUNT ( * ) + - + 48 + + 12 AS col1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT - 73 DIV 6 col2
----
-12

skipif mysql # not compatible
query I rowsort label-1739
SELECT - 73 / 6 col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT + 12 * 94 * - 16 * + 52 * + 59 - - 66 * - - CAST( - 28 AS SIGNED ) * - 55 + - 85 AS col2
----
-55269709

skipif mysql # not compatible
query I rowsort label-1740
SELECT + 12 * 94 * - 16 * + 52 * + 59 - - 66 * - - CAST ( - 28 AS INTEGER ) * - 55 + - 85 AS col2
----
-55269709

query I rowsort
SELECT DISTINCT - + 65 * - 87 * 32
----
180960

onlyif mysql # aggregate syntax: 
query II rowsort label-1742
SELECT - - 58, 58 + 64 + + 52 * + 91 * - 69 - - 60 + - + COUNT( * ) * - 7 AS col0
----
58
-326319

skipif mysql # not compatible
query II rowsort label-1742
SELECT - - 58, 58 + 64 + + 52 * + 91 * - 69 - - 60 + - + COUNT ( * ) * - 7 AS col0
----
58
-326319

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1744
SELECT - + 85 DIV 45 DIV - - 98 * + 93 + 50 + + 4 * + COUNT( * ) * + COUNT( * ) + 88
----
142

skipif mysql # not compatible
query I rowsort label-1744
SELECT - + 85 / 45 / - - 98 * + 93 + 50 + + 4 * + COUNT ( * ) * + COUNT ( * ) + 88
----
142

query I rowsort
SELECT - - 69 * - - 58 AS col1
----
4002

query I rowsort
SELECT DISTINCT + 63 * + 34 * - + CASE - 91 WHEN + - 23 + ( - 95 ) * + + 68 * 59 THEN + 47 END * - ( - 23 )
----
NULL

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

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

query I rowsort
SELECT - 60 col2
----
-60

query I rowsort
SELECT ALL - - 85 + - - 82
----
167

query I rowsort
SELECT ALL 15 + - 93
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT DISTINCT CASE + 21 WHEN - 79 * - 12 + - 62 * + 2 THEN - 64 / + COUNT( * ) - ( - 92 ) * 24 + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT CASE + 21 WHEN - 79 * - 12 + - 62 * + 2 THEN - 64 / + COUNT ( * ) - ( - 92 ) * 24 + 88 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1752
SELECT ALL 10 DIV + ( - - 99 ) + - + 13 - 66 * - 63 * + + 92 - 32 * 72
----
380219

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL 10 / + ( - - 99 ) + - + 13 - 66 * - 63 * + + 92 - 32 * 72
----
380219

query I rowsort
SELECT + AVG ( ALL + CASE - 22 WHEN + + 59 * - 90 - + 92 THEN 98 ELSE NULL END )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1755
SELECT ALL + COALESCE ( 41, + 85 + - 35 - + 47 * + AVG ( - + CAST( NULLIF ( 29, + 71 ) AS SIGNED ) ), 86 - - 44 ) DIV + 42 + + 31 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL + COALESCE ( 41, + 85 + - 35 - + 47 * + AVG ( - + CAST ( NULLIF ( 29, + 71 ) AS INTEGER ) ), 86 - - 44 ) / + 42 + + 31 AS col0
----
31

query I rowsort
SELECT + + 78 * 96 AS col0
----
7488

query I rowsort
SELECT ( - 36 )
----
-36

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

query I rowsort
SELECT ALL 13 * + 75
----
975

query I rowsort
SELECT ALL 15 * 7 + 95 col0
----
200

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1762
SELECT - ( SUM( + + 44 ) ) * COUNT( * ) * 33 + - + 76 + + + 50 * + COUNT( * ) + 27 * - 63 + - CAST( + 80 AS SIGNED ) AS col1
----
-3259

skipif mysql # not compatible
query I rowsort label-1762
SELECT - ( SUM ( + + 44 ) ) * COUNT ( * ) * 33 + - + 76 + + + 50 * + COUNT ( * ) + 27 * - 63 + - CAST ( + 80 AS INTEGER ) AS col1
----
-3259

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

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

query I rowsort
SELECT - 59 + + - 81 * + + 42 + 38 + 68 + + 49 * + 46 * NULLIF ( - 11, - 16 )
----
-28149

query I rowsort
SELECT + 65 - + 13
----
52

query I rowsort
SELECT - 51 * ( + - 76 ) + + + 54 AS col0
----
3930

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT + SUM( - - 74 ) * - 88
----
-6512

skipif mysql # not compatible
query I rowsort label-1767
SELECT + SUM ( - - 74 ) * - 88
----
-6512

onlyif mysql # DIV for integer division: 
query I rowsort label-1768
SELECT ALL ( 19 ) DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL ( 19 ) / 99
----
0

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

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

query II rowsort
SELECT + 5 + + 71, - 16 col2
----
76
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1771
SELECT ALL NULLIF ( + 56, - COUNT( * ) * 68 - - - 62 * - ( + + 26 ) * COUNT( * ) ) DIV + 77 + 53 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL NULLIF ( + 56, - COUNT ( * ) * 68 - - - 62 * - ( + + 26 ) * COUNT ( * ) ) / + 77 + 53 AS col0
----
53

query I rowsort
SELECT DISTINCT 28 col2
----
28

query I rowsort
SELECT + 81 + 24
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT ALL - 37 * COUNT( * ) * + 26
----
-962

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL - 37 * COUNT ( * ) * + 26
----
-962

query I rowsort
SELECT + 99 * - 9
----
-891

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT COALESCE ( COUNT( * ), + - 95 )
----
1

skipif mysql # not compatible
query I rowsort label-1777
SELECT COALESCE ( COUNT ( * ), + - 95 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1778
SELECT + - CAST( - ( - + 97 ) AS SIGNED ) + + 50 * - - 23 AS col1
----
1053

skipif mysql # not compatible
query I rowsort label-1778
SELECT + - CAST ( - ( - + 97 ) AS INTEGER ) + + 50 * - - 23 AS col1
----
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL + SUM( ALL 29 ) * - + 44
----
-1276

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL + SUM ( ALL 29 ) * - + 44
----
-1276

onlyif mysql # DIV for integer division: 
query I rowsort label-1780
SELECT - + CASE - 85 WHEN 18 THEN NULL ELSE + 33 DIV + 77 END * - - 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1780
SELECT - + CASE - 85 WHEN 18 THEN NULL ELSE + 33 / + 77 END * - - 17 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1781
SELECT - - CAST( NULL AS SIGNED ) + + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT - - CAST ( NULL AS INTEGER ) + + - 73
----
NULL

query I rowsort
SELECT ALL - + 50 + + + 71 + - 77
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT + 33 + - + 63 * - COUNT( + + 17 ) + + + 95
----
191

skipif mysql # not compatible
query I rowsort label-1783
SELECT + 33 + - + 63 * - COUNT ( + + 17 ) + + + 95
----
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT - ( CAST( - - 59 AS SIGNED ) ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-1784
SELECT - ( CAST ( - - 59 AS INTEGER ) ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL ( 4 ) * - 16 * + 59 + + COUNT( NULLIF ( - + 87, 79 ) ) * ( + COUNT( * ) ) AS col2
----
-3775

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL ( 4 ) * - 16 * + 59 + + COUNT ( NULLIF ( - + 87, 79 ) ) * ( + COUNT ( * ) ) AS col2
----
-3775

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL - SUM( DISTINCT 72 ) + 12
----
-60

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL - SUM ( DISTINCT 72 ) + 12
----
-60

query I rowsort
SELECT + 12 + 45 * - - 32 AS col1
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT COUNT( DISTINCT 42 ) + 16 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-1788
SELECT COUNT ( DISTINCT 42 ) + 16 AS col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-1789
SELECT - + COUNT( DISTINCT 61 ) AS col2, - COALESCE ( + ( - + 57 ), + 81, - COALESCE ( + 98, 97 ) * + COUNT( * ) + - ( 20 ) )
----
-1
57

skipif mysql # not compatible
query II rowsort label-1789
SELECT - + COUNT ( DISTINCT 61 ) AS col2, - COALESCE ( + ( - + 57 ), + 81, - COALESCE ( + 98, 97 ) * + COUNT ( * ) + - ( 20 ) )
----
-1
57

query II rowsort
SELECT + 96 + + + 93 * - - 45 + 77 col0, - 90 AS col0
----
4358
-90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1791
SELECT ALL - MIN( ALL - CAST( NULL AS DECIMAL ) ) + - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL - MIN ( ALL - CAST ( NULL AS REAL ) ) + - 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT ALL + COALESCE ( - 17, + 21 ) * + 35 + - COUNT( ( - ( + - 10 ) ) )
----
-596

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL + COALESCE ( - 17, + 21 ) * + 35 + - COUNT ( ( - ( + - 10 ) ) )
----
-596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1793
SELECT CASE + COUNT( ALL - - ( - 32 ) ) WHEN + 0 THEN - 19 WHEN + + 93 THEN - + AVG ( DISTINCT + 55 ) * + CAST( NULL AS SIGNED ) END + ( + 86 + + 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT CASE + COUNT ( ALL - - ( - 32 ) ) WHEN + 0 THEN - 19 WHEN + + 93 THEN - + AVG ( DISTINCT + 55 ) * + CAST ( NULL AS INTEGER ) END + ( + 86 + + 53 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1794
SELECT 52 + 31 * AVG ( ALL - NULLIF ( - + 43, 35 ) ) * CAST( NULL AS SIGNED ) + 64 + 41 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1794
SELECT 52 + 31 * AVG ( ALL - NULLIF ( - + 43, 35 ) ) * CAST ( NULL AS INTEGER ) + 64 + 41 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - ( - 59 ) AS col2, 7 * - - 30 AS col1
----
59
210

query I rowsort
SELECT 11 + - - 44
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1797
SELECT MAX( - 35 ) * - - 17 * CASE + 8 WHEN 77 THEN + + 21 WHEN - COUNT( * ) THEN + AVG ( 71 ) + ( - 22 ) * + 91 END + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT MAX ( - 35 ) * - - 17 * CASE + 8 WHEN 77 THEN + + 21 WHEN - COUNT ( * ) THEN + AVG ( 71 ) + ( - 22 ) * + 91 END + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 7 * - 86
----
-602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1799
SELECT + 30 DIV - 56 + SUM( + 92 ) - - ( - - 45 ) + 9
----
146

skipif mysql # not compatible
query I rowsort label-1799
SELECT + 30 / - 56 + SUM ( + 92 ) - - ( - - 45 ) + 9
----
146

query I rowsort
SELECT DISTINCT - NULLIF ( + 2, - 33 ) AS col2
----
-2

query I rowsort
SELECT 13 * + 82
----
1066

query I rowsort
SELECT DISTINCT - 86 - + + 78
----
-164

query I rowsort
SELECT 11 col1
----
11

query I rowsort
SELECT ALL - CASE + 47 WHEN + - 88 * - 57 * + CASE 93 WHEN 92 * + 85 * + 78 * + + 61 THEN 24 + 0 ELSE NULL END * - 65 THEN NULL WHEN - 90 * 2 THEN 22 ELSE NULL END
----
NULL

query I rowsort
SELECT 3 * - + 70 AS col1
----
-210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1806
SELECT 41 / - SUM( + 39 ) + - 20 * 71 * 66 * - CASE + MAX( DISTINCT - - 75 ) WHEN 37 THEN 21 WHEN COUNT( * ) + NULLIF ( - MIN( 4 ), + 43 * 33 ) THEN + 16 + CAST( 83 AS SIGNED ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT 41 / - SUM ( + 39 ) + - 20 * 71 * 66 * - CASE + MAX ( DISTINCT - - 75 ) WHEN 37 THEN 21 WHEN COUNT ( * ) + NULLIF ( - MIN ( 4 ), + 43 * 33 ) THEN + 16 + CAST ( 83 AS INTEGER ) ELSE NULL END col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1808
SELECT ALL - CASE - + COUNT( * ) WHEN - + COUNT( * ) + + 57 THEN NULL WHEN 80 THEN NULL WHEN 81 DIV - 63 THEN + + 51 * 56 WHEN + COUNT( * ) THEN + 65 ELSE COUNT( * ) END
----
-2856

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL - CASE - + COUNT ( * ) WHEN - + COUNT ( * ) + + 57 THEN NULL WHEN 80 THEN NULL WHEN 81 / - 63 THEN + + 51 * 56 WHEN + COUNT ( * ) THEN + 65 ELSE COUNT ( * ) END
----
-2856

query I rowsort
SELECT DISTINCT - 61 AS col0
----
-61

query I rowsort
SELECT DISTINCT + CASE + - 79 WHEN + + 64 THEN NULL WHEN - 76 * - - 58 THEN NULL ELSE + 43 END * - 43 * - 32 + - COALESCE ( 84, ( - 49 ) )
----
59084

onlyif mysql # aggregate syntax: 
query II rowsort label-1811
SELECT DISTINCT - 73, COUNT( * ) + + - 17 AS col1
----
-73
-16

skipif mysql # not compatible
query II rowsort label-1811
SELECT DISTINCT - 73, COUNT ( * ) + + - 17 AS col1
----
-73
-16

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

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

query I rowsort
SELECT + - 49 AS col2
----
-49

query I rowsort
SELECT + 85 + + 35 col2
----
120

query I rowsort
SELECT 39 + CASE + 5 WHEN - 58 THEN 75 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1816
SELECT ALL 47 + + COUNT( * ) + + - 19 col1, - 73 * + + 28
----
29
-2044

skipif mysql # not compatible
query II rowsort label-1816
SELECT ALL 47 + + COUNT ( * ) + + - 19 col1, - 73 * + + 28
----
29
-2044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1817
SELECT + COALESCE ( + 22, COUNT( + + 92 ) DIV + 38 )
----
22

skipif mysql # not compatible
query I rowsort label-1817
SELECT + COALESCE ( + 22, COUNT ( + + 92 ) / + 38 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT DISTINCT - - 68 + + CASE 8 WHEN + 93 THEN - COUNT( * ) * + COALESCE ( + 65, + 69 + - 97 - + 17 * - COUNT( * ) ) * - 70 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT - - 68 + + CASE 8 WHEN + 93 THEN - COUNT ( * ) * + COALESCE ( + 65, + 69 + - 97 - + 17 * - COUNT ( * ) ) * - 70 ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL - 72 + - + 4
----
-76

query I rowsort
SELECT ALL 18 + - - 51 AS col0
----
69

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1822
SELECT + COUNT( * ) AS col1, - 26 * 91 - - + 72
----
1
-2294

skipif mysql # not compatible
query II rowsort label-1822
SELECT + COUNT ( * ) AS col1, - 26 * 91 - - + 72
----
1
-2294

query I rowsort
SELECT 87 * - 77 AS col1
----
-6699

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT + 84 - - + 24 + + - 87 + 41 * - SUM( DISTINCT + 92 ) + 19 + - 1 - COUNT( * ) AS col0
----
-3734

skipif mysql # not compatible
query I rowsort label-1824
SELECT + 84 - - + 24 + + - 87 + 41 * - SUM ( DISTINCT + 92 ) + 19 + - 1 - COUNT ( * ) AS col0
----
-3734

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT ALL MIN( ALL - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL MIN ( ALL - 16 )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1826
SELECT DISTINCT - COUNT( ALL - 11 ) * + + 98 * + 51 * COALESCE ( - 13, + 68 DIV ( - 89 ) * + - COUNT( * ) + + 59 DIV 3 - + 5, 10 ) AS col2
----
64974

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT - COUNT ( ALL - 11 ) * + + 98 * + 51 * COALESCE ( - 13, + 68 / ( - 89 ) * + - COUNT ( * ) + + 59 / 3 - + 5, 10 ) AS col2
----
64974

query I rowsort
SELECT ALL + 45 - + 26 AS col0
----
19

query I rowsort
SELECT DISTINCT 25 * - 89 * - 15 col2
----
33375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1829
SELECT DISTINCT 60 - + CASE + COUNT( * ) WHEN + ( COALESCE ( + 93, 66 / 25 / + + ( - 56 ) - 17 - 95 * - 30, 55 * 46 ) ) THEN SUM( DISTINCT + 28 ) WHEN + 20 + COUNT( * ) THEN + 20 WHEN + 12 THEN + 41 * CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT 60 - + CASE + COUNT ( * ) WHEN + ( COALESCE ( + 93, 66 / 25 / + + ( - 56 ) - 17 - 95 * - 30, 55 * 46 ) ) THEN SUM ( DISTINCT + 28 ) WHEN + 20 + COUNT ( * ) THEN + 20 WHEN + 12 THEN + 41 * CAST ( NULL AS INTEGER ) END
----
NULL

query II rowsort
SELECT - 40, 28 AS col0
----
-40
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT COUNT( DISTINCT + 67 ) + + 82 col0
----
83

skipif mysql # not compatible
query I rowsort label-1831
SELECT COUNT ( DISTINCT + 67 ) + + 82 col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-1832
SELECT + 43, 54 + + CASE - COUNT( * ) WHEN 53 + 83 + + ( 38 ) THEN + ( 62 ) WHEN + 6 THEN 48 END / - ( + 15 * 83 ) AS col0
----
43
NULL

skipif mysql # not compatible
query II rowsort label-1832
SELECT + 43, 54 + + CASE - COUNT ( * ) WHEN 53 + 83 + + ( 38 ) THEN + ( 62 ) WHEN + 6 THEN 48 END / - ( + 15 * 83 ) AS col0
----
43
NULL

query I rowsort
SELECT + 0 * 73 + + ( + 55 ) + + 25 col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1834
SELECT - 6 DIV + MIN( ALL 17 ) + COUNT( + NULLIF ( + + 33, - ( + 55 ) * + 44 * + 86 ) ) * + - 16 * 17
----
-272

skipif mysql # not compatible
query I rowsort label-1834
SELECT - 6 / + MIN ( ALL 17 ) + COUNT ( + NULLIF ( + + 33, - ( + 55 ) * + 44 * + 86 ) ) * + - 16 * 17
----
-272

query I rowsort
SELECT ALL 35 * + ( + 15 ) col2
----
525

query I rowsort
SELECT DISTINCT 53 * - 26 AS col0
----
-1378

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT 38 * + SUM( 37 ) col1
----
1406

skipif mysql # not compatible
query I rowsort label-1837
SELECT 38 * + SUM ( 37 ) col1
----
1406

query I rowsort
SELECT DISTINCT + 64 * 79 * 31 AS col0
----
156736

query II rowsort
SELECT ALL - 77 AS col1, - 62 + - 95 AS col0
----
-77
-157

query I rowsort
SELECT + CASE + - 72 WHEN - 30 THEN 8 END / - ( - 32 ) + - 81 + - 71 AS col2
----
NULL

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

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

query I rowsort
SELECT 28 * - 36
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT 47 * + + 36 + CASE - 68 WHEN - 29 THEN NULL WHEN 87 * + + ( - COALESCE ( - COUNT( * ), - 24 ) ) * + 85 + + 41 * 95 THEN NULL ELSE + COUNT( * ) END col0
----
1693

skipif mysql # not compatible
query I rowsort label-1843
SELECT 47 * + + 36 + CASE - 68 WHEN - 29 THEN NULL WHEN 87 * + + ( - COALESCE ( - COUNT ( * ), - 24 ) ) * + 85 + + 41 * 95 THEN NULL ELSE + COUNT ( * ) END col0
----
1693

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

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

query I rowsort
SELECT DISTINCT - 37 + + 79 + - - 50 AS col1
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1846
SELECT + COUNT( * ), - NULLIF ( - + 38, MAX( DISTINCT - + NULLIF ( + - 39, - 94 * - 85 ) ) + + 99 ) AS col2
----
1
38

skipif mysql # not compatible
query II rowsort label-1846
SELECT + COUNT ( * ), - NULLIF ( - + 38, MAX ( DISTINCT - + NULLIF ( + - 39, - 94 * - 85 ) ) + + 99 ) AS col2
----
1
38

query I rowsort
SELECT ALL - - 8 + 78 - 60 * 65 * 81
----
-315814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1848
SELECT CASE - 26 WHEN + - 86 THEN + + 37 WHEN + 43 + + 17 / 92 * - - COUNT( * ) + - - 25 + - - COUNT( * ) THEN NULL ELSE NULL END + + 36 / - CASE 46 * - CASE - 97 WHEN - 34 * COUNT( * ) THEN 93 / CAST( NULL AS SIGNED ) END WHEN 31 THEN NULL ELSE 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT CASE - 26 WHEN + - 86 THEN + + 37 WHEN + 43 + + 17 / 92 * - - COUNT ( * ) + - - 25 + - - COUNT ( * ) THEN NULL ELSE NULL END + + 36 / - CASE 46 * - CASE - 97 WHEN - 34 * COUNT ( * ) THEN 93 / CAST ( NULL AS INTEGER ) END WHEN 31 THEN NULL ELSE 14 END
----
NULL

query I rowsort
SELECT ALL + + 75 AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1850
SELECT DISTINCT + 15 AS col0, - SUM( - 75 ) DIV 67 col2
----
15
1

skipif mysql # not compatible
query II rowsort label-1850
SELECT DISTINCT + 15 AS col0, - SUM ( - 75 ) / 67 col2
----
15
1

query I rowsort
SELECT ALL + COALESCE ( 7, - 5 + - 22 ) * + 28 * - 22 * - + 43 + - - 49 AS col1
----
185465

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT ALL + 43 + MIN( DISTINCT - 75 ) - 75 + + 61
----
-46

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL + 43 + MIN ( DISTINCT - 75 ) - 75 + + 61
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT - 85 * - - 55 + - MAX( ALL - 93 ) AS col0
----
-4582

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT - 85 * - - 55 + - MAX ( ALL - 93 ) AS col0
----
-4582

query I rowsort
SELECT + + 8 * + NULLIF ( - 86, - 32 * 52 + + 99 ) + 47 + - + 89 AS col0
----
-730

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT + 55 * - COUNT( ALL + 15 )
----
-55

skipif mysql # not compatible
query I rowsort label-1856
SELECT + 55 * - COUNT ( ALL + 15 )
----
-55

query I rowsort
SELECT - 95 + - 13 * + 88 AS col2
----
-1239

query II rowsort
SELECT - - 56 AS col1, 65 AS col2
----
56
65

query I rowsort
SELECT + 69 + 66 AS col1
----
135

query II rowsort
SELECT 47 AS col1, + 8
----
47
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL - NULLIF ( - 21, - 42 + + 83 + + 21 * + + ( MAX( ALL - COALESCE ( - 73, 61 * + 10, - 90 + 30, + 3 + 68 ) ) ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL - NULLIF ( - 21, - 42 + + 83 + + 21 * + + ( MAX ( ALL - COALESCE ( - 73, 61 * + 10, - 90 + 30, + 3 + 68 ) ) ) ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT - 22 * - 29 - - 43 + + COUNT( * ) AS col2
----
682

skipif mysql # not compatible
query I rowsort label-1862
SELECT - 22 * - 29 - - 43 + + COUNT ( * ) AS col2
----
682

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1864
SELECT - - 80 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT - - 80 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1865
SELECT - 51 AS col0, - MAX( - + 31 )
----
-51
31

skipif mysql # not compatible
query II rowsort label-1865
SELECT - 51 AS col0, - MAX ( - + 31 )
----
-51
31

query II rowsort
SELECT DISTINCT + 10, 44 + 5 AS col0
----
10
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT ALL - CAST( NULL AS SIGNED ) * - + 9 / + 91 * + 48 * + CAST( - - 86 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 9 / + 91 * + 48 * + CAST ( - - 86 AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + - 30 + + + 85
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1869
SELECT ALL - 25 DIV 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL - 25 / 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT + 66 - + - CASE + + 71 WHEN + - 23 THEN NULL WHEN - 82 * - - 69 / - 66 * 40 + - - 59 + ( - 35 ) + 31 / 56 + COUNT( * ) THEN - 40 END + 84 * 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT + 66 - + - CASE + + 71 WHEN + - 23 THEN NULL WHEN - 82 * - - 69 / - 66 * 40 + - - 59 + ( - 35 ) + 31 / 56 + COUNT ( * ) THEN - 40 END + 84 * 24 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 87 col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT + 66 + + - 92 + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-1872
SELECT + 66 + + - 92 + COUNT ( * )
----
-25

query I rowsort
SELECT + 36 * - 28
----
-1008

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

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL CAST ( NULL AS INTEGER ) * 9 AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( - 11, AVG ( ALL 92 ) ) AS col1
----
11

query I rowsort
SELECT ALL 94 * + + 49 AS col1
----
4606

query I rowsort
SELECT DISTINCT + 37 * 82 * - - CASE - 44 WHEN - 49 + + 86 - + 92 / - 97 THEN 64 END + 49 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT + 23 DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-1878
SELECT + 23 / - 41
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1880
SELECT + 58 DIV + + 80 col1, 88
----
0
88

skipif mysql # not compatible
query II rowsort label-1880
SELECT + 58 / + + 80 col1, 88
----
0
88

onlyif mysql # aggregate syntax: 
query II rowsort label-1881
SELECT + 70 * - CASE + 25 WHEN 68 THEN - + COUNT( * ) ELSE NULL END AS col2, + 48 AS col2
----
NULL
48

skipif mysql # not compatible
query II rowsort label-1881
SELECT + 70 * - CASE + 25 WHEN 68 THEN - + COUNT ( * ) ELSE NULL END AS col2, + 48 AS col2
----
NULL
48

query I rowsort
SELECT - 76 + + - ( + 44 )
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1883
SELECT + NULLIF ( - CAST( - + CAST( - - 99 AS SIGNED ) AS SIGNED ), + + 17 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-1883
SELECT + NULLIF ( - CAST ( - + CAST ( - - 99 AS INTEGER ) AS INTEGER ), + + 17 ) AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1884
SELECT ( - CAST( NULL AS SIGNED ) ) AS col0, 26 + - 5 + - + 91 * CAST( 49 AS SIGNED ) AS col2
----
NULL
-4438

skipif mysql # not compatible
query II rowsort label-1884
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col0, 26 + - 5 + - + 91 * CAST ( 49 AS INTEGER ) AS col2
----
NULL
-4438

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT + COUNT( * ) * + 97 * - - 90 + + - 83 AS col0
----
8647

skipif mysql # not compatible
query I rowsort label-1885
SELECT + COUNT ( * ) * + 97 * - - 90 + + - 83 AS col0
----
8647

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1886
SELECT + 22 / - - CAST( NULL AS DECIMAL ), 82 AS col0
----
NULL
82

skipif mysql # not compatible
query II rowsort label-1886
SELECT + 22 / - - CAST ( NULL AS REAL ), 82 AS col0
----
NULL
82

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

skipif mysql # not compatible
query I rowsort label-1887
SELECT - 28 + + + COUNT ( * ) AS col2
----
-27

query I rowsort
SELECT ALL 57 * - - ( - NULLIF ( 97, + ( + 52 ) ) ) + - 69 - 5 + + 59 - - 87 * + 53
----
-933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT + 40 * + 93 * CASE - 46 WHEN + 6 / CAST( NULL AS SIGNED ) THEN NULL WHEN + - 8 * + + 69 + - + 35 THEN 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT + 40 * + 93 * CASE - 46 WHEN + 6 / CAST ( NULL AS INTEGER ) THEN NULL WHEN + - 8 * + + 69 + - + 35 THEN 65 ELSE NULL END
----
NULL

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

query I rowsort
SELECT ALL + - 43 * 6 AS col1
----
-258

onlyif mysql # DIV for integer division: 
query I rowsort label-1892
SELECT - CASE - - 16 WHEN - 51 * 57 + 71 + + 30 THEN 79 * + - 37 DIV - 38 + - 5 ELSE - - 24 * 37 - - 6 END + + 10
----
-884

skipif mysql # not compatible
query I rowsort label-1892
SELECT - CASE - - 16 WHEN - 51 * 57 + 71 + + 30 THEN 79 * + - 37 / - 38 + - 5 ELSE - - 24 * 37 - - 6 END + + 10
----
-884

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1893
SELECT DISTINCT - - 19 * - + 87 * CAST( NULL AS DECIMAL ) + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - - 19 * - + 87 * CAST ( NULL AS REAL ) + + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT DISTINCT + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT + + COUNT ( * ) col2
----
1

query I rowsort
SELECT - + 77 * - + 91 AS col0
----
7007

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL + CASE 81 WHEN + COUNT( * ) + - COUNT( * ) THEN 16 ELSE NULL END * - 99 * 51 + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL + CASE 81 WHEN + COUNT ( * ) + - COUNT ( * ) THEN 16 ELSE NULL END * - 99 * 51 + 71 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1897
SELECT DISTINCT + + ( + 82 ) AS col1, + 26 + + + 6 - - CAST( - - 96 AS SIGNED ) AS col0
----
82
128

skipif mysql # not compatible
query II rowsort label-1897
SELECT DISTINCT + + ( + 82 ) AS col1, + 26 + + + 6 - - CAST ( - - 96 AS INTEGER ) AS col0
----
82
128

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

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

query I rowsort
SELECT - + 70 + + 1 * + 80 AS col1
----
10

query I rowsort
SELECT - - 27 AS col1
----
27

query II rowsort
SELECT ALL 88 * - + NULLIF ( 2, + 78 / - 51 ) - + ( + - 68 ) AS col1, - 17 AS col0
----
-108
-17

query I rowsort
SELECT - + 76 - 30 col2
----
-106

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT DISTINCT + NULLIF ( - - 50, + + 33 * + 83 + - + 54 * - COUNT( * ) * - 50 * - CASE + - 98 WHEN + MAX( - 31 ) / + COUNT( * ) + + 78 * 37 THEN NULL ELSE + 54 END + - 64 ) * + 80
----
4000

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT + NULLIF ( - - 50, + + 33 * + 83 + - + 54 * - COUNT ( * ) * - 50 * - CASE + - 98 WHEN + MAX ( - 31 ) / + COUNT ( * ) + + 78 * 37 THEN NULL ELSE + 54 END + - 64 ) * + 80
----
4000

query I rowsort
SELECT DISTINCT ( + COALESCE ( 56, + 98 ) )
----
56

query I rowsort
SELECT ALL - + 84 * + + 95 * - - 45
----
-359100

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

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

query I rowsort
SELECT DISTINCT - 27 * 37
----
-999

query I rowsort
SELECT - 36 * + 7
----
-252

query I rowsort
SELECT - 13 * 65
----
-845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1911
SELECT ALL + 82 * - CASE + 18 WHEN - 80 THEN + + AVG ( + 96 ) / + - 1 + + CASE + CAST( - 61 AS SIGNED ) WHEN - COALESCE ( - CAST( - + COUNT( * ) AS SIGNED ), + 40 + ( - 0 ) * - 96 ) THEN 8 * COUNT( * ) + + 98 WHEN - 75 THEN NULL ELSE + 29 * - CASE + 94 * + 69 WHEN - 83 * - NULLIF ( - 31, + 31 ) THEN NULL ELSE 71 END END - 66 * COUNT( * ) * 85 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL + 82 * - CASE + 18 WHEN - 80 THEN + + AVG ( + 96 ) / + - 1 + + CASE + CAST ( - 61 AS INTEGER ) WHEN - COALESCE ( - CAST ( - + COUNT ( * ) AS INTEGER ), + 40 + ( - 0 ) * - 96 ) THEN 8 * COUNT ( * ) + + 98 WHEN - 75 THEN NULL ELSE + 29 * - CASE + 94 * + 69 WHEN - 83 * - NULLIF ( - 31, + 31 ) THEN NULL ELSE 71 END END - 66 * COUNT ( * ) * 85 END AS col1
----
NULL

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

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

query II rowsort
SELECT DISTINCT 97 AS col0, - CASE 94 WHEN - 91 THEN - - 38 END
----
97
NULL

query I rowsort
SELECT - 6 * - 17
----
102

query I rowsort
SELECT ALL + 10 + - + 21 + - + 50 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-1916
SELECT + 82 * - 35 * + + 31 AS col2, + COUNT( * ) + 38 + + COUNT( * ) - ( - ( 90 ) ) * + - NULLIF ( - 13, - 91 + - + 61 ) + 64
----
-88970
1274

skipif mysql # not compatible
query II rowsort label-1916
SELECT + 82 * - 35 * + + 31 AS col2, + COUNT ( * ) + 38 + + COUNT ( * ) - ( - ( 90 ) ) * + - NULLIF ( - 13, - 91 + - + 61 ) + 64
----
-88970
1274

query I rowsort
SELECT ALL 94 + + 36 AS col0
----
130

query I rowsort
SELECT - ( - 37 ) AS col1
----
37

query I rowsort
SELECT - 70 + - 89 AS col0
----
-159

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

query I rowsort
SELECT ALL 41 * 26 AS col2
----
1066

query I rowsort
SELECT + 52 * 4
----
208

onlyif mysql # DIV for integer division: 
query I rowsort label-1923
SELECT - 60 DIV - 94 + + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1923
SELECT - 60 / - 94 + + 23 AS col0
----
23

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

query I rowsort
SELECT ALL - 20 * + 16
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT DISTINCT + ( CASE 41 WHEN - 13 / 7 * - COALESCE ( + 78, + COUNT( * ) + + MIN( 76 ) ) THEN + - COUNT( * ) WHEN 9 THEN NULL WHEN 28 THEN 57 WHEN COUNT( * ) * - COUNT( ( 4 ) ) THEN + COUNT( * ) END ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT + ( CASE 41 WHEN - 13 / 7 * - COALESCE ( + 78, + COUNT ( * ) + + MIN ( 76 ) ) THEN + - COUNT ( * ) WHEN 9 THEN NULL WHEN 28 THEN 57 WHEN COUNT ( * ) * - COUNT ( ( 4 ) ) THEN + COUNT ( * ) END ) + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT DISTINCT + COUNT( * ) * + + 97 * - 58
----
-5626

skipif mysql # not compatible
query I rowsort label-1927
SELECT DISTINCT + COUNT ( * ) * + + 97 * - 58
----
-5626

query I rowsort
SELECT DISTINCT + ( + + 85 ) * - 56 AS col0
----
-4760

query I rowsort
SELECT 16 * - 17
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT ALL - + COUNT( - + 37 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL - + COUNT ( - + 37 ) col2
----
-1

query II rowsort
SELECT ALL - 75 AS col0, + 79 AS col2
----
-75
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT - 54 + + + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-1932
SELECT - 54 + + + COUNT ( * )
----
-53

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

query I rowsort
SELECT COALESCE ( - 14, 29 ) * + 34 + + - 77 AS col1
----
-553

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT + COUNT( DISTINCT ( 17 ) ) * + + 63 * - 14 + NULLIF ( + CASE + ( + 62 ) WHEN + 61 THEN NULL ELSE + 83 END, COUNT( * ) * MIN( DISTINCT 96 ) * COUNT( 29 ) )
----
-799

skipif mysql # not compatible
query I rowsort label-1936
SELECT + COUNT ( DISTINCT ( 17 ) ) * + + 63 * - 14 + NULLIF ( + CASE + ( + 62 ) WHEN + 61 THEN NULL ELSE + 83 END, COUNT ( * ) * MIN ( DISTINCT 96 ) * COUNT ( 29 ) )
----
-799

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1937
SELECT DISTINCT - 91 DIV + - 10 + - + ( + - COUNT( * ) ) * + - 97 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT - 91 / + - 10 + - + ( + - COUNT ( * ) ) * + - 97 AS col0
----
-88

query II rowsort
SELECT DISTINCT - 16 AS col1, 40 AS col2
----
-16
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1939
SELECT NULLIF ( + 39, + - COUNT( * ) ) DIV - 25 + + 32 - - - 38
----
-7

skipif mysql # not compatible
query I rowsort label-1939
SELECT NULLIF ( + 39, + - COUNT ( * ) ) / - 25 + + 32 - - - 38
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1940
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), - + 67 * 55 + + MIN( DISTINCT 32 ) ) AS col1, - 67 AS col0
----
3653
-67

skipif mysql # not compatible
query II rowsort label-1940
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), - + 67 * 55 + + MIN ( DISTINCT 32 ) ) AS col1, - 67 AS col0
----
3653
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ( + COUNT( * ) ) + 33 + + 6
----
40

skipif mysql # not compatible
query I rowsort label-1941
SELECT ( + COUNT ( * ) ) + 33 + + 6
----
40

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

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

query I rowsort
SELECT ALL 36 + 35
----
71

query I rowsort
SELECT ALL + 50 + + - 54 + 89 * - 82 * + 9
----
-65686

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL + 78 + + - NULLIF ( + SUM( DISTINCT + 93 ), - + 91 ) * - + 76 * + 95 + + 59 AS col0
----
671597

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL + 78 + + - NULLIF ( + SUM ( DISTINCT + 93 ), - + 91 ) * - + 76 * + 95 + + 59 AS col0
----
671597

query I rowsort
SELECT 41 + + + 20 * 72 AS col2
----
1481

query I rowsort
SELECT ALL + 78 + 39 AS col0
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-1948
SELECT DISTINCT + 5 * - + COUNT( * ) * + SUM( - + 45 ) AS col1, - MAX( ALL 28 ) AS col1
----
225
-28

skipif mysql # not compatible
query II rowsort label-1948
SELECT DISTINCT + 5 * - + COUNT ( * ) * + SUM ( - + 45 ) AS col1, - MAX ( ALL 28 ) AS col1
----
225
-28

query I rowsort
SELECT DISTINCT + 96 + - + 91
----
5

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

skipif mysql # not compatible
query I rowsort label-1950
SELECT 31 / COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT MIN( + - 61 ) + 45
----
-16

skipif mysql # not compatible
query I rowsort label-1951
SELECT MIN ( + - 61 ) + 45
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1952
SELECT 38 * - COUNT( * ), + COUNT( * ) + - + 84 + + - CAST( 62 AS SIGNED ) AS col0
----
-38
-145

skipif mysql # not compatible
query II rowsort label-1952
SELECT 38 * - COUNT ( * ), + COUNT ( * ) + - + 84 + + - CAST ( 62 AS INTEGER ) AS col0
----
-38
-145

query I rowsort
SELECT 76 + + - 97
----
-21

query I rowsort
SELECT ALL + 88 * + 7 AS col0
----
616

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

query I rowsort
SELECT ALL + 79 + - NULLIF ( + 82, + 52 )
----
-3

query I rowsort
SELECT DISTINCT 46 - + 54
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ALL + 25 - + COUNT( * ) + 17
----
41

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL + 25 - + COUNT ( * ) + 17
----
41

query I rowsort
SELECT ALL - + 69 AS col0
----
-69

query I rowsort
SELECT + + 88
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1961
SELECT COUNT( * ) * 44 + + - 7 * 92 DIV 88
----
37

skipif mysql # not compatible
query I rowsort label-1961
SELECT COUNT ( * ) * 44 + + - 7 * 92 / 88
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT - CAST( - 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-1962
SELECT - CAST ( - 58 AS INTEGER )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT DISTINCT - COUNT( * ) * 72 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT - COUNT ( * ) * 72 AS col1
----
-72

query I rowsort
SELECT 11 * + 3
----
33

query I rowsort
SELECT + + 3
----
3

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

query I rowsort
SELECT + 54 + - 53 AS col0
----
1

query I rowsort
SELECT ALL - + 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT DISTINCT + MIN( + + 5 ) + + 94 + + 77 * - + 70
----
-5291

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT + MIN ( + + 5 ) + + 94 + + 77 * - + 70
----
-5291

query I rowsort
SELECT + + 80 * - 75 + - 94 AS col1
----
-6094

query II rowsort
SELECT - 77 * - 67, 17 AS col1
----
5159
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1972
SELECT 57 + + ( + - 6 ) + CASE + ( + COUNT( * ) ) WHEN + 42 THEN NULL WHEN 96 * - 17 THEN NULL WHEN + - COUNT( * ) * + - 8 - - + 47 + - NULLIF ( + MAX( - CAST( NULL AS DECIMAL ) ), - NULLIF ( 47, - 86 ) ) THEN - 14 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT 57 + + ( + - 6 ) + CASE + ( + COUNT ( * ) ) WHEN + 42 THEN NULL WHEN 96 * - 17 THEN NULL WHEN + - COUNT ( * ) * + - 8 - - + 47 + - NULLIF ( + MAX ( - CAST ( NULL AS REAL ) ), - NULLIF ( 47, - 86 ) ) THEN - 14 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1973
SELECT DISTINCT + 29 DIV - + 96 + - 10 * - - 3 AS col0, + 24 + + CAST( NULL AS SIGNED ) AS col0
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-1973
SELECT DISTINCT + 29 / - + 96 + - 10 * - - 3 AS col0, + 24 + + CAST ( NULL AS INTEGER ) AS col0
----
-30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT ( + MIN( DISTINCT + 38 ) ) * - 79
----
-3002

skipif mysql # not compatible
query I rowsort label-1974
SELECT ( + MIN ( DISTINCT + 38 ) ) * - 79
----
-3002

query II rowsort
SELECT DISTINCT NULLIF ( 5, - - 20 - - 97 ) + + NULLIF ( + 41, + + 97 ) * + 47, + 36 AS col2
----
1932
36

query II rowsort
SELECT ALL 35 col1, 69
----
35
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT COUNT( * ) * 15 col2
----
15

skipif mysql # not compatible
query I rowsort label-1977
SELECT COUNT ( * ) * 15 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT DISTINCT - 10 + + SUM( 4 )
----
-6

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT - 10 + + SUM ( 4 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT COUNT( * ) * + + 95 * - 48 AS col1
----
-4560

skipif mysql # not compatible
query I rowsort label-1979
SELECT COUNT ( * ) * + + 95 * - 48 AS col1
----
-4560

query I rowsort
SELECT 57 * - - 84
----
4788

query I rowsort
SELECT DISTINCT CASE - 99 WHEN + - 23 THEN NULL WHEN + ( + 33 ) + - 48 THEN - - 32 * 10 END + + 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT + COUNT( * ) - + 1
----
0

skipif mysql # not compatible
query I rowsort label-1982
SELECT + COUNT ( * ) - + 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL 23 - + COUNT( ALL - - 58 ) * - CASE + 52 WHEN + - 0 + + AVG ( ALL - 21 ) * + - 22 - 89 / - 45 THEN - ( + 12 ) * + 82 + + + COUNT( ALL 98 ) + - 33 * + 93 END + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL 23 - + COUNT ( ALL - - 58 ) * - CASE + 52 WHEN + - 0 + + AVG ( ALL - 21 ) * + - 22 - 89 / - 45 THEN - ( + 12 ) * + 82 + + + COUNT ( ALL 98 ) + - 33 * + 93 END + 23
----
NULL

query II rowsort
SELECT - 69 AS col1, + 14 + - 54 AS col0
----
-69
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1985
SELECT + 81 + + COALESCE ( - 59, + + 29, + + 22 ) DIV - 83 AS col2, COUNT( * )
----
81
1

skipif mysql # not compatible
query II rowsort label-1985
SELECT + 81 + + COALESCE ( - 59, + + 29, + + 22 ) / - 83 AS col2, COUNT ( * )
----
81
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1986
SELECT - ( + 19 ) * - MIN( DISTINCT - - ( 50 ) ) + - - 93 - + + 26 + - - 34 * ( - CAST( NULL AS SIGNED ) ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT - ( + 19 ) * - MIN ( DISTINCT - - ( 50 ) ) + - - 93 - + + 26 + - - 34 * ( - CAST ( NULL AS INTEGER ) ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 57 * + 91 * + 61
----
316407

query I rowsort
SELECT - 92 - + 2 * 13
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL + 68 * CAST( NULL AS SIGNED ) + - - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL + 68 * CAST ( NULL AS INTEGER ) + - - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT - 32 * - 5 - SUM( + 36 )
----
124

skipif mysql # not compatible
query I rowsort label-1990
SELECT - 32 * - 5 - SUM ( + 36 )
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-1991
SELECT 19 AS col2, CASE + 71 WHEN + - 22 THEN NULL WHEN COUNT( - 70 ) THEN + 37 END + - + 74 AS col0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-1991
SELECT 19 AS col2, CASE + 71 WHEN + - 22 THEN NULL WHEN COUNT ( - 70 ) THEN + 37 END + - + 74 AS col0
----
19
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1993
SELECT + 86 DIV 83 + + - 48 + 38 - + 57 AS col1, COUNT( * )
----
-66
1

skipif mysql # not compatible
query II rowsort label-1993
SELECT + 86 / 83 + + - 48 + 38 - + 57 AS col1, COUNT ( * )
----
-66
1

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

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

query I rowsort
SELECT ALL + - NULLIF ( + 57, - 28 )
----
-57

query I rowsort
SELECT - + 38 + + 98 + 70 * + 28 AS col1
----
2020

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT ALL + + ( - - COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL + + ( - - COUNT ( * ) ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1998
SELECT ALL - - 52 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL - - 52 / + 75
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1999
SELECT + + 48, + NULLIF ( + 88, - 64 + 97 ) DIV - 75 AS col0
----
48
-1

skipif mysql # not compatible
query II rowsort label-1999
SELECT + + 48, + NULLIF ( + 88, - 64 + 97 ) / - 75 AS col0
----
48
-1

query I rowsort
SELECT - 48 * + - 57
----
2736

query I rowsort
SELECT - - 3 * - 50 AS col2
----
-150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2002
SELECT + 85 / + + CASE - + 40 WHEN + 62 * - 65 THEN 46 END + MAX( DISTINCT - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT + 85 / + + CASE - + 40 WHEN + 62 * - 65 THEN 46 END + MAX ( DISTINCT - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT + 35 + + 38 AS col1
----
73

query I rowsort
SELECT ALL 5 * + 62 AS col1
----
310

onlyif mysql # DIV for integer division: 
query I rowsort label-2005
SELECT ALL - 33 * + 6 + 43 + - - 37 DIV + + 34 + - 19
----
-173

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL - 33 * + 6 + 43 + - - 37 / + + 34 + - 19
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT + - 62 + + 50 + + - 8 * - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-2006
SELECT + - 62 + + 50 + + - 8 * - COUNT ( * )
----
-4

query I rowsort
SELECT ALL + CASE WHEN NULL IS NOT NULL THEN - 63 END * + ( - - 45 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT + 66 + + MAX( DISTINCT - 95 ) * + MIN( ALL 74 ) col2
----
-6964

skipif mysql # not compatible
query I rowsort label-2008
SELECT + 66 + + MAX ( DISTINCT - 95 ) * + MIN ( ALL 74 ) col2
----
-6964

query II rowsort
SELECT ALL + 6 AS col0, 64
----
6
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2010
SELECT ALL - CAST( NULL AS DECIMAL ) * + 28 + - 48 - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL - CAST ( NULL AS REAL ) * + 28 + - 48 - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2011
SELECT - CASE - - ( 78 ) WHEN 97 THEN NULL ELSE - + CASE + 27 WHEN - MAX( ALL - + 72 ) THEN NULL ELSE - + COUNT( * ) END END AS col2, 10 AS col0
----
-1
10

skipif mysql # not compatible
query II rowsort label-2011
SELECT - CASE - - ( 78 ) WHEN 97 THEN NULL ELSE - + CASE + 27 WHEN - MAX ( ALL - + 72 ) THEN NULL ELSE - + COUNT ( * ) END END AS col2, 10 AS col0
----
-1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT - COUNT( * ) * - + 64 + + 77 + 52 AS col1
----
193

skipif mysql # not compatible
query I rowsort label-2012
SELECT - COUNT ( * ) * - + 64 + + 77 + 52 AS col1
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT + CASE + - 54 WHEN 12 THEN NULL ELSE - + COUNT( * ) * + 24 END - - 94 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-2013
SELECT + CASE + - 54 WHEN 12 THEN NULL ELSE - + COUNT ( * ) * + 24 END - - 94 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT + 47 + + 4 - + NULLIF ( + 93, 25 + + 68 ) * - 15 * ( COUNT( + 36 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2014
SELECT + 47 + + 4 - + NULLIF ( + 93, 25 + + 68 ) * - 15 * ( COUNT ( + 36 ) )
----
NULL

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

query I rowsort
SELECT + ( - 15 ) + + 42
----
27

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

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

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

skipif mysql # not compatible
query I rowsort label-2018
SELECT - NULLIF ( 12, COUNT ( * ) ) AS col1
----
-12

query I rowsort
SELECT ALL 35 * + - 32
----
-1120

query I rowsort
SELECT + 41 + 62
----
103

query II rowsort
SELECT DISTINCT 4 AS col2, + 69 - 73
----
4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL MAX( 72 ) col0
----
72

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL MAX ( 72 ) col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL NULLIF ( + 43, 39 * + COUNT( * ) ) - - 54 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL NULLIF ( + 43, 39 * + COUNT ( * ) ) - - 54 AS col1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2024
SELECT + 93 + 44 DIV + - 89 + - - 97 * - 52 * + 76 * + MIN( ALL + 41 )
----
-15717011

skipif mysql # not compatible
query I rowsort label-2024
SELECT + 93 + 44 / + - 89 + - - 97 * - 52 * + 76 * + MIN ( ALL + 41 )
----
-15717011

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

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL - 16 - - 22 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2026
SELECT ALL MIN( DISTINCT + NULLIF ( 43, 12 ) ), - 65 AS col1
----
43
-65

skipif mysql # not compatible
query II rowsort label-2026
SELECT ALL MIN ( DISTINCT + NULLIF ( 43, 12 ) ), - 65 AS col1
----
43
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + CASE 75 WHEN + + 49 * MIN( 29 ) + + ( - 37 ) THEN NULL WHEN - 39 THEN - - 33 / - 94 END + 0 + + + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT + CASE 75 WHEN + + 49 * MIN ( 29 ) + + ( - 37 ) THEN NULL WHEN - 39 THEN - - 33 / - 94 END + 0 + + + 94 AS col0
----
NULL

query I rowsort
SELECT + ( + 90 ) + + 64
----
154

query I rowsort
SELECT + 46 * - 20
----
-920

query I rowsort
SELECT - COALESCE ( + 25, - COALESCE ( + ( + 51 ), 22 + + + 58 * - 4 ) * - 31, + 42, + 34 ) AS col0
----
-25

query II rowsort
SELECT - 63 + + 16 AS col1, 42 + 33 col0
----
-47
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL MAX( 61 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL MAX ( 61 ) col2
----
61

query II rowsort
SELECT 75 AS col0, + ( + 2 ) * - 94 AS col2
----
75
-188

query I rowsort
SELECT - 40 + - + 88 * - 87 + NULLIF ( 21, + + 91 ) + 18
----
7655

query I rowsort
SELECT + - 17 * + 81
----
-1377

onlyif mysql # aggregate syntax: 
query II rowsort label-2036
SELECT - MIN( - 81 ) AS col2, + 8 + + 70 * ( - ( - 30 ) ) col2
----
81
2108

skipif mysql # not compatible
query II rowsort label-2036
SELECT - MIN ( - 81 ) AS col2, + 8 + + 70 * ( - ( - 30 ) ) col2
----
81
2108

query III rowsort
SELECT ALL 92 AS col0, + 73, - 81 AS col0
----
92
73
-81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT DISTINCT + + 31 DIV 15 - - NULLIF ( - 23, + + 23 DIV + ( - 35 ) * 29 + 89 + 84 ) + + - 74 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT + + 31 / 15 - - NULLIF ( - 23, + + 23 / + ( - 35 ) * 29 + 89 + 84 ) + + - 74 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT - 20 * + + COUNT( * ) * + + 47 * 38
----
-35720

skipif mysql # not compatible
query I rowsort label-2041
SELECT - 20 * + + COUNT ( * ) * + + 47 * 38
----
-35720

query II rowsort
SELECT 70 col1, 21 AS col0
----
70
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2043
SELECT 76, - 22 * - SUM( DISTINCT + 75 ) + COUNT( * ) AS col1
----
76
1651

skipif mysql # not compatible
query II rowsort label-2043
SELECT 76, - 22 * - SUM ( DISTINCT + 75 ) + COUNT ( * ) AS col1
----
76
1651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2044
SELECT ALL + + COALESCE ( CAST( NULL AS SIGNED ), + - 93, + - MIN( ALL - - ( + 66 ) ) * NULLIF ( + 49, - 71 * - 26 - + 76 * + + COALESCE ( - CAST( + AVG ( DISTINCT - 74 ) AS SIGNED ), + NULLIF ( + 9, 22 ) * - 35, - MAX( 10 ) / 40 ) / 5 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL + + COALESCE ( CAST ( NULL AS INTEGER ), + - 93, + - MIN ( ALL - - ( + 66 ) ) * NULLIF ( + 49, - 71 * - 26 - + 76 * + + COALESCE ( - CAST ( + AVG ( DISTINCT - 74 ) AS INTEGER ), + NULLIF ( + 9, 22 ) * - 35, - MAX ( 10 ) / 40 ) / 5 ) )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2045
SELECT ALL + CAST( NULL AS SIGNED ) / 60 + - 6 * 31 * - 55 * + + COUNT( * ) AS col1, 79 * - - MAX( - + 18 ) AS col1
----
NULL
-1422

skipif mysql # not compatible
query II rowsort label-2045
SELECT ALL + CAST ( NULL AS INTEGER ) / 60 + - 6 * 31 * - 55 * + + COUNT ( * ) AS col1, 79 * - - MAX ( - + 18 ) AS col1
----
NULL
-1422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT - + CAST( + ( 64 ) AS SIGNED ) * - - 76 AS col0
----
-4864

skipif mysql # not compatible
query I rowsort label-2046
SELECT - + CAST ( + ( 64 ) AS INTEGER ) * - - 76 AS col0
----
-4864

query I rowsort
SELECT ALL + + 56 AS col1
----
56

query III rowsort
SELECT DISTINCT + 48 AS col2, 66 AS col0, 68 + - - 81
----
48
66
149

query I rowsort
SELECT DISTINCT - + 14 * + - 54 + - 15 + + + 60
----
801

query II rowsort
SELECT ALL + - 39, + 39 * 95 AS col1
----
-39
3705

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT 28 * + 2 + - - 36 + 46 * - 0 + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-2052
SELECT 28 * + 2 + - - 36 + 46 * - 0 + - COUNT ( * )
----
91

query I rowsort
SELECT - 60 * - + 32 AS col2
----
1920

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2055
SELECT ALL + CAST( 41 AS SIGNED ), 26 * - - 75 * - 50 * - 65 col1
----
41
6337500

skipif mysql # not compatible
query II rowsort label-2055
SELECT ALL + CAST ( 41 AS INTEGER ), 26 * - - 75 * - 50 * - 65 col1
----
41
6337500

onlyif mysql # aggregate syntax: 
query II rowsort label-2056
SELECT DISTINCT + 74 * NULLIF ( SUM( - ( - - 55 ) ), - + 74 + ( - 38 ) ) AS col2, 37 AS col0
----
-4070
37

skipif mysql # not compatible
query II rowsort label-2056
SELECT DISTINCT + 74 * NULLIF ( SUM ( - ( - - 55 ) ), - + 74 + ( - 38 ) ) AS col2, 37 AS col0
----
-4070
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT 60 + - - 41 * + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-2057
SELECT 60 + - - 41 * + - COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT DISTINCT - SUM( ALL + 2 ) * - 61 + 45 AS col2
----
167

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT - SUM ( ALL + 2 ) * - 61 + 45 AS col2
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT 76 * + ( + + CASE + 18 WHEN - COUNT( * ) THEN - + ( - 23 ) ELSE - 73 END ) col1
----
-5548

skipif mysql # not compatible
query I rowsort label-2059
SELECT 76 * + ( + + CASE + 18 WHEN - COUNT ( * ) THEN - + ( - 23 ) ELSE - 73 END ) col1
----
-5548

onlyif mysql # aggregate syntax: 
query II rowsort label-2060
SELECT ALL - 57 * - COUNT( * ) AS col0, COALESCE ( - 41, 19 + - - 94 + 89 + + 12, - + 16, + - 11 ) + 19 AS col0
----
57
-22

skipif mysql # not compatible
query II rowsort label-2060
SELECT ALL - 57 * - COUNT ( * ) AS col0, COALESCE ( - 41, 19 + - - 94 + 89 + + 12, - + 16, + - 11 ) + 19 AS col0
----
57
-22

query I rowsort
SELECT 47 - + 69 AS col1
----
-22

query I rowsort
SELECT 66 * ( - ( - 16 ) ) AS col2
----
1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2063
SELECT DISTINCT 63 DIV COUNT( * ) col1, + 33 * + 29 + 46 + CASE 22 WHEN - 34 + + 88 * + + 64 THEN 16 * - + 99 + + 88 + + + 4 * + 22 + - 6 * - - 2 END * - 31 AS col0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-2063
SELECT DISTINCT 63 / COUNT ( * ) col1, + 33 * + 29 + 46 + CASE 22 WHEN - 34 + + 88 * + + 64 THEN 16 * - + 99 + + 88 + + + 4 * + 22 + - 6 * - - 2 END * - 31 AS col0
----
63
NULL

query I rowsort
SELECT DISTINCT - 74 + - - CASE + 44 WHEN - 62 THEN - 36 * + 97 END
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2067
SELECT 55 DIV - + 85 col0
----
0

skipif mysql # not compatible
query I rowsort label-2067
SELECT 55 / - + 85 col0
----
0

query II rowsort
SELECT - 7 + - 58 AS col2, + 89 AS col1
----
-65
89

query I rowsort
SELECT - - 86 AS col2
----
86

query I rowsort
SELECT + 90 - + - 35
----
125

query I rowsort
SELECT ALL - ( - 92 )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2072
SELECT + CAST( + - NULLIF ( + 2, 74 ) AS SIGNED ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-2072
SELECT + CAST ( + - NULLIF ( + 2, 74 ) AS INTEGER ) col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2073
SELECT - COUNT( * ) DIV 13 + - + 19 + + 29 + COALESCE ( - 81, + COALESCE ( 69, - - 78 * - ( - - 74 ) ) ) * - COUNT( * ) * + 67 * - - 3 + 6 DIV - 83 * 51
----
16291

skipif mysql # not compatible
query I rowsort label-2073
SELECT - COUNT ( * ) / 13 + - + 19 + + 29 + COALESCE ( - 81, + COALESCE ( 69, - - 78 * - ( - - 74 ) ) ) * - COUNT ( * ) * + 67 * - - 3 + 6 / - 83 * 51
----
16291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2074
SELECT + NULLIF ( CAST( 49 AS SIGNED ), - 72 * 12 ) + 83 - 2 AS col0, + 91 + - - COUNT( * )
----
130
92

skipif mysql # not compatible
query II rowsort label-2074
SELECT + NULLIF ( CAST ( 49 AS INTEGER ), - 72 * 12 ) + 83 - 2 AS col0, + 91 + - - COUNT ( * )
----
130
92

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

query II rowsort
SELECT - 70 + 61, ( + 17 ) AS col1
----
-9
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT - COUNT( * ) * ( - - 14 ) + 48 - MAX( + 39 )
----
-5

skipif mysql # not compatible
query I rowsort label-2077
SELECT - COUNT ( * ) * ( - - 14 ) + 48 - MAX ( + 39 )
----
-5

query I rowsort
SELECT COALESCE ( - ( 30 ), COALESCE ( - - 86, + - 1 ) ) AS col1
----
-30

query I rowsort
SELECT ALL - ( 49 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2080
SELECT 25 DIV + MIN( DISTINCT - 81 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT 25 / + MIN ( DISTINCT - 81 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL - SUM( - 15 ) * + 9
----
135

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL - SUM ( - 15 ) * + 9
----
135

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

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

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

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

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

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

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

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

query I rowsort
SELECT 76 * + - 73 AS col0
----
-5548

query I rowsort
SELECT 50 - + 54
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT 85 * NULLIF ( + 14, - - NULLIF ( - - 21, + 40 + - COUNT( * ) + + 21 + - - 49 * 48 / + 63 - 91 ) ) AS col2
----
1190

skipif mysql # not compatible
query I rowsort label-2089
SELECT 85 * NULLIF ( + 14, - - NULLIF ( - - 21, + 40 + - COUNT ( * ) + + 21 + - - 49 * 48 / + 63 - 91 ) ) AS col2
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT COUNT( * ) * + + 21 + - 58 + + - 96 * 19 + - + ( - 96 ) + + ( 22 ) + - COUNT( * ) AS col0
----
-1744

skipif mysql # not compatible
query I rowsort label-2090
SELECT COUNT ( * ) * + + 21 + - 58 + + - 96 * 19 + - + ( - 96 ) + + ( 22 ) + - COUNT ( * ) AS col0
----
-1744

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

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

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

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

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

query I rowsort
SELECT 75 * 79 AS col0
----
5925

query I rowsort
SELECT ALL - 25 + + 14
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT DISTINCT - 17 * - - COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT - 17 * - - COUNT ( * ) AS col0
----
-17

query I rowsort
SELECT DISTINCT - 44 + + - 32
----
-76

query I rowsort
SELECT ALL 69 + - + 88 * + 31
----
-2659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2099
SELECT - CAST( NULL AS SIGNED ) + COUNT( - 69 ) * + - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( - 69 ) * + - 24 AS col2
----
NULL

query I rowsort
SELECT ALL - 45 + + 43 col0
----
-2

query I rowsort
SELECT CASE 92 WHEN - 98 THEN - 29 WHEN 2 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2102
SELECT - 94 AS col2, - 99 / + + CAST( NULL AS SIGNED )
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-2102
SELECT - 94 AS col2, - 99 / + + CAST ( NULL AS INTEGER )
----
-94
NULL

query I rowsort
SELECT + 5 * + 35
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT 0 + SUM( - 65 ) * COUNT( DISTINCT + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) ) + + 4 * - 30
----
-120

skipif mysql # not compatible
query I rowsort label-2104
SELECT 0 + SUM ( - 65 ) * COUNT ( DISTINCT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + 4 * - 30
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2105
SELECT - + 87, + COUNT( * ) DIV + + ( - COUNT( * ) ) - + 47 * 98 AS col1
----
-87
-4607

skipif mysql # not compatible
query II rowsort label-2105
SELECT - + 87, + COUNT ( * ) / + + ( - COUNT ( * ) ) - + 47 * 98 AS col1
----
-87
-4607

query II rowsort
SELECT 88 AS col0, - 78 - 61 AS col1
----
88
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2107
SELECT ALL CAST( + 39 AS SIGNED ) + + 36 * 99 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL CAST ( + 39 AS INTEGER ) + + 36 * 99 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 71 + + 11
----
82

query I rowsort
SELECT 80 * + 15 col2
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL + COALESCE ( MAX( DISTINCT COALESCE ( 71, 20 * + 46 ) ), + 86 ) * + + 27 * + + 77
----
147609

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL + COALESCE ( MAX ( DISTINCT COALESCE ( 71, 20 * + 46 ) ), + 86 ) * + + 27 * + + 77
----
147609

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT DISTINCT + + 41 + + COUNT( * ) + - 18
----
24

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT + + 41 + + COUNT ( * ) + - 18
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-2112
SELECT + COUNT( * ) AS col1, - 94 * + + 60
----
1
-5640

skipif mysql # not compatible
query II rowsort label-2112
SELECT + COUNT ( * ) AS col1, - 94 * + + 60
----
1
-5640

query II rowsort
SELECT 43 AS col2, 9
----
43
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT ALL - CASE + + 12 WHEN - MAX( ALL - 30 ) * + 25 THEN - + COUNT( * ) / + 64 WHEN 20 THEN NULL END * 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL - CASE + + 12 WHEN - MAX ( ALL - 30 ) * + 25 THEN - + COUNT ( * ) / + 64 WHEN 20 THEN NULL END * 44 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT + CAST( NULL AS SIGNED ) / + + 25 - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2115
SELECT + CAST ( NULL AS INTEGER ) / + + 25 - 18 AS col0
----
NULL

query I rowsort
SELECT - 44 * + - ( + 64 ) AS col1
----
2816

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT ALL 11 * NULLIF ( - 92, - COUNT( * ) ) - - 2
----
-1010

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL 11 * NULLIF ( - 92, - COUNT ( * ) ) - - 2
----
-1010

query I rowsort
SELECT + 30 * 29 - - 1 * + 12 + + - 45 * - 56
----
3402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2119
SELECT + COALESCE ( + + CAST( - ( - 63 ) AS SIGNED ), 28 ) + + 84 + - + NULLIF ( + 10, + 28 ) + COUNT( * ) * - + MAX( ALL CAST( + 76 AS SIGNED ) ) * - + NULLIF ( 39, + NULLIF ( 36, - + COUNT( * ) * - 27 * - 87 + 42 DIV + COALESCE ( COUNT( * ) + 84, - ( + COUNT( * ) ) + + 8 ) ) ) DIV - COUNT( * ) + + 59 AS col0
----
-2768

skipif mysql # not compatible
query I rowsort label-2119
SELECT + COALESCE ( + + CAST ( - ( - 63 ) AS INTEGER ), 28 ) + + 84 + - + NULLIF ( + 10, + 28 ) + COUNT ( * ) * - + MAX ( ALL CAST ( + 76 AS INTEGER ) ) * - + NULLIF ( 39, + NULLIF ( 36, - + COUNT ( * ) * - 27 * - 87 + 42 / + COALESCE ( COUNT ( * ) + 84, - ( + COUNT ( * ) ) + + 8 ) ) ) / - COUNT ( * ) + + 59 AS col0
----
-2768

onlyif mysql # aggregate syntax: 
query II rowsort label-2120
SELECT COUNT( DISTINCT - - 62 ) AS col1, 35 AS col1
----
1
35

skipif mysql # not compatible
query II rowsort label-2120
SELECT COUNT ( DISTINCT - - 62 ) AS col1, 35 AS col1
----
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT + 73 * - COUNT( * ) + 69 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2121
SELECT + 73 * - COUNT ( * ) + 69 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2122
SELECT 2 * - 60 - 68 * + 7 + 67 + + 34 - + + COUNT( * ) * + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT 2 * - 60 - 68 * + 7 + 67 + + 34 - + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2123
SELECT - 40 + - + COUNT( * ) col1, + 57
----
-41
57

skipif mysql # not compatible
query II rowsort label-2123
SELECT - 40 + - + COUNT ( * ) col1, + 57
----
-41
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT ALL - 57 + + 99 * - COUNT( ALL 86 )
----
-156

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL - 57 + + 99 * - COUNT ( ALL 86 )
----
-156

query I rowsort
SELECT ALL + 3 * 30 AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2126
SELECT + COALESCE ( COUNT( * ), + NULLIF ( - 25, + ( + ( - 83 ) ) * - - 39 ) DIV + 22 - ( - 85 ) ) * 57 + 5 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2126
SELECT + COALESCE ( COUNT ( * ), + NULLIF ( - 25, + ( + ( - 83 ) ) * - - 39 ) / + 22 - ( - 85 ) ) * 57 + 5 AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2127
SELECT ALL 10 + - ( - 83 ) * CAST( NULL AS SIGNED ) + SUM( DISTINCT COALESCE ( - 64, - 5 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL 10 + - ( - 83 ) * CAST ( NULL AS INTEGER ) + SUM ( DISTINCT COALESCE ( - 64, - 5 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2128
SELECT ALL CASE - 46 WHEN + 21 THEN NULL WHEN + MAX( + + ( + 55 ) ) THEN + 85 + 88 WHEN - 41 + 49 THEN NULL ELSE - 45 - - ( 17 ) - + - COUNT( * ) END AS col1, - 30 + + + 54 AS col1
----
-27
24

skipif mysql # not compatible
query II rowsort label-2128
SELECT ALL CASE - 46 WHEN + 21 THEN NULL WHEN + MAX ( + + ( + 55 ) ) THEN + 85 + 88 WHEN - 41 + 49 THEN NULL ELSE - 45 - - ( 17 ) - + - COUNT ( * ) END AS col1, - 30 + + + 54 AS col1
----
-27
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2129
SELECT - 81 DIV - COUNT( * ) AS col0, 95
----
81
95

skipif mysql # not compatible
query II rowsort label-2129
SELECT - 81 / - COUNT ( * ) AS col0, 95
----
81
95

query I rowsort
SELECT ALL + ( - 1 ) + + 81
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2131
SELECT - + CAST( COALESCE ( + 50, - + 66, - - ( + 94 ) + + - 23 ) AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-2131
SELECT - + CAST ( COALESCE ( + 50, - + 66, - - ( + 94 ) + + - 23 ) AS INTEGER )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2132
SELECT ALL + + 43 DIV + - COALESCE ( + 1, - 97 * - 88 * - + COUNT( * ) * - - 47 ) + + - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL + + 43 / + - COALESCE ( + 1, - 97 * - 88 * - + COUNT ( * ) * - - 47 ) + + - COUNT ( * )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2133
SELECT - ( - 71 ) / + CAST( NULL AS SIGNED ) * + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2133
SELECT - ( - 71 ) / + CAST ( NULL AS INTEGER ) * + + 79
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT - + MIN( 34 ) - - 18
----
-16

skipif mysql # not compatible
query I rowsort label-2135
SELECT - + MIN ( 34 ) - - 18
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2136
SELECT ALL - CASE + - COUNT( * ) WHEN ( - 7 ) THEN + - 47 * - 50 WHEN ( + 1 ) + - - 64 + - CASE 35 WHEN + 53 THEN - ( - 43 ) + + COUNT( * ) ELSE CAST( 13 AS SIGNED ) - 55 END THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL - CASE + - COUNT ( * ) WHEN ( - 7 ) THEN + - 47 * - 50 WHEN ( + 1 ) + - - 64 + - CASE 35 WHEN + 53 THEN - ( - 43 ) + + COUNT ( * ) ELSE CAST ( 13 AS INTEGER ) - 55 END THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 92 - + + 96 * + 29
----
-2876

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT - ( + COUNT( * ) ) + - - 80 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-2138
SELECT - ( + COUNT ( * ) ) + - - 80 AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT + 75 * - CAST( NULL AS SIGNED ) / + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT + 75 * - CAST ( NULL AS INTEGER ) / + + 13
----
NULL

query I rowsort
SELECT - 19 + - + 70
----
-89

query I rowsort
SELECT + 88 - + 33 - + COALESCE ( + - 50, + 62, - 86 ) AS col2
----
105

query I rowsort
SELECT + 71 * + 20 - + CASE + + 98 WHEN + - 77 * - 66 / + 56 THEN - 25 ELSE + 44 END + + 4 - + - 20 col1
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT - - MIN( + 51 ) * - 8 AS col0
----
-408

skipif mysql # not compatible
query I rowsort label-2143
SELECT - - MIN ( + 51 ) * - 8 AS col0
----
-408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2144
SELECT - 1 + - 55 + + 7 + - - COUNT( * ) DIV - 63 + + + 4
----
-45

skipif mysql # not compatible
query I rowsort label-2144
SELECT - 1 + - 55 + + 7 + - - COUNT ( * ) / - 63 + + + 4
----
-45

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

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL + CAST ( NULL AS INTEGER ) / + 77
----
NULL

query I rowsort
SELECT DISTINCT + 15 * + - 23
----
-345

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

query I rowsort
SELECT ALL 53 * - - 95
----
5035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2149
SELECT - CASE - - 58 WHEN COALESCE ( - + 99, 7 + + + CAST( NULL AS SIGNED ) - COUNT( * ) ) - + 95 THEN - - COALESCE ( 98, - - 21, - 17 ) END + - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT - CASE - - 58 WHEN COALESCE ( - + 99, 7 + + + CAST ( NULL AS INTEGER ) - COUNT ( * ) ) - + 95 THEN - - COALESCE ( 98, - - 21, - 17 ) END + - 57 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2150
SELECT + COUNT ( * ) * - + 10 AS col2
----
-10

query I rowsort
SELECT + 41 * + - 40 AS col0
----
-1640

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL 68 * - 81 + + + ( - - 66 ) * - + COUNT( * ) + + 28 col2
----
-5546

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL 68 * - 81 + + + ( - - 66 ) * - + COUNT ( * ) + + 28 col2
----
-5546

onlyif mysql # DIV for integer division: 
query I rowsort label-2153
SELECT + COALESCE ( + - 76, 96, 97 DIV - 2 )
----
-76

skipif mysql # not compatible
query I rowsort label-2153
SELECT + COALESCE ( + - 76, 96, 97 / - 2 )
----
-76

query I rowsort
SELECT ALL 62 * - 33 + + 88 AS col2
----
-1958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT ALL + CAST( NULL AS SIGNED ) * + - CAST( - 13 AS SIGNED ) + ( + - 97 ) + + - 27 * - 37 / + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL + CAST ( NULL AS INTEGER ) * + - CAST ( - 13 AS INTEGER ) + ( + - 97 ) + + - 27 * - 37 / + 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT ALL 5 * - + 38 + COUNT( * )
----
-189

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL 5 * - + 38 + COUNT ( * )
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2157
SELECT ALL + 27 * COUNT( * ) * CAST( NULL AS SIGNED ) + - - 22 * + 45 * + ( - 31 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL + 27 * COUNT ( * ) * CAST ( NULL AS INTEGER ) + - - 22 * + 45 * + ( - 31 ) AS col1
----
NULL

query I rowsort
SELECT + CASE ( - 94 ) WHEN - 91 THEN + 51 - 32 + - + 33 + + + 37 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT ALL + COUNT( * ) * + 47 * 75 + 4 col0
----
3529

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL + COUNT ( * ) * + 47 * 75 + 4 col0
----
3529

query I rowsort
SELECT DISTINCT + 46 * + 32 AS col2
----
1472

query I rowsort
SELECT DISTINCT 75 - 90
----
-15

query I rowsort
SELECT + + 24 * 44
----
1056

query I rowsort
SELECT + - 7 + + 71 AS col0
----
64

query I rowsort
SELECT ALL 93 - - 34
----
127

query I rowsort
SELECT - + 33 + + 78 col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT ALL + + 3 - + - CAST( + 94 AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL + + 3 - + - CAST ( + 94 AS INTEGER ) AS col0
----
97

query II rowsort
SELECT 35 AS col0, 48 col1
----
35
48

query I rowsort
SELECT - 50 * - 64 AS col1
----
3200

query I rowsort
SELECT - - 42 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2171
SELECT - 63, CAST( - - 96 AS SIGNED ) * - - 54 col2
----
-63
5184

skipif mysql # not compatible
query II rowsort label-2171
SELECT - 63, CAST ( - - 96 AS INTEGER ) * - - 54 col2
----
-63
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT 19 * + COUNT( * ) * + 16
----
304

skipif mysql # not compatible
query I rowsort label-2172
SELECT 19 * + COUNT ( * ) * + 16
----
304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2173
SELECT ALL - - NULLIF ( + CASE - 73 WHEN + - 5 + - 34 + - + COUNT( * ) THEN + COALESCE ( - 82, - 31, + 39 ) + + 56 + - - CAST( NULL AS DECIMAL ) END, + - 82 - - CAST( + 12 AS SIGNED ) - - + 92 ) * - CAST( NULL AS SIGNED ) + - 70 / - - 28 + ( 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL - - NULLIF ( + CASE - 73 WHEN + - 5 + - 34 + - + COUNT ( * ) THEN + COALESCE ( - 82, - 31, + 39 ) + + 56 + - - CAST ( NULL AS REAL ) END, + - 82 - - CAST ( + 12 AS INTEGER ) - - + 92 ) * - CAST ( NULL AS INTEGER ) + - 70 / - - 28 + ( 25 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2174
SELECT + COALESCE ( COALESCE ( + 51, - AVG ( ALL + 3 ) * 19 + - 73 - + 20 + 9 * + 49 DIV + 70 * - + 68 * COUNT( * ) + + 55 * - SUM( ALL + 4 ) + + 87 ), 34 ) DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-2174
SELECT + COALESCE ( COALESCE ( + 51, - AVG ( ALL + 3 ) * 19 + - 73 - + 20 + 9 * + 49 / + 70 * - + 68 * COUNT ( * ) + + 55 * - SUM ( ALL + 4 ) + + 87 ), 34 ) / 77
----
0

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

query II rowsort
SELECT - 27 AS col2, - ( - 24 ) col2
----
-27
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT DISTINCT + COUNT( * ) * + - 83 * - 10
----
830

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT + COUNT ( * ) * + - 83 * - 10
----
830

query I rowsort
SELECT 70 * + + 6 AS col0
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT ALL - 75 + - 69 + - COUNT( * )
----
-145

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL - 75 + - 69 + - COUNT ( * )
----
-145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2180
SELECT 38 DIV 45 - - 78 - + + SUM( ALL 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-2180
SELECT 38 / 45 - - 78 - + + SUM ( ALL 79 )
----
-1

query II rowsort
SELECT 43, - 12 * - + 33 AS col1
----
43
396

query I rowsort
SELECT DISTINCT + 11 + + ( - - 50 ) AS col0
----
61

query I rowsort
SELECT 60 - - 26 + + + 13 AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2184
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, 31 + - - CAST( CAST( + + 54 AS SIGNED ) AS SIGNED ) col2
----
NULL
85

skipif mysql # not compatible
query II rowsort label-2184
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 31 + - - CAST ( CAST ( + + 54 AS INTEGER ) AS INTEGER ) col2
----
NULL
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2185
SELECT - 83 * + 83 + COUNT( * ) DIV 45 * + 34 * - 75 col0, 10 AS col2, - 48 * - - 50 AS col2
----
-6889
10
-2400

skipif mysql # not compatible
query III rowsort label-2185
SELECT - 83 * + 83 + COUNT ( * ) / 45 * + 34 * - 75 col0, 10 AS col2, - 48 * - - 50 AS col2
----
-6889
10
-2400

query I rowsort
SELECT ALL - 39 + + 22
----
-17

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

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

query I rowsort
SELECT DISTINCT + 57 + 37
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT ALL 99 * - MAX( DISTINCT + 89 )
----
-8811

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL 99 * - MAX ( DISTINCT + 89 )
----
-8811

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT 91 DIV - 19 col1
----
-4

skipif mysql # not compatible
query I rowsort label-2190
SELECT 91 / - 19 col1
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2191
SELECT DISTINCT - 94 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - 94 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2192
SELECT DISTINCT - 85 DIV + 82 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT - 85 / + 82 col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2193
SELECT DISTINCT CASE NULLIF ( - + COUNT( * ), - 13 ) WHEN + 14 THEN - 30 * - - 11 - - 74 / + 35 * - - 62 * + 36 WHEN 54 * - 4 THEN NULL ELSE + 83 * - CAST( NULL AS SIGNED ) * + 69 / + 76 / + ( 16 ) END + + 59 + 95 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT CASE NULLIF ( - + COUNT ( * ), - 13 ) WHEN + 14 THEN - 30 * - - 11 - - 74 / + 35 * - - 62 * + 36 WHEN 54 * - 4 THEN NULL ELSE + 83 * - CAST ( NULL AS INTEGER ) * + 69 / + 76 / + ( 16 ) END + + 59 + 95 * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 75 * - + 1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL - MIN( 14 ) * - - 52 * + COUNT( * ) AS col2
----
-728

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL - MIN ( 14 ) * - - 52 * + COUNT ( * ) AS col2
----
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-2196
SELECT 81 DIV - - 3 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2196
SELECT 81 / - - 3 AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2197
SELECT + 26 * - - 73 * COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT + 26 * - - 73 * COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2198
SELECT + 73 AS col1, - CAST( NULL AS DECIMAL )
----
73
NULL

skipif mysql # not compatible
query II rowsort label-2198
SELECT + 73 AS col1, - CAST ( NULL AS REAL )
----
73
NULL

query I rowsort
SELECT 9 * - + 64 + - 32 col1
----
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT + COALESCE ( + COUNT( * ), 15 )
----
1

skipif mysql # not compatible
query I rowsort label-2200
SELECT + COALESCE ( + COUNT ( * ), 15 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT COUNT( DISTINCT - 27 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2201
SELECT COUNT ( DISTINCT - 27 ) col0
----
1

query I rowsort
SELECT DISTINCT + 14 AS col2
----
14

query I rowsort
SELECT DISTINCT + 6 - + + 42 + 57
----
21

query I rowsort
SELECT ( - - 84 )
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2205
SELECT ALL - 75 AS col1, - 0 * + CAST( NULL AS DECIMAL ) + COALESCE ( 85, + 30 ) col1
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-2205
SELECT ALL - 75 AS col1, - 0 * + CAST ( NULL AS REAL ) + COALESCE ( 85, + 30 ) col1
----
-75
NULL

query II rowsort
SELECT - - 78, 88 * - 30 AS col0
----
78
-2640

query I rowsort
SELECT DISTINCT + CASE - 92 WHEN + 30 THEN - 2 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2208
SELECT - - 55, COUNT( * ) col1
----
55
1

skipif mysql # not compatible
query II rowsort label-2208
SELECT - - 55, COUNT ( * ) col1
----
55
1

query I rowsort
SELECT - 48 * + 77 AS col1
----
-3696

query I rowsort
SELECT 57 + + 39 + - ( 36 ) col1
----
60

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2212
SELECT 34 - + - NULLIF ( + - COUNT( * ), + - 48 ) AS col0, + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
33
-1

skipif mysql # not compatible
query II rowsort label-2212
SELECT 34 - + - NULLIF ( + - COUNT ( * ), + - 48 ) AS col0, + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
33
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2213
SELECT + 14 * - + CAST( + - 58 AS SIGNED ) AS col0
----
812

skipif mysql # not compatible
query I rowsort label-2213
SELECT + 14 * - + CAST ( + - 58 AS INTEGER ) AS col0
----
812

query I rowsort
SELECT ALL + 40 * - 65 * + - 60
----
156000

query I rowsort
SELECT - ( - - 44 ) - - - 26
----
-70

query I rowsort
SELECT ALL 93 * 95 AS col2
----
8835

query I rowsort
SELECT 26 + 16 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT 41 + + - 93 - + COUNT( * ) * + MIN( 54 ) + - + 35 AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-2218
SELECT 41 + + - 93 - + COUNT ( * ) * + MIN ( 54 ) + - + 35 AS col2
----
-141

query I rowsort
SELECT ( 31 ) + 93 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT 86 - 23 - - COUNT( * ) * - 1 * COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-2220
SELECT 86 - 23 - - COUNT ( * ) * - 1 * COUNT ( * )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2221
SELECT ( - 98 ) * + + 91 * + 48 * - - 18 + 47 * 66 AS col0, 15 * - COUNT( * ) DIV 24 AS col0
----
-7702050
0

skipif mysql # not compatible
query II rowsort label-2221
SELECT ( - 98 ) * + + 91 * + 48 * - - 18 + 47 * 66 AS col0, 15 * - COUNT ( * ) / 24 AS col0
----
-7702050
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2222
SELECT + CAST( - COUNT( * ) AS SIGNED ) DIV CASE AVG ( ALL - + 12 ) WHEN - 16 * - 0 * COUNT( * ) + + CAST( 84 AS SIGNED ) THEN NULL ELSE + ( + 87 ) END * 69 + + - 57 col2
----
-57

skipif mysql # not compatible
query I rowsort label-2222
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) / CASE AVG ( ALL - + 12 ) WHEN - 16 * - 0 * COUNT ( * ) + + CAST ( 84 AS INTEGER ) THEN NULL ELSE + ( + 87 ) END * 69 + + - 57 col2
----
-57

query I rowsort
SELECT - 79 * - + 25 + + 37
----
2012

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT + SUM( - NULLIF ( + 76, - 94 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-2224
SELECT + SUM ( - NULLIF ( + 76, - 94 ) )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT 85 + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2225
SELECT 85 + COUNT ( * ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT ALL + 72 * + - 87 + - CASE COUNT( + 90 ) WHEN - 98 THEN + - 47 * + 59 WHEN + 79 + MIN( ALL + 65 ) * 38 THEN NULL ELSE NULL END + - ( - - 18 ) + 70 * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL + 72 * + - 87 + - CASE COUNT ( + 90 ) WHEN - 98 THEN + - 47 * + 59 WHEN + 79 + MIN ( ALL + 65 ) * 38 THEN NULL ELSE NULL END + - ( - - 18 ) + 70 * + 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2227
SELECT ALL - SUM( CAST( + 45 AS SIGNED ) ) * + + 37
----
-1665

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL - SUM ( CAST ( + 45 AS INTEGER ) ) * + + 37
----
-1665

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT + SUM( ALL + 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2228
SELECT + SUM ( ALL + 22 ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2229
SELECT 85 * 19 col1, - 59 + - ( COUNT( * ) ) * + CASE 53 WHEN - 97 * + 56 * - - 15 THEN NULL ELSE - CAST( NULL AS SIGNED ) * + 1 * + 17 END
----
1615
NULL

skipif mysql # not compatible
query II rowsort label-2229
SELECT 85 * 19 col1, - 59 + - ( COUNT ( * ) ) * + CASE 53 WHEN - 97 * + 56 * - - 15 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * + 1 * + 17 END
----
1615
NULL

query I rowsort
SELECT 20 * 62
----
1240

query I rowsort
SELECT 91 + - 68 AS col1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2232
SELECT SUM( + 38 ) col0, 0 AS col1
----
38
0

skipif mysql # not compatible
query II rowsort label-2232
SELECT SUM ( + 38 ) col0, 0 AS col1
----
38
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2233
SELECT ALL - SUM( CAST( NULL AS SIGNED ) ) * + + 17 / + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL - SUM ( CAST ( NULL AS INTEGER ) ) * + + 17 / + 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2234
SELECT 23 * + CASE - 48 WHEN + - 90 * - NULLIF ( ( 35 ), 26 ) - - CASE - CAST( - 32 AS SIGNED ) WHEN + AVG ( DISTINCT - 89 ) THEN + 91 END + - ( - CAST( NULL AS SIGNED ) ) + 72 + - + 99 * + 16 * 77 - CAST( NULL AS SIGNED ) * 45 * - 82 THEN NULL ELSE + 9 + 59 * 32 END
----
43631

skipif mysql # not compatible
query I rowsort label-2234
SELECT 23 * + CASE - 48 WHEN + - 90 * - NULLIF ( ( 35 ), 26 ) - - CASE - CAST ( - 32 AS INTEGER ) WHEN + AVG ( DISTINCT - 89 ) THEN + 91 END + - ( - CAST ( NULL AS INTEGER ) ) + 72 + - + 99 * + 16 * 77 - CAST ( NULL AS INTEGER ) * 45 * - 82 THEN NULL ELSE + 9 + 59 * 32 END
----
43631

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT + COUNT( * ) * + 40 * + 64 + - 9
----
2551

skipif mysql # not compatible
query I rowsort label-2235
SELECT + COUNT ( * ) * + 40 * + 64 + - 9
----
2551

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT DISTINCT - + 7 - + - NULLIF ( - ( - - COUNT( * ) ), - 23 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT - + 7 - + - NULLIF ( - ( - - COUNT ( * ) ), - 23 ) AS col0
----
-8

query I rowsort
SELECT DISTINCT - 55 - - + COALESCE ( 48, 84 ) col0
----
-7

query I rowsort
SELECT ALL 35 * - + 69
----
-2415

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT + COUNT( * ) + 66 + + + 48 * - + COUNT( * ) * + 65
----
-3053

skipif mysql # not compatible
query I rowsort label-2239
SELECT + COUNT ( * ) + 66 + + + 48 * - + COUNT ( * ) * + 65
----
-3053

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT - + 25 * - - COUNT( * ) + 63 col2
----
38

skipif mysql # not compatible
query I rowsort label-2241
SELECT - + 25 * - - COUNT ( * ) + 63 col2
----
38

query I rowsort
SELECT NULLIF ( - 5, + 10 * 9 + + + NULLIF ( - - 68, - + 25 ) ) - 63 + 50 * + + 1
----
-18

query I rowsort
SELECT - + 30 * - 18
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT COUNT( * ) * 13 * + 79 + + 47 + + SUM( ALL + 60 ) AS col0
----
1134

skipif mysql # not compatible
query I rowsort label-2244
SELECT COUNT ( * ) * 13 * + 79 + + 47 + + SUM ( ALL + 60 ) AS col0
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL 11 * ( + - SUM( DISTINCT 34 ) ) * 81 * - 42
----
1272348

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL 11 * ( + - SUM ( DISTINCT 34 ) ) * 81 * - 42
----
1272348

query I rowsort
SELECT + 55 + + 5
----
60

query I rowsort
SELECT + 8 + 66 AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2248
SELECT ALL - - 77 * - 70, NULLIF ( + CAST( - 20 AS SIGNED ), + 68 * COALESCE ( - 88, 54, - 22 + - 59 ) + 0 - - + 23 / 14 + - - 6 * - 41 + + 4 / + - CASE - + COUNT( * ) WHEN 35 + 71 THEN + 10 + - 54 ELSE NULL END * - 88 ) * - 49 + 69 * - 84 col2
----
-5390
-4816

skipif mysql # not compatible
query II rowsort label-2248
SELECT ALL - - 77 * - 70, NULLIF ( + CAST ( - 20 AS INTEGER ), + 68 * COALESCE ( - 88, 54, - 22 + - 59 ) + 0 - - + 23 / 14 + - - 6 * - 41 + + 4 / + - CASE - + COUNT ( * ) WHEN 35 + 71 THEN + 10 + - 54 ELSE NULL END * - 88 ) * - 49 + 69 * - 84 col2
----
-5390
-4816

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2249
SELECT + CAST( NULL AS DECIMAL ) + + 90, - COALESCE ( 0, + COUNT( * ) - 34 * + 71 DIV + 47 ) AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2249
SELECT + CAST ( NULL AS REAL ) + + 90, - COALESCE ( 0, + COUNT ( * ) - 34 * + 71 / + 47 ) AS col0
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2250
SELECT ALL - 9 + + 99 * CAST( - - 94 AS SIGNED ) * + + 66
----
614187

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL - 9 + + 99 * CAST ( - - 94 AS INTEGER ) * + + 66
----
614187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2251
SELECT ALL + 34 + - - CASE - 70 WHEN + 43 THEN - + 10 * - COUNT( * ) WHEN - 89 THEN NULL ELSE + 85 END * CAST( + CAST( ( + 86 ) AS SIGNED ) AS SIGNED ) AS col2, COUNT( * ) AS col1
----
7344
1

skipif mysql # not compatible
query II rowsort label-2251
SELECT ALL + 34 + - - CASE - 70 WHEN + 43 THEN - + 10 * - COUNT ( * ) WHEN - 89 THEN NULL ELSE + 85 END * CAST ( + CAST ( ( + 86 ) AS INTEGER ) AS INTEGER ) AS col2, COUNT ( * ) AS col1
----
7344
1

query I rowsort
SELECT - 42 * + + 6
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT + 48 + - 81 * + - 60 * + 13 * COUNT( * ) * - 42
----
-2653512

skipif mysql # not compatible
query I rowsort label-2253
SELECT + 48 + - 81 * + - 60 * + 13 * COUNT ( * ) * - 42
----
-2653512

onlyif mysql # aggregate syntax: 
query II rowsort label-2254
SELECT 55 AS col0, + 46 + + COUNT( * ) * 65 + - 71 AS col2
----
55
40

skipif mysql # not compatible
query II rowsort label-2254
SELECT 55 AS col0, + 46 + + COUNT ( * ) * 65 + - 71 AS col2
----
55
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2255
SELECT + CAST( NULL AS SIGNED ) + - 75 * 60 * - 93 + + COUNT( DISTINCT - 45 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT + CAST ( NULL AS INTEGER ) + - 75 * 60 * - 93 + + COUNT ( DISTINCT - 45 ) col0
----
NULL

query I rowsort
SELECT ALL 30 + - 88 AS col0
----
-58

query II rowsort
SELECT DISTINCT 89 * + 39 * + 66 AS col0, - 88 - - - ( + 52 )
----
229086
-140

query I rowsort
SELECT + 0 + 7
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2259
SELECT DISTINCT 59 + - CAST( + + 36 AS SIGNED ) * + 93 * - + ( - - 82 ) * 84
----
23061083

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT 59 + - CAST ( + + 36 AS INTEGER ) * + 93 * - + ( - - 82 ) * 84
----
23061083

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2261
SELECT ALL 93, + COALESCE ( + SUM( - 29 ), + - 2 * ( 80 ) + - 8 + + COUNT( ALL 42 ), - + 93 * - 90 + 17 ) * + 41 + COUNT( * ) AS col0
----
93
-1188

skipif mysql # not compatible
query II rowsort label-2261
SELECT ALL 93, + COALESCE ( + SUM ( - 29 ), + - 2 * ( 80 ) + - 8 + + COUNT ( ALL 42 ), - + 93 * - 90 + 17 ) * + 41 + COUNT ( * ) AS col0
----
93
-1188

query I rowsort
SELECT DISTINCT 53 * - 84 AS col0
----
-4452

onlyif mysql # aggregate syntax: 
query II rowsort label-2263
SELECT ALL COUNT( * ) AS col2, - 69 * - + 34 * - NULLIF ( + - SUM( ALL - 30 ), - 97 * + 92 ) + + 87 + + - NULLIF ( + + 72, + 69 )
----
1
-70365

skipif mysql # not compatible
query II rowsort label-2263
SELECT ALL COUNT ( * ) AS col2, - 69 * - + 34 * - NULLIF ( + - SUM ( ALL - 30 ), - 97 * + 92 ) + + 87 + + - NULLIF ( + + 72, + 69 )
----
1
-70365

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2265
SELECT ALL 62 * CAST( AVG ( - 72 ) AS SIGNED ) - + CAST( 35 AS SIGNED ), 38 * - 39 + - 95 AS col0
----
-4499
-1577

skipif mysql # not compatible
query II rowsort label-2265
SELECT ALL 62 * CAST ( AVG ( - 72 ) AS INTEGER ) - + CAST ( 35 AS INTEGER ), 38 * - 39 + - 95 AS col0
----
-4499
-1577

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2266
SELECT SUM( + - 56 ) * - CAST( NULL AS DECIMAL ) + COUNT( * ) * ( - COUNT( * ) ) - - 35 * - - ( + 36 ) / + + 52 / - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT SUM ( + - 56 ) * - CAST ( NULL AS REAL ) + COUNT ( * ) * ( - COUNT ( * ) ) - - 35 * - - ( + 36 ) / + + 52 / - 49 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2268
SELECT + 81 DIV + + COUNT( * ) - + - 88
----
169

skipif mysql # not compatible
query I rowsort label-2268
SELECT + 81 / + + COUNT ( * ) - + - 88
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT + NULLIF ( + 81, + 23 + - MAX( - 0 ) ) * + + 58 * + - 99
----
-465102

skipif mysql # not compatible
query I rowsort label-2269
SELECT + NULLIF ( + 81, + 23 + - MAX ( - 0 ) ) * + + 58 * + - 99
----
-465102

query I rowsort
SELECT + 5 + + 98 * 32 * 14 + + - 35
----
43874

query I rowsort
SELECT - 11 * - 33 AS col0
----
363

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

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

query I rowsort
SELECT 4 * - 73 + + 66
----
-226

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2274
SELECT ALL + 71, 20 + + CAST( - - 7 AS SIGNED ) AS col1
----
71
27

skipif mysql # not compatible
query II rowsort label-2274
SELECT ALL + 71, 20 + + CAST ( - - 7 AS INTEGER ) AS col1
----
71
27

query I rowsort
SELECT CASE + 4 WHEN + + 70 + - ( + - 75 ) THEN + ( - 95 ) WHEN NULLIF ( + 35, + - 13 ) + NULLIF ( - 28, - - ( - 83 ) ) + + + 45 THEN - + 14 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2276
SELECT 13 * AVG ( + ( - + CAST( NULL AS SIGNED ) ) ) - ( + 50 ) + + 54 + + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT 13 * AVG ( + ( - + CAST ( NULL AS INTEGER ) ) ) - ( + 50 ) + + 54 + + 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2277
SELECT - + 64 DIV + - 76 + 50 - - - 2 DIV + SUM( - 74 ) AS col1, 86
----
50
86

skipif mysql # not compatible
query II rowsort label-2277
SELECT - + 64 / + - 76 + 50 - - - 2 / + SUM ( - 74 ) AS col1, 86
----
50
86

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

query I rowsort
SELECT DISTINCT - 67 * 83 AS col2
----
-5561

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT COALESCE ( - 94, - 99, + 77 + COUNT( * ), - + COALESCE ( - 50, - 68, - + 35 ) * - + COUNT( * ) )
----
-94

skipif mysql # not compatible
query I rowsort label-2280
SELECT COALESCE ( - 94, - 99, + 77 + COUNT ( * ), - + COALESCE ( - 50, - 68, - + 35 ) * - + COUNT ( * ) )
----
-94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT - - 35 * 6 * + 88 + CASE - + NULLIF ( - 6, 26 ) WHEN - 51 THEN + - 30 END * - + COUNT( * ) + - - 64 * - 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT - - 35 * 6 * + 88 + CASE - + NULLIF ( - 6, 26 ) WHEN - 51 THEN + - 30 END * - + COUNT ( * ) + - - 64 * - 44 AS col2
----
NULL

query II rowsort
SELECT ALL + - 86 AS col0, 78 + ( 89 ) + + 96
----
-86
263

query II rowsort
SELECT + 53 AS col0, 52 + + 60
----
53
112

onlyif mysql # aggregate syntax: 
query II rowsort label-2285
SELECT - 26 + - COUNT( * ) - - 67, - 13 AS col0
----
40
-13

skipif mysql # not compatible
query II rowsort label-2285
SELECT - 26 + - COUNT ( * ) - - 67, - 13 AS col0
----
40
-13

query I rowsort
SELECT - 69 * - + NULLIF ( 28, + + ( + 45 ) * - 28 * + 84 - - - 13 - + - 27 ) + - 66
----
1866

query I rowsort
SELECT ALL 4 * - 34 + - 81 + 98 + 13
----
-106

onlyif mysql # aggregate syntax: 
query II rowsort label-2288
SELECT + COUNT( * ) col2, - MIN( 6 )
----
1
-6

skipif mysql # not compatible
query II rowsort label-2288
SELECT + COUNT ( * ) col2, - MIN ( 6 )
----
1
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL - 34 * + 24 + + MIN( 2 ) + - 64 AS col2
----
-878

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL - 34 * + 24 + + MIN ( 2 ) + - 64 AS col2
----
-878

query I rowsort
SELECT - + 33 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT DISTINCT - + COUNT( * ) * 84 * - + 79 * COUNT( * ) * 19 + + 53 * + 82 col1
----
130430

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT - + COUNT ( * ) * 84 * - + 79 * COUNT ( * ) * 19 + + 53 * + 82 col1
----
130430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2292
SELECT ALL - 56 * - NULLIF ( - - ( + 46 ), - + COUNT( + CAST( NULL AS SIGNED ) ) / + 13 + + + MAX( + 9 ) ) + - + 56
----
2520

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL - 56 * - NULLIF ( - - ( + 46 ), - + COUNT ( + CAST ( NULL AS INTEGER ) ) / + 13 + + + MAX ( + 9 ) ) + - + 56
----
2520

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

query I rowsort
SELECT - 58 + + 20 + ( - + 98 )
----
-136

query II rowsort
SELECT - 38 AS col1, - 7 AS col2
----
-38
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2296
SELECT - 72 + + 7 + - - 14 DIV + - 29
----
-65

skipif mysql # not compatible
query I rowsort label-2296
SELECT - 72 + + 7 + - - 14 / + - 29
----
-65

query I rowsort
SELECT ALL + - 12 * + 81
----
-972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2298
SELECT ALL CAST( - 30 AS SIGNED ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL CAST ( - 30 AS INTEGER ) col2
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT - ( + COUNT( * ) ) - - MIN( - 78 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-2300
SELECT - ( + COUNT ( * ) ) - - MIN ( - 78 ) AS col1
----
-79

query I rowsort
SELECT ALL + 71 * - - NULLIF ( ( + 99 ), 83 )
----
7029

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

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

query I rowsort
SELECT + 58 * - NULLIF ( + ( + - 58 ), - - 86 ) AS col1
----
3364

query I rowsort
SELECT - 29 + 58 col1
----
29

query I rowsort
SELECT DISTINCT 54 col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT - NULLIF ( - + COUNT( * ), 36 + + 13 - - ( - + NULLIF ( + COUNT( + 64 ), + 86 ) ) * - 21 + + 43 ) + + 27
----
28

skipif mysql # not compatible
query I rowsort label-2306
SELECT - NULLIF ( - + COUNT ( * ), 36 + + 13 - - ( - + NULLIF ( + COUNT ( + 64 ), + 86 ) ) * - 21 + + 43 ) + + 27
----
28

query I rowsort
SELECT + 11 - - - 30 col0
----
-19

query I rowsort
SELECT + 23 * - 46
----
-1058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2309
SELECT DISTINCT NULLIF ( ( - 69 ), + 89 - - COUNT( * ) ) * + CAST( + 28 AS SIGNED ) + 71 * - - 74
----
3322

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT NULLIF ( ( - 69 ), + 89 - - COUNT ( * ) ) * + CAST ( + 28 AS INTEGER ) + 71 * - - 74
----
3322

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2310
SELECT DISTINCT COUNT( * ) DIV 54 - 95 + - 3 + - 94 AS col1, - 31 DIV - 47 + + 59 - - + 53
----
-192
112

skipif mysql # not compatible
query II rowsort label-2310
SELECT DISTINCT COUNT ( * ) / 54 - 95 + - 3 + - 94 AS col1, - 31 / - 47 + + 59 - - + 53
----
-192
112

query I rowsort
SELECT + 92 * - 56 AS col0
----
-5152

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT DISTINCT + + COALESCE ( 34, + + 39 DIV + 16, + + 53 )
----
34

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT + + COALESCE ( 34, + + 39 / + 16, + + 53 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2313
SELECT + 87 / + CASE - NULLIF ( + - COUNT( * ), + MIN( - 86 ) * ( - - 41 ) * - 63 ) WHEN + - 79 THEN + ( - - SUM( COALESCE ( 37, 88 ) ) ) * - COALESCE ( COUNT( * ), - - COUNT( * ) * + + 97 * - 54, + + 76 / + 37 ) - + 71 + + 51 * + CAST( NULL AS SIGNED ) END * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT + 87 / + CASE - NULLIF ( + - COUNT ( * ), + MIN ( - 86 ) * ( - - 41 ) * - 63 ) WHEN + - 79 THEN + ( - - SUM ( COALESCE ( 37, 88 ) ) ) * - COALESCE ( COUNT ( * ), - - COUNT ( * ) * + + 97 * - 54, + + 76 / + 37 ) - + 71 + + 51 * + CAST ( NULL AS INTEGER ) END * - 27
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2314
SELECT - 56 DIV + 25 + + 85 col0
----
83

skipif mysql # not compatible
query I rowsort label-2314
SELECT - 56 / + 25 + + 85 col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2315
SELECT DISTINCT - COALESCE ( - - ( - ( + 62 ) ), 42 + - - COUNT( * ) DIV + 75 DIV + 44, - 29 )
----
62

skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT - COALESCE ( - - ( - ( + 62 ) ), 42 + - - COUNT ( * ) / + 75 / + 44, - 29 )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT 63 + - 42 * - - 39 * + 37 * - CAST( + - 76 AS SIGNED )
----
-4605993

skipif mysql # not compatible
query I rowsort label-2316
SELECT 63 + - 42 * - - 39 * + 37 * - CAST ( + - 76 AS INTEGER )
----
-4605993

query I rowsort
SELECT 22 + - + 20
----
2

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

skipif mysql # not compatible
query I rowsort label-2318
SELECT COUNT ( * ) / - - 89 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2319
SELECT ALL - - COALESCE ( SUM( + + 76 ), 11, - COUNT( * ) ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL - - COALESCE ( SUM ( + + 76 ), 11, - COUNT ( * ) ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 52 ) * + + 99 + - 18 + + 40 + + 8 + - - 55 + 63 * + 82 + 59 - + 75 + - - NULLIF ( - 19, + 15 ) * - + 15 AS col1
----
10668

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

skipif mysql # not compatible
query II rowsort label-2321
SELECT COUNT ( * ) * + - 54, COUNT ( * ) AS col0
----
-54
1

query I rowsort
SELECT ALL - + 89 * - + 75
----
6675

query I rowsort
SELECT 32 + - 32 * - 65
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL 59 + + + COALESCE ( + 83, + COUNT( * ) ) - + - 60 + + 14
----
216

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL 59 + + + COALESCE ( + 83, + COUNT ( * ) ) - + - 60 + + 14
----
216

query I rowsort
SELECT 78 + - ( 18 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT DISTINCT + CASE + COUNT( * ) WHEN + - 60 THEN + 30 WHEN COUNT( - 15 ) THEN + 94 END * + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT + CASE + COUNT ( * ) WHEN + - 60 THEN + 30 WHEN COUNT ( - 15 ) THEN + 94 END * + + COUNT ( * )
----
94

query I rowsort
SELECT - 26 + 15 * - 76 AS col2
----
-1166

query I rowsort
SELECT DISTINCT - 99 col2
----
-99

query I rowsort
SELECT ALL + - 10 * + 12 - - 97 + 71 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT - - 47 + - + MIN( DISTINCT 3 ) col2
----
44

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT - - 47 + - + MIN ( DISTINCT 3 ) col2
----
44

query I rowsort
SELECT - + 4 AS col2
----
-4

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

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

query I rowsort
SELECT 85 + - - 99
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-2334
SELECT ALL + 39 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL + 39 / + 93
----
0

query I rowsort
SELECT ALL 33 col2
----
33

query I rowsort
SELECT 95 + + - 52 col1
----
43

query I rowsort
SELECT ALL - 12 - + 48
----
-60

query I rowsort
SELECT ALL + 21 * + 73
----
1533

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

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

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

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL + COUNT ( * ) * - - 42 / + - 3 AS col1
----
-14

query I rowsort
SELECT 20 + ( - 24 ) + + 73
----
69

query I rowsort
SELECT ALL + 22 * 55
----
1210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2343
SELECT 1 / CAST( NULL AS SIGNED ) * - 79, - COUNT( + 55 ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2343
SELECT 1 / CAST ( NULL AS INTEGER ) * - 79, - COUNT ( + 55 ) AS col0
----
NULL
-1

query I rowsort
SELECT 36 * - 82 AS col2
----
-2952

query II rowsort
SELECT ALL 55 AS col2, + 98 AS col2
----
55
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ALL - COUNT( * ) * - - 57 * - 19 * - CASE WHEN NOT + 95 = + + AVG ( ALL + 2 ) THEN + - 60 END * 11
----
714780

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL - COUNT ( * ) * - - 57 * - 19 * - CASE WHEN NOT + 95 = + + AVG ( ALL + 2 ) THEN + - 60 END * 11
----
714780

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT COUNT( * ) * + - COALESCE ( + ( - 34 ), - + MAX( DISTINCT - + 92 ), + 71 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2347
SELECT COUNT ( * ) * + - COALESCE ( + ( - 34 ), - + MAX ( DISTINCT - + 92 ), + 71 ) AS col2
----
34

query I rowsort
SELECT 50 * 75 - + 49 AS col1
----
3701

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2349
SELECT - 54 DIV - 59 + 70 - 49 + - 78 * + - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-2349
SELECT - 54 / - 59 + 70 - 49 + - 78 * + - COUNT ( * )
----
99

query I rowsort
SELECT + + 98 * 92 * - 86 + + 24 * - + 97 AS col1
----
-777704

query I rowsort
SELECT DISTINCT + 7 + + 90
----
97

query I rowsort
SELECT ALL 77 + - 96 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT CASE + - NULLIF ( + 59, - 34 ) WHEN - + ( - - 2 ) * - + 93 / 5 * + COUNT( DISTINCT + + 46 ) THEN - ( - - 57 ) * - 17 * - 46 * + - 25 + + - 64 * - NULLIF ( - 8, + - ( COUNT( ALL - 30 ) ) + - COUNT( * ) + - - 22 + 66 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2353
SELECT CASE + - NULLIF ( + 59, - 34 ) WHEN - + ( - - 2 ) * - + 93 / 5 * + COUNT ( DISTINCT + + 46 ) THEN - ( - - 57 ) * - 17 * - 46 * + - 25 + + - 64 * - NULLIF ( - 8, + - ( COUNT ( ALL - 30 ) ) + - COUNT ( * ) + - - 22 + 66 ) ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL + + 45 / - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - + 83 + + - 93 AS col0
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2356
SELECT CASE + + 40 WHEN - 47 * + 82 * - CAST( NULL AS SIGNED ) THEN + + COUNT( * ) + 89 + - - 47 * + COUNT( * ) + 97 + - + 64 * - - 50 * + + 37 * 84 * - + COUNT( DISTINCT 86 ) * + ( - MIN( DISTINCT - 59 ) ) - + 96 ELSE NULL END * 80 + - 28 - + CASE - 8 WHEN - - 70 * 14 THEN NULL WHEN + 47 * - 67 + 2 THEN NULL WHEN ( + NULLIF ( + 19, 59 / + 63 ) ) THEN 91 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT CASE + + 40 WHEN - 47 * + 82 * - CAST ( NULL AS INTEGER ) THEN + + COUNT ( * ) + 89 + - - 47 * + COUNT ( * ) + 97 + - + 64 * - - 50 * + + 37 * 84 * - + COUNT ( DISTINCT 86 ) * + ( - MIN ( DISTINCT - 59 ) ) - + 96 ELSE NULL END * 80 + - 28 - + CASE - 8 WHEN - - 70 * 14 THEN NULL WHEN + 47 * - 67 + 2 THEN NULL WHEN ( + NULLIF ( + 19, 59 / + 63 ) ) THEN 91 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2357
SELECT DISTINCT + 24 + + 48 DIV - 29 + 85 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT + 24 + + 48 / - 29 + 85 AS col1
----
108

query I rowsort
SELECT ALL NULLIF ( + - 62, 52 ) + - ( COALESCE ( - 68, + 0 ) )
----
6

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

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

query I rowsort
SELECT DISTINCT - + 66 AS col2
----
-66

query I rowsort
SELECT DISTINCT - - 89 AS col1
----
89

query I rowsort
SELECT ALL - 30 - + + 63
----
-93

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

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

query I rowsort
SELECT ALL - - ( - - 74 )
----
74

query I rowsort
SELECT 3 * + 23 AS col2
----
69

query I rowsort
SELECT + 81 * + 89 AS col0
----
7209

query I rowsort
SELECT DISTINCT - 7 * 86 AS col0
----
-602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2368
SELECT ALL + AVG ( DISTINCT + 24 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL + AVG ( DISTINCT + 24 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

query II rowsort
SELECT ALL 78, 12 * - - 24 AS col1
----
78
288

onlyif mysql # aggregate syntax: 
query II rowsort label-2371
SELECT 75 + NULLIF ( 25, + 0 + MIN( - - 62 ) ) * 0, 69 col0
----
75
69

skipif mysql # not compatible
query II rowsort label-2371
SELECT 75 + NULLIF ( 25, + 0 + MIN ( - - 62 ) ) * 0, 69 col0
----
75
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT 14 * COALESCE ( - CAST( + 14 AS SIGNED ), 32 * 32 )
----
-196

skipif mysql # not compatible
query I rowsort label-2372
SELECT 14 * COALESCE ( - CAST ( + 14 AS INTEGER ), 32 * 32 )
----
-196

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2374
SELECT 14 AS col2, + NULLIF ( - 99, - + CASE 48 WHEN + - 21 + + 34 THEN - CASE + CASE - CASE + 61 WHEN COUNT( * ) * - - COUNT( * ) THEN + - COUNT( * ) * + + 79 ELSE + 71 END WHEN - 51 THEN + 96 END WHEN + + 48 / + - 61 + - COUNT( - 63 ) THEN NULL ELSE + 33 END * - + 18 + - 12 WHEN - 72 THEN NULL END / COUNT( * ) )
----
14
-99

skipif mysql # not compatible
query II rowsort label-2374
SELECT 14 AS col2, + NULLIF ( - 99, - + CASE 48 WHEN + - 21 + + 34 THEN - CASE + CASE - CASE + 61 WHEN COUNT ( * ) * - - COUNT ( * ) THEN + - COUNT ( * ) * + + 79 ELSE + 71 END WHEN - 51 THEN + 96 END WHEN + + 48 / + - 61 + - COUNT ( - 63 ) THEN NULL ELSE + 33 END * - + 18 + - 12 WHEN - 72 THEN NULL END / COUNT ( * ) )
----
14
-99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2376
SELECT 10 - - + 16 + 37 DIV 88
----
26

skipif mysql # not compatible
query I rowsort label-2376
SELECT 10 - - + 16 + 37 / 88
----
26

query I rowsort
SELECT 20 + - 85
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT 29 + 72 + - 58 - - 9 + - CASE 33 WHEN + ( + - COUNT( DISTINCT - - 57 ) ) THEN + ( + + ( - MAX( ALL - 22 ) ) ) + + 11 + + 12 * - 22 ELSE - SUM( DISTINCT 11 ) END
----
63

skipif mysql # not compatible
query I rowsort label-2378
SELECT 29 + 72 + - 58 - - 9 + - CASE 33 WHEN + ( + - COUNT ( DISTINCT - - 57 ) ) THEN + ( + + ( - MAX ( ALL - 22 ) ) ) + + 11 + + 12 * - 22 ELSE - SUM ( DISTINCT 11 ) END
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT ALL 10 AS col1, - 73 + COUNT( 36 ) + + - 11 * - + 10 + - + 96 AS col1
----
10
-58

skipif mysql # not compatible
query II rowsort label-2379
SELECT ALL 10 AS col1, - 73 + COUNT ( 36 ) + + - 11 * - + 10 + - + 96 AS col1
----
10
-58

query II rowsort
SELECT DISTINCT 61 AS col0, - ( + 13 ) * 65 - 72
----
61
-917

onlyif mysql # aggregate syntax: 
query II rowsort label-2381
SELECT 39 + 18 AS col2, - 48 * + COUNT( 98 ) - - 10 + + SUM( + + 6 ) AS col2
----
57
-32

skipif mysql # not compatible
query II rowsort label-2381
SELECT 39 + 18 AS col2, - 48 * + COUNT ( 98 ) - - 10 + + SUM ( + + 6 ) AS col2
----
57
-32

query I rowsort
SELECT + 40 + + 26 AS col0
----
66

query II rowsort
SELECT - 66, 60 + 45 AS col2
----
-66
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2384
SELECT ALL - 91 + - - ( - + ( + + NULLIF ( - + CAST( + 89 AS SIGNED ), - 81 ) ) ) * - ( - 53 ) + - COUNT( + 22 ), + ( - - 93 ) AS col0
----
4625
93

skipif mysql # not compatible
query II rowsort label-2384
SELECT ALL - 91 + - - ( - + ( + + NULLIF ( - + CAST ( + 89 AS INTEGER ), - 81 ) ) ) * - ( - 53 ) + - COUNT ( + 22 ), + ( - - 93 ) AS col0
----
4625
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT - 22 - - 17 + - COUNT( * ) - - COUNT( - 11 ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-2385
SELECT - 22 - - 17 + - COUNT ( * ) - - COUNT ( - 11 ) col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT - - 88 + - COUNT( * ) + + 46
----
133

skipif mysql # not compatible
query I rowsort label-2386
SELECT - - 88 + - COUNT ( * ) + + 46
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2387
SELECT ALL + - COUNT( * ) + + CAST( + NULLIF ( 24, - - COUNT( * ) ) AS SIGNED ) * + 74, ( ( - 45 ) ) AS col0
----
1775
-45

skipif mysql # not compatible
query II rowsort label-2387
SELECT ALL + - COUNT ( * ) + + CAST ( + NULLIF ( 24, - - COUNT ( * ) ) AS INTEGER ) * + 74, ( ( - 45 ) ) AS col0
----
1775
-45

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

query I rowsort
SELECT ALL 22 * 15 + 61 * - 75 * - - 34 AS col0
----
-155220

query I rowsort
SELECT ALL + 80 col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT NULLIF ( - + 32, + 87 ) * - COUNT( * ) + + + 31 col0
----
63

skipif mysql # not compatible
query I rowsort label-2391
SELECT NULLIF ( - + 32, + 87 ) * - COUNT ( * ) + + + 31 col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2392
SELECT ALL - 15 * - + COALESCE ( ( + 58 ), - - 18, - SUM( DISTINCT 90 ) + - ( 46 ) * - 37 ) + - + 48 + + + CAST( NULL AS DECIMAL ) * + 22 + - 1 + - 58 * - 65 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL - 15 * - + COALESCE ( ( + 58 ), - - 18, - SUM ( DISTINCT 90 ) + - ( 46 ) * - 37 ) + - + 48 + + + CAST ( NULL AS REAL ) * + 22 + - 1 + - 58 * - 65 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT - 97 * - - 36 * + 61 + - COUNT( * )
----
-213013

skipif mysql # not compatible
query I rowsort label-2393
SELECT - 97 * - - 36 * + 61 + - COUNT ( * )
----
-213013

query I rowsort
SELECT - + 62 * 17
----
-1054

query II rowsort
SELECT + 6 AS col0, - 15
----
6
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2396
SELECT 45 DIV MAX( - 32 ) + - 41 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-2396
SELECT 45 / MAX ( - 32 ) + - 41 AS col1
----
-42

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

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

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

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

query I rowsort
SELECT + + 87 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT DISTINCT - 57 * + + COUNT( * ) + ( + - 41 ) * - 23
----
886

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT - 57 * + + COUNT ( * ) + ( + - 41 ) * - 23
----
886

query I rowsort
SELECT ALL - 28 * + + 80 - - 13 * - - 6 + + 17 * + 50 + - 39 * - 34 + - 17
----
-3

query I rowsort
SELECT DISTINCT 89 * 46
----
4094

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT + 59 + + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-2403
SELECT + 59 + + COUNT ( * ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT + 18 * + + SUM( ALL - 54 )
----
-972

skipif mysql # not compatible
query I rowsort label-2404
SELECT + 18 * + + SUM ( ALL - 54 )
----
-972

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT COUNT( 38 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2406
SELECT COUNT ( 38 ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT - 9 * 21 * + - CASE - 21 WHEN 94 THEN - 22 * COUNT( * ) + - + 36 + - + 99 ELSE NULL END + + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2408
SELECT - 9 * 21 * + - CASE - 21 WHEN 94 THEN - 22 * COUNT ( * ) + - + 36 + - + 99 ELSE NULL END + + 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-2409
SELECT COUNT( + 2 ) AS col0, 85, 34 AS col0
----
1
85
34

skipif mysql # not compatible
query III rowsort label-2409
SELECT COUNT ( + 2 ) AS col0, 85, 34 AS col0
----
1
85
34

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

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

query II rowsort
SELECT + 52 * + 93 col2, - 96 col1
----
4836
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT DISTINCT SUM( 84 ) + - + 97 + + 64 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT SUM ( 84 ) + - + 97 + + 64 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( + 90, + 47 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT ALL COALESCE ( + - 73, - - ( - 2 ) * COUNT( * ) * + 62 ) + - 82 col2
----
-155

skipif mysql # not compatible
query I rowsort label-2415
SELECT ALL COALESCE ( + - 73, - - ( - 2 ) * COUNT ( * ) * + 62 ) + - 82 col2
----
-155

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

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

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

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

query I rowsort
SELECT + 92 * + - 77
----
-7084

query I rowsort
SELECT - 98 + - 34 AS col2
----
-132

query I rowsort
SELECT ALL - 87 + - - 59 AS col2
----
-28

query II rowsort
SELECT DISTINCT ( - 21 ), 90 AS col0
----
-21
90

onlyif mysql # aggregate syntax: 
query II rowsort label-2422
SELECT - 33 * + 47, - 62 * + 58 * + COUNT( - 59 ) + - - 71 AS col0
----
-1551
-3525

skipif mysql # not compatible
query II rowsort label-2422
SELECT - 33 * + 47, - 62 * + 58 * + COUNT ( - 59 ) + - - 71 AS col0
----
-1551
-3525

query I rowsort
SELECT - + 35 + 22 * + 7
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT CASE + - 96 WHEN - - 26 THEN + - 10 ELSE - 7 * ( 91 ) + - - COALESCE ( + 69, + 72 ) + COUNT( * ) + - 29 END
----
-596

skipif mysql # not compatible
query I rowsort label-2424
SELECT CASE + - 96 WHEN - - 26 THEN + - 10 ELSE - 7 * ( 91 ) + - - COALESCE ( + 69, + 72 ) + COUNT ( * ) + - 29 END
----
-596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2425
SELECT - + 85 * - - COALESCE ( - 2, 41 ) DIV + ( - COUNT( * ) ) + + 95 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-2425
SELECT - + 85 * - - COALESCE ( - 2, 41 ) / + ( - COUNT ( * ) ) + + 95 AS col0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2426
SELECT - 97 DIV 25 * 82
----
-246

skipif mysql # not compatible
query I rowsort label-2426
SELECT - 97 / 25 * 82
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT ALL + + 3 * + - 71 + + + COUNT( * ) AS col1
----
-212

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL + + 3 * + - 71 + + + COUNT ( * ) AS col1
----
-212

query II rowsort
SELECT - 36 * 65 AS col2, - 61 AS col0
----
-2340
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2429
SELECT ALL NULLIF ( - CASE - 82 WHEN 74 THEN NULL WHEN - - MAX( DISTINCT - + 8 ) * - MIN( + 0 ) THEN + - 2 + 6 ELSE + 99 END, + - COUNT( * ) + - - 43 ) * - CAST( NULL AS SIGNED ) - + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL NULLIF ( - CASE - 82 WHEN 74 THEN NULL WHEN - - MAX ( DISTINCT - + 8 ) * - MIN ( + 0 ) THEN + - 2 + 6 ELSE + 99 END, + - COUNT ( * ) + - - 43 ) * - CAST ( NULL AS INTEGER ) - + 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2430
SELECT + COALESCE ( - + 17, - 71 ) * ( - 65 ) - - + 83 * 80 DIV COUNT( * ) * + 43
----
286625

skipif mysql # not compatible
query I rowsort label-2430
SELECT + COALESCE ( - + 17, - 71 ) * ( - 65 ) - - + 83 * 80 / COUNT ( * ) * + 43
----
286625

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL + - 11 * - MIN( DISTINCT - 8 )
----
-88

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + - 11 * - MIN ( DISTINCT - 8 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT - - 59 * - - 85 * - + COUNT( * ) AS col2
----
-5015

skipif mysql # not compatible
query I rowsort label-2432
SELECT - - 59 * - - 85 * - + COUNT ( * ) AS col2
----
-5015

onlyif mysql # DIV for integer division: 
query I rowsort label-2433
SELECT DISTINCT 11 DIV 89 * + 90
----
0

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT 11 / 89 * + 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2434
SELECT + CAST( 20 AS SIGNED ), + COALESCE ( + + ( 40 ), + 32 * - 71 ) + + COUNT( * ) AS col1
----
20
41

skipif mysql # not compatible
query II rowsort label-2434
SELECT + CAST ( 20 AS INTEGER ), + COALESCE ( + + ( 40 ), + 32 * - 71 ) + + COUNT ( * ) AS col1
----
20
41

query I rowsort
SELECT ALL + + 55 col0
----
55

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2438
SELECT ALL CAST( NULL AS SIGNED ) * 59 + + + 60 + 43 * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL CAST ( NULL AS INTEGER ) * 59 + + + 60 + 43 * + 40
----
NULL

query I rowsort
SELECT DISTINCT 11 * + 57 * + COALESCE ( - - 10, 68, - 12 ) + - 45 + 82
----
6307

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

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

query I rowsort
SELECT ALL + 37 * - 17 + + 67
----
-562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT ALL CAST( - ( - NULLIF ( AVG ( + + 54 ), - 55 ) ) AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL CAST ( - ( - NULLIF ( AVG ( + + 54 ), - 55 ) ) AS INTEGER )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2443
SELECT - CASE - - MIN( ALL + 87 ) WHEN - 13 THEN - MAX( CAST( NULL AS SIGNED ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2443
SELECT - CASE - - MIN ( ALL + 87 ) WHEN - 13 THEN - MAX ( CAST ( NULL AS INTEGER ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2444
SELECT - 4 * - 79 + - 16 + + 17 DIV - 91 * 37 * SUM( 68 )
----
300

skipif mysql # not compatible
query I rowsort label-2444
SELECT - 4 * - 79 + - 16 + + 17 / - 91 * 37 * SUM ( 68 )
----
300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2445
SELECT COUNT( * ) DIV 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2445
SELECT COUNT ( * ) / 86 AS col0
----
0

query I rowsort
SELECT ALL + 91 + - 75 * - 88 * - 29 AS col2
----
-191309

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT 10 + COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-2447
SELECT 10 + COUNT ( * ) AS col1
----
11

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

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

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

skipif mysql # not compatible
query I rowsort label-2449
SELECT 19 + COUNT ( * ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT COUNT( * ) + 18 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2450
SELECT COUNT ( * ) + 18 AS col2
----
19

query I rowsort
SELECT DISTINCT + 73 + + + 39 AS col0
----
112

query II rowsort
SELECT ALL 21, + 92 AS col2
----
21
92

query I rowsort
SELECT ALL + 86 * - + 15 * - ( - 94 )
----
-121260

query II rowsort
SELECT - + 9 AS col1, 19 * - + 7 AS col2
----
-9
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2455
SELECT + 68 AS col1, - 2 + - 85 DIV - - 8 + COALESCE ( + + SUM( + CAST( NULL AS SIGNED ) ), - - 80 ) AS col0
----
68
68

skipif mysql # not compatible
query II rowsort label-2455
SELECT + 68 AS col1, - 2 + - 85 / - - 8 + COALESCE ( + + SUM ( + CAST ( NULL AS INTEGER ) ), - - 80 ) AS col0
----
68
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2456
SELECT + ( COUNT( * ) ) + - - COUNT( * ) AS col0, - 41 * - - 94 - + 44 DIV - 94 * 15
----
2
-3854

skipif mysql # not compatible
query II rowsort label-2456
SELECT + ( COUNT ( * ) ) + - - COUNT ( * ) AS col0, - 41 * - - 94 - + 44 / - 94 * 15
----
2
-3854

query I rowsort
SELECT ALL + 25 * + 97
----
2425

onlyif mysql # aggregate syntax: 
query II rowsort label-2458
SELECT - 18 AS col1, - 78 * - COUNT( * )
----
-18
78

skipif mysql # not compatible
query II rowsort label-2458
SELECT - 18 AS col1, - 78 * - COUNT ( * )
----
-18
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2459
SELECT - COUNT( * ) AS col0, CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2459
SELECT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER )
----
-1
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2462
SELECT - COALESCE ( 59, + MIN( DISTINCT - 49 ) ) AS col1, MAX( DISTINCT 98 ) + - COUNT( DISTINCT - + ( - 77 ) ) * - 68 col0
----
-59
166

skipif mysql # not compatible
query II rowsort label-2462
SELECT - COALESCE ( 59, + MIN ( DISTINCT - 49 ) ) AS col1, MAX ( DISTINCT 98 ) + - COUNT ( DISTINCT - + ( - 77 ) ) * - 68 col0
----
-59
166

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT MIN( + 51 ) + 83 * 69 col0
----
5778

skipif mysql # not compatible
query I rowsort label-2465
SELECT MIN ( + 51 ) + 83 * 69 col0
----
5778

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

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

skipif mysql # not compatible
query I rowsort label-2467
SELECT - 0 / 51 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2468
SELECT CASE - 27 WHEN + + 83 - + SUM( - - 16 ) THEN + 94 * COUNT( * ) WHEN - 39 + SUM( ALL + ( - + CAST( + - 78 AS DECIMAL ) ) ) + + + 86 * - 12 * + ( - - COALESCE ( - - 77, + + 12 * AVG ( + - 82 ) ) ) * - 80 - - COALESCE ( 53, - ( - 6 ) - 29 + - 96 ) * - - 46 DIV + 25 + - 87 * 98 THEN + 68 ELSE + 27 DIV 33 END + 73 * 33
----
2409

skipif mysql # not compatible
query I rowsort label-2468
SELECT CASE - 27 WHEN + + 83 - + SUM ( - - 16 ) THEN + 94 * COUNT ( * ) WHEN - 39 + SUM ( ALL + ( - + CAST ( + - 78 AS REAL ) ) ) + + + 86 * - 12 * + ( - - COALESCE ( - - 77, + + 12 * AVG ( + - 82 ) ) ) * - 80 - - COALESCE ( 53, - ( - 6 ) - 29 + - 96 ) * - - 46 / + 25 + - 87 * 98 THEN + 68 ELSE + 27 / 33 END + 73 * 33
----
2409

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT + NULLIF ( ( 79 ), + MIN( DISTINCT 80 ) * + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-2469
SELECT + NULLIF ( ( 79 ), + MIN ( DISTINCT 80 ) * + 79 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2470
SELECT DISTINCT - 68 AS col0, CASE + - 63 WHEN - CAST( NULL AS SIGNED ) * - - 99 + + + 0 THEN 32 WHEN 12 + + - MAX( ALL + 85 ) THEN NULL ELSE - 44 DIV 98 + - COALESCE ( 41, 29 ) END * + 73 + - + 56 * + 66 AS col1
----
-68
-6689

skipif mysql # not compatible
query II rowsort label-2470
SELECT DISTINCT - 68 AS col0, CASE + - 63 WHEN - CAST ( NULL AS INTEGER ) * - - 99 + + + 0 THEN 32 WHEN 12 + + - MAX ( ALL + 85 ) THEN NULL ELSE - 44 / 98 + - COALESCE ( 41, 29 ) END * + 73 + - + 56 * + 66 AS col1
----
-68
-6689

query I rowsort
SELECT 30 * + 26 * + ( + + COALESCE ( + + 18, + - 88 ) )
----
14040

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT DISTINCT + 76 * MIN( 69 ) AS col0
----
5244

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT + 76 * MIN ( 69 ) AS col0
----
5244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT ALL - CAST( NULL AS SIGNED ) + 46 - - + ( + 98 ) * + 24 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL - CAST ( NULL AS INTEGER ) + 46 - - + ( + 98 ) * + 24 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2474
SELECT - 0 * + - 22 * - - 92 + + COUNT( * ) AS col2, 50 AS col0
----
1
50

skipif mysql # not compatible
query II rowsort label-2474
SELECT - 0 * + - 22 * - - 92 + + COUNT ( * ) AS col2, 50 AS col0
----
1
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2475
SELECT DISTINCT - CAST( - 86 AS SIGNED ) AS col1, - 88 - + + COUNT( * ) * - COUNT( * ) AS col2
----
86
-87

skipif mysql # not compatible
query II rowsort label-2475
SELECT DISTINCT - CAST ( - 86 AS INTEGER ) AS col1, - 88 - + + COUNT ( * ) * - COUNT ( * ) AS col2
----
86
-87

query I rowsort
SELECT DISTINCT + 77 + 31 AS col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2477
SELECT COUNT( * ) + + 68 + + 57 * + CASE 86 WHEN + COUNT( * ) + COUNT( * ) THEN + + CAST( - + 4 AS SIGNED ) WHEN - ( - MAX( + 50 ) ) / - 55 THEN 83 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2477
SELECT COUNT ( * ) + + 68 + + 57 * + CASE 86 WHEN + COUNT ( * ) + COUNT ( * ) THEN + + CAST ( - + 4 AS INTEGER ) WHEN - ( - MAX ( + 50 ) ) / - 55 THEN 83 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2478
SELECT ALL + 59 + + 29 AS col1, CASE + - 46 WHEN + - COALESCE ( - + COUNT( * ), - - 75 ) THEN + 18 WHEN - - COUNT( * ) THEN NULL WHEN - + CAST( NULL AS SIGNED ) * - - 10 + + CAST( - + 13 AS SIGNED ) + + - 64 THEN - 39 END AS col2
----
88
NULL

skipif mysql # not compatible
query II rowsort label-2478
SELECT ALL + 59 + + 29 AS col1, CASE + - 46 WHEN + - COALESCE ( - + COUNT ( * ), - - 75 ) THEN + 18 WHEN - - COUNT ( * ) THEN NULL WHEN - + CAST ( NULL AS INTEGER ) * - - 10 + + CAST ( - + 13 AS INTEGER ) + + - 64 THEN - 39 END AS col2
----
88
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT 10 DIV 18 col1
----
0

skipif mysql # not compatible
query I rowsort label-2479
SELECT 10 / 18 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2480
SELECT COUNT( * ) + - - 30 * + 32 / NULLIF ( + CAST( NULL AS SIGNED ), 92 - + - 72 - - 78 + - + 33 * - 18 ) * - ( - 21 ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT COUNT ( * ) + - - 30 * + 32 / NULLIF ( + CAST ( NULL AS INTEGER ), 92 - + - 72 - - 78 + - + 33 * - 18 ) * - ( - 21 ) + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 55 + + + 88
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2482
SELECT ALL + 60 + - 64 + + 18 + 53 * - 57 + 99 * 33 DIV COUNT( - 96 ) - + 31 * - COUNT( DISTINCT + 1 ), 95 AS col0
----
291
95

skipif mysql # not compatible
query II rowsort label-2482
SELECT ALL + 60 + - 64 + + 18 + 53 * - 57 + 99 * 33 / COUNT ( - 96 ) - + 31 * - COUNT ( DISTINCT + 1 ), 95 AS col0
----
291
95

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

skipif mysql # not compatible
query I rowsort label-2483
SELECT 45 * - 33 / + COUNT ( + + 64 ) AS col2
----
-1485

query I rowsort
SELECT ALL 64 col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT DISTINCT 16 - COUNT( - 71 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT 16 - COUNT ( - 71 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT DISTINCT + 69 * + COALESCE ( 57, - COUNT( * ) - - ( + CASE + 71 WHEN - SUM( 93 ) THEN 87 END ), - + 14 )
----
3933

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT + 69 * + COALESCE ( 57, - COUNT ( * ) - - ( + CASE + 71 WHEN - SUM ( 93 ) THEN 87 END ), - + 14 )
----
3933

query I rowsort
SELECT - 25 * 66 + + + 63
----
-1587

query I rowsort
SELECT ALL 51 col0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2489
SELECT DISTINCT + + 61 - - - COUNT( * ) AS col0, 21 * + 5 * + SUM( ALL + 9 )
----
60
945

skipif mysql # not compatible
query II rowsort label-2489
SELECT DISTINCT + + 61 - - - COUNT ( * ) AS col0, 21 * + 5 * + SUM ( ALL + 9 )
----
60
945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2490
SELECT + 91 * - 47 AS col1, ( 78 ) + - COUNT( * ) + - - COUNT( * ) - CASE + 25 WHEN - 46 + - CAST( COUNT( * ) AS SIGNED ) / + COUNT( * ) THEN + COALESCE ( + + 89, - 42, + 31 + - 77 ) + - 86 + 32 WHEN - 42 THEN NULL WHEN - 8 * + - SUM( ALL - + 31 ) + CAST( NULL AS SIGNED ) + - + 78 THEN 7 * - 7 * - COALESCE ( + 92, COUNT( * ) ) / + ( 0 ) + + 47 ELSE NULL END * 41 * - 58
----
-4277
NULL

skipif mysql # not compatible
query II rowsort label-2490
SELECT + 91 * - 47 AS col1, ( 78 ) + - COUNT ( * ) + - - COUNT ( * ) - CASE + 25 WHEN - 46 + - CAST ( COUNT ( * ) AS INTEGER ) / + COUNT ( * ) THEN + COALESCE ( + + 89, - 42, + 31 + - 77 ) + - 86 + 32 WHEN - 42 THEN NULL WHEN - 8 * + - SUM ( ALL - + 31 ) + CAST ( NULL AS INTEGER ) + - + 78 THEN 7 * - 7 * - COALESCE ( + 92, COUNT ( * ) ) / + ( 0 ) + + 47 ELSE NULL END * 41 * - 58
----
-4277
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2491
SELECT ALL - 14 DIV 85 * - COALESCE ( - 70, + 31 ) * 58 - - 44 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL - 14 / 85 * - COALESCE ( - 70, + 31 ) * 58 - - 44 AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2492
SELECT DISTINCT - 70 DIV + - 65, + 65 + - COUNT( + CAST( NULL AS SIGNED ) ) AS col1
----
1
65

skipif mysql # not compatible
query II rowsort label-2492
SELECT DISTINCT - 70 / + - 65, + 65 + - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1
----
1
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2493
SELECT + 94 * 82 AS col1, - 7 * SUM( + 11 ) + + - 78
----
7708
-155

skipif mysql # not compatible
query II rowsort label-2493
SELECT + 94 * 82 AS col1, - 7 * SUM ( + 11 ) + + - 78
----
7708
-155

query I rowsort
SELECT + 7 * - + 33
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT + + COALESCE ( + NULLIF ( 73, - 72 + 12 + + 83 ), + COUNT( * ), - + 30 ) col0
----
73

skipif mysql # not compatible
query I rowsort label-2495
SELECT + + COALESCE ( + NULLIF ( 73, - 72 + 12 + + 83 ), + COUNT ( * ), - + 30 ) col0
----
73

query I rowsort
SELECT ALL + 86 * + - 86 + - + 94 + 53 + - 9 + + 19 * - 40 * 42 + + 30 AS col0
----
-39336

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT ALL + 77 * 78 + + 90 + 30 * - 0 + + 78 - + 35 * MIN( ALL + 1 )
----
6139

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL + 77 * 78 + + 90 + 30 * - 0 + + 78 - + 35 * MIN ( ALL + 1 )
----
6139

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2500
SELECT - 96 * - ( - 95 ) * - + CAST( NULL AS SIGNED ) - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT - 96 * - ( - 95 ) * - + CAST ( NULL AS INTEGER ) - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT + 53 * - 84 * + ( - - MIN( ALL + ( - 73 ) ) ) AS col0
----
324996

skipif mysql # not compatible
query I rowsort label-2501
SELECT + 53 * - 84 * + ( - - MIN ( ALL + ( - 73 ) ) ) AS col0
----
324996

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

skipif mysql # not compatible
query I rowsort label-2502
SELECT MAX ( + 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT MIN( + 64 ) col2
----
64

skipif mysql # not compatible
query I rowsort label-2503
SELECT MIN ( + 64 ) col2
----
64

query I rowsort
SELECT - COALESCE ( + 90, + 80 ) * 79 * + 19 col0
----
-135090

query I rowsort
SELECT + NULLIF ( - 83, - 4 * - + 42 * ( 6 ) + 53 )
----
-83

query I rowsort
SELECT ALL - 28 * - 93 col1
----
2604

query I rowsort
SELECT - 87 - - ( + - ( - - 77 ) ) + - 30
----
-194

query I rowsort
SELECT ALL 93 * - 49 AS col1
----
-4557

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT - 57 DIV + + 84
----
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT - 57 / + + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT ALL COALESCE ( + + 52, + 50 * - - 61 - COUNT( * ), - ( - + 78 ) + - - COUNT( * ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL COALESCE ( + + 52, + 50 * - - 61 - COUNT ( * ), - ( - + 78 ) + - - COUNT ( * ) ) AS col2
----
52

query I rowsort
SELECT - + 3 + 85
----
82

query I rowsort
SELECT - - ( + 95 ) + ( - 99 ) + 98 col0
----
94

query I rowsort
SELECT - 89 * 57 + + 59
----
-5014

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

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

query I rowsort
SELECT - 16 + + 88 AS col0
----
72

query I rowsort
SELECT ALL + CASE + NULLIF ( - - 55, 69 ) WHEN - 52 THEN 83 END * + 77
----
NULL

query II rowsort
SELECT - 26, 46 * 7 * + 89 - 17 AS col0
----
-26
28641

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

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

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

query I rowsort
SELECT ALL - + 92 * + + 93 * - 82
----
701592

query II rowsort
SELECT - - 33 AS col2, 73
----
33
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT + - NULLIF ( - 8, 73 / 17 + - + 80 ) + SUM( - 79 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-2522
SELECT + - NULLIF ( - 8, 73 / 17 + - + 80 ) + SUM ( - 79 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT + 58 + COALESCE ( + - COALESCE ( - 54, - COUNT( * ) ), - - COUNT( * ) )
----
112

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT + 58 + COALESCE ( + - COALESCE ( - 54, - COUNT ( * ) ), - - COUNT ( * ) )
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT ALL + + 74 DIV 50 + - + ( 69 )
----
-68

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL + + 74 / 50 + - + ( 69 )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-2525
SELECT DISTINCT + 8 DIV - - 68 col2
----
0

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT + 8 / - - 68 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2526
SELECT DISTINCT - CAST( + + MIN( ALL + ( + 11 ) ) AS SIGNED ) DIV 87 + + CAST( 31 AS SIGNED ) AS col1, 99 AS col2
----
31
99

skipif mysql # not compatible
query II rowsort label-2526
SELECT DISTINCT - CAST ( + + MIN ( ALL + ( + 11 ) ) AS INTEGER ) / 87 + + CAST ( 31 AS INTEGER ) AS col1, 99 AS col2
----
31
99

query I rowsort
SELECT + 36 * - 5
----
-180

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL + CASE + 7 WHEN 64 * - 7 THEN 16 END / + + 71 + COUNT( * ) - ( + - 23 ) * + 76 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL + CASE + 7 WHEN 64 * - 7 THEN 16 END / + + 71 + COUNT ( * ) - ( + - 23 ) * + 76 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2530
SELECT ALL - 72 / - - COUNT( * ) + + CASE - - 20 WHEN + CASE - + COUNT( * ) WHEN - 33 * - + 7 THEN - 56 ELSE - 82 * 80 + - MIN( - CAST( NULL AS SIGNED ) ) END * + - 22 THEN - 54 + 99 * + MIN( + + CAST( + + 72 AS SIGNED ) ) END - - + 49 + + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL - 72 / - - COUNT ( * ) + + CASE - - 20 WHEN + CASE - + COUNT ( * ) WHEN - 33 * - + 7 THEN - 56 ELSE - 82 * 80 + - MIN ( - CAST ( NULL AS INTEGER ) ) END * + - 22 THEN - 54 + 99 * + MIN ( + + CAST ( + + 72 AS INTEGER ) ) END - - + 49 + + 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2531
SELECT - 92 DIV 68 + 23 + 23 * 31 + + 99 AS col0, + MIN( + - 4 ) - - + 68 AS col1
----
834
64

skipif mysql # not compatible
query II rowsort label-2531
SELECT - 92 / 68 + 23 + 23 * 31 + + 99 AS col0, + MIN ( + - 4 ) - - + 68 AS col1
----
834
64

query I rowsort
SELECT + 6 * + 15 col0
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-2533
SELECT ALL COUNT( * ) * - 92 * - MAX( + 90 ) AS col1, - 99 AS col2
----
8280
-99

skipif mysql # not compatible
query II rowsort label-2533
SELECT ALL COUNT ( * ) * - 92 * - MAX ( + 90 ) AS col1, - 99 AS col2
----
8280
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2534
SELECT + CASE 75 WHEN 48 THEN + + COUNT( * ) WHEN 95 THEN - - ( + 56 ) END + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT + CASE 75 WHEN 48 THEN + + COUNT ( * ) WHEN 95 THEN - - ( + 56 ) END + - CAST ( NULL AS INTEGER ) col2
----
NULL

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

query I rowsort
SELECT DISTINCT + 87 * + + 48
----
4176

query I rowsort
SELECT + 46 * + 61
----
2806

query I rowsort
SELECT ALL 52 * - 28
----
-1456

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

skipif mysql # not compatible
query II rowsort label-2539
SELECT ALL + COUNT ( * ), - 12 AS col0
----
1
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT + COUNT( * ) + ( + 53 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2540
SELECT + COUNT ( * ) + ( + 53 ) AS col1
----
54

query II rowsort
SELECT ALL + 99, 18 + - 9 * - 43 * + 45 AS col0
----
99
17433

query I rowsort
SELECT + 16 * + + ( 76 )
----
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT - 33 + - + COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-2543
SELECT - 33 + - + COUNT ( * )
----
-34

query II rowsort
SELECT ALL + 18 col0, 35 * + - 92
----
18
-3220

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT + MIN( DISTINCT - 71 ) * + + 6 + + + 11 AS col1
----
-415

skipif mysql # not compatible
query I rowsort label-2545
SELECT + MIN ( DISTINCT - 71 ) * + + 6 + + + 11 AS col1
----
-415

query I rowsort
SELECT ALL - - 44 * - + 54 AS col2
----
-2376

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2547
SELECT + 9 AS col1, 95 DIV + COUNT( * ) col1
----
9
95

skipif mysql # not compatible
query II rowsort label-2547
SELECT + 9 AS col1, 95 / + COUNT ( * ) col1
----
9
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT ALL - 36 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL - 36 / + 77
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2549
SELECT DISTINCT - - 94 * + CAST( NULL AS SIGNED ) + CASE + + 20 WHEN - - 32 * - 81 * 22 - - 94 THEN 83 ELSE NULL END / + - CAST( NULL AS DECIMAL ) * 42 + + - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT - - 94 * + CAST ( NULL AS INTEGER ) + CASE + + 20 WHEN - - 32 * - 81 * 22 - - 94 THEN 83 ELSE NULL END / + - CAST ( NULL AS REAL ) * 42 + + - 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT DISTINCT COUNT( * ) * + COUNT( * ) - + + 49 + + + ( COUNT( * ) ) + 66 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) - + + 49 + + + ( COUNT ( * ) ) + 66 AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2551
SELECT - - 75 DIV - 96 col0
----
0

skipif mysql # not compatible
query I rowsort label-2551
SELECT - - 75 / - 96 col0
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT + + 6 - MIN( DISTINCT + 49 )
----
-43

skipif mysql # not compatible
query I rowsort label-2554
SELECT + + 6 - MIN ( DISTINCT + 49 )
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2555
SELECT - - 42 DIV + - 88
----
0

skipif mysql # not compatible
query I rowsort label-2555
SELECT - - 42 / + - 88
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2556
SELECT + - COUNT( * ) * + - MIN( + + 86 ) DIV + 1
----
86

skipif mysql # not compatible
query I rowsort label-2556
SELECT + - COUNT ( * ) * + - MIN ( + + 86 ) / + 1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2557
SELECT + ( + 81 ) DIV 78 * + 17 * COUNT( * ) - + 77
----
-60

skipif mysql # not compatible
query I rowsort label-2557
SELECT + ( + 81 ) / 78 * + 17 * COUNT ( * ) - + 77
----
-60

query I rowsort
SELECT + + 56 * - - 41 AS col0
----
2296

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

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL + - 77 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2560
SELECT CAST( NULL AS DECIMAL ), 97 * COALESCE ( - 99, + CASE + + CAST( NULL AS SIGNED ) WHEN + 2 THEN NULL ELSE - 22 END ) + + 64 + - 42 * + 24 - 83 * - - COUNT( * ) / + 52 + - + 11 * - + CAST( - CASE 12 WHEN + ( - + 87 ) THEN + COUNT( * ) - 40 WHEN - COUNT( * ) * + - 8 / + + 94 * + - COUNT( * ) * - 56 THEN NULL ELSE + CASE COALESCE ( - 77, + + 65 + + ( 2 ) ) WHEN COUNT( * ) THEN 68 WHEN - 51 * 90 THEN NULL ELSE NULL END * 58 END AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2560
SELECT CAST ( NULL AS REAL ), 97 * COALESCE ( - 99, + CASE + + CAST ( NULL AS INTEGER ) WHEN + 2 THEN NULL ELSE - 22 END ) + + 64 + - 42 * + 24 - 83 * - - COUNT ( * ) / + 52 + - + 11 * - + CAST ( - CASE 12 WHEN + ( - + 87 ) THEN + COUNT ( * ) - 40 WHEN - COUNT ( * ) * + - 8 / + + 94 * + - COUNT ( * ) * - 56 THEN NULL ELSE + CASE COALESCE ( - 77, + + 65 + + ( 2 ) ) WHEN COUNT ( * ) THEN 68 WHEN - 51 * 90 THEN NULL ELSE NULL END * 58 END AS INTEGER )
----
NULL
NULL

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

skipif mysql # not compatible
query II rowsort label-2561
SELECT ALL + COUNT ( * ) AS col0, + 9
----
1
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2562
SELECT - 16 - - + 12 DIV - + MAX( - ( 66 ) ) + 58 col1, - 12 AS col2
----
42
-12

skipif mysql # not compatible
query II rowsort label-2562
SELECT - 16 - - + 12 / - + MAX ( - ( 66 ) ) + 58 col1, - 12 AS col2
----
42
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-2563
SELECT DISTINCT - + ( CASE + COUNT( * ) WHEN - 61 THEN - + COUNT( * ) / + - 71 + 51 WHEN NULLIF ( - + 48, - + 9 ) + - 97 THEN NULL ELSE NULL END ) + + - 30 + + - 31 * - 15, 28 AS col2
----
NULL
28

skipif mysql # not compatible
query II rowsort label-2563
SELECT DISTINCT - + ( CASE + COUNT ( * ) WHEN - 61 THEN - + COUNT ( * ) / + - 71 + 51 WHEN NULLIF ( - + 48, - + 9 ) + - 97 THEN NULL ELSE NULL END ) + + - 30 + + - 31 * - 15, 28 AS col2
----
NULL
28

query II rowsort
SELECT 33 * 41 AS col1, + 29
----
1353
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL - 72 + - COUNT( * ) + - 83 AS col1
----
-156

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL - 72 + - COUNT ( * ) + - 83 AS col1
----
-156

query II rowsort
SELECT 4 * - 67, - NULLIF ( + + 60, + 13 ) + - 28 AS col1
----
-268
-88

query II rowsort
SELECT - 88 / + - CASE + ( - 45 ) WHEN + 42 * - - 69 THEN - + 33 ELSE NULL END + + + 98 AS col1, ( + - 78 )
----
NULL
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2568
SELECT ALL - ( 95 ) AS col0, + CASE + ( - ( + 19 ) ) WHEN + + 86 * - COUNT( * ) THEN 65 WHEN + + 41 THEN + + NULLIF ( + 97, + 80 / - - 43 + - 16 ) * - - 85 * - 52 ELSE NULL END / + - ( + 96 ) + + + 22 + 82 + + - 49 AS col1
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-2568
SELECT ALL - ( 95 ) AS col0, + CASE + ( - ( + 19 ) ) WHEN + + 86 * - COUNT ( * ) THEN 65 WHEN + + 41 THEN + + NULLIF ( + 97, + 80 / - - 43 + - 16 ) * - - 85 * - 52 ELSE NULL END / + - ( + 96 ) + + + 22 + 82 + + - 49 AS col1
----
-95
NULL

query I rowsort
SELECT DISTINCT - ( - 8 ) * 45 * + - 2
----
-720

query I rowsort
SELECT 23 + - 38
----
-15

query I rowsort
SELECT 29 * - + 32
----
-928

query I rowsort
SELECT ALL 64 - - ( 40 )
----
104

query I rowsort
SELECT ALL - ( 1 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2574
SELECT 48 DIV 26, + ( + 29 ) DIV + - COUNT( * ) + - + 94 AS col0
----
1
-123

skipif mysql # not compatible
query II rowsort label-2574
SELECT 48 / 26, + ( + 29 ) / + - COUNT ( * ) + - + 94 AS col0
----
1
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2575
SELECT 44 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT 44 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT ALL - - 25 + COUNT( * ) * 54 + + - 67 col2
----
12

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL - - 25 + COUNT ( * ) * 54 + + - 67 col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2577
SELECT ALL + 26 + - + 84 AS col0, NULLIF ( - COUNT( * ), + 79 ) * - 45
----
-58
45

skipif mysql # not compatible
query II rowsort label-2577
SELECT ALL + 26 + - + 84 AS col0, NULLIF ( - COUNT ( * ), + 79 ) * - 45
----
-58
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2578
SELECT ALL + NULLIF ( + 96, - + CASE + 66 WHEN 33 THEN NULL WHEN 50 + + ( COUNT( * ) ) THEN - 84 * + 22 ELSE CAST( NULL AS DECIMAL ) * - + 78 * + 75 END ) + 55 * - 84 * 56
----
-258624

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL + NULLIF ( + 96, - + CASE + 66 WHEN 33 THEN NULL WHEN 50 + + ( COUNT ( * ) ) THEN - 84 * + 22 ELSE CAST ( NULL AS REAL ) * - + 78 * + 75 END ) + 55 * - 84 * 56
----
-258624

query I rowsort
SELECT + 28 * - 56 + 67 AS col2
----
-1501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2580
SELECT 91 * - 33 AS col1, 38 - 16 DIV MIN( DISTINCT + CAST( 49 AS SIGNED ) )
----
-3003
38

skipif mysql # not compatible
query II rowsort label-2580
SELECT 91 * - 33 AS col1, 38 - 16 / MIN ( DISTINCT + CAST ( 49 AS INTEGER ) )
----
-3003
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2581
SELECT 24 + 93 + - 67 DIV - 96 * - - 19 * + 15 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-2581
SELECT 24 + 93 + - 67 / - 96 * - - 19 * + 15 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT - - 38 * SUM( - 33 ) * + + 39 - - + 23
----
-48883

skipif mysql # not compatible
query I rowsort label-2582
SELECT - - 38 * SUM ( - 33 ) * + + 39 - - + 23
----
-48883

query I rowsort
SELECT ALL 95 + - + 53 * - 71
----
3858

onlyif mysql # aggregate syntax: 
query II rowsort label-2584
SELECT 14 - 89, - SUM( ALL - + 72 ) AS col1
----
-75
72

skipif mysql # not compatible
query II rowsort label-2584
SELECT 14 - 89, - SUM ( ALL - + 72 ) AS col1
----
-75
72

query II rowsort
SELECT - 78 + - + CASE - 61 WHEN + 41 THEN + - 17 END, + 35 AS col0
----
NULL
35

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2587
SELECT ALL 61 DIV - COUNT( + 39 )
----
-61

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL 61 / - COUNT ( + 39 )
----
-61

query II rowsort
SELECT 40 + + + 79 AS col2, - 63 AS col0
----
119
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2589
SELECT 73 * + + ( - 58 ) + CAST( NULL AS DECIMAL ) + - - 94 / + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT 73 * + + ( - 58 ) + CAST ( NULL AS REAL ) + - - 94 / + 28
----
NULL

query I rowsort
SELECT - 37 * - - 59 * + 2
----
-4366

onlyif mysql # aggregate syntax: 
query II rowsort label-2591
SELECT - 26 AS col1, - MAX( DISTINCT + + 57 ) * - 70
----
-26
3990

skipif mysql # not compatible
query II rowsort label-2591
SELECT - 26 AS col1, - MAX ( DISTINCT + + 57 ) * - 70
----
-26
3990

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2592
SELECT 58 + + AVG ( DISTINCT - + 54 ) * CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2592
SELECT 58 + + AVG ( DISTINCT - + 54 ) * CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2593
SELECT CAST( NULL AS DECIMAL ) * - 94 * - 79 * - 57 / - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT CAST ( NULL AS REAL ) * - 94 * - 79 * - 57 / - 26
----
NULL

query I rowsort
SELECT ALL - 41 - - 76 * + 62 AS col2
----
4671

query II rowsort
SELECT ALL 35 col2, 25 * - 93
----
35
-2325

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

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

query I rowsort
SELECT ALL - CASE WHEN NOT ( NULL ) >= NULL THEN NULL ELSE 76 END
----
-76

query II rowsort
SELECT ALL - 93, + 79 col2
----
-93
79

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

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

query I rowsort
SELECT 54 + - - ( - 67 )
----
-13

query I rowsort
SELECT + 64 * 33 * - 35 * + + 13 + - - 23
----
-960937

query I rowsort
SELECT ALL - NULLIF ( + 53, + + 0 ) AS col0
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2603
SELECT 70 + + 53 + - CAST( NULL AS DECIMAL ) + + ( + 92 ) / - 20 * - + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT 70 + + 53 + - CAST ( NULL AS REAL ) + + ( + 92 ) / - 20 * - + 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT ALL - ( - 15 ) + - 35 + - - 32 * - - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL - ( - 15 ) + - 35 + - - 32 * - - COUNT ( * )
----
12

query I rowsort
SELECT ALL - 44 + - + 92 + - 18 + - + 29 AS col0
----
-183

onlyif mysql # aggregate syntax: 
query II rowsort label-2606
SELECT COUNT( * ) * COUNT( * ) + - 72 AS col2, + 38
----
-71
38

skipif mysql # not compatible
query II rowsort label-2606
SELECT COUNT ( * ) * COUNT ( * ) + - 72 AS col2, + 38
----
-71
38

query I rowsort
SELECT CASE - - 46 WHEN + + 90 * 24 THEN 6 WHEN 69 + + 48 * - 70 THEN 1 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2608
SELECT DISTINCT + 53 DIV - + ( 71 )
----
0

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT + 53 / - + ( 71 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT COUNT( * ) + + 77 + ( 5 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2609
SELECT COUNT ( * ) + + 77 + ( 5 ) AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2610
SELECT NULLIF ( - 81, - - 80 ) DIV + 1, + COUNT( * ) + ( - + 19 ) AS col0
----
-81
-18

skipif mysql # not compatible
query II rowsort label-2610
SELECT NULLIF ( - 81, - - 80 ) / + 1, + COUNT ( * ) + ( - + 19 ) AS col0
----
-81
-18

query I rowsort
SELECT ALL - 3 + 81
----
78

query I rowsort
SELECT + 58 * + 57 col0
----
3306

onlyif mysql # DIV for integer division: 
query I rowsort label-2613
SELECT DISTINCT + 92 DIV - + 51 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT + 92 / - + 51 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2614
SELECT DISTINCT 84 AS col1, CAST( 14 AS SIGNED ) AS col0
----
84
14

skipif mysql # not compatible
query II rowsort label-2614
SELECT DISTINCT 84 AS col1, CAST ( 14 AS INTEGER ) AS col0
----
84
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2615
SELECT ALL COUNT( * ) AS col0, + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2615
SELECT ALL COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT DISTINCT + COALESCE ( COUNT( * ), + + 39 ) - + CASE - COALESCE ( + - 81, 23 * - + COUNT( * ), COUNT( * ) + + + AVG ( DISTINCT - 15 ) ) WHEN 6 THEN NULL WHEN + COUNT( * ) THEN + + 77 * + + 75 + 50 * + + COUNT( * ) END + - + 88 * 39 * - - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT + COALESCE ( COUNT ( * ), + + 39 ) - + CASE - COALESCE ( + - 81, 23 * - + COUNT ( * ), COUNT ( * ) + + + AVG ( DISTINCT - 15 ) ) WHEN 6 THEN NULL WHEN + COUNT ( * ) THEN + + 77 * + + 75 + 50 * + + COUNT ( * ) END + - + 88 * 39 * - - 13 AS col1
----
NULL

query I rowsort
SELECT + 98 * - - 20
----
1960

query I rowsort
SELECT - 38 * + - ( + ( - - 70 ) ) * + 28 * ( 0 ) + + - 38 * + 23 AS col1
----
-874

query I rowsort
SELECT - 51 - 59 AS col2
----
-110

query I rowsort
SELECT ALL - 44 AS col2
----
-44

query I rowsort
SELECT + 65 - 39
----
26

query I rowsort
SELECT + - 7 * 24 AS col2
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT + 18 * + MAX( + 19 ) AS col2
----
342

skipif mysql # not compatible
query I rowsort label-2623
SELECT + 18 * + MAX ( + 19 ) AS col2
----
342

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT DISTINCT ( 6 ) DIV - 14 - NULLIF ( 61, + 16 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT ( 6 ) / - 14 - NULLIF ( 61, + 16 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT + SUM( ALL + ( + 29 ) ) / + - ( - CASE + 65 WHEN ( - COALESCE ( + 75, - + 65, + + 20 / - - 95 / + 96 + - 73, + 56 ) ) THEN 86 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT + SUM ( ALL + ( + 29 ) ) / + - ( - CASE + 65 WHEN ( - COALESCE ( + 75, - + 65, + + 20 / - - 95 / + 96 + - 73, + 56 ) ) THEN 86 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT ALL 82 * 55 * COUNT( * ) col2
----
4510

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL 82 * 55 * COUNT ( * ) col2
----
4510

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT DISTINCT ( - 72 ) DIV - 7 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT ( - 72 ) / - 7 AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2628
SELECT - COALESCE ( + COALESCE ( - 24, + COUNT( * ) DIV + COALESCE ( - 84, - COUNT( * ) ) * + 95 * + 68 * + COUNT( * ) + + + CAST( + + COUNT( * ) AS SIGNED ) ), + 99 )
----
24

skipif mysql # not compatible
query I rowsort label-2628
SELECT - COALESCE ( + COALESCE ( - 24, + COUNT ( * ) / + COALESCE ( - 84, - COUNT ( * ) ) * + 95 * + 68 * + COUNT ( * ) + + + CAST ( + + COUNT ( * ) AS INTEGER ) ), + 99 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2629
SELECT ALL CAST( NULL AS SIGNED ) * + 18 * 28 * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL CAST ( NULL AS INTEGER ) * + 18 * 28 * + 17
----
NULL

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

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

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

query I rowsort
SELECT ( - 1 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2633
SELECT + 5 DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-2633
SELECT + 5 / 33
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2634
SELECT ( + - COUNT( * ) ) AS col0, + 15 + - + 55
----
-1
-40

skipif mysql # not compatible
query II rowsort label-2634
SELECT ( + - COUNT ( * ) ) AS col0, + 15 + - + 55
----
-1
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2635
SELECT ALL 16 * - 26 + COALESCE ( + CAST( NULL AS SIGNED ), + 75 DIV - 80 * - 75 * 95 * + - 8 ) + MIN( DISTINCT 68 ) * - 58 * - 50
----
196784

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL 16 * - 26 + COALESCE ( + CAST ( NULL AS INTEGER ), + 75 / - 80 * - 75 * 95 * + - 8 ) + MIN ( DISTINCT 68 ) * - 58 * - 50
----
196784

query I rowsort
SELECT NULLIF ( 26, 74 ) AS col1
----
26

query I rowsort
SELECT DISTINCT NULLIF ( - - 66, + + 60 ) * + 91 + - 33 col2
----
5973

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT - ( + MIN( ALL - 88 ) ) * + ( - - COUNT( ALL - COALESCE ( 88, + 50 / 60, + 97 ) ) ) * 33 + + - 45
----
2859

skipif mysql # not compatible
query I rowsort label-2638
SELECT - ( + MIN ( ALL - 88 ) ) * + ( - - COUNT ( ALL - COALESCE ( 88, + 50 / 60, + 97 ) ) ) * 33 + + - 45
----
2859

query I rowsort
SELECT ALL + - 58 * - 79 AS col2
----
4582

query II rowsort
SELECT - - 13 * + 11 * + 49 * + + 50 AS col1, 27 * + 73 AS col1
----
350350
1971

onlyif mysql # aggregate syntax: 
query II rowsort label-2641
SELECT SUM( ALL - 9 ) col2, + 40 AS col1
----
-9
40

skipif mysql # not compatible
query II rowsort label-2641
SELECT SUM ( ALL - 9 ) col2, + 40 AS col1
----
-9
40

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

query I rowsort
SELECT ALL - 63 * - 24 + 42 AS col0
----
1554

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2645
SELECT - 69 - - COUNT( * ) * - COUNT( * ) DIV - - 27
----
-69

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

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

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

query I rowsort
SELECT - + 92 * + + 24 * + + 11 AS col2
----
-24288

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT + 10 * + - 63 + - COUNT( * ) AS col1
----
-631

skipif mysql # not compatible
query I rowsort label-2649
SELECT + 10 * + - 63 + - COUNT ( * ) AS col1
----
-631

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2650
SELECT ALL - 47 DIV - 20 + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL - 47 / - 20 + - COUNT ( * )
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2652
SELECT - CAST( 23 AS SIGNED ) * COUNT( * ) * - 17
----
391

skipif mysql # not compatible
query I rowsort label-2652
SELECT - CAST ( 23 AS INTEGER ) * COUNT ( * ) * - 17
----
391

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT + - 62 - 93 DIV + 17 + 36 * + - 35 AS col1
----
-1327

skipif mysql # not compatible
query I rowsort label-2653
SELECT + - 62 - 93 / + 17 + 36 * + - 35 AS col1
----
-1327

onlyif mysql # aggregate syntax: 
query II rowsort label-2654
SELECT - 71 * + - CASE 75 WHEN - + 1 + + 68 + + + COALESCE ( + 79, + - ( + 9 ) / + COALESCE ( - + COUNT( * ), - 91 * - + 41 ) ) * + 22 * - ( 65 ) THEN + CASE + - 57 WHEN ( 66 ) * - COUNT( * ) THEN - - COUNT( * ) * - - 48 ELSE NULL END + COUNT( * ) ELSE NULL END, - 72 AS col1
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-2654
SELECT - 71 * + - CASE 75 WHEN - + 1 + + 68 + + + COALESCE ( + 79, + - ( + 9 ) / + COALESCE ( - + COUNT ( * ), - 91 * - + 41 ) ) * + 22 * - ( 65 ) THEN + CASE + - 57 WHEN ( 66 ) * - COUNT ( * ) THEN - - COUNT ( * ) * - - 48 ELSE NULL END + COUNT ( * ) ELSE NULL END, - 72 AS col1
----
NULL
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT - 53 + + - 1 * + 21 + + + COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-2655
SELECT - 53 + + - 1 * + 21 + + + COUNT ( * ) AS col1
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT ALL + NULLIF ( 88, + COUNT( * ) ) * ( - 37 ) * - 51 * - - 41
----
6808296

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL + NULLIF ( 88, + COUNT ( * ) ) * ( - 37 ) * - 51 * - - 41
----
6808296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2659
SELECT + 23 + + NULLIF ( - + 87, + COALESCE ( - 56, - - CAST( + + 88 AS SIGNED ) * - 57 * + COUNT( * ) / 60 + - - 9 ) + 28 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2659
SELECT + 23 + + NULLIF ( - + 87, + COALESCE ( - 56, - - CAST ( + + 88 AS INTEGER ) * - 57 * + COUNT ( * ) / 60 + - - 9 ) + 28 ) AS col0
----
-64

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT + CASE + 88 WHEN + - 38 THEN 38 WHEN - 2 + 95 THEN 13 * 29 * - 41 - - + 59 END * COUNT( + - 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT + CASE + 88 WHEN + - 38 THEN 38 WHEN - 2 + 95 THEN 13 * 29 * - 41 - - + 59 END * COUNT ( + - 16 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2663
SELECT ALL 75 DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL 75 / - 60
----
-1

query I rowsort
SELECT - CASE WHEN NOT ( NULL ) NOT BETWEEN NULL AND + 44 THEN 5 END
----
NULL

query I rowsort
SELECT ALL + 52 + + + 65
----
117

query I rowsort
SELECT ALL 69 + + 62 + - 21 * + + 83 col1
----
-1612

onlyif mysql # DIV for integer division: 
query II rowsort label-2667
SELECT DISTINCT 68 DIV - 30 + 73 AS col1, 12 + 26 AS col0
----
71
38

skipif mysql # not compatible
query II rowsort label-2667
SELECT DISTINCT 68 / - 30 + 73 AS col1, 12 + 26 AS col0
----
71
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT ALL 39 * - COUNT( * ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL 39 * - COUNT ( * ) col2
----
-39

query I rowsort
SELECT + 51 + - 82
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT + CASE - 44 WHEN + SUM( DISTINCT - ( + + 14 ) ) / - COUNT( * ) * - AVG ( DISTINCT 52 ) - + 86 + + 38 THEN + + 51 WHEN + - COALESCE ( - 62, - 7, - 90 ) THEN NULL ELSE - 69 * + 37 * - + 34 END
----
86802

skipif mysql # not compatible
query I rowsort label-2670
SELECT + CASE - 44 WHEN + SUM ( DISTINCT - ( + + 14 ) ) / - COUNT ( * ) * - AVG ( DISTINCT 52 ) - + 86 + + 38 THEN + + 51 WHEN + - COALESCE ( - 62, - 7, - 90 ) THEN NULL ELSE - 69 * + 37 * - + 34 END
----
86802

onlyif mysql # DIV for integer division: 
query I rowsort label-2671
SELECT ALL 80 DIV - 35 + + 73 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL 80 / - 35 + + 73 AS col1
----
71

query II rowsort
SELECT + 93 * 68 + + 53, - 64 * + 9 col0
----
6377
-576

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2674
SELECT - ( + 58 ) DIV - + 34 + + 52 + - + 60 * + 79 AS col1
----
-4687

skipif mysql # not compatible
query I rowsort label-2674
SELECT - ( + 58 ) / - + 34 + + 52 + - + 60 * + 79 AS col1
----
-4687

query I rowsort
SELECT + 31 * - - 55 AS col0
----
1705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2676
SELECT DISTINCT - 26 DIV + 97 * 83 - - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT - 26 / + 97 * 83 - - - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT + 7 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT - + 40 * + COUNT( ALL + - NULLIF ( + 23, + 17 ) ) + - + 31 + + - 28 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-2678
SELECT - + 40 * + COUNT ( ALL + - NULLIF ( + 23, + 17 ) ) + - + 31 + + - 28 AS col1
----
-99

query I rowsort
SELECT ALL + 1 - + COALESCE ( + 35, - 36 )
----
-34

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

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

query I rowsort
SELECT 48 * + 54 + + 83 - - + 65
----
2740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT + MIN( - 33 ) + - 24 DIV - 72
----
-33

skipif mysql # not compatible
query I rowsort label-2683
SELECT + MIN ( - 33 ) + - 24 / - 72
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT ALL + 51 * 29 * - - 89 + 72 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL + 51 * 29 * - - 89 + 72 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 89 * + 3 AS col1
----
-267

query I rowsort
SELECT 68 + 86 AS col1
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2687
SELECT ALL - - 73 AS col1, 29 DIV COALESCE ( + CAST( + 56 AS SIGNED ), - COUNT( * ), + - ( ( - - 26 ) ) DIV 48 ) * 7
----
73
0

skipif mysql # not compatible
query II rowsort label-2687
SELECT ALL - - 73 AS col1, 29 / COALESCE ( + CAST ( + 56 AS INTEGER ), - COUNT ( * ), + - ( ( - - 26 ) ) / 48 ) * 7
----
73
0

query I rowsort
SELECT - 46 * + 87 + + 74
----
-3928

query I rowsort
SELECT - 56 * - 57 * - - 75
----
239400

query I rowsort
SELECT DISTINCT 19 col0
----
19

query I rowsort
SELECT DISTINCT - 58 * + 5 AS col1
----
-290

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

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

query II rowsort
SELECT ALL 18, - 64 AS col0
----
18
-64

query II rowsort
SELECT 98 AS col0, - 58 col0
----
98
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2695
SELECT - 77 AS col2, + 60 * - 2 * CAST( NULL AS SIGNED ) AS col2
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-2695
SELECT - 77 AS col2, + 60 * - 2 * CAST ( NULL AS INTEGER ) AS col2
----
-77
NULL

query II rowsort
SELECT - 86 AS col0, 3 AS col2
----
-86
3

query I rowsort
SELECT ALL - ( + 54 ) + + 48 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT ALL - COUNT( * ) + - - COUNT( * ) + 14 * 83 AS col0
----
1162

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) + 14 * 83 AS col0
----
1162

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2699
SELECT DISTINCT - 65 + - + 34 DIV MIN( ALL 31 ), 53 + 40 AS col2
----
-66
93

skipif mysql # not compatible
query II rowsort label-2699
SELECT DISTINCT - 65 + - + 34 / MIN ( ALL 31 ), 53 + 40 AS col2
----
-66
93

query I rowsort
SELECT 79 + - 27
----
52

query I rowsort
SELECT 83 - + + 83 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2702
SELECT DISTINCT - 93 * COUNT( * ) DIV 31
----
-3

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - 93 * COUNT ( * ) / 31
----
-3

query II rowsort
SELECT ALL + 39 + + - 29, 32 AS col1
----
10
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2704
SELECT - 9 AS col2, - MIN( ALL - 90 )
----
-9
90

skipif mysql # not compatible
query II rowsort label-2704
SELECT - 9 AS col2, - MIN ( ALL - 90 )
----
-9
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT 69 * + COALESCE ( 34, - COUNT( * ) ) AS col2
----
2346

skipif mysql # not compatible
query I rowsort label-2705
SELECT 69 * + COALESCE ( 34, - COUNT ( * ) ) AS col2
----
2346

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT NULLIF ( + - COUNT( * ), MAX( DISTINCT - - 52 ) * + + CASE - 49 WHEN - + 40 THEN NULL WHEN - - SUM( - 35 ) + - + COUNT( * ) + - - 36 THEN NULL ELSE - - 68 / 33 END - - 41 ) + - NULLIF ( - 51, + 55 )
----
50

skipif mysql # not compatible
query I rowsort label-2706
SELECT NULLIF ( + - COUNT ( * ), MAX ( DISTINCT - - 52 ) * + + CASE - 49 WHEN - + 40 THEN NULL WHEN - - SUM ( - 35 ) + - + COUNT ( * ) + - - 36 THEN NULL ELSE - - 68 / 33 END - - 41 ) + - NULLIF ( - 51, + 55 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT COUNT( * ) - - 92 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT COUNT ( * ) - - 92 AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT + ( CAST( - 18 AS SIGNED ) ) * + ( - 53 ) + COUNT( * ) * + CAST( + 14 AS SIGNED ) + 98 + + 29 + 2 * + ( - 72 ) * - - 82 + + 78 AS col1
----
-10635

skipif mysql # not compatible
query I rowsort label-2708
SELECT + ( CAST ( - 18 AS INTEGER ) ) * + ( - 53 ) + COUNT ( * ) * + CAST ( + 14 AS INTEGER ) + 98 + + 29 + 2 * + ( - 72 ) * - - 82 + + 78 AS col1
----
-10635

onlyif mysql # aggregate syntax: 
query II rowsort label-2709
SELECT ALL - + 54, - COUNT( * ) - - 98 AS col1
----
-54
97

skipif mysql # not compatible
query II rowsort label-2709
SELECT ALL - + 54, - COUNT ( * ) - - 98 AS col1
----
-54
97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2711
SELECT DISTINCT 77 * + COUNT( * ) + - COUNT( DISTINCT + 2 ), 69 * + 46 AS col2
----
76
3174

skipif mysql # not compatible
query II rowsort label-2711
SELECT DISTINCT 77 * + COUNT ( * ) + - COUNT ( DISTINCT + 2 ), 69 * + 46 AS col2
----
76
3174

query I rowsort
SELECT DISTINCT 16 * COALESCE ( 88, + - 27 + + 53 ) AS col2
----
1408

query I rowsort
SELECT + 95 * - - 45
----
4275

query I rowsort
SELECT ALL 34 * + + 83 * - 66 AS col1
----
-186252

onlyif mysql # DIV for integer division: 
query I rowsort label-2715
SELECT 91 DIV + - 57 - - 35 DIV - + 75
----
-1

skipif mysql # not compatible
query I rowsort label-2715
SELECT 91 / + - 57 - - 35 / - + 75
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2716
SELECT DISTINCT 43 * + COALESCE ( 10, + CAST( + 81 AS DECIMAL ), + 86 ) * - + CAST( NULL AS SIGNED ) / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT 43 * + COALESCE ( 10, + CAST ( + 81 AS REAL ), + 86 ) * - + CAST ( NULL AS INTEGER ) / 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT - - 49 * - - SUM( - 10 ) * - 98 + - 45
----
47975

skipif mysql # not compatible
query I rowsort label-2717
SELECT - - 49 * - - SUM ( - 10 ) * - 98 + - 45
----
47975

query II rowsort
SELECT 37 AS col2, 59 * + 75
----
37
4425

query I rowsort
SELECT - 15 * + 38 * 34 * - 79 + 39
----
1531059

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

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

query I rowsort
SELECT - ( + 25 ) * + ( - 36 )
----
900

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2723
SELECT 34 * 18 - - + 39 + 98 * + - 0 * - 9, - 3 - + MIN( - + 8 ) + - - 27 * MIN( DISTINCT 35 ) * COUNT( * ) AS col2
----
651
950

skipif mysql # not compatible
query II rowsort label-2723
SELECT 34 * 18 - - + 39 + 98 * + - 0 * - 9, - 3 - + MIN ( - + 8 ) + - - 27 * MIN ( DISTINCT 35 ) * COUNT ( * ) AS col2
----
651
950

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2724
SELECT ALL - 60, + CASE - 68 WHEN 44 * - - 63 * - 49 + 17 THEN 51 WHEN + 64 / 81 / - CAST( NULL AS DECIMAL ) / + - 82 + + 77 * 87 + 33 + + - 74 / - 98 THEN NULL WHEN - 41 THEN - + COALESCE ( 32, + + CASE - 9 WHEN - 34 THEN NULL WHEN - + COUNT( * ) THEN NULL WHEN - - 17 THEN - 95 + - AVG ( NULLIF ( - 63, 29 ) ) / 6 * 45 END - + 73 + 56 ) ELSE NULL END - + 66 - + 3 AS col0
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-2724
SELECT ALL - 60, + CASE - 68 WHEN 44 * - - 63 * - 49 + 17 THEN 51 WHEN + 64 / 81 / - CAST ( NULL AS REAL ) / + - 82 + + 77 * 87 + 33 + + - 74 / - 98 THEN NULL WHEN - 41 THEN - + COALESCE ( 32, + + CASE - 9 WHEN - 34 THEN NULL WHEN - + COUNT ( * ) THEN NULL WHEN - - 17 THEN - 95 + - AVG ( NULLIF ( - 63, 29 ) ) / 6 * 45 END - + 73 + 56 ) ELSE NULL END - + 66 - + 3 AS col0
----
-60
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2725
SELECT ALL - + 28 AS col2, + 44 + 54 - + - 75 + 87 * - + COUNT( ALL - COALESCE ( - 37, - - 40 + 4 ) ) col2
----
-28
86

skipif mysql # not compatible
query II rowsort label-2725
SELECT ALL - + 28 AS col2, + 44 + 54 - + - 75 + 87 * - + COUNT ( ALL - COALESCE ( - 37, - - 40 + 4 ) ) col2
----
-28
86

query II rowsort
SELECT ALL - 50, - 50 AS col0
----
-50
-50

query I rowsort
SELECT ALL 30 + - 21
----
9

query I rowsort
SELECT NULLIF ( - + 61, + + 25 ) + 81
----
20

query I rowsort
SELECT 48 + - + 36 * - 23 + + 82 + - + 92 + - 41
----
825

query I rowsort
SELECT 83 - 46 AS col1
----
37

query I rowsort
SELECT ALL - 79 * 13
----
-1027

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT CAST( - + 67 AS SIGNED ) + - - 25 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-2732
SELECT CAST ( - + 67 AS INTEGER ) + - - 25 AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2733
SELECT ALL CAST( + 85 AS SIGNED ) + - 68 + - 63 DIV - 41
----
18

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL CAST ( + 85 AS INTEGER ) + - 68 + - 63 / - 41
----
18

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2735
SELECT ALL + 52 + COUNT( ALL - 40 ) DIV + COALESCE ( 63, + - 88 * - 13 * + 33 * + COUNT( * ) + + 7 + + 4 + - 2 ) * + 98 col1
----
52

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + 52 + COUNT ( ALL - 40 ) / + COALESCE ( 63, + - 88 * - 13 * + 33 * + COUNT ( * ) + + 7 + + 4 + - 2 ) * + 98 col1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2736
SELECT DISTINCT + 34 DIV - 9
----
-3

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT + 34 / - 9
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2737
SELECT 79 + + COUNT( * ) + + + CAST( 7 AS SIGNED ) col2
----
87

skipif mysql # not compatible
query I rowsort label-2737
SELECT 79 + + COUNT ( * ) + + + CAST ( 7 AS INTEGER ) col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2738
SELECT 88 + - 78 DIV - 86
----
88

skipif mysql # not compatible
query I rowsort label-2738
SELECT 88 + - 78 / - 86
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT ALL 98 DIV 42
----
2

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL 98 / 42
----
2

query II rowsort
SELECT ALL + 87 - + + 10 + - 18 * - ( + + 74 ), + 45 AS col2
----
1409
45

onlyif mysql # aggregate syntax: 
query II rowsort label-2741
SELECT - 22 + COUNT( * ) AS col0, + 17
----
-21
17

skipif mysql # not compatible
query II rowsort label-2741
SELECT - 22 + COUNT ( * ) AS col0, + 17
----
-21
17

query I rowsort
SELECT - + 6 * + CASE + - 40 WHEN 56 + - 58 THEN + + 36 + 81 END
----
NULL

query I rowsort
SELECT ALL + 39 col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT - 35 + + + CASE + 39 WHEN + 4 THEN + - COUNT( DISTINCT NULLIF ( - 50, + 27 / + - 77 / - + 5 / + 43 + + 18 ) ) ELSE 6 END * - 71
----
-461

skipif mysql # not compatible
query I rowsort label-2744
SELECT - 35 + + + CASE + 39 WHEN + 4 THEN + - COUNT ( DISTINCT NULLIF ( - 50, + 27 / + - 77 / - + 5 / + 43 + + 18 ) ) ELSE 6 END * - 71
----
-461

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2746
SELECT - 50 * + 7 + - 7 DIV - 94 * - + 20, 83 AS col1
----
-350
83

skipif mysql # not compatible
query II rowsort label-2746
SELECT - 50 * + 7 + - 7 / - 94 * - + 20, 83 AS col1
----
-350
83

query I rowsort
SELECT DISTINCT + + 27 AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2748
SELECT - - 29 + - + 62 * + + CAST( + 79 AS SIGNED ) AS col0
----
-4869

skipif mysql # not compatible
query I rowsort label-2748
SELECT - - 29 + - + 62 * + + CAST ( + 79 AS INTEGER ) AS col0
----
-4869

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT 24 * - 37 + - + 99 DIV 25 + + 49 col0
----
-842

skipif mysql # not compatible
query I rowsort label-2749
SELECT 24 * - 37 + - + 99 / 25 + + 49 col0
----
-842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2750
SELECT + MAX( DISTINCT - - CAST( + 18 AS SIGNED ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-2750
SELECT + MAX ( DISTINCT - - CAST ( + 18 AS INTEGER ) ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT - - 80 * + MIN( DISTINCT - 9 )
----
-720

skipif mysql # not compatible
query I rowsort label-2751
SELECT - - 80 * + MIN ( DISTINCT - 9 )
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT - - COUNT( * ) * - 64 + + 42 + + + 37
----
15

skipif mysql # not compatible
query I rowsort label-2752
SELECT - - COUNT ( * ) * - 64 + + 42 + + + 37
----
15

query II rowsort
SELECT + ( - + 99 ), - 28 + - - 88 AS col2
----
-99
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT DISTINCT + 80 * + 74 + CASE + 74 WHEN 40 + 50 THEN + + 80 ELSE + 75 + + COUNT( * ) END * MIN( ALL 19 ) + - COUNT( * ) AS col1
----
7363

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT + 80 * + 74 + CASE + 74 WHEN 40 + 50 THEN + + 80 ELSE + 75 + + COUNT ( * ) END * MIN ( ALL 19 ) + - COUNT ( * ) AS col1
----
7363

query I rowsort
SELECT ALL 96 * + + 42 + + 0 + + 13 AS col0
----
4045

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT ALL - 37 * + - 38 * + 81 + + + COUNT( * ) + - 24 + 14
----
113877

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL - 37 * + - 38 * + 81 + + + COUNT ( * ) + - 24 + 14
----
113877

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2757
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + + CAST( - 14 AS SIGNED ) * 99 * - + COUNT( * ) AS col2, 46 * - COUNT( * ) AS col0
----
1385
-46

skipif mysql # not compatible
query II rowsort label-2757
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + + CAST ( - 14 AS INTEGER ) * 99 * - + COUNT ( * ) AS col2, 46 * - COUNT ( * ) AS col0
----
1385
-46

query I rowsort
SELECT ALL + 44 * 82 + + 58 * 52
----
6624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2759
SELECT DISTINCT + 65 * COALESCE ( 28, 84 DIV - MIN( ALL - - 49 ) + - 58 DIV 24 * + - 34 * MAX( + NULLIF ( - 21, - 0 ) ) DIV ( - 72 ) - - MAX( DISTINCT + 47 ) + 23 )
----
1820

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT + 65 * COALESCE ( 28, 84 / - MIN ( ALL - - 49 ) + - 58 / 24 * + - 34 * MAX ( + NULLIF ( - 21, - 0 ) ) / ( - 72 ) - - MAX ( DISTINCT + 47 ) + 23 )
----
1820

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

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

query I rowsort
SELECT + ( + 87 ) * ( + ( + 90 ) ) * + 43
----
336690

query I rowsort
SELECT DISTINCT 81 - + - 83 AS col2
----
164

query I rowsort
SELECT ALL 16 - 19
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT + MAX( - 49 ) - 84
----
-133

skipif mysql # not compatible
query I rowsort label-2764
SELECT + MAX ( - 49 ) - 84
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2765
SELECT - 4 * + CAST( 85 AS SIGNED ) AS col0
----
-340

skipif mysql # not compatible
query I rowsort label-2765
SELECT - 4 * + CAST ( 85 AS INTEGER ) AS col0
----
-340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2766
SELECT ALL 10 * COUNT( 78 ) DIV + 43 * + - 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL 10 * COUNT ( 78 ) / + 43 * + - 1 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT + ( + - 39 ) * - CASE - + 82 WHEN + - COUNT( * ) THEN 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT + ( + - 39 ) * - CASE - + 82 WHEN + - COUNT ( * ) THEN 90 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2770
SELECT ALL COALESCE ( + 44, - 37 + + 69 ) AS col1, AVG ( ALL + CAST( NULL AS SIGNED ) )
----
44
NULL

skipif mysql # not compatible
query II rowsort label-2770
SELECT ALL COALESCE ( + 44, - 37 + + 69 ) AS col1, AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
44
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + CASE + 24 WHEN - - 17 THEN + 33 WHEN + 36 THEN NULL END, + 1 + + 46 + + - 64 * 91 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 47 * + COALESCE ( 91, - - 69 ) AS col2
----
-4277

query II rowsort
SELECT DISTINCT + 49 col0, - 66
----
49
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT - COUNT( * ) * - 59 col0
----
59

skipif mysql # not compatible
query I rowsort label-2774
SELECT - COUNT ( * ) * - 59 col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2775
SELECT - COALESCE ( - 29, 18 + + 10 * - - 23, - 56 ) - - 43 + - - 51 * + 91 AS col1, + CAST( NULL AS SIGNED ) + 44 + + 47 - 94 + + 2 AS col0
----
4713
NULL

skipif mysql # not compatible
query II rowsort label-2775
SELECT - COALESCE ( - 29, 18 + + 10 * - - 23, - 56 ) - - 43 + - - 51 * + 91 AS col1, + CAST ( NULL AS INTEGER ) + 44 + + 47 - 94 + + 2 AS col0
----
4713
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT - + 69 DIV 24
----
-2

skipif mysql # not compatible
query I rowsort label-2776
SELECT - + 69 / 24
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2777
SELECT ALL + + 31 DIV - 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL + + 31 / - 40 AS col1
----
0

query I rowsort
SELECT + + 90 col1
----
90

query I rowsort
SELECT + + 77 AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2780
SELECT ALL + 19 DIV + 35 + CAST( + 82 AS SIGNED ) - 42 + NULLIF ( ( 55 ), - 61 )
----
95

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL + 19 / + 35 + CAST ( + 82 AS INTEGER ) - 42 + NULLIF ( ( 55 ), - 61 )
----
95

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2782
SELECT ALL + - 18 DIV + + CAST( + AVG ( + + ( - 43 ) ) AS SIGNED ) + - - 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL + - 18 / + + CAST ( + AVG ( + + ( - 43 ) ) AS INTEGER ) + - - 16 AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2783
SELECT COUNT( * ) DIV 81 - - SUM( DISTINCT - 81 ) * + 42
----
-3402

skipif mysql # not compatible
query I rowsort label-2783
SELECT COUNT ( * ) / 81 - - SUM ( DISTINCT - 81 ) * + 42
----
-3402

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

query I rowsort
SELECT - + 57 + - - 93 + - 67 AS col2
----
-31

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

skipif mysql # not compatible
query II rowsort label-2786
SELECT + COUNT ( * ), 66 AS col2
----
1
66

query II rowsort
SELECT ALL + 82, 61 col1
----
82
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2788
SELECT ( + + 33 ), + 50 - - + CAST( NULL AS SIGNED ) AS col2
----
33
NULL

skipif mysql # not compatible
query II rowsort label-2788
SELECT ( + + 33 ), + 50 - - + CAST ( NULL AS INTEGER ) AS col2
----
33
NULL

query I rowsort
SELECT + 84 * + - 46 + 70 AS col0
----
-3794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2790
SELECT ALL COUNT( * ) * + ( - - 77 ) * + 41 * - - 37 + 30 + + COUNT( * ) * + MAX( DISTINCT - 89 ) * 56 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL COUNT ( * ) * + ( - - 77 ) * + 41 * - - 37 + 30 + + COUNT ( * ) * + MAX ( DISTINCT - 89 ) * 56 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 58 - - 39
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2792
SELECT ALL + ( - MIN( + CAST( 60 AS SIGNED ) ) )
----
-60

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL + ( - MIN ( + CAST ( 60 AS INTEGER ) ) )
----
-60

query I rowsort
SELECT + ( - + 49 ) + - 20
----
-69

query II rowsort
SELECT ALL 46 * - 92 - + + ( + - 7 ) AS col0, 42 AS col2
----
-4225
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2795
SELECT NULLIF ( - - COUNT( * ), - CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-2795
SELECT NULLIF ( - - COUNT ( * ), - CAST ( NULL AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT 25 * + SUM( 44 ) * - 84 - + 23 + + - 5 col1
----
-92428

skipif mysql # not compatible
query I rowsort label-2796
SELECT 25 * + SUM ( 44 ) * - 84 - + 23 + + - 5 col1
----
-92428

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

query I rowsort
SELECT + 5 * + - 54 AS col2
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL COUNT( * ) * - 99 * - 47 * ( + 67 )
----
311751

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL COUNT ( * ) * - 99 * - 47 * ( + 67 )
----
311751

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT - MAX( DISTINCT 67 ) + 88 + - - COUNT( DISTINCT 31 )
----
22

skipif mysql # not compatible
query I rowsort label-2800
SELECT - MAX ( DISTINCT 67 ) + 88 + - - COUNT ( DISTINCT 31 )
----
22

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

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

query II rowsort
SELECT DISTINCT + 71 * + + 54 AS col1, 8 * + ( + 32 ) * - 45
----
3834
-11520

query I rowsort
SELECT ALL + 62 * 70
----
4340

onlyif mysql # DIV for integer division: 
query I rowsort label-2804
SELECT DISTINCT 98 DIV + 39
----
2

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT 98 / + 39
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT 17 + 9 - - MAX( ALL - + 88 ) + COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-2805
SELECT 17 + 9 - - MAX ( ALL - + 88 ) + COUNT ( * ) AS col2
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT ALL 27 DIV - + 90 * ( 99 )
----
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL 27 / - + 90 * ( 99 )
----
0

query II rowsort
SELECT - 8 + - 53 AS col0, 23 col1
----
-61
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT 99 + + + COUNT( * ) * - 67 * - 71 AS col1
----
4856

skipif mysql # not compatible
query I rowsort label-2808
SELECT 99 + + + COUNT ( * ) * - 67 * - 71 AS col1
----
4856

query I rowsort
SELECT ( - 41 ) + - 81
----
-122

query I rowsort
SELECT ALL 23 + - 13 AS col0
----
10

query I rowsort
SELECT DISTINCT - 91 * + ( - + 94 ) * + 60 AS col2
----
513240

query I rowsort
SELECT ALL 67 + + ( - + 34 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT DISTINCT SUM( + + 58 ) + - ( - 61 )
----
119

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT SUM ( + + 58 ) + - ( - 61 )
----
119

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

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

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

query I rowsort
SELECT 68 + + + 63
----
131

query I rowsort
SELECT ALL - 41 + 48 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2818
SELECT + 33 + - CAST( NULL AS SIGNED ), CASE + - 97 WHEN 82 / + 30 THEN - 39 - + 17 + - - 95 + + 0 * - ( + 63 ) END + + + 99
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2818
SELECT + 33 + - CAST ( NULL AS INTEGER ), CASE + - 97 WHEN 82 / + 30 THEN - 39 - + 17 + - - 95 + + 0 * - ( + 63 ) END + + + 99
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT COUNT( 59 )
----
1

skipif mysql # not compatible
query I rowsort label-2819
SELECT COUNT ( 59 )
----
1

query I rowsort
SELECT + - 17 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-2821
SELECT ALL - 92 + 14, - COUNT( * ) AS col0
----
-78
-1

skipif mysql # not compatible
query II rowsort label-2821
SELECT ALL - 92 + 14, - COUNT ( * ) AS col0
----
-78
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT + 8 * - 1 - + 57 + 21 * + ( + 42 ) * - 42 + + 55 * + COUNT( * ) AS col0
----
-37054

skipif mysql # not compatible
query I rowsort label-2823
SELECT + 8 * - 1 - + 57 + 21 * + ( + 42 ) * - 42 + + 55 * + COUNT ( * ) AS col0
----
-37054

query I rowsort
SELECT DISTINCT - 68 col0
----
-68

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

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL - 20 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2827
SELECT DISTINCT 88 DIV 59 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT 88 / 59 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT DISTINCT 6 - - MIN( ALL - 97 ) - - 72 * + 24 + - COALESCE ( 68, - - 0 * + COUNT( * ) ) AS col2
----
1569

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT 6 - - MIN ( ALL - 97 ) - - 72 * + 24 + - COALESCE ( 68, - - 0 * + COUNT ( * ) ) AS col2
----
1569

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT 76 * NULLIF ( 9, + + COUNT( ALL + 56 ) * - 18 )
----
684

skipif mysql # not compatible
query I rowsort label-2829
SELECT 76 * NULLIF ( 9, + + COUNT ( ALL + 56 ) * - 18 )
----
684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2830
SELECT ALL - 20 - - - CAST( - - 93 AS SIGNED ) DIV SUM( ALL - 28 ) + + ( - COUNT( * ) )
----
-18

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL - 20 - - - CAST ( - - 93 AS INTEGER ) / SUM ( ALL - 28 ) + + ( - COUNT ( * ) )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2831
SELECT 63 * 66 * + 33 DIV + COUNT( * ) AS col0
----
137214

skipif mysql # not compatible
query I rowsort label-2831
SELECT 63 * 66 * + 33 / + COUNT ( * ) AS col0
----
137214

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT MAX( ALL - - 40 ) * - - COUNT( DISTINCT - 94 )
----
40

skipif mysql # not compatible
query I rowsort label-2832
SELECT MAX ( ALL - - 40 ) * - - COUNT ( DISTINCT - 94 )
----
40

query I rowsort
SELECT DISTINCT + 48 * 1 AS col0
----
48

query I rowsort
SELECT ALL - 37 col2
----
-37

query I rowsort
SELECT 89 * + 21 AS col2
----
1869

query I rowsort
SELECT DISTINCT + 48 * + - 55
----
-2640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2837
SELECT ALL - CASE CAST( 26 AS SIGNED ) WHEN + SUM( 26 ) THEN NULL WHEN 89 + - 79 THEN + 58 - + 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - CASE CAST ( 26 AS INTEGER ) WHEN + SUM ( 26 ) THEN NULL WHEN 89 + - 79 THEN + 58 - + 82 ELSE NULL END
----
NULL

query II rowsort
SELECT 29, 80 AS col0
----
29
80

query I rowsort
SELECT ALL 57 * + 19
----
1083

query II rowsort
SELECT 16 AS col0, 2 + + 51 AS col1
----
16
53

query I rowsort
SELECT 27 * - 26 AS col2
----
-702

onlyif mysql # DIV for integer division: 
query I rowsort label-2842
SELECT 33 DIV 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2842
SELECT 33 / 54 AS col2
----
0

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

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

query I rowsort
SELECT + 45 - - ( + - 94 ) AS col0
----
-49

query I rowsort
SELECT COALESCE ( + - 40, + 0, - 0 )
----
-40

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

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

query I rowsort
SELECT 83 + - 19 * + 15 col1
----
-202

onlyif mysql # aggregate syntax: 
query II rowsort label-2848
SELECT ALL + 70 AS col2, - MAX( DISTINCT 37 ) AS col0
----
70
-37

skipif mysql # not compatible
query II rowsort label-2848
SELECT ALL + 70 AS col2, - MAX ( DISTINCT 37 ) AS col0
----
70
-37

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

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

query I rowsort
SELECT ALL + 62 * + - 46 AS col1
----
-2852

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT ALL - 56 + + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL - 56 + + COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT DISTINCT + 45 + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT + 45 + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2853
SELECT ALL + SUM( DISTINCT - 26 ) DIV - COUNT( * ) + COALESCE ( - 74, + + 94 )
----
-48

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL + SUM ( DISTINCT - 26 ) / - COUNT ( * ) + COALESCE ( - 74, + + 94 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2854
SELECT + COUNT( * ) DIV + + 7 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2854
SELECT + COUNT ( * ) / + + 7 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2855
SELECT DISTINCT CAST( 50 AS SIGNED ) + - + 91 * + - ( - 19 ) + - - ( - 65 ) * + 28 * - 10
----
16521

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT CAST ( 50 AS INTEGER ) + - + 91 * + - ( - 19 ) + - - ( - 65 ) * + 28 * - 10
----
16521

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

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

query I rowsort
SELECT DISTINCT - 62 + - ( - 67 ) AS col2
----
5

query I rowsort
SELECT 32 + + - 95 * + 75 + + 47
----
-7046

query I rowsort
SELECT - - 63 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT - 54 * - NULLIF ( - COUNT( * ), - + 26 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2860
SELECT - 54 * - NULLIF ( - COUNT ( * ), - + 26 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT - 88 * MAX( 37 ) - 45 AS col1
----
-3301

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - 88 * MAX ( 37 ) - 45 AS col1
----
-3301

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

query I rowsort
SELECT + + 9 col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2864
SELECT - CASE - - CAST( NULL AS SIGNED ) WHEN - - 89 THEN 23 * - NULLIF ( NULLIF ( + 90, NULLIF ( ( + - COUNT( * ) ), - + 45 * + 38 ) * - 22 + - COUNT( * ) * - 39 ), + 12 + + 87 ) / + ( COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2864
SELECT - CASE - - CAST ( NULL AS INTEGER ) WHEN - - 89 THEN 23 * - NULLIF ( NULLIF ( + 90, NULLIF ( ( + - COUNT ( * ) ), - + 45 * + 38 ) * - 22 + - COUNT ( * ) * - 39 ), + 12 + + 87 ) / + ( COUNT ( * ) ) ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL - COALESCE ( - - 59, 5 * - COUNT( * ) )
----
-59

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL - COALESCE ( - - 59, 5 * - COUNT ( * ) )
----
-59

query I rowsort
SELECT 73 * + + 2 AS col1
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2868
SELECT ALL 65 * + + 92 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL 65 * + + 92 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT ALL 0 * 18 AS col1
----
0

query I rowsort
SELECT 57 + + - 49
----
8

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

skipif mysql # not compatible
query I rowsort label-2872
SELECT 89 / + COUNT ( * ) + 24
----
113

query I rowsort
SELECT 99 * - 64
----
-6336

query I rowsort
SELECT ( - 76 ) + + 89
----
13

query I rowsort
SELECT 11 * - + 55 * 11 * + 70 AS col2
----
-465850

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL - CASE + 44 WHEN COUNT( * ) THEN 6 - ( 46 ) / - 37 * - 73 END / - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL - CASE + 44 WHEN COUNT ( * ) THEN 6 - ( 46 ) / - 37 * - 73 END / - - 75
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2877
SELECT COUNT( DISTINCT 22 ) DIV - + 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2877
SELECT COUNT ( DISTINCT 22 ) / - + 46 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2878
SELECT - 28 DIV 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2878
SELECT - 28 / 79 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2879
SELECT ALL 34 DIV + 27 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL 34 / + 27 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2880
SELECT ALL 51 DIV + 30 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL 51 / + 30 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2881
SELECT ALL - 99 + 77 * - CASE + COUNT( * ) WHEN + MAX( DISTINCT NULLIF ( - ( + COALESCE ( 36, + 67, + 65 ) ), + 11 ) ) + + - CASE + - 30 WHEN + + 23 * 33 * - - 27 DIV + 50 * + 89 THEN NULL ELSE - + 51 END DIV - 14 + + ( 40 ) THEN NULL WHEN + 48 + + - 15 - + 74 DIV SUM( + - 25 ) THEN - 74 ELSE + 18 DIV + MIN( DISTINCT 66 ) END + - ( MAX( - 3 ) ) * - NULLIF ( 13, 69 + + NULLIF ( - 44, - + 78 * 98 + 68 ) * COUNT( * ) ) * 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL - 99 + 77 * - CASE + COUNT ( * ) WHEN + MAX ( DISTINCT NULLIF ( - ( + COALESCE ( 36, + 67, + 65 ) ), + 11 ) ) + + - CASE + - 30 WHEN + + 23 * 33 * - - 27 / + 50 * + 89 THEN NULL ELSE - + 51 END / - 14 + + ( 40 ) THEN NULL WHEN + 48 + + - 15 - + 74 / SUM ( + - 25 ) THEN - 74 ELSE + 18 / + MIN ( DISTINCT 66 ) END + - ( MAX ( - 3 ) ) * - NULLIF ( 13, 69 + + NULLIF ( - 44, - + 78 * 98 + 68 ) * COUNT ( * ) ) * 61 col2
----
NULL

query I rowsort
SELECT - 22 + - 1 * + 1 * - 14 AS col0
----
-8

query I rowsort
SELECT - 39 * - - 26
----
-1014

query II rowsort
SELECT DISTINCT - 17 + 17, - 14 AS col0
----
0
-14

query I rowsort
SELECT + 18 * + 69 + 10 AS col0
----
1252

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT - - 46 * COUNT( * ) - MIN( ALL 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-2886
SELECT - - 46 * COUNT ( * ) - MIN ( ALL 47 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT - COUNT( * ) + + 24 + - MIN( ALL + 5 ) * + 80 AS col2
----
-377

skipif mysql # not compatible
query I rowsort label-2887
SELECT - COUNT ( * ) + + 24 + - MIN ( ALL + 5 ) * + 80 AS col2
----
-377

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2888
SELECT - CAST( NULL AS SIGNED ) - + 36 + 12 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2888
SELECT - CAST ( NULL AS INTEGER ) - + 36 + 12 col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 62, - 26, - - 95 * 13 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2890
SELECT CAST( + 13 AS SIGNED ), - 39 AS col2
----
13
-39

skipif mysql # not compatible
query II rowsort label-2890
SELECT CAST ( + 13 AS INTEGER ), - 39 AS col2
----
13
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT - - ( COUNT( * ) ) + + 88
----
89

skipif mysql # not compatible
query I rowsort label-2891
SELECT - - ( COUNT ( * ) ) + + 88
----
89

query I rowsort
SELECT ALL - 52 + + 10 + - 41
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT - CASE WHEN + 68 = - 36 / + + 51 * + - 41 + + 63 + - 5 + COUNT( * ) THEN NULL ELSE 49 END
----
-49

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT - CASE WHEN + 68 = - 36 / + + 51 * + - 41 + + 63 + - 5 + COUNT ( * ) THEN NULL ELSE 49 END
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-2894
SELECT - 34 AS col1, 32 * + - 54 + - 47 DIV - 45 + 49
----
-34
-1678

skipif mysql # not compatible
query II rowsort label-2894
SELECT - 34 AS col1, 32 * + - 54 + - 47 / - 45 + 49
----
-34
-1678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2895
SELECT ALL COUNT( * ), CAST( 84 AS SIGNED ) + 81 DIV + MIN( + 81 ) AS col0
----
1
85

skipif mysql # not compatible
query II rowsort label-2895
SELECT ALL COUNT ( * ), CAST ( 84 AS INTEGER ) + 81 / + MIN ( + 81 ) AS col0
----
1
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT - + NULLIF ( + - 88, + 38 + - NULLIF ( - 0, + 53 * - 84 ) ) + 68 + COUNT( DISTINCT + 21 ) * - 8 AS col0
----
148

skipif mysql # not compatible
query I rowsort label-2896
SELECT - + NULLIF ( + - 88, + 38 + - NULLIF ( - 0, + 53 * - 84 ) ) + 68 + COUNT ( DISTINCT + 21 ) * - 8 AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT + COUNT( * ) * + - COUNT( * ) + - 44 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2897
SELECT + COUNT ( * ) * + - COUNT ( * ) + - 44 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT - - 69 + MIN( + 49 ) AS col2
----
118

skipif mysql # not compatible
query I rowsort label-2898
SELECT - - 69 + MIN ( + 49 ) AS col2
----
118

query I rowsort
SELECT DISTINCT - 58 - + 55 AS col1
----
-113

query I rowsort
SELECT DISTINCT + - 3 * 14 col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT ALL + COALESCE ( 41, - 61, - - ( - 83 ), - + COUNT( * ), + - 47 * - 87 * - - 73 - 19 )
----
41

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL + COALESCE ( 41, - 61, - - ( - 83 ), - + COUNT ( * ), + - 47 * - 87 * - - 73 - 19 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2902
SELECT DISTINCT + - 78 - AVG ( - 2 ) - 90 * - CAST( NULL AS SIGNED ) * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT + - 78 - AVG ( - 2 ) - 90 * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) col0
----
NULL

query II rowsort
SELECT - - 20 * - 54 + - ( - 93 ) AS col0, + 36 col2
----
-987
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2904
SELECT DISTINCT - 51 - 99 DIV + 74
----
-52

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT - 51 - 99 / + 74
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2905
SELECT + + 45 * - - 7 + + NULLIF ( - 83, + + NULLIF ( - 45, - COUNT( * ) / - 92 ) + + COUNT( * ) * + 1 ) * + - COUNT( * ) col1, CAST( NULL AS SIGNED ) * 29 + 51 - - 67
----
398
NULL

skipif mysql # not compatible
query II rowsort label-2905
SELECT + + 45 * - - 7 + + NULLIF ( - 83, + + NULLIF ( - 45, - COUNT ( * ) / - 92 ) + + COUNT ( * ) * + 1 ) * + - COUNT ( * ) col1, CAST ( NULL AS INTEGER ) * 29 + 51 - - 67
----
398
NULL

query I rowsort
SELECT + 18 + - 31 + + 91 + ( - 14 )
----
64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT - COUNT( * ) * - 52 * - + COUNT( * ) * - 77
----
4004

skipif mysql # not compatible
query I rowsort label-2908
SELECT - COUNT ( * ) * - 52 * - + COUNT ( * ) * - 77
----
4004

query I rowsort
SELECT + ( + 37 ) + 44
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT ALL 18 DIV - + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL 18 / - + 80 AS col1
----
0

query I rowsort
SELECT - 82 * - 5 * + + 98 AS col1
----
40180

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT + 88 * - COUNT( * ) * 27
----
-2376

skipif mysql # not compatible
query I rowsort label-2912
SELECT + 88 * - COUNT ( * ) * 27
----
-2376

query I rowsort
SELECT 57 * - + 7 + + + 6
----
-393

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT ALL 46 * ( - COUNT( * ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL 46 * ( - COUNT ( * ) ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT + SUM( ALL - 70 ) * + - NULLIF ( 90, + + COUNT( * ) * + 76 + - NULLIF ( 28, - 82 * 90 ) * - 17 + + 48 ) AS col0
----
6300

skipif mysql # not compatible
query I rowsort label-2916
SELECT + SUM ( ALL - 70 ) * + - NULLIF ( 90, + + COUNT ( * ) * + 76 + - NULLIF ( 28, - 82 * 90 ) * - 17 + + 48 ) AS col0
----
6300

query II rowsort
SELECT ( - 56 ), 18 AS col0
----
-56
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT CASE - - 64 WHEN 21 THEN 4 / + 39 + 44 - + ( + 93 ) * + - COUNT( * ) - + MAX( DISTINCT 15 ) + - 46 * - - 79 * - 80 ELSE - ( + 18 ) END col0
----
-18

skipif mysql # not compatible
query I rowsort label-2919
SELECT CASE - - 64 WHEN 21 THEN 4 / + 39 + 44 - + ( + 93 ) * + - COUNT ( * ) - + MAX ( DISTINCT 15 ) + - 46 * - - 79 * - 80 ELSE - ( + 18 ) END col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2920
SELECT + COALESCE ( + 68, 26 * + 2 - - 93 ) AS col2, COUNT( * ) * + 11 AS col0
----
68
11

skipif mysql # not compatible
query II rowsort label-2920
SELECT + COALESCE ( + 68, 26 * + 2 - - 93 ) AS col2, COUNT ( * ) * + 11 AS col0
----
68
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2921
SELECT CASE + CASE + + 1 WHEN + - 81 THEN NULL WHEN 4 THEN - + 94 ELSE NULLIF ( NULLIF ( CAST( NULL AS SIGNED ), - 31 ), + + COUNT( * ) + + + 3 * - + 81 * SUM( + ( - ( - CAST( - 20 AS SIGNED ) ) ) ) * - 43 + + CAST( NULL AS SIGNED ) - - CASE - - 1 WHEN + 57 THEN + 35 WHEN 86 / - 14 + - MAX( DISTINCT + 19 ) THEN + 44 ELSE NULL END + - + 21 ) / - CASE - 13 WHEN 40 THEN - 66 END * - 16 END WHEN - + 47 * - + 23 + + 86 THEN - 38 * COALESCE ( - 32, + 29 * 93 ) / 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2921
SELECT CASE + CASE + + 1 WHEN + - 81 THEN NULL WHEN 4 THEN - + 94 ELSE NULLIF ( NULLIF ( CAST ( NULL AS INTEGER ), - 31 ), + + COUNT ( * ) + + + 3 * - + 81 * SUM ( + ( - ( - CAST ( - 20 AS INTEGER ) ) ) ) * - 43 + + CAST ( NULL AS INTEGER ) - - CASE - - 1 WHEN + 57 THEN + 35 WHEN 86 / - 14 + - MAX ( DISTINCT + 19 ) THEN + 44 ELSE NULL END + - + 21 ) / - CASE - 13 WHEN 40 THEN - 66 END * - 16 END WHEN - + 47 * - + 23 + + 86 THEN - 38 * COALESCE ( - 32, + 29 * 93 ) / 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT COALESCE ( COALESCE ( - 7, - - 46, - 87 ), - 96 + + + 16 * + 91, - - ( COALESCE ( - - 70, + 58 * - MIN( ALL 65 ) ) ) )
----
-7

skipif mysql # not compatible
query I rowsort label-2922
SELECT COALESCE ( COALESCE ( - 7, - - 46, - 87 ), - 96 + + + 16 * + 91, - - ( COALESCE ( - - 70, + 58 * - MIN ( ALL 65 ) ) ) )
----
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT CASE - SUM( + 16 ) WHEN 84 THEN - + 36 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT CASE - SUM ( + 16 ) WHEN 84 THEN - + 36 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2925
SELECT + + 42 DIV COUNT( ALL 85 ) + + 85 DIV + 48, 39 AS col1
----
43
39

skipif mysql # not compatible
query II rowsort label-2925
SELECT + + 42 / COUNT ( ALL 85 ) + + 85 / + 48, 39 AS col1
----
43
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2926
SELECT ALL - 24 * + COUNT( * ) + - - ( CAST( - 81 AS SIGNED ) ) - + + 93 DIV - COUNT( * ) + + - 12 - - COUNT( * ) DIV + 17 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL - 24 * + COUNT ( * ) + - - ( CAST ( - 81 AS INTEGER ) ) - + + 93 / - COUNT ( * ) + + - 12 - - COUNT ( * ) / + 17 AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2927
SELECT DISTINCT - SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) * + 45 + + - 26 + - 64 + - - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * + 45 + + - 26 + - 64 + - - 6 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2928
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - + 0 AS col2, - 26 - + - ( + 54 )
----
NULL
28

skipif mysql # not compatible
query II rowsort label-2928
SELECT DISTINCT + CAST ( NULL AS REAL ) * - + 0 AS col2, - 26 - + - ( + 54 )
----
NULL
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL COALESCE ( - - 74, + 77 * + 75 ) * + 28 * NULLIF ( - 98, + 13 * - 33 + NULLIF ( + 3, + 43 + - 61 + - COUNT( * ) ) ) + + 23 + - 24 + + + 20 * + 88 AS col1
----
-201297

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL COALESCE ( - - 74, + 77 * + 75 ) * + 28 * NULLIF ( - 98, + 13 * - 33 + NULLIF ( + 3, + 43 + - 61 + - COUNT ( * ) ) ) + + 23 + - 24 + + + 20 * + 88 AS col1
----
-201297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2930
SELECT - 77 DIV - COUNT( * ) col1
----
77

skipif mysql # not compatible
query I rowsort label-2930
SELECT - 77 / - COUNT ( * ) col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2931
SELECT + 16 * + CAST( - 34 AS SIGNED )
----
-544

skipif mysql # not compatible
query I rowsort label-2931
SELECT + 16 * + CAST ( - 34 AS INTEGER )
----
-544

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2932
SELECT ALL + COUNT( DISTINCT + + CAST( NULL AS DECIMAL ) ) * + 28
----
0

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL + COUNT ( DISTINCT + + CAST ( NULL AS REAL ) ) * + 28
----
0

query II rowsort
SELECT ALL + + 12 * - + 94 - ( - 29 ) + + + 4 * + + 66 + + + 56 AS col1, - 92 AS col0
----
-779
-92

query II rowsort
SELECT + 30 * - + 22, 43 col2
----
-660
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT ALL + COUNT( 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL + COUNT ( 33 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2937
SELECT - COUNT( * ) + - 81 DIV - COALESCE ( + 22, - 21 * - 50 * 52, - + CAST( + + 37 AS SIGNED ) DIV - ( - + 24 ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2937
SELECT - COUNT ( * ) + - 81 / - COALESCE ( + 22, - 21 * - 50 * 52, - + CAST ( + + 37 AS INTEGER ) / - ( - + 24 ) ) AS col2
----
2

query I rowsort
SELECT ALL 36 * ( + ( 7 ) ) AS col1
----
252

query I rowsort
SELECT - 93 * - - 94 + - 56
----
-8798

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT - COALESCE ( - 18, 0 - - + COUNT( * ) ) - COALESCE ( + - 74, COALESCE ( - 78, + 38 + - 76 ) ) + + COALESCE ( + - COUNT( * ), - 40, 12 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-2940
SELECT - COALESCE ( - 18, 0 - - + COUNT ( * ) ) - COALESCE ( + - 74, COALESCE ( - 78, + 38 + - 76 ) ) + + COALESCE ( + - COUNT ( * ), - 40, 12 ) AS col2
----
91

query I rowsort
SELECT - - 72 - COALESCE ( - 36, - 27, - - 57 ) AS col2
----
108

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

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

query II rowsort
SELECT 16 AS col1, 3
----
16
3

query II rowsort
SELECT 51 AS col0, - 28 AS col1
----
51
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT DISTINCT + 89 * ( + MAX( ALL - + ( - COALESCE ( - NULLIF ( + 15, - 37 * + 0 * 88 ), + 38 + 86 ) ) ) )
----
-1335

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT + 89 * ( + MAX ( ALL - + ( - COALESCE ( - NULLIF ( + 15, - 37 * + 0 * 88 ), + 38 + 86 ) ) ) )
----
-1335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT ALL - CAST( 91 AS SIGNED ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL - CAST ( 91 AS INTEGER ) AS col0
----
-91

query I rowsort
SELECT ALL + 98 + + + 48 AS col1
----
146

query I rowsort
SELECT DISTINCT + 89 * 83 AS col0
----
7387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2949
SELECT ALL 40 + - COUNT( * ) + + 66 AS col2, CAST( - + 47 AS SIGNED ) col0
----
105
-47

skipif mysql # not compatible
query II rowsort label-2949
SELECT ALL 40 + - COUNT ( * ) + + 66 AS col2, CAST ( - + 47 AS INTEGER ) col0
----
105
-47

query I rowsort
SELECT DISTINCT ( - - 85 ) + + 24 + + 20 + + 14
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2951
SELECT DISTINCT - COUNT( * ) + + AVG ( ALL + CAST( + 38 AS SIGNED ) ) + + CAST( NULL AS SIGNED ) + - + ( COUNT( * ) ) * - MIN( - 1 ) + 85 + + - COUNT( * ) / - + COUNT( * ) - + - 48 - + 82 * + 69 * + 35, 38 - - 2 AS col0
----
NULL
40

skipif mysql # not compatible
query II rowsort label-2951
SELECT DISTINCT - COUNT ( * ) + + AVG ( ALL + CAST ( + 38 AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) + - + ( COUNT ( * ) ) * - MIN ( - 1 ) + 85 + + - COUNT ( * ) / - + COUNT ( * ) - + - 48 - + 82 * + 69 * + 35, 38 - - 2 AS col0
----
NULL
40

query II rowsort
SELECT 26, - 72 col0
----
26
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT 27 * - MAX( + 99 ) AS col0
----
-2673

skipif mysql # not compatible
query I rowsort label-2953
SELECT 27 * - MAX ( + 99 ) AS col0
----
-2673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2954
SELECT ALL - 99 + 1 * + - CAST( NULL AS SIGNED ) / - COUNT( * ) + - COUNT( * ) + ( 98 ) + - 28 + + + COUNT( * ) - + 75 + - - 19 * 68 * 64 * + 8 * 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL - 99 + 1 * + - CAST ( NULL AS INTEGER ) / - COUNT ( * ) + - COUNT ( * ) + ( 98 ) + - 28 + + + COUNT ( * ) - + 75 + - - 19 * 68 * 64 * + 8 * 61 AS col2
----
NULL

query I rowsort
SELECT 98 + + + ( + 69 ) - - 76
----
243

query II rowsort
SELECT 34 AS col0, + 12
----
34
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2957
SELECT COUNT( * ) + + 55 DIV + 18, CASE - COUNT( * ) WHEN 36 + - 79 + - - 48 THEN + 15 DIV + 95 + - 81 * + COALESCE ( + + ( - 91 ), 82, + 86 ) WHEN 23 THEN CAST( NULL AS DECIMAL ) + 61 ELSE - 22 DIV CAST( NULL AS SIGNED ) DIV - SUM( DISTINCT - 49 ) END + 17 * + 65 AS col0
----
4
NULL

skipif mysql # not compatible
query II rowsort label-2957
SELECT COUNT ( * ) + + 55 / + 18, CASE - COUNT ( * ) WHEN 36 + - 79 + - - 48 THEN + 15 / + 95 + - 81 * + COALESCE ( + + ( - 91 ), 82, + 86 ) WHEN 23 THEN CAST ( NULL AS REAL ) + 61 ELSE - 22 / CAST ( NULL AS INTEGER ) / - SUM ( DISTINCT - 49 ) END + 17 * + 65 AS col0
----
4
NULL

query II rowsort
SELECT 77 AS col0, - 88 + - 43 + - 81
----
77
-212

onlyif mysql # aggregate syntax: 
query II rowsort label-2959
SELECT - 85 * + + 30 + - COUNT( * ), 14 AS col0
----
-2551
14

skipif mysql # not compatible
query II rowsort label-2959
SELECT - 85 * + + 30 + - COUNT ( * ), 14 AS col0
----
-2551
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2960
SELECT ALL - 36 + + 43 + + + 76 - + ( + - 34 ) * - CAST( NULL AS SIGNED ) * 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL - 36 + + 43 + + + 76 - + ( + - 34 ) * - CAST ( NULL AS INTEGER ) * 37 AS col2
----
NULL

query II rowsort
SELECT + 11, - 34 col0
----
11
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT 12 + - 11 - - - 37 - + MIN( + 4 ) * + 39
----
-192

skipif mysql # not compatible
query I rowsort label-2962
SELECT 12 + - 11 - - - 37 - + MIN ( + 4 ) * + 39
----
-192

query I rowsort
SELECT DISTINCT + 58 * - 10 AS col2
----
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT + MIN( 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2964
SELECT + MIN ( 0 ) AS col1
----
0

query II rowsort
SELECT DISTINCT - + 40 AS col0, 16 * 34 AS col2
----
-40
544

query I rowsort
SELECT 92 * 33
----
3036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2967
SELECT + 84 * - ( - 38 ) * - CAST( NULL AS SIGNED ) + - 63 * - COUNT( * ) + 74 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2967
SELECT + 84 * - ( - 38 ) * - CAST ( NULL AS INTEGER ) + - 63 * - COUNT ( * ) + 74 col0
----
NULL

query I rowsort
SELECT ( - ( 44 ) ) + - 48
----
-92

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

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

query I rowsort
SELECT - 50 * + + 61
----
-3050

query II rowsort
SELECT ALL 8, - 2 col2
----
8
-2

query I rowsort
SELECT - 19 col2
----
-19

query I rowsort
SELECT 38 * + 93
----
3534

query I rowsort
SELECT - CASE - 92 WHEN + + 65 THEN NULL WHEN - 13 THEN NULL ELSE ( + + 64 ) END AS col2
----
-64

query II rowsort
SELECT ALL + 6 * + 63 * + + 5, - 14 + 78 AS col1
----
1890
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT ALL + COUNT( * ) * - 98 + - + 18
----
-116

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL + COUNT ( * ) * - 98 + - + 18
----
-116

query I rowsort
SELECT 17 + - 26 + - 78 + + 80 AS col1
----
-7

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

query I rowsort
SELECT ( + + 22 ) + 32 AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2980
SELECT 8 + - 22 AS col0, + COUNT( * )
----
-14
1

skipif mysql # not compatible
query II rowsort label-2980
SELECT 8 + - 22 AS col0, + COUNT ( * )
----
-14
1

query I rowsort
SELECT ALL - 3 + - 87 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT MAX( ALL + 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-2982
SELECT MAX ( ALL + 26 ) AS col1
----
26

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

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

query I rowsort
SELECT - 75 * 93 + 3 AS col1
----
-6972

query I rowsort
SELECT ALL + 67 + 77 col1
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2986
SELECT DISTINCT + 58 * + COALESCE ( + - 0, + - 87 + - - MIN( - + 83 ), + 81 + + 39 DIV + + ( + 91 ) + + 11 + 84 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT + 58 * + COALESCE ( + - 0, + - 87 + - - MIN ( - + 83 ), + 81 + + 39 / + + ( + 91 ) + + 11 + 84 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT COUNT( * ) * 11 + + 29 col1
----
40

skipif mysql # not compatible
query I rowsort label-2987
SELECT COUNT ( * ) * 11 + + 29 col1
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT ALL + NULLIF ( COALESCE ( - 8, + 84 ), + - MIN( 90 ) ) * 78 * + - COUNT( * )
----
624

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL + NULLIF ( COALESCE ( - 8, + 84 ), + - MIN ( 90 ) ) * 78 * + - COUNT ( * )
----
624

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2991
SELECT ALL + CASE + + 28 WHEN - + 99 THEN - + 13 - - ( - 3 ) - + + 20 + - ( + + COUNT( * ) ) / - MIN( + 71 ) + - 4 / 21 ELSE NULL END - COUNT( + 41 ) + - - MIN( ALL + 64 ) / + 66 * - - 85, + 98 * + 86 AS col0
----
NULL
8428

skipif mysql # not compatible
query II rowsort label-2991
SELECT ALL + CASE + + 28 WHEN - + 99 THEN - + 13 - - ( - 3 ) - + + 20 + - ( + + COUNT ( * ) ) / - MIN ( + 71 ) + - 4 / 21 ELSE NULL END - COUNT ( + 41 ) + - - MIN ( ALL + 64 ) / + 66 * - - 85, + 98 * + 86 AS col0
----
NULL
8428

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL - SUM( DISTINCT 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL - SUM ( DISTINCT 33 ) AS col2
----
-33

query I rowsort
SELECT ALL - 41 * 23
----
-943

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT + 90 * + - COUNT( * ) col2
----
-90

skipif mysql # not compatible
query I rowsort label-2994
SELECT + 90 * + - COUNT ( * ) col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT ALL - 37 DIV - 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL - 37 / - 62 AS col1
----
0

query I rowsort
SELECT - 82 * - 95
----
7790

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

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

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

query I rowsort
SELECT + 48 * + 96
----
4608

query I rowsort
SELECT ALL - ( 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT + COALESCE ( + COUNT( + + 8 ), + + 25 * 64 + - 32 + - + NULLIF ( + 69, + 91 ) ) + + 12 + + - 35 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3001
SELECT + COALESCE ( + COUNT ( + + 8 ), + + 25 * 64 + - 32 + - + NULLIF ( + 69, + 91 ) ) + + 12 + + - 35 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT + MAX( DISTINCT + + CASE - - 98 WHEN - 73 THEN 5 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT + MAX ( DISTINCT + + CASE - - 98 WHEN - 73 THEN 5 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3003
SELECT ALL + MIN( + 68 ) * CAST( NULL AS DECIMAL ) / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL + MIN ( + 68 ) * CAST ( NULL AS REAL ) / + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 52 * - 81 + - 44 AS col0
----
-4256

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT + ( - - CASE + - 33 WHEN - + MAX( 21 ) THEN + + 91 WHEN + COUNT( * ) THEN + - 90 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT + ( - - CASE + - 33 WHEN - + MAX ( 21 ) THEN + + 91 WHEN + COUNT ( * ) THEN + - 90 END )
----
NULL

query I rowsort
SELECT - - CASE ( + 78 ) WHEN - + 53 THEN NULL WHEN + 15 THEN NULL WHEN CASE + 63 WHEN + - 36 THEN NULL WHEN + 71 * + 12 THEN + + 68 ELSE NULL END THEN - + 62 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ( + ( + ( - COALESCE ( 98, + - 22 - 19, 3 ) ) ) ) AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3008
SELECT - COUNT( - + 9 ) AS col2, - 68 * - CAST( 7 AS SIGNED ) AS col1
----
-1
476

skipif mysql # not compatible
query II rowsort label-3008
SELECT - COUNT ( - + 9 ) AS col2, - 68 * - CAST ( 7 AS INTEGER ) AS col1
----
-1
476

query I rowsort
SELECT + 55 + + NULLIF ( - 10, - + 8 ) AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3010
SELECT ALL COUNT( ALL - 87 ) + + NULLIF ( + 30, - + COUNT( * ) ) DIV + 9 AS col0, - CASE - COUNT( * ) WHEN COALESCE ( - 74, + CAST( + 44 AS SIGNED ) - + COUNT( * ), - 52 ) * - 62 THEN - + 53 END AS col2
----
4
NULL

skipif mysql # not compatible
query II rowsort label-3010
SELECT ALL COUNT ( ALL - 87 ) + + NULLIF ( + 30, - + COUNT ( * ) ) / + 9 AS col0, - CASE - COUNT ( * ) WHEN COALESCE ( - 74, + CAST ( + 44 AS INTEGER ) - + COUNT ( * ), - 52 ) * - 62 THEN - + 53 END AS col2
----
4
NULL

query I rowsort
SELECT ALL 23 + + 72 AS col0
----
95

query I rowsort
SELECT DISTINCT 69 col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3013
SELECT DISTINCT AVG ( 84 ) + + 76 * + 51 - + - 18 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT AVG ( 84 ) + + 76 * + 51 - + - 18 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 71 * - 68
----
-4828

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT ALL COUNT( * ) + 28
----
29

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL COUNT ( * ) + 28
----
29

query I rowsort
SELECT ALL 87 * + 78 * - 71 * - - 72
----
-34690032

query II rowsort
SELECT 65, - 53 AS col2
----
65
-53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3020
SELECT ALL ( + - 3 ) * + ( - COALESCE ( - 54, + 76, 37 + CAST( + - 25 AS SIGNED ) + + SUM( ALL + 2 ) - + 67 ) ) AS col2
----
-162

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL ( + - 3 ) * + ( - COALESCE ( - 54, + 76, 37 + CAST ( + - 25 AS INTEGER ) + + SUM ( ALL + 2 ) - + 67 ) ) AS col2
----
-162

query I rowsort
SELECT ALL + 62 * - + 69 - - 41 AS col1
----
-4237

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3023
SELECT 9 DIV + - 44 + - - 13 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3023
SELECT 9 / + - 44 + - - 13 AS col2
----
13

query I rowsort
SELECT DISTINCT + + 22 col1
----
22

query I rowsort
SELECT ALL - - 11 * + 19 * + 53
----
11077

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT + 3 * COUNT( * ) + 68 + + 56
----
127

skipif mysql # not compatible
query I rowsort label-3026
SELECT + 3 * COUNT ( * ) + 68 + + 56
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3027
SELECT - 66 - - - 92 + MIN( - 68 ) DIV - ( + 61 ) + + 59 * + - 37
----
-2340

skipif mysql # not compatible
query I rowsort label-3027
SELECT - 66 - - - 92 + MIN ( - 68 ) / - ( + 61 ) + + 59 * + - 37
----
-2340

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT - - MAX( DISTINCT + + 51 ) * - + COALESCE ( + 25, + - 26 + - COUNT( * ) * 99 ) * - 14
----
17850

skipif mysql # not compatible
query I rowsort label-3029
SELECT - - MAX ( DISTINCT + + 51 ) * - + COALESCE ( + 25, + - 26 + - COUNT ( * ) * 99 ) * - 14
----
17850

query I rowsort
SELECT ALL + - 29 AS col0
----
-29

query I rowsort
SELECT + 40 * - + 10 + 79 * - + 2
----
-558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3032
SELECT DISTINCT - COALESCE ( 63, + + 85 ) DIV + COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT - COALESCE ( 63, + + 85 ) / + COUNT ( * ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT - COUNT( * ) * + CASE + 70 WHEN + + 74 THEN ( - COUNT( * ) ) * - COUNT( * ) * - 88 - - - 35 - CASE - + 52 WHEN - - COUNT( * ) THEN 33 WHEN - - COUNT( * ) + + COALESCE ( 31, - 8 / COUNT( * ) ) THEN - 57 * + COALESCE ( - + CASE - 75 WHEN + ( + - 77 ) / - MAX( + 44 ) + + 92 THEN 40 + + + 52 * - - AVG ( ALL + 22 ) ELSE NULL END, + 54 ) + COALESCE ( - COUNT( * ), + ( + + 70 ) + 44, + + 53 ) + + 67 ELSE NULL END + + 26 * - + 50 * + 18 + - 51 * - - 35 + - 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT - COUNT ( * ) * + CASE + 70 WHEN + + 74 THEN ( - COUNT ( * ) ) * - COUNT ( * ) * - 88 - - - 35 - CASE - + 52 WHEN - - COUNT ( * ) THEN 33 WHEN - - COUNT ( * ) + + COALESCE ( 31, - 8 / COUNT ( * ) ) THEN - 57 * + COALESCE ( - + CASE - 75 WHEN + ( + - 77 ) / - MAX ( + 44 ) + + 92 THEN 40 + + + 52 * - - AVG ( ALL + 22 ) ELSE NULL END, + 54 ) + COALESCE ( - COUNT ( * ), + ( + + 70 ) + 44, + + 53 ) + + 67 ELSE NULL END + + 26 * - + 50 * + 18 + - 51 * - - 35 + - 15 END
----
NULL

query I rowsort
SELECT COALESCE ( - 87, 54 ) AS col2
----
-87

query I rowsort
SELECT - 39 * - 76 AS col2
----
2964

query I rowsort
SELECT ALL - 29 + - 65
----
-94

query I rowsort
SELECT DISTINCT + 30 + - 62 col0
----
-32

query I rowsort
SELECT ALL - 67 + 14 + + 88 * 0
----
-53

query I rowsort
SELECT DISTINCT 46 * + + 8
----
368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3040
SELECT - CAST( NULL AS SIGNED ) + - ( + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3040
SELECT - CAST ( NULL AS INTEGER ) + - ( + 6 )
----
NULL

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

query I rowsort
SELECT - 87 + - 36
----
-123

query I rowsort
SELECT + 63 + 21 + - ( 26 ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3044
SELECT ALL CAST( + SUM( 57 ) AS SIGNED ) - + CASE - - 38 WHEN 52 * - 67 THEN NULL ELSE 20 * ( 54 ) END + + 11 + 20 DIV 97 AS col1
----
-1012

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL CAST ( + SUM ( 57 ) AS INTEGER ) - + CASE - - 38 WHEN 52 * - 67 THEN NULL ELSE 20 * ( 54 ) END + + 11 + 20 / 97 AS col1
----
-1012

query I rowsort
SELECT + 40 * + 41 * + + 92
----
150880

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT + COUNT( * ) + - 95 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-3047
SELECT + COUNT ( * ) + - 95 AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3048
SELECT ALL CAST( NULL AS SIGNED ) - - 97 * SUM( ALL + 21 ) + - AVG ( - 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL CAST ( NULL AS INTEGER ) - - 97 * SUM ( ALL + 21 ) + - AVG ( - 75 ) AS col0
----
NULL

query I rowsort
SELECT + 10 + - 47
----
-37

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

skipif mysql # not compatible
query I rowsort label-3050
SELECT + NULLIF ( - COUNT ( * ), - 74 ) AS col0
----
-1

query I rowsort
SELECT + ( + NULLIF ( - - 19, 57 ) )
----
19

query I rowsort
SELECT + 3 * + 25
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT DISTINCT 9 * - MIN( + 7 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT 9 * - MIN ( + 7 ) AS col2
----
-63

query I rowsort
SELECT ALL 68 * - - 51 AS col0
----
3468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3055
SELECT + + 93 * - + COALESCE ( + - COUNT( - + 54 ), - - COUNT( * ) * - ( + COALESCE ( - + COUNT( * ), + CAST( NULL AS SIGNED ) ) ) * + 68 / 55 ) * + 41 + + CAST( NULL AS SIGNED ) * - 60 * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT + + 93 * - + COALESCE ( + - COUNT ( - + 54 ), - - COUNT ( * ) * - ( + COALESCE ( - + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) ) * + 68 / 55 ) * + 41 + + CAST ( NULL AS INTEGER ) * - 60 * + 56
----
NULL

query I rowsort
SELECT - 55 * + 84 AS col0
----
-4620

onlyif mysql # aggregate syntax: 
query II rowsort label-3057
SELECT + COALESCE ( + 40, + 86 + + 49 ) AS col2, + COUNT( * ) AS col1
----
40
1

skipif mysql # not compatible
query II rowsort label-3057
SELECT + COALESCE ( + 40, + 86 + + 49 ) AS col2, + COUNT ( * ) AS col1
----
40
1

query II rowsort
SELECT ALL + 77, 25 AS col2
----
77
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT DISTINCT MAX( + 9 ) * + 30
----
270

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT MAX ( + 9 ) * + 30
----
270

query II rowsort
SELECT - 87 AS col1, 52 AS col2
----
-87
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3061
SELECT ALL + CAST( NULL AS SIGNED ) / - + 92 + - 32 * 83 + - + MIN( ALL + + 75 ) + + 26 * - MAX( - 98 ) AS col0, + CASE + + 92 WHEN + - 35 THEN NULL ELSE - + ( - MIN( ALL + CAST( - - 43 AS SIGNED ) ) ) END + 21 + - - ( + 16 )
----
NULL
80

skipif mysql # not compatible
query II rowsort label-3061
SELECT ALL + CAST ( NULL AS INTEGER ) / - + 92 + - 32 * 83 + - + MIN ( ALL + + 75 ) + + 26 * - MAX ( - 98 ) AS col0, + CASE + + 92 WHEN + - 35 THEN NULL ELSE - + ( - MIN ( ALL + CAST ( - - 43 AS INTEGER ) ) ) END + 21 + - - ( + 16 )
----
NULL
80

query II rowsort
SELECT ALL + 56, 60 AS col0
----
56
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3063
SELECT ALL 79 DIV + - 95 + - + ( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL 79 / + - 95 + - + ( - 38 )
----
38

query I rowsort
SELECT DISTINCT + - 18 AS col2
----
-18

query II rowsort
SELECT 65 AS col0, - 37 AS col0
----
65
-37

query I rowsort
SELECT ALL - + 67 * - ( + 41 )
----
2747

query II rowsort
SELECT ALL + + 4 + + 87 * - 65 * - + 36 AS col1, 87 * - 11 + + 92 * + 28 * + 1
----
203584
1619

query II rowsort
SELECT + + 38, + 35 * + - 85 AS col1
----
38
-2975

query III rowsort
SELECT + - 82 AS col1, - 12 AS col0, - + 10 col1
----
-82
-12
-10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT ALL + + CASE + 31 WHEN CAST( NULL AS SIGNED ) THEN + CAST( + 4 AS SIGNED ) END * + - ( + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL + + CASE + 31 WHEN CAST ( NULL AS INTEGER ) THEN + CAST ( + 4 AS INTEGER ) END * + - ( + 91 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT ALL - 0 + - MAX( + 51 ) + 85
----
34

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL - 0 + - MAX ( + 51 ) + 85
----
34

query I rowsort
SELECT - 8 * + 96 - ( - 42 )
----
-726

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT 21 * - 74 * - + COUNT( * )
----
1554

skipif mysql # not compatible
query I rowsort label-3074
SELECT 21 * - 74 * - + COUNT ( * )
----
1554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3075
SELECT 1 + - - 43 * + ( - 78 ) DIV - COUNT( * ) AS col2
----
3355

skipif mysql # not compatible
query I rowsort label-3075
SELECT 1 + - - 43 * + ( - 78 ) / - COUNT ( * ) AS col2
----
3355

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

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

query I rowsort
SELECT 11 + + + 89
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT DISTINCT MAX( DISTINCT + NULLIF ( 39, 62 ) ) * - 90 AS col2
----
-3510

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT MAX ( DISTINCT + NULLIF ( 39, 62 ) ) * - 90 AS col2
----
-3510

onlyif mysql # aggregate syntax: 
query II rowsort label-3079
SELECT 36 * - 67 col1, + SUM( + - 84 ) + - 9
----
-2412
-93

skipif mysql # not compatible
query II rowsort label-3079
SELECT 36 * - 67 col1, + SUM ( + - 84 ) + - 9
----
-2412
-93

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

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT - COUNT ( * ) * - + CAST ( - COUNT ( * ) AS INTEGER ) / + COUNT ( * )
----
-1

query I rowsort
SELECT ALL 92 col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3082
SELECT 26 * + - COUNT( * ) AS col1, 88 + - 82 AS col0
----
-26
6

skipif mysql # not compatible
query II rowsort label-3082
SELECT 26 * + - COUNT ( * ) AS col1, 88 + - 82 AS col0
----
-26
6

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

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

query I rowsort
SELECT DISTINCT 9 col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT - - COUNT( ALL + COALESCE ( - + 11, + - NULLIF ( 75, ( + 29 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3085
SELECT - - COUNT ( ALL + COALESCE ( - + 11, + - NULLIF ( 75, ( + 29 ) ) ) )
----
1

query I rowsort
SELECT DISTINCT - 58 + + 67
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3087
SELECT DISTINCT + COUNT( * ) + - + 28 DIV + 9
----
-2

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT + COUNT ( * ) + - + 28 / + 9
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3088
SELECT ALL - 14 DIV + 23 + + 48 * + 97 + - 29
----
4627

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL - 14 / + 23 + + 48 * + 97 + - 29
----
4627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3089
SELECT + CASE + + AVG ( - - 99 ) WHEN COUNT( * ) THEN - 90 / + - 13 + + COUNT( * ) * - - 44 * - 78 ELSE CAST( - 64 AS SIGNED ) * - 37 END AS col2
----
2368

skipif mysql # not compatible
query I rowsort label-3089
SELECT + CASE + + AVG ( - - 99 ) WHEN COUNT ( * ) THEN - 90 / + - 13 + + COUNT ( * ) * - - 44 * - 78 ELSE CAST ( - 64 AS INTEGER ) * - 37 END AS col2
----
2368

query I rowsort
SELECT DISTINCT + 23 + 33
----
56

query I rowsort
SELECT ALL - 65 + - + 47
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT + 51 * - COUNT( * ) * + + 78 * 70 * + COUNT( * )
----
-278460

skipif mysql # not compatible
query I rowsort label-3092
SELECT + 51 * - COUNT ( * ) * + + 78 * 70 * + COUNT ( * )
----
-278460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3093
SELECT ALL CAST( NULL AS SIGNED ) * - AVG ( DISTINCT + + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT + + 97 )
----
NULL

query I rowsort
SELECT ALL 47 + - 46 * 83
----
-3771

onlyif mysql # aggregate syntax: 
query II rowsort label-3095
SELECT DISTINCT - + MIN( ALL - 94 ), 32 AS col0
----
94
32

skipif mysql # not compatible
query II rowsort label-3095
SELECT DISTINCT - + MIN ( ALL - 94 ), 32 AS col0
----
94
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT ( - NULLIF ( + CASE 1 WHEN + - 93 THEN NULL ELSE + 34 END, + MIN( ALL - 62 ) + 69 ) ) + 46 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3096
SELECT ( - NULLIF ( + CASE 1 WHEN + - 93 THEN NULL ELSE + 34 END, + MIN ( ALL - 62 ) + 69 ) ) + 46 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL MAX( DISTINCT 98 ) + + - 65
----
33

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL MAX ( DISTINCT 98 ) + + - 65
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT DISTINCT + CASE + 92 WHEN - + 73 + + + ( + 7 ) THEN 33 END + + + CASE + + 75 WHEN + - AVG ( + 3 ) THEN NULL WHEN - COUNT( * ) - + 73 + + 43 + - 72 - 39 / + 6 + - SUM( ALL + 0 ) * 37 THEN COALESCE ( + 64, + - 32 + + COUNT( * ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT + CASE + 92 WHEN - + 73 + + + ( + 7 ) THEN 33 END + + + CASE + + 75 WHEN + - AVG ( + 3 ) THEN NULL WHEN - COUNT ( * ) - + 73 + + 43 + - 72 - 39 / + 6 + - SUM ( ALL + 0 ) * 37 THEN COALESCE ( + 64, + - 32 + + COUNT ( * ) ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3099
SELECT ALL - 49 + - COUNT( * ), + 63 col1
----
-50
63

skipif mysql # not compatible
query II rowsort label-3099
SELECT ALL - 49 + - COUNT ( * ), + 63 col1
----
-50
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT - SUM( 58 ) * + COUNT( DISTINCT - + ( 1 ) ) * ( 54 ) * 95 + - 86 + + - 96 AS col1
----
-297722

skipif mysql # not compatible
query I rowsort label-3100
SELECT - SUM ( 58 ) * + COUNT ( DISTINCT - + ( 1 ) ) * ( 54 ) * 95 + - 86 + + - 96 AS col1
----
-297722

query II rowsort
SELECT 9 * + 41 AS col0, - 86 AS col2
----
369
-86

query II rowsort
SELECT 7 + - NULLIF ( 74, + 64 ) + - 4 * + - 27 AS col1, ( + 69 ) AS col1
----
41
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT ALL + NULLIF ( - ( + MAX( - + 94 ) ), - ( + COUNT( * ) ) * + + ( 63 ) * 67 - - COUNT( * ) ) * + 79
----
7426

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL + NULLIF ( - ( + MAX ( - + 94 ) ), - ( + COUNT ( * ) ) * + + ( 63 ) * 67 - - COUNT ( * ) ) * + 79
----
7426

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

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

query II rowsort
SELECT ALL 73 AS col1, 58
----
73
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3106
SELECT ALL 25 AS col0, SUM( ALL 64 ) AS col2
----
25
64

skipif mysql # not compatible
query II rowsort label-3106
SELECT ALL 25 AS col0, SUM ( ALL 64 ) AS col2
----
25
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3107
SELECT DISTINCT NULLIF ( + 5, - - 38 - SUM( DISTINCT + - CASE 76 WHEN - CAST( - + 85 AS SIGNED ) THEN - + NULLIF ( + 12, - - 98 ) END ) + + AVG ( ALL - 55 ) * - CAST( NULL AS SIGNED ) ) * 64 AS col0
----
320

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT NULLIF ( + 5, - - 38 - SUM ( DISTINCT + - CASE 76 WHEN - CAST ( - + 85 AS INTEGER ) THEN - + NULLIF ( + 12, - - 98 ) END ) + + AVG ( ALL - 55 ) * - CAST ( NULL AS INTEGER ) ) * 64 AS col0
----
320

query II rowsort
SELECT 18, + 72 * + 26 col1
----
18
1872

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3109
SELECT 32 + 7 * + 6 AS col1, CAST( NULL AS SIGNED )
----
74
NULL

skipif mysql # not compatible
query II rowsort label-3109
SELECT 32 + 7 * + 6 AS col1, CAST ( NULL AS INTEGER )
----
74
NULL

query I rowsort
SELECT 71 * + 61 AS col0
----
4331

query I rowsort
SELECT 42 + - - 50 - 75 + - 16 * + 40 * 47 * - 15
----
451217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3112
SELECT 77 - CAST( - - 13 AS DECIMAL ) * CASE + 72 WHEN - AVG ( + - 88 ) THEN 80 ELSE NULL END AS col2, CASE - ( 82 ) WHEN + 55 * - + 23 + + COUNT( * ) THEN + - COUNT( * ) WHEN CASE + COUNT( * ) WHEN + + 9 THEN COUNT( * ) + + CAST( - - 66 AS SIGNED ) END THEN 49 * - 37 * COALESCE ( 84, + 49 * + MAX( ALL + - 61 ), - 48 ) ELSE NULL END * + 8 * - COUNT( * ) + + COUNT( * ) + - 81 + - 66 + - 4 / + 2 * + 55 col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3112
SELECT 77 - CAST ( - - 13 AS REAL ) * CASE + 72 WHEN - AVG ( + - 88 ) THEN 80 ELSE NULL END AS col2, CASE - ( 82 ) WHEN + 55 * - + 23 + + COUNT ( * ) THEN + - COUNT ( * ) WHEN CASE + COUNT ( * ) WHEN + + 9 THEN COUNT ( * ) + + CAST ( - - 66 AS INTEGER ) END THEN 49 * - 37 * COALESCE ( 84, + 49 * + MAX ( ALL + - 61 ), - 48 ) ELSE NULL END * + 8 * - COUNT ( * ) + + COUNT ( * ) + - 81 + - 66 + - 4 / + 2 * + 55 col2
----
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-3113
SELECT 51 / - COUNT ( * )
----
-51

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

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL MAX ( 51 )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT 61 * 25 * CAST( - 50 AS SIGNED ) * - 90
----
6862500

skipif mysql # not compatible
query I rowsort label-3115
SELECT 61 * 25 * CAST ( - 50 AS INTEGER ) * - 90
----
6862500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3116
SELECT ALL + 78 + + 2 * + COUNT( * ) + + - 14 - + + 45 + 4 + - + 54 - + - NULLIF ( - - 87, 35 * + 35 - - 93 + - 70 ) * + COUNT( * ) + - COUNT( DISTINCT - CAST( - 43 AS SIGNED ) )
----
57

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL + 78 + + 2 * + COUNT ( * ) + + - 14 - + + 45 + 4 + - + 54 - + - NULLIF ( - - 87, 35 * + 35 - - 93 + - 70 ) * + COUNT ( * ) + - COUNT ( DISTINCT - CAST ( - 43 AS INTEGER ) )
----
57

query II rowsort
SELECT DISTINCT - 47 AS col2, 61
----
-47
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL - 54 + 83 + + MAX( DISTINCT 19 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL - 54 + 83 + + MAX ( DISTINCT 19 ) AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3119
SELECT + 99 + COUNT( * ) * - ( + 47 ) + - CAST( + - 55 AS SIGNED ) AS col2, 12 * + + COUNT( * ) AS col1
----
107
12

skipif mysql # not compatible
query II rowsort label-3119
SELECT + 99 + COUNT ( * ) * - ( + 47 ) + - CAST ( + - 55 AS INTEGER ) AS col2, 12 * + + COUNT ( * ) AS col1
----
107
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT - + CASE - + 52 WHEN - ( - - COUNT( * ) ) * - + 5 THEN NULL ELSE + + MAX( - 35 ) + - COUNT( * ) END AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3120
SELECT - + CASE - + 52 WHEN - ( - - COUNT ( * ) ) * - + 5 THEN NULL ELSE + + MAX ( - 35 ) + - COUNT ( * ) END AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3121
SELECT CAST( + 79 AS SIGNED ) + - MIN( + - 16 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-3121
SELECT CAST ( + 79 AS INTEGER ) + - MIN ( + - 16 ) AS col1
----
95

query I rowsort
SELECT ALL + 76 * + ( + ( + 32 ) ) + - 17
----
2415

onlyif mysql # aggregate syntax: 
query II rowsort label-3123
SELECT + + 29 AS col0, - COUNT( * ) AS col2
----
29
-1

skipif mysql # not compatible
query II rowsort label-3123
SELECT + + 29 AS col0, - COUNT ( * ) AS col2
----
29
-1

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

skipif mysql # not compatible
query II rowsort label-3124
SELECT COUNT ( * ) AS col2, 84 AS col1
----
1
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3125
SELECT ALL + 47 * - + SUM( - 44 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL + 47 * - + SUM ( - 44 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + 22 AS col1, 43
----
22
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT ALL - COUNT( * ) * - - 97 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL - COUNT ( * ) * - - 97 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ALL COUNT( * ) * - 48 * - 85 AS col2
----
4080

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL COUNT ( * ) * - 48 * - 85 AS col2
----
4080

query I rowsort
SELECT + 41 * + 44 AS col1
----
1804

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3131
SELECT DISTINCT CASE + CAST( + 67 AS SIGNED ) WHEN - - COUNT( * ) + ( + 38 ) + + 30 - MIN( DISTINCT - 40 ) / + 78 THEN NULL WHEN - MAX( - 16 ) THEN + - 0 + + CAST( - 64 AS SIGNED ) / + COUNT( * ) * - ( - + 17 ) + - - 50 WHEN - 49 * - CAST( + + 58 AS DECIMAL ) + + - 11 + + 65 THEN - 44 * + - 72 END * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT CASE + CAST ( + 67 AS INTEGER ) WHEN - - COUNT ( * ) + ( + 38 ) + + 30 - MIN ( DISTINCT - 40 ) / + 78 THEN NULL WHEN - MAX ( - 16 ) THEN + - 0 + + CAST ( - 64 AS INTEGER ) / + COUNT ( * ) * - ( - + 17 ) + - - 50 WHEN - 49 * - CAST ( + + 58 AS REAL ) + + - 11 + + 65 THEN - 44 * + - 72 END * 85
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3132
SELECT + 34 + COUNT( * ), + 17 AS col1
----
35
17

skipif mysql # not compatible
query II rowsort label-3132
SELECT + 34 + COUNT ( * ), + 17 AS col1
----
35
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3133
SELECT - CASE - COUNT( * ) WHEN - COALESCE ( + ( ( CASE - 43 WHEN - + NULLIF ( - 1, + + 93 ) * - - 21 + + - 50 THEN 82 WHEN + COALESCE ( + + 29, 72, CASE + 92 WHEN + 48 + + 90 THEN AVG ( ( - - 33 ) ) / + 22 * 87 + 41 / + - 62 - - - 10 WHEN - 60 * + + COALESCE ( + 2, 70 + + 18, - 8 + - 78 * 63 + ( + + ( + 46 ) ), COUNT( * ) * - 99 ) THEN NULL END ) THEN + + COUNT( * ) WHEN - 99 THEN NULL END ) ), CAST( NULL AS SIGNED ) ) + + - 96 + - 38 - - - 58 + 76 + 51 + CAST( NULL AS SIGNED ) * + 54 * + AVG ( ALL + CAST( 56 AS SIGNED ) ) THEN - 26 / 93 END * + 26 - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT - CASE - COUNT ( * ) WHEN - COALESCE ( + ( ( CASE - 43 WHEN - + NULLIF ( - 1, + + 93 ) * - - 21 + + - 50 THEN 82 WHEN + COALESCE ( + + 29, 72, CASE + 92 WHEN + 48 + + 90 THEN AVG ( ( - - 33 ) ) / + 22 * 87 + 41 / + - 62 - - - 10 WHEN - 60 * + + COALESCE ( + 2, 70 + + 18, - 8 + - 78 * 63 + ( + + ( + 46 ) ), COUNT ( * ) * - 99 ) THEN NULL END ) THEN + + COUNT ( * ) WHEN - 99 THEN NULL END ) ), CAST ( NULL AS INTEGER ) ) + + - 96 + - 38 - - - 58 + 76 + 51 + CAST ( NULL AS INTEGER ) * + 54 * + AVG ( ALL + CAST ( 56 AS INTEGER ) ) THEN - 26 / 93 END * + 26 - 12 AS col0
----
NULL

query I rowsort
SELECT + 5 * + + CASE 64 WHEN 16 THEN NULL WHEN 98 THEN - 48 * + + 32 * + 11 END / + - 60 - - 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3135
SELECT + NULLIF ( - 22, + + NULLIF ( + + 90, COALESCE ( CAST( + 29 AS SIGNED ), - AVG ( ALL + + 21 ) * + COALESCE ( - 89, + MIN( + 35 ) * - 62 ), COUNT( - - 26 ) ) + + + ( 78 ) / 33 * + CASE - COUNT( * ) WHEN - AVG ( + 97 ) + + - 16 THEN NULL ELSE + 33 / + - COALESCE ( + + 10, + MAX( - - 99 ) + + 54 + - + 14 * 13 + 40 + 92 ) + - SUM( - 83 ) * - 84 END * + CASE WHEN NOT NULL NOT BETWEEN ( COUNT( * ) ) AND ( NULLIF ( + 42, - - 23 ) * 15 ) THEN NULL WHEN NOT + COUNT( * ) * - + ( 52 ) > NULL THEN - 21 ELSE 55 END * + CAST( NULL AS DECIMAL ) ) ) * 40
----
-880

skipif mysql # not compatible
query I rowsort label-3135
SELECT + NULLIF ( - 22, + + NULLIF ( + + 90, COALESCE ( CAST ( + 29 AS INTEGER ), - AVG ( ALL + + 21 ) * + COALESCE ( - 89, + MIN ( + 35 ) * - 62 ), COUNT ( - - 26 ) ) + + + ( 78 ) / 33 * + CASE - COUNT ( * ) WHEN - AVG ( + 97 ) + + - 16 THEN NULL ELSE + 33 / + - COALESCE ( + + 10, + MAX ( - - 99 ) + + 54 + - + 14 * 13 + 40 + 92 ) + - SUM ( - 83 ) * - 84 END * + CASE WHEN NOT NULL NOT BETWEEN ( COUNT ( * ) ) AND ( NULLIF ( + 42, - - 23 ) * 15 ) THEN NULL WHEN NOT + COUNT ( * ) * - + ( 52 ) > NULL THEN - 21 ELSE 55 END * + CAST ( NULL AS REAL ) ) ) * 40
----
-880

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT + MIN( + 78 ) * 16 * - COUNT( + 40 )
----
-1248

skipif mysql # not compatible
query I rowsort label-3137
SELECT + MIN ( + 78 ) * 16 * - COUNT ( + 40 )
----
-1248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3138
SELECT - CAST( + 49 AS SIGNED ) + + + 11 + - 33
----
-71

skipif mysql # not compatible
query I rowsort label-3138
SELECT - CAST ( + 49 AS INTEGER ) + + + 11 + - 33
----
-71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL MIN( DISTINCT + 8 ) + 77
----
85

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL MIN ( DISTINCT + 8 ) + 77
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3141
SELECT ALL 15 + + + COUNT( * ) AS col2, 49
----
16
49

skipif mysql # not compatible
query II rowsort label-3141
SELECT ALL 15 + + + COUNT ( * ) AS col2, 49
----
16
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL - 47 + + + 60 * + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL - 47 + + + 60 * + COUNT ( * )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3144
SELECT - 44 * 13 * - 94 DIV + COUNT( * )
----
53768

skipif mysql # not compatible
query I rowsort label-3144
SELECT - 44 * 13 * - 94 / + COUNT ( * )
----
53768

onlyif mysql # aggregate syntax: 
query II rowsort label-3145
SELECT DISTINCT 50 * - 74, - COUNT( * ) * - + ( - 41 ) AS col2
----
-3700
-41

skipif mysql # not compatible
query II rowsort label-3145
SELECT DISTINCT 50 * - 74, - COUNT ( * ) * - + ( - 41 ) AS col2
----
-3700
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3146
SELECT - - COUNT( * ) + + + ( - - 84 ) + 9 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT - - COUNT ( * ) + + + ( - - 84 ) + 9 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 49 AS col0
----
49

query I rowsort
SELECT ALL - - ( - - 10 ) + 4
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT + 49 - - COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-3149
SELECT + 49 - - COUNT ( * ) AS col0
----
50

query I rowsort
SELECT - - 41
----
41

query I rowsort
SELECT - 52 * + ( + + 75 ) AS col1
----
-3900

query I rowsort
SELECT + NULLIF ( + 60, + 43 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3153
SELECT - CAST( - ( 36 ) AS SIGNED ) + - - CASE + + 96 WHEN + COUNT( * ) + 27 * + COUNT( * ) THEN + 9 WHEN - COUNT( * ) + - - CAST( NULL AS SIGNED ) * SUM( ALL + 80 ) * + - COUNT( ALL 19 ) THEN - - COUNT( * ) - + 85 ELSE NULL END / + + 85 + + + MAX( + 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3153
SELECT - CAST ( - ( 36 ) AS INTEGER ) + - - CASE + + 96 WHEN + COUNT ( * ) + 27 * + COUNT ( * ) THEN + 9 WHEN - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * SUM ( ALL + 80 ) * + - COUNT ( ALL 19 ) THEN - - COUNT ( * ) - + 85 ELSE NULL END / + + 85 + + + MAX ( + 75 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3154
SELECT + COUNT( * ) * - 22 - - 64 * + 55 * CAST( NULL AS SIGNED ) * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT + COUNT ( * ) * - 22 - - 64 * + 55 * CAST ( NULL AS INTEGER ) * + 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3155
SELECT 58 * 20 + - ( COUNT( * ) ) - CASE 65 WHEN + + ( + - 5 ) THEN + + ( COUNT( * ) ) * - CAST( 53 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT 58 * 20 + - ( COUNT ( * ) ) - CASE 65 WHEN + + ( + - 5 ) THEN + + ( COUNT ( * ) ) * - CAST ( 53 AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3156
SELECT ALL - 22 * + + CAST( + + 96 AS SIGNED )
----
-2112

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - 22 * + + CAST ( + + 96 AS INTEGER )
----
-2112

query I rowsort
SELECT DISTINCT + 75 col2
----
75

query I rowsort
SELECT + 93 + 21 AS col0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT - 5 DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3159
SELECT - 5 / - 65 AS col2
----
0

query I rowsort
SELECT + 11 * ( - 92 )
----
-1012

query I rowsort
SELECT - 75 + - + 53 AS col0
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3162
SELECT DISTINCT + ( + + ( - 14 ) ) * - 70 DIV + NULLIF ( - 66, 44 ) + + CASE - 61 WHEN - + 61 DIV + MAX( - - 35 ) * + + 43 * - 62 * + - 54 - - COALESCE ( + COUNT( * ), - 82 ) + - + 9 * 43 + + 25 THEN NULL ELSE - + COALESCE ( - SUM( + - 5 ), - + MAX( ALL + 21 ) ) END * - COALESCE ( - 49, - ( - MAX( - 76 ) ) ) AS col0
----
-259

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT + ( + + ( - 14 ) ) * - 70 / + NULLIF ( - 66, 44 ) + + CASE - 61 WHEN - + 61 / + MAX ( - - 35 ) * + + 43 * - 62 * + - 54 - - COALESCE ( + COUNT ( * ), - 82 ) + - + 9 * 43 + + 25 THEN NULL ELSE - + COALESCE ( - SUM ( + - 5 ), - + MAX ( ALL + 21 ) ) END * - COALESCE ( - 49, - ( - MAX ( - 76 ) ) ) AS col0
----
-259

onlyif mysql # aggregate syntax: 
query II rowsort label-3163
SELECT ALL 45 * + - 67 * 56 AS col0, + CASE + COUNT( * ) WHEN - - 18 * - - ( - - 7 ) THEN 46 * - 90 END / - ( + + 54 )
----
-168840
NULL

skipif mysql # not compatible
query II rowsort label-3163
SELECT ALL 45 * + - 67 * 56 AS col0, + CASE + COUNT ( * ) WHEN - - 18 * - - ( - - 7 ) THEN 46 * - 90 END / - ( + + 54 )
----
-168840
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3164
SELECT DISTINCT NULLIF ( - + ( - + 93 ), - - 83 ) * 62 * - + 0 + - COUNT( DISTINCT + 0 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT NULLIF ( - + ( - + 93 ), - - 83 ) * 62 * - + 0 + - COUNT ( DISTINCT + 0 ) - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + ( + 18 ) * 22 * - 25
----
-9900

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT 68 * - 74 + + 97 - - COUNT( * ) + 45 - - - 96 AS col2
----
-4985

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT 68 * - 74 + + 97 - - COUNT ( * ) + 45 - - - 96 AS col2
----
-4985

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT MIN( DISTINCT + 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3167
SELECT MIN ( DISTINCT + 92 ) AS col0
----
92

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

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

query I rowsort
SELECT 67 + + 47
----
114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3170
SELECT CASE 35 WHEN 42 THEN NULL WHEN - CAST( NULL AS DECIMAL ) THEN NULL ELSE - COUNT( * ) END + - 44 * - 96
----
4223

skipif mysql # not compatible
query I rowsort label-3170
SELECT CASE 35 WHEN 42 THEN NULL WHEN - CAST ( NULL AS REAL ) THEN NULL ELSE - COUNT ( * ) END + - 44 * - 96
----
4223

query I rowsort
SELECT ALL 67 - 66
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3172
SELECT ALL 31 * COALESCE ( 12 * 51, - COALESCE ( 16, COUNT( * ) * 8 ) DIV 44 - 8 DIV + 71 )
----
18972

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL 31 * COALESCE ( 12 * 51, - COALESCE ( 16, COUNT ( * ) * 8 ) / 44 - 8 / + 71 )
----
18972

query I rowsort
SELECT ALL - 16 - 32 AS col1
----
-48

query I rowsort
SELECT 92 * + 89 AS col0
----
8188

onlyif mysql # DIV for integer division: 
query I rowsort label-3175
SELECT DISTINCT 61 DIV 33
----
1

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT 61 / 33
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT CAST( NULL AS SIGNED ) + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT CAST ( NULL AS INTEGER ) + 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3177
SELECT COUNT( * ) * + CAST( 28 AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-3177
SELECT COUNT ( * ) * + CAST ( 28 AS INTEGER )
----
28

query I rowsort
SELECT 11 + 97
----
108

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3180
SELECT 21 + 61 DIV 35 col0
----
22

skipif mysql # not compatible
query I rowsort label-3180
SELECT 21 + 61 / 35 col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3181
SELECT CAST( - COUNT( DISTINCT 31 ) AS SIGNED ) * + 74
----
-74

skipif mysql # not compatible
query I rowsort label-3181
SELECT CAST ( - COUNT ( DISTINCT 31 ) AS INTEGER ) * + 74
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3182
SELECT MIN( ALL - CAST( NULL AS SIGNED ) ) * - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT MIN ( ALL - CAST ( NULL AS INTEGER ) ) * - 73 AS col2
----
NULL

query I rowsort
SELECT 30 * - 74
----
-2220

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT COUNT( * ) * + 65 + + 43 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-3184
SELECT COUNT ( * ) * + 65 + + 43 AS col1
----
108

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

query I rowsort
SELECT ALL - ( - 31 )
----
31

query I rowsort
SELECT 17 * + 38 AS col0
----
646

query I rowsort
SELECT 20 * 42 AS col2
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL + COUNT( ALL 53 ) * 8
----
8

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + COUNT ( ALL 53 ) * 8
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3190
SELECT ALL COUNT( * ) DIV - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL COUNT ( * ) / - 69 AS col1
----
0

query I rowsort
SELECT ALL - 90 * 43
----
-3870

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3192
SELECT DISTINCT - COALESCE ( - 38, 38 + 40 * 43, - 58 + + COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) * - 6 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT - COALESCE ( - 38, 38 + 40 * 43, - 58 + + COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) * - 6 ) AS col1
----
38

query I rowsort
SELECT ALL - 82 * 52
----
-4264

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT DISTINCT - COUNT( * ) + 15 * - 25
----
-376

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT - COUNT ( * ) + 15 * - 25
----
-376

query I rowsort
SELECT + 59 * 38 + 62
----
2304

query I rowsort
SELECT 55 * - 22
----
-1210

query I rowsort
SELECT ALL - ( + 80 ) + + 26 AS col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3198
SELECT DISTINCT - CASE ( - 28 ) WHEN - CAST( NULL AS DECIMAL ) THEN - COUNT( * ) ELSE COALESCE ( + 42, - 89 * 12 ) END AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT - CASE ( - 28 ) WHEN - CAST ( NULL AS REAL ) THEN - COUNT ( * ) ELSE COALESCE ( + 42, - 89 * 12 ) END AS col2
----
-42

query I rowsort
SELECT ALL - ( 73 )
----
-73

query I rowsort
SELECT ALL - 64 + - 1 col0
----
-65

query I rowsort
SELECT 45 - - 19
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT ALL - SUM( ALL 70 ) + 56 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL - SUM ( ALL 70 ) + 56 AS col0
----
-14

query I rowsort
SELECT ALL + 92 + 98
----
190

query I rowsort
SELECT ALL - ( 81 )
----
-81

query I rowsort
SELECT ALL 98 + + NULLIF ( 38 + 30 * 85, 77 * 72 )
----
2686

query I rowsort
SELECT 71 * 83
----
5893

query I rowsort
SELECT ALL 15 * 12 AS col1
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-3208
SELECT 77 DIV COALESCE ( 95 DIV + 41, 59 + 33 )
----
38

skipif mysql # not compatible
query I rowsort label-3208
SELECT 77 / COALESCE ( 95 / + 41, 59 + 33 )
----
38

query I rowsort
SELECT DISTINCT - 47 + - 28 AS col0
----
-75

query I rowsort
SELECT ALL + 29 - - 39 * - 23 AS col0
----
-868

query I rowsort
SELECT 61 * + 4
----
244

query I rowsort
SELECT 64 col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT MAX( + 65 ) + MIN( + 11 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3213
SELECT MAX ( + 65 ) + MIN ( + 11 ) AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3214
SELECT CASE WHEN NOT ( - 54 ) IS NULL THEN - 36 + ( + 66 ) ELSE + CAST( ( + 50 ) AS SIGNED ) + + 94 * 69 END
----
30

skipif mysql # not compatible
query I rowsort label-3214
SELECT CASE WHEN NOT ( - 54 ) IS NULL THEN - 36 + ( + 66 ) ELSE + CAST ( ( + 50 ) AS INTEGER ) + + 94 * 69 END
----
30

query I rowsort
SELECT - 45 * 61
----
-2745

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT ALL MAX( DISTINCT + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL MAX ( DISTINCT + 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT ALL - 46 * COUNT( DISTINCT 62 )
----
-46

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL - 46 * COUNT ( DISTINCT 62 )
----
-46

query I rowsort
SELECT DISTINCT 2 - - 65 * 99
----
6437

query I rowsort
SELECT - 11 + 10
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT ALL CASE - COUNT( * ) WHEN 35 * - NULLIF ( - 65 * COUNT( + 95 ), 93 * - 2 ) THEN - 76 + - 13 * - 5 WHEN 72 + ( 36 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL CASE - COUNT ( * ) WHEN 35 * - NULLIF ( - 65 * COUNT ( + 95 ), 93 * - 2 ) THEN - 76 + - 13 * - 5 WHEN 72 + ( 36 ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 25 * - 63 col2
----
1575

query I rowsort
SELECT - + 96 AS col1
----
-96

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

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

query I rowsort
SELECT ( 34 )
----
34

query I rowsort
SELECT 89 * 34
----
3026

query I rowsort
SELECT DISTINCT - 80 * + 97
----
-7760

query I rowsort
SELECT 68 * + 14 AS col2
----
952

query I rowsort
SELECT ALL - + 3 * 30 + - 76 AS col0
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT COUNT( ALL + 10 ) - + 30 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-3229
SELECT COUNT ( ALL + 10 ) - + 30 AS col1
----
-29

query I rowsort
SELECT DISTINCT - + 37
----
-37

query I rowsort
SELECT ALL - 43 * + + ( 33 ) * - 56 + 24
----
79488

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3232
SELECT + ( - 89 ) DIV + CAST( + 3 * 84 AS SIGNED ) + 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3232
SELECT + ( - 89 ) / + CAST ( + 3 * 84 AS INTEGER ) + 10 AS col0
----
10

query I rowsort
SELECT COALESCE ( - 86, - 40, 0 ) + - 65
----
-151

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

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT - COUNT ( ALL - 16 ) AS col1
----
-1

query I rowsort
SELECT 36 + - 98 * 28 AS col2
----
-2708

query I rowsort
SELECT ALL 80 * - - 33 * - 6 + + 91 AS col1
----
-15749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT ALL - 16 * - 33 + CAST( NULL AS SIGNED ) / + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - 16 * - 33 + CAST ( NULL AS INTEGER ) / + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL 23 * - + CASE ( - 21 ) WHEN COUNT( * ) * 5 + - 94 * + 69 THEN - 38 WHEN + 24 * + COUNT( * ) + + 87 THEN NULL END * 23 + + 79 * + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL 23 * - + CASE ( - 21 ) WHEN COUNT ( * ) * 5 + - 94 * + 69 THEN - 38 WHEN + 24 * + COUNT ( * ) + + 87 THEN NULL END * 23 + + 79 * + 9 AS col1
----
NULL

query I rowsort
SELECT ALL 92 + 19
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT 71 + COUNT( * ) + + 73
----
145

skipif mysql # not compatible
query I rowsort label-3240
SELECT 71 + COUNT ( * ) + + 73
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3241
SELECT CAST( NULL AS SIGNED ) + - 8 * 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3241
SELECT CAST ( NULL AS INTEGER ) + - 8 * 89 AS col0
----
NULL

query I rowsort
SELECT + 54 * - 33 + + 94 * 90
----
6678

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT COUNT( DISTINCT 35 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3243
SELECT COUNT ( DISTINCT 35 ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3244
SELECT ( 8 ) * 64 + + 2 DIV 43
----
512

skipif mysql # not compatible
query I rowsort label-3244
SELECT ( 8 ) * 64 + + 2 / 43
----
512

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

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

query I rowsort
SELECT - 50 * + - 25 AS col2
----
1250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3247
SELECT DISTINCT + - 24 * - - 19 DIV + COUNT( * ) col2
----
-456

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT + - 24 * - - 19 / + COUNT ( * ) col2
----
-456

query I rowsort
SELECT ALL 35 col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3249
SELECT - 43 * + ( 57 ) DIV + COALESCE ( - 90 * 43, 50 - + 57 DIV - 55 ) - + 70
----
-70

skipif mysql # not compatible
query I rowsort label-3249
SELECT - 43 * + ( 57 ) / + COALESCE ( - 90 * 43, 50 - + 57 / - 55 ) - + 70
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT - + MIN( - + 74 ) + 59
----
133

skipif mysql # not compatible
query I rowsort label-3250
SELECT - + MIN ( - + 74 ) + 59
----
133

query I rowsort
SELECT - - 89 + - 61 AS col2
----
28

query I rowsort
SELECT ALL COALESCE ( + 68, 94 + + 48 )
----
68

query I rowsort
SELECT - + 20 * + + 5
----
-100

query I rowsort
SELECT - 18 + - CASE 90 WHEN 89 THEN NULL ELSE ( - 42 ) END + 19
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3255
SELECT DISTINCT + 92 / CASE + 60 WHEN + 45 / - 53 THEN - 22 * + 66 WHEN + 34 THEN + ( + CAST( NULL AS SIGNED ) ) WHEN 82 THEN - 47 - - 86 WHEN + 40 * COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT + 92 / CASE + 60 WHEN + 45 / - 53 THEN - 22 * + 66 WHEN + 34 THEN + ( + CAST ( NULL AS INTEGER ) ) WHEN 82 THEN - 47 - - 86 WHEN + 40 * COUNT ( * ) THEN NULL END AS col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT + + 65 DIV 55 + 15 col1
----
16

skipif mysql # not compatible
query I rowsort label-3257
SELECT + + 65 / 55 + 15 col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL 85 * COUNT( * ) + + 26 col0
----
111

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL 85 * COUNT ( * ) + + 26 col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT DISTINCT + 32 * - SUM( + 20 ) AS col1
----
-640

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT + 32 * - SUM ( + 20 ) AS col1
----
-640

query I rowsort
SELECT DISTINCT - 51 + + NULLIF ( - 66, ( 92 ) + 95 ) * - 17 AS col1
----
1071

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT + + 13 + 23 + - CAST( + 22 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-3262
SELECT + + 13 + 23 + - CAST ( + 22 AS INTEGER )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL + COUNT( * ) + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL + COUNT ( * ) + - 41
----
-40

query I rowsort
SELECT + 70 + + 62 * + - 73 AS col0
----
-4456

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3266
SELECT 78, - 36 DIV + - ( 56 ) + 76 AS col0
----
78
76

skipif mysql # not compatible
query II rowsort label-3266
SELECT 78, - 36 / + - ( 56 ) + 76 AS col0
----
78
76

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3268
SELECT ALL COUNT( * ) DIV - - ( - 94 ) + 21
----
21

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL COUNT ( * ) / - - ( - 94 ) + 21
----
21

query I rowsort
SELECT + 58 * 23 * + 60 AS col1
----
80040

query I rowsort
SELECT + ( - 48 ) * 32 * + 52 + + 64 * 10
----
-79232

query II rowsort
SELECT ALL + 16, - 58 AS col0
----
16
-58

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

query I rowsort
SELECT DISTINCT 40 * + 53
----
2120

query I rowsort
SELECT DISTINCT 13 * + 81 - + - ( + 43 )
----
1096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3275
SELECT ALL 88 * + CAST( + 29 AS SIGNED ) - - COUNT( + 68 ) col1
----
2553

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL 88 * + CAST ( + 29 AS INTEGER ) - - COUNT ( + 68 ) col1
----
2553

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

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

query I rowsort
SELECT + COALESCE ( + 93, - - ( + 81 ) )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3278
SELECT NULLIF ( - 0, + COUNT( + 40 ) DIV 85 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT NULLIF ( - 0, + COUNT ( + 40 ) / 85 ) AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3280
SELECT - 50 DIV - 35
----
1

skipif mysql # not compatible
query I rowsort label-3280
SELECT - 50 / - 35
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT + CAST( - + 35 AS SIGNED ) * + 43 - + 4
----
-1509

skipif mysql # not compatible
query I rowsort label-3281
SELECT + CAST ( - + 35 AS INTEGER ) * + 43 - + 4
----
-1509

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3282
SELECT DISTINCT - SUM( - + 17 ) DIV - 49 + 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT - SUM ( - + 17 ) / - 49 + 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT ALL + MAX( 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL + MAX ( 5 ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3284
SELECT ALL + 21, 44 * + 18 + 18 * + CAST( COUNT( * ) * - CAST( 27 / + 58 AS SIGNED ) AS SIGNED ) AS col1
----
21
792

skipif mysql # not compatible
query II rowsort label-3284
SELECT ALL + 21, 44 * + 18 + 18 * + CAST ( COUNT ( * ) * - CAST ( 27 / + 58 AS INTEGER ) AS INTEGER ) AS col1
----
21
792

onlyif mysql # DIV for integer division: 
query I rowsort label-3285
SELECT + - 10 DIV 5 * - 45
----
90

skipif mysql # not compatible
query I rowsort label-3285
SELECT + - 10 / 5 * - 45
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL - ( + MAX( + 72 ) ) * 74
----
-5328

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL - ( + MAX ( + 72 ) ) * 74
----
-5328

query II rowsort
SELECT + 86 AS col0, + 87 * - - 46
----
86
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT 60 * - + MAX( - 40 ) - 94
----
2306

skipif mysql # not compatible
query I rowsort label-3288
SELECT 60 * - + MAX ( - 40 ) - 94
----
2306

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

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

query II rowsort
SELECT - + 34 AS col1, 18 AS col2
----
-34
18

query II rowsort
SELECT - + 36, - 90 * - 62 col1
----
-36
5580

query I rowsort
SELECT - ( + 60 ) * - + 65 AS col2
----
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT ALL + - COUNT( * ) * + 93 col0
----
-93

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL + - COUNT ( * ) * + 93 col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT 99 * + - COALESCE ( 55, + ( COUNT( * ) ), + 85 - - 35 * - COUNT( * ) ) + - 96 AS col1
----
-5541

skipif mysql # not compatible
query I rowsort label-3294
SELECT 99 * + - COALESCE ( 55, + ( COUNT ( * ) ), + 85 - - 35 * - COUNT ( * ) ) + - 96 AS col1
----
-5541

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

query I rowsort
SELECT - - 8 * - 43
----
-344

query I rowsort
SELECT ALL - 2 + - 92 col1
----
-94

query II rowsort
SELECT 60 AS col1, - 38 AS col1
----
60
-38

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

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

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

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

query I rowsort
SELECT + - 47 + + 76 + 76 + 70 * - 26
----
-1715

query I rowsort
SELECT ALL - ( - - 20 ) AS col1
----
-20

query I rowsort
SELECT - - 28 col0
----
28

query I rowsort
SELECT - 32 + - - 39 AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3305
SELECT - 33, - COUNT( * ) + CASE - ( + 0 ) WHEN 48 + ( 52 ) THEN 31 * - COALESCE ( 97, 25, 63 ) WHEN 9 THEN 52 / + 30 END AS col0
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-3305
SELECT - 33, - COUNT ( * ) + CASE - ( + 0 ) WHEN 48 + ( 52 ) THEN 31 * - COALESCE ( 97, 25, 63 ) WHEN 9 THEN 52 / + 30 END AS col0
----
-33
NULL

query I rowsort
SELECT ALL - - ( + - 94 ) + + - 79 AS col1
----
-173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3307
SELECT + 64 * + - COALESCE ( COUNT( * ), + + 0 DIV 66 + 1 * 96 )
----
-64

skipif mysql # not compatible
query I rowsort label-3307
SELECT + 64 * + - COALESCE ( COUNT ( * ), + + 0 / 66 + 1 * 96 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT ALL CASE 40 WHEN 41 / - - MIN( ALL + 42 ) + + 16 * + 78 THEN NULL ELSE NULLIF ( COUNT( * ), - 2 ) END
----
1

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL CASE 40 WHEN 41 / - - MIN ( ALL + 42 ) + + 16 * + 78 THEN NULL ELSE NULLIF ( COUNT ( * ), - 2 ) END
----
1

query I rowsort
SELECT ALL + 60 + + 50 + - - 78 AS col2
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT - MIN( ALL - + NULLIF ( 27, 5 ) ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3310
SELECT - MIN ( ALL - + NULLIF ( 27, 5 ) ) AS col2
----
27

query II rowsort
SELECT DISTINCT ( + + 44 ) AS col0, + 35
----
44
35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3313
SELECT - 28 * + - CAST( - 39 AS SIGNED )
----
-1092

skipif mysql # not compatible
query I rowsort label-3313
SELECT - 28 * + - CAST ( - 39 AS INTEGER )
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT ( + - 20 ) * - + SUM( ALL - 62 ) + + 25 * 16 AS col0
----
-840

skipif mysql # not compatible
query I rowsort label-3314
SELECT ( + - 20 ) * - + SUM ( ALL - 62 ) + + 25 * 16 AS col0
----
-840

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT SUM( ALL + - 62 ) + + 89 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3316
SELECT SUM ( ALL + - 62 ) + + 89 AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3317
SELECT COUNT( * ) * COUNT( * ) + 74 DIV - - 65 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3317
SELECT COUNT ( * ) * COUNT ( * ) + 74 / - - 65 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT + 46 * - + 52 + + CASE + MAX( - 27 ) WHEN + 44 + MIN( DISTINCT - 93 ) THEN NULL WHEN 84 - + 54 * 72 THEN - 26 ELSE NULL END / 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT + 46 * - + 52 + + CASE + MAX ( - 27 ) WHEN + 44 + MIN ( DISTINCT - 93 ) THEN NULL WHEN 84 - + 54 * 72 THEN - 26 ELSE NULL END / 74 AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( - - 72, + - 98, - 98 * 51 ) * 87 AS col2
----
6264

query I rowsort
SELECT ALL - NULLIF ( - + 29, + 72 * 31 )
----
29

query I rowsort
SELECT 5 + - - 52 AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3322
SELECT 56 * + 55 + CAST( + ( 37 ) AS SIGNED ) - - 21 DIV 84 AS col1
----
3117

skipif mysql # not compatible
query I rowsort label-3322
SELECT 56 * + 55 + CAST ( + ( 37 ) AS INTEGER ) - - 21 / 84 AS col1
----
3117

query I rowsort
SELECT DISTINCT + 25 * + 71
----
1775

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL - 67 + - + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - 67 + - + COUNT ( * )
----
-68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT DISTINCT 79 + + - NULLIF ( - + COUNT( 10 ), 93 * 46 ) + + 35 * 92
----
3300

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT 79 + + - NULLIF ( - + COUNT ( 10 ), 93 * 46 ) + + 35 * 92
----
3300

onlyif mysql # DIV for integer division: 
query I rowsort label-3327
SELECT ALL + NULLIF ( 30, - - 50 + - 38 ) DIV ( - 63 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL + NULLIF ( 30, - - 50 + - 38 ) / ( - 63 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL + ( + 21 ) + COUNT( * ) - 91 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + ( + 21 ) + COUNT ( * ) - 91 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT DISTINCT + 73 + CASE - 50 WHEN + 62 * 33 THEN - 9 WHEN COUNT( * ) - - 52 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT + 73 + CASE - 50 WHEN + 62 * 33 THEN - 9 WHEN COUNT ( * ) - - 52 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + CASE + 60 WHEN + 76 THEN - 46 + - 91 WHEN - NULLIF ( + 99, - 94 ) THEN + AVG ( + 99 ) END + + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT DISTINCT COUNT( * ) + - 97 + - - 73 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT COUNT ( * ) + - 97 + - - 73 AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3332
SELECT ALL COALESCE ( + COUNT( DISTINCT 13 ), - 46 + 1, CAST( NULL AS SIGNED ) ) DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL COALESCE ( + COUNT ( DISTINCT 13 ), - 46 + 1, CAST ( NULL AS INTEGER ) ) / + 94 AS col0
----
0

query I rowsort
SELECT - CASE + AVG ( ALL + - 69 ) WHEN + 3 * - 91 THEN 37 END + - 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3334
SELECT 97 + - CASE WHEN NULL = NULL THEN + 23 ELSE 16 + - 78 END DIV COUNT( * )
----
159

skipif mysql # not compatible
query I rowsort label-3334
SELECT 97 + - CASE WHEN NULL = NULL THEN + 23 ELSE 16 + - 78 END / COUNT ( * )
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3335
SELECT ALL + 91 + + 87 - - - ( + CAST( 21 AS SIGNED ) )
----
157

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL + 91 + + 87 - - - ( + CAST ( 21 AS INTEGER ) )
----
157

query I rowsort
SELECT DISTINCT - 58 + - + 38 * - 76
----
2830

query I rowsort
SELECT DISTINCT 76 - + - 91
----
167

query I rowsort
SELECT 64 * + 60 * + 1 AS col0
----
3840

query I rowsort
SELECT 71 + 79 AS col1
----
150

query II rowsort
SELECT ALL 70, 75 AS col0
----
70
75

query I rowsort
SELECT 80 + - 35 col1
----
45

query I rowsort
SELECT 54 * + ( 15 )
----
810

query I rowsort
SELECT 96 * - 71 AS col0
----
-6816

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3344
SELECT DISTINCT - COALESCE ( + NULLIF ( - + 60, - + 80 * CASE + 93 WHEN 71 * + 58 THEN 70 * 63 END ), ( + 14 ) + CAST( NULL AS SIGNED ), 49 DIV - 33 )
----
60

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT - COALESCE ( + NULLIF ( - + 60, - + 80 * CASE + 93 WHEN 71 * + 58 THEN 70 * 63 END ), ( + 14 ) + CAST ( NULL AS INTEGER ), 49 / - 33 )
----
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT DISTINCT - MAX( DISTINCT - + COALESCE ( - NULLIF ( - 82, 65 * + 26 ), + 49 + 66, + 7 * 97 ) ) * + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT - MAX ( DISTINCT - + COALESCE ( - NULLIF ( - 82, 65 * + 26 ), + 49 + 66, + 7 * 97 ) ) * + COUNT ( * )
----
82

query I rowsort
SELECT DISTINCT - 84 * - - 52
----
-4368

onlyif mysql # aggregate syntax: 
query II rowsort label-3348
SELECT ALL + MAX( ALL + 23 ) * 24, 6 * - 22 * 9 + + 92 AS col1
----
552
-1096

skipif mysql # not compatible
query II rowsort label-3348
SELECT ALL + MAX ( ALL + 23 ) * 24, 6 * - 22 * 9 + + 92 AS col1
----
552
-1096

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT - 60 * - 57 + CASE - + SUM( - - 14 ) WHEN - 97 THEN 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT - 60 * - 57 + CASE - + SUM ( - - 14 ) WHEN - 97 THEN 10 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT MAX( + 34 ) * - 63 - 15 * 54 AS col1
----
-2952

skipif mysql # not compatible
query I rowsort label-3350
SELECT MAX ( + 34 ) * - 63 - 15 * 54 AS col1
----
-2952

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL - - 54 + NULLIF ( + + 57, - + CASE 70 WHEN 21 + MAX( 76 ) THEN NULL ELSE - 59 + MAX( 62 + 5 ) END ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL - - 54 + NULLIF ( + + 57, - + CASE 70 WHEN 21 + MAX ( 76 ) THEN NULL ELSE - 59 + MAX ( 62 + 5 ) END ) AS col1
----
111

query I rowsort
SELECT ALL + - 92 + 63 AS col1
----
-29

query I rowsort
SELECT 58 * + - 76 - + 75 AS col2
----
-4483

query I rowsort
SELECT ALL - + 28
----
-28

query I rowsort
SELECT 50 * - 23 AS col2
----
-1150

query I rowsort
SELECT ALL - + 62 + 93 * - ( 99 ) * 91
----
-837899

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL + - NULLIF ( + 64, 9 ) + 17 + + COUNT( * ) + 1
----
-45

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL + - NULLIF ( + 64, 9 ) + 17 + + COUNT ( * ) + 1
----
-45

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

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT - COUNT ( * ) * COUNT ( DISTINCT - + 93 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT ALL MIN( DISTINCT 6 ) + - - COALESCE ( 88, - - CAST( + CASE SUM( 91 ) WHEN - 91 * COALESCE ( + 4, + COUNT( * ) ) THEN NULL ELSE 94 END AS SIGNED ) ) * 1 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL MIN ( DISTINCT 6 ) + - - COALESCE ( 88, - - CAST ( + CASE SUM ( 91 ) WHEN - 91 * COALESCE ( + 4, + COUNT ( * ) ) THEN NULL ELSE 94 END AS INTEGER ) ) * 1 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT DISTINCT - COUNT( + 79 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT - COUNT ( + 79 ) AS col0
----
-1

query I rowsort
SELECT + + 76 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT - 52 - - - COUNT( * ) col2
----
-53

skipif mysql # not compatible
query I rowsort label-3362
SELECT - 52 - - - COUNT ( * ) col2
----
-53

query I rowsort
SELECT ALL - 20 * - + 97 + - 58 AS col1
----
1882

query I rowsort
SELECT + 1 * + 86 - - 76 + + - 54 AS col0
----
108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL MIN( ALL - 16 ) * - 59 * - 85
----
-80240

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL MIN ( ALL - 16 ) * - 59 * - 85
----
-80240

query I rowsort
SELECT ALL + 1 - - ( + - 5 ) AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3368
SELECT DISTINCT + COALESCE ( 36, - MAX( DISTINCT + - 33 ) * + 90 * + 13, 98 - + 86, + 81 * ( - COUNT( * ) ) + MAX( 89 ) ) DIV + 20
----
1

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT + COALESCE ( 36, - MAX ( DISTINCT + - 33 ) * + 90 * + 13, 98 - + 86, + 81 * ( - COUNT ( * ) ) + MAX ( 89 ) ) / + 20
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3369
SELECT DISTINCT CASE + - COUNT( * ) WHEN + NULLIF ( - NULLIF ( - - 67, NULLIF ( - AVG ( DISTINCT - 40 ), CAST( NULL AS DECIMAL ) * 59 + 4 ) ), + 92 ) THEN NULL WHEN 63 THEN NULL WHEN 87 THEN + 44 END - 90 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT CASE + - COUNT ( * ) WHEN + NULLIF ( - NULLIF ( - - 67, NULLIF ( - AVG ( DISTINCT - 40 ), CAST ( NULL AS REAL ) * 59 + 4 ) ), + 92 ) THEN NULL WHEN 63 THEN NULL WHEN 87 THEN + 44 END - 90 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT CASE 40 WHEN + 52 + - 10 + - COUNT( DISTINCT - ( - COALESCE ( + NULLIF ( 3, - COALESCE ( - 49, - 7 * 31, 54 * + 80 ) ), 95 + 57 / 63 ) ) ) THEN 94 ELSE - 79 * - CASE + 79 WHEN - COUNT( * ) - + 94 * 22 THEN + 88 ELSE NULL END END * 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT CASE 40 WHEN + 52 + - 10 + - COUNT ( DISTINCT - ( - COALESCE ( + NULLIF ( 3, - COALESCE ( - 49, - 7 * 31, 54 * + 80 ) ), 95 + 57 / 63 ) ) ) THEN 94 ELSE - 79 * - CASE + 79 WHEN - COUNT ( * ) - + 94 * 22 THEN + 88 ELSE NULL END END * 84 AS col0
----
NULL

query II rowsort
SELECT 89 AS col0, - 97 AS col0
----
89
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT + 64 * - MAX( DISTINCT 17 )
----
-1088

skipif mysql # not compatible
query I rowsort label-3372
SELECT + 64 * - MAX ( DISTINCT 17 )
----
-1088

query I rowsort
SELECT + 93 * + + 86 AS col0
----
7998

query II rowsort
SELECT - 70 AS col1, 17 AS col0
----
-70
17

query II rowsort
SELECT - 73 col0, + 92 * + + 7 AS col1
----
-73
644

query I rowsort
SELECT - 34 * - 68 col2
----
2312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3377
SELECT + 45 + NULLIF ( SUM( ALL 0 ), + + CAST( - - 3 AS SIGNED ) * 44 - SUM( DISTINCT + 70 + + 44 ) * 12 ) DIV + COALESCE ( - 26, + 19 - 24, COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-3377
SELECT + 45 + NULLIF ( SUM ( ALL 0 ), + + CAST ( - - 3 AS INTEGER ) * 44 - SUM ( DISTINCT + 70 + + 44 ) * 12 ) / + COALESCE ( - 26, + 19 - 24, COUNT ( * ) )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL - 97 * - 27 * - - 46 * + NULLIF ( - COUNT( * ), - 15 ) * - 40 AS col0
----
4818960

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL - 97 * - 27 * - - 46 * + NULLIF ( - COUNT ( * ), - 15 ) * - 40 AS col0
----
4818960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT DISTINCT 86 * COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT 86 * COUNT ( * ) AS col0
----
86

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

skipif mysql # not compatible
query II rowsort label-3381
SELECT ALL COUNT ( * ) AS col0, + COUNT ( * ) * - + ( + 7 )
----
1
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT - 92 + - 79 * + COALESCE ( 80, + 36 ) * - COUNT( * )
----
6228

skipif mysql # not compatible
query I rowsort label-3382
SELECT - 92 + - 79 * + COALESCE ( 80, + 36 ) * - COUNT ( * )
----
6228

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT + MIN( 2 ) * + COUNT( * ) col1
----
2

skipif mysql # not compatible
query I rowsort label-3383
SELECT + MIN ( 2 ) * + COUNT ( * ) col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT 7 * + 87 + MIN( + 96 ) col2
----
705

skipif mysql # not compatible
query I rowsort label-3384
SELECT 7 * + 87 + MIN ( + 96 ) col2
----
705

query I rowsort
SELECT COALESCE ( 12, 97 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL + 32 * + - 40 * COUNT( * ) + - 50 * 13 AS col0
----
-1930

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL + 32 * + - 40 * COUNT ( * ) + - 50 * 13 AS col0
----
-1930

query I rowsort
SELECT + 56 + + COALESCE ( - 15, + 32 + - - 98 ) * - 84 * + 3 AS col1
----
3836

query I rowsort
SELECT - + COALESCE ( + 37, + - 36 ) * + + 5 + + + 59 + + 51
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3389
SELECT ALL + 76 * - 74 DIV COUNT( * ) col1
----
-5624

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + 76 * - 74 / COUNT ( * ) col1
----
-5624

query I rowsort
SELECT NULLIF ( - 31, + 76 )
----
-31

query I rowsort
SELECT DISTINCT + 92 * 51 + ( - + COALESCE ( - + 8, + + 30 ) ) + + 79 * 71
----
10309

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3392
SELECT ALL - - COUNT( * ) * - 89 DIV - SUM( DISTINCT + ( + 64 ) ) + - 20 * + COUNT( DISTINCT - ( 58 ) ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL - - COUNT ( * ) * - 89 / - SUM ( DISTINCT + ( + 64 ) ) + - 20 * + COUNT ( DISTINCT - ( 58 ) ) AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3393
SELECT DISTINCT + + MAX( ALL - - 70 ) DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT + + MAX ( ALL - - 70 ) / + 95 AS col0
----
0

query I rowsort
SELECT - 9 * - 84 AS col0
----
756

query I rowsort
SELECT + - 44 AS col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT - + ( COALESCE ( CAST( 42 AS SIGNED ), - 90 ) ) * 24 AS col1
----
-1008

skipif mysql # not compatible
query I rowsort label-3396
SELECT - + ( COALESCE ( CAST ( 42 AS INTEGER ), - 90 ) ) * 24 AS col1
----
-1008

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3398
SELECT ALL - CAST( - 92 AS SIGNED ) * + - SUM( ALL 3 ) - - COUNT( * ) + 45 * - COUNT( * ) * 55 AS col0
----
-2750

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL - CAST ( - 92 AS INTEGER ) * + - SUM ( ALL 3 ) - - COUNT ( * ) + 45 * - COUNT ( * ) * 55 AS col0
----
-2750

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT - 98 + 15 - 46 * + 58 * + - 94 * - - COUNT( 26 ) * 36
----
9028429

skipif mysql # not compatible
query I rowsort label-3399
SELECT - 98 + 15 - 46 * + 58 * + - 94 * - - COUNT ( 26 ) * 36
----
9028429

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT + + COUNT( - 2 ) * + 66 * - 80 - - 76
----
-5204

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT + + COUNT ( - 2 ) * + 66 * - 80 - - 76
----
-5204

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT - 12 + ( + 66 ) * ( + + ( + + 45 ) ) * + COUNT( * ) AS col2
----
2958

skipif mysql # not compatible
query I rowsort label-3401
SELECT - 12 + ( + 66 ) * ( + + ( + + 45 ) ) * + COUNT ( * ) AS col2
----
2958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3402
SELECT ALL - - 0 * + + COUNT( * ) DIV - - 58 + - - 7 - 70 * + 5 AS col0
----
-343

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL - - 0 * + + COUNT ( * ) / - - 58 + - - 7 - 70 * + 5 AS col0
----
-343

onlyif mysql # aggregate syntax: 
query II rowsort label-3403
SELECT ALL + COUNT( * ) * + 26 * COUNT( * ) + 75, 54 AS col0
----
101
54

skipif mysql # not compatible
query II rowsort label-3403
SELECT ALL + COUNT ( * ) * + 26 * COUNT ( * ) + 75, 54 AS col0
----
101
54

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

skipif mysql # not compatible
query II rowsort label-3404
SELECT - - COUNT ( * ), + 67 AS col2
----
1
67

query I rowsort
SELECT ALL + NULLIF ( - 98, - 78 ) AS col0
----
-98

query I rowsort
SELECT 28 * - 13 + 77 AS col1
----
-287

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT + MIN( + 35 ) * + 5 AS col2
----
175

skipif mysql # not compatible
query I rowsort label-3407
SELECT + MIN ( + 35 ) * + 5 AS col2
----
175

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

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

query I rowsort
SELECT + CASE - 90 WHEN - - 89 / - 63 THEN - 7 ELSE NULL END + + - 97 col0
----
NULL

query I rowsort
SELECT ALL 88 * NULLIF ( + 16, 84 - + 72 )
----
1408

query I rowsort
SELECT DISTINCT 22 * + 12
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3412
SELECT + ( - - 73 ) * + + COUNT( * ) + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT + ( - - 73 ) * + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3413
SELECT ALL + 2 * COUNT( * ) DIV NULLIF ( 89, 17 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL + 2 * COUNT ( * ) / NULLIF ( 89, 17 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT DISTINCT + 84 * CASE - - 84 WHEN + 42 * + 29 * ( + 38 ) THEN - 56 * COUNT( * ) ELSE 48 END
----
4032

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT + 84 * CASE - - 84 WHEN + 42 * + 29 * ( + 38 ) THEN - 56 * COUNT ( * ) ELSE 48 END
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL NULLIF ( + 32, - 72 - - + MAX( DISTINCT + + 75 ) ) + 43 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL NULLIF ( + 32, - 72 - - + MAX ( DISTINCT + + 75 ) ) + 43 AS col0
----
75

query II rowsort
SELECT ALL 80 + - 60 col2, - 0 col0
----
20
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3417
SELECT - ( - + CASE 30 WHEN 68 + + CAST( + 38 AS DECIMAL ) + 64 * 52 THEN 10 WHEN MIN( DISTINCT 29 ) * - 74 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT - ( - + CASE 30 WHEN 68 + + CAST ( + 38 AS REAL ) + 64 * 52 THEN 10 WHEN MIN ( DISTINCT 29 ) * - 74 THEN NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3418
SELECT + CAST( - ( + - 61 ) AS DECIMAL ) / - 16 + - MAX( DISTINCT 65 ) + + COUNT( * ) * + AVG ( 40 * 97 )
----
3811

skipif mysql # not compatible
query I rowsort label-3418
SELECT + CAST ( - ( + - 61 ) AS REAL ) / - 16 + - MAX ( DISTINCT 65 ) + + COUNT ( * ) * + AVG ( 40 * 97 )
----
3811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3419
SELECT ALL CASE 51 WHEN - ( + 9 ) * + 5 / COUNT( * ) / + MAX( + CAST( NULL AS SIGNED ) ) + - 27 THEN 24 * + 47 END + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL CASE 51 WHEN - ( + 9 ) * + 5 / COUNT ( * ) / + MAX ( + CAST ( NULL AS INTEGER ) ) + - 27 THEN 24 * + 47 END + 68
----
NULL

query II rowsort
SELECT - COALESCE ( 63, 50 ), COALESCE ( - 76, 53 ) AS col0
----
-63
-76

query I rowsort
SELECT - ( - - 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL SUM( + + 2 ) * - 38 + + 76
----
0

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL SUM ( + + 2 ) * - 38 + + 76
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3423
SELECT ALL - 2 DIV - + 40 + + 93 + 95 * + 87
----
8358

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL - 2 / - + 40 + + 93 + 95 * + 87
----
8358

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL - COUNT( * ) * - 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL - COUNT ( * ) * - 38 AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3425
SELECT ALL + 37 DIV + + 35 + - 87 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL + 37 / + + 35 + - 87 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT + - MAX( + - 97 ) + + + ( 77 ) - - 46 - - 6 * 74 * 30 * + 75 AS col2
----
999220

skipif mysql # not compatible
query I rowsort label-3426
SELECT + - MAX ( + - 97 ) + + + ( 77 ) - - 46 - - 6 * 74 * 30 * + 75 AS col2
----
999220

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

query I rowsort
SELECT - NULLIF ( - 4, - 40 ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3429
SELECT - COUNT( * ) * NULLIF ( + NULLIF ( - - 95, - MIN( CAST( + 3 AS DECIMAL ) ) ), 43 + 40 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3429
SELECT - COUNT ( * ) * NULLIF ( + NULLIF ( - - 95, - MIN ( CAST ( + 3 AS REAL ) ) ), 43 + 40 ) AS col0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-3430
SELECT ALL + + 20 DIV 25 * + 25
----
0

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL + + 20 / 25 * + 25
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3431
SELECT ALL - ( + + 14 ) DIV - - 20 * - 47 * - COALESCE ( - 89, 59 + - 12, - 2 * + 53 ) * 63 - ( 90 ) * 89
----
-8010

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL - ( + + 14 ) / - - 20 * - 47 * - COALESCE ( - 89, 59 + - 12, - 2 * + 53 ) * 63 - ( 90 ) * 89
----
-8010

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT + + MAX( ALL 58 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3432
SELECT + + MAX ( ALL 58 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT - MIN( + 16 ) * - 35 + + - COUNT( * ) + - 67 + 2 * + COUNT( * ) * 96 * 76 - COUNT( * ) col1
----
15083

skipif mysql # not compatible
query I rowsort label-3433
SELECT - MIN ( + 16 ) * - 35 + + - COUNT ( * ) + - 67 + 2 * + COUNT ( * ) * 96 * 76 - COUNT ( * ) col1
----
15083

query I rowsort
SELECT 8 * + 56 * 31 * 2 * - + 61 * + 14 AS col1
----
-23720704

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT 51 * + MAX( ALL - 21 ) * 22 AS col0
----
-23562

skipif mysql # not compatible
query I rowsort label-3435
SELECT 51 * + MAX ( ALL - 21 ) * 22 AS col0
----
-23562

query I rowsort
SELECT ALL + 15 * + + 50
----
750

query I rowsort
SELECT 90 * - + 51 * - 71 AS col0
----
325890

onlyif mysql # aggregate syntax: 
query II rowsort label-3438
SELECT 14 AS col2, + MIN( + COALESCE ( + 42, - 89 + ( - 37 ) ) )
----
14
42

skipif mysql # not compatible
query II rowsort label-3438
SELECT 14 AS col2, + MIN ( + COALESCE ( + 42, - 89 + ( - 37 ) ) )
----
14
42

query II rowsort
SELECT DISTINCT 61, 12 AS col2
----
61
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL + 15 * - MIN( ALL 79 ) * + 47
----
-55695

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL + 15 * - MIN ( ALL 79 ) * + 47
----
-55695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3441
SELECT 80 * - COUNT( * ) / - - ( - 41 ) * CASE - 10 WHEN - 46 * 96 THEN 89 END + 39 * ( CAST( ( 66 ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT 80 * - COUNT ( * ) / - - ( - 41 ) * CASE - 10 WHEN - 46 * 96 THEN 89 END + 39 * ( CAST ( ( 66 ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL COUNT( * ) + - + 59 * + 54
----
-3185

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL COUNT ( * ) + - + 59 * + 54
----
-3185

query II rowsort
SELECT DISTINCT 72, 42 col2
----
72
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT ALL - 43 + + COUNT( * ) * - 47 - + 64 * + - 19 * 70 * COUNT( * ) - COUNT( * ) AS col1
----
85029

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL - 43 + + COUNT ( * ) * - 47 - + 64 * + - 19 * 70 * COUNT ( * ) - COUNT ( * ) AS col1
----
85029

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3445
SELECT 46 col0, COUNT( * ) DIV 68 - - SUM( + 97 )
----
46
97

skipif mysql # not compatible
query II rowsort label-3445
SELECT 46 col0, COUNT ( * ) / 68 - - SUM ( + 97 )
----
46
97

query I rowsort
SELECT ALL + 80 + 62
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3447
SELECT 70 + + + 4 + + COUNT( * ) * - 43 * SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * 52 / ( 78 ) - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT 70 + + + 4 + + COUNT ( * ) * - 43 * SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 52 / ( 78 ) - + 18
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL - COUNT ( * ) + - 74 AS col0
----
-75

query II rowsort
SELECT - 89, + ( + - 34 ) - - 23 AS col2
----
-89
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT MIN( - 52 ) + + 21 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3450
SELECT MIN ( - 52 ) + + 21 AS col0
----
-31

query I rowsort
SELECT DISTINCT ( - + 81 ) * + 37
----
-2997

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3452
SELECT ALL 45 AS col1, 3 + - ( - ( - COUNT( * ) ) ) DIV 52 * 71 AS col1
----
45
3

skipif mysql # not compatible
query II rowsort label-3452
SELECT ALL 45 AS col1, 3 + - ( - ( - COUNT ( * ) ) ) / 52 * 71 AS col1
----
45
3

query I rowsort
SELECT 5 + - 99
----
-94

query I rowsort
SELECT ALL - 8 + - - 47
----
39

query I rowsort
SELECT 14 + + ( + 48 ) + + + 98 AS col2
----
160

query I rowsort
SELECT 21 * + 72
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT COUNT( * ) + - 13 * - + MIN( DISTINCT - - 30 ) + - 71
----
320

skipif mysql # not compatible
query I rowsort label-3457
SELECT COUNT ( * ) + - 13 * - + MIN ( DISTINCT - - 30 ) + - 71
----
320

query I rowsort
SELECT ALL - COALESCE ( + 17, + 99 ) AS col1
----
-17

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

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

query I rowsort
SELECT + 89 * COALESCE ( 28, - 52 * + 74, - 8 ) * 27 * + 16 + - 99
----
1076445

query I rowsort
SELECT - 31 * + - 19 AS col2
----
589

query I rowsort
SELECT - 1 * - 67 + + + ( 65 )
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3463
SELECT ALL CASE + COUNT( * ) WHEN - COUNT( * ) * - CAST( + + 95 AS SIGNED ) + - 4 + + - 77 THEN 77 + 78 WHEN - 89 + 74 THEN COUNT( * ) * CAST( + 68 AS SIGNED ) + 76 END - + 93 * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL CASE + COUNT ( * ) WHEN - COUNT ( * ) * - CAST ( + + 95 AS INTEGER ) + - 4 + + - 77 THEN 77 + 78 WHEN - 89 + 74 THEN COUNT ( * ) * CAST ( + 68 AS INTEGER ) + 76 END - + 93 * 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3464
SELECT DISTINCT + 65 DIV - 64 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT + 65 / - 64 AS col1
----
-1

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

skipif mysql # not compatible
query I rowsort label-3465
SELECT 18 / - COUNT ( * ) + - - 60
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3466
SELECT - COALESCE ( ( + + 76 ), - 38 DIV + MAX( + 53 ) * - - 4 - - + 67 ) * 98 + - 7 AS col1
----
-7455

skipif mysql # not compatible
query I rowsort label-3466
SELECT - COALESCE ( ( + + 76 ), - 38 / + MAX ( + 53 ) * - - 4 - - + 67 ) * 98 + - 7 AS col1
----
-7455

query I rowsort
SELECT ALL + 63 - + 67 + + + 36 + - - 40 AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3468
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col2, - ( + ( 32 ) ) AS col0
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-3468
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2, - ( + ( 32 ) ) AS col0
----
NULL
-32

query II rowsort
SELECT + - 66 AS col2, 34 * + + 52 AS col1
----
-66
1768

query I rowsort
SELECT DISTINCT 59 * + 97 + 23 * - 53
----
4504

query II rowsort
SELECT ALL - - 64 AS col0, + 65 * + 5 + 20 + - 37
----
64
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3472
SELECT - 47 + + MAX( - - 63 ) + + 58 / COUNT( * ) * + CASE + 80 WHEN + + 21 * 74 THEN - 27 / 96 ELSE NULL END - COALESCE ( 36, 86 * + 98 ) * CASE - 32 + CAST( - 78 AS SIGNED ) WHEN - 27 THEN NULL ELSE 92 + + COUNT( * ) * + 24 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3472
SELECT - 47 + + MAX ( - - 63 ) + + 58 / COUNT ( * ) * + CASE + 80 WHEN + + 21 * 74 THEN - 27 / 96 ELSE NULL END - COALESCE ( 36, 86 * + 98 ) * CASE - 32 + CAST ( - 78 AS INTEGER ) WHEN - 27 THEN NULL ELSE 92 + + COUNT ( * ) * + 24 END col0
----
NULL

query I rowsort
SELECT DISTINCT 86 * + - 64 + + 15 - - 84
----
-5405

query I rowsort
SELECT + - 76 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT + MAX( - - 38 ) col1
----
38

skipif mysql # not compatible
query I rowsort label-3475
SELECT + MAX ( - - 38 ) col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT + 34 * - + 6 - - 46 + - COUNT( * ) + + 3 * - 57 * + 78 * 71 + + 69 * 93 AS col0
----
-940740

skipif mysql # not compatible
query I rowsort label-3476
SELECT + 34 * - + 6 - - 46 + - COUNT ( * ) + + 3 * - 57 * + 78 * 71 + + 69 * 93 AS col0
----
-940740

query I rowsort
SELECT ALL - - 4
----
4

query I rowsort
SELECT + - 22 AS col2
----
-22

query II rowsort
SELECT 80 + + + 60 AS col2, - 88
----
140
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3480
SELECT DISTINCT 46 / - 62 * + NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) * + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT 46 / - 62 * + NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) * + 4 )
----
NULL

query I rowsort
SELECT ALL 5 + 6 + - 58 AS col0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-3482
SELECT 70 DIV - 55 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3482
SELECT 70 / - 55 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT 75 * SUM( ALL 58 ) + - + 32 * + - COUNT( * )
----
4382

skipif mysql # not compatible
query I rowsort label-3483
SELECT 75 * SUM ( ALL 58 ) + - + 32 * + - COUNT ( * )
----
4382

query I rowsort
SELECT ALL + 84 * 21 AS col1
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT - SUM( ALL 38 ) col2
----
-38

skipif mysql # not compatible
query I rowsort label-3485
SELECT - SUM ( ALL 38 ) col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT 15 + MIN( + 43 )
----
58

skipif mysql # not compatible
query I rowsort label-3486
SELECT 15 + MIN ( + 43 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT 24 + 72 + - + ( 15 ) * - COUNT( + - 0 ) + + 19 * 48
----
1023

skipif mysql # not compatible
query I rowsort label-3487
SELECT 24 + 72 + - + ( 15 ) * - COUNT ( + - 0 ) + + 19 * 48
----
1023

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT 95 DIV + 25 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3488
SELECT 95 / + 25 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL SUM( - COALESCE ( - - 17, - 9 ) ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL SUM ( - COALESCE ( - - 17, - 9 ) ) AS col0
----
-17

query I rowsort
SELECT ALL + 76 + - 76 * - 70 * - 76 AS col2
----
-404244

onlyif mysql # aggregate syntax: 
query II rowsort label-3491
SELECT DISTINCT COUNT( ALL - 56 ) AS col0, + 81 AS col1
----
1
81

skipif mysql # not compatible
query II rowsort label-3491
SELECT DISTINCT COUNT ( ALL - 56 ) AS col0, + 81 AS col1
----
1
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT DISTINCT + SUM( ALL + ( + 22 ) ) - 40
----
-18

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT + SUM ( ALL + ( + 22 ) ) - 40
----
-18

query I rowsort
SELECT ALL + - 41 - + - 29 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3494
SELECT SUM( ALL + + 9 ), 11 AS col1
----
9
11

skipif mysql # not compatible
query II rowsort label-3494
SELECT SUM ( ALL + + 9 ), 11 AS col1
----
9
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT DISTINCT - ( COUNT( * ) ) * + 17 + + 36 + 66 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-3495
SELECT DISTINCT - ( COUNT ( * ) ) * + 17 + + 36 + 66 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT NULLIF ( + + COUNT( * ), - COUNT( * ) ) - + COUNT( * ) + - 21 * + 55 + 3 * + COUNT( * )
----
-1152

skipif mysql # not compatible
query I rowsort label-3496
SELECT NULLIF ( + + COUNT ( * ), - COUNT ( * ) ) - + COUNT ( * ) + - 21 * + 55 + 3 * + COUNT ( * )
----
-1152

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT ALL - COUNT( * ) * + 29 - + 18
----
-47

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL - COUNT ( * ) * + 29 - + 18
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3499
SELECT ALL - 92 * + + 69 * - 60 / - ( + CAST( NULL AS SIGNED ) ) * - ( + COUNT( * ) ) * - MAX( - + ( 8 ) ) + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL - 92 * + + 69 * - 60 / - ( + CAST ( NULL AS INTEGER ) ) * - ( + COUNT ( * ) ) * - MAX ( - + ( 8 ) ) + 60 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 30
----
-30

query I rowsort
SELECT DISTINCT - + 13 AS col2
----
-13

query I rowsort
SELECT + - 12 AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT - CAST( NULL AS SIGNED ) * 84 * + 60 * - + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT - CAST ( NULL AS INTEGER ) * 84 * + 60 * - + 88 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3504
SELECT - - 46 * - NULLIF ( - - NULLIF ( COUNT( * ), - + CAST( - SUM( + ( - 6 ) ) AS SIGNED ) ), AVG ( ALL - CASE - 53 WHEN 24 + 40 THEN 35 + 57 ELSE 61 END ) * 60 )
----
-46

skipif mysql # not compatible
query I rowsort label-3504
SELECT - - 46 * - NULLIF ( - - NULLIF ( COUNT ( * ), - + CAST ( - SUM ( + ( - 6 ) ) AS INTEGER ) ), AVG ( ALL - CASE - 53 WHEN 24 + 40 THEN 35 + 57 ELSE 61 END ) * 60 )
----
-46

query I rowsort
SELECT + 19 * + - 83 * + 68
----
-107236

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

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

query I rowsort
SELECT DISTINCT + 12 col0
----
12

query I rowsort
SELECT ALL 93 * - + 58
----
-5394

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT DISTINCT 97 * - 67 + - 94 * + COUNT( * ) AS col0
----
-6593

skipif mysql # not compatible
query I rowsort label-3510
SELECT DISTINCT 97 * - 67 + - 94 * + COUNT ( * ) AS col0
----
-6593

query I rowsort
SELECT DISTINCT 66 * + 17 + + 49 * + + 45
----
3327

query I rowsort
SELECT DISTINCT 72 * + + 23 * + 42 + + 5 AS col1
----
69557

query I rowsort
SELECT + ( + - 41 ) col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3514
SELECT + 81 - - 18 + + ( - 14 ) + + 77 + + - 80 - - 59 * COUNT( * ) AS col2, COUNT( * ) AS col0
----
141
1

skipif mysql # not compatible
query II rowsort label-3514
SELECT + 81 - - 18 + + ( - 14 ) + + 77 + + - 80 - - 59 * COUNT ( * ) AS col2, COUNT ( * ) AS col0
----
141
1

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

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

query II rowsort
SELECT - NULLIF ( + 38, - 20 ), + 2 AS col0
----
-38
2

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT ALL 91 DIV 40 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL 91 / 40 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT - 3 - + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-3519
SELECT - 3 - + COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3520
SELECT ALL COUNT( * ) * COALESCE ( + + 56, - - 77 - + 77 + + 61, + COUNT( - 22 ) + + + SUM( DISTINCT + + 55 ) + + 2, 98 DIV - 88 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL COUNT ( * ) * COALESCE ( + + 56, - - 77 - + 77 + + 61, + COUNT ( - 22 ) + + + SUM ( DISTINCT + + 55 ) + + 2, 98 / - 88 ) AS col0
----
56

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

query I rowsort
SELECT + 49 + - 39
----
10

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

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

query I rowsort
SELECT + + 76 + - 8
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT - 83 DIV + 28
----
-2

skipif mysql # not compatible
query I rowsort label-3525
SELECT - 83 / + 28
----
-2

query II rowsort
SELECT DISTINCT + 52 col2, - 77 AS col1
----
52
-77

query I rowsort
SELECT - 96 * - + 92 AS col2
----
8832

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT - NULLIF ( - MIN( + ( + 44 ) ), SUM( + 25 ) ) + 7
----
51

skipif mysql # not compatible
query I rowsort label-3529
SELECT - NULLIF ( - MIN ( + ( + 44 ) ), SUM ( + 25 ) ) + 7
----
51

query I rowsort
SELECT DISTINCT - 63 * + COALESCE ( + + 70, COALESCE ( - NULLIF ( - NULLIF ( + 43, - 38 ), - 22 ), + 35 ) * + 57 ) * - 53 AS col2
----
233730

query I rowsort
SELECT - 54 + - + 27 AS col0
----
-81

query I rowsort
SELECT DISTINCT - 6 col0
----
-6

query I rowsort
SELECT ALL + + 46 + - 69 col2
----
-23

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

skipif mysql # not compatible
query I rowsort label-3534
SELECT - COUNT ( * ) * + 90 * + - 30 AS col2
----
2700

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3535
SELECT - CAST( NULL AS DECIMAL ) * + 72 * - COUNT( * ) + - 79 + - + COALESCE ( - 44, + 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT - CAST ( NULL AS REAL ) * + 72 * - COUNT ( * ) + - 79 + - + COALESCE ( - 44, + 72 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT ALL + + CASE + 2 WHEN CASE - COUNT( * ) WHEN - 58 THEN COUNT( * ) END THEN + 93 WHEN - 9 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL + + CASE + 2 WHEN CASE - COUNT ( * ) WHEN - 58 THEN COUNT ( * ) END THEN + 93 WHEN - 9 THEN NULL END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3538
SELECT ALL CAST( NULL AS SIGNED ) / - MAX( - 78 ) + - + ( - 67 ) - + 17 * + COUNT( * ) * + 1 + + - 43 * + ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL CAST ( NULL AS INTEGER ) / - MAX ( - 78 ) + - + ( - 67 ) - + 17 * + COUNT ( * ) * + 1 + + - 43 * + ( - COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT ALL + 8 DIV - + 55 + + - 40 + + 9 DIV + 19
----
-40

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL + 8 / - + 55 + + - 40 + + 9 / + 19
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3540
SELECT ALL - - 42 DIV - + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL - - 42 / - + 95 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT DISTINCT - CASE 79 WHEN 18 THEN + + 32 * COUNT( * ) * - 70 * - - 14 END / - AVG ( ALL - 35 ) + + ( NULLIF ( 53, + 60 ) ) * + 79 + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT - CASE 79 WHEN 18 THEN + + 32 * COUNT ( * ) * - 70 * - - 14 END / - AVG ( ALL - 35 ) + + ( NULLIF ( 53, + 60 ) ) * + 79 + 46 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3542
SELECT DISTINCT 8 DIV + + 23 + + - COUNT( * ) AS col1
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT ALL - 38 * 19 + 96 DIV + 35
----
-720

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL - 38 * 19 + 96 / + 35
----
-720

query I rowsort
SELECT DISTINCT 93 * - + 16 + + 67 + + 61
----
-1360

query I rowsort
SELECT ALL + 35 col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3546
SELECT 11 DIV - + 72 + + 16 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3546
SELECT 11 / - + 72 + + 16 AS col0
----
16

query I rowsort
SELECT + 52 * + + 49
----
2548

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

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

query II rowsort
SELECT ALL + 61 * + + 52 + 38 + 9, 18 AS col2
----
3219
18

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

skipif mysql # not compatible
query II rowsort label-3551
SELECT + COUNT ( * ) AS col2, + 82
----
1
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT NULLIF ( + 4, 52 + COUNT( * ) ) * + 50 + - - 97 - + 82 + + 71 * - + COUNT( * ) + - - 44 + 79
----
267

skipif mysql # not compatible
query I rowsort label-3553
SELECT NULLIF ( + 4, 52 + COUNT ( * ) ) * + 50 + - - 97 - + 82 + + 71 * - + COUNT ( * ) + - - 44 + 79
----
267

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3554
SELECT - CAST( NULL AS DECIMAL ) - - - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT - CAST ( NULL AS REAL ) - - - 64
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT ALL + 21 DIV + 10
----
2

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL + 21 / + 10
----
2

query II rowsort
SELECT DISTINCT + 37 AS col2, - 42
----
37
-42

query I rowsort
SELECT DISTINCT + 51 * - 47 * 56 - - - 70 - - 31
----
-134271

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

skipif mysql # not compatible
query II rowsort label-3558
SELECT - ( - + 24 ), COUNT ( * ) AS col2
----
24
1

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

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

query I rowsort
SELECT + 3 + - 38
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT + 62 * - - COALESCE ( - 82, 20 + - 90 * MAX( ALL - + COALESCE ( - ( 73 ), - 74 ) ) )
----
-5084

skipif mysql # not compatible
query I rowsort label-3561
SELECT + 62 * - - COALESCE ( - 82, 20 + - 90 * MAX ( ALL - + COALESCE ( - ( 73 ), - 74 ) ) )
----
-5084

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL MAX( ALL - + 19 ) * 56 * ( + 14 )
----
-14896

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL MAX ( ALL - + 19 ) * 56 * ( + 14 )
----
-14896

query I rowsort
SELECT - ( 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT + 26 * + COALESCE ( + 11, 48 - + 94 + + NULLIF ( COUNT( * ), + 17 ) * 12 - - 23 * + - ( 37 ) ) AS col0
----
286

skipif mysql # not compatible
query I rowsort label-3564
SELECT + 26 * + COALESCE ( + 11, 48 - + 94 + + NULLIF ( COUNT ( * ), + 17 ) * 12 - - 23 * + - ( 37 ) ) AS col0
----
286

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

skipif mysql # not compatible
query I rowsort label-3565
SELECT - COUNT ( * ) * COUNT ( + 37 ) / 38 AS col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3567
SELECT ALL 8, + 97 + + - CASE + 22 WHEN 15 THEN NULL WHEN - - 94 * - 89 * 14 * - COUNT( * ) / - CAST( NULL AS SIGNED ) THEN 77 ELSE 92 - 49 END AS col2
----
8
54

skipif mysql # not compatible
query II rowsort label-3567
SELECT ALL 8, + 97 + + - CASE + 22 WHEN 15 THEN NULL WHEN - - 94 * - 89 * 14 * - COUNT ( * ) / - CAST ( NULL AS INTEGER ) THEN 77 ELSE 92 - 49 END AS col2
----
8
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3568
SELECT DISTINCT - 54 AS col2, + COUNT( * ) DIV 82 AS col1
----
-54
0

skipif mysql # not compatible
query II rowsort label-3568
SELECT DISTINCT - 54 AS col2, + COUNT ( * ) / 82 AS col1
----
-54
0

query I rowsort
SELECT ALL + - ( 55 ) * - + 84
----
4620

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT ALL 7 + - 8 DIV 49
----
7

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL 7 + - 8 / 49
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3571
SELECT DISTINCT + CAST( 7 AS SIGNED ) + + + 70
----
77

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT + CAST ( 7 AS INTEGER ) + + + 70
----
77

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

query I rowsort
SELECT ALL + 26 + + 31 AS col1
----
57

query I rowsort
SELECT + 74 * - 7 AS col2
----
-518

query I rowsort
SELECT DISTINCT ( - NULLIF ( - ( - + 2 ), + 7 ) ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT + NULLIF ( - + 2, + - 94 ) * - - NULLIF ( - - COUNT( ALL + - 60 ), - COUNT( * ) ) + - 44 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-3576
SELECT + NULLIF ( - + 2, + - 94 ) * - - NULLIF ( - - COUNT ( ALL + - 60 ), - COUNT ( * ) ) + - 44 AS col1
----
-46

query I rowsort
SELECT ALL - + 6 + + 26 * + 15 AS col1
----
384

query II rowsort
SELECT - + 28, 63 AS col1
----
-28
63

query II rowsort
SELECT + 99 AS col2, 51 + - + 94 + + + 31
----
99
-12

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

skipif mysql # not compatible
query I rowsort label-3580
SELECT + 1 / - MAX ( DISTINCT ( 88 ) ) AS col1
----
0

query I rowsort
SELECT ALL 10 * 23
----
230

query I rowsort
SELECT DISTINCT 14 * - + 5 AS col1
----
-70

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

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL - COUNT ( ALL + 16 ) * + 66 AS col2
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3584
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL - + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + 19 + - + 67
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3586
SELECT 25 DIV + - COUNT( * ) - + + 82 AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-3586
SELECT 25 / + - COUNT ( * ) - + + 82 AS col1
----
-107

onlyif mysql # DIV for integer division: 
query II rowsort label-3587
SELECT 89 * + 26, 63 DIV 98 AS col2
----
2314
0

skipif mysql # not compatible
query II rowsort label-3587
SELECT 89 * + 26, 63 / 98 AS col2
----
2314
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3588
SELECT DISTINCT + COUNT( * ) * + 95 AS col1, 5
----
95
5

skipif mysql # not compatible
query II rowsort label-3588
SELECT DISTINCT + COUNT ( * ) * + 95 AS col1, 5
----
95
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT 8 + 85 * + AVG ( - - 38 ) * 12 - + 26 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT 8 + 85 * + AVG ( - - 38 ) * 12 - + 26 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3590
SELECT ALL - CAST( - CASE - 2 WHEN + - COUNT( * ) * COALESCE ( + + 0, - - 84 * + 92 + 12 ) THEN CASE 75 WHEN COUNT( * ) THEN - COUNT( * ) WHEN - 3 * 95 THEN + 43 + - ( 24 ) END * 53 + - 20 * ( 51 ) ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL - CAST ( - CASE - 2 WHEN + - COUNT ( * ) * COALESCE ( + + 0, - - 84 * + 92 + 12 ) THEN CASE 75 WHEN COUNT ( * ) THEN - COUNT ( * ) WHEN - 3 * 95 THEN + 43 + - ( 24 ) END * 53 + - 20 * ( 51 ) ELSE NULL END AS REAL )
----
NULL

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

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

query I rowsort
SELECT ALL + 17 * + 76 AS col1
----
1292

query I rowsort
SELECT DISTINCT - 44 - + 32 col0
----
-76

query II rowsort
SELECT 4 * + 76 col2, 8 + - 35 AS col1
----
304
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT 63 * - 37 * + COUNT( * ) + - 35 AS col2
----
-2366

skipif mysql # not compatible
query I rowsort label-3595
SELECT 63 * - 37 * + COUNT ( * ) + - 35 AS col2
----
-2366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3596
SELECT ALL - SUM( CAST( 89 AS SIGNED ) )
----
-89

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL - SUM ( CAST ( 89 AS INTEGER ) )
----
-89

query I rowsort
SELECT 20 - NULLIF ( + - 4, + 94 + + 74 ) * + + 84
----
356

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT COUNT( * ) - - - 75 + + + ( - 57 )
----
-131

skipif mysql # not compatible
query I rowsort label-3598
SELECT COUNT ( * ) - - - 75 + + + ( - 57 )
----
-131

query I rowsort
SELECT DISTINCT 55 * 24
----
1320

query II rowsort
SELECT ALL 52 * - 0 AS col0, - 14
----
0
-14

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3601
SELECT - CAST( + CAST( - 29 AS DECIMAL ) AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-3601
SELECT - CAST ( + CAST ( - 29 AS REAL ) AS INTEGER )
----
29

query I rowsort
SELECT ( - 2 ) * 91 col2
----
-182

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3603
SELECT ALL - COALESCE ( - 41, - COUNT( * ) ) + COUNT( * ) DIV - 36 * 74 * + 74 AS col0, - 51 AS col0
----
41
-51

skipif mysql # not compatible
query II rowsort label-3603
SELECT ALL - COALESCE ( - 41, - COUNT ( * ) ) + COUNT ( * ) / - 36 * 74 * + 74 AS col0, - 51 AS col0
----
41
-51

query I rowsort
SELECT 17 - + 74 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL 14 * CASE + 44 WHEN + NULLIF ( + + CASE - 12 WHEN 77 THEN + - COUNT( * ) WHEN - 32 THEN + 48 ELSE NULL END, - 14 + - 96 * + 55 ) * - COUNT( * ) - + 20 * - 51 THEN NULL ELSE - 4 * 89 END AS col2
----
-4984

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL 14 * CASE + 44 WHEN + NULLIF ( + + CASE - 12 WHEN 77 THEN + - COUNT ( * ) WHEN - 32 THEN + 48 ELSE NULL END, - 14 + - 96 * + 55 ) * - COUNT ( * ) - + 20 * - 51 THEN NULL ELSE - 4 * 89 END AS col2
----
-4984

onlyif mysql # DIV for integer division: 
query I rowsort label-3606
SELECT ALL - 55 + + 2 DIV + 65 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL - 55 + + 2 / + 65 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT DISTINCT - 22 + + ( + + ( + COUNT( * ) ) )
----
-21

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT - 22 + + ( + + ( + COUNT ( * ) ) )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL 41 + + - 42 * MAX( + 93 ) AS col1
----
-3865

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL 41 + + - 42 * MAX ( + 93 ) AS col1
----
-3865

query I rowsort
SELECT DISTINCT - 62 + - 34
----
-96

query I rowsort
SELECT ALL + 3 + - 53 * + 1 * 32
----
-1693

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT ( - 19 ) + + COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-3611
SELECT ( - 19 ) + + COUNT ( * ) AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3612
SELECT - 74 + - - CASE + + 18 WHEN CAST( CAST( 9 AS SIGNED ) AS SIGNED ) THEN 54 * - + 32 WHEN - - CAST( + 65 AS SIGNED ) * + + 91 THEN + + SUM( ALL - 47 ) + 11 ELSE COUNT( * ) END + + 27 * - 83 col1
----
-2314

skipif mysql # not compatible
query I rowsort label-3612
SELECT - 74 + - - CASE + + 18 WHEN CAST ( CAST ( 9 AS INTEGER ) AS INTEGER ) THEN 54 * - + 32 WHEN - - CAST ( + 65 AS INTEGER ) * + + 91 THEN + + SUM ( ALL - 47 ) + 11 ELSE COUNT ( * ) END + + 27 * - 83 col1
----
-2314

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3613
SELECT ALL NULLIF ( - - 80, - NULLIF ( + 10, + 68 * - ( + 4 ) * - COUNT( + + 66 ) * NULLIF ( + 58, 9 + CAST( NULL AS DECIMAL ) ) + 35 + COUNT( * ) DIV + SUM( - 24 * 93 - 18 DIV 10 ) ) ) DIV 49
----
1

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL NULLIF ( - - 80, - NULLIF ( + 10, + 68 * - ( + 4 ) * - COUNT ( + + 66 ) * NULLIF ( + 58, 9 + CAST ( NULL AS REAL ) ) + 35 + COUNT ( * ) / + SUM ( - 24 * 93 - 18 / 10 ) ) ) / 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT DISTINCT - NULLIF ( 38, - 21 ) * + - COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT - NULLIF ( 38, - 21 ) * + - COUNT ( * ) AS col2
----
38

query I rowsort
SELECT DISTINCT - 51 AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3616
SELECT 89 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT 89 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 25 * ( - 99 ) AS col1, - 9
----
-2475
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ( + 3 ) + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3618
SELECT ( + 3 ) + + COUNT ( * )
----
4

query I rowsort
SELECT DISTINCT 40 * + 80 AS col1
----
3200

query II rowsort
SELECT 24 * + 21 * 42, 5 col2
----
21168
5

query II rowsort
SELECT ALL - 69 AS col1, 90 * + + 60 col0
----
-69
5400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3622
SELECT DISTINCT - 75 AS col2, 97 DIV - COUNT( * ) - + ( - - 17 )
----
-75
-114

skipif mysql # not compatible
query II rowsort label-3622
SELECT DISTINCT - 75 AS col2, 97 / - COUNT ( * ) - + ( - - 17 )
----
-75
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3623
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) * + 85 * + COUNT( DISTINCT - + 38 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 85 * + COUNT ( DISTINCT - + 38 ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT DISTINCT + CAST( - 14 AS SIGNED ) * - CAST( - 48 AS SIGNED ) AS col0
----
-672

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT + CAST ( - 14 AS INTEGER ) * - CAST ( - 48 AS INTEGER ) AS col0
----
-672

query I rowsort
SELECT 33 - 70
----
-37

query I rowsort
SELECT ALL + 59 * - + 54 AS col2
----
-3186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3628
SELECT 39 + - - SUM( 91 ) + + CAST( - 14 AS SIGNED ) AS col1
----
116

skipif mysql # not compatible
query I rowsort label-3628
SELECT 39 + - - SUM ( 91 ) + + CAST ( - 14 AS INTEGER ) AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL + NULLIF ( - - 15, 35 * - + 66 + + - COALESCE ( - - 52, 43 / 38, - COUNT( * ) ) + + COUNT( * ) + 76 - + + 86 + + COUNT( * ) / - ( - 61 ) * - COALESCE ( 66, + 69 + 37 ) ) + + 25 * 12
----
315

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL + NULLIF ( - - 15, 35 * - + 66 + + - COALESCE ( - - 52, 43 / 38, - COUNT ( * ) ) + + COUNT ( * ) + 76 - + + 86 + + COUNT ( * ) / - ( - 61 ) * - COALESCE ( 66, + 69 + 37 ) ) + + 25 * 12
----
315

query I rowsort
SELECT - 15 + 85
----
70

query I rowsort
SELECT + 10 * + 65 * + - 25 + + 83 AS col2
----
-16167

query II rowsort
SELECT ALL + 45, - 39 + + 41 + + 87 + + 93 * 50 * - + 81 AS col1
----
45
-376561

onlyif mysql # aggregate syntax: 
query II rowsort label-3633
SELECT COUNT( * ), 96 + - 91 AS col1
----
1
5

skipif mysql # not compatible
query II rowsort label-3633
SELECT COUNT ( * ), 96 + - 91 AS col1
----
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT MIN( 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3634
SELECT MIN ( 28 ) AS col1
----
28

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

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

query I rowsort
SELECT - + ( - 70 ) * - 56
----
-3920

query I rowsort
SELECT + - 82 * - 13
----
1066

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3638
SELECT DISTINCT - 76 DIV 71 * - CAST( - ( + 51 ) AS SIGNED ) - + 64
----
-115

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT - 76 / 71 * - CAST ( - ( + 51 ) AS INTEGER ) - + 64
----
-115

query I rowsort
SELECT ALL + 43 * - 16
----
-688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3640
SELECT - - 38 DIV - COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3640
SELECT - - 38 / - COUNT ( * ) AS col2
----
-38

query I rowsort
SELECT DISTINCT + 17 col2
----
17

query I rowsort
SELECT - + NULLIF ( - + 80, + 41 / 57 + + 63 + - - 3 ) AS col2
----
80

query II rowsort
SELECT ALL 95 AS col0, 49
----
95
49

query I rowsort
SELECT - 89 - - - 4 + + + 4 * - - 68 AS col1
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3645
SELECT - + COUNT( ALL - CAST( + - 57 AS SIGNED ) ) AS col2, - 61 AS col2
----
-1
-61

skipif mysql # not compatible
query II rowsort label-3645
SELECT - + COUNT ( ALL - CAST ( + - 57 AS INTEGER ) ) AS col2, - 61 AS col2
----
-1
-61

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3647
SELECT ALL + MIN( + - 73 ) - COUNT( * ) AS col2, ( - 76 ) * - 94 * + 39 + + 98 DIV - - 36
----
-74
278618

skipif mysql # not compatible
query II rowsort label-3647
SELECT ALL + MIN ( + - 73 ) - COUNT ( * ) AS col2, ( - 76 ) * - 94 * + 39 + + 98 / - - 36
----
-74
278618

query I rowsort
SELECT - - 86 * + 51 + - - 4
----
4390

query I rowsort
SELECT - + 11 - + + 12 * + 16 * + ( - 87 ) + - 47 * 88
----
12557

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

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

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

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

skipif mysql # not compatible
query II rowsort label-3652
SELECT ( + COUNT ( * ) ) AS col2, 76 AS col2
----
1
76

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

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

query I rowsort
SELECT + ( ( + + 87 ) ) + ( 59 ) AS col0
----
146

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

query I rowsort
SELECT ALL 45 * - - 12 AS col1
----
540

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3658
SELECT + 57 DIV + + 72 AS col2, COUNT( * ) + - 67 DIV - NULLIF ( - - 59, - 13 )
----
0
2

skipif mysql # not compatible
query II rowsort label-3658
SELECT + 57 / + + 72 AS col2, COUNT ( * ) + - 67 / - NULLIF ( - - 59, - 13 )
----
0
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3659
SELECT ALL - CAST( NULL AS SIGNED ) * - CASE - COUNT( * ) WHEN + 11 THEN + 46 * - + 59 END + + 10 - + 16 + + CAST( + + 94 AS SIGNED ) * + MAX( ALL + 64 ) * - COALESCE ( - - COUNT( * ), 27, + 22 + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL - CAST ( NULL AS INTEGER ) * - CASE - COUNT ( * ) WHEN + 11 THEN + 46 * - + 59 END + + 10 - + 16 + + CAST ( + + 94 AS INTEGER ) * + MAX ( ALL + 64 ) * - COALESCE ( - - COUNT ( * ), 27, + 22 + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3660
SELECT CASE - 91 WHEN 46 THEN NULL WHEN + CAST( - + 31 AS DECIMAL ) THEN NULL ELSE + 5 * + + MIN( - - 16 ) + + 27 - MAX( DISTINCT - + 63 ) DIV + + 64 END AS col1
----
107

skipif mysql # not compatible
query I rowsort label-3660
SELECT CASE - 91 WHEN 46 THEN NULL WHEN + CAST ( - + 31 AS REAL ) THEN NULL ELSE + 5 * + + MIN ( - - 16 ) + + 27 - MAX ( DISTINCT - + 63 ) / + + 64 END AS col1
----
107

query II rowsort
SELECT DISTINCT + 59 * - 5 + - NULLIF ( - CASE - 33 WHEN + 37 THEN - + 21 END, - 82 + - - 98 ) col0, 99
----
NULL
99

query I rowsort
SELECT ALL - 9 * - 79 + 8 AS col1
----
719

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT ALL 41 * + + 15 + - COUNT( * ) + - 56 + COUNT( * ) * 0 AS col1
----
558

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL 41 * + + 15 + - COUNT ( * ) + - 56 + COUNT ( * ) * 0 AS col1
----
558

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT + - MIN( ( 88 ) ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3666
SELECT + - MIN ( ( 88 ) ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT + + 17 - + + 96 * 35 * + COUNT( * ) * - + 81 AS col1
----
272177

skipif mysql # not compatible
query I rowsort label-3667
SELECT + + 17 - + + 96 * 35 * + COUNT ( * ) * - + 81 AS col1
----
272177

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT - 93 + SUM( DISTINCT - 11 ) * 69 + 46
----
-806

skipif mysql # not compatible
query I rowsort label-3668
SELECT - 93 + SUM ( DISTINCT - 11 ) * 69 + 46
----
-806

query I rowsort
SELECT + 4 * - 55 * 0 + + 76 * - 13 AS col0
----
-988

query I rowsort
SELECT - - 76 * - 4 AS col2
----
-304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3671
SELECT + 73 + - + 44 + - + NULLIF ( CAST( 40 AS SIGNED ), - 1 * - + 49 + + 3 ) * - COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-3671
SELECT + 73 + - + 44 + - + NULLIF ( CAST ( 40 AS INTEGER ), - 1 * - + 49 + + 3 ) * - COUNT ( * ) AS col2
----
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT - - NULLIF ( 3, COUNT( * ) * + 91 ) + + 24 col2
----
27

skipif mysql # not compatible
query I rowsort label-3673
SELECT - - NULLIF ( 3, COUNT ( * ) * + 91 ) + + 24 col2
----
27

query I rowsort
SELECT ALL - - 7 - - - 92
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT - + CAST( NULL AS SIGNED ) * + CASE 64 WHEN - - 28 + + - 69 THEN NULL WHEN - 62 THEN 56 * + 9 - - 27 + 66 / COALESCE ( 33, 59, + 87, + 73 ) ELSE NULL END * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT - + CAST ( NULL AS INTEGER ) * + CASE 64 WHEN - - 28 + + - 69 THEN NULL WHEN - 62 THEN 56 * + 9 - - 27 + 66 / COALESCE ( 33, 59, + 87, + 73 ) ELSE NULL END * - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT - CASE + 63 WHEN - 70 * - - COUNT( * ) THEN 22 WHEN - 75 THEN NULL WHEN + 40 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3676
SELECT - CASE + 63 WHEN - 70 * - - COUNT ( * ) THEN 22 WHEN - 75 THEN NULL WHEN + 40 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - - 40 + + + 97 + - + COALESCE ( - - 93, + 63, - 24 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT + - CAST( 27 AS SIGNED ) * - - 88 AS col2
----
-2376

skipif mysql # not compatible
query I rowsort label-3678
SELECT + - CAST ( 27 AS INTEGER ) * - - 88 AS col2
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT - 35 * SUM( 76 )
----
-2660

skipif mysql # not compatible
query I rowsort label-3679
SELECT - 35 * SUM ( 76 )
----
-2660

query I rowsort
SELECT - 93 + + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL ( COUNT( ALL - 53 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL ( COUNT ( ALL - 53 ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT DISTINCT + 76 DIV - 52
----
-1

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT + 76 / - 52
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT - CASE - COUNT( * ) WHEN + COALESCE ( - - 71, - 14 * - - ( 42 ) + + - 28 ) THEN SUM( - ( + - 66 ) ) * + 18 + - + 89 + - CASE + + 94 WHEN 14 * 66 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + 54 END WHEN 5 * - 30 + 79 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT - CASE - COUNT ( * ) WHEN + COALESCE ( - - 71, - 14 * - - ( 42 ) + + - 28 ) THEN SUM ( - ( + - 66 ) ) * + 18 + - + 89 + - CASE + + 94 WHEN 14 * 66 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + 54 END WHEN 5 * - 30 + 79 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT - ( + - 44 ) + - + 67 * - 26 * - 23 AS col0
----
-40022

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3688
SELECT 4 DIV - + 26 * + - 63 + + MIN( - + 33 ) AS col0, COUNT( * )
----
-33
1

skipif mysql # not compatible
query II rowsort label-3688
SELECT 4 / - + 26 * + - 63 + + MIN ( - + 33 ) AS col0, COUNT ( * )
----
-33
1

query II rowsort
SELECT DISTINCT + 91 AS col2, 53 * + + 16
----
91
848

query I rowsort
SELECT - 45 + 8
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT ALL + ( SUM( DISTINCT - 20 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL + ( SUM ( DISTINCT - 20 ) )
----
-20

query I rowsort
SELECT 43 * - NULLIF ( + 7, + 97 ) AS col2
----
-301

query I rowsort
SELECT ALL - ( 19 ) + + + 31
----
12

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

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

query I rowsort
SELECT ALL - 59 + - 17 AS col0
----
-76

query I rowsort
SELECT ALL 67 + 34 AS col2
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3697
SELECT 41 AS col1, + 19 DIV - COUNT( ALL + - 48 )
----
41
-19

skipif mysql # not compatible
query II rowsort label-3697
SELECT 41 AS col1, + 19 / - COUNT ( ALL + - 48 )
----
41
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3698
SELECT + 87 * - - COUNT( * ) + - COALESCE ( COUNT( * ), COALESCE ( - 87, + NULLIF ( - 51, 11 + - + SUM( 42 ) DIV + + 92 DIV + - 20 DIV + COUNT( * ) + 98 ), 64 ) DIV + ( 26 ) + COUNT( * ) * - COUNT( * ), + 24 ) + 6 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3698
SELECT + 87 * - - COUNT ( * ) + - COALESCE ( COUNT ( * ), COALESCE ( - 87, + NULLIF ( - 51, 11 + - + SUM ( 42 ) / + + 92 / + - 20 / + COUNT ( * ) + 98 ), 64 ) / + ( 26 ) + COUNT ( * ) * - COUNT ( * ), + 24 ) + 6 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT DISTINCT 97 + ( + NULLIF ( + - CASE + + MIN( - + 29 ) WHEN + 20 THEN NULL WHEN NULLIF ( + + 81, - 18 ) THEN + 89 + 3 + + ( - COUNT( * ) ) / + 39 * + 51 END, + 63 ) ) + 27 * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT 97 + ( + NULLIF ( + - CASE + + MIN ( - + 29 ) WHEN + 20 THEN NULL WHEN NULLIF ( + + 81, - 18 ) THEN + 89 + 3 + + ( - COUNT ( * ) ) / + 39 * + 51 END, + 63 ) ) + 27 * + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT SUM( DISTINCT + 51 ) + - 76 + + 30 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3700
SELECT SUM ( DISTINCT + 51 ) + - 76 + + 30 AS col1
----
5

query I rowsort
SELECT ALL 73 + - - 49 AS col1
----
122

query I rowsort
SELECT ALL - + 85 AS col0
----
-85

query I rowsort
SELECT + 68 * + + 38 + - 45
----
2539

query I rowsort
SELECT ALL 8 * + 14
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-3705
SELECT ALL - - 52, + 54 * - 42 - - - 58 + - COUNT( * ) + + - 65 * + 43 AS col1
----
52
-5122

skipif mysql # not compatible
query II rowsort label-3705
SELECT ALL - - 52, + 54 * - 42 - - - 58 + - COUNT ( * ) + + - 65 * + 43 AS col1
----
52
-5122

onlyif mysql # aggregate syntax: 
query II rowsort label-3706
SELECT - 91 + + 82 * + + 17 col2, COUNT( * )
----
1303
1

skipif mysql # not compatible
query II rowsort label-3706
SELECT - 91 + + 82 * + + 17 col2, COUNT ( * )
----
1303
1

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

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

query I rowsort
SELECT 41 * 97 * - 30
----
-119310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3709
SELECT DISTINCT + MAX( ALL + NULLIF ( 66, 88 * + 20 ) ) DIV - 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT + MAX ( ALL + NULLIF ( 66, 88 * + 20 ) ) / - 80 AS col1
----
0

query II rowsort
SELECT DISTINCT 40, 21 + 49 AS col1
----
40
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL + ( SUM( DISTINCT - + 47 ) ) - 4 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL + ( SUM ( DISTINCT - + 47 ) ) - 4 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3712
SELECT + ( COUNT( * ) ) + - 13, COUNT( * ) * - - 8 AS col0
----
-12
8

skipif mysql # not compatible
query II rowsort label-3712
SELECT + ( COUNT ( * ) ) + - 13, COUNT ( * ) * - - 8 AS col0
----
-12
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3713
SELECT COUNT( * ) * + + CAST( + 85 AS SIGNED ), 57 AS col2
----
85
57

skipif mysql # not compatible
query II rowsort label-3713
SELECT COUNT ( * ) * + + CAST ( + 85 AS INTEGER ), 57 AS col2
----
85
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3714
SELECT DISTINCT - 42 * 12 * 96 * + 30 + 8 DIV + + 3 AS col0
----
-1451518

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT - 42 * 12 * 96 * + 30 + 8 / + + 3 AS col0
----
-1451518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3715
SELECT 90 * - CAST( + 7 AS SIGNED ) AS col2
----
-630

skipif mysql # not compatible
query I rowsort label-3715
SELECT 90 * - CAST ( + 7 AS INTEGER ) AS col2
----
-630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT 20 DIV + 43 * + MIN( + 97 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3716
SELECT 20 / + 43 * + MIN ( + 97 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3717
SELECT DISTINCT 17 * + - COUNT( * ) DIV + - 80 * - 61
----
0

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT 17 * + - COUNT ( * ) / + - 80 * - 61
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT ALL + SUM( ALL - 27 ) + + + 55 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL + SUM ( ALL - 27 ) + + + 55 AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3720
SELECT CASE 3 WHEN 22 THEN NULL ELSE - 60 + MAX( ( 23 ) ) END + - 8 + + - CAST( NULL AS SIGNED ) * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT CASE 3 WHEN 22 THEN NULL ELSE - 60 + MAX ( ( 23 ) ) END + - 8 + + - CAST ( NULL AS INTEGER ) * 42
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3721
SELECT - 15 AS col0, + COUNT( * ) + - + 98 + + 17 DIV + ( - + 60 ) * 39 * + ( + - MIN( + 44 ) ) + - + 18 * + ( ( - 82 ) ) - + 0 * + + 57
----
-15
1379

skipif mysql # not compatible
query II rowsort label-3721
SELECT - 15 AS col0, + COUNT ( * ) + - + 98 + + 17 / + ( - + 60 ) * 39 * + ( + - MIN ( + 44 ) ) + - + 18 * + ( ( - 82 ) ) - + 0 * + + 57
----
-15
1379

query I rowsort
SELECT 24 - 2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3723
SELECT ALL + COUNT( * ) DIV 10 * + 28
----
0

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL + COUNT ( * ) / 10 * + 28
----
0

query I rowsort
SELECT 33 - 6 AS col2
----
27

query II rowsort
SELECT ALL 24 AS col1, 33 * - 75 * - + 11 AS col0
----
24
27225

query I rowsort
SELECT 43 - + 37 * + + 49
----
-1770

query II rowsort
SELECT 32 AS col1, 20
----
32
20

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3729
SELECT ALL - CASE + + 3 WHEN AVG ( - 81 ) THEN + 30 / - COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE + 34 END + + SUM( ALL - - ( - CAST( NULL AS SIGNED ) ) ), 99 + - MIN( DISTINCT - 45 ) AS col0
----
NULL
144

skipif mysql # not compatible
query II rowsort label-3729
SELECT ALL - CASE + + 3 WHEN AVG ( - 81 ) THEN + 30 / - COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE + 34 END + + SUM ( ALL - - ( - CAST ( NULL AS INTEGER ) ) ), 99 + - MIN ( DISTINCT - 45 ) AS col0
----
NULL
144

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3730
SELECT 41, 68 * + CAST( NULL AS SIGNED ) AS col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-3730
SELECT 41, 68 * + CAST ( NULL AS INTEGER ) AS col0
----
41
NULL

query I rowsort
SELECT 33 + + + 20
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3732
SELECT + 83 DIV - 21 - - 10 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3732
SELECT + 83 / - 21 - - 10 AS col1
----
7

query II rowsort
SELECT + 93 AS col0, 19 AS col0
----
93
19

query I rowsort
SELECT 78 - - 25 AS col2
----
103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3735
SELECT ALL - 37 * CASE 70 WHEN + 18 THEN + + CAST( NULL AS DECIMAL ) END / 32 + 11 * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL - 37 * CASE 70 WHEN + 18 THEN + + CAST ( NULL AS REAL ) END / 32 + 11 * 19
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3737
SELECT + 49 / - + 9 / + - CAST( NULL AS DECIMAL ) + + 60 + - 37 * - ( + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3737
SELECT + 49 / - + 9 / + - CAST ( NULL AS REAL ) + + 60 + - 37 * - ( + 89 )
----
NULL

query I rowsort
SELECT ALL + 36 * + 61
----
2196

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT ALL + 14 - - + COALESCE ( + ( 3 ), - + COALESCE ( ( - + ( - - 8 ) ), + + 22 ), + + 32 + COALESCE ( 68, 7 * - 89 * + - 32 + + 81 ) + COALESCE ( - 26 + 90 * COUNT( * ), + ( + 83 ) * 58, - 55, - COUNT( * ) ) * - NULLIF ( - 82 + - 59, 60 ) )
----
17

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL + 14 - - + COALESCE ( + ( 3 ), - + COALESCE ( ( - + ( - - 8 ) ), + + 22 ), + + 32 + COALESCE ( 68, 7 * - 89 * + - 32 + + 81 ) + COALESCE ( - 26 + 90 * COUNT ( * ), + ( + 83 ) * 58, - 55, - COUNT ( * ) ) * - NULLIF ( - 82 + - 59, 60 ) )
----
17

query II rowsort
SELECT ALL - 66, - 99 AS col1
----
-66
-99

query I rowsort
SELECT ALL - + 58
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3743
SELECT CASE - + COUNT( * ) WHEN - 70 THEN - - 32 ELSE NULL END * + 52 + - 2 AS col1, + 17 DIV + ( 18 )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3743
SELECT CASE - + COUNT ( * ) WHEN - 70 THEN - - 32 ELSE NULL END * + 52 + - 2 AS col1, + 17 / + ( 18 )
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3744
SELECT 89 + - 83 * + - 20 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT 89 + - 83 * + - 20 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT 35 * - 90 * - + CASE 44 WHEN ( + 80 ) THEN - - COUNT( * ) * - - 91 * + 80 + COALESCE ( - CASE + - 41 WHEN - 81 THEN + + 50 + + + 95 END, 62 ) DIV ( 76 + + 14 ) WHEN 12 * ( 2 ) THEN + 17 ELSE COALESCE ( 95, 23, 41 ) END + - 4 AS col0
----
299246

skipif mysql # not compatible
query I rowsort label-3745
SELECT 35 * - 90 * - + CASE 44 WHEN ( + 80 ) THEN - - COUNT ( * ) * - - 91 * + 80 + COALESCE ( - CASE + - 41 WHEN - 81 THEN + + 50 + + + 95 END, 62 ) / ( 76 + + 14 ) WHEN 12 * ( 2 ) THEN + 17 ELSE COALESCE ( 95, 23, 41 ) END + - 4 AS col0
----
299246

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT + 91 + - + COUNT( ALL - + 33 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-3748
SELECT + 91 + - + COUNT ( ALL - + 33 ) AS col0
----
90

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

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

query II rowsort
SELECT DISTINCT 20 AS col0, + 51 AS col1
----
20
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ALL + MIN( DISTINCT + - 43 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL + MIN ( DISTINCT + - 43 ) col1
----
-43

query II rowsort
SELECT DISTINCT 4 AS col2, - 90 AS col2
----
4
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3753
SELECT 34 - - 52 + - - 59 * 14 * CAST( NULL AS SIGNED ) + 10 + 13 / 55 * - 83 * - COUNT( * ) * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT 34 - - 52 + - - 59 * 14 * CAST ( NULL AS INTEGER ) + 10 + 13 / 55 * - 83 * - COUNT ( * ) * - 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3754
SELECT COUNT( * ) + 58 - COUNT( * ) * 5 DIV - 49 * - 73 + 54 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-3754
SELECT COUNT ( * ) + 58 - COUNT ( * ) * 5 / - 49 * - 73 + 54 AS col2
----
113

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT DISTINCT CASE + - ( 81 ) WHEN + - 93 * + COUNT( * ) * + 84 THEN + + 98 + - + 58 + - 7 * - MIN( + - 19 ) * - 28 END + 95 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT CASE + - ( 81 ) WHEN + - 93 * + COUNT ( * ) * + 84 THEN + + 98 + - + 58 + - 7 * - MIN ( + - 19 ) * - 28 END + 95 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ( + COALESCE ( + 39, + CASE + 12 WHEN - 56 + + 32 * - + COUNT( * ) THEN NULL ELSE - 67 END ) ) + - 80 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3757
SELECT ( + COALESCE ( + 39, + CASE + 12 WHEN - 56 + + 32 * - + COUNT ( * ) THEN NULL ELSE - 67 END ) ) + - 80 AS col1
----
-41

query I rowsort
SELECT DISTINCT + 14 * - 24 AS col2
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT - SUM( ALL + 3 ) + + CASE ( - + 66 ) WHEN - - 20 / + - NULLIF ( + - 41, - 88 ) THEN + 53 WHEN + + 59 * ( 28 ) + + - CASE + + MAX( DISTINCT + 36 ) WHEN - + 39 * + 53 THEN - 7 ELSE + AVG ( ALL 87 ) * ( + 36 ) + 79 END + + 15 + 32 THEN NULL END + SUM( DISTINCT 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT - SUM ( ALL + 3 ) + + CASE ( - + 66 ) WHEN - - 20 / + - NULLIF ( + - 41, - 88 ) THEN + 53 WHEN + + 59 * ( 28 ) + + - CASE + + MAX ( DISTINCT + 36 ) WHEN - + 39 * + 53 THEN - 7 ELSE + AVG ( ALL 87 ) * ( + 36 ) + 79 END + + 15 + 32 THEN NULL END + SUM ( DISTINCT 69 ) AS col2
----
NULL

query I rowsort
SELECT ALL ( + 95 ) + + 8 AS col2
----
103

query I rowsort
SELECT + 86 + - ( - 42 ) - - + 51 * - - 84
----
4412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3762
SELECT - NULLIF ( 72, + CAST( ( 24 ) AS SIGNED ) )
----
-72

skipif mysql # not compatible
query I rowsort label-3762
SELECT - NULLIF ( 72, + CAST ( ( 24 ) AS INTEGER ) )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3763
SELECT - 50 + - 3 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT - 50 + - 3 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT - ( - 63 ) + - NULLIF ( + - ( + + 65 ), - MIN( DISTINCT - 19 ) + + - 36 ) AS col0
----
128

skipif mysql # not compatible
query I rowsort label-3764
SELECT - ( - 63 ) + - NULLIF ( + - ( + + 65 ), - MIN ( DISTINCT - 19 ) + + - 36 ) AS col0
----
128

query I rowsort
SELECT + COALESCE ( + 62, + 30 ) * 69
----
4278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3766
SELECT - CAST( NULL AS SIGNED ) * - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT - CAST ( NULL AS INTEGER ) * - 78 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL 35 * COUNT( * ) - 40 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL 35 * COUNT ( * ) - 40 AS col0
----
-5

query I rowsort
SELECT NULLIF ( - 4, 23 ) AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3770
SELECT ALL - CAST( - 54 AS SIGNED ) DIV - 31 + 69 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL - CAST ( - 54 AS INTEGER ) / - 31 + 69 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT 54 * + - 40 + - COUNT( * ) + - 81
----
-2242

skipif mysql # not compatible
query I rowsort label-3771
SELECT 54 * + - 40 + - COUNT ( * ) + - 81
----
-2242

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL + NULLIF ( - 13, - 3 + COUNT( * ) + + + COALESCE ( + 18, + - ( - - 6 ) + - AVG ( - - 42 ) ) * - - COUNT( * ) ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL + NULLIF ( - 13, - 3 + COUNT ( * ) + + + COALESCE ( + 18, + - ( - - 6 ) + - AVG ( - - 42 ) ) * - - COUNT ( * ) ) AS col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-3773
SELECT - 86 DIV 25
----
-3

skipif mysql # not compatible
query I rowsort label-3773
SELECT - 86 / 25
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT - NULLIF ( - 61, - 51 ) * - + COUNT( + - 38 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-3774
SELECT - NULLIF ( - 61, - 51 ) * - + COUNT ( + - 38 ) AS col2
----
-61

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3776
SELECT DISTINCT + + CAST( COUNT( * ) AS SIGNED ) * + + 47 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT + + CAST ( COUNT ( * ) AS INTEGER ) * + + 47 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT ALL + CASE - 42 WHEN - 81 + - COUNT( * ) * + COUNT( * ) + + COUNT( * ) THEN NULL WHEN 12 / 70 THEN + COUNT( * ) WHEN 67 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL + CASE - 42 WHEN - 81 + - COUNT ( * ) * + COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN 12 / 70 THEN + COUNT ( * ) WHEN 67 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3778
SELECT - 92 * + + 56 * + 75 * CAST( - - COUNT( * ) AS SIGNED ) + - 78 AS col1
----
-386478

skipif mysql # not compatible
query I rowsort label-3778
SELECT - 92 * + + 56 * + 75 * CAST ( - - COUNT ( * ) AS INTEGER ) + - 78 AS col1
----
-386478

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL + MAX( DISTINCT ( + 40 ) ) * 73
----
2920

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + MAX ( DISTINCT ( + 40 ) ) * 73
----
2920

query I rowsort
SELECT - - ( + 19 ) + + 32
----
51

query I rowsort
SELECT ( 63 )
----
63

query I rowsort
SELECT + - 3 * + 19
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT ALL + + 55 * - + 82 * 76 * - - 84 + + - ( - SUM( ALL - - ( - - 95 ) ) ) AS col2
----
-28791745

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL + + 55 * - + 82 * 76 * - - 84 + + - ( - SUM ( ALL - - ( - - 95 ) ) ) AS col2
----
-28791745

query I rowsort
SELECT ALL + 14 * + 28 + + 61 + - 71 AS col2
----
382

query II rowsort
SELECT + 12 + - 98 AS col1, 28 col2
----
-86
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3786
SELECT 12 * COUNT( DISTINCT + - CAST( - 17 AS SIGNED ) ) + - 52
----
-40

skipif mysql # not compatible
query I rowsort label-3786
SELECT 12 * COUNT ( DISTINCT + - CAST ( - 17 AS INTEGER ) ) + - 52
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT ALL + - 23 * + COUNT( * ) + 79
----
56

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL + - 23 * + COUNT ( * ) + 79
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3788
SELECT - 34 DIV - 61 * - + 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3788
SELECT - 34 / - 61 * - + 19 AS col1
----
0

query I rowsort
SELECT + 40 + + 61
----
101

query I rowsort
SELECT - 52 * + 55
----
-2860

query I rowsort
SELECT - ( 29 )
----
-29

query I rowsort
SELECT ALL COALESCE ( 66, 98, + + 30 * - 73 ) + - + 24
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT - MAX( - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-3793
SELECT - MAX ( - 84 )
----
84

query I rowsort
SELECT ALL ( - 15 ) AS col1
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-3795
SELECT ALL - ( + + 29 ) DIV 53 DIV 99, ( + - 24 ) col2
----
0
-24

skipif mysql # not compatible
query II rowsort label-3795
SELECT ALL - ( + + 29 ) / 53 / 99, ( + - 24 ) col2
----
0
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT + 4 DIV + 63 col0
----
0

skipif mysql # not compatible
query I rowsort label-3796
SELECT + 4 / + 63 col0
----
0

query II rowsort
SELECT 66 AS col0, + 68
----
66
68

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

skipif mysql # not compatible
query II rowsort label-3798
SELECT DISTINCT COUNT ( * ), - 72 AS col0
----
1
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3799
SELECT - ( + MAX( - + 96 ) ) col1, + 22 * + 36 AS col2
----
96
792

skipif mysql # not compatible
query II rowsort label-3799
SELECT - ( + MAX ( - + 96 ) ) col1, + 22 * + 36 AS col2
----
96
792

query I rowsort
SELECT ALL 68 - 61 + + + ( + 60 ) + 57 * 77
----
4456

query I rowsort
SELECT + 74 * ( - ( - 0 ) ) * - 96 * + 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3802
SELECT - COUNT( * ), CAST( NULL AS SIGNED ) - - 46 - 67 / - - 68 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3802
SELECT - COUNT ( * ), CAST ( NULL AS INTEGER ) - - 46 - 67 / - - 68 AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT + 45 + - - 50 + + - COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3803
SELECT + 45 + - - 50 + + - COUNT ( * ) AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3804
SELECT + CASE + 2 WHEN + 93 THEN - COUNT( * ) * - 92 * + 54 ELSE 83 + - 71 END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT + CASE + 2 WHEN + 93 THEN - COUNT ( * ) * - 92 * + 54 ELSE 83 + - 71 END * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 57 AS col0, 19
----
57
19

onlyif mysql # DIV for integer division: 
query II rowsort label-3806
SELECT 3 AS col1, - NULLIF ( + - 37, - - 36 ) DIV - + 97 * + - 85 + + 16
----
3
16

skipif mysql # not compatible
query II rowsort label-3806
SELECT 3 AS col1, - NULLIF ( + - 37, - - 36 ) / - + 97 * + - 85 + + 16
----
3
16

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3808
SELECT + COALESCE ( + - 37, + - 55, CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + - + 19 + + - 54, - NULLIF ( - 9, COALESCE ( + COUNT( * ), - 36 * CASE + 95 WHEN - - CASE - 42 WHEN COUNT( * ) THEN NULL WHEN 17 THEN NULL ELSE + CAST( NULL AS SIGNED ) + COALESCE ( 47, 10 ) END THEN - ( 74 ) * MAX( - 67 + 33 ) WHEN 62 THEN NULL ELSE NULL END / - COALESCE ( 63 + + 85 * 17, 5 + 32, - 45 ) - + 25 ) ) - COUNT( * ) ) - - 27 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT + COALESCE ( + - 37, + - 55, CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + - + 19 + + - 54, - NULLIF ( - 9, COALESCE ( + COUNT ( * ), - 36 * CASE + 95 WHEN - - CASE - 42 WHEN COUNT ( * ) THEN NULL WHEN 17 THEN NULL ELSE + CAST ( NULL AS INTEGER ) + COALESCE ( 47, 10 ) END THEN - ( 74 ) * MAX ( - 67 + 33 ) WHEN 62 THEN NULL ELSE NULL END / - COALESCE ( 63 + + 85 * 17, 5 + 32, - 45 ) - + 25 ) ) - COUNT ( * ) ) - - 27 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 40 col1
----
40

query I rowsort
SELECT ALL NULLIF ( + + 89, 4 + 80 ) col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT + CAST( 50 AS SIGNED ) + 6 + 28
----
84

skipif mysql # not compatible
query I rowsort label-3811
SELECT + CAST ( 50 AS INTEGER ) + 6 + 28
----
84

query I rowsort
SELECT ALL 73 * 58 AS col2
----
4234

query I rowsort
SELECT + 57 * 23 AS col0
----
1311

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT + 87 * ( + - COUNT( * ) ) - + 93
----
-180

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT + 87 * ( + - COUNT ( * ) ) - + 93
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT + NULLIF ( COALESCE ( + COUNT( ALL + + 21 ), 54, - + 25 ), - AVG ( - 37 ) * - 18 + - 24 + + 26 )
----
1

skipif mysql # not compatible
query I rowsort label-3815
SELECT + NULLIF ( COALESCE ( + COUNT ( ALL + + 21 ), 54, - + 25 ), - AVG ( - 37 ) * - 18 + - 24 + + 26 )
----
1

query I rowsort
SELECT + + 48 * + + 93 AS col1
----
4464

query I rowsort
SELECT - ( 44 ) - - + 44 AS col1
----
0

query II rowsort
SELECT + 53, 63 AS col2
----
53
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3819
SELECT DISTINCT - 67 DIV 71 + + - 7 * + - 67
----
469

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT - 67 / 71 + + - 7 * + - 67
----
469

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT - - COUNT( * ) + MIN( 47 ) - + 69 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3820
SELECT - - COUNT ( * ) + MIN ( 47 ) - + 69 AS col1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3821
SELECT ALL - 88 DIV - 34 + - 36 DIV 73 * - + 99 + - 40 * - + 86 AS col1
----
3442

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL - 88 / - 34 + - 36 / 73 * - + 99 + - 40 * - + 86 AS col1
----
3442

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT COALESCE ( + - COUNT( * ), + COALESCE ( 41, 82 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3822
SELECT COALESCE ( + - COUNT ( * ), + COALESCE ( 41, 82 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL + 59 * - 66 * MAX( - 89 ) + + 22 + COUNT( * ) + + 89 AS col0
----
346678

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL + 59 * - 66 * MAX ( - 89 ) + + 22 + COUNT ( * ) + + 89 AS col0
----
346678

query I rowsort
SELECT - - ( + 58 ) * 77
----
4466

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT DISTINCT - 10 DIV - 76 * - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT - 10 / - 76 * - 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3826
SELECT ALL + - 70 AS col2, COUNT( * ) - - + 51 col0
----
-70
52

skipif mysql # not compatible
query II rowsort label-3826
SELECT ALL + - 70 AS col2, COUNT ( * ) - - + 51 col0
----
-70
52

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT + - SUM( - 0 ) * + COUNT( + 29 ) + - + 69 + 56 AS col0, 96 + - 47
----
-13
49

skipif mysql # not compatible
query II rowsort label-3827
SELECT + - SUM ( - 0 ) * + COUNT ( + 29 ) + - + 69 + 56 AS col0, 96 + - 47
----
-13
49

query I rowsort
SELECT ALL - + ( + 35 ) * + 36 * + 66
----
-83160

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT - - 72 + 1 * - CASE + 61 WHEN - - 41 - + 15 THEN NULL WHEN 20 THEN NULL WHEN + + 28 THEN + - 16 WHEN + 35 THEN NULL ELSE - 74 + - - ( + MAX( DISTINCT + 74 ) ) * - COUNT( * ) * - + 34 * + - 48 END * + - 39
----
-4712766

skipif mysql # not compatible
query I rowsort label-3829
SELECT - - 72 + 1 * - CASE + 61 WHEN - - 41 - + 15 THEN NULL WHEN 20 THEN NULL WHEN + + 28 THEN + - 16 WHEN + 35 THEN NULL ELSE - 74 + - - ( + MAX ( DISTINCT + 74 ) ) * - COUNT ( * ) * - + 34 * + - 48 END * + - 39
----
-4712766

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3830
SELECT + COUNT( * ) AS col2, + CAST( NULL AS DECIMAL ) * - - ( + - 78 ) + COUNT( * ) * 25 / 9
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3830
SELECT + COUNT ( * ) AS col2, + CAST ( NULL AS REAL ) * - - ( + - 78 ) + COUNT ( * ) * 25 / 9
----
1
NULL

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

skipif mysql # not compatible
query I rowsort label-3831
SELECT - ( + + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL + COUNT( - 20 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL + COUNT ( - 20 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3833
SELECT DISTINCT - MIN( - - CAST( NULL AS SIGNED ) ) * + 14 * - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT - MIN ( - - CAST ( NULL AS INTEGER ) ) * + 14 * - + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT 49 * + ( - COUNT( * ) )
----
-49

skipif mysql # not compatible
query I rowsort label-3834
SELECT 49 * + ( - COUNT ( * ) )
----
-49

query I rowsort
SELECT 52 + 49
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT ALL 69 - - CAST( + 87 AS SIGNED )
----
156

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL 69 - - CAST ( + 87 AS INTEGER )
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT SUM( + + 54 ) - 22 * COUNT( * ) + + + 59
----
91

skipif mysql # not compatible
query I rowsort label-3837
SELECT SUM ( + + 54 ) - 22 * COUNT ( * ) + + + 59
----
91

query I rowsort
SELECT 68 + - - 29 AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3839
SELECT DISTINCT - 96 DIV - 31
----
3

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT - 96 / - 31
----
3

query I rowsort
SELECT ALL 9 * + 30
----
270

query I rowsort
SELECT ALL 26 * - - 53 * + 67 * - + 46 AS col2
----
-4246996

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3842
SELECT 77 + - 80 + - 70 + + 40, + 34 - + COUNT( * ) DIV - 73 AS col2
----
-33
34

skipif mysql # not compatible
query II rowsort label-3842
SELECT 77 + - 80 + - 70 + + 40, + 34 - + COUNT ( * ) / - 73 AS col2
----
-33
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT COUNT( DISTINCT + 76 ) * COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3843
SELECT COUNT ( DISTINCT + 76 ) * COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3844
SELECT + 69 + + 7 + + + COUNT( * ) * - 67 col1, CAST( - + 36 AS SIGNED ) AS col1
----
9
-36

skipif mysql # not compatible
query II rowsort label-3844
SELECT + 69 + + 7 + + + COUNT ( * ) * - 67 col1, CAST ( - + 36 AS INTEGER ) AS col1
----
9
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3845
SELECT 95 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-3845
SELECT 95 / - 49
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3846
SELECT - 78 DIV - ( - 1 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3846
SELECT - 78 / - ( - 1 ) AS col2
----
-78

query I rowsort
SELECT 85 * + 34
----
2890

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT ALL + COUNT( * ) + + 24 * + 3
----
73

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL + COUNT ( * ) + + 24 * + 3
----
73

query I rowsort
SELECT DISTINCT - + 70 AS col2
----
-70

query I rowsort
SELECT ALL 74 + - 55 + 12 AS col0
----
31

query I rowsort
SELECT - 44 + - 48 col2
----
-92

query I rowsort
SELECT DISTINCT + 6 + - + 71 AS col2
----
-65

query I rowsort
SELECT ALL 88 * + 46 + - 69 AS col0
----
3979

query I rowsort
SELECT + 38 * 21 + + - 84 col0
----
714

onlyif mysql # aggregate syntax: 
query II rowsort label-3855
SELECT DISTINCT - NULLIF ( + - NULLIF ( - 77, - 76 * + 55 ), - 76 ) + + + NULLIF ( - - 73, + + 36 * - - 56 ) AS col2, MAX( ALL 56 ) * - + COUNT( * )
----
-4
-56

skipif mysql # not compatible
query II rowsort label-3855
SELECT DISTINCT - NULLIF ( + - NULLIF ( - 77, - 76 * + 55 ), - 76 ) + + + NULLIF ( - - 73, + + 36 * - - 56 ) AS col2, MAX ( ALL 56 ) * - + COUNT ( * )
----
-4
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL + + 33 + CASE MAX( DISTINCT - - 14 ) WHEN - MAX( - + 16 ) * - 5 THEN NULL ELSE - + NULLIF ( - 60, 77 ) * 92 + - 91 END AS col0
----
5462

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL + + 33 + CASE MAX ( DISTINCT - - 14 ) WHEN - MAX ( - + 16 ) * - 5 THEN NULL ELSE - + NULLIF ( - 60, 77 ) * 92 + - 91 END AS col0
----
5462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT DISTINCT - - CAST( + - ( 38 ) AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT - - CAST ( + - ( 38 ) AS INTEGER )
----
-38

query I rowsort
SELECT ALL - 81 * + - 81
----
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT + COUNT( + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-3859
SELECT + COUNT ( + 30 )
----
1

query I rowsort
SELECT 21 * - 73 - 99 + + + 6
----
-1626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3861
SELECT ALL + 81 DIV + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL + 81 / + COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3862
SELECT ALL - 94 AS col1, MAX( - 47 ) * - 10
----
-94
470

skipif mysql # not compatible
query II rowsort label-3862
SELECT ALL - 94 AS col1, MAX ( - 47 ) * - 10
----
-94
470

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL + SUM( DISTINCT - 95 ) * + 14 AS col0
----
-1330

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL + SUM ( DISTINCT - 95 ) * + 14 AS col0
----
-1330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3864
SELECT ( + + 26 ) DIV + - COUNT( * ) + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-3864
SELECT ( + + 26 ) / + - COUNT ( * ) + COUNT ( * )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3865
SELECT DISTINCT + 64 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT + 64 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 10 * - 16 AS col0
----
160

query II rowsort
SELECT 49 * - ( + 80 ) AS col0, 89
----
-3920
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT 84 * - 77 * + - COUNT( * )
----
6468

skipif mysql # not compatible
query I rowsort label-3868
SELECT 84 * - 77 * + - COUNT ( * )
----
6468

query II rowsort
SELECT - 73 AS col0, + COALESCE ( - 19, 26, - 80 + - - 99 ) - - 66 AS col1
----
-73
47

query I rowsort
SELECT DISTINCT - 92 * - 97 AS col1
----
8924

query II rowsort
SELECT 20, + 17 AS col0
----
20
17

query I rowsort
SELECT ALL - 10 * 92 * + ( - - 89 )
----
-81880

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT ALL MIN( ALL + - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL MIN ( ALL + - 43 )
----
-43

query I rowsort
SELECT 87 * 60
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT 58 + + COALESCE ( - ( - - 25 ), 22 * + - 87, - - COUNT( * ) ) + - - MAX( + 80 ) * MAX( ALL + 49 )
----
3953

skipif mysql # not compatible
query I rowsort label-3875
SELECT 58 + + COALESCE ( - ( - - 25 ), 22 * + - 87, - - COUNT ( * ) ) + - - MAX ( + 80 ) * MAX ( ALL + 49 )
----
3953

query I rowsort
SELECT 64 * - + NULLIF ( - 28, - + 86 * - 98 * - 88 )
----
1792

query I rowsort
SELECT 67 + - 33 AS col2
----
34

query I rowsort
SELECT ALL + 37 + + 70 col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT 56 - 28 + - MAX( - + 33 )
----
61

skipif mysql # not compatible
query I rowsort label-3879
SELECT 56 - 28 + - MAX ( - + 33 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT DISTINCT 63 + + 44 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT 63 + + 44 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 33 + 26
----
-7

query I rowsort
SELECT DISTINCT + 54 + - 75 * + + 9
----
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT ALL - ( - MIN( DISTINCT + 90 ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL - ( - MIN ( DISTINCT + 90 ) ) AS col2
----
90

query I rowsort
SELECT ALL - 85 * - 22
----
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + MAX( + 63 ) + - MAX( - + 41 )
----
104

skipif mysql # not compatible
query I rowsort label-3885
SELECT + MAX ( + 63 ) + - MAX ( - + 41 )
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT COUNT( * ) * - 80
----
-80

skipif mysql # not compatible
query I rowsort label-3886
SELECT COUNT ( * ) * - 80
----
-80

query I rowsort
SELECT DISTINCT - + ( + 21 ) AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3888
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + 33 * SUM( ALL 1 ) - + 77 + + + 63 + - + 36 + - + 8 * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + 33 * SUM ( ALL 1 ) - + 77 + + + 63 + - + 36 + - + 8 * + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT ALL - - 92 * + MIN( - + 97 ) + - 33 AS col0
----
-8957

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL - - 92 * + MIN ( - + 97 ) + - 33 AS col0
----
-8957

query I rowsort
SELECT DISTINCT - ( - 29 ) AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3891
SELECT DISTINCT - - 9 AS col1, 38 + + 19 * + CAST( 23 AS SIGNED ) AS col2
----
9
475

skipif mysql # not compatible
query II rowsort label-3891
SELECT DISTINCT - - 9 AS col1, 38 + + 19 * + CAST ( 23 AS INTEGER ) AS col2
----
9
475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3892
SELECT + 49 * - 49 * - ( - MIN( DISTINCT 74 ) ) * - ( - - 1 ) + - 15 DIV 98
----
177674

skipif mysql # not compatible
query I rowsort label-3892
SELECT + 49 * - 49 * - ( - MIN ( DISTINCT 74 ) ) * - ( - - 1 ) + - 15 / 98
----
177674

query I rowsort
SELECT + - 27 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT ALL 52 * + + COUNT( DISTINCT 2 )
----
52

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL 52 * + + COUNT ( DISTINCT 2 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + 58 * + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-3895
SELECT + 58 * + COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT MIN( DISTINCT - - ( + 57 ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3896
SELECT MIN ( DISTINCT - - ( + 57 ) ) AS col0
----
57

query I rowsort
SELECT + COALESCE ( - 61, 11 )
----
-61

query I rowsort
SELECT 14 * 44 + - 86
----
530

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT + 22 + + - COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3899
SELECT + 22 + + - COUNT ( * ) AS col0
----
21

query II rowsort
SELECT + 62 AS col0, + ( - COALESCE ( 44, + - 6 * 73 + + 3 ) ) AS col1
----
62
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) + COUNT( DISTINCT - 56 ) + - COUNT( + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT - 56 ) + - COUNT ( + 59 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3902
SELECT DISTINCT ( NULLIF ( - COUNT( * ), - 67 ) ) * - 78 + + 99 * - CAST( - ( - + 73 ) AS SIGNED ) AS col1
----
-7149

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT ( NULLIF ( - COUNT ( * ), - 67 ) ) * - 78 + + 99 * - CAST ( - ( - + 73 ) AS INTEGER ) AS col1
----
-7149

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3903
SELECT - CAST( NULL AS DECIMAL ) + + CAST( + 31 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT - CAST ( NULL AS REAL ) + + CAST ( + 31 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL 50 + - NULLIF ( + COUNT( * ), + ( - ( 37 ) ) ) * - CASE + COUNT( * ) WHEN + 32 + ( - + 36 ) + - 37 + - 5 THEN - - 33 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL 50 + - NULLIF ( + COUNT ( * ), + ( - ( 37 ) ) ) * - CASE + COUNT ( * ) WHEN + 32 + ( - + 36 ) + - 37 + - 5 THEN - - 33 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT - COALESCE ( + MAX( ALL 14 ), - 83, + COUNT( * ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3905
SELECT - COALESCE ( + MAX ( ALL 14 ), - 83, + COUNT ( * ) ) AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3906
SELECT - 38 + - MIN( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT - 38 + - MIN ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT - ( 13 ) AS col2, 10
----
-13
10

query I rowsort
SELECT ALL + 16 + - 75
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3909
SELECT + CAST( NULL AS SIGNED ) * + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-3909
SELECT + CAST ( NULL AS INTEGER ) * + - 36
----
NULL

query I rowsort
SELECT ALL + + 42 + 52 + 86 * + ( CASE WHEN NOT NULL IS NULL THEN NULL ELSE + 15 END ) * - + 92 * + + 38 + + 79 AS col0
----
-4509667

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL - - 92 + - MIN( - NULLIF ( + 48, - 2 ) ) * - - COUNT( * ) AS col1
----
140

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL - - 92 + - MIN ( - NULLIF ( + 48, - 2 ) ) * - - COUNT ( * ) AS col1
----
140

query I rowsort
SELECT ALL + 6 + + - 87
----
-81

query I rowsort
SELECT + 79 + - 54 AS col2
----
25

query II rowsort
SELECT 11, 51 AS col2
----
11
51

query I rowsort
SELECT - 92 + - 93 + 44 AS col0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT - CASE 67 WHEN + 72 THEN 79 ELSE + 2 END * - 8 * COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3917
SELECT - CASE 67 WHEN + 72 THEN 79 ELSE + 2 END * - 8 * COUNT ( * ) AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-3918
SELECT - 67 + 64 DIV - + 74
----
-67

skipif mysql # not compatible
query I rowsort label-3918
SELECT - 67 + 64 / - + 74
----
-67

query I rowsort
SELECT + 80 + + - 70 AS col2
----
10

query II rowsort
SELECT ALL - 90 - - 27 AS col2, ( 34 ) AS col0
----
-63
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT DISTINCT + 32 * + 63 - + COUNT( * )
----
2015

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT + 32 * + 63 - + COUNT ( * )
----
2015

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT ALL + MIN( DISTINCT + COALESCE ( + + 27, 10 ) )
----
27

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL + MIN ( DISTINCT + COALESCE ( + + 27, 10 ) )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT DISTINCT - + 94 DIV 12 - 82 col0
----
-89

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT - + 94 / 12 - 82 col0
----
-89

query I rowsort
SELECT ALL - 98 * + - 54
----
5292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3925
SELECT - - 93 + + 83 + - + CASE + 80 WHEN 53 + + CAST( NULL AS SIGNED ) + + - NULLIF ( - 53, + - NULLIF ( + ( - 96 ), + 89 ) * - COUNT( * ) / - 2 + + ( + COUNT( * ) ) * - - 60 + - 56 + MIN( ALL - 87 ) - + 88 ) * - 46 THEN + 68 * + ( - COUNT( * ) ) WHEN COUNT( - 0 ) THEN 70 + 87 / 52 END / MAX( ALL + 37 * + 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT - - 93 + + 83 + - + CASE + 80 WHEN 53 + + CAST ( NULL AS INTEGER ) + + - NULLIF ( - 53, + - NULLIF ( + ( - 96 ), + 89 ) * - COUNT ( * ) / - 2 + + ( + COUNT ( * ) ) * - - 60 + - 56 + MIN ( ALL - 87 ) - + 88 ) * - 46 THEN + 68 * + ( - COUNT ( * ) ) WHEN COUNT ( - 0 ) THEN 70 + 87 / 52 END / MAX ( ALL + 37 * + 38 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3926
SELECT DISTINCT ( + + CAST( 96 AS SIGNED ) ) DIV 45 + - 43 * 14 * + 89 + + 90 - - - 80 * - ( - - 60 ) - + COUNT( * ) * - 95
----
-48591

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT ( + + CAST ( 96 AS INTEGER ) ) / 45 + - 43 * 14 * + 89 + + 90 - - - 80 * - ( - - 60 ) - + COUNT ( * ) * - 95
----
-48591

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3927
SELECT + 69 * CAST( 58 AS SIGNED )
----
4002

skipif mysql # not compatible
query I rowsort label-3927
SELECT + 69 * CAST ( 58 AS INTEGER )
----
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ALL + COUNT( * ) * - - 81 * 69 + 5 + + 73 AS col0
----
5667

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL + COUNT ( * ) * - - 81 * 69 + 5 + + 73 AS col0
----
5667

query I rowsort
SELECT DISTINCT - 27 * - - 35
----
-945

query I rowsort
SELECT 91 * + 62 - - 68
----
5710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3931
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 84
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3932
SELECT ( + 52 ), 51 * - + 69 + + CAST( NULL AS SIGNED ) * ( 94 ) AS col0
----
52
NULL

skipif mysql # not compatible
query II rowsort label-3932
SELECT ( + 52 ), 51 * - + 69 + + CAST ( NULL AS INTEGER ) * ( 94 ) AS col0
----
52
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3933
SELECT + MIN( + CAST( NULL AS SIGNED ) ) + + 33 * + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT + MIN ( + CAST ( NULL AS INTEGER ) ) + + 33 * + + 89
----
NULL

query I rowsort
SELECT ( 92 ) AS col2
----
92

query I rowsort
SELECT + 28 + + 52 * + 98 AS col2
----
5124

query I rowsort
SELECT + 59 * - + 1 + - 52
----
-111

query I rowsort
SELECT CASE - + 76 WHEN 27 THEN NULL ELSE + 37 END AS col1
----
37

query I rowsort
SELECT DISTINCT + ( - 50 )
----
-50

query I rowsort
SELECT + ( - - 46 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT ALL 15 * + - 7 + - 15 + + - 12 + + CAST( + 3 AS SIGNED ) * - 3 AS col1
----
-141

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL 15 * + - 7 + - 15 + + - 12 + + CAST ( + 3 AS INTEGER ) * - 3 AS col1
----
-141

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3941
SELECT NULLIF ( 3, + + 62 - - - CAST( 47 AS DECIMAL ) + 70 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3941
SELECT NULLIF ( 3, + + 62 - - - CAST ( 47 AS REAL ) + 70 ) AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3942
SELECT + NULLIF ( - SUM( - 44 ), + 10 ) * MIN( - - 75 ) DIV 32 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-3942
SELECT + NULLIF ( - SUM ( - 44 ), + 10 ) * MIN ( - - 75 ) / 32 AS col2
----
103

query I rowsort
SELECT + 38 * - 50
----
-1900

query I rowsort
SELECT ALL 58 * + 57 + 31 * 11
----
3647

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT - COALESCE ( - - 43, - + COUNT( * ), + - 70, NULLIF ( - + 26, + COUNT( * ) ) )
----
-43

skipif mysql # not compatible
query I rowsort label-3945
SELECT - COALESCE ( - - 43, - + COUNT ( * ), + - 70, NULLIF ( - + 26, + COUNT ( * ) ) )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT MAX( - 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-3946
SELECT MAX ( - 34 ) AS col2
----
-34

query II rowsort
SELECT ALL 8 * 99 AS col1, 75 col1
----
792
75

query I rowsort
SELECT DISTINCT 55 col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL - MAX( 70 ) + 98 - + + 63 * 76 AS col2
----
-4760

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL - MAX ( 70 ) + 98 - + + 63 * 76 AS col2
----
-4760

query I rowsort
SELECT + 24 * 35
----
840

query I rowsort
SELECT ALL 39 col1
----
39

query I rowsort
SELECT + 68 + - 95 * + + 53 AS col0
----
-4967

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT - SUM( - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-3953
SELECT - SUM ( - 91 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3954
SELECT - 51 DIV + CAST( - + 91 AS SIGNED ) * - - 59 + - COUNT( ALL 4 ) + - 86
----
-87

skipif mysql # not compatible
query I rowsort label-3954
SELECT - 51 / + CAST ( - + 91 AS INTEGER ) * - - 59 + - COUNT ( ALL 4 ) + - 86
----
-87

query I rowsort
SELECT - - 83 * 39 + - 89
----
3148

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT + COUNT( * ) * - SUM( - + 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3956
SELECT + COUNT ( * ) * - SUM ( - + 29 ) AS col0
----
29

query I rowsort
SELECT - CASE WHEN NOT 59 = - AVG ( - 15 ) * + 2 THEN + 18 END AS col1
----
-18

query I rowsort
SELECT ALL + 2 * 20
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT ALL + COALESCE ( + CAST( + - 24 AS SIGNED ), - 94 )
----
-24

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL + COALESCE ( + CAST ( + - 24 AS INTEGER ), - 94 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3960
SELECT + COUNT( * ) + - 68 * + 71 + - - 53 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT + COUNT ( * ) + - 68 * + 71 + - - 53 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 10 * 53 + + 71 AS col2
----
601

query I rowsort
SELECT ALL - 67 col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT - 97 + - - COUNT( * ) + COUNT( ALL 79 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3963
SELECT - 97 + - - COUNT ( * ) + COUNT ( ALL 79 ) AS col0
----
-95

query I rowsort
SELECT 57 * + - 68 AS col2
----
-3876

query II rowsort
SELECT + 6 * + 5, 30
----
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT + - SUM( DISTINCT + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-3966
SELECT + - SUM ( DISTINCT + 52 )
----
-52

query I rowsort
SELECT 72 - - 67 AS col1
----
139

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3968
SELECT DISTINCT - CAST( NULL AS DECIMAL ), - COUNT( 11 ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3968
SELECT DISTINCT - CAST ( NULL AS REAL ), - COUNT ( 11 ) AS col1
----
NULL
-1

query I rowsort
SELECT 49 - 8
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT ALL - 51 + 62 + - 83 + + SUM( DISTINCT + 85 ) * 63 * - - 89 - 58 AS col1
----
476465

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL - 51 + 62 + - 83 + + SUM ( DISTINCT + 85 ) * 63 * - - 89 - 58 AS col1
----
476465

query I rowsort
SELECT 58 * - 3 * 19 AS col1
----
-3306

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT + 58 AS col2, + 44 / + CASE - - COUNT( * ) WHEN - 99 THEN - COUNT( * ) * + 34 + + - 10 END - + - 10
----
58
NULL

skipif mysql # not compatible
query II rowsort label-3972
SELECT + 58 AS col2, + 44 / + CASE - - COUNT ( * ) WHEN - 99 THEN - COUNT ( * ) * + 34 + + - 10 END - + - 10
----
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT ALL - COUNT( - 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL - COUNT ( - 13 )
----
-1

query I rowsort
SELECT DISTINCT - 33 + + 91
----
58

query I rowsort
SELECT ALL 63 * + ( - - 23 )
----
1449

query I rowsort
SELECT ALL - 51 + + 96 AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3977
SELECT CAST( - 39 AS SIGNED ) / - CASE + + 78 WHEN MAX( DISTINCT 27 ) THEN - 55 * - - 78 * + CASE - 47 WHEN + 44 * SUM( DISTINCT 32 ) THEN - 83 WHEN + + SUM( - 74 ) + - + 67 + - + 86 * + - COUNT( * ) * - 20 / + NULLIF ( - - 69, + 91 ) THEN NULL ELSE NULL END + - CAST( NULL AS SIGNED ) * - AVG ( + 81 ) ELSE NULL END - - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3977
SELECT CAST ( - 39 AS INTEGER ) / - CASE + + 78 WHEN MAX ( DISTINCT 27 ) THEN - 55 * - - 78 * + CASE - 47 WHEN + 44 * SUM ( DISTINCT 32 ) THEN - 83 WHEN + + SUM ( - 74 ) + - + 67 + - + 86 * + - COUNT ( * ) * - 20 / + NULLIF ( - - 69, + 91 ) THEN NULL ELSE NULL END + - CAST ( NULL AS INTEGER ) * - AVG ( + 81 ) ELSE NULL END - - 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT + MIN( ALL - 94 ) * + 80 + - 20
----
-7540

skipif mysql # not compatible
query I rowsort label-3978
SELECT + MIN ( ALL - 94 ) * + 80 + - 20
----
-7540

query I rowsort
SELECT ALL + 79 * + + 96 * 75 * 9
----
5119200

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT 88 * + + 58 + + SUM( ALL + 91 )
----
5195

skipif mysql # not compatible
query I rowsort label-3980
SELECT 88 * + + 58 + + SUM ( ALL + 91 )
----
5195

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT 3 DIV 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3981
SELECT 3 / 19 AS col1
----
0

query I rowsort
SELECT 74 * + + 64 col2
----
4736

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT 77 + - + 67 + 14 * 49 * - - COUNT( * )
----
696

skipif mysql # not compatible
query I rowsort label-3983
SELECT 77 + - + 67 + 14 * 49 * - - COUNT ( * )
----
696

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT NULLIF ( 91, COUNT( * ) + - - ( + ( + 96 ) ) ) * COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-3984
SELECT NULLIF ( 91, COUNT ( * ) + - - ( + ( + 96 ) ) ) * COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT MAX( + - 51 ) + - 28 + - - 83 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3985
SELECT MAX ( + - 51 ) + - 28 + - - 83 AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3986
SELECT ALL 96 + 77 DIV + - 97 * + 80 * + + 92 * - 12 * + + 94 + + 99
----
195

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL 96 + 77 / + - 97 * + 80 * + + 92 * - 12 * + + 94 + + 99
----
195

query I rowsort
SELECT 93 + + 65 AS col0
----
158

query II rowsort
SELECT ALL ( 35 ) * + 69 * + - 94 AS col1, + 18 AS col1
----
-227010
18

query I rowsort
SELECT ALL - ( + - 13 ) - + COALESCE ( - 21, - 35 ) AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3990
SELECT - COALESCE ( - COUNT( * ), + CAST( 13 AS SIGNED ) + + - 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3990
SELECT - COALESCE ( - COUNT ( * ), + CAST ( 13 AS INTEGER ) + + - 16 ) AS col2
----
1

query I rowsort
SELECT + 22 + - - 26
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ALL - ( - COUNT( * ) ) * 10 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL - ( - COUNT ( * ) ) * 10 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3993
SELECT + NULLIF ( - 51, - 98 / 87 + - CAST( COUNT( * ) AS DECIMAL ) ) + - 56 AS col2
----
-107

skipif mysql # not compatible
query I rowsort label-3993
SELECT + NULLIF ( - 51, - 98 / 87 + - CAST ( COUNT ( * ) AS REAL ) ) + - 56 AS col2
----
-107

query II rowsort
SELECT - 90 AS col2, + 74 AS col2
----
-90
74

query I rowsort
SELECT ( 60 ) AS col2
----
60

query I rowsort
SELECT 23 + ( - - 99 ) AS col0
----
122

query I rowsort
SELECT - 88 * 22
----
-1936

onlyif mysql # aggregate syntax: 
query II rowsort label-3998
SELECT DISTINCT - 4 * + SUM( DISTINCT 37 ) AS col1, 26 * - 72
----
-148
-1872

skipif mysql # not compatible
query II rowsort label-3998
SELECT DISTINCT - 4 * + SUM ( DISTINCT 37 ) AS col1, 26 * - 72
----
-148
-1872

query II rowsort
SELECT - - 2, 37 col1
----
2
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT COUNT( * ) * 34 * - 2
----
-68

skipif mysql # not compatible
query I rowsort label-4000
SELECT COUNT ( * ) * 34 * - 2
----
-68

query II rowsort
SELECT ALL 2 AS col1, 89
----
2
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4002
SELECT DISTINCT - 54, 39 * + 67 * COUNT( * ) * + NULLIF ( - CASE - 57 WHEN - MAX( DISTINCT - + 91 ) THEN NULL WHEN 48 + 99 THEN ( 89 ) END, + 36 ) * SUM( + 74 ) * - 6 AS col2
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-4002
SELECT DISTINCT - 54, 39 * + 67 * COUNT ( * ) * + NULLIF ( - CASE - 57 WHEN - MAX ( DISTINCT - + 91 ) THEN NULL WHEN 48 + 99 THEN ( 89 ) END, + 36 ) * SUM ( + 74 ) * - 6 AS col2
----
-54
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4003
SELECT ALL + 21 DIV COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL + 21 / COUNT ( * )
----
21

query I rowsort
SELECT - 60 * - 54 AS col0
----
3240

query I rowsort
SELECT DISTINCT 89 * - + 94 + + + ( + 78 ) AS col2
----
-8288

query I rowsort
SELECT DISTINCT 70 * 39 + + 51
----
2781

query I rowsort
SELECT DISTINCT 33 + + ( 27 ) col0
----
60

query I rowsort
SELECT 58 * - 84
----
-4872

query I rowsort
SELECT ( 29 ) * - - 2 + - 93 * - 71 * + - 41
----
-270665

query I rowsort
SELECT DISTINCT - 47 + + 18 AS col1
----
-29

query I rowsort
SELECT ALL - 20 + 73 + - 21
----
32

query I rowsort
SELECT 83 * 43 AS col0
----
3569

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4013
SELECT DISTINCT - COUNT( * ) - 75 + NULLIF ( + COUNT( * ), - 22 ) - - COUNT( ALL - 61 ) DIV + 14 col2
----
-75

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT - COUNT ( * ) - 75 + NULLIF ( + COUNT ( * ), - 22 ) - - COUNT ( ALL - 61 ) / + 14 col2
----
-75

query I rowsort
SELECT DISTINCT - ( 69 )
----
-69

query I rowsort
SELECT DISTINCT - NULLIF ( - - 26, + - 12 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT ALL - ( - ( + COUNT( * ) ) ) - - - 60 col2
----
-59

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL - ( - ( + COUNT ( * ) ) ) - - - 60 col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT ALL - CAST( + ( + 60 ) AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL - CAST ( + ( + 60 ) AS INTEGER )
----
-60

query I rowsort
SELECT DISTINCT - 3 - + 3 AS col1
----
-6

query II rowsort
SELECT 21 * - 58 AS col0, + 78 * - 21
----
-1218
-1638

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4020
SELECT ( 72 ) DIV + + 91 + + - 74 + + COUNT( * ), + 46 AS col1
----
-73
46

skipif mysql # not compatible
query II rowsort label-4020
SELECT ( 72 ) / + + 91 + + - 74 + + COUNT ( * ), + 46 AS col1
----
-73
46

query I rowsort
SELECT ALL - - 55 * - CASE - 35 WHEN + 90 THEN - 40 ELSE + + 63 END AS col0
----
-3465

query I rowsort
SELECT - + 25 col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT - MIN( DISTINCT - + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-4023
SELECT - MIN ( DISTINCT - + 56 )
----
56

query I rowsort
SELECT ALL ( + 40 ) AS col0
----
40

query I rowsort
SELECT DISTINCT 75 col1
----
75

query I rowsort
SELECT - 61 * 81 AS col2
----
-4941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4027
SELECT - + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + + CASE + + COUNT( * ) WHEN - 93 * - + CAST( + NULLIF ( + - 0, + 7 - + 45 ) AS SIGNED ) * - 42 THEN NULL ELSE + + 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT - + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + + CASE + + COUNT ( * ) WHEN - 93 * - + CAST ( + NULLIF ( + - 0, + 7 - + 45 ) AS INTEGER ) * - 42 THEN NULL ELSE + + 63 END
----
NULL

query I rowsort
SELECT + 58 * + - 35
----
-2030

query II rowsort
SELECT ALL 28 + + - 35 * + 43 + - 81 AS col2, 89 * 81
----
-1558
7209

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ALL 32 + 54 - CASE - - COUNT( * ) WHEN + 8 THEN MIN( ALL + 19 ) * + 67 ELSE + 30 END
----
56

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL 32 + 54 - CASE - - COUNT ( * ) WHEN + 8 THEN MIN ( ALL + 19 ) * + 67 ELSE + 30 END
----
56

query I rowsort
SELECT DISTINCT ( + 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL 81 + 85 + - - MAX( 9 ) AS col1
----
175

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL 81 + 85 + - - MAX ( 9 ) AS col1
----
175

onlyif mysql # aggregate syntax: 
query II rowsort label-4033
SELECT - COUNT( * ) * + 10 * + + 60 AS col1, COUNT( * ) + + - 46
----
-600
-45

skipif mysql # not compatible
query II rowsort label-4033
SELECT - COUNT ( * ) * + 10 * + + 60 AS col1, COUNT ( * ) + + - 46
----
-600
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4034
SELECT + COUNT( - + 15 ) DIV - COUNT( * ) + - ( COUNT( * ) ) * 63 * - 95
----
5984

skipif mysql # not compatible
query I rowsort label-4034
SELECT + COUNT ( - + 15 ) / - COUNT ( * ) + - ( COUNT ( * ) ) * 63 * - 95
----
5984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4035
SELECT + CASE CAST( NULL AS DECIMAL ) WHEN - 4 THEN NULL ELSE - - 41 + + SUM( + - CAST( NULL AS SIGNED ) ) END * 86 * - 19 + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT + CASE CAST ( NULL AS REAL ) WHEN - 4 THEN NULL ELSE - - 41 + + SUM ( + - CAST ( NULL AS INTEGER ) ) END * 86 * - 19 + + 97
----
NULL

query I rowsort
SELECT + ( + 63 )
----
63

query I rowsort
SELECT ( 18 ) AS col0
----
18

query I rowsort
SELECT + 98 + - 15 AS col2
----
83

query I rowsort
SELECT ( 22 ) AS col2
----
22

query I rowsort
SELECT ALL 47 * - + 30 + - + 88
----
-1498

onlyif mysql # DIV for integer division: 
query I rowsort label-4041
SELECT DISTINCT 33 DIV ( - 63 ) DIV + + 71
----
0

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT 33 / ( - 63 ) / + + 71
----
0

query I rowsort
SELECT 88 * - + 71 - - - 45 AS col1
----
-6293

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4043
SELECT + 34 DIV - 22 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4043
SELECT + 34 / - 22 + COUNT ( * )
----
0

query I rowsort
SELECT + ( - - 40 ) AS col2
----
40

query I rowsort
SELECT ALL + 76 col1
----
76

query I rowsort
SELECT DISTINCT 79 * 37
----
2923

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4047
SELECT + - 76 * + CAST( + ( - + 58 ) AS SIGNED ) AS col0
----
4408

skipif mysql # not compatible
query I rowsort label-4047
SELECT + - 76 * + CAST ( + ( - + 58 ) AS INTEGER ) AS col0
----
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT + + 1 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4048
SELECT + + 1 + COUNT ( * )
----
2

query I rowsort
SELECT ALL + + ( + - ( 29 ) ) AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4050
SELECT ALL + 15 * - CASE 31 WHEN - CAST( NULL AS SIGNED ) THEN + SUM( - ( - - 20 ) ) + COALESCE ( - + 4, + ( + 22 ) ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL + 15 * - CASE 31 WHEN - CAST ( NULL AS INTEGER ) THEN + SUM ( - ( - - 20 ) ) + COALESCE ( - + 4, + ( + 22 ) ) ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4051
SELECT ALL + CASE + 63 WHEN COUNT( * ) * - + 25 + + ( 54 ) + - 41 + + 71 * NULLIF ( - 24, + 37 ) THEN COALESCE ( + 97, + 3 ) * 68 + + CASE 57 WHEN 87 THEN ( + - 18 ) * COUNT( ALL - - 23 ) - + + 43 + 98 * CAST( NULL AS SIGNED ) * - NULLIF ( + 47 + + 27 * 20, + 75 * 36 ) END END * 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL + CASE + 63 WHEN COUNT ( * ) * - + 25 + + ( 54 ) + - 41 + + 71 * NULLIF ( - 24, + 37 ) THEN COALESCE ( + 97, + 3 ) * 68 + + CASE 57 WHEN 87 THEN ( + - 18 ) * COUNT ( ALL - - 23 ) - + + 43 + 98 * CAST ( NULL AS INTEGER ) * - NULLIF ( + 47 + + 27 * 20, + 75 * 36 ) END END * 55 AS col2
----
NULL

query I rowsort
SELECT - 64 * 85
----
-5440

query I rowsort
SELECT - 33 + - 11
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4054
SELECT ALL - + 73 + - + 62 + 48 + - 39 + 71 - COUNT( - - 93 ) * 0 * - COUNT( * ) * - 21 DIV COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL - + 73 + - + 62 + 48 + - 39 + 71 - COUNT ( - - 93 ) * 0 * - COUNT ( * ) * - 21 / COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-4055
SELECT DISTINCT + 61 + COUNT( * ) * 42 col0, 54
----
103
54

skipif mysql # not compatible
query II rowsort label-4055
SELECT DISTINCT + 61 + COUNT ( * ) * 42 col0, 54
----
103
54

query II rowsort
SELECT - - 75 * - 58 + 14 AS col2, 88 + - 38
----
-4336
50

query I rowsort
SELECT ALL - ( + 71 ) + - 16 + 52
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT - COUNT( * ) col0, 12 AS col0
----
-1
12

skipif mysql # not compatible
query II rowsort label-4058
SELECT - COUNT ( * ) col0, 12 AS col0
----
-1
12

query I rowsort
SELECT DISTINCT 81 + + 62
----
143

query II rowsort
SELECT - COALESCE ( + 77, + 96 ) - + - 83, 74 * NULLIF ( - 40, + 79 ) AS col0
----
6
-2960

query I rowsort
SELECT - COALESCE ( - 71, - 47 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4062
SELECT - COUNT( * ) * CAST( + 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-4062
SELECT - COUNT ( * ) * CAST ( + 19 AS INTEGER )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4063
SELECT + COALESCE ( - - COUNT( * ), - - 85 * - - 21 DIV + + 56 ) * 84 + MIN( ALL + 2 )
----
86

skipif mysql # not compatible
query I rowsort label-4063
SELECT + COALESCE ( - - COUNT ( * ), - - 85 * - - 21 / + + 56 ) * 84 + MIN ( ALL + 2 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4064
SELECT - 57 AS col1, + CAST( - + 63 AS SIGNED )
----
-57
-63

skipif mysql # not compatible
query II rowsort label-4064
SELECT - 57 AS col1, + CAST ( - + 63 AS INTEGER )
----
-57
-63

query II rowsort
SELECT 66 AS col1, + 74 + 12 AS col2
----
66
86

query I rowsort
SELECT DISTINCT 45 - - 68
----
113

query I rowsort
SELECT - 27 + - - 55
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4068
SELECT - ( COUNT( * ) ) * COUNT( + 68 ) * + + COALESCE ( + COUNT( * ), - + CAST( NULL AS SIGNED ), + 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-4068
SELECT - ( COUNT ( * ) ) * COUNT ( + 68 ) * + + COALESCE ( + COUNT ( * ), - + CAST ( NULL AS INTEGER ), + 8 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT ALL + 29 * + + 24 * - COALESCE ( 15, - CAST( - + 54 AS SIGNED ) * - - 33 ) AS col0
----
-10440

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + 29 * + + 24 * - COALESCE ( 15, - CAST ( - + 54 AS INTEGER ) * - - 33 ) AS col0
----
-10440

onlyif mysql # aggregate syntax: 
query II rowsort label-4070
SELECT DISTINCT + 25 AS col2, 97 * + COALESCE ( + - 44, + 66, COUNT( * ) ) col0
----
25
-4268

skipif mysql # not compatible
query II rowsort label-4070
SELECT DISTINCT + 25 AS col2, 97 * + COALESCE ( + - 44, + 66, COUNT ( * ) ) col0
----
25
-4268

onlyif mysql # aggregate syntax: 
query II rowsort label-4071
SELECT ALL + 67 AS col1, COUNT( * ) * - SUM( 91 ) AS col1
----
67
-91

skipif mysql # not compatible
query II rowsort label-4071
SELECT ALL + 67 AS col1, COUNT ( * ) * - SUM ( 91 ) AS col1
----
67
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4072
SELECT 93 * + 4 * 91 + 27 DIV + - ( + 25 )
----
33851

skipif mysql # not compatible
query I rowsort label-4072
SELECT 93 * + 4 * 91 + 27 / + - ( + 25 )
----
33851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4073
SELECT ALL 80 DIV + MIN( 42 ) - + 28 + 7 col2
----
-20

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL 80 / + MIN ( 42 ) - + 28 + 7 col2
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4074
SELECT ALL ( + + 5 ) DIV + 28 + + SUM( DISTINCT 36 ) col0
----
36

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL ( + + 5 ) / + 28 + + SUM ( DISTINCT 36 ) col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4075
SELECT - 42 * CAST( 47 AS SIGNED ) * + - 6 + + 12 + - 39 col1, + 61
----
11817
61

skipif mysql # not compatible
query II rowsort label-4075
SELECT - 42 * CAST ( 47 AS INTEGER ) * + - 6 + + 12 + - 39 col1, + 61
----
11817
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4076
SELECT + 8 DIV - 84 * + 19
----
0

skipif mysql # not compatible
query I rowsort label-4076
SELECT + 8 / - 84 * + 19
----
0

query I rowsort
SELECT + 20 * 83 AS col1
----
1660

query II rowsort
SELECT 60 AS col0, - 35
----
60
-35

query I rowsort
SELECT - 9 * - ( 51 ) + + + 74
----
533

onlyif mysql # DIV for integer division: 
query I rowsort label-4080
SELECT ALL - 66 DIV + 63 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL - 66 / + 63 AS col0
----
-1

query I rowsort
SELECT DISTINCT - 28 + - - 9 + + 26 AS col0
----
7

query II rowsort
SELECT + 59 AS col0, + 39 * - 34
----
59
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT + + COUNT( ALL 97 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4083
SELECT + + COUNT ( ALL 97 ) col1
----
1

query I rowsort
SELECT 1 * - 63 * 36
----
-2268

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT + NULLIF ( - + MIN( ALL - ( - 76 ) ), + 9 )
----
-76

skipif mysql # not compatible
query I rowsort label-4085
SELECT + NULLIF ( - + MIN ( ALL - ( - 76 ) ), + 9 )
----
-76

query I rowsort
SELECT DISTINCT + 92 + + 44 * 43
----
1984

query I rowsort
SELECT ALL - 34 + + 16 AS col0
----
-18

query II rowsort
SELECT 78, 11 AS col2
----
78
11

query I rowsort
SELECT + 31 * - - 11
----
341

query I rowsort
SELECT + 70 - - + ( 41 ) AS col1
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-4091
SELECT ALL + + 8 DIV + ( + 18 ) * 48 + - 1 * 56 * - 78 AS col1
----
4368

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL + + 8 / + ( + 18 ) * 48 + - 1 * 56 * - 78 AS col1
----
4368

query I rowsort
SELECT DISTINCT 49 + + 95 + 59
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ALL + + 58 * COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL + + 58 * COUNT ( * ) AS col0
----
58

query I rowsort
SELECT + 97 * 96 AS col2
----
9312

query I rowsort
SELECT DISTINCT ( - 76 ) AS col1
----
-76

query I rowsort
SELECT DISTINCT + 76 + + + ( + 73 ) + - + 3 AS col2
----
146

query II rowsort
SELECT 36 + 77 AS col1, 21 - + 68 * + 41 AS col0
----
113
-2767

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT + 6 * - COUNT( * ) * 71
----
-426

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT + 6 * - COUNT ( * ) * 71
----
-426

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT MAX( + ( - 7 ) ) - 30 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-4099
SELECT MAX ( + ( - 7 ) ) - 30 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT 6 * + + COUNT( * ) * - 29 * + 5 * 73 AS col2
----
-63510

skipif mysql # not compatible
query I rowsort label-4100
SELECT 6 * + + COUNT ( * ) * - 29 * + 5 * 73 AS col2
----
-63510

onlyif mysql # DIV for integer division: 
query I rowsort label-4101
SELECT 87 DIV - + 83
----
-1

skipif mysql # not compatible
query I rowsort label-4101
SELECT 87 / - + 83
----
-1

query I rowsort
SELECT 96 + - - 18 * + 35 AS col0
----
726

onlyif mysql # DIV for integer division: 
query I rowsort label-4103
SELECT DISTINCT - 43 DIV - + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT - 43 / - + 79 AS col0
----
0

query I rowsort
SELECT ALL - 71 - 80
----
-151

query I rowsort
SELECT 83 + + 57 AS col1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT COUNT( * ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4106
SELECT COUNT ( * ) * - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL - ( 35 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ( + 49 ) * NULLIF ( + 42, 82 * 10 + - + COUNT( + 34 ) * - 19 ) AS col0
----
2058

skipif mysql # not compatible
query I rowsort label-4108
SELECT ( + 49 ) * NULLIF ( + 42, 82 * 10 + - + COUNT ( + 34 ) * - 19 ) AS col0
----
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT COUNT( * ) - - 71 + - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4109
SELECT COUNT ( * ) - - 71 + - COUNT ( * )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4110
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 93, COUNT( * ) AS col2, 1 DIV + + 53 * - - MAX( ALL + 88 ) - ( COUNT( 25 ) ) + + + 48 * 21 AS col0
----
NULL
1
1007

skipif mysql # not compatible
query III rowsort label-4110
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 93, COUNT ( * ) AS col2, 1 / + + 53 * - - MAX ( ALL + 88 ) - ( COUNT ( 25 ) ) + + + 48 * 21 AS col0
----
NULL
1
1007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4111
SELECT ALL COUNT( + 10 ) + - 22 + - + 10 * 63 DIV + 89 + - 47 * COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL COUNT ( + 10 ) + - 22 + - + 10 * 63 / + 89 + - 47 * COUNT ( * )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4112
SELECT - CASE 89 WHEN 83 * 62 THEN + - 85 * - 42 ELSE NULL END * + + CASE - 71 WHEN - MIN( + + 65 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT - CASE 89 WHEN 83 * 62 THEN + - 85 * - 42 ELSE NULL END * + + CASE - 71 WHEN - MIN ( + + 65 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4113
SELECT ALL - CASE WHEN NOT - 6 IS NOT NULL THEN - + 43 * 45 * + 64 + 45 + + 78 + - + CAST( 74 AS SIGNED ) * + 14 * - - 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL - CASE WHEN NOT - 6 IS NOT NULL THEN - + 43 * 45 * + 64 + 45 + + 78 + - + CAST ( 74 AS INTEGER ) * + 14 * - - 44 END
----
NULL

query I rowsort
SELECT DISTINCT - + 31 AS col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4115
SELECT - 73 * 23 + + 68 + - CAST( - - 74 AS SIGNED ) AS col1
----
-1685

skipif mysql # not compatible
query I rowsort label-4115
SELECT - 73 * 23 + + 68 + - CAST ( - - 74 AS INTEGER ) AS col1
----
-1685

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4116
SELECT SUM( 49 ) - - - 81 DIV + MAX( + - 56 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4116
SELECT SUM ( 49 ) - - - 81 / + MAX ( + - 56 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT + 86 * 21 * - 9 * - - SUM( DISTINCT + 28 ) + - ( + 45 ) + - - 20 * 43 AS col1
----
-454297

skipif mysql # not compatible
query I rowsort label-4117
SELECT + 86 * 21 * - 9 * - - SUM ( DISTINCT + 28 ) + - ( + 45 ) + - - 20 * 43 AS col1
----
-454297

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT 2 + + + COUNT( ALL 44 ) + + + 55 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-4118
SELECT 2 + + + COUNT ( ALL 44 ) + + + 55 AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4119
SELECT + 90 * 22 - - + 70 + - 25 + NULLIF ( 46, + + COALESCE ( + COUNT( * ), + + 48 DIV 17 + + MIN( - 69 ) + - COUNT( DISTINCT - 76 ), + 41 ) ) * - 99 + - 45 * + - COUNT( 61 ) DIV + + CAST( - - 77 AS SIGNED )
----
-2529

skipif mysql # not compatible
query I rowsort label-4119
SELECT + 90 * 22 - - + 70 + - 25 + NULLIF ( 46, + + COALESCE ( + COUNT ( * ), + + 48 / 17 + + MIN ( - 69 ) + - COUNT ( DISTINCT - 76 ), + 41 ) ) * - 99 + - 45 * + - COUNT ( 61 ) / + + CAST ( - - 77 AS INTEGER )
----
-2529

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ( - SUM( - + 62 ) )
----
62

skipif mysql # not compatible
query I rowsort label-4120
SELECT ( - SUM ( - + 62 ) )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4121
SELECT ALL SUM( ALL + 6 ) * NULLIF ( - 66, - SUM( + - CAST( NULL AS SIGNED ) ) ) * + + 51 + + - ( + COALESCE ( 72, - CAST( - 34 AS SIGNED ) + - 89, - 30, ( - 86 ) - + ( - - 6 ) + + - MAX( ALL - 41 ) ) ) * - - ( - 34 ) + 79 + - 7 * - 82 + COUNT( * ) AS col1
----
-17094

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL SUM ( ALL + 6 ) * NULLIF ( - 66, - SUM ( + - CAST ( NULL AS INTEGER ) ) ) * + + 51 + + - ( + COALESCE ( 72, - CAST ( - 34 AS INTEGER ) + - 89, - 30, ( - 86 ) - + ( - - 6 ) + + - MAX ( ALL - 41 ) ) ) * - - ( - 34 ) + 79 + - 7 * - 82 + COUNT ( * ) AS col1
----
-17094

query I rowsort
SELECT ALL ( + - ( - 33 ) ) + + + 24 AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT + COALESCE ( - ( - 36 ), + 31 * + 81 * + + 45 + - + 70 DIV 4, - 75, - 69 )
----
36

skipif mysql # not compatible
query I rowsort label-4123
SELECT + COALESCE ( - ( - 36 ), + 31 * + 81 * + + 45 + - + 70 / 4, - 75, - 69 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT ALL 21 + - + COUNT( * ) + - + 78 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL 21 + - + COUNT ( * ) + - + 78 AS col1
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4125
SELECT ALL + COALESCE ( + NULLIF ( + ( - 96 ), + + CAST( NULL AS DECIMAL ) + - 2 ), + - 84 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL + COALESCE ( + NULLIF ( + ( - 96 ), + + CAST ( NULL AS REAL ) + - 2 ), + - 84 ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT NULLIF ( - - ( COUNT( * ) ), - 53 * 45 + COUNT( * ) ) * + + 96
----
96

skipif mysql # not compatible
query I rowsort label-4126
SELECT NULLIF ( - - ( COUNT ( * ) ), - 53 * 45 + COUNT ( * ) ) * + + 96
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT + 44 + - 91 + MAX( - 65 ) + - 10
----
-122

skipif mysql # not compatible
query I rowsort label-4127
SELECT + 44 + - 91 + MAX ( - 65 ) + - 10
----
-122

query I rowsort
SELECT DISTINCT 83 - + - 32
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-4129
SELECT - COUNT( * ) AS col2, COALESCE ( + - 92, - - 87 * - 3, + + ( + - COALESCE ( + 13, + 27, + COALESCE ( 47, - 53, - + ( + 3 ) ) - 65 ) ) ) * - ( - + 72 ) * - - 8 * - 89 + 8 AS col2
----
-1
4716296

skipif mysql # not compatible
query II rowsort label-4129
SELECT - COUNT ( * ) AS col2, COALESCE ( + - 92, - - 87 * - 3, + + ( + - COALESCE ( + 13, + 27, + COALESCE ( 47, - 53, - + ( + 3 ) ) - 65 ) ) ) * - ( - + 72 ) * - - 8 * - 89 + 8 AS col2
----
-1
4716296

query II rowsort
SELECT 72 col2, + 82 AS col1
----
72
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT ALL COUNT( * ) - + 25
----
-24

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL COUNT ( * ) - + 25
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT CAST( + 56 AS SIGNED ) * - 80 col2
----
-4480

skipif mysql # not compatible
query I rowsort label-4132
SELECT CAST ( + 56 AS INTEGER ) * - 80 col2
----
-4480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4133
SELECT ALL 51, CASE + ( - + 52 ) WHEN - + 65 * + - 42 * - 20 THEN - 60 WHEN 87 THEN - 50 WHEN - 95 * 84 + + SUM( ALL 13 ) + + COUNT( * ) THEN 45 * 62 WHEN + 14 THEN NULL END + CASE - 52 WHEN - 21 * + ( - 86 ) THEN - 80 END + + + 1 + + NULLIF ( + 47, + + 61 / - ( + 27 * CAST( NULL AS DECIMAL ) + - COUNT( * ) ) + - CAST( - COALESCE ( - CASE WHEN NOT - CASE 99 WHEN + 12 / 39 THEN - 38 ELSE + 40 END > NULL THEN NULL ELSE CASE 51 WHEN COUNT( * ) THEN - SUM( DISTINCT 53 ) + 32 END END, 17 * 61, COUNT( * ) + - COUNT( * ) * 11, + 81 ) AS SIGNED ) ) + ( 2 ) / 14 AS col0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-4133
SELECT ALL 51, CASE + ( - + 52 ) WHEN - + 65 * + - 42 * - 20 THEN - 60 WHEN 87 THEN - 50 WHEN - 95 * 84 + + SUM ( ALL 13 ) + + COUNT ( * ) THEN 45 * 62 WHEN + 14 THEN NULL END + CASE - 52 WHEN - 21 * + ( - 86 ) THEN - 80 END + + + 1 + + NULLIF ( + 47, + + 61 / - ( + 27 * CAST ( NULL AS REAL ) + - COUNT ( * ) ) + - CAST ( - COALESCE ( - CASE WHEN NOT - CASE 99 WHEN + 12 / 39 THEN - 38 ELSE + 40 END > NULL THEN NULL ELSE CASE 51 WHEN COUNT ( * ) THEN - SUM ( DISTINCT 53 ) + 32 END END, 17 * 61, COUNT ( * ) + - COUNT ( * ) * 11, + 81 ) AS INTEGER ) ) + ( 2 ) / 14 AS col0
----
51
NULL

query I rowsort
SELECT DISTINCT 33 - - 27
----
60

query I rowsort
SELECT 3 * - 47 AS col0
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4136
SELECT DISTINCT - ( - CASE + 68 WHEN + CASE - - COUNT( * ) WHEN + 85 THEN - + 55 WHEN - + 63 THEN NULL END THEN CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * + 94 * + ( - + 89 ) ELSE NULL END ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT - ( - CASE + 68 WHEN + CASE - - COUNT ( * ) WHEN + 85 THEN - + 55 WHEN - + 63 THEN NULL END THEN CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + 94 * + ( - + 89 ) ELSE NULL END ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL SUM( ALL - 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL SUM ( ALL - 8 ) AS col2
----
-8

query I rowsort
SELECT 86 - + + 36
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4139
SELECT 22 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-4139
SELECT 22 / 97
----
0

query I rowsort
SELECT 92 * + 28
----
2576

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4141
SELECT 28 + - + 42 * - ( - 89 ), + COUNT( * ) DIV + 63 AS col0
----
-3710
0

skipif mysql # not compatible
query II rowsort label-4141
SELECT 28 + - + 42 * - ( - 89 ), + COUNT ( * ) / + 63 AS col0
----
-3710
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT - COUNT( * ) + 48 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4142
SELECT - COUNT ( * ) + 48 AS col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4143
SELECT ALL COUNT( * ) AS col2, - 96
----
1
-96

skipif mysql # not compatible
query II rowsort label-4143
SELECT ALL COUNT ( * ) AS col2, - 96
----
1
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4144
SELECT - 96 DIV 30
----
-3

skipif mysql # not compatible
query I rowsort label-4144
SELECT - 96 / 30
----
-3

query I rowsort
SELECT DISTINCT 20 * + + 95 * - ( 82 ) col2
----
-155800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT ALL + 59 * + - NULLIF ( + 52, - + 64 * - 51 ) + + ( - ( + CAST( NULL AS SIGNED ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL + 59 * + - NULLIF ( + 52, - + 64 * - 51 ) + + ( - ( + CAST ( NULL AS INTEGER ) ) ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT - 90 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT - 90 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4148
SELECT ALL + CASE 47 WHEN 46 + + 11 THEN - MIN( DISTINCT 85 ) / + 64 WHEN + 66 + - COUNT( * ) THEN NULL ELSE NULL END * - 75 + 66 + - 18 * - 76, 3 * - 29 * - + 56 col2
----
NULL
4872

skipif mysql # not compatible
query II rowsort label-4148
SELECT ALL + CASE 47 WHEN 46 + + 11 THEN - MIN ( DISTINCT 85 ) / + 64 WHEN + 66 + - COUNT ( * ) THEN NULL ELSE NULL END * - 75 + 66 + - 18 * - 76, 3 * - 29 * - + 56 col2
----
NULL
4872

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT 67 * - + 50 + COUNT( * ) AS col2
----
-3349

skipif mysql # not compatible
query I rowsort label-4149
SELECT 67 * - + 50 + COUNT ( * ) AS col2
----
-3349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT ALL - 17 * + CAST( NULL AS SIGNED ) + - 82 - 56 * + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL - 17 * + CAST ( NULL AS INTEGER ) + - 82 - 56 * + 12 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4151
SELECT - + ( COUNT( * ) ) * + - MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT - + ( COUNT ( * ) ) * + - MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4152
SELECT + 25 * CASE + - 58 WHEN + COUNT( * ) THEN - 38 + + + 35 DIV NULLIF ( - 88, + 34 ) ELSE 58 DIV 36 END + + 69 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4152
SELECT + 25 * CASE + - 58 WHEN + COUNT ( * ) THEN - 38 + + + 35 / NULLIF ( - 88, + 34 ) ELSE 58 / 36 END + + 69 AS col2
----
94

query I rowsort
SELECT ALL - 38 * - 41 * 42 * + 54 + + - 76
----
3533468

query II rowsort
SELECT + 94 AS col1, - 20 AS col0
----
94
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4155
SELECT DISTINCT - + COALESCE ( - - 99, - + 45 * - 68 - + 31 - + - COALESCE ( + COUNT( * ), + + NULLIF ( ( 82 ), - 66 + - - 43 ), - 6 + 48 - - + 0 ) * ( 16 ) * - + 35 - + 49 ) * + + 90 - - 24 * + ( - CAST( NULL AS SIGNED ) ) * - + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT - + COALESCE ( - - 99, - + 45 * - 68 - + 31 - + - COALESCE ( + COUNT ( * ), + + NULLIF ( ( 82 ), - 66 + - - 43 ), - 6 + 48 - - + 0 ) * ( 16 ) * - + 35 - + 49 ) * + + 90 - - 24 * + ( - CAST ( NULL AS INTEGER ) ) * - + 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4156
SELECT DISTINCT - 45 * - CASE - COUNT( ALL 53 ) WHEN CAST( NULL AS SIGNED ) + 30 - + AVG ( 44 ) * - 76 THEN NULL ELSE - 12 DIV + - ( - + 46 ) - 26 END + - - COUNT( * ) + - + SUM( + + 41 ) + - - 82 col2
----
-1128

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT - 45 * - CASE - COUNT ( ALL 53 ) WHEN CAST ( NULL AS INTEGER ) + 30 - + AVG ( 44 ) * - 76 THEN NULL ELSE - 12 / + - ( - + 46 ) - 26 END + - - COUNT ( * ) + - + SUM ( + + 41 ) + - - 82 col2
----
-1128

query I rowsort
SELECT - 52 * + 52 + + 4
----
-2700

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT ALL + 2 * 32 * 13 * - 96 + - + 98 - 53 * - 60 + + COALESCE ( - 17, - 64 * 18 + - + ( + ( 14 ) ) * 59, NULLIF ( + ( + 11 ), - - 20 * + 68 ) + + - 5 + 19 + - 15 DIV 58 * + 86 + + + 38 ) AS col1
----
-76807

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + 2 * 32 * 13 * - 96 + - + 98 - 53 * - 60 + + COALESCE ( - 17, - 64 * 18 + - + ( + ( 14 ) ) * 59, NULLIF ( + ( + 11 ), - - 20 * + 68 ) + + - 5 + 19 + - 15 / 58 * + 86 + + + 38 ) AS col1
----
-76807

onlyif mysql # aggregate syntax: 
query II rowsort label-4159
SELECT DISTINCT + - COUNT( * ) col2, + 28 * - + 77 * + 23 * - 58 * + COUNT( * ) + - 11 * 5 AS col0
----
-1
2876049

skipif mysql # not compatible
query II rowsort label-4159
SELECT DISTINCT + - COUNT ( * ) col2, + 28 * - + 77 * + 23 * - 58 * + COUNT ( * ) + - 11 * 5 AS col0
----
-1
2876049

query I rowsort
SELECT ALL 54 * + 5 * - 51 - 97 col0
----
-13867

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4161
SELECT + CAST( NULL AS DECIMAL ), - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4161
SELECT + CAST ( NULL AS REAL ), - COUNT ( * ) AS col0
----
NULL
-1

query II rowsort
SELECT ALL + 30, - 24 AS col2
----
30
-24

query I rowsort
SELECT - - 2 + - 87 AS col1
----
-85

query I rowsort
SELECT ALL + 7 col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4165
SELECT - 34 AS col1, - MAX( 44 ) - + 32 * - + 21
----
-34
628

skipif mysql # not compatible
query II rowsort label-4165
SELECT - 34 AS col1, - MAX ( 44 ) - + 32 * - + 21
----
-34
628

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4166
SELECT + - CASE + AVG ( DISTINCT + 12 ) WHEN + 73 THEN - 64 + - + 97 + - CAST( NULL AS DECIMAL ) / 93 END AS col2, 87
----
NULL
87

skipif mysql # not compatible
query II rowsort label-4166
SELECT + - CASE + AVG ( DISTINCT + 12 ) WHEN + 73 THEN - 64 + - + 97 + - CAST ( NULL AS REAL ) / 93 END AS col2, 87
----
NULL
87

query II rowsort
SELECT 6 AS col0, 51 AS col2
----
6
51

query I rowsort
SELECT + 16 * - + 62
----
-992

onlyif mysql # DIV for integer division: 
query I rowsort label-4169
SELECT DISTINCT - 88 DIV - 52
----
1

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT - 88 / - 52
----
1

query I rowsort
SELECT ALL ( + 81 ) col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4171
SELECT ALL + 70 DIV + 73 * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL + 70 / + 73 * - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT + 57 * + SUM( DISTINCT - + 47 )
----
-2679

skipif mysql # not compatible
query I rowsort label-4172
SELECT + 57 * + SUM ( DISTINCT - + 47 )
----
-2679

query I rowsort
SELECT ALL 62 * + - 31 * + - 16 AS col0
----
30752

query I rowsort
SELECT + 9 - + + COALESCE ( 15, - 25 )
----
-6

query I rowsort
SELECT + 21 * 51 AS col1
----
1071

query I rowsort
SELECT + 26 * - + 38 AS col2
----
-988

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT DISTINCT COUNT( * ) + + 48 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT COUNT ( * ) + + 48 AS col1
----
49

query I rowsort
SELECT + 90 * + - 69
----
-6210

query I rowsort
SELECT + 49 + + 51 AS col2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4180
SELECT - CAST( 53 AS SIGNED ) AS col2, MAX( 16 ) - 79 AS col2
----
-53
-63

skipif mysql # not compatible
query II rowsort label-4180
SELECT - CAST ( 53 AS INTEGER ) AS col2, MAX ( 16 ) - 79 AS col2
----
-53
-63

query I rowsort
SELECT ALL - 8 * - - 5 AS col0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT + 74 + - 56 DIV - 16 + 48 * + 32 - - 82
----
1695

skipif mysql # not compatible
query I rowsort label-4182
SELECT + 74 + - 56 / - 16 + 48 * + 32 - - 82
----
1695

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT - COALESCE ( - 54, - - 65 ) * + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4183
SELECT - COALESCE ( - 54, - - 65 ) * + COUNT ( * ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4184
SELECT ALL + COUNT( * ) * - COUNT( * ) * - 26 * - MIN( DISTINCT 91 ) AS col0, 3 AS col0
----
-2366
3

skipif mysql # not compatible
query II rowsort label-4184
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - 26 * - MIN ( DISTINCT 91 ) AS col0, 3 AS col0
----
-2366
3

query I rowsort
SELECT + + 16 - + 76 AS col2
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4186
SELECT DISTINCT - + NULLIF ( + 33, - - NULLIF ( 94, COUNT( * ) * + 36 + + NULLIF ( + 61, 65 ) * - 55 ) * - 23 ) DIV + 96 * - 17 + - - 92 AS col1, ( + + 87 ) AS col1
----
92
87

skipif mysql # not compatible
query II rowsort label-4186
SELECT DISTINCT - + NULLIF ( + 33, - - NULLIF ( 94, COUNT ( * ) * + 36 + + NULLIF ( + 61, 65 ) * - 55 ) * - 23 ) / + 96 * - 17 + - - 92 AS col1, ( + + 87 ) AS col1
----
92
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4187
SELECT ALL CASE - ( + + 10 ) WHEN - MIN( ALL - - CAST( NULL AS SIGNED ) ) THEN + + 71 + + 15 END * + SUM( + 56 ) * - 97 / + 31 + + - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL CASE - ( + + 10 ) WHEN - MIN ( ALL - - CAST ( NULL AS INTEGER ) ) THEN + + 71 + + 15 END * + SUM ( + 56 ) * - 97 / + 31 + + - 5 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT + - 5 * + - CAST( NULL AS SIGNED ) + - - 85 + + 59 - - 33 - - - 88 * + 33 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT + - 5 * + - CAST ( NULL AS INTEGER ) + - - 85 + + 59 - - 33 - - - 88 * + 33 col1
----
NULL

query I rowsort
SELECT ALL + - 51 * 55 AS col2
----
-2805

onlyif mysql # DIV for integer division: 
query I rowsort label-4190
SELECT ALL + + 35 DIV 13
----
2

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL + + 35 / 13
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT + 26 * + + 15 + COUNT( ALL 89 ) + 20
----
411

skipif mysql # not compatible
query I rowsort label-4191
SELECT + 26 * + + 15 + COUNT ( ALL 89 ) + 20
----
411

query I rowsort
SELECT - 73 - - ( 97 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT + 39 * + 6 * + MIN( DISTINCT - 25 ) * + 64 * + 14 + - 20 col1
----
-5241620

skipif mysql # not compatible
query I rowsort label-4193
SELECT + 39 * + 6 * + MIN ( DISTINCT - 25 ) * + 64 * + 14 + - 20 col1
----
-5241620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT - 86 - + CAST( NULL AS SIGNED ) + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4194
SELECT - 86 - + CAST ( NULL AS INTEGER ) + + 89
----
NULL

query I rowsort
SELECT - + 14 * + 10 AS col0
----
-140

query I rowsort
SELECT - 30 + + - 28 col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4197
SELECT - + 65 + NULLIF ( CAST( NULL AS SIGNED ), - + AVG ( + 86 ) - - SUM( DISTINCT ( 56 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT - + 65 + NULLIF ( CAST ( NULL AS INTEGER ), - + AVG ( + 86 ) - - SUM ( DISTINCT ( 56 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL - 59 * + NULLIF ( + + 3, + ( 29 ) * - 12 * + MAX( 55 ) * ( + 70 ) * + - 64 + + 8 * - ( 8 ) * 89 * 36 + - NULLIF ( AVG ( ALL 63 ), COUNT( * ) ) * - 61 / 6 / + 68 * - COALESCE ( + COUNT( * ), - 69 + - 37 + 14 * - 99 * 2 ) + - 4 * + 82 )
----
-177

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL - 59 * + NULLIF ( + + 3, + ( 29 ) * - 12 * + MAX ( 55 ) * ( + 70 ) * + - 64 + + 8 * - ( 8 ) * 89 * 36 + - NULLIF ( AVG ( ALL 63 ), COUNT ( * ) ) * - 61 / 6 / + 68 * - COALESCE ( + COUNT ( * ), - 69 + - 37 + 14 * - 99 * 2 ) + - 4 * + 82 )
----
-177

query I rowsort
SELECT ALL + ( - - 42 )
----
42

query I rowsort
SELECT DISTINCT - 84 * + - 87
----
7308

query I rowsort
SELECT 11 * + - 89 + + ( - 63 ) AS col0
----
-1042

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL - 53 * + + COUNT( * ) + + 77 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - 53 * + + COUNT ( * ) + + 77 AS col2
----
24

query I rowsort
SELECT CASE 8 WHEN - 88 THEN + 38 + 97 + + 26 + 39 + 24 * + 66 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 93 + + 30 - + - 90 AS col2
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT 96 * COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-4205
SELECT 96 * COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT COUNT( * ) + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4206
SELECT COUNT ( * ) + + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT DISTINCT 13 col0
----
13

query I rowsort
SELECT ALL 9 + 1 * + 51
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT COUNT( * ) * + + SUM( 85 )
----
85

skipif mysql # not compatible
query I rowsort label-4209
SELECT COUNT ( * ) * + + SUM ( 85 )
----
85

query I rowsort
SELECT DISTINCT - 85 + + 4 * - 94
----
-461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT DISTINCT CAST( NULL AS SIGNED ) + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 58
----
NULL

query I rowsort
SELECT ALL 61 * 56
----
3416

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT 37 + + COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4213
SELECT 37 + + COUNT ( * ) AS col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4214
SELECT COUNT( * ) + 9 * COALESCE ( - + 11, + 8 DIV 82, - - 31 * - 57 + - 52 + + MIN( DISTINCT ( - 44 ) ) DIV + 61 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4214
SELECT COUNT ( * ) + 9 * COALESCE ( - + 11, + 8 / 82, - - 31 * - 57 + - 52 + + MIN ( DISTINCT ( - 44 ) ) / + 61 ) AS col1
----
-98

query I rowsort
SELECT 21 - - 85 AS col1
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4216
SELECT MAX( DISTINCT - 4 ) + - COALESCE ( - - 96, 15 DIV 65 + - 49, + COUNT( * ) ) DIV + 17 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4216
SELECT MAX ( DISTINCT - 4 ) + - COALESCE ( - - 96, 15 / 65 + - 49, + COUNT ( * ) ) / + 17 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL SUM( 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL SUM ( 48 )
----
48

query I rowsort
SELECT ( - 47 ) AS col1
----
-47

query I rowsort
SELECT ALL - ( + 60 ) AS col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT + CAST( NULL AS SIGNED ) + - 34 * 29 * - + 91 + 10 * 50 * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT + CAST ( NULL AS INTEGER ) + - 34 * 29 * - + 91 + 10 * 50 * + 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4221
SELECT DISTINCT 77 - NULLIF ( + ( + + COALESCE ( - COALESCE ( + - COUNT( DISTINCT + 97 ), - 31 * 6 + + - 95 ), + 4 ) ), + - COUNT( * ) ) + - 60 + - 93 - - 24 DIV + + 65 - - 61 * - + 55 * CAST( 88 AS SIGNED ) + + + 52 * + 7 + + 6 AS col1
----
-294947

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT 77 - NULLIF ( + ( + + COALESCE ( - COALESCE ( + - COUNT ( DISTINCT + 97 ), - 31 * 6 + + - 95 ), + 4 ) ), + - COUNT ( * ) ) + - 60 + - 93 - - 24 / + + 65 - - 61 * - + 55 * CAST ( 88 AS INTEGER ) + + + 52 * + 7 + + 6 AS col1
----
-294947

query I rowsort
SELECT DISTINCT - 59 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4223
SELECT DISTINCT - 18 col1, - ( ( + SUM( ALL - 11 ) ) )
----
-18
11

skipif mysql # not compatible
query II rowsort label-4223
SELECT DISTINCT - 18 col1, - ( ( + SUM ( ALL - 11 ) ) )
----
-18
11

query II rowsort
SELECT ALL + - 99 * + 33 * - - 40, + ( + 23 ) AS col0
----
-130680
23

query II rowsort
SELECT 99, - 79 * 34 AS col0
----
99
-2686

query I rowsort
SELECT DISTINCT + 82 * + 98
----
8036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4227
SELECT + MIN( DISTINCT - 46 ) DIV 93 + + COUNT( * ) + - - ( - 33 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-4227
SELECT + MIN ( DISTINCT - 46 ) / 93 + + COUNT ( * ) + - - ( - 33 ) AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4228
SELECT DISTINCT NULLIF ( - 48, - 50 ) * + + MAX( DISTINCT - + 35 ) - 74 DIV + 74
----
1679

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT NULLIF ( - 48, - 50 ) * + + MAX ( DISTINCT - + 35 ) - 74 / + 74
----
1679

query I rowsort
SELECT 49 * - ( 46 ) AS col0
----
-2254

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT + - CASE + 36 WHEN - 48 + - + COALESCE ( - 91, + 18 ) + + - 43 * + 96 + + MAX( - 65 ) + 6 / - - ( + + 74 ) * - + 25 / - COUNT( * ) THEN - 65 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT + - CASE + 36 WHEN - 48 + - + COALESCE ( - 91, + 18 ) + + - 43 * + 96 + + MAX ( - 65 ) + 6 / - - ( + + 74 ) * - + 25 / - COUNT ( * ) THEN - 65 END AS col1
----
NULL

query I rowsort
SELECT ALL 7 * + - 91
----
-637

query I rowsort
SELECT ALL + 30 * 49 AS col0
----
1470

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4233
SELECT DISTINCT - - COALESCE ( - + COUNT( 79 ), - 82, - 47 ), 81 DIV 74 AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-4233
SELECT DISTINCT - - COALESCE ( - + COUNT ( 79 ), - 82, - 47 ), 81 / 74 AS col0
----
-1
1

query I rowsort
SELECT 3 * - 73 * - 30
----
6570

query I rowsort
SELECT 6 * 4 * + 0
----
0

query I rowsort
SELECT 15 * + 50
----
750

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT CASE 87 WHEN + 21 THEN + + 17 ELSE + + COUNT( * ) END - 43
----
-42

skipif mysql # not compatible
query I rowsort label-4237
SELECT CASE 87 WHEN + 21 THEN + + 17 ELSE + + COUNT ( * ) END - 43
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL - MAX( DISTINCT - - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL - MAX ( DISTINCT - - 87 )
----
-87

query I rowsort
SELECT 41 * + 20
----
820

query I rowsort
SELECT ALL - ( 46 ) + - COALESCE ( - + 23, + 78 * + 18 - + 29 + - 66 ) * - - 77
----
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT 44 * - + COUNT( * ) - + + 8 + - 44 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-4241
SELECT 44 * - + COUNT ( * ) - + + 8 + - 44 AS col2
----
-96

query I rowsort
SELECT DISTINCT + 53 * - 85 col1
----
-4505

onlyif mysql # aggregate syntax: 
query II rowsort label-4243
SELECT 31 AS col2, - NULLIF ( COUNT( * ), + 25 - + - 89 )
----
31
-1

skipif mysql # not compatible
query II rowsort label-4243
SELECT 31 AS col2, - NULLIF ( COUNT ( * ), + 25 - + - 89 )
----
31
-1

query I rowsort
SELECT ALL - 81 + - 72 + 85 AS col0
----
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-4245
SELECT 21 + + 75 col2, - ( + 53 ) DIV - 47 - - + 47 * 23
----
96
1082

skipif mysql # not compatible
query II rowsort label-4245
SELECT 21 + + 75 col2, - ( + 53 ) / - 47 - - + 47 * 23
----
96
1082

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4246
SELECT MAX( - 19 ) * + 63 + 3 DIV - 15 AS col0
----
-1197

skipif mysql # not compatible
query I rowsort label-4246
SELECT MAX ( - 19 ) * + 63 + 3 / - 15 AS col0
----
-1197

query I rowsort
SELECT 30 + + 61
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-4248
SELECT 66 - - + 83 DIV - 22 + 31, 86 AS col2
----
94
86

skipif mysql # not compatible
query II rowsort label-4248
SELECT 66 - - + 83 / - 22 + 31, 86 AS col2
----
94
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4249
SELECT ALL - 67 AS col0, COUNT( DISTINCT - - 87 ) AS col1
----
-67
1

skipif mysql # not compatible
query II rowsort label-4249
SELECT ALL - 67 AS col0, COUNT ( DISTINCT - - 87 ) AS col1
----
-67
1

query II rowsort
SELECT ALL + 46 - - + 48 AS col0, ( - - 2 ) + - 11 AS col0
----
94
-9

query II rowsort
SELECT ALL - 13 AS col0, - 85 * + - 91 AS col1
----
-13
7735

query I rowsort
SELECT 15 + + 99 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ALL 49 * + + COUNT( * ) * - 58 * - 74 * 61
----
12828788

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL 49 * + + COUNT ( * ) * - 58 * - 74 * 61
----
12828788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT 46 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT 46 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4255
SELECT ALL - + COUNT( * ) * - 25, + 69 AS col0
----
25
69

skipif mysql # not compatible
query II rowsort label-4255
SELECT ALL - + COUNT ( * ) * - 25, + 69 AS col0
----
25
69

query I rowsort
SELECT + 72 + + - 84 AS col1
----
-12

query I rowsort
SELECT DISTINCT - 53 * ( 35 ) + + - 63 col1
----
-1918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4258
SELECT - CAST( + - 74 AS SIGNED ) DIV + 1 + + CASE - + 1 WHEN + + ( - 36 ) * + NULLIF ( - 87, + 65 ) * NULLIF ( + 55, - 28 ) + + 89 + + 86 * - ( - - COUNT( * ) ) + + COALESCE ( + + NULLIF ( 84, + 34 ), - CAST( - 78 AS SIGNED ) ) THEN + - 26 * + - 39 ELSE + - 82 END + + + 38
----
30

skipif mysql # not compatible
query I rowsort label-4258
SELECT - CAST ( + - 74 AS INTEGER ) / + 1 + + CASE - + 1 WHEN + + ( - 36 ) * + NULLIF ( - 87, + 65 ) * NULLIF ( + 55, - 28 ) + + 89 + + 86 * - ( - - COUNT ( * ) ) + + COALESCE ( + + NULLIF ( 84, + 34 ), - CAST ( - 78 AS INTEGER ) ) THEN + - 26 * + - 39 ELSE + - 82 END + + + 38
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4259
SELECT + ( + 60 ), ( - CAST( NULL AS SIGNED ) ) * - 43 * + + 22 AS col1
----
60
NULL

skipif mysql # not compatible
query II rowsort label-4259
SELECT + ( + 60 ), ( - CAST ( NULL AS INTEGER ) ) * - 43 * + + 22 AS col1
----
60
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4260
SELECT 72 * - - CAST( - 9 AS SIGNED ) + + - COUNT( + CAST( NULL AS SIGNED ) ) * + + ( + 8 ) AS col1
----
-648

skipif mysql # not compatible
query I rowsort label-4260
SELECT 72 * - - CAST ( - 9 AS INTEGER ) + + - COUNT ( + CAST ( NULL AS INTEGER ) ) * + + ( + 8 ) AS col1
----
-648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT 2 - + 68 + - + ( - + 97 ) + + 14 - CAST( NULL AS SIGNED ) + - 30 + + 93 + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT 2 - + 68 + - + ( - + 97 ) + + 14 - CAST ( NULL AS INTEGER ) + - 30 + + 93 + - 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4263
SELECT ALL - CAST( + 41 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL - CAST ( + 41 AS INTEGER )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT 23 * + CASE - 16 WHEN + COUNT( 38 ) * - - 73 * - + 17 + + + COUNT( * ) * + + 17 THEN NULL ELSE 15 END + 93 * 29 * - ( 60 ) + 77 * COUNT( * ) + - 17 + 1 - - - 5 AS col1
----
-161419

skipif mysql # not compatible
query I rowsort label-4264
SELECT 23 * + CASE - 16 WHEN + COUNT ( 38 ) * - - 73 * - + 17 + + + COUNT ( * ) * + + 17 THEN NULL ELSE 15 END + 93 * 29 * - ( 60 ) + 77 * COUNT ( * ) + - 17 + 1 - - - 5 AS col1
----
-161419

query I rowsort
SELECT ALL - - 96 col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT DISTINCT 26 * - 35 + + COUNT( * )
----
-909

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT 26 * - 35 + + COUNT ( * )
----
-909

query I rowsort
SELECT ALL - COALESCE ( 89, - 20 ) * - 12 + - - 1
----
1069

query I rowsort
SELECT DISTINCT - - 23
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT + 62 * + - 74 + - COUNT( * )
----
-4589

skipif mysql # not compatible
query I rowsort label-4269
SELECT + 62 * + - 74 + - COUNT ( * )
----
-4589

query II rowsort
SELECT 12 * - - 1 - + 82 + 27 * + 77 AS col0, + 62 AS col0
----
2009
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT + 80 DIV + 29 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4271
SELECT + 80 / + 29 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT COUNT( * ) * + - 54 + 22
----
-32

skipif mysql # not compatible
query I rowsort label-4272
SELECT COUNT ( * ) * + - 54 + 22
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL + 99 * + - 44 + MIN( DISTINCT - 69 ) AS col1
----
-4425

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL + 99 * + - 44 + MIN ( DISTINCT - 69 ) AS col1
----
-4425

query I rowsort
SELECT + 98 * - + 65 AS col1
----
-6370

query I rowsort
SELECT ALL 4 * ( + + 90 ) AS col0
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL COUNT( ALL + 83 ) + - 53 + - 65
----
-117

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL COUNT ( ALL + 83 ) + - 53 + - 65
----
-117

query I rowsort
SELECT + 74 + - 7 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT ALL + COUNT( - COALESCE ( + - ( 95 ), - + 14 + + 69 * + - 50 * + 28 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL + COUNT ( - COALESCE ( + - ( 95 ), - + 14 + + 69 * + - 50 * + 28 ) ) AS col2
----
1

query I rowsort
SELECT ALL 56 + - 60
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT + NULLIF ( - 67, + COUNT( * ) + - 89 * + 74 * + ( + 12 ) ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT + NULLIF ( - 67, + COUNT ( * ) + - 89 * + 74 * + ( + 12 ) ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT - 26 + - 48 - + COUNT( + 73 ) * - 96
----
22

skipif mysql # not compatible
query I rowsort label-4281
SELECT - 26 + - 48 - + COUNT ( + 73 ) * - 96
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4282
SELECT ALL NULLIF ( ( - + 45 ), - 13 ) + - 63 AS col1, 1 + - - CAST( NULL AS SIGNED ) AS col1
----
-108
NULL

skipif mysql # not compatible
query II rowsort label-4282
SELECT ALL NULLIF ( ( - + 45 ), - 13 ) + - 63 AS col1, 1 + - - CAST ( NULL AS INTEGER ) AS col1
----
-108
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT SUM( + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-4283
SELECT SUM ( + 97 )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT + 14 DIV 3 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4284
SELECT + 14 / 3 AS col0
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-4285
SELECT - 20 DIV 92, 62 col0
----
0
62

skipif mysql # not compatible
query II rowsort label-4285
SELECT - 20 / 92, 62 col0
----
0
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT ALL - 77 DIV + + 67
----
-1

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL - 77 / + + 67
----
-1

query I rowsort
SELECT + 32 + - 69 - 46 * + 76
----
-3533

query I rowsort
SELECT - ( ( 50 ) )
----
-50

query I rowsort
SELECT ALL - 50 - - 69 - - 8 * - - 66 * + - 47 AS col2
----
-24797

query I rowsort
SELECT - 80 * - 6
----
480

onlyif mysql # aggregate syntax: 
query II rowsort label-4291
SELECT ALL + 59 * COUNT( * ) AS col2, 34 * - - 27 + 4 AS col1
----
59
922

skipif mysql # not compatible
query II rowsort label-4291
SELECT ALL + 59 * COUNT ( * ) AS col2, 34 * - - 27 + 4 AS col1
----
59
922

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT - + ( + 68 ) + - - COUNT( + 57 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4292
SELECT - + ( + 68 ) + - - COUNT ( + 57 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT + - COUNT( - + 68 ) * - 53
----
53

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT + - COUNT ( - + 68 ) * - 53
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4294
SELECT ALL - ( CAST( ( - CAST( 41 AS SIGNED ) ) AS SIGNED ) ) * 47
----
1927

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - ( CAST ( ( - CAST ( 41 AS INTEGER ) ) AS INTEGER ) ) * 47
----
1927

query I rowsort
SELECT + - 9 * - 47 + + 38
----
461

query II rowsort
SELECT - + 4 * 26 AS col2, 21 AS col0
----
-104
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT - MIN( DISTINCT 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-4297
SELECT - MIN ( DISTINCT 79 )
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4298
SELECT - CAST( NULL AS DECIMAL ) + - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT - CAST ( NULL AS REAL ) + - 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4299
SELECT - 39 + 26 col1, - COUNT( * ) + + 27 * + 90
----
-13
2429

skipif mysql # not compatible
query II rowsort label-4299
SELECT - 39 + 26 col1, - COUNT ( * ) + + 27 * + 90
----
-13
2429

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT - + MIN( ALL 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-4300
SELECT - + MIN ( ALL 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT - MIN( 13 ) * - + 13
----
169

skipif mysql # not compatible
query I rowsort label-4301
SELECT - MIN ( 13 ) * - + 13
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4302
SELECT + CAST( ( + - 78 ) AS SIGNED ) + 41 + 85 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4302
SELECT + CAST ( ( + - 78 ) AS INTEGER ) + 41 + 85 AS col2
----
48

query I rowsort
SELECT + 25 col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT DISTINCT CASE 0 WHEN - COUNT( * ) THEN + 5 * - 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT CASE 0 WHEN - COUNT ( * ) THEN + 5 * - 17 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL 49 + - - COUNT( * ) * + 3
----
52

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL 49 + - - COUNT ( * ) * + 3
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4306
SELECT ALL ( + 76 ) / - COUNT( * ) * CAST( NULL AS SIGNED ) + - 21 + + + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL ( + 76 ) / - COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 21 + + + 87 AS col0
----
NULL

query I rowsort
SELECT - + 2 * - 6 AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4308
SELECT + - ( + + 74 ) AS col1, + 10 * - MIN( DISTINCT 24 )
----
-74
-240

skipif mysql # not compatible
query II rowsort label-4308
SELECT + - ( + + 74 ) AS col1, + 10 * - MIN ( DISTINCT 24 )
----
-74
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT ALL - 41 DIV - 85 + - - 11 col1
----
11

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL - 41 / - 85 + - - 11 col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4310
SELECT - - COUNT( * ) DIV 48 + + 26
----
26

skipif mysql # not compatible
query I rowsort label-4310
SELECT - - COUNT ( * ) / 48 + + 26
----
26

query II rowsort
SELECT ALL + - 61 * + 46 AS col1, + 90
----
-2806
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT + COUNT( * ) + - + 74
----
-73

skipif mysql # not compatible
query I rowsort label-4312
SELECT + COUNT ( * ) + - + 74
----
-73

query I rowsort
SELECT ( 6 ) AS col1
----
6

query II rowsort
SELECT + 86 + + 77 + - - 61 col0, 49
----
224
49

query I rowsort
SELECT ALL + 55 * - 9 + + + 50 + - - 3 * + 60 AS col2
----
-265

onlyif mysql # aggregate syntax: 
query II rowsort label-4316
SELECT + COUNT( * ), - 58 AS col2
----
1
-58

skipif mysql # not compatible
query II rowsort label-4316
SELECT + COUNT ( * ), - 58 AS col2
----
1
-58

query I rowsort
SELECT ( + 50 )
----
50

query II rowsort
SELECT ALL + 92 AS col1, 88
----
92
88

query I rowsort
SELECT ( + - 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT CASE + 19 WHEN COUNT( * ) THEN + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT CASE + 19 WHEN COUNT ( * ) THEN + 19 END
----
NULL

query I rowsort
SELECT + ( - 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT 81 * - - COUNT( * ) - + + 92 + - - 62 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4322
SELECT 81 * - - COUNT ( * ) - + + 92 + - - 62 AS col1
----
51

query I rowsort
SELECT + 44 * 14
----
616

query I rowsort
SELECT + ( + 68 ) col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT + 97 DIV + 31 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4325
SELECT + 97 / + 31 AS col2
----
3

query I rowsort
SELECT COALESCE ( - COALESCE ( - 57, 34 ), + - 78 * COALESCE ( + 57, + - CASE - 50 WHEN + 54 THEN + 27 + - - NULLIF ( - 51, - + 73 * + - 89 ) END ), - 26 ) col0
----
57

query I rowsort
SELECT - ( + 75 )
----
-75

query I rowsort
SELECT DISTINCT 49 * - 39
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT COUNT( * ) * + 96 * - 39 - + 50 AS col2
----
-3794

skipif mysql # not compatible
query I rowsort label-4329
SELECT COUNT ( * ) * + 96 * - 39 - + 50 AS col2
----
-3794

query I rowsort
SELECT ALL NULLIF ( 18, - 30 + + 63 ) AS col0
----
18

query I rowsort
SELECT + 78 * + ( + 18 ) AS col0
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT DISTINCT SUM( ALL - 83 ) * 68 * 46 + - 7
----
-259631

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT SUM ( ALL - 83 ) * 68 * 46 + - 7
----
-259631

query II rowsort
SELECT ALL 35 AS col2, 4 AS col2
----
35
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT + COUNT( ALL + 4 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4334
SELECT + COUNT ( ALL + 4 ) AS col2
----
1

query I rowsort
SELECT + + 39 + - 82
----
-43

query I rowsort
SELECT + - 64 + - 88 AS col1
----
-152

onlyif mysql # aggregate syntax: 
query II rowsort label-4337
SELECT - 58 AS col2, COUNT( 55 ) col1
----
-58
1

skipif mysql # not compatible
query II rowsort label-4337
SELECT - 58 AS col2, COUNT ( 55 ) col1
----
-58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT + CASE - MIN( ALL - 53 ) WHEN COALESCE ( - - 66, - 97 - 21 ) THEN 68 ELSE NULL END * - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT + CASE - MIN ( ALL - 53 ) WHEN COALESCE ( - - 66, - 97 - 21 ) THEN 68 ELSE NULL END * - + 72
----
NULL

query I rowsort
SELECT - 28 - + - 52 AS col0
----
24

query II rowsort
SELECT + 31, + 98 * + 50 AS col0
----
31
4900

query I rowsort
SELECT ALL - - 13 * + - 15 AS col1
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - - COUNT( ALL + - 7 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4342
SELECT - - COUNT ( ALL + - 7 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT DISTINCT 55 + + 56 - 22 + + 68 + + 22 DIV 49
----
157

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT 55 + + 56 - 22 + + 68 + + 22 / 49
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT DISTINCT - 76 + - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT - 76 + - COUNT ( * )
----
-77

query I rowsort
SELECT ALL + + 0 + - + 86 + 17 col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT - - NULLIF ( - COALESCE ( + 81, - 20 * - 12, + COUNT( * ) ), - 89 * - - 45 + - 35 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4346
SELECT - - NULLIF ( - COALESCE ( + 81, - 20 * - 12, + COUNT ( * ) ), - 89 * - - 45 + - 35 ) AS col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4347
SELECT ALL + COALESCE ( - 53, + ( - 91 ) ) + NULLIF ( - - 20, - - CASE AVG ( - + 10 ) WHEN - 96 THEN - SUM( + 23 ) WHEN 64 THEN NULL ELSE NULL END ) * 58 * - + 87 * + 87 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL + COALESCE ( - 53, + ( - 91 ) ) + NULLIF ( - - 20, - - CASE AVG ( - + 10 ) WHEN - 96 THEN - SUM ( + 23 ) WHEN 64 THEN NULL ELSE NULL END ) * 58 * - + 87 * + 87 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 31 * 61 AS col2
----
1891

query I rowsort
SELECT ALL + + 8 + - 79 AS col2
----
-71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4350
SELECT 11 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT 11 + - CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT 29 AS col1, + 95
----
29
95

query I rowsort
SELECT 1 * + ( - - 17 ) * 97 AS col1
----
1649

query I rowsort
SELECT 12 + - ( - + 86 ) AS col2
----
98

query I rowsort
SELECT DISTINCT + 67 + + ( - 35 ) + 75
----
107

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4355
SELECT ALL - COALESCE ( + - ( 32 ), ( COUNT( * ) ) / 62 - - 94 + + 74 * - COUNT( * ), + 33 ) + - ( + ( 28 ) ) - + + CAST( NULL AS DECIMAL ) * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL - COALESCE ( + - ( 32 ), ( COUNT ( * ) ) / 62 - - 94 + + 74 * - COUNT ( * ), + 33 ) + - ( + ( 28 ) ) - + + CAST ( NULL AS REAL ) * - 85
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4356
SELECT 85 DIV - ( - 70 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4356
SELECT 85 / - ( - 70 ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4357
SELECT ALL - COUNT( * ) - - - COUNT( * ) AS col0, 57 * - 94 + + 20 * 44 + - 93
----
-2
-4571

skipif mysql # not compatible
query II rowsort label-4357
SELECT ALL - COUNT ( * ) - - - COUNT ( * ) AS col0, 57 * - 94 + + 20 * 44 + - 93
----
-2
-4571

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT 40 + + 57 + CASE - 66 WHEN + 46 + - ( - COUNT( * ) ) THEN NULL ELSE 7 END + - 31 + - COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4358
SELECT 40 + + 57 + CASE - 66 WHEN + 46 + - ( - COUNT ( * ) ) THEN NULL ELSE 7 END + - 31 + - COUNT ( * ) AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT 11 + 19 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT 11 + 19 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 47 * - 37
----
-1739

query II rowsort
SELECT 56 - 6 AS col2, COALESCE ( - + 21, + - 35 ) + 95 * 33
----
50
3114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4362
SELECT - 22 DIV + 32 * - 98 + + SUM( - 69 ), + 83 * 89 AS col2
----
-69
7387

skipif mysql # not compatible
query II rowsort label-4362
SELECT - 22 / + 32 * - 98 + + SUM ( - 69 ), + 83 * 89 AS col2
----
-69
7387

query I rowsort
SELECT 46 * + 18
----
828

query I rowsort
SELECT ALL - 17 col0
----
-17

query I rowsort
SELECT DISTINCT - 5 * + 28 AS col1
----
-140

query II rowsort
SELECT ALL - ( 31 ), 26 col2
----
-31
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ( + + 45 ) + - CASE 53 WHEN + 16 THEN + + SUM( COALESCE ( - - NULLIF ( + 99, 66 + + + 64 ), + + 17 ) ) + - 0 * - - 14 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT ( + + 45 ) + - CASE 53 WHEN + 16 THEN + + SUM ( COALESCE ( - - NULLIF ( + 99, 66 + + + 64 ), + + 17 ) ) + - 0 * - - 14 ELSE NULL END
----
NULL

query I rowsort
SELECT - 99 + - - 16 + 90 + - 33 * 2 + - + 24 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT + COUNT( * ) * - - 9 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4369
SELECT + COUNT ( * ) * - - 9 AS col0
----
9

query II rowsort
SELECT DISTINCT + 65 + - 7 col1, + 27
----
58
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT - + CASE - 85 WHEN - COUNT( * ) THEN 89 WHEN + + 10 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT - + CASE - 85 WHEN - COUNT ( * ) THEN 89 WHEN + + 10 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL + 16 + 66 + + - ( - SUM( 6 ) ) * - 26 * 24 + + - COUNT( * )
----
-3663

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL + 16 + 66 + + - ( - SUM ( 6 ) ) * - 26 * 24 + + - COUNT ( * )
----
-3663

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4373
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 91 - 4 + 18 * + + ( + 69 ) * + + 99 * CAST( + 95 AS DECIMAL ) * + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 91 - 4 + 18 * + + ( + 69 ) * + + 99 * CAST ( + 95 AS REAL ) * + 47 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4374
SELECT 0 + - + 83 AS col1, 13 * - - CAST( NULL AS SIGNED ) * ( + 56 )
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-4374
SELECT 0 + - + 83 AS col1, 13 * - - CAST ( NULL AS INTEGER ) * ( + 56 )
----
-83
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4375
SELECT ALL - COUNT( + + 25 ) + - - 70 - + + MAX( DISTINCT - - 22 ) DIV + - 33 + + + 99 AS col1
----
168

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL - COUNT ( + + 25 ) + - - 70 - + + MAX ( DISTINCT - - 22 ) / + - 33 + + + 99 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT + SUM( - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT + SUM ( - 85 ) AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT ALL CAST( - - 4 AS SIGNED ) + 87
----
91

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL CAST ( - - 4 AS INTEGER ) + 87
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT - COUNT( * ) * - - 4 * 63
----
-252

skipif mysql # not compatible
query I rowsort label-4378
SELECT - COUNT ( * ) * - - 4 * 63
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT 80 * + 10 * SUM( - - 80 ) * - - 7 + - + 13 col2
----
447987

skipif mysql # not compatible
query I rowsort label-4379
SELECT 80 * + 10 * SUM ( - - 80 ) * - - 7 + - + 13 col2
----
447987

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT 70 + 86 * - + COUNT( + 14 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4380
SELECT 70 + 86 * - + COUNT ( + 14 ) AS col0
----
-16

query I rowsort
SELECT + 51 + + 69 AS col2
----
120

query I rowsort
SELECT DISTINCT 55 - - - 15 AS col1
----
40

query I rowsort
SELECT DISTINCT - 98 * + 8 + - 12 AS col2
----
-796

query I rowsort
SELECT DISTINCT - ( + 77 )
----
-77

query I rowsort
SELECT ALL + 90 * 50
----
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT MIN( + 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4386
SELECT MIN ( + 30 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL - MAX( DISTINCT 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL - MAX ( DISTINCT 14 )
----
-14

query I rowsort
SELECT 40 * - 74
----
-2960

onlyif mysql # DIV for integer division: 
query I rowsort label-4389
SELECT DISTINCT + 45 DIV - 58 col1
----
0

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT + 45 / - 58 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT - MAX( DISTINCT + - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT - MAX ( DISTINCT + - 16 )
----
16

query I rowsort
SELECT 65 * 45
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT ALL + 19 * 87 * SUM( - 9 ) AS col2
----
-14877

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL + 19 * 87 * SUM ( - 9 ) AS col2
----
-14877

onlyif mysql # DIV for integer division: 
query I rowsort label-4393
SELECT 72 DIV + + 37 col0
----
1

skipif mysql # not compatible
query I rowsort label-4393
SELECT 72 / + + 37 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4394
SELECT DISTINCT + 46 / + CAST( NULL AS SIGNED ) * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT + 46 / + CAST ( NULL AS INTEGER ) * + 10
----
NULL

query I rowsort
SELECT 55 * 73 + + - 28 col2
----
3987

query I rowsort
SELECT ALL + 28 + 92
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT 55 + CAST( - 59 AS SIGNED ) + - - 35
----
31

skipif mysql # not compatible
query I rowsort label-4397
SELECT 55 + CAST ( - 59 AS INTEGER ) + - - 35
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4398
SELECT + 22 DIV + 16 DIV NULLIF ( COUNT( * ), + - 99 + MIN( - 21 ) DIV 23 DIV - NULLIF ( 59, 93 * + 59 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4398
SELECT + 22 / + 16 / NULLIF ( COUNT ( * ), + - 99 + MIN ( - 21 ) / 23 / - NULLIF ( 59, 93 * + 59 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT 15 + SUM( + 51 )
----
66

skipif mysql # not compatible
query I rowsort label-4399
SELECT 15 + SUM ( + 51 )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4400
SELECT CAST( - + 20 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-4400
SELECT CAST ( - + 20 AS INTEGER )
----
-20

query I rowsort
SELECT ALL - 36 * 2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT DISTINCT - - 96 + - COUNT( ALL - + 83 ) col2
----
95

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT - - 96 + - COUNT ( ALL - + 83 ) col2
----
95

query I rowsort
SELECT DISTINCT - - 79 + + + 84 + - - 85 * + 96
----
8323

query I rowsort
SELECT ALL 89 + 90 AS col1
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT + 63 - - COUNT( * ) - 37 * 40 AS col0
----
-1416

skipif mysql # not compatible
query I rowsort label-4405
SELECT + 63 - - COUNT ( * ) - 37 * 40 AS col0
----
-1416

query II rowsort
SELECT - + 69 AS col1, - 99 * + - 47
----
-69
4653

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT 84 + - + 12 - - 82 + COUNT( * ) AS col1
----
155

skipif mysql # not compatible
query I rowsort label-4407
SELECT 84 + - + 12 - - 82 + COUNT ( * ) AS col1
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL COALESCE ( + ( - 87 ), - 77, - - COUNT( * ), + 86 ) col2
----
-87

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL COALESCE ( + ( - 87 ), - 77, - - COUNT ( * ), + 86 ) col2
----
-87

query I rowsort
SELECT - 29 + + 99 AS col0
----
70

query I rowsort
SELECT - ( 19 ) AS col0
----
-19

query I rowsort
SELECT + - 98 * + 48
----
-4704

query I rowsort
SELECT DISTINCT - 93 + + 59 AS col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT - CAST( - 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-4413
SELECT - CAST ( - 8 AS INTEGER )
----
8

query I rowsort
SELECT CASE 57 WHEN 36 / - - 86 THEN NULL WHEN 18 THEN + 11 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4415
SELECT ALL + COUNT( * ) DIV - 9
----
0

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL + COUNT ( * ) / - 9
----
0

query I rowsort
SELECT ALL 5 * + 43
----
215

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4417
SELECT + 74 DIV SUM( DISTINCT - 24 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4417
SELECT + 74 / SUM ( DISTINCT - 24 ) AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4418
SELECT DISTINCT + 32 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT + 32 / - 96 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4419
SELECT DISTINCT CASE + - CAST( - 50 AS SIGNED ) WHEN + - 22 THEN 85 ELSE NULL END AS col1, - 20
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-4419
SELECT DISTINCT CASE + - CAST ( - 50 AS INTEGER ) WHEN + - 22 THEN 85 ELSE NULL END AS col1, - 20
----
NULL
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT + - COUNT( * ) + ( - 52 ) * CAST( NULL AS SIGNED ) * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT + - COUNT ( * ) + ( - 52 ) * CAST ( NULL AS INTEGER ) * + 87
----
NULL

query II rowsort
SELECT ALL 62 * + + ( + + 38 ), 7 AS col2
----
2356
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT ALL 63 - + + COUNT( * ) col0
----
62

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL 63 - + + COUNT ( * ) col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4423
SELECT DISTINCT 92 col2, COUNT( * ) AS col2
----
92
1

skipif mysql # not compatible
query II rowsort label-4423
SELECT DISTINCT 92 col2, COUNT ( * ) AS col2
----
92
1

query II rowsort
SELECT ALL 44 AS col1, 3
----
44
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4425
SELECT + 39 + - 66 + 90 + + - 48 * + COALESCE ( 24, - ( + 7 ) - 55 ) + 69 + - 8 * 62 AS col0, SUM( ALL + 65 )
----
-1516
65

skipif mysql # not compatible
query II rowsort label-4425
SELECT + 39 + - 66 + 90 + + - 48 * + COALESCE ( 24, - ( + 7 ) - 55 ) + 69 + - 8 * 62 AS col0, SUM ( ALL + 65 )
----
-1516
65

query I rowsort
SELECT + 45 - + 52 * + 71 AS col0
----
-3647

query I rowsort
SELECT + 15 + - + 81 AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4428
SELECT ALL 27 / MAX( DISTINCT - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL 27 / MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL 52 col1, - 92 AS col2
----
52
-92

query I rowsort
SELECT + 9 * - - 39 * 69
----
24219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4431
SELECT ALL 74 DIV + + 91 * + ( - COUNT( + + 37 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL 74 / + + 91 * + ( - COUNT ( + + 37 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT + 85 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT + 85 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4433
SELECT + COUNT( * ) * ( + - COALESCE ( 26, - 84 * - - SUM( + - 77 ) + + 51 DIV + MIN( - ( 48 ) ) - + 14, - - 17 ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-4433
SELECT + COUNT ( * ) * ( + - COALESCE ( 26, - 84 * - - SUM ( + - 77 ) + + 51 / + MIN ( - ( 48 ) ) - + 14, - - 17 ) ) AS col1
----
-26

query I rowsort
SELECT ALL + 59 * - 27 * - 34
----
54162

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT + 26 * 88 * - CASE 65 WHEN - 6 + + 98 + 19 * - 52 THEN + MAX( DISTINCT 26 ) * - - 9 * + + 19 * + ( + 32 ) ELSE - COUNT( * ) END * - ( 15 ) + - 81 * 47 AS col0
----
-38127

skipif mysql # not compatible
query I rowsort label-4435
SELECT + 26 * 88 * - CASE 65 WHEN - 6 + + 98 + 19 * - 52 THEN + MAX ( DISTINCT 26 ) * - - 9 * + + 19 * + ( + 32 ) ELSE - COUNT ( * ) END * - ( 15 ) + - 81 * 47 AS col0
----
-38127

onlyif mysql # aggregate syntax: 
query II rowsort label-4436
SELECT ALL + 91 AS col1, COUNT( * )
----
91
1

skipif mysql # not compatible
query II rowsort label-4436
SELECT ALL + 91 AS col1, COUNT ( * )
----
91
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4437
SELECT ALL + 36, CAST( NULL AS SIGNED ) * 76 * - 74 / - 33 AS col2
----
36
NULL

skipif mysql # not compatible
query II rowsort label-4437
SELECT ALL + 36, CAST ( NULL AS INTEGER ) * 76 * - 74 / - 33 AS col2
----
36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL + NULLIF ( COUNT( * ), + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL + NULLIF ( COUNT ( * ), + 32 )
----
1

query I rowsort
SELECT - COALESCE ( + ( + 3 ), + 84 ) + 73
----
70

query I rowsort
SELECT NULLIF ( + 11, 9 ) AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4441
SELECT - COUNT( * ) + 94 + CAST( + - 30 AS SIGNED ) + + 25 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4441
SELECT - COUNT ( * ) + 94 + CAST ( + - 30 AS INTEGER ) + + 25 AS col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4442
SELECT + ( - CASE - 39 WHEN - CAST( + 60 AS SIGNED ) THEN NULL WHEN 23 + COUNT( * ) * - 27 - - 15 * + ( - + 77 ) THEN 53 * - - 2 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT + ( - CASE - 39 WHEN - CAST ( + 60 AS INTEGER ) THEN NULL WHEN 23 + COUNT ( * ) * - 27 - - 15 * + ( - + 77 ) THEN 53 * - - 2 END )
----
NULL

query I rowsort
SELECT ALL ( 22 ) * 59 + 87 + - 72 * + 84 - + - 79 AS col2
----
-4584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4444
SELECT - COUNT( * ) + + 64 DIV 25 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4444
SELECT - COUNT ( * ) + + 64 / 25 AS col2
----
1

query II rowsort
SELECT ALL + - 3 AS col0, 59 + - ( - 64 )
----
-3
123

query II rowsort
SELECT - 47 + - 99 AS col2, 55 + 68 + - ( + 56 ) * - 77
----
-146
4435

query I rowsort
SELECT + ( + + 59 ) AS col0
----
59

query I rowsort
SELECT + - 50 * - 8 + - + 27 * + 84
----
-1868

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT - - 44 * + 65 - + - 53 * - ( COUNT( * ) )
----
2807

skipif mysql # not compatible
query I rowsort label-4449
SELECT - - 44 * + 65 - + - 53 * - ( COUNT ( * ) )
----
2807

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT - + 33 + + + 48 + - 86 * + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-4450
SELECT - + 33 + + + 48 + - 86 * + COUNT ( * )
----
-71

query II rowsort
SELECT - + 75 * NULLIF ( + NULLIF ( - 71, - - 48 ), - - 85 ), - 21 col0
----
5325
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT ALL + - NULLIF ( - NULLIF ( + - 76, + 9 + + COUNT( * ) + + 72 / + 68 ), + 63 ) * + 16 AS col1
----
-1216

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL + - NULLIF ( - NULLIF ( + - 76, + 9 + + COUNT ( * ) + + 72 / + 68 ), + 63 ) * + 16 AS col1
----
-1216

query II rowsort
SELECT - 6 AS col2, + NULLIF ( + 69, + 47 * + 66 ) AS col2
----
-6
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - 50 * - - MIN( DISTINCT - 21 ) + - 61
----
989

skipif mysql # not compatible
query I rowsort label-4454
SELECT - 50 * - - MIN ( DISTINCT - 21 ) + - 61
----
989

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL + COUNT( DISTINCT - + ( + + 47 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL + COUNT ( DISTINCT - + ( + + 47 ) )
----
1

query II rowsort
SELECT ALL + - 26 - + 19 AS col2, + 83 AS col1
----
-45
83

query I rowsort
SELECT - 63 * 43
----
-2709

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT - - ( ( 84 ) ) + + - COUNT( * ) + + 52 * - 26
----
-1269

skipif mysql # not compatible
query I rowsort label-4458
SELECT - - ( ( 84 ) ) + + - COUNT ( * ) + + 52 * - 26
----
-1269

onlyif mysql # DIV for integer division: 
query II rowsort label-4459
SELECT - 57, 4 DIV + 98 AS col2
----
-57
0

skipif mysql # not compatible
query II rowsort label-4459
SELECT - 57, 4 / + 98 AS col2
----
-57
0

query II rowsort
SELECT ALL + 76 AS col0, 98 * - ( 23 )
----
76
-2254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4461
SELECT ALL CAST( + 39 AS SIGNED ) col2
----
39

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL CAST ( + 39 AS INTEGER ) col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4462
SELECT DISTINCT CAST( + 93 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT CAST ( + 93 AS INTEGER )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4463
SELECT + ( 98 ) DIV - + 8 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4463
SELECT + ( 98 ) / - + 8 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT - MAX( 19 ) * - - 14
----
-266

skipif mysql # not compatible
query I rowsort label-4464
SELECT - MAX ( 19 ) * - - 14
----
-266

query I rowsort
SELECT + ( 80 ) + + 33 + + NULLIF ( - 70, 35 ) AS col2
----
43

query I rowsort
SELECT DISTINCT 38 * NULLIF ( + + 45, ( + 9 ) / 62 + - 31 + - - 91 )
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT + 62 * + SUM( - + 15 ) col0
----
-930

skipif mysql # not compatible
query I rowsort label-4467
SELECT + 62 * + SUM ( - + 15 ) col0
----
-930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4468
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + MAX( + 13 ) * 20 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + MAX ( + 13 ) * 20 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4469
SELECT ALL MIN( DISTINCT + + 22 ) / + + 19 + - MIN( ALL - 80 ) * + + 59 + - 89 + - CAST( NULL AS DECIMAL ) * + - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL MIN ( DISTINCT + + 22 ) / + + 19 + - MIN ( ALL - 80 ) * + + 59 + - 89 + - CAST ( NULL AS REAL ) * + - 26 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4470
SELECT ALL 78 DIV + COUNT( * ) + 46 + - CAST( + ( - - COUNT( * ) ) AS SIGNED ) AS col1
----
123

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL 78 / + COUNT ( * ) + 46 + - CAST ( + ( - - COUNT ( * ) ) AS INTEGER ) AS col1
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4471
SELECT - 26 * + - COALESCE ( + - 26, - CAST( NULL AS SIGNED ) - + CASE + 16 WHEN + COUNT( * ) * - 31 THEN NULL WHEN + ( - 78 ) THEN - - 38 END ) * + 76
----
-51376

skipif mysql # not compatible
query I rowsort label-4471
SELECT - 26 * + - COALESCE ( + - 26, - CAST ( NULL AS INTEGER ) - + CASE + 16 WHEN + COUNT ( * ) * - 31 THEN NULL WHEN + ( - 78 ) THEN - - 38 END ) * + 76
----
-51376

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4472
SELECT CAST( - - CAST( - 93 AS DECIMAL ) AS SIGNED ) col0, - 84 + 68
----
-93
-16

skipif mysql # not compatible
query II rowsort label-4472
SELECT CAST ( - - CAST ( - 93 AS REAL ) AS INTEGER ) col0, - 84 + 68
----
-93
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT + CAST( + 58 AS SIGNED ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4473
SELECT + CAST ( + 58 AS INTEGER ) AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4474
SELECT CAST( 70 AS SIGNED ), ( - COUNT( * ) ) * - 96 AS col1
----
70
96

skipif mysql # not compatible
query II rowsort label-4474
SELECT CAST ( 70 AS INTEGER ), ( - COUNT ( * ) ) * - 96 AS col1
----
70
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4475
SELECT + 78 DIV - - 65 col0
----
1

skipif mysql # not compatible
query I rowsort label-4475
SELECT + 78 / - - 65 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT + 84 DIV 95 * - 90 DIV + 75 col1
----
0

skipif mysql # not compatible
query I rowsort label-4476
SELECT + 84 / 95 * - 90 / + 75 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4477
SELECT + 96 * - 40 AS col1, COUNT( * ) AS col1
----
-3840
1

skipif mysql # not compatible
query II rowsort label-4477
SELECT + 96 * - 40 AS col1, COUNT ( * ) AS col1
----
-3840
1

query I rowsort
SELECT + ( + - 46 )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT ALL 33 DIV + 95 * 62 * - 88 + - 45 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL 33 / + 95 * 62 * - 88 + - 45 AS col1
----
-45

query I rowsort
SELECT + ( 64 ) * + 62 * - NULLIF ( - - 45, 91 ) * 89 - + 61 AS col2
----
-15891901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4481
SELECT DISTINCT - + 84 DIV + + COUNT( * ) + - 72
----
-156

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT - + 84 / + + COUNT ( * ) + - 72
----
-156

query II rowsort
SELECT + - 65 * - - 17, ( - - 55 ) AS col2
----
-1105
55

query I rowsort
SELECT ALL - 59 - - 79 AS col1
----
20

query I rowsort
SELECT ALL + 84 - 84 AS col2
----
0

query I rowsort
SELECT ALL - - 37 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4486
SELECT + 11 + - + 89 + + 5 * + NULLIF ( + 96, - - CASE + ( CAST( + COUNT( * ) AS SIGNED ) ) WHEN 71 * 68 + ( + + COUNT( * ) ) * + 58 THEN COUNT( + 55 ) WHEN - 87 THEN NULL END ) * - + COUNT( * ) AS col0
----
-558

skipif mysql # not compatible
query I rowsort label-4486
SELECT + 11 + - + 89 + + 5 * + NULLIF ( + 96, - - CASE + ( CAST ( + COUNT ( * ) AS INTEGER ) ) WHEN 71 * 68 + ( + + COUNT ( * ) ) * + 58 THEN COUNT ( + 55 ) WHEN - 87 THEN NULL END ) * - + COUNT ( * ) AS col0
----
-558

query I rowsort
SELECT 45 * + - 49
----
-2205

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT DISTINCT - ( COALESCE ( - 61, - 44 + + 10 + 49, + 37 * + ( + + 59 ) DIV + 50 ) )
----
61

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - ( COALESCE ( - 61, - 44 + + 10 + 49, + 37 * + ( + + 59 ) / + 50 ) )
----
61

query I rowsort
SELECT 47 + + 75
----
122

query I rowsort
SELECT COALESCE ( - 12, 63 )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-4491
SELECT COUNT( * ) + - 45 * - 19 AS col0, - COUNT( * )
----
856
-1

skipif mysql # not compatible
query II rowsort label-4491
SELECT COUNT ( * ) + - 45 * - 19 AS col0, - COUNT ( * )
----
856
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4492
SELECT ( - + 44 ) DIV + COUNT( * ) + - 47 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4492
SELECT ( - + 44 ) / + COUNT ( * ) + - 47 AS col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4493
SELECT - - 55 * + MAX( DISTINCT - + CAST( + 74 AS SIGNED ) ) + + CAST( + 8 AS SIGNED ) + - COALESCE ( + - 83, - - COUNT( * ), - 75, - ( 29 ) )
----
-3979

skipif mysql # not compatible
query I rowsort label-4493
SELECT - - 55 * + MAX ( DISTINCT - + CAST ( + 74 AS INTEGER ) ) + + CAST ( + 8 AS INTEGER ) + - COALESCE ( + - 83, - - COUNT ( * ), - 75, - ( 29 ) )
----
-3979

query II rowsort
SELECT - 39 col0, 14
----
-39
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT ALL - CAST( NULL AS SIGNED ) * + + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 38 AS col2
----
NULL

query I rowsort
SELECT 66 * + 30
----
1980

query I rowsort
SELECT ALL - 22 * - - NULLIF ( + + 0, 0 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT DISTINCT COUNT( * ) * + - 14
----
-14

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT COUNT ( * ) * + - 14
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4499
SELECT DISTINCT + CAST( - 7 AS SIGNED ) * - - 82 * - 83 AS col2, COUNT( * )
----
47642
1

skipif mysql # not compatible
query II rowsort label-4499
SELECT DISTINCT + CAST ( - 7 AS INTEGER ) * - - 82 * - 83 AS col2, COUNT ( * )
----
47642
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT ALL - 59 + + 92 + - + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL - 59 + + 92 + - + COUNT ( * ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT DISTINCT + 5 + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT + 5 + + COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4502
SELECT 43 AS col0, - MIN( + + 32 ) AS col2
----
43
-32

skipif mysql # not compatible
query II rowsort label-4502
SELECT 43 AS col0, - MIN ( + + 32 ) AS col2
----
43
-32

query I rowsort
SELECT 46 + + 85
----
131

query I rowsort
SELECT 91 * 96 AS col0
----
8736

query II rowsort
SELECT ALL 71, 25 AS col1
----
71
25

query I rowsort
SELECT 65 + COALESCE ( - 91, + 90 * - 95 ) AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4507
SELECT - 73, + CAST( 95 AS SIGNED ) AS col0
----
-73
95

skipif mysql # not compatible
query II rowsort label-4507
SELECT - 73, + CAST ( 95 AS INTEGER ) AS col0
----
-73
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL + MIN( ALL - - 31 ) + + + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL + MIN ( ALL - - 31 ) + + + COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT DISTINCT - NULLIF ( + COUNT( * ), 74 - 18 + + - 13 * COUNT( * ) / - 67 * - + 82 + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT - NULLIF ( + COUNT ( * ), 74 - 18 + + - 13 * COUNT ( * ) / - 67 * - + 82 + 95 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL 66 + - 53 * + - SUM( - 46 )
----
-2372

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL 66 + - 53 * + - SUM ( - 46 )
----
-2372

query I rowsort
SELECT 81 + - 92 * + + 1 AS col2
----
-11

query I rowsort
SELECT DISTINCT 84 * + + 91
----
7644

query I rowsort
SELECT DISTINCT - 15 + + + 75 AS col2
----
60

query II rowsort
SELECT ALL - + 60 AS col2, + 67
----
-60
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4515
SELECT + 31 DIV + + COUNT( - 17 ) + - - 99 * COUNT( + 1 ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-4515
SELECT + 31 / + + COUNT ( - 17 ) + - - 99 * COUNT ( + 1 ) AS col1
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-4516
SELECT - ( + 8 ) * - 78 AS col0, MIN( + 60 ) * 54
----
624
3240

skipif mysql # not compatible
query II rowsort label-4516
SELECT - ( + 8 ) * - 78 AS col0, MIN ( + 60 ) * 54
----
624
3240

query I rowsort
SELECT 21 * 24 AS col0
----
504

query I rowsort
SELECT + 43 + 47
----
90

query II rowsort
SELECT ALL - - 26, 26 AS col2
----
26
26

query I rowsort
SELECT - 65 + - + 40 AS col1
----
-105

query I rowsort
SELECT 0 * - 39
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4522
SELECT DISTINCT - COUNT( * ) DIV - NULLIF ( + 19, 87 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT - COUNT ( * ) / - NULLIF ( + 19, 87 ) AS col0
----
0

query I rowsort
SELECT ALL + 47 - + 3 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL - MIN( ALL - + 22 ) * - - 53 AS col1
----
1166

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - MIN ( ALL - + 22 ) * - - 53 AS col1
----
1166

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4525
SELECT + 32 DIV - + 67 DIV - COUNT( * ) AS col0, 35 * - 73 + - + 81 AS col2
----
0
-2636

skipif mysql # not compatible
query II rowsort label-4525
SELECT + 32 / - + 67 / - COUNT ( * ) AS col0, 35 * - 73 + - + 81 AS col2
----
0
-2636

query I rowsort
SELECT ALL 85 * - - 73 col2
----
6205

query II rowsort
SELECT DISTINCT - - 24 AS col2, 92 AS col2
----
24
92

query II rowsort
SELECT 9, 83 AS col2
----
9
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4529
SELECT DISTINCT - ( + ( - CAST( NULL AS DECIMAL ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT - ( + ( - CAST ( NULL AS REAL ) ) ) col0
----
NULL

query I rowsort
SELECT 49 + + 21 col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT - + CASE + COUNT( ALL - + 16 ) WHEN - ( + + COUNT( 13 ) ) * + COUNT( * ) THEN - 13 ELSE 44 END
----
-44

skipif mysql # not compatible
query I rowsort label-4531
SELECT - + CASE + COUNT ( ALL - + 16 ) WHEN - ( + + COUNT ( 13 ) ) * + COUNT ( * ) THEN - 13 ELSE 44 END
----
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4532
SELECT ALL + ( - CAST( NULL AS DECIMAL ) ) + + - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL + ( - CAST ( NULL AS REAL ) ) + + - 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL SUM( ALL - 41 ) + + 49 * - - 23 * - - 65 AS col0
----
73214

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL SUM ( ALL - 41 ) + + 49 * - - 23 * - - 65 AS col0
----
73214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4534
SELECT COUNT( * ) + + COALESCE ( + 1, - + 76 ) DIV - - 98 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4534
SELECT COUNT ( * ) + + COALESCE ( + 1, - + 76 ) / - - 98 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4535
SELECT ALL + 63 + + - 4 + + 27 DIV - 97
----
59

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL + 63 + + - 4 + + 27 / - 97
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL + 0 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + 0 * + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4537
SELECT 66 + 98 + + 56 * - 18, 65 + - 92 * ( + COUNT( * ) ) AS col2
----
-844
-27

skipif mysql # not compatible
query II rowsort label-4537
SELECT 66 + 98 + + 56 * - 18, 65 + - 92 * ( + COUNT ( * ) ) AS col2
----
-844
-27

query I rowsort
SELECT ALL 44 + - + 23 + 59
----
80

query I rowsort
SELECT ALL + 91 + - + 88 + + 67 col2
----
70

query I rowsort
SELECT 81 + - 5 AS col1
----
76

query I rowsort
SELECT ALL + 1 * 3 * - 4 col2
----
-12

query II rowsort
SELECT 91 + + 90, 96 + + 0 AS col2
----
181
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT ALL MAX( - 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL MAX ( - 53 ) AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT ALL 61 * 61 * 23 * + + CAST( 8 AS SIGNED ) AS col0
----
684664

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL 61 * 61 * 23 * + + CAST ( 8 AS INTEGER ) AS col0
----
684664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4545
SELECT 81 DIV - 21 * COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4545
SELECT 81 / - 21 * COUNT ( * ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT DISTINCT + 83 * + - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT + 83 * + - COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT ALL - 29 - + + 7 + COUNT( * ) * - 42
----
-78

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL - 29 - + + 7 + COUNT ( * ) * - 42
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-4548
SELECT DISTINCT COALESCE ( COUNT( * ), + ( - ( + + COUNT( * ) ) ), - 89 + - - ( - + SUM( DISTINCT - 2 ) ) ) AS col0, + ( + 13 ) * - - 76 + 79
----
1
1067

skipif mysql # not compatible
query II rowsort label-4548
SELECT DISTINCT COALESCE ( COUNT ( * ), + ( - ( + + COUNT ( * ) ) ), - 89 + - - ( - + SUM ( DISTINCT - 2 ) ) ) AS col0, + ( + 13 ) * - - 76 + 79
----
1
1067

onlyif mysql # DIV for integer division: 
query I rowsort label-4549
SELECT + 37 DIV + 17 - 61
----
-59

skipif mysql # not compatible
query I rowsort label-4549
SELECT + 37 / + 17 - 61
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT - COUNT( ALL - 64 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4550
SELECT - COUNT ( ALL - 64 ) col0
----
-1

query I rowsort
SELECT - - 31 * - 68 * 50
----
-105400

query I rowsort
SELECT ALL + 76 * - 38 + - 83
----
-2971

query I rowsort
SELECT ALL + - 72 AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4554
SELECT ALL + SUM( + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL + SUM ( + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4555
SELECT ALL - COUNT( * ) * + COUNT( - 50 ) * + + CASE + 76 WHEN - + 95 * - CAST( NULL AS SIGNED ) * + 44 THEN + MAX( ALL 8 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - COUNT ( * ) * + COUNT ( - 50 ) * + + CASE + 76 WHEN - + 95 * - CAST ( NULL AS INTEGER ) * + 44 THEN + MAX ( ALL 8 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT - 39 * + COUNT( DISTINCT - 29 )
----
-39

skipif mysql # not compatible
query I rowsort label-4556
SELECT - 39 * + COUNT ( DISTINCT - 29 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT + COALESCE ( + COUNT( ALL - 69 ), - 27 * SUM( ALL ( + 70 ) ) * 97 + 75 - + 72, CASE - COUNT( * ) WHEN 65 * - - 84 * 97 * + 27 THEN + 49 ELSE - 53 * COUNT( * ) + + MIN( 69 ) END )
----
1

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT + COALESCE ( + COUNT ( ALL - 69 ), - 27 * SUM ( ALL ( + 70 ) ) * 97 + 75 - + 72, CASE - COUNT ( * ) WHEN 65 * - - 84 * 97 * + 27 THEN + 49 ELSE - 53 * COUNT ( * ) + + MIN ( 69 ) END )
----
1

query I rowsort
SELECT ALL + CASE + 91 WHEN - - 73 THEN - 39 WHEN - 34 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT - COUNT( * ) + 6
----
5

skipif mysql # not compatible
query I rowsort label-4559
SELECT - COUNT ( * ) + 6
----
5

query I rowsort
SELECT 64 * - - ( - 11 ) + - 40 + - - 80 + 45 AS col2
----
-619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT DISTINCT + - CAST( 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT + - CAST ( 37 AS INTEGER )
----
-37

query I rowsort
SELECT DISTINCT + 13 + + - 76 * - - 30 + - 58 AS col0
----
-2325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4563
SELECT DISTINCT 16 + + CAST( NULL AS SIGNED ) / + - 45 + - + COUNT( * ) + 14 * + - COUNT( ALL - 48 ) + - COUNT( * ) + - - 57 / - 24 * NULLIF ( - ( + ( + 71 ) ), - 29 + + - 79 ) + COALESCE ( + 67, + - 74 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT 16 + + CAST ( NULL AS INTEGER ) / + - 45 + - + COUNT ( * ) + 14 * + - COUNT ( ALL - 48 ) + - COUNT ( * ) + - - 57 / - 24 * NULLIF ( - ( + ( + 71 ) ), - 29 + + - 79 ) + COALESCE ( + 67, + - 74 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT COUNT( ALL 31 )
----
1

skipif mysql # not compatible
query I rowsort label-4564
SELECT COUNT ( ALL 31 )
----
1

query I rowsort
SELECT ALL 21 * 47 AS col1
----
987

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4566
SELECT + 27 + + 40 DIV + 94 DIV + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4566
SELECT + 27 + + 40 / + 94 / + COUNT ( * ) AS col2
----
27

query I rowsort
SELECT DISTINCT 56 + 19 + 81 AS col2
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4568
SELECT DISTINCT 15 + + 49 + - + COUNT( * ) DIV NULLIF ( 24, 94 ) col0
----
64

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT 15 + + 49 + - + COUNT ( * ) / NULLIF ( 24, 94 ) col0
----
64

query I rowsort
SELECT ALL 91 - ( 31 ) + 47 AS col1
----
107

query I rowsort
SELECT - COALESCE ( - 20, - 62 ) col1
----
20

query I rowsort
SELECT DISTINCT 20 * + 46
----
920

query I rowsort
SELECT + ( - 79 ) * + 54 + 18 AS col0
----
-4248

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL MIN( + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL MIN ( + 21 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT - ( - CAST( ( + - 43 ) AS SIGNED ) )
----
-43

skipif mysql # not compatible
query I rowsort label-4574
SELECT - ( - CAST ( ( + - 43 ) AS INTEGER ) )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL 55 - - MIN( ALL + 11 ) * + 8 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL 55 - - MIN ( ALL + 11 ) * + 8 AS col0
----
143

query I rowsort
SELECT + 37 + 91 * + + 20 AS col2
----
1857

query I rowsort
SELECT + ( 82 ) * 25
----
2050

query I rowsort
SELECT - 1 * + 91 AS col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4579
SELECT + ( + NULLIF ( + 69, 25 * - 85 * - + COUNT( * ) * - CAST( 75 AS DECIMAL ) - + 0 ) ) + + COALESCE ( + ( 32 ), - 34 ) * + + 9 AS col2
----
357

skipif mysql # not compatible
query I rowsort label-4579
SELECT + ( + NULLIF ( + 69, 25 * - 85 * - + COUNT ( * ) * - CAST ( 75 AS REAL ) - + 0 ) ) + + COALESCE ( + ( 32 ), - 34 ) * + + 9 AS col2
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT - - 86 - + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-4580
SELECT - - 86 - + COUNT ( * )
----
85

query I rowsort
SELECT ALL - 80 - + - 51 AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4582
SELECT - + COALESCE ( + COUNT( * ), + - CAST( NULL AS SIGNED ) DIV + COUNT( * ) + - - 8 ) * - - 4 + - 86 + - 63 - + 44 + 66 - 82 AS col0
----
-213

skipif mysql # not compatible
query I rowsort label-4582
SELECT - + COALESCE ( + COUNT ( * ), + - CAST ( NULL AS INTEGER ) / + COUNT ( * ) + - - 8 ) * - - 4 + - 86 + - 63 - + 44 + 66 - 82 AS col0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT + COUNT( ALL 24 )
----
1

skipif mysql # not compatible
query I rowsort label-4583
SELECT + COUNT ( ALL 24 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4584
SELECT DISTINCT - AVG ( - 75 ) * + CAST( NULL AS SIGNED ), CAST( NULL AS DECIMAL ) * + 4
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4584
SELECT DISTINCT - AVG ( - 75 ) * + CAST ( NULL AS INTEGER ), CAST ( NULL AS REAL ) * + 4
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 3 * 16
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT - 27 + COUNT( * ) * - 57 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4586
SELECT - 27 + COUNT ( * ) * - 57 AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT + CAST( + ( - 12 ) AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-4587
SELECT + CAST ( + ( - 12 ) AS INTEGER )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT - NULLIF ( + + 80, + + ( COALESCE ( 70, + - 57, + 50 ) ) ) + + 88 DIV 76 * - 84 * + 47
----
-4028

skipif mysql # not compatible
query I rowsort label-4588
SELECT - NULLIF ( + + 80, + + ( COALESCE ( 70, + - 57, + 50 ) ) ) + + 88 / 76 * - 84 * + 47
----
-4028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4589
SELECT ALL + CAST( - - ( + + 43 ) AS SIGNED ) DIV + COUNT( * ) + + 81 - - - 39 * 77 + - 29 + + + 52 + 37 * - 93 * - + 75 AS col2
----
255219

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL + CAST ( - - ( + + 43 ) AS INTEGER ) / + COUNT ( * ) + + 81 - - - 39 * 77 + - 29 + + + 52 + 37 * - 93 * - + 75 AS col2
----
255219

query I rowsort
SELECT + + 55 col2
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-4591
SELECT 7, + 39 DIV + 78 AS col2
----
7
0

skipif mysql # not compatible
query II rowsort label-4591
SELECT 7, + 39 / + 78 AS col2
----
7
0

query I rowsort
SELECT + 84 * + 63 + + 47
----
5339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4593
SELECT - CAST( - 6 AS SIGNED ) * - COUNT( * ) + + 81 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-4593
SELECT - CAST ( - 6 AS INTEGER ) * - COUNT ( * ) + + 81 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT + 71 * CASE - - 40 WHEN + + 63 + - + 71 / SUM( - 2 ) THEN NULL ELSE + 70 END
----
4970

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT + 71 * CASE - - 40 WHEN + + 63 + - + 71 / SUM ( - 2 ) THEN NULL ELSE + 70 END
----
4970

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL + 92 * - - ( 12 ) + + NULLIF ( + - 83, - MAX( - 7 ) ) - 51
----
970

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL + 92 * - - ( 12 ) + + NULLIF ( + - 83, - MAX ( - 7 ) ) - 51
----
970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4596
SELECT DISTINCT + - SUM( DISTINCT - 27 ) * + - 58 + 66 DIV + 28 + COUNT( * ) - - - SUM( DISTINCT + 43 )
----
-1606

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT + - SUM ( DISTINCT - 27 ) * + - 58 + 66 / + 28 + COUNT ( * ) - - - SUM ( DISTINCT + 43 )
----
-1606

query I rowsort
SELECT - - 32 + - - 20
----
52

query I rowsort
SELECT DISTINCT ( - 90 ) * 73 + + 46 + 81 AS col2
----
-6443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4599
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 27 * - - 69 * + 93 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 27 * - - 69 * + 93 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4600
SELECT - ( + COUNT( - - 70 ) ) DIV + SUM( + 79 ) + - + 47 - 98 * - 72 - + + SUM( 46 ) AS col2
----
6963

skipif mysql # not compatible
query I rowsort label-4600
SELECT - ( + COUNT ( - - 70 ) ) / + SUM ( + 79 ) + - + 47 - 98 * - 72 - + + SUM ( 46 ) AS col2
----
6963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4601
SELECT + CASE + + 93 WHEN + SUM( - CAST( NULL AS DECIMAL ) ) THEN 15 - + SUM( + + CAST( NULL AS SIGNED ) ) + - COUNT( * ) + + + 81 * - - ( - 5 ) + 2 * + CAST( - + 16 AS SIGNED ) - + 55 WHEN 22 THEN NULL WHEN + + 8 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT + CASE + + 93 WHEN + SUM ( - CAST ( NULL AS REAL ) ) THEN 15 - + SUM ( + + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + + + 81 * - - ( - 5 ) + 2 * + CAST ( - + 16 AS INTEGER ) - + 55 WHEN 22 THEN NULL WHEN + + 8 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 0 * - - 73 * - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT - COALESCE ( + + CASE - 49 WHEN + 12 THEN NULL WHEN + ( - + 94 ) THEN - - 94 ELSE - 41 END, + 87, 76 + + + 46 - - - 47 ) + - + 59 + - 17 + - + MIN( ALL + + 19 ) + - - 38 + - + 96 * - 65 * - 43 * - - ( + 17 )
----
-4561456

skipif mysql # not compatible
query I rowsort label-4603
SELECT - COALESCE ( + + CASE - 49 WHEN + 12 THEN NULL WHEN + ( - + 94 ) THEN - - 94 ELSE - 41 END, + 87, 76 + + + 46 - - - 47 ) + - + 59 + - 17 + - + MIN ( ALL + + 19 ) + - - 38 + - + 96 * - 65 * - 43 * - - ( + 17 )
----
-4561456

query II rowsort
SELECT - 86 - + - 69 AS col0, 95 AS col0
----
-17
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT CASE - - 31 WHEN - MAX( ALL + - 79 ) THEN NULL ELSE - 15 END
----
-15

skipif mysql # not compatible
query I rowsort label-4605
SELECT CASE - - 31 WHEN - MAX ( ALL + - 79 ) THEN NULL ELSE - 15 END
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4606
SELECT + COALESCE ( - CAST( - + 70 AS SIGNED ), 2, ( + + 59 ) * - 60 ) + + 16 + - ( COALESCE ( + 90, - + 76 * + + 18 DIV 21, - + ( - + 5 ) ) ) col0, 98 col0
----
-4
98

skipif mysql # not compatible
query II rowsort label-4606
SELECT + COALESCE ( - CAST ( - + 70 AS INTEGER ), 2, ( + + 59 ) * - 60 ) + + 16 + - ( COALESCE ( + 90, - + 76 * + + 18 / 21, - + ( - + 5 ) ) ) col0, 98 col0
----
-4
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4607
SELECT DISTINCT 31 * - 6 * - 70 - 44 + - COUNT( * ) + + 54 AS col2, 65 AS col0
----
13029
65

skipif mysql # not compatible
query II rowsort label-4607
SELECT DISTINCT 31 * - 6 * - 70 - 44 + - COUNT ( * ) + + 54 AS col2, 65 AS col0
----
13029
65

query I rowsort
SELECT - 79 * 61 AS col0
----
-4819

query I rowsort
SELECT ALL 5 * - + 40 - + 64 AS col1
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT 68 * 32 - - + MAX( ALL 40 )
----
2216

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT 68 * 32 - - + MAX ( ALL 40 )
----
2216

query I rowsort
SELECT ALL 44 * - 94 col2
----
-4136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4612
SELECT 90 + + + COUNT( * ) + + + 86 + - + 67 * + + COUNT( - - 7 ) + + ( NULLIF ( + + COUNT( * ), - 34 ) ) * - CAST( NULL AS SIGNED ), + 55 AS col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-4612
SELECT 90 + + + COUNT ( * ) + + + 86 + - + 67 * + + COUNT ( - - 7 ) + + ( NULLIF ( + + COUNT ( * ), - 34 ) ) * - CAST ( NULL AS INTEGER ), + 55 AS col1
----
NULL
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ( - - 90 ) * NULLIF ( 15, COUNT( * ) )
----
1350

skipif mysql # not compatible
query I rowsort label-4613
SELECT ( - - 90 ) * NULLIF ( 15, COUNT ( * ) )
----
1350

onlyif mysql # aggregate syntax: 
query II rowsort label-4614
SELECT DISTINCT 31 AS col1, - 15 * 78 + + 22 + + + 27 + + COUNT( * )
----
31
-1120

skipif mysql # not compatible
query II rowsort label-4614
SELECT DISTINCT 31 AS col1, - 15 * 78 + + 22 + + + 27 + + COUNT ( * )
----
31
-1120

query II rowsort
SELECT ALL 34 AS col2, + 18
----
34
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4616
SELECT 68 * + - COUNT( * ), + 55 AS col1
----
-68
55

skipif mysql # not compatible
query II rowsort label-4616
SELECT 68 * + - COUNT ( * ), + 55 AS col1
----
-68
55

query I rowsort
SELECT ALL 28 + - 87 + + 73 * CASE + + 71 WHEN 59 + - 59 THEN + 12 ELSE + - 38 END AS col2
----
-2833

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4618
SELECT 60, + CAST( 86 AS SIGNED ) + 29 - + 59 AS col2
----
60
56

skipif mysql # not compatible
query II rowsort label-4618
SELECT 60, + CAST ( 86 AS INTEGER ) + 29 - + 59 AS col2
----
60
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4619
SELECT DISTINCT 77 + + COALESCE ( + 26, 4 DIV - 49 - + 88 * 77 ) + 76 * + 64 AS col2
----
4967

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT 77 + + COALESCE ( + 26, 4 / - 49 - + 88 * 77 ) + 76 * + 64 AS col2
----
4967

query II rowsort
SELECT DISTINCT - 65 AS col0, 31
----
-65
31

query I rowsort
SELECT ( + - 37 ) - 77 AS col1
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4622
SELECT + 70 AS col0, - 22 + - 20 DIV + ( - 40 ) - - 77 + - + COUNT( * ), - + COUNT( DISTINCT + 77 ) * - - 41 DIV - 66 AS col2
----
70
54
0

skipif mysql # not compatible
query III rowsort label-4622
SELECT + 70 AS col0, - 22 + - 20 / + ( - 40 ) - - 77 + - + COUNT ( * ), - + COUNT ( DISTINCT + 77 ) * - - 41 / - 66 AS col2
----
70
54
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT - 78 * - COUNT( * ) * + SUM( - 95 ) AS col0
----
-7410

skipif mysql # not compatible
query I rowsort label-4623
SELECT - 78 * - COUNT ( * ) * + SUM ( - 95 ) AS col0
----
-7410

query I rowsort
SELECT 14 * 59 * 41 AS col1
----
33866

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT ALL 17 * SUM( - 71 ) AS col1
----
-1207

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL 17 * SUM ( - 71 ) AS col1
----
-1207

query II rowsort
SELECT 16 * + 69 * - - 18 * 39 AS col2, + 8
----
775008
8

query I rowsort
SELECT DISTINCT + 42 * 14
----
588

query I rowsort
SELECT ALL - 83 + - 36
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-4629
SELECT 78 DIV - - 34 - - - ( + 41 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4629
SELECT 78 / - - 34 - - - ( + 41 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT ALL + + 73 + 49 * - - COUNT( * ) AS col0
----
122

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL + + 73 + 49 * - - COUNT ( * ) AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT + COUNT( * ) * 73
----
73

skipif mysql # not compatible
query I rowsort label-4631
SELECT + COUNT ( * ) * 73
----
73

query I rowsort
SELECT DISTINCT 6 * - 16
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4633
SELECT 41 * + 56 + + 64 * CASE - 69 WHEN - CAST( - - COUNT( * ) AS SIGNED ) * + 8 THEN + - 6 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT 41 * + 56 + + 64 * CASE - 69 WHEN - CAST ( - - COUNT ( * ) AS INTEGER ) * + 8 THEN + - 6 ELSE NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4634
SELECT ALL - COALESCE ( 18, 88 + - + 47 - + + 22 * 22 * + 47 DIV 34 )
----
-18

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL - COALESCE ( 18, 88 + - + 47 - + + 22 * 22 * + 47 / 34 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4635
SELECT CAST( NULL AS DECIMAL ) + 42 + - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT CAST ( NULL AS REAL ) + 42 + - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 85 * - - ( + 86 ) * 41 AS col0
----
299710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4637
SELECT 59 + 63 + CAST( - 70 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-4637
SELECT 59 + 63 + CAST ( - 70 AS INTEGER )
----
52

query I rowsort
SELECT 94 - + 45 + + 21 * + 63 AS col2
----
1372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4639
SELECT ALL - NULLIF ( + COUNT( * ), 6 * + 34 + CAST( - - 99 AS DECIMAL ) - + 4 + - COUNT( * ) * 94 * COALESCE ( - 69, - - CAST( NULL AS SIGNED ) / + - 91, - + 8 / 51, - 83 ) + 39 + - 69 + ( - - 4 ) - - + 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL - NULLIF ( + COUNT ( * ), 6 * + 34 + CAST ( - - 99 AS REAL ) - + 4 + - COUNT ( * ) * 94 * COALESCE ( - 69, - - CAST ( NULL AS INTEGER ) / + - 91, - + 8 / 51, - 83 ) + 39 + - 69 + ( - - 4 ) - - + 78 )
----
-1

query I rowsort
SELECT 75 * - + 34
----
-2550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4641
SELECT ALL - SUM( ALL + 15 ) * - 77 * CAST( 31 AS SIGNED )
----
35805

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL - SUM ( ALL + 15 ) * - 77 * CAST ( 31 AS INTEGER )
----
35805

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT + 51 * SUM( - + 62 ) + - - 5
----
-3157

skipif mysql # not compatible
query I rowsort label-4642
SELECT + 51 * SUM ( - + 62 ) + - - 5
----
-3157

query I rowsort
SELECT DISTINCT - 51 * ( + 3 )
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-4644
SELECT 94 + + MAX( + 56 ) AS col1, + 75 AS col2
----
150
75

skipif mysql # not compatible
query II rowsort label-4644
SELECT 94 + + MAX ( + 56 ) AS col1, + 75 AS col2
----
150
75

query I rowsort
SELECT ALL - 79 * + + 23 AS col2
----
-1817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT ALL 20 * CAST( - 68 AS SIGNED ) AS col1
----
-1360

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL 20 * CAST ( - 68 AS INTEGER ) AS col1
----
-1360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4647
SELECT 0 * - 63 * + NULLIF ( - + 62, - 4 / + + 86 * + 47 + 14 ) col0, 35 * + 32 * + - CASE + - CASE - COUNT( * ) WHEN + 51 * - 2 + - CAST( NULL AS SIGNED ) THEN NULL WHEN 12 THEN - COUNT( * ) + 52 / + 7 ELSE - 43 END WHEN + + CAST( NULL AS SIGNED ) THEN - 85 * - 28 * + 27 + - 3 + + 80 WHEN - + NULLIF ( - 79, 36 ) THEN NULL END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4647
SELECT 0 * - 63 * + NULLIF ( - + 62, - 4 / + + 86 * + 47 + 14 ) col0, 35 * + 32 * + - CASE + - CASE - COUNT ( * ) WHEN + 51 * - 2 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN 12 THEN - COUNT ( * ) + 52 / + 7 ELSE - 43 END WHEN + + CAST ( NULL AS INTEGER ) THEN - 85 * - 28 * + 27 + - 3 + + 80 WHEN - + NULLIF ( - 79, 36 ) THEN NULL END AS col2
----
0
NULL

query I rowsort
SELECT 71 - - 23
----
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4649
SELECT 80 + 78 + - CAST( NULL AS DECIMAL ) * - 24 * + 22 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4649
SELECT 80 + 78 + - CAST ( NULL AS REAL ) * - 24 * + 22 + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4650
SELECT 90 * - + 86 AS col2, + 89 + + MIN( - + CAST( - 27 AS SIGNED ) ) * AVG ( ALL + - 27 ) * - SUM( ALL + CAST( NULL AS DECIMAL ) ) + + - COUNT( * ) * - + 80
----
-7740
NULL

skipif mysql # not compatible
query II rowsort label-4650
SELECT 90 * - + 86 AS col2, + 89 + + MIN ( - + CAST ( - 27 AS INTEGER ) ) * AVG ( ALL + - 27 ) * - SUM ( ALL + CAST ( NULL AS REAL ) ) + + - COUNT ( * ) * - + 80
----
-7740
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT 25 * + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4651
SELECT 25 * + COUNT ( * ) AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4652
SELECT ALL SUM( DISTINCT + 3 ), - CAST( NULL AS SIGNED ) AS col2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4652
SELECT ALL SUM ( DISTINCT + 3 ), - CAST ( NULL AS INTEGER ) AS col2
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4653
SELECT ALL + 7 * + - 81 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL + 7 * + - 81 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT COUNT( * ) - + 69 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-4654
SELECT COUNT ( * ) - + 69 AS col0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4655
SELECT 9 DIV - 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4655
SELECT 9 / - 37 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT + COUNT( ALL - - 91 ) - 72 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4656
SELECT + COUNT ( ALL - - 91 ) - 72 AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4657
SELECT CAST( NULL AS SIGNED ) + + 10 AS col0, - CAST( + ( + 85 ) AS SIGNED ) * 70 - - COALESCE ( + ( NULLIF ( + 45, + + 16 ) ), + 15, - CAST( + 7 AS SIGNED ) - + - 20 * - - 90 + + 94 * + + 56 )
----
NULL
-5905

skipif mysql # not compatible
query II rowsort label-4657
SELECT CAST ( NULL AS INTEGER ) + + 10 AS col0, - CAST ( + ( + 85 ) AS INTEGER ) * 70 - - COALESCE ( + ( NULLIF ( + 45, + + 16 ) ), + 15, - CAST ( + 7 AS INTEGER ) - + - 20 * - - 90 + + 94 * + + 56 )
----
NULL
-5905

query I rowsort
SELECT ALL - 39 * + 60 * - + 90
----
210600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4659
SELECT COUNT( 99 ) DIV 28 * - 8 * + 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT COUNT ( 99 ) / 28 * - 8 * + 43 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ALL - - 96 + + ( + 65 ) * + COUNT( * )
----
161

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL - - 96 + + ( + 65 ) * + COUNT ( * )
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT - - CAST( 66 AS SIGNED ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4661
SELECT - - CAST ( 66 AS INTEGER ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4662
SELECT CAST( - + COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4662
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT - 18 - 94 * - 85 col2
----
7972

query I rowsort
SELECT 39 + - + 50 * 51 AS col2
----
-2511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4665
SELECT MAX( ALL - - CAST( + + 51 AS SIGNED ) ) - COUNT( * ) + + 29 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4665
SELECT MAX ( ALL - - CAST ( + + 51 AS INTEGER ) ) - COUNT ( * ) + + 29 AS col1
----
79

query I rowsort
SELECT ALL + 62 + 66 * - 61 + + 8
----
-3956

query I rowsort
SELECT - - ( - 14 ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4668
SELECT - 76 + + COUNT( * ) AS col1, 51 + - 18 col2
----
-75
33

skipif mysql # not compatible
query II rowsort label-4668
SELECT - 76 + + COUNT ( * ) AS col1, 51 + - 18 col2
----
-75
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4669
SELECT ALL - 93 + - + 45 AS col2, + COUNT( * ) AS col0
----
-138
1

skipif mysql # not compatible
query II rowsort label-4669
SELECT ALL - 93 + - + 45 AS col2, + COUNT ( * ) AS col0
----
-138
1

query I rowsort
SELECT DISTINCT - + 24 col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT ALL 21 * + 17 * + COUNT( * ) + + ( - 98 ) + 9 * + COALESCE ( COUNT( * ), + + 44 * 47 + 59, - 50 )
----
268

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL 21 * + 17 * + COUNT ( * ) + + ( - 98 ) + 9 * + COALESCE ( COUNT ( * ), + + 44 * 47 + 59, - 50 )
----
268

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4672
SELECT + + 91 * + - 30 * MIN( DISTINCT + 86 ) + - 41 + + 93 - CAST( NULL AS DECIMAL ) + - AVG ( 90 ) / - CASE + 20 WHEN + 62 THEN NULL WHEN + - COUNT( DISTINCT 74 ) THEN NULL ELSE + 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT + + 91 * + - 30 * MIN ( DISTINCT + 86 ) + - 41 + + 93 - CAST ( NULL AS REAL ) + - AVG ( 90 ) / - CASE + 20 WHEN + 62 THEN NULL WHEN + - COUNT ( DISTINCT 74 ) THEN NULL ELSE + 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ALL - 43 * - COUNT( * ) - - COUNT( * ) + - 97 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - 43 * - COUNT ( * ) - - COUNT ( * ) + - 97 AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4674
SELECT - 25 DIV + 52 + + COUNT( * ) - + - 28 + 74
----
103

skipif mysql # not compatible
query I rowsort label-4674
SELECT - 25 / + 52 + + COUNT ( * ) - + - 28 + 74
----
103

query I rowsort
SELECT ALL - - ( + - 61 )
----
-61

query I rowsort
SELECT ALL - - 9 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT COUNT( 93 ) + - - 88 * + 96
----
8449

skipif mysql # not compatible
query I rowsort label-4677
SELECT COUNT ( 93 ) + - - 88 * + 96
----
8449

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT ALL 98 DIV - 38 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL 98 / - 38 AS col1
----
-2

query I rowsort
SELECT 56 * + 5
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT + COUNT( * ) * - 84 * - + 35 + + 19 AS col0
----
2959

skipif mysql # not compatible
query I rowsort label-4680
SELECT + COUNT ( * ) * - 84 * - + 35 + + 19 AS col0
----
2959

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT + SUM( DISTINCT + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-4681
SELECT + SUM ( DISTINCT + 95 )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4682
SELECT DISTINCT - COALESCE ( - + COUNT( DISTINCT + NULLIF ( CAST( - 26 AS SIGNED ), 47 ) ), + - 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT - COALESCE ( - + COUNT ( DISTINCT + NULLIF ( CAST ( - 26 AS INTEGER ), 47 ) ), + - 55 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT DISTINCT 16 * - ( + 13 ) * + MIN( DISTINCT 18 ) - - + 4 AS col1
----
-3740

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT 16 * - ( + 13 ) * + MIN ( DISTINCT 18 ) - - + 4 AS col1
----
-3740

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL - COUNT( * ) * - + 22 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - COUNT ( * ) * - + 22 AS col1
----
22

query I rowsort
SELECT ALL + 83 * - 48 AS col1
----
-3984

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT COUNT( ALL + 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4686
SELECT COUNT ( ALL + 77 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 97 * + + 3
----
291

query II rowsort
SELECT DISTINCT + 61 AS col0, + 35 + + 96
----
61
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4689
SELECT ALL + MAX( ( 87 ) ) AS col1, - 88 + + - 35 + + + 34 * + - COUNT( * ) + + COUNT( * ) * + + CAST( AVG ( ALL - 86 ) AS SIGNED ) AS col0
----
87
-243

skipif mysql # not compatible
query II rowsort label-4689
SELECT ALL + MAX ( ( 87 ) ) AS col1, - 88 + + - 35 + + + 34 * + - COUNT ( * ) + + COUNT ( * ) * + + CAST ( AVG ( ALL - 86 ) AS INTEGER ) AS col0
----
87
-243

query I rowsort
SELECT - 26 * - ( - 30 )
----
-780

query I rowsort
SELECT ALL 91 * - + 78 AS col1
----
-7098

query II rowsort
SELECT + 14 + + ( - + 82 ) AS col1, 20 AS col2
----
-68
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL + COUNT( 98 )
----
1

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + COUNT ( 98 )
----
1

query II rowsort
SELECT 91 col2, + 54
----
91
54

query I rowsort
SELECT + 66 * 59 col0
----
3894

query II rowsort
SELECT DISTINCT 26, 89 AS col2
----
26
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT - 8 * - COUNT( * ) + 25 - + 82 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-4697
SELECT - 8 * - COUNT ( * ) + 25 - + 82 AS col2
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4698
SELECT DISTINCT - + 36 + 56 - + - 17 / + + 98 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT - + 36 + 56 - + - 17 / + + 98 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT ALL + MIN( ALL 92 ) + + 26 * + 5
----
222

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL + MIN ( ALL 92 ) + + 26 * + 5
----
222

query I rowsort
SELECT ( - 3 )
----
-3

query I rowsort
SELECT - - 74 col1
----
74

query I rowsort
SELECT - + 77 * - 71 * + 88
----
481096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4703
SELECT - + 72 + + - CAST( NULL AS SIGNED ) * 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT - + 72 + + - CAST ( NULL AS INTEGER ) * 79 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - NULLIF ( 87, + 60 ) * 12 AS col1
----
1044

query I rowsort
SELECT ALL CASE 55 WHEN + 9 * - 95 + + 36 + 14 + + - 7 THEN NULL WHEN + 52 / 53 THEN - 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL + - 69 + + COUNT( - 82 ) col0
----
-68

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL + - 69 + + COUNT ( - 82 ) col0
----
-68

query I rowsort
SELECT - 69 * 69
----
-4761

query II rowsort
SELECT ALL 44 AS col2, - 58
----
44
-58

query I rowsort
SELECT - 83 * 29
----
-2407

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4710
SELECT ALL CAST( 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL CAST ( 17 AS INTEGER )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4711
SELECT ALL 35 * + 57 * + - 78 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL 35 * + 57 * + - 78 * + CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT ALL 67 col2, 57 AS col2
----
67
57

query I rowsort
SELECT + + 70 * + 45 * + 53 AS col1
----
166950

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT - - COUNT( * ) - + 95 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-4714
SELECT - - COUNT ( * ) - + 95 AS col2
----
-94

query II rowsort
SELECT + + 99, - 52 AS col2
----
99
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL COUNT( * ) * + ( + + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL COUNT ( * ) * + ( + + 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query III rowsort label-4717
SELECT - 80 * 29 col0, COUNT( * ) + - 89 * - 63 * + 96 * + + 15 col0, - - 91 * 86 AS col2
----
-2320
8074081
7826

skipif mysql # not compatible
query III rowsort label-4717
SELECT - 80 * 29 col0, COUNT ( * ) + - 89 * - 63 * + 96 * + + 15 col0, - - 91 * 86 AS col2
----
-2320
8074081
7826

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT + SUM( - 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4718
SELECT + SUM ( - 71 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-4719
SELECT DISTINCT - 96 * + 62 * - MIN( 33 ) AS col0, + 82 AS col2
----
196416
82

skipif mysql # not compatible
query II rowsort label-4719
SELECT DISTINCT - 96 * + 62 * - MIN ( 33 ) AS col0, + 82 AS col2
----
196416
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT 15 DIV 95 - - 23 * 57 AS col1
----
1311

skipif mysql # not compatible
query I rowsort label-4720
SELECT 15 / 95 - - 23 * 57 AS col1
----
1311

query I rowsort
SELECT ( - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT + 85 * - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-4722
SELECT + 85 * - COUNT ( * )
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-4723
SELECT + 3 DIV + 83 * - ( + 51 ), 56 AS col0
----
0
56

skipif mysql # not compatible
query II rowsort label-4723
SELECT + 3 / + 83 * - ( + 51 ), 56 AS col0
----
0
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4724
SELECT + 73 + + COUNT( * ), - 22 AS col2
----
74
-22

skipif mysql # not compatible
query II rowsort label-4724
SELECT + 73 + + COUNT ( * ), - 22 AS col2
----
74
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT CASE 95 WHEN - 53 - - 8 + 85 THEN 57 * + 41 WHEN + 38 + 63 * + 1 THEN + + 56 * + 98 ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-4725
SELECT CASE 95 WHEN - 53 - - 8 + 85 THEN 57 * + 41 WHEN + 38 + 63 * + 1 THEN + + 56 * + 98 ELSE - COUNT ( * ) END
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4726
SELECT CASE CASE - 65 WHEN + 78 THEN + - 41 ELSE NULL END WHEN COUNT( + 30 ) * + + 93 + - + COALESCE ( 7, 89 * CAST( NULL AS SIGNED ) + + 44 - + COUNT( * ) + - 95, + COUNT( * ), SUM( ALL 49 ) ) THEN + ( + 61 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT CASE CASE - 65 WHEN + 78 THEN + - 41 ELSE NULL END WHEN COUNT ( + 30 ) * + + 93 + - + COALESCE ( 7, 89 * CAST ( NULL AS INTEGER ) + + 44 - + COUNT ( * ) + - 95, + COUNT ( * ), SUM ( ALL 49 ) ) THEN + ( + 61 ) ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT ALL + 92 * CAST( NULL AS SIGNED ) / - 4 + 36 * - + 34 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL + 92 * CAST ( NULL AS INTEGER ) / - 4 + 36 * - + 34 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4728
SELECT ALL - NULLIF ( - + 77, - 41 + + ( + 68 ) ) * 85 + - 23 AS col1, COUNT( * )
----
6522
1

skipif mysql # not compatible
query II rowsort label-4728
SELECT ALL - NULLIF ( - + 77, - 41 + + ( + 68 ) ) * 85 + - 23 AS col1, COUNT ( * )
----
6522
1

query I rowsort
SELECT + ( + 41 )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4730
SELECT + ( - + 27 ), - COUNT( 91 ) AS col1
----
-27
-1

skipif mysql # not compatible
query II rowsort label-4730
SELECT + ( - + 27 ), - COUNT ( 91 ) AS col1
----
-27
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4731
SELECT - 5 * - + COUNT( * ) + + 11 DIV 44 DIV + 48 - - + 17
----
22

skipif mysql # not compatible
query I rowsort label-4731
SELECT - 5 * - + COUNT ( * ) + + 11 / 44 / + 48 - - + 17
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT ALL + CASE - 33 WHEN - - 66 THEN NULL ELSE - 3 + - - COUNT( * ) + + 13 END AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL + CASE - 33 WHEN - - 66 THEN NULL ELSE - 3 + - - COUNT ( * ) + + 13 END AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4733
SELECT + 37 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-4733
SELECT + 37 / - 57
----
0

query I rowsort
SELECT + + 81 + COALESCE ( ( - - 9 ), + - 59 ) + 60
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT + - 6 + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-4735
SELECT + - 6 + COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT - + COUNT( - + 20 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4736
SELECT - + COUNT ( - + 20 ) col0
----
-1

query I rowsort
SELECT ALL - COALESCE ( 95, + 5 + + 5 * - 43 ) AS col2
----
-95

query II rowsort
SELECT + + 31 + - 12, 4 AS col0
----
19
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4739
SELECT - + 26 * COALESCE ( - - 77, + COUNT( * ) * - + CAST( NULL AS SIGNED ) ) * - 22 DIV - + COUNT( * ) AS col2
----
-44044

skipif mysql # not compatible
query I rowsort label-4739
SELECT - + 26 * COALESCE ( - - 77, + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) ) * - 22 / - + COUNT ( * ) AS col2
----
-44044

query I rowsort
SELECT DISTINCT COALESCE ( 97, + + 83 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT ALL - - COUNT( * ) - - 6
----
7

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL - - COUNT ( * ) - - 6
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT + MIN( - 14 ) - - 72
----
58

skipif mysql # not compatible
query I rowsort label-4742
SELECT + MIN ( - 14 ) - - 72
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT DISTINCT + MAX( 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT + MAX ( 14 ) AS col2
----
14

query I rowsort
SELECT - 67 + - + 96
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT + 54 * ( - - 83 ) + + + COUNT( * ) - + + 84 * - 85 AS col2
----
11623

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT + 54 * ( - - 83 ) + + + COUNT ( * ) - + + 84 * - 85 AS col2
----
11623

query I rowsort
SELECT DISTINCT - CASE - 52 WHEN + 99 + - 43 THEN - 72 * 53 ELSE - 80 END AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4747
SELECT ALL + CASE + COUNT( * ) WHEN + 29 + + + 70 + - 96 + + + CAST( NULL AS SIGNED ) + - 33 * 63 + COUNT( - - 38 ) * - COUNT( * ) * - + 5 * + 26 / 78 * - 96 * - + 31 THEN NULL WHEN - COUNT( * ) THEN + CAST( + 58 AS SIGNED ) * - 54 * 3 + ( 66 ) END - - 58 * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL + CASE + COUNT ( * ) WHEN + 29 + + + 70 + - 96 + + + CAST ( NULL AS INTEGER ) + - 33 * 63 + COUNT ( - - 38 ) * - COUNT ( * ) * - + 5 * + 26 / 78 * - 96 * - + 31 THEN NULL WHEN - COUNT ( * ) THEN + CAST ( + 58 AS INTEGER ) * - 54 * 3 + ( 66 ) END - - 58 * - 27
----
NULL

query I rowsort
SELECT + - 5 + + - 92 AS col1
----
-97

query I rowsort
SELECT - + 30 + + 29 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT - + 24 - MIN( 46 ) * + 58 + + 71 AS col0
----
-2621

skipif mysql # not compatible
query I rowsort label-4750
SELECT - + 24 - MIN ( 46 ) * + 58 + + 71 AS col0
----
-2621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT - - 50 - + 43 + + + CAST( NULL AS SIGNED ) * 34 * 21 * + 52 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT - - 50 - + 43 + + + CAST ( NULL AS INTEGER ) * 34 * 21 * + 52 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT - CASE - 88 WHEN - - COUNT( * ) THEN + 30 / - 7 WHEN + 11 THEN - 17 + + + AVG ( DISTINCT - 4 ) + - 4 + - 13 * + 36 WHEN - - 37 * + - 26 - MIN( DISTINCT - - 99 ) THEN 22 + + 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4752
SELECT - CASE - 88 WHEN - - COUNT ( * ) THEN + 30 / - 7 WHEN + 11 THEN - 17 + + + AVG ( DISTINCT - 4 ) + - 4 + - 13 * + 36 WHEN - - 37 * + - 26 - MIN ( DISTINCT - - 99 ) THEN 22 + + 28 END
----
NULL

query I rowsort
SELECT + 33 * + + 39 * 30 + + - 1 AS col0
----
38609

query I rowsort
SELECT DISTINCT - ( + ( + 69 ) ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT 0 * + 34 * + CASE COALESCE ( - 21, + 31 ) WHEN - COUNT( * ) - + 86 * + ( 97 ) * - 93 THEN NULL ELSE + 56 END
----
0

skipif mysql # not compatible
query I rowsort label-4755
SELECT 0 * + 34 * + CASE COALESCE ( - 21, + 31 ) WHEN - COUNT ( * ) - + 86 * + ( 97 ) * - 93 THEN NULL ELSE + 56 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT COALESCE ( ( 64 ), - 28, - SUM( ALL - 36 ) ) + + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4756
SELECT COALESCE ( ( 64 ), - 28, - SUM ( ALL - 36 ) ) + + COUNT ( * )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4757
SELECT 17 col2, CAST( NULL AS SIGNED ) AS col1
----
17
NULL

skipif mysql # not compatible
query II rowsort label-4757
SELECT 17 col2, CAST ( NULL AS INTEGER ) AS col1
----
17
NULL

query I rowsort
SELECT ALL - 11 * - 49 AS col2
----
539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4759
SELECT ALL + NULLIF ( - ( ( + 69 ) ), - CAST( NULL AS DECIMAL ) ) * - - 73 - - - 94 * NULLIF ( - 78, - - COUNT( * ) ) * - 51 / + 92 + 62 - - 27 / + CASE - 10 WHEN 68 THEN NULL WHEN ( - 48 ) + + NULLIF ( - 66, + - 9 ) + - - AVG ( 97 ) * 94 + 87 THEN CAST( - + 55 AS SIGNED ) END, - 75 + - - 91 AS col0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-4759
SELECT ALL + NULLIF ( - ( ( + 69 ) ), - CAST ( NULL AS REAL ) ) * - - 73 - - - 94 * NULLIF ( - 78, - - COUNT ( * ) ) * - 51 / + 92 + 62 - - 27 / + CASE - 10 WHEN 68 THEN NULL WHEN ( - 48 ) + + NULLIF ( - 66, + - 9 ) + - - AVG ( 97 ) * 94 + 87 THEN CAST ( - + 55 AS INTEGER ) END, - 75 + - - 91 AS col0
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT DISTINCT COUNT( * ) + - + 81
----
-80

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT COUNT ( * ) + - + 81
----
-80

query I rowsort
SELECT ALL NULLIF ( + 57, + - 13 ) + - 63 - + 45
----
-51

query I rowsort
SELECT DISTINCT - 77 col2
----
-77

query I rowsort
SELECT DISTINCT - 93 + ( + ( 94 ) )
----
1

query I rowsort
SELECT 25 + + + 98 AS col1
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT ALL - 75 + + CAST( NULL AS SIGNED ) + - - 57 * - 81 + - + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL - 75 + + CAST ( NULL AS INTEGER ) + - - 57 * - 81 + - + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT - 0 * MIN( ALL - + 85 ) + + 94
----
94

skipif mysql # not compatible
query I rowsort label-4766
SELECT - 0 * MIN ( ALL - + 85 ) + + 94
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4767
SELECT 57 * + - 84 * - CAST( NULL AS SIGNED ), COUNT( * ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4767
SELECT 57 * + - 84 * - CAST ( NULL AS INTEGER ), COUNT ( * ) col2
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT ALL 45 DIV - 69 + - 62
----
-62

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL 45 / - 69 + - 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL 54 - 2 + 30 * ( - COUNT( * ) )
----
22

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL 54 - 2 + 30 * ( - COUNT ( * ) )
----
22

query I rowsort
SELECT + 38 + - 41 * - + 82
----
3400

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT 37 * + MAX( 36 ) AS col2
----
1332

skipif mysql # not compatible
query I rowsort label-4771
SELECT 37 * + MAX ( 36 ) AS col2
----
1332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4772
SELECT ALL COUNT( * ) DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL COUNT ( * ) / 96
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4773
SELECT MIN( DISTINCT 87 ) + COALESCE ( 48, + 53 ) DIV - 36 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4773
SELECT MIN ( DISTINCT 87 ) + COALESCE ( 48, + 53 ) / - 36 AS col1
----
86

query I rowsort
SELECT + 65 + 82 AS col2
----
147

query I rowsort
SELECT + 4 * 53
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT COUNT( * ) * 30
----
30

skipif mysql # not compatible
query I rowsort label-4776
SELECT COUNT ( * ) * 30
----
30

query I rowsort
SELECT - 87 + - 95
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + CASE 76 WHEN - 51 + COUNT( * ) THEN - 53 / + 34 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT + CASE 76 WHEN - 51 + COUNT ( * ) THEN - 53 / + 34 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT ALL - CAST( + + 68 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL - CAST ( + + 68 AS INTEGER )
----
-68

query II rowsort
SELECT ALL - 26 AS col2, - 95 * 41 - 66 * + 63
----
-26
-8053

query II rowsort
SELECT DISTINCT - 14, 15 AS col2
----
-14
15

query I rowsort
SELECT DISTINCT + - 97 * + 83 AS col1
----
-8051

onlyif mysql # aggregate syntax: 
query II rowsort label-4783
SELECT DISTINCT + 90, + MAX( DISTINCT + 55 ) AS col0
----
90
55

skipif mysql # not compatible
query II rowsort label-4783
SELECT DISTINCT + 90, + MAX ( DISTINCT + 55 ) AS col0
----
90
55

query I rowsort
SELECT ALL ( + - ( + 16 ) ) col0
----
-16

query I rowsort
SELECT ALL + 24 + 61 * 27 - - 88 + - 90 AS col0
----
1669

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT 94 * - MIN( + 18 ) AS col2
----
-1692

skipif mysql # not compatible
query I rowsort label-4786
SELECT 94 * - MIN ( + 18 ) AS col2
----
-1692

onlyif mysql # DIV for integer division: 
query I rowsort label-4787
SELECT ALL 15 DIV + 23 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL 15 / + 23 AS col0
----
0

query II rowsort
SELECT - 87 AS col2, - ( + 97 ) * - + 47 * 20
----
-87
91180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4789
SELECT 80, - CAST( - 80 AS SIGNED ) AS col1
----
80
80

skipif mysql # not compatible
query II rowsort label-4789
SELECT 80, - CAST ( - 80 AS INTEGER ) AS col1
----
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT COUNT( DISTINCT + + 80 ) - - - MAX( - 31 ) - 24 + - COUNT( NULLIF ( + 6, ( - 94 ) ) ) * ( - CASE + - 65 WHEN + - 77 THEN NULL WHEN + COALESCE ( + + COALESCE ( - AVG ( - 35 ), + 42 ), + 42 ) THEN + 17 END ) * + 22 * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4790
SELECT COUNT ( DISTINCT + + 80 ) - - - MAX ( - 31 ) - 24 + - COUNT ( NULLIF ( + 6, ( - 94 ) ) ) * ( - CASE + - 65 WHEN + - 77 THEN NULL WHEN + COALESCE ( + + COALESCE ( - AVG ( - 35 ), + 42 ), + 42 ) THEN + 17 END ) * + 22 * - 97
----
NULL

query I rowsort
SELECT 13 / + + ( + CASE - - 35 WHEN + 64 + 25 THEN + 78 * - 69 WHEN + 58 THEN 37 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4792
SELECT ALL + COUNT( * ) + + 35 DIV + MIN( ALL - 98 ), 23 + COUNT( * ) AS col0
----
1
24

skipif mysql # not compatible
query II rowsort label-4792
SELECT ALL + COUNT ( * ) + + 35 / + MIN ( ALL - 98 ), 23 + COUNT ( * ) AS col0
----
1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT COUNT( DISTINCT - 9 )
----
1

skipif mysql # not compatible
query I rowsort label-4793
SELECT COUNT ( DISTINCT - 9 )
----
1

query I rowsort
SELECT + 10 * + 93 + 42
----
972

onlyif mysql # aggregate syntax: 
query II rowsort label-4795
SELECT COUNT( * ) AS col0, COUNT( DISTINCT - + 17 )
----
1
1

skipif mysql # not compatible
query II rowsort label-4795
SELECT COUNT ( * ) AS col0, COUNT ( DISTINCT - + 17 )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT 9 * - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-4796
SELECT 9 * - COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4797
SELECT ALL - ( COUNT( * ) ) col0, + 49
----
-1
49

skipif mysql # not compatible
query II rowsort label-4797
SELECT ALL - ( COUNT ( * ) ) col0, + 49
----
-1
49

query I rowsort
SELECT 28 - - - 52
----
-24

query I rowsort
SELECT ALL - ( + 39 )
----
-39

query II rowsort
SELECT 18 + 58 + 4 * + 71, - 40 * + 28 + + 58 AS col1
----
360
-1062

query I rowsort
SELECT + 31 col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT DISTINCT - 79 - + + 47 + 51 + + + COUNT( * ) - 97 AS col1
----
-171

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT - 79 - + + 47 + 51 + + + COUNT ( * ) - 97 AS col1
----
-171

query I rowsort
SELECT ALL CASE - 37 WHEN 36 - + - 90 + 85 THEN + 85 ELSE - 32 + - - 13 END - + - 1 - 16 + + 49 - - ( - 14 ) * - 64 AS col2
----
911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4804
SELECT + CASE + + 35 WHEN + - NULLIF ( - 71, + AVG ( DISTINCT + 43 ) / - CAST( NULL AS SIGNED ) ) THEN + + NULLIF ( + ( - + ( - COUNT( * ) ) ), + + 19 ) * - 72 - 40 WHEN + 75 - MAX( DISTINCT - - 85 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4804
SELECT + CASE + + 35 WHEN + - NULLIF ( - 71, + AVG ( DISTINCT + 43 ) / - CAST ( NULL AS INTEGER ) ) THEN + + NULLIF ( + ( - + ( - COUNT ( * ) ) ), + + 19 ) * - 72 - 40 WHEN + 75 - MAX ( DISTINCT - - 85 ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4805
SELECT DISTINCT + 76 * COUNT( * ), COUNT( * ) AS col1
----
76
1

skipif mysql # not compatible
query II rowsort label-4805
SELECT DISTINCT + 76 * COUNT ( * ), COUNT ( * ) AS col1
----
76
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT 52 + - COUNT( * ) + + - 82 + - 9
----
-40

skipif mysql # not compatible
query I rowsort label-4806
SELECT 52 + - COUNT ( * ) + + - 82 + - 9
----
-40

query II rowsort
SELECT - 74 AS col1, - 47 * - 32 AS col0
----
-74
1504

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT ALL - 85 - + 1 DIV + 75 * + 12 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - 85 - + 1 / + 75 * + 12 AS col1
----
-85

query I rowsort
SELECT - + 85 col0
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-4810
SELECT - 24, + ( + + 68 ) + - - 53 DIV 53 AS col1
----
-24
69

skipif mysql # not compatible
query II rowsort label-4810
SELECT - 24, + ( + + 68 ) + - - 53 / 53 AS col1
----
-24
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4811
SELECT ( - 27 ) DIV + 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4811
SELECT ( - 27 ) / + 28 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4812
SELECT - CASE WHEN 50 IS NULL THEN + CASE COALESCE ( + CAST( - 35 AS SIGNED ), - 75 ) WHEN 27 / - 29 + + 71 * 24 THEN 65 WHEN 85 THEN NULL WHEN + 65 THEN + 17 ELSE + 25 END END * 70 + - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT - CASE WHEN 50 IS NULL THEN + CASE COALESCE ( + CAST ( - 35 AS INTEGER ), - 75 ) WHEN 27 / - 29 + + 71 * 24 THEN 65 WHEN 85 THEN NULL WHEN + 65 THEN + 17 ELSE + 25 END END * 70 + - 8 AS col0
----
NULL

query II rowsort
SELECT - - 21 AS col1, 12 AS col2
----
21
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT - 29 + CAST( 19 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-4814
SELECT - 29 + CAST ( 19 AS INTEGER )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4815
SELECT ALL + CASE - 49 WHEN - - 72 * NULLIF ( 93, + 89 ) THEN CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL + CASE - 49 WHEN - - 72 * NULLIF ( 93, + 89 ) THEN CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 73 * 26
----
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT - NULLIF ( - 80, + 15 ) * - COUNT( * ) + + - 63 AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-4817
SELECT - NULLIF ( - 80, + 15 ) * - COUNT ( * ) + + - 63 AS col1
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4818
SELECT + + 47 + - CAST( NULL AS SIGNED ) + - 34 * 85 AS col1, - 64
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-4818
SELECT + + 47 + - CAST ( NULL AS INTEGER ) + - 34 * 85 AS col1, - 64
----
NULL
-64

query II rowsort
SELECT ALL 92 AS col2, - 91 AS col2
----
92
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT - COUNT( * ) + + + 47 * + - 87 AS col0
----
-4090

skipif mysql # not compatible
query I rowsort label-4820
SELECT - COUNT ( * ) + + + 47 * + - 87 AS col0
----
-4090

query II rowsort
SELECT - 65, 89 AS col1
----
-65
89

query I rowsort
SELECT DISTINCT 33 + + - 76
----
-43

query I rowsort
SELECT + ( + 52 ) + - 57 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4824
SELECT + MIN( 21 ) + + - CASE ( - 5 ) WHEN CAST( NULL AS SIGNED ) * + + COALESCE ( + - 95, COUNT( * ) ) / - MIN( DISTINCT 86 ) + + CAST( + 31 AS SIGNED ) THEN NULL ELSE + 99 * 68 + + + 98 END
----
-6809

skipif mysql # not compatible
query I rowsort label-4824
SELECT + MIN ( 21 ) + + - CASE ( - 5 ) WHEN CAST ( NULL AS INTEGER ) * + + COALESCE ( + - 95, COUNT ( * ) ) / - MIN ( DISTINCT 86 ) + + CAST ( + 31 AS INTEGER ) THEN NULL ELSE + 99 * 68 + + + 98 END
----
-6809

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT + 80 - - - MAX( - + 66 )
----
146

skipif mysql # not compatible
query I rowsort label-4825
SELECT + 80 - - - MAX ( - + 66 )
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4826
SELECT ALL ( - 21 ) + + CAST( - + COUNT( * ) AS SIGNED ) + + 13 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL ( - 21 ) + + CAST ( - + COUNT ( * ) AS INTEGER ) + + 13 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT ALL + MIN( - + 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + MIN ( - + 39 )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-4828
SELECT ALL - ( + 66 ) * + - 65 + 70 + - COUNT( * ) * ( + 94 ), + COUNT( * ) * + 15 AS col2
----
4266
15

skipif mysql # not compatible
query II rowsort label-4828
SELECT ALL - ( + 66 ) * + - 65 + 70 + - COUNT ( * ) * ( + 94 ), + COUNT ( * ) * + 15 AS col2
----
4266
15

query II rowsort
SELECT ( - 91 ), 72 AS col2
----
-91
72

query I rowsort
SELECT + 84 * - 33
----
-2772

query I rowsort
SELECT - 90 * 21
----
-1890

query I rowsort
SELECT + 2 + - 7 + - 74
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT + CASE SUM( - 20 ) WHEN - 52 THEN - - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT + CASE SUM ( - 20 ) WHEN - 52 THEN - - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT + ( 7 ) AS col0
----
7

query I rowsort
SELECT - 54 * 2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT ALL 60 * + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL 60 * + COUNT ( * )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT + CAST( ( - + 64 ) AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-4837
SELECT + CAST ( ( - + 64 ) AS INTEGER )
----
-64

query I rowsort
SELECT ALL + + 94 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT - 33 + 5 + - COUNT( * ) * + + 78 * COUNT( * ) col2
----
-106

skipif mysql # not compatible
query I rowsort label-4839
SELECT - 33 + 5 + - COUNT ( * ) * + + 78 * COUNT ( * ) col2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT + - CASE - 34 WHEN + COUNT( * ) THEN - + 97 + 10 * - 19 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT + - CASE - 34 WHEN + COUNT ( * ) THEN - + 97 + 10 * - 19 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4841
SELECT ALL + COUNT( * ) * - 88 + 35 DIV - - 90 + - - COUNT( * ) + - COALESCE ( NULLIF ( + - 15, - MAX( DISTINCT + 32 ) * + + 1 + - + 76 - + 68 + - - 3 + NULLIF ( + COUNT( * ), - 16 ) ), - 4 DIV - 89 + SUM( - 56 ) ) + 54
----
-18

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL + COUNT ( * ) * - 88 + 35 / - - 90 + - - COUNT ( * ) + - COALESCE ( NULLIF ( + - 15, - MAX ( DISTINCT + 32 ) * + + 1 + - + 76 - + 68 + - - 3 + NULLIF ( + COUNT ( * ), - 16 ) ), - 4 / - 89 + SUM ( - 56 ) ) + 54
----
-18

query I rowsort
SELECT ALL + ( + 15 )
----
15

query II rowsort
SELECT ALL - 21 + - 92, 39 AS col1
----
-113
39

query I rowsort
SELECT - + 16 * + 49 * 41 * 97 AS col1
----
-3117968

query I rowsort
SELECT + + 10 + - - 11 - - ( - 65 )
----
-44

query II rowsort
SELECT - 68 * - + NULLIF ( 63, 70 ) AS col1, + 48 AS col0
----
4284
48

query I rowsort
SELECT ALL ( + 52 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT DISTINCT - COUNT( * ) + - 68
----
-69

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT - COUNT ( * ) + - 68
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4849
SELECT + 20 / + ( - - 63 ) / + 69 * + CAST( NULL AS SIGNED ) / + COALESCE ( - AVG ( DISTINCT 8 ), - + 75, + + 53 ) / + - 98 + - 86 + + ( + + 74 ) + + 29 - COUNT( * ) + + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT + 20 / + ( - - 63 ) / + 69 * + CAST ( NULL AS INTEGER ) / + COALESCE ( - AVG ( DISTINCT 8 ), - + 75, + + 53 ) / + - 98 + - 86 + + ( + + 74 ) + + 29 - COUNT ( * ) + + 19 AS col2
----
NULL

query I rowsort
SELECT ALL + 89 - 47 + - + 81 AS col1
----
-39

query I rowsort
SELECT DISTINCT 20 * 32
----
640

query I rowsort
SELECT ALL CASE + - 15 WHEN - 97 * - 97 THEN 68 END * + 4 + - 12
----
NULL

query I rowsort
SELECT - 84 - 44 + - 71 - - - 57 + - 21 + - - 94
----
-183

query II rowsort
SELECT + 61 + + 51 * ( - ( + - 32 ) ) * - + 36 AS col0, 49 AS col2
----
-58691
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4855
SELECT + 66 * + MAX( DISTINCT - CAST( + 95 AS SIGNED ) ) AS col0
----
-6270

skipif mysql # not compatible
query I rowsort label-4855
SELECT + 66 * + MAX ( DISTINCT - CAST ( + 95 AS INTEGER ) ) AS col0
----
-6270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4856
SELECT CAST( - 66 AS SIGNED ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4856
SELECT CAST ( - 66 AS INTEGER ) AS col1
----
-66

query II rowsort
SELECT DISTINCT + 76 AS col2, 12
----
76
12

query I rowsort
SELECT + 61 * + 23
----
1403

query I rowsort
SELECT + - NULLIF ( 68, + 3 * - ( - + 82 ) )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4860
SELECT + + 99 AS col0, 48 * - - ( - 89 ) * - - 87 + - 65 + + COUNT( * ) DIV - + 33 * - 97 AS col2
----
99
-371729

skipif mysql # not compatible
query II rowsort label-4860
SELECT + + 99 AS col0, 48 * - - ( - 89 ) * - - 87 + - 65 + + COUNT ( * ) / - + 33 * - 97 AS col2
----
99
-371729

onlyif mysql # aggregate syntax: 
query III rowsort label-4861
SELECT MAX( - + 85 ) * - 44 - + 95 AS col1, 16 + - + COUNT( * ) AS col2, - ( - 98 ) + - - 93
----
3645
15
191

skipif mysql # not compatible
query III rowsort label-4861
SELECT MAX ( - + 85 ) * - 44 - + 95 AS col1, 16 + - + COUNT ( * ) AS col2, - ( - 98 ) + - - 93
----
3645
15
191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4862
SELECT ALL - 77 * 63 DIV + CAST( - + MAX( ALL + ( - + 72 ) ) AS SIGNED ) - - 56 + - - COUNT( + + 15 )
----
-10

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL - 77 * 63 / + CAST ( - + MAX ( ALL + ( - + 72 ) ) AS INTEGER ) - - 56 + - - COUNT ( + + 15 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT + + CASE + 71 WHEN - - NULLIF ( 77, + COUNT( * ) ) * - 37 + 41 THEN NULL WHEN - 74 THEN 59 WHEN + - 77 THEN - 9 * - 91 END * - + 37 * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT + + CASE + 71 WHEN - - NULLIF ( 77, + COUNT ( * ) ) * - 37 + 41 THEN NULL WHEN - 74 THEN 59 WHEN + - 77 THEN - 9 * - 91 END * - + 37 * 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT DISTINCT - - SUM( DISTINCT + 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT - - SUM ( DISTINCT + 9 ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL + - 15 + - - COUNT( * ) + + 15 * 8 - - ( - 9 ) * 2
----
88

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL + - 15 + - - COUNT ( * ) + + 15 * 8 - - ( - 9 ) * 2
----
88

query I rowsort
SELECT DISTINCT - 83 + - 84
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4867
SELECT COALESCE ( - + 27, + ( - 39 ) * + 67 + 77 + ( + COUNT( * ) ), 55 * - 99 + - COUNT( * ) ) + - SUM( ALL + ( CAST( + 31 AS SIGNED ) ) ) + + 68 * + COUNT( * ) + + 53 AS col1, + 31 * ( 8 ) AS col1
----
63
248

skipif mysql # not compatible
query II rowsort label-4867
SELECT COALESCE ( - + 27, + ( - 39 ) * + 67 + 77 + ( + COUNT ( * ) ), 55 * - 99 + - COUNT ( * ) ) + - SUM ( ALL + ( CAST ( + 31 AS INTEGER ) ) ) + + 68 * + COUNT ( * ) + + 53 AS col1, + 31 * ( 8 ) AS col1
----
63
248

query I rowsort
SELECT + 0 + + 36 col2
----
36

query I rowsort
SELECT 91 * - + 82 AS col2
----
-7462

query II rowsort
SELECT - + 6 AS col0, 62
----
-6
62

query I rowsort
SELECT + 27 * 3 + 38
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT ALL - + COUNT( * ) + + + 30 col0
----
29

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL - + COUNT ( * ) + + + 30 col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4873
SELECT ALL + NULLIF ( 84, + COALESCE ( - 80, + - ( + + SUM( DISTINCT + - NULLIF ( - 12, - + COALESCE ( + 0, 23 * - 64 * 80 ) ) ) ), - MAX( + + CAST( - NULLIF ( - - 60, + 38 ) AS SIGNED ) ), + 60 ) ) * - 1 * + - 36 * 78 AS col0
----
235872

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL + NULLIF ( 84, + COALESCE ( - 80, + - ( + + SUM ( DISTINCT + - NULLIF ( - 12, - + COALESCE ( + 0, 23 * - 64 * 80 ) ) ) ), - MAX ( + + CAST ( - NULLIF ( - - 60, + 38 ) AS INTEGER ) ), + 60 ) ) * - 1 * + - 36 * 78 AS col0
----
235872

query I rowsort
SELECT 93 + - - 2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4875
SELECT ALL 57 + 66 - - 42 + CAST( - COUNT( * ) AS SIGNED ) * - 95 AS col2
----
260

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL 57 + 66 - - 42 + CAST ( - COUNT ( * ) AS INTEGER ) * - 95 AS col2
----
260

query II rowsort
SELECT 9 + 44 AS col0, + ( + 88 ) col1
----
53
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT COUNT( * ) + 47 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4877
SELECT COUNT ( * ) + 47 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4878
SELECT ALL - NULLIF ( + COALESCE ( - NULLIF ( - COUNT( * ), 35 ), + + CAST( - - CAST( - 41 AS SIGNED ) AS SIGNED ) ), + MIN( - 13 ) + - MIN( ALL 82 ) ) * 88 + - 86
----
-174

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL - NULLIF ( + COALESCE ( - NULLIF ( - COUNT ( * ), 35 ), + + CAST ( - - CAST ( - 41 AS INTEGER ) AS INTEGER ) ), + MIN ( - 13 ) + - MIN ( ALL 82 ) ) * 88 + - 86
----
-174

query II rowsort
SELECT 99 + - + 62, ( + 30 ) AS col2
----
37
30

query I rowsort
SELECT 35 * - 66 AS col2
----
-2310

onlyif mysql # DIV for integer division: 
query I rowsort label-4881
SELECT 9 + + 8 DIV 16
----
9

skipif mysql # not compatible
query I rowsort label-4881
SELECT 9 + + 8 / 16
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT COUNT( * ) * 84
----
84

skipif mysql # not compatible
query I rowsort label-4882
SELECT COUNT ( * ) * 84
----
84

query I rowsort
SELECT 18 + - + NULLIF ( - 72, - 41 ) + - 88 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT SUM( DISTINCT 60 ) + + 75 + - 20 + - + COALESCE ( + 25, + + 41 * 4 ) * - + CASE 31 WHEN COUNT( * ) THEN - - COALESCE ( 51, - + COALESCE ( 77, - 96, - - 88 ) * + 83, - 18 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT SUM ( DISTINCT 60 ) + + 75 + - 20 + - + COALESCE ( + 25, + + 41 * 4 ) * - + CASE 31 WHEN COUNT ( * ) THEN - - COALESCE ( 51, - + COALESCE ( 77, - 96, - - 88 ) * + 83, - 18 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 25 * 59
----
1475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4886
SELECT COUNT( * ) + + 58 AS col1, ( + CAST( NULL AS SIGNED ) ) - + - 47 - - 65 AS col2
----
59
NULL

skipif mysql # not compatible
query II rowsort label-4886
SELECT COUNT ( * ) + + 58 AS col1, ( + CAST ( NULL AS INTEGER ) ) - + - 47 - - 65 AS col2
----
59
NULL

query I rowsort
SELECT DISTINCT + ( - - ( + 26 ) ) * - 89
----
-2314

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT + ( + - 25 ) / 32 + CASE - + 2 WHEN 2 THEN + + COUNT( * ) - + 32 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT + ( + - 25 ) / 32 + CASE - + 2 WHEN 2 THEN + + COUNT ( * ) - + 32 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4889
SELECT + COUNT( * ) DIV + - ( 69 )
----
0

skipif mysql # not compatible
query I rowsort label-4889
SELECT + COUNT ( * ) / + - ( 69 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4890
SELECT ALL - CAST( + ( - 74 ) AS SIGNED ) + - 60 AS col2, COUNT( * ) AS col2, - 63 AS col2
----
14
1
-63

skipif mysql # not compatible
query III rowsort label-4890
SELECT ALL - CAST ( + ( - 74 ) AS INTEGER ) + - 60 AS col2, COUNT ( * ) AS col2, - 63 AS col2
----
14
1
-63

query I rowsort
SELECT + - 37 col1
----
-37

query I rowsort
SELECT + ( + + 29 ) * - 63 AS col0
----
-1827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4893
SELECT + 84 * - - CAST( NULL AS SIGNED ) / + - 84 * 10 + + 46 * COUNT( * ) + 94 + - COALESCE ( - 33, - 95 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT + 84 * - - CAST ( NULL AS INTEGER ) / + - 84 * 10 + + 46 * COUNT ( * ) + 94 + - COALESCE ( - 33, - 95 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 15 + + - 62 + - 14 * + 5 * - 2 * - ( - 72 )
----
10033

query II rowsort
SELECT ALL 39 + 79 AS col1, + ( + 62 ) AS col2
----
118
62

query I rowsort
SELECT DISTINCT + 24 + + 91 * + + 76
----
6940

onlyif mysql # aggregate syntax: 
query II rowsort label-4897
SELECT ALL + - MAX( ALL - 13 ) * + MIN( 99 ) AS col0, COUNT( ALL - - 81 ) AS col2
----
1287
1

skipif mysql # not compatible
query II rowsort label-4897
SELECT ALL + - MAX ( ALL - 13 ) * + MIN ( 99 ) AS col0, COUNT ( ALL - - 81 ) AS col2
----
1287
1

query I rowsort
SELECT ALL - 54 + - - 91 AS col0
----
37

query I rowsort
SELECT + 38 col0
----
38

query I rowsort
SELECT DISTINCT + 21 + - 96
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4901
SELECT + 89 - 7 AS col0, - 83 / - CAST( - CASE CAST( 26 AS DECIMAL ) WHEN + 48 THEN NULL ELSE CAST( NULL AS SIGNED ) * - 45 * - 28 END AS SIGNED ) * + - 73, + - 30 + - SUM( DISTINCT - 49 ) - + - 51 AS col0
----
82
NULL
70

skipif mysql # not compatible
query III rowsort label-4901
SELECT + 89 - 7 AS col0, - 83 / - CAST ( - CASE CAST ( 26 AS REAL ) WHEN + 48 THEN NULL ELSE CAST ( NULL AS INTEGER ) * - 45 * - 28 END AS INTEGER ) * + - 73, + - 30 + - SUM ( DISTINCT - 49 ) - + - 51 AS col0
----
82
NULL
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4902
SELECT DISTINCT + MIN( DISTINCT - - 27 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT + MIN ( DISTINCT - - 27 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT DISTINCT 85 - NULLIF ( 44, 53 + + 21 ) + + - 65 + - + 23 + - 15 + 12 DIV - ( + 99 ) * + 19 * + - 86 + 53
----
-9

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT 85 - NULLIF ( 44, 53 + + 21 ) + + - 65 + - + 23 + - 15 + 12 / - ( + 99 ) * + 19 * + - 86 + 53
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT CAST( NULL AS SIGNED ) / + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT CAST ( NULL AS INTEGER ) / + - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT COUNT( DISTINCT 59 ) * + + 36 - + 90 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT COUNT ( DISTINCT 59 ) * + + 36 - + 90 AS col0
----
-54

query I rowsort
SELECT ( 63 ) * ( + 2 ) * - 57 * 32 col0
----
-229824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4907
SELECT DISTINCT + COUNT( * ) DIV - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT + COUNT ( * ) / - 68 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4908
SELECT DISTINCT 2 DIV + 44 col1
----
0

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT 2 / + 44 col1
----
0

query I rowsort
SELECT DISTINCT + 45 * + 14
----
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT ALL + CAST( 29 AS SIGNED ) * + 6 AS col1
----
174

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL + CAST ( 29 AS INTEGER ) * + 6 AS col1
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-4911
SELECT 60 * 88 * 47 AS col0, COUNT( * ) * + - 20 col0
----
248160
-20

skipif mysql # not compatible
query II rowsort label-4911
SELECT 60 * 88 * 47 AS col0, COUNT ( * ) * + - 20 col0
----
248160
-20

query I rowsort
SELECT 34 - - ( - 67 ) * 32 col0
----
-2110

onlyif mysql # aggregate syntax: 
query II rowsort label-4913
SELECT SUM( DISTINCT 12 ) * + 93 + ( + - SUM( DISTINCT - 52 ) ) AS col2, + 25 AS col1
----
1168
25

skipif mysql # not compatible
query II rowsort label-4913
SELECT SUM ( DISTINCT 12 ) * + 93 + ( + - SUM ( DISTINCT - 52 ) ) AS col2, + 25 AS col1
----
1168
25

query I rowsort
SELECT ALL - ( + 79 )
----
-79

query I rowsort
SELECT 50 * + 36 AS col0
----
1800

query I rowsort
SELECT 36 * 57 + + 88 AS col1
----
2140

query I rowsort
SELECT NULLIF ( + 14, 24 / 54 )
----
14

query I rowsort
SELECT ALL - 98 * 57 + 33
----
-5553

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL 47 * - 61 + + ( + SUM( 17 ) + 61 )
----
-2789

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL 47 * - 61 + + ( + SUM ( 17 ) + 61 )
----
-2789

query I rowsort
SELECT - 94 + 5 AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT CASE COUNT( * ) WHEN ( - 75 ) * - 2 + COUNT( * ) THEN 87 * + 63 WHEN ( 41 ) THEN NULL WHEN - 67 * + 62 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT CASE COUNT ( * ) WHEN ( - 75 ) * - 2 + COUNT ( * ) THEN 87 * + 63 WHEN ( 41 ) THEN NULL WHEN - 67 * + 62 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT MIN( 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4922
SELECT MIN ( 13 ) AS col0
----
13

query I rowsort
SELECT - 58 + 45 AS col2
----
-13

query I rowsort
SELECT + 63 * 44
----
2772

onlyif mysql # DIV for integer division: 
query I rowsort label-4925
SELECT + 81 DIV + ( - 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-4925
SELECT + 81 / + ( - 68 )
----
-1

query I rowsort
SELECT ALL 28 * - ( + 89 ) - + 39 * 71
----
-5261

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT DISTINCT + 20 * + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT + 20 * + COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT DISTINCT + COUNT( * ) * 93 - 21 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT + COUNT ( * ) * 93 - 21 AS col1
----
72

query I rowsort
SELECT + 4 * 69
----
276

query I rowsort
SELECT DISTINCT + 51 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT MAX( 91 )
----
91

skipif mysql # not compatible
query I rowsort label-4931
SELECT MAX ( 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT - COUNT( * ) + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4932
SELECT - COUNT ( * ) + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT + 68 * COALESCE ( 91, 50 ) AS col1
----
6188

query I rowsort
SELECT + 85 + + 68 AS col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT + COUNT( 23 ) - - 32 col2
----
33

skipif mysql # not compatible
query I rowsort label-4935
SELECT + COUNT ( 23 ) - - 32 col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT DISTINCT CAST( 1 AS SIGNED ) * 49 col2
----
49

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT CAST ( 1 AS INTEGER ) * 49 col2
----
49

query I rowsort
SELECT 67 * 12 + + 25 * - 63 AS col0
----
-771

query I rowsort
SELECT + 38 + + 93 AS col1
----
131

query I rowsort
SELECT ALL 49 * 59 col1
----
2891

query I rowsort
SELECT DISTINCT 61 * + 4 AS col2
----
244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4941
SELECT - 60 + CAST( + 84 + 92 AS SIGNED )
----
116

skipif mysql # not compatible
query I rowsort label-4941
SELECT - 60 + CAST ( + 84 + 92 AS INTEGER )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT + 72 * - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4942
SELECT + 72 * - COUNT ( * ) AS col2
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4943
SELECT ALL - 95 DIV + COUNT( * ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - 95 / + COUNT ( * ) AS col1
----
-95

query I rowsort
SELECT ALL + 41 + + 89 AS col2
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-4945
SELECT DISTINCT 15 DIV 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT 15 / 99 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4946
SELECT ALL - + CAST( NULL AS SIGNED ) + CAST( - 48 AS SIGNED ) * + MIN( ALL + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL - + CAST ( NULL AS INTEGER ) + CAST ( - 48 AS INTEGER ) * + MIN ( ALL + 26 )
----
NULL

query I rowsort
SELECT - + ( 39 ) * 82
----
-3198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4948
SELECT ALL + 79 DIV + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL + 79 / + COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT - - COUNT( * ) + 97 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4949
SELECT - - COUNT ( * ) + 97 AS col2
----
98

query I rowsort
SELECT ALL + 98 * - 61 AS col1
----
-5978

query I rowsort
SELECT - - 60 + 2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT ALL + 73 DIV 3 - + 7
----
17

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL + 73 / 3 - + 7
----
17

query I rowsort
SELECT + 44 * 26 AS col1
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT NULLIF ( 57, - NULLIF ( 93, + 82 + - COUNT( * ) ) ) col0
----
57

skipif mysql # not compatible
query I rowsort label-4954
SELECT NULLIF ( 57, - NULLIF ( 93, + 82 + - COUNT ( * ) ) ) col0
----
57

query I rowsort
SELECT + + 37 * + 22 + - 54 col0
----
760

query I rowsort
SELECT CASE 83 WHEN ( - 36 ) THEN - 19 + - 49 WHEN - AVG ( 92 ) + - 57 * + 91 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT + COUNT( * ) * 32 + 37 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4957
SELECT + COUNT ( * ) * 32 + 37 AS col0
----
69

query I rowsort
SELECT DISTINCT + - ( 66 ) AS col1
----
-66

query I rowsort
SELECT ALL + + 19 AS col2
----
19

query I rowsort
SELECT ALL - 80 * 62 - - 92 col2
----
-4868

onlyif mysql # DIV for integer division: 
query I rowsort label-4961
SELECT - + 33 DIV 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4961
SELECT - + 33 / 80 AS col2
----
0

query I rowsort
SELECT ALL 46 * 76
----
3496

query I rowsort
SELECT + + 71 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT ALL - COUNT( * ) * - CASE + NULLIF ( - MIN( 93 ), 42 ) WHEN 66 / 55 THEN - 34 ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL - COUNT ( * ) * - CASE + NULLIF ( - MIN ( 93 ), 42 ) WHEN 66 / 55 THEN - 34 ELSE - COUNT ( * ) END
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4965
SELECT - 68 DIV + ( - 78 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4965
SELECT - 68 / + ( - 78 ) AS col1
----
0

query I rowsort
SELECT + 74 * - 90
----
-6660

query I rowsort
SELECT NULLIF ( 23, 42 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT SUM( DISTINCT - - 24 ) * + 52 + 6
----
1254

skipif mysql # not compatible
query I rowsort label-4968
SELECT SUM ( DISTINCT - - 24 ) * + 52 + 6
----
1254

query I rowsort
SELECT ALL - 44 * - ( 60 ) AS col0
----
2640

query I rowsort
SELECT - NULLIF ( 31, + 96 + + 66 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT + COUNT( * ) * ( ( 88 ) ) col1
----
88

skipif mysql # not compatible
query I rowsort label-4971
SELECT + COUNT ( * ) * ( ( 88 ) ) col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT - NULLIF ( 6, + MIN( ALL 93 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-4972
SELECT - NULLIF ( 6, + MIN ( ALL 93 ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT MIN( 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4973
SELECT MIN ( 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL 9 * - - 9 * SUM( DISTINCT + 23 ) + + 50 col1
----
1913

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL 9 * - - 9 * SUM ( DISTINCT + 23 ) + + 50 col1
----
1913

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT MIN( ALL 35 )
----
35

skipif mysql # not compatible
query I rowsort label-4975
SELECT MIN ( ALL 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT - MAX( - 64 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4976
SELECT - MAX ( - 64 ) AS col2
----
64

query I rowsort
SELECT + 84 * - 87 * + 31
----
-226548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4978
SELECT - 96 - + ( - CAST( NULL AS SIGNED ) ) - + CAST( 13 + - CASE - NULLIF ( COALESCE ( CASE 25 WHEN AVG ( 54 ) * + 28 THEN 42 + 25 END, + SUM( 12 ) + 31 * 14 ), CASE - 68 WHEN + 85 * COALESCE ( 63, 36 ) THEN - 26 ELSE 10 END / 34 ) WHEN - COUNT( * ) * + 10 THEN + 21 + 23 ELSE COUNT( * ) * + COUNT( * ) END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT - 96 - + ( - CAST ( NULL AS INTEGER ) ) - + CAST ( 13 + - CASE - NULLIF ( COALESCE ( CASE 25 WHEN AVG ( 54 ) * + 28 THEN 42 + 25 END, + SUM ( 12 ) + 31 * 14 ), CASE - 68 WHEN + 85 * COALESCE ( 63, 36 ) THEN - 26 ELSE 10 END / 34 ) WHEN - COUNT ( * ) * + 10 THEN + 21 + 23 ELSE COUNT ( * ) * + COUNT ( * ) END AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT SUM( - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-4979
SELECT SUM ( - 4 )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT - CAST( + + 28 AS SIGNED ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-4980
SELECT - CAST ( + + 28 AS INTEGER ) col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT ALL 42 * COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL 42 * COUNT ( * )
----
42

query I rowsort
SELECT 88 * - + 56 col2
----
-4928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4983
SELECT DISTINCT - ( - + CASE + CAST( NULL AS SIGNED ) WHEN 12 * - COALESCE ( COUNT( * ), CASE CAST( + 60 AS DECIMAL ) WHEN COUNT( * ) THEN NULL WHEN 71 + 45 THEN + 20 WHEN - MAX( + 73 ) THEN + COUNT( * ) ELSE NULL END ) THEN + 22 * + 27 END ) / 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT - ( - + CASE + CAST ( NULL AS INTEGER ) WHEN 12 * - COALESCE ( COUNT ( * ), CASE CAST ( + 60 AS REAL ) WHEN COUNT ( * ) THEN NULL WHEN 71 + 45 THEN + 20 WHEN - MAX ( + 73 ) THEN + COUNT ( * ) ELSE NULL END ) THEN + 22 * + 27 END ) / 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT ALL 36 + - 72 + + ( MAX( 50 ) ) * - 93 AS col1
----
-4686

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL 36 + - 72 + + ( MAX ( 50 ) ) * - 93 AS col1
----
-4686

query I rowsort
SELECT ALL + 50 * - - 34 + - 2
----
1698

query I rowsort
SELECT 12 * - + 86 - 87
----
-1119

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT DISTINCT - COUNT( * ) + - 51 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT - COUNT ( * ) + - 51 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT ALL 45 - - - 99 + + COUNT( * ) * COUNT( ALL COALESCE ( ( - 9 ), 51 ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL 45 - - - 99 + + COUNT ( * ) * COUNT ( ALL COALESCE ( ( - 9 ), 51 ) ) AS col2
----
-53

query I rowsort
SELECT - - 4 col2
----
4

query I rowsort
SELECT 91 + + 1
----
92

query I rowsort
SELECT + 41 + + - 56
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT + ( - + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4992
SELECT + ( - + COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT + + 47 * - + 2 * 10 + + 96
----
-844

onlyif mysql # DIV for integer division: 
query I rowsort label-4994
SELECT ALL - 23 - + 70 DIV ( - 50 )
----
-22

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL - 23 - + 70 / ( - 50 )
----
-22

query I rowsort
SELECT 14 * - - 42 + - 85 col0
----
503

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4996
SELECT ALL COUNT( * ) DIV 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL COUNT ( * ) / 43 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL - - 1 - - - 52 + - COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL - - 1 - - - 52 + - COUNT ( * ) AS col1
----
-52

query I rowsort
SELECT 60 * - 40 * 36 + + 40 AS col2
----
-86360

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4999
SELECT DISTINCT - 73 DIV CAST( 71 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT - 73 / CAST ( 71 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5000
SELECT - ( 81 ) DIV - ( - COUNT( * ) * - 37 ) + - 28
----
-26

skipif mysql # not compatible
query I rowsort label-5000
SELECT - ( 81 ) / - ( - COUNT ( * ) * - 37 ) + - 28
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT + MAX( + 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-5001
SELECT + MAX ( + 57 ) AS col1
----
57

query I rowsort
SELECT ALL 74 * - - 20 AS col1
----
1480

query I rowsort
SELECT 40 * + 47
----
1880

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT + + MIN( 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5004
SELECT + + MIN ( 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT SUM( - - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-5005
SELECT SUM ( - - 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT COUNT( * ) + - 69 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-5006
SELECT COUNT ( * ) + - 69 AS col0
----
-68

query I rowsort
SELECT 19 * - + 78 * CASE - ( 9 ) WHEN 7 THEN 39 WHEN 65 THEN - 98 - 17 END / 14
----
NULL

query I rowsort
SELECT DISTINCT 85 * - ( - 41 ) * + 30 AS col1
----
104550

query I rowsort
SELECT ALL NULLIF ( 57, - - 57 ) + - 81 * 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT ALL - 40 + + + MAX( ALL + 12 )
----
-28

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL - 40 + + + MAX ( ALL + 12 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT DISTINCT + ( + 67 ) + - 8 * ( 78 + - COUNT( * ) * + 31 )
----
-309

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT + ( + 67 ) + - 8 * ( 78 + - COUNT ( * ) * + 31 )
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL + 40 + + + MIN( DISTINCT + 27 )
----
67

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + 40 + + + MIN ( DISTINCT + 27 )
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5013
SELECT 63 DIV - - 90 * NULLIF ( - 41, + ( - MAX( ALL 75 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5013
SELECT 63 / - - 90 * NULLIF ( - 41, + ( - MAX ( ALL 75 ) ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT 34 + + + COUNT( * ) * + + 39
----
73

skipif mysql # not compatible
query I rowsort label-5014
SELECT 34 + + + COUNT ( * ) * + + 39
----
73

query I rowsort
SELECT ALL - 41 + - - 37
----
-4

query I rowsort
SELECT 43 + + 36
----
79

query II rowsort
SELECT - 63 AS col2, + COALESCE ( - - 56, + 98, - 97 ) AS col0
----
-63
56

query I rowsort
SELECT 53 + - 21 AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5019
SELECT MIN( + 54 ) DIV - - 80 + 24 col2
----
24

skipif mysql # not compatible
query I rowsort label-5019
SELECT MIN ( + 54 ) / - - 80 + 24 col2
----
24

query I rowsort
SELECT ALL + 68 + 97
----
165

query I rowsort
SELECT 59 * - 89 AS col2
----
-5251

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT DISTINCT + ( COUNT( * ) ) * 5 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT + ( COUNT ( * ) ) * 5 AS col2
----
5

query I rowsort
SELECT DISTINCT - 23 - 53 AS col0
----
-76

query I rowsort
SELECT ALL + 83 col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT COALESCE ( + COUNT( * ), + - 4, 94 + + 49 * 59 ) + + 83
----
84

skipif mysql # not compatible
query I rowsort label-5025
SELECT COALESCE ( + COUNT ( * ), + - 4, 94 + + 49 * 59 ) + + 83
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT ALL - 87 - - - 6 + 7 DIV 22
----
-93

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL - 87 - - - 6 + 7 / 22
----
-93

query I rowsort
SELECT + 99 * - - 12 col0
----
1188

onlyif mysql # aggregate syntax: 
query II rowsort label-5028
SELECT - 23 col0, 31 + + ( COUNT( * ) ) + 14 * 85 AS col2
----
-23
1222

skipif mysql # not compatible
query II rowsort label-5028
SELECT - 23 col0, 31 + + ( COUNT ( * ) ) + 14 * 85 AS col2
----
-23
1222

query I rowsort
SELECT - + ( + - 76 ) AS col1
----
76

query I rowsort
SELECT COALESCE ( COALESCE ( + 4, + 11 ), 45 * + 81 ) + 6
----
10

query II rowsort
SELECT ALL + 62 AS col1, - 19
----
62
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5032
SELECT 50 + - NULLIF ( - 0, + 56 DIV 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT 50 + - NULLIF ( - 0, + 56 / 85 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT - CAST( - 97 AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5033
SELECT - CAST ( - 97 AS INTEGER ) AS col0
----
97

query II rowsort
SELECT - 13 AS col2, 28 AS col0
----
-13
28

query I rowsort
SELECT DISTINCT + 44 * 0 - - 69
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5036
SELECT ALL + COUNT( * ) * - 44 * - NULLIF ( CAST( NULL AS SIGNED ), 29 / 46 + - 0 ) * - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL + COUNT ( * ) * - 44 * - NULLIF ( CAST ( NULL AS INTEGER ), 29 / 46 + - 0 ) * - 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5037
SELECT NULLIF ( + - COUNT( * ), + + 28 ) DIV + 19 col0
----
0

skipif mysql # not compatible
query I rowsort label-5037
SELECT NULLIF ( + - COUNT ( * ), + + 28 ) / + 19 col0
----
0

query II rowsort
SELECT 53 AS col1, 93
----
53
93

query I rowsort
SELECT 85 + 5
----
90

query I rowsort
SELECT + ( - 60 )
----
-60

query I rowsort
SELECT 75 + - 41 + - + 23 + 16
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5042
SELECT 28 * + CAST( NULL AS SIGNED ) * + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5042
SELECT 28 * + CAST ( NULL AS INTEGER ) * + 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT ALL - 81 * MAX( ALL - 80 ) + + + 19
----
6499

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL - 81 * MAX ( ALL - 80 ) + + + 19
----
6499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5044
SELECT COUNT( + COALESCE ( + + CAST( NULL AS SIGNED ), - + 59 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5044
SELECT COUNT ( + COALESCE ( + + CAST ( NULL AS INTEGER ), - + 59 ) ) AS col0
----
1

query I rowsort
SELECT ALL 58 * ( 31 ) * - - 90 + 35 AS col0
----
161855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5046
SELECT CAST( NULL AS SIGNED ) + - - 36 + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5046
SELECT CAST ( NULL AS INTEGER ) + - - 36 + - 84
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5047
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + + 65 + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT - CAST ( NULL AS REAL ) * + + 65 + 29 AS col2
----
NULL

query I rowsort
SELECT 54 + + 96
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ALL - SUM( DISTINCT + 31 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL - SUM ( DISTINCT + 31 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT COUNT( - + 53 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5050
SELECT COUNT ( - + 53 ) AS col0
----
1

query I rowsort
SELECT + 83 * + 93 + + 64 col2
----
7783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5052
SELECT + MAX( ALL + 55 ) AS col2, + CAST( + 21 AS SIGNED ) + + CAST( NULL AS SIGNED )
----
55
NULL

skipif mysql # not compatible
query II rowsort label-5052
SELECT + MAX ( ALL + 55 ) AS col2, + CAST ( + 21 AS INTEGER ) + + CAST ( NULL AS INTEGER )
----
55
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5053
SELECT MIN( + NULLIF ( + 79, 49 * 16 + + CAST( NULL AS SIGNED ) ) )
----
79

skipif mysql # not compatible
query I rowsort label-5053
SELECT MIN ( + NULLIF ( + 79, 49 * 16 + + CAST ( NULL AS INTEGER ) ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL + 9 * - MIN( - 86 )
----
774

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL + 9 * - MIN ( - 86 )
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT COALESCE ( COUNT( * ), 88 ) * + 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5055
SELECT COALESCE ( COUNT ( * ), 88 ) * + 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT + COUNT( * ) * 56 + 27
----
83

skipif mysql # not compatible
query I rowsort label-5056
SELECT + COUNT ( * ) * 56 + 27
----
83

query I rowsort
SELECT ALL + NULLIF ( - + 68, + ( - 14 ) + 81 / - 55 )
----
-68

query I rowsort
SELECT DISTINCT 90 - + 3 AS col0
----
87

query I rowsort
SELECT ALL NULLIF ( - 48, - 17 * + 4 ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT + NULLIF ( + + 9, + + 69 ) * + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-5060
SELECT + NULLIF ( + + 9, + + 69 ) * + COUNT ( * )
----
9

query I rowsort
SELECT - - 72 AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5062
SELECT ALL + - 22 * - ( + CAST( + - 75 AS SIGNED ) ) * + 48
----
-79200

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL + - 22 * - ( + CAST ( + - 75 AS INTEGER ) ) * + 48
----
-79200

query I rowsort
SELECT DISTINCT ( - + 3 )
----
-3

query I rowsort
SELECT - + 70 * 12 + 62 AS col2
----
-778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5065
SELECT DISTINCT - CASE + 24 WHEN + + CAST( NULL AS SIGNED ) THEN - 60 WHEN + 67 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT - CASE + 24 WHEN + + CAST ( NULL AS INTEGER ) THEN - 60 WHEN + 67 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 30 * + - ( 67 ) - + - 52 * 21 AS col1
----
3102

query II rowsort
SELECT DISTINCT - - 68 * 48 AS col2, 3 AS col1
----
3264
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5068
SELECT DISTINCT - CAST( + CAST( + - 65 AS SIGNED ) AS SIGNED ) DIV - - 59
----
1

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT - CAST ( + CAST ( + - 65 AS INTEGER ) AS INTEGER ) / - - 59
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5069
SELECT - + 20 - - + 66 AS col1, COUNT( * ) / + - CAST( NULL AS SIGNED ) + ( 94 ) * + COUNT( * )
----
46
NULL

skipif mysql # not compatible
query II rowsort label-5069
SELECT - + 20 - - + 66 AS col1, COUNT ( * ) / + - CAST ( NULL AS INTEGER ) + ( 94 ) * + COUNT ( * )
----
46
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5070
SELECT DISTINCT - COUNT( * ) + - CASE + 34 WHEN - ( - 90 ) * 32 THEN 52 WHEN 73 * ( MIN( CAST( NULL AS SIGNED ) ) ) THEN + 97 END + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT - COUNT ( * ) + - CASE + 34 WHEN - ( - 90 ) * 32 THEN 52 WHEN 73 * ( MIN ( CAST ( NULL AS INTEGER ) ) ) THEN + 97 END + 29
----
NULL

query I rowsort
SELECT - 26 + 12
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5072
SELECT ALL - 90 + - COUNT( * ) * CASE - - NULLIF ( 99, - CAST( NULL AS SIGNED ) ) WHEN 25 THEN NULL ELSE + 76 DIV 34 END
----
-92

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL - 90 + - COUNT ( * ) * CASE - - NULLIF ( 99, - CAST ( NULL AS INTEGER ) ) WHEN 25 THEN NULL ELSE + 76 / 34 END
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5073
SELECT - 40 + + 18 - - - 36 DIV 9 * CASE WHEN NOT ( - 90 ) BETWEEN NULL AND NULL THEN + 18 WHEN NOT ( + 73 ) + - 51 IS NULL THEN NULLIF ( 48, - 92 ) END AS col0
----
-214

skipif mysql # not compatible
query I rowsort label-5073
SELECT - 40 + + 18 - - - 36 / 9 * CASE WHEN NOT ( - 90 ) BETWEEN NULL AND NULL THEN + 18 WHEN NOT ( + 73 ) + - 51 IS NULL THEN NULLIF ( 48, - 92 ) END AS col0
----
-214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT ALL 92 * - CAST( 26 AS SIGNED )
----
-2392

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL 92 * - CAST ( 26 AS INTEGER )
----
-2392

query I rowsort
SELECT ALL - 81 * 18 + - + 61 * - 37 * ( 22 * + 70 ) - + 6
----
3474316

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5076
SELECT DISTINCT + 54 * - 83 + + + 97 + - CAST( NULL AS DECIMAL ) - - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT + 54 * - 83 + + + 97 + - CAST ( NULL AS REAL ) - - - 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5077
SELECT ALL 85 * + - ( - COUNT( ALL - + 64 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL 85 * + - ( - COUNT ( ALL - + 64 ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT DISTINCT - 4 * + SUM( DISTINCT 14 ) + + NULLIF ( + 31, + 93 * 89 ) + 37 * + 16
----
567

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT - 4 * + SUM ( DISTINCT 14 ) + + NULLIF ( + 31, + 93 * 89 ) + 37 * + 16
----
567

query I rowsort
SELECT ALL ( - 60 ) * + - 46 - + 52 * - 23 col2
----
3956

query II rowsort
SELECT DISTINCT + 86 AS col1, - 43
----
86
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT + 68 + + COALESCE ( - - CASE + - 96 WHEN + COUNT( * ) THEN 82 WHEN 41 * 61 THEN - 21 + 71 ELSE NULL END, - 37 + + 80 ) + COUNT( * ) * - 63
----
48

skipif mysql # not compatible
query I rowsort label-5081
SELECT + 68 + + COALESCE ( - - CASE + - 96 WHEN + COUNT ( * ) THEN 82 WHEN 41 * 61 THEN - 21 + 71 ELSE NULL END, - 37 + + 80 ) + COUNT ( * ) * - 63
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5082
SELECT COUNT( * ) * 17 - - - 24 AS col0, - 6 AS col1
----
-7
-6

skipif mysql # not compatible
query II rowsort label-5082
SELECT COUNT ( * ) * 17 - - - 24 AS col0, - 6 AS col1
----
-7
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5083
SELECT + MIN( + 34 ) * - - 97 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT + MIN ( + 34 ) * - - 97 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5084
SELECT + ( CAST( + 96 AS SIGNED ) ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5084
SELECT + ( CAST ( + 96 AS INTEGER ) ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT - COUNT( * ) * - - 42 + 29 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5085
SELECT - COUNT ( * ) * - - 42 + 29 AS col1
----
-13

query I rowsort
SELECT CASE + 37 WHEN + 10 THEN + 8 * 63 * 64 + - 67 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL 19 / - + CASE - 48 WHEN - 6 THEN NULL WHEN + 82 / 77 + - 55 THEN CASE 10 WHEN 12 * - 62 THEN SUM( 36 ) + 46 END + - 31 WHEN ( + 0 ) - + 10 THEN + ( - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL 19 / - + CASE - 48 WHEN - 6 THEN NULL WHEN + 82 / 77 + - 55 THEN CASE 10 WHEN 12 * - 62 THEN SUM ( 36 ) + 46 END + - 31 WHEN ( + 0 ) - + 10 THEN + ( - COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT + 25 * 87 * + 1 * 34
----
73950

query I rowsort
SELECT DISTINCT 34 * - + 44 - ( + 96 ) AS col2
----
-1592

query I rowsort
SELECT ALL + 78 * - - 8 AS col0
----
624

query I rowsort
SELECT + 97 * - 9 - 76 + + + 83 AS col2
----
-866

onlyif mysql # DIV for integer division: 
query I rowsort label-5092
SELECT ALL 9 * + 9 - - ( 38 ) + - + 73 * + COALESCE ( 3 DIV 39, + ( + 83 ) - - 26 * - 71 ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL 9 * + 9 - - ( 38 ) + - + 73 * + COALESCE ( 3 / 39, + ( + 83 ) - - 26 * - 71 ) AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT + 7 + - COUNT( * ) + - 70 - + - COALESCE ( + 32, ( 32 ) ) * - NULLIF ( 6, 53 / COUNT( * ) + + 51 ) col2
----
-256

skipif mysql # not compatible
query I rowsort label-5093
SELECT + 7 + - COUNT ( * ) + - 70 - + - COALESCE ( + 32, ( 32 ) ) * - NULLIF ( 6, 53 / COUNT ( * ) + + 51 ) col2
----
-256

query I rowsort
SELECT ALL 77 * - + 63
----
-4851

query I rowsort
SELECT + CASE 75 WHEN 92 THEN - 13 END + + 63 * - 18
----
NULL

query I rowsort
SELECT - 89 * + 44
----
-3916

query I rowsort
SELECT - 68 * 70 AS col1
----
-4760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5098
SELECT DISTINCT - ( + + COALESCE ( + 30, 78 * + COUNT( * ) + AVG ( 81 ) DIV 79 ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT - ( + + COALESCE ( + 30, 78 * + COUNT ( * ) + AVG ( 81 ) / 79 ) ) AS col0
----
-30

query I rowsort
SELECT ALL + 10 * - 65 AS col2
----
-650

query I rowsort
SELECT - + 24 + + 43
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT + NULLIF ( - 72, + - COUNT( * ) / - 15 + - - NULLIF ( MAX( DISTINCT 43 ), ( - 44 ) + COUNT( 55 ) * SUM( ALL - 10 ) ) )
----
-72

skipif mysql # not compatible
query I rowsort label-5101
SELECT + NULLIF ( - 72, + - COUNT ( * ) / - 15 + - - NULLIF ( MAX ( DISTINCT 43 ), ( - 44 ) + COUNT ( 55 ) * SUM ( ALL - 10 ) ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT - - SUM( DISTINCT - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-5102
SELECT - - SUM ( DISTINCT - 11 )
----
-11

query I rowsort
SELECT ALL - 94 + + + 75
----
-19

query I rowsort
SELECT NULLIF ( - 76, 21 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT DISTINCT - - COUNT( - 82 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT - - COUNT ( - 82 ) + COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT - 92 + 71
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT DISTINCT - - 77 + + COUNT( - - 43 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT - - 77 + + COUNT ( - - 43 ) AS col1
----
78

query I rowsort
SELECT ALL + 42 * - 61
----
-2562

query I rowsort
SELECT ALL + 79 + + + 48
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT - 92 * - COUNT( + + 56 )
----
92

skipif mysql # not compatible
query I rowsort label-5110
SELECT - 92 * - COUNT ( + + 56 )
----
92

query I rowsort
SELECT ALL ( + 45 )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT DISTINCT CAST( - 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT CAST ( - 5 AS INTEGER )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5113
SELECT ALL + CAST( + + AVG ( ALL 8 ) AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL + CAST ( + + AVG ( ALL 8 ) AS INTEGER )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT ALL 18 / - + 79 * CAST( NULL AS SIGNED ) - - + 74 + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL 18 / - + 79 * CAST ( NULL AS INTEGER ) - - + 74 + - 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5115
SELECT 18 * 97 - COUNT( * ) + - 83 DIV + 64 * + - COUNT( * )
----
1746

skipif mysql # not compatible
query I rowsort label-5115
SELECT 18 * 97 - COUNT ( * ) + - 83 / + 64 * + - COUNT ( * )
----
1746

query I rowsort
SELECT 44 + - + 52
----
-8

query I rowsort
SELECT 47 * - 23
----
-1081

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT ( - - 46 ) * - + 27 * NULLIF ( + + COUNT( * ), + 63 * + 67 + - 22 * ( 72 + 38 ) ) * - 46
----
57132

skipif mysql # not compatible
query I rowsort label-5118
SELECT ( - - 46 ) * - + 27 * NULLIF ( + + COUNT ( * ), + 63 * + 67 + - 22 * ( 72 + 38 ) ) * - 46
----
57132

query I rowsort
SELECT ALL 44 * + 35 AS col2
----
1540

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5120
SELECT + 95 AS col2, - CAST( NULL AS SIGNED ) AS col1
----
95
NULL

skipif mysql # not compatible
query II rowsort label-5120
SELECT + 95 AS col2, - CAST ( NULL AS INTEGER ) AS col1
----
95
NULL

query I rowsort
SELECT ALL - ( + 42 )
----
-42

query I rowsort
SELECT ALL - 55 - 56
----
-111

query I rowsort
SELECT DISTINCT 78 * - + 43
----
-3354

query I rowsort
SELECT DISTINCT - 91 * + - 66 * - 69
----
-414414

query I rowsort
SELECT 78 + COALESCE ( 98, - + 77 )
----
176

query I rowsort
SELECT ALL - COALESCE ( - + 69, + + 48 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5127
SELECT + 61 col0, 98 * + COUNT( * ) AS col2
----
61
98

skipif mysql # not compatible
query II rowsort label-5127
SELECT + 61 col0, 98 * + COUNT ( * ) AS col2
----
61
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT COUNT( + 27 ) + + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-5128
SELECT COUNT ( + 27 ) + + COUNT ( * ) col0
----
2

query I rowsort
SELECT 62 * - 73 AS col0
----
-4526

query I rowsort
SELECT 98 * + 62
----
6076

onlyif mysql # aggregate syntax: 
query II rowsort label-5131
SELECT 51 AS col1, + COUNT( * )
----
51
1

skipif mysql # not compatible
query II rowsort label-5131
SELECT 51 AS col1, + COUNT ( * )
----
51
1

query I rowsort
SELECT - 79 * + 71 + + 53
----
-5556

query I rowsort
SELECT DISTINCT - 49 col0
----
-49

query I rowsort
SELECT + 92 * - 21
----
-1932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5135
SELECT + 19 DIV + CAST( - ( + 58 ) AS SIGNED ) AS col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-5135
SELECT + 19 / + CAST ( - ( + 58 ) AS INTEGER ) AS col2, COUNT ( * )
----
0
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5136
SELECT ALL - CAST( + 70 AS SIGNED ) DIV - + 93 + + + 9, + CAST( NULL AS SIGNED ) DIV + 92 AS col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-5136
SELECT ALL - CAST ( + 70 AS INTEGER ) / - + 93 + + + 9, + CAST ( NULL AS INTEGER ) / + 92 AS col1
----
9
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5137
SELECT 81 * COALESCE ( - 86, + 76 * + 13 DIV CASE COUNT( * ) WHEN ( - 0 ) THEN ( + CAST( 72 AS SIGNED ) ) * + 23 ELSE ( 16 ) * CAST( NULL AS SIGNED ) END * MIN( 73 DIV + COALESCE ( - 10, 93 - + CAST( NULL AS SIGNED ) ) + 70 ), - 93 ) + COUNT( * )
----
-6965

skipif mysql # not compatible
query I rowsort label-5137
SELECT 81 * COALESCE ( - 86, + 76 * + 13 / CASE COUNT ( * ) WHEN ( - 0 ) THEN ( + CAST ( 72 AS INTEGER ) ) * + 23 ELSE ( 16 ) * CAST ( NULL AS INTEGER ) END * MIN ( 73 / + COALESCE ( - 10, 93 - + CAST ( NULL AS INTEGER ) ) + 70 ), - 93 ) + COUNT ( * )
----
-6965

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL - + NULLIF ( 43, + + 82 ) * - COUNT( * ) - - 58 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL - + NULLIF ( 43, + + 82 ) * - COUNT ( * ) - - 58 AS col2
----
101

query I rowsort
SELECT 83 * - 33 * + 70 + - 11 - 95
----
-191836

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ALL 11 + 47 * - 76 + + COUNT( * )
----
-3560

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL 11 + 47 * - 76 + + COUNT ( * )
----
-3560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5141
SELECT CAST( + SUM( + 45 ) AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-5141
SELECT CAST ( + SUM ( + 45 ) AS INTEGER )
----
45

query I rowsort
SELECT - - 73 AS col0
----
73

query I rowsort
SELECT ALL 25 + - 98 AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT - + 16 * - CAST( NULL AS SIGNED ) - - - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT - + 16 * - CAST ( NULL AS INTEGER ) - - - 24
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5145
SELECT + 8 - 75 AS col0, + NULLIF ( + 11, + COUNT( + 57 ) + + COUNT( * ) ) + COALESCE ( + 82 + + COALESCE ( 71, 10 + - CASE + 84 + + NULLIF ( + 42, CAST( 34 AS SIGNED ) ) * COALESCE ( 90, 51 * - ( 79 ) ) WHEN 60 THEN - 88 END ), - 4, 28 + 1 ) AS col1
----
-67
164

skipif mysql # not compatible
query II rowsort label-5145
SELECT + 8 - 75 AS col0, + NULLIF ( + 11, + COUNT ( + 57 ) + + COUNT ( * ) ) + COALESCE ( + 82 + + COALESCE ( 71, 10 + - CASE + 84 + + NULLIF ( + 42, CAST ( 34 AS INTEGER ) ) * COALESCE ( 90, 51 * - ( 79 ) ) WHEN 60 THEN - 88 END ), - 4, 28 + 1 ) AS col1
----
-67
164

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT - - SUM( + - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-5146
SELECT - - SUM ( + - 54 )
----
-54

query I rowsort
SELECT COALESCE ( - + 21, - + 14 * 18 )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT DISTINCT - 5 * + COALESCE ( CAST( + 36 AS SIGNED ), + 74 * + 59 * - 35 ) * + 91
----
-16380

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT - 5 * + COALESCE ( CAST ( + 36 AS INTEGER ), + 74 * + 59 * - 35 ) * + 91
----
-16380

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT - + MAX( DISTINCT - - 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-5149
SELECT - + MAX ( DISTINCT - - 31 ) AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5150
SELECT ALL - + ( + 28 ) + - COALESCE ( + + CAST( + 72 AS SIGNED ), - 96, 33 ) DIV - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL - + ( + 28 ) + - COALESCE ( + + CAST ( + 72 AS INTEGER ), - 96, 33 ) / - COUNT ( * )
----
44

query II rowsort
SELECT ALL 83 AS col1, + 95 AS col2
----
83
95

query I rowsort
SELECT - 58 - 3 AS col2
----
-61

query II rowsort
SELECT 46, 64 AS col2
----
46
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5154
SELECT - CASE - 43 WHEN + 76 * - + CAST( NULL AS SIGNED ) THEN NULL WHEN - - 17 * - ( - 82 ) * 88 THEN - CAST( NULL AS SIGNED ) + + 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT - CASE - 43 WHEN + 76 * - + CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 17 * - ( - 82 ) * 88 THEN - CAST ( NULL AS INTEGER ) + + 61 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT DISTINCT MIN( + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT MIN ( + 35 )
----
35

query I rowsort
SELECT ALL 74 - 51 * - 94 AS col0
----
4868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT CAST( NULL AS SIGNED ) + - + 23 + + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT CAST ( NULL AS INTEGER ) + - + 23 + + 71 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5158
SELECT COUNT( * ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5158
SELECT COUNT ( * ) + + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 82 - 7 * + 26, - 46 * 75 AS col0
----
-100
-3450

query II rowsort
SELECT ALL - 50 * - 83 * - 29, - 48 col0
----
-120350
-48

query II rowsort
SELECT 53 * - + 81 AS col1, + 52
----
-4293
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT ALL SUM( - + 68 ) * - - 7 * + SUM( + 22 ) AS col2
----
-10472

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL SUM ( - + 68 ) * - - 7 * + SUM ( + 22 ) AS col2
----
-10472

onlyif mysql # aggregate syntax: 
query II rowsort label-5163
SELECT DISTINCT SUM( DISTINCT + 39 ) * 2 - + ( - - 21 ) AS col0, + 16 col1
----
57
16

skipif mysql # not compatible
query II rowsort label-5163
SELECT DISTINCT SUM ( DISTINCT + 39 ) * 2 - + ( - - 21 ) AS col0, + 16 col1
----
57
16

query I rowsort
SELECT DISTINCT - 96 * + - CASE ( + + 34 ) WHEN - - 29 * - 31 + + - 80 * 18 THEN NULL ELSE 93 END AS col0
----
8928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5165
SELECT 82 + SUM( 66 ) + - 59 DIV 82 AS col2
----
148

skipif mysql # not compatible
query I rowsort label-5165
SELECT 82 + SUM ( 66 ) + - 59 / 82 AS col2
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT 62 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-5166
SELECT 62 / + 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT + ( + 57 ) * - COUNT( DISTINCT + 27 ) + + ( 38 )
----
-19

skipif mysql # not compatible
query I rowsort label-5167
SELECT + ( + 57 ) * - COUNT ( DISTINCT + 27 ) + + ( 38 )
----
-19

query II rowsort
SELECT DISTINCT - COALESCE ( 63, + 36 ), 41 AS col2
----
-63
41

query I rowsort
SELECT DISTINCT - COALESCE ( - + 12, + 9 ) + - 9 + - 55 AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5170
SELECT DISTINCT - - CASE - ( CAST( NULL AS SIGNED ) ) WHEN - + 65 + - + 19 - - 58 * + CAST( NULL AS SIGNED ) + 72 THEN - 93 / + 56 + COALESCE ( 17 + - 43, + 4 ) WHEN 55 THEN 62 * 5 + 3 * 64 WHEN 2 * - 1 + - 24 THEN NULL END * ( - 69 * ( - COUNT( * ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT - - CASE - ( CAST ( NULL AS INTEGER ) ) WHEN - + 65 + - + 19 - - 58 * + CAST ( NULL AS INTEGER ) + 72 THEN - 93 / + 56 + COALESCE ( 17 + - 43, + 4 ) WHEN 55 THEN 62 * 5 + 3 * 64 WHEN 2 * - 1 + - 24 THEN NULL END * ( - 69 * ( - COUNT ( * ) ) ) AS col0
----
NULL

query III rowsort
SELECT ALL - - ( 4 ), 40 AS col1, - - 78 + - 94 AS col0
----
4
40
-16

query I rowsort
SELECT + 19 * - 38 * - 56 + - 25 + 63
----
40470

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL - - 11 + + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL - - 11 + + COUNT ( * )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5174
SELECT COUNT( * ) + - 73 + - + 49 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5174
SELECT COUNT ( * ) + - 73 + - + 49 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( 91 )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5176
SELECT ALL + 78 + 16 AS col1, 52 * COUNT( * )
----
94
52

skipif mysql # not compatible
query II rowsort label-5176
SELECT ALL + 78 + 16 AS col1, 52 * COUNT ( * )
----
94
52

query I rowsort
SELECT ALL - + ( - 45 ) + + + 22 AS col0
----
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5178
SELECT DISTINCT + ( ( CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT + ( ( CAST ( NULL AS REAL ) ) )
----
NULL

query I rowsort
SELECT 98 + 22 + 73 AS col2
----
193

query I rowsort
SELECT + 56 + + - ( - 86 ) AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT ALL - 51 - - - 52 * - - SUM( ALL 34 ) + COUNT( * )
----
-1818

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL - 51 - - - 52 * - - SUM ( ALL 34 ) + COUNT ( * )
----
-1818

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5182
SELECT COUNT( + 64 ) DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-5182
SELECT COUNT ( + 64 ) / + 64
----
0

query I rowsort
SELECT + 65 * 42 AS col0
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT + + 82 + - COUNT( + 50 )
----
81

skipif mysql # not compatible
query I rowsort label-5184
SELECT + + 82 + - COUNT ( + 50 )
----
81

query I rowsort
SELECT + 62 * + 57 * 33
----
116622

query I rowsort
SELECT ALL 68 * - 89 AS col0
----
-6052

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT - MIN( + 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-5187
SELECT - MIN ( + 42 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT - ( + 61 ) + COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-5188
SELECT - ( + 61 ) + COUNT ( * ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT - MIN( DISTINCT 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5189
SELECT - MIN ( DISTINCT 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL COUNT( * ) * - + 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL COUNT ( * ) * - + 98 AS col1
----
-98

query I rowsort
SELECT + 26 * 37 AS col2
----
962

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL COUNT( * ) * - 31 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL COUNT ( * ) * - 31 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT ALL MAX( DISTINCT + - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL MAX ( DISTINCT + - 57 )
----
-57

query II rowsort
SELECT 90 AS col1, - 30 AS col1
----
90
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-5195
SELECT DISTINCT 44, NULLIF ( + + COUNT( * ), + + 6 * 13 + 5 * + 49 + + - COUNT( * ) + - 22 ) * - 8 AS col1
----
44
-8

skipif mysql # not compatible
query II rowsort label-5195
SELECT DISTINCT 44, NULLIF ( + + COUNT ( * ), + + 6 * 13 + 5 * + 49 + + - COUNT ( * ) + - 22 ) * - 8 AS col1
----
44
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT - COALESCE ( + 90, - 37 + - 94 - - + 34 - + 86 * ( + COUNT( * ) ) )
----
-90

skipif mysql # not compatible
query I rowsort label-5196
SELECT - COALESCE ( + 90, - 37 + - 94 - - + 34 - + 86 * ( + COUNT ( * ) ) )
----
-90

query I rowsort
SELECT + 90 * 17
----
1530

onlyif mysql # aggregate syntax: 
query II rowsort label-5198
SELECT ALL + 24, - COUNT( + 20 ) AS col2
----
24
-1

skipif mysql # not compatible
query II rowsort label-5198
SELECT ALL + 24, - COUNT ( + 20 ) AS col2
----
24
-1

query I rowsort
SELECT CASE 28 WHEN - 41 * + - 64 + - 21 THEN NULL WHEN ( 87 ) THEN + - 18 ELSE + 41 END
----
41

query I rowsort
SELECT + 84 + 64
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT + MIN( 91 ) * + 40 * - COUNT( * ) * + 85 - + + ( - 75 )
----
-309325

skipif mysql # not compatible
query I rowsort label-5201
SELECT + MIN ( 91 ) * + 40 * - COUNT ( * ) * + 85 - + + ( - 75 )
----
-309325

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT - 48 DIV + - 90 col1
----
0

skipif mysql # not compatible
query I rowsort label-5202
SELECT - 48 / + - 90 col1
----
0

query I rowsort
SELECT ALL + 19 * - 24 * - COALESCE ( - 51, + + 41 + 26 )
----
-23256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT + COALESCE ( - 62, CAST( NULL AS SIGNED ) + + 26 ) * - - 9 + - - 83 * 69 AS col2
----
5169

skipif mysql # not compatible
query I rowsort label-5204
SELECT + COALESCE ( - 62, CAST ( NULL AS INTEGER ) + + 26 ) * - - 9 + - - 83 * 69 AS col2
----
5169

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT - 66 + + ( + COUNT( * ) ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-5205
SELECT - 66 + + ( + COUNT ( * ) ) col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT NULLIF ( ( - 68 ), + ( COUNT( * ) ) + + 90 - + 7 - + - 39 * + 62 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5206
SELECT NULLIF ( ( - 68 ), + ( COUNT ( * ) ) + + 90 - + 7 - + - 39 * + 62 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL - 64 * - + 41 + + ( + 59 ) - - COUNT( * ) col1
----
2684

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL - 64 * - + 41 + + ( + 59 ) - - COUNT ( * ) col1
----
2684

query II rowsort
SELECT + 69 AS col1, 52 col2
----
69
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT - 71 DIV 10 + - 2 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-5209
SELECT - 71 / 10 + - 2 AS col2
----
-9

query I rowsort
SELECT NULLIF ( + 9, 27 + 69 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5211
SELECT ALL 95 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL 95 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT DISTINCT NULLIF ( 16, + COUNT( * ) - + NULLIF ( ( - 36 ), + - 22 * SUM( 1 ) ) * - 43 ) * - 78 + 69
----
-1179

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT NULLIF ( 16, + COUNT ( * ) - + NULLIF ( ( - 36 ), + - 22 * SUM ( 1 ) ) * - 43 ) * - 78 + 69
----
-1179

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT ALL + 79 * 3 + + MIN( DISTINCT + + ( + - 31 ) ) AS col0
----
206

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL + 79 * 3 + + MIN ( DISTINCT + + ( + - 31 ) ) AS col0
----
206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5214
SELECT - - COALESCE ( - 69, + + 86, + 81 + 30 ) * - + 58 * - CAST( NULL AS SIGNED ) + + 12 + - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT - - COALESCE ( - 69, + + 86, + 81 + 30 ) * - + 58 * - CAST ( NULL AS INTEGER ) + + 12 + - 13 AS col2
----
NULL

query I rowsort
SELECT ALL + + NULLIF ( + 51, - 2 + - 71 + + 84 ) * 55 * - + 4 + + - 30 * - 12
----
-10860

query I rowsort
SELECT + 50 * + + 96 col1
----
4800

query I rowsort
SELECT 71 * + 6 + - 74 col2
----
352

query II rowsort
SELECT + 99 AS col0, - 28 * - 3 * - 38
----
99
-3192

query I rowsort
SELECT ALL - 78 * 89 + - 59 + + 13 * + - 38 AS col1
----
-7495

query I rowsort
SELECT - - 10 * - 62 * - 10 * - + CASE + 51 WHEN + 45 THEN - 66 / + 2 * - 60 + - 74 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT DISTINCT + SUM( - 68 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT + SUM ( - 68 ) AS col1
----
-68

query I rowsort
SELECT + ( - 57 ) AS col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5223
SELECT ALL + 72 * 69 * - 22 * CAST( NULL AS SIGNED ) * - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL + 72 * 69 * - 22 * CAST ( NULL AS INTEGER ) * - + 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5224
SELECT - - 61 * + MAX( 56 ) * CAST( NULL AS DECIMAL ) - - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT - - 61 * + MAX ( 56 ) * CAST ( NULL AS REAL ) - - + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - 66 * - 9 - + MIN( ALL - 70 ) * 81
----
6264

skipif mysql # not compatible
query I rowsort label-5225
SELECT - 66 * - 9 - + MIN ( ALL - 70 ) * 81
----
6264

query I rowsort
SELECT ALL - - 4 - + - 95
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5227
SELECT - - NULLIF ( 69, + - COALESCE ( - 37, - + 72 + + 29 - 29 ) * - 20 * CAST( + 54 * CASE - 22 * - CASE 50 * COUNT( * ) WHEN 18 THEN NULL ELSE - 92 END WHEN 57 THEN 43 * 83 WHEN - COUNT( * ) THEN - 50 + + 21 END AS SIGNED ) ) * - COALESCE ( + 71, + CASE + CASE 12 WHEN 80 THEN 20 ELSE 80 END WHEN 46 THEN + 53 DIV - 86 + 36 * 69 ELSE NULL END )
----
-4899

skipif mysql # not compatible
query I rowsort label-5227
SELECT - - NULLIF ( 69, + - COALESCE ( - 37, - + 72 + + 29 - 29 ) * - 20 * CAST ( + 54 * CASE - 22 * - CASE 50 * COUNT ( * ) WHEN 18 THEN NULL ELSE - 92 END WHEN 57 THEN 43 * 83 WHEN - COUNT ( * ) THEN - 50 + + 21 END AS INTEGER ) ) * - COALESCE ( + 71, + CASE + CASE 12 WHEN 80 THEN 20 ELSE 80 END WHEN 46 THEN + 53 / - 86 + 36 * 69 ELSE NULL END )
----
-4899

query I rowsort
SELECT - CASE 6 WHEN + 9 + - - ( - 56 ) THEN - 89 ELSE NULL END - - 78 AS col1
----
NULL

query I rowsort
SELECT + 62 * - + 34 AS col1
----
-2108

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ALL - MAX( DISTINCT 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL - MAX ( DISTINCT 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT - 6 - + + NULLIF ( 79, COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-5231
SELECT - 6 - + + NULLIF ( 79, COUNT ( * ) )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT DISTINCT + CAST( - 8 AS SIGNED ) * + 61
----
-488

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT + CAST ( - 8 AS INTEGER ) * + 61
----
-488

onlyif mysql # DIV for integer division: 
query I rowsort label-5233
SELECT ALL 21 DIV COALESCE ( 95, - + COALESCE ( - + 85, + + NULLIF ( 89, + 91 + 49 ) ) ) * 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL 21 / COALESCE ( 95, - + COALESCE ( - + 85, + + NULLIF ( 89, + 91 + 49 ) ) ) * 97 AS col2
----
0

query II rowsort
SELECT ALL ( 79 ) AS col0, 32
----
79
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5235
SELECT ALL 85 DIV - 17, + COUNT( * ) AS col0
----
-5
1

skipif mysql # not compatible
query II rowsort label-5235
SELECT ALL 85 / - 17, + COUNT ( * ) AS col0
----
-5
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5236
SELECT - CASE - - 13 WHEN + 14 + - - CAST( + 47 AS SIGNED ) THEN COUNT( * ) WHEN + - COUNT( * ) * - - ( - - 5 ) * + 29 THEN 34 * - 25 END / COALESCE ( - 97, - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT - CASE - - 13 WHEN + 14 + - - CAST ( + 47 AS INTEGER ) THEN COUNT ( * ) WHEN + - COUNT ( * ) * - - ( - - 5 ) * + 29 THEN 34 * - 25 END / COALESCE ( - 97, - 84 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5237
SELECT + CAST( - + 1 AS SIGNED ) DIV 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5237
SELECT + CAST ( - + 1 AS INTEGER ) / 40 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5238
SELECT + COUNT( ALL + + 85 ) - - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5238
SELECT + COUNT ( ALL + + 85 ) - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT DISTINCT COUNT( * ) * ( - NULLIF ( + COUNT( * ), - + 19 / 65 + + - 96 - - COUNT( * ) + + + 11 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT COUNT ( * ) * ( - NULLIF ( + COUNT ( * ), - + 19 / 65 + + - 96 - - COUNT ( * ) + + + 11 ) ) AS col0
----
-1

query I rowsort
SELECT ALL 78 * - 26 * 76
----
-154128

onlyif mysql # aggregate syntax: 
query II rowsort label-5241
SELECT + 43 + SUM( ALL - + ( 1 ) ), 64 col2
----
42
64

skipif mysql # not compatible
query II rowsort label-5241
SELECT + 43 + SUM ( ALL - + ( 1 ) ), 64 col2
----
42
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5242
SELECT ALL + 60 * 63 AS col0, + 5 * 86 + NULLIF ( + 16, + + 80 * - 86 ) - + - SUM( ALL - 35 ) + 46 * 87 DIV - 70
----
3780
354

skipif mysql # not compatible
query II rowsort label-5242
SELECT ALL + 60 * 63 AS col0, + 5 * 86 + NULLIF ( + 16, + + 80 * - 86 ) - + - SUM ( ALL - 35 ) + 46 * 87 / - 70
----
3780
354

query I rowsort
SELECT + COALESCE ( 14, 41 ) * 86 * + 26
----
31304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5244
SELECT DISTINCT 42 / + 20 * + 52 + + + CAST( NULL AS SIGNED ) AS col0, 85 * MAX( ALL + + 21 )
----
NULL
1785

skipif mysql # not compatible
query II rowsort label-5244
SELECT DISTINCT 42 / + 20 * + 52 + + + CAST ( NULL AS INTEGER ) AS col0, 85 * MAX ( ALL + + 21 )
----
NULL
1785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5245
SELECT ALL - CAST( NULL AS SIGNED ) / - 15 + MAX( ALL - 16 ) + + 5 - 95 + NULLIF ( - COUNT( * ), + 64 * 73 + + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL - CAST ( NULL AS INTEGER ) / - 15 + MAX ( ALL - 16 ) + + 5 - 95 + NULLIF ( - COUNT ( * ), + 64 * 73 + + 6 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT + 6 * - - MIN( - - 55 ) * + ( - MAX( - + 61 ) ) AS col2
----
20130

skipif mysql # not compatible
query I rowsort label-5246
SELECT + 6 * - - MIN ( - - 55 ) * + ( - MAX ( - + 61 ) ) AS col2
----
20130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5247
SELECT DISTINCT 17 DIV NULLIF ( + CAST( + ( - COUNT( - 28 ) ) AS SIGNED ), NULLIF ( - 79, - 52 ) ) + - 55
----
-72

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT 17 / NULLIF ( + CAST ( + ( - COUNT ( - 28 ) ) AS INTEGER ), NULLIF ( - 79, - 52 ) ) + - 55
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5248
SELECT CAST( + - SUM( ALL 23 ) AS SIGNED ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-5248
SELECT CAST ( + - SUM ( ALL 23 ) AS INTEGER ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5249
SELECT CAST( - - ( + + 84 ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-5249
SELECT CAST ( - - ( + + 84 ) AS INTEGER )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ALL + COUNT( - + 60 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL + COUNT ( - + 60 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5251
SELECT 31 DIV - 49 + - NULLIF ( 84, - COUNT( * ) * - 47 + + 95 DIV COUNT( * ) )
----
-84

skipif mysql # not compatible
query I rowsort label-5251
SELECT 31 / - 49 + - NULLIF ( 84, - COUNT ( * ) * - 47 + + 95 / COUNT ( * ) )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-5252
SELECT DISTINCT + 32 DIV 92 + - 50 - + 73 DIV - 24 + + 49 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT + 32 / 92 + - 50 - + 73 / - 24 + + 49 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT + CASE - 97 WHEN + - CASE + 86 WHEN - + 87 THEN + + 91 END THEN + - 31 + + 64 + + COALESCE ( 72, - 54 + + COALESCE ( - 63 - 91, - 83, - 78 * - ( 43 ) ) * 73 ) + + 20 * MAX( + 38 + + 83 ) * + 70 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT + CASE - 97 WHEN + - CASE + 86 WHEN - + 87 THEN + + 91 END THEN + - 31 + + 64 + + COALESCE ( 72, - 54 + + COALESCE ( - 63 - 91, - 83, - 78 * - ( 43 ) ) * 73 ) + + 20 * MAX ( + 38 + + 83 ) * + 70 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT ALL + - ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL + - ( - + COUNT ( * ) )
----
1

query II rowsort
SELECT DISTINCT + - 87 * 16 + - 49 - - - CASE + 73 WHEN - 79 THEN + 3 ELSE NULL END, - 24 AS col2
----
NULL
-24

query I rowsort
SELECT DISTINCT 76 * - NULLIF ( + 19, + 57 / - + 72 + 41 ) col1
----
-1444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5257
SELECT ALL + + NULLIF ( - COUNT( * ), 75 * - 3 + + ( - 30 ) ) * - 96 DIV + + 19 - 9 + + 42 * 25 col0
----
1046

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL + + NULLIF ( - COUNT ( * ), 75 * - 3 + + ( - 30 ) ) * - 96 / + + 19 - 9 + + 42 * 25 col0
----
1046

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5258
SELECT + 50 DIV - - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-5258
SELECT + 50 / - - COUNT ( * )
----
50

query I rowsort
SELECT - 24 + + 57
----
33

query I rowsort
SELECT - 63 + 16
----
-47

query I rowsort
SELECT DISTINCT - + 3 AS col2
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5262
SELECT ALL - 35 DIV + 67, ( + + ( + 49 ) ) * - - 55 AS col1
----
0
2695

skipif mysql # not compatible
query II rowsort label-5262
SELECT ALL - 35 / + 67, ( + + ( + 49 ) ) * - - 55 AS col1
----
0
2695

query II rowsort
SELECT - 77 + + 10, + 36 - 35 * - 5 AS col1
----
-67
211

query I rowsort
SELECT + 47 - - 95 AS col0
----
142

query I rowsort
SELECT - 51 * + 67
----
-3417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5266
SELECT + 4 + - 5 + - ( + + 50 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT + 4 + - 5 + - ( + + 50 ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( + - 63 )
----
-63

query I rowsort
SELECT DISTINCT + 36 * 54
----
1944

query I rowsort
SELECT 66 * - 16
----
-1056

query I rowsort
SELECT 72 + + 24
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5271
SELECT ALL + 18 * + 7 * + 88, - COUNT( * ) AS col0
----
11088
-1

skipif mysql # not compatible
query II rowsort label-5271
SELECT ALL + 18 * + 7 * + 88, - COUNT ( * ) AS col0
----
11088
-1

query I rowsort
SELECT DISTINCT + 46 * 94
----
4324

query I rowsort
SELECT DISTINCT + 37 * + 35
----
1295

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5274
SELECT 56 * - + COUNT( * ) DIV - + 59 DIV - - 1 col2
----
0

skipif mysql # not compatible
query I rowsort label-5274
SELECT 56 * - + COUNT ( * ) / - + 59 / - - 1 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT MIN( ALL ( + 7 ) ) + - + NULLIF ( + 79, - 64 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-5275
SELECT MIN ( ALL ( + 7 ) ) + - + NULLIF ( + 79, - 64 ) AS col0
----
-72

query I rowsort
SELECT ALL + 19 + - 77 AS col0
----
-58

query I rowsort
SELECT ALL - 64 + - 69 col1
----
-133

query I rowsort
SELECT 78 + - 30 AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5279
SELECT DISTINCT 51, + 28 DIV COALESCE ( - + 80, - 41 * + + AVG ( DISTINCT ( - 11 ) ) DIV - COUNT( * ) * + + ( - ( - 32 ) ) - + 53 ) * - 7 + + COUNT( - 46 + 14 * + 97 ) AS col0
----
51
1

skipif mysql # not compatible
query II rowsort label-5279
SELECT DISTINCT 51, + 28 / COALESCE ( - + 80, - 41 * + + AVG ( DISTINCT ( - 11 ) ) / - COUNT ( * ) * + + ( - ( - 32 ) ) - + 53 ) * - 7 + + COUNT ( - 46 + 14 * + 97 ) AS col0
----
51
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5280
SELECT ALL - 19 + + 63 * 11 + + 3 + + CAST( NULL AS SIGNED ) + + 99 + - 16 * - CAST( + + 94 AS SIGNED ) / 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL - 19 + + 63 * 11 + + 3 + + CAST ( NULL AS INTEGER ) + + 99 + - 16 * - CAST ( + + 94 AS INTEGER ) / 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL COUNT( * ) + - + 9 - - + ( - - COUNT( * ) )
----
-7

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL COUNT ( * ) + - + 9 - - + ( - - COUNT ( * ) )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-5282
SELECT DISTINCT 66 DIV - 14 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT 66 / - 14 AS col0
----
-4

query I rowsort
SELECT ALL - 2 + - 14 col1
----
-16

query I rowsort
SELECT DISTINCT + 47 + - - 89 + - + 82 * + 95 * - + 91 AS col1
----
709026

query I rowsort
SELECT ALL 1 * - + 46
----
-46

query I rowsort
SELECT 13 + ( - 48 ) + 67 + - 66
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-5287
SELECT DISTINCT - 75 DIV - + 98 * ( 68 )
----
0

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT - 75 / - + 98 * ( 68 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5288
SELECT 26 DIV + COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5288
SELECT 26 / + COUNT ( * ) AS col2
----
26

query I rowsort
SELECT 97 * - - 27
----
2619

query I rowsort
SELECT ALL - + 28 AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL 42 * - NULLIF ( - - 67, + - 72 * - + 27 + + COUNT( + + 17 ) + + + 93 / + NULLIF ( - COUNT( DISTINCT 49 ), + CAST( NULL AS SIGNED ) ) + - 24 / 43 / - 58 + 45 / + 25 )
----
-2814

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL 42 * - NULLIF ( - - 67, + - 72 * - + 27 + + COUNT ( + + 17 ) + + + 93 / + NULLIF ( - COUNT ( DISTINCT 49 ), + CAST ( NULL AS INTEGER ) ) + - 24 / 43 / - 58 + 45 / + 25 )
----
-2814

query I rowsort
SELECT DISTINCT - ( + 59 )
----
-59

query I rowsort
SELECT DISTINCT 51 - - 12 AS col2
----
63

query I rowsort
SELECT - 95 + + + 44 AS col0
----
-51

query I rowsort
SELECT ALL - - 69 AS col2
----
69

query I rowsort
SELECT 53 * + 17
----
901

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL - + CASE - - MIN( - CASE 49 WHEN - 49 THEN 51 WHEN - + 41 THEN NULL END ) WHEN - 51 + + 30 THEN NULL ELSE - ( - 13 ) - + 66 * 54 END AS col1
----
3551

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL - + CASE - - MIN ( - CASE 49 WHEN - 49 THEN 51 WHEN - + 41 THEN NULL END ) WHEN - 51 + + 30 THEN NULL ELSE - ( - 13 ) - + 66 * 54 END AS col1
----
3551

query I rowsort
SELECT + - 12 * 90 * + 32 + - 1 + + 62 AS col2
----
-34499

query I rowsort
SELECT ALL - 72 * 71
----
-5112

query II rowsort
SELECT ALL - + NULLIF ( - 78, 49 ) AS col0, 87 * - - ( + 89 ) AS col0
----
78
7743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5301
SELECT ALL - + CASE + - 92 WHEN - CASE - + 19 WHEN + + MAX( ALL 57 ) THEN NULL WHEN - 26 + - + 27 THEN NULL ELSE 46 END THEN CAST( NULL AS SIGNED ) * 32 ELSE CASE 66 WHEN + COUNT( * ) / ( NULLIF ( - CASE MAX( + 55 ) WHEN 10 + - COUNT( * ) THEN - 69 * + 88 WHEN + 3 THEN NULL ELSE NULL END, 46 * + NULLIF ( + CAST( CASE 21 WHEN + 34 THEN + 31 WHEN + COUNT( * ) THEN 26 + 28 END AS DECIMAL ) * + AVG ( + 85 ), 13 ) + + COUNT( * ) ) ) - 38 * 89 THEN NULL ELSE 60 END - - 29 END
----
-89

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL - + CASE + - 92 WHEN - CASE - + 19 WHEN + + MAX ( ALL 57 ) THEN NULL WHEN - 26 + - + 27 THEN NULL ELSE 46 END THEN CAST ( NULL AS INTEGER ) * 32 ELSE CASE 66 WHEN + COUNT ( * ) / ( NULLIF ( - CASE MAX ( + 55 ) WHEN 10 + - COUNT ( * ) THEN - 69 * + 88 WHEN + 3 THEN NULL ELSE NULL END, 46 * + NULLIF ( + CAST ( CASE 21 WHEN + 34 THEN + 31 WHEN + COUNT ( * ) THEN 26 + 28 END AS REAL ) * + AVG ( + 85 ), 13 ) + + COUNT ( * ) ) ) - 38 * 89 THEN NULL ELSE 60 END - - 29 END
----
-89

query I rowsort
SELECT DISTINCT - 39 * - 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT + 2 DIV 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5303
SELECT + 2 / 30 AS col2
----
0

query I rowsort
SELECT ALL - 28 * + 58 AS col0
----
-1624

query I rowsort
SELECT DISTINCT - + 76 col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL + COUNT( * ) + 76 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL + COUNT ( * ) + 76 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL 85 * - + 84 * + COUNT( * )
----
-7140

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL 85 * - + 84 * + COUNT ( * )
----
-7140

onlyif mysql # DIV for integer division: 
query I rowsort label-5308
SELECT 56 DIV + + 43 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5308
SELECT 56 / + + 43 AS col2
----
1

query I rowsort
SELECT 91 * - - 29 * - 60
----
-158340

query II rowsort
SELECT 19, ( + 73 ) AS col1
----
19
73

query I rowsort
SELECT ALL + 33 + - - 87 + - 90 + + 34
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5312
SELECT - 89, + COUNT( * ) * + 95 DIV + + ( + SUM( ALL + 51 ) ) + + COUNT( * ) AS col1
----
-89
2

skipif mysql # not compatible
query II rowsort label-5312
SELECT - 89, + COUNT ( * ) * + 95 / + + ( + SUM ( ALL + 51 ) ) + + COUNT ( * ) AS col1
----
-89
2

query I rowsort
SELECT 81 + + NULLIF ( 64, + 60 * + - 15 ) AS col0
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-5314
SELECT ALL 44 AS col2, - COUNT( * ) * - 91
----
44
91

skipif mysql # not compatible
query II rowsort label-5314
SELECT ALL 44 AS col2, - COUNT ( * ) * - 91
----
44
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT ALL 2 + 4 + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL 2 + 4 + COUNT ( * ) AS col2
----
7

query II rowsort
SELECT - 0 AS col0, 64 * + 39 AS col0
----
0
2496

query I rowsort
SELECT DISTINCT - 88 * 94 AS col2
----
-8272

query I rowsort
SELECT ALL + ( 60 ) + - 1 AS col2
----
59

onlyif mysql # DIV for integer division: 
query II rowsort label-5319
SELECT 7 - - + 85 DIV ( - + 14 ), - 53 AS col1
----
1
-53

skipif mysql # not compatible
query II rowsort label-5319
SELECT 7 - - + 85 / ( - + 14 ), - 53 AS col1
----
1
-53

query II rowsort
SELECT ALL 55, - 43 AS col2
----
55
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT 81 + + - 96 - - COUNT( * ) * + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-5321
SELECT 81 + + - 96 - - COUNT ( * ) * + COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT 16 - - COUNT( ALL - + 52 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-5322
SELECT 16 - - COUNT ( ALL - + 52 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL - MIN( DISTINCT 47 ) * + ( + + 24 ) + - + 40
----
-1168

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL - MIN ( DISTINCT 47 ) * + ( + + 24 ) + - + 40
----
-1168

query II rowsort
SELECT 0, 96 * + NULLIF ( + + 65, - 75 ) col2
----
0
6240

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT ALL - CASE AVG ( - 59 ) WHEN + 30 THEN + 71 WHEN 79 + + - 96 + + 75 THEN NULL END * - 82 + - SUM( DISTINCT - - 0 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL - CASE AVG ( - 59 ) WHEN + 30 THEN + 71 WHEN 79 + + - 96 + + 75 THEN NULL END * - 82 + - SUM ( DISTINCT - - 0 ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5326
SELECT 43 AS col1, 60 + - 14 DIV - 24 * + COUNT( * ) AS col0
----
43
60

skipif mysql # not compatible
query II rowsort label-5326
SELECT 43 AS col1, 60 + - 14 / - 24 * + COUNT ( * ) AS col0
----
43
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT ALL SUM( ALL - - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL SUM ( ALL - - 74 )
----
74

query I rowsort
SELECT 6 + + 93
----
99

query I rowsort
SELECT 42 * + 23 * + 93 AS col2
----
89838

query I rowsort
SELECT + 34 + 25 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT ALL - + COALESCE ( CAST( NULL AS SIGNED ), + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL - + COALESCE ( CAST ( NULL AS INTEGER ), + 60 )
----
-60

query I rowsort
SELECT - 56 * - 44 AS col0
----
2464

query II rowsort
SELECT 52 AS col0, + 69 * + 26 AS col0
----
52
1794

query I rowsort
SELECT DISTINCT - 94 * + 29 - - + 44
----
-2682

query I rowsort
SELECT - 84 + 53 AS col1
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5336
SELECT - - 79 * - 28 - + - COUNT( * ) + 37 DIV - + 83
----
-2211

skipif mysql # not compatible
query I rowsort label-5336
SELECT - - 79 * - 28 - + - COUNT ( * ) + 37 / - + 83
----
-2211

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL - - COUNT( DISTINCT - - 90 ) / - CASE 67 WHEN + - 84 + + + ( - 73 ) * + 99 THEN - + 99 WHEN - 49 * 51 * MAX( ALL 17 * + 8 ) THEN NULL END * - 10 + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL - - COUNT ( DISTINCT - - 90 ) / - CASE 67 WHEN + - 84 + + + ( - 73 ) * + 99 THEN - + 99 WHEN - 49 * 51 * MAX ( ALL 17 * + 8 ) THEN NULL END * - 10 + 72
----
NULL

query I rowsort
SELECT - + 4 * 25 - - 50 + 93 + - - 91 AS col1
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-5339
SELECT - ( + 10 ) col1, COUNT( * )
----
-10
1

skipif mysql # not compatible
query II rowsort label-5339
SELECT - ( + 10 ) col1, COUNT ( * )
----
-10
1

query I rowsort
SELECT ALL + + 76 col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5341
SELECT DISTINCT SUM( ALL - CAST( NULL AS SIGNED ) ) * + - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT SUM ( ALL - CAST ( NULL AS INTEGER ) ) * + - 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5342
SELECT - 1 DIV - 20 * + MAX( ALL 83 ) + 21 + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-5342
SELECT - 1 / - 20 * + MAX ( ALL 83 ) + 21 + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5343
SELECT + 73 + 18 + + MAX( DISTINCT + 51 ) DIV - 30
----
90

skipif mysql # not compatible
query I rowsort label-5343
SELECT + 73 + 18 + + MAX ( DISTINCT + 51 ) / - 30
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5344
SELECT ALL - 43 * + 75 + COUNT( * ) + 51 + + 26 - + ( + 95 ) DIV 54
----
-3148

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL - 43 * + 75 + COUNT ( * ) + 51 + + 26 - + ( + 95 ) / 54
----
-3148

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT DISTINCT + NULLIF ( - - COUNT( * ), - 11 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT + NULLIF ( - - COUNT ( * ), - 11 ) AS col2
----
1

query II rowsort
SELECT + - 36 AS col2, 49
----
-36
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT ALL 9 * - CASE COALESCE ( + 9, - 92 + - - COUNT( * ) ) WHEN - 21 * + 18 THEN NULL ELSE + 44 + + - 73 END + + - 0 + + 52 AS col2
----
313

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL 9 * - CASE COALESCE ( + 9, - 92 + - - COUNT ( * ) ) WHEN - 21 * + 18 THEN NULL ELSE + 44 + + - 73 END + + - 0 + + 52 AS col2
----
313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT + - ( CAST( 68 AS SIGNED ) ) + 37 * - ( + 12 ) + + 44 AS col1
----
-468

skipif mysql # not compatible
query I rowsort label-5348
SELECT + - ( CAST ( 68 AS INTEGER ) ) + 37 * - ( + 12 ) + + 44 AS col1
----
-468

query II rowsort
SELECT ALL + + 65, + 83 * - 94 * - 72 AS col1
----
65
561744

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5350
SELECT ALL + 26 AS col0, 57 DIV - COALESCE ( - 76, + - 85 * 79 + 92, 6 ) + 90 + - - 16 - COUNT( - 56 ) * 28
----
26
78

skipif mysql # not compatible
query II rowsort label-5350
SELECT ALL + 26 AS col0, 57 / - COALESCE ( - 76, + - 85 * 79 + 92, 6 ) + 90 + - - 16 - COUNT ( - 56 ) * 28
----
26
78

query I rowsort
SELECT DISTINCT 6 * - 19 * + 87 + 43 AS col1
----
-9875

onlyif mysql # DIV for integer division: 
query I rowsort label-5352
SELECT + 32 DIV 32 col1
----
1

skipif mysql # not compatible
query I rowsort label-5352
SELECT + 32 / 32 col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5353
SELECT COUNT( DISTINCT - 67 ) * 0 * + 30 + + COUNT( * ) + - - 85 + 18 DIV - ( 52 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-5353
SELECT COUNT ( DISTINCT - 67 ) * 0 * + 30 + + COUNT ( * ) + - - 85 + 18 / - ( 52 ) AS col2
----
86

query I rowsort
SELECT + 50 - - + NULLIF ( + + 13, - 28 ) AS col0
----
63

query I rowsort
SELECT ALL 55 * - ( + 83 ) col1
----
-4565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5356
SELECT - CASE - 6 WHEN + + 70 THEN MIN( DISTINCT - + 55 ) * + COUNT( * ) + - 31 * - 80 + 1 ELSE - ( + - ( + ( 33 ) ) ) * 5 - - 6 * COALESCE ( 59, CAST( 49 AS SIGNED ) DIV + ( - 44 ) - + ( COUNT( COALESCE ( + CAST( + 74 AS SIGNED ), 43 + - 75 ) ) - CAST( NULL AS SIGNED ) * + 60 ) ) END
----
-519

skipif mysql # not compatible
query I rowsort label-5356
SELECT - CASE - 6 WHEN + + 70 THEN MIN ( DISTINCT - + 55 ) * + COUNT ( * ) + - 31 * - 80 + 1 ELSE - ( + - ( + ( 33 ) ) ) * 5 - - 6 * COALESCE ( 59, CAST ( 49 AS INTEGER ) / + ( - 44 ) - + ( COUNT ( COALESCE ( + CAST ( + 74 AS INTEGER ), 43 + - 75 ) ) - CAST ( NULL AS INTEGER ) * + 60 ) ) END
----
-519

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5357
SELECT DISTINCT 61 + + - CAST( - CAST( - 12 AS SIGNED ) AS SIGNED ) + - 46 * - 3
----
187

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT 61 + + - CAST ( - CAST ( - 12 AS INTEGER ) AS INTEGER ) + - 46 * - 3
----
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5358
SELECT ALL + ( - 53 ) + - - ( - ( COALESCE ( - 69, - COUNT( * ) * - 31 + - 93, + 86 ) ) ) + + 66 + - - CASE 76 WHEN 94 THEN NULL WHEN - 61 - 56 THEN COALESCE ( + CAST( NULL AS SIGNED ), - 51 * - 48 ) * ( 55 * + 63 ) ELSE - COUNT( * ) END
----
81

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + ( - 53 ) + - - ( - ( COALESCE ( - 69, - COUNT ( * ) * - 31 + - 93, + 86 ) ) ) + + 66 + - - CASE 76 WHEN 94 THEN NULL WHEN - 61 - 56 THEN COALESCE ( + CAST ( NULL AS INTEGER ), - 51 * - 48 ) * ( 55 * + 63 ) ELSE - COUNT ( * ) END
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT + 90 + + - MIN( ALL - - 44 )
----
46

skipif mysql # not compatible
query I rowsort label-5359
SELECT + 90 + + - MIN ( ALL - - 44 )
----
46

query I rowsort
SELECT DISTINCT 54 * - + 92 AS col0
----
-4968

query I rowsort
SELECT + 66 + + 98
----
164

query I rowsort
SELECT DISTINCT 56 col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-5363
SELECT ALL 48 - + - COUNT( ALL - 50 ), - COUNT( * ) AS col0
----
49
-1

skipif mysql # not compatible
query II rowsort label-5363
SELECT ALL 48 - + - COUNT ( ALL - 50 ), - COUNT ( * ) AS col0
----
49
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5364
SELECT ALL SUM( - 37 ), MAX( ALL 48 ) + 39 AS col2
----
-37
87

skipif mysql # not compatible
query II rowsort label-5364
SELECT ALL SUM ( - 37 ), MAX ( ALL 48 ) + 39 AS col2
----
-37
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5365
SELECT + 30 DIV COUNT( ALL - 61 )
----
30

skipif mysql # not compatible
query I rowsort label-5365
SELECT + 30 / COUNT ( ALL - 61 )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT - 36 / - CASE + CAST( + + 77 AS SIGNED ) WHEN - 1 + 71 THEN NULL WHEN + + 89 THEN + + CAST( - 45 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT - 36 / - CASE + CAST ( + + 77 AS INTEGER ) WHEN - 1 + 71 THEN NULL WHEN + + 89 THEN + + CAST ( - 45 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5367
SELECT ALL + COUNT( * ) DIV 23
----
0

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL + COUNT ( * ) / 23
----
0

query I rowsort
SELECT + 48 + - ( - 82 )
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT ALL COALESCE ( - 80, + + 37 * 85 - - - CAST( NULL AS SIGNED ) + + 77 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL COALESCE ( - 80, + + 37 * 85 - - - CAST ( NULL AS INTEGER ) + + 77 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT - ( - CASE + 48 WHEN ( COUNT( * ) ) THEN NULL ELSE - 47 END ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-5370
SELECT - ( - CASE + 48 WHEN ( COUNT ( * ) ) THEN NULL ELSE - 47 END ) AS col0
----
-47

query I rowsort
SELECT DISTINCT COALESCE ( - CASE - + 73 WHEN + - ( 74 ) * 69 THEN 95 ELSE NULL END, - + 94 * + 51 ) col2
----
-4794

query I rowsort
SELECT ALL ( - 12 )
----
-12

query I rowsort
SELECT ALL - 99 * - 85 * + 95 * - 90
----
-71948250

query I rowsort
SELECT - 54 * + - 64
----
3456

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5375
SELECT - + CAST( NULL AS DECIMAL ) * 14 * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT - + CAST ( NULL AS REAL ) * 14 * - 64
----
NULL

query I rowsort
SELECT COALESCE ( - 39, + 44 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT - - NULLIF ( + 99, + 63 + CASE - COUNT( * ) WHEN - 90 + - 33 / + 1 * 58 / + 64 / + 51 + + ( + 72 ) + - 6 * - 51 THEN NULL WHEN - 52 THEN 69 / 79 END ) * 19 - + 77 * - 97 AS col1
----
9350

skipif mysql # not compatible
query I rowsort label-5377
SELECT - - NULLIF ( + 99, + 63 + CASE - COUNT ( * ) WHEN - 90 + - 33 / + 1 * 58 / + 64 / + 51 + + ( + 72 ) + - 6 * - 51 THEN NULL WHEN - 52 THEN 69 / 79 END ) * 19 - + 77 * - 97 AS col1
----
9350

onlyif mysql # DIV for integer division: 
query I rowsort label-5378
SELECT ALL - 97 DIV - ( - 88 ) + + 53 + - 1 - + ( - 65 )
----
116

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL - 97 / - ( - 88 ) + + 53 + - 1 - + ( - 65 )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT ALL + 96 * + ( + COUNT( * ) ) * - - 71 + - 28 - - + 0 + ( + ( + - 27 ) ) - 92 AS col1
----
6669

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL + 96 * + ( + COUNT ( * ) ) * - - 71 + - 28 - - + 0 + ( + ( + - 27 ) ) - 92 AS col1
----
6669

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5380
SELECT - NULLIF ( - 99, - 43 DIV + - 33 + COUNT( * ) + - 28 + - COUNT( * ) ) DIV COUNT( 99 ) * - + 4
----
-396

skipif mysql # not compatible
query I rowsort label-5380
SELECT - NULLIF ( - 99, - 43 / + - 33 + COUNT ( * ) + - 28 + - COUNT ( * ) ) / COUNT ( 99 ) * - + 4
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT ALL 15 * - COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL 15 * - COUNT ( * ) AS col2
----
-15

query I rowsort
SELECT ALL 40 * + 32 * - 83 + 45
----
-106195

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT + COUNT( ALL + CASE - - 91 WHEN - + 0 THEN NULL ELSE - 26 END )
----
1

skipif mysql # not compatible
query I rowsort label-5383
SELECT + COUNT ( ALL + CASE - - 91 WHEN - + 0 THEN NULL ELSE - 26 END )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5384
SELECT ALL 46 * - COUNT( DISTINCT - 75 ) DIV + 66 + + 47 * - ( - - SUM( - 76 ) ) + 15 + + + 88
----
3675

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL 46 * - COUNT ( DISTINCT - 75 ) / + 66 + + 47 * - ( - - SUM ( - 76 ) ) + 15 + + + 88
----
3675

query I rowsort
SELECT ALL - 61 * 95 + 96 AS col1
----
-5699

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5386
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5386
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * )
----
NULL
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5387
SELECT ALL + COALESCE ( - + ( COUNT( * ) ), + - 71 ) * + ( - 35 ) + - CAST( 68 AS SIGNED ), 59 AS col1
----
-33
59

skipif mysql # not compatible
query II rowsort label-5387
SELECT ALL + COALESCE ( - + ( COUNT ( * ) ), + - 71 ) * + ( - 35 ) + - CAST ( 68 AS INTEGER ), 59 AS col1
----
-33
59

query I rowsort
SELECT + 90 * + 20 AS col0
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT ALL - COUNT( + 10 ) * + - 78 * + 27 * - 13 AS col1
----
-27378

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - COUNT ( + 10 ) * + - 78 * + 27 * - 13 AS col1
----
-27378

query II rowsort
SELECT + 70 * - 0 + + 81 AS col2, 84 AS col0
----
81
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT - COUNT( DISTINCT - 66 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5391
SELECT - COUNT ( DISTINCT - 66 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT COUNT( 85 )
----
1

skipif mysql # not compatible
query I rowsort label-5392
SELECT COUNT ( 85 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT - CAST( 53 AS SIGNED ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-5393
SELECT - CAST ( 53 AS INTEGER ) AS col1
----
-53

query I rowsort
SELECT + 60 * - + 18 col0
----
-1080

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5395
SELECT - CAST( NULL AS SIGNED ), 51 AS col2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-5395
SELECT - CAST ( NULL AS INTEGER ), 51 AS col2
----
NULL
51

query I rowsort
SELECT + 30 + + - 86 + + 55 + ( + 69 ) + + 94
----
162

query I rowsort
SELECT + 24 * + 72
----
1728

query I rowsort
SELECT + 83 + - + 22
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5399
SELECT DISTINCT COALESCE ( + + 35, - COUNT( * ) ) - 63 DIV + 24
----
33

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT COALESCE ( + + 35, - COUNT ( * ) ) - 63 / + 24
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT + + 23 - + + NULLIF ( NULLIF ( - 39, + 79 + + + NULLIF ( 51, COALESCE ( - MIN( - 63 ), 92 + - 39 ) * - - 24 ) ), - MIN( + 6 ) / + ( - 80 * 28 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5400
SELECT + + 23 - + + NULLIF ( NULLIF ( - 39, + 79 + + + NULLIF ( 51, COALESCE ( - MIN ( - 63 ), 92 + - 39 ) * - - 24 ) ), - MIN ( + 6 ) / + ( - 80 * 28 ) ) AS col0
----
62

query I rowsort
SELECT ALL + 17 * - 85
----
-1445

query I rowsort
SELECT - 78 * + 25
----
-1950

onlyif mysql # aggregate syntax: 
query II rowsort label-5403
SELECT - 48 * MIN( - + 48 ), SUM( 93 ) AS col1
----
2304
93

skipif mysql # not compatible
query II rowsort label-5403
SELECT - 48 * MIN ( - + 48 ), SUM ( 93 ) AS col1
----
2304
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT 58 * - - ( - COALESCE ( - + COUNT( * ), - + 62 * + 78 * - COALESCE ( + 54, 55 + + 99 ) ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5404
SELECT 58 * - - ( - COALESCE ( - + COUNT ( * ), - + 62 * + 78 * - COALESCE ( + 54, 55 + + 99 ) ) ) AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5405
SELECT ( + - 16 ) + + 32 - + ( + 42 ) * - CAST( - 44 AS SIGNED ) AS col0
----
-1832

skipif mysql # not compatible
query I rowsort label-5405
SELECT ( + - 16 ) + + 32 - + ( + 42 ) * - CAST ( - 44 AS INTEGER ) AS col0
----
-1832

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT 48 DIV + + 8
----
6

skipif mysql # not compatible
query I rowsort label-5406
SELECT 48 / + + 8
----
6

query I rowsort
SELECT + 14 * 24
----
336

query I rowsort
SELECT 51 + 72 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT + ( 80 ) * + 34 * 40 * + 42 - - COUNT( * ) AS col1
----
4569601

skipif mysql # not compatible
query I rowsort label-5409
SELECT + ( 80 ) * + 34 * 40 * + 42 - - COUNT ( * ) AS col1
----
4569601

query I rowsort
SELECT ALL + 65 + + 37 AS col1
----
102

query II rowsort
SELECT - 37, - 16 AS col1
----
-37
-16

query I rowsort
SELECT ALL - - 55 + + - 30 AS col0
----
25

query I rowsort
SELECT + + ( 98 ) AS col0
----
98

query I rowsort
SELECT ALL + 16 + - 50
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT - 64 * - COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5415
SELECT - 64 * - COUNT ( * ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ( + 13 ) + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-5416
SELECT ( + 13 ) + + COUNT ( * )
----
14

query I rowsort
SELECT + - 50 AS col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5418
SELECT ALL CAST( NULL AS SIGNED ) + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL CAST ( NULL AS INTEGER ) + 27
----
NULL

query II rowsort
SELECT + 21 col1, - 34 + - 74 AS col0
----
21
-108

query I rowsort
SELECT + - 84 * + 91 + - 83 AS col1
----
-7727

query II rowsort
SELECT + 60 AS col2, 96 AS col1
----
60
96

query II rowsort
SELECT 23 AS col2, 88 + + 92
----
23
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5423
SELECT - COUNT( * ) * + + 72 DIV - 45 + + ( + 20 ) + - - ( ( - + 75 ) ) * - 91 + - 28 - + ( + 69 ) * + 2 + + 6 AS col1
----
6686

skipif mysql # not compatible
query I rowsort label-5423
SELECT - COUNT ( * ) * + + 72 / - 45 + + ( + 20 ) + - - ( ( - + 75 ) ) * - 91 + - 28 - + ( + 69 ) * + 2 + + 6 AS col1
----
6686

onlyif mysql # aggregate syntax: 
query II rowsort label-5424
SELECT ALL - NULLIF ( - MIN( ALL + 14 ), ( + + COUNT( * ) ) * - + ( - 97 ) + + 44 * + COUNT( * ) ), - 46 + - 5 AS col2
----
14
-51

skipif mysql # not compatible
query II rowsort label-5424
SELECT ALL - NULLIF ( - MIN ( ALL + 14 ), ( + + COUNT ( * ) ) * - + ( - 97 ) + + 44 * + COUNT ( * ) ), - 46 + - 5 AS col2
----
14
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5425
SELECT 82 + - + 65 + - - COALESCE ( + - COUNT( * ), 48, CASE - 51 WHEN 54 * - 55 THEN - 56 WHEN - - 3 / 11 + - + CAST( - + 89 AS SIGNED ) THEN NULL END ) col2
----
16

skipif mysql # not compatible
query I rowsort label-5425
SELECT 82 + - + 65 + - - COALESCE ( + - COUNT ( * ), 48, CASE - 51 WHEN 54 * - 55 THEN - 56 WHEN - - 3 / 11 + - + CAST ( - + 89 AS INTEGER ) THEN NULL END ) col2
----
16

query I rowsort
SELECT ALL 26 + - 45
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5427
SELECT 91 + + ( + 2 ) DIV + 8 + 25 col2
----
116

skipif mysql # not compatible
query I rowsort label-5427
SELECT 91 + + ( + 2 ) / + 8 + 25 col2
----
116

query I rowsort
SELECT ALL - 1 - 98 AS col0
----
-99

query I rowsort
SELECT 97 + - + 98 + + - 58 AS col2
----
-59

query I rowsort
SELECT DISTINCT - ( + + 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT ALL - COUNT( * ) - + + 42
----
-43

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - COUNT ( * ) - + + 42
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5432
SELECT NULLIF ( + - CAST( CAST( + + 26 AS SIGNED ) AS SIGNED ), - 49 * + 36 + + + 59 + - 31 * + CASE + - COUNT( * ) WHEN ( + 49 ) THEN + + CAST( 99 AS SIGNED ) - ( + 93 + - 49 ) * + CASE + 2 WHEN - 69 + - ( - 83 ) THEN - ( + 28 ) ELSE + 5 END ELSE NULL END * ( + 44 ) ) + 7
----
-19

skipif mysql # not compatible
query I rowsort label-5432
SELECT NULLIF ( + - CAST ( CAST ( + + 26 AS INTEGER ) AS INTEGER ), - 49 * + 36 + + + 59 + - 31 * + CASE + - COUNT ( * ) WHEN ( + 49 ) THEN + + CAST ( 99 AS INTEGER ) - ( + 93 + - 49 ) * + CASE + 2 WHEN - 69 + - ( - 83 ) THEN - ( + 28 ) ELSE + 5 END ELSE NULL END * ( + 44 ) ) + 7
----
-19

query I rowsort
SELECT 97 + + 78 AS col1
----
175

onlyif mysql # aggregate syntax: 
query III rowsort label-5434
SELECT - 47 * - - COUNT( * ) * 49 + 78, + 40 AS col0, - 2 AS col1
----
-2225
40
-2

skipif mysql # not compatible
query III rowsort label-5434
SELECT - 47 * - - COUNT ( * ) * 49 + 78, + 40 AS col0, - 2 AS col1
----
-2225
40
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5435
SELECT COUNT( * ) + + + 10 AS col1, 63
----
11
63

skipif mysql # not compatible
query II rowsort label-5435
SELECT COUNT ( * ) + + + 10 AS col1, 63
----
11
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5436
SELECT 22 DIV - MIN( - 80 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5436
SELECT 22 / - MIN ( - 80 ) AS col0
----
0

query I rowsort
SELECT ALL + 66 * - 54
----
-3564

query I rowsort
SELECT 41 + + 43 + 58 AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT DISTINCT + COUNT( * ) * + - 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT + COUNT ( * ) * + - 20 AS col2
----
-20

query I rowsort
SELECT - 45 * + + 88 + 57 + - + 60 + 74 + - 48 + + 66 AS col2
----
-3871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5441
SELECT 86 + + COALESCE ( COUNT( 16 ), - 63, + 72 + + - 39 DIV + - CAST( - - COUNT( ALL - 62 ) AS SIGNED ) ) col2
----
87

skipif mysql # not compatible
query I rowsort label-5441
SELECT 86 + + COALESCE ( COUNT ( 16 ), - 63, + 72 + + - 39 / + - CAST ( - - COUNT ( ALL - 62 ) AS INTEGER ) ) col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5442
SELECT CAST( NULL AS DECIMAL ) + COALESCE ( + 93, - ( + 42 ) * ( + + SUM( DISTINCT 63 ) ) * 6 + - ( - 54 ) ) - - 38 * - - 95 * 13 + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT CAST ( NULL AS REAL ) + COALESCE ( + 93, - ( + 42 ) * ( + + SUM ( DISTINCT 63 ) ) * 6 + - ( - 54 ) ) - - 38 * - - 95 * 13 + 30 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5443
SELECT ALL - 5 DIV - 4 AS col1, 61 * + - 36 AS col0
----
1
-2196

skipif mysql # not compatible
query II rowsort label-5443
SELECT ALL - 5 / - 4 AS col1, 61 * + - 36 AS col0
----
1
-2196

query I rowsort
SELECT + 12 + - 68
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5445
SELECT DISTINCT 51 + + 87 * CAST( NULL AS SIGNED ) * + COUNT( + - 15 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT 51 + + 87 * CAST ( NULL AS INTEGER ) * + COUNT ( + - 15 ) AS col1
----
NULL

query I rowsort
SELECT ALL 65 + + NULLIF ( - 47, + + COALESCE ( - CASE 33 WHEN + 41 THEN - 15 ELSE NULL END, 19, 80 ) ) AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5447
SELECT ALL - ( - 66 ) + + CASE + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) WHEN + 50 THEN 6 * 67 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL - ( - 66 ) + + CASE + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) WHEN + 50 THEN 6 * 67 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 86 + + - 15
----
71

query I rowsort
SELECT - + 88 AS col0
----
-88

query I rowsort
SELECT - - 76 AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT ALL - 53 + + + ( - 20 ) DIV - NULLIF ( + + 82, + - ( - 19 ) + + 12 )
----
-53

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL - 53 + + + ( - 20 ) / - NULLIF ( + + 82, + - ( - 19 ) + + 12 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5452
SELECT ALL COALESCE ( + 15, - ( 10 ) + - 61 DIV + COUNT( * ), - CAST( NULL AS SIGNED ) ) * 71 AS col0
----
1065

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL COALESCE ( + 15, - ( 10 ) + - 61 / + COUNT ( * ), - CAST ( NULL AS INTEGER ) ) * 71 AS col0
----
1065

query I rowsort
SELECT DISTINCT - + 54 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT + COALESCE ( - 22, - MAX( - 85 ) ) * - - 92
----
-2024

skipif mysql # not compatible
query I rowsort label-5454
SELECT + COALESCE ( - 22, - MAX ( - 85 ) ) * - - 92
----
-2024

onlyif mysql # DIV for integer division: 
query I rowsort label-5455
SELECT ALL + 29 DIV - 81 + + 10 + - - 23
----
33

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL + 29 / - 81 + + 10 + - - 23
----
33

query I rowsort
SELECT DISTINCT - - 76 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT ALL - - 58 * - MIN( - 76 ) - + - 65 * + + ( + COUNT( ALL - + 45 ) ) AS col0
----
4473

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL - - 58 * - MIN ( - 76 ) - + - 65 * + + ( + COUNT ( ALL - + 45 ) ) AS col0
----
4473

query I rowsort
SELECT DISTINCT - - 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT DISTINCT - CASE - 87 WHEN - NULLIF ( + 86, + - COUNT( * ) ) * - - 43 * - + 27 * - 23 * + 74 / - 38 + + 11 - + COUNT( * ) * - COUNT( + 94 ) + + + 72 THEN - 66 + + 58 ELSE 51 * 9 - COALESCE ( 8, + 85 ) END
----
-451

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT - CASE - 87 WHEN - NULLIF ( + 86, + - COUNT ( * ) ) * - - 43 * - + 27 * - 23 * + 74 / - 38 + + 11 - + COUNT ( * ) * - COUNT ( + 94 ) + + + 72 THEN - 66 + + 58 ELSE 51 * 9 - COALESCE ( 8, + 85 ) END
----
-451

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5460
SELECT 10 * - + 5 DIV + SUM( ALL - 66 )
----
0

skipif mysql # not compatible
query I rowsort label-5460
SELECT 10 * - + 5 / + SUM ( ALL - 66 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL - SUM( DISTINCT - 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL - SUM ( DISTINCT - 77 ) AS col2
----
77

query I rowsort
SELECT ( 7 ) * - 60 + + 98
----
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT MAX( ALL + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-5463
SELECT MAX ( ALL + 10 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT CAST( NULL AS SIGNED ) * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT CAST ( NULL AS INTEGER ) * + 64
----
NULL

query I rowsort
SELECT 36 * 7 col0
----
252

query I rowsort
SELECT ALL + 43 * + - 12
----
-516

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT COUNT( - - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-5467
SELECT COUNT ( - - 48 )
----
1

query I rowsort
SELECT DISTINCT - ( + 5 ) AS col1
----
-5

query I rowsort
SELECT 71 * 19 * 74 - + 50
----
99776

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT ALL - SUM( ALL - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL - SUM ( ALL - 60 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5471
SELECT 80 * - 55 + + 24 AS col0, CAST( NULL AS SIGNED ) * 99 + + 14 AS col2
----
-4376
NULL

skipif mysql # not compatible
query II rowsort label-5471
SELECT 80 * - 55 + + 24 AS col0, CAST ( NULL AS INTEGER ) * 99 + + 14 AS col2
----
-4376
NULL

query I rowsort
SELECT - 53 * NULLIF ( + 61, - - 67 ) AS col1
----
-3233

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT DISTINCT COUNT( 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT COUNT ( 68 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5474
SELECT - 55 * + + ( - 84 ) * 73 * NULLIF ( 71, + 53 * - + 1 * + 16 ) + + 51 AS col1, COUNT( * ) AS col0, - COALESCE ( - NULLIF ( 40, - + 93 ), - 80 DIV - 4 ) * - 86 + ( 45 )
----
23945511
1
-3395

skipif mysql # not compatible
query III rowsort label-5474
SELECT - 55 * + + ( - 84 ) * 73 * NULLIF ( 71, + 53 * - + 1 * + 16 ) + + 51 AS col1, COUNT ( * ) AS col0, - COALESCE ( - NULLIF ( 40, - + 93 ), - 80 / - 4 ) * - 86 + ( 45 )
----
23945511
1
-3395

query I rowsort
SELECT - ( ( - - ( - 14 ) ) ) col0
----
14

query I rowsort
SELECT ALL - - 76 + 21 AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5477
SELECT - + CAST( NULL AS SIGNED ) + - + 60 / - ( 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT - + CAST ( NULL AS INTEGER ) + - + 60 / - ( 15 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5478
SELECT DISTINCT + 76 + - 63 + - + 95 + - CAST( + 44 AS SIGNED ) AS col0, + 2
----
-126
2

skipif mysql # not compatible
query II rowsort label-5478
SELECT DISTINCT + 76 + - 63 + - + 95 + - CAST ( + 44 AS INTEGER ) AS col0, + 2
----
-126
2

query I rowsort
SELECT - - 71 + 59 * + 70 - 42
----
4159

query I rowsort
SELECT ALL + 60 * - + 76 * + NULLIF ( - - 74, - + 78 / - 78 + + + 56 * + 33 / 71 )
----
-337440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5481
SELECT DISTINCT + ( COALESCE ( - - 2, COUNT( ALL + 9 ) DIV - 9 ) ) + - + 14 + + 98 AS col1, 2 AS col0
----
86
2

skipif mysql # not compatible
query II rowsort label-5481
SELECT DISTINCT + ( COALESCE ( - - 2, COUNT ( ALL + 9 ) / - 9 ) ) + - + 14 + + 98 AS col1, 2 AS col0
----
86
2

query II rowsort
SELECT DISTINCT - 57 + 4 + 89 col0, 31
----
36
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5483
SELECT CASE - 74 WHEN - 59 THEN NULL WHEN + 52 * + 77 THEN + CAST( + CAST( + 53 AS SIGNED ) AS SIGNED ) + - 36 + + + 2 * - - 17 END, COUNT( * ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5483
SELECT CASE - 74 WHEN - 59 THEN NULL WHEN + 52 * + 77 THEN + CAST ( + CAST ( + 53 AS INTEGER ) AS INTEGER ) + - 36 + + + 2 * - - 17 END, COUNT ( * ) col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT - - CASE - 70 WHEN 20 / 81 * + 31 / + 55 / + 18 - + 38 THEN NULL WHEN - - 73 THEN NULL WHEN + - ( 99 ) * - - COUNT( * ) - - 82 + - 60 * - 98 THEN - 18 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5484
SELECT - - CASE - 70 WHEN 20 / 81 * + 31 / + 55 / + 18 - + 38 THEN NULL WHEN - - 73 THEN NULL WHEN + - ( 99 ) * - - COUNT ( * ) - - 82 + - 60 * - 98 THEN - 18 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 24 + - 13 + - - 19 + + + 75 AS col2
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5486
SELECT DISTINCT 27 AS col0, - 74 - - COUNT( * ) + 81 * COALESCE ( 36, - COUNT( DISTINCT + + 66 ) ) AS col0
----
27
2843

skipif mysql # not compatible
query II rowsort label-5486
SELECT DISTINCT 27 AS col0, - 74 - - COUNT ( * ) + 81 * COALESCE ( 36, - COUNT ( DISTINCT + + 66 ) ) AS col0
----
27
2843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5487
SELECT - + 44 * - CAST( ( - - COUNT( * ) ) AS SIGNED ) DIV - - 90 * COUNT( * ) * + + 98
----
0

skipif mysql # not compatible
query I rowsort label-5487
SELECT - + 44 * - CAST ( ( - - COUNT ( * ) ) AS INTEGER ) / - - 90 * COUNT ( * ) * + + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT - - 69 + + 32 + + + 12 + + MAX( DISTINCT + 72 ) AS col2
----
185

skipif mysql # not compatible
query I rowsort label-5488
SELECT - - 69 + + 32 + + + 12 + + MAX ( DISTINCT + 72 ) AS col2
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5489
SELECT DISTINCT + NULLIF ( - 76, + + COUNT( ALL - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) * 79 AS col0
----
-6004

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT + NULLIF ( - 76, + + COUNT ( ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) * 79 AS col0
----
-6004

onlyif mysql # DIV for integer division: 
query I rowsort label-5490
SELECT DISTINCT 65 - 86 + + 85 DIV + 51
----
-20

skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT 65 - 86 + + 85 / + 51
----
-20

query I rowsort
SELECT ALL 69 * + 39
----
2691

query I rowsort
SELECT + 39 * + 57
----
2223

query I rowsort
SELECT ALL + - 15 * - 65 + + + 27 - + + 52 AS col2
----
950

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT + ( - COALESCE ( + - ( + - 95 ), + 9 ) ) * - COUNT( DISTINCT + - 7 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + ( - COALESCE ( + - ( + - 95 ), + 9 ) ) * - COUNT ( DISTINCT + - 7 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5495
SELECT DISTINCT 71 * COUNT( 94 ) * - 63 - + 61 * 56 AS col2, 5 * 2
----
-7889
10

skipif mysql # not compatible
query II rowsort label-5495
SELECT DISTINCT 71 * COUNT ( 94 ) * - 63 - + 61 * 56 AS col2, 5 * 2
----
-7889
10

query I rowsort
SELECT + NULLIF ( - 33, + 97 )
----
-33

query I rowsort
SELECT ALL 73 * 62
----
4526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5498
SELECT ALL COALESCE ( - 4, - + NULLIF ( - 80, + + 35 + + - CAST( 97 AS SIGNED ) - CASE - 77 WHEN + + COUNT( * ) THEN NULL WHEN + - 19 - - CAST( NULL AS SIGNED ) + ( CASE WHEN NOT NULL IN ( 20 ) THEN + 63 * + MAX( 66 ) ELSE NULL END ) + 25 THEN NULL ELSE - 88 / 28 END / 2 * - SUM( DISTINCT ( - 23 ) ) ) ) * ( 94 ) AS col2
----
-376

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL COALESCE ( - 4, - + NULLIF ( - 80, + + 35 + + - CAST ( 97 AS INTEGER ) - CASE - 77 WHEN + + COUNT ( * ) THEN NULL WHEN + - 19 - - CAST ( NULL AS INTEGER ) + ( CASE WHEN NOT NULL IN ( 20 ) THEN + 63 * + MAX ( 66 ) ELSE NULL END ) + 25 THEN NULL ELSE - 88 / 28 END / 2 * - SUM ( DISTINCT ( - 23 ) ) ) ) * ( 94 ) AS col2
----
-376

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + COUNT( + 41 )
----
1

skipif mysql # not compatible
query I rowsort label-5499
SELECT + COUNT ( + 41 )
----
1

query I rowsort
SELECT ( + + ( - 67 ) ) AS col0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5501
SELECT + 14 DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5501
SELECT + 14 / + 99 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT + 20 * - COUNT( - + 93 )
----
-20

skipif mysql # not compatible
query I rowsort label-5502
SELECT + 20 * - COUNT ( - + 93 )
----
-20

query I rowsort
SELECT 75 * - 44 + 31
----
-3269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5504
SELECT ALL COUNT( DISTINCT + 81 ) * CAST( + CAST( + NULLIF ( 64, - 67 ) AS SIGNED ) AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL COUNT ( DISTINCT + 81 ) * CAST ( + CAST ( + NULLIF ( 64, - 67 ) AS INTEGER ) AS INTEGER )
----
64

query I rowsort
SELECT + 8 + 30 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL + 75 * - - 46 + 2 * MIN( + 4 )
----
3458

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL + 75 * - - 46 + 2 * MIN ( + 4 )
----
3458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5507
SELECT + 1 + + 95 - - 5 + + - 49 + + CASE 32 WHEN - 81 THEN + + 90 WHEN - 46 / 13 + + 1 + - 31 + - 92 THEN CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) END * - COALESCE ( 96, 4 * + MIN( - 15 * 38 ) + + 84 ) * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5507
SELECT + 1 + + 95 - - 5 + + - 49 + + CASE 32 WHEN - 81 THEN + + 90 WHEN - 46 / 13 + + 1 + - 31 + - 92 THEN CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) END * - COALESCE ( 96, 4 * + MIN ( - 15 * 38 ) + + 84 ) * + 90
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5508
SELECT + 60 * - 13, + NULLIF ( COUNT( * ), + ( 77 ) ) col2
----
-780
1

skipif mysql # not compatible
query II rowsort label-5508
SELECT + 60 * - 13, + NULLIF ( COUNT ( * ), + ( 77 ) ) col2
----
-780
1

query I rowsort
SELECT ALL 45 * 60 + 25
----
2725

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5510
SELECT ALL + 77 AS col1, - CAST( + + 44 AS SIGNED ) col0
----
77
-44

skipif mysql # not compatible
query II rowsort label-5510
SELECT ALL + 77 AS col1, - CAST ( + + 44 AS INTEGER ) col0
----
77
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5511
SELECT + NULLIF ( + ( + COUNT( ALL 60 ) ), CAST( NULL AS SIGNED ) * AVG ( - - 63 ) + 52 * 85 ), + COUNT( * ) * + CASE - CAST( NULL AS SIGNED ) WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN + + 4 THEN NULL WHEN - - 71 * 82 - - 76 THEN 59 ELSE 83 END + + MIN( ALL 98 ) AS col1
----
1
181

skipif mysql # not compatible
query II rowsort label-5511
SELECT + NULLIF ( + ( + COUNT ( ALL 60 ) ), CAST ( NULL AS INTEGER ) * AVG ( - - 63 ) + 52 * 85 ), + COUNT ( * ) * + CASE - CAST ( NULL AS INTEGER ) WHEN CAST ( NULL AS REAL ) THEN NULL WHEN + + 4 THEN NULL WHEN - - 71 * 82 - - 76 THEN 59 ELSE 83 END + + MIN ( ALL 98 ) AS col1
----
1
181

query I rowsort
SELECT CASE - 90 WHEN + 64 THEN 25 ELSE + 83 END AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL + ( - COUNT( * ) ) * - 92 * + 93 + - - 78
----
8634

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + ( - COUNT ( * ) ) * - 92 * + 93 + - - 78
----
8634

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT CASE - 64 WHEN - - 58 THEN 96 * - - NULLIF ( 2, - 58 ) + - COUNT( 95 ) + - SUM( DISTINCT ( - 93 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT CASE - 64 WHEN - - 58 THEN 96 * - - NULLIF ( 2, - 58 ) + - COUNT ( 95 ) + - SUM ( DISTINCT ( - 93 ) ) END
----
NULL

query I rowsort
SELECT + ( - 79 ) AS col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5516
SELECT ALL 53 * CAST( - SUM( DISTINCT + 55 ) AS SIGNED ) DIV + 70 + 86 * - COUNT( * ) - + - 91 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL 53 * CAST ( - SUM ( DISTINCT + 55 ) AS INTEGER ) / + 70 + 86 * - COUNT ( * ) - + - 91 AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5517
SELECT ALL 88 * - CAST( NULL AS SIGNED ) + + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL 88 * - CAST ( NULL AS INTEGER ) + + + 99
----
NULL

query I rowsort
SELECT + ( 6 )
----
6

query I rowsort
SELECT ALL - 32 * - 77 + + - 49
----
2415

query I rowsort
SELECT DISTINCT - 11 * - + 96
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT + 85 * + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-5521
SELECT + 85 * + COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL - CASE 12 WHEN + 2 THEN 14 - + ( COUNT( * ) ) END * 92 + 98 + MIN( DISTINCT + 39 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL - CASE 12 WHEN + 2 THEN 14 - + ( COUNT ( * ) ) END * 92 + 98 + MIN ( DISTINCT + 39 ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( - 10 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5524
SELECT ALL - + 48 + + 5 * - + MIN( ALL - 34 ) + + - NULLIF ( COALESCE ( + 58, COUNT( * ) DIV - AVG ( ALL 51 ) * + - COUNT( * ) + + 18 + + - 96 + - 51 + + 35 * + 99 + COUNT( * ) ), - 58 ) + ( 52 )
----
116

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL - + 48 + + 5 * - + MIN ( ALL - 34 ) + + - NULLIF ( COALESCE ( + 58, COUNT ( * ) / - AVG ( ALL 51 ) * + - COUNT ( * ) + + 18 + + - 96 + - 51 + + 35 * + 99 + COUNT ( * ) ), - 58 ) + ( 52 )
----
116

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5525
SELECT - - 34 + + - CAST( NULL AS DECIMAL ) + - CAST( - + 34 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT - - 34 + + - CAST ( NULL AS REAL ) + - CAST ( - + 34 AS INTEGER )
----
NULL

query II rowsort
SELECT - + 59 + + 9 AS col1, + 44
----
-50
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT ALL - + 31 * - - COUNT( * ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL - + 31 * - - COUNT ( * ) col1
----
-31

query I rowsort
SELECT - + 98 * + + 62 * - 51 * - 1 * - + 3
----
929628

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT DISTINCT - 35 DIV + + 32 - + - 45 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT - 35 / + + 32 - + - 45 AS col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5531
SELECT + 29 AS col2, COUNT( * )
----
29
1

skipif mysql # not compatible
query II rowsort label-5531
SELECT + 29 AS col2, COUNT ( * )
----
29
1

query I rowsort
SELECT - 23 * 98 AS col0
----
-2254

query I rowsort
SELECT ALL + + 39 * - 27 AS col0
----
-1053

onlyif mysql # aggregate syntax: 
query II rowsort label-5534
SELECT ALL + 87 AS col0, - COUNT( * )
----
87
-1

skipif mysql # not compatible
query II rowsort label-5534
SELECT ALL + 87 AS col0, - COUNT ( * )
----
87
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT - 37 * COUNT( * ) + + - 66 + + 90 + + 75 * - 32 AS col2
----
-2413

skipif mysql # not compatible
query I rowsort label-5535
SELECT - 37 * COUNT ( * ) + + - 66 + + 90 + + 75 * - 32 AS col2
----
-2413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5536
SELECT - - 16 + - CAST( 60 AS SIGNED ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-5536
SELECT - - 16 + - CAST ( 60 AS INTEGER ) AS col1
----
-44

query I rowsort
SELECT DISTINCT - - 27 * + - 47 AS col0
----
-1269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT ALL - CASE + 32 WHEN - - 56 + + 68 THEN - ( - ( 85 ) ) WHEN - - ( - CAST( NULL AS SIGNED ) ) THEN - 34 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL - CASE + 32 WHEN - - 56 + + 68 THEN - ( - ( 85 ) ) WHEN - - ( - CAST ( NULL AS INTEGER ) ) THEN - 34 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT - + ( + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5539
SELECT - + ( + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT - 38 * + 74 AS col0
----
-2812

query I rowsort
SELECT DISTINCT + 74 AS col0
----
74

query I rowsort
SELECT DISTINCT + ( 21 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT ALL COUNT( * ) * + 72 * CASE + - 96 WHEN 38 - 62 THEN + ( - CASE + 4 WHEN 77 - 46 THEN - - MIN( - 61 ) END ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL COUNT ( * ) * + 72 * CASE + - 96 WHEN 38 - 62 THEN + ( - CASE + 4 WHEN 77 - 46 THEN - - MIN ( - 61 ) END ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5544
SELECT + CASE 80 WHEN + 57 THEN + 99 + - - CAST( NULL AS SIGNED ) END, 62 AS col1
----
NULL
62

skipif mysql # not compatible
query II rowsort label-5544
SELECT + CASE 80 WHEN + 57 THEN + 99 + - - CAST ( NULL AS INTEGER ) END, 62 AS col1
----
NULL
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5545
SELECT ALL + COALESCE ( - - COUNT( * ), + 3 * - COUNT( * ) + + + 61 * + + 84 ) DIV 62 + - 6 + ( - MAX( DISTINCT - + 90 ) ) - + 0 DIV - MAX( DISTINCT - - NULLIF ( + 69, - 33 * - 45 * + 42 - 63 * - 54 ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL + COALESCE ( - - COUNT ( * ), + 3 * - COUNT ( * ) + + + 61 * + + 84 ) / 62 + - 6 + ( - MAX ( DISTINCT - + 90 ) ) - + 0 / - MAX ( DISTINCT - - NULLIF ( + 69, - 33 * - 45 * + 42 - 63 * - 54 ) ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT COUNT( * ) * - ( 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-5546
SELECT COUNT ( * ) * - ( 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT 8 * + 26 - - MAX( DISTINCT + + 90 )
----
298

skipif mysql # not compatible
query I rowsort label-5547
SELECT 8 * + 26 - - MAX ( DISTINCT + + 90 )
----
298

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT COUNT( * ) - + 11 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-5548
SELECT COUNT ( * ) - + 11 AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5549
SELECT CASE - - 21 WHEN + ( 31 ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - - 77 ELSE NULL END * 34 + + SUM( 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5549
SELECT CASE - - 21 WHEN + ( 31 ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - - 77 ELSE NULL END * 34 + + SUM ( 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT DISTINCT 71 + + + 5 * + COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT 71 + + + 5 * + COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-5551
SELECT DISTINCT - COUNT( * ) * - 24 * 53 * 20 * - - COUNT( * ), 6 AS col2
----
25440
6

skipif mysql # not compatible
query II rowsort label-5551
SELECT DISTINCT - COUNT ( * ) * - 24 * 53 * 20 * - - COUNT ( * ), 6 AS col2
----
25440
6

query II rowsort
SELECT ALL 6 + 42 AS col0, - 49 AS col1
----
48
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5553
SELECT DISTINCT + 1 DIV + - 53 + - - 19
----
19

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT + 1 / + - 53 + - - 19
----
19

query I rowsort
SELECT DISTINCT - - 31
----
31

query I rowsort
SELECT + ( + + 37 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT 27 * + ( + - CAST( NULL AS SIGNED ) ) * - 64 * ( + 32 ) + + + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT 27 * + ( + - CAST ( NULL AS INTEGER ) ) * - 64 * ( + 32 ) + + + 7 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 97 * + - 46
----
-4462

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT - ( + + 41 ) + MAX( ALL - - 39 ) * ( - 84 ) * + 61 col2
----
-199877

skipif mysql # not compatible
query I rowsort label-5558
SELECT - ( + + 41 ) + MAX ( ALL - - 39 ) * ( - 84 ) * + 61 col2
----
-199877

query II rowsort
SELECT ALL - - 4 * + 10 AS col0, + 23
----
40
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL + ( + + 48 ) * + NULLIF ( + COUNT( - 99 ), - 61 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + ( + + 48 ) * + NULLIF ( + COUNT ( - 99 ), - 61 ) AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5561
SELECT + COUNT( * ) DIV - + 97 AS col0, + 95 * - MAX( ALL 63 ) col2
----
0
-5985

skipif mysql # not compatible
query II rowsort label-5561
SELECT + COUNT ( * ) / - + 97 AS col0, + 95 * - MAX ( ALL 63 ) col2
----
0
-5985

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT 89 + SUM( - + 43 )
----
46

skipif mysql # not compatible
query I rowsort label-5562
SELECT 89 + SUM ( - + 43 )
----
46

query II rowsort
SELECT + 48 + 58, - 6 * 99 AS col0
----
106
-594

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT ALL + 90 DIV + 74 col0
----
1

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL + 90 / + 74 col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5565
SELECT ( + - 58 ) - + - 3 AS col0, COUNT( * ) AS col1
----
-55
1

skipif mysql # not compatible
query II rowsort label-5565
SELECT ( + - 58 ) - + - 3 AS col0, COUNT ( * ) AS col1
----
-55
1

query I rowsort
SELECT 36 * - 20
----
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5567
SELECT ALL + 84 * - - CAST( + 55 AS SIGNED ) AS col1
----
4620

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL + 84 * - - CAST ( + 55 AS INTEGER ) AS col1
----
4620

onlyif mysql # DIV for integer division: 
query I rowsort label-5568
SELECT 16 DIV 23
----
0

skipif mysql # not compatible
query I rowsort label-5568
SELECT 16 / 23
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5569
SELECT ALL COUNT( * ) + COUNT( * ) - - - 40 AS col2, 96 AS col0
----
-38
96

skipif mysql # not compatible
query II rowsort label-5569
SELECT ALL COUNT ( * ) + COUNT ( * ) - - - 40 AS col2, 96 AS col0
----
-38
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5570
SELECT ALL - CAST( NULL AS SIGNED ) * - 87 * 98 * 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL - CAST ( NULL AS INTEGER ) * - 87 * 98 * 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT 32 - COUNT( 11 )
----
31

skipif mysql # not compatible
query I rowsort label-5571
SELECT 32 - COUNT ( 11 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL + 48 + COUNT( * ) - + 73 col0
----
-24

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL + 48 + COUNT ( * ) - + 73 col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL - COUNT( * ) * + MAX( DISTINCT 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - COUNT ( * ) * + MAX ( DISTINCT 47 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT - SUM( 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT - SUM ( 98 )
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-5575
SELECT ALL - COUNT( * ) + - ( COUNT( * ) ) AS col0, + 1 col1
----
-2
1

skipif mysql # not compatible
query II rowsort label-5575
SELECT ALL - COUNT ( * ) + - ( COUNT ( * ) ) AS col0, + 1 col1
----
-2
1

query II rowsort
SELECT 12 * 15 + - - 57 AS col0, - 66 AS col1
----
237
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5577
SELECT 67 - + - 63 * + CAST( NULL AS SIGNED ), + 73 AS col1
----
NULL
73

skipif mysql # not compatible
query II rowsort label-5577
SELECT 67 - + - 63 * + CAST ( NULL AS INTEGER ), + 73 AS col1
----
NULL
73

query I rowsort
SELECT ALL - NULLIF ( 48, - - 94 * - 22 + + 12 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-5579
SELECT ALL - 15 AS col2, + MIN( + 89 )
----
-15
89

skipif mysql # not compatible
query II rowsort label-5579
SELECT ALL - 15 AS col2, + MIN ( + 89 )
----
-15
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5580
SELECT ALL 82 - 28 + - 2 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL 82 - 28 + - 2 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT MIN( - - 5 ) * - CASE + 79 WHEN 32 * - 90 * + - ( - COUNT( * ) ) THEN NULL WHEN - COUNT( * ) * 43 * - - 36 + CASE WHEN - 65 > ( - COALESCE ( - 14, - COUNT( * ) - 31 * + 82 ) ) THEN 1 END * 35 THEN AVG ( + 9 ) WHEN 72 * ( + 45 ) - + 46 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5581
SELECT MIN ( - - 5 ) * - CASE + 79 WHEN 32 * - 90 * + - ( - COUNT ( * ) ) THEN NULL WHEN - COUNT ( * ) * 43 * - - 36 + CASE WHEN - 65 > ( - COALESCE ( - 14, - COUNT ( * ) - 31 * + 82 ) ) THEN 1 END * 35 THEN AVG ( + 9 ) WHEN 72 * ( + 45 ) - + 46 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 55 + + + 22 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL - - MAX( ALL - - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL - - MAX ( ALL - - 99 )
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5584
SELECT - 56 * 59 + 50 + - MIN( - 68 ) DIV + 57 col0
----
-3253

skipif mysql # not compatible
query I rowsort label-5584
SELECT - 56 * 59 + 50 + - MIN ( - 68 ) / + 57 col0
----
-3253

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5585
SELECT + 78 * + 30 + + COALESCE ( 98, - + 7, 86 ) col2, + 90 * - CAST( + 45 AS SIGNED ) + + CAST( - ( + COUNT( * ) ) AS SIGNED ) / + ( + CASE + + 89 WHEN ( + 34 ) THEN + 38 WHEN 23 THEN NULL ELSE NULL END ) - 83
----
2438
NULL

skipif mysql # not compatible
query II rowsort label-5585
SELECT + 78 * + 30 + + COALESCE ( 98, - + 7, 86 ) col2, + 90 * - CAST ( + 45 AS INTEGER ) + + CAST ( - ( + COUNT ( * ) ) AS INTEGER ) / + ( + CASE + + 89 WHEN ( + 34 ) THEN + 38 WHEN 23 THEN NULL ELSE NULL END ) - 83
----
2438
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5586
SELECT ALL 75 DIV + + COALESCE ( + 52, + NULLIF ( - ( - + MAX( ALL - ( 89 ) ) ), + - 75 DIV - + 66 + 72 + 27 * + 58 * ( + 53 ) ), - CASE + - AVG ( - + 11 ) WHEN COUNT( * ) - - 72 THEN - CASE + 78 WHEN + 84 THEN - 84 ELSE + 31 END * SUM( ALL 27 DIV - 50 ) WHEN + 54 * + 29 + 67 * - 41 THEN NULL END )
----
1

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL 75 / + + COALESCE ( + 52, + NULLIF ( - ( - + MAX ( ALL - ( 89 ) ) ), + - 75 / - + 66 + 72 + 27 * + 58 * ( + 53 ) ), - CASE + - AVG ( - + 11 ) WHEN COUNT ( * ) - - 72 THEN - CASE + 78 WHEN + 84 THEN - 84 ELSE + 31 END * SUM ( ALL 27 / - 50 ) WHEN + 54 * + 29 + 67 * - 41 THEN NULL END )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5587
SELECT - 28 * + COUNT( * ) DIV - - 47, - COUNT( * ) AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-5587
SELECT - 28 * + COUNT ( * ) / - - 47, - COUNT ( * ) AS col0
----
0
-1

query I rowsort
SELECT DISTINCT - 32 col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT ALL CAST( NULL AS SIGNED ) + + - NULLIF ( 15, 66 - - + ( + 49 ) + + 46 + + 46 + + - 89 + 49 / + 96 + + - CAST( NULL AS SIGNED ) * 8 / - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL CAST ( NULL AS INTEGER ) + + - NULLIF ( 15, 66 - - + ( + 49 ) + + 46 + + 46 + + - 89 + 49 / + 96 + + - CAST ( NULL AS INTEGER ) * 8 / - 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT DISTINCT NULLIF ( + - 38, 86 * + 67 ) + - 59 * - 9 * + COUNT( * ) col1
----
493

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT NULLIF ( + - 38, 86 * + 67 ) + - 59 * - 9 * + COUNT ( * ) col1
----
493

query I rowsort
SELECT DISTINCT ( + 97 ) + + + 71 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT ALL MAX( ALL 63 ) + - COUNT( * ) * - 36 * 67 * + + 63
----
152019

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL MAX ( ALL 63 ) + - COUNT ( * ) * - 36 * 67 * + + 63
----
152019

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT - COUNT( * ) * 26 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5593
SELECT - COUNT ( * ) * 26 AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5594
SELECT ALL CAST( - 74 AS SIGNED ) + ( 95 ) + - 37 * - - 20 * 73 + + - ( 70 ) * - 4 col1
----
-53719

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL CAST ( - 74 AS INTEGER ) + ( 95 ) + - 37 * - - 20 * 73 + + - ( 70 ) * - 4 col1
----
-53719

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT + COUNT( * ) * - 95 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-5595
SELECT + COUNT ( * ) * - 95 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT COALESCE ( + - COUNT( * ), 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-5596
SELECT COALESCE ( + - COUNT ( * ), 9 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5597
SELECT CASE + 57 WHEN - 48 THEN - CASE - 59 WHEN 37 + - COUNT( * ) THEN NULL WHEN - 11 + 16 * - 64 THEN + 88 + - COUNT( * ) ELSE + + 31 * + ( COALESCE ( - CAST( NULL AS SIGNED ), - + 36 ) ) * - 80 * 96 * 22 + + 99 END + ( + COUNT( * ) ) ELSE 11 + - 73 * 9 END AS col0
----
-646

skipif mysql # not compatible
query I rowsort label-5597
SELECT CASE + 57 WHEN - 48 THEN - CASE - 59 WHEN 37 + - COUNT ( * ) THEN NULL WHEN - 11 + 16 * - 64 THEN + 88 + - COUNT ( * ) ELSE + + 31 * + ( COALESCE ( - CAST ( NULL AS INTEGER ), - + 36 ) ) * - 80 * 96 * 22 + + 99 END + ( + COUNT ( * ) ) ELSE 11 + - 73 * 9 END AS col0
----
-646

query I rowsort
SELECT DISTINCT - 36 * + 28
----
-1008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT DISTINCT + CASE - - 56 WHEN + 49 + + 88 THEN - 62 ELSE + ( COALESCE ( + 65, + CAST( - - 80 AS SIGNED ), - 3 * + - 24 * - 51 * ( 1 ) ) ) * 44 END * 47 + + + ( 4 ) - + 66 * 30 AS col0
----
132444

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT + CASE - - 56 WHEN + 49 + + 88 THEN - 62 ELSE + ( COALESCE ( + 65, + CAST ( - - 80 AS INTEGER ), - 3 * + - 24 * - 51 * ( 1 ) ) ) * 44 END * 47 + + + ( 4 ) - + 66 * 30 AS col0
----
132444

query I rowsort
SELECT - 71 * + 5
----
-355

query II rowsort
SELECT ALL - 45 * 75 AS col2, + 28
----
-3375
28

query II rowsort
SELECT - + 60 - + 32 AS col2, 64 AS col1
----
-92
64

query I rowsort
SELECT - - 55 * 79 AS col1
----
4345

query I rowsort
SELECT DISTINCT + 38 * + 67 col2
----
2546

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT ALL + - SUM( + + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL + - SUM ( + + 74 )
----
-74

query I rowsort
SELECT ALL + ( - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT - 76 * - + COALESCE ( - - 72, 81 + COUNT( * ) ) + - 93 + - - 82 AS col2
----
5461

skipif mysql # not compatible
query I rowsort label-5607
SELECT - 76 * - + COALESCE ( - - 72, 81 + COUNT ( * ) ) + - 93 + - - 82 AS col2
----
5461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5608
SELECT + 41 * + 39 + + COUNT( * ) + 21 + - MAX( CAST( NULL AS SIGNED ) ) + - - 7 - 14 / - 93 + 22 / 62 - + 50, - 11 + - 60 AS col2
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-5608
SELECT + 41 * + 39 + + COUNT ( * ) + 21 + - MAX ( CAST ( NULL AS INTEGER ) ) + - - 7 - 14 / - 93 + 22 / 62 - + 50, - 11 + - 60 AS col2
----
NULL
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-5609
SELECT ALL + 56 DIV - 2
----
-28

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL + 56 / - 2
----
-28

query I rowsort
SELECT - 3 - 28 - - + 15 col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5611
SELECT - + 84 + - 54 * COUNT( * ) + + 38 DIV - - COUNT( * ) + - 67
----
-167

skipif mysql # not compatible
query I rowsort label-5611
SELECT - + 84 + - 54 * COUNT ( * ) + + 38 / - - COUNT ( * ) + - 67
----
-167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT ALL CAST( - - 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL CAST ( - - 33 AS INTEGER )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT DISTINCT - + COUNT( * ) + - + COUNT( * ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT - + COUNT ( * ) + - + COUNT ( * ) col1
----
-2

query I rowsort
SELECT DISTINCT - 40 + - 90 * 14 AS col2
----
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT ALL - COUNT( ALL - + 74 ) + + CASE CASE + 68 WHEN - + COUNT( * ) THEN NULL WHEN - CASE ( COUNT( 9 ) ) WHEN + - 79 * 27 THEN NULL WHEN + - 16 THEN NULL ELSE + COUNT( * ) * + + 80 / - - 29 - 18 END + + 17 THEN + COUNT( * ) / - + 88 * 53 END WHEN COUNT( * ) THEN + 58 WHEN - 56 THEN NULL WHEN 43 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL - COUNT ( ALL - + 74 ) + + CASE CASE + 68 WHEN - + COUNT ( * ) THEN NULL WHEN - CASE ( COUNT ( 9 ) ) WHEN + - 79 * 27 THEN NULL WHEN + - 16 THEN NULL ELSE + COUNT ( * ) * + + 80 / - - 29 - 18 END + + 17 THEN + COUNT ( * ) / - + 88 * 53 END WHEN COUNT ( * ) THEN + 58 WHEN - 56 THEN NULL WHEN 43 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + 82 )
----
82

query I rowsort
SELECT ALL 97 + - 33 AS col2
----
64

query I rowsort
SELECT ALL 55 + + 84 AS col2
----
139

query I rowsort
SELECT DISTINCT 26 + - - 95 - ( + 77 ) AS col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5620
SELECT - 32 DIV + 36 * - - 90 * + 54 * + 65
----
0

skipif mysql # not compatible
query I rowsort label-5620
SELECT - 32 / + 36 * - - 90 * + 54 * + 65
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5621
SELECT + 37 + 32 + + - 92 - - - COUNT( * ) - + - COUNT( * ) DIV + ( - 60 ) * - + 25 + - 9 * + + 4, + 58 col0
----
-60
58

skipif mysql # not compatible
query II rowsort label-5621
SELECT + 37 + 32 + + - 92 - - - COUNT ( * ) - + - COUNT ( * ) / + ( - 60 ) * - + 25 + - 9 * + + 4, + 58 col0
----
-60
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5622
SELECT ALL MIN( ALL - 80 ) + + 3 AS col0, + COUNT( * ) AS col0
----
-77
1

skipif mysql # not compatible
query II rowsort label-5622
SELECT ALL MIN ( ALL - 80 ) + + 3 AS col0, + COUNT ( * ) AS col0
----
-77
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5623
SELECT ALL CAST( NULL AS DECIMAL ) + + 98 - - - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL CAST ( NULL AS REAL ) + + 98 - - - 41 AS col0
----
NULL

query III rowsort
SELECT 86 AS col0, + 56 + - 99 AS col0, + ( + 35 )
----
86
-43
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5625
SELECT DISTINCT CAST( + 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT CAST ( + 41 AS INTEGER )
----
41

query I rowsort
SELECT ALL - 49 - + 7 + - 89 AS col1
----
-145

query I rowsort
SELECT ALL 89 * - - 23 AS col1
----
2047

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT DISTINCT 18 * + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT 18 * + COUNT ( * ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT + MIN( DISTINCT + 33 ) - + 66 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5629
SELECT + MIN ( DISTINCT + 33 ) - + 66 AS col1
----
-33

query I rowsort
SELECT + 48 * - 87
----
-4176

query I rowsort
SELECT + 59 + 16 + - 63 - - 78
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5632
SELECT CASE + - 90 WHEN - + 73 THEN + - COUNT( * ) WHEN + COUNT( * ) THEN - 72 + 54 - 60 END / - + 26 * - - COUNT( * ) - + - 49 - + 66 - + + CASE + + CASE + 43 WHEN - CASE - + 6 WHEN - 29 THEN - 45 WHEN + 42 + + 91 THEN + 24 WHEN + 69 + - 90 * 74 THEN NULL END * + NULLIF ( + SUM( 35 ), + 1 ) - + 67 * 95 THEN NULL ELSE - MAX( ALL 15 ) END WHEN - COUNT( * ) THEN NULL WHEN 77 * 45 + 51 THEN NULL ELSE + NULLIF ( - 27, + 93 + - MAX( + CASE - ( - 22 ) WHEN 81 * 77 THEN - 10 * - CAST( 15 AS SIGNED ) ELSE NULL END + - 13 * 95 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT CASE + - 90 WHEN - + 73 THEN + - COUNT ( * ) WHEN + COUNT ( * ) THEN - 72 + 54 - 60 END / - + 26 * - - COUNT ( * ) - + - 49 - + 66 - + + CASE + + CASE + 43 WHEN - CASE - + 6 WHEN - 29 THEN - 45 WHEN + 42 + + 91 THEN + 24 WHEN + 69 + - 90 * 74 THEN NULL END * + NULLIF ( + SUM ( 35 ), + 1 ) - + 67 * 95 THEN NULL ELSE - MAX ( ALL 15 ) END WHEN - COUNT ( * ) THEN NULL WHEN 77 * 45 + 51 THEN NULL ELSE + NULLIF ( - 27, + 93 + - MAX ( + CASE - ( - 22 ) WHEN 81 * 77 THEN - 10 * - CAST ( 15 AS INTEGER ) ELSE NULL END + - 13 * 95 ) ) END AS col2
----
NULL

query II rowsort
SELECT ALL + 21, + 13 AS col2
----
21
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT + 12 * + COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5634
SELECT + 12 * + COUNT ( * ) AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5635
SELECT - - CAST( NULL AS SIGNED ) * + + CASE - 9 WHEN + CAST( + 93 AS SIGNED ) + - - 3 THEN + + 44 * - + 38 + - + 64 + + + 43 WHEN - 27 THEN - CAST( CASE - + COUNT( DISTINCT 72 ) WHEN + - CASE + 21 WHEN 66 THEN - + 41 END THEN NULL WHEN + + COUNT( * ) THEN 79 ELSE NULL END AS SIGNED ) * 85 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT - - CAST ( NULL AS INTEGER ) * + + CASE - 9 WHEN + CAST ( + 93 AS INTEGER ) + - - 3 THEN + + 44 * - + 38 + - + 64 + + + 43 WHEN - 27 THEN - CAST ( CASE - + COUNT ( DISTINCT 72 ) WHEN + - CASE + 21 WHEN 66 THEN - + 41 END THEN NULL WHEN + + COUNT ( * ) THEN 79 ELSE NULL END AS INTEGER ) * 85 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT - 94 - + - 41 DIV - ( 98 )
----
-94

skipif mysql # not compatible
query I rowsort label-5636
SELECT - 94 - + - 41 / - ( 98 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5637
SELECT DISTINCT - + CASE 90 WHEN + + 78 THEN NULL WHEN - ( + COUNT( ALL 90 ) ) * 4 THEN NULL ELSE + - CAST( NULL AS SIGNED ) END / - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT - + CASE 90 WHEN + + 78 THEN NULL WHEN - ( + COUNT ( ALL 90 ) ) * 4 THEN NULL ELSE + - CAST ( NULL AS INTEGER ) END / - 91 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5638
SELECT ALL + + CAST( + 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL + + CAST ( + 21 AS INTEGER )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5639
SELECT + 1 DIV - + 73 + - - 10
----
10

skipif mysql # not compatible
query I rowsort label-5639
SELECT + 1 / - + 73 + - - 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ALL - 46 * COUNT( * ) * - 41 AS col2
----
1886

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL - 46 * COUNT ( * ) * - 41 AS col2
----
1886

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT + MIN( + + 85 ) + + - 90 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5641
SELECT + MIN ( + + 85 ) + + - 90 AS col1
----
-5

query I rowsort
SELECT ALL - + 97 * 61 col1
----
-5917

onlyif mysql # DIV for integer division: 
query I rowsort label-5643
SELECT DISTINCT + 18 DIV - 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT + 18 / - 19 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT - - COUNT( * ) + + COUNT( * ) + + 55 + - + 59
----
-2

skipif mysql # not compatible
query I rowsort label-5644
SELECT - - COUNT ( * ) + + COUNT ( * ) + + 55 + - + 59
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT ALL 48 * - MIN( - - ( - 70 ) ) + + 3 AS col1
----
3363

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL 48 * - MIN ( - - ( - 70 ) ) + + 3 AS col1
----
3363

query I rowsort
SELECT + + 79 * 63 * + 68
----
338436

query I rowsort
SELECT + COALESCE ( - 69, + 40 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT + - COUNT( * ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5648
SELECT + - COUNT ( * ) * - COUNT ( * )
----
1

query I rowsort
SELECT - - 99 + 31 AS col0
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5650
SELECT - CAST( + + 56 AS SIGNED ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-5650
SELECT - CAST ( + + 56 AS INTEGER ) AS col1
----
-56

query I rowsort
SELECT - + 24 + - 76
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ALL + - COUNT( * ) * - 44 + - ( 31 ) + 84 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL + - COUNT ( * ) * - 44 + - ( 31 ) + 84 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT - 67 * + ( + CASE + - 80 WHEN - 15 THEN - + 16 + + - MIN( + 83 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5653
SELECT - 67 * + ( + CASE + - 80 WHEN - 15 THEN - + 16 + + - MIN ( + 83 ) END )
----
NULL

query I rowsort
SELECT ( 43 )
----
43

query I rowsort
SELECT ALL + 53 + - + 34
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT CAST( + 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5656
SELECT CAST ( + 4 AS INTEGER ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5657
SELECT 35 * - - COUNT( * ) AS col2, - 8 AS col2
----
35
-8

skipif mysql # not compatible
query II rowsort label-5657
SELECT 35 * - - COUNT ( * ) AS col2, - 8 AS col2
----
35
-8

query II rowsort
SELECT - 21, 12 AS col0
----
-21
12

query I rowsort
SELECT 42 + - - 89 AS col2
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT DISTINCT - ( - + COUNT( * ) ) + - ( - + 18 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT - ( - + COUNT ( * ) ) + - ( - + 18 ) AS col0
----
19

query I rowsort
SELECT ALL - 62 - - + 15 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-5662
SELECT 25 * - 51, COUNT( * ) AS col0
----
-1275
1

skipif mysql # not compatible
query II rowsort label-5662
SELECT 25 * - 51, COUNT ( * ) AS col0
----
-1275
1

query I rowsort
SELECT 32 + 50 col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT 35 - + COUNT( DISTINCT 41 ) + - 98 - - 16
----
-48

skipif mysql # not compatible
query I rowsort label-5664
SELECT 35 - + COUNT ( DISTINCT 41 ) + - 98 - - 16
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT COUNT( * ) + 54 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5665
SELECT COUNT ( * ) + 54 AS col2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5666
SELECT 44 DIV + + 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5666
SELECT 44 / + + 55 AS col1
----
0

query I rowsort
SELECT 51 * + 20 AS col0
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT CASE + 34 WHEN + COUNT( * ) THEN + + COUNT( * ) WHEN + - 77 * + 41 * 93 / + - 57 THEN + 94 + + COUNT( * ) ELSE - - 24 END + - + ( 71 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-5668
SELECT CASE + 34 WHEN + COUNT ( * ) THEN + + COUNT ( * ) WHEN + - 77 * + 41 * 93 / + - 57 THEN + 94 + + COUNT ( * ) ELSE - - 24 END + - + ( 71 ) AS col0
----
-47

query I rowsort
SELECT 41 * + + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT SUM( DISTINCT 14 ) + + 46 * - COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5670
SELECT SUM ( DISTINCT 14 ) + + 46 * - COUNT ( * ) AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-5671
SELECT ALL + 18 DIV ( + 23 )
----
0

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL + 18 / ( + 23 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5672
SELECT 86 + + COALESCE ( 67, ( + COALESCE ( CAST( + + COUNT( * ) AS SIGNED ), - + COUNT( * ) ) ) * NULLIF ( - 4, 27 * + 39 * + 91 ) + - 42 + 74, 95 ) * + + 94
----
6384

skipif mysql # not compatible
query I rowsort label-5672
SELECT 86 + + COALESCE ( 67, ( + COALESCE ( CAST ( + + COUNT ( * ) AS INTEGER ), - + COUNT ( * ) ) ) * NULLIF ( - 4, 27 * + 39 * + 91 ) + - 42 + 74, 95 ) * + + 94
----
6384

query II rowsort
SELECT 44 AS col1, 29
----
44
29

onlyif mysql # DIV for integer division: 
query II rowsort label-5674
SELECT - 63 AS col0, - ( - 83 ) DIV - 87 col2
----
-63
0

skipif mysql # not compatible
query II rowsort label-5674
SELECT - 63 AS col0, - ( - 83 ) / - 87 col2
----
-63
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5675
SELECT NULLIF ( - 41, - 38 * 31 + + 88 * 1 + - 39 * 80 + + 44 ) + - COALESCE ( - CAST( NULL AS SIGNED ), 91 ) DIV - - 6
----
-56

skipif mysql # not compatible
query I rowsort label-5675
SELECT NULLIF ( - 41, - 38 * 31 + + 88 * 1 + - 39 * 80 + + 44 ) + - COALESCE ( - CAST ( NULL AS INTEGER ), 91 ) / - - 6
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT - COUNT( 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-5676
SELECT - COUNT ( 94 )
----
-1

query II rowsort
SELECT ALL - - 92, + 54 + + + 13 - 44 AS col2
----
92
23

query II rowsort
SELECT ALL - 53 col0, + 72
----
-53
72

query II rowsort
SELECT DISTINCT - + 14, - 14 AS col1
----
-14
-14

query I rowsort
SELECT ALL + 89 + + - 76 AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5681
SELECT + + CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5681
SELECT + + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5682
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + - 50, - 11 col2
----
-50
-11

query I rowsort
SELECT 17 * + - 36 - - + 5
----
-607

query I rowsort
SELECT - 38 - + - 27 * - + 91 AS col0
----
-2495

query I rowsort
SELECT ALL 82 + - 16 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT ALL 21 + ( 90 ) * + COUNT( * ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL 21 + ( 90 ) * + COUNT ( * ) AS col0
----
111

query I rowsort
SELECT + + 35 AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5689
SELECT ALL - - 90 + CASE + 32 WHEN - - 39 * + ( + ( + 52 ) ) * NULLIF ( + ( + CASE - 13 WHEN + MAX( + - 89 ) * 11 THEN 66 ELSE NULL END ), CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) - + CAST( + 35 AS SIGNED ) ) THEN 4 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL - - 90 + CASE + 32 WHEN - - 39 * + ( + ( + 52 ) ) * NULLIF ( + ( + CASE - 13 WHEN + MAX ( + - 89 ) * 11 THEN 66 ELSE NULL END ), CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) - + CAST ( + 35 AS INTEGER ) ) THEN 4 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT + + CAST( + 68 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-5690
SELECT + + CAST ( + 68 AS INTEGER )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5691
SELECT ALL - 9, + 12 * - 34 + + + COALESCE ( - - 27, - - COUNT( * ), ( - SUM( + 96 ) ) + + 76 * SUM( - 19 ) ) DIV - 74 - - 31 AS col2
----
-9
-377

skipif mysql # not compatible
query II rowsort label-5691
SELECT ALL - 9, + 12 * - 34 + + + COALESCE ( - - 27, - - COUNT ( * ), ( - SUM ( + 96 ) ) + + 76 * SUM ( - 19 ) ) / - 74 - - 31 AS col2
----
-9
-377

query I rowsort
SELECT ALL - 12 * + 0 * 58 col1
----
0

query I rowsort
SELECT - 94 * + - 93 + 86 - - + 85
----
8913

query I rowsort
SELECT 58 - + 20 - + 92 + + 77 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ALL 44 - CASE - 64 WHEN - COALESCE ( - - NULLIF ( - + ( - 99 ), 70 ), + - 81 + + ( + - ( 75 ) ) * 66, + + 92 ) THEN - COUNT( * ) / + - 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL 44 - CASE - 64 WHEN - COALESCE ( - - NULLIF ( - + ( - 99 ), 70 ), + - 81 + + ( + - ( 75 ) ) * 66, + + 92 ) THEN - COUNT ( * ) / + - 68 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT DISTINCT - CAST( COALESCE ( + 92, - + 1 ) AS SIGNED ) * - 75
----
6900

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT - CAST ( COALESCE ( + 92, - + 1 ) AS INTEGER ) * - 75
----
6900

onlyif mysql # aggregate syntax: 
query II rowsort label-5697
SELECT 35 + COUNT( * ) AS col1, - 12 / + + CASE - 97 WHEN - NULLIF ( + 59, + - 19 ) * - + 36 THEN + 52 END col1
----
36
NULL

skipif mysql # not compatible
query II rowsort label-5697
SELECT 35 + COUNT ( * ) AS col1, - 12 / + + CASE - 97 WHEN - NULLIF ( + 59, + - 19 ) * - + 36 THEN + 52 END col1
----
36
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5698
SELECT 44 + + 90 * ( 20 ) + + 93, CAST( NULL AS SIGNED ) AS col1
----
1937
NULL

skipif mysql # not compatible
query II rowsort label-5698
SELECT 44 + + 90 * ( 20 ) + + 93, CAST ( NULL AS INTEGER ) AS col1
----
1937
NULL

query I rowsort
SELECT ALL ( + - 96 ) - 3 AS col0
----
-99

query I rowsort
SELECT 60 * + 44
----
2640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5701
SELECT 79 + + - CASE WHEN 73 IS NOT NULL THEN NULLIF ( + - 46, + NULLIF ( - 57, - MAX( + 27 ) * - - COALESCE ( + 37, - 30 ) * + 63 - - - 48 + + 11 ) ) + - + COUNT( * ) + - - 60 DIV COUNT( * ) * 61 ELSE NULL END AS col1
----
-3534

skipif mysql # not compatible
query I rowsort label-5701
SELECT 79 + + - CASE WHEN 73 IS NOT NULL THEN NULLIF ( + - 46, + NULLIF ( - 57, - MAX ( + 27 ) * - - COALESCE ( + 37, - 30 ) * + 63 - - - 48 + + 11 ) ) + - + COUNT ( * ) + - - 60 / COUNT ( * ) * 61 ELSE NULL END AS col1
----
-3534

onlyif mysql # aggregate syntax: 
query II rowsort label-5702
SELECT ALL + 32 * COUNT( * ), + 12 AS col2
----
32
12

skipif mysql # not compatible
query II rowsort label-5702
SELECT ALL + 32 * COUNT ( * ), + 12 AS col2
----
32
12

query I rowsort
SELECT 50 * - 24 AS col0
----
-1200

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT 86 * 50 DIV + - 89
----
-48

skipif mysql # not compatible
query I rowsort label-5704
SELECT 86 * 50 / + - 89
----
-48

query I rowsort
SELECT DISTINCT + 14 * - + 65
----
-910

query I rowsort
SELECT 66 + + + 16 AS col0
----
82

query I rowsort
SELECT 21 col2
----
21

query I rowsort
SELECT 76 + - + 69 AS col0
----
7

query I rowsort
SELECT - - 55
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5710
SELECT ALL + 18 + + ( CAST( + 48 AS SIGNED ) )
----
66

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL + 18 + + ( CAST ( + 48 AS INTEGER ) )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT - CAST( 97 AS SIGNED ) + - + 73 AS col0
----
-170

skipif mysql # not compatible
query I rowsort label-5711
SELECT - CAST ( 97 AS INTEGER ) + - + 73 AS col0
----
-170

onlyif mysql # DIV for integer division: 
query I rowsort label-5712
SELECT - 34 DIV + - 31 + + 54 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-5712
SELECT - 34 / + - 31 + + 54 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT ALL - 4 * + + 14 + - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL - 4 * + + 14 + - COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT DISTINCT - + NULLIF ( + - COUNT( * ), - + 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT - + NULLIF ( + - COUNT ( * ), - + 37 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + - 15 AS col0
----
-15

query II rowsort
SELECT + 59 * 26 AS col1, + 96 col2
----
1534
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5717
SELECT + CASE - CASE + - 17 WHEN + 96 * - + CAST( NULL AS SIGNED ) * - 11 * - - 75 * 39 THEN + 15 * - NULLIF ( - 66, - COUNT( * ) * + ( - 11 ) ) * 31 + 8 END WHEN - 1 THEN 69 * + 36 + - + SUM( DISTINCT + + 62 ) / + 85 * + 58 + ( + COALESCE ( - 23, - ( ( 28 ) ) + SUM( + 56 ) ) ) * 25 + 68 WHEN + 48 + 19 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5717
SELECT + CASE - CASE + - 17 WHEN + 96 * - + CAST ( NULL AS INTEGER ) * - 11 * - - 75 * 39 THEN + 15 * - NULLIF ( - 66, - COUNT ( * ) * + ( - 11 ) ) * 31 + 8 END WHEN - 1 THEN 69 * + 36 + - + SUM ( DISTINCT + + 62 ) / + 85 * + 58 + ( + COALESCE ( - 23, - ( ( 28 ) ) + SUM ( + 56 ) ) ) * 25 + 68 WHEN + 48 + 19 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5718
SELECT ALL + CAST( 34 AS SIGNED ) AS col1, + 5 + + - 25
----
34
-20

skipif mysql # not compatible
query II rowsort label-5718
SELECT ALL + CAST ( 34 AS INTEGER ) AS col1, + 5 + + - 25
----
34
-20

query I rowsort
SELECT DISTINCT - 17 * - 70 - + + 67
----
1123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5720
SELECT ALL - + NULLIF ( - - 67, + + 1 * + 11 ) * + 58 - - 47 + - - COALESCE ( - - 32, - - NULLIF ( - + 18, + - 93 + + CAST( - CASE - COUNT( * ) WHEN - - 55 THEN - 57 + + ( - 57 ) WHEN 50 THEN NULL END AS SIGNED ) - - 78 ) ) - - 78 - + + 53
----
-3782

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL - + NULLIF ( - - 67, + + 1 * + 11 ) * + 58 - - 47 + - - COALESCE ( - - 32, - - NULLIF ( - + 18, + - 93 + + CAST ( - CASE - COUNT ( * ) WHEN - - 55 THEN - 57 + + ( - 57 ) WHEN 50 THEN NULL END AS INTEGER ) - - 78 ) ) - - 78 - + + 53
----
-3782

query II rowsort
SELECT ALL + 99 AS col2, - 52 AS col0
----
99
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT + MAX( + + 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-5722
SELECT + MAX ( + + 81 ) AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5723
SELECT + COUNT( * ) + + COUNT( ALL + 96 ) DIV - MAX( DISTINCT - 48 ) * 3 + + 57 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-5723
SELECT + COUNT ( * ) + + COUNT ( ALL + 96 ) / - MAX ( DISTINCT - 48 ) * 3 + + 57 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT MAX( - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-5724
SELECT MAX ( - 74 )
----
-74

query I rowsort
SELECT ALL + 15 col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT + COALESCE ( - 48, MAX( DISTINCT + 62 ) + - + 19 + - 35 * + 12 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-5726
SELECT + COALESCE ( - 48, MAX ( DISTINCT + 62 ) + - + 19 + - 35 * + 12 ) AS col0
----
-48

query I rowsort
SELECT + CASE 29 WHEN - 76 * + 51 THEN 60 * + NULLIF ( + - 6, - - 29 ) WHEN + + 99 THEN NULL END / 38 - 28
----
NULL

query I rowsort
SELECT ALL + 90 * - 70 AS col2
----
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT DISTINCT 96 * COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT 96 * COUNT ( * ) AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5730
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) + 39 + + + 55 + + 71 + - COUNT( * )
----
164

skipif mysql # not compatible
query I rowsort label-5730
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) + 39 + + + 55 + + 71 + - COUNT ( * )
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT - CAST( NULL AS SIGNED ) + - 77 + - 44 - - 65 / 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT - CAST ( NULL AS INTEGER ) + - 77 + - 44 - - 65 / 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5732
SELECT + COUNT( * ) + + 9 DIV - + 54 + 92 - COUNT( * ) * - + COUNT( * ), - CASE + - COALESCE ( + 38, + 58 ) WHEN + - 42 * 18 THEN + 84 END AS col1
----
94
NULL

skipif mysql # not compatible
query II rowsort label-5732
SELECT + COUNT ( * ) + + 9 / - + 54 + 92 - COUNT ( * ) * - + COUNT ( * ), - CASE + - COALESCE ( + 38, + 58 ) WHEN + - 42 * 18 THEN + 84 END AS col1
----
94
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5733
SELECT DISTINCT 36 * + 19 * MAX( ALL 92 ), 53 col0
----
62928
53

skipif mysql # not compatible
query II rowsort label-5733
SELECT DISTINCT 36 * + 19 * MAX ( ALL 92 ), 53 col0
----
62928
53

query I rowsort
SELECT - ( - 71 )
----
71

query I rowsort
SELECT DISTINCT - 55 + - NULLIF ( 13, - 45 ) AS col1
----
-68

query I rowsort
SELECT ALL 88 + 16
----
104

query II rowsort
SELECT 12, 78 AS col2
----
12
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT - 27 + - COUNT( * ) - + 94
----
-122

skipif mysql # not compatible
query I rowsort label-5738
SELECT - 27 + - COUNT ( * ) - + 94
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5739
SELECT + 71 DIV - + ( ( 75 ) ) + + COUNT( + 19 ) + + 71 * + - 86 + + 12 AS col0
----
-6093

skipif mysql # not compatible
query I rowsort label-5739
SELECT + 71 / - + ( ( 75 ) ) + + COUNT ( + 19 ) + + 71 * + - 86 + + 12 AS col0
----
-6093

query II rowsort
SELECT - 93, 77 AS col1
----
-93
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5741
SELECT - COUNT( * ), 51 DIV + 35 - - 54 + 12 AS col1
----
-1
67

skipif mysql # not compatible
query II rowsort label-5741
SELECT - COUNT ( * ), 51 / + 35 - - 54 + 12 AS col1
----
-1
67

query II rowsort
SELECT - 55 AS col0, - 15
----
-55
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT ALL + - 11 * - 14 + COUNT( * ) AS col0
----
155

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL + - 11 * - 14 + COUNT ( * ) AS col0
----
155

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5744
SELECT - + 1 * CAST( NULL AS DECIMAL ) * - ( - 12 ) * - - 45 / - 26 + - + NULLIF ( 7, 63 * 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT - + 1 * CAST ( NULL AS REAL ) * - ( - 12 ) * - - 45 / - 26 + - + NULLIF ( 7, 63 * 5 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT ALL + 95 + + + COUNT( * ) col2
----
96

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL + 95 + + + COUNT ( * ) col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5746
SELECT ALL + 39 AS col2, CAST( SUM( ALL - + 88 ) AS SIGNED )
----
39
-88

skipif mysql # not compatible
query II rowsort label-5746
SELECT ALL + 39 AS col2, CAST ( SUM ( ALL - + 88 ) AS INTEGER )
----
39
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5747
SELECT ALL - - COALESCE ( - - 32, MIN( - 75 ) + COALESCE ( - 9, - 53 + 53, + SUM( + 54 ) ) * - 83 + + COALESCE ( - - 89, - 26 * - + SUM( 30 ) + COUNT( * ) * + 25 * + 51 DIV COUNT( * ) DIV + 58 + MAX( + 74 ) DIV + 18 ) ) DIV COUNT( * ) + + 95 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL - - COALESCE ( - - 32, MIN ( - 75 ) + COALESCE ( - 9, - 53 + 53, + SUM ( + 54 ) ) * - 83 + + COALESCE ( - - 89, - 26 * - + SUM ( 30 ) + COUNT ( * ) * + 25 * + 51 / COUNT ( * ) / + 58 + MAX ( + 74 ) / + 18 ) ) / COUNT ( * ) + + 95 AS col0
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5748
SELECT + - CAST( 5 AS SIGNED ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5748
SELECT + - CAST ( 5 AS INTEGER ) AS col1
----
-5

query I rowsort
SELECT ALL + - 19 * - 5 * NULLIF ( + + 33, 78 )
----
3135

query I rowsort
SELECT - 43 * 84 AS col2
----
-3612

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5751
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + MAX( ALL - 80 ) - + 2 AS col2, + MAX( 18 ) AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-5751
SELECT DISTINCT - CAST ( NULL AS REAL ) / + MAX ( ALL - 80 ) - + 2 AS col2, + MAX ( 18 ) AS col0
----
NULL
18

query II rowsort
SELECT ALL + - 87 AS col1, 52
----
-87
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT ALL + + ( - COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL + + ( - COUNT ( * ) ) col1
----
-1

query II rowsort
SELECT 45, 55 col2
----
45
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5755
SELECT DISTINCT - + MIN( ALL - + 44 ) DIV COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT - + MIN ( ALL - + 44 ) / COUNT ( * )
----
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5756
SELECT - 23 / - - 76 + 63 - + 86 * - COALESCE ( - CAST( + 98 AS DECIMAL ), - 83, COUNT( * ) ) / + - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT - 23 / - - 76 + 63 - + 86 * - COALESCE ( - CAST ( + 98 AS REAL ), - 83, COUNT ( * ) ) / + - CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5757
SELECT + + ( - 68 ) * 80 + - + 28 + - + 21 / + - COUNT( - 84 ) / CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT + + ( - 68 ) * 80 + - + 28 + - + 21 / + - COUNT ( - 84 ) / CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + + 8
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5758
SELECT - 88 * - 7 + + ( 12 ) + + 16 + + MIN( ALL + ( 44 ) ) DIV - + 5 + - COUNT( * ), MIN( - + 16 ) AS col0
----
635
-16

skipif mysql # not compatible
query II rowsort label-5758
SELECT - 88 * - 7 + + ( 12 ) + + 16 + + MIN ( ALL + ( 44 ) ) / - + 5 + - COUNT ( * ), MIN ( - + 16 ) AS col0
----
635
-16

query I rowsort
SELECT ALL 91 * 99
----
9009

query I rowsort
SELECT DISTINCT + ( - - 30 )
----
30

query I rowsort
SELECT - 43 + 55
----
12

query I rowsort
SELECT + ( + - 59 ) - 73 AS col2
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5763
SELECT ALL 55 * + 14 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL 55 * + 14 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT - COUNT( ALL - + 87 ) * + - ( 33 )
----
33

skipif mysql # not compatible
query I rowsort label-5764
SELECT - COUNT ( ALL - + 87 ) * + - ( 33 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5765
SELECT + ( + - COUNT( * ) ) * + - 63 - - 49 DIV - - 59 * + 64 * + 45 + - COUNT( * ) + - + 43 * 68 DIV + 54 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5765
SELECT + ( + - COUNT ( * ) ) * + - 63 - - 49 / - - 59 * + 64 * + 45 + - COUNT ( * ) + - + 43 * 68 / + 54 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5766
SELECT + COUNT( * ) - + - COALESCE ( - CASE + 68 WHEN + + 22 THEN - 50 END, - - COUNT( * ) ) AS col2, - 95
----
2
-95

skipif mysql # not compatible
query II rowsort label-5766
SELECT + COUNT ( * ) - + - COALESCE ( - CASE + 68 WHEN + + 22 THEN - 50 END, - - COUNT ( * ) ) AS col2, - 95
----
2
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT CASE COUNT( * ) WHEN - - 24 * + 82 + - + 42 * + 43 THEN - - 98 * - 8 - + 76 + + ( - 10 ) WHEN 37 * - - ( - 34 ) / - COALESCE ( + 19, 44 * + + 82 / + - 54 - + 16 ) + + 30 * - + 86 * + - ( 71 ) THEN NULL ELSE + 77 END
----
77

skipif mysql # not compatible
query I rowsort label-5767
SELECT CASE COUNT ( * ) WHEN - - 24 * + 82 + - + 42 * + 43 THEN - - 98 * - 8 - + 76 + + ( - 10 ) WHEN 37 * - - ( - 34 ) / - COALESCE ( + 19, 44 * + + 82 / + - 54 - + 16 ) + + 30 * - + 86 * + - ( 71 ) THEN NULL ELSE + 77 END
----
77

query I rowsort
SELECT - CASE 94 WHEN - - 0 THEN 91 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT - CAST( - 81 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-5769
SELECT - CAST ( - 81 AS INTEGER )
----
81

query I rowsort
SELECT + ( - 67 ) * - 94 AS col2
----
6298

onlyif mysql # DIV for integer division: 
query I rowsort label-5771
SELECT DISTINCT 62 * 47 DIV + + 14 + 72 AS col0
----
280

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT 62 * 47 / + + 14 + 72 AS col0
----
280

query I rowsort
SELECT + 65 + + - 26 * - 31
----
871

query II rowsort
SELECT ALL 47 + 2 AS col0, 59 AS col2
----
49
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5774
SELECT - CAST( - + 47 AS SIGNED ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5774
SELECT - CAST ( - + 47 AS INTEGER ) AS col2
----
47

query I rowsort
SELECT ALL 41 * - + 77
----
-3157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5776
SELECT + 47 + - 55 + - 86 - - - 55 / - 80 * - 67 * - + CAST( NULL AS SIGNED ) - - 59 + - - 16 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT + 47 + - 55 + - 86 - - - 55 / - 80 * - 67 * - + CAST ( NULL AS INTEGER ) - - 59 + - - 16 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5777
SELECT + - 90 DIV + + 89
----
-1

skipif mysql # not compatible
query I rowsort label-5777
SELECT + - 90 / + + 89
----
-1

query I rowsort
SELECT + 29 + + 16
----
45

query I rowsort
SELECT ALL + 10 + + + CASE 65 WHEN 93 * 46 THEN NULL WHEN + - 94 THEN + 27 WHEN + + 41 THEN + 5 END * 72 col0
----
NULL

query I rowsort
SELECT + + 46 * + + 69 AS col0
----
3174

query I rowsort
SELECT - ( 77 ) AS col1
----
-77

query I rowsort
SELECT + 91 + - 24
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5783
SELECT + + ( + + 62 ) * ( 89 ) DIV - COALESCE ( - 55, - 61 - COUNT( * ) DIV 4 * + COALESCE ( + 98, - 89 + - COUNT( * ) ) * + 30 * + CASE 30 WHEN - + 96 THEN + 7 END + 49 ) - - 15
----
115

skipif mysql # not compatible
query I rowsort label-5783
SELECT + + ( + + 62 ) * ( 89 ) / - COALESCE ( - 55, - 61 - COUNT ( * ) / 4 * + COALESCE ( + 98, - 89 + - COUNT ( * ) ) * + 30 * + CASE 30 WHEN - + 96 THEN + 7 END + 49 ) - - 15
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5784
SELECT ALL + 66 * - 19 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL + 66 * - 19 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT DISTINCT MAX( ALL + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT MAX ( ALL + 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT NULLIF ( - + COUNT( * ), + 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-5786
SELECT NULLIF ( - + COUNT ( * ), + 2 )
----
-1

query I rowsort
SELECT ALL - 84 col1
----
-84

query II rowsort
SELECT DISTINCT 92 - + 2, - 66 AS col2
----
90
-66

query II rowsort
SELECT 87 * 79, - 3 AS col0
----
6873
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT COUNT( DISTINCT + - 32 )
----
1

skipif mysql # not compatible
query I rowsort label-5790
SELECT COUNT ( DISTINCT + - 32 )
----
1

query I rowsort
SELECT + 68 + 25 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT ALL - 34 * + + ( - 47 ) + - + 4 + - COUNT( * )
----
1593

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL - 34 * + + ( - 47 ) + - + 4 + - COUNT ( * )
----
1593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5793
SELECT 28 * - 83 + + NULLIF ( COALESCE ( + CAST( NULL AS SIGNED ), 47 * ( + COUNT( - + 41 ) ) ), + - 42 / + 50 * 80 )
----
-2277

skipif mysql # not compatible
query I rowsort label-5793
SELECT 28 * - 83 + + NULLIF ( COALESCE ( + CAST ( NULL AS INTEGER ), 47 * ( + COUNT ( - + 41 ) ) ), + - 42 / + 50 * 80 )
----
-2277

query I rowsort
SELECT + - ( - - 95 ) AS col0
----
-95

query I rowsort
SELECT DISTINCT - + 99
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5796
SELECT 51 DIV + + 72
----
0

skipif mysql # not compatible
query I rowsort label-5796
SELECT 51 / + + 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5797
SELECT DISTINCT - 22, - 62 + + - 74 + - + ( + - SUM( - - CAST( NULL AS SIGNED ) ) ) * - + 22 col0
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-5797
SELECT DISTINCT - 22, - 62 + + - 74 + - + ( + - SUM ( - - CAST ( NULL AS INTEGER ) ) ) * - + 22 col0
----
-22
NULL

query I rowsort
SELECT DISTINCT - 17 * ( - - 79 )
----
-1343

query I rowsort
SELECT 34 * 12 * + 66 * 10
----
269280

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT COUNT( * ) * + 76 + + - 39 + 84
----
121

skipif mysql # not compatible
query I rowsort label-5800
SELECT COUNT ( * ) * + 76 + + - 39 + 84
----
121

query I rowsort
SELECT ALL - 5 col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5802
SELECT 41 DIV + CAST( 4 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-5802
SELECT 41 / + CAST ( 4 AS INTEGER )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT MIN( ALL - 86 ) * 84 * + 40 * + - ( - 23 )
----
-6646080

skipif mysql # not compatible
query I rowsort label-5803
SELECT MIN ( ALL - 86 ) * 84 * + 40 * + - ( - 23 )
----
-6646080

query I rowsort
SELECT DISTINCT + 27 + + ( - - 60 ) col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT DISTINCT - 55 + + COALESCE ( + 42, - ( + - 77 ) ) + - - 13 + + COUNT( * ) * - 66 + 23
----
-43

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT - 55 + + COALESCE ( + 42, - ( + - 77 ) ) + - - 13 + + COUNT ( * ) * - 66 + 23
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT + 45 * + - ( - COUNT( * ) ) + + 92
----
137

skipif mysql # not compatible
query I rowsort label-5806
SELECT + 45 * + - ( - COUNT ( * ) ) + + 92
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT DISTINCT COALESCE ( - 24, 18, - 13 * + + 95 ) * COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-5807
SELECT DISTINCT COALESCE ( - 24, 18, - 13 * + + 95 ) * COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT + 51 * NULLIF ( COUNT( * ), - COUNT( * ) + + 18 ) - 8 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-5808
SELECT + 51 * NULLIF ( COUNT ( * ), - COUNT ( * ) + + 18 ) - 8 AS col1
----
43

query II rowsort
SELECT - 59 AS col2, - 13 AS col2
----
-59
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT COUNT( * ) + 36 * CASE + MIN( + 44 ) WHEN + AVG ( ALL + 73 ) THEN NULL WHEN 23 * + 46 + COUNT( * ) + + + MIN( 17 ) + - 96 THEN + 90 ELSE 30 * + 4 + + - 20 + ( 8 ) END
----
3889

skipif mysql # not compatible
query I rowsort label-5810
SELECT COUNT ( * ) + 36 * CASE + MIN ( + 44 ) WHEN + AVG ( ALL + 73 ) THEN NULL WHEN 23 * + 46 + COUNT ( * ) + + + MIN ( 17 ) + - 96 THEN + 90 ELSE 30 * + 4 + + - 20 + ( 8 ) END
----
3889

onlyif mysql # aggregate syntax: 
query II rowsort label-5811
SELECT 14 * + COUNT( * ) * - - 98 AS col0, 54 + + COUNT( * ) - - 44 * 78
----
1372
3487

skipif mysql # not compatible
query II rowsort label-5811
SELECT 14 * + COUNT ( * ) * - - 98 AS col0, 54 + + COUNT ( * ) - - 44 * 78
----
1372
3487

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT 20 + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-5812
SELECT 20 + COUNT ( * )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5813
SELECT ALL - MIN( DISTINCT - + 41 ) - CASE + - AVG ( ALL - - ( CAST( + NULLIF ( + 8, ( - 61 ) ) AS SIGNED ) ) ) WHEN + - 34 THEN + 61 END + - SUM( ALL 5 ) * + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL - MIN ( DISTINCT - + 41 ) - CASE + - AVG ( ALL - - ( CAST ( + NULLIF ( + 8, ( - 61 ) ) AS INTEGER ) ) ) WHEN + - 34 THEN + 61 END + - SUM ( ALL 5 ) * + + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT DISTINCT - - 77 * 75 * 50 + - MIN( DISTINCT 63 ) * + 33
----
286671

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT - - 77 * 75 * 50 + - MIN ( DISTINCT 63 ) * + 33
----
286671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5815
SELECT 33 - - - CAST( NULL AS SIGNED ) + + ( - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT 33 - - - CAST ( NULL AS INTEGER ) + + ( - 3 )
----
NULL

query I rowsort
SELECT + 16 * 86 AS col2
----
1376

query I rowsort
SELECT - - COALESCE ( - + 23, 50 + + 66, - + 55 ) AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5818
SELECT + ( - + COUNT( * ) ) + + 53 + 69 DIV - + 2 + COUNT( * ) * 99 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-5818
SELECT + ( - + COUNT ( * ) ) + + 53 + 69 / - + 2 + COUNT ( * ) * 99 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT DISTINCT 4 * - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT 4 * - COUNT ( * ) AS col2
----
-4

query I rowsort
SELECT 20 * - + 54 AS col1
----
-1080

query I rowsort
SELECT + 82 * + 81 AS col0
----
6642

query II rowsort
SELECT 79 * + + 27 + - 41 AS col1, 9 + - 50 AS col0
----
2092
-41

query I rowsort
SELECT ALL 22 * + 18
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT DISTINCT - 5 * + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT - 5 * + COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT 81 * + - NULLIF ( + CASE + COUNT( * ) WHEN - - COUNT( * ) THEN COUNT( * ) * + + 56 ELSE NULL END, - + 47 ) * + + 82 + + + 37 + COUNT( * ) + + + 84 + - 57 + - + ( + 89 ) * - + 30 * - + COUNT( * ) AS col0
----
-374557

skipif mysql # not compatible
query I rowsort label-5825
SELECT 81 * + - NULLIF ( + CASE + COUNT ( * ) WHEN - - COUNT ( * ) THEN COUNT ( * ) * + + 56 ELSE NULL END, - + 47 ) * + + 82 + + + 37 + COUNT ( * ) + + + 84 + - 57 + - + ( + 89 ) * - + 30 * - + COUNT ( * ) AS col0
----
-374557

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5826
SELECT - 66 * + CAST( NULL AS SIGNED ) + + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT - 66 * + CAST ( NULL AS INTEGER ) + + + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT DISTINCT - COUNT( * ) * 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT - COUNT ( * ) * 10 AS col2
----
-10

query II rowsort
SELECT ALL - - 49, - 17 AS col0
----
49
-17

query I rowsort
SELECT - 32 * 16 * 13
----
-6656

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT ALL - CASE - 68 WHEN NULLIF ( - 44, - 65 ) * + 29 THEN NULL WHEN + COUNT( * ) + 76 THEN - 42 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL - CASE - 68 WHEN NULLIF ( - 44, - 65 ) * + 29 THEN NULL WHEN + COUNT ( * ) + 76 THEN - 42 ELSE NULL END
----
NULL

query I rowsort
SELECT + + ( - 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT SUM( ALL + ( + ( + 31 ) ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5832
SELECT SUM ( ALL + ( + ( + 31 ) ) ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT - 80 * - 16 * - COUNT( 75 ) + - + 11 * - 40 / CASE + + 39 WHEN - 53 THEN NULL WHEN - 69 THEN COUNT( * ) * - 5 + - 13 WHEN - 98 / - CASE - 17 WHEN - + 94 THEN NULL ELSE - 91 END THEN NULL END * - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5833
SELECT - 80 * - 16 * - COUNT ( 75 ) + - + 11 * - 40 / CASE + + 39 WHEN - 53 THEN NULL WHEN - 69 THEN COUNT ( * ) * - 5 + - 13 WHEN - 98 / - CASE - 17 WHEN - + 94 THEN NULL ELSE - 91 END THEN NULL END * - 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT SUM( - 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-5834
SELECT SUM ( - 89 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT 79 * + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5835
SELECT 79 * + COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5836
SELECT COUNT( * ), 74 * - 67 AS col2
----
1
-4958

skipif mysql # not compatible
query II rowsort label-5836
SELECT COUNT ( * ), 74 * - 67 AS col2
----
1
-4958

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5837
SELECT + 29 DIV + 26 - + ( + - 82 ) AS col2, COUNT( * ) * - 27 * + 61 col2
----
83
-1647

skipif mysql # not compatible
query II rowsort label-5837
SELECT + 29 / + 26 - + ( + - 82 ) AS col2, COUNT ( * ) * - 27 * + 61 col2
----
83
-1647

query I rowsort
SELECT DISTINCT 37 + - 7 * - 62 AS col1
----
471

query I rowsort
SELECT ALL - ( 30 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5840
SELECT ALL 72 + + CAST( NULL AS SIGNED ), + 85 DIV + - 91 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5840
SELECT ALL 72 + + CAST ( NULL AS INTEGER ), + 85 / + - 91 AS col2
----
NULL
0

query I rowsort
SELECT DISTINCT 30 * - 77 AS col1
----
-2310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5842
SELECT ALL - COUNT( * ) + - + 2 + + - 91 + - MIN( ALL 5 ) + - 18 + - + 19 DIV + 66 AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL - COUNT ( * ) + - + 2 + + - 91 + - MIN ( ALL 5 ) + - 18 + - + 19 / + 66 AS col0
----
-117

query I rowsort
SELECT 95 * - 87
----
-8265

query I rowsort
SELECT ALL - 69 * - + ( 31 ) col1
----
2139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5845
SELECT 69 + + + COALESCE ( - 48, - 73, + 8 DIV + 22 * - + COUNT( * ) DIV + 66 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-5845
SELECT 69 + + + COALESCE ( - 48, - 73, + 8 / + 22 * - + COUNT ( * ) / + 66 ) AS col0
----
21

query I rowsort
SELECT 4 - + 29 + 99
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5847
SELECT 98, - MAX( DISTINCT 76 ) AS col0
----
98
-76

skipif mysql # not compatible
query II rowsort label-5847
SELECT 98, - MAX ( DISTINCT 76 ) AS col0
----
98
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT + 84 * - CASE + - ( + - 3 ) WHEN - 11 * - COUNT( * ) THEN NULL WHEN - - ( COUNT( * ) ) THEN - 82 END + 31 / + - ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5848
SELECT + 84 * - CASE + - ( + - 3 ) WHEN - 11 * - COUNT ( * ) THEN NULL WHEN - - ( COUNT ( * ) ) THEN - 82 END + 31 / + - ( + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5849
SELECT 85 * CAST( + 65 AS SIGNED ) AS col0
----
5525

skipif mysql # not compatible
query I rowsort label-5849
SELECT 85 * CAST ( + 65 AS INTEGER ) AS col0
----
5525

query II rowsort
SELECT 41 AS col2, + 79 + + + 29 AS col0
----
41
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5851
SELECT DISTINCT + COUNT( * ) DIV - 23 AS col0, 76 col2
----
0
76

skipif mysql # not compatible
query II rowsort label-5851
SELECT DISTINCT + COUNT ( * ) / - 23 AS col0, 76 col2
----
0
76

query II rowsort
SELECT DISTINCT 64, + 95 AS col1
----
64
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT - MAX( - 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-5853
SELECT - MAX ( - 98 ) AS col0
----
98

query I rowsort
SELECT - 39 + - - 29 AS col2
----
-10

query I rowsort
SELECT + - 89 + 49 - + - 37
----
-3

query I rowsort
SELECT ALL - - ( - 91 ) * 65 - + 51 AS col1
----
-5966

query II rowsort
SELECT - 30, 8 col0
----
-30
8

query I rowsort
SELECT - + 86 + - + 78 AS col1
----
-164

query I rowsort
SELECT DISTINCT CASE - 69 WHEN + 69 - - 87 * 26 THEN NULL WHEN 93 + 1 THEN ( - - 3 ) END AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 9 AS col1, 12 * - 9
----
9
-108

query II rowsort
SELECT + + 37 + - 25 AS col0, + 96 AS col2
----
12
96

query I rowsort
SELECT DISTINCT 81 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT + - 62 + - - COUNT( * ) + + 88 + + 28
----
55

skipif mysql # not compatible
query I rowsort label-5863
SELECT + - 62 + - - COUNT ( * ) + + 88 + + 28
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT + 25 - + ( - COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-5864
SELECT + 25 - + ( - COUNT ( * ) )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5865
SELECT DISTINCT 95 DIV 63 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT 95 / 63 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5866
SELECT + 25 DIV COUNT( * ) * - + 90 + COUNT( * ) AS col1
----
-2249

skipif mysql # not compatible
query I rowsort label-5866
SELECT + 25 / COUNT ( * ) * - + 90 + COUNT ( * ) AS col1
----
-2249

query I rowsort
SELECT ( + - 76 )
----
-76

query I rowsort
SELECT + 2 + - - 90
----
92

query I rowsort
SELECT 73 * - - ( - 9 ) + - 38 AS col0
----
-695

query I rowsort
SELECT DISTINCT 25 * - 14
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT ALL ( - 4 ) * - COUNT( * ) + + 2 + + MAX( 8 ) + + - 44
----
-30

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL ( - 4 ) * - COUNT ( * ) + + 2 + + MAX ( 8 ) + + - 44
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT + 66 + MAX( DISTINCT + 56 )
----
122

skipif mysql # not compatible
query I rowsort label-5872
SELECT + 66 + MAX ( DISTINCT + 56 )
----
122

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5873
SELECT + COUNT( * ) * 22, 50 * MIN( DISTINCT CAST( NULL AS DECIMAL ) ) AS col1
----
22
NULL

skipif mysql # not compatible
query II rowsort label-5873
SELECT + COUNT ( * ) * 22, 50 * MIN ( DISTINCT CAST ( NULL AS REAL ) ) AS col1
----
22
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5874
SELECT 10 * 40 * + 4 + 8 + + 44 DIV + + 86 * 97 DIV - 5 col1
----
1608

skipif mysql # not compatible
query I rowsort label-5874
SELECT 10 * 40 * + 4 + 8 + + 44 / + + 86 * 97 / - 5 col1
----
1608

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT + COALESCE ( COUNT( * ), + + 15 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5875
SELECT + COALESCE ( COUNT ( * ), + + 15 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5876
SELECT - 24 * + ( - 45 ) * + SUM( ( + COALESCE ( CAST( + 61 AS SIGNED ), + CAST( NULL AS SIGNED ) ) ) ) + + + COALESCE ( - 52, + ( + 20 ), - 22 ) * + + 53 + - COUNT( * ) col0
----
63123

skipif mysql # not compatible
query I rowsort label-5876
SELECT - 24 * + ( - 45 ) * + SUM ( ( + COALESCE ( CAST ( + 61 AS INTEGER ), + CAST ( NULL AS INTEGER ) ) ) ) + + + COALESCE ( - 52, + ( + 20 ), - 22 ) * + + 53 + - COUNT ( * ) col0
----
63123

query I rowsort
SELECT ALL 37 * - 94 - ( 29 ) AS col1
----
-3507

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT CASE ( - - COUNT( 17 ) ) WHEN + 11 THEN NULL ELSE 34 END
----
34

skipif mysql # not compatible
query I rowsort label-5878
SELECT CASE ( - - COUNT ( 17 ) ) WHEN + 11 THEN NULL ELSE 34 END
----
34

query I rowsort
SELECT + NULLIF ( - - 75, 76 ) * 98
----
7350

query I rowsort
SELECT - 6 * + + 79
----
-474

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT ALL + 38 * + NULLIF ( - 92, + - COUNT( * ) ) AS col0
----
-3496

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL + 38 * + NULLIF ( - 92, + - COUNT ( * ) ) AS col0
----
-3496

query I rowsort
SELECT + 18 + + 48
----
66

query I rowsort
SELECT ALL 74 * 99 * - 86 - + + 11
----
-630047

query I rowsort
SELECT 38 * + + 1 + + - 41 AS col1
----
-3

query I rowsort
SELECT - 71 * + + 70 AS col2
----
-4970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT ALL 41 * + + CAST( NULL AS SIGNED ) + - - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL 41 * + + CAST ( NULL AS INTEGER ) + - - 39 AS col1
----
NULL

query I rowsort
SELECT ALL + 36 col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5888
SELECT ALL + 46 DIV + - ( - + CAST( - 76 AS SIGNED ) ) * + + 12 + - + COUNT( * ) DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL + 46 / + - ( - + CAST ( - 76 AS INTEGER ) ) * + + 12 + - + COUNT ( * ) / + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT - + COUNT( * ) * - - MIN( DISTINCT 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-5889
SELECT - + COUNT ( * ) * - - MIN ( DISTINCT 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT - + CASE - - COUNT( * ) WHEN + COUNT( * ) THEN 76 WHEN + 99 + + 83 * + + 70 THEN NULL ELSE - 72 - - COUNT( * ) END - - + MAX( DISTINCT 81 ) + + + ( + + COUNT( * ) ) * 14 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-5890
SELECT - + CASE - - COUNT ( * ) WHEN + COUNT ( * ) THEN 76 WHEN + 99 + + 83 * + + 70 THEN NULL ELSE - 72 - - COUNT ( * ) END - - + MAX ( DISTINCT 81 ) + + + ( + + COUNT ( * ) ) * 14 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5891
SELECT - - CAST( COALESCE ( + 46, - COALESCE ( + CAST( NULL AS SIGNED ), - - 92, NULLIF ( - COUNT( * ), + + 77 * - - COUNT( DISTINCT + 33 ) + + 34 ) + 85 ) + + + 20 ) AS SIGNED ) * + - 47, 48 AS col0
----
-2162
48

skipif mysql # not compatible
query II rowsort label-5891
SELECT - - CAST ( COALESCE ( + 46, - COALESCE ( + CAST ( NULL AS INTEGER ), - - 92, NULLIF ( - COUNT ( * ), + + 77 * - - COUNT ( DISTINCT + 33 ) + + 34 ) + 85 ) + + + 20 ) AS INTEGER ) * + - 47, 48 AS col0
----
-2162
48

query II rowsort
SELECT ALL - 55 + - 73 AS col2, 24 + 67
----
-128
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5893
SELECT ALL - + ( - 27 ) + - 45 + 54 DIV MAX( - 36 ) + - - 51
----
32

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL - + ( - 27 ) + - 45 + 54 / MAX ( - 36 ) + - - 51
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5894
SELECT - 53 * 37 - - COALESCE ( + - 24, - - 31 + + 63 - + + 84 ) + + 98 * COUNT( + 68 ) * - COALESCE ( + 76, + NULLIF ( 55, - 51 * 70 ) * - 41, + - 2 * + 37 DIV - COUNT( * ) ) * + + COUNT( * )
----
-9433

skipif mysql # not compatible
query I rowsort label-5894
SELECT - 53 * 37 - - COALESCE ( + - 24, - - 31 + + 63 - + + 84 ) + + 98 * COUNT ( + 68 ) * - COALESCE ( + 76, + NULLIF ( 55, - 51 * 70 ) * - 41, + - 2 * + 37 / - COUNT ( * ) ) * + + COUNT ( * )
----
-9433

onlyif mysql # aggregate syntax: 
query II rowsort label-5895
SELECT - SUM( 63 ), 41 AS col2
----
-63
41

skipif mysql # not compatible
query II rowsort label-5895
SELECT - SUM ( 63 ), 41 AS col2
----
-63
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5896
SELECT ALL - 19 + + 7 DIV + COUNT( * ) col1
----
-12

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL - 19 + + 7 / + COUNT ( * ) col1
----
-12

query I rowsort
SELECT ALL + 61 * 49 * - CASE 37 WHEN 25 * - 57 THEN + + ( + - 17 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT - CASE - COUNT( * ) WHEN + + 27 + ( - 71 ) THEN + 40 * - 46 + + 34 ELSE + 23 END
----
-23

skipif mysql # not compatible
query I rowsort label-5898
SELECT - CASE - COUNT ( * ) WHEN + + 27 + ( - 71 ) THEN + 40 * - 46 + + 34 ELSE + 23 END
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT DISTINCT + 95 + + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT + 95 + + COUNT ( * )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT ALL - 41 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL - 41 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT + SUM( ALL 49 )
----
49

skipif mysql # not compatible
query I rowsort label-5901
SELECT + SUM ( ALL 49 )
----
49

query I rowsort
SELECT DISTINCT + ( + 68 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT ALL + 51 DIV 40
----
1

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL + 51 / 40
----
1

query I rowsort
SELECT + 33 * + 43 + + - 62
----
1357

onlyif mysql # DIV for integer division: 
query I rowsort label-5905
SELECT + 36 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-5905
SELECT + 36 / - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT - ( - - ( - + 57 ) ) * 46 * + 90 * COUNT( ALL - 96 )
----
235980

skipif mysql # not compatible
query I rowsort label-5906
SELECT - ( - - ( - + 57 ) ) * 46 * + 90 * COUNT ( ALL - 96 )
----
235980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5907
SELECT 51 DIV 95 * + SUM( 21 ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5907
SELECT 51 / 95 * + SUM ( 21 ) + + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5908
SELECT ALL 64 DIV - 96 - - + 29
----
29

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL 64 / - 96 - - + 29
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5909
SELECT CAST( + ( 19 ) AS SIGNED ) AS col0, 60 + - 35 + - + ( 89 ) * 1 * + 12 * - 49
----
19
52357

skipif mysql # not compatible
query II rowsort label-5909
SELECT CAST ( + ( 19 ) AS INTEGER ) AS col0, 60 + - 35 + - + ( 89 ) * 1 * + 12 * - 49
----
19
52357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5910
SELECT + CAST( ( 11 ) AS SIGNED ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5910
SELECT + CAST ( ( 11 ) AS INTEGER ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5911
SELECT ALL MIN( DISTINCT 7 ) * - COUNT( * ) AS col0, COUNT( * ) AS col1
----
-7
1

skipif mysql # not compatible
query II rowsort label-5911
SELECT ALL MIN ( DISTINCT 7 ) * - COUNT ( * ) AS col0, COUNT ( * ) AS col1
----
-7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT COUNT( * ) + + - 2
----
-1

skipif mysql # not compatible
query I rowsort label-5912
SELECT COUNT ( * ) + + - 2
----
-1

query I rowsort
SELECT 52 * - - 55 + - 13 + - 59 AS col1
----
2788

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT ALL 64 - + CASE + 62 WHEN 53 / + - 35 * SUM( ALL 49 ) THEN + 98 END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL 64 - + CASE + 62 WHEN 53 / + - 35 * SUM ( ALL 49 ) THEN + 98 END + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT ALL COUNT( * ) * - + 25
----
-25

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL COUNT ( * ) * - + 25
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT 53 * - COUNT( * ) * + 39 + + 7 + + 25 - ( + 72 ) + + + 24 * - - 58 * 76
----
103685

skipif mysql # not compatible
query I rowsort label-5916
SELECT 53 * - COUNT ( * ) * + 39 + + 7 + + 25 - ( + 72 ) + + + 24 * - - 58 * 76
----
103685

query I rowsort
SELECT 7 - - + 12 + - 42 * - 95 * + 5 col2
----
19969

query I rowsort
SELECT + 96 + 96 * + - 3
----
-192

query I rowsort
SELECT + ( + NULLIF ( 15, 84 ) )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT ( + - 93 ) + + COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-5920
SELECT ( + - 93 ) + + COUNT ( * ) AS col1
----
-92

query II rowsort
SELECT - 14, 87 * 4 col2
----
-14
348

query I rowsort
SELECT DISTINCT 27 + 58 AS col0
----
85

query I rowsort
SELECT DISTINCT + + 32 + 8
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT DISTINCT - 73 * 8 + + COUNT( * ) + - ( - 27 ) AS col2
----
-556

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT - 73 * 8 + + COUNT ( * ) + - ( - 27 ) AS col2
----
-556

query I rowsort
SELECT ALL 54 + - 36 AS col0
----
18

query II rowsort
SELECT DISTINCT - 23 + + ( 4 ), - 11 AS col1
----
-19
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5927
SELECT 68, + COUNT( * ) AS col1
----
68
1

skipif mysql # not compatible
query II rowsort label-5927
SELECT 68, + COUNT ( * ) AS col1
----
68
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5928
SELECT COUNT( * ) * - CAST( NULL AS DECIMAL ) + - 44 * - ( + - 44 ) + - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT COUNT ( * ) * - CAST ( NULL AS REAL ) + - 44 * - ( + - 44 ) + - 71 AS col0
----
NULL

query I rowsort
SELECT - ( - 54 ) AS col0
----
54

query I rowsort
SELECT 66 + - 4 * + - 59
----
302

query I rowsort
SELECT ALL 43 + + 9 AS col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5932
SELECT 70 + + 98 - - 76 + + + MIN( - + 8 ) * - 8 + - 7 * - 68 * MAX( DISTINCT + 52 ), 95 + - ( - 9 ) AS col0
----
25060
104

skipif mysql # not compatible
query II rowsort label-5932
SELECT 70 + + 98 - - 76 + + + MIN ( - + 8 ) * - 8 + - 7 * - 68 * MAX ( DISTINCT + 52 ), 95 + - ( - 9 ) AS col0
----
25060
104

query I rowsort
SELECT ALL 96 - + + COALESCE ( + + ( + ( - 2 ) ), + 84, 28 ) + 89 * + 49
----
4459

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT 79 + - 88 * - MIN( + 24 ) AS col2
----
2191

skipif mysql # not compatible
query I rowsort label-5934
SELECT 79 + - 88 * - MIN ( + 24 ) AS col2
----
2191

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL - COUNT( * ) - + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL - COUNT ( * ) - + COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT DISTINCT - 28 - + 15 AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5937
SELECT ALL - 10 - - 95 - - + ( - - CASE 3 WHEN - 0 THEN NULL WHEN AVG ( ALL - 9 ) + - - 19 THEN - ( - 27 ) * + CAST( NULL AS SIGNED ) + + 94 + - + ( 38 ) * + CASE + CASE - - 73 WHEN - ( - - 60 ) THEN + + CAST( NULL AS DECIMAL ) WHEN + + ( COUNT( * ) ) THEN NULL END WHEN - 75 THEN + 12 * + - 17 - + + MIN( DISTINCT 5 ) * + COUNT( * ) * - 68 END ELSE 15 * + ( 12 ) END ) + + 97 * - 6 * ( 80 * COUNT( * ) ) * + 71
----
-3305495

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL - 10 - - 95 - - + ( - - CASE 3 WHEN - 0 THEN NULL WHEN AVG ( ALL - 9 ) + - - 19 THEN - ( - 27 ) * + CAST ( NULL AS INTEGER ) + + 94 + - + ( 38 ) * + CASE + CASE - - 73 WHEN - ( - - 60 ) THEN + + CAST ( NULL AS REAL ) WHEN + + ( COUNT ( * ) ) THEN NULL END WHEN - 75 THEN + 12 * + - 17 - + + MIN ( DISTINCT 5 ) * + COUNT ( * ) * - 68 END ELSE 15 * + ( 12 ) END ) + + 97 * - 6 * ( 80 * COUNT ( * ) ) * + 71
----
-3305495

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT COUNT( * ) + - COUNT( DISTINCT + - 31 )
----
0

skipif mysql # not compatible
query I rowsort label-5938
SELECT COUNT ( * ) + - COUNT ( DISTINCT + - 31 )
----
0

query I rowsort
SELECT 85 * + 36 AS col0
----
3060

query I rowsort
SELECT NULLIF ( + 37, 93 + + - 79 ) * - 4
----
-148

query I rowsort
SELECT DISTINCT + 38 * - 4
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT 47 * - COUNT( * ) + 25 * 81 * + 99
----
200428

skipif mysql # not compatible
query I rowsort label-5942
SELECT 47 * - COUNT ( * ) + 25 * 81 * + 99
----
200428

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT ALL + COUNT( * ) * + 45
----
45

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL + COUNT ( * ) * + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT 10 * + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-5944
SELECT 10 * + COUNT ( * )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5945
SELECT DISTINCT 23 DIV - - 53 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT 23 / - - 53 * COUNT ( * ) AS col1
----
0

query I rowsort
SELECT 23 * 3
----
69

query I rowsort
SELECT 0 * + 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT + COUNT( * ) * 12 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-5948
SELECT + COUNT ( * ) * 12 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT DISTINCT - CASE + 85 WHEN + - 13 * COALESCE ( + COUNT( * ), MAX( 69 ) - 30 - + + ( 7 ) - 0 + 66 * - 9 ) + - 65 * 78 THEN - ( + 83 ) WHEN + + 84 + + 68 + - ( MAX( DISTINCT - NULLIF ( CASE 67 WHEN - - 55 THEN + 38 * - - 82 ELSE - 52 END, + 19 ) ) ) THEN NULL ELSE - 8 END
----
8

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT - CASE + 85 WHEN + - 13 * COALESCE ( + COUNT ( * ), MAX ( 69 ) - 30 - + + ( 7 ) - 0 + 66 * - 9 ) + - 65 * 78 THEN - ( + 83 ) WHEN + + 84 + + 68 + - ( MAX ( DISTINCT - NULLIF ( CASE 67 WHEN - - 55 THEN + 38 * - - 82 ELSE - 52 END, + 19 ) ) ) THEN NULL ELSE - 8 END
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5950
SELECT ALL 59 + + COUNT( * ) DIV + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL 59 + + COUNT ( * ) / + COUNT ( * )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5951
SELECT 2 * 70 DIV + 38
----
3

skipif mysql # not compatible
query I rowsort label-5951
SELECT 2 * 70 / + 38
----
3

query I rowsort
SELECT ALL - - 26 + - 14
----
12

query I rowsort
SELECT DISTINCT + 77 * + - 61 AS col0
----
-4697

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5954
SELECT ALL - 19 + 89 AS col1, 99 * - 31 + - 19 DIV + - 38 DIV + + COUNT( * ) AS col0
----
70
-3069

skipif mysql # not compatible
query II rowsort label-5954
SELECT ALL - 19 + 89 AS col1, 99 * - 31 + - 19 / + - 38 / + + COUNT ( * ) AS col0
----
70
-3069

onlyif mysql # aggregate syntax: 
query II rowsort label-5955
SELECT + SUM( ALL + 86 ) AS col0, ( + 93 )
----
86
93

skipif mysql # not compatible
query II rowsort label-5955
SELECT + SUM ( ALL + 86 ) AS col0, ( + 93 )
----
86
93

query II rowsort
SELECT ALL + 44 * - 10 AS col2, 19
----
-440
19

onlyif mysql # aggregate syntax: 
query II rowsort label-5957
SELECT - NULLIF ( - + 48, - 94 + - + 78 ) col0, COUNT( DISTINCT - 19 ) AS col0
----
48
1

skipif mysql # not compatible
query II rowsort label-5957
SELECT - NULLIF ( - + 48, - 94 + - + 78 ) col0, COUNT ( DISTINCT - 19 ) AS col0
----
48
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT - MIN( 80 ) + + + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-5958
SELECT - MIN ( 80 ) + + + COUNT ( * )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5959
SELECT ALL CAST( - + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL CAST ( - + 0 AS INTEGER )
----
0

query I rowsort
SELECT 2 + - 29
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-5961
SELECT - MAX( DISTINCT - 18 ), - 16 AS col1
----
18
-16

skipif mysql # not compatible
query II rowsort label-5961
SELECT - MAX ( DISTINCT - 18 ), - 16 AS col1
----
18
-16

query I rowsort
SELECT DISTINCT + 92 - + 26 + - 77 AS col1
----
-11

query I rowsort
SELECT DISTINCT + 12 - + - 23 AS col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5964
SELECT DISTINCT 14 DIV + + ( + COUNT( DISTINCT 86 ) )
----
14

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT 14 / + + ( + COUNT ( DISTINCT 86 ) )
----
14

query I rowsort
SELECT ALL - 23 * - 84 col2
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT ALL 49 * + COUNT( 47 ) * - 53 AS col2
----
-2597

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL 49 * + COUNT ( 47 ) * - 53 AS col2
----
-2597

onlyif mysql # DIV for integer division: 
query I rowsort label-5967
SELECT 95 DIV + - 28
----
-3

skipif mysql # not compatible
query I rowsort label-5967
SELECT 95 / + - 28
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT - SUM( + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-5968
SELECT - SUM ( + 12 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5969
SELECT ALL COUNT( * ) - - 77 - + CAST( - 9 AS SIGNED ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL COUNT ( * ) - - 77 - + CAST ( - 9 AS INTEGER ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT 79 * - SUM( - 40 ) AS col1
----
3160

skipif mysql # not compatible
query I rowsort label-5970
SELECT 79 * - SUM ( - 40 ) AS col1
----
3160

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ALL MIN( DISTINCT - + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL MIN ( DISTINCT - + 95 )
----
-95

query I rowsort
SELECT - 77 * - + NULLIF ( + - 19, - 33 )
----
-1463

onlyif mysql # DIV for integer division: 
query II rowsort label-5973
SELECT ALL - ( - 51 ) DIV 89, - 39 + 48 + - 6 AS col2
----
0
3

skipif mysql # not compatible
query II rowsort label-5973
SELECT ALL - ( - 51 ) / 89, - 39 + 48 + - 6 AS col2
----
0
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5974
SELECT DISTINCT 0 DIV 26 * 5 DIV - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT 0 / 26 * 5 / - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5975
SELECT ALL + COUNT( * ) AS col1, - 95 * 24 DIV + 69 + - 8 + + MIN( ALL - - 59 ) * + 38 AS col2
----
1
2201

skipif mysql # not compatible
query II rowsort label-5975
SELECT ALL + COUNT ( * ) AS col1, - 95 * 24 / + 69 + - 8 + + MIN ( ALL - - 59 ) * + 38 AS col2
----
1
2201

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5976
SELECT + 98, - ( + CAST( 80 AS SIGNED ) ) AS col0
----
98
-80

skipif mysql # not compatible
query II rowsort label-5976
SELECT + 98, - ( + CAST ( 80 AS INTEGER ) ) AS col0
----
98
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5977
SELECT NULLIF ( - + 1, - 86 * CAST( + + 15 AS SIGNED ) / + ( - 66 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5977
SELECT NULLIF ( - + 1, - 86 * CAST ( + + 15 AS INTEGER ) / + ( - 66 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5978
SELECT ALL - ( + ( + 4 ) ) * - 70 + + ( 68 ) + - CASE + 80 WHEN - 88 / + 49 THEN 77 END + + CAST( + 48 AS SIGNED ) * ( - + 44 ) * - 60 + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL - ( + ( + 4 ) ) * - 70 + + ( 68 ) + - CASE + 80 WHEN - 88 / + 49 THEN 77 END + + CAST ( + 48 AS INTEGER ) * ( - + 44 ) * - 60 + 34
----
NULL

query I rowsort
SELECT 89 * + 21 + + - 82 * + - 5 AS col1
----
2279

query I rowsort
SELECT ALL - 16 * - 81 col1
----
1296

onlyif mysql # DIV for integer division: 
query I rowsort label-5981
SELECT - 92 DIV 49 * + - 81 + - - ( - 91 )
----
-10

skipif mysql # not compatible
query I rowsort label-5981
SELECT - 92 / 49 * + - 81 + - - ( - 91 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT - MAX( ALL 45 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-5982
SELECT - MAX ( ALL 45 ) AS col0
----
-45

query I rowsort
SELECT DISTINCT + - 91 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ALL + CASE - COUNT( * ) WHEN 71 + + + 35 + COUNT( * ) - - + 51 + + + 93 THEN NULL WHEN - - AVG ( + + 32 ) + + - 64 + + 41 THEN - 22 * - 80 / - + 93 * - 96 + - + COALESCE ( - - 91, 52 * + + 74 + + 77 + + 39 + COUNT( * ) + 84 + - - 88 * 75 / + 19 + - - 72 * - - 7 + + 29 + - ( NULLIF ( 81, - 34 ) ) / COUNT( 18 ), 11 / ( + 90 ) ) + MAX( - ( 13 ) ) * - COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL + CASE - COUNT ( * ) WHEN 71 + + + 35 + COUNT ( * ) - - + 51 + + + 93 THEN NULL WHEN - - AVG ( + + 32 ) + + - 64 + + 41 THEN - 22 * - 80 / - + 93 * - 96 + - + COALESCE ( - - 91, 52 * + + 74 + + 77 + + 39 + COUNT ( * ) + 84 + - - 88 * 75 / + 19 + - - 72 * - - 7 + + 29 + - ( NULLIF ( 81, - 34 ) ) / COUNT ( 18 ), 11 / ( + 90 ) ) + MAX ( - ( 13 ) ) * - COUNT ( * ) END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5985
SELECT ( + - COALESCE ( + 56, 91 * - 15, - 53, NULLIF ( + - 34, + 32 * + AVG ( NULLIF ( - CAST( + - 22 AS SIGNED ), + 91 ) ) * - 95 * - - 2 ) * - - 42 * + - 98 ) ) AS col1, 95
----
-56
95

skipif mysql # not compatible
query II rowsort label-5985
SELECT ( + - COALESCE ( + 56, 91 * - 15, - 53, NULLIF ( + - 34, + 32 * + AVG ( NULLIF ( - CAST ( + - 22 AS INTEGER ), + 91 ) ) * - 95 * - - 2 ) * - - 42 * + - 98 ) ) AS col1, 95
----
-56
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT ALL + COUNT( * ) * - - 65 + + + ( + + 98 )
----
163

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL + COUNT ( * ) * - - 65 + + + ( + + 98 )
----
163

query I rowsort
SELECT + - 47 col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5988
SELECT ALL ( + + 37 ) * CASE + 64 WHEN 74 THEN + + 61 END * + ( + CASE - 0 WHEN - - 31 THEN 52 ELSE - + MAX( + + 58 ) END ) * - + 53 * COALESCE ( + 72, - + 79 ) * - 68 - - + 33 * - 23 * 95 * + ( - CAST( - + 8 AS SIGNED ) ) + - ( + + 84 ) + + ( - 87 ) + + 39 + + 91 + 77 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5988
SELECT ALL ( + + 37 ) * CASE + 64 WHEN 74 THEN + + 61 END * + ( + CASE - 0 WHEN - - 31 THEN 52 ELSE - + MAX ( + + 58 ) END ) * - + 53 * COALESCE ( + 72, - + 79 ) * - 68 - - + 33 * - 23 * 95 * + ( - CAST ( - + 8 AS INTEGER ) ) + - ( + + 84 ) + + ( - 87 ) + + 39 + + 91 + 77 / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT - + NULLIF ( - 62, + 26 ) + - COUNT( * ) + NULLIF ( + 49, - + COUNT( * ) ) * - + 69 + + 68
----
-3252

skipif mysql # not compatible
query I rowsort label-5989
SELECT - + NULLIF ( - 62, + 26 ) + - COUNT ( * ) + NULLIF ( + 49, - + COUNT ( * ) ) * - + 69 + + 68
----
-3252

query I rowsort
SELECT + - 24 col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5991
SELECT ALL - COUNT( * ) DIV + NULLIF ( + MAX( 24 ), 33 ) * - + 76 - + MAX( + 76 ) AS col1, + 5 * - COUNT( * )
----
-76
-5

skipif mysql # not compatible
query II rowsort label-5991
SELECT ALL - COUNT ( * ) / + NULLIF ( + MAX ( 24 ), 33 ) * - + 76 - + MAX ( + 76 ) AS col1, + 5 * - COUNT ( * )
----
-76
-5

query I rowsort
SELECT ALL - - 73 * 50
----
3650

query I rowsort
SELECT - 47 + 8 + 69 AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5994
SELECT ALL + + 6 DIV + - 50 + - - 74
----
74

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL + + 6 / + - 50 + - - 74
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT + ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5995
SELECT + ( COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT - 60 + - 95 + ( + 92 ) AS col1
----
-63

query I rowsort
SELECT DISTINCT + 30 * - 2 * + 9 * - 66 + + 13 AS col0
----
35653

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT ALL - 71 * + - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL - 71 * + - COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT + + COUNT( * ) * + 1
----
1

skipif mysql # not compatible
query I rowsort label-5999
SELECT + + COUNT ( * ) * + 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT DISTINCT - 64 * - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT - 64 * - COUNT ( * )
----
64

query I rowsort
SELECT - 14 * 45
----
-630

query I rowsort
SELECT + 20 * + 8 AS col1
----
160

query I rowsort
SELECT - 31 + + 51 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT - NULLIF ( COUNT( * ), + - 38 + - AVG ( DISTINCT + COALESCE ( - 26, + 10 + 16 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6004
SELECT - NULLIF ( COUNT ( * ), + - 38 + - AVG ( DISTINCT + COALESCE ( - 26, + 10 + 16 ) ) )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6005
SELECT + 96 + - 3, 26 DIV + 92 AS col0
----
93
0

skipif mysql # not compatible
query II rowsort label-6005
SELECT + 96 + - 3, 26 / + 92 AS col0
----
93
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT + 84 * - 56 * MAX( - 61 ) col2
----
286944

skipif mysql # not compatible
query I rowsort label-6006
SELECT + 84 * - 56 * MAX ( - 61 ) col2
----
286944

query I rowsort
SELECT + 90 * - 18 col0
----
-1620

onlyif mysql # aggregate syntax: 
query II rowsort label-6008
SELECT ALL 29 AS col1, + 30 / + CASE WHEN NOT + COUNT( * ) <> NULL THEN 39 ELSE NULL END AS col0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-6008
SELECT ALL 29 AS col1, + 30 / + CASE WHEN NOT + COUNT ( * ) <> NULL THEN 39 ELSE NULL END AS col0
----
29
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6009
SELECT + COUNT( * ) + + 79 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT + COUNT ( * ) + + 79 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6010
SELECT ALL CAST( - 71 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL CAST ( - 71 AS INTEGER )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT ALL SUM( ALL 82 )
----
82

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL SUM ( ALL 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL COUNT( * ) * + CASE + - 64 WHEN 56 THEN NULL ELSE - 54 END
----
-54

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL COUNT ( * ) * + CASE + - 64 WHEN 56 THEN NULL ELSE - 54 END
----
-54

query II rowsort
SELECT ALL 60 + 11 AS col1, - 16
----
71
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT - ( + NULLIF ( - + NULLIF ( + 88, - COUNT( * ) * 52 ), 84 ) ) col1
----
88

skipif mysql # not compatible
query I rowsort label-6014
SELECT - ( + NULLIF ( - + NULLIF ( + 88, - COUNT ( * ) * 52 ), 84 ) ) col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT + COUNT( * ) + + + 25
----
26

skipif mysql # not compatible
query I rowsort label-6015
SELECT + COUNT ( * ) + + + 25
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT ALL COUNT( * ) + 82 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL COUNT ( * ) + 82 AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6017
SELECT + 18 * - NULLIF ( + 49, - AVG ( DISTINCT + - 86 ) + - COALESCE ( 87, - CAST( - 8 AS SIGNED ) + 5 * + 72 * + 65 ) * 48 ) AS col0
----
-882

skipif mysql # not compatible
query I rowsort label-6017
SELECT + 18 * - NULLIF ( + 49, - AVG ( DISTINCT + - 86 ) + - COALESCE ( 87, - CAST ( - 8 AS INTEGER ) + 5 * + 72 * + 65 ) * 48 ) AS col0
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT + 24 + COUNT( * ) col1
----
25

skipif mysql # not compatible
query I rowsort label-6018
SELECT + 24 + COUNT ( * ) col1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6019
SELECT DISTINCT COUNT( * ) AS col0, - 93
----
1
-93

skipif mysql # not compatible
query II rowsort label-6019
SELECT DISTINCT COUNT ( * ) AS col0, - 93
----
1
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6020
SELECT CAST( - - 13 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-6020
SELECT CAST ( - - 13 AS INTEGER )
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6021
SELECT - 0 + + + 74 AS col2, CAST( NULL AS DECIMAL )
----
74
NULL

skipif mysql # not compatible
query II rowsort label-6021
SELECT - 0 + + + 74 AS col2, CAST ( NULL AS REAL )
----
74
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6022
SELECT ALL - 87 DIV 23 + - 98
----
-101

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL - 87 / 23 + - 98
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6023
SELECT CAST( - 24 AS SIGNED ) AS col0, 25 + - + COUNT( * ) + + 88 * - - 96 * - 24
----
-24
-202728

skipif mysql # not compatible
query II rowsort label-6023
SELECT CAST ( - 24 AS INTEGER ) AS col0, 25 + - + COUNT ( * ) + + 88 * - - 96 * - 24
----
-24
-202728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT + CAST( NULL AS SIGNED ) * + 58 * - ( - - 88 ) / - + 20 + - 67 * 60 * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT + CAST ( NULL AS INTEGER ) * + 58 * - ( - - 88 ) / - + 20 + - 67 * 60 * 68
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6025
SELECT ALL + COUNT( * ) DIV 76 + + 86 + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL + COUNT ( * ) / 76 + + 86 + COUNT ( * ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT + 88 * - COUNT( * ) col1
----
-88

skipif mysql # not compatible
query I rowsort label-6026
SELECT + 88 * - COUNT ( * ) col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT DISTINCT + SUM( 33 )
----
33

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT + SUM ( 33 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6028
SELECT DISTINCT - + 91 DIV + COUNT( * ) + - - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT - + 91 / + COUNT ( * ) + - - COUNT ( * )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-6029
SELECT + - 70, + ( - COUNT( * ) ) AS col2
----
-70
-1

skipif mysql # not compatible
query II rowsort label-6029
SELECT + - 70, + ( - COUNT ( * ) ) AS col2
----
-70
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6030
SELECT DISTINCT + 13 AS col1, + CAST( NULL AS SIGNED ) AS col2
----
13
NULL

skipif mysql # not compatible
query II rowsort label-6030
SELECT DISTINCT + 13 AS col1, + CAST ( NULL AS INTEGER ) AS col2
----
13
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6031
SELECT ALL - - 26 / + + 94 + + 58 * - + 43 / - - 72 + - CAST( NULL AS SIGNED ) * - 9 * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL - - 26 / + + 94 + + 58 * - + 43 / - - 72 + - CAST ( NULL AS INTEGER ) * - 9 * + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT DISTINCT + NULLIF ( - 60, - ( + COUNT( * ) ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT + NULLIF ( - 60, - ( + COUNT ( * ) ) ) AS col0
----
-60

query I rowsort
SELECT DISTINCT + 97 * 27 - 50 AS col2
----
2569

query I rowsort
SELECT + 81 * - 33
----
-2673

onlyif mysql # aggregate syntax: 
query II rowsort label-6035
SELECT DISTINCT + 21, + 0 + COUNT( * ) AS col0
----
21
1

skipif mysql # not compatible
query II rowsort label-6035
SELECT DISTINCT + 21, + 0 + COUNT ( * ) AS col0
----
21
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6036
SELECT - + 72 * + - 52 * + - CASE 26 WHEN - 60 + + + 38 + + + COUNT( * ) THEN + + ( 18 ) + + 20 WHEN 62 THEN + COUNT( * ) ELSE + 38 * - 21 + + + 41 + CAST( NULL AS SIGNED ) * - 29 END + COUNT( 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT - + 72 * + - 52 * + - CASE 26 WHEN - 60 + + + 38 + + + COUNT ( * ) THEN + + ( 18 ) + + 20 WHEN 62 THEN + COUNT ( * ) ELSE + 38 * - 21 + + + 41 + CAST ( NULL AS INTEGER ) * - 29 END + COUNT ( 50 )
----
NULL

query I rowsort
SELECT + ( 93 ) col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT DISTINCT 5 * - SUM( ALL 55 ) AS col2
----
-275

skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT 5 * - SUM ( ALL 55 ) AS col2
----
-275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6039
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + 9 + + NULLIF ( + ( - + 99 ), - + 57 * - 85 * - CAST( 70 AS SIGNED ) / COUNT( * ) ) - - 71 * + - 11 * - COUNT( * )
----
NULL
691

skipif mysql # not compatible
query II rowsort label-6039
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 9 + + NULLIF ( + ( - + 99 ), - + 57 * - 85 * - CAST ( 70 AS INTEGER ) / COUNT ( * ) ) - - 71 * + - 11 * - COUNT ( * )
----
NULL
691

query I rowsort
SELECT ALL + 1 * - 41 AS col0
----
-41

query I rowsort
SELECT + 95 * + 75 + - - 10 AS col0
----
7135

query III rowsort
SELECT ALL 2, - 45 AS col0, - 20 AS col0
----
2
-45
-20

query I rowsort
SELECT - 38 + + 68 - 86 * + + 25 AS col1
----
-2120

query I rowsort
SELECT - NULLIF ( + - 20, + 75 ) AS col2
----
20

query I rowsort
SELECT NULLIF ( - 25, 52 ) col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL + MIN( 10 ) * 35
----
350

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL + MIN ( 10 ) * 35
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT 95 * + NULLIF ( + - COUNT( * ), - ( COUNT( ALL - 77 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6047
SELECT 95 * + NULLIF ( + - COUNT ( * ), - ( COUNT ( ALL - 77 ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6048
SELECT DISTINCT COALESCE ( - 37, - + 73 * + 93 * + COUNT( * ), - 3, 27 * - 54 + 43 * + + 40 DIV + + COUNT( * ) + COUNT( * ) DIV - COUNT( * ) * + COUNT( * ) ) * - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT COALESCE ( - 37, - + 73 * + 93 * + COUNT ( * ), - 3, 27 * - 54 + 43 * + + 40 / + + COUNT ( * ) + COUNT ( * ) / - COUNT ( * ) * + COUNT ( * ) ) * - COUNT ( * ) AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6049
SELECT DISTINCT + 6 + - - 95 * + CASE - COUNT( * ) WHEN + + COALESCE ( + 78, + - COUNT( * ) ) THEN NULL WHEN COUNT( * ) THEN NULL WHEN + 41 - + + 66 THEN CAST( + COUNT( * ) AS SIGNED ) + - 87 + - 21 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT + 6 + - - 95 * + CASE - COUNT ( * ) WHEN + + COALESCE ( + 78, + - COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) THEN NULL WHEN + 41 - + + 66 THEN CAST ( + COUNT ( * ) AS INTEGER ) + - 87 + - 21 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6050
SELECT COUNT( * ) DIV - 71 * - 4
----
0

skipif mysql # not compatible
query I rowsort label-6050
SELECT COUNT ( * ) / - 71 * - 4
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT ALL + AVG ( ALL + 17 ) + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL + AVG ( ALL + 17 ) + + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT - 34 * + - 17 AS col1
----
578

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT DISTINCT AVG ( DISTINCT + 48 ) + + 17 + - + 10 * - - CAST( NULL AS SIGNED ) / - CAST( + 98 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT AVG ( DISTINCT + 48 ) + + 17 + - + 10 * - - CAST ( NULL AS INTEGER ) / - CAST ( + 98 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6054
SELECT DISTINCT COALESCE ( CASE CAST( NULL AS SIGNED ) WHEN 60 THEN NULL ELSE - 96 END, 42 * - + 30 + 19 * + - ( + 31 ) + 48 DIV - 62 * - + 24, + + 76 ) + + 64 col1
----
-32

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT COALESCE ( CASE CAST ( NULL AS INTEGER ) WHEN 60 THEN NULL ELSE - 96 END, 42 * - + 30 + 19 * + - ( + 31 ) + 48 / - 62 * - + 24, + + 76 ) + + 64 col1
----
-32

query I rowsort
SELECT DISTINCT - 44 + + 53 + - 75 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT ALL + CASE 39 WHEN - - COUNT( ALL - - 97 ) THEN NULL WHEN - + 83 THEN 17 ELSE NULL END + 25 - + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL + CASE 39 WHEN - - COUNT ( ALL - - 97 ) THEN NULL WHEN - + 83 THEN 17 ELSE NULL END + 25 - + 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT DISTINCT - 1 * - - COUNT( * ) * - ( + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT - 1 * - - COUNT ( * ) * - ( + 91 )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6058
SELECT DISTINCT - 90 + + + COUNT( * ) AS col1, 43
----
-89
43

skipif mysql # not compatible
query II rowsort label-6058
SELECT DISTINCT - 90 + + + COUNT ( * ) AS col1, 43
----
-89
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6059
SELECT - + 96 * 89 + 72 + + 17 + 91 - - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6059
SELECT - + 96 * 89 + 72 + + 17 + 91 - - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 56 * 1 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT + SUM( DISTINCT - + 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-6061
SELECT + SUM ( DISTINCT - + 71 ) AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6062
SELECT - ( COUNT( * ) ) + COUNT( * ) * + + 7 * - + 72 + + 67 DIV 6 AS col0
----
-494

skipif mysql # not compatible
query I rowsort label-6062
SELECT - ( COUNT ( * ) ) + COUNT ( * ) * + + 7 * - + 72 + + 67 / 6 AS col0
----
-494

query II rowsort
SELECT ALL - 7 - 25, + 3 + - - 48 * + - 2 AS col0
----
-32
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-6064
SELECT + 2 * 40 AS col2, + COALESCE ( - COALESCE ( - ( ( 31 ) ), 89 ), + 86 ) DIV + 38 * + + 39
----
80
0

skipif mysql # not compatible
query II rowsort label-6064
SELECT + 2 * 40 AS col2, + COALESCE ( - COALESCE ( - ( ( 31 ) ), 89 ), + 86 ) / + 38 * + + 39
----
80
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6065
SELECT + 71 * - - CAST( NULL AS SIGNED ) + - 27 + - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6065
SELECT + 71 * - - CAST ( NULL AS INTEGER ) + - 27 + - 36 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6066
SELECT ALL - COALESCE ( + SUM( DISTINCT 28 ), - MIN( DISTINCT 14 ), - 44 * + 5 + - + CAST( + 4 AS SIGNED ) - 96 * - 30 * + + 86 * - 16 + - 68 * 73 DIV - + 31 * - + 58 * CASE 65 WHEN + - 56 THEN - 58 WHEN 86 THEN + + 3 + - 68 ELSE NULL END ) * + 98
----
-2744

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL - COALESCE ( + SUM ( DISTINCT 28 ), - MIN ( DISTINCT 14 ), - 44 * + 5 + - + CAST ( + 4 AS INTEGER ) - 96 * - 30 * + + 86 * - 16 + - 68 * 73 / - + 31 * - + 58 * CASE 65 WHEN + - 56 THEN - 58 WHEN 86 THEN + + 3 + - 68 ELSE NULL END ) * + 98
----
-2744

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT CASE + + COUNT( * ) WHEN - SUM( + 99 ) THEN + - COUNT( * ) WHEN - 51 THEN - MIN( ALL - - ( 47 ) ) * - 86 + 28 ELSE NULL END + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT CASE + + COUNT ( * ) WHEN - SUM ( + 99 ) THEN + - COUNT ( * ) WHEN - 51 THEN - MIN ( ALL - - ( 47 ) ) * - 86 + 28 ELSE NULL END + + 66
----
NULL

query I rowsort
SELECT - 38 * 3 * - 67 * - 19 AS col1
----
-145122

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6069
SELECT - COUNT( - ( 12 ) ) * - + CAST( NULL AS DECIMAL ) + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT - COUNT ( - ( 12 ) ) * - + CAST ( NULL AS REAL ) + - 40
----
NULL

query I rowsort
SELECT ALL - - ( 47 )
----
47

query I rowsort
SELECT ALL - + 21 AS col2
----
-21

query I rowsort
SELECT + - 66 AS col0
----
-66

query I rowsort
SELECT - 35 col1
----
-35

query I rowsort
SELECT + 80 col0
----
80

query I rowsort
SELECT + 18 * + 48 + 99 * - - 16 col1
----
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT ALL + 19 * COUNT( * ) * 8
----
152

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL + 19 * COUNT ( * ) * 8
----
152

query I rowsort
SELECT DISTINCT + 10 * 13 * + 14 * 30 AS col2
----
54600

query I rowsort
SELECT DISTINCT 49 + + + 16
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT 98 + - SUM( 41 ) + 64 + + 68 * + ( + 54 ) * - 27 * - SUM( - - 2 ) + + 0
----
198409

skipif mysql # not compatible
query I rowsort label-6079
SELECT 98 + - SUM ( 41 ) + 64 + + 68 * + ( + 54 ) * - 27 * - SUM ( - - 2 ) + + 0
----
198409

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT ALL MAX( + 53 ) + + 48
----
101

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL MAX ( + 53 ) + + 48
----
101

query I rowsort
SELECT DISTINCT + 74 + - - 77 col1
----
151

query I rowsort
SELECT + 62 * + 23 * - 17 * + 43 * - + 54 + + - 16 * + - 37 AS col2
----
56290516

query I rowsort
SELECT 30 - + 37
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6084
SELECT ALL - 20 + - 56 + + CAST( NULL AS SIGNED ) * 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL - 20 + - 56 + + CAST ( NULL AS INTEGER ) * 48 AS col1
----
NULL

query I rowsort
SELECT 19 + + CASE + 3 WHEN - 47 THEN - 30 WHEN ( + 18 ) THEN + 69 * - + 32 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 30 * - 8
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6087
SELECT 39 + + 93 + - + 23 DIV - 55 * - 31 + + COUNT( * ) DIV - CAST( - - CAST( - 20 AS SIGNED ) AS SIGNED )
----
132

skipif mysql # not compatible
query I rowsort label-6087
SELECT 39 + + 93 + - + 23 / - 55 * - 31 + + COUNT ( * ) / - CAST ( - - CAST ( - 20 AS INTEGER ) AS INTEGER )
----
132

query I rowsort
SELECT 48 + + ( + - 52 ) AS col2
----
-4

query II rowsort
SELECT + 94 AS col1, 23
----
94
23

query I rowsort
SELECT + COALESCE ( 92, + - 20, - 89 * 7, - 61 ) + - + 11 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT ALL + COUNT( + + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL + COUNT ( + + 28 )
----
1

query II rowsort
SELECT 67 AS col0, + 32 * 74 * - 66 + - + 28
----
67
-156316

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT + NULLIF ( + + 95, 49 / + COUNT( * ) * - + 38 ) + + 15 + - - ( 8 )
----
118

skipif mysql # not compatible
query I rowsort label-6093
SELECT + NULLIF ( + + 95, 49 / + COUNT ( * ) * - + 38 ) + + 15 + - - ( 8 )
----
118

query I rowsort
SELECT ALL + 11 - 77
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6095
SELECT 32 * - AVG ( - CAST( NULL AS SIGNED ) ) * - NULLIF ( + 96, - COALESCE ( - 75, - 51 * - - COUNT( * ) ) ) + + 90 + 88 * - CAST( 30 AS SIGNED ) + + 97 * COUNT( ALL 70 ) AS col1, 85 * - - 39
----
NULL
3315

skipif mysql # not compatible
query II rowsort label-6095
SELECT 32 * - AVG ( - CAST ( NULL AS INTEGER ) ) * - NULLIF ( + 96, - COALESCE ( - 75, - 51 * - - COUNT ( * ) ) ) + + 90 + 88 * - CAST ( 30 AS INTEGER ) + + 97 * COUNT ( ALL 70 ) AS col1, 85 * - - 39
----
NULL
3315

query I rowsort
SELECT - + 48 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-6097
SELECT MIN( + 99 ) + + 9 * - + 36, - 33 AS col0
----
-225
-33

skipif mysql # not compatible
query II rowsort label-6097
SELECT MIN ( + 99 ) + + 9 * - + 36, - 33 AS col0
----
-225
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6098
SELECT DISTINCT - CASE - + MIN( ALL + + 30 ) WHEN + + 41 THEN NULL WHEN + CAST( NULL AS SIGNED ) - - 61 - COUNT( * ) / 29 + ( - MIN( ALL + 98 ) ) - 6 / - + 7 * - + 65 THEN COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT - CASE - + MIN ( ALL + + 30 ) WHEN + + 41 THEN NULL WHEN + CAST ( NULL AS INTEGER ) - - 61 - COUNT ( * ) / 29 + ( - MIN ( ALL + 98 ) ) - 6 / - + 7 * - + 65 THEN COUNT ( * ) END col0
----
NULL

query I rowsort
SELECT DISTINCT - - ( + 17 ) AS col2
----
17

query I rowsort
SELECT ALL 39 * - 34 AS col0
----
-1326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6101
SELECT + COUNT( * ) * 14 + 22 DIV - - CAST( - AVG ( DISTINCT - + 72 ) AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6101
SELECT + COUNT ( * ) * 14 + 22 / - - CAST ( - AVG ( DISTINCT - + 72 ) AS INTEGER ) AS col1
----
14

query I rowsort
SELECT DISTINCT - + ( - 20 )
----
20

query II rowsort
SELECT + - 1, - ( + 47 ) AS col0
----
-1
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6104
SELECT - 27 * - CAST( + + 20 AS SIGNED ) AS col2, + 93 AS col0
----
540
93

skipif mysql # not compatible
query II rowsort label-6104
SELECT - 27 * - CAST ( + + 20 AS INTEGER ) AS col2, + 93 AS col0
----
540
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6105
SELECT + 36 DIV + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-6105
SELECT + 36 / + COUNT ( * ) AS col2
----
36

query I rowsort
SELECT ALL + 84 * - 4
----
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6107
SELECT + ( 54 ) * + - CAST( NULL AS SIGNED ) + 47 - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6107
SELECT + ( 54 ) * + - CAST ( NULL AS INTEGER ) + 47 - 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6108
SELECT + ( - NULLIF ( - COUNT( * ), + SUM( DISTINCT + CASE WHEN NOT ( NULL ) IS NOT NULL THEN - ( - + COALESCE ( - 84, 83, + 64 ) ) ELSE 17 END ) ) ) AS col1, - CASE + 1 WHEN - 79 + + COUNT( * ) THEN + - 26 * 92 WHEN 91 THEN COUNT( * ) * - SUM( + 10 ) WHEN CAST( NULL AS SIGNED ) THEN NULL END * CASE - NULLIF ( + - 23, 46 ) WHEN 80 THEN - 24 * 25 WHEN + COALESCE ( - - COALESCE ( 48, - NULLIF ( 67, - COUNT( ALL - CAST( 92 AS SIGNED ) ) + COUNT( * ) * COUNT( * ) ) + - ( 13 ) ), 48, 62 * CASE WHEN NOT 97 IS NULL THEN - 67 END ) THEN NULL ELSE 16 + 98 END + + 38 col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6108
SELECT + ( - NULLIF ( - COUNT ( * ), + SUM ( DISTINCT + CASE WHEN NOT ( NULL ) IS NOT NULL THEN - ( - + COALESCE ( - 84, 83, + 64 ) ) ELSE 17 END ) ) ) AS col1, - CASE + 1 WHEN - 79 + + COUNT ( * ) THEN + - 26 * 92 WHEN 91 THEN COUNT ( * ) * - SUM ( + 10 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL END * CASE - NULLIF ( + - 23, 46 ) WHEN 80 THEN - 24 * 25 WHEN + COALESCE ( - - COALESCE ( 48, - NULLIF ( 67, - COUNT ( ALL - CAST ( 92 AS INTEGER ) ) + COUNT ( * ) * COUNT ( * ) ) + - ( 13 ) ), 48, 62 * CASE WHEN NOT 97 IS NULL THEN - 67 END ) THEN NULL ELSE 16 + 98 END + + 38 col1
----
1
NULL

query I rowsort
SELECT DISTINCT - 51 * 45 AS col1
----
-2295

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT + MIN( - - 26 ) * + - 77 - COUNT( * ) * + 75
----
-2077

skipif mysql # not compatible
query I rowsort label-6110
SELECT + MIN ( - - 26 ) * + - 77 - COUNT ( * ) * + 75
----
-2077

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL + 34 * - ( + 76 ) - - - 83 * + MIN( ALL + 92 )
----
-10220

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL + 34 * - ( + 76 ) - - - 83 * + MIN ( ALL + 92 )
----
-10220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6112
SELECT + 2 DIV - 83 DIV COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6112
SELECT + 2 / - 83 / COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + + 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL + - 61 * COUNT( * ) + COUNT( * ) + ( - 56 ) + - 32 + + COALESCE ( + - 61, 35 * - COUNT( ALL + 63 ), + COUNT( * ) + + ( 75 ) ) * + + 31 + + 14 + 90 + 2 * - 72 AS col0
----
-2079

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL + - 61 * COUNT ( * ) + COUNT ( * ) + ( - 56 ) + - 32 + + COALESCE ( + - 61, 35 * - COUNT ( ALL + 63 ), + COUNT ( * ) + + ( 75 ) ) * + + 31 + + 14 + 90 + 2 * - 72 AS col0
----
-2079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6115
SELECT + ( + 53 ) + - + CAST( NULL AS SIGNED ) + - + COUNT( * ) * CAST( NULL AS SIGNED ) * - - ( 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT + ( + 53 ) + - + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - ( 58 )
----
NULL

query I rowsort
SELECT DISTINCT 90 + + 61 * - 53 * + - ( + - 85 ) AS col0
----
-274715

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT MAX( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-6117
SELECT MAX ( - 32 )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-6118
SELECT + 42 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-6118
SELECT + 42 / 32
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6119
SELECT + 48 + 16 + - - CAST( NULL AS DECIMAL ) + - 9 + - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT + 48 + 16 + - - CAST ( NULL AS REAL ) + - 9 + - 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT - COUNT( * ) + - 79 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-6120
SELECT - COUNT ( * ) + - 79 AS col2
----
-80

query I rowsort
SELECT - 1 + 98
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT - NULLIF ( 87, + - CAST( NULL AS SIGNED ) )
----
-87

skipif mysql # not compatible
query I rowsort label-6122
SELECT - NULLIF ( 87, + - CAST ( NULL AS INTEGER ) )
----
-87

query II rowsort
SELECT + 89 * 43 * + + 21 * + 20 * + 61, 39 AS col2
----
98047740
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6124
SELECT ALL - 89 - - 61 DIV ( 24 ) * + 92 + + + 92 * 63 AS col0
----
5891

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL - 89 - - 61 / ( 24 ) * + 92 + + + 92 * 63 AS col0
----
5891

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT ALL - 26 - - + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL - 26 - - + COUNT ( * )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6126
SELECT ALL COUNT( 38 ), CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6126
SELECT ALL COUNT ( 38 ), CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

query I rowsort
SELECT - 57 * ( + 72 )
----
-4104

query I rowsort
SELECT - 70 - 37 AS col1
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT - COALESCE ( + + COUNT( * ), - + 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-6129
SELECT - COALESCE ( + + COUNT ( * ), - + 34 )
----
-1

query I rowsort
SELECT ALL - + 64 * + - ( - 64 )
----
-4096

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT - ( 46 ) - - + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-6131
SELECT - ( 46 ) - - + COUNT ( * )
----
-45

query I rowsort
SELECT ALL + 16 * - + ( + 88 ) * + 57 AS col2
----
-80256

query I rowsort
SELECT DISTINCT - 57 * 20 AS col1
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT DISTINCT - + COUNT( DISTINCT + 71 ) * 2 * + + 84 AS col1
----
-168

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT - + COUNT ( DISTINCT + 71 ) * 2 * + + 84 AS col1
----
-168

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6135
SELECT - + 35 * + - CAST( NULL AS DECIMAL ), + 82 AS col0
----
NULL
82

skipif mysql # not compatible
query II rowsort label-6135
SELECT - + 35 * + - CAST ( NULL AS REAL ), + 82 AS col0
----
NULL
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6136
SELECT ALL + + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL + + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6137
SELECT - + 44 - - COUNT( * ) col2, 18 col2
----
-43
18

skipif mysql # not compatible
query II rowsort label-6137
SELECT - + 44 - - COUNT ( * ) col2, 18 col2
----
-43
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT - MAX( DISTINCT NULLIF ( + + 64, - 13 + + 86 ) ) * + 7
----
-448

skipif mysql # not compatible
query I rowsort label-6138
SELECT - MAX ( DISTINCT NULLIF ( + + 64, - 13 + + 86 ) ) * + 7
----
-448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6139
SELECT + ( + COUNT( * ) ) DIV + 70 * CAST( - 30 AS SIGNED ) DIV + + 52 + + + 10 col1
----
10

skipif mysql # not compatible
query I rowsort label-6139
SELECT + ( + COUNT ( * ) ) / + 70 * CAST ( - 30 AS INTEGER ) / + + 52 + + + 10 col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT DISTINCT + MAX( - 61 ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT + MAX ( - 61 ) col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6141
SELECT + COUNT( DISTINCT + + 89 ) * - + 78 + - - 73 + 28 * COUNT( * ) * + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + 8 + - ( + 11 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6141
SELECT + COUNT ( DISTINCT + + 89 ) * - + 78 + - - 73 + 28 * COUNT ( * ) * + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + 8 + - ( + 11 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ALL + 21 * + 12 + + NULLIF ( + + 17, COUNT( * ) ) + - 86 * + - 78
----
6977

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL + 21 * + 12 + + NULLIF ( + + 17, COUNT ( * ) ) + - 86 * + - 78
----
6977

query I rowsort
SELECT ALL + + 83
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6144
SELECT CAST( + + 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-6144
SELECT CAST ( + + 40 AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT 38 * 72 + - 68 + - COUNT( * ) * - 91
----
2759

skipif mysql # not compatible
query I rowsort label-6145
SELECT 38 * 72 + - 68 + - COUNT ( * ) * - 91
----
2759

query I rowsort
SELECT ALL 49 * + - 12 AS col1
----
-588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6147
SELECT ( - + MAX( + - COALESCE ( + NULLIF ( + 32, + - 20 * - CAST( NULL AS SIGNED ) ), - 87, 65 ) ) )
----
32

skipif mysql # not compatible
query I rowsort label-6147
SELECT ( - + MAX ( + - COALESCE ( + NULLIF ( + 32, + - 20 * - CAST ( NULL AS INTEGER ) ), - 87, 65 ) ) )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6148
SELECT ALL CASE - 97 WHEN 84 THEN NULL ELSE + 83 DIV + 93 * COUNT( DISTINCT - 37 ) END * + - 83 + - - 75
----
75

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL CASE - 97 WHEN 84 THEN NULL ELSE + 83 / + 93 * COUNT ( DISTINCT - 37 ) END * + - 83 + - - 75
----
75

query I rowsort
SELECT ALL + ( - 58 )
----
-58

query I rowsort
SELECT - 2 * - 14 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT + 7 + - ( - - COUNT( * ) ) + + 96
----
102

skipif mysql # not compatible
query I rowsort label-6151
SELECT + 7 + - ( - - COUNT ( * ) ) + + 96
----
102

query I rowsort
SELECT NULLIF ( - ( + + 92 ), 66 ) AS col2
----
-92

query I rowsort
SELECT + ( - 81 ) AS col1
----
-81

query I rowsort
SELECT DISTINCT - 60 * 82 + + ( + - 61 )
----
-4981

query I rowsort
SELECT + 71 * 58
----
4118

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT COUNT( - 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6156
SELECT COUNT ( - 52 ) AS col1
----
1

query I rowsort
SELECT ALL NULLIF ( 30, - + 1 + - + 38 ) * - 19 + - NULLIF ( 30, 39 + + ( - 64 ) ) - + + 69
----
-669

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT ALL 35 DIV 38 col0
----
0

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL 35 / 38 col0
----
0

query I rowsort
SELECT + 41 * + 34
----
1394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6160
SELECT - CAST( COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6160
SELECT - CAST ( COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT + 29 + 50
----
79

query I rowsort
SELECT ALL 41 - + - 93 AS col1
----
134

query I rowsort
SELECT + 5 + - 99
----
-94

query I rowsort
SELECT ALL 17 * - - 67 * - 70
----
-79730

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT MIN( - 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6165
SELECT MIN ( - 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT + COUNT( * ) * 40
----
40

skipif mysql # not compatible
query I rowsort label-6166
SELECT + COUNT ( * ) * 40
----
40

query I rowsort
SELECT + + 89 + + - 53 AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT + - COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6168
SELECT + - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 50 * - 32
----
-1600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6170
SELECT + + 39 + + + 8 + ( - CAST( NULL AS SIGNED ) ) + - CAST( + + ( + 68 ) AS SIGNED ) * + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT + + 39 + + + 8 + ( - CAST ( NULL AS INTEGER ) ) + - CAST ( + + ( + 68 ) AS INTEGER ) * + 45 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT DISTINCT COALESCE ( - CAST( + - 55 AS SIGNED ), - 88, CAST( + + ( 13 ) AS SIGNED ) )
----
55

skipif mysql # not compatible
query I rowsort label-6171
SELECT DISTINCT COALESCE ( - CAST ( + - 55 AS INTEGER ), - 88, CAST ( + + ( 13 ) AS INTEGER ) )
----
55

query I rowsort
SELECT DISTINCT 60 * ( + - 93 ) AS col1
----
-5580

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT - + 90 * - 99 - - SUM( DISTINCT + + 25 )
----
8935

skipif mysql # not compatible
query I rowsort label-6173
SELECT - + 90 * - 99 - - SUM ( DISTINCT + + 25 )
----
8935

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL COUNT( + 6 ) + - COALESCE ( + + 66, 99 + + + 7 * 63 + + 37 ) * - 13 col1
----
859

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL COUNT ( + 6 ) + - COALESCE ( + + 66, 99 + + + 7 * 63 + + 37 ) * - 13 col1
----
859

query I rowsort
SELECT - 18 + - 1 AS col1
----
-19

query I rowsort
SELECT - COALESCE ( + 15, + 17 ) + - 14
----
-29

query I rowsort
SELECT ALL + - 32 + + 21 AS col1
----
-11

query I rowsort
SELECT DISTINCT + 76 + 46 + - CASE - + 25 WHEN + 74 THEN - 45 WHEN + 89 THEN NULL ELSE - ( 66 ) END AS col0
----
188

query I rowsort
SELECT ALL - + 20 * - 6
----
120

query I rowsort
SELECT ALL + - 57 + - 95 AS col0
----
-152

query I rowsort
SELECT + + ( - 3 )
----
-3

query I rowsort
SELECT ALL + 32 + + 60
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT - COUNT( DISTINCT - - 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT - COUNT ( DISTINCT - - 39 )
----
-1

query II rowsort
SELECT 82 AS col2, - 66 * 2 AS col0
----
82
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6185
SELECT ALL - 6 + + COUNT( * ) DIV 3 + 88 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL - 6 + + COUNT ( * ) / 3 + 88 AS col1
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-6186
SELECT + 13 AS col1, + 9 DIV 16
----
13
0

skipif mysql # not compatible
query II rowsort label-6186
SELECT + 13 AS col1, + 9 / 16
----
13
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT 33 * ( + COUNT( * ) )
----
33

skipif mysql # not compatible
query I rowsort label-6187
SELECT 33 * ( + COUNT ( * ) )
----
33

query I rowsort
SELECT ALL - CASE + - ( 76 ) WHEN - 23 THEN 94 + + 14 * + - 3 WHEN - + 65 THEN NULL END
----
NULL

query I rowsort
SELECT - 63 * CASE ( + 50 ) WHEN + 40 * + 61 THEN 41 END + 58 + - 89 / 93 * - 87
----
NULL

query I rowsort
SELECT 42 * - 89 * 10
----
-37380

query I rowsort
SELECT DISTINCT - ( 87 ) col2
----
-87

query II rowsort
SELECT ALL - 84, - 54 AS col1
----
-84
-54

query I rowsort
SELECT DISTINCT - 89 - - 39 - - 85
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6194
SELECT ALL - CAST( - + 85 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL - CAST ( - + 85 AS INTEGER )
----
85

query I rowsort
SELECT 29 + 90 * + 14 AS col0
----
1289

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT DISTINCT + ( + COUNT( * ) ) - 25 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-6196
SELECT DISTINCT + ( + COUNT ( * ) ) - 25 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT DISTINCT - ( MAX( - 64 ) )
----
64

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT - ( MAX ( - 64 ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT DISTINCT 77 * - COUNT( * ) * + 57 col2
----
-4389

skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT 77 * - COUNT ( * ) * + 57 col2
----
-4389

query I rowsort
SELECT DISTINCT 94 * 95
----
8930

query I rowsort
SELECT 58 * + 80 * - 5
----
-23200

query I rowsort
SELECT 64 + - 70 AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6202
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) * + 30 * - 50 DIV + COUNT( * ) AS col0
----
1500

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) * + 30 * - 50 / + COUNT ( * ) AS col0
----
1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6203
SELECT 74 + + 70 + + - 73 + - COUNT( DISTINCT + + 51 ) * - - NULLIF ( - ( 64 ), + - CASE + CASE - - ( - + ( 72 ) ) WHEN - 25 THEN NULL WHEN COUNT( * ) THEN NULL WHEN + + MIN( DISTINCT 23 ) / + - MIN( ALL + 57 ) + + 50 + + 2 - + 49 - + - 94 * - + ( + 46 ) * - CASE - 78 WHEN - 56 + - 49 THEN + 56 ELSE + 58 END + + 87 * 88 / - 69 THEN - 11 ELSE - - COALESCE ( 66, 75, + CASE CASE 21 WHEN 7 + COUNT( * ) THEN NULL WHEN ( - 89 ) + + CASE ( + 98 ) WHEN 15 THEN NULL ELSE + 45 / 74 END THEN - 25 END WHEN - CAST( NULL AS SIGNED ) + - 22 THEN NULL WHEN - ( 27 ) THEN NULL ELSE - ( + 16 ) END ) END WHEN 67 + CAST( NULL AS SIGNED ) THEN - COUNT( * ) END ) - ( 11 + COUNT( * ) )
----
123

skipif mysql # not compatible
query I rowsort label-6203
SELECT 74 + + 70 + + - 73 + - COUNT ( DISTINCT + + 51 ) * - - NULLIF ( - ( 64 ), + - CASE + CASE - - ( - + ( 72 ) ) WHEN - 25 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN + + MIN ( DISTINCT 23 ) / + - MIN ( ALL + 57 ) + + 50 + + 2 - + 49 - + - 94 * - + ( + 46 ) * - CASE - 78 WHEN - 56 + - 49 THEN + 56 ELSE + 58 END + + 87 * 88 / - 69 THEN - 11 ELSE - - COALESCE ( 66, 75, + CASE CASE 21 WHEN 7 + COUNT ( * ) THEN NULL WHEN ( - 89 ) + + CASE ( + 98 ) WHEN 15 THEN NULL ELSE + 45 / 74 END THEN - 25 END WHEN - CAST ( NULL AS INTEGER ) + - 22 THEN NULL WHEN - ( 27 ) THEN NULL ELSE - ( + 16 ) END ) END WHEN 67 + CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) END ) - ( 11 + COUNT ( * ) )
----
123

query I rowsort
SELECT ALL 76 * 43 AS col0
----
3268

query I rowsort
SELECT 48 * + ( + 81 ) AS col0
----
3888

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6206
SELECT 47 col1, + 20 / - - CASE 94 WHEN - CAST( NULL AS SIGNED ) THEN + + 15 ELSE NULL END AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-6206
SELECT 47 col1, + 20 / - - CASE 94 WHEN - CAST ( NULL AS INTEGER ) THEN + + 15 ELSE NULL END AS col2
----
47
NULL

query I rowsort
SELECT DISTINCT + 27 * - 31 AS col0
----
-837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6208
SELECT ALL - ( COALESCE ( - 70, + 44 + + - 63 + MIN( ALL - 80 ) * - + COALESCE ( 48, 93 ) DIV + + 82 * + ( - 1 ) * + 60 - + + CAST( - - 50 AS SIGNED ) ) ) AS col1, + ( + 72 ) + + 85 AS col0
----
70
157

skipif mysql # not compatible
query II rowsort label-6208
SELECT ALL - ( COALESCE ( - 70, + 44 + + - 63 + MIN ( ALL - 80 ) * - + COALESCE ( 48, 93 ) / + + 82 * + ( - 1 ) * + 60 - + + CAST ( - - 50 AS INTEGER ) ) ) AS col1, + ( + 72 ) + + 85 AS col0
----
70
157

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT DISTINCT CASE + + 43 WHEN 23 + + 80 * 79 / - - COUNT( + + 64 ) THEN - 17 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT CASE + + 43 WHEN 23 + + 80 * 79 / - - COUNT ( + + 64 ) THEN - 17 END AS col2
----
NULL

query I rowsort
SELECT ALL + 79 * + 23
----
1817

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6211
SELECT ALL COUNT( * ) DIV + 86 + 7
----
7

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL COUNT ( * ) / + 86 + 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT DISTINCT + CASE + 44 WHEN + + COUNT( * ) THEN NULL ELSE + - 54 END
----
-54

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT + CASE + 44 WHEN + + COUNT ( * ) THEN NULL ELSE + - 54 END
----
-54

query I rowsort
SELECT DISTINCT + 41 + 95 * + ( + 40 ) + 50 AS col1
----
3891

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT DISTINCT - NULLIF ( 82, + COALESCE ( - + 98, - COUNT( * ) ) ) + - NULLIF ( 30, 51 + - + 27 )
----
-112

skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT - NULLIF ( 82, + COALESCE ( - + 98, - COUNT ( * ) ) ) + - NULLIF ( 30, 51 + - + 27 )
----
-112

query I rowsort
SELECT 56 + + + 51
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6216
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) * - - CASE + 69 WHEN 7 THEN 53 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - - CASE + 69 WHEN 7 THEN 53 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6217
SELECT ALL - SUM( 21 ) AS col1, + MAX( + + 85 ) DIV + 5 + - 54 + - 78 + - 90 - COUNT( ALL 71 ) AS col2
----
-21
-206

skipif mysql # not compatible
query II rowsort label-6217
SELECT ALL - SUM ( 21 ) AS col1, + MAX ( + + 85 ) / + 5 + - 54 + - 78 + - 90 - COUNT ( ALL 71 ) AS col2
----
-21
-206

query I rowsort
SELECT - 46 * - 56 AS col0
----
2576

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT 46 * 74 * MIN( DISTINCT 42 ) AS col1
----
142968

skipif mysql # not compatible
query I rowsort label-6219
SELECT 46 * 74 * MIN ( DISTINCT 42 ) AS col1
----
142968

query I rowsort
SELECT - NULLIF ( ( - 43 ), 84 / + - 7 )
----
43

query II rowsort
SELECT + 59, 60 * 20 AS col1
----
59
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT ALL + COUNT( * ) + + - ( - 40 )
----
41

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL + COUNT ( * ) + + - ( - 40 )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6223
SELECT ALL + 23, + COALESCE ( + - 65, - 78 + + 62 + + 10 + + 79 DIV + 85 * + 42 ) - - 84 + + 50 + + - COUNT( * ) DIV 23 AS col0
----
23
69

skipif mysql # not compatible
query II rowsort label-6223
SELECT ALL + 23, + COALESCE ( + - 65, - 78 + + 62 + + 10 + + 79 / + 85 * + 42 ) - - 84 + + 50 + + - COUNT ( * ) / 23 AS col0
----
23
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6224
SELECT ALL - 72 + + - NULLIF ( - 15, - MAX( ALL - - 64 ) - + 9 + + 89 ) col1, COUNT( - 90 ) AS col2
----
-57
1

skipif mysql # not compatible
query II rowsort label-6224
SELECT ALL - 72 + + - NULLIF ( - 15, - MAX ( ALL - - 64 ) - + 9 + + 89 ) col1, COUNT ( - 90 ) AS col2
----
-57
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT ALL SUM( - 42 ) + - 27
----
-69

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL SUM ( - 42 ) + - 27
----
-69

query I rowsort
SELECT ALL - - 92 * 87
----
8004

query I rowsort
SELECT ALL + 81 + - 64 + - 29 AS col1
----
-12

query II rowsort
SELECT - + 2, + 56 * 34 * + + 54 AS col0
----
-2
102816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6229
SELECT COUNT( * ) * 72 * - 55 + + 59 + - 90 + 62 DIV + 31 - 82 AS col0
----
-4071

skipif mysql # not compatible
query I rowsort label-6229
SELECT COUNT ( * ) * 72 * - 55 + + 59 + - 90 + 62 / + 31 - 82 AS col0
----
-4071

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6230
SELECT - 46 DIV + COUNT( * ) + + 62 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6230
SELECT - 46 / + COUNT ( * ) + + 62 AS col1
----
16

query I rowsort
SELECT - ( 60 ) * 17 - - 81 + + 73
----
-866

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT ( COUNT( * ) ) * + 28 - + 56 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-6232
SELECT ( COUNT ( * ) ) * + 28 - + 56 AS col1
----
-28

query II rowsort
SELECT 49 * - 91, 63 col0
----
-4459
63

onlyif mysql # DIV for integer division: 
query I rowsort label-6234
SELECT ALL + 30 DIV 12 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL + 30 / 12 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT ALL + COUNT( * ) * + SUM( 30 ) * + + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL + COUNT ( * ) * + SUM ( 30 ) * + + COUNT ( * )
----
30

query I rowsort
SELECT DISTINCT - ( + 32 ) AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6237
SELECT CAST( NULL AS SIGNED ) + NULLIF ( - 25, - 66 + + + NULLIF ( 54, COUNT( * ) ) ) * - + 79 / - + 17 - - 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT CAST ( NULL AS INTEGER ) + NULLIF ( - 25, - 66 + + + NULLIF ( 54, COUNT ( * ) ) ) * - + 79 / - + 17 - - 70 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( ( - 96 ) ) col0
----
96

query I rowsort
SELECT ALL - 40 * + + ( - + 98 )
----
3920

onlyif mysql # aggregate syntax: 
query II rowsort label-6240
SELECT SUM( - 66 ) + + 88 + - COUNT( * ) * 29 * 5 * 1 AS col1, 75 AS col2
----
-123
75

skipif mysql # not compatible
query II rowsort label-6240
SELECT SUM ( - 66 ) + + 88 + - COUNT ( * ) * 29 * 5 * 1 AS col1, 75 AS col2
----
-123
75

onlyif mysql # DIV for integer division: 
query II rowsort label-6241
SELECT 48 DIV - - 37, - 20 * - 76 * - 77 * + 71 AS col1
----
1
-8309840

skipif mysql # not compatible
query II rowsort label-6241
SELECT 48 / - - 37, - 20 * - 76 * - 77 * + 71 AS col1
----
1
-8309840

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT ALL + ( + MAX( ALL + 68 ) ) * - ( - - 91 ) AS col1
----
-6188

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL + ( + MAX ( ALL + 68 ) ) * - ( - - 91 ) AS col1
----
-6188

query I rowsort
SELECT DISTINCT + + 3 + - 26 AS col1
----
-23

query I rowsort
SELECT ALL - 92 + - 12 col1
----
-104

query I rowsort
SELECT ALL 94 * + 48 + 1 AS col2
----
4513

query II rowsort
SELECT 91 * - 9 AS col1, ( 4 )
----
-819
4

query I rowsort
SELECT ALL + - 53 + 18 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT + NULLIF ( ( - 15 ), - COUNT( * ) ) + - 49 - + 52 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-6248
SELECT + NULLIF ( ( - 15 ), - COUNT ( * ) ) + - 49 - + 52 AS col2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT ( + COUNT( * ) ) - + 17 + - - 41 + 0 * COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-6249
SELECT ( + COUNT ( * ) ) - + 17 + - - 41 + 0 * COUNT ( * )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6250
SELECT DISTINCT + CAST( + ( SUM( DISTINCT 45 ) ) AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT + CAST ( + ( SUM ( DISTINCT 45 ) ) AS INTEGER )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6251
SELECT 25 + + - 86 col0, 55 + - COUNT( * ) + - COUNT( * )
----
-61
53

skipif mysql # not compatible
query II rowsort label-6251
SELECT 25 + + - 86 col0, 55 + - COUNT ( * ) + - COUNT ( * )
----
-61
53

query I rowsort
SELECT + - ( 79 ) - + 12 AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6253
SELECT - + 62 DIV + ( - 78 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6253
SELECT - + 62 / + ( - 78 ) AS col1
----
0

query I rowsort
SELECT + + 56 + + 45 AS col0
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6255
SELECT - 39 * 59 DIV + SUM( + 57 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-6255
SELECT - 39 * 59 / + SUM ( + 57 ) AS col0
----
-40

query I rowsort
SELECT DISTINCT 78 * 99 AS col2
----
7722

query I rowsort
SELECT ALL 83 + 8 * + 46 + - + ( - + 83 ) + + + 12 * + ( + 41 )
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT DISTINCT + MIN( ALL 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT + MIN ( ALL 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT ALL - + 73 + + 93 - + + COUNT( * ) + 4 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL - + 73 + + 93 - + + COUNT ( * ) + 4 AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6260
SELECT DISTINCT COUNT( * ) DIV - + COUNT( * ) + 54
----
53

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT COUNT ( * ) / - + COUNT ( * ) + 54
----
53

query I rowsort
SELECT + - 30 + - 56 AS col1
----
-86

query I rowsort
SELECT + + 55 + 92 AS col0
----
147

query I rowsort
SELECT ALL ( - 77 )
----
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-6264
SELECT DISTINCT - 91 DIV 55 AS col0, - 47 AS col2
----
-1
-47

skipif mysql # not compatible
query II rowsort label-6264
SELECT DISTINCT - 91 / 55 AS col0, - 47 AS col2
----
-1
-47

query I rowsort
SELECT + 2 * + 24 AS col1
----
48

query I rowsort
SELECT DISTINCT 8 * - + 90
----
-720

query I rowsort
SELECT + 72 * - 95 * - 46 col1
----
314640

query II rowsort
SELECT ALL + 58 AS col0, + 97
----
58
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6269
SELECT + NULLIF ( - 52, - COUNT( * ) ), 17 AS col1
----
-52
17

skipif mysql # not compatible
query II rowsort label-6269
SELECT + NULLIF ( - 52, - COUNT ( * ) ), 17 AS col1
----
-52
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT 35 DIV + ( + 33 ) + + 12
----
13

skipif mysql # not compatible
query I rowsort label-6270
SELECT 35 / + ( + 33 ) + + 12
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6271
SELECT ALL + 87, 96 + + CAST( NULL AS SIGNED ) AS col1
----
87
NULL

skipif mysql # not compatible
query II rowsort label-6271
SELECT ALL + 87, 96 + + CAST ( NULL AS INTEGER ) AS col1
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT 44 * + 31 - - 92 * - 7 + 5 - + + COALESCE ( + + 73, - 61 + + 25 * - 43 + - + MIN( DISTINCT 14 ) )
----
652

skipif mysql # not compatible
query I rowsort label-6272
SELECT 44 * + 31 - - 92 * - 7 + 5 - + + COALESCE ( + + 73, - 61 + + 25 * - 43 + - + MIN ( DISTINCT 14 ) )
----
652

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT + NULLIF ( - MIN( ALL 12 ), - + 70 / + 20 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6273
SELECT + NULLIF ( - MIN ( ALL 12 ), - + 70 / + 20 ) AS col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6274
SELECT + 89 - + 80 * - + 48 DIV + COUNT( 52 ) col1
----
3929

skipif mysql # not compatible
query I rowsort label-6274
SELECT + 89 - + 80 * - + 48 / + COUNT ( 52 ) col1
----
3929

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT + COUNT( * ) * - - 36 * - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-6275
SELECT + COUNT ( * ) * - - 36 * - COUNT ( * )
----
-36

query I rowsort
SELECT NULLIF ( + 89, + + 37 + - ( 95 ) * - 2 ) AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6277
SELECT ALL COUNT( * ) * + 62 DIV + 8 + + COUNT( * ) + - 59
----
-51

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL COUNT ( * ) * + 62 / + 8 + + COUNT ( * ) + - 59
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6278
SELECT ALL + 81 DIV 52
----
1

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL + 81 / 52
----
1

query I rowsort
SELECT + ( - - 85 ) col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6280
SELECT ALL + 93 AS col2, - 69 + - - MAX( ALL 24 ) AS col1
----
93
-45

skipif mysql # not compatible
query II rowsort label-6280
SELECT ALL + 93 AS col2, - 69 + - - MAX ( ALL 24 ) AS col1
----
93
-45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6281
SELECT + COUNT( * ) * 62 - - - CAST( NULL AS DECIMAL ) * + - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6281
SELECT + COUNT ( * ) * 62 - - - CAST ( NULL AS REAL ) * + - 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT + - COUNT( * ) * 39 * COUNT( * ) * + + 25
----
-975

skipif mysql # not compatible
query I rowsort label-6282
SELECT + - COUNT ( * ) * 39 * COUNT ( * ) * + + 25
----
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT DISTINCT - 30 * - + NULLIF ( COUNT( 92 ), + 11 )
----
30

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT - 30 * - + NULLIF ( COUNT ( 92 ), + 11 )
----
30

query II rowsort
SELECT + + 66 * - 16 * - 49, - 50 + 65 AS col0
----
51744
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT - SUM( + 46 ) + 27 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-6285
SELECT - SUM ( + 46 ) + 27 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT - + COUNT( * ) * ( 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-6286
SELECT - + COUNT ( * ) * ( 39 ) AS col1
----
-39

query II rowsort
SELECT ALL - 96, 19 col1
----
-96
19

onlyif mysql # aggregate syntax: 
query II rowsort label-6288
SELECT DISTINCT NULLIF ( 1, 96 * + + 45 - + 49 + + 60 ), + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-6288
SELECT DISTINCT NULLIF ( 1, 96 * + + 45 - + 49 + + 60 ), + COUNT ( * ) AS col1
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6289
SELECT ALL NULLIF ( + + 23, NULLIF ( + + 95, - 46 + - 39 * - + 50 * + COUNT( * ) + + 90 + - 44 + MIN( - 91 ) * - 10 * - + 63 * - 40 + + CASE + 49 WHEN 84 + + 81 * - 23 THEN - CAST( NULL AS SIGNED ) ELSE NULL END ) ) * - 31 + CAST( NULL AS DECIMAL ) / + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL NULLIF ( + + 23, NULLIF ( + + 95, - 46 + - 39 * - + 50 * + COUNT ( * ) + + 90 + - 44 + MIN ( - 91 ) * - 10 * - + 63 * - 40 + + CASE + 49 WHEN 84 + + 81 * - 23 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END ) ) * - 31 + CAST ( NULL AS REAL ) / + 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT - COUNT( * ) * - COUNT( - 86 ) + + - 90
----
-89

skipif mysql # not compatible
query I rowsort label-6290
SELECT - COUNT ( * ) * - COUNT ( - 86 ) + + - 90
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6291
SELECT - 37 * COUNT( * ) DIV - 4 col2
----
9

skipif mysql # not compatible
query I rowsort label-6291
SELECT - 37 * COUNT ( * ) / - 4 col2
----
9

query I rowsort
SELECT ALL - ( - + 99 ) AS col0
----
99

query I rowsort
SELECT ALL 94 col1
----
94

query I rowsort
SELECT DISTINCT 12 * + 12
----
144

query I rowsort
SELECT - + 64 + - 33 AS col1
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6296
SELECT - 89 col0, - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col0
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-6296
SELECT - 89 col0, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0
----
-89
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6297
SELECT - - 1 * - + 43 DIV + + 18, - 65 AS col1
----
-2
-65

skipif mysql # not compatible
query II rowsort label-6297
SELECT - - 1 * - + 43 / + + 18, - 65 AS col1
----
-2
-65

query I rowsort
SELECT - 39 * - - 98 AS col1
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT DISTINCT - - NULLIF ( - COUNT( * ), - COUNT( * ) ) * + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT - - NULLIF ( - COUNT ( * ), - COUNT ( * ) ) * + 70 AS col1
----
NULL

query I rowsort
SELECT - - 65 AS col0
----
65

query I rowsort
SELECT - 57 * ( 21 ) - + 2 AS col0
----
-1199

onlyif mysql # aggregate syntax: 
query II rowsort label-6302
SELECT ALL - + COUNT( DISTINCT 34 ) * - + 92 AS col1, + 57 AS col1
----
92
57

skipif mysql # not compatible
query II rowsort label-6302
SELECT ALL - + COUNT ( DISTINCT 34 ) * - + 92 AS col1, + 57 AS col1
----
92
57

query I rowsort
SELECT ALL ( + - 50 ) col2
----
-50

query I rowsort
SELECT DISTINCT - ( 47 ) * - 24 * + 34
----
38352

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT + 25 + - - COUNT( * ) - + 28 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6305
SELECT + 25 + - - COUNT ( * ) - + 28 AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6306
SELECT DISTINCT CAST( + 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT CAST ( + 99 AS INTEGER )
----
99

query I rowsort
SELECT - 13 + - 56
----
-69

query II rowsort
SELECT + ( 51 ) AS col1, - 46 AS col2
----
51
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT ALL + CAST( + + 62 AS SIGNED ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL + CAST ( + + 62 AS INTEGER ) AS col2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-6310
SELECT ALL 83 DIV + - 76
----
-1

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL 83 / + - 76
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT COUNT( * ) * + - 9 + 94 col1
----
85

skipif mysql # not compatible
query I rowsort label-6311
SELECT COUNT ( * ) * + - 9 + 94 col1
----
85

query I rowsort
SELECT + 95 - - 9 AS col2
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-6313
SELECT - 7 DIV + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6313
SELECT - 7 / + 91 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6314
SELECT DISTINCT 56 DIV 22 * + + 66 + - 90 * + + 0 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT 56 / 22 * + + 66 + - 90 * + + 0 AS col1
----
132

query I rowsort
SELECT + CASE + NULLIF ( + 63, + 86 ) WHEN - ( + + 98 ) * 83 THEN - 64 END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6316
SELECT ALL 31 DIV 88 * 97 DIV 65 + - + 42 DIV 70 + - 40 + - 35 + + 40 * + 57 * + COUNT( * ) AS col0
----
2205

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL 31 / 88 * 97 / 65 + - + 42 / 70 + - 40 + - 35 + + 40 * + 57 * + COUNT ( * ) AS col0
----
2205

query I rowsort
SELECT + 59 + - ( - 18 ) AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6318
SELECT + ( - - 32 ), 51 + - COUNT( 63 ) * + 6 DIV + - 63 - + + 24 AS col2
----
32
27

skipif mysql # not compatible
query II rowsort label-6318
SELECT + ( - - 32 ), 51 + - COUNT ( 63 ) * + 6 / + - 63 - + + 24 AS col2
----
32
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6319
SELECT DISTINCT + ( + 23 ) DIV + - 27 + + 90 - - + 1 + + 29 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT + ( + 23 ) / + - 27 + + 90 - - + 1 + + 29 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT ALL COUNT( * ) * + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL COUNT ( * ) * + + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6321
SELECT + CAST( + - MAX( + CAST( NULL AS SIGNED ) ) AS SIGNED ) * + + 1 + + - 27 + + 13 * + - 78 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6321
SELECT + CAST ( + - MAX ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + + 1 + + - 27 + + 13 * + - 78 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6322
SELECT DISTINCT NULLIF ( 91, + 10 ) DIV - 76 + - + 31 col1
----
-32

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT NULLIF ( 91, + 10 ) / - 76 + - + 31 col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT + 99 * + COALESCE ( 52, SUM( + ( - ( 37 ) ) ) ) AS col0
----
5148

skipif mysql # not compatible
query I rowsort label-6323
SELECT + 99 * + COALESCE ( 52, SUM ( + ( - ( 37 ) ) ) ) AS col0
----
5148

query I rowsort
SELECT ALL 11 * - - COALESCE ( - 94, + 95 + + 81 ) AS col0
----
-1034

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT 62 + - + 89 + - + 71 DIV ( + + 5 ) DIV + 39
----
-27

skipif mysql # not compatible
query I rowsort label-6325
SELECT 62 + - + 89 + - + 71 / ( + + 5 ) / + 39
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT 5 * + COUNT( 53 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6326
SELECT 5 * + COUNT ( 53 ) AS col0
----
5

query II rowsort
SELECT - 59 + + 69, - 19 AS col2
----
10
-19

query I rowsort
SELECT ALL - - 42 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT ( - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6329
SELECT ( - + COUNT ( * ) )
----
-1

query I rowsort
SELECT + 77 * 22 + NULLIF ( - 16, 14 ) AS col1
----
1678

onlyif mysql # DIV for integer division: 
query I rowsort label-6331
SELECT DISTINCT - + 61 DIV + - 45 - + 25 col2
----
-24

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT - + 61 / + - 45 - + 25 col2
----
-24

query I rowsort
SELECT ALL - + 65 col0
----
-65

query I rowsort
SELECT + 90 * - + 40 + - ( + 26 )
----
-3626

query I rowsort
SELECT ALL - 49 - 44 AS col0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6335
SELECT ALL - - ( + + COUNT( * ) ) * 49 DIV - 47
----
-1

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL - - ( + + COUNT ( * ) ) * 49 / - 47
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6336
SELECT + COALESCE ( + CAST( NULLIF ( - 89, CAST( NULL AS SIGNED ) ) AS SIGNED ), + 99, - 62, + + 25 + + 22 ) + + + COUNT( * ), - 95 * + 23 col0
----
-88
-2185

skipif mysql # not compatible
query II rowsort label-6336
SELECT + COALESCE ( + CAST ( NULLIF ( - 89, CAST ( NULL AS INTEGER ) ) AS INTEGER ), + 99, - 62, + + 25 + + 22 ) + + + COUNT ( * ), - 95 * + 23 col0
----
-88
-2185

query I rowsort
SELECT DISTINCT 27 * + 82 + - 49
----
2165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6338
SELECT 54 - + - 46 + + 41 - + 50 * + 43 AS col2, 88 DIV 63 DIV + COUNT( * ) AS col0
----
-2009
1

skipif mysql # not compatible
query II rowsort label-6338
SELECT 54 - + - 46 + + 41 - + 50 * + 43 AS col2, 88 / 63 / + COUNT ( * ) AS col0
----
-2009
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6339
SELECT DISTINCT COUNT( + 20 ) AS col2, - COALESCE ( - SUM( - 84 ), ( + COUNT( * ) ) ) + - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6339
SELECT DISTINCT COUNT ( + 20 ) AS col2, - COALESCE ( - SUM ( - 84 ), ( + COUNT ( * ) ) ) + - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

query I rowsort
SELECT ALL 45 * ( - - 40 )
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT COUNT( * ) + + 31 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6341
SELECT COUNT ( * ) + + 31 AS col2
----
32

query I rowsort
SELECT - 98 + + 81 + + + 68 AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6343
SELECT ALL - SUM( CAST( NULL AS DECIMAL ) ), ( 4 ) AS col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-6343
SELECT ALL - SUM ( CAST ( NULL AS REAL ) ), ( 4 ) AS col2
----
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT 79 + MIN( ALL - 37 ) + + 37 * - 2
----
-32

skipif mysql # not compatible
query I rowsort label-6344
SELECT 79 + MIN ( ALL - 37 ) + + 37 * - 2
----
-32

query I rowsort
SELECT + 64 + + + 64 col0
----
128

query I rowsort
SELECT 42 + - 10 + ( - 51 ) + + 93 col2
----
74

query I rowsort
SELECT 52 * - 75
----
-3900

query I rowsort
SELECT 29 * 63
----
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT 41 * + SUM( DISTINCT - 53 ) * + - 66
----
143418

skipif mysql # not compatible
query I rowsort label-6349
SELECT 41 * + SUM ( DISTINCT - 53 ) * + - 66
----
143418

query I rowsort
SELECT 77 + 38
----
115

query I rowsort
SELECT ALL - 81 + + 77
----
-4

query II rowsort
SELECT + 83 AS col2, - 58 AS col1
----
83
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT ALL - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL - CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT DISTINCT - 41, - 5 * ( 68 ) col2
----
-41
-340

query II rowsort
SELECT 43 AS col1, - 9
----
43
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6356
SELECT 18 / - 73 - - - 86 * - 36 * COUNT( * ) * - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) - - - 54 * 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT 18 / - 73 - - - 86 * - 36 * COUNT ( * ) * - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) - - - 54 * 90 AS col0
----
NULL

query I rowsort
SELECT 92 * 47 AS col2
----
4324

onlyif mysql # aggregate syntax: 
query II rowsort label-6358
SELECT ALL - NULLIF ( ( ( - - MIN( - 54 ) ) ), + 83 ) AS col1, - 71
----
54
-71

skipif mysql # not compatible
query II rowsort label-6358
SELECT ALL - NULLIF ( ( ( - - MIN ( - 54 ) ) ), + 83 ) AS col1, - 71
----
54
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT MAX( DISTINCT + 77 ) + + 58 col2
----
135

skipif mysql # not compatible
query I rowsort label-6359
SELECT MAX ( DISTINCT + 77 ) + + 58 col2
----
135

query I rowsort
SELECT DISTINCT + 37 + + 63
----
100

query I rowsort
SELECT ALL + 38 + + 5 AS col2
----
43

query I rowsort
SELECT ALL + 80 - + 29 * - - ( - 96 ) AS col0
----
2864

query I rowsort
SELECT + 96 * + + 26 AS col0
----
2496

query I rowsort
SELECT DISTINCT - - 71
----
71

query I rowsort
SELECT ALL + 89 * + + 27 + 24 - ( 23 ) * - - 99 AS col1
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6366
SELECT ALL - CAST( 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL - CAST ( 67 AS INTEGER )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT DISTINCT - 56 * + 60 + 48 + - 88 * - COUNT( * ) AS col0
----
-3224

skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT - 56 * + 60 + 48 + - 88 * - COUNT ( * ) AS col0
----
-3224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6368
SELECT - ( + COALESCE ( ( COALESCE ( 59, - 66 ) ), + 5 DIV + - MAX( - 87 ) ) ) * + 75 - + 43
----
-4468

skipif mysql # not compatible
query I rowsort label-6368
SELECT - ( + COALESCE ( ( COALESCE ( 59, - 66 ) ), + 5 / + - MAX ( - 87 ) ) ) * + 75 - + 43
----
-4468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6369
SELECT ALL 16 * + ( - CAST( NULL AS SIGNED ) ) + - MAX( DISTINCT + 53 ) AS col0, 60 * + 86
----
NULL
5160

skipif mysql # not compatible
query II rowsort label-6369
SELECT ALL 16 * + ( - CAST ( NULL AS INTEGER ) ) + - MAX ( DISTINCT + 53 ) AS col0, 60 * + 86
----
NULL
5160

query I rowsort
SELECT ALL - - 29 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT SUM( + - 1 ) + - - 68 col0
----
67

skipif mysql # not compatible
query I rowsort label-6371
SELECT SUM ( + - 1 ) + - - 68 col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6372
SELECT + ( 15 ) * 81 DIV - 86 - - 39
----
25

skipif mysql # not compatible
query I rowsort label-6372
SELECT + ( 15 ) * 81 / - 86 - - 39
----
25

query I rowsort
SELECT + ( - + 99 ) * - 14 * - 69
----
-95634

query I rowsort
SELECT - - 15 col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL + COUNT( DISTINCT + 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL + COUNT ( DISTINCT + 52 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT - SUM( + - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-6376
SELECT - SUM ( + - 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT ALL - COUNT( * ) * + 93
----
-93

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL - COUNT ( * ) * + 93
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6378
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - - 26 + - 77 - - 58 - - COUNT( * ) * + ( 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - - 26 + - 77 - - 58 - - COUNT ( * ) * + ( 78 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6379
SELECT 32 + - 45 DIV + + ( 37 )
----
31

skipif mysql # not compatible
query I rowsort label-6379
SELECT 32 + - 45 / + + ( 37 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT ALL 1 + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL 1 + + COUNT ( * ) AS col2
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-6381
SELECT 77 DIV + - 16, 7 DIV - 60 AS col1
----
-4
0

skipif mysql # not compatible
query II rowsort label-6381
SELECT 77 / + - 16, 7 / - 60 AS col1
----
-4
0

query I rowsort
SELECT ( + + 87 ) * 96 + + ( + 25 ) * - 63 - + 25 * - 56 AS col1
----
8177

query II rowsort
SELECT DISTINCT 74, - 35 - - 93 col0
----
74
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6384
SELECT DISTINCT ( ( - CAST( NULL AS SIGNED ) ) ) + - ( - - 70 ) - + - ( - - 67 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT ( ( - CAST ( NULL AS INTEGER ) ) ) + - ( - - 70 ) - + - ( - - 67 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6385
SELECT ALL + 22 + ( + - 87 ) * - COUNT( * ) * - 92 + + 7, 8 - - - 52 * MAX( - - 80 ) AS col0
----
-7975
-4152

skipif mysql # not compatible
query II rowsort label-6385
SELECT ALL + 22 + ( + - 87 ) * - COUNT ( * ) * - 92 + + 7, 8 - - - 52 * MAX ( - - 80 ) AS col0
----
-7975
-4152

query I rowsort
SELECT 67 + 74 - + + 51
----
90

query I rowsort
SELECT ALL 42 + - 74
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6388
SELECT ALL - 50 + CAST( NULL AS SIGNED ) col1, 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-6388
SELECT ALL - 50 + CAST ( NULL AS INTEGER ) col1, 14
----
NULL
14

query II rowsort
SELECT - 38 AS col1, 40
----
-38
40

query II rowsort
SELECT ALL 39, 39
----
39
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6391
SELECT ALL + 23 + CASE CASE 93 WHEN - 6 + + 54 + ( + 7 ) THEN + 91 + - - 93 END WHEN - + 15 THEN - COUNT( * ) END + - + 78 * + 30 / - CASE - ( - 51 ) WHEN - 2 + - + 43 THEN NULL WHEN 57 / + 68 + - - 42 THEN + - 42 ELSE NULL END * 37 + - - 62 * - - 19 * 35 / + CAST( 12 AS DECIMAL ) + ( + MAX( ALL 71 ) ) + 10 * - 25 + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL + 23 + CASE CASE 93 WHEN - 6 + + 54 + ( + 7 ) THEN + 91 + - - 93 END WHEN - + 15 THEN - COUNT ( * ) END + - + 78 * + 30 / - CASE - ( - 51 ) WHEN - 2 + - + 43 THEN NULL WHEN 57 / + 68 + - - 42 THEN + - 42 ELSE NULL END * 37 + - - 62 * - - 19 * 35 / + CAST ( 12 AS REAL ) + ( + MAX ( ALL 71 ) ) + 10 * - 25 + 22 AS col2
----
NULL

query I rowsort
SELECT + 41 * - 80 + + 53 + + - 57
----
-3284

query I rowsort
SELECT CASE WHEN ( NOT + 94 IS NULL ) THEN - 83 ELSE NULL END AS col1
----
-83

query I rowsort
SELECT - 82 - + 59 * + - 67
----
3871

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT ALL - SUM( ALL - 55 ) * - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL - SUM ( ALL - 55 ) * - COUNT ( * )
----
-55

query II rowsort
SELECT + 49 AS col2, 8
----
49
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6397
SELECT COALESCE ( - + 33, - CASE - 58 WHEN - - 71 + - 30 THEN NULL WHEN 63 * + ( + 23 ) THEN COUNT( DISTINCT + 65 ) * 21 + + MAX( DISTINCT + 47 ) END DIV 59 + + 25 + - 79 * + 41 + + 73 )
----
-33

skipif mysql # not compatible
query I rowsort label-6397
SELECT COALESCE ( - + 33, - CASE - 58 WHEN - - 71 + - 30 THEN NULL WHEN 63 * + ( + 23 ) THEN COUNT ( DISTINCT + 65 ) * 21 + + MAX ( DISTINCT + 47 ) END / 59 + + 25 + - 79 * + 41 + + 73 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT DISTINCT + + 52 * - 21 + + - MAX( DISTINCT 31 )
----
-1123

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT + + 52 * - 21 + + - MAX ( DISTINCT 31 )
----
-1123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6399
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 22 - ( NULLIF ( ( + + NULLIF ( 17, - 78 ) ), 30 ) ) - - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 22 - ( NULLIF ( ( + + NULLIF ( 17, - 78 ) ), 30 ) ) - - 46 AS col0
----
NULL

query II rowsort
SELECT + 23 AS col0, - 97 AS col2
----
23
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6401
SELECT DISTINCT + - CAST( + + 2 AS SIGNED ) * + 36 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6401
SELECT DISTINCT + - CAST ( + + 2 AS INTEGER ) * + 36 AS col0
----
-72

query I rowsort
SELECT DISTINCT + ( 82 )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6403
SELECT + COUNT( * ) * - 52 * 76 + 47 AS col2, 4 AS col2
----
-3905
4

skipif mysql # not compatible
query II rowsort label-6403
SELECT + COUNT ( * ) * - 52 * 76 + 47 AS col2, 4 AS col2
----
-3905
4

query I rowsort
SELECT + 63 col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6405
SELECT - + CAST( + 62 AS SIGNED ) + + - 61
----
-123

skipif mysql # not compatible
query I rowsort label-6405
SELECT - + CAST ( + 62 AS INTEGER ) + + - 61
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT + - COUNT( * ) + 9 * + 80
----
719

skipif mysql # not compatible
query I rowsort label-6406
SELECT + - COUNT ( * ) + 9 * + 80
----
719

onlyif mysql # DIV for integer division: 
query I rowsort label-6407
SELECT - + 27 * - - 13 + 75 DIV + 37 + - 18 + - + 30 * + + 34
----
-1387

skipif mysql # not compatible
query I rowsort label-6407
SELECT - + 27 * - - 13 + 75 / + 37 + - 18 + - + 30 * + + 34
----
-1387

query I rowsort
SELECT ALL 63 * 58 col2
----
3654

onlyif mysql # aggregate syntax: 
query II rowsort label-6409
SELECT ALL + 22, 0 * + + 47 + + - NULLIF ( - 1, + + 27 * + 31 + 31 + + COUNT( 52 ) * - - 10 ) - - + 25 AS col0
----
22
26

skipif mysql # not compatible
query II rowsort label-6409
SELECT ALL + 22, 0 * + + 47 + + - NULLIF ( - 1, + + 27 * + 31 + 31 + + COUNT ( 52 ) * - - 10 ) - - + 25 AS col0
----
22
26

query I rowsort
SELECT + 46 + - - 2 * 8
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6411
SELECT ALL + CAST( 86 AS SIGNED ) + 15 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL + CAST ( 86 AS INTEGER ) + 15 AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT - MIN( DISTINCT - ( - 83 ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-6412
SELECT - MIN ( DISTINCT - ( - 83 ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT ALL + MIN( ALL + 8 ) + - + ( - 42 )
----
50

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL + MIN ( ALL + 8 ) + - + ( - 42 )
----
50

query I rowsort
SELECT + - ( + 41 ) + + 90
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT - CASE 62 WHEN COUNT( 63 ) + + 98 THEN NULL ELSE 18 END AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-6415
SELECT - CASE 62 WHEN COUNT ( 63 ) + + 98 THEN NULL ELSE 18 END AS col0
----
-18

query I rowsort
SELECT - 90 * + - 78
----
7020

query I rowsort
SELECT ALL 2 + + 60 + 46 AS col0
----
108

query I rowsort
SELECT + 84 + 53 AS col1
----
137

query II rowsort
SELECT ALL 54 + + + 79 AS col0, 39 AS col1
----
133
39

query I rowsort
SELECT - ( + 78 ) AS col0
----
-78

query I rowsort
SELECT ALL + 18 + - 22 + + - 96
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT + ( + - ( MAX( + + 59 ) ) ) * + + 41 AS col2
----
-2419

skipif mysql # not compatible
query I rowsort label-6422
SELECT + ( + - ( MAX ( + + 59 ) ) ) * + + 41 AS col2
----
-2419

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT - ( COUNT( DISTINCT 86 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6423
SELECT - ( COUNT ( DISTINCT 86 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6424
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), + 1 DIV - 50 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6424
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), + 1 / - 50 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6425
SELECT + COUNT( * ) + + + 22 - - 51 DIV - 21
----
21

skipif mysql # not compatible
query I rowsort label-6425
SELECT + COUNT ( * ) + + + 22 - - 51 / - 21
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6426
SELECT ALL AVG ( ALL 59 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL AVG ( ALL 59 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6427
SELECT + ( - 66 ) * COUNT( ALL CAST( NULL AS DECIMAL ) ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6427
SELECT + ( - 66 ) * COUNT ( ALL CAST ( NULL AS REAL ) ) * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6428
SELECT - 0 * COUNT( * ) AS col0, - ( COUNT( * ) ) AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-6428
SELECT - 0 * COUNT ( * ) AS col0, - ( COUNT ( * ) ) AS col0
----
0
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6429
SELECT - 58 + + CAST( + 86 AS SIGNED ) DIV - 49 - 11
----
-70

skipif mysql # not compatible
query I rowsort label-6429
SELECT - 58 + + CAST ( + 86 AS INTEGER ) / - 49 - 11
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT DISTINCT MIN( - COALESCE ( + ( + 2 ), ( + ( - 26 ) ) + + - 57 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT MIN ( - COALESCE ( + ( + 2 ), ( + ( - 26 ) ) + + - 57 ) ) AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6431
SELECT ALL COALESCE ( COUNT( * ), 67 * 53 + 40 + 68 + 10 DIV - 45 * 47 )
----
1

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL COALESCE ( COUNT ( * ), 67 * 53 + 40 + 68 + 10 / - 45 * 47 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6432
SELECT DISTINCT - 30 DIV - - COUNT( * ) AS col2, ( + COUNT( * ) ) col1
----
-30
1

skipif mysql # not compatible
query II rowsort label-6432
SELECT DISTINCT - 30 / - - COUNT ( * ) AS col2, ( + COUNT ( * ) ) col1
----
-30
1

query I rowsort
SELECT + COALESCE ( 50, + 1 + ( - - 38 ), + 78 * - 82 )
----
50

query I rowsort
SELECT - NULLIF ( + 78, + 13 )
----
-78

query I rowsort
SELECT - 37 + - 68
----
-105

query I rowsort
SELECT + + ( - + ( - + 77 ) )
----
77

query I rowsort
SELECT ALL + + ( + 44 ) col1
----
44

query I rowsort
SELECT DISTINCT + 78 * 8 * - 77 AS col0
----
-48048

query I rowsort
SELECT - + 40 * - + 3 AS col2
----
120

query I rowsort
SELECT DISTINCT + 34 * + 53 AS col0
----
1802

query I rowsort
SELECT ALL + - 78 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT DISTINCT 49 * + 5 - + 82 * + 40 + + COUNT( * ) * + 45 + - 7 * - COALESCE ( + 45, + 57 ) - + - 2 * + 4 + + - 27 * + 79 * 55
----
-119982

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT 49 * + 5 - + 82 * + 40 + + COUNT ( * ) * + 45 + - 7 * - COALESCE ( + 45, + 57 ) - + - 2 * + 4 + + - 27 * + 79 * 55
----
-119982

onlyif mysql # DIV for integer division: 
query I rowsort label-6443
SELECT - + 90 DIV 68 + 92 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6443
SELECT - + 90 / 68 + 92 AS col1
----
91

query I rowsort
SELECT ALL - 37 * 53 + 68 AS col0
----
-1893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6445
SELECT + + ( COALESCE ( MAX( ALL CAST( NULL AS SIGNED ) ), + 25 ) ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6445
SELECT + + ( COALESCE ( MAX ( ALL CAST ( NULL AS INTEGER ) ), + 25 ) ) AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6446
SELECT ALL + COALESCE ( - + 56, + 11 * + NULLIF ( + + 12, + 30 ) ) AS col2, 41 + + CAST( NULL AS SIGNED ) col2
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-6446
SELECT ALL + COALESCE ( - + 56, + 11 * + NULLIF ( + + 12, + 30 ) ) AS col2, 41 + + CAST ( NULL AS INTEGER ) col2
----
-56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT + CASE 14 WHEN + 69 THEN + 45 ELSE NULL END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6447
SELECT + CASE 14 WHEN + 69 THEN + 45 ELSE NULL END * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6448
SELECT NULLIF ( 25, + + 10 - - CAST( NULL AS DECIMAL ) )
----
25

skipif mysql # not compatible
query I rowsort label-6448
SELECT NULLIF ( 25, + + 10 - - CAST ( NULL AS REAL ) )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6449
SELECT - 60 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT - 60 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT ALL + MAX( - 44 ) * - 21 + 91 AS col1
----
1015

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL + MAX ( - 44 ) * - 21 + 91 AS col1
----
1015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT DISTINCT CAST( + 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT CAST ( + 23 AS INTEGER )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT 47 + + + COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6452
SELECT 47 + + + COUNT ( * ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-6453
SELECT 59 col2, - SUM( - 93 ) * - 37
----
59
-3441

skipif mysql # not compatible
query II rowsort label-6453
SELECT 59 col2, - SUM ( - 93 ) * - 37
----
59
-3441

query I rowsort
SELECT 57 + - COALESCE ( 86, 90, 90 )
----
-29

query I rowsort
SELECT ALL 12 * - 93
----
-1116

query II rowsort
SELECT 66 + - - 50 * + 80, - 63 + 33 * + + 14 + 82 * 26 AS col0
----
4066
2531

onlyif mysql # aggregate syntax: 
query II rowsort label-6457
SELECT MIN( ALL - 7 ) + - 41, + 28 AS col2
----
-48
28

skipif mysql # not compatible
query II rowsort label-6457
SELECT MIN ( ALL - 7 ) + - 41, + 28 AS col2
----
-48
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6458
SELECT - 89, MAX( CAST( 82 AS SIGNED ) ) * + 28 * + - 70 AS col0
----
-89
-160720

skipif mysql # not compatible
query II rowsort label-6458
SELECT - 89, MAX ( CAST ( 82 AS INTEGER ) ) * + 28 * + - 70 AS col0
----
-89
-160720

query I rowsort
SELECT DISTINCT - 5 - - 20 + + 28 * + - 14
----
-377

onlyif mysql # aggregate syntax: 
query II rowsort label-6460
SELECT 92 + - + 43 + COUNT( + 48 ) AS col0, + ( - MAX( + 29 ) ) AS col0
----
50
-29

skipif mysql # not compatible
query II rowsort label-6460
SELECT 92 + - + 43 + COUNT ( + 48 ) AS col0, + ( - MAX ( + 29 ) ) AS col0
----
50
-29

query II rowsort
SELECT 65, ( + 1 ) * + 97 AS col2
----
65
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6462
SELECT 1 + + COUNT( + 13 ), - 6 / CAST( NULL AS SIGNED ) AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-6462
SELECT 1 + + COUNT ( + 13 ), - 6 / CAST ( NULL AS INTEGER ) AS col2
----
2
NULL

query I rowsort
SELECT ALL 34 * + - 36 AS col1
----
-1224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6464
SELECT COUNT( * ) + + + 63 DIV 40
----
2

skipif mysql # not compatible
query I rowsort label-6464
SELECT COUNT ( * ) + + + 63 / 40
----
2

query I rowsort
SELECT 54 + - 0 AS col0
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-6466
SELECT - 58 AS col1, 77 DIV - 25
----
-58
-3

skipif mysql # not compatible
query II rowsort label-6466
SELECT - 58 AS col1, 77 / - 25
----
-58
-3

query I rowsort
SELECT 44 - + + 48 AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6468
SELECT ALL CAST( - CASE 41 WHEN 96 THEN - 49 WHEN + COUNT( * ) THEN NULL ELSE NULL END AS SIGNED ) * + + 2 + + 32, COALESCE ( - ( + 93 ), 66, - 87 ) + - CAST( NULL AS SIGNED ) * + 96
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6468
SELECT ALL CAST ( - CASE 41 WHEN 96 THEN - 49 WHEN + COUNT ( * ) THEN NULL ELSE NULL END AS INTEGER ) * + + 2 + + 32, COALESCE ( - ( + 93 ), 66, - 87 ) + - CAST ( NULL AS INTEGER ) * + 96
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT - 52 * - SUM( - 67 ) AS col0
----
-3484

skipif mysql # not compatible
query I rowsort label-6469
SELECT - 52 * - SUM ( - 67 ) AS col0
----
-3484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6470
SELECT 75 * COUNT( - 24 ) DIV + + 45 * + 7 DIV - + 6
----
-1

skipif mysql # not compatible
query I rowsort label-6470
SELECT 75 * COUNT ( - 24 ) / + + 45 * + 7 / - + 6
----
-1

query I rowsort
SELECT ALL + 49 + + - 95 AS col2
----
-46

query I rowsort
SELECT + - 23 col0
----
-23

query I rowsort
SELECT ALL - 75 + + + 82 AS col0
----
7

query I rowsort
SELECT DISTINCT 66 + - 78
----
-12

query II rowsort
SELECT 36 * ( + - 62 ) + - 20 AS col0, 64 AS col1
----
-2252
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6476
SELECT ALL - 25 DIV + 50 + + - 51 + 92 * - 62
----
-5755

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL - 25 / + 50 + + - 51 + 92 * - 62
----
-5755

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT DISTINCT + 67 + COUNT( * ) - - 89 AS col0
----
157

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT + 67 + COUNT ( * ) - - 89 AS col0
----
157

onlyif mysql # aggregate syntax: 
query II rowsort label-6478
SELECT ALL + 56 + - 54 + + 11, + 87 * + COUNT( * ) AS col2
----
13
87

skipif mysql # not compatible
query II rowsort label-6478
SELECT ALL + 56 + - 54 + + 11, + 87 * + COUNT ( * ) AS col2
----
13
87

query I rowsort
SELECT ( + + 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6480
SELECT - + 18 DIV 78 * + COUNT( * ) * + 60 * - 10 + + COUNT( * ) + + MAX( + - 48 ) + - 51 + 43 * - 46 col0
----
-2076

skipif mysql # not compatible
query I rowsort label-6480
SELECT - + 18 / 78 * + COUNT ( * ) * + 60 * - 10 + + COUNT ( * ) + + MAX ( + - 48 ) + - 51 + 43 * - 46 col0
----
-2076

query I rowsort
SELECT 23 * 23 AS col1
----
529

query I rowsort
SELECT DISTINCT 7 + - 26
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6483
SELECT - 81 + + - 85 * 12, - 91 + 7 - - COUNT( * ) DIV 17 AS col0
----
-1101
-84

skipif mysql # not compatible
query II rowsort label-6483
SELECT - 81 + + - 85 * 12, - 91 + 7 - - COUNT ( * ) / 17 AS col0
----
-1101
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT + + MIN( DISTINCT + + 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6484
SELECT + + MIN ( DISTINCT + + 28 ) AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6485
SELECT - CAST( + - 66 AS DECIMAL ) + + 18 * 37 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT - CAST ( + - 66 AS REAL ) + + 18 * 37 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6486
SELECT + NULLIF ( + 50, + - 65 ), 33 DIV + MAX( 84 ) AS col1
----
50
0

skipif mysql # not compatible
query II rowsort label-6486
SELECT + NULLIF ( + 50, + - 65 ), 33 / + MAX ( 84 ) AS col1
----
50
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6487
SELECT DISTINCT - + 73 AS col0, COUNT( * ) * + + 96 * - + 47 AS col2
----
-73
-4512

skipif mysql # not compatible
query II rowsort label-6487
SELECT DISTINCT - + 73 AS col0, COUNT ( * ) * + + 96 * - + 47 AS col2
----
-73
-4512

query I rowsort
SELECT 61 * 89
----
5429

query I rowsort
SELECT ALL 25 * + 59
----
1475

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT 67 + - - SUM( + 72 ) * + 35 AS col0
----
2587

skipif mysql # not compatible
query I rowsort label-6490
SELECT 67 + - - SUM ( + 72 ) * + 35 AS col0
----
2587

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6491
SELECT ALL - 18 - + CASE - 4 WHEN + 57 THEN NULL ELSE + CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL - 18 - + CASE - 4 WHEN + 57 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END col2
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 28, - - 35 )
----
28

query I rowsort
SELECT 77 + - 90
----
-13

query I rowsort
SELECT DISTINCT - 36 - 86 AS col0
----
-122

query I rowsort
SELECT 86 * + 75 * + 55 AS col2
----
354750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6496
SELECT - CAST( NULL AS SIGNED ) * + - 67 + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6496
SELECT - CAST ( NULL AS INTEGER ) * + - 67 + 21
----
NULL

query I rowsort
SELECT 76 * + 98
----
7448

query I rowsort
SELECT 12 + 12
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT 92 + + COUNT( * ) * - 77 + + 81 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6499
SELECT 92 + + COUNT ( * ) * - 77 + + 81 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT ALL SUM( ALL 5 )
----
5

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL SUM ( ALL 5 )
----
5

query I rowsort
SELECT 1 * - 68 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT ALL COUNT( * ) * - MAX( - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL COUNT ( * ) * - MAX ( - 31 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6503
SELECT 8 DIV - 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6503
SELECT 8 / - 35 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT DISTINCT MIN( DISTINCT + 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT MIN ( DISTINCT + 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT - 97 + COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6505
SELECT - 97 + COUNT ( * ) AS col2
----
-96

query II rowsort
SELECT DISTINCT - + 58 + 24 AS col0, - 45 + - 25 AS col0
----
-34
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT - 40 * + COUNT( * ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-6507
SELECT - 40 * + COUNT ( * ) col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT 89 * - CASE + COUNT( ALL 32 ) WHEN 44 THEN + 47 ELSE - 70 END AS col0
----
6230

skipif mysql # not compatible
query I rowsort label-6508
SELECT 89 * - CASE + COUNT ( ALL 32 ) WHEN 44 THEN + 47 ELSE - 70 END AS col0
----
6230

onlyif mysql # DIV for integer division: 
query I rowsort label-6509
SELECT ALL + NULLIF ( 19, + 6 * - - 1 * 53 ) + + 32 DIV + 33 * 54 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL + NULLIF ( 19, + 6 * - - 1 * 53 ) + + 32 / + 33 * 54 AS col1
----
19

query I rowsort
SELECT CASE WHEN - 39 BETWEEN + 48 AND - 91 THEN NULL WHEN NULL >= ( NULL ) THEN - 60 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 97 col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT DISTINCT + - 76 * + COUNT( * ) + + 8 col0
----
-68

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT + - 76 * + COUNT ( * ) + + 8 col0
----
-68

query I rowsort
SELECT ALL + + ( + 3 ) * + 52 + - + 52
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-6514
SELECT - + 28 DIV 56 + - 46 * + ( + 86 ) + + + 61 + 14
----
-3881

skipif mysql # not compatible
query I rowsort label-6514
SELECT - + 28 / 56 + - 46 * + ( + 86 ) + + + 61 + 14
----
-3881

query I rowsort
SELECT ALL - - 96 AS col2
----
96

query I rowsort
SELECT DISTINCT 0 * 52 - - 24
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT + 48 * + + COUNT( * ) + - - 0 + - 1 + - 47 + - 38 * + + 32
----
-1216

skipif mysql # not compatible
query I rowsort label-6517
SELECT + 48 * + + COUNT ( * ) + - - 0 + - 1 + - 47 + - 38 * + + 32
----
-1216

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6518
SELECT ALL + 2 * - 89 DIV + - ( - + 20 ) AS col2, COUNT( * ) AS col0
----
-8
1

skipif mysql # not compatible
query II rowsort label-6518
SELECT ALL + 2 * - 89 / + - ( - + 20 ) AS col2, COUNT ( * ) AS col0
----
-8
1

query I rowsort
SELECT DISTINCT 58 * - - 84 AS col1
----
4872

query I rowsort
SELECT + 81 * 88 + + 7 - 21
----
7114

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT DISTINCT 84 * + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT 84 * + COUNT ( * )
----
84

query I rowsort
SELECT + 31 * + 79 AS col2
----
2449

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT + MIN( + + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-6523
SELECT + MIN ( + + 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT - 66 * - - MIN( + 65 )
----
-4290

skipif mysql # not compatible
query I rowsort label-6524
SELECT - 66 * - - MIN ( + 65 )
----
-4290

onlyif mysql # aggregate syntax: 
query II rowsort label-6525
SELECT + COUNT( * ) col1, 66 AS col2
----
1
66

skipif mysql # not compatible
query II rowsort label-6525
SELECT + COUNT ( * ) col1, 66 AS col2
----
1
66

query I rowsort
SELECT + 95 * + + 1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6527
SELECT ALL MIN( DISTINCT - CAST( - 55 AS SIGNED ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL MIN ( DISTINCT - CAST ( - 55 AS INTEGER ) ) AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6528
SELECT + ( CAST( NULL AS SIGNED ) ) - + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT + ( CAST ( NULL AS INTEGER ) ) - + 11 AS col2
----
NULL

query II rowsort
SELECT ALL 79, + 99 AS col0
----
79
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ALL - MAX( + 89 ) * - ( - 63 ) - 38 * - COUNT( DISTINCT + 44 ) col1
----
-5569

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL - MAX ( + 89 ) * - ( - 63 ) - 38 * - COUNT ( DISTINCT + 44 ) col1
----
-5569

query I rowsort
SELECT - 0 * - 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT + COUNT( * ) + - COUNT( * ) - - + 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6532
SELECT + COUNT ( * ) + - COUNT ( * ) - - + 4 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT ALL - 88 * + SUM( - 81 ) * + - 64
----
-456192

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL - 88 * + SUM ( - 81 ) * + - 64
----
-456192

query II rowsort
SELECT 27 AS col1, 90
----
27
90

onlyif mysql # aggregate syntax: 
query II rowsort label-6535
SELECT ALL + MIN( - 58 ) + + 98 AS col1, - 3 - - 76 * 76
----
40
5773

skipif mysql # not compatible
query II rowsort label-6535
SELECT ALL + MIN ( - 58 ) + + 98 AS col1, - 3 - - 76 * 76
----
40
5773

query I rowsort
SELECT - 69 * + 47
----
-3243

query I rowsort
SELECT - - ( 71 ) AS col1
----
71

query I rowsort
SELECT - + 60 + + 21 col2
----
-39

query I rowsort
SELECT ALL - 49 + - + 10 AS col0
----
-59

query I rowsort
SELECT ALL + 80 + + + 49 + - 62 col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT - 61 + + COUNT( * ) + 34
----
-26

skipif mysql # not compatible
query I rowsort label-6541
SELECT - 61 + + COUNT ( * ) + 34
----
-26

query I rowsort
SELECT ALL + + 92 * - - 91 * + 40 AS col0
----
334880

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT NULLIF ( SUM( 93 ), - 9 )
----
93

skipif mysql # not compatible
query I rowsort label-6543
SELECT NULLIF ( SUM ( 93 ), - 9 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6544
SELECT - ( - - 34 ) + + + CASE + 65 WHEN - COUNT( * ) THEN 93 - + COUNT( + + 85 ) - + COALESCE ( - CASE 14 WHEN + 2 - + + 26 THEN NULL WHEN - + 74 THEN + MAX( 70 ) ELSE NULL END, + COUNT( * ) ) ELSE - MIN( 12 ) END * + 41 AS col0, 69 * - 48
----
-526
-3312

skipif mysql # not compatible
query II rowsort label-6544
SELECT - ( - - 34 ) + + + CASE + 65 WHEN - COUNT ( * ) THEN 93 - + COUNT ( + + 85 ) - + COALESCE ( - CASE 14 WHEN + 2 - + + 26 THEN NULL WHEN - + 74 THEN + MAX ( 70 ) ELSE NULL END, + COUNT ( * ) ) ELSE - MIN ( 12 ) END * + 41 AS col0, 69 * - 48
----
-526
-3312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6545
SELECT - CAST( NULL AS SIGNED ) + - 12 + 62 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6545
SELECT - CAST ( NULL AS INTEGER ) + - 12 + 62 + - - COUNT ( * )
----
NULL

query I rowsort
SELECT - 41 + - + COALESCE ( - 82, + + 15 )
----
41

query I rowsort
SELECT + + 28 - + 89 col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT ALL - + COUNT( * ) * + 59 col0
----
-59

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL - + COUNT ( * ) * + 59 col0
----
-59

query I rowsort
SELECT + + 86 AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6550
SELECT - 90 + - SUM( DISTINCT 17 ) - - 28 * - + CAST( - 66 AS SIGNED )
----
1741

skipif mysql # not compatible
query I rowsort label-6550
SELECT - 90 + - SUM ( DISTINCT 17 ) - - 28 * - + CAST ( - 66 AS INTEGER )
----
1741

query I rowsort
SELECT ALL + 16 * - - 64 - 91 AS col0
----
933

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT + COUNT( * ) * - 55 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-6552
SELECT + COUNT ( * ) * - 55 AS col1
----
-55

query I rowsort
SELECT - 72 * - 42 + + 4
----
3028

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT ( + ( ( + ( - COUNT( * ) ) ) ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6554
SELECT ( + ( ( + ( - COUNT ( * ) ) ) ) ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT + COALESCE ( + 15, + COALESCE ( 45, + COUNT( * ) ), 31 * - + 90 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6555
SELECT + COALESCE ( + 15, + COALESCE ( 45, + COUNT ( * ) ), 31 * - + 90 ) AS col0
----
15

query II rowsort
SELECT ALL + 22 AS col2, + 97 AS col1
----
22
97

query I rowsort
SELECT - 1 + - 94
----
-95

query I rowsort
SELECT ALL 89 * - 33 AS col2
----
-2937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6559
SELECT + COALESCE ( + + CAST( + 90 AS SIGNED ), - 29 + + 17 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6559
SELECT + COALESCE ( + + CAST ( + 90 AS INTEGER ), - 29 + + 17 ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT ( - COUNT( * ) ) * + 43 + + 90 + + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-6560
SELECT ( - COUNT ( * ) ) * + 43 + + 90 + + COUNT ( * )
----
48

query I rowsort
SELECT + 33 * + 53 + 12 AS col2
----
1761

query I rowsort
SELECT + 24 + - 6
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6563
SELECT ALL 52 * + 1 * + ( COUNT( * ) ) * + 41 + - + COUNT( * ) AS col0, COUNT( * )
----
2131
1

skipif mysql # not compatible
query II rowsort label-6563
SELECT ALL 52 * + 1 * + ( COUNT ( * ) ) * + 41 + - + COUNT ( * ) AS col0, COUNT ( * )
----
2131
1

query I rowsort
SELECT + 0 + + 58 AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6565
SELECT + CAST( NULL AS SIGNED ) * + + COALESCE ( - COUNT( + + NULLIF ( + 12, + + 34 ) ), - COUNT( + 40 ) * 13 + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6565
SELECT + CAST ( NULL AS INTEGER ) * + + COALESCE ( - COUNT ( + + NULLIF ( + 12, + + 34 ) ), - COUNT ( + 40 ) * 13 + 40 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6566
SELECT DISTINCT COALESCE ( - 32, + + 47, + - ( AVG ( + 8 ) ) * + 16 ) DIV + CAST( - 33 AS SIGNED ) * - 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT COALESCE ( - 32, + + 47, + - ( AVG ( + 8 ) ) * + 16 ) / + CAST ( - 33 AS INTEGER ) * - 15 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6567
SELECT ALL + 31 * - - 21 + + MIN( - + 90 ) AS col1, - 16 + 0 + - 21 AS col1
----
561
-37

skipif mysql # not compatible
query II rowsort label-6567
SELECT ALL + 31 * - - 21 + + MIN ( - + 90 ) AS col1, - 16 + 0 + - 21 AS col1
----
561
-37

query I rowsort
SELECT + 93 + + - 54 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6569
SELECT - CASE 6 WHEN 68 * - MAX( - - 10 ) - 86 + - + MIN( ALL + - 76 ) + - 72 * + 6 + + COALESCE ( - 77, + 44 ) + + + 65 - - + COUNT( 23 ) THEN COUNT( * ) * + 56 + + COUNT( * ) WHEN + 90 + + 44 + + + MAX( DISTINCT - 70 ) + - + 2 * + NULLIF ( - + 54, - 80 / - 25 ) * SUM( ALL - 94 ) THEN NULL ELSE NULL END * - 98 / - 83 + + 49 + - ( CAST( - COALESCE ( 36, AVG ( + 1 ) + CAST( NULL AS SIGNED ), 6 ) AS SIGNED ) ) + - - AVG ( DISTINCT + 11 ) + - 30 + + + 46 / + COALESCE ( 39, 82 + - ( + COUNT( * ) ) ) * 40 + - NULLIF ( 34, + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6569
SELECT - CASE 6 WHEN 68 * - MAX ( - - 10 ) - 86 + - + MIN ( ALL + - 76 ) + - 72 * + 6 + + COALESCE ( - 77, + 44 ) + + + 65 - - + COUNT ( 23 ) THEN COUNT ( * ) * + 56 + + COUNT ( * ) WHEN + 90 + + 44 + + + MAX ( DISTINCT - 70 ) + - + 2 * + NULLIF ( - + 54, - 80 / - 25 ) * SUM ( ALL - 94 ) THEN NULL ELSE NULL END * - 98 / - 83 + + 49 + - ( CAST ( - COALESCE ( 36, AVG ( + 1 ) + CAST ( NULL AS INTEGER ), 6 ) AS INTEGER ) ) + - - AVG ( DISTINCT + 11 ) + - 30 + + + 46 / + COALESCE ( 39, 82 + - ( + COUNT ( * ) ) ) * 40 + - NULLIF ( 34, + 53 )
----
NULL

query I rowsort
SELECT ALL + 15 * + 89 + - - 64
----
1399

query I rowsort
SELECT - ( ( + 96 ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL + - NULLIF ( + - SUM( + NULLIF ( 8, + - 50 * - 81 ) ), - 72 ) * + 95 * + 68 + 12 AS col0
----
51692

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL + - NULLIF ( + - SUM ( + NULLIF ( 8, + - 50 * - 81 ) ), - 72 ) * + 95 * + 68 + 12 AS col0
----
51692

query I rowsort
SELECT DISTINCT - 51 + 29 AS col1
----
-22

query I rowsort
SELECT ALL + + 90 * 35 AS col0
----
3150

onlyif mysql # DIV for integer division: 
query I rowsort label-6575
SELECT ALL + 18 + - 98 DIV + 18
----
13

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL + 18 + - 98 / + 18
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL - CASE 26 WHEN ( + 21 ) * - 83 * + 7 THEN NULL WHEN COUNT( * ) * 32 + + 99 THEN NULL ELSE + 17 END
----
-17

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL - CASE 26 WHEN ( + 21 ) * - 83 * + 7 THEN NULL WHEN COUNT ( * ) * 32 + + 99 THEN NULL ELSE + 17 END
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-6577
SELECT + - 63 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6577
SELECT + - 63 / - 83 AS col0
----
0

query I rowsort
SELECT ALL - - ( - - 28 ) - 15 AS col0
----
13

query II rowsort
SELECT 18 AS col2, 44
----
18
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6580
SELECT - 61 DIV + 20
----
-3

skipif mysql # not compatible
query I rowsort label-6580
SELECT - 61 / + 20
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6581
SELECT ALL + - 73 DIV + 30 DIV - + COUNT( * ) + - 87 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL + - 73 / + 30 / - + COUNT ( * ) + - 87 AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6582
SELECT ALL + COUNT( * ) DIV NULLIF ( + 86, + CAST( + + 60 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL + COUNT ( * ) / NULLIF ( + 86, + CAST ( + + 60 AS INTEGER ) )
----
0

query I rowsort
SELECT COALESCE ( - 24, 16 ) * + - 54 * + 2
----
2592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6584
SELECT 95 * + 21 + 91, - CASE - 46 WHEN + 53 + + COUNT( * ) THEN - 13 * + + ( CAST( NULL AS SIGNED ) ) * - CASE + + 39 WHEN 60 * + MAX( ALL + 5 ) THEN - COUNT( * ) ELSE 80 - + 44 * + 55 * - 56 END + - COUNT( * ) + 80 ELSE 56 DIV - 63 END AS col0
----
2086
0

skipif mysql # not compatible
query II rowsort label-6584
SELECT 95 * + 21 + 91, - CASE - 46 WHEN + 53 + + COUNT ( * ) THEN - 13 * + + ( CAST ( NULL AS INTEGER ) ) * - CASE + + 39 WHEN 60 * + MAX ( ALL + 5 ) THEN - COUNT ( * ) ELSE 80 - + 44 * + 55 * - 56 END + - COUNT ( * ) + 80 ELSE 56 / - 63 END AS col0
----
2086
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6585
SELECT ALL + 32 * - 15 * - + COALESCE ( 34, 30, + 53 + + 10 + 64 - + 25 * + 49 * - + NULLIF ( + 8, - + 44 * - + 25 - 92 - + SUM( + - 64 ) - + 60 - + + CAST( NULL AS SIGNED ) * - 91 / + 98 * 76 ) - 87 + - 86 * - 48 + + 97 * - 28 * - 60 * - - 25 )
----
16320

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL + 32 * - 15 * - + COALESCE ( 34, 30, + 53 + + 10 + 64 - + 25 * + 49 * - + NULLIF ( + 8, - + 44 * - + 25 - 92 - + SUM ( + - 64 ) - + 60 - + + CAST ( NULL AS INTEGER ) * - 91 / + 98 * 76 ) - 87 + - 86 * - 48 + + 97 * - 28 * - 60 * - - 25 )
----
16320

query I rowsort
SELECT DISTINCT - ( - 59 ) AS col2
----
59

query I rowsort
SELECT ALL 42 + - 56 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT + 29 * + COUNT( * ) - - - NULLIF ( 54, + 28 / - 2 + 91 * + 94 )
----
-25

skipif mysql # not compatible
query I rowsort label-6588
SELECT + 29 * + COUNT ( * ) - - - NULLIF ( 54, + 28 / - 2 + 91 * + 94 )
----
-25

query I rowsort
SELECT DISTINCT - ( + + 32 )
----
-32

query I rowsort
SELECT 92 * - - 15 * - - 86
----
118680

query I rowsort
SELECT DISTINCT ( - 98 ) * + 63
----
-6174

query II rowsort
SELECT ALL + 70 + 21 AS col1, - 89 * - 30 AS col2
----
91
2670

onlyif mysql # aggregate syntax: 
query II rowsort label-6593
SELECT COALESCE ( 96, - 96 + COUNT( * ) * 0 ) - 74 + + - 51 AS col1, - 25 AS col2
----
-29
-25

skipif mysql # not compatible
query II rowsort label-6593
SELECT COALESCE ( 96, - 96 + COUNT ( * ) * 0 ) - 74 + + - 51 AS col1, - 25 AS col2
----
-29
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6594
SELECT - COALESCE ( + + COUNT( * ), + 88 * + 98 + + COUNT( * ) ) AS col1, + 26 col1
----
-1
26

skipif mysql # not compatible
query II rowsort label-6594
SELECT - COALESCE ( + + COUNT ( * ), + 88 * + 98 + + COUNT ( * ) ) AS col1, + 26 col1
----
-1
26

query I rowsort
SELECT ALL + ( - + 27 ) + - 84 col1
----
-111

query I rowsort
SELECT - 52 * - 84
----
4368

onlyif mysql # DIV for integer division: 
query I rowsort label-6597
SELECT ALL - 97 DIV - 45
----
2

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL - 97 / - 45
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6598
SELECT 13 - + 57 DIV ( - 24 )
----
15

skipif mysql # not compatible
query I rowsort label-6598
SELECT 13 - + 57 / ( - 24 )
----
15

query I rowsort
SELECT 15 + + 7 - + - 63 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT CASE COUNT( ALL + 96 ) WHEN + 99 - 69 + 45 + 81 THEN 63 ELSE NULL END + - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6600
SELECT CASE COUNT ( ALL + 96 ) WHEN + 99 - 69 + 45 + 81 THEN 63 ELSE NULL END + - 92 AS col0
----
NULL

query I rowsort
SELECT ALL 89 * + + 74
----
6586

query I rowsort
SELECT + 59 + - 27 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT ( - 97 ) + ( COUNT( * ) ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6603
SELECT ( - 97 ) + ( COUNT ( * ) ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT DISTINCT 47 * 6 * COUNT( + + 36 ) AS col2
----
282

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT 47 * 6 * COUNT ( + + 36 ) AS col2
----
282

query I rowsort
SELECT + ( - 63 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6606
SELECT - COALESCE ( COUNT( * ), - 55, + + 64 - + NULLIF ( - - 34, 43 ) ) * - CAST( + 96 AS SIGNED ) + - 39 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-6606
SELECT - COALESCE ( COUNT ( * ), - 55, + + 64 - + NULLIF ( - - 34, 43 ) ) * - CAST ( + 96 AS INTEGER ) + - 39 AS col2
----
57

query I rowsort
SELECT DISTINCT NULLIF ( + + 91, + - 5 - - 82 )
----
91

query I rowsort
SELECT DISTINCT 19 + - 56 AS col2
----
-37

query II rowsort
SELECT ALL + 0 + 8 * - 20 AS col2, + 34
----
-160
34

query I rowsort
SELECT 95 + + ( 57 ) col2
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-6611
SELECT ALL - 31, - 37 + + COUNT( * ) AS col2
----
-31
-36

skipif mysql # not compatible
query II rowsort label-6611
SELECT ALL - 31, - 37 + + COUNT ( * ) AS col2
----
-31
-36

query I rowsort
SELECT ALL - 28 + - 71
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT + SUM( DISTINCT - - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-6613
SELECT + SUM ( DISTINCT - - 1 )
----
1

query II rowsort
SELECT ALL + 1 + + + ( - 25 ) + + 4 AS col0, - 42 * 53 * ( - - 94 )
----
-20
-209244

query II rowsort
SELECT + 25 * NULLIF ( + + 28, - 94 ) * - 45 + + 55 + 28 + 43 col1, - 31 * 66 + 64 AS col1
----
-31374
-1982

query I rowsort
SELECT - 37 * - 25 * + 36 - + - 1
----
33301

query I rowsort
SELECT 92 + - 58
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT 65 * + 88 - + COUNT( ALL - 49 )
----
5719

skipif mysql # not compatible
query I rowsort label-6618
SELECT 65 * + 88 - + COUNT ( ALL - 49 )
----
5719

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT ALL - 29 + + 12 * - + COUNT( * ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL - 29 + + 12 * - + COUNT ( * ) col2
----
-41

query I rowsort
SELECT 1 + - 44 AS col1
----
-43

query I rowsort
SELECT 7 + - - 72 AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6622
SELECT DISTINCT - CAST( + 43 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT - CAST ( + 43 AS INTEGER )
----
-43

query I rowsort
SELECT DISTINCT + 84 + + + 91 AS col0
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT ALL - COUNT( 24 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL - COUNT ( 24 ) col1
----
-1

query I rowsort
SELECT 36 + + 89
----
125

query II rowsort
SELECT ALL 22 - ( 96 ) AS col2, - 65 AS col1
----
-74
-65

query I rowsort
SELECT 61 * - 9
----
-549

query I rowsort
SELECT + 41 + - 7
----
34

query I rowsort
SELECT - - 51 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT COUNT( * ) + COALESCE ( + COUNT( * ), + 23 ) + 97 + - - 50 + - 72 * 37 * + + 76
----
-202315

skipif mysql # not compatible
query I rowsort label-6630
SELECT COUNT ( * ) + COALESCE ( + COUNT ( * ), + 23 ) + 97 + - - 50 + - 72 * 37 * + + 76
----
-202315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6631
SELECT + 16 / CAST( NULL AS SIGNED ) * - - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6631
SELECT + 16 / CAST ( NULL AS INTEGER ) * - - 75 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6632
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 6 / + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 6 / + COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6633
SELECT ALL CASE + 65 WHEN + - COUNT( * ) THEN - CASE + COUNT( * ) WHEN + - COUNT( * ) * + - 39 * + 13 + + - MAX( 69 ) THEN - COUNT( * ) WHEN - ( COALESCE ( 56, 61 * - 11 * - 69, ( - 72 ) ) ) + 89 THEN NULL WHEN + 47 * - CAST( + 31 AS SIGNED ) THEN NULL ELSE NULL END * - - 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL CASE + 65 WHEN + - COUNT ( * ) THEN - CASE + COUNT ( * ) WHEN + - COUNT ( * ) * + - 39 * + 13 + + - MAX ( 69 ) THEN - COUNT ( * ) WHEN - ( COALESCE ( 56, 61 * - 11 * - 69, ( - 72 ) ) ) + 89 THEN NULL WHEN + 47 * - CAST ( + 31 AS INTEGER ) THEN NULL ELSE NULL END * - - 95 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 16 * - 17 + + 35
----
-237

onlyif mysql # aggregate syntax: 
query II rowsort label-6635
SELECT + ( - - 96 ) * + 14 - - COUNT( * ) AS col1, - 93 * ( - + 30 ) * - + 5 AS col0
----
1345
-13950

skipif mysql # not compatible
query II rowsort label-6635
SELECT + ( - - 96 ) * + 14 - - COUNT ( * ) AS col1, - 93 * ( - + 30 ) * - + 5 AS col0
----
1345
-13950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6636
SELECT + + ( - 84 ) * 28 + + + COALESCE ( + 38, + 29 + CAST( NULL AS SIGNED ) * + 48 ) * + + 21
----
-1554

skipif mysql # not compatible
query I rowsort label-6636
SELECT + + ( - 84 ) * 28 + + + COALESCE ( + 38, + 29 + CAST ( NULL AS INTEGER ) * + 48 ) * + + 21
----
-1554

query I rowsort
SELECT - 10 - - + 52
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT - + 3 DIV 20
----
0

skipif mysql # not compatible
query I rowsort label-6638
SELECT - + 3 / 20
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6639
SELECT ALL - COALESCE ( + COUNT( * ), + - CAST( NULL AS SIGNED ) + + + 99, 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL - COALESCE ( + COUNT ( * ), + - CAST ( NULL AS INTEGER ) + + + 99, 80 )
----
-1

query I rowsort
SELECT + - 28 * - 81
----
2268

query I rowsort
SELECT + - 23 * + 10
----
-230

query I rowsort
SELECT ALL 66 + + 6 + - + 44
----
28

query II rowsort
SELECT DISTINCT 78 + + - 25 AS col1, ( 72 )
----
53
72

onlyif mysql # aggregate syntax: 
query II rowsort label-6644
SELECT + 48 + 39 + COUNT( ALL - 27 ) AS col2, + 64 + + 30
----
88
94

skipif mysql # not compatible
query II rowsort label-6644
SELECT + 48 + 39 + COUNT ( ALL - 27 ) AS col2, + 64 + + 30
----
88
94

onlyif mysql # DIV for integer division: 
query II rowsort label-6645
SELECT - CASE 77 WHEN + - 17 * + 69 THEN NULL ELSE - + 88 END AS col1, - 68 + - + 65 DIV + 77
----
88
-68

skipif mysql # not compatible
query II rowsort label-6645
SELECT - CASE 77 WHEN + - 17 * + 69 THEN NULL ELSE - + 88 END AS col1, - 68 + - + 65 / + 77
----
88
-68

query II rowsort
SELECT ( 51 ), 87 AS col0
----
51
87

query I rowsort
SELECT ALL 40 * + 68 + 15
----
2735

query I rowsort
SELECT + 12 * 61 AS col0
----
732

query I rowsort
SELECT CASE + 70 WHEN COALESCE ( 93, + ( - 45 ), - + 73 / + 23 ) THEN + ( 2 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6650
SELECT CASE + 11 WHEN - 45 * + - 19 + + CAST( NULL AS SIGNED ) * 61 * - + 93 / 81 THEN + 80 WHEN 38 + - + 87 THEN + COUNT( * ) + - - 97 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6650
SELECT CASE + 11 WHEN - 45 * + - 19 + + CAST ( NULL AS INTEGER ) * 61 * - + 93 / 81 THEN + 80 WHEN 38 + - + 87 THEN + COUNT ( * ) + - - 97 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 55 * + - 36 - + 35 AS col1
----
-2015

query II rowsort
SELECT + 81 * - - 35 col1, + 84
----
2835
84

query I rowsort
SELECT - 87 * ( + - 40 ) AS col1
----
3480

query I rowsort
SELECT ALL + 43 * + 83 - 11
----
3558

query I rowsort
SELECT + - 53 col1
----
-53

query I rowsort
SELECT + - 96 col2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6657
SELECT ALL - ( 95 ) * - CAST( NULL AS SIGNED ) * + + 83 + + AVG ( - + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL - ( 95 ) * - CAST ( NULL AS INTEGER ) * + + 83 + + AVG ( - + 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT DISTINCT MIN( - 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT MIN ( - 60 ) AS col0
----
-60

query I rowsort
SELECT - 80 + 24 col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT - - 74 + - CASE + - CASE + + 67 WHEN + 23 THEN + + 95 END WHEN 36 THEN NULL WHEN - ( 19 ) THEN NULL WHEN + 9 THEN + 74 + COUNT( * ) WHEN 12 THEN NULL END + - + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6660
SELECT - - 74 + - CASE + - CASE + + 67 WHEN + 23 THEN + + 95 END WHEN 36 THEN NULL WHEN - ( 19 ) THEN NULL WHEN + 9 THEN + 74 + COUNT ( * ) WHEN 12 THEN NULL END + - + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT + - COUNT( DISTINCT - 17 ) - + + ( + - COUNT( * ) ) - + + 30 col0
----
-30

skipif mysql # not compatible
query I rowsort label-6661
SELECT + - COUNT ( DISTINCT - 17 ) - + + ( + - COUNT ( * ) ) - + + 30 col0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6662
SELECT - - NULLIF ( + + COUNT( + 6 ), 37 ), 50 AS col0
----
1
50

skipif mysql # not compatible
query II rowsort label-6662
SELECT - - NULLIF ( + + COUNT ( + 6 ), 37 ), 50 AS col0
----
1
50

onlyif mysql # aggregate syntax: 
query II rowsort label-6663
SELECT - COUNT( DISTINCT + 82 ) AS col1, 40
----
-1
40

skipif mysql # not compatible
query II rowsort label-6663
SELECT - COUNT ( DISTINCT + 82 ) AS col1, 40
----
-1
40

query I rowsort
SELECT ALL 69 + - 79 * - - 66
----
-5145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6665
SELECT - 43 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT - 43 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - + 95 * - - 62 + + 18
----
-5872

query I rowsort
SELECT DISTINCT - + 32 + + - 50 AS col1
----
-82

query I rowsort
SELECT ALL - 1 + 32 * - - 79
----
2527

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT - CASE - 71 WHEN + 30 THEN - - 91 WHEN + 21 THEN - + MAX( DISTINCT - 35 ) ELSE - + 1 END * - + 47 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6669
SELECT - CASE - 71 WHEN + 30 THEN - - 91 WHEN + 21 THEN - + MAX ( DISTINCT - 35 ) ELSE - + 1 END * - + 47 AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6670
SELECT 39, 76 * - 58 * MIN( ALL CAST( + - 59 AS SIGNED ) ) + - COALESCE ( + + 38, + 75, + 43 ) AS col0
----
39
260034

skipif mysql # not compatible
query II rowsort label-6670
SELECT 39, 76 * - 58 * MIN ( ALL CAST ( + - 59 AS INTEGER ) ) + - COALESCE ( + + 38, + 75, + 43 ) AS col0
----
39
260034

query I rowsort
SELECT + 95 * + ( - 97 )
----
-9215

query I rowsort
SELECT + 53 + - 75
----
-22

query I rowsort
SELECT DISTINCT + ( 78 ) AS col0
----
78

query II rowsort
SELECT ALL + 82 AS col2, 39
----
82
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT 2 * + 80 * + COUNT( * ) - + 93
----
67

skipif mysql # not compatible
query I rowsort label-6675
SELECT 2 * + 80 * + COUNT ( * ) - + 93
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT ALL + CAST( 32 AS SIGNED ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL + CAST ( 32 AS INTEGER ) AS col0
----
32

query I rowsort
SELECT + 35 + + + ( - - 56 ) AS col1
----
91

query I rowsort
SELECT + 94 * - + 46 * 80
----
-345920

query I rowsort
SELECT ALL 17 * 46 AS col2
----
782

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT 2 * - 30 + + 12 + - 10 - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-6680
SELECT 2 * - 30 + + 12 + - 10 - COUNT ( * )
----
-59

query I rowsort
SELECT + 64 * - 93
----
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT COALESCE ( + COUNT( * ), + - 89 ) * 3 + - 24 - 50 * + 99 + - 40
----
-5011

skipif mysql # not compatible
query I rowsort label-6682
SELECT COALESCE ( + COUNT ( * ), + - 89 ) * 3 + - 24 - 50 * + 99 + - 40
----
-5011

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6683
SELECT ( + ( - + 24 ) ) AS col2, + 58 + + + 12 + - - 47 DIV - - 28 DIV COUNT( * ) - - 54 + + 84 * - 46 * + ( 27 ) AS col1, - 11 * + COUNT( - + 75 )
----
-24
-104203
-11

skipif mysql # not compatible
query III rowsort label-6683
SELECT ( + ( - + 24 ) ) AS col2, + 58 + + + 12 + - - 47 / - - 28 / COUNT ( * ) - - 54 + + 84 * - 46 * + ( 27 ) AS col1, - 11 * + COUNT ( - + 75 )
----
-24
-104203
-11

query I rowsort
SELECT + ( - 43 ) AS col2
----
-43

query I rowsort
SELECT ( COALESCE ( - 57, 39, + 25 ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT DISTINCT COUNT( * ) * 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT COUNT ( * ) * 80 AS col0
----
80

query I rowsort
SELECT + 28 * 67 AS col2
----
1876

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT + 34 * + 31 + COUNT( * ) AS col1
----
1055

skipif mysql # not compatible
query I rowsort label-6688
SELECT + 34 * + 31 + COUNT ( * ) AS col1
----
1055

query I rowsort
SELECT DISTINCT - 93 col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT ALL + COUNT( * ) * 56 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL + COUNT ( * ) * 56 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT 71 + COALESCE ( + 57, NULLIF ( - 80, - 44 ) * 65 + COUNT( * ) )
----
128

skipif mysql # not compatible
query I rowsort label-6691
SELECT 71 + COALESCE ( + 57, NULLIF ( - 80, - 44 ) * 65 + COUNT ( * ) )
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT ALL 3 + + 98 * COUNT( * ) AS col0
----
101

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL 3 + + 98 * COUNT ( * ) AS col0
----
101

query I rowsort
SELECT 80 * - 36
----
-2880

query I rowsort
SELECT DISTINCT 38 + 25 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT ( + 74 ) * + MAX( - ( 32 ) ) col0
----
-2368

skipif mysql # not compatible
query I rowsort label-6695
SELECT ( + 74 ) * + MAX ( - ( 32 ) ) col0
----
-2368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6696
SELECT + CASE + 63 WHEN CAST( - COALESCE ( - 48, 86 ) AS SIGNED ) - 70 THEN CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) WHEN + COUNT( * ) + CAST( MAX( + 55 ) + CAST( NULL AS SIGNED ) AS SIGNED ) / CAST( + ( 51 ) AS SIGNED ) THEN NULL END * 73 + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT + CASE + 63 WHEN CAST ( - COALESCE ( - 48, 86 ) AS INTEGER ) - 70 THEN CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) WHEN + COUNT ( * ) + CAST ( MAX ( + 55 ) + CAST ( NULL AS INTEGER ) AS INTEGER ) / CAST ( + ( 51 ) AS INTEGER ) THEN NULL END * 73 + 4
----
NULL

query I rowsort
SELECT DISTINCT - 86 * - 34 AS col0
----
2924

query I rowsort
SELECT 5 + 75
----
80

query I rowsort
SELECT ALL + 14 + 72
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT DISTINCT - CASE 16 WHEN COUNT( * ) THEN 67 * 28 + - COUNT( * ) END + NULLIF ( 65, 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT - CASE 16 WHEN COUNT ( * ) THEN 67 * 28 + - COUNT ( * ) END + NULLIF ( 65, 9 )
----
NULL

query I rowsort
SELECT DISTINCT 96 * - 2 col2
----
-192

query I rowsort
SELECT DISTINCT 55 + + 30 AS col1
----
85

query I rowsort
SELECT DISTINCT 99 col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT ALL - COUNT( * ) + 80
----
79

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL - COUNT ( * ) + 80
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6705
SELECT 76 - + CASE 87 + CASE - COALESCE ( 3, 6 + + 52 DIV 97 ) WHEN 66 - 57 THEN NULL ELSE 65 + - COUNT( * ) END WHEN 73 THEN NULL ELSE + 91 * 33 END DIV + ( + MIN( ALL ( 4 ) ) + 48 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6705
SELECT 76 - + CASE 87 + CASE - COALESCE ( 3, 6 + + 52 / 97 ) WHEN 66 - 57 THEN NULL ELSE 65 + - COUNT ( * ) END WHEN 73 THEN NULL ELSE + 91 * 33 END / + ( + MIN ( ALL ( 4 ) ) + 48 ) AS col1
----
19

query I rowsort
SELECT 85 - + 1 AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6707
SELECT DISTINCT + 24 * + CASE + AVG ( 14 ) WHEN + 4 * ( - 71 ) THEN CAST( NULL AS SIGNED ) * NULLIF ( SUM( + 49 ) * + 96, - 76 * + MAX( ALL + 58 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT + 24 * + CASE + AVG ( 14 ) WHEN + 4 * ( - 71 ) THEN CAST ( NULL AS INTEGER ) * NULLIF ( SUM ( + 49 ) * + 96, - 76 * + MAX ( ALL + 58 ) ) END
----
NULL

query I rowsort
SELECT DISTINCT 16 col1
----
16

query I rowsort
SELECT 11 * 22
----
242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6710
SELECT ALL + 42 DIV COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL + 42 / COUNT ( * )
----
42

query I rowsort
SELECT 20 - ( - 53 + 96 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT COUNT( * ) - ( 98 ) * COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-6712
SELECT COUNT ( * ) - ( 98 ) * COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT COUNT( * ) * SUM( DISTINCT 30 * NULLIF ( + 22, 70 ) ) col0
----
660

skipif mysql # not compatible
query I rowsort label-6713
SELECT COUNT ( * ) * SUM ( DISTINCT 30 * NULLIF ( + 22, 70 ) ) col0
----
660

query I rowsort
SELECT ALL + 7 * + 63 AS col0
----
441

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6715
SELECT ALL - ( 2 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL - ( 2 ) * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 10 * - ( - 6 ) AS col0
----
60

query I rowsort
SELECT 52 + 2 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT COUNT( * ) * - 44
----
-44

skipif mysql # not compatible
query I rowsort label-6718
SELECT COUNT ( * ) * - 44
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6719
SELECT 53 DIV - 45 - + 16
----
-17

skipif mysql # not compatible
query I rowsort label-6719
SELECT 53 / - 45 - + 16
----
-17

query I rowsort
SELECT 36 * + 90 AS col1
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT COUNT( * ) * 30 + + 98 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-6721
SELECT COUNT ( * ) * 30 + + 98 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT DISTINCT - SUM( - 97 ) col0
----
97

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT - SUM ( - 97 ) col0
----
97

query I rowsort
SELECT DISTINCT - - 17 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT DISTINCT - MAX( - 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT - MAX ( - 45 ) AS col2
----
45

query I rowsort
SELECT DISTINCT - - 58 + + 6
----
64

query I rowsort
SELECT ALL - ( ( + 2 ) )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6727
SELECT DISTINCT 44 + + COALESCE ( - 46, SUM( 95 ) * CASE 93 WHEN + 65 THEN - COALESCE ( SUM( + 6 ), + COALESCE ( CASE 68 WHEN 62 * 46 THEN NULL ELSE + ( + COUNT( * ) ) * 50 END, NULLIF ( + ( 7 ), + COUNT( * ) * 44 ), ( + COUNT( * ) ) ) + MIN( ALL + 64 ) ) WHEN + MAX( - 21 ) THEN CASE - 72 WHEN + 85 + NULLIF ( 18, + 99 ) THEN NULL WHEN 15 * + 11 + - 18 * + 99 THEN + 75 DIV 45 - 27 ELSE NULL END END ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT 44 + + COALESCE ( - 46, SUM ( 95 ) * CASE 93 WHEN + 65 THEN - COALESCE ( SUM ( + 6 ), + COALESCE ( CASE 68 WHEN 62 * 46 THEN NULL ELSE + ( + COUNT ( * ) ) * 50 END, NULLIF ( + ( 7 ), + COUNT ( * ) * 44 ), ( + COUNT ( * ) ) ) + MIN ( ALL + 64 ) ) WHEN + MAX ( - 21 ) THEN CASE - 72 WHEN + 85 + NULLIF ( 18, + 99 ) THEN NULL WHEN 15 * + 11 + - 18 * + 99 THEN + 75 / 45 - 27 ELSE NULL END END ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT NULLIF ( 88, - COUNT( * ) ) * + 52 AS col1
----
4576

skipif mysql # not compatible
query I rowsort label-6728
SELECT NULLIF ( 88, - COUNT ( * ) ) * + 52 AS col1
----
4576

query I rowsort
SELECT 92 - 62 AS col1
----
30

query I rowsort
SELECT ALL 2 * + 97
----
194

query I rowsort
SELECT ALL - 38 + 62 AS col1
----
24

query I rowsort
SELECT + + 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT + + COUNT( + ( 40 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6733
SELECT + + COUNT ( + ( 40 ) )
----
1

query I rowsort
SELECT - 87 col1
----
-87

query I rowsort
SELECT ALL 29 + + 16
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT + COUNT( * ) * ( 16 ) - + 13 * + 3
----
-23

skipif mysql # not compatible
query I rowsort label-6736
SELECT + COUNT ( * ) * ( 16 ) - + 13 * + 3
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL - COUNT( * ) * ( + 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL - COUNT ( * ) * ( + 24 ) AS col2
----
-24

query I rowsort
SELECT ALL ( 74 ) AS col2
----
74

query I rowsort
SELECT DISTINCT 91 + 91 * - 73
----
-6552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6740
SELECT - - CASE + 77 WHEN 15 + - 29 / + COUNT( * ) THEN CAST( NULL AS SIGNED ) + - 29 ELSE COUNT( * ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6740
SELECT - - CASE + 77 WHEN 15 + - 29 / + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) + - 29 ELSE COUNT ( * ) END AS col1
----
1

query I rowsort
SELECT ALL + 11 + + 57
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT MAX( + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-6742
SELECT MAX ( + 70 )
----
70

query I rowsort
SELECT 85 + + 92 * 24 AS col0
----
2293

query I rowsort
SELECT 21 - + 53 * 9
----
-456

query I rowsort
SELECT ALL 84 * 41 AS col0
----
3444

query I rowsort
SELECT 92 * + 30
----
2760

query I rowsort
SELECT 30 - + - 3 * 41 col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT DISTINCT COUNT( * ) * - - 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT COUNT ( * ) * - - 15 AS col0
----
15

query I rowsort
SELECT 20 + - 76 col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT ALL COUNT( - - 2 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL COUNT ( - - 2 ) col2
----
1

query I rowsort
SELECT DISTINCT NULLIF ( - 60, 36 - + 10 ) * - 37 col1
----
2220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6752
SELECT ALL 0 - COUNT( * ) * - COALESCE ( + 93, CAST( NULLIF ( - 92, - AVG ( - 37 ) + + CAST( + 1 AS SIGNED ) ) AS SIGNED ), ( + 51 ) ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL 0 - COUNT ( * ) * - COALESCE ( + 93, CAST ( NULLIF ( - 92, - AVG ( - 37 ) + + CAST ( + 1 AS INTEGER ) ) AS INTEGER ), ( + 51 ) ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT ( 93 ) * - COUNT( DISTINCT 26 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-6753
SELECT ( 93 ) * - COUNT ( DISTINCT 26 ) AS col2
----
-93

query I rowsort
SELECT 46 * - 36 * - CASE - 98 WHEN - 35 THEN - 96 / 53 ELSE NULL END
----
NULL

query I rowsort
SELECT 26 + + ( 68 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT MIN( - + 13 ) + 56 col1
----
43

skipif mysql # not compatible
query I rowsort label-6756
SELECT MIN ( - + 13 ) + 56 col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6757
SELECT 36 * - + CAST( ( + ( 35 ) ) AS SIGNED )
----
-1260

skipif mysql # not compatible
query I rowsort label-6757
SELECT 36 * - + CAST ( ( + ( 35 ) ) AS INTEGER )
----
-1260

query I rowsort
SELECT ALL + 76 * - + 1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT DISTINCT - CASE 41 WHEN + 66 + 79 THEN SUM( 75 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT - CASE 41 WHEN + 66 + 79 THEN SUM ( 75 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT DISTINCT + SUM( - + 13 ) * - 87 + 12 AS col1
----
1143

skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT + SUM ( - + 13 ) * - 87 + 12 AS col1
----
1143

query I rowsort
SELECT COALESCE ( + - 53, + 94 )
----
-53

query I rowsort
SELECT ALL 72 * + 18 + 19 AS col0
----
1315

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT - - ( - COUNT( * ) ) + 4
----
3

skipif mysql # not compatible
query I rowsort label-6763
SELECT - - ( - COUNT ( * ) ) + 4
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6764
SELECT ALL - + 42 * + + 93 + 21 DIV 55 AS col2
----
-3906

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL - + 42 * + + 93 + 21 / 55 AS col2
----
-3906

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT ALL MAX( - 78 ) * - 36 + + 99
----
2907

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL MAX ( - 78 ) * - 36 + + 99
----
2907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6766
SELECT COUNT( * ) DIV + CAST( 70 AS SIGNED ) + 57 * + 86
----
4902

skipif mysql # not compatible
query I rowsort label-6766
SELECT COUNT ( * ) / + CAST ( 70 AS INTEGER ) + 57 * + 86
----
4902

query I rowsort
SELECT - 63 * - 24 - 82 AS col1
----
1430

query I rowsort
SELECT - 60 + + 30 * + 81
----
2370

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT + - COUNT( * ) * + 52 + + 42
----
-10

skipif mysql # not compatible
query I rowsort label-6769
SELECT + - COUNT ( * ) * + 52 + + 42
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6770
SELECT - + ( NULLIF ( + COUNT( * ), 79 * 41 ) ) + CAST( 2 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6770
SELECT - + ( NULLIF ( + COUNT ( * ), 79 * 41 ) ) + CAST ( 2 AS INTEGER )
----
1

query I rowsort
SELECT DISTINCT + - 75 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT ALL 88 * COUNT( * ) - SUM( 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL 88 * COUNT ( * ) - SUM ( 89 )
----
-1

query I rowsort
SELECT DISTINCT + + 84 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT + - 45 + - 6 + - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-6774
SELECT + - 45 + - 6 + - COUNT ( * )
----
-52

query I rowsort
SELECT - 63 * - 77 + + 49
----
4900

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT + COUNT( * ) * MAX( DISTINCT - 32 ) * - 82 - + 3 AS col1
----
2621

skipif mysql # not compatible
query I rowsort label-6776
SELECT + COUNT ( * ) * MAX ( DISTINCT - 32 ) * - 82 - + 3 AS col1
----
2621

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT ALL ( COUNT( * ) ) * ( 14 + + 38 )
----
52

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL ( COUNT ( * ) ) * ( 14 + + 38 )
----
52

query I rowsort
SELECT ALL + - 7 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT + 46 + + COUNT( * ) * 77 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-6779
SELECT + 46 + + COUNT ( * ) * 77 AS col1
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6780
SELECT ALL 20 * - + COALESCE ( 30, ( 75 ) + - NULLIF ( - 52, - 18 DIV + 91 ) DIV + CASE 39 WHEN + COUNT( * ) THEN - 32 END ) * ( + 34 + 96 * 18 ) - + COUNT( * )
----
-1057201

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL 20 * - + COALESCE ( 30, ( 75 ) + - NULLIF ( - 52, - 18 / + 91 ) / + CASE 39 WHEN + COUNT ( * ) THEN - 32 END ) * ( + 34 + 96 * 18 ) - + COUNT ( * )
----
-1057201

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT - 49 * - + SUM( ALL - 93 ) + + 43
----
-4514

skipif mysql # not compatible
query I rowsort label-6781
SELECT - 49 * - + SUM ( ALL - 93 ) + + 43
----
-4514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6782
SELECT + 66 * + - CAST( NULL AS SIGNED ) / + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT + 66 * + - CAST ( NULL AS INTEGER ) / + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT + 72 * COUNT( * ) * + 22
----
1584

skipif mysql # not compatible
query I rowsort label-6783
SELECT + 72 * COUNT ( * ) * + 22
----
1584

query I rowsort
SELECT ALL 55 AS col2
----
55

query I rowsort
SELECT ALL ( - 38 )
----
-38

query I rowsort
SELECT ALL 7 * 78 AS col1
----
546

query II rowsort
SELECT DISTINCT 60 AS col0, 67 AS col0
----
60
67

query I rowsort
SELECT + 36 + - 92
----
-56

query I rowsort
SELECT + 71 * - 22
----
-1562

query I rowsort
SELECT + 82 - 97 AS col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6791
SELECT + 88 DIV - 25
----
-3

skipif mysql # not compatible
query I rowsort label-6791
SELECT + 88 / - 25
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6792
SELECT ALL 94 DIV - 92 col1
----
-1

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL 94 / - 92 col1
----
-1

query I rowsort
SELECT + 0 * 4 col0
----
0

query I rowsort
SELECT + 59 - + NULLIF ( + 43, 22 + COALESCE ( + 47 + - 84, - 35 ) )
----
16

query I rowsort
SELECT - CASE + - 63 WHEN - ( - 16 ) THEN 22 END + 8
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6796
SELECT + 52 DIV - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6796
SELECT + 52 / - 67 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6797
SELECT ALL 58 + + - 17 DIV ( - 61 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL 58 + + - 17 / ( - 61 ) AS col2
----
58

query I rowsort
SELECT ALL + 89 * + - 55 AS col1
----
-4895

query II rowsort
SELECT 87 AS col1, - 51 AS col0
----
87
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT DISTINCT SUM( ALL - 12 ) + + MAX( - 70 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT SUM ( ALL - 12 ) + + MAX ( - 70 ) AS col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6801
SELECT DISTINCT CAST( - + 99 AS SIGNED ) + 53
----
-46

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT CAST ( - + 99 AS INTEGER ) + 53
----
-46

query I rowsort
SELECT ALL - 17 + - 36 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-6803
SELECT - 45 AS col0, + 38 * + COUNT( * )
----
-45
38

skipif mysql # not compatible
query II rowsort label-6803
SELECT - 45 AS col0, + 38 * + COUNT ( * )
----
-45
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6804
SELECT ALL NULLIF ( 37, + 68 ) + - CAST( 66 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL NULLIF ( 37, + 68 ) + - CAST ( 66 AS INTEGER )
----
-29

query I rowsort
SELECT ALL 87 * - + COALESCE ( + - 14, + 22, - ( - 23 ) ) col2
----
1218

query II rowsort
SELECT + - 96 AS col1, 1
----
-96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT + - 40 * + COUNT( - 70 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-6807
SELECT + - 40 * + COUNT ( - 70 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT - - 60 + + ( - CASE 47 WHEN 1 * COUNT( * ) + - 44 THEN + 17 + + CASE 0 WHEN - SUM( - 87 ) THEN + 53 / + 88 + + CASE 6 + COUNT( * ) WHEN COUNT( - 80 ) THEN 68 + + COUNT( * ) WHEN 64 - + 32 THEN NULL END WHEN 38 THEN NULL END * COUNT( * ) WHEN 15 THEN NULL END ) - - COUNT( DISTINCT 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT - - 60 + + ( - CASE 47 WHEN 1 * COUNT ( * ) + - 44 THEN + 17 + + CASE 0 WHEN - SUM ( - 87 ) THEN + 53 / + 88 + + CASE 6 + COUNT ( * ) WHEN COUNT ( - 80 ) THEN 68 + + COUNT ( * ) WHEN 64 - + 32 THEN NULL END WHEN 38 THEN NULL END * COUNT ( * ) WHEN 15 THEN NULL END ) - - COUNT ( DISTINCT 12 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT + - MIN( ALL 56 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-6809
SELECT + - MIN ( ALL 56 ) AS col2
----
-56

query I rowsort
SELECT - 36 * - - ( + 72 ) + ( - 5 ) + 14 AS col1
----
-2583

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT ALL + 97 DIV 73 + + - 9 DIV 5 + 92
----
92

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL + 97 / 73 + + - 9 / 5 + 92
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT - MAX( ALL 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-6812
SELECT - MAX ( ALL 75 )
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6813
SELECT DISTINCT + - 6 AS col0, ( 22 ) - - 70 * SUM( DISTINCT 7 )
----
-6
512

skipif mysql # not compatible
query II rowsort label-6813
SELECT DISTINCT + - 6 AS col0, ( 22 ) - - 70 * SUM ( DISTINCT 7 )
----
-6
512

query I rowsort
SELECT ALL 36 * - 62 - + - 31 * 85
----
403

query II rowsort
SELECT + 33, 79 AS col2
----
33
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT ALL + 61 * - 77 - - 45 + MAX( 49 ) * + 51 * - 82 AS col1
----
-209570

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL + 61 * - 77 - - 45 + MAX ( 49 ) * + 51 * - 82 AS col1
----
-209570

query I rowsort
SELECT DISTINCT - - ( - 94 ) * + 32 AS col1
----
-3008

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT + COUNT( * ) * + + 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6818
SELECT + COUNT ( * ) * + + 30 AS col1
----
30

query II rowsort
SELECT + + 91, NULLIF ( - ( 3 ), - 41 + + 12 ) AS col1
----
91
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT - - MIN( ALL 64 ) - 2
----
62

skipif mysql # not compatible
query I rowsort label-6820
SELECT - - MIN ( ALL 64 ) - 2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6821
SELECT - + 89 + + 89 * - CAST( 60 AS SIGNED ) - 49 col2
----
-5478

skipif mysql # not compatible
query I rowsort label-6821
SELECT - + 89 + + 89 * - CAST ( 60 AS INTEGER ) - 49 col2
----
-5478

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT - + 83 * - - COUNT( * ) * - - 17 + 18
----
-1393

skipif mysql # not compatible
query I rowsort label-6822
SELECT - + 83 * - - COUNT ( * ) * - - 17 + 18
----
-1393

onlyif mysql # aggregate syntax: 
query II rowsort label-6823
SELECT DISTINCT + 45 AS col1, - 27 + 0 + + CASE - 97 + 47 * CASE WHEN NOT NULL < ( NULL ) THEN + 38 WHEN - 10 * + 99 IS NOT NULL THEN NULL END WHEN - 4 + COUNT( * ) THEN 31 * + AVG ( 98 ) + 62 * 84 END * - 48
----
45
NULL

skipif mysql # not compatible
query II rowsort label-6823
SELECT DISTINCT + 45 AS col1, - 27 + 0 + + CASE - 97 + 47 * CASE WHEN NOT NULL < ( NULL ) THEN + 38 WHEN - 10 * + 99 IS NOT NULL THEN NULL END WHEN - 4 + COUNT ( * ) THEN 31 * + AVG ( 98 ) + 62 * 84 END * - 48
----
45
NULL

query I rowsort
SELECT ALL + + 81 * ( 51 )
----
4131

query I rowsort
SELECT 83 * - ( + 69 ) - + 96
----
-5823

query I rowsort
SELECT DISTINCT + 53 AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6827
SELECT ALL ( - + CAST( - 20 AS SIGNED ) ) col1
----
20

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL ( - + CAST ( - 20 AS INTEGER ) ) col1
----
20

query I rowsort
SELECT - 95 + - + 1
----
-96

query I rowsort
SELECT - CASE - + 87 WHEN 18 THEN - + 98 + 76 WHEN + 86 THEN + 97 END AS col2
----
NULL

query I rowsort
SELECT - 83 + + + NULLIF ( + + 32, 57 ) - - 77
----
26

query I rowsort
SELECT - ( - 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6832
SELECT ALL + COUNT( * ) * - - 91 + - MAX( 20 ) - ( CASE 83 WHEN + 83 THEN - 38 ELSE NULL END + + 38 ) DIV + 23
----
71

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL + COUNT ( * ) * - - 91 + - MAX ( 20 ) - ( CASE 83 WHEN + 83 THEN - 38 ELSE NULL END + + 38 ) / + 23
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT - 59 + + SUM( - 81 ) col0
----
-140

skipif mysql # not compatible
query I rowsort label-6833
SELECT - 59 + + SUM ( - 81 ) col0
----
-140

query I rowsort
SELECT + 65 - 32 + - 63
----
-30

query I rowsort
SELECT - 76 * - 53 * + 14 AS col0
----
56392

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT - 35 + 46 * + 45 * - MAX( + 75 )
----
-155285

skipif mysql # not compatible
query I rowsort label-6836
SELECT - 35 + 46 * + 45 * - MAX ( + 75 )
----
-155285

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6837
SELECT + COALESCE ( 93, 8 - + 60 + 29 DIV ( + 20 ) ) - + 25 * + CAST( + 36 AS SIGNED )
----
-807

skipif mysql # not compatible
query I rowsort label-6837
SELECT + COALESCE ( 93, 8 - + 60 + 29 / ( + 20 ) ) - + 25 * + CAST ( + 36 AS INTEGER )
----
-807

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT ALL + COUNT( * ) + 6 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL + COUNT ( * ) + 6 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT ALL - 94 + + SUM( ALL + - 61 ) AS col2
----
-155

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL - 94 + + SUM ( ALL + - 61 ) AS col2
----
-155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6840
SELECT ALL 40 + - CAST( - ( + 48 ) AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL 40 + - CAST ( - ( + 48 ) AS INTEGER )
----
88

query I rowsort
SELECT DISTINCT 75 + + ( + + 82 ) - - 16
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL + MIN( 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL + MIN ( 92 ) AS col2
----
92

query I rowsort
SELECT - - ( + + 4 ) col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT DISTINCT ( - ( - 15 ) ) + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT ( - ( - 15 ) ) + COUNT ( * )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT + 29 + + - COUNT( + 19 )
----
28

skipif mysql # not compatible
query I rowsort label-6845
SELECT + 29 + + - COUNT ( + 19 )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6846
SELECT 88 DIV - + MAX( ALL 90 ) * - 13 + 82 * ( + 2 ) AS col1
----
164

skipif mysql # not compatible
query I rowsort label-6846
SELECT 88 / - + MAX ( ALL 90 ) * - 13 + 82 * ( + 2 ) AS col1
----
164

onlyif mysql # aggregate syntax: 
query II rowsort label-6847
SELECT ALL 68 + 99 AS col0, 27 + COUNT( * ) * + 7
----
167
34

skipif mysql # not compatible
query II rowsort label-6847
SELECT ALL 68 + 99 AS col0, 27 + COUNT ( * ) * + 7
----
167
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT ALL NULLIF ( + 62, - - 74 - + 97 / COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL NULLIF ( + 62, - - 74 - + 97 / COUNT ( * ) )
----
62

query II rowsort
SELECT DISTINCT + 81 - 87 AS col0, - 16 AS col2
----
-6
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6850
SELECT - 56 * - CASE + + 59 WHEN CAST( NULL AS DECIMAL ) THEN - ( - 22 ) ELSE NULL END * 88 + + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT - 56 * - CASE + + 59 WHEN CAST ( NULL AS REAL ) THEN - ( - 22 ) ELSE NULL END * 88 + + 70 AS col1
----
NULL

query I rowsort
SELECT ALL - - 95 AS col1
----
95

query I rowsort
SELECT ALL + 48 - + 5 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL 39 * - + 40 + + COUNT( * ) + ( 70 ) AS col0
----
-1489

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL 39 * - + 40 + + COUNT ( * ) + ( 70 ) AS col0
----
-1489

query I rowsort
SELECT - 78 + + 95 AS col1
----
17

query I rowsort
SELECT ALL - 67 - + 68 col0
----
-135

query I rowsort
SELECT ALL - + 62 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT + COUNT( * ) * 9 + 52 * 76 col0
----
3961

skipif mysql # not compatible
query I rowsort label-6857
SELECT + COUNT ( * ) * 9 + 52 * 76 col0
----
3961

query I rowsort
SELECT + 5 * 43
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT + 45 + + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6859
SELECT + 45 + + COUNT ( * ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT 12 * 55 + + COUNT( * )
----
661

skipif mysql # not compatible
query I rowsort label-6860
SELECT 12 * 55 + + COUNT ( * )
----
661

query I rowsort
SELECT ALL - - 98
----
98

query I rowsort
SELECT ALL - + 2 AS col1
----
-2

query I rowsort
SELECT + 72 * + 95 * - 82 AS col1
----
-560880

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6864
SELECT DISTINCT - CAST( CASE WHEN NOT ( 69 ) IS NULL THEN NULL ELSE - ( MIN( 28 ) ) END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT - CAST ( CASE WHEN NOT ( 69 ) IS NULL THEN NULL ELSE - ( MIN ( 28 ) ) END AS REAL )
----
NULL

query I rowsort
SELECT 30 + 75
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT 36 DIV 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6866
SELECT 36 / 62 AS col1
----
0

query I rowsort
SELECT DISTINCT + 79 * + 52 AS col2
----
4108

query II rowsort
SELECT ALL - ( 89 ) + - + 13 AS col1, 84 AS col0
----
-102
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6869
SELECT 49 DIV COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-6869
SELECT 49 / COUNT ( * )
----
49

query I rowsort
SELECT ALL + CASE + ( - 36 ) WHEN - 85 THEN - ( + 94 ) + 22 WHEN 93 / - COALESCE ( 72, - 83, + 68 ) + + 7 THEN 25 WHEN + 17 + 45 / 67 THEN NULL END + - 98 AS col1
----
NULL

query I rowsort
SELECT 20 * - 63 * - 88 AS col2
----
110880

onlyif mysql # aggregate syntax: 
query II rowsort label-6872
SELECT ALL 65 AS col0, - NULLIF ( + 91, + 27 ) + CASE 23 WHEN 61 + NULLIF ( 88, 50 + - 47 * COUNT( * ) ) THEN COUNT( * ) / 69 + + SUM( + 72 ) * 89 WHEN 17 THEN NULL END + + 6 * - COUNT( * ) / + 31
----
65
NULL

skipif mysql # not compatible
query II rowsort label-6872
SELECT ALL 65 AS col0, - NULLIF ( + 91, + 27 ) + CASE 23 WHEN 61 + NULLIF ( 88, 50 + - 47 * COUNT ( * ) ) THEN COUNT ( * ) / 69 + + SUM ( + 72 ) * 89 WHEN 17 THEN NULL END + + 6 * - COUNT ( * ) / + 31
----
65
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6873
SELECT 26 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-6873
SELECT 26 / - 51
----
0

query I rowsort
SELECT ALL - 89 + + 32 AS col0
----
-57

query I rowsort
SELECT ALL + 62 + + 6 + - 7 AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-6876
SELECT ALL + 17 DIV - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL + 17 / - 83 AS col2
----
0

query I rowsort
SELECT ALL - 62 + + 81
----
19

query I rowsort
SELECT 61 + + 99
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT 34 + + 48 + + - 23 + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT 34 + + 48 + + - 23 + COUNT ( * )
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6880
SELECT ALL - 63 + + 4 + + 20 * + 6 - - - ( ( + 35 ) ) + 98 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL - 63 + + 4 + + 20 * + 6 - - - ( ( + 35 ) ) + 98 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT 45 - + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-6881
SELECT 45 - + - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6882
SELECT 55, COUNT( * ) - 45 - - - NULLIF ( - 54, AVG ( - 92 ) ) AS col1
----
55
10

skipif mysql # not compatible
query II rowsort label-6882
SELECT 55, COUNT ( * ) - 45 - - - NULLIF ( - 54, AVG ( - 92 ) ) AS col1
----
55
10

query I rowsort
SELECT DISTINCT + 99 + 72
----
171

query I rowsort
SELECT 54 - - - 72 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL MAX( DISTINCT + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL MAX ( DISTINCT + 4 )
----
4

query I rowsort
SELECT ALL 57 * + COALESCE ( - COALESCE ( + - 92, 21, - ( 56 ) ), - 41 - - 25 )
----
5244

query I rowsort
SELECT DISTINCT + 31 AS col0
----
31

query I rowsort
SELECT DISTINCT + - 44 - 87 - + 41 * - 2 + + CASE WHEN NOT ( - 70 ) NOT BETWEEN NULL AND NULL THEN 45 * ( 58 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL COUNT( DISTINCT - 65 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL COUNT ( DISTINCT - 65 ) AS col1
----
1

query I rowsort
SELECT ALL + 19 * - 75 + - 23 * + - ( + 71 )
----
208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6891
SELECT DISTINCT COALESCE ( 34, - CAST( - - ( - + 32 ) AS SIGNED ) ) - CASE + COUNT( * ) WHEN COALESCE ( 97, + 79 * CAST( + 78 AS SIGNED ) - + ( - ( + 33 ) + 61 ) ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT COALESCE ( 34, - CAST ( - - ( - + 32 ) AS INTEGER ) ) - CASE + COUNT ( * ) WHEN COALESCE ( 97, + 79 * CAST ( + 78 AS INTEGER ) - + ( - ( + 33 ) + 61 ) ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 13 END
----
NULL

query II rowsort
SELECT + 84 AS col2, 78 - + 78
----
84
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6893
SELECT DISTINCT - 87 AS col0, + 60 * + 24 * 86 * + COUNT( * ) AS col0
----
-87
123840

skipif mysql # not compatible
query II rowsort label-6893
SELECT DISTINCT - 87 AS col0, + 60 * + 24 * 86 * + COUNT ( * ) AS col0
----
-87
123840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6894
SELECT + 20 DIV - - 44 + + NULLIF ( - + 13, - + 25 + 13 ) + 73 * COUNT( * ) * - 29 AS col0
----
-2130

skipif mysql # not compatible
query I rowsort label-6894
SELECT + 20 / - - 44 + + NULLIF ( - + 13, - + 25 + 13 ) + 73 * COUNT ( * ) * - 29 AS col0
----
-2130

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT COUNT( ALL NULLIF ( - - 74, - 81 ) ) * 7 col0
----
7

skipif mysql # not compatible
query I rowsort label-6895
SELECT COUNT ( ALL NULLIF ( - - 74, - 81 ) ) * 7 col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT DISTINCT - COALESCE ( + SUM( + 79 ), 94 * 75 - 74 )
----
-79

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT - COALESCE ( + SUM ( + 79 ), 94 * 75 - 74 )
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-6897
SELECT 54 DIV + - ( + + 48 ), - 75 AS col1
----
-1
-75

skipif mysql # not compatible
query II rowsort label-6897
SELECT 54 / + - ( + + 48 ), - 75 AS col1
----
-1
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6898
SELECT ALL CAST( NULL AS SIGNED ) DIV + 68 * + + 51, + 46 DIV + 27 + - 8 * ( + NULLIF ( 11, 88 ) ) AS col1
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-6898
SELECT ALL CAST ( NULL AS INTEGER ) / + 68 * + + 51, + 46 / + 27 + - 8 * ( + NULLIF ( 11, 88 ) ) AS col1
----
NULL
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-6899
SELECT 62, MAX( DISTINCT - + 11 ) AS col0
----
62
-11

skipif mysql # not compatible
query II rowsort label-6899
SELECT 62, MAX ( DISTINCT - + 11 ) AS col0
----
62
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT ALL - 11 * + COUNT( + 81 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL - 11 * + COUNT ( + 81 ) AS col1
----
-11

query II rowsort
SELECT 68 AS col0, - 79 + - 66 + - 87 AS col2
----
68
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT ALL - CASE - + 35 WHEN - + 56 * - 34 THEN NULL WHEN + 37 + + COUNT( * ) THEN 3 + 69 * + 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL - CASE - + 35 WHEN - + 56 * - 34 THEN NULL WHEN + 37 + + COUNT ( * ) THEN 3 + 69 * + 84 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT ALL - - CAST( + + 11 AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL - - CAST ( + + 11 AS INTEGER ) AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6904
SELECT - 99 DIV - CAST( NULLIF ( 95, COUNT( * ) - ( 26 ) ) AS SIGNED ) - + 24
----
-23

skipif mysql # not compatible
query I rowsort label-6904
SELECT - 99 / - CAST ( NULLIF ( 95, COUNT ( * ) - ( 26 ) ) AS INTEGER ) - + 24
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT COUNT( * ) * + - 90 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-6905
SELECT COUNT ( * ) * + - 90 AS col2
----
-90

query I rowsort
SELECT COALESCE ( - 35, - - 43, - 75 ) * + - 46 AS col2
----
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT COUNT( * ) + ( - 89 ) * CASE + 79 WHEN + ( MAX( + 81 ) ) * 18 THEN NULL WHEN 74 THEN - COUNT( * ) / + AVG ( ALL + 0 ) WHEN - 79 * 88 + AVG ( 60 + - 47 * + 43 ) * COUNT( * ) THEN ( - 68 ) * + 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT COUNT ( * ) + ( - 89 ) * CASE + 79 WHEN + ( MAX ( + 81 ) ) * 18 THEN NULL WHEN 74 THEN - COUNT ( * ) / + AVG ( ALL + 0 ) WHEN - 79 * 88 + AVG ( 60 + - 47 * + 43 ) * COUNT ( * ) THEN ( - 68 ) * + 0 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6908
SELECT 93 * CASE 80 WHEN + 32 * + COALESCE ( + 46, - COALESCE ( ( 19 ), 83, 14 ) ) + - 25 THEN CASE COUNT( * ) WHEN COUNT( * ) * 53 THEN 54 END * - 80 + + COUNT( * ) WHEN 41 THEN NULL WHEN + 12 THEN COUNT( * ) WHEN - 90 * 91 THEN 76 * 36 ELSE - ( - CAST( 84 AS SIGNED ) ) END * + COUNT( * ) + - 17 AS col2
----
7795

skipif mysql # not compatible
query I rowsort label-6908
SELECT 93 * CASE 80 WHEN + 32 * + COALESCE ( + 46, - COALESCE ( ( 19 ), 83, 14 ) ) + - 25 THEN CASE COUNT ( * ) WHEN COUNT ( * ) * 53 THEN 54 END * - 80 + + COUNT ( * ) WHEN 41 THEN NULL WHEN + 12 THEN COUNT ( * ) WHEN - 90 * 91 THEN 76 * 36 ELSE - ( - CAST ( 84 AS INTEGER ) ) END * + COUNT ( * ) + - 17 AS col2
----
7795

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6909
SELECT ALL - 91 AS col1, - CAST( 19 AS SIGNED )
----
-91
-19

skipif mysql # not compatible
query II rowsort label-6909
SELECT ALL - 91 AS col1, - CAST ( 19 AS INTEGER )
----
-91
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-6910
SELECT - 17 * - 10 + - - 90 DIV COALESCE ( + 40, - 30 + - 26, 51 + - 37, 50 ) AS col1
----
172

skipif mysql # not compatible
query I rowsort label-6910
SELECT - 17 * - 10 + - - 90 / COALESCE ( + 40, - 30 + - 26, 51 + - 37, 50 ) AS col1
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6911
SELECT 65 * CAST( 83 AS SIGNED ) * ( - - 25 ) + - 95 AS col0
----
134780

skipif mysql # not compatible
query I rowsort label-6911
SELECT 65 * CAST ( 83 AS INTEGER ) * ( - - 25 ) + - 95 AS col0
----
134780

query I rowsort
SELECT ALL 18 + + 75 + CASE - - 78 WHEN + + 95 THEN - 78 END * + 14
----
NULL

query I rowsort
SELECT + 29 - - 24 * + 41 AS col2
----
1013

query I rowsort
SELECT ALL + 30 + - 38 * - 33 col0
----
1284

onlyif mysql # DIV for integer division: 
query I rowsort label-6915
SELECT ALL ( - 8 ) DIV + - 36 + - 12 + + 77 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL ( - 8 ) / + - 36 + - 12 + + 77 AS col1
----
65

query II rowsort
SELECT DISTINCT 25 AS col1, + 1 + 24
----
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6917
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 81
----
NULL

query I rowsort
SELECT - NULLIF ( - 92, - 65 ) AS col1
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6919
SELECT ALL + 31 + - 39 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL + 31 + - 39 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - ( 37 ) * + - 50 AS col1
----
1850

query II rowsort
SELECT 95 AS col2, - 26
----
95
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT + 46 + + COUNT( * ) - 49 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6922
SELECT + 46 + + COUNT ( * ) - 49 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-6923
SELECT 3, 77 DIV 13 AS col1
----
3
5

skipif mysql # not compatible
query II rowsort label-6923
SELECT 3, 77 / 13 AS col1
----
3
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT - ( + 45 ) * - - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-6924
SELECT - ( + 45 ) * - - COUNT ( * )
----
-45

query I rowsort
SELECT ALL - 34 - - 55 * 5 * + + NULLIF ( ( + 95 ), - ( 58 ) * + 99 ) * 86 AS col0
----
2246716

query I rowsort
SELECT - - 28 * - + 10 * - 80
----
22400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6927
SELECT - + 53 + - COALESCE ( + COUNT( * ), 61, + CAST( - 23 AS SIGNED ) ) + - 39
----
-93

skipif mysql # not compatible
query I rowsort label-6927
SELECT - + 53 + - COALESCE ( + COUNT ( * ), 61, + CAST ( - 23 AS INTEGER ) ) + - 39
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6928
SELECT ALL - + 54 DIV - 95 * + 21 + + 77 AS col0, - COALESCE ( + MAX( ALL CAST( - 56 AS SIGNED ) ), 9 )
----
77
56

skipif mysql # not compatible
query II rowsort label-6928
SELECT ALL - + 54 / - 95 * + 21 + + 77 AS col0, - COALESCE ( + MAX ( ALL CAST ( - 56 AS INTEGER ) ), 9 )
----
77
56

query II rowsort
SELECT ALL 12 AS col0, + 79
----
12
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT - - CASE + + 10 WHEN 59 THEN 60 END * + + SUM( DISTINCT NULLIF ( + ( + NULLIF ( 81, + COALESCE ( - 8, 26 ) * + 96 + ( + 2 ) * 25 ) ), - 53 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6930
SELECT - - CASE + + 10 WHEN 59 THEN 60 END * + + SUM ( DISTINCT NULLIF ( + ( + NULLIF ( 81, + COALESCE ( - 8, 26 ) * + 96 + ( + 2 ) * 25 ) ), - 53 ) ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6931
SELECT - ( 43 ) + + COALESCE ( + 7, - - CASE 38 WHEN - ( + 29 ) + + 21 THEN - 79 * 14 + + 40 END + - ( 51 ), - 5 DIV 4 - 75 ) - - 13 * + COALESCE ( - 18, 7 + - 92 )
----
-270

skipif mysql # not compatible
query I rowsort label-6931
SELECT - ( 43 ) + + COALESCE ( + 7, - - CASE 38 WHEN - ( + 29 ) + + 21 THEN - 79 * 14 + + 40 END + - ( 51 ), - 5 / 4 - 75 ) - - 13 * + COALESCE ( - 18, 7 + - 92 )
----
-270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6932
SELECT - + 43 col1, - AVG ( 87 ) + CASE - + 29 WHEN + 12 THEN 85 + 39 * + 4 WHEN - 17 * - 87 THEN 71 WHEN - CASE - COUNT( ALL CAST( + 38 AS SIGNED ) ) WHEN + 41 + CAST( - 56 + ( - 3 ) AS SIGNED ) THEN NULL WHEN CAST( - 83 AS SIGNED ) * - NULLIF ( 4, 83 ) - + 38 THEN + 21 END THEN 19 END + + 82
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-6932
SELECT - + 43 col1, - AVG ( 87 ) + CASE - + 29 WHEN + 12 THEN 85 + 39 * + 4 WHEN - 17 * - 87 THEN 71 WHEN - CASE - COUNT ( ALL CAST ( + 38 AS INTEGER ) ) WHEN + 41 + CAST ( - 56 + ( - 3 ) AS INTEGER ) THEN NULL WHEN CAST ( - 83 AS INTEGER ) * - NULLIF ( 4, 83 ) - + 38 THEN + 21 END THEN 19 END + + 82
----
-43
NULL

query II rowsort
SELECT - + 74 AS col2, - 71
----
-74
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-6934
SELECT DISTINCT + COUNT( * ) AS col0, + 83
----
1
83

skipif mysql # not compatible
query II rowsort label-6934
SELECT DISTINCT + COUNT ( * ) AS col0, + 83
----
1
83

query I rowsort
SELECT ALL + - 66 * + 98 col0
----
-6468

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT - NULLIF ( - MAX( ALL - ( + 70 ) ), - - 61 + - 90 )
----
-70

skipif mysql # not compatible
query I rowsort label-6936
SELECT - NULLIF ( - MAX ( ALL - ( + 70 ) ), - - 61 + - 90 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-6937
SELECT ALL + COUNT( * ) AS col2, 83 + - 66 + - COUNT( ALL - 51 ) - + 37 AS col2
----
1
-21

skipif mysql # not compatible
query II rowsort label-6937
SELECT ALL + COUNT ( * ) AS col2, 83 + - 66 + - COUNT ( ALL - 51 ) - + 37 AS col2
----
1
-21

query I rowsort
SELECT + 45 * 20 + - 40 col1
----
860

query I rowsort
SELECT DISTINCT + - ( + 19 ) AS col2
----
-19

query I rowsort
SELECT ALL + - 74 * - 81 + - 13 col2
----
5981

onlyif mysql # DIV for integer division: 
query II rowsort label-6941
SELECT - + 33 DIV - 40 + - 13 * + 20, 16 AS col0
----
-260
16

skipif mysql # not compatible
query II rowsort label-6941
SELECT - + 33 / - 40 + - 13 * + 20, 16 AS col0
----
-260
16

query I rowsort
SELECT DISTINCT - 4 * - 76 * + 0 * + 14 + - 33 + + ( - 87 )
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT ALL - MAX( 35 ) * + 7 + 96 + - 13 AS col1
----
-162

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL - MAX ( 35 ) * + 7 + 96 + - 13 AS col1
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6944
SELECT ALL + + NULLIF ( + + CASE 76 WHEN 70 THEN - 17 WHEN - 10 THEN - 49 * 30 - 68 ELSE 50 END, - 81 / SUM( DISTINCT - 81 ) - + 17 ) * 19 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL + + NULLIF ( + + CASE 76 WHEN 70 THEN - 17 WHEN - 10 THEN - 49 * 30 - 68 ELSE 50 END, - 81 / SUM ( DISTINCT - 81 ) - + 17 ) * 19 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - NULLIF ( - COALESCE ( + 18, + 5 ), NULLIF ( 68, + 43 ) ) * - 71 + 71
----
1349

query I rowsort
SELECT ( + 43 ) col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6947
SELECT + 51 * + MAX( 35 ) + CAST( + SUM( + + 62 ) AS SIGNED ) AS col2
----
1847

skipif mysql # not compatible
query I rowsort label-6947
SELECT + 51 * + MAX ( 35 ) + CAST ( + SUM ( + + 62 ) AS INTEGER ) AS col2
----
1847

query I rowsort
SELECT ALL + 91 col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6949
SELECT ALL 30 DIV NULLIF ( - 15, + COUNT( * ) DIV + 47 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL 30 / NULLIF ( - 15, + COUNT ( * ) / + 47 ) AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6950
SELECT + 36 DIV - + 29
----
-1

skipif mysql # not compatible
query I rowsort label-6950
SELECT + 36 / - + 29
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6951
SELECT + 42 + 98 * + - ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT + 42 + 98 * + - ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT + CASE - - 61 WHEN 43 / - - COUNT( * ) + 87 THEN + 31 ELSE 56 * 39 END
----
2184

skipif mysql # not compatible
query I rowsort label-6952
SELECT + CASE - - 61 WHEN 43 / - - COUNT ( * ) + 87 THEN + 31 ELSE 56 * 39 END
----
2184

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6953
SELECT - 88 * CAST( NULL AS DECIMAL ) + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6953
SELECT - 88 * CAST ( NULL AS REAL ) + 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT ALL + ( - - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL + ( - - COUNT ( * ) )
----
1

query I rowsort
SELECT ALL 94 * - 54
----
-5076

query I rowsort
SELECT 62 * + + 41 * - - ( 12 ) + 82 * + 35 + 62
----
33436

query I rowsort
SELECT DISTINCT ( + 53 ) * + 33
----
1749

query I rowsort
SELECT DISTINCT 29 * + 22 * + 48 AS col1
----
30624

query I rowsort
SELECT + NULLIF ( + 10, 58 * - 14 * + + 19 + COALESCE ( + - 65, 6 ) * - 77 ) AS col0
----
10

query II rowsort
SELECT CASE + 35 WHEN 61 THEN NULL WHEN 82 THEN NULL ELSE 6 END col1, + 47 * + 25
----
6
1175

query I rowsort
SELECT ALL + 16 col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-6962
SELECT COUNT( ALL 70 ) AS col2, + 98
----
1
98

skipif mysql # not compatible
query II rowsort label-6962
SELECT COUNT ( ALL 70 ) AS col2, + 98
----
1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT + MIN( ALL - 72 ) * + NULLIF ( + + 52, - 80 ) + + + 52
----
-3692

skipif mysql # not compatible
query I rowsort label-6963
SELECT + MIN ( ALL - 72 ) * + NULLIF ( + + 52, - 80 ) + + + 52
----
-3692

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT ALL MAX( ALL + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL MAX ( ALL + 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT - ( + COUNT( + 14 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6965
SELECT - ( + COUNT ( + 14 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT MAX( ALL - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-6966
SELECT MAX ( ALL - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT MAX( ALL - 8 ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-6967
SELECT MAX ( ALL - 8 ) col1
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6968
SELECT + CAST( NULL AS DECIMAL ) * - - COALESCE ( - - 55, + ( + - COALESCE ( 3, 55 * + 5 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6968
SELECT + CAST ( NULL AS REAL ) * - - COALESCE ( - - 55, + ( + - COALESCE ( 3, 55 * + 5 ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6969
SELECT DISTINCT + COUNT( * ) * + + MAX( DISTINCT - 82 ) * - CAST( NULL AS SIGNED ) - 91 + - - 0 * - COUNT( * ) / 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT + COUNT ( * ) * + + MAX ( DISTINCT - 82 ) * - CAST ( NULL AS INTEGER ) - 91 + - - 0 * - COUNT ( * ) / 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT + MAX( 10 )
----
10

skipif mysql # not compatible
query I rowsort label-6970
SELECT + MAX ( 10 )
----
10

query I rowsort
SELECT ALL ( + 19 ) * - 0 col0
----
0

query I rowsort
SELECT - 45 * - + 24 AS col2
----
1080

onlyif mysql # aggregate syntax: 
query II rowsort label-6973
SELECT ALL - MAX( - 31 ) AS col0, - 99 AS col0
----
31
-99

skipif mysql # not compatible
query II rowsort label-6973
SELECT ALL - MAX ( - 31 ) AS col0, - 99 AS col0
----
31
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT - + CASE COUNT( * ) WHEN - - 12 * + 36 * 37 THEN - 75 WHEN - 29 THEN - 73 + - 41 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6974
SELECT - + CASE COUNT ( * ) WHEN - - 12 * + 36 * 37 THEN - 75 WHEN - 29 THEN - 73 + - 41 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6975
SELECT + - 30 DIV 18 * - + 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-6975
SELECT + - 30 / 18 * - + 49 AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6976
SELECT - - CAST( NULL AS SIGNED ) + COUNT( * ) * 87 * + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6976
SELECT - - CAST ( NULL AS INTEGER ) + COUNT ( * ) * 87 * + + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT ALL + COALESCE ( 42, - MIN( DISTINCT + 37 ) * - 47 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL + COALESCE ( 42, - MIN ( DISTINCT + 37 ) * - 47 ) AS col0
----
42

query I rowsort
SELECT ALL + NULLIF ( 82, - - 99 ) + - + 89 AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6979
SELECT ALL - ( - - COUNT( * ) ) DIV - - MIN( 10 )
----
0

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL - ( - - COUNT ( * ) ) / - - MIN ( 10 )
----
0

query I rowsort
SELECT ALL ( + + 60 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6981
SELECT - + COALESCE ( - + MAX( - - 46 ), COUNT( * ) ) - + 83 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT - + COALESCE ( - + MAX ( - - 46 ), COUNT ( * ) ) - + 83 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 42 + 57 * - + 65
----
-3747

query I rowsort
SELECT ALL + 84 + + 37
----
121

query I rowsort
SELECT COALESCE ( - + 98, - - 3 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6985
SELECT CAST( + - 1 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6985
SELECT CAST ( + - 1 AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6986
SELECT + + CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6986
SELECT + + CAST ( - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT - - 29 * - 91 AS col2
----
-2639

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT - - COUNT( * ) * 9 * + - 51 + - 58 AS col2
----
-517

skipif mysql # not compatible
query I rowsort label-6988
SELECT - - COUNT ( * ) * 9 * + - 51 + - 58 AS col2
----
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT + COALESCE ( 79, 60 * 67, - COUNT( * ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-6989
SELECT + COALESCE ( 79, 60 * 67, - COUNT ( * ) ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT ALL + MAX( + ( - 8 ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL + MAX ( + ( - 8 ) ) AS col2
----
-8

query I rowsort
SELECT ALL + 93 + - 35 + 59
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT DISTINCT - SUM( 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT - SUM ( 71 ) AS col0
----
-71

query I rowsort
SELECT ALL - 30 + + + ( + - ( - 23 ) )
----
-7

query I rowsort
SELECT 46 * + 21 col1
----
966

query I rowsort
SELECT DISTINCT - COALESCE ( 55, 7 * + - 11 * - 71 ) * 80 * + - 16 col2
----
70400

onlyif mysql # DIV for integer division: 
query I rowsort label-6996
SELECT 35 + - 29 DIV + 91 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6996
SELECT 35 + - 29 / + 91 AS col0
----
35

query I rowsort
SELECT 71 * + 91 AS col2
----
6461

query I rowsort
SELECT 45 + - 10
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-6999
SELECT + 72 col2, + 80 DIV + - 4
----
72
-20

skipif mysql # not compatible
query II rowsort label-6999
SELECT + 72 col2, + 80 / + - 4
----
72
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7000
SELECT 84 * NULLIF ( + COUNT( * ), 70 + CAST( + + NULLIF ( - + 10, + 93 ) AS SIGNED ) + - CAST( 75 + COUNT( * ) AS SIGNED ) ) col0
----
84

skipif mysql # not compatible
query I rowsort label-7000
SELECT 84 * NULLIF ( + COUNT ( * ), 70 + CAST ( + + NULLIF ( - + 10, + 93 ) AS INTEGER ) + - CAST ( 75 + COUNT ( * ) AS INTEGER ) ) col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7001
SELECT 67 * + CAST( - + ( COUNT( * ) ) AS SIGNED ) * + 33 + + ( - 96 ) * - COUNT( * ) AS col2
----
-2115

skipif mysql # not compatible
query I rowsort label-7001
SELECT 67 * + CAST ( - + ( COUNT ( * ) ) AS INTEGER ) * + 33 + + ( - 96 ) * - COUNT ( * ) AS col2
----
-2115

query I rowsort
SELECT 61 * + 71
----
4331

query I rowsort
SELECT ALL - ( - - 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT ALL COUNT( * ) - - + 75
----
76

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL COUNT ( * ) - - + 75
----
76

query II rowsort
SELECT + 83 AS col0, - 39 AS col2
----
83
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7006
SELECT 74 + + ( + 57 ) * + - CAST( + 19 AS SIGNED ) * - + 62 * - ( - + 0 ) + - COALESCE ( 17, 8 )
----
57

skipif mysql # not compatible
query I rowsort label-7006
SELECT 74 + + ( + 57 ) * + - CAST ( + 19 AS INTEGER ) * - + 62 * - ( - + 0 ) + - COALESCE ( 17, 8 )
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7007
SELECT ALL 11 * - + COALESCE ( + - COUNT( * ), + 0 ) col2, - 10 AS col0
----
11
-10

skipif mysql # not compatible
query II rowsort label-7007
SELECT ALL 11 * - + COALESCE ( + - COUNT ( * ), + 0 ) col2, - 10 AS col0
----
11
-10

query I rowsort
SELECT 80 - - 56 AS col0
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7009
SELECT ALL - 95 DIV + CAST( - 57 AS SIGNED ) * + COUNT( * ) - - MIN( 36 ) * - COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL - 95 / + CAST ( - 57 AS INTEGER ) * + COUNT ( * ) - - MIN ( 36 ) * - COUNT ( * ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT ALL 28 * - - COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL 28 * - - COUNT ( * ) AS col1
----
28

query I rowsort
SELECT DISTINCT - 89 * + ( 96 )
----
-8544

query I rowsort
SELECT ALL 90 * 84 * + 41 + + 48
----
310008

onlyif mysql # aggregate syntax: 
query II rowsort label-7013
SELECT + 52 AS col2, 35 - - COUNT( * ) + - 83
----
52
-47

skipif mysql # not compatible
query II rowsort label-7013
SELECT + 52 AS col2, 35 - - COUNT ( * ) + - 83
----
52
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7014
SELECT + 73 + + - 94 * + 66 AS col2, + 44 * - - CAST( NULL AS SIGNED ) - - ( + 33 ) * - 9 + - 18
----
-6131
NULL

skipif mysql # not compatible
query II rowsort label-7014
SELECT + 73 + + - 94 * + 66 AS col2, + 44 * - - CAST ( NULL AS INTEGER ) - - ( + 33 ) * - 9 + - 18
----
-6131
NULL

query I rowsort
SELECT + 82 * - 60 AS col1
----
-4920

onlyif mysql # aggregate syntax: 
query II rowsort label-7016
SELECT + 86, COUNT( * ) AS col1
----
86
1

skipif mysql # not compatible
query II rowsort label-7016
SELECT + 86, COUNT ( * ) AS col1
----
86
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7017
SELECT COUNT( * ) AS col1, + MAX( ALL + ( 78 ) ) col2
----
1
78

skipif mysql # not compatible
query II rowsort label-7017
SELECT COUNT ( * ) AS col1, + MAX ( ALL + ( 78 ) ) col2
----
1
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7018
SELECT DISTINCT 35 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT 35 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( - 51 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT DISTINCT + CASE - - 8 WHEN + - 40 THEN - 31 + ( - 17 ) + + CASE - 93 WHEN + COUNT( * ) THEN 24 WHEN - 39 THEN 38 * 77 ELSE - 34 * - 65 END WHEN 43 THEN NULL END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT + CASE - - 8 WHEN + - 40 THEN - 31 + ( - 17 ) + + CASE - 93 WHEN + COUNT ( * ) THEN 24 WHEN - 39 THEN 38 * 77 ELSE - 34 * - 65 END WHEN 43 THEN NULL END * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT ALL + ( - + 24 ) + + - COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL + ( - + 24 ) + + - COUNT ( * ) AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7022
SELECT + ( + + 0 ) DIV - COUNT( * ) * - - ( + 79 ) * - 67 - - ( - 44 ) * 55 AS col0
----
-2420

skipif mysql # not compatible
query I rowsort label-7022
SELECT + ( + + 0 ) / - COUNT ( * ) * - - ( + 79 ) * - 67 - - ( - 44 ) * 55 AS col0
----
-2420

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT ALL + 13 + - 84 + 75 * ( - COUNT( * ) ) AS col0
----
-146

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL + 13 + - 84 + 75 * ( - COUNT ( * ) ) AS col0
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL COUNT( * ) + - CAST( - COALESCE ( + 87, - 61, 35, + 42 * 53 + 2 ) AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL COUNT ( * ) + - CAST ( - COALESCE ( + 87, - 61, 35, + 42 * 53 + 2 ) AS INTEGER )
----
88

query I rowsort
SELECT + 98 + + 9
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT COUNT( * ) * 7
----
7

skipif mysql # not compatible
query I rowsort label-7026
SELECT COUNT ( * ) * 7
----
7

query I rowsort
SELECT ALL + 63 * - 84 + + 63 AS col2
----
-5229

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7028
SELECT + ( CAST( NULL AS SIGNED ) ) + + 20 + + + 41, + 20 DIV - 6 AS col0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-7028
SELECT + ( CAST ( NULL AS INTEGER ) ) + + 20 + + + 41, + 20 / - 6 AS col0
----
NULL
-3

query I rowsort
SELECT DISTINCT ( 9 ) * - 33 * + 96
----
-28512

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT 62 * MAX( DISTINCT - - 20 ) * + 3 * - CASE - - COUNT( * ) WHEN COUNT( * ) + 49 THEN - 39 * NULLIF ( 94 * 7, 98 / + 91 ) - 24 * - 38 ELSE NULL END + 15 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7030
SELECT 62 * MAX ( DISTINCT - - 20 ) * + 3 * - CASE - - COUNT ( * ) WHEN COUNT ( * ) + 49 THEN - 39 * NULLIF ( 94 * 7, 98 / + 91 ) - 24 * - 38 ELSE NULL END + 15 + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 12 - 58 * + + ( 45 )
----
-2598

query I rowsort
SELECT ALL + 71 * 82
----
5822

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT ALL + 99 DIV - 85 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL + 99 / - 85 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7034
SELECT COALESCE ( CAST( - 72 AS SIGNED ), + - 29 + - + 14 * - 97 ) DIV - + 6
----
12

skipif mysql # not compatible
query I rowsort label-7034
SELECT COALESCE ( CAST ( - 72 AS INTEGER ), + - 29 + - + 14 * - 97 ) / - + 6
----
12

query I rowsort
SELECT DISTINCT - 16 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT ALL - NULLIF ( - + 82, + CASE + 65 WHEN + 73 THEN SUM( DISTINCT + 58 ) END ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL - NULLIF ( - + 82, + CASE + 65 WHEN + 73 THEN SUM ( DISTINCT + 58 ) END ) AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7037
SELECT ALL - 99 * 37 DIV + 34 AS col0
----
-107

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL - 99 * 37 / + 34 AS col0
----
-107

query I rowsort
SELECT 70 * + 95 AS col0
----
6650

query I rowsort
SELECT ALL - 27 * 66 AS col1
----
-1782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7040
SELECT ALL - NULLIF ( + 16, - + 36 * 53 + + CAST( NULL AS SIGNED ) )
----
-16

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - NULLIF ( + 16, - + 36 * 53 + + CAST ( NULL AS INTEGER ) )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7041
SELECT ALL - CAST( 96 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL - CAST ( 96 AS INTEGER )
----
-96

query II rowsort
SELECT DISTINCT - ( + + 76 ), 77 AS col1
----
-76
77

query I rowsort
SELECT ALL - 0 * - ( - + 69 )
----
0

query I rowsort
SELECT 96 * ( - - 16 ) * - - 57 AS col0
----
87552

query I rowsort
SELECT 43 col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT 70 - - COUNT( + - 53 )
----
71

skipif mysql # not compatible
query I rowsort label-7046
SELECT 70 - - COUNT ( + - 53 )
----
71

query I rowsort
SELECT 9 * ( + - 97 ) col1
----
-873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7048
SELECT + - COALESCE ( - + 78, - + CAST( NULL AS SIGNED ) * + - 51 )
----
78

skipif mysql # not compatible
query I rowsort label-7048
SELECT + - COALESCE ( - + 78, - + CAST ( NULL AS INTEGER ) * + - 51 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7049
SELECT ALL - - CAST( 83 AS SIGNED ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL - - CAST ( 83 AS INTEGER ) AS col1
----
83

query I rowsort
SELECT 36 * + + 91
----
3276

query II rowsort
SELECT - ( + 33 ) col1, - 22 + - - 20 AS col0
----
-33
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT COUNT( * ) * + + 18 + - + 50 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-7052
SELECT COUNT ( * ) * + + 18 + - + 50 AS col2
----
-32

query I rowsort
SELECT + 42 col1
----
42

query I rowsort
SELECT ( + 94 ) * 6 + 95 + 58 + + 6
----
723

query I rowsort
SELECT ALL ( + + 41 ) + + 37
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL - ( NULLIF ( 14, - - ( COUNT( * ) ) / - - 84 - + 20 ) ) + 25 + + - 63 + SUM( ALL - 70 ) AS col2
----
-122

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL - ( NULLIF ( 14, - - ( COUNT ( * ) ) / - - 84 - + 20 ) ) + 25 + + - 63 + SUM ( ALL - 70 ) AS col2
----
-122

query I rowsort
SELECT DISTINCT - 86 * + 93 * - 80 * + - 45 * - 10 + - 5
----
287927995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7058
SELECT ALL + COUNT( * ) * COUNT( * ) DIV + + 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL + COUNT ( * ) * COUNT ( * ) / + + 43 AS col1
----
0

query II rowsort
SELECT ( ( - 18 ) ) + - 15 col1, 72 AS col1
----
-33
72

query I rowsort
SELECT DISTINCT - - 30 + 0 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7061
SELECT ALL + ( - 52 ) * - MAX( 93 ) + - 81 + - 41 DIV + 76 + - 6 + 42 * + 82 col1
----
8193

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL + ( - 52 ) * - MAX ( 93 ) + - 81 + - 41 / + 76 + - 6 + 42 * + 82 col1
----
8193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7062
SELECT + 29 + - + COUNT( * ) + + + 98 DIV 80 + - - 50 - - 65
----
144

skipif mysql # not compatible
query I rowsort label-7062
SELECT + 29 + - + COUNT ( * ) + + + 98 / 80 + - - 50 - - 65
----
144

query I rowsort
SELECT ALL + 84 + - 16 * NULLIF ( + + ( - ( + 63 ) ), + 30 ) col1
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT ALL COUNT( * ) * + + COUNT( * ) * + 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL COUNT ( * ) * + + COUNT ( * ) * + 79 AS col2
----
79

query II rowsort
SELECT 84 * + 2 AS col2, + 14 AS col0
----
168
14

query I rowsort
SELECT + 87 - + 72
----
15

query I rowsort
SELECT - + 30 col1
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-7068
SELECT DISTINCT 35 + SUM( 14 ) + - 99 col2, 22 AS col1
----
-50
22

skipif mysql # not compatible
query II rowsort label-7068
SELECT DISTINCT 35 + SUM ( 14 ) + - 99 col2, 22 AS col1
----
-50
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7069
SELECT ALL - COUNT( * ) - - - CAST( + ( + + 95 ) AS SIGNED ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL - COUNT ( * ) - - - CAST ( + ( + + 95 ) AS INTEGER ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-7070
SELECT ALL 1 * + 27 * + 4 AS col0, - 38 - + COUNT( * ) * ( - - 42 ) * - MIN( DISTINCT + + 57 ) AS col0
----
108
2356

skipif mysql # not compatible
query II rowsort label-7070
SELECT ALL 1 * + 27 * + 4 AS col0, - 38 - + COUNT ( * ) * ( - - 42 ) * - MIN ( DISTINCT + + 57 ) AS col0
----
108
2356

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT - COALESCE ( 60, COUNT( DISTINCT NULLIF ( + 51, + 50 ) ), + 66 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-7071
SELECT - COALESCE ( 60, COUNT ( DISTINCT NULLIF ( + 51, + 50 ) ), + 66 ) AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7072
SELECT ALL NULLIF ( + COUNT( * ), - 8 ) - + CAST( - 10 AS SIGNED ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL NULLIF ( + COUNT ( * ), - 8 ) - + CAST ( - 10 AS INTEGER ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT + 95 - COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7073
SELECT + 95 - COUNT ( * ) AS col2
----
94

query I rowsort
SELECT + 53 * + ( 16 ) AS col0
----
848

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT CASE + 83 WHEN + 87 THEN 76 * - - 31 + 68 WHEN + CASE WHEN - COUNT( * ) NOT BETWEEN NULL AND + 99 + 76 THEN 58 ELSE + 4 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7075
SELECT CASE + 83 WHEN + 87 THEN 76 * - - 31 + 68 WHEN + CASE WHEN - COUNT ( * ) NOT BETWEEN NULL AND + 99 + 76 THEN 58 ELSE + 4 END THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT COALESCE ( 35, + ( - + COUNT( * ) ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7076
SELECT COALESCE ( 35, + ( - + COUNT ( * ) ) ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT + COALESCE ( + 43, - CASE COUNT( ALL + 96 ) WHEN + COUNT( * ) * - - 63 * - ( + 81 ) THEN + - 74 WHEN 38 * + 0 THEN 40 * + 23 WHEN ( + 0 ) THEN NULL WHEN 52 + + 40 * ( - 4 ) THEN NULL END ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7077
SELECT + COALESCE ( + 43, - CASE COUNT ( ALL + 96 ) WHEN + COUNT ( * ) * - - 63 * - ( + 81 ) THEN + - 74 WHEN 38 * + 0 THEN 40 * + 23 WHEN ( + 0 ) THEN NULL WHEN 52 + + 40 * ( - 4 ) THEN NULL END ) AS col2
----
43

query I rowsort
SELECT + NULLIF ( 46, + ( - + 85 ) ) * + 51 AS col1
----
2346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7079
SELECT + 63 / - COUNT( * ) - + CAST( NULL AS SIGNED ) * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7079
SELECT + 63 / - COUNT ( * ) - + CAST ( NULL AS INTEGER ) * - 26
----
NULL

query I rowsort
SELECT ALL 5 * - 45 AS col2
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7081
SELECT DISTINCT 64 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT 64 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7082
SELECT - CAST( - 66 AS SIGNED ) * - ( - 58 ) * + 92 AS col0
----
352176

skipif mysql # not compatible
query I rowsort label-7082
SELECT - CAST ( - 66 AS INTEGER ) * - ( - 58 ) * + 92 AS col0
----
352176

query I rowsort
SELECT + 81 + - - ( - 98 ) AS col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-7084
SELECT - 46 DIV + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7084
SELECT - 46 / + 92 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7085
SELECT + CAST( + CASE + 11 WHEN - CAST( + CAST( + - 12 AS SIGNED ) AS SIGNED ) * - + 83 THEN + 72 WHEN - + COUNT( * ) THEN + + 78 + 63 * - 61 END AS SIGNED ) + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7085
SELECT + CAST ( + CASE + 11 WHEN - CAST ( + CAST ( + - 12 AS INTEGER ) AS INTEGER ) * - + 83 THEN + 72 WHEN - + COUNT ( * ) THEN + + 78 + 63 * - 61 END AS INTEGER ) + 58 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7086
SELECT - 63 - CAST( + AVG ( DISTINCT - 3 ) AS SIGNED ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-7086
SELECT - 63 - CAST ( + AVG ( DISTINCT - 3 ) AS INTEGER ) AS col0
----
-60

query I rowsort
SELECT ALL - 53 * + - 0 + + + 49 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT COUNT( * ) * 30 + - - 19
----
49

skipif mysql # not compatible
query I rowsort label-7088
SELECT COUNT ( * ) * 30 + - - 19
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT ALL - 53 * + + 1 * - 57 + SUM( DISTINCT - 8 ) + ( - + 46 ) + + 71 AS col1
----
3038

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL - 53 * + + 1 * - 57 + SUM ( DISTINCT - 8 ) + ( - + 46 ) + + 71 AS col1
----
3038

query II rowsort
SELECT + COALESCE ( + 91, + 27 ) AS col0, + 2
----
91
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT DISTINCT - MIN( DISTINCT - + 48 ) * + - 21 + + + 92
----
-916

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT - MIN ( DISTINCT - + 48 ) * + - 21 + + + 92
----
-916

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT DISTINCT + 67 * 24 * 33 + - 10 + 69 - - MIN( - 29 ) - - 47 * 21 * + COUNT( * )
----
54081

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT + 67 * 24 * 33 + - 10 + 69 - - MIN ( - 29 ) - - 47 * 21 * + COUNT ( * )
----
54081

query I rowsort
SELECT ALL + COALESCE ( 53, 44 ) * 36 + + - 65
----
1843

query I rowsort
SELECT - - 93 + - - ( 28 ) + + 80 AS col2
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT ALL + + 61 * + COUNT( + 19 ) + + - 45 * - 71
----
3256

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL + + 61 * + COUNT ( + 19 ) + + - 45 * - 71
----
3256

query II rowsort
SELECT 48, - 65 AS col2
----
48
-65

query I rowsort
SELECT - 84 + - + 71 * ( - + 97 )
----
6803

query I rowsort
SELECT + 54 + - CASE - 1 WHEN + + 40 + + 51 * + COALESCE ( - 76, 16 ) THEN NULL WHEN AVG ( DISTINCT + + 88 ) THEN NULL WHEN - ( AVG ( 38 ) ) THEN - 96 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7099
SELECT ALL + 47 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL + 47 / 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7100
SELECT - + NULLIF ( + - CASE WHEN 99 BETWEEN - - CAST( - - COUNT( DISTINCT - - 49 ) AS SIGNED ) * 30 AND NULL THEN + + 45 ELSE NULL END, + MIN( ALL + 42 ) * - 5 ) * - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT - + NULLIF ( + - CASE WHEN 99 BETWEEN - - CAST ( - - COUNT ( DISTINCT - - 49 ) AS INTEGER ) * 30 AND NULL THEN + + 45 ELSE NULL END, + MIN ( ALL + 42 ) * - 5 ) * - 70 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7101
SELECT ALL COALESCE ( - - 69, + 23 DIV + CAST( + 32 AS SIGNED ) + + COUNT( * ) ) - - + 14 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL COALESCE ( - - 69, + 23 / + CAST ( + 32 AS INTEGER ) + + COUNT ( * ) ) - - + 14 AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7102
SELECT DISTINCT + COUNT( * ) DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT + COUNT ( * ) / + 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT DISTINCT - + COUNT( * ) - + SUM( DISTINCT + 99 )
----
-100

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT - + COUNT ( * ) - + SUM ( DISTINCT + 99 )
----
-100

query II rowsort
SELECT - 89 AS col0, + 50
----
-89
50

query I rowsort
SELECT DISTINCT 69 - + 35
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT DISTINCT + MIN( + 28 ) * - 33
----
-924

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT + MIN ( + 28 ) * - 33
----
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-7107
SELECT - 95 + + + 30 * 64 DIV - - 43 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-7107
SELECT - 95 + + + 30 * 64 / - - 43 AS col2
----
-51

query I rowsort
SELECT + 60 * + 36 * + 30 AS col0
----
64800

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT + 77 - - 65 * + ( - SUM( 55 ) ) + + + 83 + + 92 AS col2
----
-3323

skipif mysql # not compatible
query I rowsort label-7109
SELECT + 77 - - 65 * + ( - SUM ( 55 ) ) + + + 83 + + 92 AS col2
----
-3323

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT + NULLIF ( + COUNT( * ), 86 ) * - 64
----
-64

skipif mysql # not compatible
query I rowsort label-7110
SELECT + NULLIF ( + COUNT ( * ), 86 ) * - 64
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7111
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - COALESCE ( + - 77, 85, 92 ) * + 7 * 91 AS col2
----
NULL
49049

skipif mysql # not compatible
query II rowsort label-7111
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - COALESCE ( + - 77, 85, 92 ) * + 7 * 91 AS col2
----
NULL
49049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7112
SELECT + 41 + - 34 DIV + CAST( + + COUNT( * ) AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-7112
SELECT + 41 + - 34 / + CAST ( + + COUNT ( * ) AS INTEGER )
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7113
SELECT + NULLIF ( - 54, CAST( NULL AS SIGNED ) ) * - - 38, COALESCE ( + 2, + - 84 DIV + COALESCE ( - 43, + 72 ) * - ( - 55 ) ) + 17 DIV + 68 AS col0
----
-2052
2

skipif mysql # not compatible
query II rowsort label-7113
SELECT + NULLIF ( - 54, CAST ( NULL AS INTEGER ) ) * - - 38, COALESCE ( + 2, + - 84 / + COALESCE ( - 43, + 72 ) * - ( - 55 ) ) + 17 / + 68 AS col0
----
-2052
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7114
SELECT ALL + 45, ( 11 ) * 60 + - 50 + + - CAST( NULL AS SIGNED ) AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-7114
SELECT ALL + 45, ( 11 ) * 60 + - 50 + + - CAST ( NULL AS INTEGER ) AS col2
----
45
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7115
SELECT + 96 DIV - 94 * COUNT( * ) + 7 * + + 83 + - 36
----
544

skipif mysql # not compatible
query I rowsort label-7115
SELECT + 96 / - 94 * COUNT ( * ) + 7 * + + 83 + - 36
----
544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7116
SELECT CAST( NULLIF ( - CAST( NULL AS SIGNED ), + COUNT( * ) ) AS SIGNED ) col1, 76 + - MAX( - 22 ) AS col1
----
NULL
98

skipif mysql # not compatible
query II rowsort label-7116
SELECT CAST ( NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) AS INTEGER ) col1, 76 + - MAX ( - 22 ) AS col1
----
NULL
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7117
SELECT ALL + 36 DIV + COUNT( * ) + - + 96
----
-60

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL + 36 / + COUNT ( * ) + - + 96
----
-60

query I rowsort
SELECT ALL + 28 col2
----
28

query I rowsort
SELECT + 8 * - - 79 * - 51 + + 75
----
-32157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7120
SELECT CAST( - ( - AVG ( + + 48 ) ) AS SIGNED ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7120
SELECT CAST ( - ( - AVG ( + + 48 ) ) AS INTEGER ) AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7121
SELECT + COALESCE ( 47, ( - + 53 ) ) AS col0, + CAST( NULL AS SIGNED )
----
47
NULL

skipif mysql # not compatible
query II rowsort label-7121
SELECT + COALESCE ( 47, ( - + 53 ) ) AS col0, + CAST ( NULL AS INTEGER )
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT 37 * + - CASE + ( + + 40 ) WHEN 64 THEN + 67 END + ( + - 66 ) - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7122
SELECT 37 * + - CASE + ( + + 40 ) WHEN 64 THEN + 67 END + ( + - 66 ) - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7123
SELECT + CAST( NULL AS SIGNED ) * 21 * + - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT + CAST ( NULL AS INTEGER ) * 21 * + - 39 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT ALL - 43 DIV + 43 + + 86
----
85

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL - 43 / + 43 + + 86
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7125
SELECT CAST( - - 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-7125
SELECT CAST ( - - 4 AS INTEGER )
----
4

query I rowsort
SELECT + + 81 AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7127
SELECT ALL + 91 DIV + 83 + - - 50 DIV - - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL + 91 / + 83 + - - 50 / - - COUNT ( * )
----
51

query I rowsort
SELECT + + 97 * - + 24
----
-2328

query II rowsort
SELECT ALL + 55, 9 AS col2
----
55
9

query I rowsort
SELECT + 89 * + 83 AS col2
----
7387

query I rowsort
SELECT + - 88 AS col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-7132
SELECT ALL - ( - 64 ) DIV - 53 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL - ( - 64 ) / - 53 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7133
SELECT ALL + 93 AS col1, - COUNT( * ) AS col1
----
93
-1

skipif mysql # not compatible
query II rowsort label-7133
SELECT ALL + 93 AS col1, - COUNT ( * ) AS col1
----
93
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT + COUNT( * ) * + + 98
----
98

skipif mysql # not compatible
query I rowsort label-7134
SELECT + COUNT ( * ) * + + 98
----
98

query I rowsort
SELECT + - CASE + 88 WHEN + 93 THEN NULL ELSE - - 44 END
----
-44

query I rowsort
SELECT 44 col2
----
44

query I rowsort
SELECT ALL - + 8 AS col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7138
SELECT DISTINCT + 18 * 48 DIV + - 32 + - 40
----
-67

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT + 18 * 48 / + - 32 + - 40
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT DISTINCT 70 * + + 85 * + 55 * COUNT( * ) * + - ( - 24 ) AS col2
----
7854000

skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT 70 * + + 85 * + 55 * COUNT ( * ) * + - ( - 24 ) AS col2
----
7854000

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT - MAX( + 62 ) * - 59
----
3658

skipif mysql # not compatible
query I rowsort label-7140
SELECT - MAX ( + 62 ) * - 59
----
3658

onlyif mysql # aggregate syntax: 
query II rowsort label-7141
SELECT 48 + 25 AS col2, + CASE 30 WHEN 85 THEN NULL WHEN - 92 + 36 THEN - 88 + + - 54 + + + 75 + + COUNT( * ) ELSE NULL END + - 80 - + 37 AS col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-7141
SELECT 48 + 25 AS col2, + CASE 30 WHEN 85 THEN NULL WHEN - 92 + 36 THEN - 88 + + - 54 + + + 75 + + COUNT ( * ) ELSE NULL END + - 80 - + 37 AS col1
----
73
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7142
SELECT MAX( - 27 ) DIV + 34 * - - 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7142
SELECT MAX ( - 27 ) / + 34 * - - 39 AS col2
----
0

query II rowsort
SELECT 55 * + 95, + ( - + 53 ) AS col1
----
5225
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7144
SELECT 90 + - CAST( 74 AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-7144
SELECT 90 + - CAST ( 74 AS INTEGER ) AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7145
SELECT DISTINCT - 58 DIV - 8 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT - 58 / - 8 AS col0
----
7

query I rowsort
SELECT ALL 12 + + ( + 97 )
----
109

query I rowsort
SELECT 80 * 37 * 68 AS col1
----
201280

onlyif mysql # DIV for integer division: 
query I rowsort label-7148
SELECT DISTINCT - 68 DIV 5
----
-13

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT - 68 / 5
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7149
SELECT DISTINCT COUNT( * ) * + SUM( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7150
SELECT DISTINCT + 95 + - 61 - + 13 DIV + 65 * - NULLIF ( + 31, + 56 + 31 * + COUNT( * ) * 85 + - 47 )
----
34

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT + 95 + - 61 - + 13 / + 65 * - NULLIF ( + 31, + 56 + 31 * + COUNT ( * ) * 85 + - 47 )
----
34

query I rowsort
SELECT ALL - 41 + - 75 AS col2
----
-116

query I rowsort
SELECT ALL + 78 + - 50 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT 80 * - - MAX( ALL - 75 ) AS col0
----
-6000

skipif mysql # not compatible
query I rowsort label-7153
SELECT 80 * - - MAX ( ALL - 75 ) AS col0
----
-6000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7154
SELECT DISTINCT + COUNT( ( - 74 ) ) * ( + CASE COALESCE ( - + COUNT( * ), 7 ) WHEN 78 + - COUNT( * ) THEN ( MAX( CAST( 34 AS SIGNED ) ) ) ELSE NULL END ) + 24 * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT + COUNT ( ( - 74 ) ) * ( + CASE COALESCE ( - + COUNT ( * ), 7 ) WHEN 78 + - COUNT ( * ) THEN ( MAX ( CAST ( 34 AS INTEGER ) ) ) ELSE NULL END ) + 24 * 29
----
NULL

query I rowsort
SELECT ALL 46 + - - 48 + ( 67 ) + - - 92 AS col1
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT ALL SUM( - 74 ) + - 60
----
-134

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL SUM ( - 74 ) + - 60
----
-134

query I rowsort
SELECT 80 - 31 AS col0
----
49

query I rowsort
SELECT ALL - - 34 col1
----
34

query I rowsort
SELECT - 73 * + + 42
----
-3066

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT NULLIF ( 35, 21 ) * MAX( + 88 ) - - 72 AS col1
----
3152

skipif mysql # not compatible
query I rowsort label-7160
SELECT NULLIF ( 35, 21 ) * MAX ( + 88 ) - - 72 AS col1
----
3152

query I rowsort
SELECT ( + COALESCE ( - 90, + - 0 ) ) col0
----
-90

query I rowsort
SELECT + - 72 col1
----
-72

query I rowsort
SELECT ALL 56 - + - 24 * + + 12
----
344

query I rowsort
SELECT + 39 + - 36 - + 57 * + 38 AS col2
----
-2163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7165
SELECT CAST( NULL AS SIGNED ) - + 72 * ( - 92 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7165
SELECT CAST ( NULL AS INTEGER ) - + 72 * ( - 92 ) AS col2
----
NULL

query I rowsort
SELECT - 48 * - 33 * + 3 + + 40
----
4792

query II rowsort
SELECT - + 36 * - - 96 + - 70 + + - 39 * + - 82 col1, + 31 AS col0
----
-328
31

query I rowsort
SELECT - ( + 45 ) AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-7169
SELECT ALL - COALESCE ( - 27, - 33 DIV + 58 + - 97 DIV 71, - 99 )
----
27

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL - COALESCE ( - 27, - 33 / + 58 + - 97 / 71, - 99 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT DISTINCT + COALESCE ( + - 94, + + 69 * - 82 + 1 + - 61, - 36 * + + 50 ) * + COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT + COALESCE ( + - 94, + + 69 * - 82 + 1 + - 61, - 36 * + + 50 ) * + COUNT ( * ) AS col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7171
SELECT + CAST( + 7 AS SIGNED ) + + ( + - 93 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-7171
SELECT + CAST ( + 7 AS INTEGER ) + + ( + - 93 ) AS col2
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7172
SELECT ALL + 36 * + + 91 DIV + COUNT( * ) AS col0
----
3276

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL + 36 * + + 91 / + COUNT ( * ) AS col0
----
3276

onlyif mysql # aggregate syntax: 
query II rowsort label-7173
SELECT DISTINCT - 78 - - 13 col2, 58 + + + CASE + - 0 WHEN 97 THEN + 92 * 14 + - ( - COUNT( + 47 ) ) WHEN - 50 / + COUNT( * ) THEN NULL WHEN - 59 THEN NULL ELSE - CASE - 21 WHEN 95 THEN - 72 - 75 ELSE NULL END + + 40 END * + 41
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-7173
SELECT DISTINCT - 78 - - 13 col2, 58 + + + CASE + - 0 WHEN 97 THEN + 92 * 14 + - ( - COUNT ( + 47 ) ) WHEN - 50 / + COUNT ( * ) THEN NULL WHEN - 59 THEN NULL ELSE - CASE - 21 WHEN 95 THEN - 72 - 75 ELSE NULL END + + 40 END * + 41
----
-65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT DISTINCT - - COUNT( + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT - - COUNT ( + 19 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7175
SELECT 21 + - COALESCE ( + - 75, 96 + - NULLIF ( + + 15, - 36 + + 2 ) * - COUNT( DISTINCT + 56 ), - 36, - - SUM( DISTINCT + 73 ) ) + - 6 DIV + 31
----
96

skipif mysql # not compatible
query I rowsort label-7175
SELECT 21 + - COALESCE ( + - 75, 96 + - NULLIF ( + + 15, - 36 + + 2 ) * - COUNT ( DISTINCT + 56 ), - 36, - - SUM ( DISTINCT + 73 ) ) + - 6 / + 31
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7176
SELECT 8 / 33 / 87 + CAST( NULL AS SIGNED ) + - + 24 * + + NULLIF ( - + 3, + 45 ) * - 53 / ( COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT 8 / 33 / 87 + CAST ( NULL AS INTEGER ) + - + 24 * + + NULLIF ( - + 3, + 45 ) * - 53 / ( COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7177
SELECT ALL + CASE + 50 WHEN - 86 * + 37 + - 33 * + 84 + - 88 THEN NULL WHEN + - ( NULLIF ( - + 65, - 98 ) ) * + + 34 / 63 THEN 54 WHEN CAST( - 60 AS SIGNED ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL + CASE + 50 WHEN - 86 * + 37 + - 33 * + 84 + - 88 THEN NULL WHEN + - ( NULLIF ( - + 65, - 98 ) ) * + + 34 / 63 THEN 54 WHEN CAST ( - 60 AS INTEGER ) THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7178
SELECT 98 * 37 + + - 58 + - - 88 - + 17 DIV + 38 * - 24 * + + 73 AS col1
----
3656

skipif mysql # not compatible
query I rowsort label-7178
SELECT 98 * 37 + + - 58 + - - 88 - + 17 / + 38 * - 24 * + + 73 AS col1
----
3656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7179
SELECT + 64 + + ( + COALESCE ( + 90, 48 * + - COUNT( * ) + + - 41 * + 62 DIV + 29 DIV + COUNT( * ) ) ) * - 29 AS col0
----
-2546

skipif mysql # not compatible
query I rowsort label-7179
SELECT + 64 + + ( + COALESCE ( + 90, 48 * + - COUNT ( * ) + + - 41 * + 62 / + 29 / + COUNT ( * ) ) ) * - 29 AS col0
----
-2546

query II rowsort
SELECT - ( - - 88 ) AS col2, 25 AS col0
----
-88
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7181
SELECT ALL + 4 DIV + COUNT( * ) AS col0, - 47 AS col1
----
4
-47

skipif mysql # not compatible
query II rowsort label-7181
SELECT ALL + 4 / + COUNT ( * ) AS col0, - 47 AS col1
----
4
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7182
SELECT 93 + - + 28 + + + COUNT( DISTINCT - COALESCE ( + + 70, + 49, - 47 * 81 ) ) + - - CAST( - 86 AS SIGNED ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-7182
SELECT 93 + - + 28 + + + COUNT ( DISTINCT - COALESCE ( + + 70, + 49, - 47 * 81 ) ) + - - CAST ( - 86 AS INTEGER ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT ALL + 9 + - ( 1 ) * - COUNT( + 38 ) * + 94 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL + 9 + - ( 1 ) * - COUNT ( + 38 ) * + 94 AS col2
----
103

query I rowsort
SELECT 80 - - + 2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT ALL 82 * - COUNT( + 52 ) * + 51 * - 73 - 23 - + 47 col2
----
305216

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL 82 * - COUNT ( + 52 ) * + 51 * - 73 - 23 - + 47 col2
----
305216

query I rowsort
SELECT DISTINCT 41 + - 4 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT - SUM( DISTINCT 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7187
SELECT - SUM ( DISTINCT 22 ) AS col1
----
-22

query I rowsort
SELECT ALL + 9 + - 59 - + 42
----
-92

query I rowsort
SELECT ( + 0 ) + + 61 * + 38 AS col0
----
2318

query II rowsort
SELECT 15 - + 78 + - + 57 * 9 + + 41 * + 36 AS col0, 26
----
900
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL MIN( - ( 20 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL MIN ( - ( 20 ) )
----
-20

query I rowsort
SELECT 89 + 66
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT COUNT( * ) - + 40
----
-39

skipif mysql # not compatible
query I rowsort label-7193
SELECT COUNT ( * ) - + 40
----
-39

query II rowsort
SELECT - 30 AS col0, 85 * - - 17
----
-30
1445

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT ALL - 10 + + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL - 10 + + COUNT ( * )
----
-9

query I rowsort
SELECT 5 + - 85 AS col2
----
-80

query I rowsort
SELECT DISTINCT - ( - 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT + SUM( - + 60 ) * - 29 + - 18 * + + 99 + + 73
----
31

skipif mysql # not compatible
query I rowsort label-7198
SELECT + SUM ( - + 60 ) * - 29 + - 18 * + + 99 + + 73
----
31

query I rowsort
SELECT ALL - ( 45 ) AS col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7200
SELECT CAST( NULL AS SIGNED ) * SUM( - 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT CAST ( NULL AS INTEGER ) * SUM ( - 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT CASE - 56 WHEN - 4 THEN NULL WHEN + - COUNT( * ) THEN NULL ELSE + 25 END col2
----
25

skipif mysql # not compatible
query I rowsort label-7201
SELECT CASE - 56 WHEN - 4 THEN NULL WHEN + - COUNT ( * ) THEN NULL ELSE + 25 END col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7202
SELECT + - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7202
SELECT + - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT + COALESCE ( 42, + + 67, 36 * MAX( + + 55 ) * - + 17 ) col1
----
42

skipif mysql # not compatible
query I rowsort label-7203
SELECT + COALESCE ( 42, + + 67, 36 * MAX ( + + 55 ) * - + 17 ) col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT ALL - + COUNT( * ) * 4
----
-4

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL - + COUNT ( * ) * 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT 40 / 47 + + 98 + 53 + + 12 * - - 2 * CASE - - 16 WHEN - COUNT( * ) THEN - COUNT( * ) WHEN 77 THEN + + 87 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7205
SELECT 40 / 47 + + 98 + 53 + + 12 * - - 2 * CASE - - 16 WHEN - COUNT ( * ) THEN - COUNT ( * ) WHEN 77 THEN + + 87 END AS col0
----
NULL

query I rowsort
SELECT + - 66 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT DISTINCT - - 79 * - CASE + ( + COALESCE ( + 89, + - 40, - 11 * - ( + NULLIF ( - 96, - 42 + - ( - 53 ) + 35 * + 65 ) ) * COUNT( * ) + 32 ) ) WHEN ( + MAX( ALL - 83 ) ) THEN + 9 WHEN - COUNT( * ) THEN NULL ELSE NULL END - 34 * + MIN( DISTINCT 63 + 78 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT - - 79 * - CASE + ( + COALESCE ( + 89, + - 40, - 11 * - ( + NULLIF ( - 96, - 42 + - ( - 53 ) + 35 * + 65 ) ) * COUNT ( * ) + 32 ) ) WHEN ( + MAX ( ALL - 83 ) ) THEN + 9 WHEN - COUNT ( * ) THEN NULL ELSE NULL END - 34 * + MIN ( DISTINCT 63 + 78 ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 4 AS col0
----
-4

query II rowsort
SELECT ALL + + 13 AS col2, + 87 * 36 * + - 72
----
13
-225504

query I rowsort
SELECT + + 20 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT ALL + + MAX( ALL 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL + + MAX ( ALL 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT DISTINCT - ( 77 ) + - - SUM( DISTINCT 15 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT - ( 77 ) + - - SUM ( DISTINCT 15 ) AS col2
----
-62

query I rowsort
SELECT + - 69 * + 72 + + 98 AS col0
----
-4870

query II rowsort
SELECT ALL - + 62 + - 92 * + 71 AS col0, + ( + - 64 )
----
-6594
-64

query I rowsort
SELECT DISTINCT 36 + - 52 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT ALL 71 + + - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL 71 + + - COUNT ( * )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7217
SELECT + CASE - - 55 WHEN 47 * COUNT( * ) + + CAST( + + ( - 63 ) AS SIGNED ) + + + MAX( DISTINCT + 42 ) THEN NULL WHEN - + AVG ( ALL - 75 ) THEN - 59 END - + 66 + 71 * 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7217
SELECT + CASE - - 55 WHEN 47 * COUNT ( * ) + + CAST ( + + ( - 63 ) AS INTEGER ) + + + MAX ( DISTINCT + 42 ) THEN NULL WHEN - + AVG ( ALL - 75 ) THEN - 59 END - + 66 + 71 * 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT ALL MIN( ALL + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL MIN ( ALL + 67 )
----
67

query I rowsort
SELECT ALL 0 + + 52 * + 60
----
3120

onlyif mysql # aggregate syntax: 
query II rowsort label-7220
SELECT - ( - 10 ), COUNT( * ) AS col2
----
10
1

skipif mysql # not compatible
query II rowsort label-7220
SELECT - ( - 10 ), COUNT ( * ) AS col2
----
10
1

query I rowsort
SELECT ALL 35 + + ( - 22 ) AS col1
----
13

query I rowsort
SELECT + COALESCE ( - - 71, - + 81 + - - 59, + + 61 + - 7 ) * + ( 96 ) * + 21
----
143136

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT - 64 + MAX( 31 ) + + 30 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7223
SELECT - 64 + MAX ( 31 ) + + 30 AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7224
SELECT DISTINCT AVG ( + 97 ) + - ( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT AVG ( + 97 ) + - ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7225
SELECT - COALESCE ( + 56, + CAST( NULL AS SIGNED ) + + COUNT( * ) ) col0, 94 AS col1
----
-56
94

skipif mysql # not compatible
query II rowsort label-7225
SELECT - COALESCE ( + 56, + CAST ( NULL AS INTEGER ) + + COUNT ( * ) ) col0, 94 AS col1
----
-56
94

query I rowsort
SELECT - 41 + - - 74 AS col2
----
33

query I rowsort
SELECT ALL + 78 - + - ( - NULLIF ( 45, - + 31 ) ) * + 79 AS col1
----
-3477

query I rowsort
SELECT ALL - ( 51 ) - - 27 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT + 5 * + + MAX( + 87 )
----
435

skipif mysql # not compatible
query I rowsort label-7229
SELECT + 5 * + + MAX ( + 87 )
----
435

query I rowsort
SELECT DISTINCT - 6 * 24 * + 87 AS col1
----
-12528

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT + 69 - + 17 - + COALESCE ( - 62, + COUNT( * ) * + 77 * - - 12 ) * 96
----
6004

skipif mysql # not compatible
query I rowsort label-7231
SELECT + 69 - + 17 - + COALESCE ( - 62, + COUNT ( * ) * + 77 * - - 12 ) * 96
----
6004

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT - 85 * - MIN( - 51 ) * + 72 + - COUNT( * ) - + COALESCE ( - - 99, 44 )
----
-312220

skipif mysql # not compatible
query I rowsort label-7232
SELECT - 85 * - MIN ( - 51 ) * + 72 + - COUNT ( * ) - + COALESCE ( - - 99, 44 )
----
-312220

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT - 82 * - COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-7233
SELECT - 82 * - COUNT ( * ) AS col0
----
82

query I rowsort
SELECT ALL + - 52 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT DISTINCT + MIN( + - 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT + MIN ( + - 32 ) AS col1
----
-32

query I rowsort
SELECT ALL + 22 col0
----
22

query I rowsort
SELECT ALL + + 1
----
1

query I rowsort
SELECT - + 59 * 44
----
-2596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7239
SELECT - 24 + + CAST( NULL AS SIGNED ) + + 55 + + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT - 24 + + CAST ( NULL AS INTEGER ) + + 55 + + - 96
----
NULL

query I rowsort
SELECT + + 35 AS col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7241
SELECT ALL + COALESCE ( - - ( ( - - 65 ) ), - MIN( + + 96 ) * - 88 DIV + ( 54 ) + + - 45 * + COUNT( * ) * + 93 ) * + + 7
----
455

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL + COALESCE ( - - ( ( - - 65 ) ), - MIN ( + + 96 ) * - 88 / + ( 54 ) + + - 45 * + COUNT ( * ) * + 93 ) * + + 7
----
455

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT - 18 * + 24 + - + MIN( + 49 ) + 80 - - + 27 - + + COUNT( * ) + 6 * 68 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7242
SELECT - 18 * + 24 + - + MIN ( + 49 ) + 80 - - + 27 - + + COUNT ( * ) + 6 * 68 AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7243
SELECT ALL - - COALESCE ( 54, + + COUNT( * ) * - ( - 85 ) DIV - 4 + + ( 46 ) + + 92, - - ( - + COUNT( * ) ) + 80 ) * + ( - 64 )
----
-3456

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL - - COALESCE ( 54, + + COUNT ( * ) * - ( - 85 ) / - 4 + + ( 46 ) + + 92, - - ( - + COUNT ( * ) ) + 80 ) * + ( - 64 )
----
-3456

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT ALL - 41 * - 49 * - 19 + - COUNT( * ) * - 79 + + 67 AS col2
----
-38025

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL - 41 * - 49 * - 19 + - COUNT ( * ) * - 79 + + 67 AS col2
----
-38025

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7245
SELECT DISTINCT - 34 * - - ( - ( + 56 ) ) AS col1, - 62 DIV - + COUNT( * ) col2
----
1904
62

skipif mysql # not compatible
query II rowsort label-7245
SELECT DISTINCT - 34 * - - ( - ( + 56 ) ) AS col1, - 62 / - + COUNT ( * ) col2
----
1904
62

query I rowsort
SELECT DISTINCT ( - + 80 ) * 32 + - 88 AS col0
----
-2648

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT DISTINCT + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7247
SELECT DISTINCT + - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT DISTINCT 49 * COUNT( * ) + - + COALESCE ( - 55, + - 60 * - + 70, - 92 * + - ( - + 26 ) + + ( - ( 41 ) ) ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT 49 * COUNT ( * ) + - + COALESCE ( - 55, + - 60 * - + 70, - 92 * + - ( - + 26 ) + + ( - ( 41 ) ) ) AS col1
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7249
SELECT - CAST( + 65 AS SIGNED ) + - + MIN( + + 91 ) AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-7249
SELECT - CAST ( + 65 AS INTEGER ) + - + MIN ( + + 91 ) AS col0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT ALL COUNT( DISTINCT - 16 ) * - + 55 + + 59 + 32 - - + 95 * MAX( ALL 15 ) + - 98 * - 27 * + - 2 + - - 84 * + ( + SUM( - 29 ) )
----
-6267

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL COUNT ( DISTINCT - 16 ) * - + 55 + + 59 + 32 - - + 95 * MAX ( ALL 15 ) + - 98 * - 27 * + - 2 + - - 84 * + ( + SUM ( - 29 ) )
----
-6267

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT + 23 * - 18 * + COUNT( DISTINCT + 72 ) * - 20
----
8280

skipif mysql # not compatible
query I rowsort label-7251
SELECT + 23 * - 18 * + COUNT ( DISTINCT + 72 ) * - 20
----
8280

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT ALL COUNT( * ) * - 55 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL COUNT ( * ) * - 55 AS col2
----
-55

query I rowsort
SELECT + 87 * + + 61
----
5307

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT ALL + COUNT( * ) * + 91
----
91

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL + COUNT ( * ) * + 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT DISTINCT COUNT( 55 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT COUNT ( 55 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT + 81 + COUNT( * ) col0
----
82

skipif mysql # not compatible
query I rowsort label-7256
SELECT + 81 + COUNT ( * ) col0
----
82

query II rowsort
SELECT ALL 81 AS col2, - 52
----
81
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7258
SELECT - CAST( + 70 AS SIGNED ) * + 45 * + COUNT( * ) + - CAST( - - 93 AS SIGNED ) AS col2
----
-3243

skipif mysql # not compatible
query I rowsort label-7258
SELECT - CAST ( + 70 AS INTEGER ) * + 45 * + COUNT ( * ) + - CAST ( - - 93 AS INTEGER ) AS col2
----
-3243

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT COALESCE ( - ( - 48 ), + 78 DIV - + 46 ) + - - 38 * + 1 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7259
SELECT COALESCE ( - ( - 48 ), + 78 / - + 46 ) + - - 38 * + 1 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT 8 * + SUM( DISTINCT 99 ) AS col2
----
792

skipif mysql # not compatible
query I rowsort label-7260
SELECT 8 * + SUM ( DISTINCT 99 ) AS col2
----
792

onlyif mysql # aggregate syntax: 
query II rowsort label-7261
SELECT 14 + + 8 - 44 - + 34 * 91 + + + COUNT( * ) + 72 * 86 AS col1, 14 * + + COUNT( * ) AS col2
----
3077
14

skipif mysql # not compatible
query II rowsort label-7261
SELECT 14 + + 8 - 44 - + 34 * 91 + + + COUNT ( * ) + 72 * 86 AS col1, 14 * + + COUNT ( * ) AS col2
----
3077
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7262
SELECT MIN( - 64 ) - 81 * + + 50 * + - 75 AS col1, 54 AS col0
----
303686
54

skipif mysql # not compatible
query II rowsort label-7262
SELECT MIN ( - 64 ) - 81 * + + 50 * + - 75 AS col1, 54 AS col0
----
303686
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7263
SELECT ALL 36 DIV 70 col1
----
0

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL 36 / 70 col1
----
0

query II rowsort
SELECT 58 + + - 75 + - + 15 AS col2, - 13
----
-32
-13

query I rowsort
SELECT ALL - 93 * 27 AS col2
----
-2511

query I rowsort
SELECT ALL + + ( + + 76 ) * + - 54 AS col2
----
-4104

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT ALL ( - + COALESCE ( 89, COUNT( * ) - + 92 ) ) * - COUNT( * ) + 85 + COUNT( * ) AS col2
----
175

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL ( - + COALESCE ( 89, COUNT ( * ) - + 92 ) ) * - COUNT ( * ) + 85 + COUNT ( * ) AS col2
----
175

query II rowsort
SELECT + + 60, - 28 AS col0
----
60
-28

query II rowsort
SELECT + 70, 85 * + - 89 * - 41 AS col0
----
70
310165

onlyif mysql # aggregate syntax: 
query II rowsort label-7270
SELECT ALL - NULLIF ( MIN( DISTINCT + - 22 ), 3 / + 63 ), 91 - + + 77 col0
----
22
14

skipif mysql # not compatible
query II rowsort label-7270
SELECT ALL - NULLIF ( MIN ( DISTINCT + - 22 ), 3 / + 63 ), 91 - + + 77 col0
----
22
14

query I rowsort
SELECT ALL + + 87 + + 42
----
129

query I rowsort
SELECT 6 * 5
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7273
SELECT + + ( - - 16 ) * + + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) + - - CASE + 67 WHEN - 67 - + 97 * - 47 * - 31 THEN - + 31 END col1, 45 AS col1
----
NULL
45

skipif mysql # not compatible
query II rowsort label-7273
SELECT + + ( - - 16 ) * + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) + - - CASE + 67 WHEN - 67 - + 97 * - 47 * - 31 THEN - + 31 END col1, 45 AS col1
----
NULL
45

query I rowsort
SELECT ALL - 33 + 29 + + 14 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT ALL - - 74 + + SUM( ALL + 82 ) col0
----
156

skipif mysql # not compatible
query I rowsort label-7275
SELECT ALL - - 74 + + SUM ( ALL + 82 ) col0
----
156

query I rowsort
SELECT ALL + - 61 * + + 16 + - 42 + + - 2 * - 55
----
-908

query I rowsort
SELECT DISTINCT 37 + - 64
----
-27

query I rowsort
SELECT ALL - - 11 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT 45 * + + ( + 29 ) * COUNT( * ) + + 94 * - 27
----
-1233

skipif mysql # not compatible
query I rowsort label-7279
SELECT 45 * + + ( + 29 ) * COUNT ( * ) + + 94 * - 27
----
-1233

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT ALL + 22 + + 97 - - - COUNT( * ) + ( + 77 ) + 34 * - 0
----
195

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL + 22 + + 97 - - - COUNT ( * ) + ( + 77 ) + 34 * - 0
----
195

query II rowsort
SELECT 28 col1, 33 + + ( + 36 )
----
28
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7282
SELECT 18 / MAX( 27 ) * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT 18 / MAX ( 27 ) * + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 17 col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7284
SELECT ALL - CASE + 30 WHEN + - SUM( 76 ) * + 4 THEN ( + 8 ) WHEN - COUNT( * ) * - COUNT( * ) * + 56 + 80 THEN NULL END AS col0, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7284
SELECT ALL - CASE + 30 WHEN + - SUM ( 76 ) * + 4 THEN ( + 8 ) WHEN - COUNT ( * ) * - COUNT ( * ) * + 56 + 80 THEN NULL END AS col0, CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7285
SELECT 22 AS col2, - 59 + CAST( + - NULLIF ( - + ( + 47 ), + NULLIF ( + NULLIF ( - 65, - + 14 ), - 41 + + ( 97 ) + 21 ) + + 38 - 77 / COUNT( * ) ) AS SIGNED )
----
22
-12

skipif mysql # not compatible
query II rowsort label-7285
SELECT 22 AS col2, - 59 + CAST ( + - NULLIF ( - + ( + 47 ), + NULLIF ( + NULLIF ( - 65, - + 14 ), - 41 + + ( 97 ) + 21 ) + + 38 - 77 / COUNT ( * ) ) AS INTEGER )
----
22
-12

query I rowsort
SELECT ALL + 51 * + 96 AS col1
----
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT ALL - ( - 82 ) - - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL - ( - 82 ) - - COUNT ( * )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7288
SELECT DISTINCT + 33 * - + COUNT( * ) * + NULLIF ( - + CAST( NULL AS SIGNED ), - 61 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT + 33 * - + COUNT ( * ) * + NULLIF ( - + CAST ( NULL AS INTEGER ), - 61 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7289
SELECT DISTINCT 19 AS col1, ( + 6 ) DIV - COUNT( * )
----
19
-6

skipif mysql # not compatible
query II rowsort label-7289
SELECT DISTINCT 19 AS col1, ( + 6 ) / - COUNT ( * )
----
19
-6

query II rowsort
SELECT ALL 72 col0, + 19 col0
----
72
19

onlyif mysql # aggregate syntax: 
query II rowsort label-7291
SELECT 17, COUNT( * ) * + + 3 * 18 AS col2
----
17
54

skipif mysql # not compatible
query II rowsort label-7291
SELECT 17, COUNT ( * ) * + + 3 * 18 AS col2
----
17
54

query I rowsort
SELECT 8 * 55 * + + NULLIF ( + CASE - + 83 WHEN - 97 + - 63 THEN 6 END, - + 62 )
----
NULL

query I rowsort
SELECT 72 * - ( + 7 ) AS col2
----
-504

query I rowsort
SELECT ALL + 52 * 68 + 83 AS col0
----
3619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7295
SELECT - + NULLIF ( + NULLIF ( - - CAST( NULL AS SIGNED ), - 86 ), + + MAX( ALL + + 55 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT - + NULLIF ( + NULLIF ( - - CAST ( NULL AS INTEGER ), - 86 ), + + MAX ( ALL + + 55 ) ) AS col0
----
NULL

query II rowsort
SELECT ALL 56 + + 36 col2, - 86
----
92
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7297
SELECT - COUNT( * ) * - 3 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-7297
SELECT - COUNT ( * ) * - 3 / 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT SUM( ALL - 17 ) - + 62 + ( - - 42 ) * + - 83 * - 59
----
205595

skipif mysql # not compatible
query I rowsort label-7298
SELECT SUM ( ALL - 17 ) - + 62 + ( - - 42 ) * + - 83 * - 59
----
205595

query II rowsort
SELECT 30 col0, + 65
----
30
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT COUNT( * ) * - + 86 * COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-7300
SELECT COUNT ( * ) * - + 86 * COUNT ( * ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT + 92 - - SUM( ALL - 25 )
----
67

skipif mysql # not compatible
query I rowsort label-7301
SELECT + 92 - - SUM ( ALL - 25 )
----
67

query I rowsort
SELECT - - 72 AS col1
----
72

query I rowsort
SELECT ALL + 37 + + 11 col2
----
48

query I rowsort
SELECT + 76 * 99
----
7524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7305
SELECT 21 * - 35 * CASE + + CAST( - 65 AS SIGNED ) WHEN - 92 THEN - COUNT( * ) / - COUNT( * ) WHEN 62 + 52 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7305
SELECT 21 * - 35 * CASE + + CAST ( - 65 AS INTEGER ) WHEN - 92 THEN - COUNT ( * ) / - COUNT ( * ) WHEN 62 + 52 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL 34 * - + 12 * SUM( + 99 ) + + - 88 + + 94 + + COUNT( * ) + - + 97 * + 1 - + 11 / + CASE - 38 WHEN 99 THEN + 69 + - 60 * - 9 ELSE NULL END * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL 34 * - + 12 * SUM ( + 99 ) + + - 88 + + 94 + + COUNT ( * ) + - + 97 * + 1 - + 11 / + CASE - 38 WHEN 99 THEN + 69 + - 60 * - 9 ELSE NULL END * 56
----
NULL

query I rowsort
SELECT DISTINCT + 87 * - + ( + 84 )
----
-7308

query I rowsort
SELECT ALL 55 * - 89 + - 65
----
-4960

onlyif mysql # aggregate syntax: 
query II rowsort label-7309
SELECT DISTINCT - - 81 AS col2, + COUNT( * )
----
81
1

skipif mysql # not compatible
query II rowsort label-7309
SELECT DISTINCT - - 81 AS col2, + COUNT ( * )
----
81
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7310
SELECT ALL CAST( 75 AS SIGNED ) * + 49 + CASE + ( - + 14 ) WHEN + + 59 * - + 72 THEN + 3 * - - 13 + 69 * 49 * - - 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL CAST ( 75 AS INTEGER ) * + 49 + CASE + ( - + 14 ) WHEN + + 59 * - + 72 THEN + 3 * - - 13 + 69 * 49 * - - 49 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7311
SELECT ALL - COUNT( * ) * 71 - + 54 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL - COUNT ( * ) * 71 - + 54 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT - COUNT( * ) + - + 8
----
-9

skipif mysql # not compatible
query I rowsort label-7312
SELECT - COUNT ( * ) + - + 8
----
-9

query I rowsort
SELECT + 63 * - - 65 + 17 * - + 44
----
3347

query II rowsort
SELECT 41 AS col1, - 37 AS col1
----
41
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7315
SELECT ( + ( + + 43 ) ) + + COUNT( * ) + MAX( - 2 ) + - 65 DIV 95 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-7315
SELECT ( + ( + + 43 ) ) + + COUNT ( * ) + MAX ( - 2 ) + - 65 / 95 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT 9 * - COUNT( * ) * - 38
----
342

skipif mysql # not compatible
query I rowsort label-7316
SELECT 9 * - COUNT ( * ) * - 38
----
342

query I rowsort
SELECT 27 * - + 56 * 41 * - 17 + + - 7 + - 6 AS col0
----
1053851

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT MIN( ALL - 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7318
SELECT MIN ( ALL - 66 ) AS col1
----
-66

query I rowsort
SELECT ALL - 91 - 64 + - 62
----
-217

onlyif mysql # aggregate syntax: 
query II rowsort label-7320
SELECT 99 * + CASE + 65 WHEN - COALESCE ( - 94, - 79 + + COUNT( * ), - - 10 ) * 31 + - 43 + 40 THEN NULL ELSE - - 89 END, + 76 AS col2
----
8811
76

skipif mysql # not compatible
query II rowsort label-7320
SELECT 99 * + CASE + 65 WHEN - COALESCE ( - 94, - 79 + + COUNT ( * ), - - 10 ) * 31 + - 43 + 40 THEN NULL ELSE - - 89 END, + 76 AS col2
----
8811
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT ALL - CASE + + ( - 64 ) WHEN - COALESCE ( + 93, + 44, + COUNT( * ) ) / - 48 - + 44 + - 55 THEN - 17 * - - CAST( - 16 AS SIGNED ) / + ( 23 ) + 95 * - COUNT( * ) WHEN + 26 THEN NULL WHEN + 71 + + MAX( ALL 0 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL - CASE + + ( - 64 ) WHEN - COALESCE ( + 93, + 44, + COUNT ( * ) ) / - 48 - + 44 + - 55 THEN - 17 * - - CAST ( - 16 AS INTEGER ) / + ( 23 ) + 95 * - COUNT ( * ) WHEN + 26 THEN NULL WHEN + 71 + + MAX ( ALL 0 ) THEN NULL END
----
NULL

query I rowsort
SELECT 18 + + ( - 57 ) AS col2
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-7323
SELECT - 34 DIV + + 87 AS col1, + 50 AS col1
----
0
50

skipif mysql # not compatible
query II rowsort label-7323
SELECT - 34 / + + 87 AS col1, + 50 AS col1
----
0
50

query II rowsort
SELECT - 46 + - 90 AS col0, 64 * + - 7 + + 27 AS col0
----
-136
-421

query I rowsort
SELECT - 52 * - - 78 AS col2
----
-4056

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT DISTINCT 69 * + COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT 69 * + COUNT ( * ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7327
SELECT ALL - 57 + + + NULLIF ( - - 41, + 41 / - + 85 + + + SUM( ALL - 97 ) ) - + - 24 AS col1, - 78 AS col2
----
8
-78

skipif mysql # not compatible
query II rowsort label-7327
SELECT ALL - 57 + + + NULLIF ( - - 41, + 41 / - + 85 + + + SUM ( ALL - 97 ) ) - + - 24 AS col1, - 78 AS col2
----
8
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7328
SELECT DISTINCT + COALESCE ( - + 85, - - COUNT( * ) + + + COALESCE ( + CAST( NULL AS SIGNED ), + + 21 * + 86 - + 67 ) * + - 5 * - COUNT( 97 ) * - - 17 * + - 2 * - 30 * + 33 * 69 ) + + 63
----
-22

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT + COALESCE ( - + 85, - - COUNT ( * ) + + + COALESCE ( + CAST ( NULL AS INTEGER ), + + 21 * + 86 - + 67 ) * + - 5 * - COUNT ( 97 ) * - - 17 * + - 2 * - 30 * + 33 * 69 ) + + 63
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7329
SELECT ALL + COUNT( * ) + + - 18, 4 DIV 6 * + 90 col2
----
-17
0

skipif mysql # not compatible
query II rowsort label-7329
SELECT ALL + COUNT ( * ) + + - 18, 4 / 6 * + 90 col2
----
-17
0

query I rowsort
SELECT - - 96 + - + 72 * - - 7 AS col0
----
-408

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7331
SELECT ALL + + CAST( 84 AS SIGNED ) + + 83 * 65 DIV 80 + + + 94 AS col1
----
245

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL + + CAST ( 84 AS INTEGER ) + + 83 * 65 / 80 + + + 94 AS col1
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT ALL - COUNT( + 3 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL - COUNT ( + 3 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7333
SELECT - + COALESCE ( + 99, - + 54 - - CAST( 32 AS SIGNED ), + - 68 + + 72 )
----
-99

skipif mysql # not compatible
query I rowsort label-7333
SELECT - + COALESCE ( + 99, - + 54 - - CAST ( 32 AS INTEGER ), + - 68 + + 72 )
----
-99

query I rowsort
SELECT - + 21 + - 41 + - 62 * - 97 AS col1
----
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT - - COUNT( * ) + - 74 * - 80 col1
----
5921

skipif mysql # not compatible
query I rowsort label-7335
SELECT - - COUNT ( * ) + - 74 * - 80 col1
----
5921

query I rowsort
SELECT - ( + 21 ) AS col2
----
-21

query I rowsort
SELECT ALL - + 95 + 46 + 33 AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7338
SELECT + COUNT( * ) - + + CAST( - ( + 8 ) AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-7338
SELECT + COUNT ( * ) - + + CAST ( - ( + 8 ) AS INTEGER )
----
9

query I rowsort
SELECT - 90 + - 3 * 6 + 28 + - 34 AS col2
----
-114

query I rowsort
SELECT + 60 - - + 94 * - 8
----
-692

query II rowsort
SELECT ALL + 49 + + 17, - 8 AS col1
----
66
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT - 13 * + + ( + - MAX( ALL - 4 ) ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-7342
SELECT - 13 * + + ( + - MAX ( ALL - 4 ) ) AS col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7343
SELECT DISTINCT - 58 * + 71 AS col0, 86 * + - CAST( - - 20 AS SIGNED )
----
-4118
-1720

skipif mysql # not compatible
query II rowsort label-7343
SELECT DISTINCT - 58 * + 71 AS col0, 86 * + - CAST ( - - 20 AS INTEGER )
----
-4118
-1720

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT - ( 22 ) * + - COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-7344
SELECT - ( 22 ) * + - COUNT ( * ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT ALL + SUM( + ( - + 96 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL + SUM ( + ( - + 96 ) )
----
-96

query I rowsort
SELECT + - 19 + + ( + 37 )
----
18

query I rowsort
SELECT ALL + - 14 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT + + COUNT( * ) + 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7348
SELECT + + COUNT ( * ) + 59 AS col0
----
60

query I rowsort
SELECT + - ( + 13 ) AS col2
----
-13

query I rowsort
SELECT DISTINCT + - 32
----
-32

query I rowsort
SELECT ALL + + 37 AS col0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7352
SELECT + 76 DIV - + ( - ( + - 15 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-7352
SELECT + 76 / - + ( - ( + - 15 ) )
----
-5

query I rowsort
SELECT + CASE 50 WHEN 19 * 13 THEN NULL WHEN + - 23 THEN - 51 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7354
SELECT DISTINCT + COUNT( * ) AS col0, - 96
----
1
-96

skipif mysql # not compatible
query II rowsort label-7354
SELECT DISTINCT + COUNT ( * ) AS col0, - 96
----
1
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7355
SELECT + NULLIF ( - COUNT( * ), 52 * + 13 ) DIV COUNT( * ) + - 95, + COUNT( * ) + + COUNT( * ) AS col1
----
-96
2

skipif mysql # not compatible
query II rowsort label-7355
SELECT + NULLIF ( - COUNT ( * ), 52 * + 13 ) / COUNT ( * ) + - 95, + COUNT ( * ) + + COUNT ( * ) AS col1
----
-96
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7356
SELECT DISTINCT 35 DIV + - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7356
SELECT DISTINCT 35 / + - 67 AS col1
----
0

query I rowsort
SELECT ALL 0 * + 1 AS col1
----
0

query I rowsort
SELECT + ( - + 91 ) AS col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7359
SELECT CASE + 26 WHEN + + NULLIF ( - COUNT( * ), - COUNT( * ) * + CAST( NULL AS SIGNED ) ) THEN + 86 ELSE 45 END
----
45

skipif mysql # not compatible
query I rowsort label-7359
SELECT CASE + 26 WHEN + + NULLIF ( - COUNT ( * ), - COUNT ( * ) * + CAST ( NULL AS INTEGER ) ) THEN + 86 ELSE 45 END
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL 64 * - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL 64 * - COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT - 92 * + ( 35 ) * - + 15 - - 33 + + + COUNT( * ) - - + COUNT( * ) * - 4 + - COUNT( * ) AS col1
----
48329

skipif mysql # not compatible
query I rowsort label-7361
SELECT - 92 * + ( 35 ) * - + 15 - - 33 + + + COUNT ( * ) - - + COUNT ( * ) * - 4 + - COUNT ( * ) AS col1
----
48329

query I rowsort
SELECT CASE + 59 WHEN - 13 THEN 46 WHEN + 30 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT + CASE - - 8 WHEN 87 + 99 / - + CASE + COALESCE ( - COUNT( DISTINCT + 78 ), + NULLIF ( - + 71, - 18 ) ) WHEN - 51 THEN NULL WHEN 32 THEN - ( - - COUNT( * ) ) + COUNT( * ) ELSE NULL END * 23 THEN - 28 / 35 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT + CASE - - 8 WHEN 87 + 99 / - + CASE + COALESCE ( - COUNT ( DISTINCT + 78 ), + NULLIF ( - + 71, - 18 ) ) WHEN - 51 THEN NULL WHEN 32 THEN - ( - - COUNT ( * ) ) + COUNT ( * ) ELSE NULL END * 23 THEN - 28 / 35 END AS col2
----
NULL

query I rowsort
SELECT + 5 - 36 * - + 83
----
2993

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7365
SELECT + 23 AS col0, - 1 * + 60 DIV + + COALESCE ( - 53, + NULLIF ( - + CAST( NULL AS SIGNED ), + 23 ) + + 98 ) AS col0
----
23
1

skipif mysql # not compatible
query II rowsort label-7365
SELECT + 23 AS col0, - 1 * + 60 / + + COALESCE ( - 53, + NULLIF ( - + CAST ( NULL AS INTEGER ), + 23 ) + + 98 ) AS col0
----
23
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7366
SELECT + 92 + - + COUNT( * ) DIV - 4 * + 15
----
92

skipif mysql # not compatible
query I rowsort label-7366
SELECT + 92 + - + COUNT ( * ) / - 4 * + 15
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT MIN( ALL + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-7367
SELECT MIN ( ALL + 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT - - NULLIF ( - - 14, + + CASE MAX( - - 22 ) WHEN + - ( 62 ) THEN + 35 + - 25 WHEN - - COUNT( * ) THEN 52 * + + 86 END ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7368
SELECT - - NULLIF ( - - 14, + + CASE MAX ( - - 22 ) WHEN + - ( 62 ) THEN + 35 + - 25 WHEN - - COUNT ( * ) THEN 52 * + + 86 END ) AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7369
SELECT - CAST( - CASE + ( + + COUNT( * ) ) WHEN - - COUNT( * ) * - - 41 THEN NULL WHEN + - 66 THEN + 83 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT - CAST ( - CASE + ( + + COUNT ( * ) ) WHEN - - COUNT ( * ) * - - 41 THEN NULL WHEN + - 66 THEN + 83 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT + 61 * - 26 - + - 39 + + - 4 * MIN( - 50 ) AS col1
----
-1347

skipif mysql # not compatible
query I rowsort label-7370
SELECT + 61 * - 26 - + - 39 + + - 4 * MIN ( - 50 ) AS col1
----
-1347

query I rowsort
SELECT + 75 * + + 37 - + - 21 AS col2
----
2796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7372
SELECT - COALESCE ( + 65, - - MIN( + 25 ) ) + - CAST( NULL AS SIGNED ) * + 29 AS col0, ( + - 71 )
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-7372
SELECT - COALESCE ( + 65, - - MIN ( + 25 ) ) + - CAST ( NULL AS INTEGER ) * + 29 AS col0, ( + - 71 )
----
NULL
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT DISTINCT - + 42 + + 77 * - 95 + + 16 + + 30 + - CAST( + 56 AS SIGNED )
----
-7367

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT - + 42 + + 77 * - 95 + + 16 + + 30 + - CAST ( + 56 AS INTEGER )
----
-7367

query II rowsort
SELECT - 27 AS col2, 9 + + 10
----
-27
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT ALL 58 + - 25 + + 36 + + - 48 * COUNT( * ) * - 18
----
933

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL 58 + - 25 + + 36 + + - 48 * COUNT ( * ) * - 18
----
933

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT ALL - ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL - ( - + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7377
SELECT + 61 AS col2, 59 * COUNT( * )
----
61
59

skipif mysql # not compatible
query II rowsort label-7377
SELECT + 61 AS col2, 59 * COUNT ( * )
----
61
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT - 77 - 47 * - ( 99 ) * + COUNT( * ) AS col1
----
4576

skipif mysql # not compatible
query I rowsort label-7378
SELECT - 77 - 47 * - ( 99 ) * + COUNT ( * ) AS col1
----
4576

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT - MAX( ALL + + 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-7379
SELECT - MAX ( ALL + + 97 ) AS col1
----
-97

query I rowsort
SELECT - 65 * 7 * - - 64 AS col1
----
-29120

query I rowsort
SELECT - 4 + - + 60 AS col0
----
-64

query II rowsort
SELECT 39, 91 AS col0
----
39
91

query I rowsort
SELECT ALL - + 75 * - 0 AS col2
----
0

query I rowsort
SELECT - + 96 * + 52 AS col1
----
-4992

query I rowsort
SELECT DISTINCT + ( - ( 64 ) ) AS col0
----
-64

query I rowsort
SELECT - 89 - - 35 col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT ALL - COUNT( DISTINCT 1 ) * 48
----
-48

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL - COUNT ( DISTINCT 1 ) * 48
----
-48

query I rowsort
SELECT 64 * - - 88 - + - 1
----
5633

query I rowsort
SELECT DISTINCT + 74 * - - 39
----
2886

query I rowsort
SELECT 92 * 84 * - 18
----
-139104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7391
SELECT - 88 * - NULLIF ( - + 49, + - 98 ) + - CASE CASE + - 31 WHEN - 43 THEN - COUNT( - 76 ) + + 65 WHEN + 64 * - 85 * + - 93 THEN NULL ELSE - + COUNT( ALL + CAST( 81 AS SIGNED ) ) END WHEN COUNT( + 72 ) THEN - 71 WHEN 16 * 94 + ( 37 ) / - 84 THEN 98 * + CASE 95 WHEN - 28 * - COUNT( * ) THEN 71 * CAST( COUNT( * ) AS SIGNED ) + CASE 81 WHEN + 90 + COUNT( * ) THEN - 85 ELSE NULL END WHEN COUNT( * ) + - 72 THEN NULL ELSE 45 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT - 88 * - NULLIF ( - + 49, + - 98 ) + - CASE CASE + - 31 WHEN - 43 THEN - COUNT ( - 76 ) + + 65 WHEN + 64 * - 85 * + - 93 THEN NULL ELSE - + COUNT ( ALL + CAST ( 81 AS INTEGER ) ) END WHEN COUNT ( + 72 ) THEN - 71 WHEN 16 * 94 + ( 37 ) / - 84 THEN 98 * + CASE 95 WHEN - 28 * - COUNT ( * ) THEN 71 * CAST ( COUNT ( * ) AS INTEGER ) + CASE 81 WHEN + 90 + COUNT ( * ) THEN - 85 ELSE NULL END WHEN COUNT ( * ) + - 72 THEN NULL ELSE 45 END END
----
NULL

query I rowsort
SELECT ALL - 1 + 94 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT 8 + MAX( ALL + 32 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7393
SELECT 8 + MAX ( ALL + 32 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT - 25 * - + 0 + + - 74 + + NULLIF ( COUNT( * ), - - 12 )
----
-73

skipif mysql # not compatible
query I rowsort label-7394
SELECT - 25 * - + 0 + + - 74 + + NULLIF ( COUNT ( * ), - - 12 )
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7395
SELECT COUNT( * ) DIV 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7395
SELECT COUNT ( * ) / 57 AS col1
----
0

query I rowsort
SELECT ALL + 56 + - - 50
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7397
SELECT ALL - NULLIF ( + 18, - ( + - 51 ) * - + 96 - + + COUNT( * ) + + 35 + 36 * 14 / 14 + + COUNT( * ) + 47 + 20 ) + 81 + - CAST( + SUM( ALL - - 81 ) AS SIGNED ) * 87 * + 18 * 78 + 2 AS col1
----
-9893923

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - NULLIF ( + 18, - ( + - 51 ) * - + 96 - + + COUNT ( * ) + + 35 + 36 * 14 / 14 + + COUNT ( * ) + 47 + 20 ) + 81 + - CAST ( + SUM ( ALL - - 81 ) AS INTEGER ) * 87 * + 18 * 78 + 2 AS col1
----
-9893923

query I rowsort
SELECT ALL 69 + 54 AS col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT COALESCE ( - - COUNT( * ), - 99 * ( CASE - 87 WHEN COUNT( * ) THEN NULL ELSE COUNT( * ) END ) * + + NULLIF ( - + 24, MAX( - 98 ) - + + ( + COUNT( * ) ) ) + + - 22 ) * - 47
----
-47

skipif mysql # not compatible
query I rowsort label-7399
SELECT COALESCE ( - - COUNT ( * ), - 99 * ( CASE - 87 WHEN COUNT ( * ) THEN NULL ELSE COUNT ( * ) END ) * + + NULLIF ( - + 24, MAX ( - 98 ) - + + ( + COUNT ( * ) ) ) + + - 22 ) * - 47
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7400
SELECT ALL + ( - + ( + 41 ) ) DIV + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL + ( - + ( + 41 ) ) / + COUNT ( * )
----
-41

query I rowsort
SELECT ALL 45 + - - 46 AS col2
----
91

query I rowsort
SELECT 50 * - 74 AS col0
----
-3700

query I rowsort
SELECT + 59 + - 44 AS col1
----
15

query I rowsort
SELECT + 28 * 72
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT ALL COUNT( - 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL COUNT ( - 46 ) AS col1
----
1

query I rowsort
SELECT ALL ( + 12 )
----
12

query I rowsort
SELECT ALL 47 - 70 * - 23
----
1657

query I rowsort
SELECT + 86 * - + 84 * - 75 AS col0
----
541800

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT DISTINCT MIN( + + 16 ) - 4
----
12

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT MIN ( + + 16 ) - 4
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7410
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col2, 4
----
1
4

skipif mysql # not compatible
query II rowsort label-7410
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col2, 4
----
1
4

query I rowsort
SELECT - 8 + 61 + + 37
----
90

query I rowsort
SELECT 96 + 2
----
98

query I rowsort
SELECT - 75 + 76 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7414
SELECT DISTINCT - NULLIF ( 49, + COUNT( * ) / + 40 ) col0, + 24 * + 79 AS col0
----
-49
1896

skipif mysql # not compatible
query II rowsort label-7414
SELECT DISTINCT - NULLIF ( 49, + COUNT ( * ) / + 40 ) col0, + 24 * + 79 AS col0
----
-49
1896

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT CASE + 39 WHEN 81 THEN + 59 WHEN + 3 / + 27 THEN - 11 ELSE SUM( ALL 23 ) END + + 21 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7415
SELECT CASE + 39 WHEN 81 THEN + 59 WHEN + 3 / + 27 THEN - 11 ELSE SUM ( ALL 23 ) END + + 21 AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7416
SELECT + 58 + CASE - - 78 WHEN COUNT( * ) * - 79 THEN + - CAST( NULL AS DECIMAL ) WHEN - 41 + 80 + + 91 THEN NULL WHEN - + COUNT( * ) THEN NULL END + 68 + + CASE + CASE - NULLIF ( + 94, + 95 * - - 37 ) WHEN - + CASE + ( - 3 ) WHEN - ( + 17 ) + 69 THEN 96 END THEN NULL ELSE NULLIF ( 68, + 67 ) END WHEN + 78 THEN - 53 * - MIN( ALL 83 * 53 ) WHEN 4 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT + 58 + CASE - - 78 WHEN COUNT ( * ) * - 79 THEN + - CAST ( NULL AS REAL ) WHEN - 41 + 80 + + 91 THEN NULL WHEN - + COUNT ( * ) THEN NULL END + 68 + + CASE + CASE - NULLIF ( + 94, + 95 * - - 37 ) WHEN - + CASE + ( - 3 ) WHEN - ( + 17 ) + 69 THEN 96 END THEN NULL ELSE NULLIF ( 68, + 67 ) END WHEN + 78 THEN - 53 * - MIN ( ALL 83 * 53 ) WHEN 4 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT ALL SUM( - 70 ) * 33
----
-2310

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL SUM ( - 70 ) * 33
----
-2310

query I rowsort
SELECT 18 + 91 + - 94 + - 31
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7419
SELECT DISTINCT - CASE + - 38 WHEN + - NULLIF ( + 69, - CAST( NULL AS SIGNED ) ) THEN NULL ELSE + CASE + COALESCE ( - 9, + 10 ) WHEN 52 + - 54 / 80 THEN 4 END * 77 END + + MIN( DISTINCT + + 15 ) - 55 * 66 * 19 - + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT - CASE + - 38 WHEN + - NULLIF ( + 69, - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + CASE + COALESCE ( - 9, + 10 ) WHEN 52 + - 54 / 80 THEN 4 END * 77 END + + MIN ( DISTINCT + + 15 ) - 55 * 66 * 19 - + 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ALL - COUNT( * ) + 44 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL - COUNT ( * ) + 44 AS col2
----
43

query I rowsort
SELECT DISTINCT - ( - 16 ) + - - 11 - - 61 - + 48
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7422
SELECT DISTINCT + ( - MAX( DISTINCT - - NULLIF ( - + 15, + 53 ) ) ) * 46, - 80 + + 20 - COUNT( * ) + - - 67 * 68 DIV - CAST( 10 AS SIGNED ) + + 21 + 38 AS col2
----
690
-457

skipif mysql # not compatible
query II rowsort label-7422
SELECT DISTINCT + ( - MAX ( DISTINCT - - NULLIF ( - + 15, + 53 ) ) ) * 46, - 80 + + 20 - COUNT ( * ) + - - 67 * 68 / - CAST ( 10 AS INTEGER ) + + 21 + 38 AS col2
----
690
-457

query I rowsort
SELECT 27 * - + 76 AS col2
----
-2052

query I rowsort
SELECT DISTINCT + 16 * + 40
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT DISTINCT + COUNT( * ) * - - 8
----
8

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT + COUNT ( * ) * - - 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT MIN( ALL + + 8 ) * - - 81
----
648

skipif mysql # not compatible
query I rowsort label-7426
SELECT MIN ( ALL + + 8 ) * - - 81
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT + COALESCE ( + 79, 16 ) * - 26 + + 23 * 17 + + NULLIF ( - ( - COUNT( - 30 ) ), + ( 85 ) + + 42 ) AS col0
----
-1662

skipif mysql # not compatible
query I rowsort label-7427
SELECT + COALESCE ( + 79, 16 ) * - 26 + + 23 * 17 + + NULLIF ( - ( - COUNT ( - 30 ) ), + ( 85 ) + + 42 ) AS col0
----
-1662

query I rowsort
SELECT DISTINCT + ( - 65 ) + 15 AS col0
----
-50

query I rowsort
SELECT - 45 * - - 41 - + 5
----
-1850

query I rowsort
SELECT + CASE - - 23 WHEN - - 29 * + ( NULLIF ( 24, + 77 * 50 ) ) + + 89 THEN NULL WHEN 87 THEN + 8 + - 98 + - 26 + - 1 + + + 79 * + 2 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT ALL + + 21 - 18 + CAST( NULL AS SIGNED ) * + - 8 * 40 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL + + 21 - 18 + CAST ( NULL AS INTEGER ) * + - 8 * 40 * 48
----
NULL

query I rowsort
SELECT DISTINCT - - ( 40 )
----
40

query I rowsort
SELECT ALL - 29 - + 68
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT - MAX( 93 ) * + - 75 AS col2
----
6975

skipif mysql # not compatible
query I rowsort label-7434
SELECT - MAX ( 93 ) * + - 75 AS col2
----
6975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7435
SELECT DISTINCT - - COUNT( * ) DIV + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT - - COUNT ( * ) / + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT 34 - COUNT( * ) * + 13
----
21

skipif mysql # not compatible
query I rowsort label-7436
SELECT 34 - COUNT ( * ) * + 13
----
21

query II rowsort
SELECT + 45 AS col2, 12 * - 11
----
45
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT - SUM( - 79 ) * - 6 + 98 AS col0
----
-376

skipif mysql # not compatible
query I rowsort label-7438
SELECT - SUM ( - 79 ) * - 6 + 98 AS col0
----
-376

onlyif mysql # aggregate syntax: 
query II rowsort label-7439
SELECT COUNT( * ) * + ( + NULLIF ( 51, 69 * - - 72 ) ) AS col1, + CASE + + MAX( - 59 ) WHEN + - 1 + - COUNT( * ) THEN - + ( + - 30 ) + - + 93 * - COUNT( * ) * ( 64 ) WHEN - + 89 * + - 46 THEN NULL ELSE NULL END AS col0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-7439
SELECT COUNT ( * ) * + ( + NULLIF ( 51, 69 * - - 72 ) ) AS col1, + CASE + + MAX ( - 59 ) WHEN + - 1 + - COUNT ( * ) THEN - + ( + - 30 ) + - + 93 * - COUNT ( * ) * ( 64 ) WHEN - + 89 * + - 46 THEN NULL ELSE NULL END AS col0
----
51
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7440
SELECT + COALESCE ( + 38, + - 40 DIV - 25 + - 92 ) + ( + 95 ) DIV + 28 AS col0, 56 AS col0
----
41
56

skipif mysql # not compatible
query II rowsort label-7440
SELECT + COALESCE ( + 38, + - 40 / - 25 + - 92 ) + ( + 95 ) / + 28 AS col0, 56 AS col0
----
41
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7441
SELECT CAST( - COUNT( * ) AS SIGNED ) * - 53 col1
----
53

skipif mysql # not compatible
query I rowsort label-7441
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - 53 col1
----
53

query II rowsort
SELECT - 30, - 57 + 62 + + 60 * + - 47 + + 83 AS col2
----
-30
-2732

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT DISTINCT 65 * + + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT 65 * + + COUNT ( * )
----
65

query I rowsort
SELECT ( 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT DISTINCT COALESCE ( + 61, ( + ( ( - - 28 ) ) ), - SUM( DISTINCT + - ( - + NULLIF ( - 25, + - 92 ) ) ), + 4 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT COALESCE ( + 61, ( + ( ( - - 28 ) ) ), - SUM ( DISTINCT + - ( - + NULLIF ( - 25, + - 92 ) ) ), + 4 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT DISTINCT - SUM( - 35 ) + - 6
----
29

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT - SUM ( - 35 ) + - 6
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT - NULLIF ( COUNT( + + 48 ), + + CASE - + ( + COUNT( * ) ) WHEN + - ( 44 ) THEN - MIN( + - 51 ) WHEN - ( - MIN( ALL + + 20 ) ) THEN NULL ELSE + 59 END )
----
-1

skipif mysql # not compatible
query I rowsort label-7447
SELECT - NULLIF ( COUNT ( + + 48 ), + + CASE - + ( + COUNT ( * ) ) WHEN + - ( 44 ) THEN - MIN ( + - 51 ) WHEN - ( - MIN ( ALL + + 20 ) ) THEN NULL ELSE + 59 END )
----
-1

query I rowsort
SELECT ALL 47 + - 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT - NULLIF ( COUNT( * ), 32 * - 92 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7449
SELECT - NULLIF ( COUNT ( * ), 32 * - 92 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT - COUNT( * ) / - - ( CASE - - 80 WHEN 55 THEN NULL WHEN + - 39 THEN - 79 * 99 + - 5 ELSE NULL END ) * + MAX( DISTINCT - 12 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT - COUNT ( * ) / - - ( CASE - - 80 WHEN 55 THEN NULL WHEN + - 39 THEN - 79 * 99 + - 5 ELSE NULL END ) * + MAX ( DISTINCT - 12 ) AS col2
----
NULL

query I rowsort
SELECT ALL 41 * - 83 AS col1
----
-3403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7452
SELECT ALL COALESCE ( + - 36, + 10 ) + - + 12 * - 13 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL COALESCE ( + - 36, + 10 ) + - + 12 * - 13 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 6 + 4 AS col0
----
10

query II rowsort
SELECT DISTINCT 70 / 29 / + CASE - 27 WHEN - - 86 * 98 * 93 - 19 + + 60 + + + 36 THEN + - 67 * + - ( 39 ) + + 17 END * + 48 + + 76 AS col1, 73 + - 34
----
NULL
39

query I rowsort
SELECT ALL + 76 * + + 77 + + + 7
----
5859

query I rowsort
SELECT + 99 * - 57 AS col0
----
-5643

query I rowsort
SELECT ALL 5 * + 7 * - 87
----
-3045

query I rowsort
SELECT - 76 - 65 AS col1
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT + NULLIF ( - 70, COUNT( * ) + 18 - + AVG ( + - 25 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-7459
SELECT + NULLIF ( - 70, COUNT ( * ) + 18 - + AVG ( + - 25 ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT NULLIF ( + 17, - - CASE + + COALESCE ( - + 41, + - 74 + - AVG ( ALL - - 9 ) * + 45 * 70 + - - COUNT( * ), - COUNT( * ) ) WHEN - 21 THEN 1 / + 68 WHEN COUNT( * ) + 28 THEN NULL END - - + 12 * + + MIN( + 33 ) ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7460
SELECT NULLIF ( + 17, - - CASE + + COALESCE ( - + 41, + - 74 + - AVG ( ALL - - 9 ) * + 45 * 70 + - - COUNT ( * ), - COUNT ( * ) ) WHEN - 21 THEN 1 / + 68 WHEN COUNT ( * ) + 28 THEN NULL END - - + 12 * + + MIN ( + 33 ) ) AS col1
----
17

query I rowsort
SELECT ALL - 49 * - + 14 * - - 0 - + 96 col1
----
-96

query I rowsort
SELECT + 40 * + 4 AS col0
----
160

query I rowsort
SELECT + 16 + + 18
----
34

query I rowsort
SELECT NULLIF ( + 66, + 98 )
----
66

query I rowsort
SELECT NULLIF ( - 88, - 50 ) col0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7466
SELECT ALL + SUM( + 26 ) * - 33 - - 24 + + 22 * 19 DIV 65
----
-828

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL + SUM ( + 26 ) * - 33 - - 24 + + 22 * 19 / 65
----
-828

query I rowsort
SELECT DISTINCT + 91 col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7468
SELECT DISTINCT + MAX( + + 42 ) * + 32 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT + MAX ( + + 42 ) * + 32 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL + 69 * + + ( 52 ) * - - COUNT( * ) * 4 - + 78
----
14274

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL + 69 * + + ( 52 ) * - - COUNT ( * ) * 4 - + 78
----
14274

query I rowsort
SELECT + - 10 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-7471
SELECT ALL + - COUNT( * ), - 91 AS col0
----
-1
-91

skipif mysql # not compatible
query II rowsort label-7471
SELECT ALL + - COUNT ( * ), - 91 AS col0
----
-1
-91

query I rowsort
SELECT - CASE + AVG ( - + 34 ) WHEN - 80 THEN - ( - 63 ) END + - 55 + + 26 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 30 * 2 * - 92 col0
----
5520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7474
SELECT - - 92 / + ( CAST( NULL AS SIGNED ) ) * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7474
SELECT - - 92 / + ( CAST ( NULL AS INTEGER ) ) * 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT - - 86 * - 43 / - CAST( 28 AS SIGNED ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7475
SELECT - - 86 * - 43 / - CAST ( 28 AS INTEGER ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 57 + - 35 col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7477
SELECT ALL 13 AS col1, ( + CAST( NULL AS SIGNED ) ) * 52 - + 2 AS col0
----
13
NULL

skipif mysql # not compatible
query II rowsort label-7477
SELECT ALL 13 AS col1, ( + CAST ( NULL AS INTEGER ) ) * 52 - + 2 AS col0
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT DISTINCT MAX( ( 22 ) )
----
22

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT MAX ( ( 22 ) )
----
22

query II rowsort
SELECT - 25 AS col0, 36
----
-25
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT - - COALESCE ( ( - MAX( + + 36 ) ), - + 52 )
----
-36

skipif mysql # not compatible
query I rowsort label-7480
SELECT - - COALESCE ( ( - MAX ( + + 36 ) ), - + 52 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT DISTINCT ( + + COUNT( * ) ) * + 39 - 37 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT ( + + COUNT ( * ) ) * + 39 - 37 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT - 30 + 17 + - + 94 + + 92 + + COUNT( * ) * - COALESCE ( + + SUM( DISTINCT + 21 ), + 26, - 27 + + 52 * 52, - 10 * + + 13 * COUNT( * ) - - 71, + + SUM( + 41 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-7482
SELECT - 30 + 17 + - + 94 + + 92 + + COUNT ( * ) * - COALESCE ( + + SUM ( DISTINCT + 21 ), + 26, - 27 + + 52 * 52, - 10 * + + 13 * COUNT ( * ) - - 71, + + SUM ( + 41 ) )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-7483
SELECT + 36 + NULLIF ( 68, - + COUNT( - + 98 ) / + MIN( 77 ) - - 94 ), - 91 AS col2
----
104
-91

skipif mysql # not compatible
query II rowsort label-7483
SELECT + 36 + NULLIF ( 68, - + COUNT ( - + 98 ) / + MIN ( 77 ) - - 94 ), - 91 AS col2
----
104
-91

query II rowsort
SELECT - 6 * 59, 10 + - + 76 AS col2
----
-354
-66

query II rowsort
SELECT DISTINCT ( + + 44 ), + 9 * + NULLIF ( + 50, - - 87 ) AS col0
----
44
450

query II rowsort
SELECT DISTINCT - 61 * - 15 AS col0, 82 + + 90 AS col1
----
915
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7487
SELECT ALL CASE - 9 WHEN - - 2 THEN NULL WHEN + + 6 THEN 40 + 8 ELSE + + 23 + ( - CASE + ( ( 84 ) ) WHEN + 30 * COALESCE ( 89, 78 * - 31 / - 73 * + + 62 + + COUNT( * ) - + AVG ( - + CAST( COALESCE ( + ( ( CAST( NULL AS DECIMAL ) ) ), - 50 + - ( - 34 ) ) AS SIGNED ) ) * 92, - COUNT( * ) ) * + COUNT( * ) THEN - 84 WHEN - 8 THEN NULL WHEN 50 + 60 THEN 63 ELSE 88 END ) END + 48 * - 44
----
-2177

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL CASE - 9 WHEN - - 2 THEN NULL WHEN + + 6 THEN 40 + 8 ELSE + + 23 + ( - CASE + ( ( 84 ) ) WHEN + 30 * COALESCE ( 89, 78 * - 31 / - 73 * + + 62 + + COUNT ( * ) - + AVG ( - + CAST ( COALESCE ( + ( ( CAST ( NULL AS REAL ) ) ), - 50 + - ( - 34 ) ) AS INTEGER ) ) * 92, - COUNT ( * ) ) * + COUNT ( * ) THEN - 84 WHEN - 8 THEN NULL WHEN 50 + 60 THEN 63 ELSE 88 END ) END + 48 * - 44
----
-2177

query I rowsort
SELECT ALL 64 * + 61 * - 4
----
-15616

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT + 76 + COUNT( * ) * + COUNT( * ) * + 69 * + CASE AVG ( DISTINCT + 48 ) WHEN + 11 * 37 - + 65 * + NULLIF ( - 31, COUNT( * ) + + 10 ) - - 6 + - ( + - 7 ) THEN + + 13 ELSE - NULLIF ( - COUNT( * ), - 54 / + 3 - + 81 ) * 4 END
----
352

skipif mysql # not compatible
query I rowsort label-7489
SELECT + 76 + COUNT ( * ) * + COUNT ( * ) * + 69 * + CASE AVG ( DISTINCT + 48 ) WHEN + 11 * 37 - + 65 * + NULLIF ( - 31, COUNT ( * ) + + 10 ) - - 6 + - ( + - 7 ) THEN + + 13 ELSE - NULLIF ( - COUNT ( * ), - 54 / + 3 - + 81 ) * 4 END
----
352

query I rowsort
SELECT ALL ( 59 ) - 74 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7491
SELECT + CAST( - 81 AS SIGNED ) AS col1, + 5 * 18 - ( - + 83 ) * COUNT( * ) AS col1
----
-81
173

skipif mysql # not compatible
query II rowsort label-7491
SELECT + CAST ( - 81 AS INTEGER ) AS col1, + 5 * 18 - ( - + 83 ) * COUNT ( * ) AS col1
----
-81
173

onlyif mysql # DIV for integer division: 
query II rowsort label-7492
SELECT ALL 52 DIV - - 46 AS col0, + 11 AS col2
----
1
11

skipif mysql # not compatible
query II rowsort label-7492
SELECT ALL 52 / - - 46 AS col0, + 11 AS col2
----
1
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT + ( + COALESCE ( - COUNT( * ), + + 30 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7493
SELECT + ( + COALESCE ( - COUNT ( * ), + + 30 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7494
SELECT CAST( 56 AS SIGNED ), COUNT( * ) - + 43 AS col2
----
56
-42

skipif mysql # not compatible
query II rowsort label-7494
SELECT CAST ( 56 AS INTEGER ), COUNT ( * ) - + 43 AS col2
----
56
-42

query I rowsort
SELECT DISTINCT + 91 AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7496
SELECT ALL COUNT( * ) DIV + 60 col0
----
0

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL COUNT ( * ) / + 60 col0
----
0

query I rowsort
SELECT ALL + 8 * - 40 * 83 AS col0
----
-26560

query I rowsort
SELECT + ( - 40 ) * + 86 AS col0
----
-3440

query I rowsort
SELECT ALL 13 * + - 80 * + + 52 col2
----
-54080

query I rowsort
SELECT ALL + ( - - 13 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT + COUNT( * ) * - COUNT( * ) * + 75 * - - 52 + - 81 AS col0
----
-3981

skipif mysql # not compatible
query I rowsort label-7501
SELECT + COUNT ( * ) * - COUNT ( * ) * + 75 * - - 52 + - 81 AS col0
----
-3981

query I rowsort
SELECT + - 96 * 76 AS col0
----
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT - - 90 * 35 + 53 + + COUNT( * )
----
3204

skipif mysql # not compatible
query I rowsort label-7503
SELECT - - 90 * 35 + 53 + + COUNT ( * )
----
3204

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT - CASE + - 77 WHEN + SUM( ALL - 51 ) THEN + 79 * 23 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7504
SELECT - CASE + - 77 WHEN + SUM ( ALL - 51 ) THEN + 79 * 23 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7505
SELECT DISTINCT + - ( - CAST( NULL AS SIGNED ) ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7505
SELECT DISTINCT + - ( - CAST ( NULL AS INTEGER ) ), COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT 46 * - 43 - - + SUM( DISTINCT + - 60 ) AS col0
----
-2038

skipif mysql # not compatible
query I rowsort label-7506
SELECT 46 * - 43 - - + SUM ( DISTINCT + - 60 ) AS col0
----
-2038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7507
SELECT + NULLIF ( + 96, - 4 + - CAST( NULL AS SIGNED ) ) * - COUNT( DISTINCT + 54 )
----
-96

skipif mysql # not compatible
query I rowsort label-7507
SELECT + NULLIF ( + 96, - 4 + - CAST ( NULL AS INTEGER ) ) * - COUNT ( DISTINCT + 54 )
----
-96

query I rowsort
SELECT ALL + + 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT DISTINCT 87 * 14 + - NULLIF ( - + COUNT( ALL - 81 ), 1 + - + 3 )
----
1219

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT 87 * 14 + - NULLIF ( - + COUNT ( ALL - 81 ), 1 + - + 3 )
----
1219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7510
SELECT ALL + + COALESCE ( - - COUNT( * ), - - 58 * 66, + - 10 ) + + NULLIF ( - + ( + + 34 ), - 58 + - - 86 * + ( - + CAST( NULL AS SIGNED ) ) * - + COUNT( * ) / - 14 + 72 ), - 85 * 66 * - - ( + SUM( 19 ) ) + + 94 AS col0
----
-33
-106496

skipif mysql # not compatible
query II rowsort label-7510
SELECT ALL + + COALESCE ( - - COUNT ( * ), - - 58 * 66, + - 10 ) + + NULLIF ( - + ( + + 34 ), - 58 + - - 86 * + ( - + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) / - 14 + 72 ), - 85 * 66 * - - ( + SUM ( 19 ) ) + + 94 AS col0
----
-33
-106496

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL - - 74 * - - ( MAX( DISTINCT CASE - ( - 65 ) WHEN + 6 THEN - 62 WHEN + 82 THEN NULL END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL - - 74 * - - ( MAX ( DISTINCT CASE - ( - 65 ) WHEN + 6 THEN - 62 WHEN + 82 THEN NULL END ) ) AS col1
----
NULL

query I rowsort
SELECT 83 * 6 AS col0
----
498

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL + + SUM( ALL 13 ) + + 59
----
72

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL + + SUM ( ALL 13 ) + + 59
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7514
SELECT 18 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-7514
SELECT 18 / + 82
----
0

query I rowsort
SELECT ALL - 2 + - 77
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-7516
SELECT ALL 96 col1, + ( - 22 ) + COUNT( + + 29 ) AS col1
----
96
-21

skipif mysql # not compatible
query II rowsort label-7516
SELECT ALL 96 col1, + ( - 22 ) + COUNT ( + + 29 ) AS col1
----
96
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7517
SELECT COUNT( * ) - + 13 + + 71 AS col1, COUNT( * ), - 97 + + CAST( + + 5 AS SIGNED ) AS col2
----
59
1
-92

skipif mysql # not compatible
query III rowsort label-7517
SELECT COUNT ( * ) - + 13 + + 71 AS col1, COUNT ( * ), - 97 + + CAST ( + + 5 AS INTEGER ) AS col2
----
59
1
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7518
SELECT 37 * - + 63 DIV COUNT( * )
----
-2331

skipif mysql # not compatible
query I rowsort label-7518
SELECT 37 * - + 63 / COUNT ( * )
----
-2331

query I rowsort
SELECT DISTINCT - 57 - ( - + CASE + 24 WHEN - 13 THEN - NULLIF ( + 95, - 29 * + - 95 * + 8 ) END ) AS col1
----
NULL

query I rowsort
SELECT 17 + + + 17
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ALL - NULLIF ( - - 68, - - 95 ) - - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL - NULLIF ( - - 68, - - 95 ) - - COUNT ( * ) AS col2
----
-67

query I rowsort
SELECT 23 * - 30 AS col2
----
-690

query I rowsort
SELECT 27 * - ( - 23 )
----
621

query II rowsort
SELECT - 61 AS col2, 96 col0
----
-61
96

query I rowsort
SELECT 33 + CASE + + 40 WHEN + 26 * - 99 THEN 61 + + + ( - 7 ) WHEN - - 45 THEN + + ( - 33 ) ELSE NULL END + - 99 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7526
SELECT DISTINCT 65, - COUNT( ALL - ( - CAST( NULL AS SIGNED ) ) ) AS col1
----
65
0

skipif mysql # not compatible
query II rowsort label-7526
SELECT DISTINCT 65, - COUNT ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) AS col1
----
65
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT ALL - 12 * - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL - 12 * - COUNT ( * )
----
12

query I rowsort
SELECT 43 + + 62
----
105

query I rowsort
SELECT 78 * - 22
----
-1716

query I rowsort
SELECT ALL 4 - + 77
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7531
SELECT ALL - CAST( NULL AS SIGNED ) * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL - CAST ( NULL AS INTEGER ) * + 42
----
NULL

query I rowsort
SELECT 68 * - + 74
----
-5032

query I rowsort
SELECT DISTINCT - 39 AS col2
----
-39

query I rowsort
SELECT DISTINCT - 94 * + 43
----
-4042

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT COUNT( 81 ) * - + COUNT( + + 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-7535
SELECT COUNT ( 81 ) * - + COUNT ( + + 32 )
----
-1

query I rowsort
SELECT ALL - - ( - 18 ) AS col1
----
-18

query I rowsort
SELECT 70 * - + 70 * 18
----
-88200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7538
SELECT ALL COALESCE ( - CAST( NULL AS SIGNED ), - 37 ) + - 7
----
-44

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL COALESCE ( - CAST ( NULL AS INTEGER ), - 37 ) + - 7
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT - 18 * + COUNT( * ) * - 34 + - 91 / COUNT( DISTINCT + + NULLIF ( + + 91, + 94 ) ) + - CASE - 43 WHEN - 7 * + AVG ( - 93 ) THEN - 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT - 18 * + COUNT ( * ) * - 34 + - 91 / COUNT ( DISTINCT + + NULLIF ( + + 91, + 94 ) ) + - CASE - 43 WHEN - 7 * + AVG ( - 93 ) THEN - 92 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7540
SELECT ALL - + 69 AS col1, 9 - COUNT( * ) + 19 * - 91 + ( - - 94 ) col2
----
-69
-1627

skipif mysql # not compatible
query II rowsort label-7540
SELECT ALL - + 69 AS col1, 9 - COUNT ( * ) + 19 * - 91 + ( - - 94 ) col2
----
-69
-1627

query I rowsort
SELECT ALL + 78 + 73 AS col1
----
151

query I rowsort
SELECT ALL + 20 + + - 82
----
-62

query I rowsort
SELECT + + 42 AS col2
----
42

query I rowsort
SELECT ALL + 98 + 41 AS col0
----
139

query I rowsort
SELECT 19 * - - 29 AS col0
----
551

query I rowsort
SELECT - COALESCE ( + 14, + 99 ) * - 75 + + 27
----
1077

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7547
SELECT + - 73 * + 74 * + + 53 + + ( + - 40 ) + COUNT( * ) + - - 84 DIV - 88 * CASE 73 WHEN + - CASE + 16 WHEN 80 + - - 97 - - - 12 + 48 * - 85 - 79 THEN 27 END THEN NULL WHEN 21 * + 64 * - + 35 DIV ( 64 ) THEN NULL ELSE COUNT( * ) END * 71 + ( 38 ) * + 51 col0
----
-284407

skipif mysql # not compatible
query I rowsort label-7547
SELECT + - 73 * + 74 * + + 53 + + ( + - 40 ) + COUNT ( * ) + - - 84 / - 88 * CASE 73 WHEN + - CASE + 16 WHEN 80 + - - 97 - - - 12 + 48 * - 85 - 79 THEN 27 END THEN NULL WHEN 21 * + 64 * - + 35 / ( 64 ) THEN NULL ELSE COUNT ( * ) END * 71 + ( 38 ) * + 51 col0
----
-284407

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT 98 + COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7548
SELECT 98 + COUNT ( * ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7549
SELECT + 11 - COUNT( * ) + 57, CAST( NULL AS SIGNED ) AS col0
----
67
NULL

skipif mysql # not compatible
query II rowsort label-7549
SELECT + 11 - COUNT ( * ) + 57, CAST ( NULL AS INTEGER ) AS col0
----
67
NULL

query I rowsort
SELECT ALL + - ( - - 18 ) + + ( - 32 ) + + 21 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT DISTINCT ( + COUNT( * ) ) - 95 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT ( + COUNT ( * ) ) - 95 AS col1
----
-94

query I rowsort
SELECT DISTINCT - 97 * + 11
----
-1067

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT 53 + NULLIF ( 47, 56 * + 34 / + MIN( ALL + 4 ) * 33 ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-7553
SELECT 53 + NULLIF ( 47, 56 * + 34 / + MIN ( ALL + 4 ) * 33 ) AS col0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT COALESCE ( - 52, - 50 + - - 91 / - 3 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7554
SELECT COALESCE ( - 52, - 50 + - - 91 / - 3 ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7555
SELECT DISTINCT + CAST( ( COUNT( * ) ) AS SIGNED ) * - 54 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT + CAST ( ( COUNT ( * ) ) AS INTEGER ) * - 54 AS col1
----
-54

query I rowsort
SELECT 72 * ( - 80 )
----
-5760

query I rowsort
SELECT 78 + + - 27 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL MAX( DISTINCT + + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL MAX ( DISTINCT + + 45 )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7559
SELECT 62 * - COUNT( * ) DIV 99 * 66 AS col1, 44 * 50
----
0
2200

skipif mysql # not compatible
query II rowsort label-7559
SELECT 62 * - COUNT ( * ) / 99 * 66 AS col1, 44 * 50
----
0
2200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7560
SELECT DISTINCT + COUNT( * ) DIV 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7560
SELECT DISTINCT + COUNT ( * ) / 88 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7561
SELECT 48 * + 4 col0, 51 DIV + 30 + - - COUNT( * ) AS col0
----
192
2

skipif mysql # not compatible
query II rowsort label-7561
SELECT 48 * + 4 col0, 51 / + 30 + - - COUNT ( * ) AS col0
----
192
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7562
SELECT 52 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7562
SELECT 52 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT COALESCE ( + - COUNT( * ), + 14 + COUNT( ALL - 36 ) * - 61, + 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-7563
SELECT COALESCE ( + - COUNT ( * ), + 14 + COUNT ( ALL - 36 ) * - 61, + 93 )
----
-1

query II rowsort
SELECT DISTINCT 66 * + - 21 + + ( + CASE - 76 WHEN 56 THEN + AVG ( ALL 81 ) WHEN - 14 - + 38 * - + 10 + - 13 / + 33 THEN NULL END ) * + 88 AS col1, 70 AS col1
----
NULL
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT ALL 87 * - - 28 * 88 + - COUNT( * ) AS col2
----
214367

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL 87 * - - 28 * 88 + - COUNT ( * ) AS col2
----
214367

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT - COALESCE ( 95, + CASE 95 WHEN + COUNT( * ) / - COUNT( * ) / + 10 / + 46 - - + 60 + + + 67 THEN NULL WHEN + 15 THEN - + 62 WHEN 5 * - COUNT( * ) + 2 + + 18 - 3 * 83 THEN NULL END, + 70 )
----
-95

skipif mysql # not compatible
query I rowsort label-7566
SELECT - COALESCE ( 95, + CASE 95 WHEN + COUNT ( * ) / - COUNT ( * ) / + 10 / + 46 - - + 60 + + + 67 THEN NULL WHEN + 15 THEN - + 62 WHEN 5 * - COUNT ( * ) + 2 + + 18 - 3 * 83 THEN NULL END, + 70 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT DISTINCT - - MIN( + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT - - MIN ( + 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT DISTINCT + SUM( ALL + 25 ) * 89 + - - 78 + - ( + 63 )
----
2240

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT + SUM ( ALL + 25 ) * 89 + - - 78 + - ( + 63 )
----
2240

query I rowsort
SELECT ALL - 19 * + 16 + + CASE 19 WHEN - + 69 THEN + 50 + + 93 WHEN - 92 * - - 87 * 76 - - 77 THEN NULL WHEN + 2 THEN NULL ELSE - 37 END
----
-341

query I rowsort
SELECT DISTINCT 32 * - - 0 + + + 83
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7571
SELECT ALL + - 55 * - CAST( NULL AS SIGNED ) + - - 95 * CASE + - 29 WHEN - - 89 + - + COALESCE ( + 69, + + 13, - 56 ) THEN NULL WHEN 94 THEN NULL WHEN + - 81 THEN 66 ELSE - + 10 + - - 42 + + AVG ( + 49 ) * - ( - 17 ) * - 87 + - 60 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL + - 55 * - CAST ( NULL AS INTEGER ) + - - 95 * CASE + - 29 WHEN - - 89 + - + COALESCE ( + 69, + + 13, - 56 ) THEN NULL WHEN 94 THEN NULL WHEN + - 81 THEN 66 ELSE - + 10 + - - 42 + + AVG ( + 49 ) * - ( - 17 ) * - 87 + - 60 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT - + COUNT( * ) * + 56 + - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-7572
SELECT - + COUNT ( * ) * + 56 + - COUNT ( * )
----
-57

query I rowsort
SELECT ALL + + 43 col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT - 17 * 74 - + COALESCE ( 77, - COUNT( * ) + + 47 + 88 ) - 76 + + - 38 * - 96 AS col1
----
2237

skipif mysql # not compatible
query I rowsort label-7574
SELECT - 17 * 74 - + COALESCE ( 77, - COUNT ( * ) + + 47 + 88 ) - 76 + + - 38 * - 96 AS col1
----
2237

query I rowsort
SELECT + ( 61 ) AS col2
----
61

query I rowsort
SELECT + + 28 + + 61 + + - 87
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL + 42 * COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL + 42 * COUNT ( * ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT + + COUNT( * ) * + + 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-7578
SELECT + + COUNT ( * ) * + + 44 AS col0
----
44

query I rowsort
SELECT DISTINCT 30 - 45 * + + 21 * + 35
----
-33045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7580
SELECT + COUNT( * ) DIV - 22 * 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7580
SELECT + COUNT ( * ) / - 22 * 39 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7581
SELECT ALL CAST( NULL AS SIGNED ) * + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL CAST ( NULL AS INTEGER ) * + 22 AS col0
----
NULL

query I rowsort
SELECT + 47 * - 11 AS col0
----
-517

query II rowsort
SELECT ALL 49 AS col1, 79 * + 2 AS col2
----
49
158

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT - NULLIF ( - 21, COUNT( * ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7584
SELECT - NULLIF ( - 21, COUNT ( * ) ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT DISTINCT MAX( + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT MAX ( + 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT + NULLIF ( + 30, + - 20 ) * - NULLIF ( + 57, - ( + 35 ) * 51 * + - 0 + + - 75 / + COUNT( * ) ) * - 31 + + + ( + 63 ) AS col1
----
53073

skipif mysql # not compatible
query I rowsort label-7586
SELECT + NULLIF ( + 30, + - 20 ) * - NULLIF ( + 57, - ( + 35 ) * 51 * + - 0 + + - 75 / + COUNT ( * ) ) * - 31 + + + ( + 63 ) AS col1
----
53073

query I rowsort
SELECT ALL + 49 * 68 AS col1
----
3332

onlyif mysql # aggregate syntax: 
query II rowsort label-7588
SELECT - CASE - + 75 WHEN - 70 THEN + + 39 + - ( COUNT( * ) ) END col1, 49 * 76 * - + 37 * COUNT( * ) * + COUNT( 83 ) AS col2
----
NULL
-137788

skipif mysql # not compatible
query II rowsort label-7588
SELECT - CASE - + 75 WHEN - 70 THEN + + 39 + - ( COUNT ( * ) ) END col1, 49 * 76 * - + 37 * COUNT ( * ) * + COUNT ( 83 ) AS col2
----
NULL
-137788

query I rowsort
SELECT + 33 + - + 80
----
-47

query II rowsort
SELECT - 26 AS col1, - 33 AS col1
----
-26
-33

query I rowsort
SELECT - COALESCE ( + 82, + - 63, - + 73 ) AS col0
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7592
SELECT + NULLIF ( - + CASE - 83 WHEN COALESCE ( - 95, + 70, + 95 + + NULLIF ( - 59, SUM( - 65 ) ) ) + + 70 + - 30 * - 66 * 86 THEN - 98 * + 88 * + - SUM( - + 91 ) * + - 21 ELSE 73 END, - 16 * - + 57 * - 38 - 99 + - 50 * COALESCE ( 99, - 38 * + 65 ) + 76 ) DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-7592
SELECT + NULLIF ( - + CASE - 83 WHEN COALESCE ( - 95, + 70, + 95 + + NULLIF ( - 59, SUM ( - 65 ) ) ) + + 70 + - 30 * - 66 * 86 THEN - 98 * + 88 * + - SUM ( - + 91 ) * + - 21 ELSE 73 END, - 16 * - + 57 * - 38 - 99 + - 50 * COALESCE ( 99, - 38 * + 65 ) + 76 ) / 98
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7593
SELECT - CAST( NULL AS SIGNED ) * + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7593
SELECT - CAST ( NULL AS INTEGER ) * + 94
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7594
SELECT ALL + 49 + - CAST( - - COUNT( * ) AS SIGNED ) AS col0, 39 + 71
----
48
110

skipif mysql # not compatible
query II rowsort label-7594
SELECT ALL + 49 + - CAST ( - - COUNT ( * ) AS INTEGER ) AS col0, 39 + 71
----
48
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT + + NULLIF ( COUNT( * ), - 63 * - 66 * + 77 / 81 ) + + - COUNT( * ) + + 30 * - 12
----
-360

skipif mysql # not compatible
query I rowsort label-7595
SELECT + + NULLIF ( COUNT ( * ), - 63 * - 66 * + 77 / 81 ) + + - COUNT ( * ) + + 30 * - 12
----
-360

query I rowsort
SELECT - - 28 - 6 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT DISTINCT - 70 * + - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT - 70 * + - COUNT ( * )
----
70

query I rowsort
SELECT DISTINCT 64 + 57 + - 39
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ALL + MIN( ALL ( - - 9 ) ) + - 94 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL + MIN ( ALL ( - - 9 ) ) + - 94 AS col2
----
-85

query I rowsort
SELECT DISTINCT + + 42 col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT DISTINCT 93 DIV 1 + + - 73 * - 78 AS col2
----
5787

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT 93 / 1 + + - 73 * - 78 AS col2
----
5787

onlyif mysql # DIV for integer division: 
query I rowsort label-7602
SELECT ALL - + 12 DIV 63 + + 22
----
22

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL - + 12 / 63 + + 22
----
22

query I rowsort
SELECT + ( + + 97 ) AS col0
----
97

query I rowsort
SELECT ALL + ( + - 58 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL - 86 * + 89 - COALESCE ( 93, 80 + MAX( DISTINCT + 6 ), + 96 )
----
-7747

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL - 86 * + 89 - COALESCE ( 93, 80 + MAX ( DISTINCT + 6 ), + 96 )
----
-7747

onlyif mysql # DIV for integer division: 
query I rowsort label-7606
SELECT - + 32 DIV - - 59
----
0

skipif mysql # not compatible
query I rowsort label-7606
SELECT - + 32 / - - 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT - - COUNT( * ) * - 97 + 12 + - + COUNT( DISTINCT + 81 ) + - + 36 AS col2
----
-122

skipif mysql # not compatible
query I rowsort label-7607
SELECT - - COUNT ( * ) * - 97 + 12 + - + COUNT ( DISTINCT + 81 ) + - + 36 AS col2
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7608
SELECT ALL + - 55 * - 32 + + 64 * - COUNT( * ) * - ( - + COUNT( * ) ) DIV + - 73 * - 85 * - + 81 AS col2
----
1760

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL + - 55 * - 32 + + 64 * - COUNT ( * ) * - ( - + COUNT ( * ) ) / + - 73 * - 85 * - + 81 AS col2
----
1760

query II rowsort
SELECT + - 97, 25 AS col2
----
-97
25

query I rowsort
SELECT ALL + + 88 * + 98 * 60
----
517440

query I rowsort
SELECT - ( - + 0 ) * + - 54 AS col0
----
0

query II rowsort
SELECT ALL + 76 AS col2, + ( + + ( - 57 ) )
----
76
-57

query I rowsort
SELECT + 64 + - 45
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7614
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT - 24 * + - SUM( ALL + 98 ) AS col0
----
2352

skipif mysql # not compatible
query I rowsort label-7615
SELECT - 24 * + - SUM ( ALL + 98 ) AS col0
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT - 3 * 48 + 3 * + - 64 + + COUNT( - + 88 ) - + + 10 AS col0
----
-345

skipif mysql # not compatible
query I rowsort label-7616
SELECT - 3 * 48 + 3 * + - 64 + + COUNT ( - + 88 ) - + + 10 AS col0
----
-345

query I rowsort
SELECT NULLIF ( - - 5, + 82 * + 9 - 72 )
----
5

query I rowsort
SELECT + 22 * + COALESCE ( 62, - 54 * - 3 ) - - 77
----
1441

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL 88 * - MAX( 83 ) * - 18
----
131472

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL 88 * - MAX ( 83 ) * - 18
----
131472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7620
SELECT + 94 + 98 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7620
SELECT + 94 + 98 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT - CASE + CAST( NULL AS SIGNED ) WHEN + ( + - 99 ) THEN NULL WHEN + 35 THEN - COALESCE ( 92, 24 + - 52 + + 42 ) * - - 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT - CASE + CAST ( NULL AS INTEGER ) WHEN + ( + - 99 ) THEN NULL WHEN + 35 THEN - COALESCE ( 92, 24 + - 52 + + 42 ) * - - 55 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL 81 * - + MAX( ALL - + 86 ) AS col1
----
6966

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL 81 * - + MAX ( ALL - + 86 ) AS col1
----
6966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7623
SELECT ALL 52 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL 52 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 63 + + + 81 * 60 AS col2
----
4923

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT - COUNT( * ) * + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7625
SELECT - COUNT ( * ) * + + COUNT ( * )
----
-1

query II rowsort
SELECT 50 AS col1, - 40
----
50
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT + 27 * - - COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7627
SELECT + 27 * - - COUNT ( * ) AS col2
----
27

query II rowsort
SELECT - 9 + + 51, + COALESCE ( - 83, + - 49 + - 62 ) AS col1
----
42
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-7629
SELECT ALL MIN( + + 66 ), + 51 AS col0
----
66
51

skipif mysql # not compatible
query II rowsort label-7629
SELECT ALL MIN ( + + 66 ), + 51 AS col0
----
66
51

query I rowsort
SELECT DISTINCT 27 + 20 * - + 35 AS col1
----
-673

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT ALL 52 + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL 52 + COUNT ( * )
----
53

query I rowsort
SELECT DISTINCT ( + 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7633
SELECT - + 17 AS col2, COUNT( * )
----
-17
1

skipif mysql # not compatible
query II rowsort label-7633
SELECT - + 17 AS col2, COUNT ( * )
----
-17
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT ALL + - 7 + - CAST( + 50 AS SIGNED ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + - 7 + - CAST ( + 50 AS INTEGER ) AS col0
----
-57

query I rowsort
SELECT ALL - ( - COALESCE ( + 25, + 36, 30 ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT + COUNT( * ) * MIN( - 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-7636
SELECT + COUNT ( * ) * MIN ( - 32 ) AS col1
----
-32

query I rowsort
SELECT ALL + 41 - + 17 AS col1
----
24

query I rowsort
SELECT + 72 * + 86 AS col2
----
6192

query II rowsort
SELECT 7, - 5 AS col2
----
7
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT + ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7640
SELECT + ( - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL - 67 - + 24
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT - + 75 / + CASE + + 20 WHEN 97 THEN 15 END - + COUNT( * ) + - + 28 / + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7642
SELECT - + 75 / + CASE + + 20 WHEN 97 THEN 15 END - + COUNT ( * ) + - + 28 / + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7643
SELECT - 99 DIV - - 37 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7643
SELECT - 99 / - - 37 AS col1
----
-2

query I rowsort
SELECT DISTINCT + 48 * + - ( + + 7 ) * + 11 + 28 AS col1
----
-3668

onlyif mysql # aggregate syntax: 
query II rowsort label-7645
SELECT DISTINCT - 83 AS col2, + COUNT( * ) AS col1
----
-83
1

skipif mysql # not compatible
query II rowsort label-7645
SELECT DISTINCT - 83 AS col2, + COUNT ( * ) AS col1
----
-83
1

query I rowsort
SELECT ALL - + NULLIF ( - 66, 4 * + NULLIF ( + 62, + 77 ) + - 9 ) AS col1
----
66

query II rowsort
SELECT DISTINCT - 1, 11 + + + 40 AS col0
----
-1
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT + COUNT( + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-7648
SELECT + COUNT ( + 0 )
----
1

query I rowsort
SELECT + 19 * 52 + + 61 AS col0
----
1049

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7650
SELECT ALL - + 48 DIV + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL - + 48 / + COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7651
SELECT ( + - COUNT( * ) ) DIV - 40 - - 50
----
50

skipif mysql # not compatible
query I rowsort label-7651
SELECT ( + - COUNT ( * ) ) / - 40 - - 50
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7652
SELECT 62 DIV COUNT( * ) * + 40
----
2480

skipif mysql # not compatible
query I rowsort label-7652
SELECT 62 / COUNT ( * ) * + 40
----
2480

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT 33 * 75 * + COUNT( * )
----
2475

skipif mysql # not compatible
query I rowsort label-7653
SELECT 33 * 75 * + COUNT ( * )
----
2475

query I rowsort
SELECT DISTINCT - 39 * - - 84
----
-3276

query I rowsort
SELECT + 47 col1
----
47

query II rowsort
SELECT ALL - 48 + - - 20, - 38 * + 32 * - 21 AS col0
----
-28
25536

query I rowsort
SELECT ALL - ( 39 )
----
-39

query I rowsort
SELECT ALL - 49 + - 11 * - 1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT DISTINCT - 76 * + NULLIF ( + CASE - + 3 WHEN 12 * 25 + + + 42 THEN NULL WHEN COUNT( * ) THEN - 64 END, - 85 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7659
SELECT DISTINCT - 76 * + NULLIF ( + CASE - + 3 WHEN 12 * 25 + + + 42 THEN NULL WHEN COUNT ( * ) THEN - 64 END, - 85 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 67 + - 3 - + - 18 + + 34 + + + 58 * - 85 AS col1
----
-4948

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT 94 * - + MAX( ALL - 84 ) * - 28 - - COUNT( * ) + - 40
----
-221127

skipif mysql # not compatible
query I rowsort label-7661
SELECT 94 * - + MAX ( ALL - 84 ) * - 28 - - COUNT ( * ) + - 40
----
-221127

query I rowsort
SELECT 52 * - 24 * 90 * + 98
----
-11007360

query I rowsort
SELECT ALL - 49 + + + 73
----
24

query I rowsort
SELECT 58 - NULLIF ( 40, + 69 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT 68 - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-7665
SELECT 68 - COUNT ( * )
----
67

query I rowsort
SELECT - 21 col2
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-7667
SELECT 77 * + 76, + 94 DIV 52 AS col2
----
5852
1

skipif mysql # not compatible
query II rowsort label-7667
SELECT 77 * + 76, + 94 / 52 AS col2
----
5852
1

query I rowsort
SELECT ALL - 50 + - 0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7669
SELECT DISTINCT - 32 + - CASE + + 72 WHEN + COUNT( * ) THEN 55 * + ( 20 ) * + CAST( - COALESCE ( COUNT( * ), - 82 ) AS SIGNED ) - - 42 + + - 82 - 37 - - - 76 * - COUNT( * ) DIV - - 51 + + 43 ELSE - - 93 END
----
-125

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT - 32 + - CASE + + 72 WHEN + COUNT ( * ) THEN 55 * + ( 20 ) * + CAST ( - COALESCE ( COUNT ( * ), - 82 ) AS INTEGER ) - - 42 + + - 82 - 37 - - - 76 * - COUNT ( * ) / - - 51 + + 43 ELSE - - 93 END
----
-125

query I rowsort
SELECT ALL 68 + - 86 * - - 45 * + + 63 AS col0
----
-243742

query II rowsort
SELECT + 90 - - 12 AS col1, - 71 * + - 93
----
102
6603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7672
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) * + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + - 79
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7673
SELECT DISTINCT - + 26 - - MAX( - 51 ) + + 15 - + - 44 AS col0, 38
----
-18
38

skipif mysql # not compatible
query II rowsort label-7673
SELECT DISTINCT - + 26 - - MAX ( - 51 ) + + 15 - + - 44 AS col0, 38
----
-18
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7674
SELECT + 47 + + COALESCE ( 85, - COUNT( * ) ) + + - 75 - NULLIF ( + 35, - 46 + + + 97 ) DIV ( 65 )
----
57

skipif mysql # not compatible
query I rowsort label-7674
SELECT + 47 + + COALESCE ( 85, - COUNT ( * ) ) + + - 75 - NULLIF ( + 35, - 46 + + + 97 ) / ( 65 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT ALL 86 - - MIN( ALL - + ( - 22 ) ) * + SUM( DISTINCT - 84 )
----
-1762

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL 86 - - MIN ( ALL - + ( - 22 ) ) * + SUM ( DISTINCT - 84 )
----
-1762

query I rowsort
SELECT 39 * - 96 + ( + - 23 )
----
-3767

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT - 70 + + 82 DIV + 74 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-7677
SELECT - 70 + + 82 / + 74 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-7678
SELECT 88 + - + 12, + 61 - + 5 - - + 5 - COUNT( * ) * + + 4 AS col1
----
76
57

skipif mysql # not compatible
query II rowsort label-7678
SELECT 88 + - + 12, + 61 - + 5 - - + 5 - COUNT ( * ) * + + 4 AS col1
----
76
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT ALL + - 84 - + + 48 + - ( + - SUM( + - 1 ) )
----
-133

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL + - 84 - + + 48 + - ( + - SUM ( + - 1 ) )
----
-133

query I rowsort
SELECT - 97 + + 95
----
-2

query I rowsort
SELECT DISTINCT - + 93 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT - SUM( ALL - 3 ) * + 96 * - NULLIF ( - CASE 36 WHEN + 17 THEN 70 END, 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7682
SELECT - SUM ( ALL - 3 ) * + 96 * - NULLIF ( - CASE 36 WHEN + 17 THEN 70 END, 5 )
----
NULL

query I rowsort
SELECT 88 * 39 + + - 40
----
3392

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) + COUNT( 21 ) + - 67 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) + COUNT ( 21 ) + - 67 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-7685
SELECT DISTINCT - 36 * 12 AS col0, - 98 * ( - 34 ) * - MAX( + + 43 ) col0
----
-432
-143276

skipif mysql # not compatible
query II rowsort label-7685
SELECT DISTINCT - 36 * 12 AS col0, - 98 * ( - 34 ) * - MAX ( + + 43 ) col0
----
-432
-143276

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT DISTINCT COUNT( * ) + + 92 + + 93 * - - 74 * - SUM( ALL + 14 ) - - SUM( ALL 21 ) AS col0
----
-96234

skipif mysql # not compatible
query I rowsort label-7686
SELECT DISTINCT COUNT ( * ) + + 92 + + 93 * - - 74 * - SUM ( ALL + 14 ) - - SUM ( ALL 21 ) AS col0
----
-96234

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT + MIN( DISTINCT - 43 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-7687
SELECT + MIN ( DISTINCT - 43 ) AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7688
SELECT DISTINCT + 80 + 1 - + 70 DIV - 45 + COUNT( - 42 ) col1
----
83

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT + 80 + 1 - + 70 / - 45 + COUNT ( - 42 ) col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7689
SELECT ALL CASE - 56 WHEN COUNT( * ) + - 24 + - 82 + 94 + - + NULLIF ( + COUNT( * ), + - 3 ) * - 77 THEN - 35 + + - 21 END + - + 93 + - COUNT( + CAST( + 41 AS DECIMAL ) ) + + - 27 + + 63 + - + COUNT( * ) + + COUNT( * ) * 41 * - 83 * 97 * + 47 - + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL CASE - 56 WHEN COUNT ( * ) + - 24 + - 82 + 94 + - + NULLIF ( + COUNT ( * ), + - 3 ) * - 77 THEN - 35 + + - 21 END + - + 93 + - COUNT ( + CAST ( + 41 AS REAL ) ) + + - 27 + + 63 + - + COUNT ( * ) + + COUNT ( * ) * 41 * - 83 * 97 * + 47 - + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL + 62 + + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL + 62 + + COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7691
SELECT COUNT( * ) AS col0, + ( + 78 ) * - 97 AS col2
----
1
-7566

skipif mysql # not compatible
query II rowsort label-7691
SELECT COUNT ( * ) AS col0, + ( + 78 ) * - 97 AS col2
----
1
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT DISTINCT 11 + + - COALESCE ( + 39, - - COUNT( * ) * + 61 * - 12 )
----
-28

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT 11 + + - COALESCE ( + 39, - - COUNT ( * ) * + 61 * - 12 )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT 87 DIV + 18 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7693
SELECT 87 / + 18 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL + 17 + COUNT( - 30 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL + 17 + COUNT ( - 30 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT ALL - 63 + COUNT( * ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL - 63 + COUNT ( * ) AS col2
----
-62

query II rowsort
SELECT 17 * - + 3 + 7 AS col1, 52
----
-44
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT ( 54 ) * - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-7697
SELECT ( 54 ) * - COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT ALL + MIN( - 76 ) * - 78 + + 11
----
5939

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL + MIN ( - 76 ) * - 78 + + 11
----
5939

query I rowsort
SELECT 77 + + + 56
----
133

query I rowsort
SELECT ALL 10 + - + 64
----
-54

query II rowsort
SELECT ALL 20, - 7 col0
----
20
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT 87 + - 78 DIV 59 col1
----
86

skipif mysql # not compatible
query I rowsort label-7702
SELECT 87 + - 78 / 59 col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ALL MAX( DISTINCT - 81 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL MAX ( DISTINCT - 81 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT DISTINCT MIN( DISTINCT + + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT MIN ( DISTINCT + + 87 )
----
87

query II rowsort
SELECT - 27 * - + 37 + + 83 AS col0, 94 AS col2
----
1082
94

query II rowsort
SELECT - 17 AS col0, + 79 AS col2
----
-17
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT MAX( + 29 ) col0
----
29

skipif mysql # not compatible
query I rowsort label-7707
SELECT MAX ( + 29 ) col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT DISTINCT - COUNT( ALL - CASE + 69 WHEN - 41 THEN - - 60 / - - 23 / 30 + - 91 END )
----
0

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT - COUNT ( ALL - CASE + 69 WHEN - 41 THEN - - 60 / - - 23 / 30 + - 91 END )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7709
SELECT ALL ( - ( - 64 ) ) AS col1, COUNT( * ) DIV - 43
----
64
0

skipif mysql # not compatible
query II rowsort label-7709
SELECT ALL ( - ( - 64 ) ) AS col1, COUNT ( * ) / - 43
----
64
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7710
SELECT CAST( + - 56 AS SIGNED ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-7710
SELECT CAST ( + - 56 AS INTEGER ) AS col2
----
-56

query II rowsort
SELECT DISTINCT - 16, + 48 AS col1
----
-16
48

query II rowsort
SELECT 67 AS col2, - 82 AS col1
----
67
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT ALL + 59 * COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL + 59 * COUNT ( * ) AS col2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7714
SELECT - 90 DIV - 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7714
SELECT - 90 / - 50 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL + NULLIF ( - SUM( ALL - - 1 ), - COUNT( * ) ) / + - 50 + 20 + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL + NULLIF ( - SUM ( ALL - - 1 ), - COUNT ( * ) ) / + - 50 + 20 + + 17
----
NULL

query II rowsort
SELECT ALL 29 col2, 0 + 89
----
29
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7717
SELECT ALL + - 81 * - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL + - 81 * - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7718
SELECT - CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7718
SELECT - CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT ALL + ( - 64 ) * - + 94 * - - 10 col1
----
60160

onlyif mysql # DIV for integer division: 
query I rowsort label-7720
SELECT - 56 DIV - + 60 + ( - 94 ) * - 5 AS col0
----
470

skipif mysql # not compatible
query I rowsort label-7720
SELECT - 56 / - + 60 + ( - 94 ) * - 5 AS col0
----
470

query I rowsort
SELECT + - 87 * + 17 - 57 + - 80 AS col0
----
-1616

query I rowsort
SELECT DISTINCT 5 * - - 45 * - 23 AS col1
----
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT ALL + MAX( + ( 42 ) )
----
42

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL + MAX ( + ( 42 ) )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7724
SELECT + + COUNT( * ) DIV + 44 + + - COUNT( * ) * - - 43 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-7724
SELECT + + COUNT ( * ) / + 44 + + - COUNT ( * ) * - - 43 AS col0
----
-43

query I rowsort
SELECT DISTINCT - - 58 * 51 * + - 61 * 21 + 47
----
-3789151

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT ( + MIN( DISTINCT + + 33 ) )
----
33

skipif mysql # not compatible
query I rowsort label-7726
SELECT ( + MIN ( DISTINCT + + 33 ) )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7727
SELECT ALL + 70 * + 55 * - AVG ( + 15 ) * - CAST( NULL AS SIGNED ) + - 42 + - 9 + - + COALESCE ( - - MAX( - 29 ), 89 ) * - - 23 AS col1, COUNT( * ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7727
SELECT ALL + 70 * + 55 * - AVG ( + 15 ) * - CAST ( NULL AS INTEGER ) + - 42 + - 9 + - + COALESCE ( - - MAX ( - 29 ), 89 ) * - - 23 AS col1, COUNT ( * ) col2
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7728
SELECT ALL 84 * + - 17 + 25 DIV - 70 * + - COUNT( * )
----
-1428

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL 84 * + - 17 + 25 / - 70 * + - COUNT ( * )
----
-1428

query I rowsort
SELECT + COALESCE ( ( + 63 ), - 20, + 45 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT ALL 58 * COUNT( * ) * + 52 AS col0
----
3016

skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL 58 * COUNT ( * ) * + 52 AS col0
----
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT + CASE + CASE + - ( - - 77 ) WHEN - + 47 THEN + 0 + COUNT( DISTINCT + - 55 ) WHEN + 87 THEN + 3 WHEN + + 67 + - 65 THEN NULL ELSE + 31 END WHEN + + SUM( + 17 ) THEN + COUNT( * ) WHEN + 14 * - 81 THEN - 60 * 87 END * - ( 44 ) + 52 + - - 86 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7731
SELECT + CASE + CASE + - ( - - 77 ) WHEN - + 47 THEN + 0 + COUNT ( DISTINCT + - 55 ) WHEN + 87 THEN + 3 WHEN + + 67 + - 65 THEN NULL ELSE + 31 END WHEN + + SUM ( + 17 ) THEN + COUNT ( * ) WHEN + 14 * - 81 THEN - 60 * 87 END * - ( 44 ) + 52 + - - 86 col1
----
NULL

query I rowsort
SELECT ALL 23 * 31
----
713

query I rowsort
SELECT ( - + 95 ) * ( + 3 ) + - 61 col1
----
-346

query I rowsort
SELECT NULLIF ( 58, - 75 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT ALL 2 * - ( - COUNT( * ) ) + - + 97
----
-95

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL 2 * - ( - COUNT ( * ) ) + - + 97
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT DISTINCT 15 * COUNT( * ) + - 27 * + 62
----
-1659

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT 15 * COUNT ( * ) + - 27 * + 62
----
-1659

query I rowsort
SELECT ALL + 88 * + 63 - 92
----
5452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7738
SELECT DISTINCT 4 * + CAST( + - 22 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT 4 * + CAST ( + - 22 AS INTEGER )
----
-88

query II rowsort
SELECT DISTINCT 22 * 46 AS col2, ( - 18 )
----
1012
-18

query I rowsort
SELECT + 33 * 22 * 91
----
66066

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT MAX( ALL + 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7741
SELECT MAX ( ALL + 24 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query III rowsort label-7742
SELECT + + 23 - - COUNT( * ) + - 57 * - 38 AS col1, COUNT( * ) col0, ( 34 )
----
2190
1
34

skipif mysql # not compatible
query III rowsort label-7742
SELECT + + 23 - - COUNT ( * ) + - 57 * - 38 AS col1, COUNT ( * ) col0, ( 34 )
----
2190
1
34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7743
SELECT + COALESCE ( 3, 57 * - CAST( NULL AS SIGNED ) DIV - - 7 - COALESCE ( + 68, - NULLIF ( 29, CAST( + 86 AS DECIMAL ) - 76 ) ) ) * - 39 AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-7743
SELECT + COALESCE ( 3, 57 * - CAST ( NULL AS INTEGER ) / - - 7 - COALESCE ( + 68, - NULLIF ( 29, CAST ( + 86 AS REAL ) - 76 ) ) ) * - 39 AS col1
----
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-7744
SELECT + - COUNT( * ) - + - 34 AS col1, - COUNT( 69 )
----
33
-1

skipif mysql # not compatible
query II rowsort label-7744
SELECT + - COUNT ( * ) - + - 34 AS col1, - COUNT ( 69 )
----
33
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7745
SELECT - - 43 DIV + ( + 29 )
----
1

skipif mysql # not compatible
query I rowsort label-7745
SELECT - - 43 / + ( + 29 )
----
1

query I rowsort
SELECT - + ( + 90 )
----
-90

query I rowsort
SELECT ( ( - 47 ) ) col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT + + 46 * - SUM( ALL 40 ) - 17 * 50 AS col2
----
-2690

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT + + 46 * - SUM ( ALL 40 ) - 17 * 50 AS col2
----
-2690

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT - 88 - - COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-7749
SELECT - 88 - - COUNT ( * ) AS col0
----
-87

query I rowsort
SELECT + 32 + + 1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7751
SELECT - NULLIF ( + 67, - 78 * - COUNT( * ) * - - CASE COALESCE ( + 27, - + 37, COUNT( * ) ) WHEN 62 + + 32 * 54 THEN 42 / + ( COUNT( + + 96 ) ) * 74 END + - - 60 + + - 27 ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT - NULLIF ( + 67, - 78 * - COUNT ( * ) * - - CASE COALESCE ( + 27, - + 37, COUNT ( * ) ) WHEN 62 + + 32 * 54 THEN 42 / + ( COUNT ( + + 96 ) ) * 74 END + - - 60 + + - 27 ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7752
SELECT - ( - CAST( - + 45 AS SIGNED ) )
----
-45

skipif mysql # not compatible
query I rowsort label-7752
SELECT - ( - CAST ( - + 45 AS INTEGER ) )
----
-45

query I rowsort
SELECT - - 58 * 68 * + + 12
----
47328

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT DISTINCT + - COUNT( * ) + 40 - + 50 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-7754
SELECT DISTINCT + - COUNT ( * ) + 40 - + 50 AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7755
SELECT ALL - - CAST( NULL AS SIGNED ) + COALESCE ( 41, + 85 + - + 58, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL - - CAST ( NULL AS INTEGER ) + COALESCE ( 41, + 85 + - + 58, COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + 3 + - 56 AS col1
----
-53

query I rowsort
SELECT - - 97 + + + 62 - - - 82 * 35
----
-2711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7758
SELECT ALL + - 28 DIV - + 67 DIV + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL + - 28 / - + 67 / + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT + + NULLIF ( - - COUNT( DISTINCT + 72 ), - 17 * AVG ( - 71 ) / + 92 + MAX( DISTINCT - - 22 ) + - 69 ) + - 70 + - CASE COUNT( * ) WHEN + 63 THEN - 80 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT + + NULLIF ( - - COUNT ( DISTINCT + 72 ), - 17 * AVG ( - 71 ) / + 92 + MAX ( DISTINCT - - 22 ) + - 69 ) + - 70 + - CASE COUNT ( * ) WHEN + 63 THEN - 80 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL 34 + - MAX( ALL - 53 )
----
87

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL 34 + - MAX ( ALL - 53 )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7761
SELECT ALL 12 DIV 90 + - NULLIF ( ( + - 5 ), - 38 )
----
5

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL 12 / 90 + - NULLIF ( ( + - 5 ), - 38 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7762
SELECT DISTINCT CAST( + 81 AS SIGNED ) DIV - 76 - - - 29 + 56 DIV 97 - COUNT( * ) + + 32 * 30 * - ( SUM( + + 3 ) )
----
-2911

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT CAST ( + 81 AS INTEGER ) / - 76 - - - 29 + 56 / 97 - COUNT ( * ) + + 32 * 30 * - ( SUM ( + + 3 ) )
----
-2911

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT ALL COUNT( DISTINCT + - 99 ) * - 21 + - 89
----
-110

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL COUNT ( DISTINCT + - 99 ) * - 21 + - 89
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7764
SELECT DISTINCT 87 / + ( - 12 ) + - CAST( NULL AS SIGNED ) + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT 87 / + ( - 12 ) + - CAST ( NULL AS INTEGER ) + - 6
----
NULL

query I rowsort
SELECT DISTINCT + 8 * + 61
----
488

query I rowsort
SELECT + ( + - 34 ) AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7767
SELECT CAST( NULL AS SIGNED ) col1, COUNT( * ) + - 73
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-7767
SELECT CAST ( NULL AS INTEGER ) col1, COUNT ( * ) + - 73
----
NULL
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7768
SELECT - COALESCE ( - CAST( - - 94 AS SIGNED ), - - COUNT( * ) ) + 53 * - 75, 11 AS col1
----
-3881
11

skipif mysql # not compatible
query II rowsort label-7768
SELECT - COALESCE ( - CAST ( - - 94 AS INTEGER ), - - COUNT ( * ) ) + 53 * - 75, 11 AS col1
----
-3881
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7769
SELECT ALL 98 DIV + COUNT( * ) - ( - + 76 )
----
174

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL 98 / + COUNT ( * ) - ( - + 76 )
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-7770
SELECT ALL 75 DIV - - 11
----
6

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL 75 / - - 11
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT 87 * - COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-7771
SELECT 87 * - COUNT ( * ) AS col0
----
-87

query I rowsort
SELECT ALL - ( 67 )
----
-67

query I rowsort
SELECT DISTINCT 81 - 47 AS col0
----
34

query II rowsort
SELECT NULLIF ( + - 96, + 68 * - + 22 + - 79 + 55 ) * 57 + 28 + - 69 * 46 + + 90 col0, - 76 + 10 + + ( - 14 )
----
-8528
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7775
SELECT 92 * + COUNT( * ) + - CASE + 32 WHEN + NULLIF ( + 13, - 59 ) + ( - - COUNT( * ) ) * + COUNT( * ) THEN NULL WHEN 75 * + + 87 + MIN( + 0 ) THEN + CAST( NULL AS SIGNED ) - COUNT( * ) + ( - - COUNT( * ) ) + - 93 * - 31 * - + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7775
SELECT 92 * + COUNT ( * ) + - CASE + 32 WHEN + NULLIF ( + 13, - 59 ) + ( - - COUNT ( * ) ) * + COUNT ( * ) THEN NULL WHEN 75 * + + 87 + MIN ( + 0 ) THEN + CAST ( NULL AS INTEGER ) - COUNT ( * ) + ( - - COUNT ( * ) ) + - 93 * - 31 * - + 53 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT COUNT( * ) - + 69 - - 40 + - 57
----
-85

skipif mysql # not compatible
query I rowsort label-7776
SELECT COUNT ( * ) - + 69 - - 40 + - 57
----
-85

query I rowsort
SELECT 94 + + + 18
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-7778
SELECT ALL COUNT( ALL + 65 ) * 38 col2, - 77 AS col1
----
38
-77

skipif mysql # not compatible
query II rowsort label-7778
SELECT ALL COUNT ( ALL + 65 ) * 38 col2, - 77 AS col1
----
38
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT DISTINCT + 81 * - COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT + 81 * - COUNT ( * ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT CASE COUNT( * ) WHEN - + NULLIF ( + ( 83 ), + 4 ) THEN + + ( - - 84 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT CASE COUNT ( * ) WHEN - + NULLIF ( + ( 83 ), + 4 ) THEN + + ( - - 84 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7781
SELECT 86 * + NULLIF ( - 54, + COUNT( + 88 ) ) DIV 18 + + + 39 AS col1
----
-219

skipif mysql # not compatible
query I rowsort label-7781
SELECT 86 * + NULLIF ( - 54, + COUNT ( + 88 ) ) / 18 + + + 39 AS col1
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT + 72 + + - 81 + 49 * + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT + 72 + + - 81 + 49 * + + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + ( - 65 ) AS col0
----
-65

query I rowsort
SELECT 63 + - - 33 * 50 AS col2
----
1713

query I rowsort
SELECT 55 * - 45
----
-2475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7786
SELECT ALL - CAST( NULL AS SIGNED ) + - CASE - 60 WHEN - + 17 THEN - 71 ELSE NULL END - + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL - CAST ( NULL AS INTEGER ) + - CASE - 60 WHEN - + 17 THEN - 71 ELSE NULL END - + 46 AS col0
----
NULL

query I rowsort
SELECT ALL - ( + COALESCE ( - 47, + 40 * + 95 + - - 45 + + - 74 ) ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7788
SELECT - CAST( + 19 AS SIGNED ) DIV CAST( - - 90 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7788
SELECT - CAST ( + 19 AS INTEGER ) / CAST ( - - 90 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL + 57 * - COUNT( DISTINCT + 30 ) + + ( 51 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL + 57 * - COUNT ( DISTINCT + 30 ) + + ( 51 ) AS col2
----
-6

query I rowsort
SELECT 35 * + 11 * - 90 col1
----
-34650

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT ALL COUNT( * ) + - 6 + + 58 col2
----
53

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL COUNT ( * ) + - 6 + + 58 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT DISTINCT + + 76 * 39 + - + MAX( - 88 ) + + 29 * + - ( + + COUNT( * ) ) AS col2
----
3023

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT + + 76 * 39 + - + MAX ( - 88 ) + + 29 * + - ( + + COUNT ( * ) ) AS col2
----
3023

query I rowsort
SELECT DISTINCT 67 + - 55 + - 66
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT MIN( ALL 26 )
----
26

skipif mysql # not compatible
query I rowsort label-7794
SELECT MIN ( ALL 26 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7795
SELECT CAST( NULL AS SIGNED ) * + - COUNT( ALL 62 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7795
SELECT CAST ( NULL AS INTEGER ) * + - COUNT ( ALL 62 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT 81 * 7 * - MIN( DISTINCT + + 76 )
----
-43092

skipif mysql # not compatible
query I rowsort label-7796
SELECT 81 * 7 * - MIN ( DISTINCT + + 76 )
----
-43092

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7797
SELECT ALL + 31 + - - 88 DIV 43 * + + COUNT( * ) * MIN( + - 54 ), + NULLIF ( + 22, - ( ( + 65 ) ) ) AS col2
----
-77
22

skipif mysql # not compatible
query II rowsort label-7797
SELECT ALL + 31 + - - 88 / 43 * + + COUNT ( * ) * MIN ( + - 54 ), + NULLIF ( + 22, - ( ( + 65 ) ) ) AS col2
----
-77
22

query I rowsort
SELECT 87 + + 16 AS col0
----
103

query I rowsort
SELECT DISTINCT + 22 * + 84 * 97 * 60
----
10755360

query II rowsort
SELECT - 41 AS col0, 97 * + 2
----
-41
194

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT ALL - ( - - MIN( 22 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL - ( - - MIN ( 22 ) )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7802
SELECT COUNT( * ) * - 86 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7802
SELECT COUNT ( * ) * - 86 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - 10 col0, NULLIF ( - 97, + ( + 4 ) )
----
-10
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT 80 - 15 + + 32 + + - CASE - 49 WHEN - + 92 - - - 68 THEN + MIN( - ( - 99 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7804
SELECT 80 - 15 + + 32 + + - CASE - 49 WHEN - + 92 - - - 68 THEN + MIN ( - ( - 99 ) ) END
----
NULL

query II rowsort
SELECT 21 col2, - 8
----
21
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7806
SELECT ALL - COUNT( * ) AS col2, 0 + - ( - - 87 )
----
-1
-87

skipif mysql # not compatible
query II rowsort label-7806
SELECT ALL - COUNT ( * ) AS col2, 0 + - ( - - 87 )
----
-1
-87

query I rowsort
SELECT 96 * - - 60
----
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT - COUNT( * ) * 92 + - 17 col0
----
-109

skipif mysql # not compatible
query I rowsort label-7808
SELECT - COUNT ( * ) * 92 + - 17 col0
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT 15 - - + ( + - COUNT( * ) )
----
14

skipif mysql # not compatible
query I rowsort label-7809
SELECT 15 - - + ( + - COUNT ( * ) )
----
14

query I rowsort
SELECT ALL - 69 * - 18 AS col2
----
1242

query I rowsort
SELECT 86 * + 49
----
4214

query I rowsort
SELECT 22 * 70 * + 3 AS col0
----
4620

query I rowsort
SELECT ALL - 60 * 37
----
-2220

query I rowsort
SELECT ALL + 96 * 41 AS col1
----
3936

onlyif mysql # aggregate syntax: 
query II rowsort label-7815
SELECT DISTINCT - 70 AS col1, 13 * 71 / CASE - 62 WHEN - COUNT( * ) THEN - 14 END * + - 34 AS col1
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-7815
SELECT DISTINCT - 70 AS col1, 13 * 71 / CASE - 62 WHEN - COUNT ( * ) THEN - 14 END * + - 34 AS col1
----
-70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT 9 * COUNT( * ) col1
----
9

skipif mysql # not compatible
query I rowsort label-7816
SELECT 9 * COUNT ( * ) col1
----
9

query I rowsort
SELECT ALL + 52 + 21
----
73

query I rowsort
SELECT + 70 * - NULLIF ( 21, - 58 ) AS col1
----
-1470

query II rowsort
SELECT - 23 - + - 69 AS col1, - 28
----
46
-28

query I rowsort
SELECT - - ( + 5 )
----
5

query I rowsort
SELECT ALL CASE - 42 WHEN 60 THEN - - 21 * - - 33 + - + 94 END + - 11 * + 12 + + + 31 * + 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT - 36 - + ( MAX( - ( + 6 ) ) ) + 2 + - ( 74 ) * + - 48
----
3524

skipif mysql # not compatible
query I rowsort label-7822
SELECT - 36 - + ( MAX ( - ( + 6 ) ) ) + 2 + - ( 74 ) * + - 48
----
3524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7823
SELECT DISTINCT - 8 + NULLIF ( + 34, + + 6 + - CAST( NULL AS SIGNED ) / + SUM( DISTINCT + CAST( + + 42 AS SIGNED ) ) )
----
26

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT - 8 + NULLIF ( + 34, + + 6 + - CAST ( NULL AS INTEGER ) / + SUM ( DISTINCT + CAST ( + + 42 AS INTEGER ) ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL + COUNT( * ) + - MIN( - + 31 )
----
32

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + COUNT ( * ) + - MIN ( - + 31 )
----
32

query I rowsort
SELECT - - ( - 53 ) AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7826
SELECT DISTINCT CAST( 14 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT CAST ( 14 AS INTEGER )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7827
SELECT DISTINCT CAST( + COALESCE ( + 98, - + 13 * COUNT( * ), MIN( + 83 ) / - - 45 ) AS SIGNED ) + + 35, CAST( 58 AS SIGNED ) col0
----
133
58

skipif mysql # not compatible
query II rowsort label-7827
SELECT DISTINCT CAST ( + COALESCE ( + 98, - + 13 * COUNT ( * ), MIN ( + 83 ) / - - 45 ) AS INTEGER ) + + 35, CAST ( 58 AS INTEGER ) col0
----
133
58

query I rowsort
SELECT ALL + 95 + - - 27 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT + ( - + 58 ) - - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-7829
SELECT + ( - + 58 ) - - COUNT ( * )
----
-57

query II rowsort
SELECT - - 67, - 80 AS col2
----
67
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT + 30 + COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7831
SELECT + 30 + COUNT ( * ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT 26 - + + NULLIF ( - 17, - + COUNT( * ) ) + 1
----
44

skipif mysql # not compatible
query I rowsort label-7832
SELECT 26 - + + NULLIF ( - 17, - + COUNT ( * ) ) + 1
----
44

query I rowsort
SELECT - 39 * 86 * + 12 + - + 38 AS col0
----
-40286

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ( + 1 ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7834
SELECT ( + 1 ) + - COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7835
SELECT COUNT( - - ( - - 29 ) ) + - CAST( NULL AS SIGNED ) + COUNT( * ) * - + 49 * - 61 AS col2, - ( + 3 ) DIV + ( 29 ) AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7835
SELECT COUNT ( - - ( - - 29 ) ) + - CAST ( NULL AS INTEGER ) + COUNT ( * ) * - + 49 * - 61 AS col2, - ( + 3 ) / + ( 29 ) AS col2
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT 6 / + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT 6 / + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 0 * + - 7 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7838
SELECT + CASE + 32 WHEN + - ( + 92 ) THEN 45 WHEN + 60 THEN - 21 * - - 68 * - - 4 + + + 32 * 57 ELSE - SUM( + 35 ) END DIV 32 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7838
SELECT + CASE + 32 WHEN + - ( + 92 ) THEN 45 WHEN + 60 THEN - 21 * - - 68 * - - 4 + + + 32 * 57 ELSE - SUM ( + 35 ) END / 32 AS col2
----
-1

query I rowsort
SELECT ALL - 73 * - 63
----
4599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT ALL 40 * CAST( + 53 AS SIGNED ) AS col1
----
2120

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL 40 * CAST ( + 53 AS INTEGER ) AS col1
----
2120

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT NULLIF ( - 65, ( - 32 ) + - COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-7841
SELECT NULLIF ( - 65, ( - 32 ) + - COUNT ( * ) )
----
-65

query I rowsort
SELECT - 96 * - - ( + 17 ) + 6
----
-1626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7843
SELECT COALESCE ( - NULLIF ( - 71, + COUNT( * ) * - - COUNT( - + 6 ) * + - CASE + + 87 WHEN + - 17 THEN 25 / + + 18 ELSE CAST( - 21 AS SIGNED ) / - - CAST( NULL AS SIGNED ) + + 64 END - + 29 ), + + 30 + 53, 33 + ( - + CAST( NULL AS SIGNED ) ) + 35, + - ( - - COUNT( DISTINCT - NULLIF ( - 6, + - 82 + - 54 ) ) ) * + 32 + + - 41 + + COALESCE ( - 88, COUNT( * ) ) * + 36 )
----
71

skipif mysql # not compatible
query I rowsort label-7843
SELECT COALESCE ( - NULLIF ( - 71, + COUNT ( * ) * - - COUNT ( - + 6 ) * + - CASE + + 87 WHEN + - 17 THEN 25 / + + 18 ELSE CAST ( - 21 AS INTEGER ) / - - CAST ( NULL AS INTEGER ) + + 64 END - + 29 ), + + 30 + 53, 33 + ( - + CAST ( NULL AS INTEGER ) ) + 35, + - ( - - COUNT ( DISTINCT - NULLIF ( - 6, + - 82 + - 54 ) ) ) * + 32 + + - 41 + + COALESCE ( - 88, COUNT ( * ) ) * + 36 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT ALL + MAX( - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL + MAX ( - 94 )
----
-94

query I rowsort
SELECT CASE + 55 WHEN + + 2 THEN NULL ELSE + - 24 END AS col0
----
-24

query I rowsort
SELECT - 4 * + 32 * + 77
----
-9856

query I rowsort
SELECT + 16 + + 33
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT ALL + CASE - 55 WHEN - AVG ( - + 18 ) THEN NULL WHEN 63 + - 31 + - 44 THEN - COUNT( * ) ELSE + NULLIF ( + - 39, + 68 ) END AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL + CASE - 55 WHEN - AVG ( - + 18 ) THEN NULL WHEN 63 + - 31 + - 44 THEN - COUNT ( * ) ELSE + NULLIF ( + - 39, + 68 ) END AS col1
----
-39

query I rowsort
SELECT - 68 * - 95 AS col1
----
6460

query I rowsort
SELECT ALL + 14 * + 6 + + 5 * 11
----
139

query I rowsort
SELECT DISTINCT + - 97 AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7852
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( * ) * - 74 + - 86 + - + 25 AS col0, 89 AS col2
----
NULL
89

skipif mysql # not compatible
query II rowsort label-7852
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 74 + - 86 + - + 25 AS col0, 89 AS col2
----
NULL
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7853
SELECT ALL - 31 DIV - 69 * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL - 31 / - 69 * - - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7854
SELECT - 84 DIV 16
----
-5

skipif mysql # not compatible
query I rowsort label-7854
SELECT - 84 / 16
----
-5

query I rowsort
SELECT - 54 + 13 col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ALL - 85 * 81 + - CASE + 40 WHEN + - 38 + - 14 THEN NULL WHEN - 15 THEN NULL WHEN - - ( + 29 ) + 90 THEN COUNT( - 54 ) END / 89 + + + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL - 85 * 81 + - CASE + 40 WHEN + - 38 + - 14 THEN NULL WHEN - 15 THEN NULL WHEN - - ( + 29 ) + 90 THEN COUNT ( - 54 ) END / 89 + + + 76 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7857
SELECT - 1 * + 90 + 7 + - - 85 + + + SUM( - 10 ) + - + ( - 56 ) DIV - + 59 * 69 * + - 16 col0
----
-8

skipif mysql # not compatible
query I rowsort label-7857
SELECT - 1 * + 90 + 7 + - - 85 + + + SUM ( - 10 ) + - + ( - 56 ) / - + 59 * 69 * + - 16 col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT - - 59 + - 28 + - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7858
SELECT - - 59 + - 28 + - COUNT ( * ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT + COALESCE ( - 88, + + ( - 17 ), - ( + COUNT( * ) ) + ( 59 ) ) * - 99 - + - 79 + 28 * - ( + COUNT( + 29 ) ) - + + ( 98 ) AS col1
----
8665

skipif mysql # not compatible
query I rowsort label-7859
SELECT + COALESCE ( - 88, + + ( - 17 ), - ( + COUNT ( * ) ) + ( 59 ) ) * - 99 - + - 79 + 28 * - ( + COUNT ( + 29 ) ) - + + ( 98 ) AS col1
----
8665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7860
SELECT DISTINCT + + CASE 88 WHEN - - NULLIF ( ( - MAX( 49 ) ), - 68 ) - + COUNT( * ) + ( + MIN( DISTINCT - 78 ) ) * - 51 * - 6 - - NULLIF ( + 66, - 72 ) + - 6 + - - 22 + + COUNT( * ) THEN NULL WHEN + 70 THEN + CAST( NULL AS SIGNED ) - - 58 + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT + + CASE 88 WHEN - - NULLIF ( ( - MAX ( 49 ) ), - 68 ) - + COUNT ( * ) + ( + MIN ( DISTINCT - 78 ) ) * - 51 * - 6 - - NULLIF ( + 66, - 72 ) + - 6 + - - 22 + + COUNT ( * ) THEN NULL WHEN + 70 THEN + CAST ( NULL AS INTEGER ) - - 58 + + COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT - + 85 + + 16 AS col2, 37 - + + 20 AS col0
----
-69
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT ALL NULLIF ( - - 63, - COUNT( * ) - + 64 )
----
63

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL NULLIF ( - - 63, - COUNT ( * ) - + 64 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT - - MIN( - 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-7863
SELECT - - MIN ( - 75 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL + - 30 + + + MAX( DISTINCT + 38 ) * 3 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL + - 30 + + + MAX ( DISTINCT + 38 ) * 3 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT ALL COUNT( + - 67 ) + - 58 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL COUNT ( + - 67 ) + - 58 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT - ( + + NULLIF ( - CASE - - CASE - + 25 WHEN - + MAX( ALL 49 ) + + 86 THEN NULL ELSE - SUM( - 17 ) + + 42 END WHEN - - ( + - 67 ) THEN + - 87 END, + COUNT( + 56 ) * - MIN( - 57 ) * + COALESCE ( - COUNT( 26 ), + 46 + 64 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7866
SELECT - ( + + NULLIF ( - CASE - - CASE - + 25 WHEN - + MAX ( ALL 49 ) + + 86 THEN NULL ELSE - SUM ( - 17 ) + + 42 END WHEN - - ( + - 67 ) THEN + - 87 END, + COUNT ( + 56 ) * - MIN ( - 57 ) * + COALESCE ( - COUNT ( 26 ), + 46 + 64 ) ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 82, - - 51 * - 47 ) AS col2
----
82

query I rowsort
SELECT + + 52 * + 84 * + - 78
----
-340704

query I rowsort
SELECT 46 col0
----
46

query I rowsort
SELECT ALL 59 * + - 92
----
-5428

query I rowsort
SELECT ALL - 4 * + 52
----
-208

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT + MAX( - 85 ) * - 49
----
4165

skipif mysql # not compatible
query I rowsort label-7872
SELECT + MAX ( - 85 ) * - 49
----
4165

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT - CASE ( + 58 ) WHEN - 69 * + + 8 THEN NULL WHEN - - ( MAX( DISTINCT 55 ) ) * - + COUNT( * ) THEN + 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7873
SELECT - CASE ( + 58 ) WHEN - 69 * + + 8 THEN NULL WHEN - - ( MAX ( DISTINCT 55 ) ) * - + COUNT ( * ) THEN + 58 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7874
SELECT DISTINCT 5 * + + 40 * + 76, 93 * + CASE 51 WHEN - - COUNT( * ) THEN - CASE 54 WHEN - 63 THEN - 87 END * + + CASE CAST( NULL AS SIGNED ) WHEN ( + 54 ) THEN NULL WHEN 11 * NULLIF ( 55, + + 33 + - + ( + 67 ) ) * 19 - + - 99 * NULLIF ( - 52, 87 * + 62 ) THEN - 18 ELSE - - SUM( DISTINCT 44 ) END + MIN( - 68 ) WHEN + COALESCE ( MAX( 39 ), COUNT( * ), + COUNT( DISTINCT + 7 ) ) * 49 THEN COUNT( * ) + + 89 ELSE COUNT( * ) END AS col0
----
15200
93

skipif mysql # not compatible
query II rowsort label-7874
SELECT DISTINCT 5 * + + 40 * + 76, 93 * + CASE 51 WHEN - - COUNT ( * ) THEN - CASE 54 WHEN - 63 THEN - 87 END * + + CASE CAST ( NULL AS INTEGER ) WHEN ( + 54 ) THEN NULL WHEN 11 * NULLIF ( 55, + + 33 + - + ( + 67 ) ) * 19 - + - 99 * NULLIF ( - 52, 87 * + 62 ) THEN - 18 ELSE - - SUM ( DISTINCT 44 ) END + MIN ( - 68 ) WHEN + COALESCE ( MAX ( 39 ), COUNT ( * ), + COUNT ( DISTINCT + 7 ) ) * 49 THEN COUNT ( * ) + + 89 ELSE COUNT ( * ) END AS col0
----
15200
93

query I rowsort
SELECT - ( - 28 )
----
28

query I rowsort
SELECT ALL 40 * - - 13
----
520

query II rowsort
SELECT DISTINCT 53, + 30 AS col0
----
53
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7878
SELECT DISTINCT 7 AS col2, - CAST( + - COALESCE ( - 75, + 74 + - 13 * + - MIN( DISTINCT 99 ) + + 6 DIV - + 92 * + 19 * + + 30 ) AS SIGNED ) DIV - 57 AS col1
----
7
1

skipif mysql # not compatible
query II rowsort label-7878
SELECT DISTINCT 7 AS col2, - CAST ( + - COALESCE ( - 75, + 74 + - 13 * + - MIN ( DISTINCT 99 ) + + 6 / - + 92 * + 19 * + + 30 ) AS INTEGER ) / - 57 AS col1
----
7
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7879
SELECT + 4 DIV + - 44
----
0

skipif mysql # not compatible
query I rowsort label-7879
SELECT + 4 / + - 44
----
0

query II rowsort
SELECT + 16 * + + 99 * + 7 AS col2, 90 * + + 32 AS col1
----
11088
2880

query I rowsort
SELECT ALL + 76 col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7882
SELECT + ( - + CAST( 70 AS SIGNED ) ) AS col0, - 98 * - - 57
----
-70
-5586

skipif mysql # not compatible
query II rowsort label-7882
SELECT + ( - + CAST ( 70 AS INTEGER ) ) AS col0, - 98 * - - 57
----
-70
-5586

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7883
SELECT ALL - MIN( 93 ) DIV 82 * - 53 * + 89 + - ( + 23 ) AS col1
----
4694

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL - MIN ( 93 ) / 82 * - 53 * + 89 + - ( + 23 ) AS col1
----
4694

query II rowsort
SELECT 41 AS col1, + 4 AS col1
----
41
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7885
SELECT + 81 AS col1, 10 + - CAST( NULL AS DECIMAL ) - + - 8 / COUNT( * ) AS col1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-7885
SELECT + 81 AS col1, 10 + - CAST ( NULL AS REAL ) - + - 8 / COUNT ( * ) AS col1
----
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT + + CASE NULLIF ( + ( - - CAST( NULL AS SIGNED ) ), NULLIF ( - 20, + 75 ) * + + 67 * + 57 ) WHEN + + 14 THEN - 20 / + + 71 * - 40 * + - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT + + CASE NULLIF ( + ( - - CAST ( NULL AS INTEGER ) ), NULLIF ( - 20, + 75 ) * + + 67 * + 57 ) WHEN + + 14 THEN - 20 / + + 71 * - 40 * + - 19 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT ALL + - 6 * + 17 * + 47 + - COUNT( * )
----
-4795

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL + - 6 * + 17 * + 47 + - COUNT ( * )
----
-4795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7888
SELECT DISTINCT + 86 DIV 69 + + SUM( - 57 )
----
-56

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT + 86 / 69 + + SUM ( - 57 )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-7889
SELECT + COUNT( * ) AS col2, + 0 * + + 2 + - + 75 * + 61 AS col2
----
1
-4575

skipif mysql # not compatible
query II rowsort label-7889
SELECT + COUNT ( * ) AS col2, + 0 * + + 2 + - + 75 * + 61 AS col2
----
1
-4575

query I rowsort
SELECT DISTINCT + + 10
----
10

query II rowsort
SELECT + 5, 46 AS col0
----
5
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7892
SELECT + 98 + 84 - + - COUNT( * ) AS col2, 77 * - 98
----
183
-7546

skipif mysql # not compatible
query II rowsort label-7892
SELECT + 98 + 84 - + - COUNT ( * ) AS col2, 77 * - 98
----
183
-7546

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7893
SELECT + COUNT( * ) col2, CAST( NULL AS DECIMAL ) * - 29 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7893
SELECT + COUNT ( * ) col2, CAST ( NULL AS REAL ) * - 29 AS col0
----
1
NULL

query I rowsort
SELECT ALL 90 * - COALESCE ( - 55, 16 ) - 10 * - - 48 + + 0
----
4470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT - CAST( + + 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-7895
SELECT - CAST ( + + 92 AS INTEGER )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7896
SELECT ALL + 92 * CASE 23 WHEN 29 - - 16 * - CAST( + ( + COUNT( * ) ) AS DECIMAL ) THEN 10 + 46 ELSE - CASE + + 59 WHEN + 25 + - 26 THEN - 18 END + - - 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL + 92 * CASE 23 WHEN 29 - - 16 * - CAST ( + ( + COUNT ( * ) ) AS REAL ) THEN 10 + 46 ELSE - CASE + + 59 WHEN + 25 + - 26 THEN - 18 END + - - 87 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7897
SELECT - - 87 - - COALESCE ( - CASE + COUNT( * ) WHEN - 51 + + - 6 THEN + - 27 * - 98 WHEN - CAST( NULL AS SIGNED ) * - NULLIF ( + + ( - 25 ), - 13 ) THEN NULL END, + COALESCE ( 33, CAST( CASE + + 6 WHEN - SUM( - 85 ) * 81 * + COALESCE ( - + 20, + 3 * - 38, + + 8 - - - COUNT( * ) + - 51 * MAX( ALL + 44 ), 95 / 48 ) THEN + MIN( ALL - 71 ) WHEN 24 + COUNT( * ) THEN NULL ELSE NULL END AS SIGNED ) + + 13, 85 ) * - CASE - 82 * + COUNT( 39 ) WHEN + 91 THEN CASE + 27 WHEN + 51 + - 5 * 16 THEN + 98 ELSE + 99 END * - 61 + + NULLIF ( - 68, 96 * - 46 + 77 * 60 ) ELSE - 73 * - 21 + COUNT( * ) END ) * + 62 AS col0
----
-3138477

skipif mysql # not compatible
query I rowsort label-7897
SELECT - - 87 - - COALESCE ( - CASE + COUNT ( * ) WHEN - 51 + + - 6 THEN + - 27 * - 98 WHEN - CAST ( NULL AS INTEGER ) * - NULLIF ( + + ( - 25 ), - 13 ) THEN NULL END, + COALESCE ( 33, CAST ( CASE + + 6 WHEN - SUM ( - 85 ) * 81 * + COALESCE ( - + 20, + 3 * - 38, + + 8 - - - COUNT ( * ) + - 51 * MAX ( ALL + 44 ), 95 / 48 ) THEN + MIN ( ALL - 71 ) WHEN 24 + COUNT ( * ) THEN NULL ELSE NULL END AS INTEGER ) + + 13, 85 ) * - CASE - 82 * + COUNT ( 39 ) WHEN + 91 THEN CASE + 27 WHEN + 51 + - 5 * 16 THEN + 98 ELSE + 99 END * - 61 + + NULLIF ( - 68, 96 * - 46 + 77 * 60 ) ELSE - 73 * - 21 + COUNT ( * ) END ) * + 62 AS col0
----
-3138477

query I rowsort
SELECT 89 + 39
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT ALL + 72 * MIN( 35 )
----
2520

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL + 72 * MIN ( 35 )
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT DISTINCT - 18 * - - 19 * + ( + + MIN( + + 46 ) ) AS col2
----
-15732

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT - 18 * - - 19 * + ( + + MIN ( + + 46 ) ) AS col2
----
-15732

onlyif mysql # DIV for integer division: 
query II rowsort label-7901
SELECT DISTINCT ( 65 ) DIV 91 + + + 23 * - - 80 AS col2, 18 AS col2
----
1840
18

skipif mysql # not compatible
query II rowsort label-7901
SELECT DISTINCT ( 65 ) / 91 + + + 23 * - - 80 AS col2, 18 AS col2
----
1840
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7902
SELECT COUNT( * ) DIV + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7902
SELECT COUNT ( * ) / + 71 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT COUNT( * ) * 64
----
64

skipif mysql # not compatible
query I rowsort label-7903
SELECT COUNT ( * ) * 64
----
64

query I rowsort
SELECT 25 + 36 * - - 32 * + 78 AS col2
----
89881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7905
SELECT ALL - COALESCE ( - COUNT( * ), + - SUM( DISTINCT + 1 ) - - 8 DIV ( - + 84 ) ) + - 37
----
-36

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL - COALESCE ( - COUNT ( * ), + - SUM ( DISTINCT + 1 ) - - 8 / ( - + 84 ) ) + - 37
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7906
SELECT 96 + + 80 / + + 8 * CASE - CASE - + 89 WHEN + - 3 + - - 30 THEN + + 63 END WHEN - - COUNT( * ) * + ( - CAST( NULL AS SIGNED ) ) - - - 18 THEN - 23 WHEN - 76 THEN - ( - + MIN( DISTINCT - 35 ) ) / + - CASE - MAX( ALL - 9 ) WHEN - + COALESCE ( + + 52, 57 / - 78 - + 63 ) THEN - - COUNT( * ) + + - 22 WHEN - - 84 * ( - 68 ) + + CAST( NULL AS SIGNED ) + + 58 + + + 26 * CASE + 23 WHEN COUNT( * ) * 95 THEN NULL ELSE + 82 * + 33 END * CASE - SUM( 13 ) / 82 + - 69 * - 81 WHEN - CAST( NULL AS SIGNED ) + + MIN( - 5 ) * + 96 THEN 9 ELSE NULL END THEN NULL ELSE 98 END + 79 + 25 * + 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT 96 + + 80 / + + 8 * CASE - CASE - + 89 WHEN + - 3 + - - 30 THEN + + 63 END WHEN - - COUNT ( * ) * + ( - CAST ( NULL AS INTEGER ) ) - - - 18 THEN - 23 WHEN - 76 THEN - ( - + MIN ( DISTINCT - 35 ) ) / + - CASE - MAX ( ALL - 9 ) WHEN - + COALESCE ( + + 52, 57 / - 78 - + 63 ) THEN - - COUNT ( * ) + + - 22 WHEN - - 84 * ( - 68 ) + + CAST ( NULL AS INTEGER ) + + 58 + + + 26 * CASE + 23 WHEN COUNT ( * ) * 95 THEN NULL ELSE + 82 * + 33 END * CASE - SUM ( 13 ) / 82 + - 69 * - 81 WHEN - CAST ( NULL AS INTEGER ) + + MIN ( - 5 ) * + 96 THEN 9 ELSE NULL END THEN NULL ELSE 98 END + 79 + 25 * + 30 ELSE NULL END
----
NULL

query I rowsort
SELECT 5 + - 89 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT 12 * - COUNT( - + 75 ) * - - 57
----
-684

skipif mysql # not compatible
query I rowsort label-7908
SELECT 12 * - COUNT ( - + 75 ) * - - 57
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT 15 + + COUNT( * ) + + 76
----
92

skipif mysql # not compatible
query I rowsort label-7909
SELECT 15 + + COUNT ( * ) + + 76
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT ALL - COUNT( * ) + 42 AS col2, - 62
----
41
-62

skipif mysql # not compatible
query II rowsort label-7910
SELECT ALL - COUNT ( * ) + 42 AS col2, - 62
----
41
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7911
SELECT ALL ( - 99 ) + 95 + + 13 DIV 80 * + - 91
----
-4

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL ( - 99 ) + 95 + + 13 / 80 * + - 91
----
-4

query I rowsort
SELECT DISTINCT 20 col2
----
20

query I rowsort
SELECT DISTINCT - 83 + 48
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-7914
SELECT + COUNT( - 53 ) AS col2, + 53
----
1
53

skipif mysql # not compatible
query II rowsort label-7914
SELECT + COUNT ( - 53 ) AS col2, + 53
----
1
53

query I rowsort
SELECT DISTINCT - - 15 AS col0
----
15

query II rowsort
SELECT 17 + - 15 AS col0, 9
----
2
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT DISTINCT - + 26 - + COUNT( * ) + 44 - + + 18 + + 31 * + 9 * ( - 0 ) + - 20 + - 67 + 10
----
-78

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT - + 26 - + COUNT ( * ) + 44 - + + 18 + + 31 * + 9 * ( - 0 ) + - 20 + - 67 + 10
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7918
SELECT ALL 33 DIV COUNT( 9 ) + - NULLIF ( - + 97, - 51 )
----
130

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL 33 / COUNT ( 9 ) + - NULLIF ( - + 97, - 51 )
----
130

query I rowsort
SELECT DISTINCT 42 - - 49 AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7920
SELECT DISTINCT + COUNT( * ) DIV + 13 - 15 col2
----
-15

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT + COUNT ( * ) / + 13 - 15 col2
----
-15

query I rowsort
SELECT 55 * 49 - + + 27 col2
----
2668

query I rowsort
SELECT ALL 99 * + ( - 98 ) * + 87 AS col2
----
-844074

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT MIN( - - 55 ) * - - 14 + - 71 + - 61 - - + 23 + + - 21 AS col1
----
640

skipif mysql # not compatible
query I rowsort label-7923
SELECT MIN ( - - 55 ) * - - 14 + - 71 + - 61 - - + 23 + + - 21 AS col1
----
640

query I rowsort
SELECT 1 * - 37 * 54 AS col0
----
-1998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT CAST( NULL AS SIGNED ) + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT CAST ( NULL AS INTEGER ) + 82 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7926
SELECT ALL - 96 * + - 10 * + 80 * CAST( NULL AS SIGNED ) / - 58 * + - MAX( ALL 22 ) * - 34 - - + MAX( ALL 43 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL - 96 * + - 10 * + 80 * CAST ( NULL AS INTEGER ) / - 58 * + - MAX ( ALL 22 ) * - 34 - - + MAX ( ALL 43 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT + MAX( ALL + + 51 ) + - 81
----
-30

skipif mysql # not compatible
query I rowsort label-7927
SELECT + MAX ( ALL + + 51 ) + - 81
----
-30

query I rowsort
SELECT + 54 * + 35 + + + 32
----
1922

query I rowsort
SELECT ( 63 ) * - 73 + + + ( - - 54 ) * - + ( - 38 ) * - 73 - 86 AS col0
----
-154481

query I rowsort
SELECT ALL - - 49
----
49

query I rowsort
SELECT 11 + + - 92 + - 11
----
-92

query I rowsort
SELECT ALL 88 * 31
----
2728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7933
SELECT 4 * 83 * - 54 - - 4 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT 4 * 83 * - 54 - - 4 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7934
SELECT ALL + COUNT( * ) DIV - COUNT( * ) * + + COUNT( * ), - 42 AS col0
----
-1
-42

skipif mysql # not compatible
query II rowsort label-7934
SELECT ALL + COUNT ( * ) / - COUNT ( * ) * + + COUNT ( * ), - 42 AS col0
----
-1
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7935
SELECT 41 * - + COALESCE ( - - CAST( NULL AS SIGNED ), ( ( - ( - + 70 ) ) ) DIV - 13 ) + - - 88
----
293

skipif mysql # not compatible
query I rowsort label-7935
SELECT 41 * - + COALESCE ( - - CAST ( NULL AS INTEGER ), ( ( - ( - + 70 ) ) ) / - 13 ) + - - 88
----
293

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT 16 + + + MIN( + 34 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-7936
SELECT 16 + + + MIN ( + 34 ) AS col2
----
50

query I rowsort
SELECT ALL + 41 * + 79 AS col2
----
3239

query II rowsort
SELECT DISTINCT 43 col1, 75 * 64 AS col0
----
43
4800

query II rowsort
SELECT 25 + - - 79 - - 68 AS col0, + 55
----
172
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT DISTINCT + COUNT( * ) * - + SUM( ALL - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT + COUNT ( * ) * - + SUM ( ALL - 74 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7941
SELECT 35 / + - CASE + 51 WHEN 47 THEN NULL WHEN + COUNT( ALL + 35 ) THEN - + 40 * - 84 + COUNT( * ) * - 81 ELSE NULL END AS col2, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7941
SELECT 35 / + - CASE + 51 WHEN 47 THEN NULL WHEN + COUNT ( ALL + 35 ) THEN - + 40 * - 84 + COUNT ( * ) * - 81 ELSE NULL END AS col2, - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7942
SELECT ALL - NULLIF ( + 54, + 54 + + CAST( NULL AS SIGNED ) ) + - 3 + - COALESCE ( + 54, 60 + 96 )
----
-111

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL - NULLIF ( + 54, + 54 + + CAST ( NULL AS INTEGER ) ) + - 3 + - COALESCE ( + 54, 60 + 96 )
----
-111

query I rowsort
SELECT 6 * + + 24 AS col2
----
144

query I rowsort
SELECT ALL 81 + + 93 AS col0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT ALL - MIN( DISTINCT - + 94 ) + + + 27 * + 59
----
1687

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL - MIN ( DISTINCT - + 94 ) + + + 27 * + 59
----
1687

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT 31 * + ( + + COUNT( * ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7946
SELECT 31 * + ( + + COUNT ( * ) ) AS col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7947
SELECT ALL 57 DIV + + ( - 50 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL 57 / + + ( - 50 ) AS col0
----
-1

query I rowsort
SELECT 5 + - 96 AS col1
----
-91

query II rowsort
SELECT 8 AS col0, - 58 * - 52
----
8
3016

query I rowsort
SELECT ALL - 79 + + 60
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT DISTINCT COUNT( ALL + - 37 )
----
1

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT COUNT ( ALL + - 37 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7952
SELECT 30 - + + COALESCE ( - COUNT( * ), + CAST( NULL AS SIGNED ) ) DIV - MIN( + - 62 ) + - 20
----
10

skipif mysql # not compatible
query I rowsort label-7952
SELECT 30 - + + COALESCE ( - COUNT ( * ), + CAST ( NULL AS INTEGER ) ) / - MIN ( + - 62 ) + - 20
----
10

query I rowsort
SELECT 60 col1
----
60

query I rowsort
SELECT ALL - - 47 AS col2
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7955
SELECT + - COUNT( * ) AS col1, 0 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-7955
SELECT + - COUNT ( * ) AS col1, 0 AS col0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7956
SELECT - 44 * AVG ( DISTINCT - - 64 ) - CAST( NULL AS SIGNED ) + - 56, ( - - 38 ) AS col2
----
NULL
38

skipif mysql # not compatible
query II rowsort label-7956
SELECT - 44 * AVG ( DISTINCT - - 64 ) - CAST ( NULL AS INTEGER ) + - 56, ( - - 38 ) AS col2
----
NULL
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT ALL 31 * + CASE - MAX( ALL - 80 ) WHEN - - 92 THEN - 79 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL 31 * + CASE - MAX ( ALL - 80 ) WHEN - - 92 THEN - 79 END AS col2
----
NULL

query I rowsort
SELECT 78 * - 2 col0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7959
SELECT ALL + 92 * + MIN( + 62 ) * - 36 * CAST( NULL AS SIGNED ) + ( - 83 ) + - COUNT( * ), CAST( - 31 AS SIGNED ) + - 27 AS col1
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-7959
SELECT ALL + 92 * + MIN ( + 62 ) * - 36 * CAST ( NULL AS INTEGER ) + ( - 83 ) + - COUNT ( * ), CAST ( - 31 AS INTEGER ) + - 27 AS col1
----
NULL
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7960
SELECT ALL - 93 * - - CAST( NULL AS SIGNED ) - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL - 93 * - - CAST ( NULL AS INTEGER ) - 27
----
NULL

query I rowsort
SELECT DISTINCT + + CASE 30 WHEN + ( - 69 ) - + + 65 THEN - 13 * + 61 + + - 84 * + 23 WHEN + 45 THEN NULL ELSE 14 END * - 9 * - 10
----
1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7962
SELECT + 58 + + - CAST( + - ( MIN( + 75 ) ) AS SIGNED ) col1, + 78 AS col1
----
133
78

skipif mysql # not compatible
query II rowsort label-7962
SELECT + 58 + + - CAST ( + - ( MIN ( + 75 ) ) AS INTEGER ) col1, + 78 AS col1
----
133
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT 48 DIV 62 DIV + 77 * + 8 - - + 42 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7963
SELECT 48 / 62 / + 77 * + 8 - - + 42 AS col2
----
42

query I rowsort
SELECT ALL - ( + - 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT + CASE 96 WHEN - 19 THEN ( 41 ) * - NULLIF ( ( + + COUNT( DISTINCT - 77 ) ), 87 + - 5 * + - 9 ) + - 37 * + + 85 + - - 96 * + 85 END * + 64 * + MIN( ALL 33 ) * + 65 + + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7965
SELECT + CASE 96 WHEN - 19 THEN ( 41 ) * - NULLIF ( ( + + COUNT ( DISTINCT - 77 ) ), 87 + - 5 * + - 9 ) + - 37 * + + 85 + - - 96 * + 85 END * + 64 * + MIN ( ALL 33 ) * + 65 + + + 87
----
NULL

query I rowsort
SELECT + ( 36 ) * + 13 * + 95
----
44460

query I rowsort
SELECT ALL + + 72 AS col0
----
72

query I rowsort
SELECT ALL + + 56 AS col2
----
56

query I rowsort
SELECT ALL + 15 + 3
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT + ( + MAX( 80 ) ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7970
SELECT + ( + MAX ( 80 ) ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT + COUNT( * ) * + - 69 + + 29 * - 61 AS col2
----
-1838

skipif mysql # not compatible
query I rowsort label-7971
SELECT + COUNT ( * ) * + - 69 + + 29 * - 61 AS col2
----
-1838

query I rowsort
SELECT + NULLIF ( + 77, + 3 ) AS col0
----
77

query I rowsort
SELECT ALL 17 + + 90 AS col2
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7974
SELECT 64 col0, ( 32 ) / 85 + - 3 * - MAX( + CAST( NULL AS SIGNED ) ) + + 73 + + + COUNT( * ) + + 11 / + 54
----
64
NULL

skipif mysql # not compatible
query II rowsort label-7974
SELECT 64 col0, ( 32 ) / 85 + - 3 * - MAX ( + CAST ( NULL AS INTEGER ) ) + + 73 + + + COUNT ( * ) + + 11 / + 54
----
64
NULL

query I rowsort
SELECT + 76 + + 95 AS col1
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-7976
SELECT ALL 81 + COUNT( * ) AS col0, 96
----
82
96

skipif mysql # not compatible
query II rowsort label-7976
SELECT ALL 81 + COUNT ( * ) AS col0, 96
----
82
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT DISTINCT COALESCE ( - COUNT( DISTINCT - 54 ), + + 43 ) * - - 57 + 1 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT COALESCE ( - COUNT ( DISTINCT - 54 ), + + 43 ) * - - 57 + 1 AS col0
----
-56

query I rowsort
SELECT 83 * + 55 + - 20 + + 67 * - + 33 * - 31 - + 98 - + 12 AS col1
----
72976

onlyif mysql # DIV for integer division: 
query I rowsort label-7979
SELECT ALL - COALESCE ( - - 80, 83 + - 81 - + - 40 DIV - NULLIF ( + + 98, - - 67 ) ) + + 19 * - 14
----
-346

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL - COALESCE ( - - 80, 83 + - 81 - + - 40 / - NULLIF ( + + 98, - - 67 ) ) + + 19 * - 14
----
-346

query II rowsort
SELECT DISTINCT 4 AS col2, + 61 col0
----
4
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL COUNT( * ) + + 90 * + COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL COUNT ( * ) + + 90 * + COUNT ( * ) AS col0
----
91

query II rowsort
SELECT 99 AS col0, 14
----
99
14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7983
SELECT + 16 + - ( 51 ) + + NULLIF ( 34, - 19 ) + + 59 * - - COUNT( 90 ) + - CASE - + 8 WHEN - 2 * + 58 - 86 * 53 THEN NULL WHEN + 22 THEN NULL WHEN + 38 THEN NULL ELSE - 84 END * + 14 * - COUNT( * ) - - - 89 + + 80 * - CAST( NULL AS DECIMAL ) + COALESCE ( + 71, + 66 / - - ( 91 ) ) / + 1 * + 89 * + SUM( - 88 ) + + - 24 / 83 * 59 + + ( 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT + 16 + - ( 51 ) + + NULLIF ( 34, - 19 ) + + 59 * - - COUNT ( 90 ) + - CASE - + 8 WHEN - 2 * + 58 - 86 * 53 THEN NULL WHEN + 22 THEN NULL WHEN + 38 THEN NULL ELSE - 84 END * + 14 * - COUNT ( * ) - - - 89 + + 80 * - CAST ( NULL AS REAL ) + COALESCE ( + 71, + 66 / - - ( 91 ) ) / + 1 * + 89 * + SUM ( - 88 ) + + - 24 / 83 * 59 + + ( 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7984
SELECT 80 AS col0, COUNT( - 64 ) * CASE - - 79 WHEN 97 THEN + 14 * + 80 * - 68 + - 73 * + 63 + 85 + - 44 + - 89 END * 16 * + 88 * + + 79 * - 18 * - 57 - - + 86 AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-7984
SELECT 80 AS col0, COUNT ( - 64 ) * CASE - - 79 WHEN 97 THEN + 14 * + 80 * - 68 + - 73 * + 63 + 85 + - 44 + - 89 END * 16 * + 88 * + + 79 * - 18 * - 57 - - + 86 AS col2
----
80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT COUNT( + 63 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT COUNT ( + 63 ) col2
----
1

query I rowsort
SELECT + 86 + - 61 AS col0
----
25

query I rowsort
SELECT - 92 * + 26 AS col2
----
-2392

query I rowsort
SELECT ALL - 75 * + - NULLIF ( + NULLIF ( + 59, + 20 + + - 90 ), - 57 ) * + 36 - ( 27 ) - + 81 AS col2
----
159192

query I rowsort
SELECT ALL + 20 * 95
----
1900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7990
SELECT ALL ( 95 ) - CAST( + + 75 AS SIGNED ) col0
----
20

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL ( 95 ) - CAST ( + + 75 AS INTEGER ) col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT DISTINCT 26 * - COUNT( * ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT 26 * - COUNT ( * ) col1
----
-26

query I rowsort
SELECT ALL - NULLIF ( + 8, - + 39 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT - + COUNT( * ) * + COUNT( * ) * - 65 + + 38 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-7993
SELECT - + COUNT ( * ) * + COUNT ( * ) * - 65 + + 38 AS col2
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-7994
SELECT ALL - + 71 * + COUNT( * ), ( - 14 ) * - MIN( ALL - 68 ) AS col1
----
-71
-952

skipif mysql # not compatible
query II rowsort label-7994
SELECT ALL - + 71 * + COUNT ( * ), ( - 14 ) * - MIN ( ALL - 68 ) AS col1
----
-71
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT ALL + 63 * COUNT( 24 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL + 63 * COUNT ( 24 ) AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7996
SELECT + COUNT( * ) + + - CAST( - 9 AS SIGNED ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7996
SELECT + COUNT ( * ) + + - CAST ( - 9 AS INTEGER ) AS col1
----
10

query II rowsort
SELECT ALL + 82 col0, - 44 AS col2
----
82
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT - 51 * + + COUNT( * ) * + ( - 24 ) + 62
----
1286

skipif mysql # not compatible
query I rowsort label-7998
SELECT - 51 * + + COUNT ( * ) * + ( - 24 ) + 62
----
1286

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT - 21 * + - 44 * - - COUNT( ALL - ( - 49 ) )
----
924

skipif mysql # not compatible
query I rowsort label-7999
SELECT - 21 * + - 44 * - - COUNT ( ALL - ( - 49 ) )
----
924

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT + - 67 DIV + - ( + - 10 ) + - + 84 * + 2 AS col2
----
-174

skipif mysql # not compatible
query I rowsort label-8000
SELECT + - 67 / + - ( + - 10 ) + - + 84 * + 2 AS col2
----
-174

onlyif mysql # aggregate syntax: 
query II rowsort label-8001
SELECT ALL + - 95 AS col2, - SUM( DISTINCT + 65 ) + - CASE + + SUM( 40 ) WHEN - 10 THEN - 7 * + 83 + 98 * + 17 / COUNT( * ) * + 43 ELSE NULL END + + + 95 - - 34
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-8001
SELECT ALL + - 95 AS col2, - SUM ( DISTINCT + 65 ) + - CASE + + SUM ( 40 ) WHEN - 10 THEN - 7 * + 83 + 98 * + 17 / COUNT ( * ) * + 43 ELSE NULL END + + + 95 - - 34
----
-95
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8002
SELECT - COUNT( - 26 ) * CASE 15 WHEN 16 + - 29 * - + COUNT( * ) THEN + COALESCE ( + 64, - 92 * - + 62 ) WHEN - CAST( NULL AS SIGNED ) * - 19 THEN ( - + 5 ) * + ( 78 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT - COUNT ( - 26 ) * CASE 15 WHEN 16 + - 29 * - + COUNT ( * ) THEN + COALESCE ( + 64, - 92 * - + 62 ) WHEN - CAST ( NULL AS INTEGER ) * - 19 THEN ( - + 5 ) * + ( 78 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 34 * + 35 + - - 62 col0
----
-1128

onlyif mysql # aggregate syntax: 
query II rowsort label-8004
SELECT ALL + + COUNT( * ) AS col1, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-8004
SELECT ALL + + COUNT ( * ) AS col1, COUNT ( * ) AS col1
----
1
1

query II rowsort
SELECT + 46 AS col0, 7
----
46
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8006
SELECT DISTINCT + 23 AS col1, CAST( - + 38 AS SIGNED )
----
23
-38

skipif mysql # not compatible
query II rowsort label-8006
SELECT DISTINCT + 23 AS col1, CAST ( - + 38 AS INTEGER )
----
23
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8007
SELECT ALL 40 * - COALESCE ( + - 15, CAST( NULL AS SIGNED ), CAST( - + 11 AS SIGNED ) * + COUNT( * ) + 47 ) + 1 * - COALESCE ( + + 2, + COUNT( * ) DIV + + ( 23 ) - - + ( - 12 ) ) AS col2
----
598

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL 40 * - COALESCE ( + - 15, CAST ( NULL AS INTEGER ), CAST ( - + 11 AS INTEGER ) * + COUNT ( * ) + 47 ) + 1 * - COALESCE ( + + 2, + COUNT ( * ) / + + ( 23 ) - - + ( - 12 ) ) AS col2
----
598

query I rowsort
SELECT ALL + + 44 AS col1
----
44

query I rowsort
SELECT - 67 * - 34
----
2278

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8010
SELECT 59 DIV + COUNT( ALL CAST( - 21 AS DECIMAL ) ) + 67 + 27 + + 29 + - 95
----
87

skipif mysql # not compatible
query I rowsort label-8010
SELECT 59 / + COUNT ( ALL CAST ( - 21 AS REAL ) ) + 67 + 27 + + 29 + - 95
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT ALL - COALESCE ( + 86, 22, - NULLIF ( + 6, + 21 - + COUNT( * ) + + - 50 * - 99 * + 5 + - 89 ) - COUNT( ALL + 8 ) ) * 26 + 63
----
-2173

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL - COALESCE ( + 86, 22, - NULLIF ( + 6, + 21 - + COUNT ( * ) + + - 50 * - 99 * + 5 + - 89 ) - COUNT ( ALL + 8 ) ) * 26 + 63
----
-2173

query II rowsort
SELECT + 53, 6 AS col1
----
53
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL + SUM( 80 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL + SUM ( 80 ) col2
----
80

query I rowsort
SELECT 50 * 42 + - 82
----
2018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8015
SELECT ALL + 26 * - 10 + COUNT( - - COALESCE ( + - 4, - 69 - - 41 + + 84 + + 73 * + CASE - 4 WHEN - 23 THEN 93 * CAST( NULL AS SIGNED ) + + + 44 END * + ( + 93 ) + 36 * + CAST( NULL AS SIGNED ) ) ) col1
----
-259

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL + 26 * - 10 + COUNT ( - - COALESCE ( + - 4, - 69 - - 41 + + 84 + + 73 * + CASE - 4 WHEN - 23 THEN 93 * CAST ( NULL AS INTEGER ) + + + 44 END * + ( + 93 ) + 36 * + CAST ( NULL AS INTEGER ) ) ) col1
----
-259

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8016
SELECT ALL + AVG ( 0 ) * + 44 + + CASE WHEN NOT CASE WHEN NULL IS NOT NULL THEN NULLIF ( + - ( + 93 ), - 90 ) END IS NOT NULL THEN - 36 * - 44 + + - CAST( + - 22 AS SIGNED ) * + 24 END + - CASE - 59 WHEN + 33 THEN - - 12 ELSE NULL END + - 28 + + + 44 + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL + AVG ( 0 ) * + 44 + + CASE WHEN NOT CASE WHEN NULL IS NOT NULL THEN NULLIF ( + - ( + 93 ), - 90 ) END IS NOT NULL THEN - 36 * - 44 + + - CAST ( + - 22 AS INTEGER ) * + 24 END + - CASE - 59 WHEN + 33 THEN - - 12 ELSE NULL END + - 28 + + + 44 + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT COALESCE ( + ( - + NULLIF ( - 60, 49 + COUNT( * ) ) ), 75 + - 20 )
----
60

skipif mysql # not compatible
query I rowsort label-8017
SELECT COALESCE ( + ( - + NULLIF ( - 60, 49 + COUNT ( * ) ) ), 75 + - 20 )
----
60

query I rowsort
SELECT ALL + 60 * + 42 + + + 45 AS col2
----
2565

query II rowsort
SELECT + 70 * 56 AS col0, - 48
----
3920
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8020
SELECT + 4 * CAST( NULL AS SIGNED ) * + MAX( DISTINCT 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8020
SELECT + 4 * CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8021
SELECT - 25 * - + 52 + - + ( - SUM( ALL ( 70 ) ) ) - + 61 AS col0, 29 AS col2
----
1309
29

skipif mysql # not compatible
query II rowsort label-8021
SELECT - 25 * - + 52 + - + ( - SUM ( ALL ( 70 ) ) ) - + 61 AS col0, 29 AS col2
----
1309
29

query II rowsort
SELECT - 34 * - 30 AS col0, 85
----
1020
85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8023
SELECT - NULLIF ( 66, + - 37 ) AS col1, 94 / + ( + - CAST( NULL AS DECIMAL ) ) AS col0
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-8023
SELECT - NULLIF ( 66, + - 37 ) AS col1, 94 / + ( + - CAST ( NULL AS REAL ) ) AS col0
----
-66
NULL

query I rowsort
SELECT + 10 * + 33 AS col1
----
330

query I rowsort
SELECT DISTINCT 21 * - 68
----
-1428

query I rowsort
SELECT - ( + 63 )
----
-63

query I rowsort
SELECT + 80 * 13 * + 91 * - ( 84 ) AS col1
----
-7949760

query I rowsort
SELECT DISTINCT 86 * 96
----
8256

query I rowsort
SELECT DISTINCT NULLIF ( + 80, - 38 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT + 22 * - ( + 85 ) * - COUNT( * )
----
1870

skipif mysql # not compatible
query I rowsort label-8030
SELECT + 22 * - ( + 85 ) * - COUNT ( * )
----
1870

query I rowsort
SELECT + 26 + - - 71 + 12 AS col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT - - 15 * - + 11 * + CASE + COUNT( * ) WHEN - 36 THEN NULL WHEN 72 * - 15 * - 92 + + 59 + - + COUNT( * ) THEN NULL ELSE + COUNT( * ) * 25 + + 46 END * + MIN( DISTINCT - 17 ) + - NULLIF ( - 99, - 89 + 11 ) + - 96
----
199158

skipif mysql # not compatible
query I rowsort label-8032
SELECT - - 15 * - + 11 * + CASE + COUNT ( * ) WHEN - 36 THEN NULL WHEN 72 * - 15 * - 92 + + 59 + - + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) * 25 + + 46 END * + MIN ( DISTINCT - 17 ) + - NULLIF ( - 99, - 89 + 11 ) + - 96
----
199158

onlyif mysql # DIV for integer division: 
query I rowsort label-8033
SELECT ALL - 9 * + 41 + + ( + 93 ) DIV ( 7 ) * - - 56 + 93 AS col2
----
452

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL - 9 * + 41 + + ( + 93 ) / ( 7 ) * - - 56 + 93 AS col2
----
452

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT + 76 - 40 * COUNT( ALL + 86 )
----
36

skipif mysql # not compatible
query I rowsort label-8034
SELECT + 76 - 40 * COUNT ( ALL + 86 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL + 59 * + - COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL + 59 * + - COUNT ( * ) AS col1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8036
SELECT - 85 DIV + 63 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8036
SELECT - 85 / + 63 AS col1
----
-1

query I rowsort
SELECT ALL 55 + - + 68 AS col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT - 51 DIV + 41 + 42 + + 21
----
62

skipif mysql # not compatible
query I rowsort label-8038
SELECT - 51 / + 41 + 42 + + 21
----
62

query II rowsort
SELECT DISTINCT + 66 + + + 90 AS col0, 71
----
156
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT - SUM( ALL - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-8040
SELECT - SUM ( ALL - 38 )
----
38

query I rowsort
SELECT 6 * + + 59 AS col1
----
354

query I rowsort
SELECT DISTINCT - ( 10 ) * - 2 AS col1
----
20

query I rowsort
SELECT ALL - 92 * - 91
----
8372

query II rowsort
SELECT DISTINCT - 92 AS col1, + 14 * 99 + - 50
----
-92
1336

onlyif mysql # aggregate syntax: 
query II rowsort label-8045
SELECT 31 * ( COUNT( * ) ), + MAX( 94 ) * - - 94 AS col0
----
31
8836

skipif mysql # not compatible
query II rowsort label-8045
SELECT 31 * ( COUNT ( * ) ), + MAX ( 94 ) * - - 94 AS col0
----
31
8836

query I rowsort
SELECT - 40 * + 60 + + - 46 * + - 43 AS col0
----
-422

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT 15 + + 29 * - COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8047
SELECT 15 + + 29 * - COUNT ( * ) AS col0
----
-14

query I rowsort
SELECT 21 * 75 AS col0
----
1575

query I rowsort
SELECT 40 + - + 19 AS col2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT ALL 74 DIV 73 * 16
----
16

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL 74 / 73 * 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT COUNT( * ) * - + 22
----
-22

skipif mysql # not compatible
query I rowsort label-8051
SELECT COUNT ( * ) * - + 22
----
-22

query II rowsort
SELECT DISTINCT 68 col1, 40
----
68
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8053
SELECT ALL 20 AS col0, - NULLIF ( + - 11, 87 ) * - + COUNT( * ) + - NULLIF ( + 82, 25 )
----
20
-93

skipif mysql # not compatible
query II rowsort label-8053
SELECT ALL 20 AS col0, - NULLIF ( + - 11, 87 ) * - + COUNT ( * ) + - NULLIF ( + 82, 25 )
----
20
-93

query II rowsort
SELECT - 22 AS col1, + 90
----
-22
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8055
SELECT ALL + 48 DIV - 4
----
-12

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL + 48 / - 4
----
-12

query I rowsort
SELECT - 10 + 73 col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8057
SELECT CASE + CAST( NULL AS SIGNED ) WHEN - + COUNT( * ) + - 98 THEN NULL WHEN - 67 THEN - 58 ELSE + + 75 END + + 78 AS col1
----
153

skipif mysql # not compatible
query I rowsort label-8057
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN - + COUNT ( * ) + - 98 THEN NULL WHEN - 67 THEN - 58 ELSE + + 75 END + + 78 AS col1
----
153

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8058
SELECT 63 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT 63 * - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT DISTINCT 30 AS col2, 16 AS col0
----
30
16

query I rowsort
SELECT - CASE - 38 WHEN - + 2 THEN 9 * 11 END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8061
SELECT ALL + 80 + + 18 * + 54 AS col0, + COUNT( * ) DIV - - 96
----
1052
0

skipif mysql # not compatible
query II rowsort label-8061
SELECT ALL + 80 + + 18 * + 54 AS col0, + COUNT ( * ) / - - 96
----
1052
0

query I rowsort
SELECT DISTINCT + 11 + - 61
----
-50

query I rowsort
SELECT + 60 + 2 AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8064
SELECT - - COUNT( * ) AS col1, - 27 - - + 94 * - - 14
----
1
1289

skipif mysql # not compatible
query II rowsort label-8064
SELECT - - COUNT ( * ) AS col1, - 27 - - + 94 * - - 14
----
1
1289

query I rowsort
SELECT ALL 39 + 3 + - 67 * 14 * - 66 col1
----
61950

query II rowsort
SELECT ALL 43 + - 55 + + 95 AS col0, - 32 AS col2
----
83
-32

query I rowsort
SELECT ALL + 97 + - 66 AS col1
----
31

query I rowsort
SELECT ALL - + 53 + 1 AS col2
----
-52

query I rowsort
SELECT + 36 + + 76 AS col2
----
112

query I rowsort
SELECT - 40 * + 37 * - 73 * + 10 - + 25
----
1080375

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT - - COUNT( * ) * + 65 + + 16 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-8071
SELECT - - COUNT ( * ) * + 65 + + 16 AS col1
----
81

query I rowsort
SELECT + ( 88 ) AS col0
----
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8073
SELECT 56 DIV + 56 + 58 * + + CAST( - 79 AS SIGNED ) col2
----
-4581

skipif mysql # not compatible
query I rowsort label-8073
SELECT 56 / + 56 + 58 * + + CAST ( - 79 AS INTEGER ) col2
----
-4581

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8074
SELECT + COUNT( ALL 56 ) * 99 DIV - 28 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8074
SELECT + COUNT ( ALL 56 ) * 99 / - 28 AS col2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8075
SELECT ALL CAST( NULL AS DECIMAL ) / + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL CAST ( NULL AS REAL ) / + + 48
----
NULL

query I rowsort
SELECT 87 * - 27 + + - 46 AS col0
----
-2395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8077
SELECT DISTINCT COALESCE ( - 40, - 21 * + 15 + 81 / + COALESCE ( - 37, + 15 ) + - 78 + + - COUNT( * ) + - COALESCE ( + + 61, + - 55, 40 ) - NULLIF ( + CAST( - 89 AS SIGNED ), - 23 + - 6 ) * - - 21 * + + 95 * - + 64, - ( - 2 ) * - 46 ) - - ( + + 8 ) + + COUNT( * ) + + - 84 * - CASE - + 84 WHEN - - CAST( - CASE - 38 WHEN - 26 * COUNT( * ) + + + 61 + - CAST( + 85 AS SIGNED ) + ( 83 ) THEN + 58 * 27 WHEN 83 + + 76 / - COUNT( * ) THEN - 74 WHEN COUNT( * ) / - COUNT( * ) - - 4 THEN NULL END AS SIGNED ) THEN + 29 * 35 - - 29 WHEN COUNT( * ) + SUM( - 18 ) THEN NULL WHEN 2 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT COALESCE ( - 40, - 21 * + 15 + 81 / + COALESCE ( - 37, + 15 ) + - 78 + + - COUNT ( * ) + - COALESCE ( + + 61, + - 55, 40 ) - NULLIF ( + CAST ( - 89 AS INTEGER ), - 23 + - 6 ) * - - 21 * + + 95 * - + 64, - ( - 2 ) * - 46 ) - - ( + + 8 ) + + COUNT ( * ) + + - 84 * - CASE - + 84 WHEN - - CAST ( - CASE - 38 WHEN - 26 * COUNT ( * ) + + + 61 + - CAST ( + 85 AS INTEGER ) + ( 83 ) THEN + 58 * 27 WHEN 83 + + 76 / - COUNT ( * ) THEN - 74 WHEN COUNT ( * ) / - COUNT ( * ) - - 4 THEN NULL END AS INTEGER ) THEN + 29 * 35 - - 29 WHEN COUNT ( * ) + SUM ( - 18 ) THEN NULL WHEN 2 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 25 * 21
----
525

query I rowsort
SELECT ALL - ( + + 87 ) AS col2
----
-87

query I rowsort
SELECT - 74 * - 11 + 30 AS col2
----
844

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT - MIN( DISTINCT + 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT - MIN ( DISTINCT + 85 )
----
-85

query II rowsort
SELECT 41 + + 87 col0, 73 - 47
----
128
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8083
SELECT CAST( NULL AS SIGNED ) * - - 7 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8083
SELECT CAST ( NULL AS INTEGER ) * - - 7 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8084
SELECT + 92 * - MAX( DISTINCT 8 ) + + 12 DIV + COUNT( * ) AS col0
----
-724

skipif mysql # not compatible
query I rowsort label-8084
SELECT + 92 * - MAX ( DISTINCT 8 ) + + 12 / + COUNT ( * ) AS col0
----
-724

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT 66 + + COALESCE ( + MIN( DISTINCT - 5 ), - 69 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8085
SELECT 66 + + COALESCE ( + MIN ( DISTINCT - 5 ), - 69 ) AS col0
----
61

query I rowsort
SELECT ALL - 69 col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT ALL + 61 * + SUM( - 77 ) AS col0
----
-4697

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL + 61 * + SUM ( - 77 ) AS col0
----
-4697

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL - MIN( ALL + ( - 12 ) )
----
12

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL - MIN ( ALL + ( - 12 ) )
----
12

query II rowsort
SELECT 56 * - 54, 5 AS col2
----
-3024
5

query I rowsort
SELECT DISTINCT + 43 * + 39 AS col1
----
1677

query I rowsort
SELECT ALL NULLIF ( - 69, - + 78 )
----
-69

query II rowsort
SELECT ALL + 62 * - ( + ( 90 ) ), 55 * + 77 * 49 * 53 AS col1
----
-5580
10998295

onlyif mysql # aggregate syntax: 
query II rowsort label-8093
SELECT 40 * + ( MAX( + 96 ) ) AS col2, 16 AS col1
----
3840
16

skipif mysql # not compatible
query II rowsort label-8093
SELECT 40 * + ( MAX ( + 96 ) ) AS col2, 16 AS col1
----
3840
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT DISTINCT + - 52 + + 39 + + 5 * - ( + COUNT( * ) ) - + 24 col0
----
-42

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT + - 52 + + 39 + + 5 * - ( + COUNT ( * ) ) - + 24 col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8095
SELECT + - COUNT( * ) * + CAST( + COUNT( 76 ) AS SIGNED ) DIV - - 41 + + COUNT( * ) + + ( + + 1 ) * + - 43 * + 66 + - MAX( - 54 ) + - - 32 AS col0
----
-2751

skipif mysql # not compatible
query I rowsort label-8095
SELECT + - COUNT ( * ) * + CAST ( + COUNT ( 76 ) AS INTEGER ) / - - 41 + + COUNT ( * ) + + ( + + 1 ) * + - 43 * + 66 + - MAX ( - 54 ) + - - 32 AS col0
----
-2751

query I rowsort
SELECT DISTINCT - + 22 + + 58 * - - 27
----
1544

query I rowsort
SELECT DISTINCT + 81 + - - 32
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT DISTINCT MIN( - + 82 ) + - ( + 26 ) AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT MIN ( - + 82 ) + - ( + 26 ) AS col0
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-8099
SELECT - 58 DIV - + 74
----
0

skipif mysql # not compatible
query I rowsort label-8099
SELECT - 58 / - + 74
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8100
SELECT ALL - 26 + 2 + 84 * + - COUNT( * ) * + - 15 DIV COUNT( * ) * 57
----
71796

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL - 26 + 2 + 84 * + - COUNT ( * ) * + - 15 / COUNT ( * ) * 57
----
71796

query I rowsort
SELECT ALL - 68 + + 36 AS col2
----
-32

query I rowsort
SELECT - ( - + 93 ) AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8103
SELECT DISTINCT - + COALESCE ( - + NULLIF ( - COUNT( * ), + - COUNT( * ) + 55 + - NULLIF ( + 32, + CAST( NULL AS SIGNED ) ) + + 81 DIV 28 ), ( - 6 ) ) DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT - + COALESCE ( - + NULLIF ( - COUNT ( * ), + - COUNT ( * ) + 55 + - NULLIF ( + 32, + CAST ( NULL AS INTEGER ) ) + + 81 / 28 ), ( - 6 ) ) / 65
----
0

query I rowsort
SELECT - + 93 + NULLIF ( - 10, + 4 ) AS col0
----
-103

query I rowsort
SELECT ALL 73 + 27 * 94 * 55
----
139663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8106
SELECT ALL + 7 + - - ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL + 7 + - - ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT - 56 * + COUNT( * ) * - 27 + 90 AS col2
----
1602

skipif mysql # not compatible
query I rowsort label-8107
SELECT - 56 * + COUNT ( * ) * - 27 + 90 AS col2
----
1602

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT + 60 - + MAX( DISTINCT + 71 )
----
-11

skipif mysql # not compatible
query I rowsort label-8108
SELECT + 60 - + MAX ( DISTINCT + 71 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL + - NULLIF ( + 10, + 41 + - MIN( 12 ) + ( 48 ) + - 84 * - 48 / + COUNT( * ) * - + 30 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL + - NULLIF ( + 10, + 41 + - MIN ( 12 ) + ( 48 ) + - 84 * - 48 / + COUNT ( * ) * - + 30 ) AS col2
----
-10

query I rowsort
SELECT ( 26 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT + COUNT( * ) * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8111
SELECT + COUNT ( * ) * - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT + CASE - - 56 WHEN - NULLIF ( + COUNT( + 30 ), - + COUNT( * ) + 20 ) / ( 22 ) + - - 23 THEN COUNT( * ) * + + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8112
SELECT + CASE - - 56 WHEN - NULLIF ( + COUNT ( + 30 ), - + COUNT ( * ) + 20 ) / ( 22 ) + - - 23 THEN COUNT ( * ) * + + 57 END
----
NULL

query I rowsort
SELECT + ( + 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT + 11 - - 38 + + COUNT( * ) * - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-8114
SELECT + 11 - - 38 + + COUNT ( * ) * - COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT + NULLIF ( + 85, + CASE - COUNT( * ) WHEN + ( + 88 ) + + 82 THEN - 45 END + 24 )
----
85

skipif mysql # not compatible
query I rowsort label-8115
SELECT + NULLIF ( + 85, + CASE - COUNT ( * ) WHEN + ( + 88 ) + + 82 THEN - 45 END + 24 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT DISTINCT 10 DIV + - 58 * - 70 * + 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT 10 / + - 58 * - 70 * + 44 AS col0
----
0

query II rowsort
SELECT ALL + 76 AS col0, - 77 - - NULLIF ( + 38, 65 ) + - COALESCE ( 31, + 29 * + 29 + + + ( - 48 ) ) * - - 53 col0
----
76
-1682

query I rowsort
SELECT ALL - 29 * - 49 AS col2
----
1421

query I rowsort
SELECT + 39 * + 80 AS col0
----
3120

query I rowsort
SELECT ALL 88 * 24 + 89
----
2201

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT - COUNT( * ) - + NULLIF ( 61, - - 91 )
----
-62

skipif mysql # not compatible
query I rowsort label-8121
SELECT - COUNT ( * ) - + NULLIF ( 61, - - 91 )
----
-62

query II rowsort
SELECT + 15 col2, 38 col1
----
15
38

query I rowsort
SELECT + ( 0 ) AS col1
----
0

query I rowsort
SELECT + 72 col0
----
72

query I rowsort
SELECT ALL COALESCE ( + 73, + 25 * - - 15 ) * + - 19 + - 94 + 38
----
-1443

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT + MAX( - 91 ) + - 15 + - 82 AS col2
----
-188

skipif mysql # not compatible
query I rowsort label-8126
SELECT + MAX ( - 91 ) + - 15 + - 82 AS col2
----
-188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8127
SELECT - 62 DIV COUNT( - 15 )
----
-62

skipif mysql # not compatible
query I rowsort label-8127
SELECT - 62 / COUNT ( - 15 )
----
-62

query I rowsort
SELECT + 15 + + 74
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL + MIN( + - 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL + MIN ( + - 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL + CASE + + 83 WHEN 64 * + 74 THEN - 44 / 4 WHEN - 10 + + 65 THEN NULL ELSE NULL END * - - 74 * - 69 + AVG ( DISTINCT + + 37 ) + - 34 + - 90 + 63 * + 57 * - - 81 * + 43 * 39 + SUM( 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + CASE + + 83 WHEN 64 * + 74 THEN - 44 / 4 WHEN - 10 + + 65 THEN NULL ELSE NULL END * - - 74 * - 69 + AVG ( DISTINCT + + 37 ) + - 34 + - 90 + 63 * + 57 * - - 81 * + 43 * 39 + SUM ( 51 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT ALL + CAST( 38 AS SIGNED ) + + 94 * + - ( + 19 ) * - 48
----
85766

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL + CAST ( 38 AS INTEGER ) + + 94 * + - ( + 19 ) * - 48
----
85766

query I rowsort
SELECT - 78 + 13 AS col0
----
-65

query I rowsort
SELECT ALL - ( 94 ) - - 55 + - + 19 col1
----
-58

query I rowsort
SELECT - 31 * 1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT + COUNT( ( + 49 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8135
SELECT + COUNT ( ( + 49 ) ) AS col2
----
1

query I rowsort
SELECT ALL - 76 - 62
----
-138

query I rowsort
SELECT - + CASE - - 60 WHEN 54 THEN NULL WHEN + 9 THEN - 60 * - 73 + + 71 END * 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8138
SELECT DISTINCT COALESCE ( + - 32, - CAST( COUNT( ALL - - 43 ) AS SIGNED ), + + 17 / - 64, COUNT( * ) ) / + CAST( NULL AS SIGNED ) * - 90 AS col0, 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-8138
SELECT DISTINCT COALESCE ( + - 32, - CAST ( COUNT ( ALL - - 43 ) AS INTEGER ), + + 17 / - 64, COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) * - 90 AS col0, 60
----
NULL
60

onlyif mysql # DIV for integer division: 
query II rowsort label-8139
SELECT - NULLIF ( 44, 3 ) AS col2, - 58 * 24 DIV - 14
----
-44
99

skipif mysql # not compatible
query II rowsort label-8139
SELECT - NULLIF ( 44, 3 ) AS col2, - 58 * 24 / - 14
----
-44
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8140
SELECT - + COALESCE ( + 16, - 24 * + 38 ) DIV - 92 * + 12 * - + 87 DIV COALESCE ( + COUNT( - CAST( 38 AS SIGNED ) ), 43 * 81, - 26 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8140
SELECT - + COALESCE ( + 16, - 24 * + 38 ) / - 92 * + 12 * - + 87 / COALESCE ( + COUNT ( - CAST ( 38 AS INTEGER ) ), 43 * 81, - 26 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8141
SELECT DISTINCT - 51 DIV CAST( - + 68 AS SIGNED ) DIV - ( + + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT - 51 / CAST ( - + 68 AS INTEGER ) / - ( + + 71 )
----
0

query II rowsort
SELECT + 83, 26 * + - 6 + - + 81 * + 31 AS col2
----
83
-2667

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8143
SELECT - 70 DIV - - 95 * - COUNT( * ) * + - 14
----
0

skipif mysql # not compatible
query I rowsort label-8143
SELECT - 70 / - - 95 * - COUNT ( * ) * + - 14
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8144
SELECT + 76 DIV - - 39 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8144
SELECT + 76 / - - 39 AS col0
----
1

query I rowsort
SELECT ALL 58 * + 87 AS col2
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT - MAX( DISTINCT 70 ) + + + 8 - + 42 - + 67 * 6 AS col1
----
-506

skipif mysql # not compatible
query I rowsort label-8146
SELECT - MAX ( DISTINCT 70 ) + + + 8 - + 42 - + 67 * 6 AS col1
----
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT + 84 * - MAX( ALL 12 ) + - ( + + 77 )
----
-1085

skipif mysql # not compatible
query I rowsort label-8147
SELECT + 84 * - MAX ( ALL 12 ) + - ( + + 77 )
----
-1085

query I rowsort
SELECT + 16 * + 62 AS col1
----
992

onlyif mysql # DIV for integer division: 
query II rowsort label-8149
SELECT ALL - 80 DIV 33 + + 79 * - 26 AS col0, - 67 - - 85
----
-2056
18

skipif mysql # not compatible
query II rowsort label-8149
SELECT ALL - 80 / 33 + + 79 * - 26 AS col0, - 67 - - 85
----
-2056
18

query I rowsort
SELECT 89 * - 45 + 36 + - 4 + - + 90
----
-4063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8151
SELECT ALL 46 / - + 66 * - 53 / - 22 + - 77 - + 47 + - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * ( - + 4 ) * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL 46 / - + 66 * - 53 / - 22 + - 77 - + 47 + - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * ( - + 4 ) * - + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ( + + 88 ) AS col1
----
88

query I rowsort
SELECT 85 + 39 * - 15 AS col0
----
-500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8154
SELECT DISTINCT 9 DIV ( - MIN( ALL - 67 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT 9 / ( - MIN ( ALL - 67 ) )
----
0

query I rowsort
SELECT ALL 44 * + - 43 * - - 83
----
-157036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8156
SELECT + CAST( - MAX( 36 ) AS SIGNED ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-8156
SELECT + CAST ( - MAX ( 36 ) AS INTEGER ) AS col0
----
-36

query I rowsort
SELECT ALL + - 22 + + NULLIF ( - 44, - 23 )
----
-66

query II rowsort
SELECT - 10 AS col0, 51
----
-10
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8159
SELECT - COUNT( * ) AS col1, NULLIF ( + - 93, + MIN( - - 39 ) )
----
-1
-93

skipif mysql # not compatible
query II rowsort label-8159
SELECT - COUNT ( * ) AS col1, NULLIF ( + - 93, + MIN ( - - 39 ) )
----
-1
-93

query I rowsort
SELECT ALL 10 * 66 + + 60
----
720

onlyif mysql # DIV for integer division: 
query II rowsort label-8161
SELECT 30 * - NULLIF ( 80, 61 ) * - ( 93 ) AS col2, + 6 DIV - + 34 + + 0 AS col0
----
223200
0

skipif mysql # not compatible
query II rowsort label-8161
SELECT 30 * - NULLIF ( 80, 61 ) * - ( 93 ) AS col2, + 6 / - + 34 + + 0 AS col0
----
223200
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8162
SELECT + 99, 11 + - CASE - COUNT( * ) WHEN + 24 THEN - + 1 END AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-8162
SELECT + 99, 11 + - CASE - COUNT ( * ) WHEN + 24 THEN - + 1 END AS col0
----
99
NULL

query II rowsort
SELECT - 62 * - 34, 54 AS col2
----
2108
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT - COALESCE ( + + COUNT( * ), + - 30 * + 12, - - 58 + - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-8164
SELECT - COALESCE ( + + COUNT ( * ), + - 30 * + 12, - - 58 + - 0 )
----
-1

query II rowsort
SELECT - - 79, + NULLIF ( 27, COALESCE ( + - 27, 76 ) ) AS col2
----
79
27

query II rowsort
SELECT 38 AS col2, + 18 + 9 * 30
----
38
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8167
SELECT NULLIF ( COUNT( * ), COALESCE ( - 39, + + 68 * - 10 + - CAST( + + CASE - COUNT( * ) WHEN - 16 THEN + 23 + + - 65 END AS SIGNED ), + 83 ) ) DIV 20 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8167
SELECT NULLIF ( COUNT ( * ), COALESCE ( - 39, + + 68 * - 10 + - CAST ( + + CASE - COUNT ( * ) WHEN - 16 THEN + 23 + + - 65 END AS INTEGER ), + 83 ) ) / 20 * COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8168
SELECT + CASE + NULLIF ( 12, 81 / 20 ) WHEN + 47 THEN + 90 END * 44 - + - COUNT( * ), - 90 + + + 32 AS col2
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-8168
SELECT + CASE + NULLIF ( 12, 81 / 20 ) WHEN + 47 THEN + 90 END * 44 - + - COUNT ( * ), - 90 + + + 32 AS col2
----
NULL
-58

query I rowsort
SELECT + 29 * - 35
----
-1015

query II rowsort
SELECT DISTINCT 12 AS col2, + 14 * 82
----
12
1148

query I rowsort
SELECT ALL - - 54 - 21
----
33

query I rowsort
SELECT 79 * - - 55 AS col0
----
4345

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL MAX( 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL MAX ( 22 ) AS col2
----
22

query I rowsort
SELECT 81 + - 23
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT + MAX( - 58 ) + - 90 col2
----
-148

skipif mysql # not compatible
query I rowsort label-8175
SELECT + MAX ( - 58 ) + - 90 col2
----
-148

query II rowsort
SELECT 31 col2, 91 col2
----
31
91

query I rowsort
SELECT 15 * - + 23
----
-345

query I rowsort
SELECT 50 * 73 AS col0
----
3650

query I rowsort
SELECT DISTINCT - 47 * 61 AS col0
----
-2867

query I rowsort
SELECT 34 + + 84
----
118

query I rowsort
SELECT 40 * + 74 * 77
----
227920

query I rowsort
SELECT DISTINCT - 82 AS col2
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8183
SELECT ALL - 2 DIV + NULLIF ( 39, - 62 DIV COUNT( * ) + - CASE + 55 WHEN - COUNT( * ) THEN + 10 ELSE NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL - 2 / + NULLIF ( 39, - 62 / COUNT ( * ) + - CASE + 55 WHEN - COUNT ( * ) THEN + 10 ELSE NULL END )
----
0

query I rowsort
SELECT DISTINCT - 27 AS col0
----
-27

query I rowsort
SELECT 30 * 14
----
420

query I rowsort
SELECT 66 * 57
----
3762

query I rowsort
SELECT 40 * NULLIF ( - 35, + - 69 ) AS col2
----
-1400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8188
SELECT ALL - 57 + + CASE - ( - + 94 ) WHEN - CAST( NULL AS SIGNED ) * 52 THEN 26 + - 13 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL - 57 + + CASE - ( - + 94 ) WHEN - CAST ( NULL AS INTEGER ) * 52 THEN 26 + - 13 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8189
SELECT ALL + 3 * 41 DIV - - COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL + 3 * 41 / - - COUNT ( * )
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8190
SELECT 56 - + 98 + + CAST( NULL AS SIGNED ) * + 50 * + 11 + - 33 + + AVG ( - + 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT 56 - + 98 + + CAST ( NULL AS INTEGER ) * + 50 * + 11 + - 33 + + AVG ( - + 55 )
----
NULL

query I rowsort
SELECT DISTINCT + 85 * 21
----
1785

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT ALL - 30 + - - CASE 36 WHEN AVG ( - 95 ) + - 52 + 17 THEN NULL WHEN + - 27 / - 1 + + + MIN( - 73 ) THEN - + COUNT( * ) END - - 61 + - 37 + - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL - 30 + - - CASE 36 WHEN AVG ( - 95 ) + - 52 + 17 THEN NULL WHEN + - 27 / - 1 + + + MIN ( - 73 ) THEN - + COUNT ( * ) END - - 61 + - 37 + - 55 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8193
SELECT CASE + COUNT( * ) WHEN - 23 + - CAST( NULL AS SIGNED ) THEN NULL WHEN ( + 25 ) THEN NULL ELSE ( - 23 ) END * - + 1 - MAX( 51 ) * - 9 * - CAST( NULL AS SIGNED ) * 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8193
SELECT CASE + COUNT ( * ) WHEN - 23 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN ( + 25 ) THEN NULL ELSE ( - 23 ) END * - + 1 - MAX ( 51 ) * - 9 * - CAST ( NULL AS INTEGER ) * 98 AS col1
----
NULL

query I rowsort
SELECT ALL - 58 + + + 15 + - + 41
----
-84

query I rowsort
SELECT DISTINCT 3 + - - 99
----
102

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8196
SELECT ALL MIN( + 97 ) + - ( - 7 ) + 93 AS col0, CAST( NULL AS DECIMAL ) * 98 AS col1
----
197
NULL

skipif mysql # not compatible
query II rowsort label-8196
SELECT ALL MIN ( + 97 ) + - ( - 7 ) + 93 AS col0, CAST ( NULL AS REAL ) * 98 AS col1
----
197
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8197
SELECT DISTINCT - ( + + 52 ), CAST( NULL AS SIGNED ) - - COUNT( * ) AS col1
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-8197
SELECT DISTINCT - ( + + 52 ), CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1
----
-52
NULL

query I rowsort
SELECT ALL 50 + + + 32 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT - COUNT( * ) * 88
----
-88

skipif mysql # not compatible
query I rowsort label-8199
SELECT - COUNT ( * ) * 88
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-8200
SELECT + 33 - ( + - MIN( DISTINCT - + 55 ) ) + - + 5 * + 52 + + COALESCE ( - 52, 75 + - COUNT( * ) ) AS col0, 41
----
-334
41

skipif mysql # not compatible
query II rowsort label-8200
SELECT + 33 - ( + - MIN ( DISTINCT - + 55 ) ) + - + 5 * + 52 + + COALESCE ( - 52, 75 + - COUNT ( * ) ) AS col0, 41
----
-334
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT + SUM( ALL - + 64 ) * - + ( + - 52 ) + + - 42
----
-3370

skipif mysql # not compatible
query I rowsort label-8201
SELECT + SUM ( ALL - + 64 ) * - + ( + - 52 ) + + - 42
----
-3370

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT 47 + 27 + + - 94 + - COUNT( * ) + - 38 * + COUNT( * ) * + - COALESCE ( - 3, ( - COUNT( * ) ) * - 21 ) AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-8202
SELECT 47 + 27 + + - 94 + - COUNT ( * ) + - 38 * + COUNT ( * ) * + - COALESCE ( - 3, ( - COUNT ( * ) ) * - 21 ) AS col1
----
-135

query I rowsort
SELECT + + 91 AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8204
SELECT + COUNT( * ) + - 55 DIV COALESCE ( - COALESCE ( - 27, + 37 ), + 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-8204
SELECT + COUNT ( * ) + - 55 / COALESCE ( - COALESCE ( - 27, + 37 ), + 20 )
----
-1

query I rowsort
SELECT + + 22 col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8206
SELECT ALL + COUNT( * ) * - ( + 66 ) DIV + - 42 + NULLIF ( + + 53, + 52 ) + + 8 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL + COUNT ( * ) * - ( + 66 ) / + - 42 + NULLIF ( + + 53, + 52 ) + + 8 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT 40 * NULLIF ( 81, - 33 ) + - COUNT( * ) + - 34
----
3205

skipif mysql # not compatible
query I rowsort label-8207
SELECT 40 * NULLIF ( 81, - 33 ) + - COUNT ( * ) + - 34
----
3205

onlyif mysql # DIV for integer division: 
query I rowsort label-8208
SELECT DISTINCT + 76 DIV 60 - + 12
----
-11

skipif mysql # not compatible
query I rowsort label-8208
SELECT DISTINCT + 76 / 60 - + 12
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8209
SELECT DISTINCT - NULLIF ( CASE - + 62 WHEN COUNT( + + 61 ) * + CAST( - COUNT( * ) AS SIGNED ) THEN + 52 ELSE NULL END, + - 91 + + + 75 * 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT - NULLIF ( CASE - + 62 WHEN COUNT ( + + 61 ) * + CAST ( - COUNT ( * ) AS INTEGER ) THEN + 52 ELSE NULL END, + - 91 + + + 75 * 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT DISTINCT + 26 * + MAX( 38 )
----
988

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT + 26 * + MAX ( 38 )
----
988

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT - CASE 44 WHEN + 31 * - 72 - - 69 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + 3 + - 93 END AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8211
SELECT - CASE 44 WHEN + 31 * - 72 - - 69 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + 3 + - 93 END AS col2
----
90

query I rowsort
SELECT + 76 + - + 25
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8213
SELECT + 16 DIV - 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8213
SELECT + 16 / - 88 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8214
SELECT + COUNT( - 25 ) DIV - 21 * - - 69 - + 62 + + 34 + - 0 DIV - SUM( - ( - 63 ) ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-8214
SELECT + COUNT ( - 25 ) / - 21 * - - 69 - + 62 + + 34 + - 0 / - SUM ( - ( - 63 ) ) AS col2
----
-28

query I rowsort
SELECT 60 * + 97 AS col2
----
5820

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8216
SELECT 31 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8216
SELECT 31 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 29 col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8218
SELECT CAST( NULL AS SIGNED ) / ( 54 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT CAST ( NULL AS INTEGER ) / ( 54 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 88 + - 2 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT MIN( ALL + + 29 ) * ( + + 66 ) + + 95
----
2009

skipif mysql # not compatible
query I rowsort label-8220
SELECT MIN ( ALL + + 29 ) * ( + + 66 ) + + 95
----
2009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8221
SELECT ALL COUNT( * ) + CASE - 46 WHEN ( ( - CAST( NULL AS DECIMAL ) ) ) THEN - COUNT( * ) WHEN 40 + + NULLIF ( + CASE + 34 WHEN - 13 * + 0 * + - COUNT( DISTINCT - + 47 ) THEN NULL WHEN - ( - - 46 ) * 87 + + 26 / + MIN( DISTINCT + + 17 ) THEN NULL WHEN - 84 THEN NULL WHEN - - 51 THEN NULL ELSE - - ( - + COUNT( * ) ) * MAX( 99 ) * - NULLIF ( + 56, - + CAST( NULL AS SIGNED ) ) - + ( - ( ( + 3 ) ) ) + - - 25 + - - 91 END, 5 * 68 + + MAX( DISTINCT + ( - 93 ) ) ) - + - 74 * - - 0 / 8 THEN NULL ELSE - 29 - + 20 END AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL COUNT ( * ) + CASE - 46 WHEN ( ( - CAST ( NULL AS REAL ) ) ) THEN - COUNT ( * ) WHEN 40 + + NULLIF ( + CASE + 34 WHEN - 13 * + 0 * + - COUNT ( DISTINCT - + 47 ) THEN NULL WHEN - ( - - 46 ) * 87 + + 26 / + MIN ( DISTINCT + + 17 ) THEN NULL WHEN - 84 THEN NULL WHEN - - 51 THEN NULL ELSE - - ( - + COUNT ( * ) ) * MAX ( 99 ) * - NULLIF ( + 56, - + CAST ( NULL AS INTEGER ) ) - + ( - ( ( + 3 ) ) ) + - - 25 + - - 91 END, 5 * 68 + + MAX ( DISTINCT + ( - 93 ) ) ) - + - 74 * - - 0 / 8 THEN NULL ELSE - 29 - + 20 END AS col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8222
SELECT 3 AS col1, 72 * - - CAST( NULL AS SIGNED ) AS col1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8222
SELECT 3 AS col1, 72 * - - CAST ( NULL AS INTEGER ) AS col1
----
3
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8223
SELECT DISTINCT 40 + + - COUNT( * ) DIV - 66
----
40

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT 40 + + - COUNT ( * ) / - 66
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT - COUNT( * ) + 86 * - - 97
----
8341

skipif mysql # not compatible
query I rowsort label-8224
SELECT - COUNT ( * ) + 86 * - - 97
----
8341

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8225
SELECT ALL + 14 AS col2, + COALESCE ( - 61, + CAST( - + 13 AS SIGNED ) * + 67 - + 29, + - 7 ) * + ( - + 29 ) + 45 col0
----
14
1814

skipif mysql # not compatible
query II rowsort label-8225
SELECT ALL + 14 AS col2, + COALESCE ( - 61, + CAST ( - + 13 AS INTEGER ) * + 67 - + 29, + - 7 ) * + ( - + 29 ) + 45 col0
----
14
1814

onlyif mysql # aggregate syntax: 
query II rowsort label-8226
SELECT ALL + COUNT( * ) AS col2, + 49 col2
----
1
49

skipif mysql # not compatible
query II rowsort label-8226
SELECT ALL + COUNT ( * ) AS col2, + 49 col2
----
1
49

query I rowsort
SELECT ALL 38 * - 99 + + 58 AS col2
----
-3704

query I rowsort
SELECT - 50 + - 13 + + + 13 * 62
----
743

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT ALL 56 * - 52 + - MIN( - 75 ) * - 21 + - 30
----
-4517

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL 56 * - 52 + - MIN ( - 75 ) * - 21 + - 30
----
-4517

query I rowsort
SELECT ALL + ( 3 )
----
3

query II rowsort
SELECT + 68 AS col1, 72 AS col1
----
68
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT NULLIF ( CAST( + 73 AS SIGNED ), - - COUNT( + + 75 ) / - 66 + 38 )
----
73

skipif mysql # not compatible
query I rowsort label-8232
SELECT NULLIF ( CAST ( + 73 AS INTEGER ), - - COUNT ( + + 75 ) / - 66 + 38 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT CASE COUNT( * ) WHEN + - COUNT( * ) - COUNT( * ) THEN NULL ELSE + 45 END
----
45

skipif mysql # not compatible
query I rowsort label-8233
SELECT CASE COUNT ( * ) WHEN + - COUNT ( * ) - COUNT ( * ) THEN NULL ELSE + 45 END
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8234
SELECT + 47 DIV + 91 - - 67 * ( + 49 ) + - + COUNT( * ) + - 59 AS col0
----
3223

skipif mysql # not compatible
query I rowsort label-8234
SELECT + 47 / + 91 - - 67 * ( + 49 ) + - + COUNT ( * ) + - 59 AS col0
----
3223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT - CAST( NULL AS SIGNED ) * + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT - CAST ( NULL AS INTEGER ) * + 10 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT - - 4 + - - 33 * - COUNT( * ) + + 88 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8236
SELECT - - 4 + - - 33 * - COUNT ( * ) + + 88 AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8237
SELECT - CASE + 36 WHEN + 9 THEN + 83 / + 81 / + + NULLIF ( + SUM( ALL - 19 ), - 41 * - 62 * - CAST( - + 21 AS SIGNED ) + COUNT( * ) ) * 19 WHEN + + 72 THEN 66 END * 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT - CASE + 36 WHEN + 9 THEN + 83 / + 81 / + + NULLIF ( + SUM ( ALL - 19 ), - 41 * - 62 * - CAST ( - + 21 AS INTEGER ) + COUNT ( * ) ) * 19 WHEN + + 72 THEN 66 END * 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT + 54 * + 2 + - + ( - MAX( ALL 75 ) )
----
183

skipif mysql # not compatible
query I rowsort label-8238
SELECT + 54 * + 2 + - + ( - MAX ( ALL 75 ) )
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT ALL 59 * + - COUNT( * ) - + 38 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL 59 * + - COUNT ( * ) - + 38 AS col2
----
-97

query I rowsort
SELECT ALL + + 50 AS col1
----
50

query I rowsort
SELECT - 86 * + - 93 AS col2
----
7998

query I rowsort
SELECT - + CASE 70 WHEN + + 43 THEN - 70 ELSE - - 15 + + 53 END
----
-68

query I rowsort
SELECT ( - 73 ) AS col1
----
-73

query I rowsort
SELECT DISTINCT 39 + 31
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8245
SELECT - 13 - + - 8 - + 69 DIV - + COUNT( * ) + - + 63 * 82 DIV 95 - 52 * + + 91
----
-4722

skipif mysql # not compatible
query I rowsort label-8245
SELECT - 13 - + - 8 - + 69 / - + COUNT ( * ) + - + 63 * 82 / 95 - 52 * + + 91
----
-4722

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT + 27 - - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8246
SELECT + 27 - - COUNT ( * ) AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8247
SELECT ALL + COUNT( * ) + + - 21 + + 42 + + 90 DIV 98 + SUM( + 58 ) * - ( - 75 )
----
4372

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL + COUNT ( * ) + + - 21 + + 42 + + 90 / 98 + SUM ( + 58 ) * - ( - 75 )
----
4372

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT ALL COUNT( * ) + + SUM( 54 ) * - - 24 AS col0
----
1297

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL COUNT ( * ) + + SUM ( 54 ) * - - 24 AS col0
----
1297

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT - COALESCE ( - COUNT( * ), - - 42 )
----
1

skipif mysql # not compatible
query I rowsort label-8249
SELECT - COALESCE ( - COUNT ( * ), - - 42 )
----
1

query I rowsort
SELECT ALL 99 * 91 AS col0
----
9009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8251
SELECT + ( - NULLIF ( + ( - 49 ), - + CAST( 39 AS SIGNED ) / - 78 * + + SUM( ALL - 53 ) ) ) + - 50 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8251
SELECT + ( - NULLIF ( + ( - 49 ), - + CAST ( 39 AS INTEGER ) / - 78 * + + SUM ( ALL - 53 ) ) ) + - 50 AS col2
----
-1

query I rowsort
SELECT ALL 92 + + + 86
----
178

query I rowsort
SELECT + 57 * - ( + ( 63 ) ) AS col1
----
-3591

onlyif mysql # DIV for integer division: 
query I rowsort label-8254
SELECT + 74 DIV 32 * 27 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8254
SELECT + 74 / 32 * 27 AS col0
----
54

query I rowsort
SELECT - ( - + 96 ) AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8256
SELECT CAST( + 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-8256
SELECT CAST ( + 7 AS INTEGER )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8257
SELECT DISTINCT 46 DIV - - 23 - + COALESCE ( 70, - 74 * - + 44 * 4 * + 78, CAST( - - 52 AS SIGNED ) ) + + - 42 + + 60 * + 15 + ( + + 78 ) * - COUNT( * )
----
712

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT 46 / - - 23 - + COALESCE ( 70, - 74 * - + 44 * 4 * + 78, CAST ( - - 52 AS INTEGER ) ) + + - 42 + + 60 * + 15 + ( + + 78 ) * - COUNT ( * )
----
712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8258
SELECT + CAST( + COALESCE ( NULLIF ( + 85, + CAST( + COUNT( * ) AS DECIMAL ) ), + - COALESCE ( + 50, MAX( DISTINCT 53 ) / - - 12 * + + 5 + - - 14 ) - MAX( + 56 ) + + 2 * - 78 - + 59 * 54 ) AS SIGNED ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8258
SELECT + CAST ( + COALESCE ( NULLIF ( + 85, + CAST ( + COUNT ( * ) AS REAL ) ), + - COALESCE ( + 50, MAX ( DISTINCT 53 ) / - - 12 * + + 5 + - - 14 ) - MAX ( + 56 ) + + 2 * - 78 - + 59 * 54 ) AS INTEGER ) AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8259
SELECT + 59 * - - COALESCE ( + CAST( NULL AS SIGNED ), + + CASE - COUNT( * ) WHEN MIN( ALL - - 96 ) THEN NULL WHEN - - 40 THEN 2 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT + 59 * - - COALESCE ( + CAST ( NULL AS INTEGER ), + + CASE - COUNT ( * ) WHEN MIN ( ALL - - 96 ) THEN NULL WHEN - - 40 THEN 2 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8260
SELECT ALL + CAST( - 88 AS SIGNED ) * + - 0
----
0

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL + CAST ( - 88 AS INTEGER ) * + - 0
----
0

query I rowsort
SELECT + 68 - - 53 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT - + 42 * + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-8262
SELECT - + 42 * + COUNT ( * )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8263
SELECT CASE - + 73 WHEN CAST( + 98 AS SIGNED ) THEN - MIN( ALL + 33 ) END * - 25 * + ( + + 99 ) - + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT CASE - + 73 WHEN CAST ( + 98 AS INTEGER ) THEN - MIN ( ALL + 33 ) END * - 25 * + ( + + 99 ) - + 56 AS col2
----
NULL

query I rowsort
SELECT ALL 56 * 20 + - - 71 * + - 30
----
-1010

query I rowsort
SELECT - + 98 * - 78
----
7644

onlyif mysql # DIV for integer division: 
query I rowsort label-8266
SELECT - + 81 DIV - 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8266
SELECT - + 81 / - 65 AS col0
----
1

query I rowsort
SELECT DISTINCT + - 83 col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT + 48 * COALESCE ( + 93, COUNT( * ) ) + + + MIN( DISTINCT + - 93 ) + 85
----
4456

skipif mysql # not compatible
query I rowsort label-8268
SELECT + 48 * COALESCE ( + 93, COUNT ( * ) ) + + + MIN ( DISTINCT + - 93 ) + 85
----
4456

query I rowsort
SELECT - 31 - + 38 AS col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8270
SELECT + 71 DIV 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8270
SELECT + 71 / 94 AS col0
----
0

query I rowsort
SELECT + 75 + + - 6 * 84 * + 29
----
-14541

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT - - SUM( 30 ) * 97 - 28
----
2882

skipif mysql # not compatible
query I rowsort label-8272
SELECT - - SUM ( 30 ) * 97 - 28
----
2882

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT - + 40 * COUNT( DISTINCT - 76 ) col0
----
-40

skipif mysql # not compatible
query I rowsort label-8273
SELECT - + 40 * COUNT ( DISTINCT - 76 ) col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT DISTINCT - 53 * 0 + - - 80 - + COUNT( * ) * + 37 + - + ( - COUNT( * ) ) + + COUNT( * ) col0
----
45

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT - 53 * 0 + - - 80 - + COUNT ( * ) * + 37 + - + ( - COUNT ( * ) ) + + COUNT ( * ) col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT - 98 + + COUNT( * ) + - - 46 * + + 2 * 37
----
3307

skipif mysql # not compatible
query I rowsort label-8275
SELECT - 98 + + COUNT ( * ) + - - 46 * + + 2 * 37
----
3307

query I rowsort
SELECT + - 54 AS col0
----
-54

query I rowsort
SELECT - + 96 + + 21 AS col2
----
-75

query I rowsort
SELECT ( 69 )
----
69

query I rowsort
SELECT DISTINCT + + 11 * - ( + 82 ) * + 56 * + 17 + + 74 + + 37 * - 61 AS col0
----
-860887

query I rowsort
SELECT 69 + + 1 AS col0
----
70

query II rowsort
SELECT ALL 34, 31 AS col1
----
34
31

query I rowsort
SELECT 43 * + + 16 AS col1
----
688

query II rowsort
SELECT - 89, 27 * 96 AS col2
----
-89
2592

query I rowsort
SELECT ALL 51 - + 2
----
49

query II rowsort
SELECT DISTINCT 96 AS col0, + 64 AS col0
----
96
64

query I rowsort
SELECT DISTINCT - 81 * - + 61 col1
----
4941

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT 65 + + 30 + COUNT( ALL - - 13 ) * 93 AS col0
----
188

skipif mysql # not compatible
query I rowsort label-8287
SELECT 65 + + 30 + COUNT ( ALL - - 13 ) * 93 AS col0
----
188

query I rowsort
SELECT 0 + + 68 AS col2
----
68

query I rowsort
SELECT DISTINCT 44 * + 9 AS col0
----
396

query I rowsort
SELECT 84 * - - 79
----
6636

query I rowsort
SELECT 19 * + + 46
----
874

query I rowsort
SELECT 99 * - + 15 * + COALESCE ( + + 73, + 63 * + + 63 )
----
-108405

query I rowsort
SELECT ALL + 13 * 22
----
286

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8294
SELECT COALESCE ( - - 42, 70 + + COALESCE ( + ( - 67 ), + + 79, - 13 ) DIV - SUM( - - 1 ) + - 53, - NULLIF ( - 92, + 83 ) ) + 62 + - 65 * - 16 col0
----
1144

skipif mysql # not compatible
query I rowsort label-8294
SELECT COALESCE ( - - 42, 70 + + COALESCE ( + ( - 67 ), + + 79, - 13 ) / - SUM ( - - 1 ) + - 53, - NULLIF ( - 92, + 83 ) ) + 62 + - 65 * - 16 col0
----
1144

onlyif mysql # DIV for integer division: 
query I rowsort label-8295
SELECT ALL + 33 DIV + 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL + 33 / + 40 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT ( + - 99 ) * - 96 + - 57 * - COUNT( * ) * - 25 AS col2
----
8079

skipif mysql # not compatible
query I rowsort label-8296
SELECT ( + - 99 ) * - 96 + - 57 * - COUNT ( * ) * - 25 AS col2
----
8079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8297
SELECT COALESCE ( - COALESCE ( + 37, 62 + 81, 12 + - - COUNT( * ) * + + 66, + MIN( + 58 ) ), - 83 DIV + 80 DIV - - 16 + + + 59 ) * + 65 + + 87 * + 21 * - 97 * - 89 AS col0
----
15770086

skipif mysql # not compatible
query I rowsort label-8297
SELECT COALESCE ( - COALESCE ( + 37, 62 + 81, 12 + - - COUNT ( * ) * + + 66, + MIN ( + 58 ) ), - 83 / + 80 / - - 16 + + + 59 ) * + 65 + + 87 * + 21 * - 97 * - 89 AS col0
----
15770086

query I rowsort
SELECT DISTINCT - ( + + 65 )
----
-65

query I rowsort
SELECT 2 * + - 25 col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT - COUNT( * ) + 98 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-8300
SELECT - COUNT ( * ) + 98 AS col1
----
97

query I rowsort
SELECT + - 33 col0
----
-33

query I rowsort
SELECT + - 48 AS col2
----
-48

query I rowsort
SELECT ALL + 6 + + 92 col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8304
SELECT + - CASE - CAST( 88 AS SIGNED ) WHEN + - 38 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN ( - - 23 ) * - COUNT( * ) + + MAX( COALESCE ( 79, + + 77 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8304
SELECT + - CASE - CAST ( 88 AS INTEGER ) WHEN + - 38 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN ( - - 23 ) * - COUNT ( * ) + + MAX ( COALESCE ( 79, + + 77 ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( - + 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8306
SELECT DISTINCT 61 + 50 - - 34 * ( + + 83 ) DIV + - COUNT( * )
----
-2711

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT 61 + 50 - - 34 * ( + + 83 ) / + - COUNT ( * )
----
-2711

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT DISTINCT ( 83 ) + - - COUNT( + 80 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT ( 83 ) + - - COUNT ( + 80 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT + NULLIF ( - + MIN( 93 ), 53 / 47 ), + 19 + + ( + MIN( + 87 ) ) + - - 62 AS col2
----
-93
168

skipif mysql # not compatible
query II rowsort label-8308
SELECT + NULLIF ( - + MIN ( 93 ), 53 / 47 ), + 19 + + ( + MIN ( + 87 ) ) + - - 62 AS col2
----
-93
168

query I rowsort
SELECT ALL - 65 + + ( - + 83 ) + - + 12 AS col0
----
-160

query I rowsort
SELECT 48 * - 24 AS col1
----
-1152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8311
SELECT - 77 col0, + CAST( NULL AS SIGNED )
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-8311
SELECT - 77 col0, + CAST ( NULL AS INTEGER )
----
-77
NULL

query II rowsort
SELECT DISTINCT 29, 17 AS col2
----
29
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8313
SELECT - 30, - 97 * + COUNT( - + 8 ) * + 35 + + - 3 - - 94 col2
----
-30
-3304

skipif mysql # not compatible
query II rowsort label-8313
SELECT - 30, - 97 * + COUNT ( - + 8 ) * + 35 + + - 3 - - 94 col2
----
-30
-3304

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT COUNT( * ) * - - 97
----
97

skipif mysql # not compatible
query I rowsort label-8314
SELECT COUNT ( * ) * - - 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT ALL + 12 - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL + 12 - COUNT ( * )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8316
SELECT DISTINCT COUNT( * ) DIV + + 18 * + 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT COUNT ( * ) / + + 18 * + 32 AS col2
----
0

query II rowsort
SELECT DISTINCT 91, 22 * + + 31 * + CASE WHEN ( NULL ) IS NOT NULL THEN - + 90 END * 98 - 98 * + 3 / + + 16 + - + 22 + - 70 AS col2
----
91
NULL

query I rowsort
SELECT ALL - 40 * 40 AS col1
----
-1600

query I rowsort
SELECT ALL + 12 - 11 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8320
SELECT ALL COUNT( * ) AS col1, 71 * 2 col2
----
1
142

skipif mysql # not compatible
query II rowsort label-8320
SELECT ALL COUNT ( * ) AS col1, 71 * 2 col2
----
1
142

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT 0 + - SUM( 0 ) + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8321
SELECT 0 + - SUM ( 0 ) + - + COUNT ( * )
----
-1

query I rowsort
SELECT 3 - 17 + + 15 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8323
SELECT COUNT( * ) - + 39 AS col0, 90 DIV 16 DIV - 33
----
-38
0

skipif mysql # not compatible
query II rowsort label-8323
SELECT COUNT ( * ) - + 39 AS col0, 90 / 16 / - 33
----
-38
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8324
SELECT 57 AS col1, - ( + COUNT( * ) ) DIV + 49 - + 38 AS col1
----
57
-38

skipif mysql # not compatible
query II rowsort label-8324
SELECT 57 AS col1, - ( + COUNT ( * ) ) / + 49 - + 38 AS col1
----
57
-38

query II rowsort
SELECT - 19 AS col2, 93 + - 79 * + NULLIF ( + ( - - 60 ), - 29 ) * + 93 - - 80 col2
----
-19
-440647

query II rowsort
SELECT ALL 20, + 24 AS col0
----
20
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT ALL + + 52 + - MIN( DISTINCT - - 27 ) - COUNT( * ) + 6 * + 51
----
330

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL + + 52 + - MIN ( DISTINCT - - 27 ) - COUNT ( * ) + 6 * + 51
----
330

query II rowsort
SELECT ALL - + 38 col2, - 70
----
-38
-70

onlyif mysql # DIV for integer division: 
query III rowsort label-8329
SELECT - 77 * + 55, + 67 DIV - - 92 AS col0, 52 AS col1
----
-4235
0
52

skipif mysql # not compatible
query III rowsort label-8329
SELECT - 77 * + 55, + 67 / - - 92 AS col0, 52 AS col1
----
-4235
0
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8330
SELECT ALL - COUNT( * ) * + MAX( DISTINCT - - 0 ) + 48 DIV - 5 col0
----
-9

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL - COUNT ( * ) * + MAX ( DISTINCT - - 0 ) + 48 / - 5 col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT DISTINCT - + COUNT( * ) * - 11
----
11

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT - + COUNT ( * ) * - 11
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8332
SELECT ALL + - CAST( NULL AS SIGNED ) * + 10 + 63 + + 12 - + + 2 * + COUNT( * ) AS col2, - 39 * - 89 AS col2
----
NULL
3471

skipif mysql # not compatible
query II rowsort label-8332
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 10 + 63 + + 12 - + + 2 * + COUNT ( * ) AS col2, - 39 * - 89 AS col2
----
NULL
3471

query II rowsort
SELECT 61 AS col2, - 33
----
61
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8334
SELECT + + 83, COUNT( DISTINCT + + 20 ) * - - 93 col2
----
83
93

skipif mysql # not compatible
query II rowsort label-8334
SELECT + + 83, COUNT ( DISTINCT + + 20 ) * - - 93 col2
----
83
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8335
SELECT + 44 DIV - 56 AS col0, NULLIF ( + 32, - - COUNT( DISTINCT 76 ) + 2 + + CAST( + + MIN( ALL 25 ) AS SIGNED ) ) - + - ( - 40 ) + - + 65 AS col0
----
0
-73

skipif mysql # not compatible
query II rowsort label-8335
SELECT + 44 / - 56 AS col0, NULLIF ( + 32, - - COUNT ( DISTINCT 76 ) + 2 + + CAST ( + + MIN ( ALL 25 ) AS INTEGER ) ) - + - ( - 40 ) + - + 65 AS col0
----
0
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT + 53 - + - MAX( ALL + 72 ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-8336
SELECT + 53 - + - MAX ( ALL + 72 ) AS col1
----
125

query I rowsort
SELECT + ( + + 34 ) * 62 * - ( - 74 )
----
155992

query I rowsort
SELECT 47 - + - 44 AS col2
----
91

query I rowsort
SELECT ALL + 66 * + 50 col2
----
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT DISTINCT - + CASE + - 30 WHEN - COUNT( ALL + COALESCE ( + + 78, + 3 ) ) / - 75 * + 58 THEN NULL WHEN 25 + + 97 THEN - 86 * - 66 - + - 80 + - + 27 ELSE - - 42 END AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT - + CASE + - 30 WHEN - COUNT ( ALL + COALESCE ( + + 78, + 3 ) ) / - 75 * + 58 THEN NULL WHEN 25 + + 97 THEN - 86 * - 66 - + - 80 + - + 27 ELSE - - 42 END AS col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8341
SELECT DISTINCT - COUNT( * ) AS col0, 13
----
-1
13

skipif mysql # not compatible
query II rowsort label-8341
SELECT DISTINCT - COUNT ( * ) AS col0, 13
----
-1
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8342
SELECT ALL ( + 0 ) + + CAST( NULL AS SIGNED ) * + 3, 89 DIV - + NULLIF ( + 85, - 78 * - - 43 + + - COUNT( ALL + + 2 ) + + - ( + 40 ) ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8342
SELECT ALL ( + 0 ) + + CAST ( NULL AS INTEGER ) * + 3, 89 / - + NULLIF ( + 85, - 78 * - - 43 + + - COUNT ( ALL + + 2 ) + + - ( + 40 ) ) AS col1
----
NULL
-1

query I rowsort
SELECT ALL - + 86 AS col1
----
-86

query I rowsort
SELECT 19 * 44 * - 86 + + + 95 * - 93
----
-80731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8345
SELECT + + 14 - - CAST( NULL AS SIGNED ) * + + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8345
SELECT + + 14 - - CAST ( NULL AS INTEGER ) * + + 16 AS col1
----
NULL

query I rowsort
SELECT + ( + 99 ) AS col1
----
99

query I rowsort
SELECT + 78 col0
----
78

query II rowsort
SELECT ALL 70 * - - 73, 75 AS col1
----
5110
75

query I rowsort
SELECT DISTINCT 81 * - + 33
----
-2673

query I rowsort
SELECT ALL 40 - - 62 col1
----
102

query II rowsort
SELECT 17 * 87 + - + 54 AS col2, + 92
----
1425
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT + COUNT( * ) * - 90 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-8352
SELECT + COUNT ( * ) * - 90 AS col0
----
-90

query I rowsort
SELECT ALL 34 * + + 3
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-8354
SELECT - MIN( DISTINCT + 56 ) AS col1, 25 AS col0
----
-56
25

skipif mysql # not compatible
query II rowsort label-8354
SELECT - MIN ( DISTINCT + 56 ) AS col1, 25 AS col0
----
-56
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT + ( - COUNT( * ) ) + - 89 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-8355
SELECT + ( - COUNT ( * ) ) + - 89 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT - 80 + - 23 * + - COUNT( * ) * + 46 AS col1
----
978

skipif mysql # not compatible
query I rowsort label-8356
SELECT - 80 + - 23 * + - COUNT ( * ) * + 46 AS col1
----
978

query I rowsort
SELECT - 98 * + NULLIF ( + ( - 3 ), + 94 * - 66 + 17 * 57 ) col2
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT ALL + COUNT( * ) * + 3 * + 53
----
159

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL + COUNT ( * ) * + 3 * + 53
----
159

query I rowsort
SELECT - 62 + + - 64 AS col1
----
-126

query II rowsort
SELECT DISTINCT 68 + - - 25 AS col0, + 8
----
93
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT - 38 + COUNT( - + 70 ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-8361
SELECT - 38 + COUNT ( - + 70 ) col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT + 5 - + - 75 - - NULLIF ( - 64, - + 73 ) + + NULLIF ( + - 6, SUM( 50 ) ) + + - MIN( + 92 ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-8362
SELECT + 5 - + - 75 - - NULLIF ( - 64, - + 73 ) + + NULLIF ( + - 6, SUM ( 50 ) ) + + - MIN ( + 92 ) col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT CAST( + 89 AS SIGNED ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8363
SELECT CAST ( + 89 AS INTEGER ) AS col1
----
89

query I rowsort
SELECT ALL - 30 * - ( + 96 ) AS col0
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT + - 25 * - COUNT( * ) + + 99 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-8365
SELECT + - 25 * - COUNT ( * ) + + 99 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT - + COUNT( * ) + 44 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8366
SELECT - + COUNT ( * ) + 44 AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT - - CAST( NULL AS SIGNED ) + - 30 + + 76 + - + 19 * - - 65 + - - 43 - 66 * - 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT - - CAST ( NULL AS INTEGER ) + - 30 + + 76 + - + 19 * - - 65 + - - 43 - 66 * - 95 AS col2
----
NULL

query I rowsort
SELECT ALL + 39 + 11 col2
----
50

query I rowsort
SELECT ALL + 42 col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8370
SELECT - COUNT( * ) DIV - 50 + + - COUNT( * ) + - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8370
SELECT - COUNT ( * ) / - 50 + + - COUNT ( * ) + - COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT DISTINCT + COALESCE ( - 38, ( + 16 ), - - 46 * 72 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT DISTINCT + SUM( DISTINCT 58 ) * + ( - 77 ) + + 54 + + + COUNT( * ) * - 71 col1
----
-4483

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT + SUM ( DISTINCT 58 ) * + ( - 77 ) + + 54 + + + COUNT ( * ) * - 71 col1
----
-4483

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT - - MAX( - - ( + + 2 ) ) * + 67
----
134

skipif mysql # not compatible
query I rowsort label-8373
SELECT - - MAX ( - - ( + + 2 ) ) * + 67
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8374
SELECT + 40 * COUNT( * ) * COUNT( * ) + + 62 + COUNT( - 92 ) + MAX( DISTINCT 12 ) * 98 * NULLIF ( - 92, - COUNT( * ) / + 64 + - 69 + COALESCE ( CAST( NULL AS SIGNED ), + 54 ) + 29 / + 54 * - - 88 * - ( - 31 ) + + ( - - 62 ) ) + 64
----
-108025

skipif mysql # not compatible
query I rowsort label-8374
SELECT + 40 * COUNT ( * ) * COUNT ( * ) + + 62 + COUNT ( - 92 ) + MAX ( DISTINCT 12 ) * 98 * NULLIF ( - 92, - COUNT ( * ) / + 64 + - 69 + COALESCE ( CAST ( NULL AS INTEGER ), + 54 ) + 29 / + 54 * - - 88 * - ( - 31 ) + + ( - - 62 ) ) + 64
----
-108025

query I rowsort
SELECT - 53 * 86 * + NULLIF ( + 22, - - 21 ) AS col1
----
-100276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8376
SELECT ALL ( + - COUNT( ALL - 83 ) ) * - 61 - - - COUNT( * ) - - - 42 * - - 67 * - + 32 - + - 60 * 61 DIV + - 40 AS col2
----
90017

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL ( + - COUNT ( ALL - 83 ) ) * - 61 - - - COUNT ( * ) - - - 42 * - - 67 * - + 32 - + - 60 * 61 / + - 40 AS col2
----
90017

query I rowsort
SELECT + + 64 AS col2
----
64

query I rowsort
SELECT - - ( - ( 51 ) ) * - 21
----
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT + COUNT( ALL - + 37 ) * - - COUNT( * ) + - 20
----
-19

skipif mysql # not compatible
query I rowsort label-8379
SELECT + COUNT ( ALL - + 37 ) * - - COUNT ( * ) + - 20
----
-19

query I rowsort
SELECT DISTINCT + 67 * + 23
----
1541

query I rowsort
SELECT ALL - 12 * - 18 AS col0
----
216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8382
SELECT + ( + 88 ) * - + NULLIF ( - COALESCE ( + COUNT( * ), + 12 * + 9 DIV 92 - + 72 ), 47 * + + 57 + - - 0 + 50 ) DIV - 89 + + - COALESCE ( 74, 68 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-8382
SELECT + ( + 88 ) * - + NULLIF ( - COALESCE ( + COUNT ( * ), + 12 * + 9 / 92 - + 72 ), 47 * + + 57 + - - 0 + 50 ) / - 89 + + - COALESCE ( 74, 68 ) AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8383
SELECT + CAST( NULL AS DECIMAL ) / - - 30 * - 55 AS col2, COUNT( * ) + - 37 - CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8383
SELECT + CAST ( NULL AS REAL ) / - - 30 * - 55 AS col2, COUNT ( * ) + - 37 - CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8384
SELECT ALL + 20, COUNT( * ) AS col0
----
20
1

skipif mysql # not compatible
query II rowsort label-8384
SELECT ALL + 20, COUNT ( * ) AS col0
----
20
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8385
SELECT - 98 - - 97 * - - 94 * + NULLIF ( 9, - CAST( + 1 AS DECIMAL ) ) AS col2
----
81964

skipif mysql # not compatible
query I rowsort label-8385
SELECT - 98 - - 97 * - - 94 * + NULLIF ( 9, - CAST ( + 1 AS REAL ) ) AS col2
----
81964

query II rowsort
SELECT - 16 * - 72 * 92 col0, + ( 36 ) AS col1
----
105984
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT COUNT( - 81 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8387
SELECT COUNT ( - 81 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT - COUNT( * ) * - 25 + - - 95
----
120

skipif mysql # not compatible
query I rowsort label-8388
SELECT - COUNT ( * ) * - 25 + - - 95
----
120

query I rowsort
SELECT ALL 63 * - - 50 AS col2
----
3150

query I rowsort
SELECT + 74 * - 77 * ( - - 58 )
----
-330484

query II rowsort
SELECT DISTINCT 56, ( + 57 ) col0
----
56
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL COUNT( * ) + - 81 col0
----
-80

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL COUNT ( * ) + - 81 col0
----
-80

query I rowsort
SELECT + 21 - 50 AS col2
----
-29

query I rowsort
SELECT ALL 27 * - + 80 AS col2
----
-2160

query I rowsort
SELECT + 97 + + 34 AS col1
----
131

query I rowsort
SELECT ALL COALESCE ( - - 98, - 0 ) AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT ALL 20 + + 67 DIV 2 col1
----
53

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL 20 + + 67 / 2 col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL MAX( DISTINCT + 40 ) + 44
----
84

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL MAX ( DISTINCT + 40 ) + 44
----
84

query I rowsort
SELECT - + ( - - 61 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8400
SELECT - 68 * SUM( 86 ) + - CAST( NULL AS DECIMAL ) + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT - 68 * SUM ( 86 ) + - CAST ( NULL AS REAL ) + + 2
----
NULL

query I rowsort
SELECT DISTINCT 38 + - 64 col0
----
-26

query I rowsort
SELECT - + 51 col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8403
SELECT ALL 56 + + CAST( + 87 AS SIGNED ) AS col2
----
143

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL 56 + + CAST ( + 87 AS INTEGER ) AS col2
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-8404
SELECT + 10 col0, 19 - - 17 + + - 4 * - ( - COUNT( * ) ) * + - 83 - + 60 + ( - COUNT( ALL - 54 ) )
----
10
307

skipif mysql # not compatible
query II rowsort label-8404
SELECT + 10 col0, 19 - - 17 + + - 4 * - ( - COUNT ( * ) ) * + - 83 - + 60 + ( - COUNT ( ALL - 54 ) )
----
10
307

query II rowsort
SELECT ALL 71 AS col0, - 62 col0
----
71
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-8406
SELECT ALL + 7 - 71 DIV + NULLIF ( 24, - 61 * - 94 ) AS col2, + 99
----
5
99

skipif mysql # not compatible
query II rowsort label-8406
SELECT ALL + 7 - 71 / + NULLIF ( 24, - 61 * - 94 ) AS col2, + 99
----
5
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8407
SELECT ALL 22 DIV 13 * 64
----
64

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL 22 / 13 * 64
----
64

query II rowsort
SELECT DISTINCT - 5, 37 AS col1
----
-5
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8409
SELECT ALL + + 97 - - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL + + 97 - - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT ALL - + 34 * + 29 * - - 36, + 34 AS col2
----
-35496
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT - MAX( DISTINCT - - 91 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-8411
SELECT - MAX ( DISTINCT - - 91 ) AS col2
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8412
SELECT ALL + AVG ( ALL - CAST( NULL AS SIGNED ) ) * - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL + AVG ( ALL - CAST ( NULL AS INTEGER ) ) * - 37 AS col2
----
NULL

query I rowsort
SELECT 54 * - + 58
----
-3132

onlyif mysql # DIV for integer division: 
query I rowsort label-8414
SELECT + 21 DIV 90 + ( - + 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-8414
SELECT + 21 / 90 + ( - + 54 ) AS col0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-8415
SELECT ALL - - COALESCE ( + 6, + 47, + 96 ) - + 38 DIV - 36
----
7

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL - - COALESCE ( + 6, + 47, + 96 ) - + 38 / - 36
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT 33 - - + SUM( DISTINCT - 87 ) * + 60 * + 29 * CASE + 58 WHEN 92 THEN ( 13 ) END + + + 9 - + 35 * - 28 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8416
SELECT 33 - - + SUM ( DISTINCT - 87 ) * + 60 * + 29 * CASE + 58 WHEN 92 THEN ( 13 ) END + + + 9 - + 35 * - 28 * + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT - + 90 AS col2, + 27
----
-90
27

query I rowsort
SELECT DISTINCT + 64 * + 74 col1
----
4736

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT + 58 * SUM( 74 ) + - 42 AS col0
----
4250

skipif mysql # not compatible
query I rowsort label-8419
SELECT + 58 * SUM ( 74 ) + - 42 AS col0
----
4250

query I rowsort
SELECT DISTINCT - COALESCE ( + ( + - 15 ), 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT DISTINCT MAX( ALL + COALESCE ( - + 59, 73, 0 ) ) * COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT MAX ( ALL + COALESCE ( - + 59, 73, 0 ) ) * COUNT ( * ) AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8422
SELECT COUNT( DISTINCT - CAST( - 17 AS DECIMAL ) ) * - NULLIF ( - ( - 11 ), + COUNT( * ) / - + 2 + + 91 )
----
-11

skipif mysql # not compatible
query I rowsort label-8422
SELECT COUNT ( DISTINCT - CAST ( - 17 AS REAL ) ) * - NULLIF ( - ( - 11 ), + COUNT ( * ) / - + 2 + + 91 )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8423
SELECT ALL + 53 DIV + ( - + 66 ) * + 28 * 86 * - 28
----
0

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL + 53 / + ( - + 66 ) * + 28 * 86 * - 28
----
0

query I rowsort
SELECT + 95 * - + 2 + 32 AS col1
----
-158

query I rowsort
SELECT 17 * 54 - - 89 AS col2
----
1007

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8426
SELECT 78 * + + CAST( - 52 AS SIGNED ) DIV + + 2
----
-2028

skipif mysql # not compatible
query I rowsort label-8426
SELECT 78 * + + CAST ( - 52 AS INTEGER ) / + + 2
----
-2028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8427
SELECT - COUNT( * ) * - + 12 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8427
SELECT - COUNT ( * ) * - + 12 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8428
SELECT DISTINCT CASE - + 6 WHEN - ( CAST( NULL AS SIGNED ) ) THEN - CASE 20 WHEN - 31 THEN CAST( + 22 AS SIGNED ) END + - 88 END + 5 * + 48 + + 65 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT CASE - + 6 WHEN - ( CAST ( NULL AS INTEGER ) ) THEN - CASE 20 WHEN - 31 THEN CAST ( + 22 AS INTEGER ) END + - 88 END + 5 * + 48 + + 65 col1
----
NULL

query I rowsort
SELECT DISTINCT - 36 + - + 2 * + 65 col2
----
-166

onlyif mysql # aggregate syntax: 
query II rowsort label-8430
SELECT ALL 15 + - COUNT( * ) + - + COUNT( * ) * + + 84 col0, + 9 AS col0
----
-70
9

skipif mysql # not compatible
query II rowsort label-8430
SELECT ALL 15 + - COUNT ( * ) + - + COUNT ( * ) * + + 84 col0, + 9 AS col0
----
-70
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8431
SELECT ALL - 18 + + + MAX( ALL CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL - 18 + + + MAX ( ALL CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 9 + + + 65 col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT DISTINCT 68 DIV + - 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT 68 / + - 81 AS col1
----
0

query I rowsort
SELECT 28 * - + 10
----
-280

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8435
SELECT 99 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8435
SELECT 99 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT 3 * + 56 * - CAST( NULL AS SIGNED ) * + + 14 / - 1 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT 3 * + 56 * - CAST ( NULL AS INTEGER ) * + + 14 / - 1 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT COALESCE ( - 12, + + CAST( NULL AS SIGNED ), ( + + 85 ) * - 52 ) + + 72 col1
----
60

skipif mysql # not compatible
query I rowsort label-8437
SELECT COALESCE ( - 12, + + CAST ( NULL AS INTEGER ), ( + + 85 ) * - 52 ) + + 72 col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT - 71 + 67 - - + 9 * COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8438
SELECT - 71 + 67 - - + 9 * COUNT ( * ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT ALL - NULLIF ( + - COUNT( * ), - 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL - NULLIF ( + - COUNT ( * ), - 89 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - + 41 - 43
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8441
SELECT MAX( - + CAST( NULL AS SIGNED ) ) + - + 67 + - + 64 * COUNT( * ) + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8441
SELECT MAX ( - + CAST ( NULL AS INTEGER ) ) + - + 67 + - + 64 * COUNT ( * ) + + 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8442
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) * - 5 + + 80 + COUNT( ALL - 13 ) / - ( + 59 ) + - MIN( DISTINCT + 16 ) + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) * - 5 + + 80 + COUNT ( ALL - 13 ) / - ( + 59 ) + - MIN ( DISTINCT + 16 ) + 68
----
NULL

query I rowsort
SELECT ALL + 48 col0
----
48

query I rowsort
SELECT ALL 29 * + + 72 AS col0
----
2088

query I rowsort
SELECT 68 + + - 35 AS col2
----
33

query I rowsort
SELECT 71 * 63 AS col0
----
4473

query I rowsort
SELECT - 96 + - + 89 AS col2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT DISTINCT - ( + - CAST( NULL AS SIGNED ) ) / 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) / 5 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8449
SELECT + 81 DIV - + 9 + - COUNT( * ) + COUNT( - - 24 ) * - 35 * - ( COALESCE ( + - CAST( NULL AS SIGNED ), - ( - 41 ), COUNT( * ) ) )
----
1425

skipif mysql # not compatible
query I rowsort label-8449
SELECT + 81 / - + 9 + - COUNT ( * ) + COUNT ( - - 24 ) * - 35 * - ( COALESCE ( + - CAST ( NULL AS INTEGER ), - ( - 41 ), COUNT ( * ) ) )
----
1425

query I rowsort
SELECT ALL - + 23 AS col1
----
-23

query I rowsort
SELECT ALL - 55 * - + 69 + - 55
----
3740

onlyif mysql # DIV for integer division: 
query I rowsort label-8452
SELECT DISTINCT 41 DIV 26 DIV - + 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT 41 / 26 / - + 37 AS col2
----
0

query I rowsort
SELECT ALL - 52 col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-8454
SELECT 88 DIV + 40 DIV - 1 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8454
SELECT 88 / + 40 / - 1 AS col2
----
-2

query II rowsort
SELECT ALL 93 + - ( 86 ) AS col0, 43
----
7
43

query I rowsort
SELECT 59 * + 1 AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8457
SELECT 49 * + 30 + 93 + 56 * + 63 DIV + COUNT( * ) DIV - COUNT( * ) AS col2
----
-1965

skipif mysql # not compatible
query I rowsort label-8457
SELECT 49 * + 30 + 93 + 56 * + 63 / + COUNT ( * ) / - COUNT ( * ) AS col2
----
-1965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT ALL 11 * CAST( + AVG ( ALL CAST( NULL AS SIGNED ) ) AS SIGNED ) * - 24 * 95 + - CAST( - - 31 AS SIGNED ) + + - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL 11 * CAST ( + AVG ( ALL CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - 24 * 95 + - CAST ( - - 31 AS INTEGER ) + + - 78 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT 4 + - 2 DIV + + 41 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8459
SELECT 4 + - 2 / + + 41 AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8460
SELECT 13 + NULLIF ( - 12, - 72 + 0 * - CASE + SUM( DISTINCT - - 46 ) WHEN COUNT( - - 59 ) + 61 THEN + + 27 / + - 29 - COUNT( * ) WHEN - 4 * - 87 + + 32 + + 36 THEN NULL WHEN - COALESCE ( - CAST( - COUNT( * ) AS SIGNED ), + MAX( DISTINCT - 51 ) + 50 ) THEN - 85 * - + 84 - - - AVG ( - - 16 ) + + 60 + - - 48 * - + 80 * - CAST( NULL AS SIGNED ) * - + 29 ELSE - - ( - 93 ) END ) AS col2, + 74 AS col0
----
1
74

skipif mysql # not compatible
query II rowsort label-8460
SELECT 13 + NULLIF ( - 12, - 72 + 0 * - CASE + SUM ( DISTINCT - - 46 ) WHEN COUNT ( - - 59 ) + 61 THEN + + 27 / + - 29 - COUNT ( * ) WHEN - 4 * - 87 + + 32 + + 36 THEN NULL WHEN - COALESCE ( - CAST ( - COUNT ( * ) AS INTEGER ), + MAX ( DISTINCT - 51 ) + 50 ) THEN - 85 * - + 84 - - - AVG ( - - 16 ) + + 60 + - - 48 * - + 80 * - CAST ( NULL AS INTEGER ) * - + 29 ELSE - - ( - 93 ) END ) AS col2, + 74 AS col0
----
1
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8461
SELECT + COUNT( * ) AS col2, - ( - CAST( NULL AS SIGNED ) ) * 53 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8461
SELECT + COUNT ( * ) AS col2, - ( - CAST ( NULL AS INTEGER ) ) * 53 AS col0
----
1
NULL

query I rowsort
SELECT ALL 51 * + COALESCE ( + 87, - - 48, - + 1 * 92 )
----
4437

onlyif mysql # aggregate syntax: 
query II rowsort label-8463
SELECT DISTINCT - 32, - ( + COUNT( * ) ) AS col1
----
-32
-1

skipif mysql # not compatible
query II rowsort label-8463
SELECT DISTINCT - 32, - ( + COUNT ( * ) ) AS col1
----
-32
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT DISTINCT + NULLIF ( + 16, - COUNT( * ) + - COUNT( + 80 ) + + 91 ) + - 68 + - + 96 AS col0
----
-148

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT + NULLIF ( + 16, - COUNT ( * ) + - COUNT ( + 80 ) + + 91 ) + - 68 + - + 96 AS col0
----
-148

query I rowsort
SELECT DISTINCT + 77 + + + 55 * 55 AS col2
----
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT ALL - 23 + + - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL - 23 + + - COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-8467
SELECT DISTINCT - CASE + 71 WHEN - SUM( DISTINCT 19 ) THEN + 88 END col1, 33 * + + 48
----
NULL
1584

skipif mysql # not compatible
query II rowsort label-8467
SELECT DISTINCT - CASE + 71 WHEN - SUM ( DISTINCT 19 ) THEN + 88 END col1, 33 * + + 48
----
NULL
1584

onlyif mysql # aggregate syntax: 
query II rowsort label-8468
SELECT 93 - - ( - 75 ) + + + 66 * - 97 AS col0, + CASE - 90 WHEN - - 71 THEN - NULLIF ( 41, - 46 + - 51 - MIN( DISTINCT + 1 ) ) - 55 * + 38 WHEN 44 THEN 32 * ( - 39 ) - 27 + - - 43 + - 32 END
----
-6384
NULL

skipif mysql # not compatible
query II rowsort label-8468
SELECT 93 - - ( - 75 ) + + + 66 * - 97 AS col0, + CASE - 90 WHEN - - 71 THEN - NULLIF ( 41, - 46 + - 51 - MIN ( DISTINCT + 1 ) ) - 55 * + 38 WHEN 44 THEN 32 * ( - 39 ) - 27 + - - 43 + - 32 END
----
-6384
NULL

query I rowsort
SELECT 38 * - 43 AS col1
----
-1634

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL - CASE ( - 4 ) WHEN - 37 THEN - COUNT( * ) + - - 4 WHEN - MIN( DISTINCT 68 ) THEN NULL END * - - 22 * 48 * - 65 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL - CASE ( - 4 ) WHEN - 37 THEN - COUNT ( * ) + - - 4 WHEN - MIN ( DISTINCT 68 ) THEN NULL END * - - 22 * 48 * - 65 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8471
SELECT DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 71 * + 16 + - MAX( + 43 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 71 * + 16 + - MAX ( + 43 ) col1
----
NULL

query I rowsort
SELECT 24 * + 88 - 53
----
2059

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT ALL - 88 * + ( CASE - 94 WHEN COUNT( * ) * - 37 THEN 65 WHEN + 78 * 90 THEN NULL ELSE 6 END )
----
-528

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL - 88 * + ( CASE - 94 WHEN COUNT ( * ) * - 37 THEN 65 WHEN + 78 * 90 THEN NULL ELSE 6 END )
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT SUM( ALL - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT SUM ( ALL - 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT COUNT( * ) - - 13 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8475
SELECT COUNT ( * ) - - 13 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT + 1 * - ( MIN( ALL + NULLIF ( - 59, 38 ) ) )
----
59

skipif mysql # not compatible
query I rowsort label-8476
SELECT + 1 * - ( MIN ( ALL + NULLIF ( - 59, 38 ) ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT DISTINCT CASE WHEN 20 = ( - ( 69 ) ) THEN 22 * - ( 16 * + COUNT( 91 ) ) ELSE + 74 + ( + 59 ) END col0
----
133

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT CASE WHEN 20 = ( - ( 69 ) ) THEN 22 * - ( 16 * + COUNT ( 91 ) ) ELSE + 74 + ( + 59 ) END col0
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT - 72 + CASE - 89 WHEN + 94 * 80 THEN - 13 WHEN CAST( NULL AS SIGNED ) THEN CAST( 24 AS SIGNED ) * - CASE 95 - - 12 WHEN + 73 * ( 97 ) THEN NULL WHEN + AVG ( DISTINCT 98 ) THEN 47 WHEN + 15 THEN CASE 89 WHEN - 80 THEN 52 * 79 WHEN - 53 THEN NULL END + - 66 END + - 90 / + 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT - 72 + CASE - 89 WHEN + 94 * 80 THEN - 13 WHEN CAST ( NULL AS INTEGER ) THEN CAST ( 24 AS INTEGER ) * - CASE 95 - - 12 WHEN + 73 * ( 97 ) THEN NULL WHEN + AVG ( DISTINCT 98 ) THEN 47 WHEN + 15 THEN CASE 89 WHEN - 80 THEN 52 * 79 WHEN - 53 THEN NULL END + - 66 END + - 90 / + 8 END
----
NULL

query I rowsort
SELECT + ( - 94 ) * 31 AS col0
----
-2914

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT - SUM( ALL 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-8480
SELECT - SUM ( ALL 51 )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT ALL 53 * + ( 85 * - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL 53 * + ( 85 * - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 48, + 96 ) AS col1
----
48

query I rowsort
SELECT + 12 * - 60
----
-720

query I rowsort
SELECT ALL 17 + 14 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8485
SELECT + CASE CAST( NULL AS DECIMAL ) WHEN 0 + + MAX( - 71 ) * - ( 7 * + 25 ) THEN NULL WHEN 60 THEN 57 / COUNT( * ) END / 93 + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-8485
SELECT + CASE CAST ( NULL AS REAL ) WHEN 0 + + MAX ( - 71 ) * - ( 7 * + 25 ) THEN NULL WHEN 60 THEN 57 / COUNT ( * ) END / 93 + 73
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8486
SELECT ( + ( CAST( - 0 AS SIGNED ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8486
SELECT ( + ( CAST ( - 0 AS INTEGER ) ) ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT + COALESCE ( + ( - 69 ), + 81 DIV - 0 ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-8487
SELECT + COALESCE ( + ( - 69 ), + 81 / - 0 ) col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8488
SELECT + 76 + CASE 56 WHEN 33 THEN 65 ELSE - COUNT( * ) END * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT + 76 + CASE 56 WHEN 33 THEN 65 ELSE - COUNT ( * ) END * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 81 * + 96 AS col0
----
7776

query I rowsort
SELECT + ( + 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT ALL COUNT( - 38 ) * - 59 + - COALESCE ( - 38, 52 ) * - 21
----
-857

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL COUNT ( - 38 ) * - 59 + - COALESCE ( - 38, 52 ) * - 21
----
-857

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT + COALESCE ( - COALESCE ( + COUNT( 47 ), - 44, - 5 ), COALESCE ( 99, + 99 + + ( + ( 83 ) ) * 58 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8492
SELECT + COALESCE ( - COALESCE ( + COUNT ( 47 ), - 44, - 5 ), COALESCE ( 99, + 99 + + ( + ( 83 ) ) * 58 ) )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8493
SELECT ALL - CAST( NULL AS DECIMAL ) * + 86 + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL - CAST ( NULL AS REAL ) * + 86 + + 41
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8494
SELECT + ( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8494
SELECT + ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT + 98 + - SUM( DISTINCT - 41 + + 19 ) col2
----
120

skipif mysql # not compatible
query I rowsort label-8495
SELECT + 98 + - SUM ( DISTINCT - 41 + + 19 ) col2
----
120

query I rowsort
SELECT ALL 30 * - 91 + 46 AS col2
----
-2684

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT DISTINCT + SUM( 30 )
----
30

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT + SUM ( 30 )
----
30

query I rowsort
SELECT NULLIF ( 12, ( NULLIF ( 30, + 25 * + 73 ) ) + CASE 20 WHEN - NULLIF ( 47, 18 ) * + ( 0 ) THEN NULL WHEN - 48 + 63 THEN - 61 * - ( 99 ) WHEN 63 THEN NULL ELSE NULL END * + 24 )
----
12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8499
SELECT CAST( - 52 AS DECIMAL ) * + 0 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8499
SELECT CAST ( - 52 AS REAL ) * + 0 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT ALL 97 * COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL 97 * COUNT ( * ) AS col0
----
97

query I rowsort
SELECT - 54 * + NULLIF ( 27, 73 * - 65 ) + - 1
----
-1459

query I rowsort
SELECT + ( 66 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT 28 * - COUNT( * ) + + 92 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8503
SELECT 28 * - COUNT ( * ) + + 92 AS col2
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8504
SELECT ALL + CAST( - 53 AS SIGNED ) * + 31 - 89 AS col2
----
-1732

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL + CAST ( - 53 AS INTEGER ) * + 31 - 89 AS col2
----
-1732

query I rowsort
SELECT ALL 61 * 3
----
183

query I rowsort
SELECT - 32 + 17
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT DISTINCT + SUM( ALL 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT + SUM ( ALL 0 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT DISTINCT - SUM( DISTINCT 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT - SUM ( DISTINCT 94 ) AS col1
----
-94

query I rowsort
SELECT - 15 * ( 85 ) AS col0
----
-1275

query I rowsort
SELECT ALL NULLIF ( - 62, + 35 + 97 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT - MAX( + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-8511
SELECT - MAX ( + 95 )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8512
SELECT - - COALESCE ( 33, + CASE MIN( + ( - 74 ) ) WHEN + 7 THEN 33 + + 63 WHEN - CAST( 13 AS SIGNED ) THEN MIN( ALL - 70 ) + CAST( 4 AS SIGNED ) DIV 85 ELSE NULL END )
----
33

skipif mysql # not compatible
query I rowsort label-8512
SELECT - - COALESCE ( 33, + CASE MIN ( + ( - 74 ) ) WHEN + 7 THEN 33 + + 63 WHEN - CAST ( 13 AS INTEGER ) THEN MIN ( ALL - 70 ) + CAST ( 4 AS INTEGER ) / 85 ELSE NULL END )
----
33

query I rowsort
SELECT ALL - 70 * 95 AS col2
----
-6650

query I rowsort
SELECT - - CASE 20 WHEN + 92 THEN 51 ELSE - 64 - + ( - 79 ) * + 17 END + - 19
----
1260

query I rowsort
SELECT - + 1 + 68 AS col2
----
67

query I rowsort
SELECT - + ( + ( 9 ) ) col1
----
-9

query I rowsort
SELECT ALL - 21 * 2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-8518
SELECT - - 15 DIV 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8518
SELECT - - 15 / 70 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8519
SELECT ALL - CAST( NULL AS SIGNED ) * - 26 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL - CAST ( NULL AS INTEGER ) * - 26 col2
----
NULL

query I rowsort
SELECT ALL - 18 + - ( 72 ) AS col2
----
-90

query I rowsort
SELECT - NULLIF ( 99, + 23 * - 69 ) + - 94 AS col0
----
-193

query I rowsort
SELECT - + 23 AS col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8523
SELECT ALL + - COUNT( * ) DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL + - COUNT ( * ) / + 34
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8524
SELECT - + 88 DIV 22 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8524
SELECT - + 88 / 22 AS col2
----
-4

query I rowsort
SELECT DISTINCT + 77 + + 92 + 17 AS col2
----
186

query I rowsort
SELECT ALL 64 + + 88 AS col0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT ALL + ( - + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL + ( - + COUNT ( * ) ) col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8528
SELECT DISTINCT + 21 DIV + + 43 + 77
----
77

skipif mysql # not compatible
query I rowsort label-8528
SELECT DISTINCT + 21 / + + 43 + 77
----
77

query I rowsort
SELECT DISTINCT + 65 AS col1
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8530
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8531
SELECT ALL 51 DIV + 94 + 64 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL 51 / + 94 + 64 AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8532
SELECT ALL 57 DIV 10 * 12 + 90 * - 13 AS col2
----
-1110

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL 57 / 10 * 12 + 90 * - 13 AS col2
----
-1110

onlyif mysql # DIV for integer division: 
query I rowsort label-8533
SELECT DISTINCT + 43 DIV 97 + 6
----
6

skipif mysql # not compatible
query I rowsort label-8533
SELECT DISTINCT + 43 / 97 + 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT + ( - MAX( DISTINCT - 73 ) )
----
73

skipif mysql # not compatible
query I rowsort label-8534
SELECT + ( - MAX ( DISTINCT - 73 ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT + NULLIF ( - 69, SUM( 44 ) ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-8535
SELECT + NULLIF ( - 69, SUM ( 44 ) ) AS col0
----
-69

query I rowsort
SELECT + 68 + + CASE 35 WHEN - 25 * 69 THEN ( 10 ) * + 42 WHEN 44 THEN NULL END * - 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8537
SELECT CAST( + + 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-8537
SELECT CAST ( + + 3 AS INTEGER )
----
3

query I rowsort
SELECT + CASE 29 WHEN 17 THEN NULL WHEN - 32 * + 77 THEN 37 * 84 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT ( - NULLIF ( COUNT( * ), ( + NULLIF ( + 76, - COALESCE ( - NULLIF ( MAX( DISTINCT - 99 ), - 74 - 96 ), - 23 * + 12 ) ) ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8539
SELECT ( - NULLIF ( COUNT ( * ), ( + NULLIF ( + 76, - COALESCE ( - NULLIF ( MAX ( DISTINCT - 99 ), - 74 - 96 ), - 23 * + 12 ) ) ) ) ) AS col2
----
-1

query I rowsort
SELECT ALL + ( - - 27 )
----
27

query I rowsort
SELECT ( + ( + 22 ) )
----
22

query I rowsort
SELECT ( + ( 31 ) ) AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8543
SELECT ALL COALESCE ( - - 50, + CASE + 74 WHEN COALESCE ( COUNT( * ), 72 + + 63, COALESCE ( ( CAST( NULL AS SIGNED ) ), + 67 * 23 + 88 * 53 ) ) THEN NULL WHEN - 10 THEN - 55 + + 81 DIV 21 ELSE NULL END ) DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL COALESCE ( - - 50, + CASE + 74 WHEN COALESCE ( COUNT ( * ), 72 + + 63, COALESCE ( ( CAST ( NULL AS INTEGER ) ), + 67 * 23 + 88 * 53 ) ) THEN NULL WHEN - 10 THEN - 55 + + 81 / 21 ELSE NULL END ) / 72 AS col1
----
0

query I rowsort
SELECT ( + + 95 ) * 2 AS col2
----
190

query I rowsort
SELECT ALL - + 73 AS col1
----
-73

query I rowsort
SELECT DISTINCT 78 * + 60 * 50
----
234000

query I rowsort
SELECT ALL - + 82 AS col0
----
-82

query I rowsort
SELECT + 56 + + + 57
----
113

query I rowsort
SELECT + + NULLIF ( + 89, 31 ) AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8550
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * + MIN( DISTINCT + 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * + MIN ( DISTINCT + 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT + - NULLIF ( + + MAX( + 5 ), - 82 * 25 ) * - ( + 38 ) + - CASE - 64 WHEN 28 + - 12 THEN 30 * 48 + - 3 * 83 END / 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT + - NULLIF ( + + MAX ( + 5 ), - 82 * 25 ) * - ( + 38 ) + - CASE - 64 WHEN 28 + - 12 THEN 30 * 48 + - 3 * 83 END / 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT 77 * - 35 * MIN( DISTINCT - 12 ) + 89
----
32429

skipif mysql # not compatible
query I rowsort label-8552
SELECT 77 * - 35 * MIN ( DISTINCT - 12 ) + 89
----
32429

query I rowsort
SELECT - 49 + 65
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT - MAX( DISTINCT - 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8554
SELECT - MAX ( DISTINCT - 26 ) AS col1
----
26

query I rowsort
SELECT DISTINCT 67 + - + 34 col1
----
33

query I rowsort
SELECT DISTINCT 80 + - - 40 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT ALL + COUNT( * ) + - COUNT( * ) + - CASE + COUNT( * ) WHEN 61 * - 37 THEN 55 END * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL + COUNT ( * ) + - COUNT ( * ) + - CASE + COUNT ( * ) WHEN 61 * - 37 THEN 55 END * 89
----
NULL

query I rowsort
SELECT DISTINCT + 25 + 72 - - 57
----
154

query I rowsort
SELECT ALL - 67 + - 87 * 10 AS col0
----
-937

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT ALL + - 91 + 59 + - COUNT( * ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL + - 91 + 59 + - COUNT ( * ) AS col2
----
-33

query I rowsort
SELECT - ( + COALESCE ( - 5, 83 ) ) * 65
----
325

query I rowsort
SELECT - 51 * + - 32 AS col1
----
1632

query I rowsort
SELECT - + 38 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT DISTINCT + MIN( ALL 22 ) + - COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT + MIN ( ALL 22 ) + - COUNT ( * ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL - - 78 + - COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL - - 78 + - COUNT ( * ) AS col1
----
77

query I rowsort
SELECT ALL + 32 + + 72
----
104

query I rowsort
SELECT 84 - 91 * + 19 + + 0
----
-1645

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8568
SELECT DISTINCT 76 DIV 62 * + COUNT( * ) DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT 76 / 62 * + COUNT ( * ) / + 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT + CASE 84 WHEN - + COUNT( * ) + COALESCE ( 44, - 22 / - 7 + - 11, 62 * - 7 ) * - 7 THEN NULL WHEN COUNT( * ) THEN 58 WHEN 69 THEN NULL ELSE 83 + + COUNT( * ) END * - 92
----
-7728

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT + CASE 84 WHEN - + COUNT ( * ) + COALESCE ( 44, - 22 / - 7 + - 11, 62 * - 7 ) * - 7 THEN NULL WHEN COUNT ( * ) THEN 58 WHEN 69 THEN NULL ELSE 83 + + COUNT ( * ) END * - 92
----
-7728

query I rowsort
SELECT DISTINCT 93 + + + COALESCE ( - 64, - 96 * 3 )
----
29

query I rowsort
SELECT 97 * 12 * 70
----
81480

query I rowsort
SELECT ALL + 91 - 97 AS col1
----
-6

query I rowsort
SELECT 87 * - 54 AS col0
----
-4698

query I rowsort
SELECT ALL - ( 2 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8575
SELECT + 3 DIV 33 + - + COALESCE ( + 27, + SUM( - 81 ) + - 42 * + 84 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8575
SELECT + 3 / 33 + - + COALESCE ( + 27, + SUM ( - 81 ) + - 42 * + 84 ) AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8576
SELECT COUNT( * ) DIV + 10
----
0

skipif mysql # not compatible
query I rowsort label-8576
SELECT COUNT ( * ) / + 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL - MIN( - 83 )
----
83

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL - MIN ( - 83 )
----
83

query I rowsort
SELECT 9 * + 90 AS col2
----
810

query I rowsort
SELECT - 15 * 3 + - 39 - - 89 AS col2
----
5

query II rowsort
SELECT DISTINCT - 89 AS col0, 91
----
-89
91

query I rowsort
SELECT - 59 * ( - 1 ) + + 15 * 40
----
659

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL ( 38 ) * + COUNT( DISTINCT + ( 7 ) ) * COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL ( 38 ) * + COUNT ( DISTINCT + ( 7 ) ) * COUNT ( * ) AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8583
SELECT COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8583
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL + 56 * COALESCE ( 35, + COUNT( - 59 ) * + 56 )
----
1960

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL + 56 * COALESCE ( 35, + COUNT ( - 59 ) * + 56 )
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT 40 * COUNT( * ) + - - COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-8585
SELECT 40 * COUNT ( * ) + - - COUNT ( * ) AS col0
----
41

query I rowsort
SELECT 12 + 39 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT DISTINCT - COUNT( DISTINCT + 31 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT - COUNT ( DISTINCT + 31 ) AS col1
----
-1

query I rowsort
SELECT 15 * + 98 * ( + 87 ) + - ( + 56 )
----
127834

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT + - COUNT( * ) * + 55 + - 8 - 41 * + 21
----
-924

skipif mysql # not compatible
query I rowsort label-8589
SELECT + - COUNT ( * ) * + 55 + - 8 - 41 * + 21
----
-924

query II rowsort
SELECT ALL - + 46 AS col0, 35 + - 48 col2
----
-46
-13

query I rowsort
SELECT ALL + 62 + + 89 AS col0
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8592
SELECT DISTINCT - + COUNT( * ) + - 87 DIV - 15
----
4

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT - + COUNT ( * ) + - 87 / - 15
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT ALL - 88 * + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL - 88 * + COUNT ( * )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8594
SELECT + 99 DIV - + ( 28 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8594
SELECT + 99 / - + ( 28 ) AS col1
----
-3

query I rowsort
SELECT DISTINCT 69 + - + 10 AS col1
----
59

query I rowsort
SELECT ALL - 18 + - 45
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8597
SELECT DISTINCT 78 DIV - + MAX( DISTINCT 49 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT 78 / - + MAX ( DISTINCT 49 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT DISTINCT 52 + - MAX( + 56 ) + 14 col0
----
10

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT 52 + - MAX ( + 56 ) + 14 col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL 96 * - COUNT( * ) + + 78
----
-18

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL 96 * - COUNT ( * ) + + 78
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT - 66 + + 48 - + COUNT( * ) * + 45
----
-63

skipif mysql # not compatible
query I rowsort label-8600
SELECT - 66 + + 48 - + COUNT ( * ) * + 45
----
-63

query I rowsort
SELECT - - 63 col2
----
63

query I rowsort
SELECT + 49 * - 97 * + 26 AS col2
----
-123578

query I rowsort
SELECT DISTINCT - 36 + 52 * 31
----
1576

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8604
SELECT - - 40 AS col2, - COALESCE ( + ( 31 ), 99 * + CASE + 22 WHEN 29 * SUM( ALL 30 ) THEN COUNT( * ) WHEN - 47 THEN MAX( + 63 ) + 19 ELSE NULL END + 3 ) DIV + 28 + 61
----
40
60

skipif mysql # not compatible
query II rowsort label-8604
SELECT - - 40 AS col2, - COALESCE ( + ( 31 ), 99 * + CASE + 22 WHEN 29 * SUM ( ALL 30 ) THEN COUNT ( * ) WHEN - 47 THEN MAX ( + 63 ) + 19 ELSE NULL END + 3 ) / + 28 + 61
----
40
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT - + SUM( DISTINCT 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-8605
SELECT - + SUM ( DISTINCT 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT ALL COUNT( * ) + + 92
----
93

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL COUNT ( * ) + + 92
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8607
SELECT - COUNT( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8607
SELECT - COUNT ( CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT + 15 + - 34 * + + 91 + - 64
----
-3143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8609
SELECT DISTINCT 85 - - 89 + - 76 + 18 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT 85 - - 89 + - 76 + 18 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 3 + + ( 22 ) AS col0
----
25

query I rowsort
SELECT ALL 28 - - + 63 AS col2
----
91

query I rowsort
SELECT DISTINCT - 23 - + 1 + - COALESCE ( - 50, 76 ) * 15
----
726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT 13 + - + CAST( - - 75 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-8613
SELECT 13 + - + CAST ( - - 75 AS INTEGER )
----
-62

query I rowsort
SELECT ALL + 59 * + 38 col2
----
2242

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT 19 + - MIN( DISTINCT - + 54 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-8615
SELECT 19 + - MIN ( DISTINCT - + 54 ) AS col2
----
73

query I rowsort
SELECT DISTINCT 81 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT 29 + + 34 * - COUNT( * ) + + MAX( + 1 )
----
-4

skipif mysql # not compatible
query I rowsort label-8617
SELECT 29 + + 34 * - COUNT ( * ) + + MAX ( + 1 )
----
-4

query I rowsort
SELECT 32 * - - NULLIF ( + + 74, - 79 + 72 * + 20 )
----
2368

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT 38 + 9 + 78 DIV ( 71 )
----
48

skipif mysql # not compatible
query I rowsort label-8619
SELECT 38 + 9 + 78 / ( 71 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT CAST( NULL AS SIGNED ) * + ( - 69 ) * CAST( 63 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8620
SELECT CAST ( NULL AS INTEGER ) * + ( - 69 ) * CAST ( 63 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT 48 + - 83 - + - 42 + + COUNT( * ) * 80
----
87

skipif mysql # not compatible
query I rowsort label-8621
SELECT 48 + - 83 - + - 42 + + COUNT ( * ) * 80
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8622
SELECT DISTINCT + 42 - + COUNT( * ) AS col0, 11 col1
----
41
11

skipif mysql # not compatible
query II rowsort label-8622
SELECT DISTINCT + 42 - + COUNT ( * ) AS col0, 11 col1
----
41
11

query I rowsort
SELECT 22 * 46 * + - 40 col1
----
-40480

query I rowsort
SELECT ALL COALESCE ( + 93, 6 ) * + 25
----
2325

query I rowsort
SELECT ALL + 33 * + 39 AS col1
----
1287

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT NULLIF ( SUM( DISTINCT - 10 ), + 25 )
----
-10

skipif mysql # not compatible
query I rowsort label-8626
SELECT NULLIF ( SUM ( DISTINCT - 10 ), + 25 )
----
-10

query I rowsort
SELECT ALL 39 * + - 99 AS col2
----
-3861

query I rowsort
SELECT ALL - NULLIF ( 13, - 74 ) AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8629
SELECT COALESCE ( + + 37, + - 53 - + NULLIF ( 16, 64 - CAST( NULL AS SIGNED ) ) )
----
37

skipif mysql # not compatible
query I rowsort label-8629
SELECT COALESCE ( + + 37, + - 53 - + NULLIF ( 16, 64 - CAST ( NULL AS INTEGER ) ) )
----
37

query I rowsort
SELECT ALL + NULLIF ( 86, - 19 ) col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT COALESCE ( + - 11, + - ( + COUNT( * ) ) )
----
-11

skipif mysql # not compatible
query I rowsort label-8631
SELECT COALESCE ( + - 11, + - ( + COUNT ( * ) ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT DISTINCT + MAX( ALL - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT + MAX ( ALL - 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT + NULLIF ( - COUNT( * ), + - 50 + + - 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8633
SELECT + NULLIF ( - COUNT ( * ), + - 50 + + - 67 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT COALESCE ( + 25, + 7 * + 51 + - 56 DIV - 15 )
----
25

skipif mysql # not compatible
query I rowsort label-8634
SELECT COALESCE ( + 25, + 7 * + 51 + - 56 / - 15 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8635
SELECT ALL - CASE - MIN( - 46 ) WHEN + 68 * COUNT( * ) THEN - CAST( NULL AS DECIMAL ) END / - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL - CASE - MIN ( - 46 ) WHEN + 68 * COUNT ( * ) THEN - CAST ( NULL AS REAL ) END / - 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8636
SELECT MIN( - 86 ), - 81 * 4 col2
----
-86
-324

skipif mysql # not compatible
query II rowsort label-8636
SELECT MIN ( - 86 ), - 81 * 4 col2
----
-86
-324

query I rowsort
SELECT ALL 91 * - 61 + - ( + 65 ) AS col2
----
-5616

query I rowsort
SELECT ALL - 11 * - CASE - + 53 WHEN CASE - 79 WHEN 73 THEN 89 END THEN - 17 * - 0 END + ( + 26 ) * 30 col1
----
NULL

query I rowsort
SELECT ALL 41 * + 23 * 61 + 87 * - 49 + 20 * 80
----
54860

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT - + CASE 83 WHEN 53 * - 42 * 84 THEN - 7 * + COUNT( ALL 36 ) + COUNT( * ) ELSE NULL END * MAX( 6 * 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT - + CASE 83 WHEN 53 * - 42 * 84 THEN - 7 * + COUNT ( ALL 36 ) + COUNT ( * ) ELSE NULL END * MAX ( 6 * 81 )
----
NULL

query I rowsort
SELECT ALL 27 * - 73
----
-1971

query I rowsort
SELECT ALL + 31 * - 76 AS col2
----
-2356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8643
SELECT + 28 * + 50 * 89 + + 17 + - CAST( - 36 AS SIGNED ) AS col1
----
124653

skipif mysql # not compatible
query I rowsort label-8643
SELECT + 28 * + 50 * 89 + + 17 + - CAST ( - 36 AS INTEGER ) AS col1
----
124653

query I rowsort
SELECT + 24 * - 56
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT - 7 * - - SUM( ALL + 33 ) + - 21 AS col0
----
-252

skipif mysql # not compatible
query I rowsort label-8645
SELECT - 7 * - - SUM ( ALL + 33 ) + - 21 AS col0
----
-252

query I rowsort
SELECT DISTINCT + 65 + + 70 + 81
----
216

query I rowsort
SELECT + ( 47 )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8648
SELECT + - COUNT( * ) DIV - - 42
----
0

skipif mysql # not compatible
query I rowsort label-8648
SELECT + - COUNT ( * ) / - - 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT - - NULLIF ( 24, - - MAX( - + 2 ) ) * - 93
----
-2232

skipif mysql # not compatible
query I rowsort label-8649
SELECT - - NULLIF ( 24, - - MAX ( - + 2 ) ) * - 93
----
-2232

query I rowsort
SELECT DISTINCT - COALESCE ( - 93, + 6 )
----
93

query I rowsort
SELECT DISTINCT + 57 - - 85 * + 89 AS col0
----
7622

query I rowsort
SELECT DISTINCT 52 - + 20
----
32

query I rowsort
SELECT ALL 93 * - 8
----
-744

onlyif mysql # DIV for integer division: 
query I rowsort label-8654
SELECT ALL 5 DIV - - COALESCE ( - 10, + 27 ) * 76 + 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL 5 / - - COALESCE ( - 10, + 27 ) * 76 + 95 AS col1
----
95

query I rowsort
SELECT - 11 - 62 + 87 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT - COUNT( DISTINCT + - 30 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8656
SELECT - COUNT ( DISTINCT + - 30 ) AS col0
----
-1

query I rowsort
SELECT + 63 * 99 * - 85 * - ( - 22 ) * - 7 AS col1
----
81642330

query I rowsort
SELECT - ( + 61 ) col0
----
-61

query I rowsort
SELECT ALL 75 * - 53 AS col2
----
-3975

query II rowsort
SELECT ALL ( + 78 ) * + 75 AS col1, 90 * + 62 * + 27 AS col2
----
5850
150660

query II rowsort
SELECT 99 AS col0, - 26 AS col0
----
99
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT DISTINCT 4 * CAST( NULL AS SIGNED ) * + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT 4 * CAST ( NULL AS INTEGER ) * + 81 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8663
SELECT + 16 DIV + - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8663
SELECT + 16 / + - 69 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT DISTINCT CASE ( + CASE - - 13 WHEN 20 THEN + COUNT( * ) + SUM( 68 ) * + MAX( ALL + 1 ) ELSE NULL END ) WHEN + 71 THEN 36 * + 76 WHEN COUNT( * ) THEN NULL END * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT CASE ( + CASE - - 13 WHEN 20 THEN + COUNT ( * ) + SUM ( 68 ) * + MAX ( ALL + 1 ) ELSE NULL END ) WHEN + 71 THEN 36 * + 76 WHEN COUNT ( * ) THEN NULL END * 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT DISTINCT COUNT( ALL + + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT COUNT ( ALL + + 30 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT ALL ( + 46 ) * COUNT( + - 1 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL ( + 46 ) * COUNT ( + - 1 ) AS col0
----
46

query I rowsort
SELECT - ( - 20 )
----
20

query I rowsort
SELECT + 97 + + + 1 * - 88 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT + COUNT( * ) - - NULLIF ( + 62, - 56 ) + + - 75 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8669
SELECT + COUNT ( * ) - - NULLIF ( + 62, - 56 ) + + - 75 AS col0
----
-12

query I rowsort
SELECT - 62 * - - 15
----
-930

onlyif mysql # DIV for integer division: 
query I rowsort label-8671
SELECT ALL + 2 DIV - 27 + 43 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL + 2 / - 27 + 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT CASE - ( + 67 ) WHEN + - ( - 83 ) * 13 THEN - 55 END * 74 - + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT CASE - ( + 67 ) WHEN + - ( - 83 ) * 13 THEN - 55 END * 74 - + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT + 50 + + CASE - - 84 WHEN + + 6 THEN - + 53 WHEN 35 - COUNT( * ) / - 17 THEN NULL ELSE 45 END AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8673
SELECT + 50 + + CASE - - 84 WHEN + + 6 THEN - + 53 WHEN 35 - COUNT ( * ) / - 17 THEN NULL ELSE 45 END AS col1
----
95

query II rowsort
SELECT + 64 AS col2, + 84 AS col2
----
64
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8675
SELECT CAST( + + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8675
SELECT CAST ( + + COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8676
SELECT + 26 DIV + + 46
----
0

skipif mysql # not compatible
query I rowsort label-8676
SELECT + 26 / + + 46
----
0

query I rowsort
SELECT - - 43 * - - 56
----
2408

query I rowsort
SELECT DISTINCT - - 52 * + 96 AS col1
----
4992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8679
SELECT ALL - COUNT( * ) DIV + - ( 97 ) + - 0 + + ( + MIN( DISTINCT 74 ) ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL - COUNT ( * ) / + - ( 97 ) + - 0 + + ( + MIN ( DISTINCT 74 ) ) AS col1
----
74

query I rowsort
SELECT DISTINCT - 93 * 31 AS col1
----
-2883

query I rowsort
SELECT ALL + - 12 col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8682
SELECT ALL 97 * + 68 + - 77 DIV 98 * + 49 * 15 + MIN( DISTINCT - 51 ) AS col2
----
6545

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL 97 * + 68 + - 77 / 98 * + 49 * 15 + MIN ( DISTINCT - 51 ) AS col2
----
6545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8683
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT - + 16 + - - 71
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT ALL + + CAST( - + 84 AS SIGNED ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL + + CAST ( - + 84 AS INTEGER ) AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8686
SELECT CAST( NULL AS SIGNED ), + 14 * 52 DIV + - 30 AS col1
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-8686
SELECT CAST ( NULL AS INTEGER ), + 14 * 52 / + - 30 AS col1
----
NULL
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT - - 98 * - - 2 * + + COUNT( - - 28 ) + + ( 48 ) + + 80 * 17 + ( + 16 )
----
1620

skipif mysql # not compatible
query I rowsort label-8687
SELECT - - 98 * - - 2 * + + COUNT ( - - 28 ) + + ( 48 ) + + 80 * 17 + ( + 16 )
----
1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8688
SELECT ALL MIN( DISTINCT 19 ) * - + 68 * + - 42 * - 72 - + COUNT( * ) DIV + 76 AS col2
----
-3907008

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL MIN ( DISTINCT 19 ) * - + 68 * + - 42 * - 72 - + COUNT ( * ) / + 76 AS col2
----
-3907008

query I rowsort
SELECT + ( - - 61 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT - 55 * - + 8 - + + 79 + + COUNT( * ) col0
----
362

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT - 55 * - + 8 - + + 79 + + COUNT ( * ) col0
----
362

query I rowsort
SELECT ALL + 44 * + + 17 AS col1
----
748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8692
SELECT DISTINCT + + CASE + 29 WHEN + - 51 THEN - 39 WHEN - 40 THEN NULL WHEN - 88 * + COUNT( ALL 39 * 24 ) + - 57 THEN CAST( NULL AS SIGNED ) / + 90 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT + + CASE + 29 WHEN + - 51 THEN - 39 WHEN - 40 THEN NULL WHEN - 88 * + COUNT ( ALL 39 * 24 ) + - 57 THEN CAST ( NULL AS INTEGER ) / + 90 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 91 * + + 73 * 60 - NULLIF ( 4, + 63 - 99 ) AS col2
----
398576

query I rowsort
SELECT DISTINCT + + 62
----
62

query I rowsort
SELECT DISTINCT 46 * 31 * 79 col0
----
112654

query II rowsort
SELECT - 76 * 11 AS col2, - 77 col1
----
-836
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT - 87 + - 40 + COUNT( * ) + 13
----
-113

skipif mysql # not compatible
query I rowsort label-8697
SELECT - 87 + - 40 + COUNT ( * ) + 13
----
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8698
SELECT + 93 - COUNT( * ) - 3 - 6 DIV - - MIN( + 15 )
----
89

skipif mysql # not compatible
query I rowsort label-8698
SELECT + 93 - COUNT ( * ) - 3 - 6 / - - MIN ( + 15 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT DISTINCT - ( + 64 ) * + - MIN( DISTINCT + 16 ) - - 78 * - 10 * 43 + + 55 AS col2
----
-32461

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT - ( + 64 ) * + - MIN ( DISTINCT + 16 ) - - 78 * - 10 * 43 + + 55 AS col2
----
-32461

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT SUM( - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-8700
SELECT SUM ( - 24 )
----
-24

query I rowsort
SELECT + 28 + + 11 * - 27
----
-269

query I rowsort
SELECT - 40 * + 16 * CASE + + 42 WHEN 93 THEN NULL WHEN - - ( 14 ) THEN NULL WHEN - 46 THEN NULL ELSE - 5 + + 7 * 25 END * - 76
----
8268800

query I rowsort
SELECT DISTINCT ( - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT DISTINCT - MIN( ALL + - 95 ) * 59 * + 57 * - 36 AS col2
----
-11501460

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT - MIN ( ALL + - 95 ) * 59 * + 57 * - 36 AS col2
----
-11501460

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT - 33 + - - COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-8705
SELECT - 33 + - - COUNT ( * ) AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8706
SELECT ALL CAST( + + NULLIF ( - 48, - SUM( - 15 ) ) AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL CAST ( + + NULLIF ( - 48, - SUM ( - 15 ) ) AS INTEGER )
----
-48

query I rowsort
SELECT DISTINCT 91 col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT ALL 21 * + NULLIF ( - 74, - 95 ) * + SUM( DISTINCT - - 58 ) * + 89
----
-8021748

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL 21 * + NULLIF ( - 74, - 95 ) * + SUM ( DISTINCT - - 58 ) * + 89
----
-8021748

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT DISTINCT 39 + - COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT 39 + - COUNT ( * ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-8710
SELECT 71 AS col1, 77 * + COUNT( ALL ( - + 29 ) )
----
71
77

skipif mysql # not compatible
query II rowsort label-8710
SELECT 71 AS col1, 77 * + COUNT ( ALL ( - + 29 ) )
----
71
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT SUM( 32 ) + - + 34
----
-2

skipif mysql # not compatible
query I rowsort label-8711
SELECT SUM ( 32 ) + - + 34
----
-2

query I rowsort
SELECT ALL CASE + NULLIF ( 28, - 53 + 62 ) WHEN - 13 THEN + 84 END + 10 AS col2
----
NULL

query I rowsort
SELECT 37 * - - 56 AS col2
----
2072

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT 73 + + ( - COUNT( * ) ) * - - 19
----
54

skipif mysql # not compatible
query I rowsort label-8714
SELECT 73 + + ( - COUNT ( * ) ) * - - 19
----
54

query I rowsort
SELECT ALL 38 + + - 15 + + 57 * + - ( 38 ) AS col0
----
-2143

query I rowsort
SELECT ALL 14 + 82 AS col2
----
96

query I rowsort
SELECT - 43 * - + 62
----
2666

query I rowsort
SELECT ALL + 81 + - 42
----
39

query I rowsort
SELECT ALL - + 82 AS col2
----
-82

query I rowsort
SELECT DISTINCT + 64 * - ( 50 )
----
-3200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT ALL - CAST( NULL AS SIGNED ) + - 32 + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL - CAST ( NULL AS INTEGER ) + - 32 + + 73
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8722
SELECT - CAST( NULL AS SIGNED ) AS col2, - 16 AS col2
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-8722
SELECT - CAST ( NULL AS INTEGER ) AS col2, - 16 AS col2
----
NULL
-16

query I rowsort
SELECT + 9 - 81 AS col0
----
-72

query I rowsort
SELECT DISTINCT 58 - 27
----
31

query II rowsort
SELECT ALL - 56 AS col2, 67 AS col2
----
-56
67

query II rowsort
SELECT 1 AS col2, ( + + ( - 24 ) ) * + 2
----
1
-48

query I rowsort
SELECT 46 * 61
----
2806

query I rowsort
SELECT ( 56 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT DISTINCT - COUNT( * ) * + ( + - MAX( ALL + - CASE WHEN NULL < + 90 THEN 26 END ) ) * + ( + ( - 0 ) * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT - COUNT ( * ) * + ( + - MAX ( ALL + - CASE WHEN NULL < + 90 THEN 26 END ) ) * + ( + ( - 0 ) * COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8730
SELECT ALL - 48 col2, - CAST( + - 90 AS SIGNED ) * - - 25 + + COUNT( * ) + - - 64 AS col1
----
-48
2315

skipif mysql # not compatible
query II rowsort label-8730
SELECT ALL - 48 col2, - CAST ( + - 90 AS INTEGER ) * - - 25 + + COUNT ( * ) + - - 64 AS col1
----
-48
2315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8731
SELECT + + COALESCE ( + 29, - 46 * + - ( - - 31 ) ) * + CASE + 8 WHEN + 89 * 43 THEN NULL WHEN MAX( ALL NULLIF ( + 9, 76 - 74 ) ) + - 26 * 75 THEN + 31 + - 74 ELSE + 89 DIV - 6 END - + ( 16 ) * 12
----
-598

skipif mysql # not compatible
query I rowsort label-8731
SELECT + + COALESCE ( + 29, - 46 * + - ( - - 31 ) ) * + CASE + 8 WHEN + 89 * 43 THEN NULL WHEN MAX ( ALL NULLIF ( + 9, 76 - 74 ) ) + - 26 * 75 THEN + 31 + - 74 ELSE + 89 / - 6 END - + ( 16 ) * 12
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL + 15 * + + MIN( 26 ) + 51 - - + 56 * - 98 AS col0
----
-5047

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL + 15 * + + MIN ( 26 ) + 51 - - + 56 * - 98 AS col0
----
-5047

query I rowsort
SELECT DISTINCT - 57 - 7 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT COUNT( ALL - 12 ) * - 58 col1
----
-58

skipif mysql # not compatible
query I rowsort label-8734
SELECT COUNT ( ALL - 12 ) * - 58 col1
----
-58

query I rowsort
SELECT ALL - + ( - 79 ) AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8736
SELECT ALL - CASE + CAST( NULL AS SIGNED ) WHEN 49 THEN + + 48 WHEN COUNT( * ) + - MAX( DISTINCT + 46 ) THEN COALESCE ( 84, - 86 ) * + 98 END * - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL - CASE + CAST ( NULL AS INTEGER ) WHEN 49 THEN + + 48 WHEN COUNT ( * ) + - MAX ( DISTINCT + 46 ) THEN COALESCE ( 84, - 86 ) * + 98 END * - 36 AS col0
----
NULL

query I rowsort
SELECT 17 + + - 0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8738
SELECT + 9 DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-8738
SELECT + 9 / 49
----
0

query I rowsort
SELECT 48 * + 98 col0
----
4704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8740
SELECT ( + CAST( NULL AS SIGNED ) ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8740
SELECT ( + CAST ( NULL AS INTEGER ) ) + - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT - 86 * 19 - - ( - CASE 34 WHEN - - 97 THEN 37 + + 92 WHEN - 14 THEN NULL WHEN COUNT( * ) THEN NULL END ) / 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8741
SELECT - 86 * 19 - - ( - CASE 34 WHEN - - 97 THEN 37 + + 92 WHEN - 14 THEN NULL WHEN COUNT ( * ) THEN NULL END ) / 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT DISTINCT - CASE 50 WHEN - NULLIF ( - - 55, - 90 ) * - 42 THEN + NULLIF ( - SUM( DISTINCT 49 ), MAX( ALL 44 ) ) WHEN 92 THEN + 86 - - ( 21 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT - CASE 50 WHEN - NULLIF ( - - 55, - 90 ) * - 42 THEN + NULLIF ( - SUM ( DISTINCT 49 ), MAX ( ALL 44 ) ) WHEN 92 THEN + 86 - - ( 21 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8743
SELECT 12 DIV + 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8743
SELECT 12 / + 14 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT ALL + NULLIF ( + + 33, - - 29 ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL + NULLIF ( + + 33, - - 29 ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8745
SELECT DISTINCT + CAST( 70 AS SIGNED ) + - 36
----
34

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT + CAST ( 70 AS INTEGER ) + - 36
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT 31 + COUNT( * ) * - NULLIF ( - 32, - + COUNT( * ) * + - 86 * + - 15 + + COUNT( * ) * 0 )
----
63

skipif mysql # not compatible
query I rowsort label-8746
SELECT 31 + COUNT ( * ) * - NULLIF ( - 32, - + COUNT ( * ) * + - 86 * + - 15 + + COUNT ( * ) * 0 )
----
63

query I rowsort
SELECT ALL + 1 + + 6
----
7

query I rowsort
SELECT ALL - 10 * - + 78 AS col1
----
780

query I rowsort
SELECT 47 * + 85 AS col0
----
3995

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT 18 - - NULLIF ( 95, + COUNT( * ) ) - - - MAX( 25 )
----
88

skipif mysql # not compatible
query I rowsort label-8750
SELECT 18 - - NULLIF ( 95, + COUNT ( * ) ) - - - MAX ( 25 )
----
88

query I rowsort
SELECT DISTINCT - 29 * + 31 AS col2
----
-899

query I rowsort
SELECT DISTINCT - 56 + 70 + - + 36 * + 41
----
-1462

query I rowsort
SELECT 44 - 86 * - 24 - 86 AS col2
----
2022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8754
SELECT ALL - 39 + - COUNT( * ) + - - 88 + + 35 + + CAST( - + 4 AS SIGNED ) * - NULLIF ( - 54, - 64 ) * 87 * - 63 AS col1
----
1183979

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL - 39 + - COUNT ( * ) + - - 88 + + 35 + + CAST ( - + 4 AS INTEGER ) * - NULLIF ( - 54, - 64 ) * 87 * - 63 AS col1
----
1183979

query I rowsort
SELECT ALL + 11 * 9
----
99

query I rowsort
SELECT 63 - - - 91
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8757
SELECT ALL 32 DIV + + 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL 32 / + + 62 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8758
SELECT ALL + 60 DIV - 44
----
-1

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL + 60 / - 44
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8759
SELECT 91 + COUNT( * ) * - 24 DIV + - 95 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8759
SELECT 91 + COUNT ( * ) * - 24 / + - 95 AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8760
SELECT ALL + + 93 DIV - NULLIF ( 86, + - ( + 56 ) + + + 91 ) DIV - + COUNT( ALL 99 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL + + 93 / - NULLIF ( 86, + - ( + 56 ) + + + 91 ) / - + COUNT ( ALL 99 ) + COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8761
SELECT ALL 51 * - CAST( + - 23 AS SIGNED )
----
1173

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL 51 * - CAST ( + - 23 AS INTEGER )
----
1173

query II rowsort
SELECT 84 + 13, - 41 + + + 44 AS col0
----
97
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8763
SELECT COUNT( * ) DIV 68 * 87
----
0

skipif mysql # not compatible
query I rowsort label-8763
SELECT COUNT ( * ) / 68 * 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT + CASE - 85 WHEN - 98 THEN + ( + - 89 ) END * - + 73 * 72 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT + CASE - 85 WHEN - 98 THEN + ( + - 89 ) END * - + 73 * 72 - + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - ( - 44 )
----
44

query I rowsort
SELECT ALL 74 * 29
----
2146

query I rowsort
SELECT 14 * + 36 + + 81 + 80 + - + 98
----
567

query I rowsort
SELECT ALL + 50 * + + 30
----
1500

query I rowsort
SELECT ALL - + 1 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT 53 + - COALESCE ( 70, + + 24 * 99 ) * + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-8770
SELECT 53 + - COALESCE ( 70, + + 24 * 99 ) * + COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT ALL - MAX( DISTINCT 45 ) * - 97 col0
----
4365

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL - MAX ( DISTINCT 45 ) * - 97 col0
----
4365

query I rowsort
SELECT 84 * - 47 AS col0
----
-3948

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT + 15 * - + MIN( + 63 ) AS col1
----
-945

skipif mysql # not compatible
query I rowsort label-8773
SELECT + 15 * - + MIN ( + 63 ) AS col1
----
-945

query I rowsort
SELECT DISTINCT - ( - 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL 52 + - 24 * - - COALESCE ( 35, - 58, - 17 + ( + COUNT( * ) ), - ( 83 ) ) AS col1
----
-788

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL 52 + - 24 * - - COALESCE ( 35, - 58, - 17 + ( + COUNT ( * ) ), - ( 83 ) ) AS col1
----
-788

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT ALL ( - ( + 35 ) ) + 47 + - + 2 * + 4 DIV + 37
----
12

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL ( - ( + 35 ) ) + 47 + - + 2 * + 4 / + 37
----
12

query I rowsort
SELECT + NULLIF ( + 95, 35 * 36 ) col2
----
95

query I rowsort
SELECT + NULLIF ( - 68, + + AVG ( 16 ) - - 93 - - + 53 - - + 99 * 76 )
----
-68

query I rowsort
SELECT ALL 16 + + - 70 AS col1
----
-54

query I rowsort
SELECT + 98 + 61 AS col2
----
159

query II rowsort
SELECT ALL 39 AS col0, 87 + - 40
----
39
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8782
SELECT - 80 + 94 + 92 * CAST( NULL AS DECIMAL ) - - 69 * + + 71 * + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8782
SELECT - 80 + 94 + 92 * CAST ( NULL AS REAL ) - - 69 * + + 71 * + + 88
----
NULL

query II rowsort
SELECT - ( + 48 ) * - 55, + 75 AS col1
----
2640
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8784
SELECT - ( + 21 ) DIV - 93 * - 1
----
0

skipif mysql # not compatible
query I rowsort label-8784
SELECT - ( + 21 ) / - 93 * - 1
----
0

query I rowsort
SELECT ALL + 7 + - + 6 AS col2
----
1

query I rowsort
SELECT - 44 + - 30 * + + 70 AS col0
----
-2144

query I rowsort
SELECT - 3 * + 20
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8788
SELECT ALL 4 AS col2, - COUNT( * ) + + 98 AS col1
----
4
97

skipif mysql # not compatible
query II rowsort label-8788
SELECT ALL 4 AS col2, - COUNT ( * ) + + 98 AS col1
----
4
97

query I rowsort
SELECT DISTINCT - 34 * 58 AS col1
----
-1972

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT - CASE + 97 WHEN - - MIN( + 3 ) + 65 THEN NULL ELSE + 33 END + - 9 + 46
----
4

skipif mysql # not compatible
query I rowsort label-8790
SELECT - CASE + 97 WHEN - - MIN ( + 3 ) + 65 THEN NULL ELSE + 33 END + - 9 + 46
----
4

query I rowsort
SELECT DISTINCT - 53 - 61 * 34
----
-2127

query II rowsort
SELECT - 15 col0, + 43
----
-15
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT DISTINCT + - 15 - + - ( MIN( - 97 ) ) + + 24 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT + - 15 - + - ( MIN ( - 97 ) ) + + 24 AS col2
----
-88

query II rowsort
SELECT DISTINCT - 47, 20 col2
----
-47
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8795
SELECT ALL + 14 * + 30 * CASE - 76 WHEN - 46 * 83 THEN - AVG ( + 85 ) + 49 * - 9 WHEN - 96 + ( + 85 + + ( CAST( NULL AS SIGNED ) + + MIN( 90 ) ) ) * 16 THEN + COUNT( * ) ELSE NULL END * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL + 14 * + 30 * CASE - 76 WHEN - 46 * 83 THEN - AVG ( + 85 ) + 49 * - 9 WHEN - 96 + ( + 85 + + ( CAST ( NULL AS INTEGER ) + + MIN ( 90 ) ) ) * 16 THEN + COUNT ( * ) ELSE NULL END * 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT - + COUNT( * ) + ( 68 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8796
SELECT - + COUNT ( * ) + ( 68 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT - MIN( - 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-8797
SELECT - MIN ( - 19 ) AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT - - CAST( NULL AS SIGNED ) + - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT - - CAST ( NULL AS INTEGER ) + - 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8799
SELECT DISTINCT - COUNT( * ) AS col1, + 9 + 25 + - - COALESCE ( - 16, - - 85 + - - 40 + - 82 * + COUNT( * ) ) * 17
----
-1
-238

skipif mysql # not compatible
query II rowsort label-8799
SELECT DISTINCT - COUNT ( * ) AS col1, + 9 + 25 + - - COALESCE ( - 16, - - 85 + - - 40 + - 82 * + COUNT ( * ) ) * 17
----
-1
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT ALL COUNT( ALL - 55 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL COUNT ( ALL - 55 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT ALL + - MIN( DISTINCT 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL + - MIN ( DISTINCT 11 ) AS col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8802
SELECT ALL + ( 7 ) DIV + - 93 * - + 44
----
0

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL + ( 7 ) / + - 93 * - + 44
----
0

query I rowsort
SELECT - + 93 * 18 * - 87
----
145638

query II rowsort
SELECT ALL + 65, 93 * 27 + 89 AS col1
----
65
2600

onlyif mysql # DIV for integer division: 
query I rowsort label-8805
SELECT - 64 DIV + + 41 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8805
SELECT - 64 / + + 41 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8806
SELECT - 7 - + ( - ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8806
SELECT - 7 - + ( - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT ALL + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + + COUNT ( * ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8808
SELECT ALL - + 23 DIV 44 col0
----
0

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL - + 23 / 44 col0
----
0

query I rowsort
SELECT - 21 * + 48 AS col0
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT - - 16 / + 81 * 36 * + CASE + 94 WHEN - + ( 64 ) * 51 * CASE WHEN NOT NULL IS NULL THEN + COUNT( * ) * COUNT( * ) ELSE NULL END THEN + 0 WHEN 91 - + 70 * 57 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT - - 16 / + 81 * 36 * + CASE + 94 WHEN - + ( 64 ) * 51 * CASE WHEN NOT NULL IS NULL THEN + COUNT ( * ) * COUNT ( * ) ELSE NULL END THEN + 0 WHEN 91 - + 70 * 57 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 47 * 6 + - 39
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8812
SELECT + 80 AS col0, CAST( NULL AS SIGNED ) AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-8812
SELECT + 80 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
80
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8813
SELECT 66 DIV + 94 + - ( - COUNT( * ) ) - - CAST( + - CAST( + 53 AS SIGNED ) AS SIGNED ) + + 46 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8813
SELECT 66 / + 94 + - ( - COUNT ( * ) ) - - CAST ( + - CAST ( + 53 AS INTEGER ) AS INTEGER ) + + 46 AS col1
----
-6

query I rowsort
SELECT + NULLIF ( - NULLIF ( + + 98, 92 * 79 * + 82 + - 41 + 12 + AVG ( DISTINCT 8 ) / 89 ), ( 66 ) + + 19 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT CASE - + SUM( DISTINCT + 12 ) WHEN 95 THEN - 74 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-8815
SELECT CASE - + SUM ( DISTINCT + 12 ) WHEN 95 THEN - 74 ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT - 57 + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-8816
SELECT - 57 + COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT + MIN( + 14 ) * + 85 * + 75 + COUNT( * ) AS col1
----
89251

skipif mysql # not compatible
query I rowsort label-8817
SELECT + MIN ( + 14 ) * + 85 * + 75 + COUNT ( * ) AS col1
----
89251

query I rowsort
SELECT CASE - 55 WHEN - 48 THEN + 60 * + 37 * + 10 * 4 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT COUNT( DISTINCT + 1 ) * NULLIF ( NULLIF ( - 87, - - MIN( ( + 88 ) ) * - 90 ), 31 ) + - 24 AS col0
----
-111

skipif mysql # not compatible
query I rowsort label-8819
SELECT COUNT ( DISTINCT + 1 ) * NULLIF ( NULLIF ( - 87, - - MIN ( ( + 88 ) ) * - 90 ), 31 ) + - 24 AS col0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT ALL 97 * + 91 + 19 + + COUNT( ALL + - 21 ) + 43 * - 52 * - COUNT( * ) * - 32 AS col1
----
-62705

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL 97 * + 91 + 19 + + COUNT ( ALL + - 21 ) + 43 * - 52 * - COUNT ( * ) * - 32 AS col1
----
-62705

query I rowsort
SELECT ALL 65 * 77 + + - 65
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT - CASE - 71 WHEN 67 + - 1 THEN - 74 WHEN + - SUM( DISTINCT - 7 ) + + 51 * + - 53 THEN 28 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8822
SELECT - CASE - 71 WHEN 67 + - 1 THEN - 74 WHEN + - SUM ( DISTINCT - 7 ) + + 51 * + - 53 THEN 28 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT + NULLIF ( ( + 80 ), - 84 ) * ( MIN( ALL + 61 ) ) + 19 * 34
----
5526

skipif mysql # not compatible
query I rowsort label-8823
SELECT + NULLIF ( ( + 80 ), - 84 ) * ( MIN ( ALL + 61 ) ) + 19 * 34
----
5526

query I rowsort
SELECT ALL - 33 * + - 72 - 63 AS col0
----
2313

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL - COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL - COUNT ( * ) * COUNT ( * )
----
-1

query II rowsort
SELECT ALL - 39 - - - 8 + + NULLIF ( 53, + + 78 ) * - 41 * 42 AS col0, 15
----
-91313
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT MIN( DISTINCT - ( 32 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-8827
SELECT MIN ( DISTINCT - ( 32 ) )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-8828
SELECT + 43 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-8828
SELECT + 43 / + 45
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8829
SELECT ALL CAST( - 41 AS SIGNED ) AS col1, + 95
----
-41
95

skipif mysql # not compatible
query II rowsort label-8829
SELECT ALL CAST ( - 41 AS INTEGER ) AS col1, + 95
----
-41
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8830
SELECT + MIN( - - CAST( NULL AS SIGNED ) ) - - 5 + - 63 + + 4 AS col1, - 51 * - COALESCE ( - 21, 40 * + 20 + COALESCE ( 41, - 98 ), 23 ) * + COUNT( * )
----
NULL
-1071

skipif mysql # not compatible
query II rowsort label-8830
SELECT + MIN ( - - CAST ( NULL AS INTEGER ) ) - - 5 + - 63 + + 4 AS col1, - 51 * - COALESCE ( - 21, 40 * + 20 + COALESCE ( 41, - 98 ), 23 ) * + COUNT ( * )
----
NULL
-1071

query I rowsort
SELECT + + 88 * - 18 * 1 * - ( - + 23 ) + - 66 + + + 56 + NULLIF ( - COALESCE ( 61, 64 ), 59 ) * 40
----
-38882

query I rowsort
SELECT ALL NULLIF ( - 51, + 93 * - 82 / + 93 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT + COUNT( * ) - - + 94 + 54
----
149

skipif mysql # not compatible
query I rowsort label-8833
SELECT + COUNT ( * ) - - + 94 + 54
----
149

query I rowsort
SELECT + - 14 * - 40 + + 71 AS col0
----
631

onlyif mysql # DIV for integer division: 
query I rowsort label-8835
SELECT DISTINCT + ( + 62 ) DIV 89 * + 62 + ( + + COALESCE ( ( + ( + - ( + 0 ) ) ), ( ( ( - 80 ) ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT + ( + 62 ) / 89 * + 62 + ( + + COALESCE ( ( + ( + - ( + 0 ) ) ), ( ( ( - 80 ) ) ) ) )
----
0

query I rowsort
SELECT + - 36 + + 38
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL + 25 * NULLIF ( COALESCE ( - ( 1 ), - 50 ), - + 48 / COUNT( * ) * 93 + + 91 )
----
-25

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL + 25 * NULLIF ( COALESCE ( - ( 1 ), - 50 ), - + 48 / COUNT ( * ) * 93 + + 91 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8838
SELECT ALL - 67 + - COUNT( * ) + + - 43 / + CAST( NULL AS SIGNED ) * - 14 * + 80 * - - COUNT( * ) * + - 34 - - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL - 67 + - COUNT ( * ) + + - 43 / + CAST ( NULL AS INTEGER ) * - 14 * + 80 * - - COUNT ( * ) * + - 34 - - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT - MIN( + 5 ) * - 12 - - - COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8839
SELECT - MIN ( + 5 ) * - 12 - - - COUNT ( * ) AS col0
----
59

query I rowsort
SELECT - - 87 + 71 AS col1
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-8841
SELECT ALL - + ( + + ( - ( 6 ) ) ) DIV - - ( - 57 ) + - - 78 - 66
----
12

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL - + ( + + ( - ( 6 ) ) ) / - - ( - 57 ) + - - 78 - 66
----
12

query I rowsort
SELECT DISTINCT + + 63
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8843
SELECT - - CAST( NULL AS SIGNED ) * 54 + 69 + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT - - CAST ( NULL AS INTEGER ) * 54 + 69 + 68 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8844
SELECT ALL - CAST( NULL AS DECIMAL ) + + - 50 + - 95 * ( - - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL - CAST ( NULL AS REAL ) + + - 50 + - 95 * ( - - 49 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT 21 * - - CAST( + + 90 AS SIGNED ) + + 90 AS col2
----
1980

skipif mysql # not compatible
query I rowsort label-8845
SELECT 21 * - - CAST ( + + 90 AS INTEGER ) + + 90 AS col2
----
1980

query I rowsort
SELECT ALL - 15 + ( + 16 ) * - - 52 * + + 33 AS col2
----
27441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT DISTINCT - ( + CASE + + 69 WHEN - CAST( + 10 AS SIGNED ) THEN NULL ELSE - + 58 END ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT - ( + CASE + + 69 WHEN - CAST ( + 10 AS INTEGER ) THEN NULL ELSE - + 58 END ) AS col2
----
58

query II rowsort
SELECT + 71, 82 AS col0
----
71
82

query I rowsort
SELECT 22 * + + ( - 66 ) AS col1
----
-1452

query II rowsort
SELECT 57 * - 67 * 2 AS col0, 51
----
-7638
51

query I rowsort
SELECT 47 * - 98 * 13 AS col0
----
-59878

onlyif mysql # DIV for integer division: 
query I rowsort label-8852
SELECT ALL - 79 DIV + 28
----
-2

skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL - 79 / + 28
----
-2

query I rowsort
SELECT DISTINCT - ( - 9 ) AS col1
----
9

query I rowsort
SELECT ALL - 52 * 49 AS col0
----
-2548

onlyif mysql # DIV for integer division: 
query I rowsort label-8855
SELECT DISTINCT 9 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT 9 / 82
----
0

query I rowsort
SELECT 46 * + - 20
----
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT 53 + - ( - + 37 ) + - MIN( 4 ) * + 7 + - 19 * - - ( + 26 ) AS col1
----
-432

skipif mysql # not compatible
query I rowsort label-8857
SELECT 53 + - ( - + 37 ) + - MIN ( 4 ) * + 7 + - 19 * - - ( + 26 ) AS col1
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT 56 - + CASE - ( + - 46 ) WHEN - 58 * + - ( + + 86 ) + + - 49 THEN NULL WHEN + 7 * + ( + COUNT( * ) ) THEN 48 / + 71 ELSE NULL END + 78 * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8858
SELECT 56 - + CASE - ( + - 46 ) WHEN - 58 * + - ( + + 86 ) + + - 49 THEN NULL WHEN + 7 * + ( + COUNT ( * ) ) THEN 48 / + 71 ELSE NULL END + 78 * 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT CASE - 56 WHEN - 20 THEN NULL WHEN - 2 / - 7 * - ( + 30 ) - 48 / - 60 - 15 + 81 THEN NULL WHEN + COUNT( * ) * + COUNT( * ) THEN SUM( - 99 ) * - 44 + + COUNT( * ) ELSE NULL END + 89 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT CASE - 56 WHEN - 20 THEN NULL WHEN - 2 / - 7 * - ( + 30 ) - 48 / - 60 - 15 + 81 THEN NULL WHEN + COUNT ( * ) * + COUNT ( * ) THEN SUM ( - 99 ) * - 44 + + COUNT ( * ) ELSE NULL END + 89 col2
----
NULL

query I rowsort
SELECT 72 * + 86
----
6192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8861
SELECT 7 + 18 + - - 82 - + - ( + 5 ) * - - COUNT( * ) DIV - 15 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-8861
SELECT 7 + 18 + - - 82 - + - ( + 5 ) * - - COUNT ( * ) / - 15 AS col2
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8862
SELECT 20 + - + 7 * + - CASE - - CAST( 34 AS SIGNED ) WHEN - COALESCE ( + AVG ( + - 47 ), COUNT( * ) ) THEN 21 * 37 WHEN + SUM( - 26 ) THEN 40 + 38 WHEN - 55 THEN NULL WHEN 12 THEN + 0 + CASE - AVG ( 37 ) WHEN 85 THEN 76 + 71 WHEN - 51 + - 29 THEN NULL END END + + 88 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8862
SELECT 20 + - + 7 * + - CASE - - CAST ( 34 AS INTEGER ) WHEN - COALESCE ( + AVG ( + - 47 ), COUNT ( * ) ) THEN 21 * 37 WHEN + SUM ( - 26 ) THEN 40 + 38 WHEN - 55 THEN NULL WHEN 12 THEN + 0 + CASE - AVG ( 37 ) WHEN 85 THEN 76 + 71 WHEN - 51 + - 29 THEN NULL END END + + 88 col2
----
NULL

query I rowsort
SELECT DISTINCT + 65 * + 53
----
3445

query I rowsort
SELECT DISTINCT + ( - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-8865
SELECT + 2 AS col1, + COUNT( * ) AS col1
----
2
1

skipif mysql # not compatible
query II rowsort label-8865
SELECT + 2 AS col1, + COUNT ( * ) AS col1
----
2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ALL 40 * 27 * COUNT( * ) AS col0
----
1080

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL 40 * 27 * COUNT ( * ) AS col0
----
1080

query I rowsort
SELECT - 10 + + - 45 col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8868
SELECT ALL - NULLIF ( CAST( NULL AS SIGNED ), - 51 * 70 ) / - + 66 - 5 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL - NULLIF ( CAST ( NULL AS INTEGER ), - 51 * 70 ) / - + 66 - 5 * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - - 46 AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8870
SELECT + 37 DIV - 71 + - 82
----
-82

skipif mysql # not compatible
query I rowsort label-8870
SELECT + 37 / - 71 + - 82
----
-82

query I rowsort
SELECT ALL - 71 + 56
----
-15

query I rowsort
SELECT ALL + 96 + + 22 col1
----
118

query I rowsort
SELECT - 59 + - 9
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL 29 + COUNT( * ) col1
----
30

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL 29 + COUNT ( * ) col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8875
SELECT 28, + COUNT( * ) * - 64 col1
----
28
-64

skipif mysql # not compatible
query II rowsort label-8875
SELECT 28, + COUNT ( * ) * - 64 col1
----
28
-64

query I rowsort
SELECT 28 + 10 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT COUNT( * ) * - 49
----
-49

skipif mysql # not compatible
query I rowsort label-8877
SELECT COUNT ( * ) * - 49
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8878
SELECT DISTINCT + 88 / + 70 + - NULLIF ( - + COUNT( * ), - 88 * 22 * 72 * + MIN( ALL - - 93 ) * - 74 + + 2 - - COUNT( * ) ) / + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT + 88 / + 70 + - NULLIF ( - + COUNT ( * ), - 88 * 22 * 72 * + MIN ( ALL - - 93 ) * - 74 + + 2 - - COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8879
SELECT DISTINCT - CAST( 76 AS SIGNED ) + - 60 + - NULLIF ( - + 85, 84 ) * - - SUM( ALL - + 59 ), 90 - - - NULLIF ( 78, SUM( DISTINCT 11 ) ) AS col2
----
-5151
12

skipif mysql # not compatible
query II rowsort label-8879
SELECT DISTINCT - CAST ( 76 AS INTEGER ) + - 60 + - NULLIF ( - + 85, 84 ) * - - SUM ( ALL - + 59 ), 90 - - - NULLIF ( 78, SUM ( DISTINCT 11 ) ) AS col2
----
-5151
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT ALL + + MAX( + - 71 ) + + 68 + + 82 * + 51
----
4179

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL + + MAX ( + - 71 ) + + 68 + + 82 * + 51
----
4179

query I rowsort
SELECT ALL - 44 + + 26 AS col2
----
-18

query I rowsort
SELECT + 53 * + + 65
----
3445

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT + - ( - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8883
SELECT + - ( - COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8884
SELECT + 66 AS col1, + COUNT( 50 ) + + + 7 AS col2
----
66
8

skipif mysql # not compatible
query II rowsort label-8884
SELECT + 66 AS col1, + COUNT ( 50 ) + + + 7 AS col2
----
66
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL - MIN( DISTINCT + ( + 75 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL - MIN ( DISTINCT + ( + 75 ) )
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8886
SELECT COALESCE ( + COUNT( * ), 93 ) - + 39 * + 24 + - 21 AS col2, 96 + - 69
----
-956
27

skipif mysql # not compatible
query II rowsort label-8886
SELECT COALESCE ( + COUNT ( * ), 93 ) - + 39 * + 24 + - 21 AS col2, 96 + - 69
----
-956
27

query I rowsort
SELECT ALL - 92 * + - ( - ( + + 27 ) ) AS col0
----
-2484

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT 56 * + COUNT( * ) + - - 79 * + - ( + - 29 ) AS col2
----
2347

skipif mysql # not compatible
query I rowsort label-8888
SELECT 56 * + COUNT ( * ) + - - 79 * + - ( + - 29 ) AS col2
----
2347

query I rowsort
SELECT 67 * + 43 * - - 76 col2
----
218956

query I rowsort
SELECT 73 + 16
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL + 20 - + + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL + 20 - + + COUNT ( * )
----
19

query II rowsort
SELECT DISTINCT - 15 col1, - 58 * - 4 * 83 AS col0
----
-15
19256

query I rowsort
SELECT ALL - ( + - 79 ) AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8894
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) - - ( CAST( - 31 AS SIGNED ) )
----
-30

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) - - ( CAST ( - 31 AS INTEGER ) )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-8895
SELECT ALL - COUNT( * ), 90 * - 31 * 47 + + 81 AS col0
----
-1
-131049

skipif mysql # not compatible
query II rowsort label-8895
SELECT ALL - COUNT ( * ), 90 * - 31 * 47 + + 81 AS col0
----
-1
-131049

onlyif mysql # aggregate syntax: 
query II rowsort label-8896
SELECT + 37 AS col2, - CASE - 73 WHEN COUNT( * ) THEN + + 99 WHEN - 92 THEN NULL ELSE NULL END AS col0
----
37
NULL

skipif mysql # not compatible
query II rowsort label-8896
SELECT + 37 AS col2, - CASE - 73 WHEN COUNT ( * ) THEN + + 99 WHEN - 92 THEN NULL ELSE NULL END AS col0
----
37
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8897
SELECT 25 col1, - COUNT( * ) AS col1
----
25
-1

skipif mysql # not compatible
query II rowsort label-8897
SELECT 25 col1, - COUNT ( * ) AS col1
----
25
-1

query II rowsort
SELECT + 48 AS col0, - 72
----
48
-72

query I rowsort
SELECT 56 + + 89 AS col2
----
145

query II rowsort
SELECT 12, 61 * - COALESCE ( 99, + 85 ) col1
----
12
-6039

query I rowsort
SELECT ALL + 21 * + 35
----
735

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT 72 * - 65 * 15 * - 22 * - + CASE + - 60 WHEN - MIN( DISTINCT - 37 ) + - 99 / 6 + + 40 * ( + 20 * + MIN( 3 / COALESCE ( 96 * ( 92 ), 1 ) ) + - 2 ) THEN 83 ELSE NULL END * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT 72 * - 65 * 15 * - 22 * - + CASE + - 60 WHEN - MIN ( DISTINCT - 37 ) + - 99 / 6 + + 40 * ( + 20 * + MIN ( 3 / COALESCE ( 96 * ( 92 ), 1 ) ) + - 2 ) THEN 83 ELSE NULL END * + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT COUNT( * ) * 74 col0
----
74

skipif mysql # not compatible
query I rowsort label-8903
SELECT COUNT ( * ) * 74 col0
----
74

query I rowsort
SELECT 81 * - 9
----
-729

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL - 49 * - COUNT( * ) col1
----
49

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - 49 * - COUNT ( * ) col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ( - - COUNT( * ) ) * - 16
----
-16

skipif mysql # not compatible
query I rowsort label-8906
SELECT ( - - COUNT ( * ) ) * - 16
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8907
SELECT ALL - 92 * - SUM( - 83 ) * + ( NULLIF ( - 94, - CAST( NULL AS SIGNED ) ) ) * 17 * - + 59 - 53 + 24 AS col0
----
-719937381

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL - 92 * - SUM ( - 83 ) * + ( NULLIF ( - 94, - CAST ( NULL AS INTEGER ) ) ) * 17 * - + 59 - 53 + 24 AS col0
----
-719937381

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT + COUNT( * ) * 81 * - 41
----
-3321

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT + COUNT ( * ) * 81 * - 41
----
-3321

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT 14 - - COUNT( - - 71 )
----
15

skipif mysql # not compatible
query I rowsort label-8909
SELECT 14 - - COUNT ( - - 71 )
----
15

query I rowsort
SELECT - + ( + 36 ) col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8911
SELECT ALL + 0 + CASE + + 96 WHEN + 42 THEN + COUNT( - - 7 ) - + CAST( 9 AS SIGNED ) * 1 * - + ( + 23 ) WHEN ( CAST( 94 AS SIGNED ) ) THEN - 46 WHEN 56 + 78 * 55 THEN NULL WHEN COUNT( * ) THEN NULL ELSE 40 + 55 END DIV 81 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL + 0 + CASE + + 96 WHEN + 42 THEN + COUNT ( - - 7 ) - + CAST ( 9 AS INTEGER ) * 1 * - + ( + 23 ) WHEN ( CAST ( 94 AS INTEGER ) ) THEN - 46 WHEN 56 + 78 * 55 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 40 + 55 END / 81 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8912
SELECT - 60 + + + 41 DIV + ( 98 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-8912
SELECT - 60 + + + 41 / + ( 98 ) AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8913
SELECT - NULLIF ( CAST( + COUNT( * ) AS SIGNED ), - COUNT( * ) * CAST( NULL AS SIGNED ) + + ( ( 75 ) ) * + 52 ), - 35 col1
----
-1
-35

skipif mysql # not compatible
query II rowsort label-8913
SELECT - NULLIF ( CAST ( + COUNT ( * ) AS INTEGER ), - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + ( ( 75 ) ) * + 52 ), - 35 col1
----
-1
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8914
SELECT - 74 + 13 + - - CAST( - 34 AS SIGNED ) + + - 92
----
-187

skipif mysql # not compatible
query I rowsort label-8914
SELECT - 74 + 13 + - - CAST ( - 34 AS INTEGER ) + + - 92
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT - COUNT( * ) * + COUNT( DISTINCT - 5 ) * SUM( - 64 ) + COUNT( * ) * SUM( + 9 ) + - 43 + + COUNT( * ) * 58 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8915
SELECT - COUNT ( * ) * + COUNT ( DISTINCT - 5 ) * SUM ( - 64 ) + COUNT ( * ) * SUM ( + 9 ) + - 43 + + COUNT ( * ) * 58 AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT ALL CAST( NULL AS SIGNED ) + + 0 * - 9 + + ( + - 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL CAST ( NULL AS INTEGER ) + + 0 * - 9 + + ( + - 23 ) AS col1
----
NULL

query II rowsort
SELECT - 65 AS col0, 58
----
-65
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT + + 54 - + CAST( - 71 AS SIGNED ) AS col0
----
125

skipif mysql # not compatible
query I rowsort label-8918
SELECT + + 54 - + CAST ( - 71 AS INTEGER ) AS col0
----
125

query II rowsort
SELECT DISTINCT 93 AS col2, - 39
----
93
-39

query I rowsort
SELECT - 76 + - 14
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8921
SELECT + 46 * + CAST( - NULLIF ( 28, - 89 * - + CAST( - CASE 81 WHEN - COUNT( * ) THEN 29 ELSE NULL END AS SIGNED ) ) AS SIGNED ) * - - 42 + - 30 * - 25 + - 9 * - 29
----
-53085

skipif mysql # not compatible
query I rowsort label-8921
SELECT + 46 * + CAST ( - NULLIF ( 28, - 89 * - + CAST ( - CASE 81 WHEN - COUNT ( * ) THEN 29 ELSE NULL END AS INTEGER ) ) AS INTEGER ) * - - 42 + - 30 * - 25 + - 9 * - 29
----
-53085

query I rowsort
SELECT - COALESCE ( + 44, 94, 87, - 99 )
----
-44

query I rowsort
SELECT ALL - ( - 73 ) AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8924
SELECT + CAST( CAST( 53 AS SIGNED ) AS SIGNED ) - + - 23 * 63 AS col2
----
1502

skipif mysql # not compatible
query I rowsort label-8924
SELECT + CAST ( CAST ( 53 AS INTEGER ) AS INTEGER ) - + - 23 * 63 AS col2
----
1502

query I rowsort
SELECT + 34 + - 97
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8926
SELECT ALL 98 DIV ( - COUNT( DISTINCT + 4 ) ) * - 58
----
5684

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL 98 / ( - COUNT ( DISTINCT + 4 ) ) * - 58
----
5684

onlyif mysql # aggregate syntax: 
query II rowsort label-8927
SELECT + 66 * - - 58 + 88, - SUM( DISTINCT 12 ) col2
----
3916
-12

skipif mysql # not compatible
query II rowsort label-8927
SELECT + 66 * - - 58 + 88, - SUM ( DISTINCT 12 ) col2
----
3916
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8928
SELECT DISTINCT 45 DIV ( 70 )
----
0

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT 45 / ( 70 )
----
0

query II rowsort
SELECT + ( - 67 ) + - + 61, - 64 AS col1
----
-128
-64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8930
SELECT - CAST( 41 AS SIGNED ) DIV 18 * - 47 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8930
SELECT - CAST ( 41 AS INTEGER ) / 18 * - 47 AS col2
----
94

query I rowsort
SELECT + COALESCE ( + 76, + 55, + 3 )
----
76

query I rowsort
SELECT NULLIF ( + 65, + 12 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT COUNT( * ) * 83 + - - 55 * - 56 + - 32 * + 7 AS col2
----
-3221

skipif mysql # not compatible
query I rowsort label-8933
SELECT COUNT ( * ) * 83 + - - 55 * - 56 + - 32 * + 7 AS col2
----
-3221

query I rowsort
SELECT NULLIF ( 65, + + 40 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT - 28 * - - 31 * - 42 + + COUNT( * ) * 33 * - ( + 75 ) AS col2
----
33981

skipif mysql # not compatible
query I rowsort label-8935
SELECT - 28 * - - 31 * - 42 + + COUNT ( * ) * 33 * - ( + 75 ) AS col2
----
33981

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL 3 * - + SUM( - 95 ) AS col1
----
285

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL 3 * - + SUM ( - 95 ) AS col1
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8937
SELECT CASE + 69 WHEN + 70 THEN + - 94 * + + 81 WHEN + + MIN( DISTINCT + 9 ) THEN + ( - COALESCE ( + CAST( NULL AS SIGNED ), - NULLIF ( - ( - 31 ), + 81 + + 18 ) + - 24 ) ) * - COALESCE ( + COUNT( * ), + COALESCE ( 76, + COUNT( * ), + 91 * 52 ) ) - 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8937
SELECT CASE + 69 WHEN + 70 THEN + - 94 * + + 81 WHEN + + MIN ( DISTINCT + 9 ) THEN + ( - COALESCE ( + CAST ( NULL AS INTEGER ), - NULLIF ( - ( - 31 ), + 81 + + 18 ) + - 24 ) ) * - COALESCE ( + COUNT ( * ), + COALESCE ( 76, + COUNT ( * ), + 91 * 52 ) ) - 31 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 85 * + 57 + - 99
----
-4944

query I rowsort
SELECT ALL + 26 col0
----
26

query I rowsort
SELECT DISTINCT - 69 * - 15 + - + 9 AS col1
----
1026

query I rowsort
SELECT ALL + + NULLIF ( - - 0, + - 7 )
----
0

query I rowsort
SELECT - + 83 * 21 * 59 + + - 93 AS col0
----
-102930

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT ALL 39 * - COUNT( * ) + + 2 + - + ( - COUNT( * ) )
----
-36

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL 39 * - COUNT ( * ) + + 2 + - + ( - COUNT ( * ) )
----
-36

query I rowsort
SELECT + 45 + + + 41
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8945
SELECT + 35 * 87 + 65 / - 28 + + - 8 + - ( - CAST( NULL AS SIGNED ) ) * + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT + 35 * 87 + 65 / - 28 + + - 8 + - ( - CAST ( NULL AS INTEGER ) ) * + 12 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8946
SELECT - 58 DIV 38 * - ( + 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8946
SELECT - 58 / 38 * - ( + 54 ) AS col0
----
54

query I rowsort
SELECT - + 69 + 6 * - + 86 * 27 * - - CASE - 11 WHEN - - 80 THEN - + 82 END + - - 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT DISTINCT + + 97 + - ( ( 66 ) ) + + + 53 + + COUNT( * ) + - 62 col2
----
23

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT + + 97 + - ( ( 66 ) ) + + + 53 + + COUNT ( * ) + - 62 col2
----
23

query I rowsort
SELECT ALL + 88 * - + 1 + - + 44 * 16 col1
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL + - NULLIF ( 88, - + SUM( ( + 68 ) ) * 0 ) + - - 79 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL + - NULLIF ( 88, - + SUM ( ( + 68 ) ) * 0 ) + - - 79 AS col2
----
-9

query I rowsort
SELECT ALL - ( - 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8952
SELECT ALL 47 + - COUNT( * ) * + 12 DIV - - COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL 47 + - COUNT ( * ) * + 12 / - - COUNT ( * ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8953
SELECT DISTINCT - 86 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT - 86 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8954
SELECT - ( - COUNT( * ) ) DIV - + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8954
SELECT - ( - COUNT ( * ) ) / - + 91 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8955
SELECT - 30 DIV 15 * + 18 + - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-8955
SELECT - 30 / 15 * + 18 + - COUNT ( * )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8956
SELECT + + 67 + - 74 * + - ( + CAST( NULL AS SIGNED ) ) + - - NULLIF ( - CASE + CAST( NULL AS SIGNED ) WHEN - 0 * - 62 / - CAST( NULL AS SIGNED ) + + 97 - + CAST( - MAX( 83 ) AS SIGNED ) * + COUNT( ALL 64 * CASE 99 * 35 WHEN + 97 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 61 ELSE NULL END ) THEN + 15 * 94 - - 55 WHEN 50 / 36 THEN - 36 ELSE NULL END, - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT + + 67 + - 74 * + - ( + CAST ( NULL AS INTEGER ) ) + - - NULLIF ( - CASE + CAST ( NULL AS INTEGER ) WHEN - 0 * - 62 / - CAST ( NULL AS INTEGER ) + + 97 - + CAST ( - MAX ( 83 ) AS INTEGER ) * + COUNT ( ALL 64 * CASE 99 * 35 WHEN + 97 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 61 ELSE NULL END ) THEN + 15 * 94 - - 55 WHEN 50 / 36 THEN - 36 ELSE NULL END, - 18 )
----
NULL

query I rowsort
SELECT DISTINCT ( + + 17 ) col0
----
17

query II rowsort
SELECT ALL 20, - 6 AS col2
----
20
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8959
SELECT DISTINCT CAST( + + NULLIF ( 16, - SUM( ALL + 51 ) ) AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT CAST ( + + NULLIF ( 16, - SUM ( ALL + 51 ) ) AS INTEGER )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL MAX( 53 ) * + 24
----
1272

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL MAX ( 53 ) * + 24
----
1272

query I rowsort
SELECT + ( 79 ) * - 69
----
-5451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8962
SELECT MAX( + - ( + 22 ) ) / CAST( NULL AS SIGNED ) * - 92 - 86 * 60 - + 25 + - + 46 * + ( 55 ) * ( - 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT MAX ( + - ( + 22 ) ) / CAST ( NULL AS INTEGER ) * - 92 - 86 * 60 - + 25 + - + 46 * + ( 55 ) * ( - 15 ) AS col2
----
NULL

query I rowsort
SELECT + ( + 13 ) col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8964
SELECT + CAST( + 28 AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-8964
SELECT + CAST ( + 28 AS INTEGER )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT 30 * CAST( - 69 AS SIGNED ) + 37
----
-2033

skipif mysql # not compatible
query I rowsort label-8965
SELECT 30 * CAST ( - 69 AS INTEGER ) + 37
----
-2033

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8966
SELECT CAST( 85 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-8966
SELECT CAST ( 85 AS INTEGER )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8967
SELECT DISTINCT 5 DIV + 21 + - MIN( 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT 5 / + 21 + - MIN ( 64 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8968
SELECT ALL - 41 / 73 + MAX( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL - 41 / 73 + MAX ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT + 67 - COALESCE ( - 70, ( - COUNT( * ) ), 4, - COUNT( * ) ) AS col1
----
137

skipif mysql # not compatible
query I rowsort label-8969
SELECT + 67 - COALESCE ( - 70, ( - COUNT ( * ) ), 4, - COUNT ( * ) ) AS col1
----
137

query I rowsort
SELECT ( 79 ) AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8971
SELECT ALL CAST( NULL AS SIGNED ) * 92 + COALESCE ( - - ( + 11 ), - 13, - 95 / + 14 * + - CASE + + 87 WHEN + CASE - NULLIF ( 66, 32 ) WHEN - 45 - + 98 * 35 THEN 49 END * 23 THEN + 18 WHEN 4 * 71 + + NULLIF ( 47, MIN( DISTINCT - 95 ) + 24 * 34 ) THEN NULL END + + 14 * 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL CAST ( NULL AS INTEGER ) * 92 + COALESCE ( - - ( + 11 ), - 13, - 95 / + 14 * + - CASE + + 87 WHEN + CASE - NULLIF ( 66, 32 ) WHEN - 45 - + 98 * 35 THEN 49 END * 23 THEN + 18 WHEN 4 * 71 + + NULLIF ( 47, MIN ( DISTINCT - 95 ) + 24 * 34 ) THEN NULL END + + 14 * 46 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8972
SELECT ALL 17 * - 30 + COUNT( * ), COUNT( * ) + - 76 * + COUNT( * ) AS col1
----
-509
-75

skipif mysql # not compatible
query II rowsort label-8972
SELECT ALL 17 * - 30 + COUNT ( * ), COUNT ( * ) + - 76 * + COUNT ( * ) AS col1
----
-509
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT + - AVG ( - 45 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT + - AVG ( - 45 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT + 33 + COUNT( * ) * + COUNT( * ) * 96
----
129

skipif mysql # not compatible
query I rowsort label-8974
SELECT + 33 + COUNT ( * ) * + COUNT ( * ) * 96
----
129

query II rowsort
SELECT ALL + + 73 AS col0, - 22 + 66
----
73
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8976
SELECT + + CAST( + - 69 AS SIGNED ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8976
SELECT + + CAST ( + - 69 AS INTEGER ) AS col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8977
SELECT ALL + CAST( - 28 AS SIGNED ) + COUNT( * ) + 48
----
21

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + CAST ( - 28 AS INTEGER ) + COUNT ( * ) + 48
----
21

query I rowsort
SELECT DISTINCT COALESCE ( - 53, 91 + - 28 ) * 36 AS col0
----
-1908

query I rowsort
SELECT DISTINCT + 59 - 92
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8980
SELECT 82 + + COALESCE ( 10, - 46 ) * - CAST( + + 63 AS SIGNED ) AS col2
----
-548

skipif mysql # not compatible
query I rowsort label-8980
SELECT 82 + + COALESCE ( 10, - 46 ) * - CAST ( + + 63 AS INTEGER ) AS col2
----
-548

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ALL 53 * SUM( 34 )
----
1802

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL 53 * SUM ( 34 )
----
1802

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT DISTINCT MIN( DISTINCT + + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT MIN ( DISTINCT + + 30 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8983
SELECT ALL + - 11 - COUNT( * ) * - 95 DIV + + 97 - - - 16 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL + - 11 - COUNT ( * ) * - 95 / + + 97 - - - 16 AS col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8984
SELECT + 45 + + - CAST( - 8 AS SIGNED ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8984
SELECT + 45 + + - CAST ( - 8 AS INTEGER ) AS col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8985
SELECT - 19 * + + 84 - + + 24 DIV + 80 col2
----
-1596

skipif mysql # not compatible
query I rowsort label-8985
SELECT - 19 * + + 84 - + + 24 / + 80 col2
----
-1596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8986
SELECT CASE + - CASE + 86 WHEN + 68 + - + CASE + COALESCE ( - + 20, + 35 ) WHEN + COUNT( * ) * + 11 * + 2 * + - 31 + + 31 THEN NULL ELSE 81 END * COUNT( * ) THEN NULL ELSE 44 END WHEN 75 + + 64 THEN 55 + CASE 6 WHEN + 54 THEN NULL WHEN - 63 + - ( COUNT( * ) - CAST( 36 AS SIGNED ) ) * + NULLIF ( - SUM( 95 ), - 71 ) THEN 77 * + CAST( + 72 AS SIGNED ) END END + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8986
SELECT CASE + - CASE + 86 WHEN + 68 + - + CASE + COALESCE ( - + 20, + 35 ) WHEN + COUNT ( * ) * + 11 * + 2 * + - 31 + + 31 THEN NULL ELSE 81 END * COUNT ( * ) THEN NULL ELSE 44 END WHEN 75 + + 64 THEN 55 + CASE 6 WHEN + 54 THEN NULL WHEN - 63 + - ( COUNT ( * ) - CAST ( 36 AS INTEGER ) ) * + NULLIF ( - SUM ( 95 ), - 71 ) THEN 77 * + CAST ( + 72 AS INTEGER ) END END + 10
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8987
SELECT + COUNT( * ) DIV - - 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8987
SELECT + COUNT ( * ) / - - 6 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8988
SELECT - 11 AS col1, CAST( + 79 AS SIGNED )
----
-11
79

skipif mysql # not compatible
query II rowsort label-8988
SELECT - 11 AS col1, CAST ( + 79 AS INTEGER )
----
-11
79

query I rowsort
SELECT ALL ( - 65 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT + 72 + + + 18 - - 55 + + + 40 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT + 72 + + + 18 - - 55 + + + 40 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8991
SELECT + CAST( + 82 AS SIGNED ) * + 83, + 52 AS col2
----
6806
52

skipif mysql # not compatible
query II rowsort label-8991
SELECT + CAST ( + 82 AS INTEGER ) * + 83, + 52 AS col2
----
6806
52

query I rowsort
SELECT ALL - 16 * + 96
----
-1536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8993
SELECT - 94 - - CAST( NULL AS SIGNED ) + + + 62 + ( - 47 ) / + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8993
SELECT - 94 - - CAST ( NULL AS INTEGER ) + + + 62 + ( - 47 ) / + 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8994
SELECT ALL 64 DIV + 44 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL 64 / + 44 AS col0
----
1

query I rowsort
SELECT ALL + 61 * - 15
----
-915

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT 57 + COUNT( * ) + + 18 * - - ( + 6 ) - - 60 AS col0
----
226

skipif mysql # not compatible
query I rowsort label-8996
SELECT 57 + COUNT ( * ) + + 18 * - - ( + 6 ) - - 60 AS col0
----
226

onlyif mysql # aggregate syntax: 
query II rowsort label-8997
SELECT ALL - ( + - COUNT( * ) ) * + - ( + + NULLIF ( 73, 32 + 67 * + 28 + COUNT( ALL - - 98 ) ) ) AS col2, ( + + 8 ) * 65 * COUNT( * ) - 84
----
-73
436

skipif mysql # not compatible
query II rowsort label-8997
SELECT ALL - ( + - COUNT ( * ) ) * + - ( + + NULLIF ( 73, 32 + 67 * + 28 + COUNT ( ALL - - 98 ) ) ) AS col2, ( + + 8 ) * 65 * COUNT ( * ) - 84
----
-73
436

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT 66 + SUM( + + 31 ) * - 10
----
-244

skipif mysql # not compatible
query I rowsort label-8998
SELECT 66 + SUM ( + + 31 ) * - 10
----
-244

onlyif mysql # DIV for integer division: 
query II rowsort label-8999
SELECT 73 DIV + 95 AS col1, COALESCE ( 14, - - 62 ) * ( - 24 )
----
0
-336

skipif mysql # not compatible
query II rowsort label-8999
SELECT 73 / + 95 AS col1, COALESCE ( 14, - - 62 ) * ( - 24 )
----
0
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT 76 + - SUM( + 26 ) + - COUNT( * ) * COUNT( * ) * + 14 * - 2
----
78

skipif mysql # not compatible
query I rowsort label-9000
SELECT 76 + - SUM ( + 26 ) + - COUNT ( * ) * COUNT ( * ) * + 14 * - 2
----
78

query I rowsort
SELECT ALL + 62 * - 45
----
-2790

query I rowsort
SELECT 47 + + - 16 AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9003
SELECT 85 DIV 62
----
1

skipif mysql # not compatible
query I rowsort label-9003
SELECT 85 / 62
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9004
SELECT 56 + - COUNT( * ) - 94 - + 52 + - + 69 * 67 * + 38 + - 31 DIV + - 69
----
-175765

skipif mysql # not compatible
query I rowsort label-9004
SELECT 56 + - COUNT ( * ) - 94 - + 52 + - + 69 * 67 * + 38 + - 31 / + - 69
----
-175765

query II rowsort
SELECT 92 - + + 69 AS col1, 70 AS col1
----
23
70

query I rowsort
SELECT 66 + + 46
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9007
SELECT - 82 DIV + 21 + + + 13 + + COUNT( * ) * + 53 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-9007
SELECT - 82 / + 21 + + + 13 + + COUNT ( * ) * + 53 AS col0
----
63

query I rowsort
SELECT DISTINCT + 17 + + 66 + + 40
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ALL 9 + + + ( SUM( + - 11 ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL 9 + + + ( SUM ( + - 11 ) ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT + ( + COUNT( * ) ) * - - NULLIF ( + + COUNT( * ), + COUNT( * ) ) * - 96 + + ( COUNT( * ) ) + + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT + ( + COUNT ( * ) ) * - - NULLIF ( + + COUNT ( * ), + COUNT ( * ) ) * - 96 + + ( COUNT ( * ) ) + + 82 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9011
SELECT 97 * + 97 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9011
SELECT 97 * + 97 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 17 + 42 * + + 10
----
403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9013
SELECT ALL - 0 + - 47 AS col1, - 94 * + + CASE 7 WHEN 97 / - COALESCE ( + 18, - 38 * 80 + - - CASE 84 WHEN AVG ( 49 ) THEN 39 WHEN 54 * - 93 - + 9 * + 24 THEN COALESCE ( 99, + 64 ) / + 53 END + 62 * + CASE - 54 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - COUNT( * ) THEN - 18 + - 51 WHEN COUNT( * ) / + 58 THEN 5 ELSE NULL END, + 36 / - 19 ) - 18 THEN COUNT( * ) + 58 * 51 ELSE - 30 END + 40 col1
----
-47
2860

skipif mysql # not compatible
query II rowsort label-9013
SELECT ALL - 0 + - 47 AS col1, - 94 * + + CASE 7 WHEN 97 / - COALESCE ( + 18, - 38 * 80 + - - CASE 84 WHEN AVG ( 49 ) THEN 39 WHEN 54 * - 93 - + 9 * + 24 THEN COALESCE ( 99, + 64 ) / + 53 END + 62 * + CASE - 54 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - COUNT ( * ) THEN - 18 + - 51 WHEN COUNT ( * ) / + 58 THEN 5 ELSE NULL END, + 36 / - 19 ) - 18 THEN COUNT ( * ) + 58 * 51 ELSE - 30 END + 40 col1
----
-47
2860

query I rowsort
SELECT 81 * + + 94
----
7614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9015
SELECT 87 + - CAST( - 98 AS SIGNED ) + 99 * + 43 AS col1
----
4442

skipif mysql # not compatible
query I rowsort label-9015
SELECT 87 + - CAST ( - 98 AS INTEGER ) + 99 * + 43 AS col1
----
4442

query I rowsort
SELECT + 76 * - 64 + 53
----
-4811

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT + 5 * + + COUNT( * ) + + - 5
----
0

skipif mysql # not compatible
query I rowsort label-9017
SELECT + 5 * + + COUNT ( * ) + + - 5
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT 51 DIV + - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9018
SELECT 51 / + - 80 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9019
SELECT ALL 7 DIV + 17, - 89 AS col2
----
0
-89

skipif mysql # not compatible
query II rowsort label-9019
SELECT ALL 7 / + 17, - 89 AS col2
----
0
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9020
SELECT - CAST( NULL AS SIGNED ) * 12 + - 0 + + COUNT( - 69 ) * + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT - CAST ( NULL AS INTEGER ) * 12 + - 0 + + COUNT ( - 69 ) * + - 24
----
NULL

query I rowsort
SELECT + 3 * 19
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT - 26 + + - CASE + 19 WHEN + - 71 THEN + 82 * NULLIF ( + + 49, + NULLIF ( + - COUNT( * ), - 53 ) ) / - COALESCE ( MIN( - ( + 34 ) ), + 23 * + 61 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT - 26 + + - CASE + 19 WHEN + - 71 THEN + 82 * NULLIF ( + + 49, + NULLIF ( + - COUNT ( * ), - 53 ) ) / - COALESCE ( MIN ( - ( + 34 ) ), + 23 * + 61 ) END
----
NULL

query I rowsort
SELECT - ( + 38 ) + - - 58
----
20

query I rowsort
SELECT 99 * + - 50 * - 98 AS col2
----
485100

query I rowsort
SELECT ALL 53 * - 2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - 92 + 23 + + + ( NULLIF ( - - COUNT( * ), + COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9026
SELECT - 92 + 23 + + + ( NULLIF ( - - COUNT ( * ), + COUNT ( * ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9027
SELECT DISTINCT + 43 * - - 46 AS col1, - MIN( ALL + 45 )
----
1978
-45

skipif mysql # not compatible
query II rowsort label-9027
SELECT DISTINCT + 43 * - - 46 AS col1, - MIN ( ALL + 45 )
----
1978
-45

query II rowsort
SELECT ALL 64, - 65 AS col0
----
64
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9029
SELECT 40 * - + 17 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9029
SELECT 40 * - + 17 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 76 * + 51 AS col2
----
3876

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT 66 * + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-9031
SELECT 66 * + COUNT ( * )
----
66

query I rowsort
SELECT 1 + 87 AS col1
----
88

query II rowsort
SELECT ALL + 31 + CASE - 15 WHEN - 46 THEN + 95 END col2, 11 AS col0
----
NULL
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT ALL 80 + - 53 - - 70 + + ( - - 18 ) * - - COUNT( * ) AS col0
----
115

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL 80 + - 53 - - 70 + + ( - - 18 ) * - - COUNT ( * ) AS col0
----
115

query I rowsort
SELECT 91 * - - 30 AS col0
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL - 58 * - + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL - 58 * - + COUNT ( * )
----
58

query I rowsort
SELECT ALL 65 * 12 + - + 60 + - 1
----
719

query I rowsort
SELECT 16 * + 71
----
1136

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT ALL - SUM( ALL + 32 ) col1
----
-32

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL - SUM ( ALL + 32 ) col1
----
-32

query I rowsort
SELECT 91 + + + 89
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9041
SELECT 23 DIV 46 + - COALESCE ( + COUNT( DISTINCT - 75 ), + 98 DIV - + 95 * + 98 + NULLIF ( 43, + COUNT( * ) + - 86 ) + - 18 * - COUNT( * ) * 95, MAX( - 71 ) + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) + MAX( ( 13 ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9041
SELECT 23 / 46 + - COALESCE ( + COUNT ( DISTINCT - 75 ), + 98 / - + 95 * + 98 + NULLIF ( 43, + COUNT ( * ) + - 86 ) + - 18 * - COUNT ( * ) * 95, MAX ( - 71 ) + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) + MAX ( ( 13 ) ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ALL + + 63 * - NULLIF ( + 3, - SUM( DISTINCT - 73 ) * + 9 * - 50 + - + 45 ) + MAX( - 63 ) - 2 + + 95 * 6 + + 85 col2
----
401

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL + + 63 * - NULLIF ( + 3, - SUM ( DISTINCT - 73 ) * + 9 * - 50 + - + 45 ) + MAX ( - 63 ) - 2 + + 95 * 6 + + 85 col2
----
401

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT - ( + + MAX( - 27 ) ) * + 10 col1
----
270

skipif mysql # not compatible
query I rowsort label-9043
SELECT - ( + + MAX ( - 27 ) ) * + 10 col1
----
270

query I rowsort
SELECT ALL + + 8 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT - 51 - + - COUNT( * ) + - ( - 5 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-9045
SELECT - 51 - + - COUNT ( * ) + - ( - 5 ) AS col2
----
-45

query I rowsort
SELECT ALL + + 91
----
91

query I rowsort
SELECT DISTINCT 95 * 19 AS col0
----
1805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9048
SELECT - + COALESCE ( - 79, COUNT( * ) ) + - CAST( + 43 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-9048
SELECT - + COALESCE ( - 79, COUNT ( * ) ) + - CAST ( + 43 AS INTEGER )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT ALL + 5 * - 96 + + - 71 + - 86 + - - 51 * 44 * + + COUNT( * ) * + - 84 * - 45 * - 54 - - + 70 - 62
----
-458045909

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL + 5 * - 96 + + - 71 + - 86 + - - 51 * 44 * + + COUNT ( * ) * + - 84 * - 45 * - 54 - - + 70 - 62
----
-458045909

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT + MIN( ALL + + 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9050
SELECT + MIN ( ALL + + 5 ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9051
SELECT ALL + - CAST( 58 AS SIGNED ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL + - CAST ( 58 AS INTEGER ) AS col0
----
-58

query I rowsort
SELECT + - 73 AS col0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-9053
SELECT + 1 DIV + 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9053
SELECT + 1 / + 14 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9054
SELECT - COUNT( * ) * + ( - 56 ) AS col2, COALESCE ( - 86, 7 + - 38 * + 25, - 45 ) + 11 * 32
----
56
266

skipif mysql # not compatible
query II rowsort label-9054
SELECT - COUNT ( * ) * + ( - 56 ) AS col2, COALESCE ( - 86, 7 + - 38 * + 25, - 45 ) + 11 * 32
----
56
266

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT ALL + COALESCE ( + COUNT( * ), + 94, + 62 ) * - - 52 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL + COALESCE ( + COUNT ( * ), + 94, + 62 ) * - - 52 AS col2
----
52

query I rowsort
SELECT DISTINCT - + 36 * 56 AS col1
----
-2016

query I rowsort
SELECT ALL + - 86 * + 71
----
-6106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9058
SELECT + + CAST( SUM( DISTINCT CASE - + 10 WHEN - + 48 THEN - + 88 END ) AS SIGNED ) * - 37 + - CAST( NULL AS SIGNED ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT + + CAST ( SUM ( DISTINCT CASE - + 10 WHEN - + 48 THEN - + 88 END ) AS INTEGER ) * - 37 + - CAST ( NULL AS INTEGER ) - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9059
SELECT + CAST( NULL AS SIGNED ), 57 * 53 AS col2
----
NULL
3021

skipif mysql # not compatible
query II rowsort label-9059
SELECT + CAST ( NULL AS INTEGER ), 57 * 53 AS col2
----
NULL
3021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9060
SELECT - SUM( - 76 ) + + 34 * 35 * NULLIF ( + - 88, 25 ) / - NULLIF ( - 79, 99 - - COUNT( * ) * - 25 + + 32 / + - 83 * + 20 ) + - CASE COUNT( * ) WHEN - 31 THEN NULL WHEN + 9 THEN COUNT( * ) - CAST( 86 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT - SUM ( - 76 ) + + 34 * 35 * NULLIF ( + - 88, 25 ) / - NULLIF ( - 79, 99 - - COUNT ( * ) * - 25 + + 32 / + - 83 * + 20 ) + - CASE COUNT ( * ) WHEN - 31 THEN NULL WHEN + 9 THEN COUNT ( * ) - CAST ( 86 AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9061
SELECT DISTINCT 81 DIV - - 16
----
5

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT 81 / - - 16
----
5

query I rowsort
SELECT ALL 40 + 98 - + + 50
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT + 45 + - COALESCE ( - 97, - - 74 + + + ( - - COUNT( * ) ) ) + + COUNT( * ) + - 77 * - 77
----
6072

skipif mysql # not compatible
query I rowsort label-9063
SELECT + 45 + - COALESCE ( - 97, - - 74 + + + ( - - COUNT ( * ) ) ) + + COUNT ( * ) + - 77 * - 77
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT + NULLIF ( 36, - CASE + 23 WHEN - 52 THEN - 97 + 89 END + + 14 - 3 * 20 ) + - COUNT( DISTINCT - 24 )
----
35

skipif mysql # not compatible
query I rowsort label-9064
SELECT + NULLIF ( 36, - CASE + 23 WHEN - 52 THEN - 97 + 89 END + + 14 - 3 * 20 ) + - COUNT ( DISTINCT - 24 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT - ( - COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9065
SELECT - ( - COUNT ( * ) ) col2
----
1

query I rowsort
SELECT ALL 33 + 87
----
120

query I rowsort
SELECT + 15 + + - 79 + - + ( + 73 ) * - 43 AS col2
----
3075

query I rowsort
SELECT DISTINCT 27 * + - 62 AS col0
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT DISTINCT 39 + ( - + COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT 39 + ( - + COUNT ( * ) )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9070
SELECT ALL COUNT( * ) AS col2, ( - - 19 ) AS col2
----
1
19

skipif mysql # not compatible
query II rowsort label-9070
SELECT ALL COUNT ( * ) AS col2, ( - - 19 ) AS col2
----
1
19

query I rowsort
SELECT + 68 + - 86
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-9072
SELECT ALL 74 + - 44 DIV - 81
----
74

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL 74 + - 44 / - 81
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9073
SELECT + CAST( - 58 AS SIGNED ) + COALESCE ( - - 97, - 19 )
----
39

skipif mysql # not compatible
query I rowsort label-9073
SELECT + CAST ( - 58 AS INTEGER ) + COALESCE ( - - 97, - 19 )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9074
SELECT ALL COUNT( * ) AS col0, + COUNT( * ) col2
----
1
1

skipif mysql # not compatible
query II rowsort label-9074
SELECT ALL COUNT ( * ) AS col0, + COUNT ( * ) col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT - ( COUNT( DISTINCT - + 96 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9075
SELECT - ( COUNT ( DISTINCT - + 96 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT - 67 * CASE - 95 WHEN + - 7 THEN 58 WHEN + 35 THEN NULL END + - - SUM( ALL 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT - 67 * CASE - 95 WHEN + - 7 THEN 58 WHEN + 35 THEN NULL END + - - SUM ( ALL 77 )
----
NULL

query I rowsort
SELECT ALL + - 5 * - 70
----
350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9078
SELECT DISTINCT 1 DIV + ( + NULLIF ( COUNT( * ), - ( - 75 ) ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT 1 / + ( + NULLIF ( COUNT ( * ), - ( - 75 ) ) ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9079
SELECT ALL - 70 * - COALESCE ( 14, + 8 * - + 59 - - 44 + - + ( + + 71 ) + 86 + - - ( - COUNT( * ) ) - 99 DIV + + 56, - - 7 ) AS col1
----
980

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL - 70 * - COALESCE ( 14, + 8 * - + 59 - - 44 + - + ( + + 71 ) + 86 + - - ( - COUNT ( * ) ) - 99 / + + 56, - - 7 ) AS col1
----
980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9080
SELECT + COALESCE ( + ( COUNT( DISTINCT + + CAST( - - 98 AS SIGNED ) ) ), 13 + + 20 * 7 ) + + 65 - + - 82 * 0 * 94
----
66

skipif mysql # not compatible
query I rowsort label-9080
SELECT + COALESCE ( + ( COUNT ( DISTINCT + + CAST ( - - 98 AS INTEGER ) ) ), 13 + + 20 * 7 ) + + 65 - + - 82 * 0 * 94
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9081
SELECT - - 89 DIV 81
----
1

skipif mysql # not compatible
query I rowsort label-9081
SELECT - - 89 / 81
----
1

query II rowsort
SELECT DISTINCT + 8 AS col0, + 24
----
8
24

query I rowsort
SELECT ALL 38 * - + 38 + + - 6 + - 94 + 65
----
-1479

query I rowsort
SELECT - 61 + - 76 AS col1
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT + + SUM( DISTINCT - 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9085
SELECT + + SUM ( DISTINCT - 66 ) AS col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9086
SELECT - 74 + + CASE WHEN 6 BETWEEN 14 AND ( NULL ) THEN + CAST( NULL AS SIGNED ) END AS col0, + CAST( 35 AS SIGNED ) DIV + 3
----
NULL
11

skipif mysql # not compatible
query II rowsort label-9086
SELECT - 74 + + CASE WHEN 6 BETWEEN 14 AND ( NULL ) THEN + CAST ( NULL AS INTEGER ) END AS col0, + CAST ( 35 AS INTEGER ) / + 3
----
NULL
11

query II rowsort
SELECT + - 60 AS col0, 57 col0
----
-60
57

query II rowsort
SELECT 40 AS col1, 18 AS col1
----
40
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9089
SELECT - 41 * + + CAST( NULL AS SIGNED ) + + - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9089
SELECT - 41 * + + CAST ( NULL AS INTEGER ) + + - 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT + 28 + 58 * 78 - + 70 * - - MAX( DISTINCT 73 )
----
-558

skipif mysql # not compatible
query I rowsort label-9090
SELECT + 28 + 58 * 78 - + 70 * - - MAX ( DISTINCT 73 )
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT ALL 77 * - - 19 + COUNT( * )
----
1464

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL 77 * - - 19 + COUNT ( * )
----
1464

query I rowsort
SELECT DISTINCT ( 37 )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9093
SELECT ALL + 3 * - COUNT( * ) AS col2, 13 AS col2
----
-3
13

skipif mysql # not compatible
query II rowsort label-9093
SELECT ALL + 3 * - COUNT ( * ) AS col2, 13 AS col2
----
-3
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT - ( - + COUNT( * ) ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9094
SELECT - ( - + COUNT ( * ) ) * COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT + 85 + - + COALESCE ( 90, - 8 ) * - 6 + 36 AS col2
----
661

query II rowsort
SELECT ALL - 31 + 37 AS col1, + 17 - 52
----
6
-35

query I rowsort
SELECT - ( - ( - 90 ) )
----
-90

query I rowsort
SELECT - ( 25 ) - 42 col2
----
-67

query I rowsort
SELECT + 86 * - 93 col1
----
-7998

query II rowsort
SELECT - ( + COALESCE ( - 69, + 65, 55 + - ( NULLIF ( - ( 80 ), 44 ) ) ) ) AS col2, - 94
----
69
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT - SUM( - + 41 ) * 95 * + + 9 - 40
----
35015

skipif mysql # not compatible
query I rowsort label-9101
SELECT - SUM ( - + 41 ) * 95 * + + 9 - 40
----
35015

onlyif mysql # DIV for integer division: 
query I rowsort label-9102
SELECT ALL NULLIF ( - 79, COALESCE ( + 84, + + 59 ) ) DIV - 18 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL NULLIF ( - 79, COALESCE ( + 84, + + 59 ) ) / - 18 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL COUNT( * ) - - COUNT( - - ( - 76 ) ) * + 8 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL COUNT ( * ) - - COUNT ( - - ( - 76 ) ) * + 8 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT ALL SUM( 65 ) - 60 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL SUM ( 65 ) - 60 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9105
SELECT - CAST( NULL AS SIGNED ) * + 28 * + NULLIF ( + - 95, - 44 + 0 * COUNT( 93 ) - - COUNT( * ) * - 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9105
SELECT - CAST ( NULL AS INTEGER ) * + 28 * + NULLIF ( + - 95, - 44 + 0 * COUNT ( 93 ) - - COUNT ( * ) * - 13 )
----
NULL

query I rowsort
SELECT DISTINCT - 32 * - 39
----
1248

onlyif mysql # aggregate syntax: 
query II rowsort label-9107
SELECT - 47 * 19, NULLIF ( - CASE NULLIF ( - + 4, - 32 + 80 + + + 14 * 59 * 10 * ( + 92 ) ) WHEN - - 18 THEN NULL WHEN 17 + 36 + - + 1 * + MIN( DISTINCT 91 + 72 / + 40 ) THEN - 86 WHEN 93 THEN NULL ELSE NULL END, AVG ( ALL 45 ) * 22 ) AS col1
----
-893
NULL

skipif mysql # not compatible
query II rowsort label-9107
SELECT - 47 * 19, NULLIF ( - CASE NULLIF ( - + 4, - 32 + 80 + + + 14 * 59 * 10 * ( + 92 ) ) WHEN - - 18 THEN NULL WHEN 17 + 36 + - + 1 * + MIN ( DISTINCT 91 + 72 / + 40 ) THEN - 86 WHEN 93 THEN NULL ELSE NULL END, AVG ( ALL 45 ) * 22 ) AS col1
----
-893
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9108
SELECT + ( - - 15 ) * ( 86 ) * - + 92 + - 99 + - 86 DIV 75, - 54 AS col1
----
-118780
-54

skipif mysql # not compatible
query II rowsort label-9108
SELECT + ( - - 15 ) * ( 86 ) * - + 92 + - 99 + - 86 / 75, - 54 AS col1
----
-118780
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9109
SELECT 35 * 36 * + COUNT( * ) * - 8 + + COUNT( * ), 55 DIV 97 * - + 39 AS col1
----
-10079
0

skipif mysql # not compatible
query II rowsort label-9109
SELECT 35 * 36 * + COUNT ( * ) * - 8 + + COUNT ( * ), 55 / 97 * - + 39 AS col1
----
-10079
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT + 81 DIV - + 55 + - 96 + ( - 15 ) * - + 12 - - - ( - 93 )
----
176

skipif mysql # not compatible
query I rowsort label-9110
SELECT + 81 / - + 55 + - 96 + ( - 15 ) * - + 12 - - - ( - 93 )
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-9111
SELECT ALL + 49 DIV - 74 col1
----
0

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL + 49 / - 74 col1
----
0

query II rowsort
SELECT + ( + 73 ), + 82 AS col0
----
73
82

query I rowsort
SELECT DISTINCT - 80 + + 41 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL - + CASE - 73 WHEN 0 + 52 THEN - 56 + - 50 + - 71 * + - COUNT( * ) * - 62 * + - 66 WHEN - 60 + + 0 + + COUNT( * ) + - 72 + 33 THEN NULL END + + - 43 + + MIN( ALL 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL - + CASE - 73 WHEN 0 + 52 THEN - 56 + - 50 + - 71 * + - COUNT ( * ) * - 62 * + - 66 WHEN - 60 + + 0 + + COUNT ( * ) + - 72 + 33 THEN NULL END + + - 43 + + MIN ( ALL 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT + MAX( - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-9115
SELECT + MAX ( - 66 )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT DISTINCT 15 + - CAST( NULL AS SIGNED ) * - 83 - - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT 15 + - CAST ( NULL AS INTEGER ) * - 83 - - 5 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9117
SELECT ALL 19 DIV - + 93
----
0

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL 19 / - + 93
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9118
SELECT 82 DIV + + 14 AS col2, - 15 DIV - - 99 DIV - + 41 DIV - - 30 + - 71 AS col0
----
5
-71

skipif mysql # not compatible
query II rowsort label-9118
SELECT 82 / + + 14 AS col2, - 15 / - - 99 / - + 41 / - - 30 + - 71 AS col0
----
5
-71

query I rowsort
SELECT + - 85
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9120
SELECT + MAX( ALL - CAST( - - 14 AS SIGNED ) )
----
-14

skipif mysql # not compatible
query I rowsort label-9120
SELECT + MAX ( ALL - CAST ( - - 14 AS INTEGER ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT 31 + - SUM( DISTINCT 34 )
----
-3

skipif mysql # not compatible
query I rowsort label-9121
SELECT 31 + - SUM ( DISTINCT 34 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT + 95 DIV + 34
----
2

skipif mysql # not compatible
query I rowsort label-9122
SELECT + 95 / + 34
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT DISTINCT - - 93 + + CAST( + 91 AS SIGNED ) AS col2
----
184

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT - - 93 + + CAST ( + 91 AS INTEGER ) AS col2
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT - NULLIF ( - - COALESCE ( + - 83, + COUNT( * ) * - 78, + 99 ), + SUM( ALL - 47 ) ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9124
SELECT - NULLIF ( - - COALESCE ( + - 83, + COUNT ( * ) * - 78, + 99 ), + SUM ( ALL - 47 ) ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT 51 * 16 * + + ( - COUNT( * ) )
----
-816

skipif mysql # not compatible
query I rowsort label-9125
SELECT 51 * 16 * + + ( - COUNT ( * ) )
----
-816

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9126
SELECT ALL - COUNT( * ) DIV + - ( - 13 ) AS col1, - ( - 65 )
----
0
65

skipif mysql # not compatible
query II rowsort label-9126
SELECT ALL - COUNT ( * ) / + - ( - 13 ) AS col1, - ( - 65 )
----
0
65

query II rowsort
SELECT + 14 AS col2, + 81
----
14
81

query II rowsort
SELECT ALL - 11, - 96 col2
----
-11
-96

query I rowsort
SELECT DISTINCT 63 + - 36 AS col1
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-9130
SELECT ALL 70 col0, 70 DIV 22 AS col1
----
70
3

skipif mysql # not compatible
query II rowsort label-9130
SELECT ALL 70 col0, 70 / 22 AS col1
----
70
3

query I rowsort
SELECT 91 * - - 65 AS col2
----
5915

query I rowsort
SELECT 75 * 80 AS col1
----
6000

query I rowsort
SELECT 81 + + 99
----
180

query I rowsort
SELECT 91 + - 84 AS col0
----
7

query I rowsort
SELECT ALL - 0 - ( + 94 ) * - 23 AS col2
----
2162

query I rowsort
SELECT 0 + + + 50
----
50

query I rowsort
SELECT 7 * - 20
----
-140

query I rowsort
SELECT DISTINCT + 55 * + + ( - ( + 4 ) ) AS col2
----
-220

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9139
SELECT ALL 2 AS col0, - CAST( 43 AS SIGNED ) + - 97 AS col2
----
2
-140

skipif mysql # not compatible
query II rowsort label-9139
SELECT ALL 2 AS col0, - CAST ( 43 AS INTEGER ) + - 97 AS col2
----
2
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT COUNT( * ) + 9 + - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-9140
SELECT COUNT ( * ) + 9 + - COUNT ( * )
----
9

query II rowsort
SELECT 23 AS col1, + 66
----
23
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT COUNT( * ) * - 90
----
-90

skipif mysql # not compatible
query I rowsort label-9142
SELECT COUNT ( * ) * - 90
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9143
SELECT ALL + 46 AS col2, - COUNT( ALL - - 4 ) AS col2
----
46
-1

skipif mysql # not compatible
query II rowsort label-9143
SELECT ALL + 46 AS col2, - COUNT ( ALL - - 4 ) AS col2
----
46
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT DISTINCT 19 DIV 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT 19 / 48 AS col2
----
0

query II rowsort
SELECT 82 * - + 26 * - + 1 AS col1, - 31
----
2132
-31

query I rowsort
SELECT - 63 * - 61
----
3843

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL - 84 + - 79 + + COUNT( ALL + 15 ) AS col1
----
-162

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL - 84 + - 79 + + COUNT ( ALL + 15 ) AS col1
----
-162

query II rowsort
SELECT 14 AS col2, 83
----
14
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL COUNT( * ) * + + COUNT( * ) * + 90 + - 9
----
81

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL COUNT ( * ) * + + COUNT ( * ) * + 90 + - 9
----
81

query I rowsort
SELECT DISTINCT - + 28 * - 52 + 96
----
1552

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL - - NULLIF ( + - COALESCE ( 63, + + 11, 50 ), - 13 / - 72 + + + 11 + - CASE 21 WHEN + + COUNT( DISTINCT + - 83 ) THEN NULL ELSE - COUNT( * ) END ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL - - NULLIF ( + - COALESCE ( 63, + + 11, 50 ), - 13 / - 72 + + + 11 + - CASE 21 WHEN + + COUNT ( DISTINCT + - 83 ) THEN NULL ELSE - COUNT ( * ) END ) AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - ( 77 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - ( 77 ) AS col2
----
NULL

query I rowsort
SELECT 66 + + 2 + + 25 + - 22 * 32 + + 0 AS col0
----
-611

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT MAX( DISTINCT - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-9154
SELECT MAX ( DISTINCT - 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT + - MIN( 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-9155
SELECT + - MIN ( 29 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9156
SELECT + ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) + + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT + ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) + + 84 AS col0
----
NULL

query I rowsort
SELECT - ( - 94 ) col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT 46 * + + COUNT( + 33 ) + + + NULLIF ( - 65, + 90 ) * 70 AS col2
----
-4504

skipif mysql # not compatible
query I rowsort label-9158
SELECT 46 * + + COUNT ( + 33 ) + + + NULLIF ( - 65, + 90 ) * 70 AS col2
----
-4504

query I rowsort
SELECT 46 * 41 AS col2
----
1886

onlyif mysql # aggregate syntax: 
query II rowsort label-9160
SELECT ALL + COUNT( * ) + + SUM( - 22 ), - 29 col2
----
-21
-29

skipif mysql # not compatible
query II rowsort label-9160
SELECT ALL + COUNT ( * ) + + SUM ( - 22 ), - 29 col2
----
-21
-29

query I rowsort
SELECT DISTINCT - 32 + 42 AS col1
----
10

query I rowsort
SELECT DISTINCT 22 - + - 43 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT 91 + - 56 + + - 43 - + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-9163
SELECT 91 + - 56 + + - 43 - + COUNT ( * )
----
-9

query I rowsort
SELECT DISTINCT 16 * - 14 AS col0
----
-224

query I rowsort
SELECT 75 * 84 * - 78
----
-491400

query I rowsort
SELECT 10 * + 95 AS col0
----
950

query I rowsort
SELECT ALL 51 * + 19 AS col2
----
969

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT DISTINCT COUNT( * ) * - 98 * + + 80 * - ( - - 35 )
----
274400

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT COUNT ( * ) * - 98 * + + 80 * - ( - - 35 )
----
274400

onlyif mysql # aggregate syntax: 
query II rowsort label-9169
SELECT - 39 + + + 63 AS col2, - COUNT( * ) + - COUNT( * )
----
24
-2

skipif mysql # not compatible
query II rowsort label-9169
SELECT - 39 + + + 63 AS col2, - COUNT ( * ) + - COUNT ( * )
----
24
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT ALL + 68 - 11 + - + COUNT( * ) * 32 + 78 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL + 68 - 11 + - + COUNT ( * ) * 32 + 78 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT + 9 * - + MAX( + + 36 ) * COUNT( * ) * - MIN( DISTINCT + - 84 ) * - + 43
----
1170288

skipif mysql # not compatible
query I rowsort label-9171
SELECT + 9 * - + MAX ( + + 36 ) * COUNT ( * ) * - MIN ( DISTINCT + - 84 ) * - + 43
----
1170288

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT DISTINCT COUNT( DISTINCT + + 29 ) * - - 60 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT COUNT ( DISTINCT + + 29 ) * - - 60 AS col0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-9173
SELECT - 85 * 76 AS col1, COUNT( * ) AS col1
----
-6460
1

skipif mysql # not compatible
query II rowsort label-9173
SELECT - 85 * 76 AS col1, COUNT ( * ) AS col1
----
-6460
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL COUNT( ALL 34 )
----
1

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL COUNT ( ALL 34 )
----
1

query I rowsort
SELECT + 67 - 66
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 9
----
NULL

query I rowsort
SELECT - - 93 * 19
----
1767

query I rowsort
SELECT DISTINCT + ( + 89 )
----
89

query I rowsort
SELECT ALL + - 39 + - 94 + 88
----
-45

query I rowsort
SELECT DISTINCT - 55 + - 39 AS col1
----
-94

query I rowsort
SELECT DISTINCT + 91 + + 82 + - - 12 col0
----
185

query I rowsort
SELECT ALL - + 43 + + 24 col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9183
SELECT ALL - + 27 * + + 80, CASE + 37 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - CASE - 5 WHEN - ( + 25 ) THEN - - 12 ELSE + - 71 END THEN - 54 WHEN + ( 99 ) THEN NULL END AS col1
----
-2160
NULL

skipif mysql # not compatible
query II rowsort label-9183
SELECT ALL - + 27 * + + 80, CASE + 37 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - CASE - 5 WHEN - ( + 25 ) THEN - - 12 ELSE + - 71 END THEN - 54 WHEN + ( 99 ) THEN NULL END AS col1
----
-2160
NULL

query I rowsort
SELECT DISTINCT + 1 AS col1
----
1

query I rowsort
SELECT + COALESCE ( + 20, 61 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ALL - MIN( + 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL - MIN ( + 57 )
----
-57

query I rowsort
SELECT + ( + + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT DISTINCT + + COUNT( * ) + - + 44 - + 5 + - 26 / - 62 * + CASE + 78 WHEN - 89 THEN COALESCE ( - COUNT( * ), - MAX( + + 94 ) * + + 85 ) * 47 WHEN + 26 THEN NULL END + - 18 * 67 * - + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT + + COUNT ( * ) + - + 44 - + 5 + - 26 / - 62 * + CASE + 78 WHEN - 89 THEN COALESCE ( - COUNT ( * ), - MAX ( + + 94 ) * + + 85 ) * 47 WHEN + 26 THEN NULL END + - 18 * 67 * - + 75 AS col0
----
NULL

query I rowsort
SELECT - + 66 * 40 AS col0
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT - - ( - 37 ) + - COUNT( * ) * + 3 * 41 + - - 5
----
-155

skipif mysql # not compatible
query I rowsort label-9190
SELECT - - ( - 37 ) + - COUNT ( * ) * + 3 * 41 + - - 5
----
-155

query I rowsort
SELECT - 68 * + 27 + NULLIF ( 45, + 78 ) * - - 88 AS col0
----
2124

query I rowsort
SELECT + 68 * - 12 * - 35 AS col0
----
28560

query I rowsort
SELECT DISTINCT + + 42
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9194
SELECT ALL MAX( DISTINCT + + 43 ) * COALESCE ( - + NULLIF ( - - MAX( + 65 ), + 94 * ( 49 ) + 79 ), MAX( ALL + 3 ), - - 88 * + 76 + - + 28 ) DIV - COUNT( * ) - COUNT( * ) - - + MAX( + 20 ) + - 1
----
2813

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL MAX ( DISTINCT + + 43 ) * COALESCE ( - + NULLIF ( - - MAX ( + 65 ), + 94 * ( 49 ) + 79 ), MAX ( ALL + 3 ), - - 88 * + 76 + - + 28 ) / - COUNT ( * ) - COUNT ( * ) - - + MAX ( + 20 ) + - 1
----
2813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9195
SELECT DISTINCT + - ( COUNT( * ) ) DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT + - ( COUNT ( * ) ) / - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL + NULLIF ( - 27, + 87 * - 86 ) * + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL + NULLIF ( - 27, + 87 * - 86 ) * + COUNT ( * )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9197
SELECT ALL + + CASE + ( - - COUNT( * ) ) WHEN - COUNT( * ) * + - 77 + - MIN( DISTINCT + 53 ) + + ( - COUNT( * ) ) + + 5 / - CAST( NULL AS SIGNED ) * 78 * - - 11 THEN + MAX( - ( + ( + + 58 ) ) ) WHEN + 73 THEN 92 + 84 * 90 END * ( 79 ) - + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL + + CASE + ( - - COUNT ( * ) ) WHEN - COUNT ( * ) * + - 77 + - MIN ( DISTINCT + 53 ) + + ( - COUNT ( * ) ) + + 5 / - CAST ( NULL AS INTEGER ) * 78 * - - 11 THEN + MAX ( - ( + ( + + 58 ) ) ) WHEN + 73 THEN 92 + 84 * 90 END * ( 79 ) - + 14
----
NULL

query II rowsort
SELECT ALL + 65 AS col0, - 33
----
65
-33

query I rowsort
SELECT ALL 75 * - 94 col2
----
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT + SUM( + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-9200
SELECT + SUM ( + 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT CASE + COUNT( * ) WHEN - 29 THEN - 95 + - 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9201
SELECT CASE + COUNT ( * ) WHEN - 29 THEN - 95 + - 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT + COUNT( DISTINCT - + 38 )
----
1

skipif mysql # not compatible
query I rowsort label-9202
SELECT + COUNT ( DISTINCT - + 38 )
----
1

query I rowsort
SELECT + 21 * - - 5
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT CASE + 79 WHEN - 68 + COUNT( * ) / + 79 + - + MIN( ALL - 34 ) THEN NULL ELSE - 56 - + 3 END col0
----
-59

skipif mysql # not compatible
query I rowsort label-9204
SELECT CASE + 79 WHEN - 68 + COUNT ( * ) / + 79 + - + MIN ( ALL - 34 ) THEN NULL ELSE - 56 - + 3 END col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9205
SELECT + 85 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9205
SELECT + 85 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9206
SELECT ALL 97 * + 10 * + COUNT( ALL CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL 97 * + 10 * + COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT + ( - 61 ) AS col0
----
-61

query I rowsort
SELECT - ( + 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9209
SELECT ALL - 82 * + 85 DIV + COUNT( * ) col2
----
-6970

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL - 82 * + 85 / + COUNT ( * ) col2
----
-6970

query I rowsort
SELECT + 55 * + ( + 15 ) col2
----
825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9211
SELECT ALL + 80 * + - 57 + - - 6 + CAST( + + 14 AS SIGNED ) - MIN( + 92 ) AS col2
----
-4632

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL + 80 * + - 57 + - - 6 + CAST ( + + 14 AS INTEGER ) - MIN ( + 92 ) AS col2
----
-4632

query I rowsort
SELECT + 67 + + 16 col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT MIN( + - 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9213
SELECT MIN ( + - 3 ) AS col2
----
-3

query I rowsort
SELECT + 43 + - 69
----
-26

query II rowsort
SELECT - 49 - + ( + 72 ), 54 - - - 57 + + + ( - 31 ) + 5 * + 22 AS col0
----
-121
76

query I rowsort
SELECT ALL 55 * + 60
----
3300

query I rowsort
SELECT + 19 + + 21
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT - COUNT( * ) * 38 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-9218
SELECT - COUNT ( * ) * 38 AS col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9219
SELECT - CAST( 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-9219
SELECT - CAST ( 23 AS INTEGER )
----
-23

query I rowsort
SELECT + 66 + + - 81
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL COUNT( * ) + - + 37 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL COUNT ( * ) + - + 37 AS col0
----
-36

query I rowsort
SELECT ALL + 25 * - 6 AS col0
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9223
SELECT + - 56 + - + COUNT( * ) + - 92 * + 20 DIV - COUNT( * ) AS col1
----
1783

skipif mysql # not compatible
query I rowsort label-9223
SELECT + - 56 + - + COUNT ( * ) + - 92 * + 20 / - COUNT ( * ) AS col1
----
1783

query I rowsort
SELECT DISTINCT - 32 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL + COUNT( * ) + 12
----
13

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL + COUNT ( * ) + 12
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9226
SELECT 12, + CAST( - 40 AS SIGNED ) + + - 9 AS col0
----
12
-49

skipif mysql # not compatible
query II rowsort label-9226
SELECT 12, + CAST ( - 40 AS INTEGER ) + + - 9 AS col0
----
12
-49

query I rowsort
SELECT - + 32 + - 77
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT ALL - 10 * - - 53 * + + MIN( DISTINCT + 38 )
----
-20140

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL - 10 * - - 53 * + + MIN ( DISTINCT + 38 )
----
-20140

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT - 52 + + COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9229
SELECT - 52 + + COUNT ( * ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT - CASE - COUNT( * ) WHEN + - 69 THEN + 15 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9230
SELECT - CASE - COUNT ( * ) WHEN + - 69 THEN + 15 END AS col1
----
NULL

query I rowsort
SELECT - - 55 * 0 + - 23 + 39
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9232
SELECT ALL - 49 * 43 DIV - 14 + - 85 col2
----
65

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL - 49 * 43 / - 14 + - 85 col2
----
65

query I rowsort
SELECT + - ( + + ( 93 ) ) AS col0
----
-93

query I rowsort
SELECT DISTINCT + ( + + 94 ) * 73 * + 89 * 73 + - 18 AS col0
----
44582396

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - COALESCE ( 79, 32 * + 43 + - ( + 28 ), - 47 ) * + SUM( ALL + + 62 ) AS col0
----
-4898

skipif mysql # not compatible
query I rowsort label-9235
SELECT - COALESCE ( 79, 32 * + 43 + - ( + 28 ), - 47 ) * + SUM ( ALL + + 62 ) AS col0
----
-4898

query I rowsort
SELECT 81 + 43 AS col0
----
124

query I rowsort
SELECT DISTINCT - 52 AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9238
SELECT ALL + 13 DIV MAX( - 62 )
----
0

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL + 13 / MAX ( - 62 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT COUNT( * ) + - - 7 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9239
SELECT COUNT ( * ) + - - 7 AS col0
----
8

query II rowsort
SELECT ALL - 71, + 26 AS col0
----
-71
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9241
SELECT COUNT( * ) DIV + - 55
----
0

skipif mysql # not compatible
query I rowsort label-9241
SELECT COUNT ( * ) / + - 55
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9242
SELECT ALL + COUNT( * ) DIV - - 12
----
0

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL + COUNT ( * ) / - - 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT COUNT( * ) + CASE - 8 WHEN COUNT( * ) THEN + 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT COUNT ( * ) + CASE - 8 WHEN COUNT ( * ) THEN + 0 END
----
NULL

query II rowsort
SELECT + 31, 11 AS col1
----
31
11

query I rowsort
SELECT DISTINCT + 96 + 68 * - - 84 * + + 80 AS col1
----
457056

query I rowsort
SELECT ALL - NULLIF ( + - 32, + 33 ) + + 54 * - 96
----
-5152

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT ALL + CASE - - 5 WHEN - 85 * 24 THEN + COUNT( * ) WHEN - 29 + 21 THEN - 4 WHEN - 9 THEN NULL END + - CASE + 14 WHEN - + COUNT( DISTINCT + - 95 ) THEN 19 * - COUNT( DISTINCT - 68 ) * - - 78 + - - 27 WHEN 29 THEN + 74 + - ( 75 ) + - ( + COUNT( ALL 60 ) ) / COALESCE ( - 67 - COUNT( * ), + 8 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL + CASE - - 5 WHEN - 85 * 24 THEN + COUNT ( * ) WHEN - 29 + 21 THEN - 4 WHEN - 9 THEN NULL END + - CASE + 14 WHEN - + COUNT ( DISTINCT + - 95 ) THEN 19 * - COUNT ( DISTINCT - 68 ) * - - 78 + - - 27 WHEN 29 THEN + 74 + - ( 75 ) + - ( + COUNT ( ALL 60 ) ) / COALESCE ( - 67 - COUNT ( * ), + 8 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT COUNT( * ) * - 92 col2
----
-92

skipif mysql # not compatible
query I rowsort label-9248
SELECT COUNT ( * ) * - 92 col2
----
-92

query I rowsort
SELECT 16 * 16 AS col2
----
256

query II rowsort
SELECT DISTINCT - 87 AS col0, 64 * NULLIF ( - 61, ( - 33 ) )
----
-87
-3904

query II rowsort
SELECT - 54, 55 * + 36 AS col2
----
-54
1980

onlyif mysql # aggregate syntax: 
query II rowsort label-9252
SELECT COUNT( * ) * + 40, + ( + MIN( ALL 46 ) ) AS col2
----
40
46

skipif mysql # not compatible
query II rowsort label-9252
SELECT COUNT ( * ) * + 40, + ( + MIN ( ALL 46 ) ) AS col2
----
40
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9253
SELECT DISTINCT 57 AS col0, CAST( NULL AS SIGNED ) AS col1
----
57
NULL

skipif mysql # not compatible
query II rowsort label-9253
SELECT DISTINCT 57 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
57
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9254
SELECT COUNT( * ) AS col1, ( - 24 ) AS col1
----
1
-24

skipif mysql # not compatible
query II rowsort label-9254
SELECT COUNT ( * ) AS col1, ( - 24 ) AS col1
----
1
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT ALL 70 + - MIN( DISTINCT + 93 ) - - CASE - CASE COUNT( * ) WHEN + 83 THEN - + 63 END WHEN + - 50 THEN - 14 WHEN - - 97 / - + SUM( - 77 ) THEN NULL END * + - 56 / - CASE - + SUM( + 50 ) WHEN - 30 THEN NULL WHEN + COALESCE ( - 14, + - 15 / - 65 + COUNT( * ), - 59 ) THEN - 29 + 4 * COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL 70 + - MIN ( DISTINCT + 93 ) - - CASE - CASE COUNT ( * ) WHEN + 83 THEN - + 63 END WHEN + - 50 THEN - 14 WHEN - - 97 / - + SUM ( - 77 ) THEN NULL END * + - 56 / - CASE - + SUM ( + 50 ) WHEN - 30 THEN NULL WHEN + COALESCE ( - 14, + - 15 / - 65 + COUNT ( * ), - 59 ) THEN - 29 + 4 * COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT - 40 - - 32
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT + COUNT( * ) * 5
----
5

skipif mysql # not compatible
query I rowsort label-9257
SELECT + COUNT ( * ) * 5
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9258
SELECT - + COUNT( - 54 ) AS col1, + 19 * + + 59 * + - 76 AS col1
----
-1
-85196

skipif mysql # not compatible
query II rowsort label-9258
SELECT - + COUNT ( - 54 ) AS col1, + 19 * + + 59 * + - 76 AS col1
----
-1
-85196

query I rowsort
SELECT ALL + + 84 - + 53
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9260
SELECT ALL 59 * + 69 * CASE 23 WHEN + + 14 THEN CASE - CAST( - COALESCE ( - 7, - ( - - 47 ) + + 4 * + 79 * + 88 / - - 50 ) AS SIGNED ) WHEN - 78 THEN + ( + 85 ) WHEN + + COUNT( DISTINCT - + 39 ) * - + 89 * ( ( MIN( DISTINCT CASE 38 WHEN - 55 + + 51 THEN NULL ELSE - ( 61 ) END ) ) ) + COUNT( * ) THEN + ( + 86 ) * + 34 + + 63 * 44 WHEN 74 + - 83 * 63 THEN NULL ELSE NULL END ELSE 17 + 54 END + 79
----
289120

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL 59 * + 69 * CASE 23 WHEN + + 14 THEN CASE - CAST ( - COALESCE ( - 7, - ( - - 47 ) + + 4 * + 79 * + 88 / - - 50 ) AS INTEGER ) WHEN - 78 THEN + ( + 85 ) WHEN + + COUNT ( DISTINCT - + 39 ) * - + 89 * ( ( MIN ( DISTINCT CASE 38 WHEN - 55 + + 51 THEN NULL ELSE - ( 61 ) END ) ) ) + COUNT ( * ) THEN + ( + 86 ) * + 34 + + 63 * 44 WHEN 74 + - 83 * 63 THEN NULL ELSE NULL END ELSE 17 + 54 END + 79
----
289120

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL - NULLIF ( COUNT( * ), + 95 + + 2 ) * ( + 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL - NULLIF ( COUNT ( * ), + 95 + + 2 ) * ( + 93 ) AS col1
----
-93

query II rowsort
SELECT - - 5, 73 AS col2
----
5
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9263
SELECT ALL 86 - + ( + + 5 ) + CAST( NULL AS DECIMAL ) + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL 86 - + ( + + 5 ) + CAST ( NULL AS REAL ) + - 13
----
NULL

query II rowsort
SELECT - 40 AS col0, 22
----
-40
22

query II rowsort
SELECT + 62 AS col2, + 87 AS col1
----
62
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9266
SELECT + CAST( NULL AS SIGNED ) * 99 + - 0 + - 85 + 26 * AVG ( + 36 ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT + CAST ( NULL AS INTEGER ) * 99 + - 0 + - 85 + 26 * AVG ( + 36 ) - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9267
SELECT + - CAST( 13 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-9267
SELECT + - CAST ( 13 AS INTEGER )
----
-13

query I rowsort
SELECT - 83 + + + 49
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9269
SELECT DISTINCT + NULLIF ( COUNT( * ), + COUNT( * ) ) * - 77 / + - 27, COUNT( * ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9269
SELECT DISTINCT + NULLIF ( COUNT ( * ), + COUNT ( * ) ) * - 77 / + - 27, COUNT ( * ) col2
----
NULL
1

query I rowsort
SELECT 30 - + + 46 * + 9
----
-384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9271
SELECT 0 * + 31 DIV + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9271
SELECT 0 * + 31 / + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT ALL + 9 + - + 3 + + - CASE + 61 WHEN - + 94 - - + CASE - 67 WHEN - CAST( NULL AS SIGNED ) - - 45 - + AVG ( DISTINCT 53 ) THEN 84 / - COALESCE ( + + 22, + 45 - - 7 ) END * + 54 THEN + - 25 / + CAST( - 92 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL + 9 + - + 3 + + - CASE + 61 WHEN - + 94 - - + CASE - 67 WHEN - CAST ( NULL AS INTEGER ) - - 45 - + AVG ( DISTINCT 53 ) THEN 84 / - COALESCE ( + + 22, + 45 - - 7 ) END * + 54 THEN + - 25 / + CAST ( - 92 AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT 19 + - 16 * 90
----
-1421

query I rowsort
SELECT ALL - ( + + 64 )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9275
SELECT ALL + NULLIF ( - 78, - COUNT( * ) + + NULLIF ( - - 85, - 57 ) ) + + 89 DIV 24 * - - 6
----
-60

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL + NULLIF ( - 78, - COUNT ( * ) + + NULLIF ( - - 85, - 57 ) ) + + 89 / 24 * - - 6
----
-60

query I rowsort
SELECT - 74 * + + 70 + 86 AS col1
----
-5094

query I rowsort
SELECT 25 * 55 AS col0
----
1375

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT DISTINCT - SUM( 89 ) + - - 41 - + 54 * - + 38 AS col1
----
2004

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT - SUM ( 89 ) + - - 41 - + 54 * - + 38 AS col1
----
2004

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9279
SELECT ALL - - 20 - + + 26, - CAST( NULL AS SIGNED ) AS col2
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-9279
SELECT ALL - - 20 - + + 26, - CAST ( NULL AS INTEGER ) AS col2
----
-6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT DISTINCT + 76 * + - 69 + - 85 - ( 24 ) - + + COUNT( ALL - 87 ) + - 53 + + COUNT( * ) AS col1
----
-5406

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT + 76 * + - 69 + - 85 - ( 24 ) - + + COUNT ( ALL - 87 ) + - 53 + + COUNT ( * ) AS col1
----
-5406

onlyif mysql # aggregate syntax: 
query II rowsort label-9281
SELECT COUNT( * ) + COUNT( * ) AS col0, 8 col2
----
2
8

skipif mysql # not compatible
query II rowsort label-9281
SELECT COUNT ( * ) + COUNT ( * ) AS col0, 8 col2
----
2
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT ( CASE - 10 WHEN - - 94 THEN + + NULLIF ( + 85, + + 84 ) * - 58 END ) * COUNT( * ) + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT ( CASE - 10 WHEN - - 94 THEN + + NULLIF ( + 85, + + 84 ) * - 58 END ) * COUNT ( * ) + 64
----
NULL

query I rowsort
SELECT DISTINCT + - 7 * - 37 AS col2
----
259

query I rowsort
SELECT + 37 + 40 col1
----
77

query I rowsort
SELECT 17 - + 69
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL SUM( ALL 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL SUM ( ALL 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT COALESCE ( - COALESCE ( - 6, + + 70 * 81 * 55, + SUM( ALL - + 13 ) ), + MAX( + 27 ) + 47 + 38 ) + - 66 * + 94 AS col1
----
-6198

skipif mysql # not compatible
query I rowsort label-9287
SELECT COALESCE ( - COALESCE ( - 6, + + 70 * 81 * 55, + SUM ( ALL - + 13 ) ), + MAX ( + 27 ) + 47 + 38 ) + - 66 * + 94 AS col1
----
-6198

onlyif mysql # DIV for integer division: 
query I rowsort label-9288
SELECT ALL - 27 * 23 DIV + - 84 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL - 27 * 23 / + - 84 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT + SUM( - CASE + 95 WHEN - - 97 THEN - 51 * - 55 * + + 85 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT + SUM ( - CASE + 95 WHEN - - 97 THEN - 51 * - 55 * + + 85 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9290
SELECT - - NULLIF ( 86, CAST( + 77 AS SIGNED ) * + 14 * - 70 * - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-9290
SELECT - - NULLIF ( 86, CAST ( + 77 AS INTEGER ) * + 14 * - 70 * - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT - COUNT( * ) + - - 60 + - 5 * + - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-9291
SELECT - COUNT ( * ) + - - 60 + - 5 * + - COUNT ( * )
----
64

query I rowsort
SELECT - NULLIF ( + + COALESCE ( 76, - - 84 ), + 35 )
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-9293
SELECT + - 72 DIV 73 * + 35 + + 54 + + 82 * + ( + + 56 ) + + 45
----
4691

skipif mysql # not compatible
query I rowsort label-9293
SELECT + - 72 / 73 * + 35 + + 54 + + 82 * + ( + + 56 ) + + 45
----
4691

query I rowsort
SELECT + + 97 + + COALESCE ( - - 77, - + 12 + 66 ) AS col2
----
174

query I rowsort
SELECT DISTINCT - 33 * + + 68
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT + - 28 * + ( + + COUNT( * ) )
----
-28

skipif mysql # not compatible
query I rowsort label-9296
SELECT + - 28 * + ( + + COUNT ( * ) )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT - - COUNT( * ) + + 42 + + 58 * + + 15
----
913

skipif mysql # not compatible
query I rowsort label-9297
SELECT - - COUNT ( * ) + + 42 + + 58 * + + 15
----
913

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ALL 16 + + + SUM( DISTINCT + 12 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL 16 + + + SUM ( DISTINCT + 12 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL MIN( + 76 ) * + NULLIF ( - MAX( + 91 ), 86 ) + 8 AS col2
----
-6908

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL MIN ( + 76 ) * + NULLIF ( - MAX ( + 91 ), 86 ) + 8 AS col2
----
-6908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9300
SELECT DISTINCT NULLIF ( + - 21, - 98 ) * + ( - CAST( NULL AS SIGNED ) ) / - 23 + + - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT NULLIF ( + - 21, - 98 ) * + ( - CAST ( NULL AS INTEGER ) ) / - 23 + + - 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT DISTINCT - COUNT( * ) * + - 10 + + 25 - 56 * - + COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT - COUNT ( * ) * + - 10 + + 25 - 56 * - + COUNT ( * ) AS col2
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-9302
SELECT ALL - ( + - 55 ) DIV 50 + 24 + COALESCE ( - - 8, + 14 - + 80 + - - ( - 63 ) * + 60, - 64 - - - 5 + - 28 ), - NULLIF ( 34, + - 54 ) AS col2
----
33
-34

skipif mysql # not compatible
query II rowsort label-9302
SELECT ALL - ( + - 55 ) / 50 + 24 + COALESCE ( - - 8, + 14 - + 80 + - - ( - 63 ) * + 60, - 64 - - - 5 + - 28 ), - NULLIF ( 34, + - 54 ) AS col2
----
33
-34

query I rowsort
SELECT DISTINCT + ( - + 1 ) * - + 27 * + 25 * + 70 + - - 93 col0
----
47343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9304
SELECT CASE + 81 WHEN - + 69 + + - 72 * - CAST( 81 AS SIGNED ) THEN + COUNT( * ) * - + 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT CASE + 81 WHEN - + 69 + + - 72 * - CAST ( 81 AS INTEGER ) THEN + COUNT ( * ) * - + 15 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT CASE - COUNT( * ) WHEN 58 * + + 1 THEN NULL ELSE 98 * - + 88 - - + 66 END
----
-8558

skipif mysql # not compatible
query I rowsort label-9305
SELECT CASE - COUNT ( * ) WHEN 58 * + + 1 THEN NULL ELSE 98 * - + 88 - - + 66 END
----
-8558

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT NULLIF ( + COUNT( * ), + 33 * - - 81 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9306
SELECT NULLIF ( + COUNT ( * ), + 33 * - - 81 ) AS col1
----
1

query I rowsort
SELECT + 44 + - 14 + + + 77
----
107

query I rowsort
SELECT - 70 * + 28 - + 76
----
-2036

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT COALESCE ( 29, - 33, + 76 * - + 1 + - - COUNT( * ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-9309
SELECT COALESCE ( 29, - 33, + 76 * - + 1 + - - COUNT ( * ) ) AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9310
SELECT ALL - 82 * - 79 DIV COUNT( * ) * ( + - COALESCE ( - - COUNT( * ), + + 10 + + 33 * - + 94 ) ) + - 81 AS col1
----
-6559

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL - 82 * - 79 / COUNT ( * ) * ( + - COALESCE ( - - COUNT ( * ), + + 10 + + 33 * - + 94 ) ) + - 81 AS col1
----
-6559

query I rowsort
SELECT 79 * - ( + - 8 ) + - 49 AS col2
----
583

query I rowsort
SELECT COALESCE ( - + 94, - + 1, 65 + - 96 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9313
SELECT + CASE + - ( 91 ) WHEN - MAX( DISTINCT - 88 ) THEN + + ( - + 49 ) WHEN - 40 * + AVG ( DISTINCT + - 23 ) THEN 24 / + + SUM( + 16 ) ELSE - CASE - + ( + 68 ) WHEN + MIN( + - ( CAST( NULL AS SIGNED ) ) ) THEN - CASE + - 53 WHEN + + ( - + 72 ) THEN ( MAX( + 64 ) ) WHEN 77 * ( + 45 ) THEN COALESCE ( COUNT( * ), 29 ) WHEN 67 THEN NULL END + + 70 END + 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9313
SELECT + CASE + - ( 91 ) WHEN - MAX ( DISTINCT - 88 ) THEN + + ( - + 49 ) WHEN - 40 * + AVG ( DISTINCT + - 23 ) THEN 24 / + + SUM ( + 16 ) ELSE - CASE - + ( + 68 ) WHEN + MIN ( + - ( CAST ( NULL AS INTEGER ) ) ) THEN - CASE + - 53 WHEN + + ( - + 72 ) THEN ( MAX ( + 64 ) ) WHEN 77 * ( + 45 ) THEN COALESCE ( COUNT ( * ), 29 ) WHEN 67 THEN NULL END + + 70 END + 16 END
----
NULL

query I rowsort
SELECT + 37 * - 41 * 19 AS col2
----
-28823

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT + + 21 * + + COUNT( * ) + 32 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9315
SELECT + + 21 * + + COUNT ( * ) + 32 AS col1
----
53

query II rowsort
SELECT - 17 AS col0, 2
----
-17
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ALL + 56 * - 29 * + COUNT( - 85 ) - - COUNT( * )
----
-1623

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL + 56 * - 29 * + COUNT ( - 85 ) - - COUNT ( * )
----
-1623

onlyif mysql # DIV for integer division: 
query I rowsort label-9318
SELECT - 44 DIV 99 - - 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-9318
SELECT - 44 / 99 - - 27 AS col2
----
27

query II rowsort
SELECT - 1 AS col2, - COALESCE ( - 9, - + 64 ) * 17 AS col2
----
-1
153

onlyif mysql # DIV for integer division: 
query I rowsort label-9320
SELECT - 62 DIV - + 13 + + 31 * + 42 - - 50 * 29 col2
----
2756

skipif mysql # not compatible
query I rowsort label-9320
SELECT - 62 / - + 13 + + 31 * + 42 - - 50 * 29 col2
----
2756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9321
SELECT DISTINCT CAST( NULL AS SIGNED ), 52 * ( + COUNT( * ) ) AS col0
----
NULL
52

skipif mysql # not compatible
query II rowsort label-9321
SELECT DISTINCT CAST ( NULL AS INTEGER ), 52 * ( + COUNT ( * ) ) AS col0
----
NULL
52

onlyif mysql # DIV for integer division: 
query II rowsort label-9322
SELECT ALL - + 0 DIV + ( + - 60 ) AS col1, + 84 DIV - 18
----
0
-4

skipif mysql # not compatible
query II rowsort label-9322
SELECT ALL - + 0 / + ( + - 60 ) AS col1, + 84 / - 18
----
0
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-9323
SELECT ALL 15 * - - 33 * - 77, 10 * + COUNT( DISTINCT + ( - 20 ) ) + - 13 AS col2
----
-38115
-3

skipif mysql # not compatible
query II rowsort label-9323
SELECT ALL 15 * - - 33 * - 77, 10 * + COUNT ( DISTINCT + ( - 20 ) ) + - 13 AS col2
----
-38115
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT - - CAST( 87 AS SIGNED ) * + 31
----
2697

skipif mysql # not compatible
query I rowsort label-9324
SELECT - - CAST ( 87 AS INTEGER ) * + 31
----
2697

query I rowsort
SELECT DISTINCT + 70 * - 57
----
-3990

query I rowsort
SELECT + - 43 * 36 * - ( + 73 ) col0
----
113004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT ALL + CAST( NULL AS SIGNED ) + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL + CAST ( NULL AS INTEGER ) + 70
----
NULL

query I rowsort
SELECT - - 32 - - 17 AS col2
----
49

query I rowsort
SELECT - - 83 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT DISTINCT - 93 * - - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT - 93 * - - COUNT ( * )
----
-93

query I rowsort
SELECT ALL + 35 + + + 98 AS col2
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9332
SELECT ALL - MIN( ALL 35 ) + + CAST( NULL AS SIGNED ) + + MAX( DISTINCT + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL - MIN ( ALL 35 ) + + CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT + 81 )
----
NULL

query II rowsort
SELECT - + 60 AS col1, - ( 66 ) + + 44 * 98 AS col1
----
-60
4246

query I rowsort
SELECT DISTINCT - 9 + 22
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT ALL CAST( + - 55 AS SIGNED ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL CAST ( + - 55 AS INTEGER ) AS col2
----
-55

query I rowsort
SELECT + 39 * 92 AS col0
----
3588

onlyif mysql # DIV for integer division: 
query I rowsort label-9337
SELECT - 27 + - 99 DIV NULLIF ( 91, - + 65 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9337
SELECT - 27 + - 99 / NULLIF ( 91, - + 65 ) AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9338
SELECT CAST( 88 AS SIGNED ), 99 AS col0
----
88
99

skipif mysql # not compatible
query II rowsort label-9338
SELECT CAST ( 88 AS INTEGER ), 99 AS col0
----
88
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9339
SELECT 83 DIV 10 + 61 + - NULLIF ( - 69, + 81 * 98 )
----
138

skipif mysql # not compatible
query I rowsort label-9339
SELECT 83 / 10 + 61 + - NULLIF ( - 69, + 81 * 98 )
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT DISTINCT - COUNT( ALL 39 ) * - - 92
----
-92

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT - COUNT ( ALL 39 ) * - - 92
----
-92

query I rowsort
SELECT + 73 * - - 59
----
4307

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9342
SELECT DISTINCT CAST( NULL AS SIGNED ) * 84 AS col2, 82 * 19 DIV - - 21 + + 52 col0
----
NULL
126

skipif mysql # not compatible
query II rowsort label-9342
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 84 AS col2, 82 * 19 / - - 21 + + 52 col0
----
NULL
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9343
SELECT ALL CAST( + 39 AS SIGNED ) * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL CAST ( + 39 AS INTEGER ) * - COUNT ( * )
----
-39

query I rowsort
SELECT + 37 * + - 89
----
-3293

query I rowsort
SELECT ( + 19 )
----
19

query I rowsort
SELECT - 19 * - - 5 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL - COUNT( ALL + 4 ) * - 30
----
30

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL - COUNT ( ALL + 4 ) * - 30
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9348
SELECT + 33 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT + 33 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + + 3 AS col2
----
3

query I rowsort
SELECT + + 71 - - + 40
----
111

query I rowsort
SELECT ALL + + 25 AS col1
----
25

query II rowsort
SELECT ALL - 32 * - 11 - + 49 * 35 AS col0, + 62 AS col2
----
-1363
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT - 81 * COUNT( * ) + 68
----
-13

skipif mysql # not compatible
query I rowsort label-9353
SELECT - 81 * COUNT ( * ) + 68
----
-13

query I rowsort
SELECT DISTINCT CASE - 27 WHEN + 71 THEN - 15 END AS col0
----
NULL

query I rowsort
SELECT 60 + - ( + 74 ) AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9356
SELECT 19 DIV + - ( + 46 )
----
0

skipif mysql # not compatible
query I rowsort label-9356
SELECT 19 / + - ( + 46 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT - 90 * - COUNT( * ) + - + 92 - - 92
----
90

skipif mysql # not compatible
query I rowsort label-9357
SELECT - 90 * - COUNT ( * ) + - + 92 - - 92
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9358
SELECT COUNT( * ) - - + ( - MIN( DISTINCT - CAST( - 44 AS SIGNED ) ) ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-9358
SELECT COUNT ( * ) - - + ( - MIN ( DISTINCT - CAST ( - 44 AS INTEGER ) ) ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL COALESCE ( + 21, COUNT( 91 ) * + 54 - + 76 )
----
21

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL COALESCE ( + 21, COUNT ( 91 ) * + 54 - + 76 )
----
21

query I rowsort
SELECT - 49 + - - 58 AS col1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9361
SELECT ALL + 6 + - COUNT( * ) AS col0, 14
----
5
14

skipif mysql # not compatible
query II rowsort label-9361
SELECT ALL + 6 + - COUNT ( * ) AS col0, 14
----
5
14

query I rowsort
SELECT DISTINCT 37 + + + 57
----
94

query I rowsort
SELECT ALL + 84 * + + 31
----
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT ALL - - 10 + COUNT( + - 13 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL - - 10 + COUNT ( + - 13 ) AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9365
SELECT DISTINCT + 68 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT + 68 / + 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9366
SELECT 29 + - COUNT( * ) + - CASE 85 WHEN - 80 + + 24 + - 8 * 25 + - 46 * - - 5 * + 58 THEN COALESCE ( - 11, COALESCE ( 60, CASE - - COUNT( * ) WHEN + 47 THEN - + 17 + + 9 WHEN - 52 * + ( + ( - 22 ) ) + + 55 * CASE - 51 WHEN 79 * CAST( NULL AS SIGNED ) THEN + COUNT( * ) END THEN 9 / 40 ELSE NULL END - ( - ( COUNT( * ) ) ) ), 93 + - NULLIF ( ( 44 ), - COUNT( * ) ) * 21, + 20 * CASE - 44 WHEN + 92 THEN 30 ELSE NULL END + + 89 ) * 13 - - COALESCE ( + COUNT( * ), 37 ) WHEN 30 THEN NULL WHEN 37 + - ( SUM( ALL - ( + 45 ) ) + + SUM( DISTINCT - NULLIF ( + ( - 90 ), - 78 ) ) ) THEN NULL END - + 67 * 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT 29 + - COUNT ( * ) + - CASE 85 WHEN - 80 + + 24 + - 8 * 25 + - 46 * - - 5 * + 58 THEN COALESCE ( - 11, COALESCE ( 60, CASE - - COUNT ( * ) WHEN + 47 THEN - + 17 + + 9 WHEN - 52 * + ( + ( - 22 ) ) + + 55 * CASE - 51 WHEN 79 * CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) END THEN 9 / 40 ELSE NULL END - ( - ( COUNT ( * ) ) ) ), 93 + - NULLIF ( ( 44 ), - COUNT ( * ) ) * 21, + 20 * CASE - 44 WHEN + 92 THEN 30 ELSE NULL END + + 89 ) * 13 - - COALESCE ( + COUNT ( * ), 37 ) WHEN 30 THEN NULL WHEN 37 + - ( SUM ( ALL - ( + 45 ) ) + + SUM ( DISTINCT - NULLIF ( + ( - 90 ), - 78 ) ) ) THEN NULL END - + 67 * 64 AS col1
----
NULL

query II rowsort
SELECT - 63, ( ( 14 ) ) AS col0
----
-63
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9368
SELECT ALL 64 AS col1, 76 + + 21 - + COUNT( * ) DIV + + COUNT( + + 84 ) + MAX( DISTINCT 83 ) * - 4 AS col1
----
64
-236

skipif mysql # not compatible
query II rowsort label-9368
SELECT ALL 64 AS col1, 76 + + 21 - + COUNT ( * ) / + + COUNT ( + + 84 ) + MAX ( DISTINCT 83 ) * - 4 AS col1
----
64
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL - 96 + + 48 + + ( - + 2 ) * - CASE + 97 WHEN COUNT( 34 ) * 13 THEN NULL WHEN - 14 / 3 * + - MIN( 88 ) + - + 75 + - + 39 - COUNT( * ) * + 44 THEN + + 9 + - NULLIF ( - 98, - + 15 ) * - - 42 * + + 26 END * COALESCE ( 0, COUNT( * ), COUNT( * ) ) / COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL - 96 + + 48 + + ( - + 2 ) * - CASE + 97 WHEN COUNT ( 34 ) * 13 THEN NULL WHEN - 14 / 3 * + - MIN ( 88 ) + - + 75 + - + 39 - COUNT ( * ) * + 44 THEN + + 9 + - NULLIF ( - 98, - + 15 ) * - - 42 * + + 26 END * COALESCE ( 0, COUNT ( * ), COUNT ( * ) ) / COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9370
SELECT 16 + - CAST( 53 AS DECIMAL ) + - 16 + - 36 * + AVG ( ALL 0 ) + - CASE + 74 WHEN - 77 + - 20 THEN - + 39 WHEN - 86 THEN + NULLIF ( + - COUNT( * ), + + 25 * 40 ) END * 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT 16 + - CAST ( 53 AS REAL ) + - 16 + - 36 * + AVG ( ALL 0 ) + - CASE + 74 WHEN - 77 + - 20 THEN - + 39 WHEN - 86 THEN + NULLIF ( + - COUNT ( * ), + + 25 * 40 ) END * 18 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9371
SELECT DISTINCT - CASE + 53 WHEN 13 THEN ( + 4 ) + - 78 ELSE - ( - CAST( + 44 AS SIGNED ) ) END + 11 + - - 77 AS col1, - 40 * - - COUNT( * ) - - - 51 * 69 * 52 + - - 98 AS col0
----
44
-182930

skipif mysql # not compatible
query II rowsort label-9371
SELECT DISTINCT - CASE + 53 WHEN 13 THEN ( + 4 ) + - 78 ELSE - ( - CAST ( + 44 AS INTEGER ) ) END + 11 + - - 77 AS col1, - 40 * - - COUNT ( * ) - - - 51 * 69 * 52 + - - 98 AS col0
----
44
-182930

onlyif mysql # aggregate syntax: 
query II rowsort label-9372
SELECT ALL 73 AS col1, + COUNT( * ) * + - 51 AS col1
----
73
-51

skipif mysql # not compatible
query II rowsort label-9372
SELECT ALL 73 AS col1, + COUNT ( * ) * + - 51 AS col1
----
73
-51

query II rowsort
SELECT 60 AS col1, 22 + 69 AS col1
----
60
91

query I rowsort
SELECT ALL 27 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT DISTINCT - 79 - + + MIN( ALL - 29 ) + - COUNT( * ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT - 79 - + + MIN ( ALL - 29 ) + - COUNT ( * ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT COUNT( ALL + 37 ) + + 82 col2
----
83

skipif mysql # not compatible
query I rowsort label-9376
SELECT COUNT ( ALL + 37 ) + + 82 col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9377
SELECT DISTINCT + CAST( NULL AS SIGNED ) - 43 / 97 * + MAX( - 49 ) * + + 21 + + 10 - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - 43 / 97 * + MAX ( - 49 ) * + + 21 + + 10 - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT ALL - MIN( DISTINCT ( - 27 ) )
----
27

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL - MIN ( DISTINCT ( - 27 ) )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9379
SELECT DISTINCT - CAST( + - 97 AS SIGNED ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT - CAST ( + - 97 AS INTEGER ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT COUNT( * ) + 74 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9380
SELECT COUNT ( * ) + 74 AS col1
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9381
SELECT 44 DIV + 46 col0
----
0

skipif mysql # not compatible
query I rowsort label-9381
SELECT 44 / + 46 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT 50 + + + 11 - + - 64 + MIN( + 61 ) * COUNT( ALL + 88 ) AS col2
----
186

skipif mysql # not compatible
query I rowsort label-9382
SELECT 50 + + + 11 - + - 64 + MIN ( + 61 ) * COUNT ( ALL + 88 ) AS col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT DISTINCT 43 * - NULLIF ( + ( + - COUNT( * ) ), + COALESCE ( 39, + 12 ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT 43 * - NULLIF ( + ( + - COUNT ( * ) ), + COALESCE ( 39, + 12 ) ) AS col0
----
43

query I rowsort
SELECT ALL + 22 * - 46
----
-1012

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9385
SELECT + ( - - COUNT( DISTINCT + 65 ) ) DIV - 23 * + - 43 - - + 72
----
72

skipif mysql # not compatible
query I rowsort label-9385
SELECT + ( - - COUNT ( DISTINCT + 65 ) ) / - 23 * + - 43 - - + 72
----
72

query I rowsort
SELECT ALL + - 34 * - + 32 AS col1
----
1088

query I rowsort
SELECT DISTINCT - - 91 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT - COUNT( * ) + + - 53 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9388
SELECT - COUNT ( * ) + + - 53 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ALL ( - - 12 ) * SUM( DISTINCT - + 42 ) AS col1
----
-504

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL ( - - 12 ) * SUM ( DISTINCT - + 42 ) AS col1
----
-504

query I rowsort
SELECT ALL - + 14 AS col0
----
-14

query I rowsort
SELECT + + 82 AS col1
----
82

query I rowsort
SELECT ALL ( - 36 ) + - 31 col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9393
SELECT DISTINCT 55 + + + CAST( NULL AS SIGNED ) - + 59 * + COUNT( * ) * + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT 55 + + + CAST ( NULL AS INTEGER ) - + 59 * + COUNT ( * ) * + 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL - + SUM( - 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL - + SUM ( - 43 ) AS col0
----
43

query I rowsort
SELECT ALL - - ( + + 66 )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9396
SELECT + 33 * SUM( + + 53 ), 20 AS col0
----
1749
20

skipif mysql # not compatible
query II rowsort label-9396
SELECT + 33 * SUM ( + + 53 ), 20 AS col0
----
1749
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9397
SELECT - COALESCE ( 63, CAST( - 84 AS SIGNED ) * - 58 * 77 )
----
-63

skipif mysql # not compatible
query I rowsort label-9397
SELECT - COALESCE ( 63, CAST ( - 84 AS INTEGER ) * - 58 * 77 )
----
-63

query I rowsort
SELECT DISTINCT 21 + - 54 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT 43 * - + SUM( DISTINCT 39 ) AS col2
----
-1677

skipif mysql # not compatible
query I rowsort label-9399
SELECT 43 * - + SUM ( DISTINCT 39 ) AS col2
----
-1677

query I rowsort
SELECT ALL 39 + - - 33
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT - + MAX( DISTINCT + 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9401
SELECT - + MAX ( DISTINCT + 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9402
SELECT ALL COALESCE ( + + NULLIF ( + - 5, 9 DIV 27 + - 27 + + 8 * + COUNT( * ) * - 52 - - COUNT( * ) ), - 6 + - - 90 - + 29 ) + + 27 * + ( + 67 ) AS col0, - 9 DIV + - 18 * + 23
----
1804
0

skipif mysql # not compatible
query II rowsort label-9402
SELECT ALL COALESCE ( + + NULLIF ( + - 5, 9 / 27 + - 27 + + 8 * + COUNT ( * ) * - 52 - - COUNT ( * ) ), - 6 + - - 90 - + 29 ) + + 27 * + ( + 67 ) AS col0, - 9 / + - 18 * + 23
----
1804
0

query I rowsort
SELECT NULLIF ( + - 90, - 21 ) - + 44 + 53 AS col0
----
-81

query I rowsort
SELECT 45 * + 24 * - - 56
----
60480

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT DISTINCT + 19 DIV - 14 col1
----
-1

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT + 19 / - 14 col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9406
SELECT DISTINCT ( - + 91 ) - 51 * + CAST( NULL AS SIGNED ) * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT ( - + 91 ) - 51 * + CAST ( NULL AS INTEGER ) * - 47
----
NULL

query I rowsort
SELECT 54 - - 25 AS col2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9408
SELECT ALL + NULLIF ( + - 56, + 15 ) DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL + NULLIF ( + - 56, + 15 ) / + 86
----
0

query I rowsort
SELECT 60 * + + 13
----
780

query I rowsort
SELECT DISTINCT + ( + + 15 ) * - 41 AS col1
----
-615

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT COUNT( * ) * + MIN( + 25 ) * - + 91 AS col0
----
-2275

skipif mysql # not compatible
query I rowsort label-9411
SELECT COUNT ( * ) * + MIN ( + 25 ) * - + 91 AS col0
----
-2275

query II rowsort
SELECT 31, - 0 AS col0
----
31
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9413
SELECT ALL - 56 * + - 85 * 38 * COUNT( * ), + 65 AS col2
----
180880
65

skipif mysql # not compatible
query II rowsort label-9413
SELECT ALL - 56 * + - 85 * 38 * COUNT ( * ), + 65 AS col2
----
180880
65

query I rowsort
SELECT 44 + ( - 11 )
----
33

query I rowsort
SELECT ALL - 30 * + - 56 AS col1
----
1680

query I rowsort
SELECT ALL + 57 * + 61 AS col1
----
3477

query I rowsort
SELECT DISTINCT - NULLIF ( - + 31, + 17 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9418
SELECT ALL COALESCE ( 26, - 75 DIV 93 ) * 27 + 65 AS col0
----
767

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL COALESCE ( 26, - 75 / 93 ) * 27 + 65 AS col0
----
767

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT ALL - ( - - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL - ( - - COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT - 24 * + 93 * + + 78 * 53 AS col0
----
-9227088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9421
SELECT 33 + 21 + + 69 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9421
SELECT 33 + 21 + + 69 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL - - COUNT( + 82 )
----
1

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL - - COUNT ( + 82 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9423
SELECT ALL 94 * + 61 + - 32 - + + MAX( DISTINCT NULLIF ( 79, + NULLIF ( - + 32, - 4 ) ) ) * - - CAST( + 54 AS SIGNED )
----
1436

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL 94 * + 61 + - 32 - + + MAX ( DISTINCT NULLIF ( 79, + NULLIF ( - + 32, - 4 ) ) ) * - - CAST ( + 54 AS INTEGER )
----
1436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9424
SELECT - + COUNT( - 27 ) - 14 + + NULLIF ( - + 63, - 92 + + 74 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT - + COUNT ( - 27 ) - 14 + + NULLIF ( - + 63, - 92 + + 74 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9425
SELECT + - 5 DIV 59 * + 29
----
0

skipif mysql # not compatible
query I rowsort label-9425
SELECT + - 5 / 59 * + 29
----
0

query I rowsort
SELECT DISTINCT + + 81 * + 87 + - 75 AS col1
----
6972

query I rowsort
SELECT - 10 * + - 20 + + - 19 col0
----
181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9428
SELECT ALL - 50 * - CAST( + - 99 AS SIGNED ) AS col2
----
-4950

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL - 50 * - CAST ( + - 99 AS INTEGER ) AS col2
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - - 44 + - - COUNT( * ) - - 62 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-9429
SELECT - - 44 + - - COUNT ( * ) - - 62 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL COUNT( * ) * MIN( ALL - - 26 ) - 59 + 1 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL COUNT ( * ) * MIN ( ALL - - 26 ) - 59 + 1 AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9431
SELECT DISTINCT CAST( - CASE - - NULLIF ( + COALESCE ( + 67, - 93 + + ( + 0 ), + 71 / - - ( - 60 ) + - - CASE - 56 WHEN + + 54 THEN NULL WHEN + 48 THEN NULL WHEN - - 40 * - 53 + 49 THEN + ( ( + NULLIF ( + 98, 34 ) ) ) ELSE - 62 END - + 44 + - - 57 ), MAX( - 8 ) ) WHEN + 88 THEN 93 WHEN 19 * ( 13 ) + - 68 * COUNT( * ) THEN NULL END AS SIGNED ) * ( + 82 + - 83 ) + - 64 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT CAST ( - CASE - - NULLIF ( + COALESCE ( + 67, - 93 + + ( + 0 ), + 71 / - - ( - 60 ) + - - CASE - 56 WHEN + + 54 THEN NULL WHEN + 48 THEN NULL WHEN - - 40 * - 53 + 49 THEN + ( ( + NULLIF ( + 98, 34 ) ) ) ELSE - 62 END - + 44 + - - 57 ), MAX ( - 8 ) ) WHEN + 88 THEN 93 WHEN 19 * ( 13 ) + - 68 * COUNT ( * ) THEN NULL END AS INTEGER ) * ( + 82 + - 83 ) + - 64 col0
----
NULL

query I rowsort
SELECT ALL 70 + + 47
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT + 40 - + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-9433
SELECT + 40 - + COUNT ( * )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9434
SELECT + 43 AS col1, COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) * 28 + + COUNT( * ) + 43 AS col1
----
43
44

skipif mysql # not compatible
query II rowsort label-9434
SELECT + 43 AS col1, COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * 28 + + COUNT ( * ) + 43 AS col1
----
43
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9435
SELECT ALL + - 39 * - NULLIF ( - 94, - CAST( + 29 AS DECIMAL ) * + - 25 * - - 6 + 96 * - MIN( + 2 ) * + 45 ) - + 93 + - 9 + + 90 * + 46 + CASE + 79 WHEN CAST( NULL AS SIGNED ) - - COUNT( * ) THEN + 92 + - + COUNT( * ) * - 9 + + 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL + - 39 * - NULLIF ( - 94, - CAST ( + 29 AS REAL ) * + - 25 * - - 6 + 96 * - MIN ( + 2 ) * + 45 ) - + 93 + - 9 + + 90 * + 46 + CASE + 79 WHEN CAST ( NULL AS INTEGER ) - - COUNT ( * ) THEN + 92 + - + COUNT ( * ) * - 9 + + 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT - COUNT( * ) * + 14 + + + 69
----
55

skipif mysql # not compatible
query I rowsort label-9436
SELECT - COUNT ( * ) * + 14 + + + 69
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9437
SELECT DISTINCT + + 32 col0, - MIN( + + 52 ) * + 92 col0
----
32
-4784

skipif mysql # not compatible
query II rowsort label-9437
SELECT DISTINCT + + 32 col0, - MIN ( + + 52 ) * + 92 col0
----
32
-4784

query I rowsort
SELECT ALL - 98 - - ( + 56 ) AS col0
----
-42

query I rowsort
SELECT - - 92 + 47 - - + 14 AS col0
----
153

query III rowsort
SELECT 48 AS col0, - 17, + 67 AS col0
----
48
-17
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9441
SELECT ALL + 23 DIV - 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL + 23 / - 52 AS col0
----
0

query I rowsort
SELECT + + 17 + + 9 + 11 AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9443
SELECT + COUNT( * ) - COUNT( * ) DIV - + 57 col1
----
1

skipif mysql # not compatible
query I rowsort label-9443
SELECT + COUNT ( * ) - COUNT ( * ) / - + 57 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT - MAX( - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-9444
SELECT - MAX ( - 66 )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9445
SELECT DISTINCT ( - - COUNT( * ) ), - 33 AS col1
----
1
-33

skipif mysql # not compatible
query II rowsort label-9445
SELECT DISTINCT ( - - COUNT ( * ) ), - 33 AS col1
----
1
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9446
SELECT - CASE + 76 WHEN + COUNT( * ) - 64 + - ( 93 ) THEN NULL ELSE 27 + + - ( + + CAST( - 88 AS SIGNED ) ) END AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-9446
SELECT - CASE + 76 WHEN + COUNT ( * ) - 64 + - ( 93 ) THEN NULL ELSE 27 + + - ( + + CAST ( - 88 AS INTEGER ) ) END AS col1
----
-115

query I rowsort
SELECT ALL 68 * + 18
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT + COUNT( - 53 ) + - ( - 74 )
----
75

skipif mysql # not compatible
query I rowsort label-9448
SELECT + COUNT ( - 53 ) + - ( - 74 )
----
75

query I rowsort
SELECT + 50 + - 99 AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 96 * - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 96 * - 49 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT ALL CAST( NULL AS SIGNED ) * + 69 * - ( 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL CAST ( NULL AS INTEGER ) * + 69 * - ( 60 )
----
NULL

query I rowsort
SELECT - ( + 18 ) * + - 65 AS col1
----
1170

onlyif mysql # aggregate syntax: 
query II rowsort label-9453
SELECT - ( COUNT( * ) ) AS col2, - ( + COUNT( * ) ) AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-9453
SELECT - ( COUNT ( * ) ) AS col2, - ( + COUNT ( * ) ) AS col1
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT ALL MAX( + + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL MAX ( + + 48 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9455
SELECT DISTINCT MAX( + 89 ), - SUM( ALL - - 45 ) AS col2
----
89
-45

skipif mysql # not compatible
query II rowsort label-9455
SELECT DISTINCT MAX ( + 89 ), - SUM ( ALL - - 45 ) AS col2
----
89
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL - COUNT( * ) + - + 95 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL - COUNT ( * ) + - + 95 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9457
SELECT ALL - 71 + + COUNT( * ) AS col2, COUNT( ALL - ( - 82 ) ) * - 80 - + 45
----
-70
-125

skipif mysql # not compatible
query II rowsort label-9457
SELECT ALL - 71 + + COUNT ( * ) AS col2, COUNT ( ALL - ( - 82 ) ) * - 80 - + 45
----
-70
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT DISTINCT CASE - ( + COUNT( * ) ) WHEN + - 37 THEN + 41 ELSE 90 END
----
90

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT CASE - ( + COUNT ( * ) ) WHEN + - 37 THEN + 41 ELSE 90 END
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT DISTINCT - + COUNT( * ) * - + 76 + - 30
----
46

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT - + COUNT ( * ) * - + 76 + - 30
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT + + ( + 8 ) * + 77 - + 90 - - + MIN( DISTINCT 62 )
----
588

skipif mysql # not compatible
query I rowsort label-9460
SELECT + + ( + 8 ) * + 77 - + 90 - - + MIN ( DISTINCT 62 )
----
588

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9461
SELECT + + ( 59 ), - 16 DIV 17 * + 55 - - - 62 - + COUNT( - + 75 ) AS col2
----
59
-63

skipif mysql # not compatible
query II rowsort label-9461
SELECT + + ( 59 ), - 16 / 17 * + 55 - - - 62 - + COUNT ( - + 75 ) AS col2
----
59
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT ALL - COUNT( * ) * - - 1 * MIN( ALL - 99 ) * 72 + + - 3 * + ( - 27 ) + 71 + 3 * + COUNT( * ) AS col0
----
7283

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL - COUNT ( * ) * - - 1 * MIN ( ALL - 99 ) * 72 + + - 3 * + ( - 27 ) + 71 + 3 * + COUNT ( * ) AS col0
----
7283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9463
SELECT - 70 DIV 73 + + ( - COUNT( DISTINCT + 4 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9463
SELECT - 70 / 73 + + ( - COUNT ( DISTINCT + 4 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9464
SELECT DISTINCT + + CAST( - + 83 AS SIGNED ) * + + 3 - COUNT( * ) * 0 AS col2, - 46 AS col0
----
-249
-46

skipif mysql # not compatible
query II rowsort label-9464
SELECT DISTINCT + + CAST ( - + 83 AS INTEGER ) * + + 3 - COUNT ( * ) * 0 AS col2, - 46 AS col0
----
-249
-46

query I rowsort
SELECT DISTINCT + + 64 AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9466
SELECT - - COUNT( * ) + - COUNT( * ) + + 63 + - + 8 - - ( - - CAST( + - 33 AS SIGNED ) ) AS col0, 5
----
22
5

skipif mysql # not compatible
query II rowsort label-9466
SELECT - - COUNT ( * ) + - COUNT ( * ) + + 63 + - + 8 - - ( - - CAST ( + - 33 AS INTEGER ) ) AS col0, 5
----
22
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT DISTINCT + + COUNT( ALL - 37 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT + + COUNT ( ALL - 37 ) AS col2
----
1

query I rowsort
SELECT - 95 * - 32 + - 99
----
2941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9469
SELECT ALL - 73 * + + 65 - - - ( ( CASE + COUNT( * ) WHEN NULLIF ( 3, + 69 ) THEN 90 ELSE 91 + CAST( NULL AS SIGNED ) END ) ) + MAX( + + 24 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL - 73 * + + 65 - - - ( ( CASE + COUNT ( * ) WHEN NULLIF ( 3, + 69 ) THEN 90 ELSE 91 + CAST ( NULL AS INTEGER ) END ) ) + MAX ( + + 24 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT - - 21 * - + 73 * - COUNT( * ) AS col0
----
1533

skipif mysql # not compatible
query I rowsort label-9470
SELECT - - 21 * - + 73 * - COUNT ( * ) AS col0
----
1533

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT DISTINCT + COUNT( * ) * - 97 * 10 + + NULLIF ( 7, + 39 + + - 92 ) - + + 88
----
-1051

skipif mysql # not compatible
query I rowsort label-9471
SELECT DISTINCT + COUNT ( * ) * - 97 * 10 + + NULLIF ( 7, + 39 + + - 92 ) - + + 88
----
-1051

query I rowsort
SELECT + + 83 * 5 col0
----
415

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT + 87 + - 71 + - + 80 + - COUNT( * ) * + 3 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9473
SELECT + 87 + - 71 + - + 80 + - COUNT ( * ) * + 3 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT + MAX( ALL - 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-9474
SELECT + MAX ( ALL - 34 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT - MAX( ALL - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-9475
SELECT - MAX ( ALL - 21 )
----
21

query I rowsort
SELECT DISTINCT ( - 97 ) AS col1
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-9477
SELECT ALL - ( + 80 ) * 25, + 9 DIV 92 AS col0
----
-2000
0

skipif mysql # not compatible
query II rowsort label-9477
SELECT ALL - ( + 80 ) * 25, + 9 / 92 AS col0
----
-2000
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 80 * + 9 / 92
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 80 * + 9 / 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT SUM( DISTINCT - 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-9479
SELECT SUM ( DISTINCT - 99 ) AS col1
----
-99

query II rowsort
SELECT ALL 23 AS col2, NULLIF ( 94, - 28 - - 52 - + - 2 )
----
23
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT - COUNT( * ) - - 8
----
7

skipif mysql # not compatible
query I rowsort label-9481
SELECT - COUNT ( * ) - - 8
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9482
SELECT - CAST( - + 36 AS SIGNED ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-9482
SELECT - CAST ( - + 36 AS INTEGER ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT - COUNT( * ) * - - 26
----
-26

skipif mysql # not compatible
query I rowsort label-9483
SELECT - COUNT ( * ) * - - 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT + CASE - 71 WHEN 62 THEN NULL WHEN + - COUNT( * ) THEN - + COUNT( * ) END + - COALESCE ( - 37, + + 45 * + + COUNT( * ) ) * + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT + CASE - 71 WHEN 62 THEN NULL WHEN + - COUNT ( * ) THEN - + COUNT ( * ) END + - COALESCE ( - 37, + + 45 * + + COUNT ( * ) ) * + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9485
SELECT ALL + CAST( NULL AS SIGNED ) + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL + CAST ( NULL AS INTEGER ) + 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9486
SELECT ALL MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - ( + 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT ALL 55 + + + MIN( - - 50 ) AS col1
----
105

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL 55 + + + MIN ( - - 50 ) AS col1
----
105

query I rowsort
SELECT ALL 72 + + 68 AS col2
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9490
SELECT - 2 AS col2, CASE + + 55 WHEN + - 52 / COUNT( * ) * + + 26 THEN 32 - + 38 + - 9 * - 19 + + 98 + NULLIF ( COUNT( * ), 80 ) * - 6 + 22 * + + CAST( - 36 AS SIGNED ) * - 37 ELSE NULL END * - 76 AS col2
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-9490
SELECT - 2 AS col2, CASE + + 55 WHEN + - 52 / COUNT ( * ) * + + 26 THEN 32 - + 38 + - 9 * - 19 + + 98 + NULLIF ( COUNT ( * ), 80 ) * - 6 + 22 * + + CAST ( - 36 AS INTEGER ) * - 37 ELSE NULL END * - 76 AS col2
----
-2
NULL

query I rowsort
SELECT 95 * - 53
----
-5035

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9492
SELECT ALL 19 + + 8 + + 38 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL 19 + + 8 + + 38 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 81 AS col1, - ( ( + 42 ) ) col0
----
-81
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT + + 42 * + 91 + + 3 + + MIN( - 65 ) * + COUNT( * ) + - 86 AS col0
----
3674

skipif mysql # not compatible
query I rowsort label-9494
SELECT + + 42 * + 91 + + 3 + + MIN ( - 65 ) * + COUNT ( * ) + - 86 AS col0
----
3674

query I rowsort
SELECT 39 - + 39 col2
----
0

query I rowsort
SELECT DISTINCT - ( - + 51 ) AS col0
----
51

query I rowsort
SELECT ALL + - 26 + 9
----
-17

query I rowsort
SELECT 72 * + 86 AS col0
----
6192

query I rowsort
SELECT DISTINCT - + 14 * + 72 AS col0
----
-1008

query I rowsort
SELECT DISTINCT - - ( + - 74 )
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9501
SELECT ALL 5 DIV - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL 5 / - 90 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT + COUNT( DISTINCT + 50 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9502
SELECT + COUNT ( DISTINCT + 50 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 65 * + 22 AS col1
----
1430

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9504
SELECT + 63 DIV COUNT( * ) + - 15, 27 AS col0
----
48
27

skipif mysql # not compatible
query II rowsort label-9504
SELECT + 63 / COUNT ( * ) + - 15, 27 AS col0
----
48
27

query I rowsort
SELECT 21 + - - 85
----
106

onlyif mysql # DIV for integer division: 
query II rowsort label-9506
SELECT ALL - 8 AS col0, + 37 DIV + + 12 AS col0
----
-8
3

skipif mysql # not compatible
query II rowsort label-9506
SELECT ALL - 8 AS col0, + 37 / + + 12 AS col0
----
-8
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9507
SELECT DISTINCT - COALESCE ( + COALESCE ( - - 35, + NULLIF ( + 68, + + CAST( - - COUNT( * ) AS DECIMAL ) * - + COUNT( * ) * + - 45 ), - + 34 ), 2 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT - COALESCE ( + COALESCE ( - - 35, + NULLIF ( + 68, + + CAST ( - - COUNT ( * ) AS REAL ) * - + COUNT ( * ) * + - 45 ), - + 34 ), 2 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT DISTINCT - COUNT( ALL - 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT - COUNT ( ALL - 63 )
----
-1

query I rowsort
SELECT 25 * + 35 AS col1
----
875

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT 35 + - COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9510
SELECT 35 + - COUNT ( * ) AS col2
----
34

query I rowsort
SELECT 73 + 54 AS col0
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-9512
SELECT 44 + - COUNT( * ), - 90 AS col2
----
43
-90

skipif mysql # not compatible
query II rowsort label-9512
SELECT 44 + - COUNT ( * ), - 90 AS col2
----
43
-90

query I rowsort
SELECT ALL + 43 + 63 AS col1
----
106

query I rowsort
SELECT 63 + 96 AS col2
----
159

query I rowsort
SELECT ALL - 71 + - 76 - 40 * + + 50 col0
----
-2147

query I rowsort
SELECT ALL - 98 * - + 18 AS col2
----
1764

query I rowsort
SELECT ALL + 43 + 69 AS col1
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-9518
SELECT SUM( DISTINCT - 44 ) + + + 51 - - + MAX( ALL 17 ) AS col2, 48 * + 21
----
24
1008

skipif mysql # not compatible
query II rowsort label-9518
SELECT SUM ( DISTINCT - 44 ) + + + 51 - - + MAX ( ALL 17 ) AS col2, 48 * + 21
----
24
1008

query I rowsort
SELECT DISTINCT - 80 + - 24 * 78 AS col1
----
-1952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9520
SELECT ALL 31 + 5 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL 31 + 5 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 46 col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ( + COUNT( * ) ) + - 61 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-9522
SELECT ( + COUNT ( * ) ) + - 61 AS col0
----
-60

query I rowsort
SELECT 79 * 95 AS col0
----
7505

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT - 17 * COUNT( - 53 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9524
SELECT - 17 * COUNT ( - 53 ) AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9525
SELECT ALL - 12 DIV + 47 * + 22 + + MIN( 68 ) * - + 11
----
-748

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL - 12 / + 47 * + 22 + + MIN ( 68 ) * - + 11
----
-748

query I rowsort
SELECT 64 * - 1 * - 36
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT COUNT( * ) + + 30
----
31

skipif mysql # not compatible
query I rowsort label-9527
SELECT COUNT ( * ) + + 30
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9528
SELECT ALL - 62 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL - 62 - + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT CASE - + 66 WHEN - 74 + 92 + + 68 * 78 / + 62 + NULLIF ( + 26, + COUNT( * ) ) THEN NULL ELSE + 16 END
----
16

skipif mysql # not compatible
query I rowsort label-9529
SELECT CASE - + 66 WHEN - 74 + 92 + + 68 * 78 / + 62 + NULLIF ( + 26, + COUNT ( * ) ) THEN NULL ELSE + 16 END
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL - ( - ( - + NULLIF ( - COUNT( * ), + 26 + - 66 + - 9 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL - ( - ( - + NULLIF ( - COUNT ( * ), + 26 + - 66 + - 9 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT 87 * + 49 * - CASE + + SUM( DISTINCT 15 ) WHEN - 14 + 20 - + - 91 + + 85 THEN + - AVG ( - CASE - - 2 WHEN - + 71 + - - 98 THEN 10 WHEN - + 93 THEN + 82 + - - ( - 89 ) * 93 END ) * + 41 WHEN - 77 THEN NULL WHEN + + 3 * - 90 - + - 35 + + COALESCE ( - + MAX( 76 ), + 80 + + MIN( ALL 12 ) ) THEN NULL END / ( - 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9531
SELECT 87 * + 49 * - CASE + + SUM ( DISTINCT 15 ) WHEN - 14 + 20 - + - 91 + + 85 THEN + - AVG ( - CASE - - 2 WHEN - + 71 + - - 98 THEN 10 WHEN - + 93 THEN + 82 + - - ( - 89 ) * 93 END ) * + 41 WHEN - 77 THEN NULL WHEN + + 3 * - 90 - + - 35 + + COALESCE ( - + MAX ( 76 ), + 80 + + MIN ( ALL 12 ) ) THEN NULL END / ( - 74 ) AS col0
----
NULL

query I rowsort
SELECT ALL 37 * - 14 * 41 + + 87
----
-21151

query I rowsort
SELECT 66 * - 36 + - 17
----
-2393

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT ALL SUM( DISTINCT COALESCE ( 89, + 44 ) ) * - ( + 13 )
----
-1157

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL SUM ( DISTINCT COALESCE ( 89, + 44 ) ) * - ( + 13 )
----
-1157

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT - - 22 * 2 + + - NULLIF ( - 9, - + 90 ) - MAX( DISTINCT + 68 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9535
SELECT - - 22 * 2 + + - NULLIF ( - 9, - + 90 ) - MAX ( DISTINCT + 68 ) AS col1
----
-15

query I rowsort
SELECT + + 51 col0
----
51

query I rowsort
SELECT 67 * - + 66 AS col2
----
-4422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9538
SELECT - 33 * + CAST( 54 AS SIGNED ) AS col0
----
-1782

skipif mysql # not compatible
query I rowsort label-9538
SELECT - 33 * + CAST ( 54 AS INTEGER ) AS col0
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT ALL COUNT( * ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL COUNT ( * ) * COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT - NULLIF ( - 98, + ( + - 14 ) ) / AVG ( - CAST( NULL AS SIGNED ) ) + - 56 * - - 56 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT - NULLIF ( - 98, + ( + - 14 ) ) / AVG ( - CAST ( NULL AS INTEGER ) ) + - 56 * - - 56 col2
----
NULL

query I rowsort
SELECT 87 + 23 + - - 18 AS col2
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-9542
SELECT ALL 60 * + MAX( DISTINCT 79 ) * - - 18, 40 + + MIN( - + 17 ) + + 12 + - COUNT( * ) col1
----
85320
34

skipif mysql # not compatible
query II rowsort label-9542
SELECT ALL 60 * + MAX ( DISTINCT 79 ) * - - 18, 40 + + MIN ( - + 17 ) + + 12 + - COUNT ( * ) col1
----
85320
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9543
SELECT ALL - CAST( + + 28 AS SIGNED ) AS col1, 7 AS col2
----
-28
7

skipif mysql # not compatible
query II rowsort label-9543
SELECT ALL - CAST ( + + 28 AS INTEGER ) AS col1, 7 AS col2
----
-28
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT DISTINCT 48 / - CASE - + 4 WHEN + 41 + 49 THEN + NULLIF ( + 14, - 21 ) WHEN 33 THEN + COUNT( * ) WHEN - + 2 + + + 60 * + - AVG ( DISTINCT - 4 ) THEN 81 WHEN - 60 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT 48 / - CASE - + 4 WHEN + 41 + 49 THEN + NULLIF ( + 14, - 21 ) WHEN 33 THEN + COUNT ( * ) WHEN - + 2 + + + 60 * + - AVG ( DISTINCT - 4 ) THEN 81 WHEN - 60 THEN NULL END
----
NULL

query I rowsort
SELECT 66 + - 84 AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9546
SELECT CASE COALESCE ( + 56, - SUM( + - NULLIF ( 14, + ( - 73 ) ) ) * + 48 + 50 ) WHEN - 33 THEN - CAST( NULL AS SIGNED ) / - - 96 * - 45 * - + 70 END + + + 48 + + 27 - + 57 * + 14 * NULLIF ( - + 7, - + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT CASE COALESCE ( + 56, - SUM ( + - NULLIF ( 14, + ( - 73 ) ) ) * + 48 + 50 ) WHEN - 33 THEN - CAST ( NULL AS INTEGER ) / - - 96 * - 45 * - + 70 END + + + 48 + + 27 - + 57 * + 14 * NULLIF ( - + 7, - + 64 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9547
SELECT ALL CASE 93 WHEN + 26 * + - 37 - - + 31 THEN - 91 ELSE NULL END / 1 + 85 AS col1, 86 + - CASE + 90 WHEN 75 * - 28 / - 58 THEN + CAST( - 33 AS SIGNED ) * + NULLIF ( - COUNT( * ), - COALESCE ( + 69, - CAST( NULL AS SIGNED ) ) ) * + + CASE - 85 WHEN 13 - + - 0 + - MIN( 77 ) * + 66 THEN + 87 ELSE - - 76 END + - 39 WHEN - 97 * 14 + COUNT( * ) * - 75 THEN NULL END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9547
SELECT ALL CASE 93 WHEN + 26 * + - 37 - - + 31 THEN - 91 ELSE NULL END / 1 + 85 AS col1, 86 + - CASE + 90 WHEN 75 * - 28 / - 58 THEN + CAST ( - 33 AS INTEGER ) * + NULLIF ( - COUNT ( * ), - COALESCE ( + 69, - CAST ( NULL AS INTEGER ) ) ) * + + CASE - 85 WHEN 13 - + - 0 + - MIN ( 77 ) * + 66 THEN + 87 ELSE - - 76 END + - 39 WHEN - 97 * 14 + COUNT ( * ) * - 75 THEN NULL END AS col0
----
NULL
NULL

query I rowsort
SELECT DISTINCT 92 * - - 97
----
8924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT 73 / - CASE 22 WHEN CAST( + 28 AS SIGNED ) THEN + - 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT 73 / - CASE 22 WHEN CAST ( + 28 AS INTEGER ) THEN + - 52 END
----
NULL

query I rowsort
SELECT ALL 9 + 87
----
96

query I rowsort
SELECT ALL - 2 * + 62 AS col0
----
-124

query I rowsort
SELECT DISTINCT 15 + 22 col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT ALL + 39 + + 9 * - COUNT( * ) * - 83 AS col0
----
786

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL + 39 + + 9 * - COUNT ( * ) * - 83 AS col0
----
786

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT DISTINCT MIN( ALL 64 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT MIN ( ALL 64 ) AS col2
----
64

query I rowsort
SELECT DISTINCT 8 + + NULLIF ( 44, - 53 )
----
52

query I rowsort
SELECT ALL + 12 + + 69
----
81

query I rowsort
SELECT + 8 + - 78
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT + COUNT( * ) - 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-9558
SELECT + COUNT ( * ) - 93 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT ALL + COUNT( * ) + 84 + 28 * + 71
----
2073

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL + COUNT ( * ) + 84 + 28 * + 71
----
2073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9560
SELECT - CAST( NULL AS SIGNED ) - - 12 / + - 45 * 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9560
SELECT - CAST ( NULL AS INTEGER ) - - 12 / + - 45 * 34 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9561
SELECT ALL + - CASE 41 WHEN - 96 THEN 11 WHEN 14 * + 67 * COUNT( * ) THEN + 67 WHEN 35 THEN NULL WHEN - - 25 * COUNT( * ) + + COALESCE ( + 90, 5 + + 47 / 10 * - 88 + + 75 + + ( - 39 ) * CAST( - 94 AS SIGNED ) ) + + 44 THEN + 44 END * - 77 * - COUNT( ALL - 67 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL + - CASE 41 WHEN - 96 THEN 11 WHEN 14 * + 67 * COUNT ( * ) THEN + 67 WHEN 35 THEN NULL WHEN - - 25 * COUNT ( * ) + + COALESCE ( + 90, 5 + + 47 / 10 * - 88 + + 75 + + ( - 39 ) * CAST ( - 94 AS INTEGER ) ) + + 44 THEN + 44 END * - 77 * - COUNT ( ALL - 67 ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( 29 ) - + 21 AS col0
----
-50

query I rowsort
SELECT - - 10 col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT DISTINCT + COUNT( * ) * + 82
----
82

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT + COUNT ( * ) * + 82
----
82

query I rowsort
SELECT - + 87 col2
----
-87

query II rowsort
SELECT DISTINCT + 89 * - + 57 * 72, 33 + - 31 * + + 47 AS col1
----
-365256
-1424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9567
SELECT - COUNT( * ) DIV + ( - 16 ) * MAX( + 9 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9567
SELECT - COUNT ( * ) / + ( - 16 ) * MAX ( + 9 ) AS col0
----
0

query I rowsort
SELECT - ( - 90 ) AS col1
----
90

query I rowsort
SELECT + + 70 * ( - 15 ) * 20 + + 57 col0
----
-20943

onlyif mysql # DIV for integer division: 
query I rowsort label-9570
SELECT DISTINCT ( 59 ) DIV - - 28 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT ( 59 ) / - - 28 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9571
SELECT ALL - 90 DIV + NULLIF ( - COUNT( * ), - CASE + + NULLIF ( - - ( + - 79 ), + - 27 + - 73 ) WHEN + CAST( NULL AS SIGNED ) * - 23 + + 35 THEN - + 39 END * 82 + 22 ) + 95 - 16 + - - 85 * COUNT( * ) * - - 58 * 13 * + - SUM( - 33 ) * + NULLIF ( - 1, - 21 * + 16 + + + 39 + + - 16 + + 51 + + ( + ( 96 ) ) ) + - 65
----
-2114866

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL - 90 / + NULLIF ( - COUNT ( * ), - CASE + + NULLIF ( - - ( + - 79 ), + - 27 + - 73 ) WHEN + CAST ( NULL AS INTEGER ) * - 23 + + 35 THEN - + 39 END * 82 + 22 ) + 95 - 16 + - - 85 * COUNT ( * ) * - - 58 * 13 * + - SUM ( - 33 ) * + NULLIF ( - 1, - 21 * + 16 + + + 39 + + - 16 + + 51 + + ( + ( 96 ) ) ) + - 65
----
-2114866

query I rowsort
SELECT ALL + 2 col2
----
2

query II rowsort
SELECT DISTINCT + 79 col2, - 79 AS col0
----
79
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9574
SELECT ALL 4 * + 91 + - + 28 - + CASE + COUNT( * ) WHEN + 34 DIV + + 16 - + 11 THEN - 94 ELSE COUNT( * ) END DIV + 56 col1
----
336

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL 4 * + 91 + - + 28 - + CASE + COUNT ( * ) WHEN + 34 / + + 16 - + 11 THEN - 94 ELSE COUNT ( * ) END / + 56 col1
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT DISTINCT + 67 * 66 * - - COALESCE ( + 62, + NULLIF ( - COUNT( * ), - 25 * ( + + 3 ) ), + 91 * + + 46 ) * - - ( 1 ) + - 57 * 31
----
272397

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT + 67 * 66 * - - COALESCE ( + 62, + NULLIF ( - COUNT ( * ), - 25 * ( + + 3 ) ), + 91 * + + 46 ) * - - ( 1 ) + - 57 * 31
----
272397

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9576
SELECT - CAST( 90 AS SIGNED ) * + + 85 AS col0, 75
----
-7650
75

skipif mysql # not compatible
query II rowsort label-9576
SELECT - CAST ( 90 AS INTEGER ) * + + 85 AS col0, 75
----
-7650
75

query I rowsort
SELECT + - 43 * - 36 col1
----
1548

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT - 75 * COUNT( * ) + 96 + - 99
----
-78

skipif mysql # not compatible
query I rowsort label-9578
SELECT - 75 * COUNT ( * ) + 96 + - 99
----
-78

query I rowsort
SELECT ALL 69 * - + 52 + 89
----
-3499

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT 6 * + COUNT( * ) + - + 44
----
-38

skipif mysql # not compatible
query I rowsort label-9580
SELECT 6 * + COUNT ( * ) + - + 44
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT CASE + 9 WHEN - + 78 * - NULLIF ( - MAX( - + 10 ), + COUNT( * ) ) * + - 51 - - COALESCE ( + 75, 21 + 68 * + 80, + 82 * + - COUNT( * ) ) + 82 + + 41 THEN - - 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT CASE + 9 WHEN - + 78 * - NULLIF ( - MAX ( - + 10 ), + COUNT ( * ) ) * + - 51 - - COALESCE ( + 75, 21 + 68 * + 80, + 82 * + - COUNT ( * ) ) + 82 + + 41 THEN - - 3 ELSE NULL END
----
NULL

query I rowsort
SELECT + ( 32 ) col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL 12 * + + COUNT( * ) + - 52 * + CASE - 90 WHEN + + 61 THEN - - 13 WHEN + 81 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL 12 * + + COUNT ( * ) + - 52 * + CASE - 90 WHEN + + 61 THEN - - 13 WHEN + 81 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( + 42 ) * + - 91 AS col0
----
-3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT ALL + 92 * + 21 * + CAST( 58 AS SIGNED ) + + + 45 AS col0
----
112101

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL + 92 * + 21 * + CAST ( 58 AS INTEGER ) + + + 45 AS col0
----
112101

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT + CASE + 86 WHEN + 5 / + - 74 * - 75 + + - 27 * 66 - - 39 + + COUNT( * ) - 68 THEN + 46 * + + ( + 82 ) WHEN SUM( - 3 ) + - 50 THEN + 20 + - 14 WHEN - 92 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT + CASE + 86 WHEN + 5 / + - 74 * - 75 + + - 27 * 66 - - 39 + + COUNT ( * ) - 68 THEN + 46 * + + ( + 82 ) WHEN SUM ( - 3 ) + - 50 THEN + 20 + - 14 WHEN - 92 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT COUNT( * ) * 63 + + - 93
----
-30

skipif mysql # not compatible
query I rowsort label-9587
SELECT COUNT ( * ) * 63 + + - 93
----
-30

query I rowsort
SELECT ALL 55 * - 29 + 21 AS col1
----
-1574

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT MAX( ALL - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-9589
SELECT MAX ( ALL - 60 )
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9590
SELECT + CAST( NULL AS DECIMAL ), - 71 AS col1
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-9590
SELECT + CAST ( NULL AS REAL ), - 71 AS col1
----
NULL
-71

query I rowsort
SELECT DISTINCT + 30 col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT + ( ( + MIN( DISTINCT + 26 ) ) ) + - 84 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-9592
SELECT + ( ( + MIN ( DISTINCT + 26 ) ) ) + - 84 AS col0
----
-58

query I rowsort
SELECT - 31 * + 83 * - + 2
----
5146

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT ALL COUNT( * ) * - 83 * COALESCE ( 33, - + 92, + 46 ) col0
----
-2739

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL COUNT ( * ) * - 83 * COALESCE ( 33, - + 92, + 46 ) col0
----
-2739

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9595
SELECT ALL COUNT( * ), 4 * - CASE + 39 WHEN + ( 92 ) THEN 35 * 75 DIV + 88 ELSE + NULLIF ( + 44, + 10 ) + - + 17 + - 6 DIV + 84 END col1
----
1
-108

skipif mysql # not compatible
query II rowsort label-9595
SELECT ALL COUNT ( * ), 4 * - CASE + 39 WHEN + ( 92 ) THEN 35 * 75 / + 88 ELSE + NULLIF ( + 44, + 10 ) + - + 17 + - 6 / + 84 END col1
----
1
-108

query I rowsort
SELECT 44 * - - 35 + - 4 * 54
----
1324

query I rowsort
SELECT - ( + 36 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT + CAST( + 7 AS SIGNED ) + - - 14 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9598
SELECT + CAST ( + 7 AS INTEGER ) + - - 14 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT MIN( DISTINCT 86 ) col1
----
86

skipif mysql # not compatible
query I rowsort label-9599
SELECT MIN ( DISTINCT 86 ) col1
----
86

query I rowsort
SELECT ALL 60 * - - 70
----
4200

query I rowsort
SELECT + 72 * 30 * - 13 AS col0
----
-28080

query I rowsort
SELECT ALL + 60 - + 74
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT + + 54 * MAX( DISTINCT + - 59 ) + - - 62
----
-3124

skipif mysql # not compatible
query I rowsort label-9603
SELECT + + 54 * MAX ( DISTINCT + - 59 ) + - - 62
----
-3124

query I rowsort
SELECT - - 49 * 64 col1
----
3136

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9605
SELECT ALL COUNT( * ), - 76 DIV + + 73 + + + COALESCE ( - 17, 70 ) DIV ( - 83 ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-9605
SELECT ALL COUNT ( * ), - 76 / + + 73 + + + COALESCE ( - 17, 70 ) / ( - 83 ) AS col2
----
1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9606
SELECT ALL CAST( + - 57 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL CAST ( + - 57 AS INTEGER )
----
-57

query I rowsort
SELECT + 41 + + + 9 AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9608
SELECT - + CAST( - 28 AS SIGNED ), + COUNT( * ) * - - 98 AS col1
----
28
98

skipif mysql # not compatible
query II rowsort label-9608
SELECT - + CAST ( - 28 AS INTEGER ), + COUNT ( * ) * - - 98 AS col1
----
28
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9609
SELECT CASE 1 WHEN 95 THEN + + 4 / 20 + - ( + 24 ) + + + ( 28 ) WHEN - + AVG ( CAST( NULL AS SIGNED ) ) THEN + 30 * + 21 ELSE + 56 END
----
56

skipif mysql # not compatible
query I rowsort label-9609
SELECT CASE 1 WHEN 95 THEN + + 4 / 20 + - ( + 24 ) + + + ( 28 ) WHEN - + AVG ( CAST ( NULL AS INTEGER ) ) THEN + 30 * + 21 ELSE + 56 END
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT - 25 * - + COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-9610
SELECT - 25 * - + COUNT ( * ) AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9611
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - 27 + + NULLIF ( 21, + 54 / 41 - - 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 27 + + NULLIF ( 21, + 54 / 41 - - 7 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL + MAX( + 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL + MAX ( + 71 ) AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9613
SELECT ALL + COUNT( DISTINCT - + 59 ) DIV - 48 col1
----
0

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL + COUNT ( DISTINCT - + 59 ) / - 48 col1
----
0

query I rowsort
SELECT ALL + + 52 + - 43 AS col2
----
9

query I rowsort
SELECT DISTINCT + - 35 * - 13 AS col1
----
455

query II rowsort
SELECT 65 AS col2, 55
----
65
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9617
SELECT ALL - + 15 DIV + - ( 88 ) * - + COUNT( * ) + 91
----
91

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - + 15 / + - ( 88 ) * - + COUNT ( * ) + 91
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT - CAST( + 67 AS SIGNED ) * 51 AS col2
----
-3417

skipif mysql # not compatible
query I rowsort label-9618
SELECT - CAST ( + 67 AS INTEGER ) * 51 AS col2
----
-3417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9619
SELECT CAST( + 91 AS SIGNED ) AS col1, MAX( DISTINCT + 28 ) * + + 55 / - CASE + 85 WHEN 21 + - + SUM( CAST( - + 14 AS SIGNED ) ) - CAST( NULL AS SIGNED ) + + NULLIF ( 20, - 33 ) THEN NULL WHEN 97 THEN - COUNT( ALL - 44 ) ELSE NULL END
----
91
NULL

skipif mysql # not compatible
query II rowsort label-9619
SELECT CAST ( + 91 AS INTEGER ) AS col1, MAX ( DISTINCT + 28 ) * + + 55 / - CASE + 85 WHEN 21 + - + SUM ( CAST ( - + 14 AS INTEGER ) ) - CAST ( NULL AS INTEGER ) + + NULLIF ( 20, - 33 ) THEN NULL WHEN 97 THEN - COUNT ( ALL - 44 ) ELSE NULL END
----
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9620
SELECT ALL - ( - 8 ) / + 46 * AVG ( ALL + - 5 ) + - - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL - ( - 8 ) / + 46 * AVG ( ALL + - 5 ) + - - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT COUNT( * ) * + 93 - + 46 + COALESCE ( + SUM( DISTINCT + 70 ), + 97, - 87 * 75 * + COUNT( * ) ) * + 51 * 96 * - 31 * + COUNT( * ) + - 42 * - + COUNT( * ) AS col1
----
-10624231

skipif mysql # not compatible
query I rowsort label-9621
SELECT COUNT ( * ) * + 93 - + 46 + COALESCE ( + SUM ( DISTINCT + 70 ), + 97, - 87 * 75 * + COUNT ( * ) ) * + 51 * 96 * - 31 * + COUNT ( * ) + - 42 * - + COUNT ( * ) AS col1
----
-10624231

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9622
SELECT CAST( + 71 AS SIGNED ), - 32 AS col1
----
71
-32

skipif mysql # not compatible
query II rowsort label-9622
SELECT CAST ( + 71 AS INTEGER ), - 32 AS col1
----
71
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT + SUM( ALL - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-9623
SELECT + SUM ( ALL - 27 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9624
SELECT DISTINCT 2 DIV + 76 + + CAST( + 31 AS SIGNED ) * 17
----
527

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT 2 / + 76 + + CAST ( + 31 AS INTEGER ) * 17
----
527

query I rowsort
SELECT DISTINCT + 41 col2
----
41

query I rowsort
SELECT ALL 56 + ( + + 65 )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT DISTINCT COUNT( * ) + - 57 + + - 58 * 80 AS col0
----
-4696

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT COUNT ( * ) + - 57 + + - 58 * 80 AS col0
----
-4696

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT CASE + + COUNT( * ) WHEN 75 THEN - 73 END * - 27 * 8 + + - 53 * + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9628
SELECT CASE + + COUNT ( * ) WHEN 75 THEN - 73 END * - 27 * 8 + + - 53 * + 88 AS col1
----
NULL

query II rowsort
SELECT 60 * - + 77 AS col0, - 52 AS col1
----
-4620
-52

query I rowsort
SELECT DISTINCT + 67 * - 49
----
-3283

query I rowsort
SELECT DISTINCT 55 - 59 * + + 41 AS col0
----
-2364

query I rowsort
SELECT ALL 90 - + 91
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT ALL + 49 * COUNT( * ) * ( - 83 ) AS col2
----
-4067

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL + 49 * COUNT ( * ) * ( - 83 ) AS col2
----
-4067

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT DISTINCT - 95 - - - MIN( ALL - 51 ) + 7 + COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT - 95 - - - MIN ( ALL - 51 ) + 7 + COUNT ( * ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT DISTINCT 1 - + - MAX( DISTINCT - - 19 )
----
20

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT 1 - + - MAX ( DISTINCT - - 19 )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9636
SELECT + 3 DIV - - ( 29 )
----
0

skipif mysql # not compatible
query I rowsort label-9636
SELECT + 3 / - - ( 29 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9637
SELECT DISTINCT 42 DIV + + 19 col2, + 23 + - 16 AS col2
----
2
7

skipif mysql # not compatible
query II rowsort label-9637
SELECT DISTINCT 42 / + + 19 col2, + 23 + - 16 AS col2
----
2
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9638
SELECT ALL - NULLIF ( 37, 80 ) * + COUNT( * ) + COUNT( * ) AS col0, 65 AS col1
----
-36
65

skipif mysql # not compatible
query II rowsort label-9638
SELECT ALL - NULLIF ( 37, 80 ) * + COUNT ( * ) + COUNT ( * ) AS col0, 65 AS col1
----
-36
65

query I rowsort
SELECT - 30 + - 88 AS col1
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9640
SELECT COUNT( * ) DIV 63 AS col1, + 68
----
0
68

skipif mysql # not compatible
query II rowsort label-9640
SELECT COUNT ( * ) / 63 AS col1, + 68
----
0
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9641
SELECT DISTINCT + 12 + 87 DIV - 48 + 27 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT + 12 + 87 / - 48 + 27 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT - MIN( + 62 ) * 47 - - - COUNT( DISTINCT + - 16 )
----
-2915

skipif mysql # not compatible
query I rowsort label-9642
SELECT - MIN ( + 62 ) * 47 - - - COUNT ( DISTINCT + - 16 )
----
-2915

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT + + COUNT( * ) + + ( - 0 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT + + COUNT ( * ) + + ( - 0 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9644
SELECT DISTINCT + 21 * + - 66 AS col2, COUNT( * ) DIV 21
----
-1386
0

skipif mysql # not compatible
query II rowsort label-9644
SELECT DISTINCT + 21 * + - 66 AS col2, COUNT ( * ) / 21
----
-1386
0

query I rowsort
SELECT ALL - 57 + + - ( + 67 )
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT + COUNT( + COALESCE ( + + 76, + 80, + + 87 + - 3 ) ) - + - 8 + 40 * 93
----
3729

skipif mysql # not compatible
query I rowsort label-9646
SELECT + COUNT ( + COALESCE ( + + 76, + 80, + + 87 + - 3 ) ) - + - 8 + 40 * 93
----
3729

query I rowsort
SELECT ALL - 88 * + ( CASE - 4 WHEN 26 THEN + 65 WHEN + ( + 96 ) - + 16 THEN - 88 WHEN - - 34 THEN NULL END ) + - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL 72 + - NULLIF ( - 55, + - COUNT( * ) ) col2
----
127

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL 72 + - NULLIF ( - 55, + - COUNT ( * ) ) col2
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-9649
SELECT 52 - 99 * + 20 AS col1, - CASE + + 35 WHEN - MAX( 7 ) * + 52 THEN NULL ELSE 37 * + + MIN( DISTINCT 44 ) END AS col1
----
-1928
-1628

skipif mysql # not compatible
query II rowsort label-9649
SELECT 52 - 99 * + 20 AS col1, - CASE + + 35 WHEN - MAX ( 7 ) * + 52 THEN NULL ELSE 37 * + + MIN ( DISTINCT 44 ) END AS col1
----
-1928
-1628

query II rowsort
SELECT 41 * - 24, 24 col1
----
-984
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9651
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col1, 34
----
0
34

skipif mysql # not compatible
query II rowsort label-9651
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col1, 34
----
0
34

query I rowsort
SELECT ALL - 52 * + 28
----
-1456

query I rowsort
SELECT ALL - 43 + - 11 AS col0
----
-54

query I rowsort
SELECT 70 - - 49
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9655
SELECT DISTINCT 92 / + CASE + 51 WHEN - + 94 * 33 + - + 90 * 81 / 78 * + 73 THEN 76 * - - 33 + + 42 ELSE 67 + CASE - MAX( DISTINCT 51 ) WHEN ( - CAST( NULL AS DECIMAL ) ) THEN + 15 END + 75 * COALESCE ( - 79, - COUNT( * ), - CAST( NULL AS SIGNED ) * - 24 * - 78 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT 92 / + CASE + 51 WHEN - + 94 * 33 + - + 90 * 81 / 78 * + 73 THEN 76 * - - 33 + + 42 ELSE 67 + CASE - MAX ( DISTINCT 51 ) WHEN ( - CAST ( NULL AS REAL ) ) THEN + 15 END + 75 * COALESCE ( - 79, - COUNT ( * ), - CAST ( NULL AS INTEGER ) * - 24 * - 78 ) END
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - + 57, + 5 ) AS col2
----
57

query I rowsort
SELECT ALL - 53 * - 59
----
3127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9658
SELECT 60 * - - CAST( 24 AS SIGNED )
----
1440

skipif mysql # not compatible
query I rowsort label-9658
SELECT 60 * - - CAST ( 24 AS INTEGER )
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT 72 * + - COUNT( * ) * 99 * - - 72 AS col2
----
-513216

skipif mysql # not compatible
query I rowsort label-9659
SELECT 72 * + - COUNT ( * ) * 99 * - - 72 AS col2
----
-513216

query I rowsort
SELECT 8 * + + 28 AS col0
----
224

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9661
SELECT 81 * + 92 * + 82 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT 81 * + 92 * + 82 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 14 - 30 AS col0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT ALL - CAST( - 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL - CAST ( - 17 AS INTEGER )
----
17

query I rowsort
SELECT 88 + + COALESCE ( - + 94, 59, 93 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9665
SELECT ALL + 81 * - ( - 15 ) * + COALESCE ( - COUNT( * ), 21 DIV + - 75 + ( - - 34 ) DIV - 45 * 86, - 5 * + SUM( DISTINCT 65 ) + - CASE - 42 WHEN 9 THEN NULL WHEN + 28 + MAX( + 92 ) + - CAST( NULL AS SIGNED ) THEN 43 * + ( + - 45 ) WHEN 62 * + 52 * - - 71 THEN NULL END - + 0 ) + 37 + - 85 * - 42 * COUNT( DISTINCT + + 41 )
----
2392

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL + 81 * - ( - 15 ) * + COALESCE ( - COUNT ( * ), 21 / + - 75 + ( - - 34 ) / - 45 * 86, - 5 * + SUM ( DISTINCT 65 ) + - CASE - 42 WHEN 9 THEN NULL WHEN + 28 + MAX ( + 92 ) + - CAST ( NULL AS INTEGER ) THEN 43 * + ( + - 45 ) WHEN 62 * + 52 * - - 71 THEN NULL END - + 0 ) + 37 + - 85 * - 42 * COUNT ( DISTINCT + + 41 )
----
2392

query I rowsort
SELECT 95 * - 49 AS col1
----
-4655

query I rowsort
SELECT 98 + + 41 + 16 col1
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9668
SELECT ALL 66 DIV + - MIN( ALL + - 79 ) * - - 73
----
0

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL 66 / + - MIN ( ALL + - 79 ) * - - 73
----
0

query I rowsort
SELECT 4 + + + 47
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9670
SELECT ALL - COUNT( * ) AS col2, CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9670
SELECT ALL - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9671
SELECT DISTINCT - CAST( 42 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT - CAST ( 42 AS INTEGER )
----
-42

query I rowsort
SELECT + 92 * - 35
----
-3220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT - 61 + + + CAST( NULL AS SIGNED ) * - - 13 + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9673
SELECT - 61 + + + CAST ( NULL AS INTEGER ) * - - 13 + 44 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9674
SELECT ALL - COUNT( * ) * - COALESCE ( - 65, + 7 + - NULLIF ( ( - 0 ), + + COUNT( * ) - - 23 + - CAST( NULL AS SIGNED ) * - 20 + - + 89 ), - - 87 DIV 55 DIV COUNT( * ) + + ( - - 85 ) * 79 + 57 - + - 81 + 9 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL - COUNT ( * ) * - COALESCE ( - 65, + 7 + - NULLIF ( ( - 0 ), + + COUNT ( * ) - - 23 + - CAST ( NULL AS INTEGER ) * - 20 + - + 89 ), - - 87 / 55 / COUNT ( * ) + + ( - - 85 ) * 79 + 57 - + - 81 + 9 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT DISTINCT + NULLIF ( + + COUNT( DISTINCT + - 49 ), + 70 / MIN( - NULLIF ( + + 39, - + ( + 9 ) ) ) * + + COUNT( * ) - - 22 )
----
1

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT + NULLIF ( + + COUNT ( DISTINCT + - 49 ), + 70 / MIN ( - NULLIF ( + + 39, - + ( + 9 ) ) ) * + + COUNT ( * ) - - 22 )
----
1

query II rowsort
SELECT - - 87, + 13 AS col0
----
87
13

query II rowsort
SELECT - 84 + - 89 * 59, ( 82 ) col2
----
-5335
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9678
SELECT ALL COUNT( + - 75 ) + + 82 + CASE NULLIF ( + CAST( CAST( - ( - 6 ) AS SIGNED ) AS SIGNED ), - 37 ) WHEN - - 81 THEN NULL ELSE 25 - SUM( DISTINCT + 77 ) - - 80 END AS col2
----
111

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL COUNT ( + - 75 ) + + 82 + CASE NULLIF ( + CAST ( CAST ( - ( - 6 ) AS INTEGER ) AS INTEGER ), - 37 ) WHEN - - 81 THEN NULL ELSE 25 - SUM ( DISTINCT + 77 ) - - 80 END AS col2
----
111

query I rowsort
SELECT - 28 * - 55 AS col2
----
1540

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9680
SELECT ALL - + CAST( - - 31 AS SIGNED ) + 73, 27 AS col1
----
42
27

skipif mysql # not compatible
query II rowsort label-9680
SELECT ALL - + CAST ( - - 31 AS INTEGER ) + 73, 27 AS col1
----
42
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9681
SELECT COUNT( ALL - + CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9681
SELECT COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT DISTINCT 76 + - 9 * + 26 AS col0
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL - COALESCE ( CASE - 99 WHEN + - COALESCE ( + + COUNT( * ), - 82 + + 4 ) THEN + + 49 WHEN - - 95 * - + 22 THEN NULL END, - + 58 ) + 66 + - 29
----
95

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - COALESCE ( CASE - 99 WHEN + - COALESCE ( + + COUNT ( * ), - 82 + + 4 ) THEN + + 49 WHEN - - 95 * - + 22 THEN NULL END, - + 58 ) + 66 + - 29
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9684
SELECT CASE + MIN( ALL - 39 ) WHEN + COALESCE ( + CAST( NULL AS SIGNED ), + 90 ) THEN NULL WHEN - 89 THEN NULL ELSE 44 END col2, 84 AS col0
----
44
84

skipif mysql # not compatible
query II rowsort label-9684
SELECT CASE + MIN ( ALL - 39 ) WHEN + COALESCE ( + CAST ( NULL AS INTEGER ), + 90 ) THEN NULL WHEN - 89 THEN NULL ELSE 44 END col2, 84 AS col0
----
44
84

query I rowsort
SELECT ALL + 28 + + 46 AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9686
SELECT CAST( - 66 AS SIGNED ) + + + 66, + 26 AS col1
----
0
26

skipif mysql # not compatible
query II rowsort label-9686
SELECT CAST ( - 66 AS INTEGER ) + + + 66, + 26 AS col1
----
0
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9687
SELECT ALL 3 / + 96 + + CASE - 35 WHEN - 13 * - + AVG ( ALL + 81 ) THEN NULL WHEN + 21 + - 32 + - 48 / - 43 * - - 31 THEN + + 75 * + + COALESCE ( + - 52, + + COUNT( * ) + - 31 + + 68 / - ( + + 87 ) * - - 90, + COUNT( * ) ) - + - 7 + - ( - CAST( + - COUNT( * ) AS SIGNED ) ) ELSE NULL END + - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL 3 / + 96 + + CASE - 35 WHEN - 13 * - + AVG ( ALL + 81 ) THEN NULL WHEN + 21 + - 32 + - 48 / - 43 * - - 31 THEN + + 75 * + + COALESCE ( + - 52, + + COUNT ( * ) + - 31 + + 68 / - ( + + 87 ) * - - 90, + COUNT ( * ) ) - + - 7 + - ( - CAST ( + - COUNT ( * ) AS INTEGER ) ) ELSE NULL END + - - 81
----
NULL

query I rowsort
SELECT DISTINCT 43 + - 66
----
-23

query I rowsort
SELECT ALL 61 + + + 73
----
134

query I rowsort
SELECT 36 * + 84 AS col0
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT ALL + CASE WHEN NOT NULL > NULL THEN - NULLIF ( - 54, - COUNT( * ) * + 97 + + 49 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL + CASE WHEN NOT NULL > NULL THEN - NULLIF ( - 54, - COUNT ( * ) * + 97 + + 49 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT ( + COUNT( * ) ) + - + 52 + - 69 * 85
----
-5916

skipif mysql # not compatible
query I rowsort label-9692
SELECT ( + COUNT ( * ) ) + - + 52 + - 69 * 85
----
-5916

query I rowsort
SELECT ALL - 6 + + + 39
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT + COUNT( + - 81 ) * + 44 * + 39 * + 11
----
18876

skipif mysql # not compatible
query I rowsort label-9694
SELECT + COUNT ( + - 81 ) * + 44 * + 39 * + 11
----
18876

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9695
SELECT ALL 51 * + SUM( DISTINCT + ( - 48 ) ), 87 + + 90 DIV - 86 + 80 * - + MIN( ALL - 31 ) AS col0
----
-2448
2566

skipif mysql # not compatible
query II rowsort label-9695
SELECT ALL 51 * + SUM ( DISTINCT + ( - 48 ) ), 87 + + 90 / - 86 + 80 * - + MIN ( ALL - 31 ) AS col0
----
-2448
2566

query I rowsort
SELECT + 62 + - 85
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT - MIN( - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-9697
SELECT - MIN ( - 97 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT + 25 * + 37 + ( + 63 ) + CAST( NULL AS SIGNED ) * + AVG ( DISTINCT 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT + 25 * + 37 + ( + 63 ) + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT 27 ) AS col0
----
NULL

query I rowsort
SELECT + 9 * 65 * + 25
----
14625

onlyif mysql # DIV for integer division: 
query I rowsort label-9700
SELECT 85 DIV 3 + - 69 DIV - + 48
----
29

skipif mysql # not compatible
query I rowsort label-9700
SELECT 85 / 3 + - 69 / - + 48
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT CASE - + ( + 4 ) WHEN - + 81 + 11 * - + 24 / - - COUNT( * ) THEN - + 72 * + 51 ELSE - 20 + - 4 END
----
-24

skipif mysql # not compatible
query I rowsort label-9701
SELECT CASE - + ( + 4 ) WHEN - + 81 + 11 * - + 24 / - - COUNT ( * ) THEN - + 72 * + 51 ELSE - 20 + - 4 END
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-9702
SELECT - 74 DIV + 44 + 52 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9702
SELECT - 74 / + 44 + 52 AS col0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9703
SELECT + COALESCE ( + COUNT( ALL - COALESCE ( - 54, + 95 ) ), 62, 46 ) AS col0, - 33
----
1
-33

skipif mysql # not compatible
query II rowsort label-9703
SELECT + COALESCE ( + COUNT ( ALL - COALESCE ( - 54, + 95 ) ), 62, 46 ) AS col0, - 33
----
1
-33

query I rowsort
SELECT + ( 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT - 95 * - - NULLIF ( - + COUNT( - NULLIF ( + 98, + 10 ) ), + 96 + + 39 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT - 95 * - - NULLIF ( - + COUNT ( - NULLIF ( + 98, + 10 ) ), + 96 + + 39 ) AS col0
----
95

query I rowsort
SELECT - 31 * + - 96
----
2976

query I rowsort
SELECT NULLIF ( + 62, 11 ) AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9708
SELECT COALESCE ( - + 52, - + MIN( - 98 ) * 92, + + ( + - NULLIF ( - 4, + 81 ) ) + 34 DIV - 14 )
----
-52

skipif mysql # not compatible
query I rowsort label-9708
SELECT COALESCE ( - + 52, - + MIN ( - 98 ) * 92, + + ( + - NULLIF ( - 4, + 81 ) ) + 34 / - 14 )
----
-52

query II rowsort
SELECT - 1 * + 63 AS col0, 39 AS col0
----
-63
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9710
SELECT CAST( + 58 AS SIGNED ) AS col0, 3 * CAST( NULL AS SIGNED )
----
58
NULL

skipif mysql # not compatible
query II rowsort label-9710
SELECT CAST ( + 58 AS INTEGER ) AS col0, 3 * CAST ( NULL AS INTEGER )
----
58
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9711
SELECT - - 17 / + + CAST( NULL AS DECIMAL ), 31 + - 98 * 98 + 95 + 56 AS col2
----
NULL
-9422

skipif mysql # not compatible
query II rowsort label-9711
SELECT - - 17 / + + CAST ( NULL AS REAL ), 31 + - 98 * 98 + 95 + 56 AS col2
----
NULL
-9422

query I rowsort
SELECT DISTINCT + 61 AS col2
----
61

query II rowsort
SELECT - + 43 * + + 81 * - 16 * + + 65, - 13 AS col0
----
3622320
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9714
SELECT ALL 58 * - ( - 38 ) * + 30 + - 59 + + + CAST( NULL AS SIGNED ) + NULLIF ( - 31, + - AVG ( DISTINCT + - 27 ) ) * - 63 + CAST( CAST( + 61 AS SIGNED ) AS SIGNED ) AS col0, + CASE + - ( COUNT( + - 29 ) ) WHEN + 79 THEN NULL WHEN - + 2 THEN + - 37 ELSE 3 END
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9714
SELECT ALL 58 * - ( - 38 ) * + 30 + - 59 + + + CAST ( NULL AS INTEGER ) + NULLIF ( - 31, + - AVG ( DISTINCT + - 27 ) ) * - 63 + CAST ( CAST ( + 61 AS INTEGER ) AS INTEGER ) AS col0, + CASE + - ( COUNT ( + - 29 ) ) WHEN + 79 THEN NULL WHEN - + 2 THEN + - 37 ELSE 3 END
----
NULL
3

query I rowsort
SELECT ALL + 62 + + 68 - + 12 AS col1
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9716
SELECT DISTINCT + CAST( - 34 AS SIGNED ) + - + 35
----
-69

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT + CAST ( - 34 AS INTEGER ) + - + 35
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT + MIN( ALL 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-9717
SELECT + MIN ( ALL 28 ) AS col1
----
28

query I rowsort
SELECT ALL - 71 + 88 + - 49
----
-32

query I rowsort
SELECT - + 91 + - + 86 + - + 42 + + 63 * - + 26 * + - 70
----
114441

query I rowsort
SELECT - - 16 + + + 23 * - + 13 AS col2
----
-283

query I rowsort
SELECT DISTINCT CASE + 98 WHEN NULLIF ( 78, + 37 ) * 88 + + - 65 + + 99 THEN NULL WHEN + 88 THEN + + 85 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL + - 87 - - 65 AS col1, ( + + 54 ) AS col2
----
-22
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9723
SELECT ALL - COUNT( + 20 ) - - SUM( DISTINCT - + 11 ) * 21 DIV + + 93 col1
----
-3

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL - COUNT ( + 20 ) - - SUM ( DISTINCT - + 11 ) * 21 / + + 93 col1
----
-3

query II rowsort
SELECT ALL - - 74 * 11 * - + 60 * - - 28 AS col1, - 50 AS col1
----
-1367520
-50

query I rowsort
SELECT + 21 + + 38 col1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT ALL 3 - - 39 + - 65 DIV 61 * - 80
----
122

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL 3 - - 39 + - 65 / 61 * - 80
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT - COUNT( * ) * - - 55 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9727
SELECT - COUNT ( * ) * - - 55 AS col0
----
-55

query I rowsort
SELECT + ( + 88 ) * 83 col1
----
7304

query II rowsort
SELECT - ( - ( - 63 ) ), 85 + + 14 AS col0
----
-63
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9730
SELECT + 68 DIV 48 col2
----
1

skipif mysql # not compatible
query I rowsort label-9730
SELECT + 68 / 48 col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9731
SELECT ALL COUNT( ALL 70 ) * - 53 col1, + NULLIF ( + 14, + COALESCE ( + ( + 26 ), - COUNT( ALL 8 ), - 83 ) * NULLIF ( NULLIF ( COUNT( * ), - 99 ), - MIN( DISTINCT - + 76 ) ) )
----
-53
14

skipif mysql # not compatible
query II rowsort label-9731
SELECT ALL COUNT ( ALL 70 ) * - 53 col1, + NULLIF ( + 14, + COALESCE ( + ( + 26 ), - COUNT ( ALL 8 ), - 83 ) * NULLIF ( NULLIF ( COUNT ( * ), - 99 ), - MIN ( DISTINCT - + 76 ) ) )
----
-53
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9732
SELECT DISTINCT 2 DIV 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT 2 / 83 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT ALL 67 * COUNT( * ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL 67 * COUNT ( * ) AS col2
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-9734
SELECT + 32 DIV 86 * 71 AS col2, ( + 53 ) AS col2
----
0
53

skipif mysql # not compatible
query II rowsort label-9734
SELECT + 32 / 86 * 71 AS col2, ( + 53 ) AS col2
----
0
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT ALL COUNT( * ) * - 4 * 87
----
-348

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL COUNT ( * ) * - 4 * 87
----
-348

query I rowsort
SELECT DISTINCT 96 * 52
----
4992

onlyif mysql # aggregate syntax: 
query II rowsort label-9737
SELECT 90 * 57 * 24 * + 60 + COALESCE ( - 17, NULLIF ( 29, + + COUNT( * ) ) ) * - 94 AS col1, - 97
----
7388798
-97

skipif mysql # not compatible
query II rowsort label-9737
SELECT 90 * 57 * 24 * + 60 + COALESCE ( - 17, NULLIF ( 29, + + COUNT ( * ) ) ) * - 94 AS col1, - 97
----
7388798
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9738
SELECT CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9738
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT ( - + 10 ) AS col1
----
-10

query I rowsort
SELECT - 82 * + 18 * - - 19 + + 0 AS col1
----
-28044

query I rowsort
SELECT ( + + 12 ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9742
SELECT 55 DIV - ( + ( - 86 ) ) + 4
----
4

skipif mysql # not compatible
query I rowsort label-9742
SELECT 55 / - ( + ( - 86 ) ) + 4
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT NULLIF ( + 79, + - 1 ) * - 76 - 5 - - COUNT( * )
----
-6008

skipif mysql # not compatible
query I rowsort label-9743
SELECT NULLIF ( + 79, + - 1 ) * - 76 - 5 - - COUNT ( * )
----
-6008

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL + NULLIF ( COUNT( * ), - 65 * - 21 * + COALESCE ( - 43, - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL + NULLIF ( COUNT ( * ), - 65 * - 21 * + COALESCE ( - 43, - COUNT ( * ) ) )
----
1

query I rowsort
SELECT ( + 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL COUNT( * ) * 16 + 0 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL COUNT ( * ) * 16 + 0 AS col1
----
16

query I rowsort
SELECT DISTINCT + - 93 * 3 AS col0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT DISTINCT + - 4 * + - 78 * - 33 + + - COUNT( * ) + + - COUNT( * ) + - 90 + + 30 + + 89 + 23
----
-10246

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT + - 4 * + - 78 * - 33 + + - COUNT ( * ) + + - COUNT ( * ) + - 90 + + 30 + + 89 + 23
----
-10246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9749
SELECT + ( ( - COALESCE ( + 44, 24 DIV 49 + - 77, - MAX( ( + - 95 ) ) * + 49 ) ) ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9749
SELECT + ( ( - COALESCE ( + 44, 24 / 49 + - 77, - MAX ( ( + - 95 ) ) * + 49 ) ) ) AS col1
----
-44

query I rowsort
SELECT - + 6 + - 78
----
-84

query I rowsort
SELECT + + 95 * + 64
----
6080

query I rowsort
SELECT - - NULLIF ( + 38, - 32 ) + + + 82 col0
----
120

query I rowsort
SELECT + + 73 AS col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9754
SELECT - + 45 DIV - 25
----
1

skipif mysql # not compatible
query I rowsort label-9754
SELECT - + 45 / - 25
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT DISTINCT MAX( + 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT MAX ( + 6 ) AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9756
SELECT - 49 DIV - + 73
----
0

skipif mysql # not compatible
query I rowsort label-9756
SELECT - 49 / - + 73
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( + 33, 41 )
----
-33

query I rowsort
SELECT - ( ( - + 66 ) )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9759
SELECT 72 - - - 81 / - CAST( NULL AS SIGNED ) + 28 - + 33 + - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9759
SELECT 72 - - - 81 / - CAST ( NULL AS INTEGER ) + 28 - + 33 + - 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT COUNT( * ) * + 70 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9760
SELECT COUNT ( * ) * + 70 AS col1
----
70

query I rowsort
SELECT 79 + 98
----
177

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9762
SELECT COUNT( * ) - 66 AS col2, CAST( NULL AS DECIMAL ) AS col0
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-9762
SELECT COUNT ( * ) - 66 AS col2, CAST ( NULL AS REAL ) AS col0
----
-65
NULL

query III rowsort
SELECT - 14 AS col0, 15 AS col2, - 83 AS col2
----
-14
15
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT 98 * + 92 * - COUNT( * ) AS col1
----
-9016

skipif mysql # not compatible
query I rowsort label-9764
SELECT 98 * + 92 * - COUNT ( * ) AS col1
----
-9016

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT ALL + 22 * - COUNT( * ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL + 22 * - COUNT ( * ) col1
----
-22

query I rowsort
SELECT DISTINCT 73 col2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9767
SELECT 88 DIV 72
----
1

skipif mysql # not compatible
query I rowsort label-9767
SELECT 88 / 72
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT ALL - COUNT( - 91 )
----
-1

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL - COUNT ( - 91 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT 50 DIV - 28 + + 2
----
1

skipif mysql # not compatible
query I rowsort label-9769
SELECT 50 / - 28 + + 2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9770
SELECT 75 AS col2, - 30 + COUNT( * ) + - - 52 AS col0
----
75
23

skipif mysql # not compatible
query II rowsort label-9770
SELECT 75 AS col2, - 30 + COUNT ( * ) + - - 52 AS col0
----
75
23

query I rowsort
SELECT ALL ( + + 47 ) + + 25 + - 79 AS col1
----
-7

query I rowsort
SELECT 23 * + + 62 AS col2
----
1426

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT ALL - 15 + - MAX( ALL 64 ) + 74 * - - 53 AS col2
----
3843

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL - 15 + - MAX ( ALL 64 ) + 74 * - - 53 AS col2
----
3843

query I rowsort
SELECT ALL + 4 + - - 54
----
58

query II rowsort
SELECT 96 AS col2, 20 AS col1
----
96
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT + NULLIF ( - - 88, 62 + - NULLIF ( - - 80, + 86 * - COUNT( * ) ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9776
SELECT + NULLIF ( - - 88, 62 + - NULLIF ( - - 80, + 86 * - COUNT ( * ) ) ) AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9777
SELECT 42 - - - 36 * 62 DIV - COUNT( * ) + + 63
----
2337

skipif mysql # not compatible
query I rowsort label-9777
SELECT 42 - - - 36 * 62 / - COUNT ( * ) + + 63
----
2337

query I rowsort
SELECT ALL - - 27 AS col1
----
27

query I rowsort
SELECT NULLIF ( - - 23, + 44 - + + 37 / - 88 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9780
SELECT + 44, - COUNT( * ) + - 25 col1
----
44
-26

skipif mysql # not compatible
query II rowsort label-9780
SELECT + 44, - COUNT ( * ) + - 25 col1
----
44
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9781
SELECT DISTINCT - + AVG ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT - + AVG ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9782
SELECT DISTINCT - + 45, - COUNT( - + 93 ) - + COUNT( * ) - COUNT( * ) * 73 AS col0
----
-45
-75

skipif mysql # not compatible
query II rowsort label-9782
SELECT DISTINCT - + 45, - COUNT ( - + 93 ) - + COUNT ( * ) - COUNT ( * ) * 73 AS col0
----
-45
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9783
SELECT ALL 50 - + - 46 DIV - MAX( DISTINCT + + 57 )
----
50

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL 50 - + - 46 / - MAX ( DISTINCT + + 57 )
----
50

query I rowsort
SELECT + 19 * + 88 AS col1
----
1672

query II rowsort
SELECT ALL - + 89 AS col0, - 82
----
-89
-82

query I rowsort
SELECT ALL - - 93
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9787
SELECT DISTINCT + + COUNT( * ) * + CAST( 95 AS SIGNED ) * CAST( NULL AS SIGNED ) * + 8 + + + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT + + COUNT ( * ) * + CAST ( 95 AS INTEGER ) * CAST ( NULL AS INTEGER ) * + 8 + + + 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9788
SELECT ALL + 39 * 68 * - MAX( 9 ), - 50 col1
----
-23868
-50

skipif mysql # not compatible
query II rowsort label-9788
SELECT ALL + 39 * 68 * - MAX ( 9 ), - 50 col1
----
-23868
-50

query I rowsort
SELECT + 46 - - + 29
----
75

query II rowsort
SELECT ALL - 28 * CASE - 20 WHEN - - 5 + + + 56 * - 63 THEN - - 84 ELSE NULL END, 27 AS col2
----
NULL
27

query I rowsort
SELECT + 86 * 3 + + 57
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT - + COALESCE ( + COUNT( * ), - 10, + - 26 * - 18 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9792
SELECT - + COALESCE ( + COUNT ( * ), - 10, + - 26 * - 18 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT DISTINCT + 95 * + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT + 95 * + COUNT ( * )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT 73 + 50 * - + 5 / 10 / - COUNT( * ) + + + SUM( ALL - - CAST( NULL AS SIGNED ) ) + + COALESCE ( 52, 88 * - 95 + - COUNT( * ) * - 70 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT 73 + 50 * - + 5 / 10 / - COUNT ( * ) + + + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) + + COALESCE ( 52, 88 * - 95 + - COUNT ( * ) * - 70 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 27 * 28
----
756

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9796
SELECT ALL - MIN( ALL + 89 ) / + - CAST( NULL AS DECIMAL ) + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL - MIN ( ALL + 89 ) / + - CAST ( NULL AS REAL ) + - 18
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9797
SELECT 98 DIV - 73 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9797
SELECT 98 / - 73 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL 62 + - COUNT( - ( - COALESCE ( + + 88, + - 99 / + 46 * 3 / + + 45 + 77 + - 1 ) ) ) * + 69 + - 56 * 69
----
-3871

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL 62 + - COUNT ( - ( - COALESCE ( + + 88, + - 99 / + 46 * 3 / + + 45 + 77 + - 1 ) ) ) * + 69 + - 56 * 69
----
-3871

query I rowsort
SELECT DISTINCT 21 + + 8
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9800
SELECT DISTINCT - ( + - MAX( 64 ) ) DIV + + 9 + - - 93 + - 72 + + 3 + COUNT( * ) + + + 38 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT - ( + - MAX ( 64 ) ) / + + 9 + - - 93 + - 72 + + 3 + COUNT ( * ) + + + 38 AS col1
----
70

query I rowsort
SELECT 17 + + + 52 + + - 3
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9802
SELECT ALL - 63 / + + CASE - - 10 WHEN - - 99 THEN + CAST( NULL AS DECIMAL ) WHEN - 31 / + 12 + - ( - 35 ) THEN - 38 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL - 63 / + + CASE - - 10 WHEN - - 99 THEN + CAST ( NULL AS REAL ) WHEN - 31 / + 12 + - ( - 35 ) THEN - 38 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL + 91 + + + 10 col2, + ( + 61 ) AS col2
----
101
61

query I rowsort
SELECT 4 - 33 AS col1
----
-29

query I rowsort
SELECT DISTINCT - 18 + - - 37 * + 17
----
611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9806
SELECT ALL + COUNT( * ) * - - 3 + - CAST( + 37 AS SIGNED ) + - 10
----
-44

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL + COUNT ( * ) * - - 3 + - CAST ( + 37 AS INTEGER ) + - 10
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL - MAX( + + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL - MAX ( + + 44 )
----
-44

query II rowsort
SELECT DISTINCT - 60 * 26 + 63, - 4 AS col0
----
-1497
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL - SUM( DISTINCT + 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL - SUM ( DISTINCT + 78 ) AS col2
----
-78

query I rowsort
SELECT - ( + 75 ) + - 26 + - 57
----
-158

query I rowsort
SELECT 79 * + - 47 + 67 * + 51
----
-296

query I rowsort
SELECT 78 * - 67 - + 65 * + + 87 + + 46 + 68 AS col1
----
-10767

query I rowsort
SELECT - 37 * - 87 + - - ( + - 28 ) AS col1
----
3191

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9814
SELECT - + 2 DIV + + 80 * - MAX( DISTINCT 3 ) + + - 55 * + + 88 * - 72 AS col1
----
348480

skipif mysql # not compatible
query I rowsort label-9814
SELECT - + 2 / + + 80 * - MAX ( DISTINCT 3 ) + + - 55 * + + 88 * - 72 AS col1
----
348480

query I rowsort
SELECT + - 87 AS col0
----
-87

query I rowsort
SELECT DISTINCT - + 60 AS col0
----
-60

onlyif mysql # DIV for integer division: 
query II rowsort label-9817
SELECT + + 12 DIV - 75, 31 + 49 + - 12 AS col2
----
0
68

skipif mysql # not compatible
query II rowsort label-9817
SELECT + + 12 / - 75, 31 + 49 + - 12 AS col2
----
0
68

query I rowsort
SELECT DISTINCT - 90 * 93 AS col2
----
-8370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9819
SELECT - 76 * - NULLIF ( + 68, COUNT( * ) ) * + + 52 + - CAST( + - 73 AS SIGNED ) / CAST( NULL AS SIGNED ) + 44 * + CAST( NULL AS DECIMAL ) + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9819
SELECT - 76 * - NULLIF ( + 68, COUNT ( * ) ) * + + 52 + - CAST ( + - 73 AS INTEGER ) / CAST ( NULL AS INTEGER ) + 44 * + CAST ( NULL AS REAL ) + - 68
----
NULL

query I rowsort
SELECT ALL ( - + 93 ) * - 37
----
3441

onlyif mysql # DIV for integer division: 
query I rowsort label-9821
SELECT - 70 DIV + ( - 18 )
----
3

skipif mysql # not compatible
query I rowsort label-9821
SELECT - 70 / + ( - 18 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9822
SELECT + 44 + + 43 - - 60 + + 17 DIV - 90 AS col0, CAST( + 39 AS SIGNED ) - - 42 * + COUNT( * )
----
147
81

skipif mysql # not compatible
query II rowsort label-9822
SELECT + 44 + + 43 - - 60 + + 17 / - 90 AS col0, CAST ( + 39 AS INTEGER ) - - 42 * + COUNT ( * )
----
147
81

query I rowsort
SELECT + 53 * + 22
----
1166

onlyif mysql # aggregate syntax: 
query II rowsort label-9824
SELECT ALL + - NULLIF ( + 12, - 44 ) AS col0, COUNT( - 58 ) AS col1
----
-12
1

skipif mysql # not compatible
query II rowsort label-9824
SELECT ALL + - NULLIF ( + 12, - 44 ) AS col0, COUNT ( - 58 ) AS col1
----
-12
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9825
SELECT + - 85 + + MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9825
SELECT + - 85 + + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 80 * + - CASE 35 WHEN 25 / - - 90 THEN NULL ELSE - 22 - 14 END col0
----
2880

query I rowsort
SELECT ALL 86 + - - 46 AS col1
----
132

query I rowsort
SELECT 76 col2
----
76

query I rowsort
SELECT DISTINCT 80 + - - ( + 96 )
----
176

query I rowsort
SELECT + 50 + NULLIF ( - - COALESCE ( - 92, - 75, - + 81 ), - 14 * - ( - 5 ) ) AS col0
----
-42

query I rowsort
SELECT DISTINCT 73 * + 39 AS col0
----
2847

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9832
SELECT - 85 * + 17 * + 93 DIV + CASE + ( COUNT( * ) ) WHEN 65 THEN NULL ELSE + COUNT( * ) * + - 11 + COALESCE ( 98, + 32 ) * - - 62 * 83 + + 54 + - + 5 + - 11 + - 43 END * 48 AS col2, ( + 26 )
----
0
26

skipif mysql # not compatible
query II rowsort label-9832
SELECT - 85 * + 17 * + 93 / + CASE + ( COUNT ( * ) ) WHEN 65 THEN NULL ELSE + COUNT ( * ) * + - 11 + COALESCE ( 98, + 32 ) * - - 62 * 83 + + 54 + - + 5 + - 11 + - 43 END * 48 AS col2, ( + 26 )
----
0
26

query I rowsort
SELECT ALL 8 + 48
----
56

query I rowsort
SELECT + 14 + - 20 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT + 49 * - COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9835
SELECT + 49 * - COUNT ( * ) AS col1
----
-49

query I rowsort
SELECT - ( - 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT ALL 72 * + - MAX( ALL - ( 29 ) )
----
2088

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL 72 * + - MAX ( ALL - ( 29 ) )
----
2088

query II rowsort
SELECT 0 AS col0, 12 AS col1
----
0
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT - MAX( - 20 ) + 90 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-9839
SELECT - MAX ( - 20 ) + 90 AS col2
----
110

query I rowsort
SELECT DISTINCT 91 col0
----
91

query I rowsort
SELECT ALL - 96 * 61 AS col2
----
-5856

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL COUNT( 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL COUNT ( 16 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT DISTINCT - COALESCE ( + 42, + + 40, + NULLIF ( ( - 79 ), 35 ), - - 70 ) DIV 47 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT - COALESCE ( + 42, + + 40, + NULLIF ( ( - 79 ), 35 ), - - 70 ) / 47 / 73 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9844
SELECT - 26 * + CAST( - 50 AS SIGNED )
----
1300

skipif mysql # not compatible
query I rowsort label-9844
SELECT - 26 * + CAST ( - 50 AS INTEGER )
----
1300

onlyif mysql # aggregate syntax: 
query II rowsort label-9845
SELECT + + COUNT( * ) AS col1, 71 AS col2
----
1
71

skipif mysql # not compatible
query II rowsort label-9845
SELECT + + COUNT ( * ) AS col1, 71 AS col2
----
1
71

query I rowsort
SELECT ALL + + 9 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT + - CAST( - - 35 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-9847
SELECT + - CAST ( - - 35 AS INTEGER )
----
-35

query I rowsort
SELECT ALL + + 48 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9849
SELECT + - 2 AS col2, + CAST( COUNT( * ) AS SIGNED ) * - + CAST( NULL AS DECIMAL ) + - COUNT( DISTINCT - - 22 ) + 60 col1
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-9849
SELECT + - 2 AS col2, + CAST ( COUNT ( * ) AS INTEGER ) * - + CAST ( NULL AS REAL ) + - COUNT ( DISTINCT - - 22 ) + 60 col1
----
-2
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9850
SELECT DISTINCT + + CASE 10 WHEN + 89 * CASE 96 WHEN 54 THEN - 3 * + - CASE WHEN NOT NULL < 58 THEN + ( - 90 ) ELSE 74 END * + COUNT( * ) + 61 / + + 98 / 87 / 41 + + + 38 WHEN + COUNT( * ) + - + 73 THEN - 42 END THEN CAST( + COUNT( * ) AS SIGNED ) ELSE + + 45 END AS col2
----
45

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT + + CASE 10 WHEN + 89 * CASE 96 WHEN 54 THEN - 3 * + - CASE WHEN NOT NULL < 58 THEN + ( - 90 ) ELSE 74 END * + COUNT ( * ) + 61 / + + 98 / 87 / 41 + + + 38 WHEN + COUNT ( * ) + - + 73 THEN - 42 END THEN CAST ( + COUNT ( * ) AS INTEGER ) ELSE + + 45 END AS col2
----
45

query I rowsort
SELECT ALL - + NULLIF ( + - 96, - 8 * - 51 + 90 * - 35 ) * - 59
----
-5664

onlyif mysql # aggregate syntax: 
query II rowsort label-9852
SELECT ALL + 50, + COUNT( * ) AS col1
----
50
1

skipif mysql # not compatible
query II rowsort label-9852
SELECT ALL + 50, + COUNT ( * ) AS col1
----
50
1

query II rowsort
SELECT - 29 AS col1, 61
----
-29
61

query II rowsort
SELECT DISTINCT + 53 AS col1, 41 - 84
----
53
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT - COUNT( * ) * - 6 * - CASE + 63 WHEN - 0 THEN NULL WHEN + - 65 + + 28 THEN 50 + - 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT - COUNT ( * ) * - 6 * - CASE + 63 WHEN - 0 THEN NULL WHEN + - 65 + + 28 THEN 50 + - 42 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT 6 * 34 - + + 20 * - - 91 * - + COUNT( * ) + - 8 + + 4
----
2020

skipif mysql # not compatible
query I rowsort label-9856
SELECT 6 * 34 - + + 20 * - - 91 * - + COUNT ( * ) + - 8 + + 4
----
2020

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9857
SELECT + - 0 DIV CASE WHEN + 84 BETWEEN NULL AND - 56 * + + 73 + 67 THEN NULL ELSE - CAST( + 80 AS SIGNED ) END * 90
----
0

skipif mysql # not compatible
query I rowsort label-9857
SELECT + - 0 / CASE WHEN + 84 BETWEEN NULL AND - 56 * + + 73 + 67 THEN NULL ELSE - CAST ( + 80 AS INTEGER ) END * 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9858
SELECT ALL 52 * + COALESCE ( - 96, - 48 ) + - CASE ( 20 ) WHEN - 4 * COUNT( * ) + - - CAST( + 6 AS SIGNED ) + 3 THEN - COUNT( * ) END + 98 + - - COUNT( * ) / + 22 + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL 52 * + COALESCE ( - 96, - 48 ) + - CASE ( 20 ) WHEN - 4 * COUNT ( * ) + - - CAST ( + 6 AS INTEGER ) + 3 THEN - COUNT ( * ) END + 98 + - - COUNT ( * ) / + 22 + 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT + + COALESCE ( - NULLIF ( + 7, + - 17 ), + 70 * - 6 * - 98 + COUNT( * ) * 92, - 10 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9859
SELECT + + COALESCE ( - NULLIF ( + 7, + - 17 ), + 70 * - 6 * - 98 + COUNT ( * ) * 92, - 10 ) AS col1
----
-7

query I rowsort
SELECT - - 56 - - - 38
----
18

query II rowsort
SELECT ALL - 45 * - 45 * + 93 AS col2, 83 * 44 + 86 AS col1
----
188325
3738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT + CASE + 76 WHEN + 52 THEN + 64 - + - 32 WHEN SUM( ALL - 48 ) THEN + CAST( + ( + + 73 ) AS SIGNED ) * - 20 / 75 + 64 WHEN - 34 THEN NULL ELSE - 3 END AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9862
SELECT + CASE + 76 WHEN + 52 THEN + 64 - + - 32 WHEN SUM ( ALL - 48 ) THEN + CAST ( + ( + + 73 ) AS INTEGER ) * - 20 / 75 + 64 WHEN - 34 THEN NULL ELSE - 3 END AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT + COUNT( DISTINCT - 94 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9863
SELECT + COUNT ( DISTINCT - 94 ) AS col1
----
1

query I rowsort
SELECT ALL - 25 * + - 83 + + - 74 AS col1
----
2001

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT - COUNT( * ) * 98 * 28 - - 41 + 22 * + 94
----
-635

skipif mysql # not compatible
query I rowsort label-9865
SELECT - COUNT ( * ) * 98 * 28 - - 41 + 22 * + 94
----
-635

query I rowsort
SELECT ALL + 63 * 13 AS col0
----
819

query I rowsort
SELECT + 9 - + 68 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT DISTINCT + COUNT( * ) * - 58
----
-58

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT + COUNT ( * ) * - 58
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9869
SELECT DISTINCT - ( + + ( + 27 ) ) * - SUM( - 66 ) + - - 78 * + 52 AS col1, + 52 DIV - 17 + + 53
----
2274
50

skipif mysql # not compatible
query II rowsort label-9869
SELECT DISTINCT - ( + + ( + 27 ) ) * - SUM ( - 66 ) + - - 78 * + 52 AS col1, + 52 / - 17 + + 53
----
2274
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT - COUNT( ALL - + 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-9870
SELECT - COUNT ( ALL - + 97 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT SUM( - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-9871
SELECT SUM ( - 1 )
----
-1

query I rowsort
SELECT - 73 + - ( - ( - 44 ) ) AS col0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT MAX( + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9873
SELECT MAX ( + 9 ) AS col0
----
9

query I rowsort
SELECT + 49 + 85 - + - 85 + - - 39 * - 5 * + 43
----
-8166

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9875
SELECT ALL 55 * - COUNT( DISTINCT + + 1 ) DIV - 77 AS col2, ( - COUNT( * ) ) AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-9875
SELECT ALL 55 * - COUNT ( DISTINCT + + 1 ) / - 77 AS col2, ( - COUNT ( * ) ) AS col0
----
0
-1

query I rowsort
SELECT + 60 * - 82 * - 75 AS col2
----
369000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT - CAST( + 33 AS SIGNED ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9877
SELECT - CAST ( + 33 AS INTEGER ) AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9878
SELECT + 95 + CAST( NULL AS SIGNED ) + - 26 + - - 50 * + - 24 + + - 41 - + + CAST( - - 2 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT + 95 + CAST ( NULL AS INTEGER ) + - 26 + - - 50 * + - 24 + + - 41 - + + CAST ( - - 2 AS INTEGER )
----
NULL

query I rowsort
SELECT + 7 * ( - 82 )
----
-574

query I rowsort
SELECT + + 36 + 73
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9881
SELECT + + 78 DIV 77 DIV COUNT( ALL - - 46 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9881
SELECT + + 78 / 77 / COUNT ( ALL - - 46 ) + COUNT ( * )
----
2

query I rowsort
SELECT - + 73 * + 32 AS col0
----
-2336

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT DISTINCT CASE + - COUNT( * ) WHEN - + 5 + + 66 THEN ( + + 28 ) * - 86 + - 73 - + 22 ELSE - 61 END AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT CASE + - COUNT ( * ) WHEN - + 5 + + 66 THEN ( + + 28 ) * - 86 + - 73 - + 22 ELSE - 61 END AS col2
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT 86 DIV - + 9 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9884
SELECT 86 / - + 9 AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9885
SELECT + CAST( 2 AS SIGNED ) * - 45 + + 73 * 86 * + - 60 - + 55 AS col1
----
-376825

skipif mysql # not compatible
query I rowsort label-9885
SELECT + CAST ( 2 AS INTEGER ) * - 45 + + 73 * 86 * + - 60 - + 55 AS col1
----
-376825

query I rowsort
SELECT - 90 * + 91
----
-8190

onlyif mysql # DIV for integer division: 
query II rowsort label-9887
SELECT 65 DIV 98 AS col1, 29
----
0
29

skipif mysql # not compatible
query II rowsort label-9887
SELECT 65 / 98 AS col1, 29
----
0
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9888
SELECT 9 * 28 DIV - - 20
----
12

skipif mysql # not compatible
query I rowsort label-9888
SELECT 9 * 28 / - - 20
----
12

query I rowsort
SELECT ALL + NULLIF ( + 82, + 5 ) + - 69
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT + + SUM( - + 27 ) * - 93 * + + 21 * + COUNT( * ) + - 95
----
52636

skipif mysql # not compatible
query I rowsort label-9890
SELECT + + SUM ( - + 27 ) * - 93 * + + 21 * + COUNT ( * ) + - 95
----
52636

query I rowsort
SELECT 60 * 94 + + 68 * - 56 - + - 88 * + 79 + + 93 + - ( - - ( + 52 ) )
----
8825

query I rowsort
SELECT 86 - - + 86 + + 86 AS col1
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9893
SELECT ALL - 49 * + + CAST( 4 AS SIGNED ) AS col1
----
-196

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL - 49 * + + CAST ( 4 AS INTEGER ) AS col1
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9894
SELECT + + COUNT ( * ) col2
----
1

query I rowsort
SELECT ALL 62 + + 60 - + 47 AS col1
----
75

query I rowsort
SELECT DISTINCT - ( - + 40 ) + ( 82 ) AS col1
----
122

query I rowsort
SELECT ALL + + 25 + - 55 AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9898
SELECT CASE + 18 WHEN + 5 THEN 14 * - COUNT( DISTINCT 33 ) - + 59 WHEN 67 THEN NULL WHEN - - 0 * - - 73 + + 96 THEN + 89 - + - ( ( - 1 ) ) * + - CAST( - 78 AS SIGNED ) END * + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT CASE + 18 WHEN + 5 THEN 14 * - COUNT ( DISTINCT 33 ) - + 59 WHEN 67 THEN NULL WHEN - - 0 * - - 73 + + 96 THEN + 89 - + - ( ( - 1 ) ) * + - CAST ( - 78 AS INTEGER ) END * + - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT DISTINCT - MAX( ALL - 19 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT - MAX ( ALL - 19 ) col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT ALL - ( - 33 ) + COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL - ( - 33 ) + COUNT ( * ) AS col0
----
34

query I rowsort
SELECT 7 * - 54 * - - 14 AS col2
----
-5292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9902
SELECT ALL + ( - - COUNT( * ) ) DIV + 6
----
0

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL + ( - - COUNT ( * ) ) / + 6
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9903
SELECT 13 + - - CAST( 37 AS SIGNED ) DIV - 64
----
13

skipif mysql # not compatible
query I rowsort label-9903
SELECT 13 + - - CAST ( 37 AS INTEGER ) / - 64
----
13

query I rowsort
SELECT DISTINCT + 14 * + - 81 col2
----
-1134

query II rowsort
SELECT DISTINCT 24 col2, - 44
----
24
-44

query I rowsort
SELECT 42 * 48 AS col1
----
2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9907
SELECT DISTINCT + ( + + NULLIF ( + COUNT( * ), - 89 ) ) * - 52 AS col2, + 22 DIV + + COALESCE ( - 1, + + 40 ) AS col0
----
-52
-22

skipif mysql # not compatible
query II rowsort label-9907
SELECT DISTINCT + ( + + NULLIF ( + COUNT ( * ), - 89 ) ) * - 52 AS col2, + 22 / + + COALESCE ( - 1, + + 40 ) AS col0
----
-52
-22

query I rowsort
SELECT 22 * + 74
----
1628

query I rowsort
SELECT CASE + ( - 59 ) WHEN - 44 THEN NULL WHEN - 20 * + 22 THEN + - 56 WHEN 58 + 3 THEN NULL END + + + 70 * + 52 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9910
SELECT ALL - CAST( NULL AS SIGNED ) * 91 * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - CAST ( NULL AS INTEGER ) * 91 * 21
----
NULL

query I rowsort
SELECT 32 * - + 26
----
-832

query I rowsort
SELECT 38 + 28
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT COUNT( * ) - - 16 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9913
SELECT COUNT ( * ) - - 16 AS col0
----
17

query I rowsort
SELECT - 47 * - 57 col0
----
2679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9915
SELECT + CAST( - 46 AS SIGNED ) + + + NULLIF ( - 32, - COUNT( * ) * COUNT( ALL - 17 ) + + - ( - - 84 ) ) * - 18 + COUNT( * ) AS col2
----
531

skipif mysql # not compatible
query I rowsort label-9915
SELECT + CAST ( - 46 AS INTEGER ) + + + NULLIF ( - 32, - COUNT ( * ) * COUNT ( ALL - 17 ) + + - ( - - 84 ) ) * - 18 + COUNT ( * ) AS col2
----
531

onlyif mysql # aggregate syntax: 
query II rowsort label-9916
SELECT COUNT( * ) + 93 * - 49, - 72 AS col2
----
-4556
-72

skipif mysql # not compatible
query II rowsort label-9916
SELECT COUNT ( * ) + 93 * - 49, - 72 AS col2
----
-4556
-72

query I rowsort
SELECT + ( - + 73 ) + - 33 AS col1
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9918
SELECT COUNT( * ) DIV - ( - 5 )
----
0

skipif mysql # not compatible
query I rowsort label-9918
SELECT COUNT ( * ) / - ( - 5 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9919
SELECT 11 * + NULLIF ( + 5, 7 * 86 + + 12 ) DIV 66 * - COUNT( * ) * + 33 + COUNT( DISTINCT - 8 ) DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-9919
SELECT 11 * + NULLIF ( + 5, 7 * 86 + + 12 ) / 66 * - COUNT ( * ) * + 33 + COUNT ( DISTINCT - 8 ) / + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT ALL 94 + - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL 94 + - COUNT ( * )
----
93

query II rowsort
SELECT + + 57 AS col0, 85
----
57
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT ALL 33 + + CASE + ( + 1 ) WHEN - - 5 + - - COUNT( ALL - 30 ) THEN - - ( 63 ) * - - 37 * COUNT( * ) + 60 WHEN + + 84 / + 65 * + 61 + COUNT( * ) / - + AVG ( + 35 ) * + COUNT( * ) + + 87 * COUNT( * ) * + + MIN( - 95 ) * + 68 + + - 44 THEN - - 70 - 85 / + - 41 * + 8 * + ( - CASE 41 WHEN SUM( DISTINCT 3 ) * - - 60 + - + 87 + 14 THEN + - COUNT( * ) WHEN - 12 - - ( ( 42 ) ) THEN - CASE + 43 WHEN + COUNT( * ) * - ( AVG ( DISTINCT ( + 76 ) ) ) THEN 68 END + - SUM( 90 ) / 72 WHEN - 25 / 68 + + 96 THEN NULL ELSE NULL END ) + + 86 ELSE NULL END + + 36 * 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL 33 + + CASE + ( + 1 ) WHEN - - 5 + - - COUNT ( ALL - 30 ) THEN - - ( 63 ) * - - 37 * COUNT ( * ) + 60 WHEN + + 84 / + 65 * + 61 + COUNT ( * ) / - + AVG ( + 35 ) * + COUNT ( * ) + + 87 * COUNT ( * ) * + + MIN ( - 95 ) * + 68 + + - 44 THEN - - 70 - 85 / + - 41 * + 8 * + ( - CASE 41 WHEN SUM ( DISTINCT 3 ) * - - 60 + - + 87 + 14 THEN + - COUNT ( * ) WHEN - 12 - - ( ( 42 ) ) THEN - CASE + 43 WHEN + COUNT ( * ) * - ( AVG ( DISTINCT ( + 76 ) ) ) THEN 68 END + - SUM ( 90 ) / 72 WHEN - 25 / 68 + + 96 THEN NULL ELSE NULL END ) + + 86 ELSE NULL END + + 36 * 75 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT 3 / - + AVG ( ALL - 60 ) / + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT 3 / - + AVG ( ALL - 60 ) / + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9924
SELECT ALL + 28 + COUNT( * ) + - SUM( + - 42 ) + - CAST( NULL AS DECIMAL ) + + 23 + 43 / CASE - 78 WHEN - 28 THEN NULL WHEN + NULLIF ( 58, + COUNT( * ) + 93 ) * COUNT( * ) THEN - 41 ELSE NULL END * - + CAST( - + 35 AS SIGNED ) * ( - 79 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL + 28 + COUNT ( * ) + - SUM ( + - 42 ) + - CAST ( NULL AS REAL ) + + 23 + 43 / CASE - 78 WHEN - 28 THEN NULL WHEN + NULLIF ( 58, + COUNT ( * ) + 93 ) * COUNT ( * ) THEN - 41 ELSE NULL END * - + CAST ( - + 35 AS INTEGER ) * ( - 79 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT + MAX( ALL + 63 ) * - + 35 * - SUM( DISTINCT - 48 ) - - + 76 + - 75
----
-105839

skipif mysql # not compatible
query I rowsort label-9925
SELECT + MAX ( ALL + 63 ) * - + 35 * - SUM ( DISTINCT - 48 ) - - + 76 + - 75
----
-105839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9926
SELECT ALL - COALESCE ( 45, + - COUNT( * ), - 41 * MIN( ALL - + 50 ) + 87 ) * - + CAST( 96 AS SIGNED ) AS col0
----
4320

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL - COALESCE ( 45, + - COUNT ( * ), - 41 * MIN ( ALL - + 50 ) + 87 ) * - + CAST ( 96 AS INTEGER ) AS col0
----
4320

query II rowsort
SELECT 71, 81 AS col2
----
71
81

query II rowsort
SELECT + 87 AS col2, 68 AS col2
----
87
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9929
SELECT + 13 DIV + - NULLIF ( + 5, + 91 * - 81 * + + 70 * - 28 - + COUNT( - 26 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-9929
SELECT + 13 / + - NULLIF ( + 5, + 91 * - 81 * + + 70 * - 28 - + COUNT ( - 26 ) )
----
-2

query I rowsort
SELECT - 52 * + - 96 AS col1
----
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT 7 - 80 * + SUM( ALL - 94 ) * 94 + 94 AS col1
----
706981

skipif mysql # not compatible
query I rowsort label-9931
SELECT 7 - 80 * + SUM ( ALL - 94 ) * 94 + 94 AS col1
----
706981

query II rowsort
SELECT + 7, 75 AS col2
----
7
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL + COUNT( * ) * 85
----
85

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL + COUNT ( * ) * 85
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT - 21 * + 32 + COUNT( * )
----
-671

skipif mysql # not compatible
query I rowsort label-9934
SELECT - 21 * + 32 + COUNT ( * )
----
-671

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT - NULLIF ( + ( + COUNT( * ) ), + 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9935
SELECT - NULLIF ( + ( + COUNT ( * ) ), + 48 ) AS col1
----
-1

query I rowsort
SELECT 61 - + + 24 * - 76
----
1885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9937
SELECT ALL COUNT( ALL CASE - - 88 WHEN - 21 THEN NULL ELSE COALESCE ( - CAST( NULL AS SIGNED ), + 60 ) END ) AS col1, - 17 AS col0
----
1
-17

skipif mysql # not compatible
query II rowsort label-9937
SELECT ALL COUNT ( ALL CASE - - 88 WHEN - 21 THEN NULL ELSE COALESCE ( - CAST ( NULL AS INTEGER ), + 60 ) END ) AS col1, - 17 AS col0
----
1
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9938
SELECT 32 DIV + + 45 * 28
----
0

skipif mysql # not compatible
query I rowsort label-9938
SELECT 32 / + + 45 * 28
----
0

query I rowsort
SELECT 42 + ( + + 80 ) AS col0
----
122

onlyif mysql # DIV for integer division: 
query II rowsort label-9940
SELECT - 39 AS col0, + 56 DIV - + ( - 52 ) AS col1
----
-39
1

skipif mysql # not compatible
query II rowsort label-9940
SELECT - 39 AS col0, + 56 / - + ( - 52 ) AS col1
----
-39
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9941
SELECT ALL COUNT( * ), - CAST( NULL AS SIGNED ) * COALESCE ( ( - 99 ), - 11 / - - 98 + - + CAST( - 38 AS SIGNED ), 49 ) + ( + 59 ) col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9941
SELECT ALL COUNT ( * ), - CAST ( NULL AS INTEGER ) * COALESCE ( ( - 99 ), - 11 / - - 98 + - + CAST ( - 38 AS INTEGER ), 49 ) + ( + 59 ) col0
----
1
NULL

query II rowsort
SELECT 16, ( - 0 ) AS col1
----
16
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9943
SELECT ALL + 65 + 15 DIV 82 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL + 65 + 15 / 82 AS col1
----
65

query II rowsort
SELECT - 63 col1, 92 * + + 5 * - + 3 AS col0
----
-63
-1380

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT - + CASE 22 WHEN - 67 THEN NULL ELSE - ( ( 78 ) ) * 72 / + - 39 END + - 95 * + ( - 91 ) / - 69 + COUNT( * ) + + CASE 60 WHEN - 56 * - 79 THEN 87 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT - + CASE 22 WHEN - 67 THEN NULL ELSE - ( ( 78 ) ) * 72 / + - 39 END + - 95 * + ( - 91 ) / - 69 + COUNT ( * ) + + CASE 60 WHEN - 56 * - 79 THEN 87 END AS col1
----
NULL

query I rowsort
SELECT - 68 * - - 1 + - 5 AS col0
----
-73

query I rowsort
SELECT ALL - 73 + 48 - + 69 + + + COALESCE ( + + 45, + 49 * 87 + - 53 )
----
-49

query I rowsort
SELECT + 81 * 19 AS col0
----
1539

query I rowsort
SELECT - 21 - - 44 + + 67 AS col0
----
90

query I rowsort
SELECT - 34 + - 31 + 8 * 51
----
343

query I rowsort
SELECT ( - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9952
SELECT - - 38, 1 + - - ( + COUNT( * ) ) - COUNT( + + 32 ) * - 96 + 37 - 18 * 7 AS col0
----
38
9

skipif mysql # not compatible
query II rowsort label-9952
SELECT - - 38, 1 + - - ( + COUNT ( * ) ) - COUNT ( + + 32 ) * - 96 + 37 - 18 * 7 AS col0
----
38
9

query I rowsort
SELECT ALL + + 29 + 91
----
120

query I rowsort
SELECT + + 52 - + ( 62 ) AS col0
----
-10

query I rowsort
SELECT ALL + + COALESCE ( - 50, - - 63 )
----
-50

query I rowsort
SELECT - ( - 75 ) * + 42 - 73 col0
----
3077

query I rowsort
SELECT DISTINCT + - 62 AS col1
----
-62

query I rowsort
SELECT ALL - + 78 * - - 79 - - + 7 AS col1
----
-6155

query II rowsort
SELECT - 77 AS col0, 56 - - 33
----
-77
89

query I rowsort
SELECT + 45 * - 2 + + 92 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT + 20 * 97 * - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT + 20 * 97 * - + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT ( - 98 ) * - + 22 * + + 76 * - + 68 + 76
----
-11142132

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT - COUNT( * ) * + - COUNT( * ) + + 50 + 89 AS col0
----
140

skipif mysql # not compatible
query I rowsort label-9963
SELECT - COUNT ( * ) * + - COUNT ( * ) + + 50 + 89 AS col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL - COUNT( * ) * - + 94 * + COUNT( * ) * + - 68
----
-6392

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL - COUNT ( * ) * - + 94 * + COUNT ( * ) * + - 68
----
-6392

query I rowsort
SELECT + 68 * + 37 * - 22 AS col0
----
-55352

query I rowsort
SELECT DISTINCT 73 * - 37 * + 6
----
-16206

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT + 32 * - COUNT( * ) * - - 80 AS col0
----
-2560

skipif mysql # not compatible
query I rowsort label-9967
SELECT + 32 * - COUNT ( * ) * - - 80 AS col0
----
-2560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9968
SELECT + CAST( NULL AS SIGNED ) * ( - 48 ) + + COALESCE ( + - 67, - 67 + + 26 / + COALESCE ( + - COUNT( * ), NULLIF ( + - 91, + - COUNT( * ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9968
SELECT + CAST ( NULL AS INTEGER ) * ( - 48 ) + + COALESCE ( + - 67, - 67 + + 26 / + COALESCE ( + - COUNT ( * ), NULLIF ( + - 91, + - COUNT ( * ) ) ) )
----
NULL

query I rowsort
SELECT + 8 * 26 * - + 16
----
-3328

query II rowsort
SELECT - 72 + - 47 col1, 49 * + 15 * + 67
----
-119
49245

onlyif mysql # aggregate syntax: 
query II rowsort label-9971
SELECT MAX( - 31 ) AS col2, + COUNT( * )
----
-31
1

skipif mysql # not compatible
query II rowsort label-9971
SELECT MAX ( - 31 ) AS col2, + COUNT ( * )
----
-31
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9972
SELECT - 90 DIV COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-9972
SELECT - 90 / COUNT ( * ) AS col2
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9973
SELECT ALL 96 DIV + + 72, - 9 - - COUNT( * ) col2
----
1
-8

skipif mysql # not compatible
query II rowsort label-9973
SELECT ALL 96 / + + 72, - 9 - - COUNT ( * ) col2
----
1
-8

query I rowsort
SELECT ALL + 79 * + - 7 col2
----
-553

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT DISTINCT NULLIF ( - COUNT( * ), - 15 + - 91 / + + 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT NULLIF ( - COUNT ( * ), - 15 + - 91 / + + 86 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9976
SELECT DISTINCT 95 + + MIN( + 51 ) * - CAST( 6 AS SIGNED ) * + 95 + 58
----
-28917

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT 95 + + MIN ( + 51 ) * - CAST ( 6 AS INTEGER ) * + 95 + 58
----
-28917

query I rowsort
SELECT ALL + - 69 + - + 80 * 93 - - 54 * 38 - - 89 + - + 98
----
-5466

query I rowsort
SELECT ALL - - 6 * - 37 + ( + 21 ) + + 47
----
-154

query I rowsort
SELECT - 65 + + 46
----
-19

query I rowsort
SELECT - + 47 + - 62 col0
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9981
SELECT - + CAST( NULL AS SIGNED ) + + - CASE + AVG ( - + 15 ) WHEN - 35 THEN - 64 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT - + CAST ( NULL AS INTEGER ) + + - CASE + AVG ( - + 15 ) WHEN - 35 THEN - 64 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - + 49, + - 6 ) + - - NULLIF ( + + 36, 45 ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT - MIN( + 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-9983
SELECT - MIN ( + 20 ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9984
SELECT - - NULLIF ( + 42, 19 + 72 / - 80 ) * - CAST( - COUNT( * ) AS SIGNED ) * COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-9984
SELECT - - NULLIF ( + 42, 19 + 72 / - 80 ) * - CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT DISTINCT + - 51 - - + MIN( - + 17 ) * 38 * + MIN( ALL 84 ) AS col2
----
-54315

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT + - 51 - - + MIN ( - + 17 ) * 38 * + MIN ( ALL 84 ) AS col2
----
-54315

query I rowsort
SELECT - 81 + 21 AS col0
----
-60

query I rowsort
SELECT ALL + 26 - 70
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9988
SELECT - + COUNT( * ) DIV 37 - + 62 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9988
SELECT - + COUNT ( * ) / 37 - + 62 AS col0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9989
SELECT + + 40 DIV - + 41 + - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9989
SELECT + + 40 / - + 41 + - + COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9990
SELECT NULLIF ( CAST( - COUNT( * ) AS SIGNED ), 96 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9990
SELECT NULLIF ( CAST ( - COUNT ( * ) AS INTEGER ), 96 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9991
SELECT ALL + CAST( - 42 AS SIGNED ) * + 36 - - + COUNT( * )
----
-1511

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL + CAST ( - 42 AS INTEGER ) * + 36 - - + COUNT ( * )
----
-1511

onlyif mysql # DIV for integer division: 
query I rowsort label-9992
SELECT - - 22 DIV + 26 + - 98 * - 56 + - 83
----
5405

skipif mysql # not compatible
query I rowsort label-9992
SELECT - - 22 / + 26 + - 98 * - 56 + - 83
----
5405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9993
SELECT ALL + 6 / - CAST( NULL AS DECIMAL ) * - MIN( - CAST( NULL AS SIGNED ) ) - - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL + 6 / - CAST ( NULL AS REAL ) * - MIN ( - CAST ( NULL AS INTEGER ) ) - - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT + MAX( ALL 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9994
SELECT + MAX ( ALL 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT DISTINCT + SUM( - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT + SUM ( - 36 )
----
-36

query I rowsort
SELECT - 44 * - ( 39 )
----
1716

query I rowsort
SELECT ALL + CASE ( 48 ) WHEN - 33 THEN - 18 * 54 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9998
SELECT CAST( + 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-9998
SELECT CAST ( + 45 AS INTEGER )
----
45

query I rowsort
SELECT + 14 * 31
----
434

