sqllogictest
Artifact Content
Not logged in

Artifact 99fab529b4291f48edb856a9598bf8609e9e0072:


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