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)

query I rowsort
SELECT 6 * 49 + + 51
----
345

query I rowsort
SELECT 14 - 16 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2
SELECT DISTINCT 81 * + 89 AS col0, - 48 * - - 93 + - + MAX( - - 16 ) * - 96 AS col2
----
7209
-2928

skipif mysql # not compatible
query II rowsort label-2
SELECT DISTINCT 81 * + 89 AS col0, - 48 * - - 93 + - + MAX ( - - 16 ) * - 96 AS col2
----
7209
-2928

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3
SELECT DISTINCT 73, 21 DIV - CASE + COALESCE ( - 10, ( + + COALESCE ( 77, - 55 ) ), + COUNT( * ) + 28 ) WHEN + 82 * 44 + - 75 + - 80 DIV 98 THEN + 27 ELSE 35 END * + 41 AS col1
----
73
0

skipif mysql # not compatible
query II rowsort label-3
SELECT DISTINCT 73, 21 / - CASE + COALESCE ( - 10, ( + + COALESCE ( 77, - 55 ) ), + COUNT ( * ) + 28 ) WHEN + 82 * 44 + - 75 + - 80 / 98 THEN + 27 ELSE 35 END * + 41 AS col1
----
73
0

query II rowsort
SELECT ( + 26 ) + + - 63 + + 13 + + 42 * 18, 4 col2
----
732
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5
SELECT 43 * + + 22 * 18 * - ( - CAST( NULL AS DECIMAL ) ) + - 99 * - - 97 + COUNT( * ) + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT 43 * + + 22 * 18 * - ( - CAST ( NULL AS REAL ) ) + - 99 * - - 97 + COUNT ( * ) + 80
----
NULL

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

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

query I rowsort
SELECT 61 * 4 + - 22 col1
----
222

onlyif mysql # aggregate syntax: 
query II rowsort label-8
SELECT 77 AS col0, COUNT( * ) + + + 99
----
77
100

skipif mysql # not compatible
query II rowsort label-8
SELECT 77 AS col0, COUNT ( * ) + + + 99
----
77
100

query II rowsort
SELECT DISTINCT 94 AS col1, - 27
----
94
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-10
SELECT ALL - 71 DIV - 52 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL - 71 / - 52 AS col1
----
1

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

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

query I rowsort
SELECT 55 * 1
----
55

query I rowsort
SELECT DISTINCT + ( - + COALESCE ( + + 66, + + 36 * - - ( 38 ) ) ) + - 68 col0
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL - 98 + 73 * + - COUNT( * ) col1
----
-171

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL - 98 + 73 * + - COUNT ( * ) col1
----
-171

query II rowsort
SELECT 35 - + 12 - 63 + - + 96 AS col1, - 22
----
-136
-22

query I rowsort
SELECT + 12 + - + 50 AS col2
----
-38

query I rowsort
SELECT DISTINCT + - 11 + + 9
----
-2

query I rowsort
SELECT - 65 + + 80 + 61 AS col2
----
76

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

skipif mysql # not compatible
query II rowsort label-19
SELECT - + COUNT ( * ), - 34 col2
----
-1
-34

query II rowsort
SELECT ALL + 39, 69 AS col1
----
39
69

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT ALL 73 * - 44 * + + COUNT( * ) - - 81 + - COUNT( * )
----
-3132

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL 73 * - 44 * + + COUNT ( * ) - - 81 + - COUNT ( * )
----
-3132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-22
SELECT + 65 DIV + + 67 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-22
SELECT + 65 / + + 67 + + COUNT ( * )
----
1

query II rowsort
SELECT ALL - + 98, 24 AS col1
----
-98
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT 21 + - - 39 + - NULLIF ( + 10, - 51 / - - 87 + - + SUM( 81 ) ) col0
----
50

skipif mysql # not compatible
query I rowsort label-25
SELECT 21 + - - 39 + - NULLIF ( + 10, - 51 / - - 87 + - + SUM ( 81 ) ) col0
----
50

query I rowsort
SELECT 54 * + + 97 col1
----
5238

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT + 2 * + 40 * 32 * + 46 + + MAX( DISTINCT - 1 ) + + - NULLIF ( + - 0, + COUNT( * ) ) + - 13 + 8 * + 43 + + + 91 + + 20 * 64 col1
----
119461

skipif mysql # not compatible
query I rowsort label-27
SELECT + 2 * + 40 * 32 * + 46 + + MAX ( DISTINCT - 1 ) + + - NULLIF ( + - 0, + COUNT ( * ) ) + - 13 + 8 * + 43 + + + 91 + + 20 * 64 col1
----
119461

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT DISTINCT + MAX( + 61 ) * + 38 AS col0
----
2318

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT + MAX ( + 61 ) * + 38 AS col0
----
2318

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-29
SELECT ALL COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2, - 41 AS col0, + + 49 + COUNT( * ) AS col1
----
NULL
-41
50

skipif mysql # not compatible
query III rowsort label-29
SELECT ALL COUNT ( * ) * CAST ( NULL AS REAL ) AS col2, - 41 AS col0, + + 49 + COUNT ( * ) AS col1
----
NULL
-41
50

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

query I rowsort
SELECT ALL + 2 * - 76 * - + 77 AS col2
----
11704

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT DISTINCT 4 + 34 + + - SUM( - 6 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT 4 + 34 + + - SUM ( - 6 ) AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-35
SELECT + 74 DIV COUNT( * ) DIV - - 46
----
1

skipif mysql # not compatible
query I rowsort label-35
SELECT + 74 / COUNT ( * ) / - - 46
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-37
SELECT 75 * CAST( + COUNT( * ) AS SIGNED ) - CAST( + 26 AS SIGNED ) + + ( + 44 ) DIV COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-37
SELECT 75 * CAST ( + COUNT ( * ) AS INTEGER ) - CAST ( + 26 AS INTEGER ) + + ( + 44 ) / COUNT ( * )
----
93

query I rowsort
SELECT - NULLIF ( - 13, + - 7 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-39
SELECT + 21 - + CAST( - MAX( + - 58 ) AS SIGNED ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-39
SELECT + 21 - + CAST ( - MAX ( + - 58 ) AS INTEGER ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT DISTINCT COUNT( 12 ) + + - NULLIF ( - 49, + + 37 )
----
50

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT COUNT ( 12 ) + + - NULLIF ( - 49, + + 37 )
----
50

query I rowsort
SELECT ALL - 12 + - 49 * - 0 - - NULLIF ( 91, 76 )
----
79

query I rowsort
SELECT ALL 26 + - 32
----
-6

query I rowsort
SELECT + 32 + - 55 + + 30 AS col1
----
7

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

query I rowsort
SELECT + 49 * - 42
----
-2058

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

skipif mysql # not compatible
query I rowsort label-46
SELECT - MAX ( - - ( - + 85 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT - + COUNT( * ) + - ( 56 ) + - 74 AS col2
----
-131

skipif mysql # not compatible
query I rowsort label-47
SELECT - + COUNT ( * ) + - ( 56 ) + - 74 AS col2
----
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT DISTINCT + 7 DIV + - 21 + + 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT + 7 / + - 21 + + 1 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT DISTINCT 64 - COUNT( * ) * + 68
----
-4

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT 64 - COUNT ( * ) * + 68
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-50
SELECT ALL + 74 * COUNT( + 45 ) * + + 63 * - CAST( NULL AS SIGNED ) + - 62 - - 66 * + 94 / + ( 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL + 74 * COUNT ( + 45 ) * + + 63 * - CAST ( NULL AS INTEGER ) + - 62 - - 66 * + 94 / + ( 85 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-51
SELECT + 13 DIV - 55 - + 27 + - 11
----
-38

skipif mysql # not compatible
query I rowsort label-51
SELECT + 13 / - 55 - + 27 + - 11
----
-38

onlyif mysql # DIV for integer division: 
query II rowsort label-52
SELECT ALL 82 DIV - + 73, 44 + 30 col1
----
-1
74

skipif mysql # not compatible
query II rowsort label-52
SELECT ALL 82 / - + 73, 44 + 30 col1
----
-1
74

query I rowsort
SELECT DISTINCT + + 83 * 89 AS col1
----
7387

query I rowsort
SELECT ALL 9 * 80
----
720

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT + 79 DIV - 90 * 84 DIV + 2
----
0

skipif mysql # not compatible
query I rowsort label-55
SELECT + 79 / - 90 * 84 / + 2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT + COUNT( * ) * + - COUNT( * ) - + - 4
----
3

skipif mysql # not compatible
query I rowsort label-56
SELECT + COUNT ( * ) * + - COUNT ( * ) - + - 4
----
3

query I rowsort
SELECT ALL - 22 * 47
----
-1034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-58
SELECT + 58 DIV + 55 + - COALESCE ( - COALESCE ( + 52, - - 5 * 71 ), - CAST( NULL AS SIGNED ) DIV 53 + - COUNT( - + NULLIF ( CAST( NULL AS SIGNED ), - ( + 24 ) ) ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-58
SELECT + 58 / + 55 + - COALESCE ( - COALESCE ( + 52, - - 5 * 71 ), - CAST ( NULL AS INTEGER ) / 53 + - COUNT ( - + NULLIF ( CAST ( NULL AS INTEGER ), - ( + 24 ) ) ) ) AS col0
----
53

query II rowsort
SELECT + - ( - 12 ) AS col2, 87 + 42 AS col0
----
12
129

query I rowsort
SELECT - + 83 + - - 30 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT ALL + 77 * + - 38 + - ( + COALESCE ( + COUNT( * ), - + ( + 11 ) * - 98 + - 71 ) ) + + + 10 * 21 * + 14 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL + 77 * + - 38 + - ( + COALESCE ( + COUNT ( * ), - + ( + 11 ) * - 98 + - 71 ) ) + + + 10 * 21 * + 14 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT - COALESCE ( 30, NULLIF ( 42, + 16 + - + 28 * - - 35 ), NULLIF ( SUM( 92 ), + COUNT( * ) ) ) * + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-62
SELECT - COALESCE ( 30, NULLIF ( 42, + 16 + - + 28 * - - 35 ), NULLIF ( SUM ( 92 ), + COUNT ( * ) ) ) * + COUNT ( * )
----
-30

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

query II rowsort
SELECT ALL 91 * + - 59 * + 94 + + + 77 + + 64 * - 64 AS col0, 45 AS col1
----
-508705
45

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT - COUNT( * ) * - 21 - - + 90 * 98 * + 18 AS col2
----
158781

skipif mysql # not compatible
query I rowsort label-65
SELECT - COUNT ( * ) * - 21 - - + 90 * 98 * + 18 AS col2
----
158781

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-66
SELECT ALL + CAST( - - 28 AS SIGNED ) * - - 65 * 75
----
136500

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL + CAST ( - - 28 AS INTEGER ) * - - 65 * 75
----
136500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-67
SELECT DISTINCT - ( + CASE - + COUNT( 75 ) WHEN 22 THEN - 35 ELSE + - 43 - + COUNT( * ) END ) * 43 + + 41 DIV 6 + 65 DIV + 38
----
1899

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT - ( + CASE - + COUNT ( 75 ) WHEN 22 THEN - 35 ELSE + - 43 - + COUNT ( * ) END ) * 43 + + 41 / 6 + 65 / + 38
----
1899

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-68
SELECT ALL + 82 * - + ( + CAST( NULL AS SIGNED ) ) + CAST( - - 31 AS DECIMAL ) * - - 28 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL + 82 * - + ( + CAST ( NULL AS INTEGER ) ) + CAST ( - - 31 AS REAL ) * - - 28 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-69
SELECT NULLIF ( 74, - COUNT( * ) ), ( - 53 ) AS col0
----
74
-53

skipif mysql # not compatible
query II rowsort label-69
SELECT NULLIF ( 74, - COUNT ( * ) ), ( - 53 ) AS col0
----
74
-53

query I rowsort
SELECT - 45 + 87
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT CASE + 71 WHEN - SUM( + 99 ) * + 10 + 84 THEN NULL ELSE + 42 END col0
----
42

skipif mysql # not compatible
query I rowsort label-71
SELECT CASE + 71 WHEN - SUM ( + 99 ) * + 10 + 84 THEN NULL ELSE + 42 END col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-72
SELECT ALL + SUM( DISTINCT - COALESCE ( - + 3, - 25, - - CAST( NULL AS SIGNED ) ) ) * - 56
----
-168

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL + SUM ( DISTINCT - COALESCE ( - + 3, - 25, - - CAST ( NULL AS INTEGER ) ) ) * - 56
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-73
SELECT - 62 DIV SUM( ALL - 55 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-73
SELECT - 62 / SUM ( ALL - 55 ) AS col0
----
1

query I rowsort
SELECT + 27 - - 80 AS col2
----
107

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

skipif mysql # not compatible
query I rowsort label-75
SELECT + MAX ( + 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT NULLIF ( + COUNT( * ), - 19 * - 95 )
----
1

skipif mysql # not compatible
query I rowsort label-76
SELECT NULLIF ( + COUNT ( * ), - 19 * - 95 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-77
SELECT ALL - CAST( NULL AS SIGNED ) * - + 29 * - 86 * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 29 * - 86 * - 47
----
NULL

query I rowsort
SELECT + 9 * - 88 * ( - 13 ) * + 69 AS col0
----
710424

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT ALL 79 DIV 60
----
1

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL 79 / 60
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ALL - 40 * + - MIN( 94 ) * + + ( + + 17 ) - + - 82 + - + COUNT( * ) + + - 26 col1
----
63975

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL - 40 * + - MIN ( 94 ) * + + ( + + 17 ) - + - 82 + - + COUNT ( * ) + + - 26 col1
----
63975

query I rowsort
SELECT - + 38 + 87
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-82
SELECT + - 74 * - COUNT( * ) DIV - + 77, + 2 * + - 4 AS col0
----
0
-8

skipif mysql # not compatible
query II rowsort label-82
SELECT + - 74 * - COUNT ( * ) / - + 77, + 2 * + - 4 AS col0
----
0
-8

query II rowsort
SELECT ALL 23, + 85 AS col2
----
23
85

onlyif mysql # DIV for integer division: 
query II rowsort label-84
SELECT - - 33, 15 + 38 + - + 92 DIV - ( 78 ) AS col1
----
33
54

skipif mysql # not compatible
query II rowsort label-84
SELECT - - 33, 15 + 38 + - + 92 / - ( 78 ) AS col1
----
33
54

query I rowsort
SELECT + + 99 * 82 * 22
----
178596

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT + + 88 + - COUNT( ALL 47 )
----
87

skipif mysql # not compatible
query I rowsort label-86
SELECT + + 88 + - COUNT ( ALL 47 )
----
87

query I rowsort
SELECT + 1 * - ( + 59 )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-88
SELECT ALL ( 28 ) * + - 84 * - COUNT( * ) + CAST( - + COALESCE ( 51, - 29 ) AS SIGNED ) AS col2, COUNT( * ) + - 72 col2
----
2301
-71

skipif mysql # not compatible
query II rowsort label-88
SELECT ALL ( 28 ) * + - 84 * - COUNT ( * ) + CAST ( - + COALESCE ( 51, - 29 ) AS INTEGER ) AS col2, COUNT ( * ) + - 72 col2
----
2301
-71

query I rowsort
SELECT + 10 + + 73
----
83

query I rowsort
SELECT + + 48 + 55
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT ALL + COALESCE ( 87, + COALESCE ( - 25, + 8, - COUNT( - 86 ) ) )
----
87

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL + COALESCE ( 87, + COALESCE ( - 25, + 8, - COUNT ( - 86 ) ) )
----
87

query I rowsort
SELECT + 68 * - 87
----
-5916

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-93
SELECT DISTINCT - 25, + CAST( 67 AS SIGNED ) AS col2
----
-25
67

skipif mysql # not compatible
query II rowsort label-93
SELECT DISTINCT - 25, + CAST ( 67 AS INTEGER ) AS col2
----
-25
67

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT ALL MIN( + 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL MIN ( + 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-95
SELECT COUNT( * ) * COUNT( * ) DIV + 66, + 4 + + 23 AS col0
----
0
27

skipif mysql # not compatible
query II rowsort label-95
SELECT COUNT ( * ) * COUNT ( * ) / + 66, + 4 + + 23 AS col0
----
0
27

onlyif mysql # DIV for integer division: 
query I rowsort label-96
SELECT ALL 43 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL 43 / 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-97
SELECT 20 / - 37 * MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-97
SELECT 20 / - 37 * MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-98
SELECT - 49 * + 76 + + - 2 + 17 + + + ( + 78 ) * 15 DIV COUNT( * )
----
-2539

skipif mysql # not compatible
query I rowsort label-98
SELECT - 49 * + 76 + + - 2 + 17 + + + ( + 78 ) * 15 / COUNT ( * )
----
-2539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-99
SELECT DISTINCT 22 * - - CASE + 32 WHEN - - 55 THEN NULL WHEN MAX( - 55 ) + - CAST( - + 61 AS SIGNED ) THEN - COUNT( DISTINCT + 12 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-99
SELECT DISTINCT 22 * - - CASE + 32 WHEN - - 55 THEN NULL WHEN MAX ( - 55 ) + - CAST ( - + 61 AS INTEGER ) THEN - COUNT ( DISTINCT + 12 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT 3 * MAX( - 50 )
----
-150

skipif mysql # not compatible
query I rowsort label-100
SELECT 3 * MAX ( - 50 )
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT 39 * + 8 * - 51 * - COUNT( DISTINCT - + 80 )
----
15912

skipif mysql # not compatible
query I rowsort label-101
SELECT 39 * + 8 * - 51 * - COUNT ( DISTINCT - + 80 )
----
15912

onlyif mysql # DIV for integer division: 
query I rowsort label-102
SELECT 2 DIV 43 + + + 35 + + + 47 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-102
SELECT 2 / 43 + + + 35 + + + 47 AS col2
----
82

query I rowsort
SELECT ALL - 12 + 36 AS col2
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT DISTINCT + 67 - - COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT + 67 - - COUNT ( * ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-106
SELECT ALL + COALESCE ( 82, + COUNT( * ), ( + 9 ) * - + 38 ) - 31 col0, 44 * 30 * + ( 8 ) - - + 92
----
51
10652

skipif mysql # not compatible
query II rowsort label-106
SELECT ALL + COALESCE ( 82, + COUNT ( * ), ( + 9 ) * - + 38 ) - 31 col0, 44 * 30 * + ( 8 ) - - + 92
----
51
10652

query II rowsort
SELECT 38 - + 39, 52 AS col2
----
-1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT DISTINCT - - COUNT( ALL + 70 ) * + 44
----
44

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT - - COUNT ( ALL + 70 ) * + 44
----
44

query II rowsort
SELECT ALL - + 42 * - + 6, - 55 AS col1
----
252
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT - COUNT( ALL + 5 ) - + 58
----
-59

skipif mysql # not compatible
query I rowsort label-111
SELECT - COUNT ( ALL + 5 ) - + 58
----
-59

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-113
SELECT + 35 * + 56 + 24 DIV 67 + - - ( 86 ) AS col0
----
2046

skipif mysql # not compatible
query I rowsort label-113
SELECT + 35 * + 56 + 24 / 67 + - - ( 86 ) AS col0
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT ALL 28 + - MAX( ALL + 0 )
----
28

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL 28 + - MAX ( ALL + 0 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT - 2 * - - ( NULLIF ( 34, + 67 ) ) * - - SUM( ALL + ( + 42 ) )
----
-2856

skipif mysql # not compatible
query I rowsort label-115
SELECT - 2 * - - ( NULLIF ( 34, + 67 ) ) * - - SUM ( ALL + ( + 42 ) )
----
-2856

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

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

query I rowsort
SELECT ALL - CASE - + 34 WHEN ( + + 46 ) THEN NULL ELSE - 70 END + 0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT ALL 87 + + 64 - + + 77 - - - 49 * + + 58 + - + NULLIF ( - - 39, - ( - 30 ) + + - SUM( 19 ) + 73 * 37 / 93 ) + 14 * 97 AS col2
----
-1449

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL 87 + + 64 - + + 77 - - - 49 * + + 58 + - + NULLIF ( - - 39, - ( - 30 ) + + - SUM ( 19 ) + 73 * 37 / 93 ) + 14 * 97 AS col2
----
-1449

query I rowsort
SELECT 88 + + 93 AS col0
----
181

query I rowsort
SELECT 23 * - 76 AS col1
----
-1748

query I rowsort
SELECT 94 - - 83 AS col2
----
177

query I rowsort
SELECT DISTINCT 81 * - - 43 col0
----
3483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-123
SELECT - COUNT( * ) * - - 52 + + 19 + + - 21 + - 50 - 0 * - + COALESCE ( 41, + COUNT( * ) ) * 0 + + + 79 * + 67 - + + COALESCE ( + 97, + ( + - 96 ) DIV + 28, + 71 ) + 75 AS col0
----
5167

skipif mysql # not compatible
query I rowsort label-123
SELECT - COUNT ( * ) * - - 52 + + 19 + + - 21 + - 50 - 0 * - + COALESCE ( 41, + COUNT ( * ) ) * 0 + + + 79 * + 67 - + + COALESCE ( + 97, + ( + - 96 ) / + 28, + 71 ) + 75 AS col0
----
5167

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-125
SELECT 16 DIV 23 + CAST( + 27 AS SIGNED ) * 56 - + 31 + 0 DIV + - 66 AS col0
----
1481

skipif mysql # not compatible
query I rowsort label-125
SELECT 16 / 23 + CAST ( + 27 AS INTEGER ) * 56 - + 31 + 0 / + - 66 AS col0
----
1481

query I rowsort
SELECT 49 * - 45 col2
----
-2205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-127
SELECT COALESCE ( - 23, - 1 + 7 DIV - + COUNT( * ) + - NULLIF ( 61, NULLIF ( + COUNT( * ), - - 94 ) ) + + 1 + + MIN( ALL - 97 ) ) + - + COUNT( + 50 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-127
SELECT COALESCE ( - 23, - 1 + 7 / - + COUNT ( * ) + - NULLIF ( 61, NULLIF ( + COUNT ( * ), - - 94 ) ) + + 1 + + MIN ( ALL - 97 ) ) + - + COUNT ( + 50 ) AS col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-128
SELECT ALL ( + - 60 ) + + COUNT( ALL + - 71 ) DIV + 54 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL ( + - 60 ) + + COUNT ( ALL + - 71 ) / + 54 AS col1
----
-60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL - COALESCE ( - COUNT( * ), - 16 * + + 89 + - NULLIF ( 71, - 73 ) - - + 21 + - 2 + + - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL - COALESCE ( - COUNT ( * ), - 16 * + + 89 + - NULLIF ( 71, - 73 ) - - + 21 + - 2 + + - 11 )
----
1

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

skipif mysql # not compatible
query I rowsort label-131
SELECT 58 + - CAST ( NULL AS INTEGER ) + - 57 AS col0
----
NULL

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

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

query I rowsort
SELECT 73 * - 96
----
-7008

query I rowsort
SELECT 83 - + 39 + + 82 col0
----
126

query I rowsort
SELECT DISTINCT 73 * + + 40 AS col2
----
2920

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

onlyif mysql # aggregate syntax: 
query II rowsort label-137
SELECT + 83 + + + 41 + CASE + 68 WHEN + 10 / - 92 THEN NULL WHEN + 82 + - COUNT( * ) / - - 99 * - 4 THEN COUNT( * ) END + + 20 * ( + 90 ) * - + 67 - - 72 * + 77 * - + 10 AS col2, 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-137
SELECT + 83 + + + 41 + CASE + 68 WHEN + 10 / - 92 THEN NULL WHEN + 82 + - COUNT ( * ) / - - 99 * - 4 THEN COUNT ( * ) END + + 20 * ( + 90 ) * - + 67 - - 72 * + 77 * - + 10 AS col2, 23
----
NULL
23

query I rowsort
SELECT + ( + 24 ) * + 45
----
1080

query I rowsort
SELECT 41 * - - ( - + 88 ) * + + 22 * - 86
----
6826336

query I rowsort
SELECT 95 * + 37 + + COALESCE ( - 77, - 18 * - 37 + 5 + - 51 - - - 12 * - + 22 ) AS col1
----
3438

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT ALL + 25 + + 72 + - 33 + + 99 * - SUM( + CASE 96 WHEN + 83 * + - 79 + + 8 THEN - 12 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL + 25 + + 72 + - 33 + + 99 * - SUM ( + CASE 96 WHEN + 83 * + - 79 + + 8 THEN - 12 END )
----
NULL

query I rowsort
SELECT 75 + 3
----
78

query I rowsort
SELECT - 15 - 46 AS col1
----
-61

query I rowsort
SELECT - - 40 * + 27
----
1080

query I rowsort
SELECT ALL - 34 * + 56
----
-1904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-146
SELECT DISTINCT - COUNT( * ) DIV 55 * - 85 + MIN( 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT - COUNT ( * ) / 55 * - 85 + MIN ( 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT ALL - MIN( NULLIF ( + NULLIF ( + + 97, + 24 ), - 2 ) ) + COUNT( ALL 79 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL - MIN ( NULLIF ( + NULLIF ( + + 97, + 24 ), - 2 ) ) + COUNT ( ALL 79 ) AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-148
SELECT ALL + 10 + + 3 - - 3 AS col0, CAST( - - MAX( DISTINCT + 51 ) AS SIGNED ) col0
----
16
51

skipif mysql # not compatible
query II rowsort label-148
SELECT ALL + 10 + + 3 - - 3 AS col0, CAST ( - - MAX ( DISTINCT + 51 ) AS INTEGER ) col0
----
16
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-149
SELECT - + 4 + 8 * + - 60 - 78 - - + COUNT( * ) + 59 DIV + 35 DIV 24 * 66 AS col1
----
-561

skipif mysql # not compatible
query I rowsort label-149
SELECT - + 4 + 8 * + - 60 - 78 - - + COUNT ( * ) + 59 / + 35 / 24 * 66 AS col1
----
-561

query I rowsort
SELECT ALL + 99 + - 91
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT ALL NULLIF ( COUNT( * ), - 2 * - - 54 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL NULLIF ( COUNT ( * ), - 2 * - - 54 ) AS col2
----
1

query I rowsort
SELECT - 22 + + 46
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-153
SELECT - 61 * 54 * - ( + 27 ) + + + 57, - MAX( DISTINCT + + 81 ) AS col1
----
88995
-81

skipif mysql # not compatible
query II rowsort label-153
SELECT - 61 * 54 * - ( + 27 ) + + + 57, - MAX ( DISTINCT + + 81 ) AS col1
----
88995
-81

query I rowsort
SELECT + 75 * - 61
----
-4575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-155
SELECT DISTINCT CASE WHEN NOT CAST( NULL AS SIGNED ) NOT BETWEEN COUNT( * ) + + 18 + - 23 + + - 18 AND 1 THEN 15 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT CASE WHEN NOT CAST ( NULL AS INTEGER ) NOT BETWEEN COUNT ( * ) + + 18 + - 23 + + - 18 AND 1 THEN 15 END AS col2
----
NULL

query I rowsort
SELECT ALL - 84 + - 55 AS col0
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT - 46 * + ( + 45 ) * + NULLIF ( COUNT( * ), AVG ( - 77 ) ) - 87
----
-2157

skipif mysql # not compatible
query I rowsort label-157
SELECT - 46 * + ( + 45 ) * + NULLIF ( COUNT ( * ), AVG ( - 77 ) ) - 87
----
-2157

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT + COUNT( * ) + + + 90 + + 43 + 84 * - 48 * + COUNT( * )
----
-3898

skipif mysql # not compatible
query I rowsort label-158
SELECT + COUNT ( * ) + + + 90 + + 43 + 84 * - 48 * + COUNT ( * )
----
-3898

query II rowsort
SELECT 37 AS col2, + 13 * 55
----
37
715

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

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

query I rowsort
SELECT ( + 14 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT DISTINCT - 90 * + - COUNT( * ) - + + 65
----
25

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT - 90 * + - COUNT ( * ) - + + 65
----
25

query I rowsort
SELECT ALL 62 * 60
----
3720

query I rowsort
SELECT ALL + 57 * 48 - + - 82
----
2818

query I rowsort
SELECT - 80 * - 48 * + 24
----
92160

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

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

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

skipif mysql # not compatible
query I rowsort label-167
SELECT + CAST ( NULL AS INTEGER ) + + ( - - 16 ) - - 84
----
NULL

query II rowsort
SELECT ALL + 18, - 95 + - 16 + + + 14 + 60 AS col1
----
18
-37

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-170
SELECT ALL 80 DIV + - 80, + 19 + + 68 AS col1
----
-1
87

skipif mysql # not compatible
query II rowsort label-170
SELECT ALL 80 / + - 80, + 19 + + 68 AS col1
----
-1
87

onlyif mysql # aggregate syntax: 
query II rowsort label-171
SELECT DISTINCT + 61, + COUNT( 91 ) AS col1
----
61
1

skipif mysql # not compatible
query II rowsort label-171
SELECT DISTINCT + 61, + COUNT ( 91 ) AS col1
----
61
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-172
SELECT + 79 * + + MIN( COALESCE ( + 32, + 27 ) ) + - 49 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT + 79 * + + MIN ( COALESCE ( + 32, + 27 ) ) + - 49 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 51, + 59 col2
----
51
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-174
SELECT + 77 + + - CASE CAST( - - 37 AS SIGNED ) WHEN - COALESCE ( - - 25, 56 * + 4 - 79 * + 12 * 3 + + 2, + + COUNT( + + 42 ) * - 2 ) THEN NULL WHEN - 66 THEN - COUNT( 3 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-174
SELECT + 77 + + - CASE CAST ( - - 37 AS INTEGER ) WHEN - COALESCE ( - - 25, 56 * + 4 - 79 * + 12 * 3 + + 2, + + COUNT ( + + 42 ) * - 2 ) THEN NULL WHEN - 66 THEN - COUNT ( 3 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-175
SELECT + CASE - 55 WHEN - 7 * - 5 THEN + - CAST( - - COALESCE ( 60, - + 67 ) AS SIGNED ) ELSE NULL END * - - 60, 25 * 81 * + ( 43 ) * + 21 AS col1
----
NULL
1828575

skipif mysql # not compatible
query II rowsort label-175
SELECT + CASE - 55 WHEN - 7 * - 5 THEN + - CAST ( - - COALESCE ( 60, - + 67 ) AS INTEGER ) ELSE NULL END * - - 60, 25 * 81 * + ( 43 ) * + 21 AS col1
----
NULL
1828575

query II rowsort
SELECT + + 43, - 72 AS col0
----
43
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT + 34 - NULLIF ( - COALESCE ( MAX( - ( 64 ) ), - - SUM( - + 77 ) ), - 83 + - ( 65 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-177
SELECT + 34 - NULLIF ( - COALESCE ( MAX ( - ( 64 ) ), - - SUM ( - + 77 ) ), - 83 + - ( 65 ) )
----
-30

query I rowsort
SELECT + - 99 * 99 col1
----
-9801

query I rowsort
SELECT ALL - 71 * + 20 - 41 + + 67 col1
----
-1394

query II rowsort
SELECT 19 AS col0, 62
----
19
62

query I rowsort
SELECT DISTINCT 49 + - - 59 + + 63
----
171

query I rowsort
SELECT - 93 * 9
----
-837

query II rowsort
SELECT + 83 AS col0, 1 * - 1 col1
----
83
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT + - COUNT( * ) - + + COUNT( * ) + - 68 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-184
SELECT + - COUNT ( * ) - + + COUNT ( * ) + - 68 AS col1
----
-70

query I rowsort
SELECT - + 67 * 19 + 49 col1
----
-1224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-186
SELECT ALL + CAST( NULL AS SIGNED ) * - SUM( DISTINCT + + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL + CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT + + 50 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-187
SELECT ALL COUNT( * ) DIV + MIN( - + 33 )
----
0

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL COUNT ( * ) / + MIN ( - + 33 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-188
SELECT DISTINCT 63 - + CAST( NULL AS SIGNED ) * + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT 63 - + CAST ( NULL AS INTEGER ) * + 0 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-189
SELECT DISTINCT CAST( 46 AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT CAST ( 46 AS INTEGER ) AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-190
SELECT DISTINCT + 35 * - - 68 DIV COUNT( - 83 )
----
2380

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT + 35 * - - 68 / COUNT ( - 83 )
----
2380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-191
SELECT DISTINCT ( - 52 ), - CAST( COUNT( * ) AS SIGNED ) col2
----
-52
-1

skipif mysql # not compatible
query II rowsort label-191
SELECT DISTINCT ( - 52 ), - CAST ( COUNT ( * ) AS INTEGER ) col2
----
-52
-1

query I rowsort
SELECT - 56 + + 99 + - 54 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT - NULLIF ( + 7, + + 30 / + COUNT( * ) ) * - 6 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-193
SELECT - NULLIF ( + 7, + + 30 / + COUNT ( * ) ) * - 6 AS col2
----
42

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

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

query I rowsort
SELECT - 61 * 31 * - + 72 + - - 95 AS col1
----
136247

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

skipif mysql # not compatible
query I rowsort label-196
SELECT 90 / + + COUNT ( * ) + - - 30 AS col1
----
120

query I rowsort
SELECT + COALESCE ( - 43, - 68 - 34 * 78 )
----
-43

query I rowsort
SELECT - 26 * - 42 AS col2
----
1092

query I rowsort
SELECT ALL 73 * - 15 * + + 74 * - 61 AS col2
----
4942830

query I rowsort
SELECT ( + 9 ) * + 69 + - + 5
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT + MIN( ALL + + 98 ) * ( - ( 93 ) ) + - COUNT( * ) col0
----
-9115

skipif mysql # not compatible
query I rowsort label-201
SELECT + MIN ( ALL + + 98 ) * ( - ( 93 ) ) + - COUNT ( * ) col0
----
-9115

query I rowsort
SELECT DISTINCT + - 5 * - - NULLIF ( 39, + 25 )
----
-195

query I rowsort
SELECT ( + - 88 ) * 19 * + + 84 AS col0
----
-140448

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL - + MAX( ALL + ( 6 ) ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL - + MAX ( ALL + ( 6 ) ) col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-205
SELECT ALL - + 1 + + 15 + + + 1 * - COUNT( * ) DIV NULLIF ( 24, + 44 + + 14 ) col1
----
14

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL - + 1 + + 15 + + + 1 * - COUNT ( * ) / NULLIF ( 24, + 44 + + 14 ) col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT ALL 94 + + 66 + COUNT( * )
----
161

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL 94 + + 66 + COUNT ( * )
----
161

query II rowsort
SELECT 81 - + - 51 AS col2, 6 + - - 31
----
132
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-208
SELECT DISTINCT 56 DIV 25 DIV - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT 56 / 25 / - - COUNT ( * )
----
2

query I rowsort
SELECT ALL + 82 + + 66 AS col0
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-210
SELECT + 67 * - 64 * - 44 * COUNT( * ) + + - 26 - + 57 DIV + - ( ( + 69 ) ) * - ( + 98 ) AS col2
----
188646

skipif mysql # not compatible
query I rowsort label-210
SELECT + 67 * - 64 * - 44 * COUNT ( * ) + + - 26 - + 57 / + - ( ( + 69 ) ) * - ( + 98 ) AS col2
----
188646

query I rowsort
SELECT + ( - 26 ) * + 81
----
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT 50 - - MIN( DISTINCT 87 ) AS col2
----
137

skipif mysql # not compatible
query I rowsort label-212
SELECT 50 - - MIN ( DISTINCT 87 ) AS col2
----
137

query I rowsort
SELECT ( - 35 ) + 44 AS col0
----
9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-215
SELECT DISTINCT SUM( DISTINCT + 34 ) - - 99 + 28 DIV - 59 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT SUM ( DISTINCT + 34 ) - - 99 + 28 / - 59 AS col1
----
133

query II rowsort
SELECT DISTINCT 7 AS col1, 52 AS col2
----
7
52

query I rowsort
SELECT NULLIF ( 83, - ( + + 12 ) / - 73 + + 3 + + NULLIF ( - 31, + - 77 ) ) * 52 AS col1
----
4316

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT 58 + - + COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-218
SELECT 58 + - + COUNT ( * ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-219
SELECT - 72, 21 + - + COUNT( * ) AS col1
----
-72
20

skipif mysql # not compatible
query II rowsort label-219
SELECT - 72, 21 + - + COUNT ( * ) AS col1
----
-72
20

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

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

query I rowsort
SELECT DISTINCT + 4 * + 66
----
264

onlyif mysql # aggregate syntax: 
query II rowsort label-222
SELECT ALL 81 AS col0, 66 * - MIN( - 52 )
----
81
3432

skipif mysql # not compatible
query II rowsort label-222
SELECT ALL 81 AS col0, 66 * - MIN ( - 52 )
----
81
3432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-223
SELECT CAST( - - 75 AS SIGNED ) / CASE WHEN NULL IS NOT NULL THEN - 60 END * 29 * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-223
SELECT CAST ( - - 75 AS INTEGER ) / CASE WHEN NULL IS NOT NULL THEN - 60 END * 29 * 26
----
NULL

query II rowsort
SELECT - 35 col0, + 2
----
-35
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-225
SELECT ALL MIN( + - 22 ) + - - CAST( - 91 AS SIGNED ) * - 74
----
6712

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL MIN ( + - 22 ) + - - CAST ( - 91 AS INTEGER ) * - 74
----
6712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-226
SELECT DISTINCT CAST( - NULLIF ( + 2, + 98 * - - 30 ) AS SIGNED ) * 33 * 23 + + + 18
----
-1500

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT CAST ( - NULLIF ( + 2, + 98 * - - 30 ) AS INTEGER ) * 33 * 23 + + + 18
----
-1500

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-228
SELECT ALL + 86 * + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL + 86 * + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 89 * + - 34
----
-3026

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

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

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

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

query I rowsort
SELECT - COALESCE ( + - ( + 31 ), - + 71 )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-233
SELECT + COUNT( * ) DIV + - ( - 12 ) * + 4 + - + 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-233
SELECT + COUNT ( * ) / + - ( - 12 ) * + 4 + - + 20 AS col2
----
-20

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

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT - COUNT ( * ) + - - 5 AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-235
SELECT ALL - - COALESCE ( - NULLIF ( - 51, - ( - COALESCE ( + CAST( NULL AS SIGNED ), + - 32 ) ) * + + MAX( + 40 ) * 66 + + ( + 78 ) ), - - 91 )
----
51

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL - - COALESCE ( - NULLIF ( - 51, - ( - COALESCE ( + CAST ( NULL AS INTEGER ), + - 32 ) ) * + + MAX ( + 40 ) * 66 + + ( + 78 ) ), - - 91 )
----
51

query I rowsort
SELECT ALL 83 + - 29
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT ALL + COUNT( * ) * 82 * + - 62 + + - 72 AS col2
----
-5156

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL + COUNT ( * ) * 82 * + - 62 + + - 72 AS col2
----
-5156

query I rowsort
SELECT ALL - 53 - + 36
----
-89

query I rowsort
SELECT + NULLIF ( 92, + 7 )
----
92

query I rowsort
SELECT 19 + 0
----
19

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

query I rowsort
SELECT ALL - + 81 - 62
----
-143

query I rowsort
SELECT 32 * + ( - 6 ) AS col2
----
-192

query I rowsort
SELECT 22 * + 16 * - 74
----
-26048

onlyif mysql # DIV for integer division: 
query I rowsort label-246
SELECT ALL 51 DIV + - 76
----
0

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL 51 / + - 76
----
0

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

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

query I rowsort
SELECT ALL 45 * + 63 * - - 79 col2
----
223965

query I rowsort
SELECT ALL 3 * - - 47
----
141

query I rowsort
SELECT 48 * + ( 24 )
----
1152

query I rowsort
SELECT ALL - 90 * - ( + ( + 22 ) )
----
1980

query I rowsort
SELECT ALL 68 + + + 43 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT ALL 37 + NULLIF ( - COALESCE ( - - 70, + - 28 - + - 67 ), + COUNT( * ) * 62 + - - 42 * 46 )
----
-33

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL 37 + NULLIF ( - COALESCE ( - - 70, + - 28 - + - 67 ), + COUNT ( * ) * 62 + - - 42 * 46 )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-254
SELECT NULLIF ( - 97, + ( 69 ) ) AS col1, 30 * + - COUNT( * ) AS col0
----
-97
-30

skipif mysql # not compatible
query II rowsort label-254
SELECT NULLIF ( - 97, + ( 69 ) ) AS col1, 30 * + - COUNT ( * ) AS col0
----
-97
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-255
SELECT + ( - 70 ) DIV COALESCE ( - - 86, - 42 ) + 59 * 20 col1, 76
----
1180
76

skipif mysql # not compatible
query II rowsort label-255
SELECT + ( - 70 ) / COALESCE ( - - 86, - 42 ) + 59 * 20 col1, 76
----
1180
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-256
SELECT - 57 - 89 - + 15 DIV + - COUNT( * ), - 44 AS col2
----
-131
-44

skipif mysql # not compatible
query II rowsort label-256
SELECT - 57 - 89 - + 15 / + - COUNT ( * ), - 44 AS col2
----
-131
-44

query I rowsort
SELECT ALL 26 * + - 34
----
-884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-258
SELECT ALL + 80 * COALESCE ( - + COUNT( * ), CAST( NULL AS SIGNED ) + + + 94 ) + + 10 - 87 * 22 AS col2
----
-1984

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL + 80 * COALESCE ( - + COUNT ( * ), CAST ( NULL AS INTEGER ) + + + 94 ) + + 10 - 87 * 22 AS col2
----
-1984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-259
SELECT DISTINCT - ( - 14 ) * + + MIN( ALL - + 77 ) * + 25 + - + 96 + 62 * + + CAST( NULL AS SIGNED ) - - - MAX( DISTINCT - 26 ) + + COUNT( * ) + - ( COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT - ( - 14 ) * + + MIN ( ALL - + 77 ) * + 25 + - + 96 + 62 * + + CAST ( NULL AS INTEGER ) - - - MAX ( DISTINCT - 26 ) + + COUNT ( * ) + - ( COUNT ( * ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL - COUNT( * ) * - + 10 * - + COUNT( * ) * + 43 AS col1
----
-430

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL - COUNT ( * ) * - + 10 * - + COUNT ( * ) * + 43 AS col1
----
-430

query I rowsort
SELECT DISTINCT - 73 * + 27 col1
----
-1971

onlyif mysql # aggregate syntax: 
query II rowsort label-262
SELECT MAX( - 5 ) * + 11 + ( 12 ), + 24 + - ( 48 ) + 16 * - 97 + - 27 AS col0
----
-43
-1603

skipif mysql # not compatible
query II rowsort label-262
SELECT MAX ( - 5 ) * + 11 + ( 12 ), + 24 + - ( 48 ) + 16 * - 97 + - 27 AS col0
----
-43
-1603

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT + MIN( 59 ) * - 70 AS col1
----
-4130

skipif mysql # not compatible
query I rowsort label-263
SELECT + MIN ( 59 ) * - 70 AS col1
----
-4130

query II rowsort
SELECT ALL - 79 * - 70 - - 73 * 37 * + - 71 col0, + 94 AS col1
----
-186241
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-265
SELECT - COUNT( * ) DIV ( - + 37 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-265
SELECT - COUNT ( * ) / ( - + 37 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-266
SELECT - 86 DIV - + 90 + + - 49
----
-49

skipif mysql # not compatible
query I rowsort label-266
SELECT - 86 / - + 90 + + - 49
----
-49

query I rowsort
SELECT - + 85 * 95 AS col2
----
-8075

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

query I rowsort
SELECT ALL + 50 * + 97 - - + 93 * 27
----
7361

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT ALL + - MIN( 16 ) * 73 - + 11 - + COUNT( * ) + + 37 AS col1
----
-1143

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL + - MIN ( 16 ) * 73 - + 11 - + COUNT ( * ) + + 37 AS col1
----
-1143

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-271
SELECT - + NULLIF ( - - 47, AVG ( - NULLIF ( 52, + 45 ) ) ) DIV 52 AS col0, CAST( NULL AS DECIMAL ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-271
SELECT - + NULLIF ( - - 47, AVG ( - NULLIF ( 52, + 45 ) ) ) / 52 AS col0, CAST ( NULL AS REAL ) AS col1
----
0
NULL

query I rowsort
SELECT - 62 - - 43 AS col1
----
-19

query I rowsort
SELECT ALL 64 * + 62
----
3968

query I rowsort
SELECT ALL COALESCE ( + 88, - ( 75 ) + + 63 * - 29 )
----
88

query I rowsort
SELECT ALL CASE + 43 WHEN + 46 THEN - 61 ELSE NULL END AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT - 33 + - + 99 + 42 + - + NULLIF ( - 51, + COUNT( * ) * - - ( - - 38 ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-277
SELECT - 33 + - + 99 + 42 + - + NULLIF ( - 51, + COUNT ( * ) * - - ( - - 38 ) ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT COUNT( * ) * - - 66 - 38 + + 95 - - + 91 * ( + 91 )
----
8404

skipif mysql # not compatible
query I rowsort label-278
SELECT COUNT ( * ) * - - 66 - 38 + + 95 - - + 91 * ( + 91 )
----
8404

query I rowsort
SELECT ALL + 58 + - 0 * 95 AS col1
----
58

query I rowsort
SELECT DISTINCT - ( + 27 ) * 78 AS col2
----
-2106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-281
SELECT DISTINCT CASE - MAX( DISTINCT + 20 ) WHEN 1 THEN - + CAST( - 94 AS SIGNED ) WHEN + 68 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT CASE - MAX ( DISTINCT + 20 ) WHEN 1 THEN - + CAST ( - 94 AS INTEGER ) WHEN + 68 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT - 3 + - COUNT( * ) + - + 25 + - 81 + - 72 * + + 65 * - + 56 - + 77
----
261893

skipif mysql # not compatible
query I rowsort label-282
SELECT - 3 + - COUNT ( * ) + - + 25 + - 81 + - 72 * + + 65 * - + 56 - + 77
----
261893

query I rowsort
SELECT ALL + 31 + + 65 * + 94 - - ( - 14 )
----
6127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-284
SELECT DISTINCT - 77 + + 92 + 57 + + 69 / CAST( NULL AS SIGNED ) + 71 + - + 42 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT - 77 + + 92 + 57 + + 69 / CAST ( NULL AS INTEGER ) + 71 + - + 42 + - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 50 + - 76
----
-26

query II rowsort
SELECT 68, + 86 + - 96 AS col0
----
68
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-287
SELECT + CAST( NULL AS SIGNED ) + 66 + + COALESCE ( + + 20, + 7 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-287
SELECT + CAST ( NULL AS INTEGER ) + 66 + + COALESCE ( + + 20, + 7 ) col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-290
SELECT - COUNT( * ) DIV - + 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-290
SELECT - COUNT ( * ) / - + 44 AS col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-292
SELECT + CAST( 73 AS SIGNED ) * + - COUNT( * ), + 87 + - 2 AS col0
----
-73
85

skipif mysql # not compatible
query II rowsort label-292
SELECT + CAST ( 73 AS INTEGER ) * + - COUNT ( * ), + 87 + - 2 AS col0
----
-73
85

query I rowsort
SELECT ALL - 27 + - + 25 AS col0
----
-52

query I rowsort
SELECT - + 25 col2
----
-25

query I rowsort
SELECT + + 41 * - 15
----
-615

query I rowsort
SELECT ALL - 77 * - - 14
----
-1078

query I rowsort
SELECT + ( - 82 ) col0
----
-82

query II rowsort
SELECT 3 AS col2, 65 * - 62 - - - 29
----
3
-4059

query I rowsort
SELECT - 57 * - 7
----
399

onlyif mysql # DIV for integer division: 
query I rowsort label-300
SELECT + COALESCE ( - 1, + 75 * - 62 DIV + 93 + - 17 + 65 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-300
SELECT + COALESCE ( - 1, + 75 * - 62 / + 93 + - 17 + 65 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 45 * - - 47
----
2115

query II rowsort
SELECT ALL + 48 AS col0, 5 col2
----
48
5

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT + + MAX( DISTINCT + + 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-303
SELECT + + MAX ( DISTINCT + + 88 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-304
SELECT ALL + - COALESCE ( 69, + 13 * - + COUNT( * ), 40 ), SUM( + 25 ) AS col0
----
-69
25

skipif mysql # not compatible
query II rowsort label-304
SELECT ALL + - COALESCE ( 69, + 13 * - + COUNT ( * ), 40 ), SUM ( + 25 ) AS col0
----
-69
25

query II rowsort
SELECT DISTINCT + 1 * - 44 * + 6 AS col0, 79 * + 77
----
-264
6083

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT - + CASE - COUNT( * ) WHEN COUNT( * ) THEN - + 10 + ( + 15 ) WHEN - COUNT( * ) + - MAX( + - 20 ) THEN NULL END - 42 * 95 - 67 * - 71 * COUNT( * ) + + 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-306
SELECT - + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN - + 10 + ( + 15 ) WHEN - COUNT ( * ) + - MAX ( + - 20 ) THEN NULL END - 42 * 95 - 67 * - 71 * COUNT ( * ) + + 87 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-307
SELECT CASE 12 WHEN + CAST( 43 AS SIGNED ) THEN - 87 + 66 * - - 77 * + - 84 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-307
SELECT CASE 12 WHEN + CAST ( 43 AS INTEGER ) THEN - 87 + 66 * - - 77 * + - 84 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-308
SELECT + CAST( - NULLIF ( - + ( + 73 ), - 89 ) AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-308
SELECT + CAST ( - NULLIF ( - + ( + 73 ), - 89 ) AS INTEGER )
----
73

query I rowsort
SELECT + 34 * ( - 5 ) AS col0
----
-170

query I rowsort
SELECT - 10 * + 54 AS col1
----
-540

query I rowsort
SELECT ALL 1 * 18 + - + 57 + - 46 AS col0
----
-85

query II rowsort
SELECT - 20 AS col2, 69 AS col2
----
-20
69

query I rowsort
SELECT ALL NULLIF ( 71, - + 82 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-314
SELECT ALL CAST( NULL AS SIGNED ) * 54 + + 27 - - SUM( 29 ) * + COUNT( * ) * 62 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL CAST ( NULL AS INTEGER ) * 54 + + 27 - - SUM ( 29 ) * + COUNT ( * ) * 62 col0
----
NULL

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

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

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

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

query II rowsort
SELECT ALL 44 * + 80 + - 59 + 59 AS col1, + 94
----
3520
94

query I rowsort
SELECT DISTINCT - 73 * 36
----
-2628

query II rowsort
SELECT 40, 71 AS col1
----
40
71

query I rowsort
SELECT 73 - - 34 AS col0
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-321
SELECT ALL - 28 - - COUNT( * ) AS col2, 54 + - + 91
----
-27
-37

skipif mysql # not compatible
query II rowsort label-321
SELECT ALL - 28 - - COUNT ( * ) AS col2, 54 + - + 91
----
-27
-37

query I rowsort
SELECT DISTINCT - 55 * 84
----
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT 25 - - COUNT( + 96 ) - + COUNT( * ) * + - 7 * ( - 11 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-323
SELECT 25 - - COUNT ( + 96 ) - + COUNT ( * ) * + - 7 * ( - 11 ) AS col2
----
-51

query II rowsort
SELECT ALL - 84 AS col1, + 23
----
-84
23

query I rowsort
SELECT DISTINCT ( 23 ) col1
----
23

query II rowsort
SELECT ALL - 14 AS col2, 27 col0
----
-14
27

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT ALL - + 42 - + COUNT( * ) * 23 * - NULLIF ( - 70, 3 ) AS col1
----
-1652

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL - + 42 - + COUNT ( * ) * 23 * - NULLIF ( - 70, 3 ) AS col1
----
-1652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-328
SELECT DISTINCT + + CASE - MIN( 3 ) WHEN + - 79 THEN NULL WHEN + + COUNT( * ) THEN NULL ELSE - - 11 * - 55 END DIV COUNT( * )
----
-605

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT + + CASE - MIN ( 3 ) WHEN + - 79 THEN NULL WHEN + + COUNT ( * ) THEN NULL ELSE - - 11 * - 55 END / COUNT ( * )
----
-605

query I rowsort
SELECT + + 14 * - 95 + + + 80 + 21 AS col2
----
-1229

onlyif mysql # DIV for integer division: 
query I rowsort label-330
SELECT 94 DIV 76
----
1

skipif mysql # not compatible
query I rowsort label-330
SELECT 94 / 76
----
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-332
SELECT 43 + - 74 + + + 97 * COUNT( * ) DIV + - 8
----
-43

skipif mysql # not compatible
query I rowsort label-332
SELECT 43 + - 74 + + + 97 * COUNT ( * ) / + - 8
----
-43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT ALL + - COALESCE ( 85, - 42 + - - 99 + - + 74 + - COUNT( * ) - + + MAX( DISTINCT + 6 ) * - - 36 - - NULLIF ( - 6, - + 22 + - + ( + 47 ) ) + + + 87 + COALESCE ( + 18, 61 - 19 ), + 7 ) * + 83 + 30 AS col2
----
-7025

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL + - COALESCE ( 85, - 42 + - - 99 + - + 74 + - COUNT ( * ) - + + MAX ( DISTINCT + 6 ) * - - 36 - - NULLIF ( - 6, - + 22 + - + ( + 47 ) ) + + + 87 + COALESCE ( + 18, 61 - 19 ), + 7 ) * + 83 + 30 AS col2
----
-7025

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

skipif mysql # not compatible
query I rowsort label-335
SELECT + - SUM ( - 75 )
----
75

query I rowsort
SELECT ( + COALESCE ( - 9, - 99 ) ) col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-337
SELECT - 83 / + CAST( NULL AS DECIMAL ) + + CAST( - - 4 AS SIGNED ) - + - 90 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT - 83 / + CAST ( NULL AS REAL ) + + CAST ( - - 4 AS INTEGER ) - + - 90 col0
----
NULL

query II rowsort
SELECT ALL - 55, - 55
----
-55
-55

query II rowsort
SELECT 54, 93 - + 21 AS col1
----
54
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-340
SELECT 60 AS col1, - CAST( - 77 AS SIGNED ) + + 64
----
60
141

skipif mysql # not compatible
query II rowsort label-340
SELECT 60 AS col1, - CAST ( - 77 AS INTEGER ) + + 64
----
60
141

onlyif mysql # aggregate syntax: 
query II rowsort label-341
SELECT ALL 28 + - + 89, COUNT( * ) AS col2
----
-61
1

skipif mysql # not compatible
query II rowsort label-341
SELECT ALL 28 + - + 89, COUNT ( * ) AS col2
----
-61
1

query I rowsort
SELECT 38 + - 63 AS col1
----
-25

query II rowsort
SELECT ALL 22 + - 56 + - 94 * + ( - 78 ), ( - 62 ) col1
----
7298
-62

query I rowsort
SELECT ALL 92 + 63 col1
----
155

query I rowsort
SELECT DISTINCT ( 51 ) + + 6 + - - 75 - - + 50 + + 16 * - + 5 + + 6
----
108

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

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL + COUNT ( * ) + ( CASE - 21 WHEN - 72 THEN - 74 END )
----
NULL

query III rowsort
SELECT ( 30 ) + + 14 AS col1, 36 + 46, + + 68 AS col1
----
44
82
68

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT COUNT( DISTINCT + + 78 ) * 67 + - ( 5 ) * + 0 + 39 + 34 * + - 3 + - 81 * + CASE + 24 WHEN 66 * + - 14 + + + 56 + + ( - MIN( ALL - ( + - ( + 6 ) ) ) ) THEN - 18 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-348
SELECT COUNT ( DISTINCT + + 78 ) * 67 + - ( 5 ) * + 0 + 39 + 34 * + - 3 + - 81 * + CASE + 24 WHEN 66 * + - 14 + + + 56 + + ( - MIN ( ALL - ( + - ( + 6 ) ) ) ) THEN - 18 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT ( COUNT( * ) ) + + - 22 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-349
SELECT ( COUNT ( * ) ) + + - 22 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT MAX( + 50 ) + - + 64 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-350
SELECT MAX ( + 50 ) + - + 64 AS col1
----
-14

query II rowsort
SELECT 96 * - 54 - - ( + 32 ) + - 22 * 41 * + 81 AS col2, + 40 * 40
----
-78214
1600

query II rowsort
SELECT 11 * - 41 AS col1, 48 * - 71
----
-451
-3408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-353
SELECT CAST( + MAX( + + 25 ) AS SIGNED ) + - 17 + + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-353
SELECT CAST ( + MAX ( + + 25 ) AS INTEGER ) + - 17 + + COUNT ( * ) AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-354
SELECT ALL + 96 - - COUNT( 44 ) - + - COALESCE ( 51, - + 5 DIV + - 75 + 43 + 90, + 84 * - 38 + 26 + - 8 + 69 + + 63 * + - 42 DIV - 43 )
----
148

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL + 96 - - COUNT ( 44 ) - + - COALESCE ( 51, - + 5 / + - 75 + 43 + 90, + 84 * - 38 + 26 + - 8 + 69 + + 63 * + - 42 / - 43 )
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-355
SELECT 89 * + 87 AS col1, + 1 - + - CAST( - - AVG ( + + 48 ) AS SIGNED ) AS col2
----
7743
49

skipif mysql # not compatible
query II rowsort label-355
SELECT 89 * + 87 AS col1, + 1 - + - CAST ( - - AVG ( + + 48 ) AS INTEGER ) AS col2
----
7743
49

query II rowsort
SELECT 1 * - 22, 54 * + 56 - 97 AS col2
----
-22
2927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-357
SELECT + CASE 85 WHEN + - 98 + - - CAST( - 9 AS SIGNED ) + - - 88 THEN + MIN( - 73 ) END AS col0, - SUM( - 38 )
----
NULL
38

skipif mysql # not compatible
query II rowsort label-357
SELECT + CASE 85 WHEN + - 98 + - - CAST ( - 9 AS INTEGER ) + - - 88 THEN + MIN ( - 73 ) END AS col0, - SUM ( - 38 )
----
NULL
38

onlyif mysql # aggregate syntax: 
query II rowsort label-358
SELECT + 42 * ( COUNT( * ) ) + - - 67 + + 76, 90 * + 65 col1
----
185
5850

skipif mysql # not compatible
query II rowsort label-358
SELECT + 42 * ( COUNT ( * ) ) + - - 67 + + 76, 90 * + 65 col1
----
185
5850

query I rowsort
SELECT + 12 * 15 AS col2
----
180

query I rowsort
SELECT DISTINCT + COALESCE ( 41, 70 ) * - 32
----
-1312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-361
SELECT ALL + 95 * - CASE + COUNT( * ) WHEN 24 + + - CAST( + 22 AS SIGNED ) THEN - - 99 + 48 + + - 91 ELSE NULL END * ( - NULLIF ( - CAST( NULL AS SIGNED ), + + 16 ) ) * - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL + 95 * - CASE + COUNT ( * ) WHEN 24 + + - CAST ( + 22 AS INTEGER ) THEN - - 99 + 48 + + - 91 ELSE NULL END * ( - NULLIF ( - CAST ( NULL AS INTEGER ), + + 16 ) ) * - 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT 9 + 58 + + 99 + COUNT( * ) * 23 * 17
----
557

skipif mysql # not compatible
query I rowsort label-362
SELECT 9 + 58 + + 99 + COUNT ( * ) * 23 * 17
----
557

query II rowsort
SELECT ALL + 34 + - 6, + 89 - + 78 AS col1
----
28
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT MAX( ALL 92 ) * COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-365
SELECT MAX ( ALL 92 ) * COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-366
SELECT + SUM( DISTINCT 60 ), 75 AS col0
----
60
75

skipif mysql # not compatible
query II rowsort label-366
SELECT + SUM ( DISTINCT 60 ), 75 AS col0
----
60
75

query I rowsort
SELECT ALL + 23 * - - ( 27 ) + + + 72 AS col1
----
693

onlyif mysql # DIV for integer division: 
query I rowsort label-368
SELECT 88 DIV - 26 - 26 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-368
SELECT 88 / - 26 - 26 AS col2
----
-29

query I rowsort
SELECT DISTINCT 59 * - - 2 + + 40 col2
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-370
SELECT CAST( 59 AS SIGNED ) - 11 - 40 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-370
SELECT CAST ( 59 AS INTEGER ) - 11 - 40 AS col2
----
8

query I rowsort
SELECT - 69 * - 38
----
2622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-372
SELECT ALL - 22 * + 49 + - + CAST( - 14 AS SIGNED ) + 83 - - CAST( NULL AS SIGNED ) / 51 / + 51 / + 68 * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL - 22 * + 49 + - + CAST ( - 14 AS INTEGER ) + 83 - - CAST ( NULL AS INTEGER ) / 51 / + 51 / + 68 * + 27
----
NULL

query I rowsort
SELECT ALL 81 * - 47 AS col0
----
-3807

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT DISTINCT + 90 * - COUNT( * ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT + 90 * - COUNT ( * ) AS col0
----
-90

query II rowsort
SELECT ALL - 38 AS col1, 84 * - - 57
----
-38
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT ( - 94 ) * COALESCE ( + 10, + ( - 29 ), + - 87 + 14 ) + COUNT( * ) - - 53 col2
----
-886

skipif mysql # not compatible
query I rowsort label-376
SELECT ( - 94 ) * COALESCE ( + 10, + ( - 29 ), + - 87 + 14 ) + COUNT ( * ) - - 53 col2
----
-886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-377
SELECT DISTINCT - 27 + 82 * + CAST( NULL AS SIGNED ) + 93 * + ( - ( - MAX( DISTINCT - 62 ) ) ) AS col0, NULLIF ( 34, + 89 ) AS col1
----
NULL
34

skipif mysql # not compatible
query II rowsort label-377
SELECT DISTINCT - 27 + 82 * + CAST ( NULL AS INTEGER ) + 93 * + ( - ( - MAX ( DISTINCT - 62 ) ) ) AS col0, NULLIF ( 34, + 89 ) AS col1
----
NULL
34

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-379
SELECT COUNT( * ) AS col1, + MIN( DISTINCT + 85 )
----
1
85

skipif mysql # not compatible
query II rowsort label-379
SELECT COUNT ( * ) AS col1, + MIN ( DISTINCT + 85 )
----
1
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-380
SELECT + 87 * + - CAST( + CAST( - 4 AS SIGNED ) AS SIGNED ) + - + 27 col1
----
321

skipif mysql # not compatible
query I rowsort label-380
SELECT + 87 * + - CAST ( + CAST ( - 4 AS INTEGER ) AS INTEGER ) + - + 27 col1
----
321

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

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

query I rowsort
SELECT + NULLIF ( - - 32, + 8 + 41 + ( + - 8 ) - + 67 ) * - 13 * + + 87 AS col0
----
-36192

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT DISTINCT COUNT( * ) - 75 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT COUNT ( * ) - 75 AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-385
SELECT + CAST( + 43 AS SIGNED ) * + + SUM( - ( + 45 ) ) AS col1
----
-1935

skipif mysql # not compatible
query I rowsort label-385
SELECT + CAST ( + 43 AS INTEGER ) * + + SUM ( - ( + 45 ) ) AS col1
----
-1935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-386
SELECT DISTINCT MAX( DISTINCT 92 ) DIV - + 98
----
0

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT MAX ( DISTINCT 92 ) / - + 98
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-387
SELECT ALL COUNT( * ) AS col2, 41 + - 88
----
1
-47

skipif mysql # not compatible
query II rowsort label-387
SELECT ALL COUNT ( * ) AS col2, 41 + - 88
----
1
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT - NULLIF ( + + SUM( ALL - - 94 ), + 77 * - 41 * - AVG ( ALL 44 ) )
----
-94

skipif mysql # not compatible
query I rowsort label-388
SELECT - NULLIF ( + + SUM ( ALL - - 94 ), + 77 * - 41 * - AVG ( ALL 44 ) )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-389
SELECT + CAST( NULL AS DECIMAL ) * 85 / - - 92 * - + NULLIF ( + 89, + 70 + ( SUM( DISTINCT - 27 ) ) + 0 + + - COUNT( * ) + - AVG ( DISTINCT - - 61 ) + + - 45 / + 54 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-389
SELECT + CAST ( NULL AS REAL ) * 85 / - - 92 * - + NULLIF ( + 89, + 70 + ( SUM ( DISTINCT - 27 ) ) + 0 + + - COUNT ( * ) + - AVG ( DISTINCT - - 61 ) + + - 45 / + 54 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-390
SELECT + COUNT( * ) - - 98 * - 78, 62 * - 3 * - CAST( NULL AS SIGNED ) * 2 + 59 AS col1
----
-7643
NULL

skipif mysql # not compatible
query II rowsort label-390
SELECT + COUNT ( * ) - - 98 * - 78, 62 * - 3 * - CAST ( NULL AS INTEGER ) * 2 + 59 AS col1
----
-7643
NULL

query I rowsort
SELECT DISTINCT 66 * - - 72 - 64 + - 41 AS col0
----
4647

query I rowsort
SELECT - + 29 * - - 38 col2
----
-1102

query I rowsort
SELECT + 54 + + + 70 AS col1
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-394
SELECT ALL MAX( ALL + ( 5 ) ) AS col1, + 43
----
5
43

skipif mysql # not compatible
query II rowsort label-394
SELECT ALL MAX ( ALL + ( 5 ) ) AS col1, + 43
----
5
43

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-396
SELECT DISTINCT - + 12 DIV 2 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT - + 12 / 2 AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-397
SELECT - - CASE + + 99 WHEN + - COUNT( * ) + 42 * - 73 THEN NULL WHEN + 34 / + CAST( NULL AS DECIMAL ) THEN + - 2 + - ( + 85 ) WHEN + - MIN( ALL - CAST( NULL AS SIGNED ) ) - + 31 THEN 94 - 21 ELSE 0 END - + 47
----
-47

skipif mysql # not compatible
query I rowsort label-397
SELECT - - CASE + + 99 WHEN + - COUNT ( * ) + 42 * - 73 THEN NULL WHEN + 34 / + CAST ( NULL AS REAL ) THEN + - 2 + - ( + 85 ) WHEN + - MIN ( ALL - CAST ( NULL AS INTEGER ) ) - + 31 THEN 94 - 21 ELSE 0 END - + 47
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-398
SELECT ALL - 47 DIV + 47
----
-1

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL - 47 / + 47
----
-1

query I rowsort
SELECT - + 77 - - + 57
----
-20

query I rowsort
SELECT ALL - ( - - 66 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-401
SELECT - + 90, + NULLIF ( - CAST( NULL AS SIGNED ), + - COUNT( 81 ) + 29 ) + - - 31 * - 17 AS col0
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-401
SELECT - + 90, + NULLIF ( - CAST ( NULL AS INTEGER ), + - COUNT ( 81 ) + 29 ) + - - 31 * - 17 AS col0
----
-90
NULL

query I rowsort
SELECT + + 8 + + 10
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT + ( + COUNT( * ) ) + - + COALESCE ( + 99, + - 97 * + + 74 + + COUNT( * ) ) * + - 68 + COUNT( * )
----
6734

skipif mysql # not compatible
query I rowsort label-404
SELECT + ( + COUNT ( * ) ) + - + COALESCE ( + 99, + - 97 * + + 74 + + COUNT ( * ) ) * + - 68 + COUNT ( * )
----
6734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-405
SELECT 42 DIV COALESCE ( + 35, - 84 * + COUNT( * ) + + - 74 ) * + - 37 * - + 38 + + 36 + + - MAX( - 56 ) - - 21 + + 41 * - ( + 99 )
----
-2540

skipif mysql # not compatible
query I rowsort label-405
SELECT 42 / COALESCE ( + 35, - 84 * + COUNT ( * ) + + - 74 ) * + - 37 * - + 38 + + 36 + + - MAX ( - 56 ) - - 21 + + 41 * - ( + 99 )
----
-2540

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT DISTINCT CASE - 38 WHEN + - 0 + - MIN( DISTINCT - 76 ) THEN NULL WHEN - 14 / - 89 THEN NULL ELSE + - 16 + + ( 18 ) * + 59 END * + 1 * - - COALESCE ( - + MIN( + - 3 ), - 2 ) + + - 29 * - COUNT( * ) * - SUM( DISTINCT - 60 ) + - COUNT( * ) + + COALESCE ( - CASE + COUNT( * ) WHEN + + 6 * - 84 * + 99 THEN - ( + 72 ) END, ( + - 77 ) * - - 37 - ( - + NULLIF ( - - 22, - 7 ) ) * 84, + 86 ) * + + 80 * - - 40 * + ( 15 ) AS col0
----
-48043123

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT CASE - 38 WHEN + - 0 + - MIN ( DISTINCT - 76 ) THEN NULL WHEN - 14 / - 89 THEN NULL ELSE + - 16 + + ( 18 ) * + 59 END * + 1 * - - COALESCE ( - + MIN ( + - 3 ), - 2 ) + + - 29 * - COUNT ( * ) * - SUM ( DISTINCT - 60 ) + - COUNT ( * ) + + COALESCE ( - CASE + COUNT ( * ) WHEN + + 6 * - 84 * + 99 THEN - ( + 72 ) END, ( + - 77 ) * - - 37 - ( - + NULLIF ( - - 22, - 7 ) ) * 84, + 86 ) * + + 80 * - - 40 * + ( 15 ) AS col0
----
-48043123

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT SUM( 32 ) * - 12 + + 42
----
-342

skipif mysql # not compatible
query I rowsort label-408
SELECT SUM ( 32 ) * - 12 + + 42
----
-342

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT + COUNT( - 90 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-409
SELECT + COUNT ( - 90 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-410
SELECT ALL + NULLIF ( - NULLIF ( + 9, - CAST( NULL AS SIGNED ) - + COUNT( * ) + 93 ), 78 ) AS col2, 88 + - 76 + 22 + + 3 * - 61, - - 35 * 22 col1
----
-9
-149
770

skipif mysql # not compatible
query III rowsort label-410
SELECT ALL + NULLIF ( - NULLIF ( + 9, - CAST ( NULL AS INTEGER ) - + COUNT ( * ) + 93 ), 78 ) AS col2, 88 + - 76 + 22 + + 3 * - 61, - - 35 * 22 col1
----
-9
-149
770

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT - COUNT( * ) + 55 + - 91 + 90 * + - 15
----
-1387

skipif mysql # not compatible
query I rowsort label-411
SELECT - COUNT ( * ) + 55 + - 91 + 90 * + - 15
----
-1387

query I rowsort
SELECT - 4 * - - 46 * + 39
----
-7176

onlyif mysql # DIV for integer division: 
query I rowsort label-413
SELECT DISTINCT - 23 DIV - 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-413
SELECT DISTINCT - 23 / - 25 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-414
SELECT DISTINCT 50 * - CASE 69 WHEN - CAST( 78 AS SIGNED ) THEN ( 32 ) WHEN - 54 + + CASE - ( + 89 ) WHEN - 64 THEN 17 * - - 64 * + 28 ELSE - + 10 * - NULLIF ( 48, - 37 ) END + + - 60 THEN 1 WHEN COUNT( * ) + ( - 82 ) THEN NULL ELSE NULL END * - NULLIF ( 91, - 95 * - 97 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT 50 * - CASE 69 WHEN - CAST ( 78 AS INTEGER ) THEN ( 32 ) WHEN - 54 + + CASE - ( + 89 ) WHEN - 64 THEN 17 * - - 64 * + 28 ELSE - + 10 * - NULLIF ( 48, - 37 ) END + + - 60 THEN 1 WHEN COUNT ( * ) + ( - 82 ) THEN NULL ELSE NULL END * - NULLIF ( 91, - 95 * - 97 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT - 73 * - SUM( DISTINCT + 73 )
----
5329

skipif mysql # not compatible
query I rowsort label-415
SELECT - 73 * - SUM ( DISTINCT + 73 )
----
5329

query II rowsort
SELECT DISTINCT + ( - 31 ) AS col0, + 79
----
-31
79

query I rowsort
SELECT ALL + 42 * - NULLIF ( + + ( - + 10 ), ( + ( + + 21 ) ) ) * 70
----
29400

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

skipif mysql # not compatible
query I rowsort label-418
SELECT - COUNT ( * ) / 47 AS col1
----
0

query II rowsort
SELECT + 43 + - 6, 36 col0
----
37
36

onlyif mysql # DIV for integer division: 
query II rowsort label-420
SELECT + 19 * - 59 * - 86 DIV 2 col1, + 13
----
48203
13

skipif mysql # not compatible
query II rowsort label-420
SELECT + 19 * - 59 * - 86 / 2 col1, + 13
----
48203
13

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT + COUNT( * ) - - 60 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-421
SELECT + COUNT ( * ) - - 60 AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-422
SELECT + - 47 + ( - CAST( - - COUNT( DISTINCT + 13 ) AS SIGNED ) )
----
-48

skipif mysql # not compatible
query I rowsort label-422
SELECT + - 47 + ( - CAST ( - - COUNT ( DISTINCT + 13 ) AS INTEGER ) )
----
-48

query I rowsort
SELECT DISTINCT + + 6 + + + 86 AS col1
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-424
SELECT DISTINCT 86 + + 68 AS col1, ( COUNT( * ) ) AS col1
----
154
1

skipif mysql # not compatible
query II rowsort label-424
SELECT DISTINCT 86 + + 68 AS col1, ( COUNT ( * ) ) AS col1
----
154
1

query I rowsort
SELECT ALL + 87 + - + 89
----
-2

query I rowsort
SELECT + + 81 + - 89 AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-427
SELECT ALL + COUNT( * ) + + + 82 * - - 45 * + + CAST( - - ( - + 11 ) AS SIGNED ) AS col1
----
-40589

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL + COUNT ( * ) + + + 82 * - - 45 * + + CAST ( - - ( - + 11 ) AS INTEGER ) AS col1
----
-40589

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT + 87 + + + COUNT( ALL + 50 )
----
88

skipif mysql # not compatible
query I rowsort label-428
SELECT + 87 + + + COUNT ( ALL + 50 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-429
SELECT + 1 + - NULLIF ( - 72, CAST( NULL AS SIGNED ) * - 43 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-429
SELECT + 1 + - NULLIF ( - 72, CAST ( NULL AS INTEGER ) * - 43 ) AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-430
SELECT ALL CASE + MAX( DISTINCT + + 6 ) WHEN + + 18 * + ( - COUNT( * ) ) THEN 58 DIV - 58 + - COALESCE ( - + 36, - - 87, - + CASE + COUNT( * ) WHEN - 21 + 74 THEN - 18 END * - 53 ) + + - 87 + + - 95 WHEN + 66 THEN - COUNT( * ) ELSE - - 62 END + - 50 + + - 17
----
-5

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL CASE + MAX ( DISTINCT + + 6 ) WHEN + + 18 * + ( - COUNT ( * ) ) THEN 58 / - 58 + - COALESCE ( - + 36, - - 87, - + CASE + COUNT ( * ) WHEN - 21 + 74 THEN - 18 END * - 53 ) + + - 87 + + - 95 WHEN + 66 THEN - COUNT ( * ) ELSE - - 62 END + - 50 + + - 17
----
-5

query I rowsort
SELECT + 15 + 12 + - 62 * 73 + 44
----
-4455

query I rowsort
SELECT ALL 84 + - + 61 - 66 * - - 36 AS col0
----
-2353

query I rowsort
SELECT + 54 * - 81 * + 2
----
-8748

query I rowsort
SELECT - + 40 * + 79 * + 86 AS col1
----
-271760

query I rowsort
SELECT ALL COALESCE ( 42, 62 + - 48, - - 5 )
----
42

query I rowsort
SELECT DISTINCT 16 + 34 AS col0
----
50

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

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL + 10 - - + COUNT ( * ) / + 48 AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-438
SELECT DISTINCT + ( + 43 ) DIV - + 11 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT + ( + 43 ) / - + 11 AS col2
----
-3

query I rowsort
SELECT 83 + - 65 AS col1
----
18

query I rowsort
SELECT DISTINCT 63 / + CASE + 21 WHEN + 28 / + 40 + + 47 + - 94 + 78 * + 15 * 72 THEN + 13 / 36 * - 4 END * + + 27 AS col0
----
NULL

query I rowsort
SELECT 57 * + 20 * 74 AS col2
----
84360

query I rowsort
SELECT CASE + 37 WHEN 6 THEN NULL ELSE + 3 + + ( + + 17 ) END - 55 + - 90 * ( - - 53 ) * - 70 AS col0
----
333865

query I rowsort
SELECT ALL - COALESCE ( + 55, + 18 * + 77, 9 ) * - 84 + - 90 AS col2
----
4530

query I rowsort
SELECT 82 * + + 28 AS col1
----
2296

onlyif mysql # aggregate syntax: 
query II rowsort label-445
SELECT ALL - COUNT( * ) col0, 68
----
-1
68

skipif mysql # not compatible
query II rowsort label-445
SELECT ALL - COUNT ( * ) col0, 68
----
-1
68

query I rowsort
SELECT 98 + - 25 + 98 * + 27
----
2719

query I rowsort
SELECT 1 * - 90
----
-90

query I rowsort
SELECT ALL - 10 * - 81 AS col0
----
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-449
SELECT 11 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-449
SELECT 11 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 3 AS col0, + 64 AS col0
----
3
64

query I rowsort
SELECT 27 * + 60
----
1620

query I rowsort
SELECT 33 + - 31 + + 4 - - 4
----
10

query I rowsort
SELECT ALL + 38 + + 44 / + ( + CASE 17 WHEN 71 THEN NULL WHEN + - 18 THEN + - 45 ELSE NULL END ) * + CASE 77 WHEN + 54 THEN NULL WHEN 68 THEN 5 END AS col2
----
NULL

query I rowsort
SELECT ALL - ( 51 ) * 58
----
-2958

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT + 66 * CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT ALL 72 + NULLIF ( 71, + 2 ) AS col1
----
143

query I rowsort
SELECT DISTINCT 30 + ( + 55 ) AS col2
----
85

query I rowsort
SELECT DISTINCT - 93 + + CASE + 75 WHEN + 70 THEN AVG ( DISTINCT 76 ) * 21 END * 83
----
NULL

query I rowsort
SELECT 13 * - NULLIF ( + ( 76 ), - 81 )
----
-988

query I rowsort
SELECT 23 - - 50
----
73

query I rowsort
SELECT 32 - + 75
----
-43

query I rowsort
SELECT ALL - 76 + - 11 * 89
----
-1055

query I rowsort
SELECT ALL 82 - 14
----
68

query I rowsort
SELECT ALL 58 - - 40
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT 67 - + 74 * + COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-467
SELECT 67 - + 74 * + COUNT ( * ) AS col0
----
-7

query I rowsort
SELECT DISTINCT 87 * 63 AS col1
----
5481

query I rowsort
SELECT ALL 22 * COALESCE ( - 15, - 92 ) AS col1
----
-330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-470
SELECT 57 * COALESCE ( - NULLIF ( - CAST( NULL AS SIGNED ), + COUNT( * ) * - 19 + 36 * 1 ), - 30 ) AS col0
----
-1710

skipif mysql # not compatible
query I rowsort label-470
SELECT 57 * COALESCE ( - NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) * - 19 + 36 * 1 ), - 30 ) AS col0
----
-1710

query I rowsort
SELECT 66 + + 99 AS col0
----
165

query I rowsort
SELECT ALL 86 * 4 AS col2
----
344

query I rowsort
SELECT ( 39 ) * + 59 AS col1
----
2301

query I rowsort
SELECT 82 * NULLIF ( + 48, ( - 30 ) - - 95 )
----
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT 17 * COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-475
SELECT 17 * COUNT ( * ) AS col1
----
17

query I rowsort
SELECT ALL 50 + 61
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ( + COUNT( * ) ) + ( COUNT( * ) ) * NULLIF ( 29 * 48 + 23, + 51 + - COUNT( * ) )
----
1416

skipif mysql # not compatible
query I rowsort label-477
SELECT ( + COUNT ( * ) ) + ( COUNT ( * ) ) * NULLIF ( 29 * 48 + 23, + 51 + - COUNT ( * ) )
----
1416

query I rowsort
SELECT ALL - 79 + - 93 AS col0
----
-172

query I rowsort
SELECT DISTINCT + COALESCE ( - 68, + 85 ) + + 34 AS col0
----
-34

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

skipif mysql # not compatible
query I rowsort label-480
SELECT - ( - COUNT ( * ) ) * + 24 + 6 / COUNT ( * )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-481
SELECT ALL + CAST( NULL AS SIGNED ) + 93 * - SUM( DISTINCT + ( ( + 77 ) ) + - 57 * 99 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL + CAST ( NULL AS INTEGER ) + 93 * - SUM ( DISTINCT + ( ( + 77 ) ) + - 57 * 99 ) col1
----
NULL

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

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

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

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

query I rowsort
SELECT - - 50 * 25 + + 50 AS col1
----
1300

query I rowsort
SELECT DISTINCT + 18 + - 84
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT ALL + + SUM( + 32 ) + - 5 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL + + SUM ( + 32 ) + - 5 AS col2
----
27

query I rowsort
SELECT - 67 * 39 + 69 AS col1
----
-2544

onlyif mysql # DIV for integer division: 
query I rowsort label-488
SELECT ALL + + 0 DIV - COALESCE ( 19, 83, - 34 * + 24 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-488
SELECT ALL + + 0 / - COALESCE ( 19, 83, - 34 * + 24 ) AS col0
----
0

query I rowsort
SELECT - 36 + 10
----
-26

query I rowsort
SELECT ALL 6 - 40
----
-34

query I rowsort
SELECT - 45 * 81
----
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT ALL - + COUNT( DISTINCT 17 ) - - 4 * COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL - + COUNT ( DISTINCT 17 ) - - 4 * COUNT ( * )
----
3

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

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

query I rowsort
SELECT - 63 * - 30 AS col1
----
1890

query I rowsort
SELECT ALL + 74 * 97
----
7178

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT ALL + NULLIF ( 65, COUNT( DISTINCT 11 ) )
----
65

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL + NULLIF ( 65, COUNT ( DISTINCT 11 ) )
----
65

query I rowsort
SELECT DISTINCT + - 58 * - 45
----
2610

query I rowsort
SELECT - - 77 * + COALESCE ( 5, + 3 + + 90 )
----
385

query I rowsort
SELECT - - 19 * ( 36 ) AS col2
----
684

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

skipif mysql # not compatible
query I rowsort label-500
SELECT - + 3 / ( - 62 * COUNT ( * ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-501
SELECT + COALESCE ( 82, - 17 ) DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-501
SELECT + COALESCE ( 82, - 17 ) / + 98
----
0

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

query I rowsort
SELECT + 10 * 54
----
540

query I rowsort
SELECT ALL NULLIF ( - 93, 21 * + 27 + 48 ) AS col1
----
-93

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

query I rowsort
SELECT ALL - 55 + + - 90 + + 68
----
-77

query I rowsort
SELECT DISTINCT COALESCE ( - + 18, 90 ) * 22
----
-396

query I rowsort
SELECT + 45 * 87 + 73 AS col2
----
3988

query I rowsort
SELECT + 44 + - 15
----
29

query I rowsort
SELECT + NULLIF ( 93, 28 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT ALL - 4 * + - COUNT( * ) + CASE + 31 - COUNT( * ) * 16 WHEN 95 THEN + 81 WHEN - COUNT( + 96 ) THEN - 49 - ( ( 40 ) ) ELSE - ( - 6 ) + 78 END
----
88

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL - 4 * + - COUNT ( * ) + CASE + 31 - COUNT ( * ) * 16 WHEN 95 THEN + 81 WHEN - COUNT ( + 96 ) THEN - 49 - ( ( 40 ) ) ELSE - ( - 6 ) + 78 END
----
88

query I rowsort
SELECT + 91 - + 26 + - 20 col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT + CASE - 51 WHEN + NULLIF ( 76, SUM( ALL 13 ) * 92 ) THEN 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-513
SELECT + CASE - 51 WHEN + NULLIF ( 76, SUM ( ALL 13 ) * 92 ) THEN 72 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-514
SELECT + 8 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-514
SELECT + 8 / 84
----
0

query I rowsort
SELECT ALL 13 * NULLIF ( 11, + 88 * - 71 ) * - 58 + + 5
----
-8289

query I rowsort
SELECT DISTINCT + 66 * - - 23
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT ALL + CASE + 74 WHEN COALESCE ( 52, - 21 * 70 ) * 58 THEN 90 ELSE NULL END * + MAX( 63 + 40 ) + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL + CASE + 74 WHEN COALESCE ( 52, - 21 * 70 ) * 58 THEN 90 ELSE NULL END * + MAX ( 63 + 40 ) + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT ALL + MIN( - + 29 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL + MIN ( - + 29 ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT + CASE - 52 WHEN 42 * 29 THEN NULL WHEN 30 + 55 THEN + 90 + 64 WHEN + 79 + 74 THEN NULL ELSE - 83 * + COUNT( * ) + - 97 END AS col0
----
-180

skipif mysql # not compatible
query I rowsort label-519
SELECT + CASE - 52 WHEN 42 * 29 THEN NULL WHEN 30 + 55 THEN + 90 + 64 WHEN + 79 + 74 THEN NULL ELSE - 83 * + COUNT ( * ) + - 97 END AS col0
----
-180

query I rowsort
SELECT DISTINCT - 28 * + 74 + 22
----
-2050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-521
SELECT + NULLIF ( + CAST( 18 AS SIGNED ), + 91 )
----
18

skipif mysql # not compatible
query I rowsort label-521
SELECT + NULLIF ( + CAST ( 18 AS INTEGER ), + 91 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT + + MAX( DISTINCT + + 62 ) * 88
----
5456

skipif mysql # not compatible
query I rowsort label-522
SELECT + + MAX ( DISTINCT + + 62 ) * 88
----
5456

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT ALL + 31 * - SUM( DISTINCT + 61 ) + 2 AS col2
----
-1889

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + 31 * - SUM ( DISTINCT + 61 ) + 2 AS col2
----
-1889

onlyif mysql # DIV for integer division: 
query I rowsort label-524
SELECT ALL - 30 DIV + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL - 30 / + 86 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-525
SELECT + 93 DIV 61
----
1

skipif mysql # not compatible
query I rowsort label-525
SELECT + 93 / 61
----
1

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

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

query I rowsort
SELECT - 76 + 11 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT ALL + 38 * 40 - + COALESCE ( + 55 + 81, + COUNT( * ) ) AS col0
----
1384

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL + 38 * 40 - + COALESCE ( + 55 + 81, + COUNT ( * ) ) AS col0
----
1384

query I rowsort
SELECT DISTINCT + 62 * - 60 AS col2
----
-3720

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT + - 23 + SUM( 67 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-530
SELECT + - 23 + SUM ( 67 ) AS col0
----
44

query I rowsort
SELECT - COALESCE ( + 26, - 16 + + 11, - ( 58 ) * - 3 ) col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT + COUNT( * ) * + 43 * 91
----
3913

skipif mysql # not compatible
query I rowsort label-532
SELECT + COUNT ( * ) * + 43 * 91
----
3913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-533
SELECT + 23 - - 29 + + CAST( NULL AS SIGNED ) * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT + 23 - - 29 + + CAST ( NULL AS INTEGER ) * 78
----
NULL

query I rowsort
SELECT - - ( - 62 ) * - 54
----
3348

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT + COUNT( * ) + + 16 * 4
----
65

skipif mysql # not compatible
query I rowsort label-535
SELECT + COUNT ( * ) + + 16 * 4
----
65

query I rowsort
SELECT ALL ( ( - 11 ) )
----
-11

query I rowsort
SELECT - 57 + - + 50
----
-107

onlyif mysql # DIV for integer division: 
query I rowsort label-538
SELECT ALL - 78 DIV - 94 * 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL - 78 / - 94 * 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT DISTINCT - MAX( + CASE - 72 WHEN - 63 * ( 23 * + 61 ) THEN 5 END ) + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT - MAX ( + CASE - 72 WHEN - 63 * ( 23 * + 61 ) THEN 5 END ) + 28 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-540
SELECT ALL CAST( 65 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL CAST ( 65 AS INTEGER )
----
65

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-542
SELECT - 27 - - 15 DIV - - 69 + NULLIF ( + ( COALESCE ( - ( - 74 ), COUNT( * ) ) ) + 2, + 65 + 79 DIV - 21 ) * + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-542
SELECT - 27 - - 15 / - - 69 + NULLIF ( + ( COALESCE ( - ( - 74 ), COUNT ( * ) ) ) + 2, + 65 + 79 / - 21 ) * + COUNT ( * ) AS col2
----
49

query I rowsort
SELECT ALL - 51 * - - 17
----
-867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-544
SELECT DISTINCT + CASE - 37 WHEN - + MIN( DISTINCT 49 ) THEN MIN( CAST( NULL AS SIGNED ) ) ELSE NULL END * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT + CASE - 37 WHEN - + MIN ( DISTINCT 49 ) THEN MIN ( CAST ( NULL AS INTEGER ) ) ELSE NULL END * 65
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT ALL + 79 + 16 - + COUNT( * ) * COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL + 79 + 16 - + COUNT ( * ) * COUNT ( * )
----
94

query I rowsort
SELECT - 91 + - 22 col1
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT DISTINCT + 61 DIV + ( + 43 ) + 84 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT + 61 / + ( + 43 ) + 84 AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-549
SELECT - 28 DIV + 75 + + 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-549
SELECT - 28 / + 75 + + 54 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT ALL + ( + - NULLIF ( 92, - COALESCE ( - 72, - COUNT( * ), + 16, - 61 * + 43 ) ) )
----
-92

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL + ( + - NULLIF ( 92, - COALESCE ( - 72, - COUNT ( * ), + 16, - 61 * + 43 ) ) )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-551
SELECT ALL + NULLIF ( + + ( + 22 ), - ( + CASE + COUNT( * ) WHEN 9 - 53 * - 98 THEN - 24 - 74 * - 63 ELSE - 69 END ) + - 46 ) DIV + 72 + + 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL + NULLIF ( + + ( + 22 ), - ( + CASE + COUNT ( * ) WHEN 9 - 53 * - 98 THEN - 24 - 74 * - 63 ELSE - 69 END ) + - 46 ) / + 72 + + 37 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-552
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + NULLIF ( + 52, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + NULLIF ( + 52, + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT - 2 * + COUNT( ALL - 51 ) + + 10 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-553
SELECT - 2 * + COUNT ( ALL - 51 ) + + 10 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-554
SELECT ALL + AVG ( DISTINCT - CASE - - 28 WHEN 87 - CAST( NULL AS SIGNED ) THEN NULL ELSE + 43 / CAST( NULL AS SIGNED ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL + AVG ( DISTINCT - CASE - - 28 WHEN 87 - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 43 / CAST ( NULL AS INTEGER ) END )
----
NULL

query I rowsort
SELECT - 82 * - ( + + ( 32 ) ) - - ( - 96 )
----
2528

query II rowsort
SELECT + 40, - 63 * + 92 col1
----
40
-5796

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL COUNT( * ) * - 72 * 50 + 70
----
-3530

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL COUNT ( * ) * - 72 * 50 + 70
----
-3530

query I rowsort
SELECT - + 62 + + 59 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-559
SELECT + + COUNT( - 78 ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-559
SELECT + + COUNT ( - 78 ) / COUNT ( * )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT - - 98 * + NULLIF ( 49, 46 * 91 + COUNT( * ) * 54 ) + 0 + 76 AS col0
----
4878

skipif mysql # not compatible
query I rowsort label-561
SELECT - - 98 * + NULLIF ( 49, 46 * 91 + COUNT ( * ) * 54 ) + 0 + 76 AS col0
----
4878

query I rowsort
SELECT ALL - + 17 * 64 AS col1
----
-1088

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT - 0 * 43 * - - 44 * - COALESCE ( - ( ( 25 ) ), 81 * - 73, + 19 ) + - ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-563
SELECT - 0 * 43 * - - 44 * - COALESCE ( - ( ( 25 ) ), 81 * - 73, + 19 ) + - ( COUNT ( * ) ) AS col0
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-565
SELECT ALL - SUM( COALESCE ( - 5, 21, CAST( - COALESCE ( 9, ( + 9 ) * 98 + 84 ) AS SIGNED ) ) )
----
5

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL - SUM ( COALESCE ( - 5, 21, CAST ( - COALESCE ( 9, ( + 9 ) * 98 + 84 ) AS INTEGER ) ) )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-566
SELECT - NULLIF ( COUNT( * ), - + NULLIF ( NULLIF ( COUNT( * ), - 95 ), - 74 + + CAST( NULL AS SIGNED ) * ( 75 ) ) * 81 ) + - 74 * 21 AS col0
----
-1555

skipif mysql # not compatible
query I rowsort label-566
SELECT - NULLIF ( COUNT ( * ), - + NULLIF ( NULLIF ( COUNT ( * ), - 95 ), - 74 + + CAST ( NULL AS INTEGER ) * ( 75 ) ) * 81 ) + - 74 * 21 AS col0
----
-1555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-567
SELECT NULLIF ( + 95, + COALESCE ( + 54, 59 * MAX( DISTINCT CAST( NULL AS SIGNED ) ) + + 45 ) ) DIV 41
----
2

skipif mysql # not compatible
query I rowsort label-567
SELECT NULLIF ( + 95, + COALESCE ( + 54, 59 * MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + + 45 ) ) / 41
----
2

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

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL 24 / - 25
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-569
SELECT 28 DIV - - 43
----
0

skipif mysql # not compatible
query I rowsort label-569
SELECT 28 / - - 43
----
0

query II rowsort
SELECT - 81, 33 - - 19 + + 95 AS col2
----
-81
147

query II rowsort
SELECT DISTINCT 92 AS col0, - ( + + 83 ) AS col2
----
92
-83

query I rowsort
SELECT ALL 51 * - 90 AS col1
----
-4590

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT - + MAX( - - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-573
SELECT - + MAX ( - - 57 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT ALL - COUNT( ALL + 20 ) + + 85 * + 70 * + 78
----
464099

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL - COUNT ( ALL + 20 ) + + 85 * + 70 * + 78
----
464099

query I rowsort
SELECT 2 + ( ( CASE 67 WHEN 89 * 72 THEN NULL WHEN 59 * 67 THEN NULL ELSE - 92 END ) )
----
-90

query I rowsort
SELECT ALL 57 * - 17
----
-969

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

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

query I rowsort
SELECT ( 27 ) + - 78 AS col0
----
-51

query I rowsort
SELECT 11 * + ( 60 ) * + - 49
----
-32340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-580
SELECT ALL - ( + 14 ) * - + CAST( + 58 AS SIGNED ) * - 24 col0
----
-19488

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL - ( + 14 ) * - + CAST ( + 58 AS INTEGER ) * - 24 col0
----
-19488

query I rowsort
SELECT DISTINCT - 2 * - + 82 AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT ALL - COUNT( * ) * 85 * - + 28 AS col2
----
2380

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL - COUNT ( * ) * 85 * - + 28 AS col2
----
2380

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT 48 DIV + 65 + + - ( ( + 16 ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-583
SELECT 48 / + 65 + + - ( ( + 16 ) ) AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-584
SELECT DISTINCT - ( + COUNT( * ) ) * + COALESCE ( - 72, + 7 DIV + COUNT( * ) ) + + 10
----
82

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT - ( + COUNT ( * ) ) * + COALESCE ( - 72, + 7 / + COUNT ( * ) ) + + 10
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT ALL + COUNT( * ) * + + 52 * + 90 AS col2
----
4680

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL + COUNT ( * ) * + + 52 * + 90 AS col2
----
4680

query I rowsort
SELECT 61 * 66
----
4026

query I rowsort
SELECT + 16 * + 5 * - CASE - + 52 WHEN 72 THEN NULL ELSE - 81 END
----
6480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-588
SELECT ALL 55 * + - 65 AS col1, + CAST( AVG ( DISTINCT - 46 ) AS SIGNED ) DIV COUNT( * ) + ( CAST( 38 AS SIGNED ) ) AS col0
----
-3575
-8

skipif mysql # not compatible
query II rowsort label-588
SELECT ALL 55 * + - 65 AS col1, + CAST ( AVG ( DISTINCT - 46 ) AS INTEGER ) / COUNT ( * ) + ( CAST ( 38 AS INTEGER ) ) AS col0
----
-3575
-8

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

skipif mysql # not compatible
query I rowsort label-589
SELECT + AVG ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 82 * + ( + 9 )
----
-738

query I rowsort
SELECT 55 * - 55 + + 43
----
-2982

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT ALL + 21 + - ( - + COALESCE ( - - COUNT( * ), - 83 ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-592
SELECT ALL + 21 + - ( - + COALESCE ( - - COUNT ( * ), - 83 ) ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT ALL - MAX( 81 ) * + + 69 col1
----
-5589

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL - MAX ( 81 ) * + + 69 col1
----
-5589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-594
SELECT DISTINCT + CASE WHEN NOT 63 NOT IN ( - - ( COUNT( DISTINCT ( - 46 ) ) ) * + 44 ) THEN + CAST( NULL AS SIGNED ) + 59 WHEN NOT ( - 54 ) > ( NULL ) THEN 38 - + 66 ELSE NULL END + 78 / - 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT + CASE WHEN NOT 63 NOT IN ( - - ( COUNT ( DISTINCT ( - 46 ) ) ) * + 44 ) THEN + CAST ( NULL AS INTEGER ) + 59 WHEN NOT ( - 54 ) > ( NULL ) THEN 38 - + 66 ELSE NULL END + 78 / - 67 col2
----
NULL

query I rowsort
SELECT ALL + - 10 + + - NULLIF ( - 5, - - COALESCE ( 8, - 24 * 51 + 17 * 83 ) * 21 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT - 2 + + - 19 + - - 89 + COUNT( * ) * + 28
----
96

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT - 2 + + - 19 + - - 89 + COUNT ( * ) * + 28
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT DISTINCT 92 DIV 28
----
3

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT 92 / 28
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-598
SELECT NULLIF ( + CAST( NULL AS SIGNED ), + 81 ) / - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + 81 ) / - 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT ALL COUNT( * ) + + - 45
----
-44

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL COUNT ( * ) + + - 45
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-600
SELECT - COUNT( * ), 59 - 81 * 73 AS col2
----
-1
-5854

skipif mysql # not compatible
query II rowsort label-600
SELECT - COUNT ( * ), 59 - 81 * 73 AS col2
----
-1
-5854

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT ALL 86 + - - 7 * - - MAX( ALL + 2 ) * 10 AS col2
----
226

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL 86 + - - 7 * - - MAX ( ALL + 2 ) * 10 AS col2
----
226

query I rowsort
SELECT 1 + - + 28 AS col0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-603
SELECT COALESCE ( - + 2, - 59, - + COUNT( * ), 44 DIV 61 ) + + 85 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-603
SELECT COALESCE ( - + 2, - 59, - + COUNT ( * ), 44 / 61 ) + + 85 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT DISTINCT COUNT( * ) - - 84 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-604
SELECT DISTINCT COUNT ( * ) - - 84 AS col0
----
85

query II rowsort
SELECT ALL 24 AS col1, 41 AS col1
----
24
41

query I rowsort
SELECT DISTINCT 2 * 79 AS col1
----
158

query I rowsort
SELECT 10 + - 20
----
-10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-609
SELECT 16 * 26 DIV + 73 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-609
SELECT 16 * 26 / + 73 AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-610
SELECT 55 + + COUNT( * ) DIV + + 23 * 80 col1
----
55

skipif mysql # not compatible
query I rowsort label-610
SELECT 55 + + COUNT ( * ) / + + 23 * 80 col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-611
SELECT ALL 41, + COUNT( 72 ) * 19 col1
----
41
19

skipif mysql # not compatible
query II rowsort label-611
SELECT ALL 41, + COUNT ( 72 ) * 19 col1
----
41
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-612
SELECT COUNT( * ) + + 11 + + + CASE + 18 WHEN - CASE + NULLIF ( - CAST( SUM( ALL 72 ) AS SIGNED ), + 37 ) WHEN SUM( ALL 59 ) THEN NULL WHEN 21 THEN NULL ELSE + COUNT( * ) END THEN NULL ELSE 64 END * - 50
----
-3188

skipif mysql # not compatible
query I rowsort label-612
SELECT COUNT ( * ) + + 11 + + + CASE + 18 WHEN - CASE + NULLIF ( - CAST ( SUM ( ALL 72 ) AS INTEGER ), + 37 ) WHEN SUM ( ALL 59 ) THEN NULL WHEN 21 THEN NULL ELSE + COUNT ( * ) END THEN NULL ELSE 64 END * - 50
----
-3188

onlyif mysql # DIV for integer division: 
query I rowsort label-613
SELECT ALL - 89 DIV 69
----
-1

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL - 89 / 69
----
-1

query I rowsort
SELECT - 73 * - 66
----
4818

query I rowsort
SELECT + 77 + ( 97 ) + + - 15 - + 46 * 27 * - 91 * - 34 AS col0
----
-3842589

onlyif mysql # DIV for integer division: 
query I rowsort label-616
SELECT ALL 61 DIV - 77 * 58 - 55 + - - 52 + - 73 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL 61 / - 77 * 58 - 55 + - - 52 + - 73 AS col0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-617
SELECT - 0 DIV + + 98
----
0

skipif mysql # not compatible
query I rowsort label-617
SELECT - 0 / + + 98
----
0

query I rowsort
SELECT DISTINCT + ( + + 79 ) * - 48 + + CASE WHEN NOT + 81 IN ( + 76 + + 11 ) THEN + 40 ELSE NULL END AS col0
----
-3752

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-620
SELECT - 54 DIV + + 61 * - + 64 - + NULLIF ( - + 82, 14 ) + 36
----
118

skipif mysql # not compatible
query I rowsort label-620
SELECT - 54 / + + 61 * - + 64 - + NULLIF ( - + 82, 14 ) + 36
----
118

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-622
SELECT + - COALESCE ( + 37, - 69 - - - 49, + 23 DIV - COALESCE ( 55 * 22, - 65 DIV - 99, - 81 ) ) DIV NULLIF ( + 12 + 72, 78 )
----
0

skipif mysql # not compatible
query I rowsort label-622
SELECT + - COALESCE ( + 37, - 69 - - - 49, + 23 / - COALESCE ( 55 * 22, - 65 / - 99, - 81 ) ) / NULLIF ( + 12 + 72, 78 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-623
SELECT - + 30 DIV + - 79 * 42 + 83 + - MIN( DISTINCT + 11 ) * + ( 17 )
----
-104

skipif mysql # not compatible
query I rowsort label-623
SELECT - + 30 / + - 79 * 42 + 83 + - MIN ( DISTINCT + 11 ) * + ( 17 )
----
-104

query I rowsort
SELECT ALL - 32 * - 99 * - 45 + + 64 AS col2
----
-142496

onlyif mysql # DIV for integer division: 
query I rowsort label-625
SELECT + 41 DIV + 8 + - - 69 + - 44 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-625
SELECT + 41 / + 8 + - - 69 + - 44 AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-626
SELECT - - SUM( DISTINCT - ( - 94 ) ) * 43 + CAST( NULL AS SIGNED ) + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-626
SELECT - - SUM ( DISTINCT - ( - 94 ) ) * 43 + CAST ( NULL AS INTEGER ) + - 46
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-627
SELECT 39 DIV 98 * 92 * - 47 - - + 13 * 7
----
91

skipif mysql # not compatible
query I rowsort label-627
SELECT 39 / 98 * 92 * - 47 - - + 13 * 7
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT ALL + + 74 DIV 36
----
2

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL + + 74 / 36
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-629
SELECT + 66 * + + NULLIF ( - 49, + CAST( NULL AS SIGNED ) + + ( COUNT( * ) ) + - 55 * + CAST( NULL AS SIGNED ) ) * + 24 + 50 AS col1
----
-77566

skipif mysql # not compatible
query I rowsort label-629
SELECT + 66 * + + NULLIF ( - 49, + CAST ( NULL AS INTEGER ) + + ( COUNT ( * ) ) + - 55 * + CAST ( NULL AS INTEGER ) ) * + 24 + 50 AS col1
----
-77566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-630
SELECT ALL CASE + 66 WHEN 37 * - + 89 THEN NULLIF ( 86, + 2 + ( - 38 + 33 ) ) ELSE 28 END * - CAST( 8 AS SIGNED ) + + ( 41 + - COALESCE ( COUNT( + 23 ), ( - 74 ) * + 30 + 21, + ( 12 ) ) * + 72 ) * 56
----
-1960

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL CASE + 66 WHEN 37 * - + 89 THEN NULLIF ( 86, + 2 + ( - 38 + 33 ) ) ELSE 28 END * - CAST ( 8 AS INTEGER ) + + ( 41 + - COALESCE ( COUNT ( + 23 ), ( - 74 ) * + 30 + 21, + ( 12 ) ) * + 72 ) * 56
----
-1960

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-631
SELECT 95 * + COUNT( * ) + - - 14 + CAST( NULL AS DECIMAL ) * 54 * 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-631
SELECT 95 * + COUNT ( * ) + - - 14 + CAST ( NULL AS REAL ) * 54 * 22 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-632
SELECT + 53 * - + 35 + - - 39 + - - 49 * - - 46 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-632
SELECT + 53 * - + 35 + - - 39 + - - 49 * - - 46 * CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-633
SELECT - - 3 + + COUNT ( * ) * - 69 + 42 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT ALL - NULLIF ( - - 21, - + 19 ) * ( - 67 ) + COUNT( * ) * + ( - 45 + + MAX( ALL 83 ) ) + MAX( DISTINCT 60 )
----
1505

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL - NULLIF ( - - 21, - + 19 ) * ( - 67 ) + COUNT ( * ) * + ( - 45 + + MAX ( ALL 83 ) ) + MAX ( DISTINCT 60 )
----
1505

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-636
SELECT DISTINCT 32 * 69 + - CAST( NULL AS SIGNED ) + + 10 * - NULLIF ( - MAX( + 61 ), + 83 * - 26 - 95 * + 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT 32 * 69 + - CAST ( NULL AS INTEGER ) + + 10 * - NULLIF ( - MAX ( + 61 ), + 83 * - 26 - 95 * + 41 )
----
NULL

query II rowsort
SELECT + 45 AS col2, 37 AS col1
----
45
37

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT DISTINCT - 47 * COUNT( - 8 )
----
-47

skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT - 47 * COUNT ( - 8 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT ALL + 92 + - - COUNT( * ) + - 36 - ( 9 )
----
48

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL + 92 + - - COUNT ( * ) + - 36 - ( 9 )
----
48

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

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

query I rowsort
SELECT + 80 + + 8 * + 47 + + 54 AS col0
----
510

query I rowsort
SELECT - 92 * - - 10
----
-920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-643
SELECT ALL COUNT( * ) * + 87 AS col0, CASE + 60 WHEN - COUNT( * ) THEN 53 WHEN - COUNT( * ) + 72 * ( COALESCE ( - COALESCE ( COUNT( + 76 ), ( 2 ), 30 + 61 ), ( + 45 ), + 34 * 44 ) ) THEN + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - 18 END + ( 23 + CASE 80 + 11 WHEN 68 * 32 + + 53 / - ( 83 ) THEN 3 ELSE NULL END )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-643
SELECT ALL COUNT ( * ) * + 87 AS col0, CASE + 60 WHEN - COUNT ( * ) THEN 53 WHEN - COUNT ( * ) + 72 * ( COALESCE ( - COALESCE ( COUNT ( + 76 ), ( 2 ), 30 + 61 ), ( + 45 ), + 34 * 44 ) ) THEN + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 18 END + ( 23 + CASE 80 + 11 WHEN 68 * 32 + + 53 / - ( 83 ) THEN 3 ELSE NULL END )
----
87
NULL

query I rowsort
SELECT DISTINCT + 47 * - 30
----
-1410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-645
SELECT - MAX( - CAST( NULL AS SIGNED ) ) AS col2, 52
----
NULL
52

skipif mysql # not compatible
query II rowsort label-645
SELECT - MAX ( - CAST ( NULL AS INTEGER ) ) AS col2, 52
----
NULL
52

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL ( - 25 ) - - MIN( DISTINCT 17 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL ( - 25 ) - - MIN ( DISTINCT 17 ) AS col1
----
-8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-648
SELECT + 38 + - - 37 + + + 98 * COUNT( * ) - + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT + 38 + - - 37 + + + 98 * COUNT ( * ) - + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-650
SELECT - 26 DIV + - 1
----
26

skipif mysql # not compatible
query I rowsort label-650
SELECT - 26 / + - 1
----
26

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

skipif mysql # not compatible
query I rowsort label-651
SELECT + COUNT ( * ) * - 44 / 64
----
0

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

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

query I rowsort
SELECT - 2 * + 9 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-654
SELECT + 8 * - + COUNT( * ) AS col2, - 12 AS col2
----
-8
-12

skipif mysql # not compatible
query II rowsort label-654
SELECT + 8 * - + COUNT ( * ) AS col2, - 12 AS col2
----
-8
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT + MAX( - 10 ) * - - 0 * + 0 * 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-655
SELECT + MAX ( - 10 ) * - - 0 * + 0 * 59 AS col1
----
0

query I rowsort
SELECT + 72 * - 19
----
-1368

query I rowsort
SELECT DISTINCT + 89 * - - 63 AS col2
----
5607

query I rowsort
SELECT + - 9 + - 15 * + 34 AS col1
----
-519

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT + 6 DIV + 13 + - - 97 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-659
SELECT + 6 / + 13 + - - 97 AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-660
SELECT + CAST( NULL AS SIGNED ) AS col0, 53
----
NULL
53

skipif mysql # not compatible
query II rowsort label-660
SELECT + CAST ( NULL AS INTEGER ) AS col0, 53
----
NULL
53

onlyif mysql # aggregate syntax: 
query II rowsort label-661
SELECT - 15 AS col0, 86 * + SUM( DISTINCT 16 ) + + 88 * 81 AS col2
----
-15
8504

skipif mysql # not compatible
query II rowsort label-661
SELECT - 15 AS col0, 86 * + SUM ( DISTINCT 16 ) + + 88 * 81 AS col2
----
-15
8504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-662
SELECT ALL COALESCE ( 95, + 46 * - 54 - - 11 * 48 * - 62 + - COUNT( * ), COUNT( * ) + 39 ) DIV 53 + - 45 * ( - 66 ) col2
----
2971

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL COALESCE ( 95, + 46 * - 54 - - 11 * 48 * - 62 + - COUNT ( * ), COUNT ( * ) + 39 ) / 53 + - 45 * ( - 66 ) col2
----
2971

query I rowsort
SELECT + 73 * - 1 AS col0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-664
SELECT DISTINCT 72 DIV + 74 + - + 15 * 15
----
-225

skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT 72 / + 74 + - + 15 * 15
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-665
SELECT ALL + 84 * - CAST( NULL AS SIGNED ) + + + CAST( - 34 AS SIGNED ) * - 54 * - AVG ( - CASE 57 WHEN 98 THEN + ( - 16 ) WHEN 35 * - 46 THEN NULL WHEN 16 THEN NULL END ) - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL + 84 * - CAST ( NULL AS INTEGER ) + + + CAST ( - 34 AS INTEGER ) * - 54 * - AVG ( - CASE 57 WHEN 98 THEN + ( - 16 ) WHEN 35 * - 46 THEN NULL WHEN 16 THEN NULL END ) - 23 AS col2
----
NULL

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

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

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

query I rowsort
SELECT ALL - 55 * 3 + + - ( - 6 ) + + - 96
----
-255

query I rowsort
SELECT + 76 - - - 96
----
-20

query I rowsort
SELECT + - COALESCE ( 73, + - 2 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT ALL - COUNT( * ) * - SUM( ALL + + 69 ) + + - 83 * 99 * - 23 * 81 + ( 12 )
----
15308352

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL - COUNT ( * ) * - SUM ( ALL + + 69 ) + + - 83 * 99 * - 23 * 81 + ( 12 )
----
15308352

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-673
SELECT COALESCE ( - CAST( + 68 AS SIGNED ), - 1 + + - NULLIF ( + 93, - ( - 98 ) ), - NULLIF ( 86, - 2 ) ) col2
----
-68

skipif mysql # not compatible
query I rowsort label-673
SELECT COALESCE ( - CAST ( + 68 AS INTEGER ), - 1 + + - NULLIF ( + 93, - ( - 98 ) ), - NULLIF ( 86, - 2 ) ) col2
----
-68

query I rowsort
SELECT ALL 74 * + - 15 AS col2
----
-1110

query I rowsort
SELECT - 86 * + 37 col1
----
-3182

query I rowsort
SELECT NULLIF ( 39, 51 ) AS col1
----
39

query I rowsort
SELECT - 62 - - 40
----
-22

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

skipif mysql # not compatible
query I rowsort label-678
SELECT + 50 * - + 37 * + ( - COUNT ( * ) ) AS col0
----
1850

query II rowsort
SELECT - 85 * + - 86 AS col1, + 38 * + + 81
----
7310
3078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-680
SELECT - 2 + + + CAST( - COUNT( * ) AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-680
SELECT - 2 + + + CAST ( - COUNT ( * ) AS INTEGER )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-681
SELECT ALL + 89 * - 7 * - - CAST( + 40 AS SIGNED ) AS col1
----
-24920

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL + 89 * - 7 * - - CAST ( + 40 AS INTEGER ) AS col1
----
-24920

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT ALL + CASE + - NULLIF ( - MAX( + 65 ), - 33 * - 47 * 20 ) WHEN + 14 * - 44 THEN - 78 END * NULLIF ( 75, + 24 * 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL + CASE + - NULLIF ( - MAX ( + 65 ), - 33 * - 47 * 20 ) WHEN + 14 * - 44 THEN - 78 END * NULLIF ( 75, + 24 * 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT DISTINCT + + COUNT( * ) + 56 * 39
----
2185

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT + + COUNT ( * ) + 56 * 39
----
2185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-684
SELECT NULLIF ( - 48, 28 - + 7 * - - 57 + 2 - - 56 - + 93 ) * - ( 28 DIV + COUNT( * ) )
----
1344

skipif mysql # not compatible
query I rowsort label-684
SELECT NULLIF ( - 48, 28 - + 7 * - - 57 + 2 - - 56 - + 93 ) * - ( 28 / + COUNT ( * ) )
----
1344

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

skipif mysql # not compatible
query I rowsort label-685
SELECT + CAST ( + 39 AS INTEGER ) + 61 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT DISTINCT + MIN( - 30 ) + + 3 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT + MIN ( - 30 ) + + 3 AS col0
----
-27

query I rowsort
SELECT 64 + - 80
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-688
SELECT + AVG ( DISTINCT - 9 ) / + 97 * - CAST( NULL AS SIGNED ) * + + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-688
SELECT + AVG ( DISTINCT - 9 ) / + 97 * - CAST ( NULL AS INTEGER ) * + + 83 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-689
SELECT ALL + CASE - - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN + - 22 * + + 5 * MAX( + 11 ) * + 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL + CASE - - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN + - 22 * + + 5 * MAX ( + 11 ) * + 4 END
----
NULL

query I rowsort
SELECT DISTINCT - 17 + + 74 + - 4
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-691
SELECT ALL + 84 + - 25 + + - 64 DIV - 42
----
60

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL + 84 + - 25 + + - 64 / - 42
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-692
SELECT DISTINCT - ( 80 ) + + - 92 + 50 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT - ( 80 ) + + - 92 + 50 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT 3 * NULLIF ( + + ( - ( + 62 ) ), - + 26 / + - 73 + - 81 * + COUNT( * ) + - 24 ) * 42 + 96
----
-7716

skipif mysql # not compatible
query I rowsort label-693
SELECT 3 * NULLIF ( + + ( - ( + 62 ) ), - + 26 / + - 73 + - 81 * + COUNT ( * ) + - 24 ) * 42 + 96
----
-7716

query I rowsort
SELECT + 74 + - 22
----
52

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-697
SELECT ALL CAST( ( + 99 ) AS SIGNED ) - + ( + 84 )
----
15

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL CAST ( ( + 99 ) AS INTEGER ) - + ( + 84 )
----
15

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

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL - MIN ( 20 )
----
-20

query I rowsort
SELECT - ( 38 ) * - 30 + - 85
----
1055

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT DISTINCT - SUM( - 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT - SUM ( - 2 ) AS col1
----
2

query I rowsort
SELECT 46 + 27
----
73

query I rowsort
SELECT DISTINCT 79 * - - NULLIF ( - 61, + 49 + - 83 ) AS col2
----
-4819

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT DISTINCT + NULLIF ( + 85, 98 * + + 28 * - + 64 * + + 48 ) * + COUNT( * ) * - - 45
----
3825

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT + NULLIF ( + 85, 98 * + + 28 * - + 64 * + + 48 ) * + COUNT ( * ) * - - 45
----
3825

query I rowsort
SELECT DISTINCT 26 * - + 87
----
-2262

query I rowsort
SELECT 45 * - + 73
----
-3285

onlyif mysql # DIV for integer division: 
query I rowsort label-707
SELECT ALL - 30 DIV - + 8
----
3

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL - 30 / - + 8
----
3

query I rowsort
SELECT DISTINCT + 85 + - 0
----
85

query I rowsort
SELECT ALL + 29 + + ( ( + 47 ) ) AS col0
----
76

query II rowsort
SELECT - 16 AS col1, + NULLIF ( + 32, + + 36 ) col0
----
-16
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-711
SELECT - NULLIF ( + 71, + 22 + CASE + 68 WHEN CAST( NULL AS SIGNED ) * + 92 THEN + 57 * 10 + 55 ELSE NULL END * + 97 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-711
SELECT - NULLIF ( + 71, + 22 + CASE + 68 WHEN CAST ( NULL AS INTEGER ) * + 92 THEN + 57 * 10 + 55 ELSE NULL END * + 97 ) AS col2
----
-71

query II rowsort
SELECT - - 45 AS col2, + 55
----
45
55

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT + 33 - + - CASE + ( - + 14 ) WHEN - COALESCE ( - ( - AVG ( - + 56 ) ), + 51 / 4 + COALESCE ( + 74, 6, 37 ) ) THEN + 15 * - COUNT( 33 ) WHEN - AVG ( + 51 ) + 68 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-713
SELECT + 33 - + - CASE + ( - + 14 ) WHEN - COALESCE ( - ( - AVG ( - + 56 ) ), + 51 / 4 + COALESCE ( + 74, 6, 37 ) ) THEN + 15 * - COUNT ( 33 ) WHEN - AVG ( + 51 ) + 68 THEN NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT DISTINCT - 26 + - 54 + - + COUNT( * ) + - 85 * - 36 * NULLIF ( + 18, + 37 + 52 ) AS col0
----
54999

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT - 26 + - 54 + - + COUNT ( * ) + - 85 * - 36 * NULLIF ( + 18, + 37 + 52 ) AS col0
----
54999

query I rowsort
SELECT ALL - 68 + - 42 + 95 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT DISTINCT COUNT( ALL 22 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT COUNT ( ALL 22 ) AS col1
----
1

query II rowsort
SELECT - 67, + 29 AS col2
----
-67
29

query I rowsort
SELECT DISTINCT - + 13 * + 42 col0
----
-546

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

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

query I rowsort
SELECT - 82 * 73 * 54 + + 95 AS col2
----
-323149

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT ALL COUNT( - NULLIF ( - 85, ( - 71 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL COUNT ( - NULLIF ( - 85, ( - 71 ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-723
SELECT - 91 + 29 + - 79 - SUM( + CAST( - + 34 AS SIGNED ) ) * 15 + + 74 AS col1
----
443

skipif mysql # not compatible
query I rowsort label-723
SELECT - 91 + 29 + - 79 - SUM ( + CAST ( - + 34 AS INTEGER ) ) * 15 + + 74 AS col1
----
443

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-724
SELECT DISTINCT - + COALESCE ( - COUNT( * ), - - CASE WHEN NULLIF ( + 82, 49 ) >= ( - COUNT( ( COALESCE ( + 80, + 75 DIV 87 ) ) ) ) THEN 11 DIV - 39 ELSE NULL END * 49 ) - 4 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT - + COALESCE ( - COUNT ( * ), - - CASE WHEN NULLIF ( + 82, 49 ) >= ( - COUNT ( ( COALESCE ( + 80, + 75 / 87 ) ) ) ) THEN 11 / - 39 ELSE NULL END * 49 ) - 4 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT - 5 + 50 + 26 * - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-725
SELECT - 5 + 50 + 26 * - COUNT ( * )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-726
SELECT 94 DIV + MAX( ALL + - 92 ) + + ( + 44 )
----
43

skipif mysql # not compatible
query I rowsort label-726
SELECT 94 / + MAX ( ALL + - 92 ) + + ( + 44 )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-727
SELECT ALL + + 19 * 98 DIV SUM( - 9 ) + + ( - 36 ) - - 11
----
-231

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL + + 19 * 98 / SUM ( - 9 ) + + ( - 36 ) - - 11
----
-231

query I rowsort
SELECT - ( - 26 ) * - + 83 AS col2
----
-2158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-729
SELECT ALL - - COUNT( DISTINCT - 0 ) / 81 + + 81 * 42 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL - - COUNT ( DISTINCT - 0 ) / 81 + + 81 * 42 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 4 * + 83 * 46 * 30 + + 56 * - 31 AS col1
----
456424

query I rowsort
SELECT ALL 24 * + - 25 AS col1
----
-600

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-733
SELECT SUM( DISTINCT - 16 ) AS col2, + 27 + - ( - - 63 )
----
-16
-36

skipif mysql # not compatible
query II rowsort label-733
SELECT SUM ( DISTINCT - 16 ) AS col2, + 27 + - ( - - 63 )
----
-16
-36

query I rowsort
SELECT - 78 * - - 53 * - 73 - + 70
----
301712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-735
SELECT 65 * - + 56 * + - CAST( + - 1 AS SIGNED ) DIV - COUNT( * ) - + 13 AS col0
----
3627

skipif mysql # not compatible
query I rowsort label-735
SELECT 65 * - + 56 * + - CAST ( + - 1 AS INTEGER ) / - COUNT ( * ) - + 13 AS col0
----
3627

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT ALL - ( + - 44 ) * + MAX( ALL - 15 ) AS col2
----
-660

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL - ( + - 44 ) * + MAX ( ALL - 15 ) AS col2
----
-660

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-738
SELECT DISTINCT 8 + + + CASE + CAST( 64 AS SIGNED ) WHEN - - CASE + - 1 WHEN + 30 THEN + + 50 WHEN 66 THEN CAST( NULL AS SIGNED ) ELSE 14 / COUNT( * ) END THEN NULL WHEN 54 THEN 73 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT 8 + + + CASE + CAST ( 64 AS INTEGER ) WHEN - - CASE + - 1 WHEN + 30 THEN + + 50 WHEN 66 THEN CAST ( NULL AS INTEGER ) ELSE 14 / COUNT ( * ) END THEN NULL WHEN 54 THEN 73 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT DISTINCT 26 * COUNT( * ) col2
----
26

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT 26 * COUNT ( * ) col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-740
SELECT + 32 DIV 30 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-740
SELECT + 32 / 30 AS col1
----
1

query I rowsort
SELECT ALL 37 + 97 - 60
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-742
SELECT DISTINCT - 26 * + CAST( + ( 83 ) AS SIGNED )
----
-2158

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT - 26 * + CAST ( + ( 83 ) AS INTEGER )
----
-2158

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT + COUNT( * ) + + - 19 + + COALESCE ( - - 79, - - 9 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-743
SELECT + COUNT ( * ) + + - 19 + + COALESCE ( - - 79, - - 9 ) AS col2
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT + COUNT( * ) * - CASE + 24 WHEN CASE + 34 WHEN 73 * - 43 / - 32 THEN 48 * + 20 WHEN ( - MAX( DISTINCT 12 ) ) THEN - COUNT( * ) * - 4 END THEN NULL ELSE 65 END * - 32 AS col1
----
2080

skipif mysql # not compatible
query I rowsort label-745
SELECT + COUNT ( * ) * - CASE + 24 WHEN CASE + 34 WHEN 73 * - 43 / - 32 THEN 48 * + 20 WHEN ( - MAX ( DISTINCT 12 ) ) THEN - COUNT ( * ) * - 4 END THEN NULL ELSE 65 END * - 32 AS col1
----
2080

query II rowsort
SELECT DISTINCT 25 * 57, 86 + - + ( + 36 ) AS col1
----
1425
50

onlyif mysql # aggregate syntax: 
query II rowsort label-747
SELECT ALL - - 40 + + + 69 * COUNT( * ) * - + 30 AS col0, 98 AS col1
----
-2030
98

skipif mysql # not compatible
query II rowsort label-747
SELECT ALL - - 40 + + + 69 * COUNT ( * ) * - + 30 AS col0, 98 AS col1
----
-2030
98

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

skipif mysql # not compatible
query I rowsort label-748
SELECT + + 3 + - COUNT ( * ) AS col1
----
2

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

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

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

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL - ( - COUNT ( * ) ) + 83 AS col1
----
84

query I rowsort
SELECT - CASE - ( + 17 ) WHEN + 62 THEN NULL ELSE 55 END
----
-55

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

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

query I rowsort
SELECT ALL ( - NULLIF ( - 20, + 39 + - 53 ) ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT + COALESCE ( - ( - 74 ), + MIN( ALL + 59 ) ) + - 61 + 99
----
112

skipif mysql # not compatible
query I rowsort label-754
SELECT + COALESCE ( - ( - 74 ), + MIN ( ALL + 59 ) ) + - 61 + 99
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT - + COALESCE ( 68, + 52, 76 ) * + NULLIF ( 36, - SUM( + 85 ) * + 67 + ( 41 + 37 ) ) * 17 + - 27
----
-41643

skipif mysql # not compatible
query I rowsort label-755
SELECT - + COALESCE ( 68, + 52, 76 ) * + NULLIF ( 36, - SUM ( + 85 ) * + 67 + ( 41 + 37 ) ) * 17 + - 27
----
-41643

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

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

query I rowsort
SELECT DISTINCT - 73 - - 25 AS col2
----
-48

query I rowsort
SELECT DISTINCT + 62 * + + 97 * + CASE - 93 WHEN ( + + 56 ) THEN 23 END / - 63
----
NULL

query I rowsort
SELECT - 83 * 7
----
-581

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT ALL - COUNT( * ) * COALESCE ( 40, 12 * - - MAX( DISTINCT - + 77 ) * 28 + + - ( 31 ) ) + - 55 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL - COUNT ( * ) * COALESCE ( 40, 12 * - - MAX ( DISTINCT - + 77 ) * 28 + + - ( 31 ) ) + - 55 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT NULLIF ( + 1, + + ( COUNT( * ) ) ) / - + 50 * 0 + - COUNT( * ) - - 95 + + 1 + + 3 * - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT NULLIF ( + 1, + + ( COUNT ( * ) ) ) / - + 50 * 0 + - COUNT ( * ) - - 95 + + 1 + + 3 * - 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT - 56 * + - 64 * + - 22 + + - 44 + + COALESCE ( + COUNT( + - 94 ), 48 * - + 65 * - + 52 ) + + 21 * 0 col0
----
-78891

skipif mysql # not compatible
query I rowsort label-762
SELECT - 56 * + - 64 * + - 22 + + - 44 + + COALESCE ( + COUNT ( + - 94 ), 48 * - + 65 * - + 52 ) + + 21 * 0 col0
----
-78891

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT - COUNT( * ) - - 41 * - MIN( - 19 )
----
778

skipif mysql # not compatible
query I rowsort label-763
SELECT - COUNT ( * ) - - 41 * - MIN ( - 19 )
----
778

onlyif mysql # aggregate syntax: 
query II rowsort label-764
SELECT - 10 * + 54 * + MAX( DISTINCT + 84 ) * - 58 AS col2, - 95
----
2630880
-95

skipif mysql # not compatible
query II rowsort label-764
SELECT - 10 * + 54 * + MAX ( DISTINCT + 84 ) * - 58 AS col2, - 95
----
2630880
-95

query I rowsort
SELECT - 15 * + 84
----
-1260

onlyif mysql # DIV for integer division: 
query I rowsort label-766
SELECT - 0 DIV - 55 + + 19
----
19

skipif mysql # not compatible
query I rowsort label-766
SELECT - 0 / - 55 + + 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT - 86 * + - 94 * COUNT( * ) * + 7
----
56588

skipif mysql # not compatible
query I rowsort label-767
SELECT - 86 * + - 94 * COUNT ( * ) * + 7
----
56588

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT ALL + 9 * + 16 + - 94 * - 99 * - + NULLIF ( + + 30, - + 87 * NULLIF ( + MAX( DISTINCT + 0 ), - 37 * + 28 ) ) - - SUM( ALL 84 + + 75 )
----
-278877

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL + 9 * + 16 + - 94 * - 99 * - + NULLIF ( + + 30, - + 87 * NULLIF ( + MAX ( DISTINCT + 0 ), - 37 * + 28 ) ) - - SUM ( ALL 84 + + 75 )
----
-278877

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT - 3 + 77 + + SUM( - - 90 ) AS col0
----
164

skipif mysql # not compatible
query I rowsort label-770
SELECT - 3 + 77 + + SUM ( - - 90 ) AS col0
----
164

query I rowsort
SELECT 30 * 90 - - 79 AS col1
----
2779

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-772
SELECT + SUM( ALL + 21 ) DIV 48 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-772
SELECT + SUM ( ALL + 21 ) / 48 - - COUNT ( * )
----
1

query I rowsort
SELECT ALL 91 * - 61 AS col0
----
-5551

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-775
SELECT ALL NULLIF ( + 55, - 73 ) * - 8 / 71 + - 45 + - + NULLIF ( + - 26, + 89 + COUNT( * ) * COALESCE ( 70 + + 66, 0 + - 35 * - 64, 10 ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL NULLIF ( + 55, - 73 ) * - 8 / 71 + - 45 + - + NULLIF ( + - 26, + 89 + COUNT ( * ) * COALESCE ( 70 + + 66, 0 + - 35 * - 64, 10 ) ) * - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT COALESCE ( - 0, + 88 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-778
SELECT ALL - 82 * + 61 + - COUNT( * ) AS col0, 58
----
-5003
58

skipif mysql # not compatible
query II rowsort label-778
SELECT ALL - 82 * + 61 + - COUNT ( * ) AS col0, 58
----
-5003
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-779
SELECT DISTINCT + 99 * + 77 * + 15 * - 17 + + NULLIF ( + - COUNT( 29 ), + COALESCE ( - COUNT( - CAST( NULL AS SIGNED ) ), 50 ) ) col1
----
-1943866

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT + 99 * + 77 * + 15 * - 17 + + NULLIF ( + - COUNT ( 29 ), + COALESCE ( - COUNT ( - CAST ( NULL AS INTEGER ) ), 50 ) ) col1
----
-1943866

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-780
SELECT CASE 75 WHEN + 70 * - + 51 * COALESCE ( + + CAST( NULL AS SIGNED ), 58 - - + ( - 30 ) - + NULLIF ( + 55, COUNT( * ) ) + 98 / + 59, - 61 ) / ( 7 * + 3 ) THEN - 64 + - 22 / - COALESCE ( 40 * 65, - COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-780
SELECT CASE 75 WHEN + 70 * - + 51 * COALESCE ( + + CAST ( NULL AS INTEGER ), 58 - - + ( - 30 ) - + NULLIF ( + 55, COUNT ( * ) ) + 98 / + 59, - 61 ) / ( 7 * + 3 ) THEN - 64 + - 22 / - COALESCE ( 40 * 65, - COUNT ( * ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 20 * + 73
----
-1460

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT + 26 + + COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-782
SELECT + 26 + + COUNT ( * ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT ALL 80 * - 20 + + + COUNT( * ) - + ( + + 82 ) + 29 * - - ( 67 )
----
262

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL 80 * - 20 + + + COUNT ( * ) - + ( + + 82 ) + 29 * - - ( 67 )
----
262

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT + 80, - CASE - 42 WHEN ( + 17 ) THEN + COUNT( - 29 ) + - 95 + + + AVG ( DISTINCT - CASE 84 WHEN + 31 + + 81 THEN 96 END ) WHEN 31 + + CASE 26 WHEN 83 * MIN( DISTINCT 12 ) THEN NULL WHEN + 81 + + 32 * 30 THEN - COALESCE ( + 57, COUNT( * ), - 35 ) * + 56 + + 75 WHEN + 79 + + 6 THEN NULL ELSE NULL END * 37 THEN NULL ELSE NULL END - + 55 / + 33 AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-784
SELECT + 80, - CASE - 42 WHEN ( + 17 ) THEN + COUNT ( - 29 ) + - 95 + + + AVG ( DISTINCT - CASE 84 WHEN + 31 + + 81 THEN 96 END ) WHEN 31 + + CASE 26 WHEN 83 * MIN ( DISTINCT 12 ) THEN NULL WHEN + 81 + + 32 * 30 THEN - COALESCE ( + 57, COUNT ( * ), - 35 ) * + 56 + + 75 WHEN + 79 + + 6 THEN NULL ELSE NULL END * 37 THEN NULL ELSE NULL END - + 55 / + 33 AS col2
----
80
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT ( 42 ) * 43 + - + 71 + + 91 * + COUNT( * ) + - 77 * + + 21 * 28 col1
----
-43450

skipif mysql # not compatible
query I rowsort label-786
SELECT ( 42 ) * 43 + - + 71 + + 91 * + COUNT ( * ) + - 77 * + + 21 * 28 col1
----
-43450

query I rowsort
SELECT - 90 * COALESCE ( - - 69, - 14 - + 53 ) AS col2
----
-6210

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT DISTINCT + CASE - - CASE WHEN NOT NULL >= + 1 THEN - COUNT( * ) + + + 63 + - 0 ELSE NULL END WHEN 15 THEN NULL WHEN - MAX( DISTINCT 51 ) * 89 THEN 66 / - COUNT( * ) - 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT + CASE - - CASE WHEN NOT NULL >= + 1 THEN - COUNT ( * ) + + + 63 + - 0 ELSE NULL END WHEN 15 THEN NULL WHEN - MAX ( DISTINCT 51 ) * 89 THEN 66 / - COUNT ( * ) - 41 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT + - COUNT( * ) * + - 2 * + - 57 - - COALESCE ( - - 76, MIN( 16 ), - MIN( - + 55 ) ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-789
SELECT + - COUNT ( * ) * + - 2 * + - 57 - - COALESCE ( - - 76, MIN ( 16 ), - MIN ( - + 55 ) ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT DISTINCT COUNT( * ) - - ( - NULLIF ( - 75, - 21 + - - MIN( DISTINCT 58 ) * AVG ( - + 92 ) ) ) + + 27 - COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT COUNT ( * ) - - ( - NULLIF ( - 75, - 21 + - - MIN ( DISTINCT 58 ) * AVG ( - + 92 ) ) ) + + 27 - COUNT ( * )
----
102

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-791
SELECT + 74 * + + 65 * + - 5 + 54 - + CAST( NULL AS DECIMAL ) * + + CASE WHEN 36 IS NULL THEN COUNT( * ) WHEN ( NULL ) BETWEEN ( 13 + + COUNT( * ) * - 14 ) AND NULL THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-791
SELECT + 74 * + + 65 * + - 5 + 54 - + CAST ( NULL AS REAL ) * + + CASE WHEN 36 IS NULL THEN COUNT ( * ) WHEN ( NULL ) BETWEEN ( 13 + + COUNT ( * ) * - 14 ) AND NULL THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - + COALESCE ( 62, 62, - 54 )
----
-62

query II rowsort
SELECT 9 col2, - 87
----
9
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-794
SELECT ALL - 36 * 70 + + 7 AS col1, - 55 DIV - + MAX( + - 62 ) + ( - COUNT( * ) ) * + - 56 AS col1
----
-2513
56

skipif mysql # not compatible
query II rowsort label-794
SELECT ALL - 36 * 70 + + 7 AS col1, - 55 / - + MAX ( + - 62 ) + ( - COUNT ( * ) ) * + - 56 AS col1
----
-2513
56

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT - 1 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-795
SELECT - 1 / 97 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-796
SELECT + ( 46 ) + ( + + 16 ) DIV - + 72 - 48 * - MAX( ALL - 73 ) - 79 col0
----
-3537

skipif mysql # not compatible
query I rowsort label-796
SELECT + ( 46 ) + ( + + 16 ) / - + 72 - 48 * - MAX ( ALL - 73 ) - 79 col0
----
-3537

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT DISTINCT COUNT( ALL + 16 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT COUNT ( ALL + 16 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT DISTINCT - 92 * - + COUNT( * ) * 46
----
4232

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT - 92 * - + COUNT ( * ) * 46
----
4232

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-799
SELECT ALL + - ( + 91 ) DIV + + 29, MAX( ALL - 63 ) + - - 8 AS col1
----
-3
-55

skipif mysql # not compatible
query II rowsort label-799
SELECT ALL + - ( + 91 ) / + + 29, MAX ( ALL - 63 ) + - - 8 AS col1
----
-3
-55

query II rowsort
SELECT - 20, - 58 AS col1
----
-20
-58

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

skipif mysql # not compatible
query I rowsort label-801
SELECT - + CAST ( NULL AS INTEGER ) - - 93 + - 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-802
SELECT 79 AS col0, + COALESCE ( + COUNT( * ), + - 91, + ( ( + + 4 ) ) + + 99 + SUM( + 45 ) * + COALESCE ( 38, COUNT( * ) * 19 ) + 53 )
----
79
1

skipif mysql # not compatible
query II rowsort label-802
SELECT 79 AS col0, + COALESCE ( + COUNT ( * ), + - 91, + ( ( + + 4 ) ) + + 99 + SUM ( + 45 ) * + COALESCE ( 38, COUNT ( * ) * 19 ) + 53 )
----
79
1

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

skipif mysql # not compatible
query II rowsort label-803
SELECT + CAST ( NULL AS INTEGER ), - 94 AS col2
----
NULL
-94

query I rowsort
SELECT - 92 * 94 AS col0
----
-8648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-805
SELECT ALL + 65 DIV - 80 + 56 + + - 19 * + COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL + 65 / - 80 + 56 + + - 19 * + COUNT ( * ) AS col1
----
37

query I rowsort
SELECT + 4 * 73
----
292

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

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

query I rowsort
SELECT 45 * - - 9
----
405

query II rowsort
SELECT 22, 15 AS col0
----
22
15

query II rowsort
SELECT DISTINCT - 97 AS col2, - 75
----
-97
-75

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

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

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

query I rowsort
SELECT + ( NULLIF ( + - 74, 85 ) ) * + 27 * - - 16 / 68 / - + CASE 24 WHEN 70 / 5 / + 38 THEN 58 END - 96 AS col0
----
NULL

query II rowsort
SELECT ALL - 99 AS col1, - 68 AS col2
----
-99
-68

query II rowsort
SELECT + 35 AS col1, + 83
----
35
83

onlyif mysql # aggregate syntax: 
query II rowsort label-816
SELECT ALL - COUNT( * ) AS col0, + 84
----
-1
84

skipif mysql # not compatible
query II rowsort label-816
SELECT ALL - COUNT ( * ) AS col0, + 84
----
-1
84

query I rowsort
SELECT ALL + 82 * 33 * - - 13 AS col1
----
35178

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-818
SELECT + SUM( + 86 ), 85 * - + COALESCE ( + 98, - MIN( + 55 ) DIV + - 69, - CASE - 86 WHEN + 41 + 78 THEN NULL WHEN + 2 + 89 THEN COUNT( * ) DIV - 25 END - 6 * 77 ) * ( 53 ) AS col2
----
86
-441490

skipif mysql # not compatible
query II rowsort label-818
SELECT + SUM ( + 86 ), 85 * - + COALESCE ( + 98, - MIN ( + 55 ) / + - 69, - CASE - 86 WHEN + 41 + 78 THEN NULL WHEN + 2 + 89 THEN COUNT ( * ) / - 25 END - 6 * 77 ) * ( 53 ) AS col2
----
86
-441490

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT + 35 - - - 37 - - - 13 * - SUM( ALL + NULLIF ( 4, 28 * + + 7 ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-819
SELECT + 35 - - - 37 - - - 13 * - SUM ( ALL + NULLIF ( 4, 28 * + + 7 ) ) AS col0
----
50

query II rowsort
SELECT ALL 29 AS col1, 57 + 75 AS col1
----
29
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-821
SELECT COALESCE ( 93, + - 53, + COALESCE ( - + ( - - 59 ), - CASE WHEN ( NULL ) NOT IN ( + 3 ) THEN + CAST( NULL AS SIGNED ) + 5 * 36 WHEN 81 IN ( + COUNT( * ) + 38 ) THEN 95 ELSE NULL END - - 96 * + COUNT( * ) ) + + 1 * CAST( 17 + 36 AS SIGNED ) ) + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-821
SELECT COALESCE ( 93, + - 53, + COALESCE ( - + ( - - 59 ), - CASE WHEN ( NULL ) NOT IN ( + 3 ) THEN + CAST ( NULL AS INTEGER ) + 5 * 36 WHEN 81 IN ( + COUNT ( * ) + 38 ) THEN 95 ELSE NULL END - - 96 * + COUNT ( * ) ) + + 1 * CAST ( 17 + 36 AS INTEGER ) ) + + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT DISTINCT + - 94 * CASE + 78 WHEN + + 50 * - 29 - - - 1 THEN - 66 * 94 * 68 - COUNT( * ) WHEN 47 THEN NULL END * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT DISTINCT + - 94 * CASE + 78 WHEN + + 50 * - 29 - - - 1 THEN - 66 * 94 * 68 - COUNT ( * ) WHEN 47 THEN NULL END * 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-823
SELECT + 93 + - CAST( NULL AS SIGNED ) - + - 76 * 60 + - 82 * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-823
SELECT + 93 + - CAST ( NULL AS INTEGER ) - + - 76 * 60 + - 82 * 9
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-824
SELECT COALESCE ( + - 76, - CAST( NULL AS SIGNED ) )
----
-76

skipif mysql # not compatible
query I rowsort label-824
SELECT COALESCE ( + - 76, - CAST ( NULL AS INTEGER ) )
----
-76

query II rowsort
SELECT ALL - 89, 84 * - 76 AS col1
----
-89
-6384

query I rowsort
SELECT 33 + + 74 AS col1
----
107

query II rowsort
SELECT ALL + 76 AS col0, + 52
----
76
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-828
SELECT DISTINCT + CAST( + 70 AS SIGNED ) * - 81 * + 99
----
-561330

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT + CAST ( + 70 AS INTEGER ) * - 81 * + 99
----
-561330

query I rowsort
SELECT 79 + + ( - - 19 ) AS col0
----
98

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

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

query I rowsort
SELECT NULLIF ( 4, - - 28 ) * 8 + + + 77 AS col0
----
109

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

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

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

skipif mysql # not compatible
query I rowsort label-833
SELECT MAX ( DISTINCT 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT ALL 91 + + 15 + - NULLIF ( SUM( ALL 13 ), + 69 ) - + MIN( 61 ) * + - 33 * - 7 * MIN( DISTINCT 67 ) AS col2
----
-944004

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL 91 + + 15 + - NULLIF ( SUM ( ALL 13 ), + 69 ) - + MIN ( 61 ) * + - 33 * - 7 * MIN ( DISTINCT 67 ) AS col2
----
-944004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT ALL CAST( 78 AS SIGNED ) col2
----
78

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL CAST ( 78 AS INTEGER ) col2
----
78

query I rowsort
SELECT 89 * + 32
----
2848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-837
SELECT 33 * - - 44 AS col0, 46 - + + CAST( COUNT( * ) AS SIGNED ) AS col1
----
1452
45

skipif mysql # not compatible
query II rowsort label-837
SELECT 33 * - - 44 AS col0, 46 - + + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
1452
45

query I rowsort
SELECT 48 + + 67 + + 4 * 96 * 70 AS col1
----
26995

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT ALL 57 + - NULLIF ( + + 99, - 35 / COUNT( * ) )
----
-42

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL 57 + - NULLIF ( + + 99, - 35 / COUNT ( * ) )
----
-42

query II rowsort
SELECT 23 AS col1, - 68
----
23
-68

query II rowsort
SELECT - + 25, - 83 AS col0
----
-25
-83

query I rowsort
SELECT DISTINCT ( - 22 ) + 18
----
-4

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

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

query II rowsort
SELECT DISTINCT 9 + - 69 AS col1, + 91
----
-60
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-845
SELECT DISTINCT COALESCE ( - SUM( 5 ), 68 * ( + 67 ) * + 77, - CASE - 15 WHEN + COUNT( ALL + 27 ) THEN NULL WHEN - NULLIF ( - 46, + 67 ) * COUNT( * ) THEN + 77 + - 2 ELSE 77 DIV 61 END ) + 81 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT COALESCE ( - SUM ( 5 ), 68 * ( + 67 ) * + 77, - CASE - 15 WHEN + COUNT ( ALL + 27 ) THEN NULL WHEN - NULLIF ( - 46, + 67 ) * COUNT ( * ) THEN + 77 + - 2 ELSE 77 / 61 END ) + 81 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-846
SELECT ALL + 40 + - MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL + 40 + - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-847
SELECT CASE + COUNT( * ) WHEN + 48 * + CAST( NULL AS SIGNED ) THEN NULL ELSE 26 END - + - 79 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-847
SELECT CASE + COUNT ( * ) WHEN + 48 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE 26 END - + - 79 AS col0
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-848
SELECT 64 * - 0 AS col0, - MAX( DISTINCT 26 )
----
0
-26

skipif mysql # not compatible
query II rowsort label-848
SELECT 64 * - 0 AS col0, - MAX ( DISTINCT 26 )
----
0
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-849
SELECT 76 * COUNT( * ) + 73, - 28 / - - CAST( NULL AS DECIMAL ) AS col2
----
149
NULL

skipif mysql # not compatible
query II rowsort label-849
SELECT 76 * COUNT ( * ) + 73, - 28 / - - CAST ( NULL AS REAL ) AS col2
----
149
NULL

query II rowsort
SELECT 71 + + ( - 32 ) AS col0, ( - 39 )
----
39
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-851
SELECT + 53 DIV 82 * + COALESCE ( + + 16, + + COUNT( * ) + - 75, + + 75, 24 + 84 ) + + - 92 + - 89
----
-181

skipif mysql # not compatible
query I rowsort label-851
SELECT + 53 / 82 * + COALESCE ( + + 16, + + COUNT ( * ) + - 75, + + 75, 24 + 84 ) + + - 92 + - 89
----
-181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-852
SELECT + CASE 27 WHEN + - ( - 60 ) * + SUM( DISTINCT - + 55 ) * - + AVG ( + 60 ) * + NULLIF ( - 27, + - COUNT( * ) ) * 6 + + CAST( NULL AS SIGNED ) / + 8 + - 34 THEN NULL WHEN - 98 * COUNT( * ) THEN + COUNT( 47 ) WHEN 63 THEN 82 WHEN + COUNT( * ) THEN 80 * 28 END * COUNT( * ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-852
SELECT + CASE 27 WHEN + - ( - 60 ) * + SUM ( DISTINCT - + 55 ) * - + AVG ( + 60 ) * + NULLIF ( - 27, + - COUNT ( * ) ) * 6 + + CAST ( NULL AS INTEGER ) / + 8 + - 34 THEN NULL WHEN - 98 * COUNT ( * ) THEN + COUNT ( 47 ) WHEN 63 THEN 82 WHEN + COUNT ( * ) THEN 80 * 28 END * COUNT ( * ) + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT COUNT( * ) * + 61 + 40 - - 27
----
128

skipif mysql # not compatible
query I rowsort label-853
SELECT COUNT ( * ) * + 61 + 40 - - 27
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-854
SELECT DISTINCT 7 - CAST( - 15 AS SIGNED ) + + 42
----
64

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT 7 - CAST ( - 15 AS INTEGER ) + + 42
----
64

query II rowsort
SELECT 89 * 38 AS col2, + 8 AS col0
----
3382
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-856
SELECT ALL - CAST( - 35 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL - CAST ( - 35 AS INTEGER )
----
35

query I rowsort
SELECT 76 + + 65
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT ALL + - 4 * + ( - CASE - 1 WHEN 16 + + ( - 19 ) / - + 41 * + + ( + + 24 ) * 23 - + ( MIN( - 25 ) ) THEN NULL WHEN - 45 * - NULLIF ( - 98, + COUNT( * ) * 69 ) + - 38 THEN COUNT( * ) * + 47 WHEN - NULLIF ( 11, + MAX( DISTINCT + 93 ) ) / 92 THEN NULL ELSE NULL END ) * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL + - 4 * + ( - CASE - 1 WHEN 16 + + ( - 19 ) / - + 41 * + + ( + + 24 ) * 23 - + ( MIN ( - 25 ) ) THEN NULL WHEN - 45 * - NULLIF ( - 98, + COUNT ( * ) * 69 ) + - 38 THEN COUNT ( * ) * + 47 WHEN - NULLIF ( 11, + MAX ( DISTINCT + 93 ) ) / 92 THEN NULL ELSE NULL END ) * 46
----
NULL

query I rowsort
SELECT - 33 + - 90
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT + COUNT( * ) * - + 23 + - 35 + - CASE - - 2 WHEN - COUNT( * ) THEN NULL WHEN MIN( - ( 12 ) ) + - 7 THEN 2 WHEN + ( + COUNT( * ) ) * MIN( ALL - 34 ) THEN - 57 END / - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-860
SELECT + COUNT ( * ) * - + 23 + - 35 + - CASE - - 2 WHEN - COUNT ( * ) THEN NULL WHEN MIN ( - ( 12 ) ) + - 7 THEN 2 WHEN + ( + COUNT ( * ) ) * MIN ( ALL - 34 ) THEN - 57 END / - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT - ( - 0 ) * + 92 + - NULLIF ( 78, + 61 ) * - - COUNT( * ) * - COUNT( * ) * - 26 * - 67
----
135876

skipif mysql # not compatible
query I rowsort label-861
SELECT - ( - 0 ) * + 92 + - NULLIF ( 78, + 61 ) * - - COUNT ( * ) * - COUNT ( * ) * - 26 * - 67
----
135876

query I rowsort
SELECT + NULLIF ( 43, - 10 ) AS col0
----
43

query I rowsort
SELECT ( 8 ) * - + 78 * ( - 1 )
----
624

onlyif mysql # DIV for integer division: 
query I rowsort label-864
SELECT 78 DIV 55 * 20 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-864
SELECT 78 / 55 * 20 AS col1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-865
SELECT DISTINCT - + NULLIF ( + - 30, + - 55 DIV + 77 - + COUNT( * ) ) + - 4 * + 40, 20 + - 31 DIV + - 89 AS col2
----
-130
20

skipif mysql # not compatible
query II rowsort label-865
SELECT DISTINCT - + NULLIF ( + - 30, + - 55 / + 77 - + COUNT ( * ) ) + - 4 * + 40, 20 + - 31 / + - 89 AS col2
----
-130
20

query I rowsort
SELECT DISTINCT 75 + - NULLIF ( - + 2, - - 76 )
----
77

query I rowsort
SELECT ALL 79 + + 43 AS col0
----
122

query I rowsort
SELECT ALL - 42 * - 91 + 73
----
3895

query I rowsort
SELECT - + 73 col2
----
-73

query I rowsort
SELECT 96 - - + 46 AS col0
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-871
SELECT ALL + ( - - COALESCE ( 72, CASE - 21 WHEN - 33 THEN NULL WHEN + COUNT( * ) / + 32 / + + 16 / + COUNT( * ) * + MIN( 44 ) + - - ( - 18 ) * + 96 THEN 96 + 12 ELSE NULL END * - SUM( 21 * - NULLIF ( - 37, - 75 * - 52 + 1 * - 49 ) ) - CAST( 29 AS SIGNED ) ) ) + 30
----
102

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL + ( - - COALESCE ( 72, CASE - 21 WHEN - 33 THEN NULL WHEN + COUNT ( * ) / + 32 / + + 16 / + COUNT ( * ) * + MIN ( 44 ) + - - ( - 18 ) * + 96 THEN 96 + 12 ELSE NULL END * - SUM ( 21 * - NULLIF ( - 37, - 75 * - 52 + 1 * - 49 ) ) - CAST ( 29 AS INTEGER ) ) ) + 30
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL 44 * NULLIF ( - - SUM( DISTINCT + + 45 ), + - ( 64 ) * COUNT( * ) - + COUNT( * ) + - COUNT( * ) + - MIN( DISTINCT + + ( + 78 ) ) * - + 78 + + 16 )
----
1980

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL 44 * NULLIF ( - - SUM ( DISTINCT + + 45 ), + - ( 64 ) * COUNT ( * ) - + COUNT ( * ) + - COUNT ( * ) + - MIN ( DISTINCT + + ( + 78 ) ) * - + 78 + + 16 )
----
1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-873
SELECT ALL CASE + 24 WHEN - 92 + + 60 THEN - CAST( - - CASE + + SUM( 94 ) WHEN - ( - ( - 61 ) ) THEN - 94 - COUNT( * ) + + ( 15 + 44 * + 11 ) / + 21 ELSE NULL END AS SIGNED ) - 34 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL CASE + 24 WHEN - 92 + + 60 THEN - CAST ( - - CASE + + SUM ( 94 ) WHEN - ( - ( - 61 ) ) THEN - 94 - COUNT ( * ) + + ( 15 + 44 * + 11 ) / + 21 ELSE NULL END AS INTEGER ) - 34 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT + COUNT( * ) + + 95 - MAX( DISTINCT + + 16 )
----
80

skipif mysql # not compatible
query I rowsort label-874
SELECT + COUNT ( * ) + + 95 - MAX ( DISTINCT + + 16 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT + 85 - - MIN( DISTINCT - CASE - 77 WHEN + + 7 - + - 16 THEN - 92 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-875
SELECT + 85 - - MIN ( DISTINCT - CASE - 77 WHEN + + 7 - + - 16 THEN - 92 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT ALL 9 * + COUNT( DISTINCT 16 ) * - + 7 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL 9 * + COUNT ( DISTINCT 16 ) * - + 7 AS col2
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-877
SELECT - 14 DIV + 14 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-877
SELECT - 14 / + 14 AS col0
----
-1

query I rowsort
SELECT + 49 + + 85
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL 61 * + + COALESCE ( - 48, + + COUNT( * ) )
----
-2928

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL 61 * + + COALESCE ( - 48, + + COUNT ( * ) )
----
-2928

query I rowsort
SELECT CASE - + 45 WHEN + - 64 THEN NULL WHEN - 91 THEN 45 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT ALL - 9 * - CASE - - AVG ( + + 44 ) WHEN 1 + 9 THEN NULL WHEN + 19 + + COUNT( * ) THEN + 59 + ( + - 13 ) * + 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL - 9 * - CASE - - AVG ( + + 44 ) WHEN 1 + 9 THEN NULL WHEN + 19 + + COUNT ( * ) THEN + 59 + ( + - 13 ) * + 36 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT DISTINCT 66 * COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT 66 * COUNT ( * ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT + COALESCE ( 26, + COUNT( * ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-883
SELECT + COALESCE ( 26, + COUNT ( * ) ) AS col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-884
SELECT + CAST( - 92 AS SIGNED ) * - 19 * + 8 AS col2
----
13984

skipif mysql # not compatible
query I rowsort label-884
SELECT + CAST ( - 92 AS INTEGER ) * - 19 * + 8 AS col2
----
13984

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

onlyif mysql # DIV for integer division: 
query I rowsort label-886
SELECT + + 92 - - - 40 - + 99 * 15 DIV - 33
----
97

skipif mysql # not compatible
query I rowsort label-886
SELECT + + 92 - - - 40 - + 99 * 15 / - 33
----
97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-888
SELECT ALL 23 * + 31 + - 53 * + ( + 71 ) + - SUM( + 21 ) * 90 AS col0, + COUNT( * )
----
-4940
1

skipif mysql # not compatible
query II rowsort label-888
SELECT ALL 23 * + 31 + - 53 * + ( + 71 ) + - SUM ( + 21 ) * 90 AS col0, + COUNT ( * )
----
-4940
1

query I rowsort
SELECT DISTINCT ( - ( + 15 ) ) * 13 + + 83
----
-112

query I rowsort
SELECT + - 68 * - 17
----
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT - COUNT( * ) - + + 75 - 13 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-891
SELECT - COUNT ( * ) - + + 75 - 13 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT - NULLIF ( - 47, MIN( - 90 ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-892
SELECT - NULLIF ( - 47, MIN ( - 90 ) ) AS col1
----
47

query I rowsort
SELECT + 77 + - 61
----
16

query I rowsort
SELECT ALL + + 22 + + - 94
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-895
SELECT DISTINCT CASE WHEN - AVG ( - + 15 ) IN ( + - 72, - 54 + - 66 ) THEN - - 24 * COUNT( DISTINCT + 94 ) - + 81 END + + COUNT( * ) + - 46 + 54 * CAST( 60 AS SIGNED ) / CASE + 50 WHEN + 69 * + COUNT( * ) THEN - 6 * - 68 - - ( 70 ) WHEN COUNT( * ) THEN NULLIF ( + 24, + 2 * 68 ) + - 85 ELSE - 56 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT CASE WHEN - AVG ( - + 15 ) IN ( + - 72, - 54 + - 66 ) THEN - - 24 * COUNT ( DISTINCT + 94 ) - + 81 END + + COUNT ( * ) + - 46 + 54 * CAST ( 60 AS INTEGER ) / CASE + 50 WHEN + 69 * + COUNT ( * ) THEN - 6 * - 68 - - ( 70 ) WHEN COUNT ( * ) THEN NULLIF ( + 24, + 2 * 68 ) + - 85 ELSE - 56 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-896
SELECT ALL - + 9 DIV - 37 * - 25 + + ( 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL - + 9 / - 37 * - 25 + + ( 22 ) AS col0
----
22

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-898
SELECT DISTINCT + 39 + 10 + + 1 DIV + 90 * - 85 * - - 28 * + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT + 39 + 10 + + 1 / + 90 * - 85 * - - 28 * + COUNT ( * ) AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-899
SELECT ALL - 85 + CAST( + 75 AS SIGNED ) + - 73 * - 45
----
3275

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL - 85 + CAST ( + 75 AS INTEGER ) + - 73 * - 45
----
3275

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-900
SELECT ALL - COUNT( * ) DIV 15 AS col1, 70 * + CASE + + 33 WHEN 23 + - 75 THEN + 34 END AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-900
SELECT ALL - COUNT ( * ) / 15 AS col1, 70 * + CASE + + 33 WHEN 23 + - 75 THEN + 34 END AS col1
----
0
NULL

query II rowsort
SELECT DISTINCT + 94 * + 75 col2, 95 + CASE + 23 WHEN 30 * - 2 / - 76 THEN + 14 ELSE NULL END
----
7050
NULL

query II rowsort
SELECT - 97 * 25 col0, 57 AS col1
----
-2425
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-903
SELECT - COUNT( CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-903
SELECT - COUNT ( CAST ( NULL AS REAL ) )
----
0

query I rowsort
SELECT - 73 * + 94 AS col1
----
-6862

query I rowsort
SELECT - 91 + + ( + 35 ) AS col1
----
-56

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

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

query II rowsort
SELECT ALL - 22 - NULLIF ( - + 23, 88 + + - 42 ), 50 AS col0
----
1
50

query I rowsort
SELECT - 43 * - - 32 * - 64 AS col1
----
88064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-909
SELECT + MAX( + 5 ) DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-909
SELECT + MAX ( + 5 ) / 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT - 7 * + - MIN( - 19 )
----
-133

skipif mysql # not compatible
query I rowsort label-910
SELECT - 7 * + - MIN ( - 19 )
----
-133

query I rowsort
SELECT 14 * - + 49 + - 5 + - 51 + + 93 * 76
----
6326

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-912
SELECT + 6 DIV 48 + 72 + + NULLIF ( - 8, + CAST( NULL AS DECIMAL ) + - COUNT( * ) ) * + ( 38 ) * + - 19
----
5848

skipif mysql # not compatible
query I rowsort label-912
SELECT + 6 / 48 + 72 + + NULLIF ( - 8, + CAST ( NULL AS REAL ) + - COUNT ( * ) ) * + ( 38 ) * + - 19
----
5848

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT + - 58 * - 98 * + - MIN( DISTINCT - 2 ) col2
----
11368

skipif mysql # not compatible
query I rowsort label-913
SELECT + - 58 * - 98 * + - MIN ( DISTINCT - 2 ) col2
----
11368

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT ALL - ( + 96 ) DIV - 14 + - 70 + 38
----
-26

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL - ( + 96 ) / - 14 + - 70 + 38
----
-26

query I rowsort
SELECT DISTINCT + 8 * - + 91
----
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-916
SELECT + 95 DIV + + 9 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-916
SELECT + 95 / + + 9 AS col2
----
10

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

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL - - COUNT ( * ) * 88 + - 42 AS col0
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-918
SELECT + + 36 DIV + + 96 AS col1, + 35 * 97 col2
----
0
3395

skipif mysql # not compatible
query II rowsort label-918
SELECT + + 36 / + + 96 AS col1, + 35 * 97 col2
----
0
3395

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT + + 31 + + 75 + - - 9 * + COUNT( * ) AS col1
----
115

skipif mysql # not compatible
query I rowsort label-919
SELECT + + 31 + + 75 + - - 9 * + COUNT ( * ) AS col1
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-920
SELECT ALL - 64 * + NULLIF ( 53, - 65 * + 69 * MIN( 4 ) ) * 68 + - + 1 + SUM( - 79 ) DIV MAX( 99 ) + - 68 AS col1
----
-230725

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL - 64 * + NULLIF ( 53, - 65 * + 69 * MIN ( 4 ) ) * 68 + - + 1 + SUM ( - 79 ) / MAX ( 99 ) + - 68 AS col1
----
-230725

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT 56 * - + 64 + CASE + 68 WHEN - ( + - 6 ) THEN NULL WHEN - - 89 * - 60 THEN - + 12 / - 40 * + 9 / 41 / COUNT( * ) WHEN 85 + + 44 THEN + NULLIF ( 23, - COUNT( * ) ) - - MIN( ALL - ( + 66 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-922
SELECT 56 * - + 64 + CASE + 68 WHEN - ( + - 6 ) THEN NULL WHEN - - 89 * - 60 THEN - + 12 / - 40 * + 9 / 41 / COUNT ( * ) WHEN 85 + + 44 THEN + NULLIF ( 23, - COUNT ( * ) ) - - MIN ( ALL - ( + 66 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-923
SELECT DISTINCT + + COALESCE ( - 48, + CASE WHEN NOT + 82 IS NOT NULL THEN + 30 END, - 9 ) AS col2, 30 + + SUM( 95 ) AS col2
----
-48
125

skipif mysql # not compatible
query II rowsort label-923
SELECT DISTINCT + + COALESCE ( - 48, + CASE WHEN NOT + 82 IS NOT NULL THEN + 30 END, - 9 ) AS col2, 30 + + SUM ( 95 ) AS col2
----
-48
125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT - COALESCE ( - 54, - MIN( ALL + 93 ), + 77 + - - ( + 8 ) + + 35 - - 74 - + 55 ) * - - ( + 36 ) + + 48 - + COUNT( * ) * + CASE 34 * - 40 WHEN + 61 * 83 THEN NULL ELSE 74 END
----
1918

skipif mysql # not compatible
query I rowsort label-925
SELECT - COALESCE ( - 54, - MIN ( ALL + 93 ), + 77 + - - ( + 8 ) + + 35 - - 74 - + 55 ) * - - ( + 36 ) + + 48 - + COUNT ( * ) * + CASE 34 * - 40 WHEN + 61 * 83 THEN NULL ELSE 74 END
----
1918

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-926
SELECT ALL + 10 - - AVG ( ALL + - CAST( NULL AS DECIMAL ) ) + - - 2 - - COUNT( * ) * - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL + 10 - - AVG ( ALL + - CAST ( NULL AS REAL ) ) + - - 2 - - COUNT ( * ) * - 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT DISTINCT - - COUNT( * ) * COUNT( DISTINCT 74 )
----
1

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT - - COUNT ( * ) * COUNT ( DISTINCT 74 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-928
SELECT ALL MAX( + 50 ) * 64 DIV NULLIF ( - ( - 69 ), - COUNT( * ) * - - 7 + - + COALESCE ( + MAX( + 27 ), - - 14 DIV + 90 ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL MAX ( + 50 ) * 64 / NULLIF ( - ( - 69 ), - COUNT ( * ) * - - 7 + - + COALESCE ( + MAX ( + 27 ), - - 14 / + 90 ) ) AS col1
----
46

query I rowsort
SELECT 29 - + - 13 + + 35 + + - 73 * + 11 + + 44 AS col0
----
-682

query I rowsort
SELECT 71 + - 31
----
40

query I rowsort
SELECT DISTINCT 33 * NULLIF ( + 92, - 69 ) AS col2
----
3036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-932
SELECT ALL 92 - NULLIF ( - COUNT( * ), + 49 * - + 92 ) * - 98 DIV - 27
----
95

skipif mysql # not compatible
query I rowsort label-932
SELECT ALL 92 - NULLIF ( - COUNT ( * ), + 49 * - + 92 ) * - 98 / - 27
----
95

query I rowsort
SELECT 80 + 86 - - - 35 * - 83 AS col0
----
3071

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

query II rowsort
SELECT ALL 54, 86 + - 46 AS col2
----
54
40

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT DISTINCT CASE 40 WHEN COUNT( * ) THEN - 68 + - + 40 ELSE NULL END * - 42 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT CASE 40 WHEN COUNT ( * ) THEN - 68 + - + 40 ELSE NULL END * - 42 + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL 8 AS col0, + 70
----
8
70

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT DISTINCT + 63 DIV 13
----
4

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT + 63 / 13
----
4

query I rowsort
SELECT 74 - 80
----
-6

query I rowsort
SELECT 80 * - 18 AS col2
----
-1440

query I rowsort
SELECT 89 * - 19 AS col2
----
-1691

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-942
SELECT DISTINCT + 64 DIV MIN( 55 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT + 64 / MIN ( 55 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-943
SELECT 5 + CAST( COUNT( * ) AS SIGNED ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-943
SELECT 5 + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT 79 * + - NULLIF ( + 34, - COUNT( * ) * + 29 * - + 21 * 9 * 19 ) AS col2
----
-2686

skipif mysql # not compatible
query I rowsort label-944
SELECT 79 * + - NULLIF ( + 34, - COUNT ( * ) * + 29 * - + 21 * 9 * 19 ) AS col2
----
-2686

query II rowsort
SELECT + 84 col0, 88 AS col2
----
84
88

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT ALL + 46 + - COUNT( + + ( 26 ) ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL + 46 + - COUNT ( + + ( 26 ) ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT ALL - 12 * + 39 - 99 + + COUNT( * ) + 15 * - 4 AS col1
----
-626

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL - 12 * + 39 - 99 + + COUNT ( * ) + 15 * - 4 AS col1
----
-626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-948
SELECT SUM( NULLIF ( + 86, + ( - 70 ) ) ) * 93 * CAST( 63 AS SIGNED ) + + 71
----
503945

skipif mysql # not compatible
query I rowsort label-948
SELECT SUM ( NULLIF ( + 86, + ( - 70 ) ) ) * 93 * CAST ( 63 AS INTEGER ) + + 71
----
503945

query I rowsort
SELECT ALL - - 10 + + + 28 AS col2
----
38

query I rowsort
SELECT DISTINCT - 79 * - 35 AS col0
----
2765

query I rowsort
SELECT + 2 * - 12 AS col2
----
-24

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

skipif mysql # not compatible
query I rowsort label-952
SELECT + COUNT ( * ) + - 62 + - 55 AS col1
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL - + NULLIF ( - 63, + 42 + - 40 * + 82 * - 66 + 58 ) + + NULLIF ( 37, COALESCE ( + SUM( + 44 ), + 46 * - 20 ) )
----
100

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - + NULLIF ( - 63, + 42 + - 40 * + 82 * - 66 + 58 ) + + NULLIF ( 37, COALESCE ( + SUM ( + 44 ), + 46 * - 20 ) )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT NULLIF ( 99, - + 36 + - - ( COALESCE ( - 70, + COUNT( * ) ) ) ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-954
SELECT NULLIF ( 99, - + 36 + - - ( COALESCE ( - 70, + COUNT ( * ) ) ) ) AS col2
----
99

query I rowsort
SELECT 99 * - 7
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT DISTINCT - 63 * MIN( + - 6 ) AS col1
----
378

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT - 63 * MIN ( + - 6 ) AS col1
----
378

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT ALL - - COUNT( * ), - 71 + COUNT( ALL + 80 ) AS col0
----
1
-70

skipif mysql # not compatible
query II rowsort label-957
SELECT ALL - - COUNT ( * ), - 71 + COUNT ( ALL + 80 ) AS col0
----
1
-70

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

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT + COUNT ( * ) / - 90 AS col0
----
0

query I rowsort
SELECT - 95 + 48
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-960
SELECT DISTINCT - - 70 AS col1, + 76 * - 16 * COUNT( * ) col2
----
70
-1216

skipif mysql # not compatible
query II rowsort label-960
SELECT DISTINCT - - 70 AS col1, + 76 * - 16 * COUNT ( * ) col2
----
70
-1216

query I rowsort
SELECT DISTINCT + - 25 * + 80 + + 94 * ( + 60 )
----
3640

query I rowsort
SELECT DISTINCT - - 53 col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT ALL - + SUM( DISTINCT 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL - + SUM ( DISTINCT 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT 58 * - - COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-964
SELECT 58 * - - COUNT ( * ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT ALL 92 - + COUNT( DISTINCT - - 62 )
----
91

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL 92 - + COUNT ( DISTINCT - - 62 )
----
91

query I rowsort
SELECT 45 * + + 47 AS col0
----
2115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-967
SELECT CAST( - 15 AS SIGNED ) + + 78 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-967
SELECT CAST ( - 15 AS INTEGER ) + + 78 AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-968
SELECT 92 col2, CAST( NULL AS SIGNED ) + - - 90 AS col1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-968
SELECT 92 col2, CAST ( NULL AS INTEGER ) + - - 90 AS col1
----
92
NULL

query II rowsort
SELECT ALL 98, - 13 * + 15 AS col2
----
98
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-970
SELECT MIN( ALL 95 ) + - + 41 DIV + - COUNT( * )
----
136

skipif mysql # not compatible
query I rowsort label-970
SELECT MIN ( ALL 95 ) + - + 41 / + - COUNT ( * )
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-971
SELECT MAX( ALL + 63 ) + 89 * + COUNT( * ) / - + 95 * + ( MAX( + 71 ) ) * + COUNT( * ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-971
SELECT MAX ( ALL + 63 ) + 89 * + COUNT ( * ) / - + 95 * + ( MAX ( + 71 ) ) * + COUNT ( * ) + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 70 + - 53 AS col0
----
17

query I rowsort
SELECT 15 * + 68 * 69 AS col2
----
70380

query I rowsort
SELECT ( - 88 ) + - - 47 * ( 95 ) col1
----
4377

query II rowsort
SELECT 81, + 24 AS col2
----
81
24

query I rowsort
SELECT ALL 84 + - + 24
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-977
SELECT ALL + COALESCE ( + COUNT( * ), + MAX( 98 ) * - 98 DIV + 47 + - 8, 4 * + 31 ) + COUNT( * ) * + 60 col1
----
61

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL + COALESCE ( + COUNT ( * ), + MAX ( 98 ) * - 98 / + 47 + - 8, 4 * + 31 ) + COUNT ( * ) * + 60 col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT ( - COUNT( 85 ) ) + 51 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-978
SELECT ( - COUNT ( 85 ) ) + 51 AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-979
SELECT ALL + 50 + - COUNT( * ) + 73 + + CAST( + SUM( 8 ) AS SIGNED ) * + COUNT( * ) * - + 81 AS col2
----
-526

skipif mysql # not compatible
query I rowsort label-979
SELECT ALL + 50 + - COUNT ( * ) + 73 + + CAST ( + SUM ( 8 ) AS INTEGER ) * + COUNT ( * ) * - + 81 AS col2
----
-526

onlyif mysql # DIV for integer division: 
query I rowsort label-980
SELECT - 16 DIV + 84 + + - 80 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-980
SELECT - 16 / + 84 + + - 80 AS col2
----
-80

query II rowsort
SELECT + 28 AS col2, - 7 + + - 98 col2
----
28
-105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-982
SELECT NULLIF ( + + 75, 62 * + 70 + - 40 - + ( + + CASE NULLIF ( - 74, + ( - + 47 ) ) WHEN - COUNT( * ) * - AVG ( DISTINCT - 86 ) THEN NULL WHEN 94 / 47 + + COUNT( * ) THEN 95 * 42 + + CAST( - 38 + AVG ( DISTINCT - 57 ) * 98 AS DECIMAL ) * COUNT( * ) ELSE NULL END ) + 97 * 14 )
----
75

skipif mysql # not compatible
query I rowsort label-982
SELECT NULLIF ( + + 75, 62 * + 70 + - 40 - + ( + + CASE NULLIF ( - 74, + ( - + 47 ) ) WHEN - COUNT ( * ) * - AVG ( DISTINCT - 86 ) THEN NULL WHEN 94 / 47 + + COUNT ( * ) THEN 95 * 42 + + CAST ( - 38 + AVG ( DISTINCT - 57 ) * 98 AS REAL ) * COUNT ( * ) ELSE NULL END ) + 97 * 14 )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT - 11 DIV 20 + - - 69
----
69

skipif mysql # not compatible
query I rowsort label-983
SELECT - 11 / 20 + - - 69
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-984
SELECT - + 3 + - 94 DIV + 92 + - - NULLIF ( - 55, - + 39 )
----
-59

skipif mysql # not compatible
query I rowsort label-984
SELECT - + 3 + - 94 / + 92 + - - NULLIF ( - 55, - + 39 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT COALESCE ( + + 62, + - COUNT( * ) * + + 1 + 17 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-985
SELECT COALESCE ( + + 62, + - COUNT ( * ) * + + 1 + 17 ) AS col0
----
62

query I rowsort
SELECT ALL + 34 * + 29
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT - - NULLIF ( CASE + 40 WHEN + - 66 + + 29 THEN - - 76 - - - 54 WHEN + SUM( ALL + 94 ) THEN NULL ELSE NULL END, - 12 * 98 ) + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-987
SELECT - - NULLIF ( CASE + 40 WHEN + - 66 + + 29 THEN - - 76 - - - 54 WHEN + SUM ( ALL + 94 ) THEN NULL ELSE NULL END, - 12 * 98 ) + + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT ALL + 26 * + ( + 91 ) * + + 15 - + + 86 + - CASE + 62 WHEN - + ( + COUNT( - 82 ) ) THEN - 9 END + - - 76 * - + CASE 93 WHEN + 5 * - 73 + 37 THEN 15 * 19 END / + MIN( ALL - 3 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL + 26 * + ( + 91 ) * + + 15 - + + 86 + - CASE + 62 WHEN - + ( + COUNT ( - 82 ) ) THEN - 9 END + - - 76 * - + CASE 93 WHEN + 5 * - 73 + 37 THEN 15 * 19 END / + MIN ( ALL - 3 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 73 * + - 26 + - + 51
----
1847

query II rowsort
SELECT DISTINCT + - 58, + 7 col0
----
-58
7

query I rowsort
SELECT - ( - 86 ) * - 73 * 72 * 47 AS col0
----
-21244752

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-992
SELECT + CAST( + 23 AS SIGNED ), - 13 AS col0
----
23
-13

skipif mysql # not compatible
query II rowsort label-992
SELECT + CAST ( + 23 AS INTEGER ), - 13 AS col0
----
23
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT - + NULLIF ( CASE - - COUNT( * ) WHEN ( - 19 ) / + 85 * - + 84 + - ( 0 ) THEN NULL WHEN + + 0 + + COUNT( * ) * 95 + - 24 THEN 69 * + + 73 + - 42 END, 27 * + CASE + 42 WHEN - COUNT( * ) THEN 69 WHEN + 72 THEN NULL END ) * + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-993
SELECT - + NULLIF ( CASE - - COUNT ( * ) WHEN ( - 19 ) / + 85 * - + 84 + - ( 0 ) THEN NULL WHEN + + 0 + + COUNT ( * ) * 95 + - 24 THEN 69 * + + 73 + - 42 END, 27 * + CASE + 42 WHEN - COUNT ( * ) THEN 69 WHEN + 72 THEN NULL END ) * + 39 AS col0
----
NULL

query I rowsort
SELECT ALL + 63 * + 7 AS col2
----
441

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT ALL + 90 DIV + + 97
----
0

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL + 90 / + + 97
----
0

query I rowsort
SELECT DISTINCT NULLIF ( + - 59, 85 )
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-997
SELECT DISTINCT + 81 DIV 3 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT + 81 / 3 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT - COUNT( - - 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-998
SELECT - COUNT ( - - 54 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-999
SELECT ALL CASE - + 83 WHEN - CASE - + 86 WHEN - 39 THEN NULL ELSE 28 + + 84 END THEN - 58 WHEN 90 * + + 51 THEN NULL END AS col0, + 55 + + - 44 + COUNT( DISTINCT + 91 ) AS col0
----
NULL
12

skipif mysql # not compatible
query II rowsort label-999
SELECT ALL CASE - + 83 WHEN - CASE - + 86 WHEN - 39 THEN NULL ELSE 28 + + 84 END THEN - 58 WHEN 90 * + + 51 THEN NULL END AS col0, + 55 + + - 44 + COUNT ( DISTINCT + 91 ) AS col0
----
NULL
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1000
SELECT ALL - 63 + + CAST( - 51 AS SIGNED ) - 63 DIV - 88 * - 76
----
-114

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL - 63 + + CAST ( - 51 AS INTEGER ) - 63 / - 88 * - 76
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT - SUM( 86 ) - + 61 + - 6 - - + 64 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-1001
SELECT - SUM ( 86 ) - + 61 + - 6 - - + 64 AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1002
SELECT ALL ( + - 34 ) AS col2, - CAST( + - 87 AS SIGNED ) DIV - - 82 + - 75 * - 17 * - 24 * + 97 * + - ( 49 ) AS col1
----
-34
145441801

skipif mysql # not compatible
query II rowsort label-1002
SELECT ALL ( + - 34 ) AS col2, - CAST ( + - 87 AS INTEGER ) / - - 82 + - 75 * - 17 * - 24 * + 97 * + - ( 49 ) AS col1
----
-34
145441801

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + 14 + + COUNT( * ) + + 5
----
20

skipif mysql # not compatible
query I rowsort label-1003
SELECT + 14 + + COUNT ( * ) + + 5
----
20

query I rowsort
SELECT + 90 + - - 53 * - + 75 + + - 55 AS col0
----
-3940

query I rowsort
SELECT ALL 96 + + 11 col0
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1006
SELECT + CAST( 76 AS SIGNED ) * - 42
----
-3192

skipif mysql # not compatible
query I rowsort label-1006
SELECT + CAST ( 76 AS INTEGER ) * - 42
----
-3192

query II rowsort
SELECT + 37 - 99 + - 67 * + + ( - 66 ) AS col1, 30
----
4360
30

query II rowsort
SELECT DISTINCT ( - + 71 ) AS col1, - NULLIF ( + + 30, - + 71 * + 78 )
----
-71
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-1009
SELECT ALL - 19 + 17 AS col0, SUM( 26 ) * + - 66
----
-2
-1716

skipif mysql # not compatible
query II rowsort label-1009
SELECT ALL - 19 + 17 AS col0, SUM ( 26 ) * + - 66
----
-2
-1716

query I rowsort
SELECT DISTINCT 95 + + 20
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT DISTINCT - 88 + + + NULLIF ( + COUNT( * ), 51 )
----
-87

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT - 88 + + + NULLIF ( + COUNT ( * ), 51 )
----
-87

query I rowsort
SELECT DISTINCT 63 * - - 39 * + - 81 AS col2
----
-199017

onlyif mysql # aggregate syntax: 
query II rowsort label-1013
SELECT + - MAX( 31 ) col1, 15 * + - COALESCE ( 12, + + 15 ) AS col1
----
-31
-180

skipif mysql # not compatible
query II rowsort label-1013
SELECT + - MAX ( 31 ) col1, 15 * + - COALESCE ( 12, + + 15 ) AS col1
----
-31
-180

query I rowsort
SELECT ALL + 69 * - - 52
----
3588

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

skipif mysql # not compatible
query I rowsort label-1015
SELECT MAX ( DISTINCT - 58 )
----
-58

query I rowsort
SELECT COALESCE ( + 16, + 37 )
----
16

query I rowsort
SELECT + 77 * 11 * + + 15 AS col0
----
12705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1018
SELECT - 86 DIV + - MIN( - 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-1018
SELECT - 86 / + - MIN ( - 85 )
----
-1

query I rowsort
SELECT ALL + + 56 col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1020
SELECT + COUNT( * ) + - SUM( 12 ) - + ( - - 47 ) DIV - 18
----
-9

skipif mysql # not compatible
query I rowsort label-1020
SELECT + COUNT ( * ) + - SUM ( 12 ) - + ( - - 47 ) / - 18
----
-9

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

query I rowsort
SELECT + 44 + - 23 AS col0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1023
SELECT - + 25 DIV + - 11 DIV COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1023
SELECT - + 25 / + - 11 / COUNT ( * )
----
2

query I rowsort
SELECT ALL + - ( + ( - - 76 ) ) * + - 54
----
4104

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT DISTINCT 15 * MIN( DISTINCT - 54 ) * + ( - 85 )
----
68850

skipif mysql # not compatible
query I rowsort label-1025
SELECT DISTINCT 15 * MIN ( DISTINCT - 54 ) * + ( - 85 )
----
68850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1026
SELECT DISTINCT COUNT( * ) * - 37 * 31 + 74 DIV ( - 56 ) - 45 AS col1
----
-1193

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT COUNT ( * ) * - 37 * 31 + 74 / ( - 56 ) - 45 AS col1
----
-1193

query I rowsort
SELECT ALL 33 * - 83
----
-2739

onlyif mysql # DIV for integer division: 
query I rowsort label-1028
SELECT COALESCE ( - 88, 55 * + 39, + - 18 DIV - 66 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-1028
SELECT COALESCE ( - 88, 55 * + 39, + - 18 / - 66 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT - COUNT( * ) + - 5 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-1029
SELECT - COUNT ( * ) + - 5 AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT + CAST( + 84 AS SIGNED ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-1030
SELECT + CAST ( + 84 AS INTEGER ) AS col2
----
84

query I rowsort
SELECT - 14 * + - 64 AS col0
----
896

query I rowsort
SELECT - 53 * - - 11 + - - 26
----
-557

onlyif mysql # aggregate syntax: 
query II rowsort label-1033
SELECT COUNT( * ) col1, 66 * 33 AS col2
----
1
2178

skipif mysql # not compatible
query II rowsort label-1033
SELECT COUNT ( * ) col1, 66 * 33 AS col2
----
1
2178

query I rowsort
SELECT - CASE 25 WHEN 53 THEN 74 ELSE 22 END col2
----
-22

query I rowsort
SELECT ALL + 21 * - 2 * - 72 + - 59
----
2965

query I rowsort
SELECT DISTINCT CASE 72 WHEN 70 THEN 28 / + 2 * 40 + + 93 END AS col1
----
NULL

query I rowsort
SELECT - ( + 21 ) + + 63 AS col2
----
42

query II rowsort
SELECT ALL + 87 + 18 - 16 AS col0, 12
----
89
12

query I rowsort
SELECT ALL - 33 + - 17
----
-50

query II rowsort
SELECT DISTINCT 77 AS col2, 16 AS col1
----
77
16

query I rowsort
SELECT ALL + 61 * - 80
----
-4880

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

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

query I rowsort
SELECT + 25 * + 84
----
2100

onlyif mysql # DIV for integer division: 
query II rowsort label-1044
SELECT DISTINCT 12 AS col2, + 80 DIV 33 AS col2
----
12
2

skipif mysql # not compatible
query II rowsort label-1044
SELECT DISTINCT 12 AS col2, + 80 / 33 AS col2
----
12
2

query I rowsort
SELECT ( ( - 92 ) )
----
-92

query I rowsort
SELECT - + ( 5 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1047
SELECT ALL - 18 AS col1, - COUNT( 40 )
----
-18
-1

skipif mysql # not compatible
query II rowsort label-1047
SELECT ALL - 18 AS col1, - COUNT ( 40 )
----
-18
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT - COALESCE ( + SUM( + ( 42 ) ), + 48 + + + 38 ) + + 90 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1048
SELECT - COALESCE ( + SUM ( + ( 42 ) ), + 48 + + + 38 ) + + 90 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1049
SELECT 8 + SUM( - CASE - 22 WHEN + CAST( NULL AS SIGNED ) THEN 96 ELSE NULL END ) - - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1049
SELECT 8 + SUM ( - CASE - 22 WHEN + CAST ( NULL AS INTEGER ) THEN 96 ELSE NULL END ) - - 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT DISTINCT + SUM( ALL + - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-1050
SELECT DISTINCT + SUM ( ALL + - 22 )
----
-22

query II rowsort
SELECT DISTINCT - 59, 35 AS col2
----
-59
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT 77 + - + COUNT( * ) * - 53
----
130

skipif mysql # not compatible
query I rowsort label-1053
SELECT 77 + - + COUNT ( * ) * - 53
----
130

query I rowsort
SELECT 25 * - 64
----
-1600

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT 96 DIV + - 99 * + 88 + - ( + - 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1055
SELECT 96 / + - 99 * + 88 + - ( + - 86 ) AS col0
----
86

query I rowsort
SELECT ALL 81 * + 74 AS col0
----
5994

query I rowsort
SELECT ALL 20 * - - 46 * - NULLIF ( - 25, - 66 + + + ( 18 ) )
----
23000

query I rowsort
SELECT DISTINCT + 63 + + - 49 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT DISTINCT - COUNT( * ) + - SUM( - 79 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT - COUNT ( * ) + - SUM ( - 79 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT + 69 * - 9 + - - MAX( + - ( - + ( - + 30 ) ) ) - + 1
----
-652

skipif mysql # not compatible
query I rowsort label-1060
SELECT + 69 * - 9 + - - MAX ( + - ( - + ( - + 30 ) ) ) - + 1
----
-652

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT COUNT( - 69 ) * - 87 + + 61 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-1061
SELECT COUNT ( - 69 ) * - 87 + + 61 AS col2
----
-26

query I rowsort
SELECT 73 * - 19 * - 93 AS col0
----
128991

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT ALL 67 DIV + 68 * + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL 67 / + 68 * + 93 AS col2
----
0

query I rowsort
SELECT DISTINCT 85 + - 16 + - 78
----
-9

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1068
SELECT DISTINCT 61 * + + 0, + 19 DIV + 84
----
0
0

skipif mysql # not compatible
query II rowsort label-1068
SELECT DISTINCT 61 * + + 0, + 19 / + 84
----
0
0

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

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL COUNT ( * ) + ( + COUNT ( * ) ) - + + 23 AS col2
----
-21

query I rowsort
SELECT DISTINCT 78 * - 23 AS col1
----
-1794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT 24 * ( + - CAST( - - ( - 29 ) AS SIGNED ) ) AS col1
----
696

skipif mysql # not compatible
query I rowsort label-1071
SELECT 24 * ( + - CAST ( - - ( - 29 ) AS INTEGER ) ) AS col1
----
696

query I rowsort
SELECT 30 + + 31
----
61

query I rowsort
SELECT 40 + 81 - + 10 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT 43 * - 94 + ( COALESCE ( - 2, + 20 * COUNT( * ) + COUNT( * ), + + 6 ) ) * + 44 AS col0
----
-4130

skipif mysql # not compatible
query I rowsort label-1074
SELECT 43 * - 94 + ( COALESCE ( - 2, + 20 * COUNT ( * ) + COUNT ( * ), + + 6 ) ) * + 44 AS col0
----
-4130

onlyif mysql # aggregate syntax: 
query II rowsort label-1075
SELECT 92 - - 42 + COUNT( ALL - 12 ) AS col1, - 7
----
135
-7

skipif mysql # not compatible
query II rowsort label-1075
SELECT 92 - - 42 + COUNT ( ALL - 12 ) AS col1, - 7
----
135
-7

query I rowsort
SELECT 22 * 80
----
1760

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1077
SELECT DISTINCT + + 67 * + 86 + 46 + + 48 / CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT + + 67 * + 86 + 46 + + 48 / CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + + 16 * + 25 AS col0
----
400

query I rowsort
SELECT ( + 40 ) * - 35
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT - SUM( + 10 ) * - 3
----
30

skipif mysql # not compatible
query I rowsort label-1081
SELECT - SUM ( + 10 ) * - 3
----
30

query I rowsort
SELECT ( 23 ) - 25 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1083
SELECT - MAX( - 61 ) DIV + NULLIF ( + + 90, + + 64 DIV + 26 + - 63 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1083
SELECT - MAX ( - 61 ) / + NULLIF ( + + 90, + + 64 / + 26 + - 63 ) col1
----
0

query I rowsort
SELECT - 35 * + 31 * - 40
----
43400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1085
SELECT DISTINCT - 3 / + - 58 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT - 3 / + - 58 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1086
SELECT DISTINCT + ( + 62 ) * + ( 36 ) + + - COUNT( * ) - + + 34 * 41 DIV - COUNT( * ) AS col2
----
3625

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT + ( + 62 ) * + ( 36 ) + + - COUNT ( * ) - + + 34 * 41 / - COUNT ( * ) AS col2
----
3625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1087
SELECT ALL 12 * 90 + - 23 DIV - 54 * - 82 + + - COALESCE ( - - 59, + 66 + + COUNT( * ) * + + 59 + + 99 - + COUNT( * ) + - 17 * 46 + 57, - + COUNT( * ) ) col2
----
1021

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL 12 * 90 + - 23 / - 54 * - 82 + + - COALESCE ( - - 59, + 66 + + COUNT ( * ) * + + 59 + + 99 - + COUNT ( * ) + - 17 * 46 + 57, - + COUNT ( * ) ) col2
----
1021

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

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

query I rowsort
SELECT ALL - 62 * 49 + - 70 AS col1
----
-3108

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT COUNT( DISTINCT - + 63 ) + + 75 + - COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1090
SELECT COUNT ( DISTINCT - + 63 ) + + 75 + - COUNT ( * ) AS col2
----
75

query I rowsort
SELECT ALL 80 + 70
----
150

query I rowsort
SELECT 80 * + - 18 * - 24
----
34560

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

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

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

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT - 87 + - - ( COUNT ( * ) ) AS col1
----
-86

query I rowsort
SELECT ALL 44 - 0
----
44

query I rowsort
SELECT 8 + + - 76 col2
----
-68

query I rowsort
SELECT + 82 * ( + 24 ) + + 11 AS col2
----
1979

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

skipif mysql # not compatible
query I rowsort label-1098
SELECT ( - 41 ) * + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1099
SELECT - AVG ( + CAST( NULL AS SIGNED ) ) + 17 + - COUNT( ALL - + 20 ) / - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1099
SELECT - AVG ( + CAST ( NULL AS INTEGER ) ) + 17 + - COUNT ( ALL - + 20 ) / - 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1100
SELECT + 72 DIV CASE + + COALESCE ( - - 29, - - 63, + ( + 22 ) * CAST( NULL AS SIGNED ) + + 3 * - 99 ) WHEN - 22 THEN NULL ELSE 63 * 77 END * 68 + + COUNT( * ) + 79 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1100
SELECT + 72 / CASE + + COALESCE ( - - 29, - - 63, + ( + 22 ) * CAST ( NULL AS INTEGER ) + + 3 * - 99 ) WHEN - 22 THEN NULL ELSE 63 * 77 END * 68 + + COUNT ( * ) + 79 AS col0
----
80

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

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

query I rowsort
SELECT ALL - 51 * - 95
----
4845

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT MIN( - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-1103
SELECT MIN ( - 93 )
----
-93

query II rowsort
SELECT ALL - COALESCE ( - - 44, - 13 * - - 38 ) * - 18, - 21 + 42 AS col1
----
792
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1105
SELECT DISTINCT + 65 AS col0, 91 * - - 51 - + MAX( ALL + 65 ) + + 55
----
65
4631

skipif mysql # not compatible
query II rowsort label-1105
SELECT DISTINCT + 65 AS col0, 91 * - - 51 - + MAX ( ALL + 65 ) + + 55
----
65
4631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1106
SELECT ALL COALESCE ( + 38, - - CASE - - 90 WHEN - 24 THEN CASE + + ( - COUNT( * ) ) WHEN - 40 THEN NULL WHEN 65 THEN 22 + - 1 ELSE NULL END * - 97 + + 46 ELSE - 66 END + 13 + - SUM( - - 18 ) * + + COALESCE ( CASE + 70 WHEN + 16 THEN NULL WHEN 19 THEN 63 * 98 END, - 96 ) - CAST( + NULLIF ( - CAST( + 85 AS SIGNED ), - 33 + 52 * - 64 ) AS SIGNED ) DIV 73 ) * 13 AS col2
----
494

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL COALESCE ( + 38, - - CASE - - 90 WHEN - 24 THEN CASE + + ( - COUNT ( * ) ) WHEN - 40 THEN NULL WHEN 65 THEN 22 + - 1 ELSE NULL END * - 97 + + 46 ELSE - 66 END + 13 + - SUM ( - - 18 ) * + + COALESCE ( CASE + 70 WHEN + 16 THEN NULL WHEN 19 THEN 63 * 98 END, - 96 ) - CAST ( + NULLIF ( - CAST ( + 85 AS INTEGER ), - 33 + 52 * - 64 ) AS INTEGER ) / 73 ) * 13 AS col2
----
494

query I rowsort
SELECT + 83 + 23
----
106

query I rowsort
SELECT - + 46 + - 26 + - 5 * - - 46 * + 35 + - 24
----
-8146

query I rowsort
SELECT + 97 * 19
----
1843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1110
SELECT - CASE - - ( - 50 ) WHEN - 12 THEN 64 WHEN + 11 + + + CAST( NULL AS SIGNED ) + + - 94 + - 10 * COUNT( * ) * - 83 THEN NULL END * + - 13 * - 87 * - 92 - - 72 / + 3 + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1110
SELECT - CASE - - ( - 50 ) WHEN - 12 THEN 64 WHEN + 11 + + + CAST ( NULL AS INTEGER ) + + - 94 + - 10 * COUNT ( * ) * - 83 THEN NULL END * + - 13 * - 87 * - 92 - - 72 / + 3 + - 75
----
NULL

query I rowsort
SELECT ALL + - 64 + + + ( 21 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT - + 43 + - + COUNT( ALL 20 ) col0
----
-44

skipif mysql # not compatible
query I rowsort label-1112
SELECT - + 43 + - + COUNT ( ALL 20 ) col0
----
-44

query I rowsort
SELECT - - 69 + - 65 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL - 63 + - 36 * COUNT( * ) + - 66 col2
----
-165

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL - 63 + - 36 * COUNT ( * ) + - 66 col2
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT ALL + 14 + COUNT( * ) * - - 66 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL + 14 + COUNT ( * ) * - - 66 AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1116
SELECT + + 51 DIV + - MIN( DISTINCT + - 26 ) + + 38 + + 19 AS col2, 42
----
58
42

skipif mysql # not compatible
query II rowsort label-1116
SELECT + + 51 / + - MIN ( DISTINCT + - 26 ) + + 38 + + 19 AS col2, 42
----
58
42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1118
SELECT - CAST( - 58 AS SIGNED ) * - - 15
----
870

skipif mysql # not compatible
query I rowsort label-1118
SELECT - CAST ( - 58 AS INTEGER ) * - - 15
----
870

query II rowsort
SELECT + 91 * COALESCE ( 8, - 37 ) AS col0, - 21 AS col1
----
728
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1120
SELECT DISTINCT 10 * + 23 - CAST( NULL AS SIGNED ) * + ( 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT 10 * + 23 - CAST ( NULL AS INTEGER ) * + ( 15 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1121
SELECT ALL ( + 69 ) DIV - 59 + 75 AS col2, 77 * - 45 * - - 20 * - 17 * + - COUNT( * ) AS col1
----
74
-1178100

skipif mysql # not compatible
query II rowsort label-1121
SELECT ALL ( + 69 ) / - 59 + 75 AS col2, 77 * - 45 * - - 20 * - 17 * + - COUNT ( * ) AS col1
----
74
-1178100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1122
SELECT ALL 85 * + ( - - ( - + COUNT( * ) ) ) - COUNT( * ) / - + CAST( NULL AS SIGNED ) + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL 85 * + ( - - ( - + COUNT ( * ) ) ) - COUNT ( * ) / - + CAST ( NULL AS INTEGER ) + + 80
----
NULL

query I rowsort
SELECT ALL - 40 * - 70 - - 68
----
2868

query I rowsort
SELECT - 32 * - 14
----
448

query II rowsort
SELECT ALL + 53 col2, 20 * - COALESCE ( + 72, + 56 ) AS col0
----
53
-1440

query I rowsort
SELECT NULLIF ( NULLIF ( - 35, 53 + - 4 ), - + 57 * + 51 )
----
-35

query I rowsort
SELECT NULLIF ( + 27, - + NULLIF ( - 66, + - 73 ) - 50 )
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1128
SELECT DISTINCT + 66, 85 DIV 20 * COUNT( DISTINCT - 47 ) DIV - 93 * 33 * + NULLIF ( - + MIN( + + 92 ), + CASE + 53 WHEN + 98 THEN - 92 END ) * + ( - 43 ) + SUM( DISTINCT + 18 ) AS col2
----
66
18

skipif mysql # not compatible
query II rowsort label-1128
SELECT DISTINCT + 66, 85 / 20 * COUNT ( DISTINCT - 47 ) / - 93 * 33 * + NULLIF ( - + MIN ( + + 92 ), + CASE + 53 WHEN + 98 THEN - 92 END ) * + ( - 43 ) + SUM ( DISTINCT + 18 ) AS col2
----
66
18

onlyif mysql # aggregate syntax: 
query II rowsort label-1129
SELECT ALL + 79 AS col0, 40 + ( COUNT( * ) ) * + COUNT( * ) AS col1
----
79
41

skipif mysql # not compatible
query II rowsort label-1129
SELECT ALL + 79 AS col0, 40 + ( COUNT ( * ) ) * + COUNT ( * ) AS col1
----
79
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1130
SELECT DISTINCT ( - 18 ) * - - CAST( + + COUNT( * ) AS SIGNED ) + - 99 DIV + 80 AS col2, - 42 DIV - - 69 - 36
----
-19
-36

skipif mysql # not compatible
query II rowsort label-1130
SELECT DISTINCT ( - 18 ) * - - CAST ( + + COUNT ( * ) AS INTEGER ) + - 99 / + 80 AS col2, - 42 / - - 69 - 36
----
-19
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT + 66 + COUNT( * ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-1131
SELECT + 66 + COUNT ( * ) AS col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1132
SELECT DISTINCT + CASE 48 WHEN - 81 THEN + - 60 END * - CASE CAST( NULL AS SIGNED ) WHEN - + 83 THEN NULL WHEN - + 19 - 97 THEN NULL ELSE 67 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT + CASE 48 WHEN - 81 THEN + - 60 END * - CASE CAST ( NULL AS INTEGER ) WHEN - + 83 THEN NULL WHEN - + 19 - 97 THEN NULL ELSE 67 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT DISTINCT + ( + + NULLIF ( 79, MIN( - 10 ) - 95 ) ) * - + 60 * + 90
----
-426600

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT + ( + + NULLIF ( 79, MIN ( - 10 ) - 95 ) ) * - + 60 * + 90
----
-426600

query II rowsort
SELECT ALL 98 AS col1, 85 col0
----
98
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1135
SELECT ALL + + 81 * + MIN( 14 ) + + 57 AS col2, 7
----
1191
7

skipif mysql # not compatible
query II rowsort label-1135
SELECT ALL + + 81 * + MIN ( 14 ) + + 57 AS col2, 7
----
1191
7

query I rowsort
SELECT - 58 + - 26
----
-84

query I rowsort
SELECT + CASE WHEN NOT 12 = + 69 THEN + 97 * - + 4 ELSE NULL END + 84 AS col0
----
-304

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT + - ( + 77 ) DIV 93 * - + 96 + 73 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1139
SELECT + - ( + 77 ) / 93 * - + 96 + 73 AS col0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1140
SELECT + - 58 + SUM( DISTINCT 75 ) + + + 32 col2, 75
----
49
75

skipif mysql # not compatible
query II rowsort label-1140
SELECT + - 58 + SUM ( DISTINCT 75 ) + + + 32 col2, 75
----
49
75

query I rowsort
SELECT - - COALESCE ( - 41, + 42 ) AS col2
----
-41

query I rowsort
SELECT ALL - 78 + 87 + - 81 AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1143
SELECT DISTINCT 73 + CAST( NULL AS SIGNED ) - - ( - ( + ( - 43 ) ) ) * - + NULLIF ( - - 14, 91 ) + 68 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT 73 + CAST ( NULL AS INTEGER ) - - ( - ( + ( - 43 ) ) ) * - + NULLIF ( - - 14, 91 ) + 68 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL + COUNT( * ) * 99 * - 82 AS col1
----
-8118

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL + COUNT ( * ) * 99 * - 82 AS col1
----
-8118

onlyif mysql # DIV for integer division: 
query I rowsort label-1145
SELECT + 17 DIV - ( + 43 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1145
SELECT + 17 / - ( + 43 ) col0
----
0

query I rowsort
SELECT ALL ( - - ( - 39 ) )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT ALL + COUNT( * ) + + + 85
----
86

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL + COUNT ( * ) + + + 85
----
86

query I rowsort
SELECT DISTINCT + 1 * - 40
----
-40

query II rowsort
SELECT - 89 AS col1, - 91
----
-89
-91

query I rowsort
SELECT - + 47 col1
----
-47

query II rowsort
SELECT + 39, - 59 + 82 * + 93 + NULLIF ( - 60, - 63 ) AS col2
----
39
7507

query I rowsort
SELECT - + CASE - 45 WHEN - 62 THEN NULL WHEN 86 * 69 / + 20 THEN + 91 ELSE NULL END * 54 + - 96
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1153
SELECT ALL + 51 + - - COUNT( * ) + + 70 * + + COUNT( * ) - - 50 + MIN( ALL 32 ) DIV + 61 AS col1
----
172

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL + 51 + - - COUNT ( * ) + + 70 * + + COUNT ( * ) - - 50 + MIN ( ALL 32 ) / + 61 AS col1
----
172

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1155
SELECT + CAST( + + ( - 83 ) AS SIGNED ) * - - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) + 98 * 31 * ( + 74 ) * + 48 * - - 72
----
776950272

skipif mysql # not compatible
query I rowsort label-1155
SELECT + CAST ( + + ( - 83 ) AS INTEGER ) * - - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + 98 * 31 * ( + 74 ) * + 48 * - - 72
----
776950272

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT ALL + MAX( - - 20 ) AS col2, 19
----
20
19

skipif mysql # not compatible
query II rowsort label-1156
SELECT ALL + MAX ( - - 20 ) AS col2, 19
----
20
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1157
SELECT ALL - 96 DIV 83 - - - 90
----
-91

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL - 96 / 83 - - - 90
----
-91

query I rowsort
SELECT - 32 * - 83 * + + ( - NULLIF ( - - 87, + 77 ) ) * + 58
----
-13402176

query I rowsort
SELECT DISTINCT - 97 * - 57 AS col0
----
5529

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1160
SELECT + 37 / COUNT( * ) * 77 + - CASE - + CASE 7 WHEN + + 70 THEN 9 / - + 15 + 94 END WHEN + 46 * 96 THEN - NULLIF ( + 20, + + ( 23 ) ) - - 80 + + 26 + CAST( NULL AS DECIMAL ) WHEN + 94 THEN NULL END * 37 / - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT + 37 / COUNT ( * ) * 77 + - CASE - + CASE 7 WHEN + + 70 THEN 9 / - + 15 + 94 END WHEN + 46 * 96 THEN - NULLIF ( + 20, + + ( 23 ) ) - - 80 + + 26 + CAST ( NULL AS REAL ) WHEN + 94 THEN NULL END * 37 / - 62
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1161
SELECT - 49 * - 45 * - + 62 - - - CAST( + COALESCE ( - COUNT( * ), + - COUNT( * ) * + - 79 / + 44 ) AS SIGNED ) + - COALESCE ( 65, + 35 ) + + 48 * - 82 + - 77 * - + 74 col0
----
-135012

skipif mysql # not compatible
query I rowsort label-1161
SELECT - 49 * - 45 * - + 62 - - - CAST ( + COALESCE ( - COUNT ( * ), + - COUNT ( * ) * + - 79 / + 44 ) AS INTEGER ) + - COALESCE ( 65, + 35 ) + + 48 * - 82 + - 77 * - + 74 col0
----
-135012

query I rowsort
SELECT - 79 + - 88 AS col2
----
-167

query I rowsort
SELECT ALL - ( + - 29 ) * + - 38
----
-1102

onlyif mysql # DIV for integer division: 
query II rowsort label-1164
SELECT 5 DIV - + 35 col1, + 82 DIV + - 75 + - + 65 col2
----
0
-66

skipif mysql # not compatible
query II rowsort label-1164
SELECT 5 / - + 35 col1, + 82 / + - 75 + - + 65 col2
----
0
-66

query I rowsort
SELECT 33 + + 89 - 19 AS col0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT 39 * - MIN( - + 69 )
----
2691

skipif mysql # not compatible
query I rowsort label-1166
SELECT 39 * - MIN ( - + 69 )
----
2691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1167
SELECT DISTINCT + MIN( - 73 ) + + - CAST( - MAX( ALL - - 89 ) AS SIGNED ) + - COUNT( * ) + - 8 * 53
----
-409

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT + MIN ( - 73 ) + + - CAST ( - MAX ( ALL - - 89 ) AS INTEGER ) + - COUNT ( * ) + - 8 * 53
----
-409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1168
SELECT 8 * + CAST( NULL AS SIGNED ) * + 76 * + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1168
SELECT 8 * + CAST ( NULL AS INTEGER ) * + 76 * + + 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1169
SELECT + 21 * + - 0 * + 79 DIV - 23
----
0

skipif mysql # not compatible
query I rowsort label-1169
SELECT + 21 * + - 0 * + 79 / - 23
----
0

query I rowsort
SELECT ALL - COALESCE ( - 21, + 95 + + 4 * + - 49 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT DISTINCT + - 47 * + 64 * - COUNT( ALL + - 45 ) AS col0
----
3008

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT + - 47 * + 64 * - COUNT ( ALL + - 45 ) AS col0
----
3008

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1173
SELECT ALL NULLIF ( - - 18, - COUNT( + 87 ) + + CASE + 62 WHEN + - SUM( + 64 ) THEN NULL WHEN - - 71 THEN NULLIF ( 55, 49 DIV - + 69 + - 49 ) + - - 38 END ) + - 63 DIV CAST( + 3 AS SIGNED ) - + 48 col2
----
-51

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL NULLIF ( - - 18, - COUNT ( + 87 ) + + CASE + 62 WHEN + - SUM ( + 64 ) THEN NULL WHEN - - 71 THEN NULLIF ( 55, 49 / - + 69 + - 49 ) + - - 38 END ) + - 63 / CAST ( + 3 AS INTEGER ) - + 48 col2
----
-51

query I rowsort
SELECT - 88 + + 36
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT DISTINCT - + CASE COUNT( * ) WHEN + 12 THEN + 13 * 11 ELSE + + 25 END + - NULLIF ( + + 55, + NULLIF ( - COUNT( 39 ), + - 88 * 63 * - 77 * - 17 * - - MAX( - 68 ) ) ) + + 55 * 61
----
3275

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT - + CASE COUNT ( * ) WHEN + 12 THEN + 13 * 11 ELSE + + 25 END + - NULLIF ( + + 55, + NULLIF ( - COUNT ( 39 ), + - 88 * 63 * - 77 * - 17 * - - MAX ( - 68 ) ) ) + + 55 * 61
----
3275

query II rowsort
SELECT DISTINCT - 74 + - ( + 28 ) AS col1, 39 - + 58 * - 40
----
-102
2359

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

skipif mysql # not compatible
query I rowsort label-1177
SELECT + COUNT ( * ) + + 46 AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1178
SELECT ALL - - NULLIF ( + 95, 84 + - 97 + + 60 * + 72 ) + + 43 + - - COUNT( - 74 ) + + + COUNT( * ) col2, + 7 AS col0
----
140
7

skipif mysql # not compatible
query II rowsort label-1178
SELECT ALL - - NULLIF ( + 95, 84 + - 97 + + 60 * + 72 ) + + 43 + - - COUNT ( - 74 ) + + + COUNT ( * ) col2, + 7 AS col0
----
140
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT ALL - + COUNT( * ) + + - COUNT( * ) + + 82 + + 1 - 14 + + 91
----
158

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL - + COUNT ( * ) + + - COUNT ( * ) + + 82 + + 1 - 14 + + 91
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1180
SELECT SUM( ALL + 96 ) + - CAST( NULL AS SIGNED ) + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT SUM ( ALL + 96 ) + - CAST ( NULL AS INTEGER ) + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1181
SELECT NULLIF ( - 19, 13 + 84 ) - - 90 AS col1, - MAX( DISTINCT + 55 ) * + - 53
----
71
2915

skipif mysql # not compatible
query II rowsort label-1181
SELECT NULLIF ( - 19, 13 + 84 ) - - 90 AS col1, - MAX ( DISTINCT + 55 ) * + - 53
----
71
2915

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT DISTINCT + 55 + - 11 DIV 2 + - 79
----
-29

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT + 55 + - 11 / 2 + - 79
----
-29

query I rowsort
SELECT ALL - 80 - + 75 + - ( 4 ) AS col2
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT 79 + NULLIF ( + + COUNT( * ), + 77 / + 32 + + - ( + - 72 ) ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1184
SELECT 79 + NULLIF ( + + COUNT ( * ), + 77 / + 32 + + - ( + - 72 ) ) AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1185
SELECT CAST( + - COALESCE ( + COUNT( - NULLIF ( 6, + 22 / + + 28 ) ), - + 78 + 29 + - - 25 ) AS SIGNED ) * + 97
----
-97

skipif mysql # not compatible
query I rowsort label-1185
SELECT CAST ( + - COALESCE ( + COUNT ( - NULLIF ( 6, + 22 / + + 28 ) ), - + 78 + 29 + - - 25 ) AS INTEGER ) * + 97
----
-97

query II rowsort
SELECT 38 * - + 66, - COALESCE ( - - 19, - 67 ) col1
----
-2508
-19

query I rowsort
SELECT 25 + - 82 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ( - - 9 ) + + + ( - - 79 ) + 77 * - + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1188
SELECT ( - - 9 ) + + + ( - - 79 ) + 77 * - + COUNT ( * ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT ALL ( - 58 ) - - 9 + - - COUNT( - 30 )
----
-48

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL ( - 58 ) - - 9 + - - COUNT ( - 30 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1190
SELECT COUNT( * ) + CAST( 10 AS SIGNED ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1190
SELECT COUNT ( * ) + CAST ( 10 AS INTEGER ) AS col0
----
11

query I rowsort
SELECT ALL 21 * - 36 AS col2
----
-756

query I rowsort
SELECT ALL 14 * - 42
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT - ( - CASE + - COUNT( 97 ) WHEN 3 THEN NULL WHEN - 56 THEN 76 + - - ( - COUNT( * ) ) - - - 45 * + + 4 END ) * - 48 + COUNT( * ) + - - 8 + + + 71 * - 56 * + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1193
SELECT - ( - CASE + - COUNT ( 97 ) WHEN 3 THEN NULL WHEN - 56 THEN 76 + - - ( - COUNT ( * ) ) - - - 45 * + + 4 END ) * - 48 + COUNT ( * ) + - - 8 + + + 71 * - 56 * + 12 AS col1
----
NULL

query II rowsort
SELECT ALL - 69 AS col2, + 20
----
-69
20

query II rowsort
SELECT ALL - 72, - 60 AS col1
----
-72
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1196
SELECT 11 * - + ( 38 ) + + 43 * + CAST( NULL AS SIGNED ) * - 35 + + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT 11 * - + ( 38 ) + + 43 * + CAST ( NULL AS INTEGER ) * - 35 + + + 6
----
NULL

query I rowsort
SELECT 50 * - 23 AS col1
----
-1150

onlyif mysql # aggregate syntax: 
query II rowsort label-1198
SELECT DISTINCT - 85 AS col1, COUNT( DISTINCT + - 29 ) * - 85 AS col0
----
-85
-85

skipif mysql # not compatible
query II rowsort label-1198
SELECT DISTINCT - 85 AS col1, COUNT ( DISTINCT + - 29 ) * - 85 AS col0
----
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT ALL - MIN( - 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL - MIN ( - 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT 33 * + NULLIF ( + 83, 98 * - - COUNT( * ) )
----
2739

skipif mysql # not compatible
query I rowsort label-1200
SELECT 33 * + NULLIF ( + 83, 98 * - - COUNT ( * ) )
----
2739

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT ALL - 39 * + - SUM( - 3 ) AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL - 39 * + - SUM ( - 3 ) AS col1
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1202
SELECT 40 DIV 27 DIV + MAX( DISTINCT - 97 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1202
SELECT 40 / 27 / + MAX ( DISTINCT - 97 ) AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT DISTINCT - 21 * - COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT - 21 * - COUNT ( * ) AS col0
----
21

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

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

query I rowsort
SELECT ALL - 39 * + 94 AS col0
----
-3666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1207
SELECT ALL + ( - 57 ) + - 97 - - - COALESCE ( 11, + 96 * - ( - + CAST( NULL AS SIGNED ) ) + - - 99, - - COUNT( * ) ) + - 85 - - 30 + + + COUNT( * ) * - + 12 DIV - SUM( ALL - - 36 ) + - 10 * - SUM( - + ( - 45 ) ) AS col0
----
230

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL + ( - 57 ) + - 97 - - - COALESCE ( 11, + 96 * - ( - + CAST ( NULL AS INTEGER ) ) + - - 99, - - COUNT ( * ) ) + - 85 - - 30 + + + COUNT ( * ) * - + 12 / - SUM ( ALL - - 36 ) + - 10 * - SUM ( - + ( - 45 ) ) AS col0
----
230

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1208
SELECT DISTINCT - CAST( - + 8 AS SIGNED ) * + - 69 AS col1, + ( - + CAST( + + 48 AS SIGNED ) )
----
-552
-48

skipif mysql # not compatible
query II rowsort label-1208
SELECT DISTINCT - CAST ( - + 8 AS INTEGER ) * + - 69 AS col1, + ( - + CAST ( + + 48 AS INTEGER ) )
----
-552
-48

query I rowsort
SELECT DISTINCT + - 45 + 98 AS col1
----
53

query I rowsort
SELECT - ( + - 13 ) * - 73 + + 63
----
-886

query I rowsort
SELECT ALL + 78 + - - 2 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT ALL + + COUNT( ALL + 38 ) * 48 * 18 AS col0
----
864

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL + + COUNT ( ALL + 38 ) * 48 * 18 AS col0
----
864

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT ALL + 87 DIV - 77 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL + 87 / - 77 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1214
SELECT - 28 col2, - 44 + - MAX( ALL - 43 ) + CAST( 95 AS SIGNED ) * + + COUNT( * ) * 45 AS col0
----
-28
4274

skipif mysql # not compatible
query II rowsort label-1214
SELECT - 28 col2, - 44 + - MAX ( ALL - 43 ) + CAST ( 95 AS INTEGER ) * + + COUNT ( * ) * 45 AS col0
----
-28
4274

query II rowsort
SELECT - 1, + 89 AS col0
----
-1
89

query I rowsort
SELECT + 56 + - 17
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT + SUM( ALL + 65 ) col1
----
65

skipif mysql # not compatible
query I rowsort label-1217
SELECT + SUM ( ALL + 65 ) col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT + 73 * - 57 + + ( - COUNT( * ) ) + - MAX( - - 71 ) + + - COUNT( DISTINCT - 50 )
----
-4234

skipif mysql # not compatible
query I rowsort label-1218
SELECT + 73 * - 57 + + ( - COUNT ( * ) ) + - MAX ( - - 71 ) + + - COUNT ( DISTINCT - 50 )
----
-4234

query I rowsort
SELECT + 40 * - 59
----
-2360

query I rowsort
SELECT ALL - 35 * - - 25
----
-875

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT DISTINCT - MIN( 70 ) * + - 68 AS col0
----
4760

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT - MIN ( 70 ) * + - 68 AS col0
----
4760

query II rowsort
SELECT 18 * - 8 AS col0, - 92 AS col0
----
-144
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1223
SELECT DISTINCT CASE - + 38 WHEN + COUNT( * ) THEN 52 * + - 93 * + 54 WHEN + ( + 4 ) - + 79 + - + 4 * - ( - - 5 ) + + 49 THEN - - CAST( MIN( + 45 ) AS SIGNED ) * + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT CASE - + 38 WHEN + COUNT ( * ) THEN 52 * + - 93 * + 54 WHEN + ( + 4 ) - + 79 + - + 4 * - ( - - 5 ) + + 49 THEN - - CAST ( MIN ( + 45 ) AS INTEGER ) * + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT - MAX( ALL + 83 ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-1224
SELECT - MAX ( ALL + 83 ) col1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1225
SELECT ALL MIN( ALL 91 ) DIV + 42 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL MIN ( ALL 91 ) / + 42 AS col2
----
2

query II rowsort
SELECT - 55 * - 93, 19 AS col1
----
5115
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1227
SELECT ALL MIN( + 46 ) DIV - 92 * 73
----
0

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL MIN ( + 46 ) / - 92 * 73
----
0

query I rowsort
SELECT + 73 - - + 67
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1229
SELECT + 32 * - CAST( + 42 AS SIGNED ) AS col2
----
-1344

skipif mysql # not compatible
query I rowsort label-1229
SELECT + 32 * - CAST ( + 42 AS INTEGER ) AS col2
----
-1344

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

query I rowsort
SELECT + 49 - ( 84 )
----
-35

query I rowsort
SELECT ALL COALESCE ( - 13, 62 + + 90, 25 + + - 82 + + 31 * + 48 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT + MIN( - + 69 ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-1233
SELECT + MIN ( - + 69 ) col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1234
SELECT DISTINCT - 38 * COUNT( * ) DIV + COUNT( DISTINCT 31 ) + + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT - 38 * COUNT ( * ) / + COUNT ( DISTINCT 31 ) + + COUNT ( * )
----
-37

query I rowsort
SELECT DISTINCT + 71 * + 43 + + + 93
----
3146

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1236
SELECT - CAST( - 31 AS SIGNED ) DIV 3 + 49 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-1236
SELECT - CAST ( - 31 AS INTEGER ) / 3 + 49 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT + COUNT( * ) * 54 - - 90 AS col0
----
144

skipif mysql # not compatible
query I rowsort label-1237
SELECT + COUNT ( * ) * 54 - - 90 AS col0
----
144

query I rowsort
SELECT + 66 + + 11 col2
----
77

query I rowsort
SELECT + 71 * - 12 * 81 AS col0
----
-69012

query I rowsort
SELECT CASE - 50 WHEN + + 19 THEN - + 96 ELSE ( - + 61 ) * 33 + - 25 END AS col2
----
-2038

query I rowsort
SELECT - 2 * + 37 * + 34 + + + 39 AS col2
----
-2477

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT - COUNT( * ) * 25 * + 15 + - 78
----
-453

skipif mysql # not compatible
query I rowsort label-1242
SELECT - COUNT ( * ) * 25 * + 15 + - 78
----
-453

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1243
SELECT NULLIF ( + 9, - - AVG ( - 4 ) ) * - - COALESCE ( COUNT( * ), + COALESCE ( 92, + COALESCE ( + + COUNT( * ), + + 27 * - - 77 ) ) ) + - 56 + - 31 DIV 32 col0
----
-47

skipif mysql # not compatible
query I rowsort label-1243
SELECT NULLIF ( + 9, - - AVG ( - 4 ) ) * - - COALESCE ( COUNT ( * ), + COALESCE ( 92, + COALESCE ( + + COUNT ( * ), + + 27 * - - 77 ) ) ) + - 56 + - 31 / 32 col0
----
-47

query I rowsort
SELECT ALL + NULLIF ( + 60, - 44 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-1245
SELECT DISTINCT - - 80 * + COUNT( * ) AS col0, COUNT( * ) AS col2
----
80
1

skipif mysql # not compatible
query II rowsort label-1245
SELECT DISTINCT - - 80 * + COUNT ( * ) AS col0, COUNT ( * ) AS col2
----
80
1

query I rowsort
SELECT - - ( + 40 ) + - 49
----
-9

query I rowsort
SELECT ALL 63 * 20 - - COALESCE ( + 64, - - 58 )
----
1324

query I rowsort
SELECT - - 36 * 25 AS col1
----
900

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

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

query I rowsort
SELECT - COALESCE ( - 26, - 18 ) + ( - 32 )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1251
SELECT DISTINCT + 97 * - - CASE + 10 WHEN 40 * + + 78 + - - 72 THEN 4 WHEN + COUNT( * ) THEN - 30 WHEN - + 72 THEN - + 89 + - - 71 END AS col2, + 96
----
NULL
96

skipif mysql # not compatible
query II rowsort label-1251
SELECT DISTINCT + 97 * - - CASE + 10 WHEN 40 * + + 78 + - - 72 THEN 4 WHEN + COUNT ( * ) THEN - 30 WHEN - + 72 THEN - + 89 + - - 71 END AS col2, + 96
----
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1252
SELECT - 33 * - - 98 / - ( + CAST( ( CAST( NULL AS SIGNED ) ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1252
SELECT - 33 * - - 98 / - ( + CAST ( ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1254
SELECT - - CASE + - COUNT( * ) WHEN + - 54 THEN 62 * - COUNT( * ) END + + COUNT( * ) / - - 21 * - COALESCE ( 63, 85 * - + ( - ( - + MIN( + 54 ) ) ) + + ( CASE COALESCE ( CAST( NULL AS SIGNED ), 25 ) WHEN + 81 THEN 42 WHEN - + 15 THEN + + 5 * - + MAX( 93 ) END ), ( 20 ) * 37 ) * - 25 + - COUNT( * ) * - NULLIF ( 66, 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT - - CASE + - COUNT ( * ) WHEN + - 54 THEN 62 * - COUNT ( * ) END + + COUNT ( * ) / - - 21 * - COALESCE ( 63, 85 * - + ( - ( - + MIN ( + 54 ) ) ) + + ( CASE COALESCE ( CAST ( NULL AS INTEGER ), 25 ) WHEN + 81 THEN 42 WHEN - + 15 THEN + + 5 * - + MAX ( 93 ) END ), ( 20 ) * 37 ) * - 25 + - COUNT ( * ) * - NULLIF ( 66, 27 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT ALL + 20 * - COUNT( * ) + 1 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL + 20 * - COUNT ( * ) + 1 AS col2
----
-19

query I rowsort
SELECT - + 9 * + 45
----
-405

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

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT + 81 / COUNT ( * ) * COUNT ( * ) AS col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1258
SELECT - 92 DIV + + 93
----
0

skipif mysql # not compatible
query I rowsort label-1258
SELECT - 92 / + + 93
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1261
SELECT - MIN( - - 58 ) + - + 98, + 92 * - - 2 AS col2
----
-156
184

skipif mysql # not compatible
query II rowsort label-1261
SELECT - MIN ( - - 58 ) + - + 98, + 92 * - - 2 AS col2
----
-156
184

query I rowsort
SELECT - 85 + + + 49 + + 83 AS col0
----
47

query I rowsort
SELECT DISTINCT - 65 * - + 99 AS col2
----
6435

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT - 73 + - ( 76 ) + - COUNT( * ) + 16 - - 85 - - 84 * 92 * - 63 + - 98
----
-487011

skipif mysql # not compatible
query I rowsort label-1264
SELECT - 73 + - ( 76 ) + - COUNT ( * ) + 16 - - 85 - - 84 * 92 * - 63 + - 98
----
-487011

query I rowsort
SELECT ALL CASE 98 WHEN - + 93 THEN NULL ELSE + 49 END
----
49

query I rowsort
SELECT - 49 + + + 5
----
-44

query I rowsort
SELECT DISTINCT + ( + 87 ) * - - 77
----
6699

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1268
SELECT ALL 20 + - + 14 * + 57 + - ( - 82 ) DIV - COALESCE ( - CAST( 14 AS SIGNED ), + + COUNT( * ) ) AS col2
----
-773

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL 20 + - + 14 * + 57 + - ( - 82 ) / - COALESCE ( - CAST ( 14 AS INTEGER ), + + COUNT ( * ) ) AS col2
----
-773

query I rowsort
SELECT ALL - 11 + 31 * - 39 * - + 32 AS col0
----
38677

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1270
SELECT - 2 + COUNT( * ) + + - 88 DIV + 39 + - + 2 + + - COUNT( * ) * - 4 DIV 30 AS col1, + SUM( DISTINCT - 75 ) AS col0
----
-5
-75

skipif mysql # not compatible
query II rowsort label-1270
SELECT - 2 + COUNT ( * ) + + - 88 / + 39 + - + 2 + + - COUNT ( * ) * - 4 / 30 AS col1, + SUM ( DISTINCT - 75 ) AS col0
----
-5
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1271
SELECT ALL + 48 + - 33 + - COALESCE ( + 90, + + COUNT( - CAST( + COALESCE ( + 51, + + 3, - 92 ) AS SIGNED ) ), + - 89 ) DIV - 54 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL + 48 + - 33 + - COALESCE ( + 90, + + COUNT ( - CAST ( + COALESCE ( + 51, + + 3, - 92 ) AS INTEGER ) ), + - 89 ) / - 54 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT + 96 + - 99 + - + 91 + + + 79 + + + COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-1272
SELECT + 96 + - 99 + - + 91 + + + 79 + + + COUNT ( * ) AS col1
----
-14

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT - 66 DIV - 28
----
2

skipif mysql # not compatible
query I rowsort label-1274
SELECT - 66 / - 28
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1275
SELECT - SUM( DISTINCT COALESCE ( - - 70, - 94 ) ) * COUNT( * ) - + MAX( ALL 94 ) + + - 2 DIV - 90 + + 3 DIV 29 + - 33
----
-197

skipif mysql # not compatible
query I rowsort label-1275
SELECT - SUM ( DISTINCT COALESCE ( - - 70, - 94 ) ) * COUNT ( * ) - + MAX ( ALL 94 ) + + - 2 / - 90 + + 3 / 29 + - 33
----
-197

onlyif mysql # DIV for integer division: 
query I rowsort label-1276
SELECT DISTINCT 95 DIV + 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT 95 / + 65 AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-1277
SELECT + + 31 / 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL + COUNT( * ) * - + ( - - 52 ) col0
----
-52

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL + COUNT ( * ) * - + ( - - 52 ) col0
----
-52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ALL + MAX( ALL - 5 ) * 89 AS col2
----
-445

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL + MAX ( ALL - 5 ) * 89 AS col2
----
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT + 95 * - + SUM( ALL ( + 42 ) )
----
-3990

skipif mysql # not compatible
query I rowsort label-1281
SELECT + 95 * - + SUM ( ALL ( + 42 ) )
----
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT ALL COUNT( 24 ) * + + 38
----
38

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL COUNT ( 24 ) * + + 38
----
38

query I rowsort
SELECT DISTINCT + ( - 83 ) col0
----
-83

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

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

query II rowsort
SELECT + + 29 * 8 * - - 25, 49 - - 44 AS col1
----
5800
93

query I rowsort
SELECT DISTINCT + - 60 * + 88
----
-5280

query I rowsort
SELECT + 97 * - + 17
----
-1649

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT + 41 + 15 * 20 * + MAX( ALL + 16 )
----
4841

skipif mysql # not compatible
query I rowsort label-1288
SELECT + 41 + 15 * 20 * + MAX ( ALL + 16 )
----
4841

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT NULLIF ( - - MAX( ALL - 53 ), + + 33 ) + - 90
----
-143

skipif mysql # not compatible
query I rowsort label-1289
SELECT NULLIF ( - - MAX ( ALL - 53 ), + + 33 ) + - 90
----
-143

query I rowsort
SELECT ( 99 ) * - 17 AS col2
----
-1683

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1291
SELECT ALL ( + 60 ) + 90 DIV - 60 AS col2, + COUNT( * ) AS col0
----
59
1

skipif mysql # not compatible
query II rowsort label-1291
SELECT ALL ( + 60 ) + 90 / - 60 AS col2, + COUNT ( * ) AS col0
----
59
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1292
SELECT ALL COALESCE ( - 26, - ( - 5 ) DIV MAX( ALL 53 ) + - + 68 + 89 * 69 DIV + ( + + 25 ), 52 * 33 ) * + 57 * + 45
----
-66690

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL COALESCE ( - 26, - ( - 5 ) / MAX ( ALL 53 ) + - + 68 + 89 * 69 / + ( + + 25 ), 52 * 33 ) * + 57 * + 45
----
-66690

query II rowsort
SELECT ALL 49 AS col2, - 81 + + 65
----
49
-16

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

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT - 97 + COUNT ( * ) AS col0
----
-96

query I rowsort
SELECT ALL - 80 + 73 + 15 AS col0
----
8

query I rowsort
SELECT 49 * 66 * - 46
----
-148764

onlyif mysql # DIV for integer division: 
query I rowsort label-1297
SELECT DISTINCT - 7 DIV - + 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT - 7 / - + 13 AS col1
----
0

query I rowsort
SELECT ( + 15 ) + - 92
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1299
SELECT ALL 14 col1, 35 * + COUNT( * )
----
14
35

skipif mysql # not compatible
query II rowsort label-1299
SELECT ALL 14 col1, 35 * + COUNT ( * )
----
14
35

query II rowsort
SELECT - 16 AS col1, - ( + + 12 ) * - - ( - 86 )
----
-16
1032

query I rowsort
SELECT ALL - 80 + - 11
----
-91

query II rowsort
SELECT - 24 AS col1, 26 + - 87 AS col2
----
-24
-61

query I rowsort
SELECT 58 - + 51
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1304
SELECT DISTINCT - COUNT( * ) AS col2, 59 AS col0
----
-1
59

skipif mysql # not compatible
query II rowsort label-1304
SELECT DISTINCT - COUNT ( * ) AS col2, 59 AS col0
----
-1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT MIN( DISTINCT - 17 ) * 98 + + 74
----
-1592

skipif mysql # not compatible
query I rowsort label-1305
SELECT MIN ( DISTINCT - 17 ) * 98 + + 74
----
-1592

query II rowsort
SELECT DISTINCT - + 91 AS col0, - 84 col0
----
-91
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1307
SELECT DISTINCT + 47 - + - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT + 47 - + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1308
SELECT ALL - MAX( DISTINCT CAST( + 74 AS SIGNED ) )
----
-74

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL - MAX ( DISTINCT CAST ( + 74 AS INTEGER ) )
----
-74

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

skipif mysql # not compatible
query I rowsort label-1309
SELECT + + 91 * COUNT ( * ) - + - 84 / 91 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT ALL - CASE + 66 WHEN + 72 THEN NULL WHEN + ( COUNT( * ) ) THEN + 78 + - + 85 ELSE - + CASE ( + COUNT( * ) ) WHEN - ( + 73 ) * COUNT( * ) THEN - - ( - 35 ) ELSE NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL - CASE + 66 WHEN + 72 THEN NULL WHEN + ( COUNT ( * ) ) THEN + 78 + - + 85 ELSE - + CASE ( + COUNT ( * ) ) WHEN - ( + 73 ) * COUNT ( * ) THEN - - ( - 35 ) ELSE NULL END END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1311
SELECT ALL - 64 DIV - - SUM( - + 83 ) DIV 9 * + MIN( - 31 ) * - - 21
----
0

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL - 64 / - - SUM ( - + 83 ) / 9 * + MIN ( - 31 ) * - - 21
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1312
SELECT ALL 85 * 30 DIV - + 36 + 98 - 7 * + ( + + 33 ) * + 17 * + COUNT( + 77 ) AS col0
----
-3899

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL 85 * 30 / - + 36 + 98 - 7 * + ( + + 33 ) * + 17 * + COUNT ( + 77 ) AS col0
----
-3899

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1313
SELECT + + MAX( + 30 ) AS col2, - 25 DIV MIN( + 62 ) AS col1
----
30
0

skipif mysql # not compatible
query II rowsort label-1313
SELECT + + MAX ( + 30 ) AS col2, - 25 / MIN ( + 62 ) AS col1
----
30
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1314
SELECT 49, + COUNT( * ) + - 59 AS col2
----
49
-58

skipif mysql # not compatible
query II rowsort label-1314
SELECT 49, + COUNT ( * ) + - 59 AS col2
----
49
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT ALL - COALESCE ( + - 63, - + MIN( DISTINCT + 78 ) ) * + 46
----
2898

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL - COALESCE ( + - 63, - + MIN ( DISTINCT + 78 ) ) * + 46
----
2898

query I rowsort
SELECT + 83 * + 16 + + 34 col1
----
1362

query I rowsort
SELECT - 39 * 96
----
-3744

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1319
SELECT ALL - + 92 AS col2, 14 DIV + 66 AS col0
----
-92
0

skipif mysql # not compatible
query II rowsort label-1319
SELECT ALL - + 92 AS col2, 14 / + 66 AS col0
----
-92
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1321
SELECT CAST( NULL AS SIGNED ) * 61 / 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT CAST ( NULL AS INTEGER ) * 61 / 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1322
SELECT ALL ( + + COUNT( * ) ) + + ( - 12 ) DIV + + 76, 33 * 14 * + 58 AS col0
----
1
26796

skipif mysql # not compatible
query II rowsort label-1322
SELECT ALL ( + + COUNT ( * ) ) + + ( - 12 ) / + + 76, 33 * 14 * + 58 AS col0
----
1
26796

query I rowsort
SELECT DISTINCT 38 + - 62
----
-24

query II rowsort
SELECT ALL + 48 + + - 31, 75 col2
----
17
75

query I rowsort
SELECT 17 * + - 66 * - 93 * 16 AS col0
----
1669536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1326
SELECT ALL 84 DIV - 67 DIV - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL 84 / - 67 / - COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1327
SELECT 23 + CAST( + 60 AS SIGNED ) DIV + + 83
----
23

skipif mysql # not compatible
query I rowsort label-1327
SELECT 23 + CAST ( + 60 AS INTEGER ) / + + 83
----
23

query I rowsort
SELECT ALL 78 - + - 75 AS col2
----
153

query II rowsort
SELECT ALL 37 * + 21, + 99 AS col1
----
777
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT 49 + MIN( ALL 87 ) col2
----
136

skipif mysql # not compatible
query I rowsort label-1330
SELECT 49 + MIN ( ALL 87 ) col2
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-1331
SELECT - MIN( - 43 ), 66 AS col2
----
43
66

skipif mysql # not compatible
query II rowsort label-1331
SELECT - MIN ( - 43 ), 66 AS col2
----
43
66

query II rowsort
SELECT DISTINCT 83 * 33 col1, 63 + - 95
----
2739
-32

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

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL ( + - COUNT ( * ) ) - - 91 AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1334
SELECT 74 DIV 1 * + 60 AS col2, - CASE 14 WHEN CAST( + + 85 AS SIGNED ) THEN + 53 END DIV 57 col1
----
4440
NULL

skipif mysql # not compatible
query II rowsort label-1334
SELECT 74 / 1 * + 60 AS col2, - CASE 14 WHEN CAST ( + + 85 AS INTEGER ) THEN + 53 END / 57 col1
----
4440
NULL

query I rowsort
SELECT 12 + 18 AS col0
----
30

query I rowsort
SELECT - 54 * + - 46 AS col0
----
2484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1337
SELECT + MIN( + CAST( - 95 AS SIGNED ) ) + - 26 + - + 93 AS col0
----
-214

skipif mysql # not compatible
query I rowsort label-1337
SELECT + MIN ( + CAST ( - 95 AS INTEGER ) ) + - 26 + - + 93 AS col0
----
-214

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1338
SELECT 45 DIV COUNT( * ), + 22 AS col2
----
45
22

skipif mysql # not compatible
query II rowsort label-1338
SELECT 45 / COUNT ( * ), + 22 AS col2
----
45
22

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

skipif mysql # not compatible
query I rowsort label-1339
SELECT + + ( - + MIN ( - 83 ) )
----
83

query I rowsort
SELECT - 16 * - 19 AS col0
----
304

query I rowsort
SELECT 35 * + - 38
----
-1330

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT DISTINCT + - 94 * 29 + 65 * COUNT( * ) col1
----
-2661

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT + - 94 * 29 + 65 * COUNT ( * ) col1
----
-2661

query I rowsort
SELECT ALL - COALESCE ( + 82, + - ( + 50 ) - 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL - COUNT( * ) * + - 70 + + 88 * - 16 * 31
----
-43578

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL - COUNT ( * ) * + - 70 + + 88 * - 16 * 31
----
-43578

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT DISTINCT + + 75 * + 40 * + COUNT( * ) + + ( - - COUNT( ALL + + 47 ) )
----
3001

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT + + 75 * + 40 * + COUNT ( * ) + + ( - - COUNT ( ALL + + 47 ) )
----
3001

query I rowsort
SELECT DISTINCT - 74 * ( 57 ) AS col2
----
-4218

query II rowsort
SELECT + + COALESCE ( + - COALESCE ( 26, 26 ), - 81 ) AS col0, 82 AS col1
----
-26
82

query I rowsort
SELECT ALL - + 52 * + 66 AS col1
----
-3432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1349
SELECT - CAST( NULL AS SIGNED ) * + 93 * + COUNT( * ) col2, 23 + - CASE 19 WHEN + 54 THEN NULL ELSE + 75 END - 23
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-1349
SELECT - CAST ( NULL AS INTEGER ) * + 93 * + COUNT ( * ) col2, 23 + - CASE 19 WHEN + 54 THEN NULL ELSE + 75 END - 23
----
NULL
-75

query I rowsort
SELECT + 81 * - + 90 - - - 70 + + + 17 AS col1
----
-7343

onlyif mysql # DIV for integer division: 
query I rowsort label-1351
SELECT DISTINCT - 58 DIV - 44
----
1

skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT - 58 / - 44
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT - 56 * + 12 + 14 + + 22 * - - SUM( + 91 ) - + - 56
----
1400

skipif mysql # not compatible
query I rowsort label-1352
SELECT - 56 * + 12 + 14 + + 22 * - - SUM ( + 91 ) - + - 56
----
1400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1353
SELECT ALL - 25 DIV - ( + COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL - 25 / - ( + COUNT ( * ) )
----
25

query II rowsort
SELECT + 89, + 15 AS col1
----
89
15

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

skipif mysql # not compatible
query I rowsort label-1355
SELECT + MIN ( 39 )
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT + 79 * + NULLIF ( COUNT( * ), - + 76 * COUNT( * ) * - 71 )
----
79

skipif mysql # not compatible
query I rowsort label-1357
SELECT + 79 * + NULLIF ( COUNT ( * ), - + 76 * COUNT ( * ) * - 71 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1358
SELECT ALL - CAST( - - 87 AS SIGNED ) * - - MIN( 18 )
----
-1566

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL - CAST ( - - 87 AS INTEGER ) * - - MIN ( 18 )
----
-1566

query I rowsort
SELECT + 73 + 1
----
74

query I rowsort
SELECT ALL 78 - 31
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT - MIN( + ( - 19 ) ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1361
SELECT - MIN ( + ( - 19 ) ) AS col1
----
19

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

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

query I rowsort
SELECT + 19 * - 71
----
-1349

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT ALL ( MAX( - ( 74 ) ) )
----
-74

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL ( MAX ( - ( 74 ) ) )
----
-74

query II rowsort
SELECT 69 AS col2, - 61
----
69
-61

query I rowsort
SELECT ALL 83 * + 34 * 62
----
174964

query I rowsort
SELECT + 89 * - 80
----
-7120

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

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

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

query I rowsort
SELECT + 91 * 90 col0
----
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL 31 * - 46 * SUM( + - 60 )
----
85560

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL 31 * - 46 * SUM ( + - 60 )
----
85560

onlyif mysql # aggregate syntax: 
query II rowsort label-1372
SELECT DISTINCT - 80 * - - 47 * + - COUNT( * ), - ( + 42 ) col2
----
3760
-42

skipif mysql # not compatible
query II rowsort label-1372
SELECT DISTINCT - 80 * - - 47 * + - COUNT ( * ), - ( + 42 ) col2
----
3760
-42

query I rowsort
SELECT DISTINCT - 69 * - + 71
----
4899

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

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

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

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

query I rowsort
SELECT DISTINCT 2 * + 75 * + - 20 * - 49 * + - 13 + - + 74 + 48 + + 29 AS col2
----
-1910997

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT + - MAX( + 8 ) + ( + - 77 ) * + - COUNT( * ) * - COUNT( * ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-1377
SELECT + - MAX ( + 8 ) + ( + - 77 ) * + - COUNT ( * ) * - COUNT ( * ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT ALL + + CASE + 88 WHEN - COALESCE ( 92, - 12 + - - 79 * 33 * + + 48 ) + 68 + - 73 + + 33 * 8 THEN NULL WHEN + + COUNT( * ) THEN CASE 56 WHEN - - 35 THEN NULL WHEN + + 17 THEN - + 86 - + 97 * - + COUNT( DISTINCT 81 ) - 73 - + ( 35 ) ELSE COUNT( * ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL + + CASE + 88 WHEN - COALESCE ( 92, - 12 + - - 79 * 33 * + + 48 ) + 68 + - 73 + + 33 * 8 THEN NULL WHEN + + COUNT ( * ) THEN CASE 56 WHEN - - 35 THEN NULL WHEN + + 17 THEN - + 86 - + 97 * - + COUNT ( DISTINCT 81 ) - 73 - + ( 35 ) ELSE COUNT ( * ) END ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1379
SELECT - + 92 DIV - 85 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1379
SELECT - + 92 / - 85 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1380
SELECT ALL - MIN( + NULLIF ( 13, 18 + 38 ) ) DIV 5 + - COUNT( * ) * ( - COALESCE ( - - 25, + 9 + - + 57, + 78 ) )
----
23

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL - MIN ( + NULLIF ( 13, 18 + 38 ) ) / 5 + - COUNT ( * ) * ( - COALESCE ( - - 25, + 9 + - + 57, + 78 ) )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1381
SELECT + CAST( NULL AS SIGNED ) / - 1 + 88 * - 90 + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1381
SELECT + CAST ( NULL AS INTEGER ) / - 1 + 88 * - 90 + - 83
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1382
SELECT NULLIF ( - 75, - - COUNT ( * ) ) AS col1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1383
SELECT ALL + 67 DIV + 68 + - COALESCE ( - ( 91 ), + 60 - - - 97 * - 52 * - 12, + 3 - 18 * - - 49 ) * 14 * - - 59 * ( 39 ) - + CAST( - - ( + SUM( - 25 ) ) AS SIGNED ) + + 94 + + + 66 + - - NULLIF ( - ( - 43 ), 50 ) * + 33 * 78
----
3042341

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL + 67 / + 68 + - COALESCE ( - ( 91 ), + 60 - - - 97 * - 52 * - 12, + 3 - 18 * - - 49 ) * 14 * - - 59 * ( 39 ) - + CAST ( - - ( + SUM ( - 25 ) ) AS INTEGER ) + + 94 + + + 66 + - - NULLIF ( - ( - 43 ), 50 ) * + 33 * 78
----
3042341

query I rowsort
SELECT + + 6 + 14
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT ALL + - COALESCE ( - CASE + + 58 WHEN - 51 * - 75 * COUNT( DISTINCT - 54 ) THEN 36 END, - 32 * + 62 )
----
1984

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL + - COALESCE ( - CASE + + 58 WHEN - 51 * - 75 * COUNT ( DISTINCT - 54 ) THEN 36 END, - 32 * + 62 )
----
1984

query I rowsort
SELECT - 91 - + 81 AS col0
----
-172

query II rowsort
SELECT DISTINCT + COALESCE ( - + 58, + 16 ) AS col2, + 63 col1
----
-58
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1388
SELECT ALL 57 * + 64 + + CAST( + + AVG ( - 66 ) AS SIGNED ) * + CAST( 47 AS SIGNED ) AS col0
----
546

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL 57 * + 64 + + CAST ( + + AVG ( - 66 ) AS INTEGER ) * + CAST ( 47 AS INTEGER ) AS col0
----
546

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

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 97 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 31 * - 47 AS col1
----
-1457

query I rowsort
SELECT - 86 + + 24 * - 48
----
-1238

query I rowsort
SELECT ALL - 20 * + 70 * + 14 col0
----
-19600

query I rowsort
SELECT + 15 + 91
----
106

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1395
SELECT - 27 * + - NULLIF ( - COUNT( 54 ), 48 + + 8 ) + COALESCE ( + 3, 57, 42 ) * + 83 * + 18 AS col2, - 22
----
4455
-22

skipif mysql # not compatible
query II rowsort label-1395
SELECT - 27 * + - NULLIF ( - COUNT ( 54 ), 48 + + 8 ) + COALESCE ( + 3, 57, 42 ) * + 83 * + 18 AS col2, - 22
----
4455
-22

query I rowsort
SELECT DISTINCT - 18 * 74 - - + 47
----
-1285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1397
SELECT - CAST( NULL AS SIGNED ) + - ( + 10 ) * - 27 * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT - CAST ( NULL AS INTEGER ) + - ( + 10 ) * - 27 * + 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1398
SELECT ALL 27 * - CAST( NULL AS SIGNED ) * + - 87 - - COUNT( * ) + AVG ( ALL - 80 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL 27 * - CAST ( NULL AS INTEGER ) * + - 87 - - COUNT ( * ) + AVG ( ALL - 80 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1399
SELECT NULLIF ( - MAX( - CAST( NULL AS SIGNED ) ), 36 + + 4 - 49 * - CAST( NULL AS SIGNED ) + MIN( ALL - COALESCE ( - 35, + - 52 * + 47 * + - ( + 83 ) * + + 99 + 97 - - COALESCE ( 26, + 70 * + 54, - - 63 ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT NULLIF ( - MAX ( - CAST ( NULL AS INTEGER ) ), 36 + + 4 - 49 * - CAST ( NULL AS INTEGER ) + MIN ( ALL - COALESCE ( - 35, + - 52 * + 47 * + - ( + 83 ) * + + 99 + 97 - - COALESCE ( 26, + 70 * + 54, - - 63 ) ) ) ) AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( ( + 25 ), - + 55, + + 45 ) AS col1
----
25

query I rowsort
SELECT DISTINCT + NULLIF ( - 90, + + 25 ) * ( + - 21 ) * + 48 - - 48 AS col2
----
90768

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT - COUNT( * ) + - 59 + + - 50 * - + ( - + 1 )
----
-110

skipif mysql # not compatible
query I rowsort label-1403
SELECT - COUNT ( * ) + - 59 + + - 50 * - + ( - + 1 )
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1404
SELECT DISTINCT 7 * 82 - - CAST( + 16 AS SIGNED ) + + 90 + - 71 * - 48 * - - 51 * + SUM( ALL - - ( - 80 ) ) AS col0
----
-13903960

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT 7 * 82 - - CAST ( + 16 AS INTEGER ) + + 90 + - 71 * - 48 * - - 51 * + SUM ( ALL - - ( - 80 ) ) AS col0
----
-13903960

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1406
SELECT ALL + 58 * 38 / CAST( NULL AS SIGNED ) * - COALESCE ( - 28, - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL + 58 * 38 / CAST ( NULL AS INTEGER ) * - COALESCE ( - 28, - 51 )
----
NULL

query I rowsort
SELECT + 32 * + 52 * - - 75 * - 49 - + 46 AS col0
----
-6115246

query I rowsort
SELECT + 66 * 26 col1
----
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT - 77 + + MIN( ALL 33 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1409
SELECT - 77 + + MIN ( ALL 33 ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT + 83 + + + ( + + COUNT( * ) )
----
84

skipif mysql # not compatible
query I rowsort label-1410
SELECT + 83 + + + ( + + COUNT ( * ) )
----
84

query I rowsort
SELECT + 59 + ( + 67 )
----
126

query I rowsort
SELECT - - 21 + - + 57
----
-36

query I rowsort
SELECT - 89 * + - 47 AS col2
----
4183

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL + 51 + + + SUM( ALL COALESCE ( - - 60, 70 * - 98, - 77 ) ) * + 9 col1
----
591

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL + 51 + + + SUM ( ALL COALESCE ( - - 60, 70 * - 98, - 77 ) ) * + 9 col1
----
591

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

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

query I rowsort
SELECT ALL - - 60 * + 52 + - 53 AS col0
----
3067

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1417
SELECT ALL - COUNT( 53 ) + 98 DIV 82, - 24 AS col2
----
0
-24

skipif mysql # not compatible
query II rowsort label-1417
SELECT ALL - COUNT ( 53 ) + 98 / 82, - 24 AS col2
----
0
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT + - 71 + + 34 DIV + 77
----
-71

skipif mysql # not compatible
query I rowsort label-1418
SELECT + - 71 + + 34 / + 77
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT ALL + COUNT( 14 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL + COUNT ( 14 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT DISTINCT + + COALESCE ( - ( + COUNT( * ) ), - 16 ) + 63 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT + + COALESCE ( - ( + COUNT ( * ) ), - 16 ) + 63 AS col2
----
62

query I rowsort
SELECT ALL 64 + - + 82 * ( - + ( + 68 ) ) AS col1
----
5640

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT ALL 8 + 96 + + COUNT( * ) AS col2
----
105

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL 8 + 96 + + COUNT ( * ) AS col2
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1423
SELECT DISTINCT + 58 + - 41 - - COALESCE ( - 66, + 68 * 92, + ( + ( - + 19 ) ) + - ( + - 14 ) ) + + 88 - - - 1 DIV + 21, - COUNT( * ) * + + ( 98 ) col0
----
39
-98

skipif mysql # not compatible
query II rowsort label-1423
SELECT DISTINCT + 58 + - 41 - - COALESCE ( - 66, + 68 * 92, + ( + ( - + 19 ) ) + - ( + - 14 ) ) + + 88 - - - 1 / + 21, - COUNT ( * ) * + + ( 98 ) col0
----
39
-98

query I rowsort
SELECT - 92 * 69
----
-6348

query I rowsort
SELECT - 61 + - - 16
----
-45

query II rowsort
SELECT ALL 31 * 72 + + 77 + - 51 AS col2, 98 col0
----
2258
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT - COUNT( * ) * - - 22 + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-1427
SELECT - COUNT ( * ) * - - 22 + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT + - ( CASE - ( + 18 ) WHEN + 86 * - + 92 THEN + 85 WHEN COUNT( * ) + + 36 THEN MIN( DISTINCT - 68 ) - 8 * + 80 * - 90 + - - 18 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT + - ( CASE - ( + 18 ) WHEN + 86 * - + 92 THEN + 85 WHEN COUNT ( * ) + + 36 THEN MIN ( DISTINCT - 68 ) - 8 * + 80 * - 90 + - - 18 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL - 75 + 84 AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1430
SELECT + COUNT( * ) * - + NULLIF ( + 79, - COUNT( * ) / NULLIF ( ( + 24 ), + 86 * - 61 / 63 * - 29 * + 94 * 86 ) ) * + CAST( NULL AS SIGNED ) / + - COUNT( * ) * - - 35 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1430
SELECT + COUNT ( * ) * - + NULLIF ( + 79, - COUNT ( * ) / NULLIF ( ( + 24 ), + 86 * - 61 / 63 * - 29 * + 94 * 86 ) ) * + CAST ( NULL AS INTEGER ) / + - COUNT ( * ) * - - 35 col0
----
NULL

query I rowsort
SELECT ALL + 64 * - ( + 8 )
----
-512

query II rowsort
SELECT DISTINCT 76 - + - 28, + 38 AS col2
----
104
38

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

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

query II rowsort
SELECT - 23 * - 27 - - 61 AS col2, 88 AS col0
----
682
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT 68 + + 5 * - CASE + 83 WHEN - 85 * + 55 + + COUNT( * ) + + 58 THEN - 14 END + + - MAX( DISTINCT - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT 68 + + 5 * - CASE + 83 WHEN - 85 * + 55 + + COUNT ( * ) + + 58 THEN - 14 END + + - MAX ( DISTINCT - 90 )
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1438
SELECT DISTINCT + 71 * - + CASE + MIN( + + CAST( NULL AS SIGNED ) ) WHEN 74 THEN 74 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT + 71 * - + CASE + MIN ( + + CAST ( NULL AS INTEGER ) ) WHEN 74 THEN 74 ELSE NULL END col1
----
NULL

query I rowsort
SELECT 62 - - 68 * + 87 * + 99 * - 12
----
-7028146

query I rowsort
SELECT ALL + 62 * 66 col1
----
4092

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT 68 * COUNT( * ) * + + 95 * 11
----
71060

skipif mysql # not compatible
query I rowsort label-1441
SELECT 68 * COUNT ( * ) * + + 95 * 11
----
71060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1442
SELECT ALL 19 * - 88 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL 19 * - 88 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT + 72 * - 77 * COUNT( * ) AS col2
----
-5544

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT + 72 * - 77 * COUNT ( * ) AS col2
----
-5544

query I rowsort
SELECT ( 94 ) * 17 * 35 + + 66 * + - 13 - 12 * + 63
----
54316

query I rowsort
SELECT 96 - - 54
----
150

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

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT + 45 + - CAST ( NULL AS INTEGER )
----
NULL

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

query I rowsort
SELECT 83 * + 97 AS col1
----
8051

query I rowsort
SELECT DISTINCT + + 87 + + 12 AS col2
----
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1451
SELECT 69 + + NULLIF ( + - 76, - CAST( NULL AS SIGNED ) + 9 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-1451
SELECT 69 + + NULLIF ( + - 76, - CAST ( NULL AS INTEGER ) + 9 ) AS col1
----
-7

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

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

query I rowsort
SELECT CASE + 42 WHEN + 2 THEN 43 ELSE NULL END / + 73 AS col2
----
NULL

query I rowsort
SELECT + 85 * - 16 AS col1
----
-1360

query I rowsort
SELECT + 59 * + - 15 AS col0
----
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT NULLIF ( - 72, + 42 + 98 + COUNT( DISTINCT 17 ) + - 58 / + - 73 + 27 * 84 ) * + - 85 AS col2
----
6120

skipif mysql # not compatible
query I rowsort label-1456
SELECT NULLIF ( - 72, + 42 + 98 + COUNT ( DISTINCT 17 ) + - 58 / + - 73 + 27 * 84 ) * + - 85 AS col2
----
6120

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

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

query I rowsort
SELECT 38 - - 54
----
92

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1460
SELECT - NULLIF ( + - 99, + 75 ) + - - SUM( ALL + 34 ), 23 AS col0
----
133
23

skipif mysql # not compatible
query II rowsort label-1460
SELECT - NULLIF ( + - 99, + 75 ) + - - SUM ( ALL + 34 ), 23 AS col0
----
133
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1461
SELECT ALL - 87 col1, - CAST( ( + - 55 ) AS SIGNED )
----
-87
55

skipif mysql # not compatible
query II rowsort label-1461
SELECT ALL - 87 col1, - CAST ( ( + - 55 ) AS INTEGER )
----
-87
55

query I rowsort
SELECT 30 + - - 70 AS col2
----
100

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1464
SELECT + MAX( + - ( - 35 ) ) * + - 72 * - 58 + 87 + + - 41 - - 66 + 45 DIV - 42 AS col0
----
146271

skipif mysql # not compatible
query I rowsort label-1464
SELECT + MAX ( + - ( - 35 ) ) * + - 72 * - 58 + 87 + + - 41 - - 66 + 45 / - 42 AS col0
----
146271

query II rowsort
SELECT ALL - 98 AS col1, 84 AS col0
----
-98
84

query I rowsort
SELECT DISTINCT 21 * - 32
----
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1467
SELECT - 56 * + 82 + - + 81 + + - 71 / CAST( NULL AS SIGNED ) + + ( + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT - 56 * + 82 + - + 81 + + - 71 / CAST ( NULL AS INTEGER ) + + ( + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1468
SELECT CAST( - + NULLIF ( - + 14, ( + 56 ) * + + 60 * - 53 + + + 14 ) AS SIGNED ) + + 2 + 34 + - 60 * - 48 * - 96 AS col2
----
-276430

skipif mysql # not compatible
query I rowsort label-1468
SELECT CAST ( - + NULLIF ( - + 14, ( + 56 ) * + + 60 * - 53 + + + 14 ) AS INTEGER ) + + 2 + 34 + - 60 * - 48 * - 96 AS col2
----
-276430

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT NULLIF ( + + COUNT( * ), - 89 ) * 42
----
42

skipif mysql # not compatible
query I rowsort label-1469
SELECT NULLIF ( + + COUNT ( * ), - 89 ) * 42
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT ALL - CASE - 11 WHEN + 59 - + + NULLIF ( + 2, + 18 + ( COUNT( * ) ) + + 15 + + 51 ) THEN NULL WHEN 55 * - NULLIF ( + 91, - ( + 64 ) ) * - 88 + + 84 THEN NULL WHEN + - 15 + + COUNT( * ) THEN + 20 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL - CASE - 11 WHEN + 59 - + + NULLIF ( + 2, + 18 + ( COUNT ( * ) ) + + 15 + + 51 ) THEN NULL WHEN 55 * - NULLIF ( + 91, - ( + 64 ) ) * - 88 + + 84 THEN NULL WHEN + - 15 + + COUNT ( * ) THEN + 20 END col0
----
NULL

query II rowsort
SELECT 68 * - 70, - 94 * 38 AS col1
----
-4760
-3572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1473
SELECT ALL 20 * + - COALESCE ( + COUNT( * ), + - 63 * MAX( DISTINCT - - 23 ), + + COUNT( * ) - - CAST( NULL AS SIGNED ) )
----
-20

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL 20 * + - COALESCE ( + COUNT ( * ), + - 63 * MAX ( DISTINCT - - 23 ), + + COUNT ( * ) - - CAST ( NULL AS INTEGER ) )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-1474
SELECT ALL - 7 AS col2, SUM( DISTINCT + 58 ) AS col1
----
-7
58

skipif mysql # not compatible
query II rowsort label-1474
SELECT ALL - 7 AS col2, SUM ( DISTINCT + 58 ) AS col1
----
-7
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT CASE + + 46 WHEN + COUNT( * ) * + 64 * - 57 THEN + + COALESCE ( - + 46, 76 * + 63 * 70 ) - - 81 WHEN + 58 THEN NULL ELSE NULL END * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1475
SELECT CASE + + 46 WHEN + COUNT ( * ) * + 64 * - 57 THEN + + COALESCE ( - + 46, 76 * + 63 * 70 ) - - 81 WHEN + 58 THEN NULL ELSE NULL END * + - COUNT ( * )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1477
SELECT ALL - 22 AS col1, + 47 / - CAST( NULL AS SIGNED ) AS col0
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-1477
SELECT ALL - 22 AS col1, + 47 / - CAST ( NULL AS INTEGER ) AS col0
----
-22
NULL

query I rowsort
SELECT 93 * + + 22
----
2046

query I rowsort
SELECT 3 * + + 26
----
78

query I rowsort
SELECT ALL 66 + - ( - 50 )
----
116

query I rowsort
SELECT ALL - 95 + + + 72
----
-23

query I rowsort
SELECT 83 + + 80
----
163

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

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL - COUNT ( * ) + 69 AS col2
----
68

query I rowsort
SELECT + + 69 + 37
----
106

query I rowsort
SELECT - + 63 + + 78 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT DISTINCT + - CASE 68 WHEN + COALESCE ( - COUNT( * ), + 58 / + 92 ) THEN 64 * 21 * - CASE + + MAX( + + 55 ) WHEN - 77 THEN NULL ELSE + ( - 90 ) END * CASE + 25 WHEN 74 * + 75 THEN 63 WHEN 9 * - + 10 THEN NULL WHEN 64 / 36 THEN NULL END * 18 + - - 49 * - 70 + - 68 ELSE - ( - 42 ) + + 79 * 14 * 63 END * - CASE + 6 * - 80 WHEN 62 THEN 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT + - CASE 68 WHEN + COALESCE ( - COUNT ( * ), + 58 / + 92 ) THEN 64 * 21 * - CASE + + MAX ( + + 55 ) WHEN - 77 THEN NULL ELSE + ( - 90 ) END * CASE + 25 WHEN 74 * + 75 THEN 63 WHEN 9 * - + 10 THEN NULL WHEN 64 / 36 THEN NULL END * 18 + - - 49 * - 70 + - 68 ELSE - ( - 42 ) + + 79 * 14 * 63 END * - CASE + 6 * - 80 WHEN 62 THEN 47 END AS col1
----
NULL

query I rowsort
SELECT - - 88 + + 85 AS col2
----
173

query I rowsort
SELECT - 83 + + 57
----
-26

query II rowsort
SELECT - 96 + + - 11 col0, + 85 col1
----
-107
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1490
SELECT DISTINCT + 81 AS col0, + 85 * + + CAST( + 86 AS SIGNED )
----
81
7310

skipif mysql # not compatible
query II rowsort label-1490
SELECT DISTINCT + 81 AS col0, + 85 * + + CAST ( + 86 AS INTEGER )
----
81
7310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1491
SELECT ALL - 42 * - CAST( NULL AS SIGNED ) * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL - 42 * - CAST ( NULL AS INTEGER ) * + 9
----
NULL

query II rowsort
SELECT ALL - 55 AS col0, 83 + + 17 AS col1
----
-55
100

query I rowsort
SELECT ALL - - 25 * 3
----
75

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

query I rowsort
SELECT - + 12 + + 8
----
-4

query I rowsort
SELECT - 99 * 39
----
-3861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1497
SELECT - - 43 * - - 11 + CASE - 74 WHEN COUNT( * ) THEN - 16 WHEN - - MIN( + - 32 ) THEN + 58 ELSE - - 59 END + + 1 DIV 47 * + 60 AS col0
----
532

skipif mysql # not compatible
query I rowsort label-1497
SELECT - - 43 * - - 11 + CASE - 74 WHEN COUNT ( * ) THEN - 16 WHEN - - MIN ( + - 32 ) THEN + 58 ELSE - - 59 END + + 1 / 47 * + 60 AS col0
----
532

onlyif mysql # aggregate syntax: 
query II rowsort label-1498
SELECT 71 * - - 86 + - - ( - MAX( DISTINCT - 73 ) ), - COUNT( * ) AS col2
----
6179
-1

skipif mysql # not compatible
query II rowsort label-1498
SELECT 71 * - - 86 + - - ( - MAX ( DISTINCT - 73 ) ), - COUNT ( * ) AS col2
----
6179
-1

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

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

query I rowsort
SELECT - ( - - CASE 20 WHEN 61 + + - 58 THEN - 69 * 70 ELSE - 22 END ) * + 30 + - 73
----
587

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

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

query I rowsort
SELECT - 61 - 66 * + - ( + 87 ) + + 45 + + + 27 AS col0
----
5753

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1503
SELECT ALL + COALESCE ( + COUNT( * ), - + 98 * - NULLIF ( + - CASE - 74 WHEN - 26 THEN + + 67 WHEN - - 83 THEN NULL ELSE NULL END, + 49 ), CASE + 44 WHEN - - COALESCE ( 34, - SUM( ALL 3 ) ) THEN NULL WHEN + 16 THEN - 90 * - 39 + + COALESCE ( + + ( + COUNT( * ) ), + ( - 26 ) * + 58 ) + 28 * + 6 DIV + 45 END, - + 75 * 58 * - 49 - + - NULLIF ( - MAX( ALL + ( 91 ) ), + 49 * COUNT( DISTINCT - 37 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL + COALESCE ( + COUNT ( * ), - + 98 * - NULLIF ( + - CASE - 74 WHEN - 26 THEN + + 67 WHEN - - 83 THEN NULL ELSE NULL END, + 49 ), CASE + 44 WHEN - - COALESCE ( 34, - SUM ( ALL 3 ) ) THEN NULL WHEN + 16 THEN - 90 * - 39 + + COALESCE ( + + ( + COUNT ( * ) ), + ( - 26 ) * + 58 ) + 28 * + 6 / + 45 END, - + 75 * 58 * - 49 - + - NULLIF ( - MAX ( ALL + ( 91 ) ), + 49 * COUNT ( DISTINCT - 37 ) ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT + 20 DIV 10 * + - 9 + 17
----
-1

skipif mysql # not compatible
query I rowsort label-1504
SELECT + 20 / 10 * + - 9 + 17
----
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-1505
SELECT + 60 + - - 84, 85 * + SUM( ALL - 97 ) col1, - 62 + 2 + 9 * + - 30 + 69 * - 73 AS col1
----
144
-8245
-5367

skipif mysql # not compatible
query III rowsort label-1505
SELECT + 60 + - - 84, 85 * + SUM ( ALL - 97 ) col1, - 62 + 2 + 9 * + - 30 + 69 * - 73 AS col1
----
144
-8245
-5367

onlyif mysql # DIV for integer division: 
query I rowsort label-1506
SELECT + 24 DIV + 59 * - 9
----
0

skipif mysql # not compatible
query I rowsort label-1506
SELECT + 24 / + 59 * - 9
----
0

query I rowsort
SELECT ALL 76 * - 60 + - ( - 88 ) AS col0
----
-4472

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

skipif mysql # not compatible
query I rowsort label-1508
SELECT SUM ( + 73 )
----
73

query I rowsort
SELECT ALL - 78 * - - 22 + - 22
----
-1738

onlyif mysql # DIV for integer division: 
query I rowsort label-1510
SELECT + 0 DIV + + 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1510
SELECT + 0 / + + 37 AS col1
----
0

query I rowsort
SELECT ALL - ( 69 )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1512
SELECT + MIN( DISTINCT + COALESCE ( - + 79, 87 DIV - + 22 DIV - + 71 * 72 ) ) * - 43, 61 + + 81 * - 22 * - 90 AS col2
----
3397
160441

skipif mysql # not compatible
query II rowsort label-1512
SELECT + MIN ( DISTINCT + COALESCE ( - + 79, 87 / - + 22 / - + 71 * 72 ) ) * - 43, 61 + + 81 * - 22 * - 90 AS col2
----
3397
160441

query I rowsort
SELECT DISTINCT + CASE - - 14 WHEN + - 92 * + CASE + 56 WHEN + 63 THEN - + 43 ELSE NULL END THEN NULL ELSE 37 END AS col0
----
37

query I rowsort
SELECT DISTINCT 15 - + 17
----
-2

query I rowsort
SELECT ALL CASE 82 WHEN - 48 + 68 THEN - - 16 + ( + 66 ) * + - 17 ELSE - - 12 + + 84 END
----
96

query II rowsort
SELECT ALL - 13 * 89 AS col1, 20
----
-1157
20

query I rowsort
SELECT - COALESCE ( - 2, + 12 ) * - 20
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT DISTINCT 86 * + + 86 + + 6 - COUNT( * )
----
7401

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT 86 * + + 86 + + 6 - COUNT ( * )
----
7401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1519
SELECT + + 21 + - + ( - NULLIF ( + + CAST( NULL AS SIGNED ), 26 + - 6 ) ) + - COUNT( + 24 ) / ( 1 ) AS col0, + CASE - 43 WHEN - + 9 THEN 31 ELSE + ( - 48 ) END - - - CAST( - - 62 AS SIGNED )
----
NULL
-110

skipif mysql # not compatible
query II rowsort label-1519
SELECT + + 21 + - + ( - NULLIF ( + + CAST ( NULL AS INTEGER ), 26 + - 6 ) ) + - COUNT ( + 24 ) / ( 1 ) AS col0, + CASE - 43 WHEN - + 9 THEN 31 ELSE + ( - 48 ) END - - - CAST ( - - 62 AS INTEGER )
----
NULL
-110

query II rowsort
SELECT + 74 + + 75 AS col0, 31 AS col0
----
149
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1521
SELECT + CASE + 26 WHEN - 62 + + + 37 THEN NULL WHEN - CASE + CAST( NULL AS SIGNED ) WHEN + 96 THEN NULL ELSE - 33 + 37 END / ( - ( + 54 ) ) - + ( 21 ) + 31 + 3 / - 76 + - ( - 6 ) THEN + 96 + - MIN( DISTINCT + 74 ) ELSE + ( - COUNT( * ) ) * COUNT( * ) * + 55 END * + 35 * + COUNT( * ) * COUNT( * ) * - + 59 * - 18 + - COUNT( * )
----
-2044351

skipif mysql # not compatible
query I rowsort label-1521
SELECT + CASE + 26 WHEN - 62 + + + 37 THEN NULL WHEN - CASE + CAST ( NULL AS INTEGER ) WHEN + 96 THEN NULL ELSE - 33 + 37 END / ( - ( + 54 ) ) - + ( 21 ) + 31 + 3 / - 76 + - ( - 6 ) THEN + 96 + - MIN ( DISTINCT + 74 ) ELSE + ( - COUNT ( * ) ) * COUNT ( * ) * + 55 END * + 35 * + COUNT ( * ) * COUNT ( * ) * - + 59 * - 18 + - COUNT ( * )
----
-2044351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1522
SELECT + CAST( + COUNT( * ) AS SIGNED ) + - ( 60 )
----
-59

skipif mysql # not compatible
query I rowsort label-1522
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + - ( 60 )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1523
SELECT + 96 - - - 62 col0, - 50 + - CAST( + 83 AS SIGNED ) + - 41 * + + 50
----
34
-2183

skipif mysql # not compatible
query II rowsort label-1523
SELECT + 96 - - - 62 col0, - 50 + - CAST ( + 83 AS INTEGER ) + - 41 * + + 50
----
34
-2183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1524
SELECT ALL COUNT( + 11 ) * - CAST( - - COUNT( * ) AS SIGNED ) - - + ( 4 )
----
3

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL COUNT ( + 11 ) * - CAST ( - - COUNT ( * ) AS INTEGER ) - - + ( 4 )
----
3

query I rowsort
SELECT DISTINCT - 12 * + 34
----
-408

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1527
SELECT ALL - 31 DIV 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL - 31 / 41 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1528
SELECT + 10 * - COUNT( * ) - + + 55 * + 62, - COUNT( * ) AS col2
----
-3420
-1

skipif mysql # not compatible
query II rowsort label-1528
SELECT + 10 * - COUNT ( * ) - + + 55 * + 62, - COUNT ( * ) AS col2
----
-3420
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT - 19 + - 89 - 15 + + - 47 * + - COUNT( * ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-1529
SELECT - 19 + - 89 - 15 + + - 47 * + - COUNT ( * ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1530
SELECT ALL 35 DIV + 7 + + 38 + - 76, 13 * + CAST( NULL AS SIGNED ) + COUNT( * ) * 85 - + CASE - 40 WHEN + + 69 THEN NULL WHEN - 59 THEN NULL WHEN - 22 THEN - 41 END col1
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-1530
SELECT ALL 35 / + 7 + + 38 + - 76, 13 * + CAST ( NULL AS INTEGER ) + COUNT ( * ) * 85 - + CASE - 40 WHEN + + 69 THEN NULL WHEN - 59 THEN NULL WHEN - 22 THEN - 41 END col1
----
-33
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1531
SELECT DISTINCT 28 DIV - CAST( + - 20 AS SIGNED ) + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT 28 / - CAST ( + - 20 AS INTEGER ) + - 18
----
-17

query I rowsort
SELECT + 53 * 56 + - 3
----
2965

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

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

query I rowsort
SELECT DISTINCT 12 + - ( 65 ) AS col1
----
-53

query I rowsort
SELECT 86 * COALESCE ( + 59, 21 )
----
5074

query II rowsort
SELECT 46, 75 * - 5 * + 37 AS col1
----
46
-13875

query I rowsort
SELECT DISTINCT - - 26 - - 31
----
57

query I rowsort
SELECT ALL 86 - + - 52 col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT 13 * - 41 * - - COUNT( * ) * - 24
----
12792

skipif mysql # not compatible
query I rowsort label-1539
SELECT 13 * - 41 * - - COUNT ( * ) * - 24
----
12792

query II rowsort
SELECT ALL - 57, 40 col0
----
-57
40

query I rowsort
SELECT + 78 + + 93 AS col2
----
171

query I rowsort
SELECT ALL - 47 * + 31
----
-1457

query I rowsort
SELECT DISTINCT 70 * - 15 * 2 col0
----
-2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1544
SELECT NULLIF ( - - 90, + NULLIF ( 68, + 52 ) * + 30 * - 3 + - COALESCE ( COUNT( * ), - + CAST( NULL AS SIGNED ) ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1544
SELECT NULLIF ( - - 90, + NULLIF ( 68, + 52 ) * + 30 * - 3 + - COALESCE ( COUNT ( * ), - + CAST ( NULL AS INTEGER ) ) ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT 13 + + + 98 - - + 24 - - COUNT( * ) * + ( - + 38 ) * + - COUNT( + 17 ) * - ( + ( + COALESCE ( + + MAX( ALL - 64 ), + 92, 97 + + - 95 ) ) ) - + 37 AS col0
----
2530

skipif mysql # not compatible
query I rowsort label-1545
SELECT 13 + + + 98 - - + 24 - - COUNT ( * ) * + ( - + 38 ) * + - COUNT ( + 17 ) * - ( + ( + COALESCE ( + + MAX ( ALL - 64 ), + 92, 97 + + - 95 ) ) ) - + 37 AS col0
----
2530

onlyif mysql # DIV for integer division: 
query I rowsort label-1546
SELECT - 19 DIV + 40 * + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1546
SELECT - 19 / + 40 * + 66 AS col2
----
0

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

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

query II rowsort
SELECT ALL - 3 AS col2, + 71 * - 8 AS col0
----
-3
-568

query II rowsort
SELECT 38, + 88 AS col1
----
38
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT 5 + - + MAX( DISTINCT - + 20 ) + - 80 + 13 * 26
----
283

skipif mysql # not compatible
query I rowsort label-1550
SELECT 5 + - + MAX ( DISTINCT - + 20 ) + - 80 + 13 * 26
----
283

onlyif mysql # DIV for integer division: 
query I rowsort label-1551
SELECT DISTINCT NULLIF ( + 88, - - 69 ) DIV - - 71
----
1

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT NULLIF ( + 88, - - 69 ) / - - 71
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1552
SELECT - 85 DIV - 5 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-1552
SELECT - 85 / - 5 AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-1553
SELECT ALL 4 AS col2, + NULLIF ( + COUNT( * ), + + 18 )
----
4
1

skipif mysql # not compatible
query II rowsort label-1553
SELECT ALL 4 AS col2, + NULLIF ( + COUNT ( * ), + + 18 )
----
4
1

query I rowsort
SELECT DISTINCT 59 + 91 AS col0
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1555
SELECT ALL + 40 + + ( + 87 ) + ( + 74 ) DIV - COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + 40 + + ( + 87 ) + ( + 74 ) / - COUNT ( * ) AS col0
----
53

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

query I rowsort
SELECT DISTINCT - 26 + 1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-1558
SELECT ALL 55 + - - 33 AS col1, 98 + - + 35 + - 97 * + + COUNT( * ) + - ( + 33 ) + COUNT( * ) * - - 97 + - COUNT( + + 49 ) + + COALESCE ( 51, - 15 * + - 93, + + 39 ) AS col2
----
88
80

skipif mysql # not compatible
query II rowsort label-1558
SELECT ALL 55 + - - 33 AS col1, 98 + - + 35 + - 97 * + + COUNT ( * ) + - ( + 33 ) + COUNT ( * ) * - - 97 + - COUNT ( + + 49 ) + + COALESCE ( 51, - 15 * + - 93, + + 39 ) AS col2
----
88
80

query I rowsort
SELECT 52 * - + 4 * - + 83
----
17264

onlyif mysql # aggregate syntax: 
query II rowsort label-1560
SELECT 87 + 4 * - 71 * 59 + MAX( DISTINCT - - 50 ) + - 94 + + SUM( DISTINCT + - 67 ), 90 AS col2
----
-16780
90

skipif mysql # not compatible
query II rowsort label-1560
SELECT 87 + 4 * - 71 * 59 + MAX ( DISTINCT - - 50 ) + - 94 + + SUM ( DISTINCT + - 67 ), 90 AS col2
----
-16780
90

query I rowsort
SELECT DISTINCT 90 + + - 98
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT ALL COUNT( * ) + + 94 - - - CASE - 27 WHEN + COUNT( * ) THEN NULL WHEN - 15 THEN + 75 * - 48 / + - 12 + - - ( + - 45 ) END * 69 * 95 * - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL COUNT ( * ) + + 94 - - - CASE - 27 WHEN + COUNT ( * ) THEN NULL WHEN - 15 THEN + 75 * - 48 / + - 12 + - - ( + - 45 ) END * 69 * 95 * - 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1563
SELECT 45 DIV 63 + COUNT( DISTINCT + - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-1563
SELECT 45 / 63 + COUNT ( DISTINCT + - 57 )
----
1

query I rowsort
SELECT DISTINCT 54 + + - ( 13 ) - + 21 + + 87
----
107

query I rowsort
SELECT 93 + - 36 AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1566
SELECT 96 DIV - - 5
----
19

skipif mysql # not compatible
query I rowsort label-1566
SELECT 96 / - - 5
----
19

query I rowsort
SELECT ALL 89 - 61
----
28

query I rowsort
SELECT 77 - 44 AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1569
SELECT ALL + 82 DIV 80
----
1

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL + 82 / 80
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT + 24 * + COUNT( * ) + + + NULLIF ( 72, + SUM( ALL - + 84 ) * + 72 ) * - 8
----
-552

skipif mysql # not compatible
query I rowsort label-1570
SELECT + 24 * + COUNT ( * ) + + + NULLIF ( 72, + SUM ( ALL - + 84 ) * + 72 ) * - 8
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT ( - + 58 ) * + - MIN( DISTINCT - 67 ) * + + 28
----
-108808

skipif mysql # not compatible
query I rowsort label-1571
SELECT ( - + 58 ) * + - MIN ( DISTINCT - 67 ) * + + 28
----
-108808

query I rowsort
SELECT + NULLIF ( - - 53, - 34 * + 93 / 50 + NULLIF ( - - 47, - 55 ) ) AS col2
----
53

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

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

query I rowsort
SELECT DISTINCT - ( + + ( + 88 ) ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT DISTINCT - - NULLIF ( + 4, + CASE - 75 WHEN + 76 THEN + COUNT( * ) * ( + 69 ) + + - 88 / - 5 + 39 ELSE NULL END + + + 2 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT - - NULLIF ( + 4, + CASE - 75 WHEN + 76 THEN + COUNT ( * ) * ( + 69 ) + + - 88 / - 5 + 39 ELSE NULL END + + + 2 ) AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1576
SELECT 51 * + + 52 AS col0, + CAST( NULL AS SIGNED ) AS col2
----
2652
NULL

skipif mysql # not compatible
query II rowsort label-1576
SELECT 51 * + + 52 AS col0, + CAST ( NULL AS INTEGER ) AS col2
----
2652
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1577
SELECT ALL - - CAST( + + 5 AS SIGNED ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL - - CAST ( + + 5 AS INTEGER ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1578
SELECT MIN( ALL - 31 ) AS col2, - COUNT( * ) AS col2
----
-31
-1

skipif mysql # not compatible
query II rowsort label-1578
SELECT MIN ( ALL - 31 ) AS col2, - COUNT ( * ) AS col2
----
-31
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1579
SELECT ( + 60 ) * + - 94 * - ( - - CAST( NULL AS SIGNED ) ) / 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT ( + 60 ) * + - 94 * - ( - - CAST ( NULL AS INTEGER ) ) / 80 AS col1
----
NULL

query I rowsort
SELECT + 26 * 9 + + + 72
----
306

query I rowsort
SELECT 61 - - NULLIF ( 27, 54 + + + 97 ) - - - 27 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT DISTINCT 4 * - 53 * NULLIF ( COUNT( * ), - - COUNT( * ) / + 88 - 90 ) * 78 AS col0
----
-16536

skipif mysql # not compatible
query I rowsort label-1582
SELECT DISTINCT 4 * - 53 * NULLIF ( COUNT ( * ), - - COUNT ( * ) / + 88 - 90 ) * 78 AS col0
----
-16536

onlyif mysql # aggregate syntax: 
query II rowsort label-1583
SELECT ALL + 44 + 81 AS col0, - COUNT( * ) AS col1
----
125
-1

skipif mysql # not compatible
query II rowsort label-1583
SELECT ALL + 44 + 81 AS col0, - COUNT ( * ) AS col1
----
125
-1

query I rowsort
SELECT ALL - + 27 + - - 44 + - 15 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT DISTINCT + - COUNT( * ) * MAX( ALL - - 80 ) + COUNT( * ) * + 93 - + - 42
----
55

skipif mysql # not compatible
query I rowsort label-1585
SELECT DISTINCT + - COUNT ( * ) * MAX ( ALL - - 80 ) + COUNT ( * ) * + 93 - + - 42
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT 42 + - + 66 + - COUNT( * ) + + + 77 - + + 68 * 71 * 72 + + 53 + + 44 AS col1
----
-347467

skipif mysql # not compatible
query I rowsort label-1586
SELECT 42 + - + 66 + - COUNT ( * ) + + + 77 - + + 68 * 71 * 72 + + 53 + + 44 AS col1
----
-347467

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT - COUNT( ALL - 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-1587
SELECT - COUNT ( ALL - 89 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1588
SELECT ALL 56 + + 36 - - + 93, ( + + 1 ) * - 30 * ( COUNT( * ) ) + - 27 AS col2
----
185
-57

skipif mysql # not compatible
query II rowsort label-1588
SELECT ALL 56 + + 36 - - + 93, ( + + 1 ) * - 30 * ( COUNT ( * ) ) + - 27 AS col2
----
185
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT ( - 18 ) * + COUNT( * ) + - + 9
----
-27

skipif mysql # not compatible
query I rowsort label-1589
SELECT ( - 18 ) * + COUNT ( * ) + - + 9
----
-27

query I rowsort
SELECT 61 + - + 20 + + 19 + - 14 AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1591
SELECT DISTINCT COALESCE ( 31, + + 16 - + 21 DIV 71 * 18 DIV - COUNT( * ) + - 89 ) DIV - - 27
----
1

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT COALESCE ( 31, + + 16 - + 21 / 71 * 18 / - COUNT ( * ) + - 89 ) / - - 27
----
1

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

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT + 95 - COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-1593
SELECT ALL 78 * - - 77 * COUNT( * ) AS col0, 29 * COUNT( * )
----
6006
29

skipif mysql # not compatible
query II rowsort label-1593
SELECT ALL 78 * - - 77 * COUNT ( * ) AS col0, 29 * COUNT ( * )
----
6006
29

query I rowsort
SELECT + 84 + - 18
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT - COUNT( * ) * COUNT( * ) + 84
----
83

skipif mysql # not compatible
query I rowsort label-1595
SELECT - COUNT ( * ) * COUNT ( * ) + 84
----
83

query I rowsort
SELECT + 78 * + 90 col0
----
7020

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

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

query I rowsort
SELECT + 48 + 52
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1599
SELECT - 69 DIV - + 61 * + + COUNT( * ) + + 98 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-1599
SELECT - 69 / - + 61 * + + COUNT ( * ) + + 98 AS col1
----
99

query I rowsort
SELECT + 42 * 94
----
3948

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT - 47 * + 79 * NULLIF ( + - 50, - 16 + - 77 + + 42 * - COUNT( - + ( - + 14 ) ) * + - 11 + + 66 * - + COUNT( * ) * - NULLIF ( + 95, + - 59 * ( 26 ) + 7 ) + ( - 35 ) + 33 * - - 36 * + COUNT( * ) )
----
185650

skipif mysql # not compatible
query I rowsort label-1601
SELECT - 47 * + 79 * NULLIF ( + - 50, - 16 + - 77 + + 42 * - COUNT ( - + ( - + 14 ) ) * + - 11 + + 66 * - + COUNT ( * ) * - NULLIF ( + 95, + - 59 * ( 26 ) + 7 ) + ( - 35 ) + 33 * - - 36 * + COUNT ( * ) )
----
185650

query I rowsort
SELECT + NULLIF ( 41, 44 )
----
41

query I rowsort
SELECT + 47 * + - ( - 29 ) * - 83 * - 2
----
226258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1604
SELECT + 51 + CAST( - 38 AS SIGNED ) + + + 77 * 8 + 51 * - ( - ( + CASE + 76 WHEN 77 + + 19 THEN + 89 WHEN - 36 THEN + + 59 * - - ( + + COUNT( + 67 ) ) ELSE NULL END ) ) + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT + 51 + CAST ( - 38 AS INTEGER ) + + + 77 * 8 + 51 * - ( - ( + CASE + 76 WHEN 77 + + 19 THEN + 89 WHEN - 36 THEN + + 59 * - - ( + + COUNT ( + 67 ) ) ELSE NULL END ) ) + - 28
----
NULL

query II rowsort
SELECT ALL + - 91, - 31 AS col1
----
-91
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT + - SUM( DISTINCT - 31 ) col0
----
31

skipif mysql # not compatible
query I rowsort label-1606
SELECT + - SUM ( DISTINCT - 31 ) col0
----
31

query I rowsort
SELECT + - 84 + - 75 AS col2
----
-159

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1608
SELECT - - 20 DIV - CAST( + ( + + ( - 33 ) ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1608
SELECT - - 20 / - CAST ( + ( + + ( - 33 ) ) AS INTEGER ) AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT 34 * - + 59 * + 3 + + 83 + 6 - - + COUNT( * ) + + COUNT( * )
----
-5927

skipif mysql # not compatible
query I rowsort label-1610
SELECT 34 * - + 59 * + 3 + + 83 + 6 - - + COUNT ( * ) + + COUNT ( * )
----
-5927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1611
SELECT 70 * + 13 + + NULLIF ( + + COUNT( * ), 69 * + + 81 * + - 14 * - + 70 * - 36 DIV 20 * COUNT( * ) + - 46 * - + 42 * + + MIN( - 62 ) DIV - 24 ) DIV - 6 col2
----
910

skipif mysql # not compatible
query I rowsort label-1611
SELECT 70 * + 13 + + NULLIF ( + + COUNT ( * ), 69 * + + 81 * + - 14 * - + 70 * - 36 / 20 * COUNT ( * ) + - 46 * - + 42 * + + MIN ( - 62 ) / - 24 ) / - 6 col2
----
910

query I rowsort
SELECT DISTINCT + 15 * - - 71 + - + 31 + - 94 + - + 61 * 6 AS col2
----
574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1613
SELECT ALL - CASE + 35 WHEN - 3 THEN 42 ELSE NULL END * - + 83 * + 36 * - - CAST( 73 AS SIGNED ) / + COUNT( * ) + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL - CASE + 35 WHEN - 3 THEN 42 ELSE NULL END * - + 83 * + 36 * - - CAST ( 73 AS INTEGER ) / + COUNT ( * ) + 35
----
NULL

query I rowsort
SELECT ALL 37 * - 67 AS col2
----
-2479

query I rowsort
SELECT - 76 + + 84 AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1616
SELECT ALL - 82 + + COUNT( * ) DIV + 70
----
-82

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL - 82 + + COUNT ( * ) / + 70
----
-82

query I rowsort
SELECT ALL + 13 + 11 + - 97 col0
----
-73

query I rowsort
SELECT + + 7 * - 99 - 54
----
-747

onlyif mysql # DIV for integer division: 
query I rowsort label-1619
SELECT + + 28 * - 56 + + ( + COALESCE ( + + 52, - - 89, 64 + 23 DIV - 68 ) )
----
-1516

skipif mysql # not compatible
query I rowsort label-1619
SELECT + + 28 * - 56 + + ( + COALESCE ( + + 52, - - 89, 64 + 23 / - 68 ) )
----
-1516

query I rowsort
SELECT ALL NULLIF ( - 67, 1 - 41 ) AS col1
----
-67

query II rowsort
SELECT - 80 AS col2, + 2 * + 85 col2
----
-80
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1622
SELECT - CAST( NULL AS SIGNED ) + + 48 / + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT - CAST ( NULL AS INTEGER ) + + 48 / + 69
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1623
SELECT - CASE + - 82 WHEN 48 + - COUNT( * ) THEN NULL WHEN - COUNT( CAST( 74 AS SIGNED ) ) THEN NULL ELSE - - 61 + SUM( 77 ) * + 1 END * + - 22
----
3036

skipif mysql # not compatible
query I rowsort label-1623
SELECT - CASE + - 82 WHEN 48 + - COUNT ( * ) THEN NULL WHEN - COUNT ( CAST ( 74 AS INTEGER ) ) THEN NULL ELSE - - 61 + SUM ( 77 ) * + 1 END * + - 22
----
3036

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

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT + 99 * + COUNT ( * ) AS col2
----
99

query I rowsort
SELECT DISTINCT + 27 - - NULLIF ( - - 78, 33 ) col1
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1626
SELECT - CAST( NULL AS SIGNED ) * + + 27 AS col0, 70 AS col1
----
NULL
70

skipif mysql # not compatible
query II rowsort label-1626
SELECT - CAST ( NULL AS INTEGER ) * + + 27 AS col0, 70 AS col1
----
NULL
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1627
SELECT ALL + 9 - + CAST( NULL AS SIGNED ) + - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL + 9 - + CAST ( NULL AS INTEGER ) + - 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT DISTINCT NULLIF ( - - ( - + ( - - COUNT( * ) ) ), - 57 * - 49 + 28 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT NULLIF ( - - ( - + ( - - COUNT ( * ) ) ), - 57 * - 49 + 28 ) AS col0
----
-1

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

query I rowsort
SELECT ALL - 82 * - 27 AS col2
----
2214

onlyif mysql # DIV for integer division: 
query I rowsort label-1631
SELECT - 72 DIV 47
----
-1

skipif mysql # not compatible
query I rowsort label-1631
SELECT - 72 / 47
----
-1

query I rowsort
SELECT + 78 * 37 col1
----
2886

query II rowsort
SELECT - 58 AS col2, 0 AS col0
----
-58
0

query II rowsort
SELECT DISTINCT + 44 AS col2, + 50
----
44
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT ALL 88 DIV 30 col0
----
2

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL 88 / 30 col0
----
2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1637
SELECT ALL - 47 DIV + 19 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL - 47 / + 19 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT + + MAX( DISTINCT 5 ) + - COUNT( * ) + 96 * 84
----
8068

skipif mysql # not compatible
query I rowsort label-1638
SELECT + + MAX ( DISTINCT 5 ) + - COUNT ( * ) + 96 * 84
----
8068

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1640
SELECT ALL - CAST( NULL AS SIGNED ) * + - 94 * + 15 / ( 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 94 * + 15 / ( 96 )
----
NULL

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

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

query I rowsort
SELECT ( - NULLIF ( 13, - 26 ) ) col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT - - ( - 90 ) * - COUNT( * ) + + 10
----
100

skipif mysql # not compatible
query I rowsort label-1643
SELECT - - ( - 90 ) * - COUNT ( * ) + + 10
----
100

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

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

query I rowsort
SELECT + 11 * + - 22 * - 46 col0
----
11132

query II rowsort
SELECT - 87 col2, 76 + - 45
----
-87
31

query II rowsort
SELECT + 10 AS col2, + 67
----
10
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT ALL + COUNT( * ) * + 43 + + 53
----
96

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL + COUNT ( * ) * + 43 + + 53
----
96

query I rowsort
SELECT DISTINCT + 11 * ( + + 5 ) + - 12
----
43

query I rowsort
SELECT + + 97 * + 30
----
2910

query I rowsort
SELECT + 52 - + 17 * - 31 AS col1
----
579

query II rowsort
SELECT ALL + - 21, 86 * 46 AS col1
----
-21
3956

query I rowsort
SELECT + 13 * + 54
----
702

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL + COUNT( * ) * + + 49 + ( + - 85 )
----
-36

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL + COUNT ( * ) * + + 49 + ( + - 85 )
----
-36

query I rowsort
SELECT ALL 71 * + + 81 AS col1
----
5751

query II rowsort
SELECT - 17, 46 * + 77 AS col1
----
-17
3542

onlyif mysql # aggregate syntax: 
query II rowsort label-1658
SELECT + 56 * + COUNT( * ), - 43 - + MIN( - 26 ) AS col2
----
56
-17

skipif mysql # not compatible
query II rowsort label-1658
SELECT + 56 * + COUNT ( * ), - 43 - + MIN ( - 26 ) AS col2
----
56
-17

query I rowsort
SELECT 15 * 9 AS col0
----
135

query I rowsort
SELECT 86 + ( 1 ) AS col2
----
87

query II rowsort
SELECT 22 - 51 AS col2, 78
----
-29
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT 93 * - COUNT( * ) * COUNT( ALL 25 ) * CASE + 57 WHEN - - 91 THEN + 89 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1662
SELECT 93 * - COUNT ( * ) * COUNT ( ALL 25 ) * CASE + 57 WHEN - - 91 THEN + 89 ELSE NULL END
----
NULL

query I rowsort
SELECT 96 + ( - 33 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT ALL - 51 * COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL - 51 * COUNT ( * ) AS col0
----
-51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1666
SELECT 21 + CAST( + - 20 AS SIGNED ) * + - 6 * - + ( - 47 ) * - ( 47 ) + ( COUNT( * ) ) * - 99 + 10 DIV 96
----
-265158

skipif mysql # not compatible
query I rowsort label-1666
SELECT 21 + CAST ( + - 20 AS INTEGER ) * + - 6 * - + ( - 47 ) * - ( 47 ) + ( COUNT ( * ) ) * - 99 + 10 / 96
----
-265158

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ALL + 89 + - 8 + 82 + - COUNT( * ) AS col2
----
162

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL + 89 + - 8 + 82 + - COUNT ( * ) AS col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT DISTINCT - 31 * + MAX( ALL 16 ) + + 29
----
-467

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT - 31 * + MAX ( ALL 16 ) + + 29
----
-467

query I rowsort
SELECT - 33 * 15 + - 97 * 28 AS col1
----
-3211

query II rowsort
SELECT - 69 + 96 AS col0, 65 AS col2
----
27
65

query I rowsort
SELECT ALL + 6 + + - 86 AS col1
----
-80

query I rowsort
SELECT + 22 * 34 * - 22
----
-16456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1673
SELECT + 53 / + - 76 + - 94 + - CAST( NULL AS SIGNED ) + + 78, 28 col0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-1673
SELECT + 53 / + - 76 + - 94 + - CAST ( NULL AS INTEGER ) + + 78, 28 col0
----
NULL
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT DISTINCT + + 82 DIV - 12 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT + + 82 / - 12 AS col0
----
-6

query I rowsort
SELECT 92 + 72 - - + ( + - 61 ) * 11 AS col1
----
-507

query I rowsort
SELECT 91 * 67 + + 76
----
6173

query I rowsort
SELECT DISTINCT 38 * 1 AS col1
----
38

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT NULLIF ( + 18, + 39 DIV - + 45 * - + AVG ( ALL + 91 ) + + 97 ) DIV + 53 col2
----
0

skipif mysql # not compatible
query I rowsort label-1679
SELECT NULLIF ( + 18, + 39 / - + 45 * - + AVG ( ALL + 91 ) + + 97 ) / + 53 col2
----
0

query I rowsort
SELECT DISTINCT - ( - + ( 28 ) ) * - 46 * - + 24
----
30912

query II rowsort
SELECT ALL 13 AS col0, 17 AS col0
----
13
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL + ( 4 ) + - COUNT( * ) col2
----
3

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL + ( 4 ) + - COUNT ( * ) col2
----
3

query I rowsort
SELECT 31 * + + 79 AS col0
----
2449

query I rowsort
SELECT 40 * 83 * 81 AS col1
----
268920

query I rowsort
SELECT 11 - 99 - + 7
----
-95

query I rowsort
SELECT - ( 27 ) * + - 89 AS col2
----
2403

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1688
SELECT ALL - + CAST( + CASE + - 51 WHEN 96 THEN COUNT( * ) END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL - + CAST ( + CASE + - 51 WHEN 96 THEN COUNT ( * ) END AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1689
SELECT DISTINCT - COALESCE ( + COUNT( * ), - - CAST( NULL AS SIGNED ) DIV COUNT( * ) + 46 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT - COALESCE ( + COUNT ( * ), - - CAST ( NULL AS INTEGER ) / COUNT ( * ) + 46 ) AS col0
----
-1

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

query I rowsort
SELECT ALL - 52 * 65 * 74 * - 10 - + 34 AS col1
----
2501166

query II rowsort
SELECT + - 30 AS col2, - 67 AS col1
----
-30
-67

query II rowsort
SELECT + - 61 col0, 89
----
-61
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1694
SELECT ALL + + 5 * + + SUM( ALL 15 ) AS col1, + 46 DIV + 57 + + 9 AS col0
----
75
9

skipif mysql # not compatible
query II rowsort label-1694
SELECT ALL + + 5 * + + SUM ( ALL 15 ) AS col1, + 46 / + 57 + + 9 AS col0
----
75
9

query I rowsort
SELECT - 70 - 0 + - - 65 + + ( - + 77 )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-1696
SELECT SUM( - + 78 ) + + - 26, + 40 AS col1
----
-104
40

skipif mysql # not compatible
query II rowsort label-1696
SELECT SUM ( - + 78 ) + + - 26, + 40 AS col1
----
-104
40

query I rowsort
SELECT ALL - NULLIF ( + - 43, + + 3 / - 59 - - - 46 ) AS col2
----
43

query I rowsort
SELECT DISTINCT - - 76 * - 47
----
-3572

onlyif mysql # aggregate syntax: 
query II rowsort label-1699
SELECT ALL + - ( + CASE - 82 WHEN - - 57 THEN NULL ELSE - 72 END ) * + COUNT( * ) AS col2, ( + 86 )
----
72
86

skipif mysql # not compatible
query II rowsort label-1699
SELECT ALL + - ( + CASE - 82 WHEN - - 57 THEN NULL ELSE - 72 END ) * + COUNT ( * ) AS col2, ( + 86 )
----
72
86

query I rowsort
SELECT + NULLIF ( - + 44, - 58 * + 97 + - - 55 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1701
SELECT + CAST( - 82 AS SIGNED ) * + 40 / + CAST( NULL AS SIGNED ) * 97 + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1701
SELECT + CAST ( - 82 AS INTEGER ) * + 40 / + CAST ( NULL AS INTEGER ) * 97 + - 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1702
SELECT ALL + MAX( 95 ) DIV + 80 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL + MAX ( 95 ) / + 80 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT CASE 63 WHEN - + 32 THEN 69 WHEN COUNT( * ) THEN NULL ELSE + + COUNT( * ) END * - - 28 - + + 53 - + 61
----
-86

skipif mysql # not compatible
query I rowsort label-1703
SELECT CASE 63 WHEN - + 32 THEN 69 WHEN COUNT ( * ) THEN NULL ELSE + + COUNT ( * ) END * - - 28 - + + 53 - + 61
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT MAX( - + 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-1704
SELECT MAX ( - + 20 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-1705
SELECT + MAX( DISTINCT 2 ) AS col1, COUNT( - 42 ) col1
----
2
1

skipif mysql # not compatible
query II rowsort label-1705
SELECT + MAX ( DISTINCT 2 ) AS col1, COUNT ( - 42 ) col1
----
2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT - COUNT( * ) * - 44 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1706
SELECT - COUNT ( * ) * - 44 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT ALL + 24 + - 67 * - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL + 24 + - 67 * - COUNT ( * )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1708
SELECT DISTINCT - 6 + - 77 + + COUNT( * ) + - 90, - 9 DIV + - 53 * - - ( + 88 ) AS col2
----
-172
0

skipif mysql # not compatible
query II rowsort label-1708
SELECT DISTINCT - 6 + - 77 + + COUNT ( * ) + - 90, - 9 / + - 53 * - - ( + 88 ) AS col2
----
-172
0

query I rowsort
SELECT ALL 66 + + + 84 AS col1
----
150

query I rowsort
SELECT - 83 + - + 67
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1711
SELECT + 48 DIV - + NULLIF ( - 52, + SUM( ALL - + 27 ) + + - 20 - - 1 * 83 )
----
0

skipif mysql # not compatible
query I rowsort label-1711
SELECT + 48 / - + NULLIF ( - 52, + SUM ( ALL - + 27 ) + + - 20 - - 1 * 83 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT ALL 30 + + COUNT( * ) + + - 56 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL 30 + + COUNT ( * ) + + - 56 AS col2
----
-25

query I rowsort
SELECT + 35 + + + 70 + + 8 + 72 * - + 28 * 72 AS col1
----
-145039

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT + 41 - + ( - - 26 ) + 88 * + COUNT( * )
----
103

skipif mysql # not compatible
query I rowsort label-1714
SELECT + 41 - + ( - - 26 ) + 88 * + COUNT ( * )
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-1715
SELECT ALL 47 DIV - 89 * - NULLIF ( + 64, 85 )
----
0

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL 47 / - 89 * - NULLIF ( + 64, 85 )
----
0

query I rowsort
SELECT + 91 + - 87
----
4

query I rowsort
SELECT ALL 74 - - 54
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-1718
SELECT + MIN( + 42 ) AS col2, - 26
----
42
-26

skipif mysql # not compatible
query II rowsort label-1718
SELECT + MIN ( + 42 ) AS col2, - 26
----
42
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1719
SELECT + - COUNT( + 46 ) / + CAST( NULL AS SIGNED ) + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT + - COUNT ( + 46 ) / + CAST ( NULL AS INTEGER ) + 6
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT - CASE - CASE 19 WHEN + 39 THEN + + 11 / COUNT( * ) + - 31 WHEN - - COUNT( ALL + 76 ) * 29 + - - 93 THEN NULL ELSE NULL END WHEN + 11 THEN - COUNT( * ) * + 75 + + + 27 + + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT - CASE - CASE 19 WHEN + 39 THEN + + 11 / COUNT ( * ) + - 31 WHEN - - COUNT ( ALL + 76 ) * 29 + - - 93 THEN NULL ELSE NULL END WHEN + 11 THEN - COUNT ( * ) * + 75 + + + 27 + + COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 13 * - 75 * + 59 * 14 AS col0
----
-805350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1723
SELECT DISTINCT + + ( + 17 ) * COUNT( * ) * + - CAST( + 58 AS SIGNED )
----
-986

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT + + ( + 17 ) * COUNT ( * ) * + - CAST ( + 58 AS INTEGER )
----
-986

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

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT + + CAST ( - 3 AS INTEGER ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT - 62 * + + NULLIF ( + 81, - COUNT( * ) ) * ( 52 )
----
-261144

skipif mysql # not compatible
query I rowsort label-1725
SELECT - 62 * + + NULLIF ( + 81, - COUNT ( * ) ) * ( 52 )
----
-261144

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT + ( - CASE + 46 WHEN + ( + + 79 ) / + 50 * 48 + - + 69 THEN NULL WHEN + CASE - 90 WHEN 0 * + 92 * MIN( ALL 8 ) + + 59 + 86 * - 36 THEN NULL ELSE - NULLIF ( - COUNT( * ), 53 * - 3 - + 74 ) + - + 37 + - 56 END THEN - - 52 + - COUNT( * ) / - 48 * 56 END ) + 5 + + 61 * + 86 + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT + ( - CASE + 46 WHEN + ( + + 79 ) / + 50 * 48 + - + 69 THEN NULL WHEN + CASE - 90 WHEN 0 * + 92 * MIN ( ALL 8 ) + + 59 + 86 * - 36 THEN NULL ELSE - NULLIF ( - COUNT ( * ), 53 * - 3 - + 74 ) + - + 37 + - 56 END THEN - - 52 + - COUNT ( * ) / - 48 * 56 END ) + 5 + + 61 * + 86 + + 34
----
NULL

query I rowsort
SELECT 64 * + 14 - + - 40
----
936

query I rowsort
SELECT NULLIF ( + - 82, + 99 ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT - 55 - - COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-1729
SELECT - 55 - - COUNT ( * ) AS col1
----
-54

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1731
SELECT - CAST( NULL AS DECIMAL ) * 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1731
SELECT - CAST ( NULL AS REAL ) * 89 AS col2
----
NULL

query I rowsort
SELECT ALL 12 * - 45 + - - 36
----
-504

query II rowsort
SELECT + 95, 60 AS col1
----
95
60

query I rowsort
SELECT - 96 + - 98
----
-194

query I rowsort
SELECT ALL ( 75 ) col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1736
SELECT - ( - 41 ) * + COALESCE ( - 80, + 87, - - ( 7 ) * 82 ) + - + 60 + - CAST( NULL AS SIGNED ) col2, + 20 + - ( + - 84 )
----
NULL
104

skipif mysql # not compatible
query II rowsort label-1736
SELECT - ( - 41 ) * + COALESCE ( - 80, + 87, - - ( 7 ) * 82 ) + - + 60 + - CAST ( NULL AS INTEGER ) col2, + 20 + - ( + - 84 )
----
NULL
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1737
SELECT DISTINCT CAST( + MIN( DISTINCT - 73 ) AS SIGNED ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT CAST ( + MIN ( DISTINCT - 73 ) AS INTEGER ) col0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-1738
SELECT - 60 DIV + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1738
SELECT - 60 / + 75 AS col1
----
0

query I rowsort
SELECT + 65 + 66 + 76
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT ALL CAST( 56 AS SIGNED ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL CAST ( 56 AS INTEGER ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT + COUNT( * ) + NULLIF ( + + 49, COUNT( * ) * - - 36 ) * MAX( ALL 93 ) * + + 98 * + + 34
----
15183925

skipif mysql # not compatible
query I rowsort label-1741
SELECT + COUNT ( * ) + NULLIF ( + + 49, COUNT ( * ) * - - 36 ) * MAX ( ALL 93 ) * + + 98 * + + 34
----
15183925

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT - MAX( DISTINCT - + 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1742
SELECT - MAX ( DISTINCT - + 57 ) AS col2
----
57

query I rowsort
SELECT ALL 24 + 76 - + - 53 AS col0
----
153

query I rowsort
SELECT DISTINCT 82 * + 19
----
1558

onlyif mysql # DIV for integer division: 
query II rowsort label-1745
SELECT 46 AS col1, - 21 DIV - + 33
----
46
0

skipif mysql # not compatible
query II rowsort label-1745
SELECT 46 AS col1, - 21 / - + 33
----
46
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1746
SELECT ALL + CAST( NULL AS SIGNED ) * + MIN( DISTINCT + + ( 23 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL + CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT + + ( 23 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT DISTINCT - - COUNT( + 2 ) - 28 * - - 60 AS col0
----
-1679

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT - - COUNT ( + 2 ) - 28 * - - 60 AS col0
----
-1679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1748
SELECT ALL COALESCE ( + CAST( - 47 AS SIGNED ), + + 33, + + 38 ), 63 * - COUNT( + - 80 ) + + + CAST( - 98 AS SIGNED ) AS col1
----
-47
-161

skipif mysql # not compatible
query II rowsort label-1748
SELECT ALL COALESCE ( + CAST ( - 47 AS INTEGER ), + + 33, + + 38 ), 63 * - COUNT ( + - 80 ) + + + CAST ( - 98 AS INTEGER ) AS col1
----
-47
-161

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

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

query I rowsort
SELECT DISTINCT + + ( - + 41 ) * - - 47
----
-1927

onlyif mysql # aggregate syntax: 
query II rowsort label-1751
SELECT - - MAX( ALL - NULLIF ( 15, - 16 ) ) - 34 + - 25 AS col2, 29 AS col2
----
-74
29

skipif mysql # not compatible
query II rowsort label-1751
SELECT - - MAX ( ALL - NULLIF ( 15, - 16 ) ) - 34 + - 25 AS col2, 29 AS col2
----
-74
29

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

query II rowsort
SELECT + 91, 95 AS col0
----
91
95

query I rowsort
SELECT + 47 + + 63
----
110

query II rowsort
SELECT DISTINCT + 76 * - 68 + + 60, - 2 + 23 * + 52 + + - COALESCE ( + 45, + + 48, 30 * 98 ) + - 92 AS col2
----
-5108
1057

onlyif mysql # DIV for integer division: 
query I rowsort label-1756
SELECT ALL 65 DIV + - 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL 65 / + - 78 col0
----
0

query I rowsort
SELECT + ( + - COALESCE ( 90, - 6 + 63, - 35, - 21 ) )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1758
SELECT + 41 / + + CAST( NULL AS SIGNED ) / + - ( COUNT( * ) ) - - 25 - 8 * + 56 * - 63 * 80 * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT + 41 / + + CAST ( NULL AS INTEGER ) / + - ( COUNT ( * ) ) - - 25 - 8 * + 56 * - 63 * 80 * - 1
----
NULL

query I rowsort
SELECT DISTINCT CASE - ( - 51 ) WHEN + 0 THEN - 6 * + 32 WHEN + + 83 + + 22 THEN + 13 END + + ( - + 86 ) * + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1760
SELECT + 30 AS col0, 6 DIV - 36 * + COUNT( * ) * - + 91 + - - COUNT( * ) - - 31 * 21 * 78 AS col2
----
30
50779

skipif mysql # not compatible
query II rowsort label-1760
SELECT + 30 AS col0, 6 / - 36 * + COUNT ( * ) * - + 91 + - - COUNT ( * ) - - 31 * 21 * 78 AS col2
----
30
50779

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT 31 + - COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1761
SELECT 31 + - COUNT ( * ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT ALL - CASE - + CASE + + 69 WHEN + 0 + + 53 THEN + + 44 WHEN - - SUM( 60 ) * + 49 / - - 26 * - + 89 THEN NULL ELSE NULL END WHEN + 7 * SUM( - 28 ) - COUNT( * ) * - - 20 * + 31 THEN - + 12 / - ( - 43 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL - CASE - + CASE + + 69 WHEN + 0 + + 53 THEN + + 44 WHEN - - SUM ( 60 ) * + 49 / - - 26 * - + 89 THEN NULL ELSE NULL END WHEN + 7 * SUM ( - 28 ) - COUNT ( * ) * - - 20 * + 31 THEN - + 12 / - ( - 43 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT DISTINCT 67 + + + 56 - - COUNT( * ) + + NULLIF ( + 29, + 43 )
----
153

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT 67 + + + 56 - - COUNT ( * ) + + NULLIF ( + 29, + 43 )
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT DISTINCT COUNT( * ) + - - 84 * + 42 col2
----
3529

skipif mysql # not compatible
query I rowsort label-1764
SELECT DISTINCT COUNT ( * ) + - - 84 * + 42 col2
----
3529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1765
SELECT ALL - CAST( - 23 AS SIGNED ) + + ( + COUNT( * ) ) - + 31 * + 60 AS col2
----
-1836

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL - CAST ( - 23 AS INTEGER ) + + ( + COUNT ( * ) ) - + 31 * + 60 AS col2
----
-1836

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

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

query II rowsort
SELECT 13 AS col1, + 32 + + 78
----
13
110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT - 8 * + - 49 * + ( - 78 ) * - 65 - 94 + ( + COUNT( * ) )
----
1987347

skipif mysql # not compatible
query I rowsort label-1769
SELECT - 8 * + - 49 * + ( - 78 ) * - 65 - 94 + ( + COUNT ( * ) )
----
1987347

query II rowsort
SELECT + 5 AS col2, + 47 * - 48 + 26
----
5
-2230

query I rowsort
SELECT 37 - + + 14
----
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1772
SELECT ALL - CAST( + - 87 AS SIGNED ) * ( - + 93 ) DIV + - 9 + 22 AS col1, + 79 AS col0
----
921
79

skipif mysql # not compatible
query II rowsort label-1772
SELECT ALL - CAST ( + - 87 AS INTEGER ) * ( - + 93 ) / + - 9 + 22 AS col1, + 79 AS col0
----
921
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT DISTINCT + COUNT( * ) - - 45
----
46

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT + COUNT ( * ) - - 45
----
46

query I rowsort
SELECT 36 + - 18 AS col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1775
SELECT - ( + ( - 3 ) ) DIV - 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1775
SELECT - ( + ( - 3 ) ) / - 15 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT DISTINCT - - ( + 50 ) DIV 35
----
1

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT - - ( + 50 ) / 35
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT - 39 + SUM( - + 25 )
----
-64

skipif mysql # not compatible
query I rowsort label-1777
SELECT - 39 + SUM ( - + 25 )
----
-64

query I rowsort
SELECT - 53 + + 58
----
5

query I rowsort
SELECT ALL + 47 * - - 65
----
3055

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT - COALESCE ( - 50, - MIN( DISTINCT + 57 ) * - 26 + COUNT( * ) * - 38 + - 7 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1780
SELECT - COALESCE ( - 50, - MIN ( DISTINCT + 57 ) * - 26 + COUNT ( * ) * - 38 + - 7 ) AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1781
SELECT ALL - - 19 * - NULLIF ( + - 33, + 23 ) - - 93 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL - - 19 * - NULLIF ( + - 33, + 23 ) - - 93 + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 11 * - ( + - 60 )
----
-660

query I rowsort
SELECT ALL 95 + + + 71
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-1784
SELECT 31 DIV 51 * 7 + + 79 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1784
SELECT 31 / 51 * 7 + + 79 AS col0
----
79

query I rowsort
SELECT + 48 * 71 AS col2
----
3408

query I rowsort
SELECT DISTINCT - 20 + - 48
----
-68

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

skipif mysql # not compatible
query I rowsort label-1787
SELECT SUM ( ALL - - 95 )
----
95

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

skipif mysql # not compatible
query I rowsort label-1788
SELECT + MAX ( - + 24 )
----
-24

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

skipif mysql # not compatible
query I rowsort label-1789
SELECT MAX ( + 66 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1790
SELECT ALL 14 + 26 DIV + 74 * MAX( DISTINCT + ( - - 88 ) )
----
14

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL 14 + 26 / + 74 * MAX ( DISTINCT + ( - - 88 ) )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1791
SELECT 12 + - COALESCE ( COALESCE ( + COUNT( ALL - CAST( NULL AS SIGNED ) ), 5 ), + 66 + + 76 * - 50 )
----
12

skipif mysql # not compatible
query I rowsort label-1791
SELECT 12 + - COALESCE ( COALESCE ( + COUNT ( ALL - CAST ( NULL AS INTEGER ) ), 5 ), + 66 + + 76 * - 50 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1792
SELECT DISTINCT 26 + + 64 + + + MAX( 54 ) + - 52 DIV - 25 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT 26 + + 64 + + + MAX ( 54 ) + - 52 / - 25 AS col0
----
146

query I rowsort
SELECT ALL 61 * 78 AS col0
----
4758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1794
SELECT ALL CAST( 43 AS SIGNED ) * 15 * 93 - 36 * - 16
----
60561

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL CAST ( 43 AS INTEGER ) * 15 * 93 - 36 * - 16
----
60561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1795
SELECT ALL COALESCE ( - CAST( NULL AS SIGNED ), - 59 * + ( 23 ), + 36 * - - ( - - CAST( 31 AS SIGNED ) ) + + 71 + - 73 * CAST( + 8 AS SIGNED ) DIV - 27 + - - 35 + - - 87 + - COUNT( * ) - - SUM( ALL 71 ) * 57 * 6 ) - 86 + + + COUNT( + CAST( NULL AS SIGNED ) ) AS col2
----
-1443

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL COALESCE ( - CAST ( NULL AS INTEGER ), - 59 * + ( 23 ), + 36 * - - ( - - CAST ( 31 AS INTEGER ) ) + + 71 + - 73 * CAST ( + 8 AS INTEGER ) / - 27 + - - 35 + - - 87 + - COUNT ( * ) - - SUM ( ALL 71 ) * 57 * 6 ) - 86 + + + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2
----
-1443

query I rowsort
SELECT ( 69 ) + + 54 + 4
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1797
SELECT ALL - 57 * CAST( + 74 AS SIGNED ) col0
----
-4218

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL - 57 * CAST ( + 74 AS INTEGER ) col0
----
-4218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1798
SELECT + COUNT( * ) * - + COUNT( * ) * + COALESCE ( COUNT( * ), ( - - NULLIF ( + 91, 94 / - - 57 - + ( - 75 ) - - + 68 / 75 * + + 96 / + COUNT( DISTINCT + ( 40 ) ) + - - NULLIF ( + 7, 20 / + 5 ) * ( 51 ) / + 52 * - CAST( + COALESCE ( + 96, 90 ) AS SIGNED ) / + 47 + - 63 ) ) + - + CAST( + 43 AS SIGNED ) + 8 * + - COALESCE ( - 97, + - 95 * CAST( NULL AS SIGNED ) ), + 33 * + 33 ) * + - 49 + 87 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-1798
SELECT + COUNT ( * ) * - + COUNT ( * ) * + COALESCE ( COUNT ( * ), ( - - NULLIF ( + 91, 94 / - - 57 - + ( - 75 ) - - + 68 / 75 * + + 96 / + COUNT ( DISTINCT + ( 40 ) ) + - - NULLIF ( + 7, 20 / + 5 ) * ( 51 ) / + 52 * - CAST ( + COALESCE ( + 96, 90 ) AS INTEGER ) / + 47 + - 63 ) ) + - + CAST ( + 43 AS INTEGER ) + 8 * + - COALESCE ( - 97, + - 95 * CAST ( NULL AS INTEGER ) ), + 33 * + 33 ) * + - 49 + 87 AS col2
----
136

query I rowsort
SELECT 64 * + - 40 - 30 AS col0
----
-2590

query I rowsort
SELECT ALL 54 * + 48 AS col1
----
2592

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1802
SELECT ALL ( + 63 ) AS col1, COUNT( * ) * - + 15 * ( 34 ) AS col0
----
63
-510

skipif mysql # not compatible
query II rowsort label-1802
SELECT ALL ( + 63 ) AS col1, COUNT ( * ) * - + 15 * ( 34 ) AS col0
----
63
-510

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1804
SELECT - MAX( DISTINCT - 40 ) DIV + 97, - 60 AS col0
----
0
-60

skipif mysql # not compatible
query II rowsort label-1804
SELECT - MAX ( DISTINCT - 40 ) / + 97, - 60 AS col0
----
0
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1805
SELECT - CAST( NULL AS SIGNED ) - - COALESCE ( + 43, CAST( - + CAST( - 75 AS SIGNED ) AS SIGNED ) * + COUNT( * ), + 5, - + 90 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT - CAST ( NULL AS INTEGER ) - - COALESCE ( + 43, CAST ( - + CAST ( - 75 AS INTEGER ) AS INTEGER ) * + COUNT ( * ), + 5, - + 90 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1806
SELECT - 53 - + COUNT( * ) DIV + 41 * - 90
----
-53

skipif mysql # not compatible
query I rowsort label-1806
SELECT - 53 - + COUNT ( * ) / + 41 * - 90
----
-53

query I rowsort
SELECT - + CASE - 48 WHEN - + 24 THEN + 4 * + 43 + 17 + - 41 * - 51 END / - 97 AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( 32, + 65 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1809
SELECT ALL + COUNT( * ) + - 67, 69 * + 47 col1
----
-66
3243

skipif mysql # not compatible
query II rowsort label-1809
SELECT ALL + COUNT ( * ) + - 67, 69 * + 47 col1
----
-66
3243

query I rowsort
SELECT ALL + 0 * - - 59 + + 65 col2
----
65

query II rowsort
SELECT - 79 - - 84 * - + 83 col2, + 2
----
-7051
2

query I rowsort
SELECT ALL - NULLIF ( - NULLIF ( 70, + 22 ), + + 96 ) * + 13
----
910

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT - 94 * + 58 - - COUNT( * ) AS col0
----
-5451

skipif mysql # not compatible
query I rowsort label-1814
SELECT - 94 * + 58 - - COUNT ( * ) AS col0
----
-5451

query I rowsort
SELECT DISTINCT - 15 * + 69 * + - 92 * ( + - 50 ) col2
----
-4761000

query I rowsort
SELECT ALL - 23 * - 52 - 2 + 10
----
1204

query I rowsort
SELECT - 43 * - - 13 * + 32 AS col2
----
-17888

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT CASE + + 57 WHEN - MIN( ALL + - CASE + 67 WHEN - ( 77 ) THEN 95 END ) * + - 84 + + 43 * COALESCE ( COUNT( * ), COALESCE ( 25, + 65 - - + COUNT( * ) + + COALESCE ( + - 61, + 74 / - - 54 - - 56 ) ) ) * + MIN( DISTINCT - 41 ) + + + 61 + - 38 THEN + - 44 ELSE 81 + 66 * + 30 * - + 1 END AS col0
----
-1899

skipif mysql # not compatible
query I rowsort label-1818
SELECT CASE + + 57 WHEN - MIN ( ALL + - CASE + 67 WHEN - ( 77 ) THEN 95 END ) * + - 84 + + 43 * COALESCE ( COUNT ( * ), COALESCE ( 25, + 65 - - + COUNT ( * ) + + COALESCE ( + - 61, + 74 / - - 54 - - 56 ) ) ) * + MIN ( DISTINCT - 41 ) + + + 61 + - 38 THEN + - 44 ELSE 81 + 66 * + 30 * - + 1 END AS col0
----
-1899

query I rowsort
SELECT - 13 * 61
----
-793

onlyif mysql # DIV for integer division: 
query II rowsort label-1820
SELECT DISTINCT + 69 AS col2, 74 DIV - 22 + - - ( 96 )
----
69
93

skipif mysql # not compatible
query II rowsort label-1820
SELECT DISTINCT + 69 AS col2, 74 / - 22 + - - ( 96 )
----
69
93

query I rowsort
SELECT CASE 77 WHEN - 96 THEN + + 71 * + + 29 WHEN - 13 THEN NULL END
----
NULL

query II rowsort
SELECT + 76 * - ( - 11 ) AS col2, + COALESCE ( + + 44, + 22 ) * 30 + + 39 AS col1
----
836
1359

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

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

query I rowsort
SELECT ALL - 45 * + ( + 14 ) + - + 23 AS col0
----
-653

query I rowsort
SELECT DISTINCT + 69 * - - 23
----
1587

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1826
SELECT ALL 70 AS col0, + CASE NULLIF ( - 52, 7 ) WHEN 87 * + + 41 THEN NULL WHEN - + COUNT( * ) THEN - - NULLIF ( - 6, - 65 ) ELSE - 76 DIV - - 9 * + COUNT( * ) END
----
70
-8

skipif mysql # not compatible
query II rowsort label-1826
SELECT ALL 70 AS col0, + CASE NULLIF ( - 52, 7 ) WHEN 87 * + + 41 THEN NULL WHEN - + COUNT ( * ) THEN - - NULLIF ( - 6, - 65 ) ELSE - 76 / - - 9 * + COUNT ( * ) END
----
70
-8

query I rowsort
SELECT DISTINCT + 19 + 11 + 35
----
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1828
SELECT DISTINCT - 44 + 98 + - - COUNT( * ) * COUNT( * ) - - CAST( NULL AS DECIMAL ) + - 4 * COUNT( - - 46 ) * - + 20 + + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT - 44 + 98 + - - COUNT ( * ) * COUNT ( * ) - - CAST ( NULL AS REAL ) + - 4 * COUNT ( - - 46 ) * - + 20 + + - 60
----
NULL

query II rowsort
SELECT + - 80 + + - 97 * + 51, 66 AS col1
----
-5027
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1830
SELECT MIN( - + ( + ( - 41 ) ) ), ( 85 ) col1
----
41
85

skipif mysql # not compatible
query II rowsort label-1830
SELECT MIN ( - + ( + ( - 41 ) ) ), ( 85 ) col1
----
41
85

query I rowsort
SELECT - + 0 - + 89 col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT - - 25 - - - MIN( - 37 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-1832
SELECT - - 25 - - - MIN ( - 37 ) col0
----
62

query I rowsort
SELECT ALL + 50 + - 18 + - 44 AS col2
----
-12

query I rowsort
SELECT DISTINCT - 92 + - + 0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT DISTINCT COUNT( * ) + - 39 * + 96 AS col1
----
-3743

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT COUNT ( * ) + - 39 * + 96 AS col1
----
-3743

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

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

query I rowsort
SELECT + 61 + - 83 + - - 29
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1838
SELECT 65 DIV + + 68 + 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1838
SELECT 65 / + + 68 + 83 AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1839
SELECT - COUNT( * ) * + 21 DIV 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1839
SELECT - COUNT ( * ) * + 21 / 50 AS col2
----
0

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

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

query I rowsort
SELECT - 7 + + 75 AS col2
----
68

query I rowsort
SELECT DISTINCT + 57 * - - 76 col0
----
4332

query I rowsort
SELECT DISTINCT + 84 * + - 77
----
-6468

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT - 53 * MIN( - 14 ) col2
----
742

skipif mysql # not compatible
query I rowsort label-1844
SELECT - 53 * MIN ( - 14 ) col2
----
742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1845
SELECT + 57 DIV COALESCE ( 46, + + 72 * + COUNT( * ) - - + ( 56 ) - - - 1 ) DIV + COUNT( * ) + - + 2 + + 46 + - 1 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1845
SELECT + 57 / COALESCE ( 46, + + 72 * + COUNT ( * ) - - + ( 56 ) - - - 1 ) / + COUNT ( * ) + - + 2 + + 46 + - 1 AS col1
----
44

query I rowsort
SELECT - 71 + 37 + + 95
----
61

query I rowsort
SELECT + 53 + - 34 AS col0
----
19

query II rowsort
SELECT + ( + 85 ) col2, - 36
----
85
-36

query II rowsort
SELECT ALL + ( - + 0 ) AS col2, 4
----
0
4

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

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

query I rowsort
SELECT 11 + + 21
----
32

query I rowsort
SELECT ALL + 81 + + 19 AS col0
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1853
SELECT - COUNT( * ) + + 4 DIV - - NULLIF ( - - 11, + NULLIF ( COUNT( * ), - + 16 ) ) col1, - COUNT( * ) * + - 71 * - 65
----
-1
-4615

skipif mysql # not compatible
query II rowsort label-1853
SELECT - COUNT ( * ) + + 4 / - - NULLIF ( - - 11, + NULLIF ( COUNT ( * ), - + 16 ) ) col1, - COUNT ( * ) * + - 71 * - 65
----
-1
-4615

onlyif mysql # aggregate syntax: 
query II rowsort label-1854
SELECT DISTINCT + SUM( DISTINCT + + 78 ) * - 47 + - 82 * + 78 * 23 * + 52 col2, 61 * - 38
----
-7653282
-2318

skipif mysql # not compatible
query II rowsort label-1854
SELECT DISTINCT + SUM ( DISTINCT + + 78 ) * - 47 + - 82 * + 78 * 23 * + 52 col2, 61 * - 38
----
-7653282
-2318

query I rowsort
SELECT DISTINCT + 48 + - 28 - - 18
----
38

query I rowsort
SELECT ALL - 90 + - 96 AS col1
----
-186

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT ALL + COUNT( * ) + - 80 + + + 62
----
-17

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL + COUNT ( * ) + - 80 + + + 62
----
-17

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

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

query I rowsort
SELECT DISTINCT 47 * + 69 col0
----
3243

query I rowsort
SELECT + 91 + + 90 - + 39
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1862
SELECT CAST( NULL AS SIGNED ) / 97 col2, NULLIF ( + + 4, - 86 )
----
NULL
4

skipif mysql # not compatible
query II rowsort label-1862
SELECT CAST ( NULL AS INTEGER ) / 97 col2, NULLIF ( + + 4, - 86 )
----
NULL
4

query I rowsort
SELECT 72 + 69 + - - NULLIF ( - 96, - 32 )
----
45

query II rowsort
SELECT 60 * 21 AS col1, 55 * - 66
----
1260
-3630

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT ALL COUNT( * ) * - - 30 * - COUNT( * ) * + + 76 + + ( + 25 ) col2
----
-2255

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL COUNT ( * ) * - - 30 * - COUNT ( * ) * + + 76 + + ( + 25 ) col2
----
-2255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1867
SELECT DISTINCT - 41 - + 98 * - + ( - + COUNT( * ) ) AS col0, + CAST( NULL AS SIGNED ) AS col2
----
-139
NULL

skipif mysql # not compatible
query II rowsort label-1867
SELECT DISTINCT - 41 - + 98 * - + ( - + COUNT ( * ) ) AS col0, + CAST ( NULL AS INTEGER ) AS col2
----
-139
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT DISTINCT CASE COUNT( * ) WHEN 47 THEN + ( + - 53 ) WHEN ( - + MAX( + 15 ) ) THEN - - NULLIF ( - 91, - + 19 * + 10 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT CASE COUNT ( * ) WHEN 47 THEN + ( + - 53 ) WHEN ( - + MAX ( + 15 ) ) THEN - - NULLIF ( - 91, - + 19 * + 10 ) ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1869
SELECT ALL + 13 - - COUNT( * ) AS col0, 44 * - - COUNT( * ) col2
----
14
44

skipif mysql # not compatible
query II rowsort label-1869
SELECT ALL + 13 - - COUNT ( * ) AS col0, 44 * - - COUNT ( * ) col2
----
14
44

query I rowsort
SELECT 5 - - 43
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT NULLIF ( - - 29, 5 + - 28 + - 28 + - ( - COUNT( * ) ) / + 99 ) - - 39 + - MIN( - + 9 ) - + - COALESCE ( + COUNT( * ), + MAX( 79 ) ) - 26 * - 43 AS col1
----
1196

skipif mysql # not compatible
query I rowsort label-1871
SELECT NULLIF ( - - 29, 5 + - 28 + - 28 + - ( - COUNT ( * ) ) / + 99 ) - - 39 + - MIN ( - + 9 ) - + - COALESCE ( + COUNT ( * ), + MAX ( 79 ) ) - 26 * - 43 AS col1
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL ( - + COUNT( * ) ) * + 83 * - - 34
----
-2822

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL ( - + COUNT ( * ) ) * + 83 * - - 34
----
-2822

query I rowsort
SELECT ( 71 ) * - - 33 * NULLIF ( + - 53, - - 83 )
----
-124179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1874
SELECT 56 + - MAX( ALL + 65 ) * - 13 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT 56 + - MAX ( ALL + 65 ) * - 13 + + CAST ( NULL AS INTEGER )
----
NULL

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

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

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

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

query I rowsort
SELECT ALL ( + 45 ) * - 52 AS col2
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT 50 - ( 64 ) + - - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-1878
SELECT 50 - ( 64 ) + - - COUNT ( * )
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT 80 * - 59 - 93 DIV + 88
----
-4721

skipif mysql # not compatible
query I rowsort label-1879
SELECT 80 * - 59 - 93 / + 88
----
-4721

query I rowsort
SELECT 65 * + 77 AS col2
----
5005

query I rowsort
SELECT 36 * + 55
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT 75 * COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1882
SELECT 75 * COUNT ( * ) AS col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1883
SELECT + NULLIF ( CAST( NULL AS SIGNED ), + - 50 ) * - - 66 + + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1883
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), + - 50 ) * - - 66 + + 71 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1884
SELECT 55 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-1884
SELECT 55 / + 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT 91 + 90 + + 24 + - NULLIF ( + + COUNT( * ), - MIN( DISTINCT + + 94 ) + + 63 + + - 79 * + + 98 ) AS col1
----
204

skipif mysql # not compatible
query I rowsort label-1885
SELECT 91 + 90 + + 24 + - NULLIF ( + + COUNT ( * ), - MIN ( DISTINCT + + 94 ) + + 63 + + - 79 * + + 98 ) AS col1
----
204

query II rowsort
SELECT ALL - 99 + - - ( + 13 ) AS col0, - 67 * - 64 * + - 79
----
-86
-338752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1887
SELECT ALL - - 72 + 13 - - + CAST( - + 1 AS SIGNED ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL - - 72 + 13 - - + CAST ( - + 1 AS INTEGER ) AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1888
SELECT DISTINCT - - 22 + - + COALESCE ( + + COALESCE ( + 35, 94, - 93 * + 78 - + 47 ), - CASE 21 WHEN + + 91 * - 62 + 23 THEN NULL WHEN - ( - 21 ) THEN - + 60 ELSE NULL END ) DIV + COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1888
SELECT DISTINCT - - 22 + - + COALESCE ( + + COALESCE ( + 35, 94, - 93 * + 78 - + 47 ), - CASE 21 WHEN + + 91 * - 62 + 23 THEN NULL WHEN - ( - 21 ) THEN - + 60 ELSE NULL END ) / + COUNT ( * ) AS col1
----
-13

query I rowsort
SELECT ALL + - 60 + - 26 AS col0
----
-86

query II rowsort
SELECT 39 * + - 54 + + 81 AS col0, 72 col0
----
-2025
72

query I rowsort
SELECT - ( - 82 )
----
82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1893
SELECT ALL - 8, + 79 * - ( + COUNT( * ) ) AS col0
----
-8
-79

skipif mysql # not compatible
query II rowsort label-1893
SELECT ALL - 8, + 79 * - ( + COUNT ( * ) ) AS col0
----
-8
-79

query I rowsort
SELECT 95 * + - 22 * - 47
----
98230

query I rowsort
SELECT 97 + + 73
----
170

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

query I rowsort
SELECT ALL - 3 - + + ( + 52 ) - - 85 * + 26 * + 54 + + + 6 AS col0
----
119291

query I rowsort
SELECT ALL - 54 * - 73
----
3942

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

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

query I rowsort
SELECT ALL - 43 - + 54 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT 54 * - CASE 94 WHEN - 51 * + + 73 THEN 36 * + - 66 WHEN 13 THEN NULL END * + COUNT( * ) / 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1901
SELECT 54 * - CASE 94 WHEN - 51 * + + 73 THEN 36 * + - 66 WHEN 13 THEN NULL END * + COUNT ( * ) / 87 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1902
SELECT 97 * - + CAST( ( - 1 ) AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-1902
SELECT 97 * - + CAST ( ( - 1 ) AS INTEGER )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ( - 3 ) + - COALESCE ( + COUNT( * ), 5 * 39 * + 5 ) * - 4 * + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1903
SELECT ( - 3 ) + - COALESCE ( + COUNT ( * ), 5 * 39 * + 5 ) * - 4 * + + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT - 22 + COUNT( * ) * - 81 + + 30 + + 26
----
-47

skipif mysql # not compatible
query I rowsort label-1904
SELECT - 22 + COUNT ( * ) * - 81 + + 30 + + 26
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1905
SELECT ALL 61 * + + NULLIF ( - 69, - + MIN( - - 18 ) ) DIV - 3
----
1403

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL 61 * + + NULLIF ( - 69, - + MIN ( - - 18 ) ) / - 3
----
1403

query I rowsort
SELECT ALL 14 * - 80 AS col1
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT 21 * + 8 * + + ( - - ( COUNT( * ) ) )
----
168

skipif mysql # not compatible
query I rowsort label-1907
SELECT 21 * + 8 * + + ( - - ( COUNT ( * ) ) )
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT COUNT( * ) + - - 45 * + 91
----
4096

skipif mysql # not compatible
query I rowsort label-1908
SELECT COUNT ( * ) + - - 45 * + 91
----
4096

query I rowsort
SELECT ( - 15 ) - - 42
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1910
SELECT ALL CAST( NULL AS SIGNED ) - - - CAST( NULLIF ( + - 57, - CAST( - 75 AS SIGNED ) / + - 16 * - 44 - - + 35 - + 14 + - 27 - - 89 / - 99 * - ( + COUNT( * ) ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL CAST ( NULL AS INTEGER ) - - - CAST ( NULLIF ( + - 57, - CAST ( - 75 AS INTEGER ) / + - 16 * - 44 - - + 35 - + 14 + - 27 - - 89 / - 99 * - ( + COUNT ( * ) ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT ALL 84 DIV 41 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL 84 / 41 AS col1
----
2

query I rowsort
SELECT ALL COALESCE ( 72, + 52 + + + 12 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT ( COUNT( * ) ) + - + 77 + - SUM( - - 21 ) + MIN( ALL - - 79 ) * 2
----
61

skipif mysql # not compatible
query I rowsort label-1913
SELECT ( COUNT ( * ) ) + - + 77 + - SUM ( - - 21 ) + MIN ( ALL - - 79 ) * 2
----
61

query II rowsort
SELECT DISTINCT 93 col0, - 7 AS col2
----
93
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1915
SELECT DISTINCT 50, CASE + - 83 WHEN CAST( - - 76 AS SIGNED ) * - ( + - ( - - 71 ) ) THEN NULL ELSE + ( + - 65 ) / + ( + COALESCE ( - - ( + 49 ), + 19 - - 48 + - MIN( ALL - - CAST( + 30 AS DECIMAL ) ) + 81 ) ) + + - 98 * + - 90 / - - 48 END + - NULLIF ( - 81, + 28 ) + - + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) / + 70 AS col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-1915
SELECT DISTINCT 50, CASE + - 83 WHEN CAST ( - - 76 AS INTEGER ) * - ( + - ( - - 71 ) ) THEN NULL ELSE + ( + - 65 ) / + ( + COALESCE ( - - ( + 49 ), + 19 - - 48 + - MIN ( ALL - - CAST ( + 30 AS REAL ) ) + 81 ) ) + + - 98 * + - 90 / - - 48 END + - NULLIF ( - 81, + 28 ) + - + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) / + 70 AS col2
----
50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT DISTINCT 74 * + - COUNT( * ) + - 82 AS col1
----
-156

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT 74 * + - COUNT ( * ) + - 82 AS col1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ALL 94 * MIN( + COALESCE ( - 87, + 67 - + + 25 ) )
----
-8178

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL 94 * MIN ( + COALESCE ( - 87, + 67 - + + 25 ) )
----
-8178

query I rowsort
SELECT ALL 68 * + ( 65 ) + + 73 * + 65 AS col0
----
9165

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

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL COUNT ( * ) * + 97 + + COUNT ( * ) AS col1
----
98

query I rowsort
SELECT DISTINCT 42 * - ( 34 ) + - 49 AS col0
----
-1477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1921
SELECT ALL + + 54 AS col1, MAX( + 82 ) + - - COUNT( - - 14 ) + ( + CAST( NULL AS SIGNED ) ) / + COUNT( * ) + 55 - + 6
----
54
NULL

skipif mysql # not compatible
query II rowsort label-1921
SELECT ALL + + 54 AS col1, MAX ( + 82 ) + - - COUNT ( - - 14 ) + ( + CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) + 55 - + 6
----
54
NULL

query I rowsort
SELECT 54 * - ( + 39 ) + + 90 AS col0
----
-2016

query II rowsort
SELECT - 66, 58 + + 99 AS col2
----
-66
157

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1925
SELECT + 77 + 3 AS col1, 3 + - 17 DIV - 65 + + 30
----
80
33

skipif mysql # not compatible
query II rowsort label-1925
SELECT + 77 + 3 AS col1, 3 + - 17 / - 65 + + 30
----
80
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1926
SELECT ALL - 98 DIV SUM( - - ( + 27 ) ) + + MAX( 27 ) - + 22 * - - CAST( + + ( + - 94 ) AS SIGNED ) AS col1
----
2092

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL - 98 / SUM ( - - ( + 27 ) ) + + MAX ( 27 ) - + 22 * - - CAST ( + + ( + - 94 ) AS INTEGER ) AS col1
----
2092

onlyif mysql # DIV for integer division: 
query I rowsort label-1927
SELECT DISTINCT - 65 DIV - - 75 * + 42 col1
----
0

skipif mysql # not compatible
query I rowsort label-1927
SELECT DISTINCT - 65 / - - 75 * + 42 col1
----
0

query I rowsort
SELECT ALL - 3 * + 55 - - 39
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT ALL - COUNT( * ) * + 91 * 67
----
-6097

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL - COUNT ( * ) * + 91 * 67
----
-6097

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1931
SELECT ALL + COALESCE ( 37, MAX( + CAST( + COALESCE ( + 0, - NULLIF ( + + 36, 41 ) ) AS SIGNED ) ), - ( ( + 48 ) ) ) DIV + - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL + COALESCE ( 37, MAX ( + CAST ( + COALESCE ( + 0, - NULLIF ( + + 36, 41 ) ) AS INTEGER ) ), - ( ( + 48 ) ) ) / + - COUNT ( * )
----
-37

query II rowsort
SELECT + + 58, 20 col2
----
58
20

query I rowsort
SELECT DISTINCT - 13 * - 15 AS col0
----
195

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1935
SELECT 9, COUNT( * ) * 65 AS col2
----
9
65

skipif mysql # not compatible
query II rowsort label-1935
SELECT 9, COUNT ( * ) * 65 AS col2
----
9
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT - 76 * - ( + 10 ) * COUNT( * ) * + 41
----
31160

skipif mysql # not compatible
query I rowsort label-1936
SELECT - 76 * - ( + 10 ) * COUNT ( * ) * + 41
----
31160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1937
SELECT ALL 97 AS col2, COALESCE ( - + 89, + + 44 DIV - + 20 ) + 99 + + 31 * + 38 - + 88 * - MIN( 3 )
----
97
1452

skipif mysql # not compatible
query II rowsort label-1937
SELECT ALL 97 AS col2, COALESCE ( - + 89, + + 44 / - + 20 ) + 99 + + 31 * + 38 - + 88 * - MIN ( 3 )
----
97
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT DISTINCT ( - MIN( DISTINCT + 75 ) ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT ( - MIN ( DISTINCT + 75 ) ) col0
----
-75

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

query I rowsort
SELECT - 14 * 84 * 88
----
-103488

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL COALESCE ( COUNT( * ), + + 32, - - 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL COALESCE ( COUNT ( * ), + + 32, - - 33 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT ALL 61 * + MAX( + 14 )
----
854

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL 61 * + MAX ( + 14 )
----
854

query I rowsort
SELECT - 84 + 45
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT - MIN( 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-1944
SELECT - MIN ( 56 )
----
-56

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

query I rowsort
SELECT - 31 - - ( ( + 8 ) )
----
-23

query I rowsort
SELECT - COALESCE ( 81, - - 82 ) AS col2
----
-81

query I rowsort
SELECT ALL - 7 * - - 42
----
-294

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

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

query I rowsort
SELECT DISTINCT 36 + + 96
----
132

query I rowsort
SELECT ALL + 8 * + + 82 * 54 AS col2
----
35424

query I rowsort
SELECT DISTINCT - 53 + - - 30 * + + ( 17 )
----
457

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT DISTINCT + 90 + + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT + 90 + + + COUNT ( * )
----
91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1955
SELECT CAST( - - 84 AS SIGNED ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-1955
SELECT CAST ( - - 84 AS INTEGER ) AS col2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1956
SELECT ALL 13 DIV ( + - 17 ) + - 5 + + + 33 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL 13 / ( + - 17 ) + - 5 + + + 33 AS col0
----
28

query II rowsort
SELECT - + 97 * + + 24 col1, 62
----
-2328
62

query I rowsort
SELECT ALL + NULLIF ( 53, 72 / 28 + 37 * + 83 ) AS col1
----
53

query I rowsort
SELECT DISTINCT 9 * - - 48 - 94
----
338

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT DISTINCT 36 * 1 + + ( - MAX( + - 73 ) )
----
109

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT 36 * 1 + + ( - MAX ( + - 73 ) )
----
109

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1964
SELECT DISTINCT + + MAX( DISTINCT 80 ), + 48 * + 41 col1
----
80
1968

skipif mysql # not compatible
query II rowsort label-1964
SELECT DISTINCT + + MAX ( DISTINCT 80 ), + 48 * + 41 col1
----
80
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT + 81 * COUNT( * ) * - - 67 AS col0
----
5427

skipif mysql # not compatible
query I rowsort label-1965
SELECT + 81 * COUNT ( * ) * - - 67 AS col0
----
5427

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT - CASE - 89 WHEN + COUNT( * ) THEN - 30 + - 78 WHEN - + 8 THEN NULL ELSE NULL END * - 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT - CASE - 89 WHEN + COUNT ( * ) THEN - 30 + - 78 WHEN - + 8 THEN NULL ELSE NULL END * - 96 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1967
SELECT - - NULLIF ( + 40, - - 99 ) - + + COUNT( * ) + - 19 DIV 14
----
38

skipif mysql # not compatible
query I rowsort label-1967
SELECT - - NULLIF ( + 40, - - 99 ) - + + COUNT ( * ) + - 19 / 14
----
38

query I rowsort
SELECT + + 46 + 28 AS col2
----
74

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1970
SELECT + - 71 + + 99, COUNT( * ) * - 91 AS col0
----
28
-91

skipif mysql # not compatible
query II rowsort label-1970
SELECT + - 71 + + 99, COUNT ( * ) * - 91 AS col0
----
28
-91

query I rowsort
SELECT ALL + 60 * 12
----
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1972
SELECT DISTINCT 96 DIV COUNT( * ) * - 81 col1
----
-7776

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT 96 / COUNT ( * ) * - 81 col1
----
-7776

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1974
SELECT DISTINCT NULLIF ( - 87, - - 68 DIV ( + + 51 ) - + 19 + + 91 - - 52 * - 47 * + COALESCE ( + + 21, + + 79, - COUNT( * ) + 16 ) * + 47 * + 11 * - 92 * - CAST( NULL AS SIGNED ) * - - 97 DIV + - 53 ) DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT NULLIF ( - 87, - - 68 / ( + + 51 ) - + 19 + + 91 - - 52 * - 47 * + COALESCE ( + + 21, + + 79, - COUNT ( * ) + 16 ) * + 47 * + 11 * - 92 * - CAST ( NULL AS INTEGER ) * - - 97 / + - 53 ) / + 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + COUNT( * ) * 45 + + - 65
----
-20

skipif mysql # not compatible
query I rowsort label-1975
SELECT + COUNT ( * ) * 45 + + - 65
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-1976
SELECT ALL COUNT( ALL ( 69 ) ), + 18 AS col0
----
1
18

skipif mysql # not compatible
query II rowsort label-1976
SELECT ALL COUNT ( ALL ( 69 ) ), + 18 AS col0
----
1
18

query I rowsort
SELECT DISTINCT 31 * - + 70 AS col1
----
-2170

query I rowsort
SELECT - 43 + + - 88
----
-131

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

skipif mysql # not compatible
query I rowsort label-1979
SELECT MAX ( + 63 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1980
SELECT ALL 79 * COUNT( CAST( ( - 15 ) AS SIGNED ) ) + - 92 + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL 79 * COUNT ( CAST ( ( - 15 ) AS INTEGER ) ) + - 92 + COUNT ( * )
----
-12

query I rowsort
SELECT ALL 48 * + 98 * - 42 * 8 + - 72
----
-1580616

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT + COUNT( * ) + - + MAX( DISTINCT 6 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1982
SELECT + COUNT ( * ) + - + MAX ( DISTINCT 6 ) AS col1
----
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT 49 + - COUNT( DISTINCT - 98 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1984
SELECT 49 + - COUNT ( DISTINCT - 98 ) AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1985
SELECT ALL + COUNT( * ) + + + 36 + - 16 / - 53 * + 24 * - CAST( NULL AS SIGNED ) / + 95 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL + COUNT ( * ) + + + 36 + - 16 / - 53 * + 24 * - CAST ( NULL AS INTEGER ) / + 95 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL - 40 + + 53 + 92 col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL + MIN( DISTINCT 13 ) * + 9 * - SUM( + 30 ) * 72
----
-252720

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL + MIN ( DISTINCT 13 ) * + 9 * - SUM ( + 30 ) * 72
----
-252720

query I rowsort
SELECT DISTINCT + 4 + - 34 col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT DISTINCT COUNT( * ) + 95 * + - 56 AS col1
----
-5319

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT COUNT ( * ) + 95 * + - 56 AS col1
----
-5319

query II rowsort
SELECT 65 * + 52 * 40 AS col2, 1
----
135200
1

query II rowsort
SELECT 46 AS col0, 19 * 42
----
46
798

query I rowsort
SELECT ALL + 77 * - + 10 AS col1
----
-770

query I rowsort
SELECT 71 + - 42
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT + MIN( ALL - + 0 ) + - 54 * + 90 AS col0
----
-4860

skipif mysql # not compatible
query I rowsort label-1994
SELECT + MIN ( ALL - + 0 ) + - 54 * + 90 AS col0
----
-4860

query I rowsort
SELECT CASE WHEN NOT NULL IS NULL THEN - AVG ( + 89 ) END / + 49
----
NULL

query II rowsort
SELECT ALL - + 3 col2, + 43
----
-3
43

query II rowsort
SELECT DISTINCT - NULLIF ( - + 2, - + 35 ) AS col0, 17
----
2
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1998
SELECT ALL - - COUNT( * ) col1, - 6 DIV 43 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-1998
SELECT ALL - - COUNT ( * ) col1, - 6 / 43 AS col0
----
1
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2000
SELECT ALL COUNT( * ) DIV - 60 + + + ( + ( 10 ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL COUNT ( * ) / - 60 + + + ( + ( 10 ) ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT - 69 * 95 + - 2 * - MIN( ALL 78 )
----
-6399

skipif mysql # not compatible
query I rowsort label-2001
SELECT - 69 * 95 + - 2 * - MIN ( ALL 78 )
----
-6399

query I rowsort
SELECT DISTINCT - NULLIF ( - 30, - 68 )
----
30

query I rowsort
SELECT + 82 * 0 * - + 55 * - 41 * + ( 33 ) + + 76 + 95 - - - 30 * + CASE - 69 WHEN 85 + + + 22 + 98 + + 63 * - - 29 / 53 / - - ( - + 77 ) THEN NULL WHEN - 51 THEN - + 37 * 71 END + 66
----
NULL

query I rowsort
SELECT - COALESCE ( - 38, 1 + + 57, 94 * - - 76 )
----
38

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2006
SELECT + ( - 34 ) * + NULLIF ( + + 26, - - NULLIF ( - + CAST( NULL AS DECIMAL ), + 55 ) ) + + + 22, 90 AS col0
----
-862
90

skipif mysql # not compatible
query II rowsort label-2006
SELECT + ( - 34 ) * + NULLIF ( + + 26, - - NULLIF ( - + CAST ( NULL AS REAL ), + 55 ) ) + + + 22, 90 AS col0
----
-862
90

onlyif mysql # aggregate syntax: 
query II rowsort label-2007
SELECT - SUM( ALL - 33 ) + - - 66 AS col0, 3 AS col0
----
99
3

skipif mysql # not compatible
query II rowsort label-2007
SELECT - SUM ( ALL - 33 ) + - - 66 AS col0, 3 AS col0
----
99
3

query I rowsort
SELECT ALL 28 * + + 53
----
1484

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT ALL - - ( MIN( DISTINCT 19 ) ) + COUNT( * ) * 10 + + COALESCE ( COUNT( * ), + COUNT( * ) * + 62 - - ( + COUNT( * ) ) * - 68 ) + - - 84 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL - - ( MIN ( DISTINCT 19 ) ) + COUNT ( * ) * 10 + + COALESCE ( COUNT ( * ), + COUNT ( * ) * + 62 - - ( + COUNT ( * ) ) * - 68 ) + - - 84 AS col1
----
114

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

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

query I rowsort
SELECT - 15 * + 89 AS col0
----
-1335

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

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

query I rowsort
SELECT ALL 55 + - 98 AS col0
----
-43

query I rowsort
SELECT ALL + 3 * - + 47 * 33 + - 68 * - 59
----
-641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT ALL CAST( + 96 AS SIGNED ) + + 10 - - 5 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL CAST ( + 96 AS INTEGER ) + + 10 - - 5 AS col0
----
111

query I rowsort
SELECT DISTINCT ( + 23 ) * - 10
----
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT DISTINCT 90 + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT 90 + + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT COALESCE ( + 45, - COUNT( * ), - 80 ) - 47 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2018
SELECT COALESCE ( + 45, - COUNT ( * ), - 80 ) - 47 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2019
SELECT ( - NULLIF ( + - MAX( + 81 ), - MAX( + 41 ) ) ) DIV - - 79, 14 + 29 - - COALESCE ( 3, + MIN( + 38 ) * - - 70 ) AS col1
----
1
46

skipif mysql # not compatible
query II rowsort label-2019
SELECT ( - NULLIF ( + - MAX ( + 81 ), - MAX ( + 41 ) ) ) / - - 79, 14 + 29 - - COALESCE ( 3, + MIN ( + 38 ) * - - 70 ) AS col1
----
1
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT ALL 19 DIV - + 44 * - 55
----
0

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL 19 / - + 44 * - 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT COUNT( ALL - 67 ) * - + COUNT( + - 16 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2021
SELECT COUNT ( ALL - 67 ) * - + COUNT ( + - 16 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL MIN( + 52 ) + 68 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL MIN ( + 52 ) + 68 AS col1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2023
SELECT DISTINCT + 62 * + + CAST( NULL AS SIGNED ) AS col0, + 67
----
NULL
67

skipif mysql # not compatible
query II rowsort label-2023
SELECT DISTINCT + 62 * + + CAST ( NULL AS INTEGER ) AS col0, + 67
----
NULL
67

query I rowsort
SELECT ALL 66 + + - 32 AS col1
----
34

query I rowsort
SELECT ALL + 53 + + 93
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-2026
SELECT ALL 83 DIV + 20
----
4

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL 83 / + 20
----
4

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

skipif mysql # not compatible
query I rowsort label-2027
SELECT 84 * + - COUNT ( ALL - + 64 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT DISTINCT 77 * 17 * + - COUNT( * ) AS col2
----
-1309

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT 77 * 17 * + - COUNT ( * ) AS col2
----
-1309

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT ALL + 91 * + - MAX( 63 )
----
-5733

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL + 91 * + - MAX ( 63 )
----
-5733

query I rowsort
SELECT 10 * 66 * + 32
----
21120

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL COUNT( * ) * 61 + + + 80
----
141

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL COUNT ( * ) * 61 + + + 80
----
141

query I rowsort
SELECT 18 * - + 34
----
-612

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL - COALESCE ( 83, + NULLIF ( - COUNT( * ), - + 52 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL - COALESCE ( 83, + NULLIF ( - COUNT ( * ), - + 52 ) )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT ALL + MIN( + 10 ) * 32 * + - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL + MIN ( + 10 ) * 32 * + - 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2036
SELECT + 6 * - + COUNT( * ) * + CASE - 91 WHEN - + 29 * - 18 * + 11 + - + 36 THEN NULL ELSE - + 54 * 85 END + CASE - + 65 WHEN + - CAST( NULL AS SIGNED ) THEN 95 WHEN - + ( - 15 ) THEN 66 + + 82 - - - 99 ELSE - 47 - 28 END AS col2
----
27465

skipif mysql # not compatible
query I rowsort label-2036
SELECT + 6 * - + COUNT ( * ) * + CASE - 91 WHEN - + 29 * - 18 * + 11 + - + 36 THEN NULL ELSE - + 54 * 85 END + CASE - + 65 WHEN + - CAST ( NULL AS INTEGER ) THEN 95 WHEN - + ( - 15 ) THEN 66 + + 82 - - - 99 ELSE - 47 - 28 END AS col2
----
27465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2037
SELECT DISTINCT + COALESCE ( - 80, - 18 DIV - CASE - 60 WHEN - ( 0 ) THEN NULL ELSE + 43 END, + COALESCE ( COUNT( * ), 79 ) + + + ( 95 ) ) * - 12 AS col2
----
960

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT + COALESCE ( - 80, - 18 / - CASE - 60 WHEN - ( 0 ) THEN NULL ELSE + 43 END, + COALESCE ( COUNT ( * ), 79 ) + + + ( 95 ) ) * - 12 AS col2
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT + MAX( ALL + 62 ) + + 51 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-2038
SELECT + MAX ( ALL + 62 ) + + 51 AS col2
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT + 33 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT + 33 / 68
----
0

query I rowsort
SELECT DISTINCT + 46 * + 46 + + 28
----
2144

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT DISTINCT - - MAX( ALL + - 59 ) * 45 AS col0
----
-2655

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT - - MAX ( ALL + - 59 ) * 45 AS col0
----
-2655

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT ALL 58 * NULLIF ( + 51, - 55 ) + + + ( - + 15 ) + + 82 + + 12 + - NULLIF ( + - 6, - 81 * - - COUNT( * ) )
----
3043

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL 58 * NULLIF ( + 51, - 55 ) + + + ( - + 15 ) + + 82 + + 12 + - NULLIF ( + - 6, - 81 * - - COUNT ( * ) )
----
3043

query I rowsort
SELECT 43 * - ( + + 35 )
----
-1505

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT ALL - + CASE WHEN 67 <= - COUNT( * ) THEN 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL - + CASE WHEN 67 <= - COUNT ( * ) THEN 52 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT 48 * 97 * + COUNT( * ) + + 54 AS col0
----
4710

skipif mysql # not compatible
query I rowsort label-2047
SELECT 48 * 97 * + COUNT ( * ) + + 54 AS col0
----
4710

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2049
SELECT + SUM( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2049
SELECT + SUM ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 21 + 49 AS col0
----
70

query I rowsort
SELECT - 15 * + 49 + - 85
----
-820

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

query I rowsort
SELECT ALL 78 * - 57 col1
----
-4446

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2054
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) + COALESCE ( 45, + 96 ) + - 62 + + + COUNT( * ) * 58 * + - 43 + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) + COALESCE ( 45, + 96 ) + - 62 + + + COUNT ( * ) * 58 * + - 43 + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT MAX( 84 ) * - + 30 * + - 27 + 76 AS col0
----
68116

skipif mysql # not compatible
query I rowsort label-2055
SELECT MAX ( 84 ) * - + 30 * + - 27 + 76 AS col0
----
68116

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL 72 - + - COUNT( * ) + 80 AS col1
----
153

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL 72 - + - COUNT ( * ) + 80 AS col1
----
153

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2058
SELECT + CAST( + + 43 AS SIGNED ) + + 1, + 99 col2
----
44
99

skipif mysql # not compatible
query II rowsort label-2058
SELECT + CAST ( + + 43 AS INTEGER ) + + 1, + 99 col2
----
44
99

query I rowsort
SELECT DISTINCT 77 * - + 8 AS col0
----
-616

query I rowsort
SELECT ALL 36 - + - 28
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT - SUM( 60 ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-2061
SELECT - SUM ( 60 ) col2
----
-60

query I rowsort
SELECT + 18 + + 67 AS col1
----
85

query I rowsort
SELECT + 24 * - - 48 AS col1
----
1152

query I rowsort
SELECT + 35 * 22 AS col1
----
770

query I rowsort
SELECT - 0 + 33
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2066
SELECT DISTINCT 64 DIV - 17 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT 64 / - 17 AS col0
----
-3

query I rowsort
SELECT + 70 * - + ( - 81 ) * - 13 AS col0
----
-73710

onlyif mysql # DIV for integer division: 
query I rowsort label-2068
SELECT + 88 DIV + 87 col0
----
1

skipif mysql # not compatible
query I rowsort label-2068
SELECT + 88 / + 87 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT ALL SUM( DISTINCT 24 )
----
24

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL SUM ( DISTINCT 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT - CASE - 91 WHEN 70 + + 67 * NULLIF ( - COUNT( * ) * 68 + - 1, CASE + 8 WHEN - SUM( - CASE + 83 WHEN + 74 - - 82 THEN NULLIF ( + 10, 0 + - 10 ) END ) THEN 81 END ) THEN NULL WHEN 48 / 51 THEN 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT - CASE - 91 WHEN 70 + + 67 * NULLIF ( - COUNT ( * ) * 68 + - 1, CASE + 8 WHEN - SUM ( - CASE + 83 WHEN + 74 - - 82 THEN NULLIF ( + 10, 0 + - 10 ) END ) THEN 81 END ) THEN NULL WHEN 48 / 51 THEN 39 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2071
SELECT DISTINCT 28 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT 28 / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT + 40 + - 26 * - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-2072
SELECT + 40 + - 26 * - COUNT ( * )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT - 58 DIV - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2073
SELECT - 58 / - 90 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2074
SELECT ALL COALESCE ( 66, + MIN( + 32 ), + 59 ) * CAST( 42 * 92 - 54 * - COUNT( * ) AS SIGNED )
----
258588

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL COALESCE ( 66, + MIN ( + 32 ), + 59 ) * CAST ( 42 * 92 - 54 * - COUNT ( * ) AS INTEGER )
----
258588

query I rowsort
SELECT + 45 + - 98 AS col2
----
-53

query I rowsort
SELECT - NULLIF ( 50, 78 )
----
-50

query I rowsort
SELECT - CASE + 38 WHEN 65 * - 88 THEN - 95 END + - 63
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT ALL CASE - ( - 94 ) WHEN 28 * 79 THEN NULL WHEN COALESCE ( 72, 85 / CASE 67 * + 23 WHEN SUM( 51 ) + - 96 THEN - ( + 32 ) END ) THEN + COALESCE ( 4, COUNT( * ) ) * + 88 - 30 ELSE NULL END * + COUNT( * ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL CASE - ( - 94 ) WHEN 28 * 79 THEN NULL WHEN COALESCE ( 72, 85 / CASE 67 * + 23 WHEN SUM ( 51 ) + - 96 THEN - ( + 32 ) END ) THEN + COALESCE ( 4, COUNT ( * ) ) * + 88 - 30 ELSE NULL END * + COUNT ( * ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT - 92 + - ( - 79 + 37 )
----
-50

query I rowsort
SELECT DISTINCT + NULLIF ( + 85, - 74 + 71 * - 46 ) col0
----
85

query I rowsort
SELECT DISTINCT - 79 * 46 AS col0
----
-3634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2083
SELECT + COUNT( * ) DIV - 35 + + ( COALESCE ( 96, COALESCE ( 3, - NULLIF ( - 96, + 16 ) ) + 92 * 77 ) ) * 94
----
9024

skipif mysql # not compatible
query I rowsort label-2083
SELECT + COUNT ( * ) / - 35 + + ( COALESCE ( 96, COALESCE ( 3, - NULLIF ( - 96, + 16 ) ) + 92 * 77 ) ) * 94
----
9024

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT ALL + 77 * 26 + COUNT( * )
----
2003

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL + 77 * 26 + COUNT ( * )
----
2003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT ( CAST( - 7 AS SIGNED ) )
----
-7

skipif mysql # not compatible
query I rowsort label-2085
SELECT ( CAST ( - 7 AS INTEGER ) )
----
-7

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

query I rowsort
SELECT - 38 + + 22 AS col2
----
-16

query I rowsort
SELECT DISTINCT - 80 * + 20
----
-1600

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT - ( + COUNT( * ) ) + + 76 * - COALESCE ( 6, 86, - MAX( DISTINCT - 82 ) )
----
-457

skipif mysql # not compatible
query I rowsort label-2090
SELECT - ( + COUNT ( * ) ) + + 76 * - COALESCE ( 6, 86, - MAX ( DISTINCT - 82 ) )
----
-457

query I rowsort
SELECT ALL - 62 * 30 col1
----
-1860

query I rowsort
SELECT NULLIF ( 55, 86 )
----
55

query I rowsort
SELECT ALL CASE COALESCE ( - 97, 25 ) WHEN 62 THEN NULL ELSE - 86 END * + 91 - 89 AS col0
----
-7915

query I rowsort
SELECT DISTINCT - 80 * 79 AS col2
----
-6320

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

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

query I rowsort
SELECT DISTINCT + 8 * COALESCE ( 65, 63 )
----
520

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT ALL 66 DIV 40 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL 66 / 40 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT COALESCE ( + COUNT( * ), + 73 )
----
1

skipif mysql # not compatible
query I rowsort label-2098
SELECT COALESCE ( + COUNT ( * ), + 73 )
----
1

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

query I rowsort
SELECT + 48 * 30 AS col2
----
1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2101
SELECT ALL CAST( 46 AS SIGNED ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL CAST ( 46 AS INTEGER ) AS col1
----
46

query I rowsort
SELECT - 12 * ( COALESCE ( + 59, NULLIF ( - 23, 94 / ( 73 ) ) ) ) AS col2
----
-708

query I rowsort
SELECT DISTINCT 23 * 96 AS col0
----
2208

onlyif mysql # DIV for integer division: 
query I rowsort label-2104
SELECT ALL 58 * ( 6 DIV + 19 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL 58 * ( 6 / + 19 ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2105
SELECT + 64 - - 48 DIV + 30 col0
----
65

skipif mysql # not compatible
query I rowsort label-2105
SELECT + 64 - - 48 / + 30 col0
----
65

query I rowsort
SELECT DISTINCT - 92 * 40 AS col0
----
-3680

onlyif mysql # DIV for integer division: 
query I rowsort label-2107
SELECT ALL + 17 + + COALESCE ( - 35, 61, + 7 DIV 60 ) * 63
----
-2188

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL + 17 + + COALESCE ( - 35, 61, + 7 / 60 ) * 63
----
-2188

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

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

query I rowsort
SELECT - - 37 * - 75
----
-2775

onlyif mysql # DIV for integer division: 
query I rowsort label-2110
SELECT + 32 + ( - 17 + 40 ) DIV + 21 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2110
SELECT + 32 + ( - 17 + 40 ) / + 21 AS col2
----
33

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

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

query I rowsort
SELECT + - 98 * 87 AS col1
----
-8526

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT DISTINCT MAX( + 94 ) + - 58 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT MAX ( + 94 ) + - 58 AS col1
----
36

query I rowsort
SELECT ALL + 18 + 94 AS col0
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2116
SELECT - + CAST( COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2116
SELECT - + CAST ( COUNT ( * ) AS INTEGER )
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2118
SELECT + 91 DIV 68
----
1

skipif mysql # not compatible
query I rowsort label-2118
SELECT + 91 / 68
----
1

query I rowsort
SELECT ALL ( - 9 ) + + 61 AS col0
----
52

query I rowsort
SELECT + ( 67 ) AS col1
----
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT CASE COUNT( * ) WHEN - 85 THEN + 4 END * - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT CASE COUNT ( * ) WHEN - 85 THEN + 4 END * - 44 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 67 * - 53
----
-3551

onlyif mysql # DIV for integer division: 
query I rowsort label-2125
SELECT ( - 23 ) * 91 - 93 DIV + 44
----
-2095

skipif mysql # not compatible
query I rowsort label-2125
SELECT ( - 23 ) * 91 - 93 / + 44
----
-2095

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT 22 * - + 21 + COUNT( ALL 4 )
----
-461

skipif mysql # not compatible
query I rowsort label-2126
SELECT 22 * - + 21 + COUNT ( ALL 4 )
----
-461

query I rowsort
SELECT 0 * 22 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT + 68 * - COUNT( ( - ( 36 ) ) ) + MIN( 0 ) * 29 col0
----
-68

skipif mysql # not compatible
query I rowsort label-2128
SELECT + 68 * - COUNT ( ( - ( 36 ) ) ) + MIN ( 0 ) * 29 col0
----
-68

query I rowsort
SELECT - 81 * - - 52 - - 40
----
-4172

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

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

skipif mysql # not compatible
query I rowsort label-2131
SELECT 84 + COUNT ( * ) / + 10 AS col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT 90 DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2132
SELECT 90 / 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT 93 + + - MIN( DISTINCT 57 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2133
SELECT 93 + + - MIN ( DISTINCT 57 ) AS col1
----
36

query I rowsort
SELECT ALL + 32 * - + 31 AS col0
----
-992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2135
SELECT - COUNT( * ) * + 32 + COUNT( * ) DIV - COUNT( * )
----
-33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT ALL - COUNT( * ) + + - 25 + COUNT( * ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL - COUNT ( * ) + + - 25 + COUNT ( * ) col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT 62 + + - ( + COUNT( * ) ) * + MAX( 56 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2137
SELECT 62 + + - ( + COUNT ( * ) ) * + MAX ( 56 ) AS col2
----
6

query I rowsort
SELECT ALL + 88 + - + 36
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT - MIN( - + 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2139
SELECT - MIN ( - + 33 ) AS col1
----
33

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

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

query I rowsort
SELECT - NULLIF ( + 39, 83 )
----
-39

query I rowsort
SELECT - 25 * - - 64 * + 69 AS col1
----
-110400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2143
SELECT ALL 83 + CAST( + 62 AS SIGNED ) AS col2
----
145

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL 83 + CAST ( + 62 AS INTEGER ) AS col2
----
145

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

query I rowsort
SELECT DISTINCT + + 85 + - ( 66 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2146
SELECT DISTINCT 10 + + 95 DIV 44
----
12

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT 10 + + 95 / 44
----
12

query I rowsort
SELECT 11 * + 82 + 91 AS col2
----
993

query I rowsort
SELECT ALL - + CASE - + 25 WHEN + 25 THEN - 66 * + 23 END * 51 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2149
SELECT ALL 63 - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL 63 - - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT CASE - AVG ( DISTINCT 50 ) WHEN + 92 THEN NULL WHEN + ( 1 ) + + 50 THEN 72 END * - 31 AS col1
----
NULL

query I rowsort
SELECT - 25 - + + 44
----
-69

query I rowsort
SELECT 78 * + 75 AS col0
----
5850

query I rowsort
SELECT ALL 49 * - - 29 AS col0
----
1421

query I rowsort
SELECT COALESCE ( - 28, - - 89, ( + 12 ) + 47 ) * ( - ( - 34 ) ) + 25 AS col0
----
-927

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT MAX( DISTINCT + - 27 ) * - - 43
----
-1161

skipif mysql # not compatible
query I rowsort label-2155
SELECT MAX ( DISTINCT + - 27 ) * - - 43
----
-1161

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2156
SELECT 57 AS col2, 55 + 14 * - CAST( NULL AS SIGNED )
----
57
NULL

skipif mysql # not compatible
query II rowsort label-2156
SELECT 57 AS col2, 55 + 14 * - CAST ( NULL AS INTEGER )
----
57
NULL

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

skipif mysql # not compatible
query I rowsort label-2157
SELECT CAST ( NULL AS INTEGER ) / + 34
----
NULL

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

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

query I rowsort
SELECT ALL 13 * + + 59 col0
----
767

query I rowsort
SELECT 10 + + 19 AS col1
----
29

query I rowsort
SELECT DISTINCT 48 * - 50
----
-2400

query I rowsort
SELECT DISTINCT 60 * + 80 * + - 28 AS col0
----
-134400

onlyif mysql # aggregate syntax: 
query II rowsort label-2163
SELECT + COUNT( * ), COUNT( DISTINCT + + 20 ) * 48 AS col0
----
1
48

skipif mysql # not compatible
query II rowsort label-2163
SELECT + COUNT ( * ), COUNT ( DISTINCT + + 20 ) * 48 AS col0
----
1
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT DISTINCT 12 + - + 31 * + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT 12 + - + 31 * + COUNT ( * )
----
-19

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

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL + COUNT ( * ) + ( - + 53 ) AS col0
----
-52

query I rowsort
SELECT 19 * 30 * 67
----
38190

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2168
SELECT 8 AS col1, - ( + CASE 54 WHEN 42 THEN - 3 / COUNT( * ) + 15 WHEN - 57 + + 43 THEN - 79 WHEN - CASE + 26 WHEN - 73 THEN NULL ELSE + 68 END THEN NULL ELSE NULL END ) - - ( + NULLIF ( 1, - 39 ) - ( 73 ) )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-2168
SELECT 8 AS col1, - ( + CASE 54 WHEN 42 THEN - 3 / COUNT ( * ) + 15 WHEN - 57 + + 43 THEN - 79 WHEN - CASE + 26 WHEN - 73 THEN NULL ELSE + 68 END THEN NULL ELSE NULL END ) - - ( + NULLIF ( 1, - 39 ) - ( 73 ) )
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT ALL + - 24 + - - 45 * + 44 * CASE + 34 WHEN + 52 * 97 THEN - COUNT( * ) WHEN 86 THEN NULL END + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL + - 24 + - - 45 * + 44 * CASE + 34 WHEN + 52 * 97 THEN - COUNT ( * ) WHEN 86 THEN NULL END + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT + COUNT( * ) * 64 * - 92 col2
----
-5888

skipif mysql # not compatible
query I rowsort label-2170
SELECT + COUNT ( * ) * 64 * - 92 col2
----
-5888

query I rowsort
SELECT 8 * - + ( + ( - 99 ) )
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT ALL - MAX( 20 ) + 79
----
59

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL - MAX ( 20 ) + 79
----
59

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2174
SELECT DISTINCT - ( + - 63 ) DIV 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT - ( + - 63 ) / 95 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT ALL COUNT( ALL CASE 42 WHEN 83 THEN 34 END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL COUNT ( ALL CASE 42 WHEN 83 THEN 34 END ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL + - COALESCE ( 47, - 59 ) + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL + - COALESCE ( 47, - 59 ) + COUNT ( * )
----
-46

query I rowsort
SELECT 87 * - 67
----
-5829

query I rowsort
SELECT DISTINCT + 49 + 89 * + 56 * 35 + - 55 col0
----
174434

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT 79 DIV - + 69 + - + 35
----
-36

skipif mysql # not compatible
query I rowsort label-2179
SELECT 79 / - + 69 + - + 35
----
-36

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

query I rowsort
SELECT 67 * 9
----
603

query I rowsort
SELECT - + 35 * + 12
----
-420

query I rowsort
SELECT - - 61 + - 51
----
10

query II rowsort
SELECT DISTINCT 79 AS col0, 61
----
79
61

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

query I rowsort
SELECT ALL 97 - 11
----
86

query II rowsort
SELECT - + 82 AS col2, 2 + 89
----
-82
91

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

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

query I rowsort
SELECT DISTINCT + 49 * 75 * + + CASE WHEN NOT 5 IS NULL THEN NULL ELSE 57 * 39 END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2190
SELECT 58 DIV COUNT( 86 ) - + + 1 DIV + 47 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-2190
SELECT 58 / COUNT ( 86 ) - + + 1 / + 47 AS col1
----
58

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

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

query I rowsort
SELECT - ( - + 68 ) - + 62
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT NULLIF ( + + COUNT( * ), - SUM( + 37 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2193
SELECT NULLIF ( + + COUNT ( * ), - SUM ( + 37 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + NULLIF ( + 35, - COUNT( * ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2194
SELECT + NULLIF ( + 35, - COUNT ( * ) ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL 48 * + + 52 * + 91 + COUNT( * ) * 11 AS col1
----
227147

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL 48 * + + 52 * + 91 + COUNT ( * ) * 11 AS col1
----
227147

onlyif mysql # DIV for integer division: 
query I rowsort label-2196
SELECT DISTINCT ( 72 ) DIV - 64
----
-1

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT ( 72 ) / - 64
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT 96 * - - 38 - + - MIN( DISTINCT + 89 )
----
3737

skipif mysql # not compatible
query I rowsort label-2197
SELECT 96 * - - 38 - + - MIN ( DISTINCT + 89 )
----
3737

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL + COALESCE ( - 89, - - COUNT( * ), 38 - COUNT( * ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL + COALESCE ( - 89, - - COUNT ( * ), 38 - COUNT ( * ) ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT + 41 * NULLIF ( 31, - COUNT( * ) ) AS col2
----
1271

skipif mysql # not compatible
query I rowsort label-2199
SELECT + 41 * NULLIF ( 31, - COUNT ( * ) ) AS col2
----
1271

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT NULLIF ( - ( 28 ), - 89 * MIN( - 89 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-2200
SELECT NULLIF ( - ( 28 ), - 89 * MIN ( - 89 ) )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT + COUNT( + 17 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2201
SELECT + COUNT ( + 17 ) col2
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2203
SELECT + COUNT( * ) * + - 96 + + - CAST( NULL AS SIGNED ) * - - CAST( 29 AS SIGNED ) + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT + COUNT ( * ) * + - 96 + + - CAST ( NULL AS INTEGER ) * - - CAST ( 29 AS INTEGER ) + 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ALL - 10 * - - 7 + MIN( + 40 )
----
-30

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL - 10 * - - 7 + MIN ( + 40 )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2205
SELECT 96 * - ( + CASE + 84 WHEN - 69 THEN - COUNT( * ) * 41 WHEN 96 + + 85 THEN NULL ELSE 96 END ) * + 29 - 4 DIV COUNT( * )
----
-267268

skipif mysql # not compatible
query I rowsort label-2205
SELECT 96 * - ( + CASE + 84 WHEN - 69 THEN - COUNT ( * ) * 41 WHEN 96 + + 85 THEN NULL ELSE 96 END ) * + 29 - 4 / COUNT ( * )
----
-267268

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT + NULLIF ( + NULLIF ( + 1, 71 * CASE 15 * 72 + - 95 / - 78 WHEN - 47 / 5 THEN NULLIF ( - COUNT( DISTINCT 90 ), 49 ) ELSE NULL END ), COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT + NULLIF ( + NULLIF ( + 1, 71 * CASE 15 * 72 + - 95 / - 78 WHEN - 47 / 5 THEN NULLIF ( - COUNT ( DISTINCT 90 ), 49 ) ELSE NULL END ), COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT + ( - 71 ) + + - 82 + - + 66
----
-219

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL - MIN( DISTINCT + 6 ) * + 33 AS col2
----
-198

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL - MIN ( DISTINCT + 6 ) * + 33 AS col2
----
-198

query I rowsort
SELECT ALL + - ( - + 88 ) * 20 + + - 27 + + ( - 13 )
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ALL + SUM( DISTINCT 1 ) * + - 52 - 15 + 92
----
25

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL + SUM ( DISTINCT 1 ) * + - 52 - 15 + 92
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT - 89 * COUNT( * ) * + + 44 * COUNT( * ) + 56 + 71 * 53
----
-97

skipif mysql # not compatible
query I rowsort label-2212
SELECT - 89 * COUNT ( * ) * + + 44 * COUNT ( * ) + 56 + 71 * 53
----
-97

query II rowsort
SELECT + + 50 + + 58 AS col2, 93 + - CASE WHEN 72 IN ( 94 ) THEN 75 END
----
108
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + 72, - 96 ) AS col0
----
72

query I rowsort
SELECT - - ( + + 81 ) + + ( - COALESCE ( + 20, + ( - COALESCE ( 90, 97 + 53 ) ) * 41 ) ) * 46 AS col1
----
-839

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

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

query I rowsort
SELECT - 71 * + + 36 * - 31
----
79236

query I rowsort
SELECT + + 48 + 12 AS col1
----
60

query I rowsort
SELECT DISTINCT + + 55 - + 68 + - 63
----
-76

query I rowsort
SELECT ALL - + 5 * - 93
----
465

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT + + 98 * - + CASE 46 WHEN NULLIF ( + 10, 45 * COUNT( * ) ) + 87 / MIN( + ( - 38 ) ) THEN AVG ( 77 ) END * 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT + + 98 * - + CASE 46 WHEN NULLIF ( + 10, 45 * COUNT ( * ) ) + 87 / MIN ( + ( - 38 ) ) THEN AVG ( 77 ) END * 90 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2222
SELECT ALL + 93 DIV + ( - 57 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL + 93 / + ( - 57 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT - 73 * COUNT( - + 57 ) + - 8 + 6 * - 82 * + 83 AS col1
----
-40917

skipif mysql # not compatible
query I rowsort label-2223
SELECT - 73 * COUNT ( - + 57 ) + - 8 + 6 * - 82 * + 83 AS col1
----
-40917

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT + COUNT( * ) * - 64 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-2224
SELECT + COUNT ( * ) * - 64 AS col2
----
-64

query I rowsort
SELECT + NULLIF ( - 38, + + AVG ( - + 63 ) * + 78 + AVG ( 44 ) ) + 82
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT - 8 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-2226
SELECT - 8 / - 35
----
0

query I rowsort
SELECT - 25 - + 82
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT ALL + 27 + - 86 + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * COUNT( * ) * 61 / 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL + 27 + - 86 + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * COUNT ( * ) * 61 / 83 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL + 93 / - COUNT ( * ) + 35 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT - COUNT( * ) * COUNT( * ) + - ( + 44 ) * + 9 * - ( 25 ) AS col2
----
9899

skipif mysql # not compatible
query I rowsort label-2230
SELECT - COUNT ( * ) * COUNT ( * ) + - ( + 44 ) * + 9 * - ( 25 ) AS col2
----
9899

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL 18 / - 42 + - COUNT( * ) * - + CASE - 78 WHEN - 97 THEN - 69 - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL 18 / - 42 + - COUNT ( * ) * - + CASE - 78 WHEN - 97 THEN - 69 - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2232
SELECT ALL + COUNT( * ), MIN( ALL - ( 28 ) ) + COUNT( ALL ( 40 ) ) col1
----
1
-27

skipif mysql # not compatible
query II rowsort label-2232
SELECT ALL + COUNT ( * ), MIN ( ALL - ( 28 ) ) + COUNT ( ALL ( 40 ) ) col1
----
1
-27

query I rowsort
SELECT 0 * 87 + - 92
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT DISTINCT + SUM( DISTINCT + 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT + SUM ( DISTINCT + 59 ) AS col1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2235
SELECT ALL - 16 DIV 47 + - + 29 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL - 16 / 47 + - + 29 AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2236
SELECT - 29 * - 47 * - - CAST( NULL AS SIGNED ) * COUNT( DISTINCT 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT - 29 * - 47 * - - CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT 45 )
----
NULL

query I rowsort
SELECT + 35 * - 94 AS col1
----
-3290

query I rowsort
SELECT DISTINCT + - COALESCE ( - - 3, + 80 ) AS col2
----
-3

query I rowsort
SELECT DISTINCT - + ( - ( 80 ) ) * - - ( + + 59 ) - 11 * + 88 AS col0
----
3752

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL + 60 * - - MAX( DISTINCT 15 ) AS col0
----
900

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + 60 * - - MAX ( DISTINCT 15 ) AS col0
----
900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2241
SELECT + COALESCE ( - + SUM( ALL 94 ), + + 62 * + CAST( - 0 AS SIGNED ) ) DIV MIN( 68 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2241
SELECT + COALESCE ( - + SUM ( ALL 94 ), + + 62 * + CAST ( - 0 AS INTEGER ) ) / MIN ( 68 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT DISTINCT - + COALESCE ( - 60, MAX( DISTINCT - 65 ), 31 )
----
60

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT - + COALESCE ( - 60, MAX ( DISTINCT - 65 ), 31 )
----
60

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

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

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

query I rowsort
SELECT - + NULLIF ( + - 4, + 11 ) col1
----
4

query I rowsort
SELECT ( + 3 ) * - - 39 * + 74 - + 13 AS col2
----
8645

query I rowsort
SELECT 65 - 78 * - 3 * + - 95 * + - 66 AS col2
----
1467245

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2248
SELECT 73 AS col0, - 10 * - + CAST( NULL AS SIGNED )
----
73
NULL

skipif mysql # not compatible
query II rowsort label-2248
SELECT 73 AS col0, - 10 * - + CAST ( NULL AS INTEGER )
----
73
NULL

query II rowsort
SELECT ALL 90 * 16 * + 53 * + - 72 col1, 81 + - 51 - + 59
----
-5495040
-29

query I rowsort
SELECT ALL 2 + + 38 AS col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2251
SELECT - 77 AS col2, + ( - - 58 ) + - COALESCE ( + 24, - 37, COUNT( * ) + COUNT( * ) ) + - 69
----
-77
-35

skipif mysql # not compatible
query II rowsort label-2251
SELECT - 77 AS col2, + ( - - 58 ) + - COALESCE ( + 24, - 37, COUNT ( * ) + COUNT ( * ) ) + - 69
----
-77
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2252
SELECT - 80, + COUNT( DISTINCT + 43 ) * 65 + 24 AS col1
----
-80
89

skipif mysql # not compatible
query II rowsort label-2252
SELECT - 80, + COUNT ( DISTINCT + 43 ) * 65 + 24 AS col1
----
-80
89

query II rowsort
SELECT DISTINCT 81, 51 AS col2
----
81
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2254
SELECT DISTINCT 36 AS col1, + ( + - COUNT( * ) ) * NULLIF ( + 22, + 4 + + 93 * - 24 )
----
36
-22

skipif mysql # not compatible
query II rowsort label-2254
SELECT DISTINCT 36 AS col1, + ( + - COUNT ( * ) ) * NULLIF ( + 22, + 4 + + 93 * - 24 )
----
36
-22

query I rowsort
SELECT DISTINCT 89 * + 32
----
2848

query II rowsort
SELECT - 42 AS col1, 14 AS col1
----
-42
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2257
SELECT COUNT( * ) DIV + 23 DIV - + 3 - + 65 + + 25 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2257
SELECT COUNT ( * ) / + 23 / - + 3 - + 65 + + 25 AS col0
----
-40

query I rowsort
SELECT 9 + - 98 + 51
----
-38

query I rowsort
SELECT 47 * + - 77
----
-3619

query II rowsort
SELECT 5 AS col0, 72
----
5
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL SUM( DISTINCT 57 ) - - - 93
----
-36

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL SUM ( DISTINCT 57 ) - - - 93
----
-36

query I rowsort
SELECT 33 * 9 * 83 - + 25 AS col0
----
24626

query II rowsort
SELECT 21 AS col2, NULLIF ( + NULLIF ( 49, ( - 89 ) ), 28 * 13 )
----
21
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT ALL - CAST( NULL AS SIGNED ) * - 80 - + 15 * + 28 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL - CAST ( NULL AS INTEGER ) * - 80 - + 15 * + 28 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2265
SELECT - 30 * - 90 + + - SUM( 13 ) AS col2, 2 AS col1
----
2687
2

skipif mysql # not compatible
query II rowsort label-2265
SELECT - 30 * - 90 + + - SUM ( 13 ) AS col2, 2 AS col1
----
2687
2

query I rowsort
SELECT ( + 41 ) * 79 AS col0
----
3239

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT + 26 * + 30 + - NULLIF ( COUNT( * ), + 37 ) * + - 7 AS col0
----
787

skipif mysql # not compatible
query I rowsort label-2267
SELECT + 26 * + 30 + - NULLIF ( COUNT ( * ), + 37 ) * + - 7 AS col0
----
787

query II rowsort
SELECT - 52 AS col0, 90 * - + 3
----
-52
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT ( + 54 ) + - COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2269
SELECT ( + 54 ) + - COUNT ( * ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT - 92 * 53 * - COUNT( * )
----
4876

skipif mysql # not compatible
query I rowsort label-2270
SELECT - 92 * 53 * - COUNT ( * )
----
4876

query I rowsort
SELECT DISTINCT - 26 * + - ( 30 ) AS col1
----
780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2272
SELECT ALL - CASE + COUNT( * ) WHEN - - 14 * 89 THEN NULL ELSE - 31 DIV + + 17 * - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL - CASE + COUNT ( * ) WHEN - - 14 * 89 THEN NULL ELSE - 31 / + + 17 * - COUNT ( * ) END
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2273
SELECT DISTINCT - ( CASE 58 WHEN + - 39 - CAST( NULL AS SIGNED ) * - AVG ( DISTINCT 80 ) + + 7 / CAST( NULL AS SIGNED ) THEN 0 * COALESCE ( 0, - 46 ) + CASE + 17 + 67 WHEN NULLIF ( ( - 49 ), 89 * + COUNT( * ) ) + + 64 THEN ( - 89 ) END * COALESCE ( 16 * 2, MAX( + 93 ) ) ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT - ( CASE 58 WHEN + - 39 - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT 80 ) + + 7 / CAST ( NULL AS INTEGER ) THEN 0 * COALESCE ( 0, - 46 ) + CASE + 17 + 67 WHEN NULLIF ( ( - 49 ), 89 * + COUNT ( * ) ) + + 64 THEN ( - 89 ) END * COALESCE ( 16 * 2, MAX ( + 93 ) ) ELSE NULL END ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2274
SELECT ALL 49 DIV - - COUNT( DISTINCT + 26 ) + + - 24 - + 49
----
-24

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL 49 / - - COUNT ( DISTINCT + 26 ) + + - 24 - + 49
----
-24

query II rowsort
SELECT ALL - 31 AS col1, 70 AS col0
----
-31
70

query I rowsort
SELECT - 76 * - 69
----
5244

onlyif mysql # DIV for integer division: 
query I rowsort label-2277
SELECT COALESCE ( + 81, - 82, 74 ) DIV 78 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2277
SELECT COALESCE ( + 81, - 82, 74 ) / 78 AS col2
----
1

query I rowsort
SELECT ALL + 52 + + + 67 col2
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2279
SELECT AVG ( DISTINCT + 45 ) * 95 * 51 - - 39 + + CAST( NULL AS SIGNED ) * - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT AVG ( DISTINCT + 45 ) * 95 * 51 - - 39 + + CAST ( NULL AS INTEGER ) * - 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2280
SELECT ALL SUM( DISTINCT - 91 ) * - - 96 DIV COUNT( 89 ) AS col2, MAX( - ( ( + 97 ) ) ) * 57
----
-8736
-5529

skipif mysql # not compatible
query II rowsort label-2280
SELECT ALL SUM ( DISTINCT - 91 ) * - - 96 / COUNT ( 89 ) AS col2, MAX ( - ( ( + 97 ) ) ) * 57
----
-8736
-5529

query I rowsort
SELECT 13 * - NULLIF ( 86, 52 ) AS col2
----
-1118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT 19 + + CAST( + 68 AS SIGNED ) + 2
----
89

skipif mysql # not compatible
query I rowsort label-2282
SELECT 19 + + CAST ( + 68 AS INTEGER ) + 2
----
89

query II rowsort
SELECT ALL 48 + - - 51 AS col2, 13
----
99
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2284
SELECT COUNT( * ) + + 61 + CAST( CASE + + 32 WHEN + 99 * + CASE - 57 WHEN + 61 / 25 THEN COALESCE ( + 8, - 71 / 57 ) END + + CAST( NULL AS SIGNED ) THEN 55 WHEN - 12 THEN MIN( ALL 17 ) ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2284
SELECT COUNT ( * ) + + 61 + CAST ( CASE + + 32 WHEN + 99 * + CASE - 57 WHEN + 61 / 25 THEN COALESCE ( + 8, - 71 / 57 ) END + + CAST ( NULL AS INTEGER ) THEN 55 WHEN - 12 THEN MIN ( ALL 17 ) ELSE NULL END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 44 - 54
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2286
SELECT DISTINCT COUNT( * ) - - 76 DIV - ( + + 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT COUNT ( * ) - - 76 / - ( + + 27 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2287
SELECT COALESCE ( - 12, + + COUNT( * ) + 2 DIV - - 55, + 95 * - COUNT( * ) DIV - 94 + 32 - 61, - COALESCE ( - 62, NULLIF ( 72, + 88 * 46 - 5 ) * - 74 + + 48 ) + COUNT( * ) ) * COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-2287
SELECT COALESCE ( - 12, + + COUNT ( * ) + 2 / - - 55, + 95 * - COUNT ( * ) / - 94 + 32 - 61, - COALESCE ( - 62, NULLIF ( 72, + 88 * 46 - 5 ) * - 74 + + 48 ) + COUNT ( * ) ) * COUNT ( * )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT ALL + ( + 49 ) * + CAST( NULL AS SIGNED ) + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL + ( + 49 ) * + CAST ( NULL AS INTEGER ) + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT DISTINCT SUM( ALL 30 ) * + NULLIF ( - ( + + COUNT( 44 ) ), - 21 - 6 ) * 90 + ( 41 ) * 83
----
703

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT SUM ( ALL 30 ) * + NULLIF ( - ( + + COUNT ( 44 ) ), - 21 - 6 ) * 90 + ( 41 ) * 83
----
703

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT 38 * + - 65 + + MIN( DISTINCT + 48 ) * - + 71 AS col2
----
-5878

skipif mysql # not compatible
query I rowsort label-2290
SELECT 38 * + - 65 + + MIN ( DISTINCT + 48 ) * - + 71 AS col2
----
-5878

query I rowsort
SELECT + 23 * 49
----
1127

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT ALL - ( - - MAX( - 82 ) ) * 61 AS col1
----
5002

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL - ( - - MAX ( - 82 ) ) * 61 AS col1
----
5002

onlyif mysql # DIV for integer division: 
query I rowsort label-2293
SELECT + - 27 DIV + + ( + 17 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2293
SELECT + - 27 / + + ( + 17 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT - 23 * COUNT( * ) + 71 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-2294
SELECT - 23 * COUNT ( * ) + 71 AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2295
SELECT - - 88 DIV COUNT( DISTINCT 92 )
----
88

skipif mysql # not compatible
query I rowsort label-2295
SELECT - - 88 / COUNT ( DISTINCT 92 )
----
88

query I rowsort
SELECT + 67 * + - 88 * - 36 * - + ( + + 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT - COALESCE ( 3, 75 + 66 ) + + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2297
SELECT - COALESCE ( 3, 75 + 66 ) + + COUNT ( * ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT DISTINCT + 50 DIV 71 + - + 13 + 27 * + 40 * 0 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT + 50 / 71 + - + 13 + 27 * + 40 * 0 AS col0
----
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT DISTINCT - - 35 * - - COUNT( * ) * - + 1
----
-35

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT - - 35 * - - COUNT ( * ) * - + 1
----
-35

query I rowsort
SELECT DISTINCT + 19 * 44 * + 1 + + 49 + + 0 - - 89 * 23 * 98
----
201491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2302
SELECT ALL - 83 * - 41 + - - CAST( - - 36 AS SIGNED ) AS col2
----
3439

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL - 83 * - 41 + - - CAST ( - - 36 AS INTEGER ) AS col2
----
3439

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT ALL + + 93 * MIN( 93 ) col0
----
8649

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL + + 93 * MIN ( 93 ) col0
----
8649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2304
SELECT - 92 * + + CAST( 72 AS SIGNED )
----
-6624

skipif mysql # not compatible
query I rowsort label-2304
SELECT - 92 * + + CAST ( 72 AS INTEGER )
----
-6624

query I rowsort
SELECT ALL + - 26 + + - ( - 90 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT DISTINCT CASE + - ( - ( 47 ) ) WHEN - - 85 THEN - - COUNT( * ) + + ( MIN( + 95 ) ) WHEN ( - MAX( 67 ) ) + 25 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT CASE + - ( - ( 47 ) ) WHEN - - 85 THEN - - COUNT ( * ) + + ( MIN ( + 95 ) ) WHEN ( - MAX ( 67 ) ) + 25 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 25 - + 1 AS col0
----
-26

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

query I rowsort
SELECT - 89 + - 7
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT + SUM( 63 ) * + + 82
----
5166

skipif mysql # not compatible
query I rowsort label-2310
SELECT + SUM ( 63 ) * + + 82
----
5166

query I rowsort
SELECT ALL ( + - 60 ) * + 0 + + - 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT ALL SUM( ALL - + 93 ) * + - ( + 13 )
----
1209

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL SUM ( ALL - + 93 ) * + - ( + 13 )
----
1209

query II rowsort
SELECT ALL 9 AS col0, - 81 AS col2
----
9
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2314
SELECT - 99 * + COALESCE ( 42, 76 + 25 + + 77 ) col1, - COUNT( * ) AS col2
----
-4158
-1

skipif mysql # not compatible
query II rowsort label-2314
SELECT - 99 * + COALESCE ( 42, 76 + 25 + + 77 ) col1, - COUNT ( * ) AS col2
----
-4158
-1

query I rowsort
SELECT + 65 * 29 * + 55 + - 46 + + 42
----
103671

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL + 20 * + CASE + ( 53 ) WHEN - 76 + - + 60 THEN - 58 / - - 86 + - 74 + 40 WHEN 39 * + 74 + COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL + 20 * + CASE + ( 53 ) WHEN - 76 + - + 60 THEN - 58 / - - 86 + - 74 + 40 WHEN 39 * + 74 + COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2317
SELECT ALL + ( - 66 ) DIV COUNT( * ) + - 60
----
-126

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL + ( - 66 ) / COUNT ( * ) + - 60
----
-126

query I rowsort
SELECT + - 91 + - NULLIF ( NULLIF ( - - NULLIF ( - 95, 80 ), - 94 ), - AVG ( 23 ) ) + 19 * 68 AS col0
----
1296

query I rowsort
SELECT ALL + NULLIF ( + + 93, + - 65 * - 26 + + 16 ) * ( - 1 ) * - 3 + 48
----
327

query II rowsort
SELECT + 60, - 41 - + 0 * - 5 + - 35 AS col2
----
60
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL - COUNT( * ) * 17 + + + 82 + + + COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL - COUNT ( * ) * 17 + + + 82 + + + COUNT ( * ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT + ( - - 89 ) + 36 + - 14 * - - COUNT( * ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-2322
SELECT + ( - - 89 ) + 36 + - 14 * - - COUNT ( * ) AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT - 74 * - 19 * 47 + + + 7 * + 24 * + 98 + + COUNT( * ) + + - MIN( DISTINCT ( + 6 ) ) * COUNT( * ) - 47 * - 97
----
87100

skipif mysql # not compatible
query I rowsort label-2323
SELECT - 74 * - 19 * 47 + + + 7 * + 24 * + 98 + + COUNT ( * ) + + - MIN ( DISTINCT ( + 6 ) ) * COUNT ( * ) - 47 * - 97
----
87100

query I rowsort
SELECT + 95 + - + 53 * - 7
----
466

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT ALL + COUNT( * ) * - + 88 - 11 + - + ( - 58 ) - - 85 + MAX( + 85 ) * - 27
----
-2251

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + COUNT ( * ) * - + 88 - 11 + - + ( - 58 ) - - 85 + MAX ( + 85 ) * - 27
----
-2251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2326
SELECT ALL + CASE - CAST( NULL AS SIGNED ) WHEN + 32 + - ( - 88 ) THEN NULL ELSE + - 25 END * - MAX( ALL - - 12 )
----
300

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL + CASE - CAST ( NULL AS INTEGER ) WHEN + 32 + - ( - 88 ) THEN NULL ELSE + - 25 END * - MAX ( ALL - - 12 )
----
300

query I rowsort
SELECT DISTINCT 28 * 8 - 64 AS col2
----
160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT ALL - 6 * - + COUNT( * ) * + 16 * + 6 - - + 64
----
640

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL - 6 * - + COUNT ( * ) * + 16 * + 6 - - + 64
----
640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT - 83 + - SUM( DISTINCT + 43 ) AS col2
----
-126

skipif mysql # not compatible
query I rowsort label-2331
SELECT - 83 + - SUM ( DISTINCT + 43 ) AS col2
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2332
SELECT DISTINCT CAST( + 85 AS SIGNED ) AS col0, - 55
----
85
-55

skipif mysql # not compatible
query II rowsort label-2332
SELECT DISTINCT CAST ( + 85 AS INTEGER ) AS col0, - 55
----
85
-55

query I rowsort
SELECT DISTINCT + 65 * - 99 AS col1
----
-6435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2334
SELECT ALL COALESCE ( 99, - - COUNT( * ) * - COALESCE ( 69, MIN( DISTINCT 89 ) * - + 87 ) + - 75 DIV COUNT( ALL 98 ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL COALESCE ( 99, - - COUNT ( * ) * - COALESCE ( 69, MIN ( DISTINCT 89 ) * - + 87 ) + - 75 / COUNT ( ALL 98 ) ) AS col0
----
99

query I rowsort
SELECT - 77 + + 14 + - 31
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2336
SELECT - COUNT( * ) DIV + 69 * + 2 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2336
SELECT - COUNT ( * ) / + 69 * + 2 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2337
SELECT ALL 47 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL 47 / + 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT COUNT( * ) + ( - 15 ) + - + 79 / 76 * - COUNT( * ) * - ( MAX( ALL + ( CASE + 78 WHEN 69 THEN + 88 END ) ) ) * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2338
SELECT COUNT ( * ) + ( - 15 ) + - + 79 / 76 * - COUNT ( * ) * - ( MAX ( ALL + ( CASE + 78 WHEN 69 THEN + 88 END ) ) ) * 3
----
NULL

query I rowsort
SELECT 24 + + 92 + + - 68
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-2340
SELECT 27 DIV 98 DIV + - 58 * 84 AS col2, + 30
----
0
30

skipif mysql # not compatible
query II rowsort label-2340
SELECT 27 / 98 / + - 58 * 84 AS col2, + 30
----
0
30

onlyif mysql # DIV for integer division: 
query II rowsort label-2341
SELECT 63 DIV - 84 AS col1, ( + 17 )
----
0
17

skipif mysql # not compatible
query II rowsort label-2341
SELECT 63 / - 84 AS col1, ( + 17 )
----
0
17

query I rowsort
SELECT 34 + - 70 AS col0
----
-36

query I rowsort
SELECT 69 - - - 67 + + 36
----
38

query I rowsort
SELECT 43 + + 55
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT + 5 + + - 76 + + + COALESCE ( - NULLIF ( + ( - 70 ), 37 + SUM( DISTINCT + CASE - 66 WHEN 83 THEN NULL WHEN + 40 THEN NULL WHEN + 55 * - 69 THEN NULL ELSE 59 + 82 END ) ), - 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-2345
SELECT + 5 + + - 76 + + + COALESCE ( - NULLIF ( + ( - 70 ), 37 + SUM ( DISTINCT + CASE - 66 WHEN 83 THEN NULL WHEN + 40 THEN NULL WHEN + 55 * - 69 THEN NULL ELSE 59 + 82 END ) ), - 75 )
----
-1

query I rowsort
SELECT ALL - - 40 / 49 + + ( + CASE - + 78 WHEN 21 THEN 19 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2347
SELECT 17 DIV COUNT( * ) AS col2, + COUNT( * )
----
17
1

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

query II rowsort
SELECT ALL - 50 + 68 AS col2, ( - 18 ) AS col2
----
18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT + COUNT( - - 19 ) * 0 * - + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2349
SELECT + COUNT ( - - 19 ) * 0 * - + 91 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2350
SELECT ALL + - 27 + - 16 * - - CAST( NULL AS DECIMAL ) + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL + - 27 + - 16 * - - CAST ( NULL AS REAL ) + + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT MAX( + + 43 ) * - 22 * 42 + + ( + 30 ) col2
----
-39702

skipif mysql # not compatible
query I rowsort label-2351
SELECT MAX ( + + 43 ) * - 22 * 42 + + ( + 30 ) col2
----
-39702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2352
SELECT + + 32 DIV COUNT( * ) + 88 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-2352
SELECT + + 32 / COUNT ( * ) + 88 AS col0
----
120

query I rowsort
SELECT 9 + 99 AS col1
----
108

query I rowsort
SELECT DISTINCT - 15 * - + 17
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT ALL - 4 DIV - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL - 4 / - 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT 88 * - 64 * - 35 + - - 30 * COUNT( + 21 ) col2
----
197150

skipif mysql # not compatible
query I rowsort label-2356
SELECT 88 * - 64 * - 35 + - - 30 * COUNT ( + 21 ) col2
----
197150

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT ALL COALESCE ( - + 88, + 84 + + + ( + + COUNT( * ) ) + + 72, - CASE + + 56 WHEN - - 7 THEN 85 END ) * 91
----
-8008

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL COALESCE ( - + 88, + 84 + + + ( + + COUNT ( * ) ) + + 72, - CASE + + 56 WHEN - - 7 THEN 85 END ) * 91
----
-8008

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT NULLIF ( - 38, 78 + - + COUNT( * ) + 49 ) + - CASE 33 WHEN + - 24 + - COUNT( * ) THEN 64 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT NULLIF ( - 38, 78 + - + COUNT ( * ) + 49 ) + - CASE 33 WHEN + - 24 + - COUNT ( * ) THEN 64 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT 93 * + 8 * + COUNT( * ) * - 63
----
-46872

skipif mysql # not compatible
query I rowsort label-2360
SELECT 93 * + 8 * + COUNT ( * ) * - 63
----
-46872

query I rowsort
SELECT 29 * 31 AS col1
----
899

query I rowsort
SELECT ALL 72 - + 89 * - ( + 3 )
----
339

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2363
SELECT CAST( NULL AS SIGNED ) * + 2 * - 65 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT CAST ( NULL AS INTEGER ) * + 2 * - 65 col1
----
NULL

query II rowsort
SELECT ALL 84 col0, - 23 AS col0
----
84
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-2365
SELECT DISTINCT 35 AS col2, - COALESCE ( + MIN( ALL + 73 ), - - COALESCE ( - 78, 57 ) ) * + + 88
----
35
-6424

skipif mysql # not compatible
query II rowsort label-2365
SELECT DISTINCT 35 AS col2, - COALESCE ( + MIN ( ALL + 73 ), - - COALESCE ( - 78, 57 ) ) * + + 88
----
35
-6424

query I rowsort
SELECT 47 - + 25
----
22

query II rowsort
SELECT ALL 93 AS col0, - 88 AS col2
----
93
-88

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

skipif mysql # not compatible
query I rowsort label-2368
SELECT CAST ( NULL AS INTEGER ) * + 85
----
NULL

query I rowsort
SELECT 53 * - 15 * 9
----
-7155

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT DISTINCT + COALESCE ( + + 92, - MIN( + 40 ) * + - 42, - - 96 ) * + 92
----
8464

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT + COALESCE ( + + 92, - MIN ( + 40 ) * + - 42, - - 96 ) * + 92
----
8464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2371
SELECT 37 + NULLIF ( - + 6, - SUM( ALL - - 14 ) + + + 85 ) DIV - 81
----
37

skipif mysql # not compatible
query I rowsort label-2371
SELECT 37 + NULLIF ( - + 6, - SUM ( ALL - - 14 ) + + + 85 ) / - 81
----
37

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

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

query I rowsort
SELECT DISTINCT - 7 * + 6
----
-42

query I rowsort
SELECT DISTINCT 17 * 43 AS col1
----
731

query I rowsort
SELECT ALL - 9 + + 61 AS col2
----
52

query I rowsort
SELECT DISTINCT + 51 + - 96 AS col2
----
-45

query II rowsort
SELECT - 66 AS col0, + 11
----
-66
11

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

skipif mysql # not compatible
query I rowsort label-2378
SELECT - AVG ( ALL - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT ALL 27 AS col0, + CASE 80 WHEN - ( + 40 ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE 70 * + 19 END
----
27
1330

skipif mysql # not compatible
query II rowsort label-2379
SELECT ALL 27 AS col0, + CASE 80 WHEN - ( + 40 ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 70 * + 19 END
----
27
1330

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2380
SELECT 54 / - 87 * + + COUNT( * ) / COUNT( * ) - COUNT( * ) + + ( - CAST( NULL AS DECIMAL ) ) + + + 57 * + - 16 * - - 40 * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2380
SELECT 54 / - 87 * + + COUNT ( * ) / COUNT ( * ) - COUNT ( * ) + + ( - CAST ( NULL AS REAL ) ) + + + 57 * + - 16 * - - 40 * 8
----
NULL

query I rowsort
SELECT NULLIF ( - 34, - 51 ) - - 8 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT + MIN( - 22 ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-2382
SELECT + MIN ( - 22 ) col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2383
SELECT + - ( + + 77 ) DIV - COUNT( * ) + - - 24 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-2383
SELECT + - ( + + 77 ) / - COUNT ( * ) + - - 24 AS col2
----
101

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

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

query I rowsort
SELECT + 77 * + 77
----
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT ALL - + 20 * - - AVG ( + - 4 ) * CASE - - 62 WHEN - 42 * - - 78 + 34 THEN NULL WHEN 44 THEN + 82 * + CASE + COUNT( * ) / 87 + 67 WHEN COUNT( * ) THEN NULL WHEN 54 * - 58 + 44 THEN 74 WHEN 12 THEN - CASE 16 WHEN - 3 + - 80 THEN 88 * + NULLIF ( - 73 * + 54, 55 * 80 ) END * 28 END WHEN 27 THEN - 3 ELSE NULL END * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL - + 20 * - - AVG ( + - 4 ) * CASE - - 62 WHEN - 42 * - - 78 + 34 THEN NULL WHEN 44 THEN + 82 * + CASE + COUNT ( * ) / 87 + 67 WHEN COUNT ( * ) THEN NULL WHEN 54 * - 58 + 44 THEN 74 WHEN 12 THEN - CASE 16 WHEN - 3 + - 80 THEN 88 * + NULLIF ( - 73 * + 54, 55 * 80 ) END * 28 END WHEN 27 THEN - 3 ELSE NULL END * 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2387
SELECT DISTINCT + COALESCE ( - 37, + 87 + - 76, - NULLIF ( NULLIF ( - 36, 58 + - - CAST( NULL AS SIGNED ) * - + 40 * 85 ), 42 * + 92 + - 17 ) * - 4 ) * COUNT( * ) - 62 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT + COALESCE ( - 37, + 87 + - 76, - NULLIF ( NULLIF ( - 36, 58 + - - CAST ( NULL AS INTEGER ) * - + 40 * 85 ), 42 * + 92 + - 17 ) * - 4 ) * COUNT ( * ) - 62 AS col0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2388
SELECT 3 + - ( - 89 ) * + + 77 * COUNT( * ) AS col0, 20 * COALESCE ( - - 26, - + 91 * - 20 + - 51 DIV COUNT( * ), + 44 ) + 20 AS col2
----
6856
540

skipif mysql # not compatible
query II rowsort label-2388
SELECT 3 + - ( - 89 ) * + + 77 * COUNT ( * ) AS col0, 20 * COALESCE ( - - 26, - + 91 * - 20 + - 51 / COUNT ( * ), + 44 ) + 20 AS col2
----
6856
540

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT - 13 + CASE + COALESCE ( + - 50, + 85 ) WHEN 36 * + ( - 74 ) * 80 / - MAX( ALL + 22 ) + 28 THEN - 71 * - 87 WHEN - COUNT( * ) + + 26 * 60 THEN 85 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT - 13 + CASE + COALESCE ( + - 50, + 85 ) WHEN 36 * + ( - 74 ) * 80 / - MAX ( ALL + 22 ) + 28 THEN - 71 * - 87 WHEN - COUNT ( * ) + + 26 * 60 THEN 85 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 67 AS col2, 97 AS col1
----
-67
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT COUNT( * ) + - NULLIF ( 34, - + 75 * - + 7 + - 13 + + COUNT( * ) ) * - + 44
----
1497

skipif mysql # not compatible
query I rowsort label-2391
SELECT COUNT ( * ) + - NULLIF ( 34, - + 75 * - + 7 + - 13 + + COUNT ( * ) ) * - + 44
----
1497

query II rowsort
SELECT DISTINCT - 51, ( + 37 ) AS col0
----
-51
37

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT 28 DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-2394
SELECT 28 / + 59
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2395
SELECT DISTINCT 83 DIV 65 * - 24
----
-24

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT 83 / 65 * - 24
----
-24

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

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

query I rowsort
SELECT + 12 + 15
----
27

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

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL COUNT ( * ) * + COUNT ( * ) * - - 35 / - - 8 AS col2
----
4

query I rowsort
SELECT + 30 * - 18
----
-540

query I rowsort
SELECT + ( + + 38 ) * - + 59 AS col1
----
-2242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2401
SELECT + COUNT( * ) + + CAST( - - 43 AS SIGNED ) + - 56 col2, 23 AS col0
----
-12
23

skipif mysql # not compatible
query II rowsort label-2401
SELECT + COUNT ( * ) + + CAST ( - - 43 AS INTEGER ) + - 56 col2, 23 AS col0
----
-12
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT - COALESCE ( - - COUNT( * ), - - 20 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2402
SELECT - COALESCE ( - - COUNT ( * ), - - 20 ) AS col2
----
-1

query I rowsort
SELECT + 94 + - 35 AS col0
----
59

query II rowsort
SELECT 70, + 31 AS col2
----
70
31

query I rowsort
SELECT + 70 + 21 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL + 48 + NULLIF ( + - 60, + NULLIF ( - 98, + 10 * - - SUM( + - 72 ) + COUNT( * ) + 57 * - - 47 + + 42 ) + + 6 ) + 42 * + 37 AS col0
----
1542

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL + 48 + NULLIF ( + - 60, + NULLIF ( - 98, + 10 * - - SUM ( + - 72 ) + COUNT ( * ) + 57 * - - 47 + + 42 ) + + 6 ) + 42 * + 37 AS col0
----
1542

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT DISTINCT - 22 + - - ( - COALESCE ( + COALESCE ( - NULLIF ( - MIN( ALL + - 74 ), + 91 ), 27, + 90 + + COUNT( * ) * 97, 4 ), 9 ) )
----
52

skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT - 22 + - - ( - COALESCE ( + COALESCE ( - NULLIF ( - MIN ( ALL + - 74 ), + 91 ), 27, + 90 + + COUNT ( * ) * 97, 4 ), 9 ) )
----
52

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

skipif mysql # not compatible
query I rowsort label-2408
SELECT + + MIN ( + 10 ) + + ( + + COUNT ( * ) ) * - - 85 AS col0
----
95

query I rowsort
SELECT - - 78 + + 22
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2410
SELECT ALL + 98 * + 85 + - - 16 * - 41 + + 72 - + - MAX( ALL - - 94 ) - - 61 - - 71 + - - ( 7 ) * - COUNT( * ) * COUNT( * ) DIV 59
----
7972

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL + 98 * + 85 + - - 16 * - 41 + + 72 - + - MAX ( ALL - - 94 ) - - 61 - - 71 + - - ( 7 ) * - COUNT ( * ) * COUNT ( * ) / 59
----
7972

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT + COALESCE ( 34, ( 22 ), - + COUNT( * ) + + + 14 ) * + + 83 AS col2
----
2822

skipif mysql # not compatible
query I rowsort label-2411
SELECT + COALESCE ( 34, ( 22 ), - + COUNT ( * ) + + + 14 ) * + + 83 AS col2
----
2822

query I rowsort
SELECT - 90 + - - 26 * - 37
----
-1052

query II rowsort
SELECT - + 15 AS col0, - 88 + - 51
----
-15
-139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2414
SELECT ALL CAST( NULL AS SIGNED ) * - COALESCE ( CASE 22 WHEN + ( + + 75 ) THEN 33 + + MIN( + + 8 ) ELSE NULL END, MAX( - 26 ) ) * COUNT( * ) + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL CAST ( NULL AS INTEGER ) * - COALESCE ( CASE 22 WHEN + ( + + 75 ) THEN 33 + + MIN ( + + 8 ) ELSE NULL END, MAX ( - 26 ) ) * COUNT ( * ) + + 96
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2415
SELECT - 29 AS col2, + 52 + + 28 + CASE - 32 WHEN + AVG ( + + 6 ) + ( 0 ) THEN + + 42 END / - COUNT( * ) * 40
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-2415
SELECT - 29 AS col2, + 52 + + 28 + CASE - 32 WHEN + AVG ( + + 6 ) + ( 0 ) THEN + + 42 END / - COUNT ( * ) * 40
----
-29
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2416
SELECT DISTINCT COUNT( * ) * 35 DIV + - 12 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT COUNT ( * ) * 35 / + - 12 AS col0
----
-2

query I rowsort
SELECT ALL + CASE - - 86 WHEN + - 20 / + 56 THEN NULL WHEN - + ( + 97 ) THEN 51 END AS col0
----
NULL

query I rowsort
SELECT + - 65 * + 38 col1
----
-2470

query I rowsort
SELECT - CASE + + 52 WHEN + 36 THEN + - 16 * - + 80 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT ALL + 21 DIV - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL + 21 / - 70 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2421
SELECT - NULLIF ( 67, 19 * - 85 ) + + - 16 DIV + - 2 + - + COUNT( * ) DIV - 21
----
-59

skipif mysql # not compatible
query I rowsort label-2421
SELECT - NULLIF ( 67, 19 * - 85 ) + + - 16 / + - 2 + - + COUNT ( * ) / - 21
----
-59

query I rowsort
SELECT - 84 * ( + 22 )
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT - 43 * - COUNT( * ) * - 49 AS col0
----
-2107

skipif mysql # not compatible
query I rowsort label-2423
SELECT - 43 * - COUNT ( * ) * - 49 AS col0
----
-2107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2424
SELECT ALL + 24 DIV 52 AS col1, 53 DIV + COUNT( * ) + 48
----
0
101

skipif mysql # not compatible
query II rowsort label-2424
SELECT ALL + 24 / 52 AS col1, 53 / + COUNT ( * ) + 48
----
0
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2425
SELECT DISTINCT + CAST( 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT + CAST ( 51 AS INTEGER )
----
51

query I rowsort
SELECT DISTINCT + ( - 40 ) * - 87
----
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT ALL - SUM( + + 64 ) * + 76
----
-4864

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL - SUM ( + + 64 ) * + 76
----
-4864

query I rowsort
SELECT - 52 * - - 17 + - + 47 col2
----
-931

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

skipif mysql # not compatible
query I rowsort label-2429
SELECT + MIN ( 33 )
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT + COALESCE ( ( 25 ), ( - 65 ) * CASE - 32 WHEN - + ( + + 44 ) THEN - - COALESCE ( + + 54, - + 21 ) + + COUNT( * ) * + 91 ELSE NULL END + 91 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2431
SELECT + COALESCE ( ( 25 ), ( - 65 ) * CASE - 32 WHEN - + ( + + 44 ) THEN - - COALESCE ( + + 54, - + 21 ) + + COUNT ( * ) * + 91 ELSE NULL END + 91 ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2432
SELECT ALL CASE - + 24 WHEN + ( 34 ) THEN + 93 END * - - 98 + + + COUNT( * ) + 90 * - 35 * + 16 * - CAST( NULL AS SIGNED ) + - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL CASE - + 24 WHEN + ( 34 ) THEN + 93 END * - - 98 + + + COUNT ( * ) + 90 * - 35 * + 16 * - CAST ( NULL AS INTEGER ) + - - 87
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2433
SELECT - MAX( 27 ) - - 15 * + + 3 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT - MAX ( 27 ) - - 15 * + + 3 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT DISTINCT - COUNT( * ) * 38 + + 8 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT - COUNT ( * ) * 38 + + 8 AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2435
SELECT ALL + 88 * + SUM( ALL - 25 ) + - - COUNT( * ) * 94 + - 27 - - CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL + 88 * + SUM ( ALL - 25 ) + - - COUNT ( * ) * 94 + - 27 - - CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 5 * + 16 * 39 + + 0 + 72 AS col1
----
-3048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2437
SELECT DISTINCT CAST( + MAX( - CASE + 62 WHEN + 16 / 39 * + + 51 THEN - 15 END ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT CAST ( + MAX ( - CASE + 62 WHEN + 16 / 39 * + + 51 THEN - 15 END ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 76 * + 44 * - - ( - 23 ) + + + 72 AS col1
----
-76840

query I rowsort
SELECT ALL 45 * + CASE - - 9 WHEN + 46 THEN 52 END + - 49 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT + COUNT( * ) * - 51 col1
----
-51

skipif mysql # not compatible
query I rowsort label-2440
SELECT + COUNT ( * ) * - 51 col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2441
SELECT ALL + 89 DIV + - 96, COALESCE ( - - COUNT( * ), 98 * + 33 - + 95 ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-2441
SELECT ALL + 89 / + - 96, COALESCE ( - - COUNT ( * ), 98 * + 33 - + 95 ) AS col0
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2442
SELECT + NULLIF ( - 43, + + 66 ) DIV + - NULLIF ( + COUNT( * ), - + SUM( 71 ) * - 25 + + + 87 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-2442
SELECT + NULLIF ( - 43, + + 66 ) / + - NULLIF ( + COUNT ( * ), - + SUM ( 71 ) * - 25 + + + 87 ) AS col1
----
43

query I rowsort
SELECT + 99 - + 15 * 93
----
-1296

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2444
SELECT - CAST( + 99 AS SIGNED ) AS col1, - 84 - 13
----
-99
-97

skipif mysql # not compatible
query II rowsort label-2444
SELECT - CAST ( + 99 AS INTEGER ) AS col1, - 84 - 13
----
-99
-97

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

query I rowsort
SELECT + 9 + 55 AS col1
----
64

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

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

query I rowsort
SELECT + 32 * - 56
----
-1792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2449
SELECT DISTINCT - CAST( + 41 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT - CAST ( + 41 AS INTEGER )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-2450
SELECT DISTINCT + ( - COUNT( * ) ) - 22 AS col2, - 40 AS col0
----
-23
-40

skipif mysql # not compatible
query II rowsort label-2450
SELECT DISTINCT + ( - COUNT ( * ) ) - 22 AS col2, - 40 AS col0
----
-23
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2451
SELECT + - 22 DIV - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2451
SELECT + - 22 / - 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT + - 36 * + 22 + + MIN( DISTINCT - 52 ) * - - 51 AS col0
----
-3444

skipif mysql # not compatible
query I rowsort label-2452
SELECT + - 36 * + 22 + + MIN ( DISTINCT - 52 ) * - - 51 AS col0
----
-3444

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2454
SELECT - 8 * + - 13 col2, MAX( DISTINCT + 77 )
----
104
77

skipif mysql # not compatible
query II rowsort label-2454
SELECT - 8 * + - 13 col2, MAX ( DISTINCT + 77 )
----
104
77

query I rowsort
SELECT ALL 17 * - + NULLIF ( + 39, + ( - 24 ) )
----
-663

query I rowsort
SELECT + + CASE COALESCE ( - 50, - 90 ) WHEN - + 55 / 48 * - 65 - 73 * - 37 THEN NULL ELSE + 27 - 55 END * + COALESCE ( 32, 20 ) * + 65 + 99
----
-58141

query I rowsort
SELECT 28 * 26 * 7 + - 97 + - 53 - 18 AS col0
----
4928

query II rowsort
SELECT ALL - 64 col1, - ( 23 ) - - 14
----
-64
-9

query I rowsort
SELECT ALL + 92 + 90 + + - 67 - 70 * - 84
----
5995

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2460
SELECT ALL 1 + - 42 * + CAST( NULL AS DECIMAL ) + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL 1 + - 42 * + CAST ( NULL AS REAL ) + 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2461
SELECT + 26 AS col0, 86 * - COUNT( * ) col0
----
26
-86

skipif mysql # not compatible
query II rowsort label-2461
SELECT + 26 AS col0, 86 * - COUNT ( * ) col0
----
26
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT DISTINCT - COUNT( * ) + - 86 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT - COUNT ( * ) + - 86 AS col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2463
SELECT - 23 * + COUNT( * ) * - 89 * - 0 * + CAST( NULL AS SIGNED ) + ( 57 ) + AVG ( DISTINCT + 99 ) / + CASE - 81 WHEN + 65 THEN - + 11 + 94 END * 77 - - 16 / 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT - 23 * + COUNT ( * ) * - 89 * - 0 * + CAST ( NULL AS INTEGER ) + ( 57 ) + AVG ( DISTINCT + 99 ) / + CASE - 81 WHEN + 65 THEN - + 11 + 94 END * 77 - - 16 / 58 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 2 * 55 AS col1
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2465
SELECT DISTINCT + 48 + - + 44 * - 35 AS col0, CAST( + 25 AS SIGNED ) + - + 80 * - + 15 col2
----
1588
1225

skipif mysql # not compatible
query II rowsort label-2465
SELECT DISTINCT + 48 + - + 44 * - 35 AS col0, CAST ( + 25 AS INTEGER ) + - + 80 * - + 15 col2
----
1588
1225

query II rowsort
SELECT ALL - 98 AS col2, 2 AS col2
----
-98
2

query I rowsort
SELECT 94 * - + 98 + - 4
----
-9216

query I rowsort
SELECT ALL - 57 * - COALESCE ( + - 11, + 55, + + 74 )
----
-627

query I rowsort
SELECT 82 + + + 51 AS col0
----
133

query I rowsort
SELECT ALL + 85 * + 78 AS col0
----
6630

query I rowsort
SELECT ALL - 31 - 4
----
-35

query I rowsort
SELECT 9 * + + 50
----
450

query I rowsort
SELECT 40 + + 34 AS col2
----
74

query I rowsort
SELECT ALL - + 13 - + 18
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT + COUNT( - - 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2475
SELECT + COUNT ( - - 92 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2476
SELECT DISTINCT COUNT( * ), 16 * 2 AS col0
----
1
32

skipif mysql # not compatible
query II rowsort label-2476
SELECT DISTINCT COUNT ( * ), 16 * 2 AS col0
----
1
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT - NULLIF ( + COUNT( DISTINCT - + 10 ), - 92 + - 41 ) + 65 * 77 AS col1
----
5004

skipif mysql # not compatible
query I rowsort label-2477
SELECT - NULLIF ( + COUNT ( DISTINCT - + 10 ), - 92 + - 41 ) + 65 * 77 AS col1
----
5004

query II rowsort
SELECT - 13 AS col0, - 77 * + 42
----
-13
-3234

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT + 88 + 91 * 16 + + 3 * - - CASE - - 44 WHEN + 6 * + 88 * + COUNT( * ) - 99 + - 50 * + - 82 + - - ( ( 96 ) ) + + 33 * - NULLIF ( 48, COUNT( * ) ) THEN 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT + 88 + 91 * 16 + + 3 * - - CASE - - 44 WHEN + 6 * + 88 * + COUNT ( * ) - 99 + - 50 * + - 82 + - - ( ( 96 ) ) + + 33 * - NULLIF ( 48, COUNT ( * ) ) THEN 51 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT DISTINCT SUM( DISTINCT - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT SUM ( DISTINCT - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT ALL + CASE - - 72 WHEN 51 + - 58 * - 29 - - + COUNT( DISTINCT + 20 ) THEN + 3 WHEN + 18 THEN NULL ELSE + 44 * - 80 - + 38 * - 40 END AS col0
----
-2000

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL + CASE - - 72 WHEN 51 + - 58 * - 29 - - + COUNT ( DISTINCT + 20 ) THEN + 3 WHEN + 18 THEN NULL ELSE + 44 * - 80 - + 38 * - 40 END AS col0
----
-2000

query I rowsort
SELECT ALL - 94 + 83 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT DISTINCT + 35 * COUNT( * ) + + - 28 + - 20
----
-13

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT + 35 * COUNT ( * ) + + - 28 + - 20
----
-13

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

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

query I rowsort
SELECT ALL + ( - + 18 ) + + NULLIF ( 84, + - 10 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT COALESCE ( 36, + - SUM( DISTINCT - - 47 ), 96 * - ( - 75 ) )
----
36

skipif mysql # not compatible
query I rowsort label-2487
SELECT COALESCE ( 36, + - SUM ( DISTINCT - - 47 ), 96 * - ( - 75 ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT ALL - 44 + - 30 + - COUNT( * ) * 79 col1
----
-153

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL - 44 + - 30 + - COUNT ( * ) * 79 col1
----
-153

query I rowsort
SELECT 38 * - 28
----
-1064

query I rowsort
SELECT DISTINCT 49 * - 83 AS col1
----
-4067

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT COUNT( * ) * 84 * - + 53 * MAX( DISTINCT 68 ) * + + COUNT( * ) AS col2
----
-302736

skipif mysql # not compatible
query I rowsort label-2491
SELECT COUNT ( * ) * 84 * - + 53 * MAX ( DISTINCT 68 ) * + + COUNT ( * ) AS col2
----
-302736

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2492
SELECT ALL 95 + 41 + CAST( + 86 AS SIGNED ) + + 37, - 37 + + 56 * - 79 AS col2
----
259
-4461

skipif mysql # not compatible
query II rowsort label-2492
SELECT ALL 95 + 41 + CAST ( + 86 AS INTEGER ) + + 37, - 37 + + 56 * - 79 AS col2
----
259
-4461

query I rowsort
SELECT DISTINCT ( - 15 ) + + 33 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2494
SELECT ALL 59 + - 2 * - 89 * + CASE - 40 WHEN - 41 * + + 58 + + + 49 + 9 THEN NULL WHEN + 4 * 50 / + + 36 * + + 99 * 64 THEN 78 * ( 76 ) - 34 * + COALESCE ( ( - 3 ), NULLIF ( - 49, 94 ) * - MIN( CAST( NULL AS SIGNED ) * - ( 49 * - 25 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL 59 + - 2 * - 89 * + CASE - 40 WHEN - 41 * + + 58 + + + 49 + 9 THEN NULL WHEN + 4 * 50 / + + 36 * + + 99 * 64 THEN 78 * ( 76 ) - 34 * + COALESCE ( ( - 3 ), NULLIF ( - 49, 94 ) * - MIN ( CAST ( NULL AS INTEGER ) * - ( 49 * - 25 ) ) ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2496
SELECT ALL + 62 + - 47 AS col2, - MIN( DISTINCT 97 ) - + 69 + - 31 AS col0
----
15
-197

skipif mysql # not compatible
query II rowsort label-2496
SELECT ALL + 62 + - 47 AS col2, - MIN ( DISTINCT 97 ) - + 69 + - 31 AS col0
----
15
-197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2497
SELECT CAST( - - 14 AS SIGNED ) * + 62 - + - 45 * + 45 + + 24 + - 51 * + CASE 47 WHEN + 11 THEN + - ( 18 ) + - COUNT( * ) / - 36 / 51 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT CAST ( - - 14 AS INTEGER ) * + 62 - + - 45 * + 45 + + 24 + - 51 * + CASE 47 WHEN + 11 THEN + - ( 18 ) + - COUNT ( * ) / - 36 / 51 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT 79 + COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2498
SELECT 79 + COUNT ( * ) AS col1
----
80

query I rowsort
SELECT 53 * 46 * + COALESCE ( + 9, 15, 95 )
----
21942

query II rowsort
SELECT ALL + 99 - + + 15 AS col0, + 26 AS col1
----
84
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2501
SELECT 7 DIV + MAX( 82 )
----
0

skipif mysql # not compatible
query I rowsort label-2501
SELECT 7 / + MAX ( 82 )
----
0

query I rowsort
SELECT ALL - + 53 * - - ( - - 65 ) + + 46
----
-3399

query I rowsort
SELECT + 87 * + 36
----
3132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2504
SELECT DISTINCT COUNT( + COALESCE ( + 15, 82, 32 * 58 ) ) DIV - 53, 94 * 64 col1
----
0
6016

skipif mysql # not compatible
query II rowsort label-2504
SELECT DISTINCT COUNT ( + COALESCE ( + 15, 82, 32 * 58 ) ) / - 53, 94 * 64 col1
----
0
6016

query I rowsort
SELECT ALL - + 78 * - + 41 * - 72
----
-230256

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2507
SELECT ALL + - 48 * + + 99 AS col1, + 82 * 56 * - COUNT( * ) + - 56
----
-4752
-4648

skipif mysql # not compatible
query II rowsort label-2507
SELECT ALL + - 48 * + + 99 AS col1, + 82 * 56 * - COUNT ( * ) + - 56
----
-4752
-4648

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT + 89 - + 10 + + ( + MIN( DISTINCT 40 ) ) * - - 10 * ( + + 68 ) AS col2
----
27279

skipif mysql # not compatible
query I rowsort label-2508
SELECT + 89 - + 10 + + ( + MIN ( DISTINCT 40 ) ) * - - 10 * ( + + 68 ) AS col2
----
27279

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT + CASE - COUNT( * ) WHEN - 69 THEN NULL ELSE - - 73 + - 48 END * + COUNT( DISTINCT + - 96 ) + + + 48
----
73

skipif mysql # not compatible
query I rowsort label-2509
SELECT + CASE - COUNT ( * ) WHEN - 69 THEN NULL ELSE - - 73 + - 48 END * + COUNT ( DISTINCT + - 96 ) + + + 48
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2510
SELECT CAST( + SUM( DISTINCT + 82 ) AS SIGNED ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2510
SELECT CAST ( + SUM ( DISTINCT + 82 ) AS INTEGER ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL + MIN( - 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL + MIN ( - 10 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT DISTINCT + + COUNT( * ) + + MIN( + - 74 ) col2
----
-73

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT + + COUNT ( * ) + + MIN ( + - 74 ) col2
----
-73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2514
SELECT - COUNT( * ) - COALESCE ( - - 68, 92 + - - ( + + 15 ) DIV + CAST( NULL AS SIGNED ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-2514
SELECT - COUNT ( * ) - COALESCE ( - - 68, 92 + - - ( + + 15 ) / + CAST ( NULL AS INTEGER ) ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL + - 93 + - 48 + + + COUNT( * ) * + 61
----
-80

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL + - 93 + - 48 + + + COUNT ( * ) * + 61
----
-80

query I rowsort
SELECT DISTINCT - + 31 + - 81 AS col2
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2517
SELECT - 96 + - + 22 DIV 27 + - COALESCE ( - SUM( + ( 90 ) ), + - NULLIF ( - 55, 85 ) ) * + + NULLIF ( - 1, + + CAST( NULL AS SIGNED ) * + 20 + COUNT( * ) ) * 19 + - 52 AS col1
----
-1858

skipif mysql # not compatible
query I rowsort label-2517
SELECT - 96 + - + 22 / 27 + - COALESCE ( - SUM ( + ( 90 ) ), + - NULLIF ( - 55, 85 ) ) * + + NULLIF ( - 1, + + CAST ( NULL AS INTEGER ) * + 20 + COUNT ( * ) ) * 19 + - 52 AS col1
----
-1858

query I rowsort
SELECT + 14 * 77 * 13
----
14014

query I rowsort
SELECT ALL - 92 + 39
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT - MIN( DISTINCT - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-2520
SELECT - MIN ( DISTINCT - 62 )
----
62

query I rowsort
SELECT - 78 + + 45
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2522
SELECT ( 0 ) / 58 - - COUNT( * ) + + 47 * + 59 * + CASE - + COUNT( * ) WHEN COUNT( * ) - + CAST( - 48 AS SIGNED ) * + + 74 - + + COUNT( * ) + + 55 THEN 0 END + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-2522
SELECT ( 0 ) / 58 - - COUNT ( * ) + + 47 * + 59 * + CASE - + COUNT ( * ) WHEN COUNT ( * ) - + CAST ( - 48 AS INTEGER ) * + + 74 - + + COUNT ( * ) + + 55 THEN 0 END + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT ALL + 22 * 98 + 43 * + - 0 * + COUNT( * ) + - 71
----
2085

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL + 22 * 98 + 43 * + - 0 * + COUNT ( * ) + - 71
----
2085

query I rowsort
SELECT ALL 21 * - 51 - 37
----
-1108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2525
SELECT + 47 * - CASE 51 WHEN COUNT( ALL - - 59 ) THEN - 41 * + + SUM( DISTINCT 78 ) * - COALESCE ( - + 14, - CAST( + COUNT( * ) AS SIGNED ) - ( + - 98 ) ) * + - 91 + MAX( DISTINCT 64 + - 61 / + 70 ) * + 88 + + 48 WHEN + COUNT( * ) THEN NULL END * + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT + 47 * - CASE 51 WHEN COUNT ( ALL - - 59 ) THEN - 41 * + + SUM ( DISTINCT 78 ) * - COALESCE ( - + 14, - CAST ( + COUNT ( * ) AS INTEGER ) - ( + - 98 ) ) * + - 91 + MAX ( DISTINCT 64 + - 61 / + 70 ) * + 88 + + 48 WHEN + COUNT ( * ) THEN NULL END * + 40 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2527
SELECT + 51 * - 9 + 66 - COUNT( * ) * CAST( NULL AS SIGNED ) * COUNT( * ) * + + 43 / CASE + 43 WHEN + + COUNT( * ) THEN - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT + 51 * - 9 + 66 - COUNT ( * ) * CAST ( NULL AS INTEGER ) * COUNT ( * ) * + + 43 / CASE + 43 WHEN + + COUNT ( * ) THEN - 67 END
----
NULL

query I rowsort
SELECT + ( 18 ) * - 98
----
-1764

query II rowsort
SELECT ALL + 33 AS col2, 66
----
33
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT + SUM( ALL - 15 ) + - 90 * + 26 + + COALESCE ( - ( + SUM( 92 ) ), + 37 ) col2
----
-2447

skipif mysql # not compatible
query I rowsort label-2530
SELECT + SUM ( ALL - 15 ) + - 90 * + 26 + + COALESCE ( - ( + SUM ( 92 ) ), + 37 ) col2
----
-2447

query I rowsort
SELECT ALL 54 * - 67
----
-3618

query I rowsort
SELECT DISTINCT + + CASE WHEN NOT + 0 IS NULL THEN NULL ELSE - 41 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2533
SELECT + - 98 * + 19 * - CASE - COUNT( * ) WHEN - 63 THEN + 10 * + CAST( 18 AS SIGNED ) WHEN - COUNT( * ) * + 4 THEN NULL END * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2533
SELECT + - 98 * + 19 * - CASE - COUNT ( * ) WHEN - 63 THEN + 10 * + CAST ( 18 AS INTEGER ) WHEN - COUNT ( * ) * + 4 THEN NULL END * 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT DISTINCT + COUNT( ALL 26 )
----
1

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT + COUNT ( ALL 26 )
----
1

query I rowsort
SELECT ALL - 38 + 1
----
-37

query I rowsort
SELECT - - 48 * 69 + - 57 AS col1
----
3255

query I rowsort
SELECT ALL + 46 + - 67 - - + 99 AS col0
----
78

query I rowsort
SELECT - + 66 + - ( + - 30 ) + + 42
----
6

query I rowsort
SELECT DISTINCT - 55 * 27 AS col2
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT ALL - - 29 + - SUM( ALL + 86 )
----
-57

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL - - 29 + - SUM ( ALL + 86 )
----
-57

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

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

query I rowsort
SELECT + - 5 * 91
----
-455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2543
SELECT - - COALESCE ( 72, - CAST( 2 AS SIGNED ), - COUNT( * ) ) + 13 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-2543
SELECT - - COALESCE ( 72, - CAST ( 2 AS INTEGER ), - COUNT ( * ) ) + 13 AS col2
----
85

query I rowsort
SELECT - 2 * - 47
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT - CASE - + 83 WHEN - 15 * - COUNT( * ) * 18 * + - 67 + COUNT( - 54 ) THEN NULL WHEN + + ( + 54 ) THEN NULL ELSE - + SUM( - + COALESCE ( 60, - + 86 * - - 70 + + ( - 55 ), 10 ) ) END + COALESCE ( 79, + 64 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2547
SELECT - CASE - + 83 WHEN - 15 * - COUNT ( * ) * 18 * + - 67 + COUNT ( - 54 ) THEN NULL WHEN + + ( + 54 ) THEN NULL ELSE - + SUM ( - + COALESCE ( 60, - + 86 * - - 70 + + ( - 55 ), 10 ) ) END + COALESCE ( 79, + 64 ) AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT ALL 42 * 23 DIV + 85
----
11

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL 42 * 23 / + 85
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT ALL - 61 - + 75 * SUM( - 63 ) AS col1
----
4664

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - 61 - + 75 * SUM ( - 63 ) AS col1
----
4664

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT - 72 * 73 * - MAX( ALL + 41 ) * + - 86 AS col2
----
-18532656

skipif mysql # not compatible
query I rowsort label-2550
SELECT - 72 * 73 * - MAX ( ALL + 41 ) * + - 86 AS col2
----
-18532656

onlyif mysql # aggregate syntax: 
query II rowsort label-2551
SELECT 30 AS col1, COUNT( * ) * 93 + MIN( COALESCE ( - - 54, - ( - 3 ), + 9 ) )
----
30
147

skipif mysql # not compatible
query II rowsort label-2551
SELECT 30 AS col1, COUNT ( * ) * 93 + MIN ( COALESCE ( - - 54, - ( - 3 ), + 9 ) )
----
30
147

query I rowsort
SELECT - 36 * 4
----
-144

query I rowsort
SELECT DISTINCT - 44 * + 54
----
-2376

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

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

query I rowsort
SELECT - 88 - 74
----
-162

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

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

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

query I rowsort
SELECT DISTINCT - 44 * - 85
----
3740

query II rowsort
SELECT DISTINCT + 49 AS col0, + 65 AS col1
----
49
65

query I rowsort
SELECT ALL + 27 * + + 72 * - - 88
----
171072

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2562
SELECT DISTINCT + - 61 AS col1, + 59 DIV - - ( - COUNT( * ) ) AS col1
----
-61
-59

skipif mysql # not compatible
query II rowsort label-2562
SELECT DISTINCT + - 61 AS col1, + 59 / - - ( - COUNT ( * ) ) AS col1
----
-61
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2563
SELECT - + 28 DIV + - 4 + - - NULLIF ( + 25, + 19 DIV 87 * 16 + + + CAST( NULL AS SIGNED ) ) * - 61
----
-1518

skipif mysql # not compatible
query I rowsort label-2563
SELECT - + 28 / + - 4 + - - NULLIF ( + 25, + 19 / 87 * 16 + + + CAST ( NULL AS INTEGER ) ) * - 61
----
-1518

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

query II rowsort
SELECT ALL + 74 AS col1, - 80 + + 23
----
74
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-2566
SELECT + - COUNT( * ), + NULLIF ( COUNT( * ), + 2 * - 46 ) * - COUNT( * ) * - ( MAX( - 80 ) ) AS col2
----
-1
-80

skipif mysql # not compatible
query II rowsort label-2566
SELECT + - COUNT ( * ), + NULLIF ( COUNT ( * ), + 2 * - 46 ) * - COUNT ( * ) * - ( MAX ( - 80 ) ) AS col2
----
-1
-80

query I rowsort
SELECT + 18 * + 82
----
1476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2568
SELECT ALL - - COALESCE ( + COUNT( * ), - + 37 + + + 4 - + + COUNT( ALL + + 34 ) DIV 12 + - 90 ) * + 77 + - 32 * + 69 AS col0
----
-2131

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL - - COALESCE ( + COUNT ( * ), - + 37 + + + 4 - + + COUNT ( ALL + + 34 ) / 12 + - 90 ) * + 77 + - 32 * + 69 AS col0
----
-2131

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2569
SELECT - CASE + 2 WHEN CAST( NULL AS DECIMAL ) THEN - 18 + - + ( 47 ) / + 14 END + - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT - CASE + 2 WHEN CAST ( NULL AS REAL ) THEN - 18 + - + ( 47 ) / + 14 END + - - 70
----
NULL

query II rowsort
SELECT 40, 1 AS col0
----
40
1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2572
SELECT DISTINCT + 76 + + + 19 * + + 78 * + - COALESCE ( - ( - 19 ), - + 0 * + ( + - 58 ) * - 10 + + 62, + 72 DIV - 51 - + 9 ) AS col2, 13
----
-28082
13

skipif mysql # not compatible
query II rowsort label-2572
SELECT DISTINCT + 76 + + + 19 * + + 78 * + - COALESCE ( - ( - 19 ), - + 0 * + ( + - 58 ) * - 10 + + 62, + 72 / - 51 - + 9 ) AS col2, 13
----
-28082
13

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

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

query I rowsort
SELECT DISTINCT 72 + + 99
----
171

query I rowsort
SELECT ALL CASE - NULLIF ( 47, + 68 ) WHEN + + 8 THEN + 79 / + 97 WHEN 1 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 91 + + - 84 AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2577
SELECT ALL COUNT( * ), 20 * - + 94 AS col0
----
1
-1880

skipif mysql # not compatible
query II rowsort label-2577
SELECT ALL COUNT ( * ), 20 * - + 94 AS col0
----
1
-1880

query II rowsort
SELECT DISTINCT 94 AS col2, - 53 AS col1
----
94
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2579
SELECT NULLIF ( COUNT( + ( + 45 ) ), + 95 + - - CAST( + + CASE + COUNT( * ) WHEN COUNT( * ) + 32 THEN - 51 * ( COALESCE ( - - 63, + 40 ) ) * - + 45 END AS SIGNED ) + 80 / 54 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2579
SELECT NULLIF ( COUNT ( + ( + 45 ) ), + 95 + - - CAST ( + + CASE + COUNT ( * ) WHEN COUNT ( * ) + 32 THEN - 51 * ( COALESCE ( - - 63, + 40 ) ) * - + 45 END AS INTEGER ) + 80 / 54 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT COALESCE ( - + 65, + NULLIF ( - + COUNT( * ), - 8 - + 98 ) ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-2580
SELECT COALESCE ( - + 65, + NULLIF ( - + COUNT ( * ), - 8 - + 98 ) ) col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2581
SELECT DISTINCT ( 69 ) DIV + 56 + - - ( NULLIF ( + 74, - + COUNT( * ) ) ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT ( 69 ) / + 56 + - - ( NULLIF ( + 74, - + COUNT ( * ) ) ) AS col2
----
75

query I rowsort
SELECT 72 - + - 10 AS col0
----
82

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT CAST( + 12 AS SIGNED ) + - + 13 * + 22 AS col1
----
-274

skipif mysql # not compatible
query I rowsort label-2584
SELECT CAST ( + 12 AS INTEGER ) + - + 13 * + 22 AS col1
----
-274

query I rowsort
SELECT 72 + - 50 AS col2
----
22

query II rowsort
SELECT ALL 70 * + 57 col2, 5 * + + 71 AS col1
----
3990
355

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT 78 * + - ( MIN( 18 ) )
----
-1404

skipif mysql # not compatible
query I rowsort label-2587
SELECT 78 * + - ( MIN ( 18 ) )
----
-1404

query I rowsort
SELECT DISTINCT 88 * + 59 AS col2
----
5192

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2589
SELECT ALL - CAST( - - 92 AS SIGNED ), 69 + + ( + - 71 ) DIV 91 * - 27 AS col0
----
-92
69

skipif mysql # not compatible
query II rowsort label-2589
SELECT ALL - CAST ( - - 92 AS INTEGER ), 69 + + ( + - 71 ) / 91 * - 27 AS col0
----
-92
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL + 40 + MAX( + + 22 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + 40 + MAX ( + + 22 ) AS col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2591
SELECT ALL + AVG ( DISTINCT 81 ) * - CAST( NULL AS SIGNED ) * 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL + AVG ( DISTINCT 81 ) * - CAST ( NULL AS INTEGER ) * 14 AS col1
----
NULL

query I rowsort
SELECT ALL - 40 + 27 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2593
SELECT + COUNT( * ) * + - 92 AS col2, 52 * + COUNT( * ) + - NULLIF ( + 58, 26 * + - MAX( 7 ) * - 62 * + 38 )
----
-92
-6

skipif mysql # not compatible
query II rowsort label-2593
SELECT + COUNT ( * ) * + - 92 AS col2, 52 * + COUNT ( * ) + - NULLIF ( + 58, 26 * + - MAX ( 7 ) * - 62 * + 38 )
----
-92
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT - + CASE + - 63 WHEN SUM( COALESCE ( - 84, + 89 * - 53 ) ) THEN NULL WHEN - - 31 + - 86 THEN - 29 * - - 40 WHEN - 47 + 36 THEN + + 42 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT - + CASE + - 63 WHEN SUM ( COALESCE ( - 84, + 89 * - 53 ) ) THEN NULL WHEN - - 31 + - 86 THEN - 29 * - - 40 WHEN - 47 + 36 THEN + + 42 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ALL - ( - COUNT( * ) ) + 67
----
68

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL - ( - COUNT ( * ) ) + 67
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT NULLIF ( - + NULLIF ( - 68, + NULLIF ( - COUNT( * ), 71 ) / 36 + 76 ), CASE 52 WHEN + 43 THEN NULL WHEN + COUNT( * ) * + 10 THEN - COUNT( * ) WHEN 50 * CASE + 75 WHEN 79 THEN + 35 * - 0 WHEN 19 + - COUNT( * ) * 49 THEN 93 ELSE NULL END * 42 THEN 91 END )
----
68

skipif mysql # not compatible
query I rowsort label-2596
SELECT NULLIF ( - + NULLIF ( - 68, + NULLIF ( - COUNT ( * ), 71 ) / 36 + 76 ), CASE 52 WHEN + 43 THEN NULL WHEN + COUNT ( * ) * + 10 THEN - COUNT ( * ) WHEN 50 * CASE + 75 WHEN 79 THEN + 35 * - 0 WHEN 19 + - COUNT ( * ) * 49 THEN 93 ELSE NULL END * 42 THEN 91 END )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2597
SELECT SUM( + CAST( NULL AS SIGNED ) ) * - 51 * 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) * - 51 * 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT ALL + - 75 + - + 3 + - - 21 + - COUNT( ALL - 19 ) + ( - - 57 ) + + + 90 * + - 5 * - 8 * - 43 AS col1
----
-154801

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL + - 75 + - + 3 + - - 21 + - COUNT ( ALL - 19 ) + ( - - 57 ) + + + 90 * + - 5 * - 8 * - 43 AS col1
----
-154801

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL + 10 + - 47 * - MAX( DISTINCT + ( ( - 27 ) ) ) * - 21 AS col2
----
26659

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL + 10 + - 47 * - MAX ( DISTINCT + ( ( - 27 ) ) ) * - 21 AS col2
----
26659

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT SUM( DISTINCT - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-2600
SELECT SUM ( DISTINCT - 19 )
----
-19

query I rowsort
SELECT ALL - + 62 * - 11 * 6
----
4092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT ALL + 77 + + ( - + 53 ) - + CAST( NULL AS SIGNED ) * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL + 77 + + ( - + 53 ) - + CAST ( NULL AS INTEGER ) * + 27
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT + + COUNT( * ) + 50 - + 41
----
10

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT + + COUNT ( * ) + 50 - + 41
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT + 23 DIV + 70 * - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2605
SELECT + 23 / + 70 * - 67 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT 27 * - + COUNT( + 99 ) col0
----
-27

skipif mysql # not compatible
query I rowsort label-2606
SELECT 27 * - + COUNT ( + 99 ) col0
----
-27

query I rowsort
SELECT 57 + - 75 col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT + 99 + COUNT( * ) * + 83 - - COUNT( - - 11 ) AS col0
----
183

skipif mysql # not compatible
query I rowsort label-2608
SELECT + 99 + COUNT ( * ) * + 83 - - COUNT ( - - 11 ) AS col0
----
183

query I rowsort
SELECT ALL 25 * - 48
----
-1200

query I rowsort
SELECT 72 + - 25
----
47

query I rowsort
SELECT ALL 89 * 94 AS col2
----
8366

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT COUNT( * ) * - 83 col1
----
-83

skipif mysql # not compatible
query I rowsort label-2612
SELECT COUNT ( * ) * - 83 col1
----
-83

query I rowsort
SELECT ( - 12 ) + + - 72 + 85 * - + 15 - - 47 * 14 * - - 3 AS col2
----
615

query II rowsort
SELECT 55 AS col2, 33 * + 82 - - - 87 + - 89 col1
----
55
2530

query I rowsort
SELECT 91 + 29 AS col0
----
120

query I rowsort
SELECT ( - - ( + + 39 ) ) * + 88 AS col0
----
3432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2617
SELECT - COUNT( * ) AS col2, + CAST( - + MAX( ALL - + 20 ) AS SIGNED ) * + - COUNT( * )
----
-1
-20

skipif mysql # not compatible
query II rowsort label-2617
SELECT - COUNT ( * ) AS col2, + CAST ( - + MAX ( ALL - + 20 ) AS INTEGER ) * + - COUNT ( * )
----
-1
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2618
SELECT ALL 47 + + - 5 * COUNT( * ) * + + 22 DIV COUNT( * ) + + ( + + 89 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL 47 + + - 5 * COUNT ( * ) * + + 22 / COUNT ( * ) + + ( + + 89 ) AS col1
----
26

query I rowsort
SELECT DISTINCT + 81 * + ( - 4 ) * 66 AS col1
----
-21384

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2620
SELECT CAST( - 50 AS SIGNED ) DIV - + 23 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2620
SELECT CAST ( - 50 AS INTEGER ) / - + 23 AS col1
----
2

query I rowsort
SELECT ALL 23 + + 77 col2
----
100

query I rowsort
SELECT DISTINCT 82 + + 28 AS col2
----
110

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT COALESCE ( ( - 98 ), - + COUNT( - + 26 ) * - 30 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-2624
SELECT COALESCE ( ( - 98 ), - + COUNT ( - + 26 ) * - 30 ) AS col1
----
-98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT 81 DIV - 36
----
-2

skipif mysql # not compatible
query I rowsort label-2626
SELECT 81 / - 36
----
-2

query I rowsort
SELECT 87 * - 3
----
-261

query I rowsort
SELECT + 31 - - - 35
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT DISTINCT - - ( - 56 ) * - - 27 * + MAX( - + 56 ) + + 26 + 96 * + ( COUNT( * ) ) * 42 col1
----
88730

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT - - ( - 56 ) * - - 27 * + MAX ( - + 56 ) + + 26 + 96 * + ( COUNT ( * ) ) * 42 col1
----
88730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT ALL + ( + CAST( - AVG ( + + 94 ) AS SIGNED ) )
----
-94

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL + ( + CAST ( - AVG ( + + 94 ) AS INTEGER ) )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2631
SELECT ALL - COUNT( ALL - + ( - ( + 45 ) ) ) * + - COUNT( ALL - 77 ) * 30 + + 55 + - 84 * + NULLIF ( + - 12, 48 * + COUNT( * ) ) + - 57 DIV + 30 AS col0
----
1092

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL - COUNT ( ALL - + ( - ( + 45 ) ) ) * + - COUNT ( ALL - 77 ) * 30 + + 55 + - 84 * + NULLIF ( + - 12, 48 * + COUNT ( * ) ) + - 57 / + 30 AS col0
----
1092

query I rowsort
SELECT ALL - 86 * - - 0 + - + 2
----
-2

query I rowsort
SELECT - 55 * + + 31 - ( + ( 10 ) )
----
-1715

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2634
SELECT ALL + CASE WHEN NULL <= + 63 THEN NULL WHEN + 59 + + CAST( - 65 AS SIGNED ) IS NULL THEN - ( - + 17 ) DIV + 20 + - - 72 + + + 18 ELSE - - 66 END * - + 21 + - 26 AS col1
----
-1412

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL + CASE WHEN NULL <= + 63 THEN NULL WHEN + 59 + + CAST ( - 65 AS INTEGER ) IS NULL THEN - ( - + 17 ) / + 20 + - - 72 + + + 18 ELSE - - 66 END * - + 21 + - 26 AS col1
----
-1412

query I rowsort
SELECT - + 54 * + + 42
----
-2268

query II rowsort
SELECT DISTINCT + 21 * 53 * + - 60 AS col0, + 51 AS col2
----
-66780
51

query II rowsort
SELECT - 96 * + 78 * 83, + 17 AS col2
----
-621504
17

query I rowsort
SELECT - 84 + - 66 AS col2
----
-150

query I rowsort
SELECT - 95 * - - 70 AS col0
----
-6650

onlyif mysql # DIV for integer division: 
query I rowsort label-2640
SELECT ALL - 3 DIV - ( - 46 )
----
0

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL - 3 / - ( - 46 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT - 13 - - + ( + 73 ) * 21 DIV + 35 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2641
SELECT - 13 - - + ( + 73 ) * 21 / + 35 AS col1
----
30

query I rowsort
SELECT + ( 51 ) * - 29 + + 51 + 66 AS col0
----
-1362

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

query I rowsort
SELECT - NULLIF ( + + 99, - 23 )
----
-99

query I rowsort
SELECT DISTINCT + 58 + 24
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT - ( - 48 ) * - COUNT( * ) * - 41 * - NULLIF ( + - 94, NULLIF ( + 53, - 54 / COALESCE ( + 4, - 65 ) + + - 38 * + COALESCE ( - 51, + + 67, 69 / 96, - 1 * 63 + 90 ) * + CASE - 14 WHEN 99 * ( + 8 ) - + 77 THEN NULL WHEN 2 THEN 91 END ) ) * 43
----
7954656

skipif mysql # not compatible
query I rowsort label-2646
SELECT - ( - 48 ) * - COUNT ( * ) * - 41 * - NULLIF ( + - 94, NULLIF ( + 53, - 54 / COALESCE ( + 4, - 65 ) + + - 38 * + COALESCE ( - 51, + + 67, 69 / 96, - 1 * 63 + 90 ) * + CASE - 14 WHEN 99 * ( + 8 ) - + 77 THEN NULL WHEN 2 THEN 91 END ) ) * 43
----
7954656

query I rowsort
SELECT ALL + 40 + 72 - 68
----
44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ALL 29 + - + COALESCE ( COALESCE ( - COUNT( * ), + - 20, 51 + + + ( - COUNT( * ) ) ), - COUNT( * ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL 29 + - + COALESCE ( COALESCE ( - COUNT ( * ), + - 20, 51 + + + ( - COUNT ( * ) ) ), - COUNT ( * ) ) AS col0
----
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT - ( - COUNT( * ) ) + + 65 + + - 44 + - 52 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2651
SELECT - ( - COUNT ( * ) ) + + 65 + + - 44 + - 52 AS col2
----
-30

query I rowsort
SELECT + 11 - + 41 + + 65 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2653
SELECT - CASE - SUM( ALL - 37 ) WHEN + - NULLIF ( 49, + 69 * - CAST( - CAST( - - 46 AS DECIMAL ) AS SIGNED ) + + 22 + - SUM( 31 ) ) / + 42 + 53 + - + 37 + + 83 + - 79 + - - ( 88 ) THEN 28 * - 4 WHEN + 82 * 7 + + COUNT( * ) / + 95 THEN 38 END + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2653
SELECT - CASE - SUM ( ALL - 37 ) WHEN + - NULLIF ( 49, + 69 * - CAST ( - CAST ( - - 46 AS REAL ) AS INTEGER ) + + 22 + - SUM ( 31 ) ) / + 42 + 53 + - + 37 + + 83 + - 79 + - - ( 88 ) THEN 28 * - 4 WHEN + 82 * 7 + + COUNT ( * ) / + 95 THEN 38 END + 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL 69 + NULLIF ( - COUNT( * ), + - CASE - - 41 WHEN + 6 THEN NULL WHEN + 2 THEN 86 * COUNT( * ) + 57 END + - 35 + 84 / + 24 ) - 8 + 16 * COUNT( * ) + + MIN( ALL 66 ) + - MAX( 76 ) col2
----
66

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL 69 + NULLIF ( - COUNT ( * ), + - CASE - - 41 WHEN + 6 THEN NULL WHEN + 2 THEN 86 * COUNT ( * ) + 57 END + - 35 + 84 / + 24 ) - 8 + 16 * COUNT ( * ) + + MIN ( ALL 66 ) + - MAX ( 76 ) col2
----
66

query II rowsort
SELECT + 81 * + 70, + 52 * + 61 + - 2 AS col2
----
5670
3170

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT DISTINCT - - COUNT( DISTINCT - 36 ) + - + ( - 93 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT - - COUNT ( DISTINCT - 36 ) + - + ( - 93 ) AS col0
----
94

query I rowsort
SELECT NULLIF ( - - 68, 45 ) AS col2
----
68

query I rowsort
SELECT + 16 * - 37 + 60
----
-532

onlyif mysql # DIV for integer division: 
query I rowsort label-2660
SELECT ALL - 39 DIV - 39 + - - 43
----
44

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL - 39 / - 39 + - - 43
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2661
SELECT + CAST( - + COALESCE ( + - 54, + 8 ) AS SIGNED ) * 78 + + NULLIF ( + 89, MAX( 22 ) + - - CASE COUNT( * ) WHEN + 85 THEN NULL ELSE - + MAX( DISTINCT 16 ) + 8 + - COUNT( * ) * - COUNT( * ) END + 97 ) DIV 33 + - 20 DIV 99
----
4214

skipif mysql # not compatible
query I rowsort label-2661
SELECT + CAST ( - + COALESCE ( + - 54, + 8 ) AS INTEGER ) * 78 + + NULLIF ( + 89, MAX ( 22 ) + - - CASE COUNT ( * ) WHEN + 85 THEN NULL ELSE - + MAX ( DISTINCT 16 ) + 8 + - COUNT ( * ) * - COUNT ( * ) END + 97 ) / 33 + - 20 / 99
----
4214

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT - 28 DIV - - 79 * 6 * 90 + - 97 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-2662
SELECT - 28 / - - 79 * 6 * 90 + - 97 AS col1
----
-97

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

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL - - 8 / COUNT ( * ) - + + 54 + + + 82 AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2664
SELECT + CAST( + 18 AS SIGNED ) + + 16 + - 51 + - CASE - - CASE 18 WHEN ( + 8 ) + 10 + 44 + 1 * + 76 THEN 61 WHEN + CAST( NULL AS DECIMAL ) THEN 50 END WHEN - 88 THEN 8 * + 43 + + COUNT( * ) WHEN - 86 THEN COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2664
SELECT + CAST ( + 18 AS INTEGER ) + + 16 + - 51 + - CASE - - CASE 18 WHEN ( + 8 ) + 10 + 44 + 1 * + 76 THEN 61 WHEN + CAST ( NULL AS REAL ) THEN 50 END WHEN - 88 THEN 8 * + 43 + + COUNT ( * ) WHEN - 86 THEN COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + - 39 * + - 46 + - 76 AS col1
----
1718

onlyif mysql # aggregate syntax: 
query II rowsort label-2666
SELECT - - 33 * - + COUNT( * ), 24 AS col0
----
-33
24

skipif mysql # not compatible
query II rowsort label-2666
SELECT - - 33 * - + COUNT ( * ), 24 AS col0
----
-33
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2667
SELECT ALL + + 89 * + - 74 - - MAX( DISTINCT + 96 ) DIV - + 11 - + - 40 * - 25
----
-7594

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL + + 89 * + - 74 - - MAX ( DISTINCT + 96 ) / - + 11 - + - 40 * - 25
----
-7594

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2668
SELECT + + 64 * COUNT( * ) - - COALESCE ( + 87, - + 78, + 52 * + ( + + COUNT( * ) ) + + 85 DIV 44 ) AS col0
----
151

skipif mysql # not compatible
query I rowsort label-2668
SELECT + + 64 * COUNT ( * ) - - COALESCE ( + 87, - + 78, + 52 * + ( + + COUNT ( * ) ) + + 85 / 44 ) AS col0
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2669
SELECT + - MAX( DISTINCT 51 ) DIV + 37
----
-1

skipif mysql # not compatible
query I rowsort label-2669
SELECT + - MAX ( DISTINCT 51 ) / + 37
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2670
SELECT - - 83 DIV - 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2670
SELECT - - 83 / - 99 AS col0
----
0

query I rowsort
SELECT DISTINCT + + 46 col0
----
46

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2673
SELECT + - 37 * 64 col0, SUM( DISTINCT - 76 ) AS col2
----
-2368
-76

skipif mysql # not compatible
query II rowsort label-2673
SELECT + - 37 * 64 col0, SUM ( DISTINCT - 76 ) AS col2
----
-2368
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT COALESCE ( - - COUNT( * ), - 86 - + - ( + 79 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2674
SELECT COALESCE ( - - COUNT ( * ), - 86 - + - ( + 79 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2675
SELECT CASE CASE - NULLIF ( COUNT( * ), ( - CAST( NULL AS DECIMAL ) ) * MIN( ALL - 19 ) * - 19 ) WHEN + 92 THEN 27 ELSE NULL END WHEN + + 93 - - 84 THEN - NULLIF ( - MIN( DISTINCT + 58 ), 91 * - 40 ) WHEN - - 76 + ( COUNT( * ) ) + 57 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT CASE CASE - NULLIF ( COUNT ( * ), ( - CAST ( NULL AS REAL ) ) * MIN ( ALL - 19 ) * - 19 ) WHEN + 92 THEN 27 ELSE NULL END WHEN + + 93 - - 84 THEN - NULLIF ( - MIN ( DISTINCT + 58 ), 91 * - 40 ) WHEN - - 76 + ( COUNT ( * ) ) + 57 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2676
SELECT ALL + COUNT( * ), 1 + + COUNT( * ) DIV + 41
----
1
1

skipif mysql # not compatible
query II rowsort label-2676
SELECT ALL + COUNT ( * ), 1 + + COUNT ( * ) / + 41
----
1
1

query I rowsort
SELECT ALL - 16 * - - 88 * + 48 * - + 41
----
2770944

query I rowsort
SELECT - 78 * - 86 AS col1
----
6708

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL 7 * - CASE + 62 WHEN + 60 THEN NULL WHEN 26 THEN - ( 8 ) ELSE NULL END + - + COUNT( * ) * + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL 7 * - CASE + 62 WHEN + 60 THEN NULL WHEN 26 THEN - ( 8 ) ELSE NULL END + - + COUNT ( * ) * + 43 AS col2
----
NULL

query II rowsort
SELECT + 19 * + - 11 + + - 26, 69 col2
----
-235
69

query I rowsort
SELECT ALL 38 * + + 46 + - 90 AS col0
----
1658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2682
SELECT ALL + MAX( - 94 ) * - 78 DIV - - COUNT( NULLIF ( - - 33, + + 82 + + 15 ) ) + + 76 * + 86 + - - 11 AS col0
----
13879

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + MAX ( - 94 ) * - 78 / - - COUNT ( NULLIF ( - - 33, + + 82 + + 15 ) ) + + 76 * + 86 + - - 11 AS col0
----
13879

query I rowsort
SELECT DISTINCT - 99 * + NULLIF ( + 89, 97 )
----
-8811

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2684
SELECT - CAST( NULL AS DECIMAL ) + ( - + MIN( DISTINCT - 79 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT - CAST ( NULL AS REAL ) + ( - + MIN ( DISTINCT - 79 ) ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2687
SELECT - 6 DIV + MAX( + 22 )
----
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT - 6 / + MAX ( + 22 )
----
0

query I rowsort
SELECT - 12 + + - 17 AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2689
SELECT - CASE + + 3 WHEN + 39 * + 39 + - COUNT( * ) - COUNT( * ) DIV + 4 * + - 1 THEN - + 66 WHEN - NULLIF ( + 97, - MIN( - 24 ) + - + 67 ) * 52 + + CASE + 76 WHEN - CAST( - CASE - COUNT( * ) WHEN - 59 - CAST( MIN( ALL - 47 ) AS SIGNED ) THEN + 2 ELSE - AVG ( + 25 ) * - 32 END AS DECIMAL ) THEN NULL WHEN 89 THEN 41 ELSE NULL END + + COUNT( * ) DIV 76 THEN NULL WHEN 32 THEN 66 + - 37 ELSE + 53 END DIV NULLIF ( 39, 58 * + NULLIF ( CAST( NULL AS SIGNED ), - 40 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2689
SELECT - CASE + + 3 WHEN + 39 * + 39 + - COUNT ( * ) - COUNT ( * ) / + 4 * + - 1 THEN - + 66 WHEN - NULLIF ( + 97, - MIN ( - 24 ) + - + 67 ) * 52 + + CASE + 76 WHEN - CAST ( - CASE - COUNT ( * ) WHEN - 59 - CAST ( MIN ( ALL - 47 ) AS INTEGER ) THEN + 2 ELSE - AVG ( + 25 ) * - 32 END AS REAL ) THEN NULL WHEN 89 THEN 41 ELSE NULL END + + COUNT ( * ) / 76 THEN NULL WHEN 32 THEN 66 + - 37 ELSE + 53 END / NULLIF ( 39, 58 * + NULLIF ( CAST ( NULL AS INTEGER ), - 40 ) )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2690
SELECT DISTINCT + ( - 6 ) DIV + 68 AS col2, + 50
----
0
50

skipif mysql # not compatible
query II rowsort label-2690
SELECT DISTINCT + ( - 6 ) / + 68 AS col2, + 50
----
0
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2691
SELECT DISTINCT + SUM( ALL - 16 ) DIV + - 85
----
0

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + SUM ( ALL - 16 ) / + - 85
----
0

query I rowsort
SELECT ALL - 9 - 96
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-2693
SELECT ALL 56 AS col0, + 87 - - - COUNT( - 80 )
----
56
86

skipif mysql # not compatible
query II rowsort label-2693
SELECT ALL 56 AS col0, + 87 - - - COUNT ( - 80 )
----
56
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT ALL 66 - - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL 66 - - COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ( COALESCE ( COUNT( * ), + + 41 + - - 35 ) ) * + NULLIF ( + COUNT( * ), - CASE + 46 WHEN - - 11 + - - 51 + - 84 THEN + 18 ELSE - 40 + - 5 * + - 44 END - 27 )
----
1

skipif mysql # not compatible
query I rowsort label-2695
SELECT ( COALESCE ( COUNT ( * ), + + 41 + - - 35 ) ) * + NULLIF ( + COUNT ( * ), - CASE + 46 WHEN - - 11 + - - 51 + - 84 THEN + 18 ELSE - 40 + - 5 * + - 44 END - 27 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2696
SELECT ALL - 48 * - - CAST( + + COALESCE ( 87, - 53 ) AS SIGNED ) AS col2
----
-4176

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL - 48 * - - CAST ( + + COALESCE ( 87, - 53 ) AS INTEGER ) AS col2
----
-4176

onlyif mysql # aggregate syntax: 
query II rowsort label-2697
SELECT ALL - 66, - COUNT( ALL - 80 ) + - + 81 AS col2
----
-66
-82

skipif mysql # not compatible
query II rowsort label-2697
SELECT ALL - 66, - COUNT ( ALL - 80 ) + - + 81 AS col2
----
-66
-82

query I rowsort
SELECT - + 9 col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT - - SUM( DISTINCT + + 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-2699
SELECT - - SUM ( DISTINCT + + 85 ) AS col1
----
85

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT 86 * ( 45 ) - - ( - 48 ) + - COUNT( * )
----
3821

skipif mysql # not compatible
query I rowsort label-2702
SELECT 86 * ( 45 ) - - ( - 48 ) + - COUNT ( * )
----
3821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT - 85 * + 30 - 9 - - CAST( - + 92 AS SIGNED ) + - 70 * - 87
----
3439

skipif mysql # not compatible
query I rowsort label-2703
SELECT - 85 * + 30 - 9 - - CAST ( - + 92 AS INTEGER ) + - 70 * - 87
----
3439

query I rowsort
SELECT DISTINCT - + 13 * + 40
----
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT COUNT( * ) * - 42 - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-2705
SELECT COUNT ( * ) * - 42 - COUNT ( * )
----
-43

query I rowsort
SELECT ALL - 83 * - 60 - - 59
----
5039

onlyif mysql # aggregate syntax: 
query II rowsort label-2707
SELECT - COUNT( * ), + 32 + 52 + - ( 12 ) AS col2
----
-1
72

skipif mysql # not compatible
query II rowsort label-2707
SELECT - COUNT ( * ), + 32 + 52 + - ( 12 ) AS col2
----
-1
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT ALL + 72 DIV + 19
----
3

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL + 72 / + 19
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2709
SELECT 32 + + COALESCE ( 96, COUNT( * ) * 36 + 78 * + + 58 * - 71 + - + ( + 74 ) * + 9, - 32 ) + 18 + + CAST( NULL AS SIGNED ) - + - 77 * + 79 * + + 41 * 71 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT 32 + + COALESCE ( 96, COUNT ( * ) * 36 + 78 * + + 58 * - 71 + - + ( + 74 ) * + 9, - 32 ) + 18 + + CAST ( NULL AS INTEGER ) - + - 77 * + 79 * + + 41 * 71 col0
----
NULL

query I rowsort
SELECT 35 * 83 * 52 - - - 78 col2
----
150982

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT DISTINCT 25 * COUNT( * ) * - SUM( ALL ( - 19 ) )
----
475

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT 25 * COUNT ( * ) * - SUM ( ALL ( - 19 ) )
----
475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT CASE - 96 WHEN + 99 * + - CAST( 65 AS SIGNED ) * + + 24 + + 18 - + + 78 THEN - NULLIF ( 55, - + ( - + CAST( NULL AS SIGNED ) ) ) + + 5 ELSE NULL END * - ( + 3 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT CASE - 96 WHEN + 99 * + - CAST ( 65 AS INTEGER ) * + + 24 + + 18 - + + 78 THEN - NULLIF ( 55, - + ( - + CAST ( NULL AS INTEGER ) ) ) + + 5 ELSE NULL END * - ( + 3 ) AS col0
----
NULL

query I rowsort
SELECT 72 * + 12 * + 83 AS col1
----
71712

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL 72 + - MAX( + - 67 ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL 72 + - MAX ( + - 67 ) AS col0
----
139

query I rowsort
SELECT DISTINCT - CASE - - 75 WHEN - 53 THEN + 33 * - - 80 * + 55 END + - - 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL + COUNT( * ) + - 16 + + 39
----
24

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL + COUNT ( * ) + - 16 + + 39
----
24

query II rowsort
SELECT ALL - 56, 84 AS col0
----
-56
84

query II rowsort
SELECT + 23 AS col1, + 62
----
23
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL COUNT( * ) + + 81 + + + 48 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL COUNT ( * ) + + 81 + + + 48 AS col1
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-2720
SELECT DISTINCT 94 AS col1, + COUNT( * ) - - ( - 65 )
----
94
-64

skipif mysql # not compatible
query II rowsort label-2720
SELECT DISTINCT 94 AS col1, + COUNT ( * ) - - ( - 65 )
----
94
-64

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2724
SELECT + ( - COUNT( ALL - CAST( 65 AS SIGNED ) ) ) + 12 * - + 46 * + 26 * - + 24 + 61 + 6 col2
----
344514

skipif mysql # not compatible
query I rowsort label-2724
SELECT + ( - COUNT ( ALL - CAST ( 65 AS INTEGER ) ) ) + 12 * - + 46 * + 26 * - + 24 + 61 + 6 col2
----
344514

query I rowsort
SELECT ALL - 2 - - 91 AS col2
----
89

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2727
SELECT + 46 AS col1, COUNT( * ) DIV + - 40 col1
----
46
0

skipif mysql # not compatible
query II rowsort label-2727
SELECT + 46 AS col1, COUNT ( * ) / + - 40 col1
----
46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT - COUNT( * ) + - 80 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-2728
SELECT - COUNT ( * ) + - 80 AS col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2729
SELECT DISTINCT + - 15 DIV - - 69
----
0

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT + - 15 / - - 69
----
0

query I rowsort
SELECT 1 + - 53 AS col0
----
-52

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2732
SELECT ALL + - CASE - - 20 WHEN - 42 + + + 87 THEN - 98 + - COUNT( * ) WHEN - - 47 THEN ( + - CAST( 91 AS SIGNED ) ) END * - 87 * 8 + - + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL + - CASE - - 20 WHEN - 42 + + + 87 THEN - 98 + - COUNT ( * ) WHEN - - 47 THEN ( + - CAST ( 91 AS INTEGER ) ) END * - 87 * 8 + - + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT - COUNT( * ) + - SUM( ALL + 17 ) * 99 + 74 AS col2
----
-1610

skipif mysql # not compatible
query I rowsort label-2733
SELECT - COUNT ( * ) + - SUM ( ALL + 17 ) * 99 + 74 AS col2
----
-1610

query I rowsort
SELECT ALL - ( + + 68 ) * - 74 + + ( 35 )
----
5067

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL + 93 * COUNT( * ) + + COUNT( * ) + 75 * 39 * - COUNT( * ) + + 28
----
-2803

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL + 93 * COUNT ( * ) + + COUNT ( * ) + 75 * 39 * - COUNT ( * ) + + 28
----
-2803

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2737
SELECT + + 79 DIV - + SUM( - - 10 ) + COUNT( + 18 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-2737
SELECT + + 79 / - + SUM ( - - 10 ) + COUNT ( + 18 ) AS col2
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT + 76 + + COALESCE ( COUNT( * ), - COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-2739
SELECT + 76 + + COALESCE ( COUNT ( * ), - COUNT ( * ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT ALL - + 60 * MAX( 70 ) AS col0
----
-4200

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL - + 60 * MAX ( 70 ) AS col0
----
-4200

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT COUNT( * ) * - + ( 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-2741
SELECT COUNT ( * ) * - + ( 89 ) AS col2
----
-89

query I rowsort
SELECT - 90 + - 32 * + - 4 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT ALL 59 + + 40 * + - COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL 59 + + 40 * + - COUNT ( * ) AS col0
----
19

query II rowsort
SELECT + - 50, 1 AS col2
----
-50
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2745
SELECT + COUNT( * ) AS col1, SUM( ALL + 3 ) AS col2
----
1
3

skipif mysql # not compatible
query II rowsort label-2745
SELECT + COUNT ( * ) AS col1, SUM ( ALL + 3 ) AS col2
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL - 35 + - SUM( ALL - 50 )
----
15

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL - 35 + - SUM ( ALL - 50 )
----
15

query I rowsort
SELECT DISTINCT + 8 + - 99 AS col0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2748
SELECT DISTINCT 78 + - + 64 DIV - 51 AS col1, + CASE + + SUM( DISTINCT + 46 ) WHEN + 39 + 40 - 4 DIV - SUM( DISTINCT - ( 74 ) ) * - + 50 + 89 * + 67 THEN + 10 DIV - - 5 WHEN ( - + 97 ) THEN 54 * 78 + + 72 WHEN + 2 + + 73 * - COUNT( * ) THEN NULL END * 91
----
79
NULL

skipif mysql # not compatible
query II rowsort label-2748
SELECT DISTINCT 78 + - + 64 / - 51 AS col1, + CASE + + SUM ( DISTINCT + 46 ) WHEN + 39 + 40 - 4 / - SUM ( DISTINCT - ( 74 ) ) * - + 50 + 89 * + 67 THEN + 10 / - - 5 WHEN ( - + 97 ) THEN 54 * 78 + + 72 WHEN + 2 + + 73 * - COUNT ( * ) THEN NULL END * 91
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT DISTINCT - COALESCE ( ( + ( - 10 ) ), 30, + COUNT( * ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT - COALESCE ( ( + ( - 10 ) ), 30, + COUNT ( * ) ) AS col2
----
10

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

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

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

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

query I rowsort
SELECT DISTINCT 83 + + 92 + 3
----
178

query I rowsort
SELECT ALL 18 + 78
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT ALL MIN( - 54 ) * COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL MIN ( - 54 ) * COUNT ( * ) AS col1
----
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT ALL 70 * + COUNT( * ) * + 65 AS col2
----
4550

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL 70 * + COUNT ( * ) * + 65 AS col2
----
4550

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT 97 + + 32 + - 25 * + COUNT( * ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-2757
SELECT 97 + + 32 + - 25 * + COUNT ( * ) AS col0
----
104

query I rowsort
SELECT - 82 - + 49 AS col1
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2759
SELECT ALL CAST( + 51 AS SIGNED ) - + + CASE + - 77 WHEN + 7 THEN + 4 + 32 WHEN - ( 56 ) THEN + 26 * + ( + COUNT( * ) ) + 93 END - + 89 * - 12 * + 40 + - + CAST( NULL AS SIGNED ) * - 38 * - - CAST( - 32 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL CAST ( + 51 AS INTEGER ) - + + CASE + - 77 WHEN + 7 THEN + 4 + 32 WHEN - ( 56 ) THEN + 26 * + ( + COUNT ( * ) ) + 93 END - + 89 * - 12 * + 40 + - + CAST ( NULL AS INTEGER ) * - 38 * - - CAST ( - 32 AS INTEGER )
----
NULL

query I rowsort
SELECT + 46 + + - 48 AS col2
----
-2

query I rowsort
SELECT + 22 + + 7
----
29

query I rowsort
SELECT + 81 * + 53
----
4293

query I rowsort
SELECT - NULLIF ( + - 2, 70 ) + - 56 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-2764
SELECT MAX( + - 74 ) AS col1, 0 col2
----
-74
0

skipif mysql # not compatible
query II rowsort label-2764
SELECT MAX ( + - 74 ) AS col1, 0 col2
----
-74
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2765
SELECT + 88 * - - 62 * + NULLIF ( 7, 66 ) / - 41 + - 50 * + CAST( + 58 AS SIGNED ) + - + SUM( - 59 ) + CASE - COUNT( * ) WHEN + 76 / - 11 + - 42 THEN + MAX( DISTINCT - CAST( - 39 AS SIGNED ) ) * 39 + - 74 / - - 65 ELSE NULL END * - 7 - 79 / 4
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT + 88 * - - 62 * + NULLIF ( 7, 66 ) / - 41 + - 50 * + CAST ( + 58 AS INTEGER ) + - + SUM ( - 59 ) + CASE - COUNT ( * ) WHEN + 76 / - 11 + - 42 THEN + MAX ( DISTINCT - CAST ( - 39 AS INTEGER ) ) * 39 + - 74 / - - 65 ELSE NULL END * - 7 - 79 / 4
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2766
SELECT ALL + - 13 * + 13, COUNT( DISTINCT - 1 ) AS col1
----
-169
1

skipif mysql # not compatible
query II rowsort label-2766
SELECT ALL + - 13 * + 13, COUNT ( DISTINCT - 1 ) AS col1
----
-169
1

query I rowsort
SELECT - + 71 + + + 28 * 3
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT DISTINCT + COUNT( * ) * - SUM( ( 70 ) ) * COALESCE ( + ( - 11 ), + 33 ) + 53 AS col2
----
823

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT + COUNT ( * ) * - SUM ( ( 70 ) ) * COALESCE ( + ( - 11 ), + 33 ) + 53 AS col2
----
823

query I rowsort
SELECT ALL - COALESCE ( - - 97, - 79, 17, 61 ) AS col2
----
-97

query I rowsort
SELECT - + 27 * - ( 94 )
----
2538

query I rowsort
SELECT ALL 3 * + 3 - + 54
----
-45

query I rowsort
SELECT DISTINCT + + 71 + - 30
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT + SUM( + + ( + 2 ) ) * - COUNT( * ) + - CASE + + 49 WHEN + 41 THEN - + 38 * + ( + - 48 ) + + COUNT( * ) / + 63 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT + SUM ( + + ( + 2 ) ) * - COUNT ( * ) + - CASE + + 49 WHEN + 41 THEN - + 38 * + ( + - 48 ) + + COUNT ( * ) / + 63 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - 61 * - - 53 col2, + 27 * - 13 + 73
----
-3233
-278

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2776
SELECT ALL 46 * - 54 * - 24 + - 80 * - + ( + NULLIF ( CAST( NULL AS SIGNED ), 28 + - + ( CAST( + 39 AS SIGNED ) ) * + 15 + + ( + + NULLIF ( CAST( + + 16 AS SIGNED ), + - 92 * + + 54 ) ) ) ) * 23 - - 30 * 54 + + CAST( + 92 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL 46 * - 54 * - 24 + - 80 * - + ( + NULLIF ( CAST ( NULL AS INTEGER ), 28 + - + ( CAST ( + 39 AS INTEGER ) ) * + 15 + + ( + + NULLIF ( CAST ( + + 16 AS INTEGER ), + - 92 * + + 54 ) ) ) ) * 23 - - 30 * 54 + + CAST ( + 92 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2777
SELECT + - 89 * + 19 - + ( + COUNT( ALL CAST( NULL AS SIGNED ) ) ) * 93
----
-1691

skipif mysql # not compatible
query I rowsort label-2777
SELECT + - 89 * + 19 - + ( + COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) * 93
----
-1691

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT DISTINCT + 38 * - SUM( DISTINCT - 82 ) * + ( COUNT( * ) ) + 41 + + 37 + - 8 + - 87
----
3099

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT + 38 * - SUM ( DISTINCT - 82 ) * + ( COUNT ( * ) ) + 41 + + 37 + - 8 + - 87
----
3099

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2779
SELECT + 50 / - - 43 + + - 25 * + - CASE 99 WHEN + 40 * 21 * + 24 - + CAST( NULL AS SIGNED ) + - ( + CAST( NULL AS SIGNED ) ) + + COALESCE ( - 76, MIN( ALL - 62 ) * - ( + - COUNT( DISTINCT + 35 ) ) ) THEN NULL WHEN - 89 / + 65 * 62 THEN 22 END - 47 / - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT + 50 / - - 43 + + - 25 * + - CASE 99 WHEN + 40 * 21 * + 24 - + CAST ( NULL AS INTEGER ) + - ( + CAST ( NULL AS INTEGER ) ) + + COALESCE ( - 76, MIN ( ALL - 62 ) * - ( + - COUNT ( DISTINCT + 35 ) ) ) THEN NULL WHEN - 89 / + 65 * 62 THEN 22 END - 47 / - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT ALL + NULLIF ( 54, + MIN( ALL 46 ) )
----
54

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL + NULLIF ( 54, + MIN ( ALL 46 ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT NULLIF ( + + NULLIF ( + + 93, 48 * 73 - + COALESCE ( - 39, + ( + 92 ), + 1 * - MIN( DISTINCT 60 ) + + 33 ) ), - - 92 + + COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2781
SELECT NULLIF ( + + NULLIF ( + + 93, 48 * 73 - + COALESCE ( - 39, + ( + 92 ), + 1 * - MIN ( DISTINCT 60 ) + + 33 ) ), - - 92 + + COUNT ( * ) ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2782
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * 7 + + - ( - + 92 ) + + - 30
----
69

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * 7 + + - ( - + 92 ) + + - 30
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2783
SELECT DISTINCT 69 * - COUNT( * ) - - CAST( NULL AS SIGNED ) / + + AVG ( ALL - 3 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT 69 * - COUNT ( * ) - - CAST ( NULL AS INTEGER ) / + + AVG ( ALL - 3 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2784
SELECT CASE + CAST( NULL AS SIGNED ) WHEN + 58 * + - 58 - + COUNT( * ) THEN + 24 ELSE - - 88 + + 33 END col1
----
121

skipif mysql # not compatible
query I rowsort label-2784
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN + 58 * + - 58 - + COUNT ( * ) THEN + 24 ELSE - - 88 + + 33 END col1
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT - ( SUM( + + 70 ) ) * 60
----
-4200

skipif mysql # not compatible
query I rowsort label-2785
SELECT - ( SUM ( + + 70 ) ) * 60
----
-4200

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT + CASE - + 49 WHEN + - 2 + + MAX( DISTINCT + - 63 ) THEN NULL WHEN - 37 + + 69 THEN - 13 WHEN + 31 + - 85 * - MIN( - - 14 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT + CASE - + 49 WHEN + - 2 + + MAX ( DISTINCT + - 63 ) THEN NULL WHEN - 37 + + 69 THEN - 13 WHEN + 31 + - 85 * - MIN ( - - 14 ) THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT - 35 + - - 40 + 7 * + 93 + + - 11 AS col2
----
645

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT NULLIF ( + 54, ( 15 ) * - + 94 + - + ( ( 77 ) ) - - 57 + 69 / 70 + SUM( ALL + ( - 58 ) ) * + 1 )
----
54

skipif mysql # not compatible
query I rowsort label-2789
SELECT NULLIF ( + 54, ( 15 ) * - + 94 + - + ( ( 77 ) ) - - 57 + 69 / 70 + SUM ( ALL + ( - 58 ) ) * + 1 )
----
54

query I rowsort
SELECT + 29 * - + 40 AS col0
----
-1160

onlyif mysql # aggregate syntax: 
query II rowsort label-2791
SELECT + NULLIF ( + 20, + 0 ), + COUNT( * ) AS col0
----
20
1

skipif mysql # not compatible
query II rowsort label-2791
SELECT + NULLIF ( + 20, + 0 ), + COUNT ( * ) AS col0
----
20
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2792
SELECT DISTINCT CAST( CASE - 88 WHEN - - 50 THEN + COUNT( * ) + - COUNT( * ) WHEN + 22 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT CAST ( CASE - 88 WHEN - - 50 THEN + COUNT ( * ) + - COUNT ( * ) WHEN + 22 THEN NULL END AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2793
SELECT - 93 + + 87 + 48 + + - 65 + + + 67 DIV 41 * 16 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2793
SELECT - 93 + + 87 + 48 + + - 65 + + + 67 / 41 * 16 AS col0
----
-7

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

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL 5 / - COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT MIN( DISTINCT + 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-2795
SELECT MIN ( DISTINCT + 29 ) AS col0
----
29

query I rowsort
SELECT + + ( + 10 ) - + 61 col2
----
-51

query I rowsort
SELECT ALL - 11 * - + 48 AS col2
----
528

onlyif mysql # aggregate syntax: 
query II rowsort label-2798
SELECT + - COUNT( * ) + 25 * - - 17 AS col0, 52 AS col2
----
424
52

skipif mysql # not compatible
query II rowsort label-2798
SELECT + - COUNT ( * ) + 25 * - - 17 AS col0, 52 AS col2
----
424
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL - COUNT( * ) * - + 34 * - 13 * + 14 AS col1
----
-6188

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL - COUNT ( * ) * - + 34 * - 13 * + 14 AS col1
----
-6188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT ALL MIN( DISTINCT - - CASE + + 16 WHEN + + 45 - ( 10 ) THEN + 4 ELSE - 86 + + + 53 END ) + - 5 * 59 AS col0
----
-328

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL MIN ( DISTINCT - - CASE + + 16 WHEN + + 45 - ( 10 ) THEN + 4 ELSE - 86 + + + 53 END ) + - 5 * 59 AS col0
----
-328

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2802
SELECT ALL 92 + - 94 DIV + + 8 AS col0, + COUNT( 28 ) col2
----
81
1

skipif mysql # not compatible
query II rowsort label-2802
SELECT ALL 92 + - 94 / + + 8 AS col0, + COUNT ( 28 ) col2
----
81
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2803
SELECT ALL + COUNT( - 49 ) + - SUM( ALL + 48 ) col1, COUNT( * ) AS col1
----
-47
1

skipif mysql # not compatible
query II rowsort label-2803
SELECT ALL + COUNT ( - 49 ) + - SUM ( ALL + 48 ) col1, COUNT ( * ) AS col1
----
-47
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT + 31 - + - 40 * - 62 - + - COUNT( * )
----
-2448

skipif mysql # not compatible
query I rowsort label-2804
SELECT + 31 - + - 40 * - 62 - + - COUNT ( * )
----
-2448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2805
SELECT + + 90 + + 4 * + COALESCE ( 80, COUNT( 31 ) ) * 60 * + 10 * - COALESCE ( + 60, - 71 + - 93 ) DIV COUNT( * )
----
-11519910

skipif mysql # not compatible
query I rowsort label-2805
SELECT + + 90 + + 4 * + COALESCE ( 80, COUNT ( 31 ) ) * 60 * + 10 * - COALESCE ( + 60, - 71 + - 93 ) / COUNT ( * )
----
-11519910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2806
SELECT ALL + 84 + - 96 + - + 74 * 61 * - CAST( - 96 AS SIGNED ) * 13
----
-5633484

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL + 84 + - 96 + - + 74 * 61 * - CAST ( - 96 AS INTEGER ) * 13
----
-5633484

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

skipif mysql # not compatible
query II rowsort label-2807
SELECT 79 AS col2, - COUNT ( * ) AS col1
----
79
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT - CAST( 74 AS SIGNED ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2808
SELECT - CAST ( 74 AS INTEGER ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT DISTINCT 23 + + - 99 + + NULLIF ( + - MAX( ( - 19 ) ), - + 84 - + 31 + - 5 - + - 60 + 19 + + 52 ) * 36
----
608

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT 23 + + - 99 + + NULLIF ( + - MAX ( ( - 19 ) ), - + 84 - + 31 + - 5 - + - 60 + 19 + + 52 ) * 36
----
608

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL + COUNT( * ) + ( - COALESCE ( + ( + + 7 ), - 86 ) ) + 11 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL + COUNT ( * ) + ( - COALESCE ( + ( + + 7 ), - 86 ) ) + 11 AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2812
SELECT + + 29 + + + 3 * - - 48 AS col2, + NULLIF ( - 7, - + CAST( + + 47 AS SIGNED ) * + 18 )
----
173
-7

skipif mysql # not compatible
query II rowsort label-2812
SELECT + + 29 + + + 3 * - - 48 AS col2, + NULLIF ( - 7, - + CAST ( + + 47 AS INTEGER ) * + 18 )
----
173
-7

query I rowsort
SELECT + - 54 + - 59 AS col1
----
-113

query I rowsort
SELECT ALL + + 93 * - 7 col2
----
-651

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT + COUNT( * ) * - 62 * - 29 * - 51 / + ( 1 ) + - 25 + + ( - COUNT( * ) ) + 59 - - ( 96 ) + + ( - 99 ) * + - ( - CASE - - 85 WHEN - 44 THEN NULL WHEN + + 67 THEN - - COUNT( * ) END ) / + 89 / 33 + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT + COUNT ( * ) * - 62 * - 29 * - 51 / + ( 1 ) + - 25 + + ( - COUNT ( * ) ) + 59 - - ( 96 ) + + ( - 99 ) * + - ( - CASE - - 85 WHEN - 44 THEN NULL WHEN + + 67 THEN - - COUNT ( * ) END ) / + 89 / 33 + 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2817
SELECT + 22 AS col2, 53 * - + COUNT( * ) col1
----
22
-53

skipif mysql # not compatible
query II rowsort label-2817
SELECT + 22 AS col2, 53 * - + COUNT ( * ) col1
----
22
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2818
SELECT ALL + 61 DIV + - 32 - + 32 + 99 AS col1, - 7 * - + COUNT( * ) AS col2
----
66
7

skipif mysql # not compatible
query II rowsort label-2818
SELECT ALL + 61 / + - 32 - + 32 + 99 AS col1, - 7 * - + COUNT ( * ) AS col2
----
66
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT ALL 1 * + ( - NULLIF ( - 84, + SUM( DISTINCT - + 12 ) ) )
----
84

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL 1 * + ( - NULLIF ( - 84, + SUM ( DISTINCT - + 12 ) ) )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2820
SELECT + CAST( CAST( + - 74 AS SIGNED ) AS SIGNED ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2820
SELECT + CAST ( CAST ( + - 74 AS INTEGER ) AS INTEGER ) AS col2
----
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-2821
SELECT - 71 + - ( - 50 ) + + 10 col0, ( + 53 ) DIV + + 91 - + 42 AS col0
----
-11
-42

skipif mysql # not compatible
query II rowsort label-2821
SELECT - 71 + - ( - 50 ) + + 10 col0, ( + 53 ) / + + 91 - + 42 AS col0
----
-11
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2822
SELECT ALL ( - 2 ) DIV 8 - COUNT( ALL + + COALESCE ( - ( + 73 ), + + 70, + - 47 * + 43 * + 77 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL ( - 2 ) / 8 - COUNT ( ALL + + COALESCE ( - ( + 73 ), + + 70, + - 47 * + 43 * + 77 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT CAST( ( - 3 ) AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-2823
SELECT CAST ( ( - 3 ) AS INTEGER )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL + COUNT( ALL 89 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL + COUNT ( ALL 89 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2825
SELECT + 59 DIV + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2825
SELECT + 59 / + 93 AS col0
----
0

query I rowsort
SELECT 26 * + 62 col0
----
1612

query I rowsort
SELECT 0 * 5 col0
----
0

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

query I rowsort
SELECT ALL - 91 * - 31 * - + 61 * + 80
----
-13766480

query I rowsort
SELECT 16 * + 43
----
688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2831
SELECT ALL - CASE WHEN NOT CAST( - 95 AS SIGNED ) IS NULL THEN - 1 * - 65 END
----
-65

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL - CASE WHEN NOT CAST ( - 95 AS INTEGER ) IS NULL THEN - 1 * - 65 END
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT 26 * 6 * ( + COUNT( * ) ) AS col0
----
156

skipif mysql # not compatible
query I rowsort label-2832
SELECT 26 * 6 * ( + COUNT ( * ) ) AS col0
----
156

query I rowsort
SELECT ALL + 19 * - 75
----
-1425

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2836
SELECT CASE ( - + 66 ) WHEN - - COUNT( * ) THEN NULL WHEN CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + + 49 + 83 * - 71 * 45 - - 23 + - 82 THEN + - 58 * + NULLIF ( 49, 72 ) WHEN - COALESCE ( - 92, 39 / + 22 * + - 87 + - 57 * - 62 / - 6, - COUNT( * ) + - ( + 98 + - CAST( NULL AS SIGNED ) ) ) + 78 THEN NULL END + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT CASE ( - + 66 ) WHEN - - COUNT ( * ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + 49 + 83 * - 71 * 45 - - 23 + - 82 THEN + - 58 * + NULLIF ( 49, 72 ) WHEN - COALESCE ( - 92, 39 / + 22 * + - 87 + - 57 * - 62 / - 6, - COUNT ( * ) + - ( + 98 + - CAST ( NULL AS INTEGER ) ) ) + 78 THEN NULL END + + 30
----
NULL

query I rowsort
SELECT ALL + ( 95 ) * - 6
----
-570

query I rowsort
SELECT 7 + + ( - 35 ) AS col0
----
-28

query I rowsort
SELECT ALL - 71 * - 49 AS col2
----
3479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2840
SELECT DISTINCT + COUNT( * ) + 85 DIV - + 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT + COUNT ( * ) + 85 / - + 46 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT - COUNT( DISTINCT - - 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-2841
SELECT - COUNT ( DISTINCT - - 54 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT ALL + - NULLIF ( 38, + ( - 71 ) / 94 ) + - CASE - 4 WHEN - 16 * + - ( - COUNT( * ) ) * - 33 * - 60 + 37 + + 33 THEN + - COUNT( * ) * + 18 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL + - NULLIF ( 38, + ( - 71 ) / 94 ) + - CASE - 4 WHEN - 16 * + - ( - COUNT ( * ) ) * - 33 * - 60 + 37 + + 33 THEN + - COUNT ( * ) * + 18 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2843
SELECT DISTINCT - COUNT( * ) + 46 AS col0, CAST( NULL AS SIGNED ) AS col1
----
45
NULL

skipif mysql # not compatible
query II rowsort label-2843
SELECT DISTINCT - COUNT ( * ) + 46 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
45
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2844
SELECT + NULLIF ( 4, + + COUNT( * ) ) DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-2844
SELECT + NULLIF ( 4, + + COUNT ( * ) ) / 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT ALL 12 + NULLIF ( + COUNT( * ), + SUM( + 67 ) )
----
13

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL 12 + NULLIF ( + COUNT ( * ), + SUM ( + 67 ) )
----
13

query I rowsort
SELECT - 52 * 25
----
-1300

query I rowsort
SELECT DISTINCT + 5 + - - 69
----
74

query I rowsort
SELECT ALL ( - 31 ) * 86
----
-2666

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

query I rowsort
SELECT + 18 * - 3
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT DISTINCT MIN( + 35 ) - - - 60 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT MIN ( + 35 ) - - - 60 AS col2
----
-25

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2853
SELECT - 7, 27 * + 35 DIV 53 DIV - ( 36 ) col2
----
-7
0

skipif mysql # not compatible
query II rowsort label-2853
SELECT - 7, 27 * + 35 / 53 / - ( 36 ) col2
----
-7
0

query I rowsort
SELECT ALL 30 * + 7
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2855
SELECT 95 * + CAST( NULL AS SIGNED ) - - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2855
SELECT 95 * + CAST ( NULL AS INTEGER ) - - 79 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2856
SELECT - 23 DIV - + 73 + + ( - + 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-2856
SELECT - 23 / - + 73 + + ( - + 22 )
----
-22

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2859
SELECT ALL - 96, - COALESCE ( - COUNT( + + 6 ), + 3 ) * - - 25 AS col0
----
-96
25

skipif mysql # not compatible
query II rowsort label-2859
SELECT ALL - 96, - COALESCE ( - COUNT ( + + 6 ), + 3 ) * - - 25 AS col0
----
-96
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT - 60 * - - COUNT( * ) + - ( + 39 )
----
-99

skipif mysql # not compatible
query I rowsort label-2860
SELECT - 60 * - - COUNT ( * ) + - ( + 39 )
----
-99

query I rowsort
SELECT DISTINCT 46 * - ( 77 ) AS col2
----
-3542

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

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

query II rowsort
SELECT ALL - ( - 10 ) + - ( - + 7 ) - + - 38 + - 64 AS col0, + 46
----
-9
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT COUNT( * ) * + NULLIF ( 68, + - ( + - COUNT( DISTINCT + + 73 ) ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2864
SELECT COUNT ( * ) * + NULLIF ( 68, + - ( + - COUNT ( DISTINCT + + 73 ) ) ) AS col2
----
68

query I rowsort
SELECT 61 * + - 98 AS col2
----
-5978

query I rowsort
SELECT DISTINCT - 70 + + 89 AS col1
----
19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2868
SELECT 41 DIV + NULLIF ( + - 73, + - AVG ( ALL - 90 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2868
SELECT 41 / + NULLIF ( + - 73, + - AVG ( ALL - 90 ) )
----
0

query I rowsort
SELECT ALL - + 93 + - 68 AS col0
----
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-2870
SELECT + COUNT( * ) + + 42 - + 33 AS col0, 43 AS col2
----
10
43

skipif mysql # not compatible
query II rowsort label-2870
SELECT + COUNT ( * ) + + 42 - + 33 AS col0, 43 AS col2
----
10
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2871
SELECT 70 + + 87 - - 48 * + CAST( NULL AS SIGNED ) * - - 97 + COUNT( * ) + + - 49 * + COUNT( 31 ) * - + MAX( ALL + - 63 ) * + SUM( + 83 ) / ( + - 91 ) * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT 70 + + 87 - - 48 * + CAST ( NULL AS INTEGER ) * - - 97 + COUNT ( * ) + + - 49 * + COUNT ( 31 ) * - + MAX ( ALL + - 63 ) * + SUM ( + 83 ) / ( + - 91 ) * + 93
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2873
SELECT + 93 + - 28 - + 28, 73 * + 71 * + + CAST( - - 34 AS SIGNED ) AS col1
----
37
176222

skipif mysql # not compatible
query II rowsort label-2873
SELECT + 93 + - 28 - + 28, 73 * + 71 * + + CAST ( - - 34 AS INTEGER ) AS col1
----
37
176222

query II rowsort
SELECT DISTINCT + 34, - 10 * + - 17 AS col2
----
34
170

query I rowsort
SELECT + ( - 18 ) + 41 * + + 19
----
761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2876
SELECT 39 - - CAST( COUNT( * ) AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-2876
SELECT 39 - - CAST ( COUNT ( * ) AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT - COUNT( * ) + - NULLIF ( - 72, + 33 * + 21 + - 79 )
----
71

skipif mysql # not compatible
query I rowsort label-2877
SELECT - COUNT ( * ) + - NULLIF ( - 72, + 33 * + 21 + - 79 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2878
SELECT - SUM( 63 ) DIV - + 70
----
0

skipif mysql # not compatible
query I rowsort label-2878
SELECT - SUM ( 63 ) / - + 70
----
0

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

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

query II rowsort
SELECT ALL 6 AS col0, 16 col2
----
6
16

query II rowsort
SELECT - 60 + 50 AS col0, - 71 * + 53 AS col2
----
-10
-3763

onlyif mysql # DIV for integer division: 
query II rowsort label-2882
SELECT ALL 63 AS col2, - 15 DIV - + 96 AS col2
----
63
0

skipif mysql # not compatible
query II rowsort label-2882
SELECT ALL 63 AS col2, - 15 / - + 96 AS col2
----
63
0

query I rowsort
SELECT + 54 * + 56
----
3024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2884
SELECT ALL NULLIF ( - + CAST( - AVG ( DISTINCT - - 92 ) AS SIGNED ), ( - + 10 ) / + - 5 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL NULLIF ( - + CAST ( - AVG ( DISTINCT - - 92 ) AS INTEGER ), ( - + 10 ) / + - 5 ) AS col1
----
92

query I rowsort
SELECT + 30 * + 59
----
1770

query I rowsort
SELECT NULLIF ( + + 29, - 96 + - - 59 + - 53 ) AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2887
SELECT + 0 * - + CASE 70 WHEN - + 7 THEN - CAST( NULL AS SIGNED ) + 84 + - + 76 + CAST( NULL AS SIGNED ) - - 19 / - + 90 + COUNT( DISTINCT 43 ) * - 66 / - 33 ELSE NULL END * + CAST( + 11 AS SIGNED ) * 51 * + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT + 0 * - + CASE 70 WHEN - + 7 THEN - CAST ( NULL AS INTEGER ) + 84 + - + 76 + CAST ( NULL AS INTEGER ) - - 19 / - + 90 + COUNT ( DISTINCT 43 ) * - 66 / - 33 ELSE NULL END * + CAST ( + 11 AS INTEGER ) * 51 * + - 16
----
NULL

query I rowsort
SELECT CASE + - 22 WHEN + - 89 THEN - + ( + 2 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT ALL + COUNT( * ) * + 87 + - 78 + + CASE MAX( DISTINCT + 39 ) WHEN + 45 THEN - 42 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL + COUNT ( * ) * + 87 + - 78 + + CASE MAX ( DISTINCT + 39 ) WHEN + 45 THEN - 42 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 77 * + 49 + 98 * 12 + - + 57 col0
----
-2654

query I rowsort
SELECT ALL 91 * + 2 + 55 * - - 69 - - - 1
----
3976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2892
SELECT ALL + 26, + 65 - + COUNT( * ) + + MIN( DISTINCT + + 16 ) * 3 + + 78 - 98 * - CAST( 65 AS SIGNED ) * COALESCE ( + - 23, - ( + 29 ) ) AS col0
----
26
-146320

skipif mysql # not compatible
query II rowsort label-2892
SELECT ALL + 26, + 65 - + COUNT ( * ) + + MIN ( DISTINCT + + 16 ) * 3 + + 78 - 98 * - CAST ( 65 AS INTEGER ) * COALESCE ( + - 23, - ( + 29 ) ) AS col0
----
26
-146320

query I rowsort
SELECT + 84 + 38
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-2894
SELECT DISTINCT + 87 AS col2, 52 * - 82 + - COALESCE ( - 20, 26 * - - COUNT( * ) + + CASE + - 47 WHEN + 7 + - + 10 THEN NULL WHEN - 98 THEN - 71 END ) + + 21 * 6 * + NULLIF ( - 94, - 79 ) - - 14
----
87
-16074

skipif mysql # not compatible
query II rowsort label-2894
SELECT DISTINCT + 87 AS col2, 52 * - 82 + - COALESCE ( - 20, 26 * - - COUNT ( * ) + + CASE + - 47 WHEN + 7 + - + 10 THEN NULL WHEN - 98 THEN - 71 END ) + + 21 * 6 * + NULLIF ( - 94, - 79 ) - - 14
----
87
-16074

query I rowsort
SELECT - 11 + - - 35 col0
----
24

query I rowsort
SELECT + 55 * + 72 AS col1
----
3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2897
SELECT - 25 * - CAST( + + 94 AS SIGNED ) - - 20 * - 67 AS col1
----
1010

skipif mysql # not compatible
query I rowsort label-2897
SELECT - 25 * - CAST ( + + 94 AS INTEGER ) - - 20 * - 67 AS col1
----
1010

query I rowsort
SELECT ALL CASE + 95 WHEN - 89 + - - 99 THEN + 75 / - 70 + + 28 ELSE NULL END
----
NULL

query II rowsort
SELECT - 6 AS col2, 54 AS col1
----
-6
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2900
SELECT ALL + - 86 * 57 AS col1, + COUNT( * ) AS col2
----
-4902
1

skipif mysql # not compatible
query II rowsort label-2900
SELECT ALL + - 86 * 57 AS col1, + COUNT ( * ) AS col2
----
-4902
1

query I rowsort
SELECT - COALESCE ( - 11, + - 63 ) + - - 30
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2902
SELECT DISTINCT 70 DIV - ( 80 )
----
0

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT 70 / - ( 80 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2903
SELECT ALL + 21 AS col2, 68 + + MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) + + 64 col0
----
21
NULL

skipif mysql # not compatible
query II rowsort label-2903
SELECT ALL + 21 AS col2, 68 + + MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + + 64 col0
----
21
NULL

query II rowsort
SELECT - - 64, 78 AS col1
----
64
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2905
SELECT + + CASE + + 5 WHEN + CAST( NULL AS SIGNED ) + 58 THEN NULL ELSE 91 - + 93 * - COUNT( * ) * - NULLIF ( 89, + 82 ) - - ( + 69 ) * - - COUNT( * ) * + 29 END * + + COUNT( ALL 14 ) col1
----
-6185

skipif mysql # not compatible
query I rowsort label-2905
SELECT + + CASE + + 5 WHEN + CAST ( NULL AS INTEGER ) + 58 THEN NULL ELSE 91 - + 93 * - COUNT ( * ) * - NULLIF ( 89, + 82 ) - - ( + 69 ) * - - COUNT ( * ) * + 29 END * + + COUNT ( ALL 14 ) col1
----
-6185

query II rowsort
SELECT ALL + 98 col0, 46
----
98
46

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

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

query I rowsort
SELECT ALL - - 7 * + 13
----
91

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

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

query I rowsort
SELECT - + 9 * + 30 * + 57 AS col2
----
-15390

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT ALL + + 82 * - COUNT( DISTINCT - 99 )
----
-82

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL + + 82 * - COUNT ( DISTINCT - 99 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT DISTINCT 84 * - + COUNT( + + 0 ) * - - 93
----
-7812

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT 84 * - + COUNT ( + + 0 ) * - - 93
----
-7812

query I rowsort
SELECT ALL ( 86 )
----
86

query I rowsort
SELECT - 13 * + 36
----
-468

query I rowsort
SELECT ALL + 32 * + - 67 AS col2
----
-2144

query I rowsort
SELECT DISTINCT NULLIF ( - 29, 71 + - 10 ) AS col0
----
-29

query I rowsort
SELECT ALL + NULLIF ( - + 55, - 14 ) + - 96 + + 30 + - - 25 * - 7 * ( + 29 ) AS col0
----
-5196

onlyif mysql # DIV for integer division: 
query I rowsort label-2918
SELECT DISTINCT + 87 + + + 11 * - 81 + + - 43 - - 47 + + + 62 + + + 46 DIV 97 AS col2
----
-738

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT + 87 + + + 11 * - 81 + + - 43 - - 47 + + + 62 + + + 46 / 97 AS col2
----
-738

query I rowsort
SELECT ALL - NULLIF ( - - 33, - 61 ) + - 11
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2920
SELECT + COALESCE ( - 44, - 13 * + + COUNT( * ) * + CAST( - 64 AS SIGNED ) + + + 60 + + + 58 + - 91 * - 9 * + + 87 * CAST( NULL AS SIGNED ) * - CASE - 73 WHEN + + 64 THEN - + 41 ELSE NULL END )
----
-44

skipif mysql # not compatible
query I rowsort label-2920
SELECT + COALESCE ( - 44, - 13 * + + COUNT ( * ) * + CAST ( - 64 AS INTEGER ) + + + 60 + + + 58 + - 91 * - 9 * + + 87 * CAST ( NULL AS INTEGER ) * - CASE - 73 WHEN + + 64 THEN - + 41 ELSE NULL END )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT ALL - COUNT( * ) DIV 78 + + - 88
----
-88

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL - COUNT ( * ) / 78 + + - 88
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2922
SELECT - 47 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT - 47 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2923
SELECT - 64 DIV 61 col2, + 41 AS col2
----
-1
41

skipif mysql # not compatible
query II rowsort label-2923
SELECT - 64 / 61 col2, + 41 AS col2
----
-1
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2924
SELECT ALL - ( 4 ) DIV + 72 + - + 64 + + - 61 - - 20 + NULLIF ( - 47, + 39 + - 66 + - 98 ) + - 3 DIV - 74 * 44 * 10 + 63 * + - 19 - - 70
----
-1279

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL - ( 4 ) / + 72 + - + 64 + + - 61 - - 20 + NULLIF ( - 47, + 39 + - 66 + - 98 ) + - 3 / - 74 * 44 * 10 + 63 * + - 19 - - 70
----
-1279

onlyif mysql # aggregate syntax: 
query II rowsort label-2925
SELECT DISTINCT + SUM( - 97 ) AS col1, + 6
----
-97
6

skipif mysql # not compatible
query II rowsort label-2925
SELECT DISTINCT + SUM ( - 97 ) AS col1, + 6
----
-97
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2926
SELECT ALL 39 DIV + 87 + - + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL 39 / + 87 + - + COUNT ( * ) col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT ALL ( + 13 ) DIV 5 + - 90 + - + 44
----
-132

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL ( + 13 ) / 5 + - 90 + - + 44
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT CAST( 48 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-2928
SELECT CAST ( 48 AS INTEGER )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT + COUNT( * ) * - 40 * - + 84 * 49
----
164640

skipif mysql # not compatible
query I rowsort label-2929
SELECT + COUNT ( * ) * - 40 * - + 84 * 49
----
164640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2930
SELECT + 56 * + 4 - + SUM( 36 ) DIV - ( - 69 ) col1
----
224

skipif mysql # not compatible
query I rowsort label-2930
SELECT + 56 * + 4 - + SUM ( 36 ) / - ( - 69 ) col1
----
224

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2932
SELECT ALL + 90 DIV 20 DIV - 48 + 23 - 24 * + 52 * + ( 82 )
----
-102313

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL + 90 / 20 / - 48 + 23 - 24 * + 52 * + ( 82 )
----
-102313

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT + + 20 * CASE 46 WHEN - + COUNT( * ) THEN - 46 WHEN + 99 * + + 98 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2933
SELECT + + 20 * CASE 46 WHEN - + COUNT ( * ) THEN - 46 WHEN + 99 * + + 98 THEN NULL ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT ALL + 76 * + + 92
----
6992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2936
SELECT DISTINCT + 53 * - 92 / 50 - - - 25 * - + CASE + 76 WHEN - 83 THEN NULL WHEN + 34 THEN + COUNT( DISTINCT - 37 ) / + COUNT( * ) + + 39 + 4 + + COUNT( * ) + + - CAST( + 68 AS SIGNED ) * - 4 / + 79 * + 91 ELSE NULL END - + - COUNT( * ) + + CAST( NULL AS SIGNED ) * + NULLIF ( 10, - COUNT( * ) * 96 * - COUNT( * ) * - + COUNT( * ) * + CAST( NULL AS SIGNED ) - CAST( 38 AS SIGNED ) ) * - 44 + + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT + 53 * - 92 / 50 - - - 25 * - + CASE + 76 WHEN - 83 THEN NULL WHEN + 34 THEN + COUNT ( DISTINCT - 37 ) / + COUNT ( * ) + + 39 + 4 + + COUNT ( * ) + + - CAST ( + 68 AS INTEGER ) * - 4 / + 79 * + 91 ELSE NULL END - + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + NULLIF ( 10, - COUNT ( * ) * 96 * - COUNT ( * ) * - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) - CAST ( 38 AS INTEGER ) ) * - 44 + + 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2937
SELECT + MAX( DISTINCT + 52 ) * COALESCE ( NULLIF ( - - 76, - + 61 ), - - COUNT( * ) ) AS col0, 83 * - 17 AS col0
----
3952
-1411

skipif mysql # not compatible
query II rowsort label-2937
SELECT + MAX ( DISTINCT + 52 ) * COALESCE ( NULLIF ( - - 76, - + 61 ), - - COUNT ( * ) ) AS col0, 83 * - 17 AS col0
----
3952
-1411

query I rowsort
SELECT + 28 + + 71 - - NULLIF ( - 82, + CASE + 53 WHEN ( + - ( + + 57 ) ) THEN - NULLIF ( 86, + - 39 - + + 59 ) WHEN - + 61 / 70 * - - 46 * 32 THEN NULL ELSE 60 + + 98 * 56 END ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL + CASE - ( 15 ) WHEN + SUM( - 55 ) - - 34 THEN - - COUNT( * ) * - - 0 * + 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + CASE - ( 15 ) WHEN + SUM ( - 55 ) - - 34 THEN - - COUNT ( * ) * - - 0 * + 13 END
----
NULL

query I rowsort
SELECT + 55 * + - ( - ( + 12 ) ) + 96
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ( + 93 ) * + 19 * + + 64 * COUNT( * ) + + 6
----
113094

skipif mysql # not compatible
query I rowsort label-2941
SELECT ( + 93 ) * + 19 * + + 64 * COUNT ( * ) + + 6
----
113094

query I rowsort
SELECT + + 95 * - + 70 + 72 + 44 * - 80
----
-10098

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

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL MIN ( - 9 )
----
-9

query I rowsort
SELECT ( - 13 ) + + 69 AS col2
----
56

query I rowsort
SELECT 10 + + 1 AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT ALL - 64 DIV + 61 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL - 64 / + 61 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2947
SELECT ( - 39 ) + + 98 AS col0, 8 DIV - CASE 39 WHEN - 25 THEN 42 + - 70 * + 62 ELSE + NULLIF ( 68, + COUNT( * ) ) END AS col2
----
59
0

skipif mysql # not compatible
query II rowsort label-2947
SELECT ( - 39 ) + + 98 AS col0, 8 / - CASE 39 WHEN - 25 THEN 42 + - 70 * + 62 ELSE + NULLIF ( 68, + COUNT ( * ) ) END AS col2
----
59
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL + 0 + + MIN( + - 10 ) + 58 * + 51 AS col1
----
2948

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL + 0 + + MIN ( + - 10 ) + 58 * + 51 AS col1
----
2948

query I rowsort
SELECT 26 + - 77
----
-51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2950
SELECT ALL 71 + - NULLIF ( + 60, - 86 / + - 40 + + 90 + + CASE COALESCE ( - 46, + + 74 * - - 67 / + + 39, - 9 ) WHEN 7 * - 89 THEN CAST( NULL AS DECIMAL ) WHEN COUNT( * ) THEN NULL ELSE NULL END + - + 87 ) - - 97 + - 97 * - COUNT( ALL 34 )
----
205

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL 71 + - NULLIF ( + 60, - 86 / + - 40 + + 90 + + CASE COALESCE ( - 46, + + 74 * - - 67 / + + 39, - 9 ) WHEN 7 * - 89 THEN CAST ( NULL AS REAL ) WHEN COUNT ( * ) THEN NULL ELSE NULL END + - + 87 ) - - 97 + - 97 * - COUNT ( ALL 34 )
----
205

query I rowsort
SELECT 35 + + - 76 AS col2
----
-41

query I rowsort
SELECT 45 + - - 28 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL + COALESCE ( 95, - 13 * + 59 ) + 13 + + 21 * - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL + COALESCE ( 95, - 13 * + 59 ) + 13 + + 21 * - COUNT ( * ) AS col1
----
87

query II rowsort
SELECT 26 AS col0, 54
----
26
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2955
SELECT 25 + + + NULLIF ( - 97, - 79 / + COUNT( ALL 40 ) / + + CAST( NULL AS DECIMAL ) + + 0 + 30 + - COUNT( * ) / - COALESCE ( 34, - 34, - - 54 * + COUNT( * ), ( 29 ) + COALESCE ( 91, - COUNT( * ) ) * 75 ) * - COUNT( * ) + + ( + COUNT( * ) ) + - 9 + - 11 ) + + + 86 + + - 41 * 46 AS col0
----
-1872

skipif mysql # not compatible
query I rowsort label-2955
SELECT 25 + + + NULLIF ( - 97, - 79 / + COUNT ( ALL 40 ) / + + CAST ( NULL AS REAL ) + + 0 + 30 + - COUNT ( * ) / - COALESCE ( 34, - 34, - - 54 * + COUNT ( * ), ( 29 ) + COALESCE ( 91, - COUNT ( * ) ) * 75 ) * - COUNT ( * ) + + ( + COUNT ( * ) ) + - 9 + - 11 ) + + + 86 + + - 41 * 46 AS col0
----
-1872

query I rowsort
SELECT ALL + 74 + - 80 AS col1
----
-6

query I rowsort
SELECT ALL + 38 + + 12 AS col2
----
50

query I rowsort
SELECT 60 * - 87 AS col2
----
-5220

query I rowsort
SELECT DISTINCT + 57 - - + 88
----
145

onlyif mysql # DIV for integer division: 
query II rowsort label-2960
SELECT + 50 AS col2, 1 - - - ( + 95 ) DIV 78
----
50
0

skipif mysql # not compatible
query II rowsort label-2960
SELECT + 50 AS col2, 1 - - - ( + 95 ) / 78
----
50
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL - + COUNT( * ) - - - 29 + - + 13
----
-43

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL - + COUNT ( * ) - - - 29 + - + 13
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT + SUM( 50 ) * - - 93 AS col2
----
4650

skipif mysql # not compatible
query I rowsort label-2962
SELECT + SUM ( 50 ) * - - 93 AS col2
----
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT 50 * + 40 + + COUNT( * )
----
2001

skipif mysql # not compatible
query I rowsort label-2963
SELECT 50 * + 40 + + COUNT ( * )
----
2001

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

skipif mysql # not compatible
query II rowsort label-2964
SELECT ALL - - 2 AS col0, - COUNT ( * )
----
2
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2965
SELECT ALL - - 28 DIV + 91 - COUNT( * ) * + 6 * + + 42
----
-252

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL - - 28 / + 91 - COUNT ( * ) * + 6 * + + 42
----
-252

query I rowsort
SELECT - 46 + - + 31
----
-77

query II rowsort
SELECT ALL - + 85 AS col0, 97 * + - 97 AS col1
----
-85
-9409

query I rowsort
SELECT ALL + - 15 * - 80 AS col1
----
1200

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2970
SELECT 14 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-2970
SELECT 14 / + 72
----
0

query I rowsort
SELECT + 12 * + 73
----
876

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT ALL - + CASE + 1 WHEN - + COUNT( * ) * AVG ( ALL + + 11 ) / + 38 * 25 * - + 6 THEN 53 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL - + CASE + 1 WHEN - + COUNT ( * ) * AVG ( ALL + + 11 ) / + 38 * 25 * - + 6 THEN 53 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ( + 64 ) * - MIN( DISTINCT - 13 )
----
832

skipif mysql # not compatible
query I rowsort label-2973
SELECT ( + 64 ) * - MIN ( DISTINCT - 13 )
----
832

query II rowsort
SELECT + 25 AS col0, + 10
----
25
10

query I rowsort
SELECT ALL 92 + + 66 AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT ALL + 12 + - ( - COUNT( * ) ) + + 60 col0
----
73

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL + 12 + - ( - COUNT ( * ) ) + + 60 col0
----
73

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

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

query I rowsort
SELECT ALL 95 + + 25 AS col1
----
120

query I rowsort
SELECT DISTINCT 30 + + 64 + 85 col2
----
179

query I rowsort
SELECT 45 * - + 6
----
-270

onlyif mysql # DIV for integer division: 
query I rowsort label-2981
SELECT 35 DIV - 68 * 83 * 61
----
0

skipif mysql # not compatible
query I rowsort label-2981
SELECT 35 / - 68 * 83 * 61
----
0

query I rowsort
SELECT ALL 29 + - 38 col0
----
-9

query I rowsort
SELECT DISTINCT - 24 + - 53 * 45 + - 54 * - 43 AS col1
----
-87

query I rowsort
SELECT ALL + 70 + - - 63 AS col2
----
133

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

skipif mysql # not compatible
query I rowsort label-2985
SELECT - MIN ( ( - - 78 ) )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2986
SELECT ALL MIN( DISTINCT - 41 ) DIV + 96 * + 18 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL MIN ( DISTINCT - 41 ) / + 96 * + 18 + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT 70 * - + 62
----
-4340

onlyif mysql # aggregate syntax: 
query II rowsort label-2988
SELECT - MIN( ALL + 63 ), 43 col0
----
-63
43

skipif mysql # not compatible
query II rowsort label-2988
SELECT - MIN ( ALL + 63 ), 43 col0
----
-63
43

onlyif mysql # DIV for integer division: 
query II rowsort label-2989
SELECT 76 + + + 92 + - 94 DIV + - 45 col2, 42 AS col0
----
170
42

skipif mysql # not compatible
query II rowsort label-2989
SELECT 76 + + + 92 + - 94 / + - 45 col2, 42 AS col0
----
170
42

query I rowsort
SELECT DISTINCT + 52 * - 25
----
-1300

query I rowsort
SELECT 7 * + 45 - + + ( - 51 )
----
366

query I rowsort
SELECT ALL - 9 * + 83 AS col1
----
-747

query I rowsort
SELECT + NULLIF ( 59, 68 )
----
59

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

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

query I rowsort
SELECT + 44 * + + 72 + 58
----
3226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2996
SELECT ALL - 49 * - 51 DIV + COUNT( * ) * + - COUNT( * ) + + + 24 DIV + COUNT( - - 31 )
----
-2475

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL - 49 * - 51 / + COUNT ( * ) * + - COUNT ( * ) + + + 24 / + COUNT ( - - 31 )
----
-2475

query I rowsort
SELECT DISTINCT - - COALESCE ( + + 91, 27 + + 47, - 65 ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT + SUM( DISTINCT - - 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2998
SELECT + SUM ( DISTINCT - - 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT 5 * + COUNT( ALL + - 32 ) + + 45 - - 27
----
77

skipif mysql # not compatible
query I rowsort label-2999
SELECT 5 * + COUNT ( ALL + - 32 ) + + 45 - - 27
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3000
SELECT ALL + MIN( ALL 56 ), 37 col1
----
56
37

skipif mysql # not compatible
query II rowsort label-3000
SELECT ALL + MIN ( ALL 56 ), 37 col1
----
56
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT - 10 * + COUNT( DISTINCT NULLIF ( + 27, - - 14 * 72 ) ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3001
SELECT - 10 * + COUNT ( DISTINCT NULLIF ( + 27, - - 14 * 72 ) ) AS col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT ALL - - 22 * - 1 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - - 22 * - 1 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 27 * + 40 AS col2
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT DISTINCT - 16 * + MIN( ALL + 4 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT - 16 * + MIN ( ALL + 4 ) AS col2
----
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3005
SELECT ALL + CAST( NULL AS DECIMAL ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL + CAST ( NULL AS REAL ) + - 20
----
NULL

query I rowsort
SELECT + - COALESCE ( - + 32, + ( + 42 ), - 99, + - 69 )
----
32

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

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - + COUNT ( * ) + - 92 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT DISTINCT + NULLIF ( + CASE + 98 WHEN - COUNT( * ) THEN NULL WHEN - 36 * + ( + - COUNT( * ) ) + 26 THEN COUNT( * ) END, - 91 ) + + 67 + + ( - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT + NULLIF ( + CASE + 98 WHEN - COUNT ( * ) THEN NULL WHEN - 36 * + ( + - COUNT ( * ) ) + 26 THEN COUNT ( * ) END, - 91 ) + + 67 + + ( - COUNT ( * ) ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT - 78 + 63 DIV + 84
----
-78

skipif mysql # not compatible
query I rowsort label-3010
SELECT - 78 + 63 / + 84
----
-78

query I rowsort
SELECT + 83 * - ( 12 ) AS col2
----
-996

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT ALL 42 + - + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL 42 + - + COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT 37 * COUNT( * ) + + 84 * - 64 * + 34
----
-182747

skipif mysql # not compatible
query I rowsort label-3013
SELECT 37 * COUNT ( * ) + + 84 * - 64 * + 34
----
-182747

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3014
SELECT ALL COALESCE ( - CASE - MAX( DISTINCT - - 34 ) WHEN + 78 THEN 50 DIV - 78 + COUNT( * ) END, + 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL COALESCE ( - CASE - MAX ( DISTINCT - - 34 ) WHEN + 78 THEN 50 / - 78 + COUNT ( * ) END, + 74 ) AS col1
----
74

query I rowsort
SELECT - 24 + + - 92 * - - 95 col2
----
-8764

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT COALESCE ( + + 38, + 81 + - 29 - + 2 - + + 3 * + 69 * + + COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT COALESCE ( + + 38, + 81 + - 29 - + 2 - + + 3 * + 69 * + + COUNT ( * ) )
----
38

query I rowsort
SELECT DISTINCT CASE - 66 WHEN + 56 THEN NULL ELSE 25 END
----
25

query I rowsort
SELECT ALL 12 - 4 AS col0
----
8

query I rowsort
SELECT + 17 * - 33
----
-561

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT + MIN( ALL - - 46 ) + 20
----
66

skipif mysql # not compatible
query I rowsort label-3020
SELECT + MIN ( ALL - - 46 ) + 20
----
66

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3022
SELECT DISTINCT 41 - + - CASE - + 56 WHEN - + 25 * - 30 THEN + CASE + 86 WHEN + 51 + 11 THEN NULL WHEN 10 THEN - + COALESCE ( 7, + 66 ) * COUNT( * ) + 43 + + + CAST( - AVG ( DISTINCT ( + + ( + ( + 58 ) ) ) ) AS SIGNED ) * + 34 END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT 41 - + - CASE - + 56 WHEN - + 25 * - 30 THEN + CASE + 86 WHEN + 51 + 11 THEN NULL WHEN 10 THEN - + COALESCE ( 7, + 66 ) * COUNT ( * ) + 43 + + + CAST ( - AVG ( DISTINCT ( + + ( + ( + 58 ) ) ) ) AS INTEGER ) * + 34 END ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 70 + - 99 col2
----
-29

query I rowsort
SELECT - 81 * 65 * - CASE - 97 WHEN + - 22 THEN - - 2 ELSE NULL END
----
NULL

query I rowsort
SELECT + 87 * - 43 AS col1
----
-3741

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3026
SELECT + ( CASE - + NULLIF ( + 7, + 72 ) WHEN + 40 * - ( - + COUNT( * ) ) THEN NULL ELSE 18 + + 20 END ) + + - 93 DIV 33 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3026
SELECT + ( CASE - + NULLIF ( + 7, + 72 ) WHEN + 40 * - ( - + COUNT ( * ) ) THEN NULL ELSE 18 + + 20 END ) + + - 93 / 33 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT - MIN( ALL + 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3027
SELECT - MIN ( ALL + 35 ) AS col0
----
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT - COALESCE ( - 34, 0 * - COUNT( * ) * 50 )
----
34

skipif mysql # not compatible
query I rowsort label-3029
SELECT - COALESCE ( - 34, 0 * - COUNT ( * ) * 50 )
----
34

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3031
SELECT ALL + MIN( DISTINCT - 53 ) DIV 87 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL + MIN ( DISTINCT - 53 ) / 87 - COUNT ( * )
----
-1

query I rowsort
SELECT ALL + ( - 79 ) * - 62 AS col1
----
4898

onlyif mysql # DIV for integer division: 
query I rowsort label-3033
SELECT DISTINCT 7 DIV - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT 7 / - 89 AS col2
----
0

query II rowsort
SELECT + 81 + 26 * - - 75, 62 AS col0
----
2031
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT + + COALESCE ( - 41, - 92 ) * - CASE - 85 WHEN + 19 * 71 THEN - 66 WHEN + 42 THEN COUNT( * ) + - ( + - 87 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT + + COALESCE ( - 41, - 92 ) * - CASE - 85 WHEN + 19 * 71 THEN - 66 WHEN + 42 THEN COUNT ( * ) + - ( + - 87 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT + CAST( - 22 AS SIGNED ) + - 94 + + - 23
----
-139

skipif mysql # not compatible
query I rowsort label-3036
SELECT + CAST ( - 22 AS INTEGER ) + - 94 + + - 23
----
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT + 95 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-3037
SELECT + 95 / 96
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3038
SELECT - 64 DIV - 36
----
1

skipif mysql # not compatible
query I rowsort label-3038
SELECT - 64 / - 36
----
1

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

skipif mysql # not compatible
query I rowsort label-3039
SELECT + MAX ( + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - + ( + MAX( ALL - 4 ) ) * - MIN( + 2 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3040
SELECT - + ( + MAX ( ALL - 4 ) ) * - MIN ( + 2 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT DISTINCT 31 * - - COUNT( * ) * - + NULLIF ( + 8, - - SUM( ALL - - 68 ) / 94 ) + - 38 AS col2
----
-286

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT 31 * - - COUNT ( * ) * - + NULLIF ( + 8, - - SUM ( ALL - - 68 ) / 94 ) + - 38 AS col2
----
-286

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

query I rowsort
SELECT CASE - 98 WHEN + + 17 THEN NULL WHEN + + AVG ( - 32 ) THEN - 28 ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT DISTINCT + + MIN( + - 58 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT + + MIN ( + - 58 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT DISTINCT + MAX( ALL - 79 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT + MAX ( ALL - 79 ) AS col2
----
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT - COUNT( * ) + - 21 + - + 6 * 64
----
-406

skipif mysql # not compatible
query I rowsort label-3048
SELECT - COUNT ( * ) + - 21 + - + 6 * 64
----
-406

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT - 48 DIV + 2 col0
----
-24

skipif mysql # not compatible
query I rowsort label-3049
SELECT - 48 / + 2 col0
----
-24

query I rowsort
SELECT ALL + 42 * + ( - 19 )
----
-798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3051
SELECT - COUNT( * ) * - - 90 DIV 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3051
SELECT - COUNT ( * ) * - - 90 / 92 AS col1
----
0

query I rowsort
SELECT - 94 * 55
----
-5170

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3055
SELECT - SUM ( ALL - 88 )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3056
SELECT - SUM( ALL + 44 ) DIV + 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3056
SELECT - SUM ( ALL + 44 ) / + 76 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3057
SELECT DISTINCT CAST( 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT CAST ( 4 AS INTEGER ) AS col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3058
SELECT - COUNT( * ) * - 63 DIV - + SUM( DISTINCT - 97 ) AS col0, 84 AS col1
----
0
84

skipif mysql # not compatible
query II rowsort label-3058
SELECT - COUNT ( * ) * - 63 / - + SUM ( DISTINCT - 97 ) AS col0, 84 AS col1
----
0
84

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

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

query I rowsort
SELECT DISTINCT - 60 * - - 27 * 10 AS col0
----
-16200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3061
SELECT + 26 - - COUNT( ALL - 85 ) + COALESCE ( 91, - 96, - 37 ) DIV - - 69
----
28

skipif mysql # not compatible
query I rowsort label-3061
SELECT + 26 - - COUNT ( ALL - 85 ) + COALESCE ( 91, - 96, - 37 ) / - - 69
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ALL + + COUNT( * ) * - ( 53 ) * 67 + + + 45 AS col2
----
-3506

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL + + COUNT ( * ) * - ( 53 ) * 67 + + + 45 AS col2
----
-3506

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT - - SUM( ALL + 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3063
SELECT - - SUM ( ALL + 83 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT DISTINCT + 41 + - ( + - MAX( + NULLIF ( + 29, + 56 ) ) ) * + ( 98 ) + - 68
----
2815

skipif mysql # not compatible
query I rowsort label-3064
SELECT DISTINCT + 41 + - ( + - MAX ( + NULLIF ( + 29, + 56 ) ) ) * + ( 98 ) + - 68
----
2815

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

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

query II rowsort
SELECT + - 43 AS col2, + 52 * + 88 AS col2
----
-43
4576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3067
SELECT 30 * + CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3067
SELECT 30 * + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT - 37 * + 1 + + ( - + NULLIF ( + COUNT( * ), 6 * + 32 - + - 13 ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3068
SELECT - 37 * + 1 + + ( - + NULLIF ( + COUNT ( * ), 6 * + 32 - + - 13 ) ) AS col2
----
-38

query I rowsort
SELECT ALL - ( + NULLIF ( 55, 32 ) )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT DISTINCT + - MIN( + - 33 ) + + 97 + + 11 + + 16
----
157

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT + - MIN ( + - 33 ) + + 97 + + 11 + + 16
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3071
SELECT DISTINCT - + CASE + 2 WHEN - - COUNT( * ) THEN + 74 * 6 * - CAST( - 29 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT - + CASE + 2 WHEN - - COUNT ( * ) THEN + 74 * 6 * - CAST ( - 29 AS INTEGER ) END AS col2
----
NULL

query II rowsort
SELECT ALL + 47 + - + 78 * - + 29 + + 17 AS col0, 24
----
2326
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3073
SELECT DISTINCT + COUNT( ALL - CAST( NULL AS SIGNED ) ) DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) / 86
----
0

query I rowsort
SELECT ALL 81 + 42 AS col1
----
123

query I rowsort
SELECT - 55 * - + 64
----
3520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3076
SELECT ALL COUNT( * ) / - - CAST( NULL AS SIGNED ) + - 62 / - 0 * - + COUNT( * ) * - + CAST( NULL AS SIGNED ) * + - ( - COUNT( * ) ) / + 49 * + - 71 - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL COUNT ( * ) / - - CAST ( NULL AS INTEGER ) + - 62 / - 0 * - + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + - ( - COUNT ( * ) ) / + 49 * + - 71 - 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3077
SELECT + - COUNT( * ) AS col1, + 52 * ( + 4 ) - + SUM( + 34 ) AS col2
----
-1
174

skipif mysql # not compatible
query II rowsort label-3077
SELECT + - COUNT ( * ) AS col1, + 52 * ( + 4 ) - + SUM ( + 34 ) AS col2
----
-1
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3078
SELECT + MIN( + 62 ) DIV + 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3078
SELECT + MIN ( + 62 ) / + 48 AS col1
----
1

query I rowsort
SELECT ALL - 64 - + 4
----
-68

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

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

query I rowsort
SELECT 54 * + 10 * - + 8 AS col1
----
-4320

query I rowsort
SELECT + ( - 99 ) * + - 65 - - + 99
----
6534

query I rowsort
SELECT 34 + - 55
----
-21

query II rowsort
SELECT 69 + - 1 AS col1, 43 AS col0
----
68
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3085
SELECT 76 DIV - 91 * - 6 * + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3085
SELECT 76 / - 91 * - 6 * + 62 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3086
SELECT ALL - 48 + + CAST( NULL AS DECIMAL ) + + - 78 * - 82 * - 69 + + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL - 48 + + CAST ( NULL AS REAL ) + + - 78 * - 82 * - 69 + + + 96
----
NULL

query I rowsort
SELECT 88 + ( - ( 69 ) )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3088
SELECT ALL + 76 * + ( - SUM( DISTINCT - 63 ) ) * - 32 * - - NULLIF ( + + AVG ( + CASE CAST( NULL AS SIGNED ) WHEN - + 25 THEN - 89 + - 62 ELSE NULL END ), - - 80 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL + 76 * + ( - SUM ( DISTINCT - 63 ) ) * - 32 * - - NULLIF ( + + AVG ( + CASE CAST ( NULL AS INTEGER ) WHEN - + 25 THEN - 89 + - 62 ELSE NULL END ), - - 80 ) AS col1
----
NULL

query I rowsort
SELECT CASE - - 98 WHEN + + 50 THEN 1 + 22 ELSE NULL END / + 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3090
SELECT - + MIN( DISTINCT - - 55 ) AS col1, + 61
----
-55
61

skipif mysql # not compatible
query II rowsort label-3090
SELECT - + MIN ( DISTINCT - - 55 ) AS col1, + 61
----
-55
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT ( - 87 ) + - 7 DIV + 61
----
-87

skipif mysql # not compatible
query I rowsort label-3091
SELECT ( - 87 ) + - 7 / + 61
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT 66 * 97 + - - 78 + - COALESCE ( + 63, + 3, - - 99 ) + 60 DIV - NULLIF ( + 95, + ( 71 ) + + NULLIF ( + 11, 84 * + ( + 37 ) ) ) * + 17 AS col0
----
6417

skipif mysql # not compatible
query I rowsort label-3092
SELECT 66 * 97 + - - 78 + - COALESCE ( + 63, + 3, - - 99 ) + 60 / - NULLIF ( + 95, + ( 71 ) + + NULLIF ( + 11, 84 * + ( + 37 ) ) ) * + 17 AS col0
----
6417

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT DISTINCT + 70 + - COUNT( * ) + 88 * + 30 * 38 * - 17
----
-1705371

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT + 70 + - COUNT ( * ) + 88 * + 30 * 38 * - 17
----
-1705371

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT ALL - - 94 + + SUM( 86 ) + COALESCE ( - - 76, - 35 + - COALESCE ( + - 93, + 62 * + 31 - + + 77 * - 67 ) + - COUNT( * ) - 47 + + + 33, - 85, + 3 ) AS col1
----
256

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL - - 94 + + SUM ( 86 ) + COALESCE ( - - 76, - 35 + - COALESCE ( + - 93, + 62 * + 31 - + + 77 * - 67 ) + - COUNT ( * ) - 47 + + + 33, - 85, + 3 ) AS col1
----
256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3095
SELECT ( + 8 ) * - - COUNT( * ) + - + NULLIF ( 35, + 88 * 59 + + 67 ) - - SUM( ALL + - ( + CAST( NULL AS SIGNED ) ) ) / + ( 47 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3095
SELECT ( + 8 ) * - - COUNT ( * ) + - + NULLIF ( 35, + 88 * 59 + + 67 ) - - SUM ( ALL + - ( + CAST ( NULL AS INTEGER ) ) ) / + ( 47 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT - NULLIF ( 14, - SUM( ALL 14 ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3096
SELECT - NULLIF ( 14, - SUM ( ALL 14 ) ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT DISTINCT + SUM( ALL - ( + 19 ) ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT + SUM ( ALL - ( + 19 ) ) AS col2
----
-19

query I rowsort
SELECT + 53 * 44
----
2332

query I rowsort
SELECT ALL 32 * + 2 AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3100
SELECT + 93 * - - 59 DIV COUNT( - 25 ) + + 85 * - 81 AS col0
----
-1398

skipif mysql # not compatible
query I rowsort label-3100
SELECT + 93 * - - 59 / COUNT ( - 25 ) + + 85 * - 81 AS col0
----
-1398

query I rowsort
SELECT + 20 - + 57
----
-37

query I rowsort
SELECT ALL + 42 * - 60
----
-2520

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

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

query II rowsort
SELECT 48 AS col0, 6
----
48
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3105
SELECT 44 DIV 44
----
1

skipif mysql # not compatible
query I rowsort label-3105
SELECT 44 / 44
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3106
SELECT COUNT( * ) * - - CASE - - 7 WHEN - - 32 + - COALESCE ( 68, - ( - 69 ) ) THEN NULL WHEN + 20 THEN 57 - + 38 END + 40 + + + 75 * + ( 63 ) * + CAST( + + 55 AS DECIMAL ) * 27 + 72 + - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3106
SELECT COUNT ( * ) * - - CASE - - 7 WHEN - - 32 + - COALESCE ( 68, - ( - 69 ) ) THEN NULL WHEN + 20 THEN 57 - + 38 END + 40 + + + 75 * + ( 63 ) * + CAST ( + + 55 AS REAL ) * 27 + 72 + - 58 AS col1
----
NULL

query I rowsort
SELECT ALL 53 * - 48 AS col0
----
-2544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3108
SELECT CASE - - 96 WHEN + + 73 - + CAST( NULL AS SIGNED ) + - - ( - + AVG ( ALL 47 ) ) * + + 84 + 99 THEN + + 71 END * 79 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3108
SELECT CASE - - 96 WHEN + + 73 - + CAST ( NULL AS INTEGER ) + - - ( - + AVG ( ALL 47 ) ) * + + 84 + 99 THEN + + 71 END * 79 col0
----
NULL

query I rowsort
SELECT 89 * 79
----
7031

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT + SUM( 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3110
SELECT + SUM ( 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3111
SELECT ALL 46 * + COUNT( * ) * + COUNT( * ) AS col1, - 59 * - 76 AS col1
----
46
4484

skipif mysql # not compatible
query II rowsort label-3111
SELECT ALL 46 * + COUNT ( * ) * + COUNT ( * ) AS col1, - 59 * - 76 AS col1
----
46
4484

query I rowsort
SELECT DISTINCT 58 + + 16 AS col0
----
74

query II rowsort
SELECT ALL - 5, + 73 col0
----
-5
73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT CAST( + - 53 AS SIGNED ) * 2 * - + 55 AS col0
----
5830

skipif mysql # not compatible
query I rowsort label-3115
SELECT CAST ( + - 53 AS INTEGER ) * 2 * - + 55 AS col0
----
5830

query II rowsort
SELECT 91 AS col1, 8 * - 90 AS col1
----
91
-720

query II rowsort
SELECT 94, - 62 col1
----
94
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT + ( - 96 ) * + + 24 + 59 + CAST( ( - 57 ) AS SIGNED ) + + 68
----
-2234

skipif mysql # not compatible
query I rowsort label-3118
SELECT + ( - 96 ) * + + 24 + 59 + CAST ( ( - 57 ) AS INTEGER ) + + 68
----
-2234

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT - 57 * MAX( - 7 )
----
399

skipif mysql # not compatible
query I rowsort label-3119
SELECT - 57 * MAX ( - 7 )
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT - SUM( ALL 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3120
SELECT - SUM ( ALL 10 ) AS col0
----
-10

query I rowsort
SELECT + 61 - 37 AS col2
----
24

query I rowsort
SELECT ALL - + 41 * 76
----
-3116

query II rowsort
SELECT ALL + 85, 69 AS col2
----
85
69

query I rowsort
SELECT ALL 58 + + 86 * + + 54 + + + 15
----
4717

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT - SUM( DISTINCT - 18 )
----
18

skipif mysql # not compatible
query I rowsort label-3125
SELECT - SUM ( DISTINCT - 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT + - 29 + + - 53 + + 29 * COUNT( * ) + + - 10 + - 87 col0
----
-150

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT + - 29 + + - 53 + + 29 * COUNT ( * ) + + - 10 + - 87 col0
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3127
SELECT - - 94 * - CAST( + 98 AS SIGNED )
----
-9212

skipif mysql # not compatible
query I rowsort label-3127
SELECT - - 94 * - CAST ( + 98 AS INTEGER )
----
-9212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3128
SELECT ALL - MIN( DISTINCT 95 ) * 78 * 66 * + MIN( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL - MIN ( DISTINCT 95 ) * 78 * 66 * + MIN ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3129
SELECT + - 25 + + + 18 DIV COUNT( * ) + + + 17
----
10

skipif mysql # not compatible
query I rowsort label-3129
SELECT + - 25 + + + 18 / COUNT ( * ) + + + 17
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3130
SELECT + + COUNT( ALL + CAST( NULL AS SIGNED ) ) + 15 AS col1
----
15

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3131
SELECT - - COUNT( * ) / - - 63 * + 59 / CAST( NULL AS SIGNED ) AS col1, 77
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3131
SELECT - - COUNT ( * ) / - - 63 * + 59 / CAST ( NULL AS INTEGER ) AS col1, 77
----
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT - 77 * - CASE + - CASE + 78 WHEN + MIN( + - 89 ) * - 92 THEN NULL WHEN + 39 * - 40 + - 75 + + 83 / - + COUNT( * ) THEN + - 14 END WHEN 31 + 1 + - 18 + + + 92 * - - 2 * - - ( + - 97 ) - + COUNT( * ) THEN + 8 * - 32 * + ( + + 83 ) - 21 + - + 88 WHEN + 81 * + 10 THEN - 69 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT - 77 * - CASE + - CASE + 78 WHEN + MIN ( + - 89 ) * - 92 THEN NULL WHEN + 39 * - 40 + - 75 + + 83 / - + COUNT ( * ) THEN + - 14 END WHEN 31 + 1 + - 18 + + + 92 * - - 2 * - - ( + - 97 ) - + COUNT ( * ) THEN + 8 * - 32 * + ( + + 83 ) - 21 + - + 88 WHEN + 81 * + 10 THEN - 69 END AS col1
----
NULL

query I rowsort
SELECT - 47 * 16 * - - 95 + 25 AS col2
----
-71415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3134
SELECT ALL + + 86 - - 72 + + 41 + ( - 43 ) * - - COUNT( * ) DIV 53 DIV 91 + + - 83 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL + + 86 - - 72 + + 41 + ( - 43 ) * - - COUNT ( * ) / 53 / 91 + + - 83 AS col2
----
116

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

query II rowsort
SELECT 56, + 53 AS col2
----
56
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3137
SELECT 84 * - - ( - + 95 ) + + 19 DIV + 38 + + + 36 + - COUNT( * ) DIV + ( - COALESCE ( + 93, + + ( - + 71 ) DIV - - 39 + + CAST( NULL AS SIGNED ) ) ) + - - 25 - 74
----
-7993

skipif mysql # not compatible
query I rowsort label-3137
SELECT 84 * - - ( - + 95 ) + + 19 / + 38 + + + 36 + - COUNT ( * ) / + ( - COALESCE ( + 93, + + ( - + 71 ) / - - 39 + + CAST ( NULL AS INTEGER ) ) ) + - - 25 - 74
----
-7993

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

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

query I rowsort
SELECT - - 93 * - - 30
----
2790

query I rowsort
SELECT ALL - 82 * - 72
----
5904

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL + COUNT( DISTINCT - + 12 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + COUNT ( DISTINCT - + 12 ) col2
----
1

query I rowsort
SELECT NULLIF ( + 47, + 53 + + - 23 )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3143
SELECT - 65 * - + COUNT( * ), 63 + - 21 + 60 col0
----
65
102

skipif mysql # not compatible
query II rowsort label-3143
SELECT - 65 * - + COUNT ( * ), 63 + - 21 + 60 col0
----
65
102

query I rowsort
SELECT ALL - 11 * + 96
----
-1056

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3146
SELECT ALL - 20 * 16 DIV - CASE + + 95 WHEN 72 * - 98 * ( 57 ) * - 92 THEN NULL WHEN - - 86 * - 34 + - 71 + - 2 THEN - + 2 + COUNT( * ) ELSE - 13 END
----
-24

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL - 20 * 16 / - CASE + + 95 WHEN 72 * - 98 * ( 57 ) * - 92 THEN NULL WHEN - - 86 * - 34 + - 71 + - 2 THEN - + 2 + COUNT ( * ) ELSE - 13 END
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT DISTINCT + ( + 43 ) * - - COUNT( * ) * + - COUNT( * ) * COUNT( * ) + - - 99 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT + ( + 43 ) * - - COUNT ( * ) * + - COUNT ( * ) * COUNT ( * ) + - - 99 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL - COUNT( * ) * + - 89 * 6
----
534

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL - COUNT ( * ) * + - 89 * 6
----
534

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT COALESCE ( 69, 55 + 69 * MIN( 1 ) * - 98 )
----
69

skipif mysql # not compatible
query I rowsort label-3149
SELECT COALESCE ( 69, 55 + 69 * MIN ( 1 ) * - 98 )
----
69

query I rowsort
SELECT DISTINCT - 94 * 70
----
-6580

onlyif mysql # DIV for integer division: 
query I rowsort label-3151
SELECT + 87 DIV 7
----
12

skipif mysql # not compatible
query I rowsort label-3151
SELECT + 87 / 7
----
12

query I rowsort
SELECT 12 * - 57 - - 14
----
-670

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3153
SELECT ALL 85 * CAST( ( + 0 ) AS SIGNED ) + - 90, - 64 + - - NULLIF ( 91, + + 67 ) AS col2
----
-90
27

skipif mysql # not compatible
query II rowsort label-3153
SELECT ALL 85 * CAST ( ( + 0 ) AS INTEGER ) + - 90, - 64 + - - NULLIF ( 91, + + 67 ) AS col2
----
-90
27

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

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

query I rowsort
SELECT - 52 + - - 21 col2
----
-31

query I rowsort
SELECT + 57 - 82 - + + 73
----
-98

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

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

query I rowsort
SELECT + 47 * - + ( - - 87 ) + + 13
----
-4076

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT COUNT( 40 )
----
1

skipif mysql # not compatible
query I rowsort label-3159
SELECT COUNT ( 40 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT ALL + 84 + - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL + 84 + - COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ALL COUNT( * ) * + NULLIF ( 43, COUNT( * ) ) * - COALESCE ( - 24, - - 27 * + NULLIF ( - 56, 3 ) + COUNT( * ) ) AS col2
----
1032

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL COUNT ( * ) * + NULLIF ( 43, COUNT ( * ) ) * - COALESCE ( - 24, - - 27 * + NULLIF ( - 56, 3 ) + COUNT ( * ) ) AS col2
----
1032

query I rowsort
SELECT + + ( + 41 ) + + - 16 * - + 81
----
1337

query I rowsort
SELECT ALL + 9 - 74
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT + - COUNT( * ) + + + ( 57 )
----
56

skipif mysql # not compatible
query I rowsort label-3164
SELECT + - COUNT ( * ) + + + ( 57 )
----
56

query I rowsort
SELECT ALL + 29 - 42
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL + 60 * - MIN( DISTINCT - 2 )
----
120

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL + 60 * - MIN ( DISTINCT - 2 )
----
120

query I rowsort
SELECT + 8 + - - 73
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT DISTINCT - COUNT( - 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT - COUNT ( - 67 )
----
-1

query I rowsort
SELECT ALL 91 - + 77
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3170
SELECT - 35 + + + ( - 18 ) * COALESCE ( + NULLIF ( 60, - COUNT( DISTINCT - 54 ) ), - CAST( COUNT( ALL CAST( NULL AS SIGNED ) ) AS SIGNED ) ) AS col1
----
-1115

skipif mysql # not compatible
query I rowsort label-3170
SELECT - 35 + + + ( - 18 ) * COALESCE ( + NULLIF ( 60, - COUNT ( DISTINCT - 54 ) ), - CAST ( COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) AS col1
----
-1115

query I rowsort
SELECT + 75 * - 9 AS col2
----
-675

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

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT - CAST ( + + 23 AS INTEGER ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT DISTINCT - 44 * - MAX( DISTINCT 83 ) AS col0
----
3652

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT - 44 * - MAX ( DISTINCT 83 ) AS col0
----
3652

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT - + 22 * - 83 + - COUNT( * ) * - - ( + + 70 ) + + 87
----
1843

skipif mysql # not compatible
query I rowsort label-3174
SELECT - + 22 * - 83 + - COUNT ( * ) * - - ( + + 70 ) + + 87
----
1843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3175
SELECT - + 50 / + 6 * - - ( + 32 ) * CAST( NULL AS SIGNED ) * 41 + + 26 + + 44 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3175
SELECT - + 50 / + 6 * - - ( + 32 ) * CAST ( NULL AS INTEGER ) * 41 + + 26 + + 44 * COUNT ( * )
----
NULL

query I rowsort
SELECT + 25 * - + 61 + - 16
----
-1541

query I rowsort
SELECT ALL + 79 * - 87
----
-6873

query I rowsort
SELECT ALL - 25 * + 82 AS col2
----
-2050

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT - 48 * + 66 * - COUNT( * ) * 48 * + 42 AS col2
----
6386688

skipif mysql # not compatible
query I rowsort label-3179
SELECT - 48 * + 66 * - COUNT ( * ) * 48 * + 42 AS col2
----
6386688

query I rowsort
SELECT - 59 + - ( - 35 ) * - + 95 AS col0
----
-3384

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3181
SELECT + 60 AS col1, + CAST( 37 AS SIGNED ) * + 49
----
60
1813

skipif mysql # not compatible
query II rowsort label-3181
SELECT + 60 AS col1, + CAST ( 37 AS INTEGER ) * + 49
----
60
1813

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3183
SELECT ALL - CAST( NULL AS DECIMAL ) / - 69 + + ( - - 87 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - CAST ( NULL AS REAL ) / - 69 + + ( - - 87 ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3184
SELECT ALL 0 * + 71 DIV + 35 AS col0, 68
----
0
68

skipif mysql # not compatible
query II rowsort label-3184
SELECT ALL 0 * + 71 / + 35 AS col0, 68
----
0
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3185
SELECT 53 DIV + 72 + - 45
----
-45

skipif mysql # not compatible
query I rowsort label-3185
SELECT 53 / + 72 + - 45
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-3186
SELECT ALL 13 DIV + 73 + - + 61
----
-61

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL 13 / + 73 + - + 61
----
-61

query I rowsort
SELECT 59 * + 3 * - 88
----
-15576

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT - COUNT( * ) * - 36 * - COUNT( * ) * 72 * 28 + - - 52 * + ( - 15 ) + - + 52
----
-73408

skipif mysql # not compatible
query I rowsort label-3188
SELECT - COUNT ( * ) * - 36 * - COUNT ( * ) * 72 * 28 + - - 52 * + ( - 15 ) + - + 52
----
-73408

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3189
SELECT 16 col2, ( + 38 ) + + 48 - + 85 + - - CAST( NULL AS SIGNED ) / + 77 AS col2
----
16
NULL

skipif mysql # not compatible
query II rowsort label-3189
SELECT 16 col2, ( + 38 ) + + 48 - + 85 + - - CAST ( NULL AS INTEGER ) / + 77 AS col2
----
16
NULL

query I rowsort
SELECT 20 * + + COALESCE ( 50, - 17, ( - 9 ) )
----
1000

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT + + MIN( + 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3191
SELECT + + MIN ( + 52 ) AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3192
SELECT - ( + CAST( + + MAX( ALL + 57 ) AS SIGNED ) ) * COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-3192
SELECT - ( + CAST ( + + MAX ( ALL + 57 ) AS INTEGER ) ) * COUNT ( * )
----
-57

query I rowsort
SELECT DISTINCT + - 57 * - + ( - + 0 ) AS col2
----
0

query I rowsort
SELECT + 83 * - - ( - - 4 )
----
332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT + 99 * + COUNT( * ) + + - 58 DIV - 32 + + - 35 DIV COUNT( * ) - COALESCE ( - 69, - 98, + + COUNT( ALL - 49 ), - 74 ) AS col1
----
134

skipif mysql # not compatible
query I rowsort label-3195
SELECT + 99 * + COUNT ( * ) + + - 58 / - 32 + + - 35 / COUNT ( * ) - COALESCE ( - 69, - 98, + + COUNT ( ALL - 49 ), - 74 ) AS col1
----
134

query I rowsort
SELECT + ( + - 64 ) * + 3 AS col2
----
-192

query II rowsort
SELECT ALL - ( 24 ) - 63 AS col1, 92 AS col2
----
-87
92

query II rowsort
SELECT - - 23, 84 * + 74 + + 69 AS col1
----
23
6285

query I rowsort
SELECT + ( - 19 ) - + 98 * 75 * - + 37 col0
----
271931

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3202
SELECT DISTINCT + + COUNT( * ) DIV + 77 + + 80, - MIN( 57 ) AS col0
----
80
-57

skipif mysql # not compatible
query II rowsort label-3202
SELECT DISTINCT + + COUNT ( * ) / + 77 + + 80, - MIN ( 57 ) AS col0
----
80
-57

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3204
SELECT DISTINCT - 54 * + 26 * - - 85 * + 14 + 21 * - - 48 * 59 + + - 48 + COALESCE ( - 75, + 53 DIV - 59 * - 37 + + - 98 )
----
-1611411

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT - 54 * + 26 * - - 85 * + 14 + 21 * - - 48 * 59 + + - 48 + COALESCE ( - 75, + 53 / - 59 * - 37 + + - 98 )
----
-1611411

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT COUNT( * ) - - 38
----
39

skipif mysql # not compatible
query I rowsort label-3206
SELECT COUNT ( * ) - - 38
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3207
SELECT ALL 30 + + + 68 AS col2, CAST( NULL AS SIGNED ) col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-3207
SELECT ALL 30 + + + 68 AS col2, CAST ( NULL AS INTEGER ) col2
----
98
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3208
SELECT ALL - 99, ( + NULLIF ( - 44, 70 * + + 29 + COUNT( * ) + + - 50 ) ) + 28 * + 19 col2
----
-99
488

skipif mysql # not compatible
query II rowsort label-3208
SELECT ALL - 99, ( + NULLIF ( - 44, 70 * + + 29 + COUNT ( * ) + + - 50 ) ) + 28 * + 19 col2
----
-99
488

query II rowsort
SELECT DISTINCT - 2 AS col0, ( - + 39 ) AS col2
----
-2
-39

query I rowsort
SELECT DISTINCT + 48 + 76
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-3211
SELECT DISTINCT 35 DIV + + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT 35 / + + 83 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL 94 + - - 64 + + CASE - 97 WHEN 41 * - ( 72 ) THEN NULL WHEN + 53 * + - COUNT( * ) THEN + 4 * + 47 + COUNT( * ) * - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL 94 + - - 64 + + CASE - 97 WHEN 41 * - ( 72 ) THEN NULL WHEN + 53 * + - COUNT ( * ) THEN + 4 * + 47 + COUNT ( * ) * - 4 END
----
NULL

query I rowsort
SELECT 95 * + - 68
----
-6460

query II rowsort
SELECT 4 * - 22 AS col0, - 6
----
-88
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT + COUNT( * ) * - 88 - - 78 + 35 + + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3215
SELECT + COUNT ( * ) * - 88 - - 78 + 35 + + COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3216
SELECT 94 + 41 + + - 42 + - 61 * + - 58 DIV - COUNT( ALL - 55 ) AS col1
----
-3445

skipif mysql # not compatible
query I rowsort label-3216
SELECT 94 + 41 + + - 42 + - 61 * + - 58 / - COUNT ( ALL - 55 ) AS col1
----
-3445

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT ALL 28 - - - MAX( ALL - 79 ) + - 68 + + 96
----
135

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL 28 - - - MAX ( ALL - 79 ) + - 68 + + 96
----
135

query II rowsort
SELECT DISTINCT - 36, + 25 AS col0
----
-36
25

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

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

query II rowsort
SELECT + 47, 30 + - 8 col2
----
47
22

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

skipif mysql # not compatible
query II rowsort label-3221
SELECT ALL - - 24 AS col2, COUNT ( * )
----
24
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT COALESCE ( - - ( 8 ), - + 94 + + - ( + COUNT( * ) ), + + 81 ) * + 83 + - - 45 - + - 75
----
784

skipif mysql # not compatible
query I rowsort label-3222
SELECT COALESCE ( - - ( 8 ), - + 94 + + - ( + COUNT ( * ) ), + + 81 ) * + 83 + - - 45 - + - 75
----
784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3223
SELECT - - 29 * + CASE ( + - 47 ) WHEN 62 * - 38 - 90 THEN - + ( - + 43 ) * - - 31 + + NULLIF ( + 91, - MAX( 28 ) * - COUNT( DISTINCT CASE + 43 WHEN - CAST( + - 14 AS SIGNED ) / ( + 77 ) - - 24 THEN + 97 ELSE NULL END ) - + + 27 + COUNT( ALL + CAST( NULL AS SIGNED ) ) ) * - + 32 END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT - - 29 * + CASE ( + - 47 ) WHEN 62 * - 38 - 90 THEN - + ( - + 43 ) * - - 31 + + NULLIF ( + 91, - MAX ( 28 ) * - COUNT ( DISTINCT CASE + 43 WHEN - CAST ( + - 14 AS INTEGER ) / ( + 77 ) - - 24 THEN + 97 ELSE NULL END ) - + + 27 + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) ) * - + 32 END + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 90 + + + 48
----
138

query I rowsort
SELECT - 99 * + 7 AS col2
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT 46 * + COUNT( * ) * - 46 + + 83 + COUNT( * )
----
-2032

skipif mysql # not compatible
query I rowsort label-3226
SELECT 46 * + COUNT ( * ) * - 46 + + 83 + COUNT ( * )
----
-2032

query II rowsort
SELECT ALL 58 AS col1, - 20
----
58
-20

query I rowsort
SELECT ALL + - ( + 70 ) * - 64 + + 0 - - 64
----
4544

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT ALL + 66 * + + MAX( + 87 )
----
5742

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL + 66 * + + MAX ( + 87 )
----
5742

query I rowsort
SELECT DISTINCT + 49 * + 36
----
1764

onlyif mysql # DIV for integer division: 
query II rowsort label-3231
SELECT 50 AS col2, 31 DIV + + ( - - 3 ) AS col0
----
50
10

skipif mysql # not compatible
query II rowsort label-3231
SELECT 50 AS col2, 31 / + + ( - - 3 ) AS col0
----
50
10

query I rowsort
SELECT ALL + 16 + 15 * 78 AS col1
----
1186

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT + NULLIF ( 58, - 98 ) + COUNT( ALL + 88 ) col2
----
59

skipif mysql # not compatible
query I rowsort label-3233
SELECT + NULLIF ( 58, - 98 ) + COUNT ( ALL + 88 ) col2
----
59

query I rowsort
SELECT ALL - ( ( - 37 ) ) col0
----
37

query I rowsort
SELECT + 46 * 45 AS col2
----
2070

onlyif mysql # aggregate syntax: 
query II rowsort label-3236
SELECT DISTINCT - COUNT( ALL + - 6 ), + ( - 24 ) AS col0
----
-1
-24

skipif mysql # not compatible
query II rowsort label-3236
SELECT DISTINCT - COUNT ( ALL + - 6 ), + ( - 24 ) AS col0
----
-1
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT DISTINCT + + 46 + + COUNT( * ) * 85
----
131

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT + + 46 + + COUNT ( * ) * 85
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT ALL - 61 / - CAST( NULL AS SIGNED ) * - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL - 61 / - CAST ( NULL AS INTEGER ) * - 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT ALL - 53 + + 59 + 53 * - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL - 53 + + 59 + 53 * - COUNT ( * )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT ALL 83 * - CAST( + - COUNT( * ) AS SIGNED ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL 83 * - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT ALL 53 + - + ( - - 28 ) + + 66 * + + 42 + - COALESCE ( + - COALESCE ( - NULLIF ( + - 84, AVG ( DISTINCT - 31 ) ), 39 * + 42 ), - 62 * ( - 40 ) - - - 24 + - 45 + - COUNT( * ) * 48 * - 27 ) * + 83 * + NULLIF ( + - 79, 46 ) AS col1
----
-547991

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL 53 + - + ( - - 28 ) + + 66 * + + 42 + - COALESCE ( + - COALESCE ( - NULLIF ( + - 84, AVG ( DISTINCT - 31 ) ), 39 * + 42 ), - 62 * ( - 40 ) - - - 24 + - 45 + - COUNT ( * ) * 48 * - 27 ) * + 83 * + NULLIF ( + - 79, 46 ) AS col1
----
-547991

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT - 59 - - + COALESCE ( + + COUNT( * ), - - ( + 50 ) ) * - - 22 col2
----
-37

skipif mysql # not compatible
query I rowsort label-3242
SELECT - 59 - - + COALESCE ( + + COUNT ( * ), - - ( + 50 ) ) * - - 22 col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3243
SELECT CAST( + + 94 AS SIGNED ) * 42 + 15 * - 4 + 40 - COUNT( * ) AS col2
----
3927

skipif mysql # not compatible
query I rowsort label-3243
SELECT CAST ( + + 94 AS INTEGER ) * 42 + 15 * - 4 + 40 - COUNT ( * ) AS col2
----
3927

query I rowsort
SELECT DISTINCT 5 * - 85 + ( - - 39 ) AS col0
----
-386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT CASE + ( + 44 ) WHEN 20 * - 22 THEN + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT CASE + ( + 44 ) WHEN 20 * - 22 THEN + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT MAX( - 79 ) * NULLIF ( 61, 17 / 77 ) + + 13 * - 42
----
-5365

skipif mysql # not compatible
query I rowsort label-3246
SELECT MAX ( - 79 ) * NULLIF ( 61, 17 / 77 ) + + 13 * - 42
----
-5365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3247
SELECT DISTINCT NULLIF ( - + 82, - + 47 * 27 ) DIV 59 * + - COUNT( * ) * MAX( DISTINCT - CAST( 75 AS SIGNED ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT NULLIF ( - + 82, - + 47 * 27 ) / 59 * + - COUNT ( * ) * MAX ( DISTINCT - CAST ( 75 AS INTEGER ) ) AS col1
----
-75

query I rowsort
SELECT ALL + NULLIF ( - 93, - COALESCE ( + - 89, + - NULLIF ( - + 43, 52 * + + COALESCE ( + 39, 10 + - 52 * - ( + + 87 ) ) * - ( + 30 ) * 39 + ( - 33 ) + + - 42 + + - 9 + + - 28 + - + 31 * - 30 + - + NULLIF ( 15, 59 ) - - + 85 * - 73 ) ) ) * + 88 AS col0
----
-8184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3249
SELECT ALL CASE + ( - COUNT( * ) ) WHEN MAX( + 47 ) THEN SUM( - + 81 ) + - 74 DIV MIN( + - 59 ) WHEN ( - 54 ) THEN NULL ELSE - 12 + 69 END DIV - 46 col2
----
-1

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL CASE + ( - COUNT ( * ) ) WHEN MAX ( + 47 ) THEN SUM ( - + 81 ) + - 74 / MIN ( + - 59 ) WHEN ( - 54 ) THEN NULL ELSE - 12 + 69 END / - 46 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT + - CASE 61 WHEN 4 THEN - ( - - COUNT( * ) ) + - 5 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT + - CASE 61 WHEN 4 THEN - ( - - COUNT ( * ) ) + - 5 END AS col1
----
NULL

query II rowsort
SELECT ALL + - ( - 90 ), 53 AS col2
----
90
53

query I rowsort
SELECT + - 67 * + 63
----
-4221

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT ALL 2 * CASE - 79 WHEN 21 * + + ( - - 97 ) / + 44 * 28 + + 91 * - 37 - + 11 THEN SUM( + 12 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL 2 * CASE - 79 WHEN 21 * + + ( - - 97 ) / + 44 * 28 + + 91 * - 37 - + 11 THEN SUM ( + 12 ) END AS col1
----
NULL

query I rowsort
SELECT + 41 * - 33 * 97 * - 2 col1
----
262482

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT DISTINCT - CAST( + - 40 AS SIGNED ) * - 84 + - 69 - + + 15 AS col0
----
-3444

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT - CAST ( + - 40 AS INTEGER ) * - 84 + - 69 - + + 15 AS col0
----
-3444

query I rowsort
SELECT ALL + 24 * - - 54 + 92
----
1388

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT - NULLIF ( + + ( + 0 ), + + COUNT( 35 ) * - 76 )
----
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT - NULLIF ( + + ( + 0 ), + + COUNT ( 35 ) * - 76 )
----
0

query II rowsort
SELECT DISTINCT + - 2 + - 87 AS col1, 67
----
-89
67

query I rowsort
SELECT + + 40 - + - 49
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3262
SELECT + CAST( - MIN( - - 98 ) AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-3262
SELECT + CAST ( - MIN ( - - 98 ) AS INTEGER )
----
-98

query I rowsort
SELECT - 57 - + 35 * + 55 AS col2
----
-1982

query I rowsort
SELECT ALL ( 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-3265
SELECT - 48 AS col2, 3 * COUNT( * ) * + 27 + - + 19 AS col2
----
-48
62

skipif mysql # not compatible
query II rowsort label-3265
SELECT - 48 AS col2, 3 * COUNT ( * ) * + 27 + - + 19 AS col2
----
-48
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL - 66 + + COUNT( * ) + 46 * 60 - + 94
----
2601

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL - 66 + + COUNT ( * ) + 46 * 60 - + 94
----
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL + 3 + + + 30 + - 45 - + 62 + - 38 * COALESCE ( 38, - 77 + ( + 29 ) + + 28 - - + 93 * + 88 * COUNT( * ) - + + 7 ) * + COUNT( * )
----
-1518

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL + 3 + + + 30 + - 45 - + 62 + - 38 * COALESCE ( 38, - 77 + ( + 29 ) + + 28 - - + 93 * + 88 * COUNT ( * ) - + + 7 ) * + COUNT ( * )
----
-1518

query II rowsort
SELECT 41 col0, + ( - 51 ) + - - 88 AS col1
----
41
37

query I rowsort
SELECT - 35 + + - 54 + + 7
----
-82

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

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

query I rowsort
SELECT + 17 - - 91
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3272
SELECT - CASE + - 36 WHEN ( + - 58 ) + + - CAST( + 59 AS SIGNED ) * 22 THEN 20 * + - 2 - - + 12 * + 3 * - + 0 * + 19 END AS col2, ( + 92 )
----
NULL
92

skipif mysql # not compatible
query II rowsort label-3272
SELECT - CASE + - 36 WHEN ( + - 58 ) + + - CAST ( + 59 AS INTEGER ) * 22 THEN 20 * + - 2 - - + 12 * + 3 * - + 0 * + 19 END AS col2, ( + 92 )
----
NULL
92

query I rowsort
SELECT ALL 99 - + 44 AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3274
SELECT - 5 DIV - - NULLIF ( + 34, CASE - ( - 33 ) WHEN - CAST( - - 98 AS DECIMAL ) THEN NULL WHEN + 60 THEN + 62 + - COUNT( - 34 ) * - 8 + - ( - 36 ) - - AVG ( DISTINCT + 30 ) + + 24 END * - 20 )
----
0

skipif mysql # not compatible
query I rowsort label-3274
SELECT - 5 / - - NULLIF ( + 34, CASE - ( - 33 ) WHEN - CAST ( - - 98 AS REAL ) THEN NULL WHEN + 60 THEN + 62 + - COUNT ( - 34 ) * - 8 + - ( - 36 ) - - AVG ( DISTINCT + 30 ) + + 24 END * - 20 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT ALL - 31 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL - 31 / + 60
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3277
SELECT ALL 50 DIV + 50 - + 48 AS col2, 0 * + - ( - + COUNT( * ) ) * - 61 * SUM( DISTINCT + + 36 ) + + 71
----
-47
71

skipif mysql # not compatible
query II rowsort label-3277
SELECT ALL 50 / + 50 - + 48 AS col2, 0 * + - ( - + COUNT ( * ) ) * - 61 * SUM ( DISTINCT + + 36 ) + + 71
----
-47
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT + NULLIF ( + COUNT( - 93 ), - SUM( - 70 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3278
SELECT + NULLIF ( + COUNT ( - 93 ), - SUM ( - 70 ) ) AS col1
----
1

query I rowsort
SELECT + NULLIF ( + 71, 57 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT + ( - - 65 ) * - + 47 + - + 57 + + 68 + - 61 - COUNT( * ) AS col0
----
-3106

skipif mysql # not compatible
query I rowsort label-3280
SELECT + ( - - 65 ) * - + 47 + - + 57 + + 68 + - 61 - COUNT ( * ) AS col0
----
-3106

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT COALESCE ( - 17, SUM( 0 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-3281
SELECT COALESCE ( - 17, SUM ( 0 ) )
----
-17

query I rowsort
SELECT + 3 * 26 AS col1
----
78

query II rowsort
SELECT ALL + - 42, 80 AS col2
----
-42
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3284
SELECT ALL - - CAST( - 51 AS SIGNED ) * - - COUNT( - + 17 ) * + - 46
----
2346

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL - - CAST ( - 51 AS INTEGER ) * - - COUNT ( - + 17 ) * + - 46
----
2346

query I rowsort
SELECT DISTINCT + + 55 * - 31 + - 95 AS col0
----
-1800

query II rowsort
SELECT ALL + 8 AS col0, 47 AS col1
----
8
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3287
SELECT ALL - 60 * ( COUNT( * ) ) AS col2, ( - - 24 )
----
-60
24

skipif mysql # not compatible
query II rowsort label-3287
SELECT ALL - 60 * ( COUNT ( * ) ) AS col2, ( - - 24 )
----
-60
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT + 4 * 83 + - COUNT( * ) AS col1
----
331

skipif mysql # not compatible
query I rowsort label-3288
SELECT + 4 * 83 + - COUNT ( * ) AS col1
----
331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3289
SELECT ALL + CASE 29 WHEN 99 - + 22 THEN + - 51 ELSE NULL END * + 93 * + ( COUNT( ALL + 4 ) ) + - + CASE - 55 WHEN + CAST( - SUM( 12 ) AS SIGNED ) THEN NULL WHEN + COUNT( * ) THEN NULL ELSE - - COUNT( * ) * + 62 + ( - 88 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL + CASE 29 WHEN 99 - + 22 THEN + - 51 ELSE NULL END * + 93 * + ( COUNT ( ALL + 4 ) ) + - + CASE - 55 WHEN + CAST ( - SUM ( 12 ) AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE - - COUNT ( * ) * + 62 + ( - 88 ) END AS col1
----
NULL

query II rowsort
SELECT 5 AS col1, + 97
----
5
97

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

query I rowsort
SELECT ALL - 55 * - + 54 + - - 14 AS col1
----
2984

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

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

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

skipif mysql # not compatible
query I rowsort label-3294
SELECT + CAST ( 71 AS INTEGER ) - - 68 + - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3296
SELECT COUNT( * ) * - 60 * - - 24 + + + MAX( - + 92 ) DIV - - 24
----
-1443

skipif mysql # not compatible
query I rowsort label-3296
SELECT COUNT ( * ) * - 60 * - - 24 + + + MAX ( - + 92 ) / - - 24
----
-1443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3297
SELECT ALL - 23 * AVG ( ALL 11 ) * - COUNT( ALL 62 ) / + + CAST( NULL AS SIGNED ) col1, + 14 * 99 AS col0
----
NULL
1386

skipif mysql # not compatible
query II rowsort label-3297
SELECT ALL - 23 * AVG ( ALL 11 ) * - COUNT ( ALL 62 ) / + + CAST ( NULL AS INTEGER ) col1, + 14 * 99 AS col0
----
NULL
1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT DISTINCT - 84 / + CAST( NULL AS SIGNED ) + - 76 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT - 84 / + CAST ( NULL AS INTEGER ) + - 76 + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - 73 - 43 + + 72 + 64 * 58
----
3668

query I rowsort
SELECT 53 * - - 34 col0
----
1802

query I rowsort
SELECT 89 * + 5 * - - 18 AS col0
----
8010

query I rowsort
SELECT 60 + 36 col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT 8 + 9 col1, COUNT( + - 99 )
----
17
1

skipif mysql # not compatible
query II rowsort label-3303
SELECT 8 + 9 col1, COUNT ( + - 99 )
----
17
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3304
SELECT 79 * - COUNT( * ), 56 * + - CASE 38 WHEN - NULLIF ( + + 54, - 86 ) + + 91 + - 90 THEN COUNT( * ) * - 76 END AS col2
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-3304
SELECT 79 * - COUNT ( * ), 56 * + - CASE 38 WHEN - NULLIF ( + + 54, - 86 ) + + 91 + - 90 THEN COUNT ( * ) * - 76 END AS col2
----
-79
NULL

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

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

query I rowsort
SELECT ALL - 27 * - 7 * 22
----
4158

onlyif mysql # aggregate syntax: 
query II rowsort label-3307
SELECT DISTINCT - 18 * + 16, COUNT( * ) * - 49 * + + COALESCE ( 53, + 6 ) * + + 58 AS col0
----
-288
-150626

skipif mysql # not compatible
query II rowsort label-3307
SELECT DISTINCT - 18 * + 16, COUNT ( * ) * - 49 * + + COALESCE ( 53, + 6 ) * + + 58 AS col0
----
-288
-150626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3308
SELECT MIN( DISTINCT CAST( ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) - - ( - + 32 ) * 80 - - + 33 * + 37 * - - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT MIN ( DISTINCT CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) - - ( - + 32 ) * 80 - - + 33 * + 37 * - - 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3309
SELECT 23 / - CASE + 38 WHEN 56 * + 27 + + - ( + COUNT( * ) ) + + CAST( NULL AS SIGNED ) - 58 * 24 * - 89 THEN - COUNT( * ) * COUNT( * ) WHEN + 47 THEN + 78 - - + 76 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT 23 / - CASE + 38 WHEN 56 * + 27 + + - ( + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) - 58 * 24 * - 89 THEN - COUNT ( * ) * COUNT ( * ) WHEN + 47 THEN + 78 - - + 76 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT 94 * + COUNT( - 45 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3310
SELECT 94 * + COUNT ( - 45 ) AS col1
----
94

query II rowsort
SELECT 27 * 64 + + 78 + + 63, - 21 AS col2
----
1869
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3312
SELECT DISTINCT - COUNT( DISTINCT + - 72 ) col2, 20 + - 51 + - + MIN( DISTINCT + 66 ) + - 74 - + NULLIF ( - + 58, - - 44 ) - + ( - ( - COALESCE ( - 69, - - 47 ) ) ) - 97
----
-1
-141

skipif mysql # not compatible
query II rowsort label-3312
SELECT DISTINCT - COUNT ( DISTINCT + - 72 ) col2, 20 + - 51 + - + MIN ( DISTINCT + 66 ) + - 74 - + NULLIF ( - + 58, - - 44 ) - + ( - ( - COALESCE ( - 69, - - 47 ) ) ) - 97
----
-1
-141

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3313
SELECT 13 / + AVG ( ALL - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT 13 / + AVG ( ALL - CAST ( NULL AS REAL ) ) AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 23 * 0 col1
----
0

query I rowsort
SELECT DISTINCT + - 31 * 12 - 8
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT DISTINCT - 71 + + MIN( ALL - 90 ) + - 94 col1
----
-255

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT - 71 + + MIN ( ALL - 90 ) + - 94 col1
----
-255

query I rowsort
SELECT + + COALESCE ( - + 72, + 82 * - 5 + 53 ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3319
SELECT DISTINCT + 96 + + 96, + COUNT( * ) + - 13 AS col2
----
192
-12

skipif mysql # not compatible
query II rowsort label-3319
SELECT DISTINCT + 96 + + 96, + COUNT ( * ) + - 13 AS col2
----
192
-12

query II rowsort
SELECT ALL - 38 + + 31 AS col2, - 4 col1
----
-7
-4

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3322
SELECT ALL - + CASE - - CAST( + 82 AS SIGNED ) WHEN - 59 * - - 14 THEN - SUM( - + 30 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL - + CASE - - CAST ( + 82 AS INTEGER ) WHEN - 59 * - - 14 THEN - SUM ( - + 30 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT + MAX( ALL 5 ) col1
----
5

skipif mysql # not compatible
query I rowsort label-3323
SELECT + MAX ( ALL 5 ) col1
----
5

query I rowsort
SELECT 63 - - 41 AS col1
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-3325
SELECT ALL 71 DIV 34
----
2

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL 71 / 34
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3326
SELECT + 30 * - - 21 + 50, CAST( + 58 AS SIGNED ) AS col2
----
680
58

skipif mysql # not compatible
query II rowsort label-3326
SELECT + 30 * - - 21 + 50, CAST ( + 58 AS INTEGER ) AS col2
----
680
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3327
SELECT 14 * CASE 18 WHEN - + CAST( 43 AS DECIMAL ) THEN + 12 * + 56 + 56 - + COUNT( * ) WHEN + 3 * + 23 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT 14 * CASE 18 WHEN - + CAST ( 43 AS REAL ) THEN + 12 * + 56 + 56 - + COUNT ( * ) WHEN + 3 * + 23 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT 88 - - 11 AS col1
----
99

query I rowsort
SELECT DISTINCT 70 * 49 AS col0
----
3430

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

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT 29 * - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 88 * 16 AS col2
----
1408

query I rowsort
SELECT ( - 10 ) * + 18 * + 84 * + - ( + - 97 ) * + - 43 AS col2
----
63065520

query I rowsort
SELECT 7 + 56 * 99 AS col0
----
5551

query I rowsort
SELECT 97 + 76
----
173

query I rowsort
SELECT 33 - 43
----
-10

query I rowsort
SELECT 4 * + 76 AS col1
----
304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3337
SELECT 39 * COUNT( * ) DIV - COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-3337
SELECT 39 * COUNT ( * ) / - COUNT ( * ) AS col1
----
-39

query I rowsort
SELECT DISTINCT 80 + - 67 AS col1
----
13

query II rowsort
SELECT DISTINCT 92 AS col1, 63
----
92
63

query I rowsort
SELECT ALL - 69 + - 26 AS col1
----
-95

query I rowsort
SELECT 29 * + 45 AS col2
----
1305

query I rowsort
SELECT ALL - + 35 * + - 9 + - 71 * + 31 + - + ( - 42 ) col2
----
-1844

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT + NULLIF ( - - COUNT( * ), NULLIF ( - 87, 94 ) * - 34 ) * - + 99
----
-99

skipif mysql # not compatible
query I rowsort label-3344
SELECT + NULLIF ( - - COUNT ( * ), NULLIF ( - 87, 94 ) * - 34 ) * - + 99
----
-99

query I rowsort
SELECT ALL + 76 * + 59 + 12 col2
----
4496

query I rowsort
SELECT ALL 29 * - 9 + - + 41 AS col1
----
-302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3347
SELECT ALL + - 53 * - + CAST( 92 AS SIGNED ) - + + 99 + 57 * + COUNT( * ) DIV + 98 * - 62 + - + 36 AS col1
----
4741

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL + - 53 * - + CAST ( 92 AS INTEGER ) - + + 99 + 57 * + COUNT ( * ) / + 98 * - 62 + - + 36 AS col1
----
4741

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

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

query I rowsort
SELECT ALL + 75 * + + 4 - 93 + - 91 + + 92 AS col1
----
208

query I rowsort
SELECT DISTINCT + + NULLIF ( + 34, 62 )
----
34

query I rowsort
SELECT ALL + + 62 * 4
----
248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3352
SELECT - - MIN( DISTINCT - - 61 ) + 67 * + + 0 DIV - - 98 + + + ( - 30 ) * + ( - 50 ) * + - 28 * + - 66 * COUNT( * )
----
2772061

skipif mysql # not compatible
query I rowsort label-3352
SELECT - - MIN ( DISTINCT - - 61 ) + 67 * + + 0 / - - 98 + + + ( - 30 ) * + ( - 50 ) * + - 28 * + - 66 * COUNT ( * )
----
2772061

query I rowsort
SELECT ALL - 82 * - 84 AS col1
----
6888

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT + + 71 + + - COUNT( * ) + + 37 * - ( + COUNT( * ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3354
SELECT + + 71 + + - COUNT ( * ) + + 37 * - ( + COUNT ( * ) ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT ALL - + 49 - + MAX( 46 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL - + 49 - + MAX ( 46 ) AS col0
----
-95

query I rowsort
SELECT - + 60 * - 39 + - 72 AS col2
----
2268

query I rowsort
SELECT + 18 + + 69 + + 94 col0
----
181

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL NULLIF ( - 62, - + COUNT( * ) + + 95 / + 34 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL NULLIF ( - 62, - + COUNT ( * ) + + 95 / + 34 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT + 58 + + + ( + + COUNT( * ) ) + - 45 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3360
SELECT + 58 + + + ( + + COUNT ( * ) ) + - 45 AS col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT + 76 DIV ( + - 79 )
----
0

skipif mysql # not compatible
query I rowsort label-3361
SELECT + 76 / ( + - 79 )
----
0

query I rowsort
SELECT ALL 40 + + 82 + 4 AS col0
----
126

query I rowsort
SELECT - NULLIF ( + 30, + 40 ) AS col2
----
-30

query I rowsort
SELECT - 64 + + + 45 AS col2
----
-19

query II rowsort
SELECT - NULLIF ( + 4, - 96 + 10 ) AS col1, 27
----
-4
27

query I rowsort
SELECT DISTINCT 75 + + ( 74 ) AS col0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT ALL COALESCE ( - - 69, - COUNT( * ) ) * + ( + 17 ) + + 16
----
1189

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL COALESCE ( - - 69, - COUNT ( * ) ) * + ( + 17 ) + + 16
----
1189

query II rowsort
SELECT 51 AS col1, 54 * + + 2 + + 45 + + + 68 * - 62 * + 74 col0
----
51
-311831

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3369
SELECT + COUNT( * ) DIV + 24, + COALESCE ( + - 1, - 53, 26 + - 40 ) col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-3369
SELECT + COUNT ( * ) / + 24, + COALESCE ( + - 1, - 53, 26 + - 40 ) col1
----
0
-1

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

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

query II rowsort
SELECT ALL 10 + - NULLIF ( - 68, - 48 ) AS col1, - 37 AS col0
----
78
-37

query I rowsort
SELECT DISTINCT ( + 61 ) * + + 28 + - - 43 * + + 11
----
2181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3373
SELECT DISTINCT + COUNT( 49 ) + - CAST( + 35 AS SIGNED ) + - 99 + + MAX( - + 78 ) AS col2
----
-211

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT + COUNT ( 49 ) + - CAST ( + 35 AS INTEGER ) + - 99 + + MAX ( - + 78 ) AS col2
----
-211

query II rowsort
SELECT DISTINCT - 28 + - 38 AS col2, CASE - 33 WHEN - 89 THEN 13 ELSE NULL END AS col2
----
-66
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3375
SELECT ALL 87 AS col0, - CASE WHEN ( NULL ) IS NULL THEN NULL ELSE 19 END / - - MAX( + - 25 ) AS col0
----
87
NULL

skipif mysql # not compatible
query II rowsort label-3375
SELECT ALL 87 AS col0, - CASE WHEN ( NULL ) IS NULL THEN NULL ELSE 19 END / - - MAX ( + - 25 ) AS col0
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT + 10 + - + MAX( + 97 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-3376
SELECT + 10 + - + MAX ( + 97 ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3377
SELECT ALL ( ( - CAST( ( 5 ) AS SIGNED ) ) ) + - CAST( - - CASE + 50 WHEN + - 39 + - 17 THEN NULL WHEN + COALESCE ( - AVG ( DISTINCT 35 ), + 42, + + 54, + COUNT( * ) + + ( - - 69 ) ) * + + 25 + - 97 THEN + CASE 5 WHEN - CASE 84 WHEN - 99 / - 57 THEN + + COUNT( * ) / - 0 END THEN NULL WHEN + 90 * - 3 * - 55 THEN + 66 * 59 + + 17 ELSE NULL END ELSE + 71 + SUM( DISTINCT - 18 ) END AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL ( ( - CAST ( ( 5 ) AS INTEGER ) ) ) + - CAST ( - - CASE + 50 WHEN + - 39 + - 17 THEN NULL WHEN + COALESCE ( - AVG ( DISTINCT 35 ), + 42, + + 54, + COUNT ( * ) + + ( - - 69 ) ) * + + 25 + - 97 THEN + CASE 5 WHEN - CASE 84 WHEN - 99 / - 57 THEN + + COUNT ( * ) / - 0 END THEN NULL WHEN + 90 * - 3 * - 55 THEN + 66 * 59 + + 17 ELSE NULL END ELSE + 71 + SUM ( DISTINCT - 18 ) END AS INTEGER )
----
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + - 51 + CASE + 28 WHEN - + 52 * + COUNT( * ) - + 20 * - 17 + - 14 / - + 91 * - - COUNT( * ) THEN + 77 END - - 68 * - - COUNT( - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT + - 51 + CASE + 28 WHEN - + 52 * + COUNT ( * ) - + 20 * - 17 + - 14 / - + 91 * - - COUNT ( * ) THEN + 77 END - - 68 * - - COUNT ( - 38 )
----
NULL

query II rowsort
SELECT - 27 AS col0, 25 AS col0
----
-27
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3381
SELECT + - ( + - 16 ) * - ( 94 ) * - 47 + - SUM( DISTINCT + 88 ) - 69 DIV + + COUNT( * ) + 14
----
70545

skipif mysql # not compatible
query I rowsort label-3381
SELECT + - ( + - 16 ) * - ( 94 ) * - 47 + - SUM ( DISTINCT + 88 ) - 69 / + + COUNT ( * ) + 14
----
70545

query II rowsort
SELECT 92, + 57 AS col0
----
92
57

query I rowsort
SELECT + ( 63 ) * + 3
----
189

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3384
SELECT ALL - - CAST( NULL AS DECIMAL ) * MIN( + 61 ) - - + COUNT( * ) - 40 + + - 45 * + + 17 + + COUNT( * ) * - - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL - - CAST ( NULL AS REAL ) * MIN ( + 61 ) - - + COUNT ( * ) - 40 + + - 45 * + + 17 + + COUNT ( * ) * - - 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT DISTINCT + MIN( DISTINCT 63 ) * + 22 * COUNT( * ) col2
----
1386

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT + MIN ( DISTINCT 63 ) * + 22 * COUNT ( * ) col2
----
1386

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT - - COUNT( * ) * + 47 * 7
----
329

skipif mysql # not compatible
query I rowsort label-3387
SELECT - - COUNT ( * ) * + 47 * 7
----
329

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT + + 49 * - - ( MAX( 51 ) ) + - - 67 + + 32 * COUNT( * ) * - - 19
----
3174

skipif mysql # not compatible
query I rowsort label-3390
SELECT + + 49 * - - ( MAX ( 51 ) ) + - - 67 + + 32 * COUNT ( * ) * - - 19
----
3174

onlyif mysql # DIV for integer division: 
query I rowsort label-3391
SELECT ALL + 76 DIV ( - 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL + 76 / ( - 69 )
----
-1

query I rowsort
SELECT ALL + NULLIF ( 60, + 27 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3393
SELECT ALL + CASE ( - + 75 ) WHEN COUNT( * ) THEN - + 71 WHEN - - 71 THEN + - 90 WHEN CAST( NULL AS SIGNED ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL + CASE ( - + 75 ) WHEN COUNT ( * ) THEN - + 71 WHEN - - 71 THEN + - 90 WHEN CAST ( NULL AS INTEGER ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3394
SELECT DISTINCT - 58 * + 42 AS col2, + COUNT( * ) AS col2
----
-2436
1

skipif mysql # not compatible
query II rowsort label-3394
SELECT DISTINCT - 58 * + 42 AS col2, + COUNT ( * ) AS col2
----
-2436
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT 90 * - COALESCE ( + 80, 89 - 40, - - 56 + - NULLIF ( CASE - - COUNT( * ) WHEN - 8 + 49 THEN + + 80 END, - - 45 ) ) + + 48 + + - 78 * + MAX( DISTINCT + + 73 ) AS col0
----
-12846

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT 90 * - COALESCE ( + 80, 89 - 40, - - 56 + - NULLIF ( CASE - - COUNT ( * ) WHEN - 8 + 49 THEN + + 80 END, - - 45 ) ) + + 48 + + - 78 * + MAX ( DISTINCT + + 73 ) AS col0
----
-12846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3396
SELECT ALL - COALESCE ( + CAST( + 26 AS SIGNED ), + + 84 ) * + 34 AS col2, + COUNT( * ) DIV 65 + - 5 + + 81 * - + 50 * - - 63 + - 23
----
-884
-255178

skipif mysql # not compatible
query II rowsort label-3396
SELECT ALL - COALESCE ( + CAST ( + 26 AS INTEGER ), + + 84 ) * + 34 AS col2, + COUNT ( * ) / 65 + - 5 + + 81 * - + 50 * - - 63 + - 23
----
-884
-255178

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL - COUNT( ALL + 10 ) * - 69 + + 79 - - - 69
----
79

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - COUNT ( ALL + 10 ) * - 69 + + 79 - - - 69
----
79

query I rowsort
SELECT ALL - 3 * - + 39 + + 35 + - - 31
----
183

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

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

query I rowsort
SELECT DISTINCT + ( + 28 ) * - - 32 * - 52 * 55 + 0
----
-2562560

query I rowsort
SELECT ALL + 68 + 6 * - 49 AS col2
----
-226

query I rowsort
SELECT ALL ( 83 ) AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT DISTINCT CAST( + 48 AS SIGNED ) + 31 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT CAST ( + 48 AS INTEGER ) + 31 AS col0
----
79

query I rowsort
SELECT DISTINCT + 51 + 21 * + COALESCE ( - 12, - - 24 ) - 24
----
-225

query I rowsort
SELECT DISTINCT 82 - + + 28 AS col2
----
54

query I rowsort
SELECT + 69 * + 92 + + 55
----
6403

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT ALL - 50 * + COALESCE ( + 8, - 88 * CASE 37 WHEN 15 / + - 86 + - + 45 * - 40 + - 41 THEN 86 WHEN - COUNT( * ) + - - 2 THEN NULL WHEN - 87 + - 32 THEN COUNT( 70 ) END + - COUNT( * ), ( - - 22 ) ) * - CASE 85 WHEN - - 31 THEN 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL - 50 * + COALESCE ( + 8, - 88 * CASE 37 WHEN 15 / + - 86 + - + 45 * - 40 + - 41 THEN 86 WHEN - COUNT ( * ) + - - 2 THEN NULL WHEN - 87 + - 32 THEN COUNT ( 70 ) END + - COUNT ( * ), ( - - 22 ) ) * - CASE 85 WHEN - - 31 THEN 85 END
----
NULL

query I rowsort
SELECT DISTINCT - + 45 - + 75 AS col2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT DISTINCT - 59 - + 33 * + COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3409
SELECT DISTINCT - 59 - + 33 * + COUNT ( * ) AS col1
----
-92

query I rowsort
SELECT DISTINCT 71 * 69 AS col0
----
4899

query I rowsort
SELECT NULLIF ( 20, + COALESCE ( 47, + + 96 / 61 ) + + 90 / 23 ) * - - 32
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT - ( - + NULLIF ( COUNT( * ), 89 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3412
SELECT - ( - + NULLIF ( COUNT ( * ), 89 ) )
----
1

query I rowsort
SELECT - 86 * - 48 + 99 - 34 col0
----
4193

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT DISTINCT - + NULLIF ( - 12, + 20 - + NULLIF ( - NULLIF ( 96, + 84 ), + - COUNT( * ) ) / - 47 )
----
12

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT - + NULLIF ( - 12, + 20 - + NULLIF ( - NULLIF ( 96, + 84 ), + - COUNT ( * ) ) / - 47 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ( + COUNT( * ) ) + 27 + - NULLIF ( 8, + + 97 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3415
SELECT ( + COUNT ( * ) ) + 27 + - NULLIF ( 8, + + 97 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT ALL + ( + 48 ) * - SUM( ALL + 40 ) AS col1
----
-1920

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL + ( + 48 ) * - SUM ( ALL + 40 ) AS col1
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT DISTINCT COUNT( * ) + + - 62 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT COUNT ( * ) + + - 62 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT 88 + - 89 + + 67 + - 29 * ( + MIN( - 42 ) ) col1
----
1284

skipif mysql # not compatible
query I rowsort label-3418
SELECT 88 + - 89 + + 67 + - 29 * ( + MIN ( - 42 ) ) col1
----
1284

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT 9 * + NULLIF ( 4, - 78 + - 92 ) + + 87 - 10 + - 55 * + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-3419
SELECT 9 * + NULLIF ( 4, - 78 + - 92 ) + + 87 - 10 + - 55 * + COUNT ( * )
----
58

query I rowsort
SELECT ALL 59 * - - 58
----
3422

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL + 9 + - MAX( + 95 )
----
-86

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL + 9 + - MAX ( + 95 )
----
-86

query II rowsort
SELECT 25 AS col1, - 79 AS col2
----
25
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT DISTINCT + COUNT( * ) + COALESCE ( + 3, + 92 * - - 84 * 87 * 2 - 80 + - 68 ) * + 81
----
244

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT + COUNT ( * ) + COALESCE ( + 3, + 92 * - - 84 * 87 * 2 - 80 + - 68 ) * + 81
----
244

query I rowsort
SELECT 13 * 43
----
559

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3425
SELECT ALL - 37 DIV - - 63 * + SUM( + - 26 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL - 37 / - - 63 * + SUM ( + - 26 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3426
SELECT ALL + CAST( - NULLIF ( - 73, + COUNT( * ) * - 82 ) AS SIGNED ) + 80 AS col1
----
153

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + CAST ( - NULLIF ( - 73, + COUNT ( * ) * - 82 ) AS INTEGER ) + 80 AS col1
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-3427
SELECT ALL 73 AS col2, + NULLIF ( - 17, - COUNT( * ) ) col2
----
73
-17

skipif mysql # not compatible
query II rowsort label-3427
SELECT ALL 73 AS col2, + NULLIF ( - 17, - COUNT ( * ) ) col2
----
73
-17

query I rowsort
SELECT 32 + + 70 * 42 + + 2 - + 31 * - - 86
----
308

query I rowsort
SELECT ALL - 10 * - 89
----
890

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3430
SELECT ALL - ( + 71 ) DIV - + 84, + COUNT( * ) col1
----
0
1

skipif mysql # not compatible
query II rowsort label-3430
SELECT ALL - ( + 71 ) / - + 84, + COUNT ( * ) col1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL + COUNT( DISTINCT - - 87 ) - + 39 * 99 AS col1
----
-3860

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL + COUNT ( DISTINCT - - 87 ) - + 39 * 99 AS col1
----
-3860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3432
SELECT CAST( NULL AS SIGNED ) + + CASE - 63 WHEN - 91 + - 59 THEN NULLIF ( - 58, + MIN( - + 52 ) + - - 3 ) / + 28 ELSE + ( - 46 ) - + 91 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT CAST ( NULL AS INTEGER ) + + CASE - 63 WHEN - 91 + - 59 THEN NULLIF ( - 58, + MIN ( - + 52 ) + - - 3 ) / + 28 ELSE + ( - 46 ) - + 91 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT 22 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-3433
SELECT 22 / 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT 58 DIV + 17
----
3

skipif mysql # not compatible
query I rowsort label-3434
SELECT 58 / + 17
----
3

query I rowsort
SELECT 29 * + 95 AS col0
----
2755

query I rowsort
SELECT - COALESCE ( + 90, 34 ) AS col1
----
-90

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT ALL ( + CASE WHEN + 98 IS NOT NULL THEN + 41 + + ( + 22 ) + + 14 + + 47 DIV - 99 + + CASE - 64 WHEN - 63 THEN 32 ELSE 60 + 6 END DIV - 98 ELSE NULL END ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL ( + CASE WHEN + 98 IS NOT NULL THEN + 41 + + ( + 22 ) + + 14 + + 47 / - 99 + + CASE - 64 WHEN - 63 THEN 32 ELSE 60 + 6 END / - 98 ELSE NULL END ) AS col2
----
77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT + 76 + + 80 + - 1 DIV - 97 + 29 + 94
----
279

skipif mysql # not compatible
query I rowsort label-3440
SELECT + 76 + + 80 + - 1 / - 97 + 29 + 94
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3441
SELECT ALL - CAST( 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL - CAST ( 88 AS INTEGER )
----
-88

query I rowsort
SELECT 51 * + 49
----
2499

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3443
SELECT DISTINCT CASE + 92 WHEN - + ( + 83 ) THEN CAST( NULL AS DECIMAL ) WHEN + 67 THEN + - ( - - ( + 59 ) ) * - - ( 63 ) * + 3 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT CASE + 92 WHEN - + ( + 83 ) THEN CAST ( NULL AS REAL ) WHEN + 67 THEN + - ( - - ( + 59 ) ) * - - ( 63 ) * + 3 END AS col1
----
NULL

query I rowsort
SELECT + 26 + - 66 + - 83 * - 82 AS col1
----
6766

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL COALESCE ( - 23, - COUNT( * ) * - + 14 - - - 11 ) * 9 * + 43 - - 73 AS col1
----
-8828

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL COALESCE ( - 23, - COUNT ( * ) * - + 14 - - - 11 ) * 9 * + 43 - - 73 AS col1
----
-8828

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT COUNT( * ) * + - 66 + 79 * + 48 AS col2
----
3726

skipif mysql # not compatible
query I rowsort label-3446
SELECT COUNT ( * ) * + - 66 + 79 * + 48 AS col2
----
3726

onlyif mysql # DIV for integer division: 
query II rowsort label-3447
SELECT ALL + 78 * + 92 * - + COALESCE ( + - ( - 29 ), 35 DIV + + ( + - 47 ) ), - 58 * - 84 * - 64 AS col0
----
-208104
-311808

skipif mysql # not compatible
query II rowsort label-3447
SELECT ALL + 78 * + 92 * - + COALESCE ( + - ( - 29 ), 35 / + + ( + - 47 ) ), - 58 * - 84 * - 64 AS col0
----
-208104
-311808

onlyif mysql # DIV for integer division: 
query I rowsort label-3448
SELECT DISTINCT - 67 DIV 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT - 67 / 95 AS col2
----
0

query I rowsort
SELECT ALL - 3 + 48 * - 99 + 28
----
-4727

query I rowsort
SELECT ALL - + 75 * + 16
----
-1200

query I rowsort
SELECT DISTINCT - 1 + - 89 AS col2
----
-90

query I rowsort
SELECT DISTINCT 24 + + - 70 * ( - 88 ) + 82 + + + 32 + - 5 * 99 AS col2
----
5803

query I rowsort
SELECT 33 * + 89 AS col2
----
2937

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT COUNT( * ) - + + COALESCE ( - 81, + 8 ) col1
----
82

skipif mysql # not compatible
query I rowsort label-3454
SELECT COUNT ( * ) - + + COALESCE ( - 81, + 8 ) col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT ALL 87 + - - 39 + + 15 * ( + 94 ) + + MAX( ALL - 79 ) AS col0
----
1457

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL 87 + - - 39 + + 15 * ( + 94 ) + + MAX ( ALL - 79 ) AS col0
----
1457

query I rowsort
SELECT 23 * - ( 40 ) AS col2
----
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT ALL 5 * - COUNT( DISTINCT - NULLIF ( - 55, 86 ) ) * + MIN( - 59 )
----
295

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL 5 * - COUNT ( DISTINCT - NULLIF ( - 55, 86 ) ) * + MIN ( - 59 )
----
295

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3459
SELECT ALL 52 - COALESCE ( + 56, 41 * COUNT( * ) DIV + - 53 ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL 52 - COALESCE ( + 56, 41 * COUNT ( * ) / + - 53 ) col0
----
-4

query II rowsort
SELECT 13 + + 65 AS col1, 75 col2
----
78
75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3462
SELECT - 31 * - - 30 * - 2 + CAST( - COUNT( ( 10 ) ) AS SIGNED ) * 94 + - + 25
----
1741

skipif mysql # not compatible
query I rowsort label-3462
SELECT - 31 * - - 30 * - 2 + CAST ( - COUNT ( ( 10 ) ) AS INTEGER ) * 94 + - + 25
----
1741

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

skipif mysql # not compatible
query I rowsort label-3463
SELECT COUNT ( * ) * CAST ( + 37 AS INTEGER )
----
37

query II rowsort
SELECT 74 * - 56 * - 65 * - 37 col1, - 43 col2
----
-9966320
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT + + NULLIF ( COUNT( * ), + 76 * - - 28 + + + 82 ) + MAX( ALL - 46 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3465
SELECT + + NULLIF ( COUNT ( * ), + 76 * - - 28 + + + 82 ) + MAX ( ALL - 46 ) AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT - - 70 + - 9 + - 61 + 40 DIV - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3466
SELECT - - 70 + - 9 + - 61 + 40 / - 72 AS col0
----
0

query I rowsort
SELECT DISTINCT + - 44 * - 26 AS col0
----
1144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3468
SELECT - 87 / - 66 + ( + 78 ) / + 19 * - + CAST( 96 AS SIGNED ) / - + 22 - + - 25 * + + 81 + + CASE + 13 WHEN + - 85 * - ( - MAX( 48 ) ) + + 79 + - - 73 * 32 + ( + 51 ) THEN - 85 WHEN + + 16 THEN 62 * COALESCE ( 2, - + AVG ( + 61 ) ) ELSE NULL END * 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT - 87 / - 66 + ( + 78 ) / + 19 * - + CAST ( 96 AS INTEGER ) / - + 22 - + - 25 * + + 81 + + CASE + 13 WHEN + - 85 * - ( - MAX ( 48 ) ) + + 79 + - - 73 * 32 + ( + 51 ) THEN - 85 WHEN + + 16 THEN 62 * COALESCE ( 2, - + AVG ( + 61 ) ) ELSE NULL END * 65 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( - 16 ) * CASE + 38 WHEN + ( - 40 ) THEN NULL WHEN + 94 / - ( - + ( + 62 ) ) THEN NULL ELSE + 21 END AS col0
----
-336

query I rowsort
SELECT + + 93 * - 78
----
-7254

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT - COUNT( 92 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3471
SELECT - COUNT ( 92 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3472
SELECT DISTINCT - ( + 56 ) * 81 + - 31 AS col2, CAST( NULL AS SIGNED ) * + 36
----
-4567
NULL

skipif mysql # not compatible
query II rowsort label-3472
SELECT DISTINCT - ( + 56 ) * 81 + - 31 AS col2, CAST ( NULL AS INTEGER ) * + 36
----
-4567
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3473
SELECT ALL + CAST( NULL AS SIGNED ) + 87, 32 + + 56 + + - COALESCE ( + - 90, - - 60, COALESCE ( + - 65, + - CASE + COUNT( * ) WHEN + 68 THEN NULL WHEN 45 THEN + + 97 * - SUM( + + 90 ) - - 99 + - COUNT( * ) + 48 ELSE - + 62 END ) ) AS col1
----
NULL
178

skipif mysql # not compatible
query II rowsort label-3473
SELECT ALL + CAST ( NULL AS INTEGER ) + 87, 32 + + 56 + + - COALESCE ( + - 90, - - 60, COALESCE ( + - 65, + - CASE + COUNT ( * ) WHEN + 68 THEN NULL WHEN 45 THEN + + 97 * - SUM ( + + 90 ) - - 99 + - COUNT ( * ) + 48 ELSE - + 62 END ) ) AS col1
----
NULL
178

query I rowsort
SELECT - 63 - - 56 AS col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3475
SELECT ALL - + 23 * + + CASE + 61 WHEN + 97 + + - 56 / + CAST( NULL AS SIGNED ) THEN NULL WHEN + 58 + + - NULLIF ( + - 35, - 17 ) THEN - + 89 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL - + 23 * + + CASE + 61 WHEN + 97 + + - 56 / + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 58 + + - NULLIF ( + - 35, - 17 ) THEN - + 89 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3476
SELECT - 76 * + 90, - COUNT( * ) AS col2
----
-6840
-1

skipif mysql # not compatible
query II rowsort label-3476
SELECT - 76 * + 90, - COUNT ( * ) AS col2
----
-6840
-1

query I rowsort
SELECT ALL + 57 + + + 61 AS col1
----
118

query I rowsort
SELECT ALL + + 10 + + 78 AS col2
----
88

query I rowsort
SELECT - 4 * - - 88
----
-352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3480
SELECT ALL COALESCE ( + COUNT( * ), + ( - 61 ) DIV 67 ) * - - ( + ( 55 ) ) DIV + 56 * + + 97 + - - 87 + + CAST( - - MIN( ALL + - CAST( 73 AS SIGNED ) ) AS SIGNED ) + - 38
----
-24

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL COALESCE ( + COUNT ( * ), + ( - 61 ) / 67 ) * - - ( + ( 55 ) ) / + 56 * + + 97 + - - 87 + + CAST ( - - MIN ( ALL + - CAST ( 73 AS INTEGER ) ) AS INTEGER ) + - 38
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT - - 66 + 73 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT - - 66 + 73 + - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3483
SELECT - 72 DIV - 24 - + 25 + + 82 + 82 * + + COUNT( * ) + COUNT( * ) + - - 96 AS col0
----
239

skipif mysql # not compatible
query I rowsort label-3483
SELECT - 72 / - 24 - + 25 + + 82 + 82 * + + COUNT ( * ) + COUNT ( * ) + - - 96 AS col0
----
239

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3484
SELECT 18 * - 64 + - 63 DIV - - MAX( DISTINCT - 12 ) AS col2, - 12 AS col2
----
-1147
-12

skipif mysql # not compatible
query II rowsort label-3484
SELECT 18 * - 64 + - 63 / - - MAX ( DISTINCT - 12 ) AS col2, - 12 AS col2
----
-1147
-12

query I rowsort
SELECT + 30 * + 36 AS col0
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT - 41 * ( + + 9 ) * - + MAX( DISTINCT - - 1 )
----
369

skipif mysql # not compatible
query I rowsort label-3486
SELECT - 41 * ( + + 9 ) * - + MAX ( DISTINCT - - 1 )
----
369

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT ALL - CAST( NULL AS SIGNED ) * 6 + + + ( - 16 ) + 88 + + 48 * - - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL - CAST ( NULL AS INTEGER ) * 6 + + + ( - 16 ) + 88 + + 48 * - - 56 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT COALESCE ( 81, + CAST( + + 66 AS SIGNED ) ) col0
----
81

skipif mysql # not compatible
query I rowsort label-3489
SELECT COALESCE ( 81, + CAST ( + + 66 AS INTEGER ) ) col0
----
81

query I rowsort
SELECT - 94 + + + 23 AS col1
----
-71

query I rowsort
SELECT DISTINCT + 37 * - - 85 AS col2
----
3145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3492
SELECT - 27 * + + CAST( COUNT( * ) AS SIGNED ) + 66 * + MAX( 86 )
----
5649

skipif mysql # not compatible
query I rowsort label-3492
SELECT - 27 * + + CAST ( COUNT ( * ) AS INTEGER ) + 66 * + MAX ( 86 )
----
5649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3493
SELECT - 58 / + - CASE - - ( + 29 ) WHEN + + MIN( - 73 ) * + - 92 * - MAX( + ( + 3 ) ) + + SUM( ALL + + 53 ) + - COUNT( * ) THEN + COUNT( * ) / + - COUNT( * ) WHEN 84 * + 91 * - 69 THEN - + 70 ELSE NULL END * + COUNT( DISTINCT + + CASE + - 21 WHEN 81 THEN - CAST( NULL AS SIGNED ) - + 45 * - + 12 ELSE + - 64 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT - 58 / + - CASE - - ( + 29 ) WHEN + + MIN ( - 73 ) * + - 92 * - MAX ( + ( + 3 ) ) + + SUM ( ALL + + 53 ) + - COUNT ( * ) THEN + COUNT ( * ) / + - COUNT ( * ) WHEN 84 * + 91 * - 69 THEN - + 70 ELSE NULL END * + COUNT ( DISTINCT + + CASE + - 21 WHEN 81 THEN - CAST ( NULL AS INTEGER ) - + 45 * - + 12 ELSE + - 64 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT NULLIF ( + 69, MIN( ALL 37 ) + - 10 )
----
69

skipif mysql # not compatible
query I rowsort label-3494
SELECT NULLIF ( + 69, MIN ( ALL 37 ) + - 10 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT 83 * + ( + 19 ) + + + 59 + 98 + + - 76 * - 47 * + COUNT( * )
----
5306

skipif mysql # not compatible
query I rowsort label-3495
SELECT 83 * + ( + 19 ) + + + 59 + 98 + + - 76 * - 47 * + COUNT ( * )
----
5306

query I rowsort
SELECT NULLIF ( 43, - 5 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + NULLIF ( - 64, + 83 * + - COUNT( * ) ) + - COALESCE ( - + 31, + 95, + - 17 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3497
SELECT + NULLIF ( - 64, + 83 * + - COUNT ( * ) ) + - COALESCE ( - + 31, + 95, + - 17 ) AS col1
----
-33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3499
SELECT COUNT( ALL CAST( - 60 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3499
SELECT COUNT ( ALL CAST ( - 60 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT + 92 + + MIN( - 34 ) * + 51 * 89
----
-154234

skipif mysql # not compatible
query I rowsort label-3500
SELECT + 92 + + MIN ( - 34 ) * + 51 * 89
----
-154234

query I rowsort
SELECT + 4 * - - 1
----
4

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

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

query I rowsort
SELECT + - 83 * - 13 * - 3
----
-3237

query I rowsort
SELECT DISTINCT 37 * - + 89 * + - 56 + - + 71 AS col0
----
184337

query I rowsort
SELECT ALL - NULLIF ( - + 81, + 69 - - - 20 + - 84 + - + 39 * + 37 + 69 + - 33 )
----
81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3507
SELECT ALL - COALESCE ( - 64, + - 0 + 86 * - CASE + 63 WHEN 59 * 60 THEN + 7 END * + 11 + 58, - 67 * + + 21 ) * - CAST( NULL AS SIGNED ) * - + 20 col1, + 40 DIV ( 3 ) + 57 + COALESCE ( 53, - COALESCE ( - 94, + 45 * + 1, + 55, - COUNT( DISTINCT + 43 ) * + 87 ) * - - 79 + 63 DIV - 53 * - CASE + + 51 WHEN 53 + 9 DIV - 33 THEN 76 + - CASE - + 62 WHEN - + COUNT( * ) - + ( - + 74 ) * - 32 + 42 THEN + SUM( DISTINCT 75 ) ELSE NULL END - ( - 44 ) ELSE NULL END ) AS col2
----
NULL
123

skipif mysql # not compatible
query II rowsort label-3507
SELECT ALL - COALESCE ( - 64, + - 0 + 86 * - CASE + 63 WHEN 59 * 60 THEN + 7 END * + 11 + 58, - 67 * + + 21 ) * - CAST ( NULL AS INTEGER ) * - + 20 col1, + 40 / ( 3 ) + 57 + COALESCE ( 53, - COALESCE ( - 94, + 45 * + 1, + 55, - COUNT ( DISTINCT + 43 ) * + 87 ) * - - 79 + 63 / - 53 * - CASE + + 51 WHEN 53 + 9 / - 33 THEN 76 + - CASE - + 62 WHEN - + COUNT ( * ) - + ( - + 74 ) * - 32 + 42 THEN + SUM ( DISTINCT 75 ) ELSE NULL END - ( - 44 ) ELSE NULL END ) AS col2
----
NULL
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3508
SELECT + - 22 * + COUNT( * ) - - COUNT( * ) + CAST( - + COUNT( * ) AS DECIMAL ) - + 35 + - + COALESCE ( - 75, + + 12, + + 75 / - 12 * 47 + - 16 ) * + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT + - 22 * + COUNT ( * ) - - COUNT ( * ) + CAST ( - + COUNT ( * ) AS REAL ) - + 35 + - + COALESCE ( - 75, + + 12, + + 75 / - 12 * 47 + - 16 ) * + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * + - 6
----
NULL

query I rowsort
SELECT - 94 * + 39 * - 29
----
106314

query I rowsort
SELECT DISTINCT 64 + + 24 AS col2
----
88

query I rowsort
SELECT ALL 78 + + - 60
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3512
SELECT - - 13 col2, + ( CAST( + - 64 AS SIGNED ) ) + - 54
----
13
-118

skipif mysql # not compatible
query II rowsort label-3512
SELECT - - 13 col2, + ( CAST ( + - 64 AS INTEGER ) ) + - 54
----
13
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-3513
SELECT ALL 21 * + NULLIF ( + ( + + 98 ), - 8 * - 61 + + + ( + COUNT( * ) ) + + COUNT( - 98 ) + 7 - + 95 * 31 * - + 49 ) * + 43 AS col0, + 7
----
88494
7

skipif mysql # not compatible
query II rowsort label-3513
SELECT ALL 21 * + NULLIF ( + ( + + 98 ), - 8 * - 61 + + + ( + COUNT ( * ) ) + + COUNT ( - 98 ) + 7 - + 95 * 31 * - + 49 ) * + 43 AS col0, + 7
----
88494
7

query I rowsort
SELECT DISTINCT + 8 + - 39 + - + 60 + - + 93 + + 50 col2
----
-134

query II rowsort
SELECT + 82 col0, 71
----
82
71

query II rowsort
SELECT ALL + 47, ( 45 ) AS col2
----
47
45

query I rowsort
SELECT ALL - 75 + + 87
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT ALL 48 + - 66 + - 3 DIV + 53 * + 94 + 75 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL 48 + - 66 + - 3 / + 53 * + 94 + 75 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3519
SELECT + + 95 * + 50 * - COALESCE ( - CAST( NULL AS SIGNED ), - SUM( DISTINCT 72 ) ) * COUNT( * ) + - - COALESCE ( + COUNT( * ), - 39 * - - 67 + 18 DIV 80 + + 2 * - 40 + + - 26 + - 58 )
----
342001

skipif mysql # not compatible
query I rowsort label-3519
SELECT + + 95 * + 50 * - COALESCE ( - CAST ( NULL AS INTEGER ), - SUM ( DISTINCT 72 ) ) * COUNT ( * ) + - - COALESCE ( + COUNT ( * ), - 39 * - - 67 + 18 / 80 + + 2 * - 40 + + - 26 + - 58 )
----
342001

onlyif mysql # aggregate syntax: 
query II rowsort label-3520
SELECT ALL ( ( + MIN( + ( 73 ) ) ) ), MIN( + 95 ) AS col1
----
73
95

skipif mysql # not compatible
query II rowsort label-3520
SELECT ALL ( ( + MIN ( + ( 73 ) ) ) ), MIN ( + 95 ) AS col1
----
73
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT + - COUNT( * ) * + + 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3521
SELECT + - COUNT ( * ) * + + 92 AS col2
----
-92

query I rowsort
SELECT - - 15 + 77
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT - COUNT( * ) + 84 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-3524
SELECT - COUNT ( * ) + 84 AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3525
SELECT ALL - 11 DIV ( + + 18 ) * 61 + COUNT( * ) + - NULLIF ( + 35, + 82 * + 44 DIV - + 65 )
----
-34

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL - 11 / ( + + 18 ) * 61 + COUNT ( * ) + - NULLIF ( + 35, + 82 * + 44 / - + 65 )
----
-34

query I rowsort
SELECT - 6 + - 32 AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3527
SELECT ALL - 61 DIV 63 * - 37 * COUNT( * ) - - + 70 DIV + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL - 61 / 63 * - 37 * COUNT ( * ) - - + 70 / + COUNT ( * )
----
70

query II rowsort
SELECT + 0, 25 AS col1
----
0
25

query II rowsort
SELECT ALL + 52 AS col0, + ( + 70 )
----
52
70

query II rowsort
SELECT + 58, - 38 AS col0
----
58
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL + CASE AVG ( - 69 ) WHEN 19 + - 19 THEN - 65 ELSE + SUM( DISTINCT + 26 ) END AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL + CASE AVG ( - 69 ) WHEN 19 + - 19 THEN - 65 ELSE + SUM ( DISTINCT + 26 ) END AS col0
----
26

query I rowsort
SELECT - 52 * - + 21
----
1092

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

query I rowsort
SELECT + COALESCE ( - NULLIF ( + 44, + + 58 ), 35 )
----
-44

query II rowsort
SELECT ALL + 88 * 46 AS col1, ( ( - ( + - 59 ) ) ) AS col1
----
4048
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT - COUNT( * ) - + 51 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-3536
SELECT - COUNT ( * ) - + 51 AS col2
----
-52

query I rowsort
SELECT ALL 16 * + 48 AS col0
----
768

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT DISTINCT + 6 DIV + - 67 * - + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT + 6 / + - 67 * - + 64 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3539
SELECT ALL + 88 * - + CAST( 81 AS SIGNED ) AS col2
----
-7128

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL + 88 * - + CAST ( 81 AS INTEGER ) AS col2
----
-7128

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT - MAX( ( - - 64 ) ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-3540
SELECT - MAX ( ( - - 64 ) ) col0
----
-64

query I rowsort
SELECT + COALESCE ( 54, + - 50, - 38 + - 47 ) col1
----
54

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3543
SELECT + 52 * + 12 * + COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col2, - 79 AS col0
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-3543
SELECT + 52 * + 12 * + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col2, - 79 AS col0
----
NULL
-79

query I rowsort
SELECT + 70 - - + 60
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-3545
SELECT 90 DIV + NULLIF ( 77, 29 )
----
1

skipif mysql # not compatible
query I rowsort label-3545
SELECT 90 / + NULLIF ( 77, 29 )
----
1

query I rowsort
SELECT DISTINCT 48 + + 59 AS col1
----
107

query I rowsort
SELECT 79 * + - 33 AS col0
----
-2607

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT + COUNT( + + 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3548
SELECT + COUNT ( + + 49 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 79 + - - 99 + - 71 AS col2
----
-51

query I rowsort
SELECT ALL + 5 + - - 30
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT - COUNT( * ) - + 44 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3551
SELECT - COUNT ( * ) - + 44 AS col0
----
-45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT ALL CAST( - 54 AS SIGNED ) * 45
----
-2430

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL CAST ( - 54 AS INTEGER ) * 45
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT DISTINCT - 97 + SUM( ALL - 99 ) AS col1
----
-196

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT - 97 + SUM ( ALL - 99 ) AS col1
----
-196

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3556
SELECT ALL CASE 62 WHEN 68 * CAST( - + NULLIF ( - ( 44 ), - + 26 - 52 ) AS DECIMAL ) + + COUNT( * ) + + ( + 25 ) / + + COUNT( ALL + CAST( + + 50 AS DECIMAL ) ) + + 24 THEN NULL WHEN - AVG ( DISTINCT - 96 ) THEN - + 14 * MAX( + - 56 ) - + CAST( NULL AS SIGNED ) * + - 60 + + + 24 - 9 * - + 90 WHEN + + 41 * + 46 * - 8 * - 95 + - + COUNT( * ) * + ( - - COUNT( * ) ) - - ( + + 64 ) + - CASE + + 69 WHEN ( - 89 ) + + + 98 THEN NULL ELSE - - 90 END THEN 19 END - - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL CASE 62 WHEN 68 * CAST ( - + NULLIF ( - ( 44 ), - + 26 - 52 ) AS REAL ) + + COUNT ( * ) + + ( + 25 ) / + + COUNT ( ALL + CAST ( + + 50 AS REAL ) ) + + 24 THEN NULL WHEN - AVG ( DISTINCT - 96 ) THEN - + 14 * MAX ( + - 56 ) - + CAST ( NULL AS INTEGER ) * + - 60 + + + 24 - 9 * - + 90 WHEN + + 41 * + 46 * - 8 * - 95 + - + COUNT ( * ) * + ( - - COUNT ( * ) ) - - ( + + 64 ) + - CASE + + 69 WHEN ( - 89 ) + + + 98 THEN NULL ELSE - - 90 END THEN 19 END - - 30
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3557
SELECT 26 AS col0, - ( + 29 ) DIV + - 90
----
26
0

skipif mysql # not compatible
query II rowsort label-3557
SELECT 26 AS col0, - ( + 29 ) / + - 90
----
26
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT ALL - ( - 2 ) DIV - 28
----
0

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL - ( - 2 ) / - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL - 82 - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL - 82 - COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3560
SELECT COUNT( * ) + + 36 AS col1, 39 AS col1
----
37
39

skipif mysql # not compatible
query II rowsort label-3560
SELECT COUNT ( * ) + + 36 AS col1, 39 AS col1
----
37
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT 55 * 47 * - + 51 + COUNT( * ) * - - 49
----
-131786

skipif mysql # not compatible
query I rowsort label-3561
SELECT 55 * 47 * - + 51 + COUNT ( * ) * - - 49
----
-131786

onlyif mysql # aggregate syntax: 
query II rowsort label-3562
SELECT DISTINCT - 65 * 22 AS col0, 46 * + 7 * - COALESCE ( - 99, + COUNT( * ) ) AS col2
----
-1430
31878

skipif mysql # not compatible
query II rowsort label-3562
SELECT DISTINCT - 65 * 22 AS col0, 46 * + 7 * - COALESCE ( - 99, + COUNT ( * ) ) AS col2
----
-1430
31878

onlyif mysql # DIV for integer division: 
query II rowsort label-3563
SELECT 41 DIV - 21 AS col1, - 4 AS col0
----
-1
-4

skipif mysql # not compatible
query II rowsort label-3563
SELECT 41 / - 21 AS col1, - 4 AS col0
----
-1
-4

query II rowsort
SELECT ALL 93 * - - 22 AS col0, 13 AS col0
----
2046
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3565
SELECT 20 DIV + + CAST( + 51 AS SIGNED ) + - 43
----
-43

skipif mysql # not compatible
query I rowsort label-3565
SELECT 20 / + + CAST ( + 51 AS INTEGER ) + - 43
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3566
SELECT ALL - COALESCE ( 62, 16 * - SUM( ALL - + NULLIF ( + CAST( NULL AS SIGNED ), 28 ) ) ) AS col1, + 57 - - - 27
----
-62
30

skipif mysql # not compatible
query II rowsort label-3566
SELECT ALL - COALESCE ( 62, 16 * - SUM ( ALL - + NULLIF ( + CAST ( NULL AS INTEGER ), 28 ) ) ) AS col1, + 57 - - - 27
----
-62
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3567
SELECT SUM( ALL + 48 ) * - 36 + - 10 + 33, + CAST( NULL AS SIGNED ) * - 49 AS col2
----
-1705
NULL

skipif mysql # not compatible
query II rowsort label-3567
SELECT SUM ( ALL + 48 ) * - 36 + - 10 + 33, + CAST ( NULL AS INTEGER ) * - 49 AS col2
----
-1705
NULL

query I rowsort
SELECT DISTINCT + 2 * - - NULLIF ( - 23, 95 ) AS col1
----
-46

query I rowsort
SELECT + 81 * + 11 + - 79
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL - - COALESCE ( - SUM( ALL - 45 ), + - 46 )
----
45

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - - COALESCE ( - SUM ( ALL - 45 ), + - 46 )
----
45

query I rowsort
SELECT ALL - + 21 + + - 96 + + 40
----
-77

query I rowsort
SELECT 74 * - - 91
----
6734

query II rowsort
SELECT - 67 + + 36, 73 + 47 AS col1
----
-31
120

query II rowsort
SELECT ALL - + 8 + - 42 AS col0, ( - 86 ) AS col1
----
-50
-86

query I rowsort
SELECT DISTINCT - 78 * + 0 - + 63
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3576
SELECT DISTINCT + - 79 + - ( + CAST( + + 18 AS SIGNED ) ) * - - 11 DIV - CASE + + COALESCE ( 86, 43 ) WHEN - COUNT( ( - ( + + 18 ) ) ) THEN NULL ELSE 72 * + - 53 END AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT + - 79 + - ( + CAST ( + + 18 AS INTEGER ) ) * - - 11 / - CASE + + COALESCE ( 86, 43 ) WHEN - COUNT ( ( - ( + + 18 ) ) ) THEN NULL ELSE 72 * + - 53 END AS col0
----
-79

query II rowsort
SELECT ALL - 50 * 29, CASE 20 WHEN - 2 + + - 74 THEN NULL WHEN + 41 - - ( + 89 ) THEN NULL ELSE 61 * - 70 END AS col0
----
-1450
-4270

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT DISTINCT 82 + + 65 - - ( - - COUNT( * ) )
----
148

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT 82 + + 65 - - ( - - COUNT ( * ) )
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3579
SELECT 61 + + - 10 + - + 26 + + 53 + + - 30 DIV + MAX( 74 ) * ( + + 23 ) * + - 47 * COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3579
SELECT 61 + + - 10 + - + 26 + + 53 + + - 30 / + MAX ( 74 ) * ( + + 23 ) * + - 47 * COUNT ( * ) AS col1
----
78

query I rowsort
SELECT - 0 - 13
----
-13

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

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

query II rowsort
SELECT - 9 + + 62, 14 AS col2
----
53
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3583
SELECT SUM( DISTINCT - ( + 59 ) ) + 26 * + COUNT( * ) DIV ( - COALESCE ( - 56, - + 27 - + 89, 44 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-3583
SELECT SUM ( DISTINCT - ( + 59 ) ) + 26 * + COUNT ( * ) / ( - COALESCE ( - 56, - + 27 - + 89, 44 ) )
----
-59

query I rowsort
SELECT - COALESCE ( + 34, 81 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT + NULLIF ( 9, + 30 * - 96 / - 43 * - - COUNT( - 54 ) + + + 98 + + 6 * - + 47 ) * + 6 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3585
SELECT + NULLIF ( 9, + 30 * - 96 / - 43 * - - COUNT ( - 54 ) + + + 98 + + 6 * - + 47 ) * + 6 AS col1
----
54

query I rowsort
SELECT + 50 * - - 45 + 94 + 17 AS col2
----
2361

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT 32 + COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-3588
SELECT 32 + COUNT ( * ) AS col0
----
33

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

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

query I rowsort
SELECT ( + ( 68 ) ) * - ( - 25 ) AS col1
----
1700

query II rowsort
SELECT - 1, 26 AS col2
----
-1
26

query I rowsort
SELECT 48 + 98 - + + 46 - - 5 * + - 19
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT - MIN( - 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-3593
SELECT - MIN ( - 17 ) AS col2
----
17

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

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

query I rowsort
SELECT 32 * - 43 AS col1
----
-1376

query I rowsort
SELECT 67 + + - 3 AS col1
----
64

query I rowsort
SELECT ALL 23 * + 99 AS col0
----
2277

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3598
SELECT CASE - - 91 WHEN + CASE - 6 WHEN - - 37 + + 62 THEN - CAST( NULL AS DECIMAL ) END THEN - 5 WHEN 75 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT CASE - - 91 WHEN + CASE - 6 WHEN - - 37 + + 62 THEN - CAST ( NULL AS REAL ) END THEN - 5 WHEN 75 THEN NULL ELSE NULL END AS col0
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT 52 * + 36
----
1872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3602
SELECT ALL 21 * - COUNT( * ) + 54 DIV - 78
----
-21

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL 21 * - COUNT ( * ) + 54 / - 78
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT + MIN( + 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3603
SELECT + MIN ( + 39 ) AS col1
----
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3604
SELECT + 82 DIV + 87 - CAST( 25 AS SIGNED ) * - - ( + 98 ), 41 AS col1
----
-2450
41

skipif mysql # not compatible
query II rowsort label-3604
SELECT + 82 / + 87 - CAST ( 25 AS INTEGER ) * - - ( + 98 ), 41 AS col1
----
-2450
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL 69 * + + CASE 91 WHEN - + 81 + 53 THEN NULL WHEN + COUNT( * ) THEN - 48 END + + - 24 + 96 * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL 69 * + + CASE 91 WHEN - + 81 + 53 THEN NULL WHEN + COUNT ( * ) THEN - 48 END + + - 24 + 96 * + 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3606
SELECT + - ( 76 ) * - 31 + - CAST( NULL AS SIGNED ) * - - ( - - 68 ), - SUM( - 25 ) AS col1
----
NULL
25

skipif mysql # not compatible
query II rowsort label-3606
SELECT + - ( 76 ) * - 31 + - CAST ( NULL AS INTEGER ) * - - ( - - 68 ), - SUM ( - 25 ) AS col1
----
NULL
25

query I rowsort
SELECT DISTINCT - + 44 * + 12 col2
----
-528

query I rowsort
SELECT DISTINCT 27 * - ( + - 80 ) - - 81 + 81 + 6 * 67 col2
----
2724

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3609
SELECT ALL + CAST( 65 AS SIGNED ) * + 31 + + 90 + + - ( - 39 ) - + + 51 DIV - + 50, 79 AS col2
----
2145
79

skipif mysql # not compatible
query II rowsort label-3609
SELECT ALL + CAST ( 65 AS INTEGER ) * + 31 + + 90 + + - ( - 39 ) - + + 51 / - + 50, 79 AS col2
----
2145
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3610
SELECT + - CAST( NULL AS SIGNED ) * - COUNT( * ) - + 68 * - + NULLIF ( ( 67 ), 8 * MAX( DISTINCT ( + 82 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - + 68 * - + NULLIF ( ( 67 ), 8 * MAX ( DISTINCT ( + 82 ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL ( - 89 ) * ( + 58 ) + + 12 AS col2
----
-5150

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3613
SELECT - 32 * + 90 - - 85 AS col1, COUNT( * )
----
-2795
1

skipif mysql # not compatible
query II rowsort label-3613
SELECT - 32 * + 90 - - 85 AS col1, COUNT ( * )
----
-2795
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3614
SELECT + MAX( DISTINCT - 55 ) + + CAST( NULL AS SIGNED ) * - + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT + MAX ( DISTINCT - 55 ) + + CAST ( NULL AS INTEGER ) * - + 67
----
NULL

query I rowsort
SELECT - - 44 - - 52
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ALL + - COUNT( * ) - 16
----
-17

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL + - COUNT ( * ) - 16
----
-17

query II rowsort
SELECT ALL 29 AS col2, + 36 * 39
----
29
1404

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

query I rowsort
SELECT COALESCE ( + 50, 70 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT - - COUNT( * ) + 13 - - 83 + + + ( + SUM( ALL - 34 ) ) * + + 53
----
-1705

skipif mysql # not compatible
query I rowsort label-3620
SELECT - - COUNT ( * ) + 13 - - 83 + + + ( + SUM ( ALL - 34 ) ) * + + 53
----
-1705

query I rowsort
SELECT DISTINCT - 45 * - 36
----
1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3622
SELECT - 41 DIV - NULLIF ( - COUNT( * ), + - ( - 55 ) * 75 )
----
-41

skipif mysql # not compatible
query I rowsort label-3622
SELECT - 41 / - NULLIF ( - COUNT ( * ), + - ( - 55 ) * 75 )
----
-41

query II rowsort
SELECT - 47 * 85, - 43 + - 62 col2
----
-3995
-105

query I rowsort
SELECT - 59 + 49 * - + 40
----
-2019

query I rowsort
SELECT - COALESCE ( - 62, - 35, + 39 ) * 44 + - 48 - - + 72
----
2752

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT DISTINCT ( - COALESCE ( + 34, + 69 + - + COUNT( * ) ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT ( - COALESCE ( + 34, + 69 + - + COUNT ( * ) ) ) AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3627
SELECT DISTINCT ( + CASE 48 WHEN - COUNT( * ) THEN 34 * + 0 - - - 1 WHEN CAST( NULL AS DECIMAL ) + - - ( + + 62 ) * 81 THEN NULL WHEN + - 15 THEN COUNT( * ) / COUNT( * ) - 35 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT ( + CASE 48 WHEN - COUNT ( * ) THEN 34 * + 0 - - - 1 WHEN CAST ( NULL AS REAL ) + - - ( + + 62 ) * 81 THEN NULL WHEN + - 15 THEN COUNT ( * ) / COUNT ( * ) - 35 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3628
SELECT ALL ( ( - - CAST( 69 AS SIGNED ) ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL ( ( - - CAST ( 69 AS INTEGER ) ) ) AS col2
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3630
SELECT ALL 99 + + COALESCE ( - 53, + COUNT( * ) * - 41 ) + + CASE + 57 WHEN + - 70 + SUM( ALL - 33 ) + MIN( + - 55 ) / + 15 THEN - CAST( NULL AS SIGNED ) ELSE - - 26 + - 48 + - 64 END * ( 12 ) + + 50
----
-936

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL 99 + + COALESCE ( - 53, + COUNT ( * ) * - 41 ) + + CASE + 57 WHEN + - 70 + SUM ( ALL - 33 ) + MIN ( + - 55 ) / + 15 THEN - CAST ( NULL AS INTEGER ) ELSE - - 26 + - 48 + - 64 END * ( 12 ) + + 50
----
-936

query I rowsort
SELECT - 5 - + + 4 + - 27
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT DISTINCT + 47 + + AVG ( 75 ) + - 27 / CAST( NULL AS SIGNED ) - COUNT( * ) * + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT + 47 + + AVG ( 75 ) + - 27 / CAST ( NULL AS INTEGER ) - COUNT ( * ) * + - 17
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3633
SELECT ALL 48 DIV + 18 + - - MIN( 65 )
----
67

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL 48 / + 18 + - - MIN ( 65 )
----
67

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3635
SELECT + COUNT( ALL - 29 ) DIV - 65 * - + 31 - + ( - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-3635
SELECT + COUNT ( ALL - 29 ) / - 65 * - + 31 - + ( - 91 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3636
SELECT CAST( + 70 AS SIGNED ), NULLIF ( - + CASE + AVG ( - 69 ) WHEN + - 96 * - + 31 * 12 + ( ( COUNT( * ) ) ) THEN 91 ELSE + ( + 60 ) END, - CAST( NULL AS SIGNED ) ) DIV - 9 AS col1
----
70
6

skipif mysql # not compatible
query II rowsort label-3636
SELECT CAST ( + 70 AS INTEGER ), NULLIF ( - + CASE + AVG ( - 69 ) WHEN + - 96 * - + 31 * 12 + ( ( COUNT ( * ) ) ) THEN 91 ELSE + ( + 60 ) END, - CAST ( NULL AS INTEGER ) ) / - 9 AS col1
----
70
6

query II rowsort
SELECT 30 * - 64 + + 48 * + 14 AS col1, 66 * 16
----
-1248
1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3638
SELECT ALL 91 DIV COUNT( * ) + - NULLIF ( + 0, 82 + - 12 ) DIV - - 54
----
91

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL 91 / COUNT ( * ) + - NULLIF ( + 0, 82 + - 12 ) / - - 54
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT CAST( + NULLIF ( + 45, 49 - + - 14 + 41 ) AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-3639
SELECT CAST ( + NULLIF ( + 45, 49 - + - 14 + 41 ) AS INTEGER )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT + 2 + + + SUM( DISTINCT 18 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3640
SELECT + 2 + + + SUM ( DISTINCT 18 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT - - 44 * - 31 - SUM( ALL - 51 ) + - + 94
----
-1407

skipif mysql # not compatible
query I rowsort label-3641
SELECT - - 44 * - 31 - SUM ( ALL - 51 ) + - + 94
----
-1407

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL + - 66 * + 44 + - - 81 + + CASE + + 62 WHEN + 75 * + - 4 + - - COUNT( * ) + - 67 THEN + 69 + 47 + 67 END * COUNT( * ) - - 22 + + COUNT( * ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL + - 66 * + 44 + - - 81 + + CASE + + 62 WHEN + 75 * + - 4 + - - COUNT ( * ) + - 67 THEN + 69 + 47 + 67 END * COUNT ( * ) - - 22 + + COUNT ( * ) / - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT DISTINCT + 43 * - 75 / 60 - + - 10 / + 45 * - 54 + + 13 + + + CAST( NULL AS SIGNED ) - + 0 * AVG ( ALL 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT + 43 * - 75 / 60 - + - 10 / + 45 * - 54 + + 13 + + + CAST ( NULL AS INTEGER ) - + 0 * AVG ( ALL 20 )
----
NULL

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

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

query I rowsort
SELECT + + 73 + + COALESCE ( + 13, - 19 ) * 19 * 69 AS col1
----
17116

query I rowsort
SELECT + 91 * - - 63
----
5733

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT + 5 * + MIN( ALL + 10 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-3647
SELECT + 5 * + MIN ( ALL + 10 ) AS col2
----
50

query I rowsort
SELECT ALL 44 * - 30
----
-1320

onlyif mysql # DIV for integer division: 
query I rowsort label-3649
SELECT + 18 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-3649
SELECT + 18 / + 76
----
0

query II rowsort
SELECT + + 21 * + 92, 7 + + 89 AS col2
----
1932
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT CASE - - COALESCE ( + - 19, 83 * + CAST( CAST( + 3 AS SIGNED ) AS SIGNED ) ) WHEN + - 11 / + 90 THEN - + AVG ( 25 ) ELSE + 76 END col1
----
76

skipif mysql # not compatible
query I rowsort label-3651
SELECT CASE - - COALESCE ( + - 19, 83 * + CAST ( CAST ( + 3 AS INTEGER ) AS INTEGER ) ) WHEN + - 11 / + 90 THEN - + AVG ( 25 ) ELSE + 76 END col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT + 18 - + 24 - - COUNT( * ) * + + 35 * 23
----
799

skipif mysql # not compatible
query I rowsort label-3652
SELECT + 18 - + 24 - - COUNT ( * ) * + + 35 * 23
----
799

query I rowsort
SELECT + 35 * + - 92 AS col0
----
-3220

query I rowsort
SELECT - 41 + - 32 + 7 + + 73
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT DISTINCT COALESCE ( + 56, - 65 * + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + - 44 + - + 33, - 29 * 17 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT COALESCE ( + 56, - 65 * + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + - 44 + - + 33, - 29 * 17 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT COUNT( 62 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3656
SELECT COUNT ( 62 ) col1
----
1

query I rowsort
SELECT ALL + 60 + + 58 AS col2
----
118

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

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

query I rowsort
SELECT 57 + - 94 * - - 3
----
-225

query I rowsort
SELECT DISTINCT - 88 + + + 9 AS col0
----
-79

query I rowsort
SELECT DISTINCT + 43 + + 95 AS col1
----
138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3662
SELECT 57 DIV CAST( - 68 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3662
SELECT 57 / CAST ( - 68 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT ALL + 25 + NULLIF ( - 36, 81 ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + 25 + NULLIF ( - 36, 81 ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 2 + - 70
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT DISTINCT + 44 + + COUNT( * ) * - 26 * 77 AS col0
----
-1958

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT + 44 + + COUNT ( * ) * - 26 * 77 AS col0
----
-1958

query I rowsort
SELECT 76 * + 41 AS col2
----
3116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3667
SELECT ALL + MAX( - 67 ) DIV 73 + + 94 * - 66 AS col1
----
-6204

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL + MAX ( - 67 ) / 73 + + 94 * - 66 AS col1
----
-6204

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT DISTINCT COALESCE ( - 65, - COUNT( * ), + 24 * + 34 ) - 11 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT COALESCE ( - 65, - COUNT ( * ), + 24 * + 34 ) - 11 AS col2
----
-76

query I rowsort
SELECT 72 - 1 * + 87
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT + COUNT( DISTINCT 10 ) * 57 - - 31
----
88

skipif mysql # not compatible
query I rowsort label-3670
SELECT + COUNT ( DISTINCT 10 ) * 57 - - 31
----
88

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

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

query I rowsort
SELECT ALL + 26 * 92 col2
----
2392

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

skipif mysql # not compatible
query I rowsort label-3673
SELECT COUNT ( * ) * 18
----
18

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

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

query I rowsort
SELECT DISTINCT + 9 * 77 AS col2
----
693

query I rowsort
SELECT COALESCE ( - 53, COALESCE ( 49, 64 * 81 ) + 62 ) * 43 AS col2
----
-2279

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT - 85 * ( + 33 * + NULLIF ( - MAX( ALL + 22 ), SUM( DISTINCT 90 ) * - 38 ) ) + 83 AS col2
----
61793

skipif mysql # not compatible
query I rowsort label-3677
SELECT - 85 * ( + 33 * + NULLIF ( - MAX ( ALL + 22 ), SUM ( DISTINCT 90 ) * - 38 ) ) + 83 AS col2
----
61793

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3679
SELECT CAST( + 99 AS SIGNED ) + + 9 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-3679
SELECT CAST ( + 99 AS INTEGER ) + + 9 AS col1
----
108

query I rowsort
SELECT ALL 24 + 45 * - 48 AS col1
----
-2136

query I rowsort
SELECT ALL 0 + + 29
----
29

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

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

query I rowsort
SELECT DISTINCT 29 + - 87 AS col1
----
-58

query I rowsort
SELECT DISTINCT + 47 + + 87
----
134

query I rowsort
SELECT 38 + ( + 69 ) * NULLIF ( 58 + 29, + AVG ( DISTINCT + 59 ) )
----
6041

query I rowsort
SELECT NULLIF ( - 52, + 68 * - 96 ) + + 29 AS col1
----
-23

query I rowsort
SELECT 83 * + 99 AS col2
----
8217

query I rowsort
SELECT 57 + 21
----
78

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

skipif mysql # not compatible
query I rowsort label-3689
SELECT 96 + + COUNT ( * ) * - 55 AS col0
----
41

query I rowsort
SELECT ALL + 30 - 49
----
-19

query I rowsort
SELECT ( - 58 ) - 79 AS col1
----
-137

query I rowsort
SELECT 82 - + 47 AS col1
----
35

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3694
SELECT 92 + + NULLIF ( 65, - COALESCE ( + 2, + CAST( NULL AS SIGNED ) + 67, - 89 + - COUNT( * ) ) ) * COALESCE ( 68, 58 + 95 * + 62 ) col0
----
4512

skipif mysql # not compatible
query I rowsort label-3694
SELECT 92 + + NULLIF ( 65, - COALESCE ( + 2, + CAST ( NULL AS INTEGER ) + 67, - 89 + - COUNT ( * ) ) ) * COALESCE ( 68, 58 + 95 * + 62 ) col0
----
4512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3695
SELECT ALL + CASE 37 WHEN - CAST( 7 AS SIGNED ) * - 37 THEN + COUNT( * ) * 47 END * 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL + CASE 37 WHEN - CAST ( 7 AS INTEGER ) * - 37 THEN + COUNT ( * ) * 47 END * 6 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 24 * + 39
----
936

query I rowsort
SELECT 4 + - 36 AS col1
----
-32

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

skipif mysql # not compatible
query I rowsort label-3698
SELECT + 28 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 63 * - 35 AS col1
----
-2205

query I rowsort
SELECT - 37 + 21
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3701
SELECT - - 57 DIV COUNT( * ) - 43 * - 47 AS col1
----
2078

skipif mysql # not compatible
query I rowsort label-3701
SELECT - - 57 / COUNT ( * ) - 43 * - 47 AS col1
----
2078

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT + + COUNT( * ) * 95 + 98
----
193

skipif mysql # not compatible
query I rowsort label-3703
SELECT + + COUNT ( * ) * 95 + 98
----
193

query I rowsort
SELECT - 20 - 37 AS col1
----
-57

query I rowsort
SELECT + 90 * 22 + + 70 * + 2
----
2120

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

query I rowsort
SELECT + 87 + 87 * 51 AS col2
----
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT ALL COALESCE ( + 45, - 41 + COALESCE ( 28, - 49 ) * + SUM( DISTINCT - 37 ), - 51 ) * + COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL COALESCE ( + 45, - 41 + COALESCE ( 28, - 49 ) * + SUM ( DISTINCT - 37 ), - 51 ) * + COUNT ( * ) AS col0
----
45

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

skipif mysql # not compatible
query I rowsort label-3709
SELECT - 11 * COUNT ( * ) + 16 AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT ALL - - 75 * 97 + - NULLIF ( CAST( NULL AS SIGNED ), + AVG ( ALL 99 ) - - ( 38 ) * 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL - - 75 * 97 + - NULLIF ( CAST ( NULL AS INTEGER ), + AVG ( ALL 99 ) - - ( 38 ) * 98 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3711
SELECT DISTINCT - + MIN( + COALESCE ( 31, - ( + 28 ) DIV CASE - 45 WHEN - 4 THEN 56 END, COALESCE ( 36, + 56 + - 8 ) ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT - + MIN ( + COALESCE ( 31, - ( + 28 ) / CASE - 45 WHEN - 4 THEN 56 END, COALESCE ( 36, + 56 + - 8 ) ) ) AS col1
----
-31

query I rowsort
SELECT + 76 + 73 AS col2
----
149

query I rowsort
SELECT 91 * + 66 AS col0
----
6006

query I rowsort
SELECT 35 + 43 AS col1
----
78

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3716
SELECT DISTINCT - 33 + 31 DIV - 11
----
-35

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT - 33 + 31 / - 11
----
-35

query I rowsort
SELECT ALL 33 + - 66
----
-33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT + MAX( + 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT + MAX ( + 58 ) AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT DISTINCT + CAST( + - NULLIF ( + 63, - 66 - 30 ) AS SIGNED ) + + 38 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT + CAST ( + - NULLIF ( + 63, - 66 - 30 ) AS INTEGER ) + + 38 AS col2
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3721
SELECT + MAX( - 9 ) + 69 DIV + 34 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-3721
SELECT + MAX ( - 9 ) + 69 / + 34 AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3722
SELECT ALL - 43 + 46 DIV 75 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL - 43 + 46 / 75 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT - 46 + - - MIN( ALL 84 ) * 75
----
6254

skipif mysql # not compatible
query I rowsort label-3723
SELECT - 46 + - - MIN ( ALL 84 ) * 75
----
6254

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT - COUNT( * ) - - ( 84 ) + 37
----
120

skipif mysql # not compatible
query I rowsort label-3724
SELECT - COUNT ( * ) - - ( 84 ) + 37
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-3725
SELECT DISTINCT 75 DIV + 68
----
1

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT 75 / + 68
----
1

query I rowsort
SELECT + 87 * - 3 AS col0
----
-261

query I rowsort
SELECT + 99 * + ( 16 ) col0
----
1584

query I rowsort
SELECT + 4 + + - 64 + + CASE + 63 + - 16 WHEN + ( - 26 ) THEN ( 25 ) + + 64 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT ALL MIN( + 25 ) - 74
----
-49

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL MIN ( + 25 ) - 74
----
-49

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

skipif mysql # not compatible
query I rowsort label-3730
SELECT - SUM ( ALL - 83 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3731
SELECT + ( CAST( - 86 AS SIGNED ) ) + NULLIF ( - 28, - 93 * + 1 ) * 72 AS col2
----
-2102

skipif mysql # not compatible
query I rowsort label-3731
SELECT + ( CAST ( - 86 AS INTEGER ) ) + NULLIF ( - 28, - 93 * + 1 ) * 72 AS col2
----
-2102

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

skipif mysql # not compatible
query I rowsort label-3732
SELECT + 51 / MIN ( ALL 82 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT + 68 + - - MIN( DISTINCT 30 )
----
98

skipif mysql # not compatible
query I rowsort label-3733
SELECT + 68 + - - MIN ( DISTINCT 30 )
----
98

query I rowsort
SELECT ALL 74 * - 15
----
-1110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3735
SELECT ALL SUM( CAST( 9 AS SIGNED ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL SUM ( CAST ( 9 AS INTEGER ) ) AS col1
----
9

query I rowsort
SELECT + 62 * - 54 AS col2
----
-3348

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT MAX( DISTINCT 70 ) * 26
----
1820

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT MAX ( DISTINCT 70 ) * 26
----
1820

query I rowsort
SELECT + - ( + CASE 65 WHEN + ( - 94 ) THEN 97 * - 47 END ) + + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT - + 60 + - 90 - + 46 * + 68 * COUNT( * ) AS col1
----
-3278

skipif mysql # not compatible
query I rowsort label-3739
SELECT - + 60 + - 90 - + 46 * + 68 * COUNT ( * ) AS col1
----
-3278

query I rowsort
SELECT + + NULLIF ( 52, 65 ) * + 46
----
2392

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT ALL - 89 * 56 + ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL - 89 * 56 + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 16 * + 25 * 88 + + 5 AS col0
----
-35195

query I rowsort
SELECT ALL - - 80 * 30 col2
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT - ( COUNT( * ) ) * ( 6 * + 16 )
----
-96

skipif mysql # not compatible
query I rowsort label-3746
SELECT - ( COUNT ( * ) ) * ( 6 * + 16 )
----
-96

query I rowsort
SELECT 39 * - - 22 + 35 - 39
----
854

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT ALL - COUNT( * ) * - ( 4 ) * 27 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL - COUNT ( * ) * - ( 4 ) * 27 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + CASE + - 97 WHEN - ( 82 ) - 72 THEN - COUNT( DISTINCT - 95 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT + CASE + - 97 WHEN - ( 82 ) - 72 THEN - COUNT ( DISTINCT - 95 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - - 84 * + COALESCE ( + 99, 28 ) AS col1
----
8316

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT 68 * - 84 + - 69 + SUM( ALL - 40 - - 86 ) AS col2
----
-5735

skipif mysql # not compatible
query I rowsort label-3751
SELECT 68 * - 84 + - 69 + SUM ( ALL - 40 - - 86 ) AS col2
----
-5735

query I rowsort
SELECT ALL - 1 * + 39 * - 56 + 16
----
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT COUNT( - 8 )
----
1

skipif mysql # not compatible
query I rowsort label-3753
SELECT COUNT ( - 8 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3754
SELECT ALL CAST( + 23 AS SIGNED ) * + 41 AS col1
----
943

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL CAST ( + 23 AS INTEGER ) * + 41 AS col1
----
943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3755
SELECT ALL + - CASE 39 WHEN 86 + + 57 THEN NULL ELSE + 45 + - CAST( NULL AS SIGNED ) * + 31 END * + 90 + 98 / + ( + 56 * 82 + + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL + - CASE 39 WHEN 86 + + 57 THEN NULL ELSE + 45 + - CAST ( NULL AS INTEGER ) * + 31 END * + 90 + 98 / + ( + 56 * 82 + + 67 )
----
NULL

query I rowsort
SELECT 23 * - - 95 + - 39 * + 90 - 13
----
-1338

query I rowsort
SELECT NULLIF ( 24, - 64 ) AS col2
----
24

query I rowsort
SELECT DISTINCT + 83 * + 46 + 78
----
3896

query I rowsort
SELECT ALL - 0 * + - 36 * - 36 + 35 AS col1
----
35

query I rowsort
SELECT DISTINCT - 84 * - + 27 AS col1
----
2268

query I rowsort
SELECT NULLIF ( - + 80, - 75 + - 78 ) AS col1
----
-80

query I rowsort
SELECT - 29 + + - 56 + + + 74 AS col1
----
-11

query I rowsort
SELECT COALESCE ( + 56, - - 56 + - 37 * 50 ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3764
SELECT - 11 * + CASE + - CAST( 75 AS SIGNED ) WHEN - 55 + - 50 * COUNT( * ) THEN - MAX( DISTINCT 81 ) / ( 93 * - ( 82 ) ) WHEN 87 * + 66 THEN 13 END * 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT - 11 * + CASE + - CAST ( 75 AS INTEGER ) WHEN - 55 + - 50 * COUNT ( * ) THEN - MAX ( DISTINCT 81 ) / ( 93 * - ( 82 ) ) WHEN 87 * + 66 THEN 13 END * 38 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - 3, + 7, - 63 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT - MIN( - 7 ) + - + 64 * 91 col2
----
-5817

skipif mysql # not compatible
query I rowsort label-3766
SELECT - MIN ( - 7 ) + - + 64 * 91 col2
----
-5817

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT + 57 * + COUNT( * ) - - - 4 * 90
----
-303

skipif mysql # not compatible
query I rowsort label-3767
SELECT + 57 * + COUNT ( * ) - - - 4 * 90
----
-303

query II rowsort
SELECT - 60 AS col2, 22 col1
----
-60
22

query I rowsort
SELECT - 75 * + - 96 col1
----
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - ( MIN( + CASE + 19 WHEN 22 THEN + 82 END ) ) + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT - ( MIN ( + CASE + 19 WHEN 22 THEN + 82 END ) ) + + 92
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3771
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) col0
----
1

query I rowsort
SELECT ALL - 12 * 95 col0
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT - 57 + - COUNT( * ) * 19 * + COALESCE ( 67 * 86, 74 ) AS col1
----
-109535

skipif mysql # not compatible
query I rowsort label-3773
SELECT - 57 + - COUNT ( * ) * 19 * + COALESCE ( 67 * 86, 74 ) AS col1
----
-109535

query I rowsort
SELECT - ( - 83 ) + - - 78 * 94 AS col0
----
7415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3775
SELECT + 97 DIV COUNT( * ) * + - 31
----
-3007

skipif mysql # not compatible
query I rowsort label-3775
SELECT + 97 / COUNT ( * ) * + - 31
----
-3007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3776
SELECT + - ( + 79 ) * - 66 * - SUM( - CAST( - 43 AS DECIMAL ) / + ( CAST( NULL AS SIGNED ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT + - ( + 79 ) * - 66 * - SUM ( - CAST ( - 43 AS REAL ) / + ( CAST ( NULL AS INTEGER ) ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT ALL - 84 DIV + 99 col2
----
0

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL - 84 / + 99 col2
----
0

query I rowsort
SELECT + 42 - 9
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3779
SELECT + - 45 DIV - 80 + 31 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3779
SELECT + - 45 / - 80 + 31 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT 95 * COUNT( * ) - + 13 * - 84
----
1187

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT 95 * COUNT ( * ) - + 13 * - 84
----
1187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3781
SELECT ALL CASE 94 WHEN + 51 * COALESCE ( + 70 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), 80 ) - 52 THEN - 32 - - COUNT( * ) * - 73 ELSE 18 END + 83 * 7 AS col1
----
599

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL CASE 94 WHEN + 51 * COALESCE ( + 70 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), 80 ) - 52 THEN - 32 - - COUNT ( * ) * - 73 ELSE 18 END + 83 * 7 AS col1
----
599

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT + 69 + + ( - ( - COUNT( * ) ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3782
SELECT + 69 + + ( - ( - COUNT ( * ) ) ) AS col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3783
SELECT ALL NULLIF ( + 19, NULLIF ( ( - COALESCE ( 24, 90 ) ), CAST( 37 AS SIGNED ) ) / 12 ) + 30 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL NULLIF ( + 19, NULLIF ( ( - COALESCE ( 24, 90 ) ), CAST ( 37 AS INTEGER ) ) / 12 ) + 30 AS col2
----
49

query I rowsort
SELECT DISTINCT 43 * - 28 AS col0
----
-1204

query I rowsort
SELECT - + 68 + 56 AS col2
----
-12

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

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

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

query I rowsort
SELECT ALL + 8 + + 4
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT + COUNT( * ) + + ( + + COALESCE ( - 29, 27 * - 12 ) ) * - 72
----
2089

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT + COUNT ( * ) + + ( + + COALESCE ( - 29, 27 * - 12 ) ) * - 72
----
2089

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ALL - 83 * - 3 * + + MAX( ALL + 49 ) - 98 * 66
----
5733

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL - 83 * - 3 * + + MAX ( ALL + 49 ) - 98 * 66
----
5733

query I rowsort
SELECT ALL 68 - 27
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT + 35 * - - 51 * - - COUNT( * ) * - + ( + 71 ) * NULLIF ( 73, + MIN( ALL 88 ) - 38 ) + + 49
----
-9251606

skipif mysql # not compatible
query I rowsort label-3792
SELECT + 35 * - - 51 * - - COUNT ( * ) * - + ( + 71 ) * NULLIF ( 73, + MIN ( ALL 88 ) - 38 ) + + 49
----
-9251606

query I rowsort
SELECT - 97 * + 33 + 7
----
-3194

query II rowsort
SELECT DISTINCT + 98 * 26 AS col2, + 83 AS col2
----
2548
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT ALL - COALESCE ( ( - CASE - - 97 WHEN 95 / + 65 THEN + MAX( 29 ) ELSE - 31 + - 29 END ), - MIN( ALL 43 ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL - COALESCE ( ( - CASE - - 97 WHEN 95 / + 65 THEN + MAX ( 29 ) ELSE - 31 + - 29 END ), - MIN ( ALL 43 ) ) AS col1
----
-60

query I rowsort
SELECT 2 + - - 97 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT 1 * - MIN( DISTINCT + 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3797
SELECT 1 * - MIN ( DISTINCT + 35 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ALL - COUNT( * ) + + CASE - + NULLIF ( 1, NULLIF ( COUNT( * ), 20 ) + 57 ) WHEN 11 - + 76 THEN 2 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL - COUNT ( * ) + + CASE - + NULLIF ( 1, NULLIF ( COUNT ( * ), 20 ) + 57 ) WHEN 11 - + 76 THEN 2 END col1
----
NULL

query I rowsort
SELECT 79 + + 0 col1
----
79

query I rowsort
SELECT DISTINCT - + 38 * - + 92
----
3496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3801
SELECT ALL + + CASE 34 WHEN - + 51 + + 6 + 41 * 45 THEN + 89 + 18 WHEN + 92 THEN 78 / - AVG ( - 24 ) - + 54 WHEN - CASE - 97 WHEN + CAST( 65 AS SIGNED ) THEN NULL WHEN CASE WHEN ( 85 ) IN ( CAST( 97 AS SIGNED ) * + 59 ) THEN - 1 END THEN NULL ELSE - 29 END THEN COUNT( * ) ELSE NULL END + - COALESCE ( 41, COUNT( * ) + + COUNT( * ) ) * ( + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL + + CASE 34 WHEN - + 51 + + 6 + 41 * 45 THEN + 89 + 18 WHEN + 92 THEN 78 / - AVG ( - 24 ) - + 54 WHEN - CASE - 97 WHEN + CAST ( 65 AS INTEGER ) THEN NULL WHEN CASE WHEN ( 85 ) IN ( CAST ( 97 AS INTEGER ) * + 59 ) THEN - 1 END THEN NULL ELSE - 29 END THEN COUNT ( * ) ELSE NULL END + - COALESCE ( 41, COUNT ( * ) + + COUNT ( * ) ) * ( + 93 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3802
SELECT + 40 + - + CAST( NULL AS SIGNED ) * - 65 * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT + 40 + - + CAST ( NULL AS INTEGER ) * - 65 * + 92
----
NULL

query I rowsort
SELECT ALL + 53 + 41
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3804
SELECT ALL 83 + + ( - - MIN( DISTINCT 40 ) ) + - COUNT( * ) DIV 71 DIV + COUNT( * ) AS col2
----
123

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL 83 + + ( - - MIN ( DISTINCT 40 ) ) + - COUNT ( * ) / 71 / + COUNT ( * ) AS col2
----
123

query I rowsort
SELECT DISTINCT + - 46 * + ( 99 ) col1
----
-4554

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL + - 96 + + 68 - + 86 * - + 44 + + 66 * COUNT( * ) AS col0
----
3822

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL + - 96 + + 68 - + 86 * - + 44 + + 66 * COUNT ( * ) AS col0
----
3822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3807
SELECT - CAST( + + ( + COUNT( * ) ) AS SIGNED ) + - 88
----
-89

skipif mysql # not compatible
query I rowsort label-3807
SELECT - CAST ( + + ( + COUNT ( * ) ) AS INTEGER ) + - 88
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT NULLIF ( + COUNT( * ), + 88 + - 43 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3808
SELECT NULLIF ( + COUNT ( * ), + 88 + - 43 ) AS col2
----
1

query I rowsort
SELECT 41 + + - 42 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT ALL MAX( ALL - 77 ) + + + 83
----
6

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL MAX ( ALL - 77 ) + + + 83
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT ALL + 79 DIV 54 * - 22 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + 79 / 54 * - 22 AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3812
SELECT - 56 * + + 29 AS col0, CASE 0 WHEN CAST( NULL AS SIGNED ) + + ( - 7 + NULLIF ( - 45, COALESCE ( - COUNT( * ), 46 - 28 ) ) ) THEN 56 / COUNT( * ) END + 52 AS col2
----
-1624
NULL

skipif mysql # not compatible
query II rowsort label-3812
SELECT - 56 * + + 29 AS col0, CASE 0 WHEN CAST ( NULL AS INTEGER ) + + ( - 7 + NULLIF ( - 45, COALESCE ( - COUNT ( * ), 46 - 28 ) ) ) THEN 56 / COUNT ( * ) END + 52 AS col2
----
-1624
NULL

query I rowsort
SELECT DISTINCT - ( + - ( 28 ) ) * 41 col2
----
1148

query I rowsort
SELECT DISTINCT + 34 - + 30 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT ALL - + SUM( DISTINCT - 67 ) - - 15
----
82

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL - + SUM ( DISTINCT - 67 ) - - 15
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT DISTINCT 61 * + 67 * - - 90 + ( MAX( ALL 68 ) ) col2
----
367898

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT 61 * + 67 * - - 90 + ( MAX ( ALL 68 ) ) col2
----
367898

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT + COUNT( * ) * + 97 + + 8 * - 10 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-3817
SELECT + COUNT ( * ) * + 97 + + 8 * - 10 AS col0
----
17

query II rowsort
SELECT ALL - 15, + 82 + - + ( + 4 ) AS col0
----
-15
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3819
SELECT + 93 DIV + 87 + 90
----
91

skipif mysql # not compatible
query I rowsort label-3819
SELECT + 93 / + 87 + 90
----
91

query I rowsort
SELECT ALL 94 - + - 71
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT COUNT( ALL 76 ) * - 78
----
-78

skipif mysql # not compatible
query I rowsort label-3821
SELECT COUNT ( ALL 76 ) * - 78
----
-78

query I rowsort
SELECT ALL - 39 * + 22
----
-858

query I rowsort
SELECT + 49 * + COALESCE ( 88, + 24 + + - 26 * 14, + 40 * 74 ) - 36
----
4276

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT 85 * + + MIN( + + 69 ) + 71
----
5936

skipif mysql # not compatible
query I rowsort label-3824
SELECT 85 * + + MIN ( + + 69 ) + 71
----
5936

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT 11 DIV 12
----
0

skipif mysql # not compatible
query I rowsort label-3825
SELECT 11 / 12
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3826
SELECT CASE - ( + 46 ) WHEN CAST( + + COALESCE ( + 39, - 72 + - 26, + COUNT( * ) ) AS DECIMAL ) THEN NULL WHEN ( 93 ) THEN 80 * + 3 END * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT CASE - ( + 46 ) WHEN CAST ( + + COALESCE ( + 39, - 72 + - 26, + COUNT ( * ) ) AS REAL ) THEN NULL WHEN ( 93 ) THEN 80 * + 3 END * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3827
SELECT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * 89 + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3827
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * 89 + 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT - ( + + MAX( ALL + - CAST( NULL AS SIGNED ) ) ) * - - AVG ( - + CAST( 89 AS SIGNED ) ) - ( + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT - ( + + MAX ( ALL + - CAST ( NULL AS INTEGER ) ) ) * - - AVG ( - + CAST ( 89 AS INTEGER ) ) - ( + 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3829
SELECT DISTINCT 30 AS col2, 69 * - - 9 * + NULLIF ( + 32, 72 * 1 + + COUNT( * ) ) AS col0
----
30
19872

skipif mysql # not compatible
query II rowsort label-3829
SELECT DISTINCT 30 AS col2, 69 * - - 9 * + NULLIF ( + 32, 72 * 1 + + COUNT ( * ) ) AS col0
----
30
19872

query I rowsort
SELECT DISTINCT 50 + + 10
----
60

query II rowsort
SELECT ALL - ( - 43 ) + - + 69 AS col1, - 17 * 24 AS col0
----
-26
-408

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3833
SELECT + COUNT( * ) DIV 53 + - + 92 + - 27 * + - MIN( ALL 23 )
----
529

skipif mysql # not compatible
query I rowsort label-3833
SELECT + COUNT ( * ) / 53 + - + 92 + - 27 * + - MIN ( ALL 23 )
----
529

query I rowsort
SELECT DISTINCT + 1 + + 9 + + - 46 AS col2
----
-36

query II rowsort
SELECT - 49 AS col1, 85 AS col1
----
-49
85

query I rowsort
SELECT ALL - - 44 + 89 AS col0
----
133

query I rowsort
SELECT 74 + ( + ( - 38 ) ) + + + 84 AS col1
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3838
SELECT + CAST( + + MAX( ALL 41 ) AS SIGNED ) * 88
----
3608

skipif mysql # not compatible
query I rowsort label-3838
SELECT + CAST ( + + MAX ( ALL 41 ) AS INTEGER ) * 88
----
3608

onlyif mysql # aggregate syntax: 
query II rowsort label-3839
SELECT 97 AS col1, 53 + + + 12 + + SUM( DISTINCT + 8 )
----
97
73

skipif mysql # not compatible
query II rowsort label-3839
SELECT 97 AS col1, 53 + + + 12 + + SUM ( DISTINCT + 8 )
----
97
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT - 4 + + - NULLIF ( - - 95, - + 65 * + 31 * + COUNT( * ) ) + + 99
----
0

skipif mysql # not compatible
query I rowsort label-3840
SELECT - 4 + + - NULLIF ( - - 95, - + 65 * + 31 * + COUNT ( * ) ) + + 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3841
SELECT + 49 col2, 48 / - CAST( NULL AS SIGNED ) AS col0
----
49
NULL

skipif mysql # not compatible
query II rowsort label-3841
SELECT + 49 col2, 48 / - CAST ( NULL AS INTEGER ) AS col0
----
49
NULL

query I rowsort
SELECT - COALESCE ( + 73, 55 ) + - - 69 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT - 87 * + - ( + 2 ) * + - SUM( + + 80 ) AS col1
----
-13920

skipif mysql # not compatible
query I rowsort label-3843
SELECT - 87 * + - ( + 2 ) * + - SUM ( + + 80 ) AS col1
----
-13920

query I rowsort
SELECT - 31 + + 75 AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3845
SELECT ALL - 55, + 56 DIV - SUM( ALL + - 92 ) AS col1
----
-55
0

skipif mysql # not compatible
query II rowsort label-3845
SELECT ALL - 55, + 56 / - SUM ( ALL + - 92 ) AS col1
----
-55
0

query I rowsort
SELECT DISTINCT + + 2 - + 60 * + 94
----
-5638

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT COALESCE ( + - COUNT( * ), + 93, + 50 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3847
SELECT COALESCE ( + - COUNT ( * ), + 93, + 50 ) AS col2
----
-1

query I rowsort
SELECT ALL + - 68 * 71
----
-4828

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT ALL + 5 - + COUNT( ALL + - 72 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL + 5 - + COUNT ( ALL + - 72 ) AS col2
----
4

query I rowsort
SELECT ALL NULLIF ( - 45, + 34 + 91 ) AS col0
----
-45

query I rowsort
SELECT - + 36 + + + 24 + + 27 * - 33 * + 15 * - 95
----
1269663

query I rowsort
SELECT ALL 6 - - 65 AS col0
----
71

query II rowsort
SELECT + 90 AS col1, 7 * + 10 + + - 81
----
90
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT - - ( - + 36 ) + - COUNT( * ) + + + 44 + - 32 + + ( 37 - 93 ) * 60 * - 29 AS col2
----
97415

skipif mysql # not compatible
query I rowsort label-3854
SELECT - - ( - + 36 ) + - COUNT ( * ) + + + 44 + - 32 + + ( 37 - 93 ) * 60 * - 29 AS col2
----
97415

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT - 20 + 69 * - - SUM( ALL 99 ) + + 51
----
6862

skipif mysql # not compatible
query I rowsort label-3855
SELECT - 20 + 69 * - - SUM ( ALL 99 ) + + 51
----
6862

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT - 90 * 48 + - + CASE - + 80 WHEN 58 THEN + MIN( ALL + 3 ) END + ( ( 94 ) + 77 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3856
SELECT - 90 * 48 + - + CASE - + 80 WHEN 58 THEN + MIN ( ALL + 3 ) END + ( ( 94 ) + 77 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT - 80 * 0 + + CASE + MAX( - 90 ) WHEN 0 THEN NULL WHEN ( 64 ) THEN 61 + 31 * NULLIF ( 18, - 53 ) WHEN - 57 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT - 80 * 0 + + CASE + MAX ( - 90 ) WHEN 0 THEN NULL WHEN ( 64 ) THEN 61 + 31 * NULLIF ( 18, - 53 ) WHEN - 57 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3859
SELECT + 72 DIV + + 33 - + - ( - + ( + - 90 ) ) * 2 AS col2
----
182

skipif mysql # not compatible
query I rowsort label-3859
SELECT + 72 / + + 33 - + - ( - + ( + - 90 ) ) * 2 AS col2
----
182

onlyif mysql # aggregate syntax: 
query II rowsort label-3860
SELECT ALL + 1 AS col0, + 87 * COUNT( * ) AS col2
----
1
87

skipif mysql # not compatible
query II rowsort label-3860
SELECT ALL + 1 AS col0, + 87 * COUNT ( * ) AS col2
----
1
87

query II rowsort
SELECT DISTINCT + ( - 40 ) AS col0, 66 * + 1 AS col2
----
-40
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3862
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), - + 4 * + 66 ) * COUNT( * ) AS col1
----
-264

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), - + 4 * + 66 ) * COUNT ( * ) AS col1
----
-264

query I rowsort
SELECT - 52 + + + 45
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT ALL - 80 DIV + + 49
----
-1

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL - 80 / + + 49
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3865
SELECT DISTINCT + NULLIF ( - 79, - ( - ( - CAST( NULL AS DECIMAL ) ) ) ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT + NULLIF ( - 79, - ( - ( - CAST ( NULL AS REAL ) ) ) ) AS col1
----
-79

query I rowsort
SELECT + 46 * COALESCE ( + - NULLIF ( - 75, + 29 ), + + ( 85 ) ) AS col2
----
3450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3867
SELECT ALL 32 * - 3 + - + 53 + 91 + - CAST( NULL AS SIGNED ) + 7 * COUNT( * ) * 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL 32 * - 3 + - + 53 + 91 + - CAST ( NULL AS INTEGER ) + 7 * COUNT ( * ) * 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ALL 1 * - - MIN( + + 35 ) + - 19 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL 1 * - - MIN ( + + 35 ) + - 19 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT NULLIF ( - COALESCE ( + COUNT( * ), - 44 * 69, + 86 * - ( - MIN( DISTINCT 29 ) ), - 67, 5 + 98 ), COUNT( * ) * + COUNT( * ) + + 11 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3869
SELECT NULLIF ( - COALESCE ( + COUNT ( * ), - 44 * 69, + 86 * - ( - MIN ( DISTINCT 29 ) ), - 67, 5 + 98 ), COUNT ( * ) * + COUNT ( * ) + + 11 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT + NULLIF ( - COALESCE ( - 58, 8, COUNT( * ) ), + - 32 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-3870
SELECT + NULLIF ( - COALESCE ( - 58, 8, COUNT ( * ) ), + - 32 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT 8 * - MIN( ALL + + 61 ) * - 73 * - 31 + COUNT( * ) + + 95 AS col0
----
-1104248

skipif mysql # not compatible
query I rowsort label-3871
SELECT 8 * - MIN ( ALL + + 61 ) * - 73 * - 31 + COUNT ( * ) + + 95 AS col0
----
-1104248

query I rowsort
SELECT COALESCE ( - 91, + 47 + - 59, - 57 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3873
SELECT - 32 / - CAST( NULL AS SIGNED ) + 48 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT - 32 / - CAST ( NULL AS INTEGER ) + 48 col2
----
NULL

query I rowsort
SELECT - ( + - 73 ) * 86 * 58
----
364124

query I rowsort
SELECT + 16 * - ( - 90 ) * + ( + + 25 )
----
36000

query I rowsort
SELECT + 74 + + + NULLIF ( + 91, - 98 * - 84 ) AS col2
----
165

onlyif mysql # aggregate syntax: 
query II rowsort label-3877
SELECT + COUNT( * ), 48 - - 11 * - - COUNT( * ) * + COUNT( - ( + 41 ) ) * 88 + - ( - COUNT( * ) ) AS col1
----
1
1017

skipif mysql # not compatible
query II rowsort label-3877
SELECT + COUNT ( * ), 48 - - 11 * - - COUNT ( * ) * + COUNT ( - ( + 41 ) ) * 88 + - ( - COUNT ( * ) ) AS col1
----
1
1017

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL + 43 * - 70 + + 49 + - COUNT( * ) + + - 65 AS col1
----
-3027

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL + 43 * - 70 + + 49 + - COUNT ( * ) + + - 65 AS col1
----
-3027

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT DISTINCT 12 * + + SUM( + + 39 ) + ( - 72 ) AS col2
----
396

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT 12 * + + SUM ( + + 39 ) + ( - 72 ) AS col2
----
396

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

skipif mysql # not compatible
query I rowsort label-3880
SELECT - 6 * + 16 + + COUNT ( * ) AS col0
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT + 75 * + ( MIN( DISTINCT + - 37 ) ) AS col2
----
-2775

skipif mysql # not compatible
query I rowsort label-3882
SELECT + 75 * + ( MIN ( DISTINCT + - 37 ) ) AS col2
----
-2775

query II rowsort
SELECT 12, + 76 AS col2
----
12
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT - + 75 + - 65 + + NULLIF ( - - 44, 67 + - CASE - 39 WHEN - COUNT( * ) THEN 91 / 7 + 57 / 32 ELSE + 38 + + COUNT( * ) END * + 58 )
----
-96

skipif mysql # not compatible
query I rowsort label-3884
SELECT - + 75 + - 65 + + NULLIF ( - - 44, 67 + - CASE - 39 WHEN - COUNT ( * ) THEN 91 / 7 + 57 / 32 ELSE + 38 + + COUNT ( * ) END * + 58 )
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT DISTINCT - 70 + + 35 + - - 0 + + 13 DIV - 88 * + + 42 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT - 70 + + 35 + - - 0 + + 13 / - 88 * + + 42 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL 32 * - NULLIF ( + + 91, 17 / 96 / - + COUNT( * ) )
----
-2912

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL 32 * - NULLIF ( + + 91, 17 / 96 / - + COUNT ( * ) )
----
-2912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3887
SELECT CAST( ( - COUNT( * ) ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3887
SELECT CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT - - NULLIF ( - 27, + 67 + - - COUNT( * ) - 48 ) + COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3888
SELECT - - NULLIF ( - 27, + 67 + - - COUNT ( * ) - 48 ) + COUNT ( * ) AS col1
----
-26

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

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

query II rowsort
SELECT DISTINCT 67, + CASE + + 67 WHEN + 72 THEN NULL WHEN + 68 THEN + + ( - 79 ) ELSE NULL END * 8 AS col1
----
67
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3891
SELECT DISTINCT - - 3 DIV - 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT - - 3 / - 17 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3892
SELECT - 12, + 87 + CAST( NULL AS SIGNED ) AS col2
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-3892
SELECT - 12, + 87 + CAST ( NULL AS INTEGER ) AS col2
----
-12
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3893
SELECT + MIN( - CAST( 76 AS SIGNED ) ) - - 92
----
16

skipif mysql # not compatible
query I rowsort label-3893
SELECT + MIN ( - CAST ( 76 AS INTEGER ) ) - - 92
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3894
SELECT - COUNT( + 97 ) * + 49 DIV + SUM( - COALESCE ( - - 84, 61 - 77 ) ) + - 74
----
-74

skipif mysql # not compatible
query I rowsort label-3894
SELECT - COUNT ( + 97 ) * + 49 / + SUM ( - COALESCE ( - - 84, 61 - 77 ) ) + - 74
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3895
SELECT ALL ( + + MAX( ALL + 11 ) ) DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL ( + + MAX ( ALL + 11 ) ) / 41
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3896
SELECT - + 96 AS col2, + 47 DIV 69 + - - 40
----
-96
40

skipif mysql # not compatible
query II rowsort label-3896
SELECT - + 96 AS col2, + 47 / 69 + - - 40
----
-96
40

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

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

query I rowsort
SELECT - - 99 + 50 AS col0
----
149

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3901
SELECT DISTINCT SUM( 28 ) DIV - 90 + + 92
----
92

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT SUM ( 28 ) / - 90 + + 92
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3902
SELECT ALL 28 DIV 43 + 52
----
52

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL 28 / 43 + 52
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT CAST( NULL AS SIGNED ) / - 49 * 1 + + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT CAST ( NULL AS INTEGER ) / - 49 * 1 + + + 14
----
NULL

query I rowsort
SELECT + NULLIF ( + 25, + 40 + + - CASE - 2 WHEN + 74 THEN + ( + 89 ) * + 19 END ) col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3905
SELECT DISTINCT + COUNT( * ) DIV + 68 + + ( + - 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + COUNT ( * ) / + 68 + + ( + - 3 ) AS col0
----
-3

query I rowsort
SELECT - ( + 61 ) + - - 42
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3907
SELECT ALL + 99 DIV 65 + 27 + - - COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL + 99 / 65 + 27 + - - COUNT ( * ) AS col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3908
SELECT ALL + 15 DIV - 25 + - 65 * + 21 * - 94 AS col1
----
128310

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL + 15 / - 25 + - 65 * + 21 * - 94 AS col1
----
128310

onlyif mysql # aggregate syntax: 
query II rowsort label-3909
SELECT - 63 * + + 86 * + + 63, 94 * - - COUNT( * ) AS col0
----
-341334
94

skipif mysql # not compatible
query II rowsort label-3909
SELECT - 63 * + + 86 * + + 63, 94 * - - COUNT ( * ) AS col0
----
-341334
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT - 2 * - MIN( - 18 ) * + - 35 * - 4 * + 44 - - 50 AS col2
----
-221710

skipif mysql # not compatible
query I rowsort label-3910
SELECT - 2 * - MIN ( - 18 ) * + - 35 * - 4 * + 44 - - 50 AS col2
----
-221710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3911
SELECT + CASE + - 35 WHEN COUNT( * ) * + 47 + - + 87 / - 4 THEN NULL ELSE - 91 + CAST( 32 AS SIGNED ) END AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3911
SELECT + CASE + - 35 WHEN COUNT ( * ) * + 47 + - + 87 / - 4 THEN NULL ELSE - 91 + CAST ( 32 AS INTEGER ) END AS col2
----
-59

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

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL + COUNT ( * ) * 72 + + 31 AS col0
----
103

query I rowsort
SELECT + NULLIF ( 18, 11 ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT - 93 * 67 + MIN( DISTINCT - 45 )
----
-6276

skipif mysql # not compatible
query I rowsort label-3914
SELECT - 93 * 67 + MIN ( DISTINCT - 45 )
----
-6276

query I rowsort
SELECT + 42 * + 25 col1
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT ALL - + NULLIF ( + 31, + MIN( + 81 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL - + NULLIF ( + 31, + MIN ( + 81 ) )
----
-31

query II rowsort
SELECT + + ( + 27 ), 48 col2
----
27
48

query II rowsort
SELECT - 27 + 76, + 23 AS col1
----
49
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3919
SELECT ALL 66 * ( - 28 ) DIV + MIN( DISTINCT 95 ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL 66 * ( - 28 ) / + MIN ( DISTINCT 95 ) col0
----
-19

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

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

query I rowsort
SELECT + 58 - - 3 AS col1
----
61

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3923
SELECT + NULLIF ( + 89, COALESCE ( - + 76, - CAST( + 74 AS SIGNED ) ) ) + + 41 + COALESCE ( CAST( NULL AS SIGNED ) - ( + 17 ), 18 * - 93 + - MIN( ALL - 17 ), + 6 * 82, + ( 76 ) DIV 16 )
----
-1527

skipif mysql # not compatible
query I rowsort label-3923
SELECT + NULLIF ( + 89, COALESCE ( - + 76, - CAST ( + 74 AS INTEGER ) ) ) + + 41 + COALESCE ( CAST ( NULL AS INTEGER ) - ( + 17 ), 18 * - 93 + - MIN ( ALL - 17 ), + 6 * 82, + ( 76 ) / 16 )
----
-1527

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

skipif mysql # not compatible
query I rowsort label-3924
SELECT + COUNT ( * ) + COUNT ( DISTINCT 37 ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3925
SELECT DISTINCT + CASE + 9 WHEN - + ( - - 30 ) THEN - - 49 WHEN - 8 * 86 THEN 73 WHEN - COUNT( * ) THEN + 24 ELSE - 45 END * ( 28 * 65 + + CAST( - 13 + - CASE 56 WHEN COALESCE ( + 67, SUM( DISTINCT - 94 ) ) THEN NULL ELSE CAST( 18 AS SIGNED ) END AS SIGNED ) )
----
-80505

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT + CASE + 9 WHEN - + ( - - 30 ) THEN - - 49 WHEN - 8 * 86 THEN 73 WHEN - COUNT ( * ) THEN + 24 ELSE - 45 END * ( 28 * 65 + + CAST ( - 13 + - CASE 56 WHEN COALESCE ( + 67, SUM ( DISTINCT - 94 ) ) THEN NULL ELSE CAST ( 18 AS INTEGER ) END AS INTEGER ) )
----
-80505

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3926
SELECT CAST( NULL AS SIGNED ) * 58, 95 AS col1
----
NULL
95

skipif mysql # not compatible
query II rowsort label-3926
SELECT CAST ( NULL AS INTEGER ) * 58, 95 AS col1
----
NULL
95

query I rowsort
SELECT 75 + ( - 96 ) AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3928
SELECT CAST( + COUNT( * ) AS SIGNED ) + - - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3928
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + - - COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL - 26 + COALESCE ( + + 16, + CASE + 92 WHEN 55 THEN + - 42 END * MIN( ALL + 20 ) ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL - 26 + COALESCE ( + + 16, + CASE + 92 WHEN 55 THEN + - 42 END * MIN ( ALL + 20 ) ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT MAX( ALL ( + 22 ) ) + - COUNT( - - ( + ( + + 81 ) ) ) + + - 14
----
7

skipif mysql # not compatible
query I rowsort label-3930
SELECT MAX ( ALL ( + 22 ) ) + - COUNT ( - - ( + ( + + 81 ) ) ) + + - 14
----
7

query I rowsort
SELECT 5 + 24
----
29

query II rowsort
SELECT 74 AS col1, + 99 AS col1
----
74
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT 21 + - 79 * + - COUNT( - ( + - 11 ) ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-3933
SELECT 21 + - 79 * + - COUNT ( - ( + - 11 ) ) AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT 95 * - - 66 * - + COUNT( * ) col0
----
-6270

skipif mysql # not compatible
query I rowsort label-3934
SELECT 95 * - - 66 * - + COUNT ( * ) col0
----
-6270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT ALL 75 + CASE + 19 WHEN ( + 41 ) * 79 * 52 THEN NULL ELSE + 15 END / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL 75 + CASE + 19 WHEN ( + 41 ) * 79 * 52 THEN NULL ELSE + 15 END / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3936
SELECT - COUNT( * ) DIV + + 50 + + COUNT( - + 77 ) + - 83 * + 53 + 54 col1
----
-4344

skipif mysql # not compatible
query I rowsort label-3936
SELECT - COUNT ( * ) / + + 50 + + COUNT ( - + 77 ) + - 83 * + 53 + 54 col1
----
-4344

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT DISTINCT 27 * - - COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT 27 * - - COUNT ( * ) AS col1
----
27

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

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

query I rowsort
SELECT ALL + 91 - 96 * - - 85 AS col0
----
-8069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3940
SELECT COUNT( * ) * + 26 * + - CAST( NULL AS SIGNED ) * - + 92 col2, + 81
----
NULL
81

skipif mysql # not compatible
query II rowsort label-3940
SELECT COUNT ( * ) * + 26 * + - CAST ( NULL AS INTEGER ) * - + 92 col2, + 81
----
NULL
81

query I rowsort
SELECT 46 * 19
----
874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3942
SELECT 82 DIV 21 + + - COUNT( + - 19 )
----
2

skipif mysql # not compatible
query I rowsort label-3942
SELECT 82 / 21 + + - COUNT ( + - 19 )
----
2

query I rowsort
SELECT - 84 * + - 7 AS col2
----
588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3944
SELECT DISTINCT - - COUNT( ALL + 61 ) DIV 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT - - COUNT ( ALL + 61 ) / 76 AS col2
----
0

query II rowsort
SELECT 41 + - 52 + 20, + 58 * - 74 AS col2
----
9
-4292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3946
SELECT ALL 52, CASE - COUNT( * ) WHEN + 48 + - 60 THEN SUM( ALL + + CAST( NULL AS SIGNED ) ) / + 15 * + 15 WHEN + 39 * - 94 + - CAST( NULL AS SIGNED ) THEN NULL ELSE 2 END AS col0
----
52
2

skipif mysql # not compatible
query II rowsort label-3946
SELECT ALL 52, CASE - COUNT ( * ) WHEN + 48 + - 60 THEN SUM ( ALL + + CAST ( NULL AS INTEGER ) ) / + 15 * + 15 WHEN + 39 * - 94 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE 2 END AS col0
----
52
2

query I rowsort
SELECT + 64 * + 87
----
5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3948
SELECT - CAST( + CASE 60 WHEN + - 86 THEN 38 * + AVG ( DISTINCT - 49 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT - CAST ( + CASE 60 WHEN + - 86 THEN 38 * + AVG ( DISTINCT - 49 ) END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3949
SELECT 89 - + 10 - + + 7 + COUNT( * ) - + 69 * + - NULLIF ( CAST( + 24 AS SIGNED ), 26 * + 7 ) - 54 * ( + COUNT( * ) )
----
1675

skipif mysql # not compatible
query I rowsort label-3949
SELECT 89 - + 10 - + + 7 + COUNT ( * ) - + 69 * + - NULLIF ( CAST ( + 24 AS INTEGER ), 26 * + 7 ) - 54 * ( + COUNT ( * ) )
----
1675

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT + 47 DIV + + 65 - + + 41 + + 19 col0
----
-22

skipif mysql # not compatible
query I rowsort label-3950
SELECT + 47 / + + 65 - + + 41 + + 19 col0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3951
SELECT - MIN( ALL - + 7 ) + ( - - 15 ) + - 24 * - 12 AS col2, - 33 * + 77 * 55 - ( - COUNT( * ) ) DIV + 88
----
310
-139755

skipif mysql # not compatible
query II rowsort label-3951
SELECT - MIN ( ALL - + 7 ) + ( - - 15 ) + - 24 * - 12 AS col2, - 33 * + 77 * 55 - ( - COUNT ( * ) ) / + 88
----
310
-139755

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3952
SELECT 82 * - 42 + 18 + + 90 + + 56 * + + 50 - - COUNT( * ) DIV + SUM( ALL - 94 ) + + 88
----
-448

skipif mysql # not compatible
query I rowsort label-3952
SELECT 82 * - 42 + 18 + + 90 + + 56 * + + 50 - - COUNT ( * ) / + SUM ( ALL - 94 ) + + 88
----
-448

query II rowsort
SELECT ALL + 53, 88 AS col1
----
53
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3954
SELECT - 31 AS col1, - 48 + + 68 * - - 17 * COUNT( * ) * - - 73 + 71 - + CAST( 90 AS SIGNED ) DIV - 46 AS col1
----
-31
84412

skipif mysql # not compatible
query II rowsort label-3954
SELECT - 31 AS col1, - 48 + + 68 * - - 17 * COUNT ( * ) * - - 73 + 71 - + CAST ( 90 AS INTEGER ) / - 46 AS col1
----
-31
84412

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT - MIN( + 92 ) * + 66 AS col0
----
-6072

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT - MIN ( + 92 ) * + 66 AS col0
----
-6072

query I rowsort
SELECT ALL + + 78 + + + 5
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ALL COALESCE ( - - NULLIF ( + ( 75 ), - ( 93 ) + + 40 + + - 31 + + 75 * 86 ), - MIN( 40 ) + + 59 ) + + 32
----
107

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL COALESCE ( - - NULLIF ( + ( 75 ), - ( 93 ) + + 40 + + - 31 + + 75 * 86 ), - MIN ( 40 ) + + 59 ) + + 32
----
107

query I rowsort
SELECT ALL 35 + + 10 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT COUNT( * ) * + ( + CASE + COUNT( * ) WHEN + 24 THEN + + COALESCE ( + 10, + 45, - 4 + 98 ) WHEN 22 THEN 89 ELSE + 28 + 16 END ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3959
SELECT COUNT ( * ) * + ( + CASE + COUNT ( * ) WHEN + 24 THEN + + COALESCE ( + 10, + 45, - 4 + 98 ) WHEN 22 THEN 89 ELSE + 28 + 16 END ) AS col1
----
44

query I rowsort
SELECT 76 * + 54 * - - 18
----
73872

query I rowsort
SELECT ALL 29 * + 72
----
2088

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT ALL MAX( - 9 ) + + 13
----
4

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL MAX ( - 9 ) + + 13
----
4

query I rowsort
SELECT ALL 93 * + 15
----
1395

query I rowsort
SELECT 11 - - + 23
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT + NULLIF ( + - 50, + 94 / - - MAX( DISTINCT 10 ) - COUNT( * ) )
----
-50

skipif mysql # not compatible
query I rowsort label-3967
SELECT + NULLIF ( + - 50, + 94 / - - MAX ( DISTINCT 10 ) - COUNT ( * ) )
----
-50

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3969
SELECT - COUNT( * ) DIV - CASE + + 87 WHEN + - COALESCE ( - + 16, MAX( 30 ) ) THEN + 85 + - 88 DIV + 94 ELSE 35 END col0
----
0

skipif mysql # not compatible
query I rowsort label-3969
SELECT - COUNT ( * ) / - CASE + + 87 WHEN + - COALESCE ( - + 16, MAX ( 30 ) ) THEN + 85 + - 88 / + 94 ELSE 35 END col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3970
SELECT ALL ( + + ( - ( + + 43 ) ) ) DIV + COALESCE ( - - ( - 58 ), - 88 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL ( + + ( - ( + + 43 ) ) ) / + COALESCE ( - - ( - 58 ), - 88 ) AS col1
----
0

query I rowsort
SELECT + 21 * - + 6 AS col2
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT + NULLIF ( + - 51, + 58 * 41 ) AS col2, 17 + - 34 * + COUNT( * )
----
-51
-17

skipif mysql # not compatible
query II rowsort label-3972
SELECT + NULLIF ( + - 51, + 58 * 41 ) AS col2, 17 + - 34 * + COUNT ( * )
----
-51
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT ALL 22 * + 30 - COUNT( * ) AS col1
----
659

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL 22 * + 30 - COUNT ( * ) AS col1
----
659

onlyif mysql # aggregate syntax: 
query II rowsort label-3974
SELECT + MIN( + + 78 ) * + COUNT( * ) * 7 AS col1, + 7 * - 89 + - 90 AS col1
----
546
-713

skipif mysql # not compatible
query II rowsort label-3974
SELECT + MIN ( + + 78 ) * + COUNT ( * ) * 7 AS col1, + 7 * - 89 + - 90 AS col1
----
546
-713

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL - 33 * MAX( ALL - 36 )
----
1188

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL - 33 * MAX ( ALL - 36 )
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT + COALESCE ( + CASE AVG ( ALL + - 3 ) WHEN + 33 - + 93 THEN - 7 * + 56 + + 58 + - 9 * MAX( ( - ( + 91 ) ) + + 45 ) WHEN ( 54 ) THEN NULL WHEN 24 THEN NULL END, MAX( ALL - 66 ), - 23 - 16 * - 25 )
----
-66

skipif mysql # not compatible
query I rowsort label-3976
SELECT + COALESCE ( + CASE AVG ( ALL + - 3 ) WHEN + 33 - + 93 THEN - 7 * + 56 + + 58 + - 9 * MAX ( ( - ( + 91 ) ) + + 45 ) WHEN ( 54 ) THEN NULL WHEN 24 THEN NULL END, MAX ( ALL - 66 ), - 23 - 16 * - 25 )
----
-66

query I rowsort
SELECT DISTINCT - 22 * - + 88 * ( + + 15 ) * 90 AS col0
----
2613600

query I rowsort
SELECT - + 94 + - - 29 AS col0
----
-65

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

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

query I rowsort
SELECT + 46 * - - 47 + 66 + - 17 AS col2
----
2211

query I rowsort
SELECT DISTINCT - 42 * + 91 + + 49
----
-3773

query I rowsort
SELECT - 45 - 88 AS col0
----
-133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3983
SELECT ALL + - 17 + + COUNT( * ) DIV + - 2
----
-17

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL + - 17 + + COUNT ( * ) / + - 2
----
-17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT DISTINCT + SUM( 73 ) + - ( SUM( 72 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT + SUM ( 73 ) + - ( SUM ( 72 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - CASE 18 WHEN + 89 THEN + - COUNT( * ) ELSE - 89 * - + 92 + - 18 + 75 * - 50 END
----
-4420

skipif mysql # not compatible
query I rowsort label-3986
SELECT - CASE 18 WHEN + 89 THEN + - COUNT ( * ) ELSE - 89 * - + 92 + - 18 + 75 * - 50 END
----
-4420

query II rowsort
SELECT - + 51 * - 94 AS col2, + 0 AS col1
----
4794
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL + - COUNT( * ) + + + ( + - 69 ) + + MAX( DISTINCT - 4 ) * COUNT( * ) - + 37 + + COUNT( * )
----
-110

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL + - COUNT ( * ) + + + ( + - 69 ) + + MAX ( DISTINCT - 4 ) * COUNT ( * ) - + 37 + + COUNT ( * )
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3989
SELECT - CAST( - 59 AS SIGNED ) AS col0, MIN( + - 85 ) AS col1
----
59
-85

skipif mysql # not compatible
query II rowsort label-3989
SELECT - CAST ( - 59 AS INTEGER ) AS col0, MIN ( + - 85 ) AS col1
----
59
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT - ( + COALESCE ( - 25, CASE - 37 WHEN + 8 THEN - - 97 ELSE + ( - + 7 ) END - - 28, COUNT( * ) * + 22 ) ) + - CASE 73 + 16 WHEN ( 90 ) + COALESCE ( COUNT( - 56 ) + 39 / COUNT( * ), 87 / 28 ) THEN - 6 ELSE 86 + 37 END
----
-98

skipif mysql # not compatible
query I rowsort label-3990
SELECT - ( + COALESCE ( - 25, CASE - 37 WHEN + 8 THEN - - 97 ELSE + ( - + 7 ) END - - 28, COUNT ( * ) * + 22 ) ) + - CASE 73 + 16 WHEN ( 90 ) + COALESCE ( COUNT ( - 56 ) + 39 / COUNT ( * ), 87 / 28 ) THEN - 6 ELSE 86 + 37 END
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT - 23 - + 39 + + + 32 + - COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3991
SELECT - 23 - + 39 + + + 32 + - COUNT ( * ) AS col1
----
-31

query I rowsort
SELECT + 99 * - 87 AS col2
----
-8613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3993
SELECT DISTINCT CASE COALESCE ( + - 44, - 0 - 80 + - NULLIF ( + - 83, - 35 ) / - CAST( NULL AS SIGNED ) + - + CAST( 48 AS DECIMAL ) / 59, + 43 ) WHEN 27 THEN - SUM( 86 ) + COUNT( * ) ELSE 99 END
----
99

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT CASE COALESCE ( + - 44, - 0 - 80 + - NULLIF ( + - 83, - 35 ) / - CAST ( NULL AS INTEGER ) + - + CAST ( 48 AS REAL ) / 59, + 43 ) WHEN 27 THEN - SUM ( 86 ) + COUNT ( * ) ELSE 99 END
----
99

query I rowsort
SELECT ALL + 63 * + - 18 * + 72 AS col1
----
-81648

query I rowsort
SELECT DISTINCT - 8 - + 47
----
-55

query I rowsort
SELECT + 40 + - 78 AS col0
----
-38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT + 16 + - 3 - + 96 * - 49 * - 39 + - COUNT( DISTINCT - 33 ) AS col1
----
-183444

skipif mysql # not compatible
query I rowsort label-3998
SELECT + 16 + - 3 - + 96 * - 49 * - 39 + - COUNT ( DISTINCT - 33 ) AS col1
----
-183444

query I rowsort
SELECT - 28 * - + 21
----
588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4000
SELECT + 33 * - - 9 * + + NULLIF ( COUNT( * ), - + CAST( NULL AS SIGNED ) ), - 93 * COUNT( * ) AS col0
----
297
-93

skipif mysql # not compatible
query II rowsort label-4000
SELECT + 33 * - - 9 * + + NULLIF ( COUNT ( * ), - + CAST ( NULL AS INTEGER ) ), - 93 * COUNT ( * ) AS col0
----
297
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), + - 89 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), + - 89 ) AS col2
----
NULL

query I rowsort
SELECT ALL ( - - 9 ) * - + 46
----
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT + MAX( DISTINCT + + 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4003
SELECT + MAX ( DISTINCT + + 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT + MAX( + 98 ) + + - 82 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4004
SELECT + MAX ( + 98 ) + + - 82 AS col1
----
16

query II rowsort
SELECT + 97 * + + ( 50 ) col1, 30 col1
----
4850
30

query I rowsort
SELECT DISTINCT + ( - 41 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL + COUNT( * ) * - + NULLIF ( - 92, CASE 1 WHEN + 36 / + 77 * 45 + NULLIF ( - 41, 24 * - 19 ) * + 80 THEN NULL ELSE COUNT( 35 ) + + 16 END * - 80 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + COUNT ( * ) * - + NULLIF ( - 92, CASE 1 WHEN + 36 / + 77 * 45 + NULLIF ( - 41, 24 * - 19 ) * + 80 THEN NULL ELSE COUNT ( 35 ) + + 16 END * - 80 ) col2
----
92

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

query I rowsort
SELECT + 75 * + 88 * 99
----
653400

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

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

query I rowsort
SELECT DISTINCT + CASE 15 WHEN + + 81 + 25 THEN + + 96 - - 84 WHEN + + 12 / - 44 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT - SUM( + 17 ) * - ( + 32 ) + + COUNT( * ) * + 44 AS col2
----
588

skipif mysql # not compatible
query I rowsort label-4012
SELECT - SUM ( + 17 ) * - ( + 32 ) + + COUNT ( * ) * + 44 AS col2
----
588

query II rowsort
SELECT ( ( - - 7 ) ) AS col0, + 37
----
7
37

query I rowsort
SELECT + 73 * 86 + + 18 + + - 66
----
6230

query I rowsort
SELECT DISTINCT 65 * - - 61 + + - 95 - - 76 col1
----
3946

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT + - 46 DIV + 37 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4016
SELECT + - 46 / + 37 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL + COUNT( * ) * + 14 * + 48 * ( + 17 ) + 33 * - 20 - 70
----
10694

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL + COUNT ( * ) * + 14 * + 48 * ( + 17 ) + 33 * - 20 - 70
----
10694

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL 15 * 89 + COUNT( * ) + + 80
----
1416

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL 15 * 89 + COUNT ( * ) + + 80
----
1416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4019
SELECT DISTINCT 36 * - COALESCE ( - + 95, - 6 * + 6 DIV + - 98 - + 27 + + - CASE + COUNT( * ) WHEN + + 44 THEN COUNT( * ) * ( + 92 * 37 ) + 75 END ) * + 98 + 39 * + ( - 43 ) AS col1
----
333483

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT 36 * - COALESCE ( - + 95, - 6 * + 6 / + - 98 - + 27 + + - CASE + COUNT ( * ) WHEN + + 44 THEN COUNT ( * ) * ( + 92 * 37 ) + 75 END ) * + 98 + 39 * + ( - 43 ) AS col1
----
333483

query II rowsort
SELECT ALL + - 35 AS col0, + 3 * - + 88 + + 91
----
-35
-173

query I rowsort
SELECT ALL + ( + 65 ) * - 34 + + 82
----
-2128

query I rowsort
SELECT ALL + ( 39 ) * + 49 - 96
----
1815

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT DISTINCT + COALESCE ( COUNT( * ), - 98 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT + COALESCE ( COUNT ( * ), - 98 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT + 57 * + 62 + ( COUNT( * ) ) * - - COUNT( DISTINCT - 28 ) + - 89
----
3446

skipif mysql # not compatible
query I rowsort label-4024
SELECT + 57 * + 62 + ( COUNT ( * ) ) * - - COUNT ( DISTINCT - 28 ) + - 89
----
3446

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4025
SELECT DISTINCT - CASE - + COUNT( * ) WHEN + + 30 * 91 * - 31 + 62 + + NULLIF ( 83, + - 51 + + COUNT( 20 ) ) * - 52 + + COUNT( * ) THEN - 24 * CASE + COUNT( * ) WHEN - 72 THEN - 36 + 29 WHEN + CAST( NULL AS DECIMAL ) + + COUNT( * ) THEN NULL ELSE NULL END END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT - CASE - + COUNT ( * ) WHEN + + 30 * 91 * - 31 + 62 + + NULLIF ( 83, + - 51 + + COUNT ( 20 ) ) * - 52 + + COUNT ( * ) THEN - 24 * CASE + COUNT ( * ) WHEN - 72 THEN - 36 + 29 WHEN + CAST ( NULL AS REAL ) + + COUNT ( * ) THEN NULL ELSE NULL END END * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL SUM( + 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL SUM ( + 44 ) AS col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4027
SELECT - + 14 + + - 33 - 42 DIV 95
----
-47

skipif mysql # not compatible
query I rowsort label-4027
SELECT - + 14 + + - 33 - 42 / 95
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT - + MIN( ALL + 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4028
SELECT - + MIN ( ALL + 9 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT COUNT( DISTINCT 32 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4029
SELECT COUNT ( DISTINCT 32 ) AS col2
----
1

query I rowsort
SELECT - 46 * + 6 AS col1
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL MIN( ALL 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL MIN ( ALL 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT DISTINCT NULLIF ( - 63, 88 / - + COUNT( 83 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT NULLIF ( - 63, 88 / - + COUNT ( 83 ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ALL CASE - 10 WHEN + 35 * + 75 + - 57 THEN NULL WHEN 26 * 96 + - 28 + + - 33 + + COUNT( * ) THEN 96 + ( 4 + + 66 / - 51 ) * - 38 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL CASE - 10 WHEN + 35 * + 75 + - 57 THEN NULL WHEN 26 * 96 + - 28 + + - 33 + + COUNT ( * ) THEN 96 + ( 4 + + 66 / - 51 ) * - 38 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT - 50, 66 AS col2
----
-50
66

query I rowsort
SELECT ALL + 59 - - + ( + 10 )
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4036
SELECT ALL - 4 / - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL - 4 / - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT + 10 * - NULLIF ( 60, - COUNT( * ) )
----
-600

skipif mysql # not compatible
query I rowsort label-4037
SELECT + 10 * - NULLIF ( 60, - COUNT ( * ) )
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT 1 - 35 + + + COUNT( * ) - + 46 + + + SUM( - - 48 ) * - 76 * + 63 AS col0
----
-229903

skipif mysql # not compatible
query I rowsort label-4038
SELECT 1 - 35 + + + COUNT ( * ) - + 46 + + + SUM ( - - 48 ) * - 76 * + 63 AS col0
----
-229903

onlyif mysql # DIV for integer division: 
query I rowsort label-4039
SELECT 36 DIV 18 DIV + 6
----
0

skipif mysql # not compatible
query I rowsort label-4039
SELECT 36 / 18 / + 6
----
0

query I rowsort
SELECT 46 * - 14
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT DISTINCT + COUNT( * ) * - ( + - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT + COUNT ( * ) * - ( + - 67 )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4042
SELECT ALL 17 col2, COUNT( ALL - 7 ) AS col0
----
17
1

skipif mysql # not compatible
query II rowsort label-4042
SELECT ALL 17 col2, COUNT ( ALL - 7 ) AS col0
----
17
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4043
SELECT 26 DIV - - SUM( - + 39 )
----
0

skipif mysql # not compatible
query I rowsort label-4043
SELECT 26 / - - SUM ( - + 39 )
----
0

query I rowsort
SELECT DISTINCT - 87 * - 5 * 82
----
35670

query II rowsort
SELECT 28 AS col1, + 47 col2
----
28
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4046
SELECT DISTINCT 74, CAST( NULL AS SIGNED ) AS col1
----
74
NULL

skipif mysql # not compatible
query II rowsort label-4046
SELECT DISTINCT 74, CAST ( NULL AS INTEGER ) AS col1
----
74
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4047
SELECT DISTINCT + COUNT( * ) + - NULLIF ( - 57, + - COUNT( * ) ) col2, + NULLIF ( + 89, - COALESCE ( AVG ( DISTINCT - + 60 ), + 49 ) )
----
58
89

skipif mysql # not compatible
query II rowsort label-4047
SELECT DISTINCT + COUNT ( * ) + - NULLIF ( - 57, + - COUNT ( * ) ) col2, + NULLIF ( + 89, - COALESCE ( AVG ( DISTINCT - + 60 ), + 49 ) )
----
58
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4048
SELECT ALL - COUNT( * ) AS col2, - 63
----
-1
-63

skipif mysql # not compatible
query II rowsort label-4048
SELECT ALL - COUNT ( * ) AS col2, - 63
----
-1
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4049
SELECT + ( + CAST( + 22 AS SIGNED ) )
----
22

skipif mysql # not compatible
query I rowsort label-4049
SELECT + ( + CAST ( + 22 AS INTEGER ) )
----
22

query I rowsort
SELECT 26 * 21
----
546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4051
SELECT + 44 + COUNT( * ) DIV + 42 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4051
SELECT + 44 + COUNT ( * ) / + 42 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT 86 * - + SUM( ALL + 27 ) + ( + - COUNT( DISTINCT 21 ) ) * + 25 + + 55 - + COUNT( * ) col2
----
-2293

skipif mysql # not compatible
query I rowsort label-4052
SELECT 86 * - + SUM ( ALL + 27 ) + ( + - COUNT ( DISTINCT 21 ) ) * + 25 + + 55 - + COUNT ( * ) col2
----
-2293

query I rowsort
SELECT + + ( + 88 ) col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4054
SELECT ALL + - 46 + + 1 + - + COUNT( * ) + + - CAST( NULL AS SIGNED ) + - 50 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL + - 46 + + 1 + - + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + - 50 col0
----
NULL

query I rowsort
SELECT ALL 5 + + + 6 * - + ( - + 29 ) - 68
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-4056
SELECT DISTINCT - + COUNT( * ) + - 17 col1, - 64
----
-18
-64

skipif mysql # not compatible
query II rowsort label-4056
SELECT DISTINCT - + COUNT ( * ) + - 17 col1, - 64
----
-18
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT DISTINCT - 56 + + MIN( ALL 99 )
----
43

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT - 56 + + MIN ( ALL 99 )
----
43

query I rowsort
SELECT 51 * + 70 + - ( + 63 ) + + - 3
----
3504

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL 63 * + ( - + COUNT( * ) ) * + SUM( ALL - + 9 )
----
567

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL 63 * + ( - + COUNT ( * ) ) * + SUM ( ALL - + 9 )
----
567

onlyif mysql # aggregate syntax: 
query II rowsort label-4060
SELECT DISTINCT - + COUNT( + 7 ) AS col2, + ( - - ( - 61 ) )
----
-1
-61

skipif mysql # not compatible
query II rowsort label-4060
SELECT DISTINCT - + COUNT ( + 7 ) AS col2, + ( - - ( - 61 ) )
----
-1
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4061
SELECT 75 + + CAST( - + 22 AS SIGNED ) - - + 4, 70 * 79 AS col1
----
57
5530

skipif mysql # not compatible
query II rowsort label-4061
SELECT 75 + + CAST ( - + 22 AS INTEGER ) - - + 4, 70 * 79 AS col1
----
57
5530

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT COUNT( * ) * 66 - + ( + 17 )
----
49

skipif mysql # not compatible
query I rowsort label-4062
SELECT COUNT ( * ) * 66 - + ( + 17 )
----
49

query I rowsort
SELECT DISTINCT 8 - 19 * - + 3
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4064
SELECT + + 67 col2, + COUNT( ALL + 73 ) * + 32 + 14 + 94 * + 48 + COUNT( * ) AS col2
----
67
4559

skipif mysql # not compatible
query II rowsort label-4064
SELECT + + 67 col2, + COUNT ( ALL + 73 ) * + 32 + 14 + 94 * + 48 + COUNT ( * ) AS col2
----
67
4559

query I rowsort
SELECT DISTINCT 35 - - 29
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT 5 * - ( COUNT( * ) )
----
-5

skipif mysql # not compatible
query I rowsort label-4066
SELECT 5 * - ( COUNT ( * ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT COUNT( * ) - + ( + 22 )
----
-21

skipif mysql # not compatible
query I rowsort label-4067
SELECT COUNT ( * ) - + ( + 22 )
----
-21

query I rowsort
SELECT ALL 70 - - 7 * - 18 + + - 20 col2
----
-76

query I rowsort
SELECT - 70 * 76 * - - 2 + 54 - 56 * - 34 - ( ( + - 75 ) )
----
-8607

query I rowsort
SELECT 4 * + - 30 col1
----
-120

query I rowsort
SELECT 40 * - + 89 * 53 AS col1
----
-188680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4072
SELECT ALL 99 * - 65 col2, 73 * + COUNT( ALL - ( ( 61 ) ) ) * + COALESCE ( + 72, + COALESCE ( + 96, + COUNT( * ) ) ) + 65 * + CAST( NULL AS SIGNED ) AS col1
----
-6435
NULL

skipif mysql # not compatible
query II rowsort label-4072
SELECT ALL 99 * - 65 col2, 73 * + COUNT ( ALL - ( ( 61 ) ) ) * + COALESCE ( + 72, + COALESCE ( + 96, + COUNT ( * ) ) ) + 65 * + CAST ( NULL AS INTEGER ) AS col1
----
-6435
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4073
SELECT 10 + + CAST( - 49 AS SIGNED ) + - COALESCE ( - 21, MAX( - - 90 ) + - 33 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-4073
SELECT 10 + + CAST ( - 49 AS INTEGER ) + - COALESCE ( - 21, MAX ( - - 90 ) + - 33 ) AS col2
----
-18

query II rowsort
SELECT 46 - + 17 AS col0, 36
----
29
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT 55 - + CAST( NULL AS SIGNED ) - - COUNT( 14 ) + + COUNT( * ) * - - NULLIF ( - 67, ( 20 ) * + - COUNT( * ) ) * - - COUNT( * ) * 91 + 86 * + 97 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT 55 - + CAST ( NULL AS INTEGER ) - - COUNT ( 14 ) + + COUNT ( * ) * - - NULLIF ( - 67, ( 20 ) * + - COUNT ( * ) ) * - - COUNT ( * ) * 91 + 86 * + 97 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4076
SELECT 29 + + 58 AS col2, COALESCE ( + COUNT( * ), 49, - 4 ) * + COUNT( * ) + CAST( NULL AS SIGNED ) + + CASE WHEN NOT 41 = NULLIF ( - 78, + ( - 33 ) + 42 ) / 79 - 9 THEN 49 END + 91 AS col0
----
87
NULL

skipif mysql # not compatible
query II rowsort label-4076
SELECT 29 + + 58 AS col2, COALESCE ( + COUNT ( * ), 49, - 4 ) * + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + CASE WHEN NOT 41 = NULLIF ( - 78, + ( - 33 ) + 42 ) / 79 - 9 THEN 49 END + 91 AS col0
----
87
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4077
SELECT ALL + 1 + + - COALESCE ( + 45, - 10 * 89 * + - 99 DIV 35 + - COUNT( * ) ) col1
----
-44

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL + 1 + + - COALESCE ( + 45, - 10 * 89 * + - 99 / 35 + - COUNT ( * ) ) col1
----
-44

query II rowsort
SELECT 45 + 46, + 59 AS col0
----
91
59

query I rowsort
SELECT 55 + 50
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4080
SELECT 61 DIV - CAST( COALESCE ( - 98, + 60 + - 28 DIV - 27 DIV 82 DIV - COUNT( * ), + ( - 35 ) * 23 * + 47, ( 3 ) ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4080
SELECT 61 / - CAST ( COALESCE ( - 98, + 60 + - 28 / - 27 / 82 / - COUNT ( * ), + ( - 35 ) * 23 * + 47, ( 3 ) ) AS INTEGER )
----
0

query I rowsort
SELECT ALL + 1 + - + 43 * + - 19 col1
----
818

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT - MAX( - - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-4082
SELECT - MAX ( - - 72 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4083
SELECT ALL - 1 + + 88, 87 + + COALESCE ( - CASE SUM( ALL + + 0 ) WHEN - 94 * + + COUNT( * ) THEN ( COUNT( * ) ) DIV + COUNT( * ) * + 10 WHEN 60 THEN NULL ELSE NULL END, CAST( - 94 AS SIGNED ) - 95 ) AS col2
----
87
-102

skipif mysql # not compatible
query II rowsort label-4083
SELECT ALL - 1 + + 88, 87 + + COALESCE ( - CASE SUM ( ALL + + 0 ) WHEN - 94 * + + COUNT ( * ) THEN ( COUNT ( * ) ) / + COUNT ( * ) * + 10 WHEN 60 THEN NULL ELSE NULL END, CAST ( - 94 AS INTEGER ) - 95 ) AS col2
----
87
-102

query I rowsort
SELECT 64 * - 93 AS col1
----
-5952

query I rowsort
SELECT + 84 + + - 47 + + 25
----
62

query II rowsort
SELECT + - ( + 51 ) AS col0, 59
----
-51
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4087
SELECT + 41 DIV 12 AS col1, + COUNT( - 33 ) col1
----
3
1

skipif mysql # not compatible
query II rowsort label-4087
SELECT + 41 / 12 AS col1, + COUNT ( - 33 ) col1
----
3
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT DISTINCT 81 * 36 + - 26 + - CAST( + 84 AS SIGNED ) * + 20 AS col2
----
1210

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT 81 * 36 + - 26 + - CAST ( + 84 AS INTEGER ) * + 20 AS col2
----
1210

query I rowsort
SELECT ALL - - ( 43 )
----
43

query I rowsort
SELECT ALL - 49 * 5 * - 29 + - - 86
----
7191

query I rowsort
SELECT DISTINCT + 51 * + 20 + - + 26 + + 86 AS col1
----
1080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4092
SELECT + SUM( COALESCE ( 7, + 38 * + + CAST( + - 31 AS SIGNED ) ) )
----
7

skipif mysql # not compatible
query I rowsort label-4092
SELECT + SUM ( COALESCE ( 7, + 38 * + + CAST ( + - 31 AS INTEGER ) ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ALL + 65 * + - 75 * - + COUNT( * ) * - + 5 - - 18 - + - 3 - 36
----
-24390

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL + 65 * + - 75 * - + COUNT ( * ) * - + 5 - - 18 - + - 3 - 36
----
-24390

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT COUNT( * ) * + 0 + - CASE + - COALESCE ( - + ( - + 39 ), - 75 ) WHEN + 17 THEN - - 90 * + + 20 / ( COUNT( * ) ) ELSE NULL END * - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT COUNT ( * ) * + 0 + - CASE + - COALESCE ( - + ( - + 39 ), - 75 ) WHEN + 17 THEN - - 90 * + + 20 / ( COUNT ( * ) ) ELSE NULL END * - 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT + CASE + 24 WHEN - COUNT( * ) * + 42 THEN + + 44 * 74 - - 83 + + 66 * + 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT + CASE + 24 WHEN - COUNT ( * ) * + 42 THEN + + 44 * 74 - - 83 + + 66 * + 18 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4096
SELECT ALL ( + CAST( - COALESCE ( COUNT( * ), - - ( 48 ) ) AS SIGNED ) ) * - 22 DIV + 13
----
1

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL ( + CAST ( - COALESCE ( COUNT ( * ), - - ( 48 ) ) AS INTEGER ) ) * - 22 / + 13
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4097
SELECT DISTINCT - 6 DIV - 3 * COUNT( * ) - - 6 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT - 6 / - 3 * COUNT ( * ) - - 6 AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT - ( 54 ) * 82 DIV 47 * - + 5 + - 85 AS col2
----
385

skipif mysql # not compatible
query I rowsort label-4098
SELECT - ( 54 ) * 82 / 47 * - + 5 + - 85 AS col2
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT DISTINCT + SUM( DISTINCT - 6 ) - - + 51 * - 69 + 14 AS col0
----
-3511

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT + SUM ( DISTINCT - 6 ) - - + 51 * - 69 + 14 AS col0
----
-3511

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4100
SELECT ALL - 4 * MAX( DISTINCT 10 ) * - CASE 16 WHEN - 64 + + ( + + 11 ) THEN + COUNT( * ) DIV + - 89 - - 55 - 76 ELSE 21 END * + COALESCE ( 79 * 38, 93, 77, 44 ) AS col1
----
2521680

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL - 4 * MAX ( DISTINCT 10 ) * - CASE 16 WHEN - 64 + + ( + + 11 ) THEN + COUNT ( * ) / + - 89 - - 55 - 76 ELSE 21 END * + COALESCE ( 79 * 38, 93, 77, 44 ) AS col1
----
2521680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT DISTINCT - CAST( - - 27 AS SIGNED ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT - CAST ( - - 27 AS INTEGER ) AS col0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4102
SELECT - 87 DIV ( + - 91 ) AS col0, 43 * + COUNT( * ) col2
----
0
43

skipif mysql # not compatible
query II rowsort label-4102
SELECT - 87 / ( + - 91 ) AS col0, 43 * + COUNT ( * ) col2
----
0
43

query I rowsort
SELECT + 93 * 92 AS col2
----
8556

query I rowsort
SELECT - 5 * 70
----
-350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4105
SELECT + 69 * CAST( NULL AS SIGNED ) * + ( COALESCE ( + 72, - 73 ) ), 81 AS col2
----
NULL
81

skipif mysql # not compatible
query II rowsort label-4105
SELECT + 69 * CAST ( NULL AS INTEGER ) * + ( COALESCE ( + 72, - 73 ) ), 81 AS col2
----
NULL
81

query I rowsort
SELECT + 87 + - + CASE - 34 WHEN 0 * + - 22 / 89 THEN + - 83 WHEN - 53 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4107
SELECT + 57 DIV + ( + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-4107
SELECT + 57 / + ( + 52 )
----
1

query I rowsort
SELECT DISTINCT COALESCE ( + - 48, 58, 32 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT + 3 * - SUM( 65 ) * + MIN( ALL 93 )
----
-18135

skipif mysql # not compatible
query I rowsort label-4109
SELECT + 3 * - SUM ( 65 ) * + MIN ( ALL 93 )
----
-18135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4110
SELECT ALL 9 + 30 * - ( CAST( + CASE - CAST( + + 24 AS SIGNED ) WHEN - 42 / - 73 / + + 75 / + 62 THEN - + 74 END AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL 9 + 30 * - ( CAST ( + CASE - CAST ( + + 24 AS INTEGER ) WHEN - 42 / - 73 / + + 75 / + 62 THEN - + 74 END AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT + 15 - + CASE + ( + 89 ) WHEN - 11 THEN - 30 * + 34 WHEN - + COUNT( * ) * - 85 THEN - 22 * + 2 + + + CASE 10 WHEN 43 THEN NULL WHEN - 24 THEN - 7 + - CAST( + MAX( ALL 58 ) AS SIGNED ) * - 4 END + + ( + 61 ) ELSE 91 * - MAX( 82 ) END - 4 AS col0
----
7473

skipif mysql # not compatible
query I rowsort label-4111
SELECT + 15 - + CASE + ( + 89 ) WHEN - 11 THEN - 30 * + 34 WHEN - + COUNT ( * ) * - 85 THEN - 22 * + 2 + + + CASE 10 WHEN 43 THEN NULL WHEN - 24 THEN - 7 + - CAST ( + MAX ( ALL 58 ) AS INTEGER ) * - 4 END + + ( + 61 ) ELSE 91 * - MAX ( 82 ) END - 4 AS col0
----
7473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4112
SELECT + SUM( - - 79 ) - - + 38 * + CAST( 94 AS SIGNED )
----
3651

skipif mysql # not compatible
query I rowsort label-4112
SELECT + SUM ( - - 79 ) - - + 38 * + CAST ( 94 AS INTEGER )
----
3651

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT + COUNT( * ) * - - 24
----
24

skipif mysql # not compatible
query I rowsort label-4113
SELECT + COUNT ( * ) * - - 24
----
24

query I rowsort
SELECT - 82 * + 24 AS col1
----
-1968

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT DISTINCT - + 58 + - + 20 * 37 * - + 36 AS col1, 29 * - + MIN( ALL + 87 ) AS col1
----
26582
-2523

skipif mysql # not compatible
query II rowsort label-4115
SELECT DISTINCT - + 58 + - + 20 * 37 * - + 36 AS col1, 29 * - + MIN ( ALL + 87 ) AS col1
----
26582
-2523

query I rowsort
SELECT DISTINCT - 12 + - 85 AS col2
----
-97

query I rowsort
SELECT + + 84 - + + 73 + + 20
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-4118
SELECT ALL + - 40 AS col1, + 97 + - 70 * 76 DIV + 89
----
-40
38

skipif mysql # not compatible
query II rowsort label-4118
SELECT ALL + - 40 AS col1, + 97 + - 70 * 76 / + 89
----
-40
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4119
SELECT - 20 DIV 72 + - 90 AS col0, 64 DIV - 72 + + 52 + - COUNT( * ) * - - 98 + 52 DIV COUNT( * ) - + 89 * - - 27
----
-90
-2397

skipif mysql # not compatible
query II rowsort label-4119
SELECT - 20 / 72 + - 90 AS col0, 64 / - 72 + + 52 + - COUNT ( * ) * - - 98 + 52 / COUNT ( * ) - + 89 * - - 27
----
-90
-2397

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ( NULLIF ( + + 58, COUNT( ALL + 74 ) ) )
----
58

skipif mysql # not compatible
query I rowsort label-4120
SELECT ( NULLIF ( + + 58, COUNT ( ALL + 74 ) ) )
----
58

query II rowsort
SELECT ALL + 14 AS col0, 16 AS col2
----
14
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT + + MAX( 8 )
----
8

skipif mysql # not compatible
query I rowsort label-4122
SELECT + + MAX ( 8 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT - + 27 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT - + 27 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT - 51 * - + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4124
SELECT - 51 * - + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4125
SELECT DISTINCT + 35 * - COUNT( * ) DIV - NULLIF ( - 71, + 59 ) * - 90
----
0

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT + 35 * - COUNT ( * ) / - NULLIF ( - 71, + 59 ) * - 90
----
0

query I rowsort
SELECT DISTINCT - + 61 * + + 85 AS col2
----
-5185

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL + CASE - + 20 WHEN + CASE CASE COUNT( * ) WHEN - + 38 THEN NULL ELSE + - 30 END WHEN + + 52 - - SUM( - - 44 ) * + 49 + + CASE ( + 99 ) WHEN - COUNT( * ) * 82 + COALESCE ( 86, 76 * 34, 5 ) * NULLIF ( 70 - + 3, 76 + - 40 * - 15 ) THEN - 71 WHEN 49 THEN NULL ELSE NULL END + - 80 THEN + 67 + 60 * + 16 WHEN 7 THEN - 93 ELSE NULL END THEN NULL WHEN - 23 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL + CASE - + 20 WHEN + CASE CASE COUNT ( * ) WHEN - + 38 THEN NULL ELSE + - 30 END WHEN + + 52 - - SUM ( - - 44 ) * + 49 + + CASE ( + 99 ) WHEN - COUNT ( * ) * 82 + COALESCE ( 86, 76 * 34, 5 ) * NULLIF ( 70 - + 3, 76 + - 40 * - 15 ) THEN - 71 WHEN 49 THEN NULL ELSE NULL END + - 80 THEN + 67 + 60 * + 16 WHEN 7 THEN - 93 ELSE NULL END THEN NULL WHEN - 23 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT - COUNT( * ) * + 84 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-4128
SELECT - COUNT ( * ) * + 84 AS col2
----
-84

query I rowsort
SELECT - 17 * 14 AS col2
----
-238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT - 29 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT - 29 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( 95, + - 31 * + + 89 * - 63 * - - 78 * - - 24 + 84 + 74 * - 0 + 74, - 57 ) AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT DISTINCT + CAST( - 76 AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT + CAST ( - 76 AS INTEGER )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-4133
SELECT + 87 * + NULLIF ( - - 7, NULLIF ( - SUM( DISTINCT + ( - + 21 ) ), + 52 ) ) * - 43 AS col1, - ( 1 ) AS col2
----
-26187
-1

skipif mysql # not compatible
query II rowsort label-4133
SELECT + 87 * + NULLIF ( - - 7, NULLIF ( - SUM ( DISTINCT + ( - + 21 ) ), + 52 ) ) * - 43 AS col1, - ( 1 ) AS col2
----
-26187
-1

query I rowsort
SELECT ALL + ( NULLIF ( - + 79, + + 63 ) )
----
-79

query I rowsort
SELECT ALL 67 * 99 + + + 69
----
6702

query I rowsort
SELECT 64 * - + 2 - + - 20 - 87 AS col1
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL - 37 * + 71 * SUM( + 24 ) + + 7 - + COUNT( * )
----
-63042

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - 37 * + 71 * SUM ( + 24 ) + + 7 - + COUNT ( * )
----
-63042

query II rowsort
SELECT - 39 + 59, COALESCE ( + + 2, - + 53 ) AS col1
----
20
2

query I rowsort
SELECT ALL + 38 + + 94
----
132

query I rowsort
SELECT - 15 + + 61 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT MAX( DISTINCT + 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4141
SELECT MAX ( DISTINCT + 18 ) AS col1
----
18

query I rowsort
SELECT - 91 + 30
----
-61

query II rowsort
SELECT + 97 - - 14 AS col1, 80 * - 10 AS col0
----
111
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT - CASE 15 WHEN - COUNT( * ) * - 76 + - ( + - 83 ) THEN + CASE - 30 WHEN + 57 THEN NULL WHEN COUNT( * ) * + 48 THEN 2 END + COUNT( * ) ELSE NULL END + 66 * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT - CASE 15 WHEN - COUNT ( * ) * - 76 + - ( + - 83 ) THEN + CASE - 30 WHEN + 57 THEN NULL WHEN COUNT ( * ) * + 48 THEN 2 END + COUNT ( * ) ELSE NULL END + 66 * + 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4145
SELECT ALL + MIN( ALL + - 70 ) + - - ( - + COUNT( * ) ) AS col0, CAST( NULL AS SIGNED ) AS col1
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-4145
SELECT ALL + MIN ( ALL + - 70 ) + - - ( - + COUNT ( * ) ) AS col0, CAST ( NULL AS INTEGER ) AS col1
----
-71
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT + + 88 + - ( + NULLIF ( 49, - 63 * + 78 ) ) + - + 43 * 81 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4146
SELECT + + 88 + - ( + NULLIF ( 49, - 63 * + 78 ) ) + - + 43 * 81 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT ALL + CAST( NULL AS SIGNED ) / 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + CAST ( NULL AS INTEGER ) / 25 AS col1
----
NULL

query I rowsort
SELECT + - 13 + + 94 + - 48 * 23 col0
----
-1023

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT MAX( - 73 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT MAX ( - 73 ) AS col2
----
-73

query I rowsort
SELECT + + 38 + 37 + - 90 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL ( + COUNT( * ) ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL ( + COUNT ( * ) ) - - COUNT ( * )
----
2

query I rowsort
SELECT - 85 * 70 AS col0
----
-5950

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4153
SELECT DISTINCT + 0 * MIN( ALL + - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + 0 * MIN ( ALL + - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4154
SELECT ALL MAX( + 89 ), + 74 * - 16 col0
----
89
-1184

skipif mysql # not compatible
query II rowsort label-4154
SELECT ALL MAX ( + 89 ), + 74 * - 16 col0
----
89
-1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4155
SELECT + 82 + - + SUM( ALL + 14 ) * - CAST( NULL AS SIGNED ) / 7 * - + CAST( NULL AS SIGNED ) / + 26 * + 62 - + 65 * + + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT + 82 + - + SUM ( ALL + 14 ) * - CAST ( NULL AS INTEGER ) / 7 * - + CAST ( NULL AS INTEGER ) / + 26 * + 62 - + 65 * + + 1 AS col1
----
NULL

query I rowsort
SELECT ALL + - ( - + 24 )
----
24

query I rowsort
SELECT DISTINCT 0 * 61 AS col1
----
0

query I rowsort
SELECT DISTINCT + - 14 AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4159
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / - + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / - + 31 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT - 71 + - CAST( + + 61 AS SIGNED )
----
-132

skipif mysql # not compatible
query I rowsort label-4160
SELECT - 71 + - CAST ( + + 61 AS INTEGER )
----
-132

query I rowsort
SELECT 42 * - 76 AS col0
----
-3192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT CAST( NULL AS SIGNED ) - - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4162
SELECT CAST ( NULL AS INTEGER ) - - + 71
----
NULL

query II rowsort
SELECT + 88, 83 col1
----
88
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT CAST( NULL AS SIGNED ) / + - 44 / + - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT CAST ( NULL AS INTEGER ) / + - 44 / + - 86 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4165
SELECT + ( - + 74 ) * - + CAST( NULL AS DECIMAL ) + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-4165
SELECT + ( - + 74 ) * - + CAST ( NULL AS REAL ) + 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4166
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 45 - + COUNT( * ) + - + 11 * - CASE 86 WHEN CAST( + 4 AS SIGNED ) + + 56 - - 70 * 34 THEN + NULLIF ( + 19, 65 ) WHEN + + 70 + 85 THEN NULL END * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 45 - + COUNT ( * ) + - + 11 * - CASE 86 WHEN CAST ( + 4 AS INTEGER ) + + 56 - - 70 * 34 THEN + NULLIF ( + 19, 65 ) WHEN + + 70 + 85 THEN NULL END * + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT DISTINCT ( MIN( DISTINCT 78 ) ) * - ( 7 ) AS col0
----
-546

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT ( MIN ( DISTINCT 78 ) ) * - ( 7 ) AS col0
----
-546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4168
SELECT ALL - 69 + + - 51 - + 77 + - + 80 + + + COUNT( * ) / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL - 69 + + - 51 - + 77 + - + 80 + + + COUNT ( * ) / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4169
SELECT ALL + 14 + + 28 * 36 DIV + COUNT( * ) + + 43 - - 5 * - COUNT( * ) AS col2
----
1060

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL + 14 + + 28 * 36 / + COUNT ( * ) + + 43 - - 5 * - COUNT ( * ) AS col2
----
1060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT ALL CAST( NULL AS SIGNED ) * 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL CAST ( NULL AS INTEGER ) * 44 AS col1
----
NULL

query I rowsort
SELECT 49 - - + 24 + - 53 + + 97
----
117

query I rowsort
SELECT ALL - NULLIF ( - CASE 90 WHEN - 18 THEN - 68 END, 40 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL + MAX( ALL - ( + - 15 ) ) + 62 * 9
----
573

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL + MAX ( ALL - ( + - 15 ) ) + 62 * 9
----
573

onlyif mysql # aggregate syntax: 
query II rowsort label-4174
SELECT + 9, 36 + + COUNT( * ) + COUNT( * ) + - - 41 AS col0
----
9
79

skipif mysql # not compatible
query II rowsort label-4174
SELECT + 9, 36 + + COUNT ( * ) + COUNT ( * ) + - - 41 AS col0
----
9
79

query I rowsort
SELECT DISTINCT + 51 + + - 68
----
-17

query I rowsort
SELECT 45 * - + 17 * + + 58
----
-44370

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT COUNT( DISTINCT + 12 ) + + - 35 - + + 44 + - 45 + - - 23 + + 81 * - + 94 * + + 78
----
-593992

skipif mysql # not compatible
query I rowsort label-4177
SELECT COUNT ( DISTINCT + 12 ) + + - 35 - + + 44 + - 45 + - - 23 + + 81 * - + 94 * + + 78
----
-593992

query I rowsort
SELECT ALL - ( 50 ) + - 92 AS col1
----
-142

onlyif mysql # DIV for integer division: 
query I rowsort label-4179
SELECT ALL - 70 + - + 65 DIV + 95
----
-70

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL - 70 + - + 65 / + 95
----
-70

query I rowsort
SELECT 70 * + 38
----
2660

query I rowsort
SELECT ALL ( + + ( - + 17 ) ) AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT DISTINCT + + CAST( + 45 AS SIGNED ) * + + 1
----
45

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT + + CAST ( + 45 AS INTEGER ) * + + 1
----
45

query I rowsort
SELECT ALL + - 24 - + 71 AS col2
----
-95

query I rowsort
SELECT - - 87 col0
----
87

query I rowsort
SELECT 77 * - 99
----
-7623

query I rowsort
SELECT - - COALESCE ( - 96, + 80 + - 19 * - + 39 - + 73 ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL - MIN( - + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL - MIN ( - + 24 )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4188
SELECT + 19 * 22 DIV - - 34, CASE - 5 WHEN - 3 THEN - + NULLIF ( + ( 65 ), - COUNT( * ) ) END * + 28 AS col0
----
12
NULL

skipif mysql # not compatible
query II rowsort label-4188
SELECT + 19 * 22 / - - 34, CASE - 5 WHEN - 3 THEN - + NULLIF ( + ( 65 ), - COUNT ( * ) ) END * + 28 AS col0
----
12
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4189
SELECT CASE 32 WHEN 58 + COALESCE ( 92, - + 58 * + COUNT( * ) ) THEN NULL WHEN + 14 THEN + 79 ELSE - + 68 END * + CAST( NULL AS DECIMAL ) AS col2, - 90
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-4189
SELECT CASE 32 WHEN 58 + COALESCE ( 92, - + 58 * + COUNT ( * ) ) THEN NULL WHEN + 14 THEN + 79 ELSE - + 68 END * + CAST ( NULL AS REAL ) AS col2, - 90
----
NULL
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4190
SELECT ALL + 46 DIV 73 col1
----
0

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL + 46 / 73 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4191
SELECT DISTINCT COALESCE ( 33, 23 ), + COUNT( * ) * - + 56 AS col2
----
33
-56

skipif mysql # not compatible
query II rowsort label-4191
SELECT DISTINCT COALESCE ( 33, 23 ), + COUNT ( * ) * - + 56 AS col2
----
33
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4192
SELECT DISTINCT - 19 DIV 8 * + - CAST( + 1 AS SIGNED ) col0
----
2

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT - 19 / 8 * + - CAST ( + 1 AS INTEGER ) col0
----
2

query I rowsort
SELECT ALL 86 * - + 41
----
-3526

onlyif mysql # aggregate syntax: 
query II rowsort label-4194
SELECT + COUNT( * ), 50 AS col0
----
1
50

skipif mysql # not compatible
query II rowsort label-4194
SELECT + COUNT ( * ), 50 AS col0
----
1
50

query I rowsort
SELECT 26 * - + 39
----
-1014

query I rowsort
SELECT ALL + 94 * 12 AS col1
----
1128

query I rowsort
SELECT 44 * 5
----
220

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4198
SELECT 82 DIV - COUNT( * ) + + - 38 * + + 57 + + COUNT( * ) + - - NULLIF ( + - 72, + + SUM( ALL + 73 ) * + MAX( - 32 ) ) AS col0, 29 AS col0
----
-2319
29

skipif mysql # not compatible
query II rowsort label-4198
SELECT 82 / - COUNT ( * ) + + - 38 * + + 57 + + COUNT ( * ) + - - NULLIF ( + - 72, + + SUM ( ALL + 73 ) * + MAX ( - 32 ) ) AS col0, 29 AS col0
----
-2319
29

query II rowsort
SELECT 90, + 74 AS col2
----
90
74

query II rowsort
SELECT + 33, 34 AS col0
----
33
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT NULLIF ( + ( 21 ), 24 ) + 2 + SUM( ALL 45 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4201
SELECT NULLIF ( + ( 21 ), 24 ) + 2 + SUM ( ALL 45 ) AS col1
----
68

query I rowsort
SELECT ALL + 82 + + 58 * - 95
----
-5428

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL - MIN( + - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - MIN ( + - 21 )
----
21

query I rowsort
SELECT ALL ( 15 ) + + + 16 AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-4205
SELECT DISTINCT - COUNT( * ) AS col1, + SUM( + 18 ) + - 95 + + + COUNT( DISTINCT 9 ) * - ( 71 ) + - + 64
----
-1
-212

skipif mysql # not compatible
query II rowsort label-4205
SELECT DISTINCT - COUNT ( * ) AS col1, + SUM ( + 18 ) + - 95 + + + COUNT ( DISTINCT 9 ) * - ( 71 ) + - + 64
----
-1
-212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT DISTINCT CAST( 33 AS SIGNED ) + - 81 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT CAST ( 33 AS INTEGER ) + - 81 AS col2
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-4207
SELECT ALL + 10 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL + 10 / - 50
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT 55 DIV + 10 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4208
SELECT 55 / + 10 AS col2
----
5

query I rowsort
SELECT ALL 34 + - 14
----
20

query II rowsort
SELECT 63 AS col1, 0 AS col0
----
63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT + SUM( + + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-4211
SELECT + SUM ( + + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT COUNT( * ) + - 83 + + 89 + + 61 + - MAX( + 32 ) + - ( + 46 ) * - 87 * + COUNT( + 3 ) AS col0
----
4038

skipif mysql # not compatible
query I rowsort label-4212
SELECT COUNT ( * ) + - 83 + + 89 + + 61 + - MAX ( + 32 ) + - ( + 46 ) * - 87 * + COUNT ( + 3 ) AS col0
----
4038

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4213
SELECT 39 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT 39 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4214
SELECT 45 + - 57 DIV 39 * + + 87 AS col1, + 39
----
-42
39

skipif mysql # not compatible
query II rowsort label-4214
SELECT 45 + - 57 / 39 * + + 87 AS col1, + 39
----
-42
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4215
SELECT 80 DIV - SUM( - ( + 5 ) )
----
16

skipif mysql # not compatible
query I rowsort label-4215
SELECT 80 / - SUM ( - ( + 5 ) )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4216
SELECT 14 AS col2, - 40 + - + 27 + 40 * - 9 + 29 * + - MIN( + 3 )
----
14
-514

skipif mysql # not compatible
query II rowsort label-4216
SELECT 14 AS col2, - 40 + - + 27 + 40 * - 9 + 29 * + - MIN ( + 3 )
----
14
-514

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT + 90 * 96 + + - MIN( 1 ) + - - 87 col0
----
8726

skipif mysql # not compatible
query I rowsort label-4217
SELECT + 90 * 96 + + - MIN ( 1 ) + - - 87 col0
----
8726

query I rowsort
SELECT ALL - 84 * + - 24
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT NULLIF ( - 82, COUNT( * ) ) * - + 66 + 31 + 33 * + 53 * - - 63 - + 79 + - 43
----
115508

skipif mysql # not compatible
query I rowsort label-4219
SELECT NULLIF ( - 82, COUNT ( * ) ) * - + 66 + 31 + 33 * + 53 * - - 63 - + 79 + - 43
----
115508

query I rowsort
SELECT DISTINCT 85 * + 87 AS col0
----
7395

query I rowsort
SELECT ALL 44 - + + 37 + - 7 + - 44 * + 9
----
-396

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4222
SELECT ALL - - 1 DIV + CAST( - + 35 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL - - 1 / + CAST ( - + 35 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT CASE ( + + 83 ) WHEN 32 * - 1 + - 74 THEN NULL ELSE COUNT( * ) * 55 * + 16 + - 49 + + 88 * + + 40 + COUNT( * ) END + MAX( DISTINCT - ( + + 10 ) )
----
4342

skipif mysql # not compatible
query I rowsort label-4223
SELECT CASE ( + + 83 ) WHEN 32 * - 1 + - 74 THEN NULL ELSE COUNT ( * ) * 55 * + 16 + - 49 + + 88 * + + 40 + COUNT ( * ) END + MAX ( DISTINCT - ( + + 10 ) )
----
4342

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT 41 + - 93 * COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-4224
SELECT 41 + - 93 * COUNT ( * )
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4225
SELECT + COUNT( * ) AS col0, 84 * - 3 + - 74 - 17 + - - 20 * + - 50 AS col0
----
1
-1343

skipif mysql # not compatible
query II rowsort label-4225
SELECT + COUNT ( * ) AS col0, 84 * - 3 + - 74 - 17 + - - 20 * + - 50 AS col0
----
1
-1343

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT ( - CAST( - 8 AS SIGNED ) ) * + NULLIF ( - - 57, 35 ) - 6
----
450

skipif mysql # not compatible
query I rowsort label-4226
SELECT ( - CAST ( - 8 AS INTEGER ) ) * + NULLIF ( - - 57, 35 ) - 6
----
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4227
SELECT 33 + 83 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT 33 + 83 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 51 - - 68 AS col1
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4229
SELECT ( + 12 ) + - + ( + 81 ), - COALESCE ( 72, + 68 ) DIV + 99 + + NULLIF ( 13, + - AVG ( - 99 ) ) + - + MAX( + 29 ) * - COUNT( * ) AS col2
----
-69
42

skipif mysql # not compatible
query II rowsort label-4229
SELECT ( + 12 ) + - + ( + 81 ), - COALESCE ( 72, + 68 ) / + 99 + + NULLIF ( 13, + - AVG ( - 99 ) ) + - + MAX ( + 29 ) * - COUNT ( * ) AS col2
----
-69
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4230
SELECT ALL + + 97 * - 36, ( CASE + NULLIF ( + 20, 89 ) WHEN + 79 THEN MAX( DISTINCT 22 ) END ) + - CASE 21 WHEN - - COUNT( ALL + 89 ) - - 82 / - 48 THEN - 58 * - 51 END AS col0
----
-3492
NULL

skipif mysql # not compatible
query II rowsort label-4230
SELECT ALL + + 97 * - 36, ( CASE + NULLIF ( + 20, 89 ) WHEN + 79 THEN MAX ( DISTINCT 22 ) END ) + - CASE 21 WHEN - - COUNT ( ALL + 89 ) - - 82 / - 48 THEN - 58 * - 51 END AS col0
----
-3492
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4231
SELECT 10 * 21 * + COALESCE ( - + 63, - + AVG ( ALL - 75 ) ) + + 13 * + + CAST( NULL AS SIGNED ) + 11 AS col2, + 10 AS col2
----
NULL
10

skipif mysql # not compatible
query II rowsort label-4231
SELECT 10 * 21 * + COALESCE ( - + 63, - + AVG ( ALL - 75 ) ) + + 13 * + + CAST ( NULL AS INTEGER ) + 11 AS col2, + 10 AS col2
----
NULL
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4232
SELECT - CAST( NULL AS SIGNED ) AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4232
SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT - COUNT( * ) + - - 89 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-4233
SELECT - COUNT ( * ) + - - 89 AS col2
----
88

query I rowsort
SELECT DISTINCT - COALESCE ( - - 0, + 38 * - 53 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4235
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-4235
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 8
----
NULL
8

query I rowsort
SELECT ALL - 89 * + 3 AS col2
----
-267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4237
SELECT - 44 + - CASE - 12 WHEN + 70 / - + 95 THEN + 70 * - 92 - - 23 / + + 61 - - COUNT( * ) * - 69 + + + 19 * - NULLIF ( - CAST( NULL AS SIGNED ), + CAST( + 8 AS SIGNED ) ) WHEN - CAST( - 19 AS DECIMAL ) THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT - 44 + - CASE - 12 WHEN + 70 / - + 95 THEN + 70 * - 92 - - 23 / + + 61 - - COUNT ( * ) * - 69 + + + 19 * - NULLIF ( - CAST ( NULL AS INTEGER ), + CAST ( + 8 AS INTEGER ) ) WHEN - CAST ( - 19 AS REAL ) THEN NULL ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4238
SELECT - CASE + 55 WHEN + + 4 + CASE 36 WHEN + - COALESCE ( + + 42, - SUM( DISTINCT + 77 ) ) - + + 65 - - + 60 * + 50 THEN + + 41 END THEN NULL ELSE ( + 30 ) + - 72 DIV 68 END
----
-29

skipif mysql # not compatible
query I rowsort label-4238
SELECT - CASE + 55 WHEN + + 4 + CASE 36 WHEN + - COALESCE ( + + 42, - SUM ( DISTINCT + 77 ) ) - + + 65 - - + 60 * + 50 THEN + + 41 END THEN NULL ELSE ( + 30 ) + - 72 / 68 END
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4239
SELECT 75, 21 + 30 + - 6 * COUNT( * ) AS col1
----
75
45

skipif mysql # not compatible
query II rowsort label-4239
SELECT 75, 21 + 30 + - 6 * COUNT ( * ) AS col1
----
75
45

onlyif mysql # aggregate syntax: 
query II rowsort label-4240
SELECT - + COUNT( * ) AS col0, COALESCE ( 3, + + COUNT( DISTINCT 99 ), 97 * - MIN( - ( - + 54 ) ) ) AS col0
----
-1
3

skipif mysql # not compatible
query II rowsort label-4240
SELECT - + COUNT ( * ) AS col0, COALESCE ( 3, + + COUNT ( DISTINCT 99 ), 97 * - MIN ( - ( - + 54 ) ) ) AS col0
----
-1
3

query II rowsort
SELECT ALL 48 AS col0, + 2 AS col0
----
48
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT SUM( + 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4242
SELECT SUM ( + 43 ) AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4243
SELECT + + ( + + COUNT( * ) ) + + COALESCE ( - CASE 95 WHEN - COUNT( * ) THEN 27 * - + 37 WHEN + COUNT( * ) * CAST( NULL AS SIGNED ) THEN NULL ELSE 56 END, 3 * + - 57 - - COUNT( * ) )
----
-55

skipif mysql # not compatible
query I rowsort label-4243
SELECT + + ( + + COUNT ( * ) ) + + COALESCE ( - CASE 95 WHEN - COUNT ( * ) THEN 27 * - + 37 WHEN + COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN NULL ELSE 56 END, 3 * + - 57 - - COUNT ( * ) )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4244
SELECT DISTINCT + 38 * 91 * - CASE - + 60 WHEN 45 * 94 + + 85 THEN NULL WHEN 71 + - ( - AVG ( ALL 71 ) ) * 13 + - + CASE + - 82 WHEN + 3 * - COUNT( 20 ) THEN NULL ELSE + 6 * - 46 + 45 END + 66 THEN ( 78 ) * - 88 + + AVG ( + COALESCE ( - 54, 30 - 76 / + 38, ( 1 ) + 44 ) + + 85 ) / 23 END + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT + 38 * 91 * - CASE - + 60 WHEN 45 * 94 + + 85 THEN NULL WHEN 71 + - ( - AVG ( ALL 71 ) ) * 13 + - + CASE + - 82 WHEN + 3 * - COUNT ( 20 ) THEN NULL ELSE + 6 * - 46 + 45 END + 66 THEN ( 78 ) * - 88 + + AVG ( + COALESCE ( - 54, 30 - 76 / + 38, ( 1 ) + 44 ) + + 85 ) / 23 END + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT DISTINCT + CASE 74 WHEN - 45 * - 4 / - 79 - - 70 THEN NULL ELSE 91 + + MAX( + 58 ) - 81 END * + NULLIF ( - 2, 90 ) * 2 * + MIN( DISTINCT - - 21 ) + + 49
----
-5663

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT + CASE 74 WHEN - 45 * - 4 / - 79 - - 70 THEN NULL ELSE 91 + + MAX ( + 58 ) - 81 END * + NULLIF ( - 2, 90 ) * 2 * + MIN ( DISTINCT - - 21 ) + + 49
----
-5663

onlyif mysql # DIV for integer division: 
query I rowsort label-4246
SELECT ALL - 14 DIV 8
----
-1

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL - 14 / 8
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL + COUNT( * ) * - - 12 * + 78 + + - 63
----
873

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL + COUNT ( * ) * - - 12 * + 78 + + - 63
----
873

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT - 75 - - 8 * - - NULLIF ( 74, + ( - COUNT( DISTINCT + + 44 ) ) / 19 + - 70 ) AS col1
----
517

skipif mysql # not compatible
query I rowsort label-4248
SELECT - 75 - - 8 * - - NULLIF ( 74, + ( - COUNT ( DISTINCT + + 44 ) ) / 19 + - 70 ) AS col1
----
517

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT + MIN( ALL 47 )
----
47

skipif mysql # not compatible
query I rowsort label-4249
SELECT + MIN ( ALL 47 )
----
47

query II rowsort
SELECT + 24 * 31 + - 68, + 8 AS col1
----
676
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4251
SELECT CASE + CAST( NULL AS SIGNED ) WHEN 97 * + 1 + - - 25 * SUM( 35 ) THEN + + ( + ( - + 45 ) ) * 9 - + 20 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN 97 * + 1 + - - 25 * SUM ( 35 ) THEN + + ( + ( - + 45 ) ) * 9 - + 20 ELSE NULL END col1
----
NULL

query I rowsort
SELECT + 21 * - - 57 AS col2
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT COUNT( * ) * - + CASE COALESCE ( 24, COUNT( * ) * + NULLIF ( + 6, + - 23 * + + 81 / 14 + + SUM( DISTINCT 2 ) + - 69 - - - ( 87 ) - + - 87 ) ) WHEN + ( + COALESCE ( + 28, + COUNT( * ) / + 11 - MAX( DISTINCT - 22 ) ) ) * - 52 THEN 81 ELSE NULL END + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT COUNT ( * ) * - + CASE COALESCE ( 24, COUNT ( * ) * + NULLIF ( + 6, + - 23 * + + 81 / 14 + + SUM ( DISTINCT 2 ) + - 69 - - - ( 87 ) - + - 87 ) ) WHEN + ( + COALESCE ( + 28, + COUNT ( * ) / + 11 - MAX ( DISTINCT - 22 ) ) ) * - 52 THEN 81 ELSE NULL END + + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT + ( - 21 ) - 3 + - - COUNT( * ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-4254
SELECT + ( - 21 ) - 3 + - - COUNT ( * ) col0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4255
SELECT SUM( ALL - 69 ) AS col0, + 97 * + 62
----
-69
6014

skipif mysql # not compatible
query II rowsort label-4255
SELECT SUM ( ALL - 69 ) AS col0, + 97 * + 62
----
-69
6014

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT + 85 * + - COUNT( - + 80 )
----
-85

skipif mysql # not compatible
query I rowsort label-4256
SELECT + 85 * + - COUNT ( - + 80 )
----
-85

query I rowsort
SELECT + - 51 * + + 65
----
-3315

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT + COUNT( * ) + + ( - 93 )
----
-92

skipif mysql # not compatible
query I rowsort label-4258
SELECT + COUNT ( * ) + + ( - 93 )
----
-92

query I rowsort
SELECT - + NULLIF ( - 93, - - 74 - - 51 ) AS col1
----
93

query I rowsort
SELECT ALL - ( + 83 ) col2
----
-83

query I rowsort
SELECT DISTINCT + 12 * - 1 AS col2
----
-12

query II rowsort
SELECT + 79 * + - 17, 60 AS col1
----
-1343
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4263
SELECT DISTINCT - + 32 * 31 DIV COUNT( * )
----
-992

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT - + 32 * 31 / COUNT ( * )
----
-992

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT DISTINCT 66 * - + COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT 66 * - + COUNT ( * ) AS col2
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4265
SELECT ALL + 30 + + ( + 72 ) DIV 92 col1
----
30

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL + 30 + + ( + 72 ) / 92 col1
----
30

query II rowsort
SELECT - + 24 * - - 21, + 51 AS col0
----
-504
51

query I rowsort
SELECT DISTINCT 89 * - - 88
----
7832

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT - NULLIF ( + COUNT( DISTINCT + 26 ), + 27 * - 37 * + MAX( ALL + 64 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4268
SELECT - NULLIF ( + COUNT ( DISTINCT + 26 ), + 27 * - 37 * + MAX ( ALL + 64 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4269
SELECT DISTINCT NULLIF ( + - 51, COALESCE ( - 50, - COUNT( ALL - - 59 ) * MIN( DISTINCT - CAST( NULL AS SIGNED ) ) ) ) + 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT NULLIF ( + - 51, COALESCE ( - 50, - COUNT ( ALL - - 59 ) * MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) ) + 51 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4270
SELECT ALL + - 90 + COUNT( * ) AS col2, 17 * - + 16 AS col0
----
-89
-272

skipif mysql # not compatible
query II rowsort label-4270
SELECT ALL + - 90 + COUNT ( * ) AS col2, 17 * - + 16 AS col0
----
-89
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT + SUM( ALL - + 24 ) - + 6 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4271
SELECT + SUM ( ALL - + 24 ) - + 6 AS col1
----
-30

query I rowsort
SELECT ALL - 94 + 61 + - - 87 AS col2
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4273
SELECT + COUNT( ALL - 29 ) + 58 * ( 17 ) * + + 84 DIV + - COUNT( 95 ) + - 46
----
-82869

skipif mysql # not compatible
query I rowsort label-4273
SELECT + COUNT ( ALL - 29 ) + 58 * ( 17 ) * + + 84 / + - COUNT ( 95 ) + - 46
----
-82869

query I rowsort
SELECT DISTINCT - 45 * - 97
----
4365

onlyif mysql # aggregate syntax: 
query II rowsort label-4275
SELECT DISTINCT + MIN( DISTINCT + 28 ) AS col1, - SUM( 6 ) * + - 25 - - + 49 * 97 - + + 80 * - - 46 AS col0
----
28
1223

skipif mysql # not compatible
query II rowsort label-4275
SELECT DISTINCT + MIN ( DISTINCT + 28 ) AS col1, - SUM ( 6 ) * + - 25 - - + 49 * 97 - + + 80 * - - 46 AS col0
----
28
1223

query I rowsort
SELECT DISTINCT ( + 75 ) + + 59 AS col2
----
134

query I rowsort
SELECT ALL - 10 * + + 66 col2
----
-660

query I rowsort
SELECT ALL + 55 + 73 + + + 6 + 56 + - + 97
----
93

query I rowsort
SELECT DISTINCT - ( - + 16 ) * - - 33 AS col2
----
528

query I rowsort
SELECT - 87 - + + 4 * - 70 * - 58
----
-16327

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL - 10 * + CASE - 37 WHEN - - 66 * + 81 * - 82 * 3 + + COALESCE ( + 38, - + COUNT( * ) ) + 15 * + 95 THEN - - 78 WHEN - COUNT( * ) THEN NULL WHEN + 40 - - - COUNT( * ) THEN NULL ELSE - 61 + + 89 + 66 * COUNT( DISTINCT 1 ) END
----
-940

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL - 10 * + CASE - 37 WHEN - - 66 * + 81 * - 82 * 3 + + COALESCE ( + 38, - + COUNT ( * ) ) + 15 * + 95 THEN - - 78 WHEN - COUNT ( * ) THEN NULL WHEN + 40 - - - COUNT ( * ) THEN NULL ELSE - 61 + + 89 + 66 * COUNT ( DISTINCT 1 ) END
----
-940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT ALL MAX( + + 4 ) DIV + 59 + 0 * + + ( + - 99 ) - - 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL MAX ( + + 4 ) / + 59 + 0 * + + ( + - 99 ) - - 69 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT - 1 * + 23 + + MAX( - 52 )
----
-75

skipif mysql # not compatible
query I rowsort label-4283
SELECT - 1 * + 23 + + MAX ( - 52 )
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4284
SELECT CAST( NULL AS DECIMAL ) AS col1, ( + 1 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4284
SELECT CAST ( NULL AS REAL ) AS col1, ( + 1 )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT + 20 * 16 - - - CASE WHEN 98 <> + 54 * - 85 + - 73 THEN - - 57 + - + 24 ELSE - - COUNT( * ) END
----
287

skipif mysql # not compatible
query I rowsort label-4285
SELECT + 20 * 16 - - - CASE WHEN 98 <> + 54 * - 85 + - 73 THEN - - 57 + - + 24 ELSE - - COUNT ( * ) END
----
287

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4286
SELECT ALL + COALESCE ( CAST( + 33 AS SIGNED ), + CASE CAST( NULL AS SIGNED ) WHEN + + 8 THEN 67 WHEN + + AVG ( - + 86 ) * 96 * 63 - 53 * 13 THEN NULL END + + 44 ) AS col0, - 1 + + 33 col1
----
33
32

skipif mysql # not compatible
query II rowsort label-4286
SELECT ALL + COALESCE ( CAST ( + 33 AS INTEGER ), + CASE CAST ( NULL AS INTEGER ) WHEN + + 8 THEN 67 WHEN + + AVG ( - + 86 ) * 96 * 63 - 53 * 13 THEN NULL END + + 44 ) AS col0, - 1 + + 33 col1
----
33
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT - MIN( - + 57 ) * - + COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-4287
SELECT - MIN ( - + 57 ) * - + COUNT ( * )
----
-57

query I rowsort
SELECT ALL + ( + - 9 ) * 84 AS col1
----
-756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4289
SELECT CAST( NULL AS SIGNED ), NULLIF ( COUNT( * ), - 93 / - 74 * 23 + + + 96 + - - 76 + + + 80 ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4289
SELECT CAST ( NULL AS INTEGER ), NULLIF ( COUNT ( * ), - 93 / - 74 * 23 + + + 96 + - - 76 + + + 80 ) AS col1
----
NULL
1

query II rowsort
SELECT ALL + 35 AS col2, 80
----
35
80

query I rowsort
SELECT ( + 37 ) col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4292
SELECT DISTINCT MAX( + 5 ) * + - 60 AS col1, + 54 AS col0
----
-300
54

skipif mysql # not compatible
query II rowsort label-4292
SELECT DISTINCT MAX ( + 5 ) * + - 60 AS col1, + 54 AS col0
----
-300
54

query II rowsort
SELECT + 17 AS col2, - 44 AS col1
----
17
-44

query I rowsort
SELECT + COALESCE ( + 52, 6, - 67 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT - CASE - - 97 WHEN - + 67 THEN - + COALESCE ( 46, - 6 - COUNT( * ) / + 45 * ( - - 87 ) ) + - 43 * + 15 + - 64 WHEN - 66 THEN - - 49 END / + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT - CASE - - 97 WHEN - + 67 THEN - + COALESCE ( 46, - 6 - COUNT ( * ) / + 45 * ( - - 87 ) ) + - 43 * + 15 + - 64 WHEN - 66 THEN - - 49 END / + 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4296
SELECT + CAST( - - 90 AS SIGNED ) DIV + 92 AS col1, 75 * + 3 * - + ( + + COUNT( * ) )
----
0
-225

skipif mysql # not compatible
query II rowsort label-4296
SELECT + CAST ( - - 90 AS INTEGER ) / + 92 AS col1, 75 * + 3 * - + ( + + COUNT ( * ) )
----
0
-225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4297
SELECT ALL + CAST( NULL AS SIGNED ), 19 * - 62 col2
----
NULL
-1178

skipif mysql # not compatible
query II rowsort label-4297
SELECT ALL + CAST ( NULL AS INTEGER ), 19 * - 62 col2
----
NULL
-1178

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT - NULLIF ( + COALESCE ( + + COUNT( * ), - 46 + + + 26 - - 42, COUNT( * ) + 71 + + - NULLIF ( - 49, ( 72 ) ) - - NULLIF ( - MAX( ALL - - 82 ), - 39 ) - + 89 + 44 * - 59 ), - 82 * 67 ) + 92
----
91

skipif mysql # not compatible
query I rowsort label-4298
SELECT - NULLIF ( + COALESCE ( + + COUNT ( * ), - 46 + + + 26 - - 42, COUNT ( * ) + 71 + + - NULLIF ( - 49, ( 72 ) ) - - NULLIF ( - MAX ( ALL - - 82 ), - 39 ) - + 89 + 44 * - 59 ), - 82 * 67 ) + 92
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT + 67 * COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-4299
SELECT + 67 * COUNT ( * ) AS col0
----
67

query I rowsort
SELECT - 49 + + 53 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT - - 88 * COUNT( * ) + - - 4 * - 34 * 10 + + + ( + - 53 ) * - 0
----
-1272

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT - - 88 * COUNT ( * ) + - - 4 * - 34 * 10 + + + ( + - 53 ) * - 0
----
-1272

onlyif mysql # aggregate syntax: 
query II rowsort label-4302
SELECT DISTINCT + 34, + COUNT( * ) + 15 col2
----
34
16

skipif mysql # not compatible
query II rowsort label-4302
SELECT DISTINCT + 34, + COUNT ( * ) + 15 col2
----
34
16

query II rowsort
SELECT ALL - 47 * + - 34 + + ( + 17 ) * + + 51 + 20, + 79 AS col0
----
2485
79

query I rowsort
SELECT ALL - - 13 * 5 AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4305
SELECT ALL - MIN( CAST( NULL AS SIGNED ) ) + + 34 + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL - MIN ( CAST ( NULL AS INTEGER ) ) + + 34 + - 86
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4306
SELECT 39 + - + COUNT( * ) * - 9, COUNT( * ) * - 87 AS col0
----
48
-87

skipif mysql # not compatible
query II rowsort label-4306
SELECT 39 + - + COUNT ( * ) * - 9, COUNT ( * ) * - 87 AS col0
----
48
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT ALL 69 + CAST( - 58 AS SIGNED ) col2
----
11

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL 69 + CAST ( - 58 AS INTEGER ) col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL + SUM( DISTINCT + + 7 ) col0
----
7

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL + SUM ( DISTINCT + + 7 ) col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4309
SELECT NULLIF ( + - NULLIF ( 71, + COUNT( * ) ), + 26 ) DIV - CASE - 77 WHEN + - COUNT( * ) THEN - COUNT( * ) * - 69 * - 19 + + 66 + - + 53 + COUNT( * ) * 87 WHEN 31 * COALESCE ( + - SUM( ALL CAST( 95 AS DECIMAL ) ), COUNT( * ) + - 17 ) + - 66 THEN NULL ELSE ( MIN( - 95 ) ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4309
SELECT NULLIF ( + - NULLIF ( 71, + COUNT ( * ) ), + 26 ) / - CASE - 77 WHEN + - COUNT ( * ) THEN - COUNT ( * ) * - 69 * - 19 + + 66 + - + 53 + COUNT ( * ) * 87 WHEN 31 * COALESCE ( + - SUM ( ALL CAST ( 95 AS REAL ) ), COUNT ( * ) + - 17 ) + - 66 THEN NULL ELSE ( MIN ( - 95 ) ) END AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4310
SELECT + COALESCE ( - - 8, - - 85 ) + - 9 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT + COALESCE ( - - 8, - - 85 ) + - 9 + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( - - 15, - 69, + + 23 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4312
SELECT 4 * + + 21 + + 1 DIV - 21 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4312
SELECT 4 * + + 21 + + 1 / - 21 AS col0
----
84

query I rowsort
SELECT ALL 96 + - 0 * - + ( - - 62 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4314
SELECT COUNT( * ) AS col0, ( - - CAST( NULL AS SIGNED ) ) + - 80 + + - 4 * 56 / - 27 / + 10
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4314
SELECT COUNT ( * ) AS col0, ( - - CAST ( NULL AS INTEGER ) ) + - 80 + + - 4 * 56 / - 27 / + 10
----
1
NULL

query I rowsort
SELECT - 49 - - ( + 35 )
----
-14

query I rowsort
SELECT ALL - 7 * - NULLIF ( - 62, - 66 ) AS col0
----
-434

onlyif mysql # aggregate syntax: 
query II rowsort label-4317
SELECT 11 + - 4 * - - 10 AS col0, + COUNT( DISTINCT + 52 ) col1
----
-29
1

skipif mysql # not compatible
query II rowsort label-4317
SELECT 11 + - 4 * - - 10 AS col0, + COUNT ( DISTINCT + 52 ) col1
----
-29
1

query I rowsort
SELECT - - ( 12 ) AS col2
----
12

query II rowsort
SELECT DISTINCT 41 * - ( - 85 ), - 65 + - - 81 AS col0
----
3485
16

query I rowsort
SELECT ALL + 57 + + 24 AS col1
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4321
SELECT + 15 + - CAST( - 16 AS SIGNED ) - + 61 DIV - 32
----
32

skipif mysql # not compatible
query I rowsort label-4321
SELECT + 15 + - CAST ( - 16 AS INTEGER ) - + 61 / - 32
----
32

query I rowsort
SELECT ALL - 46 * + 34 AS col1
----
-1564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT + 29 + + + CAST( NULL AS SIGNED ) * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT + 29 + + + CAST ( NULL AS INTEGER ) * + 91
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4324
SELECT ALL 17 - + - CASE - 48 WHEN + + 59 / + - 69 - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + - + COUNT( DISTINCT 49 ) THEN NULL WHEN - 60 THEN COUNT( * ) + + 53 END - + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL 17 - + - CASE - 48 WHEN + + 59 / + - 69 - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + - + COUNT ( DISTINCT 49 ) THEN NULL WHEN - 60 THEN COUNT ( * ) + + 53 END - + 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4325
SELECT DISTINCT ( + COUNT( CASE - CAST( 69 AS SIGNED ) WHEN - 46 / 46 * + - 61 / 10 THEN 42 END ) ) * + 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT ( + COUNT ( CASE - CAST ( 69 AS INTEGER ) WHEN - 46 / 46 * + - 61 / 10 THEN 42 END ) ) * + 64 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT ( + 91 ) DIV + + 46 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4326
SELECT ( + 91 ) / + + 46 AS col1
----
1

query I rowsort
SELECT 68 + 25 * 17 col1
----
493

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4328
SELECT DISTINCT 28 - + CAST( COUNT( * ) AS SIGNED ) * + 14 * + - 15 + + + 42
----
280

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT 28 - + CAST ( COUNT ( * ) AS INTEGER ) * + 14 * + - 15 + + + 42
----
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4329
SELECT COUNT( * ) + - 48 DIV - - 90 + COALESCE ( 90, CAST( NULL AS SIGNED ) ) + - CAST( 7 AS SIGNED ) + - 29 col2, 56
----
55
56

skipif mysql # not compatible
query II rowsort label-4329
SELECT COUNT ( * ) + - 48 / - - 90 + COALESCE ( 90, CAST ( NULL AS INTEGER ) ) + - CAST ( 7 AS INTEGER ) + - 29 col2, 56
----
55
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4330
SELECT 84 + - 1 * CAST( + 52 AS SIGNED ) * + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-4330
SELECT 84 + - 1 * CAST ( + 52 AS INTEGER ) * + COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT 64 * COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4331
SELECT 64 * COUNT ( * ) AS col1
----
64

query I rowsort
SELECT ALL + 89 * + 53
----
4717

query II rowsort
SELECT 90 + 40 + - 60 + + 24 AS col2, 50 * + 97
----
94
4850

query I rowsort
SELECT ALL + 80 * + 43
----
3440

query I rowsort
SELECT DISTINCT + 62 * 32
----
1984

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT 73 - COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4336
SELECT 73 - COUNT ( * ) AS col0
----
72

query I rowsort
SELECT 80 * - 11
----
-880

query I rowsort
SELECT DISTINCT + - 23 + + 17 AS col0
----
-6

query I rowsort
SELECT + ( ( + 81 ) ) AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4340
SELECT ALL + 63 + + + 24 + 88 DIV + - COALESCE ( 10, 78 * 92 + - 17 + ( + COALESCE ( NULLIF ( 64, + - 5 ), - 71 + + NULLIF ( - 57, + + NULLIF ( + NULLIF ( COUNT( * ), - 62 * 13 ), - 95 ) + - 14 ) DIV + 79 ) ) DIV 36 * + 22 )
----
79

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL + 63 + + + 24 + 88 / + - COALESCE ( 10, 78 * 92 + - 17 + ( + COALESCE ( NULLIF ( 64, + - 5 ), - 71 + + NULLIF ( - 57, + + NULLIF ( + NULLIF ( COUNT ( * ), - 62 * 13 ), - 95 ) + - 14 ) / + 79 ) ) / 36 * + 22 )
----
79

query I rowsort
SELECT - + COALESCE ( - 84, - 21 + + 88 * 26 ) * + + ( - + 42 ) + 57 AS col0
----
-3471

onlyif mysql # aggregate syntax: 
query II rowsort label-4342
SELECT DISTINCT + 30 + - 77 AS col1, + 17 * - - 2 + + 35 * COUNT( * ) AS col1
----
-47
69

skipif mysql # not compatible
query II rowsort label-4342
SELECT DISTINCT + 30 + - 77 AS col1, + 17 * - - 2 + + 35 * COUNT ( * ) AS col1
----
-47
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4343
SELECT ALL + + 23 DIV - COUNT( * ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL + + 23 / - COUNT ( * ) AS col0
----
-23

query I rowsort
SELECT + 36 * + - 87
----
-3132

query I rowsort
SELECT ALL - - 10 + 35 * - 36 + + NULLIF ( + - NULLIF ( - COALESCE ( + 3, 7 ), 61 ), + + 99 )
----
-1247

query II rowsort
SELECT + 19 + 96, 58 AS col0
----
115
58

query I rowsort
SELECT DISTINCT + ( - - 52 ) * 89 AS col1
----
4628

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT MIN( - 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4348
SELECT MIN ( - 22 ) AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4349
SELECT MAX( - - CAST( NULL AS SIGNED ) ) + + 94 + + 8 / 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT MAX ( - - CAST ( NULL AS INTEGER ) ) + + 94 + + 8 / 93 AS col0
----
NULL

query I rowsort
SELECT ALL + 78 * - 81 * + 62 AS col1
----
-391716

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT COUNT( DISTINCT - - 40 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4351
SELECT COUNT ( DISTINCT - - 40 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4352
SELECT ALL + 67 + - + CAST( NULL AS SIGNED ) col2, - 5 * + 89 * + - 42
----
NULL
18690

skipif mysql # not compatible
query II rowsort label-4352
SELECT ALL + 67 + - + CAST ( NULL AS INTEGER ) col2, - 5 * + 89 * + - 42
----
NULL
18690

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT - 8 + 71 + + - 46 * + ( - SUM( + - 11 ) ) AS col1
----
-443

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT - 8 + 71 + + - 46 * + ( - SUM ( + - 11 ) ) AS col1
----
-443

query I rowsort
SELECT ALL + 17 * - 8 * + 97
----
-13192

query II rowsort
SELECT - 13 * - 83 AS col0, 2 AS col2
----
1079
2

query I rowsort
SELECT 36 - + 15 AS col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4357
SELECT COUNT( * ) - + 29 * + 70 + - 88 - - 29 * 87, + 93 AS col2
----
406
93

skipif mysql # not compatible
query II rowsort label-4357
SELECT COUNT ( * ) - + 29 * + 70 + - 88 - - 29 * 87, + 93 AS col2
----
406
93

query I rowsort
SELECT 48 + + 67 + + 54 * + 69 * + 84
----
313099

query I rowsort
SELECT DISTINCT 22 * + - 22
----
-484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4360
SELECT ( - 78 ) + - - MIN( DISTINCT 98 ) + + 53 AS col1, 44 + - - CASE + 85 WHEN - COUNT( * ) THEN + 16 WHEN - - CAST( NULL AS SIGNED ) / - 47 THEN - 18 END AS col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-4360
SELECT ( - 78 ) + - - MIN ( DISTINCT 98 ) + + 53 AS col1, 44 + - - CASE + 85 WHEN - COUNT ( * ) THEN + 16 WHEN - - CAST ( NULL AS INTEGER ) / - 47 THEN - 18 END AS col1
----
73
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4361
SELECT DISTINCT 69 * + ( - CAST( NULL AS SIGNED ) ) * - + COALESCE ( + + 58, - + 79 * - 46, + 64 / + + 1 + + + COUNT( + 16 ), 75 ) * + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT 69 * + ( - CAST ( NULL AS INTEGER ) ) * - + COALESCE ( + + 58, - + 79 * - 46, + 64 / + + 1 + + + COUNT ( + 16 ), 75 ) * + 85 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 86 * + + 53
----
4558

onlyif mysql # DIV for integer division: 
query I rowsort label-4363
SELECT 54 DIV - 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4363
SELECT 54 / - 64 AS col0
----
0

query I rowsort
SELECT ALL 80 * - - 28 AS col2
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT 99 * - + SUM( 50 ) * - 57
----
282150

skipif mysql # not compatible
query I rowsort label-4365
SELECT 99 * - + SUM ( 50 ) * - 57
----
282150

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT NULLIF ( - COUNT( * ), + 67 + - 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-4366
SELECT NULLIF ( - COUNT ( * ), + 67 + - 20 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT NULLIF ( + COUNT( * ), + + 65 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4367
SELECT NULLIF ( + COUNT ( * ), + + 65 ) AS col2
----
1

query I rowsort
SELECT ( - - 96 ) * ( 49 ) * + 71
----
333984

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4369
SELECT ALL + 15 * 2 + - COALESCE ( + + NULLIF ( + 24, 33 ), CAST( + 5 AS SIGNED ) ) + - ( 43 ) DIV 43
----
5

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL + 15 * 2 + - COALESCE ( + + NULLIF ( + 24, 33 ), CAST ( + 5 AS INTEGER ) ) + - ( 43 ) / 43
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT MAX( ALL 56 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-4370
SELECT MAX ( ALL 56 ) col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4371
SELECT ALL - + 14 * + CAST( NULL AS SIGNED ) + 6 + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL - + 14 * + CAST ( NULL AS INTEGER ) + 6 + 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL - - 48 * - 38 + - + COUNT( * )
----
-1825

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL - - 48 * - 38 + - + COUNT ( * )
----
-1825

query II rowsort
SELECT ALL + - 28, + 55 AS col1
----
-28
55

query I rowsort
SELECT DISTINCT 9 * + 84 + + 90
----
846

query II rowsort
SELECT ( + + 93 ) * - 47 + + 67 + 33 AS col1, 96 * + - CASE - - 27 WHEN 26 THEN NULL ELSE 98 END AS col0
----
-4271
-9408

query I rowsort
SELECT DISTINCT + 89 * 2 AS col0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + - 51 + - SUM( ALL - 61 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4377
SELECT + - 51 + - SUM ( ALL - 61 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT - + 45 * + MIN( - 44 )
----
1980

skipif mysql # not compatible
query I rowsort label-4378
SELECT - + 45 * + MIN ( - 44 )
----
1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4379
SELECT DISTINCT + - COUNT( * ) * - 78 + 11 + 30 + 1 * 58 + + 93 * + + 18 * - + 7 * CASE + 36 WHEN + CAST( NULL AS SIGNED ) + CASE + 67 WHEN - + COUNT( * ) * + NULLIF ( + - 24, + 38 ) THEN - - COALESCE ( + 82, - 36 ) + 61 END THEN NULL WHEN + 87 + 23 THEN NULL ELSE + SUM( + 46 ) END
----
-538851

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT + - COUNT ( * ) * - 78 + 11 + 30 + 1 * 58 + + 93 * + + 18 * - + 7 * CASE + 36 WHEN + CAST ( NULL AS INTEGER ) + CASE + 67 WHEN - + COUNT ( * ) * + NULLIF ( + - 24, + 38 ) THEN - - COALESCE ( + 82, - 36 ) + 61 END THEN NULL WHEN + 87 + 23 THEN NULL ELSE + SUM ( + 46 ) END
----
-538851

query II rowsort
SELECT ALL + + 91, + 27 AS col1
----
91
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL - - 70 - - + CASE + - 44 WHEN SUM( DISTINCT 77 ) THEN NULL WHEN - + 93 / + 65 + + 50 + - COALESCE ( + COUNT( * ), - 44 + 57 ) * + 21 * + - 60 / 80 + CASE 45 WHEN - 52 THEN + 88 + 70 + NULLIF ( 41 + + 68, 4 + MIN( ALL + 19 ) ) WHEN 48 / 86 THEN NULL WHEN - 90 THEN + 32 + + 54 / - 59 END THEN 88 * 40 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL - - 70 - - + CASE + - 44 WHEN SUM ( DISTINCT 77 ) THEN NULL WHEN - + 93 / + 65 + + 50 + - COALESCE ( + COUNT ( * ), - 44 + 57 ) * + 21 * + - 60 / 80 + CASE 45 WHEN - 52 THEN + 88 + 70 + NULLIF ( 41 + + 68, 4 + MIN ( ALL + 19 ) ) WHEN 48 / 86 THEN NULL WHEN - 90 THEN + 32 + + 54 / - 59 END THEN 88 * 40 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT - ( - SUM( ALL 32 ) ) * + 53
----
1696

skipif mysql # not compatible
query I rowsort label-4382
SELECT - ( - SUM ( ALL 32 ) ) * + 53
----
1696

query I rowsort
SELECT DISTINCT + NULLIF ( 68, - + 73 * + - 33 )
----
68

query I rowsort
SELECT - 84 + + 65 AS col0
----
-19

query I rowsort
SELECT DISTINCT - ( 5 ) col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT - - 24 DIV - 26
----
0

skipif mysql # not compatible
query I rowsort label-4386
SELECT - - 24 / - 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL - COUNT( DISTINCT + 45 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL - COUNT ( DISTINCT + 45 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT + 12 * 20 * - 85 + - MIN( ALL + - 97 ) + - 29
----
-20332

skipif mysql # not compatible
query I rowsort label-4388
SELECT + 12 * 20 * - 85 + - MIN ( ALL + - 97 ) + - 29
----
-20332

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT - - COUNT( 5 ) + - + 37 + - 80 + + - 47 AS col1
----
-163

skipif mysql # not compatible
query I rowsort label-4389
SELECT - - COUNT ( 5 ) + - + 37 + - 80 + + - 47 AS col1
----
-163

query II rowsort
SELECT ALL NULLIF ( 15, 23 * - + 80 ) AS col0, + 38 col2
----
15
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4391
SELECT ALL COUNT( ALL + 96 ) AS col1, - 35 + - 4
----
1
-39

skipif mysql # not compatible
query II rowsort label-4391
SELECT ALL COUNT ( ALL + 96 ) AS col1, - 35 + - 4
----
1
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT DISTINCT 81 * + - COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT 81 * + - COUNT ( * ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT - ( 99 ) + - 69 + + COALESCE ( + ( + 72 ), COUNT( * ) )
----
-96

skipif mysql # not compatible
query I rowsort label-4393
SELECT - ( 99 ) + - 69 + + COALESCE ( + ( + 72 ), COUNT ( * ) )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4394
SELECT ALL + 88 * - + SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + 88 * - + SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT DISTINCT + 79 * - + MIN( DISTINCT - 99 ) AS col0
----
7821

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + 79 * - + MIN ( DISTINCT - 99 ) AS col0
----
7821

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4396
SELECT - 48 AS col2, - 38 * - + CAST( NULL AS SIGNED )
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-4396
SELECT - 48 AS col2, - 38 * - + CAST ( NULL AS INTEGER )
----
-48
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4397
SELECT DISTINCT + 16 + COUNT( * ) - + SUM( ALL - 3 ) DIV + 32
----
17

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT + 16 + COUNT ( * ) - + SUM ( ALL - 3 ) / + 32
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-4398
SELECT 42 AS col1, - 15 DIV - 20 col2
----
42
0

skipif mysql # not compatible
query II rowsort label-4398
SELECT 42 AS col1, - 15 / - 20 col2
----
42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT - CASE - - 44 WHEN + 20 THEN NULL WHEN COUNT( * ) THEN + - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT - CASE - - 44 WHEN + 20 THEN NULL WHEN COUNT ( * ) THEN + - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4400
SELECT - CASE COALESCE ( - 27, + CAST( NULL AS SIGNED ) + + 24, + 75 ) WHEN - - 49 THEN + 80 WHEN + + 85 THEN NULL END + COUNT( * ) - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT - CASE COALESCE ( - 27, + CAST ( NULL AS INTEGER ) + + 24, + 75 ) WHEN - - 49 THEN + 80 WHEN + + 85 THEN NULL END + COUNT ( * ) - + 18
----
NULL

query I rowsort
SELECT + 39 * + ( + + 7 ) AS col2
----
273

query I rowsort
SELECT ALL - 62 + - 80
----
-142

query I rowsort
SELECT DISTINCT 68 + - - 76 + - + 17 AS col2
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4404
SELECT ALL - 87 DIV + COUNT( * ) + + 74 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL - 87 / + COUNT ( * ) + + 74 AS col1
----
-13

query I rowsort
SELECT ALL + ( 57 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4406
SELECT ALL - 38 / + CASE + COUNT( * ) WHEN ( + 16 ) THEN + AVG ( DISTINCT - 23 ) + - COUNT( * ) WHEN 64 + 0 THEN - 37 * - 40 / 69 * - + 19 * + CAST( NULL AS SIGNED ) + AVG ( - 34 ) END * - CAST( + 80 AS SIGNED ) + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL - 38 / + CASE + COUNT ( * ) WHEN ( + 16 ) THEN + AVG ( DISTINCT - 23 ) + - COUNT ( * ) WHEN 64 + 0 THEN - 37 * - 40 / 69 * - + 19 * + CAST ( NULL AS INTEGER ) + AVG ( - 34 ) END * - CAST ( + 80 AS INTEGER ) + - 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT 53 DIV + 70 + + 60
----
60

skipif mysql # not compatible
query I rowsort label-4407
SELECT 53 / + 70 + + 60
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4408
SELECT DISTINCT - 63 DIV + 24 + + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT - 63 / + 24 + + + COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT ALL - 55 DIV 93 + - - 85 + - + 75
----
10

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL - 55 / 93 + - - 85 + - + 75
----
10

query I rowsort
SELECT + + 97 * 6 AS col1
----
582

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4411
SELECT + 18 DIV - 61 col2, 43 + - - COUNT( * ) DIV - + ( - 23 )
----
0
43

skipif mysql # not compatible
query II rowsort label-4411
SELECT + 18 / - 61 col2, 43 + - - COUNT ( * ) / - + ( - 23 )
----
0
43

query I rowsort
SELECT + - 22 - + 87 * 54 AS col0
----
-4720

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT ( + COUNT( * ) ) AS col1, + NULLIF ( - - 24, + 2 )
----
1
24

skipif mysql # not compatible
query II rowsort label-4413
SELECT ( + COUNT ( * ) ) AS col1, + NULLIF ( - - 24, + 2 )
----
1
24

query II rowsort
SELECT DISTINCT + 89 col2, 17 - + 6
----
89
11

query II rowsort
SELECT 61, 80 AS col2
----
61
80

onlyif mysql # aggregate syntax: 
query II rowsort label-4416
SELECT ALL + COUNT( * ), 57 - - 73 * + 2 col1
----
1
203

skipif mysql # not compatible
query II rowsort label-4416
SELECT ALL + COUNT ( * ), 57 - - 73 * + 2 col1
----
1
203

query I rowsort
SELECT ALL + + CASE 74 WHEN 35 * + - 42 THEN + 26 + - 70 - + 5 END
----
NULL

query I rowsort
SELECT + + 95 * - - 5 * + - 1 + 81 + + 52 AS col1
----
-342

query II rowsort
SELECT + 90 col1, - 53 + + 72 * + 16 * - 22 AS col1
----
90
-25397

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4420
SELECT 4, - 77 DIV 45 + + COUNT( * ) * - 57 * 7 DIV - - 39 + - 84 AS col1
----
4
-95

skipif mysql # not compatible
query II rowsort label-4420
SELECT 4, - 77 / 45 + + COUNT ( * ) * - 57 * 7 / - - 39 + - 84 AS col1
----
4
-95

query I rowsort
SELECT - 4 * - - NULLIF ( - - 39, 83 + 64 ) AS col0
----
-156

query I rowsort
SELECT DISTINCT 74 * - - 56
----
4144

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT - + 40 * + - 21 + - COUNT( * ) AS col1
----
839

skipif mysql # not compatible
query I rowsort label-4423
SELECT - + 40 * + - 21 + - COUNT ( * ) AS col1
----
839

query II rowsort
SELECT ALL - 34 * - - 16 AS col1, - 88 AS col0
----
-544
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4425
SELECT ALL 31 * CAST( + SUM( ALL + 43 ) AS DECIMAL ) / - 97 + - 91 + + + 68 * 1 * + + CAST( NULL AS SIGNED ) + - 36 + 64 col2, + COALESCE ( + + NULLIF ( + 34, + 75 ), + 59 ) AS col1
----
NULL
34

skipif mysql # not compatible
query II rowsort label-4425
SELECT ALL 31 * CAST ( + SUM ( ALL + 43 ) AS REAL ) / - 97 + - 91 + + + 68 * 1 * + + CAST ( NULL AS INTEGER ) + - 36 + 64 col2, + COALESCE ( + + NULLIF ( + 34, + 75 ), + 59 ) AS col1
----
NULL
34

query II rowsort
SELECT DISTINCT ( + 92 ), 50 col0
----
92
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4427
SELECT - 5 DIV COALESCE ( 74, - - CASE - 28 WHEN - 93 THEN - COALESCE ( - - 96, + + 33 * + - 9 - + COUNT( * ) * - 19 * COUNT( * ) + - + 24 - + + 81 ) END ) * COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4427
SELECT - 5 / COALESCE ( 74, - - CASE - 28 WHEN - 93 THEN - COALESCE ( - - 96, + + 33 * + - 9 - + COUNT ( * ) * - 19 * COUNT ( * ) + - + 24 - + + 81 ) END ) * COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT ALL NULLIF ( + COUNT( * ), 45 )
----
1

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL NULLIF ( + COUNT ( * ), 45 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT DISTINCT CAST( - AVG ( DISTINCT - 82 ) AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT CAST ( - AVG ( DISTINCT - 82 ) AS INTEGER )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4430
SELECT ALL - 20 DIV + - 95 col1
----
0

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL - 20 / + - 95 col1
----
0

query II rowsort
SELECT ALL ( 24 ), - 61 + + 50 + + 28 AS col2
----
24
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT - CAST( NULL AS SIGNED ) * + 83 * + 36 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT - CAST ( NULL AS INTEGER ) * + 83 * + 36 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT - COUNT( 26 ) - 65
----
-66

skipif mysql # not compatible
query I rowsort label-4433
SELECT - COUNT ( 26 ) - 65
----
-66

query I rowsort
SELECT - 63 + 25 AS col1
----
-38

query I rowsort
SELECT - 80 * + 55 * + 18
----
-79200

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT - COALESCE ( COUNT( * ), - + 87 ) + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4436
SELECT - COALESCE ( COUNT ( * ), - + 87 ) + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL + 30 + 6
----
36

query I rowsort
SELECT DISTINCT NULLIF ( + 49, 6 )
----
49

query I rowsort
SELECT - 15 + 95 col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4440
SELECT ALL - 30 + - + 25 + 47 + CAST( NULL AS SIGNED ) * + + 6 + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL - 30 + - + 25 + 47 + CAST ( NULL AS INTEGER ) * + + 6 + - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 63 col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4442
SELECT ALL + COUNT( * ) + - CAST( + 90 AS SIGNED ) * - 91
----
8191

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL + COUNT ( * ) + - CAST ( + 90 AS INTEGER ) * - 91
----
8191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4443
SELECT 82 + - - 67 + - + 43 / - SUM( ALL - - 63 ) * + CASE - 10 WHEN - 53 THEN + 19 WHEN - CAST( + - COUNT( * ) AS SIGNED ) THEN COUNT( * ) / + CASE + + 38 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + 44 END END + + - 19 AS col1, - COUNT( * ) * - + 31 AS col2
----
NULL
31

skipif mysql # not compatible
query II rowsort label-4443
SELECT 82 + - - 67 + - + 43 / - SUM ( ALL - - 63 ) * + CASE - 10 WHEN - 53 THEN + 19 WHEN - CAST ( + - COUNT ( * ) AS INTEGER ) THEN COUNT ( * ) / + CASE + + 38 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 44 END END + + - 19 AS col1, - COUNT ( * ) * - + 31 AS col2
----
NULL
31

query I rowsort
SELECT ALL - COALESCE ( + 9, - - 12 * - - 89 ) * 58 - - 48
----
-474

query I rowsort
SELECT DISTINCT - 23 - - ( - - 88 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT - COALESCE ( + + 90, - 59, + 22 * - COUNT( * ) - + 23 + - 27 )
----
-90

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT - COALESCE ( + + 90, - 59, + 22 * - COUNT ( * ) - + 23 + - 27 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL - ( CASE + 31 WHEN COUNT( * ) THEN 42 * + 5 + - 92 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - ( CASE + 31 WHEN COUNT ( * ) THEN 42 * + 5 + - 92 END )
----
NULL

query II rowsort
SELECT ALL 73 - - 95 AS col1, 70 * - 47
----
168
-3290

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT 32 * MIN( - - 37 ) col2
----
1184

skipif mysql # not compatible
query I rowsort label-4449
SELECT 32 * MIN ( - - 37 ) col2
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT + + MIN( + NULLIF ( - + 75, 10 + - - 66 ) ) col1
----
-75

skipif mysql # not compatible
query I rowsort label-4450
SELECT + + MIN ( + NULLIF ( - + 75, 10 + - - 66 ) ) col1
----
-75

query I rowsort
SELECT ALL - 30 * - 17 * - + 16 * + 20 * + - 39 AS col2
----
6364800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4452
SELECT COUNT( * ) * ( + CASE + 66 WHEN + 27 THEN COUNT( * ) WHEN + CAST( 1 AS SIGNED ) + + 57 THEN NULL ELSE + - 15 END ) AS col0, - 46 + + CAST( + 65 AS SIGNED ) + - 89 DIV - 50 col1
----
-15
20

skipif mysql # not compatible
query II rowsort label-4452
SELECT COUNT ( * ) * ( + CASE + 66 WHEN + 27 THEN COUNT ( * ) WHEN + CAST ( 1 AS INTEGER ) + + 57 THEN NULL ELSE + - 15 END ) AS col0, - 46 + + CAST ( + 65 AS INTEGER ) + - 89 / - 50 col1
----
-15
20

query I rowsort
SELECT - 79 * 46 AS col0
----
-3634

query I rowsort
SELECT - NULLIF ( + 48, + 19 ) * + + ( - - 65 ) AS col2
----
-3120

query I rowsort
SELECT - 32 + + 77 + 33 * + 20 * + 29 AS col2
----
19185

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT - 6 DIV - + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4456
SELECT - 6 / - + 92 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4457
SELECT - 28 * + - COUNT( * ) DIV 49 + - 12 + - COUNT( * ) * - + 86 * - 55 * 90 AS col0, + COUNT( * ) col0
----
-425712
1

skipif mysql # not compatible
query II rowsort label-4457
SELECT - 28 * + - COUNT ( * ) / 49 + - 12 + - COUNT ( * ) * - + 86 * - 55 * 90 AS col0, + COUNT ( * ) col0
----
-425712
1

query I rowsort
SELECT ALL - ( + - 81 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4459
SELECT - NULLIF ( + COUNT( * ), - 50 + + 73 + - - 13 ) * 15 + - 18 * + 49 + + 67 * - - 74 * - COUNT( * ) + 37 AS col2, 18 * + 19 col2
----
-5818
342

skipif mysql # not compatible
query II rowsort label-4459
SELECT - NULLIF ( + COUNT ( * ), - 50 + + 73 + - - 13 ) * 15 + - 18 * + 49 + + 67 * - - 74 * - COUNT ( * ) + 37 AS col2, 18 * + 19 col2
----
-5818
342

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4460
SELECT 81 AS col2, - 11 DIV + COUNT( * ) * - - 1 AS col0, + + 80 * COUNT( * ) * + ( + 16 )
----
81
-11
1280

skipif mysql # not compatible
query III rowsort label-4460
SELECT 81 AS col2, - 11 / + COUNT ( * ) * - - 1 AS col0, + + 80 * COUNT ( * ) * + ( + 16 )
----
81
-11
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL 11 + + - COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL 11 + + - COUNT ( * ) AS col2
----
10

query I rowsort
SELECT DISTINCT 70 + + 47 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL - COALESCE ( + 54, - 79, - + 12 ) + + - 27 + COUNT( * ) col1
----
-80

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL - COALESCE ( + 54, - 79, - + 12 ) + + - 27 + COUNT ( * ) col1
----
-80

query I rowsort
SELECT ALL 5 + - 50 col0
----
-45

query II rowsort
SELECT - 36 AS col0, 16 AS col1
----
-36
16

query I rowsort
SELECT + 5 * + COALESCE ( 15, - - 56, 96 + - 71 ) + + 51
----
126

query I rowsort
SELECT DISTINCT 40 * + 44 AS col1
----
1760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4468
SELECT ALL 57 + - + 45 + CAST( NULL AS SIGNED ) + + - 27 * - COUNT( + + 51 ) * + ( + + ( - SUM( 99 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL 57 + - + 45 + CAST ( NULL AS INTEGER ) + + - 27 * - COUNT ( + + 51 ) * + ( + + ( - SUM ( 99 ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT SUM( ALL - ( + - 62 ) ) * - NULLIF ( 18, - + ( - + 90 ) + 76 ) AS col2
----
-1116

skipif mysql # not compatible
query I rowsort label-4469
SELECT SUM ( ALL - ( + - 62 ) ) * - NULLIF ( 18, - + ( - + 90 ) + 76 ) AS col2
----
-1116

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT 62 * 81 + NULLIF ( 97, - + 1 ) + + CASE 7 WHEN - + 3 THEN NULL WHEN + - 43 * + SUM( DISTINCT - 78 ) THEN - 54 ELSE 36 + - 42 END + MIN( + 88 ) + - + ( - 55 ) * - + 16 AS col0
----
4321

skipif mysql # not compatible
query I rowsort label-4470
SELECT 62 * 81 + NULLIF ( 97, - + 1 ) + + CASE 7 WHEN - + 3 THEN NULL WHEN + - 43 * + SUM ( DISTINCT - 78 ) THEN - 54 ELSE 36 + - 42 END + MIN ( + 88 ) + - + ( - 55 ) * - + 16 AS col0
----
4321

query I rowsort
SELECT DISTINCT 4 * + 60 * - - ( + 24 ) * - 93 + + 27
----
-535653

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4472
SELECT ALL 3, CAST( NULL AS SIGNED ) AS col2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4472
SELECT ALL 3, CAST ( NULL AS INTEGER ) AS col2
----
3
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4473
SELECT ALL + 98 + + - 17 DIV - 89, 18 AS col1
----
98
18

skipif mysql # not compatible
query II rowsort label-4473
SELECT ALL + 98 + + - 17 / - 89, 18 AS col1
----
98
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT DISTINCT 56 + + + 57 + + SUM( - 39 ) - COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT 56 + + + 57 + + SUM ( - 39 ) - COUNT ( * ) AS col2
----
73

query I rowsort
SELECT 18 + - - 68 AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT DISTINCT + 81 DIV + - 71 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + 81 / + - 71 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4477
SELECT 5 + + + 31 DIV + 64
----
5

skipif mysql # not compatible
query I rowsort label-4477
SELECT 5 + + + 31 / + 64
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4478
SELECT 21 DIV + - MIN( 8 ) + - - CAST( - CAST( + - 76 AS DECIMAL ) AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-4478
SELECT 21 / + - MIN ( 8 ) + - - CAST ( - CAST ( + - 76 AS REAL ) AS INTEGER )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT NULLIF ( + + 26, - ( + CASE - 39 WHEN + - 2 THEN NULL ELSE - 92 + CASE + 59 WHEN - 31 THEN NULL ELSE + + AVG ( DISTINCT - 30 ) END + - COUNT( DISTINCT 49 ) END ) / + 9 * - COUNT( * ) ) + + + 74 + - - ( + 42 ) col2
----
142

skipif mysql # not compatible
query I rowsort label-4479
SELECT NULLIF ( + + 26, - ( + CASE - 39 WHEN + - 2 THEN NULL ELSE - 92 + CASE + 59 WHEN - 31 THEN NULL ELSE + + AVG ( DISTINCT - 30 ) END + - COUNT ( DISTINCT 49 ) END ) / + 9 * - COUNT ( * ) ) + + + 74 + - - ( + 42 ) col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT - MAX( - - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-4480
SELECT - MAX ( - - 45 )
----
-45

query I rowsort
SELECT ALL - 94 * - 64
----
6016

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT ALL - - 67 * 70 DIV + 39 - + - 62 AS col0
----
182

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - - 67 * 70 / + 39 - + - 62 AS col0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT DISTINCT - + COUNT( * ) * - + 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT - + COUNT ( * ) * - + 60 AS col2
----
60

query I rowsort
SELECT DISTINCT - + 10 * + 28 AS col2
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT 46 * 52 + COUNT( * ) * - 79
----
2313

skipif mysql # not compatible
query I rowsort label-4485
SELECT 46 * 52 + COUNT ( * ) * - 79
----
2313

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT + 68 DIV - 53 + 66
----
65

skipif mysql # not compatible
query I rowsort label-4486
SELECT + 68 / - 53 + 66
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4487
SELECT ALL - 36, + CASE - - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) + - + CASE - NULLIF ( 70, - 24 * - 0 ) WHEN - 79 THEN 83 / - + COUNT( * ) WHEN - - ( 64 ) THEN 37 ELSE - 29 * 24 END + - + 14 THEN - 17 ELSE NULL END * ( - - COALESCE ( + 92, - 10 ) ) * 58 AS col0
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-4487
SELECT ALL - 36, + CASE - - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) + - + CASE - NULLIF ( 70, - 24 * - 0 ) WHEN - 79 THEN 83 / - + COUNT ( * ) WHEN - - ( 64 ) THEN 37 ELSE - 29 * 24 END + - + 14 THEN - 17 ELSE NULL END * ( - - COALESCE ( + 92, - 10 ) ) * 58 AS col0
----
-36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT + NULLIF ( 79, + + NULLIF ( + + 31, + 41 / + 64 + + COUNT( * ) + 0 * + 79 - - + 55 * - COUNT( * ) + - 71 ) ) col2
----
79

skipif mysql # not compatible
query I rowsort label-4488
SELECT + NULLIF ( 79, + + NULLIF ( + + 31, + 41 / + 64 + + COUNT ( * ) + 0 * + 79 - - + 55 * - COUNT ( * ) + - 71 ) ) col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT DISTINCT - MIN( - - 69 ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT - MIN ( - - 69 ) col1
----
-69

query II rowsort
SELECT - 9 col2, 2
----
-9
2

query I rowsort
SELECT ALL - + 80 + 33 col1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4492
SELECT 48 DIV - - 82
----
0

skipif mysql # not compatible
query I rowsort label-4492
SELECT 48 / - - 82
----
0

query I rowsort
SELECT DISTINCT 99 * + 7 * + + 69 AS col2
----
47817

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4494
SELECT CAST( NULL AS SIGNED ) * - - 59 AS col0, - 96
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-4494
SELECT CAST ( NULL AS INTEGER ) * - - 59 AS col0, - 96
----
NULL
-96

query I rowsort
SELECT ALL 51 + 33 - + 62 AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT DISTINCT - 57 * 13 * + + CASE + ( - 78 ) WHEN - 32 + 60 + + + CAST( 42 AS SIGNED ) THEN NULL WHEN 18 * + COUNT( * ) THEN + ( - 24 ) WHEN - 44 / - + 55 - + - 55 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT - 57 * 13 * + + CASE + ( - 78 ) WHEN - 32 + 60 + + + CAST ( 42 AS INTEGER ) THEN NULL WHEN 18 * + COUNT ( * ) THEN + ( - 24 ) WHEN - 44 / - + 55 - + - 55 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT ALL COUNT( * ) - - 17 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL COUNT ( * ) - - 17 AS col2
----
18

query I rowsort
SELECT + 9 * - 18 * + 28
----
-4536

query I rowsort
SELECT + 80 + - 70 col2
----
10

query I rowsort
SELECT + ( + - 98 ) + 61
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-4501
SELECT - NULLIF ( + + COUNT( * ), - 67 * + + 27 * ( - ( + COUNT( * ) ) ) * - + 55 + - 47 ) AS col0, 23
----
-1
23

skipif mysql # not compatible
query II rowsort label-4501
SELECT - NULLIF ( + + COUNT ( * ), - 67 * + + 27 * ( - ( + COUNT ( * ) ) ) * - + 55 + - 47 ) AS col0, 23
----
-1
23

query I rowsort
SELECT ALL ( + - CASE + - 14 WHEN - 39 THEN + ( - ( COALESCE ( - ( 58 ), + 28, - 35 ) ) ) ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL CASE - 32 WHEN + - 95 THEN + 6 / - 43 ELSE NULL END * - - 43 + 1 + - - 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT - 25 + - 81 + - MAX( 85 ) * + 13 AS col0
----
-1211

skipif mysql # not compatible
query I rowsort label-4504
SELECT - 25 + - 81 + - MAX ( 85 ) * + 13 AS col0
----
-1211

query I rowsort
SELECT + 65 * - - 36 + + 53 + + - 95 col0
----
2298

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT - - MIN( ALL + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-4506
SELECT - - MIN ( ALL + 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL + NULLIF ( COUNT( * ), - 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL + NULLIF ( COUNT ( * ), - 2 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4508
SELECT ALL + 97 DIV COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL + 97 / COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + - 91 * COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4509
SELECT + - 91 * COUNT ( * ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4510
SELECT - 74 / + MAX( DISTINCT - - 4 ) * + 17 + + ( - + NULLIF ( - - 37, 23 * - NULLIF ( 97, + + 61 ) / 3 + - - COALESCE ( - COUNT( * ), - - COUNT( + - 50 ) * + CASE - COUNT( * ) WHEN + 83 THEN - 36 / + 19 ELSE - COUNT( * ) * + + CAST( + COUNT( * ) AS DECIMAL ) - ( - 61 ) END ) ) ) + - ( + ( 98 ) ) / 97 + CASE 11 WHEN + ( CASE + 83 WHEN - 51 * COUNT( * ) THEN 83 END ) THEN 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT - 74 / + MAX ( DISTINCT - - 4 ) * + 17 + + ( - + NULLIF ( - - 37, 23 * - NULLIF ( 97, + + 61 ) / 3 + - - COALESCE ( - COUNT ( * ), - - COUNT ( + - 50 ) * + CASE - COUNT ( * ) WHEN + 83 THEN - 36 / + 19 ELSE - COUNT ( * ) * + + CAST ( + COUNT ( * ) AS REAL ) - ( - 61 ) END ) ) ) + - ( + ( 98 ) ) / 97 + CASE 11 WHEN + ( CASE + 83 WHEN - 51 * COUNT ( * ) THEN 83 END ) THEN 94 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4511
SELECT DISTINCT CAST( - - 7 AS SIGNED ) DIV + + 14 - 38 * - 14
----
532

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT CAST ( - - 7 AS INTEGER ) / + + 14 - 38 * - 14
----
532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4512
SELECT DISTINCT + 77 * COUNT( * ) * 30 + + - ( + - COUNT( * ) ) - COALESCE ( + 32, 22 * - ( - + COALESCE ( + 89, + SUM( ALL + 61 ) * + COUNT( * ) + + 96 ) ), - - 29 + - 34 + + + SUM( DISTINCT + + 15 ) * - 46 ) + + 14 - + 84 + + CAST( NULL AS SIGNED ) * - SUM( + 58 ) + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT + 77 * COUNT ( * ) * 30 + + - ( + - COUNT ( * ) ) - COALESCE ( + 32, 22 * - ( - + COALESCE ( + 89, + SUM ( ALL + 61 ) * + COUNT ( * ) + + 96 ) ), - - 29 + - 34 + + + SUM ( DISTINCT + + 15 ) * - 46 ) + + 14 - + 84 + + CAST ( NULL AS INTEGER ) * - SUM ( + 58 ) + - 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4513
SELECT ALL - COALESCE ( + NULLIF ( + MAX( 75 ), - ( - 78 ) ), - 80 * 38 + - COUNT( * ) * + - 99 + + ( - ( - 73 ) ) - - 47 + - MAX( + NULLIF ( CAST( + 64 AS SIGNED ), - + 16 ) ) * - 96 * - + CAST( NULL AS SIGNED ) * 5, 17 ) * + 22
----
-1650

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL - COALESCE ( + NULLIF ( + MAX ( 75 ), - ( - 78 ) ), - 80 * 38 + - COUNT ( * ) * + - 99 + + ( - ( - 73 ) ) - - 47 + - MAX ( + NULLIF ( CAST ( + 64 AS INTEGER ), - + 16 ) ) * - 96 * - + CAST ( NULL AS INTEGER ) * 5, 17 ) * + 22
----
-1650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4514
SELECT ALL - - 19 * - ( - - 37 ) + - NULLIF ( - CAST( + + 64 AS SIGNED ), + + 5 * + COUNT( * ) * + + 23 * 21 ) AS col0
----
-639

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL - - 19 * - ( - - 37 ) + - NULLIF ( - CAST ( + + 64 AS INTEGER ), + + 5 * + COUNT ( * ) * + + 23 * 21 ) AS col0
----
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT - 50 - - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-4515
SELECT - 50 - - COUNT ( * )
----
-49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4516
SELECT + CAST( + + 44 AS SIGNED ) DIV ( 53 ) + - 4 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4516
SELECT + CAST ( + + 44 AS INTEGER ) / ( 53 ) + - 4 AS col2
----
-4

query I rowsort
SELECT - 44 * + 79 + - - 26 AS col0
----
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT + COUNT( DISTINCT + 42 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4518
SELECT + COUNT ( DISTINCT + 42 ) AS col1
----
1

query II rowsort
SELECT NULLIF ( 60, 79 ) AS col1, 10 * + 92 * 54
----
60
49680

query I rowsort
SELECT - 64 + - + ( + 14 )
----
-78

query I rowsort
SELECT + 69 - + - 61 AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL + 61 * + 96 + + NULLIF ( + 16, + - COUNT( * ) + - + COUNT( * ) ) + - 19
----
5853

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + 61 * + 96 + + NULLIF ( + 16, + - COUNT ( * ) + - + COUNT ( * ) ) + - 19
----
5853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4523
SELECT - CAST( - CASE - 98 WHEN - 0 * + CAST( 24 AS SIGNED ) THEN NULL WHEN - 8 + - 76 THEN NULL WHEN - COUNT( * ) - 5 * - + 97 THEN - + 88 END AS SIGNED ) * + 27 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT - CAST ( - CASE - 98 WHEN - 0 * + CAST ( 24 AS INTEGER ) THEN NULL WHEN - 8 + - 76 THEN NULL WHEN - COUNT ( * ) - 5 * - + 97 THEN - + 88 END AS INTEGER ) * + 27 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT - COUNT( * ) + - + MIN( + ( - 7 ) ) + 62 col2
----
68

skipif mysql # not compatible
query I rowsort label-4524
SELECT - COUNT ( * ) + - + MIN ( + ( - 7 ) ) + 62 col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4525
SELECT ALL CAST( NULL AS SIGNED ) * - - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL CAST ( NULL AS INTEGER ) * - - 45 AS col1
----
NULL

query I rowsort
SELECT - 10 + + 4 + 33 AS col1
----
27

query I rowsort
SELECT ALL + COALESCE ( + 74, - 55, 56 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT MIN( - COALESCE ( - - 49, + 38 * 96 * - + 53 + 38, + 46 * + + 11 * - 27 / - 82 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-4528
SELECT MIN ( - COALESCE ( - - 49, + 38 * 96 * - + 53 + 38, + 46 * + + 11 * - 27 / - 82 ) )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT DISTINCT CAST( 76 AS SIGNED ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT CAST ( 76 AS INTEGER ) AS col2
----
76

query I rowsort
SELECT ALL 68 * + - 42
----
-2856

onlyif mysql # DIV for integer division: 
query I rowsort label-4531
SELECT + 79 DIV + + 2
----
39

skipif mysql # not compatible
query I rowsort label-4531
SELECT + 79 / + + 2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT + COUNT( * ) * - 78 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT + COUNT ( * ) * - 78 AS col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-4533
SELECT ALL 38 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL 38 / + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ( NULLIF ( - - COUNT( * ), - 62 + - COUNT( * ) * + COUNT( * ) + + - 91 + - 90 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4534
SELECT ( NULLIF ( - - COUNT ( * ), - 62 + - COUNT ( * ) * + COUNT ( * ) + + - 91 + - 90 ) )
----
1

query II rowsort
SELECT ALL 41, 66 AS col2
----
41
66

onlyif mysql # aggregate syntax: 
query III rowsort label-4536
SELECT 83 AS col2, 73 + COUNT( * ), - 79 AS col2
----
83
74
-79

skipif mysql # not compatible
query III rowsort label-4536
SELECT 83 AS col2, 73 + COUNT ( * ), - 79 AS col2
----
83
74
-79

query II rowsort
SELECT - - 17 AS col0, 34 + 87 + - + 18
----
17
103

query I rowsort
SELECT ALL 2 + - 91 AS col2
----
-89

query I rowsort
SELECT ALL - 42 + - - 24
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4540
SELECT + CAST( COUNT( + + 21 ) AS SIGNED ) + - - 94
----
95

skipif mysql # not compatible
query I rowsort label-4540
SELECT + CAST ( COUNT ( + + 21 ) AS INTEGER ) + - - 94
----
95

query I rowsort
SELECT DISTINCT 24 + 1
----
25

query II rowsort
SELECT + 98 * + 41 * - + 1 AS col0, 77 + ( + 20 ) - 90 * - 65 AS col1
----
-4018
5947

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT ALL MIN( 11 ) + - 73
----
-62

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL MIN ( 11 ) + - 73
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4544
SELECT + 9 DIV - + NULLIF ( - CASE 22 WHEN - 72 THEN CASE + - 16 WHEN - ( - COUNT( * ) ) + 44 THEN 60 + + 76 * + + 23 * + 63 * + + 40 WHEN + - 63 * - + 88 * + 91 + 78 + - + 25 THEN + 80 + 44 + + + 47 + - ( + - 39 ) * 99 ELSE NULL END WHEN 0 * ( 67 ) + + 92 THEN NULL ELSE + COUNT( * ) END, 87 * 26 ) + + 9 * 22 AS col1
----
207

skipif mysql # not compatible
query I rowsort label-4544
SELECT + 9 / - + NULLIF ( - CASE 22 WHEN - 72 THEN CASE + - 16 WHEN - ( - COUNT ( * ) ) + 44 THEN 60 + + 76 * + + 23 * + 63 * + + 40 WHEN + - 63 * - + 88 * + 91 + 78 + - + 25 THEN + 80 + 44 + + + 47 + - ( + - 39 ) * 99 ELSE NULL END WHEN 0 * ( 67 ) + + 92 THEN NULL ELSE + COUNT ( * ) END, 87 * 26 ) + + 9 * 22 AS col1
----
207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4545
SELECT DISTINCT - + CASE 43 WHEN COUNT( * ) * + 38 THEN - 97 * 6 WHEN COUNT( * ) THEN COUNT( * ) * NULLIF ( + COUNT( * ), + 79 * CAST( - CAST( + 15 AS SIGNED ) AS SIGNED ) ) + + + 81 ELSE NULL END / 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT - + CASE 43 WHEN COUNT ( * ) * + 38 THEN - 97 * 6 WHEN COUNT ( * ) THEN COUNT ( * ) * NULLIF ( + COUNT ( * ), + 79 * CAST ( - CAST ( + 15 AS INTEGER ) AS INTEGER ) ) + + + 81 ELSE NULL END / 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT - - 4 + COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4546
SELECT - - 4 + COUNT ( * ) AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4547
SELECT + + COALESCE ( 8, + + 80 * + SUM( ALL - + ( + 61 ) ) + - 34 + - COUNT( * ) * - + 83 + 39 * + CASE + 63 WHEN - AVG ( DISTINCT + 95 ) / - + MAX( - - 87 ) - ( CAST( CASE ( - - 20 ) WHEN 68 THEN - 10 * + - 88 ELSE NULL END AS SIGNED ) ) * - 52 + ( + CASE - MIN( ALL - 86 ) WHEN MAX( + 43 ) * - COUNT( * ) THEN NULL WHEN COUNT( ALL + 58 ) + 39 / + COUNT( * ) THEN + 98 + - 46 END ) THEN - 82 + + COUNT( * ) WHEN 65 - 86 THEN NULL WHEN 61 + - 89 * ( 34 * 60 ) THEN NULL WHEN 22 THEN - ( 38 ) ELSE NULL END * - 96 ) col2
----
8

skipif mysql # not compatible
query I rowsort label-4547
SELECT + + COALESCE ( 8, + + 80 * + SUM ( ALL - + ( + 61 ) ) + - 34 + - COUNT ( * ) * - + 83 + 39 * + CASE + 63 WHEN - AVG ( DISTINCT + 95 ) / - + MAX ( - - 87 ) - ( CAST ( CASE ( - - 20 ) WHEN 68 THEN - 10 * + - 88 ELSE NULL END AS INTEGER ) ) * - 52 + ( + CASE - MIN ( ALL - 86 ) WHEN MAX ( + 43 ) * - COUNT ( * ) THEN NULL WHEN COUNT ( ALL + 58 ) + 39 / + COUNT ( * ) THEN + 98 + - 46 END ) THEN - 82 + + COUNT ( * ) WHEN 65 - 86 THEN NULL WHEN 61 + - 89 * ( 34 * 60 ) THEN NULL WHEN 22 THEN - ( 38 ) ELSE NULL END * - 96 ) col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT + MIN( ALL 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4548
SELECT + MIN ( ALL 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4549
SELECT ALL - 79 DIV - 70 + + 57 - COUNT( * ) * + - 90 + + ( - - 53 ) DIV + 48 + + - COUNT( * )
----
148

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - 79 / - 70 + + 57 - COUNT ( * ) * + - 90 + + ( - - 53 ) / + 48 + + - COUNT ( * )
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4550
SELECT + COUNT( * ) DIV 49 col2
----
0

skipif mysql # not compatible
query I rowsort label-4550
SELECT + COUNT ( * ) / 49 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT + CASE - SUM( - 86 ) WHEN - MAX( - 60 ) * - 97 - - 10 THEN NULL ELSE + 81 * - - NULLIF ( - - 44, + COUNT( * ) ) END * - ( ( - - 48 ) ) col1
----
-171072

skipif mysql # not compatible
query I rowsort label-4551
SELECT + CASE - SUM ( - 86 ) WHEN - MAX ( - 60 ) * - 97 - - 10 THEN NULL ELSE + 81 * - - NULLIF ( - - 44, + COUNT ( * ) ) END * - ( ( - - 48 ) ) col1
----
-171072

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4552
SELECT DISTINCT + COALESCE ( CASE + COUNT( * ) WHEN + 6 THEN NULL WHEN - 14 THEN - 76 + + ( + 87 ) DIV + 6 ELSE 79 END, + + 62 ) AS col0, - 47
----
79
-47

skipif mysql # not compatible
query II rowsort label-4552
SELECT DISTINCT + COALESCE ( CASE + COUNT ( * ) WHEN + 6 THEN NULL WHEN - 14 THEN - 76 + + ( + 87 ) / + 6 ELSE 79 END, + + 62 ) AS col0, - 47
----
79
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL - 75 * COUNT( * ) * - + 18 AS col2
----
1350

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL - 75 * COUNT ( * ) * - + 18 AS col2
----
1350

query II rowsort
SELECT 96, 53 AS col2
----
96
53

query I rowsort
SELECT ALL + 12 * + 27 AS col0
----
324

query II rowsort
SELECT + 84 AS col0, + 21
----
84
21

query I rowsort
SELECT ALL + 3 * + + 71
----
213

query I rowsort
SELECT 99 * + 73 AS col2
----
7227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4559
SELECT DISTINCT + CASE NULLIF ( - 62, ( - 67 ) ) WHEN - 59 THEN CASE - MIN( ALL - 47 ) WHEN + 63 * + + COALESCE ( 99, ( + 78 ) * - - 39, + COUNT( * ) * 67 / + CASE - 94 WHEN + COUNT( * ) THEN NULL ELSE + - 89 END, 33 ) THEN NULL WHEN - - CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) + - - CAST( - 63 AS DECIMAL ) THEN 47 + + COUNT( * ) END WHEN + COUNT( * ) THEN 17 END - + COUNT( - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT + CASE NULLIF ( - 62, ( - 67 ) ) WHEN - 59 THEN CASE - MIN ( ALL - 47 ) WHEN + 63 * + + COALESCE ( 99, ( + 78 ) * - - 39, + COUNT ( * ) * 67 / + CASE - 94 WHEN + COUNT ( * ) THEN NULL ELSE + - 89 END, 33 ) THEN NULL WHEN - - CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) + - - CAST ( - 63 AS REAL ) THEN 47 + + COUNT ( * ) END WHEN + COUNT ( * ) THEN 17 END - + COUNT ( - 36 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT ALL + COUNT( * ) * + SUM( + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL + COUNT ( * ) * + SUM ( + 34 )
----
34

query II rowsort
SELECT 91 col2, + 52 * - - 81
----
91
4212

onlyif mysql # aggregate syntax: 
query II rowsort label-4562
SELECT 26 AS col1, - COUNT( * )
----
26
-1

skipif mysql # not compatible
query II rowsort label-4562
SELECT 26 AS col1, - COUNT ( * )
----
26
-1

query II rowsort
SELECT 34 AS col2, 23 + + 85
----
34
108

query I rowsort
SELECT + 11 * - - 60 * - 99 - + - 23 AS col0
----
-65317

onlyif mysql # aggregate syntax: 
query II rowsort label-4565
SELECT ALL - 79 AS col0, - SUM( + - 70 )
----
-79
70

skipif mysql # not compatible
query II rowsort label-4565
SELECT ALL - 79 AS col0, - SUM ( + - 70 )
----
-79
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4566
SELECT ALL 63 AS col1, + 68 * + 32 * ( + MAX( ALL - 28 ) )
----
63
-60928

skipif mysql # not compatible
query II rowsort label-4566
SELECT ALL 63 AS col1, + 68 * + 32 * ( + MAX ( ALL - 28 ) )
----
63
-60928

query II rowsort
SELECT 26 AS col2, 80 + + - 91 AS col0
----
26
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT 27 * - ( + SUM( - 94 ) )
----
2538

skipif mysql # not compatible
query I rowsort label-4568
SELECT 27 * - ( + SUM ( - 94 ) )
----
2538

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4569
SELECT 33 - - - 89, 35 - + - 72 + - - CASE + - ( - 96 ) WHEN - - CAST( NULL AS SIGNED ) + 51 THEN 65 ELSE NULL END AS col2
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-4569
SELECT 33 - - - 89, 35 - + - 72 + - - CASE + - ( - 96 ) WHEN - - CAST ( NULL AS INTEGER ) + 51 THEN 65 ELSE NULL END AS col2
----
-56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL 90 + + 19 * COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL 90 + + 19 * COUNT ( * )
----
109

query I rowsort
SELECT - ( - + ( 12 ) ) AS col0
----
12

query I rowsort
SELECT 55 + - 80
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT + COUNT( * ) * + + 9 col2
----
9

skipif mysql # not compatible
query I rowsort label-4573
SELECT + COUNT ( * ) * + + 9 col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4574
SELECT - 16 DIV + ( - 60 )
----
0

skipif mysql # not compatible
query I rowsort label-4574
SELECT - 16 / + ( - 60 )
----
0

query I rowsort
SELECT 32 + 39 * + 28
----
1124

query II rowsort
SELECT ALL 82 AS col2, + 92 AS col1
----
82
92

query I rowsort
SELECT ALL - 69 + - 52 col0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4578
SELECT ALL + COUNT( * ) + CAST( NULL AS SIGNED ) / 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL + COUNT ( * ) + CAST ( NULL AS INTEGER ) / 16 AS col1
----
NULL

query II rowsort
SELECT - 43 AS col2, + 48
----
-43
48

query I rowsort
SELECT ALL + 30 + - 51
----
-21

query I rowsort
SELECT ALL - 56 + - 57
----
-113

query I rowsort
SELECT - - ( - - 47 ) AS col0
----
47

query II rowsort
SELECT - 77 AS col2, + 4 * - 88 + - - 59 AS col2
----
-77
-293

query I rowsort
SELECT ALL 2 + 73 AS col1
----
75

query I rowsort
SELECT 1 * + ( + - 3 ) AS col2
----
-3

query I rowsort
SELECT ALL 5 - + - ( + 23 )
----
28

query I rowsort
SELECT 93 * 46
----
4278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4588
SELECT COUNT( * ) / - + 74 - + 81 + MIN( + - CAST( NULL AS DECIMAL ) ) + + 39 * + 51 + + CAST( + - 2 AS SIGNED ) + 22 * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT COUNT ( * ) / - + 74 - + 81 + MIN ( + - CAST ( NULL AS REAL ) ) + + 39 * + 51 + + CAST ( + - 2 AS INTEGER ) + 22 * + 55
----
NULL

query I rowsort
SELECT DISTINCT 40 * - - 67 AS col0
----
2680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4590
SELECT COUNT( * ) DIV - - 43
----
0

skipif mysql # not compatible
query I rowsort label-4590
SELECT COUNT ( * ) / - - 43
----
0

query I rowsort
SELECT 83 * - - 78 AS col1
----
6474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4592
SELECT CAST( + 89 AS SIGNED ) + 10 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4592
SELECT CAST ( + 89 AS INTEGER ) + 10 AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4593
SELECT COUNT( * ) DIV 2, + 45 AS col0
----
0
45

skipif mysql # not compatible
query II rowsort label-4593
SELECT COUNT ( * ) / 2, + 45 AS col0
----
0
45

query I rowsort
SELECT 37 * - 0 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4595
SELECT 43 - + + COUNT( + + CAST( + ( - 35 ) AS SIGNED ) ) * + - 73 + - 62 - - COUNT( * ), 12 AS col0
----
55
12

skipif mysql # not compatible
query II rowsort label-4595
SELECT 43 - + + COUNT ( + + CAST ( + ( - 35 ) AS INTEGER ) ) * + - 73 + - 62 - - COUNT ( * ), 12 AS col0
----
55
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4596
SELECT 45 * - CAST( NULL AS SIGNED ) + - ( - - 35 ) + + 99 * + + COUNT( * ) / - + 13 * 12 * + 21 * + SUM( - + CAST( 43 AS DECIMAL ) ) * + 94 * - - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT 45 * - CAST ( NULL AS INTEGER ) + - ( - - 35 ) + + 99 * + + COUNT ( * ) / - + 13 * 12 * + 21 * + SUM ( - + CAST ( 43 AS REAL ) ) * + 94 * - - 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4597
SELECT DISTINCT MIN( 94 ) DIV + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT MIN ( 94 ) / + COUNT ( * )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4598
SELECT ( + 28 ) DIV - 52 * + 26
----
0

skipif mysql # not compatible
query I rowsort label-4598
SELECT ( + 28 ) / - 52 * + 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL 85 + COUNT( * ) + - 36 * - - 33 * + 51
----
-60502

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL 85 + COUNT ( * ) + - 36 * - - 33 * + 51
----
-60502

query I rowsort
SELECT 43 + 1 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT 52 + + + COUNT( * ) + - + COUNT( * ) + + ( - ( - ( - COUNT( * ) ) ) ) * + - COUNT( + 74 ) * - ( 1 ) + + - 69 - + 54
----
-72

skipif mysql # not compatible
query I rowsort label-4601
SELECT 52 + + + COUNT ( * ) + - + COUNT ( * ) + + ( - ( - ( - COUNT ( * ) ) ) ) * + - COUNT ( + 74 ) * - ( 1 ) + + - 69 - + 54
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT ALL + ( - - ( - CAST( NULL AS SIGNED ) ) ) + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL + ( - - ( - CAST ( NULL AS INTEGER ) ) ) + - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT 6 * - 81 + + + COUNT( * )
----
-485

skipif mysql # not compatible
query I rowsort label-4603
SELECT 6 * - 81 + + + COUNT ( * )
----
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT DISTINCT + + MAX( DISTINCT - 56 ) + 46 + 18
----
8

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT + + MAX ( DISTINCT - 56 ) + 46 + 18
----
8

query I rowsort
SELECT ALL + 40 + 24
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT DISTINCT + MIN( DISTINCT - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT + MIN ( DISTINCT - 52 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4607
SELECT DISTINCT - - 0 * 44 / - CAST( + - 28 AS SIGNED ) + - CASE + 74 WHEN + 76 THEN + 5 WHEN - - COALESCE ( 37, + 75 ) THEN + 29 * - ( + 93 ) + 22 + - 36 END + - ( 87 ) * 21 * MAX( DISTINCT - 97 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT - - 0 * 44 / - CAST ( + - 28 AS INTEGER ) + - CASE + 74 WHEN + 76 THEN + 5 WHEN - - COALESCE ( 37, + 75 ) THEN + 29 * - ( + 93 ) + 22 + - 36 END + - ( 87 ) * 21 * MAX ( DISTINCT - 97 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT + COUNT( 69 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4609
SELECT + COUNT ( 69 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT 95 - + COUNT( ALL + 9 )
----
94

skipif mysql # not compatible
query I rowsort label-4610
SELECT 95 - + COUNT ( ALL + 9 )
----
94

query I rowsort
SELECT ALL + 8 * + 25 col0
----
200

query I rowsort
SELECT - ( + - 53 ) AS col2
----
53

query I rowsort
SELECT ALL + 63 - + 42 + - - 50 AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4614
SELECT DISTINCT - - 29 * - + 24 * - MAX( ALL + + 38 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT - - 29 * - + 24 * - MAX ( ALL + + 38 ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL NULLIF ( + + 85, - COUNT( * ) ) / - 63 * - - CASE 64 WHEN 39 THEN 53 END + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL NULLIF ( + + 85, - COUNT ( * ) ) / - 63 * - - CASE 64 WHEN 39 THEN 53 END + + 73
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4616
SELECT + 93 * + NULLIF ( + + 33, + CASE WHEN - 37 = - - 93 * - 91 / ( - 53 ) THEN - + 36 ELSE NULL END ) AS col2, - 57 * ( + + 59 ) + 45 - + - COUNT( * ) - 1 AS col1
----
3069
-3318

skipif mysql # not compatible
query II rowsort label-4616
SELECT + 93 * + NULLIF ( + + 33, + CASE WHEN - 37 = - - 93 * - 91 / ( - 53 ) THEN - + 36 ELSE NULL END ) AS col2, - 57 * ( + + 59 ) + 45 - + - COUNT ( * ) - 1 AS col1
----
3069
-3318

query II rowsort
SELECT DISTINCT + ( + AVG ( CASE + NULLIF ( + 70, + - 62 / - 24 * - 75 + - - 9 ) WHEN - 80 + - + 12 THEN ( - NULLIF ( + 26, + - 87 + - 65 - - - 66 * 84 * + 39 ) ) * + 11 WHEN + 17 THEN - - NULLIF ( + + 52, - 28 / + ( + 13 ) ) ELSE NULL END ) ) AS col1, + 97 + + + 49 + 71 AS col1
----
NULL
217

onlyif mysql # DIV for integer division: 
query I rowsort label-4618
SELECT + 69 - 89 DIV - 90 + 74 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-4618
SELECT + 69 - 89 / - 90 + 74 AS col0
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-4619
SELECT + 87 + - + 3 + + MIN( DISTINCT + 52 ) AS col2, - 83
----
136
-83

skipif mysql # not compatible
query II rowsort label-4619
SELECT + 87 + - + 3 + + MIN ( DISTINCT + 52 ) AS col2, - 83
----
136
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT - MIN( - + 92 ) * 75 * + 14 * + 44 AS col2
----
4250400

skipif mysql # not compatible
query I rowsort label-4620
SELECT - MIN ( - + 92 ) * 75 * + 14 * + 44 AS col2
----
4250400

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT + 63 * - 34 * COUNT( * )
----
-2142

skipif mysql # not compatible
query I rowsort label-4621
SELECT + 63 * - 34 * COUNT ( * )
----
-2142

onlyif mysql # aggregate syntax: 
query II rowsort label-4622
SELECT + 40 AS col1, - 88 + + COUNT( * )
----
40
-87

skipif mysql # not compatible
query II rowsort label-4622
SELECT + 40 AS col1, - 88 + + COUNT ( * )
----
40
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4623
SELECT + 80 + - - 40 + 14 + - - 26 AS col0, + 84 + COUNT( * ) * + CAST( + 30 AS SIGNED ) col2
----
160
114

skipif mysql # not compatible
query II rowsort label-4623
SELECT + 80 + - - 40 + 14 + - - 26 AS col0, + 84 + COUNT ( * ) * + CAST ( + 30 AS INTEGER ) col2
----
160
114

query I rowsort
SELECT + 27 * + 70
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT ALL NULLIF ( + 21, + ( 99 ) + - 16 ) * - MAX( ( - 57 ) ) AS col1
----
1197

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL NULLIF ( + 21, + ( 99 ) + - 16 ) * - MAX ( ( - 57 ) ) AS col1
----
1197

query I rowsort
SELECT CASE - 39 WHEN 66 THEN 65 * + 40 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4627
SELECT DISTINCT SUM( + CASE + CAST( NULL AS SIGNED ) WHEN - 76 + + - 52 THEN - 29 ELSE NULL END ) * - 82 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT SUM ( + CASE + CAST ( NULL AS INTEGER ) WHEN - 76 + + - 52 THEN - 29 ELSE NULL END ) * - 82 col2
----
NULL

query I rowsort
SELECT ALL - 36 * + 6 * - 64 + - 65 AS col0
----
13759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4629
SELECT + NULLIF ( + CAST( - 18 AS SIGNED ), - - 82 / + MAX( + - 74 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-4629
SELECT + NULLIF ( + CAST ( - 18 AS INTEGER ), - - 82 / + MAX ( + - 74 ) )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT SUM( 71 )
----
71

skipif mysql # not compatible
query I rowsort label-4630
SELECT SUM ( 71 )
----
71

query I rowsort
SELECT + 85 - - - 46 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT ALL + 3 * + + 90 + + - 0 + + COUNT( * ) * - 24
----
246

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL + 3 * + + 90 + + - 0 + + COUNT ( * ) * - 24
----
246

query II rowsort
SELECT ALL - 89 * 77 + - 33 AS col2, - 4
----
-6886
-4

query II rowsort
SELECT + CASE - 85 WHEN + 80 * - + NULLIF ( COALESCE ( 74, + 34, + - 64 ), - + 43 * - 88 - + - ( 59 ) ) THEN - ( + + NULLIF ( 36, 80 ) ) WHEN + + 88 THEN NULL END * - - 78 AS col1, 66 AS col2
----
NULL
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4635
SELECT ALL 34 DIV + - 7
----
-4

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL 34 / + - 7
----
-4

query I rowsort
SELECT ALL - + 23 + - 88 AS col2
----
-111

query I rowsort
SELECT + 78 - - - 77 col1
----
1

query I rowsort
SELECT ALL - 72 * - 17 AS col2
----
1224

query I rowsort
SELECT DISTINCT + 61 - - + 29 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT SUM( ALL + + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-4640
SELECT SUM ( ALL + + 51 )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4641
SELECT + CAST( NULL AS SIGNED ) + + + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT + CAST ( NULL AS INTEGER ) + + + 19 AS col1
----
NULL

query I rowsort
SELECT ALL 75 - - CASE 19 WHEN + 1 THEN NULL ELSE + 24 END
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4643
SELECT + + COUNT( * ) + - 58 + 13 * ( - ( 15 ) ) - + + 80 + + ( 58 ) - + 2 DIV 12 AS col2
----
-274

skipif mysql # not compatible
query I rowsort label-4643
SELECT + + COUNT ( * ) + - 58 + 13 * ( - ( 15 ) ) - + + 80 + + ( 58 ) - + 2 / 12 AS col2
----
-274

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4644
SELECT + - 73 + 61 + - CAST( NULL AS DECIMAL ), + 32 AS col2
----
NULL
32

skipif mysql # not compatible
query II rowsort label-4644
SELECT + - 73 + 61 + - CAST ( NULL AS REAL ), + 32 AS col2
----
NULL
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT ALL - 67 - + + CAST( - 84 AS SIGNED ) col0
----
17

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL - 67 - + + CAST ( - 84 AS INTEGER ) col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4646
SELECT - 81 * - 68 * + COUNT( * ) * + 33, + 42 * COALESCE ( + COUNT( * ), - ( - 88 ) ) AS col0
----
181764
42

skipif mysql # not compatible
query II rowsort label-4646
SELECT - 81 * - 68 * + COUNT ( * ) * + 33, + 42 * COALESCE ( + COUNT ( * ), - ( - 88 ) ) AS col0
----
181764
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4647
SELECT ALL 24, 51 + + COUNT( * ) + 86 - + CAST( NULL AS SIGNED ) * - SUM( ALL + - 14 ) * COUNT( * ) / + - 46 * - - 95 * - 33 * 90 + + - MAX( 43 ) + + + 57 AS col0
----
24
NULL

skipif mysql # not compatible
query II rowsort label-4647
SELECT ALL 24, 51 + + COUNT ( * ) + 86 - + CAST ( NULL AS INTEGER ) * - SUM ( ALL + - 14 ) * COUNT ( * ) / + - 46 * - - 95 * - 33 * 90 + + - MAX ( 43 ) + + + 57 AS col0
----
24
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT - 8 / + CAST( NULL AS SIGNED ) / 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT - 8 / + CAST ( NULL AS INTEGER ) / 54 AS col1
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( - 77, - 25 ) * - 47 AS col2
----
-3619

onlyif mysql # DIV for integer division: 
query I rowsort label-4650
SELECT DISTINCT + 71 DIV - 33
----
-2

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT + 71 / - 33
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4651
SELECT - CAST( 31 AS SIGNED ) DIV - ( - 66 )
----
0

skipif mysql # not compatible
query I rowsort label-4651
SELECT - CAST ( 31 AS INTEGER ) / - ( - 66 )
----
0

query I rowsort
SELECT - 63 * + 6 AS col1
----
-378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4653
SELECT - CAST( 4 AS SIGNED ) + - + 89 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4653
SELECT - CAST ( 4 AS INTEGER ) + - + 89 AS col1
----
-93

query I rowsort
SELECT + 39 * + 10 col0
----
390

onlyif mysql # aggregate syntax: 
query II rowsort label-4655
SELECT ALL + MIN( DISTINCT - 21 ), + 33 AS col0
----
-21
33

skipif mysql # not compatible
query II rowsort label-4655
SELECT ALL + MIN ( DISTINCT - 21 ), + 33 AS col0
----
-21
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT 45 * + 19 + - - MIN( DISTINCT - 24 ) AS col1
----
831

skipif mysql # not compatible
query I rowsort label-4656
SELECT 45 * + 19 + - - MIN ( DISTINCT - 24 ) AS col1
----
831

query I rowsort
SELECT ALL + 54 * + 59 * + - 24
----
-76464

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT - 27 DIV - - 4
----
-6

skipif mysql # not compatible
query I rowsort label-4658
SELECT - 27 / - - 4
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4659
SELECT ALL - 81 / 97 + 91 + 39 * - CAST( NULL AS SIGNED ) * + - 68 + - + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL - 81 / 97 + 91 + 39 * - CAST ( NULL AS INTEGER ) * + - 68 + - + 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - 21 - CASE + + ( - 18 ) WHEN COUNT( * ) * - 36 THEN - ( - SUM( - + 82 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT - 21 - CASE + + ( - 18 ) WHEN COUNT ( * ) * - 36 THEN - ( - SUM ( - + 82 ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT ALL CAST( NULL AS SIGNED ) / - 93 + + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL CAST ( NULL AS INTEGER ) / - 93 + + 61 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4662
SELECT + COUNT( ALL + CAST( NULL AS SIGNED ) ) * - + 26
----
0

skipif mysql # not compatible
query I rowsort label-4662
SELECT + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * - + 26
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4663
SELECT - 86 / CAST( NULL AS SIGNED ) + + NULLIF ( ( + - 56 ), + CAST( NULL AS SIGNED ) + + COUNT( * ) + + - 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT - 86 / CAST ( NULL AS INTEGER ) + + NULLIF ( ( + - 56 ), + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + - 35 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( - 31 ) col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT - 61 + + COUNT( * ) + 92 * 95 * - + 39
----
-340920

skipif mysql # not compatible
query I rowsort label-4665
SELECT - 61 + + COUNT ( * ) + 92 * 95 * - + 39
----
-340920

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT NULLIF ( 50, + 25 + COUNT( * ) ) * CASE + 47 WHEN - ( + + 67 ) * + 70 + - 51 + 69 / - COALESCE ( 61, + COUNT( * ), + COALESCE ( - - 48, - 86 + SUM( DISTINCT 17 ) ) ) + - 87 THEN + - 32 END - + 72 + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT NULLIF ( 50, + 25 + COUNT ( * ) ) * CASE + 47 WHEN - ( + + 67 ) * + 70 + - 51 + 69 / - COALESCE ( 61, + COUNT ( * ), + COALESCE ( - - 48, - 86 + SUM ( DISTINCT 17 ) ) ) + - 87 THEN + - 32 END - + 72 + 91 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4667
SELECT ( - ( + MIN( - 94 ) ) ) AS col0, 32
----
94
32

skipif mysql # not compatible
query II rowsort label-4667
SELECT ( - ( + MIN ( - 94 ) ) ) AS col0, 32
----
94
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4668
SELECT ALL 32 * + COALESCE ( - CAST( - AVG ( + 71 ) AS SIGNED ), 37 ) AS col1
----
2272

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL 32 * + COALESCE ( - CAST ( - AVG ( + 71 ) AS INTEGER ), 37 ) AS col1
----
2272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4669
SELECT - MAX( ALL - 17 ) * + 41 * + + 94 + - CAST( + - 83 AS SIGNED ) + - 17 + - - ( - 72 )
----
65512

skipif mysql # not compatible
query I rowsort label-4669
SELECT - MAX ( ALL - 17 ) * + 41 * + + 94 + - CAST ( + - 83 AS INTEGER ) + - 17 + - - ( - 72 )
----
65512

query I rowsort
SELECT ALL - 38 * + 19 + 5 col1
----
-717

query I rowsort
SELECT - 87 * + 10 + + 5 AS col1
----
-865

query I rowsort
SELECT DISTINCT - 34 * 68
----
-2312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4673
SELECT ALL + 23 * - + 30 * - 29 * 84 DIV 12 + MIN( DISTINCT 31 )
----
140101

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL + 23 * - + 30 * - 29 * 84 / 12 + MIN ( DISTINCT 31 )
----
140101

query I rowsort
SELECT + 63 + - 47
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT - MIN( ALL - ( + 4 ) ) * + 23 * 39 col1
----
3588

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT - MIN ( ALL - ( + 4 ) ) * + 23 * 39 col1
----
3588

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4676
SELECT ALL - 41 * - 75 + 36 - - + CAST( NULL AS DECIMAL ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4676
SELECT ALL - 41 * - 75 + 36 - - + CAST ( NULL AS REAL ), COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT - ( COALESCE ( - 56, + 13 + + COUNT( * ) ) )
----
56

skipif mysql # not compatible
query I rowsort label-4677
SELECT - ( COALESCE ( - 56, + 13 + + COUNT ( * ) ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT + + COUNT( * ) * - 98 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4678
SELECT + + COUNT ( * ) * - 98 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT 9 * + - 3 - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-4679
SELECT 9 * + - 3 - COUNT ( * )
----
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-4680
SELECT ALL 53 DIV 71 AS col0, + 74
----
0
74

skipif mysql # not compatible
query II rowsort label-4680
SELECT ALL 53 / 71 AS col0, + 74
----
0
74

query I rowsort
SELECT + 1 + + 10 + - 98 * 10 * 98
----
-96029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4682
SELECT DISTINCT + COALESCE ( - 58, - 78 ) * + 0 / + 40 * - + 78 + SUM( + 66 ) + - + ( - + CAST( NULL AS SIGNED ) ) + - COUNT( * ) * - COUNT( - 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT + COALESCE ( - 58, - 78 ) * + 0 / + 40 * - + 78 + SUM ( + 66 ) + - + ( - + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * - COUNT ( - 59 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4683
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) * + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) * + 72
----
NULL

query I rowsort
SELECT ( - 55 ) * - 27 AS col0
----
1485

query I rowsort
SELECT 78 + + - 97 + + 44 AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4686
SELECT DISTINCT COALESCE ( + 62, 2 DIV + 8 * - 82 ) * - ( - 58 ) * + 99 - - COUNT( DISTINCT - ( 81 ) ) AS col1
----
356005

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT COALESCE ( + 62, 2 / + 8 * - 82 ) * - ( - 58 ) * + 99 - - COUNT ( DISTINCT - ( 81 ) ) AS col1
----
356005

query I rowsort
SELECT ALL 69 + + - 65 + - + 65 * - 79
----
5139

query I rowsort
SELECT ( - 87 ) - + 3 + 97 + + 62 - + 6 + - 15
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT COUNT( * ) - - 62 + + + ( 57 ) + - + 4
----
116

skipif mysql # not compatible
query I rowsort label-4689
SELECT COUNT ( * ) - - 62 + + + ( 57 ) + - + 4
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4690
SELECT COUNT( * ) DIV - - 53 + 79 * 16 + - 22 AS col1
----
1242

skipif mysql # not compatible
query I rowsort label-4690
SELECT COUNT ( * ) / - - 53 + 79 * 16 + - 22 AS col1
----
1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4691
SELECT ALL - 77 + - COALESCE ( - ( + 97 ), - - 82, CASE - 97 WHEN + + COUNT( ALL + 32 ) THEN NULL WHEN + + SUM( + 90 ) DIV + - COUNT( * ) THEN - - 74 - + 42 DIV - 1 END ), COUNT( * ) AS col0
----
20
1

skipif mysql # not compatible
query II rowsort label-4691
SELECT ALL - 77 + - COALESCE ( - ( + 97 ), - - 82, CASE - 97 WHEN + + COUNT ( ALL + 32 ) THEN NULL WHEN + + SUM ( + 90 ) / + - COUNT ( * ) THEN - - 74 - + 42 / - 1 END ), COUNT ( * ) AS col0
----
20
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT 53 + - 51 * - COUNT( ALL - - 91 ) + 93 AS col2
----
197

skipif mysql # not compatible
query I rowsort label-4692
SELECT 53 + - 51 * - COUNT ( ALL - - 91 ) + 93 AS col2
----
197

query I rowsort
SELECT 23 * + + 7 * + + 47 * - 62
----
-469154

query I rowsort
SELECT ALL - 78 + 52 + - - 87 * - 90 AS col1
----
-7856

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT COUNT( * ) * 27 * - + 53 + - 46 * 70
----
-4651

skipif mysql # not compatible
query I rowsort label-4695
SELECT COUNT ( * ) * 27 * - + 53 + - 46 * 70
----
-4651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4696
SELECT ALL - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL - + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT DISTINCT + 94 - - ( 43 ) + CAST( 58 AS SIGNED )
----
195

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT + 94 - - ( 43 ) + CAST ( 58 AS INTEGER )
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4698
SELECT + + COALESCE ( COUNT( * ), - - COUNT( * ) ) AS col1, - CASE - 72 WHEN ( MIN( DISTINCT + + 26 ) ) - COUNT( * ) * - CASE 32 WHEN 22 THEN NULL WHEN COUNT( * ) + - SUM( + 36 ) + - 48 THEN + 89 END THEN - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + + - COALESCE ( - 81, - 93 ) WHEN + + 53 THEN CASE 4 WHEN + 95 + + 35 THEN 20 * NULLIF ( - SUM( - 68 ), - 19 ) ELSE NULL END + - 45 * + 74 END + 38
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4698
SELECT + + COALESCE ( COUNT ( * ), - - COUNT ( * ) ) AS col1, - CASE - 72 WHEN ( MIN ( DISTINCT + + 26 ) ) - COUNT ( * ) * - CASE 32 WHEN 22 THEN NULL WHEN COUNT ( * ) + - SUM ( + 36 ) + - 48 THEN + 89 END THEN - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + + - COALESCE ( - 81, - 93 ) WHEN + + 53 THEN CASE 4 WHEN + 95 + + 35 THEN 20 * NULLIF ( - SUM ( - 68 ), - 19 ) ELSE NULL END + - 45 * + 74 END + 38
----
1
NULL

query I rowsort
SELECT - 0 * - + 80
----
0

query II rowsort
SELECT + - 24, - NULLIF ( + 29, - 22 ) AS col0
----
-24
-29

query I rowsort
SELECT 55 - 74 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT 44 * - + SUM( ALL 74 ) AS col1
----
-3256

skipif mysql # not compatible
query I rowsort label-4702
SELECT 44 * - + SUM ( ALL 74 ) AS col1
----
-3256

query I rowsort
SELECT - 40 + + 83 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT + CASE 38 WHEN - + 14 + - + 34 THEN - MAX( ALL + 23 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT + CASE 38 WHEN - + 14 + - + 34 THEN - MAX ( ALL + 23 ) END AS col2
----
NULL

query I rowsort
SELECT 24 * - 18 AS col1
----
-432

query I rowsort
SELECT DISTINCT - + 22 * - 61 AS col1
----
1342

query I rowsort
SELECT 72 + + 21
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL - SUM( ALL + CASE - 97 WHEN + 44 THEN + 13 + - 42 WHEN 12 THEN NULL ELSE + + 55 END ) * + + 99 AS col1
----
-5445

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL - SUM ( ALL + CASE - 97 WHEN + 44 THEN + 13 + - 42 WHEN 12 THEN NULL ELSE + + 55 END ) * + + 99 AS col1
----
-5445

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT DISTINCT ( COUNT( DISTINCT - 0 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT ( COUNT ( DISTINCT - 0 ) )
----
1

query I rowsort
SELECT ALL 82 + 92 + + 4 * - 97 AS col0
----
-214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4711
SELECT ALL 28 + CAST( + COALESCE ( + 49, + - CAST( - 55 AS SIGNED ) * - - 24 + + + COUNT( * ), + 99 * - 27 ) AS SIGNED ) + - COALESCE ( + - COALESCE ( - 38, - 99 + 17 * 43 * + 87 DIV - 57, - + 99 ), + COUNT( * ) ) * COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL 28 + CAST ( + COALESCE ( + 49, + - CAST ( - 55 AS INTEGER ) * - - 24 + + + COUNT ( * ), + 99 * - 27 ) AS INTEGER ) + - COALESCE ( + - COALESCE ( - 38, - 99 + 17 * 43 * + 87 / - 57, - + 99 ), + COUNT ( * ) ) * COUNT ( * ) AS col0
----
39

query I rowsort
SELECT 2 + 95 + - 34
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT + COUNT( DISTINCT - - ( - 15 ) ) + + COUNT( ALL 95 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT + COUNT ( DISTINCT - - ( - 15 ) ) + + COUNT ( ALL 95 ) AS col1
----
2

query I rowsort
SELECT NULLIF ( - 24, + - 57 ) + - 49 + + 63 + 74 + + 91
----
155

query I rowsort
SELECT ALL COALESCE ( - + ( - 28 ), - 99 ) + 55
----
83

query II rowsort
SELECT DISTINCT 85 AS col0, 61 col1
----
85
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4717
SELECT ALL COUNT( * ) + 98 + - 55 DIV - + 64 col1
----
99

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL COUNT ( * ) + 98 + - 55 / - + 64 col1
----
99

query I rowsort
SELECT DISTINCT 27 + + 97 - - - 93
----
31

query I rowsort
SELECT COALESCE ( + + 56, - 34 ) + + 36
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4720
SELECT CAST( NULL AS DECIMAL ) * - 46 AS col2, 59 AS col0
----
NULL
59

skipif mysql # not compatible
query II rowsort label-4720
SELECT CAST ( NULL AS REAL ) * - 46 AS col2, 59 AS col0
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT COUNT( * ) + + + 7
----
8

skipif mysql # not compatible
query I rowsort label-4721
SELECT COUNT ( * ) + + + 7
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL COUNT( DISTINCT + 55 ) * + + 30
----
30

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL COUNT ( DISTINCT + 55 ) * + + 30
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( + 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( + 10 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ALL 56 * COALESCE ( - + COUNT( * ), - 15 )
----
-56

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL 56 * COALESCE ( - + COUNT ( * ), - 15 )
----
-56

query I rowsort
SELECT 68 * - 9
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT 85 * + COALESCE ( - 47, ( + ( 87 ) ) - + - SUM( - 11 ) ) AS col2
----
-3995

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT 85 * + COALESCE ( - 47, ( + ( 87 ) ) - + - SUM ( - 11 ) ) AS col2
----
-3995

query II rowsort
SELECT ALL 77 * - 10 * - ( - 67 ) - + 34 * + 53 AS col0, 59
----
-53392
59

query II rowsort
SELECT ALL - 17, 67 AS col1
----
-17
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4729
SELECT + COUNT( * ) AS col1, COUNT( * ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-4729
SELECT + COUNT ( * ) AS col1, COUNT ( * ) col0
----
1
1

query I rowsort
SELECT 68 - + ( 24 ) AS col1
----
44

query I rowsort
SELECT 71 * - 24 AS col0
----
-1704

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT DISTINCT - + 74 DIV - 40
----
1

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT - + 74 / - 40
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4733
SELECT + 3 DIV + 53 + + 14 + + 98 AS col2
----
112

skipif mysql # not compatible
query I rowsort label-4733
SELECT + 3 / + 53 + + 14 + + 98 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT ALL - 41 * - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL - 41 * - COUNT ( * ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4735
SELECT - 7 * 70 + 12 * - + NULLIF ( - MIN( - 39 ), - - 18 ) - + 25 + + 12 * + 94 * + 70 AS col2, - 24 AS col1
----
77977
-24

skipif mysql # not compatible
query II rowsort label-4735
SELECT - 7 * 70 + 12 * - + NULLIF ( - MIN ( - 39 ), - - 18 ) - + 25 + + 12 * + 94 * + 70 AS col2, - 24 AS col1
----
77977
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4736
SELECT DISTINCT + COUNT( * ) * - - MAX( DISTINCT - 67 ) * 61 - NULLIF ( 0, + COALESCE ( 45, + 65 ) + CAST( + CASE - COUNT( * ) WHEN + ( - 61 ) + 37 + + 18 * - - 75 * - + 85 / + 8 + + 24 * 31 * + + 48 * - + 52 THEN - 14 + - 15 WHEN 90 * + + 98 / + - ( + 55 ) + 29 THEN NULL END AS DECIMAL ) * - 99 + 86 ) AS col0
----
-4087

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT + COUNT ( * ) * - - MAX ( DISTINCT - 67 ) * 61 - NULLIF ( 0, + COALESCE ( 45, + 65 ) + CAST ( + CASE - COUNT ( * ) WHEN + ( - 61 ) + 37 + + 18 * - - 75 * - + 85 / + 8 + + 24 * 31 * + + 48 * - + 52 THEN - 14 + - 15 WHEN 90 * + + 98 / + - ( + 55 ) + 29 THEN NULL END AS REAL ) * - 99 + 86 ) AS col0
----
-4087

query I rowsort
SELECT - NULLIF ( 90, 14 * 44 )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4738
SELECT + CAST( - CASE - 1 WHEN + 71 + 87 THEN + 95 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT + CAST ( - CASE - 1 WHEN + 71 + 87 THEN + 95 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT - + 11 * - ( - 92 ) * - 61 + + 9 * + 56 * ( + 63 )
----
93484

query II rowsort
SELECT DISTINCT + 67, + 37 * + 12 AS col2
----
67
444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT + 0 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT + 0 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT - + 25 * + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-4742
SELECT - + 25 * + COUNT ( * )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4743
SELECT - ( - 26 ) + 21 DIV 20 + + + 48
----
75

skipif mysql # not compatible
query I rowsort label-4743
SELECT - ( - 26 ) + 21 / 20 + + + 48
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT - + COUNT( + 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-4744
SELECT - + COUNT ( + 78 )
----
-1

query I rowsort
SELECT + ( 22 ) + - 51
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4746
SELECT DISTINCT + 37 + - CAST( - - 40 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT + 37 + - CAST ( - - 40 AS INTEGER )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4747
SELECT ALL 22 * 46 DIV - - 43 col0
----
23

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL 22 * 46 / - - 43 col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4748
SELECT ALL + CASE COUNT( * ) WHEN - + CAST( - NULLIF ( - AVG ( ALL + + 19 ), + 87 ) AS SIGNED ) * + - 44 * + + 56 THEN 3 * - 71 + - 15 WHEN COUNT( * ) THEN MIN( 23 ) * + 11 * 56 * - 20 * + 75 - - 89 ELSE - 61 + 17 - - 71 END + + 94 * + - 52 * - 54
----
-20987959

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL + CASE COUNT ( * ) WHEN - + CAST ( - NULLIF ( - AVG ( ALL + + 19 ), + 87 ) AS INTEGER ) * + - 44 * + + 56 THEN 3 * - 71 + - 15 WHEN COUNT ( * ) THEN MIN ( 23 ) * + 11 * 56 * - 20 * + 75 - - 89 ELSE - 61 + 17 - - 71 END + + 94 * + - 52 * - 54
----
-20987959

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4749
SELECT ALL 75 + 60 DIV + - SUM( 59 ) + 99 - + 9 AS col2
----
164

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL 75 + 60 / + - SUM ( 59 ) + 99 - + 9 AS col2
----
164

query I rowsort
SELECT + 98 + - 90 + 23 AS col0
----
31

query I rowsort
SELECT - 45 * - - 77 col2
----
-3465

onlyif mysql # DIV for integer division: 
query I rowsort label-4752
SELECT - COALESCE ( 53, + 88, - 32 DIV + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-4752
SELECT - COALESCE ( 53, + 88, - 32 / + 53 )
----
-53

query I rowsort
SELECT DISTINCT ( - - ( - 31 ) ) AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4754
SELECT + COUNT( * ) * 37 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT + COUNT ( * ) * 37 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL ( + 71 ) AS col2
----
71

query I rowsort
SELECT DISTINCT ( + - 77 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT - COALESCE ( 99, + + COUNT( * ) * 9 + + - 87 ) col2
----
-99

skipif mysql # not compatible
query I rowsort label-4757
SELECT - COALESCE ( 99, + + COUNT ( * ) * 9 + + - 87 ) col2
----
-99

query I rowsort
SELECT + 8 + 13
----
21

query I rowsort
SELECT DISTINCT 14 - 43 + - 78
----
-107

onlyif mysql # DIV for integer division: 
query II rowsort label-4760
SELECT ALL 73 DIV - + 38 AS col2, + 29 AS col2
----
-1
29

skipif mysql # not compatible
query II rowsort label-4760
SELECT ALL 73 / - + 38 AS col2, + 29 AS col2
----
-1
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4761
SELECT - 79 * CAST( NULL AS DECIMAL ) AS col2, NULLIF ( ( - COUNT( * ) ), 80 )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4761
SELECT - 79 * CAST ( NULL AS REAL ) AS col2, NULLIF ( ( - COUNT ( * ) ), 80 )
----
NULL
-1

query I rowsort
SELECT + + 61 col2
----
61

query II rowsort
SELECT ALL - 45 * + + 3 AS col1, 17
----
-135
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT + MIN( DISTINCT - 81 ) col0
----
-81

skipif mysql # not compatible
query I rowsort label-4764
SELECT + MIN ( DISTINCT - 81 ) col0
----
-81

query I rowsort
SELECT DISTINCT 30 * - 27 AS col1
----
-810

onlyif mysql # aggregate syntax: 
query II rowsort label-4766
SELECT ALL - ( - - COUNT( * ) ) * 67 * + 40 * - + 32 AS col2, 37 AS col1
----
85760
37

skipif mysql # not compatible
query II rowsort label-4766
SELECT ALL - ( - - COUNT ( * ) ) * 67 * + 40 * - + 32 AS col2, 37 AS col1
----
85760
37

query I rowsort
SELECT ALL + 84 * - 10 + + - 25 + - ( NULLIF ( + - 52, + - 70 ) ) + - ( - + 69 ) + 79 * - - 41 * ( - 31 ) * 3 - + + 9 + + + 93 AS col2
----
-301887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4768
SELECT ALL + + CAST( + - 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL + + CAST ( + - 7 AS INTEGER )
----
-7

query I rowsort
SELECT - NULLIF ( + 53, 8 * 7 ) col0
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4770
SELECT ALL + 35 * + 17 + COUNT( * ), 52 AS col0
----
596
52

skipif mysql # not compatible
query II rowsort label-4770
SELECT ALL + 35 * + 17 + COUNT ( * ), 52 AS col0
----
596
52

query I rowsort
SELECT + + 40 * COALESCE ( 96, - - 87 ) - - 45 + + + 53 AS col2
----
3938

onlyif mysql # aggregate syntax: 
query II rowsort label-4772
SELECT ALL + - ( - - 39 ) * 19 * + - COUNT( * ) * + - 5 + - ( + MAX( DISTINCT + 54 ) ) AS col0, - 68 AS col1
----
-3759
-68

skipif mysql # not compatible
query II rowsort label-4772
SELECT ALL + - ( - - 39 ) * 19 * + - COUNT ( * ) * + - 5 + - ( + MAX ( DISTINCT + 54 ) ) AS col0, - 68 AS col1
----
-3759
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4773
SELECT DISTINCT + + CAST( 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT + + CAST ( 19 AS INTEGER )
----
19

query II rowsort
SELECT + 89 + + 71 AS col1, 35 AS col0
----
160
35

query I rowsort
SELECT ALL + 42 * + 89 + - 39 + - 32
----
3667

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4776
SELECT + - 63 - - MIN( + 47 ) DIV + 35 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4776
SELECT + - 63 - - MIN ( + 47 ) / + 35 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT MAX( 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4777
SELECT MAX ( 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + NULLIF ( + 26, - COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-4778
SELECT + NULLIF ( + 26, - COUNT ( * ) )
----
26

query I rowsort
SELECT ALL + + 64 col0
----
64

query I rowsort
SELECT DISTINCT 75 * 68 + - 52 AS col2
----
5048

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT ALL 13 * 61 + - ( + COUNT( DISTINCT + 55 ) ) AS col0
----
792

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL 13 * 61 + - ( + COUNT ( DISTINCT + 55 ) ) AS col0
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT + COUNT( - 8 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT + COUNT ( - 8 ) AS col0
----
1

query I rowsort
SELECT ALL + 5 * + 40 + 88
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT DISTINCT + 88 * - + 35 * + ( - SUM( ALL 28 ) ) + + 59 col2
----
86299

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT + 88 * - + 35 * + ( - SUM ( ALL 28 ) ) + + 59 col2
----
86299

query I rowsort
SELECT ALL 11 * - 34 AS col1
----
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT ALL NULLIF ( + 4, 42 * COUNT( * ) ) * + + 86 * - 27 + - 42 + 17
----
-9313

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL NULLIF ( + 4, 42 * COUNT ( * ) ) * + + 86 * - 27 + - 42 + 17
----
-9313

query I rowsort
SELECT - 81 - - 60 AS col2
----
-21

query I rowsort
SELECT + 51 + - 12 AS col0
----
39

query I rowsort
SELECT 64 * 13 * - - 37 * + + 55 - - - 88
----
1693032

query I rowsort
SELECT - NULLIF ( - ( - ( + ( - 77 ) ) ), - 31 + + 53 ) + - 9 * + + 33 + - - CASE + 45 WHEN - - 2 THEN 70 * - 97 * 26 WHEN + 41 + + 11 * - 74 + + 83 THEN NULL WHEN 75 + 20 THEN - 44 * + 92 ELSE NULL END * - - 84 + - 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4791
SELECT COUNT( * ) AS col2, - 29 DIV - 60
----
1
0

skipif mysql # not compatible
query II rowsort label-4791
SELECT COUNT ( * ) AS col2, - 29 / - 60
----
1
0

query I rowsort
SELECT - 21 + - - 90 * - - 22 AS col1
----
1959

query I rowsort
SELECT ALL COALESCE ( + 1, - + 12, + - 32 - + - 3 ) AS col0
----
1

query II rowsort
SELECT 43 AS col0, 45 AS col2
----
43
45

query I rowsort
SELECT - 79 + + NULLIF ( 47, - 13 ) * - + 50
----
-2429

onlyif mysql # aggregate syntax: 
query II rowsort label-4796
SELECT 51, COUNT( * ) AS col0
----
51
1

skipif mysql # not compatible
query II rowsort label-4796
SELECT 51, COUNT ( * ) AS col0
----
51
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT + NULLIF ( - 89, + 37 - - COUNT( * ) ) + - + 83 + 26
----
-146

skipif mysql # not compatible
query I rowsort label-4797
SELECT + NULLIF ( - 89, + 37 - - COUNT ( * ) ) + - + 83 + 26
----
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT + ( 94 ) * - + 2 + - ( + COALESCE ( + 49, CAST( NULL AS SIGNED ) ) ) AS col1
----
-237

skipif mysql # not compatible
query I rowsort label-4798
SELECT + ( 94 ) * - + 2 + - ( + COALESCE ( + 49, CAST ( NULL AS INTEGER ) ) ) AS col1
----
-237

query II rowsort
SELECT 67, + 59 AS col0
----
67
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4800
SELECT - 80 + - - COUNT( * ) - 59 * + CAST( NULLIF ( - 90, + + CAST( NULL AS SIGNED ) ) AS SIGNED ) + + 30 + 50 * - - 27 - - 86 * + - 36 col2
----
3515

skipif mysql # not compatible
query I rowsort label-4800
SELECT - 80 + - - COUNT ( * ) - 59 * + CAST ( NULLIF ( - 90, + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + 30 + 50 * - - 27 - - 86 * + - 36 col2
----
3515

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4801
SELECT + + 46 DIV - CAST( AVG ( - + 12 ) AS SIGNED ) + + - ( - 84 ), 85 AS col2
----
87
85

skipif mysql # not compatible
query II rowsort label-4801
SELECT + + 46 / - CAST ( AVG ( - + 12 ) AS INTEGER ) + + - ( - 84 ), 85 AS col2
----
87
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT ALL + ( COUNT( * ) ) + + + 74 * + 21 * 76 col0
----
118105

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL + ( COUNT ( * ) ) + + + 74 * + 21 * 76 col0
----
118105

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL ( - 96 ) + - COUNT( * ) - + 79 + - COUNT( * )
----
-177

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL ( - 96 ) + - COUNT ( * ) - + 79 + - COUNT ( * )
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4804
SELECT ALL + CAST( COALESCE ( + 53, - 11 ) AS SIGNED ) + - + 62 + - NULLIF ( - ( 47 ), 84 * + 6 + 40 )
----
38

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL + CAST ( COALESCE ( + 53, - 11 ) AS INTEGER ) + - + 62 + - NULLIF ( - ( 47 ), 84 * + 6 + 40 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT + COUNT( * ) + + 91 + - 68 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4805
SELECT + COUNT ( * ) + + 91 + - 68 AS col1
----
24

query II rowsort
SELECT ALL - - 3 col0, + 37 * 37 + 82 - + CASE 1 WHEN 80 THEN + + 97 WHEN - 94 THEN NULL ELSE + 12 END - 6 + 38 col1
----
3
1471

onlyif mysql # aggregate syntax: 
query II rowsort label-4807
SELECT ALL + 97 + + - 25 * - 47, + 21 * - 72 - 83 + COUNT( * ) AS col1
----
1272
-1594

skipif mysql # not compatible
query II rowsort label-4807
SELECT ALL + 97 + + - 25 * - 47, + 21 * - 72 - 83 + COUNT ( * ) AS col1
----
1272
-1594

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT + COUNT( ALL - 34 ) + 14 + + 21 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4808
SELECT + COUNT ( ALL - 34 ) + 14 + + 21 AS col2
----
36

query I rowsort
SELECT + 9 + 43
----
52

query II rowsort
SELECT ALL - + 53, + 47 AS col1
----
-53
47

query I rowsort
SELECT - 81 * 11 * - 69 + 15
----
61494

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT + 78 * MIN( - 57 ) AS col2
----
-4446

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT + 78 * MIN ( - 57 ) AS col2
----
-4446

onlyif mysql # aggregate syntax: 
query II rowsort label-4813
SELECT ALL MIN( DISTINCT + 67 ) + - COUNT( * ) + + + 8 + 57 + + COUNT( * ) AS col0, 27 + - COUNT( * ) AS col2
----
132
26

skipif mysql # not compatible
query II rowsort label-4813
SELECT ALL MIN ( DISTINCT + 67 ) + - COUNT ( * ) + + + 8 + 57 + + COUNT ( * ) AS col0, 27 + - COUNT ( * ) AS col2
----
132
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4814
SELECT - 45 * + CASE - - 88 WHEN + COUNT( * ) THEN 75 WHEN + CASE 85 WHEN CAST( NULL AS SIGNED ) * ( - COUNT( * ) ) THEN NULL WHEN - COUNT( + 65 ) THEN 50 + - - AVG ( + 63 ) ELSE + + ( + ( + + 18 ) ) END THEN CASE 57 WHEN + 78 * + - CAST( + 88 AS SIGNED ) + COUNT( * ) THEN - 46 ELSE NULL END + CASE 74 WHEN 87 THEN NULL WHEN + ( 96 ) THEN + + 11 END + + 76 * + 90 * 58 + + 77 / + COUNT( * ) * 78 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT - 45 * + CASE - - 88 WHEN + COUNT ( * ) THEN 75 WHEN + CASE 85 WHEN CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) ) THEN NULL WHEN - COUNT ( + 65 ) THEN 50 + - - AVG ( + 63 ) ELSE + + ( + ( + + 18 ) ) END THEN CASE 57 WHEN + 78 * + - CAST ( + 88 AS INTEGER ) + COUNT ( * ) THEN - 46 ELSE NULL END + CASE 74 WHEN 87 THEN NULL WHEN + ( 96 ) THEN + + 11 END + + 76 * + 90 * 58 + + 77 / + COUNT ( * ) * 78 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - - ( 81 )
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4816
SELECT 37 + + - 72 + - + COALESCE ( - 75, - - 56 * + 58 ) DIV + - 37, + 62 * + + 30 AS col1
----
-37
1860

skipif mysql # not compatible
query II rowsort label-4816
SELECT 37 + + - 72 + - + COALESCE ( - 75, - - 56 * + 58 ) / + - 37, + 62 * + + 30 AS col1
----
-37
1860

query I rowsort
SELECT ALL + 60 * + 3
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4818
SELECT CAST( NULL AS SIGNED ) + + 77, + 33 + - 69 - - COUNT( * ) * + 18 col1
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-4818
SELECT CAST ( NULL AS INTEGER ) + + 77, + 33 + - 69 - - COUNT ( * ) * + 18 col1
----
NULL
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4819
SELECT DISTINCT ( + 59 ) DIV + - 48 * + + 40 DIV 26 + + 31 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT ( + 59 ) / + - 48 * + + 40 / 26 + + 31 AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4820
SELECT DISTINCT CAST( - 49 AS SIGNED ) * - CAST( + ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) + - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT CAST ( - 49 AS INTEGER ) * - CAST ( + ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - - 65
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4821
SELECT 62 DIV + - 5
----
-12

skipif mysql # not compatible
query I rowsort label-4821
SELECT 62 / + - 5
----
-12

query I rowsort
SELECT 78 + + ( - - 39 ) - - + COALESCE ( + - 41, + - ( 62 ) ) AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4823
SELECT 87 + - 58 * + 81 + - NULLIF ( NULLIF ( - - 68, + - 75 ), + 4 * CAST( NULL AS SIGNED ) + 95 ) AS col0
----
-4679

skipif mysql # not compatible
query I rowsort label-4823
SELECT 87 + - 58 * + 81 + - NULLIF ( NULLIF ( - - 68, + - 75 ), + 4 * CAST ( NULL AS INTEGER ) + 95 ) AS col0
----
-4679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4824
SELECT 3 + 89 * + MIN( + - 70 ) - 8 * - NULLIF ( 32, + + CASE - 29 WHEN 29 * + + COUNT( * ) - - + ( - 87 ) THEN NULL ELSE - 86 + + ( + + CASE - - COUNT( * ) WHEN 76 * - 83 / + 51 THEN - COUNT( * ) WHEN + + 16 THEN + + COUNT( * ) + + NULLIF ( ( + 70 ), - 20 ) END ) * + + 67 END - CAST( + 53 AS SIGNED ) )
----
-5971

skipif mysql # not compatible
query I rowsort label-4824
SELECT 3 + 89 * + MIN ( + - 70 ) - 8 * - NULLIF ( 32, + + CASE - 29 WHEN 29 * + + COUNT ( * ) - - + ( - 87 ) THEN NULL ELSE - 86 + + ( + + CASE - - COUNT ( * ) WHEN 76 * - 83 / + 51 THEN - COUNT ( * ) WHEN + + 16 THEN + + COUNT ( * ) + + NULLIF ( ( + 70 ), - 20 ) END ) * + + 67 END - CAST ( + 53 AS INTEGER ) )
----
-5971

query I rowsort
SELECT DISTINCT + + 55 + + 41 + - 91
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL + 62 + COUNT( * ) + 50 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL + 62 + COUNT ( * ) + 50 AS col1
----
113

query I rowsort
SELECT ALL - + ( + 60 ) + + 90
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT DISTINCT + + 63 + - SUM( DISTINCT 69 ) + + + 18 * COUNT( * ) DIV - 9 col1
----
-8

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT + + 63 + - SUM ( DISTINCT 69 ) + + + 18 * COUNT ( * ) / - 9 col1
----
-8

query I rowsort
SELECT DISTINCT - 60 + + - 35 * 27
----
-1005

query I rowsort
SELECT ALL + - 13 + - 13 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT + COUNT( ALL - + ( 73 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4831
SELECT + COUNT ( ALL - + ( 73 ) )
----
1

query I rowsort
SELECT CASE - - 69 WHEN - 12 THEN 19 END AS col2
----
NULL

query II rowsort
SELECT - ( 47 ), ( 9 ) AS col0
----
-47
9

query II rowsort
SELECT ALL + - 21 + - - 8 AS col0, 40
----
-13
40

query I rowsort
SELECT 93 * 85 * + - 88 AS col1
----
-695640

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT DISTINCT - + 96 DIV - - 87 + 21 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT - + 96 / - - 87 + 21 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4837
SELECT CAST( NULL AS SIGNED ) + + 79 AS col1, CAST( NULL AS SIGNED ) * - SUM( - + 96 ) AS col0, + - 86
----
NULL
NULL
-86

skipif mysql # not compatible
query III rowsort label-4837
SELECT CAST ( NULL AS INTEGER ) + + 79 AS col1, CAST ( NULL AS INTEGER ) * - SUM ( - + 96 ) AS col0, + - 86
----
NULL
NULL
-86

query I rowsort
SELECT 53 * + 31
----
1643

query II rowsort
SELECT 76 AS col1, + 24 + - + 9
----
76
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ( + ( - SUM( ALL 71 ) ) ) * - COUNT( * ) * + 88
----
6248

skipif mysql # not compatible
query I rowsort label-4840
SELECT ( + ( - SUM ( ALL 71 ) ) ) * - COUNT ( * ) * + 88
----
6248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT ALL CAST( 8 AS SIGNED ) * + 47 - - - 10
----
366

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL CAST ( 8 AS INTEGER ) * + 47 - - - 10
----
366

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT 0 * - COUNT( * ) + + MAX( 75 )
----
75

skipif mysql # not compatible
query I rowsort label-4842
SELECT 0 * - COUNT ( * ) + + MAX ( 75 )
----
75

query I rowsort
SELECT ALL - 64 - - 70 + + + 3 * - 31
----
-87

query I rowsort
SELECT COALESCE ( + - 43, - + 71, - 56, + 76 ) + - 39 AS col0
----
-82

query I rowsort
SELECT ALL + 1 * + 48 AS col1
----
48

query I rowsort
SELECT ( 79 ) * + 37 + - + 35 col2
----
2888

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4847
SELECT ALL CAST( NULL AS DECIMAL ) * 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL CAST ( NULL AS REAL ) * 39 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4848
SELECT 76, CAST( NULL AS SIGNED ) + 64 AS col1
----
76
NULL

skipif mysql # not compatible
query II rowsort label-4848
SELECT 76, CAST ( NULL AS INTEGER ) + 64 AS col1
----
76
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT COALESCE ( CAST( NULL AS SIGNED ), - 71 ) * + 79 * + - 49
----
274841

skipif mysql # not compatible
query I rowsort label-4849
SELECT COALESCE ( CAST ( NULL AS INTEGER ), - 71 ) * + 79 * + - 49
----
274841

query I rowsort
SELECT + 49 * + - 0 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT DISTINCT 55 + - CAST( NULL AS SIGNED ) * - - 80 * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT 55 + - CAST ( NULL AS INTEGER ) * - - 80 * 96
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT - CASE + ( - - CAST( - 3 AS SIGNED ) ) WHEN - 22 THEN - + 15 / - + CAST( - - 15 AS SIGNED ) WHEN - + 72 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT - CASE + ( - - CAST ( - 3 AS INTEGER ) ) WHEN - 22 THEN - + 15 / - + CAST ( - - 15 AS INTEGER ) WHEN - + 72 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 57 + + 29 * 78 * 39
----
88275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4854
SELECT ALL + SUM( DISTINCT + - 19 ) + 72, - CAST( NULL AS SIGNED ) + + 31 AS col1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-4854
SELECT ALL + SUM ( DISTINCT + - 19 ) + 72, - CAST ( NULL AS INTEGER ) + + 31 AS col1
----
53
NULL

query I rowsort
SELECT ALL + 33 + + 12
----
45

query I rowsort
SELECT DISTINCT - 63 + - 62 col0
----
-125

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT - 11 DIV - 62 + + 80 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4857
SELECT - 11 / - 62 + + 80 AS col1
----
80

query I rowsort
SELECT ALL 81 + - - 4
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT + CAST( + 89 AS SIGNED ) + - 41
----
48

skipif mysql # not compatible
query I rowsort label-4859
SELECT + CAST ( + 89 AS INTEGER ) + - 41
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4860
SELECT + 69 * - 42 + - COUNT( * ), + SUM( 21 ) AS col0
----
-2899
21

skipif mysql # not compatible
query II rowsort label-4860
SELECT + 69 * - 42 + - COUNT ( * ), + SUM ( 21 ) AS col0
----
-2899
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4861
SELECT ALL - 81 DIV + CASE 6 WHEN - - CAST( - ( COUNT( ALL 94 ) ) AS SIGNED ) THEN NULL WHEN + 46 THEN NULL ELSE + 42 END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL - 81 / + CASE 6 WHEN - - CAST ( - ( COUNT ( ALL 94 ) ) AS INTEGER ) THEN NULL WHEN + 46 THEN NULL ELSE + 42 END AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4862
SELECT ALL - CAST( 7 AS SIGNED ) * + 65 + + 24 - ( NULLIF ( - COUNT( * ), - + 81 ) ), + COUNT( * ) AS col1
----
-430
1

skipif mysql # not compatible
query II rowsort label-4862
SELECT ALL - CAST ( 7 AS INTEGER ) * + 65 + + 24 - ( NULLIF ( - COUNT ( * ), - + 81 ) ), + COUNT ( * ) AS col1
----
-430
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4863
SELECT - - 29 DIV - 57 + - 49 + - 70
----
-119

skipif mysql # not compatible
query I rowsort label-4863
SELECT - - 29 / - 57 + - 49 + - 70
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT - + 51 * + MIN( DISTINCT 26 )
----
-1326

skipif mysql # not compatible
query I rowsort label-4864
SELECT - + 51 * + MIN ( DISTINCT 26 )
----
-1326

query I rowsort
SELECT DISTINCT + + 92 AS col1
----
92

query I rowsort
SELECT DISTINCT - - 43 * 57 AS col1
----
2451

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT - 85 * - + 54 * - - COUNT( * ) * + 15 + + 9 * + 80 AS col2
----
69570

skipif mysql # not compatible
query I rowsort label-4867
SELECT - 85 * - + 54 * - - COUNT ( * ) * + 15 + + 9 * + 80 AS col2
----
69570

onlyif mysql # DIV for integer division: 
query I rowsort label-4868
SELECT 85 DIV - COALESCE ( + - 41, + 67 ) + - - 55 * + - 51 AS col2
----
-2803

skipif mysql # not compatible
query I rowsort label-4868
SELECT 85 / - COALESCE ( + - 41, + 67 ) + - - 55 * + - 51 AS col2
----
-2803

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4869
SELECT - SUM( + 61 ) + + - 98 + + 73 * - - CAST( - - 8 AS SIGNED ) + - COUNT( * ) + - 3 * + 99 + - COUNT( * ) + 89 + - + COALESCE ( 98, + 50 ) AS col1
----
117

skipif mysql # not compatible
query I rowsort label-4869
SELECT - SUM ( + 61 ) + + - 98 + + 73 * - - CAST ( - - 8 AS INTEGER ) + - COUNT ( * ) + - 3 * + 99 + - COUNT ( * ) + 89 + - + COALESCE ( 98, + 50 ) AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT + 52 * + - NULLIF ( + COUNT( * ), + 8 ) * + + 56
----
-2912

skipif mysql # not compatible
query I rowsort label-4870
SELECT + 52 * + - NULLIF ( + COUNT ( * ), + 8 ) * + + 56
----
-2912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4871
SELECT + NULLIF ( 46, - - COALESCE ( + 47, - 37, + + COUNT( * ) + - 57 + + 53 * - SUM( ALL - 90 ) ) + - COUNT( * ) * - CASE - 55 WHEN + AVG ( 60 ) THEN + 29 + + + CAST( NULL AS SIGNED ) END * COALESCE ( + + 29, + 32 + MIN( + 58 ) * - COUNT( * ) ) * - 54 + 58 ) + + - 24 + - + 23
----
-1

skipif mysql # not compatible
query I rowsort label-4871
SELECT + NULLIF ( 46, - - COALESCE ( + 47, - 37, + + COUNT ( * ) + - 57 + + 53 * - SUM ( ALL - 90 ) ) + - COUNT ( * ) * - CASE - 55 WHEN + AVG ( 60 ) THEN + 29 + + + CAST ( NULL AS INTEGER ) END * COALESCE ( + + 29, + 32 + MIN ( + 58 ) * - COUNT ( * ) ) * - 54 + 58 ) + + - 24 + - + 23
----
-1

query I rowsort
SELECT ALL + ( - + 52 ) AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4873
SELECT ALL + CASE 1 WHEN + - AVG ( + + CAST( NULL AS SIGNED ) ) * - + 4 - SUM( 81 ) + - - 52 THEN + + SUM( DISTINCT + + 53 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL + CASE 1 WHEN + - AVG ( + + CAST ( NULL AS INTEGER ) ) * - + 4 - SUM ( 81 ) + - - 52 THEN + + SUM ( DISTINCT + + 53 ) END AS col2
----
NULL

query I rowsort
SELECT - 98 * 68 AS col2
----
-6664

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT - 16 DIV + 58 col0
----
0

skipif mysql # not compatible
query I rowsort label-4875
SELECT - 16 / + 58 col0
----
0

query I rowsort
SELECT ALL + ( - 32 )
----
-32

query II rowsort
SELECT DISTINCT 45 * + 95, + 13 + - 13 * 57 AS col1
----
4275
-728

query I rowsort
SELECT ALL 83 * 6 * - 73 * - ( + 96 ) + - ( - + 77 )
----
3490061

query I rowsort
SELECT - 62 * COALESCE ( + 29, - + 33 + - - 37 - + 12 ) * - + NULLIF ( + + 19, - 6 ) AS col0
----
34162

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT + 68 + - + 85 + + COUNT( * ) + 43
----
27

skipif mysql # not compatible
query I rowsort label-4880
SELECT + 68 + - + 85 + + COUNT ( * ) + 43
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4881
SELECT + SUM( 70 ) DIV + 98 + + CASE 24 WHEN + - 2 THEN ( - 47 ) ELSE - 43 DIV 56 DIV + 87 + ( + - 99 ) END
----
-99

skipif mysql # not compatible
query I rowsort label-4881
SELECT + SUM ( 70 ) / + 98 + + CASE 24 WHEN + - 2 THEN ( - 47 ) ELSE - 43 / 56 / + 87 + ( + - 99 ) END
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4882
SELECT + CAST( NULL AS SIGNED ) + + ( - 77 ) + + COUNT( * ) + 59 / 67, 52 AS col1
----
NULL
52

skipif mysql # not compatible
query II rowsort label-4882
SELECT + CAST ( NULL AS INTEGER ) + + ( - 77 ) + + COUNT ( * ) + 59 / 67, 52 AS col1
----
NULL
52

query I rowsort
SELECT DISTINCT 9 * ( 99 ) AS col1
----
891

query I rowsort
SELECT DISTINCT 94 * ( + 87 ) + 53 AS col1
----
8231

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4885
SELECT ALL CAST( + 92 AS SIGNED ) AS col2, + 9 AS col1
----
92
9

skipif mysql # not compatible
query II rowsort label-4885
SELECT ALL CAST ( + 92 AS INTEGER ) AS col2, + 9 AS col1
----
92
9

query I rowsort
SELECT ALL - 43 + + + 72 * + 7 * - - 51 * - 32
----
-822571

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT ALL COUNT( * ) col0, 88 * - 75
----
1
-6600

skipif mysql # not compatible
query II rowsort label-4887
SELECT ALL COUNT ( * ) col0, 88 * - 75
----
1
-6600

query I rowsort
SELECT + 82 + + 14 AS col1
----
96

query II rowsort
SELECT + 49 AS col1, - 86
----
49
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT + COUNT( * ) * + NULLIF ( + - 70, + MIN( - 16 ) ) + + SUM( ALL - + 12 ) + - - 54 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4890
SELECT + COUNT ( * ) * + NULLIF ( + - 70, + MIN ( - 16 ) ) + + SUM ( ALL - + 12 ) + - - 54 AS col1
----
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-4891
SELECT ALL 88 AS col2, - 46 DIV 63 AS col1
----
88
0

skipif mysql # not compatible
query II rowsort label-4891
SELECT ALL 88 AS col2, - 46 / 63 AS col1
----
88
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4892
SELECT + - 90 + + COUNT( * ) * - + CASE - + ( - COUNT( * ) ) WHEN + - COALESCE ( + - 58, + + 18 ) * + 98 THEN - MAX( - 61 ) / 44 - - 91 WHEN CAST( - - COUNT( - + 74 ) AS SIGNED ) + - 7 * - - COUNT( DISTINCT - 87 ) THEN NULL WHEN - - ( - + COALESCE ( + 14, - 0 + + - 13 * 10 + + COUNT( * ) ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4892
SELECT + - 90 + + COUNT ( * ) * - + CASE - + ( - COUNT ( * ) ) WHEN + - COALESCE ( + - 58, + + 18 ) * + 98 THEN - MAX ( - 61 ) / 44 - - 91 WHEN CAST ( - - COUNT ( - + 74 ) AS INTEGER ) + - 7 * - - COUNT ( DISTINCT - 87 ) THEN NULL WHEN - - ( - + COALESCE ( + 14, - 0 + + - 13 * 10 + + COUNT ( * ) ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4893
SELECT - MAX( - + 26 ) AS col1, 59 * - - 42
----
26
2478

skipif mysql # not compatible
query II rowsort label-4893
SELECT - MAX ( - + 26 ) AS col1, 59 * - - 42
----
26
2478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT - CAST( - 8 AS SIGNED ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4894
SELECT - CAST ( - 8 AS INTEGER ) AS col2
----
8

query I rowsort
SELECT ALL + 99 - - 65 col1
----
164

onlyif mysql # aggregate syntax: 
query II rowsort label-4896
SELECT ALL 11 AS col2, 82 + - COUNT( * ) + - 11 * + 31 + 38 * + + 95 + + 63
----
11
3413

skipif mysql # not compatible
query II rowsort label-4896
SELECT ALL 11 AS col2, 82 + - COUNT ( * ) + - 11 * + 31 + 38 * + + 95 + + 63
----
11
3413

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL 15 - COUNT( - 68 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL 15 - COUNT ( - 68 ) AS col1
----
14

query I rowsort
SELECT ALL - ( - - 14 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4899
SELECT - + CAST( - + 16 AS SIGNED ), 53 * - 13 col2
----
16
-689

skipif mysql # not compatible
query II rowsort label-4899
SELECT - + CAST ( - + 16 AS INTEGER ), 53 * - 13 col2
----
16
-689

query I rowsort
SELECT + - 80 * - + 9 + + + 38 AS col2
----
758

query I rowsort
SELECT DISTINCT + 16 * 20 AS col2
----
320

query I rowsort
SELECT ALL 81 - 55 + - 44
----
-18

query I rowsort
SELECT 78 * - 84 - 53
----
-6605

query II rowsort
SELECT + 69 * 1 AS col1, - 53 AS col1
----
69
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT - NULLIF ( + 71, + 39 - - 85 ) * - COUNT( * ) col0
----
71

skipif mysql # not compatible
query I rowsort label-4905
SELECT - NULLIF ( + 71, + 39 - - 85 ) * - COUNT ( * ) col0
----
71

query I rowsort
SELECT ALL + NULLIF ( + + 83, + 36 )
----
83

query II rowsort
SELECT + 91 AS col2, + 66 AS col2
----
91
66

query I rowsort
SELECT - - 39 * - + ( - 51 ) AS col1
----
1989

onlyif mysql # aggregate syntax: 
query II rowsort label-4909
SELECT ALL + + 22, - NULLIF ( - COUNT( DISTINCT + 3 ), + 0 ) AS col2
----
22
1

skipif mysql # not compatible
query II rowsort label-4909
SELECT ALL + + 22, - NULLIF ( - COUNT ( DISTINCT + 3 ), + 0 ) AS col2
----
22
1

query I rowsort
SELECT ALL + COALESCE ( - 22, + 29 + 78 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL + NULLIF ( + COUNT( * ), - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL + NULLIF ( + COUNT ( * ), - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4912
SELECT DISTINCT - 46 * - - COUNT( * ) AS col2, - 30 + - 14 * - COUNT( - 89 )
----
-46
-16

skipif mysql # not compatible
query II rowsort label-4912
SELECT DISTINCT - 46 * - - COUNT ( * ) AS col2, - 30 + - 14 * - COUNT ( - 89 )
----
-46
-16

query I rowsort
SELECT - 75 * - 38 AS col1
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT + MAX( + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT + MAX ( + 29 )
----
29

query I rowsort
SELECT DISTINCT - 28 * + - 76 * + ( 57 )
----
121296

onlyif mysql # aggregate syntax: 
query II rowsort label-4916
SELECT DISTINCT - 47 * COUNT( * ) AS col2, + COUNT( - 60 ) + + - 60 * + + COUNT( ALL 40 ) + + 0
----
-47
-59

skipif mysql # not compatible
query II rowsort label-4916
SELECT DISTINCT - 47 * COUNT ( * ) AS col2, + COUNT ( - 60 ) + + - 60 * + + COUNT ( ALL 40 ) + + 0
----
-47
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT COUNT( * ) + + 5 + 55 + + + 25 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4917
SELECT COUNT ( * ) + + 5 + 55 + + + 25 AS col2
----
86

query I rowsort
SELECT 81 * - 62
----
-5022

query I rowsort
SELECT DISTINCT - ( - ( 16 ) ) col1
----
16

query I rowsort
SELECT ALL + 74 + - ( + - 9 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL - 11 + - ( - - COUNT( * ) ) * 13 - - - ( - 7 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL - 11 + - ( - - COUNT ( * ) ) * 13 - - - ( - 7 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT 75 * + MIN( + 26 ) + - + 91
----
1859

skipif mysql # not compatible
query I rowsort label-4922
SELECT 75 * + MIN ( + 26 ) + - + 91
----
1859

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT DISTINCT + 29 + - + COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT + 29 + - + COUNT ( * ) AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4924
SELECT DISTINCT + SUM( ALL 10 ) DIV 96 * COALESCE ( COUNT( * ), 16, 32 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT + SUM ( ALL 10 ) / 96 * COALESCE ( COUNT ( * ), 16, 32 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4925
SELECT ALL + 11 + CASE + 26 WHEN 34 + - 81 * - - NULLIF ( 83, 22 - CASE ( + 17 ) WHEN + 37 THEN - + 0 WHEN - + 58 THEN NULLIF ( + 27, - 8 ) - COUNT( * ) * + - MAX( DISTINCT 15 ) * ( - + MIN( 15 ) ) + + 4 + + CAST( + - COUNT( * ) AS SIGNED ) - + + ( + 31 ) * + CASE WHEN NOT 27 < NULL THEN - 3 ELSE + COUNT( * ) END + - 69 END + + 77 ) THEN - + 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + 11 + CASE + 26 WHEN 34 + - 81 * - - NULLIF ( 83, 22 - CASE ( + 17 ) WHEN + 37 THEN - + 0 WHEN - + 58 THEN NULLIF ( + 27, - 8 ) - COUNT ( * ) * + - MAX ( DISTINCT 15 ) * ( - + MIN ( 15 ) ) + + 4 + + CAST ( + - COUNT ( * ) AS INTEGER ) - + + ( + 31 ) * + CASE WHEN NOT 27 < NULL THEN - 3 ELSE + COUNT ( * ) END + - 69 END + + 77 ) THEN - + 14 END
----
NULL

query I rowsort
SELECT DISTINCT - 57 + + 39
----
-18

query II rowsort
SELECT 70 + 36 AS col1, 4 * - + 94 AS col0
----
106
-376

query I rowsort
SELECT 75 * 4 - 61 AS col0
----
239

onlyif mysql # DIV for integer division: 
query I rowsort label-4929
SELECT DISTINCT + 85 DIV - 47 col1
----
-1

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT + 85 / - 47 col1
----
-1

query I rowsort
SELECT 12 + - 83 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT ALL - - COUNT( * ) - - - 57 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL - - COUNT ( * ) - - - 57 AS col1
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4932
SELECT - NULLIF ( 71, + CAST( - 27 AS DECIMAL ) + - + COALESCE ( - 24, - + 4 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-4932
SELECT - NULLIF ( 71, + CAST ( - 27 AS REAL ) + - + COALESCE ( - 24, - + 4 ) )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4933
SELECT CASE + - 72 WHEN + 56 THEN + 54 ELSE COUNT( * ) * - 45 * + 73 - - 67 DIV COUNT( * ) - 12 * + 52 END + - + 61
----
-3903

skipif mysql # not compatible
query I rowsort label-4933
SELECT CASE + - 72 WHEN + 56 THEN + 54 ELSE COUNT ( * ) * - 45 * + 73 - - 67 / COUNT ( * ) - 12 * + 52 END + - + 61
----
-3903

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL - - COUNT( * ) * 98
----
98

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL - - COUNT ( * ) * 98
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4935
SELECT COUNT( ALL 87 ) - CASE + 75 WHEN - - ( + 43 ) THEN NULL WHEN COUNT( + CAST( + 22 AS SIGNED ) ) * + 99 + + SUM( DISTINCT + ( + 40 ) ) THEN - - 0 * 70 * - - ( - - 93 ) ELSE NULL END - - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT COUNT ( ALL 87 ) - CASE + 75 WHEN - - ( + 43 ) THEN NULL WHEN COUNT ( + CAST ( + 22 AS INTEGER ) ) * + 99 + + SUM ( DISTINCT + ( + 40 ) ) THEN - - 0 * 70 * - - ( - - 93 ) ELSE NULL END - - 54 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4936
SELECT DISTINCT - - COUNT( * ) * - CAST( + + 13 AS SIGNED ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT - - COUNT ( * ) * - CAST ( + + 13 AS INTEGER ) AS col1
----
-13

query I rowsort
SELECT 1 + - 8 AS col2
----
-7

query I rowsort
SELECT 60 + + - ( + 43 ) + - + 29 * - + ( + 74 ) AS col2
----
2163

onlyif mysql # aggregate syntax: 
query II rowsort label-4939
SELECT - 62 + - COUNT( * ) AS col2, + 85
----
-63
85

skipif mysql # not compatible
query II rowsort label-4939
SELECT - 62 + - COUNT ( * ) AS col2, + 85
----
-63
85

query I rowsort
SELECT + ( - - 82 ) * 34
----
2788

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT 70 + - MAX( ALL - 61 ) * - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-4941
SELECT 70 + - MAX ( ALL - 61 ) * - COUNT ( * )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT ALL 15 * - CAST( + + 62 AS SIGNED ) * - 21
----
19530

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL 15 * - CAST ( + + 62 AS INTEGER ) * - 21
----
19530

query I rowsort
SELECT ALL 69 * 26
----
1794

query I rowsort
SELECT DISTINCT 40 + - 90 AS col0
----
-50

query I rowsort
SELECT 71 + + + 92 AS col1
----
163

query I rowsort
SELECT ALL 75 + - + 65 * + - 63
----
4170

query I rowsort
SELECT + 68 * + 45 + - 24 + - - ( 23 )
----
3059

query I rowsort
SELECT ( + + 54 ) * - - 46 + 9
----
2493

query I rowsort
SELECT DISTINCT 86 + - 76 * - 2 * - + NULLIF ( - 21, + 13 ) + + + 84
----
3362

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4950
SELECT CAST( + 73 AS SIGNED ) DIV - 61
----
-1

skipif mysql # not compatible
query I rowsort label-4950
SELECT CAST ( + 73 AS INTEGER ) / - 61
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4951
SELECT ALL + 70 DIV - 26 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL + 70 / - 26 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-4952
SELECT 92 AS col1, + COALESCE ( - - NULLIF ( 73, + 53 + 39 ), + - ( ( + 56 ) ) * + ( + 1 ) DIV - 39 ) AS col2
----
92
73

skipif mysql # not compatible
query II rowsort label-4952
SELECT 92 AS col1, + COALESCE ( - - NULLIF ( 73, + 53 + 39 ), + - ( ( + 56 ) ) * + ( + 1 ) / - 39 ) AS col2
----
92
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4953
SELECT DISTINCT - 13, + COUNT( * ) + + + 55 * + MAX( DISTINCT + 25 ) AS col0
----
-13
1376

skipif mysql # not compatible
query II rowsort label-4953
SELECT DISTINCT - 13, + COUNT ( * ) + + + 55 * + MAX ( DISTINCT + 25 ) AS col0
----
-13
1376

query II rowsort
SELECT ALL 91 + 36 + + 21 + + 50 col0, ( NULLIF ( + 46, - 0 + + - 54 ) ) col2
----
198
46

query I rowsort
SELECT DISTINCT - ( - 89 ) col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL 67 + - - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL 67 + - - COUNT ( * )
----
68

query I rowsort
SELECT DISTINCT 26 + - - 2
----
28

query II rowsort
SELECT 78, - 87 AS col2
----
78
-87

query I rowsort
SELECT 6 + - - 10
----
16

query I rowsort
SELECT ALL + 7 * + - 11 AS col0
----
-77

query II rowsort
SELECT 22 AS col1, - 0 col1
----
22
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4962
SELECT ( - 5 ) * + 71 - + 28 col0, CAST( NULL AS SIGNED ) + + 53 * CAST( NULL AS SIGNED ) * + + CAST( - 64 AS SIGNED ) + COALESCE ( + CASE - - 53 WHEN ( NULLIF ( - 47, - + 63 ) ) * 22 THEN + 9 + - - ( - 23 ) * - 12 / + - 7 * - + COALESCE ( 48, + - 67 * + 78 + - - 17 ) WHEN + CAST( + COUNT( * ) AS SIGNED ) * + + SUM( + 98 ) THEN NULL END, - 1 * - 87, - + 87 ) col1, 46 + - 45 + 36 AS col0
----
-383
NULL
37

skipif mysql # not compatible
query III rowsort label-4962
SELECT ( - 5 ) * + 71 - + 28 col0, CAST ( NULL AS INTEGER ) + + 53 * CAST ( NULL AS INTEGER ) * + + CAST ( - 64 AS INTEGER ) + COALESCE ( + CASE - - 53 WHEN ( NULLIF ( - 47, - + 63 ) ) * 22 THEN + 9 + - - ( - 23 ) * - 12 / + - 7 * - + COALESCE ( 48, + - 67 * + 78 + - - 17 ) WHEN + CAST ( + COUNT ( * ) AS INTEGER ) * + + SUM ( + 98 ) THEN NULL END, - 1 * - 87, - + 87 ) col1, 46 + - 45 + 36 AS col0
----
-383
NULL
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4963
SELECT 57 * + 42 + + + 58 - NULLIF ( + + COUNT( * ), 11 * + 30 + 60 ) AS col1, 85 AS col2
----
2451
85

skipif mysql # not compatible
query II rowsort label-4963
SELECT 57 * + 42 + + + 58 - NULLIF ( + + COUNT ( * ), 11 * + 30 + 60 ) AS col1, 85 AS col2
----
2451
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4964
SELECT DISTINCT + CAST( + ( + COUNT( * ) ) AS SIGNED ) col0, + 90
----
1
90

skipif mysql # not compatible
query II rowsort label-4964
SELECT DISTINCT + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) col0, + 90
----
1
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT ALL 34, + 79 + - COUNT( * ) + + ( + 48 ) + - + 61 col1
----
34
65

skipif mysql # not compatible
query II rowsort label-4965
SELECT ALL 34, + 79 + - COUNT ( * ) + + ( + 48 ) + - + 61 col1
----
34
65

query II rowsort
SELECT - - 83 AS col0, + 5 * 74 + - 95
----
83
275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4967
SELECT CAST( NULL AS SIGNED ) + + ( - - ( COUNT( * ) ) ) * ( + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT CAST ( NULL AS INTEGER ) + + ( - - ( COUNT ( * ) ) ) * ( + 28 )
----
NULL

query I rowsort
SELECT 16 * - 57 AS col0
----
-912

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT ALL + 41 DIV + 38 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL + 41 / + 38 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4970
SELECT ALL 91, - 68 DIV NULLIF ( + 46, + - 6 * - MAX( + 12 ) ) AS col2
----
91
-1

skipif mysql # not compatible
query II rowsort label-4970
SELECT ALL 91, - 68 / NULLIF ( + 46, + - 6 * - MAX ( + 12 ) ) AS col2
----
91
-1

query I rowsort
SELECT DISTINCT + NULLIF ( + 76, + + 41 ) * - 1
----
-76

query I rowsort
SELECT DISTINCT + ( + 22 ) * - + 22 AS col1
----
-484

query I rowsort
SELECT DISTINCT + 39 + + + 9
----
48

query II rowsort
SELECT DISTINCT 75, 86 AS col2
----
75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL COUNT( * ) * + 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL COUNT ( * ) * + 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT ALL + 6 + SUM( DISTINCT - 34 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL + 6 + SUM ( DISTINCT - 34 ) AS col2
----
-28

query II rowsort
SELECT - - 31 AS col0, 62 + + 63
----
31
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL + 26 + MAX( ALL - 36 )
----
-10

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL + 26 + MAX ( ALL - 36 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4979
SELECT - - CAST( + - COALESCE ( - COUNT( * ), + + 65 ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4979
SELECT - - CAST ( + - COALESCE ( - COUNT ( * ), + + 65 ) AS INTEGER ) col0
----
1

query II rowsort
SELECT ALL + 46 * - 81 col1, 74 AS col0
----
-3726
74

query I rowsort
SELECT ALL NULLIF ( + - 23, + + 6 ) AS col0
----
-23

query I rowsort
SELECT DISTINCT 92 + + + ( 39 ) AS col2
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4983
SELECT ALL COUNT( * ) * + + 55 + - - 25 DIV - + MAX( ALL - 55 ) + 48
----
103

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL COUNT ( * ) * + + 55 + - - 25 / - + MAX ( ALL - 55 ) + 48
----
103

onlyif mysql # aggregate syntax: 
query III rowsort label-4984
SELECT COUNT( * ) * - COUNT( * ) * - 3 - - COUNT( * ) AS col0, 37 AS col0, + 62 * + - ( 54 ) * - 15
----
4
37
50220

skipif mysql # not compatible
query III rowsort label-4984
SELECT COUNT ( * ) * - COUNT ( * ) * - 3 - - COUNT ( * ) AS col0, 37 AS col0, + 62 * + - ( 54 ) * - 15
----
4
37
50220

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL 14 * + COUNT( * ) + - 59 + + 24
----
-21

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL 14 * + COUNT ( * ) + - 59 + + 24
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4986
SELECT + CAST( NULL AS SIGNED ) * - - 51 AS col1, 76 + - 53
----
NULL
23

skipif mysql # not compatible
query II rowsort label-4986
SELECT + CAST ( NULL AS INTEGER ) * - - 51 AS col1, 76 + - 53
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT DISTINCT 45 / - CASE + CASE - - 25 WHEN 21 + 61 - + 81 * - + 76 * - - ( - 0 ) + - 51 THEN + - 28 WHEN - ( 79 ) * - ( + 4 ) THEN NULL WHEN 3 + - + CASE 89 WHEN - 20 - + + 3 * + NULLIF ( + 28, - + 46 + + 90 ) THEN NULL WHEN 87 THEN NULL WHEN + 93 THEN + COUNT( * ) ELSE NULL END + 38 * - + COUNT( - + 58 ) + COUNT( * ) THEN NULL END WHEN - - 43 THEN - - 29 * + + 5 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT 45 / - CASE + CASE - - 25 WHEN 21 + 61 - + 81 * - + 76 * - - ( - 0 ) + - 51 THEN + - 28 WHEN - ( 79 ) * - ( + 4 ) THEN NULL WHEN 3 + - + CASE 89 WHEN - 20 - + + 3 * + NULLIF ( + 28, - + 46 + + 90 ) THEN NULL WHEN 87 THEN NULL WHEN + 93 THEN + COUNT ( * ) ELSE NULL END + 38 * - + COUNT ( - + 58 ) + COUNT ( * ) THEN NULL END WHEN - - 43 THEN - - 29 * + + 5 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT DISTINCT 76 * 34 * + 40 + NULLIF ( - 2, + 23 ) * - COUNT( * ) col1
----
103362

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT 76 * 34 * + 40 + NULLIF ( - 2, + 23 ) * - COUNT ( * ) col1
----
103362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4989
SELECT ALL COUNT( + 42 ) * - + 21 * - CAST( - 31 AS SIGNED )
----
-651

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL COUNT ( + 42 ) * - + 21 * - CAST ( - 31 AS INTEGER )
----
-651

query I rowsort
SELECT ALL 51 * - - 0 + - 21 AS col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4991
SELECT + CAST( NULL AS SIGNED ) * - + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4991
SELECT + CAST ( NULL AS INTEGER ) * - + 22 AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 35, 71 + - 82 - - + 60, - + 43 ) * - - 89
----
3115

query I rowsort
SELECT ALL + 33 * + NULLIF ( + - 92, 13 * + 55 + + 12 + 82 ) - 52 AS col2
----
-3088

query I rowsort
SELECT + 50 + + - 45 * + + COALESCE ( + ( - 62 ), - 59 )
----
2840

onlyif mysql # DIV for integer division: 
query I rowsort label-4995
SELECT + 55 DIV - ( + 23 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4995
SELECT + 55 / - ( + 23 ) AS col1
----
-2

query I rowsort
SELECT + 73 * - 63 AS col1
----
-4599

onlyif mysql # aggregate syntax: 
query II rowsort label-4997
SELECT MIN( + + 46 ) AS col2, - 33
----
46
-33

skipif mysql # not compatible
query II rowsort label-4997
SELECT MIN ( + + 46 ) AS col2, - 33
----
46
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4998
SELECT MIN( ALL - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT MIN ( ALL - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT MIN( + + 1 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4999
SELECT MIN ( + + 1 ) col0
----
1

query I rowsort
SELECT 12 * + 33 + + NULLIF ( - 57, - 50 ) AS col1
----
339

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT ALL 31 DIV - 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL 31 / - 38 AS col0
----
0

query I rowsort
SELECT + 37 * - 6
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT + 19 + - MIN( DISTINCT 39 )
----
-20

skipif mysql # not compatible
query I rowsort label-5003
SELECT + 19 + - MIN ( DISTINCT 39 )
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5004
SELECT DISTINCT - 64 DIV - 36 col1, + 15 - - COUNT( * )
----
1
16

skipif mysql # not compatible
query II rowsort label-5004
SELECT DISTINCT - 64 / - 36 col1, + 15 - - COUNT ( * )
----
1
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5005
SELECT + 33 + SUM( - NULLIF ( 54, COALESCE ( 46, + 19 / - 0 + CAST( - CASE + ( - 33 ) WHEN 19 THEN 27 END AS SIGNED ) ) ) ) * + 1 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5005
SELECT + 33 + SUM ( - NULLIF ( 54, COALESCE ( 46, + 19 / - 0 + CAST ( - CASE + ( - 33 ) WHEN 19 THEN 27 END AS INTEGER ) ) ) ) * + 1 AS col0
----
-21

query I rowsort
SELECT ALL + - ( + + ( + 41 ) ) * - 58 * 45 AS col2
----
107010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT + ( - COUNT( * ) ) * ( 50 ) + + CASE CASE + 34 WHEN + CAST( NULL AS SIGNED ) - 65 THEN + 69 END WHEN + MAX( DISTINCT - - 3 ) THEN - 42 * + 18 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT + ( - COUNT ( * ) ) * ( 50 ) + + CASE CASE + 34 WHEN + CAST ( NULL AS INTEGER ) - 65 THEN + 69 END WHEN + MAX ( DISTINCT - - 3 ) THEN - 42 * + 18 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT ALL - MIN( ALL + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL - MIN ( ALL + 66 )
----
-66

query I rowsort
SELECT ALL + COALESCE ( + - 63, 53 ) * - 55
----
3465

query I rowsort
SELECT + + 90 - 3 * + 85
----
-165

query I rowsort
SELECT + ( + 65 ) + - - 28 * - 1
----
37

query I rowsort
SELECT ALL - 10 + 44 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT ALL + 55 + - COUNT( - 71 )
----
54

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL + 55 + - COUNT ( - 71 )
----
54

query I rowsort
SELECT - 80 - - + 41 + 71 col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT - + COALESCE ( - 29, + + 13 * + - COUNT( * ), 49 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-5015
SELECT - + COALESCE ( - 29, + + 13 * + - COUNT ( * ), 49 ) AS col2
----
29

query I rowsort
SELECT ALL + 42 + + - 57 - + 4
----
-19

query I rowsort
SELECT - 33 + 54 + + + 22 + 97
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT + 39 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT + 39 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 15 * 58
----
870

query I rowsort
SELECT - 86 + 3 + - - NULLIF ( - - 54, - + 82 ) * - 62
----
-3431

query I rowsort
SELECT ALL - 79 * - - ( 43 ) col0
----
-3397

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5022
SELECT ALL + COUNT( * ) DIV + 25 - - - 58 + COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL + COUNT ( * ) / + 25 - - - 58 + COUNT ( * ) AS col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5023
SELECT - COUNT( * ) * + 11 DIV - - 5
----
-2

skipif mysql # not compatible
query I rowsort label-5023
SELECT - COUNT ( * ) * + 11 / - - 5
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT 80 * COUNT( * ) + 56 + - + 10
----
126

skipif mysql # not compatible
query I rowsort label-5024
SELECT 80 * COUNT ( * ) + 56 + - + 10
----
126

query I rowsort
SELECT - 44 * 60 AS col0
----
-2640

query I rowsort
SELECT + 49 * ( - - NULLIF ( - + 25, - 1 * + 22 ) ) AS col1
----
-1225

query I rowsort
SELECT + 8 + + - 84 AS col1
----
-76

query I rowsort
SELECT ( + NULLIF ( - 13, - 88 ) ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL 90 * - COALESCE ( + 98, - CASE + - 22 WHEN + 90 + + - NULLIF ( 53, - 74 ) THEN 41 WHEN + 90 + 37 - + 16 THEN NULL ELSE NULL END + - 62 + COUNT( * ) * - 69, + 53 * + ( - CASE - 50 WHEN + 46 THEN + 68 + + 22 ELSE NULL END ) ) AS col0
----
-8820

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL 90 * - COALESCE ( + 98, - CASE + - 22 WHEN + 90 + + - NULLIF ( 53, - 74 ) THEN 41 WHEN + 90 + 37 - + 16 THEN NULL ELSE NULL END + - 62 + COUNT ( * ) * - 69, + 53 * + ( - CASE - 50 WHEN + 46 THEN + 68 + + 22 ELSE NULL END ) ) AS col0
----
-8820

query I rowsort
SELECT + NULLIF ( - ( - 95 ), + - 41 )
----
95

query I rowsort
SELECT + 13 * 30 col1
----
390

query I rowsort
SELECT ALL + ( + - 55 ) col1
----
-55

query I rowsort
SELECT COALESCE ( + 64, 10 )
----
64

query I rowsort
SELECT - 79 * - - 82 AS col0
----
-6478

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT + COUNT( NULLIF ( - - 97, 22 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5035
SELECT + COUNT ( NULLIF ( - - 97, 22 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT + + COUNT( * ) DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-5036
SELECT + + COUNT ( * ) / - 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL MAX( DISTINCT 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL MAX ( DISTINCT 82 ) AS col0
----
82

query I rowsort
SELECT + + 45 + - 68
----
-23

query I rowsort
SELECT DISTINCT - - 70 * - 25 + + + 66
----
-1684

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT ALL + NULLIF ( - 2, + + 29 ) * - COUNT( * ) + 9 col0
----
11

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL + NULLIF ( - 2, + + 29 ) * - COUNT ( * ) + 9 col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5041
SELECT DISTINCT + 29 * - 53 + - + 35 AS col1, CAST( - 42 AS SIGNED ) AS col2
----
-1572
-42

skipif mysql # not compatible
query II rowsort label-5041
SELECT DISTINCT + 29 * - 53 + - + 35 AS col1, CAST ( - 42 AS INTEGER ) AS col2
----
-1572
-42

query I rowsort
SELECT ALL - COALESCE ( 82, + NULLIF ( + ( + 29 ), 37 ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT - MIN( + - 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5043
SELECT - MIN ( + - 46 ) AS col1
----
46

query I rowsort
SELECT ALL - 23 + 64
----
41

query I rowsort
SELECT + 31 * + 58 AS col0
----
1798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5046
SELECT DISTINCT AVG ( + 80 ) * MAX( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT AVG ( + 80 ) * MAX ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT 65 * + + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-5047
SELECT 65 * + + COUNT ( * )
----
65

query I rowsort
SELECT ALL 16 - 67 AS col1
----
-51

query I rowsort
SELECT 90 * - - 65 * 10
----
58500

query II rowsort
SELECT ALL 32, 38 AS col0
----
32
38

query II rowsort
SELECT 89 AS col2, + 75
----
89
75

query II rowsort
SELECT - 88, - 19 AS col2
----
-88
-19

query I rowsort
SELECT ALL + 12 - + - 24
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5054
SELECT ALL - 48 DIV + + 84 * 51
----
0

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL - 48 / + + 84 * 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5055
SELECT COUNT( * ) * + + 73 - CAST( + 81 AS SIGNED ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-5055
SELECT COUNT ( * ) * + + 73 - CAST ( + 81 AS INTEGER ) col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5056
SELECT 22 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-5056
SELECT 22 / + 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5057
SELECT DISTINCT - COUNT( * ) * - + CAST( 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT - COUNT ( * ) * - + CAST ( 44 AS INTEGER )
----
44

query I rowsort
SELECT ALL + ( + + 38 ) * + CASE - 18 WHEN - 8 * 9 * - 79 + - ( + + ( 90 ) ) THEN - 73 END * - NULLIF ( - 5, - + 73 / - NULLIF ( + 49, + CASE + 7 WHEN + 16 / + 84 THEN 18 ELSE NULL END * - ( 54 ) + - 69 ) * + 58 * + 61 )
----
NULL

query II rowsort
SELECT ALL - 86 AS col1, 28
----
-86
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL + COUNT( * ) + - 54 col2
----
-53

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL + COUNT ( * ) + - 54 col2
----
-53

query I rowsort
SELECT - - 68 * + + 49 + + 74 - 86 + + 31 AS col1
----
3351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5062
SELECT ALL - CASE COUNT( * ) WHEN + + 43 * - MAX( ALL + 69 ) + + 96 THEN - + 39 WHEN - 55 + - 42 THEN 12 * + + 19 + - - CASE CASE CAST( NULL AS SIGNED ) WHEN - + 76 - + 41 / CAST( NULL AS DECIMAL ) THEN + + 23 * - 96 ELSE COUNT( * ) END WHEN ( - 60 ) THEN 90 END * + 76 WHEN CAST( + + 74 AS SIGNED ) THEN NULL ELSE NULL END + + - COUNT( * ) + - COALESCE ( - - ( 95 ), - - 78 * + COUNT( * ), + 61 * 76 + + 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL - CASE COUNT ( * ) WHEN + + 43 * - MAX ( ALL + 69 ) + + 96 THEN - + 39 WHEN - 55 + - 42 THEN 12 * + + 19 + - - CASE CASE CAST ( NULL AS INTEGER ) WHEN - + 76 - + 41 / CAST ( NULL AS REAL ) THEN + + 23 * - 96 ELSE COUNT ( * ) END WHEN ( - 60 ) THEN 90 END * + 76 WHEN CAST ( + + 74 AS INTEGER ) THEN NULL ELSE NULL END + + - COUNT ( * ) + - COALESCE ( - - ( 95 ), - - 78 * + COUNT ( * ), + 61 * 76 + + 54 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT 91 + - + 20 * + COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5063
SELECT 91 + - + 20 * + COUNT ( * ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT + MAX( - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-5064
SELECT + MAX ( - 24 )
----
-24

query II rowsort
SELECT 66 AS col1, 19
----
66
19

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5066
SELECT - 14 AS col0, 62 * - - AVG ( DISTINCT + CASE + - ( - CAST( NULL AS SIGNED ) ) WHEN - COALESCE ( - 92, + 43 ) * 47 + - ( + 88 ) + + + 56 * - 8 THEN - 29 ELSE - CAST( NULL AS DECIMAL ) END )
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-5066
SELECT - 14 AS col0, 62 * - - AVG ( DISTINCT + CASE + - ( - CAST ( NULL AS INTEGER ) ) WHEN - COALESCE ( - 92, + 43 ) * 47 + - ( + 88 ) + + + 56 * - 8 THEN - 29 ELSE - CAST ( NULL AS REAL ) END )
----
-14
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5067
SELECT ALL + 70 + - 68, MAX( - 61 ) AS col2, + - 62 AS col1
----
2
-61
-62

skipif mysql # not compatible
query III rowsort label-5067
SELECT ALL + 70 + - 68, MAX ( - 61 ) AS col2, + - 62 AS col1
----
2
-61
-62

query II rowsort
SELECT 72, - 34 AS col2
----
72
-34

query II rowsort
SELECT - 48, 63 AS col1
----
-48
63

query I rowsort
SELECT ALL + + 80 + + 12 + - - 19
----
111

query I rowsort
SELECT - 13 * + 68
----
-884

query I rowsort
SELECT DISTINCT 52 + - + 94 * 71 * - 78 * + 66
----
34357804

query I rowsort
SELECT DISTINCT - COALESCE ( - - ( 28 ), + 42 ) AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT DISTINCT CAST( 46 AS SIGNED ) + + 48 + - MAX( - - 93 )
----
1

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT CAST ( 46 AS INTEGER ) + + 48 + - MAX ( - - 93 )
----
1

query I rowsort
SELECT ALL 70 + - 9 AS col2
----
61

query II rowsort
SELECT DISTINCT - 9 AS col2, ( 7 ) col2
----
-9
7

query I rowsort
SELECT DISTINCT + 60 + - 17 + + 70 col2
----
113

query II rowsort
SELECT + 60, + 92 AS col1
----
60
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT + NULLIF ( - COUNT( * ), - + 51 + - 75 + - - ( + 1 ) * 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-5079
SELECT + NULLIF ( - COUNT ( * ), - + 51 + - 75 + - - ( + 1 ) * 22 )
----
-1

query I rowsort
SELECT DISTINCT - 27 + - + 37 AS col2
----
-64

query I rowsort
SELECT ALL + 94 - - - 86
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5082
SELECT ALL 17 AS col0, COALESCE ( + 36, COUNT( * ) )
----
17
36

skipif mysql # not compatible
query II rowsort label-5082
SELECT ALL 17 AS col0, COALESCE ( + 36, COUNT ( * ) )
----
17
36

query I rowsort
SELECT - 29 + + 19 + + - 85 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT DISTINCT COUNT( * ) - 88 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT COUNT ( * ) - 88 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL MAX( + 30 ) * + 51 * - 18 - 93
----
-27633

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL MAX ( + 30 ) * + 51 * - 18 - 93
----
-27633

query I rowsort
SELECT ( + ( 57 ) ) * + 61 AS col0
----
3477

query I rowsort
SELECT ( + + ( + ( - 5 ) ) ) - - 75
----
70

query I rowsort
SELECT 0 * + 59 AS col2
----
0

query I rowsort
SELECT 71 + + - 21
----
50

query II rowsort
SELECT ( 75 ) + 4 + - - 77 * 81 * + - 92 * - 40 AS col2, 88
----
22952239
88

query I rowsort
SELECT 25 * 22
----
550

query I rowsort
SELECT ALL 15 * + 71 AS col0
----
1065

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5093
SELECT MAX( 58 ) + + 84 DIV 14
----
64

skipif mysql # not compatible
query I rowsort label-5093
SELECT MAX ( 58 ) + + 84 / 14
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5094
SELECT ALL 26 * - NULLIF ( - - COALESCE ( SUM( - 61 ), CAST( NULL AS SIGNED ), + 38, 89 + + COUNT( * ) * - 37 ), - 64 * + 63 ) AS col1
----
1586

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL 26 * - NULLIF ( - - COALESCE ( SUM ( - 61 ), CAST ( NULL AS INTEGER ), + 38, 89 + + COUNT ( * ) * - 37 ), - 64 * + 63 ) AS col1
----
1586

onlyif mysql # aggregate syntax: 
query II rowsort label-5095
SELECT ALL - COUNT( 59 ) AS col2, MIN( - 17 ) AS col2
----
-1
-17

skipif mysql # not compatible
query II rowsort label-5095
SELECT ALL - COUNT ( 59 ) AS col2, MIN ( - 17 ) AS col2
----
-1
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5096
SELECT DISTINCT - 64 * + COUNT( * ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT - 64 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5097
SELECT NULLIF ( + 24, CAST( + + MIN( DISTINCT - - 25 ) AS SIGNED ) - - - COUNT( * ) * - ( + 19 ) + - - 43 ) * - 11
----
-264

skipif mysql # not compatible
query I rowsort label-5097
SELECT NULLIF ( + 24, CAST ( + + MIN ( DISTINCT - - 25 ) AS INTEGER ) - - - COUNT ( * ) * - ( + 19 ) + - - 43 ) * - 11
----
-264

query I rowsort
SELECT - 69 * - 39 * + 6 + - + 14 AS col0
----
16132

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL - + 68 * + COUNT( * ) * + - 72 + - 11 + + ( + COUNT( * ) ) AS col0
----
4886

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL - + 68 * + COUNT ( * ) * + - 72 + - 11 + + ( + COUNT ( * ) ) AS col0
----
4886

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT + + SUM( ALL + 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5100
SELECT + + SUM ( ALL + 72 ) AS col1
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-5101
SELECT DISTINCT + - 3 DIV 90 AS col0, 15 AS col1
----
0
15

skipif mysql # not compatible
query II rowsort label-5101
SELECT DISTINCT + - 3 / 90 AS col0, 15 AS col1
----
0
15

query I rowsort
SELECT 95 + + 52 + - 30 + - 39 col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL - 35 * - 9 + + COUNT( * ) AS col1
----
316

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL - 35 * - 9 + + COUNT ( * ) AS col1
----
316

onlyif mysql # DIV for integer division: 
query I rowsort label-5104
SELECT ALL 58 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL 58 / - 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5105
SELECT ALL - COALESCE ( 38, + - 81 * 14 + - - CAST( NULL AS SIGNED ) * + 65, 76 + + + ( MIN( 15 ) ), - + ( - + 21 ) ) * + 30 + + - ( 73 ) + - + 30
----
-1243

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL - COALESCE ( 38, + - 81 * 14 + - - CAST ( NULL AS INTEGER ) * + 65, 76 + + + ( MIN ( 15 ) ), - + ( - + 21 ) ) * + 30 + + - ( 73 ) + - + 30
----
-1243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5106
SELECT DISTINCT COUNT( * ) * - - COALESCE ( - + ( - 6 ), 1 + - 38 * 53 * + 20 ) * + 76 * - 13 * - SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) + + COUNT( + 8 ) - - + 85 + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT COUNT ( * ) * - - COALESCE ( - + ( - 6 ), 1 + - 38 * 53 * + 20 ) * + 76 * - 13 * - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + + COUNT ( + 8 ) - - + 85 + + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT ALL - 33 * + - COUNT( - - ( + 74 ) )
----
33

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL - 33 * + - COUNT ( - - ( + 74 ) )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5108
SELECT 75 DIV - 67 + 32 - + 23 * - 81 + - - 76 - 35 DIV - 5 + 25 * - 66 * - 15 AS col0
----
26727

skipif mysql # not compatible
query I rowsort label-5108
SELECT 75 / - 67 + 32 - + 23 * - 81 + - - 76 - 35 / - 5 + 25 * - 66 * - 15 AS col0
----
26727

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL + - CASE + - 47 WHEN - SUM( ALL + 25 ) / + - 66 + + + 15 * + 23 / - 42 THEN - + MAX( - 69 ) - COUNT( * ) END * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL + - CASE + - 47 WHEN - SUM ( ALL + 25 ) / + - 66 + + + 15 * + 23 / - 42 THEN - + MAX ( - 69 ) - COUNT ( * ) END * 28
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5110
SELECT ALL + CAST( 64 AS SIGNED ), - 10 AS col0
----
64
-10

skipif mysql # not compatible
query II rowsort label-5110
SELECT ALL + CAST ( 64 AS INTEGER ), - 10 AS col0
----
64
-10

query I rowsort
SELECT CASE + ( - 89 ) WHEN - 12 + - ( 42 ) THEN NULL WHEN + 37 THEN NULL WHEN 96 - 25 THEN + 51 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 48 - + 86 * - 38
----
3316

query I rowsort
SELECT - + 18 * + - 47 AS col2
----
846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT DISTINCT + - CAST( 24 AS SIGNED ) - 21 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT + - CAST ( 24 AS INTEGER ) - 21 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT DISTINCT + SUM( ALL - + ( 37 ) ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT + SUM ( ALL - + ( 37 ) ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT ALL CASE 46 WHEN - 96 THEN + + COUNT( * ) + + + ( - ( 60 ) ) / 0 * CASE + + 97 WHEN + COUNT( * ) THEN + 13 WHEN + 37 THEN + + 41 END - COUNT( * ) WHEN - 92 * 58 THEN - 6 + + 17 + + 99 * 48 WHEN + - 94 / + COUNT( * ) + + + 23 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL CASE 46 WHEN - 96 THEN + + COUNT ( * ) + + + ( - ( 60 ) ) / 0 * CASE + + 97 WHEN + COUNT ( * ) THEN + 13 WHEN + 37 THEN + + 41 END - COUNT ( * ) WHEN - 92 * 58 THEN - 6 + + 17 + + 99 * 48 WHEN + - 94 / + COUNT ( * ) + + + 23 THEN NULL END AS col1
----
NULL

query II rowsort
SELECT 20, ( 64 ) * - 56 + - 78 + - + 13 col1
----
20
-3675

query I rowsort
SELECT + 80 + + + 5 - - 70 * - - 85 * - + 51 AS col2
----
-303365

query I rowsort
SELECT DISTINCT NULLIF ( 13, + 89 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT - CASE + 3 WHEN + 76 * - 11 THEN + 6 END * 0 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5120
SELECT - CASE + 3 WHEN + 76 * - 11 THEN + 6 END * 0 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT ALL + 48 * COUNT( * ) * - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL + 48 * COUNT ( * ) * - COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-5122
SELECT - 29 AS col2, MIN( 88 ) col1
----
-29
88

skipif mysql # not compatible
query II rowsort label-5122
SELECT - 29 AS col2, MIN ( 88 ) col1
----
-29
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT + 33 + - + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5123
SELECT + 33 + - + COUNT ( * ) AS col2
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5124
SELECT - CAST( NULL AS DECIMAL ) / 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT - CAST ( NULL AS REAL ) / 5
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5125
SELECT + 9 DIV - MAX( + 39 )
----
0

skipif mysql # not compatible
query I rowsort label-5125
SELECT + 9 / - MAX ( + 39 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT - CAST( NULL AS SIGNED ) * - 31 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT - CAST ( NULL AS INTEGER ) * - 31 col2
----
NULL

query I rowsort
SELECT ALL + 48 * + 25
----
1200

query I rowsort
SELECT DISTINCT ( + 6 ) + - 52 AS col2
----
-46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5129
SELECT ALL CAST( - ( + 73 ) AS SIGNED ) DIV + 85 + + 36 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL CAST ( - ( + 73 ) AS INTEGER ) / + 85 + + 36 AS col0
----
36

query II rowsort
SELECT 71 AS col1, 9 + - - 93 + - 15
----
71
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT - CASE + 36 WHEN - COUNT( * ) * 16 + - 26 + + + 8 * - 52 THEN NULL ELSE - 49 - + 53 END
----
102

skipif mysql # not compatible
query I rowsort label-5131
SELECT - CASE + 36 WHEN - COUNT ( * ) * 16 + - 26 + + + 8 * - 52 THEN NULL ELSE - 49 - + 53 END
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL MIN( ALL + 53 ) + + 47 * + + 56 + + 67 + COUNT( 89 ) + + - 39 - - - 90 + + 34 * - CASE + + 8 WHEN + 48 * 40 THEN - NULLIF ( - 26, - 96 ) WHEN 24 THEN NULL END + SUM( ALL + + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL MIN ( ALL + 53 ) + + 47 * + + 56 + + 67 + COUNT ( 89 ) + + - 39 - - - 90 + + 34 * - CASE + + 8 WHEN + 48 * 40 THEN - NULLIF ( - 26, - 96 ) WHEN 24 THEN NULL END + SUM ( ALL + + 40 )
----
NULL

query I rowsort
SELECT ALL 49 + - - 39
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5134
SELECT + COUNT( * ) DIV + 71 + - 61 - 51 * 91 * 34
----
-157855

skipif mysql # not compatible
query I rowsort label-5134
SELECT + COUNT ( * ) / + 71 + - 61 - 51 * 91 * 34
----
-157855

query I rowsort
SELECT DISTINCT 46 * + - 93 * - 11
----
47058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5136
SELECT + CASE COUNT( - + 49 ) WHEN + + 37 THEN NULL WHEN + 82 THEN - - 27 * - 38 + - CAST( NULL AS SIGNED ) * + 52 + 65 - 53 * + 89 END * + ( - - 37 ) - - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT + CASE COUNT ( - + 49 ) WHEN + + 37 THEN NULL WHEN + 82 THEN - - 27 * - 38 + - CAST ( NULL AS INTEGER ) * + 52 + 65 - 53 * + 89 END * + ( - - 37 ) - - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + + ( - 74 ) col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5138
SELECT ALL + + 73 * + + COUNT( * ) + + 77 + - CAST( - 12 AS SIGNED ) + - 20 + + 68 - + COUNT( * ) * - SUM( + - COALESCE ( + ( + 39 ), + - CASE + 69 WHEN 9 THEN NULL WHEN + 86 + - 0 THEN NULL ELSE - 60 + + 72 * + + ( + 20 ) END * + - 30 ) ) * + 60 - - COUNT( * ) + - - 4 * + ( 15 ) DIV 87 AS col1
----
-2129

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL + + 73 * + + COUNT ( * ) + + 77 + - CAST ( - 12 AS INTEGER ) + - 20 + + 68 - + COUNT ( * ) * - SUM ( + - COALESCE ( + ( + 39 ), + - CASE + 69 WHEN 9 THEN NULL WHEN + 86 + - 0 THEN NULL ELSE - 60 + + 72 * + + ( + 20 ) END * + - 30 ) ) * + 60 - - COUNT ( * ) + - - 4 * + ( 15 ) / 87 AS col1
----
-2129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5139
SELECT + + COUNT( * ) + - 9 - - 37 - + - 3 DIV - 70 * + - COUNT( * ) * 16 * 4
----
29

skipif mysql # not compatible
query I rowsort label-5139
SELECT + + COUNT ( * ) + - 9 - - 37 - + - 3 / - 70 * + - COUNT ( * ) * 16 * 4
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT + 42 * - CASE + + 92 WHEN 36 + + - 52 THEN COUNT( * ) WHEN 8 * 20 THEN + 54 + - 73 + + 82 / + 84 + - - 86 + 87 / - 64 + 63 - + 67 WHEN - + NULLIF ( COUNT( * ), + 41 ) THEN - 41 END + 7 - + - ( - 35 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5140
SELECT + 42 * - CASE + + 92 WHEN 36 + + - 52 THEN COUNT ( * ) WHEN 8 * 20 THEN + 54 + - 73 + + 82 / + 84 + - - 86 + 87 / - 64 + 63 - + 67 WHEN - + NULLIF ( COUNT ( * ), + 41 ) THEN - 41 END + 7 - + - ( - 35 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL + - ( - - MAX( DISTINCT 16 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL + - ( - - MAX ( DISTINCT 16 ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT + - 38 + + MIN( + 37 ) + - 82 + ( + + 62 ) + - 88 * 67 * 87
----
-512973

skipif mysql # not compatible
query I rowsort label-5142
SELECT + - 38 + + MIN ( + 37 ) + - 82 + ( + + 62 ) + - 88 * 67 * 87
----
-512973

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL 46 * - 52 * 93 - - + COUNT( * ) AS col2
----
-222455

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL 46 * - 52 * 93 - - + COUNT ( * ) AS col2
----
-222455

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT + 88 DIV 87 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5144
SELECT + 88 / 87 AS col0
----
1

query I rowsort
SELECT - 58 * - 97 col1
----
5626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5146
SELECT ALL + 36 DIV 53 * + 27 DIV + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL + 36 / 53 * + 27 / + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT + 62 * - 65 + + NULLIF ( - SUM( DISTINCT 35 ), - 15 )
----
-4065

skipif mysql # not compatible
query I rowsort label-5147
SELECT + 62 * - 65 + + NULLIF ( - SUM ( DISTINCT 35 ), - 15 )
----
-4065

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT ALL + SUM( DISTINCT + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL + SUM ( DISTINCT + 70 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT DISTINCT 76 DIV 58
----
1

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT 76 / 58
----
1

query I rowsort
SELECT ALL - CASE + + 40 WHEN 67 THEN - 31 WHEN 65 - - 81 THEN NULL END * 6 * + 6
----
NULL

query II rowsort
SELECT - - 81 * + 1 * - 22 AS col0, 94
----
-1782
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT ALL + + CASE - COUNT( * ) WHEN - CASE - 24 WHEN + 60 THEN - MIN( 77 ) * 23 * 57 ELSE 6 + + - 80 + + COUNT( DISTINCT - 28 ) * - - CASE - COUNT( - 58 ) WHEN + 22 THEN + 97 * + + 58 WHEN + - CAST( + 42 AS SIGNED ) + + ( - 56 ) THEN - 19 ELSE + 24 END + - 57 END + + 90 THEN - - 51 WHEN 20 - + 32 THEN NULL WHEN - 19 + 58 + + COUNT( * ) * + - CASE - + 95 WHEN + ( - 47 ) / + + 58 THEN ( - 70 ) ELSE 22 END * 41 * - CAST( + 42 AS SIGNED ) THEN - 97 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL + + CASE - COUNT ( * ) WHEN - CASE - 24 WHEN + 60 THEN - MIN ( 77 ) * 23 * 57 ELSE 6 + + - 80 + + COUNT ( DISTINCT - 28 ) * - - CASE - COUNT ( - 58 ) WHEN + 22 THEN + 97 * + + 58 WHEN + - CAST ( + 42 AS INTEGER ) + + ( - 56 ) THEN - 19 ELSE + 24 END + - 57 END + + 90 THEN - - 51 WHEN 20 - + 32 THEN NULL WHEN - 19 + 58 + + COUNT ( * ) * + - CASE - + 95 WHEN + ( - 47 ) / + + 58 THEN ( - 70 ) ELSE 22 END * 41 * - CAST ( + 42 AS INTEGER ) THEN - 97 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5153
SELECT - + 6 * - + 32 * + - ( - 86 ) AS col1, + 93 + CAST( NULL AS SIGNED )
----
16512
NULL

skipif mysql # not compatible
query II rowsort label-5153
SELECT - + 6 * - + 32 * + - ( - 86 ) AS col1, + 93 + CAST ( NULL AS INTEGER )
----
16512
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT + MIN( + - 21 ) + + ( + + 75 ) + + ( + 16 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5154
SELECT + MIN ( + - 21 ) + + ( + + 75 ) + + ( + 16 ) AS col1
----
70

query I rowsort
SELECT ALL ( 80 ) AS col1
----
80

query I rowsort
SELECT - ( - 8 ) * + 49 AS col0
----
392

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT - 33 * - - COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5157
SELECT - 33 * - - COUNT ( * ) AS col0
----
-33

query I rowsort
SELECT ALL - 36 * + 19 * + + 34 + - 76 AS col0
----
-23332

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT - COUNT( * ) + - + MIN( - + 79 )
----
78

skipif mysql # not compatible
query I rowsort label-5159
SELECT - COUNT ( * ) + - + MIN ( - + 79 )
----
78

query II rowsort
SELECT DISTINCT - 8 + - - 39 col1, + 71 + - - 24 AS col2
----
31
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5161
SELECT ALL + 17 + + + 99 * ( + - CAST( NULL AS DECIMAL ) ) * + NULLIF ( + - 40, + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL + 17 + + + 99 * ( + - CAST ( NULL AS REAL ) ) * + NULLIF ( + - 40, + 95 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5162
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT - MIN( + 62 ) - - 20 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5163
SELECT - MIN ( + 62 ) - - 20 AS col1
----
-42

query I rowsort
SELECT ALL + NULLIF ( 18, - - ( + - 92 ) ) + + 89
----
107

query I rowsort
SELECT + 43 + 42 + - - 72 AS col1
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT + 19 DIV + 17
----
1

skipif mysql # not compatible
query I rowsort label-5166
SELECT + 19 / + 17
----
1

query I rowsort
SELECT ALL - 90 + + + 79 * 84
----
6546

query I rowsort
SELECT + 37 * 92
----
3404

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5169
SELECT - 7 + + 89 + - - 3 * + + CASE + CASE + 24 WHEN 46 THEN + 50 / - 86 ELSE NULL END WHEN - 10 + - 66 * - 93 THEN CAST( NULL AS DECIMAL ) * - 90 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT - 7 + + 89 + - - 3 * + + CASE + CASE + 24 WHEN 46 THEN + 50 / - 86 ELSE NULL END WHEN - 10 + - 66 * - 93 THEN CAST ( NULL AS REAL ) * - 90 END AS col0
----
NULL

query I rowsort
SELECT ALL - + 19 * - 92
----
1748

query I rowsort
SELECT DISTINCT + + 56 * - 30 * 4 AS col2
----
-6720

query I rowsort
SELECT ALL - 92 + - 90 * - + 67
----
5938

query I rowsort
SELECT ALL - ( - + 79 ) AS col0
----
79

query I rowsort
SELECT 58 * + 2 AS col1
----
116

query I rowsort
SELECT DISTINCT - 89 - NULLIF ( 66, - - 38 ) AS col2
----
-155

query I rowsort
SELECT 76 * 45 * + - 21
----
-71820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5177
SELECT + 14 * + + 73 + + - 8 + 60 * 63 + + COALESCE ( + + COUNT( * ), 92, + COUNT( * ) + - ( + COUNT( * ) ) - + 87 * + - COUNT( * ) + + 78 + - - SUM( ALL + 42 ) - 95 DIV + - 71 * - 47 * 23 - - 57 ) * ( + 60 ) + 56 + MIN( - - 43 ) * 67
----
7791

skipif mysql # not compatible
query I rowsort label-5177
SELECT + 14 * + + 73 + + - 8 + 60 * 63 + + COALESCE ( + + COUNT ( * ), 92, + COUNT ( * ) + - ( + COUNT ( * ) ) - + 87 * + - COUNT ( * ) + + 78 + - - SUM ( ALL + 42 ) - 95 / + - 71 * - 47 * 23 - - 57 ) * ( + 60 ) + 56 + MIN ( - - 43 ) * 67
----
7791

query I rowsort
SELECT - CASE WHEN NOT NULL <> NULL THEN - 17 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 16 * + 74 AS col1, 4 * + + 26 + 14
----
1184
118

onlyif mysql # aggregate syntax: 
query II rowsort label-5180
SELECT COALESCE ( + - NULLIF ( - 50, - 89 ), + 39 * 63 * + 2 ) + + 77 * - - COUNT( * ) AS col1, 76
----
127
76

skipif mysql # not compatible
query II rowsort label-5180
SELECT COALESCE ( + - NULLIF ( - 50, - 89 ), + 39 * 63 * + 2 ) + + 77 * - - COUNT ( * ) AS col1, 76
----
127
76

query I rowsort
SELECT 25 * - 46
----
-1150

query I rowsort
SELECT 14 + 58 - - 26 col0
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5183
SELECT 16 * ( - CAST( NULL AS DECIMAL ) ) * + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT 16 * ( - CAST ( NULL AS REAL ) ) * + 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT ALL - COUNT( ALL - 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL - COUNT ( ALL - 54 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5185
SELECT + 89 * + + 25 + + 52 * 26 - 92 * - COALESCE ( - + 0, ( + 56 ) ) DIV - 72 AS col0
----
3577

skipif mysql # not compatible
query I rowsort label-5185
SELECT + 89 * + + 25 + + 52 * 26 - 92 * - COALESCE ( - + 0, ( + 56 ) ) / - 72 AS col0
----
3577

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL - ( COUNT( * ) ) * COUNT( * ) * 79 * 64 * + + 10 AS col1
----
-50560

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL - ( COUNT ( * ) ) * COUNT ( * ) * 79 * 64 * + + 10 AS col1
----
-50560

onlyif mysql # DIV for integer division: 
query I rowsort label-5187
SELECT 6 DIV + 76 col2
----
0

skipif mysql # not compatible
query I rowsort label-5187
SELECT 6 / + 76 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5188
SELECT ALL 3 + CAST( + 67 AS SIGNED ) - + + 68
----
2

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL 3 + CAST ( + 67 AS INTEGER ) - + + 68
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5189
SELECT ALL + COALESCE ( + + ( - 82 ), ( SUM( - 70 ) ) * + - 30 * - 37 DIV - 79 ) * + 58
----
-4756

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL + COALESCE ( + + ( - 82 ), ( SUM ( - 70 ) ) * + - 30 * - 37 / - 79 ) * + 58
----
-4756

query II rowsort
SELECT DISTINCT 87 AS col1, - 89
----
87
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5191
SELECT SUM( ALL - 12 ) DIV - NULLIF ( - - 87, 79 )
----
0

skipif mysql # not compatible
query I rowsort label-5191
SELECT SUM ( ALL - 12 ) / - NULLIF ( - - 87, 79 )
----
0

query I rowsort
SELECT 31 + 88
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT ALL + 31 * + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL + 31 * + COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5194
SELECT ALL + 59 + - COUNT( * ) * - 6, 40 AS col0
----
65
40

skipif mysql # not compatible
query II rowsort label-5194
SELECT ALL + 59 + - COUNT ( * ) * - 6, 40 AS col0
----
65
40

query I rowsort
SELECT ALL 96 * 49 AS col1
----
4704

query I rowsort
SELECT 31 * 16
----
496

query II rowsort
SELECT 20 AS col2, 51
----
20
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5198
SELECT ALL + ( - 37 ) - - ( + 90 ) DIV + 38 + + 71 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + ( - 37 ) - - ( + 90 ) / + 38 + + 71 AS col2
----
36

query I rowsort
SELECT ALL - 46 - + + 24 * - 37 AS col1
----
842

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT 11 * - COUNT( * ) * + 16 AS col0
----
-176

skipif mysql # not compatible
query I rowsort label-5200
SELECT 11 * - COUNT ( * ) * + 16 AS col0
----
-176

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5201
SELECT - 62, COALESCE ( 82, + - 94, + + CAST( - 43 AS SIGNED ) ) AS col0
----
-62
82

skipif mysql # not compatible
query II rowsort label-5201
SELECT - 62, COALESCE ( 82, + - 94, + + CAST ( - 43 AS INTEGER ) ) AS col0
----
-62
82

query I rowsort
SELECT - 21 + + - 54 * + + 84 - 77 col1
----
-4634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5203
SELECT - NULLIF ( + - ( - NULLIF ( - 86, NULLIF ( MIN( - 52 ), + CAST( 75 AS SIGNED ) ) ) ), - 21 + + 75 )
----
86

skipif mysql # not compatible
query I rowsort label-5203
SELECT - NULLIF ( + - ( - NULLIF ( - 86, NULLIF ( MIN ( - 52 ), + CAST ( 75 AS INTEGER ) ) ) ), - 21 + + 75 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5204
SELECT CASE + - ( - 26 ) WHEN + + NULLIF ( COALESCE ( - - 25, 13 * - 19, 15 ), - + 70 ) * - ( 48 ) * - - CAST( - CAST( 32 AS SIGNED ) AS SIGNED ) - + 39 * + + 62 - SUM( ALL + 51 ) THEN + 49 END * + 32 * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT CASE + - ( - 26 ) WHEN + + NULLIF ( COALESCE ( - - 25, 13 * - 19, 15 ), - + 70 ) * - ( 48 ) * - - CAST ( - CAST ( 32 AS INTEGER ) AS INTEGER ) - + 39 * + + 62 - SUM ( ALL + 51 ) THEN + 49 END * + 32 * 73
----
NULL

query I rowsort
SELECT ALL ( + - ( - 69 ) ) AS col2
----
69

query I rowsort
SELECT + 70 * + 53 - - NULLIF ( + 61, 79 )
----
3771

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL - COUNT( * ) * - 50 col1
----
50

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL - COUNT ( * ) * - 50 col1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5208
SELECT + 83 DIV + MAX( DISTINCT - 33 ) - COUNT( * ) + 55 - + COUNT( * ) - COALESCE ( - + 83, - 34 )
----
134

skipif mysql # not compatible
query I rowsort label-5208
SELECT + 83 / + MAX ( DISTINCT - 33 ) - COUNT ( * ) + 55 - + COUNT ( * ) - COALESCE ( - + 83, - 34 )
----
134

query II rowsort
SELECT - 79 * 95 * + 93, - 36 * + 80 AS col0
----
-697965
-2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5210
SELECT DISTINCT - COUNT( * ) * + ( - 87 ) AS col2, + COALESCE ( + + NULLIF ( - 67, + + 60 ), - - 24 * - CAST( + 42 AS SIGNED ) ) * - - COUNT( * ) + - 90 * 37 + + 68
----
87
-3329

skipif mysql # not compatible
query II rowsort label-5210
SELECT DISTINCT - COUNT ( * ) * + ( - 87 ) AS col2, + COALESCE ( + + NULLIF ( - 67, + + 60 ), - - 24 * - CAST ( + 42 AS INTEGER ) ) * - - COUNT ( * ) + - 90 * 37 + + 68
----
87
-3329

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5211
SELECT ALL ( 19 ) DIV - - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL ( 19 ) / - - COUNT ( * )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT + 46 DIV + + 14
----
3

skipif mysql # not compatible
query I rowsort label-5212
SELECT + 46 / + + 14
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT + 95 * + 39 - + COUNT( * ) * + 79
----
3626

skipif mysql # not compatible
query I rowsort label-5213
SELECT + 95 * + 39 - + COUNT ( * ) * + 79
----
3626

query I rowsort
SELECT DISTINCT + 67 + - - 45 * - - ( + 67 )
----
3082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5215
SELECT ALL - 93 + + - 57 + CAST( - 83 AS SIGNED ) * 1 * - COUNT( * ), 16 AS col2
----
-67
16

skipif mysql # not compatible
query II rowsort label-5215
SELECT ALL - 93 + + - 57 + CAST ( - 83 AS INTEGER ) * 1 * - COUNT ( * ), 16 AS col2
----
-67
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT ALL 98 + + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL 98 + + COUNT ( * )
----
99

query II rowsort
SELECT ALL - 25, 38 AS col2
----
-25
38

query I rowsort
SELECT DISTINCT + 7 + + 58 col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5219
SELECT + 85 * - COUNT( + + 66 ) + 38 AS col2, - AVG ( + CAST( NULL AS SIGNED ) ) AS col2
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-5219
SELECT + 85 * - COUNT ( + + 66 ) + 38 AS col2, - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2
----
-47
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5220
SELECT ALL - 70 AS col1, - MAX( - - 28 ) AS col1
----
-70
-28

skipif mysql # not compatible
query II rowsort label-5220
SELECT ALL - 70 AS col1, - MAX ( - - 28 ) AS col1
----
-70
-28

query I rowsort
SELECT 9 + 43 * - 17 AS col1
----
-722

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT DISTINCT - MAX( + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT - MAX ( + 69 )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5223
SELECT ALL CAST( NULL AS SIGNED ) + + + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL CAST ( NULL AS INTEGER ) + + + 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5224
SELECT + 60 * + + MIN( 35 ) * + 40 + + 93 + - 53 - + 41 + - CASE + - 43 WHEN - + 95 THEN - - 8 * - 15 DIV + + 25 + + - ( - 10 ) ELSE - + 78 * - + 86 - + 10 END + 75 AS col1
----
77376

skipif mysql # not compatible
query I rowsort label-5224
SELECT + 60 * + + MIN ( 35 ) * + 40 + + 93 + - 53 - + 41 + - CASE + - 43 WHEN - + 95 THEN - - 8 * - 15 / + + 25 + + - ( - 10 ) ELSE - + 78 * - + 86 - + 10 END + 75 AS col1
----
77376

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5225
SELECT 87 AS col2, + 72 + - + 53 - - ( + 63 ) + + COUNT( * ) + + 27 DIV - - 70 * 70
----
87
83

skipif mysql # not compatible
query II rowsort label-5225
SELECT 87 AS col2, + 72 + - + 53 - - ( + 63 ) + + COUNT ( * ) + + 27 / - - 70 * 70
----
87
83

query I rowsort
SELECT 35 * 68 + + 19
----
2399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5227
SELECT ALL COUNT( DISTINCT - + 68 ) + + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL COUNT ( DISTINCT - + 68 ) + + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 20
----
NULL

query II rowsort
SELECT 68 AS col2, 30 * + 37 AS col2
----
68
1110

query II rowsort
SELECT ( 5 ) + + + 61 * - 49 AS col1, 85
----
-2984
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT COUNT( * ) * - - 10
----
10

skipif mysql # not compatible
query I rowsort label-5230
SELECT COUNT ( * ) * - - 10
----
10

query II rowsort
SELECT ALL 47 AS col2, 13 * + 36
----
47
468

query II rowsort
SELECT DISTINCT 99 AS col1, - 58
----
99
-58

query I rowsort
SELECT 40 + - 15 * + - 86 AS col0
----
1330

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ALL MAX( ALL - 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL MAX ( ALL - 90 ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT - COUNT( ALL 70 ) - - - 43 * - 56
----
2407

skipif mysql # not compatible
query I rowsort label-5235
SELECT - COUNT ( ALL 70 ) - - - 43 * - 56
----
2407

query I rowsort
SELECT DISTINCT ( - 56 ) * 68 AS col2
----
-3808

query I rowsort
SELECT + - 0 + + NULLIF ( - 89, + 34 + + 26 + 28 * + + 80 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT ALL + COUNT( * ) * + 86 + 26 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL + COUNT ( * ) * + 86 + 26 AS col1
----
112

query I rowsort
SELECT + + 26 * + 51 AS col1
----
1326

query I rowsort
SELECT - - ( + 45 ) + + + 3
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5241
SELECT + 28 DIV COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5241
SELECT + 28 / COUNT ( * ) AS col0
----
28

query I rowsort
SELECT + - 51 * - 32
----
1632

query I rowsort
SELECT - + 45 + 18
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT ALL ( - COALESCE ( + 97, + COUNT( * ) ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL ( - COALESCE ( + 97, + COUNT ( * ) ) ) AS col2
----
-97

query I rowsort
SELECT + 41 + COALESCE ( + 30, + - 64 ) AS col1
----
71

query I rowsort
SELECT DISTINCT - 12 * - + 28
----
336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5247
SELECT ALL COUNT( * ), + 29 * COALESCE ( 7, - CASE + 13 WHEN - SUM( ALL + 96 ) + + 8 * - 40 THEN NULL WHEN - 71 - + - MIN( + - CASE - 63 WHEN - 71 + + + 50 THEN - 6 END ) THEN NULL WHEN CASE + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 48 THEN + 49 * + + 8 - 91 + - ( + 0 ) + - 82 * 58 * 62 * - COUNT( * ) END / COUNT( * ) THEN 13 END ) AS col2
----
1
203

skipif mysql # not compatible
query II rowsort label-5247
SELECT ALL COUNT ( * ), + 29 * COALESCE ( 7, - CASE + 13 WHEN - SUM ( ALL + 96 ) + + 8 * - 40 THEN NULL WHEN - 71 - + - MIN ( + - CASE - 63 WHEN - 71 + + + 50 THEN - 6 END ) THEN NULL WHEN CASE + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 48 THEN + 49 * + + 8 - 91 + - ( + 0 ) + - 82 * 58 * 62 * - COUNT ( * ) END / COUNT ( * ) THEN 13 END ) AS col2
----
1
203

query II rowsort
SELECT ALL + 41, 38 AS col1
----
41
38

query I rowsort
SELECT DISTINCT - 57 + 78
----
21

query I rowsort
SELECT ALL 72 * + - 39 + - - 69 * + - 70 + + + 91
----
-7547

query I rowsort
SELECT - + 24 * + 99 col0
----
-2376

query I rowsort
SELECT - - 19 + + - 99
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT + + MIN( ALL - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT + + MIN ( ALL - 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT DISTINCT + 9 * - 45 + 69 + - + 64 * + + 24 + - CASE + + ( 12 ) WHEN 11 + - 96 THEN MAX( 49 ) / - - 53 WHEN + 35 THEN + - COALESCE ( - 72, - 85 * - 42 * - 81 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT + 9 * - 45 + 69 + - + 64 * + + 24 + - CASE + + ( 12 ) WHEN 11 + - 96 THEN MAX ( 49 ) / - - 53 WHEN + 35 THEN + - COALESCE ( - 72, - 85 * - 42 * - 81 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5255
SELECT COUNT( * ) AS col0, + 10 AS col2
----
1
10

skipif mysql # not compatible
query II rowsort label-5255
SELECT COUNT ( * ) AS col0, + 10 AS col2
----
1
10

query I rowsort
SELECT ALL + CASE AVG ( DISTINCT + 84 ) WHEN - - AVG ( ALL - - 27 ) THEN - 70 WHEN + ( - ( - 4 ) ) THEN + - 22 ELSE NULL END * - + 54 + + 36 + + 0 col2
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( + 43, 60 / 54 )
----
-43

query I rowsort
SELECT - 98 + + 74 * - ( - 62 ) col0
----
4490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5259
SELECT DISTINCT + CASE - - 94 WHEN + COUNT( * ) THEN + - 49 * 19 WHEN - 92 THEN - COALESCE ( + 49, - 61 - - - 53 - + - 56 + - + 68 + + 64 ) + COALESCE ( 76, - 66, - COALESCE ( + 11, + - ( - + CAST( NULL AS SIGNED ) ) * + COUNT( * ) + - 23 ) - + 29 + + 76 ) / 43 END * 24 + + 93 + - 45 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT + CASE - - 94 WHEN + COUNT ( * ) THEN + - 49 * 19 WHEN - 92 THEN - COALESCE ( + 49, - 61 - - - 53 - + - 56 + - + 68 + + 64 ) + COALESCE ( 76, - 66, - COALESCE ( + 11, + - ( - + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + - 23 ) - + 29 + + 76 ) / 43 END * 24 + + 93 + - 45 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5260
SELECT ALL - 5 * + 41 * 71 + + CAST( SUM( ALL - - 32 ) AS SIGNED )
----
-14523

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL - 5 * + 41 * 71 + + CAST ( SUM ( ALL - - 32 ) AS INTEGER )
----
-14523

query I rowsort
SELECT NULLIF ( + + 43, 23 * 68 ) AS col2
----
43

query I rowsort
SELECT + 56 * + + 24 * 58 * + - 0 - - 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT DISTINCT + COUNT( 88 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT + COUNT ( 88 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT ALL - 28 * 38 * COUNT( * ) - - COUNT( * ) * + - 7
----
-1071

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL - 28 * 38 * COUNT ( * ) - - COUNT ( * ) * + - 7
----
-1071

query I rowsort
SELECT + 20 + + + 7 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT 59 * + 29 * + 20 + + - 65 * - 43 - + COUNT( * ) col2
----
37014

skipif mysql # not compatible
query I rowsort label-5266
SELECT 59 * + 29 * + 20 + + - 65 * - 43 - + COUNT ( * ) col2
----
37014

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT DISTINCT COUNT( * ) * + 22 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT COUNT ( * ) * + 22 AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5268
SELECT DISTINCT + MIN( 89 ) AS col0, COUNT( * )
----
89
1

skipif mysql # not compatible
query II rowsort label-5268
SELECT DISTINCT + MIN ( 89 ) AS col0, COUNT ( * )
----
89
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5269
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) col1, 18
----
1
18

skipif mysql # not compatible
query II rowsort label-5269
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) col1, 18
----
1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT MIN( - 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-5270
SELECT MIN ( - 56 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT + COUNT( * ) * 76
----
76

skipif mysql # not compatible
query I rowsort label-5271
SELECT + COUNT ( * ) * 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT + COUNT( ALL 88 ) + 16 + - + 49
----
-32

skipif mysql # not compatible
query I rowsort label-5272
SELECT + COUNT ( ALL 88 ) + 16 + - + 49
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT - ( + + MIN( ALL 6 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-5273
SELECT - ( + + MIN ( ALL 6 ) )
----
-6

query I rowsort
SELECT + + 80 * NULLIF ( + 58, + AVG ( DISTINCT + - COALESCE ( + - 87, - 20 ) ) / - 14 * - 93 )
----
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT + 86 * - + 40 + - COUNT( * ) AS col2
----
-3441

skipif mysql # not compatible
query I rowsort label-5275
SELECT + 86 * - + 40 + - COUNT ( * ) AS col2
----
-3441

query I rowsort
SELECT ALL 83 * 13
----
1079

query I rowsort
SELECT + 52 * - 67 col0
----
-3484

query I rowsort
SELECT ALL + + 99 * - - 81
----
8019

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5279
SELECT + CASE WHEN NOT CAST( NULL AS SIGNED ) BETWEEN - + COUNT( * ) * 97 * - 13 AND 1 THEN NULL ELSE + 5 DIV - MIN( DISTINCT + 34 ) - - 73 END col2
----
73

skipif mysql # not compatible
query I rowsort label-5279
SELECT + CASE WHEN NOT CAST ( NULL AS INTEGER ) BETWEEN - + COUNT ( * ) * 97 * - 13 AND 1 THEN NULL ELSE + 5 / - MIN ( DISTINCT + 34 ) - - 73 END col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5280
SELECT DISTINCT + 92 DIV - - COUNT( * ) AS col1, - ( + + 29 )
----
92
-29

skipif mysql # not compatible
query II rowsort label-5280
SELECT DISTINCT + 92 / - - COUNT ( * ) AS col1, - ( + + 29 )
----
92
-29

query II rowsort
SELECT ALL - 28 + 41 AS col2, 4 AS col0
----
13
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT - + CAST( NULL AS SIGNED ) * + - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT - + CAST ( NULL AS INTEGER ) * + - 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT + - MAX( + 99 ) + - 35 - - + 27
----
-107

skipif mysql # not compatible
query I rowsort label-5283
SELECT + - MAX ( + 99 ) + - 35 - - + 27
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT - 2 * - NULLIF ( - + 73, + + 83 ) * - COUNT( * ) - - 24 - 53 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-5284
SELECT - 2 * - NULLIF ( - + 73, + + 83 ) * - COUNT ( * ) - - 24 - 53 AS col2
----
117

query I rowsort
SELECT ALL 72 + - 77
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5286
SELECT + COALESCE ( + - 23, + + 80, - 45 + + 81, + 74 ) DIV - 5 - + COUNT( * ) col2, CAST( NULL AS SIGNED ) * - 13 + + + 46 * - ( - + 46 ) DIV 27
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5286
SELECT + COALESCE ( + - 23, + + 80, - 45 + + 81, + 74 ) / - 5 - + COUNT ( * ) col2, CAST ( NULL AS INTEGER ) * - 13 + + + 46 * - ( - + 46 ) / 27
----
3
NULL

query I rowsort
SELECT ALL + + 94 AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5288
SELECT ALL + - 88 DIV + 94 + 98
----
98

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL + - 88 / + 94 + 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT + + COALESCE ( NULLIF ( COUNT( * ), - 3 * - + 26 ), 4 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5289
SELECT + + COALESCE ( NULLIF ( COUNT ( * ), - 3 * - + 26 ), 4 ) col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5290
SELECT - CASE - + 60 WHEN 80 * + 70 * COALESCE ( + 88, 77 + CAST( NULL AS DECIMAL ) * + 61 ) + 15 THEN NULL WHEN - - ( + 90 ) * + 91 THEN + - AVG ( 18 ) END + - + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT - CASE - + 60 WHEN 80 * + 70 * COALESCE ( + 88, 77 + CAST ( NULL AS REAL ) * + 61 ) + 15 THEN NULL WHEN - - ( + 90 ) * + 91 THEN + - AVG ( 18 ) END + - + 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5291
SELECT ALL + 10 DIV + COALESCE ( - + 69, + COUNT( * ) ) + + 38 * - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL + 10 / + COALESCE ( - + 69, + COUNT ( * ) ) + + 38 * - COUNT ( * )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5292
SELECT CAST( NULL AS SIGNED ) col0, + 87 AS col2
----
NULL
87

skipif mysql # not compatible
query II rowsort label-5292
SELECT CAST ( NULL AS INTEGER ) col0, + 87 AS col2
----
NULL
87

query I rowsort
SELECT - 51 * 46
----
-2346

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT + 21 + MIN( DISTINCT 78 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5294
SELECT + 21 + MIN ( DISTINCT 78 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT - COUNT( * ) - - 8 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-5295
SELECT - COUNT ( * ) - - 8 AS col0
----
7

query I rowsort
SELECT - 15 * - 64
----
960

query I rowsort
SELECT 72 * - 18 + + 58 * + - 60
----
-4776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5298
SELECT DISTINCT + CAST( 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT + CAST ( 98 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL + CASE + 64 WHEN 1 + + + NULLIF ( + 70, + + 93 + + 16 ) + - 48 THEN NULL WHEN COUNT( * ) + + - 72 THEN + 68 ELSE NULL END * - CASE 44 WHEN + 38 THEN 19 ELSE - 33 END + - COALESCE ( - 29, 95 + - CASE - 33 WHEN + + 43 + - 76 THEN + 0 ELSE NULL END ) - + MIN( 19 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + CASE + 64 WHEN 1 + + + NULLIF ( + 70, + + 93 + + 16 ) + - 48 THEN NULL WHEN COUNT ( * ) + + - 72 THEN + 68 ELSE NULL END * - CASE 44 WHEN + 38 THEN 19 ELSE - 33 END + - COALESCE ( - 29, 95 + - CASE - 33 WHEN + + 43 + - 76 THEN + 0 ELSE NULL END ) - + MIN ( 19 ) AS col1
----
NULL

query I rowsort
SELECT 40 * - 96 AS col1
----
-3840

query I rowsort
SELECT DISTINCT - ( - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL - SUM( + 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL - SUM ( + 44 ) AS col0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5303
SELECT 59 DIV COALESCE ( + ( 2 ), 51, - 91 * 38 - + + NULLIF ( + + COUNT( * ), - 57 + - 14 * + - MIN( + 92 ) ) DIV - 77 )
----
29

skipif mysql # not compatible
query I rowsort label-5303
SELECT 59 / COALESCE ( + ( 2 ), 51, - 91 * 38 - + + NULLIF ( + + COUNT ( * ), - 57 + - 14 * + - MIN ( + 92 ) ) / - 77 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5304
SELECT DISTINCT - 28 DIV 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT - 28 / 51 AS col0
----
0

query I rowsort
SELECT 40 + - 10 AS col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT 49 DIV 2 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5306
SELECT 49 / 2 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT + COUNT( * ) + 89 * + 65 + + + 74
----
5860

skipif mysql # not compatible
query I rowsort label-5307
SELECT + COUNT ( * ) + 89 * + 65 + + + 74
----
5860

query I rowsort
SELECT ALL - 23 + 32 + + 14 * - 96 - 91 AS col2
----
-1426

query I rowsort
SELECT 89 + - 82
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL + COUNT( * ) + + 26 + + COUNT( * ) * + - 76 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL + COUNT ( * ) + + 26 + + COUNT ( * ) * + - 76 AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5311
SELECT ( + 2 ) + + 18 + + - MAX( - + 15 ) * 34, + CAST( NULL AS SIGNED ) AS col1
----
530
NULL

skipif mysql # not compatible
query II rowsort label-5311
SELECT ( + 2 ) + + 18 + + - MAX ( - + 15 ) * 34, + CAST ( NULL AS INTEGER ) AS col1
----
530
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT ALL - COUNT( DISTINCT - 55 ) * + 98 * + - 84 AS col0
----
8232

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL - COUNT ( DISTINCT - 55 ) * + 98 * + - 84 AS col0
----
8232

query II rowsort
SELECT ALL + 63 + + + 70 * + 61 AS col1, - 44 * + 7 - - 70
----
4333
-238

query I rowsort
SELECT - 59 + - 61 AS col2
----
-120

query II rowsort
SELECT - 87, 24 AS col0
----
-87
24

query I rowsort
SELECT 4 + - 91
----
-87

query II rowsort
SELECT - 0 + - ( + + 52 ) AS col0, - ( + 93 ) * 81 col2
----
-52
-7533

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5318
SELECT DISTINCT + 69 + + COUNT( * ) - 47 DIV - 19 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT + 69 + + COUNT ( * ) - 47 / - 19 AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5319
SELECT ALL + COUNT( * ) DIV - CAST( 16 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL + COUNT ( * ) / - CAST ( 16 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ( 62 ) + - - COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-5320
SELECT ( 62 ) + - - COUNT ( * ) AS col0
----
63

query I rowsort
SELECT ALL - 36 + + 75
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5322
SELECT ALL + 56 - + 18 * + ( + - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL + 56 - + 18 * + ( + - CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5323
SELECT - + 60 AS col0, COUNT( * )
----
-60
1

skipif mysql # not compatible
query II rowsort label-5323
SELECT - + 60 AS col0, COUNT ( * )
----
-60
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL - 86 / CASE - - COUNT( * ) WHEN + 58 THEN NULL WHEN ( - 53 ) THEN 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL - 86 / CASE - - COUNT ( * ) WHEN + 58 THEN NULL WHEN ( - 53 ) THEN 14 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5325
SELECT 63 DIV COUNT( * ) * - ( + 29 )
----
-1827

skipif mysql # not compatible
query I rowsort label-5325
SELECT 63 / COUNT ( * ) * - ( + 29 )
----
-1827

query I rowsort
SELECT 25 + - 93
----
-68

query I rowsort
SELECT DISTINCT 74 * + 8 * 47 AS col1
----
27824

query I rowsort
SELECT ALL NULLIF ( - 68, + 67 ) * + 79 * 52 * 54 AS col2
----
-15084576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5329
SELECT 76 * ( - NULLIF ( CAST( + 7 AS SIGNED ), + 88 ) ) + + COALESCE ( 31, - - 52 ) col0
----
-501

skipif mysql # not compatible
query I rowsort label-5329
SELECT 76 * ( - NULLIF ( CAST ( + 7 AS INTEGER ), + 88 ) ) + + COALESCE ( 31, - - 52 ) col0
----
-501

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5330
SELECT 15 DIV COUNT( * ) * - 84
----
-1260

skipif mysql # not compatible
query I rowsort label-5330
SELECT 15 / COUNT ( * ) * - 84
----
-1260

query I rowsort
SELECT 50 * 21
----
1050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5332
SELECT + 35 DIV - - COUNT( * ) + - 73 + + 38 * 61 * - + 71 * + 68 AS col2
----
-11191342

skipif mysql # not compatible
query I rowsort label-5332
SELECT + 35 / - - COUNT ( * ) + - 73 + + 38 * 61 * - + 71 * + 68 AS col2
----
-11191342

query I rowsort
SELECT ( - 48 ) * NULLIF ( + 49, - 43 + + 32 ) AS col2
----
-2352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5334
SELECT CAST( NULL AS SIGNED ) + 45 - + 96 * 11 + + 8 + + MAX( ALL - - 79 ) / + 76 + + ( 63 ) + + - ( + 0 ) + - ( + 96 ) / + + AVG ( + + 92 ) + + 49 + + 1 * + + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT CAST ( NULL AS INTEGER ) + 45 - + 96 * 11 + + 8 + + MAX ( ALL - - 79 ) / + 76 + + ( 63 ) + + - ( + 0 ) + - ( + 96 ) / + + AVG ( + + 92 ) + + 49 + + 1 * + + 11 AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( - NULLIF ( + - 71, + - 93 ) ) * 55 AS col1
----
3905

query I rowsort
SELECT 50 * - - 56 col0
----
2800

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL - SUM( ALL 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL - SUM ( ALL 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT COUNT( * ) * - NULLIF ( - + 50, 94 / - 58 * - - ( + COUNT( DISTINCT - + 99 ) ) + 93 ) + 54 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-5338
SELECT COUNT ( * ) * - NULLIF ( - + 50, 94 / - 58 * - - ( + COUNT ( DISTINCT - + 99 ) ) + 93 ) + 54 AS col0
----
104

query I rowsort
SELECT ALL + 41 * 31 col2
----
1271

query I rowsort
SELECT 40 * - 1 AS col1
----
-40

query I rowsort
SELECT 75 + + + 78
----
153

query II rowsort
SELECT DISTINCT - 24 * + 50 AS col0, 83 AS col1
----
-1200
83

query I rowsort
SELECT ALL + 69 + - 48
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL - - 32 + COUNT( ALL + ( 23 ) ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL - - 32 + COUNT ( ALL + ( 23 ) ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT + NULLIF ( + ( + 88 ), 25 + - 38 / 8 ) * + COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5345
SELECT + NULLIF ( + ( + 88 ), 25 + - 38 / 8 ) * + COUNT ( * ) AS col1
----
88

query I rowsort
SELECT 73 - - + COALESCE ( 83, - 97 )
----
156

query II rowsort
SELECT DISTINCT - 25 + + 33 * + + 70 * - 15, 24 col1
----
-34675
24

query I rowsort
SELECT - 74 * - - 56 * + 63 col0
----
-261072

query I rowsort
SELECT 80 * - ( - 79 ) * + + 67 * 13 + 55
----
5504775

query I rowsort
SELECT 83 * - - 30 col2
----
2490

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT - MAX( ALL - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-5351
SELECT - MAX ( ALL - 38 )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5352
SELECT ALL - 42 DIV + - 48 + 83 + + 21
----
104

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL - 42 / + - 48 + 83 + + 21
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL + + 52 + - - CASE ( 37 ) WHEN 36 * - COUNT( * ) / + COALESCE ( + 62, - 91 ) + 83 + - 13 * - 36 * - - 88 THEN - MIN( + 95 ) WHEN + 8 * - 33 + - COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL + + 52 + - - CASE ( 37 ) WHEN 36 * - COUNT ( * ) / + COALESCE ( + 62, - 91 ) + 83 + - 13 * - 36 * - - 88 THEN - MIN ( + 95 ) WHEN + 8 * - 33 + - COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT + 23 * COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-5354
SELECT + 23 * COUNT ( * ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5355
SELECT - + SUM( 9 ) AS col1, COUNT( * ) + + 41
----
-9
42

skipif mysql # not compatible
query II rowsort label-5355
SELECT - + SUM ( 9 ) AS col1, COUNT ( * ) + + 41
----
-9
42

query I rowsort
SELECT 78 + - - 15 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL 33 - - 59 + + 36 + - 84 * - 27 * - COUNT( * )
----
-2140

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL 33 - - 59 + + 36 + - 84 * - 27 * - COUNT ( * )
----
-2140

query I rowsort
SELECT 5 * 31 AS col1
----
155

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5359
SELECT 9 + 13 / + + ( - 80 ) - + ( CAST( NULL AS SIGNED ) ) / + ( + 98 ) / + AVG ( 70 ) AS col0, + 35 AS col2
----
NULL
35

skipif mysql # not compatible
query II rowsort label-5359
SELECT 9 + 13 / + + ( - 80 ) - + ( CAST ( NULL AS INTEGER ) ) / + ( + 98 ) / + AVG ( 70 ) AS col0, + 35 AS col2
----
NULL
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT MIN( 34 )
----
34

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT MIN ( 34 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5361
SELECT + 68 + + - NULLIF ( - + 56, + 32 ) * 19 + 80 + + - COUNT( * ) + - CAST( NULL AS SIGNED ) * - + COUNT( * ) + ( 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT + 68 + + - NULLIF ( - + 56, + 32 ) * 19 + 80 + + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + ( 10 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT + MIN( ALL - - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-5362
SELECT + MIN ( ALL - - 73 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5363
SELECT 82 * + 70 + + MAX( 17 ) * - + 81 col2, - 93 * + 98 + - - 22 DIV + - 26
----
4363
-9114

skipif mysql # not compatible
query II rowsort label-5363
SELECT 82 * + 70 + + MAX ( 17 ) * - + 81 col2, - 93 * + 98 + - - 22 / + - 26
----
4363
-9114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5364
SELECT ALL 56 * CAST( - 6 AS SIGNED )
----
-336

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL 56 * CAST ( - 6 AS INTEGER )
----
-336

onlyif mysql # DIV for integer division: 
query I rowsort label-5365
SELECT + 62 DIV - - 60 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5365
SELECT + 62 / - - 60 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5366
SELECT - 30 DIV + 26 + + 54
----
53

skipif mysql # not compatible
query I rowsort label-5366
SELECT - 30 / + 26 + + 54
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5367
SELECT + CASE 49 WHEN + 55 * - + COUNT( DISTINCT + 77 ) * - ( + - 39 ) THEN 59 - - + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) WHEN + - 31 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT + CASE 49 WHEN + 55 * - + COUNT ( DISTINCT + 77 ) * - ( + - 39 ) THEN 59 - - + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) WHEN + - 31 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT + MAX( 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5368
SELECT + MAX ( 98 ) AS col2
----
98

query I rowsort
SELECT + 8 + + + 32 AS col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5370
SELECT 46 DIV 42 - - 55 col2
----
56

skipif mysql # not compatible
query I rowsort label-5370
SELECT 46 / 42 - - 55 col2
----
56

query I rowsort
SELECT ALL 20 * - 80 * - 39
----
62400

onlyif mysql # DIV for integer division: 
query I rowsort label-5372
SELECT + 26 DIV + - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5372
SELECT + 26 / + - 90 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT COUNT( + - 40 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5373
SELECT COUNT ( + - 40 ) col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5374
SELECT - CAST( NULL AS DECIMAL ) * + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5374
SELECT - CAST ( NULL AS REAL ) * + 33 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5375
SELECT ALL 5 * - 66 * + 25 + + 19 + - - 1 * + 44 DIV - + 50 AS col1
----
-8231

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL 5 * - 66 * + 25 + + 19 + - - 1 * + 44 / - + 50 AS col1
----
-8231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5376
SELECT + 54 + - 37 DIV - 70 DIV + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-5376
SELECT + 54 + - 37 / - 70 / + COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT ALL COUNT( * ) * 96 + - SUM( ALL - 29 + + 1 ) * 24 col0
----
768

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL COUNT ( * ) * 96 + - SUM ( ALL - 29 + + 1 ) * 24 col0
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT SUM( ALL 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5378
SELECT SUM ( ALL 95 ) AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5379
SELECT + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + 71 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 71 * COUNT ( * )
----
NULL

query I rowsort
SELECT + 18 * - 63 AS col0
----
-1134

query I rowsort
SELECT - 42 * 95
----
-3990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5382
SELECT SUM( ALL - COALESCE ( 39, 13 DIV - 16 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-5382
SELECT SUM ( ALL - COALESCE ( 39, 13 / - 16 ) )
----
-39

query I rowsort
SELECT + ( - 43 ) + 98
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT MAX( DISTINCT - NULLIF ( - 24, - 3 * + 85 + 81 ) )
----
24

skipif mysql # not compatible
query I rowsort label-5384
SELECT MAX ( DISTINCT - NULLIF ( - 24, - 3 * + 85 + 81 ) )
----
24

query I rowsort
SELECT ALL - 75 * 38 AS col1
----
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT DISTINCT + COUNT( * ) - 89 * + 35 col1
----
-3114

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT + COUNT ( * ) - 89 * + 35 col1
----
-3114

query I rowsort
SELECT - 82 + 0
----
-82

query I rowsort
SELECT ALL + ( - 82 ) - 51
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT DISTINCT MIN( + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT MIN ( + 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT ALL - MIN( ALL 34 ) * 0 col2
----
0

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL - MIN ( ALL 34 ) * 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT - 76 * ( CASE - 4 WHEN + COUNT( * ) THEN NULL ELSE 20 * - 68 END ) AS col1
----
103360

skipif mysql # not compatible
query I rowsort label-5391
SELECT - 76 * ( CASE - 4 WHEN + COUNT ( * ) THEN NULL ELSE 20 * - 68 END ) AS col1
----
103360

query I rowsort
SELECT - 52 + 33
----
-19

query I rowsort
SELECT - 28 + + 16 * + 85 AS col2
----
1332

onlyif mysql # DIV for integer division: 
query I rowsort label-5394
SELECT - 40 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-5394
SELECT - 40 / 77
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5395
SELECT DISTINCT + COUNT( * ) DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT + COUNT ( * ) / 50
----
0

query I rowsort
SELECT - 16 * 23
----
-368

query I rowsort
SELECT - 22 * 67 AS col0
----
-1474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT ALL + CAST( NULL AS SIGNED ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL + CAST ( NULL AS INTEGER ) * 45
----
NULL

query I rowsort
SELECT - 92 + 98
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5400
SELECT ALL + ( - 70 ) DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL + ( - 70 ) / 78 AS col1
----
0

query I rowsort
SELECT ALL COALESCE ( 69, + 0 ) AS col0
----
69

query I rowsort
SELECT - 68 + - 49 AS col2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT ALL 80 * COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL 80 * COUNT ( * ) AS col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT - 86 * COALESCE ( - COUNT( * ), - ( + 38 ) + 1 DIV 5 )
----
86

skipif mysql # not compatible
query I rowsort label-5404
SELECT - 86 * COALESCE ( - COUNT ( * ), - ( + 38 ) + 1 / 5 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT - MIN( ALL COALESCE ( + 13, 88 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-5405
SELECT - MIN ( ALL COALESCE ( + 13, 88 ) )
----
-13

query I rowsort
SELECT - 21 * - 78 AS col2
----
1638

query I rowsort
SELECT - 50 * 26
----
-1300

query I rowsort
SELECT + 76 * 82 + CASE 17 WHEN 89 THEN NULL ELSE 93 END * + 53 AS col2
----
11161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5409
SELECT ALL COUNT( * ) DIV - 78 + + 40 * 69 col0
----
2760

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL COUNT ( * ) / - 78 + + 40 * 69 col0
----
2760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5410
SELECT ALL + CAST( 75 AS SIGNED ) col1
----
75

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL + CAST ( 75 AS INTEGER ) col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT DISTINCT + MIN( - 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT + MIN ( - 76 )
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5412
SELECT ALL 66 DIV - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL 66 / - COUNT ( * )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-5413
SELECT ALL 69 DIV + 48 + 46 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL 69 / + 48 + 46 AS col0
----
47

query I rowsort
SELECT + ( 55 ) AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT + - CAST( - 60 AS SIGNED ) * + 83 - 75
----
4905

skipif mysql # not compatible
query I rowsort label-5415
SELECT + - CAST ( - 60 AS INTEGER ) * + 83 - 75
----
4905

query I rowsort
SELECT + + 81 * - 97
----
-7857

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT - MAX( DISTINCT 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5417
SELECT - MAX ( DISTINCT 92 ) AS col0
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5418
SELECT - - COUNT( DISTINCT + 9 ) DIV + 87 + + 96
----
96

skipif mysql # not compatible
query I rowsort label-5418
SELECT - - COUNT ( DISTINCT + 9 ) / + 87 + + 96
----
96

query I rowsort
SELECT DISTINCT - 42 * 49
----
-2058

query I rowsort
SELECT ALL 9 * + 50
----
450

query I rowsort
SELECT + 83 * 99
----
8217

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT DISTINCT + 60 * NULLIF ( - SUM( - 21 ), + 8 + + SUM( ALL - 97 ) ) - + 63
----
1197

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT + 60 * NULLIF ( - SUM ( - 21 ), + 8 + + SUM ( ALL - 97 ) ) - + 63
----
1197

query I rowsort
SELECT + 97 - 13
----
84

query I rowsort
SELECT DISTINCT + 31 * + 89 - + 22 col2
----
2737

query I rowsort
SELECT + + 79 * 33 AS col0
----
2607

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - SUM( DISTINCT 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-5426
SELECT - SUM ( DISTINCT 96 )
----
-96

query I rowsort
SELECT ALL 38 * ( 38 ) AS col2
----
1444

query I rowsort
SELECT + 8 - 95
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT DISTINCT + - COUNT( * ) * 45
----
-45

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT + - COUNT ( * ) * 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL MIN( - 18 ) * 80 AS col0
----
-1440

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL MIN ( - 18 ) * 80 AS col0
----
-1440

query I rowsort
SELECT 34 * + - 85 AS col2
----
-2890

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT 40 DIV + 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5432
SELECT 40 / + 87 AS col2
----
0

query I rowsort
SELECT DISTINCT + 0 + - 19 AS col0
----
-19

query I rowsort
SELECT DISTINCT ( + 42 ) * 43
----
1806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5435
SELECT 53 DIV - COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-5435
SELECT 53 / - COUNT ( * ) AS col1
----
-53

query I rowsort
SELECT 33 + + - 84 AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5437
SELECT 43 + - 34 * - CAST( - CASE 11 WHEN COUNT( * ) / 95 + - ( 76 - ( 57 ) ) THEN - 73 * 36 ELSE - 22 END AS SIGNED )
----
791

skipif mysql # not compatible
query I rowsort label-5437
SELECT 43 + - 34 * - CAST ( - CASE 11 WHEN COUNT ( * ) / 95 + - ( 76 - ( 57 ) ) THEN - 73 * 36 ELSE - 22 END AS INTEGER )
----
791

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5438
SELECT COUNT( CAST( - 16 AS DECIMAL ) ) DIV 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5438
SELECT COUNT ( CAST ( - 16 AS REAL ) ) / 71 AS col1
----
0

query I rowsort
SELECT ALL + 82 + + 56
----
138

query I rowsort
SELECT DISTINCT - 92 * - ( - 33 ) AS col0
----
-3036

query I rowsort
SELECT 56 * - + 96 + 74
----
-5302

query I rowsort
SELECT ALL - 20 + - - 50 + 91
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT 58 + + CASE COUNT( + 92 ) WHEN 81 THEN 49 - + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT 58 + + CASE COUNT ( + 92 ) WHEN 81 THEN 49 - + 66 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT DISTINCT + SUM( - 44 ) * COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT + SUM ( - 44 ) * COUNT ( * ) AS col0
----
-44

query I rowsort
SELECT + 45 + - 11 + 81
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5446
SELECT - 54 DIV - - 28 + 9 + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-5446
SELECT - 54 / - - 28 + 9 + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT - 28 + + + 91 * + ( SUM( DISTINCT 83 ) )
----
7525

skipif mysql # not compatible
query I rowsort label-5447
SELECT - 28 + + + 91 * + ( SUM ( DISTINCT 83 ) )
----
7525

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL - MIN( + + 36 ) - 50 * 71 AS col2
----
-3586

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL - MIN ( + + 36 ) - 50 * 71 AS col2
----
-3586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5449
SELECT + ( 39 ) * - 21 + + CASE WHEN NOT ( COUNT( + 29 ) ) < + 75 * 73 THEN + 79 + CAST( NULL AS SIGNED ) / 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5449
SELECT + ( 39 ) * - 21 + + CASE WHEN NOT ( COUNT ( + 29 ) ) < + 75 * 73 THEN + 79 + CAST ( NULL AS INTEGER ) / 49 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT - COUNT( * ) - 39 * 81 AS col2
----
-3160

skipif mysql # not compatible
query I rowsort label-5450
SELECT - COUNT ( * ) - 39 * 81 AS col2
----
-3160

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT + 58 * 89 * + COALESCE ( 40 DIV + 92, - ( + CASE 77 WHEN 0 THEN NULL ELSE + 73 END ) ) + 85 + - 8 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5451
SELECT + 58 * 89 * + COALESCE ( 40 / + 92, - ( + CASE 77 WHEN 0 THEN NULL ELSE + 73 END ) ) + 85 + - 8 AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5452
SELECT 73 * - 85 + - 99 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5452
SELECT 73 * - 85 + - 99 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 37 * - - 65 * 94 + - 94 AS col1
----
225976

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT + CASE - 99 WHEN - COUNT( * ) THEN NULL WHEN + 94 THEN + 8 ELSE NULL END + ( ( - 90 ) + 64 / 89 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT + CASE - 99 WHEN - COUNT ( * ) THEN NULL WHEN + 94 THEN + 8 ELSE NULL END + ( ( - 90 ) + 64 / 89 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT COUNT( DISTINCT 97 ) * 81 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5455
SELECT COUNT ( DISTINCT 97 ) * 81 AS col1
----
81

query I rowsort
SELECT 7 + + 23
----
30

query I rowsort
SELECT ALL 57 + 74 + 34 - 38
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5458
SELECT DISTINCT 64 AS col0, + CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
64
1

skipif mysql # not compatible
query II rowsort label-5458
SELECT DISTINCT 64 AS col0, + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
64
1

query I rowsort
SELECT 59 + + 16
----
75

query I rowsort
SELECT NULLIF ( + 95, - - ( - 87 ) ) * 7 AS col2
----
665

query II rowsort
SELECT 71, 13 AS col0
----
71
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT 79 + + 96 + + 13 + + CAST( NULL AS SIGNED ) / - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT 79 + + 96 + + 13 + + CAST ( NULL AS INTEGER ) / - 74 AS col0
----
NULL

query I rowsort
SELECT ALL 97 + - 41
----
56

query I rowsort
SELECT DISTINCT 56 * - 50
----
-2800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5465
SELECT CAST( MIN( 60 ) AS SIGNED ) * ( + ( + 56 ) )
----
3360

skipif mysql # not compatible
query I rowsort label-5465
SELECT CAST ( MIN ( 60 ) AS INTEGER ) * ( + ( + 56 ) )
----
3360

onlyif mysql # aggregate syntax: 
query II rowsort label-5466
SELECT - COUNT( * ) col0, NULLIF ( - 67, 7 ) + 21 AS col0
----
-1
-46

skipif mysql # not compatible
query II rowsort label-5466
SELECT - COUNT ( * ) col0, NULLIF ( - 67, 7 ) + 21 AS col0
----
-1
-46

query II rowsort
SELECT 1 AS col0, 4 AS col0
----
1
4

query I rowsort
SELECT ALL + 51 - - + 19
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT 84 * - MAX( ALL + 37 )
----
-3108

skipif mysql # not compatible
query I rowsort label-5469
SELECT 84 * - MAX ( ALL + 37 )
----
-3108

query I rowsort
SELECT ALL 55 * - + NULLIF ( + 56, 1 )
----
-3080

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT 3 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT 3 / + 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5472
SELECT ALL ( + - 60 ) * 51 - NULLIF ( COUNT( * ) + - 72 * + MIN( ALL + 51 * - ( 23 ) ), - 21 + COALESCE ( - 4, - ( - 77 ) - - CAST( NULL AS SIGNED ) ) * - 72 ) AS col0
----
-87517

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL ( + - 60 ) * 51 - NULLIF ( COUNT ( * ) + - 72 * + MIN ( ALL + 51 * - ( 23 ) ), - 21 + COALESCE ( - 4, - ( - 77 ) - - CAST ( NULL AS INTEGER ) ) * - 72 ) AS col0
----
-87517

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT + MIN( DISTINCT - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-5473
SELECT + MIN ( DISTINCT - 81 )
----
-81

query I rowsort
SELECT ALL - + 6 * - - 33 AS col2
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5475
SELECT DISTINCT ( - - COUNT( * ) ) DIV + + 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT ( - - COUNT ( * ) ) / + + 21 AS col1
----
0

query I rowsort
SELECT ALL + 1 * - - 91
----
91

query I rowsort
SELECT 52 * + 34
----
1768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5478
SELECT + NULLIF ( + - 48, + COUNT( * ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT + NULLIF ( + - 48, + COUNT ( * ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL + - COUNT( * ) * + 94 * 6 + 77
----
-487

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL + - COUNT ( * ) * + 94 * 6 + 77
----
-487

query I rowsort
SELECT 42 + 41 AS col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5481
SELECT DISTINCT - - 16, ( + + MIN( DISTINCT 68 ) ) AS col2
----
16
68

skipif mysql # not compatible
query II rowsort label-5481
SELECT DISTINCT - - 16, ( + + MIN ( DISTINCT 68 ) ) AS col2
----
16
68

query I rowsort
SELECT DISTINCT - - 72 + + 82
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT DISTINCT - SUM( + ( ( - 19 ) ) ) + 87 * SUM( DISTINCT + 12 ) AS col1
----
1063

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT - SUM ( + ( ( - 19 ) ) ) + 87 * SUM ( DISTINCT + 12 ) AS col1
----
1063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5484
SELECT ALL + CASE + ( - 1 ) WHEN 50 + COUNT( * ) THEN NULL ELSE NULLIF ( CAST( + ( 78 ) AS SIGNED ), 49 ) * + 72 END col2
----
5616

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL + CASE + ( - 1 ) WHEN 50 + COUNT ( * ) THEN NULL ELSE NULLIF ( CAST ( + ( 78 ) AS INTEGER ), 49 ) * + 72 END col2
----
5616

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5485
SELECT - NULLIF ( - 33, + 26 * 1 ) / + CAST( - 78 + - CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT - NULLIF ( - 33, + 26 * 1 ) / + CAST ( - 78 + - CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT ALL 57 + - 27 - + 91
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-5487
SELECT 2, + 69 DIV - 14 AS col0
----
2
-4

skipif mysql # not compatible
query II rowsort label-5487
SELECT 2, + 69 / - 14 AS col0
----
2
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT - MIN( + 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5488
SELECT - MIN ( + 7 ) AS col2
----
-7

query I rowsort
SELECT ALL + 55 + - 52
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5490
SELECT - 9 DIV - CASE + ( CASE 38 WHEN 55 + 59 THEN + ( - COALESCE ( + 81, + 96 + + 97 ) ) END ) WHEN + 17 THEN 62 + - 50 * - 49 ELSE 12 END * COALESCE ( COALESCE ( COUNT( * ), 18 + + MAX( 78 ) * + SUM( ALL COALESCE ( 52, 35 + + 52, 95 ) ) ) + - 72, - 60 * - 86 + + CAST( + 90 AS SIGNED ) * + 94 )
----
0

skipif mysql # not compatible
query I rowsort label-5490
SELECT - 9 / - CASE + ( CASE 38 WHEN 55 + 59 THEN + ( - COALESCE ( + 81, + 96 + + 97 ) ) END ) WHEN + 17 THEN 62 + - 50 * - 49 ELSE 12 END * COALESCE ( COALESCE ( COUNT ( * ), 18 + + MAX ( 78 ) * + SUM ( ALL COALESCE ( 52, 35 + + 52, 95 ) ) ) + - 72, - 60 * - 86 + + CAST ( + 90 AS INTEGER ) * + 94 )
----
0

query I rowsort
SELECT ALL 21 + 9 * + + 38 AS col1
----
363

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5492
SELECT + CASE - 44 WHEN + ( 98 ) * ( ( 13 ) * - CASE + 93 WHEN - 99 * - SUM( + 64 ) THEN 25 END - + 95 * 60 ) + 18 THEN NULL ELSE + 14 END * + COALESCE ( - 65, - 89 - COUNT( ( 61 ) + CAST( - 55 AS DECIMAL ) ), - 24 + ( - 32 ) ) AS col1
----
-910

skipif mysql # not compatible
query I rowsort label-5492
SELECT + CASE - 44 WHEN + ( 98 ) * ( ( 13 ) * - CASE + 93 WHEN - 99 * - SUM ( + 64 ) THEN 25 END - + 95 * 60 ) + 18 THEN NULL ELSE + 14 END * + COALESCE ( - 65, - 89 - COUNT ( ( 61 ) + CAST ( - 55 AS REAL ) ), - 24 + ( - 32 ) ) AS col1
----
-910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5493
SELECT - COUNT( * ) - - 49 DIV + + 49
----
0

skipif mysql # not compatible
query I rowsort label-5493
SELECT - COUNT ( * ) - - 49 / + + 49
----
0

query I rowsort
SELECT DISTINCT 15 * - ( + 51 )
----
-765

onlyif mysql # aggregate syntax: 
query II rowsort label-5495
SELECT DISTINCT + 37 + + + COUNT( * ), - 57 AS col0
----
38
-57

skipif mysql # not compatible
query II rowsort label-5495
SELECT DISTINCT + 37 + + + COUNT ( * ), - 57 AS col0
----
38
-57

query I rowsort
SELECT DISTINCT 8 - + - 37 + + 92 AS col1
----
137

query I rowsort
SELECT - COALESCE ( - - 15, + - 99 * + + 55 + 18, 24 * - 91 ) + ( + 73 )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5498
SELECT + COUNT( 23 ) + - - 24 DIV - + 74 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5498
SELECT + COUNT ( 23 ) + - - 24 / - + 74 AS col2
----
1

query II rowsort
SELECT - ( + 10 ) col1, 18 col0
----
-10
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT + 89 * MIN( DISTINCT 13 )
----
1157

skipif mysql # not compatible
query I rowsort label-5500
SELECT + 89 * MIN ( DISTINCT 13 )
----
1157

query II rowsort
SELECT ALL 1 * + 89 AS col2, - 56
----
89
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT DISTINCT COUNT( ( + 84 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT COUNT ( ( + 84 ) )
----
1

query I rowsort
SELECT DISTINCT - ( 41 ) * + ( - 67 ) AS col2
----
2747

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT + 63 + + - SUM( DISTINCT 12 ) * 59 AS col1
----
-645

skipif mysql # not compatible
query I rowsort label-5504
SELECT + 63 + + - SUM ( DISTINCT 12 ) * 59 AS col1
----
-645

query I rowsort
SELECT DISTINCT + ( - + 20 ) AS col1
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5506
SELECT - - 75 * + - CAST( - - CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT - - 75 * + - CAST ( - - CAST ( NULL AS REAL ) AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - - 17 + 4 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT + + COUNT( * ) * - + 74 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5508
SELECT + + COUNT ( * ) * - + 74 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT ALL + 3 * - CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE CASE - 19 WHEN CASE WHEN NOT NULL > - 18 THEN 4 * 66 ELSE NULL END * 65 THEN NULL WHEN ( 36 ) THEN + COUNT( * ) - - 9 * COALESCE ( - 31, - COUNT( * ) ) END END * - 42 + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL + 3 * - CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE CASE - 19 WHEN CASE WHEN NOT NULL > - 18 THEN 4 * 66 ELSE NULL END * 65 THEN NULL WHEN ( 36 ) THEN + COUNT ( * ) - - 9 * COALESCE ( - 31, - COUNT ( * ) ) END END * - 42 + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT DISTINCT + 89 * + + COUNT( * ) - - - COUNT( * ) + + + 62 * - 21 + 55 * - COUNT( * )
----
-1269

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT + 89 * + + COUNT ( * ) - - - COUNT ( * ) + + + 62 * - 21 + 55 * - COUNT ( * )
----
-1269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5511
SELECT - CAST( + 28 AS SIGNED ) * CASE + 77 WHEN + 28 THEN 63 END - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5511
SELECT - CAST ( + 28 AS INTEGER ) * CASE + 77 WHEN + 28 THEN 63 END - 55 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5512
SELECT DISTINCT - 24 * + + 87 + + 16 + + 75 + CAST( 70 AS SIGNED ) DIV + ( + 45 )
----
-1996

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT - 24 * + + 87 + + 16 + + 75 + CAST ( 70 AS INTEGER ) / + ( + 45 )
----
-1996

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT + MAX( - - 63 )
----
63

skipif mysql # not compatible
query I rowsort label-5513
SELECT + MAX ( - - 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL + COALESCE ( - 47, 98, 84 + - COUNT( * ) ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL + COALESCE ( - 47, 98, 84 + - COUNT ( * ) ) col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT COUNT( 52 ) * 61 + + 40 + 8 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-5515
SELECT COUNT ( 52 ) * 61 + + 40 + 8 AS col0
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-5516
SELECT - 73 * - + CASE - + 42 WHEN + 35 THEN NULL WHEN + 68 * - 82 THEN NULL WHEN - 72 THEN NULL ELSE + 40 END + + 24 DIV + 62 AS col1
----
2920

skipif mysql # not compatible
query I rowsort label-5516
SELECT - 73 * - + CASE - + 42 WHEN + 35 THEN NULL WHEN + 68 * - 82 THEN NULL WHEN - 72 THEN NULL ELSE + 40 END + + 24 / + 62 AS col1
----
2920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5517
SELECT + SUM( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT + SUM ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 96 * + + 45 AS col1
----
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT DISTINCT + COUNT( * ) * - ( + 91 ) + 35 + + 22 + COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT + COUNT ( * ) * - ( + 91 ) + 35 + + 22 + COUNT ( * ) AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5520
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT - COUNT( + 32 ) + COUNT( 27 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5521
SELECT - COUNT ( + 32 ) + COUNT ( 27 ) AS col2
----
0

query I rowsort
SELECT ALL - CASE - 57 WHEN - + 84 THEN NULL ELSE - 87 END * - 56 AS col0
----
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT - 56 + MIN( ALL + 16 )
----
-40

skipif mysql # not compatible
query I rowsort label-5523
SELECT - 56 + MIN ( ALL + 16 )
----
-40

query I rowsort
SELECT DISTINCT ( + + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT - COUNT( - 96 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5525
SELECT - COUNT ( - 96 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT - COUNT( * ) * - SUM( ALL + - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-5526
SELECT - COUNT ( * ) * - SUM ( ALL + - 51 )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT DISTINCT CAST( + 59 AS SIGNED ) col1
----
59

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT CAST ( + 59 AS INTEGER ) col1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5528
SELECT - 37 * 19 DIV - - 74
----
-9

skipif mysql # not compatible
query I rowsort label-5528
SELECT - 37 * 19 / - - 74
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT - SUM( 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-5529
SELECT - SUM ( 28 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT - COUNT( DISTINCT 15 ) * - 49
----
49

skipif mysql # not compatible
query I rowsort label-5530
SELECT - COUNT ( DISTINCT 15 ) * - 49
----
49

query I rowsort
SELECT + 78 + - 39 * + 73 * - - 0
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5532
SELECT 39, CAST( NULL AS DECIMAL ) col2
----
39
NULL

skipif mysql # not compatible
query II rowsort label-5532
SELECT 39, CAST ( NULL AS REAL ) col2
----
39
NULL

query I rowsort
SELECT DISTINCT + 34 * + 0 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5534
SELECT + 42 * - - COUNT( * ) * + 63 * 18 DIV - - COUNT( * ) AS col1
----
47628

skipif mysql # not compatible
query I rowsort label-5534
SELECT + 42 * - - COUNT ( * ) * + 63 * 18 / - - COUNT ( * ) AS col1
----
47628

query II rowsort
SELECT ALL + 66 AS col1, 95 AS col0
----
66
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5536
SELECT + - 70 DIV + 30 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5536
SELECT + - 70 / + 30 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT ALL - MAX( ALL - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL - MAX ( ALL - 11 )
----
11

query I rowsort
SELECT - + 1 - + + 79 AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5539
SELECT + + 52 * - 27 + + 74 + - 5 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT + + 52 * - 27 + + 74 + - 5 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5540
SELECT + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5540
SELECT + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT + + 71 col2
----
71

query I rowsort
SELECT DISTINCT - - 17 + 29 * 84
----
2453

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5543
SELECT ALL CASE 79 WHEN + - 99 * + + COUNT( * ) + - CASE 98 WHEN - 69 THEN + MAX( 98 ) * 65 END + - 29 THEN NULL WHEN - 78 + - SUM( DISTINCT - 16 ) THEN NULL WHEN + ( 10 ) THEN - MIN( ALL + 61 ) + 41 END + - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL CASE 79 WHEN + - 99 * + + COUNT ( * ) + - CASE 98 WHEN - 69 THEN + MAX ( 98 ) * 65 END + - 29 THEN NULL WHEN - 78 + - SUM ( DISTINCT - 16 ) THEN NULL WHEN + ( 10 ) THEN - MIN ( ALL + 61 ) + 41 END + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT COALESCE ( - ( + 20 ), + 33 ) + + 52 + 42 AS col0
----
74

query II rowsort
SELECT ALL - 71, + 57 * 18 + + + 93 AS col2
----
-71
1119

query I rowsort
SELECT + 72 * + 4 AS col2
----
288

query I rowsort
SELECT DISTINCT + 58 + - + CASE 12 WHEN - 62 THEN - 12 WHEN + 33 THEN NULL WHEN 21 THEN NULL END + + 20 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT ALL - 89 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL - 89 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 30 + + 9
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5550
SELECT + 39 DIV 97 * - + 70 * + - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5550
SELECT + 39 / 97 * - + 70 * + - 48 AS col0
----
0

query I rowsort
SELECT + 50 * + - 66 + - + COALESCE ( + + 84, - - ( ( 2 ) ), - 64 + 7 ) * 22 AS col1
----
-5148

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT DISTINCT 78 + - - 59 * COALESCE ( + - 8, + - COUNT( * ) * + 35 ) AS col0
----
-394

skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT 78 + - - 59 * COALESCE ( + - 8, + - COUNT ( * ) * + 35 ) AS col0
----
-394

query I rowsort
SELECT - 22 + + - 72 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT COUNT( * ) * MIN( - - ( - - 70 ) )
----
70

skipif mysql # not compatible
query I rowsort label-5554
SELECT COUNT ( * ) * MIN ( - - ( - - 70 ) )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5555
SELECT 79 + - 89 + - 51 DIV - ( ( - 56 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-5555
SELECT 79 + - 89 + - 51 / - ( ( - 56 ) )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5556
SELECT DISTINCT 51 - + - 16 + - + ( - 29 ) * CAST( NULL AS SIGNED ) + - + MAX( - 39 ) + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT 51 - + - 16 + - + ( - 29 ) * CAST ( NULL AS INTEGER ) + - + MAX ( - 39 ) + 94 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 85, - 33 AS col2
----
-85
-33

query I rowsort
SELECT ALL + 19 - 33 + - 76 AS col0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT ALL - 65 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL - 65 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT 56 * + COUNT( * ) - - - 9
----
47

skipif mysql # not compatible
query I rowsort label-5560
SELECT 56 * + COUNT ( * ) - - - 9
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5561
SELECT 84 * - COALESCE ( + COUNT( * ), - 13 * + 10 + + 64 * - CASE 97 + 32 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 39 END )
----
-84

skipif mysql # not compatible
query I rowsort label-5561
SELECT 84 * - COALESCE ( + COUNT ( * ), - 13 * + 10 + + 64 * - CASE 97 + 32 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 39 END )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT DISTINCT - 74 * COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT - 74 * COUNT ( * ) AS col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5563
SELECT 95, 14 + - CAST( NULL AS SIGNED ) col0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-5563
SELECT 95, 14 + - CAST ( NULL AS INTEGER ) col0
----
95
NULL

query I rowsort
SELECT DISTINCT 37 * + 78
----
2886

query II rowsort
SELECT ALL 45 AS col1, 81 AS col1
----
45
81

query I rowsort
SELECT 93 - 20 * - + 7 + - 65 AS col0
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5567
SELECT ALL - 57 * - + 30 DIV - COUNT( * )
----
-1710

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL - 57 * - + 30 / - COUNT ( * )
----
-1710

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT DISTINCT + COUNT( * ) * + + 3 * + 86 AS col2
----
258

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT + COUNT ( * ) * + + 3 * + 86 AS col2
----
258

query II rowsort
SELECT ALL 2 AS col2, - 41 * 83
----
2
-3403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5570
SELECT DISTINCT + 3 / 25 * - + 67 * SUM( - 40 ) * - 41 / - CASE MIN( 66 ) * ( 18 * + 74 ) WHEN 47 - - 44 * + 94 THEN - CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT + 3 / 25 * - + 67 * SUM ( - 40 ) * - 41 / - CASE MIN ( 66 ) * ( 18 * + 74 ) WHEN 47 - - 44 * + 94 THEN - CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT 13 * 17
----
221

query I rowsort
SELECT ALL + 30 + ( 57 )
----
87

query I rowsort
SELECT + 84 + + 6 + - 15
----
75

query I rowsort
SELECT - ( + 1 ) - + 13
----
-14

query I rowsort
SELECT 17 * + - 78 AS col2
----
-1326

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5576
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT + CAST ( NULL AS REAL ) + - + 33
----
NULL

query I rowsort
SELECT ALL + - 28 * 11 AS col0
----
-308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5578
SELECT ALL - + 0, + ( - + 38 ) - 34 - - 91 - + CAST( - 66 AS SIGNED ) * COUNT( * ) col0
----
0
85

skipif mysql # not compatible
query II rowsort label-5578
SELECT ALL - + 0, + ( - + 38 ) - 34 - - 91 - + CAST ( - 66 AS INTEGER ) * COUNT ( * ) col0
----
0
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5579
SELECT ALL - - 15 * - - CAST( - - 17 AS SIGNED ) * + 44 AS col0, 85
----
11220
85

skipif mysql # not compatible
query II rowsort label-5579
SELECT ALL - - 15 * - - CAST ( - - 17 AS INTEGER ) * + 44 AS col0, 85
----
11220
85

query I rowsort
SELECT ALL + - 52 + - + 44
----
-96

query I rowsort
SELECT + 84 * - ( + 9 ) AS col1
----
-756

query I rowsort
SELECT + 27 * + + 82
----
2214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5583
SELECT ( + 91 ) DIV ( MIN( DISTINCT 43 ) ) + - 89
----
-87

skipif mysql # not compatible
query I rowsort label-5583
SELECT ( + 91 ) / ( MIN ( DISTINCT 43 ) ) + - 89
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-5584
SELECT 28 AS col1, - ( CASE + NULLIF ( - 23, - - CASE - AVG ( 79 ) WHEN - 10 * + 33 THEN + 65 WHEN 16 THEN NULL WHEN COUNT( * ) + - 15 THEN + 47 + + COUNT( * ) ELSE + 4 + - 54 END ) WHEN 73 THEN - 1 * - 60 END ) / 21
----
28
NULL

skipif mysql # not compatible
query II rowsort label-5584
SELECT 28 AS col1, - ( CASE + NULLIF ( - 23, - - CASE - AVG ( 79 ) WHEN - 10 * + 33 THEN + 65 WHEN 16 THEN NULL WHEN COUNT ( * ) + - 15 THEN + 47 + + COUNT ( * ) ELSE + 4 + - 54 END ) WHEN 73 THEN - 1 * - 60 END ) / 21
----
28
NULL

query I rowsort
SELECT - 11 + + + 55 * - 8 * - ( - - 59 ) col1
----
25949

onlyif mysql # aggregate syntax: 
query II rowsort label-5586
SELECT ALL - 86 AS col2, - 13 - MAX( - 36 ) AS col2
----
-86
23

skipif mysql # not compatible
query II rowsort label-5586
SELECT ALL - 86 AS col2, - 13 - MAX ( - 36 ) AS col2
----
-86
23

query I rowsort
SELECT + 59 - 36
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT - + 10 - + 69 + COUNT( * ) + - + 61 * - - 71 + - 80 + 90
----
-4399

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT - + 10 - + 69 + COUNT ( * ) + - + 61 * - - 71 + - 80 + 90
----
-4399

query II rowsort
SELECT DISTINCT 92 * - ( + 19 ) col2, 32 * 53 * - 90 AS col2
----
-1748
-152640

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT CASE + - 68 WHEN - 84 + - COUNT( * ) - + CASE + + 97 WHEN 90 THEN - 9 + + ( 98 - + 33 ) * + 86 END * 97 * - COUNT( * ) THEN + 98 - 54 * 0 END * + 50 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5590
SELECT CASE + - 68 WHEN - 84 + - COUNT ( * ) - + CASE + + 97 WHEN 90 THEN - 9 + + ( 98 - + 33 ) * + 86 END * 97 * - COUNT ( * ) THEN + 98 - 54 * 0 END * + 50 col1
----
NULL

query I rowsort
SELECT ALL 38 * - 9 AS col0
----
-342

query I rowsort
SELECT ( - 42 ) - 44 + - 56 * + + 2 AS col0
----
-198

query I rowsort
SELECT 94 - - 17 + + 7 col1
----
118

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5594
SELECT CAST( 8 AS SIGNED ) DIV 1
----
8

skipif mysql # not compatible
query I rowsort label-5594
SELECT CAST ( 8 AS INTEGER ) / 1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5595
SELECT + SUM( - 60 ) AS col2, + 33 * - 64 + 82 AS col2
----
-60
-2030

skipif mysql # not compatible
query II rowsort label-5595
SELECT + SUM ( - 60 ) AS col2, + 33 * - 64 + 82 AS col2
----
-60
-2030

query I rowsort
SELECT DISTINCT 37 * 91 AS col1
----
3367

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5597
SELECT ( + 79 ) DIV + 44 + COUNT( * ) + - 14 DIV 41
----
2

skipif mysql # not compatible
query I rowsort label-5597
SELECT ( + 79 ) / + 44 + COUNT ( * ) + - 14 / 41
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5598
SELECT CAST( + 63 AS SIGNED ) + - CASE - 35 WHEN + 79 THEN COALESCE ( - 61, 87 * NULLIF ( 96 * + 30, + CASE + 43 WHEN COUNT( * ) THEN + 94 * - 61 + - 16 ELSE - ( COUNT( + 76 ) ) * - ( 59 * - MAX( DISTINCT 28 ) + + 41 * 95 ) + 65 * 66 END * COUNT( * ) + 21 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT CAST ( + 63 AS INTEGER ) + - CASE - 35 WHEN + 79 THEN COALESCE ( - 61, 87 * NULLIF ( 96 * + 30, + CASE + 43 WHEN COUNT ( * ) THEN + 94 * - 61 + - 16 ELSE - ( COUNT ( + 76 ) ) * - ( 59 * - MAX ( DISTINCT 28 ) + + 41 * 95 ) + 65 * 66 END * COUNT ( * ) + 21 ) ) END
----
NULL

query I rowsort
SELECT ALL + CASE 93 WHEN - ( - 97 ) THEN 15 END / + 8
----
NULL

query I rowsort
SELECT ALL 49 + - + COALESCE ( + 6, - 12 ) * + 93 AS col1
----
-509

query I rowsort
SELECT ALL COALESCE ( - - 74, - + 33 ) + + 1 * + 97 + + 40
----
211

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5602
SELECT 83 * - 86 * + 18, COUNT( * ) - 98 DIV - - ( 18 ) - 96 col0
----
-128484
-100

skipif mysql # not compatible
query II rowsort label-5602
SELECT 83 * - 86 * + 18, COUNT ( * ) - 98 / - - ( 18 ) - 96 col0
----
-128484
-100

query I rowsort
SELECT 19 + 30 - + 18 * + 8
----
-95

query I rowsort
SELECT 28 + + 1 AS col0
----
29

query I rowsort
SELECT ALL + + 67 * 3 - + 68
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT - CASE + + COUNT( * ) WHEN 24 THEN SUM( + 40 ) / COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT - CASE + + COUNT ( * ) WHEN 24 THEN SUM ( + 40 ) / COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5607
SELECT - CAST( - 50 AS SIGNED ) + ( + 74 ) col2
----
124

skipif mysql # not compatible
query I rowsort label-5607
SELECT - CAST ( - 50 AS INTEGER ) + ( + 74 ) col2
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-5608
SELECT - ( COUNT( * ) ) AS col0, - 50 col0
----
-1
-50

skipif mysql # not compatible
query II rowsort label-5608
SELECT - ( COUNT ( * ) ) AS col0, - 50 col0
----
-1
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-5609
SELECT DISTINCT - 82 + + + COUNT( * ), - 76 col0
----
-81
-76

skipif mysql # not compatible
query II rowsort label-5609
SELECT DISTINCT - 82 + + + COUNT ( * ), - 76 col0
----
-81
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5610
SELECT ALL + + 92 + - 13 - + CAST( COUNT( * ) AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL + + 92 + - 13 - + CAST ( COUNT ( * ) AS INTEGER )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5611
SELECT ALL + COALESCE ( 38, + - AVG ( - 55 ), COUNT( * ) ) * + CASE + - COUNT( * ) WHEN 94 - NULLIF ( - 6, ( 98 ) ) * COUNT( * ) THEN - CAST( + 97 AS SIGNED ) WHEN ( + CAST( NULL AS SIGNED ) ) + - 5 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL + COALESCE ( 38, + - AVG ( - 55 ), COUNT ( * ) ) * + CASE + - COUNT ( * ) WHEN 94 - NULLIF ( - 6, ( 98 ) ) * COUNT ( * ) THEN - CAST ( + 97 AS INTEGER ) WHEN ( + CAST ( NULL AS INTEGER ) ) + - 5 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5612
SELECT DISTINCT SUM( DISTINCT + ( - - 14 ) ) AS col0, 5 AS col1
----
14
5

skipif mysql # not compatible
query II rowsort label-5612
SELECT DISTINCT SUM ( DISTINCT + ( - - 14 ) ) AS col0, 5 AS col1
----
14
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5613
SELECT - + 69 * - CAST( NULL AS SIGNED ) / + 68 + - MIN( ALL 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT - + 69 * - CAST ( NULL AS INTEGER ) / + 68 + - MIN ( ALL 97 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5614
SELECT ALL + + 0 + - 51 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL + + 0 + - 51 / - 78
----
0

query I rowsort
SELECT ALL - 89 + - + CASE + 85 WHEN 47 * - 14 + + 99 THEN + CASE - AVG ( + 75 ) WHEN - 22 THEN NULL ELSE 20 / + 45 END WHEN 58 - - ( 39 ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5616
SELECT + 98 - CAST( NULL AS DECIMAL ) - - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT + 98 - CAST ( NULL AS REAL ) - - + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 81 * 2 * 83 AS col2
----
-13446

query I rowsort
SELECT - - ( - 3 ) + - 26
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT + - ( MIN( 88 ) ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-5619
SELECT + - ( MIN ( 88 ) ) AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5620
SELECT ALL + 82 * - + MIN( - 8 ) - - CAST( - 71 AS SIGNED ) col1
----
585

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL + 82 * - + MIN ( - 8 ) - - CAST ( - 71 AS INTEGER ) col1
----
585

onlyif mysql # DIV for integer division: 
query I rowsort label-5621
SELECT - - 42 DIV ( 84 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5621
SELECT - - 42 / ( 84 ) col2
----
0

query I rowsort
SELECT - 57 + - 38 AS col1
----
-95

query I rowsort
SELECT DISTINCT - 3 * - 95 + - 6 AS col0
----
279

query I rowsort
SELECT ALL + COALESCE ( + 70, - 69 ) AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5625
SELECT ALL - 37 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL - 37 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT - 33 * - 13 * + SUM( + 16 )
----
6864

skipif mysql # not compatible
query I rowsort label-5626
SELECT - 33 * - 13 * + SUM ( + 16 )
----
6864

query II rowsort
SELECT + 12, - 8 * - 22 AS col1
----
12
176

query I rowsort
SELECT + ( - ( - 37 ) ) * + - 96 col0
----
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT COALESCE ( - - 68, - - 0 * + ( + COUNT( * ) ) * + 57, + 3, 70 )
----
68

skipif mysql # not compatible
query I rowsort label-5629
SELECT COALESCE ( - - 68, - - 0 * + ( + COUNT ( * ) ) * + 57, + 3, 70 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT + 60 * + 67 + 62 + - - 38 - - ( + 4 ) * - 7 DIV - 74 + - 23 DIV - 70 AS col1
----
4120

skipif mysql # not compatible
query I rowsort label-5630
SELECT + 60 * + 67 + 62 + - - 38 - - ( + 4 ) * - 7 / - 74 + - 23 / - 70 AS col1
----
4120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5631
SELECT DISTINCT + 36 AS col2, - CASE - CAST( NULL AS SIGNED ) WHEN - + 15 THEN - 92 END * + COUNT( DISTINCT - 86 ) - - COUNT( ALL - CAST( + 51 AS SIGNED ) ) + 62 AS col0
----
36
NULL

skipif mysql # not compatible
query II rowsort label-5631
SELECT DISTINCT + 36 AS col2, - CASE - CAST ( NULL AS INTEGER ) WHEN - + 15 THEN - 92 END * + COUNT ( DISTINCT - 86 ) - - COUNT ( ALL - CAST ( + 51 AS INTEGER ) ) + 62 AS col0
----
36
NULL

query I rowsort
SELECT - ( - + ( + 24 ) ) * 46 + + 24
----
1128

query I rowsort
SELECT ALL ( 39 ) * - - 6 + - 28 + - + 37 * - ( + + 76 )
----
3018

query I rowsort
SELECT + 43 * - 76
----
-3268

query II rowsort
SELECT DISTINCT + 42, - 53 AS col1
----
42
-53

query I rowsort
SELECT + NULLIF ( - 41, + - 11 ) col0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-5637
SELECT 30 * 32 * + + 10 - + + 97 DIV - 64 col2
----
9601

skipif mysql # not compatible
query I rowsort label-5637
SELECT 30 * 32 * + + 10 - + + 97 / - 64 col2
----
9601

query I rowsort
SELECT - NULLIF ( - 14, - + 71 - + 75 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT + COUNT( * ) * 30 col0
----
30

skipif mysql # not compatible
query I rowsort label-5639
SELECT + COUNT ( * ) * 30 col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT MIN( - - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-5640
SELECT MIN ( - - 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL MIN( DISTINCT 13 )
----
13

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL MIN ( DISTINCT 13 )
----
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5642
SELECT ALL - 3 DIV - 63 * 69 * - CAST( - + 44 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL - 3 / - 63 * 69 * - CAST ( - + 44 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT ALL 99 - MAX( ALL + - 44 ) * COUNT( * ) AS col2
----
143

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL 99 - MAX ( ALL + - 44 ) * COUNT ( * ) AS col2
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-5644
SELECT DISTINCT - NULLIF ( + 40, + COUNT( * ) ), - 24 AS col2
----
-40
-24

skipif mysql # not compatible
query II rowsort label-5644
SELECT DISTINCT - NULLIF ( + 40, + COUNT ( * ) ), - 24 AS col2
----
-40
-24

query I rowsort
SELECT + 82 + + - 41
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT ALL ( + MIN( 24 ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL ( + MIN ( 24 ) ) AS col2
----
24

query I rowsort
SELECT - NULLIF ( - + 84, - 5 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT + MAX( DISTINCT NULLIF ( 88, + 75 ) ) + 89 col1
----
177

skipif mysql # not compatible
query I rowsort label-5648
SELECT + MAX ( DISTINCT NULLIF ( 88, + 75 ) ) + 89 col1
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5649
SELECT - + 32 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5649
SELECT - + 32 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 82 AS col0, + 33
----
82
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT - CASE - COUNT( * ) WHEN - - ( - - 33 ) THEN 49 / + COALESCE ( - 64, + MIN( DISTINCT - 24 ), 2 ) + + SUM( DISTINCT - 50 ) + + 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT - CASE - COUNT ( * ) WHEN - - ( - - 33 ) THEN 49 / + COALESCE ( - 64, + MIN ( DISTINCT - 24 ), 2 ) + + SUM ( DISTINCT - 50 ) + + 4 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5652
SELECT - - COUNT( DISTINCT 84 ) - + + COUNT( * ) DIV + 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5652
SELECT - - COUNT ( DISTINCT 84 ) - + + COUNT ( * ) / + 53 AS col1
----
1

query I rowsort
SELECT + - 46 * + 11 * + - 81 + + 22
----
41008

query II rowsort
SELECT + + 71 + - 74 * + 4 AS col2, 20
----
-225
20

query II rowsort
SELECT ALL - 26, 3 AS col0
----
-26
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT DISTINCT - 7 * COUNT( * ) - - - 61
----
-68

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT - 7 * COUNT ( * ) - - - 61
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5657
SELECT - 46 + + - COUNT( * ) DIV - - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-5657
SELECT - 46 + + - COUNT ( * ) / - - COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT - COUNT( DISTINCT + 75 ) * - + 3
----
3

skipif mysql # not compatible
query I rowsort label-5658
SELECT - COUNT ( DISTINCT + 75 ) * - + 3
----
3

query I rowsort
SELECT ALL + 74 * - 65 * 41
----
-197210

query I rowsort
SELECT - 69 * 9 * - + 28 + - 32
----
17356

onlyif mysql # DIV for integer division: 
query I rowsort label-5661
SELECT - 9 DIV + + 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5661
SELECT - 9 / + + 30 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5662
SELECT 97 DIV + - COUNT( - 57 ) + + 54
----
-43

skipif mysql # not compatible
query I rowsort label-5662
SELECT 97 / + - COUNT ( - 57 ) + + 54
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5663
SELECT DISTINCT - 15 DIV + MIN( ALL 21 ) * - 15
----
0

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT - 15 / + MIN ( ALL 21 ) * - 15
----
0

query I rowsort
SELECT ALL + NULLIF ( 34, - + 75 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT - 91 + COUNT( * ) + + 95
----
5

skipif mysql # not compatible
query I rowsort label-5665
SELECT - 91 + COUNT ( * ) + + 95
----
5

query I rowsort
SELECT DISTINCT - 88 * - + 78
----
6864

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT DISTINCT 74 DIV - 79 + + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT 74 / - 79 + + 58 AS col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT - 43 DIV + 82 * - + 69
----
0

skipif mysql # not compatible
query I rowsort label-5668
SELECT - 43 / + 82 * - + 69
----
0

query I rowsort
SELECT DISTINCT 18 * - 33 + 39 AS col2
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT DISTINCT - COUNT( ALL 59 ) * - 77 * 70 AS col0
----
5390

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT - COUNT ( ALL 59 ) * - 77 * 70 AS col0
----
5390

query I rowsort
SELECT - 37 - + 72 * - NULLIF ( - 88, + 29 )
----
-6373

onlyif mysql # aggregate syntax: 
query II rowsort label-5672
SELECT DISTINCT + 25 * - 27, 54 + - COUNT( * ) AS col1
----
-675
53

skipif mysql # not compatible
query II rowsort label-5672
SELECT DISTINCT + 25 * - 27, 54 + - COUNT ( * ) AS col1
----
-675
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5673
SELECT 35 * - ( COALESCE ( + - 50, + 76, - + COALESCE ( + MIN( + - 52 ), - 87 * + MIN( DISTINCT - 65 ) + + 35 * + 68 ) / + 34 ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5673
SELECT 35 * - ( COALESCE ( + - 50, + 76, - + COALESCE ( + MIN ( + - 52 ), - 87 * + MIN ( DISTINCT - 65 ) + + 35 * + 68 ) / + 34 ) ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT DISTINCT - CASE - 72 WHEN 60 THEN - 43 + - 36 * + + 69 WHEN + - SUM( ALL + + 47 ) THEN + 13 WHEN 42 THEN + AVG ( 36 ) * 62 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT - CASE - 72 WHEN 60 THEN - 43 + - 36 * + + 69 WHEN + - SUM ( ALL + + 47 ) THEN + 13 WHEN 42 THEN + AVG ( 36 ) * 62 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT - 17 * 92 * - MIN( DISTINCT - ( + - 17 ) ) + - COUNT( * ) AS col1
----
26587

skipif mysql # not compatible
query I rowsort label-5675
SELECT - 17 * 92 * - MIN ( DISTINCT - ( + - 17 ) ) + - COUNT ( * ) AS col1
----
26587

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT 18 + + 67 DIV 53 * - 40 * - + 2 - - 53 - + 15 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-5676
SELECT 18 + + 67 / 53 * - 40 * - + 2 - - 53 - + 15 AS col2
----
136

query I rowsort
SELECT 2 + 73 AS col1
----
75

query I rowsort
SELECT ALL + 30 * - 89 - + 30 AS col2
----
-2700

query I rowsort
SELECT ALL - ( - 24 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5680
SELECT 5 DIV + 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5680
SELECT 5 / + 22 AS col1
----
0

query I rowsort
SELECT DISTINCT + ( - 93 ) AS col2
----
-93

query I rowsort
SELECT + 39 + ( ( + 24 ) ) + 62
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT DISTINCT - 98 * + COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT - 98 * + COUNT ( * ) AS col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5684
SELECT ALL - 54 DIV + ( - 21 ) col2
----
2

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL - 54 / + ( - 21 ) col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5685
SELECT DISTINCT 74 + + 46 + - - 84 + + 37 + + 95 DIV 23 + NULLIF ( + 64, + + 87 + + 42 * 5 )
----
309

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT 74 + + 46 + - - 84 + + 37 + + 95 / 23 + NULLIF ( + 64, + + 87 + + 42 * 5 )
----
309

query I rowsort
SELECT 62 - + + 24
----
38

query II rowsort
SELECT 2, + 0 + - 66 * 42 AS col2
----
2
-2772

query I rowsort
SELECT 68 * - - 19 AS col1
----
1292

query I rowsort
SELECT 4 + 87 AS col2
----
91

query I rowsort
SELECT ALL 9 + - 26
----
-17

query I rowsort
SELECT DISTINCT 38 + + 14 * 19 * - 97
----
-25764

onlyif mysql # aggregate syntax: 
query II rowsort label-5692
SELECT 87 - 30 * + 27 * 16 * - MIN( ALL + 62 ) * + ( 16 ), + 0 col0
----
12856407
0

skipif mysql # not compatible
query II rowsort label-5692
SELECT 87 - 30 * + 27 * 16 * - MIN ( ALL + 62 ) * + ( 16 ), + 0 col0
----
12856407
0

query II rowsort
SELECT 94 * + 27 * 28, ( 46 ) AS col1
----
71064
46

query II rowsort
SELECT 2 AS col0, 28 AS col0
----
2
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ALL + COUNT( * ) + + ( - + 95 ) col1
----
-94

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL + COUNT ( * ) + + ( - + 95 ) col1
----
-94

query I rowsort
SELECT 84 * 87 AS col1
----
7308

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5697
SELECT 30 * - MAX( + - 92 ) * - - 50 + - 15 + - 18 + + 11 DIV + + NULLIF ( + - 66, 85 ) + - 60 AS col1
----
137907

skipif mysql # not compatible
query I rowsort label-5697
SELECT 30 * - MAX ( + - 92 ) * - - 50 + - 15 + - 18 + + 11 / + + NULLIF ( + - 66, 85 ) + - 60 AS col1
----
137907

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL - CASE - SUM( - 25 ) WHEN + - COALESCE ( + 25, 65, SUM( ALL - 39 ) + + 0 ) THEN - + COUNT( * ) + - 91 ELSE 41 END AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL - CASE - SUM ( - 25 ) WHEN + - COALESCE ( + 25, 65, SUM ( ALL - 39 ) + + 0 ) THEN - + COUNT ( * ) + - 91 ELSE 41 END AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5699
SELECT DISTINCT - MIN( 89 ) + - CASE - 40 WHEN 29 * - + 19 + 77 DIV + + 78 THEN NULL ELSE - 55 + - 45 END * COALESCE ( + 22 DIV 99, 27 * + 6 + 18 * - 99, + 58 ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-5699
SELECT DISTINCT - MIN ( 89 ) + - CASE - 40 WHEN 29 * - + 19 + 77 / + + 78 THEN NULL ELSE - 55 + - 45 END * COALESCE ( + 22 / 99, 27 * + 6 + 18 * - 99, + 58 ) col0
----
-89

query I rowsort
SELECT ALL + 30 + + 21
----
51

query I rowsort
SELECT 38 + - 34 + 49 AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5702
SELECT 9 * - NULLIF ( - + COUNT( * ), - 18 * + 63 - + 42 + 89 ) DIV COUNT( * ) * - + 56 + 91 AS col1
----
-413

skipif mysql # not compatible
query I rowsort label-5702
SELECT 9 * - NULLIF ( - + COUNT ( * ), - 18 * + 63 - + 42 + 89 ) / COUNT ( * ) * - + 56 + 91 AS col1
----
-413

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5703
SELECT DISTINCT 25 - - 96 DIV SUM( + 64 ) * + 23 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT 25 - - 96 / SUM ( + 64 ) * + 23 AS col2
----
48

query I rowsort
SELECT 22 * - 90 AS col0
----
-1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), - 7 ) * - 26 * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), - 7 ) * - 26 * + 76
----
NULL

query II rowsort
SELECT 18 AS col0, - 47 * + + 36
----
18
-1692

query I rowsort
SELECT ALL - - 73 - 3 AS col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5708
SELECT NULLIF ( - 4, 61 / - + COUNT( * ) ) * 25, - 27 AS col2
----
-100
-27

skipif mysql # not compatible
query II rowsort label-5708
SELECT NULLIF ( - 4, 61 / - + COUNT ( * ) ) * 25, - 27 AS col2
----
-100
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5709
SELECT + COALESCE ( + + CASE COALESCE ( - 85, - - ( + 11 ) ) WHEN - 57 * - 6 THEN NULL WHEN + 94 THEN - 94 DIV + 24 END, + 32 * 27, 12 ) * COUNT( * )
----
864

skipif mysql # not compatible
query I rowsort label-5709
SELECT + COALESCE ( + + CASE COALESCE ( - 85, - - ( + 11 ) ) WHEN - 57 * - 6 THEN NULL WHEN + 94 THEN - 94 / + 24 END, + 32 * 27, 12 ) * COUNT ( * )
----
864

query I rowsort
SELECT ALL + 76 * - - 66 * + 55
----
275880

query I rowsort
SELECT 50 + - ( + - 21 ) * 14
----
344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5712
SELECT ALL + CASE + 21 WHEN + COUNT( * ) + + ( - + 23 ) * 57 THEN NULL ELSE 37 * + + 68 + - - CAST( - - COUNT( * ) AS SIGNED ) END AS col2
----
2517

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL + CASE + 21 WHEN + COUNT ( * ) + + ( - + 23 ) * 57 THEN NULL ELSE 37 * + + 68 + - - CAST ( - - COUNT ( * ) AS INTEGER ) END AS col2
----
2517

query I rowsort
SELECT ALL - + 81 - + 77
----
-158

query I rowsort
SELECT 89 * - - ( - 23 )
----
-2047

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT DISTINCT + SUM( 14 )
----
14

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT + SUM ( 14 )
----
14

query II rowsort
SELECT DISTINCT 74, 98 AS col2
----
74
98

query I rowsort
SELECT + 28 * - 72 AS col1
----
-2016

query I rowsort
SELECT 99 + + 26 * + + 38 * + 60
----
59379

query I rowsort
SELECT - ( + 8 ) AS col1
----
-8

query I rowsort
SELECT ALL + - 26 + 29 + + 22
----
25

query I rowsort
SELECT ( + + 37 ) + + 18 AS col1
----
55

query II rowsort
SELECT - 80 AS col0, - 3 - 85 AS col1
----
-80
-88

query I rowsort
SELECT DISTINCT - 25 + 4 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL COUNT( * ) * 77
----
77

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL COUNT ( * ) * 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT 7 - + + COUNT( * ) * + SUM( ALL 41 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-5725
SELECT 7 - + + COUNT ( * ) * + SUM ( ALL 41 ) AS col2
----
-34

query I rowsort
SELECT ALL 68 + - - 99
----
167

onlyif mysql # aggregate syntax: 
query II rowsort label-5727
SELECT ALL COUNT( * ), - CASE ( - COUNT( * ) ) WHEN - MAX( - 93 ) * 34 THEN - - 52 ELSE NULL END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5727
SELECT ALL COUNT ( * ), - CASE ( - COUNT ( * ) ) WHEN - MAX ( - 93 ) * 34 THEN - - 52 ELSE NULL END AS col2
----
1
NULL

query I rowsort
SELECT DISTINCT + 15 + - 57 + - 24
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5729
SELECT SUM( 48 ) DIV 44 + - 96 + - 31 AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-5729
SELECT SUM ( 48 ) / 44 + - 96 + - 31 AS col1
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-5730
SELECT DISTINCT + 98 + 19 DIV - 54
----
98

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT + 98 + 19 / - 54
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL 32 + + SUM( 70 ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL 32 + + SUM ( 70 ) AS col1
----
102

query II rowsort
SELECT DISTINCT 68, ( + 95 ) col1
----
68
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT + 22 * 48 + + 60 * - NULLIF ( 61, 73 ) * + COUNT( * ) * 17 - - 98
----
-61066

skipif mysql # not compatible
query I rowsort label-5733
SELECT + 22 * 48 + + 60 * - NULLIF ( 61, 73 ) * + COUNT ( * ) * 17 - - 98
----
-61066

onlyif mysql # DIV for integer division: 
query I rowsort label-5734
SELECT 71 DIV 54 + - 42 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-5734
SELECT 71 / 54 + - 42 AS col1
----
-41

query I rowsort
SELECT + 14 * - ( - 8 )
----
112

query I rowsort
SELECT + 84 * 10 AS col1
----
840

query II rowsort
SELECT + 85, - 47 AS col0
----
85
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5738
SELECT MAX( - 42 ) AS col1, 95 / - CAST( NULL AS SIGNED ) AS col0
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-5738
SELECT MAX ( - 42 ) AS col1, 95 / - CAST ( NULL AS INTEGER ) AS col0
----
-42
NULL

query I rowsort
SELECT + 78 + + + 94
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT - MIN( + 10 ) * + 74 + 32
----
-708

skipif mysql # not compatible
query I rowsort label-5740
SELECT - MIN ( + 10 ) * + 74 + 32
----
-708

onlyif mysql # DIV for integer division: 
query I rowsort label-5741
SELECT - 90 DIV + + 43 + + 31
----
29

skipif mysql # not compatible
query I rowsort label-5741
SELECT - 90 / + + 43 + + 31
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5742
SELECT ALL + 75 AS col1, CAST( NULL AS SIGNED )
----
75
NULL

skipif mysql # not compatible
query II rowsort label-5742
SELECT ALL + 75 AS col1, CAST ( NULL AS INTEGER )
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT - 45 * 58 + + COUNT( * )
----
-2609

skipif mysql # not compatible
query I rowsort label-5743
SELECT - 45 * 58 + + COUNT ( * )
----
-2609

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5744
SELECT - CAST( NULL AS SIGNED ) * 96 * - 96 * + - 62 + - + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT - CAST ( NULL AS INTEGER ) * 96 * - 96 * + - 62 + - + 90 AS col2
----
NULL

query I rowsort
SELECT - 18 + ( + - 40 ) + + - 56
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT ALL + - MIN( ALL + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL + - MIN ( ALL + 51 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5747
SELECT COUNT( * ) AS col1, + COUNT( DISTINCT + 95 ) + - + 17 DIV - 81 AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-5747
SELECT COUNT ( * ) AS col1, + COUNT ( DISTINCT + 95 ) + - + 17 / - 81 AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT + - COUNT( * ) + 41
----
40

skipif mysql # not compatible
query I rowsort label-5748
SELECT + - COUNT ( * ) + 41
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5749
SELECT + 76 * + CAST( + COUNT( * ) AS SIGNED ) + - 49 * - COALESCE ( - MIN( DISTINCT + - 39 ), - COALESCE ( - 40, 75 * + 76 - 79, - 15 DIV + COUNT( * ) - 85 DIV + 39 ) ) * + 61 AS col1
----
116647

skipif mysql # not compatible
query I rowsort label-5749
SELECT + 76 * + CAST ( + COUNT ( * ) AS INTEGER ) + - 49 * - COALESCE ( - MIN ( DISTINCT + - 39 ), - COALESCE ( - 40, 75 * + 76 - 79, - 15 / + COUNT ( * ) - 85 / + 39 ) ) * + 61 AS col1
----
116647

onlyif mysql # DIV for integer division: 
query I rowsort label-5750
SELECT ALL + 53 DIV 8 DIV + 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL + 53 / 8 / + 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5751
SELECT ALL COUNT( 65 ) AS col2, + 99 AS col1
----
1
99

skipif mysql # not compatible
query II rowsort label-5751
SELECT ALL COUNT ( 65 ) AS col2, + 99 AS col1
----
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT ALL ( + COUNT( ALL - 88 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL ( + COUNT ( ALL - 88 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT DISTINCT - ( - 26 ) * - CASE + 71 WHEN - 82 THEN + ( + + 44 ) * - + 95 + - 27 + - 27 * + COUNT( * ) END + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT - ( - 26 ) * - CASE + 71 WHEN - 82 THEN + ( + + 44 ) * - + 95 + - 27 + - 27 * + COUNT ( * ) END + 46 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 8 AS col2, 26 + + + 16
----
8
42

query III rowsort
SELECT 14 AS col2, 61 AS col1, 4
----
14
61
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5756
SELECT ALL + + CAST( NULL AS DECIMAL ) * + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL + + CAST ( NULL AS REAL ) * + 93 AS col1
----
NULL

query I rowsort
SELECT ALL - ( + 65 ) + + - 72 + 28 * + - 36 AS col0
----
-1145

query I rowsort
SELECT DISTINCT + 70 + - NULLIF ( 47, - - ( + 84 ) * 67 / - 75 + + 19 ) AS col0
----
23

query I rowsort
SELECT - 48 + 30 * - 96 AS col2
----
-2928

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5760
SELECT - - 90 AS col2, - CAST( - 90 AS SIGNED ) AS col0
----
90
90

skipif mysql # not compatible
query II rowsort label-5760
SELECT - - 90 AS col2, - CAST ( - 90 AS INTEGER ) AS col0
----
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT - - 26 DIV - ( - - 60 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5761
SELECT - - 26 / - ( - - 60 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT - 61 + - MIN( + + 19 ) + - + 19 * + 7
----
-213

skipif mysql # not compatible
query I rowsort label-5762
SELECT - 61 + - MIN ( + + 19 ) + - + 19 * + 7
----
-213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5763
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 42 * - 74 * - 96 - MAX( - + 67 )
----
NULL
298435

skipif mysql # not compatible
query II rowsort label-5763
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 42 * - 74 * - 96 - MAX ( - + 67 )
----
NULL
298435

query I rowsort
SELECT DISTINCT + 29 + 86 AS col1
----
115

query I rowsort
SELECT ALL NULLIF ( + 3, 7 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT - 68 + NULLIF ( - 7, + 79 + COALESCE ( + 32, COALESCE ( - COUNT( * ), - + 9 + 15, + 74 ) ) )
----
-75

skipif mysql # not compatible
query I rowsort label-5766
SELECT - 68 + NULLIF ( - 7, + 79 + COALESCE ( + 32, COALESCE ( - COUNT ( * ), - + 9 + 15, + 74 ) ) )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL + 11 + MAX( - 1 ) / 40 + 53 / ( CASE + 35 WHEN - + COUNT( * ) THEN NULL WHEN COALESCE ( + AVG ( - 71 ), 66 ) THEN - 6 * 28 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL + 11 + MAX ( - 1 ) / 40 + 53 / ( CASE + 35 WHEN - + COUNT ( * ) THEN NULL WHEN COALESCE ( + AVG ( - 71 ), 66 ) THEN - 6 * 28 END )
----
NULL

query II rowsort
SELECT ALL ( - 43 ) col2, - 13 AS col0
----
-43
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5769
SELECT - ( - COUNT( * ) ) - + ( - + COUNT( - + CAST( - - 33 AS SIGNED ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-5769
SELECT - ( - COUNT ( * ) ) - + ( - + COUNT ( - + CAST ( - - 33 AS INTEGER ) ) )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5770
SELECT + 14 + CASE 60 WHEN + 22 THEN NULL WHEN - + 24 THEN 59 ELSE 20 + - 98 END + - 48 + + - COALESCE ( - MIN( - CAST( + ( 76 ) AS SIGNED ) ), CAST( NULL AS SIGNED ), - 68 * 8 ) DIV COUNT( - 90 ) AS col0
----
-188

skipif mysql # not compatible
query I rowsort label-5770
SELECT + 14 + CASE 60 WHEN + 22 THEN NULL WHEN - + 24 THEN 59 ELSE 20 + - 98 END + - 48 + + - COALESCE ( - MIN ( - CAST ( + ( 76 ) AS INTEGER ) ), CAST ( NULL AS INTEGER ), - 68 * 8 ) / COUNT ( - 90 ) AS col0
----
-188

query I rowsort
SELECT DISTINCT COALESCE ( - 46, 70 ) * - 66 AS col0
----
3036

query I rowsort
SELECT - 61 * - 40 AS col0
----
2440

onlyif mysql # aggregate syntax: 
query III rowsort label-5773
SELECT ALL + MIN( - 72 ) AS col1, COUNT( * ), - - 59 col2
----
-72
1
59

skipif mysql # not compatible
query III rowsort label-5773
SELECT ALL + MIN ( - 72 ) AS col1, COUNT ( * ), - - 59 col2
----
-72
1
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5774
SELECT CAST( - MAX( - 43 ) AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-5774
SELECT CAST ( - MAX ( - 43 ) AS INTEGER )
----
43

query I rowsort
SELECT - 80 * 64 - - 3 AS col1
----
-5117

query I rowsort
SELECT - 1 * 16 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5777
SELECT + ( - 61 ) AS col2, SUM( DISTINCT 24 ) AS col2
----
-61
24

skipif mysql # not compatible
query II rowsort label-5777
SELECT + ( - 61 ) AS col2, SUM ( DISTINCT 24 ) AS col2
----
-61
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT + 61 * + 62 + + - COUNT( * ) AS col0
----
3781

skipif mysql # not compatible
query I rowsort label-5778
SELECT + 61 * + 62 + + - COUNT ( * ) AS col0
----
3781

query I rowsort
SELECT + + 54 * - 84 + 26
----
-4510

query I rowsort
SELECT + + 48 + + + 22
----
70

query I rowsort
SELECT ALL + 43 * 86 AS col0
----
3698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5782
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) * - + COUNT( * ) / + SUM( DISTINCT CAST( NULL AS SIGNED ) ) col1, 7 * + 69 AS col0
----
NULL
483

skipif mysql # not compatible
query II rowsort label-5782
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * - + COUNT ( * ) / + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) col1, 7 * + 69 AS col0
----
NULL
483

query I rowsort
SELECT DISTINCT - 35 * + - 67 + 26
----
2371

query I rowsort
SELECT + 83 * ( + 21 )
----
1743

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT ALL + MAX( - - 50 )
----
50

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL + MAX ( - - 50 )
----
50

query I rowsort
SELECT 27 * ( 5 ) * 94 - - 38 AS col2
----
12728

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ALL COALESCE ( - 35, - 59 * - COUNT( * ) * - 78 * 86 ) * 93 * - 48 + - 86 * + 38
----
152972

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL COALESCE ( - 35, - 59 * - COUNT ( * ) * - 78 * 86 ) * 93 * - 48 + - 86 * + 38
----
152972

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT + ( + 90 ) + + 16 + + COUNT( * ) + - 6 + 14 * + - 49 * 11 * - 34 col2
----
256665

skipif mysql # not compatible
query I rowsort label-5788
SELECT + ( + 90 ) + + 16 + + COUNT ( * ) + - 6 + 14 * + - 49 * 11 * - 34 col2
----
256665

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5789
SELECT + COALESCE ( + MIN( 18 ), + 22 * 56 ) AS col0, NULLIF ( - + 73, 58 * + ( - - CAST( + 0 AS DECIMAL ) ) * + 5 + + 87 ) * + NULLIF ( 64, 16 + - 82 * 83 ) AS col2
----
18
-4672

skipif mysql # not compatible
query II rowsort label-5789
SELECT + COALESCE ( + MIN ( 18 ), + 22 * 56 ) AS col0, NULLIF ( - + 73, 58 * + ( - - CAST ( + 0 AS REAL ) ) * + 5 + + 87 ) * + NULLIF ( 64, 16 + - 82 * 83 ) AS col2
----
18
-4672

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT - + CASE - 63 WHEN - + 4 * - 77 THEN NULL WHEN + 41 + + - 44 + + MIN( DISTINCT - 16 ) * COUNT( * ) + + 37 THEN 47 - + + 64 / 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT - + CASE - 63 WHEN - + 4 * - 77 THEN NULL WHEN + 41 + + - 44 + + MIN ( DISTINCT - 16 ) * COUNT ( * ) + + 37 THEN 47 - + + 64 / 5 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT ALL CASE 43 WHEN + 32 * + - MIN( 54 ) - - NULLIF ( + + COUNT( * ), - 65 + + 73 ) THEN - 41 END * MAX( ALL ( 11 ) ) + - 96 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL CASE 43 WHEN + 32 * + - MIN ( 54 ) - - NULLIF ( + + COUNT ( * ), - 65 + + 73 ) THEN - 41 END * MAX ( ALL ( 11 ) ) + - 96 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5792
SELECT ALL - 82 * + 68 - + + 12 * + + 29 + + 78 + - NULLIF ( + 32, - 19 ) DIV + 34 - + + 53 + - MIN( ALL + 34 ) DIV COUNT( * ) * 3 AS col1
----
-6001

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL - 82 * + 68 - + + 12 * + + 29 + + 78 + - NULLIF ( + 32, - 19 ) / + 34 - + + 53 + - MIN ( ALL + 34 ) / COUNT ( * ) * 3 AS col1
----
-6001

onlyif mysql # DIV for integer division: 
query II rowsort label-5793
SELECT DISTINCT + 48 DIV - 28 AS col1, - 6 AS col0
----
-1
-6

skipif mysql # not compatible
query II rowsort label-5793
SELECT DISTINCT + 48 / - 28 AS col1, - 6 AS col0
----
-1
-6

query I rowsort
SELECT - 27 + 93 AS col1
----
66

query I rowsort
SELECT ALL - 43 * 1 col1
----
-43

query I rowsort
SELECT DISTINCT 50 * + ( + NULLIF ( - 32, + + 73 + + 59 ) ) AS col1
----
-1600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5797
SELECT ALL 9 - + MAX( ALL - ( - 62 ) ) + NULLIF ( + 83, 86 - 84 * - 12 ) * - COALESCE ( ( - - 32 ), + - CAST( NULL AS SIGNED ) - ( + COALESCE ( - 99, CAST( 40 AS SIGNED ) - + 50, - CASE 87 WHEN + 55 - - 19 THEN 91 * + 86 + - 2 WHEN 5 THEN NULL END * - 74 - - CAST( 12 + 42 * - 58 AS SIGNED ) ) ) * + ( - 66 DIV + 93 ), 94 + 50 DIV 82 )
----
-2709

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL 9 - + MAX ( ALL - ( - 62 ) ) + NULLIF ( + 83, 86 - 84 * - 12 ) * - COALESCE ( ( - - 32 ), + - CAST ( NULL AS INTEGER ) - ( + COALESCE ( - 99, CAST ( 40 AS INTEGER ) - + 50, - CASE 87 WHEN + 55 - - 19 THEN 91 * + 86 + - 2 WHEN 5 THEN NULL END * - 74 - - CAST ( 12 + 42 * - 58 AS INTEGER ) ) ) * + ( - 66 / + 93 ), 94 + 50 / 82 )
----
-2709

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL - CASE - 68 WHEN - - 22 THEN 9 + + 24 / - ( 38 ) END * + COUNT( * ) - - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL - CASE - 68 WHEN - - 22 THEN 9 + + 24 / - ( 38 ) END * + COUNT ( * ) - - 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5799
SELECT + 91 + 7 + + 96 AS col2, - CAST( + NULLIF ( + - 33, + 28 * - - 38 + + COUNT( * ) - - 6 + + 92 + 71 * 53 * 55 + + 3 * + MIN( 56 ) ) AS SIGNED ) col0
----
194
33

skipif mysql # not compatible
query II rowsort label-5799
SELECT + 91 + 7 + + 96 AS col2, - CAST ( + NULLIF ( + - 33, + 28 * - - 38 + + COUNT ( * ) - - 6 + + 92 + 71 * 53 * 55 + + 3 * + MIN ( 56 ) ) AS INTEGER ) col0
----
194
33

onlyif mysql # DIV for integer division: 
query II rowsort label-5800
SELECT ALL 16 AS col2, + 69 DIV + 99 + + 62 + + 74 * - 48
----
16
-3490

skipif mysql # not compatible
query II rowsort label-5800
SELECT ALL 16 AS col2, + 69 / + 99 + + 62 + + 74 * - 48
----
16
-3490

query I rowsort
SELECT 93 * + 55
----
5115

onlyif mysql # aggregate syntax: 
query II rowsort label-5802
SELECT ( - 82 ) + + + COUNT( * ), + 17 AS col2
----
-81
17

skipif mysql # not compatible
query II rowsort label-5802
SELECT ( - 82 ) + + + COUNT ( * ), + 17 AS col2
----
-81
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT 32 - - - 49 + + - 2 + COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-5803
SELECT 32 - - - 49 + + - 2 + COUNT ( * ) AS col2
----
-18

query II rowsort
SELECT ALL 27 AS col0, - 88 + 52 AS col0
----
27
-36

query I rowsort
SELECT 22 + + 69 AS col1
----
91

query I rowsort
SELECT 31 + - 88 - 58 AS col2
----
-115

query I rowsort
SELECT 9 + - 5
----
4

query I rowsort
SELECT 12 * + ( - ( - - 25 ) ) col0
----
-300

onlyif mysql # aggregate syntax: 
query II rowsort label-5809
SELECT COUNT( * ) * - 30 * - - 54 AS col0, - ( + + 17 ) + + 44
----
-1620
27

skipif mysql # not compatible
query II rowsort label-5809
SELECT COUNT ( * ) * - 30 * - - 54 AS col0, - ( + + 17 ) + + 44
----
-1620
27

query II rowsort
SELECT 48 AS col2, - 69 * + 24
----
48
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT DISTINCT + 36 * ( + ( + COUNT( * ) ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5811
SELECT DISTINCT + 36 * ( + ( + COUNT ( * ) ) ) AS col2
----
36

query I rowsort
SELECT ALL - 18 * + 31 AS col1
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT + COUNT( * ) * - 27 * + 76 * - ( 67 ) - + 69 AS col0
----
137415

skipif mysql # not compatible
query I rowsort label-5813
SELECT + COUNT ( * ) * - 27 * + 76 * - ( 67 ) - + 69 AS col0
----
137415

query I rowsort
SELECT 92 * ( - CASE - 36 WHEN - - 27 / - 17 * + 8 * + 15 - - ( 40 ) + + 51 * - 77 * + NULLIF ( + 30, ( 70 ) ) - - 91 * + 87 THEN - 92 * - 65 ELSE NULL END ) col2
----
NULL

query I rowsort
SELECT ALL - 97 + - 99 * - 88 * - - 95 * - + 57 AS col2
----
-47175577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5816
SELECT ALL CASE 28 WHEN + 98 THEN NULL WHEN - 48 THEN - + 55 + - - 69 - + CAST( - 79 AS SIGNED ) - + COUNT( DISTINCT 86 ) + - ( - - AVG ( DISTINCT 42 ) ) * COUNT( * ) END + ( + 25 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL CASE 28 WHEN + 98 THEN NULL WHEN - 48 THEN - + 55 + - - 69 - + CAST ( - 79 AS INTEGER ) - + COUNT ( DISTINCT 86 ) + - ( - - AVG ( DISTINCT 42 ) ) * COUNT ( * ) END + ( + 25 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5817
SELECT + 78 * ( + + 77 ) + - 64 * ( 32 ) + 57 * - - COUNT( * ) AS col1, 58 AS col0
----
4015
58

skipif mysql # not compatible
query II rowsort label-5817
SELECT + 78 * ( + + 77 ) + - 64 * ( 32 ) + 57 * - - COUNT ( * ) AS col1, 58 AS col0
----
4015
58

query II rowsort
SELECT ALL - 31 + + 2 * - 60, - 69 AS col1
----
-151
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT ALL + + MAX( DISTINCT - 7 ) + 99
----
92

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL + + MAX ( DISTINCT - 7 ) + 99
----
92

query I rowsort
SELECT ( - 29 ) + - 32 - + 60 * - 24
----
1379

onlyif mysql # aggregate syntax: 
query II rowsort label-5821
SELECT + 15 col0, 10 - COUNT( + ( + 78 ) ) AS col0
----
15
9

skipif mysql # not compatible
query II rowsort label-5821
SELECT + 15 col0, 10 - COUNT ( + ( + 78 ) ) AS col0
----
15
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5822
SELECT ALL + 70 DIV + 26 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL + 70 / + 26 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5823
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) * + + COUNT( * ) * - 46 * + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + + COUNT ( * ) * - 46 * + - 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5824
SELECT + 3 * + CAST( NULL AS SIGNED ) + - 53 + - + 60 * - 3 + + NULLIF ( + + 61, - + 71 ) / 5 + + 85 + + - SUM( 0 ) - + - 40 + COALESCE ( 1, + 26 + + COALESCE ( COALESCE ( - 48, ( 86 ) + 88 ), 11 ) * - 90, - 88 ) * 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT + 3 * + CAST ( NULL AS INTEGER ) + - 53 + - + 60 * - 3 + + NULLIF ( + + 61, - + 71 ) / 5 + + 85 + + - SUM ( 0 ) - + - 40 + COALESCE ( 1, + 26 + + COALESCE ( COALESCE ( - 48, ( 86 ) + 88 ), 11 ) * - 90, - 88 ) * 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT ALL - 26 + + COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL - 26 + + COUNT ( * ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5826
SELECT ALL 0 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL 0 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 74 + + - 32
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL - - 90 / 76 * + 22 * - 58 * + CASE 26 WHEN + COUNT( * ) THEN + 78 WHEN + ( - + ( + 30 ) ) THEN - 43 WHEN 12 * + 63 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL - - 90 / 76 * + 22 * - 58 * + CASE 26 WHEN + COUNT ( * ) THEN + 78 WHEN + ( - + ( + 30 ) ) THEN - 43 WHEN 12 * + 63 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 13 + + COALESCE ( - + ( + 56 ), + ( + 35 ) + 69 )
----
-43

query I rowsort
SELECT 20 + - 96 + + + 15 * + + 92 AS col1
----
1304

query I rowsort
SELECT ALL 53 + - 0 AS col1
----
53

query I rowsort
SELECT ALL - 29 * + 55 AS col2
----
-1595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5833
SELECT - COALESCE ( COUNT( * ), - ( CAST( NULL AS SIGNED ) ) - COUNT( * ) + + 83 * 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-5833
SELECT - COALESCE ( COUNT ( * ), - ( CAST ( NULL AS INTEGER ) ) - COUNT ( * ) + + 83 * 86 )
----
-1

query I rowsort
SELECT ALL - CASE - 45 WHEN - + 40 THEN 28 + - - 99 / + ( - + 91 ) WHEN 67 * + 57 THEN - 13 + - - 29 - + 71 WHEN + AVG ( DISTINCT + 72 ) THEN NULL ELSE NULL END * + 12
----
NULL

query II rowsort
SELECT 13 * 84 AS col1, + 35 AS col1
----
1092
35

query II rowsort
SELECT DISTINCT 44 - + 51, 15 AS col2
----
-7
15

query I rowsort
SELECT 32 + 54 * 6
----
356

query I rowsort
SELECT 3 * - 79 AS col0
----
-237

query II rowsort
SELECT 38 * + + 55 * + 76 * - 74 AS col2, 79 - + 40 * 6 AS col0
----
-11754160
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-5840
SELECT ALL - 21 * + COUNT( * ) AS col1, - 45
----
-21
-45

skipif mysql # not compatible
query II rowsort label-5840
SELECT ALL - 21 * + COUNT ( * ) AS col1, - 45
----
-21
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5841
SELECT DISTINCT + CAST( + SUM( - ( + 99 ) ) AS SIGNED ) - + - 92 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT + CAST ( + SUM ( - ( + 99 ) ) AS INTEGER ) - + - 92 AS col0
----
-7

query II rowsort
SELECT ALL - COALESCE ( - 6, + 51, - 80 ) * - 96 + + 76 + + - 66 AS col0, 32
----
-566
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5843
SELECT 28 + 61 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5843
SELECT 28 + 61 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5844
SELECT DISTINCT 61 DIV 80 DIV - + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT 61 / 80 / - + 77 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT DISTINCT - 95 * + COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT - 95 * + COUNT ( * ) AS col0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5846
SELECT 12 - - ( + ( - CAST( NULL AS SIGNED ) ) ) - + 82 + + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5846
SELECT 12 - - ( + ( - CAST ( NULL AS INTEGER ) ) ) - + 82 + + 8 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5847
SELECT 47 / CASE + CAST( - 92 AS SIGNED ) WHEN + + 53 + + - 68 THEN NULL WHEN + 85 THEN + 22 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5847
SELECT 47 / CASE + CAST ( - 92 AS INTEGER ) WHEN + + 53 + + - 68 THEN NULL WHEN + 85 THEN + 22 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5848
SELECT COUNT( * ) * + 29, - 51 col2
----
29
-51

skipif mysql # not compatible
query II rowsort label-5848
SELECT COUNT ( * ) * + 29, - 51 col2
----
29
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5849
SELECT CAST( NULL AS SIGNED ) - - 56 * + 24 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT CAST ( NULL AS INTEGER ) - - 56 * + 24 + - + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL ( - 51 ) * + + 4 + + 14 AS col2, - 66
----
-190
-66

query I rowsort
SELECT ALL 98 * + 94
----
9212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5852
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) * - 46 + - + 52 * + + 6 AS col1
----
-358

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) * - 46 + - + 52 * + + 6 AS col1
----
-358

onlyif mysql # aggregate syntax: 
query II rowsort label-5853
SELECT ALL - + ( + 44 ) col0, + COUNT( * ) * + 59 col0
----
-44
59

skipif mysql # not compatible
query II rowsort label-5853
SELECT ALL - + ( + 44 ) col0, + COUNT ( * ) * + 59 col0
----
-44
59

query I rowsort
SELECT DISTINCT 92 * 44 + - 92 - + ( - 32 ) + - 70 + 58
----
3976

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT DISTINCT + 83 + MAX( ALL - 72 ) + - 44
----
-33

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT + 83 + MAX ( ALL - 72 ) + - 44
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5856
SELECT DISTINCT - + 30 * + CAST( 47 AS SIGNED )
----
-1410

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT - + 30 * + CAST ( 47 AS INTEGER )
----
-1410

query II rowsort
SELECT DISTINCT - 92 + - 32 col0, 91 * 39
----
-124
3549

query I rowsort
SELECT CASE + 28 WHEN + 80 THEN NULL WHEN 3 THEN + - 48 + - + ( - 13 ) END / 46 * 99 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5859
SELECT ALL + 26 DIV 94 * - NULLIF ( + 21, - + 7 ) + + 86 * - + 8 AS col1
----
-688

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL + 26 / 94 * - NULLIF ( + 21, - + 7 ) + + 86 * - + 8 AS col1
----
-688

query I rowsort
SELECT - 3 * 45
----
-135

query I rowsort
SELECT - 47 + - - ( 49 )
----
2

query I rowsort
SELECT + 98 * 22
----
2156

onlyif mysql # DIV for integer division: 
query I rowsort label-5863
SELECT - 85 DIV - - 80 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5863
SELECT - 85 / - - 80 AS col1
----
-1

query II rowsort
SELECT ALL 12 AS col1, 49
----
12
49

query I rowsort
SELECT + 62 - - - NULLIF ( + + 8, + - 77 - 83 + - COALESCE ( - + 11, + NULLIF ( 71, 26 + - + 27 ) ) * + - 90 * + 67 + 45 ) + 79
----
133

query I rowsort
SELECT ALL NULLIF ( + - 39, - - 81 ) AS col0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-5867
SELECT ALL + 26 DIV 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL + 26 / 44 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5868
SELECT - 56 * - MIN( - 5 ) + + CAST( + COALESCE ( + + COUNT( DISTINCT + 20 ), - COUNT( * ) ) AS SIGNED ) * + 24 * + 28 * - 4 AS col0
----
-2968

skipif mysql # not compatible
query I rowsort label-5868
SELECT - 56 * - MIN ( - 5 ) + + CAST ( + COALESCE ( + + COUNT ( DISTINCT + 20 ), - COUNT ( * ) ) AS INTEGER ) * + 24 * + 28 * - 4 AS col0
----
-2968

query II rowsort
SELECT ALL 8 * 5 * - 99 * 76 * + - 77, + 48 AS col0
----
23173920
48

query I rowsort
SELECT + 14 + - 93 * + 72 + COALESCE ( + 9, 54 ) AS col1
----
-6673

query I rowsort
SELECT ALL 20 * + 50 AS col0
----
1000

query II rowsort
SELECT + 31 * + - ( - - 82 ) AS col1, + 13 AS col1
----
-2542
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT + MAX( ALL + 96 ) + - 80 + - - 48 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5873
SELECT + MAX ( ALL + 96 ) + - 80 + - - 48 AS col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5874
SELECT - 2 + - + 4 * 44 DIV + 86 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5874
SELECT - 2 + - + 4 * 44 / + 86 AS col2
----
-4

query I rowsort
SELECT + 78 + + - CASE + 52 WHEN 26 * + 82 * + - 87 THEN 53 * - 60 * - - 92 + 60 END / NULLIF ( + ( - ( + 30 ) ), + 83 ) * 87
----
NULL

query I rowsort
SELECT + 96 * - - 69 * + 62 * - 14
----
-5749632

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT + 1 * MAX( + 81 ) * - 45 - - ( 42 ) * - 0 * - 84
----
-3645

skipif mysql # not compatible
query I rowsort label-5877
SELECT + 1 * MAX ( + 81 ) * - 45 - - ( 42 ) * - 0 * - 84
----
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT DISTINCT COUNT( * ) + - 24 col1
----
-23

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT COUNT ( * ) + - 24 col1
----
-23

query I rowsort
SELECT ALL 83 + - 77 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL 42 + + 30 * - 45 * - COUNT( * ) AS col2
----
1392

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL 42 + + 30 * - 45 * - COUNT ( * ) AS col2
----
1392

query II rowsort
SELECT - NULLIF ( 18, + 89 ) AS col1, - 41
----
-18
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5882
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + COALESCE ( - + COALESCE ( 60, 28 * - 89 + 35 ), + COUNT( * ) ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + COALESCE ( - + COALESCE ( 60, 28 * - 89 + 35 ), + COUNT ( * ) ) * 59
----
NULL

query II rowsort
SELECT + COALESCE ( + 45, + - 2, + + 52 ) + + 15 AS col2, 64 AS col1
----
60
64

query I rowsort
SELECT + - 42 + - - 41 col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5885
SELECT - 7 * - + 99 * - + COUNT( * ) + - 4 + + 7 + + 51 * + - COUNT( * ) / + CAST( NULL AS SIGNED ) + - ( 20 ) * - 84 * 77 * - + COUNT( * ) + 57 / + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-5885
SELECT - 7 * - + 99 * - + COUNT ( * ) + - 4 + + 7 + + 51 * + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - ( 20 ) * - 84 * 77 * - + COUNT ( * ) + 57 / + 23
----
NULL

query I rowsort
SELECT DISTINCT 28 * - 69 + 64 + + 75 AS col0
----
-1793

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT + COUNT( * ) + 32 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-5887
SELECT + COUNT ( * ) + 32 AS col1
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5888
SELECT + + 74 + + ( - + CAST( NULL AS DECIMAL ) ) - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-5888
SELECT + + 74 + + ( - + CAST ( NULL AS REAL ) ) - 94
----
NULL

query I rowsort
SELECT DISTINCT 17 * + - 15
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT - 44 * + - COUNT( * ) + - + 42 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5890
SELECT - 44 * + - COUNT ( * ) + - + 42 AS col0
----
2

query I rowsort
SELECT ALL + - NULLIF ( + 83, + 74 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT - - COUNT( * ) + - 7
----
-6

skipif mysql # not compatible
query I rowsort label-5892
SELECT - - COUNT ( * ) + - 7
----
-6

query I rowsort
SELECT - 1 + - + 84
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT ALL + - COUNT( DISTINCT + 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL + - COUNT ( DISTINCT + 79 )
----
-1

query II rowsort
SELECT + + 29, + 7 + + 83 AS col0
----
29
90

query II rowsort
SELECT + 2, 70 AS col2
----
2
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT COALESCE ( COUNT( * ), 37, - 3, - COUNT( * ) + + 10 + - 41 * + 54 * + 54 )
----
1

skipif mysql # not compatible
query I rowsort label-5897
SELECT COALESCE ( COUNT ( * ), 37, - 3, - COUNT ( * ) + + 10 + - 41 * + 54 * + 54 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT DISTINCT + CASE COUNT( ALL + + 67 ) WHEN + 7 * - 1 THEN NULL WHEN - COUNT( - 27 ) * + 82 + + 50 / + 81 * 76 THEN + - 23 ELSE - 43 END
----
-43

skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT + CASE COUNT ( ALL + + 67 ) WHEN + 7 * - 1 THEN NULL WHEN - COUNT ( - 27 ) * + 82 + + 50 / + 81 * 76 THEN + - 23 ELSE - 43 END
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT DISTINCT COALESCE ( - + NULLIF ( + - 97, + 28 + - 72 ), + 3 * - COUNT( ALL - + 2 ) + - - 66, 37 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT COALESCE ( - + NULLIF ( + - 97, + 28 + - 72 ), + 3 * - COUNT ( ALL - + 2 ) + - - 66, 37 ) AS col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5900
SELECT DISTINCT 16 AS col1, 53 DIV COALESCE ( SUM( ALL + + 47 ), - - 16 ) * 34
----
16
34

skipif mysql # not compatible
query II rowsort label-5900
SELECT DISTINCT 16 AS col1, 53 / COALESCE ( SUM ( ALL + + 47 ), - - 16 ) * 34
----
16
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5901
SELECT - 32 DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5901
SELECT - 32 / 95 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5902
SELECT COUNT( * ), 70 + + CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5902
SELECT COUNT ( * ), 70 + + CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

query I rowsort
SELECT - 78 * - 24 * - + 75 col0
----
-140400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5904
SELECT + CASE 37 WHEN - 84 THEN COUNT( * ) WHEN - + CAST( NULL AS DECIMAL ) * - CAST( - 98 AS SIGNED ) THEN + COUNT( * ) / + 98 ELSE NULL END + - + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT + CASE 37 WHEN - 84 THEN COUNT ( * ) WHEN - + CAST ( NULL AS REAL ) * - CAST ( - 98 AS INTEGER ) THEN + COUNT ( * ) / + 98 ELSE NULL END + - + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5905
SELECT - 79, 33 * + - COUNT( * ) AS col2
----
-79
-33

skipif mysql # not compatible
query II rowsort label-5905
SELECT - 79, 33 * + - COUNT ( * ) AS col2
----
-79
-33

query I rowsort
SELECT ALL 66 + + 78
----
144

query I rowsort
SELECT ALL ( + + CASE WHEN NOT - 21 IS NOT NULL THEN + - 69 + 67 ELSE - 35 + - NULLIF ( 42, + - 86 ) END ) col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5908
SELECT ALL 42 + 21 * - CAST( NULL AS SIGNED ) / - 55 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL 42 + 21 * - CAST ( NULL AS INTEGER ) / - 55 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT - COUNT( * ) * 77
----
-77

skipif mysql # not compatible
query I rowsort label-5909
SELECT - COUNT ( * ) * 77
----
-77

query I rowsort
SELECT ALL 60 * - + 77
----
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT DISTINCT + ( + 11 ) + - 97 * 67 * 80 - + MIN( + 75 )
----
-519984

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT + ( + 11 ) + - 97 * 67 * 80 - + MIN ( + 75 )
----
-519984

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT + COUNT( * ) + + 85
----
86

skipif mysql # not compatible
query I rowsort label-5912
SELECT + COUNT ( * ) + + 85
----
86

query I rowsort
SELECT DISTINCT - 5 * - 13 AS col1
----
65

query I rowsort
SELECT - 77 - + 62 AS col1
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT + - 63 + ( + + MAX( DISTINCT - + 33 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-5915
SELECT + - 63 + ( + + MAX ( DISTINCT - + 33 ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT + + COUNT( + + 67 ) + + 36
----
37

skipif mysql # not compatible
query I rowsort label-5916
SELECT + + COUNT ( + + 67 ) + + 36
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT ALL + SUM( ALL + - 11 ) - - 72
----
61

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL + SUM ( ALL + - 11 ) - - 72
----
61

onlyif mysql # DIV for integer division: 
query II rowsort label-5918
SELECT ALL + NULLIF ( + + CASE + 89 WHEN - 9 THEN + 17 END, + 62 ), - 80 DIV + 7 + + 37 AS col0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-5918
SELECT ALL + NULLIF ( + + CASE + 89 WHEN - 9 THEN + 17 END, + 62 ), - 80 / + 7 + + 37 AS col0
----
NULL
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5919
SELECT + COUNT( * ) * 90 DIV + 67
----
1

skipif mysql # not compatible
query I rowsort label-5919
SELECT + COUNT ( * ) * 90 / + 67
----
1

query I rowsort
SELECT ALL 80 * - 43
----
-3440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5921
SELECT ALL - - CAST( - + 28 AS SIGNED ) / 48 - - CASE 33 WHEN - 55 THEN - 43 WHEN - AVG ( - 93 ) * + COALESCE ( + 84, - + 11 * + - 17 * - 50 ) THEN ( MIN( ALL 20 ) ) * - AVG ( ( 16 ) + + 0 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL - - CAST ( - + 28 AS INTEGER ) / 48 - - CASE 33 WHEN - 55 THEN - 43 WHEN - AVG ( - 93 ) * + COALESCE ( + 84, - + 11 * + - 17 * - 50 ) THEN ( MIN ( ALL 20 ) ) * - AVG ( ( 16 ) + + 0 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5922
SELECT DISTINCT + 31 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT + 31 / + 68
----
0

query II rowsort
SELECT + 23, - 79 + 69 AS col2
----
23
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-5924
SELECT DISTINCT - + COUNT( * ) col1, + ( - 78 )
----
-1
-78

skipif mysql # not compatible
query II rowsort label-5924
SELECT DISTINCT - + COUNT ( * ) col1, + ( - 78 )
----
-1
-78

query I rowsort
SELECT ALL 46 * - 44
----
-2024

query I rowsort
SELECT - 90 * 7
----
-630

onlyif mysql # aggregate syntax: 
query II rowsort label-5927
SELECT DISTINCT - - COUNT( * ) AS col1, 59 * - 17
----
1
-1003

skipif mysql # not compatible
query II rowsort label-5927
SELECT DISTINCT - - COUNT ( * ) AS col1, 59 * - 17
----
1
-1003

onlyif mysql # DIV for integer division: 
query I rowsort label-5928
SELECT ALL + 37 * 88 DIV 68 col1
----
47

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL + 37 * 88 / 68 col1
----
47

query I rowsort
SELECT NULLIF ( - + 12, - 48 * ( - 83 ) ) * - 17
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT DISTINCT + ( + CASE 13 WHEN 70 THEN NULL WHEN 42 THEN + 37 * + COUNT( * ) * + COUNT( * ) END ) + - - 50 * 18 * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT + ( + CASE 13 WHEN 70 THEN NULL WHEN 42 THEN + 37 * + COUNT ( * ) * + COUNT ( * ) END ) + - - 50 * 18 * - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT COALESCE ( + 11, + COUNT( * ) ) * + 17 - + + COUNT( * ) AS col0
----
186

skipif mysql # not compatible
query I rowsort label-5931
SELECT COALESCE ( + 11, + COUNT ( * ) ) * + 17 - + + COUNT ( * ) AS col0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT - 48 * - CASE - - 57 WHEN + SUM( DISTINCT + 54 ) * - + ( SUM( ALL + 38 ) ) THEN NULL ELSE - ( + 49 ) END + 88
----
-2264

skipif mysql # not compatible
query I rowsort label-5932
SELECT - 48 * - CASE - - 57 WHEN + SUM ( DISTINCT + 54 ) * - + ( SUM ( ALL + 38 ) ) THEN NULL ELSE - ( + 49 ) END + 88
----
-2264

query I rowsort
SELECT ALL - ( 53 ) + - - 69 AS col2
----
16

query I rowsort
SELECT 21 + - 47
----
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5935
SELECT 31 + + - ( 73 ) * - - AVG ( - + 21 ) * 65 - + CASE + 2 WHEN + 61 THEN + 22 / + CAST( NULL AS DECIMAL ) + + 99 ELSE NULL END + + + NULLIF ( - 94, - + CASE - 38 WHEN - 89 THEN - 76 + - ( 79 + + 28 * + ( 18 ) ) ELSE NULL END ) / 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5935
SELECT 31 + + - ( 73 ) * - - AVG ( - + 21 ) * 65 - + CASE + 2 WHEN + 61 THEN + 22 / + CAST ( NULL AS REAL ) + + 99 ELSE NULL END + + + NULLIF ( - 94, - + CASE - 38 WHEN - 89 THEN - 76 + - ( 79 + + 28 * + ( 18 ) ) ELSE NULL END ) / 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5936
SELECT 66 * - COUNT( * ) col1, + 54 * + - 91 AS col1
----
-66
-4914

skipif mysql # not compatible
query II rowsort label-5936
SELECT 66 * - COUNT ( * ) col1, + 54 * + - 91 AS col1
----
-66
-4914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5937
SELECT ALL + 91 + + 68 / + CASE COUNT( * ) WHEN 87 + - COUNT( * ) THEN + CAST( NULL AS SIGNED ) WHEN 97 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL + 91 + + 68 / + CASE COUNT ( * ) WHEN 87 + - COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) WHEN 97 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5938
SELECT ALL + 64 + + + 99 DIV - COUNT( * ) - - + 35
----
0

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL + 64 + + + 99 / - COUNT ( * ) - - + 35
----
0

query I rowsort
SELECT 56 + - 93 AS col1
----
-37

query I rowsort
SELECT ALL - 28 + 15 - 9
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-5941
SELECT 46 + - COUNT( * ) col1, - 47 + + 27
----
45
-20

skipif mysql # not compatible
query II rowsort label-5941
SELECT 46 + - COUNT ( * ) col1, - 47 + + 27
----
45
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5942
SELECT + COALESCE ( - 9, + + 80 ) AS col2, 76 DIV + 12 * - NULLIF ( + - COUNT( * ), 46 )
----
-9
6

skipif mysql # not compatible
query II rowsort label-5942
SELECT + COALESCE ( - 9, + + 80 ) AS col2, 76 / + 12 * - NULLIF ( + - COUNT ( * ), 46 )
----
-9
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5943
SELECT ALL - + 73 - + 92 + + COUNT( CASE + 43 WHEN - 14 THEN + 59 * - 69 + - 63 END ) * + - 18 AS col0, + COUNT( ALL - 80 ) AS col2
----
-165
1

skipif mysql # not compatible
query II rowsort label-5943
SELECT ALL - + 73 - + 92 + + COUNT ( CASE + 43 WHEN - 14 THEN + 59 * - 69 + - 63 END ) * + - 18 AS col0, + COUNT ( ALL - 80 ) AS col2
----
-165
1

query I rowsort
SELECT + 97 * + 72 AS col2
----
6984

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT 64 * + 92 * + + 87 + - 78 * - + COALESCE ( COUNT( * ), 15, - - 76 ) * + + 76 / CASE - + 57 WHEN + ( 65 ) * + - 44 - + ( + - 17 ) + - + ( + 9 ) THEN + 41 ELSE NULL END * + CASE 8 WHEN 41 * + 82 THEN 55 WHEN - 47 THEN NULL END - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5945
SELECT 64 * + 92 * + + 87 + - 78 * - + COALESCE ( COUNT ( * ), 15, - - 76 ) * + + 76 / CASE - + 57 WHEN + ( 65 ) * + - 44 - + ( + - 17 ) + - + ( + 9 ) THEN + 41 ELSE NULL END * + CASE 8 WHEN 41 * + 82 THEN 55 WHEN - 47 THEN NULL END - 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5946
SELECT ALL 50 * + - 33 AS col1, CAST( NULL AS SIGNED ) - - COUNT( * ) + - 57 * - ( - + CASE + 95 WHEN 73 + SUM( DISTINCT + + 69 ) + AVG ( - 58 ) THEN NULL WHEN - + 34 THEN NULL WHEN - 52 THEN 19 END ) * 81 * + 8 AS col0
----
-1650
NULL

skipif mysql # not compatible
query II rowsort label-5946
SELECT ALL 50 * + - 33 AS col1, CAST ( NULL AS INTEGER ) - - COUNT ( * ) + - 57 * - ( - + CASE + 95 WHEN 73 + SUM ( DISTINCT + + 69 ) + AVG ( - 58 ) THEN NULL WHEN - + 34 THEN NULL WHEN - 52 THEN 19 END ) * 81 * + 8 AS col0
----
-1650
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT DISTINCT + COUNT( * ) * + 41 + + - 50 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT + COUNT ( * ) * + 41 + + - 50 AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5948
SELECT - COUNT( * ) * + CASE - - 81 WHEN + COUNT( DISTINCT + NULLIF ( - CAST( 96 AS SIGNED ), - 29 ) ) * 28 * + COUNT( * ) * - 26 THEN NULL ELSE + - COUNT( * ) + 88 END AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-5948
SELECT - COUNT ( * ) * + CASE - - 81 WHEN + COUNT ( DISTINCT + NULLIF ( - CAST ( 96 AS INTEGER ), - 29 ) ) * 28 * + COUNT ( * ) * - 26 THEN NULL ELSE + - COUNT ( * ) + 88 END AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ALL + 18 * + SUM( DISTINCT 61 ) * - 26 AS col1
----
-28548

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL + 18 * + SUM ( DISTINCT 61 ) * - 26 AS col1
----
-28548

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT 43 * - - NULLIF ( + 23, - + 34 ) - + COUNT( * )
----
988

skipif mysql # not compatible
query I rowsort label-5950
SELECT 43 * - - NULLIF ( + 23, - + 34 ) - + COUNT ( * )
----
988

query I rowsort
SELECT + - COALESCE ( 68, 72, 2 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT + + SUM( ALL + + 33 ) col0
----
33

skipif mysql # not compatible
query I rowsort label-5952
SELECT + + SUM ( ALL + + 33 ) col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5953
SELECT + NULLIF ( - ( + - CAST( COUNT( * ) AS SIGNED ) ), - COUNT( * ) ) + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-5953
SELECT + NULLIF ( - ( + - CAST ( COUNT ( * ) AS INTEGER ) ), - COUNT ( * ) ) + - 52
----
-51

query I rowsort
SELECT DISTINCT - COALESCE ( - + 56, 43 ) col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5955
SELECT 46 AS col0, 29 * + 60 * COALESCE ( + 55, + CAST( + ( - 78 ) AS SIGNED ) + - + COUNT( * ) + - COUNT( * ) ) - + 58 AS col1
----
46
95642

skipif mysql # not compatible
query II rowsort label-5955
SELECT 46 AS col0, 29 * + 60 * COALESCE ( + 55, + CAST ( + ( - 78 ) AS INTEGER ) + - + COUNT ( * ) + - COUNT ( * ) ) - + 58 AS col1
----
46
95642

onlyif mysql # aggregate syntax: 
query II rowsort label-5956
SELECT + 6, + MAX( - 33 ) AS col1
----
6
-33

skipif mysql # not compatible
query II rowsort label-5956
SELECT + 6, + MAX ( - 33 ) AS col1
----
6
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5957
SELECT 41 + - ( - 53 ) + + 40 - 23 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5957
SELECT 41 + - ( - 53 ) + + 40 - 23 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT ALL 97 + - SUM( ALL + ( - - 93 ) ) * - 69 AS col1
----
6514

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL 97 + - SUM ( ALL + ( - - 93 ) ) * - 69 AS col1
----
6514

query I rowsort
SELECT 12 * 95 AS col2
----
1140

query I rowsort
SELECT 47 + - 82 AS col0
----
-35

query II rowsort
SELECT + 63, + 30 AS col2
----
63
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5962
SELECT 31 DIV - - CASE - 61 WHEN - - 34 THEN NULL ELSE + 40 END
----
0

skipif mysql # not compatible
query I rowsort label-5962
SELECT 31 / - - CASE - 61 WHEN - - 34 THEN NULL ELSE + 40 END
----
0

query I rowsort
SELECT ALL 67 + ( 80 ) + - 37 AS col2
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5964
SELECT 37 * - 13 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5964
SELECT 37 * - 13 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT DISTINCT 96 + SUM( DISTINCT + - 19 ) * + 84 + COUNT( * )
----
-1499

skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT 96 + SUM ( DISTINCT + - 19 ) * + 84 + COUNT ( * )
----
-1499

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT ALL - 32 DIV 7 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL - 32 / 7 AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5967
SELECT 56 DIV 75 * + - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5967
SELECT 56 / 75 * + - 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT ALL COUNT( * ) + - COUNT( * ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + COUNT ( * )
----
1

query II rowsort
SELECT DISTINCT 82 AS col0, 99
----
82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT - SUM( - 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5970
SELECT - SUM ( - 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ( 43 ) * + NULLIF ( - 76, + COUNT( * ) - COUNT( - 52 ) ) col2
----
-3268

skipif mysql # not compatible
query I rowsort label-5971
SELECT ( 43 ) * + NULLIF ( - 76, + COUNT ( * ) - COUNT ( - 52 ) ) col2
----
-3268

query II rowsort
SELECT 7, + 47 * + 13 + - + 69 AS col2
----
7
542

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT - MIN( ALL 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-5973
SELECT - MIN ( ALL 66 )
----
-66

query I rowsort
SELECT 91 * + - 88
----
-8008

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT - SUM( ALL 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-5975
SELECT - SUM ( ALL 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT - COUNT( 6 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5976
SELECT - COUNT ( 6 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5977
SELECT ALL + 83 - + + NULLIF ( - + 79, + MAX( - CAST( - - 63 AS SIGNED ) ) * + MIN( - 17 ) + - - 14 )
----
162

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL + 83 - + + NULLIF ( - + 79, + MAX ( - CAST ( - - 63 AS INTEGER ) ) * + MIN ( - 17 ) + - - 14 )
----
162

query I rowsort
SELECT DISTINCT - 25 * - 51 col1
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL 56 * COUNT( * ) + - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL 56 * COUNT ( * ) + - COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT ALL - - COUNT( * ) * + 25 * + - 67
----
-1675

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - - COUNT ( * ) * + 25 * + - 67
----
-1675

query II rowsort
SELECT - 18 AS col1, ( - 95 ) * - 3
----
-18
285

query I rowsort
SELECT ALL NULLIF ( + 4, - + 4 ) AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5983
SELECT DISTINCT - SUM( DISTINCT 83 ) * 45 * 59 * 85 - + CAST( NULL AS SIGNED ) AS col2, - 75 DIV + + 96 * + - 20 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5983
SELECT DISTINCT - SUM ( DISTINCT 83 ) * 45 * 59 * 85 - + CAST ( NULL AS INTEGER ) AS col2, - 75 / + + 96 * + - 20 AS col1
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5984
SELECT - - CASE + 20 WHEN + + 87 THEN NULL WHEN + 89 THEN - - 67 ELSE NULL END + + CASE + + COUNT( * ) WHEN - 37 THEN NULL ELSE + CAST( + 69 AS SIGNED ) + + 72 END * - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5984
SELECT - - CASE + 20 WHEN + + 87 THEN NULL WHEN + 89 THEN - - 67 ELSE NULL END + + CASE + + COUNT ( * ) WHEN - 37 THEN NULL ELSE + CAST ( + 69 AS INTEGER ) + + 72 END * - 9 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 80 AS col2, 65
----
80
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5986
SELECT - + 92 + + COALESCE ( + - 44, 23 * 43 * - 2 - 59 - + 92 + + CASE + MIN( 3 ) WHEN - 28 * - ( + + 47 ) THEN ( - 41 ) END, 41 + - ( 9 ) + - 10 DIV 23 ) + - 26 DIV 17
----
-137

skipif mysql # not compatible
query I rowsort label-5986
SELECT - + 92 + + COALESCE ( + - 44, 23 * 43 * - 2 - 59 - + 92 + + CASE + MIN ( 3 ) WHEN - 28 * - ( + + 47 ) THEN ( - 41 ) END, 41 + - ( 9 ) + - 10 / 23 ) + - 26 / 17
----
-137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5987
SELECT ALL - 81 DIV - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL - 81 / - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT - ( - SUM( DISTINCT 24 ) ) * + 62 AS col1
----
1488

skipif mysql # not compatible
query I rowsort label-5988
SELECT - ( - SUM ( DISTINCT 24 ) ) * + 62 AS col1
----
1488

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT DISTINCT + MAX( DISTINCT - + 32 ) * - - 22 col0
----
-704

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT + MAX ( DISTINCT - + 32 ) * - - 22 col0
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT DISTINCT + 41 * + NULLIF ( + 17, 56 ) + + + 75 * + COALESCE ( - - 95, 71 + - + COUNT( DISTINCT + + 9 ) ) * - 98 + - MIN( DISTINCT - 18 ) + - 24
----
-697559

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT + 41 * + NULLIF ( + 17, 56 ) + + + 75 * + COALESCE ( - - 95, 71 + - + COUNT ( DISTINCT + + 9 ) ) * - 98 + - MIN ( DISTINCT - 18 ) + - 24
----
-697559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5991
SELECT + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5991
SELECT + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT + 85 * + COALESCE ( - COUNT( DISTINCT ( 62 ) ), + COUNT( * ) ) col0
----
-85

skipif mysql # not compatible
query I rowsort label-5992
SELECT + 85 * + COALESCE ( - COUNT ( DISTINCT ( 62 ) ), + COUNT ( * ) ) col0
----
-85

query I rowsort
SELECT COALESCE ( - 99, - 26 ) AS col2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5994
SELECT ALL 46 * + + 12 + 11 + - 89 + + + CASE + + AVG ( DISTINCT - 83 ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - + 23 / - + 95 * - 44 + - 19 THEN + 83 + - + 69 + - 72 END + + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL 46 * + + 12 + 11 + - 89 + + + CASE + + AVG ( DISTINCT - 83 ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - + 23 / - + 95 * - 44 + - 19 THEN + 83 + - + 69 + - 72 END + + 44 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT MAX( ALL + 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5995
SELECT MAX ( ALL + 95 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT 28 * + - 54 * COUNT( * ) * + - COUNT( * ) + COUNT( * )
----
1513

skipif mysql # not compatible
query I rowsort label-5996
SELECT 28 * + - 54 * COUNT ( * ) * + - COUNT ( * ) + COUNT ( * )
----
1513

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT + 19 * - COUNT( * ) * + ( 25 ) * + - 74 - - + 5
----
35155

skipif mysql # not compatible
query I rowsort label-5997
SELECT + 19 * - COUNT ( * ) * + ( 25 ) * + - 74 - - + 5
----
35155

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT DISTINCT 25 DIV - - 79
----
0

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT 25 / - - 79
----
0

query I rowsort
SELECT - ( - 29 ) * + 83 + - - 12 + - 50 AS col2
----
2369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6000
SELECT + 66 + + + ( ( - - 99 ) ) + CAST( SUM( DISTINCT 68 ) AS SIGNED ) + - 98 + + 39
----
174

skipif mysql # not compatible
query I rowsort label-6000
SELECT + 66 + + + ( ( - - 99 ) ) + CAST ( SUM ( DISTINCT 68 ) AS INTEGER ) + - 98 + + 39
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6001
SELECT ( + + 39 ) * 97 - 51 + + 86 DIV - - 10 + COUNT( * ) DIV 83 * - 36 AS col0
----
3740

skipif mysql # not compatible
query I rowsort label-6001
SELECT ( + + 39 ) * 97 - 51 + + 86 / - - 10 + COUNT ( * ) / 83 * - 36 AS col0
----
3740

query I rowsort
SELECT ALL 77 * - 52 * + 32
----
-128128

onlyif mysql # aggregate syntax: 
query II rowsort label-6003
SELECT + ( - - 79 ) + - SUM( ALL + 69 ), 58 AS col0
----
10
58

skipif mysql # not compatible
query II rowsort label-6003
SELECT + ( - - 79 ) + - SUM ( ALL + 69 ), 58 AS col0
----
10
58

query I rowsort
SELECT + - 82 + + 73
----
-9

query I rowsort
SELECT - ( + 6 ) AS col1
----
-6

query I rowsort
SELECT DISTINCT COALESCE ( - 67, - - 25 * + NULLIF ( - 47, - 45 / ( - 23 ) + + 58 + 52 ) ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT CASE + 46 WHEN - MAX( + ( 83 ) ) THEN - 48 + + 52 WHEN + 16 / + + 8 * - + 31 * 20 * + AVG ( DISTINCT - 98 ) * 26 * + 28 + + + AVG ( - 71 ) + 47 + - 97 * ( - 64 ) THEN 31 * + 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT CASE + 46 WHEN - MAX ( + ( 83 ) ) THEN - 48 + + 52 WHEN + 16 / + + 8 * - + 31 * 20 * + AVG ( DISTINCT - 98 ) * 26 * + 28 + + + AVG ( - 71 ) + 47 + - 97 * ( - 64 ) THEN 31 * + 82 END
----
NULL

query I rowsort
SELECT - 43 + 67 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT DISTINCT - + 51 + - + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT - + 51 + - + COUNT ( * )
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6010
SELECT ALL - - 1 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL - - 1 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 14 - + ( - 25 )
----
39

query I rowsort
SELECT DISTINCT + 8 + 44 * - 30 * + 56
----
-73912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6013
SELECT DISTINCT - CASE + + 84 WHEN 95 THEN CAST( NULL AS SIGNED ) WHEN + CAST( + 17 AS DECIMAL ) - + - COUNT( * ) + - 50 - + - NULLIF ( CASE + + 71 WHEN - ( + + 26 ) THEN 77 - - 96 * - 66 + + 0 END, + + 94 - - 37 / + ( 65 ) ) * 65 THEN - 23 ELSE NULL END + SUM( DISTINCT 59 ) * 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT - CASE + + 84 WHEN 95 THEN CAST ( NULL AS INTEGER ) WHEN + CAST ( + 17 AS REAL ) - + - COUNT ( * ) + - 50 - + - NULLIF ( CASE + + 71 WHEN - ( + + 26 ) THEN 77 - - 96 * - 66 + + 0 END, + + 94 - - 37 / + ( 65 ) ) * 65 THEN - 23 ELSE NULL END + SUM ( DISTINCT 59 ) * 39 col0
----
NULL

query II rowsort
SELECT ( - 34 ), - ( + 90 ) AS col0
----
-34
-90

query I rowsort
SELECT - 54 - - 22 - - 7 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT DISTINCT + MAX( DISTINCT - 75 ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT + MAX ( DISTINCT - 75 ) col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6017
SELECT - 36 DIV + - 5 + + - 41 AS col2, 57 + - ( - COUNT( + 17 ) ) AS col1
----
-34
58

skipif mysql # not compatible
query II rowsort label-6017
SELECT - 36 / + - 5 + + - 41 AS col2, 57 + - ( - COUNT ( + 17 ) ) AS col1
----
-34
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6018
SELECT + CAST( NULL AS DECIMAL ) * + + 49 / - COUNT( * ) * + + 52 * - MAX( DISTINCT - - 11 ) - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT + CAST ( NULL AS REAL ) * + + 49 / - COUNT ( * ) * + + 52 * - MAX ( DISTINCT - - 11 ) - 65
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6019
SELECT ALL + COUNT( * ) DIV + COUNT( * ) + - MAX( DISTINCT + 80 ) DIV - - 6 + + + 24 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL + COUNT ( * ) / + COUNT ( * ) + - MAX ( DISTINCT + 80 ) / - - 6 + + + 24 AS col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6020
SELECT DISTINCT + 50 DIV - + 73 * - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT + 50 / - + 73 * - 86 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT DISTINCT - 66 DIV + - 21 + + + 39 * + + 57 AS col2
----
2226

skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT - 66 / + - 21 + + + 39 * + + 57 AS col2
----
2226

query I rowsort
SELECT - 32 * + 25 AS col2
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL + 32 * - + COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL + 32 * - + COUNT ( * ) AS col2
----
-32

query I rowsort
SELECT 32 * + + 95 + + 19
----
3059

query II rowsort
SELECT ALL 37 * - 96 * - ( ( - 27 ) ) AS col2, NULLIF ( + 92, - 93 )
----
-95904
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6026
SELECT + 97 DIV 86 * - 79 * 12 + - SUM( - 4 )
----
-944

skipif mysql # not compatible
query I rowsort label-6026
SELECT + 97 / 86 * - 79 * 12 + - SUM ( - 4 )
----
-944

query I rowsort
SELECT ALL + 32 * 3 AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6028
SELECT + 96 + + 97 * + COUNT( - 95 ) + - COALESCE ( + ( + - CAST( NULL AS SIGNED ) ), - 93 + - - COUNT( * ) + + 78 + - ( - COUNT( * ) ) ) * + + NULLIF ( + + 12, 98 ) * 61 AS col0
----
9709

skipif mysql # not compatible
query I rowsort label-6028
SELECT + 96 + + 97 * + COUNT ( - 95 ) + - COALESCE ( + ( + - CAST ( NULL AS INTEGER ) ), - 93 + - - COUNT ( * ) + + 78 + - ( - COUNT ( * ) ) ) * + + NULLIF ( + + 12, 98 ) * 61 AS col0
----
9709

query I rowsort
SELECT ALL - 60 * - 55
----
3300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6030
SELECT + CAST( 56 AS SIGNED ) + - + 60 * - 87 + - CASE + 1 WHEN 11 THEN - 5 * - 80 WHEN COALESCE ( + - COALESCE ( - 34, - 50 + 58 + - 60 ), + 51 - AVG ( DISTINCT - 31 ) * + 48 ) * 32 + - CASE 33 WHEN - 5 + 87 THEN 63 + - 47 * - MIN( ALL CASE 62 WHEN 21 / 12 THEN 3 / - 36 ELSE - 93 END * 0 - 30 ) WHEN + ( 96 ) THEN 90 / COUNT( * ) + + 56 * 21 ELSE - 50 * SUM( - 23 ) END THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6030
SELECT + CAST ( 56 AS INTEGER ) + - + 60 * - 87 + - CASE + 1 WHEN 11 THEN - 5 * - 80 WHEN COALESCE ( + - COALESCE ( - 34, - 50 + 58 + - 60 ), + 51 - AVG ( DISTINCT - 31 ) * + 48 ) * 32 + - CASE 33 WHEN - 5 + 87 THEN 63 + - 47 * - MIN ( ALL CASE 62 WHEN 21 / 12 THEN 3 / - 36 ELSE - 93 END * 0 - 30 ) WHEN + ( 96 ) THEN 90 / COUNT ( * ) + + 56 * 21 ELSE - 50 * SUM ( - 23 ) END THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT + SUM( DISTINCT - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-6031
SELECT + SUM ( DISTINCT - 88 )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6032
SELECT ALL - 69 * - - COALESCE ( - - 47, + 80 * + MAX( DISTINCT - 53 ) - + CASE 71 WHEN SUM( + + 44 ) THEN NULL WHEN + + 18 THEN NULL WHEN 67 * - COUNT( NULLIF ( - 40, - 24 ) ) + COUNT( * ) + 82 * + 19 + 20 / - 32 THEN 87 ELSE 10 * CAST( 86 * 97 AS SIGNED ) END )
----
-3243

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL - 69 * - - COALESCE ( - - 47, + 80 * + MAX ( DISTINCT - 53 ) - + CASE 71 WHEN SUM ( + + 44 ) THEN NULL WHEN + + 18 THEN NULL WHEN 67 * - COUNT ( NULLIF ( - 40, - 24 ) ) + COUNT ( * ) + 82 * + 19 + 20 / - 32 THEN 87 ELSE 10 * CAST ( 86 * 97 AS INTEGER ) END )
----
-3243

query I rowsort
SELECT DISTINCT + ( - + COALESCE ( + 83, + + 11, + + 89 * 54 ) )
----
-83

query I rowsort
SELECT COALESCE ( + - NULLIF ( + 97, - + 34 * 83 ), - + 5 )
----
-97

query I rowsort
SELECT + ( - - 1 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6036
SELECT ALL 17 * + COUNT( ALL - + 76 ) AS col0, - CASE + - 64 WHEN - 54 THEN NULL ELSE 70 END + + - 77 * + - 24
----
17
1778

skipif mysql # not compatible
query II rowsort label-6036
SELECT ALL 17 * + COUNT ( ALL - + 76 ) AS col0, - CASE + - 64 WHEN - 54 THEN NULL ELSE 70 END + + - 77 * + - 24
----
17
1778

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT - SUM( + 84 ) * - + 55
----
4620

skipif mysql # not compatible
query I rowsort label-6037
SELECT - SUM ( + 84 ) * - + 55
----
4620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6038
SELECT - - CAST( - 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-6038
SELECT - - CAST ( - 36 AS INTEGER )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT 49 - - + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-6039
SELECT 49 - - + COUNT ( * )
----
50

query I rowsort
SELECT - NULLIF ( 48, + 98 / - - 94 * - 98 ) - + 43 * - + ( ( + 44 ) )
----
1844

query I rowsort
SELECT + 53 * 27 AS col2
----
1431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6042
SELECT ALL - 28 AS col0, CAST( - COUNT( * ) AS SIGNED ) * + 20 + + ( + 99 ) * + 48 - NULLIF ( 75, - + 99 + 84 + - 39 - + 13 * + 98 - COUNT( * ) * + 54 ) * COUNT( * ) - + 49 col1, - 52 AS col2
----
-28
4608
-52

skipif mysql # not compatible
query III rowsort label-6042
SELECT ALL - 28 AS col0, CAST ( - COUNT ( * ) AS INTEGER ) * + 20 + + ( + 99 ) * + 48 - NULLIF ( 75, - + 99 + 84 + - 39 - + 13 * + 98 - COUNT ( * ) * + 54 ) * COUNT ( * ) - + 49 col1, - 52 AS col2
----
-28
4608
-52

query I rowsort
SELECT DISTINCT 1 + - - 83 - 77
----
7

query I rowsort
SELECT DISTINCT + 23 + - 71 - - + 63
----
15

query I rowsort
SELECT ALL 19 + + 54 + - ( 20 ) + - + 77
----
-24

query I rowsort
SELECT ALL - 79 * + 6
----
-474

query I rowsort
SELECT DISTINCT + 21 + - - 95 AS col1
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-6048
SELECT ALL 90 + + - CASE 66 WHEN - 53 THEN - - 26 / - + 54 - + 68 + CASE COUNT( * ) WHEN 18 / - + 74 THEN NULL WHEN - 63 THEN 80 END END, 18 AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-6048
SELECT ALL 90 + + - CASE 66 WHEN - 53 THEN - - 26 / - + 54 - + 68 + CASE COUNT ( * ) WHEN 18 / - + 74 THEN NULL WHEN - 63 THEN 80 END END, 18 AS col0
----
NULL
18

query I rowsort
SELECT + ( - - 1 ) * + - 13 + + 17
----
4

query II rowsort
SELECT DISTINCT 99 AS col0, - 64
----
99
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-6051
SELECT ALL 68 - + 3 + + COALESCE ( - 61, + 18 + + 11 DIV - 9 - - 67, - + 50 ) * + + ( 88 ) col1, - 37
----
-5303
-37

skipif mysql # not compatible
query II rowsort label-6051
SELECT ALL 68 - + 3 + + COALESCE ( - 61, + 18 + + 11 / - 9 - - 67, - + 50 ) * + + ( 88 ) col1, - 37
----
-5303
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-6052
SELECT + 6, COUNT( * ) * ( + + 45 ) col2
----
6
45

skipif mysql # not compatible
query II rowsort label-6052
SELECT + 6, COUNT ( * ) * ( + + 45 ) col2
----
6
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT CASE + 6 WHEN - - SUM( 18 ) THEN - 94 + + 10 ELSE + + 17 * + - 60 + - 81 END * + - 27 AS col1
----
29727

skipif mysql # not compatible
query I rowsort label-6053
SELECT CASE + 6 WHEN - - SUM ( 18 ) THEN - 94 + + 10 ELSE + + 17 * + - 60 + - 81 END * + - 27 AS col1
----
29727

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT DISTINCT - NULLIF ( + + 51, + MAX( 0 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT - NULLIF ( + + 51, + MAX ( 0 ) )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-6055
SELECT ALL - 31 AS col2, + COUNT( * )
----
-31
1

skipif mysql # not compatible
query II rowsort label-6055
SELECT ALL - 31 AS col2, + COUNT ( * )
----
-31
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6056
SELECT 64 DIV - COUNT( * ) - 84 * + + 11
----
-988

skipif mysql # not compatible
query I rowsort label-6056
SELECT 64 / - COUNT ( * ) - 84 * + + 11
----
-988

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT COALESCE ( - COUNT( * ), + 84 * - 37 + - 83 + - SUM( - ( + 50 ) ) ) * - 13 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6057
SELECT COALESCE ( - COUNT ( * ), + 84 * - 37 + - 83 + - SUM ( - ( + 50 ) ) ) * - 13 AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6058
SELECT 76 * + 25 * - CASE + 81 WHEN + - 64 THEN + 42 + + 6 + + - 81 * + NULLIF ( + CAST( - 7 AS DECIMAL ), + 8 ) + + 72 + - ( + NULLIF ( 34, 33 / - 70 * COUNT( * ) ) ) * - - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT 76 * + 25 * - CASE + 81 WHEN + - 64 THEN + 42 + + 6 + + - 81 * + NULLIF ( + CAST ( - 7 AS REAL ), + 8 ) + + 72 + - ( + NULLIF ( 34, 33 / - 70 * COUNT ( * ) ) ) * - - COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ( + + 30 ) - - 50 AS col0
----
80

query II rowsort
SELECT 23, - 99 * - 19 AS col0
----
23
1881

onlyif mysql # aggregate syntax: 
query II rowsort label-6061
SELECT 94, ( + MIN( 40 ) ) AS col2
----
94
40

skipif mysql # not compatible
query II rowsort label-6061
SELECT 94, ( + MIN ( 40 ) ) AS col2
----
94
40

query II rowsort
SELECT 99, - 60 AS col0
----
99
-60

query I rowsort
SELECT 66 * 88 AS col0
----
5808

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6064
SELECT ALL + 1 DIV + + 10, + 49 * 76 + - COUNT( * ) + + SUM( DISTINCT 51 ) AS col0
----
0
3774

skipif mysql # not compatible
query II rowsort label-6064
SELECT ALL + 1 / + + 10, + 49 * 76 + - COUNT ( * ) + + SUM ( DISTINCT 51 ) AS col0
----
0
3774

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT + COUNT( * ) * + COUNT( * ) - + ( - 26 ) col1
----
27

skipif mysql # not compatible
query I rowsort label-6065
SELECT + COUNT ( * ) * + COUNT ( * ) - + ( - 26 ) col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT COUNT( * ) * 63 * + - NULLIF ( 55, + 91 ) - + + ( - - COUNT( * ) ) * + 73
----
-3538

skipif mysql # not compatible
query I rowsort label-6066
SELECT COUNT ( * ) * 63 * + - NULLIF ( 55, + 91 ) - + + ( - - COUNT ( * ) ) * + 73
----
-3538

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT ALL - MIN( + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL - MIN ( + 98 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-6068
SELECT 91 * 70 DIV 75 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-6068
SELECT 91 * 70 / 75 AS col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6069
SELECT ALL + 65 * 5 AS col2, + 62 / + NULLIF ( - ( + COALESCE ( - 66, + AVG ( - 99 ) / + 85 * - 97 + - 43 - - NULLIF ( 78, NULLIF ( 16, + MIN( 15 ) ) * - COALESCE ( - + 43, + 97 / COUNT( DISTINCT 9 + - 67 ) + 67, 97 + - 51 ) + + 82 ) - COUNT( * ) * 15, + 12 + 42, + MIN( ALL 20 ) ) ), 91 ) + + 83 * - CASE - MAX( ALL + 65 ) * 56 WHEN 37 THEN + 44 * - COUNT( * ) ELSE NULL END AS col2
----
325
NULL

skipif mysql # not compatible
query II rowsort label-6069
SELECT ALL + 65 * 5 AS col2, + 62 / + NULLIF ( - ( + COALESCE ( - 66, + AVG ( - 99 ) / + 85 * - 97 + - 43 - - NULLIF ( 78, NULLIF ( 16, + MIN ( 15 ) ) * - COALESCE ( - + 43, + 97 / COUNT ( DISTINCT 9 + - 67 ) + 67, 97 + - 51 ) + + 82 ) - COUNT ( * ) * 15, + 12 + 42, + MIN ( ALL 20 ) ) ), 91 ) + + 83 * - CASE - MAX ( ALL + 65 ) * 56 WHEN 37 THEN + 44 * - COUNT ( * ) ELSE NULL END AS col2
----
325
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6070
SELECT 97 DIV + 12 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6070
SELECT 97 / + 12 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6071
SELECT ALL - COUNT( * ) + 91 AS col0, + 67 + - - ( 99 ) + 16
----
90
182

skipif mysql # not compatible
query II rowsort label-6071
SELECT ALL - COUNT ( * ) + 91 AS col0, + 67 + - - ( 99 ) + 16
----
90
182

onlyif mysql # DIV for integer division: 
query I rowsort label-6072
SELECT 76 DIV + + 89 + 2 + - - 9 * + 54
----
488

skipif mysql # not compatible
query I rowsort label-6072
SELECT 76 / + + 89 + 2 + - - 9 * + 54
----
488

query I rowsort
SELECT 64 + 62
----
126

query I rowsort
SELECT + 41 + 69 * - - 64 AS col1
----
4457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6075
SELECT - - COUNT( * ) * 54 * + ( 60 ) + 59 + - - 54 * + 63 + 33 - + 71 / + 56 + 51 + + - 33 * CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) - + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT - - COUNT ( * ) * 54 * + ( 60 ) + 59 + - - 54 * + 63 + 33 - + 71 / + 56 + 51 + + - 33 * CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) - + 4 AS col0
----
NULL

query I rowsort
SELECT 56 + + 1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6077
SELECT ALL + 19 + CAST( NULL AS SIGNED ) + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL + 19 + CAST ( NULL AS INTEGER ) + 60
----
NULL

query I rowsort
SELECT DISTINCT + 92 + + 80 AS col1
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6079
SELECT ALL 65 AS col1, + CAST( - 16 AS SIGNED ) * 34 AS col2
----
65
-544

skipif mysql # not compatible
query II rowsort label-6079
SELECT ALL 65 AS col1, + CAST ( - 16 AS INTEGER ) * 34 AS col2
----
65
-544

query I rowsort
SELECT 25 + + 65 + 79 + 47
----
216

query I rowsort
SELECT 12 * + 88 * + 99 AS col1
----
104544

onlyif mysql # aggregate syntax: 
query II rowsort label-6082
SELECT COUNT( * ) + 52 + + 38 + - COUNT( + 22 ) * 33 AS col0, + 87 + + 40 * + 55 AS col1
----
58
2287

skipif mysql # not compatible
query II rowsort label-6082
SELECT COUNT ( * ) + 52 + + 38 + - COUNT ( + 22 ) * 33 AS col0, + 87 + + 40 * + 55 AS col1
----
58
2287

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT - - NULLIF ( + 17, MIN( ALL + 95 ) * - 82 + - + 54 - - 36 + - 88 + + + 80 * - 39 + - 96 * COUNT( * ) * - - 64 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-6083
SELECT - - NULLIF ( + 17, MIN ( ALL + 95 ) * - 82 + - + 54 - - 36 + - 88 + + + 80 * - 39 + - 96 * COUNT ( * ) * - - 64 ) AS col0
----
17

query I rowsort
SELECT ALL - ( - - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-6085
SELECT - + 89 AS col2, COUNT( * )
----
-89
1

skipif mysql # not compatible
query II rowsort label-6085
SELECT - + 89 AS col2, COUNT ( * )
----
-89
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6086
SELECT 4 DIV - 49 * + 45 * ( - 28 ) * - COUNT( 62 )
----
0

skipif mysql # not compatible
query I rowsort label-6086
SELECT 4 / - 49 * + 45 * ( - 28 ) * - COUNT ( 62 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6087
SELECT + 41 + COUNT( * ) DIV 59 + - 64 * - - 6 col2
----
-343

skipif mysql # not compatible
query I rowsort label-6087
SELECT + 41 + COUNT ( * ) / 59 + - 64 * - - 6 col2
----
-343

query I rowsort
SELECT ALL 19 * - - 94 AS col1
----
1786

query I rowsort
SELECT ALL + 18 - - + 19
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT COUNT( * ) + 85 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6090
SELECT COUNT ( * ) + 85 AS col1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6091
SELECT 40 DIV + + 29 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6091
SELECT 40 / + + 29 AS col0
----
1

query I rowsort
SELECT 76 * - + 96
----
-7296

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6093
SELECT 47 + - 7 + - 35 + - 8 + - CAST( NULL AS SIGNED ) * + ( + - 12 ), - 53 AS col0
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-6093
SELECT 47 + - 7 + - 35 + - 8 + - CAST ( NULL AS INTEGER ) * + ( + - 12 ), - 53 AS col0
----
NULL
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6094
SELECT 82 - - - 12 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT 82 - - - 12 + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6095
SELECT 72 + + 36, 56 + 40 + COUNT( * ) + + 41 AS col2
----
108
138

skipif mysql # not compatible
query II rowsort label-6095
SELECT 72 + + 36, 56 + 40 + COUNT ( * ) + + 41 AS col2
----
108
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT DISTINCT + 97 * - SUM( + 26 ) AS col0
----
-2522

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT + 97 * - SUM ( + 26 ) AS col0
----
-2522

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT 6 * - COUNT( * ) + 16 col2
----
10

skipif mysql # not compatible
query I rowsort label-6097
SELECT 6 * - COUNT ( * ) + 16 col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT + ( + + 56 ) * + + 82 * + ( + MIN( ALL 33 ) )
----
151536

skipif mysql # not compatible
query I rowsort label-6098
SELECT + ( + + 56 ) * + + 82 * + ( + MIN ( ALL 33 ) )
----
151536

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT - 89 + + + COUNT( + COALESCE ( + 28, - 30 * - 35 - 43 ) ) + 66 * + - 49 AS col1
----
-3322

skipif mysql # not compatible
query I rowsort label-6099
SELECT - 89 + + + COUNT ( + COALESCE ( + 28, - 30 * - 35 - 43 ) ) + 66 * + - 49 AS col1
----
-3322

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT COUNT( ALL + + 51 )
----
1

skipif mysql # not compatible
query I rowsort label-6100
SELECT COUNT ( ALL + + 51 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT DISTINCT COUNT( * ) * - - 12 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT COUNT ( * ) * - - 12 AS col1
----
12

query I rowsort
SELECT + - 9 * - 12 AS col2
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6103
SELECT 3 * + COALESCE ( - 91, - - 57, - - 52 + - MIN( - - 76 ) ) + 11 AS col1, ( + + 75 ) DIV + COALESCE ( - 53, - + 3 ) AS col2
----
-262
-1

skipif mysql # not compatible
query II rowsort label-6103
SELECT 3 * + COALESCE ( - 91, - - 57, - - 52 + - MIN ( - - 76 ) ) + 11 AS col1, ( + + 75 ) / + COALESCE ( - 53, - + 3 ) AS col2
----
-262
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT DISTINCT + + 94 * COUNT( * ) * - 20 + + - 7 - + - 81 + 3 AS col0
----
-1803

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT + + 94 * COUNT ( * ) * - 20 + + - 7 - + - 81 + 3 AS col0
----
-1803

query I rowsort
SELECT ALL - - 28 * + 82 + + + 6
----
2302

onlyif mysql # DIV for integer division: 
query I rowsort label-6106
SELECT DISTINCT - 65 DIV 57 + - 53
----
-54

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT - 65 / 57 + - 53
----
-54

query II rowsort
SELECT - 62 * + 95 col2, 8
----
-5890
8

query I rowsort
SELECT ALL - + 94 * - ( 0 ) * + - 31 + 67
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6109
SELECT DISTINCT + COUNT( * ) + - 54 DIV 73
----
1

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT + COUNT ( * ) + - 54 / 73
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT ALL + AVG ( ALL + CAST( NULL AS SIGNED ) ) + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL + AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - 65
----
NULL

query II rowsort
SELECT ( - 21 ) AS col0, - 26 + - 44 AS col0
----
-21
-70

query I rowsort
SELECT + + 82 - - + 68 AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT ALL - + COALESCE ( + COUNT( * ), + 59 ) * + 84 + - + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL - + COALESCE ( + COUNT ( * ), + 59 ) * + 84 + - + COUNT ( * )
----
-85

query I rowsort
SELECT - - 7 - - 61 + + - 52 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6115
SELECT DISTINCT + - CAST( 35 AS SIGNED ) - - CAST( NULL AS SIGNED ) + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT DISTINCT + - CAST ( 35 AS INTEGER ) - - CAST ( NULL AS INTEGER ) + 30
----
NULL

query I rowsort
SELECT DISTINCT - 69 * + 63
----
-4347

query I rowsort
SELECT ALL + 47 - + + 45 AS col2
----
2

query I rowsort
SELECT - 27 + 35
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT - 97 * - COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6119
SELECT - 97 * - COUNT ( * ) AS col0
----
97

query I rowsort
SELECT - 3 * + 71
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT + CASE COUNT( * ) WHEN 7 THEN NULL WHEN - 40 THEN + 73 / + COUNT( * ) END + - 70 + MIN( - + 57 ) / - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6121
SELECT + CASE COUNT ( * ) WHEN 7 THEN NULL WHEN - 40 THEN + 73 / + COUNT ( * ) END + - 70 + MIN ( - + 57 ) / - 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6122
SELECT + 55 DIV 41 col0
----
1

skipif mysql # not compatible
query I rowsort label-6122
SELECT + 55 / 41 col0
----
1

query I rowsort
SELECT - 67 * - 13 AS col0
----
871

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT + 73 + + 30 + + + 36 + + - COUNT( + 90 ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-6124
SELECT + 73 + + 30 + + + 36 + + - COUNT ( + 90 ) AS col0
----
138

query I rowsort
SELECT ALL 78 * 97
----
7566

query I rowsort
SELECT ALL 55 + + + 45
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT - SUM( ALL 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-6127
SELECT - SUM ( ALL 57 )
----
-57

query I rowsort
SELECT ALL - 10 * CASE - - 44 WHEN 5 + - - 82 + + 15 - - - ( 59 ) * + 80 THEN 59 ELSE NULL END * + 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT DISTINCT + 56 + COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT + 56 + COUNT ( * ) AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT DISTINCT + 3 DIV + + ( - 33 ) + + 43 * - 78 * - + ( - 42 ) col1
----
-140868

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT + 3 / + + ( - 33 ) + + 43 * - 78 * - + ( - 42 ) col1
----
-140868

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6131
SELECT + 89 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT + 89 / + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + ( - - 4 ) col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6133
SELECT ALL 97 DIV 98 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL 97 / 98 + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6134
SELECT - CAST( 27 AS SIGNED ) + NULLIF ( + 64, - COUNT( + 23 ) + + 74 )
----
37

skipif mysql # not compatible
query I rowsort label-6134
SELECT - CAST ( 27 AS INTEGER ) + NULLIF ( + 64, - COUNT ( + 23 ) + + 74 )
----
37

query I rowsort
SELECT ( - + 79 ) AS col1
----
-79

query I rowsort
SELECT ( + COALESCE ( + 26, - + 17 ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT ALL + 43 * 82 + COUNT( * )
----
3527

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL + 43 * 82 + COUNT ( * )
----
3527

query II rowsort
SELECT + 4 AS col1, + 22 * 85 - - 37 AS col1
----
4
1907

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT - 59 * - - 59 - + + 53 - 47 + + COUNT( * )
----
-3580

skipif mysql # not compatible
query I rowsort label-6139
SELECT - 59 * - - 59 - + + 53 - 47 + + COUNT ( * )
----
-3580

query II rowsort
SELECT 27 AS col2, - 3 * + 42 - 45 + - - 91 + - 77 AS col0
----
27
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6141
SELECT DISTINCT - 50 * - CAST( NULL AS SIGNED ) + - + NULLIF ( - - COUNT( 55 ), 78 ) * + + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT - 50 * - CAST ( NULL AS INTEGER ) + - + NULLIF ( - - COUNT ( 55 ), 78 ) * + + 17 AS col2
----
NULL

query I rowsort
SELECT ALL - ( + + 40 ) * 38 - - 73 AS col2
----
-1447

onlyif mysql # aggregate syntax: 
query II rowsort label-6143
SELECT + + 86 * + COUNT( - 41 ), 88 * - 90 * 60 AS col0
----
86
-475200

skipif mysql # not compatible
query II rowsort label-6143
SELECT + + 86 * + COUNT ( - 41 ), 88 * - 90 * 60 AS col0
----
86
-475200

query II rowsort
SELECT 8 AS col2, - ( 52 ) col0
----
8
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-6145
SELECT COUNT( * ), + MIN( - - 96 ) AS col1
----
1
96

skipif mysql # not compatible
query II rowsort label-6145
SELECT COUNT ( * ), + MIN ( - - 96 ) AS col1
----
1
96

query II rowsort
SELECT ALL + 36 AS col0, 18
----
36
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6147
SELECT ALL + COUNT( * ) * + 97 * - + 50, + 31 AS col1
----
-4850
31

skipif mysql # not compatible
query II rowsort label-6147
SELECT ALL + COUNT ( * ) * + 97 * - + 50, + 31 AS col1
----
-4850
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6148
SELECT + CAST( NULL AS SIGNED ) + + CAST( ( + - 85 ) AS SIGNED ) + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT + CAST ( NULL AS INTEGER ) + + CAST ( ( + - 85 ) AS INTEGER ) + + 15
----
NULL

query I rowsort
SELECT + 35 * - 6 * + 10 + + + 55
----
-2045

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT + 40 + + COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6150
SELECT + 40 + + COUNT ( * ) AS col0
----
41

query I rowsort
SELECT DISTINCT + 98 * 38 AS col1
----
3724

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT ALL - NULLIF ( - + 65, 7 * - NULLIF ( - ( + 77 ), 22 ) * 46 + - 34 * COUNT( * ) * - - COUNT( * ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL - NULLIF ( - + 65, 7 * - NULLIF ( - ( + 77 ), 22 ) * 46 + - 34 * COUNT ( * ) * - - COUNT ( * ) ) AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-6153
SELECT ALL - 59 DIV - + 96 + - NULLIF ( + - 91, 72 )
----
91

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL - 59 / - + 96 + - NULLIF ( + - 91, 72 )
----
91

query II rowsort
SELECT - 96 col2, - 40
----
-96
-40

query I rowsort
SELECT - - 21 + - + 54
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6156
SELECT ALL - COUNT( * ) DIV 21 + + 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL - COUNT ( * ) / 21 + + 95 AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6157
SELECT - CAST( + 55 AS SIGNED ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-6157
SELECT - CAST ( + 55 AS INTEGER ) col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT - 79 * - COUNT( 42 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-6158
SELECT - 79 * - COUNT ( 42 ) AS col1
----
79

query I rowsort
SELECT + 91 + + 3 + + 79 * + 28
----
2306

onlyif mysql # aggregate syntax: 
query II rowsort label-6160
SELECT - COUNT( ALL + 8 ) AS col0, + 81 * + 98 col1
----
-1
7938

skipif mysql # not compatible
query II rowsort label-6160
SELECT - COUNT ( ALL + 8 ) AS col0, + 81 * + 98 col1
----
-1
7938

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT - COUNT( ALL + + ( 36 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6161
SELECT - COUNT ( ALL + + ( 36 ) )
----
-1

query I rowsort
SELECT - 32 + + + 64 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT - 43 * + 18 * - + NULLIF ( + COALESCE ( + 41, - MAX( DISTINCT + 11 ), - 94, ( - - 18 ) * 96 + - 38 - - 61 * - ( 74 ) ), COUNT( * ) + + - COUNT( * ) + - 63 * COUNT( * ) * 5 * - + NULLIF ( + + COALESCE ( + 9, - 56 * + 21, - 28 * 4 + - SUM( DISTINCT - 16 ) ), - 16 ) * + MAX( DISTINCT + 59 ) )
----
31734

skipif mysql # not compatible
query I rowsort label-6163
SELECT - 43 * + 18 * - + NULLIF ( + COALESCE ( + 41, - MAX ( DISTINCT + 11 ), - 94, ( - - 18 ) * 96 + - 38 - - 61 * - ( 74 ) ), COUNT ( * ) + + - COUNT ( * ) + - 63 * COUNT ( * ) * 5 * - + NULLIF ( + + COALESCE ( + 9, - 56 * + 21, - 28 * 4 + - SUM ( DISTINCT - 16 ) ), - 16 ) * + MAX ( DISTINCT + 59 ) )
----
31734

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL 49 + - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL 49 + - COUNT ( * )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6165
SELECT ALL + 42 + - + 85 DIV + 51
----
41

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL + 42 + - + 85 / + 51
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6166
SELECT DISTINCT + 69 + + - CAST( NULL AS SIGNED ) + - - ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT + 69 + + - CAST ( NULL AS INTEGER ) + - - ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT 91 + + 87
----
178

query I rowsort
SELECT 72 + 44
----
116

query I rowsort
SELECT 81 + + 89 * + - 15 AS col0
----
-1254

query I rowsort
SELECT 17 - NULLIF ( ( - - 44 ), 54 * - - 40 )
----
-27

query I rowsort
SELECT - 55 * 33 + + 20
----
-1795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6172
SELECT ALL + COUNT( * ) + - + 86 + 1 * 85 DIV + 25
----
-82

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL + COUNT ( * ) + - + 86 + 1 * 85 / + 25
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT ALL - 80 DIV + 19
----
-4

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL - 80 / + 19
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL - + CASE - 11 WHEN + + 51 THEN - - ( - 44 ) * - 46 + 34 WHEN + 34 THEN COUNT( - + 43 ) + 50 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL - + CASE - 11 WHEN + + 51 THEN - - ( - 44 ) * - 46 + 34 WHEN + 34 THEN COUNT ( - + 43 ) + 50 END AS col1
----
NULL

query I rowsort
SELECT - 32 * + 49 * - + NULLIF ( + 85, - + 19 + 80 - + + 50 ) + 74 + + + COALESCE ( COALESCE ( + 9, + 5, - - 97 ), 72 ) AS col2
----
133363

query I rowsort
SELECT ALL - + 23 - - 62 - + + 75 * + 71
----
-5286

onlyif mysql # DIV for integer division: 
query I rowsort label-6177
SELECT - - 10 * + + 6 DIV + 68 + - - 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-6177
SELECT - - 10 * + + 6 / + 68 + - - 23 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT 72 * - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-6178
SELECT 72 * - COUNT ( * ) AS col2
----
-72

query II rowsort
SELECT - 53 * 71 AS col1, - 22 col0
----
-3763
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-6180
SELECT 31 + - 68 + - MIN( - 79 ), 55 + 68 AS col0
----
42
123

skipif mysql # not compatible
query II rowsort label-6180
SELECT 31 + - 68 + - MIN ( - 79 ), 55 + 68 AS col0
----
42
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT + - SUM( - 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6181
SELECT + - SUM ( - 0 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT 8 + + NULLIF ( + 34, + MAX( DISTINCT + + 39 ) ) * + - 21 AS col0
----
-706

skipif mysql # not compatible
query I rowsort label-6182
SELECT 8 + + NULLIF ( + 34, + MAX ( DISTINCT + + 39 ) ) * + - 21 AS col0
----
-706

query II rowsort
SELECT + ( - 32 ) * + ( + 80 ), + ( + 0 ) * + 68 AS col2
----
-2560
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6184
SELECT + CAST( + 48 AS SIGNED ) * - - COALESCE ( + - 77, + SUM( ALL + 69 ), + 34 ) + + 82
----
-3614

skipif mysql # not compatible
query I rowsort label-6184
SELECT + CAST ( + 48 AS INTEGER ) * - - COALESCE ( + - 77, + SUM ( ALL + 69 ), + 34 ) + + 82
----
-3614

query I rowsort
SELECT ALL - ( - 81 ) - 81 AS col0
----
0

query I rowsort
SELECT 41 * 98 AS col0
----
4018

query I rowsort
SELECT ALL - - ( - ( 13 ) ) AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6188
SELECT ALL - CAST( NULL AS SIGNED ) * 85 + + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL - CAST ( NULL AS INTEGER ) * 85 + + 42 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 97 * 13 * - - 62 * + 25 * - 30 AS col1
----
-58636500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6190
SELECT - 87 * + COUNT( * ), CASE 61 WHEN + 0 + 51 * - - 46 THEN NULL WHEN - - COALESCE ( - COALESCE ( + 83, CAST( NULL AS SIGNED ) + 75, + - 95 + - + COALESCE ( + - 73, - SUM( DISTINCT + 34 ), COUNT( * ) ) ), COUNT( * ) + + 53, 66 ) + + COUNT( * ) * + COALESCE ( - + COUNT( * ), + CASE - 97 WHEN 99 THEN MIN( DISTINCT 55 ) * COUNT( * ) + - 44 * - 69 WHEN 25 THEN + 63 END + MIN( + 5 ) ) THEN 44 / + 19 WHEN COUNT( * ) * - 6 THEN + COUNT( * ) * 39 END * 25 AS col2
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-6190
SELECT - 87 * + COUNT ( * ), CASE 61 WHEN + 0 + 51 * - - 46 THEN NULL WHEN - - COALESCE ( - COALESCE ( + 83, CAST ( NULL AS INTEGER ) + 75, + - 95 + - + COALESCE ( + - 73, - SUM ( DISTINCT + 34 ), COUNT ( * ) ) ), COUNT ( * ) + + 53, 66 ) + + COUNT ( * ) * + COALESCE ( - + COUNT ( * ), + CASE - 97 WHEN 99 THEN MIN ( DISTINCT 55 ) * COUNT ( * ) + - 44 * - 69 WHEN 25 THEN + 63 END + MIN ( + 5 ) ) THEN 44 / + 19 WHEN COUNT ( * ) * - 6 THEN + COUNT ( * ) * 39 END * 25 AS col2
----
-87
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6191
SELECT - 26 - + - 11 * + - CAST( MAX( DISTINCT 28 ) AS SIGNED )
----
-334

skipif mysql # not compatible
query I rowsort label-6191
SELECT - 26 - + - 11 * + - CAST ( MAX ( DISTINCT 28 ) AS INTEGER )
----
-334

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT 92 + - NULLIF ( 76, - 55 ) * + 55 + - + 2 * - + 33 DIV 30 AS col2
----
-4086

skipif mysql # not compatible
query I rowsort label-6192
SELECT 92 + - NULLIF ( 76, - 55 ) * + 55 + - + 2 * - + 33 / 30 AS col2
----
-4086

query I rowsort
SELECT ALL 49 + + - 11
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT ALL 8 + COUNT( * ) + + + 32 + - ( - 73 ) * + - 3 * - + 71
----
15590

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL 8 + COUNT ( * ) + + + 32 + - ( - 73 ) * + - 3 * - + 71
----
15590

query I rowsort
SELECT 82 + + 93 AS col0
----
175

query I rowsort
SELECT DISTINCT 43 + + 75 AS col1
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6197
SELECT 91 / - ( + CAST( NULL AS SIGNED ) ) AS col1, + MIN( ALL - - CAST( NULL AS SIGNED ) ) + 22 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6197
SELECT 91 / - ( + CAST ( NULL AS INTEGER ) ) AS col1, + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) + 22 AS col0
----
NULL
NULL

query II rowsort
SELECT 73, - 33 AS col1
----
73
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6199
SELECT - 23 AS col1, + 17 + 29 + + COUNT( * ) DIV + 7 * - + ( 11 )
----
-23
46

skipif mysql # not compatible
query II rowsort label-6199
SELECT - 23 AS col1, + 17 + 29 + + COUNT ( * ) / + 7 * - + ( 11 )
----
-23
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6200
SELECT ( 32 ) * + CASE - - 12 WHEN + 6 + - + 30 THEN - - 57 + - 85 / + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) WHEN - - 12 * + 27 - - - 68 + 13 - - + CAST( NULL AS SIGNED ) * + - 58 * - - 35 - - + COUNT( * ) + + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT ( 32 ) * + CASE - - 12 WHEN + 6 + - + 30 THEN - - 57 + - 85 / + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN - - 12 * + 27 - - - 68 + 13 - - + CAST ( NULL AS INTEGER ) * + - 58 * - - 35 - - + COUNT ( * ) + + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6201
SELECT - 76, - 93 DIV 2 * 69 DIV 2 AS col0
----
-76
-1587

skipif mysql # not compatible
query II rowsort label-6201
SELECT - 76, - 93 / 2 * 69 / 2 AS col0
----
-76
-1587

onlyif mysql # DIV for integer division: 
query I rowsort label-6202
SELECT ( 33 ) DIV - - 8
----
4

skipif mysql # not compatible
query I rowsort label-6202
SELECT ( 33 ) / - - 8
----
4

query I rowsort
SELECT 17 + - 4 + + + 65 * 6
----
403

query I rowsort
SELECT 26 + + - 86 AS col0
----
-60

query I rowsort
SELECT DISTINCT - ( ( 89 ) ) AS col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6206
SELECT 56 * + COUNT( + - ( - ( + 81 ) ) ) / - 96 * - + 33 * - CAST( NULL AS SIGNED ), 30 / + CASE + + 1 WHEN + COUNT( * ) * 96 / - 99 THEN NULL WHEN - + 63 THEN NULL WHEN + - 31 + + 15 + + - 85 / + - 31 THEN - 45 ELSE NULL END * + COUNT( * ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6206
SELECT 56 * + COUNT ( + - ( - ( + 81 ) ) ) / - 96 * - + 33 * - CAST ( NULL AS INTEGER ), 30 / + CASE + + 1 WHEN + COUNT ( * ) * 96 / - 99 THEN NULL WHEN - + 63 THEN NULL WHEN + - 31 + + 15 + + - 85 / + - 31 THEN - 45 ELSE NULL END * + COUNT ( * ) AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6207
SELECT - - 19 * + 33 DIV + 32 + - 38
----
-19

skipif mysql # not compatible
query I rowsort label-6207
SELECT - - 19 * + 33 / + 32 + - 38
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT ALL - - MIN( + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL - - MIN ( + 74 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6209
SELECT - 44 - ( 1 ) AS col0, + CASE - 43 WHEN - + 9 THEN 31 ELSE + ( - 48 ) END - - - CAST( - - 62 AS SIGNED )
----
-45
-110

skipif mysql # not compatible
query II rowsort label-6209
SELECT - 44 - ( 1 ) AS col0, + CASE - 43 WHEN - + 9 THEN 31 ELSE + ( - 48 ) END - - - CAST ( - - 62 AS INTEGER )
----
-45
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6210
SELECT ALL + - 16 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL + - 16 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 58 + - 6
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT + CASE - 84 WHEN - MIN( ALL + + 31 ) THEN + + ( 11 ) WHEN - + 4 THEN ( 51 ) END * 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT + CASE - 84 WHEN - MIN ( ALL + + 31 ) THEN + + ( 11 ) WHEN - + 4 THEN ( 51 ) END * 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT ALL + - COUNT( * ) + - + 56 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL + - COUNT ( * ) + - + 56 AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6214
SELECT - - COUNT( * ) * ( + ( CAST( NULL AS SIGNED ) ) ) + 82 + 6 * + 48 * MIN( 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6214
SELECT - - COUNT ( * ) * ( + ( CAST ( NULL AS INTEGER ) ) ) + 82 + 6 * + 48 * MIN ( 30 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT + 24 + - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-6215
SELECT + 24 + - COUNT ( * )
----
23

query I rowsort
SELECT + NULLIF ( - 69, + 28 ) * 75
----
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT MAX( + 42 ) + + 93
----
135

skipif mysql # not compatible
query I rowsort label-6217
SELECT MAX ( + 42 ) + + 93
----
135

query II rowsort
SELECT DISTINCT - 34 col1, 22 * 64 AS col2
----
-34
1408

query I rowsort
SELECT ALL 56 + + + 36 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT DISTINCT - 69 + - COUNT( * ) - 25 * SUM( DISTINCT + 66 ) AS col2
----
-1720

skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT - 69 + - COUNT ( * ) - 25 * SUM ( DISTINCT + 66 ) AS col2
----
-1720

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT + NULLIF ( + 97, 2 ) * - - 81 + COUNT( * ) - - + NULLIF ( - COUNT( * ), COUNT( * ) * - 9 * - - 92 + - 0 ) AS col0
----
7857

skipif mysql # not compatible
query I rowsort label-6221
SELECT + NULLIF ( + 97, 2 ) * - - 81 + COUNT ( * ) - - + NULLIF ( - COUNT ( * ), COUNT ( * ) * - 9 * - - 92 + - 0 ) AS col0
----
7857

query II rowsort
SELECT DISTINCT 60, 3 AS col0
----
60
3

query I rowsort
SELECT + ( - + 42 ) + - 25
----
-67

query II rowsort
SELECT - 18 col1, 10 + - 18 + 10 + - 22 * + 61 + + - 34 AS col1
----
-18
-1374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6225
SELECT + 78 + COUNT( * ) DIV + 49
----
78

skipif mysql # not compatible
query I rowsort label-6225
SELECT + 78 + COUNT ( * ) / + 49
----
78

query I rowsort
SELECT + ( - + 44 ) * + 33 + - - 70 * + + 21
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6227
SELECT + 6 * - 94 DIV + NULLIF ( + 82, + 22 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-6227
SELECT + 6 * - 94 / + NULLIF ( + 82, + 22 ) AS col1
----
-6

query I rowsort
SELECT + 24 + + 53 * 10
----
554

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT - NULLIF ( 15, 62 * COUNT( * ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6229
SELECT - NULLIF ( 15, 62 * COUNT ( * ) ) AS col0
----
-15

query I rowsort
SELECT + 0 + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT + NULLIF ( 38, + NULLIF ( - + ( + - 95 ), 14 ) + + CASE - + 53 WHEN - 85 THEN ( - 75 ) + - + COUNT( * ) WHEN - ( 70 ) THEN NULL WHEN + - 54 THEN NULL ELSE + NULLIF ( NULLIF ( + 56, 2 * - COUNT( * ) ), + COUNT( * ) + 36 * + 54 - + + COUNT( * ) ) END * + COUNT( * ) * + - 74 ) + + 89 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-6231
SELECT + NULLIF ( 38, + NULLIF ( - + ( + - 95 ), 14 ) + + CASE - + 53 WHEN - 85 THEN ( - 75 ) + - + COUNT ( * ) WHEN - ( 70 ) THEN NULL WHEN + - 54 THEN NULL ELSE + NULLIF ( NULLIF ( + 56, 2 * - COUNT ( * ) ), + COUNT ( * ) + 36 * + 54 - + + COUNT ( * ) ) END * + COUNT ( * ) * + - 74 ) + + 89 AS col0
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6232
SELECT + 56 * AVG ( ALL - 99 ) + ( - + 30 ) * + - ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6232
SELECT + 56 * AVG ( ALL - 99 ) + ( - + 30 ) * + - ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6233
SELECT - + 10 + - 58 DIV 25
----
-12

skipif mysql # not compatible
query I rowsort label-6233
SELECT - + 10 + - 58 / 25
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6234
SELECT ALL + 4 DIV - 15 col1
----
0

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL + 4 / - 15 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6235
SELECT CASE + COUNT( * ) WHEN 74 * + CAST( NULL AS DECIMAL ) - + - 25 + + + 9 THEN + COUNT( * ) ELSE + 21 END col2
----
21

skipif mysql # not compatible
query I rowsort label-6235
SELECT CASE + COUNT ( * ) WHEN 74 * + CAST ( NULL AS REAL ) - + - 25 + + + 9 THEN + COUNT ( * ) ELSE + 21 END col2
----
21

query I rowsort
SELECT - 48 + 54
----
6

query I rowsort
SELECT ALL 62 * - 3
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT + COALESCE ( - - 22, + 82 ) * + COUNT( * ) * 5
----
110

skipif mysql # not compatible
query I rowsort label-6238
SELECT + COALESCE ( - - 22, + 82 ) * + COUNT ( * ) * 5
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-6239
SELECT ALL + 81, - MIN( 47 ) col1
----
81
-47

skipif mysql # not compatible
query II rowsort label-6239
SELECT ALL + 81, - MIN ( 47 ) col1
----
81
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-6240
SELECT - 15 + - + 9 * + - 65 + - + 26 + + + 66 + - 26 DIV + NULLIF ( + 26, - 47 + 55 ) AS col1
----
609

skipif mysql # not compatible
query I rowsort label-6240
SELECT - 15 + - + 9 * + - 65 + - + 26 + + + 66 + - 26 / + NULLIF ( + 26, - 47 + 55 ) AS col1
----
609

query I rowsort
SELECT ALL + ( + + 78 ) * - + 63 AS col1
----
-4914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6242
SELECT 83 * + COUNT( * ) + + MAX( + - 22 ) * + 74 + 7, CAST( NULL AS SIGNED ) * + 81 + + 35 AS col0
----
-1538
NULL

skipif mysql # not compatible
query II rowsort label-6242
SELECT 83 * + COUNT ( * ) + + MAX ( + - 22 ) * + 74 + 7, CAST ( NULL AS INTEGER ) * + 81 + + 35 AS col0
----
-1538
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT ALL + SUM( DISTINCT + + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL + SUM ( DISTINCT + + 60 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6244
SELECT CAST( - 11 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-6244
SELECT CAST ( - 11 AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT ALL 1 * + COUNT( * ) + - 18 - + + MAX( DISTINCT - - 57 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL 1 * + COUNT ( * ) + - 18 - + + MAX ( DISTINCT - - 57 ) AS col2
----
-74

query II rowsort
SELECT 82 AS col0, ( - 92 )
----
82
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6247
SELECT + CAST( 79 AS SIGNED ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-6247
SELECT + CAST ( 79 AS INTEGER ) AS col1
----
79

query I rowsort
SELECT - 78 + + 29 + + 15 * + 61
----
866

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6249
SELECT ALL + COUNT( * ) DIV - 95 * + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL + COUNT ( * ) / - 95 * + 82 AS col1
----
0

query II rowsort
SELECT + - 27, 32 AS col1
----
-27
32

query II rowsort
SELECT ALL - + 33 * - 86 * - 82 * + 54 + ( + 52 ) AS col1, - 70
----
-12566612
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6252
SELECT DISTINCT + COUNT( * ) * + + ( - + CAST( NULL AS SIGNED ) ) + - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT + COUNT ( * ) * + + ( - + CAST ( NULL AS INTEGER ) ) + - 96 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6253
SELECT ALL 26 * 53 + - - 40 DIV + COALESCE ( - - 51, CASE + SUM( 10 ) WHEN - + 21 THEN + COUNT( * ) END DIV - + 85 - 85 + + + 74 + + 24, 1 * CAST( 53 AS SIGNED ) * - 16 DIV - - NULLIF ( + + 32, - 35 * + COUNT( * ) ) )
----
1378

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL 26 * 53 + - - 40 / + COALESCE ( - - 51, CASE + SUM ( 10 ) WHEN - + 21 THEN + COUNT ( * ) END / - + 85 - 85 + + + 74 + + 24, 1 * CAST ( 53 AS INTEGER ) * - 16 / - - NULLIF ( + + 32, - 35 * + COUNT ( * ) ) )
----
1378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6254
SELECT - CAST( NULL AS SIGNED ) * - MIN( ALL - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6254
SELECT - CAST ( NULL AS INTEGER ) * - MIN ( ALL - 11 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6255
SELECT ALL + 83 * - 13 DIV - 1 AS col1
----
1079

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL + 83 * - 13 / - 1 AS col1
----
1079

query I rowsort
SELECT DISTINCT - 65 * 7 col0
----
-455

query I rowsort
SELECT - 84 * 93 AS col0
----
-7812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6258
SELECT ALL CASE + 91 WHEN - ( + MIN( + 88 ) ) THEN + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + - 91 - - + ( + 81 ) WHEN + 14 THEN + 57 END * + 96 - - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL CASE + 91 WHEN - ( + MIN ( + 88 ) ) THEN + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 91 - - + ( + 81 ) WHEN + 14 THEN + 57 END * + 96 - - 23 AS col0
----
NULL

query I rowsort
SELECT - CASE + 15 WHEN - 28 THEN - 18 END - + 63 * - 22
----
NULL

query I rowsort
SELECT - 54 * - 87 col0
----
4698

onlyif mysql # aggregate syntax: 
query II rowsort label-6261
SELECT DISTINCT ( 95 ) AS col0, COUNT( + 46 ) col0
----
95
1

skipif mysql # not compatible
query II rowsort label-6261
SELECT DISTINCT ( 95 ) AS col0, COUNT ( + 46 ) col0
----
95
1

query I rowsort
SELECT ALL 1 - + - 43
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT + 83 - - SUM( + 83 ) * 63 AS col2
----
5312

skipif mysql # not compatible
query I rowsort label-6263
SELECT + 83 - - SUM ( + 83 ) * 63 AS col2
----
5312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6264
SELECT ALL CAST( + 14 AS SIGNED ) * 67 + + 40 * - + COUNT( * ) - 77 + - + 63 + + + CAST( + 69 AS SIGNED )
----
827

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL CAST ( + 14 AS INTEGER ) * 67 + + 40 * - + COUNT ( * ) - 77 + - + 63 + + + CAST ( + 69 AS INTEGER )
----
827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6265
SELECT ALL CAST( MAX( DISTINCT - 76 ) AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL CAST ( MAX ( DISTINCT - 76 ) AS INTEGER )
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6266
SELECT DISTINCT ( + COALESCE ( - ( - + 4 ), 59 ) ) * MIN( DISTINCT + 69 ) * + - ( - 82 ) * - 17 + - 75 DIV 40 + 69 * + - 71 + - 36
----
-389680

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT ( + COALESCE ( - ( - + 4 ), 59 ) ) * MIN ( DISTINCT + 69 ) * + - ( - 82 ) * - 17 + - 75 / 40 + 69 * + - 71 + - 36
----
-389680

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT + 33 + - + COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-6267
SELECT + 33 + - + COUNT ( * ) AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6268
SELECT DISTINCT - + 74 * - CAST( NULL AS DECIMAL ) * 23 * - COUNT( * ) * - 35 AS col1, ( - 64 )
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-6268
SELECT DISTINCT - + 74 * - CAST ( NULL AS REAL ) * 23 * - COUNT ( * ) * - 35 AS col1, ( - 64 )
----
NULL
-64

query I rowsort
SELECT DISTINCT + ( - - 7 ) AS col0
----
7

query I rowsort
SELECT ALL - 92 + + 53 * 30 - - 12 AS col2
----
1510

query I rowsort
SELECT + - 37 * - 88 + + + 25 * - 50
----
2006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6272
SELECT - COUNT( ALL - + 5 ) DIV - 78 + + + 41 + + 4 - 59 * + 75 * + 94 + + 87 DIV 30 AS col0
----
-415903

skipif mysql # not compatible
query I rowsort label-6272
SELECT - COUNT ( ALL - + 5 ) / - 78 + + + 41 + + 4 - 59 * + 75 * + 94 + + 87 / 30 AS col0
----
-415903

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT + SUM( DISTINCT + 79 ) + - - 30 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-6273
SELECT + SUM ( DISTINCT + 79 ) + - - 30 AS col0
----
109

query I rowsort
SELECT - 62 * + - 73 AS col2
----
4526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6275
SELECT ALL - + 56 DIV - + COUNT( * ) + - 16 DIV 87 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL - + 56 / - + COUNT ( * ) + - 16 / 87 AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT DISTINCT + - 89 DIV - 90 * 53 DIV - + 18 + 21 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT + - 89 / - 90 * 53 / - + 18 + 21 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT ALL + COUNT( ALL 9 )
----
1

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL + COUNT ( ALL 9 )
----
1

query I rowsort
SELECT ALL - - 74 + 94 + + - 1 AS col0
----
167

query I rowsort
SELECT 85 + - - 34 AS col2
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6280
SELECT ALL - CAST( - 22 AS SIGNED ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL - CAST ( - 22 AS INTEGER ) AS col1
----
22

query II rowsort
SELECT + 98 AS col0, 47 AS col2
----
98
47

query I rowsort
SELECT DISTINCT - NULLIF ( - 95, - + 72 )
----
95

query I rowsort
SELECT ALL 79 - 74 AS col0
----
5

query I rowsort
SELECT 97 * - - 39 + - + 86 * 56
----
-1033

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT 10 * + 20 * SUM( - - 69 )
----
13800

skipif mysql # not compatible
query I rowsort label-6285
SELECT 10 * + 20 * SUM ( - - 69 )
----
13800

onlyif mysql # aggregate syntax: 
query II rowsort label-6286
SELECT ( - + COUNT( * ) ) + 50 AS col0, 63 * - 86 AS col1
----
49
-5418

skipif mysql # not compatible
query II rowsort label-6286
SELECT ( - + COUNT ( * ) ) + 50 AS col0, 63 * - 86 AS col1
----
49
-5418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6287
SELECT - 27 * 97 DIV 89 - + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-6287
SELECT - 27 * 97 / 89 - + COUNT ( * )
----
-30

query I rowsort
SELECT DISTINCT - 34 * 0
----
0

query I rowsort
SELECT 94 + 67 AS col1
----
161

query I rowsort
SELECT 0 * 80 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6291
SELECT DISTINCT - NULLIF ( - - CAST( NULL AS SIGNED ), - - ( - + ( + 35 ) ) ) * ( 93 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT - NULLIF ( - - CAST ( NULL AS INTEGER ), - - ( - + ( + 35 ) ) ) * ( 93 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6292
SELECT 26 * - CAST( + 99 AS SIGNED ) AS col2, + 77 / CAST( NULL AS SIGNED ) * 39 * - COUNT( DISTINCT - - 28 ) * - 12 + - 27 AS col2
----
-2574
NULL

skipif mysql # not compatible
query II rowsort label-6292
SELECT 26 * - CAST ( + 99 AS INTEGER ) AS col2, + 77 / CAST ( NULL AS INTEGER ) * 39 * - COUNT ( DISTINCT - - 28 ) * - 12 + - 27 AS col2
----
-2574
NULL

query I rowsort
SELECT ALL - 16 * - 41 AS col2
----
656

query I rowsort
SELECT 6 + + 56
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT 45 / - - CASE + 49 WHEN - 12 * COUNT( * ) + + CASE 95 WHEN 23 THEN - + 69 END + MAX( 0 ) THEN - ( + ( - + 70 ) ) WHEN COUNT( * ) + + - 16 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT 45 / - - CASE + 49 WHEN - 12 * COUNT ( * ) + + CASE 95 WHEN 23 THEN - + 69 END + MAX ( 0 ) THEN - ( + ( - + 70 ) ) WHEN COUNT ( * ) + + - 16 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT ALL 39 col0, 73
----
39
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6297
SELECT 16 + ( 86 ) + 64 * + 72 + - 66 + - - 47 + + 37 * + - 9 + + 27 * 39 + + ( - 19 ) * - CAST( 12 AS SIGNED )
----
5639

skipif mysql # not compatible
query I rowsort label-6297
SELECT 16 + ( 86 ) + 64 * + 72 + - 66 + - - 47 + + 37 * + - 9 + + 27 * 39 + + ( - 19 ) * - CAST ( 12 AS INTEGER )
----
5639

query I rowsort
SELECT 51 * - + 89 AS col0
----
-4539

onlyif mysql # aggregate syntax: 
query II rowsort label-6299
SELECT - 93 AS col0, 30 * + MAX( 47 )
----
-93
1410

skipif mysql # not compatible
query II rowsort label-6299
SELECT - 93 AS col0, 30 * + MAX ( 47 )
----
-93
1410

query I rowsort
SELECT + 61 + - - 32
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6301
SELECT ALL - 72, COUNT( * ) + - - 63 + - 91 * - 37 AS col1
----
-72
3431

skipif mysql # not compatible
query II rowsort label-6301
SELECT ALL - 72, COUNT ( * ) + - - 63 + - 91 * - 37 AS col1
----
-72
3431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6302
SELECT DISTINCT - 59, COUNT( * ) + + + 39 + - 0 * 90 + + - CAST( - SUM( ALL - 82 ) AS SIGNED ) col1
----
-59
-42

skipif mysql # not compatible
query II rowsort label-6302
SELECT DISTINCT - 59, COUNT ( * ) + + + 39 + - 0 * 90 + + - CAST ( - SUM ( ALL - 82 ) AS INTEGER ) col1
----
-59
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT DISTINCT + 94 + - + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT + 94 + - + COUNT ( * )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6304
SELECT ALL + CAST( - + 90 AS SIGNED ) + + COALESCE ( + 35, - + 23 * - 52 ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL + CAST ( - + 90 AS INTEGER ) + + COALESCE ( + 35, - + 23 * - 52 ) col1
----
-55

query I rowsort
SELECT DISTINCT - 3 * 95
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT 0 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6306
SELECT 0 + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6307
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) + 52, 35 * - 94 + - CASE - 44 WHEN - 32 THEN NULL WHEN + CASE 88 WHEN - - 34 THEN NULL WHEN - 92 + - 3 + + COUNT( * ) THEN NULL WHEN + CASE 59 WHEN - 11 THEN + CAST( + 62 AS SIGNED ) + COUNT( - + 67 ) + MIN( ALL + ( 98 ) ) * - + COALESCE ( - 57, - - 35 ) + - 71 ELSE 54 END DIV 74 + + 92 THEN 47 DIV ( + 1 ) + 66 DIV + 7 ELSE NULL END THEN + SUM( 0 ) ELSE 95 DIV + 42 END AS col1
----
NULL
-3292

skipif mysql # not compatible
query II rowsort label-6307
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) + 52, 35 * - 94 + - CASE - 44 WHEN - 32 THEN NULL WHEN + CASE 88 WHEN - - 34 THEN NULL WHEN - 92 + - 3 + + COUNT ( * ) THEN NULL WHEN + CASE 59 WHEN - 11 THEN + CAST ( + 62 AS INTEGER ) + COUNT ( - + 67 ) + MIN ( ALL + ( 98 ) ) * - + COALESCE ( - 57, - - 35 ) + - 71 ELSE 54 END / 74 + + 92 THEN 47 / ( + 1 ) + 66 / + 7 ELSE NULL END THEN + SUM ( 0 ) ELSE 95 / + 42 END AS col1
----
NULL
-3292

query I rowsort
SELECT DISTINCT + 70 * - + 34 AS col1
----
-2380

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6309
SELECT ALL 4 AS col1, + 41 - CAST( NULL AS SIGNED )
----
4
NULL

skipif mysql # not compatible
query II rowsort label-6309
SELECT ALL 4 AS col1, + 41 - CAST ( NULL AS INTEGER )
----
4
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6310
SELECT - + 33 AS col1, - 20 + COUNT( * ) - - - 56
----
-33
-75

skipif mysql # not compatible
query II rowsort label-6310
SELECT - + 33 AS col1, - 20 + COUNT ( * ) - - - 56
----
-33
-75

query I rowsort
SELECT + 47 + + NULLIF ( 13, 40 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT DISTINCT COUNT( * ) + - 51 + - SUM( DISTINCT - 1 ) * + 98
----
48

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT COUNT ( * ) + - 51 + - SUM ( DISTINCT - 1 ) * + 98
----
48

query I rowsort
SELECT ALL + 20 + - + ( 27 ) AS col1
----
-7

query II rowsort
SELECT ALL - 69 AS col1, - 14 AS col2
----
-69
-14

query I rowsort
SELECT + 13 + + 75 + 46
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT DISTINCT - - MAX( 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT - - MAX ( 64 ) AS col1
----
64

query I rowsort
SELECT + ( + - 89 )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6318
SELECT + MAX( DISTINCT + 27 ) DIV 92 * + 1 - 65 + + MAX( + CAST( + 37 AS SIGNED ) ) * - + 1 + + COUNT( * ) * - 14 * + + 21
----
-396

skipif mysql # not compatible
query I rowsort label-6318
SELECT + MAX ( DISTINCT + 27 ) / 92 * + 1 - 65 + + MAX ( + CAST ( + 37 AS INTEGER ) ) * - + 1 + + COUNT ( * ) * - 14 * + + 21
----
-396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6319
SELECT DISTINCT 38 DIV SUM( ALL + 36 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT 38 / SUM ( ALL + 36 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6320
SELECT COALESCE ( - 72, + COUNT( * ) + + - CAST( NULL AS SIGNED ) ) DIV + + 74 AS col1, 7 + - 42, - COUNT( * ) + - - 49 AS col0
----
0
-35
48

skipif mysql # not compatible
query III rowsort label-6320
SELECT COALESCE ( - 72, + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) ) / + + 74 AS col1, 7 + - 42, - COUNT ( * ) + - - 49 AS col0
----
0
-35
48

query I rowsort
SELECT ALL 73 * - 73
----
-5329

query I rowsort
SELECT DISTINCT 67 * 86 AS col0
----
5762

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL 37 * + 50 * + 99 * - SUM( DISTINCT + ( 68 ) ) col2
----
-12454200

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL 37 * + 50 * + 99 * - SUM ( DISTINCT + ( 68 ) ) col2
----
-12454200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6324
SELECT 16 + + 14 + - - CASE + 3 WHEN + 65 THEN NULL WHEN + 63 * - 56 * 28 THEN NULL WHEN 77 THEN NULL WHEN 49 + + + 53 THEN + CAST( NULL AS SIGNED ) + 55 * + 56 + 4 ELSE + 15 END AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6324
SELECT 16 + + 14 + - - CASE + 3 WHEN + 65 THEN NULL WHEN + 63 * - 56 * 28 THEN NULL WHEN 77 THEN NULL WHEN 49 + + + 53 THEN + CAST ( NULL AS INTEGER ) + 55 * + 56 + 4 ELSE + 15 END AS col2
----
45

query I rowsort
SELECT DISTINCT 31 * 66
----
2046

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6326
SELECT 26 + AVG ( DISTINCT CASE + - 19 WHEN - - CAST( NULL AS SIGNED ) THEN + CAST( - 39 AS DECIMAL ) / 36 + - - 34 END ) col2, 70 AS col2
----
NULL
70

skipif mysql # not compatible
query II rowsort label-6326
SELECT 26 + AVG ( DISTINCT CASE + - 19 WHEN - - CAST ( NULL AS INTEGER ) THEN + CAST ( - 39 AS REAL ) / 36 + - - 34 END ) col2, 70 AS col2
----
NULL
70

query I rowsort
SELECT DISTINCT - 3 + + 4 + - 84 AS col0
----
-83

query I rowsort
SELECT 67 * + 27 - 69
----
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT COUNT( * ) * - 17 * 20 * + + 74 * + + ( - 93 )
----
2339880

skipif mysql # not compatible
query I rowsort label-6329
SELECT COUNT ( * ) * - 17 * 20 * + + 74 * + + ( - 93 )
----
2339880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6330
SELECT ALL - CASE - 81 WHEN + COUNT( * ) * 50 + + CAST( + COUNT( * ) AS SIGNED ) + 96 - 11 + ( + 24 ) * + + 88 THEN 94 END + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL - CASE - 81 WHEN + COUNT ( * ) * 50 + + CAST ( + COUNT ( * ) AS INTEGER ) + 96 - 11 + ( + 24 ) * + + 88 THEN 94 END + 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT ALL COUNT( + - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL COUNT ( + - 31 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6332
SELECT ALL - 56 + + + 22, - CASE 99 WHEN 87 * + - 42 THEN + ( + 35 ) WHEN - - SUM( + + 82 ) + - 98 THEN 11 + 32 ELSE + + 86 + - 77 END * - 52 * + - 33 + 33 * 0 col1
----
-34
-15444

skipif mysql # not compatible
query II rowsort label-6332
SELECT ALL - 56 + + + 22, - CASE 99 WHEN 87 * + - 42 THEN + ( + 35 ) WHEN - - SUM ( + + 82 ) + - 98 THEN 11 + 32 ELSE + + 86 + - 77 END * - 52 * + - 33 + 33 * 0 col1
----
-34
-15444

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT DISTINCT - 98 + + COUNT( + + 20 )
----
-97

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT - 98 + + COUNT ( + + 20 )
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6334
SELECT ALL - - 74 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL - - 74 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 76 * + - 97
----
-7372

onlyif mysql # DIV for integer division: 
query I rowsort label-6336
SELECT ALL + 65 + - 73 * - - 32 + + 20 DIV - 5
----
-2275

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL + 65 + - 73 * - - 32 + + 20 / - 5
----
-2275

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT 56 DIV - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6337
SELECT 56 / - 76 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6338
SELECT + COUNT( * ) * COUNT( * ), + 2 AS col1
----
1
2

skipif mysql # not compatible
query II rowsort label-6338
SELECT + COUNT ( * ) * COUNT ( * ), + 2 AS col1
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT DISTINCT - COUNT( * ) * + - 22
----
22

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT - COUNT ( * ) * + - 22
----
22

query I rowsort
SELECT ALL + 49 + - 3 * + 98
----
-245

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT DISTINCT + + 40 - + COUNT( * ) + + - 79 + + COUNT( * ) + - - 50 * - COUNT( DISTINCT + 12 ) - + 20 + - 14 AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT + + 40 - + COUNT ( * ) + + - 79 + + COUNT ( * ) + - - 50 * - COUNT ( DISTINCT + 12 ) - + 20 + - 14 AS col2
----
-123

query I rowsort
SELECT - - 10 * 30 * 98
----
29400

onlyif mysql # DIV for integer division: 
query I rowsort label-6343
SELECT + 19 DIV 23 DIV + + CASE + - 23 WHEN - 95 * 20 + + 81 DIV - + 38 THEN NULL ELSE + + 65 END + - 18
----
-18

skipif mysql # not compatible
query I rowsort label-6343
SELECT + 19 / 23 / + + CASE + - 23 WHEN - 95 * 20 + + 81 / - + 38 THEN NULL ELSE + + 65 END + - 18
----
-18

query I rowsort
SELECT + - 3 * - 51 + - 98
----
55

query I rowsort
SELECT DISTINCT - + 77 * - - 53 * - + 32 AS col0
----
130592

query I rowsort
SELECT ALL 32 * - 53
----
-1696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6347
SELECT - CASE - - 78 WHEN NULLIF ( CAST( - 76 AS SIGNED ), - - COALESCE ( + - 26, - 23, + ( + 50 ) * 87 ) ) THEN + 61 WHEN + SUM( ALL + 34 ) THEN NULL WHEN + 39 THEN NULL END * - 9 * + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT - CASE - - 78 WHEN NULLIF ( CAST ( - 76 AS INTEGER ), - - COALESCE ( + - 26, - 23, + ( + 50 ) * 87 ) ) THEN + 61 WHEN + SUM ( ALL + 34 ) THEN NULL WHEN + 39 THEN NULL END * - 9 * + 32 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 52 * - 76
----
-3952

query I rowsort
SELECT + 84 + - 58 AS col2
----
26

query I rowsort
SELECT NULLIF ( + + NULLIF ( 68, + + 41 + 57 ), - 50 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT + 78 DIV 2
----
39

skipif mysql # not compatible
query I rowsort label-6351
SELECT + 78 / 2
----
39

query I rowsort
SELECT + 48 + - 39 * - 53 AS col2
----
2115

query I rowsort
SELECT + 24 + + 17
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT DISTINCT + COUNT( - - 36 )
----
1

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT + COUNT ( - - 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT DISTINCT + ( 74 ) * - COUNT( DISTINCT - - 21 ) + + 67 * + 36
----
2338

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT + ( 74 ) * - COUNT ( DISTINCT - - 21 ) + + 67 * + 36
----
2338

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT DISTINCT COUNT( * ) + 13 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT COUNT ( * ) + 13 AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6357
SELECT + CASE + 44 WHEN + - 49 * + + 21 * ( - 96 ) THEN + COALESCE ( 8, 93 * + 34 ) / + - CAST( - - 10 AS DECIMAL ) - + + ( - SUM( - 24 ) ) ELSE - + NULLIF ( - CASE + CAST( NULL AS DECIMAL ) WHEN + CASE - - 88 WHEN + 86 THEN NULL WHEN + 26 + + 42 THEN NULL ELSE 33 * - - NULLIF ( + COALESCE ( - + 41, + 40, + 35 + + 21 * - SUM( ALL - 5 + + 77 ) ), 51 + 22 ) / 99 END - 54 THEN NULL WHEN 76 - + COUNT( * ) THEN 33 ELSE NULL END, - 54 * - 43 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT + CASE + 44 WHEN + - 49 * + + 21 * ( - 96 ) THEN + COALESCE ( 8, 93 * + 34 ) / + - CAST ( - - 10 AS REAL ) - + + ( - SUM ( - 24 ) ) ELSE - + NULLIF ( - CASE + CAST ( NULL AS REAL ) WHEN + CASE - - 88 WHEN + 86 THEN NULL WHEN + 26 + + 42 THEN NULL ELSE 33 * - - NULLIF ( + COALESCE ( - + 41, + 40, + 35 + + 21 * - SUM ( ALL - 5 + + 77 ) ), 51 + 22 ) / 99 END - 54 THEN NULL WHEN 76 - + COUNT ( * ) THEN 33 ELSE NULL END, - 54 * - 43 ) END AS col2
----
NULL

query I rowsort
SELECT + + 39 + 42 + - 95
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6359
SELECT + + 81 * + - COUNT( * ) DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-6359
SELECT + + 81 * + - COUNT ( * ) / + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT + - MIN( - + 81 ) + - 97 + 64 - + 47 * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6360
SELECT + - MIN ( - + 81 ) + - 97 + 64 - + 47 * COUNT ( * ) AS col2
----
1

query I rowsort
SELECT - 15 * - - 47
----
-705

query I rowsort
SELECT + 59 + + 16 * - NULLIF ( 88, - 2 + - 78 ) AS col2
----
-1349

query I rowsort
SELECT ALL + 20 * + + 60 * - - 20 + + ( - + 52 )
----
23948

query I rowsort
SELECT + 72 * + 77 AS col0
----
5544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6365
SELECT DISTINCT - NULLIF ( - - CAST( NULL AS SIGNED ), - + COALESCE ( 87, - 8 * - COUNT( * ) * - + ( 22 ) + - 88 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT - NULLIF ( - - CAST ( NULL AS INTEGER ), - + COALESCE ( 87, - 8 * - COUNT ( * ) * - + ( 22 ) + - 88 ) )
----
NULL

query I rowsort
SELECT DISTINCT + 92 - - 87 - + 6
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT - - COUNT( * ) + 20
----
21

skipif mysql # not compatible
query I rowsort label-6367
SELECT - - COUNT ( * ) + 20
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT ALL - COALESCE ( - COUNT( 88 ), - 51 ) - + - 22
----
23

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL - COALESCE ( - COUNT ( 88 ), - 51 ) - + - 22
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT - NULLIF ( + 31, + 6 / 99 * + - 85 + + COUNT( * ) )
----
-31

skipif mysql # not compatible
query I rowsort label-6369
SELECT - NULLIF ( + 31, + 6 / 99 * + - 85 + + COUNT ( * ) )
----
-31

query I rowsort
SELECT - + 48 + 3
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6371
SELECT + + COUNT( * ) DIV - - 48 * ( - 1 ) - COUNT( * ) AS col2, 56 * - + COUNT( * ) * + 44 + - + COUNT( * )
----
-1
-2465

skipif mysql # not compatible
query II rowsort label-6371
SELECT + + COUNT ( * ) / - - 48 * ( - 1 ) - COUNT ( * ) AS col2, 56 * - + COUNT ( * ) * + 44 + - + COUNT ( * )
----
-1
-2465

onlyif mysql # aggregate syntax: 
query II rowsort label-6372
SELECT - - COUNT( * ) AS col0, - 5
----
1
-5

skipif mysql # not compatible
query II rowsort label-6372
SELECT - - COUNT ( * ) AS col0, - 5
----
1
-5

query I rowsort
SELECT - + 99 * - 89 AS col1
----
8811

query I rowsort
SELECT - ( + + 41 ) AS col2
----
-41

query I rowsort
SELECT - 45 + + - 25 * + + 65
----
-1670

query I rowsort
SELECT DISTINCT 3 * + 68 AS col2
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6377
SELECT DISTINCT 61 * - SUM( - + CASE - 42 WHEN + 42 THEN NULLIF ( + - 26, 42 + - 50 + 46 * + - 99 ) WHEN - 69 THEN + + ( - 87 ) END ) AS col2, 98 * - + CAST( + CASE COUNT( * ) WHEN + - 63 THEN - NULLIF ( 96, - - 20 ) - - 48 END AS SIGNED ) * + - 8 * - + 32 * 92 + + - COUNT( * ) + - 38 col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6377
SELECT DISTINCT 61 * - SUM ( - + CASE - 42 WHEN + 42 THEN NULLIF ( + - 26, 42 + - 50 + 46 * + - 99 ) WHEN - 69 THEN + + ( - 87 ) END ) AS col2, 98 * - + CAST ( + CASE COUNT ( * ) WHEN + - 63 THEN - NULLIF ( 96, - - 20 ) - - 48 END AS INTEGER ) * + - 8 * - + 32 * 92 + + - COUNT ( * ) + - 38 col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6378
SELECT - 91 DIV 88
----
-1

skipif mysql # not compatible
query I rowsort label-6378
SELECT - 91 / 88
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6379
SELECT ALL - 93 DIV - - 9
----
-10

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL - 93 / - - 9
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT + MAX( DISTINCT - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-6380
SELECT + MAX ( DISTINCT - 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT ALL + COUNT( - + 26 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL + COUNT ( - + 26 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6382
SELECT CAST( NULL AS SIGNED ) AS col0, + 81 + - 35 * COUNT( + 13 ) AS col0
----
NULL
46

skipif mysql # not compatible
query II rowsort label-6382
SELECT CAST ( NULL AS INTEGER ) AS col0, + 81 + - 35 * COUNT ( + 13 ) AS col0
----
NULL
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6383
SELECT CAST( NULL AS SIGNED ) AS col1, 20
----
NULL
20

skipif mysql # not compatible
query II rowsort label-6383
SELECT CAST ( NULL AS INTEGER ) AS col1, 20
----
NULL
20

query I rowsort
SELECT + NULLIF ( 91, - + 70 )
----
91

query I rowsort
SELECT + 37 * - COALESCE ( 86, - 69 ) AS col0
----
-3182

query I rowsort
SELECT - 66 * - - 13 col1
----
-858

query I rowsort
SELECT ALL - 3 * 72 + + 10
----
-206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6388
SELECT DISTINCT - CAST( - + 99 AS SIGNED ) * 79 DIV 64 + + SUM( 97 ) - - 49 AS col0
----
268

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT - CAST ( - + 99 AS INTEGER ) * 79 / 64 + + SUM ( 97 ) - - 49 AS col0
----
268

query II rowsort
SELECT + - 6 AS col2, 80 AS col0
----
-6
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6390
SELECT ALL + - 46 AS col1, + COALESCE ( + 90, - + 61 * - + COUNT( * ), + 81 ) AS col0
----
-46
90

skipif mysql # not compatible
query II rowsort label-6390
SELECT ALL + - 46 AS col1, + COALESCE ( + 90, - + 61 * - + COUNT ( * ), + 81 ) AS col0
----
-46
90

query I rowsort
SELECT - - 10 - - + 8 - + 33
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6392
SELECT + CAST( 64 AS SIGNED ) + - 60 * - 7 + + 11 * + SUM( - 84 ) AS col1
----
-440

skipif mysql # not compatible
query I rowsort label-6392
SELECT + CAST ( 64 AS INTEGER ) + - 60 * - 7 + + 11 * + SUM ( - 84 ) AS col1
----
-440

query I rowsort
SELECT DISTINCT - - 48 - + - 83 * + ( 33 ) + - 51 AS col0
----
2736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6394
SELECT - 57 * CAST( + - 90 AS SIGNED )
----
5130

skipif mysql # not compatible
query I rowsort label-6394
SELECT - 57 * CAST ( + - 90 AS INTEGER )
----
5130

onlyif mysql # aggregate syntax: 
query II rowsort label-6395
SELECT DISTINCT + 90, - SUM( 87 ) * 90 - 69 + + COUNT( * ) + + 40 AS col1
----
90
-7858

skipif mysql # not compatible
query II rowsort label-6395
SELECT DISTINCT + 90, - SUM ( 87 ) * 90 - 69 + + COUNT ( * ) + + 40 AS col1
----
90
-7858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6396
SELECT DISTINCT - 22 - + ( 52 ) + + CASE COALESCE ( - - ( CAST( NULL AS SIGNED ) ), - MIN( DISTINCT ( 74 ) ) + - + 92 ) WHEN 96 + - 5 THEN + 73 * - + COUNT( * ) WHEN + - 27 / 56 * - 47 THEN + COUNT( * ) END, 34 - COUNT( * ) col1
----
NULL
33

skipif mysql # not compatible
query II rowsort label-6396
SELECT DISTINCT - 22 - + ( 52 ) + + CASE COALESCE ( - - ( CAST ( NULL AS INTEGER ) ), - MIN ( DISTINCT ( 74 ) ) + - + 92 ) WHEN 96 + - 5 THEN + 73 * - + COUNT ( * ) WHEN + - 27 / 56 * - 47 THEN + COUNT ( * ) END, 34 - COUNT ( * ) col1
----
NULL
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6397
SELECT ALL - 63 * - ( COUNT( * ) ) + CAST( NULL AS SIGNED ) + - + 96 / + COUNT( * ) * 85 * + 4 + + - MAX( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL - 63 * - ( COUNT ( * ) ) + CAST ( NULL AS INTEGER ) + - + 96 / + COUNT ( * ) * 85 * + 4 + + - MAX ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6398
SELECT + CAST( 55 AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6398
SELECT + CAST ( 55 AS INTEGER ) AS col0
----
55

query I rowsort
SELECT ALL - ( - + 11 ) col2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-6400
SELECT ALL + SUM( ALL + 35 ) AS col0, 57 * + + 46
----
35
2622

skipif mysql # not compatible
query II rowsort label-6400
SELECT ALL + SUM ( ALL + 35 ) AS col0, 57 * + + 46
----
35
2622

query I rowsort
SELECT - 32 - - - 42 + + 81
----
7

query I rowsort
SELECT + 6 * + 10 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT COALESCE ( - COUNT( * ), + 47 * + MAX( - + 46 ) + + + 23 + - - 23 + - 66 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6403
SELECT COALESCE ( - COUNT ( * ), + 47 * + MAX ( - + 46 ) + + + 23 + - - 23 + - 66 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6404
SELECT CAST( NULL AS SIGNED ) - + 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT CAST ( NULL AS INTEGER ) - + 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT DISTINCT + COUNT( - CASE 47 WHEN + + 62 THEN NULL ELSE + 70 + + 96 END ) * + + 35
----
35

skipif mysql # not compatible
query I rowsort label-6405
SELECT DISTINCT + COUNT ( - CASE 47 WHEN + + 62 THEN NULL ELSE + 70 + + 96 END ) * + + 35
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6406
SELECT ALL CASE - 6 WHEN - - COUNT( * ) THEN - - 85 END / - + COALESCE ( - 45, + 59 * - 99 * 92 ) + + + 56 + - + 32 * - AVG ( DISTINCT + + 95 ) * CAST( NULL AS DECIMAL ) * ( - 14 ) + + + 87 + + 26 * - 64 * - 63 - 98 / - + 24 * 86 - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL CASE - 6 WHEN - - COUNT ( * ) THEN - - 85 END / - + COALESCE ( - 45, + 59 * - 99 * 92 ) + + + 56 + - + 32 * - AVG ( DISTINCT + + 95 ) * CAST ( NULL AS REAL ) * ( - 14 ) + + + 87 + + 26 * - 64 * - 63 - 98 / - + 24 * 86 - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT DISTINCT 8 + + 84 + - COUNT( * ) + 29 col1
----
120

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT 8 + + 84 + - COUNT ( * ) + 29 col1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT - CAST( NULL AS SIGNED ) / + 95 + + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT - CAST ( NULL AS INTEGER ) / + 95 + + 20 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6409
SELECT 39 DIV 34 col2
----
1

skipif mysql # not compatible
query I rowsort label-6409
SELECT 39 / 34 col2
----
1

query I rowsort
SELECT 10 + - 68 + - + ( 36 ) - 39 + - 44 - 77 AS col0
----
-254

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6411
SELECT - 23 * - - 43 + + COUNT( ALL - - 63 ) - 25 + - CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col2, - MIN( - - 18 )
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-6411
SELECT - 23 * - - 43 + + COUNT ( ALL - - 63 ) - 25 + - CAST ( NULL AS REAL ) * + COUNT ( * ) AS col2, - MIN ( - - 18 )
----
NULL
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6412
SELECT ALL - CASE + + 64 WHEN + 22 THEN - 55 DIV + ( - COUNT( * ) ) - - 31 + 93 * 12 ELSE + - 90 * + 60 + - 20 + + 84 END
----
5336

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL - CASE + + 64 WHEN + 22 THEN - 55 / + ( - COUNT ( * ) ) - - 31 + 93 * 12 ELSE + - 90 * + 60 + - 20 + + 84 END
----
5336

query I rowsort
SELECT ALL 7 + - ( + 6 ) + 78
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6414
SELECT DISTINCT - 26 DIV - 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT - 26 / - 34 AS col2
----
0

query I rowsort
SELECT ALL + 72 + 83 + - 87 AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6416
SELECT - MAX( ALL - ( - 0 ) ) DIV + - MIN( - - 16 ) + + - 29 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-6416
SELECT - MAX ( ALL - ( - 0 ) ) / + - MIN ( - - 16 ) + + - 29 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT ALL - CASE + 43 WHEN + COUNT( * ) THEN NULL WHEN 64 + + + 40 + 61 + + 28 THEN - 16 / 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL - CASE + 43 WHEN + COUNT ( * ) THEN NULL WHEN 64 + + + 40 + 61 + + 28 THEN - 16 / 57 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6418
SELECT DISTINCT - COALESCE ( 37, 54 ) DIV - MIN( DISTINCT + 57 ), + 5 DIV + 74 * 54
----
0
0

skipif mysql # not compatible
query II rowsort label-6418
SELECT DISTINCT - COALESCE ( 37, 54 ) / - MIN ( DISTINCT + 57 ), + 5 / + 74 * 54
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT 54 + - - 95 - - - 4 / + + ( + CASE - - 72 WHEN - 26 THEN - - COUNT( * ) - - - 43 * - - AVG ( - ( + 50 ) ) END ) * - ( - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6419
SELECT 54 + - - 95 - - - 4 / + + ( + CASE - - 72 WHEN - 26 THEN - - COUNT ( * ) - - - 43 * - - AVG ( - ( + 50 ) ) END ) * - ( - 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT DISTINCT - CASE 63 WHEN + 11 THEN + 61 WHEN + + 34 + - COUNT( * ) - 66 * + AVG ( 93 ) THEN + 56 + + 50 / + 87 WHEN - ( + + 31 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT - CASE 63 WHEN + 11 THEN + 61 WHEN + + 34 + - COUNT ( * ) - 66 * + AVG ( 93 ) THEN + 56 + + 50 / + 87 WHEN - ( + + 31 ) THEN NULL END
----
NULL

query II rowsort
SELECT + 84 * 29 + - 19 AS col1, + 22 AS col1
----
2417
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT ALL - - SUM( ALL + + 64 ) * COUNT( * ) * 43 * - 56 + 41
----
-154071

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL - - SUM ( ALL + + 64 ) * COUNT ( * ) * 43 * - 56 + 41
----
-154071

query I rowsort
SELECT DISTINCT - 25 * - 21 * + 51
----
26775

query II rowsort
SELECT 31 - - 49, 69 * + + 16 AS col2
----
80
1104

query I rowsort
SELECT ALL - 92 * - 63 + 35 AS col1
----
5831

query I rowsort
SELECT DISTINCT NULLIF ( - - 34, - + 83 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6427
SELECT SUM( - 57 ) + + - 61 DIV + - 82 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-6427
SELECT SUM ( - 57 ) + + - 61 / + - 82 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT COUNT( * ) + - ( + 47 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-6428
SELECT COUNT ( * ) + - ( + 47 ) AS col0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-6429
SELECT - 21 DIV + COALESCE ( ( + 7 ), + ( + 82 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-6429
SELECT - 21 / + COALESCE ( ( + 7 ), + ( + 82 ) )
----
-3

query I rowsort
SELECT 69 * - + COALESCE ( 5, - + 57 + + 1 )
----
-345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6431
SELECT DISTINCT + COUNT( * ) DIV + 7 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT + COUNT ( * ) / + 7 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6432
SELECT 48 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-6432
SELECT 48 / + 51
----
0

query I rowsort
SELECT ALL - + 3 + - COALESCE ( + 87, - - 56 )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6434
SELECT CAST( - - NULLIF ( - 30, + 43 * + 70 + - 81 + - - 69 ) AS SIGNED ) + + 33 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6434
SELECT CAST ( - - NULLIF ( - 30, + 43 * + 70 + - 81 + - - 69 ) AS INTEGER ) + + 33 AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6435
SELECT - 80 + + - COUNT( * ) DIV + 85 * - 17 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6435
SELECT - 80 + + - COUNT ( * ) / + 85 * - 17 AS col0
----
-80

query I rowsort
SELECT ALL 73 * + 35
----
2555

query II rowsort
SELECT 44, + 33 col2
----
44
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6438
SELECT DISTINCT COUNT( * ) + ( + 37 ) + + 11 + 93 + COUNT( * ) * + ( + 67 ) * + CASE + COUNT( * ) WHEN 29 / 8 + + ( + 21 ) THEN + 40 / 86 - - + CASE + 81 WHEN - 32 THEN NULL ELSE + - NULLIF ( + - MIN( DISTINCT + + 36 ), - - 71 ) + + 7 END * + 38 + - 14 + + - COALESCE ( + 6, - 22 * + + 51 * + 54 / CAST( NULL AS DECIMAL ) - - 55, 73 * 55 ) + - 10 WHEN COUNT( * ) * + 9 THEN + COUNT( * ) ELSE NULL END * 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT COUNT ( * ) + ( + 37 ) + + 11 + 93 + COUNT ( * ) * + ( + 67 ) * + CASE + COUNT ( * ) WHEN 29 / 8 + + ( + 21 ) THEN + 40 / 86 - - + CASE + 81 WHEN - 32 THEN NULL ELSE + - NULLIF ( + - MIN ( DISTINCT + + 36 ), - - 71 ) + + 7 END * + 38 + - 14 + + - COALESCE ( + 6, - 22 * + + 51 * + 54 / CAST ( NULL AS REAL ) - - 55, 73 * 55 ) + - 10 WHEN COUNT ( * ) * + 9 THEN + COUNT ( * ) ELSE NULL END * 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL 67 + 96 + + + SUM( + + 78 ) AS col1
----
241

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL 67 + 96 + + + SUM ( + + 78 ) AS col1
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT DISTINCT 2 + - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT 2 + - COUNT ( * ) col1
----
1

query I rowsort
SELECT ALL 31 + - + 67 col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT SUM( + + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-6442
SELECT SUM ( + + 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT DISTINCT + COUNT( * ) * - 74 * - 61 + - + 17 * - 84
----
5942

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT + COUNT ( * ) * - 74 * - 61 + - + 17 * - 84
----
5942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6444
SELECT ALL SUM( ALL + ( + 80 ) ) * - 14 + - 98 + - - CAST( - - CAST( 23 AS SIGNED ) AS SIGNED ) + + CAST( - + CAST( - 64 AS SIGNED ) AS SIGNED ) + - - COUNT( * )
----
-1130

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL SUM ( ALL + ( + 80 ) ) * - 14 + - 98 + - - CAST ( - - CAST ( 23 AS INTEGER ) AS INTEGER ) + + CAST ( - + CAST ( - 64 AS INTEGER ) AS INTEGER ) + - - COUNT ( * )
----
-1130

query I rowsort
SELECT 44 * - 53
----
-2332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6446
SELECT DISTINCT - 83 AS col0, 77 DIV 69 + - COALESCE ( + CAST( COUNT( DISTINCT 47 ) AS SIGNED ), ( - + COUNT( * ) ) ) + - 19 + + COUNT( * ) * - 89 col2
----
-83
-108

skipif mysql # not compatible
query II rowsort label-6446
SELECT DISTINCT - 83 AS col0, 77 / 69 + - COALESCE ( + CAST ( COUNT ( DISTINCT 47 ) AS INTEGER ), ( - + COUNT ( * ) ) ) + - 19 + + COUNT ( * ) * - 89 col2
----
-83
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT SUM( - + 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-6447
SELECT SUM ( - + 85 )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6448
SELECT + 79 AS col1, CAST( + 71 AS SIGNED )
----
79
71

skipif mysql # not compatible
query II rowsort label-6448
SELECT + 79 AS col1, CAST ( + 71 AS INTEGER )
----
79
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT DISTINCT - COUNT( DISTINCT - 72 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT - COUNT ( DISTINCT - 72 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6450
SELECT ALL + 0 * - 48 - - CAST( + 75 AS SIGNED ) - + COUNT( * ) * + - 30 * - MAX( DISTINCT 32 ) col0
----
-885

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL + 0 * - 48 - - CAST ( + 75 AS INTEGER ) - + COUNT ( * ) * + - 30 * - MAX ( DISTINCT 32 ) col0
----
-885

query I rowsort
SELECT 34 - 68 AS col1
----
-34

query I rowsort
SELECT 70 * + 22
----
1540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6453
SELECT + MIN( + + COALESCE ( + CAST( NULL AS SIGNED ), + + CAST( NULL AS SIGNED ) * - 2 - 91 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6453
SELECT + MIN ( + + COALESCE ( + CAST ( NULL AS INTEGER ), + + CAST ( NULL AS INTEGER ) * - 2 - 91 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6454
SELECT ALL - NULLIF ( - - MAX( ALL - 28 ), + COALESCE ( - COUNT( * ), - + ( AVG ( + 35 ) ) * + - CAST( NULL AS SIGNED ) - NULLIF ( - + 67, + 16 ) * + 73 ) + 71 ) col0
----
28

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL - NULLIF ( - - MAX ( ALL - 28 ), + COALESCE ( - COUNT ( * ), - + ( AVG ( + 35 ) ) * + - CAST ( NULL AS INTEGER ) - NULLIF ( - + 67, + 16 ) * + 73 ) + 71 ) col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT ALL - + COUNT( * ) * 80 + + 10 * - 26 - + 69
----
-409

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL - + COUNT ( * ) * 80 + + 10 * - 26 - + 69
----
-409

query I rowsort
SELECT + - 77 * 87 AS col2
----
-6699

query II rowsort
SELECT ALL + ( + 43 ) * + 20 AS col0, 19 AS col0
----
860
19

query I rowsort
SELECT DISTINCT + 28 * - + 28 - + + 37 - - 78 + + 97
----
-646

query I rowsort
SELECT DISTINCT + + COALESCE ( - 18, - + 79 ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6460
SELECT DISTINCT + + 31 DIV 68 + + 99 col2
----
99

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT + + 31 / 68 + + 99 col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6461
SELECT + 92 * - CASE - 16 WHEN - 87 / 55 THEN + CAST( NULL AS SIGNED ) + + CAST( CAST( + + 67 AS SIGNED ) AS SIGNED ) * + 31 WHEN + COUNT( * ) THEN NULL WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6461
SELECT + 92 * - CASE - 16 WHEN - 87 / 55 THEN + CAST ( NULL AS INTEGER ) + + CAST ( CAST ( + + 67 AS INTEGER ) AS INTEGER ) * + 31 WHEN + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6462
SELECT - 61 * CAST( NULL AS SIGNED ) / - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6462
SELECT - 61 * CAST ( NULL AS INTEGER ) / - 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6463
SELECT + - COUNT( * ) AS col1, + 38 * - 78 AS col2
----
-1
-2964

skipif mysql # not compatible
query II rowsort label-6463
SELECT + - COUNT ( * ) AS col1, + 38 * - 78 AS col2
----
-1
-2964

onlyif mysql # aggregate syntax: 
query II rowsort label-6464
SELECT 54, MAX( DISTINCT + - 17 ) + 2 AS col1
----
54
-15

skipif mysql # not compatible
query II rowsort label-6464
SELECT 54, MAX ( DISTINCT + - 17 ) + 2 AS col1
----
54
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT ALL - 81 * + + CASE 11 WHEN - 56 THEN - 66 WHEN - - ( + COUNT( * ) ) * + + 76 THEN NULL END + - 17 * - 22 + - 89 * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL - 81 * + + CASE 11 WHEN - 56 THEN - 66 WHEN - - ( + COUNT ( * ) ) * + + 76 THEN NULL END + - 17 * - 22 + - 89 * - 33
----
NULL

query I rowsort
SELECT - + 75 * - NULLIF ( 16, - 84 - - - ( + 6 ) + + 87 )
----
1200

query I rowsort
SELECT DISTINCT - ( - - 81 ) + - + 91 - + 98 * + 47 * - 57 - + 56
----
262314

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL + 89 + + CASE 26 WHEN - + 61 THEN - 62 - 68 END + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL + 89 + + CASE 26 WHEN - + 61 THEN - 62 - 68 END + - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT MIN( DISTINCT - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-6469
SELECT MIN ( DISTINCT - 68 )
----
-68

query I rowsort
SELECT ALL - - 76 + - 53 AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6471
SELECT ALL - 53, + ( ( - ( - MIN( ALL 82 ) ) ) ) AS col2, CAST( NULL AS SIGNED ) + 30 * - - NULLIF ( 25, - NULLIF ( - 28, + 7 ) - + 57 ) + - COUNT( * ) col1
----
-53
82
NULL

skipif mysql # not compatible
query III rowsort label-6471
SELECT ALL - 53, + ( ( - ( - MIN ( ALL 82 ) ) ) ) AS col2, CAST ( NULL AS INTEGER ) + 30 * - - NULLIF ( 25, - NULLIF ( - 28, + 7 ) - + 57 ) + - COUNT ( * ) col1
----
-53
82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT DISTINCT - MAX( 88 ) + - 78 AS col2
----
-166

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT - MAX ( 88 ) + - 78 AS col2
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT ALL + COUNT( * ) + + ( + 85 ) * + 39 * 57
----
188956

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL + COUNT ( * ) + + ( + 85 ) * + 39 * 57
----
188956

onlyif mysql # DIV for integer division: 
query I rowsort label-6474
SELECT + 61 DIV 48 DIV 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6474
SELECT + 61 / 48 / 71 AS col0
----
0

query I rowsort
SELECT - 73 - 8
----
-81

query I rowsort
SELECT DISTINCT ( 68 )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6477
SELECT ALL NULLIF ( 59, - ( - COUNT( * ) ) ) DIV - + COUNT( DISTINCT + + 91 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL NULLIF ( 59, - ( - COUNT ( * ) ) ) / - + COUNT ( DISTINCT + + 91 ) AS col1
----
-59

query I rowsort
SELECT ALL + 71 + + 31 col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT DISTINCT ( 75 ) * + 37 * + ( + - 69 ) - - 19 * - - 27 * - ( - + 83 ) - - 65 * COUNT( * ) + - 98 + - 84 + + CASE 98 WHEN + ( - + COALESCE ( - 43, + COUNT( - + 68 ) * 50 + - - SUM( DISTINCT + CASE - 58 WHEN - 61 + - 59 THEN NULL ELSE - + 78 * + 81 END ) ) ) / - 5 + - + COUNT( * ) / + CASE - + 31 WHEN - 89 * + 58 THEN + 85 WHEN - 44 THEN - NULLIF ( COUNT( * ), + 42 / 39 + - COUNT( DISTINCT 89 ) * NULLIF ( + ( + 85 ), - 92 * - 24 ) ) * - 98 + 84 * + COUNT( * ) WHEN 20 * 86 THEN NULL WHEN COUNT( * ) * 43 THEN NULL ELSE NULL END * - COUNT( * ) + - 96 * + 44 THEN NULL WHEN 26 THEN + 3 END + + SUM( ALL - 88 - + 47 ) * - 19 / - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6479
SELECT DISTINCT ( 75 ) * + 37 * + ( + - 69 ) - - 19 * - - 27 * - ( - + 83 ) - - 65 * COUNT ( * ) + - 98 + - 84 + + CASE 98 WHEN + ( - + COALESCE ( - 43, + COUNT ( - + 68 ) * 50 + - - SUM ( DISTINCT + CASE - 58 WHEN - 61 + - 59 THEN NULL ELSE - + 78 * + 81 END ) ) ) / - 5 + - + COUNT ( * ) / + CASE - + 31 WHEN - 89 * + 58 THEN + 85 WHEN - 44 THEN - NULLIF ( COUNT ( * ), + 42 / 39 + - COUNT ( DISTINCT 89 ) * NULLIF ( + ( + 85 ), - 92 * - 24 ) ) * - 98 + 84 * + COUNT ( * ) WHEN 20 * 86 THEN NULL WHEN COUNT ( * ) * 43 THEN NULL ELSE NULL END * - COUNT ( * ) + - 96 * + 44 THEN NULL WHEN 26 THEN + 3 END + + SUM ( ALL - 88 - + 47 ) * - 19 / - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL ( + ( - + COALESCE ( + MAX( + 66 ), + 34 ) ) ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL ( + ( - + COALESCE ( + MAX ( + 66 ), + 34 ) ) ) AS col0
----
-66

query I rowsort
SELECT ALL + ( - ( - 48 ) ) * 37 * + ( + 83 ) AS col1
----
147408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT - 66 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6482
SELECT - 66 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT ALL 77 - + COUNT( * ) + - 92 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL 77 - + COUNT ( * ) + - 92 AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6484
SELECT - 83 * CAST( COUNT( * ) AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-6484
SELECT - 83 * CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6485
SELECT - CASE - 23 WHEN 94 / 91 * - 48 + CAST( NULL AS SIGNED ) + - 66 + - + 47 THEN NULL WHEN - 67 * - + 22 THEN 42 * + + 95 * + 37 WHEN - COUNT( * ) * - - COUNT( * ) * - + 94 * - 17 + + - COUNT( * ) THEN NULL END / + ( + 43 ) + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT - CASE - 23 WHEN 94 / 91 * - 48 + CAST ( NULL AS INTEGER ) + - 66 + - + 47 THEN NULL WHEN - 67 * - + 22 THEN 42 * + + 95 * + 37 WHEN - COUNT ( * ) * - - COUNT ( * ) * - + 94 * - 17 + + - COUNT ( * ) THEN NULL END / + ( + 43 ) + 98 AS col1
----
NULL

query II rowsort
SELECT + 36 + + 93, 63 * 56 col2
----
129
3528

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6487
SELECT ( - 46 ) AS col1, 5 * - CAST( NULL AS DECIMAL ) / 26 AS col0
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-6487
SELECT ( - 46 ) AS col1, 5 * - CAST ( NULL AS REAL ) / 26 AS col0
----
-46
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6488
SELECT DISTINCT - CASE 43 WHEN 65 * 22 + - ( + 62 ) THEN NULL WHEN - 45 + + 54 + + 59 / 42 THEN 70 ELSE + 36 END * + 7 + 1 AS col0, - 24 + + 77 * - + COUNT( * ) AS col0
----
-251
-101

skipif mysql # not compatible
query II rowsort label-6488
SELECT DISTINCT - CASE 43 WHEN 65 * 22 + - ( + 62 ) THEN NULL WHEN - 45 + + 54 + + 59 / 42 THEN 70 ELSE + 36 END * + 7 + 1 AS col0, - 24 + + 77 * - + COUNT ( * ) AS col0
----
-251
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT ALL + CAST( - - AVG ( ALL + 1 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL + CAST ( - - AVG ( ALL + 1 ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT DISTINCT + SUM( DISTINCT + 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT + SUM ( DISTINCT + 98 ) AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6491
SELECT CASE + COUNT( DISTINCT 12 ) WHEN 94 * - + COALESCE ( - ( + + 10 ), + COUNT( * ) * - 77 * - + 38 * + 37 + - - 22 * + - 45 * + 29 - + + 62 ) THEN 73 + 42 * - 22 * - 30 END / - 52 * - 52 + - + COALESCE ( - 75, MIN( ALL - - 51 ) + + 52, - ( - 45 ) / - + NULLIF ( 59, - + CAST( - 1 AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT CASE + COUNT ( DISTINCT 12 ) WHEN 94 * - + COALESCE ( - ( + + 10 ), + COUNT ( * ) * - 77 * - + 38 * + 37 + - - 22 * + - 45 * + 29 - + + 62 ) THEN 73 + 42 * - 22 * - 30 END / - 52 * - 52 + - + COALESCE ( - 75, MIN ( ALL - - 51 ) + + 52, - ( - 45 ) / - + NULLIF ( 59, - + CAST ( - 1 AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT DISTINCT + + COUNT( DISTINCT + - 76 )
----
1

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT + + COUNT ( DISTINCT + - 76 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT + COUNT( - + 41 ) * 42 * - - 45 - - 72
----
1962

skipif mysql # not compatible
query I rowsort label-6493
SELECT + COUNT ( - + 41 ) * 42 * - - 45 - - 72
----
1962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6494
SELECT + 37 + - CAST( + - COUNT( * ) AS SIGNED ) + 47 col1
----
85

skipif mysql # not compatible
query I rowsort label-6494
SELECT + 37 + - CAST ( + - COUNT ( * ) AS INTEGER ) + 47 col1
----
85

query I rowsort
SELECT + + 65 * 43 * - + 59
----
-164905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6496
SELECT COUNT( * ) * COUNT( DISTINCT - - 83 ) * + ( - - 30 ) + COALESCE ( + AVG ( ALL 25 ), 89 ) * + 41 + COUNT( * ) * - 67 + CAST( NULL AS SIGNED ) * - + 80 * + 88 * + 14 + + - 93 AS col0, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6496
SELECT COUNT ( * ) * COUNT ( DISTINCT - - 83 ) * + ( - - 30 ) + COALESCE ( + AVG ( ALL 25 ), 89 ) * + 41 + COUNT ( * ) * - 67 + CAST ( NULL AS INTEGER ) * - + 80 * + 88 * + 14 + + - 93 AS col0, + COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT DISTINCT 24 * - 84 + 63 col0
----
-1953

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT ALL + MAX( ALL 35 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL + MAX ( ALL 35 ) AS col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6499
SELECT + 12 DIV 6
----
2

skipif mysql # not compatible
query I rowsort label-6499
SELECT + 12 / 6
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT ALL + 23 * + 35 + COUNT( * )
----
806

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL + 23 * + 35 + COUNT ( * )
----
806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6501
SELECT DISTINCT + + 55 * + COALESCE ( 68, - 29 + - - 53 + ( + 4 ) DIV + 0 * + 31 ) + - + CASE - 71 WHEN - + 72 THEN NULL ELSE - 45 END - + - ( - + COALESCE ( 27, - 65 * + 85, + 92 ) ) * - 25 * + - COUNT( * ) + 88 + + - COUNT( * )
----
3197

skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT + + 55 * + COALESCE ( 68, - 29 + - - 53 + ( + 4 ) / + 0 * + 31 ) + - + CASE - 71 WHEN - + 72 THEN NULL ELSE - 45 END - + - ( - + COALESCE ( 27, - 65 * + 85, + 92 ) ) * - 25 * + - COUNT ( * ) + 88 + + - COUNT ( * )
----
3197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6502
SELECT ALL - - 56 * + - 86 + - ( + 14 ) + COUNT( * ) + 14 + 55 - NULLIF ( - COALESCE ( COUNT( DISTINCT + - ( - + 38 ) ), - 62 DIV + COUNT( * ) + - 55 * - COUNT( * ) ), 4 * + 55 + - + 88 * + 17 ) DIV - 27 DIV + 15 DIV 8
----
-4760

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL - - 56 * + - 86 + - ( + 14 ) + COUNT ( * ) + 14 + 55 - NULLIF ( - COALESCE ( COUNT ( DISTINCT + - ( - + 38 ) ), - 62 / + COUNT ( * ) + - 55 * - COUNT ( * ) ), 4 * + 55 + - + 88 * + 17 ) / - 27 / + 15 / 8
----
-4760

query I rowsort
SELECT ALL + + 90 * - 63 + - 49 AS col0
----
-5719

onlyif mysql # DIV for integer division: 
query I rowsort label-6504
SELECT DISTINCT + + 3 DIV - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT + + 3 / - 69 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6505
SELECT ALL + 29 * COUNT( * ) * - 19 - ( + - 79 ) + 77 + + CAST( NULL AS DECIMAL ) * - COUNT( * ) * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL + 29 * COUNT ( * ) * - 19 - ( + - 79 ) + 77 + + CAST ( NULL AS REAL ) * - COUNT ( * ) * 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6506
SELECT CASE 75 WHEN - + 75 + 83 / AVG ( - 73 ) THEN NULL ELSE - + 71 / + + 75 + + CAST( NULL AS SIGNED ) * - - 30 * - 59 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6506
SELECT CASE 75 WHEN - + 75 + 83 / AVG ( - 73 ) THEN NULL ELSE - + 71 / + + 75 + + CAST ( NULL AS INTEGER ) * - - 30 * - 59 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6507
SELECT - CAST( NULL AS SIGNED ), + ( ( + 64 ) ) AS col0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-6507
SELECT - CAST ( NULL AS INTEGER ), + ( ( + 64 ) ) AS col0
----
NULL
64

query I rowsort
SELECT - 55 - 14 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT - MIN( 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6509
SELECT - MIN ( 39 ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT ALL + COUNT( * ) - 32 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL + COUNT ( * ) - 32 AS col2
----
-31

query I rowsort
SELECT ALL + 40 - + 30 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT - 19 + - + MAX( ( - 74 ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6512
SELECT - 19 + - + MAX ( ( - 74 ) ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT DISTINCT + 67 * + COUNT( ALL - ( + 27 ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT + 67 * + COUNT ( ALL - ( + 27 ) ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-6514
SELECT ALL COALESCE ( 44, - 6 + COUNT( DISTINCT + - 2 ) ), ( + + 40 ) * - - 90 AS col0
----
44
3600

skipif mysql # not compatible
query II rowsort label-6514
SELECT ALL COALESCE ( 44, - 6 + COUNT ( DISTINCT + - 2 ) ), ( + + 40 ) * - - 90 AS col0
----
44
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT DISTINCT ( MIN( + - 7 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-6515
SELECT DISTINCT ( MIN ( + - 7 ) )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT - 83 * - COUNT( * ) col2
----
83

skipif mysql # not compatible
query I rowsort label-6516
SELECT - 83 * - COUNT ( * ) col2
----
83

query I rowsort
SELECT - 48 + 0
----
-48

query I rowsort
SELECT DISTINCT + 22 - ( 75 ) + 35 - + - 52 * - - 94 + - 43 + + - 12 + - + 32 AS col1
----
4783

onlyif mysql # DIV for integer division: 
query I rowsort label-6519
SELECT DISTINCT + 96 DIV - 96 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT + 96 / - 96 AS col0
----
-1

query I rowsort
SELECT DISTINCT + + 39 * - 98
----
-3822

query I rowsort
SELECT 98 * 92
----
9016

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT ALL + COUNT( * ) * + - 9 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL + COUNT ( * ) * + - 9 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT - MIN( + 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-6523
SELECT - MIN ( + 90 ) AS col1
----
-90

query I rowsort
SELECT + 74 - - 76
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT DISTINCT + 81 + COUNT( ALL - 45 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT + 81 + COUNT ( ALL - 45 ) AS col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6526
SELECT - 1 * - + COUNT( * ) DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-6526
SELECT - 1 * - + COUNT ( * ) / - 87
----
0

query I rowsort
SELECT ALL - - 40 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6528
SELECT ALL + CAST( + - MIN( DISTINCT - + ( 24 ) ) AS SIGNED ) + - 29 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL + CAST ( + - MIN ( DISTINCT - + ( 24 ) ) AS INTEGER ) + - 29 AS col0
----
-5

query I rowsort
SELECT DISTINCT - 62 + - 8 * - NULLIF ( 32, - + 84 ) * - 22 + - - 96
----
-5598

onlyif mysql # DIV for integer division: 
query I rowsort label-6530
SELECT ALL 16 + + - 72 DIV 9 - + 24 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL 16 + + - 72 / 9 - + 24 AS col2
----
-16

query I rowsort
SELECT ALL + 29 + + 95 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT DISTINCT COALESCE ( + 47, 43 ) * + COALESCE ( 91, + 18, - + MAX( + 64 ) ) - + 57
----
4220

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT COALESCE ( + 47, 43 ) * + COALESCE ( 91, + 18, - + MAX ( + 64 ) ) - + 57
----
4220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6533
SELECT ALL 43 * + 67 * + COALESCE ( + COUNT( * ), + SUM( ALL 31 ) * - - 19 * - 0 * 49, + 76 * - - ( ( + - NULLIF ( 35, - CAST( NULL AS SIGNED ) ) ) ) DIV + - ( - 35 ) * + + 82 + + - ( + 99 ) ) col2
----
2881

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL 43 * + 67 * + COALESCE ( + COUNT ( * ), + SUM ( ALL 31 ) * - - 19 * - 0 * 49, + 76 * - - ( ( + - NULLIF ( 35, - CAST ( NULL AS INTEGER ) ) ) ) / + - ( - 35 ) * + + 82 + + - ( + 99 ) ) col2
----
2881

query I rowsort
SELECT DISTINCT + 79 + + - 54 AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6535
SELECT ALL ( ( + COUNT( * ) ) ) * - 98 * - 73 / 48 + SUM( + CAST( NULL AS SIGNED ) ) + 30 / CASE 60 WHEN + 41 / - - 46 THEN 38 / - 56 + 97 - 43 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL ( ( + COUNT ( * ) ) ) * - 98 * - 73 / 48 + SUM ( + CAST ( NULL AS INTEGER ) ) + 30 / CASE 60 WHEN + 41 / - - 46 THEN 38 / - 56 + 97 - 43 ELSE NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6536
SELECT DISTINCT 2 AS col0, - 31 * - 58 + + 20 + - 46 DIV 7 DIV - 73 + + 34 AS col0
----
2
1852

skipif mysql # not compatible
query II rowsort label-6536
SELECT DISTINCT 2 AS col0, - 31 * - 58 + + 20 + - 46 / 7 / - 73 + + 34 AS col0
----
2
1852

query I rowsort
SELECT 19 * + 33 col1
----
627

onlyif mysql # DIV for integer division: 
query I rowsort label-6538
SELECT ALL 78 DIV 11
----
7

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL 78 / 11
----
7

query II rowsort
SELECT 78 AS col0, 18
----
78
18

query II rowsort
SELECT ALL 17, 6 AS col0
----
17
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6541
SELECT - 19 AS col1, COALESCE ( - COUNT( + 38 ), - COUNT( * ), 48 DIV + 72 ) DIV - + COUNT( * )
----
-19
1

skipif mysql # not compatible
query II rowsort label-6541
SELECT - 19 AS col1, COALESCE ( - COUNT ( + 38 ), - COUNT ( * ), 48 / + 72 ) / - + COUNT ( * )
----
-19
1

query II rowsort
SELECT - 72 AS col0, 27
----
-72
27

onlyif mysql # DIV for integer division: 
query II rowsort label-6543
SELECT ALL 28 col1, - 23 DIV 92
----
28
0

skipif mysql # not compatible
query II rowsort label-6543
SELECT ALL 28 col1, - 23 / 92
----
28
0

query I rowsort
SELECT 70 - + 7 + 98 * - - 50 * - - 68 + - - 39
----
333302

query I rowsort
SELECT ALL + 19 * + + 57 AS col1
----
1083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6546
SELECT ALL + 10 * - COALESCE ( - 69, - CASE SUM( + 79 ) WHEN - - 53 THEN NULL WHEN 90 THEN + + 82 WHEN 12 + 70 * - + 37 THEN - CAST( NULL AS SIGNED ) DIV + 52 + + 44 + 29 WHEN CAST( NULL AS DECIMAL ) THEN + 5 ELSE NULL END ) AS col0
----
690

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL + 10 * - COALESCE ( - 69, - CASE SUM ( + 79 ) WHEN - - 53 THEN NULL WHEN 90 THEN + + 82 WHEN 12 + 70 * - + 37 THEN - CAST ( NULL AS INTEGER ) / + 52 + + 44 + 29 WHEN CAST ( NULL AS REAL ) THEN + 5 ELSE NULL END ) AS col0
----
690

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT MIN( - + 74 ) + + 99
----
25

skipif mysql # not compatible
query I rowsort label-6547
SELECT MIN ( - + 74 ) + + 99
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6548
SELECT + CAST( - NULLIF ( 6, - COUNT( * ) ) AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-6548
SELECT + CAST ( - NULLIF ( 6, - COUNT ( * ) ) AS INTEGER )
----
-6

query I rowsort
SELECT ALL - - 49 + + 43 AS col2
----
92

query I rowsort
SELECT DISTINCT ( + + 42 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6551
SELECT DISTINCT - COUNT( * ) + CAST( - 51 AS SIGNED ) - - 63 + - - 78 col2
----
89

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT - COUNT ( * ) + CAST ( - 51 AS INTEGER ) - - 63 + - - 78 col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6552
SELECT + MIN( DISTINCT + 83 ) / 34 * - 30 + + 74 / - 98 + 7 + - 81 + + - 28 * CAST( NULL AS SIGNED ) + + + 97 * - 5 * - + 77 - - - 57 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6552
SELECT + MIN ( DISTINCT + 83 ) / 34 * - 30 + + 74 / - 98 + 7 + - 81 + + - 28 * CAST ( NULL AS INTEGER ) + + + 97 * - 5 * - + 77 - - - 57 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6553
SELECT ALL - - CASE - + 89 WHEN + 30 DIV + COUNT( * ) + + 20 * + 60 THEN NULL ELSE - - 90 DIV 77 * - COALESCE ( + 2, 89 DIV + 85, + COUNT( * ) * + 71 ) END, 97 + + 32 * - 91 AS col0
----
-2
-2815

skipif mysql # not compatible
query II rowsort label-6553
SELECT ALL - - CASE - + 89 WHEN + 30 / + COUNT ( * ) + + 20 * + 60 THEN NULL ELSE - - 90 / 77 * - COALESCE ( + 2, 89 / + 85, + COUNT ( * ) * + 71 ) END, 97 + + 32 * - 91 AS col0
----
-2
-2815

query I rowsort
SELECT ALL - - 74 + 19
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT - SUM( ALL 75 ) + + COUNT( * ) col1
----
-74

skipif mysql # not compatible
query I rowsort label-6555
SELECT - SUM ( ALL 75 ) + + COUNT ( * ) col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6556
SELECT CAST( NULL AS SIGNED ) * + + 94 + ( - - 9 ) * + 99 + 54 + + + 46 / AVG ( - - 89 ) * - + CAST( 8 AS SIGNED ), COUNT( ALL - - 25 ) - 1 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6556
SELECT CAST ( NULL AS INTEGER ) * + + 94 + ( - - 9 ) * + 99 + 54 + + + 46 / AVG ( - - 89 ) * - + CAST ( 8 AS INTEGER ), COUNT ( ALL - - 25 ) - 1 AS col2
----
NULL
0

query I rowsort
SELECT ALL - + 61 + 96
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6558
SELECT ALL - + CASE 44 WHEN - COUNT( ALL + + COALESCE ( + ( - ( 91 ) ), + + 27 ) ) THEN + CAST( - - 88 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL - + CASE 44 WHEN - COUNT ( ALL + + COALESCE ( + ( - ( 91 ) ), + + 27 ) ) THEN + CAST ( - - 88 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT ALL + + 82 + ( CASE + 5 WHEN - + 16 THEN + 49 / + 69 END ) + ( 37 ) * + 50 * + 13 + 5 + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL + + 82 + ( CASE + 5 WHEN - + 16 THEN + 49 / + 69 END ) + ( 37 ) * + 50 * + 13 + 5 + + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6560
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - 6 * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - 6 * 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT ALL - + COUNT( 48 ) * + 11 + 29 * - 30
----
-881

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL - + COUNT ( 48 ) * + 11 + 29 * - 30
----
-881

query I rowsort
SELECT 61 + - 17 col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6563
SELECT ALL + 58 + - 12 + - ( - 50 ) DIV 34 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL + 58 + - 12 + - ( - 50 ) / 34 AS col0
----
47

query I rowsort
SELECT ALL + - 57 * - 31 + - COALESCE ( + 36, 89 + - 0 ) * 79
----
-1077

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT 38 * + + COALESCE ( - - ( COUNT( * ) ), + 25 ) + 63 + 41
----
142

skipif mysql # not compatible
query I rowsort label-6565
SELECT 38 * + + COALESCE ( - - ( COUNT ( * ) ), + 25 ) + 63 + 41
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT 61 * - - NULLIF ( + 33, - 38 + + COUNT( * ) ) * + + 43 * COUNT( * ) + ( + 33 )
----
86592

skipif mysql # not compatible
query I rowsort label-6566
SELECT 61 * - - NULLIF ( + 33, - 38 + + COUNT ( * ) ) * + + 43 * COUNT ( * ) + ( + 33 )
----
86592

query I rowsort
SELECT 41 * 78
----
3198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6568
SELECT DISTINCT - CAST( - - ( 15 ) AS SIGNED ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT - CAST ( - - ( 15 ) AS INTEGER ) AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6569
SELECT ALL 90 * MIN( - 19 ) * + + MAX( DISTINCT + + 32 ) + - CAST( + + 72 AS SIGNED ) AS col2, - COUNT( * )
----
-54792
-1

skipif mysql # not compatible
query II rowsort label-6569
SELECT ALL 90 * MIN ( - 19 ) * + + MAX ( DISTINCT + + 32 ) + - CAST ( + + 72 AS INTEGER ) AS col2, - COUNT ( * )
----
-54792
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6570
SELECT ALL 37 DIV + 47 * 68 * + + 54
----
0

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL 37 / + 47 * 68 * + + 54
----
0

query II rowsort
SELECT 28 * 98 AS col1, ( - 26 )
----
2744
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6572
SELECT - CASE - 37 WHEN - COUNT( * ) + 83 - 12 THEN NULL WHEN CAST( NULL AS SIGNED ) / + + 56 THEN + ( + 77 ) * 10 + 30 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6572
SELECT - CASE - 37 WHEN - COUNT ( * ) + 83 - 12 THEN NULL WHEN CAST ( NULL AS INTEGER ) / + + 56 THEN + ( + 77 ) * 10 + 30 END AS col1
----
NULL

query I rowsort
SELECT + 36 + - 2
----
34

query I rowsort
SELECT ALL - 23 * 55 AS col1
----
-1265

query II rowsort
SELECT + 13 + 12 AS col1, 11
----
25
11

query I rowsort
SELECT DISTINCT 36 * + ( 43 )
----
1548

query I rowsort
SELECT DISTINCT 53 * - 62
----
-3286

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT ALL - COUNT( ALL + 66 ) + - + 0
----
-1

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL - COUNT ( ALL + 66 ) + - + 0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT + 83 + + + COUNT( + + 63 ) + - 48 * COUNT( * ) * + 40 + COUNT( * ) AS col1
----
-1835

skipif mysql # not compatible
query I rowsort label-6579
SELECT + 83 + + + COUNT ( + + 63 ) + - 48 * COUNT ( * ) * + 40 + COUNT ( * ) AS col1
----
-1835

onlyif mysql # DIV for integer division: 
query I rowsort label-6580
SELECT DISTINCT 23 DIV + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT 23 / + 72 AS col1
----
0

query I rowsort
SELECT ALL 41 + - + 59 + + - 87 * 42 AS col2
----
-3672

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT + ( - 65 ) * 89 + - 94 * - + COUNT( * )
----
-5691

skipif mysql # not compatible
query I rowsort label-6582
SELECT + ( - 65 ) * 89 + - 94 * - + COUNT ( * )
----
-5691

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT - - 77 * + ( + - MIN( DISTINCT - - 44 ) ) AS col0
----
-3388

skipif mysql # not compatible
query I rowsort label-6583
SELECT - - 77 * + ( + - MIN ( DISTINCT - - 44 ) ) AS col0
----
-3388

query I rowsort
SELECT ALL + ( - 18 ) + + 86 AS col2
----
68

query I rowsort
SELECT + - 8 * ( - 21 ) - + 38 AS col0
----
130

query I rowsort
SELECT - + 3 + - - 60
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-6587
SELECT ALL + 22 + + - 55 AS col2, COUNT( * ) - 69 - 17 AS col0
----
-33
-85

skipif mysql # not compatible
query II rowsort label-6587
SELECT ALL + 22 + + - 55 AS col2, COUNT ( * ) - 69 - 17 AS col0
----
-33
-85

query I rowsort
SELECT DISTINCT - 64 * - 66 - + 75 AS col1
----
4149

query I rowsort
SELECT ALL + 17 * - ( + + 80 ) + + NULLIF ( + 79, - 61 )
----
-1281

query I rowsort
SELECT DISTINCT - - 67 * 50
----
3350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6591
SELECT + 58 * - + NULLIF ( - 1, ( - - COALESCE ( COALESCE ( - 55, + 1 DIV + 8, 85 + + 28 * + 19 * - + 39 ), + - 41 * CAST( NULL AS SIGNED ), - - 56 * 65 ) ) * 18 ) DIV COUNT( * ) DIV - CASE + COUNT( * ) WHEN - ( + 98 ) THEN - NULLIF ( + 34, - MIN( - + 45 ) ) + + COUNT( * ) + + + 71 ELSE - - 7 * + + 15 + 10 END col0, 46 + - COUNT( ALL + - 84 )
----
0
45

skipif mysql # not compatible
query II rowsort label-6591
SELECT + 58 * - + NULLIF ( - 1, ( - - COALESCE ( COALESCE ( - 55, + 1 / + 8, 85 + + 28 * + 19 * - + 39 ), + - 41 * CAST ( NULL AS INTEGER ), - - 56 * 65 ) ) * 18 ) / COUNT ( * ) / - CASE + COUNT ( * ) WHEN - ( + 98 ) THEN - NULLIF ( + 34, - MIN ( - + 45 ) ) + + COUNT ( * ) + + + 71 ELSE - - 7 * + + 15 + 10 END col0, 46 + - COUNT ( ALL + - 84 )
----
0
45

query I rowsort
SELECT ALL - 24 * 82 - + - 77 AS col2
----
-1891

query I rowsort
SELECT - + 66 * 28 * + + 80 - - - 68 AS col0
----
-147908

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT 32 * + COUNT( * ) - - 35
----
67

skipif mysql # not compatible
query I rowsort label-6594
SELECT 32 * + COUNT ( * ) - - 35
----
67

query I rowsort
SELECT ALL + 2 * - 43 + 12 - - 14 AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6596
SELECT - - COUNT( * ) * - 5 - + + 35 + + 88 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT - - COUNT ( * ) * - 5 - + + 35 + + 88 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 96 + + - 57 AS col0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-6598
SELECT DISTINCT - 8 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT - 8 / 86
----
0

query I rowsort
SELECT ALL + ( + 10 ) col1
----
10

query I rowsort
SELECT DISTINCT - 99 * - - 49
----
-4851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6601
SELECT + COUNT( * ) DIV + ( - 11 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6601
SELECT + COUNT ( * ) / + ( - 11 ) AS col1
----
0

query I rowsort
SELECT - 61 * - 52 * 21 * 60
----
3996720

query I rowsort
SELECT + 25 * + + 57
----
1425

query II rowsort
SELECT DISTINCT + COALESCE ( + - 26, + 68 ) AS col0, + 67 * 82
----
-26
5494

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6605
SELECT ALL - CAST( NULL AS DECIMAL ) * 67 + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL - CAST ( NULL AS REAL ) * 67 + 37 AS col2
----
NULL

query I rowsort
SELECT ALL + 53 * 27 * + 20 + + 89 col0
----
28709

query I rowsort
SELECT DISTINCT ( + 12 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT SUM( DISTINCT + - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-6608
SELECT SUM ( DISTINCT + - 90 )
----
-90

query I rowsort
SELECT - 53 * - - 18
----
-954

query I rowsort
SELECT + 59 * + 82
----
4838

query I rowsort
SELECT - 71 - + - 5
----
-66

query I rowsort
SELECT - ( ( 33 ) ) - 29
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT + COUNT( * ) + + 23 col2
----
24

skipif mysql # not compatible
query I rowsort label-6613
SELECT + COUNT ( * ) + + 23 col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT DISTINCT - 15 * - 14 * + + ( - ( + - COUNT( * ) ) ) + - 8
----
202

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT - 15 * - 14 * + + ( - ( + - COUNT ( * ) ) ) + - 8
----
202

query I rowsort
SELECT ALL + + 90 + + 95 + - - 93 * - 40
----
-3535

query II rowsort
SELECT - 82 AS col2, - 85
----
-82
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT ALL 37 * - ( - ( 95 ) ) + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL 37 * - ( - ( 95 ) ) + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6618
SELECT ALL 6 + - 69 DIV - 8 + + - 82 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL 6 + - 69 / - 8 + + - 82 AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6619
SELECT + 34 + + + SUM( - 77 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6619
SELECT + 34 + + + SUM ( - 77 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT + COUNT( * ) + ( - 29 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-6620
SELECT + COUNT ( * ) + ( - 29 ) AS col1
----
-28

query I rowsort
SELECT + + 5 * + 86
----
430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6622
SELECT ALL + + CAST( 46 AS SIGNED ) col2
----
46

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL + + CAST ( 46 AS INTEGER ) col2
----
46

query I rowsort
SELECT DISTINCT - + 40 * + - ( - 76 )
----
-3040

query I rowsort
SELECT + 92 * - + 86
----
-7912

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6625
SELECT + - 32, + 66 - + - 7 DIV 29 + - COALESCE ( - + 32, COUNT( * ) DIV + 67, 25 ) AS col2
----
-32
98

skipif mysql # not compatible
query II rowsort label-6625
SELECT + - 32, + 66 - + - 7 / 29 + - COALESCE ( - + 32, COUNT ( * ) / + 67, 25 ) AS col2
----
-32
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6626
SELECT - 19 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT - 19 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT ALL CASE - 91 WHEN + SUM( ALL - 43 ) THEN - - 67 WHEN - + 34 + + 85 + - 50 - 15 - + 54 / 89 THEN + - 73 ELSE - 94 END * + 92 * 50 * + 32 AS col1
----
-13836800

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL CASE - 91 WHEN + SUM ( ALL - 43 ) THEN - - 67 WHEN - + 34 + + 85 + - 50 - 15 - + 54 / 89 THEN + - 73 ELSE - 94 END * + 92 * 50 * + 32 AS col1
----
-13836800

query I rowsort
SELECT + + 9 * 16
----
144

query I rowsort
SELECT - 73 * 90
----
-6570

query I rowsort
SELECT ALL + CASE - 43 WHEN - 36 THEN NULL ELSE - - ( 33 ) END
----
33

query I rowsort
SELECT 80 * - 60
----
-4800

query I rowsort
SELECT ALL + 50 + 9 + + 94
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-6633
SELECT 70 + - 68, COUNT( * ) * - COUNT( * ) + - 93 AS col2
----
2
-94

skipif mysql # not compatible
query II rowsort label-6633
SELECT 70 + - 68, COUNT ( * ) * - COUNT ( * ) + - 93 AS col2
----
2
-94

onlyif mysql # DIV for integer division: 
query II rowsort label-6634
SELECT DISTINCT + 78 + 15 AS col0, 34 + 30 + 93 DIV - 99 * - 30 + + - 4 * - 1 AS col2
----
93
68

skipif mysql # not compatible
query II rowsort label-6634
SELECT DISTINCT + 78 + 15 AS col0, 34 + 30 + 93 / - 99 * - 30 + + - 4 * - 1 AS col2
----
93
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6635
SELECT ( + ( 85 ) ) * 18 + - + NULLIF ( - ( ( - + CASE + 22 WHEN - - 28 + + 92 THEN NULL ELSE - NULLIF ( - 7, 15 ) * + - 16 END ) ), - + 28 * + 72 + + 54 ) * + CAST( NULL AS DECIMAL ) - COUNT( * ) * + COUNT( * ) * - - 35 / 86 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT ( + ( 85 ) ) * 18 + - + NULLIF ( - ( ( - + CASE + 22 WHEN - - 28 + + 92 THEN NULL ELSE - NULLIF ( - 7, 15 ) * + - 16 END ) ), - + 28 * + 72 + + 54 ) * + CAST ( NULL AS REAL ) - COUNT ( * ) * + COUNT ( * ) * - - 35 / 86 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6636
SELECT 82 * + NULLIF ( + + 99, CAST( NULL AS SIGNED ) ) * 42 * 61 col0
----
20798316

skipif mysql # not compatible
query I rowsort label-6636
SELECT 82 * + NULLIF ( + + 99, CAST ( NULL AS INTEGER ) ) * 42 * 61 col0
----
20798316

query I rowsort
SELECT ALL + 60 * - 78
----
-4680

query I rowsort
SELECT ALL + 51 + - 38 * - + 2 * - 0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT 60 + + + 2 + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-6639
SELECT 60 + + + 2 + - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6640
SELECT ALL - 87 + + COUNT( * ) DIV - - 96
----
-87

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL - 87 + + COUNT ( * ) / - - 96
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6641
SELECT 69 + - - CAST( - - 20 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-6641
SELECT 69 + - - CAST ( - - 20 AS INTEGER )
----
89

query I rowsort
SELECT 5 - 67
----
-62

query II rowsort
SELECT DISTINCT - 78 * 34, 37 + + 35 AS col0
----
-2652
72

query I rowsort
SELECT 79 + 3 AS col0
----
82

query I rowsort
SELECT ALL + 15 + 71 + + 71
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT ALL - 88 + ( - COUNT( * ) )
----
-89

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL - 88 + ( - COUNT ( * ) )
----
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6647
SELECT ALL 91 - - - 6 AS col2, + NULLIF ( CAST( NULL AS DECIMAL ), 84 - + 12 )
----
85
NULL

skipif mysql # not compatible
query II rowsort label-6647
SELECT ALL 91 - - - 6 AS col2, + NULLIF ( CAST ( NULL AS REAL ), 84 - + 12 )
----
85
NULL

query I rowsort
SELECT + ( 63 ) + 67
----
130

query I rowsort
SELECT + 74 + + - 69 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT ALL + SUM( + 23 ) * + NULLIF ( + MIN( 93 ), - 29 ) AS col2
----
2139

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL + SUM ( + 23 ) * + NULLIF ( + MIN ( 93 ), - 29 ) AS col2
----
2139

query I rowsort
SELECT ALL + - 83 * + - 66 col2
----
5478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6652
SELECT DISTINCT + CAST( 1 AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT + CAST ( 1 AS INTEGER ) AS col2
----
1

query I rowsort
SELECT DISTINCT ( - + 94 ) AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6654
SELECT - ( - 45 ) + + + COUNT( * ) DIV - 1 col1
----
44

skipif mysql # not compatible
query I rowsort label-6654
SELECT - ( - 45 ) + + + COUNT ( * ) / - 1 col1
----
44

query I rowsort
SELECT + - ( - 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ALL - COALESCE ( + + 73, - COUNT( * ), + 15 * + 83 )
----
-73

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL - COALESCE ( + + 73, - COUNT ( * ), + 15 * + 83 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT SUM( ( 84 ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6657
SELECT SUM ( ( 84 ) ) AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6658
SELECT - CAST( NULL AS SIGNED ) * - + COUNT( * ) * 34 * - 45 * + 45 + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * 34 * - 45 * + 45 + 20
----
NULL

query I rowsort
SELECT ALL 14 + + 0 * - 11 + 24
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-6660
SELECT ALL 32 DIV - - 68
----
0

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL 32 / - - 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT DISTINCT 25 + - 83 + - + 23 * - - 21 - - + COUNT( * ) AS col1
----
-540

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT 25 + - 83 + - + 23 * - - 21 - - + COUNT ( * ) AS col1
----
-540

query I rowsort
SELECT DISTINCT 30 + 79
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT MIN( ALL + 16 ) * 78 - + 87
----
1161

skipif mysql # not compatible
query I rowsort label-6663
SELECT MIN ( ALL + 16 ) * 78 - + 87
----
1161

query I rowsort
SELECT ALL 65 + + - 72
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6665
SELECT ALL 24 + MAX( DISTINCT CAST( NULL AS SIGNED ) ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL 24 + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT ( + + 20 ) * + ( - COUNT( DISTINCT 15 ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6666
SELECT ( + + 20 ) * + ( - COUNT ( DISTINCT 15 ) ) AS col0
----
-20

query I rowsort
SELECT 72 + + + COALESCE ( + 13, - + 10, + 66 + - - 35 * - 92 + + - 59 ) AS col2
----
85

query I rowsort
SELECT ALL 29 - 43 + - 41
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT + COUNT( * ) * - - 14 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-6669
SELECT + COUNT ( * ) * - - 14 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT COUNT( DISTINCT 17 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6670
SELECT COUNT ( DISTINCT 17 ) AS col2
----
1

query I rowsort
SELECT - 98 * + 91 AS col1
----
-8918

onlyif mysql # aggregate syntax: 
query II rowsort label-6672
SELECT DISTINCT + 32 * - 31 + - 25 + - + 9 + + + 58 AS col2, + ( - COUNT( * ) )
----
-968
-1

skipif mysql # not compatible
query II rowsort label-6672
SELECT DISTINCT + 32 * - 31 + - 25 + - + 9 + + + 58 AS col2, + ( - COUNT ( * ) )
----
-968
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT COALESCE ( - + ( - - 93 ), - 8 * - 0, - - CASE - 27 WHEN + 18 + - 62 * - - MAX( ALL 65 ) * - + ( + + 32 ) THEN NULL WHEN + + 31 THEN ( + 5 ) * 8 END, COUNT( * ) ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-6673
SELECT COALESCE ( - + ( - - 93 ), - 8 * - 0, - - CASE - 27 WHEN + 18 + - 62 * - - MAX ( ALL 65 ) * - + ( + + 32 ) THEN NULL WHEN + + 31 THEN ( + 5 ) * 8 END, COUNT ( * ) ) AS col1
----
-93

query I rowsort
SELECT 82 * - + 19 AS col2
----
-1558

onlyif mysql # DIV for integer division: 
query I rowsort label-6675
SELECT 12 DIV + + 74
----
0

skipif mysql # not compatible
query I rowsort label-6675
SELECT 12 / + + 74
----
0

query I rowsort
SELECT ALL + + 48 * - + ( - 57 ) - - 7
----
2743

query I rowsort
SELECT - 38 + + - 37 AS col0
----
-75

query I rowsort
SELECT + 47 * 34 AS col0
----
1598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6679
SELECT ALL CAST( - + COALESCE ( 66, - CAST( + 1 AS SIGNED ) * NULLIF ( - 84, - 26 ) + - 95 + - COUNT( * ) * 11, + 61 * + 94 * + 43 + - 6 + - 13 + 43 * - 91, + + 52 ) AS SIGNED ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL CAST ( - + COALESCE ( 66, - CAST ( + 1 AS INTEGER ) * NULLIF ( - 84, - 26 ) + - 95 + - COUNT ( * ) * 11, + 61 * + 94 * + 43 + - 6 + - 13 + 43 * - 91, + + 52 ) AS INTEGER ) AS col0
----
-66

query I rowsort
SELECT ALL + ( + 63 ) AS col0
----
63

query I rowsort
SELECT + 74 - - 93 + 69 + 11 + + + 73 - - 73 AS col1
----
393

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT COUNT( * ) + + 70 - - + 40 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-6682
SELECT COUNT ( * ) + + 70 - - + 40 AS col0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6683
SELECT + CASE 89 WHEN - 78 THEN + 80 WHEN CAST( 46 AS SIGNED ) * + 33 / - + 86 THEN NULL ELSE NULL END - + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6683
SELECT + CASE 89 WHEN - 78 THEN + 80 WHEN CAST ( 46 AS INTEGER ) * + 33 / - + 86 THEN NULL ELSE NULL END - + 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6684
SELECT + COALESCE ( - 95, + 52 DIV 20 DIV + - COUNT( + - 28 ) * + 55 + - - 40 + COUNT( * ) * - - 4 + - MIN( ALL - 70 ) * - - 46 DIV - + 87 * SUM( DISTINCT - 44 ) * + 93 )
----
-95

skipif mysql # not compatible
query I rowsort label-6684
SELECT + COALESCE ( - 95, + 52 / 20 / + - COUNT ( + - 28 ) * + 55 + - - 40 + COUNT ( * ) * - - 4 + - MIN ( ALL - 70 ) * - - 46 / - + 87 * SUM ( DISTINCT - 44 ) * + 93 )
----
-95

query I rowsort
SELECT COALESCE ( 66, - + 95, + 64 )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-6686
SELECT ALL + COUNT( - 26 ) col0, + MIN( - + 54 ) * + + 91
----
1
-4914

skipif mysql # not compatible
query II rowsort label-6686
SELECT ALL + COUNT ( - 26 ) col0, + MIN ( - + 54 ) * + + 91
----
1
-4914

query I rowsort
SELECT ALL 67 * 56 * 2 + + 19
----
7523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6688
SELECT CASE MIN( ALL - + 6 ) WHEN - NULLIF ( - 18, + 15 + 45 ) THEN + - 80 ELSE - 34 - - - 3 * + + 17 END DIV + COALESCE ( - - 20, CAST( 93 AS SIGNED ) ) + + ( - + 85 ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-6688
SELECT CASE MIN ( ALL - + 6 ) WHEN - NULLIF ( - 18, + 15 + 45 ) THEN + - 80 ELSE - 34 - - - 3 * + + 17 END / + COALESCE ( - - 20, CAST ( 93 AS INTEGER ) ) + + ( - + 85 ) col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6689
SELECT + 84 DIV - 14
----
-6

skipif mysql # not compatible
query I rowsort label-6689
SELECT + 84 / - 14
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT DISTINCT NULLIF ( + COUNT( DISTINCT 86 ), COALESCE ( - NULLIF ( + + 24, 49 - - 34 ), + - 36, + 95 ) + + 64 + + 89 ) * + 36 + NULLIF ( - + COUNT( * ), 86 * + + 81 / - 36 )
----
35

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT NULLIF ( + COUNT ( DISTINCT 86 ), COALESCE ( - NULLIF ( + + 24, 49 - - 34 ), + - 36, + 95 ) + + 64 + + 89 ) * + 36 + NULLIF ( - + COUNT ( * ), 86 * + + 81 / - 36 )
----
35

query I rowsort
SELECT - 30 * - + 75 AS col1
----
2250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6692
SELECT MIN( + CAST( NULL AS DECIMAL ) ) * CAST( NULL AS SIGNED ) + - 99 + 7 * - 20 + 52 * + - CAST( NULL AS SIGNED ) * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6692
SELECT MIN ( + CAST ( NULL AS REAL ) ) * CAST ( NULL AS INTEGER ) + - 99 + 7 * - 20 + 52 * + - CAST ( NULL AS INTEGER ) * 78
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6693
SELECT DISTINCT 59 DIV - MAX( DISTINCT + - 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT 59 / - MAX ( DISTINCT + - 37 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6694
SELECT + 60 * + - 83 * + + CAST( NULL AS SIGNED ) * + + NULLIF ( + + 30, - 14 ) + 46 * - 2 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT + 60 * + - 83 * + + CAST ( NULL AS INTEGER ) * + + NULLIF ( + + 30, - 14 ) + 46 * - 2 col0
----
NULL

query I rowsort
SELECT ALL + ( - 7 ) AS col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6696
SELECT ALL COUNT( * ) * - + COALESCE ( 80, MIN( 29 ) * + - 44 * + 56 + + 8, - 28 ) DIV + + SUM( DISTINCT 62 ) - + 22 - + 89 + CASE 39 WHEN 83 * - 12 THEN NULL ELSE - 49 END * 32 AS col1
----
-1680

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL COUNT ( * ) * - + COALESCE ( 80, MIN ( 29 ) * + - 44 * + 56 + + 8, - 28 ) / + + SUM ( DISTINCT 62 ) - + 22 - + 89 + CASE 39 WHEN 83 * - 12 THEN NULL ELSE - 49 END * 32 AS col1
----
-1680

query I rowsort
SELECT ALL 12 * + + CASE - 14 WHEN - 2 THEN - ( + - 9 ) END
----
NULL

query I rowsort
SELECT + 94 + - 38 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT + NULLIF ( - ( - COUNT( * ) ), - - 12 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6699
SELECT + NULLIF ( - ( - COUNT ( * ) ), - - 12 ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6700
SELECT + CASE - 1 WHEN 36 + 57 - 85 THEN - ( 34 ) * + 98 - + 62 WHEN + 98 THEN + 69 DIV - 72 WHEN - 30 DIV - 7 THEN MIN( 13 ) ELSE - 32 END * 34
----
-1088

skipif mysql # not compatible
query I rowsort label-6700
SELECT + CASE - 1 WHEN 36 + 57 - 85 THEN - ( 34 ) * + 98 - + 62 WHEN + 98 THEN + 69 / - 72 WHEN - 30 / - 7 THEN MIN ( 13 ) ELSE - 32 END * 34
----
-1088

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL 26 * COUNT( + + ( + + 32 ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL 26 * COUNT ( + + ( + + 32 ) ) AS col0
----
26

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6702
SELECT + 95 + 58 / - CASE WHEN NOT - NULLIF ( 7, + + 0 ) IS NOT NULL THEN - CAST( 98 AS SIGNED ) * + - 39 WHEN ( NOT + - ( - - 78 ) <= + CAST( NULL AS DECIMAL ) + + + 22 ) THEN 67 + 71 ELSE NULL END + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6702
SELECT + 95 + 58 / - CASE WHEN NOT - NULLIF ( 7, + + 0 ) IS NOT NULL THEN - CAST ( 98 AS INTEGER ) * + - 39 WHEN ( NOT + - ( - - 78 ) <= + CAST ( NULL AS REAL ) + + + 22 ) THEN 67 + 71 ELSE NULL END + + 62
----
NULL

query I rowsort
SELECT + + 23 + 33 * 10 AS col0
----
353

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT DISTINCT MAX( + + 37 ) col0
----
37

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT MAX ( + + 37 ) col0
----
37

query I rowsort
SELECT ALL NULLIF ( + - 4, 75 ) AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6706
SELECT 48 * 69 + + NULLIF ( - 76, - 75 ) DIV 45 * - 47 * ( + - 65 ) + 27 AS col1
----
284

skipif mysql # not compatible
query I rowsort label-6706
SELECT 48 * 69 + + NULLIF ( - 76, - 75 ) / 45 * - 47 * ( + - 65 ) + 27 AS col1
----
284

query I rowsort
SELECT ALL - 43 * + - 76
----
3268

onlyif mysql # aggregate syntax: 
query II rowsort label-6708
SELECT DISTINCT + 43 AS col1, ( + - COUNT( * ) )
----
43
-1

skipif mysql # not compatible
query II rowsort label-6708
SELECT DISTINCT + 43 AS col1, ( + - COUNT ( * ) )
----
43
-1

query II rowsort
SELECT 2, - 48 + - 84 AS col1
----
2
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT ALL - 93 + + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL - 93 + + COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6711
SELECT - 59 + 99 + + - CASE WHEN NULL IS NULL THEN - 70 ELSE - NULLIF ( + 37, 12 ) + + 24 + COUNT( * ) + + + 23 * - 92 * + 26 + + - 97 END DIV 91
----
40

skipif mysql # not compatible
query I rowsort label-6711
SELECT - 59 + 99 + + - CASE WHEN NULL IS NULL THEN - 70 ELSE - NULLIF ( + 37, 12 ) + + 24 + COUNT ( * ) + + + 23 * - 92 * + 26 + + - 97 END / 91
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6712
SELECT DISTINCT - + ( + - MIN( ALL CAST( NULL AS SIGNED ) ) ) * + 26 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT - + ( + - MIN ( ALL CAST ( NULL AS INTEGER ) ) ) * + 26 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT COALESCE ( NULLIF ( - 11, + + 51 * + 75 + + 56 * - 2 * + 58 ), - 46 + + + 33 )
----
-11

query I rowsort
SELECT - 72 + COALESCE ( 47, 60 + + 43 ) AS col0
----
-25

query II rowsort
SELECT - + 40, 64 AS col0
----
-40
64

onlyif mysql # DIV for integer division: 
query II rowsort label-6716
SELECT + 16 DIV 7, 67 AS col0
----
2
67

skipif mysql # not compatible
query II rowsort label-6716
SELECT + 16 / 7, 67 AS col0
----
2
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6717
SELECT ALL - - 16 + - 74 + - 78 DIV COUNT( * ) AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL - - 16 + - 74 + - 78 / COUNT ( * ) AS col0
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT - + COALESCE ( - 2, + 70 * MAX( 46 ) + 3, 26 )
----
2

skipif mysql # not compatible
query I rowsort label-6718
SELECT - + COALESCE ( - 2, + 70 * MAX ( 46 ) + 3, 26 )
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6719
SELECT DISTINCT - COALESCE ( - CAST( + - CASE 45 WHEN + 9 + 43 THEN - 1 + - - 34 + + + 29 * + 59 WHEN - 93 THEN NULL WHEN 9 THEN NULL END AS SIGNED ), 7 DIV - - 9 + + 80 DIV 5 ) * + 66 AS col0
----
-1056

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT - COALESCE ( - CAST ( + - CASE 45 WHEN + 9 + 43 THEN - 1 + - - 34 + + + 29 * + 59 WHEN - 93 THEN NULL WHEN 9 THEN NULL END AS INTEGER ), 7 / - - 9 + + 80 / 5 ) * + 66 AS col0
----
-1056

query II rowsort
SELECT - - 41 + - + 5 AS col1, 88 col1
----
36
88

query I rowsort
SELECT ALL + - 3 * + 99
----
-297

query I rowsort
SELECT DISTINCT 26 * 43 * - 70
----
-78260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-6723
SELECT ALL - 37 + + 39 DIV 45 + + MIN( DISTINCT + 24 ) + - + COUNT( * ) + 73 * 33 + - 81 + - CAST( - 38 AS SIGNED ) DIV 50 AS col0, CAST( NULL AS DECIMAL ) col1
----
2314
NULL

skipif mysql # not compatible
query II rowsort label-6723
SELECT ALL - 37 + + 39 / 45 + + MIN ( DISTINCT + 24 ) + - + COUNT ( * ) + 73 * 33 + - 81 + - CAST ( - 38 AS INTEGER ) / 50 AS col0, CAST ( NULL AS REAL ) col1
----
2314
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6724
SELECT ALL COUNT( * ) DIV + COUNT( * ) + + - 56
----
-55

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL COUNT ( * ) / + COUNT ( * ) + + - 56
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT + CASE + 95 WHEN + 28 + 24 * - 68 THEN + NULLIF ( COALESCE ( 75, - + 71 ), + - COUNT( * ) ) - + 57 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6725
SELECT + CASE + 95 WHEN + 28 + 24 * - 68 THEN + NULLIF ( COALESCE ( 75, - + 71 ), + - COUNT ( * ) ) - + 57 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6726
SELECT 1 * + 26 * - 22 - - 43 + + 53 AS col0, + COUNT( * ) * + 91
----
-476
91

skipif mysql # not compatible
query II rowsort label-6726
SELECT 1 * + 26 * - 22 - - 43 + + 53 AS col0, + COUNT ( * ) * + 91
----
-476
91

query II rowsort
SELECT + 13 * + 3 AS col1, - 33
----
39
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6728
SELECT ALL 68 DIV - 86 - + - CAST( - ( - 26 ) AS SIGNED ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL 68 / - 86 - + - CAST ( - ( - 26 ) AS INTEGER ) AS col1
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-6729
SELECT DISTINCT - 47 DIV + 61, 79 AS col0
----
0
79

skipif mysql # not compatible
query II rowsort label-6729
SELECT DISTINCT - 47 / + 61, 79 AS col0
----
0
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6730
SELECT ALL - 29 * - 19 / - CASE + CASE + 97 WHEN ( - CAST( - + 80 AS SIGNED ) ) THEN NULL WHEN - 86 + + + COUNT( * ) THEN + 21 ELSE NULL END WHEN - 12 / AVG ( - 34 ) THEN NULL WHEN COUNT( * ) * COALESCE ( + + 1, + 68 + - 87 - 31 + - 56 + + 82 + - - 52 * + + 80, + 96 ) * - 11 * - COUNT( * ) THEN - 94 / + COALESCE ( + 43, ( - 52 ) * 65 * - 14, + MIN( DISTINCT - + 97 ) - + ( 74 ) ) * - - 52 + - NULLIF ( + - CAST( NULL AS SIGNED ), CASE + 67 WHEN 69 THEN 76 END / ( COALESCE ( 32, - ( 56 ) / COALESCE ( COUNT( * ), - CASE + COUNT( * ) WHEN CASE + CAST( NULL AS SIGNED ) WHEN 28 THEN NULL WHEN 39 - 51 THEN 79 END + 19 * + 54 THEN - COUNT( * ) - - NULLIF ( COUNT( * ), 12 ) WHEN ( MIN( ALL 6 ) ) THEN 14 ELSE NULL END + - 94 ) + COUNT( * ) ) - + 9 ) ) + 89 + - COALESCE ( SUM( DISTINCT 99 ), 22 * 39, - 89 + - ( - 33 ) ) WHEN 53 + CASE 86 WHEN 82 * - ( 44 ) - + 81 * + 7 THEN 50 WHEN 73 * + 13 + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL - 29 * - 19 / - CASE + CASE + 97 WHEN ( - CAST ( - + 80 AS INTEGER ) ) THEN NULL WHEN - 86 + + + COUNT ( * ) THEN + 21 ELSE NULL END WHEN - 12 / AVG ( - 34 ) THEN NULL WHEN COUNT ( * ) * COALESCE ( + + 1, + 68 + - 87 - 31 + - 56 + + 82 + - - 52 * + + 80, + 96 ) * - 11 * - COUNT ( * ) THEN - 94 / + COALESCE ( + 43, ( - 52 ) * 65 * - 14, + MIN ( DISTINCT - + 97 ) - + ( 74 ) ) * - - 52 + - NULLIF ( + - CAST ( NULL AS INTEGER ), CASE + 67 WHEN 69 THEN 76 END / ( COALESCE ( 32, - ( 56 ) / COALESCE ( COUNT ( * ), - CASE + COUNT ( * ) WHEN CASE + CAST ( NULL AS INTEGER ) WHEN 28 THEN NULL WHEN 39 - 51 THEN 79 END + 19 * + 54 THEN - COUNT ( * ) - - NULLIF ( COUNT ( * ), 12 ) WHEN ( MIN ( ALL 6 ) ) THEN 14 ELSE NULL END + - 94 ) + COUNT ( * ) ) - + 9 ) ) + 89 + - COALESCE ( SUM ( DISTINCT 99 ), 22 * 39, - 89 + - ( - 33 ) ) WHEN 53 + CASE 86 WHEN 82 * - ( 44 ) - + 81 * + 7 THEN 50 WHEN 73 * + 13 + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( 91 )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6732
SELECT 38 * + CASE + 67 WHEN + + 81 THEN NULL ELSE + 12 END - + 47 - + 12 * 42 DIV + + COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-6732
SELECT 38 * + CASE + 67 WHEN + + 81 THEN NULL ELSE + 12 END - + 47 - + 12 * 42 / + + COUNT ( * ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT ALL + MAX( - + 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL + MAX ( - + 21 ) AS col2
----
-21

query I rowsort
SELECT - 41 * - + ( ( + + 17 ) )
----
697

query I rowsort
SELECT + 47 * 63 AS col2
----
2961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6736
SELECT - CAST( 35 AS DECIMAL ) * + - 98 * - - COUNT( * ) * - CAST( NULL AS SIGNED ) * + COALESCE ( + 93, CAST( NULL AS SIGNED ) + ( ( CAST( NULL AS SIGNED ) ) ) / + 4 + + + 90 / ( - MAX( ALL - 96 ) ) + - COALESCE ( - + 74, - ( + 80 ), + 92 + - COALESCE ( + 69, - - CAST( NULL AS DECIMAL ), + - 14 * - 79 ) - + + 26 + + 71 / + 76 + + 97 * + 8 + + + COUNT( * ) ) / ( + 27 ) ) * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT - CAST ( 35 AS REAL ) * + - 98 * - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + COALESCE ( + 93, CAST ( NULL AS INTEGER ) + ( ( CAST ( NULL AS INTEGER ) ) ) / + 4 + + + 90 / ( - MAX ( ALL - 96 ) ) + - COALESCE ( - + 74, - ( + 80 ), + 92 + - COALESCE ( + 69, - - CAST ( NULL AS REAL ), + - 14 * - 79 ) - + + 26 + + 71 / + 76 + + 97 * + 8 + + + COUNT ( * ) ) / ( + 27 ) ) * + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT MAX( - CASE WHEN 70 IS NOT NULL THEN NULL WHEN NOT NULL < ( + 69 ) THEN + 23 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6737
SELECT MAX ( - CASE WHEN 70 IS NOT NULL THEN NULL WHEN NOT NULL < ( + 69 ) THEN + 23 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6738
SELECT ALL 46 DIV - + 41 AS col0, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-6738
SELECT ALL 46 / - + 41 AS col0, COUNT ( * )
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT DISTINCT - 81 * + 11 + 31 + + ( + + MIN( ALL 10 ) ) * COUNT( * )
----
-850

skipif mysql # not compatible
query I rowsort label-6739
SELECT DISTINCT - 81 * + 11 + 31 + + ( + + MIN ( ALL 10 ) ) * COUNT ( * )
----
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT + MIN( DISTINCT 88 ) + - 82 + - + 68 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-6740
SELECT + MIN ( DISTINCT 88 ) + - 82 + - + 68 AS col1
----
-62

query I rowsort
SELECT + 56 * - 29 - + + 33 + 38 + 99
----
-1520

query I rowsort
SELECT - + ( - ( 73 ) )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6743
SELECT + COALESCE ( CASE - - 90 WHEN + 42 THEN NULL WHEN - + 52 + - + CASE - + 40 WHEN + 77 THEN - 7 * 16 + 78 END THEN + SUM( ALL - 45 ) * - 77 - CAST( 47 AS SIGNED ) END, 25 )
----
25

skipif mysql # not compatible
query I rowsort label-6743
SELECT + COALESCE ( CASE - - 90 WHEN + 42 THEN NULL WHEN - + 52 + - + CASE - + 40 WHEN + 77 THEN - 7 * 16 + 78 END THEN + SUM ( ALL - 45 ) * - 77 - CAST ( 47 AS INTEGER ) END, 25 )
----
25

query II rowsort
SELECT DISTINCT - ( + - 52 ), - 34 AS col0
----
52
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6745
SELECT ALL + COUNT( + 41 ) + 64 DIV + 74 * 14
----
1

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL + COUNT ( + 41 ) + 64 / + 74 * 14
----
1

query I rowsort
SELECT ( + 22 ) + + - 34 AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6747
SELECT + 36 + + 10 + + 6 + + 85 * - CAST( NULL AS SIGNED ) + + + 57 + ( 94 ) / + + CASE - + NULLIF ( COUNT( * ), 76 ) WHEN 26 THEN NULL WHEN 65 * - 42 + - 61 + - 77 THEN + + 63 * + 33 * + 47 + + 22 + 46 * 97 + - 67 + - + 87 * + 12 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT + 36 + + 10 + + 6 + + 85 * - CAST ( NULL AS INTEGER ) + + + 57 + ( 94 ) / + + CASE - + NULLIF ( COUNT ( * ), 76 ) WHEN 26 THEN NULL WHEN 65 * - 42 + - 61 + - 77 THEN + + 63 * + 33 * + 47 + + 22 + 46 * 97 + - 67 + - + 87 * + 12 END AS col1
----
NULL

query I rowsort
SELECT ALL + - ( - 80 ) + + 70
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6749
SELECT CAST( - - COUNT( * ) AS SIGNED ) + + ( 55 )
----
56

skipif mysql # not compatible
query I rowsort label-6749
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) + + ( 55 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT ALL - CAST( NULL AS SIGNED ) + 37 / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL - CAST ( NULL AS INTEGER ) + 37 / 90
----
NULL

query I rowsort
SELECT - 59 * + 85 + 92 + + 0
----
-4923

query II rowsort
SELECT 71 AS col1, ( + 47 )
----
71
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT COUNT( * ) + 4 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6753
SELECT COUNT ( * ) + 4 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6754
SELECT 83 + CASE + ( - 62 ) WHEN + 77 THEN - ( 13 ) ELSE - 92 + 9 - + - COUNT( * ) + + 39 + 71 + - - 96 * - + 70 + - 87 * CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT 83 + CASE + ( - 62 ) WHEN + 77 THEN - ( 13 ) ELSE - 92 + 9 - + - COUNT ( * ) + + 39 + 71 + - - 96 * - + 70 + - 87 * CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT MIN( DISTINCT - - 33 ) * ( + + 72 ) AS col0
----
2376

skipif mysql # not compatible
query I rowsort label-6755
SELECT MIN ( DISTINCT - - 33 ) * ( + + 72 ) AS col0
----
2376

query I rowsort
SELECT ALL + 5 * - + 35
----
-175

onlyif mysql # DIV for integer division: 
query I rowsort label-6757
SELECT 8 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-6757
SELECT 8 / 79
----
0

query II rowsort
SELECT 79 * + ( - 47 ) AS col1, + 10 * + COALESCE ( - 54, - 39 ) + - 35
----
-3713
-575

query I rowsort
SELECT DISTINCT 48 * + 87 AS col1
----
4176

query I rowsort
SELECT ALL 7 * - - 46 AS col1
----
322

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT 98 DIV - 16
----
-6

skipif mysql # not compatible
query I rowsort label-6761
SELECT 98 / - 16
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-6762
SELECT DISTINCT - COUNT( * ), + 66 AS col1
----
-1
66

skipif mysql # not compatible
query II rowsort label-6762
SELECT DISTINCT - COUNT ( * ), + 66 AS col1
----
-1
66

query I rowsort
SELECT 78 * + 95 AS col0
----
7410

query II rowsort
SELECT + 21, + 96 AS col2
----
21
96

query I rowsort
SELECT 17 + 32 AS col2
----
49

query II rowsort
SELECT DISTINCT - 56 AS col0, - 91 AS col1
----
-56
-91

query I rowsort
SELECT DISTINCT - ( 51 ) AS col2
----
-51

query II rowsort
SELECT ALL - 68, - 89 AS col2
----
-68
-89

query I rowsort
SELECT ALL - - 41 * + + 89 AS col2
----
3649

query I rowsort
SELECT 67 * + 94
----
6298

query I rowsort
SELECT ALL - - 24 + 23 * 30 + 47
----
761

query II rowsort
SELECT ALL - 70, 41 AS col1
----
-70
41

onlyif mysql # aggregate syntax: 
query II rowsort label-6773
SELECT ALL + 46 + SUM( DISTINCT + ( NULLIF ( + + 11, + 73 ) ) ) AS col0, - 84 + - - 20 AS col0
----
57
-64

skipif mysql # not compatible
query II rowsort label-6773
SELECT ALL + 46 + SUM ( DISTINCT + ( NULLIF ( + + 11, + 73 ) ) ) AS col0, - 84 + - - 20 AS col0
----
57
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT ALL - + COUNT( * ) + + + ( + - 63 ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL - + COUNT ( * ) + + + ( + - 63 ) col1
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6775
SELECT 46 DIV + + 79 + + 60 + + - 51 + - 36 * 25 DIV + COUNT( * )
----
-891

skipif mysql # not compatible
query I rowsort label-6775
SELECT 46 / + + 79 + + 60 + + - 51 + - 36 * 25 / + COUNT ( * )
----
-891

query I rowsort
SELECT - - 41 * 59 + - - 36 + 0
----
2455

query II rowsort
SELECT 94, 70 AS col2
----
94
70

query II rowsort
SELECT 62 col2, 55 * 89 + + 38
----
62
4933

query I rowsort
SELECT COALESCE ( - 98, 18 + + + 69, - COALESCE ( + - 31, - 73 * + 90 + + 54 ) - - 47 ) + + - 15 AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT - ( - ( COUNT( ALL 40 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6780
SELECT - ( - ( COUNT ( ALL 40 ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6781
SELECT - COUNT( * ) DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-6781
SELECT - COUNT ( * ) / - 35
----
0

query I rowsort
SELECT - 77 + - + COALESCE ( - 75, - 69 )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6783
SELECT ALL + - 57 DIV 13 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL + - 57 / 13 AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6784
SELECT + CAST( NULL AS SIGNED ) + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT + CAST ( NULL AS INTEGER ) + + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT ALL 87 * + 27 * + ( - COUNT( * ) ) * 61 - SUM( ALL 76 )
----
-143365

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL 87 * + 27 * + ( - COUNT ( * ) ) * 61 - SUM ( ALL 76 )
----
-143365

query I rowsort
SELECT 39 + - 47 * + 73 * - 45 AS col1
----
154434

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL + MAX( ALL - 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL + MAX ( ALL - 42 ) AS col2
----
-42

query II rowsort
SELECT 55 AS col2, 96
----
55
96

query I rowsort
SELECT ( + - 69 ) + + - 82 AS col2
----
-151

query I rowsort
SELECT DISTINCT 8 * 12
----
96

query II rowsort
SELECT 63 * 89 AS col2, ( - - 28 )
----
5607
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT MAX( ALL 99 ) * - 25
----
-2475

skipif mysql # not compatible
query I rowsort label-6792
SELECT MAX ( ALL 99 ) * - 25
----
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT ALL 43 * - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL 43 * - COUNT ( * )
----
-43

query I rowsort
SELECT DISTINCT 60 - 96 col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6795
SELECT DISTINCT 72 * - CAST( - + 45 AS SIGNED ) AS col1
----
3240

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT 72 * - CAST ( - + 45 AS INTEGER ) AS col1
----
3240

query II rowsort
SELECT ALL 7 * 27 AS col2, - 66 AS col1
----
189
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6797
SELECT DISTINCT + 83 DIV 37 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT + 83 / 37 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT ALL + MIN( DISTINCT 13 ) * + + ( + COUNT( * ) ) * - 62 * + COUNT( * ) - 3 + + - CASE 86 WHEN 31 THEN - - COUNT( - 52 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL + MIN ( DISTINCT 13 ) * + + ( + COUNT ( * ) ) * - 62 * + COUNT ( * ) - 3 + + - CASE 86 WHEN 31 THEN - - COUNT ( - 52 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT SUM( DISTINCT - 93 ) * - NULLIF ( + - CASE - 86 WHEN + + COUNT( * ) * - 71 * + 40 THEN NULL WHEN + 58 THEN NULL WHEN COALESCE ( 66, + 60 ) / + + 31 + - ( + COUNT( * ) ) + - COUNT( * ) + - - 69 / + - 28 THEN 65 + - + SUM( DISTINCT + + 80 ) END, + + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6799
SELECT SUM ( DISTINCT - 93 ) * - NULLIF ( + - CASE - 86 WHEN + + COUNT ( * ) * - 71 * + 40 THEN NULL WHEN + 58 THEN NULL WHEN COALESCE ( 66, + 60 ) / + + 31 + - ( + COUNT ( * ) ) + - COUNT ( * ) + - - 69 / + - 28 THEN 65 + - + SUM ( DISTINCT + + 80 ) END, + + 22 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT - 98 * ( COUNT( * ) ) * - - ( - 54 ) + - ( + 18 ) + - - 76 AS col1
----
5350

skipif mysql # not compatible
query I rowsort label-6800
SELECT - 98 * ( COUNT ( * ) ) * - - ( - 54 ) + - ( + 18 ) + - - 76 AS col1
----
5350

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT 33 DIV 2
----
16

skipif mysql # not compatible
query I rowsort label-6801
SELECT 33 / 2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6802
SELECT ALL + 66 * - CAST( 99 AS SIGNED ) AS col0
----
-6534

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL + 66 * - CAST ( 99 AS INTEGER ) AS col0
----
-6534

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT DISTINCT COUNT( DISTINCT 54 ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT COUNT ( DISTINCT 54 ) * - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL - ( - - 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT DISTINCT - 94 * 41 * + COUNT( COALESCE ( - 95, + 66 / + 30 ) ) + 65
----
-3789

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT - 94 * 41 * + COUNT ( COALESCE ( - 95, + 66 / + 30 ) ) + 65
----
-3789

onlyif mysql # DIV for integer division: 
query I rowsort label-6806
SELECT DISTINCT + + 51 DIV - - 65
----
0

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT + + 51 / - - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT ALL - ( + - ( ( - 25 ) ) ) * - - 49 * 63 + + ( + - COUNT( * ) ) AS col1
----
-77176

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL - ( + - ( ( - 25 ) ) ) * - - 49 * 63 + + ( + - COUNT ( * ) ) AS col1
----
-77176

query I rowsort
SELECT 12 * - ( + - 36 ) + - - 62 + - 68 * 26 * + 49 * + - ( + 74 )
----
6411262

query I rowsort
SELECT ALL + 14 + - - 80
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT - CASE + - 25 WHEN + SUM( ( - ( + 19 ) ) ) THEN + 48 + + 93 ELSE NULL END * - 1 + 84 - 9 - - 18 * - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT - CASE + - 25 WHEN + SUM ( ( - ( + 19 ) ) ) THEN + 48 + + 93 ELSE NULL END * - 1 + 84 - 9 - - 18 * - 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT DISTINCT + 81 + - ( - - 94 ) - COUNT( ALL 4 ) + - 90 * - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT + 81 + - ( - - 94 ) - COUNT ( ALL 4 ) + - 90 * - COUNT ( * )
----
76

query I rowsort
SELECT ALL + + 96 - - 52 + 40
----
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6813
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - 83 - + ( - - ( + 27 ) ) - - 85 + + ( - 60 ) / CAST( - 88 AS SIGNED ) * - COUNT( * ) * + ( - 11 ) * - 66 col2, 23 * - 43
----
NULL
-989

skipif mysql # not compatible
query II rowsort label-6813
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - 83 - + ( - - ( + 27 ) ) - - 85 + + ( - 60 ) / CAST ( - 88 AS INTEGER ) * - COUNT ( * ) * + ( - 11 ) * - 66 col2, 23 * - 43
----
NULL
-989

onlyif mysql # DIV for integer division: 
query II rowsort label-6814
SELECT - + 93 DIV + NULLIF ( ( 72 ), 96 DIV 48 + + 43 ) AS col1, + COALESCE ( + - 80, + 28 ) + + 51 AS col2
----
-1
-29

skipif mysql # not compatible
query II rowsort label-6814
SELECT - + 93 / + NULLIF ( ( 72 ), 96 / 48 + + 43 ) AS col1, + COALESCE ( + - 80, + 28 ) + + 51 AS col2
----
-1
-29

query I rowsort
SELECT ALL + + 4 - - - 40 AS col0
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-6816
SELECT ALL COALESCE ( - + 28, - 44 + - 84 + + 88 DIV - - ( + 45 ) ) col2, + 6 DIV - 28 AS col0
----
-28
0

skipif mysql # not compatible
query II rowsort label-6816
SELECT ALL COALESCE ( - + 28, - 44 + - 84 + + 88 / - - ( + 45 ) ) col2, + 6 / - 28 AS col0
----
-28
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT - - 24 + - 20 + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-6817
SELECT - - 24 + - 20 + + COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT - COALESCE ( - 61, + 69, - + MIN( DISTINCT - 81 ) ) + - 2 * - 5 + - + NULLIF ( - 93, + ( - + 27 ) * + + ( + 66 ) + - 0 ) * + 38
----
3605

skipif mysql # not compatible
query I rowsort label-6818
SELECT - COALESCE ( - 61, + 69, - + MIN ( DISTINCT - 81 ) ) + - 2 * - 5 + - + NULLIF ( - 93, + ( - + 27 ) * + + ( + 66 ) + - 0 ) * + 38
----
3605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6819
SELECT + CAST( NULL AS SIGNED ) / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT + CAST ( NULL AS INTEGER ) / + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT - COUNT( * ) + - + 18 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6820
SELECT - COUNT ( * ) + - + 18 AS col1
----
-19

query I rowsort
SELECT DISTINCT NULLIF ( 62, + 95 * - 87 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT + CASE - 21 WHEN 68 - 85 THEN + 53 WHEN + - 3 THEN + + 30 WHEN + COUNT( * ) THEN NULL ELSE NULL END + - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT + CASE - 21 WHEN 68 - 85 THEN + 53 WHEN + - 3 THEN + + 30 WHEN + COUNT ( * ) THEN NULL ELSE NULL END + - 31 AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( 28, - ( - 29 ) ) col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6824
SELECT DISTINCT - 88 DIV - 17 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT - 88 / - 17 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6825
SELECT DISTINCT COUNT( - 46 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT COUNT ( - 46 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6826
SELECT ALL 48 * CASE - + CASE - 75 WHEN + COUNT( * ) THEN NULL ELSE 29 * + 15 END WHEN + 28 + + + 28 THEN NULL ELSE - 42 END AS col0, - COUNT( * )
----
-2016
-1

skipif mysql # not compatible
query II rowsort label-6826
SELECT ALL 48 * CASE - + CASE - 75 WHEN + COUNT ( * ) THEN NULL ELSE 29 * + 15 END WHEN + 28 + + + 28 THEN NULL ELSE - 42 END AS col0, - COUNT ( * )
----
-2016
-1

query I rowsort
SELECT ALL ( - + 85 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT + 30 + - + 36 * - - COALESCE ( + 2, - 44 * COUNT( * ) ) col2
----
-42

skipif mysql # not compatible
query I rowsort label-6828
SELECT + 30 + - + 36 * - - COALESCE ( + 2, - 44 * COUNT ( * ) ) col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT - COUNT( 57 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6829
SELECT - COUNT ( 57 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT ALL COUNT( - 81 ) + 8
----
9

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL COUNT ( - 81 ) + 8
----
9

query I rowsort
SELECT + 18 + + 7 AS col2
----
25

query I rowsort
SELECT - ( - 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL CASE + - COUNT( DISTINCT + 46 ) WHEN - 60 - - MAX( DISTINCT 48 ) THEN NULL WHEN 97 THEN + - 83 ELSE + + 21 * SUM( + 47 ) + + COUNT( * ) + ( 10 ) - COUNT( * ) * - ( 87 ) - 70 * 91 END + + ( + - MAX( + 91 ) ) AS col1
----
-5376

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL CASE + - COUNT ( DISTINCT + 46 ) WHEN - 60 - - MAX ( DISTINCT 48 ) THEN NULL WHEN 97 THEN + - 83 ELSE + + 21 * SUM ( + 47 ) + + COUNT ( * ) + ( 10 ) - COUNT ( * ) * - ( 87 ) - 70 * 91 END + + ( + - MAX ( + 91 ) ) AS col1
----
-5376

query I rowsort
SELECT + 94 + - 59 AS col2
----
35

query I rowsort
SELECT + 12 * 73 * + 11 AS col2
----
9636

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6836
SELECT + - 66 + ( 65 ) + 91 - - 24 DIV COUNT( * ) * - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-6836
SELECT + - 66 + ( 65 ) + 91 - - 24 / COUNT ( * ) * - COUNT ( * )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6837
SELECT - + 11 * + - 99 + 54 * + CAST( + 13 AS SIGNED ) * 48 + COUNT( * ) * + 16 * + CAST( - 61 AS SIGNED ) AS col2
----
33809

skipif mysql # not compatible
query I rowsort label-6837
SELECT - + 11 * + - 99 + 54 * + CAST ( + 13 AS INTEGER ) * 48 + COUNT ( * ) * + 16 * + CAST ( - 61 AS INTEGER ) AS col2
----
33809

query II rowsort
SELECT + 21 col2, + 13 * 49
----
21
637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT ALL + CAST( - 92 AS SIGNED ) col2
----
-92

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL + CAST ( - 92 AS INTEGER ) col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6840
SELECT - 12 + NULLIF ( + 27, - 96 + - - MAX( ALL 48 ) ) * + CAST( + COALESCE ( - 81, + + 47 * - - CAST( - 68 AS SIGNED ), - COUNT( * ) + 62 + 24 / - + CAST( 48 AS SIGNED ) + - 84 ) AS SIGNED ) * 5 AS col2
----
-10947

skipif mysql # not compatible
query I rowsort label-6840
SELECT - 12 + NULLIF ( + 27, - 96 + - - MAX ( ALL 48 ) ) * + CAST ( + COALESCE ( - 81, + + 47 * - - CAST ( - 68 AS INTEGER ), - COUNT ( * ) + 62 + 24 / - + CAST ( 48 AS INTEGER ) + - 84 ) AS INTEGER ) * 5 AS col2
----
-10947

query I rowsort
SELECT DISTINCT 81 * + 35 col0
----
2835

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT - COUNT( * ) + 34 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6842
SELECT - COUNT ( * ) + 34 AS col2
----
33

query I rowsort
SELECT - + 64 * 0 + + 25 + + + 41
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-6844
SELECT ALL + ( + COALESCE ( + 91, - 66 * + ( - 89 ) + - 74 - 87 * + 8 DIV - 45 DIV 6, 37 + + 79, + - 72 ) )
----
91

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL + ( + COALESCE ( + 91, - 66 * + ( - 89 ) + - 74 - 87 * + 8 / - 45 / 6, 37 + + 79, + - 72 ) )
----
91

query II rowsort
SELECT 10 col1, + CASE 6 WHEN 49 THEN + + 14 END
----
10
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6846
SELECT + 86 * ( + SUM( DISTINCT + - 98 ) ) + - 21, + COUNT( * ) AS col1
----
-8449
1

skipif mysql # not compatible
query II rowsort label-6846
SELECT + 86 * ( + SUM ( DISTINCT + - 98 ) ) + - 21, + COUNT ( * ) AS col1
----
-8449
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6847
SELECT - 28, MIN( 49 ) * - 7 AS col2
----
-28
-343

skipif mysql # not compatible
query II rowsort label-6847
SELECT - 28, MIN ( 49 ) * - 7 AS col2
----
-28
-343

query I rowsort
SELECT + CASE + 85 WHEN + 47 * + 1 / - 23 THEN 16 ELSE NULL END * - 2 AS col0
----
NULL

query I rowsort
SELECT ALL ( + ( + 27 ) )
----
27

query I rowsort
SELECT ALL ( - ( + - ( ( 43 ) ) ) ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6851
SELECT COUNT( * ), 54 col0
----
1
54

skipif mysql # not compatible
query II rowsort label-6851
SELECT COUNT ( * ), 54 col0
----
1
54

onlyif mysql # aggregate syntax: 
query II rowsort label-6852
SELECT ALL COUNT( * ), 17 - COUNT( * ) col0
----
1
16

skipif mysql # not compatible
query II rowsort label-6852
SELECT ALL COUNT ( * ), 17 - COUNT ( * ) col0
----
1
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6853
SELECT - 40 AS col0, 26 DIV + + 88 - COUNT( * )
----
-40
-1

skipif mysql # not compatible
query II rowsort label-6853
SELECT - 40 AS col0, 26 / + + 88 - COUNT ( * )
----
-40
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT ALL + CASE + + 55 WHEN - + 38 THEN NULL WHEN MAX( - 45 ) THEN + 95 END * 28 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL + CASE + + 55 WHEN - + 38 THEN NULL WHEN MAX ( - 45 ) THEN + 95 END * 28 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT ALL + COUNT( * ) * - 3 col0
----
-3

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL + COUNT ( * ) * - 3 col0
----
-3

query I rowsort
SELECT DISTINCT - 84 * - - 55
----
-4620

onlyif mysql # DIV for integer division: 
query I rowsort label-6857
SELECT - 24 * 13 DIV - - 5
----
-62

skipif mysql # not compatible
query I rowsort label-6857
SELECT - 24 * 13 / - - 5
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT - 30 * - ( - ( - COUNT( * ) ) )
----
30

skipif mysql # not compatible
query I rowsort label-6858
SELECT - 30 * - ( - ( - COUNT ( * ) ) )
----
30

query I rowsort
SELECT - NULLIF ( + 39, + 85 ) AS col2
----
-39

query II rowsort
SELECT 49 AS col1, 50 * + 63 AS col1
----
49
3150

query I rowsort
SELECT - 94 * 74 * - - 7 AS col0
----
-48692

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT ALL - 39 DIV + 34 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL - 39 / + 34 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT DISTINCT CASE + - 21 WHEN - COUNT( * ) THEN + 14 END + + + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6863
SELECT DISTINCT CASE + - 21 WHEN - COUNT ( * ) THEN + 14 END + + + 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL + COUNT( * ) + - + 18 col1
----
-17

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + COUNT ( * ) + - + 18 col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT - MAX( ALL ( - 68 ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6865
SELECT - MAX ( ALL ( - 68 ) ) AS col1
----
68

query I rowsort
SELECT ALL 58 + + 68
----
126

query I rowsort
SELECT - 64 * - 20
----
1280

onlyif mysql # DIV for integer division: 
query I rowsort label-6868
SELECT ALL - NULLIF ( 39, - 80 ) DIV - + 83 * 4
----
0

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL - NULLIF ( 39, - 80 ) / - + 83 * 4
----
0

query I rowsort
SELECT - 35 + 90
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6870
SELECT + ( + 21 ), - 73 * 1 * - COUNT( * ) * 0 * 0 * - 54 AS col0
----
21
0

skipif mysql # not compatible
query II rowsort label-6870
SELECT + ( + 21 ), - 73 * 1 * - COUNT ( * ) * 0 * 0 * - 54 AS col0
----
21
0

query I rowsort
SELECT - + 79 * - NULLIF ( + 76, 36 ) + 97 * - ( - + 80 )
----
13764

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT DISTINCT + - COUNT( * ) + - NULLIF ( 14, - COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT + - COUNT ( * ) + - NULLIF ( 14, - COUNT ( * ) )
----
-15

query II rowsort
SELECT 45, + 82 * - 67 AS col1
----
45
-5494

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT - 46 * COUNT( * ) - + 20 * COUNT( * ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-6874
SELECT - 46 * COUNT ( * ) - + 20 * COUNT ( * ) col0
----
-66

query I rowsort
SELECT - CASE - 70 WHEN + + 0 / - - 2 * + 7 * + 16 - + 88 * 97 * 16 * - 25 + + + 76 THEN 20 ELSE NULL END
----
NULL

query II rowsort
SELECT 88, 5 + - - 29 AS col2
----
88
34

query I rowsort
SELECT + - ( + ( - ( 3 ) ) ) AS col0
----
3

query I rowsort
SELECT ALL - + 63 - + 86 AS col0
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT ALL - - SUM( DISTINCT - 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL - - SUM ( DISTINCT - 38 ) AS col0
----
-38

query I rowsort
SELECT 93 * - ( - 71 ) * CASE + 28 WHEN 88 THEN NULL WHEN - 4 THEN 30 ELSE NULL END - + 95 - - 8 - 30 + - 30
----
NULL

query II rowsort
SELECT - 53 * + 94 AS col2, + 47 + + 76 + 19 AS col2
----
-4982
142

onlyif mysql # aggregate syntax: 
query II rowsort label-6882
SELECT ALL - COUNT( * ) AS col2, - 18 AS col1
----
-1
-18

skipif mysql # not compatible
query II rowsort label-6882
SELECT ALL - COUNT ( * ) AS col2, - 18 AS col1
----
-1
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-6883
SELECT - 84 AS col2, - 13 * - MAX( + 6 ) - - + COALESCE ( + 80, - - 27 * + 48 )
----
-84
158

skipif mysql # not compatible
query II rowsort label-6883
SELECT - 84 AS col2, - 13 * - MAX ( + 6 ) - - + COALESCE ( + 80, - - 27 * + 48 )
----
-84
158

onlyif mysql # aggregate syntax: 
query II rowsort label-6884
SELECT + CASE + + COUNT( 18 ) WHEN 91 THEN - 62 - - COUNT( * ) WHEN - COUNT( * ) + + 70 - 77 * 65 THEN - + 29 END AS col0, 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-6884
SELECT + CASE + + COUNT ( 18 ) WHEN 91 THEN - 62 - - COUNT ( * ) WHEN - COUNT ( * ) + + 70 - 77 * 65 THEN - + 29 END AS col0, 45
----
NULL
45

query II rowsort
SELECT + 18, + 43 AS col2
----
18
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6886
SELECT - 80 / - 71 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6886
SELECT - 80 / - 71 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT MIN( + 18 ) * + 29 AS col1
----
522

skipif mysql # not compatible
query I rowsort label-6887
SELECT MIN ( + 18 ) * + 29 AS col1
----
522

query I rowsort
SELECT ALL - 47 * + + 70 * + 97 AS col0
----
-319130

query II rowsort
SELECT + + 16, + 89 AS col0
----
16
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT DISTINCT 49 * + - 72 * - 78 * + 97 * + COUNT( * ) * 69 AS col0
----
1841806512

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT 49 * + - 72 * - 78 * + 97 * + COUNT ( * ) * 69 AS col0
----
1841806512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6891
SELECT SUM( - - ( + - 19 ) ) DIV 4 col0
----
-4

skipif mysql # not compatible
query I rowsort label-6891
SELECT SUM ( - - ( + - 19 ) ) / 4 col0
----
-4

query I rowsort
SELECT ALL - NULLIF ( - - 9, + 74 ) + 44 + 80
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT ALL COUNT( * ) + 88
----
89

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL COUNT ( * ) + 88
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6894
SELECT ( + - 39 ) + COALESCE ( - + COUNT( - COALESCE ( + CAST( 6 AS SIGNED ), + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ) ), - COUNT( * ), - NULLIF ( 17, - 99 * + 45 ) ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-6894
SELECT ( + - 39 ) + COALESCE ( - + COUNT ( - COALESCE ( + CAST ( 6 AS INTEGER ), + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ), - COUNT ( * ), - NULLIF ( 17, - 99 * + 45 ) ) AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6895
SELECT MAX( + + 26 ) + CAST( - MAX( ALL + 12 ) AS SIGNED ) - - 38
----
52

skipif mysql # not compatible
query I rowsort label-6895
SELECT MAX ( + + 26 ) + CAST ( - MAX ( ALL + 12 ) AS INTEGER ) - - 38
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6896
SELECT ALL 36 + + 59 AS col1, NULLIF ( - CAST( NULL AS SIGNED ), - + 46 * + 9 )
----
95
NULL

skipif mysql # not compatible
query II rowsort label-6896
SELECT ALL 36 + + 59 AS col1, NULLIF ( - CAST ( NULL AS INTEGER ), - + 46 * + 9 )
----
95
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6897
SELECT 27 * - 10 AS col0, 37 + CAST( 61 AS SIGNED )
----
-270
98

skipif mysql # not compatible
query II rowsort label-6897
SELECT 27 * - 10 AS col0, 37 + CAST ( 61 AS INTEGER )
----
-270
98

query I rowsort
SELECT 98 + + + ( - - 74 ) AS col1
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT DISTINCT 42 + + 30 - + 60 DIV 45 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT 42 + + 30 - + 60 / 45 AS col0
----
71

query I rowsort
SELECT 17 + + + COALESCE ( 45, 28, + 21 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT 26 + - + MIN( + 10 )
----
16

skipif mysql # not compatible
query I rowsort label-6901
SELECT 26 + - + MIN ( + 10 )
----
16

query I rowsort
SELECT ALL + ( + + 72 ) + 40 + - 56
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6903
SELECT DISTINCT - 26 * + 90, COUNT( DISTINCT + 29 ) col2
----
-2340
1

skipif mysql # not compatible
query II rowsort label-6903
SELECT DISTINCT - 26 * + 90, COUNT ( DISTINCT + 29 ) col2
----
-2340
1

query I rowsort
SELECT ALL - 53 * 67 AS col2
----
-3551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6905
SELECT 7 * COUNT( * ) DIV - 93 * - 43 * NULLIF ( + + 81, - + CAST( + 21 AS SIGNED ) * + 22 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6905
SELECT 7 * COUNT ( * ) / - 93 * - 43 * NULLIF ( + + 81, - + CAST ( + 21 AS INTEGER ) * + 22 ) AS col2
----
0

query I rowsort
SELECT 42 + 45 - + + ( - + 92 ) * - 6 AS col1
----
-465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT DISTINCT - COALESCE ( - CAST( - 6 AS SIGNED ), + + 44 ) * - 55
----
330

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT - COALESCE ( - CAST ( - 6 AS INTEGER ), + + 44 ) * - 55
----
330

onlyif mysql # aggregate syntax: 
query II rowsort label-6908
SELECT ALL + 81 - COUNT( * ) * - 1, COUNT( * ) AS col0
----
82
1

skipif mysql # not compatible
query II rowsort label-6908
SELECT ALL + 81 - COUNT ( * ) * - 1, COUNT ( * ) AS col0
----
82
1

query I rowsort
SELECT + 96 + + + 9
----
105

query I rowsort
SELECT 36 * + 7
----
252

query I rowsort
SELECT ALL + 61 * + - 45 - + - ( + 9 )
----
-2736

onlyif mysql # aggregate syntax: 
query II rowsort label-6912
SELECT - 85 * - - 13 * COUNT( * ) * + 29 * + 10, ( - 50 ) AS col1
----
-320450
-50

skipif mysql # not compatible
query II rowsort label-6912
SELECT - 85 * - - 13 * COUNT ( * ) * + 29 * + 10, ( - 50 ) AS col1
----
-320450
-50

query I rowsort
SELECT 28 + 88
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-6914
SELECT 59 * 43 DIV - + 16
----
-158

skipif mysql # not compatible
query I rowsort label-6914
SELECT 59 * 43 / - + 16
----
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6915
SELECT ALL + 0 * - - 35 * + 76 / AVG ( ALL - NULLIF ( + 92, + + 45 ) ) * - CASE - ( NULLIF ( - 8, 23 - 92 * + + 16 * + 39 + + 38 ) ) WHEN + CASE 50 WHEN + 48 - + 41 THEN + 41 + - COUNT( * ) END + 71 + - + 69 THEN COALESCE ( - CAST( 61 AS SIGNED ), + + CAST( 63 AS SIGNED ) - 90 + + ( - NULLIF ( + 99, - + 99 * - 77 ) ) * 23 ) - CAST( NULL AS SIGNED ) / - 24 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL + 0 * - - 35 * + 76 / AVG ( ALL - NULLIF ( + 92, + + 45 ) ) * - CASE - ( NULLIF ( - 8, 23 - 92 * + + 16 * + 39 + + 38 ) ) WHEN + CASE 50 WHEN + 48 - + 41 THEN + 41 + - COUNT ( * ) END + 71 + - + 69 THEN COALESCE ( - CAST ( 61 AS INTEGER ), + + CAST ( 63 AS INTEGER ) - 90 + + ( - NULLIF ( + 99, - + 99 * - 77 ) ) * 23 ) - CAST ( NULL AS INTEGER ) / - 24 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT + 51 * NULLIF ( - 66, + + COUNT( * ) + + 24 + - + 88 ) AS col0
----
-3366

skipif mysql # not compatible
query I rowsort label-6916
SELECT + 51 * NULLIF ( - 66, + + COUNT ( * ) + + 24 + - + 88 ) AS col0
----
-3366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6917
SELECT NULLIF ( - 84, - 75 + - MAX( - + CAST( NULL AS SIGNED ) ) + + 83 * - 39 * 76 ) * - - 79
----
-6636

skipif mysql # not compatible
query I rowsort label-6917
SELECT NULLIF ( - 84, - 75 + - MAX ( - + CAST ( NULL AS INTEGER ) ) + + 83 * - 39 * 76 ) * - - 79
----
-6636

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT + 2 * + 31 * + MIN( - + 6 ) * - 91 + + - 66 AS col1
----
33786

skipif mysql # not compatible
query I rowsort label-6918
SELECT + 2 * + 31 * + MIN ( - + 6 ) * - 91 + + - 66 AS col1
----
33786

query II rowsort
SELECT + - ( - - 93 ) col2, 60 AS col1
----
-93
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT + COUNT( * ) * + - 17 + - COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-6920
SELECT + COUNT ( * ) * + - 17 + - COUNT ( * ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT 85 + - COUNT( * ) * 81 - + + 83
----
-79

skipif mysql # not compatible
query I rowsort label-6921
SELECT 85 + - COUNT ( * ) * 81 - + + 83
----
-79

query I rowsort
SELECT ALL - - ( + 21 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT DISTINCT - COUNT( * ) * - 12 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT - COUNT ( * ) * - 12 AS col1
----
12

query I rowsort
SELECT ALL - 84 + 96
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT DISTINCT - COUNT( + - 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT - COUNT ( + - 51 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT 11 * - - 9 + - COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6926
SELECT 11 * - - 9 + - COUNT ( * ) AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6927
SELECT - 76 * + 62 + + 23 DIV 96 + + 81 AS col2
----
-4631

skipif mysql # not compatible
query I rowsort label-6927
SELECT - 76 * + 62 + + 23 / 96 + + 81 AS col2
----
-4631

query II rowsort
SELECT + 45 AS col2, - 93 AS col2
----
45
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT COUNT( * ) + - - 14 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6929
SELECT COUNT ( * ) + - - 14 AS col0
----
15

query I rowsort
SELECT 98 * - 11 AS col2
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT NULLIF ( - 67, + - 5 / + 2 - - + 7 ) * 50 * + COUNT( * )
----
-3350

skipif mysql # not compatible
query I rowsort label-6931
SELECT NULLIF ( - 67, + - 5 / + 2 - - + 7 ) * 50 * + COUNT ( * )
----
-3350

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT DISTINCT COUNT( * ) * 90 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT COUNT ( * ) * 90 AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6933
SELECT ALL 1 col0, 15 + - 25 DIV COUNT( * ) DIV - + 17
----
1
16

skipif mysql # not compatible
query II rowsort label-6933
SELECT ALL 1 col0, 15 + - 25 / COUNT ( * ) / - + 17
----
1
16

onlyif mysql # aggregate syntax: 
query II rowsort label-6934
SELECT - COUNT( * ), 54 AS col0
----
-1
54

skipif mysql # not compatible
query II rowsort label-6934
SELECT - COUNT ( * ), 54 AS col0
----
-1
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6935
SELECT ALL 1 + + + 49 + - + 95 - - COUNT( * ) - CAST( - + 85 AS SIGNED ) + - - CASE + MAX( - + 57 ) WHEN - 61 THEN NULL WHEN - + CASE + - 39 WHEN + + 51 THEN 41 WHEN - SUM( - 41 ) / 55 THEN 59 + + 92 END THEN 0 * + 92 WHEN - COALESCE ( + 55, - ( + 52 ) + - + 33 ) - + 71 THEN + + NULLIF ( 91, + 39 + + CASE 39 WHEN 89 THEN NULL WHEN + 25 + - COUNT( * ) THEN NULL ELSE 24 END ) + + 60 + - 71 END * + 30 * CAST( NULL AS SIGNED ) * + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL 1 + + + 49 + - + 95 - - COUNT ( * ) - CAST ( - + 85 AS INTEGER ) + - - CASE + MAX ( - + 57 ) WHEN - 61 THEN NULL WHEN - + CASE + - 39 WHEN + + 51 THEN 41 WHEN - SUM ( - 41 ) / 55 THEN 59 + + 92 END THEN 0 * + 92 WHEN - COALESCE ( + 55, - ( + 52 ) + - + 33 ) - + 71 THEN + + NULLIF ( 91, + 39 + + CASE 39 WHEN 89 THEN NULL WHEN + 25 + - COUNT ( * ) THEN NULL ELSE 24 END ) + + 60 + - 71 END * + 30 * CAST ( NULL AS INTEGER ) * + 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT DISTINCT 24 + - CASE 42 WHEN ( 99 ) THEN - - ( 11 ) * 68 WHEN - CASE + 20 WHEN + ( + 25 ) THEN + 51 + ( - + CASE + 70 WHEN SUM( DISTINCT + 19 ) + 64 * + 57 + + 52 * 90 THEN NULL ELSE 52 END ) WHEN COUNT( * ) THEN NULL END THEN 93 END * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT 24 + - CASE 42 WHEN ( 99 ) THEN - - ( 11 ) * 68 WHEN - CASE + 20 WHEN + ( + 25 ) THEN + 51 + ( - + CASE + 70 WHEN SUM ( DISTINCT + 19 ) + 64 * + 57 + + 52 * 90 THEN NULL ELSE 52 END ) WHEN COUNT ( * ) THEN NULL END THEN 93 END * + 86
----
NULL

query I rowsort
SELECT DISTINCT 88 - - 77
----
165

query I rowsort
SELECT + 53 * + 16 AS col1
----
848

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT ALL 23 - - 87 * 62 + + 36 - + - 47 + + ( COUNT( * ) ) AS col1
----
5501

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL 23 - - 87 * 62 + + 36 - + - 47 + + ( COUNT ( * ) ) AS col1
----
5501

query I rowsort
SELECT + 29 * 62
----
1798

query II rowsort
SELECT - 26 AS col0, 40 * - 41
----
-26
-1640

onlyif mysql # aggregate syntax: 
query II rowsort label-6942
SELECT 12 col0, MIN( + ( ( - 88 ) ) ) * COUNT( * ) * + COUNT( * ) + + 82
----
12
-6

skipif mysql # not compatible
query II rowsort label-6942
SELECT 12 col0, MIN ( + ( ( - 88 ) ) ) * COUNT ( * ) * + COUNT ( * ) + + 82
----
12
-6

query I rowsort
SELECT + 5 - + - 38 AS col0
----
43

query II rowsort
SELECT - + 28, 3 AS col0
----
-28
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6945
SELECT ALL COUNT( * ) - - 44 + + + 96 + - 11 * + COUNT( - 69 ) + 74 * - 39 + + 90, + 20 * - 82 * - ( - 63 ) AS col2
----
-2666
-103320

skipif mysql # not compatible
query II rowsort label-6945
SELECT ALL COUNT ( * ) - - 44 + + + 96 + - 11 * + COUNT ( - 69 ) + 74 * - 39 + + 90, + 20 * - 82 * - ( - 63 ) AS col2
----
-2666
-103320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6946
SELECT + 89 AS col2, + COUNT( * ) * - + CAST( NULL AS SIGNED ) * - SUM( DISTINCT + 12 ) + - 91 * - + 96
----
89
NULL

skipif mysql # not compatible
query II rowsort label-6946
SELECT + 89 AS col2, + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT + 12 ) + - 91 * - + 96
----
89
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6947
SELECT ALL + COALESCE ( - 5, - + SUM( - ( - CAST( NULL AS SIGNED ) ) ), + - 34 * + 49 ) - + + 3 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL + COALESCE ( - 5, - + SUM ( - ( - CAST ( NULL AS INTEGER ) ) ), + - 34 * + 49 ) - + + 3 AS col2
----
-8

query II rowsort
SELECT ALL + 48, + 98 AS col2
----
48
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT + + 15 * - + ( MIN( ALL 48 ) ) * + 79
----
-56880

skipif mysql # not compatible
query I rowsort label-6949
SELECT + + 15 * - + ( MIN ( ALL 48 ) ) * + 79
----
-56880

query I rowsort
SELECT - - ( + - ( - 28 ) ) + - 41
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6951
SELECT + 74, CAST( ( - 27 ) AS SIGNED ) * 6 AS col1
----
74
-162

skipif mysql # not compatible
query II rowsort label-6951
SELECT + 74, CAST ( ( - 27 ) AS INTEGER ) * 6 AS col1
----
74
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6952
SELECT + + 66 DIV + COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6952
SELECT + + 66 / + COUNT ( * ) AS col0
----
66

query I rowsort
SELECT - 5 * + + 69
----
-345

query I rowsort
SELECT ALL 32 * 37
----
1184

onlyif mysql # aggregate syntax: 
query II rowsort label-6955
SELECT ALL + ( - 51 ) * + - CASE 49 WHEN - 69 * + CASE + - 26 WHEN - COUNT( * ) * + 89 THEN + - 57 WHEN - - 47 * - 14 THEN 50 / + 24 ELSE NULL END * + - 28 THEN + 40 + + 8 + + + 52 * - 67 - + 70 END + 73, 64 AS col0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-6955
SELECT ALL + ( - 51 ) * + - CASE 49 WHEN - 69 * + CASE + - 26 WHEN - COUNT ( * ) * + 89 THEN + - 57 WHEN - - 47 * - 14 THEN 50 / + 24 ELSE NULL END * + - 28 THEN + 40 + + 8 + + + 52 * - 67 - + 70 END + 73, 64 AS col0
----
NULL
64

query II rowsort
SELECT DISTINCT + + 50 AS col1, + 18
----
50
18

query I rowsort
SELECT ALL 91 * 87 * - ( 19 ) + 92 + - - 39 * + 40
----
-148771

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6958
SELECT - + 39 DIV + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-6958
SELECT - + 39 / + COUNT ( * )
----
-39

query I rowsort
SELECT - + 33 * - - 22 * + - 54 + - 65 + 84 AS col2
----
39223

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT ALL 78 * - + COUNT( * ) + - COUNT( * ) + + CASE + 66 WHEN - - 4 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL 78 * - + COUNT ( * ) + - COUNT ( * ) + + CASE + 66 WHEN - - 4 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT COUNT( * ) * + 74 - + 40 * + 1 + - 98 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6961
SELECT COUNT ( * ) * + 74 - + 40 * + 1 + - 98 AS col0
----
-64

query I rowsort
SELECT COALESCE ( - 67, + + 27 - + - 23, - 53 + 39 * + 28 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT + MAX( - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6963
SELECT + MAX ( - 42 ) AS col0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT + CASE + 97 WHEN + 62 * - 57 THEN + + CAST( NULL AS SIGNED ) / + - 58 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT + CASE + 97 WHEN + 62 * - 57 THEN + + CAST ( NULL AS INTEGER ) / + - 58 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT ALL MIN( + 32 ) * - 17 AS col2
----
-544

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL MIN ( + 32 ) * - 17 AS col2
----
-544

onlyif mysql # aggregate syntax: 
query II rowsort label-6966
SELECT ALL + SUM( - 44 ) * - 73 * - + 19 AS col1, + 32
----
-61028
32

skipif mysql # not compatible
query II rowsort label-6966
SELECT ALL + SUM ( - 44 ) * - 73 * - + 19 AS col1, + 32
----
-61028
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT - CASE - - 12 WHEN - 92 * + + 7 + - - 52 * + 97 * + COUNT( * ) THEN + 85 - - 67 WHEN + + 66 THEN - MAX( ALL + 29 ) ELSE NULL END * + - 40 * + + COUNT( * ) - - 88 + + - 0 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT - CASE - - 12 WHEN - 92 * + + 7 + - - 52 * + 97 * + COUNT ( * ) THEN + 85 - - 67 WHEN + + 66 THEN - MAX ( ALL + 29 ) ELSE NULL END * + - 40 * + + COUNT ( * ) - - 88 + + - 0 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT + COUNT( * ) * - 65 col2
----
-65

skipif mysql # not compatible
query I rowsort label-6968
SELECT + COUNT ( * ) * - 65 col2
----
-65

query I rowsort
SELECT + 5 + + 36
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-6970
SELECT - ( + + 63 ) AS col1, ( + COUNT( * ) ) * - 61
----
-63
-61

skipif mysql # not compatible
query II rowsort label-6970
SELECT - ( + + 63 ) AS col1, ( + COUNT ( * ) ) * - 61
----
-63
-61

query I rowsort
SELECT ALL 76 * - 38 AS col1
----
-2888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6972
SELECT ALL + ( COUNT( * ) ) DIV + 37 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL + ( COUNT ( * ) ) / + 37 * + COUNT ( * )
----
0

query I rowsort
SELECT + 31 + - 21
----
10

query I rowsort
SELECT - + ( - - ( + 58 ) ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT ALL - 66 * + CASE - 16 WHEN 70 - - - 7 * + 63 THEN - COUNT( * ) ELSE NULL END + + COALESCE ( 84, 32 + + + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL - 66 * + CASE - 16 WHEN 70 - - - 7 * + 63 THEN - COUNT ( * ) ELSE NULL END + + COALESCE ( 84, 32 + + + 5 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT + - 55 + - + MIN( + 92 ) + + + 37 - 31 + + + 4 AS col1
----
-137

skipif mysql # not compatible
query I rowsort label-6976
SELECT + - 55 + - + MIN ( + 92 ) + + + 37 - 31 + + + 4 AS col1
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT + 93 * COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-6977
SELECT + 93 * COUNT ( * )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6978
SELECT ALL 36 * - + 45 DIV - COUNT( * )
----
1620

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL 36 * - + 45 / - COUNT ( * )
----
1620

query I rowsort
SELECT + 6 * - 87 AS col2
----
-522

query II rowsort
SELECT + 76 * - + 79 AS col2, 85 AS col0
----
-6004
85

query I rowsort
SELECT + 80 + + 24 AS col2
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6982
SELECT ALL + CASE - 97 WHEN - 7 THEN 83 WHEN + + 70 THEN - 87 * - CAST( NULL AS SIGNED ) * + 29 + + COUNT( * ) ELSE - 39 END + - + 62 + - - 36 + - - 34
----
-31

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL + CASE - 97 WHEN - 7 THEN 83 WHEN + + 70 THEN - 87 * - CAST ( NULL AS INTEGER ) * + 29 + + COUNT ( * ) ELSE - 39 END + - + 62 + - - 36 + - - 34
----
-31

query I rowsort
SELECT + ( - ( + 14 ) ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT ALL + 59 * - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL + 59 * - COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT + - SUM( DISTINCT - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-6985
SELECT + - SUM ( DISTINCT - 51 )
----
51

query I rowsort
SELECT + CASE 31 WHEN - - 76 THEN + 31 / 82 WHEN - 63 THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6987
SELECT DISTINCT + 6 DIV - 33 + 47 * + COUNT( * ) + + + 71 - MAX( - 18 )
----
136

skipif mysql # not compatible
query I rowsort label-6987
SELECT DISTINCT + 6 / - 33 + 47 * + COUNT ( * ) + + + 71 - MAX ( - 18 )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT DISTINCT + COUNT( * ) * - 25 col1
----
-25

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT + COUNT ( * ) * - 25 col1
----
-25

query I rowsort
SELECT - 25 - + ( + 31 ) col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6990
SELECT - CAST( + 52 AS SIGNED ) * 36 + + + 89 + - 31 + 13 * 15 * - 23 * + + 42 * + 1 + 23
----
-190161

skipif mysql # not compatible
query I rowsort label-6990
SELECT - CAST ( + 52 AS INTEGER ) * 36 + + + 89 + - 31 + 13 * 15 * - 23 * + + 42 * + 1 + 23
----
-190161

onlyif mysql # DIV for integer division: 
query II rowsort label-6991
SELECT ALL - 16 DIV - + 14 - 6, - 48 AS col1
----
-5
-48

skipif mysql # not compatible
query II rowsort label-6991
SELECT ALL - 16 / - + 14 - 6, - 48 AS col1
----
-5
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6992
SELECT ALL + SUM( ALL + - ( - 64 ) ) DIV - 91 * - - 76 + 87
----
87

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL + SUM ( ALL + - ( - 64 ) ) / - 91 * - - 76 + 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT - COUNT( * ) * - COUNT( * ) + + 98 + + + 63
----
162

skipif mysql # not compatible
query I rowsort label-6993
SELECT - COUNT ( * ) * - COUNT ( * ) + + 98 + + + 63
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6994
SELECT ALL + COUNT( * ) - + 13 + 65 * + + NULLIF ( 55, - - CAST( NULL AS SIGNED ) )
----
3563

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL + COUNT ( * ) - + 13 + 65 * + + NULLIF ( 55, - - CAST ( NULL AS INTEGER ) )
----
3563

onlyif mysql # DIV for integer division: 
query I rowsort label-6995
SELECT ALL - 94 DIV 6
----
-15

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL - 94 / 6
----
-15

query I rowsort
SELECT 16 * - 40 AS col0
----
-640

query I rowsort
SELECT 52 + - 66 col2
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-6998
SELECT 23 DIV - 27 * + 90 col0, 39
----
0
39

skipif mysql # not compatible
query II rowsort label-6998
SELECT 23 / - 27 * + 90 col0, 39
----
0
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6999
SELECT 58 DIV ( + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-6999
SELECT 58 / ( + 76 )
----
0

query I rowsort
SELECT ALL + 22 * + 82
----
1804

query I rowsort
SELECT DISTINCT + 4 * - 70 * + 53
----
-14840

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT DISTINCT + COUNT( * ) * 43 * + + 9
----
387

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT + COUNT ( * ) * 43 * + + 9
----
387

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7003
SELECT SUM( ALL + 11 ) * NULLIF ( - + 27, - 70 ) DIV - + SUM( 86 ) + + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-7003
SELECT SUM ( ALL + 11 ) * NULLIF ( - + 27, - 70 ) / - + SUM ( 86 ) + + + COUNT ( * )
----
4

query I rowsort
SELECT 41 * 24 AS col0
----
984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7005
SELECT ( + CAST( NULL AS SIGNED ) ) * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT ( + CAST ( NULL AS INTEGER ) ) * 73
----
NULL

query I rowsort
SELECT ALL 28 + 13 AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7007
SELECT ALL SUM( COALESCE ( + 57, + CAST( NULL AS SIGNED ) ) ) + + MIN( 93 )
----
150

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL SUM ( COALESCE ( + 57, + CAST ( NULL AS INTEGER ) ) ) + + MIN ( 93 )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT DISTINCT + 32 + - ( 42 ) * COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT + 32 + - ( 42 ) * COUNT ( * ) AS col0
----
-10

query I rowsort
SELECT DISTINCT 21 + 21 AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7010
SELECT DISTINCT - 69 DIV 5
----
-13

skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT - 69 / 5
----
-13

query I rowsort
SELECT ALL + 15 + 99
----
114

query I rowsort
SELECT ALL 74 + 72
----
146

query I rowsort
SELECT DISTINCT 85 + 61 col0
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7014
SELECT COALESCE ( - 56, ( ( 3 ) ) + CAST( + 75 AS SIGNED ) ) + ( NULLIF ( + CASE + 98 WHEN - COUNT( * ) THEN NULL WHEN 88 THEN MIN( ALL - ( 44 ) ) + COUNT( * ) * + 96 END, 65 / + 45 + + 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7014
SELECT COALESCE ( - 56, ( ( 3 ) ) + CAST ( + 75 AS INTEGER ) ) + ( NULLIF ( + CASE + 98 WHEN - COUNT ( * ) THEN NULL WHEN 88 THEN MIN ( ALL - ( 44 ) ) + COUNT ( * ) * + 96 END, 65 / + 45 + + 13 ) )
----
NULL

query I rowsort
SELECT 11 - 81
----
-70

query I rowsort
SELECT 61 * - 73 + 75 AS col0
----
-4378

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT ALL - SUM( 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL - SUM ( 39 ) AS col1
----
-39

query I rowsort
SELECT DISTINCT + 7 * + 54 AS col1
----
378

query I rowsort
SELECT DISTINCT 65 * 82 AS col1
----
5330

query I rowsort
SELECT - 81 * 29 - 89 AS col2
----
-2438

query I rowsort
SELECT 26 * + 57 col0
----
1482

query I rowsort
SELECT ALL - 90 * - 60 AS col2
----
5400

query I rowsort
SELECT 32 - + ( 44 )
----
-12

query I rowsort
SELECT ALL 12 * 31
----
372

query I rowsort
SELECT DISTINCT 29 * 62 AS col0
----
1798

query I rowsort
SELECT ALL - COALESCE ( - 97, - 2, - 79 + - 99 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT 51 * - ( COALESCE ( COUNT( * ), 85 * + 51 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-7027
SELECT 51 * - ( COALESCE ( COUNT ( * ), 85 * + 51 ) ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT DISTINCT - 45 / - CASE - COUNT( * ) * 2 WHEN ( + 55 ) THEN - 11 * 98 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7028
SELECT DISTINCT - 45 / - CASE - COUNT ( * ) * 2 WHEN ( + 55 ) THEN - 11 * 98 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 91 + 68
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT + COUNT( * ) * 14 - 97 * 50
----
-4836

skipif mysql # not compatible
query I rowsort label-7030
SELECT + COUNT ( * ) * 14 - 97 * 50
----
-4836

query I rowsort
SELECT - 35 - - 54
----
19

query I rowsort
SELECT - 79 * + 12 AS col2
----
-948

query I rowsort
SELECT + 88 + 6 * - 77
----
-374

onlyif mysql # DIV for integer division: 
query I rowsort label-7034
SELECT ALL - 84 + 1 DIV + 90
----
-84

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL - 84 + 1 / + 90
----
-84

query I rowsort
SELECT DISTINCT - + COALESCE ( 87, 10 + 62, CASE 42 WHEN + 26 * 40 THEN + 10 WHEN 84 * + 46 THEN + 53 END + + 97 ) + - 98 AS col2
----
-185

query I rowsort
SELECT ALL 82 + + NULLIF ( 48 - 92, 0 )
----
38

query I rowsort
SELECT ALL - 32 * + 40
----
-1280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7038
SELECT 97 + - ( CAST( NULL AS SIGNED ) + 35 ) * + ( + 74 + - 24 * - NULLIF ( + 62, 59 + + 60 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7038
SELECT 97 + - ( CAST ( NULL AS INTEGER ) + 35 ) * + ( + 74 + - 24 * - NULLIF ( + 62, 59 + + 60 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7039
SELECT - COUNT( + CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7039
SELECT - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7040
SELECT ALL CAST( 74 AS SIGNED ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL CAST ( 74 AS INTEGER ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT + 18 * - MIN( + 9 * + 57 )
----
-9234

skipif mysql # not compatible
query I rowsort label-7041
SELECT + 18 * - MIN ( + 9 * + 57 )
----
-9234

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT - COUNT( * ) + - 21 * - MIN( 93 * + 31 )
----
60542

skipif mysql # not compatible
query I rowsort label-7042
SELECT - COUNT ( * ) + - 21 * - MIN ( 93 * + 31 )
----
60542

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7043
SELECT DISTINCT MIN( ALL - 85 ) DIV 45 col2
----
-1

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT MIN ( ALL - 85 ) / 45 col2
----
-1

query I rowsort
SELECT ALL 67 * - 17 AS col0
----
-1139

query I rowsort
SELECT 17 * + 4 AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7046
SELECT ALL - COUNT( * ) DIV + NULLIF ( ( - 63 ), + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL - COUNT ( * ) / + NULLIF ( ( - 63 ), + COUNT ( * ) ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7047
SELECT ALL - CAST( - COUNT( 24 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL - CAST ( - COUNT ( 24 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT + MAX( + 19 ) col1
----
19

skipif mysql # not compatible
query I rowsort label-7048
SELECT + MAX ( + 19 ) col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7049
SELECT DISTINCT + SUM( - 12 ) * COUNT( * ) - 94 * + COALESCE ( 93, + 15 DIV 50 + + 15, ( + 22 ) - + ( 28 ) DIV - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1
----
-8754

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT + SUM ( - 12 ) * COUNT ( * ) - 94 * + COALESCE ( 93, + 15 / 50 + + 15, ( + 22 ) - + ( 28 ) / - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1
----
-8754

query I rowsort
SELECT - 36 * + ( 11 ) col1
----
-396

onlyif mysql # DIV for integer division: 
query I rowsort label-7051
SELECT 21 DIV + ( 72 ) + 11 DIV 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7051
SELECT 21 / + ( 72 ) + 11 / 81 AS col0
----
0

query I rowsort
SELECT CASE + + 84 WHEN + 90 * 19 THEN 72 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 30 + - - 19
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7054
SELECT + 89 DIV 87
----
1

skipif mysql # not compatible
query I rowsort label-7054
SELECT + 89 / 87
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT - 15 * + COUNT( * ) + + ( 19 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7055
SELECT - 15 * + COUNT ( * ) + + ( 19 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT SUM( DISTINCT + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-7056
SELECT SUM ( DISTINCT + 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT ALL + 24 * + NULLIF ( COUNT( ALL + 27 ), 84 + 93 * - 94 ) + - COALESCE ( COUNT( * ) + 4, + 2 * + 89 ) * MIN( - 68 ) AS col2
----
364

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL + 24 * + NULLIF ( COUNT ( ALL + 27 ), 84 + 93 * - 94 ) + - COALESCE ( COUNT ( * ) + 4, + 2 * + 89 ) * MIN ( - 68 ) AS col2
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT + COUNT( ALL + 78 ) + ( 5 + 51 ) * - 27 AS col0
----
-1511

skipif mysql # not compatible
query I rowsort label-7058
SELECT + COUNT ( ALL + 78 ) + ( 5 + 51 ) * - 27 AS col0
----
-1511

onlyif mysql # DIV for integer division: 
query I rowsort label-7059
SELECT + 35 * + 2 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-7059
SELECT + 35 * + 2 / 99
----
0

query I rowsort
SELECT ALL 58 * + 3 + NULLIF ( 61, 41 ) AS col1
----
235

query I rowsort
SELECT + 52 + - 4 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT SUM( + + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-7062
SELECT SUM ( + + 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT + 76 * - 57 + MAX( 98 ) AS col2
----
-4234

skipif mysql # not compatible
query I rowsort label-7063
SELECT + 76 * - 57 + MAX ( 98 ) AS col2
----
-4234

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT SUM( + + ( 38 ) )
----
38

skipif mysql # not compatible
query I rowsort label-7064
SELECT SUM ( + + ( 38 ) )
----
38

query I rowsort
SELECT - + 51 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL MAX( 41 )
----
41

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL MAX ( 41 )
----
41

query I rowsort
SELECT DISTINCT - 85 + + 4 + 18 * 81 AS col1
----
1377

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT DISTINCT - - 11 + - COUNT( * ) * 10 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT - - 11 + - COUNT ( * ) * 10 AS col1
----
1

query I rowsort
SELECT - + 66 * + - 85
----
5610

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT DISTINCT SUM( 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT SUM ( 81 ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT - - SUM( DISTINCT + ( + 5 ) ) * - 93
----
-465

skipif mysql # not compatible
query I rowsort label-7071
SELECT - - SUM ( DISTINCT + ( + 5 ) ) * - 93
----
-465

query I rowsort
SELECT ALL + + 69 - - 93
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7073
SELECT + CAST( NULL AS SIGNED ) / 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7073
SELECT + CAST ( NULL AS INTEGER ) / 33
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7074
SELECT - 16 - 41 + + CAST( NULL AS SIGNED ) / 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7074
SELECT - 16 - 41 + + CAST ( NULL AS INTEGER ) / 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT ALL - - 57 * + COUNT( * ) + - ( COUNT( * ) - + MAX( DISTINCT - 73 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL - - 57 * + COUNT ( * ) + - ( COUNT ( * ) - + MAX ( DISTINCT - 73 ) )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT - + MAX( + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-7076
SELECT - + MAX ( + 59 )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7077
SELECT ALL + - CASE COALESCE ( - CAST( + 30 AS SIGNED ), - 77, - 75 ) WHEN - NULLIF ( - CAST( ( ( - 64 ) ) AS SIGNED ), ( + ( 81 ) ) * NULLIF ( 5 - COUNT( * ), 40 ) ) + 23 * - ( 82 ) THEN COUNT( * ) + + COALESCE ( - 23, 52 * 14 ) END - + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL + - CASE COALESCE ( - CAST ( + 30 AS INTEGER ), - 77, - 75 ) WHEN - NULLIF ( - CAST ( ( ( - 64 ) ) AS INTEGER ), ( + ( 81 ) ) * NULLIF ( 5 - COUNT ( * ), 40 ) ) + 23 * - ( 82 ) THEN COUNT ( * ) + + COALESCE ( - 23, 52 * 14 ) END - + 73 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( + + 22 ) * - 9 AS col0
----
198

query I rowsort
SELECT ALL - 76 * + 4 AS col2
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT - + SUM( ALL + + 36 ) * COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-7080
SELECT - + SUM ( ALL + + 36 ) * COUNT ( * )
----
-36

query I rowsort
SELECT - 19 + 42 - 18
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT - 1 - + SUM( ALL - 66 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7082
SELECT - 1 - + SUM ( ALL - 66 ) AS col2
----
65

query I rowsort
SELECT - 13 * + - 8 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT ALL + MAX( ALL ( - 77 ) ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL + MAX ( ALL ( - 77 ) ) AS col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7085
SELECT ALL + CAST( - - 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL + CAST ( - - 16 AS INTEGER )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7086
SELECT 35 * 17 + 79 DIV COUNT( * ) AS col2
----
674

skipif mysql # not compatible
query I rowsort label-7086
SELECT 35 * 17 + 79 / COUNT ( * ) AS col2
----
674

query I rowsort
SELECT ALL 77 * - + 70 * + 24 * + 3
----
-388080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT - 83 * 68 * - CAST( - 47 AS SIGNED )
----
-265268

skipif mysql # not compatible
query I rowsort label-7088
SELECT - 83 * 68 * - CAST ( - 47 AS INTEGER )
----
-265268

onlyif mysql # DIV for integer division: 
query I rowsort label-7089
SELECT DISTINCT 10 DIV + 3 + + 68 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT 10 / + 3 + + 68 AS col2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7090
SELECT ALL ( - 68 ) DIV + 98 + + 73 + + COALESCE ( 11, 35 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL ( - 68 ) / + 98 + + 73 + + COALESCE ( 11, 35 ) AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7091
SELECT ( - + COALESCE ( - COALESCE ( + 92, COUNT( * ) ), COUNT( * ) * COALESCE ( + 33, CAST( 6 AS SIGNED ) ) ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-7091
SELECT ( - + COALESCE ( - COALESCE ( + 92, COUNT ( * ) ), COUNT ( * ) * COALESCE ( + 33, CAST ( 6 AS INTEGER ) ) ) ) AS col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7092
SELECT + ( 12 ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-7092
SELECT + ( 12 ) / 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7093
SELECT ALL 22 * - 57 DIV + COUNT( * ) + 68
----
-1186

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL 22 * - 57 / + COUNT ( * ) + 68
----
-1186

onlyif mysql # DIV for integer division: 
query I rowsort label-7094
SELECT + 35 * + NULLIF ( - 52, 10 DIV + 76 + 93 * ( - 79 DIV 66 + - 40 * + 15 ) ) - - 1 DIV ( + 11 ) AS col2
----
-1820

skipif mysql # not compatible
query I rowsort label-7094
SELECT + 35 * + NULLIF ( - 52, 10 / + 76 + 93 * ( - 79 / 66 + - 40 * + 15 ) ) - - 1 / ( + 11 ) AS col2
----
-1820

query I rowsort
SELECT + ( 95 ) * - 33
----
-3135

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT DISTINCT - COUNT( * ) * - ( + - MAX( - 36 ) ) * 5 + COUNT( * )
----
181

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT - COUNT ( * ) * - ( + - MAX ( - 36 ) ) * 5 + COUNT ( * )
----
181

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT ALL 14 DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL 14 / - 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT + CASE - 89 WHEN - 73 THEN + 4 END + COUNT( * ) * MAX( + 37 + 52 / - 7 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT + CASE - 89 WHEN - 73 THEN + 4 END + COUNT ( * ) * MAX ( + 37 + 52 / - 7 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL COUNT( * ) * 86 + 17
----
103

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL COUNT ( * ) * 86 + 17
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT + COALESCE ( - 63, + COUNT( - ( - ( + 11 ) ) ), + 27 + + COUNT( * ) * 57, - COUNT( * ) ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7100
SELECT + COALESCE ( - 63, + COUNT ( - ( - ( + 11 ) ) ), + 27 + + COUNT ( * ) * 57, - COUNT ( * ) ) AS col0
----
-63

query II rowsort
SELECT + 27, + 82 AS col0
----
27
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT + + 70 * - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-7102
SELECT + + 70 * - COUNT ( * )
----
-70

query I rowsort
SELECT - + 1 + + 85
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7104
SELECT - - 19 * 12 DIV + 34 - - COUNT( * ) * 37 - CAST( 21 AS SIGNED ) * 41 AS col1
----
-818

skipif mysql # not compatible
query I rowsort label-7104
SELECT - - 19 * 12 / + 34 - - COUNT ( * ) * 37 - CAST ( 21 AS INTEGER ) * 41 AS col1
----
-818

query I rowsort
SELECT + + ( - 10 ) + - + 57 * - CASE - 77 * 1 + 3 * 23 WHEN 34 THEN 35 WHEN 48 THEN NULL WHEN ( - 83 ) / 28 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT + 33 - + NULLIF ( + - 5, - 48 * SUM( ALL + CASE 8 WHEN - 32 THEN 48 / + 62 END ) )
----
38

skipif mysql # not compatible
query I rowsort label-7106
SELECT + 33 - + NULLIF ( + - 5, - 48 * SUM ( ALL + CASE 8 WHEN - 32 THEN 48 / + 62 END ) )
----
38

query I rowsort
SELECT + 73 * 3 AS col1
----
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7108
SELECT ( COUNT( * ) ) * + - CAST( + COUNT( * ) AS SIGNED ) + 27 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7108
SELECT ( COUNT ( * ) ) * + - CAST ( + COUNT ( * ) AS INTEGER ) + 27 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT DISTINCT ( - + SUM( - + 37 ) ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT ( - + SUM ( - + 37 ) ) AS col1
----
37

query I rowsort
SELECT ALL COALESCE ( - 5, + - 51 * 2 ) col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7111
SELECT 37 DIV + 53 * + + 93 * - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7111
SELECT 37 / + 53 * + + 93 * - 74 AS col2
----
0

query I rowsort
SELECT + ( - 0 ) + + - 29
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7113
SELECT CAST( NULL AS SIGNED ) / 88 col2, - 53 col0
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-7113
SELECT CAST ( NULL AS INTEGER ) / 88 col2, - 53 col0
----
NULL
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7114
SELECT 52 DIV - 20 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7114
SELECT 52 / - 20 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT + COUNT( * ) * + + 99 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT + COUNT ( * ) * + + 99 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT DISTINCT ( + 55 ) + + - 64 + - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT ( + 55 ) + + - 64 + - COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT DISTINCT COUNT( * ) + - COUNT( * ) + 59
----
59

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) + 59
----
59

query I rowsort
SELECT ALL + 31 * + 34 * + 76
----
80104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7119
SELECT 42 + ( 41 ) DIV + - COUNT( 78 )
----
1

skipif mysql # not compatible
query I rowsort label-7119
SELECT 42 + ( 41 ) / + - COUNT ( 78 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7120
SELECT ALL CAST( - 20 AS SIGNED ) + + 55 + - 47
----
-12

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL CAST ( - 20 AS INTEGER ) + + 55 + - 47
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ALL COUNT( * ) + - CASE 73 WHEN - - 17 * 63 THEN - COUNT( * ) + 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL COUNT ( * ) + - CASE 73 WHEN - - 17 * 63 THEN - COUNT ( * ) + 56 END
----
NULL

query I rowsort
SELECT ALL + 58 + + 91 AS col2
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL - 4 + - ( - - COALESCE ( - MIN( + 41 ), 46 ) ) * + 46
----
1882

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - 4 + - ( - - COALESCE ( - MIN ( + 41 ), 46 ) ) * + 46
----
1882

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT DISTINCT + 77 + - + 4 + + + 43 DIV 97 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT + 77 + - + 4 + + + 43 / 97 AS col1
----
73

query II rowsort
SELECT 86 + + 90, + 78 + + + 69 + - 9 * 54 AS col2
----
176
-339

onlyif mysql # aggregate syntax: 
query II rowsort label-7126
SELECT DISTINCT - COUNT( * ) + 18, + 57 AS col0
----
17
57

skipif mysql # not compatible
query II rowsort label-7126
SELECT DISTINCT - COUNT ( * ) + 18, + 57 AS col0
----
17
57

onlyif mysql # DIV for integer division: 
query I rowsort label-7127
SELECT ALL + 59 + + - 97 DIV + 49 + 56
----
114

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL + 59 + + - 97 / + 49 + 56
----
114

query I rowsort
SELECT ALL 21 - 87 AS col0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7129
SELECT DISTINCT + MIN( - NULLIF ( + 38, ( + 64 ) ) ) DIV 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT + MIN ( - NULLIF ( + 38, ( + 64 ) ) ) / 92 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT ALL - + MAX( DISTINCT ( + 4 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL - + MAX ( DISTINCT ( + 4 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT DISTINCT + + NULLIF ( + + 96, - 80 * + COUNT( * ) ) * 87
----
8352

skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT + + NULLIF ( + + 96, - 80 * + COUNT ( * ) ) * 87
----
8352

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT - 86 * - - COUNT( * ) + + COUNT( * ) - + COALESCE ( - CASE + 23 WHEN ( 31 ) THEN NULL ELSE 63 END, - 60 ) + + 61
----
39

skipif mysql # not compatible
query I rowsort label-7132
SELECT - 86 * - - COUNT ( * ) + + COUNT ( * ) - + COALESCE ( - CASE + 23 WHEN ( 31 ) THEN NULL ELSE 63 END, - 60 ) + + 61
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT ALL + COUNT( * ) - 59 + 13
----
-45

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL + COUNT ( * ) - 59 + 13
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7134
SELECT + MAX( ALL - 15 ) DIV + COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7134
SELECT + MAX ( ALL - 15 ) / + COUNT ( * ) AS col2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7135
SELECT - COUNT( * ) + + - COUNT( * ) DIV 35 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7135
SELECT - COUNT ( * ) + + - COUNT ( * ) / 35 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT + SUM( ALL + 41 ) * + 75
----
3075

skipif mysql # not compatible
query I rowsort label-7136
SELECT + SUM ( ALL + 41 ) * + 75
----
3075

query I rowsort
SELECT + 40 * + 75 - + - 57 + + 37 * + 42 AS col0
----
4611

query I rowsort
SELECT 96 * - 32 AS col2
----
-3072

query I rowsort
SELECT DISTINCT + 42 * 83
----
3486

onlyif mysql # DIV for integer division: 
query II rowsort label-7140
SELECT DISTINCT 32 DIV + - 41 col0, + ( - - 97 )
----
0
97

skipif mysql # not compatible
query II rowsort label-7140
SELECT DISTINCT 32 / + - 41 col0, + ( - - 97 )
----
0
97

query I rowsort
SELECT DISTINCT COALESCE ( - + 93, 41 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT COALESCE ( - MAX( ALL + 88 ), + + 39, + ( 27 ) * - 48 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-7142
SELECT COALESCE ( - MAX ( ALL + 88 ), + + 39, + ( 27 ) * - 48 ) AS col2
----
-88

query I rowsort
SELECT - 73 * + 46 * + 56
----
-188048

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT DISTINCT + 26 + 59 + MAX( ALL - + 1 ) * 61 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT + 26 + 59 + MAX ( ALL - + 1 ) * 61 AS col2
----
24

query I rowsort
SELECT COALESCE ( - - 44, - + 27 ) - 62 AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7146
SELECT ALL CAST( NULL AS DECIMAL ) + - 2 - - - ( + CAST( NULL AS SIGNED ) ) * + 79 * MAX( DISTINCT ( - ( - 39 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL CAST ( NULL AS REAL ) + - 2 - - - ( + CAST ( NULL AS INTEGER ) ) * + 79 * MAX ( DISTINCT ( - ( - 39 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT DISTINCT ( + + 69 ) + - - 81 - - 71 * COUNT( * ) col2
----
221

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT ( + + 69 ) + - - 81 - - 71 * COUNT ( * ) col2
----
221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7148
SELECT CAST( NULL AS SIGNED ) - - 77 + + COUNT( * ) - + 2 * - 20 * + ( 53 ) * - 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7148
SELECT CAST ( NULL AS INTEGER ) - - 77 + + COUNT ( * ) - + 2 * - 20 * + ( 53 ) * - 96 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7149
SELECT ALL CAST( NULL AS DECIMAL ) + - COUNT( * ) * + + 95 + 12 / - 86 * - 57 + + 99 * 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL CAST ( NULL AS REAL ) + - COUNT ( * ) * + + 95 + 12 / - 86 * - 57 + + 99 * 50 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 43 AS col1, 28 - - 66 col0
----
43
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7151
SELECT ALL CAST( + 34 AS SIGNED ) + 80
----
114

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL CAST ( + 34 AS INTEGER ) + 80
----
114

query I rowsort
SELECT ALL - 72 + + 47
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT DISTINCT 0 + + MAX( 48 ) + - + 12 + + 25 * 33
----
861

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT 0 + + MAX ( 48 ) + - + 12 + + 25 * 33
----
861

query I rowsort
SELECT 35 + 20 AS col2
----
55

query I rowsort
SELECT 70 - 64 + + 49 AS col2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7156
SELECT 77 DIV + 94 col1
----
0

skipif mysql # not compatible
query I rowsort label-7156
SELECT 77 / + 94 col1
----
0

query I rowsort
SELECT ALL 35 + + 66
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT MIN( ALL - 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-7158
SELECT MIN ( ALL - 99 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT + MIN( - ( - 53 ) )
----
53

skipif mysql # not compatible
query I rowsort label-7159
SELECT + MIN ( - ( - 53 ) )
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7160
SELECT ALL - 0 * - + ( COALESCE ( 5, + - 62, - 15 DIV CASE ( 22 ) WHEN 93 * 7 THEN - 97 * 42 ELSE NULL END ) )
----
0

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL - 0 * - + ( COALESCE ( 5, + - 62, - 15 / CASE ( 22 ) WHEN 93 * 7 THEN - 97 * 42 ELSE NULL END ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7161
SELECT ALL 8 * 56 - + - 78 DIV NULLIF ( 75, ( - 14 ) * 84 )
----
449

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL 8 * 56 - + - 78 / NULLIF ( 75, ( - 14 ) * 84 )
----
449

query I rowsort
SELECT ALL 26 * + NULLIF ( + 46, 6 ) - - - 43 + - 37
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT + - SUM( + 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-7163
SELECT + - SUM ( + 27 ) AS col1
----
-27

query II rowsort
SELECT - 89 col1, 65
----
-89
65

query I rowsort
SELECT ALL + 65 * - 30
----
-1950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7166
SELECT + COALESCE ( - 82, + COUNT( * ) ) * + 28 * + 84 - CASE COUNT( * ) + ( 99 ) WHEN + 32 + + COUNT( + 78 ) THEN NULL WHEN - 53 THEN - CASE - 96 WHEN CAST( - 87 AS SIGNED ) THEN NULL WHEN - 88 + + 42 THEN 40 ELSE NULL END WHEN ( - CAST( NULL AS DECIMAL ) ) THEN 99 ELSE NULL END / NULLIF ( 3, 53 + - 98 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT + COALESCE ( - 82, + COUNT ( * ) ) * + 28 * + 84 - CASE COUNT ( * ) + ( 99 ) WHEN + 32 + + COUNT ( + 78 ) THEN NULL WHEN - 53 THEN - CASE - 96 WHEN CAST ( - 87 AS INTEGER ) THEN NULL WHEN - 88 + + 42 THEN 40 ELSE NULL END WHEN ( - CAST ( NULL AS REAL ) ) THEN 99 ELSE NULL END / NULLIF ( 3, 53 + - 98 ) col2
----
NULL

query I rowsort
SELECT 49 * - 3 AS col2
----
-147

query I rowsort
SELECT ALL - ( 23 ) col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT ALL - + 50 * - MAX( ALL + + 61 ) * + + 11
----
33550

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL - + 50 * - MAX ( ALL + + 61 ) * + + 11
----
33550

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT DISTINCT + + ( + - ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT + + ( + - ( COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT ALL - - ( 68 ) + + + 49 + - 68 * - NULLIF ( - COUNT( * ), - 75 * - 93 + + 58 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL - - ( 68 ) + + + 49 + - 68 * - NULLIF ( - COUNT ( * ), - 75 * - 93 + + 58 ) AS col1
----
49

query I rowsort
SELECT - + 77 - 85 + + + 30 * + 1 AS col2
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT - 87 * 68 + + COUNT( * ) AS col1
----
-5915

skipif mysql # not compatible
query I rowsort label-7173
SELECT - 87 * 68 + + COUNT ( * ) AS col1
----
-5915

query I rowsort
SELECT + - 3 + + 16 * + COALESCE ( + 74, - + 34, 65 ) col1
----
1181

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT - CASE - + 67 WHEN - + 13 THEN NULL WHEN + COUNT( - 40 ) + 68 / - MAX( - 1 ) THEN 52 ELSE + 7 - 89 END
----
82

skipif mysql # not compatible
query I rowsort label-7175
SELECT - CASE - + 67 WHEN - + 13 THEN NULL WHEN + COUNT ( - 40 ) + 68 / - MAX ( - 1 ) THEN 52 ELSE + 7 - 89 END
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT + + MIN( + ( + 31 ) ) * + 30
----
930

skipif mysql # not compatible
query I rowsort label-7176
SELECT + + MIN ( + ( + 31 ) ) * + 30
----
930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7177
SELECT 17 * + 63 * 14 + + 7 DIV - 88 + COALESCE ( + 54 + ( 2 + + COALESCE ( - 47, 25 + - CASE WHEN + 36 + - 13 IN ( - COUNT( * ) ) THEN NULL WHEN NOT MIN( - 14 ) > NULL THEN NULL ELSE - 67 END * 12 ) ) * - 4, - 30 ) col1
----
15228

skipif mysql # not compatible
query I rowsort label-7177
SELECT 17 * + 63 * 14 + + 7 / - 88 + COALESCE ( + 54 + ( 2 + + COALESCE ( - 47, 25 + - CASE WHEN + 36 + - 13 IN ( - COUNT ( * ) ) THEN NULL WHEN NOT MIN ( - 14 ) > NULL THEN NULL ELSE - 67 END * 12 ) ) * - 4, - 30 ) col1
----
15228

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT - MIN( DISTINCT + 67 ) + - 50 AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-7178
SELECT - MIN ( DISTINCT + 67 ) + - 50 AS col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT DISTINCT COALESCE ( + + MAX( + 65 ), + 60, MIN( - 55 ) )
----
65

skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT COALESCE ( + + MAX ( + 65 ), + 60, MIN ( - 55 ) )
----
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7180
SELECT - 42 + - CAST( + 43 AS DECIMAL ) - - 69 - - 53 + - - 50 + + 8 / + CASE 61 * - 59 WHEN + 75 / COUNT( * ) THEN 4 * + COUNT( ALL - 47 * 24 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7180
SELECT - 42 + - CAST ( + 43 AS REAL ) - - 69 - - 53 + - - 50 + + 8 / + CASE 61 * - 59 WHEN + 75 / COUNT ( * ) THEN 4 * + COUNT ( ALL - 47 * 24 ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7181
SELECT ALL 54 DIV CASE COUNT( * ) WHEN COALESCE ( - 69, + CAST( NULL AS SIGNED ) * 24 ) * 67 - - 70 THEN NULL ELSE - 32 + - 10 END * - 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL 54 / CASE COUNT ( * ) WHEN COALESCE ( - 69, + CAST ( NULL AS INTEGER ) * 24 ) * 67 - - 70 THEN NULL ELSE - 32 + - 10 END * - 33 AS col1
----
33

query II rowsort
SELECT 53, + 25 col1
----
53
25

query I rowsort
SELECT ALL + 77 + + 49 AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT - SUM( + 29 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-7184
SELECT - SUM ( + 29 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT - COUNT( * ) + + 62 + 29
----
90

skipif mysql # not compatible
query I rowsort label-7185
SELECT - COUNT ( * ) + + 62 + 29
----
90

query I rowsort
SELECT - COALESCE ( + + 66, + 37, - 44 )
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7187
SELECT + 89 + - - 94 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7187
SELECT + 89 + - - 94 * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL 94 + - 19 AS col1
----
75

query II rowsort
SELECT DISTINCT 53, + 70 AS col1
----
53
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT - SUM( ALL - 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7190
SELECT - SUM ( ALL - 64 ) AS col0
----
64

query II rowsort
SELECT ALL 59, ( - + 55 ) + - - 95 AS col2
----
59
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT ALL - 41 * COUNT( * ) * - ( 48 )
----
1968

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL - 41 * COUNT ( * ) * - ( 48 )
----
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT 82 - - - 87 * + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT 82 - - - 87 * + COUNT ( * )
----
-5

query II rowsort
SELECT ALL 68 AS col0, + 14 AS col2
----
68
14

query I rowsort
SELECT DISTINCT 11 * 22 AS col0
----
242

query I rowsort
SELECT + 22 * 72 * + ( - 51 ) AS col0
----
-80784

onlyif mysql # DIV for integer division: 
query I rowsort label-7197
SELECT + 25 + - COALESCE ( COALESCE ( - + 9, + 57 + + 4 ), - ( + 89 ) + 49 ) DIV - 73 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7197
SELECT + 25 + - COALESCE ( COALESCE ( - + 9, + 57 + + 4 ), - ( + 89 ) + 49 ) / - 73 AS col2
----
25

query I rowsort
SELECT + + 39 * 82 * + - NULLIF ( - - 8, - 24 ) - 19 + + 59 AS col0
----
-25544

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT COUNT( * ) * ( - 0 ) * 14 + 89 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7199
SELECT COUNT ( * ) * ( - 0 ) * 14 + 89 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT + - MAX( DISTINCT + 25 ) * - COUNT( * ) * 85 AS col0
----
2125

skipif mysql # not compatible
query I rowsort label-7200
SELECT + - MAX ( DISTINCT + 25 ) * - COUNT ( * ) * 85 AS col0
----
2125

onlyif mysql # DIV for integer division: 
query I rowsort label-7201
SELECT ALL ( 71 ) DIV - 34 + - 24 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL ( 71 ) / - 34 + - 24 AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7202
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ), 99 * - 76 + 56 AS col2
----
NULL
-7468

skipif mysql # not compatible
query II rowsort label-7202
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ), 99 * - 76 + 56 AS col2
----
NULL
-7468

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT - 80 * - 9 * + - COUNT( * ) AS col0
----
-720

skipif mysql # not compatible
query I rowsort label-7203
SELECT - 80 * - 9 * + - COUNT ( * ) AS col0
----
-720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7204
SELECT ALL - COUNT( * ) * + COUNT( * ) + + MIN( ALL 10 ) + 67 DIV + + 77 + 50 * 85 + 83 * + SUM( - 49 ) AS col2
----
192

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + + MIN ( ALL 10 ) + 67 / + + 77 + 50 * 85 + 83 * + SUM ( - 49 ) AS col2
----
192

query I rowsort
SELECT DISTINCT + - ( + 38 )
----
-38

query II rowsort
SELECT DISTINCT + 94 AS col0, 32 AS col2
----
94
32

query I rowsort
SELECT DISTINCT - - 78 * - 99 + + NULLIF ( + 69, - 63 ) AS col1
----
-7653

query I rowsort
SELECT - 82 * - 40
----
3280

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ALL + + 91 * + MIN( ALL - 7 ) + - - 70 AS col0
----
-567

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL + + 91 * + MIN ( ALL - 7 ) + - - 70 AS col0
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT ALL COUNT( + 60 ) * COALESCE ( - 85, + + COUNT( * ) - + COUNT( * ) ) + + 41 + 3 * + 82 AS col0
----
202

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL COUNT ( + 60 ) * COALESCE ( - 85, + + COUNT ( * ) - + COUNT ( * ) ) + + 41 + 3 * + 82 AS col0
----
202

query II rowsort
SELECT DISTINCT - 17 * - 80, + ( + + 42 ) AS col2
----
1360
42

query I rowsort
SELECT ALL - 21 * + 13 + - - 89 AS col2
----
-184

query I rowsort
SELECT DISTINCT + 38 * + 5 + - + NULLIF ( + + 1, + 51 ) AS col2
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-7214
SELECT - SUM( + 42 ), 46 AS col2
----
-42
46

skipif mysql # not compatible
query II rowsort label-7214
SELECT - SUM ( + 42 ), 46 AS col2
----
-42
46

query II rowsort
SELECT ALL ( 16 ) AS col1, 19
----
16
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7216
SELECT DISTINCT - 18 * - 62 * 0 DIV 27
----
0

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT - 18 * - 62 * 0 / 27
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7217
SELECT - MIN( ALL - 98 ) DIV 85 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7217
SELECT - MIN ( ALL - 98 ) / 85 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7218
SELECT + COUNT( * ) * 61 * SUM( + CAST( - 0 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7218
SELECT + COUNT ( * ) * 61 * SUM ( + CAST ( - 0 AS INTEGER ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7219
SELECT ALL - 45 - - ( - CAST( - + 8 AS SIGNED ) )
----
-37

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL - 45 - - ( - CAST ( - + 8 AS INTEGER ) )
----
-37

query I rowsort
SELECT - 77 - - ( + 82 ) + + 87 + + 77 + + 57 * - 21 * - 77 AS col1
----
92338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7221
SELECT ALL COALESCE ( + COUNT( * ), CASE ( + 15 ) WHEN + 29 THEN 91 * + CAST( CAST( 41 AS SIGNED ) AS SIGNED ) WHEN 44 THEN NULL ELSE + 95 + 28 END, + 70 + - 79 * + ( 16 DIV - ( 85 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL COALESCE ( + COUNT ( * ), CASE ( + 15 ) WHEN + 29 THEN 91 * + CAST ( CAST ( 41 AS INTEGER ) AS INTEGER ) WHEN 44 THEN NULL ELSE + 95 + 28 END, + 70 + - 79 * + ( 16 / - ( 85 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT - COALESCE ( + 92, COUNT( * ), 50 )
----
-92

skipif mysql # not compatible
query I rowsort label-7222
SELECT - COALESCE ( + 92, COUNT ( * ), 50 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7223
SELECT DISTINCT CAST( 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT CAST ( 34 AS INTEGER )
----
34

query I rowsort
SELECT - 11 * + + 7 col1
----
-77

query I rowsort
SELECT DISTINCT + 99 * - 85 * + - 99 * - 77
----
-64147545

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT + 37 * + + NULLIF ( + 93, 56 * - - 79 - + 34 / + NULLIF ( 63, 69 / 88 + 58 ) + 15 * MIN( DISTINCT - ( - 19 ) ) ) + - 25
----
3416

skipif mysql # not compatible
query I rowsort label-7226
SELECT + 37 * + + NULLIF ( + 93, 56 * - - 79 - + 34 / + NULLIF ( 63, 69 / 88 + 58 ) + 15 * MIN ( DISTINCT - ( - 19 ) ) ) + - 25
----
3416

query I rowsort
SELECT DISTINCT - ( 36 ) * - 20
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT ALL + + 79 + 13 + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL + + 79 + 13 + - COUNT ( * )
----
91

query I rowsort
SELECT 81 * - + 44 + + 25
----
-3539

onlyif mysql # DIV for integer division: 
query II rowsort label-7230
SELECT ALL - 21 + - 77 DIV + 70 + 56 * 90, - 59 * + 3 AS col1
----
5018
-177

skipif mysql # not compatible
query II rowsort label-7230
SELECT ALL - 21 + - 77 / + 70 + 56 * 90, - 59 * + 3 AS col1
----
5018
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT DISTINCT 38 + + + COUNT( * ) col0
----
39

skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT 38 + + + COUNT ( * ) col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7232
SELECT DISTINCT COUNT( * ) * - 23, 29 AS col1
----
-23
29

skipif mysql # not compatible
query II rowsort label-7232
SELECT DISTINCT COUNT ( * ) * - 23, 29 AS col1
----
-23
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT - 95 * - COUNT( * ) * - ( 89 ) + + 91 + - + 58
----
-8422

skipif mysql # not compatible
query I rowsort label-7233
SELECT - 95 * - COUNT ( * ) * - ( 89 ) + + 91 + - + 58
----
-8422

query I rowsort
SELECT ALL 56 + - 67 AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7235
SELECT - 0 * + + COALESCE ( + ( + COUNT( * ) ), 58, 3 * + MAX( - 65 ) + - 61 - + 24 ) DIV 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7235
SELECT - 0 * + + COALESCE ( + ( + COUNT ( * ) ), 58, 3 * + MAX ( - 65 ) + - 61 - + 24 ) / 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT - - MAX( 64 ) * + - 25 - - 94 AS col2
----
-1506

skipif mysql # not compatible
query I rowsort label-7236
SELECT - - MAX ( 64 ) * + - 25 - - 94 AS col2
----
-1506

onlyif mysql # DIV for integer division: 
query I rowsort label-7237
SELECT DISTINCT + ( - 56 ) DIV - + 71 + COALESCE ( 94, - + 29 ) col2
----
94

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT + ( - 56 ) / - + 71 + COALESCE ( 94, - + 29 ) col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT ALL 83 + MAX( DISTINCT + 43 )
----
126

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL 83 + MAX ( DISTINCT + 43 )
----
126

query II rowsort
SELECT ALL + 89 * - + 69 col2, + 76
----
-6141
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT DISTINCT - 78 DIV - 64 + - 57 + 81 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT - 78 / - 64 + - 57 + 81 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT ALL - COUNT( * ) + ( - - 59 ) + - 50 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL - COUNT ( * ) + ( - - 59 ) + - 50 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT + - CASE - COUNT( * ) WHEN 73 THEN NULL WHEN - 17 / - ( + 59 ) THEN 47 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7242
SELECT + - CASE - COUNT ( * ) WHEN 73 THEN NULL WHEN - 17 / - ( + 59 ) THEN 47 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT + + 21 * - COUNT( * ) + + 10
----
-11

skipif mysql # not compatible
query I rowsort label-7243
SELECT + + 21 * - COUNT ( * ) + + 10
----
-11

query I rowsort
SELECT ALL ( - 79 ) * + + 92 AS col0
----
-7268

query I rowsort
SELECT 35 + - 46 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT 71 + COUNT( * ) col2
----
72

skipif mysql # not compatible
query I rowsort label-7246
SELECT 71 + COUNT ( * ) col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT 80 + COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7247
SELECT 80 + COUNT ( * ) AS col1
----
81

query I rowsort
SELECT 90 + 31
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT SUM( ALL NULLIF ( + 1, - ( - 16 ) ) ) + + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7249
SELECT SUM ( ALL NULLIF ( + 1, - ( - 16 ) ) ) + + - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT 70 + 69 AS col0
----
139

query II rowsort
SELECT 7, 72 AS col2
----
7
72

query II rowsort
SELECT ALL 3, 63 + - 56 + + + NULLIF ( 67, - 62 + - + 79 + + - 10 ) - - 86 AS col1
----
3
160

query I rowsort
SELECT 86 * 27
----
2322

onlyif mysql # aggregate syntax: 
query II rowsort label-7254
SELECT DISTINCT 60, - MAX( 77 ) AS col0
----
60
-77

skipif mysql # not compatible
query II rowsort label-7254
SELECT DISTINCT 60, - MAX ( 77 ) AS col0
----
60
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7255
SELECT 66 + 39 - - SUM( + 89 ) + - 51 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7255
SELECT 66 + 39 - - SUM ( + 89 ) + - 51 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT 5 + - COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7256
SELECT 5 + - COUNT ( * ) AS col1
----
4

query I rowsort
SELECT ALL + 78 * 51 col2
----
3978

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT 76 * + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-7258
SELECT 76 * + COUNT ( * )
----
76

query I rowsort
SELECT 11 * + 15 AS col0
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7260
SELECT - 21 col0, + COALESCE ( ( + + 70 ), + - 11, + CASE - 22 WHEN - 88 THEN + 56 + 35 * + 52 WHEN 64 * - 76 THEN 11 END / + COUNT( - 18 / CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ) ) * 7 + + MAX( CAST( NULL AS SIGNED ) + + 8 )
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-7260
SELECT - 21 col0, + COALESCE ( ( + + 70 ), + - 11, + CASE - 22 WHEN - 88 THEN + 56 + 35 * + 52 WHEN 64 * - 76 THEN 11 END / + COUNT ( - 18 / CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) ) * 7 + + MAX ( CAST ( NULL AS INTEGER ) + + 8 )
----
-21
NULL

query I rowsort
SELECT 92 + - 73
----
19

query I rowsort
SELECT ALL + ( + 10 ) * - 88 + 22 + + 43
----
-815

onlyif mysql # DIV for integer division: 
query II rowsort label-7263
SELECT 45 AS col1, 82 DIV + - 87 AS col0
----
45
0

skipif mysql # not compatible
query II rowsort label-7263
SELECT 45 AS col1, 82 / + - 87 AS col0
----
45
0

query I rowsort
SELECT DISTINCT + 84 * ( - 31 ) + + - 24 AS col2
----
-2628

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7265
SELECT ALL - 25 + + - 5 + - 46 + + 75 DIV - + COUNT( * )
----
-151

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL - 25 + + - 5 + - 46 + + 75 / - + COUNT ( * )
----
-151

query I rowsort
SELECT ALL + 67 + - 46
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-7267
SELECT ALL MIN( + 60 ) + - 38 + 8, 11 AS col0
----
30
11

skipif mysql # not compatible
query II rowsort label-7267
SELECT ALL MIN ( + 60 ) + - 38 + 8, 11 AS col0
----
30
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT - + 26 * - 31 + + MIN( DISTINCT + 23 ) * - 7
----
645

skipif mysql # not compatible
query I rowsort label-7268
SELECT - + 26 * - 31 + + MIN ( DISTINCT + 23 ) * - 7
----
645

onlyif mysql # DIV for integer division: 
query I rowsort label-7269
SELECT DISTINCT + 34 DIV 19 + 49 * - 39
----
-1910

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT + 34 / 19 + 49 * - 39
----
-1910

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT 65 * + 90 + SUM( ALL + 15 ) AS col1
----
5865

skipif mysql # not compatible
query I rowsort label-7270
SELECT 65 * + 90 + SUM ( ALL + 15 ) AS col1
----
5865

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT COALESCE ( - COUNT( - 13 ), - 68, 48 * + 35 - + 43, 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-7271
SELECT COALESCE ( - COUNT ( - 13 ), - 68, 48 * + 35 - + 43, 68 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7272
SELECT + CAST( - 95 AS SIGNED ) DIV - 4 + - 65
----
-42

skipif mysql # not compatible
query I rowsort label-7272
SELECT + CAST ( - 95 AS INTEGER ) / - 4 + - 65
----
-42

query I rowsort
SELECT ALL - 84 + - 0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7274
SELECT ALL + COUNT( * ) + - NULLIF ( - 61, NULLIF ( - COALESCE ( + 37, + CAST( NULL AS SIGNED ) - 20 + 3, + CASE 19 WHEN 2 * 96 THEN NULL WHEN CAST( NULL AS SIGNED ) * 40 THEN + NULLIF ( + 33, 16 ) * ( COUNT( * ) + - CAST( CASE - 20 WHEN + 27 + 94 * + 83 THEN - 72 + COALESCE ( 49, 30 + - 11 ) WHEN 81 + - 17 THEN - 76 / - 69 + + 96 END + COUNT( * ) AS SIGNED ) ) WHEN - 64 + 9 THEN NULL END * + CAST( 65 + COUNT( * ) AS SIGNED ) ), ( 70 ) + 7 / + 32 ) )
----
62

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL + COUNT ( * ) + - NULLIF ( - 61, NULLIF ( - COALESCE ( + 37, + CAST ( NULL AS INTEGER ) - 20 + 3, + CASE 19 WHEN 2 * 96 THEN NULL WHEN CAST ( NULL AS INTEGER ) * 40 THEN + NULLIF ( + 33, 16 ) * ( COUNT ( * ) + - CAST ( CASE - 20 WHEN + 27 + 94 * + 83 THEN - 72 + COALESCE ( 49, 30 + - 11 ) WHEN 81 + - 17 THEN - 76 / - 69 + + 96 END + COUNT ( * ) AS INTEGER ) ) WHEN - 64 + 9 THEN NULL END * + CAST ( 65 + COUNT ( * ) AS INTEGER ) ), ( 70 ) + 7 / + 32 ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT NULLIF ( COUNT( * ), - + 52 ) * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7275
SELECT NULLIF ( COUNT ( * ), - + 52 ) * - - COUNT ( * )
----
1

query I rowsort
SELECT ALL + - 47 + + 30 AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7277
SELECT DISTINCT + CAST( + - 4 AS SIGNED ) * - + CASE 69 WHEN COALESCE ( - + 44, - 81 + 74 + - COUNT( * ) ) / + 29 THEN NULL WHEN + 81 THEN 2 * COUNT( * ) + 77 ELSE - 33 * 6 END AS col1
----
-792

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT + CAST ( + - 4 AS INTEGER ) * - + CASE 69 WHEN COALESCE ( - + 44, - 81 + 74 + - COUNT ( * ) ) / + 29 THEN NULL WHEN + 81 THEN 2 * COUNT ( * ) + 77 ELSE - 33 * 6 END AS col1
----
-792

query II rowsort
SELECT + - 52 AS col2, 35
----
-52
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ALL + CASE - 23 WHEN - COUNT( * ) THEN NULL ELSE 91 + + ( 35 ) END * - + COUNT( * ) + + + COALESCE ( 76, 21 - 27 * 65, + COUNT( * ) )
----
-50

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL + CASE - 23 WHEN - COUNT ( * ) THEN NULL ELSE 91 + + ( 35 ) END * - + COUNT ( * ) + + + COALESCE ( 76, 21 - 27 * 65, + COUNT ( * ) )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT ALL + - 72 + - 6 + + - COALESCE ( - 8, + 92, - COUNT( * ) ) + + COUNT( * ) + - - 77 * - MAX( DISTINCT - 76 ) * 11
----
64303

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL + - 72 + - 6 + + - COALESCE ( - 8, + 92, - COUNT ( * ) ) + + COUNT ( * ) + - - 77 * - MAX ( DISTINCT - 76 ) * 11
----
64303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7281
SELECT ALL 17 - 97 * ( + 92 ) + + CAST( NULL AS SIGNED ) + + 52 * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL 17 - 97 * ( + 92 ) + + CAST ( NULL AS INTEGER ) + + 52 * - 94
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7282
SELECT + 30 * NULLIF ( + 37, 1 * + 97 * - 67 * - NULLIF ( 86, + 31 ) * CAST( NULL AS SIGNED ) ) DIV - MAX( 7 ) + 38 * 6
----
70

skipif mysql # not compatible
query I rowsort label-7282
SELECT + 30 * NULLIF ( + 37, 1 * + 97 * - 67 * - NULLIF ( 86, + 31 ) * CAST ( NULL AS INTEGER ) ) / - MAX ( 7 ) + 38 * 6
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT ALL 95 - - ( - COUNT( + 83 ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL 95 - - ( - COUNT ( + 83 ) ) AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7284
SELECT ALL 71 DIV + - 67 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL 71 / + - 67 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT DISTINCT 30 - - NULLIF ( 93, + 5 + + + MAX( - + 31 ) + - 18 * - 87 * + 91 ) AS col2
----
123

skipif mysql # not compatible
query I rowsort label-7285
SELECT DISTINCT 30 - - NULLIF ( 93, + 5 + + + MAX ( - + 31 ) + - 18 * - 87 * + 91 ) AS col2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7286
SELECT CAST( + + 70 AS SIGNED ) * + 37 * + 76
----
196840

skipif mysql # not compatible
query I rowsort label-7286
SELECT CAST ( + + 70 AS INTEGER ) * + 37 * + 76
----
196840

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7287
SELECT ALL 36 / + - CAST( NULL AS DECIMAL ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL 36 / + - CAST ( NULL AS REAL ) * COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7288
SELECT 86 DIV CASE + 64 WHEN + 43 * - 41 * + 55 + 19 THEN NULL ELSE - 96 END col2
----
0

skipif mysql # not compatible
query I rowsort label-7288
SELECT 86 / CASE + 64 WHEN + 43 * - 41 * + 55 + 19 THEN NULL ELSE - 96 END col2
----
0

query I rowsort
SELECT ALL 29 * + 25 AS col2
----
725

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT MAX( ALL - 46 ) * + 34
----
-1564

skipif mysql # not compatible
query I rowsort label-7290
SELECT MAX ( ALL - 46 ) * + 34
----
-1564

onlyif mysql # DIV for integer division: 
query II rowsort label-7291
SELECT DISTINCT 23 + 48 AS col1, 78 DIV - 51 AS col2
----
71
-1

skipif mysql # not compatible
query II rowsort label-7291
SELECT DISTINCT 23 + 48 AS col1, 78 / - 51 AS col2
----
71
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT ALL COUNT( + NULLIF ( + 93, + 69 ) ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL COUNT ( + NULLIF ( + 93, + 69 ) ) * - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ALL - COUNT( * ) + - + 53 + + - ( + COALESCE ( - 0, + 96 ) ) + - CASE + + CASE + CASE WHEN NOT NULL IS NULL THEN NULL ELSE 94 END WHEN - 52 + - NULLIF ( ( + 95 ), - COUNT( * ) ) THEN 27 WHEN + 75 THEN NULL END WHEN NULLIF ( 64, 85 ) THEN + 47 ELSE NULL END + ( 44 ) / 88 * + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL - COUNT ( * ) + - + 53 + + - ( + COALESCE ( - 0, + 96 ) ) + - CASE + + CASE + CASE WHEN NOT NULL IS NULL THEN NULL ELSE 94 END WHEN - 52 + - NULLIF ( ( + 95 ), - COUNT ( * ) ) THEN 27 WHEN + 75 THEN NULL END WHEN NULLIF ( 64, 85 ) THEN + 47 ELSE NULL END + ( 44 ) / 88 * + 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT 95 - + ( - 89 ) * + SUM( ALL + + 13 )
----
1252

skipif mysql # not compatible
query I rowsort label-7294
SELECT 95 - + ( - 89 ) * + SUM ( ALL + + 13 )
----
1252

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT DISTINCT 28 + + + 37 * - + MAX( DISTINCT 35 ) AS col0
----
-1267

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT 28 + + + 37 * - + MAX ( DISTINCT 35 ) AS col0
----
-1267

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT ALL + MAX( ALL + 96 ) + - MIN( + 7 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL + MAX ( ALL + 96 ) + - MIN ( + 7 ) AS col0
----
89

query I rowsort
SELECT ALL - 74 + - ( - + 54 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7298
SELECT + 76 + - - 29 + - 7 + - 64 * CAST( NULL AS SIGNED ) * + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7298
SELECT + 76 + - - 29 + - 7 + - 64 * CAST ( NULL AS INTEGER ) * + 10 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7299
SELECT ALL + - 24 DIV - - 57
----
0

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + - 24 / - - 57
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7300
SELECT + CASE + - 5 WHEN - 55 THEN - CAST( 69 AS SIGNED ) * - + 79 + + 44 * 38 ELSE NULL END / + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT + CASE + - 5 WHEN - 55 THEN - CAST ( 69 AS INTEGER ) * - + 79 + + 44 * 38 ELSE NULL END / + 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7301
SELECT - - CASE + 33 WHEN - 63 THEN - NULLIF ( + + CASE + 1 WHEN - 34 * - - AVG ( 62 ) THEN - 80 + + COALESCE ( COUNT( * ), + 24 + - SUM( ( 75 ) ) ) END, - 39 / 90 ) * - 11 WHEN 62 * 33 THEN NULL ELSE NULL END * CASE 81 WHEN COUNT( * ) THEN NULL WHEN 54 THEN + CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT - - CASE + 33 WHEN - 63 THEN - NULLIF ( + + CASE + 1 WHEN - 34 * - - AVG ( 62 ) THEN - 80 + + COALESCE ( COUNT ( * ), + 24 + - SUM ( ( 75 ) ) ) END, - 39 / 90 ) * - 11 WHEN 62 * 33 THEN NULL ELSE NULL END * CASE 81 WHEN COUNT ( * ) THEN NULL WHEN 54 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 59 - 75 AS col2
----
-134

query I rowsort
SELECT ALL - + 11 + - - 52 col0
----
41

query I rowsort
SELECT - + 8 - + - 62
----
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7305
SELECT - - 33 DIV - COALESCE ( + 78, - CAST( NULL AS SIGNED ) + - - 94 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7305
SELECT - - 33 / - COALESCE ( + 78, - CAST ( NULL AS INTEGER ) + - - 94 ) AS col0
----
0

query I rowsort
SELECT ALL + ( + NULLIF ( + ( + + COALESCE ( 0, + 58 + 89, + - 34 ) ), 18 ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7307
SELECT ALL + 71 * - + 35 * + COUNT( * ) * + - SUM( 90 ) - - + ( - 38 ) / - CAST( NULL AS SIGNED ) + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL + 71 * - + 35 * + COUNT ( * ) * + - SUM ( 90 ) - - + ( - 38 ) / - CAST ( NULL AS INTEGER ) + + 1
----
NULL

query I rowsort
SELECT DISTINCT - 28 * - + 93 - + - 35 AS col0
----
2639

query I rowsort
SELECT - 76 * 23 * 7 * + + 59 AS col1
----
-721924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7310
SELECT - 48 * + - CAST( NULL AS SIGNED ) + - - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT - 48 * + - CAST ( NULL AS INTEGER ) + - - 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7311
SELECT - - MIN( + - ( + 25 ) ) DIV - - COUNT( * ) + - 69
----
-94

skipif mysql # not compatible
query I rowsort label-7311
SELECT - - MIN ( + - ( + 25 ) ) / - - COUNT ( * ) + - 69
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT + COUNT( DISTINCT - + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-7312
SELECT + COUNT ( DISTINCT - + 55 )
----
1

query I rowsort
SELECT ALL + ( + + 88 )
----
88

query I rowsort
SELECT + 89 * 2 + 25
----
203

onlyif mysql # aggregate syntax: 
query II rowsort label-7315
SELECT + COUNT( * ) col2, - 38 * + COALESCE ( + + 25, 48 + 8, + 63 )
----
1
-950

skipif mysql # not compatible
query II rowsort label-7315
SELECT + COUNT ( * ) col2, - 38 * + COALESCE ( + + 25, 48 + 8, + 63 )
----
1
-950

query I rowsort
SELECT - 78 + + 84 AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7317
SELECT ALL COUNT( * ) * + 36 DIV - - 33 AS col1, - 6
----
1
-6

skipif mysql # not compatible
query II rowsort label-7317
SELECT ALL COUNT ( * ) * + 36 / - - 33 AS col1, - 6
----
1
-6

query I rowsort
SELECT - ( + - 19 ) + - 57 AS col2
----
-38

query I rowsort
SELECT - ( + - 74 ) * - 13 * - - 86
----
-82732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7320
SELECT DISTINCT + 96 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT + 96 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT + CAST( NULL AS SIGNED ) + - + ( 36 ) - + ( - ( 40 ) ) + + 40 * + 0 + - 43 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT + CAST ( NULL AS INTEGER ) + - + ( 36 ) - + ( - ( 40 ) ) + + 40 * + 0 + - 43 * + + COUNT ( * )
----
NULL

query I rowsort
SELECT + 50 * - - 78 + - + ( 67 )
----
3833

query I rowsort
SELECT ALL + 78 * + + 44
----
3432

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT DISTINCT COUNT( * ) * - 46 + 43 + - - 32 + + - 16 + - 0 * + CASE ( - - COUNT( * ) ) WHEN - - 25 THEN 70 WHEN 80 THEN + 13 * 16 END * + 57 * ( - 49 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7324
SELECT DISTINCT COUNT ( * ) * - 46 + 43 + - - 32 + + - 16 + - 0 * + CASE ( - - COUNT ( * ) ) WHEN - - 25 THEN 70 WHEN 80 THEN + 13 * 16 END * + 57 * ( - 49 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT MIN( 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7325
SELECT MIN ( 36 ) AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7326
SELECT DISTINCT 6 * + 98 + - 81 DIV 20
----
584

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT 6 * + 98 + - 81 / 20
----
584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7327
SELECT ALL 82 + + CASE - 87 WHEN 6 THEN + - COUNT( * ) WHEN 93 - COUNT( * ) THEN - + 75 * - 6 + + CAST( 27 AS SIGNED ) ELSE NULL END * - NULLIF ( + CAST( NULL AS SIGNED ), - ( + 21 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL 82 + + CASE - 87 WHEN 6 THEN + - COUNT ( * ) WHEN 93 - COUNT ( * ) THEN - + 75 * - 6 + + CAST ( 27 AS INTEGER ) ELSE NULL END * - NULLIF ( + CAST ( NULL AS INTEGER ), - ( + 21 ) ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT 59 AS col1, 56
----
59
56

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT - 68 * 2 DIV - 73 + - + 29 * 5
----
-144

skipif mysql # not compatible
query I rowsort label-7329
SELECT - 68 * 2 / - 73 + - + 29 * 5
----
-144

query I rowsort
SELECT + ( + 54 ) + + 51 + - + 17 col2
----
88

query I rowsort
SELECT DISTINCT 34 + + - 37 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7332
SELECT + 40 + - - 12 + - + ( - 80 ) DIV - 25
----
49

skipif mysql # not compatible
query I rowsort label-7332
SELECT + 40 + - - 12 + - + ( - 80 ) / - 25
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT ALL 46 + + COUNT( * ) + - + SUM( ALL - 49 )
----
96

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL 46 + + COUNT ( * ) + - + SUM ( ALL - 49 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT DISTINCT COALESCE ( 69, + + 21 ) + - 95 * - COUNT( * )
----
164

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT COALESCE ( 69, + + 21 ) + - 95 * - COUNT ( * )
----
164

query I rowsort
SELECT DISTINCT 69 + - 57
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT ALL CASE COUNT( + 18 ) WHEN COUNT( * ) * 74 + + 33 THEN - 16 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL CASE COUNT ( + 18 ) WHEN COUNT ( * ) * 74 + + 33 THEN - 16 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT - + COUNT( * ) + - + 20 - - NULLIF ( - - 58, 3 ) * 85 + - 18 + 98 * 46 * 47 + 79
----
216846

skipif mysql # not compatible
query I rowsort label-7337
SELECT - + COUNT ( * ) + - + 20 - - NULLIF ( - - 58, 3 ) * 85 + - 18 + 98 * 46 * 47 + 79
----
216846

query I rowsort
SELECT + 61 * + ( + 35 )
----
2135

query I rowsort
SELECT ALL - 34 * - - 17 AS col2
----
-578

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT + - 28 + + COUNT( * ) * + 95 * - 1 * - COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7340
SELECT + - 28 + + COUNT ( * ) * + 95 * - 1 * - COUNT ( * ) AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7341
SELECT + + 23 DIV - + 85 * - 95
----
0

skipif mysql # not compatible
query I rowsort label-7341
SELECT + + 23 / - + 85 * - 95
----
0

query I rowsort
SELECT DISTINCT + 17 + 72 AS col0
----
89

query II rowsort
SELECT 80 col1, 55 AS col2
----
80
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7344
SELECT ALL 22 + CASE 66 WHEN 82 + - 56 + COUNT( * ) + - - CAST( 8 AS DECIMAL ) * + 38 + 57 + + ( + COUNT( * ) + + 63 * ( + 58 - SUM( + 43 ) ) ) THEN 26 * + 74 WHEN NULLIF ( 34, - 64 ) + 68 * + 31 THEN + 36 WHEN - 0 + - 87 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL 22 + CASE 66 WHEN 82 + - 56 + COUNT ( * ) + - - CAST ( 8 AS REAL ) * + 38 + 57 + + ( + COUNT ( * ) + + 63 * ( + 58 - SUM ( + 43 ) ) ) THEN 26 * + 74 WHEN NULLIF ( 34, - 64 ) + 68 * + 31 THEN + 36 WHEN - 0 + - 87 THEN NULL END
----
NULL

query II rowsort
SELECT DISTINCT 55 AS col1, - 64
----
55
-64

query I rowsort
SELECT DISTINCT + NULLIF ( + 78, + 88 ) * + CASE + - 81 WHEN + - ( - 21 ) - ( - 59 ) THEN NULL ELSE + - ( 8 ) END AS col1
----
-624

query I rowsort
SELECT + + 4 * 8 AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7348
SELECT + COUNT( * ) + + 62 DIV 10 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7348
SELECT + COUNT ( * ) + + 62 / 10 AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7349
SELECT + COUNT( * ) + + + 71 + + + CAST( NULL AS SIGNED ) * 99 * - ( + + 74 ) * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT + COUNT ( * ) + + + 71 + + + CAST ( NULL AS INTEGER ) * 99 * - ( + + 74 ) * - 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7350
SELECT ALL + 2 - + COALESCE ( - 41, - - 5 ) + + CAST( NULL AS SIGNED ) * 75 AS col2, 39 col1
----
NULL
39

skipif mysql # not compatible
query II rowsort label-7350
SELECT ALL + 2 - + COALESCE ( - 41, - - 5 ) + + CAST ( NULL AS INTEGER ) * 75 AS col2, 39 col1
----
NULL
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7351
SELECT - 46 * 33 * + + COUNT( * ) AS col2, 51
----
-1518
51

skipif mysql # not compatible
query II rowsort label-7351
SELECT - 46 * 33 * + + COUNT ( * ) AS col2, 51
----
-1518
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT - 88 * + 61 + - COUNT( * ) + CASE + - 9 WHEN - - 25 THEN COUNT( * ) - + 94 + - 72 + - 31 * - 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7352
SELECT - 88 * + 61 + - COUNT ( * ) + CASE + - 9 WHEN - - 25 THEN COUNT ( * ) - + 94 + - 72 + - 31 * - 3 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7353
SELECT + + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) - - 37 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7353
SELECT + + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) - - 37 AS col2
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7354
SELECT DISTINCT 34 DIV + MAX( DISTINCT - + 59 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT 34 / + MAX ( DISTINCT - + 59 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7355
SELECT + + 77 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7355
SELECT + + 77 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7356
SELECT - + 72 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7356
SELECT - + 72 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT ALL - - COUNT( * ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL - - COUNT ( * ) * COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT DISTINCT - CASE - 6 WHEN + 60 THEN 31 END * + ( - 40 ) * + + 47 * COUNT( * ) + + 63 + - - 98 - + 39 * + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT - CASE - 6 WHEN + 60 THEN 31 END * + ( - 40 ) * + + 47 * COUNT ( * ) + + 63 + - - 98 - + 39 * + 49 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7359
SELECT DISTINCT 25 DIV 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT 25 / 99 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7360
SELECT DISTINCT + COALESCE ( + + 78, + 40 + + 28 * + 88, COALESCE ( - COUNT( * ), CASE - - 46 WHEN - CASE 81 WHEN 39 THEN + 26 ELSE - 3 * 8 END * + 38 THEN + 55 * 18 WHEN - 71 THEN NULL ELSE - CASE + COALESCE ( - 10, - CAST( NULL AS SIGNED ) + - 30 ) WHEN - 44 * 14 THEN NULL WHEN 6 THEN CAST( NULL AS SIGNED ) END END ) ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT + COALESCE ( + + 78, + 40 + + 28 * + 88, COALESCE ( - COUNT ( * ), CASE - - 46 WHEN - CASE 81 WHEN 39 THEN + 26 ELSE - 3 * 8 END * + 38 THEN + 55 * 18 WHEN - 71 THEN NULL ELSE - CASE + COALESCE ( - 10, - CAST ( NULL AS INTEGER ) + - 30 ) WHEN - 44 * 14 THEN NULL WHEN 6 THEN CAST ( NULL AS INTEGER ) END END ) ) AS col0
----
78

query I rowsort
SELECT DISTINCT + ( + 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-7362
SELECT ( 9 ), COUNT( * ) AS col0
----
9
1

skipif mysql # not compatible
query II rowsort label-7362
SELECT ( 9 ), COUNT ( * ) AS col0
----
9
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7363
SELECT - COUNT( * ) DIV - 45 * - 39 DIV - 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7363
SELECT - COUNT ( * ) / - 45 * - 39 / - 3 AS col2
----
0

query I rowsort
SELECT + 18 * - 47 AS col1
----
-846

query II rowsort
SELECT ( - - 46 ), - 69 AS col1
----
46
-69

query I rowsort
SELECT DISTINCT 27 * + + 86 + + COALESCE ( + NULLIF ( - + 78, - + 38 ), + - NULLIF ( 29, 77 ) ) * 72 col2
----
-3294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7367
SELECT - 18 * - ( + NULLIF ( 58, CAST( 71 AS SIGNED ) ) )
----
1044

skipif mysql # not compatible
query I rowsort label-7367
SELECT - 18 * - ( + NULLIF ( 58, CAST ( 71 AS INTEGER ) ) )
----
1044

query I rowsort
SELECT ALL + 36 * 52 + - - 34
----
1906

query I rowsort
SELECT ( 57 ) AS col1
----
57

query I rowsort
SELECT ALL - 70 * + - 0 + + 12
----
12

query I rowsort
SELECT DISTINCT + 38 + + + 84 * 9
----
794

query I rowsort
SELECT 1 * - + 7 * + 14 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT DISTINCT - SUM( - 7 ) + COALESCE ( ( - ( + 81 ) ), ( + - 57 ) * + + CASE - 98 WHEN 22 * - 16 THEN NULL WHEN 55 THEN - 19 - - 17 END + + 78 * + 71, - COUNT( * ) ) - + 14 * - 71 AS col2
----
920

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT - SUM ( - 7 ) + COALESCE ( ( - ( + 81 ) ), ( + - 57 ) * + + CASE - 98 WHEN 22 * - 16 THEN NULL WHEN 55 THEN - 19 - - 17 END + + 78 * + 71, - COUNT ( * ) ) - + 14 * - 71 AS col2
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT DISTINCT - 65 * 9 * + COUNT( * ) AS col2
----
-585

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT - 65 * 9 * + COUNT ( * ) AS col2
----
-585

query I rowsort
SELECT 14 * + 98 AS col1
----
1372

query I rowsort
SELECT ALL 28 + + 11 AS col2
----
39

query I rowsort
SELECT ALL - 47 * - + 12 AS col0
----
564

query II rowsort
SELECT 17, 6 AS col1
----
17
6

query I rowsort
SELECT 95 + + + 64
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT + 58 + 19 DIV + 49
----
58

skipif mysql # not compatible
query I rowsort label-7380
SELECT + 58 + 19 / + 49
----
58

query I rowsort
SELECT + 28 * + 50 * + 62
----
86800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7382
SELECT ALL COUNT( * ) - + - 12 + - NULLIF ( + SUM( + 54 ), - - 98 + + 73 ) DIV 99
----
13

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL COUNT ( * ) - + - 12 + - NULLIF ( + SUM ( + 54 ), - - 98 + + 73 ) / 99
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7383
SELECT - + 24 AS col1, + CAST( NULL AS SIGNED )
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-7383
SELECT - + 24 AS col1, + CAST ( NULL AS INTEGER )
----
-24
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7384
SELECT ALL 34 DIV - 55 + + - 52 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL 34 / - 55 + + - 52 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT COUNT( ALL - ( - 73 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7385
SELECT COUNT ( ALL - ( - 73 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7386
SELECT ALL - CASE - + ( + + ( - 60 ) ) WHEN + + 77 THEN CAST( + 0 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL - CASE - + ( + + ( - 60 ) ) WHEN + + 77 THEN CAST ( + 0 AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL + 73 * + 96
----
7008

query II rowsort
SELECT ( + 86 ) * + - ( - 85 ) AS col1, + 78
----
7310
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7389
SELECT ALL - 62 DIV - 54 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL - 62 / - 54 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7390
SELECT - 23 AS col1, MIN( - - 59 ) col0
----
-23
59

skipif mysql # not compatible
query II rowsort label-7390
SELECT - 23 AS col1, MIN ( - - 59 ) col0
----
-23
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT + COUNT( * ) * + - 5 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7391
SELECT + COUNT ( * ) * + - 5 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7392
SELECT - 62 col2, CAST( 95 AS SIGNED ) * - + 77 + - 69 + + - NULLIF ( + 48, COUNT( * ) ) * + 75 + - 71
----
-62
-11055

skipif mysql # not compatible
query II rowsort label-7392
SELECT - 62 col2, CAST ( 95 AS INTEGER ) * - + 77 + - 69 + + - NULLIF ( + 48, COUNT ( * ) ) * + 75 + - 71
----
-62
-11055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7393
SELECT ALL - 12 * - - 56 AS col0, COALESCE ( - + COUNT( * ), 56, + NULLIF ( - - ( + 66 ), - CAST( NULL AS SIGNED ) * AVG ( DISTINCT 98 ) ) * 92 ) + COALESCE ( - 87, NULLIF ( SUM( + 53 ), 80 ) ) * + 26 AS col2
----
-672
-2263

skipif mysql # not compatible
query II rowsort label-7393
SELECT ALL - 12 * - - 56 AS col0, COALESCE ( - + COUNT ( * ), 56, + NULLIF ( - - ( + 66 ), - CAST ( NULL AS INTEGER ) * AVG ( DISTINCT 98 ) ) * 92 ) + COALESCE ( - 87, NULLIF ( SUM ( + 53 ), 80 ) ) * + 26 AS col2
----
-672
-2263

query II rowsort
SELECT - - 29 AS col2, 82
----
29
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7395
SELECT - + 73 AS col0, + 35 * - COUNT( * ) AS col2
----
-73
-35

skipif mysql # not compatible
query II rowsort label-7395
SELECT - + 73 AS col0, + 35 * - COUNT ( * ) AS col2
----
-73
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT 60 - - SUM( DISTINCT - - 28 ) + + 53 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-7396
SELECT 60 - - SUM ( DISTINCT - - 28 ) + + 53 AS col2
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-7397
SELECT 80 * + ( - ( 70 ) ) DIV + 70 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-7397
SELECT 80 * + ( - ( 70 ) ) / + 70 AS col0
----
-80

query I rowsort
SELECT ALL 13 + + + 84 col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7399
SELECT CASE + 11 WHEN - CAST( + 20 AS SIGNED ) * SUM( + ( 48 ) ) * - + CASE - COUNT( * ) WHEN + CAST( + 70 AS SIGNED ) THEN NULL WHEN - 5 THEN 88 ELSE 49 END - 65 + 36 THEN + 24 + NULLIF ( + SUM( ALL 21 ) + + ( - 68 ), - NULLIF ( 52, - ( 30 ) ) * - 69 + + CAST( NULL AS DECIMAL ) ) END + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT CASE + 11 WHEN - CAST ( + 20 AS INTEGER ) * SUM ( + ( 48 ) ) * - + CASE - COUNT ( * ) WHEN + CAST ( + 70 AS INTEGER ) THEN NULL WHEN - 5 THEN 88 ELSE 49 END - 65 + 36 THEN + 24 + NULLIF ( + SUM ( ALL 21 ) + + ( - 68 ), - NULLIF ( 52, - ( 30 ) ) * - 69 + + CAST ( NULL AS REAL ) ) END + 41 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7400
SELECT + 5 DIV + 49 - - NULLIF ( + 98, 39 + + - 15 )
----
98

skipif mysql # not compatible
query I rowsort label-7400
SELECT + 5 / + 49 - - NULLIF ( + 98, 39 + + - 15 )
----
98

query I rowsort
SELECT ALL 6 + - 25 + 79
----
60

query I rowsort
SELECT DISTINCT - COALESCE ( 12, + 13, + + 2 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7403
SELECT + NULLIF ( 17, + + CASE + - 45 WHEN - COALESCE ( 5, 91 + + + 91 ) THEN 78 + - COUNT( * ) + - COUNT( * ) WHEN 45 THEN NULL END + - COUNT( * ) * + COALESCE ( + CAST( 31 AS DECIMAL ) / + 82 + + 39, - 54 + AVG ( - 50 ) ) ) * 44 + 88
----
836

skipif mysql # not compatible
query I rowsort label-7403
SELECT + NULLIF ( 17, + + CASE + - 45 WHEN - COALESCE ( 5, 91 + + + 91 ) THEN 78 + - COUNT ( * ) + - COUNT ( * ) WHEN 45 THEN NULL END + - COUNT ( * ) * + COALESCE ( + CAST ( 31 AS REAL ) / + 82 + + 39, - 54 + AVG ( - 50 ) ) ) * 44 + 88
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT DISTINCT - CASE + + 87 WHEN 45 THEN NULL WHEN + - COUNT( * ) THEN NULL ELSE - - 88 END AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT - CASE + + 87 WHEN 45 THEN NULL WHEN + - COUNT ( * ) THEN NULL ELSE - - 88 END AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT ALL - COUNT( * ) + + - 45 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL - COUNT ( * ) + + - 45 AS col1
----
-46

query I rowsort
SELECT ALL 70 * + - 60
----
-4200

query I rowsort
SELECT 5 + - - 60
----
65

query I rowsort
SELECT ALL 47 + 87 * + NULLIF ( + NULLIF ( + + 29, + 21 ), - 32 + + - 5 ) + - - 82 AS col1
----
2652

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT DISTINCT 5 * COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT 5 * COUNT ( * )
----
5

query I rowsort
SELECT DISTINCT 64 * - - 35 AS col1
----
2240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7411
SELECT ALL + 88 + - NULLIF ( + COALESCE ( - 59, + 40 DIV + - 76 * - 47 - - - 26 + - 35 * - + CASE CASE + - 42 WHEN 36 THEN + CAST( NULL AS SIGNED ) * + 41 WHEN 32 * + CAST( NULL AS DECIMAL ) THEN NULL ELSE + COUNT( * ) * 37 END WHEN - 72 * - 71 THEN NULL ELSE 31 * COUNT( * ) END - + 80, CASE 16 WHEN COUNT( DISTINCT 34 ) THEN CAST( 31 AS SIGNED ) END ), 74 DIV + 8 ) + - 22 * 19
----
-271

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL + 88 + - NULLIF ( + COALESCE ( - 59, + 40 / + - 76 * - 47 - - - 26 + - 35 * - + CASE CASE + - 42 WHEN 36 THEN + CAST ( NULL AS INTEGER ) * + 41 WHEN 32 * + CAST ( NULL AS REAL ) THEN NULL ELSE + COUNT ( * ) * 37 END WHEN - 72 * - 71 THEN NULL ELSE 31 * COUNT ( * ) END - + 80, CASE 16 WHEN COUNT ( DISTINCT 34 ) THEN CAST ( 31 AS INTEGER ) END ), 74 / + 8 ) + - 22 * 19
----
-271

query I rowsort
SELECT 20 * + 88 AS col2
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT ALL - MIN( - 17 )
----
17

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL - MIN ( - 17 )
----
17

query I rowsort
SELECT 40 + ( - 22 )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7415
SELECT ALL + ( - 87 ) - - NULLIF ( - - CASE 20 WHEN CAST( + + 71 AS SIGNED ) - + 93 + + + 47 * - 41 THEN NULL WHEN + 19 THEN 40 / + 89 + 86 ELSE NULL END, 63 ) * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + ( - 87 ) - - NULLIF ( - - CASE 20 WHEN CAST ( + + 71 AS INTEGER ) - + 93 + + + 47 * - 41 THEN NULL WHEN + 19 THEN 40 / + 89 + 86 ELSE NULL END, 63 ) * 32
----
NULL

query I rowsort
SELECT 10 * + 69 AS col1
----
690

onlyif mysql # DIV for integer division: 
query II rowsort label-7417
SELECT - 26 + + 68, 1 DIV + - 74 AS col1
----
42
0

skipif mysql # not compatible
query II rowsort label-7417
SELECT - 26 + + 68, 1 / + - 74 AS col1
----
42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT - MAX( 86 ) * + 63 * - NULLIF ( - - COALESCE ( - - 13, - 31, + 8 ), - 31 * 64 + + 49 ) - - 90
----
70524

skipif mysql # not compatible
query I rowsort label-7418
SELECT - MAX ( 86 ) * + 63 * - NULLIF ( - - COALESCE ( - - 13, - 31, + 8 ), - 31 * 64 + + 49 ) - - 90
----
70524

query I rowsort
SELECT ALL - NULLIF ( + 24, + 39 / - 28 )
----
-24

query I rowsort
SELECT DISTINCT - + 54 * + - 86 col0
----
4644

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT ALL - + COALESCE ( + 59, - COUNT( * ) + 97 + + - MIN( DISTINCT - ( - + 86 ) ) - + 40 * + ( - - 17 ) ) - - COUNT( * ) * + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL - + COALESCE ( + 59, - COUNT ( * ) + 97 + + - MIN ( DISTINCT - ( - + 86 ) ) - + 40 * + ( - - 17 ) ) - - COUNT ( * ) * + COUNT ( * ) AS col2
----
-58

query II rowsort
SELECT ALL - - 29 * + 73 AS col0, 19 AS col1
----
2117
19

query I rowsort
SELECT + ( 14 ) * 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT ALL - 65 * 43 DIV - - 86
----
-32

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL - 65 * 43 / - - 86
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7425
SELECT 65 DIV COUNT( * ), + ( + + 91 ) + - 20 + - CAST( NULL AS SIGNED ) DIV - 60 AS col2
----
65
NULL

skipif mysql # not compatible
query II rowsort label-7425
SELECT 65 / COUNT ( * ), + ( + + 91 ) + - 20 + - CAST ( NULL AS INTEGER ) / - 60 AS col2
----
65
NULL

query II rowsort
SELECT - 68 * + 9 AS col2, 79 * + + 2 * + 90 + + ( + 5 )
----
-612
14225

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT DISTINCT NULLIF ( + COUNT( * ), 97 * - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT NULLIF ( + COUNT ( * ), 97 * - 34 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7428
SELECT + 17 + CAST( NULL AS SIGNED ) + + + 83 * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT + 17 + CAST ( NULL AS INTEGER ) + + + 83 * + 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7429
SELECT + COUNT( * ) DIV + - ( 14 )
----
0

skipif mysql # not compatible
query I rowsort label-7429
SELECT + COUNT ( * ) / + - ( 14 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ALL + - 45 + + + COUNT( * ) * COALESCE ( ( + 68 ), ( + 82 ) ) + 67
----
90

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + - 45 + + + COUNT ( * ) * COALESCE ( ( + 68 ), ( + 82 ) ) + 67
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT CASE + 51 WHEN + 37 * 11 + 68 * NULLIF ( + - COUNT( * ), - + COUNT( * ) + - 10 ) + - 73 + + 38 - + 84 * - + 59 THEN - 34 WHEN 95 + - 87 THEN NULL ELSE NULL END + - AVG ( ALL 23 + - 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7431
SELECT CASE + 51 WHEN + 37 * 11 + 68 * NULLIF ( + - COUNT ( * ), - + COUNT ( * ) + - 10 ) + - 73 + + 38 - + 84 * - + 59 THEN - 34 WHEN 95 + - 87 THEN NULL ELSE NULL END + - AVG ( ALL 23 + - 59 )
----
NULL

query I rowsort
SELECT ALL 7 * + 51 + + NULLIF ( 91, - 18 / + 10 * - 89 )
----
448

query II rowsort
SELECT DISTINCT 76 * 39 * 10 + 67 AS col1, - 4 col0
----
29707
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7434
SELECT - 38 DIV + + 44 + - COUNT( * ) AS col2, 94 + - - 81 * + - ( 39 )
----
-1
-3065

skipif mysql # not compatible
query II rowsort label-7434
SELECT - 38 / + + 44 + - COUNT ( * ) AS col2, 94 + - - 81 * + - ( 39 )
----
-1
-3065

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT ALL 51 * - 83 * 0 * + 81 * 56 * + 20 + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL 51 * - 83 * 0 * + 81 * 56 * + 20 + COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7436
SELECT COUNT( * ) + + 96 + - 11 DIV 62 * 19 DIV + 78 + 38
----
135

skipif mysql # not compatible
query I rowsort label-7436
SELECT COUNT ( * ) + + 96 + - 11 / 62 * 19 / + 78 + 38
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT CASE 40 WHEN + - 74 THEN + + NULLIF ( + - 82, - 41 ) - - - 84 WHEN + 11 + + COUNT( * ) THEN - + 74 * MAX( - - 71 ) ELSE + ( - 41 ) END
----
-41

skipif mysql # not compatible
query I rowsort label-7437
SELECT CASE 40 WHEN + - 74 THEN + + NULLIF ( + - 82, - 41 ) - - - 84 WHEN + 11 + + COUNT ( * ) THEN - + 74 * MAX ( - - 71 ) ELSE + ( - 41 ) END
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7438
SELECT CASE - + 51 WHEN - - 8 * + - 85 * + 24 THEN + 75 ELSE + CAST( NULL AS DECIMAL ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT CASE - + 51 WHEN - - 8 * + - 85 * + 24 THEN + 75 ELSE + CAST ( NULL AS REAL ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 0 * 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT + COUNT( DISTINCT - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-7440
SELECT + COUNT ( DISTINCT - 31 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT ALL 88 * + 51 * - 27 + + 94 - - COALESCE ( + COUNT( * ), + 4 ) + - COUNT( * ) - COUNT( * ) - 38 col1
----
-121121

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL 88 * + 51 * - 27 + + 94 - - COALESCE ( + COUNT ( * ), + 4 ) + - COUNT ( * ) - COUNT ( * ) - 38 col1
----
-121121

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT ALL 29 * + - COALESCE ( 62, - 73 + COUNT( * ), 54 ) AS col1
----
-1798

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL 29 * + - COALESCE ( 62, - 73 + COUNT ( * ), 54 ) AS col1
----
-1798

query I rowsort
SELECT + 41 * + 63 * + COALESCE ( + + 7, - 37 - 55, + - ( + 58 ) )
----
18081

query I rowsort
SELECT ALL - 21 * 16 + - + 99
----
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT + CASE + 62 WHEN + - SUM( + 88 ) / - 75 THEN COUNT( * ) * - - 12 + - - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7445
SELECT + CASE + 62 WHEN + - SUM ( + 88 ) / - 75 THEN COUNT ( * ) * - - 12 + - - 67 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7446
SELECT + COALESCE ( + + COUNT( - 23 ), MIN( DISTINCT - ( - 33 ) ), + 7 * - - 99 ) * CAST( + 74 AS SIGNED ) * ( - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT + COALESCE ( + + COUNT ( - 23 ), MIN ( DISTINCT - ( - 33 ) ), + 7 * - - 99 ) * CAST ( + 74 AS INTEGER ) * ( - CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT + 11 * - - 66 AS col0
----
726

query II rowsort
SELECT + 15, 96 - + 44 AS col2
----
15
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7449
SELECT ALL + MAX( ALL 21 ) * - 18 * + - 6 + 72 - + 69 DIV + - 42
----
2341

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL + MAX ( ALL 21 ) * - 18 * + - 6 + 72 - + 69 / + - 42
----
2341

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7450
SELECT COUNT( * ) AS col0, + 21 - 92 + + COALESCE ( 98, - 69 + COUNT( * ) * 95 DIV - 98 * + 85, + + 71 )
----
1
27

skipif mysql # not compatible
query II rowsort label-7450
SELECT COUNT ( * ) AS col0, + 21 - 92 + + COALESCE ( 98, - 69 + COUNT ( * ) * 95 / - 98 * + 85, + + 71 )
----
1
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT + 75 - + 79 + - + 47 * - 15 + - 96 + + 57 DIV + 62 * - - 31 AS col1
----
605

skipif mysql # not compatible
query I rowsort label-7451
SELECT + 75 - + 79 + - + 47 * - 15 + - 96 + + 57 / + 62 * - - 31 AS col1
----
605

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL + 55 * + - COUNT( * ) * + + 25 AS col1
----
-1375

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL + 55 * + - COUNT ( * ) * + + 25 AS col1
----
-1375

query I rowsort
SELECT DISTINCT + 28 * - 82 col0
----
-2296

query II rowsort
SELECT DISTINCT + 82, 81 AS col2
----
82
81

query II rowsort
SELECT ALL 40 AS col2, - 61 + + 91
----
40
30

query II rowsort
SELECT ALL + 36 * + 41 * + 79 AS col1, + 10
----
116604
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT - 99 * - 76 - COUNT( * )
----
7523

skipif mysql # not compatible
query I rowsort label-7457
SELECT - 99 * - 76 - COUNT ( * )
----
7523

query II rowsort
SELECT DISTINCT + 46 AS col0, - 10
----
46
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT - - 47 * - - 80 * - - COALESCE ( + 15, 28 ) - - 21 + + + COUNT( * ) AS col0
----
56422

skipif mysql # not compatible
query I rowsort label-7459
SELECT - - 47 * - - 80 * - - COALESCE ( + 15, 28 ) - - 21 + + + COUNT ( * ) AS col0
----
56422

query I rowsort
SELECT - 13 - + - CASE 69 WHEN - 61 THEN NULL WHEN - - 0 * - 1 / - - 5 THEN - ( + 91 ) * - 86 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT + + 39 DIV + 75 DIV 67 * + - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7461
SELECT + + 39 / + 75 / 67 * + - 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT - + 34 + NULLIF ( + ( MIN( 39 ) ), 83 * - 81 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7462
SELECT - + 34 + NULLIF ( + ( MIN ( 39 ) ), 83 * - 81 ) AS col0
----
5

query II rowsort
SELECT ALL + 23 AS col0, 62
----
23
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT - - 59 * - COUNT( + + 2 )
----
-59

skipif mysql # not compatible
query I rowsort label-7464
SELECT - - 59 * - COUNT ( + + 2 )
----
-59

query I rowsort
SELECT + ( - 94 ) AS col2
----
-94

query I rowsort
SELECT ALL - - 98 + - 98 + - - 52 * - 79 + + 67 * - - 40
----
-1428

onlyif mysql # aggregate syntax: 
query II rowsort label-7467
SELECT + 8, + COUNT( * ) * - - 18 AS col2
----
8
18

skipif mysql # not compatible
query II rowsort label-7467
SELECT + 8, + COUNT ( * ) * - - 18 AS col2
----
8
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7468
SELECT DISTINCT + + SUM( DISTINCT - ( + - CAST( NULL AS SIGNED ) ) ) + - COALESCE ( + 65, - + CAST( NULL AS SIGNED ), - 19 * - - 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT + + SUM ( DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) ) + - COALESCE ( + 65, - + CAST ( NULL AS INTEGER ), - 19 * - - 77 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT - CASE - + 32 WHEN - 86 THEN + 63 * + COALESCE ( 6, + 67, 31 ) END * COUNT( * ) - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT - CASE - + 32 WHEN - 86 THEN + 63 * + COALESCE ( 6, + 67, 31 ) END * COUNT ( * ) - 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT - + 32 * + 49 - - COUNT( * ) AS col2
----
-1567

skipif mysql # not compatible
query I rowsort label-7470
SELECT - + 32 * + 49 - - COUNT ( * ) AS col2
----
-1567

query I rowsort
SELECT DISTINCT + 51 + - 94 AS col1
----
-43

query I rowsort
SELECT ALL NULLIF ( 86, - 80 )
----
86

query I rowsort
SELECT ALL ( - 59 ) AS col0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7474
SELECT DISTINCT ( - 10 ) AS col0, - 19 DIV - - MIN( - ( 68 ) ) AS col1
----
-10
0

skipif mysql # not compatible
query II rowsort label-7474
SELECT DISTINCT ( - 10 ) AS col0, - 19 / - - MIN ( - ( 68 ) ) AS col1
----
-10
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7475
SELECT ALL + COUNT( * ) + - ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL + COUNT ( * ) + - ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT DISTINCT + 51 * + MIN( DISTINCT - 82 ) * + - ( 55 )
----
230010

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT + 51 * + MIN ( DISTINCT - 82 ) * + - ( 55 )
----
230010

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT ALL + MIN( DISTINCT 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL + MIN ( DISTINCT 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT - MAX( + - 82 ) - - 50 + - 73 - - MAX( 30 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7478
SELECT - MAX ( + - 82 ) - - 50 + - 73 - - MAX ( 30 ) AS col0
----
89

query I rowsort
SELECT ALL + ( + - 96 ) AS col2
----
-96

query I rowsort
SELECT + 94 * 67 * - 82 AS col0
----
-516436

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7481
SELECT ALL - 88 * + 87 AS col2, + COUNT( * ) DIV + - 14 AS col0
----
-7656
0

skipif mysql # not compatible
query II rowsort label-7481
SELECT ALL - 88 * + 87 AS col2, + COUNT ( * ) / + - 14 AS col0
----
-7656
0

query II rowsort
SELECT ( - - 25 ) AS col0, 68 - + + 49 AS col0
----
25
19

query I rowsort
SELECT - 99 * + 49
----
-4851

query I rowsort
SELECT - 58 * 48 col2
----
-2784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7485
SELECT 25 DIV + + COALESCE ( - NULLIF ( 26, - - COUNT( * ) * + 68 ), + 84 DIV + 93 + - 18 + - 98 ) * + + 15 + - 85 DIV 65 - + 52 + 0 * + 68
----
-53

skipif mysql # not compatible
query I rowsort label-7485
SELECT 25 / + + COALESCE ( - NULLIF ( 26, - - COUNT ( * ) * + 68 ), + 84 / + 93 + - 18 + - 98 ) * + + 15 + - 85 / 65 - + 52 + 0 * + 68
----
-53

query I rowsort
SELECT + 52 + 73
----
125

query I rowsort
SELECT DISTINCT + - 5 col0
----
-5

query II rowsort
SELECT - + 43 * 88 AS col1, - 80
----
-3784
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7489
SELECT + - 80 + + CAST( - - 87 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-7489
SELECT + - 80 + + CAST ( - - 87 AS INTEGER )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT + NULLIF ( - - COUNT( * ), - - 44 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7490
SELECT + NULLIF ( - - COUNT ( * ), - - 44 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7491
SELECT + + 5 + + NULLIF ( + CAST( NULL AS SIGNED ), + 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7491
SELECT + + 5 + + NULLIF ( + CAST ( NULL AS INTEGER ), + 18 )
----
NULL

query I rowsort
SELECT - - ( - - 32 ) AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7493
SELECT - CAST( NULL AS SIGNED ) * + - 13 * + + 77 - - - 79 AS col1, 70 * + + 48 * - NULLIF ( + 79, 61 + - 90 ) AS col2
----
NULL
-265440

skipif mysql # not compatible
query II rowsort label-7493
SELECT - CAST ( NULL AS INTEGER ) * + - 13 * + + 77 - - - 79 AS col1, 70 * + + 48 * - NULLIF ( + 79, 61 + - 90 ) AS col2
----
NULL
-265440

query II rowsort
SELECT ALL 83 * + - 62 * 57 + + + 93, + 40 col0
----
-293229
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT + 72 + + CAST( 62 AS SIGNED )
----
134

skipif mysql # not compatible
query I rowsort label-7495
SELECT + 72 + + CAST ( 62 AS INTEGER )
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT + 77 * - 11 - COUNT( * ) col0
----
-848

skipif mysql # not compatible
query I rowsort label-7496
SELECT + 77 * - 11 - COUNT ( * ) col0
----
-848

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT ALL - 33 * + - COUNT( * ) * ( ( 27 ) )
----
891

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL - 33 * + - COUNT ( * ) * ( ( 27 ) )
----
891

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7498
SELECT + 86 DIV COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7498
SELECT + 86 / COUNT ( * ) AS col2
----
86

query I rowsort
SELECT ALL + + 58 + + 34
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7500
SELECT + - 67 + + 4 DIV + 10 + + 88 + - - ( - COUNT( * ) ) + - 55 + + 71 * 30 AS col2
----
2095

skipif mysql # not compatible
query I rowsort label-7500
SELECT + - 67 + + 4 / + 10 + + 88 + - - ( - COUNT ( * ) ) + - 55 + + 71 * 30 AS col2
----
2095

query I rowsort
SELECT - - 62 - 87 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-7502
SELECT DISTINCT + 56 + COUNT( * ) + + 5 * + 23, - 30 AS col0
----
172
-30

skipif mysql # not compatible
query II rowsort label-7502
SELECT DISTINCT + 56 + COUNT ( * ) + + 5 * + 23, - 30 AS col0
----
172
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7503
SELECT ALL + COALESCE ( CAST( NULL AS SIGNED ), 53 + + 83 + 20 ) AS col1
----
156

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL + COALESCE ( CAST ( NULL AS INTEGER ), 53 + + 83 + 20 ) AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT - + 87 + + ( COUNT( * ) )
----
-86

skipif mysql # not compatible
query I rowsort label-7504
SELECT - + 87 + + ( COUNT ( * ) )
----
-86

query I rowsort
SELECT - - 28 * + 48 * - 49 + + 8 AS col0
----
-65848

query II rowsort
SELECT - 78 AS col2, 69
----
-78
69

query I rowsort
SELECT 95 + + 42 * ( - 83 )
----
-3391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7508
SELECT 98 - - - CAST( + + SUM( DISTINCT + 69 ) AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-7508
SELECT 98 - - - CAST ( + + SUM ( DISTINCT + 69 ) AS INTEGER )
----
29

query I rowsort
SELECT 5 + + ( - 2 ) + - 88
----
-85

query II rowsort
SELECT ALL + 93 * - 13 * + 42 AS col0, - 87 AS col1
----
-50778
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL - COALESCE ( 65, + COUNT( * ) ) * - + 83
----
5395

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL - COALESCE ( 65, + COUNT ( * ) ) * - + 83
----
5395

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT 11 * + + COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-7512
SELECT 11 * + + COUNT ( * ) AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7513
SELECT 49 + + - CAST( NULL AS SIGNED ) * - + 90 * 94 + + + 17 + + 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7513
SELECT 49 + + - CAST ( NULL AS INTEGER ) * - + 90 * 94 + + + 17 + + 76 col0
----
NULL

query I rowsort
SELECT ALL - CASE + 32 WHEN 68 THEN - CASE + 51 WHEN - 83 THEN + - 94 END + - - 19 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 75 - 26 + - 30
----
-131

query I rowsort
SELECT ALL - 3 * - 72 * - 73
----
-15768

query I rowsort
SELECT DISTINCT - ( + - 86 ) AS col0
----
86

query II rowsort
SELECT ALL - 1 AS col0, 0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7519
SELECT ALL - CASE - 51 WHEN ( 98 ) + - 12 + - - ( - 12 ) + - COALESCE ( + - 56, - + 41 - - - COALESCE ( - + 23, - ( + 53 ), - 62 * - 36 + 82 ) ) / COUNT( DISTINCT - ( 40 ) - - CAST( + 83 AS SIGNED ) ) THEN NULL WHEN + ( - 59 ) THEN - 40 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL - CASE - 51 WHEN ( 98 ) + - 12 + - - ( - 12 ) + - COALESCE ( + - 56, - + 41 - - - COALESCE ( - + 23, - ( + 53 ), - 62 * - 36 + 82 ) ) / COUNT ( DISTINCT - ( 40 ) - - CAST ( + 83 AS INTEGER ) ) THEN NULL WHEN + ( - 59 ) THEN - 40 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT MIN( + 12 ) * + ( - ( + 74 ) ) + - 89 * - 81
----
6321

skipif mysql # not compatible
query I rowsort label-7520
SELECT MIN ( + 12 ) * + ( - ( + 74 ) ) + - 89 * - 81
----
6321

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7521
SELECT CAST( + 37 AS SIGNED ) * + 61 - - 47 AS col0
----
2304

skipif mysql # not compatible
query I rowsort label-7521
SELECT CAST ( + 37 AS INTEGER ) * + 61 - - 47 AS col0
----
2304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7522
SELECT ALL - 78 DIV COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL - 78 / COUNT ( * )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-7523
SELECT - COALESCE ( - NULLIF ( - + 18, + 80 ), - 66 DIV + - 31 ) * - 87 - - 37 AS col2
----
1603

skipif mysql # not compatible
query I rowsort label-7523
SELECT - COALESCE ( - NULLIF ( - + 18, + 80 ), - 66 / + - 31 ) * - 87 - - 37 AS col2
----
1603

query I rowsort
SELECT 73 * + 12
----
876

query I rowsort
SELECT + 95 * - 48 AS col1
----
-4560

onlyif mysql # DIV for integer division: 
query I rowsort label-7526
SELECT - 4 DIV - 66 * 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7526
SELECT - 4 / - 66 * 24 AS col2
----
0

query I rowsort
SELECT ALL 78 + 61 AS col2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT 50 - ( + - CASE - 68 WHEN + - 22 THEN NULL ELSE 91 * + NULLIF ( + 83, + COUNT( * ) ) + - COALESCE ( COUNT( * ), 43, - - 25, 74 - - 40 ) END ) + ( + 43 - - 71 ) AS col1
----
7716

skipif mysql # not compatible
query I rowsort label-7528
SELECT 50 - ( + - CASE - 68 WHEN + - 22 THEN NULL ELSE 91 * + NULLIF ( + 83, + COUNT ( * ) ) + - COALESCE ( COUNT ( * ), 43, - - 25, 74 - - 40 ) END ) + ( + 43 - - 71 ) AS col1
----
7716

query I rowsort
SELECT ( - 54 ) * - 8 - 11 col2
----
421

query I rowsort
SELECT DISTINCT - + 14 + - + 6 + 15 col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT - ( + MIN( - 73 ) ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7531
SELECT - ( + MIN ( - 73 ) ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7532
SELECT 38 * - - 65 + COUNT( * ) + - - 64 * + + 7 col2, + 21 AS col1
----
2919
21

skipif mysql # not compatible
query II rowsort label-7532
SELECT 38 * - - 65 + COUNT ( * ) + - - 64 * + + 7 col2, + 21 AS col1
----
2919
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7533
SELECT + 11 - + + CASE - + 18 WHEN - 82 THEN NULL WHEN + - 18 THEN - CAST( + 64 AS SIGNED ) * + COUNT( DISTINCT COALESCE ( + 76, 96 ) ) END AS col0
----
75

skipif mysql # not compatible
query I rowsort label-7533
SELECT + 11 - + + CASE - + 18 WHEN - 82 THEN NULL WHEN + - 18 THEN - CAST ( + 64 AS INTEGER ) * + COUNT ( DISTINCT COALESCE ( + 76, 96 ) ) END AS col0
----
75

query I rowsort
SELECT DISTINCT 89 + + 90 AS col1
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL 7 - + - 39 * 52 + + - CASE - - COUNT( * ) WHEN + - 50 THEN + 12 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL 7 - + - 39 * 52 + + - CASE - - COUNT ( * ) WHEN + - 50 THEN + 12 END AS col0
----
NULL

query I rowsort
SELECT 89 * + 42 AS col0
----
3738

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT ( + + ( + 39 ) ) + + 60 * + COUNT( * ) + CASE + 57 WHEN - 3 THEN NULL WHEN 38 THEN NULL ELSE + 91 + + ( + + 24 ) + 98 END * + 2 AS col2
----
525

skipif mysql # not compatible
query I rowsort label-7537
SELECT ( + + ( + 39 ) ) + + 60 * + COUNT ( * ) + CASE + 57 WHEN - 3 THEN NULL WHEN 38 THEN NULL ELSE + 91 + + ( + + 24 ) + 98 END * + 2 AS col2
----
525

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7538
SELECT - 79, + ( ( - COUNT( * ) ) ) * 0 * 70 * + 18 DIV + 15 * + + 96 AS col1
----
-79
0

skipif mysql # not compatible
query II rowsort label-7538
SELECT - 79, + ( ( - COUNT ( * ) ) ) * 0 * 70 * + 18 / + 15 * + + 96 AS col1
----
-79
0

query II rowsort
SELECT ALL 80, 42 + + 87 AS col2
----
80
129

query I rowsort
SELECT ALL 7 - + 23
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT COUNT( * ) * - 62 * MAX( DISTINCT + 70 ) * + 16 * + - 32 + - 7
----
2222073

skipif mysql # not compatible
query I rowsort label-7541
SELECT COUNT ( * ) * - 62 * MAX ( DISTINCT + 70 ) * + 16 * + - 32 + - 7
----
2222073

query II rowsort
SELECT ( - 52 ) + 5 + + 9 AS col2, - 2 AS col2
----
-38
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT 33 DIV - + 69
----
0

skipif mysql # not compatible
query I rowsort label-7543
SELECT 33 / - + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT COUNT( * ) * - 93 * - COUNT( * ) * - 83 AS col2
----
-7719

skipif mysql # not compatible
query I rowsort label-7544
SELECT COUNT ( * ) * - 93 * - COUNT ( * ) * - 83 AS col2
----
-7719

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT COUNT( * ) - - 83
----
84

skipif mysql # not compatible
query I rowsort label-7545
SELECT COUNT ( * ) - - 83
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT 20 - - ( - COUNT( * ) ) * 72
----
-52

skipif mysql # not compatible
query I rowsort label-7546
SELECT 20 - - ( - COUNT ( * ) ) * 72
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7547
SELECT NULLIF ( - 39, + 15 * - 90 ) DIV 13 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7547
SELECT NULLIF ( - 39, + 15 * - 90 ) / 13 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-7548
SELECT DISTINCT - 62 AS col0, ( 83 ) DIV + NULLIF ( + 13, 58 ) AS col0
----
-62
6

skipif mysql # not compatible
query II rowsort label-7548
SELECT DISTINCT - 62 AS col0, ( 83 ) / + NULLIF ( + 13, 58 ) AS col0
----
-62
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7549
SELECT ALL - COUNT( * ) AS col1, 30 AS col0
----
-1
30

skipif mysql # not compatible
query II rowsort label-7549
SELECT ALL - COUNT ( * ) AS col1, 30 AS col0
----
-1
30

query I rowsort
SELECT ALL - 71 * + + 89 AS col2
----
-6319

query I rowsort
SELECT DISTINCT - COALESCE ( - 85, 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT DISTINCT COUNT( * ) * + SUM( DISTINCT - 29 ) * + ( + 26 ) * - ( + 63 ) + - - 39 * + - 16 + + - 60
----
46818

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT - 29 ) * + ( + 26 ) * - ( + 63 ) + - - 39 * + - 16 + + - 60
----
46818

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT NULLIF ( - 95, + ( 95 ) * - - 34 - + + NULLIF ( - + MIN( DISTINCT + 86 ), - - 99 ) ) + - - 46
----
-49

skipif mysql # not compatible
query I rowsort label-7553
SELECT NULLIF ( - 95, + ( 95 ) * - - 34 - + + NULLIF ( - + MIN ( DISTINCT + 86 ), - - 99 ) ) + - - 46
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT ALL - MAX( + + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL - MAX ( + + 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT ALL - CASE + COALESCE ( + 41, 4, - 27 / - - COUNT( * ) + - + 98 + - 80 * + SUM( ALL 62 ) + + COUNT( * ) * - - 0, 30 / MAX( DISTINCT 37 ) * 54 + NULLIF ( ( ( - 60 ) ), COUNT( * ) ) + - 85 ) WHEN ( 45 ) * - 99 + - 67 * - COUNT( * ) THEN 58 ELSE - 31 END
----
31

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL - CASE + COALESCE ( + 41, 4, - 27 / - - COUNT ( * ) + - + 98 + - 80 * + SUM ( ALL 62 ) + + COUNT ( * ) * - - 0, 30 / MAX ( DISTINCT 37 ) * 54 + NULLIF ( ( ( - 60 ) ), COUNT ( * ) ) + - 85 ) WHEN ( 45 ) * - 99 + - 67 * - COUNT ( * ) THEN 58 ELSE - 31 END
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT + + ( + COUNT( * ) ) * - COUNT( + 71 ) * - 45 + 22 - + 18
----
49

skipif mysql # not compatible
query I rowsort label-7556
SELECT + + ( + COUNT ( * ) ) * - COUNT ( + 71 ) * - 45 + 22 - + 18
----
49

query I rowsort
SELECT ALL + - 91 + - - 71 AS col2
----
-20

query II rowsort
SELECT + 3, 41 * + ( - 13 ) AS col2
----
3
-533

query I rowsort
SELECT - 92 * - 61
----
5612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7560
SELECT ALL - CASE + 11 WHEN - 52 * - - COUNT( * ) THEN 19 + COUNT( * ) END + - ( COALESCE ( + - 9, + CAST( NULL AS SIGNED ) + 10 ) ) + + - 5 / + 32 * + MIN( + - 89 ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL - CASE + 11 WHEN - 52 * - - COUNT ( * ) THEN 19 + COUNT ( * ) END + - ( COALESCE ( + - 9, + CAST ( NULL AS INTEGER ) + 10 ) ) + + - 5 / + 32 * + MIN ( + - 89 ) + - + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT ALL - COALESCE ( - - 55, 65 DIV + + 20 + + - 79 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL - COALESCE ( - - 55, 65 / + + 20 + + - 79 ) AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-7562
SELECT ALL - ( - - 31 ) DIV + - 40 * - + ( 43 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL - ( - - 31 ) / + - 40 * - + ( 43 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL - + 12 + + MIN( ALL 21 )
----
9

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL - + 12 + + MIN ( ALL 21 )
----
9

query I rowsort
SELECT DISTINCT - - COALESCE ( - - 48, - 12 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7565
SELECT + + 76 * 0 * + COUNT( * ) - + - 21 + - + 91 + + + CASE - - ( - + ( 19 ) ) WHEN + SUM( + 20 ) * - + 7 - - 86 + CAST( 14 AS SIGNED ) THEN + COALESCE ( ( + 88 ), + COUNT( * ) ) ELSE 3 + 31 * 99 END - + 57
----
2945

skipif mysql # not compatible
query I rowsort label-7565
SELECT + + 76 * 0 * + COUNT ( * ) - + - 21 + - + 91 + + + CASE - - ( - + ( 19 ) ) WHEN + SUM ( + 20 ) * - + 7 - - 86 + CAST ( 14 AS INTEGER ) THEN + COALESCE ( ( + 88 ), + COUNT ( * ) ) ELSE 3 + 31 * 99 END - + 57
----
2945

onlyif mysql # aggregate syntax: 
query II rowsort label-7566
SELECT ALL - - 51, COUNT( * ) AS col1
----
51
1

skipif mysql # not compatible
query II rowsort label-7566
SELECT ALL - - 51, COUNT ( * ) AS col1
----
51
1

query I rowsort
SELECT 75 + + - 72 col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7568
SELECT + ( + 36 ) DIV + - 2 + - COUNT( * ) - - 42 DIV + COALESCE ( - 72, 2 * + + 30 * - 27 )
----
-19

skipif mysql # not compatible
query I rowsort label-7568
SELECT + ( + 36 ) / + - 2 + - COUNT ( * ) - - 42 / + COALESCE ( - 72, 2 * + + 30 * - 27 )
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7569
SELECT 34 + + + CAST( NULL AS DECIMAL ) * 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7569
SELECT 34 + + + CAST ( NULL AS REAL ) * 22 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 39 * + - 25
----
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT ALL - 81 - + + 63 + + 1 - + ( COUNT( * ) ) + - 67 * + + 78 AS col2
----
-5370

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL - 81 - + + 63 + + 1 - + ( COUNT ( * ) ) + - 67 * + + 78 AS col2
----
-5370

query II rowsort
SELECT DISTINCT 28 AS col1, 5
----
28
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7573
SELECT DISTINCT + CASE - 82 WHEN + COUNT( * ) THEN + 94 END, - 78 / - + CAST( NULL AS SIGNED ) * + SUM( + + 72 ) col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7573
SELECT DISTINCT + CASE - 82 WHEN + COUNT ( * ) THEN + 94 END, - 78 / - + CAST ( NULL AS INTEGER ) * + SUM ( + + 72 ) col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT DISTINCT - COUNT( * ) * - ( + CASE + - 7 WHEN + CASE + COUNT( * ) WHEN - 17 + - 25 THEN 79 ELSE NULL END THEN - 34 * - + 97 - + 36 ELSE NULL END ) * - - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT - COUNT ( * ) * - ( + CASE + - 7 WHEN + CASE + COUNT ( * ) WHEN - 17 + - 25 THEN 79 ELSE NULL END THEN - 34 * - + 97 - + 36 ELSE NULL END ) * - - 77
----
NULL

query I rowsort
SELECT - ( - 27 ) + 81
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7576
SELECT - 89 - - 13 DIV - SUM( ALL + + 43 )
----
-89

skipif mysql # not compatible
query I rowsort label-7576
SELECT - 89 - - 13 / - SUM ( ALL + + 43 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT - COUNT( * ) + + 87 + - + COUNT( 4 )
----
85

skipif mysql # not compatible
query I rowsort label-7577
SELECT - COUNT ( * ) + + 87 + - + COUNT ( 4 )
----
85

query I rowsort
SELECT + 12 + 28 AS col1
----
40

query I rowsort
SELECT + 59 * 68 * + NULLIF ( + - 83, + 26 * 49 ) * - 92 AS col1
----
30635632

query I rowsort
SELECT + 65 * - 53 AS col0
----
-3445

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT - MAX( - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-7581
SELECT - MAX ( - 70 )
----
70

query II rowsort
SELECT ALL 23 * 96, 54 - - + 69 AS col2
----
2208
123

query I rowsort
SELECT + 29 + + 93 AS col0
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7584
SELECT DISTINCT CASE CAST( NULL AS SIGNED ) WHEN + 91 + 57 + 78 THEN - - 78 * - 88 + CAST( NULL AS SIGNED ) * + 86 END * - 94 * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN + 91 + 57 + 78 THEN - - 78 * - 88 + CAST ( NULL AS INTEGER ) * + 86 END * - 94 * - 46
----
NULL

query I rowsort
SELECT + 22 + + 47 AS col2
----
69

query II rowsort
SELECT - ( 0 ) AS col2, 53 AS col0
----
0
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7587
SELECT ALL ( - 44 ) + + - COUNT( * ) + - 72 DIV COUNT( * )
----
-117

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL ( - 44 ) + + - COUNT ( * ) + - 72 / COUNT ( * )
----
-117

query I rowsort
SELECT + 93 * 60 * + ( + + 42 ) AS col1
----
234360

query I rowsort
SELECT + 69 * + 42
----
2898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7590
SELECT SUM( DISTINCT 98 ) DIV 90 + COALESCE ( + - 69, + 8 * + + 52 - + 81 ) * - + 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7590
SELECT SUM ( DISTINCT 98 ) / 90 + COALESCE ( + - 69, + 8 * + + 52 - + 81 ) * - + 0 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL - NULLIF ( 26, - COALESCE ( - + 38, COUNT( * ) - - - 67 + + 55, + ( + 9 ) * 84 ) ) * 85 + - - 33
----
-2177

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - NULLIF ( 26, - COALESCE ( - + 38, COUNT ( * ) - - - 67 + + 55, + ( + 9 ) * 84 ) ) * 85 + - - 33
----
-2177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7592
SELECT DISTINCT + MAX( 46 ) DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-7592
SELECT DISTINCT + MAX ( 46 ) / - 76
----
0

query I rowsort
SELECT + - 32 * - - 17
----
-544

onlyif mysql # DIV for integer division: 
query I rowsort label-7594
SELECT ALL + 79 * 2 + 45 DIV + 82
----
158

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL + 79 * 2 + 45 / + 82
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT ALL + + SUM( DISTINCT + - 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL + + SUM ( DISTINCT + - 17 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT DISTINCT + 51 * + 85 + COUNT( * ) + + COUNT( * ) col0
----
4337

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT + 51 * + 85 + COUNT ( * ) + + COUNT ( * ) col0
----
4337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7597
SELECT - CASE 23 WHEN + 22 THEN - 22 WHEN - + COALESCE ( - MIN( ALL + + 2 ), + 0 * - 33 + + ( 88 ) + + 79 ) THEN - CASE - 98 WHEN COUNT( * ) THEN NULL WHEN CAST( NULL AS SIGNED ) + + - CASE + 69 WHEN - COUNT( 45 ) - ( 46 ) THEN NULL ELSE + 90 * + CASE + 85 * - 75 WHEN - 93 + - 15 THEN + 78 END - + 2 END THEN 71 END END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7597
SELECT - CASE 23 WHEN + 22 THEN - 22 WHEN - + COALESCE ( - MIN ( ALL + + 2 ), + 0 * - 33 + + ( 88 ) + + 79 ) THEN - CASE - 98 WHEN COUNT ( * ) THEN NULL WHEN CAST ( NULL AS INTEGER ) + + - CASE + 69 WHEN - COUNT ( 45 ) - ( 46 ) THEN NULL ELSE + 90 * + CASE + 85 * - 75 WHEN - 93 + - 15 THEN + 78 END - + 2 END THEN 71 END END * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( - - 13, 15 * + 79 ) AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7599
SELECT + 10 - - - COUNT( * ) DIV - - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-7599
SELECT + 10 - - - COUNT ( * ) / - - COUNT ( * )
----
9

query I rowsort
SELECT + - 2 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT + + ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT + + ( + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT ALL + 78 * - + COUNT( * ) + 77 - NULLIF ( + 68, 37 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL + 78 * - + COUNT ( * ) + 77 - NULLIF ( + 68, 37 ) AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7603
SELECT - - 99 * + - ( - CAST( + - 7 AS SIGNED ) ) + + 4 + 47 * + 17 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-7603
SELECT - - 99 * + - ( - CAST ( + - 7 AS INTEGER ) ) + + 4 + 47 * + 17 AS col0
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-7604
SELECT - + COUNT( * ) - - 48 AS col1, 70 * 71 * - 9
----
47
-44730

skipif mysql # not compatible
query II rowsort label-7604
SELECT - + COUNT ( * ) - - 48 AS col1, 70 * 71 * - 9
----
47
-44730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7605
SELECT ALL + + CAST( + SUM( - 71 ) AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL + + CAST ( + SUM ( - 71 ) AS INTEGER )
----
-71

query I rowsort
SELECT ALL - 50 * - 12 + + 6 * - 35
----
390

query I rowsort
SELECT - 68 * + 52 AS col2
----
-3536

onlyif mysql # DIV for integer division: 
query I rowsort label-7608
SELECT DISTINCT + - 59 DIV 26 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT + - 59 / 26 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7609
SELECT DISTINCT CASE + COUNT( * ) WHEN + + 81 THEN NULL WHEN - 24 + - 33 THEN + 49 WHEN + CAST( 34 AS SIGNED ) + - 83 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT CASE + COUNT ( * ) WHEN + + 81 THEN NULL WHEN - 24 + - 33 THEN + 49 WHEN + CAST ( 34 AS INTEGER ) + - 83 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7610
SELECT ALL COALESCE ( + - 53, MIN( ALL + + 46 ) - - + COALESCE ( + 49, + 74, + - 43 + + 88 - + - COUNT( * ) + + - ( + 66 ) * CAST( + 78 AS SIGNED ) DIV + 71 - + 20 * + CASE 23 WHEN NULLIF ( + COUNT( * ), - COUNT( * ) * 15 ) THEN NULL WHEN 52 * 87 THEN CAST( NULL AS SIGNED ) END * + ( 29 ) ) + - 2 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL COALESCE ( + - 53, MIN ( ALL + + 46 ) - - + COALESCE ( + 49, + 74, + - 43 + + 88 - + - COUNT ( * ) + + - ( + 66 ) * CAST ( + 78 AS INTEGER ) / + 71 - + 20 * + CASE 23 WHEN NULLIF ( + COUNT ( * ), - COUNT ( * ) * 15 ) THEN NULL WHEN 52 * 87 THEN CAST ( NULL AS INTEGER ) END * + ( 29 ) ) + - 2 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT MAX( ALL + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-7611
SELECT MAX ( ALL + 71 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7612
SELECT - ( + CAST( - 42 AS SIGNED ) ) + + 23 + - - 97 + - 54 * + CAST( NULL AS SIGNED ) / + - COUNT( - + ( + 17 ) ) + + COUNT( * ) * + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT - ( + CAST ( - 42 AS INTEGER ) ) + + 23 + - - 97 + - 54 * + CAST ( NULL AS INTEGER ) / + - COUNT ( - + ( + 17 ) ) + + COUNT ( * ) * + - 94
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7613
SELECT - 95 DIV 28 * + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-7613
SELECT - 95 / 28 * + COUNT ( * )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7614
SELECT - CAST( NULL AS SIGNED ) * - CASE + CASE WHEN NOT 81 IN ( + 34 / - + 75 + 16, + ( 65 ) ) THEN - CAST( NULL AS SIGNED ) * 46 * + 88 WHEN + 76 - - 98 * + - 3 * + - 63 <> 51 THEN + 8 END WHEN - 19 THEN 16 * - 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT - CAST ( NULL AS INTEGER ) * - CASE + CASE WHEN NOT 81 IN ( + 34 / - + 75 + 16, + ( 65 ) ) THEN - CAST ( NULL AS INTEGER ) * 46 * + 88 WHEN + 76 - - 98 * + - 3 * + - 63 <> 51 THEN + 8 END WHEN - 19 THEN 16 * - 34 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7615
SELECT DISTINCT + 61 DIV + - 93 * - + MIN( - 70 )
----
0

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT + 61 / + - 93 * - + MIN ( - 70 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT - COUNT( * ) * 99 - ( + 40 ) - 74 * 74 * + ( + + 68 ) * 88 - + - 22 + 56 AS col0
----
-32768445

skipif mysql # not compatible
query I rowsort label-7616
SELECT - COUNT ( * ) * 99 - ( + 40 ) - 74 * 74 * + ( + + 68 ) * 88 - + - 22 + 56 AS col0
----
-32768445

onlyif mysql # DIV for integer division: 
query I rowsort label-7617
SELECT - 59 DIV 39 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7617
SELECT - 59 / 39 col0
----
-1

query I rowsort
SELECT DISTINCT - 16 + - + 58 + + - 86 * + ( + 37 )
----
-3256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7619
SELECT DISTINCT CAST( - 33 AS SIGNED ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT CAST ( - 33 AS INTEGER ) AS col2
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7620
SELECT ALL COUNT( * ) + 24 DIV - - 40 + + - 56, - 63 * - 39 AS col1
----
-55
2457

skipif mysql # not compatible
query II rowsort label-7620
SELECT ALL COUNT ( * ) + 24 / - - 40 + + - 56, - 63 * - 39 AS col1
----
-55
2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7621
SELECT - COUNT( * ) + + CAST( + 58 AS SIGNED ) * - 6 * - 9
----
3131

skipif mysql # not compatible
query I rowsort label-7621
SELECT - COUNT ( * ) + + CAST ( + 58 AS INTEGER ) * - 6 * - 9
----
3131

query I rowsort
SELECT ALL + 44 * + 59 AS col0
----
2596

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT - MAX( - + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-7623
SELECT - MAX ( - + 96 )
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7624
SELECT ALL 41 + + 54 + 33 * - COALESCE ( ( + + 38 ), + + 93 DIV - 55 DIV 18, - + 86 ) + + + 32 + - + 4 * - 35 * + + 28 * COALESCE ( + COALESCE ( 45, + ( - 65 ) + + SUM( ALL 80 ) ), 67 + + 71, + 38 ) * ( 25 * - 74 ) AS col2
----
-326341127

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL 41 + + 54 + 33 * - COALESCE ( ( + + 38 ), + + 93 / - 55 / 18, - + 86 ) + + + 32 + - + 4 * - 35 * + + 28 * COALESCE ( + COALESCE ( 45, + ( - 65 ) + + SUM ( ALL 80 ) ), 67 + + 71, + 38 ) * ( 25 * - 74 ) AS col2
----
-326341127

query II rowsort
SELECT ALL 52, - 47 AS col1
----
52
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT ALL + 71 + NULLIF ( - + SUM( - - 83 ), - + NULLIF ( + - 57, + 94 ) ) - - 92
----
80

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL + 71 + NULLIF ( - + SUM ( - - 83 ), - + NULLIF ( + - 57, + 94 ) ) - - 92
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT - 17 + + - MAX( DISTINCT - 35 ) + + + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-7627
SELECT - 17 + + - MAX ( DISTINCT - 35 ) + + + COUNT ( * )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7628
SELECT - CASE + - ( - 4 ) WHEN 33 * 24 THEN + - 70 ELSE - MIN( DISTINCT - + 51 ) DIV + 95 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7628
SELECT - CASE + - ( - 4 ) WHEN 33 * 24 THEN + - 70 ELSE - MIN ( DISTINCT - + 51 ) / + 95 END AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT - 93 + - - 39 * SUM( DISTINCT 22 ) * 66 + + 63 + + + COALESCE ( 0, + 19 ) AS col1
----
56598

skipif mysql # not compatible
query I rowsort label-7629
SELECT - 93 + - - 39 * SUM ( DISTINCT 22 ) * 66 + + 63 + + + COALESCE ( 0, + 19 ) AS col1
----
56598

query II rowsort
SELECT 64, 84 AS col1
----
64
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT - MAX( ALL - 96 )
----
96

skipif mysql # not compatible
query I rowsort label-7631
SELECT - MAX ( ALL - 96 )
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7632
SELECT + CASE WHEN 90 IS NULL THEN NULL ELSE - 82 * + 83 + - SUM( - 94 ) + + - 52 + 98 - - 14 * - 53 * + 90 * - 31 + 89 + 14 * - 67 + - 37 DIV COUNT( * ) END * 22
----
45377816

skipif mysql # not compatible
query I rowsort label-7632
SELECT + CASE WHEN 90 IS NULL THEN NULL ELSE - 82 * + 83 + - SUM ( - 94 ) + + - 52 + 98 - - 14 * - 53 * + 90 * - 31 + 89 + 14 * - 67 + - 37 / COUNT ( * ) END * 22
----
45377816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7633
SELECT - COUNT( ALL - + NULLIF ( - 80, + + CAST( NULL AS SIGNED ) ) ) - + - 75
----
74

skipif mysql # not compatible
query I rowsort label-7633
SELECT - COUNT ( ALL - + NULLIF ( - 80, + + CAST ( NULL AS INTEGER ) ) ) - + - 75
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7634
SELECT ALL + 66 * - 9 * - MIN( ALL - CAST( 19 AS SIGNED ) )
----
-11286

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + 66 * - 9 * - MIN ( ALL - CAST ( 19 AS INTEGER ) )
----
-11286

onlyif mysql # aggregate syntax: 
query II rowsort label-7635
SELECT + 28 * + - 66 + - - COUNT( * ), + 34 * + 92 AS col0
----
-1847
3128

skipif mysql # not compatible
query II rowsort label-7635
SELECT + 28 * + - 66 + - - COUNT ( * ), + 34 * + 92 AS col0
----
-1847
3128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7636
SELECT ALL NULLIF ( COUNT( * ), 39 ) DIV - + 84 + - + 91 + + 93 + + - 99 + + - 94 + ( + 29 )
----
-162

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL NULLIF ( COUNT ( * ), 39 ) / - + 84 + - + 91 + + 93 + + - 99 + + - 94 + ( + 29 )
----
-162

query I rowsort
SELECT DISTINCT + + 88 col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7638
SELECT ALL COALESCE ( + COUNT( * ), + + 30 ) DIV + ( + + 10 ) + + - 36 - + 57 + - 66
----
-159

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL COALESCE ( + COUNT ( * ), + + 30 ) / + ( + + 10 ) + + - 36 - + 57 + - 66
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7639
SELECT DISTINCT + - CASE CAST( + SUM( DISTINCT + + 4 ) AS SIGNED ) WHEN + - 99 THEN - MIN( + 95 ) WHEN + 53 THEN NULL ELSE 38 END AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7639
SELECT DISTINCT + - CASE CAST ( + SUM ( DISTINCT + + 4 ) AS INTEGER ) WHEN + - 99 THEN - MIN ( + 95 ) WHEN + 53 THEN NULL ELSE 38 END AS col2
----
-38

query I rowsort
SELECT ALL 11 * + 25
----
275

query I rowsort
SELECT - 80 + - 87 AS col2
----
-167

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7642
SELECT - 49 * - 70 + 9 - + COUNT( * ) DIV 15 + MAX( - 83 ) + + - 35 col0, + 94 * 88 + + 58 AS col2
----
3321
8330

skipif mysql # not compatible
query II rowsort label-7642
SELECT - 49 * - 70 + 9 - + COUNT ( * ) / 15 + MAX ( - 83 ) + + - 35 col0, + 94 * 88 + + 58 AS col2
----
3321
8330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7643
SELECT + + NULLIF ( + 23, + + 55 ) - + NULLIF ( - 48, + 65 - + CAST( MAX( ALL + + 33 ) AS SIGNED ) * - + ( 13 ) * + 99 + + - 40 ) * 60 + - 96 AS col2
----
2807

skipif mysql # not compatible
query I rowsort label-7643
SELECT + + NULLIF ( + 23, + + 55 ) - + NULLIF ( - 48, + 65 - + CAST ( MAX ( ALL + + 33 ) AS INTEGER ) * - + ( 13 ) * + 99 + + - 40 ) * 60 + - 96 AS col2
----
2807

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7644
SELECT + - COUNT( * ) DIV 76 - + 5 + 11 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7644
SELECT + - COUNT ( * ) / 76 - + 5 + 11 AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7645
SELECT ( 8 ) DIV - 11 + - COUNT( * ) + + 65 * + 78 * + COUNT( DISTINCT 55 ) * 12 AS col0
----
60839

skipif mysql # not compatible
query I rowsort label-7645
SELECT ( 8 ) / - 11 + - COUNT ( * ) + + 65 * + 78 * + COUNT ( DISTINCT 55 ) * 12 AS col0
----
60839

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT 48 * - COALESCE ( - 95, + CASE + ( + MIN( DISTINCT - - 24 ) ) WHEN + 55 THEN 69 - MIN( - 55 ) END + + - 55 + - CASE - 51 WHEN - SUM( 10 ) + - COUNT( * ) + COUNT( * ) * + MIN( 19 + - 36 * 10 ) THEN 59 + + COUNT( * ) ELSE NULL END * - COUNT( * ), 1 * 69, - 15 * + COUNT( * ) - 10 ) * 52
----
237120

skipif mysql # not compatible
query I rowsort label-7646
SELECT 48 * - COALESCE ( - 95, + CASE + ( + MIN ( DISTINCT - - 24 ) ) WHEN + 55 THEN 69 - MIN ( - 55 ) END + + - 55 + - CASE - 51 WHEN - SUM ( 10 ) + - COUNT ( * ) + COUNT ( * ) * + MIN ( 19 + - 36 * 10 ) THEN 59 + + COUNT ( * ) ELSE NULL END * - COUNT ( * ), 1 * 69, - 15 * + COUNT ( * ) - 10 ) * 52
----
237120

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7647
SELECT DISTINCT CAST( + 60 AS SIGNED ) DIV 95 AS col2, 55 * + 90
----
0
4950

skipif mysql # not compatible
query II rowsort label-7647
SELECT DISTINCT CAST ( + 60 AS INTEGER ) / 95 AS col2, 55 * + 90
----
0
4950

query I rowsort
SELECT 97 + + ( + 2 ) + + 57 * 59
----
3462

query I rowsort
SELECT - 73 * - 56 + + 0 * 42 AS col1
----
4088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7650
SELECT ALL + MIN( - - 52 ) * MAX( ALL + 64 ) DIV + + 15
----
221

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL + MIN ( - - 52 ) * MAX ( ALL + 64 ) / + + 15
----
221

onlyif mysql # aggregate syntax: 
query II rowsort label-7651
SELECT ALL - COUNT( * ), + 35 + + 38 col0
----
-1
73

skipif mysql # not compatible
query II rowsort label-7651
SELECT ALL - COUNT ( * ), + 35 + + 38 col0
----
-1
73

query I rowsort
SELECT + + COALESCE ( ( - - 55 ), + 91 ) AS col0
----
55

query I rowsort
SELECT 95 + - + 87
----
8

query II rowsort
SELECT 33 + - 95 + 63 + + 15 AS col1, - 4 AS col2
----
16
-4

query II rowsort
SELECT 43 + + + 91 AS col2, - ( + - 86 ) AS col1
----
134
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT DISTINCT + 30 + - + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT + 30 + - + COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT ALL - 67 + + - 46 * ( + SUM( + 49 ) ) - - 30 AS col1
----
-2291

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL - 67 + + - 46 * ( + SUM ( + 49 ) ) - - 30 AS col1
----
-2291

query I rowsort
SELECT ALL + 39 + 51 col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7659
SELECT 55 + - + CASE + - 21 WHEN - + ( + MIN( + 4 ) ) THEN - 60 WHEN - 51 * - 29 * NULLIF ( 20, - COALESCE ( + COUNT( * ), + 83 - 54, - 85 ) ) THEN - - 36 ELSE NULL END col0, 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-7659
SELECT 55 + - + CASE + - 21 WHEN - + ( + MIN ( + 4 ) ) THEN - 60 WHEN - 51 * - 29 * NULLIF ( 20, - COALESCE ( + COUNT ( * ), + 83 - 54, - 85 ) ) THEN - - 36 ELSE NULL END col0, 10
----
NULL
10

query I rowsort
SELECT 65 + + - COALESCE ( - 47, 53 )
----
112

query I rowsort
SELECT ALL + 67 + + 17
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7662
SELECT ALL - 13 DIV - NULLIF ( 37, - - COALESCE ( + 21, + 5 * 80 * - + 8 * - 96 ) * - + MAX( - 14 ) DIV + 17 + - + 66 ) * - 14 + - 51 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL - 13 / - NULLIF ( 37, - - COALESCE ( + 21, + 5 * 80 * - + 8 * - 96 ) * - + MAX ( - 14 ) / + 17 + - + 66 ) * - 14 + - 51 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT 74 + MAX( DISTINCT + ( + 45 ) ) + - COUNT( * )
----
118

skipif mysql # not compatible
query I rowsort label-7663
SELECT 74 + MAX ( DISTINCT + ( + 45 ) ) + - COUNT ( * )
----
118

query I rowsort
SELECT 45 + + 52 * + 36
----
1917

query I rowsort
SELECT DISTINCT - 95 * + 76 AS col1
----
-7220

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT ALL + 40 + - MAX( 39 ) + + + 94 + + 94 - + ( + 80 ) * - 98 + - COUNT( * )
----
8028

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL + 40 + - MAX ( 39 ) + + + 94 + + 94 - + ( + 80 ) * - 98 + - COUNT ( * )
----
8028

query I rowsort
SELECT 55 + - 1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7668
SELECT ALL + ( + 8 ) + + 32 DIV ( + 7 )
----
12

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL + ( + 8 ) + + 32 / ( + 7 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT DISTINCT - MIN( + ( 92 ) ) * - CASE - 12 WHEN - 92 THEN NULL WHEN + - SUM( ALL - 75 ) THEN + - 40 ELSE - 91 * 62 END + - 36 + + 12 * + 82 + - 43 - NULLIF ( + 61, - 6 * 72 ) * + MAX( ALL 88 )
----
-523527

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT - MIN ( + ( 92 ) ) * - CASE - 12 WHEN - 92 THEN NULL WHEN + - SUM ( ALL - 75 ) THEN + - 40 ELSE - 91 * 62 END + - 36 + + 12 * + 82 + - 43 - NULLIF ( + 61, - 6 * 72 ) * + MAX ( ALL 88 )
----
-523527

query I rowsort
SELECT ALL - 4 - - + 41
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT - - MAX( + 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7671
SELECT - - MAX ( + 57 ) AS col0
----
57

query I rowsort
SELECT ALL + COALESCE ( + 17, - ( + 70 ) * + 20 + + 61 - 89 * 81 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7673
SELECT - MIN( ALL + 82 ) AS col0, 78 * + + ( 95 )
----
-82
7410

skipif mysql # not compatible
query II rowsort label-7673
SELECT - MIN ( ALL + 82 ) AS col0, 78 * + + ( 95 )
----
-82
7410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7674
SELECT CAST( + 36 AS SIGNED ) + + 23 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7674
SELECT CAST ( + 36 AS INTEGER ) + + 23 AS col0
----
59

query I rowsort
SELECT + 39 * - 20 AS col2
----
-780

query I rowsort
SELECT + ( + + 33 )
----
33

query I rowsort
SELECT ALL + + 92 - + + 57 col0
----
35

query I rowsort
SELECT - 87 * - 11
----
957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7679
SELECT + COUNT( * ) * + 71 * 86 * + + CAST( NULL AS SIGNED ) AS col0, 17 + - 46
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-7679
SELECT + COUNT ( * ) * + 71 * 86 * + + CAST ( NULL AS INTEGER ) AS col0, 17 + - 46
----
NULL
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7680
SELECT ALL COALESCE ( 84, + 66 * - 37 ) * - 18 * - 80 * - - 56 + - COUNT( * ) - - - CASE - CAST( NULL AS SIGNED ) WHEN + + 74 THEN NULL WHEN - CAST( 11 AS SIGNED ) THEN - 40 + - 72 ELSE NULL END + + 8 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL COALESCE ( 84, + 66 * - 37 ) * - 18 * - 80 * - - 56 + - COUNT ( * ) - - - CASE - CAST ( NULL AS INTEGER ) WHEN + + 74 THEN NULL WHEN - CAST ( 11 AS INTEGER ) THEN - 40 + - 72 ELSE NULL END + + 8 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT ALL - COUNT( ALL - 16 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL - COUNT ( ALL - 16 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 61 * - + 51
----
3111

onlyif mysql # DIV for integer division: 
query I rowsort label-7683
SELECT DISTINCT - 50 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT - 50 / - 86
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( + 7, + - 50 + + 73 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT ALL + CAST( NULL AS SIGNED ) * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL + CAST ( NULL AS INTEGER ) * 61
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7686
SELECT 42 DIV - 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7686
SELECT 42 / - 51 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT MIN( DISTINCT 99 )
----
99

skipif mysql # not compatible
query I rowsort label-7687
SELECT MIN ( DISTINCT 99 )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7688
SELECT CAST( 56 AS SIGNED ) + ( 44 )
----
100

skipif mysql # not compatible
query I rowsort label-7688
SELECT CAST ( 56 AS INTEGER ) + ( 44 )
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT 4 / - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT 4 / - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7690
SELECT 90 AS col0, MAX( DISTINCT + + 65 ) / 14 + + CASE - ( + ( 72 ) ) WHEN - 62 THEN CAST( NULL AS SIGNED ) END col1
----
90
NULL

skipif mysql # not compatible
query II rowsort label-7690
SELECT 90 AS col0, MAX ( DISTINCT + + 65 ) / 14 + + CASE - ( + ( 72 ) ) WHEN - 62 THEN CAST ( NULL AS INTEGER ) END col1
----
90
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + + 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT 80 * ( - - 55 ) - COUNT( * ) - - 35 - 10 + 57 * - ( + 77 ) * + COUNT( * ) * - - 21
----
-87745

skipif mysql # not compatible
query I rowsort label-7692
SELECT 80 * ( - - 55 ) - COUNT ( * ) - - 35 - 10 + 57 * - ( + 77 ) * + COUNT ( * ) * - - 21
----
-87745

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT 30 DIV + - 28
----
-1

skipif mysql # not compatible
query I rowsort label-7693
SELECT 30 / + - 28
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT - 34 * + 99 * - ( + - MIN( DISTINCT + NULLIF ( - 16, + 41 * 30 ) ) ) - - + 21
----
53877

skipif mysql # not compatible
query I rowsort label-7694
SELECT - 34 * + 99 * - ( + - MIN ( DISTINCT + NULLIF ( - 16, + 41 * 30 ) ) ) - - + 21
----
53877

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT DISTINCT 77 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT 77 / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT - MAX( ALL 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7696
SELECT - MAX ( ALL 1 ) AS col2
----
-1

query I rowsort
SELECT 65 * + - 41 AS col1
----
-2665

query I rowsort
SELECT 68 - + + 59
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7699
SELECT 55 * + - CAST( NULL AS SIGNED ) * + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7699
SELECT 55 * + - CAST ( NULL AS INTEGER ) * + 96
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7700
SELECT DISTINCT 69 - - 59 + + 38 - - - 26 + + - COUNT( * ) AS col1, 5 * 66 AS col0
----
139
330

skipif mysql # not compatible
query II rowsort label-7700
SELECT DISTINCT 69 - - 59 + + 38 - - - 26 + + - COUNT ( * ) AS col1, 5 * 66 AS col0
----
139
330

onlyif mysql # aggregate syntax: 
query II rowsort label-7701
SELECT DISTINCT COUNT( * ), 95 * - 43 AS col2
----
1
-4085

skipif mysql # not compatible
query II rowsort label-7701
SELECT DISTINCT COUNT ( * ), 95 * - 43 AS col2
----
1
-4085

query I rowsort
SELECT DISTINCT + 36 - ( - + 34 ) * + 7 col2
----
274

onlyif mysql # DIV for integer division: 
query II rowsort label-7703
SELECT - 17 AS col2, NULLIF ( + 86, - 38 ) + + + 68 DIV - 19
----
-17
83

skipif mysql # not compatible
query II rowsort label-7703
SELECT - 17 AS col2, NULLIF ( + 86, - 38 ) + + + 68 / - 19
----
-17
83

query I rowsort
SELECT + ( - ( + - 44 ) ) AS col0
----
44

query I rowsort
SELECT 18 + - 46 AS col1
----
-28

query II rowsort
SELECT - 50 AS col1, 80 - - 48 AS col2
----
-50
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT CASE + 99 WHEN + NULLIF ( COUNT( * ), + - 64 ) THEN + COUNT( * ) WHEN + 99 - - - 72 THEN NULL END * - 42 + 84 * + NULLIF ( - + 54, + COUNT( * ) ) * - - ( + 82 ) + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7707
SELECT CASE + 99 WHEN + NULLIF ( COUNT ( * ), + - 64 ) THEN + COUNT ( * ) WHEN + 99 - - - 72 THEN NULL END * - 42 + 84 * + NULLIF ( - + 54, + COUNT ( * ) ) * - - ( + 82 ) + 16
----
NULL

query I rowsort
SELECT DISTINCT - 56 * 79 AS col2
----
-4424

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT - + MIN( DISTINCT 72 ) - - SUM( + 39 )
----
-33

skipif mysql # not compatible
query I rowsort label-7709
SELECT - + MIN ( DISTINCT 72 ) - - SUM ( + 39 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT - CASE - 73 WHEN 3 THEN NULL WHEN + SUM( + 96 ) * + ( 40 ) THEN NULLIF ( 31, + 77 * - - COUNT( * ) / + 41 ) ELSE NULL END / - 60 / + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-7710
SELECT - CASE - 73 WHEN 3 THEN NULL WHEN + SUM ( + 96 ) * + ( 40 ) THEN NULLIF ( 31, + 77 * - - COUNT ( * ) / + 41 ) ELSE NULL END / - 60 / + 8
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7711
SELECT ALL - 23 * - + 62 DIV - 1 + MIN( 37 ) * 19 + 34
----
-689

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL - 23 * - + 62 / - 1 + MIN ( 37 ) * 19 + 34
----
-689

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT - + 43 + - 75 * + COUNT( DISTINCT 42 )
----
-118

skipif mysql # not compatible
query I rowsort label-7712
SELECT - + 43 + - 75 * + COUNT ( DISTINCT 42 )
----
-118

query II rowsort
SELECT ALL + 36 AS col2, 47 AS col0
----
36
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7714
SELECT 68 DIV - - 26 + + 80 - - 78
----
160

skipif mysql # not compatible
query I rowsort label-7714
SELECT 68 / - - 26 + + 80 - - 78
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-7715
SELECT - 78 + + - ( + + 35 ) - + 63 DIV - 1 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-7715
SELECT - 78 + + - ( + + 35 ) - + 63 / - 1 AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7716
SELECT 76 DIV + 41 DIV + COUNT( * ) - + NULLIF ( COUNT( * ), + 35 + + 12 ) + - 12
----
-12

skipif mysql # not compatible
query I rowsort label-7716
SELECT 76 / + 41 / + COUNT ( * ) - + NULLIF ( COUNT ( * ), + 35 + + 12 ) + - 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT - 87 * + COUNT( * ) * - - 99 AS col1
----
-8613

skipif mysql # not compatible
query I rowsort label-7717
SELECT - 87 * + COUNT ( * ) * - - 99 AS col1
----
-8613

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7718
SELECT + + 8 * + 50 + + - 29 + + 94 + + 15 - + - CAST( - 35 AS SIGNED ) DIV + 42 * + 23 + + - 9 + - 58 - - 78 col0
----
491

skipif mysql # not compatible
query I rowsort label-7718
SELECT + + 8 * + 50 + + - 29 + + 94 + + 15 - + - CAST ( - 35 AS INTEGER ) / + 42 * + 23 + + - 9 + - 58 - - 78 col0
----
491

query II rowsort
SELECT + 62 - - - 42 + - + 54, 33 AS col1
----
-34
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT COUNT( + - 18 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7720
SELECT COUNT ( + - 18 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL - MAX( ALL - ( + 32 ) ) * + + 55 + 63 + - COUNT( * )
----
1822

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL - MAX ( ALL - ( + 32 ) ) * + + 55 + 63 + - COUNT ( * )
----
1822

query I rowsort
SELECT COALESCE ( - 77, 92 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT - 12 + 68 * + - SUM( DISTINCT 7 ) + - COUNT( ALL + 7 ) AS col0
----
-489

skipif mysql # not compatible
query I rowsort label-7723
SELECT - 12 + 68 * + - SUM ( DISTINCT 7 ) + - COUNT ( ALL + 7 ) AS col0
----
-489

query I rowsort
SELECT ALL 24 * + 42 AS col0
----
1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7725
SELECT CASE + - 31 WHEN - 60 THEN + 79 WHEN - + 94 THEN NULL ELSE + COALESCE ( - + 91, + ( COUNT( - - 56 ) ) + + 30 + 98 + - - 55 * NULLIF ( - 81, 33 ) + + 98 + + 94 DIV + + ( 87 ) * + 62 ) * + 76 END AS col2
----
-6916

skipif mysql # not compatible
query I rowsort label-7725
SELECT CASE + - 31 WHEN - 60 THEN + 79 WHEN - + 94 THEN NULL ELSE + COALESCE ( - + 91, + ( COUNT ( - - 56 ) ) + + 30 + 98 + - - 55 * NULLIF ( - 81, 33 ) + + 98 + + 94 / + + ( 87 ) * + 62 ) * + 76 END AS col2
----
-6916

onlyif mysql # DIV for integer division: 
query I rowsort label-7726
SELECT ALL - 76 * 55 DIV + 91 + + ( 3 )
----
-42

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL - 76 * 55 / + 91 + + ( 3 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7727
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) * - + CAST( NULL AS SIGNED ) + + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) * - + CAST ( NULL AS INTEGER ) + + 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT + MIN( - - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-7728
SELECT + MIN ( - - 51 )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7729
SELECT - 30 * 48 * + CAST( NULL AS SIGNED ) * + + 60 + - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT - 30 * 48 * + CAST ( NULL AS INTEGER ) * + + 60 + - 58 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT - 76 * + CAST( + 98 AS SIGNED )
----
-7448

skipif mysql # not compatible
query I rowsort label-7730
SELECT - 76 * + CAST ( + 98 AS INTEGER )
----
-7448

query I rowsort
SELECT + 82 * 61 * + 83 AS col2
----
415166

query I rowsort
SELECT - 94 + - + 22 AS col1
----
-116

query I rowsort
SELECT + COALESCE ( + - 50, 40 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7734
SELECT ALL + 10 AS col1, 7 + + 38 - - CAST( NULL AS SIGNED ) + 27 * + + CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-7734
SELECT ALL + 10 AS col1, 7 + + 38 - - CAST ( NULL AS INTEGER ) + 27 * + + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT + MIN( ALL + 62 ) + - - 36 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-7735
SELECT + MIN ( ALL + 62 ) + - - 36 AS col2
----
98

query I rowsort
SELECT DISTINCT ( - - 98 ) AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7737
SELECT + MAX( DISTINCT + - 53 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT + MAX ( DISTINCT + - 53 ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 10 * + 2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7739
SELECT + NULLIF ( 17, + 76 ) + + 71 DIV 76
----
17

skipif mysql # not compatible
query I rowsort label-7739
SELECT + NULLIF ( 17, + 76 ) + + 71 / 76
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7740
SELECT ALL 22 DIV - COUNT( * ) * - - ( - COUNT( * ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL 22 / - COUNT ( * ) * - - ( - COUNT ( * ) ) AS col0
----
22

query I rowsort
SELECT - 87 * + 6
----
-522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7742
SELECT + 10 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT + 10 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7743
SELECT DISTINCT 17 col0, ( - + MIN( ALL - CAST( NULL AS SIGNED ) ) ) * - + CASE - COUNT( * ) WHEN - 87 + + 73 THEN + - 63 ELSE NULL END * + 21 + - 35
----
17
NULL

skipif mysql # not compatible
query II rowsort label-7743
SELECT DISTINCT 17 col0, ( - + MIN ( ALL - CAST ( NULL AS INTEGER ) ) ) * - + CASE - COUNT ( * ) WHEN - 87 + + 73 THEN + - 63 ELSE NULL END * + 21 + - 35
----
17
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7744
SELECT 16 AS col1, - CAST( NULL AS SIGNED )
----
16
NULL

skipif mysql # not compatible
query II rowsort label-7744
SELECT 16 AS col1, - CAST ( NULL AS INTEGER )
----
16
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7745
SELECT + - 21 + - ( - COUNT( * ) ) + - COUNT( * ) * NULLIF ( COUNT( * ), - + ( CAST( + ( 74 ) AS SIGNED ) ) * - ( + - 22 ) ) - + 99
----
-120

skipif mysql # not compatible
query I rowsort label-7745
SELECT + - 21 + - ( - COUNT ( * ) ) + - COUNT ( * ) * NULLIF ( COUNT ( * ), - + ( CAST ( + ( 74 ) AS INTEGER ) ) * - ( + - 22 ) ) - + 99
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-7746
SELECT DISTINCT - 16 * 98 DIV ( 13 )
----
-120

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT - 16 * 98 / ( 13 )
----
-120

query I rowsort
SELECT ALL - 83 * - + 37 * 62
----
190402

query II rowsort
SELECT DISTINCT - 31 AS col2, - 50 + + + 99 + 89 * 77 AS col0
----
-31
6902

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT ALL + ( + + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL + ( + + COUNT ( * ) ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7750
SELECT ALL CAST( - 67 AS SIGNED ) + + ( - MIN( - - 52 ) )
----
-119

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL CAST ( - 67 AS INTEGER ) + + ( - MIN ( - - 52 ) )
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7751
SELECT + CASE - 9 WHEN + - CAST( NULL AS SIGNED ) + + - 25 THEN - 21 * + COUNT( 66 ) ELSE 52 END * - + CASE - ( + + 80 ) WHEN + + COUNT( * ) + + - 55 + - CASE + CAST( NULL AS SIGNED ) WHEN - - SUM( 2 ) THEN - - 42 END * COUNT( * ) THEN + 27 WHEN + 16 + - 40 THEN NULL ELSE NULL END - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT + CASE - 9 WHEN + - CAST ( NULL AS INTEGER ) + + - 25 THEN - 21 * + COUNT ( 66 ) ELSE 52 END * - + CASE - ( + + 80 ) WHEN + + COUNT ( * ) + + - 55 + - CASE + CAST ( NULL AS INTEGER ) WHEN - - SUM ( 2 ) THEN - - 42 END * COUNT ( * ) THEN + 27 WHEN + 16 + - 40 THEN NULL ELSE NULL END - 82 AS col1
----
NULL

query II rowsort
SELECT - 32 + 94 AS col0, 9 - 63 - - 12
----
62
-42

query I rowsort
SELECT ALL - + 70 + - 23 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-7754
SELECT + 3, NULLIF ( + - CASE 96 WHEN + - ( 50 ) * - + 6 * 1 - - ( 65 ) + 54 - - 7 THEN + 57 END, + 33 + 30 ) + + 11 * - 50 + - COUNT( * ) + 66 AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7754
SELECT + 3, NULLIF ( + - CASE 96 WHEN + - ( 50 ) * - + 6 * 1 - - ( 65 ) + 54 - - 7 THEN + 57 END, + 33 + 30 ) + + 11 * - 50 + - COUNT ( * ) + 66 AS col0
----
3
NULL

query I rowsort
SELECT - 46 + + - ( + 5 ) AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7756
SELECT - + 56 + + + 80 * + COUNT( * ) + + NULLIF ( - - CAST( NULL AS SIGNED ), 97 + + + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT - + 56 + + + 80 * + COUNT ( * ) + + NULLIF ( - - CAST ( NULL AS INTEGER ), 97 + + + 28 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7757
SELECT ALL + COUNT( * ) DIV - COUNT( * ) + - + CASE + COUNT( * ) WHEN - 46 * - ( 82 ) THEN NULL WHEN 20 + 16 THEN - + 77 + - 48 + 59 ELSE + + 2 END AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL + COUNT ( * ) / - COUNT ( * ) + - + CASE + COUNT ( * ) WHEN - 46 * - ( 82 ) THEN NULL WHEN 20 + 16 THEN - + 77 + - 48 + 59 ELSE + + 2 END AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7758
SELECT + + 45 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT + + 45 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7759
SELECT DISTINCT + 89 DIV - COUNT( DISTINCT - 60 ) + - + 24 AS col0, + 52 col1
----
-113
52

skipif mysql # not compatible
query II rowsort label-7759
SELECT DISTINCT + 89 / - COUNT ( DISTINCT - 60 ) + - + 24 AS col0, + 52 col1
----
-113
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL - - COUNT( * ) * - + 73 * + 37
----
-2701

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL - - COUNT ( * ) * - + 73 * + 37
----
-2701

query I rowsort
SELECT 17 * - 36 - 6
----
-618

query I rowsort
SELECT ALL + ( - + 32 )
----
-32

query I rowsort
SELECT - 53 + - 64 AS col2
----
-117

query I rowsort
SELECT - 59 * - 65 * 25
----
95875

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ( + + SUM( + 62 ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-7765
SELECT ( + + SUM ( + 62 ) ) AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7766
SELECT ALL 63 * + 52 DIV ( + - 1 ) DIV - COUNT( * ) - + CASE + 91 WHEN - 3 THEN NULL ELSE + + NULLIF ( + - 70, + 85 ) END
----
3346

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL 63 * + 52 / ( + - 1 ) / - COUNT ( * ) - + CASE + 91 WHEN - 3 THEN NULL ELSE + + NULLIF ( + - 70, + 85 ) END
----
3346

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT + SUM( + + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7767
SELECT + SUM ( + + 9 ) AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7768
SELECT ( - CAST( + 85 AS SIGNED ) ) * + 47 + - 65 - 90 AS col2
----
-4150

skipif mysql # not compatible
query I rowsort label-7768
SELECT ( - CAST ( + 85 AS INTEGER ) ) * + 47 + - 65 - 90 AS col2
----
-4150

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT ALL + 91 * COALESCE ( - COUNT( * ), - 8 )
----
-91

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL + 91 * COALESCE ( - COUNT ( * ), - 8 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7770
SELECT - 87 DIV - 84 col0
----
1

skipif mysql # not compatible
query I rowsort label-7770
SELECT - 87 / - 84 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT + CASE + 58 WHEN - 93 * - 3 THEN NULL WHEN + + 17 THEN COUNT( * ) / - - 91 ELSE NULL END * - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT + CASE + 58 WHEN - 93 * - 3 THEN NULL WHEN + + 17 THEN COUNT ( * ) / - - 91 ELSE NULL END * - + 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7772
SELECT - 5 - - COUNT( * ), - 28 AS col2
----
-4
-28

skipif mysql # not compatible
query II rowsort label-7772
SELECT - 5 - - COUNT ( * ), - 28 AS col2
----
-4
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT + ( + 89 ) * COUNT( + ( - + COALESCE ( - 27, 56 ) ) ) + + COUNT( * ) + - 48 + - + 46 * - 21 AS col2
----
1008

skipif mysql # not compatible
query I rowsort label-7773
SELECT + ( + 89 ) * COUNT ( + ( - + COALESCE ( - 27, 56 ) ) ) + + COUNT ( * ) + - 48 + - + 46 * - 21 AS col2
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL - ( MIN( ALL + + 53 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - ( MIN ( ALL + + 53 ) )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7775
SELECT ALL CASE CAST( 48 AS SIGNED ) WHEN COUNT( * ) THEN - 54 * + 68 + ( + 33 ) * CAST( + + COUNT( * ) AS SIGNED ) + + 41 + - CAST( NULL AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL CASE CAST ( 48 AS INTEGER ) WHEN COUNT ( * ) THEN - 54 * + 68 + ( + 33 ) * CAST ( + + COUNT ( * ) AS INTEGER ) + + 41 + - CAST ( NULL AS REAL ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7776
SELECT ALL 11 DIV + NULLIF ( + 61, - ( + 25 ) * + 0 + + 88 + - 88 * NULLIF ( + - ( 24 ), - 70 + + - 71 + - 93 ) + - 67 + + + 5 + - 16 * + + 12 + 35 + - COALESCE ( + 51, - + 90 * - 30, - 80 * 83 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL 11 / + NULLIF ( + 61, - ( + 25 ) * + 0 + + 88 + - 88 * NULLIF ( + - ( 24 ), - 70 + + - 71 + - 93 ) + - 67 + + + 5 + - 16 * + + 12 + 35 + - COALESCE ( + 51, - + 90 * - 30, - 80 * 83 ) ) AS col0
----
0

query I rowsort
SELECT 17 * - 51
----
-867

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT COUNT( * ) + - + COUNT( ALL + - ( + 31 ) ) + + + COUNT( + 87 ) * + 15
----
15

skipif mysql # not compatible
query I rowsort label-7778
SELECT COUNT ( * ) + - + COUNT ( ALL + - ( + 31 ) ) + + + COUNT ( + 87 ) * + 15
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7779
SELECT + 47 + + 70 + - CASE + + 18 WHEN - MIN( ALL + 75 ) + + + 85 * 89 / - CAST( NULL AS SIGNED ) THEN + 51 + 58 * + 27 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT + 47 + + 70 + - CASE + + 18 WHEN - MIN ( ALL + 75 ) + + + 85 * 89 / - CAST ( NULL AS INTEGER ) THEN + 51 + 58 * + 27 ELSE NULL END col1
----
NULL

query II rowsort
SELECT CASE + 78 WHEN 72 + + 88 THEN + - ( + 54 ) + 70 END AS col1, 90 * - + 78 AS col0
----
NULL
-7020

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT NULLIF ( + NULLIF ( - 34, 35 ), + ( + + 8 ) * + 98 * 97 / COUNT( * ) * - + COUNT( ALL + 6 ) + + ( 40 ) + - + COUNT( * ) )
----
-34

skipif mysql # not compatible
query I rowsort label-7781
SELECT NULLIF ( + NULLIF ( - 34, 35 ), + ( + + 8 ) * + 98 * 97 / COUNT ( * ) * - + COUNT ( ALL + 6 ) + + ( 40 ) + - + COUNT ( * ) )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7782
SELECT SUM( ALL - - CAST( NULL AS DECIMAL ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT SUM ( ALL - - CAST ( NULL AS REAL ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 30 * - + 66
----
-1980

query I rowsort
SELECT ALL - 80 + + + ( + 97 )
----
17

query I rowsort
SELECT ALL + 10 * + 27 AS col1
----
270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7786
SELECT - 97 + 85 AS col0, - ( + CAST( - 11 AS SIGNED ) ) * ( + + COUNT( * ) )
----
-12
11

skipif mysql # not compatible
query II rowsort label-7786
SELECT - 97 + 85 AS col0, - ( + CAST ( - 11 AS INTEGER ) ) * ( + + COUNT ( * ) )
----
-12
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT DISTINCT - ( ( + - ( - 17 ) ) ) * + COUNT( * ) + 2 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT - ( ( + - ( - 17 ) ) ) * + COUNT ( * ) + 2 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL 80 + + NULLIF ( 52, 23 / COUNT( 56 ) )
----
132

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL 80 + + NULLIF ( 52, 23 / COUNT ( 56 ) )
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT 21 * + - 14 + - SUM( DISTINCT 66 ) + 80 AS col2
----
-280

skipif mysql # not compatible
query I rowsort label-7789
SELECT 21 * + - 14 + - SUM ( DISTINCT 66 ) + 80 AS col2
----
-280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7790
SELECT 59 - - - 66 DIV - 71 * - MAX( - 42 ) * - - 67 * - - 33 DIV + + 24
----
59

skipif mysql # not compatible
query I rowsort label-7790
SELECT 59 - - - 66 / - 71 * - MAX ( - 42 ) * - - 67 * - - 33 / + + 24
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT ALL - MIN( ALL + 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL - MIN ( ALL + 68 )
----
-68

query I rowsort
SELECT 68 + - 27 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ( 69 ) * COUNT( * ) + + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-7793
SELECT ( 69 ) * COUNT ( * ) + + COUNT ( * )
----
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7794
SELECT 74 * - CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT 74 * - CAST ( NULL AS REAL ) * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 58 * + 12 + - 87
----
609

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7796
SELECT ALL - 22 - 10 / CAST( NULL AS DECIMAL ), ( - COUNT( * ) ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7796
SELECT ALL - 22 - 10 / CAST ( NULL AS REAL ), ( - COUNT ( * ) ) AS col0
----
NULL
-1

query II rowsort
SELECT + 36, 99 * + 80 * + 22 * - - 23 col0
----
36
4007520

query I rowsort
SELECT 58 + + 58 col1
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-7799
SELECT ALL + 49 * ( + - 48 ) AS col2, COUNT( 43 )
----
-2352
1

skipif mysql # not compatible
query II rowsort label-7799
SELECT ALL + 49 * ( + - 48 ) AS col2, COUNT ( 43 )
----
-2352
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT 64 * 23 * 87 * NULLIF ( + 57, - 59 + + - COUNT( * ) ) * 56 - - 29 - 68 * + ( - + ( - 85 ) ) AS col0
----
408774537

skipif mysql # not compatible
query I rowsort label-7800
SELECT 64 * 23 * 87 * NULLIF ( + 57, - 59 + + - COUNT ( * ) ) * 56 - - 29 - 68 * + ( - + ( - 85 ) ) AS col0
----
408774537

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT DISTINCT 46 * + SUM( ALL - NULLIF ( + 40, - 36 * - 87 * - ( 93 ) ) )
----
-1840

skipif mysql # not compatible
query I rowsort label-7801
SELECT DISTINCT 46 * + SUM ( ALL - NULLIF ( + 40, - 36 * - 87 * - ( 93 ) ) )
----
-1840

query II rowsort
SELECT 86, + 43 * + 2 - 88 AS col0
----
86
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7803
SELECT 83 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT 83 / + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 64 + - 80 + - NULLIF ( 40, - 72 ) * 5
----
-216

query II rowsort
SELECT DISTINCT - COALESCE ( - 17, - 39 ) AS col2, NULLIF ( + 87, + + 20 * 91 + + - 26 ) + - + 55 - + 11
----
17
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT ALL - NULLIF ( MAX( - 16 ), + - 90 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL - NULLIF ( MAX ( - 16 ), + - 90 ) AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7807
SELECT + 58 AS col2, - CAST( NULL AS SIGNED )
----
58
NULL

skipif mysql # not compatible
query II rowsort label-7807
SELECT + 58 AS col2, - CAST ( NULL AS INTEGER )
----
58
NULL

query I rowsort
SELECT DISTINCT - - 4 + - + 55 * - 83
----
4569

query I rowsort
SELECT - 65 + - 49 AS col2
----
-114

query I rowsort
SELECT ALL - + 54 + - 1 + + 48 * 30
----
1385

onlyif mysql # aggregate syntax: 
query II rowsort label-7811
SELECT ALL + 99, - SUM( ALL + - 47 ) AS col0
----
99
47

skipif mysql # not compatible
query II rowsort label-7811
SELECT ALL + 99, - SUM ( ALL + - 47 ) AS col0
----
99
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7812
SELECT + CAST( - ( + 12 ) AS SIGNED ) + - 9 + + COUNT( * ) * + 43
----
22

skipif mysql # not compatible
query I rowsort label-7812
SELECT + CAST ( - ( + 12 ) AS INTEGER ) + - 9 + + COUNT ( * ) * + 43
----
22

query I rowsort
SELECT 73 * 4 AS col0
----
292

query I rowsort
SELECT - + ( 97 ) col1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT + 45 DIV + + COALESCE ( + - 1, + 66, - 8 )
----
-45

skipif mysql # not compatible
query I rowsort label-7815
SELECT + 45 / + + COALESCE ( + - 1, + 66, - 8 )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7816
SELECT - 14 + + + CASE COUNT( + + 98 ) WHEN - 52 THEN NULL ELSE - + 67 + ( + + 28 ) END DIV 23 + - 10
----
-25

skipif mysql # not compatible
query I rowsort label-7816
SELECT - 14 + + + CASE COUNT ( + + 98 ) WHEN - 52 THEN NULL ELSE - + 67 + ( + + 28 ) END / 23 + - 10
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7817
SELECT ALL + CASE 34 WHEN + - 72 - + CAST( + + 10 AS SIGNED ) + + 96 * + - NULLIF ( - + 79, CAST( - 28 AS SIGNED ) ) + + + 10 THEN - 27 + - + 75 - - 91 WHEN - - 9 * - 84 THEN NULL END + + 97 + - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL + CASE 34 WHEN + - 72 - + CAST ( + + 10 AS INTEGER ) + + 96 * + - NULLIF ( - + 79, CAST ( - 28 AS INTEGER ) ) + + + 10 THEN - 27 + - + 75 - - 91 WHEN - - 9 * - 84 THEN NULL END + + 97 + - 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT - COUNT( * ) + + + 57 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-7818
SELECT - COUNT ( * ) + + + 57 AS col0
----
56

query II rowsort
SELECT 31 AS col0, 71 col2
----
31
71

query I rowsort
SELECT DISTINCT + 81 + 45 AS col0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7821
SELECT CAST( NULL AS SIGNED ) / + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT CAST ( NULL AS INTEGER ) / + 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7822
SELECT CASE + - 90 WHEN - + COUNT( * ) * - + 41 * + 41 * - - 80 THEN + 67 * 68 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 47 END + 28
----
75

skipif mysql # not compatible
query I rowsort label-7822
SELECT CASE + - 90 WHEN - + COUNT ( * ) * - + 41 * + 41 * - - 80 THEN + 67 * 68 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 47 END + 28
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7823
SELECT 68 + 70 * + COUNT( * ) * + + 70 + - CASE - - AVG ( ALL + 37 ) WHEN + + 31 * MAX( + CAST( NULL AS SIGNED ) ) + ( + 48 ) - - 79 + 34 / + COUNT( * ) + + CAST( NULL AS DECIMAL ) THEN NULL WHEN - 21 THEN NULL ELSE 57 END + CASE - 18 WHEN + 72 THEN ( - + MIN( 64 ) ) * + COALESCE ( + 89, + 2, - 14 ) END / + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7823
SELECT 68 + 70 * + COUNT ( * ) * + + 70 + - CASE - - AVG ( ALL + 37 ) WHEN + + 31 * MAX ( + CAST ( NULL AS INTEGER ) ) + ( + 48 ) - - 79 + 34 / + COUNT ( * ) + + CAST ( NULL AS REAL ) THEN NULL WHEN - 21 THEN NULL ELSE 57 END + CASE - 18 WHEN + 72 THEN ( - + MIN ( 64 ) ) * + COALESCE ( + 89, + 2, - 14 ) END / + 46 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL COUNT( * ) * - 71 - - 54
----
-17

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL COUNT ( * ) * - 71 - - 54
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT CASE - + COUNT( * ) WHEN COUNT( * ) + - + 20 THEN - 43 * 12 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7825
SELECT CASE - + COUNT ( * ) WHEN COUNT ( * ) + - + 20 THEN - 43 * 12 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7826
SELECT ALL - CAST( - 43 AS SIGNED ) AS col1, MAX( ALL 49 ) * + 21
----
43
1029

skipif mysql # not compatible
query II rowsort label-7826
SELECT ALL - CAST ( - 43 AS INTEGER ) AS col1, MAX ( ALL 49 ) * + 21
----
43
1029

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT NULLIF ( - ( ( + 60 ) ), COUNT( * ) ) * + 81 * - 81 AS col2
----
393660

skipif mysql # not compatible
query I rowsort label-7827
SELECT NULLIF ( - ( ( + 60 ) ), COUNT ( * ) ) * + 81 * - 81 AS col2
----
393660

query II rowsort
SELECT ALL 59 * + - 23, 68 AS col0
----
-1357
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7829
SELECT COUNT( ALL - 55 ) AS col0, 13
----
1
13

skipif mysql # not compatible
query II rowsort label-7829
SELECT COUNT ( ALL - 55 ) AS col0, 13
----
1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT MIN( DISTINCT ( 32 ) ) col2
----
32

skipif mysql # not compatible
query I rowsort label-7830
SELECT MIN ( DISTINCT ( 32 ) ) col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT SUM( 43 ) * NULLIF ( 29, - 45 ) * - SUM( - + 44 ) * + 78 + + + 47 - 96
----
4279655

skipif mysql # not compatible
query I rowsort label-7831
SELECT SUM ( 43 ) * NULLIF ( 29, - 45 ) * - SUM ( - + 44 ) * + 78 + + + 47 - 96
----
4279655

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT MIN( ALL + + 11 ) col2
----
11

skipif mysql # not compatible
query I rowsort label-7832
SELECT MIN ( ALL + + 11 ) col2
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7833
SELECT COUNT( * ) DIV + - COUNT( * ) + 1 DIV 25 + + + MIN( ALL - + ( + 64 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-7833
SELECT COUNT ( * ) / + - COUNT ( * ) + 1 / 25 + + + MIN ( ALL - + ( + 64 ) )
----
-65

query I rowsort
SELECT + COALESCE ( - - 74, - 14 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT - 87 + COUNT( * ) + + COALESCE ( + - 29, - 67 ) + 64 + - + 81 + - + 24 * + 14 + 90 AS col0
----
-378

skipif mysql # not compatible
query I rowsort label-7835
SELECT - 87 + COUNT ( * ) + + COALESCE ( + - 29, - 67 ) + 64 + - + 81 + - + 24 * + 14 + 90 AS col0
----
-378

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7836
SELECT DISTINCT NULLIF ( + 19, + 88 + - + 37 + - MAX( + 65 ) + + CAST( 79 AS DECIMAL ) * 17 * - 74 * + 52 ) * - + 35 - - - 66 + 71 * + 78 - - COUNT( * ) + ( + 0 ) + + 52 AS col1
----
4860

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT NULLIF ( + 19, + 88 + - + 37 + - MAX ( + 65 ) + + CAST ( 79 AS REAL ) * 17 * - 74 * + 52 ) * - + 35 - - - 66 + 71 * + 78 - - COUNT ( * ) + ( + 0 ) + + 52 AS col1
----
4860

query I rowsort
SELECT ALL 4 * - 41 + - 75 - + 84
----
-323

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL - 36 * + COUNT( * ) + 31
----
-5

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL - 36 * + COUNT ( * ) + 31
----
-5

query I rowsort
SELECT DISTINCT 79 * - 44 + - - 58 * + + ( - 32 ) - 79
----
-5411

query I rowsort
SELECT - 54 + + 95 + - - 58 AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT ALL - 95 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL - 95 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT + COALESCE ( + 20, 66, 92 * - ( COUNT( * ) ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7842
SELECT + COALESCE ( + 20, 66, 92 * - ( COUNT ( * ) ) ) AS col1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7843
SELECT + COUNT( * ) DIV - + 59
----
0

skipif mysql # not compatible
query I rowsort label-7843
SELECT + COUNT ( * ) / - + 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT + - ( - + MIN( ALL + 88 ) )
----
88

skipif mysql # not compatible
query I rowsort label-7844
SELECT + - ( - + MIN ( ALL + 88 ) )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT - COUNT( * ) + - - 18 + - 21 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT - COUNT ( * ) + - - 18 + - 21 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT 40 * + 33 + - COUNT( * ) AS col2
----
1319

skipif mysql # not compatible
query I rowsort label-7846
SELECT 40 * + 33 + - COUNT ( * ) AS col2
----
1319

query I rowsort
SELECT ALL - - 26 + - 94 + - + 28 + - 48 * - 17 * - 23 + - - 83 * + - 83 + 8 - 92 AS col0
----
-25837

query I rowsort
SELECT ALL 12 * 19 AS col2
----
228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7849
SELECT DISTINCT 17 + - 67 DIV + COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT 17 + - 67 / + COUNT ( * ) AS col0
----
-50

query I rowsort
SELECT ALL - 52 - + 69
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT - COUNT( * ) - 96 * COUNT( * ) * + 23 AS col2
----
-2209

skipif mysql # not compatible
query I rowsort label-7851
SELECT - COUNT ( * ) - 96 * COUNT ( * ) * + 23 AS col2
----
-2209

onlyif mysql # DIV for integer division: 
query II rowsort label-7852
SELECT - + 33 * + - 70, + 44 DIV + + 54 AS col0
----
2310
0

skipif mysql # not compatible
query II rowsort label-7852
SELECT - + 33 * + - 70, + 44 / + + 54 AS col0
----
2310
0

query I rowsort
SELECT ALL ( - - 91 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT - 30 + + - MAX( 88 ) + + - 15 + 22
----
-111

skipif mysql # not compatible
query I rowsort label-7854
SELECT - 30 + + - MAX ( 88 ) + + - 15 + 22
----
-111

query I rowsort
SELECT ALL - 94 * + 93
----
-8742

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT DISTINCT - ( - MAX( 13 ) ) * 32 AS col0
----
416

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT - ( - MAX ( 13 ) ) * 32 AS col0
----
416

onlyif mysql # DIV for integer division: 
query I rowsort label-7857
SELECT + 17 DIV - + 14
----
-1

skipif mysql # not compatible
query I rowsort label-7857
SELECT + 17 / - + 14
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7858
SELECT + 76 DIV - + 50 + - - 36
----
35

skipif mysql # not compatible
query I rowsort label-7858
SELECT + 76 / - + 50 + - - 36
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7859
SELECT ALL 94 DIV - 37 + + 11
----
9

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL 94 / - 37 + + 11
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7860
SELECT + MIN( - - 25 ) + 2 AS col1, - 89
----
27
-89

skipif mysql # not compatible
query II rowsort label-7860
SELECT + MIN ( - - 25 ) + 2 AS col1, - 89
----
27
-89

query I rowsort
SELECT - ( + 98 ) * + - 0 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7862
SELECT - COALESCE ( 29, COUNT( * ) DIV - + ( + COUNT( * ) ) - + ( - + 88 ) + + 3, - MAX( DISTINCT - - 53 ) ) * COUNT( * ) + + + 23 * + + 15 AS col2
----
316

skipif mysql # not compatible
query I rowsort label-7862
SELECT - COALESCE ( 29, COUNT ( * ) / - + ( + COUNT ( * ) ) - + ( - + 88 ) + + 3, - MAX ( DISTINCT - - 53 ) ) * COUNT ( * ) + + + 23 * + + 15 AS col2
----
316

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL 31 * - COALESCE ( COUNT( * ), - 89 ) + + 44 + + + 1
----
14

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL 31 * - COALESCE ( COUNT ( * ), - 89 ) + + 44 + + + 1
----
14

query I rowsort
SELECT + 10 + 52 * + - 75
----
-3890

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7865
SELECT ALL - 60 * - COUNT( * ) DIV 88 AS col0, - 16 AS col1
----
0
-16

skipif mysql # not compatible
query II rowsort label-7865
SELECT ALL - 60 * - COUNT ( * ) / 88 AS col0, - 16 AS col1
----
0
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7866
SELECT ALL + + CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL + + CAST ( - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT - - 44 * 91
----
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT + NULLIF ( + SUM( - 96 ), + - 75 + 98 * NULLIF ( + 13, 28 ) + - MIN( DISTINCT 0 ) ) + + + MAX( 47 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7868
SELECT + NULLIF ( + SUM ( - 96 ), + - 75 + 98 * NULLIF ( + 13, 28 ) + - MIN ( DISTINCT 0 ) ) + + + MAX ( 47 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT + 69 * + COUNT( * ) - - 62 + - - 63
----
194

skipif mysql # not compatible
query I rowsort label-7869
SELECT + 69 * + COUNT ( * ) - - 62 + - - 63
----
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7870
SELECT - COUNT( - 58 ) + 77 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT - COUNT ( - 58 ) + 77 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT + MIN( - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-7871
SELECT + MIN ( - 94 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7872
SELECT - COALESCE ( - 97, 32 ) * + + CAST( NULL AS SIGNED ) * + MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) + + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7872
SELECT - COALESCE ( - 97, 32 ) * + + CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + + 48 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7873
SELECT ALL + 23 DIV + ( + + CAST( - - 73 AS SIGNED ) ) * - 5 - 3 DIV - 31
----
0

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL + 23 / + ( + + CAST ( - - 73 AS INTEGER ) ) * - 5 - 3 / - 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL + + 36 * - + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL + + 36 * - + COUNT ( * )
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-7875
SELECT COALESCE ( 23, 1 ), 82 DIV 94 AS col0
----
23
0

skipif mysql # not compatible
query II rowsort label-7875
SELECT COALESCE ( 23, 1 ), 82 / 94 AS col0
----
23
0

query I rowsort
SELECT - 90 * - 95
----
8550

query I rowsort
SELECT - + 71 + - 64 - - 48
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT + - 60 * - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-7878
SELECT + - 60 * - COUNT ( * )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7879
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT NULLIF ( + 65, 55 )
----
65

query I rowsort
SELECT 77 * - + 63 AS col2
----
-4851

query I rowsort
SELECT ALL - 63 + + 74
----
11

query II rowsort
SELECT 29, 66 col1
----
29
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7884
SELECT - 85 AS col0, - 59 * + - NULLIF ( + ( - 98 ), - COALESCE ( + CAST( NULL AS SIGNED ), + 5 * - - 1, - - 88 * + + 35 ) + - + 92 ) * + 36 - 31 + + 8 col1
----
-85
-208175

skipif mysql # not compatible
query II rowsort label-7884
SELECT - 85 AS col0, - 59 * + - NULLIF ( + ( - 98 ), - COALESCE ( + CAST ( NULL AS INTEGER ), + 5 * - - 1, - - 88 * + + 35 ) + - + 92 ) * + 36 - 31 + + 8 col1
----
-85
-208175

query II rowsort
SELECT - 87 AS col1, 87 + + 29 col1
----
-87
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT 67 * + 30 * + CASE - 81 WHEN - ( 61 ) * - 79 THEN NULL WHEN + COUNT( * ) * - - COUNT( DISTINCT + 79 ) + 63 + 50 * - 95 * - - ( - 10 ) THEN - 34 WHEN 59 / + - 84 + - - COUNT( * ) - - 43 THEN + 98 ELSE NULL END * + SUM( - 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT 67 * + 30 * + CASE - 81 WHEN - ( 61 ) * - 79 THEN NULL WHEN + COUNT ( * ) * - - COUNT ( DISTINCT + 79 ) + 63 + 50 * - 95 * - - ( - 10 ) THEN - 34 WHEN 59 / + - 84 + - - COUNT ( * ) - - 43 THEN + 98 ELSE NULL END * + SUM ( - 93 )
----
NULL

query I rowsort
SELECT 3 * ( + 77 ) AS col1
----
231

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7888
SELECT 16, 95 DIV - + COUNT( * ) AS col2
----
16
-95

skipif mysql # not compatible
query II rowsort label-7888
SELECT 16, 95 / - + COUNT ( * ) AS col2
----
16
-95

query I rowsort
SELECT ALL + 0 + + - 40
----
-40

query I rowsort
SELECT ALL + 1 + - 14 + + 39 * + 59 AS col2
----
2288

query I rowsort
SELECT 93 * 91
----
8463

query II rowsort
SELECT DISTINCT - 31 col0, 31 * - ( + - 11 ) + + 41 AS col2
----
-31
382

onlyif mysql # aggregate syntax: 
query II rowsort label-7893
SELECT DISTINCT + 19 + + - 46 AS col0, NULLIF ( COUNT( * ), - + 15 ) * + + COALESCE ( - 49, - 94 )
----
-27
-49

skipif mysql # not compatible
query II rowsort label-7893
SELECT DISTINCT + 19 + + - 46 AS col0, NULLIF ( COUNT ( * ), - + 15 ) * + + COALESCE ( - 49, - 94 )
----
-27
-49

query II rowsort
SELECT ALL - 73 AS col1, - 54 AS col1
----
-73
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL + COUNT( * ) + - 3 - - 32
----
30

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL + COUNT ( * ) + - 3 - - 32
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7896
SELECT + COALESCE ( 35, - 99 / - 90 ) * 40 + - + 22 - + ( + CASE 62 WHEN 5 THEN NULL ELSE - 14 * - + 10 * + MAX( 93 ) / + 73 END ) * CAST( NULL AS SIGNED ) / ( - - 80 ) / + 14 - + - 82 + - COALESCE ( 24, - ( - 42 ) * + - MAX( + 50 ) * - 23 + - COALESCE ( 96, 15 * ( CAST( 26 AS SIGNED ) ) ) * + NULLIF ( 8, - 66 * COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT + COALESCE ( 35, - 99 / - 90 ) * 40 + - + 22 - + ( + CASE 62 WHEN 5 THEN NULL ELSE - 14 * - + 10 * + MAX ( 93 ) / + 73 END ) * CAST ( NULL AS INTEGER ) / ( - - 80 ) / + 14 - + - 82 + - COALESCE ( 24, - ( - 42 ) * + - MAX ( + 50 ) * - 23 + - COALESCE ( 96, 15 * ( CAST ( 26 AS INTEGER ) ) ) * + NULLIF ( 8, - 66 * COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT COUNT( * ) * - + 26 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-7897
SELECT COUNT ( * ) * - + 26 AS col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7898
SELECT COUNT( ALL - 36 ) DIV + + ( + + 20 ) + 0 + - - ( 31 ) * + + 82 * + - 21 AS col1, 71 * - 57 * 12 + 6 col2
----
-53382
-48558

skipif mysql # not compatible
query II rowsort label-7898
SELECT COUNT ( ALL - 36 ) / + + ( + + 20 ) + 0 + - - ( 31 ) * + + 82 * + - 21 AS col1, 71 * - 57 * 12 + 6 col2
----
-53382
-48558

query I rowsort
SELECT + + ( + - ( + 75 ) ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT - COUNT( + - 25 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT - COUNT ( + - 25 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7902
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT - 1 * + 24 + + + COUNT( * ) + - ( 32 ) + 75 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7903
SELECT - 1 * + 24 + + + COUNT ( * ) + - ( 32 ) + 75 AS col2
----
20

query II rowsort
SELECT ALL - - 8 AS col2, - 51
----
8
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7905
SELECT DISTINCT - + 30 * - - 37 + + CAST( COUNT( * ) AS SIGNED ) + + 3 AS col2
----
-1106

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT - + 30 * - - 37 + + CAST ( COUNT ( * ) AS INTEGER ) + + 3 AS col2
----
-1106

query I rowsort
SELECT ALL - - ( + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT 86 * + 11 - + MAX( ALL + 99 ) - - COUNT( * ) * 57 AS col0
----
904

skipif mysql # not compatible
query I rowsort label-7907
SELECT 86 * + 11 - + MAX ( ALL + 99 ) - - COUNT ( * ) * 57 AS col0
----
904

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT ALL 30 * + + NULLIF ( - 22, - + COUNT( * ) * + 32 ) AS col2
----
-660

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL 30 * + + NULLIF ( - 22, - + COUNT ( * ) * + 32 ) AS col2
----
-660

query I rowsort
SELECT - - 32 * - - 47 * + 53 + + - 22 * + 59
----
78414

query I rowsort
SELECT - + NULLIF ( - 44, 70 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT + COALESCE ( - + COUNT( * ), + 80, + + 2 * + + 76 * + COALESCE ( 84, 37, + 35 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7911
SELECT + COALESCE ( - + COUNT ( * ), + 80, + + 2 * + + 76 * + COALESCE ( 84, 37, + 35 ) )
----
-1

query I rowsort
SELECT 66 * CASE + 76 WHEN + + CASE - - 40 WHEN - 53 + - 24 THEN - 26 ELSE NULL END / + 68 / - - 57 + + 30 THEN - 86 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7913
SELECT DISTINCT CAST( - 68 AS SIGNED ) DIV - ( + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT CAST ( - 68 AS INTEGER ) / - ( + 75 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7914
SELECT DISTINCT 36 * SUM( DISTINCT - 63 ) AS col1, 46
----
-2268
46

skipif mysql # not compatible
query II rowsort label-7914
SELECT DISTINCT 36 * SUM ( DISTINCT - 63 ) AS col1, 46
----
-2268
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT ALL 6 + 64 * + 16 + + COALESCE ( - 50, + + 52, + COUNT( * ) * - 60 + - 88 * + + 12, - 79 ) + + - 50
----
930

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL 6 + 64 * + 16 + + COALESCE ( - 50, + + 52, + COUNT ( * ) * - 60 + - 88 * + + 12, - 79 ) + + - 50
----
930

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7916
SELECT ( + CAST( - + 78 AS SIGNED ) ) DIV + - 11
----
7

skipif mysql # not compatible
query I rowsort label-7916
SELECT ( + CAST ( - + 78 AS INTEGER ) ) / + - 11
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7917
SELECT CAST( + + 85 AS SIGNED ) - + 23
----
62

skipif mysql # not compatible
query I rowsort label-7917
SELECT CAST ( + + 85 AS INTEGER ) - + 23
----
62

query I rowsort
SELECT ALL 76 * + - CASE AVG ( + 15 ) WHEN 38 THEN NULL WHEN + - 1 THEN + 55 END / - - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT ( + - NULLIF ( 43, - NULLIF ( COUNT( * ), + 8 + ( 84 ) ) * 77 * - - 32 ) ) + - 83 AS col2
----
-126

skipif mysql # not compatible
query I rowsort label-7919
SELECT ( + - NULLIF ( 43, - NULLIF ( COUNT ( * ), + 8 + ( 84 ) ) * 77 * - - 32 ) ) + - 83 AS col2
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-7920
SELECT 3 DIV 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7920
SELECT 3 / 66 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7921
SELECT ALL - 32 + + 50 DIV + - 43 + + - COUNT( * ) - - 75 + - + 70 + + 49 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL - 32 + + 50 / + - 43 + + - COUNT ( * ) - - 75 + - + 70 + + 49 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT ALL 40 * - MAX( DISTINCT - CASE - 44 WHEN 53 THEN - ( - 19 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL 40 * - MAX ( DISTINCT - CASE - 44 WHEN 53 THEN - ( - 19 ) END )
----
NULL

query I rowsort
SELECT 93 + 94 AS col0
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT 2 + + SUM( + 63 ) * + + 20
----
1262

skipif mysql # not compatible
query I rowsort label-7924
SELECT 2 + + SUM ( + 63 ) * + + 20
----
1262

query I rowsort
SELECT ALL 93 + + + 52 + + + 79 AS col0
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-7926
SELECT 6 DIV - 52 + + 79 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7926
SELECT 6 / - 52 + + 79 AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7927
SELECT ALL NULLIF ( - CAST( - NULLIF ( 39, - ( - CAST( NULL AS DECIMAL ) ) ) AS SIGNED ), - + COUNT( * ) ) * + + 41 + + 44 + + NULLIF ( + 16, - + 35 / 54 * 69 ) AS col1
----
1659

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL NULLIF ( - CAST ( - NULLIF ( 39, - ( - CAST ( NULL AS REAL ) ) ) AS INTEGER ), - + COUNT ( * ) ) * + + 41 + + 44 + + NULLIF ( + 16, - + 35 / 54 * 69 ) AS col1
----
1659

query I rowsort
SELECT 28 + - 27 col1
----
1

query I rowsort
SELECT + 53 * - 20 + + 38 AS col0
----
-1022

onlyif mysql # DIV for integer division: 
query I rowsort label-7930
SELECT DISTINCT 60 DIV + + 10
----
6

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT 60 / + + 10
----
6

query I rowsort
SELECT DISTINCT - NULLIF ( - 41, + 6 + - 65 ) - 98 + - 48 * + 20 * - 20 * - 42 * + ( - + 73 ) AS col1
----
58867143

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL + + COALESCE ( + COUNT( * ), - 78 ) * 25 col0
----
25

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL + + COALESCE ( + COUNT ( * ), - 78 ) * 25 col0
----
25

query I rowsort
SELECT DISTINCT - ( 85 )
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7934
SELECT ( - COUNT( * ) ) AS col2, 59 * + ( - 59 ) AS col2, CASE 85 WHEN + NULLIF ( + COUNT( * ), - 80 * + + 32 + 13 ) + 19 * + 13 * + COUNT( * ) THEN + 97 * - 63 DIV + 45 + - 53 + 0 WHEN - 54 + - 81 THEN CASE - + 17 WHEN 81 DIV - 90 * 56 * + 51 THEN NULL WHEN - ( - NULLIF ( + 61, + 99 + 29 * 46 ) ) THEN NULL ELSE - 44 END ELSE - 7 END DIV + 25
----
-1
-3481
0

skipif mysql # not compatible
query III rowsort label-7934
SELECT ( - COUNT ( * ) ) AS col2, 59 * + ( - 59 ) AS col2, CASE 85 WHEN + NULLIF ( + COUNT ( * ), - 80 * + + 32 + 13 ) + 19 * + 13 * + COUNT ( * ) THEN + 97 * - 63 / + 45 + - 53 + 0 WHEN - 54 + - 81 THEN CASE - + 17 WHEN 81 / - 90 * 56 * + 51 THEN NULL WHEN - ( - NULLIF ( + 61, + 99 + 29 * 46 ) ) THEN NULL ELSE - 44 END ELSE - 7 END / + 25
----
-1
-3481
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) * - ( 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) * - ( 11 ) AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7936
SELECT - CAST( NULL AS SIGNED ) * + + COUNT( * ) + + + 2 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7936
SELECT - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + + + 2 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT CASE + + COUNT( * ) WHEN - 81 + + + 93 * 78 + + 83 THEN NULL WHEN - - 10 THEN 49 ELSE + + 21 END
----
21

skipif mysql # not compatible
query I rowsort label-7937
SELECT CASE + + COUNT ( * ) WHEN - 81 + + + 93 * 78 + + 83 THEN NULL WHEN - - 10 THEN 49 ELSE + + 21 END
----
21

query I rowsort
SELECT - 35 * 70 - + 32
----
-2482

query I rowsort
SELECT - 81 * + 94 AS col1
----
-7614

query I rowsort
SELECT 93 + + 47 * 34 AS col0
----
1691

query I rowsort
SELECT 80 * 58 + - 72
----
4568

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT COUNT( * ) + 13 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7942
SELECT COUNT ( * ) + 13 AS col1
----
14

query I rowsort
SELECT DISTINCT - + NULLIF ( + NULLIF ( 69, - COALESCE ( - 43, 63 ) + 61 ), - + 11 )
----
-69

query I rowsort
SELECT DISTINCT + 21 + + - 97 AS col1
----
-76

query I rowsort
SELECT DISTINCT ( + 19 ) AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7946
SELECT ALL COUNT( DISTINCT 98 ) * - + COUNT( - 63 ) * - CAST( - - 33 AS SIGNED ) DIV + ( + + 25 ) - + 28 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL COUNT ( DISTINCT 98 ) * - + COUNT ( - 63 ) * - CAST ( - - 33 AS INTEGER ) / + ( + + 25 ) - + 28 AS col2
----
-27

query I rowsort
SELECT + 61 + 11 + + ( COALESCE ( 95, - - 87 ) ) * 53 AS col2
----
5107

query I rowsort
SELECT ALL + - 60 + - - 3
----
-57

query I rowsort
SELECT DISTINCT NULLIF ( - 54, + 17 )
----
-54

query II rowsort
SELECT - 17, - 92 AS col0
----
-17
-92

query II rowsort
SELECT - 20, - 94 col2
----
-20
-94

query I rowsort
SELECT + 95 + + - ( 45 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT - COUNT( DISTINCT + 12 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7953
SELECT - COUNT ( DISTINCT + 12 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT + ( - - COUNT( ALL 27 ) ) + + - 9 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7954
SELECT + ( - - COUNT ( ALL 27 ) ) + + - 9 AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7955
SELECT DISTINCT 94 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT 94 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 54, 45 * + 99 + + 6 * + 80 AS col0
----
54
4935

onlyif mysql # aggregate syntax: 
query II rowsort label-7957
SELECT DISTINCT NULLIF ( 56, - ( + 25 ) ) AS col2, + COUNT( * )
----
56
1

skipif mysql # not compatible
query II rowsort label-7957
SELECT DISTINCT NULLIF ( 56, - ( + 25 ) ) AS col2, + COUNT ( * )
----
56
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7958
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 47
----
NULL

query I rowsort
SELECT DISTINCT 58 + + 56
----
114

query I rowsort
SELECT ALL ( 57 ) * + 66 col2
----
3762

query I rowsort
SELECT + 5 * 40 AS col0
----
200

query I rowsort
SELECT - CASE 84 WHEN + 26 + + + 20 THEN NULL WHEN + 80 THEN + 95 WHEN 71 THEN - ( 67 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7963
SELECT + CASE + 5 WHEN 78 THEN SUM( ALL + - 18 ) WHEN - CASE - + MIN( - 6 ) WHEN - - 46 - COALESCE ( + 11, + COALESCE ( 60, + + MAX( ALL + ( + 86 ) ) ) ) + 90 + - MIN( ALL - 34 ) - - COALESCE ( - + 9, + 74 ) + + 51 / + MIN( ALL - 5 ) * CAST( NULL AS SIGNED ) / 89 / - - CASE COUNT( * ) WHEN + 59 THEN NULL WHEN + 33 * - 60 THEN NULL ELSE - 93 * - 50 END THEN 92 * 89 END + + 27 / - 92 THEN NULL END - 58 * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7963
SELECT + CASE + 5 WHEN 78 THEN SUM ( ALL + - 18 ) WHEN - CASE - + MIN ( - 6 ) WHEN - - 46 - COALESCE ( + 11, + COALESCE ( 60, + + MAX ( ALL + ( + 86 ) ) ) ) + 90 + - MIN ( ALL - 34 ) - - COALESCE ( - + 9, + 74 ) + + 51 / + MIN ( ALL - 5 ) * CAST ( NULL AS INTEGER ) / 89 / - - CASE COUNT ( * ) WHEN + 59 THEN NULL WHEN + 33 * - 60 THEN NULL ELSE - 93 * - 50 END THEN 92 * 89 END + + 27 / - 92 THEN NULL END - 58 * - 84
----
NULL

query I rowsort
SELECT + 69 * ( - 85 )
----
-5865

query I rowsort
SELECT DISTINCT 92 - + 64 * - - 80 * 7 - 76 AS col2
----
-35824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7966
SELECT ALL COALESCE ( 95, + 76 DIV - ( + 41 ) * + 49 + + + CAST( - + CASE - COALESCE ( - 79, - - 22 * - 90 + - + CAST( NULL AS SIGNED ) ) WHEN 74 THEN NULL WHEN + 38 - - - 81 * - 96 THEN - + COALESCE ( + 34, + + 82 ) + - 48 + + + 42 + 65 * - + MAX( ALL + - 13 ) * - 7 WHEN - 42 THEN + 35 * 73 END AS SIGNED ) ) * CAST( + 45 * + SUM( + 73 * - 47 ) AS SIGNED )
----
-14667525

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL COALESCE ( 95, + 76 / - ( + 41 ) * + 49 + + + CAST ( - + CASE - COALESCE ( - 79, - - 22 * - 90 + - + CAST ( NULL AS INTEGER ) ) WHEN 74 THEN NULL WHEN + 38 - - - 81 * - 96 THEN - + COALESCE ( + 34, + + 82 ) + - 48 + + + 42 + 65 * - + MAX ( ALL + - 13 ) * - 7 WHEN - 42 THEN + 35 * 73 END AS INTEGER ) ) * CAST ( + 45 * + SUM ( + 73 * - 47 ) AS INTEGER )
----
-14667525

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7967
SELECT ALL + - 63 AS col0, - SUM( DISTINCT + + 77 ) DIV + + 40 + - 82 AS col1
----
-63
-83

skipif mysql # not compatible
query II rowsort label-7967
SELECT ALL + - 63 AS col0, - SUM ( DISTINCT + + 77 ) / + + 40 + - 82 AS col1
----
-63
-83

query I rowsort
SELECT DISTINCT 67 * + 21 * + 87
----
122409

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT DISTINCT + + SUM( ALL + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT + + SUM ( ALL + 48 )
----
48

query I rowsort
SELECT - + 99 * + - 46 AS col0
----
4554

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT - COUNT( * ) * - COUNT( * ) + + 38
----
39

skipif mysql # not compatible
query I rowsort label-7971
SELECT - COUNT ( * ) * - COUNT ( * ) + + 38
----
39

query I rowsort
SELECT ALL + - 12 * + 96
----
-1152

query II rowsort
SELECT + 82 * 33 * + - CASE 69 WHEN + + 27 THEN + 4 END AS col1, 38 AS col2
----
NULL
38

query II rowsort
SELECT + + 3 AS col1, + ( - 8 )
----
3
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT - COUNT( * ) * + 87 + - - 58 + - 40 * + + 38
----
-1549

skipif mysql # not compatible
query I rowsort label-7975
SELECT - COUNT ( * ) * + 87 + - - 58 + - 40 * + + 38
----
-1549

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7976
SELECT ALL 79 * - 31 + - - COALESCE ( - 74, 37 DIV + 67 ) * + + 20 * - 86 AS col0, 99 DIV + CAST( NULL AS SIGNED ) + + 24 AS col2
----
124831
NULL

skipif mysql # not compatible
query II rowsort label-7976
SELECT ALL 79 * - 31 + - - COALESCE ( - 74, 37 / + 67 ) * + + 20 * - 86 AS col0, 99 / + CAST ( NULL AS INTEGER ) + + 24 AS col2
----
124831
NULL

query I rowsort
SELECT - - 72 * ( 47 ) AS col0
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT DISTINCT + + 97 * - - 87 + - ( - COALESCE ( - 26, - - SUM( + 74 ) * - 87 ) )
----
8413

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT + + 97 * - - 87 + - ( - COALESCE ( - 26, - - SUM ( + 74 ) * - 87 ) )
----
8413

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT ALL - 2 * - ( + NULLIF ( 30, - + 23 ) ) + MAX( + + 43 ) * 50
----
2210

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL - 2 * - ( + NULLIF ( 30, - + 23 ) ) + MAX ( + + 43 ) * 50
----
2210

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7980
SELECT - - COUNT( * ) DIV 67 DIV + + COUNT( * ) AS col1, - 75 AS col2
----
0
-75

skipif mysql # not compatible
query II rowsort label-7980
SELECT - - COUNT ( * ) / 67 / + + COUNT ( * ) AS col1, - 75 AS col2
----
0
-75

query I rowsort
SELECT ALL 20 * - + 39 * 13 + 68
----
-10072

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT SUM( DISTINCT + 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-7982
SELECT SUM ( DISTINCT + 19 ) AS col2
----
19

query I rowsort
SELECT - 98 + 80
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-7984
SELECT DISTINCT + NULLIF ( + MAX( ALL - - 69 ), - CASE + - COALESCE ( COUNT( 15 ), MIN( 57 ), + + 66 ) WHEN - - 24 THEN NULL WHEN + 33 THEN - 15 / 67 ELSE NULL END ), COALESCE ( 97, - 75 * + - COUNT( * ) ) AS col1
----
69
97

skipif mysql # not compatible
query II rowsort label-7984
SELECT DISTINCT + NULLIF ( + MAX ( ALL - - 69 ), - CASE + - COALESCE ( COUNT ( 15 ), MIN ( 57 ), + + 66 ) WHEN - - 24 THEN NULL WHEN + 33 THEN - 15 / 67 ELSE NULL END ), COALESCE ( 97, - 75 * + - COUNT ( * ) ) AS col1
----
69
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7985
SELECT ALL - 4 DIV 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL - 4 / 70 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7986
SELECT - 65 DIV - 38
----
1

skipif mysql # not compatible
query I rowsort label-7986
SELECT - 65 / - 38
----
1

query II rowsort
SELECT ALL 47 * 61 + - 76 + - 59 col2, + 30 col0
----
2732
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7988
SELECT ALL - 5 DIV + 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL - 5 / + 17 AS col2
----
0

query I rowsort
SELECT - 35 - + + 30 + + - 78
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT - MAX( 28 ) + - 4 + 27 * - 37 + + 55
----
-976

skipif mysql # not compatible
query I rowsort label-7990
SELECT - MAX ( 28 ) + - 4 + 27 * - 37 + + 55
----
-976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7991
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7991
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT + 81 - - 15 + - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-7992
SELECT + 81 - - 15 + - COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT ALL + CASE - + 47 WHEN - + 21 THEN COUNT( * ) + - COUNT( * ) WHEN + CASE - - 32 WHEN + ( + 45 ) * 3 THEN - MIN( DISTINCT 43 ) END * + 12 THEN NULL ELSE 15 + - 11 END * + - ( COALESCE ( + - SUM( DISTINCT + ( + + 71 ) ), - 42 ) )
----
284

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL + CASE - + 47 WHEN - + 21 THEN COUNT ( * ) + - COUNT ( * ) WHEN + CASE - - 32 WHEN + ( + 45 ) * 3 THEN - MIN ( DISTINCT 43 ) END * + 12 THEN NULL ELSE 15 + - 11 END * + - ( COALESCE ( + - SUM ( DISTINCT + ( + + 71 ) ), - 42 ) )
----
284

query I rowsort
SELECT + 21 + - ( 27 ) * 98 * + + 1 col2
----
-2625

onlyif mysql # DIV for integer division: 
query I rowsort label-7995
SELECT + - 45 + 3 DIV + - 46 * + - 49 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7995
SELECT + - 45 + 3 / + - 46 * + - 49 AS col0
----
-45

query I rowsort
SELECT + 0 * 77 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7997
SELECT + + 70 + - 30 / + CASE - - COUNT( * ) WHEN + + 72 THEN NULL WHEN - 90 + - ( 48 ) THEN + + 21 WHEN 59 THEN - CAST( NULL AS DECIMAL ) - + AVG ( - - 19 ) + - 73 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT + + 70 + - 30 / + CASE - - COUNT ( * ) WHEN + + 72 THEN NULL WHEN - 90 + - ( 48 ) THEN + + 21 WHEN 59 THEN - CAST ( NULL AS REAL ) - + AVG ( - - 19 ) + - 73 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT DISTINCT + 6 DIV - 18 - - 47 + + 5 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT + 6 / - 18 - - 47 + + 5 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL SUM( DISTINCT 27 ) * + COUNT( ALL - 80 )
----
27

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL SUM ( DISTINCT 27 ) * + COUNT ( ALL - 80 )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT + 66 DIV + 16 - - 52 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-8000
SELECT + 66 / + 16 - - 52 AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8001
SELECT DISTINCT + 57 * + CAST( NULL AS SIGNED ) + - CASE - - COALESCE ( + - 60, + - 3 + + + 17 / - CAST( NULL AS SIGNED ) ) WHEN + - 21 + 64 THEN + + CASE + - 26 WHEN 29 * - + NULLIF ( - + 14, - 62 + 86 / - + 83 ) - 90 + + 45 + + 8 + 55 + 88 - - 43 + + 60 * 93 * + 79 * + - 63 THEN NULL ELSE - 77 END - - ( 5 + - 11 * - 38 ) WHEN - ( 82 ) - 62 THEN + 71 + CASE + COUNT( * ) WHEN - 62 THEN NULL ELSE 49 END * + CAST( NULL AS SIGNED ) WHEN 68 THEN NULL ELSE COUNT( * ) END * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT + 57 * + CAST ( NULL AS INTEGER ) + - CASE - - COALESCE ( + - 60, + - 3 + + + 17 / - CAST ( NULL AS INTEGER ) ) WHEN + - 21 + 64 THEN + + CASE + - 26 WHEN 29 * - + NULLIF ( - + 14, - 62 + 86 / - + 83 ) - 90 + + 45 + + 8 + 55 + 88 - - 43 + + 60 * 93 * + 79 * + - 63 THEN NULL ELSE - 77 END - - ( 5 + - 11 * - 38 ) WHEN - ( 82 ) - 62 THEN + 71 + CASE + COUNT ( * ) WHEN - 62 THEN NULL ELSE 49 END * + CAST ( NULL AS INTEGER ) WHEN 68 THEN NULL ELSE COUNT ( * ) END * + 13
----
NULL

query I rowsort
SELECT DISTINCT 59 * - - 20
----
1180

onlyif mysql # DIV for integer division: 
query I rowsort label-8003
SELECT DISTINCT + + 20 DIV ( 62 ) + - 63
----
-63

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT + + 20 / ( 62 ) + - 63
----
-63

query I rowsort
SELECT ALL - ( - 99 ) col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8005
SELECT DISTINCT - - ( - - 5 ) + + 47 + + CASE + - 89 WHEN - + MIN( ALL + + CAST( NULL AS SIGNED ) ) - 9 THEN - COUNT( * ) / + CASE + COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + 96 END END + - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT - - ( - - 5 ) + + 47 + + CASE + - 89 WHEN - + MIN ( ALL + + CAST ( NULL AS INTEGER ) ) - 9 THEN - COUNT ( * ) / + CASE + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + 96 END END + - 46 AS col2
----
NULL

query I rowsort
SELECT ALL - 88 + - + 61 AS col1
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT DISTINCT + 63 + COUNT( DISTINCT - ( - 79 ) )
----
64

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT + 63 + COUNT ( DISTINCT - ( - 79 ) )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8008
SELECT DISTINCT 65 DIV 12 * 92 * - 62
----
-28520

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT 65 / 12 * 92 * - 62
----
-28520

query I rowsort
SELECT 86 * - - 27 AS col0
----
2322

query I rowsort
SELECT 37 * + - 12 + + 45 * + 57 col1
----
2121

query I rowsort
SELECT ALL 17 - 82
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8012
SELECT DISTINCT - 83 - + ( 73 ) + - 20 DIV + 84 * + COUNT( * ) * + + 84
----
-156

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT - 83 - + ( 73 ) + - 20 / + 84 * + COUNT ( * ) * + + 84
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8013
SELECT 18 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8013
SELECT 18 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL + COUNT( * ) - 57 * - - MIN( 96 ) AS col0
----
-5471

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL + COUNT ( * ) - 57 * - - MIN ( 96 ) AS col0
----
-5471

query I rowsort
SELECT 2 * 31 AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8016
SELECT 8 DIV MIN( + 30 ) * NULLIF ( - + ( + 65 ), CAST( + 40 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8016
SELECT 8 / MIN ( + 30 ) * NULLIF ( - + ( + 65 ), CAST ( + 40 AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT ALL + 65 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL + 65 / + 74
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8018
SELECT DISTINCT + MAX( 36 ) / + 36 + - CASE 90 WHEN ( 85 ) THEN + - 89 / 40 * - 9 - 61 + - ( + 95 ) + + - 59 * + 8 * + - COALESCE ( + + CASE - COUNT( * ) WHEN 13 THEN 20 ELSE NULL END, ( + + 31 ), CASE - 16 WHEN + CAST( NULL AS DECIMAL ) + + - 72 THEN + + COUNT( * ) + - + 27 / + + 5 WHEN 99 * - 36 THEN + 78 WHEN + 0 THEN NULL ELSE NULL END ) + 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT + MAX ( 36 ) / + 36 + - CASE 90 WHEN ( 85 ) THEN + - 89 / 40 * - 9 - 61 + - ( + 95 ) + + - 59 * + 8 * + - COALESCE ( + + CASE - COUNT ( * ) WHEN 13 THEN 20 ELSE NULL END, ( + + 31 ), CASE - 16 WHEN + CAST ( NULL AS REAL ) + + - 72 THEN + + COUNT ( * ) + - + 27 / + + 5 WHEN 99 * - 36 THEN + 78 WHEN + 0 THEN NULL ELSE NULL END ) + 42 END
----
NULL

query II rowsort
SELECT - 60, - 61 + + ( 44 ) AS col2
----
-60
-17

query I rowsort
SELECT 30 * + - 44 * - 85 AS col2
----
112200

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT 17 - - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-8021
SELECT 17 - - COUNT ( * )
----
18

query II rowsort
SELECT 9 * - ( 94 ), + 35 col1
----
-846
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL - COUNT( + 72 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL - COUNT ( + 72 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT ALL - 53 + - 69 + 61 * + - 18 * - 61 * - - COUNT( * ) AS col2
----
66856

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL - 53 + - 69 + 61 * + - 18 * - 61 * - - COUNT ( * ) AS col2
----
66856

query II rowsort
SELECT 84, 51 AS col0
----
84
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8026
SELECT - ( - 30 ) DIV - 60 - ( + 44 ) - + + 51 * - 95 + - + COUNT( * ) AS col1
----
4800

skipif mysql # not compatible
query I rowsort label-8026
SELECT - ( - 30 ) / - 60 - ( + 44 ) - + + 51 * - 95 + - + COUNT ( * ) AS col1
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT DISTINCT - 50 + - MAX( + 0 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT - 50 + - MAX ( + 0 ) AS col0
----
-50

query I rowsort
SELECT ALL + 92 + + 35 * + 36 + + - 91
----
1261

onlyif mysql # DIV for integer division: 
query I rowsort label-8029
SELECT 25 DIV + 3 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8029
SELECT 25 / + 3 AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8030
SELECT - 58 * + 35 + 2 DIV 22 AS col0
----
-2030

skipif mysql # not compatible
query I rowsort label-8030
SELECT - 58 * + 35 + 2 / 22 AS col0
----
-2030

onlyif mysql # DIV for integer division: 
query I rowsort label-8031
SELECT + 67 DIV - 90 col0
----
0

skipif mysql # not compatible
query I rowsort label-8031
SELECT + 67 / - 90 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8032
SELECT COUNT( * ) DIV + 56 + + + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8032
SELECT COUNT ( * ) / + 56 + + + 57 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8033
SELECT + - CASE - - 73 WHEN - 23 THEN NULL WHEN + AVG ( + ( + ( + 59 ) ) ) THEN + + 20 * CAST( NULL AS SIGNED ) + 7 WHEN SUM( ALL - 82 ) * - 87 + 53 + + CAST( 2 AS SIGNED ) THEN + 19 * + - 57 * + 62 + 22 * - + CASE 1 WHEN - CAST( - 2 AS SIGNED ) THEN - + 96 * + ( + - 85 ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8033
SELECT + - CASE - - 73 WHEN - 23 THEN NULL WHEN + AVG ( + ( + ( + 59 ) ) ) THEN + + 20 * CAST ( NULL AS INTEGER ) + 7 WHEN SUM ( ALL - 82 ) * - 87 + 53 + + CAST ( 2 AS INTEGER ) THEN + 19 * + - 57 * + 62 + 22 * - + CASE 1 WHEN - CAST ( - 2 AS INTEGER ) THEN - + 96 * + ( + - 85 ) END ELSE NULL END
----
NULL

query I rowsort
SELECT + 50 + + ( + 55 )
----
105

query I rowsort
SELECT DISTINCT + 9 - 42 AS col1
----
-33

query I rowsort
SELECT ALL - 51 * + 95 AS col0
----
-4845

query I rowsort
SELECT ALL 12 - - - 16 AS col1
----
-4

query I rowsort
SELECT ALL 24 * + 70 AS col0
----
1680

query I rowsort
SELECT DISTINCT 83 * + 71 AS col0
----
5893

onlyif mysql # aggregate syntax: 
query III rowsort label-8040
SELECT + 72 AS col0, 38 col1, + - COUNT( * ) col0
----
72
38
-1

skipif mysql # not compatible
query III rowsort label-8040
SELECT + 72 AS col0, 38 col1, + - COUNT ( * ) col0
----
72
38
-1

query II rowsort
SELECT ALL - 28, - ( - 14 ) - - + 67 * + 37 col1
----
-28
2493

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT 73 - - ( + - 72 ) - 58 - + + 45 DIV - 15 + - 90
----
-144

skipif mysql # not compatible
query I rowsort label-8042
SELECT 73 - - ( + - 72 ) - 58 - + + 45 / - 15 + - 90
----
-144

query I rowsort
SELECT CASE + 91 WHEN 38 / - + 8 * 26 + 38 THEN - - 36 / - - 44 + - 0 ELSE NULL END + - 15 + + 91 * - 44 + + 9 AS col2
----
NULL

query II rowsort
SELECT + 83, 67 + 52 + - 85 AS col2
----
83
34

query II rowsort
SELECT 21 * + 43, + 69 AS col1
----
903
69

query II rowsort
SELECT ALL 90 AS col1, 2
----
90
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8047
SELECT - COUNT( * ) * - 99 * - 82 - - CAST( + MIN( ALL + + 77 ) AS SIGNED ) * - 77 * + + CAST( - - 68 AS SIGNED ) + 62 AS col0
----
-411228

skipif mysql # not compatible
query I rowsort label-8047
SELECT - COUNT ( * ) * - 99 * - 82 - - CAST ( + MIN ( ALL + + 77 ) AS INTEGER ) * - 77 * + + CAST ( - - 68 AS INTEGER ) + 62 AS col0
----
-411228

onlyif mysql # DIV for integer division: 
query I rowsort label-8048
SELECT ALL 10 DIV + 30 col0
----
0

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL 10 / + 30 col0
----
0

query I rowsort
SELECT ALL 28 * - - 49 col2
----
1372

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT 27 + + - COUNT( * ) * - + 88 - - + 96 AS col2
----
211

skipif mysql # not compatible
query I rowsort label-8050
SELECT 27 + + - COUNT ( * ) * - + 88 - - + 96 AS col2
----
211

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8051
SELECT DISTINCT MIN( - 9 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT MIN ( - 9 ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL - NULLIF ( + SUM( + - 70 ), + - 39 ) + - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL - NULLIF ( + SUM ( + - 70 ), + - 39 ) + - - COUNT ( * )
----
71

query I rowsort
SELECT 32 + + 14 + - 82 - - - 35 + - 35 * + - 6 * - - 45
----
9379

query I rowsort
SELECT + ( 21 ) + ( + 0 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8055
SELECT CAST( NULL AS SIGNED ) - + + 45 + - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT CAST ( NULL AS INTEGER ) - + + 45 + - - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - 87 + + 84
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8057
SELECT - 70 AS col0, - 45 * + 99 + - + MIN( ALL + 15 ) AS col0
----
-70
-4470

skipif mysql # not compatible
query II rowsort label-8057
SELECT - 70 AS col0, - 45 * + 99 + - + MIN ( ALL + 15 ) AS col0
----
-70
-4470

query I rowsort
SELECT ALL + 13 + + ( + NULLIF ( + - 45, - 87 ) ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT DISTINCT - 54 + + 20 * + + COUNT( 62 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT - 54 + + 20 * + + COUNT ( 62 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-8060
SELECT ALL - - 43 + - - 12 + + 65 * + + COUNT( * ) AS col0, 88
----
120
88

skipif mysql # not compatible
query II rowsort label-8060
SELECT ALL - - 43 + - - 12 + + 65 * + + COUNT ( * ) AS col0, 88
----
120
88

query I rowsort
SELECT ALL - + ( - - ( - 47 ) ) * 1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8062
SELECT - + 66 * - 38 DIV COALESCE ( + COUNT( * ), 60 DIV + 74 + - + 5, - - 23 + + - 73 * 79 + - 64 + 65 DIV ( - + 31 ) )
----
2508

skipif mysql # not compatible
query I rowsort label-8062
SELECT - + 66 * - 38 / COALESCE ( + COUNT ( * ), 60 / + 74 + - + 5, - - 23 + + - 73 * 79 + - 64 + 65 / ( - + 31 ) )
----
2508

query I rowsort
SELECT - - 61 * + ( + 86 ) AS col2
----
5246

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT DISTINCT 1 * SUM( ( + + 55 ) ) - - + 82 AS col0
----
137

skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT 1 * SUM ( ( + + 55 ) ) - - + 82 AS col0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT ALL + COUNT( * ) * + 7 * - - 52 * + - 21 AS col1
----
-7644

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL + COUNT ( * ) * + 7 * - - 52 * + - 21 AS col1
----
-7644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8066
SELECT - 91 * CASE 98 WHEN + + NULLIF ( + - 27, + 88 / - + 56 + - 56 - + 71 + 91 / + + 95 ) / ( 43 ) * - CAST( NULL AS SIGNED ) * + + 94 + + 39 - + + CAST( NULL AS SIGNED ) * + 42 / - 7 THEN COUNT( * ) ELSE + CASE + SUM( - - CAST( NULL AS SIGNED ) ) WHEN + 1 + 19 * - - CAST( 17 AS SIGNED ) * + + 1 + - 45 THEN - 36 ELSE NULL END END / 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT - 91 * CASE 98 WHEN + + NULLIF ( + - 27, + 88 / - + 56 + - 56 - + 71 + 91 / + + 95 ) / ( 43 ) * - CAST ( NULL AS INTEGER ) * + + 94 + + 39 - + + CAST ( NULL AS INTEGER ) * + 42 / - 7 THEN COUNT ( * ) ELSE + CASE + SUM ( - - CAST ( NULL AS INTEGER ) ) WHEN + 1 + 19 * - - CAST ( 17 AS INTEGER ) * + + 1 + - 45 THEN - 36 ELSE NULL END END / 8 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8067
SELECT DISTINCT NULLIF ( - + 29, COALESCE ( 21, - - COUNT( * ) + - + 76 ) * + 90 ) * - - COUNT( ALL 86 ) * - SUM( DISTINCT CAST( + 97 AS SIGNED ) ) - 57 * - 49
----
5606

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT NULLIF ( - + 29, COALESCE ( 21, - - COUNT ( * ) + - + 76 ) * + 90 ) * - - COUNT ( ALL 86 ) * - SUM ( DISTINCT CAST ( + 97 AS INTEGER ) ) - 57 * - 49
----
5606

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8068
SELECT ALL + SUM( ALL - + 89 ) DIV - + 20, MIN( 10 ) AS col1
----
4
10

skipif mysql # not compatible
query II rowsort label-8068
SELECT ALL + SUM ( ALL - + 89 ) / - + 20, MIN ( 10 ) AS col1
----
4
10

query I rowsort
SELECT + 84 * + 71 + - 80 AS col1
----
5884

query II rowsort
SELECT 37 * 97 - - 44 AS col0, ( + + 27 ) AS col2
----
3633
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8071
SELECT + 41 DIV + + ( 73 ) * 53 * - + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8071
SELECT + 41 / + + ( 73 ) * 53 * - + 88 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8072
SELECT + 5 DIV - - 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8072
SELECT + 5 / - - 19 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8073
SELECT ALL - 7 * ( + + 72 ) + + COUNT( * ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL - 7 * ( + + 72 ) + + COUNT ( * ) + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 46 * 10 + - 51 * - 95 + - - 14
----
4399

query I rowsort
SELECT ALL + 38 * - - 83
----
3154

query I rowsort
SELECT ALL 87 * - + 35
----
-3045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8077
SELECT + 99 + - COALESCE ( + ( 17 ), 60, - 33 * COUNT( DISTINCT - 79 ) * - SUM( - + 18 ) * + - 70 + + NULLIF ( - CAST( NULL AS SIGNED ), - - 44 ) + - COUNT( * ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8077
SELECT + 99 + - COALESCE ( + ( 17 ), 60, - 33 * COUNT ( DISTINCT - 79 ) * - SUM ( - + 18 ) * + - 70 + + NULLIF ( - CAST ( NULL AS INTEGER ), - - 44 ) + - COUNT ( * ) ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8078
SELECT - ( - COUNT( * ) ) col1, ( - 92 ) * 46 AS col2
----
1
-4232

skipif mysql # not compatible
query II rowsort label-8078
SELECT - ( - COUNT ( * ) ) col1, ( - 92 ) * 46 AS col2
----
1
-4232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8079
SELECT ALL CASE - ( - 73 ) WHEN + + 43 THEN NULL WHEN - ( - 28 ) THEN 47 * + 69 / - + CAST( NULL AS SIGNED ) ELSE NULL END + + 27 + + + COUNT( * ) + + - SUM( DISTINCT - - 69 ) + + CASE - + 72 WHEN + 58 THEN + + 52 ELSE NULL END + - 16 / + 92 / + 4 - - 14 * 45 * COALESCE ( COUNT( * ), + 51 * 13 ) / + 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL CASE - ( - 73 ) WHEN + + 43 THEN NULL WHEN - ( - 28 ) THEN 47 * + 69 / - + CAST ( NULL AS INTEGER ) ELSE NULL END + + 27 + + + COUNT ( * ) + + - SUM ( DISTINCT - - 69 ) + + CASE - + 72 WHEN + 58 THEN + + 52 ELSE NULL END + - 16 / + 92 / + 4 - - 14 * 45 * COALESCE ( COUNT ( * ), + 51 * 13 ) / + 19 col1
----
NULL

query I rowsort
SELECT + 63 * + 89
----
5607

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT + SUM( + - 6 ) + - 42 * 53 col1
----
-2232

skipif mysql # not compatible
query I rowsort label-8081
SELECT + SUM ( + - 6 ) + - 42 * 53 col1
----
-2232

onlyif mysql # aggregate syntax: 
query III rowsort label-8082
SELECT - ( 51 ) AS col1, - 67 + ( 35 ), + - COUNT( * ) + + COUNT( - 35 ) + - 67 AS col0
----
-51
-32
-67

skipif mysql # not compatible
query III rowsort label-8082
SELECT - ( 51 ) AS col1, - 67 + ( 35 ), + - COUNT ( * ) + + COUNT ( - 35 ) + - 67 AS col0
----
-51
-32
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT ALL 63 + NULLIF ( - 95, - 55 + - COUNT( * ) ) - - COUNT( * ) + - 15 * - + COUNT( * ) * - - 84 * + + ( 77 ) + - - 72 AS col1
----
97061

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL 63 + NULLIF ( - 95, - 55 + - COUNT ( * ) ) - - COUNT ( * ) + - 15 * - + COUNT ( * ) * - - 84 * + + ( 77 ) + - - 72 AS col1
----
97061

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT ALL + COUNT( * ) * 39
----
39

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL + COUNT ( * ) * 39
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8085
SELECT DISTINCT + CASE 26 WHEN + - COUNT( * ) THEN - COUNT( * ) WHEN - 2 / - + 35 + + 74 THEN NULL ELSE - 37 * - 35 + - - 35 END + + COALESCE ( + CAST( NULL AS SIGNED ), 23 ) + + - 74
----
1279

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT + CASE 26 WHEN + - COUNT ( * ) THEN - COUNT ( * ) WHEN - 2 / - + 35 + + 74 THEN NULL ELSE - 37 * - 35 + - - 35 END + + COALESCE ( + CAST ( NULL AS INTEGER ), 23 ) + + - 74
----
1279

onlyif mysql # DIV for integer division: 
query I rowsort label-8086
SELECT ALL 34 * - 82 DIV - ( - - 41 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL 34 * - 82 / - ( - - 41 ) AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8087
SELECT + - 56 DIV - COALESCE ( 66, + 49 * - ( - AVG ( DISTINCT - NULLIF ( - - 92, 91 + - - CAST( + 60 AS SIGNED ) ) ) ) + CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8087
SELECT + - 56 / - COALESCE ( 66, + 49 * - ( - AVG ( DISTINCT - NULLIF ( - - 92, 91 + - - CAST ( + 60 AS INTEGER ) ) ) ) + CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8088
SELECT - MIN( ALL + ( 71 ) ) AS col1, - 14 * + + COUNT( * )
----
-71
-14

skipif mysql # not compatible
query II rowsort label-8088
SELECT - MIN ( ALL + ( 71 ) ) AS col1, - 14 * + + COUNT ( * )
----
-71
-14

query II rowsort
SELECT DISTINCT ( + ( - - 8 ) ) * + - 69 * - 23, - 0 * + 43 * - 60 col2
----
12696
0

query I rowsort
SELECT ALL + 76 - - 71 * - - 59 + - - 9
----
4274

query I rowsort
SELECT + 49 * + 43 * 39
----
82173

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8092
SELECT - 23 * 11 AS col1, - 29 DIV + 61 + - + COUNT( * ) AS col1
----
-253
-1

skipif mysql # not compatible
query II rowsort label-8092
SELECT - 23 * 11 AS col1, - 29 / + 61 + - + COUNT ( * ) AS col1
----
-253
-1

query I rowsort
SELECT DISTINCT + 82 - - - 50 + CASE - NULLIF ( + 51, - - 20 + + 85 ) WHEN + + 89 THEN 5 END * + 62 * + 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL - 18 * + MIN( + 59 ) - SUM( + 95 ) AS col1
----
-1157

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL - 18 * + MIN ( + 59 ) - SUM ( + 95 ) AS col1
----
-1157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8095
SELECT DISTINCT - - ( - + 91 ) DIV - 90 * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT - - ( - + 91 ) / - 90 * + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT - + 80 - SUM( - 65 )
----
-15

skipif mysql # not compatible
query I rowsort label-8096
SELECT - + 80 - SUM ( - 65 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-8097
SELECT ALL + 67 AS col0, COUNT( * ) * - 40 + + 1 * - - 54 col2
----
67
14

skipif mysql # not compatible
query II rowsort label-8097
SELECT ALL + 67 AS col0, COUNT ( * ) * - 40 + + 1 * - - 54 col2
----
67
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8098
SELECT ALL + 38 AS col0, - COUNT( * ) DIV + + NULLIF ( COUNT( * ), - + COUNT( * ) * - COALESCE ( - 13, - COUNT( + 65 ) DIV + AVG ( DISTINCT + + COALESCE ( - - 56, + 61, + 91 + - - 67 + - 82 ) ), + - 61 ) + 29 + - 50 * - 80 + + - 44 + + 92 ) + + 90
----
38
89

skipif mysql # not compatible
query II rowsort label-8098
SELECT ALL + 38 AS col0, - COUNT ( * ) / + + NULLIF ( COUNT ( * ), - + COUNT ( * ) * - COALESCE ( - 13, - COUNT ( + 65 ) / + AVG ( DISTINCT + + COALESCE ( - - 56, + 61, + 91 + - - 67 + - 82 ) ), + - 61 ) + 29 + - 50 * - 80 + + - 44 + + 92 ) + + 90
----
38
89

query I rowsort
SELECT ALL + 87 * - 34
----
-2958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT + CAST( - 50 AS SIGNED ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8100
SELECT + CAST ( - 50 AS INTEGER ) AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8101
SELECT COUNT( - + 98 ) DIV + CAST( MIN( DISTINCT + 75 ) AS SIGNED ) + + - ( + COUNT( + 76 ) ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8101
SELECT COUNT ( - + 98 ) / + CAST ( MIN ( DISTINCT + 75 ) AS INTEGER ) + + - ( + COUNT ( + 76 ) ) * - COUNT ( * )
----
1

query I rowsort
SELECT - 29 * + 32 * - - 11 * + 47 AS col1
----
-479776

query I rowsort
SELECT ALL + 79 * 83 AS col1
----
6557

query I rowsort
SELECT DISTINCT + 70 * - 45
----
-3150

query I rowsort
SELECT ( + - 86 )
----
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8106
SELECT - CAST( NULL AS DECIMAL ) * 67 * - + 42 + + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT - CAST ( NULL AS REAL ) * 67 * - + 42 + + 90 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 47 * + - 83 + - 58
----
3843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8108
SELECT ALL + CAST( 34 AS SIGNED ) * + ( - 30 ) + - - 67
----
-953

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL + CAST ( 34 AS INTEGER ) * + ( - 30 ) + - - 67
----
-953

onlyif mysql # aggregate syntax: 
query II rowsort label-8109
SELECT - 87 + - 43 + 17, 40 * + - ( MAX( - + 26 ) ) col2
----
-113
1040

skipif mysql # not compatible
query II rowsort label-8109
SELECT - 87 + - 43 + 17, 40 * + - ( MAX ( - + 26 ) ) col2
----
-113
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT - 63 + - COUNT( * ) + + ( 96 ) - + 95
----
-63

skipif mysql # not compatible
query I rowsort label-8110
SELECT - 63 + - COUNT ( * ) + + ( 96 ) - + 95
----
-63

query I rowsort
SELECT + 69 * - 35
----
-2415

query I rowsort
SELECT DISTINCT - ( - 60 ) * + - 95
----
-5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8113
SELECT CASE - 87 WHEN CAST( NULL AS SIGNED ) + - 73 * - - 68 * - 7 THEN - 44 WHEN + + COUNT( * ) * 61 THEN COUNT( * ) * - NULLIF ( - 83, + 44 ) + + 99 + + + 74 + + 43 * 26 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8113
SELECT CASE - 87 WHEN CAST ( NULL AS INTEGER ) + - 73 * - - 68 * - 7 THEN - 44 WHEN + + COUNT ( * ) * 61 THEN COUNT ( * ) * - NULLIF ( - 83, + 44 ) + + 99 + + + 74 + + 43 * 26 END AS col0
----
NULL

query I rowsort
SELECT ALL 9 * - + 56
----
-504

query I rowsort
SELECT NULLIF ( - + 23, - - 3 + ( - 92 ) )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8116
SELECT + 30 * + + 26 * SUM( ALL - - 74 ) + + - 25 - + + 74 / - + ( 41 ) + + - 16 * + CAST( NULL AS SIGNED ) - COUNT( * ) + - + 34 + - 18 * + - 75 * + 84 + 14 * 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT + 30 * + + 26 * SUM ( ALL - - 74 ) + + - 25 - + + 74 / - + ( 41 ) + + - 16 * + CAST ( NULL AS INTEGER ) - COUNT ( * ) + - + 34 + - 18 * + - 75 * + 84 + 14 * 34 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8117
SELECT DISTINCT - - 22 * + 6 + CAST( 37 AS SIGNED ) AS col0
----
169

skipif mysql # not compatible
query I rowsort label-8117
SELECT DISTINCT - - 22 * + 6 + CAST ( 37 AS INTEGER ) AS col0
----
169

query I rowsort
SELECT + 44 - + 84 + - 21 * + - 83 * - + 45 * + - ( + ( 43 ) ) AS col2
----
3372665

query II rowsort
SELECT ALL 54, 89 AS col2
----
54
89

query I rowsort
SELECT DISTINCT + - 9 * NULLIF ( - 60, 12 ) AS col0
----
540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT - CAST( + + COALESCE ( - 44, + 53 * + 44 ) AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-8121
SELECT - CAST ( + + COALESCE ( - 44, + 53 * + 44 ) AS INTEGER )
----
44

query I rowsort
SELECT 64 + - 30
----
34

query I rowsort
SELECT - 94 - + 8 AS col1
----
-102

query II rowsort
SELECT ALL 44 AS col2, - 35 col1
----
44
-35

query I rowsort
SELECT DISTINCT - 22 * 84 AS col2
----
-1848

query I rowsort
SELECT ALL + 89 * + - 39 + - 30
----
-3501

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT ( 26 ) + - SUM( ALL - + 64 ) + + - 83 * + 15 * + - NULLIF ( + 42, 2 )
----
52380

skipif mysql # not compatible
query I rowsort label-8127
SELECT ( 26 ) + - SUM ( ALL - + 64 ) + + - 83 * + 15 * + - NULLIF ( + 42, 2 )
----
52380

query I rowsort
SELECT ALL - 72 * - + 96
----
6912

query I rowsort
SELECT 64 * + 11 AS col2
----
704

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT DISTINCT 52 * - SUM( ALL - 64 )
----
3328

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT 52 * - SUM ( ALL - 64 )
----
3328

query I rowsort
SELECT + 1 + + 91
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8132
SELECT 12 DIV + COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8132
SELECT 12 / + COUNT ( * ) AS col2
----
12

query I rowsort
SELECT 22 + - 70 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-8134
SELECT ALL - MIN( ALL - 14 ), 14 AS col2
----
14
14

skipif mysql # not compatible
query II rowsort label-8134
SELECT ALL - MIN ( ALL - 14 ), 14 AS col2
----
14
14

query I rowsort
SELECT 96 * + 23 AS col1
----
2208

onlyif mysql # DIV for integer division: 
query II rowsort label-8136
SELECT 2 DIV + 90 AS col1, + 78
----
0
78

skipif mysql # not compatible
query II rowsort label-8136
SELECT 2 / + 90 AS col1, + 78
----
0
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8137
SELECT ALL - COUNT( * ) + - COUNT( ALL CAST( + 33 AS SIGNED ) ) * COUNT( * ) DIV - 2 + 52 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL - COUNT ( * ) + - COUNT ( ALL CAST ( + 33 AS INTEGER ) ) * COUNT ( * ) / - 2 + 52 AS col0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8138
SELECT ALL + 56 + - + SUM( ALL 3 ) * 98, COUNT( * ) AS col2
----
-238
1

skipif mysql # not compatible
query II rowsort label-8138
SELECT ALL + 56 + - + SUM ( ALL 3 ) * 98, COUNT ( * ) AS col2
----
-238
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL 5 + - 17 - - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL 5 + - 17 - - COUNT ( * ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT 37 + - ( - COUNT( * ) ) * - 87 + 41
----
-9

skipif mysql # not compatible
query I rowsort label-8140
SELECT 37 + - ( - COUNT ( * ) ) * - 87 + 41
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT ALL + ( + 54 ) + + 72 + + - ( + 63 ) + - COUNT( * ) * - + 39 * + 29
----
1194

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL + ( + 54 ) + + 72 + + - ( + 63 ) + - COUNT ( * ) * - + 39 * + 29
----
1194

query I rowsort
SELECT - 38 * + 95 + - - COALESCE ( - 15, - 93 ) AS col1
----
-3625

onlyif mysql # DIV for integer division: 
query I rowsort label-8143
SELECT 48 DIV + 6 + + 16 + 71 + + 54 * - + 87 AS col1
----
-4603

skipif mysql # not compatible
query I rowsort label-8143
SELECT 48 / + 6 + + 16 + 71 + + 54 * - + 87 AS col1
----
-4603

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT COUNT( * ) * - 36 + + COALESCE ( 57, 4, 55 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8144
SELECT COUNT ( * ) * - 36 + + COALESCE ( 57, 4, 55 ) AS col2
----
21

query I rowsort
SELECT DISTINCT - ( - 91 ) + - 98
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT ALL + COUNT( * ) * 83 col2
----
83

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL + COUNT ( * ) * 83 col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT ALL + 48 + MAX( + + 76 ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL + 48 + MAX ( + + 76 ) AS col0
----
124

query I rowsort
SELECT 43 + - 67 AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8149
SELECT ALL - CAST( NULL AS SIGNED ) * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL - CAST ( NULL AS INTEGER ) * 5
----
NULL

query I rowsort
SELECT - 3 * - 40 + - 65 + - - 80 + + 32 + + 53 * 43 * - + 45
----
-102388

query I rowsort
SELECT DISTINCT - - 68 col2
----
68

query I rowsort
SELECT - 42 + - - 14 col2
----
-28

query I rowsort
SELECT ALL + 9 - + 71
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8154
SELECT + CASE + 61 WHEN - + 52 THEN - 27 + - + COUNT( * ) END * + CAST( NULL AS SIGNED ) * - - ( + + 57 ) / + 99 * + COUNT( DISTINCT - + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8154
SELECT + CASE + 61 WHEN - + 52 THEN - 27 + - + COUNT ( * ) END * + CAST ( NULL AS INTEGER ) * - - ( + + 57 ) / + 99 * + COUNT ( DISTINCT - + 77 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8155
SELECT 86 DIV - - 58
----
1

skipif mysql # not compatible
query I rowsort label-8155
SELECT 86 / - - 58
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8156
SELECT DISTINCT - 17 DIV + MIN( CAST( 99 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT - 17 / + MIN ( CAST ( 99 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8157
SELECT ALL - NULLIF ( - 83, + - NULLIF ( + 76, + COUNT( * ) * + + 81 ) + - ( - 9 ) + + - 85 ), 39 col0
----
83
39

skipif mysql # not compatible
query II rowsort label-8157
SELECT ALL - NULLIF ( - 83, + - NULLIF ( + 76, + COUNT ( * ) * + + 81 ) + - ( - 9 ) + + - 85 ), 39 col0
----
83
39

query II rowsort
SELECT ALL - 84 * 5 col2, - 21
----
-420
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8159
SELECT + 91 + 4 + + - 96 * + CAST( + + 68 AS SIGNED )
----
-6433

skipif mysql # not compatible
query I rowsort label-8159
SELECT + 91 + 4 + + - 96 * + CAST ( + + 68 AS INTEGER )
----
-6433

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT DISTINCT ( COUNT( * ) ) * 26 * 16
----
416

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT ( COUNT ( * ) ) * 26 * 16
----
416

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8161
SELECT ALL + 93 * 93 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL + 93 * 93 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT ALL - 24 * + - COALESCE ( 35, - + COALESCE ( - COUNT( 43 ), + 79 ), COUNT( + ( 67 ) ) ) * 2 * - 56 * - CASE + + 31 WHEN + 54 + - 78 * + + 54 THEN 12 * + + 2 + - 51 * - ( - ( + SUM( DISTINCT 45 ) ) ) + - + CASE - 88 WHEN + - 21 * AVG ( 99 ) + - + CASE + ( + + 24 ) WHEN 50 THEN NULL WHEN + - COUNT( * ) * 95 THEN COUNT( * ) WHEN 11 THEN - ( ( + COUNT( DISTINCT - 68 ) ) ) WHEN 91 THEN NULL END + 31 THEN + 42 END + - 16 * 84 ELSE 17 * ( - COUNT( ALL + 89 ) ) END - COALESCE ( 23 + - 18, - 81 ) col0
----
-1599365

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL - 24 * + - COALESCE ( 35, - + COALESCE ( - COUNT ( 43 ), + 79 ), COUNT ( + ( 67 ) ) ) * 2 * - 56 * - CASE + + 31 WHEN + 54 + - 78 * + + 54 THEN 12 * + + 2 + - 51 * - ( - ( + SUM ( DISTINCT 45 ) ) ) + - + CASE - 88 WHEN + - 21 * AVG ( 99 ) + - + CASE + ( + + 24 ) WHEN 50 THEN NULL WHEN + - COUNT ( * ) * 95 THEN COUNT ( * ) WHEN 11 THEN - ( ( + COUNT ( DISTINCT - 68 ) ) ) WHEN 91 THEN NULL END + 31 THEN + 42 END + - 16 * 84 ELSE 17 * ( - COUNT ( ALL + 89 ) ) END - COALESCE ( 23 + - 18, - 81 ) col0
----
-1599365

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT - + COALESCE ( + 66, 38 + - 55 + + + ( - 83 ) + - - 4 * - - 38 - + COUNT( * ) )
----
-66

skipif mysql # not compatible
query I rowsort label-8163
SELECT - + COALESCE ( + 66, 38 + - 55 + + + ( - 83 ) + - - 4 * - - 38 - + COUNT ( * ) )
----
-66

query I rowsort
SELECT DISTINCT + + 65 * + + 45 + - - 75 * + - 5 * + 14
----
-2325

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ALL + COUNT( * ) * - MAX( DISTINCT - ( + - 27 ) ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL + COUNT ( * ) * - MAX ( DISTINCT - ( + - 27 ) ) AS col2
----
-27

query I rowsort
SELECT 78 * - + 80
----
-6240

query I rowsort
SELECT 27 - - - 79 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT - COALESCE ( COALESCE ( + 55, - 99 - 20 + - NULLIF ( 19, 4 / + 57 + - - CASE - SUM( DISTINCT - 2 ) WHEN + 8 * + COUNT( * ) * + 29 + + 86 THEN + - COUNT( * ) WHEN + 86 * 73 + AVG ( 83 ) - + + 96 THEN + + 60 WHEN - - 32 THEN - 21 END + + 7 ), - - MAX( DISTINCT + + 83 ) ), 86, + 4 )
----
-55

skipif mysql # not compatible
query I rowsort label-8168
SELECT - COALESCE ( COALESCE ( + 55, - 99 - 20 + - NULLIF ( 19, 4 / + 57 + - - CASE - SUM ( DISTINCT - 2 ) WHEN + 8 * + COUNT ( * ) * + 29 + + 86 THEN + - COUNT ( * ) WHEN + 86 * 73 + AVG ( 83 ) - + + 96 THEN + + 60 WHEN - - 32 THEN - 21 END + + 7 ), - - MAX ( DISTINCT + + 83 ) ), 86, + 4 )
----
-55

query I rowsort
SELECT 92 * - - 69
----
6348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8170
SELECT DISTINCT COALESCE ( 1, + 45 * + 7 * - + MAX( + 72 ) + 11 + + 66 DIV + 55 DIV + ( - ( + 44 ) ) DIV + 3 ) + + + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT COALESCE ( 1, + 45 * + 7 * - + MAX ( + 72 ) + 11 + + 66 / + 55 / + ( - ( + 44 ) ) / + 3 ) + + + COUNT ( * ) col2
----
2

query I rowsort
SELECT ALL 0 + 61 AS col0
----
61

query I rowsort
SELECT DISTINCT + ( - 12 ) * 68 + - 51 + + 92
----
-775

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL - COUNT( ALL - 52 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL - COUNT ( ALL - 52 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT + MAX( ALL 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-8174
SELECT + MAX ( ALL 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL - COUNT( * ) * + + 74 + + COALESCE ( + 6, - + COALESCE ( - 79, - 46 ) ) + 20 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL - COUNT ( * ) * + + 74 + + COALESCE ( + 6, - + COALESCE ( - 79, - 46 ) ) + 20 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT MAX( 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8176
SELECT MAX ( 55 ) AS col1
----
55

query I rowsort
SELECT 8 * + 62
----
496

onlyif mysql # aggregate syntax: 
query II rowsort label-8178
SELECT COUNT( * ) AS col2, + 14 * - + 67
----
1
-938

skipif mysql # not compatible
query II rowsort label-8178
SELECT COUNT ( * ) AS col2, + 14 * - + 67
----
1
-938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8179
SELECT 56 * + CAST( NULL AS SIGNED ) * - 25 * + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT 56 * + CAST ( NULL AS INTEGER ) * - 25 * + 6 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8180
SELECT ALL - 91, - 50 DIV + 20 AS col0
----
-91
-2

skipif mysql # not compatible
query II rowsort label-8180
SELECT ALL - 91, - 50 / + 20 AS col0
----
-91
-2

query II rowsort
SELECT ALL + 32 * 4 + 39 AS col2, - 17 AS col1
----
167
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT COUNT( - + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-8182
SELECT COUNT ( - + 50 )
----
1

query I rowsort
SELECT + 92 * 66
----
6072

onlyif mysql # aggregate syntax: 
query II rowsort label-8184
SELECT ALL + 81 AS col0, COUNT( * ) + - 89 AS col0
----
81
-88

skipif mysql # not compatible
query II rowsort label-8184
SELECT ALL + 81 AS col0, COUNT ( * ) + - 89 AS col0
----
81
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT MIN( ALL 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8185
SELECT MIN ( ALL 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT COUNT( DISTINCT 77 ) * MAX( ALL 47 ) + - - 39 * - + 64 AS col0
----
-2449

skipif mysql # not compatible
query I rowsort label-8186
SELECT COUNT ( DISTINCT 77 ) * MAX ( ALL 47 ) + - - 39 * - + 64 AS col0
----
-2449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT DISTINCT + 35 * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT + 35 * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8188
SELECT 32 * - 62 * - CAST( NULL AS SIGNED ) + + SUM( + - 60 ) + - - 69 - CASE + - 19 WHEN - NULLIF ( + CAST( NULL AS SIGNED ), + 24 / AVG ( ALL + ( + - ( + 33 ) ) ) ) THEN NULL ELSE CAST( NULL AS SIGNED ) END * - + ( + COUNT( * ) ) * - 48 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8188
SELECT 32 * - 62 * - CAST ( NULL AS INTEGER ) + + SUM ( + - 60 ) + - - 69 - CASE + - 19 WHEN - NULLIF ( + CAST ( NULL AS INTEGER ), + 24 / AVG ( ALL + ( + - ( + 33 ) ) ) ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END * - + ( + COUNT ( * ) ) * - 48 col1
----
NULL

query I rowsort
SELECT + 70 * + - 98 + - 82 col2
----
-6942

query I rowsort
SELECT + + ( - ( + + 85 ) )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT - 53 * - - 61 * + COUNT( * ) * - 91 AS col2
----
294203

skipif mysql # not compatible
query I rowsort label-8191
SELECT - 53 * - - 61 * + COUNT ( * ) * - 91 AS col2
----
294203

query I rowsort
SELECT + - 83 + ( + - 27 ) + - + 68
----
-178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8193
SELECT + 96 * SUM( ALL + CAST( NULL AS SIGNED ) ) + + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8193
SELECT + 96 * SUM ( ALL + CAST ( NULL AS INTEGER ) ) + + 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT + 44 * - 74 * + NULLIF ( - + COUNT( * ), - 23 + - 17 + + 40 ) AS col1
----
3256

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT + 44 * - 74 * + NULLIF ( - + COUNT ( * ), - 23 + - 17 + + 40 ) AS col1
----
3256

query II rowsort
SELECT ALL 40 AS col2, 58 * + - 42 * + 82 * + 48 * 52
----
40
-498580992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8196
SELECT - 29 - + 13 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT - 29 - + 13 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 50 * ( + 98 )
----
-4900

query I rowsort
SELECT - 56 + 22 col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8199
SELECT - + COUNT( - 23 ) DIV + ( + 74 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8199
SELECT - + COUNT ( - 23 ) / + ( + 74 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT ALL + + 25 + + ( + COUNT( * ) ) * + 80
----
105

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL + + 25 + + ( + COUNT ( * ) ) * + 80
----
105

query I rowsort
SELECT - + 6 + - - 77 AS col1
----
71

query I rowsort
SELECT ALL - ( - 48 ) + + 54
----
102

query I rowsort
SELECT - - 32 + - 4 AS col0
----
28

query I rowsort
SELECT ALL - 20 + + 24 + 85 - + + 18 AS col1
----
71

query I rowsort
SELECT ALL + 20 * 22
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT DISTINCT - COUNT( - 74 ) + 50
----
49

skipif mysql # not compatible
query I rowsort label-8206
SELECT DISTINCT - COUNT ( - 74 ) + 50
----
49

query II rowsort
SELECT ALL 20 AS col1, 83 AS col0
----
20
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT + 58 + - COUNT( ALL - - 80 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8208
SELECT + 58 + - COUNT ( ALL - - 80 ) AS col0
----
57

query I rowsort
SELECT - 70 * + 97
----
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT - MAX( ALL + ( 43 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-8210
SELECT - MAX ( ALL + ( 43 ) )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-8211
SELECT - 46 * + 1 AS col0, SUM( - 15 ) col1
----
-46
-15

skipif mysql # not compatible
query II rowsort label-8211
SELECT - 46 * + 1 AS col0, SUM ( - 15 ) col1
----
-46
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT - NULLIF ( - COUNT( * ), + COALESCE ( - 18, SUM( ALL + 61 ) + - 26 ) * + 14 + + COUNT( + 50 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8212
SELECT - NULLIF ( - COUNT ( * ), + COALESCE ( - 18, SUM ( ALL + 61 ) + - 26 ) * + 14 + + COUNT ( + 50 ) )
----
1

query I rowsort
SELECT ( - - 4 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT - 5 * - - 51 + + - 43 + + - 27 + 40 * - NULLIF ( - - CASE + 55 WHEN - + ( + 2 ) THEN 11 ELSE NULL END, - ( - 59 ) ) / - COUNT( * ) + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT - 5 * - - 51 + + - 43 + + - 27 + 40 * - NULLIF ( - - CASE + 55 WHEN - + ( + 2 ) THEN 11 ELSE NULL END, - ( - 59 ) ) / - COUNT ( * ) + - 60
----
NULL

query I rowsort
SELECT + ( + + 12 ) AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8216
SELECT DISTINCT + 88 DIV - 73 - - ( - 22 )
----
-23

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT + 88 / - 73 - - ( - 22 )
----
-23

query II rowsort
SELECT ALL + 1, - 64 AS col2
----
1
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL + MAX( + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL + MAX ( + 66 ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8219
SELECT DISTINCT + CASE + + 68 WHEN 17 * 8 * - COALESCE ( + COUNT( * ), 62 * 52 + ( - COUNT( * ) ) * + - 70 + - - COUNT( * ) + - - CAST( NULL AS SIGNED ) + 60, CASE + 75 WHEN - COUNT( * ) + - - 29 THEN + + 61 ELSE NULL END * + 65 ) * + + 83 + - 50 * 11 THEN 82 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT + CASE + + 68 WHEN 17 * 8 * - COALESCE ( + COUNT ( * ), 62 * 52 + ( - COUNT ( * ) ) * + - 70 + - - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + 60, CASE + 75 WHEN - COUNT ( * ) + - - 29 THEN + + 61 ELSE NULL END * + 65 ) * + + 83 + - 50 * 11 THEN 82 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8220
SELECT + MAX( DISTINCT - CAST( + 63 AS SIGNED ) ) + - 4 - - 47 * 4 AS col2, ( 75 )
----
121
75

skipif mysql # not compatible
query II rowsort label-8220
SELECT + MAX ( DISTINCT - CAST ( + 63 AS INTEGER ) ) + - 4 - - 47 * 4 AS col2, ( 75 )
----
121
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8221
SELECT ALL CASE WHEN NOT 48 IS NOT NULL THEN NULL ELSE - 51 + + 36 - - - 15 END * - - COUNT( + + 84 ) DIV - 54 col0
----
0

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL CASE WHEN NOT 48 IS NOT NULL THEN NULL ELSE - 51 + + 36 - - - 15 END * - - COUNT ( + + 84 ) / - 54 col0
----
0

query I rowsort
SELECT ALL 41 * - 0 * ( + 74 ) - - 59
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8223
SELECT + COUNT( * ), - COUNT( * ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-8223
SELECT + COUNT ( * ), - COUNT ( * ) AS col0
----
1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8224
SELECT DISTINCT + COUNT( * ), 71 col0
----
1
71

skipif mysql # not compatible
query II rowsort label-8224
SELECT DISTINCT + COUNT ( * ), 71 col0
----
1
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT DISTINCT + SUM( - 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT + SUM ( - 13 ) AS col1
----
-13

query I rowsort
SELECT + 13 + - - 93
----
106

query I rowsort
SELECT + 17 * + 50
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT ALL + + 20 * 46 * - 64 + 82 + + - COUNT( * )
----
-58799

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL + + 20 * 46 * - 64 + 82 + + - COUNT ( * )
----
-58799

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT CASE + COALESCE ( + AVG ( + 71 ), + + 98 - COUNT( * ), 30 + - COUNT( * ) ) WHEN - 31 THEN 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT CASE + COALESCE ( + AVG ( + 71 ), + + 98 - COUNT ( * ), 30 + - COUNT ( * ) ) WHEN - 31 THEN 4 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT - CASE - 49 WHEN - + 10 + + AVG ( + 28 ) / - 90 THEN 32 ELSE NULL END + + 91 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT - CASE - 49 WHEN - + 10 + + AVG ( + 28 ) / - 90 THEN 32 ELSE NULL END + + 91 * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 32 * - 37 * 44 AS col0
----
-52096

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8233
SELECT DISTINCT + 53 * + 8 + 3 + ( 81 ) * + - 79 / + - 77 - + CAST( NULL AS DECIMAL ) * + 19 AS col1, COALESCE ( 50, COUNT( DISTINCT + 55 ), 84 * + + 89 ) + 6 AS col2
----
NULL
56

skipif mysql # not compatible
query II rowsort label-8233
SELECT DISTINCT + 53 * + 8 + 3 + ( 81 ) * + - 79 / + - 77 - + CAST ( NULL AS REAL ) * + 19 AS col1, COALESCE ( 50, COUNT ( DISTINCT + 55 ), 84 * + + 89 ) + 6 AS col2
----
NULL
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT + 20 * + CASE 75 WHEN 69 * ( + 77 ) + + + COUNT( * ) + - 23 + - 70 / - 82 + + 56 + - 47 * - 52 / + + 85 + 97 + 41 THEN + COUNT( * ) * COUNT( * ) WHEN - + 50 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT + 20 * + CASE 75 WHEN 69 * ( + 77 ) + + + COUNT ( * ) + - 23 + - 70 / - 82 + + 56 + - 47 * - 52 / + + 85 + 97 + 41 THEN + COUNT ( * ) * COUNT ( * ) WHEN - + 50 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8235
SELECT ALL + ( - 60 ) + 78 + NULLIF ( 44, 49 * - - SUM( + 13 ) + + 29 ) DIV + 90
----
18

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + ( - 60 ) + 78 + NULLIF ( 44, 49 * - - SUM ( + 13 ) + + 29 ) / + 90
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8236
SELECT ALL 3 + - 33 - - 60 * 66 DIV + + 36
----
80

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL 3 + - 33 - - 60 * 66 / + + 36
----
80

query II rowsort
SELECT - 65 AS col2, + 15 AS col0
----
-65
15

query I rowsort
SELECT - 83 * + - 86 * + - 52 AS col1
----
-371176

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT DISTINCT CASE - - 64 WHEN + 54 THEN + 14 WHEN + 46 THEN - COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT CASE - - 64 WHEN + 54 THEN + 14 WHEN + 46 THEN - COUNT ( * ) ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT - MAX( - - 6 ) * + - ( + - 79 ) AS col1
----
-474

skipif mysql # not compatible
query I rowsort label-8240
SELECT - MAX ( - - 6 ) * + - ( + - 79 ) AS col1
----
-474

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT - 23 + + 21 DIV + - 52 + + + 76
----
53

skipif mysql # not compatible
query I rowsort label-8241
SELECT - 23 + + 21 / + - 52 + + + 76
----
53

query I rowsort
SELECT - 46 + + COALESCE ( 28, 56 )
----
-18

query I rowsort
SELECT ALL + ( ( - - COALESCE ( + 8, 62 ) ) ) * + 57
----
456

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8244
SELECT 65 + - 12 - + + CASE + CAST( - 90 AS DECIMAL ) WHEN - 46 * + COALESCE ( + 43, + 14 / - 55 + - 54 / - COUNT( * ) / + 59 ) * + - 51 + - COUNT( * ) THEN - ( + 53 ) * 58 * 84 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT 65 + - 12 - + + CASE + CAST ( - 90 AS REAL ) WHEN - 46 * + COALESCE ( + 43, + 14 / - 55 + - 54 / - COUNT ( * ) / + 59 ) * + - 51 + - COUNT ( * ) THEN - ( + 53 ) * 58 * 84 END col0
----
NULL

query I rowsort
SELECT 36 * + 92
----
3312

query I rowsort
SELECT 99 * + + 72 + - - 34 AS col2
----
7162

query I rowsort
SELECT 55 + - 83 + + + 17 AS col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8248
SELECT DISTINCT + + 58 + 21 + + 47 DIV - 45
----
78

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT + + 58 + 21 + + 47 / - 45
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT ALL - 6 + + COUNT( DISTINCT + 33 ) + + 46
----
41

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL - 6 + + COUNT ( DISTINCT + 33 ) + + 46
----
41

query I rowsort
SELECT + 11 * - ( + - 85 )
----
935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8251
SELECT - 12 * - - COUNT( * ) / + + NULLIF ( - COUNT( * ), 55 ) + - CASE - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) WHEN + 47 THEN SUM( ALL 74 ) * + COUNT( * ) * + 62 END AS col0, - 50 * + - 85 * + MIN( DISTINCT 4 ) + + + CASE + + ( - ( + 43 ) ) WHEN - ( - 24 ) THEN + 26 WHEN COALESCE ( - 27, + + AVG ( ALL 51 ) ) THEN NULL ELSE NULL END * + SUM( 77 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8251
SELECT - 12 * - - COUNT ( * ) / + + NULLIF ( - COUNT ( * ), 55 ) + - CASE - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) WHEN + 47 THEN SUM ( ALL 74 ) * + COUNT ( * ) * + 62 END AS col0, - 50 * + - 85 * + MIN ( DISTINCT 4 ) + + + CASE + + ( - ( + 43 ) ) WHEN - ( - 24 ) THEN + 26 WHEN COALESCE ( - 27, + + AVG ( ALL 51 ) ) THEN NULL ELSE NULL END * + SUM ( 77 )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT 33 + - 67 * - 79 + MAX( - 36 ) * 53 * - 83 * 48 * 72 - - 6 + + 88 AS col0
----
547311404

skipif mysql # not compatible
query I rowsort label-8252
SELECT 33 + - 67 * - 79 + MAX ( - 36 ) * 53 * - 83 * 48 * 72 - - 6 + + 88 AS col0
----
547311404

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL + MAX( DISTINCT + 8 ) + + 32 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL + MAX ( DISTINCT + 8 ) + + 32 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8254
SELECT DISTINCT 92 + + CASE + + NULLIF ( + 22, + 81 * COALESCE ( + CAST( NULL AS SIGNED ), - COUNT( * ), - + AVG ( - 75 ) * - 96 ) ) WHEN ( + + 20 ) * + COUNT( * ) * - - 80 + - 81 THEN ( + + ( + 77 ) ) + - - 88 - 77 / 12 ELSE NULL END * - - COUNT( * ) + + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT 92 + + CASE + + NULLIF ( + 22, + 81 * COALESCE ( + CAST ( NULL AS INTEGER ), - COUNT ( * ), - + AVG ( - 75 ) * - 96 ) ) WHEN ( + + 20 ) * + COUNT ( * ) * - - 80 + - 81 THEN ( + + ( + 77 ) ) + - - 88 - 77 / 12 ELSE NULL END * - - COUNT ( * ) + + 45 AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + 15, - 22 * + 0 ) + + 24 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL + 18 + + - 13 + + 16 + SUM( - - 48 ) col2
----
69

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL + 18 + + - 13 + + 16 + SUM ( - - 48 ) col2
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8257
SELECT COALESCE ( 10, 61 * + ( 47 ) - - - 46 * + 77 + - 87 + - - CAST( NULL AS SIGNED ) * 92 ) + + + 16 DIV - 64 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8257
SELECT COALESCE ( 10, 61 * + ( 47 ) - - - 46 * + 77 + - 87 + - - CAST ( NULL AS INTEGER ) * 92 ) + + + 16 / - 64 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT 40 + + 99 + + - 19 * - - COUNT( * )
----
120

skipif mysql # not compatible
query I rowsort label-8258
SELECT 40 + + 99 + + - 19 * - - COUNT ( * )
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT ALL 41 * - - ( COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL 41 * - - ( COUNT ( * ) )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8260
SELECT NULLIF ( + CAST( NULL AS SIGNED ), + + COUNT( * ) - - 52 ) + - 23 / + COUNT( ALL 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + + COUNT ( * ) - - 52 ) + - 23 / + COUNT ( ALL 82 )
----
NULL

query I rowsort
SELECT 56 + - 56 + + + ( - - 44 ) AS col1
----
44

query II rowsort
SELECT 82 AS col1, + 52 AS col1
----
82
52

query I rowsort
SELECT ALL - 30 - + 92 AS col1
----
-122

query I rowsort
SELECT DISTINCT + 75 * - 83 * + ( + COALESCE ( 20, + + 46 + - 7 ) ) col1
----
-124500

query II rowsort
SELECT DISTINCT 32 AS col0, - 83 * - 58 AS col1
----
32
4814

query II rowsort
SELECT 12, + 99 AS col1
----
12
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT CAST( NULL AS SIGNED ) / - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8267
SELECT CAST ( NULL AS INTEGER ) / - 54
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8268
SELECT + 52 AS col1, - COUNT( * ) * 5 + 99
----
52
94

skipif mysql # not compatible
query II rowsort label-8268
SELECT + 52 AS col1, - COUNT ( * ) * 5 + 99
----
52
94

onlyif mysql # aggregate syntax: 
query II rowsort label-8269
SELECT DISTINCT - COUNT( * ) col0, 69 * - 55 AS col1
----
-1
-3795

skipif mysql # not compatible
query II rowsort label-8269
SELECT DISTINCT - COUNT ( * ) col0, 69 * - 55 AS col1
----
-1
-3795

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT 61 * + MAX( + 93 )
----
5673

skipif mysql # not compatible
query I rowsort label-8270
SELECT 61 * + MAX ( + 93 )
----
5673

onlyif mysql # aggregate syntax: 
query II rowsort label-8271
SELECT + 85 AS col2, ( + COUNT( * ) )
----
85
1

skipif mysql # not compatible
query II rowsort label-8271
SELECT + 85 AS col2, ( + COUNT ( * ) )
----
85
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8272
SELECT ALL + 9 + + 54 + - + CAST( NULL AS SIGNED ) + + + 53 + 75 - + 33 + - 69 * CAST( + + 82 AS SIGNED ) * 32 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL + 9 + + 54 + - + CAST ( NULL AS INTEGER ) + + + 53 + 75 - + 33 + - 69 * CAST ( + + 82 AS INTEGER ) * 32 col2
----
NULL

query I rowsort
SELECT + NULLIF ( 97, 40 * + 56 ) AS col2
----
97

query I rowsort
SELECT ALL - - 85 + - - 18 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT DISTINCT - COUNT( * ) + 42 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT - COUNT ( * ) + 42 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ALL - - ( - 10 ) + - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL - - ( - 10 ) + - COUNT ( * )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8277
SELECT 99 + + - COALESCE ( + 97, + - 35 * - - 10 + - - 65 DIV - + 50 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8277
SELECT 99 + + - COALESCE ( + 97, + - 35 * - - 10 + - - 65 / - + 50 ) AS col2
----
2

query I rowsort
SELECT ALL - NULLIF ( + 83, - 10 ) + + + 77
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ALL + COUNT( * ) + 55
----
56

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL + COUNT ( * ) + 55
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-8280
SELECT ALL - 68 AS col2, + 33 DIV - ( + 39 ) * - 84
----
-68
0

skipif mysql # not compatible
query II rowsort label-8280
SELECT ALL - 68 AS col2, + 33 / - ( + 39 ) * - 84
----
-68
0

query I rowsort
SELECT DISTINCT - 0 - - - CASE 96 WHEN 56 THEN - + 35 WHEN - + 74 THEN NULL END
----
NULL

query I rowsort
SELECT - 77 * - 72 AS col1
----
5544

query I rowsort
SELECT DISTINCT - 56 * + 25 + - + 93 * 16
----
-2888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8284
SELECT DISTINCT 0 - - 39 DIV - + 52 * - - 42 * + + MAX( + 66 ) * + ( - 34 )
----
0

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT 0 - - 39 / - + 52 * - - 42 * + + MAX ( + 66 ) * + ( - 34 )
----
0

query I rowsort
SELECT 50 * - 10
----
-500

query I rowsort
SELECT 27 * 22 AS col0
----
594

query I rowsort
SELECT ALL CASE + 37 WHEN 44 THEN NULL WHEN - 42 - 91 THEN 95 + + AVG ( - 59 ) - + + 39 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 76 * + ( + 16 ) col2
----
1216

onlyif mysql # DIV for integer division: 
query I rowsort label-8289
SELECT ALL 88 DIV + ( + - NULLIF ( 98, - 16 ) ) * + + ( - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL 88 / + ( + - NULLIF ( 98, - 16 ) ) * + + ( - 65 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8290
SELECT DISTINCT COUNT( * ) DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT COUNT ( * ) / 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT + 46 * - + MAX( + 87 ) AS col2
----
-4002

skipif mysql # not compatible
query I rowsort label-8291
SELECT + 46 * - + MAX ( + 87 ) AS col2
----
-4002

onlyif mysql # DIV for integer division: 
query I rowsort label-8292
SELECT + 63 DIV - NULLIF ( 82, + - 15 * - - NULLIF ( - + 72, + 82 + + AVG ( ALL 38 ) ) ) * - 59 + - 76 + + - 20
----
-96

skipif mysql # not compatible
query I rowsort label-8292
SELECT + 63 / - NULLIF ( 82, + - 15 * - - NULLIF ( - + 72, + 82 + + AVG ( ALL 38 ) ) ) * - 59 + - 76 + + - 20
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT + COUNT( * ) + - MAX( ALL - 15 )
----
16

skipif mysql # not compatible
query I rowsort label-8293
SELECT + COUNT ( * ) + - MAX ( ALL - 15 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN - - 16 * - 84 THEN NULL ELSE + 10 END * - 75
----
-750

skipif mysql # not compatible
query I rowsort label-8294
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN - - 16 * - 84 THEN NULL ELSE + 10 END * - 75
----
-750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8295
SELECT + 10 + 11 * + CASE CAST( 84 AS SIGNED ) WHEN COUNT( * ) / + - 91 THEN + 24 WHEN + + 9 THEN + + 32 END AS col1, NULLIF ( - - COALESCE ( 53, + ( - MAX( ALL + 89 ) ) ), - CASE - 22 WHEN ( 3 ) THEN NULL WHEN - + COALESCE ( 24, ( + CAST( NULL AS SIGNED ) ) * - 29 + - - 89 * + 41 + 62 ) THEN NULL WHEN + CASE COUNT( * ) WHEN + 52 * + 36 * - + 52 * + CASE + ( - - 65 ) WHEN 74 - - 61 + + + 45 * - 96 THEN 66 * 49 WHEN 86 THEN - 99 + 49 * - 17 ELSE COUNT( * ) END THEN NULL ELSE - 32 * + 60 + CAST( NULL AS SIGNED ) END THEN 66 * + CAST( 5 AS SIGNED ) WHEN + ( 38 ) + + 81 THEN NULL END - 36 / 80 ) * 24
----
NULL
1272

skipif mysql # not compatible
query II rowsort label-8295
SELECT + 10 + 11 * + CASE CAST ( 84 AS INTEGER ) WHEN COUNT ( * ) / + - 91 THEN + 24 WHEN + + 9 THEN + + 32 END AS col1, NULLIF ( - - COALESCE ( 53, + ( - MAX ( ALL + 89 ) ) ), - CASE - 22 WHEN ( 3 ) THEN NULL WHEN - + COALESCE ( 24, ( + CAST ( NULL AS INTEGER ) ) * - 29 + - - 89 * + 41 + 62 ) THEN NULL WHEN + CASE COUNT ( * ) WHEN + 52 * + 36 * - + 52 * + CASE + ( - - 65 ) WHEN 74 - - 61 + + + 45 * - 96 THEN 66 * 49 WHEN 86 THEN - 99 + 49 * - 17 ELSE COUNT ( * ) END THEN NULL ELSE - 32 * + 60 + CAST ( NULL AS INTEGER ) END THEN 66 * + CAST ( 5 AS INTEGER ) WHEN + ( 38 ) + + 81 THEN NULL END - 36 / 80 ) * 24
----
NULL
1272

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT DISTINCT MAX( DISTINCT - - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT MAX ( DISTINCT - - 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT DISTINCT + 27 * + COALESCE ( COUNT( * ), COALESCE ( + 99, 87 ), - 8 ) * COUNT( * ) + + - 33
----
-6

skipif mysql # not compatible
query I rowsort label-8297
SELECT DISTINCT + 27 * + COALESCE ( COUNT ( * ), COALESCE ( + 99, 87 ), - 8 ) * COUNT ( * ) + + - 33
----
-6

query I rowsort
SELECT - ( + 93 ) * + 94 AS col2
----
-8742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8299
SELECT - 83 DIV COUNT( * ) * + 5 + + 57 + + - 33 - - 88
----
-303

skipif mysql # not compatible
query I rowsort label-8299
SELECT - 83 / COUNT ( * ) * + 5 + + 57 + + - 33 - - 88
----
-303

query I rowsort
SELECT ALL - 62 * - ( 24 )
----
1488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8301
SELECT DISTINCT COUNT( * ) * - 60 - + 3 + 66 DIV 78 DIV - + 27 col2
----
-63

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT COUNT ( * ) * - 60 - + 3 + 66 / 78 / - + 27 col2
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8302
SELECT COALESCE ( + 26, + + COUNT( * ) - + COUNT( * ) + + + 57 + - - ( + 73 ) DIV AVG ( DISTINCT + 24 ), 9 + - 26 ) col0
----
26

skipif mysql # not compatible
query I rowsort label-8302
SELECT COALESCE ( + 26, + + COUNT ( * ) - + COUNT ( * ) + + + 57 + - - ( + 73 ) / AVG ( DISTINCT + 24 ), 9 + - 26 ) col0
----
26

query I rowsort
SELECT + 53 * - 48 AS col1
----
-2544

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT - - 21 + + + ( - SUM( - 45 ) ) * - 13 col1
----
-564

skipif mysql # not compatible
query I rowsort label-8304
SELECT - - 21 + + + ( - SUM ( - 45 ) ) * - 13 col1
----
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT 16 * + ( 73 ) - - - 15 * - NULLIF ( COUNT( * ), 24 ) + + 60 - + 67 * 2 * + - 75
----
11293

skipif mysql # not compatible
query I rowsort label-8305
SELECT 16 * + ( 73 ) - - - 15 * - NULLIF ( COUNT ( * ), 24 ) + + 60 - + 67 * 2 * + - 75
----
11293

query I rowsort
SELECT - 77 * + 94 * - + 39 + - 64
----
282218

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT MIN( ALL - 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-8307
SELECT MIN ( ALL - 86 ) AS col1
----
-86

query I rowsort
SELECT ALL - 78 * - - 43 - 54 + - 64 AS col1
----
-3472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8309
SELECT 39 * - 29 + 74 + + + 97 DIV MIN( - 51 ) AS col1
----
-1058

skipif mysql # not compatible
query I rowsort label-8309
SELECT 39 * - 29 + 74 + + + 97 / MIN ( - 51 ) AS col1
----
-1058

onlyif mysql # aggregate syntax: 
query II rowsort label-8310
SELECT COUNT( * ) AS col2, 72
----
1
72

skipif mysql # not compatible
query II rowsort label-8310
SELECT COUNT ( * ) AS col2, 72
----
1
72

query I rowsort
SELECT - 70 + 90 AS col2
----
20

query I rowsort
SELECT ALL 81 * + 67 AS col2
----
5427

query I rowsort
SELECT + 87 * + 76 * 11
----
72732

query I rowsort
SELECT ALL ( + 28 ) AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8315
SELECT - CASE - ( + + 72 ) WHEN + COALESCE ( + ( - + 90 ), + - 4 + + CASE - 1 WHEN - + 31 * 81 THEN 1 WHEN + - 76 THEN 86 WHEN - + 53 / - 70 + + 4 + - - 5 * - 15 THEN NULL END * + - 29 ) * + CAST( MAX( ALL 59 ) AS SIGNED ) THEN NULL WHEN - - COUNT( * ) + 80 THEN + 52 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT - CASE - ( + + 72 ) WHEN + COALESCE ( + ( - + 90 ), + - 4 + + CASE - 1 WHEN - + 31 * 81 THEN 1 WHEN + - 76 THEN 86 WHEN - + 53 / - 70 + + 4 + - - 5 * - 15 THEN NULL END * + - 29 ) * + CAST ( MAX ( ALL 59 ) AS INTEGER ) THEN NULL WHEN - - COUNT ( * ) + 80 THEN + 52 END AS col2
----
NULL

query I rowsort
SELECT + 22 + + + NULLIF ( - 91, 74 ) * - 72 * - - 59 * - 59 AS col2
----
-22807490

query I rowsort
SELECT ALL 46 * 40
----
1840

query I rowsort
SELECT - 51 * - - 11 col0
----
-561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8319
SELECT + CAST( NULL AS SIGNED ) + + 0 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT + CAST ( NULL AS INTEGER ) + + 0 col1
----
NULL

query I rowsort
SELECT DISTINCT 80 + + - CASE + 55 WHEN + 10 * - 21 * + 54 THEN + 90 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8321
SELECT ALL - 40 + - - SUM( - - 81 ) DIV - + 56
----
-41

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL - 40 + - - SUM ( - - 81 ) / - + 56
----
-41

query I rowsort
SELECT ALL 74 + 46 + - - 53
----
173

query I rowsort
SELECT + 80 + + 68 + - 56
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT ALL - 7 + + 38 - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL - 7 + + 38 - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8325
SELECT ALL 51 + - 90 + - + 85, 24 - - COUNT( * ) DIV + MAX( ALL + 36 ) AS col0
----
-124
24

skipif mysql # not compatible
query II rowsort label-8325
SELECT ALL 51 + - 90 + - + 85, 24 - - COUNT ( * ) / + MAX ( ALL + 36 ) AS col0
----
-124
24

query I rowsort
SELECT - + ( + 49 )
----
-49

query I rowsort
SELECT + - 27 + - 93 + - NULLIF ( + 4, + 64 ) AS col1
----
-124

query I rowsort
SELECT + - 63 * - 40
----
2520

query I rowsort
SELECT ALL - ( - 65 ) * + 28
----
1820

query I rowsort
SELECT + 43 + 98 AS col1
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-8331
SELECT + NULLIF ( - 63, 16 ) DIV 31
----
-2

skipif mysql # not compatible
query I rowsort label-8331
SELECT + NULLIF ( - 63, 16 ) / 31
----
-2

query I rowsort
SELECT + + 88 + + 62 AS col0
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8333
SELECT ALL - + 60 DIV - COUNT( * ) - 0 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL - + 60 / - COUNT ( * ) - 0 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT DISTINCT + MAX( DISTINCT - COALESCE ( - ( + - 19 ), ( + 25 ) - - ( - 25 ) ) )
----
-19

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT + MAX ( DISTINCT - COALESCE ( - ( + - 19 ), ( + 25 ) - - ( - 25 ) ) )
----
-19

query I rowsort
SELECT ALL 54 * + 78 AS col2
----
4212

query I rowsort
SELECT + - 11 + + 60 AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8337
SELECT DISTINCT + 7 DIV - 50 * + - 22 - - + COUNT( * ) + + 57 + + MIN( + 0 ) - + 83 DIV + 92
----
58

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT + 7 / - 50 * + - 22 - - + COUNT ( * ) + + 57 + + MIN ( + 0 ) - + 83 / + 92
----
58

query I rowsort
SELECT + - NULLIF ( - - ( 80 ), + - 33 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8339
SELECT - - 61 * - + MIN( ALL + CAST( NULL AS DECIMAL ) ) * 61 + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT - - 61 * - + MIN ( ALL + CAST ( NULL AS REAL ) ) * 61 + + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT - 30 * 44 * - - COUNT( * ) + - 56 + + - MIN( - - 79 ) * + + ( + ( 98 ) ) * - - 62 AS col0
----
-481380

skipif mysql # not compatible
query I rowsort label-8340
SELECT - 30 * 44 * - - COUNT ( * ) + - 56 + + - MIN ( - - 79 ) * + + ( + ( 98 ) ) * - - 62 AS col0
----
-481380

query I rowsort
SELECT DISTINCT + - ( - 2 )
----
2

query I rowsort
SELECT ALL + - 71 * + 51 * + 11 AS col2
----
-39831

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8343
SELECT 79 * - - 93 + + - 58 * + COUNT( * ) + + CAST( + + 19 AS SIGNED ) * + - 77 AS col1
----
5826

skipif mysql # not compatible
query I rowsort label-8343
SELECT 79 * - - 93 + + - 58 * + COUNT ( * ) + + CAST ( + + 19 AS INTEGER ) * + - 77 AS col1
----
5826

query I rowsort
SELECT ALL + 34 * 36 col1
----
1224

query II rowsort
SELECT 98 AS col2, 44 AS col1
----
98
44

query I rowsort
SELECT ALL - 71 + + 1 * + 49
----
-22

query I rowsort
SELECT 36 - + + 31 AS col2
----
5

query II rowsort
SELECT 28, - 50 + + 39 AS col2
----
28
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT 46 * + CASE - 18 WHEN 30 / - SUM( DISTINCT 95 ) THEN + - 14 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT 46 * + CASE - 18 WHEN 30 / - SUM ( DISTINCT 95 ) THEN + - 14 END AS col0
----
NULL

query I rowsort
SELECT ALL - 45 + - 66 * 41
----
-2751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8351
SELECT 55 * CAST( 50 AS SIGNED ) AS col2
----
2750

skipif mysql # not compatible
query I rowsort label-8351
SELECT 55 * CAST ( 50 AS INTEGER ) AS col2
----
2750

query II rowsort
SELECT - 35 AS col0, + 17 - + 4
----
-35
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8353
SELECT DISTINCT - 27 + 55 + + + 64 DIV - 25
----
26

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT - 27 + 55 + + + 64 / - 25
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT ALL - COUNT( * ) + 2 * + + 43
----
85

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL - COUNT ( * ) + 2 * + + 43
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT ALL 92 * COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL 92 * COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT DISTINCT - 27 + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT - 27 + COUNT ( * )
----
-26

query I rowsort
SELECT 0 * + 57 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8358
SELECT ALL + 9 + - ( - - 75 ) - - 40 DIV + ( - - 26 ), 70 + COUNT( * ) col2
----
-65
71

skipif mysql # not compatible
query II rowsort label-8358
SELECT ALL + 9 + - ( - - 75 ) - - 40 / + ( - - 26 ), 70 + COUNT ( * ) col2
----
-65
71

query I rowsort
SELECT 71 + - 87
----
-16

query II rowsort
SELECT 2, - 50 AS col1
----
2
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8361
SELECT CAST( - 11 AS SIGNED ) + - 34
----
-45

skipif mysql # not compatible
query I rowsort label-8361
SELECT CAST ( - 11 AS INTEGER ) + - 34
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-8362
SELECT 8 AS col2, + 11 * COUNT( * )
----
8
11

skipif mysql # not compatible
query II rowsort label-8362
SELECT 8 AS col2, + 11 * COUNT ( * )
----
8
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT DISTINCT + NULLIF ( + COUNT( * ), - 34 / - 1 ) * - - 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT + NULLIF ( + COUNT ( * ), - 34 / - 1 ) * - - 68 AS col2
----
68

query I rowsort
SELECT 23 + + 82 AS col2
----
105

query I rowsort
SELECT 66 * + 39 AS col2
----
2574

query I rowsort
SELECT 53 * 73 AS col0
----
3869

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL MIN( DISTINCT + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL MIN ( DISTINCT + 18 )
----
18

query I rowsort
SELECT ALL 85 - - 5 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT COUNT( * ) + 73 * - 50 - + 55 AS col0
----
-3704

skipif mysql # not compatible
query I rowsort label-8369
SELECT COUNT ( * ) + 73 * - 50 - + 55 AS col0
----
-3704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8370
SELECT + - CAST( 94 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-8370
SELECT + - CAST ( 94 AS INTEGER )
----
-94

query I rowsort
SELECT + - COALESCE ( - 23, - 8, - 89 - + 84 + + 12 ) AS col2
----
23

query I rowsort
SELECT - 30 - + + 7 * 42
----
-324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8373
SELECT CAST( NULL AS SIGNED ) / + 50 * + AVG ( DISTINCT 44 ) AS col2, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8373
SELECT CAST ( NULL AS INTEGER ) / + 50 * + AVG ( DISTINCT 44 ) AS col2, + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8374
SELECT - ( CAST( NULL AS DECIMAL ) ) * - - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8374
SELECT - ( CAST ( NULL AS REAL ) ) * - - 99
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8375
SELECT COUNT( * ) DIV 74 + + + 1
----
1

skipif mysql # not compatible
query I rowsort label-8375
SELECT COUNT ( * ) / 74 + + + 1
----
1

query I rowsort
SELECT 15 * 93 * + 92
----
128340

onlyif mysql # DIV for integer division: 
query I rowsort label-8377
SELECT - 71 DIV 98 * + 71 DIV - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8377
SELECT - 71 / 98 * + 71 / - 76 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8378
SELECT COALESCE ( - 49, - ( + + COUNT( * ) ) + + 4, 68 * - 47 + + 16 + - + 92 * - 45 ) - - 25 * - - 64 col0, + 13 AS col0
----
1551
13

skipif mysql # not compatible
query II rowsort label-8378
SELECT COALESCE ( - 49, - ( + + COUNT ( * ) ) + + 4, 68 * - 47 + + 16 + - + 92 * - 45 ) - - 25 * - - 64 col0, + 13 AS col0
----
1551
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL 65 + MAX( 60 ) * ( - 96 ) - COUNT( * ) + 23 AS col0
----
-5673

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL 65 + MAX ( 60 ) * ( - 96 ) - COUNT ( * ) + 23 AS col0
----
-5673

query I rowsort
SELECT 46 + 87 + + 84 + 98 AS col1
----
315

query I rowsort
SELECT 81 - + 89 - + 38 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT + 30 * 86 + - - COUNT( * )
----
2581

skipif mysql # not compatible
query I rowsort label-8382
SELECT + 30 * 86 + - - COUNT ( * )
----
2581

query I rowsort
SELECT 91 * - 97
----
-8827

query I rowsort
SELECT 65 + + 72 AS col2
----
137

query I rowsort
SELECT DISTINCT + 86 * 44 * + 9
----
34056

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8386
SELECT ALL 69 DIV + COUNT( * ) AS col1, + 8 + + 69 * 59 AS col0
----
69
4079

skipif mysql # not compatible
query II rowsort label-8386
SELECT ALL 69 / + COUNT ( * ) AS col1, + 8 + + 69 * 59 AS col0
----
69
4079

query I rowsort
SELECT DISTINCT 4 + - 48 AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8388
SELECT ALL 63 + + 3 + - - 96 + + - 19 * SUM( + 24 ) + COALESCE ( 56, + + 32 ) * + 59 * 30 + CAST( NULL AS SIGNED ) * + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL 63 + + 3 + - - 96 + + - 19 * SUM ( + 24 ) + COALESCE ( 56, + + 32 ) * + 59 * 30 + CAST ( NULL AS INTEGER ) * + 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT 0 + + COALESCE ( + 95, + ( + 77 ), + COALESCE ( - SUM( - 52 ), + 29, - SUM( ALL - 85 ) ) )
----
95

skipif mysql # not compatible
query I rowsort label-8389
SELECT 0 + + COALESCE ( + 95, + ( + 77 ), + COALESCE ( - SUM ( - 52 ), + 29, - SUM ( ALL - 85 ) ) )
----
95

query II rowsort
SELECT 6 * - - 56, - 25 AS col2
----
336
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT CASE + - 5 WHEN + - 48 THEN + - 38 ELSE NULL END * + MAX( ALL + + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT CASE + - 5 WHEN + - 48 THEN + - 38 ELSE NULL END * + MAX ( ALL + + 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT - SUM( - - 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8392
SELECT - SUM ( - - 22 ) AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8393
SELECT ALL + - CASE - COUNT( * ) WHEN + + COUNT( * ) - + NULLIF ( - MAX( 64 ), - ( - - 3 ) ) / 17 + - CASE - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN - CAST( NULL AS DECIMAL ) ELSE - - ( 2 ) END * ( + - 34 ) + + CAST( NULL AS SIGNED ) THEN - 45 WHEN + COALESCE ( - CASE - 84 WHEN - COUNT( * ) THEN 10 WHEN CAST( + 31 AS SIGNED ) / - 76 THEN NULL ELSE NULL END, + + 85 * + + MIN( - 4 ) ) THEN NULL ELSE 34 END - + 16 AS col0, - 45 * + COUNT( * ) col2
----
-50
-45

skipif mysql # not compatible
query II rowsort label-8393
SELECT ALL + - CASE - COUNT ( * ) WHEN + + COUNT ( * ) - + NULLIF ( - MAX ( 64 ), - ( - - 3 ) ) / 17 + - CASE - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN - CAST ( NULL AS REAL ) ELSE - - ( 2 ) END * ( + - 34 ) + + CAST ( NULL AS INTEGER ) THEN - 45 WHEN + COALESCE ( - CASE - 84 WHEN - COUNT ( * ) THEN 10 WHEN CAST ( + 31 AS INTEGER ) / - 76 THEN NULL ELSE NULL END, + + 85 * + + MIN ( - 4 ) ) THEN NULL ELSE 34 END - + 16 AS col0, - 45 * + COUNT ( * ) col2
----
-50
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT CASE 56 WHEN - 72 THEN NULL WHEN 70 THEN COUNT( * ) / - 95 END * - 76 * + MIN( DISTINCT - 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT CASE 56 WHEN - 72 THEN NULL WHEN 70 THEN COUNT ( * ) / - 95 END * - 76 * + MIN ( DISTINCT - 75 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT + NULLIF ( - 36, + COUNT( * ) )
----
-36

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT + NULLIF ( - 36, + COUNT ( * ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT CASE 58 WHEN - 53 THEN - 17 * - 92 * 30 + + 70 + - 40 * + + 93 + 54 + - 38 + 71 WHEN + MIN( DISTINCT 72 ) + 11 / 96 THEN + COUNT( * ) / 33 / + + ( + 99 ) / + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT CASE 58 WHEN - 53 THEN - 17 * - 92 * 30 + + 70 + - 40 * + + 93 + 54 + - 38 + 71 WHEN + MIN ( DISTINCT 72 ) + 11 / 96 THEN + COUNT ( * ) / 33 / + + ( + 99 ) / + COUNT ( * ) END AS col2
----
NULL

query II rowsort
SELECT ( - - 63 ), + 19 - 57 AS col1
----
63
-38

query I rowsort
SELECT ALL + - 80 - - 18 AS col1
----
-62

query I rowsort
SELECT 47 * 82 AS col1
----
3854

query I rowsort
SELECT + 28 + + 98 AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT - - COUNT( * ) + COALESCE ( 69, + ( + + 19 ) + + 91 ) * + COUNT( - 67 )
----
70

skipif mysql # not compatible
query I rowsort label-8401
SELECT - - COUNT ( * ) + COALESCE ( 69, + ( + + 19 ) + + 91 ) * + COUNT ( - 67 )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8402
SELECT DISTINCT + - 38 * + 21 AS col2, + COUNT( * )
----
-798
1

skipif mysql # not compatible
query II rowsort label-8402
SELECT DISTINCT + - 38 * + 21 AS col2, + COUNT ( * )
----
-798
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8403
SELECT ALL CASE - 4 WHEN + 25 THEN NULL WHEN - COUNT( * ) THEN - + 96 ELSE - CAST( + - ( 67 ) AS SIGNED ) * - COUNT( * ) END * 24 + + 99 + NULLIF ( CAST( COUNT( * ) AS SIGNED ), 66 ) DIV 9 col2
----
-1509

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL CASE - 4 WHEN + 25 THEN NULL WHEN - COUNT ( * ) THEN - + 96 ELSE - CAST ( + - ( 67 ) AS INTEGER ) * - COUNT ( * ) END * 24 + + 99 + NULLIF ( CAST ( COUNT ( * ) AS INTEGER ), 66 ) / 9 col2
----
-1509

query I rowsort
SELECT ALL + 79 * - 99
----
-7821

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT DISTINCT + - ( - COALESCE ( - COUNT( * ), COALESCE ( - 65, - + 65 + 39, 94 ) * + 90 * - - COUNT( * ) * - + 30 + + CASE + 24 WHEN - 46 THEN - 30 ELSE + 6 * - 49 + 9 + + - 81 - 70 END + + 90 * - 68 - - 53, 13 + COUNT( DISTINCT - - COALESCE ( - 5, - 18 * + + 43 ) ) + + CASE WHEN NOT + MIN( ALL 55 ) < - 45 THEN NULL WHEN NOT 83 * + - COUNT( * ) + 87 IS NULL THEN - - COUNT( * ) * - 6 ELSE - 74 END ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT + - ( - COALESCE ( - COUNT ( * ), COALESCE ( - 65, - + 65 + 39, 94 ) * + 90 * - - COUNT ( * ) * - + 30 + + CASE + 24 WHEN - 46 THEN - 30 ELSE + 6 * - 49 + 9 + + - 81 - 70 END + + 90 * - 68 - - 53, 13 + COUNT ( DISTINCT - - COALESCE ( - 5, - 18 * + + 43 ) ) + + CASE WHEN NOT + MIN ( ALL 55 ) < - 45 THEN NULL WHEN NOT 83 * + - COUNT ( * ) + 87 IS NULL THEN - - COUNT ( * ) * - 6 ELSE - 74 END ) ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8406
SELECT + 91 + + NULLIF ( COUNT( * ), 42 * COUNT( * ) * COUNT( * ) * - 1 * + CAST( 62 AS SIGNED ) * + - CAST( NULL AS SIGNED ) + - 3 ) DIV - MIN( ALL 46 ) * - - 59 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8406
SELECT + 91 + + NULLIF ( COUNT ( * ), 42 * COUNT ( * ) * COUNT ( * ) * - 1 * + CAST ( 62 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) + - 3 ) / - MIN ( ALL 46 ) * - - 59 AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8407
SELECT ALL + 19 * + CAST( 11 AS SIGNED ) + CAST( NULL AS SIGNED ) - + - 34 / + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL + 19 * + CAST ( 11 AS INTEGER ) + CAST ( NULL AS INTEGER ) - + - 34 / + 61
----
NULL

query I rowsort
SELECT + 47 + + + 95 AS col2
----
142

query I rowsort
SELECT - 59 * - + 6
----
354

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT COALESCE ( - 9, + COUNT( * ) * - 29 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8410
SELECT COALESCE ( - 9, + COUNT ( * ) * - 29 ) AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8411
SELECT ALL 39 * COALESCE ( + 95, + + 16 DIV + 34 ) * + MAX( 7 ) + + 30 AS col0
----
25965

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL 39 * COALESCE ( + 95, + + 16 / + 34 ) * + MAX ( 7 ) + + 30 AS col0
----
25965

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT + MIN( ALL - 40 ) * - 88 + + 92 - + 52 AS col0
----
3560

skipif mysql # not compatible
query I rowsort label-8412
SELECT + MIN ( ALL - 40 ) * - 88 + + 92 - + 52 AS col0
----
3560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8413
SELECT CASE - 0 WHEN 2 * + - 20 + 44 + - 80 + + 53 - + 62 * - + 48 * + - 18 + - 8 THEN + NULLIF ( 62, - 39 * - 35 + + + CAST( NULL AS SIGNED ) * + 93 ) - 89 ELSE + + ( - 97 ) + - 95 END, - 61 AS col1
----
-192
-61

skipif mysql # not compatible
query II rowsort label-8413
SELECT CASE - 0 WHEN 2 * + - 20 + 44 + - 80 + + 53 - + 62 * - + 48 * + - 18 + - 8 THEN + NULLIF ( 62, - 39 * - 35 + + + CAST ( NULL AS INTEGER ) * + 93 ) - 89 ELSE + + ( - 97 ) + - 95 END, - 61 AS col1
----
-192
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8414
SELECT - 11 / 77 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8414
SELECT - 11 / 77 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT + 28 * + 44 / - CASE - CASE + - NULLIF ( - 70, 27 ) WHEN + 32 * + - 61 - 76 + + 40 + + 57 + + - CASE 61 WHEN - + 67 THEN NULL WHEN - 14 THEN 53 END * 72 * + 24 * + - 36 + + - 59 + - 99 + 42 + 72 THEN + MAX( DISTINCT + 72 ) * - 69 - - COUNT( * ) + + CASE 45 WHEN MAX( ALL + 83 ) THEN + + 67 END + + 61 WHEN + + 45 + - + COUNT( ALL 11 ) + - ( + - ( 78 ) ) THEN NULL END WHEN + 74 THEN + + 95 * - 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT + 28 * + 44 / - CASE - CASE + - NULLIF ( - 70, 27 ) WHEN + 32 * + - 61 - 76 + + 40 + + 57 + + - CASE 61 WHEN - + 67 THEN NULL WHEN - 14 THEN 53 END * 72 * + 24 * + - 36 + + - 59 + - 99 + 42 + 72 THEN + MAX ( DISTINCT + 72 ) * - 69 - - COUNT ( * ) + + CASE 45 WHEN MAX ( ALL + 83 ) THEN + + 67 END + + 61 WHEN + + 45 + - + COUNT ( ALL 11 ) + - ( + - ( 78 ) ) THEN NULL END WHEN + 74 THEN + + 95 * - 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8416
SELECT + COUNT( * ) AS col2, 68
----
1
68

skipif mysql # not compatible
query II rowsort label-8416
SELECT + COUNT ( * ) AS col2, 68
----
1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL + MIN( ALL 36 )
----
36

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL + MIN ( ALL 36 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8418
SELECT ALL 25 * + + 33 - + - COUNT( * ), + 20 DIV - 84 AS col0
----
826
0

skipif mysql # not compatible
query II rowsort label-8418
SELECT ALL 25 * + + 33 - + - COUNT ( * ), + 20 / - 84 AS col0
----
826
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8419
SELECT - CASE + 75 WHEN - 40 + 27 THEN + 96 * MAX( + + NULLIF ( 1, 46 * - 60 * - + 89 ) ) * + 57 END * 55 + + 13 - + - 62 * - CAST( NULL AS SIGNED ), 22 AS col1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-8419
SELECT - CASE + 75 WHEN - 40 + 27 THEN + 96 * MAX ( + + NULLIF ( 1, 46 * - 60 * - + 89 ) ) * + 57 END * 55 + + 13 - + - 62 * - CAST ( NULL AS INTEGER ), 22 AS col1
----
NULL
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT MIN( 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-8420
SELECT MIN ( 47 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT + COUNT( * ) - + COUNT( * ) + + + 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8421
SELECT + COUNT ( * ) - + COUNT ( * ) + + + 20 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT MIN( DISTINCT - - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-8422
SELECT MIN ( DISTINCT - - 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL COUNT( * ) - - - ( + 28 )
----
-27

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL COUNT ( * ) - - - ( + 28 )
----
-27

query II rowsort
SELECT 77 AS col2, - 3 AS col2
----
77
-3

query I rowsort
SELECT ALL - 79 * 7 AS col2
----
-553

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT DISTINCT 2 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT 2 / + 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT ALL + SUM( + 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL + SUM ( + 2 ) AS col0
----
2

query I rowsort
SELECT ALL 20 * 7 AS col1
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-8429
SELECT + 90 DIV 32 col0
----
2

skipif mysql # not compatible
query I rowsort label-8429
SELECT + 90 / 32 col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8430
SELECT - MAX( + ( + 86 ) ) * CAST( 19 AS SIGNED ) * COUNT( * ) + + - ( + 63 ) + + 46 * - COUNT( * )
----
-1743

skipif mysql # not compatible
query I rowsort label-8430
SELECT - MAX ( + ( + 86 ) ) * CAST ( 19 AS INTEGER ) * COUNT ( * ) + + - ( + 63 ) + + 46 * - COUNT ( * )
----
-1743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8431
SELECT - - 49 * CASE - - CAST( NULL AS SIGNED ) WHEN 94 * - 28 * 60 / - + MAX( DISTINCT + 54 ) * - 87 + - 76 / MAX( + 25 ) THEN CAST( NULL AS SIGNED ) + 70 WHEN 24 THEN - + 86 - 68 * 29 ELSE + 29 * - 5 - - + 1 + CAST( NULL AS SIGNED ) END * + ( - 46 ) * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8431
SELECT - - 49 * CASE - - CAST ( NULL AS INTEGER ) WHEN 94 * - 28 * 60 / - + MAX ( DISTINCT + 54 ) * - 87 + - 76 / MAX ( + 25 ) THEN CAST ( NULL AS INTEGER ) + 70 WHEN 24 THEN - + 86 - 68 * 29 ELSE + 29 * - 5 - - + 1 + CAST ( NULL AS INTEGER ) END * + ( - 46 ) * + 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8432
SELECT ALL - 43 * CAST( NULL AS SIGNED ) * - CASE 20 WHEN - SUM( - + 7 ) THEN - - ( MAX( + 13 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL - 43 * CAST ( NULL AS INTEGER ) * - CASE 20 WHEN - SUM ( - + 7 ) THEN - - ( MAX ( + 13 ) ) END
----
NULL

query I rowsort
SELECT + 17 + 25 * - 59 AS col1
----
-1458

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT + + 63 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-8434
SELECT + + 63 / 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT DISTINCT - 52 + + COALESCE ( - 63, - MAX( ALL + 0 ) * + ( - 93 ) * SUM( - 23 ) )
----
-115

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT - 52 + + COALESCE ( - 63, - MAX ( ALL + 0 ) * + ( - 93 ) * SUM ( - 23 ) )
----
-115

query I rowsort
SELECT ALL 9 + + 84 AS col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8437
SELECT ALL - + 64 DIV - NULLIF ( 89, - - COUNT( 98 ) - - 86 + + - COALESCE ( 98, + 16 + + - 16, + 80 + - 39 ) ) + + + 89
----
89

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL - + 64 / - NULLIF ( 89, - - COUNT ( 98 ) - - 86 + + - COALESCE ( 98, + 16 + + - 16, + 80 + - 39 ) ) + + + 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT COUNT( + 25 )
----
1

skipif mysql # not compatible
query I rowsort label-8438
SELECT COUNT ( + 25 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT ALL - 2 + 42 * - 91 * - COUNT( * ) AS col1
----
3820

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL - 2 + 42 * - 91 * - COUNT ( * ) AS col1
----
3820

query I rowsort
SELECT DISTINCT 31 + + 22
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL + + 52 * + + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL + + 52 * + + COUNT ( * )
----
52

query I rowsort
SELECT - 75 * + 19 * - - ( + 83 )
----
-118275

query II rowsort
SELECT - 80 + 22 * + 55 AS col1, - 15
----
1130
-15

query I rowsort
SELECT ALL + - ( 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT - 59 - CASE 3 WHEN ( + 57 ) THEN + COUNT( * ) + + 41 * COUNT( * ) * + COUNT( - + 9 ) - - - 12 + 53 + + - MIN( DISTINCT 50 ) + - NULLIF ( + 62, + + 11 - + COUNT( ALL + 72 ) + + COUNT( * ) + 67 + - - 93 / + 49 * - 90 ) * 68 * 35 + + + 43 - - + 29 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8445
SELECT - 59 - CASE 3 WHEN ( + 57 ) THEN + COUNT ( * ) + + 41 * COUNT ( * ) * + COUNT ( - + 9 ) - - - 12 + 53 + + - MIN ( DISTINCT 50 ) + - NULLIF ( + 62, + + 11 - + COUNT ( ALL + 72 ) + + COUNT ( * ) + 67 + - - 93 / + 49 * - 90 ) * 68 * 35 + + + 43 - - + 29 END col2
----
NULL

query I rowsort
SELECT - 41 * - 56
----
2296

onlyif mysql # aggregate syntax: 
query II rowsort label-8447
SELECT + COUNT( + 41 ) AS col2, + 25 AS col1
----
1
25

skipif mysql # not compatible
query II rowsort label-8447
SELECT + COUNT ( + 41 ) AS col2, + 25 AS col1
----
1
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8448
SELECT ALL 10 DIV - 55 * COUNT( * ) + - + 3, + 78 AS col0
----
-3
78

skipif mysql # not compatible
query II rowsort label-8448
SELECT ALL 10 / - 55 * COUNT ( * ) + - + 3, + 78 AS col0
----
-3
78

query I rowsort
SELECT ALL - 86 * + 22 AS col1
----
-1892

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT ( + + CASE 60 WHEN - + 93 THEN + COUNT( * ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8450
SELECT ( + + CASE 60 WHEN - + 93 THEN + COUNT ( * ) END ) AS col2
----
NULL

query I rowsort
SELECT ALL - 13 * - 82 col2
----
1066

query I rowsort
SELECT ( - + 50 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT DISTINCT - 95 * + + NULLIF ( + ( + 6 ), + 3 * + COUNT( * ) / + 64 / + 53 + - 71 ) AS col2
----
-570

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT - 95 * + + NULLIF ( + ( + 6 ), + 3 * + COUNT ( * ) / + 64 / + 53 + - 71 ) AS col2
----
-570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8454
SELECT ALL COUNT( * ) * - MAX( - 92 ) - + CAST( + + 61 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL COUNT ( * ) * - MAX ( - 92 ) - + CAST ( + + 61 AS INTEGER )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8455
SELECT ALL 52 DIV - + 83
----
0

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL 52 / - + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT - 69 * - COUNT( * ) * - COUNT( + ( + 39 ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8456
SELECT - 69 * - COUNT ( * ) * - COUNT ( + ( + 39 ) ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT + CASE + - 37 WHEN + 84 * + - 88 + + 16 * + - 60 THEN MAX( - 87 ) WHEN + + COUNT( * ) + + 57 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8457
SELECT + CASE + - 37 WHEN + 84 * + - 88 + + 16 * + - 60 THEN MAX ( - 87 ) WHEN + + COUNT ( * ) + + 57 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8458
SELECT - ( + + 99 ) + + - 30 DIV + 68 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-8458
SELECT - ( + + 99 ) + + - 30 / + 68 AS col1
----
-99

query I rowsort
SELECT + 10 * + 14 AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT - COUNT( * ) + 7 + + 24
----
30

skipif mysql # not compatible
query I rowsort label-8460
SELECT - COUNT ( * ) + 7 + + 24
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8461
SELECT - CAST( NULL AS SIGNED ) * 1 * 92 + 86 * + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8461
SELECT - CAST ( NULL AS INTEGER ) * 1 * 92 + 86 * + - 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT ALL 51 * - + ( + SUM( CAST( - 69 AS SIGNED ) ) ) * - 91 AS col1
----
-320229

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL 51 * - + ( + SUM ( CAST ( - 69 AS INTEGER ) ) ) * - 91 AS col1
----
-320229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8463
SELECT + CAST( NULL AS SIGNED ) + + 19 + + NULLIF ( + 26, + 30 ) * + CASE + - NULLIF ( - 4, - 86 ) WHEN + 52 THEN NULL ELSE + CAST( - + 99 AS SIGNED ) + + 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8463
SELECT + CAST ( NULL AS INTEGER ) + + 19 + + NULLIF ( + 26, + 30 ) * + CASE + - NULLIF ( - 4, - 86 ) WHEN + 52 THEN NULL ELSE + CAST ( - + 99 AS INTEGER ) + + 11 END
----
NULL

query I rowsort
SELECT - + 85 col1
----
-85

query I rowsort
SELECT 94 * - 19 * - - 25 * - - 55 + - 14 + 77
----
-2455687

query I rowsort
SELECT - ( - - COALESCE ( + - 35, 25 ) )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8467
SELECT 21 + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + ( COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT 21 + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + ( COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT + 14 * + 50 col1
----
700

query I rowsort
SELECT ALL 98 + - + NULLIF ( 7, - 7 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT DISTINCT + 20 + + + MAX( ALL + + 87 )
----
107

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT + 20 + + + MAX ( ALL + + 87 )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT DISTINCT COUNT( * ) * - MIN( DISTINCT - - 33 ) * + + 29 AS col0
----
-957

skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT COUNT ( * ) * - MIN ( DISTINCT - - 33 ) * + + 29 AS col0
----
-957

query I rowsort
SELECT + 17 * + 71 AS col0
----
1207

query II rowsort
SELECT 56 + 90 + ( + 35 ), + 70 + + - 53 + + 48 + + - 73 col1
----
181
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT 47 + - SUM( DISTINCT 11 ) + + + SUM( DISTINCT - 30 )
----
6

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT 47 + - SUM ( DISTINCT 11 ) + + + SUM ( DISTINCT - 30 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT DISTINCT 52 - - MAX( ( 51 ) )
----
103

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT 52 - - MAX ( ( 51 ) )
----
103

query II rowsort
SELECT + 17 AS col0, ( - 8 ) * + 47 + + - 64 AS col1
----
17
-440

query I rowsort
SELECT ALL 87 - - 55 AS col2
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8478
SELECT 90 + + - 17 * + 54 + + - 70 + - + ( 24 ) * - COALESCE ( - + 57, - 66 + + - CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) - + 44 + + 93 ) + + 65 + - 36 * + + 51 * 16 + - 0 col0
----
-31577

skipif mysql # not compatible
query I rowsort label-8478
SELECT 90 + + - 17 * + 54 + + - 70 + - + ( 24 ) * - COALESCE ( - + 57, - 66 + + - CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) - + 44 + + 93 ) + + 65 + - 36 * + + 51 * 16 + - 0 col0
----
-31577

query I rowsort
SELECT 64 * 95 AS col1
----
6080

query II rowsort
SELECT ALL - 35, 1 - - 22 col1
----
-35
23

query I rowsort
SELECT 6 + 91 AS col1
----
97

query I rowsort
SELECT ALL - ( ( + 97 ) )
----
-97

query I rowsort
SELECT 96 * - 96
----
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT - MAX( + ( - - 18 ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT - MAX ( + ( - - 18 ) ) AS col2
----
-18

query I rowsort
SELECT DISTINCT - 65 * - 30 AS col0
----
1950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8486
SELECT 9 * + - COUNT( DISTINCT - 99 ) DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-8486
SELECT 9 * + - COUNT ( DISTINCT - 99 ) / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL + COUNT( * ) * + + 73
----
73

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL + COUNT ( * ) * + + 73
----
73

query I rowsort
SELECT + 32 * + 79 col2
----
2528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8489
SELECT ALL + + 73 + + 14 - 52 * - CAST( NULL AS SIGNED ) / - 19 * - MIN( + + 59 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL + + 73 + + 14 - 52 * - CAST ( NULL AS INTEGER ) / - 19 * - MIN ( + + 59 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 16 + + 22
----
6

query I rowsort
SELECT DISTINCT + + 31 + + - 10 AS col1
----
21

query I rowsort
SELECT ALL 65 + + + COALESCE ( + 45, + + 27 )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT DISTINCT - + 18 * + COUNT( * ) + - 31 + + - 28 * - 31 * + - 80
----
-69489

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT - + 18 * + COUNT ( * ) + - 31 + + - 28 * - 31 * + - 80
----
-69489

query I rowsort
SELECT ALL + 42 + + 54
----
96

query I rowsort
SELECT - 15 + - 52
----
-67

query I rowsort
SELECT 84 * + - 2 AS col1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT DISTINCT + COUNT( ALL 76 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT + COUNT ( ALL 76 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT ALL + - MAX( ALL + ( + 83 ) ) * 51
----
-4233

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL + - MAX ( ALL + ( + 83 ) ) * 51
----
-4233

query II rowsort
SELECT DISTINCT 59, - 55 col0
----
59
-55

query I rowsort
SELECT 84 + - - 8 AS col1
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8501
SELECT 50, SUM( + 42 ) AS col0
----
50
42

skipif mysql # not compatible
query II rowsort label-8501
SELECT 50, SUM ( + 42 ) AS col0
----
50
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT MAX( + 91 ) * - 82
----
-7462

skipif mysql # not compatible
query I rowsort label-8502
SELECT MAX ( + 91 ) * - 82
----
-7462

query I rowsort
SELECT ( + + 35 ) * - 85 * 77 col1
----
-229075

query II rowsort
SELECT ALL 40 * - 35, 95 + - - 56 * 63 AS col2
----
-1400
3623

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT 50 * COUNT( * ) + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-8505
SELECT 50 * COUNT ( * ) + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8506
SELECT DISTINCT - 51, - CASE + 33 WHEN ( + 39 ) + - 17 THEN NULL WHEN + 11 THEN - - 37 * + COUNT( - 42 ) * + + ( - 85 ) + COUNT( * ) ELSE - + 59 * 17 END * + 55 AS col0
----
-51
55165

skipif mysql # not compatible
query II rowsort label-8506
SELECT DISTINCT - 51, - CASE + 33 WHEN ( + 39 ) + - 17 THEN NULL WHEN + 11 THEN - - 37 * + COUNT ( - 42 ) * + + ( - 85 ) + COUNT ( * ) ELSE - + 59 * 17 END * + 55 AS col0
----
-51
55165

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT ALL 4 * + MIN( DISTINCT 73 ) AS col1
----
292

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL 4 * + MIN ( DISTINCT 73 ) AS col1
----
292

query II rowsort
SELECT ALL - 41 col0, 81
----
-41
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8509
SELECT 15 - + COALESCE ( - + 25, - CAST( NULL AS SIGNED ) * - SUM( DISTINCT + 68 ) - - + 77 ) * - + 14 AS col2
----
-335

skipif mysql # not compatible
query I rowsort label-8509
SELECT 15 - + COALESCE ( - + 25, - CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT + 68 ) - - + 77 ) * - + 14 AS col2
----
-335

query I rowsort
SELECT ALL - ( - - COALESCE ( - 30, 75 ) )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT - COUNT( 1 ) * 66 + - - 52 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-8511
SELECT - COUNT ( 1 ) * 66 + - - 52 AS col1
----
-14

query I rowsort
SELECT + 19 * 16 + 22 AS col1
----
326

query II rowsort
SELECT + 53, + 29 AS col1
----
53
29

query II rowsort
SELECT ( - + 97 ), 34 + + + 35 AS col1
----
-97
69

query I rowsort
SELECT - 39 - + 52 AS col1
----
-91

query I rowsort
SELECT ALL + 56 * 66
----
3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8517
SELECT DISTINCT + NULLIF ( - 8, 84 * ( COUNT( * ) ) ) + 29, CAST( NULL AS SIGNED ) AS col0
----
21
NULL

skipif mysql # not compatible
query II rowsort label-8517
SELECT DISTINCT + NULLIF ( - 8, 84 * ( COUNT ( * ) ) ) + 29, CAST ( NULL AS INTEGER ) AS col0
----
21
NULL

query I rowsort
SELECT DISTINCT - 65 + 74
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ALL + COUNT( * ) + - 55 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL + COUNT ( * ) + - 55 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT - - 1 + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8520
SELECT - - 1 + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8521
SELECT ALL + + CAST( NULL AS DECIMAL ) * + 92 * + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL + + CAST ( NULL AS REAL ) * + 92 * + + 92
----
NULL

query I rowsort
SELECT - + 26 + + 18 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-8523
SELECT 80, ( - ( - COUNT( * ) ) ) - 4 + 24 AS col1
----
80
21

skipif mysql # not compatible
query II rowsort label-8523
SELECT 80, ( - ( - COUNT ( * ) ) ) - 4 + 24 AS col1
----
80
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8524
SELECT - 72 * - CAST( 23 AS SIGNED ) col0
----
1656

skipif mysql # not compatible
query I rowsort label-8524
SELECT - 72 * - CAST ( 23 AS INTEGER ) col0
----
1656

query II rowsort
SELECT - 82 AS col1, - 45
----
-82
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT + MAX( DISTINCT - 76 ) * - 77 + - 48 * 66 + - 17
----
2667

skipif mysql # not compatible
query I rowsort label-8526
SELECT + MAX ( DISTINCT - 76 ) * - 77 + - 48 * 66 + - 17
----
2667

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT - 99 DIV + - 15 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8527
SELECT - 99 / + - 15 AS col2
----
6

query I rowsort
SELECT - - 74 * - NULLIF ( - 50, - - 65 * + + 55 ) AS col2
----
3700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8529
SELECT ALL - CAST( NULL AS SIGNED ) - + - 57 * - + 21 * + 84 + - - 27 / - + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL - CAST ( NULL AS INTEGER ) - + - 57 * - + 21 * + 84 + - - 27 / - + 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT - + MAX( DISTINCT - - 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-8530
SELECT - + MAX ( DISTINCT - - 13 ) AS col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-8531
SELECT - 65 DIV + - 9 col1
----
7

skipif mysql # not compatible
query I rowsort label-8531
SELECT - 65 / + - 9 col1
----
7

query I rowsort
SELECT ALL - 54 * - - 59
----
-3186

query I rowsort
SELECT - NULLIF ( - 44, + 77 ) * 91
----
4004

query I rowsort
SELECT ALL + 82 * ( + + 40 ) col0
----
3280

query I rowsort
SELECT - 46 + - 41 * + 58 * - 32
----
76050

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT - NULLIF ( + 63, - COUNT( * ) * 49 ) - COUNT( * ) * - 66 * + NULLIF ( + + 99, - + 95 * - 37 + - 73 + + 27 + - + 60 )
----
6471

skipif mysql # not compatible
query I rowsort label-8536
SELECT - NULLIF ( + 63, - COUNT ( * ) * 49 ) - COUNT ( * ) * - 66 * + NULLIF ( + + 99, - + 95 * - 37 + - 73 + + 27 + - + 60 )
----
6471

query I rowsort
SELECT + 28 + + 26 * + - 76 + + 19 + - 20 AS col0
----
-1949

query I rowsort
SELECT ALL ( + + 34 ) AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8539
SELECT + CAST( - 38 AS SIGNED ) * - 27
----
1026

skipif mysql # not compatible
query I rowsort label-8539
SELECT + CAST ( - 38 AS INTEGER ) * - 27
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ( + + ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8540
SELECT ( + + ( COUNT ( * ) ) )
----
1

query I rowsort
SELECT 19 / - CASE - 98 WHEN - + 72 + 47 / + + 77 THEN - + 99 * - CASE 35 WHEN 95 THEN - 17 * + 92 ELSE NULL END * + 61 - + - 18 + + 81 + + + 67 * - 88 * + + 75 + + 22 + + 18 - + 7 END + - 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8542
SELECT - CAST( NULL AS SIGNED ) / 18 * - + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT - CAST ( NULL AS INTEGER ) / 18 * - + 53 AS col1
----
NULL

query I rowsort
SELECT + 45 + 46
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8544
SELECT ALL + 58 * - 77 * + + CAST( NULL AS SIGNED ) * 85 + + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL + 58 * - 77 * + + CAST ( NULL AS INTEGER ) * 85 + + 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT + 38 + - NULLIF ( - SUM( ALL - 83 ), COUNT( ALL - - 28 ) ) + - CASE 52 WHEN + 80 - - 82 THEN NULL WHEN + - 50 - - 4 THEN NULL ELSE + COUNT( * ) END * + + 47 * 21
----
-1032

skipif mysql # not compatible
query I rowsort label-8545
SELECT + 38 + - NULLIF ( - SUM ( ALL - 83 ), COUNT ( ALL - - 28 ) ) + - CASE 52 WHEN + 80 - - 82 THEN NULL WHEN + - 50 - - 4 THEN NULL ELSE + COUNT ( * ) END * + + 47 * 21
----
-1032

query I rowsort
SELECT - 89 * 7 + - 52 AS col0
----
-675

query II rowsort
SELECT + - 21 * - 59 AS col1, + 87 AS col0
----
1239
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8548
SELECT DISTINCT - 77 * + CAST( + 3 AS SIGNED ) + 83
----
-148

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT - 77 * + CAST ( + 3 AS INTEGER ) + 83
----
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8549
SELECT + - CASE + 27 WHEN + + 35 * + COUNT( * ) * 74 * + + 21 + + 4 + 25 * - COALESCE ( + COUNT( * ), - - 42 + + - CAST( NULL AS SIGNED ) ) THEN + 53 / 79 * + - COALESCE ( 27, - - 33 ) WHEN + - 98 + + MAX( - - 40 ) * + COUNT( * ) - - 57 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT + - CASE + 27 WHEN + + 35 * + COUNT ( * ) * 74 * + + 21 + + 4 + 25 * - COALESCE ( + COUNT ( * ), - - 42 + + - CAST ( NULL AS INTEGER ) ) THEN + 53 / 79 * + - COALESCE ( 27, - - 33 ) WHEN + - 98 + + MAX ( - - 40 ) * + COUNT ( * ) - - 57 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT ALL - 49 * + MAX( DISTINCT - 22 ) + - 91
----
987

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL - 49 * + MAX ( DISTINCT - 22 ) + - 91
----
987

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT + 90 * + 22 - + - 38 + + COUNT( * ) * + 37 AS col2
----
2055

skipif mysql # not compatible
query I rowsort label-8551
SELECT + 90 * + 22 - + - 38 + + COUNT ( * ) * + 37 AS col2
----
2055

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL + SUM( ALL 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL + SUM ( ALL 96 ) AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8553
SELECT + COUNT( * ) * - 18 * 29 - + + CASE - 64 WHEN - + 56 * + + 75 THEN + 70 + + 64 * - + 35 + - 41 + 42 * + + 67 - + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT + COUNT ( * ) * - 18 * 29 - + + CASE - 64 WHEN - + 56 * + + 75 THEN + 70 + + 64 * - + 35 + - 41 + 42 * + + 67 - + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT COALESCE ( + + NULLIF ( 94, - 39 ), + - COUNT( * ) * 53 )
----
94

skipif mysql # not compatible
query I rowsort label-8554
SELECT COALESCE ( + + NULLIF ( 94, - 39 ), + - COUNT ( * ) * 53 )
----
94

query I rowsort
SELECT DISTINCT + ( - 80 ) AS col2
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8556
SELECT ALL - + 86 * - 13 - + 95 DIV - + 51
----
1119

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL - + 86 * - 13 - + 95 / - + 51
----
1119

query I rowsort
SELECT - NULLIF ( + - 81, 52 )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT + - ( 95 ) - 81 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT + - ( 95 ) - 81 + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT - CAST( 78 AS SIGNED ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-8559
SELECT - CAST ( 78 AS INTEGER ) AS col0
----
-78

query II rowsort
SELECT ALL + ( + 49 ) col2, - 10 * 17
----
49
-170

query I rowsort
SELECT - 6 * 97 AS col1
----
-582

query I rowsort
SELECT ALL 76 * 22
----
1672

query I rowsort
SELECT - 33 - 76 * + - NULLIF ( + 63, + 41 )
----
4755

query I rowsort
SELECT + 53 * - 53
----
-2809

query I rowsort
SELECT - 59 * + 20 AS col2
----
-1180

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT ALL NULLIF ( - 15, - 44 * + 24 + - COUNT( * ) + 0 * 35 * 20 )
----
-15

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL NULLIF ( - 15, - 44 * + 24 + - COUNT ( * ) + 0 * 35 * 20 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-8567
SELECT 31 AS col0, MIN( ALL 95 )
----
31
95

skipif mysql # not compatible
query II rowsort label-8567
SELECT 31 AS col0, MIN ( ALL 95 )
----
31
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8568
SELECT - 11 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-8568
SELECT - 11 / + 28
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8569
SELECT DISTINCT - COUNT( * ) + + CASE 6 WHEN 58 THEN NULL WHEN + 74 THEN + - CAST( NULL AS DECIMAL ) * + + 4 * - 77 + - 93 * + 7 + 34 ELSE NULL END + - 46 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT - COUNT ( * ) + + CASE 6 WHEN 58 THEN NULL WHEN + 74 THEN + - CAST ( NULL AS REAL ) * + + 4 * - 77 + - 93 * + 7 + 34 ELSE NULL END + - 46 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8570
SELECT ALL + 51 + + SUM( - - 33 ) AS col2, - COUNT( - - 50 ) * + 94 * - - 76
----
84
-7144

skipif mysql # not compatible
query II rowsort label-8570
SELECT ALL + 51 + + SUM ( - - 33 ) AS col2, - COUNT ( - - 50 ) * + 94 * - - 76
----
84
-7144

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT ALL - COUNT( * ) + - 72
----
-73

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL - COUNT ( * ) + - 72
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT - 93 * - CASE + 72 WHEN - + 8 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 59 END
----
-5487

skipif mysql # not compatible
query I rowsort label-8572
SELECT - 93 * - CASE + 72 WHEN - + 8 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 59 END
----
-5487

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT ALL ( + MIN( DISTINCT + 54 ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL ( + MIN ( DISTINCT + 54 ) ) AS col1
----
54

query I rowsort
SELECT - NULLIF ( + 72, 23 * - 48 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT ALL - SUM( - ( + 83 ) ) + - 23 + 67 / 95 * CASE 8 WHEN + 68 * NULLIF ( + + 23, - - 80 ) * 58 - - 11 THEN 8 * - 17 + - 80 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL - SUM ( - ( + 83 ) ) + - 23 + 67 / 95 * CASE 8 WHEN + 68 * NULLIF ( + + 23, - - 80 ) * 58 - - 11 THEN 8 * - 17 + - 80 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8576
SELECT - MIN( ALL 72 ) - + 28 DIV + MAX( - CAST( 86 AS SIGNED ) )
----
-72

skipif mysql # not compatible
query I rowsort label-8576
SELECT - MIN ( ALL 72 ) - + 28 / + MAX ( - CAST ( 86 AS INTEGER ) )
----
-72

query I rowsort
SELECT 5 + + 82 AS col0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8578
SELECT 64, + 92 * + - 91 * CAST( NULL AS SIGNED ) AS col0
----
64
NULL

skipif mysql # not compatible
query II rowsort label-8578
SELECT 64, + 92 * + - 91 * CAST ( NULL AS INTEGER ) AS col0
----
64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT 24 * - 67 + NULLIF ( + 29, - + 75 * + + 71 + - - 2 ) + 9 + + 3 * COUNT( * ) + + 66 * - + 72 * 62
----
-296191

skipif mysql # not compatible
query I rowsort label-8579
SELECT 24 * - 67 + NULLIF ( + 29, - + 75 * + + 71 + - - 2 ) + 9 + + 3 * COUNT ( * ) + + 66 * - + 72 * 62
----
-296191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT ALL CAST( 62 AS SIGNED ) + + MIN( - - 30 ) / - CAST( NULL AS SIGNED ) * + 16 + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL CAST ( 62 AS INTEGER ) + + MIN ( - - 30 ) / - CAST ( NULL AS INTEGER ) * + 16 + + 25
----
NULL

query I rowsort
SELECT ( - + 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT 90 * - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-8582
SELECT 90 * - COUNT ( * )
----
-90

query II rowsort
SELECT + 27 * + 10 * 9, 19 AS col0
----
2430
19

query I rowsort
SELECT + CASE + + 1 WHEN - + AVG ( + - 40 ) THEN - 73 / - 11 + + - 23 * 93 + - - 0 * ( CASE - 86 WHEN - + 5 THEN NULL WHEN - - 20 + + + 69 THEN NULL ELSE ( - 93 ) END ) ELSE 6 END AS col1
----
6

query I rowsort
SELECT 0 + - - 35 - + 14 * + 67 * + 17
----
-15911

onlyif mysql # aggregate syntax: 
query II rowsort label-8586
SELECT ALL CASE AVG ( 71 ) WHEN + COUNT( ALL - - 52 ) THEN - 62 * + 77 + - 62 - + - 47 + COUNT( DISTINCT - 95 ) ELSE NULL END * + - 72 * 44 col0, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8586
SELECT ALL CASE AVG ( 71 ) WHEN + COUNT ( ALL - - 52 ) THEN - 62 * + 77 + - 62 - + - 47 + COUNT ( DISTINCT - 95 ) ELSE NULL END * + - 72 * 44 col0, - COUNT ( * ) AS col0
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8587
SELECT - COUNT( + 84 ) * - + ( + 57 ) * - 38 * + 94 * - 31 * - 10 + - MIN( + + 41 ) + + 25 DIV 82 * + - 69 * - - 89 + + + 70 + ( 22 )
----
-63117189

skipif mysql # not compatible
query I rowsort label-8587
SELECT - COUNT ( + 84 ) * - + ( + 57 ) * - 38 * + 94 * - 31 * - 10 + - MIN ( + + 41 ) + + 25 / 82 * + - 69 * - - 89 + + + 70 + ( 22 )
----
-63117189

query I rowsort
SELECT DISTINCT - 85 * 23
----
-1955

onlyif mysql # DIV for integer division: 
query I rowsort label-8589
SELECT - 90 DIV + 14 col1
----
-6

skipif mysql # not compatible
query I rowsort label-8589
SELECT - 90 / + 14 col1
----
-6

query II rowsort
SELECT 69 + - - 20 + + ( + + 73 ), 70 * + 17 * + 6 AS col1
----
162
7140

onlyif mysql # DIV for integer division: 
query I rowsort label-8591
SELECT 0 * - 50 * - - 6 DIV + + 82
----
0

skipif mysql # not compatible
query I rowsort label-8591
SELECT 0 * - 50 * - - 6 / + + 82
----
0

query I rowsort
SELECT 90 * + + 45 AS col2
----
4050

query I rowsort
SELECT DISTINCT 22 * + 79 * 91 AS col2
----
158158

query I rowsort
SELECT ALL 81 + + - 19 * 15 AS col1
----
-204

query I rowsort
SELECT DISTINCT 40 + + 81
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8596
SELECT 15 + - - 61 - + 72 - + 57 * - NULLIF ( + + 13, - + ( - NULLIF ( 41, - CAST( + - 7 AS SIGNED ) ) ) + - 51 + - - 42 * - 5 + + 91 ) * + 39
----
28903

skipif mysql # not compatible
query I rowsort label-8596
SELECT 15 + - - 61 - + 72 - + 57 * - NULLIF ( + + 13, - + ( - NULLIF ( 41, - CAST ( + - 7 AS INTEGER ) ) ) + - 51 + - - 42 * - 5 + + 91 ) * + 39
----
28903

query I rowsort
SELECT 25 + + 7 * - 25
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT ALL - CAST( - - ( + + 94 ) AS SIGNED ) col0
----
-94

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL - CAST ( - - ( + + 94 ) AS INTEGER ) col0
----
-94

query I rowsort
SELECT DISTINCT + 41 - + - 30 * - 84
----
-2479

query I rowsort
SELECT 58 * - 78 AS col1
----
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT ALL + - 22 - - CASE + + 35 WHEN + 8 THEN NULL ELSE + COUNT( * ) END AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL + - 22 - - CASE + + 35 WHEN + 8 THEN NULL ELSE + COUNT ( * ) END AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8602
SELECT + 25 * CASE + - SUM( ALL - + 37 ) WHEN + - COUNT( * ) THEN + - 1 * CAST( NULL AS SIGNED ) + - - 8 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT + 25 * CASE + - SUM ( ALL - + 37 ) WHEN + - COUNT ( * ) THEN + - 1 * CAST ( NULL AS INTEGER ) + - - 8 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT 66 * - + MIN( - 30 ) AS col1
----
1980

skipif mysql # not compatible
query I rowsort label-8603
SELECT 66 * - + MIN ( - 30 ) AS col1
----
1980

query I rowsort
SELECT + 30 * - 95 + 99 AS col2
----
-2751

query I rowsort
SELECT 28 * - 31 + - 13
----
-881

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT DISTINCT - COUNT( 85 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT - COUNT ( 85 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - + 17 * + 33 AS col1
----
-561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8608
SELECT 7 * - + CAST( 1 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-8608
SELECT 7 * - + CAST ( 1 AS INTEGER )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT + + COALESCE ( + 92, - 32, + COUNT( * ) * + ( + - COUNT( * ) ) )
----
92

skipif mysql # not compatible
query I rowsort label-8609
SELECT + + COALESCE ( + 92, - 32, + COUNT ( * ) * + ( + - COUNT ( * ) ) )
----
92

query II rowsort
SELECT ALL + 1 * + 95 AS col2, - 73
----
95
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT MIN( DISTINCT - 89 ) * + - 30
----
2670

skipif mysql # not compatible
query I rowsort label-8611
SELECT MIN ( DISTINCT - 89 ) * + - 30
----
2670

query I rowsort
SELECT + 54 - 56
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8613
SELECT CASE 15 WHEN - + 66 THEN - 40 + - 37 - + + CAST( NULL AS DECIMAL ) END * - 31 - - 96 - - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT CASE 15 WHEN - + 66 THEN - 40 + - 37 - + + CAST ( NULL AS REAL ) END * - 31 - - 96 - - COUNT ( * ) col2
----
NULL

query II rowsort
SELECT - 3 AS col1, - ( - 74 ) AS col1
----
-3
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL + 32 + + - 46 - + 75 + COUNT( * ) * + - ( + 42 )
----
-131

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL + 32 + + - 46 - + 75 + COUNT ( * ) * + - ( + 42 )
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8616
SELECT ALL + 23 + + - COUNT( * ) + - 64 + 76 * 75 * - CAST( NULL AS SIGNED ) + - ( + 91 ) * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL + 23 + + - COUNT ( * ) + - 64 + 76 * 75 * - CAST ( NULL AS INTEGER ) + - ( + 91 ) * 23
----
NULL

query I rowsort
SELECT ALL 70 + - + 78 AS col2
----
-8

query II rowsort
SELECT DISTINCT 63 AS col0, + 94 * 4 * + - 89 col2
----
63
-33464

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8619
SELECT ALL 40 + + CAST( NULL AS SIGNED ) + - - 97 AS col0, - 29 * + 57 col0
----
NULL
-1653

skipif mysql # not compatible
query II rowsort label-8619
SELECT ALL 40 + + CAST ( NULL AS INTEGER ) + - - 97 AS col0, - 29 * + 57 col0
----
NULL
-1653

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT DISTINCT COUNT( - + ( - + 63 ) ) + - 75
----
-74

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT COUNT ( - + ( - + 63 ) ) + - 75
----
-74

query I rowsort
SELECT - NULLIF ( 70, COALESCE ( - 60, - + 97 ) )
----
-70

query I rowsort
SELECT + 4 + 12 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT - COUNT( + + 84 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8623
SELECT - COUNT ( + + 84 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8624
SELECT ALL 80 AS col0, COUNT( * ) + 22 AS col2
----
80
23

skipif mysql # not compatible
query II rowsort label-8624
SELECT ALL 80 AS col0, COUNT ( * ) + 22 AS col2
----
80
23

query I rowsort
SELECT + 92 + + 83 + - 85 * + 78 AS col2
----
-6455

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8626
SELECT + 68 + - MAX( + + 43 ) AS col0, COUNT( * ) * + 87 DIV 53 AS col2
----
25
1

skipif mysql # not compatible
query II rowsort label-8626
SELECT + 68 + - MAX ( + + 43 ) AS col0, COUNT ( * ) * + 87 / 53 AS col2
----
25
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8627
SELECT DISTINCT 39 AS col2, + 47 + + MIN( DISTINCT + 88 ) + - - 87 * - 7
----
39
-474

skipif mysql # not compatible
query II rowsort label-8627
SELECT DISTINCT 39 AS col2, + 47 + + MIN ( DISTINCT + 88 ) + - - 87 * - 7
----
39
-474

onlyif mysql # aggregate syntax: 
query II rowsort label-8628
SELECT ALL 91 col1, + 7 * + 87 + - 79 + 74 * + 83 * + COUNT( * ) AS col1
----
91
6672

skipif mysql # not compatible
query II rowsort label-8628
SELECT ALL 91 col1, + 7 * + 87 + - 79 + 74 * + 83 * + COUNT ( * ) AS col1
----
91
6672

query I rowsort
SELECT + 79 * 63 AS col2
----
4977

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT DISTINCT COUNT( + + 6 ) - + 26
----
-25

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT COUNT ( + + 6 ) - + 26
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8631
SELECT ALL COALESCE ( 62, 10 ) * + CAST( + CASE 87 WHEN - 2 THEN - 69 END * ( 42 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL COALESCE ( 62, 10 ) * + CAST ( + CASE 87 WHEN - 2 THEN - 69 END * ( 42 ) AS INTEGER )
----
NULL

query I rowsort
SELECT + 44 + + 86
----
130

query I rowsort
SELECT + NULLIF ( 64, 91 )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT 62 * 23 + 19 DIV + 82 AS col1
----
1426

skipif mysql # not compatible
query I rowsort label-8634
SELECT 62 * 23 + 19 / + 82 AS col1
----
1426

query I rowsort
SELECT - 72 + 32
----
-40

query I rowsort
SELECT DISTINCT + 8 * 93 AS col1
----
744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8637
SELECT - COALESCE ( COUNT( * ), + 93 * + 70 ) DIV COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8637
SELECT - COALESCE ( COUNT ( * ), + 93 * + 70 ) / COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT - ( - 15 ) + 49 * + 12
----
603

onlyif mysql # DIV for integer division: 
query I rowsort label-8639
SELECT ALL + 27 DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL + 27 / 42
----
0

query I rowsort
SELECT ALL 82 * - 31 + - 66
----
-2608

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT COUNT( DISTINCT + 90 ) * 79 + 43 * MAX( - 73 * 40 ) AS col2
----
-125481

skipif mysql # not compatible
query I rowsort label-8641
SELECT COUNT ( DISTINCT + 90 ) * 79 + 43 * MAX ( - 73 * 40 ) AS col2
----
-125481

query I rowsort
SELECT DISTINCT + 9 * - 2 AS col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT + COALESCE ( 90, 24 ) DIV - 64
----
-1

skipif mysql # not compatible
query I rowsort label-8643
SELECT + COALESCE ( 90, 24 ) / - 64
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8644
SELECT - ( 70 ) + + COUNT( ALL ( - 93 ) ) DIV 98
----
-70

skipif mysql # not compatible
query I rowsort label-8644
SELECT - ( 70 ) + + COUNT ( ALL ( - 93 ) ) / 98
----
-70

query I rowsort
SELECT DISTINCT + ( + 56 ) AS col2
----
56

query I rowsort
SELECT ALL 19 * + 39 + 9
----
750

query I rowsort
SELECT - 12 - 0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT + COUNT( * ) * + 43 + - 8 * 66 col1
----
-485

skipif mysql # not compatible
query I rowsort label-8648
SELECT + COUNT ( * ) * + 43 + - 8 * 66 col1
----
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT DISTINCT + 46 * COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT + 46 * COUNT ( * ) AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8650
SELECT DISTINCT 87 * + 10 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT 87 * + 10 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT ALL 56 * MIN( DISTINCT 75 ) + 63
----
4263

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL 56 * MIN ( DISTINCT 75 ) + 63
----
4263

query I rowsort
SELECT DISTINCT + 59 * 14 + 24
----
850

query I rowsort
SELECT DISTINCT 31 * - 97 + + 50
----
-2957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8654
SELECT + 28 + CASE 23 WHEN 64 * + 29 THEN + CAST( - COUNT( * ) AS SIGNED ) END * 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT + 28 + CASE 23 WHEN 64 * + 29 THEN + CAST ( - COUNT ( * ) AS INTEGER ) END * 35 AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( - 85 ) col1
----
-85

query I rowsort
SELECT 74 * + 15 + 32 * 8
----
1366

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT 92 * - 87 + MAX( ALL + 29 + 50 ) AS col0
----
-7925

skipif mysql # not compatible
query I rowsort label-8657
SELECT 92 * - 87 + MAX ( ALL + 29 + 50 ) AS col0
----
-7925

query I rowsort
SELECT - 92 * 27 AS col0
----
-2484

query I rowsort
SELECT - 10 + + 39 AS col1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8660
SELECT DISTINCT ( 47 ) - 1 DIV 3 col1
----
47

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT ( 47 ) - 1 / 3 col1
----
47

query I rowsort
SELECT DISTINCT + 84 * 69 AS col2
----
5796

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT ALL + MIN( DISTINCT 32 ) - SUM( 26 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL + MIN ( DISTINCT 32 ) - SUM ( 26 ) AS col2
----
6

query I rowsort
SELECT DISTINCT - 11 * - 99 AS col1
----
1089

query I rowsort
SELECT DISTINCT + ( 75 ) - + 20
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT + 56 + - SUM( DISTINCT - 86 ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-8665
SELECT + 56 + - SUM ( DISTINCT - 86 ) AS col1
----
142

query I rowsort
SELECT - 26 * 29 AS col0
----
-754

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT + 32 + SUM( DISTINCT 50 + 67 )
----
149

skipif mysql # not compatible
query I rowsort label-8667
SELECT + 32 + SUM ( DISTINCT 50 + 67 )
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-8668
SELECT ALL 38 DIV 16
----
2

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL 38 / 16
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT + 67 * SUM( ALL NULLIF ( 35, 16 ) + 63 )
----
6566

skipif mysql # not compatible
query I rowsort label-8669
SELECT + 67 * SUM ( ALL NULLIF ( 35, 16 ) + 63 )
----
6566

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT ALL SUM( - 69 ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL SUM ( - 69 ) col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT + - COUNT( * ) + 60 * 73
----
4379

skipif mysql # not compatible
query I rowsort label-8671
SELECT + - COUNT ( * ) + 60 * 73
----
4379

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL + COUNT( DISTINCT 72 ) * - 6 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL + COUNT ( DISTINCT 72 ) * - 6 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT + - COUNT( + 29 ) * - 34 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-8673
SELECT + - COUNT ( + 29 ) * - 34 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT + MIN( + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-8674
SELECT + MIN ( + 34 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8675
SELECT + MIN( - 0 ) DIV - 65 + - SUM( ALL 25 ) * - 44
----
1100

skipif mysql # not compatible
query I rowsort label-8675
SELECT + MIN ( - 0 ) / - 65 + - SUM ( ALL 25 ) * - 44
----
1100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8676
SELECT DISTINCT - COUNT( * ) DIV - 7 + 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT - COUNT ( * ) / - 7 + 19 AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8677
SELECT ALL 87 DIV - 79 + - 82 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL 87 / - 79 + - 82 AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-8678
SELECT - 97 DIV 41
----
-2

skipif mysql # not compatible
query I rowsort label-8678
SELECT - 97 / 41
----
-2

query I rowsort
SELECT + + 35 * - 77
----
-2695

query I rowsort
SELECT - 83 * - 32 + + 16 * - 49 col0
----
1872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8681
SELECT ALL + - CAST( + COUNT( ALL 38 ) AS SIGNED ) DIV ( - 73 ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL + - CAST ( + COUNT ( ALL 38 ) AS INTEGER ) / ( - 73 ) + + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT ALL 8 DIV 77 + + 9 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL 8 / 77 + + 9 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT DISTINCT - 1 / MAX( 99 ) + CASE - 5 - 4 WHEN 48 + - 50 * + MAX( DISTINCT + 76 ) THEN ( 84 ) * - 61 + 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT DISTINCT - 1 / MAX ( 99 ) + CASE - 5 - 4 WHEN 48 + - 50 * + MAX ( DISTINCT + 76 ) THEN ( 84 ) * - 61 + 1 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT DISTINCT - ( + NULLIF ( + AVG ( DISTINCT 71 ), + ( - 75 ) * + 17 ) ) * CASE + ( + 85 ) WHEN 98 / - COUNT( * ) THEN NULL WHEN 2 * 19 THEN + 39 + CASE 25 WHEN 86 * CASE + 56 WHEN + 31 * 62 THEN NULL WHEN 19 THEN - 38 END + COUNT( * ) * + 27 THEN 71 END * COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT - ( + NULLIF ( + AVG ( DISTINCT 71 ), + ( - 75 ) * + 17 ) ) * CASE + ( + 85 ) WHEN 98 / - COUNT ( * ) THEN NULL WHEN 2 * 19 THEN + 39 + CASE 25 WHEN 86 * CASE + 56 WHEN + 31 * 62 THEN NULL WHEN 19 THEN - 38 END + COUNT ( * ) * + 27 THEN 71 END * COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8685
SELECT ALL - 31 DIV 90 + COUNT( * ) * + 34
----
34

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL - 31 / 90 + COUNT ( * ) * + 34
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8686
SELECT DISTINCT 17 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT 17 / + 57
----
0

query I rowsort
SELECT + 23 + + 43 AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8688
SELECT - 29 DIV 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8688
SELECT - 29 / 91 AS col0
----
0

query I rowsort
SELECT 90 * 93 AS col1
----
8370

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT - SUM( 27 ) * + 85 col0
----
-2295

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT - SUM ( 27 ) * + 85 col0
----
-2295

query I rowsort
SELECT ALL + 6 - + 50
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT + 51 * - - NULLIF ( NULLIF ( - COUNT( * ), + SUM( + 60 ) + 26 ), 75 * + 83 + 48 * - 51 ) - + 70 * 74
----
-5231

skipif mysql # not compatible
query I rowsort label-8692
SELECT + 51 * - - NULLIF ( NULLIF ( - COUNT ( * ), + SUM ( + 60 ) + 26 ), 75 * + 83 + 48 * - 51 ) - + 70 * 74
----
-5231

query I rowsort
SELECT 18 + + 60 + 27
----
105

query I rowsort
SELECT DISTINCT + 88 * - 87 * 0 col1
----
0

query I rowsort
SELECT 14 * - 20 AS col0
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT 53 - SUM( DISTINCT 23 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-8696
SELECT 53 - SUM ( DISTINCT 23 ) AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8697
SELECT 33 DIV + 22 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8697
SELECT 33 / + 22 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT 40 * CAST( - 33 AS SIGNED ) * ( 24 )
----
-31680

skipif mysql # not compatible
query I rowsort label-8698
SELECT 40 * CAST ( - 33 AS INTEGER ) * ( 24 )
----
-31680

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT COUNT( DISTINCT - 42 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8699
SELECT COUNT ( DISTINCT - 42 ) + + COUNT ( * )
----
2

query I rowsort
SELECT ALL - 96 * - ( + 56 )
----
5376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8701
SELECT ALL - - CAST( NULL AS SIGNED ) + - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 13 AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( - 94 ) AS col0
----
-94

query I rowsort
SELECT ALL 71 + - 34 AS col2
----
37

query I rowsort
SELECT DISTINCT + + 23 * 98 + 27
----
2281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8705
SELECT - MAX( ALL + - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) + + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT - MAX ( ALL + - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) + + 61 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8706
SELECT CASE 64 WHEN + 41 THEN + MIN( + 25 ) WHEN + COALESCE ( 4, - CAST( 82 AS SIGNED ) + 80 ) / - CASE 81 - 2 WHEN COALESCE ( + COUNT( ALL 28 ), - 32 ) * - 21 THEN 43 WHEN + 16 * - 81 THEN 41 + 48 * 48 ELSE 80 END THEN + 10 * 58 ELSE 89 END * 57 AS col2
----
5073

skipif mysql # not compatible
query I rowsort label-8706
SELECT CASE 64 WHEN + 41 THEN + MIN ( + 25 ) WHEN + COALESCE ( 4, - CAST ( 82 AS INTEGER ) + 80 ) / - CASE 81 - 2 WHEN COALESCE ( + COUNT ( ALL 28 ), - 32 ) * - 21 THEN 43 WHEN + 16 * - 81 THEN 41 + 48 * 48 ELSE 80 END THEN + 10 * 58 ELSE 89 END * 57 AS col2
----
5073

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT DISTINCT - 2 + COUNT( * ) + 70 col0
----
69

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT - 2 + COUNT ( * ) + 70 col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT ALL + COUNT( * ) + + - 20 + 24 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL + COUNT ( * ) + + - 20 + 24 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT NULLIF ( + + 33, 13 - NULLIF ( 23, COUNT( * ) ) ) + 53
----
86

skipif mysql # not compatible
query I rowsort label-8709
SELECT NULLIF ( + + 33, 13 - NULLIF ( 23, COUNT ( * ) ) ) + 53
----
86

query I rowsort
SELECT 64 * + + 37 + + 25
----
2393

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT ALL + + 56 + COUNT( * ) - - 32
----
89

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL + + 56 + COUNT ( * ) - - 32
----
89

query I rowsort
SELECT 61 + - ( 21 ) AS col2
----
40

query I rowsort
SELECT ALL 17 + - 87
----
-70

query I rowsort
SELECT DISTINCT 76 * + 37
----
2812

query II rowsort
SELECT + 54 AS col2, - 25 col2
----
54
-25

query II rowsort
SELECT DISTINCT - 61 AS col2, 62
----
-61
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8717
SELECT ALL 11 - + ( - 68 ) - 43 DIV + 45 * 59 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL 11 - + ( - 68 ) - 43 / + 45 * 59 AS col2
----
79

query I rowsort
SELECT 99 + - 44
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT 38 + - + 7 * + - ( + 55 ) * + ( + 99 * + COUNT( * ) ) - + 67 * - COUNT( * ) AS col2
----
38220

skipif mysql # not compatible
query I rowsort label-8719
SELECT 38 + - + 7 * + - ( + 55 ) * + ( + 99 * + COUNT ( * ) ) - + 67 * - COUNT ( * ) AS col2
----
38220

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT 44 - + COUNT( * ) * - 67 * NULLIF ( - 4, + ( + ( 97 ) ) * ( 2 ) )
----
-224

skipif mysql # not compatible
query I rowsort label-8720
SELECT 44 - + COUNT ( * ) * - 67 * NULLIF ( - 4, + ( + ( 97 ) ) * ( 2 ) )
----
-224

query I rowsort
SELECT 11 * - 14 + + 38
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT DISTINCT - MIN( DISTINCT - - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT - MIN ( DISTINCT - - 53 )
----
-53

query II rowsort
SELECT 91 AS col1, ( + 4 )
----
91
4

query I rowsort
SELECT DISTINCT 10 - + 87 * 34
----
-2948

query I rowsort
SELECT ALL - 11 * ( - + 94 )
----
1034

query I rowsort
SELECT 44 + - 75
----
-31

query I rowsort
SELECT 14 * - 43 AS col2
----
-602

query I rowsort
SELECT 50 * + NULLIF ( - + NULLIF ( 72, + 76 * - 77 ), 7 )
----
-3600

query II rowsort
SELECT 18 AS col0, - 35 + + - 13 * - 24 AS col2
----
18
277

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT ( - 57 ) * 94 + MIN( ALL + 13 )
----
-5345

skipif mysql # not compatible
query I rowsort label-8730
SELECT ( - 57 ) * 94 + MIN ( ALL + 13 )
----
-5345

query I rowsort
SELECT DISTINCT + 57 * - 71 AS col0
----
-4047

query II rowsort
SELECT 34 col2, 62 col1
----
34
62

query I rowsort
SELECT ALL + 39 * 8 AS col2
----
312

onlyif mysql # DIV for integer division: 
query I rowsort label-8734
SELECT 49 + ( + 37 ) + 62 DIV 2
----
117

skipif mysql # not compatible
query I rowsort label-8734
SELECT 49 + ( + 37 ) + 62 / 2
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8735
SELECT ALL CAST( NULL AS SIGNED ) + + 83 + - - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL CAST ( NULL AS INTEGER ) + + 83 + - - 57
----
NULL

query I rowsort
SELECT ALL + 9 + - + 57 AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8737
SELECT DISTINCT + COALESCE ( - - COALESCE ( - 23, COUNT( * ) DIV COALESCE ( + COUNT( * ), COUNT( * ) * 49 ), + CAST( 46 AS SIGNED ), - CAST( + 96 AS SIGNED ) * + 20 ), + COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT + COALESCE ( - - COALESCE ( - 23, COUNT ( * ) / COALESCE ( + COUNT ( * ), COUNT ( * ) * 49 ), + CAST ( 46 AS INTEGER ), - CAST ( + 96 AS INTEGER ) * + 20 ), + COUNT ( * ) )
----
-23

query II rowsort
SELECT - 36, 54 AS col0
----
-36
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT MAX( ALL + 61 ) + 87
----
148

skipif mysql # not compatible
query I rowsort label-8739
SELECT MAX ( ALL + 61 ) + 87
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8740
SELECT CAST( NULL AS SIGNED ) + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8740
SELECT CAST ( NULL AS INTEGER ) + + 88
----
NULL

query I rowsort
SELECT ALL - 73 + + 55 + + 59 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT - 91 * - + COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8742
SELECT - 91 * - + COUNT ( * ) AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8743
SELECT DISTINCT - 57 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT - 57 / + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT - ( + COUNT( * ) ) + + - 88 + + 57 * 63 AS col1
----
3502

skipif mysql # not compatible
query I rowsort label-8744
SELECT - ( + COUNT ( * ) ) + + - 88 + + 57 * 63 AS col1
----
3502

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8745
SELECT ALL - 24 * + 83 DIV COUNT( * ) + - 72
----
-2064

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL - 24 * + 83 / COUNT ( * ) + - 72
----
-2064

query II rowsort
SELECT + 20 AS col0, + 74
----
20
74

query I rowsort
SELECT ALL - 13 + - 66 + - 88 AS col1
----
-167

onlyif mysql # DIV for integer division: 
query I rowsort label-8748
SELECT DISTINCT + 90 * - 0 DIV - ( + 69 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT + 90 * - 0 / - ( + 69 ) AS col1
----
0

query I rowsort
SELECT ALL + 32 + 20 + + ( + 39 )
----
91

query I rowsort
SELECT 76 * + 43 + - + ( 66 )
----
3202

query I rowsort
SELECT ALL - 63 * - 72
----
4536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8752
SELECT COUNT( * ) DIV + ( ( 44 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8752
SELECT COUNT ( * ) / + ( ( 44 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT ALL + MAX( DISTINCT + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL + MAX ( DISTINCT + 66 ) AS col1
----
66

query II rowsort
SELECT 75, 58 * NULLIF ( 84, 38 ) col0
----
75
4872

query I rowsort
SELECT - - 8 * - + 83 * - 40 + 32 * 71 AS col2
----
28832

onlyif mysql # DIV for integer division: 
query I rowsort label-8756
SELECT - NULLIF ( 39, 68 ) DIV + 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8756
SELECT - NULLIF ( 39, 68 ) / + 52 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8757
SELECT DISTINCT COUNT( * ) DIV + 4 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT COUNT ( * ) / + 4 * - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT ALL 57 * + COUNT( * ) col2
----
57

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL 57 * + COUNT ( * ) col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT + CASE + 23 WHEN + COUNT( * ) THEN + + 9 + ( - AVG ( - 46 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT + CASE + 23 WHEN + COUNT ( * ) THEN + + 9 + ( - AVG ( - 46 ) ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 4 * - + 90 col2
----
-360

query I rowsort
SELECT - 10 + - - 33
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT MAX( ALL + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-8762
SELECT MAX ( ALL + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL 21 * ( + + 60 ) * + COUNT( * )
----
1260

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL 21 * ( + + 60 ) * + COUNT ( * )
----
1260

onlyif mysql # aggregate syntax: 
query II rowsort label-8764
SELECT MAX( 16 ) AS col1, 15 * 69 - 18 AS col0
----
16
1017

skipif mysql # not compatible
query II rowsort label-8764
SELECT MAX ( 16 ) AS col1, 15 * 69 - 18 AS col0
----
16
1017

query I rowsort
SELECT + 33 * - NULLIF ( - 66, - ( 56 ) )
----
2178

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT COUNT( DISTINCT 86 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8766
SELECT COUNT ( DISTINCT 86 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT COUNT( ALL 60 )
----
1

skipif mysql # not compatible
query I rowsort label-8767
SELECT COUNT ( ALL 60 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT + MIN( - 80 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8768
SELECT + MIN ( - 80 ) AS col2
----
-80

query I rowsort
SELECT + 97 * - + 71 AS col1
----
-6887

onlyif mysql # aggregate syntax: 
query II rowsort label-8770
SELECT ALL COUNT( * ) + 1 AS col2, 26 * - - 60 AS col2
----
2
1560

skipif mysql # not compatible
query II rowsort label-8770
SELECT ALL COUNT ( * ) + 1 AS col2, 26 * - - 60 AS col2
----
2
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT COUNT( DISTINCT - 45 )
----
1

skipif mysql # not compatible
query I rowsort label-8771
SELECT COUNT ( DISTINCT - 45 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8772
SELECT ALL + 35 + 77 DIV + - 84 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL + 35 + 77 / + - 84 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT ALL - 79 + - MIN( 82 )
----
-161

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL - 79 + - MIN ( 82 )
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT + + 99 - - 60 * - - COUNT( * ) * COUNT( DISTINCT ( + 47 ) ) AS col0
----
159

skipif mysql # not compatible
query I rowsort label-8774
SELECT + + 99 - - 60 * - - COUNT ( * ) * COUNT ( DISTINCT ( + 47 ) ) AS col0
----
159

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8775
SELECT ALL - CAST( NULL AS DECIMAL ) + + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL - CAST ( NULL AS REAL ) + + 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT - NULLIF ( 65, + 54 * - COALESCE ( - 38, + COUNT( * ), 47 / + 88 ) * 72 + - ( - 66 ) * AVG ( ALL 91 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-8776
SELECT - NULLIF ( 65, + 54 * - COALESCE ( - 38, + COUNT ( * ), 47 / + 88 ) * 72 + - ( - 66 ) * AVG ( ALL 91 ) )
----
-65

query I rowsort
SELECT DISTINCT + - 43 * + 95 col0
----
-4085

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT ALL - 27 * - MIN( DISTINCT + - 99 ) * + 8 - COUNT( * ) * 92 + + 85
----
-21391

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL - 27 * - MIN ( DISTINCT + - 99 ) * + 8 - COUNT ( * ) * 92 + + 85
----
-21391

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT + 89 * ( + COUNT( ALL + 97 ) ) + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-8779
SELECT + 89 * ( + COUNT ( ALL + 97 ) ) + COUNT ( * )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8780
SELECT - - COUNT( * ) * + - 64 + - - 6 - + 1 DIV 50
----
-58

skipif mysql # not compatible
query I rowsort label-8780
SELECT - - COUNT ( * ) * + - 64 + - - 6 - + 1 / 50
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL + ( + - 30 ) + COUNT( + 19 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL + ( + - 30 ) + COUNT ( + 19 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT - + 56 - 55 * - - COUNT( * )
----
-111

skipif mysql # not compatible
query I rowsort label-8782
SELECT - + 56 - 55 * - - COUNT ( * )
----
-111

query I rowsort
SELECT + + ( - 85 ) + - - 23
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-8784
SELECT + 92 + - + 61 DIV - 92 + - - ( + 39 ) AS col2
----
131

skipif mysql # not compatible
query I rowsort label-8784
SELECT + 92 + - + 61 / - 92 + - - ( + 39 ) AS col2
----
131

query I rowsort
SELECT - 5 + 41
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT - COUNT( * ) * - ( 35 ) * + COUNT( * ) + 90 + + COUNT( * )
----
126

skipif mysql # not compatible
query I rowsort label-8786
SELECT - COUNT ( * ) * - ( 35 ) * + COUNT ( * ) + 90 + + COUNT ( * )
----
126

query I rowsort
SELECT - 79 * - + 63 AS col0
----
4977

query I rowsort
SELECT ALL - ( - - 92 ) * 90 * 62
----
-513360

query I rowsort
SELECT - 39 * - 58 + 15 * - + 97 + + + 15 + 41 AS col2
----
863

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT - 99 - - ( - COUNT( DISTINCT + + 33 ) ) + + + 84 * - 31
----
-2704

skipif mysql # not compatible
query I rowsort label-8790
SELECT - 99 - - ( - COUNT ( DISTINCT + + 33 ) ) + + + 84 * - 31
----
-2704

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8791
SELECT 47 DIV 74 + - 19, - ( + CASE + ( - 21 ) WHEN - 74 THEN NULL WHEN 56 THEN + AVG ( DISTINCT 36 ) * - MIN( ALL 57 ) END ) AS col1
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-8791
SELECT 47 / 74 + - 19, - ( + CASE + ( - 21 ) WHEN - 74 THEN NULL WHEN 56 THEN + AVG ( DISTINCT 36 ) * - MIN ( ALL 57 ) END ) AS col1
----
-19
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8792
SELECT DISTINCT + 56 DIV 42
----
1

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT + 56 / 42
----
1

query I rowsort
SELECT - 46 + + 91 * - ( - CASE + 57 WHEN 34 THEN - 33 + 97 END ) - 30 / - 73 AS col2
----
NULL

query II rowsort
SELECT ALL + 99 AS col0, - 40 AS col2
----
99
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-8795
SELECT - 64 + + + 72 DIV - 55 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-8795
SELECT - 64 + + + 72 / - 55 AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8796
SELECT DISTINCT + ( + + 85 ) * + 97 * - CAST( NULL AS SIGNED ) * 49 * 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT + ( + + 85 ) * + 97 * - CAST ( NULL AS INTEGER ) * 49 * 35 AS col1
----
NULL

query I rowsort
SELECT - 51 * - 19
----
969

query I rowsort
SELECT - 10 * + 20
----
-200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT + 1 * 41 + CAST( - 65 AS SIGNED ) * 69 AS col1
----
-4444

skipif mysql # not compatible
query I rowsort label-8799
SELECT + 1 * 41 + CAST ( - 65 AS INTEGER ) * 69 AS col1
----
-4444

query I rowsort
SELECT ALL + ( + + 9 ) col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8801
SELECT + NULLIF ( - COALESCE ( - SUM( DISTINCT 34 ), - + 56 DIV ( COALESCE ( + 74, - 28 ) * 45 ), 62 + + 5 ), + 83 ) DIV 81 col1
----
0

skipif mysql # not compatible
query I rowsort label-8801
SELECT + NULLIF ( - COALESCE ( - SUM ( DISTINCT 34 ), - + 56 / ( COALESCE ( + 74, - 28 ) * 45 ), 62 + + 5 ), + 83 ) / 81 col1
----
0

query I rowsort
SELECT + COALESCE ( - 17, 99, 6 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL ( + 21 ) * - - MAX( - + 74 ) + - 61
----
-1615

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL ( + 21 ) * - - MAX ( - + 74 ) + - 61
----
-1615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8804
SELECT ALL + 52 * + 90 + 63 * CAST( NULL AS SIGNED ) + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL + 52 * + 90 + 63 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - 56 * - - 3 * + 15
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL + 3 * - 64 + - - 30 + 42 + 36 - COUNT( * ) * - 63
----
-21

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + 3 * - 64 + - - 30 + 42 + 36 - COUNT ( * ) * - 63
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8807
SELECT DISTINCT + CAST( ( - - COUNT( * ) ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT + CAST ( ( - - COUNT ( * ) ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT ALL 75 * + + 0 + + ( - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL 75 * + + 0 + + ( - + COUNT ( * ) )
----
-1

query I rowsort
SELECT DISTINCT 69 * 57 + - 94 AS col2
----
3839

query I rowsort
SELECT DISTINCT 16 * - 92 + - - ( - 48 ) AS col2
----
-1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT ALL + 28 * - 52 * 66 + + CAST( + 30 AS SIGNED )
----
-96066

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL + 28 * - 52 * 66 + + CAST ( + 30 AS INTEGER )
----
-96066

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT DISTINCT - ( - 40 ) * + + COUNT( 29 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT - ( - 40 ) * + + COUNT ( 29 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL CASE + 91 WHEN - 76 THEN NULL WHEN + - 15 THEN NULL WHEN - + 74 THEN NULL ELSE MIN( ALL - 33 ) END AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL CASE + 91 WHEN - 76 THEN NULL WHEN + - 15 THEN NULL WHEN - + 74 THEN NULL ELSE MIN ( ALL - 33 ) END AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8814
SELECT ALL + 34, SUM( DISTINCT 53 ) + + 35 col2
----
34
88

skipif mysql # not compatible
query II rowsort label-8814
SELECT ALL + 34, SUM ( DISTINCT 53 ) + + 35 col2
----
34
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8815
SELECT + - 76 + + 38 + + 70 + - NULLIF ( + + COALESCE ( - 25, 21 * + 64, 75 - 45 * 63 ), 43 ) * + CAST( NULL AS DECIMAL ) * + 54 * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT + - 76 + + 38 + + 70 + - NULLIF ( + + COALESCE ( - 25, 21 * + 64, 75 - 45 * 63 ), 43 ) * + CAST ( NULL AS REAL ) * + 54 * 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT DISTINCT + 71 * - + 28 - + COUNT( * ) + + 39 - - COUNT( * ) * 87 AS col1
----
-1863

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT + 71 * - + 28 - + COUNT ( * ) + + 39 - - COUNT ( * ) * 87 AS col1
----
-1863

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT + + 2 * + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8817
SELECT + + 2 * + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT ALL - COUNT( * ) - 5
----
-6

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL - COUNT ( * ) - 5
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8819
SELECT DISTINCT + AVG ( DISTINCT + 17 ) / + 29 + + CAST( NULL AS SIGNED ) * - - ( ( 16 ) ) + COUNT( * ) * 92 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT + AVG ( DISTINCT + 17 ) / + 29 + + CAST ( NULL AS INTEGER ) * - - ( ( 16 ) ) + COUNT ( * ) * 92 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT DISTINCT SUM( DISTINCT + - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT SUM ( DISTINCT + - 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT DISTINCT ( - 76 ) - COUNT( ALL + 3 )
----
-77

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT ( - 76 ) - COUNT ( ALL + 3 )
----
-77

query I rowsort
SELECT 47 * - 65 * 98 AS col1
----
-299390

query I rowsort
SELECT - 37 + + + 74 AS col0
----
37

query II rowsort
SELECT ALL + 49, 25 - 24 * - 35 col0
----
49
865

onlyif mysql # DIV for integer division: 
query I rowsort label-8825
SELECT DISTINCT + 13 * + 1 DIV + + 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT + 13 * + 1 / + + 19 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT - 94 DIV + + 26
----
-3

skipif mysql # not compatible
query I rowsort label-8826
SELECT - 94 / + + 26
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8827
SELECT - 64 / + - CASE 19 WHEN MAX( + 97 ) + 62 * - 11 THEN 12 + 59 WHEN - 25 / + AVG ( + 43 ) THEN NULL WHEN - 65 * 42 + - 98 * 81 THEN NULL ELSE + MIN( - 26 ) END + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8827
SELECT - 64 / + - CASE 19 WHEN MAX ( + 97 ) + 62 * - 11 THEN 12 + 59 WHEN - 25 / + AVG ( + 43 ) THEN NULL WHEN - 65 * 42 + - 98 * 81 THEN NULL ELSE + MIN ( - 26 ) END + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL - 80 * - + COUNT( * ) + - - MAX( ALL 72 ) col0
----
152

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL - 80 * - + COUNT ( * ) + - - MAX ( ALL 72 ) col0
----
152

query II rowsort
SELECT + 3 * + 63 + 60, 87 AS col2
----
249
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8830
SELECT ALL + 69 DIV - 42
----
-1

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL + 69 / - 42
----
-1

query II rowsort
SELECT DISTINCT 99 AS col0, + 74 col2
----
99
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT DISTINCT SUM( + 86 ) * - 5 * - NULLIF ( 98, - 85 + 99 ) + + 93
----
42233

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT SUM ( + 86 ) * - 5 * - NULLIF ( 98, - 85 + 99 ) + + 93
----
42233

query I rowsort
SELECT 37 * 40 AS col0
----
1480

onlyif mysql # DIV for integer division: 
query I rowsort label-8834
SELECT ALL COALESCE ( + 83, + 92, + - 50 ) * 98 DIV 33 * 50 AS col0
----
12300

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL COALESCE ( + 83, + 92, + - 50 ) * 98 / 33 * 50 AS col0
----
12300

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT DISTINCT 87 + ( + COUNT( * ) ) * + + CASE - COUNT( * ) WHEN NULLIF ( + 57, + ( 15 ) ) * 2 - 1 THEN 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT 87 + ( + COUNT ( * ) ) * + + CASE - COUNT ( * ) WHEN NULLIF ( + 57, + ( 15 ) ) * 2 - 1 THEN 96 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8836
SELECT ALL - MIN( - 70 ) AS col2, COALESCE ( 95, 62 * - 67 ) AS col2
----
70
95

skipif mysql # not compatible
query II rowsort label-8836
SELECT ALL - MIN ( - 70 ) AS col2, COALESCE ( 95, 62 * - 67 ) AS col2
----
70
95

query I rowsort
SELECT ALL - 80 + + + ( - 48 ) * 29 AS col2
----
-1472

query I rowsort
SELECT ( - 35 ) * - - 51 + + 80 AS col1
----
-1705

query I rowsort
SELECT 63 * + - 70
----
-4410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8840
SELECT - 59 * 18 * + COUNT( * ) - - - 33 + + 87 DIV - COALESCE ( 93, - 80, 22 - COUNT( * ), 17 ) AS col2
----
-1095

skipif mysql # not compatible
query I rowsort label-8840
SELECT - 59 * 18 * + COUNT ( * ) - - - 33 + + 87 / - COALESCE ( 93, - 80, 22 - COUNT ( * ), 17 ) AS col2
----
-1095

query II rowsort
SELECT 34 AS col1, ( - - 16 ) + - - 76 AS col2
----
34
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL - NULLIF ( + COUNT( * ), + 19 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL - NULLIF ( + COUNT ( * ), + 19 ) col1
----
-1

query I rowsort
SELECT ALL - 53 + 86 * - 23 - + - 90
----
-1941

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT ALL 86 + + SUM( ALL - 40 ) - + + 47 * + 62 AS col2
----
-2868

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL 86 + + SUM ( ALL - 40 ) - + + 47 * + 62 AS col2
----
-2868

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT DISTINCT - MIN( 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT - MIN ( 15 ) AS col2
----
-15

query I rowsort
SELECT 53 * + 15
----
795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8847
SELECT ALL + 80 + COUNT( * ) DIV + 30
----
80

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL + 80 + COUNT ( * ) / + 30
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8848
SELECT ALL + CAST( NULL AS SIGNED ) / - 25 / - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL + CAST ( NULL AS INTEGER ) / - 25 / - 32
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8849
SELECT ALL - COUNT( + 93 ) + + 11 DIV + - 52 col2, + 2 AS col2
----
-1
2

skipif mysql # not compatible
query II rowsort label-8849
SELECT ALL - COUNT ( + 93 ) + + 11 / + - 52 col2, + 2 AS col2
----
-1
2

query II rowsort
SELECT + 38 AS col0, 89 + 29
----
38
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL + 90 * + - COUNT( * ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL + 90 * + - COUNT ( * ) AS col0
----
-90

query I rowsort
SELECT DISTINCT - 35 + ( + 7 ) * 53
----
336

query I rowsort
SELECT ALL + 81 * ( + + 87 )
----
7047

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT ALL - 18 + COUNT( * ) + + - 35 * 47 col0
----
-1662

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL - 18 + COUNT ( * ) + + - 35 * 47 col0
----
-1662

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT 97 * 73 + 80 + + COUNT( * ) AS col2
----
7162

skipif mysql # not compatible
query I rowsort label-8855
SELECT 97 * 73 + 80 + + COUNT ( * ) AS col2
----
7162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8856
SELECT ALL + - 22 - - CAST( COUNT( * ) AS SIGNED ) + + 19 - + - 3 * + 82 + + 64
----
308

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL + - 22 - - CAST ( COUNT ( * ) AS INTEGER ) + + 19 - + - 3 * + 82 + + 64
----
308

query I rowsort
SELECT 82 * + - ( + 65 )
----
-5330

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT - 42 + 80 * 68 + COUNT( * ) * 82 AS col0
----
5480

skipif mysql # not compatible
query I rowsort label-8858
SELECT - 42 + 80 * 68 + COUNT ( * ) * 82 AS col0
----
5480

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT 81 * NULLIF ( + 20, + 68 * + + 7 * + 78 ) * ( COUNT( * ) ) + 71 AS col2
----
1691

skipif mysql # not compatible
query I rowsort label-8859
SELECT 81 * NULLIF ( + 20, + 68 * + + 7 * + 78 ) * ( COUNT ( * ) ) + 71 AS col2
----
1691

query I rowsort
SELECT ALL 95 - - 76
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT 61 * + COUNT( * ) + - 84 - 73 * + COUNT( * ) + MIN( 3 ) * 61
----
87

skipif mysql # not compatible
query I rowsort label-8861
SELECT 61 * + COUNT ( * ) + - 84 - 73 * + COUNT ( * ) + MIN ( 3 ) * 61
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT + 34 * - + COUNT( * ) * - - 27 * COUNT( * ) AS col2
----
-918

skipif mysql # not compatible
query I rowsort label-8862
SELECT + 34 * - + COUNT ( * ) * - - 27 * COUNT ( * ) AS col2
----
-918

query I rowsort
SELECT ALL - 84 * 31 - - 45 * + 80 * + + 44 AS col1
----
155796

query I rowsort
SELECT ALL + ( + + 64 ) AS col1
----
64

query II rowsort
SELECT ALL 7 col0, + 9 + + + 53
----
7
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8866
SELECT 6 AS col1, MAX( 63 ) * + - 45 + + SUM( ALL + 44 ) AS col2
----
6
-2791

skipif mysql # not compatible
query II rowsort label-8866
SELECT 6 AS col1, MAX ( 63 ) * + - 45 + + SUM ( ALL + 44 ) AS col2
----
6
-2791

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL 84 + MIN( - 49 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL 84 + MIN ( - 49 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT COUNT( * ) - 37 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-8868
SELECT COUNT ( * ) - 37 AS col2
----
-36

query I rowsort
SELECT 44 * 15 AS col0
----
660

onlyif mysql # aggregate syntax: 
query II rowsort label-8870
SELECT - MIN( + + 13 ) AS col2, 14
----
-13
14

skipif mysql # not compatible
query II rowsort label-8870
SELECT - MIN ( + + 13 ) AS col2, 14
----
-13
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT COUNT( * ) + + + 48 + - 87 + - + 63 - - + 44
----
-57

skipif mysql # not compatible
query I rowsort label-8871
SELECT COUNT ( * ) + + + 48 + - 87 + - + 63 - - + 44
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-8872
SELECT 63 DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-8872
SELECT 63 / - 58
----
-1

query I rowsort
SELECT ALL 99 + 21 * + 25 * 63
----
33174

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT 34 + - - COALESCE ( 5, - COALESCE ( 80, + CASE + 39 WHEN 41 + + 22 THEN + 65 + 44 ELSE 28 + 38 END * - 48, - COUNT( * ) ) )
----
39

skipif mysql # not compatible
query I rowsort label-8874
SELECT 34 + - - COALESCE ( 5, - COALESCE ( 80, + CASE + 39 WHEN 41 + + 22 THEN + 65 + 44 ELSE 28 + 38 END * - 48, - COUNT ( * ) ) )
----
39

query I rowsort
SELECT 69 * + 25 AS col1
----
1725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8876
SELECT ALL 80 * 22 + 23 / - CAST( NULL AS SIGNED ) / 87 * + 77 * 97 + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL 80 * 22 + 23 / - CAST ( NULL AS INTEGER ) / 87 * + 77 * 97 + 89 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 45 * + + 9 * - + 16 AS col1
----
-6480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8878
SELECT COUNT( * ) / - - 28 * - + 74 + + CAST( NULL AS SIGNED ) * SUM( + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT COUNT ( * ) / - - 28 * - + 74 + + CAST ( NULL AS INTEGER ) * SUM ( + 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT ALL COUNT( * ) * - 35 + + - COUNT( * ) * - 28
----
-7

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL COUNT ( * ) * - 35 + + - COUNT ( * ) * - 28
----
-7

query I rowsort
SELECT 59 * - COALESCE ( 91, + COALESCE ( + - 16, + - 76 * - 48 - 61 ) ) AS col0
----
-5369

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT ALL - 65 * - + ( 80 ) + COALESCE ( + 28, - 7 + - + 42, 4 * COUNT( * ), - COUNT( * ), 52 ) AS col2
----
5228

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL - 65 * - + ( 80 ) + COALESCE ( + 28, - 7 + - + 42, 4 * COUNT ( * ), - COUNT ( * ), 52 ) AS col2
----
5228

query I rowsort
SELECT DISTINCT - ( - ( + - 34 ) ) AS col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT DISTINCT 92 * + 91 + + 46 + 29 DIV + 60 AS col2
----
8418

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT 92 * + 91 + + 46 + 29 / + 60 AS col2
----
8418

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL 61 * - 46 * + COUNT( * ) + 57 AS col2
----
-2749

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL 61 * - 46 * + COUNT ( * ) + 57 AS col2
----
-2749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8885
SELECT CAST( MAX( - 59 ) AS SIGNED ) * + 40 + - + 31 AS col0
----
-2391

skipif mysql # not compatible
query I rowsort label-8885
SELECT CAST ( MAX ( - 59 ) AS INTEGER ) * + 40 + - + 31 AS col0
----
-2391

query I rowsort
SELECT DISTINCT - NULLIF ( - + CASE + + ( - 52 ) WHEN + 80 THEN NULL WHEN - 35 THEN - 67 ELSE NULL END, 9 - - 75 )
----
NULL

query II rowsort
SELECT + + ( - 32 ), 25 AS col1
----
-32
25

query I rowsort
SELECT ALL - 40 * - 95 + - CASE + + AVG ( ALL - 24 ) WHEN 69 THEN 84 END AS col0
----
NULL

query I rowsort
SELECT 58 * - - 95 + 29 AS col1
----
5539

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8890
SELECT + ( - COUNT( * ) ) AS col2, 35 + - + 96 * - + 52 - + COUNT( * ) DIV CASE 41 WHEN - 33 - SUM( - ( 7 ) - 81 * + 42 ) THEN 78 WHEN - 41 THEN NULL ELSE - MAX( DISTINCT + 46 ) END
----
-1
5027

skipif mysql # not compatible
query II rowsort label-8890
SELECT + ( - COUNT ( * ) ) AS col2, 35 + - + 96 * - + 52 - + COUNT ( * ) / CASE 41 WHEN - 33 - SUM ( - ( 7 ) - 81 * + 42 ) THEN 78 WHEN - 41 THEN NULL ELSE - MAX ( DISTINCT + 46 ) END
----
-1
5027

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL + + ( - 18 ) - - - COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL + + ( - 18 ) - - - COUNT ( * ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT DISTINCT - 7 * COUNT( * ) * + 47
----
-329

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT - 7 * COUNT ( * ) * + 47
----
-329

query I rowsort
SELECT ALL + NULLIF ( - 30, 58 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT DISTINCT - - MAX( - 23 ) * + + 93 AS col2
----
-2139

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT - - MAX ( - 23 ) * + + 93 AS col2
----
-2139

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT - - CASE + COALESCE ( - 74, - ( + 31 ) ) WHEN + + COUNT( * ) + - 48 + 55 * 61 THEN 77 ELSE NULL END - COALESCE ( - ( 94 ), 53, 51 * + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT - - CASE + COALESCE ( - 74, - ( + 31 ) ) WHEN + + COUNT ( * ) + - 48 + 55 * 61 THEN 77 ELSE NULL END - COALESCE ( - ( 94 ), 53, 51 * + 25 )
----
NULL

query I rowsort
SELECT - + ( ( 75 ) ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT ALL + - COALESCE ( - 97, - 85 + 17 + 38 * - 0 * + COALESCE ( 91, ( ( + 9 ) ) ) * + 31 - + 33 * ( 76 * + 14 + 53 * 36 ) ) + + ( MAX( + 78 ) ) AS col0
----
175

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL + - COALESCE ( - 97, - 85 + 17 + 38 * - 0 * + COALESCE ( 91, ( ( + 9 ) ) ) * + 31 - + 33 * ( 76 * + 14 + 53 * 36 ) ) + + ( MAX ( + 78 ) ) AS col0
----
175

onlyif mysql # aggregate syntax: 
query III rowsort label-8898
SELECT ALL + COUNT( - 25 ) + + 82 AS col0, + COUNT( - 26 ) AS col1, + NULLIF ( + - 58, COUNT( ALL + 76 ) )
----
83
1
-58

skipif mysql # not compatible
query III rowsort label-8898
SELECT ALL + COUNT ( - 25 ) + + 82 AS col0, + COUNT ( - 26 ) AS col1, + NULLIF ( + - 58, COUNT ( ALL + 76 ) )
----
83
1
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT DISTINCT - CAST( + - 91 AS SIGNED ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT - CAST ( + - 91 AS INTEGER ) AS col2
----
91

query I rowsort
SELECT ALL - 98 + + COALESCE ( 67, + + ( + - 67 ) )
----
-31

query I rowsort
SELECT + 41 + + 26 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT ALL - COUNT( + + 92 ) + - 20 - - 30 * 98
----
2919

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL - COUNT ( + + 92 ) + - 20 - - 30 * 98
----
2919

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL COALESCE ( - + 93, - NULLIF ( - COUNT( * ), - 0 + - + ( 65 ) ), + 82 * 15 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL COALESCE ( - + 93, - NULLIF ( - COUNT ( * ), - 0 + - + ( 65 ) ), + 82 * 15 ) AS col0
----
-93

query I rowsort
SELECT DISTINCT 40 * + 93
----
3720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8905
SELECT DISTINCT 58 + + 7 + 83 + + 66 + 84 DIV CASE + MAX( 91 ) WHEN CAST( NULL AS SIGNED ) + 82 THEN + 64 WHEN 27 * + CASE 15 WHEN - 72 DIV + 89 THEN NULL WHEN 89 THEN + 64 WHEN 60 THEN NULL ELSE NULL END THEN NULL WHEN 34 THEN NULL ELSE 40 END * 55 + - 85 AS col0
----
239

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT 58 + + 7 + 83 + + 66 + 84 / CASE + MAX ( 91 ) WHEN CAST ( NULL AS INTEGER ) + 82 THEN + 64 WHEN 27 * + CASE 15 WHEN - 72 / + 89 THEN NULL WHEN 89 THEN + 64 WHEN 60 THEN NULL ELSE NULL END THEN NULL WHEN 34 THEN NULL ELSE 40 END * 55 + - 85 AS col0
----
239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8906
SELECT - COALESCE ( + + CAST( - 6 AS SIGNED ), + + 80 * + 55 * - + 71 * 48 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8906
SELECT - COALESCE ( + + CAST ( - 6 AS INTEGER ), + + 80 * + 55 * - + 71 * 48 ) AS col2
----
6

query I rowsort
SELECT - 81 * - 65
----
5265

query I rowsort
SELECT DISTINCT - 7 * + - 87 AS col1
----
609

onlyif mysql # aggregate syntax: 
query II rowsort label-8909
SELECT 59 AS col2, - SUM( DISTINCT 39 ) col2
----
59
-39

skipif mysql # not compatible
query II rowsort label-8909
SELECT 59 AS col2, - SUM ( DISTINCT 39 ) col2
----
59
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT ALL 45 + ( ( 52 ) ) + - COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL 45 + ( ( 52 ) ) + - COUNT ( * ) AS col0
----
96

query I rowsort
SELECT + 51 * - 75
----
-3825

query I rowsort
SELECT ( + - 43 ) AS col0
----
-43

query I rowsort
SELECT ALL 88 * - 45 - + 49
----
-4009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8914
SELECT + NULLIF ( 93, - - 86 * + - 96 ) DIV + 46 + COUNT( * ) - 93 * + - 57 * 9
----
47712

skipif mysql # not compatible
query I rowsort label-8914
SELECT + NULLIF ( 93, - - 86 * + - 96 ) / + 46 + COUNT ( * ) - 93 * + - 57 * 9
----
47712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8915
SELECT DISTINCT COALESCE ( - 16, + + 16 ) * 70 - - SUM( ALL + CAST( NULL AS SIGNED ) ) + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT COALESCE ( - 16, + + 16 ) * 70 - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) + - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT ALL 79 * + COUNT( * ) * + COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL 79 * + COUNT ( * ) * + COUNT ( * ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT + - 64 * CASE - - 66 WHEN + - 3 THEN NULL WHEN - AVG ( ALL - - 70 ) THEN + + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8917
SELECT + - 64 * CASE - - 66 WHEN + - 3 THEN NULL WHEN - AVG ( ALL - - 70 ) THEN + + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8918
SELECT DISTINCT - 58 * ( - + 4 ) + + 28 - + 25 DIV + - COUNT( * ) AS col0, - 7
----
285
-7

skipif mysql # not compatible
query II rowsort label-8918
SELECT DISTINCT - 58 * ( - + 4 ) + + 28 - + 25 / + - COUNT ( * ) AS col0, - 7
----
285
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-8919
SELECT + + MAX( 87 ) * + 4, 96 AS col2
----
348
96

skipif mysql # not compatible
query II rowsort label-8919
SELECT + + MAX ( 87 ) * + 4, 96 AS col2
----
348
96

query I rowsort
SELECT DISTINCT + ( + + 52 )
----
52

query I rowsort
SELECT ALL + + ( - - 90 ) AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8922
SELECT + - 45 + + 54 * + 96 AS col2, 80 + 10 + + + CAST( + 18 AS SIGNED )
----
5139
108

skipif mysql # not compatible
query II rowsort label-8922
SELECT + - 45 + + 54 * + 96 AS col2, 80 + 10 + + + CAST ( + 18 AS INTEGER )
----
5139
108

query II rowsort
SELECT + 24 AS col1, 13 AS col1
----
24
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL + - MIN( - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL + - MIN ( - 48 )
----
48

query I rowsort
SELECT ALL + ( - 75 ) AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT + 56 * - ( + 22 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT + 56 * - ( + 22 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT + 60 + + + COUNT( * ) + 49
----
110

skipif mysql # not compatible
query I rowsort label-8927
SELECT + 60 + + + COUNT ( * ) + 49
----
110

query I rowsort
SELECT DISTINCT + CASE + 55 WHEN + - AVG ( DISTINCT + + 71 ) THEN - COALESCE ( 40, + + 90 ) WHEN - AVG ( 44 ) * - 43 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8929
SELECT DISTINCT - 14 * - - CAST( - 37 AS SIGNED ) + - + 68 + - - 23 * 30 AS col1
----
1140

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT - 14 * - - CAST ( - 37 AS INTEGER ) + - + 68 + - - 23 * 30 AS col1
----
1140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8930
SELECT ALL - 0 * + - ( 13 ) + 0 + + 56 * - MAX( ALL 59 ) * - CAST( COUNT( * ) AS SIGNED ) + + 67 AS col1
----
3371

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL - 0 * + - ( 13 ) + 0 + + 56 * - MAX ( ALL 59 ) * - CAST ( COUNT ( * ) AS INTEGER ) + + 67 AS col1
----
3371

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT ALL - COUNT( * ) * - SUM( 70 ) + + + 44 * + 17 * + - COUNT( * ) * 4 + - 3 col2
----
-2925

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL - COUNT ( * ) * - SUM ( 70 ) + + + 44 * + 17 * + - COUNT ( * ) * 4 + - 3 col2
----
-2925

query I rowsort
SELECT - ( - - 22 ) AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8933
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN - 30 / - ( CASE + COALESCE ( 59, - COUNT( ALL - 48 ) * + 74 ) WHEN + 32 / 87 THEN - 26 * 45 + + 60 ELSE NULL END ) THEN 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN - 30 / - ( CASE + COALESCE ( 59, - COUNT ( ALL - 48 ) * + 74 ) WHEN + 32 / 87 THEN - 26 * 45 + + 60 ELSE NULL END ) THEN 24 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8934
SELECT DISTINCT - 19 AS col2, COUNT( * ) + - + 56 AS col1
----
-19
-55

skipif mysql # not compatible
query II rowsort label-8934
SELECT DISTINCT - 19 AS col2, COUNT ( * ) + - + 56 AS col1
----
-19
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8935
SELECT ALL - 84 + ( CAST( - SUM( + - ( - 84 ) ) AS SIGNED ) ) + + 90
----
-78

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL - 84 + ( CAST ( - SUM ( + - ( - 84 ) ) AS INTEGER ) ) + + 90
----
-78

query I rowsort
SELECT DISTINCT 28 * 68 * 78
----
148512

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT DISTINCT + 39 DIV 81 col0
----
0

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT + 39 / 81 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT DISTINCT + 67 - + COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT + 67 - + COUNT ( * ) AS col2
----
66

query II rowsort
SELECT ALL ( 24 ) AS col0, - 66 + 59
----
24
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8940
SELECT - 27 - + COALESCE ( - - ( - CASE 58 WHEN + NULLIF ( + 93, 87 ) THEN - COALESCE ( 42, - 93 + 64 DIV 15 ) + 83 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE CAST( + COUNT( * ) AS SIGNED ) END ), - 0 * + 13 )
----
-26

skipif mysql # not compatible
query I rowsort label-8940
SELECT - 27 - + COALESCE ( - - ( - CASE 58 WHEN + NULLIF ( + 93, 87 ) THEN - COALESCE ( 42, - 93 + 64 / 15 ) + 83 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE CAST ( + COUNT ( * ) AS INTEGER ) END ), - 0 * + 13 )
----
-26

query I rowsort
SELECT - 39 * COALESCE ( 11, 57, + - 41 )
----
-429

query I rowsort
SELECT DISTINCT - 76 * + 99
----
-7524

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT - CASE + COUNT( * ) WHEN - 63 - + - 72 * - 23 / - COUNT( * ) * - 71 * + 63 THEN 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT - CASE + COUNT ( * ) WHEN - 63 - + - 72 * - 23 / - COUNT ( * ) * - 71 * + 63 THEN 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT ALL - MAX( DISTINCT 86 ) * + - SUM( 11 ) + + 10 + 43 * - - 76
----
4224

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL - MAX ( DISTINCT 86 ) * + - SUM ( 11 ) + + 10 + 43 * - - 76
----
4224

query I rowsort
SELECT - 91 + - 53 AS col1
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8946
SELECT + 97 - + 92 - - CAST( CASE + 59 WHEN 38 THEN - - 43 / CAST( 31 AS SIGNED ) - COUNT( * ) / SUM( COALESCE ( + ( 71 ), - 27 ) ) END AS SIGNED ) + + 63 * CAST( 33 AS SIGNED ) * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8946
SELECT + 97 - + 92 - - CAST ( CASE + 59 WHEN 38 THEN - - 43 / CAST ( 31 AS INTEGER ) - COUNT ( * ) / SUM ( COALESCE ( + ( 71 ), - 27 ) ) END AS INTEGER ) + + 63 * CAST ( 33 AS INTEGER ) * 48
----
NULL

query I rowsort
SELECT ALL 3 * + - 70 AS col0
----
-210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8948
SELECT + CASE WHEN - 20 > NULL THEN + + 32 * - - CAST( NULL AS SIGNED ) WHEN NOT ( NULL ) IS NULL THEN - - 18 * + 44 - CAST( NULL AS SIGNED ) / - COUNT( DISTINCT ( + 38 ) * 5 + 94 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT + CASE WHEN - 20 > NULL THEN + + 32 * - - CAST ( NULL AS INTEGER ) WHEN NOT ( NULL ) IS NULL THEN - - 18 * + 44 - CAST ( NULL AS INTEGER ) / - COUNT ( DISTINCT ( + 38 ) * 5 + 94 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8949
SELECT MIN( ALL 56 ) DIV + 82 + + + COUNT( * ) + - 6
----
-5

skipif mysql # not compatible
query I rowsort label-8949
SELECT MIN ( ALL 56 ) / + 82 + + + COUNT ( * ) + - 6
----
-5

query I rowsort
SELECT ALL - 59 * + - 59 AS col1
----
3481

onlyif mysql # DIV for integer division: 
query I rowsort label-8951
SELECT - 4 DIV - + ( 20 )
----
0

skipif mysql # not compatible
query I rowsort label-8951
SELECT - 4 / - + ( 20 )
----
0

query I rowsort
SELECT - 87 * - + 17 + 53 AS col1
----
1532

query I rowsort
SELECT 26 + + 33 AS col0
----
59

query I rowsort
SELECT ALL 61 + + + 1 + - 94 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-8955
SELECT ALL + 97 * - COUNT( * ), - 53 AS col0
----
-97
-53

skipif mysql # not compatible
query II rowsort label-8955
SELECT ALL + 97 * - COUNT ( * ), - 53 AS col0
----
-97
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT + 40 + 38 + - 23 * + COUNT( * ) * + 84 + - COUNT( * ) * + + COUNT( * ) + - 43
----
-1898

skipif mysql # not compatible
query I rowsort label-8956
SELECT + 40 + 38 + - 23 * + COUNT ( * ) * + 84 + - COUNT ( * ) * + + COUNT ( * ) + - 43
----
-1898

query I rowsort
SELECT DISTINCT + + 98 + + + 82 * - ( 41 ) * - - 1 col0
----
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ALL - COUNT( * ) * + 87 + 75 - - SUM( DISTINCT 76 ) col0
----
64

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL - COUNT ( * ) * + 87 + 75 - - SUM ( DISTINCT 76 ) col0
----
64

query I rowsort
SELECT DISTINCT 88 + - 92 * - 75 AS col2
----
6988

query I rowsort
SELECT ALL 7 + - 39 AS col0
----
-32

query I rowsort
SELECT ALL - 72 + - - 48 * 37 * - ( + 92 )
----
-163464

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT DISTINCT - 3 + - - MAX( + 97 ) + ( 14 ) + + 11 col0
----
119

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT - 3 + - - MAX ( + 97 ) + ( 14 ) + + 11 col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT + - CASE - COUNT( * ) WHEN - 7 * + 63 * 75 THEN 78 ELSE 71 END AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8963
SELECT + - CASE - COUNT ( * ) WHEN - 7 * + 63 * 75 THEN 78 ELSE 71 END AS col2
----
-71

query II rowsort
SELECT ALL - 70 + - 91, 37 * + 11 AS col1
----
-161
407

query I rowsort
SELECT ALL 77 + - - 27 col1
----
104

query I rowsort
SELECT NULLIF ( 87, + 42 * - ( - 70 ) ) AS col1
----
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8967
SELECT CAST( NULL AS DECIMAL ) - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT CAST ( NULL AS REAL ) - 89 AS col0
----
NULL

query II rowsort
SELECT - 98 AS col1, + 56
----
-98
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8969
SELECT 43 + 90 DIV ( + 89 ) + 13 + + + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-8969
SELECT 43 + 90 / ( + 89 ) + 13 + + + COUNT ( * )
----
58

query II rowsort
SELECT ALL 87 - + 66 * 22 col2, 99
----
-1365
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8971
SELECT ALL + 62 * + - COALESCE ( + 74, - NULLIF ( - CASE + - MAX( + 20 ) WHEN 85 - - + 7 THEN NULL WHEN + 18 - + 8 * + 54 THEN - CAST( + 26 AS SIGNED ) * + 42 WHEN 47 * 35 THEN NULL END, - 14 ) )
----
-4588

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL + 62 * + - COALESCE ( + 74, - NULLIF ( - CASE + - MAX ( + 20 ) WHEN 85 - - + 7 THEN NULL WHEN + 18 - + 8 * + 54 THEN - CAST ( + 26 AS INTEGER ) * + 42 WHEN 47 * 35 THEN NULL END, - 14 ) )
----
-4588

query II rowsort
SELECT - 55 AS col2, 1 AS col2
----
-55
1

query I rowsort
SELECT ALL + 53 - - + 50
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8974
SELECT 69 + - CAST( - 20 AS SIGNED ) + - + 98 - 83 * - - 16 col0
----
-1337

skipif mysql # not compatible
query I rowsort label-8974
SELECT 69 + - CAST ( - 20 AS INTEGER ) + - + 98 - 83 * - - 16 col0
----
-1337

query I rowsort
SELECT 72 * + 79 * + 62 AS col2
----
352656

query I rowsort
SELECT 78 + - 69 col2
----
9

query I rowsort
SELECT DISTINCT + 45 * + - 52 col1
----
-2340

query I rowsort
SELECT DISTINCT + 36 - 54 AS col1
----
-18

query I rowsort
SELECT ( + - 90 ) * 79
----
-7110

query I rowsort
SELECT 97 * + 78
----
7566

query II rowsort
SELECT 4 + 56 * + + 91 AS col2, 38 - + 73
----
5100
-35

query I rowsort
SELECT ALL 74 * + - 15
----
-1110

onlyif mysql # DIV for integer division: 
query I rowsort label-8983
SELECT ALL + 0 DIV - 13 * - 87 col0
----
0

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL + 0 / - 13 * - 87 col0
----
0

query I rowsort
SELECT DISTINCT - - 38 + 22 * + + 42 AS col2
----
962

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT - COUNT( DISTINCT - + 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-8985
SELECT - COUNT ( DISTINCT - + 87 )
----
-1

query I rowsort
SELECT 5 * - - 45
----
225

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8987
SELECT - 62 * - 31 - + CAST( NULL AS DECIMAL ) * - 85 + + + ( - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT - 62 * - 31 - + CAST ( NULL AS REAL ) * - 85 + + + ( - 84 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT ALL + COUNT( * ) + + 38 col2
----
39

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL + COUNT ( * ) + + 38 col2
----
39

query I rowsort
SELECT + 79 * - - 95 - - 97 * 55 AS col1
----
12840

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8990
SELECT + + CAST( NULL AS SIGNED ) AS col0, - 56 * - 65 AS col0
----
NULL
3640

skipif mysql # not compatible
query II rowsort label-8990
SELECT + + CAST ( NULL AS INTEGER ) AS col0, - 56 * - 65 AS col0
----
NULL
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT ALL + ( - + COUNT( * ) ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL + ( - + COUNT ( * ) ) + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8992
SELECT COUNT( * ) AS col1, 78 AS col1
----
1
78

skipif mysql # not compatible
query II rowsort label-8992
SELECT COUNT ( * ) AS col1, 78 AS col1
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT DISTINCT MAX( DISTINCT + 23 ) + 80 col2
----
103

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT MAX ( DISTINCT + 23 ) + 80 col2
----
103

query I rowsort
SELECT ALL 95 + + 30 - - 25
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8995
SELECT - + 70 * + + COUNT( * ) DIV 98 * - CAST( + - MAX( DISTINCT + 13 ) AS SIGNED ) - + 98 + - + 59 - COALESCE ( - - 6, - COUNT( * ) * - 93 + 63, COUNT( 20 ) ) - + 6 AS col0
----
-169

skipif mysql # not compatible
query I rowsort label-8995
SELECT - + 70 * + + COUNT ( * ) / 98 * - CAST ( + - MAX ( DISTINCT + 13 ) AS INTEGER ) - + 98 + - + 59 - COALESCE ( - - 6, - COUNT ( * ) * - 93 + 63, COUNT ( 20 ) ) - + 6 AS col0
----
-169

query I rowsort
SELECT DISTINCT + 74 + + 19 col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT + MAX( ALL - + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-8997
SELECT + MAX ( ALL - + 43 )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8998
SELECT ALL CAST( 20 AS SIGNED ) + + + 8 * + - 58
----
-444

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL CAST ( 20 AS INTEGER ) + + + 8 * + - 58
----
-444

query I rowsort
SELECT NULLIF ( 29, - 60 ) * + + 52 AS col1
----
1508

query I rowsort
SELECT ( - + 3 ) + + 13 * - - 49 * + 59
----
37580

query I rowsort
SELECT ALL 28 * - 41 col2
----
-1148

query II rowsort
SELECT ALL 54 AS col0, 43
----
54
43

query I rowsort
SELECT ALL 5 - - 50 AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9004
SELECT 72 DIV - 31
----
-2

skipif mysql # not compatible
query I rowsort label-9004
SELECT 72 / - 31
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9005
SELECT DISTINCT 75 * - + 87 * - CAST( - 61 AS SIGNED )
----
-398025

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT 75 * - + 87 * - CAST ( - 61 AS INTEGER )
----
-398025

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT COUNT( 90 ) * + 82
----
82

skipif mysql # not compatible
query I rowsort label-9006
SELECT COUNT ( 90 ) * + 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT 68 + + + NULLIF ( COALESCE ( + 58, - 38 + + 65 * - - 12, + - 88 * + - 63 * ( 30 ) * - COUNT( * ) ), 78 * COUNT( * ) + 83 ) * - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-9007
SELECT 68 + + + NULLIF ( COALESCE ( + 58, - 38 + + 65 * - - 12, + - 88 * + - 63 * ( 30 ) * - COUNT ( * ) ), 78 * COUNT ( * ) + 83 ) * - COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT - SUM( ALL - - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-9008
SELECT - SUM ( ALL - - 26 )
----
-26

query I rowsort
SELECT ( + 63 ) + - 21 AS col0
----
42

query II rowsort
SELECT DISTINCT 34, - 66 AS col0
----
34
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9011
SELECT ALL 26 DIV MAX( ALL + ( - 62 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL 26 / MAX ( ALL + ( - 62 ) )
----
0

query I rowsort
SELECT + 38 - - + 95 AS col0
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9013
SELECT + + ( - + 31 ) DIV 29 + + 27 * + 95 + + 80 - MAX( + 73 ) * + 94 * + 7 + - - 69 + MAX( ALL + 44 )
----
-45277

skipif mysql # not compatible
query I rowsort label-9013
SELECT + + ( - + 31 ) / 29 + + 27 * + 95 + + 80 - MAX ( + 73 ) * + 94 * + 7 + - - 69 + MAX ( ALL + 44 )
----
-45277

query I rowsort
SELECT - + 52 * - - 43 * - 22 + + 33
----
49225

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL + + 48 + COUNT( 32 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL + + 48 + COUNT ( 32 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT + + 41 + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-9016
SELECT + + 41 + COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT CASE + 63 WHEN 72 THEN + AVG ( + 97 ) + + 86 + + 40 ELSE 54 * + 73 - - 6 - 12 + ( COUNT( * ) ) * 37 * - COUNT( * ) END
----
3899

skipif mysql # not compatible
query I rowsort label-9017
SELECT CASE + 63 WHEN 72 THEN + AVG ( + 97 ) + + 86 + + 40 ELSE 54 * + 73 - - 6 - 12 + ( COUNT ( * ) ) * 37 * - COUNT ( * ) END
----
3899

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT + 64 DIV ( - - 18 ) + ( - 99 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9018
SELECT + 64 / ( - - 18 ) + ( - 99 ) AS col0
----
-96

query I rowsort
SELECT - 27 + - 84
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-9020
SELECT ALL - 36 DIV - 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL - 36 / - 44 AS col1
----
0

query I rowsort
SELECT - 49 + 2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL - COUNT( 95 ) * + 41 - - - 93 * + MAX( DISTINCT 82 ) + 47 AS col1
----
-7620

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL - COUNT ( 95 ) * + 41 - - - 93 * + MAX ( DISTINCT 82 ) + 47 AS col1
----
-7620

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT 75 / - + CASE - - 79 WHEN + + 68 THEN - MAX( DISTINCT + 98 ) / 20 + + - 73 * + - 58 WHEN 7 * + 91 + - 6 THEN NULL ELSE NULL END + - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9023
SELECT 75 / - + CASE - - 79 WHEN + + 68 THEN - MAX ( DISTINCT + 98 ) / 20 + + - 73 * + - 58 WHEN 7 * + 91 + - 6 THEN NULL ELSE NULL END + - 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT ALL + COALESCE ( + - 48, - NULLIF ( 96, + - 32 ) ) * + COUNT( * ) + MIN( 35 ) - 27 - + 90 + - - ( + 9 ) * + 90 col2
----
680

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL + COALESCE ( + - 48, - NULLIF ( 96, + - 32 ) ) * + COUNT ( * ) + MIN ( 35 ) - 27 - + 90 + - - ( + 9 ) * + 90 col2
----
680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9025
SELECT DISTINCT + + 18 * 31 DIV COUNT( * ) * - - ( - 23 ) AS col1
----
-12834

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT + + 18 * 31 / COUNT ( * ) * - - ( - 23 ) AS col1
----
-12834

query I rowsort
SELECT - 38 + - CASE 3 WHEN - - 30 THEN 87 * + ( ( - 18 ) ) WHEN + 57 THEN NULL END - + + 81 * + 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT + ( + ( - + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9027
SELECT + ( + ( - + COUNT ( * ) ) )
----
-1

query I rowsort
SELECT ALL - 15 * - 22 - + + 8
----
322

query I rowsort
SELECT DISTINCT + + 26 * - - 57 AS col2
----
1482

query I rowsort
SELECT DISTINCT + + 91 AS col0
----
91

query I rowsort
SELECT - ( - - 19 ) * + 60 AS col1
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT + NULLIF ( + 75, + ( - 62 ) + MAX( - - 52 ) * - CASE + 59 WHEN + - CASE + - 89 WHEN 37 THEN NULL ELSE 2 * 40 END * + 78 THEN NULL WHEN ( + 21 ) * 19 THEN - 82 END ) col0
----
75

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT + NULLIF ( + 75, + ( - 62 ) + MAX ( - - 52 ) * - CASE + 59 WHEN + - CASE + - 89 WHEN 37 THEN NULL ELSE 2 * 40 END * + 78 THEN NULL WHEN ( + 21 ) * 19 THEN - 82 END ) col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9033
SELECT - 99 * + + 5, 92 - - CAST( NULL AS SIGNED ) col1
----
-495
NULL

skipif mysql # not compatible
query II rowsort label-9033
SELECT - 99 * + + 5, 92 - - CAST ( NULL AS INTEGER ) col1
----
-495
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9034
SELECT DISTINCT 28 DIV + COUNT( * ) * + ( - COUNT( * ) )
----
-28

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT 28 / + COUNT ( * ) * + ( - COUNT ( * ) )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT - 51 - - - MAX( DISTINCT + 7 ) * - COUNT( * ) - + 9 + + 92 * + - 77 * 11 AS col1
----
-77977

skipif mysql # not compatible
query I rowsort label-9035
SELECT - 51 - - - MAX ( DISTINCT + 7 ) * - COUNT ( * ) - + 9 + + 92 * + - 77 * 11 AS col1
----
-77977

query I rowsort
SELECT ALL 63 * 14 AS col1
----
882

query I rowsort
SELECT - 68 * - 14 * - 25 AS col0
----
-23800

query I rowsort
SELECT DISTINCT 80 * + + ( + - 39 ) AS col2
----
-3120

onlyif mysql # DIV for integer division: 
query I rowsort label-9039
SELECT - COALESCE ( - 58, + + 59 * 22, - 9 * - + 29 + - + 4 - 54 * - 7 DIV 24 * + 38 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9039
SELECT - COALESCE ( - 58, + + 59 * 22, - 9 * - + 29 + - + 4 - 54 * - 7 / 24 * + 38 ) AS col0
----
58

query I rowsort
SELECT ALL - 0 + - 37 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT DISTINCT MIN( - + 58 ) + - 46 - - 14 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT MIN ( - + 58 ) + - 46 - - 14 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9042
SELECT + 15 + - 91 * + 84 AS col1, COUNT( * ) + + 6 * + 76
----
-7629
457

skipif mysql # not compatible
query II rowsort label-9042
SELECT + 15 + - 91 * + 84 AS col1, COUNT ( * ) + + 6 * + 76
----
-7629
457

query I rowsort
SELECT - COALESCE ( + - 62, 47 ) AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT - CAST( + ( + - 34 ) AS SIGNED ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9044
SELECT - CAST ( + ( + - 34 ) AS INTEGER ) AS col0
----
34

query I rowsort
SELECT ALL ( 13 ) + - 97
----
-84

query II rowsort
SELECT ALL + 9 + + 90, - 3 + - + 17 + 87 - - + 73 * - 63 * - 45 AS col0
----
99
207022

onlyif mysql # aggregate syntax: 
query II rowsort label-9047
SELECT ALL - NULLIF ( - - 47, 74 ) + MIN( DISTINCT 26 ), 59 * + COUNT( * ) AS col0
----
-21
59

skipif mysql # not compatible
query II rowsort label-9047
SELECT ALL - NULLIF ( - - 47, 74 ) + MIN ( DISTINCT 26 ), 59 * + COUNT ( * ) AS col0
----
-21
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + - 29 * - COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9048
SELECT + - 29 * - COUNT ( * ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT DISTINCT - - 95 * - - 88 * + COUNT( * ) AS col1
----
8360

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT - - 95 * - - 88 * + COUNT ( * ) AS col1
----
8360

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT DISTINCT 99 + 81 + 14 + + 36 * + NULLIF ( - - 58, + 1 * + COUNT( * ) * - 9 * + 84 ) * - - 50 - + 25 AS col0
----
104569

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT 99 + 81 + 14 + + 36 * + NULLIF ( - - 58, + 1 * + COUNT ( * ) * - 9 * + 84 ) * - - 50 - + 25 AS col0
----
104569

onlyif mysql # aggregate syntax: 
query II rowsort label-9051
SELECT MAX( DISTINCT 70 ), + 80 AS col2
----
70
80

skipif mysql # not compatible
query II rowsort label-9051
SELECT MAX ( DISTINCT 70 ), + 80 AS col2
----
70
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9052
SELECT ALL - 97 DIV 86 * - SUM( 77 ) - + MIN( ( + 87 ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL - 97 / 86 * - SUM ( 77 ) - + MIN ( ( + 87 ) ) AS col1
----
-10

query I rowsort
SELECT + + COALESCE ( 57, - 99, + 67 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9054
SELECT - - COUNT( * ) * CAST( - 96 AS SIGNED ) * 63 * + 29 - - 52 AS col2
----
-175340

skipif mysql # not compatible
query I rowsort label-9054
SELECT - - COUNT ( * ) * CAST ( - 96 AS INTEGER ) * 63 * + 29 - - 52 AS col2
----
-175340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9055
SELECT - 45 DIV - COUNT( ALL + + 19 ) - + 68 - - - 5 - - 39
----
11

skipif mysql # not compatible
query I rowsort label-9055
SELECT - 45 / - COUNT ( ALL + + 19 ) - + 68 - - - 5 - - 39
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9056
SELECT + 27 + 74 col0, + MAX( + 64 )
----
101
64

skipif mysql # not compatible
query II rowsort label-9056
SELECT + 27 + 74 col0, + MAX ( + 64 )
----
101
64

query I rowsort
SELECT - 41 * + + 6 * 78 * 94
----
-1803672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9058
SELECT - + 53 / 96 * + 23 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT - + 53 / 96 * + 23 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9059
SELECT ALL - 42 DIV 87 col2, + 91 AS col2
----
0
91

skipif mysql # not compatible
query II rowsort label-9059
SELECT ALL - 42 / 87 col2, + 91 AS col2
----
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT + - SUM( DISTINCT 67 ) + + + 52
----
-15

skipif mysql # not compatible
query I rowsort label-9060
SELECT + - SUM ( DISTINCT 67 ) + + + 52
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT - MIN( DISTINCT + 89 ) - - - COUNT( 26 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-9061
SELECT - MIN ( DISTINCT + 89 ) - - - COUNT ( 26 ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9062
SELECT DISTINCT + 20 AS col0, + COUNT( * ) AS col1
----
20
1

skipif mysql # not compatible
query II rowsort label-9062
SELECT DISTINCT + 20 AS col0, + COUNT ( * ) AS col1
----
20
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT - 63 + - 14 DIV + 17 + - 33 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9063
SELECT - 63 + - 14 / + 17 + - 33 AS col2
----
-96

query II rowsort
SELECT + 5 AS col0, + 34
----
5
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT - 81 * - - COUNT( * ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-9065
SELECT - 81 * - - COUNT ( * ) col1
----
-81

query II rowsort
SELECT + 8 col1, + 89
----
8
89

query I rowsort
SELECT + 18 * 8 * 65 + + - 25 col0
----
9335

query I rowsort
SELECT DISTINCT 12 * - 58 * + + 62 + - 3
----
-43155

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL - 32 + ( + MAX( ALL + 29 ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL - 32 + ( + MAX ( ALL + 29 ) ) AS col2
----
-3

query I rowsort
SELECT ALL NULLIF ( + + 87, 99 + - 28 ) + - 83
----
4

query I rowsort
SELECT DISTINCT + 59 + + 84
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9072
SELECT 77 + - - CASE - 51 WHEN + - 21 * + 64 + - 17 * SUM( ALL + 71 ) + + 52 THEN - 1 + - + NULLIF ( - 83, + ( 67 ) ) * - SUM( DISTINCT CAST( NULL AS SIGNED ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9072
SELECT 77 + - - CASE - 51 WHEN + - 21 * + 64 + - 17 * SUM ( ALL + 71 ) + + 52 THEN - 1 + - + NULLIF ( - 83, + ( 67 ) ) * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL 82 AS col2, + 67 + + 54
----
82
121

onlyif mysql # aggregate syntax: 
query II rowsort label-9074
SELECT DISTINCT 33 AS col1, COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-9074
SELECT DISTINCT 33 AS col1, COUNT ( * )
----
33
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT 93 + - NULLIF ( - MAX( + 54 ), - 19 )
----
147

skipif mysql # not compatible
query I rowsort label-9075
SELECT 93 + - NULLIF ( - MAX ( + 54 ), - 19 )
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9076
SELECT 3 + + 68 + + CAST( NULL AS SIGNED ) AS col0, - 46
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-9076
SELECT 3 + + 68 + + CAST ( NULL AS INTEGER ) AS col0, - 46
----
NULL
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT ALL - SUM( ALL + NULLIF ( 63, + - 19 / - 51 + - 81 ) ) + + + COUNT( * ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL - SUM ( ALL + NULLIF ( 63, + - 19 / - 51 + - 81 ) ) + + + COUNT ( * ) AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT + 82 + - 19 * 80 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9078
SELECT + 82 + - 19 * 80 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 26 * - + ( + - 35 ) * + - 71 + 59
----
-64551

query II rowsort
SELECT 60 col2, 17
----
60
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9081
SELECT + 4 - + 30 * + COALESCE ( - NULLIF ( 90, CAST( NULL AS SIGNED ) * + - 47 * - + 15 + 79 + + 26 * 11 * - 26 + - + 53 - + 29 * CAST( 53 * 48 AS SIGNED ) ), SUM( 19 ) + - 93 ) AS col1
----
2704

skipif mysql # not compatible
query I rowsort label-9081
SELECT + 4 - + 30 * + COALESCE ( - NULLIF ( 90, CAST ( NULL AS INTEGER ) * + - 47 * - + 15 + 79 + + 26 * 11 * - 26 + - + 53 - + 29 * CAST ( 53 * 48 AS INTEGER ) ), SUM ( 19 ) + - 93 ) AS col1
----
2704

query I rowsort
SELECT DISTINCT + ( 63 ) - ( + 41 ) AS col1
----
22

query I rowsort
SELECT - 31 + + 4 + - + 18 * - + 15 * 57 * + 2 + - 88 + + 26 AS col2
----
30691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9084
SELECT - 71 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT - 71 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT 36 + + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-9085
SELECT 36 + + COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT DISTINCT MAX( - - 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT MAX ( - - 66 ) AS col2
----
66

query I rowsort
SELECT - 98 + - + 27 col2
----
-125

query I rowsort
SELECT ALL + 42 - 96 AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9089
SELECT + COALESCE ( + 92, 68 * - 13 + 54 - - + ( + 58 ) + - CASE + - 35 WHEN - ( + + CAST( + 33 AS SIGNED ) ) THEN - 53 ELSE NULL END ) * NULLIF ( 71, + 35 )
----
6532

skipif mysql # not compatible
query I rowsort label-9089
SELECT + COALESCE ( + 92, 68 * - 13 + 54 - - + ( + 58 ) + - CASE + - 35 WHEN - ( + + CAST ( + 33 AS INTEGER ) ) THEN - 53 ELSE NULL END ) * NULLIF ( 71, + 35 )
----
6532

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT DISTINCT + COALESCE ( + NULLIF ( + ( + 97 ), 47 ), + - COUNT( * ) ) * + - 20 - - ( + 9 ) AS col1
----
-1931

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT + COALESCE ( + NULLIF ( + ( + 97 ), 47 ), + - COUNT ( * ) ) * + - 20 - - ( + 9 ) AS col1
----
-1931

query I rowsort
SELECT DISTINCT - - ( - - 66 ) AS col0
----
66

query I rowsort
SELECT ALL 17 * + ( + 25 )
----
425

query I rowsort
SELECT - 87 * - 84 + + 40
----
7348

query I rowsort
SELECT - 56 * + - 0 AS col0
----
0

query I rowsort
SELECT DISTINCT 52 * + 20 AS col0
----
1040

query I rowsort
SELECT ALL 87 * + 25
----
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT COUNT( DISTINCT - - 15 ) + - 45
----
-44

skipif mysql # not compatible
query I rowsort label-9097
SELECT COUNT ( DISTINCT - - 15 ) + - 45
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9098
SELECT CASE - 93 WHEN - + 29 * + MAX( + + ( - 88 ) ) + + 60 - - 1 * CAST( NULL AS SIGNED ) THEN - COALESCE ( - 91, + + 93, - - 74 / 98, + 18 + 34 ) * - 74 END * + CASE 4 / 73 + - 29 / - 6 WHEN + 62 - + 93 THEN - 45 / AVG ( + ( 24 ) ) WHEN ( - ( 4 ) ) + + 83 / + 85 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT CASE - 93 WHEN - + 29 * + MAX ( + + ( - 88 ) ) + + 60 - - 1 * CAST ( NULL AS INTEGER ) THEN - COALESCE ( - 91, + + 93, - - 74 / 98, + 18 + 34 ) * - 74 END * + CASE 4 / 73 + - 29 / - 6 WHEN + 62 - + 93 THEN - 45 / AVG ( + ( 24 ) ) WHEN ( - ( 4 ) ) + + 83 / + 85 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9099
SELECT DISTINCT - NULLIF ( + + 6, + 66 ) + - + 34, - MIN( DISTINCT + + 7 ) AS col1
----
-40
-7

skipif mysql # not compatible
query II rowsort label-9099
SELECT DISTINCT - NULLIF ( + + 6, + 66 ) + - + 34, - MIN ( DISTINCT + + 7 ) AS col1
----
-40
-7

query I rowsort
SELECT ALL 10 + - + 81
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT DISTINCT + CASE - - 10 WHEN + 26 THEN - + 87 ELSE NULL END / - - 95 + + 45 + + CASE - - COUNT( * ) WHEN - 0 THEN 78 + - + ( - 73 ) + - + ( + 98 ) WHEN 28 THEN NULL END * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT + CASE - - 10 WHEN + 26 THEN - + 87 ELSE NULL END / - - 95 + + 45 + + CASE - - COUNT ( * ) WHEN - 0 THEN 78 + - + ( - 73 ) + - + ( + 98 ) WHEN 28 THEN NULL END * - 99
----
NULL

query I rowsort
SELECT ALL - 0 + - 25
----
-25

query II rowsort
SELECT DISTINCT 45 + 38, 9 + 15 AS col1
----
83
24

query I rowsort
SELECT 13 + 79 - - 97
----
189

query I rowsort
SELECT DISTINCT - CASE - 44 WHEN - COALESCE ( + + 37, 68 / 18, + + 90 ) THEN NULL ELSE - 65 + + 3 END AS col1
----
62

query I rowsort
SELECT 64 * + + 33 + 96 AS col1
----
2208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9107
SELECT DISTINCT - 83 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT - 83 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 6 - - 19
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT ALL - CASE + ( 23 ) WHEN - 24 THEN 55 + - - 71 WHEN 83 THEN NULL WHEN 11 THEN NULL ELSE NULL END - + NULLIF ( - COUNT( * ), - + 76 ) + + 2 * - - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL - CASE + ( 23 ) WHEN - 24 THEN 55 + - - 71 WHEN 83 THEN NULL WHEN 11 THEN NULL ELSE NULL END - + NULLIF ( - COUNT ( * ), - + 76 ) + + 2 * - - 99 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 40 - 3 * - - 18
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9111
SELECT CASE + 51 WHEN + COUNT( * ) * + 67 * + 89 THEN CAST( 54 AS SIGNED ) WHEN - + 61 * SUM( DISTINCT - 60 ) * + + 82 - - 74 + + ( - - COALESCE ( 33, + COUNT( - 9 ) ) ) + 50 + 43 THEN NULL WHEN 75 / + 9 THEN - 29 END * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9111
SELECT CASE + 51 WHEN + COUNT ( * ) * + 67 * + 89 THEN CAST ( 54 AS INTEGER ) WHEN - + 61 * SUM ( DISTINCT - 60 ) * + + 82 - - 74 + + ( - - COALESCE ( 33, + COUNT ( - 9 ) ) ) + 50 + 43 THEN NULL WHEN 75 / + 9 THEN - 29 END * 2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9112
SELECT ALL + NULLIF ( + - 11, COUNT( * ) * + ( - MIN( ALL - - 44 ) ) ) - + + COUNT( * ) AS col1, 28 * - NULLIF ( 26, + - 13 / - COUNT( ALL 10 ) + - + COUNT( * ) )
----
-12
-728

skipif mysql # not compatible
query II rowsort label-9112
SELECT ALL + NULLIF ( + - 11, COUNT ( * ) * + ( - MIN ( ALL - - 44 ) ) ) - + + COUNT ( * ) AS col1, 28 * - NULLIF ( 26, + - 13 / - COUNT ( ALL 10 ) + - + COUNT ( * ) )
----
-12
-728

query I rowsort
SELECT 72 + - + 31 + - 82 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT 74 * + 8 - 19 - + + COUNT( * )
----
572

skipif mysql # not compatible
query I rowsort label-9114
SELECT 74 * + 8 - 19 - + + COUNT ( * )
----
572

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT + 38 * COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-9115
SELECT + 38 * COUNT ( * )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9116
SELECT DISTINCT + - 11 DIV COUNT( * ) + - 77 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT + - 11 / COUNT ( * ) + - 77 AS col0
----
-88

query I rowsort
SELECT + 95 * + 74 AS col0
----
7030

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT ALL COUNT( * ) * + + 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL COUNT ( * ) * + + 14 AS col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9119
SELECT - 5 DIV + - 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9119
SELECT - 5 / + - 43 AS col1
----
0

query I rowsort
SELECT DISTINCT 44 * - + 1 AS col1
----
-44

query I rowsort
SELECT ALL + + 69 * - 15 + - 92 AS col0
----
-1127

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT + 71 DIV + 31 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9122
SELECT + 71 / + 31 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9123
SELECT DISTINCT 56 * + + 86 + + CASE + + 52 WHEN + ( - CAST( - + 91 AS SIGNED ) ) THEN 0 / 75 + 65 WHEN - - NULLIF ( + COUNT( * ), + NULLIF ( COUNT( 86 ), - 98 ) ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT 56 * + + 86 + + CASE + + 52 WHEN + ( - CAST ( - + 91 AS INTEGER ) ) THEN 0 / 75 + 65 WHEN - - NULLIF ( + COUNT ( * ), + NULLIF ( COUNT ( 86 ), - 98 ) ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT ALL - CAST( + 57 AS SIGNED ) * - 93 + + 3 + + ( + 2 )
----
5306

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL - CAST ( + 57 AS INTEGER ) * - 93 + + 3 + + ( + 2 )
----
5306

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT 72 - COUNT( * ) * + NULLIF ( - - 7, 91 * + 36 * - COUNT( * ) - + 48 )
----
65

skipif mysql # not compatible
query I rowsort label-9125
SELECT 72 - COUNT ( * ) * + NULLIF ( - - 7, 91 * + 36 * - COUNT ( * ) - + 48 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT + SUM( 91 ) * + 32 AS col0
----
2912

skipif mysql # not compatible
query I rowsort label-9126
SELECT + SUM ( 91 ) * + 32 AS col0
----
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT DISTINCT 23 * - - MAX( 23 ) * + - 5 + - NULLIF ( + COUNT( * ), - - 12 * + 16 + 32 ) AS col2
----
-2646

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT 23 * - - MAX ( 23 ) * + - 5 + - NULLIF ( + COUNT ( * ), - - 12 * + 16 + 32 ) AS col2
----
-2646

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT DISTINCT MIN( ALL - 63 ) * + CASE + 86 WHEN + 2 THEN NULL WHEN + + 1 + - + 25 THEN - 37 END * 50 + + + 14 + - COUNT( * ) + - + ( MIN( ALL + 85 ) ) + + 53 + 40 * - NULLIF ( - 67, - ( 10 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT MIN ( ALL - 63 ) * + CASE + 86 WHEN + 2 THEN NULL WHEN + + 1 + - + 25 THEN - 37 END * 50 + + + 14 + - COUNT ( * ) + - + ( MIN ( ALL + 85 ) ) + + 53 + 40 * - NULLIF ( - 67, - ( 10 ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9129
SELECT 77 * + CAST( NULL AS DECIMAL ) * - 40 - + ( + 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT 77 * + CAST ( NULL AS REAL ) * - 40 - + ( + 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9130
SELECT DISTINCT COUNT( - 82 ) * - - 50, - COUNT( * ) + + 1 AS col2
----
50
0

skipif mysql # not compatible
query II rowsort label-9130
SELECT DISTINCT COUNT ( - 82 ) * - - 50, - COUNT ( * ) + + 1 AS col2
----
50
0

query I rowsort
SELECT + 74 - + - 63 + + - 76 + + 93 + 90 + + - 7
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT SUM( DISTINCT - 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-9132
SELECT SUM ( DISTINCT - 99 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT SUM( + - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-9133
SELECT SUM ( + - 18 )
----
-18

query I rowsort
SELECT + 38 + - - 87
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT ALL + MIN( 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL + MIN ( 1 ) AS col1
----
1

query I rowsort
SELECT + CASE - ( - 87 ) WHEN + - 22 - - - 33 THEN NULL ELSE - 95 + + 91 END
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT ALL SUM( 48 ) * - 42
----
-2016

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL SUM ( 48 ) * - 42
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT MAX( - + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-9138
SELECT MAX ( - + 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT + COUNT( * ) * - COUNT( * ) * - 22
----
22

skipif mysql # not compatible
query I rowsort label-9139
SELECT + COUNT ( * ) * - COUNT ( * ) * - 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL + SUM( ALL + 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL + SUM ( ALL + 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT + + MAX( 64 ) + - - 64 + - + 30 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9141
SELECT + + MAX ( 64 ) + - - 64 + - + 30 AS col0
----
98

query I rowsort
SELECT - 1 * + + 83 + - + 8 AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT + - 98 DIV + ( - + ( - 72 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9143
SELECT + - 98 / + ( - + ( - 72 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9144
SELECT ALL - - CAST( NULL AS SIGNED ) * 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL - - CAST ( NULL AS INTEGER ) * 32 AS col0
----
NULL

query I rowsort
SELECT - - 17 * + 82 - + 38
----
1356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9146
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL + 62 * - 99 AS col2
----
-6138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9148
SELECT - 93 + - 21 - + - 9 * + CAST( NULL AS SIGNED ) + 72 - + 15 + + + 90 + CAST( NULL AS SIGNED ), + MAX( DISTINCT + 85 ) AS col2
----
NULL
85

skipif mysql # not compatible
query II rowsort label-9148
SELECT - 93 + - 21 - + - 9 * + CAST ( NULL AS INTEGER ) + 72 - + 15 + + + 90 + CAST ( NULL AS INTEGER ), + MAX ( DISTINCT + 85 ) AS col2
----
NULL
85

query I rowsort
SELECT ALL + + 17 * 44 AS col1
----
748

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT + COALESCE ( + 64, 85, - COUNT( * ) * - + NULLIF ( + + 69, + + 81 ) ) + 62 + 24 * + 42 - - ( - 41 ) AS col0
----
1093

skipif mysql # not compatible
query I rowsort label-9150
SELECT + COALESCE ( + 64, 85, - COUNT ( * ) * - + NULLIF ( + + 69, + + 81 ) ) + 62 + 24 * + 42 - - ( - 41 ) AS col0
----
1093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9151
SELECT - - 65 + - CAST( - 50 AS SIGNED ) AS col0
----
115

skipif mysql # not compatible
query I rowsort label-9151
SELECT - - 65 + - CAST ( - 50 AS INTEGER ) AS col0
----
115

query II rowsort
SELECT ALL - 48 AS col2, + 8 AS col0
----
-48
8

query I rowsort
SELECT - + 90 + 66 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT - - COUNT( * ) + + 45 * + + 86 + - 98
----
3773

skipif mysql # not compatible
query I rowsort label-9154
SELECT - - COUNT ( * ) + + 45 * + + 86 + - 98
----
3773

query I rowsort
SELECT ALL - 10 + - 79 + - 20 * 68 * + 41 + 84 + 36
----
-55729

query I rowsort
SELECT - - NULLIF ( 14, - 78 ) + - CASE 40 WHEN - 60 THEN NULL ELSE - 22 END * 97
----
2148

query I rowsort
SELECT - 96 + + 2
----
-94

query I rowsort
SELECT ALL + 72 * 86 AS col1
----
6192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9159
SELECT ALL - 18 + CAST( + 97 AS SIGNED ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL - 18 + CAST ( + 97 AS INTEGER ) AS col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9160
SELECT 81 DIV - 23 + + ( - + MIN( ALL + + 88 ) ) * + ( - 6 )
----
525

skipif mysql # not compatible
query I rowsort label-9160
SELECT 81 / - 23 + + ( - + MIN ( ALL + + 88 ) ) * + ( - 6 )
----
525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9161
SELECT ALL 19 DIV - 77 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL 19 / - 77 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9162
SELECT + 48 AS col1, - COUNT( * ) * - + COALESCE ( + + MIN( DISTINCT - - 33 ), - 35 - - 98 ) * + COUNT( * ) - - COALESCE ( COUNT( * ), + COUNT( * ) * + 98 ) - + 58 * + - COUNT( * ) AS col0
----
48
92

skipif mysql # not compatible
query II rowsort label-9162
SELECT + 48 AS col1, - COUNT ( * ) * - + COALESCE ( + + MIN ( DISTINCT - - 33 ), - 35 - - 98 ) * + COUNT ( * ) - - COALESCE ( COUNT ( * ), + COUNT ( * ) * + 98 ) - + 58 * + - COUNT ( * ) AS col0
----
48
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9163
SELECT DISTINCT + 87 DIV + + ( + 8 ) + 46 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT + 87 / + + ( + 8 ) + 46 AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9164
SELECT ALL - 3 DIV + + 65 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL - 3 / + + 65 + + COUNT ( * )
----
1

query I rowsort
SELECT ALL - 73 * - + 31 AS col2
----
2263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9166
SELECT - 34 + CAST( - 35 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-9166
SELECT - 34 + CAST ( - 35 AS INTEGER )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9167
SELECT DISTINCT 6 / 4 + 65 * 71 * + ( - + 52 ) * - - CASE - + SUM( ALL - - ( - 33 ) ) WHEN + CAST( NULL AS SIGNED ) THEN ( + + 64 ) * + + COUNT( * ) / + - 59 - - MAX( ALL 7 ) * 84 WHEN 97 + 14 THEN ( COUNT( * ) ) END + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT 6 / 4 + 65 * 71 * + ( - + 52 ) * - - CASE - + SUM ( ALL - - ( - 33 ) ) WHEN + CAST ( NULL AS INTEGER ) THEN ( + + 64 ) * + + COUNT ( * ) / + - 59 - - MAX ( ALL 7 ) * 84 WHEN 97 + 14 THEN ( COUNT ( * ) ) END + 19 AS col2
----
NULL

query I rowsort
SELECT - 86 * 76
----
-6536

query I rowsort
SELECT - ( 76 ) * + 20 AS col1
----
-1520

query II rowsort
SELECT ALL + 77 AS col1, 93 + - - 74 * + + 40 col0
----
77
3053

query I rowsort
SELECT - 56 + - 44
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9172
SELECT ALL - 99 * - - CAST( - - 90 AS SIGNED ) - - 69 AS col2
----
-8841

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL - 99 * - - CAST ( - - 90 AS INTEGER ) - - 69 AS col2
----
-8841

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT ALL CAST( NULL AS SIGNED ) * 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL CAST ( NULL AS INTEGER ) * 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT CASE + - ( 29 ) WHEN - 78 THEN + + 34 * - COUNT( * ) / COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT CASE + - ( 29 ) WHEN - 78 THEN + + 34 * - COUNT ( * ) / COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT NULLIF ( 50, 42 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9176
SELECT - 96 * CAST( NULL AS SIGNED ), - 86 + + 57 AS col2
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-9176
SELECT - 96 * CAST ( NULL AS INTEGER ), - 86 + + 57 AS col2
----
NULL
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT + COALESCE ( - 39, + 62 * - 29 ) + + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-9177
SELECT + COALESCE ( - 39, + 62 * - 29 ) + + COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL COUNT( DISTINCT + 19 ) * - 31
----
-31

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL COUNT ( DISTINCT + 19 ) * - 31
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9179
SELECT + - CAST( NULL AS SIGNED ) AS col1, - ( - ( - MIN( ALL + 13 ) ) ) * + + SUM( ALL 12 )
----
NULL
-156

skipif mysql # not compatible
query II rowsort label-9179
SELECT + - CAST ( NULL AS INTEGER ) AS col1, - ( - ( - MIN ( ALL + 13 ) ) ) * + + SUM ( ALL 12 )
----
NULL
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9180
SELECT + - COALESCE ( 73, + 99 DIV + 2 * + 37 + MIN( - 90 ) + + + 62 + - + MIN( ALL - 55 ) * + SUM( - 41 ), - + 98 * - ( - 72 ) + - + 4 + SUM( 34 ) ) + 18
----
-55

skipif mysql # not compatible
query I rowsort label-9180
SELECT + - COALESCE ( 73, + 99 / + 2 * + 37 + MIN ( - 90 ) + + + 62 + - + MIN ( ALL - 55 ) * + SUM ( - 41 ), - + 98 * - ( - 72 ) + - + 4 + SUM ( 34 ) ) + 18
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT DISTINCT - 57 * + COUNT( * ) * - 30 AS col2
----
1710

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT - 57 * + COUNT ( * ) * - 30 AS col2
----
1710

query I rowsort
SELECT ALL - - 3 * - 46
----
-138

onlyif mysql # aggregate syntax: 
query II rowsort label-9183
SELECT ALL COUNT( * ) AS col2, + ( 86 )
----
1
86

skipif mysql # not compatible
query II rowsort label-9183
SELECT ALL COUNT ( * ) AS col2, + ( 86 )
----
1
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9184
SELECT ALL - ( - + CAST( NULL AS DECIMAL ) ) * - 82 + - + AVG ( - 41 ) + + 7 + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL - ( - + CAST ( NULL AS REAL ) ) * - 82 + - + AVG ( - 41 ) + + 7 + + 1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9185
SELECT - COUNT( * ), - 73 + - 73 AS col2
----
-1
-146

skipif mysql # not compatible
query II rowsort label-9185
SELECT - COUNT ( * ), - 73 + - 73 AS col2
----
-1
-146

onlyif mysql # aggregate syntax: 
query II rowsort label-9186
SELECT ALL COUNT( * ) AS col0, COUNT( * ) + + 50 + + + 58 + + 51 + - COUNT( * ) * - 69
----
1
229

skipif mysql # not compatible
query II rowsort label-9186
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) + + 50 + + + 58 + + 51 + - COUNT ( * ) * - 69
----
1
229

onlyif mysql # DIV for integer division: 
query I rowsort label-9187
SELECT + - 25 DIV - 70 + NULLIF ( 91, + 25 )
----
91

skipif mysql # not compatible
query I rowsort label-9187
SELECT + - 25 / - 70 + NULLIF ( 91, + 25 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT ALL 83 + + CASE AVG ( ALL + 90 ) WHEN + AVG ( 69 ) + + 18 * - 16 THEN + - 84 WHEN - + 16 * + + 33 THEN NULL WHEN - + 82 * COUNT( * ) * COUNT( * ) THEN - + 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL 83 + + CASE AVG ( ALL + 90 ) WHEN + AVG ( 69 ) + + 18 * - 16 THEN + - 84 WHEN - + 16 * + + 33 THEN NULL WHEN - + 82 * COUNT ( * ) * COUNT ( * ) THEN - + 61 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9189
SELECT - + COALESCE ( + + 62, - - COALESCE ( - 68, - ( - + COUNT( ALL 98 ) ), - 53 * COUNT( * ) DIV AVG ( - - 55 ) ) DIV COUNT( * ) - + + 14 )
----
-62

skipif mysql # not compatible
query I rowsort label-9189
SELECT - + COALESCE ( + + 62, - - COALESCE ( - 68, - ( - + COUNT ( ALL 98 ) ), - 53 * COUNT ( * ) / AVG ( - - 55 ) ) / COUNT ( * ) - + + 14 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9190
SELECT - + 45 * 84 DIV + ( + 45 ) * - CASE + CASE 73 WHEN CAST( - 64 AS SIGNED ) + + + 61 THEN + 85 + - 9 WHEN + COUNT( * ) DIV 12 DIV + 11 * + 70 THEN NULL ELSE NULL END WHEN + 94 THEN - 60 WHEN 69 * - 10 THEN NULL WHEN + 10 THEN - ( COUNT( * ) ) ELSE COUNT( * ) END
----
84

skipif mysql # not compatible
query I rowsort label-9190
SELECT - + 45 * 84 / + ( + 45 ) * - CASE + CASE 73 WHEN CAST ( - 64 AS INTEGER ) + + + 61 THEN + 85 + - 9 WHEN + COUNT ( * ) / 12 / + 11 * + 70 THEN NULL ELSE NULL END WHEN + 94 THEN - 60 WHEN 69 * - 10 THEN NULL WHEN + 10 THEN - ( COUNT ( * ) ) ELSE COUNT ( * ) END
----
84

query I rowsort
SELECT DISTINCT + 81 + + + 4 AS col2
----
85

query II rowsort
SELECT ALL 14 AS col1, 20
----
14
20

query I rowsort
SELECT DISTINCT - 12 + + + 50 * + 22
----
1088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9194
SELECT DISTINCT - - 77 + + 32 + - - 0 + + COALESCE ( MIN( ALL - 15 ), + - 89 + + 66, - + 62 ) DIV + + 42 * - 8 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT - - 77 + + 32 + - - 0 + + COALESCE ( MIN ( ALL - 15 ), + - 89 + + 66, - + 62 ) / + + 42 * - 8 AS col1
----
109

query II rowsort
SELECT 7 * - 20, ( - NULLIF ( + + 68, 49 ) ) AS col1
----
-140
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-9196
SELECT CASE WHEN NOT 44 NOT BETWEEN + COALESCE ( + 90, + - 16, + 53 ) - + 6 + + 25 + - 82 AND NULL THEN + + 38 ELSE NULL END + 94 AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9196
SELECT CASE WHEN NOT 44 NOT BETWEEN + COALESCE ( + 90, + - 16, + 53 ) - + 6 + + 25 + - 82 AND NULL THEN + + 38 ELSE NULL END + 94 AS col0, COUNT ( * )
----
NULL
1

query I rowsort
SELECT 32 * + + 93 * - 13 * - 22 AS col1
----
851136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9198
SELECT 6 + CAST( NULL AS SIGNED ) - + - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT 6 + CAST ( NULL AS INTEGER ) - + - 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9199
SELECT DISTINCT - 24 * + 45 AS col2, CASE - 62 WHEN - 71 * - + 39 + - SUM( 64 ) + - - 18 THEN + 10 END / - 83 + 1 - - 67 AS col2
----
-1080
NULL

skipif mysql # not compatible
query II rowsort label-9199
SELECT DISTINCT - 24 * + 45 AS col2, CASE - 62 WHEN - 71 * - + 39 + - SUM ( 64 ) + - - 18 THEN + 10 END / - 83 + 1 - - 67 AS col2
----
-1080
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9200
SELECT DISTINCT - COUNT( ALL 18 ) AS col0, + COUNT( * ) * + 48 + - 61
----
-1
-13

skipif mysql # not compatible
query II rowsort label-9200
SELECT DISTINCT - COUNT ( ALL 18 ) AS col0, + COUNT ( * ) * + 48 + - 61
----
-1
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-9201
SELECT ALL - COUNT( * ) * - - 0 AS col1, 19 - - - COUNT( * ) AS col2
----
0
18

skipif mysql # not compatible
query II rowsort label-9201
SELECT ALL - COUNT ( * ) * - - 0 AS col1, 19 - - - COUNT ( * ) AS col2
----
0
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9202
SELECT DISTINCT - COALESCE ( + CAST( - 92 AS SIGNED ), + 70 + + - COALESCE ( ( COUNT( * ) ), - + COUNT( * ) * - + 12 + - 35 ) + - CAST( - + COUNT( * ) AS SIGNED ) + + AVG ( + - ( - 0 ) ) DIV 25 + + ( COUNT( * ) ) ) * 63 AS col1
----
5796

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT - COALESCE ( + CAST ( - 92 AS INTEGER ), + 70 + + - COALESCE ( ( COUNT ( * ) ), - + COUNT ( * ) * - + 12 + - 35 ) + - CAST ( - + COUNT ( * ) AS INTEGER ) + + AVG ( + - ( - 0 ) ) / 25 + + ( COUNT ( * ) ) ) * 63 AS col1
----
5796

onlyif mysql # DIV for integer division: 
query I rowsort label-9203
SELECT 6 + 64 + - 74 + - 69 DIV 48 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9203
SELECT 6 + 64 + - 74 + - 69 / 48 AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9204
SELECT COUNT( ALL 67 ) DIV - COUNT( * ) + + 65 + 99 * + MAX( ALL + 95 ) * + 16 - 7 - - 19 AS col1
----
150556

skipif mysql # not compatible
query I rowsort label-9204
SELECT COUNT ( ALL 67 ) / - COUNT ( * ) + + 65 + 99 * + MAX ( ALL + 95 ) * + 16 - 7 - - 19 AS col1
----
150556

query I rowsort
SELECT 12 * + 96 * 20 AS col0
----
23040

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT 47 * - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-9206
SELECT 47 * - COUNT ( * )
----
-47

query I rowsort
SELECT ALL - 6 * 73 AS col2
----
-438

query I rowsort
SELECT ALL + ( + + 53 ) * 93
----
4929

onlyif mysql # aggregate syntax: 
query II rowsort label-9209
SELECT 22 * - + 42 AS col2, - 26 - + COUNT( * ) + - COUNT( * ) - + 12
----
-924
-40

skipif mysql # not compatible
query II rowsort label-9209
SELECT 22 * - + 42 AS col2, - 26 - + COUNT ( * ) + - COUNT ( * ) - + 12
----
-924
-40

query I rowsort
SELECT + 48 * + - ( - + 29 ) AS col2
----
1392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9211
SELECT ALL - CAST( + - 91 AS SIGNED ) + - 74 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL - CAST ( + - 91 AS INTEGER ) + - 74 AS col0
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9212
SELECT ALL + 4 + + CAST( NULL AS DECIMAL ) - 3 * + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL + 4 + + CAST ( NULL AS REAL ) - 3 * + 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9213
SELECT - + ( COUNT( ALL + 76 ) ) AS col2, - 45
----
-1
-45

skipif mysql # not compatible
query II rowsort label-9213
SELECT - + ( COUNT ( ALL + 76 ) ) AS col2, - 45
----
-1
-45

query I rowsort
SELECT 29 * - - ( + 73 ) * - 93 - + 17 + - + 99 AS col2
----
-196997

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9215
SELECT + ( + MIN( - + 50 ) ) * 39 + + 76 + COALESCE ( + 79, ( - 40 ) ) - + ( - - 76 ) DIV - COUNT( * ) + + 48 * ( - 99 )
----
-6471

skipif mysql # not compatible
query I rowsort label-9215
SELECT + ( + MIN ( - + 50 ) ) * 39 + + 76 + COALESCE ( + 79, ( - 40 ) ) - + ( - - 76 ) / - COUNT ( * ) + + 48 * ( - 99 )
----
-6471

query II rowsort
SELECT ALL 68 + + + 18 AS col2, ( 33 )
----
86
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT - 58 * + COUNT( ALL + 16 ) + + 75 - - 43 + 61
----
121

skipif mysql # not compatible
query I rowsort label-9217
SELECT - 58 * + COUNT ( ALL + 16 ) + + 75 - - 43 + 61
----
121

query I rowsort
SELECT DISTINCT - + 33 + + 36 - 45 + + 98 col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9219
SELECT ALL + SUM( DISTINCT - - 83 ) + ( + 94 ) + 25 * + - CAST( NULL AS SIGNED ) + - AVG ( ALL + - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL + SUM ( DISTINCT - - 83 ) + ( + 94 ) + 25 * + - CAST ( NULL AS INTEGER ) + - AVG ( ALL + - 11 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT 98 + - MIN( DISTINCT + 34 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9220
SELECT 98 + - MIN ( DISTINCT + 34 ) AS col1
----
64

query I rowsort
SELECT ALL + 2 + - 12 + 37
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9222
SELECT CAST( NULL AS DECIMAL ) * - 65 / - + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT CAST ( NULL AS REAL ) * - 65 / - + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT DISTINCT ( - + 96 ) * + COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT ( - + 96 ) * + COUNT ( * ) AS col2
----
-96

query I rowsort
SELECT 74 + - - 92 AS col2
----
166

query II rowsort
SELECT ALL 42, COALESCE ( - 80, - 29 * 37 + - + 48, + 69 ) col2
----
42
-80

query I rowsort
SELECT 78 * - 21 AS col1
----
-1638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT ALL 81 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL 81 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 65, 43 * + 41 AS col2
----
65
1763

query I rowsort
SELECT 26 + 29
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT SUM( ALL 25 ) + - 97 + 86
----
14

skipif mysql # not compatible
query I rowsort label-9230
SELECT SUM ( ALL 25 ) + - 97 + 86
----
14

query I rowsort
SELECT ALL 45 - - 17 * - 51 * + 94 + + - 53
----
-81506

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL - ( - COUNT( * ) ) * ( - 0 ) - - NULLIF ( + 69, - + COUNT( * ) + + - 10 + - + 94 + + 14 * COUNT( * ) + 5 * + 28 ) * - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL - ( - COUNT ( * ) ) * ( - 0 ) - - NULLIF ( + 69, - + COUNT ( * ) + + - 10 + - + 94 + + 14 * COUNT ( * ) + 5 * + 28 ) * - COUNT ( * )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9233
SELECT - 9 * CAST( NULL AS SIGNED ) + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT - 9 * CAST ( NULL AS INTEGER ) + + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT 57 * - COALESCE ( - 66, MIN( DISTINCT - 24 ) ) * - - 88 + - 50 * + - COUNT( * )
----
331106

skipif mysql # not compatible
query I rowsort label-9234
SELECT 57 * - COALESCE ( - 66, MIN ( DISTINCT - 24 ) ) * - - 88 + - 50 * + - COUNT ( * )
----
331106

query I rowsort
SELECT ALL - ( - - 63 ) AS col1
----
-63

query I rowsort
SELECT DISTINCT - + 2 + + - 7
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL - ( + + COUNT( + 42 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL - ( + + COUNT ( + 42 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9238
SELECT + CAST( 52 AS SIGNED ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9238
SELECT + CAST ( 52 AS INTEGER ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT ALL - 38 + COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - 38 + COUNT ( * ) AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9240
SELECT SUM( ALL - 17 ) + + 96, 58 * + 45 + - - 39 DIV - 14 col0
----
79
2608

skipif mysql # not compatible
query II rowsort label-9240
SELECT SUM ( ALL - 17 ) + + 96, 58 * + 45 + - - 39 / - 14 col0
----
79
2608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9241
SELECT DISTINCT + - 10 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT + - 10 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - 60 + ( + 54 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9243
SELECT CAST( - - 37 AS SIGNED ) DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-9243
SELECT CAST ( - - 37 AS INTEGER ) / - 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9244
SELECT ALL - + 31 + - + CAST( - - MAX( + 40 ) AS SIGNED ) AS col1, 42 AS col2
----
-71
42

skipif mysql # not compatible
query II rowsort label-9244
SELECT ALL - + 31 + - + CAST ( - - MAX ( + 40 ) AS INTEGER ) AS col1, 42 AS col2
----
-71
42

query I rowsort
SELECT ALL 1 - + 60
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-9246
SELECT - 32 AS col0, - 38 + - COUNT( * ) * + 53 AS col0
----
-32
-91

skipif mysql # not compatible
query II rowsort label-9246
SELECT - 32 AS col0, - 38 + - COUNT ( * ) * + 53 AS col0
----
-32
-91

query II rowsort
SELECT ALL 60 AS col1, + ( - - 28 ) col0
----
60
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9248
SELECT - MIN( 78 ) * 21, 58 AS col1
----
-1638
58

skipif mysql # not compatible
query II rowsort label-9248
SELECT - MIN ( 78 ) * 21, 58 AS col1
----
-1638
58

query I rowsort
SELECT COALESCE ( + 41, + 87 * + 20 ) AS col2
----
41

query I rowsort
SELECT DISTINCT NULLIF ( + 21, CASE - 30 WHEN - + 17 / 77 * 45 * - 30 * - 17 + + 51 - + - 42 THEN NULL WHEN + + AVG ( ALL 77 ) + 24 THEN - + 58 END ) AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9251
SELECT - CASE + 51 WHEN - - CAST( + 96 AS SIGNED ) * 38 * ( + - 7 ) / + 43 - - - 31 THEN - - 52 WHEN + + 74 THEN + COUNT( * ) WHEN - 76 THEN + 7 ELSE - 46 END AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9251
SELECT - CASE + 51 WHEN - - CAST ( + 96 AS INTEGER ) * 38 * ( + - 7 ) / + 43 - - - 31 THEN - - 52 WHEN + + 74 THEN + COUNT ( * ) WHEN - 76 THEN + 7 ELSE - 46 END AS col2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9252
SELECT DISTINCT 99 * - 74 AS col2, + 14 - - + MIN( DISTINCT 76 ) + + + 52 AS col1
----
-7326
142

skipif mysql # not compatible
query II rowsort label-9252
SELECT DISTINCT 99 * - 74 AS col2, + 14 - - + MIN ( DISTINCT 76 ) + + + 52 AS col1
----
-7326
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9253
SELECT ALL COUNT( * ) * CAST( + 64 AS SIGNED ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL COUNT ( * ) * CAST ( + 64 AS INTEGER ) AS col2
----
64

query I rowsort
SELECT ALL + 51 * - - 51
----
2601

query II rowsort
SELECT DISTINCT NULLIF ( + - ( 44 ), - + 19 ) AS col1, + 87
----
-44
87

query II rowsort
SELECT + 92 * + - 41 col1, 70
----
-3772
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT ALL MAX( - + ( 61 ) ) * COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL MAX ( - + ( 61 ) ) * COUNT ( * ) AS col2
----
-61

query I rowsort
SELECT + 9 - - 57 AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9259
SELECT - 21 * + + CASE 29 WHEN 80 + + + 79 / 36 THEN - 56 - 0 WHEN - + 29 THEN NULL ELSE - 73 * - NULLIF ( 98, - 66 + - 96 ) + + 51 * 89 + + CAST( - 60 AS SIGNED ) + - 16 END * 78
----
-19028646

skipif mysql # not compatible
query I rowsort label-9259
SELECT - 21 * + + CASE 29 WHEN 80 + + + 79 / 36 THEN - 56 - 0 WHEN - + 29 THEN NULL ELSE - 73 * - NULLIF ( 98, - 66 + - 96 ) + + 51 * 89 + + CAST ( - 60 AS INTEGER ) + - 16 END * 78
----
-19028646

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9260
SELECT - 80 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT - 80 + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( - 4, - 16 ) AS col0
----
4

query I rowsort
SELECT - NULLIF ( - 77, + 62 ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT + MAX( NULLIF ( + 70, - ( + 71 ) ) ) * 48 * + ( - - 4 ) AS col0
----
13440

skipif mysql # not compatible
query I rowsort label-9263
SELECT + MAX ( NULLIF ( + 70, - ( + 71 ) ) ) * 48 * + ( - - 4 ) AS col0
----
13440

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT + MAX( DISTINCT - 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9264
SELECT + MAX ( DISTINCT - 65 ) AS col1
----
-65

query I rowsort
SELECT DISTINCT + 7 * + + 81 * 11 + CASE - 78 WHEN + 58 + 3 * + - 23 THEN 36 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 67 * - - 37
----
2479

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT + COUNT( * ) + - - 94
----
95

skipif mysql # not compatible
query I rowsort label-9267
SELECT + COUNT ( * ) + - - 94
----
95

query I rowsort
SELECT ( - 22 ) AS col0
----
-22

query I rowsort
SELECT 61 * - 18 + + 89
----
-1009

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ALL - 79 * ( - - 71 ) - - ( - COUNT( * ) ) + + - CASE - 51 WHEN - 71 * - 81 - 4 + + + 35 THEN NULL ELSE + 7 - - + 74 + + 94 + - 26 * 75 END * - + ( - 86 ) + - 6 + + 43 * + 71 AS col0
----
150087

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL - 79 * ( - - 71 ) - - ( - COUNT ( * ) ) + + - CASE - 51 WHEN - 71 * - 81 - 4 + + + 35 THEN NULL ELSE + 7 - - + 74 + + 94 + - 26 * 75 END * - + ( - 86 ) + - 6 + + 43 * + 71 AS col0
----
150087

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT + SUM( + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT + SUM ( + 31 )
----
31

query I rowsort
SELECT + COALESCE ( 23, + - 36 ) col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9273
SELECT ALL 27 * - CAST( NULL AS SIGNED ) * - 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL 27 * - CAST ( NULL AS INTEGER ) * - 12 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9274
SELECT CASE - 17 WHEN + + CASE 38 WHEN + 66 / + - 30 + - + 91 THEN - COUNT( * ) WHEN 77 THEN + + 34 ELSE - + 46 / - 81 * + 43 * 92 - - COUNT( * ) + CAST( 63 AS SIGNED ) * + + 62 + ( 74 ) END THEN + 9 * 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT CASE - 17 WHEN + + CASE 38 WHEN + 66 / + - 30 + - + 91 THEN - COUNT ( * ) WHEN 77 THEN + + 34 ELSE - + 46 / - 81 * + 43 * 92 - - COUNT ( * ) + CAST ( 63 AS INTEGER ) * + + 62 + ( 74 ) END THEN + 9 * 7 ELSE NULL END
----
NULL

query I rowsort
SELECT + - ( - 30 )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-9276
SELECT DISTINCT + - NULLIF ( - 49, 52 ) * - + 64 + COUNT( * ), 19 + + - 3 * + - NULLIF ( - - 79, 31 ) AS col1
----
-3135
256

skipif mysql # not compatible
query II rowsort label-9276
SELECT DISTINCT + - NULLIF ( - 49, 52 ) * - + 64 + COUNT ( * ), 19 + + - 3 * + - NULLIF ( - - 79, 31 ) AS col1
----
-3135
256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9277
SELECT ALL + - 32 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL + - 32 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9278
SELECT ALL 30 DIV - COALESCE ( + 79, - + 73 DIV 9 + - 29 + 86 * - - AVG ( DISTINCT 50 ) + + + 86 DIV - 70 )
----
0

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL 30 / - COALESCE ( + 79, - + 73 / 9 + - 29 + 86 * - - AVG ( DISTINCT 50 ) + + + 86 / - 70 )
----
0

query I rowsort
SELECT - - 80 - + - 15
----
95

query I rowsort
SELECT ALL 3 * + 10 + - 13 - + 56 + + 85 + 84 * 58
----
4918

query I rowsort
SELECT ALL + 42 * + 39 * + 46 AS col0
----
75348

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT - + COUNT( * ) + - + 2 + + 7
----
4

skipif mysql # not compatible
query I rowsort label-9282
SELECT - + COUNT ( * ) + - + 2 + + 7
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9283
SELECT ALL - COUNT( + CAST( NULL AS SIGNED ) ) * + 29 AS col0, 63
----
0
63

skipif mysql # not compatible
query II rowsort label-9283
SELECT ALL - COUNT ( + CAST ( NULL AS INTEGER ) ) * + 29 AS col0, 63
----
0
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9284
SELECT - AVG ( + 81 ) + + 74 - + + 95 / - COALESCE ( - ( MIN( - 20 ) ), + 27 * + + 45 * - + 59 + + 31, + - 12 ) + - - ( + - 84 ) + - 32 + 65 + CAST( NULL AS SIGNED ) * - + 97 * - COALESCE ( + 74, COUNT( * ), 82 * - 43 + - 25 ) * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9284
SELECT - AVG ( + 81 ) + + 74 - + + 95 / - COALESCE ( - ( MIN ( - 20 ) ), + 27 * + + 45 * - + 59 + + 31, + - 12 ) + - - ( + - 84 ) + - 32 + 65 + CAST ( NULL AS INTEGER ) * - + 97 * - COALESCE ( + 74, COUNT ( * ), 82 * - 43 + - 25 ) * 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ALL 69 - NULLIF ( MAX( DISTINCT + 34 ), 83 )
----
35

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL 69 - NULLIF ( MAX ( DISTINCT + 34 ), 83 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9286
SELECT - 40 + + + 19 + - + SUM( ALL CAST( - 9 AS SIGNED ) ) * - - 49 * 76
----
33495

skipif mysql # not compatible
query I rowsort label-9286
SELECT - 40 + + + 19 + - + SUM ( ALL CAST ( - 9 AS INTEGER ) ) * - - 49 * 76
----
33495

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT - MAX( - 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9287
SELECT - MAX ( - 56 ) AS col2
----
56

query I rowsort
SELECT - 10 + - 60
----
-70

query II rowsort
SELECT - 65, - NULLIF ( - + 16, - 52 ) AS col1
----
-65
16

query I rowsort
SELECT - ( 82 ) col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9291
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 19 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9292
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 1 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 1 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL - COUNT( * ) + - - ( + + 16 ) * 14
----
223

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL - COUNT ( * ) + - - ( + + 16 ) * 14
----
223

query I rowsort
SELECT + CASE - 42 WHEN 78 THEN NULL WHEN 40 THEN - 56 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9295
SELECT ALL 75 DIV + 27 + - - COUNT( DISTINCT - + 78 ) - + + 45 AS col2, - 45 + - - 3
----
-42
-42

skipif mysql # not compatible
query II rowsort label-9295
SELECT ALL 75 / + 27 + - - COUNT ( DISTINCT - + 78 ) - + + 45 AS col2, - 45 + - - 3
----
-42
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9296
SELECT + 77 * + CAST( NULL AS SIGNED ) - - - COUNT( * ) + + ( + - 99 ), 76 col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-9296
SELECT + 77 * + CAST ( NULL AS INTEGER ) - - - COUNT ( * ) + + ( + - 99 ), 76 col1
----
NULL
76

query II rowsort
SELECT + 37 AS col1, 52 AS col1
----
37
52

query I rowsort
SELECT ALL - - ( + 47 )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9299
SELECT + 47 DIV - + NULLIF ( - - 62, - 36 DIV 41 + - 17 * - 32 * + 0 ) * + 6 * - + 97 * + 96 + - 76 * + 32 * + + 77 AS col2
----
-187264

skipif mysql # not compatible
query I rowsort label-9299
SELECT + 47 / - + NULLIF ( - - 62, - 36 / 41 + - 17 * - 32 * + 0 ) * + 6 * - + 97 * + 96 + - 76 * + 32 * + + 77 AS col2
----
-187264

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT DISTINCT + COUNT( * ) - 80
----
-79

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT + COUNT ( * ) - 80
----
-79

query I rowsort
SELECT ALL - - 78 col1
----
78

query I rowsort
SELECT DISTINCT - CASE + ( + ( + 17 ) ) WHEN - ( 93 ) * + 63 THEN 20 ELSE - + ( 25 ) END
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9303
SELECT 73 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9303
SELECT 73 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT + MIN( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-9304
SELECT + MIN ( - 0 )
----
0

query I rowsort
SELECT - ( + NULLIF ( + + 83, - 18 ) )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT + 59 * - + 74 + + + COUNT( * )
----
-4365

skipif mysql # not compatible
query I rowsort label-9306
SELECT + 59 * - + 74 + + + COUNT ( * )
----
-4365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9307
SELECT + 67 + - CASE - + 9 WHEN - CAST( NULL AS SIGNED ) / + 67 THEN NULL WHEN - 13 * - 24 * + 93 + - 89 + + - 89 * - NULLIF ( NULLIF ( 45, + 69 * + AVG ( ALL + + CASE - 82 WHEN ( + 55 ) THEN - 98 + - 68 END ) + 48 * 65 ), - 43 ) THEN + 44 * + 84 + + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9307
SELECT + 67 + - CASE - + 9 WHEN - CAST ( NULL AS INTEGER ) / + 67 THEN NULL WHEN - 13 * - 24 * + 93 + - 89 + + - 89 * - NULLIF ( NULLIF ( 45, + 69 * + AVG ( ALL + + CASE - 82 WHEN ( + 55 ) THEN - 98 + - 68 END ) + 48 * 65 ), - 43 ) THEN + 44 * + 84 + + 9 END
----
NULL

query I rowsort
SELECT ALL - + ( 73 ) AS col2
----
-73

query I rowsort
SELECT DISTINCT 45 * - 39 AS col1
----
-1755

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT - 94 * + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-9310
SELECT - 94 * + COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9311
SELECT ALL COUNT( * ) * + 1 - 52 + 63 DIV - 99 AS col2, - 47
----
-51
-47

skipif mysql # not compatible
query II rowsort label-9311
SELECT ALL COUNT ( * ) * + 1 - 52 + 63 / - 99 AS col2, - 47
----
-51
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9312
SELECT ALL + 96 DIV 39
----
2

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL + 96 / 39
----
2

query II rowsort
SELECT ALL 96 AS col1, 89 + - - ( + 8 ) * + 43 AS col2
----
96
433

query II rowsort
SELECT - 49, 22 AS col0
----
-49
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9315
SELECT 76 AS col0, NULLIF ( NULLIF ( 93, - - 64 + + 17 - - CAST( - 98 AS SIGNED ) + + - 59 ), - 17 ) AS col0
----
76
93

skipif mysql # not compatible
query II rowsort label-9315
SELECT 76 AS col0, NULLIF ( NULLIF ( 93, - - 64 + + 17 - - CAST ( - 98 AS INTEGER ) + + - 59 ), - 17 ) AS col0
----
76
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9316
SELECT 6 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT 6 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 41 * - - 17 AS col0
----
697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9318
SELECT ( - - COALESCE ( + 77, - CASE + 93 WHEN 90 + 19 THEN + 38 * - 77 WHEN - 78 THEN NULL ELSE NULL END * - - 90, + - COUNT( * ) + + CAST( + 59 AS SIGNED ), + 42 ) ) - 32
----
45

skipif mysql # not compatible
query I rowsort label-9318
SELECT ( - - COALESCE ( + 77, - CASE + 93 WHEN 90 + 19 THEN + 38 * - 77 WHEN - 78 THEN NULL ELSE NULL END * - - 90, + - COUNT ( * ) + + CAST ( + 59 AS INTEGER ), + 42 ) ) - 32
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9319
SELECT 32 AS col1, - CASE + + CASE + + 17 WHEN 29 THEN NULL WHEN - - 84 THEN - 66 ELSE + - 76 END WHEN + 97 * - - 52 THEN NULL WHEN + 25 THEN NULL ELSE + 55 * 62 END + COUNT( * )
----
32
-3409

skipif mysql # not compatible
query II rowsort label-9319
SELECT 32 AS col1, - CASE + + CASE + + 17 WHEN 29 THEN NULL WHEN - - 84 THEN - 66 ELSE + - 76 END WHEN + 97 * - - 52 THEN NULL WHEN + 25 THEN NULL ELSE + 55 * 62 END + COUNT ( * )
----
32
-3409

onlyif mysql # DIV for integer division: 
query I rowsort label-9320
SELECT 60 DIV 24 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9320
SELECT 60 / 24 AS col0
----
2

query I rowsort
SELECT 31 * - - 59
----
1829

query I rowsort
SELECT ALL 56 * - 27 AS col0
----
-1512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9323
SELECT DISTINCT 73 + CAST( NULL AS SIGNED ) + + + 51 * - ( + 7 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT 73 + CAST ( NULL AS INTEGER ) + + + 51 * - ( + 7 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9324
SELECT DISTINCT - 34 DIV SUM( - - NULLIF ( - + COALESCE ( + + ( + 77 ), + CASE + 91 WHEN - 92 THEN + ( - - 74 ) - + 51 + CAST( NULL AS SIGNED ) WHEN - ( + 47 ) THEN NULL ELSE NULL END ), + 93 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT - 34 / SUM ( - - NULLIF ( - + COALESCE ( + + ( + 77 ), + CASE + 91 WHEN - 92 THEN + ( - - 74 ) - + 51 + CAST ( NULL AS INTEGER ) WHEN - ( + 47 ) THEN NULL ELSE NULL END ), + 93 ) )
----
0

query I rowsort
SELECT ALL - 61 + 27 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT COUNT( + 56 ) - + + 18
----
-17

skipif mysql # not compatible
query I rowsort label-9326
SELECT COUNT ( + 56 ) - + + 18
----
-17

query II rowsort
SELECT 43, 77 AS col0
----
43
77

query I rowsort
SELECT 49 * + 9 col1
----
441

onlyif mysql # aggregate syntax: 
query III rowsort label-9329
SELECT + COUNT( * ) AS col0, COUNT( * ) - + COALESCE ( - - COUNT( * ), - MAX( DISTINCT + 87 ) + - 90 ), 27 AS col1
----
1
0
27

skipif mysql # not compatible
query III rowsort label-9329
SELECT + COUNT ( * ) AS col0, COUNT ( * ) - + COALESCE ( - - COUNT ( * ), - MAX ( DISTINCT + 87 ) + - 90 ), 27 AS col1
----
1
0
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT + NULLIF ( + COUNT( * ), 31 ) * - - 47 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9330
SELECT + NULLIF ( + COUNT ( * ), 31 ) * - - 47 AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9331
SELECT ALL - - 24 * + CAST( NULLIF ( + COALESCE ( + 26, + - 61 * 42 * + CASE - 37 WHEN - - 20 THEN 27 END, + 43 * - + 6 ), + + 52 * - - 71 ) AS SIGNED ) + - 29
----
595

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL - - 24 * + CAST ( NULLIF ( + COALESCE ( + 26, + - 61 * 42 * + CASE - 37 WHEN - - 20 THEN 27 END, + 43 * - + 6 ), + + 52 * - - 71 ) AS INTEGER ) + - 29
----
595

query II rowsort
SELECT + 39, - ( + 76 ) AS col1
----
39
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9333
SELECT + COALESCE ( - 54, - COALESCE ( - - 87, 49 ), + 14 * COUNT( * ) * + + 54 ) DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-9333
SELECT + COALESCE ( - 54, - COALESCE ( - - 87, 49 ), + 14 * COUNT ( * ) * + + 54 ) / 70
----
0

query I rowsort
SELECT 10 + + + 43 AS col0
----
53

query II rowsort
SELECT + 39 col1, 33
----
39
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9336
SELECT ALL - - COALESCE ( - + 22, 70 + + 59 + + 58 + 57 * + 47 * 28 + 22, - + COUNT( * ) * - 40 * + 55 DIV + - 18 + + - 51 + - 36 * - 38 DIV + + 13 * + 12 - 49 ) col2, - NULLIF ( 62, + 61 DIV + 1 ) + - COUNT( * )
----
-22
-63

skipif mysql # not compatible
query II rowsort label-9336
SELECT ALL - - COALESCE ( - + 22, 70 + + 59 + + 58 + 57 * + 47 * 28 + 22, - + COUNT ( * ) * - 40 * + 55 / + - 18 + + - 51 + - 36 * - 38 / + + 13 * + 12 - 49 ) col2, - NULLIF ( 62, + 61 / + 1 ) + - COUNT ( * )
----
-22
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9337
SELECT - COUNT( * ) DIV + 96 + - 63 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9337
SELECT - COUNT ( * ) / + 96 + - 63 AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT 87 DIV - - 61
----
1

skipif mysql # not compatible
query I rowsort label-9338
SELECT 87 / - - 61
----
1

query II rowsort
SELECT ALL - - 92, - 61 + - 10 + 6 * 54 AS col1
----
92
253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / - ( + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / - ( + 28 )
----
NULL

query I rowsort
SELECT ALL - + NULLIF ( + 99, + 85 ) AS col1
----
-99

query I rowsort
SELECT ALL - 59 * - 23
----
1357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9343
SELECT 67 DIV 63 + - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9343
SELECT 67 / 63 + - + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9344
SELECT ALL 22 + + 8 DIV + - 85 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL 22 + + 8 / + - 85 AS col1
----
22

query I rowsort
SELECT ( 64 ) * - - 67 * 99 * + CASE - 95 WHEN + 38 THEN + 52 * - + 40 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9346
SELECT CAST( NULL AS SIGNED ) - NULLIF ( 6, - + 92 * - 10 - + 71 + - - 37 ) + - COUNT( * ) / COUNT( * ) * + - 47 * + 62 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9346
SELECT CAST ( NULL AS INTEGER ) - NULLIF ( 6, - + 92 * - 10 - + 71 + - - 37 ) + - COUNT ( * ) / COUNT ( * ) * + - 47 * + 62 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL ( - 42 ) * COUNT( * ) * - 60 AS col1
----
2520

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL ( - 42 ) * COUNT ( * ) * - 60 AS col1
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT - MIN( DISTINCT + ( - - 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-9348
SELECT - MIN ( DISTINCT + ( - - 46 ) )
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9349
SELECT 22 + - 36 * - ( + + 62 ) * - - 91 + - 2 * - CAST( NULL AS DECIMAL ) / - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT 22 + - 36 * - ( + + 62 ) * - - 91 + - 2 * - CAST ( NULL AS REAL ) / - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT - MAX( 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-9350
SELECT - MAX ( 72 )
----
-72

query I rowsort
SELECT COALESCE ( 46, + + 52, 39 ) + - + 90
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT ( + 60 ) + - - MAX( ALL - 11 ) + - + MAX( 88 )
----
-39

skipif mysql # not compatible
query I rowsort label-9352
SELECT ( + 60 ) + - - MAX ( ALL - 11 ) + - + MAX ( 88 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9353
SELECT DISTINCT 67 + 12 * + CAST( NULL AS SIGNED ) * - - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT 67 + 12 * + CAST ( NULL AS INTEGER ) * - - 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9354
SELECT 66 + + 86 - - MIN( - 3 ) * - 49 DIV + COALESCE ( + 6, + + 3 DIV + 47 * - - ( + 43 ) + + 39 ) - 72
----
104

skipif mysql # not compatible
query I rowsort label-9354
SELECT 66 + + 86 - - MIN ( - 3 ) * - 49 / + COALESCE ( + 6, + + 3 / + 47 * - - ( + 43 ) + + 39 ) - 72
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-9355
SELECT - MIN( DISTINCT 51 ) AS col2, 85 + + 44 AS col1
----
-51
129

skipif mysql # not compatible
query II rowsort label-9355
SELECT - MIN ( DISTINCT 51 ) AS col2, 85 + + 44 AS col1
----
-51
129

onlyif mysql # DIV for integer division: 
query II rowsort label-9356
SELECT 76 + + 49, 6 + + 2 * 18 DIV - - 86 + 25 + + 31 + - - 24 + 72 AS col2
----
125
158

skipif mysql # not compatible
query II rowsort label-9356
SELECT 76 + + 49, 6 + + 2 * 18 / - - 86 + 25 + + 31 + - - 24 + 72 AS col2
----
125
158

onlyif mysql # aggregate syntax: 
query II rowsort label-9357
SELECT - COUNT( * ) + - 89 AS col0, - 99 + - 86
----
-90
-185

skipif mysql # not compatible
query II rowsort label-9357
SELECT - COUNT ( * ) + - 89 AS col0, - 99 + - 86
----
-90
-185

query I rowsort
SELECT ALL - 30 - + ( 75 ) AS col2
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-9359
SELECT + 63 DIV + ( 70 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9359
SELECT + 63 / + ( 70 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9360
SELECT - + 20 * + 96 AS col2, + CASE + COUNT( * ) WHEN - - 35 * 99 + - 54 THEN + - 40 * 44 END
----
-1920
NULL

skipif mysql # not compatible
query II rowsort label-9360
SELECT - + 20 * + 96 AS col2, + CASE + COUNT ( * ) WHEN - - 35 * 99 + - 54 THEN + - 40 * 44 END
----
-1920
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT + - CASE + 55 WHEN - COALESCE ( + COUNT( * ), - - ( COUNT( 60 ) ) ) * + 97 / - + 19 THEN 10 / + 77 * + 28 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT + - CASE + 55 WHEN - COALESCE ( + COUNT ( * ), - - ( COUNT ( 60 ) ) ) * + 97 / - + 19 THEN 10 / + 77 * + 28 END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT - - COUNT( - 65 ) * 10
----
10

skipif mysql # not compatible
query I rowsort label-9362
SELECT - - COUNT ( - 65 ) * 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT - ( + 69 ) * + COUNT( * ) * - + ( 19 )
----
1311

skipif mysql # not compatible
query I rowsort label-9363
SELECT - ( + 69 ) * + COUNT ( * ) * - + ( 19 )
----
1311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9364
SELECT + ( CASE + + 6 WHEN + 82 + - - ( - - 86 ) THEN - COALESCE ( + 65, - 79 ) * CASE 89 WHEN 3 THEN 20 WHEN - COUNT( * ) THEN NULL END END ) + - + 26 - CAST( - MIN( DISTINCT - 50 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT + ( CASE + + 6 WHEN + 82 + - - ( - - 86 ) THEN - COALESCE ( + 65, - 79 ) * CASE 89 WHEN 3 THEN 20 WHEN - COUNT ( * ) THEN NULL END END ) + - + 26 - CAST ( - MIN ( DISTINCT - 50 ) AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - - 18 * - 43, 44 * - - 92 * - 3 * ( + ( 7 ) ) AS col1
----
-774
-85008

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT DISTINCT + - 83 * + ( + 47 ) + + COUNT( * )
----
-3900

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT + - 83 * + ( + 47 ) + + COUNT ( * )
----
-3900

query I rowsort
SELECT ALL - + 17 * + 62 + - - 54
----
-1000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9368
SELECT - COUNT( * ) * - 68 DIV + 67, 77 col2
----
1
77

skipif mysql # not compatible
query II rowsort label-9368
SELECT - COUNT ( * ) * - 68 / + 67, 77 col2
----
1
77

query I rowsort
SELECT 24 * ( + - 78 ) * + 26 * - + 84 + + 83 + + - 52 + - 74 * - 14 + 35 AS col0
----
4089550

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT COUNT( - - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-9370
SELECT COUNT ( - - 59 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9371
SELECT + 63 + - + CAST( COUNT( * ) AS SIGNED ) * + - 11 col1
----
74

skipif mysql # not compatible
query I rowsort label-9371
SELECT + 63 + - + CAST ( COUNT ( * ) AS INTEGER ) * + - 11 col1
----
74

query I rowsort
SELECT - 75 * 88
----
-6600

query I rowsort
SELECT ALL 21 * + 53 col1
----
1113

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9374
SELECT + 27 / + - CAST( NULL AS DECIMAL ) * + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT + 27 / + - CAST ( NULL AS REAL ) * + 73 AS col2
----
NULL

query II rowsort
SELECT - COALESCE ( - - 80, + - ( - 98 ) ) AS col0, + 99 AS col1
----
-80
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9376
SELECT ALL 15 - - 72 - - 39 AS col0, CAST( NULL AS SIGNED ) + - 67
----
126
NULL

skipif mysql # not compatible
query II rowsort label-9376
SELECT ALL 15 - - 72 - - 39 AS col0, CAST ( NULL AS INTEGER ) + - 67
----
126
NULL

query I rowsort
SELECT - COALESCE ( + - 35, - 41 ) AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT - CASE + CAST( + 63 AS SIGNED ) WHEN - 88 THEN + - 59 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9378
SELECT - CASE + CAST ( + 63 AS INTEGER ) WHEN - 88 THEN + - 59 END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9379
SELECT ALL 61 * - - CAST( 99 AS SIGNED )
----
6039

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL 61 * - - CAST ( 99 AS INTEGER )
----
6039

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT + 85 * COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9380
SELECT + 85 * COUNT ( * ) AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9381
SELECT + CASE - 45 WHEN - + CAST( + 20 AS SIGNED ) * + - COUNT( * ) THEN 36 WHEN 63 * 13 - + 44 - - 70 - - 50 THEN NULL END - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT + CASE - 45 WHEN - + CAST ( + 20 AS INTEGER ) * + - COUNT ( * ) THEN 36 WHEN 63 * 13 - + 44 - - 70 - - 50 THEN NULL END - 62
----
NULL

query II rowsort
SELECT 95 col0, 13
----
95
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9383
SELECT DISTINCT 86 AS col0, - ( + + 56 ) * - CAST( NULL AS SIGNED )
----
86
NULL

skipif mysql # not compatible
query II rowsort label-9383
SELECT DISTINCT 86 AS col0, - ( + + 56 ) * - CAST ( NULL AS INTEGER )
----
86
NULL

query I rowsort
SELECT ALL NULLIF ( + 76, ( - 32 ) )
----
76

query I rowsort
SELECT ALL - 19 * - + 63
----
1197

onlyif mysql # DIV for integer division: 
query I rowsort label-9386
SELECT + 97 DIV + 48 + + 19
----
21

skipif mysql # not compatible
query I rowsort label-9386
SELECT + 97 / + 48 + + 19
----
21

query I rowsort
SELECT + + 2 * 12 * + - 85 * - ( + 65 ) + - 61 AS col2
----
132539

query I rowsort
SELECT + 10 - - 31
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9389
SELECT + 54 + COUNT( * ) + MAX( + - 87 ) + + + 85 * ( + 9 ) * ( + - 35 ) DIV - - 69
----
-420

skipif mysql # not compatible
query I rowsort label-9389
SELECT + 54 + COUNT ( * ) + MAX ( + - 87 ) + + + 85 * ( + 9 ) * ( + - 35 ) / - - 69
----
-420

onlyif mysql # aggregate syntax: 
query II rowsort label-9390
SELECT + 2 col2, + SUM( - + 19 ) col1
----
2
-19

skipif mysql # not compatible
query II rowsort label-9390
SELECT + 2 col2, + SUM ( - + 19 ) col1
----
2
-19

query I rowsort
SELECT ALL + + 47 col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9392
SELECT DISTINCT + COUNT( * ) / 6 + - + 86 + + 52 + + CAST( NULL AS DECIMAL ) * - 34 * 6 + 60 * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT + COUNT ( * ) / 6 + - + 86 + + 52 + + CAST ( NULL AS REAL ) * - 34 * 6 + 60 * 97
----
NULL

query II rowsort
SELECT ALL + - 30 AS col2, + 56
----
-30
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9394
SELECT ALL 2 DIV + + 9 + - - 56 + - 49 * + + 63 + - 42 + + 96 * + 51 + + 45
----
1868

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL 2 / + + 9 + - - 56 + - 49 * + + 63 + - 42 + + 96 * + 51 + + 45
----
1868

query I rowsort
SELECT DISTINCT - 64 * - 70
----
4480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9396
SELECT ALL - - COUNT( * ) DIV + + MIN( DISTINCT 81 ) + - - 55 + + - 15 * - 73 + + 2 + + - 97 * 13
----
-109

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL - - COUNT ( * ) / + + MIN ( DISTINCT 81 ) + - - 55 + + - 15 * - 73 + + 2 + + - 97 * 13
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-9397
SELECT 30 AS col1, - COUNT( + + NULLIF ( + 26, - 75 ) ) + + + 60 AS col2
----
30
59

skipif mysql # not compatible
query II rowsort label-9397
SELECT 30 AS col1, - COUNT ( + + NULLIF ( + 26, - 75 ) ) + + + 60 AS col2
----
30
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT NULLIF ( + + NULLIF ( - 76, 82 ), + SUM( 11 ) * + 26 + + 93 )
----
-76

skipif mysql # not compatible
query I rowsort label-9398
SELECT NULLIF ( + + NULLIF ( - 76, 82 ), + SUM ( 11 ) * + 26 + + 93 )
----
-76

query I rowsort
SELECT - 87 * ( - + 61 ) AS col0
----
5307

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT + MIN( DISTINCT + 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-9400
SELECT + MIN ( DISTINCT + 63 ) AS col1
----
63

query I rowsort
SELECT - 75 - - 78 AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9402
SELECT DISTINCT + CAST( ( - 12 ) AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT + CAST ( ( - 12 ) AS INTEGER )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9403
SELECT DISTINCT + CASE - COUNT( * ) WHEN - 48 THEN NULL WHEN - CAST( - - 44 AS SIGNED ) * 70 + - 91 THEN - 29 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT + CASE - COUNT ( * ) WHEN - 48 THEN NULL WHEN - CAST ( - - 44 AS INTEGER ) * 70 + - 91 THEN - 29 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 47 * - + 33
----
-1551

query I rowsort
SELECT ( 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT ALL 47 * COUNT( * ) - - 51 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL 47 * COUNT ( * ) - - 51 AS col2
----
98

query I rowsort
SELECT DISTINCT + 57 * - CASE + - 22 WHEN - 34 THEN - 26 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9408
SELECT MIN( ALL 67 ) * + 87 - + COUNT( * ) + - CAST( NULL AS SIGNED ) + + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT MIN ( ALL 67 ) * + 87 - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT - 97 - + - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-9409
SELECT - 97 - + - COUNT ( * )
----
-96

query I rowsort
SELECT - 68 + NULLIF ( - - 59, + 40 + - ( + - 82 ) )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9411
SELECT + CASE 11 WHEN CASE - - CAST( - 89 AS SIGNED ) WHEN + - COUNT( * ) THEN NULL WHEN - 42 THEN COUNT( * ) ELSE NULL END THEN NULL ELSE MIN( + 63 ) END + + + 72 * - 20 AS col1
----
-1377

skipif mysql # not compatible
query I rowsort label-9411
SELECT + CASE 11 WHEN CASE - - CAST ( - 89 AS INTEGER ) WHEN + - COUNT ( * ) THEN NULL WHEN - 42 THEN COUNT ( * ) ELSE NULL END THEN NULL ELSE MIN ( + 63 ) END + + + 72 * - 20 AS col1
----
-1377

onlyif mysql # aggregate syntax: 
query II rowsort label-9412
SELECT 47 * + - 47 AS col0, CASE + ( ( - - NULLIF ( + - COUNT( * ), 85 ) ) ) WHEN - + 34 THEN NULL WHEN 50 THEN - 26 END * - - 26 * + 83
----
-2209
NULL

skipif mysql # not compatible
query II rowsort label-9412
SELECT 47 * + - 47 AS col0, CASE + ( ( - - NULLIF ( + - COUNT ( * ), 85 ) ) ) WHEN - + 34 THEN NULL WHEN 50 THEN - 26 END * - - 26 * + 83
----
-2209
NULL

query I rowsort
SELECT 56 + 51 AS col2
----
107

query I rowsort
SELECT 75 + 59
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT ALL ( + CAST( NULL AS SIGNED ) ) * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) * - 91
----
NULL

query I rowsort
SELECT ALL + + 17 * - ( 31 ) * - 97 AS col1
----
51119

query I rowsort
SELECT + 95 + + 66
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT + COUNT( * ) * - 71
----
-71

skipif mysql # not compatible
query I rowsort label-9418
SELECT + COUNT ( * ) * - 71
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9419
SELECT DISTINCT MIN( - NULLIF ( + - 47, + 2 ) ) + + - COALESCE ( + - COUNT( * ), + 82 * - 29 - NULLIF ( + - 17, - 77 * + 36 ) * + CAST( NULL AS SIGNED ) * MIN( 69 ), + 50 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT MIN ( - NULLIF ( + - 47, + 2 ) ) + + - COALESCE ( + - COUNT ( * ), + 82 * - 29 - NULLIF ( + - 17, - 77 * + 36 ) * + CAST ( NULL AS INTEGER ) * MIN ( 69 ), + 50 ) AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9420
SELECT ALL + CAST( 11 AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL + CAST ( 11 AS INTEGER ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT DISTINCT MAX( DISTINCT + + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT MAX ( DISTINCT + + 46 )
----
46

query I rowsort
SELECT DISTINCT - - 75 + + 70 AS col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT DISTINCT + 85 + + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT + 85 + + COUNT ( * )
----
86

query I rowsort
SELECT 42 * + 39 + + - 47 * + - CASE - 95 WHEN 44 THEN + 74 WHEN 23 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9425
SELECT ALL ( - + COUNT( * ) ) + + - CAST( NULL AS SIGNED ) + - + 82 + - + 35 / + 79 / + COUNT( ALL - CAST( - 48 AS SIGNED ) ) * + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL ( - + COUNT ( * ) ) + + - CAST ( NULL AS INTEGER ) + - + 82 + - + 35 / + 79 / + COUNT ( ALL - CAST ( - 48 AS INTEGER ) ) * + 75 AS col0
----
NULL

query I rowsort
SELECT ALL - 35 + + + 6
----
-29

query I rowsort
SELECT ALL 41 + + - 94 * 63 + - + 33 * - - 30
----
-6871

query II rowsort
SELECT ( - - 4 ) col1, 1 AS col1
----
4
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9429
SELECT ALL - COUNT( DISTINCT CAST( - 43 AS DECIMAL ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL - COUNT ( DISTINCT CAST ( - 43 AS REAL ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT - CAST( + + ( - 53 ) AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-9430
SELECT - CAST ( + + ( - 53 ) AS INTEGER )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT COUNT( * ) * + + 2 + - + COUNT( * ) + 58
----
59

skipif mysql # not compatible
query I rowsort label-9431
SELECT COUNT ( * ) * + + 2 + - + COUNT ( * ) + 58
----
59

query I rowsort
SELECT - 33 + + 96 * 79 * + 59 AS col1
----
447423

query I rowsort
SELECT DISTINCT 3 + - 5 - - - 90 AS col1
----
-92

query II rowsort
SELECT + + ( + 91 ) col0, - 31
----
91
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ( + COUNT( * ) ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9435
SELECT ( + COUNT ( * ) ) * + COUNT ( * )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9436
SELECT CAST( NULL AS DECIMAL ) + - + 19 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9436
SELECT CAST ( NULL AS REAL ) + - + 19 col2
----
NULL

query I rowsort
SELECT DISTINCT ( - 43 ) - - 39 AS col0
----
-4

query I rowsort
SELECT DISTINCT - 61 - 87 AS col0
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9439
SELECT 61 * + 50 + 35 + - - 13 * CAST( 98 AS SIGNED ) * - 23 + ( 58 ) * + + 30 * - ( - + 67 ) AS col2
----
90363

skipif mysql # not compatible
query I rowsort label-9439
SELECT 61 * + 50 + 35 + - - 13 * CAST ( 98 AS INTEGER ) * - 23 + ( 58 ) * + + 30 * - ( - + 67 ) AS col2
----
90363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9440
SELECT 76 + + - COUNT( * ) + + 14 + + - CAST( - + COUNT( * ) AS SIGNED ) AS col2, COUNT( * )
----
90
1

skipif mysql # not compatible
query II rowsort label-9440
SELECT 76 + + - COUNT ( * ) + + 14 + + - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2, COUNT ( * )
----
90
1

query I rowsort
SELECT DISTINCT - COALESCE ( 89, + 58 - - 20 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT - COUNT( DISTINCT 57 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT - COUNT ( DISTINCT 57 ) AS col2
----
-1

query I rowsort
SELECT ALL + 99 * + + 9 * + - ( - 9 )
----
8019

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9444
SELECT 82 DIV + 27 * COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9444
SELECT 82 / + 27 * COUNT ( * ) AS col1
----
3

query I rowsort
SELECT DISTINCT + 26 * - 57
----
-1482

query II rowsort
SELECT ALL 34, + 57 AS col0
----
34
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9447
SELECT COUNT( * ) * - + 46 * + 8 AS col0, - CASE + CASE ( + - 22 ) WHEN + 90 THEN - 45 + - 3 WHEN 41 * + + 74 - - - COUNT( * ) THEN NULL ELSE - SUM( + + 79 ) END WHEN + - COALESCE ( - 50, - 10 - 82, - ( - COUNT( * ) ) + + SUM( - NULLIF ( + 3, 34 ) ) + + 90 * + 67 ) * - 55 THEN NULLIF ( - ( ( + 35 ) ), 67 ) WHEN + 15 THEN 50 END
----
-368
NULL

skipif mysql # not compatible
query II rowsort label-9447
SELECT COUNT ( * ) * - + 46 * + 8 AS col0, - CASE + CASE ( + - 22 ) WHEN + 90 THEN - 45 + - 3 WHEN 41 * + + 74 - - - COUNT ( * ) THEN NULL ELSE - SUM ( + + 79 ) END WHEN + - COALESCE ( - 50, - 10 - 82, - ( - COUNT ( * ) ) + + SUM ( - NULLIF ( + 3, 34 ) ) + + 90 * + 67 ) * - 55 THEN NULLIF ( - ( ( + 35 ) ), 67 ) WHEN + 15 THEN 50 END
----
-368
NULL

query I rowsort
SELECT ALL + + 15 * + 31 AS col2
----
465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT + CAST( NULL AS SIGNED ) + + 27 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT + CAST ( NULL AS INTEGER ) + + 27 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL - - 2 + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - - 2 + + COUNT ( * )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9451
SELECT CAST( - + 80 AS SIGNED ) / + ( 59 ) + - - CAST( NULL AS SIGNED ) AS col2, 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-9451
SELECT CAST ( - + 80 AS INTEGER ) / + ( 59 ) + - - CAST ( NULL AS INTEGER ) AS col2, 55
----
NULL
55

query I rowsort
SELECT 31 * + 73
----
2263

query I rowsort
SELECT 18 - 67 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT - SUM( 92 ) - + + 56 + - 74 * 71 + + 37
----
-5365

skipif mysql # not compatible
query I rowsort label-9454
SELECT - SUM ( 92 ) - + + 56 + - 74 * 71 + + 37
----
-5365

query I rowsort
SELECT ALL - 75 * 68 AS col0
----
-5100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9456
SELECT ALL - + COUNT( DISTINCT + 72 ) DIV 24 col1
----
0

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL - + COUNT ( DISTINCT + 72 ) / 24 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT + COUNT( * ) + + MIN( + + ( + 24 ) )
----
25

skipif mysql # not compatible
query I rowsort label-9457
SELECT + COUNT ( * ) + + MIN ( + + ( + 24 ) )
----
25

query I rowsort
SELECT + 9 - 78
----
-69

query II rowsort
SELECT ALL - 77 AS col2, 32 + - + 67 + ( + - 86 ) * - 89 * - + ( - 31 ) + - + 42
----
-77
237197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9460
SELECT CAST( NULL AS SIGNED ) + 77 * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT CAST ( NULL AS INTEGER ) + 77 * - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL 92 + + + ( + ( COUNT( * ) ) ) + + - 35 + + 10 - 76 * 48 + 71 AS col2
----
-3509

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL 92 + + + ( + ( COUNT ( * ) ) ) + + - 35 + + 10 - 76 * 48 + 71 AS col2
----
-3509

query I rowsort
SELECT DISTINCT + 89 * 34 * - 63 - - 23 AS col1
----
-190615

query I rowsort
SELECT ALL - NULLIF ( - 80, 50 + + ( AVG ( DISTINCT 98 ) ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT DISTINCT - SUM( - ( 25 ) )
----
25

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT - SUM ( - ( 25 ) )
----
25

query I rowsort
SELECT DISTINCT 96 * + 90 - - 74 * + + ( + - ( + - 22 ) ) col0
----
10268

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT MIN( ALL - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-9466
SELECT MIN ( ALL - 73 )
----
-73

query II rowsort
SELECT DISTINCT - 89 AS col1, + 68 AS col2
----
-89
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9468
SELECT CAST( - CAST( - + 16 AS SIGNED ) AS SIGNED ) * + NULLIF ( + 40, - 87 * + + MAX( 36 ) )
----
640

skipif mysql # not compatible
query I rowsort label-9468
SELECT CAST ( - CAST ( - + 16 AS INTEGER ) AS INTEGER ) * + NULLIF ( + 40, - 87 * + + MAX ( 36 ) )
----
640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9469
SELECT COUNT( * ) DIV 98 + + - 82 DIV + 81 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9469
SELECT COUNT ( * ) / 98 + + - 82 / + 81 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9470
SELECT + 89 DIV COUNT( * ) + - 29 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9470
SELECT + 89 / COUNT ( * ) + - 29 AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9471
SELECT MIN( - - CASE + + 84 WHEN - + 65 - - 33 * - + 66 THEN - CAST( - 71 AS SIGNED ) + + - 7 WHEN - 89 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT MIN ( - - CASE + + 84 WHEN - + 65 - - 33 * - + 66 THEN - CAST ( - 71 AS INTEGER ) + + - 7 WHEN - 89 THEN NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9472
SELECT + 50 * + 73 AS col1, 35 + + + 7 + + 72 * - COUNT( * ) AS col2
----
3650
-30

skipif mysql # not compatible
query II rowsort label-9472
SELECT + 50 * + 73 AS col1, 35 + + + 7 + + 72 * - COUNT ( * ) AS col2
----
3650
-30

query I rowsort
SELECT + 62 - 43 * - - 95
----
-4023

onlyif mysql # DIV for integer division: 
query I rowsort label-9474
SELECT DISTINCT 68 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT 68 / 97 AS col0
----
0

query I rowsort
SELECT + 63 * - 54 + - + 98
----
-3500

onlyif mysql # DIV for integer division: 
query I rowsort label-9476
SELECT ALL 3 * 67 DIV 93
----
2

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL 3 * 67 / 93
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9477
SELECT 40 * - 92 * + 46 + + 53 + 48 DIV + 57 AS col2, - 3 * - COUNT( * ) * - 17 + + 89 col0
----
-169227
38

skipif mysql # not compatible
query II rowsort label-9477
SELECT 40 * - 92 * + 46 + + 53 + 48 / + 57 AS col2, - 3 * - COUNT ( * ) * - 17 + + 89 col0
----
-169227
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9478
SELECT ALL + COALESCE ( + 40, - 64 * - 26 * - - 20 + - ( - CASE - + MIN( DISTINCT - 17 ) WHEN 81 * - 80 + + 75 + + 26 THEN NULL WHEN - 76 * 75 - + CAST( NULL AS SIGNED ) THEN - - CASE - COUNT( * ) WHEN - + 6 * - 57 * - 55 THEN - + 13 + 53 * - - 72 WHEN + 19 + + 13 THEN NULL ELSE - 38 END ELSE COUNT( * ) * 29 END ) + 68 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL + COALESCE ( + 40, - 64 * - 26 * - - 20 + - ( - CASE - + MIN ( DISTINCT - 17 ) WHEN 81 * - 80 + + 75 + + 26 THEN NULL WHEN - 76 * 75 - + CAST ( NULL AS INTEGER ) THEN - - CASE - COUNT ( * ) WHEN - + 6 * - 57 * - 55 THEN - + 13 + 53 * - - 72 WHEN + 19 + + 13 THEN NULL ELSE - 38 END ELSE COUNT ( * ) * 29 END ) + 68 ) AS col2
----
40

query I rowsort
SELECT + ( 66 ) * + 11 * 99 - 74
----
71800

onlyif mysql # DIV for integer division: 
query I rowsort label-9480
SELECT ALL 96 + - 2 * - + 30 - + - 10 DIV - ( - ( - - 23 ) )
----
156

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL 96 + - 2 * - + 30 - + - 10 / - ( - ( - - 23 ) )
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT + CAST( NULL AS SIGNED ) - - 61 * - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT + CAST ( NULL AS INTEGER ) - - 61 * - - 68
----
NULL

query I rowsort
SELECT - 84 - 88
----
-172

query I rowsort
SELECT + 7 * + COALESCE ( 38, + - 64 + + 99, 80 ) + 4
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT - + COUNT( * ) * - 44 + CASE + 85 WHEN 11 THEN + 26 WHEN 63 * 6 * + COUNT( 73 ) * + - CASE 7 WHEN MAX( DISTINCT 56 ) + 60 THEN + 51 END THEN NULL END + + 27 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT - + COUNT ( * ) * - 44 + CASE + 85 WHEN 11 THEN + 26 WHEN 63 * 6 * + COUNT ( 73 ) * + - CASE 7 WHEN MAX ( DISTINCT 56 ) + 60 THEN + 51 END THEN NULL END + + 27 col0
----
NULL

query II rowsort
SELECT - 36 AS col2, - 16 AS col2
----
-36
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9486
SELECT DISTINCT 95 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT 95 + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL + ( + + 65 ) + 33 / + - CASE - + COUNT( * ) WHEN + - 9 THEN + - 90 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL + ( + + 65 ) + 33 / + - CASE - + COUNT ( * ) WHEN + - 9 THEN + - 90 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - - 90 + 77 + 24 * 42 + - - 56
----
1231

query I rowsort
SELECT ALL - 85 + - + 47
----
-132

query I rowsort
SELECT - + COALESCE ( - 38, - 3 ) + + 10
----
48

query I rowsort
SELECT ALL + + 75 + + 42
----
117

query II rowsort
SELECT - 3, 8 AS col2
----
-3
8

query I rowsort
SELECT ALL - 35 + - - 21 AS col2
----
-14

query I rowsort
SELECT + - 30 * + 60 AS col1
----
-1800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9495
SELECT - MAX( DISTINCT 64 ) * + - 98 + - + SUM( ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9495
SELECT - MAX ( DISTINCT 64 ) * + - 98 + - + SUM ( ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT + COUNT( * ) + - - 47 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-9496
SELECT + COUNT ( * ) + - - 47 AS col0
----
48

query I rowsort
SELECT - 93 + - + 22 * - - 41 AS col2
----
-995

query II rowsort
SELECT - + 89, 27 AS col0
----
-89
27

query I rowsort
SELECT - 6 + - + 45
----
-51

query I rowsort
SELECT - 46 * + + 8
----
-368

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9501
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, + 10 * + 19 col1
----
NULL
190

skipif mysql # not compatible
query II rowsort label-9501
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + 10 * + 19 col1
----
NULL
190

onlyif mysql # DIV for integer division: 
query I rowsort label-9502
SELECT - + 14 DIV - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9502
SELECT - + 14 / - 69 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ALL SUM( + - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL SUM ( + - 92 )
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-9504
SELECT ALL 22, 0 DIV + 94 AS col2
----
22
0

skipif mysql # not compatible
query II rowsort label-9504
SELECT ALL 22, 0 / + 94 AS col2
----
22
0

query I rowsort
SELECT DISTINCT 57 * + 72
----
4104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9506
SELECT ALL - ( - - MAX( - 36 ) ) DIV + 1
----
36

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL - ( - - MAX ( - 36 ) ) / + 1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9507
SELECT ( MIN( - 87 ) ) DIV ( + SUM( ALL NULLIF ( 69, + 72 ) ) ) + + ( - COUNT( * ) ) + - 21 DIV + COALESCE ( 42, + + 57 - 81 + - 90 + + - 86 ) * + 59 + CAST( COUNT( 75 ) AS SIGNED ) + - 11 + 57 AS col2, 65 DIV - 11 AS col0
----
45
-5

skipif mysql # not compatible
query II rowsort label-9507
SELECT ( MIN ( - 87 ) ) / ( + SUM ( ALL NULLIF ( 69, + 72 ) ) ) + + ( - COUNT ( * ) ) + - 21 / + COALESCE ( 42, + + 57 - 81 + - 90 + + - 86 ) * + 59 + CAST ( COUNT ( 75 ) AS INTEGER ) + - 11 + 57 AS col2, 65 / - 11 AS col0
----
45
-5

query I rowsort
SELECT DISTINCT - 98 * + 46 AS col1
----
-4508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9509
SELECT - AVG ( 56 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9509
SELECT - AVG ( 56 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9510
SELECT + 74 + - 85 + COUNT( * ) * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT + 74 + - 85 + COUNT ( * ) * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9511
SELECT + CASE - 51 WHEN + + 82 * + + 81 THEN + CASE 86 WHEN 73 + + - ( MIN( ALL + 54 ) ) - + 91 * + COUNT( * ) THEN NULL WHEN - 97 THEN + CAST( - 57 AS SIGNED ) WHEN NULLIF ( - 80, 2 ) THEN + + 25 * CAST( NULL AS SIGNED ) + 97 ELSE NULL END * - 50 ELSE - COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9511
SELECT + CASE - 51 WHEN + + 82 * + + 81 THEN + CASE 86 WHEN 73 + + - ( MIN ( ALL + 54 ) ) - + 91 * + COUNT ( * ) THEN NULL WHEN - 97 THEN + CAST ( - 57 AS INTEGER ) WHEN NULLIF ( - 80, 2 ) THEN + + 25 * CAST ( NULL AS INTEGER ) + 97 ELSE NULL END * - 50 ELSE - COUNT ( * ) END AS col0
----
-1

query I rowsort
SELECT DISTINCT - 26 * + 22 AS col2
----
-572

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT ALL - 44 * + + MIN( DISTINCT + NULLIF ( + 73, + - 59 ) ) AS col1
----
-3212

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL - 44 * + + MIN ( DISTINCT + NULLIF ( + 73, + - 59 ) ) AS col1
----
-3212

query II rowsort
SELECT + 60 * ( + 12 ) - + 23 - + ( + ( - 94 ) ) AS col1, 91 + + 76 * - - 64 * 83 + 54 AS col1
----
791
403857

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT DISTINCT - 26 * + COUNT( * ) * 15 AS col2
----
-390

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT - 26 * + COUNT ( * ) * 15 AS col2
----
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ALL 9 * + COUNT( * ) + 15 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL 9 * + COUNT ( * ) + 15 AS col0
----
24

query II rowsort
SELECT + 91 * 34 AS col0, 99 + + 64 * - - 25 col2
----
3094
1699

query I rowsort
SELECT - 2 * - 33 AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9519
SELECT COALESCE ( 16, + + 84 DIV - + 38 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9519
SELECT COALESCE ( 16, + + 84 / - + 38 ) AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9520
SELECT - 55 DIV 33 DIV - - 52 * - 36
----
0

skipif mysql # not compatible
query I rowsort label-9520
SELECT - 55 / 33 / - - 52 * - 36
----
0

query I rowsort
SELECT + 61 + - + 9 + + 26
----
78

query I rowsort
SELECT ALL - 90 * + 20 + + 61
----
-1739

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9523
SELECT ALL - - 56 DIV MAX( ALL + 13 )
----
4

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL - - 56 / MAX ( ALL + 13 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT DISTINCT 6 * - 98 * - - 38 + - + 14 + - COUNT( * ) * + 5 col2
----
-22363

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT 6 * - 98 * - - 38 + - + 14 + - COUNT ( * ) * + 5 col2
----
-22363

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL - 61 * - - COUNT( * ) * 92 + - + 21 AS col0
----
-5633

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL - 61 * - - COUNT ( * ) * 92 + - + 21 AS col0
----
-5633

query I rowsort
SELECT DISTINCT - ( + + 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT DISTINCT SUM( ALL + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT SUM ( ALL + 82 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9528
SELECT + CAST( - 2 AS SIGNED ) - - 4
----
2

skipif mysql # not compatible
query I rowsort label-9528
SELECT + CAST ( - 2 AS INTEGER ) - - 4
----
2

query I rowsort
SELECT + 7 + - 43 * + 13 + 77 AS col0
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT + CASE + COUNT( * ) WHEN - 95 + + ( - - 45 ) + - 57 + + - CASE 23 WHEN + + COUNT( * ) THEN NULL WHEN 50 THEN - 99 * - 15 END THEN + 96 WHEN - 49 THEN NULL END * + - 78 * + 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9530
SELECT + CASE + COUNT ( * ) WHEN - 95 + + ( - - 45 ) + - 57 + + - CASE 23 WHEN + + COUNT ( * ) THEN NULL WHEN 50 THEN - 99 * - 15 END THEN + 96 WHEN - 49 THEN NULL END * + - 78 * + 84 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT - SUM( + - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-9531
SELECT - SUM ( + - 14 )
----
14

query I rowsort
SELECT ALL ( - 13 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-9533
SELECT - 80 * + 34, - COUNT( * ) * - 89 AS col2
----
-2720
89

skipif mysql # not compatible
query II rowsort label-9533
SELECT - 80 * + 34, - COUNT ( * ) * - 89 AS col2
----
-2720
89

query I rowsort
SELECT 70 - - 2 AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9535
SELECT ALL - 12 * - - 56 DIV + COUNT( * ), 85 col2
----
-672
85

skipif mysql # not compatible
query II rowsort label-9535
SELECT ALL - 12 * - - 56 / + COUNT ( * ), 85 col2
----
-672
85

query I rowsort
SELECT 76 * - + 26 AS col0
----
-1976

query I rowsort
SELECT DISTINCT - 3 * + - 29 * - 6 AS col0
----
-522

query II rowsort
SELECT - 97 AS col2, - 66 + + 21 AS col0
----
-97
-45

query I rowsort
SELECT ALL + 39 + + - 89 AS col0
----
-50

query I rowsort
SELECT ALL - 40 + + 81 AS col2
----
41

query I rowsort
SELECT ALL + 85 + + 72
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT + 55 * + + 57 * + 86 + - 61 + + COUNT( * ) + 78 + - 41
----
269587

skipif mysql # not compatible
query I rowsort label-9542
SELECT + 55 * + + 57 * + 86 + - 61 + + COUNT ( * ) + 78 + - 41
----
269587

query II rowsort
SELECT ALL - 30 AS col1, 21 AS col2
----
-30
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT CASE COUNT( * ) WHEN - 34 THEN + 65 * - 6 WHEN 12 * + 56 * + 22 THEN NULL END / - AVG ( + + 54 ) + + - SUM( - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT CASE COUNT ( * ) WHEN - 34 THEN + 65 * - 6 WHEN 12 * + 56 * + 22 THEN NULL END / - AVG ( + + 54 ) + + - SUM ( - 29 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9545
SELECT + 21, + 26 DIV - + MIN( 20 ) AS col0
----
21
-1

skipif mysql # not compatible
query II rowsort label-9545
SELECT + 21, + 26 / - + MIN ( 20 ) AS col0
----
21
-1

query I rowsort
SELECT ALL + 50 * + 93 AS col0
----
4650

query II rowsort
SELECT 17 AS col0, 65 AS col0
----
17
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9548
SELECT COUNT( * ) DIV + 54 * - - 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9548
SELECT COUNT ( * ) / + 54 * - - 26 AS col0
----
0

query I rowsort
SELECT 81 - + 14 AS col2
----
67

query II rowsort
SELECT + 29 AS col2, 22
----
29
22

query I rowsort
SELECT 91 + + 99
----
190

query I rowsort
SELECT ALL - 4 + + - 20 AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9553
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 43 * 2 / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 43 * 2 / 90
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9554
SELECT ALL - 57 AS col1, 11 * - - AVG ( - CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) * + + 68 * + - 59 * 65
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-9554
SELECT ALL - 57 AS col1, 11 * - - AVG ( - CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) * + + 68 * + - 59 * 65
----
-57
NULL

query I rowsort
SELECT 16 + 24
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9556
SELECT ALL - + ( + CAST( NULL AS SIGNED ) ) + MIN( DISTINCT + + 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL - + ( + CAST ( NULL AS INTEGER ) ) + MIN ( DISTINCT + + 58 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9557
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9558
SELECT CASE - 99 WHEN + CAST( + COUNT( * ) AS SIGNED ) THEN - + 71 ELSE - 12 * - 58 - - NULLIF ( - 67, - + 16 ) DIV - - 41 END - 6 + COUNT( * )
----
690

skipif mysql # not compatible
query I rowsort label-9558
SELECT CASE - 99 WHEN + CAST ( + COUNT ( * ) AS INTEGER ) THEN - + 71 ELSE - 12 * - 58 - - NULLIF ( - 67, - + 16 ) / - - 41 END - 6 + COUNT ( * )
----
690

query I rowsort
SELECT - 52 * 35 AS col1
----
-1820

query I rowsort
SELECT ALL - - NULLIF ( + 31, - 66 ) AS col0
----
31

query I rowsort
SELECT + 61 + + 28
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9562
SELECT COUNT( * ) * + 22 DIV + + 92 - - 54 + 13 col1
----
67

skipif mysql # not compatible
query I rowsort label-9562
SELECT COUNT ( * ) * + 22 / + + 92 - - 54 + 13 col1
----
67

query I rowsort
SELECT ALL + ( - ( + 89 ) ) AS col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9564
SELECT ALL - CASE - COALESCE ( + ( 1 ), 63 * + - 0 * + + CAST( NULL AS SIGNED ) / + 33 + ( - + ( + 66 ) ), - + COUNT( * ) + + 35 + COUNT( * ) ) WHEN - COUNT( * ) * 57 + 87 + - - NULLIF ( - 88, - ( - - AVG ( ALL + 64 ) ) ) + 41 * + CASE COUNT( * ) WHEN - 67 THEN - AVG ( - 78 ) * + 27 + COUNT( * ) END + CAST( NULL AS SIGNED ) / + COUNT( * ) THEN + 65 * + 4 ELSE NULL END * 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL - CASE - COALESCE ( + ( 1 ), 63 * + - 0 * + + CAST ( NULL AS INTEGER ) / + 33 + ( - + ( + 66 ) ), - + COUNT ( * ) + + 35 + COUNT ( * ) ) WHEN - COUNT ( * ) * 57 + 87 + - - NULLIF ( - 88, - ( - - AVG ( ALL + 64 ) ) ) + 41 * + CASE COUNT ( * ) WHEN - 67 THEN - AVG ( - 78 ) * + 27 + COUNT ( * ) END + CAST ( NULL AS INTEGER ) / + COUNT ( * ) THEN + 65 * + 4 ELSE NULL END * 2 AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + + ( + + 92 ), - 86 / - + 70 - + + 40 + - - 50 + + 12 ) col1
----
92

query I rowsort
SELECT DISTINCT 43 * + + 35
----
1505

query I rowsort
SELECT ALL - 1 * 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT + NULLIF ( + - 11, + 93 ) * COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-9568
SELECT + NULLIF ( + - 11, + 93 ) * COUNT ( * ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT COALESCE ( + 35, NULLIF ( - + COUNT( * ), - + 14 ) ) + + 44
----
79

skipif mysql # not compatible
query I rowsort label-9569
SELECT COALESCE ( + 35, NULLIF ( - + COUNT ( * ), - + 14 ) ) + + 44
----
79

query I rowsort
SELECT DISTINCT 81 + ( + 14 ) AS col0
----
95

query I rowsort
SELECT 86 * - 98
----
-8428

query I rowsort
SELECT ALL 16 + + - 99 + + - ( + - 2 ) * + 35 * 74 AS col0
----
5097

query I rowsort
SELECT DISTINCT 45 + 70 * - 58 * + 83 * - 7 AS col1
----
2358905

query I rowsort
SELECT ALL 80 + 23 AS col0
----
103

query I rowsort
SELECT CASE + + 2 WHEN 57 * AVG ( DISTINCT + 86 ) THEN - 94 ELSE NULL END - + + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT SUM( DISTINCT 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9576
SELECT SUM ( DISTINCT 60 ) AS col1
----
60

query I rowsort
SELECT 1 + 61 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL - COUNT( * ) + 75 col0
----
74

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL - COUNT ( * ) + 75 col0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9579
SELECT ALL + 54 + + - 18 + 56 DIV + + 42 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL + 54 + + - 18 + 56 / + + 42 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ALL 37 * - - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL 37 * - - COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT DISTINCT - CASE 27 WHEN - + 29 * + 85 * ( + 39 ) + 70 + 57 + 80 THEN NULL WHEN 67 THEN ( + 82 ) WHEN 31 / + + COUNT( * ) THEN + 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT - CASE 27 WHEN - + 29 * + 85 * ( + 39 ) + 70 + 57 + 80 THEN NULL WHEN 67 THEN ( + 82 ) WHEN 31 / + + COUNT ( * ) THEN + 1 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9582
SELECT DISTINCT 72 * + CAST( - - 64 AS SIGNED ) AS col0
----
4608

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT 72 * + CAST ( - - 64 AS INTEGER ) AS col0
----
4608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT ALL 31 - + 37 + + 73 * + ( + - 26 ) * 13 + + CAST( + 18 AS SIGNED )
----
-24662

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL 31 - + 37 + + 73 * + ( + - 26 ) * 13 + + CAST ( + 18 AS INTEGER )
----
-24662

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9584
SELECT ALL + CAST( NULL AS SIGNED ) / 48 * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL + CAST ( NULL AS INTEGER ) / 48 * 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT DISTINCT - - COUNT( * ) - + + 20 - - MIN( 70 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT - - COUNT ( * ) - + + 20 - - MIN ( 70 ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9586
SELECT 12 * - - ( 96 ) + + COUNT( ALL - CAST( - 27 AS SIGNED ) )
----
1153

skipif mysql # not compatible
query I rowsort label-9586
SELECT 12 * - - ( 96 ) + + COUNT ( ALL - CAST ( - 27 AS INTEGER ) )
----
1153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9587
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9588
SELECT ALL + 48 DIV - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL + 48 / - 85 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9589
SELECT DISTINCT - 15 * - 70 + + 49 + + - 18 * + COUNT( - 32 ) * - COALESCE ( + 1, 75 + + 72 + 19 ) + 59 - 55 + SUM( DISTINCT + 67 ), ( + 70 ) AS col0
----
1188
70

skipif mysql # not compatible
query II rowsort label-9589
SELECT DISTINCT - 15 * - 70 + + 49 + + - 18 * + COUNT ( - 32 ) * - COALESCE ( + 1, 75 + + 72 + 19 ) + 59 - 55 + SUM ( DISTINCT + 67 ), ( + 70 ) AS col0
----
1188
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9590
SELECT DISTINCT + 23 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT + 23 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL + NULLIF ( + - 4, - - 17 * - MAX( DISTINCT - 41 ) + SUM( ALL + 34 ) ) * - - 82 AS col0
----
-328

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL + NULLIF ( + - 4, - - 17 * - MAX ( DISTINCT - 41 ) + SUM ( ALL + 34 ) ) * - - 82 AS col0
----
-328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9592
SELECT + 53 * - 46 + + - ( CAST( NULL AS SIGNED ) ) - 85 * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9592
SELECT + 53 * - 46 + + - ( CAST ( NULL AS INTEGER ) ) - 85 * 46
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9593
SELECT + 92 + + + 2 AS col0, COALESCE ( - - SUM( - + 99 ), - - 57 DIV - - 18, + - 56 ) DIV + MIN( + 97 ) - 30 AS col0
----
94
-31

skipif mysql # not compatible
query II rowsort label-9593
SELECT + 92 + + + 2 AS col0, COALESCE ( - - SUM ( - + 99 ), - - 57 / - - 18, + - 56 ) / + MIN ( + 97 ) - 30 AS col0
----
94
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9594
SELECT - - CAST( + - COALESCE ( + 34, - - MAX( 60 ) ) AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-9594
SELECT - - CAST ( + - COALESCE ( + 34, - - MAX ( 60 ) ) AS INTEGER )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT - - 66 + - COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9595
SELECT - - 66 + - COUNT ( * ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT + COUNT( - - 19 ) * 64 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9596
SELECT + COUNT ( - - 19 ) * 64 AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9597
SELECT ALL CAST( - - 12 AS SIGNED ) + - + 16 + COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL CAST ( - - 12 AS INTEGER ) + - + 16 + COUNT ( * ) AS col2
----
-3

query I rowsort
SELECT - 22 - + 64 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT ALL MIN( 42 ) + + 83 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL MIN ( 42 ) + + 83 AS col1
----
125

query I rowsort
SELECT ALL + 85 + - - 0 AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-9601
SELECT + MIN( - 84 ) + 6 + + + 52 + - 83 AS col2, 63 AS col0
----
-109
63

skipif mysql # not compatible
query II rowsort label-9601
SELECT + MIN ( - 84 ) + 6 + + + 52 + - 83 AS col2, 63 AS col0
----
-109
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT - COUNT( * ) * - + COALESCE ( + - 81, - 53, + 42 - + - ( - 95 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-9602
SELECT - COUNT ( * ) * - + COALESCE ( + - 81, - 53, + 42 - + - ( - 95 ) )
----
-81

query I rowsort
SELECT - 62 + 29
----
-33

query I rowsort
SELECT DISTINCT 32 * + 75 * - 90
----
-216000

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT + COUNT( * ) + - 71 + COUNT( * ) * ( - 73 )
----
-143

skipif mysql # not compatible
query I rowsort label-9605
SELECT + COUNT ( * ) + - 71 + COUNT ( * ) * ( - 73 )
----
-143

query I rowsort
SELECT + 44 - + 76 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL SUM( 16 ) + + 51 - + - 38
----
105

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL SUM ( 16 ) + + 51 - + - 38
----
105

query I rowsort
SELECT ALL 26 + 6 - NULLIF ( + 41, - 80 ) + - 67 - - 5
----
-71

query I rowsort
SELECT + 32 * - + 67 * 0 AS col0
----
0

query I rowsort
SELECT ALL ( + - 28 ) col1
----
-28

query I rowsort
SELECT DISTINCT 96 * - - 15 AS col0
----
1440

onlyif mysql # aggregate syntax: 
query II rowsort label-9612
SELECT + ( - + COUNT( * ) ) + + 41, 81 AS col0
----
40
81

skipif mysql # not compatible
query II rowsort label-9612
SELECT + ( - + COUNT ( * ) ) + + 41, 81 AS col0
----
40
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT ALL + MAX( DISTINCT - ( - ( 2 ) ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL + MAX ( DISTINCT - ( - ( 2 ) ) ) AS col1
----
2

query I rowsort
SELECT + 78 * + 93
----
7254

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT + - 34 * 35 DIV 10 * + ( 82 ) + 18 AS col2
----
-9740

skipif mysql # not compatible
query I rowsort label-9615
SELECT + - 34 * 35 / 10 * + ( 82 ) + 18 AS col2
----
-9740

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT - - COUNT( * ) + - 12 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-9616
SELECT - - COUNT ( * ) + - 12 AS col0
----
-11

query I rowsort
SELECT ALL + + 36 * - 66
----
-2376

query I rowsort
SELECT + - 80 + 51 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT 31 * - + COUNT( * ) + + 83 col2
----
52

skipif mysql # not compatible
query I rowsort label-9619
SELECT 31 * - + COUNT ( * ) + + 83 col2
----
52

query I rowsort
SELECT - + 56 + 99
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9621
SELECT ALL + 35 AS col0, 41 + MIN( + - 34 ) AS col2
----
35
7

skipif mysql # not compatible
query II rowsort label-9621
SELECT ALL + 35 AS col0, 41 + MIN ( + - 34 ) AS col2
----
35
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9622
SELECT ALL + CASE 47 WHEN - COUNT( * ) * + 68 THEN - 39 WHEN + - MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) - + - 22 THEN NULL ELSE NULL END * - + 60 + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL + CASE 47 WHEN - COUNT ( * ) * + 68 THEN - 39 WHEN + - MIN ( DISTINCT - CAST ( NULL AS REAL ) ) - + - 22 THEN NULL ELSE NULL END * - + 60 + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT ( - - CASE - 28 WHEN - COUNT( * ) + - 57 - - + 89 / 68 + + 13 * - + 78 THEN NULL ELSE + 37 * 74 END ) * - 8 + - 18 * + - 71 * - 12 * + 22
----
-359296

skipif mysql # not compatible
query I rowsort label-9623
SELECT ( - - CASE - 28 WHEN - COUNT ( * ) + - 57 - - + 89 / 68 + + 13 * - + 78 THEN NULL ELSE + 37 * 74 END ) * - 8 + - 18 * + - 71 * - 12 * + 22
----
-359296

query I rowsort
SELECT - 46 + + - 44 * - 4 AS col0
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-9625
SELECT + + 28 col2, COUNT( * )
----
28
1

skipif mysql # not compatible
query II rowsort label-9625
SELECT + + 28 col2, COUNT ( * )
----
28
1

query II rowsort
SELECT + + 58 AS col0, - 54
----
58
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9627
SELECT - 3 DIV - 17 - - 96 + - SUM( ALL - + 24 ) + - + 20 * 90 + COALESCE ( + SUM( - 89 ), + 67 ) * + - 83 * 73 col2
----
537571

skipif mysql # not compatible
query I rowsort label-9627
SELECT - 3 / - 17 - - 96 + - SUM ( ALL - + 24 ) + - + 20 * 90 + COALESCE ( + SUM ( - 89 ), + 67 ) * + - 83 * 73 col2
----
537571

query I rowsort
SELECT 15 * - 71 * + 29 + + 9 * + 16 + - 81 col2
----
-30822

query I rowsort
SELECT - + 4 + + 20 AS col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9630
SELECT ALL + MIN( ALL 44 ) DIV 39
----
1

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL + MIN ( ALL 44 ) / 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT + COUNT( * ) * - 34 + 24 + + - CASE + + 60 WHEN + NULLIF ( COUNT( * ), + 68 ) THEN - 41 + 45 - 24 + + + MAX( ALL - 15 ) END - - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT + COUNT ( * ) * - 34 + 24 + + - CASE + + 60 WHEN + NULLIF ( COUNT ( * ), + 68 ) THEN - 41 + 45 - 24 + + + MAX ( ALL - 15 ) END - - 38 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 11 * - 29 + - + 11 col1
----
-330

query I rowsort
SELECT ALL + 80 * - - 68 AS col1
----
5440

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL - COUNT( * ) + + 58 + + 90 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL - COUNT ( * ) + + 58 + + 90 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT - 98 + 76 + + 64 + - + 76 * COUNT( * ) + - 15 * - 58
----
836

skipif mysql # not compatible
query I rowsort label-9635
SELECT - 98 + 76 + + 64 + - + 76 * COUNT ( * ) + - 15 * - 58
----
836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9636
SELECT DISTINCT + 99 * + ( + - CAST( + 56 AS SIGNED ) ) AS col1
----
-5544

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT + 99 * + ( + - CAST ( + 56 AS INTEGER ) ) AS col1
----
-5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9637
SELECT - CAST( + - NULLIF ( - - 78, - 50 ) AS SIGNED ) + - - 7
----
85

skipif mysql # not compatible
query I rowsort label-9637
SELECT - CAST ( + - NULLIF ( - - 78, - 50 ) AS INTEGER ) + - - 7
----
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9638
SELECT ALL CASE - 90 WHEN + + 35 THEN NULL WHEN + 45 THEN + 9 + + 4 + - 10 ELSE CAST( + 65 AS SIGNED ) DIV - - 10 + + ( + 47 ) END + 21 DIV - 14 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL CASE - 90 WHEN + + 35 THEN NULL WHEN + 45 THEN + 9 + + 4 + - 10 ELSE CAST ( + 65 AS INTEGER ) / - - 10 + + ( + 47 ) END + 21 / - 14 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT - COUNT( ALL - + 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-9639
SELECT - COUNT ( ALL - + 75 )
----
-1

query I rowsort
SELECT ALL + 81 * + 94 AS col0
----
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT ALL - 26 + - MIN( ALL 68 ) * - COALESCE ( + + 89, + + 75 + + COUNT( * ) + - 57, - + ( + - 27 ) * - - 77, - + COUNT( * ) + - - COUNT( * ) )
----
6026

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL - 26 + - MIN ( ALL 68 ) * - COALESCE ( + + 89, + + 75 + + COUNT ( * ) + - 57, - + ( + - 27 ) * - - 77, - + COUNT ( * ) + - - COUNT ( * ) )
----
6026

onlyif mysql # aggregate syntax: 
query II rowsort label-9642
SELECT - 48 col0, - ( + - COALESCE ( + 80, 71, 84 ) ) - + COUNT( * ) AS col0
----
-48
79

skipif mysql # not compatible
query II rowsort label-9642
SELECT - 48 col0, - ( + - COALESCE ( + 80, 71, 84 ) ) - + COUNT ( * ) AS col0
----
-48
79

query I rowsort
SELECT - 39 * 38 AS col2
----
-1482

onlyif mysql # DIV for integer division: 
query I rowsort label-9644
SELECT + 44 + 34 + 2 DIV 46 * - 50 + - 79 + + 63 + 43 * - 80 AS col2
----
-3378

skipif mysql # not compatible
query I rowsort label-9644
SELECT + 44 + 34 + 2 / 46 * - 50 + - 79 + + 63 + 43 * - 80 AS col2
----
-3378

onlyif mysql # aggregate syntax: 
query II rowsort label-9645
SELECT - 6 AS col1, 37 / - - ( CASE COUNT( ALL 30 ) WHEN - 99 THEN + 96 END ) / + 20 * + + 80 - + - 18
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-9645
SELECT - 6 AS col1, 37 / - - ( CASE COUNT ( ALL 30 ) WHEN - 99 THEN + 96 END ) / + 20 * + + 80 - + - 18
----
-6
NULL

query I rowsort
SELECT + 21 + - 31
----
-10

query I rowsort
SELECT ALL + 91 - + + 71 AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9648
SELECT ALL 62 AS col2, - MIN( DISTINCT + 58 ) + - 4
----
62
-62

skipif mysql # not compatible
query II rowsort label-9648
SELECT ALL 62 AS col2, - MIN ( DISTINCT + 58 ) + - 4
----
62
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9649
SELECT DISTINCT + 9 - - 75 AS col0, - ( - CAST( NULL AS DECIMAL ) )
----
84
NULL

skipif mysql # not compatible
query II rowsort label-9649
SELECT DISTINCT + 9 - - 75 AS col0, - ( - CAST ( NULL AS REAL ) )
----
84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT ALL 20 * ( - COUNT( ALL - - ( + + 57 ) ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL 20 * ( - COUNT ( ALL - - ( + + 57 ) ) ) AS col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-9651
SELECT - 26 + - + 34 DIV - 45
----
-26

skipif mysql # not compatible
query I rowsort label-9651
SELECT - 26 + - + 34 / - 45
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9652
SELECT DISTINCT - 46 DIV + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT - 46 / + 85 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9653
SELECT DISTINCT - 37 DIV 34 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT - 37 / 34 AS col0
----
-1

query II rowsort
SELECT 33, + 86 col1
----
33
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9655
SELECT - CAST( NULL AS SIGNED ) - COUNT( ALL + 18 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT - CAST ( NULL AS INTEGER ) - COUNT ( ALL + 18 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9656
SELECT + 55 * - ( - - CAST( 16 AS SIGNED ) ) AS col1
----
-880

skipif mysql # not compatible
query I rowsort label-9656
SELECT + 55 * - ( - - CAST ( 16 AS INTEGER ) ) AS col1
----
-880

query I rowsort
SELECT + + 95 + - 11 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT DISTINCT + ( COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT + ( COUNT ( * ) ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9659
SELECT - 58 DIV + 1 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-9659
SELECT - 58 / + 1 AS col1
----
-58

query I rowsort
SELECT + + ( - 37 ) * - 16
----
592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT ALL + CAST( - ( 56 ) AS SIGNED ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL + CAST ( - ( 56 ) AS INTEGER ) AS col2
----
-56

query II rowsort
SELECT ALL + + 24 AS col1, + 48 * + 31 AS col0
----
24
1488

onlyif mysql # aggregate syntax: 
query II rowsort label-9663
SELECT ALL + - 64 AS col0, COUNT( * ) AS col2
----
-64
1

skipif mysql # not compatible
query II rowsort label-9663
SELECT ALL + - 64 AS col0, COUNT ( * ) AS col2
----
-64
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9664
SELECT ALL COUNT( * ) DIV - - 24 + + NULLIF ( + 42, + 95 * 58 + 86 ) + + - 61 + - 8 + + ( - 43 ) * 3
----
-156

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL COUNT ( * ) / - - 24 + + NULLIF ( + 42, + 95 * 58 + 86 ) + + - 61 + - 8 + + ( - 43 ) * 3
----
-156

query I rowsort
SELECT ALL 91 + + 1
----
92

query I rowsort
SELECT DISTINCT + 46 + 78 * + 75 AS col1
----
5896

query I rowsort
SELECT ALL + 13 + - 35 + + 80 + + - 70 * - 82 AS col1
----
5798

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT SUM( - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-9668
SELECT SUM ( - 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT - COUNT( ALL 7 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9669
SELECT - COUNT ( ALL 7 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 31 * + + 57
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ( + ( - 43 ) ) * + COALESCE ( + + 48, - ( - COUNT( * ) ) ) * - 22
----
45408

skipif mysql # not compatible
query I rowsort label-9671
SELECT ( + ( - 43 ) ) * + COALESCE ( + + 48, - ( - COUNT ( * ) ) ) * - 22
----
45408

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT + COALESCE ( + + ( - 77 ), + 85 - + 55, - 44, COUNT( * ) )
----
-77

skipif mysql # not compatible
query I rowsort label-9672
SELECT + COALESCE ( + + ( - 77 ), + 85 - + 55, - 44, COUNT ( * ) )
----
-77

query I rowsort
SELECT ALL 93 + + 57
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT ALL - NULLIF ( - 25, - - SUM( ALL + - 94 ) ) + + - 72 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL - NULLIF ( - 25, - - SUM ( ALL + - 94 ) ) + + - 72 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT 85 * + - MIN( ALL + 87 ) AS col0
----
-7395

skipif mysql # not compatible
query I rowsort label-9675
SELECT 85 * + - MIN ( ALL + 87 ) AS col0
----
-7395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9676
SELECT 4 DIV + COALESCE ( + - 71, - COUNT( * ) ) * 16 * 70 * + + 42 * 70 * + 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9676
SELECT 4 / + COALESCE ( + - 71, - COUNT ( * ) ) * 16 * 70 * + + 42 * 70 * + 4 AS col0
----
0

query I rowsort
SELECT 85 * - 70 * ( 37 )
----
-220150

query I rowsort
SELECT ALL - 50 * 72
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL + 95 * - - 88 * + COUNT( * ) AS col0
----
8360

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL + 95 * - - 88 * + COUNT ( * ) AS col0
----
8360

query I rowsort
SELECT 94 - - 56 AS col0
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-9681
SELECT 4 + + 43 DIV + 59 - + 97 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-9681
SELECT 4 + + 43 / + 59 - + 97 AS col0
----
-93

query I rowsort
SELECT 10 * + 99
----
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT ALL - 50 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - 50 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT 94 + ( - 7 ) * COUNT( * ) * + 72 - + - NULLIF ( + 35, COALESCE ( ( - 31 ), + 52 * + - 10 ) ) + + - 96 * + COUNT( * )
----
-471

skipif mysql # not compatible
query I rowsort label-9684
SELECT 94 + ( - 7 ) * COUNT ( * ) * + 72 - + - NULLIF ( + 35, COALESCE ( ( - 31 ), + 52 * + - 10 ) ) + + - 96 * + COUNT ( * )
----
-471

query I rowsort
SELECT 0 * + 79 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT COUNT( * ) - + 87 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9686
SELECT COUNT ( * ) - + 87 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ALL - + ( + COUNT( * ) ) * - MIN( + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL - + ( + COUNT ( * ) ) * - MIN ( + 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT - ( - 73 ) * NULLIF ( SUM( + 10 ), 3 ) col2
----
730

skipif mysql # not compatible
query I rowsort label-9688
SELECT - ( - 73 ) * NULLIF ( SUM ( + 10 ), 3 ) col2
----
730

query I rowsort
SELECT + 69 + + + 7
----
76

query I rowsort
SELECT DISTINCT - 36 + - 9 + - + 85 AS col1
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9691
SELECT ALL - NULLIF ( + 89, - - 53 + + COUNT( * ) ) DIV - SUM( ALL - 52 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL - NULLIF ( + 89, - - 53 + + COUNT ( * ) ) / - SUM ( ALL - 52 ) AS col2
----
-1

query I rowsort
SELECT ALL - - 77 + - 56 AS col0
----
21

query II rowsort
SELECT ALL - ( 42 ) + - 35, 25 AS col2
----
-77
25

query II rowsort
SELECT DISTINCT - - 65 + + + 8 AS col0, + 8 AS col2
----
73
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT ( - 11 ) + + SUM( - 9 ) * - - 57 + + 52
----
-472

skipif mysql # not compatible
query I rowsort label-9695
SELECT ( - 11 ) + + SUM ( - 9 ) * - - 57 + + 52
----
-472

query I rowsort
SELECT DISTINCT - - 20 col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9697
SELECT ALL 25 + - 28 + + 66 + - + 58 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL 25 + - 28 + + 66 + - + 58 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9698
SELECT + + CAST( NULL AS SIGNED ) * + MAX( 75 ) - + 55 + - + 77 - - 52 / COALESCE ( - 97, + 56 / + - 93 ) * - CAST( - + 99 AS SIGNED ) + + + 40 * - 50 * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT + + CAST ( NULL AS INTEGER ) * + MAX ( 75 ) - + 55 + - + 77 - - 52 / COALESCE ( - 97, + 56 / + - 93 ) * - CAST ( - + 99 AS INTEGER ) + + + 40 * - 50 * - 78
----
NULL

query I rowsort
SELECT ALL 47 + + + 15
----
62

query I rowsort
SELECT - 22 + - 10 + - 9 AS col2
----
-41

query I rowsort
SELECT ALL 91 + - 75 AS col1
----
16

query I rowsort
SELECT + COALESCE ( + 27, + 4, 85 ) AS col2
----
27

query I rowsort
SELECT DISTINCT 16 - + 81 AS col0
----
-65

query I rowsort
SELECT ALL 75 * + + 60
----
4500

query II rowsort
SELECT - 79 * - + 62 + - 59, + 27 col0
----
4839
27

query I rowsort
SELECT DISTINCT 80 - + 48 + 28 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT 94 + - COUNT( * ) + - 3 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9707
SELECT 94 + - COUNT ( * ) + - 3 AS col1
----
90

query I rowsort
SELECT DISTINCT 74 * + ( - - 52 ) * + - 93 + 70 + - 1 AS col2
----
-357795

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9709
SELECT - COUNT( - CAST( NULL AS DECIMAL ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9709
SELECT - COUNT ( - CAST ( NULL AS REAL ) ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9710
SELECT 29 + + NULLIF ( - - 20, - COUNT( * ) ) + - - CAST( + + ( 50 ) AS SIGNED ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9710
SELECT 29 + + NULLIF ( - - 20, - COUNT ( * ) ) + - - CAST ( + + ( 50 ) AS INTEGER ) AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9711
SELECT 39 + - 13 - 45 AS col2, - CAST( NULL AS SIGNED ) + 83 AS col0
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-9711
SELECT 39 + - 13 - 45 AS col2, - CAST ( NULL AS INTEGER ) + 83 AS col0
----
-19
NULL

query I rowsort
SELECT ALL - NULLIF ( + 71, - ( + 60 ) ) + 58 col2
----
-13

query II rowsort
SELECT DISTINCT 28 AS col1, - 36 AS col0
----
28
-36

query I rowsort
SELECT ALL + 56 + + 82 - - 58 * - + 92 AS col0
----
-5198

query II rowsort
SELECT DISTINCT + 71 + 33 * + 33 AS col2, 58
----
1160
58

query II rowsort
SELECT DISTINCT - + 17 + ( - 91 ) AS col2, CASE + 24 WHEN + - ( - - CASE + + ( - 64 ) WHEN - + 21 + - 46 THEN + 52 END ) + + NULLIF ( 51, 38 * + ( 57 ) ) THEN NULL WHEN - + COALESCE ( + 92, - + 75 ) * ( 90 ) THEN + 77 END
----
-108
NULL

query I rowsort
SELECT DISTINCT 41 * - 56
----
-2296

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT DISTINCT - 90 + - 9 DIV 66
----
-90

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT - 90 + - 9 / 66
----
-90

query I rowsort
SELECT + + 74 - - 68 col1
----
142

onlyif mysql # DIV for integer division: 
query II rowsort label-9720
SELECT + 69, ( 7 ) - + ( + 19 ) DIV + 66 AS col2
----
69
7

skipif mysql # not compatible
query II rowsort label-9720
SELECT + 69, ( 7 ) - + ( + 19 ) / + 66 AS col2
----
69
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9721
SELECT - 99 + - - CAST( + COUNT( * ) AS SIGNED ) + 41 * - - 28 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT - 99 + - - CAST ( + COUNT ( * ) AS INTEGER ) + 41 * - - 28 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9722
SELECT ALL + 90 col2, - NULLIF ( 51, + - COUNT( * ) ) * 60 AS col0
----
90
-3060

skipif mysql # not compatible
query II rowsort label-9722
SELECT ALL + 90 col2, - NULLIF ( 51, + - COUNT ( * ) ) * 60 AS col0
----
90
-3060

onlyif mysql # aggregate syntax: 
query II rowsort label-9723
SELECT + + COUNT( * ), + 46 AS col1
----
1
46

skipif mysql # not compatible
query II rowsort label-9723
SELECT + + COUNT ( * ), + 46 AS col1
----
1
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9724
SELECT - COUNT( * ) + - 86 + 78 + 77 + + COUNT( * ) * + 61 DIV + COALESCE ( 39, - COUNT( * ), + - 64 * - - MAX( ALL - - ( + - 48 ) ) ) AS col1, + 0 AS col1
----
69
0

skipif mysql # not compatible
query II rowsort label-9724
SELECT - COUNT ( * ) + - 86 + 78 + 77 + + COUNT ( * ) * + 61 / + COALESCE ( 39, - COUNT ( * ), + - 64 * - - MAX ( ALL - - ( + - 48 ) ) ) AS col1, + 0 AS col1
----
69
0

query I rowsort
SELECT - + 19 * - - 5 * + CASE + 47 WHEN + + 0 * + 39 + 75 + - + 19 + 16 THEN 98 ELSE NULL END - - + 12 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT ALL + NULLIF ( - - 15, + 95 ) * + 65 + MIN( ALL - 92 )
----
883

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL + NULLIF ( - - 15, + 95 ) * + 65 + MIN ( ALL - 92 )
----
883

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT DISTINCT 0 * + 2 + + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9727
SELECT DISTINCT 0 * + 2 + + ( + COUNT ( * ) )
----
1

query II rowsort
SELECT + NULLIF ( - 50, - 7 * + 10 + - - 81 + + 7 ), 82 col1
----
-50
82

query I rowsort
SELECT ALL + - 36 col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT + - NULLIF ( 37, + COUNT( * ) )
----
-37

skipif mysql # not compatible
query I rowsort label-9730
SELECT + - NULLIF ( 37, + COUNT ( * ) )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9731
SELECT DISTINCT 8 * CAST( NULL AS SIGNED ) - - - 68 + + COUNT( * ) / 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT 8 * CAST ( NULL AS INTEGER ) - - - 68 + + COUNT ( * ) / 9
----
NULL

query I rowsort
SELECT - - 97 * + 68
----
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT - - 92 * - - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-9733
SELECT - - 92 * - - COUNT ( * )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9734
SELECT + CAST( NULL AS SIGNED ) AS col0, 98 + 28
----
NULL
126

skipif mysql # not compatible
query II rowsort label-9734
SELECT + CAST ( NULL AS INTEGER ) AS col0, 98 + 28
----
NULL
126

query I rowsort
SELECT ALL - 67 * + - 86
----
5762

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT MAX( - 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-9736
SELECT MAX ( - 60 ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT - ( - - COUNT( * ) ) * 81 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-9737
SELECT - ( - - COUNT ( * ) ) * 81 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT COUNT( - - 53 )
----
1

skipif mysql # not compatible
query I rowsort label-9738
SELECT COUNT ( - - 53 )
----
1

query I rowsort
SELECT DISTINCT - 77 * + 86 AS col2
----
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ALL + 22 * + + COALESCE ( COUNT( * ), - ( COUNT( * ) ) + ( - + 85 ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL + 22 * + + COALESCE ( COUNT ( * ), - ( COUNT ( * ) ) + ( - + 85 ) ) AS col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9741
SELECT DISTINCT ( 27 ) DIV + - ( + + 12 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT ( 27 ) / + - ( + + 12 ) AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9742
SELECT + ( + + 16 ) * - - 72 + 26 + CAST( - 20 AS SIGNED ) col2
----
1158

skipif mysql # not compatible
query I rowsort label-9742
SELECT + ( + + 16 ) * - - 72 + 26 + CAST ( - 20 AS INTEGER ) col2
----
1158

query I rowsort
SELECT - 50 + 42 - + NULLIF ( - - 89, 37 ) col2
----
-97

query I rowsort
SELECT - NULLIF ( + + 74, 5 + - - 15 ) AS col0
----
-74

query I rowsort
SELECT DISTINCT NULLIF ( NULLIF ( - 50, 33 ), + 38 * 79 ) * 82 * + 96 AS col1
----
-393600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9746
SELECT + COUNT( * ) * 58 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-9746
SELECT + COUNT ( * ) * 58 / 74
----
0

query I rowsort
SELECT DISTINCT ( - - 30 ) + - + 64
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9748
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9749
SELECT + COUNT( * ) DIV ( + - 55 ) * - - ( - + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9749
SELECT + COUNT ( * ) / ( + - 55 ) * - - ( - + COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9750
SELECT DISTINCT ( 92 ) + - COALESCE ( COALESCE ( + 62, 94, 16 ), 57 * + - 90 DIV - 81 DIV - 97 * - 5, MAX( - 80 ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT ( 92 ) + - COALESCE ( COALESCE ( + 62, 94, 16 ), 57 * + - 90 / - 81 / - 97 * - 5, MAX ( - 80 ) ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT CASE + - 49 WHEN + 64 THEN + - 88 + + 84 + - + COUNT( * ) ELSE - - ( + - 99 ) * - + 83 END
----
8217

skipif mysql # not compatible
query I rowsort label-9751
SELECT CASE + - 49 WHEN + 64 THEN + - 88 + + 84 + - + COUNT ( * ) ELSE - - ( + - 99 ) * - + 83 END
----
8217

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT ALL + 67 + 34 + - COUNT( ALL + ( + 92 ) ) * - 17
----
118

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL + 67 + 34 + - COUNT ( ALL + ( + 92 ) ) * - 17
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL - COUNT( * ) + - 46 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL - COUNT ( * ) + - 46 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-9754
SELECT + - 3 + + 3 AS col0, - 0 * + MAX( - NULLIF ( + + 81, 53 / 66 ) )
----
0
0

skipif mysql # not compatible
query II rowsort label-9754
SELECT + - 3 + + 3 AS col0, - 0 * + MAX ( - NULLIF ( + + 81, 53 / 66 ) )
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9755
SELECT + 13 DIV - - 74 - - 9 + + + 18
----
27

skipif mysql # not compatible
query I rowsort label-9755
SELECT + 13 / - - 74 - - 9 + + + 18
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9756
SELECT - + 23 - + - 74 AS col0, + COUNT( * ) AS col0
----
51
1

skipif mysql # not compatible
query II rowsort label-9756
SELECT - + 23 - + - 74 AS col0, + COUNT ( * ) AS col0
----
51
1

query I rowsort
SELECT - 1 + - 87 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT + COALESCE ( + 19, - 55, + COUNT( * ) )
----
19

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT + COALESCE ( + 19, - 55, + COUNT ( * ) )
----
19

query I rowsort
SELECT ALL - - 10 + 7 * ( + - 46 ) col2
----
-312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9760
SELECT ALL + + ( + CASE + 12 WHEN - + 79 * - ( + COUNT( NULLIF ( 56, - 3 / - 26 * 71 ) ) ) THEN NULL ELSE 4 * - CAST( NULL AS SIGNED ) END ) + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL + + ( + CASE + 12 WHEN - + 79 * - ( + COUNT ( NULLIF ( 56, - 3 / - 26 * 71 ) ) ) THEN NULL ELSE 4 * - CAST ( NULL AS INTEGER ) END ) + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT + 67 + 99 * + 27 AS col1
----
2740

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT - SUM( ( 64 ) ) - - 71 * + 5 AS col0
----
291

skipif mysql # not compatible
query I rowsort label-9762
SELECT - SUM ( ( 64 ) ) - - 71 * + 5 AS col0
----
291

onlyif mysql # aggregate syntax: 
query II rowsort label-9763
SELECT DISTINCT + + COALESCE ( + MIN( + 30 ), - - 44 ) * - 66, - 20 + 67 + ( 10 ) col2
----
-1980
57

skipif mysql # not compatible
query II rowsort label-9763
SELECT DISTINCT + + COALESCE ( + MIN ( + 30 ), - - 44 ) * - 66, - 20 + 67 + ( 10 ) col2
----
-1980
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9764
SELECT 5 * 19 - 66 DIV + 21
----
92

skipif mysql # not compatible
query I rowsort label-9764
SELECT 5 * 19 - 66 / + 21
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9765
SELECT ALL CAST( NULL AS SIGNED ) / - 83 - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL CAST ( NULL AS INTEGER ) / - 83 - 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT - + 19 * - 74 - + 68 * + 58 * - - MAX( ALL + NULLIF ( - 48, - 85 ) ) - + + 33 * - - 53 AS col2
----
188969

skipif mysql # not compatible
query I rowsort label-9766
SELECT - + 19 * - 74 - + 68 * + 58 * - - MAX ( ALL + NULLIF ( - 48, - 85 ) ) - + + 33 * - - 53 AS col2
----
188969

query I rowsort
SELECT DISTINCT + ( - 33 )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-9768
SELECT ALL + 20, - COUNT( * ) AS col0
----
20
-1

skipif mysql # not compatible
query II rowsort label-9768
SELECT ALL + 20, - COUNT ( * ) AS col0
----
20
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9769
SELECT + 71 * - + 60 + - 81 + - 88 + NULLIF ( + + CASE + - 33 WHEN + 19 * + 31 * - COUNT( * ) + - + ( + 31 ) THEN + 35 * 33 + + 64 WHEN - CAST( NULL AS DECIMAL ) * - CAST( 61 AS SIGNED ) THEN NULL ELSE NULL END, - ( + 3 ) * + ( 92 ) * COUNT( * ) + - NULLIF ( 7, + 11 + + 7 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT + 71 * - + 60 + - 81 + - 88 + NULLIF ( + + CASE + - 33 WHEN + 19 * + 31 * - COUNT ( * ) + - + ( + 31 ) THEN + 35 * 33 + + 64 WHEN - CAST ( NULL AS REAL ) * - CAST ( 61 AS INTEGER ) THEN NULL ELSE NULL END, - ( + 3 ) * + ( 92 ) * COUNT ( * ) + - NULLIF ( 7, + 11 + + 7 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 91 * - + 97 AS col1
----
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ALL + COUNT( - - 14 )
----
1

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL + COUNT ( - - 14 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9772
SELECT - 62 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9772
SELECT - 62 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT DISTINCT + MAX( + 59 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT + MAX ( + 59 ) col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9774
SELECT - 26 * 28 DIV 1 * - - 59 * 58
----
-2491216

skipif mysql # not compatible
query I rowsort label-9774
SELECT - 26 * 28 / 1 * - - 59 * 58
----
-2491216

query I rowsort
SELECT 1 * + ( - + 75 ) + 20
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT + ( + NULLIF ( 35, + COUNT( * ) ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-9776
SELECT + ( + NULLIF ( 35, + COUNT ( * ) ) ) AS col0
----
35

query I rowsort
SELECT - 96 * + 36 AS col2
----
-3456

onlyif mysql # DIV for integer division: 
query I rowsort label-9778
SELECT ALL 8 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL 8 / + 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9779
SELECT ALL CASE - - COALESCE ( - - COUNT( * ), - - CASE - - 14 WHEN - - CAST( NULL AS DECIMAL ) * + + 23 THEN - 96 * - + CASE - - 55 WHEN - 68 THEN + - 70 WHEN + 85 - - 96 THEN NULL ELSE NULL END - + 52 * + 4 WHEN + 3 + + 87 THEN + CASE COUNT( * ) WHEN - - 49 THEN NULL WHEN - COALESCE ( 74, + + COUNT( * ) + CASE - NULLIF ( - - 69, - ( + CAST( NULL AS SIGNED ) ) ) WHEN - + 50 + + + 35 THEN + MIN( DISTINCT 21 ) WHEN + 44 + 53 + CASE - NULLIF ( ( 52 ), 83 * - 54 + + CAST( NULL AS SIGNED ) ) WHEN 42 / 23 + 95 THEN NULL ELSE - 28 END * + MIN( DISTINCT + 33 ) THEN NULL END ) THEN 33 + CAST( + 55 AS SIGNED ) ELSE 1 END + - 42 END ) WHEN + 27 + 98 THEN + 9 - + 43 WHEN 88 + + 75 THEN CAST( NULL AS SIGNED ) ELSE NULL END * + 73 + + MIN( 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL CASE - - COALESCE ( - - COUNT ( * ), - - CASE - - 14 WHEN - - CAST ( NULL AS REAL ) * + + 23 THEN - 96 * - + CASE - - 55 WHEN - 68 THEN + - 70 WHEN + 85 - - 96 THEN NULL ELSE NULL END - + 52 * + 4 WHEN + 3 + + 87 THEN + CASE COUNT ( * ) WHEN - - 49 THEN NULL WHEN - COALESCE ( 74, + + COUNT ( * ) + CASE - NULLIF ( - - 69, - ( + CAST ( NULL AS INTEGER ) ) ) WHEN - + 50 + + + 35 THEN + MIN ( DISTINCT 21 ) WHEN + 44 + 53 + CASE - NULLIF ( ( 52 ), 83 * - 54 + + CAST ( NULL AS INTEGER ) ) WHEN 42 / 23 + 95 THEN NULL ELSE - 28 END * + MIN ( DISTINCT + 33 ) THEN NULL END ) THEN 33 + CAST ( + 55 AS INTEGER ) ELSE 1 END + - 42 END ) WHEN + 27 + 98 THEN + 9 - + 43 WHEN 88 + + 75 THEN CAST ( NULL AS INTEGER ) ELSE NULL END * + 73 + + MIN ( 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT + MAX( DISTINCT - + 2 ) * 69 * - COUNT( ALL - + 86 ) + - 76 + 8 * + 34 AS col1
----
334

skipif mysql # not compatible
query I rowsort label-9780
SELECT + MAX ( DISTINCT - + 2 ) * 69 * - COUNT ( ALL - + 86 ) + - 76 + 8 * + 34 AS col1
----
334

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT ALL + ( COUNT( - - 26 ) ) + - + 16 + + 68 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL + ( COUNT ( - - 26 ) ) + - + 16 + + 68 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT ALL - MAX( 40 ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL - MAX ( 40 ) col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT 40 * - SUM( - + 98 ) AS col1
----
3920

skipif mysql # not compatible
query I rowsort label-9783
SELECT 40 * - SUM ( - + 98 ) AS col1
----
3920

query I rowsort
SELECT 83 * + 32 + - 28 AS col1
----
2628

query I rowsort
SELECT + ( + - 71 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT DISTINCT + COUNT( * ) + - - 70 + + - 52
----
19

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT + COUNT ( * ) + - - 70 + + - 52
----
19

query II rowsort
SELECT - 15 col2, ( + 45 )
----
-15
45

query I rowsort
SELECT ALL - 97 - + 70 AS col0
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9789
SELECT MAX( DISTINCT + - 63 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT MAX ( DISTINCT + - 63 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9790
SELECT ALL + - 91 * + + CAST( NULL AS DECIMAL ) + + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL + - 91 * + + CAST ( NULL AS REAL ) + + 54 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 87 - + 32 * - - 91 AS col0
----
-2825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9792
SELECT ALL + COUNT( * ) - + CAST( NULL AS SIGNED ) + + 93 AS col0, 15 DIV - - 20 + NULLIF ( 90, COUNT( * ) ) + + 5 * 55 AS col2
----
NULL
365

skipif mysql # not compatible
query II rowsort label-9792
SELECT ALL + COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + 93 AS col0, 15 / - - 20 + NULLIF ( 90, COUNT ( * ) ) + + 5 * 55 AS col2
----
NULL
365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT - CAST( + 26 AS SIGNED ) * - + 91 - - 33 AS col0
----
2399

skipif mysql # not compatible
query I rowsort label-9793
SELECT - CAST ( + 26 AS INTEGER ) * - + 91 - - 33 AS col0
----
2399

query I rowsort
SELECT 9 + - + 16 AS col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9795
SELECT 58 DIV - SUM( DISTINCT - 14 )
----
4

skipif mysql # not compatible
query I rowsort label-9795
SELECT 58 / - SUM ( DISTINCT - 14 )
----
4

query I rowsort
SELECT DISTINCT - 59 * + 77
----
-4543

query I rowsort
SELECT ALL + COALESCE ( - + 71, + 89, + 29 ) * + + 34
----
-2414

query II rowsort
SELECT DISTINCT - 72, + 29 AS col2
----
-72
29

onlyif mysql # aggregate syntax: 
query III rowsort label-9799
SELECT DISTINCT - 43 col0, 62 AS col1, + COUNT( * ) AS col1
----
-43
62
1

skipif mysql # not compatible
query III rowsort label-9799
SELECT DISTINCT - 43 col0, 62 AS col1, + COUNT ( * ) AS col1
----
-43
62
1

query II rowsort
SELECT DISTINCT - 55 AS col2, + 62 + - 13
----
-55
49

query I rowsort
SELECT ALL ( + 48 ) + + 70
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT ALL - MAX( 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL - MAX ( 82 )
----
-82

query I rowsort
SELECT DISTINCT - ( + ( + + 84 ) ) + + - 70
----
-154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9804
SELECT ALL + COUNT( * ) + - - 75 + - COUNT( * ) * + 50 DIV - COUNT( * ) + + + COUNT( * ) DIV - + 16 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL + COUNT ( * ) + - - 75 + - COUNT ( * ) * + 50 / - COUNT ( * ) + + + COUNT ( * ) / - + 16 AS col2
----
126

query I rowsort
SELECT 33 * + + 64 - 10
----
2102

query II rowsort
SELECT ALL - 58 AS col2, + 31 - - 1 + + NULLIF ( 70, 83 * - 88 + + + COALESCE ( 70, 15 ) + - + 1 - - CASE + 48 WHEN NULLIF ( - + 13, + 0 ) THEN NULL WHEN - 90 - + + 11 THEN + 50 ELSE NULL END ) * - 79
----
-58
-5498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9807
SELECT ALL - NULLIF ( 74, + ( + 32 ) * SUM( ALL + + 19 ) + - ( - + CAST( 99 AS SIGNED ) ) + COUNT( * ) + + ( - - 36 ) + - COUNT( * ) )
----
-74

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL - NULLIF ( 74, + ( + 32 ) * SUM ( ALL + + 19 ) + - ( - + CAST ( 99 AS INTEGER ) ) + COUNT ( * ) + + ( - - 36 ) + - COUNT ( * ) )
----
-74

query I rowsort
SELECT ALL - 42 * - COALESCE ( - + 20, + + 40 ) AS col1
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT 28 + - SUM( 67 )
----
-39

skipif mysql # not compatible
query I rowsort label-9809
SELECT 28 + - SUM ( 67 )
----
-39

query I rowsort
SELECT 55 + - + ( - 65 ) + - 56
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT 98 * - - 58 + COUNT( * ) AS col0
----
5685

skipif mysql # not compatible
query I rowsort label-9811
SELECT 98 * - - 58 + COUNT ( * ) AS col0
----
5685

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL + 1 - COUNT( * ) + - COUNT( * ) + + - 31 - 40 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL + 1 - COUNT ( * ) + - COUNT ( * ) + + - 31 - 40 AS col2
----
-72

query I rowsort
SELECT ALL - + 68 - 4
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-9814
SELECT + 22 + - 17 + - + 34 + - - 47 AS col0, COALESCE ( - COUNT( * ), - 20 ) AS col1
----
18
-1

skipif mysql # not compatible
query II rowsort label-9814
SELECT + 22 + - 17 + - + 34 + - - 47 AS col0, COALESCE ( - COUNT ( * ), - 20 ) AS col1
----
18
-1

query I rowsort
SELECT ( 93 ) + ( + 8 ) AS col0
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9816
SELECT ALL + 65 - + + 84 + + + 87 * 58 * COALESCE ( + - 69, - - CASE + - 5 WHEN 88 THEN + 0 ELSE NULL END * + + COUNT( * ) DIV + - 84 + + ( 18 ) + - + 53 * 62 ) AS col2
----
-348193

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + 65 - + + 84 + + + 87 * 58 * COALESCE ( + - 69, - - CASE + - 5 WHEN 88 THEN + 0 ELSE NULL END * + + COUNT ( * ) / + - 84 + + ( 18 ) + - + 53 * 62 ) AS col2
----
-348193

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT COALESCE ( 67, - 71, COUNT( * ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT COALESCE ( 67, - 71, COUNT ( * ) ) AS col2
----
67

query I rowsort
SELECT + 98 + + + 59
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT - 72 * + 13 + 91 + - - COUNT( * ) AS col2
----
-844

skipif mysql # not compatible
query I rowsort label-9819
SELECT - 72 * + 13 + 91 + - - COUNT ( * ) AS col2
----
-844

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT + NULLIF ( + + 2, - MAX( 98 ) * - - 56 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-9820
SELECT + NULLIF ( + + 2, - MAX ( 98 ) * - - 56 ) col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT DISTINCT 60 * MIN( ALL + 31 ) col1
----
1860

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT 60 * MIN ( ALL + 31 ) col1
----
1860

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT ALL - 24 * + COUNT( * ) + + 3 * + 52
----
132

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL - 24 * + COUNT ( * ) + + 3 * + 52
----
132

query I rowsort
SELECT + 39 * 68
----
2652

query I rowsort
SELECT - 48 - - ( + 99 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9825
SELECT DISTINCT CAST( + + AVG ( - - 63 ) AS SIGNED ) * COALESCE ( - 22, + 43 + + 50 + - 84, - - 72 - + 14 ) + - + COUNT( * ) * - 84 AS col0
----
-1302

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT CAST ( + + AVG ( - - 63 ) AS INTEGER ) * COALESCE ( - 22, + 43 + + 50 + - 84, - - 72 - + 14 ) + - + COUNT ( * ) * - 84 AS col0
----
-1302

onlyif mysql # DIV for integer division: 
query II rowsort label-9826
SELECT ALL 90, 99 + + NULLIF ( 64, 21 ) DIV 37 AS col2
----
90
100

skipif mysql # not compatible
query II rowsort label-9826
SELECT ALL 90, 99 + + NULLIF ( 64, 21 ) / 37 AS col2
----
90
100

query II rowsort
SELECT - 1 AS col2, + 76 AS col0
----
-1
76

query I rowsort
SELECT 4 * - + 37 AS col1
----
-148

query I rowsort
SELECT DISTINCT 10 * + 7
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9830
SELECT + 63 * - 70 * + - 65 DIV COUNT( * ) + + COUNT( * ) * + 73
----
286723

skipif mysql # not compatible
query I rowsort label-9830
SELECT + 63 * - 70 * + - 65 / COUNT ( * ) + + COUNT ( * ) * + 73
----
286723

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9831
SELECT COALESCE ( 58, + CAST( NULL AS SIGNED ) + + 1 * + 58 + + + 32 ) DIV - 70 * + + 80 - 44 + 13
----
-31

skipif mysql # not compatible
query I rowsort label-9831
SELECT COALESCE ( 58, + CAST ( NULL AS INTEGER ) + + 1 * + 58 + + + 32 ) / - 70 * + + 80 - 44 + 13
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9832
SELECT 0 * + MIN( DISTINCT - - ( + - 58 ) ) DIV - - 77 - 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9832
SELECT 0 * + MIN ( DISTINCT - - ( + - 58 ) ) / - - 77 - 77 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT + MAX( 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9833
SELECT + MAX ( 41 ) AS col2
----
41

query I rowsort
SELECT ( 13 ) + - 5 + 9
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL 93 * - 66 + - COUNT( * ) AS col1
----
-6139

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL 93 * - 66 + - COUNT ( * ) AS col1
----
-6139

query I rowsort
SELECT ALL + 48 * 19 + 33 * 26
----
1770

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT 38 * + 39 * + + 45 * - + COUNT( * ) + 59
----
-66631

skipif mysql # not compatible
query I rowsort label-9837
SELECT 38 * + 39 * + + 45 * - + COUNT ( * ) + 59
----
-66631

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT ALL - 70 * + 69 * + 23 + + 3 - - + 38 * + + ( - - COALESCE ( - 6, - NULLIF ( - COUNT( * ), 91 ) * - MIN( ALL + - 96 ) + + COUNT( + 60 ) * + 82 * 60 * 2, + + 20 * + + 19 * + 7 + + - 62 + - - 76 - + - 76 ) ) + 72 AS col2
----
-111243

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL - 70 * + 69 * + 23 + + 3 - - + 38 * + + ( - - COALESCE ( - 6, - NULLIF ( - COUNT ( * ), 91 ) * - MIN ( ALL + - 96 ) + + COUNT ( + 60 ) * + 82 * 60 * 2, + + 20 * + + 19 * + 7 + + - 62 + - - 76 - + - 76 ) ) + 72 AS col2
----
-111243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9839
SELECT + 61 * - CAST( NULL AS SIGNED ), ( COUNT( * ) ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9839
SELECT + 61 * - CAST ( NULL AS INTEGER ), ( COUNT ( * ) ) col1
----
NULL
1

query II rowsort
SELECT - 66 + + - 71 AS col0, + 18 AS col0
----
-137
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL + MAX( - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL + MAX ( - 57 )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-9842
SELECT + MAX( + 35 ) AS col1, 29
----
35
29

skipif mysql # not compatible
query II rowsort label-9842
SELECT + MAX ( + 35 ) AS col1, 29
----
35
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT - NULLIF ( - 15, - - COUNT( * ) + 32 * 97 ) + - + 94
----
-79

skipif mysql # not compatible
query I rowsort label-9843
SELECT - NULLIF ( - 15, - - COUNT ( * ) + 32 * 97 ) + - + 94
----
-79

query I rowsort
SELECT 75 * + 1 + - 22 - 49
----
4

query I rowsort
SELECT ALL - 39 - + 81
----
-120

query I rowsort
SELECT + 93 * - 72 col1
----
-6696

query II rowsort
SELECT - + 58 * 92, + 47 AS col2
----
-5336
47

query I rowsort
SELECT + - 14 - 21 + + 20 col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT DISTINCT + - COUNT( ALL + - 5 ) * + ( - SUM( DISTINCT 8 ) )
----
8

skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT + - COUNT ( ALL + - 5 ) * + ( - SUM ( DISTINCT 8 ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL + - COUNT( * ) * CASE 2 WHEN 76 THEN NULL WHEN + 1 * - 46 THEN + 25 * 40 + + 26 END * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL + - COUNT ( * ) * CASE 2 WHEN 76 THEN NULL WHEN + 1 * - 46 THEN + 25 * 40 + + 26 END * 68
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9851
SELECT - COUNT( * ) DIV COALESCE ( + 40, 7 * + 98 * 45 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9851
SELECT - COUNT ( * ) / COALESCE ( + 40, 7 * + 98 * 45 ) AS col2
----
0

query I rowsort
SELECT - + 56 + - - 31
----
-25

query I rowsort
SELECT DISTINCT - + 19 + - - 4 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT ALL - ( + 60 ) + + CASE + - 65 WHEN - ( MIN( + - NULLIF ( - 10, - - 23 ) ) ) THEN - - COUNT( * ) * + - COUNT( * ) * + 7 + 35 / + 13 + - 52 + + 85 + + ( - 71 ) WHEN + 91 THEN NULL END + - 88 + - ( + ( + MAX( + 79 ) ) ) / MIN( ALL 58 ) * - 7 + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL - ( + 60 ) + + CASE + - 65 WHEN - ( MIN ( + - NULLIF ( - 10, - - 23 ) ) ) THEN - - COUNT ( * ) * + - COUNT ( * ) * + 7 + 35 / + 13 + - 52 + + 85 + + ( - 71 ) WHEN + 91 THEN NULL END + - 88 + - ( + ( + MAX ( + 79 ) ) ) / MIN ( ALL 58 ) * - 7 + + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT - 75 * + MAX( 41 ) AS col1
----
-3075

skipif mysql # not compatible
query I rowsort label-9855
SELECT - 75 * + MAX ( 41 ) AS col1
----
-3075

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT - 87 + - 89 + 97 + - + 45 + - - COUNT( * ) AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT - 87 + - 89 + 97 + - + 45 + - - COUNT ( * ) AS col0
----
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-9857
SELECT ALL + COUNT( * ) + ( - 13 ) AS col0, ( - 2 ) AS col0
----
-12
-2

skipif mysql # not compatible
query II rowsort label-9857
SELECT ALL + COUNT ( * ) + ( - 13 ) AS col0, ( - 2 ) AS col0
----
-12
-2

query I rowsort
SELECT + 33 + - 17
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT ALL - 3 DIV + + 96 + 61 DIV - - 27 + - - COALESCE ( - 79, + - 68 + - 53 DIV - + 5, 43 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL - 3 / + + 96 + 61 / - - 27 + - - COALESCE ( - 79, + - 68 + - 53 / - + 5, 43 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ( + SUM( - - 28 ) )
----
28

skipif mysql # not compatible
query I rowsort label-9860
SELECT ( + SUM ( - - 28 ) )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9861
SELECT DISTINCT + CAST( - - 53 AS SIGNED ) DIV + + 93 * + MIN( - - ( 31 ) ) + - - ( + 7 ) * 76 AS col0
----
532

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT + CAST ( - - 53 AS INTEGER ) / + + 93 * + MIN ( - - ( 31 ) ) + - - ( + 7 ) * 76 AS col0
----
532

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9862
SELECT ( - MAX( + - CAST( NULL AS DECIMAL ) ) ) AS col1, - CASE 91 WHEN 17 * - 58 * 81 + 63 THEN - 17 ELSE NULL END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9862
SELECT ( - MAX ( + - CAST ( NULL AS REAL ) ) ) AS col1, - CASE 91 WHEN 17 * - 58 * 81 + 63 THEN - 17 ELSE NULL END AS col0
----
NULL
NULL

query I rowsort
SELECT + 97 * + 71 AS col1
----
6887

query II rowsort
SELECT ALL + 67 AS col1, 65 * ( 91 ) + + 51 AS col0
----
67
5966

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT + NULLIF ( - ( - 54 ), COUNT( * ) * + 67 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9865
SELECT + NULLIF ( - ( - 54 ), COUNT ( * ) * + 67 ) AS col0
----
54

query I rowsort
SELECT ALL ( + 16 ) * - - 73 - + + NULLIF ( - - 1, + 59 * + NULLIF ( 69, - + 26 + + 27 ) )
----
1167

query I rowsort
SELECT ( + + 77 ) AS col1
----
77

query I rowsort
SELECT + CASE 60 WHEN - 26 / - 17 * 32 / 63 + 35 + + - 57 THEN NULL ELSE 92 END
----
92

query I rowsort
SELECT - 61 - 90
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT + SUM( + 63 ) * + + 36 * - - 82 AS col0
----
185976

skipif mysql # not compatible
query I rowsort label-9870
SELECT + SUM ( + 63 ) * + + 36 * - - 82 AS col0
----
185976

query I rowsort
SELECT ( + 76 ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT + MAX( + 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9872
SELECT + MAX ( + 48 ) AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9873
SELECT + COUNT( * ) DIV - - 6 * + ( - + 17 )
----
0

skipif mysql # not compatible
query I rowsort label-9873
SELECT + COUNT ( * ) / - - 6 * + ( - + 17 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9874
SELECT ALL + 83 AS col0, - 48 * - 24 + + + 23 DIV + ( + + ( - 62 ) ) AS col0
----
83
1152

skipif mysql # not compatible
query II rowsort label-9874
SELECT ALL + 83 AS col0, - 48 * - 24 + + + 23 / + ( + + ( - 62 ) ) AS col0
----
83
1152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT DISTINCT + CAST( - - 76 AS SIGNED ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT + CAST ( - - 76 AS INTEGER ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL + MAX( DISTINCT 40 )
----
40

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL + MAX ( DISTINCT 40 )
----
40

query I rowsort
SELECT ALL NULLIF ( + 59, + - 14 - + 44 ) * + 81
----
4779

query I rowsort
SELECT + + 4 - 57 * + ( 5 ) * + 11
----
-3131

query I rowsort
SELECT + - 87 * + 93
----
-8091

onlyif mysql # aggregate syntax: 
query II rowsort label-9880
SELECT DISTINCT + - 53 AS col0, - COUNT( * ) * - 79
----
-53
79

skipif mysql # not compatible
query II rowsort label-9880
SELECT DISTINCT + - 53 AS col0, - COUNT ( * ) * - 79
----
-53
79

query I rowsort
SELECT 18 * - - 60 + + 30 + + + 72
----
1182

query I rowsort
SELECT + + 54 * 28 * - 25
----
-37800

query I rowsort
SELECT ALL + 49 * + 6 + + 23 - - + 62 * - - 4 * 56 AS col1
----
14205

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9884
SELECT + + ( - + 10 ) + - - 98 + - ( 49 ) + - 90 + - COUNT( * ) * - 12 AS col2, - 61 * 1 * - 68 + + 74 DIV 6
----
-39
4160

skipif mysql # not compatible
query II rowsort label-9884
SELECT + + ( - + 10 ) + - - 98 + - ( 49 ) + - 90 + - COUNT ( * ) * - 12 AS col2, - 61 * 1 * - 68 + + 74 / 6
----
-39
4160

query I rowsort
SELECT ALL 24 * + 89 AS col1
----
2136

query II rowsort
SELECT + CASE - - 29 WHEN - + 73 / 91 THEN + 33 END * - 64 AS col0, 21 + 90
----
NULL
111

query I rowsort
SELECT - 63 * 21 + - - 14 AS col2
----
-1309

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT DISTINCT + MIN( - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT + MIN ( - 66 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9889
SELECT ALL - COALESCE ( + 24, 59 * + + 97, + + CAST( + 59 AS SIGNED ) * + MIN( ALL - + 62 ) + + - 88 ) * - 72 + - 2 AS col0
----
1726

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL - COALESCE ( + 24, 59 * + + 97, + + CAST ( + 59 AS INTEGER ) * + MIN ( ALL - + 62 ) + + - 88 ) * - 72 + - 2 AS col0
----
1726

query I rowsort
SELECT ALL COALESCE ( 67, - 2 )
----
67

query I rowsort
SELECT + - 86 * - 24 - + COALESCE ( 10, - 51 ) AS col2
----
2054

query I rowsort
SELECT + 34 + 34 AS col1
----
68

query I rowsort
SELECT DISTINCT - - 83 + 45 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT ALL 26 + + 40 + + - 69 * 12 + COUNT( ALL - 3 ) + 42 - - COUNT( ALL + 43 ) * - + 24
----
-743

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL 26 + + 40 + + - 69 * 12 + COUNT ( ALL - 3 ) + 42 - - COUNT ( ALL + 43 ) * - + 24
----
-743

query I rowsort
SELECT + 96 + + 92 AS col2
----
188

query I rowsort
SELECT - ( - + 86 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT ALL + 46 * + 74 * + + CAST( + + ( - 69 ) AS SIGNED )
----
-234876

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL + 46 * + 74 * + + CAST ( + + ( - 69 ) AS INTEGER )
----
-234876

onlyif mysql # DIV for integer division: 
query II rowsort label-9898
SELECT DISTINCT + 1 DIV 27 DIV - ( - + 64 ) AS col0, 92 col1
----
0
92

skipif mysql # not compatible
query II rowsort label-9898
SELECT DISTINCT + 1 / 27 / - ( - + 64 ) AS col0, 92 col1
----
0
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9899
SELECT ALL + 38 - CAST( - 61 AS SIGNED ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL + 38 - CAST ( - 61 AS INTEGER ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT 12 * MIN( DISTINCT - - 89 ) AS col2
----
1068

skipif mysql # not compatible
query I rowsort label-9900
SELECT 12 * MIN ( DISTINCT - - 89 ) AS col2
----
1068

query I rowsort
SELECT 74 * 92 + - 86 AS col0
----
6722

query I rowsort
SELECT 54 - 60
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9903
SELECT - 22 / - ( + - CAST( NULL AS SIGNED ) ) + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT - 22 / - ( + - CAST ( NULL AS INTEGER ) ) + 13
----
NULL

query I rowsort
SELECT 44 + - 70 + 58 AS col1
----
32

query I rowsort
SELECT 47 * + NULLIF ( - 47, - + ( ( 97 ) ) )
----
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT + 72 * - COUNT( * ) * - 20 * + + 36 + + 48 * 15 AS col1
----
52560

skipif mysql # not compatible
query I rowsort label-9906
SELECT + 72 * - COUNT ( * ) * - 20 * + + 36 + + 48 * 15 AS col1
----
52560

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT DISTINCT + - CASE COALESCE ( - - 53, + - ( - - 43 ) ) WHEN - - 93 + + + 32 / MAX( ( + + 25 ) ) * - + COUNT( * ) THEN + + COUNT( * ) WHEN - + 57 * + 12 + - 65 THEN NULL WHEN 55 * - COUNT( * ) * - 4 + + - 96 * - 49 + 40 + - 52 * - - 5 * - 52 * + COUNT( 35 ) THEN NULL END * - 73 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT + - CASE COALESCE ( - - 53, + - ( - - 43 ) ) WHEN - - 93 + + + 32 / MAX ( ( + + 25 ) ) * - + COUNT ( * ) THEN + + COUNT ( * ) WHEN - + 57 * + 12 + - 65 THEN NULL WHEN 55 * - COUNT ( * ) * - 4 + + - 96 * - 49 + 40 + - 52 * - - 5 * - 52 * + COUNT ( 35 ) THEN NULL END * - 73 col0
----
NULL

query I rowsort
SELECT NULLIF ( - 91, + 74 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT - 25 + NULLIF ( - + 89, + COUNT( * ) * + COUNT( * ) ) + - + 64 + - + COUNT( * ) * - 42 + 71 + + 35 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9909
SELECT - 25 + NULLIF ( - + 89, + COUNT ( * ) * + COUNT ( * ) ) + - + 64 + - + COUNT ( * ) * - 42 + 71 + + 35 AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9910
SELECT 9 * + - CAST( NULL AS SIGNED ) + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT 9 * + - CAST ( NULL AS INTEGER ) + 4 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9911
SELECT MIN( ALL ( + 43 ) ) DIV - 55 + - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9911
SELECT MIN ( ALL ( + 43 ) ) / - 55 + - - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - 95 + 89 + 81 AS col1
----
75

query I rowsort
SELECT 32 * + 1
----
32

query I rowsort
SELECT 63 + ( - 49 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT ALL 97 + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL 97 + COUNT ( * ) AS col1
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9916
SELECT COUNT( * ) + - + 74 * + - COUNT( * ) * - - COALESCE ( + 69, + 42, 70 * 81 * 29 - - 26 DIV 1 - + COUNT( ALL + 28 ) ) AS col2
----
5107

skipif mysql # not compatible
query I rowsort label-9916
SELECT COUNT ( * ) + - + 74 * + - COUNT ( * ) * - - COALESCE ( + 69, + 42, 70 * 81 * 29 - - 26 / 1 - + COUNT ( ALL + 28 ) ) AS col2
----
5107

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL COUNT( - + 90 ) + - 60 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL COUNT ( - + 90 ) + - 60 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT ( - COUNT( DISTINCT + 40 ) ) + - - COUNT( * ) + + SUM( 54 ) * - 23
----
-1242

skipif mysql # not compatible
query I rowsort label-9918
SELECT ( - COUNT ( DISTINCT + 40 ) ) + - - COUNT ( * ) + + SUM ( 54 ) * - 23
----
-1242

query I rowsort
SELECT DISTINCT - 69 - 30 AS col0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9920
SELECT ( + + 65 ) DIV + + 49 * + COUNT( - + COALESCE ( + - 51, + - 67 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9920
SELECT ( + + 65 ) / + + 49 * + COUNT ( - + COALESCE ( + - 51, + - 67 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9921
SELECT DISTINCT 14 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT 14 / 89
----
0

query I rowsort
SELECT 22 + + ( 36 ) + - 91 AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9923
SELECT 58 * COUNT( * ) DIV + - 11 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9923
SELECT 58 * COUNT ( * ) / + - 11 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT 64 + - - MAX( - 27 )
----
37

skipif mysql # not compatible
query I rowsort label-9924
SELECT 64 + - - MAX ( - 27 )
----
37

query I rowsort
SELECT 67 - 43 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT DISTINCT - 97 * - 81 * + ( COUNT( * ) )
----
7857

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT - 97 * - 81 * + ( COUNT ( * ) )
----
7857

onlyif mysql # DIV for integer division: 
query I rowsort label-9927
SELECT DISTINCT 79 DIV - 47 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT 79 / - 47 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9928
SELECT 47 * + COUNT( * ) * - 49, - COUNT( * ) AS col2
----
-2303
-1

skipif mysql # not compatible
query II rowsort label-9928
SELECT 47 * + COUNT ( * ) * - 49, - COUNT ( * ) AS col2
----
-2303
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9929
SELECT ALL - 53 DIV - - 98 col1
----
0

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL - 53 / - - 98 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-9930
SELECT COUNT( * ), + 40 DIV + 4 AS col2, + CAST( - 25 AS DECIMAL ) * - - 35 - + + CASE - 8 WHEN 10 THEN 13 ELSE NULL END AS col1
----
1
10
NULL

skipif mysql # not compatible
query III rowsort label-9930
SELECT COUNT ( * ), + 40 / + 4 AS col2, + CAST ( - 25 AS REAL ) * - - 35 - + + CASE - 8 WHEN 10 THEN 13 ELSE NULL END AS col1
----
1
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT - COUNT( * ) * + 95
----
-95

skipif mysql # not compatible
query I rowsort label-9931
SELECT - COUNT ( * ) * + 95
----
-95

query I rowsort
SELECT - 39 - - 69
----
30

query II rowsort
SELECT ALL - 19 AS col2, 16 + + 46 * - - 10
----
-19
476

onlyif mysql # aggregate syntax: 
query II rowsort label-9934
SELECT - 57 AS col1, + COUNT( * )
----
-57
1

skipif mysql # not compatible
query II rowsort label-9934
SELECT - 57 AS col1, + COUNT ( * )
----
-57
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9935
SELECT DISTINCT - - CAST( + ( - COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT - - CAST ( + ( - COUNT ( * ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT + 67 * - ( 84 ) - COUNT( * )
----
-5629

skipif mysql # not compatible
query I rowsort label-9936
SELECT + 67 * - ( 84 ) - COUNT ( * )
----
-5629

query I rowsort
SELECT 67 * 63 AS col0
----
4221

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9938
SELECT DISTINCT - SUM( ALL - 0 ) + - 26 + - 69 + + 69 + + + 35 * COUNT( * ) DIV 67 * - - ( - 17 ) col0, 98 + 80
----
-26
178

skipif mysql # not compatible
query II rowsort label-9938
SELECT DISTINCT - SUM ( ALL - 0 ) + - 26 + - 69 + + 69 + + + 35 * COUNT ( * ) / 67 * - - ( - 17 ) col0, 98 + 80
----
-26
178

query I rowsort
SELECT 47 - - 17 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9940
SELECT DISTINCT - - COALESCE ( CAST( NULL AS SIGNED ), 98, + 36 ) * - 65 * + ( 32 ) - + COALESCE ( + 31, + COUNT( * ), - 97 * 18, CASE 19 WHEN 24 + + 89 + - 71 * + 61 THEN + 46 + + - 71 ELSE NULL END ) AS col0
----
-203871

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT - - COALESCE ( CAST ( NULL AS INTEGER ), 98, + 36 ) * - 65 * + ( 32 ) - + COALESCE ( + 31, + COUNT ( * ), - 97 * 18, CASE 19 WHEN 24 + + 89 + - 71 * + 61 THEN + 46 + + - 71 ELSE NULL END ) AS col0
----
-203871

query I rowsort
SELECT + + 82 * 7 + ( 28 ) + 82 * - 4 * 63
----
-20062

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT 26 + + SUM( - 48 ) + 83
----
61

skipif mysql # not compatible
query I rowsort label-9942
SELECT 26 + + SUM ( - 48 ) + 83
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9943
SELECT + NULLIF ( + 95, - NULLIF ( - COUNT( * ), + 58 - + 26 + + 7 ) ) * - CAST( 24 AS SIGNED ) AS col1
----
-2280

skipif mysql # not compatible
query I rowsort label-9943
SELECT + NULLIF ( + 95, - NULLIF ( - COUNT ( * ), + 58 - + 26 + + 7 ) ) * - CAST ( 24 AS INTEGER ) AS col1
----
-2280

query I rowsort
SELECT 16 - - 45 AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9945
SELECT DISTINCT - 75, + 55 DIV + + COALESCE ( - COUNT( * ), - 28 ) AS col0
----
-75
-55

skipif mysql # not compatible
query II rowsort label-9945
SELECT DISTINCT - 75, + 55 / + + COALESCE ( - COUNT ( * ), - 28 ) AS col0
----
-75
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-9946
SELECT DISTINCT 71 AS col0, COUNT( * ) * 60 * + 49 col1
----
71
2940

skipif mysql # not compatible
query II rowsort label-9946
SELECT DISTINCT 71 AS col0, COUNT ( * ) * 60 * + 49 col1
----
71
2940

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT DISTINCT - SUM( + 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT - SUM ( + 27 ) AS col1
----
-27

query I rowsort
SELECT ALL ( 51 ) - - 35 AS col1
----
86

query I rowsort
SELECT + 57 + - 82 AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9950
SELECT ALL 68 * - - CAST( NULL AS SIGNED ) / - SUM( ALL 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL 68 * - - CAST ( NULL AS INTEGER ) / - SUM ( ALL 61 )
----
NULL

query II rowsort
SELECT + 74 * + 11, 67 col2
----
814
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9952
SELECT ALL 80 DIV - MIN( ALL - + 31 )
----
2

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL 80 / - MIN ( ALL - + 31 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT - 44 * - COUNT( * ) * - 18 AS col1
----
-792

skipif mysql # not compatible
query I rowsort label-9953
SELECT - 44 * - COUNT ( * ) * - 18 AS col1
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT - 62 + + COUNT( * ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-9954
SELECT - 62 + + COUNT ( * ) col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9955
SELECT + 3 + - - COALESCE ( - 32, - 47, CAST( NULL AS SIGNED ), 21 ) + 9 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9955
SELECT + 3 + - - COALESCE ( - 32, - 47, CAST ( NULL AS INTEGER ), 21 ) + 9 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT + 14 * + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-9956
SELECT + 14 * + + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9957
SELECT - COALESCE ( + - 59, 15 + - - 60 + COUNT( * ) * - 27 DIV 30 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9957
SELECT - COALESCE ( + - 59, 15 + - - 60 + COUNT ( * ) * - 27 / 30 ) AS col1
----
59

query I rowsort
SELECT DISTINCT 38 * 26
----
988

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT + COUNT( * ) + + 97 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9959
SELECT + COUNT ( * ) + + 97 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT - COALESCE ( - COUNT( * ), + - 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9960
SELECT - COALESCE ( - COUNT ( * ), + - 90 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT ALL 73 * CAST( 79 AS SIGNED )
----
5767

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL 73 * CAST ( 79 AS INTEGER )
----
5767

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT + 84 + - ( - COUNT( * ) )
----
85

skipif mysql # not compatible
query I rowsort label-9962
SELECT + 84 + - ( - COUNT ( * ) )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-9963
SELECT ALL COUNT( * ), 68 * + CASE 6 WHEN + + AVG ( - + 10 ) + 34 THEN NULL ELSE - 53 END AS col0
----
1
-3604

skipif mysql # not compatible
query II rowsort label-9963
SELECT ALL COUNT ( * ), 68 * + CASE 6 WHEN + + AVG ( - + 10 ) + 34 THEN NULL ELSE - 53 END AS col0
----
1
-3604

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL MAX( ALL - - 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL MAX ( ALL - - 66 ) AS col2
----
66

query II rowsort
SELECT 90 AS col2, + 55
----
90
55

query I rowsort
SELECT - 63 * - 3 + - 25
----
164

query I rowsort
SELECT + 37 * ( 73 ) AS col1
----
2701

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL COUNT( * ) * 50 + + 82
----
132

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL COUNT ( * ) * 50 + + 82
----
132

query II rowsort
SELECT + 47 AS col2, - 54 AS col2
----
47
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9970
SELECT + + CASE - CAST( - + COUNT( * ) AS SIGNED ) WHEN - 56 THEN MAX( ALL + + 39 ) + + 9 WHEN - 61 * + 94 / + NULLIF ( + 78, 60 + + AVG ( - - 62 ) ) - + - 89 THEN NULL ELSE NULL END / 92 + + + COUNT( * ) * - 13 + + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT + + CASE - CAST ( - + COUNT ( * ) AS INTEGER ) WHEN - 56 THEN MAX ( ALL + + 39 ) + + 9 WHEN - 61 * + 94 / + NULLIF ( + 78, 60 + + AVG ( - - 62 ) ) - + - 89 THEN NULL ELSE NULL END / 92 + + + COUNT ( * ) * - 13 + + + 8
----
NULL

query I rowsort
SELECT ALL 29 * + - 76
----
-2204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT + + CAST( ( 88 ) AS SIGNED ) * 34 * + 16 * ( - - 53 ) + + 89 AS col2
----
2537305

skipif mysql # not compatible
query I rowsort label-9972
SELECT + + CAST ( ( 88 ) AS INTEGER ) * 34 * + 16 * ( - - 53 ) + + 89 AS col2
----
2537305

query I rowsort
SELECT ALL 48 * + 10 AS col2
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT - COUNT( * ) + - 72 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-9974
SELECT - COUNT ( * ) + - 72 AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9975
SELECT ALL 10 * + 94 - + 53 + + CAST( NULL AS SIGNED ) + + + ( 88 ) * 39 * + 29 + - 23 / - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL 10 * + 94 - + 53 + + CAST ( NULL AS INTEGER ) + + + ( 88 ) * 39 * + 29 + - 23 / - 73 AS col2
----
NULL

query I rowsort
SELECT + - ( - + 11 ) AS col1
----
11

query I rowsort
SELECT + 62 * 60 * 89 + - - ( + 9 ) * + 94 col2
----
331926

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT + 18 * + 93 + + + 34 * + COUNT( + + 40 ) AS col0
----
1708

skipif mysql # not compatible
query I rowsort label-9978
SELECT + 18 * + 93 + + + 34 * + COUNT ( + + 40 ) AS col0
----
1708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9979
SELECT CASE + + 83 WHEN - 79 THEN + 96 WHEN + 62 THEN - 72 * + + ( + - MAX( + 78 ) ) WHEN 26 + - 54 * 34 / - CAST( + 65 AS SIGNED ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT CASE + + 83 WHEN - 79 THEN + 96 WHEN + 62 THEN - 72 * + + ( + - MAX ( + 78 ) ) WHEN 26 + - 54 * 34 / - CAST ( + 65 AS INTEGER ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9980
SELECT - 3 * + COUNT( * ) * + - 64 / + ( 55 ) * - + 13 * - 62 + + 47 + - 67 + - 94 * + SUM( + + 29 ) * ( + - 36 ) * 49 - MIN( ALL - + CAST( NULL AS SIGNED ) ) * + + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT - 3 * + COUNT ( * ) * + - 64 / + ( 55 ) * - + 13 * - 62 + + 47 + - 67 + - 94 * + SUM ( + + 29 ) * ( + - 36 ) * 49 - MIN ( ALL - + CAST ( NULL AS INTEGER ) ) * + + 37 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9981
SELECT DISTINCT - - CAST( 25 AS SIGNED ) * - - 91
----
2275

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT - - CAST ( 25 AS INTEGER ) * - - 91
----
2275

query I rowsort
SELECT - 51 * + 93 AS col2
----
-4743

query I rowsort
SELECT - COALESCE ( + - 35, - 64 ) AS col1
----
35

query II rowsort
SELECT - 15 * - 35, 35 * + 3 col2
----
525
105

query II rowsort
SELECT DISTINCT ( - 48 ), 15 AS col0
----
-48
15

query I rowsort
SELECT - 8 + 36 * - 97 * - 23
----
80308

query I rowsort
SELECT ALL 79 * - ( - 18 ) col2
----
1422

onlyif mysql # DIV for integer division: 
query II rowsort label-9988
SELECT + 61 * + 49 AS col0, - 65 * 62 DIV + 45
----
2989
-89

skipif mysql # not compatible
query II rowsort label-9988
SELECT + 61 * + 49 AS col0, - 65 * 62 / + 45
----
2989
-89

query I rowsort
SELECT DISTINCT + 62 + + - 74 * + + 39 AS col2
----
-2824

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9990
SELECT - ( + + SUM( ALL - CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT - ( + + SUM ( ALL - CAST ( NULL AS REAL ) ) )
----
NULL

query I rowsort
SELECT + ( + 46 ) + 34 + + 31
----
111

query I rowsort
SELECT ALL 19 * + - 94 * + 82 AS col2
----
-146452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9993
SELECT + 31 + + 6 - - CAST( 50 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-9993
SELECT + 31 + + 6 - - CAST ( 50 AS INTEGER )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT + COUNT( + + 3 )
----
1

skipif mysql # not compatible
query I rowsort label-9994
SELECT + COUNT ( + + 3 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ALL - + 71 * - SUM( - 75 )
----
-5325

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL - + 71 * - SUM ( - 75 )
----
-5325

query I rowsort
SELECT + - 19 * - + 42 AS col1
----
798

query I rowsort
SELECT DISTINCT + - 36 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-9998
SELECT + ( - + 3 ), 33 - - 65 + + + MAX( - 29 ) + COUNT( ALL + 1 ) - - 51 * - COALESCE ( - ( + + 90 ), - 84 + - 92 ) col0
----
-3
4660

skipif mysql # not compatible
query II rowsort label-9998
SELECT + ( - + 3 ), 33 - - 65 + + + MAX ( - 29 ) + COUNT ( ALL + 1 ) - - 51 * - COALESCE ( - ( + + 90 ), - 84 + - 92 ) col0
----
-3
4660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9999
SELECT 58 DIV + - 29 + - SUM( + 48 ) + - - 67 - + 96 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-9999
SELECT 58 / + - 29 + - SUM ( + 48 ) + - - 67 - + 96 AS col2
----
-79

