sqllogictest
Artifact Content
Not logged in

Artifact 13e75c1412d75ce4ba703618e256bd43d642f0b2:


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